diff --git a/data/sqlite/index/random/10/slt_good_0.slt b/data/sqlite/index/random/10/slt_good_0.slt index 0e52bdb..37d36e9 100644 --- a/data/sqlite/index/random/10/slt_good_0.slt +++ b/data/sqlite/index/random/10/slt_good_0.slt @@ -17977,28 +17977,38 @@ SELECT * FROM tab4 cor0 WHERE - CAST ( NULL AS INTEGER ) + col4 + - + 93 >= col3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 values hashing to 5f81150a056dd7191789a1ad7f86171e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 1 and "\(\- \(\- cor0\.col3\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query TII valuesort SELECT col5 AS col2, 13 AS col0, - - col3 AS col0 FROM tab0 AS cor0 WHERE + col4 > + 12 +---- +30 values hashing to df4f53dd191885cda56262255e3cf796 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 values hashing to 5f81150a056dd7191789a1ad7f86171e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 1 and "\(\- \(\- cor0\.col3\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query TII valuesort SELECT col5 AS col2, 13 AS col0, - - col3 AS col0 FROM tab1 AS cor0 WHERE + col4 > + 12 +---- +30 values hashing to df4f53dd191885cda56262255e3cf796 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 values hashing to 5f81150a056dd7191789a1ad7f86171e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 1 and "\(\- \(\- cor0\.col3\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query TII valuesort SELECT col5 AS col2, 13 AS col0, - - col3 AS col0 FROM tab2 AS cor0 WHERE + col4 > + 12 +---- +30 values hashing to df4f53dd191885cda56262255e3cf796 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 values hashing to 5f81150a056dd7191789a1ad7f86171e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 1 and "\(\- \(\- cor0\.col3\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query TII valuesort SELECT col5 AS col2, 13 AS col0, - - col3 AS col0 FROM tab3 AS cor0 WHERE + col4 > + 12 +---- +30 values hashing to df4f53dd191885cda56262255e3cf796 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 values hashing to 5f81150a056dd7191789a1ad7f86171e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 1 and "\(\- \(\- cor0\.col3\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query TII valuesort SELECT col5 AS col2, 13 AS col0, - - col3 AS col0 FROM tab4 AS cor0 WHERE + col4 > + 12 +---- +30 values hashing to df4f53dd191885cda56262255e3cf796 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] III[I][I][I][I] @@ -34456,24 +34466,29 @@ SELECT * FROM tab4 WHERE - 29 IS NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, + 53 AS col2 FROM tab0 WHERE + 88 * col0 <= NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, + 53 AS col2 FROM tab1 WHERE + 88 * col0 <= NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, + 53 AS col2 FROM tab2 WHERE + 88 * col0 <= NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab3\.col0\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, + 53 AS col2 FROM tab3 WHERE + 88 * col0 <= NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab4\.col0\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, + 53 AS col2 FROM tab4 WHERE + 88 * col0 <= NULL +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -36142,28 +36157,38 @@ SELECT - + col3 FROM tab4 AS cor0 WHERE NOT + col4 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 6a9e76a1a58a455ff0a67da846d2df3d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col5" at position 0 and "Int64\(0\) \* \(\- cor0\.col0\) \* Int64\(57\) \- cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 8 AS col5, + 0 * - col0 * 57 - + col3 AS col5 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL +---- +20 values hashing to f32e8b3810a864cd772906b9c7348f15 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 6a9e76a1a58a455ff0a67da846d2df3d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col5" at position 0 and "Int64\(0\) \* \(\- cor0\.col0\) \* Int64\(57\) \- cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 8 AS col5, + 0 * - col0 * 57 - + col3 AS col5 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL +---- +20 values hashing to f32e8b3810a864cd772906b9c7348f15 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 6a9e76a1a58a455ff0a67da846d2df3d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col5" at position 0 and "Int64\(0\) \* \(\- cor0\.col0\) \* Int64\(57\) \- cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 8 AS col5, + 0 * - col0 * 57 - + col3 AS col5 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL +---- +20 values hashing to f32e8b3810a864cd772906b9c7348f15 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 6a9e76a1a58a455ff0a67da846d2df3d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col5" at position 0 and "Int64\(0\) \* \(\- cor0\.col0\) \* Int64\(57\) \- cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 8 AS col5, + 0 * - col0 * 57 - + col3 AS col5 FROM tab3 AS cor0 WHERE NOT NULL IS NOT NULL +---- +20 values hashing to f32e8b3810a864cd772906b9c7348f15 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 6a9e76a1a58a455ff0a67da846d2df3d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col5" at position 0 and "Int64\(0\) \* \(\- cor0\.col0\) \* Int64\(57\) \- cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 8 AS col5, + 0 * - col0 * 57 - + col3 AS col5 FROM tab4 AS cor0 WHERE NOT NULL IS NOT NULL +---- +20 values hashing to f32e8b3810a864cd772906b9c7348f15 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -48351,24 +48376,29 @@ SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col3 col5, 26 * 3 FROM tab4 AS cor0 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col4" at position 0 and "tab0\.col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RR valuesort SELECT + col4, col4 AS col4 FROM tab0 WHERE NOT ( NULL ) IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col4" at position 0 and "tab1\.col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RR valuesort SELECT + col4, col4 AS col4 FROM tab1 WHERE NOT ( NULL ) IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col4" at position 0 and "tab2\.col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RR valuesort SELECT + col4, col4 AS col4 FROM tab2 WHERE NOT ( NULL ) IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab3\.col4" at position 0 and "tab3\.col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RR valuesort SELECT + col4, col4 AS col4 FROM tab3 WHERE NOT ( NULL ) IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab4\.col4" at position 0 and "tab4\.col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RR valuesort SELECT + col4, col4 AS col4 FROM tab4 WHERE NOT ( NULL ) IS NULL +---- query I rowsort label-7945 SELECT ALL col3 + + + 43 AS col4 FROM tab0 WHERE NULL IS NULL diff --git a/data/sqlite/index/random/10/slt_good_1.slt b/data/sqlite/index/random/10/slt_good_1.slt index 39132ad..6cfb84b 100644 --- a/data/sqlite/index/random/10/slt_good_1.slt +++ b/data/sqlite/index/random/10/slt_good_1.slt @@ -17055,28 +17055,38 @@ SELECT DISTINCT + 87 FROM tab4 AS cor0 WHERE NOT + col1 <> + col1 / + col4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 48b483f8cfb49aa7b9057f7e6997960d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "\(\- cor0\.col3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 col2, - col3 AS col2 FROM tab0 AS cor0 WHERE col4 IS NOT NULL +---- +20 values hashing to a8b32ce662344ac559f1728c763a18ac # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 48b483f8cfb49aa7b9057f7e6997960d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "\(\- cor0\.col3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 col2, - col3 AS col2 FROM tab1 AS cor0 WHERE col4 IS NOT NULL +---- +20 values hashing to a8b32ce662344ac559f1728c763a18ac # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 48b483f8cfb49aa7b9057f7e6997960d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "\(\- cor0\.col3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 col2, - col3 AS col2 FROM tab2 AS cor0 WHERE col4 IS NOT NULL +---- +20 values hashing to a8b32ce662344ac559f1728c763a18ac # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 48b483f8cfb49aa7b9057f7e6997960d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "\(\- cor0\.col3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 col2, - col3 AS col2 FROM tab3 AS cor0 WHERE col4 IS NOT NULL +---- +20 values hashing to a8b32ce662344ac559f1728c763a18ac # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 48b483f8cfb49aa7b9057f7e6997960d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "\(\- cor0\.col3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 col2, - col3 AS col2 FROM tab4 AS cor0 WHERE col4 IS NOT NULL +---- +20 values hashing to a8b32ce662344ac559f1728c763a18ac query I rowsort label-2800 SELECT + col3 + + col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL @@ -24324,24 +24334,29 @@ SELECT ALL - 25 col0 FROM tab4 AS cor0 WHERE - col0 + + col1 IS NOT NULL 10 values hashing to 2f7f2740c4182cd3277e1389c872ab8a # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col4 \* Int64\(\-3\) AS col4" at position 0 and "tab0\.col0 \+ \(\- tab0\.col3\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT col4 * - 3 AS col4, + col0 + - col3 AS col4 FROM tab0 WHERE NOT NULL = NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col4 \* Int64\(\-3\) AS col4" at position 0 and "tab1\.col0 \+ \(\- tab1\.col3\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT col4 * - 3 AS col4, + col0 + - col3 AS col4 FROM tab1 WHERE NOT NULL = NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col4 \* Int64\(\-3\) AS col4" at position 0 and "tab2\.col0 \+ \(\- tab2\.col3\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT col4 * - 3 AS col4, + col0 + - col3 AS col4 FROM tab2 WHERE NOT NULL = NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab3\.col4 \* Int64\(\-3\) AS col4" at position 0 and "tab3\.col0 \+ \(\- tab3\.col3\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT col4 * - 3 AS col4, + col0 + - col3 AS col4 FROM tab3 WHERE NOT NULL = NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab4\.col4 \* Int64\(\-3\) AS col4" at position 0 and "tab4\.col0 \+ \(\- tab4\.col3\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT col4 * - 3 AS col4, + col0 + - col3 AS col4 FROM tab4 WHERE NOT NULL = NULL +---- query I rowsort label-4005 SELECT DISTINCT + COUNT ( * ) AS col4 FROM tab0 WHERE NOT - 80 >= + - ( 63 ) @@ -27121,32 +27136,47 @@ SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col4 AS col4 FROM tab4 cor0 WHERE # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 AS col0, COUNT ( * ) - COUNT ( * ) col0 FROM tab0 WHERE 87 < - + col4 +---- +0 +45 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 AS col0, COUNT ( * ) - COUNT ( * ) col0 FROM tab1 WHERE 87 < - + col4 +---- +0 +45 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 AS col0, COUNT ( * ) - COUNT ( * ) col0 FROM tab2 WHERE 87 < - + col4 +---- +0 +45 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 AS col0, COUNT ( * ) - COUNT ( * ) col0 FROM tab3 WHERE 87 < - + col4 +---- +0 +45 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 AS col0, COUNT ( * ) - COUNT ( * ) col0 FROM tab4 WHERE 87 < - + col4 +---- +0 +45 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -30809,24 +30839,29 @@ SELECT ALL - - col0 * + 34 + - col3 AS col2, + col3 + CAST ( NULL AS INTEGER ) A ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col4" at position 0 and "Int64\(\-84\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL col1 AS col4, - 84 AS col4 FROM tab0 WHERE NOT + + col0 <> 84 + 4 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col4" at position 0 and "Int64\(\-84\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL col1 AS col4, - 84 AS col4 FROM tab1 WHERE NOT + + col0 <> 84 + 4 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col4" at position 0 and "Int64\(\-84\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL col1 AS col4, - 84 AS col4 FROM tab2 WHERE NOT + + col0 <> 84 + 4 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab3\.col1 AS col4" at position 0 and "Int64\(\-84\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL col1 AS col4, - 84 AS col4 FROM tab3 WHERE NOT + + col0 <> 84 + 4 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab4\.col1 AS col4" at position 0 and "Int64\(\-84\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL col1 AS col4, - 84 AS col4 FROM tab4 WHERE NOT + + col0 <> 84 + 4 +---- query I rowsort label-5100 SELECT DISTINCT - 60 FROM tab0 WHERE NOT ( + ( + col0 ) ) >= + col0 * - 46 @@ -33129,24 +33164,29 @@ SELECT * FROM tab4 AS cor0 WHERE NOT NULL NOT IN ( - 11 ) ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \+ Int64\(89\) AS col4" at position 0 and "tab0\.col5 AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT ALL 28 + 89 AS col4, col5 AS col4 FROM tab0 WHERE NOT 1 / - 88 + + + 30 * + 4 * - - col1 > + col3 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \+ Int64\(89\) AS col4" at position 0 and "tab1\.col5 AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT ALL 28 + 89 AS col4, col5 AS col4 FROM tab1 WHERE NOT 1 / - 88 + + + 30 * + 4 * - - col1 > + col3 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \+ Int64\(89\) AS col4" at position 0 and "tab2\.col5 AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT ALL 28 + 89 AS col4, col5 AS col4 FROM tab2 WHERE NOT 1 / - 88 + + + 30 * + 4 * - - col1 > + col3 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \+ Int64\(89\) AS col4" at position 0 and "tab3\.col5 AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT ALL 28 + 89 AS col4, col5 AS col4 FROM tab3 WHERE NOT 1 / - 88 + + + 30 * + 4 * - - col1 > + col3 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \+ Int64\(89\) AS col4" at position 0 and "tab4\.col5 AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT ALL 28 + 89 AS col4, col5 AS col4 FROM tab4 WHERE NOT 1 / - 88 + + + 30 * + 4 * - - col1 > + col3 +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] III[I][I][I][I] @@ -37039,24 +37079,29 @@ SELECT col1 FROM tab4 WHERE NOT NULL <= NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col5 AS col3" at position 0 and "Int64\(93\) \+ \(\- tab0\.col4\) AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query TR valuesort SELECT col5 col3, 93 + - col4 col3 FROM tab0 WHERE NOT col3 IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col5 AS col3" at position 0 and "Int64\(93\) \+ \(\- tab1\.col4\) AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query TR valuesort SELECT col5 col3, 93 + - col4 col3 FROM tab1 WHERE NOT col3 IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col5 AS col3" at position 0 and "Int64\(93\) \+ \(\- tab2\.col4\) AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query TR valuesort SELECT col5 col3, 93 + - col4 col3 FROM tab2 WHERE NOT col3 IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab3\.col5 AS col3" at position 0 and "Int64\(93\) \+ \(\- tab3\.col4\) AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query TR valuesort SELECT col5 col3, 93 + - col4 col3 FROM tab3 WHERE NOT col3 IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab4\.col5 AS col3" at position 0 and "Int64\(93\) \+ \(\- tab4\.col4\) AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query TR valuesort SELECT col5 col3, 93 + - col4 col3 FROM tab4 WHERE NOT col3 IS NOT NULL +---- query I rowsort label-6155 SELECT DISTINCT - MIN ( ALL + - col0 ) col1 FROM tab0 WHERE 54 IS NULL @@ -44776,32 +44821,47 @@ 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\(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\. +query II valuesort SELECT ALL + - COUNT ( * ), - COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL +---- +0 +0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - COUNT ( * ), - COUNT ( * ) FROM tab1 WHERE NULL IS NOT NULL +---- +0 +0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - COUNT ( * ), - COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL +---- +0 +0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - COUNT ( * ), - COUNT ( * ) FROM tab3 WHERE NULL IS NOT NULL +---- +0 +0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - COUNT ( * ), - COUNT ( * ) FROM tab4 WHERE NULL IS NOT NULL +---- +0 +0 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] III[I][I][I][I] diff --git a/data/sqlite/index/random/10/slt_good_10.slt b/data/sqlite/index/random/10/slt_good_10.slt index 4211395..0335390 100644 --- a/data/sqlite/index/random/10/slt_good_10.slt +++ b/data/sqlite/index/random/10/slt_good_10.slt @@ -3620,28 +3620,38 @@ SELECT * FROM tab4 AS cor0 WHERE NOT + col3 >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 6d66caf1580b190624ce045167f67cd5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \+ Int64\(57\) AS col5" at position 0 and "\(\- cor0\.col3\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 39 + + + 57 AS col5, - col3 AS col5 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL +---- +20 values hashing to 35bc4c5d2acc229e31aa218abbd6a067 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 6d66caf1580b190624ce045167f67cd5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \+ Int64\(57\) AS col5" at position 0 and "\(\- cor0\.col3\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 39 + + + 57 AS col5, - col3 AS col5 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL +---- +20 values hashing to 35bc4c5d2acc229e31aa218abbd6a067 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 6d66caf1580b190624ce045167f67cd5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \+ Int64\(57\) AS col5" at position 0 and "\(\- cor0\.col3\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 39 + + + 57 AS col5, - col3 AS col5 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL +---- +20 values hashing to 35bc4c5d2acc229e31aa218abbd6a067 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 6d66caf1580b190624ce045167f67cd5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \+ Int64\(57\) AS col5" at position 0 and "\(\- cor0\.col3\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 39 + + + 57 AS col5, - col3 AS col5 FROM tab3 AS cor0 WHERE ( NULL ) IS NULL +---- +20 values hashing to 35bc4c5d2acc229e31aa218abbd6a067 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 6d66caf1580b190624ce045167f67cd5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \+ Int64\(57\) AS col5" at position 0 and "\(\- cor0\.col3\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 39 + + + 57 AS col5, - col3 AS col5 FROM tab4 AS cor0 WHERE ( NULL ) IS NULL +---- +20 values hashing to 35bc4c5d2acc229e31aa218abbd6a067 query I rowsort label-595 SELECT DISTINCT + 1 * + col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL @@ -8211,32 +8221,47 @@ SELECT + 89 FROM tab4 AS cor0 WHERE NULL >= + col4 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col5" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 59 col5, + COUNT ( * ) AS col5 FROM tab0 AS cor0 WHERE 71 / - col0 >= NULL +---- +-59 +0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col5" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 59 col5, + COUNT ( * ) AS col5 FROM tab1 AS cor0 WHERE 71 / - col0 >= NULL +---- +-59 +0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col5" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 59 col5, + COUNT ( * ) AS col5 FROM tab2 AS cor0 WHERE 71 / - col0 >= NULL +---- +-59 +0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col5" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 59 col5, + COUNT ( * ) AS col5 FROM tab3 AS cor0 WHERE 71 / - col0 >= NULL +---- +-59 +0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col5" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 59 col5, + COUNT ( * ) AS col5 FROM tab4 AS cor0 WHERE 71 / - col0 >= NULL +---- +-59 +0 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] III[I][I][I][I] @@ -10084,24 +10109,29 @@ query error DataFusion error: Error during planning: Unary operator '\+' only su SELECT + col5 FROM tab4 AS cor0 WHERE NOT + 81 NOT BETWEEN + + col4 AND + col4 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* Int64\(94\) AS col0" at position 0 and "Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 * + ( + 94 ) AS col0, + 87 col0 FROM tab0 WHERE NOT ( NULL ) IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* Int64\(94\) AS col0" at position 0 and "Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 * + ( + 94 ) AS col0, + 87 col0 FROM tab1 WHERE NOT ( NULL ) IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* Int64\(94\) AS col0" at position 0 and "Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 * + ( + 94 ) AS col0, + 87 col0 FROM tab2 WHERE NOT ( NULL ) IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab3\.col0 \* Int64\(94\) AS col0" at position 0 and "Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 * + ( + 94 ) AS col0, + 87 col0 FROM tab3 WHERE NOT ( NULL ) IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab4\.col0 \* Int64\(94\) AS col0" at position 0 and "Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 * + ( + 94 ) AS col0, + 87 col0 FROM tab4 WHERE NOT ( NULL ) IS NULL +---- query I rowsort label-1650 SELECT + 73 * 54 * + + 18 AS col1 FROM tab0 WHERE CAST ( NULL AS INTEGER ) - + + 30 IS NULL @@ -15079,24 +15109,29 @@ SELECT ALL - ( + col3 ) AS col1 FROM tab4 AS cor0 WHERE NOT 94 / + ( 15 ) * + co ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 19 AS col2, 1 AS col2 FROM tab0 cor0 WHERE NOT col4 <= ( NULL ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 19 AS col2, 1 AS col2 FROM tab1 cor0 WHERE NOT col4 <= ( NULL ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 19 AS col2, 1 AS col2 FROM tab2 cor0 WHERE NOT col4 <= ( NULL ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 19 AS col2, 1 AS col2 FROM tab3 cor0 WHERE NOT col4 <= ( NULL ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 19 AS col2, 1 AS col2 FROM tab4 cor0 WHERE NOT col4 <= ( NULL ) +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -15465,28 +15500,38 @@ SELECT * FROM tab4 WHERE NOT + col0 - + - col0 + + - col3 * - col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 9a68165e491894763956033e4cd03513 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col0" at position 0 and "tab0\.col3 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 10 AS col0, + ( col3 ) AS col0 FROM tab0 WHERE NULL IS NULL +---- +20 values hashing to 14b916743314d7e6624c9f44a3fbfbc0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 9a68165e491894763956033e4cd03513 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col0" at position 0 and "tab1\.col3 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 10 AS col0, + ( col3 ) AS col0 FROM tab1 WHERE NULL IS NULL +---- +20 values hashing to 14b916743314d7e6624c9f44a3fbfbc0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 9a68165e491894763956033e4cd03513 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col0" at position 0 and "tab2\.col3 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 10 AS col0, + ( col3 ) AS col0 FROM tab2 WHERE NULL IS NULL +---- +20 values hashing to 14b916743314d7e6624c9f44a3fbfbc0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 9a68165e491894763956033e4cd03513 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col0" at position 0 and "tab3\.col3 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 10 AS col0, + ( col3 ) AS col0 FROM tab3 WHERE NULL IS NULL +---- +20 values hashing to 14b916743314d7e6624c9f44a3fbfbc0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 9a68165e491894763956033e4cd03513 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col0" at position 0 and "tab4\.col3 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 10 AS col0, + ( col3 ) AS col0 FROM tab4 WHERE NULL IS NULL +---- +20 values hashing to 14b916743314d7e6624c9f44a3fbfbc0 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -25884,24 +25929,29 @@ SELECT ALL * FROM tab4 AS cor0 WHERE 42 * + - 18 IS NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- cor0\.col1\) AS col5" at position 0 and "Int64\(\-76\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + - col0 * - col1 AS col5, - 76 col5 FROM tab0 AS cor0 WHERE - col1 + + 14 IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- cor0\.col1\) AS col5" at position 0 and "Int64\(\-76\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + - col0 * - col1 AS col5, - 76 col5 FROM tab1 AS cor0 WHERE - col1 + + 14 IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- cor0\.col1\) AS col5" at position 0 and "Int64\(\-76\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + - col0 * - col1 AS col5, - 76 col5 FROM tab2 AS cor0 WHERE - col1 + + 14 IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- cor0\.col1\) AS col5" at position 0 and "Int64\(\-76\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + - col0 * - col1 AS col5, - 76 col5 FROM tab3 AS cor0 WHERE - col1 + + 14 IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- cor0\.col1\) AS col5" at position 0 and "Int64\(\-76\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + - col0 * - col1 AS col5, - 76 col5 FROM tab4 AS cor0 WHERE - col1 + + 14 IS NULL +---- query I rowsort label-4235 SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NULL @@ -45589,44 +45639,54 @@ SELECT ALL + 81, ( - MAX ( 26 ) ) AS col0 FROM tab4 WHERE NOT - ( - col3 ) IS NU -26 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0, col0 FROM tab0 AS cor0 WHERE NOT 96 / + col4 <> - - col1 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0, col0 FROM tab1 AS cor0 WHERE NOT 96 / + col4 <> - - col1 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0, col0 FROM tab2 AS cor0 WHERE NOT 96 / + col4 <> - - col1 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0, col0 FROM tab3 AS cor0 WHERE NOT 96 / + col4 <> - - col1 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0, col0 FROM tab4 AS cor0 WHERE NOT 96 / + col4 <> - - col1 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 \* Int64\(4\) AS col1" at position 0 and "cor0\.col4 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + + col3 * 4 AS col1, + col4 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) = 65 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 \* Int64\(4\) AS col1" at position 0 and "cor0\.col4 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + + col3 * 4 AS col1, + col4 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) = 65 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 \* Int64\(4\) AS col1" at position 0 and "cor0\.col4 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + + col3 * 4 AS col1, + col4 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) = 65 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 \* Int64\(4\) AS col1" at position 0 and "cor0\.col4 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + + col3 * 4 AS col1, + col4 AS col1 FROM tab3 AS cor0 WHERE ( NULL ) = 65 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 \* Int64\(4\) AS col1" at position 0 and "cor0\.col4 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + + col3 * 4 AS col1, + col4 AS col1 FROM tab4 AS cor0 WHERE ( NULL ) = 65 +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] III[I][I][I][I] @@ -48504,24 +48564,29 @@ SELECT * FROM tab4 WHERE + 54 - col4 IS NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- cor0\.col0\) AS col3" at position 0 and "cor0\.col1 AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - col0 col3, + col1 AS col3 FROM tab0 AS cor0 WHERE NOT NULL IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- cor0\.col0\) AS col3" at position 0 and "cor0\.col1 AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - col0 col3, + col1 AS col3 FROM tab1 AS cor0 WHERE NOT NULL IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- cor0\.col0\) AS col3" at position 0 and "cor0\.col1 AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - col0 col3, + col1 AS col3 FROM tab2 AS cor0 WHERE NOT NULL IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- cor0\.col0\) AS col3" at position 0 and "cor0\.col1 AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - col0 col3, + col1 AS col3 FROM tab3 AS cor0 WHERE NOT NULL IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- cor0\.col0\) AS col3" at position 0 and "cor0\.col1 AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - col0 col3, + col1 AS col3 FROM tab4 AS cor0 WHERE NOT NULL IS NULL +---- query I rowsort label-7980 SELECT CAST ( NULL AS INTEGER ) AS col4 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + - 68 = - col1 @@ -57579,24 +57644,29 @@ SELECT 36 * + ( + ( 10 ) ) AS col4 FROM tab4 WHERE - + 22 <= ( - col4 ) ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col1" at position 0 and "cor0\.col3 \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 AS col1, col3 + col0 AS col1 FROM tab0 AS cor0 WHERE 70 NOT BETWEEN NULL AND ( NULL ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col1" at position 0 and "cor0\.col3 \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 AS col1, col3 + col0 AS col1 FROM tab1 AS cor0 WHERE 70 NOT BETWEEN NULL AND ( NULL ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col1" at position 0 and "cor0\.col3 \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 AS col1, col3 + col0 AS col1 FROM tab2 AS cor0 WHERE 70 NOT BETWEEN NULL AND ( NULL ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col1" at position 0 and "cor0\.col3 \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 AS col1, col3 + col0 AS col1 FROM tab3 AS cor0 WHERE 70 NOT BETWEEN NULL AND ( NULL ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col1" at position 0 and "cor0\.col3 \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 AS col1, col3 + col0 AS col1 FROM tab4 AS cor0 WHERE 70 NOT BETWEEN NULL AND ( NULL ) +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] III[I][I][I][I] diff --git a/data/sqlite/index/random/10/slt_good_11.slt b/data/sqlite/index/random/10/slt_good_11.slt index 166d6af..b049f66 100644 --- a/data/sqlite/index/random/10/slt_good_11.slt +++ b/data/sqlite/index/random/10/slt_good_11.slt @@ -25669,32 +25669,47 @@ SELECT 79 - + ( + 20 ) * + col3 AS col4 FROM tab4 AS cor0 WHERE col4 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col4" at position 0 and "Int64\(7\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col4, 7 AS col4 FROM tab0 WHERE NOT NULL >= + col1 +---- +0 +7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col4" at position 0 and "Int64\(7\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col4, 7 AS col4 FROM tab1 WHERE NOT NULL >= + col1 +---- +0 +7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col4" at position 0 and "Int64\(7\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col4, 7 AS col4 FROM tab2 WHERE NOT NULL >= + col1 +---- +0 +7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col4" at position 0 and "Int64\(7\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col4, 7 AS col4 FROM tab3 WHERE NOT NULL >= + col1 +---- +0 +7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col4" at position 0 and "Int64\(7\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col4, 7 AS col4 FROM tab4 WHERE NOT NULL >= + col1 +---- +0 +7 query I rowsort label-4190 SELECT 86 col5 FROM tab0 cor0 WHERE NOT col3 - - + ( ( - col1 ) ) IS NULL @@ -28644,32 +28659,47 @@ SELECT col4 FROM tab4 AS cor0 WHERE NULL < NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 78 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL +---- +-78 +10 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 78 AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL +---- +-78 +10 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 78 AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL +---- +-78 +10 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 78 AS col2, COUNT ( * ) AS col2 FROM tab3 AS cor0 WHERE NOT NULL IS NOT NULL +---- +-78 +10 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 78 AS col2, COUNT ( * ) AS col2 FROM tab4 AS cor0 WHERE NOT NULL IS NOT NULL +---- +-78 +10 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] III[I][I][I][I] @@ -32012,24 +32042,29 @@ SELECT ALL * FROM tab4 AS cor0 WHERE + col3 NOT BETWEEN NULL AND NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "Int64\(\-33\) \* Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 96 AS col2, - 33 * 82 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 81 * + col0 AND NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "Int64\(\-33\) \* Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 96 AS col2, - 33 * 82 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 81 * + col0 AND NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "Int64\(\-33\) \* Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 96 AS col2, - 33 * 82 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 81 * + col0 AND NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "Int64\(\-33\) \* Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 96 AS col2, - 33 * 82 AS col2 FROM tab3 AS cor0 WHERE NOT NULL BETWEEN + 81 * + col0 AND NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "Int64\(\-33\) \* Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 96 AS col2, - 33 * 82 AS col2 FROM tab4 AS cor0 WHERE NOT NULL BETWEEN + 81 * + col0 AND NULL +---- query I rowsort label-5245 SELECT - + col0 FROM tab0 WHERE - col1 IS NULL diff --git a/data/sqlite/index/random/10/slt_good_12.slt b/data/sqlite/index/random/10/slt_good_12.slt index b312ff8..bb00f03 100644 --- a/data/sqlite/index/random/10/slt_good_12.slt +++ b/data/sqlite/index/random/10/slt_good_12.slt @@ -5657,32 +5657,47 @@ NULL # 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\(DISTINCT \(\- tab0\.col1\)\)\)\) \* Int64\(66\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT - - MAX ( DISTINCT - col1 ) * + 66 AS col1, 51 AS col1 FROM tab0 WHERE NULL IS NOT NULL +---- +51 +NULL # 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\(DISTINCT \(\- tab1\.col1\)\)\)\) \* Int64\(66\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT - - MAX ( DISTINCT - col1 ) * + 66 AS col1, 51 AS col1 FROM tab1 WHERE NULL IS NOT NULL +---- +51 +NULL # 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\(DISTINCT \(\- tab2\.col1\)\)\)\) \* Int64\(66\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT - - MAX ( DISTINCT - col1 ) * + 66 AS col1, 51 AS col1 FROM tab2 WHERE NULL IS NOT NULL +---- +51 +NULL # 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\(DISTINCT \(\- tab3\.col1\)\)\)\) \* Int64\(66\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT - - MAX ( DISTINCT - col1 ) * + 66 AS col1, 51 AS col1 FROM tab3 WHERE NULL IS NOT NULL +---- +51 +NULL # 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\(DISTINCT \(\- tab4\.col1\)\)\)\) \* Int64\(66\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT - - MAX ( DISTINCT - col1 ) * + 66 AS col1, 51 AS col1 FROM tab4 WHERE NULL IS NOT NULL +---- +51 +NULL query I rowsort label-925 SELECT ALL 27 col3 FROM tab0 WHERE - col3 IS NULL diff --git a/data/sqlite/index/random/10/slt_good_13.slt b/data/sqlite/index/random/10/slt_good_13.slt index 68255b1..52db937 100644 --- a/data/sqlite/index/random/10/slt_good_13.slt +++ b/data/sqlite/index/random/10/slt_good_13.slt @@ -9031,24 +9031,29 @@ SELECT ALL * FROM tab4 WHERE NOT + col3 * - col1 + - 34 - - col3 <= NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col3" at position 0 and "cor0\.col0 AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col3, col0 col3 FROM tab0 cor0 WHERE NOT NULL IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col3" at position 0 and "cor0\.col0 AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col3, col0 col3 FROM tab1 cor0 WHERE NOT NULL IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col3" at position 0 and "cor0\.col0 AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col3, col0 col3 FROM tab2 cor0 WHERE NOT NULL IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col3" at position 0 and "cor0\.col0 AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col3, col0 col3 FROM tab3 cor0 WHERE NOT NULL IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col3" at position 0 and "cor0\.col0 AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col3, col0 col3 FROM tab4 cor0 WHERE NOT NULL IS NULL +---- query I rowsort label-1490 SELECT ALL - col0 + 97 col2 FROM tab0 WHERE NULL = - 77 - + col0 @@ -13472,28 +13477,38 @@ SELECT DISTINCT - ( + col3 ) AS col5 FROM tab4 AS cor0 WHERE 30 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 9abf10bb61134727f52fe8a3c86b8059 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col3" at position 0 and "cor0\.col0 AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 98 AS col3, col0 AS col3 FROM tab0 cor0 WHERE + 24 IS NOT NULL +---- +20 values hashing to 105f4e79eac4040a78a2184229376a3e # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 9abf10bb61134727f52fe8a3c86b8059 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col3" at position 0 and "cor0\.col0 AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 98 AS col3, col0 AS col3 FROM tab1 cor0 WHERE + 24 IS NOT NULL +---- +20 values hashing to 105f4e79eac4040a78a2184229376a3e # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 9abf10bb61134727f52fe8a3c86b8059 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col3" at position 0 and "cor0\.col0 AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 98 AS col3, col0 AS col3 FROM tab2 cor0 WHERE + 24 IS NOT NULL +---- +20 values hashing to 105f4e79eac4040a78a2184229376a3e # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 9abf10bb61134727f52fe8a3c86b8059 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col3" at position 0 and "cor0\.col0 AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 98 AS col3, col0 AS col3 FROM tab3 cor0 WHERE + 24 IS NOT NULL +---- +20 values hashing to 105f4e79eac4040a78a2184229376a3e # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 9abf10bb61134727f52fe8a3c86b8059 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col3" at position 0 and "cor0\.col0 AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 98 AS col3, col0 AS col3 FROM tab4 cor0 WHERE + 24 IS NOT NULL +---- +20 values hashing to 105f4e79eac4040a78a2184229376a3e query I rowsort label-2225 SELECT CAST ( NULL AS INTEGER ) col5 FROM tab0 AS cor0 WHERE ( NOT NULL > + - 5 + 88 * + 88 ) @@ -16521,24 +16536,29 @@ SELECT ALL * FROM tab4 AS cor0 WHERE col1 IN ( col0 ) ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- cor0\.col1\)\) AS Int32\) \* cor0\.col0 \+ \(\- Int64\(\-2\)\) AS col4" at position 0 and "Int64\(60\) \+ \(\- \(\- cor0\.col4\)\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT CAST ( - - col1 AS INTEGER ) * + col0 + - - 2 AS col4, 60 + - - col4 col4 FROM tab0 AS cor0 WHERE ( NOT 92 IS NOT NULL ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- cor0\.col1\)\) AS Int32\) \* cor0\.col0 \+ \(\- Int64\(\-2\)\) AS col4" at position 0 and "Int64\(60\) \+ \(\- \(\- cor0\.col4\)\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT CAST ( - - col1 AS INTEGER ) * + col0 + - - 2 AS col4, 60 + - - col4 col4 FROM tab1 AS cor0 WHERE ( NOT 92 IS NOT NULL ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- cor0\.col1\)\) AS Int32\) \* cor0\.col0 \+ \(\- Int64\(\-2\)\) AS col4" at position 0 and "Int64\(60\) \+ \(\- \(\- cor0\.col4\)\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT CAST ( - - col1 AS INTEGER ) * + col0 + - - 2 AS col4, 60 + - - col4 col4 FROM tab2 AS cor0 WHERE ( NOT 92 IS NOT NULL ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- cor0\.col1\)\) AS Int32\) \* cor0\.col0 \+ \(\- Int64\(\-2\)\) AS col4" at position 0 and "Int64\(60\) \+ \(\- \(\- cor0\.col4\)\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT CAST ( - - col1 AS INTEGER ) * + col0 + - - 2 AS col4, 60 + - - col4 col4 FROM tab3 AS cor0 WHERE ( NOT 92 IS NOT NULL ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- cor0\.col1\)\) AS Int32\) \* cor0\.col0 \+ \(\- Int64\(\-2\)\) AS col4" at position 0 and "Int64\(60\) \+ \(\- \(\- cor0\.col4\)\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT CAST ( - - col1 AS INTEGER ) * + col0 + - - 2 AS col4, 60 + - - col4 col4 FROM tab4 AS cor0 WHERE ( NOT 92 IS NOT NULL ) +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] III[I][I][I][I] @@ -42127,28 +42147,38 @@ SELECT ALL * FROM tab4 AS cor0 WHERE NULL IN ( col0 - 82 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to a9174cca2591a1143665aa739d066f41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(\-3\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 * - 3 AS col2, col0 col2 FROM tab0 cor0 WHERE + col0 IS NOT NULL +---- +20 values hashing to 8bda00a20257e69653cbb0dc70b305d5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to a9174cca2591a1143665aa739d066f41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(\-3\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 * - 3 AS col2, col0 col2 FROM tab1 cor0 WHERE + col0 IS NOT NULL +---- +20 values hashing to 8bda00a20257e69653cbb0dc70b305d5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to a9174cca2591a1143665aa739d066f41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(\-3\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 * - 3 AS col2, col0 col2 FROM tab2 cor0 WHERE + col0 IS NOT NULL +---- +20 values hashing to 8bda00a20257e69653cbb0dc70b305d5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to a9174cca2591a1143665aa739d066f41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(\-3\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 * - 3 AS col2, col0 col2 FROM tab3 cor0 WHERE + col0 IS NOT NULL +---- +20 values hashing to 8bda00a20257e69653cbb0dc70b305d5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to a9174cca2591a1143665aa739d066f41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(\-3\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 * - 3 AS col2, col0 col2 FROM tab4 cor0 WHERE + col0 IS NOT NULL +---- +20 values hashing to 8bda00a20257e69653cbb0dc70b305d5 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] III[I][I][I][I] @@ -54126,24 +54156,29 @@ SELECT col3 + + 99, + col0 AS col0 FROM tab4 WHERE - col1 IS NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col4\) \+ Int64\(26\) \+ Int64\(\-92\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - col4 + 26 + - 92 AS col2, + col0 AS col2 FROM tab0 AS cor0 WHERE NOT 81 IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col4\) \+ Int64\(26\) \+ Int64\(\-92\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - col4 + 26 + - 92 AS col2, + col0 AS col2 FROM tab1 AS cor0 WHERE NOT 81 IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col4\) \+ Int64\(26\) \+ Int64\(\-92\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - col4 + 26 + - 92 AS col2, + col0 AS col2 FROM tab2 AS cor0 WHERE NOT 81 IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col4\) \+ Int64\(26\) \+ Int64\(\-92\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - col4 + 26 + - 92 AS col2, + col0 AS col2 FROM tab3 AS cor0 WHERE NOT 81 IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col4\) \+ Int64\(26\) \+ Int64\(\-92\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - col4 + 26 + - 92 AS col2, + col0 AS col2 FROM tab4 AS cor0 WHERE NOT 81 IS NOT NULL +---- query I rowsort label-8980 SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab0 WHERE - + col4 + - col1 / + col0 IS NOT NULL diff --git a/data/sqlite/index/random/10/slt_good_14.slt b/data/sqlite/index/random/10/slt_good_14.slt index 0267a97..9af4142 100644 --- a/data/sqlite/index/random/10/slt_good_14.slt +++ b/data/sqlite/index/random/10/slt_good_14.slt @@ -8957,24 +8957,29 @@ SELECT ALL * FROM tab4 WHERE NOT NULL <> - 78 * - + col1 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col2" at position 0 and "\(\- tab0\.col3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 98 AS col2, - col3 AS col2 FROM tab0 WHERE NOT col4 IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col2" at position 0 and "\(\- tab1\.col3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 98 AS col2, - col3 AS col2 FROM tab1 WHERE NOT col4 IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col2" at position 0 and "\(\- tab2\.col3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 98 AS col2, - col3 AS col2 FROM tab2 WHERE NOT col4 IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col2" at position 0 and "\(\- tab3\.col3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 98 AS col2, - col3 AS col2 FROM tab3 WHERE NOT col4 IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col2" at position 0 and "\(\- tab4\.col3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 98 AS col2, - col3 AS col2 FROM tab4 WHERE NOT col4 IS NOT NULL +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -19898,28 +19903,38 @@ SELECT DISTINCT - - 91 AS col3 FROM tab4 AS cor0 WHERE NOT NULL IN ( 33, col0 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 02b1e9761fbec067dbe2d708a5b3ffc6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col3\) AS col5" at position 0 and "Int64\(78\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col3 AS col5, 78 AS col5 FROM tab0 cor0 WHERE 35 + col0 IS NOT NULL +---- +20 values hashing to f982f955ddfd73f4e425d33f495c058a # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 02b1e9761fbec067dbe2d708a5b3ffc6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col3\) AS col5" at position 0 and "Int64\(78\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col3 AS col5, 78 AS col5 FROM tab1 cor0 WHERE 35 + col0 IS NOT NULL +---- +20 values hashing to f982f955ddfd73f4e425d33f495c058a # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 02b1e9761fbec067dbe2d708a5b3ffc6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col3\) AS col5" at position 0 and "Int64\(78\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col3 AS col5, 78 AS col5 FROM tab2 cor0 WHERE 35 + col0 IS NOT NULL +---- +20 values hashing to f982f955ddfd73f4e425d33f495c058a # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 02b1e9761fbec067dbe2d708a5b3ffc6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col3\) AS col5" at position 0 and "Int64\(78\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col3 AS col5, 78 AS col5 FROM tab3 cor0 WHERE 35 + col0 IS NOT NULL +---- +20 values hashing to f982f955ddfd73f4e425d33f495c058a # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 02b1e9761fbec067dbe2d708a5b3ffc6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col3\) AS col5" at position 0 and "Int64\(78\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col3 AS col5, 78 AS col5 FROM tab4 cor0 WHERE 35 + col0 IS NOT NULL +---- +20 values hashing to f982f955ddfd73f4e425d33f495c058a query I rowsort label-3230 SELECT - 43 * - + col0 FROM tab0 AS cor0 WHERE NOT NULL = col1 * - col0 @@ -45277,24 +45292,29 @@ SELECT DISTINCT + COUNT ( * ) FROM tab4 AS cor0 WHERE 69 IS NULL 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col4\) AS col4" at position 0 and "cor0\.col2 AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RT valuesort SELECT - col4 AS col4, col2 AS col4 FROM tab0 cor0 WHERE + col1 IN ( 51 * + 49, col0, - col1, + 6 * - col0 + + - col0 ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col4\) AS col4" at position 0 and "cor0\.col2 AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RT valuesort SELECT - col4 AS col4, col2 AS col4 FROM tab1 cor0 WHERE + col1 IN ( 51 * + 49, col0, - col1, + 6 * - col0 + + - col0 ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col4\) AS col4" at position 0 and "cor0\.col2 AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RT valuesort SELECT - col4 AS col4, col2 AS col4 FROM tab2 cor0 WHERE + col1 IN ( 51 * + 49, col0, - col1, + 6 * - col0 + + - col0 ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col4\) AS col4" at position 0 and "cor0\.col2 AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RT valuesort SELECT - col4 AS col4, col2 AS col4 FROM tab3 cor0 WHERE + col1 IN ( 51 * + 49, col0, - col1, + 6 * - col0 + + - col0 ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col4\) AS col4" at position 0 and "cor0\.col2 AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RT valuesort SELECT - col4 AS col4, col2 AS col4 FROM tab4 cor0 WHERE + col1 IN ( 51 * + 49, col0, - col1, + 6 * - col0 + + - col0 ) +---- query I rowsort label-7445 SELECT - MAX ( ALL - - col0 ) AS col5 FROM tab0 WHERE NOT 1 IS NULL diff --git a/data/sqlite/index/random/10/slt_good_2.slt b/data/sqlite/index/random/10/slt_good_2.slt index d0f18d4..eadd974 100644 --- a/data/sqlite/index/random/10/slt_good_2.slt +++ b/data/sqlite/index/random/10/slt_good_2.slt @@ -21569,24 +21569,29 @@ SELECT ALL + col0 FROM tab4 AS cor0 WHERE 60 * + ( + col1 ) IS NOT NULL 10 values hashing to b205cfd47bf72e1ebec7d5c99f76d787 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 AS col0, - 38 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 AS col0, - 38 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 AS col0, - 38 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 AS col0, - 38 AS col0 FROM tab3 AS cor0 WHERE NULL IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 AS col0, - 38 AS col0 FROM tab4 AS cor0 WHERE NULL IS NOT NULL +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -27194,24 +27199,29 @@ SELECT DISTINCT - + 55 * + CAST ( NULL AS INTEGER ) - - 11 * + + col1 col0 FROM NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, col0 AS col0 FROM tab0 WHERE NOT NULL IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, col0 AS col0 FROM tab1 WHERE NOT NULL IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, col0 AS col0 FROM tab2 WHERE NOT NULL IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab3\.col0" at position 0 and "tab3\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, col0 AS col0 FROM tab3 WHERE NOT NULL IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab4\.col0" at position 0 and "tab4\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, col0 AS col0 FROM tab4 WHERE NOT NULL IS NULL +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] III[I][I][I][I] @@ -44074,24 +44084,29 @@ SELECT ALL * FROM tab4 AS cor0 WHERE col4 IN ( 50, 72, - col4 ) ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 AS col5" at position 0 and "Int64\(12\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col3 AS col5, 12 AS col5 FROM tab0 AS cor0 WHERE - CAST ( + - col4 AS INTEGER ) IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 AS col5" at position 0 and "Int64\(12\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col3 AS col5, 12 AS col5 FROM tab1 AS cor0 WHERE - CAST ( + - col4 AS INTEGER ) IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 AS col5" at position 0 and "Int64\(12\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col3 AS col5, 12 AS col5 FROM tab2 AS cor0 WHERE - CAST ( + - col4 AS INTEGER ) IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 AS col5" at position 0 and "Int64\(12\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col3 AS col5, 12 AS col5 FROM tab3 AS cor0 WHERE - CAST ( + - col4 AS INTEGER ) IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 AS col5" at position 0 and "Int64\(12\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col3 AS col5, 12 AS col5 FROM tab4 AS cor0 WHERE - CAST ( + - col4 AS INTEGER ) IS NULL +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] diff --git a/data/sqlite/index/random/10/slt_good_3.slt b/data/sqlite/index/random/10/slt_good_3.slt index 15d0f6d..6bf5978 100644 --- a/data/sqlite/index/random/10/slt_good_3.slt +++ b/data/sqlite/index/random/10/slt_good_3.slt @@ -14769,24 +14769,29 @@ SELECT + COUNT ( * ) AS col4 FROM tab4 AS cor0 WHERE NOT NULL IS NOT NULL 10 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col5" at position 0 and "cor0\.col2 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT 80 AS col5, col2 AS col5 FROM tab0 AS cor0 WHERE NOT NULL IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col5" at position 0 and "cor0\.col2 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT 80 AS col5, col2 AS col5 FROM tab1 AS cor0 WHERE NOT NULL IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col5" at position 0 and "cor0\.col2 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT 80 AS col5, col2 AS col5 FROM tab2 AS cor0 WHERE NOT NULL IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col5" at position 0 and "cor0\.col2 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT 80 AS col5, col2 AS col5 FROM tab3 AS cor0 WHERE NOT NULL IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col5" at position 0 and "cor0\.col2 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT 80 AS col5, col2 AS col5 FROM tab4 AS cor0 WHERE NOT NULL IS NULL +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] IIIIII[I][I][I][I][I][I][I][I] @@ -19774,24 +19779,29 @@ SELECT + 75 col1 FROM tab4 AS cor0 WHERE NOT ( NULL ) IS NOT NULL 10 values hashing to 63b7e8caac181a00e4a6ea4ee20dfda0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col5" at position 0 and "Int64\(62\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col5, 62 AS col5 FROM tab0 AS cor0 WHERE NOT NULL IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col5" at position 0 and "Int64\(62\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col5, 62 AS col5 FROM tab1 AS cor0 WHERE NOT NULL IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col5" at position 0 and "Int64\(62\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col5, 62 AS col5 FROM tab2 AS cor0 WHERE NOT NULL IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col5" at position 0 and "Int64\(62\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col5, 62 AS col5 FROM tab3 AS cor0 WHERE NOT NULL IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col5" at position 0 and "Int64\(62\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col5, 62 AS col5 FROM tab4 AS cor0 WHERE NOT NULL IS NULL +---- query I rowsort label-3215 SELECT DISTINCT - 22 AS col4 FROM tab0 AS cor0 WHERE NOT + 69 BETWEEN NULL AND - - col3 @@ -35879,24 +35889,29 @@ SELECT - col0, col3 FROM tab4 AS cor0 WHERE NULL IS NULL 20 values hashing to ceae0ad6099032f996d780d3117b23a4 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col4 \* Int64\(\-12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RR valuesort SELECT - + col1 AS col0, + col4 * - 12 AS col0 FROM tab0 AS cor0 WHERE NOT CAST ( 70 AS INTEGER ) + col1 BETWEEN ( - - col0 ) + - col1 AND NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col4 \* Int64\(\-12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RR valuesort SELECT - + col1 AS col0, + col4 * - 12 AS col0 FROM tab1 AS cor0 WHERE NOT CAST ( 70 AS INTEGER ) + col1 BETWEEN ( - - col0 ) + - col1 AND NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col4 \* Int64\(\-12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RR valuesort SELECT - + col1 AS col0, + col4 * - 12 AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( 70 AS INTEGER ) + col1 BETWEEN ( - - col0 ) + - col1 AND NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col4 \* Int64\(\-12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RR valuesort SELECT - + col1 AS col0, + col4 * - 12 AS col0 FROM tab3 AS cor0 WHERE NOT CAST ( 70 AS INTEGER ) + col1 BETWEEN ( - - col0 ) + - col1 AND NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col4 \* Int64\(\-12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RR valuesort SELECT - + col1 AS col0, + col4 * - 12 AS col0 FROM tab4 AS cor0 WHERE NOT CAST ( 70 AS INTEGER ) + col1 BETWEEN ( - - col0 ) + - col1 AND NULL +---- query II rowsort label-5895 SELECT ALL + - 14 AS col2, - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL @@ -54624,24 +54639,29 @@ SELECT - + col1 AS col1 FROM tab4 WHERE NOT NULL < NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col4\) AS col1" at position 0 and "Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - + col4 AS col1, ( - 32 ) AS col1 FROM tab0 cor0 WHERE CAST ( col1 AS INTEGER ) * - 24 > col4 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col4\) AS col1" at position 0 and "Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - + col4 AS col1, ( - 32 ) AS col1 FROM tab1 cor0 WHERE CAST ( col1 AS INTEGER ) * - 24 > col4 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col4\) AS col1" at position 0 and "Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - + col4 AS col1, ( - 32 ) AS col1 FROM tab2 cor0 WHERE CAST ( col1 AS INTEGER ) * - 24 > col4 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col4\) AS col1" at position 0 and "Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - + col4 AS col1, ( - 32 ) AS col1 FROM tab3 cor0 WHERE CAST ( col1 AS INTEGER ) * - 24 > col4 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col4\) AS col1" at position 0 and "Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - + col4 AS col1, ( - 32 ) AS col1 FROM tab4 cor0 WHERE CAST ( col1 AS INTEGER ) * - 24 > col4 +---- # Postgresql - Postgres error: db error: ERROR: operator does not exist: + text # Postgresql - HINT: No operator matches the given name and argument type. You might need to add an explicit type cast. diff --git a/data/sqlite/index/random/10/slt_good_4.slt b/data/sqlite/index/random/10/slt_good_4.slt index c9de2e0..82ba48a 100644 --- a/data/sqlite/index/random/10/slt_good_4.slt +++ b/data/sqlite/index/random/10/slt_good_4.slt @@ -7290,24 +7290,29 @@ SELECT * FROM tab4 AS cor0 WHERE + 76 <= NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "\(\- cor0\.col3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 38 AS col1, - col3 AS col1 FROM tab0 AS cor0 WHERE - 26 * + + col0 IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "\(\- cor0\.col3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 38 AS col1, - col3 AS col1 FROM tab1 AS cor0 WHERE - 26 * + + col0 IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "\(\- cor0\.col3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 38 AS col1, - col3 AS col1 FROM tab2 AS cor0 WHERE - 26 * + + col0 IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "\(\- cor0\.col3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 38 AS col1, - col3 AS col1 FROM tab3 AS cor0 WHERE - 26 * + + col0 IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "\(\- cor0\.col3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 38 AS col1, - col3 AS col1 FROM tab4 AS cor0 WHERE - 26 * + + col0 IS NULL +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] III[I][I][I][I] @@ -19950,24 +19955,29 @@ SELECT - 22 AS col3 FROM tab4 WHERE NOT NULL IS NOT NULL 10 values hashing to 92c9f496e0eac186e7242442d8c56320 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col3 \+ tab0\.col1 \* Int64\(\-30\) AS col3" at position 0 and "Int64\(12\) \+ Int64\(81\) \* Int64\(\-8\) AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT col3 + + col1 * + - 30 AS col3, + 12 + + + 81 * - 8 col3 FROM tab0 WHERE NOT + + 63 IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col3 \+ tab1\.col1 \* Int64\(\-30\) AS col3" at position 0 and "Int64\(12\) \+ Int64\(81\) \* Int64\(\-8\) AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT col3 + + col1 * + - 30 AS col3, + 12 + + + 81 * - 8 col3 FROM tab1 WHERE NOT + + 63 IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col3 \+ tab2\.col1 \* Int64\(\-30\) AS col3" at position 0 and "Int64\(12\) \+ Int64\(81\) \* Int64\(\-8\) AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT col3 + + col1 * + - 30 AS col3, + 12 + + + 81 * - 8 col3 FROM tab2 WHERE NOT + + 63 IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab3\.col3 \+ tab3\.col1 \* Int64\(\-30\) AS col3" at position 0 and "Int64\(12\) \+ Int64\(81\) \* Int64\(\-8\) AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT col3 + + col1 * + - 30 AS col3, + 12 + + + 81 * - 8 col3 FROM tab3 WHERE NOT + + 63 IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab4\.col3 \+ tab4\.col1 \* Int64\(\-30\) AS col3" at position 0 and "Int64\(12\) \+ Int64\(81\) \* Int64\(\-8\) AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT col3 + + col1 * + - 30 AS col3, + 12 + + + 81 * - 8 col3 FROM tab4 WHERE NOT + + 63 IS NOT NULL +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] III[I][I][I][I] @@ -35430,24 +35440,29 @@ SELECT ALL + + CAST ( NULL AS INTEGER ) FROM tab4 AS cor0 WHERE NOT - ( col4 ) < ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col4 AS col5" at position 0 and "Int64\(6\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + col4 col5, 6 col5 FROM tab0 AS cor0 WHERE NOT + col3 <> + col0 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col4 AS col5" at position 0 and "Int64\(6\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + col4 col5, 6 col5 FROM tab1 AS cor0 WHERE NOT + col3 <> + col0 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col4 AS col5" at position 0 and "Int64\(6\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + col4 col5, 6 col5 FROM tab2 AS cor0 WHERE NOT + col3 <> + col0 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col4 AS col5" at position 0 and "Int64\(6\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + col4 col5, 6 col5 FROM tab3 AS cor0 WHERE NOT + col3 <> + col0 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col4 AS col5" at position 0 and "Int64\(6\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + col4 col5, 6 col5 FROM tab4 AS cor0 WHERE NOT + col3 <> + col0 +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] III[I][I][I][I] @@ -41385,24 +41400,29 @@ query error DataFusion error: Schema error: Schema contains qualified field name SELECT DISTINCT col0, - col0 col0 FROM tab4 AS cor0 WHERE NOT ( NULL ) >= NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col4 AS col5" at position 0 and "CAST\(NULL AS Int32\) \* cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + col4 AS col5, CAST ( NULL AS INTEGER ) * + + col3 AS col5 FROM tab0 AS cor0 WHERE NULL IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col4 AS col5" at position 0 and "CAST\(NULL AS Int32\) \* cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + col4 AS col5, CAST ( NULL AS INTEGER ) * + + col3 AS col5 FROM tab1 AS cor0 WHERE NULL IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col4 AS col5" at position 0 and "CAST\(NULL AS Int32\) \* cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + col4 AS col5, CAST ( NULL AS INTEGER ) * + + col3 AS col5 FROM tab2 AS cor0 WHERE NULL IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col4 AS col5" at position 0 and "CAST\(NULL AS Int32\) \* cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + col4 AS col5, CAST ( NULL AS INTEGER ) * + + col3 AS col5 FROM tab3 AS cor0 WHERE NULL IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col4 AS col5" at position 0 and "CAST\(NULL AS Int32\) \* cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + col4 AS col5, CAST ( NULL AS INTEGER ) * + + col3 AS col5 FROM tab4 AS cor0 WHERE NULL IS NOT NULL +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] III[I][I][I][I] @@ -42612,32 +42632,47 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col3, 37 AS col3 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) > NULL +---- +0 +37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col3" at position 0 and "Int64\(37\) AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col3, 37 AS col3 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) > NULL +---- +0 +37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col3" at position 0 and "Int64\(37\) AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col3, 37 AS col3 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) > NULL +---- +0 +37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col3" at position 0 and "Int64\(37\) AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col3, 37 AS col3 FROM tab3 WHERE - CAST ( NULL AS INTEGER ) > NULL +---- +0 +37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col3" at position 0 and "Int64\(37\) AS col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col3, 37 AS col3 FROM tab4 WHERE - CAST ( NULL AS INTEGER ) > NULL +---- +0 +37 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I][I] @@ -50020,24 +50055,29 @@ SELECT - 31 AS col5, col2 FROM tab4 AS cor0 WHERE NOT NULL IS NOT NULL 20 values hashing to 1213477bc10cad940485827b0c5e6a07 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col4\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RT valuesort SELECT ALL - col4 AS col0, col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= + col0 + - col1 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col4\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RT valuesort SELECT ALL - col4 AS col0, col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= + col0 + - col1 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col4\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RT valuesort SELECT ALL - col4 AS col0, col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= + col0 + - col1 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col4\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RT valuesort SELECT ALL - col4 AS col0, col2 AS col0 FROM tab3 AS cor0 WHERE NOT NULL >= + col0 + - col1 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col4\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RT valuesort SELECT ALL - col4 AS col0, col2 AS col0 FROM tab4 AS cor0 WHERE NOT NULL >= + col0 + - col1 +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] III[I][I][I][I] diff --git a/data/sqlite/index/random/10/slt_good_5.slt b/data/sqlite/index/random/10/slt_good_5.slt index 84b92e9..ad3bc0a 100644 --- a/data/sqlite/index/random/10/slt_good_5.slt +++ b/data/sqlite/index/random/10/slt_good_5.slt @@ -4449,24 +4449,29 @@ SELECT * FROM tab4 AS cor0 WHERE NULL = + 30 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ \(\- Int64\(9\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 + - + 9 AS col0, + ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 WHERE NOT col2 IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ \(\- Int64\(9\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 + - + 9 AS col0, + ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 WHERE NOT col2 IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ \(\- Int64\(9\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 + - + 9 AS col0, + ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 WHERE NOT col2 IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ \(\- Int64\(9\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 + - + 9 AS col0, + ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab3 WHERE NOT col2 IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ \(\- Int64\(9\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 + - + 9 AS col0, + ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab4 WHERE NOT col2 IS NOT NULL +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -41549,24 +41554,29 @@ SELECT ALL 1 + + 4 + + + col1 FROM tab4 cor0 WHERE NOT NULL BETWEEN col0 + CAST ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(13\)\) AS Int32\)\) AS col4" at position 0 and "cor0\.col1 AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - CAST ( - + 13 AS INTEGER ) AS col4, col1 col4 FROM tab0 cor0 WHERE NULL >= ( NULL ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(13\)\) AS Int32\)\) AS col4" at position 0 and "cor0\.col1 AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - CAST ( - + 13 AS INTEGER ) AS col4, col1 col4 FROM tab1 cor0 WHERE NULL >= ( NULL ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(13\)\) AS Int32\)\) AS col4" at position 0 and "cor0\.col1 AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - CAST ( - + 13 AS INTEGER ) AS col4, col1 col4 FROM tab2 cor0 WHERE NULL >= ( NULL ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(13\)\) AS Int32\)\) AS col4" at position 0 and "cor0\.col1 AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - CAST ( - + 13 AS INTEGER ) AS col4, col1 col4 FROM tab3 cor0 WHERE NULL >= ( NULL ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(13\)\) AS Int32\)\) AS col4" at position 0 and "cor0\.col1 AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - CAST ( - + 13 AS INTEGER ) AS col4, col1 col4 FROM tab4 cor0 WHERE NULL >= ( NULL ) +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] III[I][I][I][I] diff --git a/data/sqlite/index/random/10/slt_good_6.slt b/data/sqlite/index/random/10/slt_good_6.slt index 1577a35..3d326ea 100644 --- a/data/sqlite/index/random/10/slt_good_6.slt +++ b/data/sqlite/index/random/10/slt_good_6.slt @@ -7949,24 +7949,29 @@ SELECT * FROM tab4 cor0 WHERE ( NULL ) IS NOT NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col4" at position 0 and "Int64\(39\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 66 AS col4, + 39 AS col4 FROM tab0 AS cor0 WHERE 57 IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col4" at position 0 and "Int64\(39\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 66 AS col4, + 39 AS col4 FROM tab1 AS cor0 WHERE 57 IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col4" at position 0 and "Int64\(39\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 66 AS col4, + 39 AS col4 FROM tab2 AS cor0 WHERE 57 IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col4" at position 0 and "Int64\(39\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 66 AS col4, + 39 AS col4 FROM tab3 AS cor0 WHERE 57 IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col4" at position 0 and "Int64\(39\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 66 AS col4, + 39 AS col4 FROM tab4 AS cor0 WHERE 57 IS NULL +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] III[I][I][I][I] @@ -14069,24 +14074,29 @@ SELECT ALL col0 AS col2 FROM tab4 WHERE NULL IS NOT NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col4" at position 0 and "\(\- tab0\.col1\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 10 AS col4, - col1 col4 FROM tab0 WHERE NOT + col3 IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col4" at position 0 and "\(\- tab1\.col1\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 10 AS col4, - col1 col4 FROM tab1 WHERE NOT + col3 IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col4" at position 0 and "\(\- tab2\.col1\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 10 AS col4, - col1 col4 FROM tab2 WHERE NOT + col3 IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col4" at position 0 and "\(\- tab3\.col1\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 10 AS col4, - col1 col4 FROM tab3 WHERE NOT + col3 IS NOT NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col4" at position 0 and "\(\- tab4\.col1\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 10 AS col4, - col1 col4 FROM tab4 WHERE NOT + col3 IS NOT NULL +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] III[I][I][I][I] @@ -21979,24 +21989,29 @@ SELECT 6 AS col2 FROM tab4 AS cor0 WHERE NOT col5 IS NOT NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col3\) AS Float64\)" at position 0 and "\(\- cor0\.col3\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + CAST ( - col3 AS FLOAT8 ), - col3 FROM tab0 AS cor0 WHERE NOT NULL IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col3\) AS Float64\)" at position 0 and "\(\- cor0\.col3\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + CAST ( - col3 AS FLOAT8 ), - col3 FROM tab1 AS cor0 WHERE NOT NULL IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col3\) AS Float64\)" at position 0 and "\(\- cor0\.col3\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + CAST ( - col3 AS FLOAT8 ), - col3 FROM tab2 AS cor0 WHERE NOT NULL IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col3\) AS Float64\)" at position 0 and "\(\- cor0\.col3\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + CAST ( - col3 AS FLOAT8 ), - col3 FROM tab3 AS cor0 WHERE NOT NULL IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col3\) AS Float64\)" at position 0 and "\(\- cor0\.col3\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + CAST ( - col3 AS FLOAT8 ), - col3 FROM tab4 AS cor0 WHERE NOT NULL IS NULL +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] III[I][I][I][I] @@ -33749,24 +33764,29 @@ SELECT DISTINCT 73 col3 FROM tab4 AS cor0 WHERE NOT NULL IS NOT NULL 73 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-26\)\) \* cor0\.col0 \+ \(\- cor0\.col0\) \+ cor0\.col0 \* \(\- \(\- cor0\.col4\)\) AS col4" at position 0 and "\(\- \(\- Int64\(38\)\)\) / Int64\(\-85\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - - 26 * + col0 + - ( + col0 ) + + col0 * - - col4 AS col4, - ( - + ( + 38 ) ) / - 85 AS col4 FROM tab0 AS cor0 WHERE NOT col0 <> - col4 + - 46 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-26\)\) \* cor0\.col0 \+ \(\- cor0\.col0\) \+ cor0\.col0 \* \(\- \(\- cor0\.col4\)\) AS col4" at position 0 and "\(\- \(\- Int64\(38\)\)\) / Int64\(\-85\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - - 26 * + col0 + - ( + col0 ) + + col0 * - - col4 AS col4, - ( - + ( + 38 ) ) / - 85 AS col4 FROM tab1 AS cor0 WHERE NOT col0 <> - col4 + - 46 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-26\)\) \* cor0\.col0 \+ \(\- cor0\.col0\) \+ cor0\.col0 \* \(\- \(\- cor0\.col4\)\) AS col4" at position 0 and "\(\- \(\- Int64\(38\)\)\) / Int64\(\-85\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - - 26 * + col0 + - ( + col0 ) + + col0 * - - col4 AS col4, - ( - + ( + 38 ) ) / - 85 AS col4 FROM tab2 AS cor0 WHERE NOT col0 <> - col4 + - 46 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-26\)\) \* cor0\.col0 \+ \(\- cor0\.col0\) \+ cor0\.col0 \* \(\- \(\- cor0\.col4\)\) AS col4" at position 0 and "\(\- \(\- Int64\(38\)\)\) / Int64\(\-85\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - - 26 * + col0 + - ( + col0 ) + + col0 * - - col4 AS col4, - ( - + ( + 38 ) ) / - 85 AS col4 FROM tab3 AS cor0 WHERE NOT col0 <> - col4 + - 46 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-26\)\) \* cor0\.col0 \+ \(\- cor0\.col0\) \+ cor0\.col0 \* \(\- \(\- cor0\.col4\)\) AS col4" at position 0 and "\(\- \(\- Int64\(38\)\)\) / Int64\(\-85\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - - 26 * + col0 + - ( + col0 ) + + col0 * - - col4 AS col4, - ( - + ( + 38 ) ) / - 85 AS col4 FROM tab4 AS cor0 WHERE NOT col0 <> - col4 + - 46 +---- query I rowsort label-5525 SELECT ALL - 42 FROM tab0 AS cor0 WHERE NOT CAST ( 78 AS INTEGER ) * 42 * + 24 IS NULL @@ -46875,28 +46895,38 @@ SELECT - col1 FROM tab4 WHERE NULL BETWEEN col4 * + + 51 - + CAST ( NULL AS INTE # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to d45197c09250d72eb99631b9370306e2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 AS col5" at position 0 and "cor0\.col2 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT + col3 col5, col2 col5 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL +---- +20 values hashing to 1657180952ae5660fde69e1e8999e2d3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to d45197c09250d72eb99631b9370306e2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 AS col5" at position 0 and "cor0\.col2 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT + col3 col5, col2 col5 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL +---- +20 values hashing to 1657180952ae5660fde69e1e8999e2d3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to d45197c09250d72eb99631b9370306e2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 AS col5" at position 0 and "cor0\.col2 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT + col3 col5, col2 col5 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL +---- +20 values hashing to 1657180952ae5660fde69e1e8999e2d3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to d45197c09250d72eb99631b9370306e2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 AS col5" at position 0 and "cor0\.col2 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT + col3 col5, col2 col5 FROM tab3 AS cor0 WHERE NOT NULL IS NOT NULL +---- +20 values hashing to 1657180952ae5660fde69e1e8999e2d3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to d45197c09250d72eb99631b9370306e2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 AS col5" at position 0 and "cor0\.col2 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT + col3 col5, col2 col5 FROM tab4 AS cor0 WHERE NOT NULL IS NOT NULL +---- +20 values hashing to 1657180952ae5660fde69e1e8999e2d3 query I rowsort label-7715 SELECT DISTINCT + - 90 FROM tab0 WHERE NOT NULL IS NOT NULL diff --git a/data/sqlite/index/random/10/slt_good_7.slt b/data/sqlite/index/random/10/slt_good_7.slt index a5e1188..5b4acd4 100644 --- a/data/sqlite/index/random/10/slt_good_7.slt +++ b/data/sqlite/index/random/10/slt_good_7.slt @@ -842,24 +842,29 @@ SELECT 57 AS col3 FROM tab4 AS cor0 WHERE NOT NULL IS NOT NULL 10 values hashing to 3ff41da47e8ee79ef8bd0d1938fba843 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \* cor0\.col4 AS col2" at position 0 and "\(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RR valuesort SELECT - 8 * + col4 AS col2, - col1 * - + col1 AS col2 FROM tab0 cor0 WHERE col1 BETWEEN + 36 AND - + ( + col0 ) / ( col0 ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \* cor0\.col4 AS col2" at position 0 and "\(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RR valuesort SELECT - 8 * + col4 AS col2, - col1 * - + col1 AS col2 FROM tab1 cor0 WHERE col1 BETWEEN + 36 AND - + ( + col0 ) / ( col0 ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \* cor0\.col4 AS col2" at position 0 and "\(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RR valuesort SELECT - 8 * + col4 AS col2, - col1 * - + col1 AS col2 FROM tab2 cor0 WHERE col1 BETWEEN + 36 AND - + ( + col0 ) / ( col0 ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \* cor0\.col4 AS col2" at position 0 and "\(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RR valuesort SELECT - 8 * + col4 AS col2, - col1 * - + col1 AS col2 FROM tab3 cor0 WHERE col1 BETWEEN + 36 AND - + ( + col0 ) / ( col0 ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \* cor0\.col4 AS col2" at position 0 and "\(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RR valuesort SELECT - 8 * + col4 AS col2, - col1 * - + col1 AS col2 FROM tab4 cor0 WHERE col1 BETWEEN + 36 AND - + ( + col0 ) / ( col0 ) +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] III[I][I][I][I] @@ -4332,24 +4337,29 @@ SELECT + 4 / - col3 FROM tab4 AS cor0 WHERE NOT ( col1 * col0 ) IS NULL 10 values hashing to b833e3a3ba082b2c0028b4cd08f0834d # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col5" at position 0 and "Int64\(99\) \+ \(\- \(\- cor0\.col4\)\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - 96 AS col5, 99 + - - col4 AS col5 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND ( NULL ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col5" at position 0 and "Int64\(99\) \+ \(\- \(\- cor0\.col4\)\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - 96 AS col5, 99 + - - col4 AS col5 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND ( NULL ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col5" at position 0 and "Int64\(99\) \+ \(\- \(\- cor0\.col4\)\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - 96 AS col5, 99 + - - col4 AS col5 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND ( NULL ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col5" at position 0 and "Int64\(99\) \+ \(\- \(\- cor0\.col4\)\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - 96 AS col5, 99 + - - col4 AS col5 FROM tab3 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND ( NULL ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col5" at position 0 and "Int64\(99\) \+ \(\- \(\- cor0\.col4\)\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - 96 AS col5, 99 + - - col4 AS col5 FROM tab4 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND ( NULL ) +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I][I] @@ -36637,24 +36647,29 @@ SELECT * FROM tab4 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT + + 84 * col1 AS col2, + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NULL >= col0 + + 62 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT + + 84 * col1 AS col2, + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NULL >= col0 + + 62 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT + + 84 * col1 AS col2, + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NULL >= col0 + + 62 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT + + 84 * col1 AS col2, + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab3 AS cor0 WHERE NULL >= col0 + + 62 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT + + 84 * col1 AS col2, + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab4 AS cor0 WHERE NULL >= col0 + + 62 +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I diff --git a/data/sqlite/index/random/10/slt_good_8.slt b/data/sqlite/index/random/10/slt_good_8.slt index 9822f94..c55fbcc 100644 --- a/data/sqlite/index/random/10/slt_good_8.slt +++ b/data/sqlite/index/random/10/slt_good_8.slt @@ -1466,24 +1466,29 @@ SELECT 85 FROM tab4 WHERE NOT col2 IS NULL 10 values hashing to 69a379b8930ed0ca6f0d66952f0b0cde # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL col1 AS col2, 26 AS col2 FROM tab0 AS cor0 WHERE ( - 99 ) IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL col1 AS col2, 26 AS col2 FROM tab1 AS cor0 WHERE ( - 99 ) IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL col1 AS col2, 26 AS col2 FROM tab2 AS cor0 WHERE ( - 99 ) IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL col1 AS col2, 26 AS col2 FROM tab3 AS cor0 WHERE ( - 99 ) IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL col1 AS col2, 26 AS col2 FROM tab4 AS cor0 WHERE ( - 99 ) IS NULL +---- query I rowsort label-230 SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IN ( + ( - + ( + col4 ) ) * + col3 - - 95 * col1 + - 97 ) @@ -24621,24 +24626,29 @@ SELECT + - 22 AS col2 FROM tab4 WHERE NOT + col1 IS NOT NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col5" at position 0 and "cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 AS col5, + col3 AS col5 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - + 13 AND col1 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col5" at position 0 and "cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 AS col5, + col3 AS col5 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - + 13 AND col1 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col5" at position 0 and "cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 AS col5, + col3 AS col5 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - + 13 AND col1 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col5" at position 0 and "cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 AS col5, + col3 AS col5 FROM tab3 AS cor0 WHERE ( NULL ) NOT BETWEEN - + 13 AND col1 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col5" at position 0 and "cor0\.col3 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 AS col5, + col3 AS col5 FROM tab4 AS cor0 WHERE ( NULL ) NOT BETWEEN - + 13 AND col1 +---- query I rowsort label-4080 SELECT DISTINCT 97 AS col2 FROM tab0 WHERE col4 IN ( - col3 ) @@ -26381,24 +26391,29 @@ SELECT + 95 AS col4 FROM tab4 AS cor0 WHERE NOT NULL IS NOT NULL 10 values hashing to bdd07b59caa7cdc814383ec9e4ee98b0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 FROM tab3 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 FROM tab4 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] III[I][I][I][I] @@ -38701,24 +38716,29 @@ SELECT ALL * FROM tab4 AS cor0 WHERE NOT col3 + + + col4 / + col1 * + - ( + ( ( ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col4 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RR valuesort SELECT - col1 AS col2, col4 AS col2 FROM tab0 AS cor0 WHERE - ( + CAST ( 73 AS INTEGER ) ) >= NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col4 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RR valuesort SELECT - col1 AS col2, col4 AS col2 FROM tab1 AS cor0 WHERE - ( + CAST ( 73 AS INTEGER ) ) >= NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col4 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RR valuesort SELECT - col1 AS col2, col4 AS col2 FROM tab2 AS cor0 WHERE - ( + CAST ( 73 AS INTEGER ) ) >= NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col4 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RR valuesort SELECT - col1 AS col2, col4 AS col2 FROM tab3 AS cor0 WHERE - ( + CAST ( 73 AS INTEGER ) ) >= NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col4 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RR valuesort SELECT - col1 AS col2, col4 AS col2 FROM tab4 AS cor0 WHERE - ( + CAST ( 73 AS INTEGER ) ) >= NULL +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] III[I][I][I][I] @@ -47937,28 +47957,38 @@ SELECT ALL * FROM tab4 AS cor0 WHERE NOT ( NULL ) = NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 52fc072c082bcb9895966c1b30ea08b6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col3 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT ALL - col0 * col3 col0, col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( ( - 20 ) ) IS NULL +---- +20 values hashing to 8c8add1d21e8035e054f20e7488a3e0b # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 52fc072c082bcb9895966c1b30ea08b6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col3 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT ALL - col0 * col3 col0, col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( ( - 20 ) ) IS NULL +---- +20 values hashing to 8c8add1d21e8035e054f20e7488a3e0b # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 52fc072c082bcb9895966c1b30ea08b6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col3 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT ALL - col0 * col3 col0, col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( ( - 20 ) ) IS NULL +---- +20 values hashing to 8c8add1d21e8035e054f20e7488a3e0b # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 52fc072c082bcb9895966c1b30ea08b6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col3 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT ALL - col0 * col3 col0, col2 AS col0 FROM tab3 AS cor0 WHERE NOT ( ( - 20 ) ) IS NULL +---- +20 values hashing to 8c8add1d21e8035e054f20e7488a3e0b # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 52fc072c082bcb9895966c1b30ea08b6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col3 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT ALL - col0 * col3 col0, col2 AS col0 FROM tab4 AS cor0 WHERE NOT ( ( - 20 ) ) IS NULL +---- +20 values hashing to 8c8add1d21e8035e054f20e7488a3e0b query I rowsort label-7930 SELECT DISTINCT + col3 FROM tab0 WHERE NOT - 85 IS NULL @@ -48372,28 +48402,38 @@ SELECT ALL + col3 AS col3 FROM tab4 cor0 WHERE col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 7df4a15086a6d012f49f293264d9057c -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col3" at position 0 and "tab0\.col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col3 AS col3, col3 FROM tab0 WHERE + + col1 IS NOT NULL +---- +20 values hashing to 7df4a15086a6d012f49f293264d9057c # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 7df4a15086a6d012f49f293264d9057c -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col3" at position 0 and "tab1\.col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col3 AS col3, col3 FROM tab1 WHERE + + col1 IS NOT NULL +---- +20 values hashing to 7df4a15086a6d012f49f293264d9057c # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 7df4a15086a6d012f49f293264d9057c -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col3" at position 0 and "tab2\.col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col3 AS col3, col3 FROM tab2 WHERE + + col1 IS NOT NULL +---- +20 values hashing to 7df4a15086a6d012f49f293264d9057c # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 7df4a15086a6d012f49f293264d9057c -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab3\.col3" at position 0 and "tab3\.col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col3 AS col3, col3 FROM tab3 WHERE + + col1 IS NOT NULL +---- +20 values hashing to 7df4a15086a6d012f49f293264d9057c # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 values hashing to 7df4a15086a6d012f49f293264d9057c -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab4\.col3" at position 0 and "tab4\.col3" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col3 AS col3, col3 FROM tab4 WHERE + + col1 IS NOT NULL +---- +20 values hashing to 7df4a15086a6d012f49f293264d9057c query I rowsort label-8010 SELECT - 88 FROM tab0 WHERE NULL IS NULL @@ -59371,24 +59411,29 @@ SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + 16 * - - col0 FROM tab4 WHERE + NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 AS col5" at position 0 and "\(\- cor0\.col1\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL col3 col5, - col1 col5 FROM tab0 cor0 WHERE col4 <> NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 AS col5" at position 0 and "\(\- cor0\.col1\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL col3 col5, - col1 col5 FROM tab1 cor0 WHERE col4 <> NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 AS col5" at position 0 and "\(\- cor0\.col1\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL col3 col5, - col1 col5 FROM tab2 cor0 WHERE col4 <> NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 AS col5" at position 0 and "\(\- cor0\.col1\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL col3 col5, - col1 col5 FROM tab3 cor0 WHERE col4 <> NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 AS col5" at position 0 and "\(\- cor0\.col1\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL col3 col5, - col1 col5 FROM tab4 cor0 WHERE col4 <> NULL +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] diff --git a/data/sqlite/index/random/10/slt_good_9.slt b/data/sqlite/index/random/10/slt_good_9.slt index ad9401f..5297952 100644 --- a/data/sqlite/index/random/10/slt_good_9.slt +++ b/data/sqlite/index/random/10/slt_good_9.slt @@ -10917,24 +10917,29 @@ SELECT - col0 AS col0 FROM tab4 AS cor0 WHERE - ( col3 ) = NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - col1 AS col0, ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0 WHERE - col3 * - 58 BETWEEN NULL AND - col4 * col4 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - col1 AS col0, ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 cor0 WHERE - col3 * - 58 BETWEEN NULL AND - col4 * col4 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - col1 AS col0, ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 cor0 WHERE - col3 * - 58 BETWEEN NULL AND - col4 * col4 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - col1 AS col0, ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab3 cor0 WHERE - col3 * - 58 BETWEEN NULL AND - col4 * col4 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - col1 AS col0, ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab4 cor0 WHERE - col3 * - 58 BETWEEN NULL AND - col4 * col4 +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] III[I][I][I][I] @@ -13672,24 +13677,29 @@ SELECT * FROM tab4 AS cor0 WHERE NULL > - 3 / - 83 + + ( + 56 ) ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col3\) \+ \(\- tab0\.col4\) 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 RI valuesort SELECT ALL - col3 + - + col4 AS col1, 88 + - 34 AS col1 FROM tab0 WHERE NOT NULL > + 42 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col3\) \+ \(\- tab1\.col4\) 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 RI valuesort SELECT ALL - col3 + - + col4 AS col1, 88 + - 34 AS col1 FROM tab1 WHERE NOT NULL > + 42 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col3\) \+ \(\- tab2\.col4\) 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 RI valuesort SELECT ALL - col3 + - + col4 AS col1, 88 + - 34 AS col1 FROM tab2 WHERE NOT NULL > + 42 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab3\.col3\) \+ \(\- tab3\.col4\) 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 RI valuesort SELECT ALL - col3 + - + col4 AS col1, 88 + - 34 AS col1 FROM tab3 WHERE NOT NULL > + 42 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab4\.col3\) \+ \(\- tab4\.col4\) 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 RI valuesort SELECT ALL - col3 + - + col4 AS col1, 88 + - 34 AS col1 FROM tab4 WHERE NOT NULL > + 42 +---- query I rowsort label-2250 SELECT DISTINCT + 78 FROM tab0 WHERE NOT - - col0 IS NOT NULL diff --git a/data/sqlite/index/random/100/slt_good_0.slt b/data/sqlite/index/random/100/slt_good_0.slt index 2fae654..8b6d600 100644 --- a/data/sqlite/index/random/100/slt_good_0.slt +++ b/data/sqlite/index/random/100/slt_good_0.slt @@ -8795,24 +8795,29 @@ SELECT DISTINCT 73 col3 FROM tab4 AS cor0 WHERE NOT NULL IS NOT NULL 73 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-26\)\) \* cor0\.col0 \+ \(\- cor0\.col0\) \+ cor0\.col0 \* \(\- \(\- cor0\.col4\)\) AS col4" at position 0 and "\(\- \(\- Int64\(38\)\)\) / Int64\(\-85\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - - 26 * + col0 + - ( + col0 ) + + col0 * - - col4 AS col4, - ( - + ( + 38 ) ) / - 85 AS col4 FROM tab0 AS cor0 WHERE NOT col0 <> - col4 + - 46 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-26\)\) \* cor0\.col0 \+ \(\- cor0\.col0\) \+ cor0\.col0 \* \(\- \(\- cor0\.col4\)\) AS col4" at position 0 and "\(\- \(\- Int64\(38\)\)\) / Int64\(\-85\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - - 26 * + col0 + - ( + col0 ) + + col0 * - - col4 AS col4, - ( - + ( + 38 ) ) / - 85 AS col4 FROM tab1 AS cor0 WHERE NOT col0 <> - col4 + - 46 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-26\)\) \* cor0\.col0 \+ \(\- cor0\.col0\) \+ cor0\.col0 \* \(\- \(\- cor0\.col4\)\) AS col4" at position 0 and "\(\- \(\- Int64\(38\)\)\) / Int64\(\-85\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - - 26 * + col0 + - ( + col0 ) + + col0 * - - col4 AS col4, - ( - + ( + 38 ) ) / - 85 AS col4 FROM tab2 AS cor0 WHERE NOT col0 <> - col4 + - 46 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-26\)\) \* cor0\.col0 \+ \(\- cor0\.col0\) \+ cor0\.col0 \* \(\- \(\- cor0\.col4\)\) AS col4" at position 0 and "\(\- \(\- Int64\(38\)\)\) / Int64\(\-85\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - - 26 * + col0 + - ( + col0 ) + + col0 * - - col4 AS col4, - ( - + ( + 38 ) ) / - 85 AS col4 FROM tab3 AS cor0 WHERE NOT col0 <> - col4 + - 46 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-26\)\) \* cor0\.col0 \+ \(\- cor0\.col0\) \+ cor0\.col0 \* \(\- \(\- cor0\.col4\)\) AS col4" at position 0 and "\(\- \(\- Int64\(38\)\)\) / Int64\(\-85\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - - 26 * + col0 + - ( + col0 ) + + col0 * - - col4 AS col4, - ( - + ( + 38 ) ) / - 85 AS col4 FROM tab4 AS cor0 WHERE NOT col0 <> - col4 + - 46 +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] III[I][I][I][I] @@ -23181,28 +23186,38 @@ SELECT - col1 FROM tab4 WHERE NULL BETWEEN col4 * + + 51 - + CAST ( NULL AS INTE # Datafusion - Datafusion expected results: # Datafusion - Expected - 200 values hashing to 4a55d8cd8ad4eee8f4b2c6d45df446df -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 AS col5" at position 0 and "cor0\.col2 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT + col3 col5, col2 col5 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL +---- +200 values hashing to 7730d1a9ded7c8cf48f6579ff3a09671 # Datafusion - Datafusion expected results: # Datafusion - Expected - 200 values hashing to 4a55d8cd8ad4eee8f4b2c6d45df446df -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 AS col5" at position 0 and "cor0\.col2 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT + col3 col5, col2 col5 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL +---- +200 values hashing to 7730d1a9ded7c8cf48f6579ff3a09671 # Datafusion - Datafusion expected results: # Datafusion - Expected - 200 values hashing to 4a55d8cd8ad4eee8f4b2c6d45df446df -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 AS col5" at position 0 and "cor0\.col2 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT + col3 col5, col2 col5 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL +---- +200 values hashing to 7730d1a9ded7c8cf48f6579ff3a09671 # Datafusion - Datafusion expected results: # Datafusion - Expected - 200 values hashing to 4a55d8cd8ad4eee8f4b2c6d45df446df -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 AS col5" at position 0 and "cor0\.col2 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT + col3 col5, col2 col5 FROM tab3 AS cor0 WHERE NOT NULL IS NOT NULL +---- +200 values hashing to 7730d1a9ded7c8cf48f6579ff3a09671 # Datafusion - Datafusion expected results: # Datafusion - Expected - 200 values hashing to 4a55d8cd8ad4eee8f4b2c6d45df446df -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 AS col5" at position 0 and "cor0\.col2 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT + col3 col5, col2 col5 FROM tab4 AS cor0 WHERE NOT NULL IS NOT NULL +---- +200 values hashing to 7730d1a9ded7c8cf48f6579ff3a09671 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] III[I][I][I][I] @@ -39140,24 +39155,29 @@ SELECT 57 AS col3 FROM tab4 AS cor0 WHERE NOT NULL IS NOT NULL 100 values hashing to a2ea9e51833428a0b165740e8f93a634 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \* cor0\.col4 AS col2" at position 0 and "\(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RR valuesort SELECT - 8 * + col4 AS col2, - col1 * - + col1 AS col2 FROM tab0 cor0 WHERE col1 BETWEEN + 36 AND - + ( + col0 ) / ( col0 ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \* cor0\.col4 AS col2" at position 0 and "\(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RR valuesort SELECT - 8 * + col4 AS col2, - col1 * - + col1 AS col2 FROM tab1 cor0 WHERE col1 BETWEEN + 36 AND - + ( + col0 ) / ( col0 ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \* cor0\.col4 AS col2" at position 0 and "\(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RR valuesort SELECT - 8 * + col4 AS col2, - col1 * - + col1 AS col2 FROM tab2 cor0 WHERE col1 BETWEEN + 36 AND - + ( + col0 ) / ( col0 ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \* cor0\.col4 AS col2" at position 0 and "\(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RR valuesort SELECT - 8 * + col4 AS col2, - col1 * - + col1 AS col2 FROM tab3 cor0 WHERE col1 BETWEEN + 36 AND - + ( + col0 ) / ( col0 ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \* cor0\.col4 AS col2" at position 0 and "\(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RR valuesort SELECT - 8 * + col4 AS col2, - col1 * - + col1 AS col2 FROM tab4 cor0 WHERE col1 BETWEEN + 36 AND - + ( + col0 ) / ( col0 ) +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] III[I][I][I][I] @@ -42720,24 +42740,29 @@ SELECT + 4 / - col3 FROM tab4 AS cor0 WHERE NOT ( col1 * col0 ) IS NULL 100 values hashing to 322178de75715d2ba042d76fcd9c516b # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col5" at position 0 and "Int64\(99\) \+ \(\- \(\- cor0\.col4\)\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - 96 AS col5, 99 + - - col4 AS col5 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND ( NULL ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col5" at position 0 and "Int64\(99\) \+ \(\- \(\- cor0\.col4\)\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - 96 AS col5, 99 + - - col4 AS col5 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND ( NULL ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col5" at position 0 and "Int64\(99\) \+ \(\- \(\- cor0\.col4\)\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - 96 AS col5, 99 + - - col4 AS col5 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND ( NULL ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col5" at position 0 and "Int64\(99\) \+ \(\- \(\- cor0\.col4\)\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - 96 AS col5, 99 + - - col4 AS col5 FROM tab3 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND ( NULL ) +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col5" at position 0 and "Int64\(99\) \+ \(\- \(\- cor0\.col4\)\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - 96 AS col5, 99 + - - col4 AS col5 FROM tab4 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND ( NULL ) +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I][I] diff --git a/data/sqlite/index/random/100/slt_good_1.slt b/data/sqlite/index/random/100/slt_good_1.slt index 4875b79..2b6482e 100644 --- a/data/sqlite/index/random/100/slt_good_1.slt +++ b/data/sqlite/index/random/100/slt_good_1.slt @@ -15185,24 +15185,29 @@ SELECT * FROM tab4 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT + + 84 * col1 AS col2, + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NULL >= col0 + + 62 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT + + 84 * col1 AS col2, + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NULL >= col0 + + 62 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT + + 84 * col1 AS col2, + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NULL >= col0 + + 62 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT + + 84 * col1 AS col2, + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab3 AS cor0 WHERE NULL >= col0 + + 62 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT + + 84 * col1 AS col2, + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab4 AS cor0 WHERE NULL >= col0 + + 62 +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -41045,24 +41050,29 @@ SELECT 85 FROM tab4 WHERE NOT col2 IS NULL 100 values hashing to 9a6fc8f6a10c393af291306a886375ba # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL col1 AS col2, 26 AS col2 FROM tab0 AS cor0 WHERE ( - 99 ) IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL col1 AS col2, 26 AS col2 FROM tab1 AS cor0 WHERE ( - 99 ) IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL col1 AS col2, 26 AS col2 FROM tab2 AS cor0 WHERE ( - 99 ) IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL col1 AS col2, 26 AS col2 FROM tab3 AS cor0 WHERE ( - 99 ) IS NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL col1 AS col2, 26 AS col2 FROM tab4 AS cor0 WHERE ( - 99 ) IS NULL +---- query I rowsort label-6725 SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IN ( + ( - + ( + col4 ) ) * + col3 - - 95 * col1 + - 97 ) diff --git a/data/sqlite/index/random/1000/slt_good_5.slt b/data/sqlite/index/random/1000/slt_good_5.slt index 1e808c8..f5e472c 100644 --- a/data/sqlite/index/random/1000/slt_good_5.slt +++ b/data/sqlite/index/random/1000/slt_good_5.slt @@ -4035,24 +4035,29 @@ SELECT DISTINCT 73 col3 FROM tab4 AS cor0 WHERE NOT NULL IS NOT NULL 73 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-26\)\) \* cor0\.col0 \+ \(\- cor0\.col0\) \+ cor0\.col0 \* \(\- \(\- cor0\.col4\)\) AS col4" at position 0 and "\(\- \(\- Int64\(38\)\)\) / Int64\(\-85\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - - 26 * + col0 + - ( + col0 ) + + col0 * - - col4 AS col4, - ( - + ( + 38 ) ) / - 85 AS col4 FROM tab0 AS cor0 WHERE NOT col0 <> - col4 + - 46 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-26\)\) \* cor0\.col0 \+ \(\- cor0\.col0\) \+ cor0\.col0 \* \(\- \(\- cor0\.col4\)\) AS col4" at position 0 and "\(\- \(\- Int64\(38\)\)\) / Int64\(\-85\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - - 26 * + col0 + - ( + col0 ) + + col0 * - - col4 AS col4, - ( - + ( + 38 ) ) / - 85 AS col4 FROM tab1 AS cor0 WHERE NOT col0 <> - col4 + - 46 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-26\)\) \* cor0\.col0 \+ \(\- cor0\.col0\) \+ cor0\.col0 \* \(\- \(\- cor0\.col4\)\) AS col4" at position 0 and "\(\- \(\- Int64\(38\)\)\) / Int64\(\-85\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - - 26 * + col0 + - ( + col0 ) + + col0 * - - col4 AS col4, - ( - + ( + 38 ) ) / - 85 AS col4 FROM tab2 AS cor0 WHERE NOT col0 <> - col4 + - 46 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-26\)\) \* cor0\.col0 \+ \(\- cor0\.col0\) \+ cor0\.col0 \* \(\- \(\- cor0\.col4\)\) AS col4" at position 0 and "\(\- \(\- Int64\(38\)\)\) / Int64\(\-85\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - - 26 * + col0 + - ( + col0 ) + + col0 * - - col4 AS col4, - ( - + ( + 38 ) ) / - 85 AS col4 FROM tab3 AS cor0 WHERE NOT col0 <> - col4 + - 46 +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-26\)\) \* cor0\.col0 \+ \(\- cor0\.col0\) \+ cor0\.col0 \* \(\- \(\- cor0\.col4\)\) AS col4" at position 0 and "\(\- \(\- Int64\(38\)\)\) / Int64\(\-85\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - - 26 * + col0 + - ( + col0 ) + + col0 * - - col4 AS col4, - ( - + ( + 38 ) ) / - 85 AS col4 FROM tab4 AS cor0 WHERE NOT col0 <> - col4 + - 46 +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] III[I][I][I][I] @@ -18146,28 +18151,38 @@ SELECT - col1 FROM tab4 WHERE NULL BETWEEN col4 * + + 51 - + CAST ( NULL AS INTE # Datafusion - Datafusion expected results: # Datafusion - Expected - 2000 values hashing to 755b43fefc30f040c7b16b23dda6d810 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 AS col5" at position 0 and "cor0\.col2 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT + col3 col5, col2 col5 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL +---- +2000 values hashing to fedf3cbc7463d66c207e3a61655241ee # Datafusion - Datafusion expected results: # Datafusion - Expected - 2000 values hashing to 755b43fefc30f040c7b16b23dda6d810 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 AS col5" at position 0 and "cor0\.col2 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT + col3 col5, col2 col5 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL +---- +2000 values hashing to fedf3cbc7463d66c207e3a61655241ee # Datafusion - Datafusion expected results: # Datafusion - Expected - 2000 values hashing to 755b43fefc30f040c7b16b23dda6d810 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 AS col5" at position 0 and "cor0\.col2 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT + col3 col5, col2 col5 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL +---- +2000 values hashing to fedf3cbc7463d66c207e3a61655241ee # Datafusion - Datafusion expected results: # Datafusion - Expected - 2000 values hashing to 755b43fefc30f040c7b16b23dda6d810 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 AS col5" at position 0 and "cor0\.col2 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT + col3 col5, col2 col5 FROM tab3 AS cor0 WHERE NOT NULL IS NOT NULL +---- +2000 values hashing to fedf3cbc7463d66c207e3a61655241ee # Datafusion - Datafusion expected results: # Datafusion - Expected - 2000 values hashing to 755b43fefc30f040c7b16b23dda6d810 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col3 AS col5" at position 0 and "cor0\.col2 AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IT valuesort SELECT + col3 col5, col2 col5 FROM tab4 AS cor0 WHERE NOT NULL IS NOT NULL +---- +2000 values hashing to fedf3cbc7463d66c207e3a61655241ee # Datafusion - Types were automatically converted from: # Datafusion - [Expected] III[I][I][I][I] diff --git a/data/sqlite/index/random/1000/slt_good_6.slt b/data/sqlite/index/random/1000/slt_good_6.slt index f173a99..957623d 100644 --- a/data/sqlite/index/random/1000/slt_good_6.slt +++ b/data/sqlite/index/random/1000/slt_good_6.slt @@ -40477,24 +40477,29 @@ SELECT DISTINCT - 32 * - COUNT ( * ) - MIN ( DISTINCT + 77 ) FROM tab4 WHERE NUL 31923 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col4" at position 0 and "Int64\(10\) \+ Int64\(40\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 13 AS col4, 10 + + 40 AS col4 FROM tab0 WHERE NOT col3 <= NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col4" at position 0 and "Int64\(10\) \+ Int64\(40\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 13 AS col4, 10 + + 40 AS col4 FROM tab1 WHERE NOT col3 <= NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col4" at position 0 and "Int64\(10\) \+ Int64\(40\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 13 AS col4, 10 + + 40 AS col4 FROM tab2 WHERE NOT col3 <= NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col4" at position 0 and "Int64\(10\) \+ Int64\(40\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 13 AS col4, 10 + + 40 AS col4 FROM tab3 WHERE NOT col3 <= NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col4" at position 0 and "Int64\(10\) \+ Int64\(40\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 13 AS col4, 10 + + 40 AS col4 FROM tab4 WHERE NOT col3 <= NULL +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -42214,32 +42219,47 @@ 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\(1\)\) AS count\(\*\) \- Int64\(\-73\) \+ Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 48 + + - 67 AS col0, COUNT ( * ) - - 73 + 88 AS col0 FROM tab0 WHERE NOT NULL IS NULL +---- +-19 +161 # 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\(1\)\) AS count\(\*\) \- Int64\(\-73\) \+ Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 48 + + - 67 AS col0, COUNT ( * ) - - 73 + 88 AS col0 FROM tab1 WHERE NOT NULL IS NULL +---- +-19 +161 # 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\(1\)\) AS count\(\*\) \- Int64\(\-73\) \+ Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 48 + + - 67 AS col0, COUNT ( * ) - - 73 + 88 AS col0 FROM tab2 WHERE NOT NULL IS NULL +---- +-19 +161 # 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\(1\)\) AS count\(\*\) \- Int64\(\-73\) \+ Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 48 + + - 67 AS col0, COUNT ( * ) - - 73 + 88 AS col0 FROM tab3 WHERE NOT NULL IS NULL +---- +-19 +161 # 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\(1\)\) AS count\(\*\) \- Int64\(\-73\) \+ Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 48 + + - 67 AS col0, COUNT ( * ) - - 73 + 88 AS col0 FROM tab4 WHERE NOT NULL IS NULL +---- +-19 +161 query I rowsort label-6475 SELECT ALL + col0 AS col0 FROM tab0 AS cor0 WHERE NOT 79 IS NULL @@ -56734,32 +56754,47 @@ SELECT ALL * FROM tab4 cor0 WHERE NOT - col3 = NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 78 AS col0, COUNT ( * ) AS col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL +---- +0 +78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 78 AS col0, COUNT ( * ) AS col0 FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL +---- +0 +78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 78 AS col0, COUNT ( * ) AS col0 FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL +---- +0 +78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 78 AS col0, COUNT ( * ) AS col0 FROM tab3 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL +---- +0 +78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 78 AS col0, COUNT ( * ) AS col0 FROM tab4 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL +---- +0 +78 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] diff --git a/data/sqlite/index/random/1000/slt_good_7.slt b/data/sqlite/index/random/1000/slt_good_7.slt index 90853aa..38f6973 100644 --- a/data/sqlite/index/random/1000/slt_good_7.slt +++ b/data/sqlite/index/random/1000/slt_good_7.slt @@ -41258,32 +41258,47 @@ SELECT ALL 30 col5 FROM tab4 AS cor0 WHERE NOT col4 * - col3 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - COUNT ( * ) col0, + COUNT ( * ) AS col0 FROM tab0 WHERE NULL = + col1 +---- +0 +0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - COUNT ( * ) col0, + COUNT ( * ) AS col0 FROM tab1 WHERE NULL = + col1 +---- +0 +0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - COUNT ( * ) col0, + COUNT ( * ) AS col0 FROM tab2 WHERE NULL = + col1 +---- +0 +0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - COUNT ( * ) col0, + COUNT ( * ) AS col0 FROM tab3 WHERE NULL = + col1 +---- +0 +0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - COUNT ( * ) col0, + COUNT ( * ) AS col0 FROM tab4 WHERE NULL = + col1 +---- +0 +0 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] III[I][I][I][I] diff --git a/data/sqlite/index/random/1000/slt_good_8.slt b/data/sqlite/index/random/1000/slt_good_8.slt index 8bf2d33..82708db 100644 --- a/data/sqlite/index/random/1000/slt_good_8.slt +++ b/data/sqlite/index/random/1000/slt_good_8.slt @@ -20246,24 +20246,29 @@ SELECT ALL * FROM tab4 AS cor0 WHERE col2 IS NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-74\) AS col0" at position 0 and "cor0\.col1 \- Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - CAST ( NULL AS INTEGER ) * + - 74 AS col0, col1 - 76 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-74\) AS col0" at position 0 and "cor0\.col1 \- Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - CAST ( NULL AS INTEGER ) * + - 74 AS col0, col1 - 76 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-74\) AS col0" at position 0 and "cor0\.col1 \- Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - CAST ( NULL AS INTEGER ) * + - 74 AS col0, col1 - 76 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-74\) AS col0" at position 0 and "cor0\.col1 \- Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - CAST ( NULL AS INTEGER ) * + - 74 AS col0, col1 - 76 AS col0 FROM tab3 AS cor0 WHERE NOT NULL <= NULL +---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-74\) AS col0" at position 0 and "cor0\.col1 \- Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - CAST ( NULL AS INTEGER ) * + - 74 AS col0, col1 - 76 AS col0 FROM tab4 AS cor0 WHERE NOT NULL <= NULL +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I][I] diff --git a/data/sqlite/random/aggregates/slt_good_0.slt b/data/sqlite/random/aggregates/slt_good_0.slt index be4e955..b2b7a00 100644 --- a/data/sqlite/random/aggregates/slt_good_0.slt +++ b/data/sqlite/random/aggregates/slt_good_0.slt @@ -156,8 +156,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 69 IS NULL # Datafusion - Expected - -64 # 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 "\(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 AS col2, - col0 AS col2 FROM tab2 WHERE + col2 IS NOT NULL +---- +-46 +-64 +-75 +38 +38 +38 query I rowsort SELECT DISTINCT + 30 AS col0 FROM tab0, tab1 AS cor0 @@ -332,8 +339,11 @@ SELECT 82 * + 4 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT cor0\.col1\) \* \(\- avg\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\)\) AS col2" at position 0 and "count\(\(\- cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT MIN ( DISTINCT col1 ) * - + AVG ( DISTINCT + ( - + CAST ( NULL AS INTEGER ) ) ) AS col2, COUNT ( ALL - col0 ) AS col2 FROM tab2 AS cor0 +---- +3 +NULL query II rowsort SELECT ALL - col0, + 85 + - col2 col1 FROM tab1 AS cor0 @@ -590,8 +600,15 @@ SELECT - 62 + col1 / - + col0 FROM tab1 AS cor0 # Datafusion - Expected - -5 # Datafusion - Expected - -2366 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(26\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 * 26 AS col0, - col1 AS col0 FROM tab1 AS cor0 +---- +-1326 +-14 +-2210 +-2366 +-47 +-5 query I rowsort SELECT + col1 + + - col2 FROM tab2 @@ -2165,8 +2182,15 @@ NULL # Datafusion - Expected - 10 # Datafusion - Expected - 31 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \- \(\- tab0\.col2\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 - - col2 AS col1, + 10 AS col1 FROM tab0 +---- +10 +10 +10 +100 +128 +31 query I rowsort SELECT ALL + ( col2 ) - + 57 FROM tab1 @@ -2765,8 +2789,11 @@ SELECT ALL + col0, col0 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 71 AS col1, 62 AS col1 FROM tab0 +---- +-71 +62 query II rowsort label-453 SELECT 78 AS col2, COUNT ( * ) FROM tab2 @@ -3112,8 +3139,15 @@ SELECT ALL * FROM tab0 WHERE NULL IN ( - - 42, col2 / - col0, ( col0 ), + col2 ) # Datafusion - Expected - 40 # Datafusion - Expected - -5025 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* CAST\(\(\- tab2\.col1\) AS Int32\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * CAST ( - col1 AS INTEGER ) AS col0, + col2 AS col0 FROM tab2 +---- +-2346 +-4928 +-5025 +23 +40 +58 query II rowsort SELECT - 52 * col2 + + col1, ( + + col0 ) FROM tab2 AS cor0 @@ -4502,8 +4536,11 @@ SELECT + + 36 / + col0 col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(sum\(DISTINCT Int64\(\-31\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + CAST ( + SUM ( DISTINCT + - 31 ) AS INTEGER ) AS col1, 59 AS col1 FROM tab1 AS cor0 +---- +31 +59 query I rowsort SELECT DISTINCT 56 + col2 AS col2 FROM tab0 WHERE NOT col1 + + col2 * + - ( + - 9 ) IS NULL @@ -5009,8 +5046,15 @@ SELECT ALL + - 0 AS col0 FROM tab0 cor0 # Datafusion - Expected - -2 # Datafusion - Expected - 8 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col0 AS col2" at position 0 and "Int64\(\-58\) / Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - + col1 ) + col0 AS col2, - 58 / + 25 AS col2 FROM tab2 AS cor0 +---- +-13 +-2 +-2 +-2 +-5 +8 query I rowsort SELECT DISTINCT - 79 + - col1 col1 FROM tab0 AS cor0 @@ -5682,8 +5726,15 @@ SELECT DISTINCT - col0, col2 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, col2 AS col0 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 <> NULL @@ -7702,8 +7753,15 @@ SELECT + CAST ( col1 AS INTEGER ) * col1 FROM tab0 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - -7500 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* \(\- Int64\(20\)\) \* tab1\.col1 AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( 75 ) * - + 20 * + + col1 AS col1, + col0 AS col1 FROM tab1 +---- +-21000 +-70500 +-7500 +51 +85 +91 query I rowsort SELECT DISTINCT - - 26 * col2 + + 25 AS col2 FROM tab2 AS cor0 @@ -7806,8 +7864,15 @@ SELECT 77 + - + col1 + col0 * - - 94 FROM tab2 AS cor0 # Datafusion - Expected - 35 # Datafusion - Expected - 529 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col2 AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 * ( col2 ) col2, + 35 AS col2 FROM tab2 AS cor0 +---- +1600 +3364 +35 +35 +35 +529 query I rowsort label-1290 SELECT DISTINCT - col2 / - 29 AS col1 FROM tab1 @@ -7941,8 +8006,9 @@ SELECT ALL - 44 col2 FROM tab0 cor0 -44 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col1" at position 1 and "\(\- cor0\.col0\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + + 36, 6 col1, - ( + col0 ) AS col1 FROM tab2 cor0 WHERE NOT - col1 NOT BETWEEN ( NULL ) AND col1 +---- query I rowsort SELECT - col0 + + col1 FROM tab0 WHERE NOT NULL IS NOT NULL @@ -8914,8 +8980,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + + 15 IS NULL # Datafusion - Expected - 4080 # Datafusion - Expected - 0 # Datafusion - Expected - 5760 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "tab1\.col2 \* Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 0 col0, + col2 * + 60 AS col0 FROM tab1 +---- +0 +0 +0 +3540 +4080 +5760 query I rowsort label-1468 SELECT ALL col1 / 57 - + 71 FROM tab2 cor0 @@ -10139,8 +10212,15 @@ SELECT - col0 + col2 + + col2 * + ( col1 ) * 79 col0 FROM tab0 AS cor0 # Datafusion - Expected - -3807 # Datafusion - Expected - -90 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col1" at position 0 and "tab0\.col2 \* CAST\(\(\- tab0\.col1\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 AS col1, col2 * + CAST ( - col1 AS INTEGER ) col1 FROM tab0 +---- +-210 +-3807 +-90 +-90 +-90 +-99 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 82 NOT BETWEEN - col0 AND ( NULL ) @@ -10379,8 +10459,15 @@ SELECT col2 AS col1, + col2 * + 21 + - - 85 * - col2 FROM tab0 # Datafusion - Expected - 69 # Datafusion - Expected - 81 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col2, 69 AS col2 FROM tab0 AS cor0 +---- +1 +21 +69 +69 +69 +81 query I rowsort SELECT - + ( + ( + ( + col2 ) ) ) / - ( 74 ) * - col2 + - col2 col1 FROM tab0 AS cor0 WHERE ( NULL ) = NULL @@ -10849,8 +10936,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT ( ( NOT NULL IS NOT NULL ) ) # Datafusion - Expected - -47 # Datafusion - Expected - -18 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(18\)\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 18 AS col0, - col1 AS col0 FROM tab1 AS cor0 +---- +-14 +-18 +-18 +-18 +-47 +-5 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 = 84 @@ -10863,8 +10957,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 = 84 # Datafusion - Expected - 6885 # Datafusion - Expected - -91 # Datafusion - Expected - 7371 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(81\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, 81 * + + col0 AS col0 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +4131 +6885 +7371 query III rowsort label-1794 SELECT * FROM tab2 AS cor0 WHERE NOT + col1 > + - col0 + CAST ( NULL AS INTEGER ) + - - 34 + + col2 + - 60 @@ -11029,8 +11130,15 @@ SELECT DISTINCT - + col1 + - - col0 FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 97 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \- \(\- cor0\.col0\) \+ Int64\(74\) \+ \(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 - - col0 + + + 74 + + - col1 AS col1, ( + col2 ) AS col1 FROM tab1 AS cor0 +---- +149 +59 +68 +71 +96 +97 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( - 17 ) @@ -11174,8 +11282,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL ) # Datafusion - Expected - -61 # Datafusion - Expected - 924 # Datafusion - Expected - -27321 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(44\) AS col0" at position 0 and "\(\- cor0\.col1\) \* cor0\.col1 \* Int64\(62\) \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 * 44 AS col0, - col1 * col1 * + + 62 + col1 col0 FROM tab0 AS cor0 +---- +-27321 +-406701 +-61 +3564 +44 +924 query I rowsort SELECT ALL col2 col0 FROM tab2 WHERE - 96 IS NULL AND NULL >= + ( + col1 ) @@ -11360,8 +11475,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, 0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 +---- +-9 +0 query III rowsort label-1876 SELECT * FROM tab2 AS cor0 WHERE 41 * - col0 <> + CAST ( - - col2 AS INTEGER ) @@ -11801,8 +11919,11 @@ SELECT + + col1 * + ( 68 ) AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, 80 AS col1 FROM tab0 AS cor0 +---- +3 +80 query II rowsort label-1946 SELECT ALL MIN ( ALL + 80 ) AS col2, 27 FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN + 95 + + 63 AND + 0 @@ -13355,8 +13476,15 @@ SELECT ALL 21 / - + 94 FROM tab0 # Datafusion - Expected - 85 # Datafusion - Expected - -40 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 40 AS col2, + col0 AS col2 FROM tab1 +---- +-40 +-40 +-40 +51 +85 +91 query III rowsort SELECT * FROM tab1 WHERE ( NOT ( NOT ( NULL <= 23 + col1 ) ) ) @@ -13918,8 +14046,15 @@ SELECT - 55 + + COUNT ( * ) + - + 21 + - COUNT ( * ) AS col2 FROM tab0 WHERE NOT # Datafusion - Expected - -67 # Datafusion - Expected - 77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "\(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, - col1 AS col2 FROM tab2 +---- +-51 +-67 +-77 +51 +67 +77 query I rowsort SELECT col2 + + 31 * - - col1 * - col0 AS col2 FROM tab2 @@ -14302,8 +14437,15 @@ SELECT DISTINCT - CAST ( - col1 AS INTEGER ) FROM tab1 # Datafusion - Expected - -87 # Datafusion - Expected - -97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\)" at position 0 and "\(\- tab0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - + col0 ), ( - col0 ) FROM tab0 +---- +-15 +-15 +-87 +-87 +-97 +-97 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT + col0 / + 13 NOT BETWEEN NULL AND NULL @@ -15278,8 +15420,15 @@ SELECT DISTINCT + 5 / ( + 95 ) + + MIN ( ALL - 95 ) col0 FROM tab1 AS cor0 # Datafusion - Expected - 6 # Datafusion - Expected - 97 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col0 \+ Int64\(\-81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0 AS col1, col0 + - 81 AS col1 FROM tab0 cor0 +---- +-66 +15 +16 +6 +87 +97 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 IN ( + col1, col1, + col0 ) @@ -16378,8 +16527,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > + col2 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT ALL + col2 * + col1 * - 22 * + - col1 FROM tab0 @@ -17128,8 +17284,15 @@ SELECT 57 + - col1 FROM tab0 AS cor0 # Datafusion - Expected - -38 # Datafusion - Expected - 6 # Datafusion - Expected - -798 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ Int64\(27\) AS col1" at position 0 and "cor0\.col1 \* \(\- Int64\(38\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + + 27 AS col1, col1 * - + 38 AS col1 FROM tab0 AS cor0 +---- +-3078 +-38 +-54 +-798 +26 +6 query I rowsort SELECT col2 + + 81 * col2 * + 39 FROM tab0 AS cor0 @@ -17640,8 +17803,11 @@ SELECT DISTINCT - COUNT ( + col0 ) AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \+ Int64\(\-5\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 19 AS col0, CAST ( - + COUNT ( * ) AS INTEGER ) + - 5 * + COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +-18 +19 query I rowsort label-2914 SELECT ALL col1 / - 35 FROM tab2 AS cor0 @@ -18088,8 +18254,15 @@ SELECT - col0 col1, + col1 * - - col0 * - col1 FROM tab1 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 FROM tab2 AS cor0 WHERE NOT col0 * - - 78 * - col2 IS NULL +---- +46 +46 +64 +64 +75 +75 query I rowsort label-2986 SELECT - + 12 * - CAST ( NULL AS INTEGER ) - + + 35 + - col2 * + col1 FROM tab1 AS cor0 @@ -18163,8 +18336,11 @@ SELECT - 9 FROM tab0 WHERE NOT ( NOT col1 = - col0 + col1 - 97 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 137 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "\(\- sum\(\(\- tab2\.col1\)\)\) \- max\(tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 AS col2, + ( - SUM ( + - col1 ) ) - + MAX ( col2 ) AS col2 FROM tab2 +---- +137 +17 query I rowsort SELECT ALL + - col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL @@ -19232,8 +19408,15 @@ SELECT - + 6, + SUM ( DISTINCT + + CAST ( col0 AS INTEGER ) ) / ( COUNT ( * ) ) # Datafusion - Expected - -4096 # Datafusion - Expected - -86 # Datafusion - Expected - -5625 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col1" at position 0 and "\(\- cor0\.col0\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 86 col1, - col0 * + col0 AS col1 FROM tab2 AS cor0 +---- +-2116 +-4096 +-5625 +-86 +-86 +-86 query I rowsort SELECT + 94 + + 61 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL @@ -19566,8 +19749,15 @@ SELECT * FROM tab2 WHERE NOT col2 + - col0 + + 69 NOT BETWEEN - col2 + - col0 AN # Datafusion - Expected - 3 # Datafusion - Expected - 91 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col1, 3 AS col1 FROM tab1 +---- +3 +3 +3 +51 +85 +91 query I rowsort SELECT DISTINCT + ( - col1 ) * - - 5 AS col1 FROM tab0 @@ -20098,8 +20288,15 @@ SELECT ALL * FROM tab1 WHERE NOT - col2 NOT BETWEEN - 6 * col0 + col0 + 86 * col # Datafusion - Expected - 2506 # Datafusion - Expected - -5 # Datafusion - Expected - 2344 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "tab1\.col0 \* \(\- Int64\(\-27\)\) \+ Int64\(38\) \+ Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col2, col0 * - - 27 + + 38 + 11 AS col2 FROM tab1 +---- +-14 +-47 +-5 +1426 +2344 +2506 query I rowsort SELECT col0 * - + col1 * - col2 FROM tab0 @@ -21222,8 +21419,15 @@ SELECT DISTINCT + col1 - + + col0 * + 6 AS col2 FROM tab0 # Datafusion - Expected - -20067684 # Datafusion - Expected - -5 # Datafusion - Expected - -1730175 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "tab1\.col2 \* tab1\.col0 \* tab1\.col1 \* Int64\(\-69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col2, col2 * + col0 * col1 * + - 69 AS col2 FROM tab1 +---- +-14 +-1730175 +-20067684 +-47 +-4729536 +-5 query I rowsort SELECT DISTINCT - col1 * col0 - + 81 FROM tab2 @@ -21711,8 +21915,9 @@ SELECT ALL + col2 - col1 col1 FROM tab2 -9 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-59\)\) AS col0" at position 0 and "\(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 59 AS col0, - col0 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - - col1 +---- query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT + col1 = - 13 @@ -21775,8 +21980,9 @@ SELECT - MAX ( DISTINCT col2 ) FROM tab2 AS cor0 # Postgresql - Postgres error: db error: ERROR: division by zero # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / cor0\.col1 AS col2" at position 0 and "Int64\(78\) \* Int64\(68\) / Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 / col1 AS col2, + 78 * 68 / - 0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL > + col2 + CAST ( NULL AS INTEGER ) +---- query I rowsort SELECT + 89 * 34 FROM tab0 AS cor0 @@ -22001,8 +22207,15 @@ NULL # Datafusion - Expected - 54 # Datafusion - Expected - -9801 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col1 \* cor0\.col2 AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 * col1 * + col2 col1, ( + 54 ) AS col1 FROM tab0 AS cor0 +---- +-178929 +-2100 +-9801 +54 +54 +54 query III rowsort SELECT * FROM tab1 WHERE ( NULL ) BETWEEN - col1 AND ( NULL ) @@ -22361,8 +22574,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT - col0 + col0 * col1 IS NULL # Datafusion - Expected - -28 # Datafusion - Expected - 21 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col0" at position 0 and "Int64\(\-28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 21 AS col0, - 28 AS col0 FROM tab2 +---- +-28 +-28 +-28 +21 +21 +21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 @@ -22371,8 +22591,15 @@ SELECT ALL + 21 AS col0, - 28 AS col0 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - 5 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, col2 AS col0 FROM tab1 AS cor0 +---- +14 +47 +5 +59 +68 +96 query II rowsort SELECT + col2 AS col2, col2 + col2 AS col1 FROM tab2 AS cor0 @@ -22391,8 +22618,15 @@ SELECT + col2 AS col2, col2 + col2 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 8285 # Datafusion - Expected - -81 # Datafusion - Expected - 8285 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(\-93\) \* Int64\(\-89\) \- Int64\(\-8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, - 93 * - 89 - - 8 AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +8285 +8285 +8285 query I rowsort SELECT 48 FROM tab1 AS cor0 WHERE - col0 * + col2 IN ( col2 * - col1 ) @@ -22414,8 +22648,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 / col1 IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(\-8\) \* \(\- cor0\.col2\) \- \(CAST\(NULL AS Int32\) \+ \(\- cor0\.col0\) \* cor0\.col0\) \* Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, - 8 * - + col2 - + ( CAST ( NULL AS INTEGER ) + - col0 * + col0 ) * + 46 AS col0 FROM tab2 AS cor0 +---- +51 +67 +77 +NULL +NULL +NULL query I rowsort SELECT DISTINCT + col0 + + col0 col2 FROM tab0 cor0 @@ -22582,8 +22823,15 @@ SELECT ALL col0 * + - 7 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, + col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-3731 SELECT + SUM ( ALL + - 8 ) + - 52 + + COUNT ( * ) FROM tab0 WHERE NOT NULL >= NULL @@ -22607,8 +22855,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 AS col2, 49 * - ( - + COUNT ( * ) ) AS col2 FROM tab0 +---- +147 +76 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 74 AND + 58 @@ -22860,8 +23111,9 @@ SELECT DISTINCT col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( ( - 82 * - col2 * + 3 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col2, + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 / - - col2 AND + + 22 * 1 +---- query I rowsort SELECT DISTINCT + 47 * - col0 AS col1 FROM tab0 @@ -23770,8 +24022,15 @@ SELECT ALL - col0 * col1 + - col2 + + col1 FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - -75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col0 AS col0, col2 AS col0 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +23 +40 +58 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -24185,8 +24444,15 @@ SELECT ALL - COUNT ( ALL - col2 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 1 # Datafusion - Expected - 77 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, 1 AS col0 FROM tab2 cor0 +---- +1 +1 +1 +51 +67 +77 query I rowsort label-3989 SELECT CAST ( - 42 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN col2 + col0 AND + col1 @@ -24347,8 +24613,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + - - 69 - + COUNT ( - col0 ) AS col2, - COUNT ( ALL + col2 ) col2 FROM tab0 +---- +-3 +69 query I rowsort label-4015 SELECT ALL + MAX ( - col2 ) FROM tab0 @@ -25824,8 +26093,15 @@ SELECT DISTINCT col1, - col0 AS col0 FROM tab2 # Datafusion - Expected - -85 # Datafusion - Expected - 8395 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \* tab1\.col0 \+ \(\- tab1\.col2\) AS col1" at position 0 and "\(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 93 * col0 + - + col2 AS col1, - col0 AS col1 FROM tab1 +---- +-51 +-85 +-91 +4647 +7846 +8395 query I rowsort label-4263 SELECT + col2 * + col0 + + - col1 / + col1 + + col0 FROM tab1 AS cor0 @@ -26066,8 +26342,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) * - - COUNT ( * ) AS col2, - COUNT ( * ) AS col2 FROM tab2 +---- +-3 +9 query I rowsort SELECT DISTINCT - ( + + col0 ) + + 61 AS col0 FROM tab0 @@ -26532,8 +26811,9 @@ SELECT DISTINCT * FROM tab2 WHERE NOT - 47 IS NULL 9 values hashing to 75c998aa53ac83218cbf2feb962d0a49 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \+ tab1\.col2 / CAST\(NULL AS Float64\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - col0 + + col2 / + CAST ( NULL AS FLOAT8 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT - col2 - + - col2 > NULL +---- query I rowsort SELECT DISTINCT - col2 AS col1 FROM tab1 WHERE NOT 44 + col2 <> col0 @@ -26995,8 +27275,15 @@ SELECT ALL + SUM ( + col1 ) FROM tab2 AS cor0 # Datafusion - Expected - -79 # Datafusion - Expected - 96 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / Int64\(62\) \- \(\- cor0\.col2\) AS col0" at position 0 and "Int64\(\-79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 / + 62 - - + col2 AS col0, - 79 AS col0 FROM tab1 AS cor0 +---- +-79 +-79 +-79 +59 +68 +96 query I rowsort label-4459 SELECT DISTINCT + col1 * col0 / - 17 AS col0 FROM tab2 AS cor0 @@ -27016,8 +27303,10 @@ SELECT * FROM tab0 AS cor0 WHERE 71 / + + ( - col0 ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 6e7efe95a54bd2862baa586793d4e89f -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) \* \(\- Int64\(\-49\)\) \* cor0\.col2 AS col1" at position 1 and "cor0\.col1 \* cor0\.col0 \+ cor0\.col2 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - col0, - 71 * - - 49 * + + col2 AS col1, + ( + col1 ) * col0 + col2 AS col1 FROM tab2 AS cor0 +---- +9 values hashing to fdaa8679ce17961cb4bb1346b2843f55 query I rowsort label-4463 SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL @@ -27297,8 +27586,15 @@ SELECT DISTINCT - MIN ( DISTINCT + col0 ) * + MIN ( + col2 ) AS col0 FROM tab0 A # Datafusion - Expected - 96 # Datafusion - Expected - 1 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 / Int64\(27\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 / 27 AS col0, + col2 col0 FROM tab1 +---- +0 +0 +1 +59 +68 +96 query I rowsort label-4509 SELECT DISTINCT + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1 @@ -27523,8 +27819,11 @@ SELECT + col0 * + + col0 * col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3207 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* Int64\(45\) \+ \(\- sum\(\(\- Int64\(\-71\)\)\)\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 76 * + + 45 + - SUM ( - - 71 ) AS col2, + 49 AS col2 FROM tab1 AS cor0 +---- +3207 +49 query I rowsort SELECT - 12 * + col0 + + 58 - 54 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL @@ -27659,8 +27958,11 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT 29 BETWEEN NULL AND - + col1 - + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(DISTINCT CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +0 +3 query II rowsort SELECT 83, col0 AS col0 FROM tab2 @@ -28613,8 +28915,10 @@ SELECT + + 55 * 1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 3367038e942e104e8196040bff63ebd9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 15 col0, col1 * + col2, - col2 AS col0 FROM tab2 +---- +9 values hashing to f57aa937c441fbeda30163faf3356023 query I rowsort SELECT + col1 * - - 71 * - col1 FROM tab2 @@ -29151,8 +29455,15 @@ SELECT + - col1 + - col1 + + + col0 * + + ( + + 39 ) * col1 * + + 23 FROM tab0 A # Datafusion - Expected - -26 # Datafusion - Expected - 97 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \+ tab0\.col2 AS col2" at position 0 and "\(\- tab0\.col2\) \+ Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 + col2 AS col2, - col2 + + 21 AS col2 FROM tab0 +---- +-26 +-78 +11 +196 +62 +97 query I rowsort SELECT DISTINCT - ( 78 ) FROM tab1 @@ -30030,8 +30341,15 @@ SELECT * FROM tab0 AS cor0 WHERE 89 + - 53 + + col1 * + - col2 IS NULL # Datafusion - Expected - 91 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col2, 91 AS col2 FROM tab1 AS cor0 +---- +51 +85 +91 +91 +91 +91 query I rowsort SELECT - col1 * - 45 AS col0 FROM tab1 AS cor0 @@ -30499,8 +30817,9 @@ SELECT DISTINCT + MIN ( + col0 ) col0 FROM tab2 46 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* Int64\(19\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * + 19 AS col0, col1 AS col0 FROM tab2 WHERE NOT ( NULL IS NULL ) +---- query I rowsort SELECT - 45 * - ( col1 ) FROM tab0 AS cor0 @@ -30733,8 +31052,15 @@ SELECT DISTINCT - 17 FROM tab2 WHERE - 19 + + col0 IS NOT NULL # Datafusion - Expected - -182 # Datafusion - Expected - -5 # Datafusion - Expected - -170 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "\(\- tab1\.col0\) \+ \(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col2, - col0 + - col0 AS col2 FROM tab1 +---- +-102 +-14 +-170 +-182 +-47 +-5 query III rowsort SELECT ALL * FROM tab1 WHERE - - 87 * ( + 78 ) IS NULL @@ -31898,8 +32224,15 @@ SELECT - 69 - - 84 AS col0 FROM tab1 # Datafusion - Expected - 79 # Datafusion - Expected - 714 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* tab1\.col1 AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 * col1 col1, 79 AS col1 FROM tab1 +---- +425 +4277 +714 +79 +79 +79 query I rowsort SELECT 47 * - - 27 AS col0 FROM tab1 WHERE 23 * col0 * - + 45 <> NULL @@ -32286,8 +32619,15 @@ SELECT DISTINCT + COUNT ( * ) + + 35 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -12 # Datafusion - Expected - 58 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(\-12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 col0, - 12 AS col0 FROM tab2 AS cor0 +---- +-12 +-12 +-12 +23 +40 +58 query I rowsort SELECT - col2 * + + col0 FROM tab2 AS cor0 WHERE NULL = ( NULL ) @@ -32405,8 +32745,11 @@ SELECT ALL col1 * - - col1 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 103 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(tab0\.col1\) AS col0" at position 0 and "Int64\(\-6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + SUM ( col1 ) AS col0, - 6 AS col0 FROM tab0 +---- +-6 +103 query I rowsort label-5354 SELECT DISTINCT - 55 / + + col1 AS col1 FROM tab1 AS cor0 @@ -32811,8 +33154,15 @@ SELECT DISTINCT - SUM ( DISTINCT - col2 ) AS col0 FROM tab1 cor0 # Datafusion - Expected - -2666 # Datafusion - Expected - NULL # Datafusion - Expected - -3908 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(94\) \- Int64\(\-69\) \* \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col2, 94 - - 69 * - col2 AS col2 FROM tab2 +---- +-1493 +-2666 +-3908 +NULL +NULL +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 @@ -32821,8 +33171,15 @@ SELECT ALL CAST ( NULL AS INTEGER ) AS col2, 94 - - 69 * - col2 AS col2 FROM tab # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( col2 ), + col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT ALL 32 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) @@ -33453,8 +33810,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) AS col2, - COUNT ( DISTINCT + col0 ) col2 FROM tab1 cor0 +---- +-3 +-3 query II rowsort SELECT DISTINCT - + col0, + col0 FROM tab1 cor0 @@ -33549,8 +33909,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE - col1 + - 27 IS NULL # Datafusion - Expected - 59 # Datafusion - Expected - -91 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, + col2 AS col0 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +59 +68 +96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 @@ -33559,8 +33926,15 @@ SELECT - col0 AS col0, + col2 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT DISTINCT 52 + + + 31 FROM tab2 AS cor0 @@ -34867,8 +35241,15 @@ SELECT DISTINCT + col0 AS col2, col1 AS col1 FROM tab1 # Datafusion - Expected - -135 # Datafusion - Expected - 5 # Datafusion - Expected - -165 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "tab1\.col1 \- tab1\.col0 \+ \(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col0, col1 - col0 + - col0 AS col0 FROM tab1 +---- +-135 +-165 +-88 +14 +47 +5 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) < + - 40 @@ -35792,8 +36173,11 @@ SELECT ALL + col0, + col1 col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1587 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \* Int64\(\-69\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 23 * - 69 AS col1, 75 col1 FROM tab0 AS cor0 +---- +1587 +75 query II rowsort SELECT - + 74 AS col0, + 55 FROM tab2 AS cor0 @@ -35812,8 +36196,15 @@ SELECT - + 74 AS col0, + 55 FROM tab2 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - -8 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 8 col0, - col0 AS col0 FROM tab0 AS cor0 +---- +-15 +-8 +-8 +-8 +-87 +-97 query I rowsort SELECT DISTINCT - ( - - 81 ) AS col0 FROM tab2 @@ -36142,8 +36533,11 @@ SELECT + + col2 FROM tab1 WHERE + col2 + - + col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- max\(cor0\.col1\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) + + - MAX ( + + col1 ) AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +-80 +3 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN ( 95 ) * - 25 AND - 49 * - col1 * + col0 @@ -36434,8 +36828,11 @@ SELECT * FROM tab2 WHERE 81 < col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) + + + ( + COUNT ( * ) ) AS col1, COUNT ( * ) col1 FROM tab1 AS cor0 +---- +3 +6 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 41 NOT BETWEEN - 92 AND NULL @@ -36602,8 +36999,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT + col1 / + col2 IN ( - col1 + + 99, - col1 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col1, col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-6043 SELECT DISTINCT - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 @@ -37050,8 +37454,15 @@ SELECT + - 75 FROM tab1 cor0 WHERE NOT NULL < - col1 # Datafusion - Expected - 4165 # Datafusion - Expected - -28 # Datafusion - Expected - 4459 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(28\)\) AS col1" at position 0 and "cor0\.col0 \* Int64\(50\) \- cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 28 AS col1, + col0 * + 50 - col0 AS col1 FROM tab1 AS cor0 +---- +-28 +-28 +-28 +2499 +4165 +4459 query I rowsort label-6122 SELECT + MAX ( DISTINCT - 28 ) AS col2 FROM tab0 AS cor0 @@ -37374,8 +37785,9 @@ SELECT - + MAX ( + col1 ) + + COUNT ( * ) * + - COUNT ( * ) FROM tab1 WHERE ( + -56 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ Int64\(\-90\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 + - 90 AS col0, + 77 AS col0 FROM tab2 WHERE ( - col2 ) IS NULL +---- query I rowsort SELECT - 26 * + - 2 * col0 AS col2 FROM tab2 @@ -37757,8 +38169,15 @@ SELECT - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 59 # Datafusion - Expected - 197 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / cor0\.col0 \* cor0\.col0 \+ cor0\.col2 \+ Int64\(64\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 / col0 * + col0 + col2 + 64 AS col2, + 59 AS col2 FROM tab2 AS cor0 +---- +133 +168 +197 +59 +59 +59 query I rowsort SELECT + 34 * - col1 AS col2 FROM tab1 @@ -37823,8 +38242,11 @@ SELECT + col1 col0, - 58 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-29\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( - 29 ) col2, COUNT ( * ) AS col2 FROM tab2 +---- +-87 +3 query I rowsort SELECT DISTINCT - + 53 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL @@ -38192,8 +38614,15 @@ SELECT ALL 77 * 2 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 64 # Datafusion - Expected - -83 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 83 AS col1, + col0 AS col1 FROM tab2 AS cor0 +---- +-83 +-83 +-83 +46 +64 +75 query II rowsort SELECT - + col2 AS col0, col2 FROM tab1 cor0 @@ -38572,8 +39001,15 @@ SELECT + col1 * + 27 * - col2 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -77 # Datafusion - Expected - 9 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \- tab2\.col2 AS col2" at position 0 and "\(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 - + + col2 AS col2, - ( + col1 ) AS col2 FROM tab2 +---- +-51 +-67 +-77 +28 +37 +9 query I rowsort label-6368 SELECT - 52 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 @@ -39292,8 +39728,15 @@ SELECT + + col1, 85 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - -97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, col0 AS col1 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +15 +87 +97 query I rowsort label-6481 SELECT + 92 FROM tab2 AS cor0 WHERE NOT + 23 * + col2 > - col2 + + - ( + + col1 ) * - CAST ( + CAST ( + col2 AS INTEGER ) AS INTEGER ) @@ -40244,8 +40687,11 @@ SELECT MAX ( - 98 ) * + 48 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -129 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT tab1\.col0\) \* Int64\(\-43\) AS col2" at position 0 and "Int64\(\-92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( DISTINCT col0 ) * - 43 col2, - 92 col2 FROM tab1 +---- +-129 +-92 query I rowsort label-6649 SELECT ALL + COUNT ( * ) * CAST ( - MIN ( + 7 ) AS INTEGER ) FROM tab2 WHERE NOT - 57 NOT BETWEEN - col2 AND ( + - col0 ) @@ -40584,8 +41030,12 @@ SELECT - 63 * - col1 FROM tab0 AS cor0 # Datafusion - Expected - 70 # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 70 AS col2, COUNT ( * ), + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND 25 + col1 +---- +0 +0 +70 query I rowsort label-6703 SELECT ALL + MAX ( + - ( + - 50 ) ) FROM tab0 AS cor0 @@ -40610,8 +41060,11 @@ SELECT ALL - - COUNT ( * ) AS col2 FROM tab0 WHERE - col1 * + ( - 25 ) > + + col # 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 "Int64\(41\) AS col1" at position 0 and "min\(DISTINCT tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 AS col1, MIN ( DISTINCT col1 ) AS col1 FROM tab2 +---- +41 +51 query I rowsort label-6707 SELECT ALL + COUNT ( + + col0 ) AS col2 FROM tab0 @@ -41015,8 +41468,15 @@ NULL # Datafusion - Expected - 22 # Datafusion - Expected - -8 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 8 AS col0, + 22 AS col0 FROM tab0 +---- +-8 +-8 +-8 +22 +22 +22 query III rowsort label-6769 SELECT * FROM tab2 AS cor0 WHERE ( - 35 * + col2 + 87 = + - CAST ( NULL AS INTEGER ) ) @@ -41263,8 +41723,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + COUNT ( * ) AS col2, - COUNT ( * ) AS col2 FROM tab0 cor0 +---- +-3 +-3 query IIIIII rowsort SELECT ALL * FROM tab2, tab1 AS cor0 WHERE NOT 75 + - 60 IS NULL @@ -41290,8 +41753,11 @@ SELECT DISTINCT + + MIN ( DISTINCT 31 ) + 18 / + 96 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-3 +3 query I rowsort label-6816 SELECT + MIN ( ALL - 56 ) FROM tab1 AS cor0 @@ -41729,8 +42195,15 @@ SELECT + 13 col0, 25 * + col0 AS col2 FROM tab1 # Datafusion - Expected - 51 # Datafusion - Expected - -3763 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- Int64\(85\)\) \+ cor0\.col2 \* cor0\.col2 \+ cor0\.col1 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 * - + 85 + + col2 * col2 + col1 AS col0, col1 AS col0 FROM tab2 AS cor0 +---- +-2944 +-3330 +-3763 +51 +67 +77 query I rowsort SELECT + ( + - 97 ) col2 FROM tab1 AS cor0 @@ -43904,8 +44377,11 @@ SELECT DISTINCT + 60 + - - MAX ( - col0 ) FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col1, 60 AS col1 FROM tab2 AS cor0 +---- +-3 +60 query I rowsort SELECT ALL col2 + 23 + + 39 AS col1 FROM tab2 AS cor0 @@ -44155,8 +44631,15 @@ SELECT ALL + + 22 AS col0, col2 - - 14 AS col1 FROM tab2 cor0 # Datafusion - Expected - 73 # Datafusion - Expected - 96 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col2 AS col1, 73 col1 FROM tab1 AS cor0 +---- +59 +68 +73 +73 +73 +96 query I rowsort SELECT ALL 74 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 @@ -44239,8 +44722,15 @@ SELECT DISTINCT + 62 + - 64 - 37 FROM tab2 # Datafusion - Expected - -1 # Datafusion - Expected - -41 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \+ Int64\(36\) AS col1" at position 0 and "\(\- tab2\.col2\) / CAST\(\(\- Int64\(\-33\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + 36 AS col1, - col2 / CAST ( - - 33 AS INTEGER ) AS col1 FROM tab2 +---- +-1 +-1 +-15 +-31 +-41 +0 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -45153,8 +45643,11 @@ SELECT + + 38 FROM tab2 AS cor0 CROSS JOIN tab0 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\(tab0\.col1\)\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( col1 ) col1, 53 AS col1 FROM tab0 +---- +-3 +53 query I rowsort SELECT DISTINCT - 89 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 @@ -46339,8 +46832,11 @@ SELECT * FROM tab0 cor0 WHERE NOT + col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(\-45\)\)\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - COUNT ( ALL - 45 ) AS col1, 74 AS col1 FROM tab0 AS cor0 +---- +-3 +74 query I rowsort SELECT ALL - 95 col0 FROM tab2 AS cor0 @@ -46366,8 +46862,15 @@ SELECT + col1 col2, - col0 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-7678 SELECT ALL col1 col0 FROM tab2 WHERE - - 3 BETWEEN - col0 / CAST ( - col1 AS INTEGER ) AND NULL @@ -46500,8 +47003,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col2" at position 0 and "cor0\.col0 \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 14 AS col2, + col0 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 +---- +14 +NULL query II rowsort label-7701 SELECT DISTINCT - + ( - MAX ( DISTINCT col1 ) ) AS col2, 27 + + 62 FROM tab2 AS cor0 @@ -46904,8 +47410,15 @@ SELECT ALL * FROM tab1 WHERE NOT ( - + CAST ( NULL AS INTEGER ) + col2 ) = ( NUL # Datafusion - Expected - -64 # Datafusion - Expected - -75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, - col0 AS col1 FROM tab2 +---- +-46 +-46 +-64 +-64 +-75 +-75 query III rowsort label-7766 SELECT ALL * FROM tab1 WHERE NOT + - col0 = col1 * + CAST ( NULL AS INTEGER ) * + + col1 + + 34 + + 29 / + - col0 @@ -47059,8 +47572,9 @@ SELECT ALL - 67 FROM tab0 AS cor0 WHERE NOT col1 * + col2 + col0 + + + col2 + co -67 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) / cor0\.col0 AS col0" at position 0 and "Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 99 / col0 AS col0, + 74 AS col0 FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND NULL +---- query III rowsort SELECT ALL * FROM tab1 WHERE - + 56 > NULL @@ -47497,8 +48011,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 58 AS col2, + 24 / - - COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +58 +8 query II rowsort SELECT + 26, + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL @@ -48253,8 +48770,15 @@ SELECT + + col1 AS col1, - 79 FROM tab1 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - -75 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, + col1 AS col2 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +51 +67 +77 query I rowsort SELECT ALL - + 84 + + 99 + + col1 AS col2 FROM tab0 AS cor0 @@ -48539,8 +49063,11 @@ SELECT - COUNT ( * ) * + 61 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-83\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( ALL - 83 ) AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +-83 +3 query I rowsort label-8028 SELECT + - 25 * + - COUNT ( * ) FROM tab0 AS cor0 @@ -49081,8 +49608,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 26 * col1 IS NULL # Datafusion - Expected - -80 # Datafusion - Expected - 93 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-93\)\) AS col2" at position 0 and "Int64\(\-80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 93 AS col2, - 80 AS col2 FROM tab0 AS cor0 +---- +-80 +-80 +-80 +93 +93 +93 query I rowsort label-8123 SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( - col0 ) IS NULL @@ -49663,8 +50197,10 @@ SELECT - + ( + col1 ) * + 75 * - col2 * - 63 * - col2 + - col1 AS col2, col2 FRO # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c3f211610c274e6733018ea0b4811969 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) / CAST\(NULL AS Int32\) AS col0" at position 0 and "cor0\.col0 \* \(\- \(\- cor0\.col2\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IRI valuesort SELECT + - col1 / CAST ( NULL AS INTEGER ) col0, + 69 + + ( + CAST ( + + CAST ( NULL AS INTEGER ) AS FLOAT8 ) ) + - col1 - col2, + col0 * - - col2 AS col0 FROM tab2 AS cor0 +---- +9 values hashing to 12baf9401177354fb4509007774f237e query I rowsort label-8225 SELECT col1 * - + CAST ( NULL AS INTEGER ) FROM tab1 @@ -50119,8 +50655,11 @@ SELECT MIN ( DISTINCT + col1 ) / - 95 + + COUNT ( * ) AS col1 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 "\(\- CAST\(NULL AS Float64\)\) \+ cor0\.col1 \* Int64\(93\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT - CAST ( NULL AS FLOAT8 ) + + col1 * ( 93 ) AS col0, 31 AS col0 FROM tab2 cor0 +---- +31 +NULL query I rowsort SELECT ALL + 91 + - ( + + 37 ) col0 FROM tab0 AS cor0 @@ -50140,14 +50679,24 @@ SELECT ALL * FROM tab2 AS cor0 WHERE col1 BETWEEN 6 * - + col2 + + - col2 + + - # Datafusion - Expected - 56 # Datafusion - Expected - 38 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \+ \(\- Int64\(99\)\) \+ cor0\.col0 AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 46 + + - ( 99 ) + + col0 AS col2, + 56 AS col2 FROM tab1 AS cor0 +---- +-2 +32 +38 +56 +56 +56 # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - -223 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col0" at position 0 and "\(\- sum\(cor0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 73 AS col0, - SUM ( + col2 ) AS col0 FROM tab1 AS cor0 +---- +-223 +-73 query I rowsort label-8307 SELECT + SUM ( + - ( - col1 ) ) FROM tab0 AS cor0 @@ -50489,8 +51038,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) / - 33 AS col1, 84 col1 FROM tab0 AS cor0 +---- +0 +84 query I rowsort SELECT ALL - 67 + + + col1 AS col0 FROM tab2 AS cor0 @@ -51401,8 +51953,15 @@ SELECT DISTINCT - col1 + - 17 + + 57 FROM tab1 AS cor0 # Datafusion - Expected - 59 # Datafusion - Expected - 34 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(59\) \+ Int64\(57\) / Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 + + - col2 AS col1, + 59 + + 57 / + - 66 AS col1 FROM tab0 AS cor0 +---- +-98 +11 +34 +59 +59 +59 query I rowsort label-8510 SELECT - SUM ( - 20 ) / + + COUNT ( * ) col0 FROM tab1 AS cor0 @@ -52355,8 +52914,15 @@ SELECT * FROM tab2 WHERE NOT - 55 NOT BETWEEN NULL AND NULL # Datafusion - Expected - -4753 # Datafusion - Expected - NULL # Datafusion - Expected - -735 -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 "tab0\.col0 \* Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT CAST ( NULL AS FLOAT8 ) AS col2, col0 * + - 49 AS col2 FROM tab0 +---- +-4263 +-4753 +-735 +NULL +NULL +NULL query II rowsort SELECT + col2, + col1 FROM tab1 @@ -52855,8 +53421,15 @@ SELECT DISTINCT - 30 / - col0 + - ( + 55 ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 5440 # Datafusion - Expected - -31 # Datafusion - Expected - 6375 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col1" at position 0 and "cor0\.col0 \* Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 col1, col0 * 85 AS col1 FROM tab2 AS cor0 +---- +-31 +-31 +-31 +3910 +5440 +6375 query II rowsort label-8752 SELECT DISTINCT - col2 AS col0, + CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) FROM tab2 @@ -54167,8 +54740,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL +---- +3 +3 query I rowsort label-8968 SELECT - COUNT ( DISTINCT + - col2 ) AS col2 FROM tab1 AS cor0 @@ -54344,8 +54920,15 @@ SELECT - 67 * ( col1 ) col2 FROM tab0 # Datafusion - Expected - -4260 # Datafusion - Expected - -97 # Datafusion - Expected - -4260 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \- cor0\.col0 AS col0" at position 0 and "Int64\(71\) \* Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 - + col0 AS col0, + 71 * + - 60 AS col0 FROM tab2 AS cor0 +---- +-141 +-142 +-4260 +-4260 +-4260 +-97 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT col1 > NULL @@ -54368,8 +54951,15 @@ SELECT DISTINCT 76 * + + 33 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - -45 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 45 col0, + col1 AS col0 FROM tab1 +---- +-45 +-45 +-45 +14 +47 +5 query II rowsort SELECT 11, + col0 AS col2 FROM tab2 @@ -55222,8 +55812,15 @@ SELECT DISTINCT col2 - col0 FROM tab0 AS cor0 WHERE ( NULL ) < - col0 + - + col2 # Datafusion - Expected - 59 # Datafusion - Expected - 77 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col1 AS col2, 59 AS col2 FROM tab2 cor0 +---- +51 +59 +59 +59 +67 +77 query I rowsort SELECT ALL - ( 22 ) + - + 83 AS col0 FROM tab2 AS cor0 @@ -55511,8 +56108,15 @@ SELECT DISTINCT col0 * 53 * + col0 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col2, col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query II rowsort SELECT - 38, - ( - col1 ) AS col1 FROM tab0 AS cor0 @@ -56734,8 +57338,15 @@ SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE ( + - 19 ) <= NULL # Datafusion - Expected - 40 # Datafusion - Expected - 4350 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 * - - col0 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +1058 +23 +2560 +40 +4350 +58 query I rowsort SELECT DISTINCT - col2 * + + 28 AS col0 FROM tab2 cor0 @@ -57004,8 +57615,15 @@ SELECT - + SUM ( ALL col2 ) FROM tab2 AS cor0 # Datafusion - Expected - -2441 # Datafusion - Expected - 694 # Datafusion - Expected - -751 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col0 \+ \(\- Int64\(20\)\) AS col2" at position 0 and "cor0\.col1 \* \(\- Int64\(50\)\) \+ \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 * col0 + - ( + + 20 ) AS col2, + col1 * - + 50 + - col0 AS col2 FROM tab1 AS cor0 +---- +-2441 +-335 +-751 +405 +4257 +694 query III rowsort SELECT * FROM tab0 AS cor0 WHERE ( + + 75 ) IS NOT NULL @@ -57105,8 +57723,15 @@ SELECT + + 26 + - COUNT ( * ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 235520 # Datafusion - Expected - 3953 # Datafusion - Expected - 400200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col2 \+ cor0\.col1 AS col1" at position 0 and "cor0\.col0 \* \(\- Int64\(\-92\)\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * ( col2 ) + + col1 AS col1, col0 * - - 92 * col2 col1 FROM tab2 cor0 +---- +1224 +235520 +3157 +3953 +400200 +97336 query I rowsort label-9442 SELECT ALL + - ( + col2 ) + + - 30 / + 61 AS col1 FROM tab1 AS cor0 @@ -57325,8 +57950,15 @@ SELECT * FROM tab2 AS cor0 WHERE - ( + col2 ) / col0 > NULL # Datafusion - Expected - 90 # Datafusion - Expected - -7917 # Datafusion - Expected - 138 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) \* cor0\.col0 AS col0" at position 0 and "cor0\.col0 \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 87 * ( col0 ) AS col0, col0 + ( col1 ) col0 FROM tab1 AS cor0 WHERE NULL IS NULL +---- +-4437 +-7395 +-7917 +138 +65 +90 query I rowsort label-9478 SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 46 FROM tab2 @@ -57399,8 +58031,11 @@ SELECT DISTINCT MAX ( + - col1 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "CAST\(Int64\(30\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, CAST ( + 30 AS INTEGER ) AS col0 FROM tab1 +---- +30 +NULL query I rowsort label-9490 SELECT DISTINCT - - ( - COUNT ( * ) ) FROM tab2 AS cor0 @@ -57459,8 +58094,15 @@ SELECT ALL + - col2 col1 FROM tab1 WHERE NOT NULL IS NULL # Datafusion - Expected - 15 # Datafusion - Expected - 60 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT 60 AS col0, 15 AS col0 FROM tab1 +---- +15 +15 +15 +60 +60 +60 query I rowsort label-9501 SELECT DISTINCT - SUM ( - 86 ) AS col0 FROM tab2 @@ -58071,8 +58713,11 @@ SELECT col2 * - 2 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab1 +---- +0 +3 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT + - 53 / - + 32 + - col0 <> - + col1 @@ -58935,8 +59580,15 @@ SELECT DISTINCT + - COUNT ( * ) * - 94 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 62 # Datafusion - Expected - -91 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, + 62 AS col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +62 +62 +62 query I rowsort SELECT - - 24 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 + + 94 BETWEEN + + 19 AND NULL @@ -59278,8 +59930,15 @@ SELECT * FROM tab1 AS cor0 WHERE NULL > + 1 # Datafusion - Expected - 3080 # Datafusion - Expected - NULL # Datafusion - Expected - 3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- Int64\(\-95\) AS col1" at position 0 and "cor0\.col2 \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) - - 95 AS col1, col2 * + + col1 AS col1 FROM tab2 AS cor0 +---- +1173 +3080 +3886 +NULL +NULL +NULL query III rowsort label-9801 SELECT DISTINCT * FROM tab2 WHERE NOT ( + 19 + col0 * + ( + col1 ) + - 62 ) BETWEEN CAST ( NULL AS INTEGER ) AND NULL @@ -59836,8 +60495,15 @@ SELECT + col2 AS col0 FROM tab2 WHERE col1 IS NULL # Datafusion - Expected - 68 # Datafusion - Expected - 4 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \+ Int64\(\-17\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( 21 ) + - 17 AS col0, col2 AS col0 FROM tab1 +---- +4 +4 +4 +59 +68 +96 query II rowsort label-9891 SELECT DISTINCT COUNT ( * ) AS col0, - MIN ( - 74 ) FROM tab1 @@ -60024,8 +60690,15 @@ SELECT - + 20 / SUM ( ALL col1 ) FROM tab0 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - 63 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "\(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 63 AS col1, - col1 AS col1 FROM tab2 +---- +-51 +-67 +-77 +63 +63 +63 query I rowsort label-9923 SELECT DISTINCT - CAST ( - + 88 AS INTEGER ) + - + MAX ( + 44 ) / + 70 - - + 46 AS col0 FROM tab2 @@ -60378,8 +61051,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - CAST ( NULL AS FLOAT8 ) AS col0, COUNT ( ALL + 24 ) + - COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab0 +---- +3 +NULL query I rowsort label-9981 SELECT DISTINCT + + 61 / - col0 / 38 * + col2 * - col1 * - ( col1 ) + - + col2 AS col1 FROM tab1 WHERE NOT ( NOT ( NULL IS NULL ) ) diff --git a/data/sqlite/random/aggregates/slt_good_1.slt b/data/sqlite/random/aggregates/slt_good_1.slt index e538c68..8b40164 100644 --- a/data/sqlite/random/aggregates/slt_good_1.slt +++ b/data/sqlite/random/aggregates/slt_good_1.slt @@ -1093,8 +1093,15 @@ SELECT 81 + - col0 FROM tab0 cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 37 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 AS col1, + ( + col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL +---- +15 +37 +37 +37 +87 +97 query I rowsort label-186 SELECT ALL + COUNT ( * ) AS col2 FROM tab0 cor0 @@ -1162,8 +1169,15 @@ SELECT + col2 AS col2, + 8 FROM tab1 AS cor0 # Datafusion - Expected - 7225 # Datafusion - Expected - -91 # Datafusion - Expected - 8281 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col0 \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, col0 * + col0 AS col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +2601 +7225 +8281 query IIIIII rowsort SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) @@ -1458,8 +1472,15 @@ SELECT + + col1 AS col0, 70 + - + 14 AS col2 FROM tab2 cor0 # Datafusion - Expected - 90 # Datafusion - Expected - -81 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, + 90 col1 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +90 +90 +90 query I rowsort label-247 SELECT DISTINCT + 97 / + + col1 FROM tab1 cor0 @@ -2025,8 +2046,15 @@ SELECT ALL + COUNT ( - col0 ) + - COUNT ( * ) + + COUNT ( * ) FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col1, col1 AS col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT - 82 + col0 AS col2 FROM tab2 @@ -2389,8 +2417,15 @@ SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - -75 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col0 / \(\- Int64\(\-97\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, col0 / - - 97 AS col0 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +0 +0 +0 query I rowsort label-401 SELECT ALL SUM ( DISTINCT + col0 ) col0 FROM tab0 AS cor0 @@ -2581,8 +2616,15 @@ SELECT DISTINCT - - col1 AS col2, + col0 FROM tab2 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col1, col1 AS col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT + ( - + col2 ) AS col0 FROM tab1 @@ -3571,8 +3613,15 @@ SELECT DISTINCT - col2 * + col0 * - 9 * - - 55 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -13 # Datafusion - Expected - -75 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col0 \+ \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 col0, + col0 + + + ( - + col1 ) AS col0 FROM tab2 AS cor0 +---- +-13 +-46 +-5 +-64 +-75 +8 query II rowsort label-600 SELECT + CAST ( NULL AS INTEGER ) * col1, + col2 / col2 AS col2 FROM tab2 AS cor0 @@ -3591,8 +3640,15 @@ NULL # Datafusion - Expected - -260 # Datafusion - Expected - 6188 # Datafusion - Expected - -2444 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- cor0\.col0\) AS col0" at position 0 and "Int64\(52\) \* \(\- CAST\(cor0\.col1 AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 * - + col0 AS col0, 52 * - CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0 +---- +-2444 +-260 +-728 +4896 +5015 +6188 query I rowsort SELECT DISTINCT ( - - col2 ) + + col1 FROM tab2 AS cor0 @@ -3933,8 +3989,15 @@ SELECT - 79 * col1 + col0 col2 FROM tab2 # Datafusion - Expected - -3720 # Datafusion - Expected - 75 # Datafusion - Expected - -5394 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "Int64\(93\) \* \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, 93 * - col2 AS col2 FROM tab2 +---- +-2139 +-3720 +-5394 +46 +64 +75 query I rowsort SELECT ALL + - col1 AS col2 FROM tab1 WHERE NOT col1 / - col1 * + 52 - + 44 = col1 * - - col2 @@ -3956,8 +4019,15 @@ SELECT - + 24 AS col2, + COUNT ( DISTINCT + 62 ) FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 88 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 88 AS col2, col1 AS col2 FROM tab0 AS cor0 +---- +1 +21 +81 +88 +88 +88 query I rowsort label-660 SELECT ALL 3 * + + MAX ( DISTINCT + col1 ) col1 FROM tab1 cor0 @@ -4749,8 +4819,15 @@ SELECT DISTINCT 16, col0 FROM tab2 # Datafusion - Expected - 97 # Datafusion - Expected - 5 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "tab1\.col0 \- tab1\.col0 \- Int64\(\-97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, + col0 - + col0 - - 97 AS col2 FROM tab1 +---- +14 +47 +5 +97 +97 +97 query I rowsort label-801 SELECT SUM ( + - 12 ) AS col0 FROM tab0 @@ -5570,8 +5647,12 @@ SELECT ALL COUNT ( * ) + - + 38 + 46 / SUM ( ALL 22 ) AS col1 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -53 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(\-3\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - CAST ( NULL AS INTEGER ) AS col0, 0 + - MAX ( ALL - - 53 ) AS col1, - 3 col0 FROM tab0 AS cor0 +---- +-3 +-53 +NULL query III rowsort SELECT * FROM tab0 AS cor0 WHERE NULL IS NOT NULL @@ -6301,8 +6382,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL # Datafusion - Expected - -21 # Datafusion - Expected - 10 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 10 AS col1, - col1 col1 FROM tab0 +---- +-1 +-21 +-81 +10 +10 +10 query I rowsort SELECT ALL - 13 - - col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL @@ -6319,8 +6407,11 @@ SELECT - 55 * - - SUM ( - 94 ) AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 4 AS col0, COUNT ( * ) AS col0 FROM tab1 cor0 +---- +-4 +3 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL @@ -6524,8 +6615,11 @@ 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\(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\. +query II valuesort SELECT - + SUM ( DISTINCT - 5 ) * - COUNT ( * ) + 79 AS col2, + 49 AS col2 FROM tab1 AS cor0 +---- +49 +64 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT NULL = col1 @@ -7989,8 +8083,11 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * + + col0 NOT IN ( - col2 ) # 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\(\(\- cor0\.col2\)\) AS col0" at position 0 and "min\(DISTINCT Int64\(79\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( + COUNT ( ALL - col2 ) ) AS col0, MIN ( DISTINCT 79 ) AS col0 FROM tab0 AS cor0 +---- +3 +79 query II rowsort SELECT ALL - - col1 + 60 * - col2 col0, col1 col2 FROM tab2 AS cor0 @@ -8012,8 +8109,11 @@ SELECT - col1 * col2 * + + ( 99 ) AS col2 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +3 +NULL query I rowsort label-1358 SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 @@ -8242,8 +8342,15 @@ SELECT * FROM tab0 cor0 WHERE NOT 59 + - col0 IS NOT NULL # Datafusion - Expected - 4656 # Datafusion - Expected - -42 # Datafusion - Expected - 720 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col2" at position 0 and "Int64\(48\) \* \(\- \(\- tab0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 42 AS col2, 48 * - + ( - col0 ) AS col2 FROM tab0 +---- +-42 +-42 +-42 +4176 +4656 +720 query III rowsort SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - ( col2 ), col2 + col2 ) @@ -8760,8 +8867,15 @@ SELECT + COUNT ( ALL col2 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 1 # 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 "tab0\.col1 \+ Int64\(\-20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 col0, col1 + - 20 AS col0 FROM tab0 +---- +-19 +1 +19 +19 +19 +61 query I rowsort label-1487 SELECT DISTINCT SUM ( - + 68 ) * - - 92 * - + COUNT ( * ) AS col1 FROM tab1 @@ -11722,8 +11836,15 @@ SELECT + ( + COUNT ( * ) ) / ( - + CAST ( + + 14 AS INTEGER ) ) FROM tab2 AS cor # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-1984 SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 5 / + - col0 * col1 AS col1 FROM tab1 @@ -12324,8 +12445,11 @@ SELECT DISTINCT + 87 AS col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col0" at position 0 and "sum\(tab0\.col2\) \+ count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 95 AS col0, + ( + SUM ( col2 ) ) + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 WHERE NULL <= NULL +---- +-95 +NULL query I rowsort label-2081 SELECT ALL + COUNT ( * ) * - 62 - SUM ( DISTINCT - + ( + 91 ) ) AS col1 FROM tab2, tab0 cor0 @@ -12356,8 +12480,15 @@ SELECT DISTINCT col0 + + + col1 AS col1 FROM tab0 # Datafusion - Expected - 1600 # Datafusion - Expected - 49 # Datafusion - Expected - 2320 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \+ tab2\.col0 / \(\- tab2\.col2\) AS col0" at position 0 and "Int64\(40\) \* tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 + + col0 / - col2 AS col0, 40 * + col2 AS col0 FROM tab2 +---- +1600 +2320 +48 +49 +49 +920 query I rowsort SELECT ALL + 62 + col0 - + col2 AS col0 FROM tab2 @@ -12378,8 +12509,15 @@ SELECT - COUNT ( * ) + - 58 + + + 24 FROM tab2 # Datafusion - Expected - -146 # Datafusion - Expected - -72 # Datafusion - Expected - -136 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ Int64\(\-62\) \- Int64\(\-48\) AS col1" at position 0 and "\(\- cor0\.col1\) \+ \(\- Int64\(69\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 + + - 62 - + - 48 AS col1, - col1 + - + 69 AS col1 FROM tab2 AS cor0 +---- +-120 +-136 +-146 +-37 +-54 +-72 query I rowsort label-2089 SELECT - CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE + ( + - col2 ) * col0 / - CAST ( NULL AS INTEGER ) IS NOT NULL @@ -12930,8 +13068,15 @@ NULL # Datafusion - Expected - -13 # Datafusion - Expected - 91 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, - 13 AS col2 FROM tab1 +---- +-13 +-13 +-13 +51 +85 +91 query I rowsort label-2182 SELECT DISTINCT 6 + + ( - - CAST ( NULL AS INTEGER ) ) * - 45 AS col0 FROM tab1 @@ -12945,8 +13090,15 @@ NULL # Datafusion - Expected - -85 # Datafusion - Expected - 0 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 + - ( col1 ) AS col1, - col0 AS col1 FROM tab1 cor0 +---- +-51 +-85 +-91 +0 +0 +0 query I rowsort SELECT DISTINCT + - col1 * 22 * ( - + 3 ) FROM tab2 cor0 @@ -13211,8 +13363,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > + col1 * + col1 # Datafusion - Expected - 147 # Datafusion - Expected - 74 # Datafusion - Expected - 159 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "tab1\.col2 \+ tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 74 col2, + col2 + col0 AS col2 FROM tab1 +---- +144 +147 +159 +74 +74 +74 query III rowsort SELECT * FROM tab2 WHERE - + col0 * - 12 + + - 72 IS NULL @@ -13283,8 +13442,11 @@ SELECT 40 AS col0 FROM tab0 AS cor0 WHERE NOT 49 + col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 20 AS col1, + 37 col1 FROM tab2 AS cor0 +---- +20 +37 query I rowsort SELECT + 69 col2 FROM tab2 AS cor0 WHERE NOT - col1 + 50 IS NOT NULL @@ -13627,8 +13789,15 @@ SELECT ALL - - col0 AS col0, - col2 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, + col1 FROM tab1 cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT ALL - + 51 AS col1 FROM tab0 AS cor0 @@ -16272,8 +16441,15 @@ SELECT 10 - - - 57 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 4508 # Datafusion - Expected - -35 # Datafusion - Expected - 9088 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-35\) AS Int32\) AS col1" at position 0 and "cor0\.col0 \+ cor0\.col0 \* cor0\.col0 \+ \(\- \(\- cor0\.col1\)\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( + - 35 AS INTEGER ) AS col1, col0 + col0 * + + col0 + - - col1 * col0 AS col1 FROM tab2 AS cor0 +---- +-35 +-35 +-35 +10725 +4508 +9088 query I rowsort SELECT + col1 + + 52 AS col0 FROM tab0 AS cor0 @@ -16694,8 +16870,15 @@ NULL # Datafusion - Expected - -474 # Datafusion - Expected - -75 # Datafusion - Expected - -474 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col2" at position 0 and "Int64\(6\) \* Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 75 AS col2, 6 * - 79 AS col2 FROM tab1 cor0 +---- +-474 +-474 +-474 +-75 +-75 +-75 query I rowsort label-2833 SELECT + MIN ( DISTINCT + - col1 ) AS col0 FROM tab2 AS cor0 @@ -16946,8 +17129,15 @@ SELECT ALL SUM ( ALL - 8 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 5 # Datafusion - Expected - 65 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \+ \(\- \(\- cor0\.col0\)\) \+ Int64\(\-76\) AS col0" at position 0 and "\(\- \(\- cor0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 50 + - - col0 + - 76 AS col0, + ( - - col1 ) AS col0 FROM tab1 AS cor0 +---- +14 +25 +47 +5 +59 +65 query II rowsort SELECT - - col1 + - - col0 AS col0, - col1 FROM tab1 cor0 @@ -17059,8 +17249,10 @@ SELECT DISTINCT + + 29 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to e826d82495162893c4b032160010dc9b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- CAST\(CAST\(NULL AS Int32\) AS Int32\)\) \+ \(\- \(\- cor0\.col1\)\) AS col2" at position 1 and "cor0\.col2 \* cor0\.col1 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + ( col1 ), + col1 * + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - ( + - col1 ) AS col2, col2 * + col1 AS col2 FROM tab1 AS cor0 +---- +9 values hashing to 08e06e660bd226727540a822ce161d03 query I rowsort SELECT + + 21 AS col2 FROM tab1 cor0 @@ -17186,8 +17378,15 @@ SELECT DISTINCT + MIN ( DISTINCT - ( - + col0 ) ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -446 # Datafusion - Expected - 91 # Datafusion - Expected - -446 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ Int64\(\-39\) / cor0\.col2 AS col2" at position 0 and "cor0\.col0 / \(\- cor0\.col0\) \+ Int64\(5\) \* Int64\(\-97\) \+ Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 + + - 39 / + col2 col2, ( col0 ) / - col0 + 5 * - 97 + + 40 AS col2 FROM tab1 AS cor0 +---- +-446 +-446 +-446 +51 +85 +91 query I rowsort SELECT + col0 + 68 FROM tab1 cor0 @@ -17208,8 +17407,15 @@ SELECT + 64 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - 6640 # Datafusion - Expected - 91 # Datafusion - Expected - 6640 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "Int64\(80\) \* \(\- Int64\(\-83\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, + 80 * - - 83 AS col2 FROM tab1 +---- +51 +6640 +6640 +6640 +85 +91 query I rowsort label-2918 SELECT ALL COUNT ( * ) + - COUNT ( * ) FROM tab1 @@ -17223,8 +17429,15 @@ SELECT ALL COUNT ( * ) + - COUNT ( * ) FROM tab1 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT DISTINCT ( - - col2 ) FROM tab1 AS cor0 @@ -18831,8 +19044,15 @@ SELECT DISTINCT + ( + col0 ) * - col0 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 59 # Datafusion - Expected - -30 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 30 AS col1, + 59 AS col1 FROM tab1 +---- +-30 +-30 +-30 +59 +59 +59 query II rowsort SELECT + 54, col1 AS col2 FROM tab2 @@ -21560,8 +21780,15 @@ SELECT ALL + - MAX ( + 58 ) FROM tab0 cor0 # Datafusion - Expected - 67 # Datafusion - Expected - -14 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 14 AS col0, col1 AS col0 FROM tab2 AS cor0 +---- +-14 +-14 +-14 +51 +67 +77 query II rowsort SELECT DISTINCT 7, col0 AS col2 FROM tab1 AS cor0 @@ -21640,8 +21867,11 @@ SELECT DISTINCT - COUNT ( * ) col1 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- cor0\.col0\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( - + col0 ) col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +-91 +3 query I rowsort label-3671 SELECT 17 * + COUNT ( * ) AS col1 FROM tab0 AS cor0 @@ -21714,8 +21944,15 @@ SELECT + 89 * MIN ( ALL + - col1 ) + MIN ( - - col0 ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 8 # Datafusion - Expected - 97 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, 8 AS col1 FROM tab0 cor0 +---- +15 +8 +8 +8 +87 +97 query I rowsort SELECT - + 10 AS col1 FROM tab1 AS cor0 @@ -22486,8 +22723,11 @@ SELECT DISTINCT col1 * - ( - - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(33\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) / 33 AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +0 +3 query I rowsort SELECT - + 56 * - col2 - + - col0 AS col2 FROM tab1 AS cor0 @@ -22660,8 +22900,15 @@ SELECT - 25 FROM tab1 cor0 WHERE NOT ( + col2 ) IS NULL # Datafusion - Expected - 52 # Datafusion - Expected - 91 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, 52 col2 FROM tab1 AS cor0 +---- +51 +52 +52 +52 +85 +91 query I rowsort label-3837 SELECT ALL CAST ( 39 AS INTEGER ) col2 FROM tab0 AS cor0 @@ -22936,8 +23183,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * - - 17 + + 79 AS col0, - COUNT ( * ) + 21 col0 FROM tab1 AS cor0 +---- +130 +18 query I rowsort label-3883 SELECT ALL CAST ( - - col2 AS INTEGER ) AS col1 FROM tab2 @@ -23412,8 +23662,15 @@ SELECT - 4 * - col1 AS col2 FROM tab2 # Datafusion - Expected - 15 # Datafusion - Expected - -99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col0" at position 0 and "\(\- \(\- tab0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col0, - ( + - col0 ) AS col0 FROM tab0 +---- +-10 +-47 +-99 +15 +87 +97 query I rowsort label-3961 SELECT ALL ( ( SUM ( DISTINCT + col1 ) ) ) * - COUNT ( * ) AS col2 FROM tab1 @@ -24010,8 +24267,15 @@ SELECT ALL - ( - + col2 ), col1 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 88 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ cor0\.col2 AS col0" at position 0 and "Int64\(47\) \+ \(\- cor0\.col2\) \+ CAST\(NULL AS Float64\) \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 48 + + col2 AS col0, 47 + - + col2 + CAST ( NULL AS FLOAT8 ) + + col2 AS col0 FROM tab2 AS cor0 +---- +106 +71 +88 +NULL +NULL +NULL query II rowsort SELECT ALL 43, col2 * 8 AS col2 FROM tab2 @@ -24226,8 +24490,15 @@ SELECT ALL - SUM ( + 52 ) * - COUNT ( * ) AS col0 FROM tab1 # Datafusion - Expected - 92 # Datafusion - Expected - -99 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 col1, 92 AS col1 FROM tab0 +---- +-10 +-47 +-99 +92 +92 +92 query I rowsort label-4095 SELECT MAX ( + - col0 ) FROM tab2 @@ -24869,8 +25140,15 @@ SELECT ALL - col2 + - + col2 FROM tab1 # Datafusion - Expected - -46 # Datafusion - Expected - -32 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col0" at position 0 and "Int64\(22\) \- \(\- \(\- cor0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 32 AS col0, + 22 - - - col2 AS col0 FROM tab1 AS cor0 +---- +-32 +-32 +-32 +-37 +-46 +-74 query I rowsort SELECT ALL - 17 * ( + + 35 ) + + - col0 FROM tab1 cor0 @@ -25630,8 +25908,15 @@ SELECT + + col2 / + + col1 AS col2 FROM tab1 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 2002 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(\-22\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* cor0\.col2 \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - col0 ) * - 22 AS col2, CAST ( NULL AS INTEGER ) * + col2 * col1 col2 FROM tab1 AS cor0 +---- +1122 +1870 +2002 +NULL +NULL +NULL query I rowsort label-4335 SELECT DISTINCT + + col0 AS col1 FROM tab2 AS cor0 WHERE - 50 * col1 IS NULL AND NOT CAST ( NULL AS INTEGER ) IS NULL @@ -25991,8 +26276,15 @@ SELECT ALL + - 45 AS col2 FROM tab1 cor0 # Datafusion - Expected - -81 # Datafusion - Expected - -9603 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- cor0\.col2\) \* cor0\.col0 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col1 * + - col2 * col0 AS col0, - col1 col0 FROM tab0 AS cor0 +---- +-1 +-18270 +-21 +-57105 +-81 +-9603 query I rowsort label-4397 SELECT + ( + - COUNT ( col1 ) ) AS col1 FROM tab1 AS cor0 @@ -26206,8 +26498,15 @@ SELECT ALL - col2 AS col1, col0 FROM tab0 cor0 # Datafusion - Expected - -32 # Datafusion - Expected - -75 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, ( + - 32 ) AS col1 FROM tab2 AS cor0 +---- +-32 +-32 +-32 +-46 +-64 +-75 query III rowsort label-4429 SELECT DISTINCT - COUNT ( * ) * - 37 AS col2, COUNT ( * ) + + 91 / - SUM ( DISTINCT + ( + col1 ) ), + - COUNT ( * ) AS col1 FROM tab2 AS cor0 @@ -26336,8 +26635,15 @@ SELECT ALL + 82 + + 68 + + 53 AS col2, 23 FROM tab0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col2, + col2 AS col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-4448 SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 @@ -26458,8 +26764,10 @@ SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * + + 31 = + + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 47dc5a8e4c9b03ed51f64582a1d89df0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \* Int64\(19\) \* \(\- CAST\(NULL AS Float64\)\) AS col0" at position 0 and "tab0\.col1 \+ \(\- \(\- \(\- tab0\.col1\)\)\) \+ \(\- \(\- tab0\.col0\)\) \* Int64\(\-13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RII valuesort SELECT DISTINCT 20 * 19 * + - CAST ( NULL AS FLOAT8 ) AS col0, + col1 + - + ( - - col1 ) + - - col0 * + - 13 AS col0, + col2 + - col1 + 32 * + - col1 AS col0 FROM tab0 +---- +9 values hashing to e58cbaa5cc5262fe02b627358abd3629 query III rowsort SELECT * FROM tab2 WHERE NOT + col2 BETWEEN + col0 AND col1 * - col0 - + col0 - + 31 @@ -26806,8 +27114,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-30\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \- sum\(\(\- tab2\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( ALL + - 30 ) AS col2, CAST ( NULL AS INTEGER ) - + SUM ( - + col0 ) AS col2 FROM tab2 +---- +3 +NULL query I rowsort label-4526 SELECT - ( + 18 ) * - COUNT ( * ) AS col1 FROM tab0 @@ -26978,8 +27289,15 @@ SELECT - 60 + - col0 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 80 # Datafusion - Expected - -5625 # Datafusion - Expected - 116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col0 AS col1" at position 0 and "cor0\.col2 \+ \(\- \(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col0 * + col0 AS col1, + col2 + - - col2 AS col1 FROM tab2 AS cor0 +---- +-2116 +-4096 +-5625 +116 +46 +80 query III rowsort SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 27 + - + col0 <> col1 @@ -28277,8 +28595,15 @@ SELECT DISTINCT * FROM tab0 WHERE + - ( + + col2 ) / - - 74 IS NOT NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col0, col0 AS col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-4776 SELECT DISTINCT - SUM ( 13 ) AS col1 FROM tab0 @@ -28304,8 +28629,15 @@ SELECT * FROM tab2 WHERE NOT - 98 IS NULL # Datafusion - Expected - 67 # Datafusion - Expected - -53 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 53 AS col0, col1 col0 FROM tab2 +---- +-53 +-53 +-53 +51 +67 +77 query I rowsort label-4780 SELECT DISTINCT + 94 - - COUNT ( * ) AS col1 FROM tab1 WHERE NOT - col2 IN ( - col1 * + col0 ) @@ -28543,8 +28875,11 @@ SELECT - COUNT ( col2 ) FROM tab0 AS cor0 WHERE NOT NULL >= - col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 +---- +9 +9 query III rowsort SELECT ALL * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN - ( - col2 ) AND + col0 @@ -29614,8 +29949,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE - 97 + - 50 BETWEEN + - col1 AND - col1 / + # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-4990 SELECT - + MIN ( - col0 ) AS col2 FROM tab2 AS cor0 @@ -29703,8 +30045,15 @@ SELECT ALL + 21 + + 41 FROM tab0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, + col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT ALL col1 + - - 83 AS col1 FROM tab0 @@ -31661,8 +32010,11 @@ SELECT DISTINCT - 23 AS col0 FROM tab2 WHERE NOT + + col1 + - col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(40\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + - MAX ( DISTINCT + 40 ) ) AS col1, + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1, tab0 AS cor0 +---- +-40 +81 query I rowsort SELECT ALL ( + ( - + col0 ) ) FROM tab0 @@ -32577,8 +32929,9 @@ SELECT DISTINCT - - 66 * - + col1 + + 77 col0 FROM tab0 AS cor0 WHERE + 34 IS NU ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "\(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, - col2 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN + + 2 AND NULL +---- query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT ( + 87 = + 95 ) @@ -32859,8 +33212,15 @@ SELECT DISTINCT ( + 7 ) + col1 AS col1 FROM tab1 # Datafusion - Expected - 0 # Datafusion - Expected - 44982 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* Int64\(63\) \* \(\- cor0\.col0\) AS col2" at position 0 and "\(\- cor0\.col1\) / \(\- cor0\.col0\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + col1 ) * 63 * + - col0 AS col2, - col1 / - + col0 * + col2 col2 FROM tab1 AS cor0 +---- +0 +0 +0 +26775 +269451 +44982 query I rowsort SELECT DISTINCT - - col1 * + col1 col0 FROM tab2 cor0 @@ -33113,8 +33473,15 @@ SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL IS NULL ) # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, + col0 FROM tab1 cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-5572 SELECT + COUNT ( - 82 ) FROM tab2 AS cor0 @@ -33138,8 +33505,15 @@ SELECT DISTINCT 72 AS col1, + col2 + col1 FROM tab1 AS cor0 # Datafusion - Expected - 81 # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) col0, 81 AS col0 FROM tab1 AS cor0 +---- +81 +81 +81 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 NOT IN ( col0, col1 ) @@ -33160,8 +33534,15 @@ SELECT DISTINCT + - col2 * - 63 + + - col2 + col0 FROM tab0 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, col1 FROM tab0 cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT DISTINCT - + 79 FROM tab2 AS cor0 WHERE - ( col0 ) >= + - col0 / + col2 + 24 @@ -33874,8 +34255,11 @@ SELECT DISTINCT + 11 - - 12 / - col1 AS col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, 73 AS col1 FROM tab0 +---- +3 +73 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL @@ -34127,8 +34511,15 @@ SELECT col1 * - + col2 + + + col0 FROM tab1 # Datafusion - Expected - 97 # Datafusion - Expected - 6 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ \(\- Int64\(41\)\) \+ tab0\.col2 \+ \(\- tab0\.col1\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + - + 41 + col2 + - + col1 col1, + ( col0 ) AS col1 FROM tab0 +---- +-31 +15 +58 +6 +87 +97 query III rowsort SELECT * FROM tab2 AS cor0 WHERE col2 * - - 73 BETWEEN NULL AND NULL @@ -35527,8 +35918,15 @@ SELECT ALL col0 + col2 FROM tab2 cor0 WHERE NOT - col2 IS NOT NULL # Datafusion - Expected - 1 # Datafusion - Expected - -675 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(45\)\) \* cor0\.col0 AS col2" at position 0 and "CAST\(cor0\.col1 AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 45 * + col0 AS col2, ( CAST ( col1 AS INTEGER ) ) AS col2 FROM tab0 AS cor0 +---- +-3915 +-4365 +-675 +1 +21 +81 query I rowsort label-5976 SELECT ALL + COUNT ( DISTINCT + 89 ) AS col1 FROM tab0 AS cor0 @@ -35930,8 +36328,15 @@ SELECT ALL + MIN ( col0 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 30 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 30 AS col2, - col2 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +30 +30 +30 query I rowsort SELECT DISTINCT + col1 AS col2 FROM tab0 AS cor0 WHERE ( - + ( + ( + col1 ) ) ) IS NOT NULL @@ -38461,8 +38866,15 @@ SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT 52 <> col1 + - 96 - + - col2 * - c # Datafusion - Expected - 552 # Datafusion - Expected - -63 # Datafusion - Expected - 960 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col0" at position 0 and "Int64\(24\) \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 63 AS col0, 24 * + col2 AS col0 FROM tab2 cor0 +---- +-63 +-63 +-63 +1392 +552 +960 query I rowsort label-6471 SELECT + + COUNT ( * ) AS col1 FROM tab2 AS cor0 @@ -38881,8 +39293,11 @@ 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\(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\. +query II valuesort SELECT ALL - 30 + - COUNT ( * ) - 18 AS col1, - COUNT ( * ) AS col1 FROM tab0 +---- +-3 +-51 query I rowsort label-6541 SELECT ALL + 77 * ( - + CAST ( NULL AS INTEGER ) ) + + + COUNT ( * ) FROM tab2 @@ -39576,8 +39991,9 @@ SELECT DISTINCT * FROM tab2 WHERE NOT - + col0 < + col1 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* Int64\(38\) AS col2" at position 0 and "Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 65 * + 38 AS col2, - 45 AS col2 FROM tab1, tab0 AS cor0 WHERE NOT - 84 IS NOT NULL +---- query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT - col2 * - - 84 NOT BETWEEN + col2 AND + 22 ) @@ -39886,8 +40302,15 @@ NULL # Datafusion - Expected - 33 # Datafusion - Expected - 99 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, 33 AS col0 FROM tab0 +---- +10 +33 +33 +33 +47 +99 query I rowsort label-6705 SELECT ALL - COUNT ( * ) col0 FROM tab1 @@ -40179,8 +40602,15 @@ SELECT ALL + col1 + 95 FROM tab0 # Datafusion - Expected - -85 # Datafusion - Expected - -91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 col1, - col0 AS col1 FROM tab1 AS cor0 +---- +-51 +-51 +-85 +-85 +-91 +-91 query I rowsort label-6754 SELECT DISTINCT col1 + - CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0 @@ -40229,8 +40659,15 @@ SELECT ALL 50, + 92 FROM tab0 AS cor0 WHERE 53 + + CAST ( + + col0 AS INTEGER ) # Datafusion - Expected - 64 # Datafusion - Expected - -58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, col0 AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +46 +64 +75 query I rowsort SELECT DISTINCT - col2 + - 46 * + - col2 FROM tab2 @@ -40276,8 +40713,15 @@ SELECT + col1 + - + 8 FROM tab2 # Datafusion - Expected - -270 # Datafusion - Expected - 0 # Datafusion - Expected - -3867 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \+ \(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col0 \+ \(\- cor0\.col0\) \- Int64\(60\) \+ \(\- cor0\.col2\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col2 + - col2 AS col0, + col0 + - col0 - 60 + - col2 * + col1 AS col0 FROM tab0 AS cor0 +---- +-159 +-270 +-3867 +0 +0 +0 query I rowsort SELECT - col2 * - 48 AS col2 FROM tab0 @@ -41488,8 +41932,15 @@ NULL # Datafusion - Expected - 2560 # Datafusion - Expected - 92 # Datafusion - Expected - 4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-92\)\) AS col1" at position 0 and "cor0\.col2 \* \(\- \(\- cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 92 AS col1, col2 * - - col0 AS col1 FROM tab2 AS cor0 +---- +1058 +2560 +4350 +92 +92 +92 query I rowsort label-6980 SELECT - - SUM ( DISTINCT - - col0 ) + - COUNT ( * ) FROM tab1 AS cor0 @@ -41992,8 +42443,11 @@ SELECT * FROM tab1 AS cor0 WHERE - col1 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "max\(Int64\(\-28\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 73 AS col0, MAX ( ALL - 28 ) AS col0 FROM tab1 +---- +-28 +73 query I rowsort label-7065 SELECT + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1 @@ -42054,8 +42508,15 @@ SELECT 91 col1 FROM tab1 cor0 # Datafusion - Expected - 85 # Datafusion - Expected - NULL # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) col0, 85 AS col0 FROM tab2 AS cor0 +---- +85 +85 +85 +NULL +NULL +NULL query I rowsort label-7074 SELECT ALL - COUNT ( * ) AS col0 FROM tab2 @@ -42641,8 +43102,11 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(36\) / Int64\(\-21\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) + 36 / + - 21 AS col1, + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab2 +---- +NULL +NULL query I rowsort label-7172 SELECT DISTINCT + COUNT ( * ) FROM tab2 @@ -42874,8 +43338,15 @@ SELECT DISTINCT * FROM tab0, tab2 cor0 WHERE NOT - 24 IS NULL # Datafusion - Expected - 59 # Datafusion - Expected - -90 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 AS col0, + 59 AS col0 FROM tab1 AS cor0 +---- +-90 +-90 +-90 +59 +59 +59 query I rowsort SELECT - - ( + ( col0 ) ) AS col1 FROM tab0 AS cor0 @@ -43436,8 +43907,10 @@ SELECT MIN ( DISTINCT - col1 ) col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to d83a5e7b0a9a021ca09c960f3acdc860 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col1" at position 0 and "Int64\(65\) \- \(\- cor0\.col2\) \* Int64\(91\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + + 12 col1, + col0 + - col0 AS col0, 65 - + - col2 * 91 col1 FROM tab1 AS cor0 +---- +9 values hashing to 2f14c424257cd9d4645e16e5db35be4b query I rowsort label-7305 SELECT DISTINCT - + COUNT ( DISTINCT - - col0 ) FROM tab2 AS cor0 @@ -43582,8 +44055,15 @@ SELECT * FROM tab2 WHERE NOT ( ( NULL ) IS NOT NULL ) # Datafusion - Expected - -47 # Datafusion - Expected - -5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "\(\- tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, - col1 col2 FROM tab1 +---- +-14 +-14 +-47 +-47 +-5 +-5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 446394 @@ -43592,8 +44072,15 @@ SELECT - col1 AS col2, - col1 col2 FROM tab1 # Datafusion - Expected - 68 # Datafusion - Expected - 726336 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col2 \* Int64\(89\) \* Int64\(85\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 + + col2 * 89 * + 85 col1, col2 AS col1 FROM tab1 AS cor0 +---- +446394 +514488 +59 +68 +726336 +96 query I rowsort label-7332 SELECT + MAX ( ALL 93 ) FROM tab2 AS cor0 @@ -44701,8 +45188,11 @@ SELECT col0 * 34 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 AS col1, COUNT ( * ) AS col1 FROM tab0 +---- +26 +3 query I rowsort SELECT + + col1 FROM tab1 WHERE NOT col0 IS NOT NULL @@ -44808,8 +45298,15 @@ SELECT ALL + col0 / - col0 * + col2 FROM tab1 AS cor0 WHERE NOT ( - 7 ) > NULL # Datafusion - Expected - -5698 # Datafusion - Expected - -5025 # Datafusion - Expected - -4958 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col1 \- Int64\(75\) \* \(\- \(\- cor0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * - col0 AS col0, col1 - + 75 * - - col1 AS col0 FROM tab2 AS cor0 +---- +-2346 +-3774 +-4928 +-4958 +-5025 +-5698 query I rowsort label-7542 SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab1 AS cor0 @@ -45623,8 +46120,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) AS col2, 20 col2 FROM tab0 AS cor0 +---- +-3 +20 query I rowsort SELECT + + 5 * - - 87 FROM tab0 AS cor0 WHERE NOT - col2 * col1 IN ( + 54 + + - col0 * + ( - col1 ), 12 ) @@ -45654,8 +46154,15 @@ SELECT + col0 / - col0 AS col2 FROM tab0 cor0 # Datafusion - Expected - 67 # Datafusion - Expected - -77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, col1 AS col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +51 +67 +77 query II rowsort SELECT 17, col2 FROM tab0 AS cor0 @@ -46172,8 +46679,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> NULL OR NOT + ( - col1 ) NOT BETWEE # Datafusion - Expected - -4204 # Datafusion - Expected - 5005 # Datafusion - Expected - -4238 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* Int64\(55\) AS col0" at position 0 and "Int64\(\-82\) \- \(\- cor0\.col0\) \+ Int64\(14\) \- Int64\(63\) \* Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 91 * + + 55 AS col0, - 82 - - col0 + + + 14 - 63 * + 67 AS col0 FROM tab1 AS cor0 +---- +-4198 +-4204 +-4238 +5005 +5005 +5005 query I rowsort SELECT DISTINCT + col0 * col2 * - - ( - + col1 ) AS col2 FROM tab2 AS cor0 @@ -46472,8 +46986,11 @@ SELECT DISTINCT + SUM ( ALL col2 ) + - COUNT ( * ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 524345 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* Int64\(91\) \* \(\- Int64\(\-86\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 67 * 91 * - - 86 + + + COUNT ( * ) AS col2, + COUNT ( * ) col2 FROM tab2 +---- +3 +524345 query II rowsort label-7821 SELECT - MAX ( ALL col1 ), SUM ( + col0 ) AS col1 FROM tab1 @@ -47288,8 +47805,12 @@ NULL # Datafusion - Expected - 3 # Datafusion - Expected - 1838 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) * - COUNT ( * ) * - + SUM ( + col1 ) - - 83 AS col2, 7 AS col0 FROM tab2 +---- +1838 +3 +7 query II rowsort SELECT ALL + col2 col2, - 11 AS col0 FROM tab1 @@ -47819,8 +48340,15 @@ SELECT ALL + 40 + + + col2 + + col1 AS col0 FROM tab0 # Datafusion - Expected - 53 # Datafusion - Expected - 0 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- cor0\.col1 AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 - col1 AS col2, 53 AS col2 FROM tab2 cor0 +---- +0 +0 +0 +53 +53 +53 query I rowsort label-8045 SELECT DISTINCT + 30 + - + MIN ( - + ( 41 ) ) col2 FROM tab2 @@ -48654,8 +49182,11 @@ SELECT COUNT ( * ) FROM tab0, tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 227 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "sum\(tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, SUM ( col0 ) AS col1 FROM tab1 +---- +227 +3 query I rowsort label-8186 SELECT CAST ( 10 AS INTEGER ) / col2 FROM tab2 @@ -48786,8 +49317,11 @@ SELECT * FROM tab0 AS cor0 WHERE NOT 61 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 9 * + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +-27 +NULL query I rowsort label-8209 SELECT - COUNT ( * ) AS col0 FROM tab2 cor0 @@ -48815,8 +49349,15 @@ SELECT - + 49 * - COUNT ( * ) FROM tab1 cor0 # Datafusion - Expected - -13 # Datafusion - Expected - -81 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 AS col1, - 13 AS col1 FROM tab0 AS cor0 +---- +-1 +-13 +-13 +-13 +-21 +-81 query II rowsort SELECT DISTINCT + 47 AS col2, + col2 col0 FROM tab0 AS cor0 @@ -48883,8 +49424,15 @@ SELECT DISTINCT 62 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - -43 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( - 43 ) AS col2, + col1 AS col2 FROM tab1 cor0 +---- +-43 +-43 +-43 +14 +47 +5 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 = - col0 @@ -48948,8 +49496,15 @@ SELECT ALL - 76 col0 FROM tab1 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - -5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col1 AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +14 +47 +5 query I rowsort label-8237 SELECT 57 + + - COUNT ( * ) FROM tab2 AS cor0 @@ -49075,8 +49630,10 @@ SELECT ALL col1 + col1, col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 7b264ef0ee6f48920e0f5efc4cb46fac -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(36\) AS Int32\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + CAST ( + + 36 AS INTEGER ) AS col0, 47, - col0 AS col0 FROM tab2 AS cor0 +---- +9 values hashing to beac3649d3ce8c02be374d9adab660f3 query I rowsort label-8258 SELECT DISTINCT + col0 / + col2 + - col2 * - col2 AS col2 FROM tab1 @@ -49448,8 +50005,15 @@ NULL # Datafusion - Expected - 85 # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ CAST\(NULL AS Int32\) \* CAST\(Int64\(\-32\) AS Int32\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 + + CAST ( NULL AS INTEGER ) * + CAST ( - 32 AS INTEGER ) AS col1, + col0 AS col1 FROM tab1 +---- +51 +85 +91 +NULL +NULL +NULL query I rowsort label-8317 SELECT CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0 @@ -49773,8 +50337,15 @@ SELECT ALL 97 AS col0 FROM tab0 cor0 # Datafusion - Expected - 75 # Datafusion - Expected - -48668 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \* tab2\.col0 \* tab2\.col0 AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 * + col0 * col0 col2, col0 AS col2 FROM tab2 +---- +-163840 +-326250 +-48668 +46 +64 +75 query II rowsort SELECT DISTINCT + col1, col2 FROM tab0 @@ -49805,8 +50376,15 @@ SELECT col1 + - 84 FROM tab0 cor0 # Datafusion - Expected - 123 # Datafusion - Expected - -91 # Datafusion - Expected - 132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(64\) \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col2, 64 + + col2 AS col2 FROM tab1 AS cor0 WHERE NOT - 22 * + col0 IS NULL +---- +-51 +-85 +-91 +123 +132 +160 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * + + col0 IS NULL @@ -50913,8 +51491,15 @@ SELECT DISTINCT + 24 FROM tab0 cor0 # Datafusion - Expected - 10 # Datafusion - Expected - 91 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "cor0\.col1 \+ cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 col2, + col1 + col1 AS col2 FROM tab1 AS cor0 +---- +10 +28 +51 +85 +91 +94 query I rowsort label-8568 SELECT + COUNT ( - ( + col1 ) ) AS col2 FROM tab2 AS cor0 @@ -51002,8 +51587,15 @@ SELECT SUM ( DISTINCT + col0 ) FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, ( + col0 ) AS col2 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT DISTINCT - 42 + col0 FROM tab0 @@ -52184,8 +52776,15 @@ SELECT DISTINCT * FROM tab2 WHERE 49 * + 4 IS NOT NULL # Datafusion - Expected - -91 # Datafusion - Expected - 5 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "\(\- tab1\.col0\) \+ tab1\.col1 / \(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col2, - col0 + + col1 / - col0 AS col2 FROM tab1 +---- +-51 +-85 +-91 +14 +47 +5 query II rowsort SELECT col0 * 32 * + 92, - 1 + + 4 AS col0 FROM tab2 @@ -52297,8 +52896,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 27 + - - COUNT ( * ) AS col1, 84 AS col1 FROM tab1 WHERE + + ( col2 ) IS NOT NULL +---- +-24 +84 query I rowsort SELECT ALL - 73 FROM tab2 WHERE - col1 * col1 - + + col2 IS NOT NULL @@ -53729,8 +54331,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1 +---- +9 +9 query I rowsort SELECT DISTINCT col2 + + + col0 AS col0 FROM tab1 @@ -54382,8 +54987,11 @@ SELECT col1 * - + col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 +---- +3 +3 query I rowsort SELECT ALL + 53 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 @@ -55213,8 +55821,9 @@ SELECT + 54 FROM tab1 cor0 WHERE NULL = col1 + + - col1 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 23 AS col0, 67 AS col0 FROM tab0 WHERE - col1 < NULL +---- query III rowsort SELECT ALL * FROM tab2 WHERE NOT + col2 = - col2 @@ -55777,8 +56386,15 @@ SELECT ALL + 52 AS col2, ( - col2 ) FROM tab1 # Datafusion - Expected - 80 # Datafusion - Expected - -26 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) AS col1" at position 0 and "tab2\.col0 \+ Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 26 col1, col0 + + 34 AS col1 FROM tab2 +---- +-26 +-26 +-26 +109 +80 +98 query I rowsort label-9403 SELECT - col1 / + 20 AS col0 FROM tab1 AS cor0 @@ -56693,8 +57309,15 @@ SELECT - MIN ( ALL col0 ) AS col2 FROM tab2 cor0 # Datafusion - Expected - 144 # Datafusion - Expected - 64 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "cor0\.col2 \- Int64\(\-46\) \- cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( 64 ) AS col0, col2 - - 46 - col1 AS col0 FROM tab0 AS cor0 +---- +12 +144 +35 +64 +64 +64 query I rowsort label-9562 SELECT DISTINCT COUNT ( * ) * - + ( 52 ) FROM tab2 AS cor0 @@ -56929,8 +57552,11 @@ SELECT SUM ( - 74 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- tab1\.col1\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( - col1 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 +---- +-47 +NULL query II rowsort SELECT ALL col1 * - + 71 + + 9 AS col0, - col2 FROM tab1 WHERE NULL >= col2 OR NOT NULL BETWEEN col2 * 40 AND - 12 @@ -57262,8 +57888,15 @@ SELECT - 65 * + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NU # Datafusion - Expected - -4624 # Datafusion - Expected - -5 # Datafusion - Expected - -3481 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - col1 ) AS col1, col2 * - col2 AS col1 FROM tab1 AS cor0 +---- +-14 +-3481 +-4624 +-47 +-5 +-9216 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL @@ -57761,8 +58394,15 @@ SELECT DISTINCT - SUM ( ALL 7 ) AS col2 FROM tab1, tab0 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 54 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-54\)\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 54 ) AS col0, col1 AS col0 FROM tab0 +---- +1 +21 +54 +54 +54 +81 query I rowsort SELECT DISTINCT 52 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 @@ -58100,8 +58740,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) + + + 33 col1, + COUNT ( DISTINCT - - 65 ) AS col1 FROM tab2 +---- +1 +30 query I rowsort label-9796 SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 @@ -59023,8 +59666,15 @@ SELECT ALL - 50 + - COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 0 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) / cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col1\) \* Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 10 / col0 AS col1, - col1 * - 1 AS col1 FROM tab2 AS cor0 +---- +0 +0 +0 +51 +67 +77 query III rowsort SELECT ALL * FROM tab2 WHERE - - col0 = ( NULL ) diff --git a/data/sqlite/random/aggregates/slt_good_10.slt b/data/sqlite/random/aggregates/slt_good_10.slt index 3424f71..d56b5b3 100644 --- a/data/sqlite/random/aggregates/slt_good_10.slt +++ b/data/sqlite/random/aggregates/slt_good_10.slt @@ -550,8 +550,15 @@ SELECT ALL + - 16 + - col2 FROM tab1 AS cor0 # Datafusion - Expected - -55 # Datafusion - Expected - -12 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col0" at position 0 and "Int64\(25\) \+ Int64\(\-94\) \+ tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 12 AS col0, 25 + - 94 + col1 AS col0 FROM tab1 +---- +-12 +-12 +-12 +-22 +-55 +-64 query III rowsort SELECT * FROM tab2 AS cor0 WHERE + 32 BETWEEN + 97 AND + col2 @@ -846,8 +853,11 @@ SELECT ALL col1 AS col2, + 45 + col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +-3 +3 query I rowsort SELECT - + col2 FROM tab1 AS cor0 WHERE NOT NULL < col0 @@ -1115,8 +1125,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + 16 AS col2 FROM tab1 AS cor0 +---- +16 +3 query I rowsort SELECT DISTINCT 62 col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1 + + col2 @@ -2561,8 +2574,15 @@ SELECT - 89 + - 24 AS col0 FROM tab2 # Datafusion - Expected - -20 # Datafusion - Expected - -64 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ \(\- tab2\.col2\) \+ \(\- tab2\.col0\) / Int64\(2\) \+ Int64\(\-44\) AS col1" at position 0 and "Int64\(\-60\) \+ \(\- \(\- tab2\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 + - col2 + + - col0 / ( + ( + ( 2 ) ) ) + - 44 AS col1, - 60 + - - col2 col1 FROM tab2 +---- +-2 +-20 +-37 +-44 +-52 +-64 query I rowsort SELECT 83 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL @@ -3422,8 +3442,15 @@ SELECT + MIN ( ALL + col1 ) + + COUNT ( * ) FROM tab1 cor0 # Datafusion - Expected - -7104 # Datafusion - Expected - 1082 # Datafusion - Expected - -5032 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* Int64\(23\) \+ cor0\.col1 AS col0" at position 0 and "cor0\.col2 \* Int64\(\-74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 45 * + + 23 + + + col1 col0, col2 * - 74 AS col0 FROM tab1 AS cor0 +---- +-4366 +-5032 +-7104 +1040 +1049 +1082 query I rowsort SELECT DISTINCT - + 47 + - + col2 AS col1 FROM tab1 AS cor0 @@ -3531,8 +3558,11 @@ SELECT * FROM tab2 AS cor0 WHERE NOT - 47 / - col2 BETWEEN NULL AND + col2 + - 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- cor0\.col2\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(Int64\(\-47\) AS Int32\)\) \+ Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MIN ( - ( + col2 ) ) AS col0, COUNT ( * ) + - CAST ( - 47 AS INTEGER ) + - 99 AS col0 FROM tab1 AS cor0 +---- +-49 +96 query II rowsort label-573 SELECT + COUNT ( * ) AS col2, + 61 FROM tab2 AS cor0 @@ -3593,8 +3623,11 @@ SELECT ALL + col1 * + - 20 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-47\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col2, - 47 + - COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-50 +3 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -3811,8 +3844,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ), + COUNT ( * ) FROM tab0 cor0 +---- +3 +3 query I rowsort SELECT DISTINCT - 93 + + + col1 FROM tab2 AS cor0 @@ -4359,8 +4395,15 @@ SELECT col0 + - - ( - col2 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 22 # Datafusion - Expected - -3196 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col1\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 * - col1 AS col1, 22 AS col1 FROM tab1 AS cor0 +---- +-1344 +-295 +-3196 +22 +22 +22 query II rowsort SELECT ALL + + 56 AS col0, - 21 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 @@ -4966,8 +5009,15 @@ SELECT ALL col1 * - col0 * 91 FROM tab2 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - NULL # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \* cor0\.col2 \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "cor0\.col2 / \(\- Int64\(\-73\)\) \- cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 52 * + col2 * - CAST ( NULL AS INTEGER ) AS col2, + col2 / - - 73 - + col2 AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +NULL +NULL +NULL query I rowsort label-806 SELECT ALL - + 34 / - 19 FROM tab1 AS cor0 @@ -6024,8 +6074,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE col0 - - + col0 IS NULL # Datafusion - Expected - -81 # Datafusion - Expected - -99 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col2" at position 0 and "\(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - col2 ) AS col2, - col1 AS col2 FROM tab0 +---- +-1 +-10 +-21 +-47 +-81 +-99 query I rowsort label-982 SELECT + SUM ( + CAST ( + - col1 AS INTEGER ) ) FROM tab1 @@ -6564,8 +6621,10 @@ SELECT DISTINCT col2 + - col1 - col2 / 73 col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 01e2a0fe20ec077a00842634e4619721 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ cor0\.col0 AS col0" at position 1 and "\(\- cor0\.col1\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col1 AS col2, - col2 + col0 AS col0, + - col1 AS col0 FROM tab1 AS cor0 +---- +9 values hashing to 0bc6d603ad4ce1bce3ba464959f2f1ce query I rowsort label-1072 SELECT - COUNT ( 42 ) FROM tab1 AS cor0 @@ -6969,8 +7028,15 @@ SELECT ALL + + 6 + - col2 FROM tab0 AS cor0 # Datafusion - Expected - -41 # Datafusion - Expected - -94 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col0" at position 0 and "Int64\(\-41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 94 AS col0, ( - 41 ) AS col0 FROM tab2 AS cor0 +---- +-41 +-41 +-41 +-94 +-94 +-94 query I rowsort SELECT DISTINCT 47 FROM tab2 AS cor0 WHERE col2 * + col1 * - 74 IS NOT NULL @@ -6998,8 +7064,15 @@ SELECT ALL + col0 / ( - col2 ) + + 79 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - -74 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ \(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - ( + col2 ) + + - col1 AS col1, - col1 AS col1 FROM tab2 AS cor0 +---- +-117 +-125 +-51 +-67 +-74 +-77 query II rowsort SELECT ALL col0, + col2 * + col0 FROM tab1 AS cor0 @@ -7023,8 +7096,15 @@ SELECT DISTINCT + + CAST ( - 46 AS INTEGER ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 15 # Datafusion - Expected - 75 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col1, 15 AS col1 FROM tab2 cor0 +---- +15 +15 +15 +46 +64 +75 query I rowsort label-1146 SELECT 75 + CAST ( + + col0 AS INTEGER ) AS col0 FROM tab1 @@ -7069,8 +7149,11 @@ 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\(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\. +query II valuesort SELECT ALL 32 AS col1, COUNT ( * ) * - COUNT ( * ) + - SUM ( DISTINCT - 91 ) AS col1 FROM tab0 +---- +32 +82 query I rowsort label-1153 SELECT col0 / - - col1 col0 FROM tab2 AS cor0 @@ -9007,8 +9090,15 @@ SELECT DISTINCT + col1 col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Expected - 46 # Datafusion - Expected - -95 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(95\)\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 95 ) AS col0, 46 AS col0 FROM tab0 +---- +-95 +-95 +-95 +46 +46 +46 query II rowsort label-1470 SELECT DISTINCT - MAX ( + 30 ) AS col0, - SUM ( - - 60 ) + + - COUNT ( * ) * - 50 FROM tab1 @@ -9612,8 +9702,11 @@ SELECT ( - + MIN ( ( + - col0 ) ) ) AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 121 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(tab2\.col2\) AS col1" at position 0 and "Int64\(21\) / \(\- Int64\(70\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( ALL col2 ) AS col1, + 21 / - + 70 AS col1 FROM tab2 +---- +0 +121 query I rowsort label-1572 SELECT - CAST ( + ( - - 98 ) AS INTEGER ) AS col0 FROM tab2 @@ -9875,8 +9968,15 @@ SELECT DISTINCT - 2 + - col2 * + CAST ( + + col0 AS INTEGER ) FROM tab1 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - -99 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(0\) \* cor0\.col2 \* \(\- Int64\(\-55\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col1, + 0 * + col2 * - - 55 col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +0 +0 +0 query III rowsort label-1614 SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS FLOAT8 ) * - + 30 IS NULL @@ -10189,8 +10289,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT 34 BETWEEN + + col0 / - col1 AND - col1 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, col0 AS col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query II rowsort SELECT + - col0 AS col1, - col1 AS col0 FROM tab1 AS cor0 @@ -11454,8 +11561,15 @@ SELECT DISTINCT + 36 * col2 AS col1 FROM tab1 # Datafusion - Expected - 425 # Datafusion - Expected - -3 # Datafusion - Expected - 714 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) / tab1\.col1 AS col2" at position 0 and "\(\- tab1\.col1\) \* \(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 / col1 AS col2, - col1 * + ( - col0 ) AS col2 FROM tab1 +---- +-1 +-17 +-3 +425 +4277 +714 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -12290,8 +12404,15 @@ SELECT - col1 + + 82 * - + col1 AS col2 FROM tab0 # Datafusion - Expected - 28 # Datafusion - Expected - -2726 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* \(\- tab2\.col2\) \+ tab2\.col2 AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 48 * - col2 + col2 col2, + 28 AS col2 FROM tab2 +---- +-1081 +-1880 +-2726 +28 +28 +28 query I rowsort SELECT + col1 * - 79 + col1 col1 FROM tab2 @@ -13020,8 +13141,15 @@ SELECT - COUNT ( * ) AS col2, 0 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 87 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 87 AS col0, col1 AS col0 FROM tab0 AS cor0 +---- +1 +21 +81 +87 +87 +87 query II rowsort SELECT col0 * + col2 - - - col0 + + col2, col1 AS col0 FROM tab0 AS cor0 @@ -13291,8 +13419,15 @@ SELECT ALL - col0 + - ( + col1 ) FROM tab0 # Datafusion - Expected - -21 # Datafusion - Expected - 3822 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- cor0\.col1\) \* \(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 + - col1 * - col2 AS col0, - col1 AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +196 +297 +3822 query I rowsort label-2170 SELECT - + 29 + COUNT ( * ) FROM tab0 AS cor0 @@ -13655,8 +13790,15 @@ SELECT ALL - - col1 + col2 + + 95 - CAST ( - ( ( - col2 ) ) + col2 AS INTEGER ) # Datafusion - Expected - 5 # Datafusion - Expected - -96 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col2 AS col0, + 5 AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +5 +5 +5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 @@ -13665,8 +13807,15 @@ SELECT ALL - + col2 AS col0, + 5 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(18\) / Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, 18 / 85 col0 FROM tab0 AS cor0 +---- +0 +0 +0 +1 +21 +81 query I rowsort SELECT + + col0 + - - 19 FROM tab2 AS cor0 @@ -13844,8 +13993,15 @@ SELECT DISTINCT + col0 * - col1 + 7 * + 43 col1 FROM tab0 AS cor0 # Datafusion - Expected - 1595 # Datafusion - Expected - NULL # Datafusion - Expected - 1595 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / \(\- cor0\.col2\) \+ \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(55\) \* \(\- Int64\(\-29\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) / - col2 + - col0 AS col2, 55 * - - 29 col2 FROM tab1 AS cor0 +---- +1595 +1595 +1595 +NULL +NULL +NULL query I rowsort label-2265 SELECT + ( - - COUNT ( * ) ) * - - SUM ( - col0 ) FROM tab0 AS cor0 @@ -13956,8 +14112,11 @@ SELECT * FROM tab1 cor0 WHERE NOT ( NOT + - 84 * - - 36 - - + col1 > + - col1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 288 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(DISTINCT Int64\(23\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 96 * + COUNT ( * ) AS col0, - COUNT ( DISTINCT 23 ) AS col0 FROM tab0 AS cor0 +---- +-1 +288 query I rowsort label-2284 SELECT DISTINCT - - MAX ( DISTINCT - - ( col0 ) ) FROM tab1 cor0 @@ -14998,8 +15157,15 @@ SELECT ALL * FROM tab1 WHERE + - 97 IS NOT NULL # Datafusion - Expected - 79 # Datafusion - Expected - -7200 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* CAST\(\(\- tab2\.col0\) AS Int32\) AS col2" at position 0 and "tab2\.col0 \+ \(\- \(\- CAST\(tab2\.col1 AS Int32\)\)\) \+ Int64\(\-81\) \+ \(\- \(\- CAST\(Int64\(19\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 * + CAST ( - col0 AS INTEGER ) AS col2, col0 + - - CAST ( + col1 AS INTEGER ) + - 81 + - - ( + CAST ( + 19 AS INTEGER ) ) AS col2 FROM tab2 +---- +-4416 +-6144 +-7200 +35 +79 +80 query II rowsort SELECT ALL 28 + + - col1 * 59, col1 FROM tab0 @@ -15447,8 +15613,11 @@ SELECT DISTINCT CAST ( col1 AS INTEGER ) * - col1 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col2" at position 0 and "\(\- CAST\(\(\- avg\(tab1\.col2\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 14 AS col2, - CAST ( - + AVG ( ALL + + col2 ) AS INTEGER ) AS col2 FROM tab1 +---- +-14 +74 query III rowsort label-2524 SELECT ALL * FROM tab2 cor0 WHERE NULL NOT BETWEEN col2 AND CAST ( NULL AS INTEGER ) @@ -15736,8 +15905,15 @@ SELECT DISTINCT - col2 FROM tab0 WHERE col1 + - 55 - - col2 * + col0 / + col2 IS # Datafusion - Expected - -75690 # Datafusion - Expected - 81 # Datafusion - Expected - -10575 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "\(\- tab0\.col0\) \* tab0\.col0 \* tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, - col0 * + col0 * + + col2 col2 FROM tab0 +---- +-10575 +-75690 +-931491 +1 +21 +81 query II rowsort SELECT 88 AS col2, 20 * col1 FROM tab2 @@ -17013,8 +17189,9 @@ SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN 18 AND - 76 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab1\.col1 AS Int32\) AS col2" at position 0 and "Int64\(68\) \* tab1\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( + col1 AS INTEGER ) AS col2, 68 * col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL +---- query III rowsort SELECT DISTINCT * FROM tab0 WHERE ( col2 + + col2 ) IS NULL @@ -17860,8 +18037,15 @@ SELECT - MIN ( DISTINCT - 94 ) * + COUNT ( * ) FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, col1 col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query II rowsort SELECT DISTINCT - 8 * - col0 + + + col2, - col2 AS col0 FROM tab2 @@ -18064,8 +18248,10 @@ SELECT ALL + 42 * + + COUNT ( * ) * - SUM ( + + 69 ) * + + 67 * - 63 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 8d78c0b29252d97518fb1f4bdf1b8a18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col0" at position 1 and "Int64\(31\) \- Int64\(60\) \* tab1\.col2 AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col1, - 59 AS col0, 31 - + + 60 * + col2 AS col0 FROM tab1 WHERE + col1 IS NOT NULL +---- +9 values hashing to 51ec1c2ec89461e704f267934187173e query I rowsort SELECT - - col1 * - col2 * - ( - 74 ) * col2 AS col1 FROM tab0 AS cor0 @@ -18301,8 +18487,15 @@ SELECT - ( col0 ) * - ( + 25 ) + - - col2 FROM tab2 AS cor0 # Datafusion - Expected - 50 # Datafusion - Expected - -42 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col1" at position 0 and "Int64\(36\) \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 42 AS col1, 36 + + col1 AS col1 FROM tab1 AS cor0 +---- +-42 +-42 +-42 +41 +50 +83 query I rowsort SELECT - 99 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 @@ -18400,8 +18593,15 @@ SELECT ALL * FROM tab1 WHERE NOT - - ( - 30 ) - - col1 IS NULL # Datafusion - Expected - 115 # Datafusion - Expected - -27 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col0" at position 0 and "cor0\.col1 \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 27 AS col0, col1 + + col2 col0 FROM tab1 AS cor0 +---- +-27 +-27 +-27 +110 +115 +64 query I rowsort label-3007 SELECT col0 + - CAST ( NULL AS INTEGER ) + + col1 FROM tab0 AS cor0 @@ -19389,8 +19589,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= - 81 * - col1 * - col2 # Datafusion - Expected - NULL # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col0\) AS col0" at position 0 and "\(\- cor0\.col1\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + - col0 AS col0, - col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 +---- +-8 +13 +5 +NULL +NULL +NULL query I rowsort SELECT DISTINCT - - col1 + 11 * + col1 AS col2 FROM tab1 AS cor0 @@ -19862,8 +20069,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + - col1 <= - ( ( - 62 ) ) # Datafusion - Expected - -668 # Datafusion - Expected - 98 # Datafusion - Expected - -833 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \- \(\- tab0\.col0\) \+ tab0\.col1 AS col0" at position 0 and "Int64\(37\) \+ \(\- tab0\.col0\) \* tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 - - col0 + col1 AS col0, 37 + - + col0 * col2 AS col0 FROM tab0 +---- +-1 +-668 +-833 +-9566 +49 +98 query I rowsort SELECT ALL 61 * + col0 AS col1 FROM tab2 @@ -20071,8 +20285,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE - 69 / + CAST ( ( - ( 52 ) ) AS INTEGER ) I # Datafusion - Expected - -271342 # Datafusion - Expected - -77 # Datafusion - Expected - -266125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 \* Int64\(\-54\) \* cor0\.col0 \+ \(\- cor0\.col1\) \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col1 AS col2, + col1 * + - 54 * col0 + - + col1 + + + col0 AS col2 FROM tab2 AS cor0 +---- +-126689 +-266125 +-271342 +-51 +-67 +-77 query I rowsort label-3281 SELECT - CAST ( NULL AS INTEGER ) - - - col2 col0 FROM tab2 WHERE NULL BETWEEN NULL AND NULL @@ -20925,8 +21146,15 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - 3886 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* tab2\.col2 AS col2" at position 0 and "Int64\(29\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + col2 AS col2, + 29 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 +---- +1173 +3080 +3886 +NULL +NULL +NULL query I rowsort SELECT DISTINCT - + 73 FROM tab0 cor0 WHERE NOT col0 BETWEEN + col0 AND NULL @@ -21018,8 +21246,9 @@ SELECT + 2 * - - col0 + - + col1 FROM tab2 AS cor0 83 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) / \(\- Int64\(25\)\) AS col2" at position 0 and "cor0\.col1 / \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 12 / - ( 25 ) AS col2, + ( + col1 ) / - col2 AS col2 FROM tab2 AS cor0 WHERE NULL <> ( NULL ) +---- query III rowsort SELECT * FROM tab2 WHERE + col1 * ( - 96 ) BETWEEN + col1 + + - col0 AND NULL @@ -21476,8 +21705,15 @@ SELECT DISTINCT + + 23 AS col1, col2 FROM tab0 AS cor0 # Datafusion - Expected - 59 # Datafusion - Expected - 91 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col1, + col2 AS col1 FROM tab1 AS cor0 +---- +51 +59 +68 +85 +91 +96 query I rowsort label-3511 SELECT DISTINCT + col1 AS col0 FROM tab1 cor0 WHERE CAST ( NULL AS FLOAT8 ) = NULL @@ -21825,8 +22061,15 @@ SELECT ALL + ( ( + + COUNT ( * ) ) ) FROM tab0 AS cor0 # Datafusion - Expected - -77 # Datafusion - Expected - -58 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(\-77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col2 col0, - 77 AS col0 FROM tab2 cor0 +---- +-23 +-40 +-58 +-77 +-77 +-77 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT 73 <> - col0 @@ -21983,8 +22226,15 @@ SELECT 68 AS col1, - col1 AS col2 FROM tab2 # Datafusion - Expected - 3104 # Datafusion - Expected - 17 # Datafusion - Expected - 480 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "tab0\.col0 \* Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 col1, col0 * 32 AS col1 FROM tab0 +---- +17 +17 +17 +2784 +3104 +480 query I rowsort SELECT ALL ( + ( - col0 ) ) AS col0 FROM tab1 @@ -22254,8 +22504,11 @@ SELECT col0 + col0 + + 58 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( COUNT ( * ) ) AS col1, 61 AS col1 FROM tab1 AS cor0 +---- +3 +61 query I rowsort SELECT DISTINCT - col1 + + 32 AS col2 FROM tab1 AS cor0 @@ -22429,8 +22682,15 @@ SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col2 + + col0 NOT BETWEEN - 57 # Datafusion - Expected - -24 # 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\(\-24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 22 AS col2, - 24 AS col2 FROM tab2 AS cor0 +---- +-24 +-24 +-24 +22 +22 +22 query II rowsort SELECT ALL + + 39 AS col1, col2 * + col1 + col2 + + ( - col1 ) FROM tab0 AS cor0 @@ -22613,8 +22873,11 @@ SELECT - COUNT ( * ) / - 61 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col0, + 15 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL +---- +0 +15 query I rowsort label-3708 SELECT DISTINCT + - MIN ( ALL - 4 ) FROM tab2 AS cor0 @@ -23080,8 +23343,9 @@ SELECT - 13 FROM tab0 WHERE ( NULL ) = col2 OR NOT - + col2 IS NULL -13 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \* tab1\.col0 AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 * col0 AS col0, 43 AS col0 FROM tab1 WHERE NOT NULL IS NULL +---- query I rowsort label-3783 SELECT - 60 / - col2 FROM tab1 @@ -24125,8 +24389,15 @@ SELECT - col1 col0 FROM tab1 WHERE NULL IS NULL # Datafusion - Expected - 7225 # Datafusion - Expected - 99 # Datafusion - Expected - 8281 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "tab1\.col0 \* tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 99 AS col0, + col0 * + col0 AS col0 FROM tab1 +---- +2601 +7225 +8281 +99 +99 +99 query I rowsort SELECT ALL 98 + - col0 + - - col1 AS col2 FROM tab2 @@ -24648,8 +24919,15 @@ SELECT ALL - 42 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL BE # Datafusion - Expected - -80 # Datafusion - Expected - 4350 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* tab2\.col0 AS col0" at position 0 and "Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * + col0 AS col0, - 80 AS col0 FROM tab2 +---- +-80 +-80 +-80 +1058 +2560 +4350 query I rowsort SELECT DISTINCT ( + - 21 ) FROM tab2 @@ -25231,8 +25509,15 @@ SELECT DISTINCT + + col2 AS col0 FROM tab1 AS cor0 WHERE col0 + + col1 IS NOT NU # Datafusion - Expected - NULL # Datafusion - Expected - 11 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 11 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 +---- +11 +11 +11 +NULL +NULL +NULL query I rowsort SELECT + + 23 + col1 + col0 FROM tab2 AS cor0 WHERE NOT NULL > - col2 @@ -25637,8 +25922,15 @@ NULL # Datafusion - Expected - 96 # Datafusion - Expected - 77 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col1" at position 0 and "cor0\.col1 \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 77 AS col1, + col1 + + col0 AS col1 FROM tab0 AS cor0 +---- +108 +77 +77 +77 +96 +98 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 25 IS NOT NULL @@ -26311,8 +26603,15 @@ SELECT ALL * FROM tab1 cor0 WHERE NOT - col2 = NULL # Datafusion - Expected - -73 # Datafusion - Expected - -74 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \- cor0\.col2 AS col0" at position 0 and "Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 - + col2 AS col0, - 73 AS col0 FROM tab2 AS cor0 +---- +-117 +-125 +-73 +-73 +-73 +-74 query I rowsort SELECT - ( - + col2 ) + - + col0 FROM tab0 AS cor0 @@ -26365,8 +26664,11 @@ SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT 39 NOT BETWEEN - 67 AND 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 col1, COUNT ( * ) AS col1 FROM tab1 +---- +2 +3 query I rowsort SELECT DISTINCT + 25 FROM tab2 WHERE + + col1 IS NOT NULL @@ -26566,8 +26868,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, MAX ( - + col0 ) AS col1 FROM tab1 AS cor0 +---- +-3 +-51 query I rowsort label-4342 SELECT - - 93 / col1 FROM tab1 AS cor0 @@ -26787,8 +27092,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( ( 70 ) ) AS col1, - COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +-3 +70 query I rowsort label-4374 SELECT ALL SUM ( ALL - 45 ) FROM tab2 AS cor0 @@ -27515,8 +27823,15 @@ SELECT ALL 80 AS col0 FROM tab1, tab1 cor0 # Datafusion - Expected - 31 # Datafusion - Expected - -97 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col1, 31 AS col1 FROM tab0 +---- +-15 +-87 +-97 +31 +31 +31 query I rowsort SELECT col0 * + ( 6 ) AS col2 FROM tab1 @@ -28271,8 +28586,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) + + 17 AS col2, 49 col2 FROM tab1 cor0 +---- +20 +49 query I rowsort label-4624 SELECT DISTINCT - 4 + + MIN ( + col2 ) FROM tab1 AS cor0 @@ -28970,8 +29288,10 @@ SELECT MAX ( + 49 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 0afe2e9be83b102b3990edf05b63a31a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* tab0\.col1 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 1 * + col1 AS col0, col1 AS col0, 90 AS col2 FROM tab0 +---- +9 values hashing to 38781903841460a5157a06cfffc1135c query II rowsort label-4733 SELECT 9 * ( - - col1 ) + - - col2 + + col2, col1 FROM tab2 WHERE NOT col2 * CAST ( NULL AS INTEGER ) + + col0 IS NOT NULL @@ -29126,8 +29446,15 @@ NULL # Datafusion - Expected - 30 # Datafusion - Expected - 5 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, 30 AS col0 FROM tab1 AS cor0 +---- +14 +30 +30 +30 +47 +5 query I rowsort label-4756 SELECT + + SUM ( ALL + col0 ) AS col2 FROM tab0 AS cor0 @@ -30674,8 +31001,15 @@ NULL # Datafusion - Expected - 68 # Datafusion - Expected - 99 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 AS col0, col2 col0 FROM tab1 +---- +59 +68 +96 +99 +99 +99 query I rowsort SELECT ALL col1 + - 17 FROM tab1 @@ -31455,8 +31789,15 @@ SELECT DISTINCT - - col2 AS col1, col0 FROM tab2 AS cor0 WHERE col1 BETWEEN NULL # Datafusion - Expected - 27 # Datafusion - Expected - 182 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- \(\- cor0\.col0\) AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 - - col0 AS col0, 27 col0 FROM tab1 AS cor0 +---- +102 +170 +182 +27 +27 +27 query I rowsort SELECT + col0 * + + col0 * + + col1 AS col0 FROM tab0 AS cor0 @@ -31501,8 +31842,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, 68 AS col0 FROM tab1 WHERE NULL > NULL +---- +0 +68 query I rowsort label-5138 SELECT ALL - col2 / - 63 AS col1 FROM tab1 AS cor0 @@ -31805,8 +32149,10 @@ SELECT DISTINCT + + col0 FROM tab1 AS cor0 WHERE NULL <> + col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a7fa602439762ee7438d0e03e5dda845 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ Int64\(44\) AS col1" at position 1 and "Int64\(47\) \+ cor0\.col2 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 26 * - ( - col2 ) + + col2 - - col1 / CAST ( NULL AS INTEGER ), - col2 + + 44 AS col1, + 47 + + col2 AS col1 FROM tab2 AS cor0 +---- +9 values hashing to f72ff84d5e4a96350b52398557221549 query I rowsort SELECT + + 7 + + col0 AS col0 FROM tab0 cor0 @@ -32134,8 +32480,15 @@ SELECT + MAX ( ALL 82 ) FROM tab0 # Datafusion - Expected - -64 # Datafusion - Expected - 58 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab2\.col2\)\) AS col2" at position 0 and "\(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - col2 ) AS col2, - col0 AS col2 FROM tab2 +---- +-46 +-64 +-75 +23 +40 +58 query III rowsort SELECT ALL * FROM tab0 WHERE NOT ( NOT NULL > 17 + - col0 ) @@ -32821,8 +33174,15 @@ SELECT + col0 * - + 85 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 41 # Datafusion - Expected - -68 # Datafusion - Expected - 861 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col2" at position 0 and "cor0\.col1 \* Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 68 AS col2, + col1 * + ( 41 ) AS col2 FROM tab0 AS cor0 +---- +-68 +-68 +-68 +3321 +41 +861 query I rowsort SELECT + - col0 * - + col2 col0 FROM tab0 cor0 @@ -33129,8 +33489,15 @@ SELECT DISTINCT - 13 col1 FROM tab0 AS cor0 # Datafusion - Expected - 66 # Datafusion - Expected - -97 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ Int64\(\-10\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + - 10 AS col0, 66 AS col0 FROM tab0 AS cor0 +---- +-107 +-25 +-97 +66 +66 +66 query I rowsort label-5404 SELECT DISTINCT + + col2 / ( + ( col0 ) ) AS col0 FROM tab0 AS cor0 @@ -34315,8 +34682,10 @@ SELECT ALL - col2 AS col0, + col0 * - + col1 AS col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to cc54d94ac222650a1d2b7dba64aad911 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(88\) \* \(\- cor0\.col0\) \* Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - + col2 AS col0, 88 * - col0 * - 56 AS col0, + + col0 AS col2 FROM tab0 AS cor0 +---- +9 values hashing to 581738fef028610ccf1d77251f901e71 query I rowsort label-5598 SELECT DISTINCT - MAX ( 77 ) FROM tab2 AS cor0 @@ -34802,8 +35171,15 @@ SELECT ALL + MAX ( DISTINCT - col1 ) AS col0 FROM tab0 # Datafusion - Expected - -68 # Datafusion - Expected - 96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col2 AS col1, - ( col2 ) AS col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +59 +68 +96 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 61 IS NULL @@ -36442,8 +36818,15 @@ SELECT ( - ( + + ( - col0 ) ) ), + 50 * + + 56 AS col2 FROM tab2 # Datafusion - Expected - 40 # Datafusion - Expected - 21 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 21 AS col0, col2 AS col0 FROM tab2 +---- +21 +21 +21 +23 +40 +58 query I rowsort label-5942 SELECT MAX ( + col0 ) col1 FROM tab2 @@ -36603,8 +36986,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( col0 ) + MAX ( ALL col1 ) AS col0, - COUNT ( * ) AS col0 FROM tab0 +---- +-16 +-3 query I rowsort SELECT + + 65 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 @@ -36691,8 +37077,15 @@ SELECT ALL + COUNT ( * ) + - 6 * + 97 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 # Datafusion - Expected - -64 # Datafusion - Expected - -75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "CAST\(\(\- cor0\.col0\) AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0, CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0 +---- +-46 +-46 +-64 +-64 +-75 +-75 query I rowsort SELECT ALL ( - 96 ) + - + col0 FROM tab2 AS cor0 @@ -37203,8 +37596,11 @@ SELECT ALL + 65 FROM tab2 WHERE - col1 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \- cor0\.col0 \* cor0\.col0 \+ Int64\(\-30\) \- \(\- \(\- cor0\.col0\)\) \* \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 52 - + col0 * col0 + + ( - 30 ) - - - col0 * - + col0 AS col1, 87 AS col1 FROM tab2 AS cor0 +---- +22 +87 query I rowsort label-6064 SELECT 95 + CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0 @@ -37555,8 +37951,15 @@ SELECT ALL - col1 / ( - - col2 ) AS col0 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col1, ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab0 +---- +-1 +-21 +-81 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 + - 22 IS NULL @@ -37934,8 +38337,15 @@ SELECT col1 / + - col0 AS col1, + col0 + + - 68 * col1 / + col2 col0 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 4235 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \* \(\- tab2\.col1\) AS col0" at position 0 and "tab2\.col2 / CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 * - col1 AS col0, col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 +---- +2805 +3685 +4235 +NULL +NULL +NULL query I rowsort SELECT DISTINCT - + col0 FROM tab2 WHERE NULL NOT BETWEEN 27 AND col1 * col1 @@ -37948,8 +38358,15 @@ SELECT DISTINCT - + col0 FROM tab2 WHERE NULL NOT BETWEEN 27 AND col1 * col1 # Datafusion - Expected - 5 # Datafusion - Expected - 6188 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* tab1\.col2 AS col1" at position 0 and "tab1\.col1 / Int64\(\-24\) \- \(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * + col2 AS col1, col1 / + - 24 - + - col1 AS col1 FROM tab1 +---- +14 +46 +4896 +5 +5015 +6188 query I rowsort SELECT DISTINCT - col0 + col0 * + col0 FROM tab1 cor0 @@ -38553,8 +38970,15 @@ SELECT MIN ( - 28 ) FROM tab0 # Datafusion - Expected - 2624 # Datafusion - Expected - 85 # Datafusion - Expected - 4425 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "tab2\.col2 \* tab2\.col0 \- \(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 col2, col2 * + col0 - - col0 AS col2 FROM tab2 +---- +1104 +2624 +4425 +85 +85 +85 query I rowsort SELECT ALL + ( - + 44 ) FROM tab1 @@ -38620,8 +39044,11 @@ SELECT SUM ( - - 75 ) col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, 54 AS col2 FROM tab2 AS cor0 +---- +3 +54 query II rowsort SELECT - 87 AS col2, - col2 * col2 FROM tab2 AS cor0 @@ -38640,8 +39067,15 @@ SELECT - 87 AS col2, - col2 * col2 FROM tab2 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - -81 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 col2, + col0 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +15 +87 +97 query I rowsort SELECT + - col1 * - col1 + 30 AS col1 FROM tab1 AS cor0 @@ -38753,8 +39187,15 @@ SELECT col1 - + - col0 AS col2 FROM tab2 # Datafusion - Expected - -67 # Datafusion - Expected - 43 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col2" at position 0 and "\(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 43 AS col2, - col1 AS col2 FROM tab2 +---- +-51 +-67 +-77 +43 +43 +43 query I rowsort label-6308 SELECT ALL + SUM ( DISTINCT + col0 ) FROM tab2 WHERE NOT ( + ( - 61 ) IS NULL ) @@ -38847,8 +39288,9 @@ SELECT col1 * + - 28 * col0 FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( col0 ) ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col0" at position 0 and "Int64\(61\) \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 55 AS col0, 61 + + col1 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL +---- query I rowsort SELECT col0 AS col1 FROM tab2 WHERE - col1 NOT IN ( + + 40 ) @@ -39235,8 +39677,15 @@ SELECT ALL - + col2 + + col2 + + + 18 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 10 # Datafusion - Expected - 97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, + col2 AS col1 FROM tab0 AS cor0 +---- +10 +15 +47 +87 +97 +99 query I rowsort SELECT - col1 FROM tab1 cor0 WHERE ( + col2 ) - + col0 IS NULL @@ -39577,8 +40026,11 @@ SELECT - CAST ( col2 AS INTEGER ) + + 94 + - - col1 col2 FROM tab2 AS cor0 WHERE # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 +---- +3 +NULL query I rowsort SELECT + + col2 * ( + - col2 ) + - col0 FROM tab2 cor0 @@ -39764,8 +40216,15 @@ SELECT ALL - 95 * + col1 * - + col2 + - + col1 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 82 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) / \(\- cor0\.col0\) \+ cor0\.col1 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 / - + col0 + col1 col1, col0 AS col1 FROM tab0 cor0 +---- +15 +2 +22 +82 +87 +97 query I rowsort label-6478 SELECT - SUM ( + col0 ) / + 53 AS col0 FROM tab0 @@ -39779,8 +40238,15 @@ SELECT - SUM ( + col0 ) / + 53 AS col0 FROM tab0 # Datafusion - Expected - 85 # Datafusion - Expected - 64 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 AS col1, + col0 col1 FROM tab1 +---- +51 +64 +64 +64 +85 +91 query I rowsort label-6480 SELECT - COUNT ( DISTINCT + - 46 ) * - + 56 AS col0 FROM tab1 @@ -40036,8 +40502,15 @@ SELECT - MIN ( + col2 ) + - COUNT ( + col2 ) col1 FROM tab0 AS cor0 # Datafusion - Expected - -89 # Datafusion - Expected - 96 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \+ cor0\.col2 AS col0" at position 0 and "Int64\(\-89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 73 + col2 AS col0, - 89 AS col0 FROM tab2 AS cor0 +---- +-89 +-89 +-89 +113 +131 +96 query I rowsort SELECT DISTINCT col0 - + + col2 * - 53 FROM tab1 AS cor0 @@ -40207,8 +40680,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-77\)\) \- min\(CAST\(cor0\.col2 AS Int32\)\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( ALL + - 77 ) - + + MIN ( + CAST ( + + col2 AS INTEGER ) ) AS col0, 72 col0 FROM tab1 AS cor0 +---- +-56 +72 query I rowsort SELECT DISTINCT + 22 * col1 - - - col0 FROM tab0 AS cor0 @@ -40322,8 +40798,15 @@ SELECT DISTINCT * FROM tab0 WHERE NOT - col1 < - col2 # Datafusion - Expected - -67 # Datafusion - Expected - -32 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col0" at position 0 and "\(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 32 col0, - col1 AS col0 FROM tab2 +---- +-32 +-32 +-32 +-51 +-67 +-77 query I rowsort SELECT - col1 + col1 + - ( 65 ) AS col1 FROM tab2 @@ -40759,8 +41242,11 @@ SELECT col0 / + - col1 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col2" at position 0 and "Int64\(\-28\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 32 AS col2, - 28 - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE 62 IS NOT NULL +---- +-31 +-32 query I rowsort SELECT ALL 71 + - col1 FROM tab2 @@ -41743,8 +42229,15 @@ SELECT ( - 98 ) FROM tab2 AS cor0 # Datafusion - Expected - 0 # 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 "cor0\.col0 / Int64\(50\) / Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 AS col2, col0 / 50 / + 32 AS col2 FROM tab2 cor0 +---- +0 +0 +0 +14 +14 +14 query I rowsort SELECT ALL col1 * 81 FROM tab1 AS cor0 @@ -42037,8 +42530,15 @@ SELECT CAST ( - 80 AS INTEGER ) AS col2 FROM tab0 # Datafusion - Expected - 50 # Datafusion - Expected - 15 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 15 AS col2, 50 AS col2 FROM tab2 +---- +15 +15 +15 +50 +50 +50 query I rowsort label-6861 SELECT + SUM ( + 17 ) AS col0 FROM tab0 @@ -42888,8 +43388,11 @@ SELECT - - COUNT ( - 19 ) FROM tab1 AS cor0 # 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\(2\) AS col0" at position 0 and "Int64\(39\) \- Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 2 AS col0, 39 - 60 AS col0 FROM tab2 +---- +-21 +2 query II rowsort SELECT ALL + col1, - col2 FROM tab0 WHERE NULL <> NULL @@ -43750,8 +44253,11 @@ SELECT - 98 * + col0 + - 87 * col2 * - col0 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \+ Int64\(48\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 + + + 48 col1, + COUNT ( * ) AS col1 FROM tab1 +---- +3 +70 query I rowsort label-7142 SELECT ALL SUM ( - col2 ) + - + 80 AS col0 FROM tab1 AS cor0 @@ -43805,8 +44311,15 @@ SELECT ( - col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL # Datafusion - Expected - 1 # Datafusion - Expected - 77 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "tab2\.col0 / tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col0, col0 / + col2 AS col0 FROM tab2 +---- +1 +1 +2 +51 +67 +77 query I rowsort SELECT col1 * + ( - ( - 40 ) ) FROM tab1 @@ -43892,8 +44405,15 @@ SELECT + MIN ( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -2327 # Datafusion - Expected - 96 # Datafusion - Expected - -677 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "Int64\(23\) \+ \(\- \(\- tab1\.col1\)\) \* \(\- Int64\(50\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + + ( + col2 ) ) col1, + 23 + - - col1 * - + ( 50 ) AS col1 FROM tab1 +---- +-227 +-2327 +-677 +59 +68 +96 query II rowsort label-7165 SELECT ALL + col2, + CAST ( - + col0 AS INTEGER ) AS col0 FROM tab2 @@ -44013,8 +44533,15 @@ SELECT DISTINCT + 38 * + col2 - - col0 col0 FROM tab0 AS cor0 # Datafusion - Expected - -3550 # Datafusion - Expected - -529 # Datafusion - Expected - -3550 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(50\) \* \(\- Int64\(71\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * - col2 AS col1, + 50 * - + 71 col1 FROM tab2 AS cor0 +---- +-1600 +-3364 +-3550 +-3550 +-3550 +-529 query I rowsort SELECT + ( col1 ) - - - 31 * + col1 FROM tab2 AS cor0 @@ -44871,8 +45398,15 @@ SELECT + 50 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 3120 # Datafusion - Expected - -49 # Datafusion - Expected - 3944 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \+ \(\- tab2\.col2\) AS col1" at position 0 and "tab2\.col2 \+ \(\- tab2\.col1\) \* \(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 9 ) + - col2 col1, col2 + - col1 * + ( + - col2 ) AS col1 FROM tab2 +---- +-14 +-31 +-49 +1196 +3120 +3944 query I rowsort SELECT + col0 + - 96 * + 8 FROM tab0 AS cor0 @@ -45272,8 +45806,11 @@ SELECT - 52 + + - COUNT ( * ) AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ CAST\(CAST\(NULL AS Int32\) AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 92 + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +3 +NULL query I rowsort SELECT - 59 + + ( - - col0 ) * - col2 AS col2 FROM tab1 AS cor0 @@ -45489,8 +46026,15 @@ NULL # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col0, col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-7432 SELECT DISTINCT + 58 - - MIN ( col0 ) - - - ( + COUNT ( * ) ) AS col0 FROM tab2 @@ -46635,8 +47179,15 @@ SELECT - 28 + - - col1 FROM tab1 cor0 # Datafusion - Expected - 291383 # Datafusion - Expected - NULL # Datafusion - Expected - 53907 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- cor0\.col2 AS col1" at position 0 and "cor0\.col2 \* \(\- cor0\.col1\) \* \(\- cor0\.col0\) \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) - col2 AS col1, col2 * - col1 * - col0 + - col1 AS col1 FROM tab2 AS cor0 +---- +197043 +291383 +53907 +NULL +NULL +NULL query I rowsort label-7626 SELECT ALL + 91 - - + SUM ( 84 ) col2 FROM tab1 AS cor0 @@ -47107,8 +47658,10 @@ SELECT ALL COUNT ( * ) / - 22 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f7b30812adf1a3cbea16ea02ca3d6540 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col2 AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col2 * + col2 AS col2, 4 AS col2, col0 FROM tab0 AS cor0 +---- +9 values hashing to 6b679d16086b596adb3c360015c21634 query III rowsort SELECT DISTINCT * FROM tab0 WHERE + - 76 IS NOT NULL @@ -47592,8 +48145,11 @@ SELECT - ( + 89 ) AS col0 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - -223 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT cor0\.col2\) 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 II valuesort SELECT DISTINCT + MIN ( DISTINCT + col2 ) AS col2, + ( SUM ( + - col2 ) ) col2 FROM tab1 AS cor0 +---- +-223 +59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 @@ -47602,8 +48158,15 @@ SELECT DISTINCT + MIN ( DISTINCT + col2 ) AS col2, + ( SUM ( + - col2 ) ) col2 F # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col1, col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-7782 SELECT - ( - - 61 ) + 8 + - COUNT ( * ) AS col2 FROM tab0 @@ -47810,8 +48373,15 @@ SELECT ALL * FROM tab0 WHERE col2 + + - col2 IS NOT NULL # Datafusion - Expected - 210 # Datafusion - Expected - -97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "tab0\.col2 \* tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, col2 * + ( + col1 ) AS col2 FROM tab0 +---- +-15 +-87 +-97 +210 +3807 +99 query I rowsort SELECT col1 * + col2 FROM tab0 WHERE NOT + 1 IN ( ( col0 ) * + - col2 * + - 87 + - 50 / + + 41 + ( - col2 ) + + col0 ) @@ -48678,8 +49248,15 @@ NULL # Datafusion - Expected - -5 # Datafusion - Expected - 91 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "\(\- tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, - ( col1 ) AS col2 FROM tab1 +---- +-14 +-47 +-5 +51 +85 +91 query I rowsort label-7958 SELECT DISTINCT COUNT ( DISTINCT - col1 ) FROM tab2 @@ -50500,12 +51077,20 @@ SELECT + ( + - 10 ) FROM tab1 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 col0, col0 AS col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ tab0\.col2 AS col0" at position 0 and "Int64\(\-88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 33 + col2 col0, + ( - 88 ) AS col0 FROM tab0 WHERE - + col1 - 99 IS NULL +---- query I rowsort label-8263 SELECT ( ( MAX ( + + col1 ) ) ) FROM tab2 @@ -50768,8 +51353,15 @@ SELECT ( + - 36 ) * col0 + + col1 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - -61 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(61\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 61 AS col0, + col2 AS col0 FROM tab1 AS cor0 +---- +-61 +-61 +-61 +59 +68 +96 query I rowsort SELECT DISTINCT col0 - - col1 AS col0 FROM tab0 AS cor0 @@ -51349,8 +51941,15 @@ NULL # Datafusion - Expected - -67 # Datafusion - Expected - -77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1, - col1 FROM tab2 AS cor0 +---- +-51 +-51 +-67 +-67 +-77 +-77 query II rowsort label-8401 SELECT ALL - - col0 AS col0, - col1 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 @@ -51996,8 +52595,15 @@ SELECT ALL col0 * + - ( + ( + col0 ) ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col2, col0 AS col2 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT col1 AS col2 FROM tab0 WHERE NOT 40 * - - col0 IS NOT NULL @@ -53158,8 +53764,15 @@ SELECT ( + 78 ) FROM tab1 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - 75 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col2, col1 AS col2 FROM tab2 AS cor0 +---- +46 +51 +64 +67 +75 +77 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -53373,8 +53986,11 @@ SELECT ALL + MAX ( DISTINCT - 9 ) AS col1 FROM tab0 # 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 "min\(tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 30 col0, MIN ( ALL col1 ) AS col0 FROM tab0 +---- +1 +30 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> - ( - col1 ) @@ -53495,8 +54111,10 @@ SELECT - col1 * 75 / - ( - + col2 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 0ccaf0ef1e7f2296dc0f2120d09cc40c -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 97 AS col1, - col2 AS col1, + 59 FROM tab2 AS cor0 +---- +9 values hashing to 955f50b770c5deca06193bb8bf8fee59 query I rowsort SELECT DISTINCT - - 75 AS col0 FROM tab1 AS cor0 @@ -53758,8 +54376,15 @@ SELECT col0 + col2 * - - 71 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) / Int64\(29\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 / + + 29 AS col1, CAST ( NULL AS INTEGER ) / + 75 col1 FROM tab2 AS cor0 +---- +-1 +-2 +-2 +NULL +NULL +NULL query I rowsort label-8799 SELECT DISTINCT - + COUNT ( * ) - - - 31 * - MAX ( ALL - - col0 ) AS col1 FROM tab2 cor0 @@ -54150,8 +54775,15 @@ SELECT DISTINCT + MIN ( col0 ) FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - -97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, col1 AS col2 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +1 +21 +81 query I rowsort SELECT DISTINCT - ( + 96 ) AS col1 FROM tab2 @@ -54550,8 +55182,11 @@ SELECT * FROM tab1 WHERE NOT + 51 * - col1 + - col1 NOT BETWEEN ( CAST ( NULL AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "sum\(DISTINCT Int64\(61\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) AS col2, SUM ( DISTINCT + + 61 ) AS col2 FROM tab0 +---- +61 +9 query I rowsort label-8938 SELECT ALL - 93 / - ( col0 ) + - col0 col1 FROM tab2 @@ -54806,8 +55441,15 @@ SELECT ALL 21 AS col0, + 69 * COUNT ( * ) FROM tab0 AS cor0 JOIN tab1 AS cor1 ON # Datafusion - Expected - -73 # Datafusion - Expected - 3745 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \+ \(\- tab0\.col2\) \* \(\- tab0\.col1\) \- tab0\.col2 AS col1" at position 0 and "Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 + - + col2 * + - col1 - col2 AS col1, - 73 col1 FROM tab0 +---- +-73 +-73 +-73 +-97 +113 +3745 query I rowsort label-8979 SELECT - CAST ( + SUM ( ALL - col1 ) AS INTEGER ) FROM tab0 @@ -55331,8 +55973,15 @@ SELECT + col2 / - col0 FROM tab2 AS cor0 WHERE NOT col2 + - col0 IS NULL # Datafusion - Expected - -25 # Datafusion - Expected - 96 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- Int64\(\-66\)\) \+ \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, - ( - 66 ) + + - ( col0 ) col1 FROM tab1 AS cor0 +---- +-19 +-25 +15 +59 +68 +96 query II rowsort label-9065 SELECT - CAST ( NULL AS INTEGER ) AS col2, + ( + 44 ) FROM tab1 AS cor0 @@ -55558,8 +56207,15 @@ SELECT COUNT ( * ) * - + 66 FROM tab2 # Datafusion - Expected - -5 # Datafusion - Expected - 910 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* \(\- Int64\(\-10\)\) AS col2" at position 0 and "\(\- tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * - ( + - 10 ) AS col2, - col1 AS col2 FROM tab1 +---- +-14 +-47 +-5 +510 +850 +910 query I rowsort SELECT + 19 * - col1 AS col0 FROM tab1 @@ -56135,8 +56791,15 @@ SELECT - col2 * + - 15 AS col1 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 92 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 92 AS col1, col0 AS col1 FROM tab0 +---- +15 +87 +92 +92 +92 +97 query I rowsort SELECT + col1 * - col2 * - ( ( + col0 ) ) FROM tab2 @@ -56157,8 +56820,15 @@ SELECT - 59 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col0, col0 AS col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT + ( ( col0 ) ) >= NULL @@ -56172,8 +56842,11 @@ SELECT DISTINCT - ( COUNT ( DISTINCT + + col1 ) ) AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "min\(\(\- cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col1, MIN ( ALL - + col0 ) AS col1 FROM tab1 AS cor0 +---- +-91 +3 query I rowsort label-9195 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + col1 AS col0 FROM tab1 AS cor0 @@ -56183,8 +56856,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, 58 AS col0 FROM tab2 AS cor0 +---- +3 +58 query I rowsort SELECT DISTINCT + ( + - col2 ) FROM tab2 AS cor0 @@ -56843,8 +57519,15 @@ SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > - 33 # Datafusion - Expected - 8 # Datafusion - Expected - 20 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col2" at position 0 and "Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 20 AS col2, + 8 AS col2 FROM tab2 AS cor0 +---- +20 +20 +20 +8 +8 +8 query II rowsort SELECT DISTINCT + col2, + col0 AS col0 FROM tab1 cor0 @@ -57341,8 +58024,11 @@ SELECT col2 + CAST ( + col0 AS INTEGER ) FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* cor0\.col1 \+ Int64\(79\) / Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 64 AS col2, + CAST ( NULL AS INTEGER ) * col1 + 79 / + ( + 45 ) AS col2 FROM tab1 AS cor0 +---- +-64 +NULL query I rowsort SELECT - 67 + + col2 + - col0 FROM tab0 @@ -57451,8 +58137,15 @@ SELECT - 88 FROM tab2 WHERE NOT 94 IS NOT NULL # Datafusion - Expected - 87 # Datafusion - Expected - 81 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, + col0 col2 FROM tab0 +---- +1 +15 +21 +81 +87 +97 query III rowsort SELECT * FROM tab0 WHERE NOT NULL IN ( - 25 + 38 * + 18 ) @@ -58086,8 +58779,15 @@ SELECT - COUNT ( * ), + 99 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT N # Datafusion - Expected - -67 # Datafusion - Expected - 91 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(\-31\) \+ \(\- cor0\.col0\) \+ Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col1, - 31 + - col0 + + 49 col1 FROM tab1 AS cor0 +---- +-33 +-67 +-73 +51 +85 +91 query I rowsort SELECT - - ( col0 ) * - + col1 col0 FROM tab1 WHERE NOT NULL > + col2 @@ -58423,8 +59123,10 @@ SELECT - + CAST ( 4 AS INTEGER ) + - col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to e0bd6d9f51a4a9d2ad2dc77b137e7c76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) \+ cor0\.col1 AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 72 + + col1 AS col2, + 36 AS col2, - - col1 FROM tab0 AS cor0 +---- +9 values hashing to 6fd446c3bd55c3ef9de2264f615425c0 query I rowsort label-9566 SELECT DISTINCT col2 / + - col0 col2 FROM tab2 @@ -58566,8 +59268,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 35 ) IS NOT NULL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col1, col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query III rowsort SELECT * FROM tab0 WHERE col2 < - 37 * + + col0 @@ -58614,8 +59323,9 @@ SELECT DISTINCT 67 + + + col2 FROM tab0 77 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col2 / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, col2 / CAST ( NULL AS INTEGER ) col2 FROM tab0 WHERE + 39 IS NULL +---- query I rowsort SELECT ALL + col2 * + 53 FROM tab1 @@ -58658,8 +59368,15 @@ SELECT DISTINCT + + 92 col1 FROM tab0 cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col2 AS Int32\)" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + col2 AS INTEGER ), col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query II rowsort SELECT col0 * - col0, + col0 * - + col2 * - 52 AS col1 FROM tab1 AS cor0 @@ -59123,8 +59840,9 @@ SELECT DISTINCT - col2 AS col1, + col1 + 22 + - + col2 * + - col0 * - - 23 * - c -5802811 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col1 AS Int32\)\) \+ \(\- cor0\.col1\) \* cor0\.col0 AS col1" at position 0 and "Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( col1 AS INTEGER ) + - col1 * + col0 AS col1, + 56 AS col1 FROM tab1 AS cor0 WHERE NULL < NULL +---- query II rowsort SELECT - col0, col0 AS col2 FROM tab1 @@ -59492,8 +60210,15 @@ SELECT ALL 64 / - 99, col1 FROM tab0 # Datafusion - Expected - -45 # Datafusion - Expected - 6561 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) \* \(\- tab0\.col1\) AS col0" at position 0 and "Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 * - col1 AS col0, - 45 AS col0 FROM tab0 +---- +-45 +-45 +-45 +1 +441 +6561 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT + 57 <= - 25 + + ( col0 ) + + - col0 * + 75 @@ -59518,8 +60243,11 @@ SELECT ALL * FROM tab1 WHERE NOT - + ( col2 ) > col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, 67 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = NULL +---- +0 +67 query III rowsort SELECT DISTINCT * FROM tab1 WHERE + col0 * + 37 * - - 26 IS NULL diff --git a/data/sqlite/random/aggregates/slt_good_100.slt b/data/sqlite/random/aggregates/slt_good_100.slt index 03343e5..dcb6599 100644 --- a/data/sqlite/random/aggregates/slt_good_100.slt +++ b/data/sqlite/random/aggregates/slt_good_100.slt @@ -759,8 +759,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 +---- +3 +3 query I rowsort SELECT - - 79 * col0 FROM tab2 AS cor0 @@ -1346,8 +1349,15 @@ SELECT 22, + col2 + + col0 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 54 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 54 AS col1, 85 AS col1 FROM tab1 AS cor0 +---- +54 +54 +54 +85 +85 +85 query II rowsort SELECT - + col0 col2, col0 * 68 FROM tab2 cor0 @@ -1539,8 +1549,11 @@ SELECT DISTINCT 94 col1, col0 / - CAST ( + 42 AS INTEGER ) + - 72 * + - col2 + - # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - -18720 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col0" at position 0 and "sum\(Int64\(\-78\)\) \* Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 96 AS col0, SUM ( ALL - 78 ) * 80 col0 FROM tab0 +---- +-18720 +-96 query I rowsort SELECT + 9 AS col0 FROM tab2 WHERE NOT NULL IS NULL @@ -1754,8 +1767,15 @@ SELECT - col0, col1 * - - 19 + + col2 * 63 + + + col2 col2 FROM tab1 AS cor0 # Datafusion - Expected - 93 # Datafusion - Expected - 75 # Datafusion - Expected - 104 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(29\) \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col1, 29 + col0 AS col1 FROM tab2 AS cor0 +---- +104 +46 +64 +75 +75 +93 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= col1 + + 29 @@ -1813,8 +1833,11 @@ SELECT DISTINCT - col1 * + col2 AS col0, + 54 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 294 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\) AS col1" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(99\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, - ( + - COUNT ( * ) ) * + 99 - + COUNT ( * ) AS col1 FROM tab1 cor0 +---- +294 +NULL query I rowsort SELECT DISTINCT + 11 * - col2 + - col2 AS col2 FROM tab1 @@ -2431,8 +2454,15 @@ SELECT DISTINCT + - 63, col1 FROM tab2 AS cor0 # Datafusion - Expected - -44 # Datafusion - Expected - 46 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-46\)\) AS col0" at position 0 and "Int64\(52\) \- cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 46 AS col0, 52 - + + col2 AS col0 FROM tab1 cor0 +---- +-16 +-44 +-7 +46 +46 +46 query II rowsort label-399 SELECT DISTINCT - 82 AS col2, + ( + - SUM ( ALL - col2 ) ) col1 FROM tab0 AS cor0 @@ -2631,8 +2661,15 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - -96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 col1, - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +NULL +NULL +NULL query I rowsort label-433 SELECT ALL - SUM ( + - 32 ) col2 FROM tab2 @@ -2890,8 +2927,10 @@ SELECT + 13 + + COUNT ( * ) AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a0c2db69b08967cb1a37bb58ab54fd4a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* Int64\(42\) AS col2" at position 0 and "\(\- tab2\.col0\) \* tab2\.col0 / Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + col0 * + 42 AS col2, - col0 * col0 / 19 AS col2, - 68 AS col1 FROM tab2 +---- +9 values hashing to be4f4cf474d7c24163c9bd0bf4bd86ae query I rowsort label-475 SELECT - 29 * SUM ( + col1 ) + - CAST ( - 53 AS INTEGER ) FROM tab2 @@ -3097,8 +3136,9 @@ SELECT * FROM tab2 WHERE NOT NULL IN ( - 40 - + col0, + col0 ) ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \+ \(\- Int64\(\-79\)\) \* Int64\(30\) AS col1" at position 0 and "Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 85 + - - 79 * + 30 AS col1, 77 AS col1 FROM tab2 WHERE NOT col1 <> col0 + - col1 +---- query I rowsort label-510 SELECT DISTINCT + MAX ( - + col2 ) FROM tab2 AS cor0 @@ -3141,8 +3181,11 @@ SELECT DISTINCT col0 / col0 - col2 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col0" at position 0 and "sum\(DISTINCT \(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 8 AS col0, SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - col0 +---- +-8 +NULL query I rowsort label-517 SELECT ALL - col0 / + - 42 AS col0 FROM tab2 cor0 @@ -3868,8 +3911,15 @@ SELECT - + COUNT ( DISTINCT col2 ) AS col2 FROM tab2 cor0 # Datafusion - Expected - 144 # Datafusion - Expected - -77 # Datafusion - Expected - 126 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 \+ \(\- Int64\(\-86\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, col2 + - - 86 AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +109 +126 +144 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( + + 14 ) IS NOT NULL @@ -4378,8 +4428,15 @@ SELECT + - 40 FROM tab0 cor0 # Datafusion - Expected - 3915 # Datafusion - Expected - 97 # Datafusion - Expected - 4365 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col0 \* Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, col0 * 45 AS col2 FROM tab0 +---- +15 +3915 +4365 +675 +87 +97 query II rowsort SELECT col0, - col1 * + - 92 FROM tab2 @@ -4505,8 +4562,15 @@ SELECT ALL - + ( - + COUNT ( * ) ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -3886 # Datafusion - Expected - -97 # Datafusion - Expected - -1173 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \- cor0\.col0 AS col2" at position 0 and "cor0\.col1 \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 - col0 AS col2, col1 * - + col2 col2 FROM tab2 AS cor0 +---- +-1173 +-141 +-142 +-3080 +-3886 +-97 query I rowsort SELECT 27 * - - 17 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 @@ -4617,8 +4681,15 @@ SELECT 75 * - + SUM ( DISTINCT col1 ) AS col2 FROM tab1 # Datafusion - Expected - -1640 # Datafusion - Expected - 58 # Datafusion - Expected - -2378 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "tab2\.col2 \* Int64\(\-41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, col2 * + - 41 AS col1 FROM tab2 +---- +-1640 +-2378 +-943 +23 +40 +58 query I rowsort label-760 SELECT ALL CAST ( - ( + col2 ) AS INTEGER ) AS col2 FROM tab2 AS cor0 @@ -5263,8 +5334,15 @@ SELECT DISTINCT col0 + + 70 + ( + - 12 ) + - 63 * + col1 * + + col2 FROM tab0 # Datafusion - Expected - 715792047 # Datafusion - Expected - -75 # Datafusion - Expected - 1309504345 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "Int64\(7\) \+ tab2\.col2 \+ Int64\(70\) \* \(\- tab2\.col2\) \* \(\- tab2\.col1\) \* \(\- tab2\.col2\) \* Int64\(\-83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, 7 + + col2 + 70 * - col2 * - col1 * - + col2 * - 83 col0 FROM tab2 +---- +-46 +-64 +-75 +1309504345 +156748020 +715792047 query III rowsort SELECT DISTINCT * FROM tab1 WHERE - + col1 / + - col0 + - col1 + - col1 - - + 81 IS NULL @@ -6800,8 +6878,15 @@ SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE + col2 * + col2 IN ( 33 + - 48 ) # Datafusion - Expected - 87 # Datafusion - Expected - 48 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 AS col2, col0 AS col2 FROM tab0 cor0 +---- +15 +48 +48 +48 +87 +97 query I rowsort label-1120 SELECT ALL + - 96 + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 @@ -7214,8 +7299,15 @@ SELECT * FROM tab1 cor0 WHERE ( col2 ) NOT BETWEEN + 55 / + - col1 AND + - col0 # Datafusion - Expected - -23 # Datafusion - Expected - -18 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col2" at position 0 and "cor0\.col2 \- cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 18 AS col2, col2 - col0 col2 FROM tab2 AS cor0 +---- +-17 +-18 +-18 +-18 +-23 +-24 query II rowsort SELECT - + 51 AS col1, + col2 FROM tab0 AS cor0 @@ -7776,8 +7868,15 @@ SELECT ALL - - ( - 73 ) FROM tab0 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0, col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT ALL + - col0 * + col0 * - col2 + + 89 FROM tab2 cor0 @@ -7826,8 +7925,11 @@ SELECT - 84 * + 67 col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) * + + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab1 +---- +3 +9 query I rowsort SELECT + 64 + + 73 + + col2 FROM tab2 @@ -8436,8 +8538,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 38 AS col0, - COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +-3 +38 query I rowsort label-1384 SELECT - COUNT ( DISTINCT + col0 ) FROM tab1 cor0 @@ -9193,8 +9298,9 @@ SELECT ( + + MIN ( DISTINCT ( col1 ) ) ) AS col0 FROM tab2 51 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "Int64\(75\) \* Int64\(45\) \+ tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, 75 * + + 45 + col0 col1 FROM tab0 WHERE NOT NULL BETWEEN col1 AND - + col2 +---- query I rowsort SELECT - + 41 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -9669,8 +9775,11 @@ SELECT + col2 * - 74 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col2" at position 0 and "min\(cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col2, MIN ( col2 ) AS col2 FROM tab0 AS cor0 +---- +10 +3 query I rowsort SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL = NULL ) @@ -11580,8 +11689,15 @@ SELECT ALL col2 col1 FROM tab2 WHERE NULL IS NULL # Datafusion - Expected - -1 # Datafusion - Expected - 58 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "tab2\.col2 / \(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 col0, + col2 / + - col2 AS col0 FROM tab2 +---- +-1 +-1 +-1 +23 +40 +58 query II rowsort SELECT ALL col0, + 95 FROM tab1 AS cor0 @@ -11901,8 +12017,10 @@ SELECT ALL col1 * + 24 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to fc3ca52aa99d714fe13ed541683c4d15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \* tab2\.col1 AS col1" at position 1 and "\(\- \(\- tab2\.col1\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - ( + 28 ), - col1 * col1 AS col1, - - col1 AS col1 FROM tab2 +---- +9 values hashing to 23e0b9e6009afe0a9323731c37f8db91 query I rowsort SELECT ALL - col1 * + + col2 FROM tab2 cor0 @@ -13655,8 +13773,9 @@ SELECT col1 / + 14 FROM tab0 5 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 / Int64\(\-30\) \+ Int64\(\-37\) \* Int64\(30\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 / - 30 + - 37 * 30 AS col1, col2 AS col1 FROM tab0 WHERE NULL <= ( NULL ) +---- query II rowsort label-2246 SELECT - CAST ( NULL AS INTEGER ), - col0 * + 39 AS col1 FROM tab2 @@ -13692,8 +13811,15 @@ SELECT - 95 * - - ( - ( 35 ) ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 97 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "cor0\.col1 \+ \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 AS col0, + col1 + - col1 AS col0 FROM tab0 cor0 +---- +0 +0 +0 +15 +87 +97 query I rowsort SELECT - 20 + - col2 col0 FROM tab0 AS cor0 WHERE NOT + col0 + - 35 IS NOT NULL @@ -14245,8 +14371,15 @@ SELECT ALL ( - 83 ) * col0 + + col1 * col0 FROM tab2 # Datafusion - Expected - 58 # Datafusion - Expected - 87 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "Int64\(\-10\) \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 87 col1, - 10 + + col2 AS col1 FROM tab1 AS cor0 +---- +49 +58 +86 +87 +87 +87 query I rowsort SELECT ALL - 78 + - col1 AS col0 FROM tab0 AS cor0 @@ -14634,8 +14767,11 @@ SELECT + ( - col2 ) + - 59 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 223 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- cor0\.col2\)\)\) AS col2" at position 0 and "Int64\(\-32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( - + col2 ) AS col2, - 32 col2 FROM tab1 AS cor0 +---- +-32 +223 query I rowsort SELECT DISTINCT col0 col2 FROM tab1 WHERE NULL > + 87 @@ -15344,8 +15480,15 @@ SELECT ( + col1 ) * col1 FROM tab1 AS cor0 # Datafusion - Expected - 10 # Datafusion - Expected - 1 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / cor0\.col2 AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 / + col2 AS col1, + 10 AS col1 FROM tab0 AS cor0 +---- +1 +1 +1 +10 +10 +10 query I rowsort label-2529 SELECT - COUNT ( DISTINCT + - 48 ) AS col2 FROM tab1 AS cor0 @@ -16085,8 +16228,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, 96 AS col2 FROM tab2 AS cor0 +---- +-3 +96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 @@ -16499,8 +16645,15 @@ SELECT 44 + - - col2 FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - 66 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 66 AS col1, + col2 col1 FROM tab2 WHERE NOT - - col2 IS NULL +---- +23 +40 +58 +66 +66 +66 query I rowsort label-2714 SELECT ALL SUM ( DISTINCT + - col1 ) AS col1 FROM tab1 @@ -16706,8 +16859,15 @@ NULL # Datafusion - Expected - -47 # Datafusion - Expected - 0 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \+ tab1\.col1 AS col0" at position 0 and "\(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + col1 AS col0, - col1 AS col0 FROM tab1 +---- +-14 +-47 +-5 +0 +0 +0 query I rowsort SELECT ALL col2 * + - col2 AS col1 FROM tab2 @@ -16723,8 +16883,15 @@ SELECT ALL col2 * + - col2 AS col1 FROM tab2 # Datafusion - Expected - 46 # Datafusion - Expected - -80 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \+ \(\- tab2\.col2\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 + + - col2 AS col1, col0 AS col1 FROM tab2 +---- +-116 +-46 +-80 +46 +64 +75 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT + - 47 + + col1 <> - col1 @@ -18418,8 +18585,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 13 IS NOT NULL # Datafusion - Expected - -77 # Datafusion - Expected - 5046 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(87\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 * + 87 AS col2, - col1 col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +2001 +3480 +5046 query I rowsort SELECT - ( - - col1 ) col0 FROM tab1 AS cor0 @@ -18580,8 +18754,15 @@ SELECT DISTINCT 5 + 32 + - ( + 52 ) FROM tab0 # Datafusion - Expected - 64 # Datafusion - Expected - -75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col1, col0 AS col1 FROM tab2 +---- +-46 +-64 +-75 +46 +64 +75 query II rowsort label-3066 SELECT - 45 col1, MAX ( + 38 ) FROM tab1 @@ -19383,8 +19564,15 @@ SELECT ALL 92 + 13 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -21 # Datafusion - Expected - -81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1, + ( - col1 ) FROM tab0 AS cor0 +---- +-1 +-1 +-21 +-21 +-81 +-81 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + 98 @@ -19654,8 +19842,15 @@ SELECT - 81 AS col0 FROM tab2 cor0 # Datafusion - Expected - -70 # Datafusion - Expected - -91 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(\-70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col0 AS col2, - 70 AS col2 FROM tab1 AS cor0 +---- +-51 +-70 +-70 +-70 +-85 +-91 query I rowsort label-3240 SELECT DISTINCT + - CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0 @@ -19967,14 +20162,24 @@ SELECT + col1 AS col0, + col1 + col1 * - 90 FROM tab2 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 34 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 34 AS col2, col0 AS col2 FROM tab0 AS cor0 +---- +15 +34 +34 +34 +87 +97 # 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * + 61 + + MAX ( - ( - col0 ) ) col0, 66 AS col0 FROM tab2 +---- +258 +66 query I rowsort SELECT DISTINCT col1 * - col2 + - 62 FROM tab1 @@ -20410,8 +20615,15 @@ SELECT DISTINCT - SUM ( DISTINCT - + 10 ) AS col2, - COUNT ( * ) FROM tab2, tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col0 AS col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +51 +85 +91 +NULL +NULL +NULL query I rowsort SELECT DISTINCT - ( + + 99 ) AS col0 FROM tab1 AS cor0 @@ -21209,8 +21421,15 @@ SELECT DISTINCT + col2 * + col2 * - col2 AS col2, 25 - + col2 + - col0 AS col0 F # Datafusion - Expected - 10 # Datafusion - Expected - -9603 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- tab0\.col0\) AS col1" at position 0 and "CAST\(tab0\.col2 AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 * - col0 AS col1, CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 +---- +-705 +-870 +-9603 +10 +47 +99 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -21843,8 +22062,11 @@ SELECT - 13 * + 89 + + - 32 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53899 # Datafusion - Expected - 5494 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ \(\- sum\(Int64\(92\)\)\) \* \(\- sum\(tab2\.col1\)\) AS col2" at position 0 and "Int64\(82\) \* Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 79 + - SUM ( 92 ) * - ( SUM ( ALL + ( + col1 ) ) ) AS col2, 82 * + 67 AS col2 FROM tab2 +---- +53899 +5494 query III rowsort label-3594 SELECT * FROM tab0 WHERE + CAST ( + col1 AS INTEGER ) > NULL @@ -22340,8 +22562,15 @@ SELECT DISTINCT COUNT ( - col1 ) AS col1, - 23 FROM tab1 # Datafusion - Expected - 70 # Datafusion - Expected - -60 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \* Int64\(6\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 * + 6 AS col0, 70 col0 FROM tab0 +---- +-282 +-594 +-60 +70 +70 +70 query I rowsort label-3677 SELECT + 36 + - COUNT ( * ) AS col1 FROM tab0 WHERE + - ( 53 ) IN ( - col0 + - + ( + + col2 ), + col2 ) @@ -22405,8 +22634,15 @@ SELECT - col1 - + + col1 FROM tab1 AS cor0 # Datafusion - Expected - 4 # Datafusion - Expected - -82 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \- tab1\.col2 AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 - + col2 col0, + 4 AS col0 FROM tab1 +---- +-21 +-54 +-82 +4 +4 +4 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - + col1 + 75 ) @@ -22638,8 +22874,11 @@ SELECT - MIN ( - 84 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- max\(DISTINCT \(\- tab2\.col0\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) col2, - MAX ( DISTINCT - col0 ) AS col2 FROM tab2 +---- +46 +NULL query I rowsort label-3728 SELECT DISTINCT ( - SUM ( DISTINCT + col2 ) ) AS col0 FROM tab1 @@ -22859,8 +23098,15 @@ SELECT * FROM tab1 cor0 WHERE NOT + 11 IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - 96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "tab1\.col0 / \(\- CAST\(CAST\(NULL AS Int32\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, col0 / + - CAST ( + ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab1 +---- +59 +68 +96 +NULL +NULL +NULL query I rowsort SELECT + 4 col0 FROM tab2 AS cor0 @@ -22897,8 +23143,15 @@ SELECT - ( + 61 ) FROM tab2 AS cor0 # Datafusion - Expected - 19 # 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\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 AS col0, 19 AS col0 FROM tab2 AS cor0 +---- +19 +19 +19 +47 +47 +47 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE + 17 IS NOT NULL @@ -23492,8 +23745,15 @@ SELECT DISTINCT + col2 / 92 * - col1 + 14 FROM tab0 # Datafusion - Expected - 46 # Datafusion - Expected - 5625 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* tab2\.col0 AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * col0 col1, 46 AS col1 FROM tab2 +---- +2116 +4096 +46 +46 +46 +5625 query I rowsort SELECT DISTINCT 49 AS col0 FROM tab0 WHERE NOT col2 IS NOT NULL @@ -23870,8 +24130,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * col1 IS NULL # Datafusion - Expected - -47 # Datafusion - Expected - 63 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ \(\- Int64\(\-3\)\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 60 + - - 3 AS col2, - col1 AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +63 +63 +63 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE col0 + - - col2 IS NULL @@ -24206,8 +24473,11 @@ SELECT + col1 - + 84 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 549 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(61\) \* count\(Int64\(45\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col2, 61 * + COUNT ( ALL + 45 ) col2 FROM tab1 cor0 CROSS JOIN tab2 cor1 +---- +549 +NULL query I rowsort SELECT DISTINCT - col1 + - - col1 AS col2 FROM tab0 @@ -24313,8 +24583,15 @@ NULL # Datafusion - Expected - -87 # Datafusion - Expected - 82 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 82 AS col2, - col0 AS col2 FROM tab0 +---- +-15 +-87 +-97 +82 +82 +82 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + - 73 IN ( - + col1 + ( + 36 ), - col0 * 87 * + - col1 ) @@ -24524,8 +24801,15 @@ SELECT - 34 FROM tab0 cor0 WHERE NOT + 25 IS NULL # Datafusion - Expected - 87 # Datafusion - Expected - -6561 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 * - col1 AS col1, col0 col1 FROM tab0 AS cor0 +---- +-1 +-441 +-6561 +15 +87 +97 query I rowsort SELECT DISTINCT ( - + col0 ) * + 3 FROM tab1 @@ -24703,8 +24987,11 @@ SELECT 75 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) / Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) / 91 AS col0 FROM tab1 cor0 +---- +-3 +NULL query I rowsort SELECT DISTINCT - 65 * - col2 FROM tab2 AS cor0 @@ -25225,8 +25512,15 @@ SELECT - 56 - + SUM ( - 30 ) col0 FROM tab0 AS cor0 # Datafusion - Expected - 81 # Datafusion - Expected - 54 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \+ Int64\(\-45\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - col2 ) + - 45 AS col2, col1 AS col2 FROM tab0 AS cor0 +---- +-35 +1 +2 +21 +54 +81 query I rowsort label-4155 SELECT + COUNT ( * ) * 57 * - COUNT ( * ) FROM tab2 @@ -25396,8 +25690,15 @@ SELECT DISTINCT - - 18 AS col2, + col2 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col1, + ( col1 ) FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query III rowsort SELECT * FROM tab0 AS cor0 WHERE + col2 * - col2 = + 84 - - col0 @@ -25563,8 +25864,15 @@ NULL # Datafusion - Expected - -21 # Datafusion - Expected - -97 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col0 AS col1, - col1 AS col1 FROM tab0 AS cor0 +---- +-1 +-15 +-21 +-81 +-87 +-97 query I rowsort label-4207 SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) = col0 @@ -25632,8 +25940,15 @@ SELECT DISTINCT + col1 * - 46, col2 AS col2 FROM tab0 # Datafusion - Expected - -40 # Datafusion - Expected - -58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + col2 ) AS col0, - col2 AS col0 FROM tab2 +---- +-23 +-23 +-40 +-40 +-58 +-58 query I rowsort SELECT col2 - - col1 * + col0 AS col1 FROM tab1 @@ -26283,8 +26598,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 64 AS col0, - COUNT ( * ) * - 18 AS col0 FROM tab1 cor0 +---- +54 +64 query I rowsort SELECT ALL col0 * - col0 col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( - col0 ) AND + 15 + - 97 @@ -26709,8 +27027,15 @@ SELECT ALL + 98 + - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 # Datafusion - Expected - 0 # Datafusion - Expected - -9398 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \+ \(\- tab0\.col0\) \* tab0\.col0 AS col2" at position 0 and "Int64\(16\) / Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 + - col0 * col0 AS col2, + 16 / + - 30 AS col2 FROM tab0 +---- +-214 +-7558 +-9398 +0 +0 +0 query I rowsort label-4401 SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 WHERE NOT 71 * - col1 BETWEEN + ( + col0 ) AND NULL @@ -26778,8 +27103,15 @@ SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE NOT - col2 + col0 IS NOT NULL # Datafusion - Expected - 30 # Datafusion - Expected - -9801 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \* \(\- \(\- tab0\.col2\)\) AS col2" at position 0 and "tab0\.col1 / tab0\.col0 \+ \(\- tab0\.col0\) \+ Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 * - - col2 AS col2, col1 / col0 + - col0 + 40 AS col2 FROM tab0 +---- +-100 +-2209 +-47 +-57 +-9801 +30 query I rowsort SELECT - - 49 + 87 AS col0 FROM tab2 AS cor0 @@ -27827,8 +28159,11 @@ SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 2 col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL IS NULL ) +---- +-2 +3 query I rowsort label-4588 SELECT ALL + + COUNT ( DISTINCT - CAST ( + 90 AS INTEGER ) ) FROM tab2 AS cor0 @@ -27865,8 +28200,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) >= - col1 + + 73 + + + col2 + - co # Datafusion - Expected - -28 # Datafusion - Expected - -91 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col1 \+ \(\- Int64\(33\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 col0, + col1 + - + 33 AS col0 FROM tab1 AS cor0 +---- +-19 +-28 +-51 +-85 +-91 +14 query I rowsort label-4594 SELECT DISTINCT + CAST ( + CAST ( + col0 AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0 @@ -28244,8 +28586,9 @@ SELECT DISTINCT col2 + - + col0 AS col0 FROM tab1 45 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 FROM tab1 WHERE col2 IN ( - + col0 ) +---- query I rowsort SELECT ALL + ( 11 ) + + - 55 * + 61 AS col0 FROM tab0 @@ -28303,8 +28646,15 @@ SELECT col2 * ( + 19 ) FROM tab1 AS cor0 # Datafusion - Expected - -3196 # Datafusion - Expected - -96 # Datafusion - Expected - -1344 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, col1 * - + col2 AS col2 FROM tab1 AS cor0 +---- +-1344 +-295 +-3196 +-59 +-68 +-96 query II rowsort SELECT DISTINCT + col0 * - + 13 AS col1, 88 FROM tab1 cor0 @@ -28617,8 +28967,15 @@ NULL # Datafusion - Expected - -67 # Datafusion - Expected - -6821 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \* \(\- cor0\.col1\) \+ Int64\(32\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 89 * - col1 + 32 AS col1, - col1 AS col1 FROM tab2 AS cor0 +---- +-4507 +-51 +-5931 +-67 +-6821 +-77 query I rowsort label-4710 SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE + 41 IS NOT NULL @@ -29351,8 +29708,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab1 +---- +3 +3 query II rowsort SELECT - col0 AS col1, 77 * - - col0 FROM tab0 @@ -29513,8 +29873,15 @@ SELECT 96 * - COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col1" at position 0 and "CAST\(NULL AS Float64\) / \(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - col1 AS col1, + CAST ( NULL AS FLOAT8 ) / - col1 AS col1 FROM tab0 +---- +-1 +-21 +-81 +NULL +NULL +NULL query I rowsort SELECT ALL 62 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 ) @@ -29546,8 +29913,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ), - COUNT ( * ) FROM tab2 cor0 WHERE NOT col0 * + 58 * + + col1 NOT IN ( - 73, + col1 + - col1 ) +---- +0 +0 query I rowsort SELECT + - 42 + + 7 AS col2 FROM tab1 AS cor0 @@ -29712,8 +30082,15 @@ NULL # Datafusion - Expected - 83 # Datafusion - Expected - 99 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, 83 AS col0 FROM tab0 +---- +10 +47 +83 +83 +83 +99 query III rowsort SELECT * FROM tab0 WHERE - - col0 * - - col0 + col0 + + ( - col2 ) + + 51 < - 91 * - 53 + col1 @@ -30123,8 +30500,15 @@ SELECT ALL + col1 + col2 * col2 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - 72 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 72 AS col2, - col0 AS col2 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +72 +72 +72 query I rowsort SELECT DISTINCT col2 + 12 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL @@ -30784,8 +31168,15 @@ SELECT - + col2, - col0 * + col1 + 49 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( col1 ) AS col1, col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT col0 - + col2 AS col0 FROM tab2 cor0 WHERE NOT + 22 IS NULL @@ -31083,8 +31474,15 @@ SELECT DISTINCT + SUM ( + 15 ) col1 FROM tab2 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 34 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 AS col1, col0 AS col1 FROM tab2 AS cor0 +---- +34 +34 +34 +46 +64 +75 query I rowsort SELECT DISTINCT + + col1 * + - 36 + - col0 + + 88 FROM tab1 AS cor0 @@ -31208,8 +31606,11 @@ SELECT ALL - 8 * col1 + col0 + 23 / + col1 AS col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -173 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \+ Int64\(\-87\) AS col0" at position 0 and "sum\(Int64\(3\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 86 + - 87 AS col0, SUM ( 3 ) AS col0 FROM tab2 +---- +-173 +9 query I rowsort SELECT + - 19 FROM tab2 WHERE - - col0 BETWEEN 24 AND NULL @@ -31754,8 +32155,15 @@ SELECT ALL 64 + - 85 AS col1 FROM tab1 # Datafusion - Expected - 5110 # Datafusion - Expected - 43 # Datafusion - Expected - 6289 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ Int64\(\-48\) AS col1" at position 0 and "tab1\.col0 \+ Int64\(10\) \+ tab1\.col0 \* tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 + + - 48 AS col1, col0 + 10 + col0 * col2 AS col1 FROM tab1 +---- +3 +37 +43 +4957 +5110 +6289 query I rowsort SELECT ALL + col0 - - + col1 AS col1 FROM tab0 @@ -32353,8 +32761,15 @@ SELECT - COUNT ( * ) / + 22 + - COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Expected - 97 # Datafusion - Expected - 440 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(44\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * + 44 col1, col0 col1 FROM tab0 AS cor0 +---- +15 +2068 +4356 +440 +87 +97 query I rowsort label-5324 SELECT ALL + COUNT ( * ) * + 47 * COUNT ( * ) FROM tab1 AS cor0 WHERE + col1 IS NOT NULL @@ -34684,8 +35099,15 @@ SELECT DISTINCT + col1 + + 35 + - CAST ( NULL AS FLOAT8 ) * + 25 FROM tab1 WHERE # Datafusion - Expected - 43 # Datafusion - Expected - 91 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, + 43 AS col1 FROM tab1 +---- +43 +43 +43 +51 +85 +91 query I rowsort SELECT ALL - - 60 AS col0 FROM tab0 WHERE NOT + col0 IS NOT NULL @@ -34936,8 +35358,15 @@ SELECT ALL - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col0 IS NOT NULL # Datafusion - Expected - 51 # Datafusion - Expected - -6 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 53 + - col2 AS col2, col0 AS col2 FROM tab1 AS cor0 +---- +-15 +-43 +-6 +51 +85 +91 query I rowsort SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE NOT + col1 IS NOT NULL @@ -34950,8 +35379,15 @@ SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE NOT + col1 IS NOT NULL # Datafusion - Expected - -7616 # Datafusion - Expected - -99 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "Int64\(79\) \+ tab0\.col1 \* Int64\(\-95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, + 79 + + col1 * - 95 AS col1 FROM tab0 +---- +-10 +-16 +-1916 +-47 +-7616 +-99 query III rowsort label-5747 SELECT ALL * FROM tab2 WHERE NOT - CAST ( - 15 AS INTEGER ) IS NOT NULL @@ -35321,8 +35757,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - ( - COUNT ( * ) ) AS col2, - 20 col2 FROM tab1 AS cor0 +---- +-20 +3 query II rowsort label-5810 SELECT ALL - 94 AS col2, 10 + MAX ( + col1 ) FROM tab2 cor0 WHERE ( NULL > 62 / 75 + + + 68 / - ( + 75 ) ) @@ -35772,8 +36211,15 @@ SELECT + 73 AS col0, - 88 FROM tab0 # Datafusion - Expected - 5625 # Datafusion - Expected - -77 # Datafusion - Expected - 4096 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "\(\- tab2\.col0\) \* \(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col1, - col0 * + - col0 AS col1 FROM tab2 +---- +-51 +-67 +-77 +2116 +4096 +5625 query I rowsort label-5881 SELECT ALL - + col2 / 45 * + col0 FROM tab2 AS cor0 @@ -36166,8 +36612,11 @@ SELECT * FROM tab1 WHERE NULL > + + ( - - col0 ) + + - ( 62 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(tab1\.col1\)\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( col1 ) AS col0, 25 AS col0 FROM tab1 +---- +-5 +25 query I rowsort label-5944 SELECT 57 / col0 + - 99 - col1 FROM tab2 @@ -36471,8 +36920,15 @@ SELECT - + ( col2 ) / col0 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 7569 # Datafusion - Expected - -97 # Datafusion - Expected - 9409 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col0 \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 col0, + col0 * col0 AS col0 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +225 +7569 +9409 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * + col2 / - - col2 <> ( col0 ) @@ -36708,8 +37164,15 @@ NULL # Datafusion - Expected - 67 # Datafusion - Expected - 5 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ Int64\(\-88\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 + - 88 col2, col1 AS col2 FROM tab2 +---- +5 +5 +5 +51 +67 +77 query III rowsort SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 21 IS NULL @@ -37454,8 +37917,15 @@ SELECT + 35 + - COUNT ( * ) * + - COUNT ( * ) + 20 FROM tab1 cor0 WHERE ( NOT NU # Datafusion - Expected - 68 # Datafusion - Expected - -1767 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* Int64\(\-57\) AS col1" at position 0 and "\(\- \(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 31 * - 57 col1, ( - - col2 ) AS col1 FROM tab1 AS cor0 +---- +-1767 +-1767 +-1767 +59 +68 +96 query I rowsort label-6162 SELECT + ( 31 ) / - col0 AS col2 FROM tab1 AS cor0 @@ -37676,8 +38146,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-67\)\)\) AS col2" at position 0 and "Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( ( - MIN ( + - 67 ) ) ) AS col2, - 33 AS col2 FROM tab2 AS cor0 +---- +-33 +67 query I rowsort label-6200 SELECT - - 6 * COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab2 cor0 @@ -38164,8 +38637,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 4 * - COUNT ( * ) AS col1, + 75 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL +---- +12 +75 query I rowsort SELECT - col0 * + - 53 AS col2 FROM tab1 @@ -38705,8 +39181,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + col1 IS NOT NULL # Datafusion - Expected - 59 # Datafusion - Expected - -91 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col1, col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL +---- +-51 +-85 +-91 +59 +68 +96 query II rowsort SELECT DISTINCT - 93 * - col2, col1 FROM tab0 @@ -39142,8 +39625,15 @@ SELECT col1 AS col2 FROM tab2 WHERE - 61 IS NULL OR NULL IS NULL # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-6436 SELECT DISTINCT MIN ( + 31 ) FROM tab1 @@ -40506,8 +40996,10 @@ SELECT 33 * - COUNT ( * ) + - - 57 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 6499cc82ab59d0e85b8829ee9435d2ef -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \+ \(\- Int64\(74\)\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 61 + - + 74 AS col2, col1 col0, + + col1 AS col2 FROM tab1 +---- +9 values hashing to 6ba2b3b98aa319087cbc64c4fa22db05 query III rowsort SELECT ALL * FROM tab1 WHERE NOT - - 85 IS NULL @@ -40601,8 +41093,15 @@ NULL # Datafusion - Expected - -25 # Datafusion - Expected - -91 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col0 AS col1, - 25 AS col1 FROM tab1 AS cor0 +---- +-25 +-25 +-25 +-51 +-85 +-91 query II rowsort SELECT - col1 * + 94 - + col0, - col1 AS col2 FROM tab2 AS cor0 @@ -41596,8 +42095,11 @@ SELECT 28 * + col1 * + col2 * - + col0 + + col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 156 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(tab0\.col2\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( col2 ) AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 +---- +156 +NULL query I rowsort label-6838 SELECT COUNT ( * ) * - 52 + + COUNT ( * ) AS col1 FROM tab0 AS cor0 @@ -42006,8 +42508,9 @@ SELECT col1, - 78 AS col0 FROM tab1 -78 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ cor0\.col2 \* cor0\.col0 AS col0" at position 0 and "Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col2 + col2 * col0 AS col0, - 90 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL +---- query I rowsort label-6903 SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) * - 87 * + - COUNT ( * ) AS col0 FROM tab0 cor0 @@ -42063,8 +42566,15 @@ SELECT DISTINCT 99 * + col1 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 34 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ Int64\(39\) / cor0\.col2 \- \(\- cor0\.col0\) \+ cor0\.col1 \+ \(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col1 / CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 + + 39 / + col2 - - col0 + + col1 + - col0 AS col1, + col1 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 +---- +100 +128 +34 +NULL +NULL +NULL query I rowsort SELECT ALL + + col2 * - - 80 FROM tab0 AS cor0 @@ -42259,8 +42769,15 @@ SELECT ALL + 86 * - + SUM ( ALL - - col0 ) FROM tab0 AS cor0 # Datafusion - Expected - 99 # Datafusion - Expected - -58 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, 99 AS col1 FROM tab2 +---- +-23 +-40 +-58 +99 +99 +99 query I rowsort SELECT DISTINCT - 83 - 78 FROM tab2 @@ -43181,8 +43698,15 @@ SELECT - - 21 col2 FROM tab2 cor0 # Datafusion - Expected - 5 # Datafusion - Expected - -91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + col0 ) AS col0, col1 AS col0 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +14 +47 +5 query I rowsort label-7098 SELECT DISTINCT - - col2 + col0 + col0 / col1 col1 FROM tab0 cor0 @@ -43406,8 +43930,15 @@ SELECT col2 FROM tab2 cor0 WHERE NOT 48 <> - + CAST ( NULL AS INTEGER ) # Datafusion - Expected - -7482 # Datafusion - Expected - -97 # Datafusion - Expected - -8342 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "tab0\.col0 \* \(\- Int64\(86\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, col0 * + - ( 86 ) AS col2 FROM tab0 +---- +-1290 +-15 +-7482 +-8342 +-87 +-97 query II rowsort SELECT + 67, + col1 FROM tab0 @@ -43848,8 +44379,15 @@ SELECT ALL COUNT ( + - col1 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -141 # Datafusion - Expected - 75 # Datafusion - Expected - -142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "\(\- tab2\.col0\) \+ \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, - col0 + - col1 AS col2 FROM tab2 +---- +-141 +-142 +-97 +46 +64 +75 query I rowsort SELECT col2 * col1 * - col2 FROM tab0 @@ -44256,8 +44794,15 @@ SELECT DISTINCT * FROM tab0 WHERE + col2 >= + col0 # Datafusion - Expected - -35 # Datafusion - Expected - 96 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "Int64\(\-35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, - 35 AS col0 FROM tab1 +---- +-35 +-35 +-35 +59 +68 +96 query I rowsort label-7264 SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL @@ -44378,8 +44923,15 @@ SELECT * FROM tab2 AS cor0 WHERE - 64 * col0 IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 \* CAST\(NULL AS Float64\) \* Int64\(46\) \* Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL + - col1 AS col1, col2 * + CAST ( NULL AS FLOAT8 ) * + 46 * + 85 AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +NULL +NULL +NULL query I rowsort SELECT DISTINCT - 59 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 @@ -45003,8 +45555,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 9 AS col2, 84 * - - COUNT ( * ) AS col2 FROM tab0 +---- +252 +9 query II rowsort SELECT 2 AS col0, - 23 FROM tab0 AS cor0 @@ -45801,8 +46356,11 @@ SELECT ALL 18 col2, COUNT ( * ) AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - -185 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT tab2\.col1\) AS col0" at position 0 and "sum\(\(\- tab2\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( DISTINCT col1 ) AS col0, SUM ( - col0 ) AS col0 FROM tab2 +---- +-185 +51 query I rowsort label-7514 SELECT + - CAST ( col0 AS INTEGER ) FROM tab2 cor0 @@ -46092,8 +46650,15 @@ SELECT 91, 25 + + 51 + - - 9 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -15 # Datafusion - Expected - 99 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col0, - col0 AS col0 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +10 +47 +99 query I rowsort label-7563 SELECT DISTINCT CAST ( + - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL @@ -46296,8 +46861,15 @@ NULL # Datafusion - Expected - 1123 # Datafusion - Expected - 81 # Datafusion - Expected - 4340 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(cor0\.col1 AS Int32\) AS Int32\) AS col2" at position 0 and "Int64\(53\) \* cor0\.col1 \- \(\- CAST\(cor0\.col2 AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( CAST ( + ( col1 ) AS INTEGER ) AS INTEGER ) AS col2, 53 * col1 - - CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0 +---- +1 +1123 +152 +21 +4340 +81 query I rowsort label-7598 SELECT - MIN ( DISTINCT - + 36 ) AS col2 FROM tab2 AS cor0 @@ -47083,8 +47655,15 @@ NULL # Datafusion - Expected - 132 # Datafusion - Expected - -58 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(58\)\) AS col2" at position 0 and "Int64\(36\) \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 58 AS col2, + 36 + col2 AS col2 FROM tab1 AS cor0 +---- +-58 +-58 +-58 +104 +132 +95 query I rowsort SELECT ( ( - + 92 ) ) AS col0 FROM tab0 WHERE NOT NULL IS NULL @@ -48024,8 +48603,15 @@ SELECT ALL + - col1 + - col2 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -21 # Datafusion - Expected - -96 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col0" at position 0 and "\(\- \(\- Int64\(\-21\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 col0, - ( - - 21 ) AS col0 FROM tab1 +---- +-21 +-21 +-21 +-59 +-68 +-96 query I rowsort SELECT DISTINCT ( - + ( + 7 ) ) col1 FROM tab0 @@ -49095,8 +49681,15 @@ SELECT + 22 AS col1, - col1 AS col2 FROM tab0 # Datafusion - Expected - 10 # Datafusion - Expected - 81 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, + col2 AS col0 FROM tab0 +---- +1 +10 +21 +47 +81 +99 query I rowsort label-8067 SELECT ALL CAST ( NULL AS INTEGER ) / - COUNT ( * ) FROM tab0 @@ -49963,8 +50556,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT ( + 12 ) * - - 22 AS col0, + COUNT ( * ) + - 11 + - + 53 * - COUNT ( DISTINCT + ( + 8 ) ) AS col0 FROM tab0 AS cor0 +---- +264 +45 query I rowsort label-8210 SELECT ALL + 87 + - - COUNT ( * ) AS col0 FROM tab2 AS cor0 @@ -50870,8 +51466,10 @@ SELECT col2 * - col1 + + 34 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 0bec463e1dc0d5c3f26af62b76285f88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-56\)\) \* \(\- cor0\.col2\) AS col2" at position 0 and "\(\- Int64\(57\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - - 56 * - col2 AS col2, 46, - ( + 57 ) AS col2 FROM tab2 AS cor0 +---- +9 values hashing to 02caea3e76daa9cf2c78d9f0270e78c3 query I rowsort SELECT + 75 + col1 AS col0 FROM tab0 cor0 @@ -51682,8 +52280,15 @@ SELECT ALL SUM ( DISTINCT - 70 ) col1 FROM tab2 cor0 # Datafusion - Expected - -59 # Datafusion - Expected - -91 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, - col2 AS col2 FROM tab1 AS cor0 +---- +-51 +-59 +-68 +-85 +-91 +-96 query I rowsort label-8497 SELECT ALL + COUNT ( + + col1 ) AS col2 FROM tab1 AS cor0 @@ -52417,8 +53022,11 @@ SELECT ALL * FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN - + col0 AND col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 6 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +-6 +3 query I rowsort SELECT ALL + 94 + - 49 FROM tab0 AS cor0 @@ -52965,8 +53573,15 @@ SELECT COUNT ( * ) * MAX ( + - 54 ) FROM tab0 # Datafusion - Expected - 77 # Datafusion - Expected - -58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + - col2 ) AS col2, col1 AS col2 FROM tab2 +---- +-23 +-40 +-58 +51 +67 +77 query I rowsort label-8708 SELECT SUM ( ALL + 13 ) AS col1 FROM tab0 @@ -53296,8 +53911,15 @@ SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col1 * - col2 * + - # Datafusion - Expected - 40 # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col0, col2 AS col0 FROM tab2 AS cor0 +---- +23 +40 +58 +NULL +NULL +NULL query III rowsort SELECT ALL * FROM tab1 cor0 WHERE ( - 35 < NULL ) @@ -54296,8 +54918,15 @@ SELECT ALL - col0 - 20 + + 87 AS col1 FROM tab1 AS cor0 WHERE + 39 IN ( - 5 ) # Datafusion - Expected - -5 # Datafusion - Expected - 82 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col2 AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 + + + col2 AS col2, - col1 AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +21 +54 +82 query I rowsort label-8933 SELECT ALL + col1 + + col2 * - - CAST ( NULL AS INTEGER ) + - 21 FROM tab0 AS cor0 @@ -57497,8 +58126,15 @@ SELECT + col2 - - 43 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 58 # Datafusion - Expected - 45 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ Int64\(96\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 + + 96 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +19 +23 +29 +40 +45 +58 query I rowsort SELECT ALL - 92 * - - 44 AS col1 FROM tab2 @@ -57521,8 +58157,15 @@ SELECT + 23 * + 94 AS col1 FROM tab0 # Datafusion - Expected - -13 # Datafusion - Expected - 58 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "Int64\(51\) \+ \(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, 51 + + - col0 AS col0 FROM tab2 +---- +-13 +-24 +23 +40 +5 +58 query I rowsort SELECT + + 77 FROM tab1 WHERE NOT - 50 IS NULL diff --git a/data/sqlite/random/aggregates/slt_good_101.slt b/data/sqlite/random/aggregates/slt_good_101.slt index 4bf615e..a235932 100644 --- a/data/sqlite/random/aggregates/slt_good_101.slt +++ b/data/sqlite/random/aggregates/slt_good_101.slt @@ -93,8 +93,15 @@ SELECT - col0 AS col1 FROM tab2 WHERE NOT - - CAST ( + 69 AS INTEGER ) * - col0 # Datafusion - Expected - 5329 # Datafusion - Expected - 8 # Datafusion - Expected - 5710 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "tab1\.col2 \+ \(\- tab1\.col0\) \* Int64\(\-62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 AS col0, + col2 + - col0 * - 62 AS col0 FROM tab1 +---- +3258 +5329 +5710 +8 +8 +8 query III rowsort SELECT * FROM tab2 WHERE NOT NULL <= col2 + - col0 @@ -245,8 +252,15 @@ SELECT DISTINCT - COUNT ( ALL - CAST ( - + col0 AS INTEGER ) ) / - - 8 AS col2 F # Datafusion - Expected - 91 # Datafusion - Expected - 5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- \(\- cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, ( - - col0 ) AS col2 FROM tab1 AS cor0 +---- +14 +47 +5 +51 +85 +91 query I rowsort SELECT - col2 * col2 - col1 AS col2 FROM tab2 AS cor0 @@ -661,8 +675,11 @@ SELECT - COUNT ( * ) * COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38106 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(\-73\) \* Int64\(87\) AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 6 * + - 73 * 87 col1, + 90 AS col1 FROM tab0 +---- +-38106 +90 query I rowsort label-100 SELECT DISTINCT col1 FROM tab2 WHERE NOT - CAST ( col2 AS INTEGER ) IS NULL @@ -1728,8 +1745,11 @@ SELECT + 71, - col2 AS col0 FROM tab1 # 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 "max\(\(\- Int64\(45\)\)\) AS col2" at position 0 and "Int64\(\-23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( - ( + 45 ) ) AS col2, - 23 AS col2 FROM tab2 +---- +-23 +-45 query I rowsort SELECT DISTINCT - ( - 91 ) FROM tab0 cor0 WHERE NOT + 60 * - 20 IS NULL @@ -1757,8 +1777,15 @@ SELECT * FROM tab1 AS cor0 WHERE + col2 BETWEEN NULL AND NULL # Datafusion - Expected - -67 # Datafusion - Expected - 77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col2, - col1 AS col2 FROM tab2 cor0 +---- +-51 +-67 +-77 +51 +67 +77 query I rowsort SELECT ALL + ( col1 ) * + 32 * + + col0 + + ( col2 ) + col0 AS col1 FROM tab0 cor0 @@ -1791,8 +1818,15 @@ SELECT ALL - col0 * + col0 AS col2, 45 / + 5 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -5905 # Datafusion - Expected - 74 # Datafusion - Expected - -4516 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col2 AS col2" at position 0 and "cor0\.col2 \+ cor0\.col1 \* Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 + col2 col2, + col2 + + col1 * - 89 AS col2 FROM tab2 AS cor0 +---- +-4516 +-5905 +-6813 +117 +125 +74 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 95 IS NOT NULL @@ -2224,8 +2258,15 @@ SELECT DISTINCT - 40 + + col0 FROM tab2 AS cor0 # Datafusion - Expected - 90 # Datafusion - Expected - -82 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ cor0\.col1 AS col2" at position 0 and "Int64\(5\) \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 + + col1 AS col2, + 5 + col0 AS col2 FROM tab1 AS cor0 +---- +-21 +-54 +-82 +56 +90 +96 query I rowsort label-357 SELECT DISTINCT + col0 * col1 / - + col2 AS col1 FROM tab0 AS cor0 @@ -3078,8 +3119,15 @@ SELECT col1 * - 13, + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - -87 # Datafusion - Expected - -97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col0, - col0 FROM tab0 AS cor0 +---- +-15 +-15 +-87 +-87 +-97 +-97 query I rowsort SELECT ALL + + 78 AS col1 FROM tab2 cor0 @@ -3128,8 +3176,15 @@ SELECT DISTINCT + + COUNT ( * ) / + + 81 * + - SUM ( ALL + ( + 10 ) ) FROM tab0 # Datafusion - Expected - 1 # Datafusion - Expected - -711 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \* cor0\.col2 \+ \(\- cor0\.col1\) \- \(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 * + + col2 + + - col1 - - col2 AS col0, col1 AS col0 FROM tab0 AS cor0 +---- +-3324 +-6832 +-711 +1 +21 +81 query I rowsort SELECT DISTINCT ( + + ( col1 ) ) AS col0 FROM tab2 AS cor0 @@ -3431,8 +3486,15 @@ SELECT ALL MAX ( ( - 67 ) ) AS col2 FROM tab1 # Datafusion - Expected - 98 # Datafusion - Expected - -96 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, 98 col2 FROM tab1 +---- +-59 +-68 +-96 +98 +98 +98 query I rowsort SELECT col0 * + col0 * 0 FROM tab0 @@ -3761,8 +3823,11 @@ SELECT DISTINCT + col2 * - col2 AS col1, col0 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, 14 AS col2 FROM tab2 +---- +14 +3 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -4905,8 +4970,15 @@ SELECT DISTINCT - col0 AS col2, col2 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -2680 # Datafusion - Expected - -77 # Datafusion - Expected - -3080 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col1\) \* Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col1, - col1 * + 40 AS col1 FROM tab2 cor0 +---- +-2040 +-2680 +-3080 +-51 +-67 +-77 query II rowsort SELECT 62 * - col1, - 85 AS col1 FROM tab2 WHERE NOT - col0 IS NOT NULL @@ -5165,8 +5237,11 @@ SELECT ALL + - col2 * - - col1 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 282 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \+ \(\- sum\(\(\- cor0\.col1\)\)\) AS col1" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* max\(\(\- Int64\(\-12\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 87 + - SUM ( - col1 ) col1, CAST ( ( + + COUNT ( * ) ) AS INTEGER ) * MAX ( - - 12 ) AS col1 FROM tab2 AS cor0 +---- +282 +36 query I rowsort label-846 SELECT - MIN ( DISTINCT - col0 ) * MAX ( ALL 86 ) - - 14 AS col1 FROM tab0 AS cor0 @@ -5733,8 +5808,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( 84 ) * - col0 / + col2 = ( + col1 # Datafusion - Expected - 53 # Datafusion - Expected - 97 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* tab0\.col0 AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + col0 AS col2, 53 AS col2 FROM tab0 +---- +1215 +1827 +53 +53 +53 +97 query I rowsort SELECT DISTINCT col1 + col2 + + col0 AS col1 FROM tab0 AS cor0 @@ -5755,8 +5837,15 @@ SELECT ALL + + COUNT ( * ) * + 79 + + - 33 + + ( 75 ) FROM tab1 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT DISTINCT - col0 * 71 * + 52 * + - 40 + - col2 + - 1 col0 FROM tab2 cor0 @@ -5899,8 +5988,15 @@ SELECT ALL - 4 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 66 # Datafusion - Expected - 4374 # Datafusion - Expected - 14 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col2" at position 0 and "\(\- cor0\.col1\) \* Int64\(\-54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 14 AS col2, - col1 * + - 54 AS col2 FROM tab0 AS cor0 +---- +1134 +14 +14 +14 +4374 +54 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < - ( 95 ) + 5 @@ -6226,8 +6322,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) AS col0, - 91 AS col0 FROM tab0 cor0 +---- +-6 +-91 query I rowsort SELECT ALL + ( + 87 ) AS col1 FROM tab1 @@ -6783,8 +6882,15 @@ SELECT + 18 * col2 / 97 / + + 34 FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, col1 AS col0 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT - 85 * - col0 AS col0 FROM tab2 @@ -7817,8 +7923,15 @@ SELECT 75 + - ( ( - + COUNT ( * ) ) ) AS col1 FROM tab1 # Datafusion - Expected - -64 # Datafusion - Expected - -5513 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ tab2\.col0 \+ \(\- tab2\.col0\) \* tab2\.col0 \+ Int64\(\-5\) AS col2" at position 0 and "\(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 42 + col0 + ( - col0 ) * + col0 + + - 5 AS col2, - col0 col2 FROM tab2 +---- +-2033 +-3995 +-46 +-5513 +-64 +-75 query I rowsort label-1272 SELECT ALL SUM ( - ( + - col0 ) ) FROM tab1 @@ -8276,8 +8389,15 @@ SELECT DISTINCT - + col1 + + col1 + - col0 + col1 * + + col0 AS col0 FROM tab1 A # Datafusion - Expected - -1 # Datafusion - Expected - -5 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "\(\- cor0\.col0\) / cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col2, - col0 / col0 AS col2 FROM tab1 AS cor0 +---- +-1 +-1 +-1 +-14 +-47 +-5 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -8412,8 +8532,15 @@ SELECT DISTINCT * FROM tab2 WHERE + - col1 <= - - col1 # Datafusion - Expected - -202500 # Datafusion - Expected - 18 # Datafusion - Expected - -76176 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col2" at position 0 and "tab2\.col0 \* \(\- tab2\.col0\) \* \(\- \(\- Int64\(36\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 AS col2, col0 * - col0 * - - ( + 36 ) col2 FROM tab2 +---- +-147456 +-202500 +-76176 +18 +18 +18 query I rowsort label-1364 SELECT DISTINCT + COUNT ( * ) * + - 25 AS col0 FROM tab1 @@ -9013,8 +9140,15 @@ SELECT - + col0 * - col0 col0, col0 / - + ( + + 30 ) FROM tab2 AS cor0 # Datafusion - Expected - 30 # Datafusion - Expected - 81 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, 30 AS col2 FROM tab0 +---- +1 +21 +30 +30 +30 +81 query I rowsort SELECT - 45 + + 87 + 13 - - 2 AS col1 FROM tab2 @@ -9816,8 +9950,15 @@ SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( ( 0 ) ) AND NULL # Datafusion - Expected - -92 # Datafusion - Expected - 98 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 98 AS col0, - 92 AS col0 FROM tab0 AS cor0 +---- +-92 +-92 +-92 +98 +98 +98 query I rowsort SELECT DISTINCT - + col0 + - 58 FROM tab0 AS cor0 @@ -10007,8 +10148,15 @@ SELECT ALL 62 / + 36 FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, col2 col1 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT col0 FROM tab0 WHERE NOT ( - - 91 ) NOT IN ( col1 ) @@ -10059,8 +10207,15 @@ SELECT ALL + - 35 + + + ( + - col1 ) + + ( ( CAST ( col1 AS INTEGER ) ) ) FROM t # Datafusion - Expected - 290 # Datafusion - Expected - -82 # Datafusion - Expected - 3149 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col0" at position 0 and "\(\- cor0\.col1\) \- \(\- cor0\.col1\) \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 82 ) AS col0, - col1 - - + col1 * + col2 AS col0 FROM tab1 AS cor0 +---- +-82 +-82 +-82 +1330 +290 +3149 query I rowsort SELECT ALL + col2 - - ( + col0 ) - - col1 FROM tab0 AS cor0 @@ -10846,8 +11001,15 @@ SELECT ALL - - ( - 83 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 76 # Datafusion - Expected - -33 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col0" at position 0 and "Int64\(19\) \* Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 33 AS col0, 19 * 4 AS col0 FROM tab2 AS cor0 +---- +-33 +-33 +-33 +76 +76 +76 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + 10 + - - col0 * - col0 ) @@ -11182,8 +11344,15 @@ SELECT + 13 * + + col2 AS col2 FROM tab0 # Datafusion - Expected - 0 # Datafusion - Expected - 77 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, - 0 AS col2 FROM tab2 +---- +0 +0 +0 +51 +67 +77 query I rowsort label-1826 SELECT - 53 * + ( - COUNT ( * ) ) * + COUNT ( * ) FROM tab1 AS cor0 @@ -11315,8 +11484,15 @@ SELECT col2 * + - col1 + + + 64 + - col1 FROM tab2 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - -57 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \- \(\- \(\- tab2\.col0\)\) AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 18 - - - col0 AS col1, - col2 AS col1 FROM tab2 +---- +-23 +-28 +-40 +-46 +-57 +-58 query II rowsort label-1847 SELECT + - COUNT ( * ) AS col0, 19 AS col2 FROM tab1 AS cor0 @@ -11365,8 +11541,15 @@ SELECT + col0 * - col0 + - 44 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 45 # Datafusion - Expected - 91 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col1 \+ Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, + col1 + 40 AS col2 FROM tab1 AS cor0 +---- +45 +51 +54 +85 +87 +91 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND - + 60 @@ -11510,8 +11693,15 @@ SELECT ALL - 90 - + col0 AS col0 FROM tab1 # Datafusion - Expected - 38 # Datafusion - Expected - NULL # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* \(\- CAST\(NULL AS Float64\)\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT 8 * + - CAST ( NULL AS FLOAT8 ) AS col1, 38 AS col1 FROM tab0 +---- +38 +38 +38 +NULL +NULL +NULL query I rowsort SELECT + 23 - - ( - - ( + + 30 ) ) FROM tab2 AS cor0 @@ -11623,8 +11813,15 @@ SELECT * FROM tab2 AS cor0 WHERE + col0 BETWEEN - col1 AND NULL # Datafusion - Expected - 47 # Datafusion - Expected - -5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, col1 AS col0 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL +---- +-14 +-47 +-5 +14 +47 +5 query I rowsort SELECT - ( 91 ) AS col1 FROM tab2 AS cor0 @@ -11844,8 +12041,12 @@ SELECT 44 FROM tab2 WHERE - + 6 = - col0 # Datafusion - Expected - 3 # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) AS col1, COUNT ( * ) AS col0 FROM tab2 +---- +3 +3 +3 query I rowsort label-1931 SELECT DISTINCT + - 78 * - col1 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 @@ -12024,8 +12225,15 @@ SELECT ALL 24 + col2 * 22 + + 48 + col1 AS col0 FROM tab0 # Datafusion - Expected - 0 # Datafusion - Expected - 53 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ tab0\.col1 AS col2" at position 0 and "\(\- tab0\.col2\) \+ \(\- Int64\(\-99\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 32 + + col1 AS col2, - col2 + - - 99 AS col2 FROM tab0 +---- +0 +113 +33 +52 +53 +89 query I rowsort label-1959 SELECT DISTINCT col1 / - ( - col0 ) FROM tab0 AS cor0 @@ -13750,8 +13958,15 @@ SELECT DISTINCT col1 * + + col2 + + 5 col0 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 20 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "\(\- cor0\.col0\) \* \(\- CAST\(NULL AS Int32\)\) \+ \(\- cor0\.col1\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 20 AS col1, - col0 * - ( + CAST ( NULL AS INTEGER ) ) + + - col1 * + col0 AS col1 FROM tab2 AS cor0 +---- +20 +20 +20 +NULL +NULL +NULL query I rowsort SELECT ALL + col1 * 60 + - - 61 AS col2 FROM tab2 AS cor0 @@ -14800,8 +15015,11 @@ SELECT + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( col2 IS NOT NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -13110 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(95\)\) \* \(\- Int64\(\-46\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) * - + 95 * - - 46 AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +-13110 +3 query I rowsort SELECT ALL - - 60 + + 62 * col1 - - col1 * + col2 AS col0 FROM tab0 AS cor0 @@ -15090,8 +15308,11 @@ SELECT + - COUNT ( + 31 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -4554 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "Int64\(46\) \* \(\- max\(cor0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 74 AS col2, 46 * - MAX ( ALL col2 ) AS col2 FROM tab0 AS cor0 +---- +-4554 +74 query I rowsort label-2468 SELECT - col0 - col0 / + 43 AS col2 FROM tab1 @@ -15705,8 +15926,15 @@ SELECT - + col2 + - - 34 * + - col0 - - - col2 FROM tab2 AS cor0 # Datafusion - Expected - 143 # Datafusion - Expected - -33 # Datafusion - Expected - 197 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \- Int64\(33\) \- tab0\.col0 AS col1" at position 0 and "tab0\.col2 \+ tab0\.col0 \+ tab0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 - 33 - col0 AS col1, col2 + + col0 + col1 AS col1 FROM tab0 +---- +-33 +-33 +-33 +118 +143 +197 query I rowsort SELECT ALL 6 - - col2 FROM tab1 @@ -15931,8 +16159,15 @@ SELECT - CAST ( + col2 AS INTEGER ) / col1 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 AS col1, + col2 AS col1 FROM tab2 AS cor0 +---- +23 +40 +46 +58 +64 +75 query I rowsort SELECT DISTINCT - col1 * - + col1 * col2 FROM tab1 AS cor0 @@ -16506,8 +16741,9 @@ SELECT * FROM tab1 cor0 WHERE ( NULL ) BETWEEN - 73 AND NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / Int64\(\-20\) \* cor0\.col2 AS col0" at position 0 and "Int64\(88\) / \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 / + - 20 * + col2 AS col0, 88 / - col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) = + 64 +---- query I rowsort SELECT + col0 + - col0 * + col2 FROM tab2 AS cor0 WHERE NULL IN ( col2, 45 * - - col2, + - col1 + - + col2, - col2 ) @@ -16967,8 +17203,11 @@ SELECT + 52 * - - col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 AS col0, CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab2 +---- +-48 +NULL query I rowsort SELECT DISTINCT col0 * + 79 * + + ( - - col0 ) * + + col2 FROM tab1 @@ -17388,8 +17627,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, - COUNT ( * ) * + MAX ( DISTINCT + + 58 ) AS col0 FROM tab1 +---- +-174 +-3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 @@ -17398,8 +17640,15 @@ SELECT DISTINCT - COUNT ( * ) AS col0, - COUNT ( * ) * + MAX ( DISTINCT + + 58 ) # Datafusion - Expected - -67 # Datafusion - Expected - -77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\)" at position 0 and "\(\- tab2\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1, - col1 FROM tab2 +---- +-51 +-51 +-67 +-67 +-77 +-77 query II rowsort SELECT ALL - col0 AS col1, + col2 AS col2 FROM tab2 @@ -18160,8 +18409,11 @@ SELECT - col1 * col1 * + col0 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) / Int64\(\-43\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 58 / - 43 col1, + COUNT ( * ) col1 FROM tab1 +---- +1 +3 query I rowsort SELECT - 35 * col1 - - - 32 AS col0 FROM tab0 @@ -18852,8 +19104,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(55\) \+ \(\- Int64\(11\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, 55 + ( - + 11 ) AS col2 FROM tab2 +---- +3 +44 query II rowsort label-3089 SELECT + 97, + col0 - - - CAST ( - col2 AS INTEGER ) + - col2 + - - 87 * col2 AS col1 FROM tab1 @@ -18891,8 +19146,15 @@ SELECT - col1 / - col2 + + - col2, + 93 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -45 # Datafusion - Expected - -10 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col1" at position 0 and "\(\- cor0\.col1\) \+ Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 10 col1, - col1 + + + 22 AS col1 FROM tab2 cor0 +---- +-10 +-10 +-10 +-29 +-45 +-55 query I rowsort label-3094 SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - 42 = NULL @@ -19048,8 +19310,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE col2 = + 21 # Datafusion - Expected - -8 # Datafusion - Expected - -71 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ Int64\(\-76\) AS col1" at position 0 and "Int64\(\-8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 + - 76 AS col1, - 8 AS col1 FROM tab1 +---- +-29 +-62 +-71 +-8 +-8 +-8 query I rowsort SELECT ALL - 85 col1 FROM tab0 WHERE - 16 * - - 80 IS NULL @@ -19517,8 +19786,15 @@ SELECT - - MIN ( col0 ) / COUNT ( * ) FROM tab0 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 1 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / Int64\(53\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 / + 53 AS col2, col0 AS col2 FROM tab2 AS cor0 +---- +0 +1 +1 +46 +64 +75 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -19585,8 +19861,15 @@ SELECT ALL + - MAX ( ALL + 22 ) + + 62 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 760 # Datafusion - Expected - 58 # Datafusion - Expected - 1102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 \* Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, col2 * 19 AS col0 FROM tab2 AS cor0 +---- +1102 +23 +40 +437 +58 +760 query I rowsort SELECT - - 48 FROM tab0 AS cor0 WHERE + 77 * + col1 IS NULL @@ -19640,8 +19923,11 @@ SELECT DISTINCT - col1 * - 83 * + ( - col1 ) AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- \(\- tab2\.col0\)\)\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-10\) \+ Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MIN ( - - col0 ) AS col2, ( - CAST ( NULL AS INTEGER ) ) * + - 10 + - 79 AS col2 FROM tab2 +---- +-46 +NULL query III rowsort SELECT ALL * FROM tab1 WHERE NOT + col1 * - col1 IS NOT NULL @@ -19870,8 +20156,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col2 + - - ( + 42 ) NOT BETWEE # Datafusion - Expected - 72 # Datafusion - Expected - -81 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col1\) AS Int32\) AS col2" at position 0 and "Int64\(93\) \- cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - col1 AS INTEGER ) AS col2, 93 - + + col1 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +12 +72 +92 query I rowsort SELECT - ( + 47 ) * - col0 FROM tab2 cor0 @@ -19944,8 +20237,15 @@ SELECT DISTINCT + col2 + + - col2 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -170 # Datafusion - Expected - -6157 # Datafusion - Expected - -182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col2 \- \(\- cor0\.col0\) \+ Int64\(23\) \+ Int64\(\-83\) AS col0" at position 0 and "\(\- cor0\.col0\) \+ \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col0 * + col2 - - col0 + 23 + - 83 AS col0, - col0 + + - col0 col0 FROM tab1 AS cor0 +---- +-102 +-170 +-182 +-4905 +-4990 +-6157 query I rowsort SELECT col2 AS col2 FROM tab0 AS cor0 WHERE - col1 <= + col1 * + col2 + - - 28 @@ -20977,8 +21277,11 @@ SELECT - col0 * + col1 + - - ( + col1 ) + - 41 AS col1 FROM tab0 AS cor0 WHERE c # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-59\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 59 AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +3 +NULL query I rowsort label-3440 SELECT DISTINCT - 97 + - CAST ( NULL AS INTEGER ) + col2 * - 4 AS col2 FROM tab1 cor0 @@ -21077,8 +21380,11 @@ SELECT ALL + MIN ( + col0 ) AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1500 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(50\)\) \* Int64\(30\) 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 II valuesort SELECT - + 50 * 30 AS col1, - MIN ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0 +---- +-1500 +91 query III rowsort SELECT * FROM tab0 cor0 WHERE NOT ( ( 82 ) ) IS NOT NULL @@ -21098,8 +21404,15 @@ SELECT + + 69 col0 FROM tab2 AS cor0 # Datafusion - Expected - 62 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* CAST\(NULL AS Int32\) AS col1" at position 0 and "tab0\.col2 \- \(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * ( + CAST ( NULL AS INTEGER ) ) AS col1, col2 - - + col0 AS col1 FROM tab0 +---- +196 +62 +97 +NULL +NULL +NULL query I rowsort label-3460 SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE - - 20 NOT BETWEEN NULL AND NULL @@ -21120,8 +21433,15 @@ SELECT ALL 96 + ( col2 ) * + - 59 FROM tab2 WHERE - col0 IS NOT NULL # Datafusion - Expected - 81 # Datafusion - Expected - 5 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col0, 81 AS col0 FROM tab1 WHERE ( NULL ) IS NULL +---- +14 +47 +5 +81 +81 +81 query I rowsort label-3463 SELECT ALL col1 / - col1 + 45 col0 FROM tab2 @@ -21967,8 +22287,15 @@ SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL = ( NULL ) # Datafusion - Expected - 21 # Datafusion - Expected - 1 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) / cor0\.col0 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 21 / col0 AS col2, col1 AS col2 FROM tab0 AS cor0 +---- +0 +0 +1 +1 +21 +81 query I rowsort SELECT - - ( + - col0 ) * - col2 AS col2 FROM tab0 AS cor0 @@ -21994,8 +22321,11 @@ SELECT ALL col0 AS col0 FROM tab1 WHERE - - col1 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, COUNT ( * ) col2 FROM tab2 +---- +3 +3 query I rowsort label-3606 SELECT DISTINCT MIN ( DISTINCT + - col1 ) FROM tab2 @@ -22021,8 +22351,15 @@ SELECT - ( 32 ) AS col2 FROM tab2 # Datafusion - Expected - -85 # Datafusion - Expected - 91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "\(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, - col0 AS col2 FROM tab1 +---- +-51 +-85 +-91 +51 +85 +91 query I rowsort SELECT + 46 * col0 col1 FROM tab2 AS cor0 @@ -22408,8 +22745,11 @@ SELECT DISTINCT MAX ( - - col1 ) AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 95 AS col0, + COUNT ( * ) AS col0 FROM tab1 +---- +-95 +3 query II rowsort label-3673 SELECT ( CAST ( NULL AS INTEGER ) ), + col0 AS col0 FROM tab1 @@ -22961,8 +23301,15 @@ SELECT ALL + - 6 AS col1 FROM tab1 cor0 # Datafusion - Expected - -77 # Datafusion - Expected - -75 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, - col1 AS col2 FROM tab2 AS cor0 +---- +-46 +-51 +-64 +-67 +-75 +-77 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -23791,8 +24138,9 @@ SELECT ALL - 29 * - ( - + MIN ( - ( - col0 ) ) ) + - ( 8 ) FROM tab0 -443 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col0 AS Int32\) AS col1" at position 0 and "Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( col0 AS INTEGER ) AS col1, + 4 AS col1 FROM tab0 AS cor0 WHERE NULL <> NULL +---- # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 @@ -23801,8 +24149,15 @@ SELECT CAST ( col0 AS INTEGER ) AS col1, + 4 AS col1 FROM tab0 AS cor0 WHERE NUL # Datafusion - Expected - 2 # Datafusion - Expected - 77 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col0 / Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, + col0 / 28 AS col0 FROM tab2 cor0 +---- +1 +2 +2 +51 +67 +77 query I rowsort label-3899 SELECT ALL 90 * - + 26 * 29 * + - COUNT ( * ) col2 FROM tab1 cor0 WHERE ( - col2 IN ( - col2 ) ) @@ -24661,8 +25016,15 @@ SELECT - ( - 20 ) * + + ( - MIN ( - + col1 ) ) FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - -81 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col2, 68 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +68 +68 +68 query II rowsort SELECT + 71 AS col2, - 94 AS col1 FROM tab2 AS cor0 @@ -24744,8 +25106,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 + COUNT ( ALL col1 ) AS col1, 61 * + - COUNT ( * ) AS col1 FROM tab0 +---- +-183 +27 query I rowsort label-4054 SELECT + - COUNT ( * ) FROM tab1 WHERE NULL IS NOT NULL @@ -25137,8 +25502,15 @@ SELECT DISTINCT + col0 AS col2, 18 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -27 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(27\)\) AS col2" at position 0 and "cor0\.col2 \+ \(\- cor0\.col2\) \+ CAST\(NULL AS Int32\) \+ cor0\.col2 / \(\- cor0\.col0\) \+ cor0\.col0 \+ Int64\(\-32\) \* cor0\.col1 \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 27 AS col2, + col2 + - col2 + + CAST ( NULL AS INTEGER ) + col2 / + - col0 + + col0 + - 32 * + + col1 * - col2 AS col2 FROM tab2 AS cor0 +---- +-27 +-27 +-27 +NULL +NULL +NULL query I rowsort label-4116 SELECT - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 3 * - 68 IS NOT NULL @@ -25581,8 +25953,15 @@ SELECT DISTINCT col1 + + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NU # Datafusion - Expected - 64 # Datafusion - Expected - 92 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 92 AS col1, + col0 AS col1 FROM tab2 AS cor0 +---- +46 +64 +75 +92 +92 +92 query I rowsort SELECT DISTINCT col0 * + ( + + col0 ) FROM tab2 AS cor0 @@ -27290,8 +27669,15 @@ SELECT 0 * COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "\(\- tab0\.col0\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col2, + ( - col0 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 +---- +15 +87 +97 +NULL +NULL +NULL query I rowsort SELECT col2 + + 86 + + ( + ( - + 68 ) ) * + col0 AS col1 FROM tab2 AS cor0 @@ -27573,8 +27959,15 @@ SELECT ALL 54 * col2 col1 FROM tab0 # Datafusion - Expected - -28 # Datafusion - Expected - -99 # Datafusion - Expected - -110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* \(\- tab0\.col2\) AS col0" at position 0 and "\(\- tab0\.col0\) \+ Int64\(\-13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * - col2 AS col0, - col0 + - 13 AS col0 FROM tab0 +---- +-100 +-110 +-210 +-28 +-3807 +-99 query I rowsort label-4520 SELECT 18 + - + COUNT ( * ) AS col1 FROM tab2 @@ -27830,8 +28223,15 @@ SELECT + + 76 + - 22 FROM tab0 AS cor0 # Datafusion - Expected - 97 # Datafusion - Expected - 887 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* \(\- cor0\.col1\) \+ cor0\.col1 \* Int64\(52\) \+ cor0\.col2 AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 41 * - col1 + col1 * 52 + + col2 col1, + 97 AS col1 FROM tab2 cor0 +---- +584 +795 +887 +97 +97 +97 query I rowsort SELECT DISTINCT ( col2 ) + + + col2 + 21 * col1 AS col1 FROM tab1 @@ -28148,8 +28548,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col1, + COUNT ( + col1 ) AS col1 FROM tab2 AS cor0 +---- +-3 +3 query I rowsort SELECT - col1 + - + col2 + - - 85 FROM tab1 AS cor0 @@ -29563,8 +29966,15 @@ NULL # Datafusion - Expected - 15 # Datafusion - Expected - -99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, col0 col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +15 +87 +97 query I rowsort label-4851 SELECT DISTINCT COUNT ( + 34 ) AS col2 FROM tab1 AS cor0 @@ -30178,8 +30588,9 @@ SELECT DISTINCT ( col1 ) * + - 7 FROM tab0 -7 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, + col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col1 AND NULL +---- query I rowsort label-4952 SELECT col2 + + - ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 @@ -31021,7 +31432,7 @@ SELECT + 58 * - 19 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 3be86dc464a5c89d380f3c06631850e2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* Int64\(33\) \+ cor0\.col0 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: Schema error: Schema contains qualified field name cor0\.col0 and unqualified field name col0 which would be ambiguous SELECT + 43 * 33 + + col0 AS col0, 68 AS col0, col0 AS col0 FROM tab0 cor0 query I rowsort label-5084 @@ -31486,8 +31897,11 @@ SELECT ( + col1 ), + col0 * + - ( - col2 ) * - + col0 + col1 * + 39 AS col2 FROM # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(cor0\.col2\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( col2 ) AS col0, 90 AS col0 FROM tab0 AS cor0 +---- +10 +90 query I rowsort label-5161 SELECT DISTINCT + 1 - - 41 + - - COUNT ( * ) AS col2 FROM tab2 AS cor0 @@ -31869,8 +32283,15 @@ SELECT * FROM tab2 WHERE - 7 + + col1 NOT IN ( - col2 ) # Datafusion - Expected - -47 # Datafusion - Expected - -96 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - col2 ) col1, - col1 AS col1 FROM tab1 +---- +-14 +-47 +-5 +-59 +-68 +-96 query I rowsort SELECT DISTINCT ( + col1 ) FROM tab0 WHERE NOT NULL IS NULL @@ -31956,8 +32377,15 @@ SELECT ALL - 12 FROM tab1 cor0 CROSS JOIN tab2 cor1 # Datafusion - Expected - 315 # Datafusion - Expected - 93 # Datafusion - Expected - 882 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "\(\- tab1\.col1\) \* \(\- Int64\(63\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 AS col1, - col1 * - + 63 AS col1 FROM tab1 +---- +2961 +315 +882 +93 +93 +93 query I rowsort label-5243 SELECT ALL col2 - CAST ( - col1 + ( + col0 ) AS INTEGER ) FROM tab2 WHERE NOT - 86 + + - 40 * - col2 >= ( NULL ) @@ -32539,8 +32967,11 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > - col0 * + 24 * + col0 * + - ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 1 * COUNT ( * ) AS col0, 37 AS col0 FROM tab1 AS cor0 +---- +3 +37 query I rowsort label-5339 SELECT DISTINCT 26 / + SUM ( ALL + col2 ) AS col0 FROM tab1 @@ -32674,8 +33105,11 @@ SELECT + 60 * + + 59 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT tab2\.col0\)\) AS col1" at position 0 and "Int64\(\-2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MIN ( DISTINCT + col0 ) col1, - 2 AS col1 FROM tab2 +---- +-2 +-46 query III rowsort SELECT * FROM tab0 WHERE NOT ( NOT NULL = NULL ) @@ -32751,8 +33185,15 @@ NULL # Datafusion - Expected - -5015 # Datafusion - Expected - 91 # Datafusion - Expected - -5015 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \+ tab1\.col1 AS col0" at position 0 and "Int64\(59\) \* Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 44 ) + col1 AS col0, 59 * - 85 AS col0 FROM tab1 +---- +-5015 +-5015 +-5015 +49 +58 +91 query I rowsort SELECT ALL + 89 + - col1 FROM tab2 AS cor0 @@ -33516,8 +33957,11 @@ SELECT + + 26 * - col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col2" at position 0 and "count\(DISTINCT cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2, COUNT ( DISTINCT + + col0 ) AS col2 FROM tab1 AS cor0 +---- +3 +3 query I rowsort SELECT ALL 30 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL @@ -33536,8 +33980,11 @@ SELECT ALL * FROM tab1 WHERE + - col2 * - col1 + - - col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(Int64\(74\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, ( + + ( CAST ( + 74 AS INTEGER ) ) ) AS col0 FROM tab1 +---- +-3 +74 query I rowsort SELECT DISTINCT - col1 * - - 96 * col1 + - 63 AS col0 FROM tab0 @@ -33613,8 +34060,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) AS col0, + COUNT ( + col0 ) AS col0 FROM tab0 AS cor0 +---- +-3 +3 query II rowsort SELECT ALL 87 * + col0, 7 * + col2 AS col1 FROM tab0 @@ -33695,8 +34145,15 @@ SELECT - 65, - col1 + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - # Datafusion - Expected - -59 # Datafusion - Expected - -91 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col0, - col2 AS col0 FROM tab1 AS cor0 +---- +-51 +-59 +-68 +-85 +-91 +-96 query I rowsort SELECT DISTINCT - + ( + + 59 ) FROM tab1 AS cor0 @@ -33721,8 +34178,15 @@ SELECT - col2 / - - col1 AS col0 FROM tab2 # Datafusion - Expected - -68 # Datafusion - Expected - -71 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ \(\- tab1\.col2\) AS col0" at position 0 and "\(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 + - col2 AS col0, - col2 AS col0 FROM tab1 +---- +-34 +-43 +-59 +-68 +-71 +-96 query I rowsort label-5532 SELECT + COUNT ( * ) + - + MIN ( col1 ) + - 14 FROM tab0 @@ -33732,8 +34196,11 @@ SELECT + COUNT ( * ) + - + MIN ( col1 ) + - 14 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + + COUNT ( * ) ) AS col2, - 16 AS col2 FROM tab1 +---- +-16 +3 query I rowsort SELECT ALL col2 + col1 * - + 34 FROM tab0 @@ -33756,8 +34223,15 @@ SELECT + CAST ( ( + col1 ) AS INTEGER ) + - - 22 - + 52 AS col2 FROM tab1 # Datafusion - Expected - -47 # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-47\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - CAST ( NULL AS INTEGER ) + - 47 AS col0, - col2 AS col0 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +NULL +NULL +NULL query I rowsort label-5537 SELECT - SUM ( ALL + col2 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 @@ -33960,8 +34434,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * - SUM ( ALL - 95 ) AS col0, + 85 AS col0 FROM tab0 AS cor0 +---- +85 +855 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NULL = 79 @@ -35041,8 +35518,15 @@ SELECT DISTINCT col2 / - 30 AS col1 FROM tab1 # Datafusion - Expected - -80 # Datafusion - Expected - 8281 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col0 AS col2" at position 0 and "cor0\.col1 \+ \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * + + col0 AS col2, col1 + - col0 col2 FROM tab1 cor0 +---- +-37 +-44 +-80 +2601 +7225 +8281 query I rowsort label-5754 SELECT - ( + col1 ) + + 12 * + col0 + + CAST ( NULL AS INTEGER ) FROM tab0 @@ -35298,8 +35782,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 8 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 AS col1, col2 AS col1 FROM tab0 AS cor0 +---- +10 +47 +8 +8 +8 +99 query II rowsort SELECT DISTINCT + + 73 AS col0, - ( - + 26 ) AS col1 FROM tab1 AS cor0 @@ -35496,8 +35987,15 @@ SELECT DISTINCT col2 - + - 63 AS col1 FROM tab1 # Datafusion - Expected - -60 # Datafusion - Expected - 99 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab0\.col2\)\) AS col1" at position 0 and "Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - + col2 ) col1, - 60 AS col1 FROM tab0 +---- +-60 +-60 +-60 +10 +47 +99 query III rowsort SELECT * FROM tab1 WHERE NOT 26 <> NULL @@ -35946,8 +36444,9 @@ SELECT DISTINCT col2 * + 22 FROM tab2 880 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 AS col1, - col0 AS col1 FROM tab2 WHERE NOT NULL < NULL +---- query I rowsort label-5900 SELECT DISTINCT - MAX ( + - col0 ) FROM tab0 @@ -36846,8 +37345,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(76\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 76 AS col2, - COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +-3 +-76 query I rowsort label-6046 SELECT DISTINCT - 52 + 26 + + + 27 + - col0 / col0 / + - col0 + - col0 * - + col1 * 46 col0 FROM tab0 AS cor0 @@ -37938,8 +38440,15 @@ SELECT ALL - 36 + + col2 FROM tab2 AS cor0 # Datafusion - Expected - 7552 # Datafusion - Expected - -3243 # Datafusion - Expected - 9316 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col1\) \- cor0\.col1 AS col0" at position 0 and "cor0\.col2 \* cor0\.col2 \+ \(\- \(\- CAST\(cor0\.col2 AS Int32\)\)\) \* Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 * - col1 - col1 AS col0, col2 * + ( + col2 ) + - ( + - ( CAST ( col2 AS INTEGER ) ) ) * + 69 AS col0 FROM tab1 AS cor0 +---- +-1358 +-300 +-3243 +15840 +7552 +9316 query I rowsort label-6234 SELECT ALL + + 66 + + COUNT ( * ) AS col0 FROM tab2 AS cor0 @@ -38463,8 +38972,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN NULL AND NULL # Datafusion - Expected - -47 # Datafusion - Expected - 13 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "\(\- tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 13 col2, - col1 AS col2 FROM tab1 +---- +-14 +-47 +-5 +13 +13 +13 query I rowsort label-6318 SELECT + COUNT ( * ) * + - 3 AS col0 FROM tab1 @@ -38844,8 +39360,11 @@ SELECT DISTINCT - 2 + SUM ( col2 ) AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, 35 col0 FROM tab1 AS cor0 +---- +3 +35 query I rowsort SELECT + 34 - + col0 AS col1 FROM tab2 AS cor0 @@ -38880,8 +39399,15 @@ SELECT ALL + - 8 / + MAX ( + - col0 ) + - 43 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 1 # Datafusion - Expected - 97 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "Int64\(14\) / cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col0 AS col0, 14 / + col2 col0 FROM tab0 AS cor0 +---- +0 +0 +1 +15 +87 +97 query I rowsort label-6383 SELECT DISTINCT - COUNT ( * ) / 23 AS col0 FROM tab1 AS cor0 @@ -39503,8 +40029,15 @@ SELECT - MAX ( ALL - 48 ) FROM tab2 # Datafusion - Expected - 56 # Datafusion - Expected - -81 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( col1 ) col0, 56 AS col0 FROM tab0 +---- +-1 +-21 +-81 +56 +56 +56 query I rowsort SELECT DISTINCT - 48 col1 FROM tab0 @@ -41124,8 +41657,15 @@ SELECT col2 + + 64 + 77 FROM tab0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, + col1 AS col0 FROM tab2 +---- +51 +51 +67 +67 +77 +77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 @@ -41174,8 +41714,10 @@ SELECT + col0 * col0 + - 42 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to cab274f6910f0989b8e21ed8f2765415 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - - col2 AS col1, col2 col1, - - col0 FROM tab2 AS cor0 +---- +9 values hashing to e08c6a707e620075b02d2f4399f35dae query I rowsort SELECT col2 * - - col0 * + col2 + + col2 AS col0 FROM tab2 cor0 @@ -41716,8 +42258,15 @@ SELECT DISTINCT + - col2 FROM tab0 AS cor0 WHERE NOT + 96 - + ( - - col1 ) NOT I # Datafusion - Expected - 72 # Datafusion - Expected - -99 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 AS col1, 72 AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +72 +72 +72 query I rowsort SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL @@ -41870,8 +42419,15 @@ SELECT + col1 * - 41 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NU # Datafusion - Expected - 75 # Datafusion - Expected - -77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, col0 col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +46 +64 +75 query I rowsort label-6871 SELECT DISTINCT + SUM ( DISTINCT + ( - col2 ) ) FROM tab1 @@ -45564,8 +46120,15 @@ SELECT 64 * 95 AS col1 FROM tab0 # Datafusion - Expected - 81 # Datafusion - Expected - 99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 col0, col1 AS col0 FROM tab0 +---- +1 +10 +21 +47 +81 +99 query I rowsort label-7459 SELECT - COUNT ( * ) - + 94 / + ( ( COUNT ( * ) ) ) FROM tab2 @@ -46242,8 +46805,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT col1 / col1 * col1 IS NULL # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 col0, col1 AS col0 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT - 61 * - + col0 * - col0 + col2 AS col0 FROM tab0 AS cor0 @@ -46852,8 +47422,15 @@ SELECT DISTINCT - COUNT ( * ) - + 5 FROM tab0 AS cor0 # Datafusion - Expected - 204 # Datafusion - Expected - 75 # Datafusion - Expected - 204 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(34\) \* Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + col0 ) AS col2, + 34 * + + 6 AS col2 FROM tab2 AS cor0 +---- +204 +204 +204 +46 +64 +75 query I rowsort label-7675 SELECT ( + + MIN ( - 89 ) ) AS col0 FROM tab2 AS cor0 @@ -46956,8 +47533,15 @@ SELECT - 69 * col0 AS col1 FROM tab2 WHERE - col2 IS NOT NULL # Datafusion - Expected - 22 # Datafusion - Expected - NULL # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- tab0\.col2\) \* \(\- tab0\.col0\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) + - + col2 * - col0 AS col0, 22 AS col0 FROM tab0 +---- +22 +22 +22 +NULL +NULL +NULL query I rowsort label-7694 SELECT - - 24 + - CAST ( NULL AS INTEGER ) - - + 61 * - 89 * - 59 FROM tab0 AS cor0 @@ -47272,8 +47856,15 @@ SELECT DISTINCT - col2 AS col0 FROM tab1 WHERE NULL < NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(23\) / \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "cor0\.col0 / CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 * + 23 / - ( - CAST ( NULL AS INTEGER ) ) AS col0, col0 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 +---- +NULL +NULL +NULL +NULL +NULL +NULL query I rowsort label-7743 SELECT + 48 / - col2 FROM tab1 cor0 @@ -48049,8 +48640,11 @@ SELECT 93 FROM tab2 AS cor0 WHERE NOT ( NOT 32 BETWEEN NULL AND NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(Int64\(58\)\)\) AS col0" at position 0 and "CAST\(Int64\(\-42\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT - + AVG ( ALL + 58 ) col0, CAST ( + - 42 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL ) +---- +-42 +NULL query I rowsort SELECT col2 * + + col2 * + 34 * col0 AS col1 FROM tab2 AS cor0 @@ -48245,8 +48839,15 @@ SELECT ALL - 99 AS col1, COUNT ( + ( + col2 ) ) col2 FROM tab0 # Datafusion - Expected - 5829 # Datafusion - Expected - -97 # Datafusion - Expected - 6499 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col0" at position 0 and "Int64\(67\) \* \(\- \(\- tab0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, 67 * - - col0 col0 FROM tab0 +---- +-15 +-87 +-97 +1005 +5829 +6499 query I rowsort SELECT col0 * + 96 FROM tab0 @@ -48365,8 +48966,11 @@ SELECT ALL - 3 FROM tab1 WHERE ( NOT col1 BETWEEN NULL AND + col0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT \(\- \(\- tab0\.col2\)\)\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( DISTINCT - - col2 ) AS col1, + 99 AS col1 FROM tab0 +---- +99 +99 query I rowsort SELECT DISTINCT + ( + 98 ) AS col0 FROM tab1 @@ -48601,8 +49205,15 @@ NULL # Datafusion - Expected - -3200 # Datafusion - Expected - 75 # Datafusion - Expected - -3750 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "tab2\.col0 \* Int64\(\-50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, col0 * - 50 AS col2 FROM tab2 +---- +-2300 +-3200 +-3750 +46 +64 +75 query I rowsort SELECT ALL - + col2 + + + col1 AS col2 FROM tab0 AS cor0 @@ -49337,8 +49948,11 @@ 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\(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\. +query II valuesort SELECT + - COUNT ( * ), - COUNT ( * ) FROM tab0 WHERE 73 BETWEEN - 44 + - col1 AND NULL +---- +0 +0 query I rowsort SELECT - col2 + + 82 FROM tab0 WHERE + ( ( + col1 ) ) >= NULL @@ -50105,8 +50719,15 @@ SELECT 85 * col1 col2, - col2 FROM tab0 AS cor0 # Datafusion - Expected - 81 # Datafusion - Expected - 99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* tab0\.col2 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * col2 col0, col1 AS col0 FROM tab0 +---- +1 +21 +210 +3807 +81 +99 query II rowsort label-8201 SELECT MIN ( + col2 ) AS col0, - COUNT ( * ) FROM tab2 @@ -50379,8 +51000,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + 15 + col0 IS NULL # Datafusion - Expected - -47 # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, - col2 col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +NULL +NULL +NULL query I rowsort label-8243 SELECT ALL 86 - MIN ( ALL + - col2 ) col1 FROM tab2 @@ -50579,8 +51207,15 @@ SELECT DISTINCT col1 + + 25 FROM tab2 # Datafusion - Expected - 92 # Datafusion - Expected - -67326 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) / \(\- tab1\.col2\) \+ tab1\.col0 \* tab1\.col2 \* \(\- tab1\.col1\) \- Int64\(87\) \* \(\- tab1\.col1\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 9 / + ( - + col2 ) + col0 * + col2 * + - col1 - + 87 * + - col1 AS col0, 92 AS col0 FROM tab1 +---- +-24640 +-286747 +-67326 +92 +92 +92 query I rowsort SELECT ALL + col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col2 @@ -50658,8 +51293,15 @@ SELECT DISTINCT + - MIN ( DISTINCT 8 ) AS col2, ( SUM ( - col0 ) ) FROM tab2 AS # Datafusion - Expected - NULL # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(19\) \* Int64\(\-90\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 col1, + ( + 19 ) * - 90 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 +---- +46 +64 +75 +NULL +NULL +NULL query II rowsort SELECT + ( - - col2 ), col0 FROM tab0 AS cor0 @@ -51167,8 +51809,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 84 AS col2, COUNT ( * ) * - 76 AS col2 FROM tab2 AS cor0 +---- +-228 +84 query II rowsort label-8370 SELECT DISTINCT - 87, + COUNT ( * ) AS col2 FROM tab1 @@ -52187,8 +52832,15 @@ SELECT ALL * FROM tab1 WHERE NOT ( NOT NULL BETWEEN - col0 AND NULL ) # Datafusion - Expected - 47 # Datafusion - Expected - -950697 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- tab0\.col0\) \* \(\- tab0\.col2\) \* \(\- tab0\.col1\) AS col1" at position 0 and "\(\- \(\- tab0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * - col0 * + - col2 * - col1 col1, ( - - col2 ) AS col1 FROM tab0 +---- +-182700 +-2683935 +-950697 +10 +47 +99 query III rowsort label-8545 SELECT * FROM tab2 WHERE ( NOT 95 + CAST ( + col0 AS INTEGER ) NOT BETWEEN - col1 AND NULL ) @@ -52337,8 +52989,11 @@ SELECT DISTINCT col0, + 30 col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -156 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- sum\(tab0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, - SUM ( + col2 ) AS col0 FROM tab0 +---- +-156 +3 query I rowsort label-8572 SELECT + ( + CAST ( - 77 AS INTEGER ) ) * - 28 FROM tab0 @@ -52869,8 +53524,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT + 62 BETWEEN + col1 + col1 AND - col1 # Datafusion - Expected - 59 # Datafusion - Expected - 755 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \+ tab1\.col0 \* tab1\.col1 AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 + col0 * + col1 AS col0, col2 col0 FROM tab1 +---- +4318 +466 +59 +68 +755 +96 query I rowsort SELECT DISTINCT - col2 FROM tab1 WHERE NULL <> + + ( col0 ) @@ -53122,8 +53784,11 @@ 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\(Int64\(1\)\) AS count\(\*\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) / - COUNT ( * ) AS col0, - COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +-1 +-3 query I rowsort SELECT ALL col2 FROM tab2 AS cor0 WHERE col2 * + 83 <> 50 + - - ( + col0 ) @@ -53145,8 +53810,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 +---- +3 +3 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col2 - - - col0 AND 64 * 71 * - col2 @@ -53360,8 +54028,15 @@ SELECT DISTINCT col2 * + + 41 * + col1 FROM tab0 # Datafusion - Expected - -1134 # Datafusion - Expected - 99 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col1 \* Int64\(\-14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, col1 * + - 14 AS col1 FROM tab0 cor0 +---- +-1134 +-14 +-294 +10 +47 +99 query I rowsort SELECT ALL - ( - 51 ) * - col0 + - 8 FROM tab2 AS cor0 @@ -54085,8 +54760,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( col2 ) AS col0, - COUNT ( * ) AS col0 FROM tab0 +---- +-3 +10 query I rowsort label-8861 SELECT ALL CAST ( - ( + ( + COUNT ( * ) ) ) AS INTEGER ) AS col1 FROM tab2 WHERE NULL IS NULL @@ -54100,8 +54778,15 @@ SELECT ALL CAST ( - ( + ( + COUNT ( * ) ) ) AS INTEGER ) AS col1 FROM tab2 WHERE # Datafusion - Expected - -5015 # Datafusion - Expected - -8281 # Datafusion - Expected - -6188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* \(\- cor0\.col0\) AS col2" at position 0 and "\(\- cor0\.col2\) \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 91 * - col0 AS col2, + ( - col2 ) * + + col0 AS col2 FROM tab1 AS cor0 +---- +-4641 +-4896 +-5015 +-6188 +-7735 +-8281 query I rowsort label-8863 SELECT - CAST ( NULL AS INTEGER ) * + col2 * + + 82 FROM tab2 cor0 @@ -55768,8 +56453,15 @@ SELECT ALL + COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - -311874 # Datafusion - Expected - -32 # Datafusion - Expected - -43620 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col1" at position 0 and "Int64\(74\) \* tab1\.col0 \* \(\- tab1\.col1\) \+ tab1\.col2 \* tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 32 AS col1, 74 * + col0 * - col1 + + col2 * + col2 col1 FROM tab1 +---- +-27969 +-311874 +-32 +-32 +-32 +-43620 query II rowsort label-9141 SELECT + - SUM ( + + col0 ) / - - ( 79 ), 48 AS col2 FROM tab2 cor0 @@ -56682,8 +57374,15 @@ SELECT ALL 56, col0 * 4 col1 FROM tab0 # Datafusion - Expected - -85 # Datafusion - Expected - -91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\)" at position 0 and "CAST\(\(\- tab1\.col0\) AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0, CAST ( + - col0 AS INTEGER ) FROM tab1 +---- +-51 +-51 +-85 +-85 +-91 +-91 query I rowsort SELECT - col1 * + col1 * - col1 - - col0 + + col1 * col0 - col0 AS col2 FROM tab1 @@ -57985,8 +58684,15 @@ SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( col0 * + 69 ) # Datafusion - Expected - -64 # Datafusion - Expected - 62 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 62 AS col1, - col0 AS col1 FROM tab2 +---- +-46 +-64 +-75 +62 +62 +62 query I rowsort SELECT col2 * + - 79 FROM tab0 @@ -58430,8 +59136,15 @@ SELECT ALL 60 / col1 AS col2 FROM tab1 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 AS col2, col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NULL +---- +15 +15 +87 +87 +97 +97 query I rowsort label-9571 SELECT ALL + SUM ( DISTINCT - ( col2 ) ) FROM tab2 AS cor0 @@ -58608,8 +59321,15 @@ SELECT ALL - col0 * + + 9 AS col1 FROM tab0 # Datafusion - Expected - -2368 # Datafusion - Expected - 14 # Datafusion - Expected - -2775 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col2" at position 0 and "Int64\(37\) \* \(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 AS col2, 37 * - col0 AS col2 FROM tab2 +---- +-1702 +-2368 +-2775 +14 +14 +14 query I rowsort SELECT ( - col2 ) * - - col2 * + col1 AS col2 FROM tab2 @@ -59400,8 +60120,15 @@ SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN ( + col0 ) A # Datafusion - Expected - -64 # Datafusion - Expected - -65 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \+ cor0\.col1 AS col1" at position 0 and "Int64\(\-64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 + + ( col1 ) AS col1, ( - 64 ) AS col1 FROM tab1 cor0 +---- +-23 +-56 +-64 +-64 +-64 +-65 query I rowsort SELECT ALL 41 * + - col2 AS col1 FROM tab0 AS cor0 @@ -59793,8 +60520,15 @@ SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT CAST ( - col0 AS INTEGER ) > + # Datafusion - Expected - 13828594 # Datafusion - Expected - -81 # Datafusion - Expected - 273503 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 \- cor0\.col0 \+ cor0\.col0 \- CAST\(\(\- cor0\.col2\) AS Int32\) \+ cor0\.col0 \* \(\- cor0\.col0\) \* \(\- \(\- cor0\.col0\)\) \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col2, + col1 - col0 + col0 - + + CAST ( - col2 AS INTEGER ) + + + col0 * - col0 * - - col0 * - col1 AS col2 FROM tab0 cor0 +---- +-1 +-21 +-81 +13828594 +273503 +912773 query II rowsort SELECT DISTINCT - col2, - 81 * 16 AS col2 FROM tab1 AS cor0 @@ -59857,8 +60591,15 @@ SELECT + MAX ( ALL + 8 ) FROM tab2 # Datafusion - Expected - -4465 # Datafusion - Expected - -20 # Datafusion - Expected - -475 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col2" at position 0 and "tab1\.col1 \* Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 AS col2, col1 * - 95 AS col2 FROM tab1 +---- +-1330 +-20 +-20 +-20 +-4465 +-475 query I rowsort label-9799 SELECT DISTINCT - + 24 * + ( SUM ( col0 ) ) + MAX ( + 38 ) FROM tab2 AS cor0 @@ -59929,8 +60670,15 @@ SELECT ALL col1 * col0 - + col2 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 182 # Datafusion - Expected - 1684 # Datafusion - Expected - 173 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \- Int64\(65\) \* \(\- cor0\.col1\) \* cor0\.col1 AS col2" at position 0 and "Int64\(\-16\) / \(\- cor0\.col1\) \+ cor0\.col0 \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 - + 65 * + - col1 * + col1 AS col2, - 16 / - col1 + col0 + col0 AS col2 FROM tab1 AS cor0 +---- +103 +12836 +143653 +1684 +173 +182 query I rowsort label-9810 SELECT ALL + COUNT ( col1 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 @@ -60010,8 +60758,15 @@ SELECT DISTINCT MAX ( DISTINCT + 2 ) AS col2 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 87 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 87 AS col1, + col2 col1 FROM tab0 +---- +10 +47 +87 +87 +87 +99 query I rowsort SELECT DISTINCT col0 - + col0 AS col2 FROM tab1 WHERE NOT - 66 * - col2 IS NULL @@ -60064,8 +60819,15 @@ SELECT ALL + 40, 9 col1 FROM tab0 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / Int64\(94\) \+ \(\- Int64\(72\)\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) / + + 94 + - + 72 AS col1, col0 AS col1 FROM tab1 +---- +51 +85 +91 +NULL +NULL +NULL query I rowsort SELECT - 0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 @@ -60618,8 +61380,15 @@ SELECT DISTINCT + col0 - - CAST ( - + 1 AS INTEGER ) * + col1 AS col2 FROM tab0 # Datafusion - Expected - 77 # Datafusion - Expected - 75 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, col1 AS col2 FROM tab2 +---- +46 +51 +64 +67 +75 +77 query I rowsort SELECT 35 * ( - col2 ) AS col1 FROM tab1 @@ -60896,8 +61665,15 @@ SELECT * FROM tab1 WHERE NOT + ( 40 ) BETWEEN - + col2 AND ( + col2 * - 71 + + c # Datafusion - Expected - -87 # Datafusion - Expected - -97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col1" at position 0 and "\(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col1, - col0 AS col1 FROM tab0 +---- +-15 +-15 +-87 +-87 +-97 +-97 query I rowsort SELECT DISTINCT col0 + + 12 - col0 + + - 44 AS col0 FROM tab2 @@ -60954,8 +61730,15 @@ SELECT ALL + - col0 AS col1 FROM tab1 AS cor0 WHERE NOT col0 / - - CAST ( NULL A # Datafusion - Expected - 86 # Datafusion - Expected - 75 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(9\) \+ \(\- \(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, 9 + - ( - col1 ) AS col1 FROM tab2 AS cor0 +---- +46 +60 +64 +75 +76 +86 query I rowsort SELECT DISTINCT + col2 * - 62 * - 98 FROM tab1 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_102.slt b/data/sqlite/random/aggregates/slt_good_102.slt index 849f564..d30c11c 100644 --- a/data/sqlite/random/aggregates/slt_good_102.slt +++ b/data/sqlite/random/aggregates/slt_good_102.slt @@ -397,8 +397,9 @@ SELECT col2 AS col0, col2 + - - col1 FROM tab0 cor0 100 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(\-23\) AS col1" at position 0 and "cor0\.col2 \* Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + col0 * - 23 AS col1, col2 * - 84 AS col1, 27 col2 FROM tab0 cor0 WHERE NOT + 47 IS NOT NULL +---- query II rowsort SELECT ALL - col2 AS col0, + col1 AS col1 FROM tab2 AS cor0 @@ -695,8 +696,15 @@ SELECT + 22 * + - 62 * - col1 AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL # Datafusion - Expected - -15 # Datafusion - Expected - 4421 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* cor0\.col2 \* \(\- cor0\.col1\) \- Int64\(\-11\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col1 * + col2 * - col1 - - 11 AS col0, - col0 AS col0 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +110 +308378 +4421 query I rowsort label-109 SELECT ALL + 92 - col1 / 4 FROM tab1 AS cor0 @@ -1310,8 +1318,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN 76 AND NULL # Datafusion - Expected - 18 # Datafusion - Expected - -45 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(45\)\) AS col1" at position 0 and "Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 45 AS col1, + 18 AS col1 FROM tab1 AS cor0 +---- +-45 +-45 +-45 +18 +18 +18 query I rowsort label-210 SELECT DISTINCT COUNT ( * ) / CAST ( + MAX ( + col1 ) AS INTEGER ) FROM tab0 AS cor0 @@ -1365,8 +1380,15 @@ SELECT ALL - 92 * - col2 AS col1 FROM tab2 # Datafusion - Expected - -85 # Datafusion - Expected - -91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\)" at position 0 and "\(\- tab1\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0, - col0 FROM tab1 +---- +-51 +-51 +-85 +-85 +-91 +-91 query I rowsort label-218 SELECT - col2 * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 @@ -1474,8 +1496,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 24 AS col2, + 20 col2 FROM tab2 +---- +20 +24 query I rowsort SELECT + - col1 FROM tab1 WHERE NOT NULL >= - col0 @@ -1492,8 +1517,15 @@ SELECT * FROM tab2 WHERE NOT + - col1 BETWEEN NULL AND - - col1 + - + col1 # Datafusion - Expected - -1597 # Datafusion - Expected - 75 # Datafusion - Expected - -2335 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col2 \* Int64\(\-40\) \+ \(\- tab2\.col2\) \+ Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, col2 * + - 40 + - col2 + + 43 AS col1 FROM tab2 +---- +-1597 +-2335 +-900 +46 +64 +75 query I rowsort label-239 SELECT ALL + + CAST ( NULL AS INTEGER ) * ( + col2 ) * - + 74 FROM tab2 WHERE NULL BETWEEN + col1 AND + - col0 * - 55 @@ -1642,8 +1674,15 @@ SELECT * FROM tab2 WHERE NOT 38 * col1 + - col1 * - col2 IS NULL # Datafusion - Expected - 87 # Datafusion - Expected - -81 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, + col0 AS col2 FROM tab0 +---- +-1 +-21 +-81 +15 +87 +97 query II rowsort SELECT ALL + 22 AS col0, + col2 FROM tab0 AS cor0 @@ -2696,8 +2735,11 @@ SELECT - + 68 col2, col2 * col2 * - col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-16\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( - 16 ) + - + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +3 +NULL query II rowsort label-437 SELECT ALL - + 39, + 48 / col0 + 91 + col0 AS col2 FROM tab1 AS cor0 @@ -3019,8 +3061,15 @@ SELECT 66 AS col1 FROM tab1 cor0 WHERE NOT NULL BETWEEN - 41 AND col0 # Datafusion - Expected - -291450 # Datafusion - Expected - -77 # Datafusion - Expected - -197120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 \* cor0\.col2 \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, col1 * + col2 * - col0 AS col2 FROM tab2 AS cor0 +---- +-197120 +-291450 +-51 +-53958 +-67 +-77 query I rowsort SELECT - 11 FROM tab1 AS cor0 WHERE NOT + col1 * + 45 + - ( - 54 ) + + col1 * + col1 * + col1 * + col1 * + 18 * col1 <> NULL @@ -3058,8 +3107,15 @@ SELECT DISTINCT ( - 57 ) AS col2 FROM tab1 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, col0 AS col1 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-494 SELECT + 98 * - 25 * + COUNT ( * ) FROM tab2 @@ -3324,8 +3380,15 @@ SELECT + + 75, col0 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 56 # Datafusion - Expected - -58 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(58\)\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 58 AS col0, + 56 AS col0 FROM tab2 AS cor0 +---- +-58 +-58 +-58 +56 +56 +56 query I rowsort label-535 SELECT - - COUNT ( - 76 ) AS col1 FROM tab1 AS cor0 @@ -3613,8 +3676,10 @@ SELECT 59 col1, + col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 629d68ca70859ca38988a62c26b3698d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* tab2\.col1 AS col1" at position 0 and "Int64\(\-53\) \* \(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL col1 * + col1 col1, - 53 * - + ( + + col2 ) AS col1, col1 + - col0 col2 FROM tab2 +---- +9 values hashing to 89dcb6905ebd663920ed708deb6aaaf8 query I rowsort SELECT DISTINCT - 67 AS col1 FROM tab1 @@ -4151,8 +4216,15 @@ NULL # Datafusion - Expected - -64 # Datafusion - Expected - 58 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "Int64\(9\) \+ Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, 9 + - 73 AS col0 FROM tab2 +---- +-64 +-64 +-64 +23 +40 +58 query I rowsort label-670 SELECT col1 / - - CAST ( - 75 AS INTEGER ) AS col2 FROM tab2 @@ -4414,8 +4486,11 @@ SELECT DISTINCT + col2 * col2, - col2 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT tab1\.col1\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( DISTINCT col1 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 +---- +47 +NULL query I rowsort SELECT ALL 44 * + + 71 FROM tab0 @@ -6099,8 +6174,11 @@ SELECT + CAST ( 9 AS INTEGER ) / - col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col2, - COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +-3 +3 query I rowsort SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL @@ -6450,8 +6528,11 @@ SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND - ( + 71 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2460 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \* \(\- sum\(Int64\(41\)\)\) 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 II valuesort SELECT + 20 * - SUM ( ALL 41 ) AS col0, COUNT ( - - 88 ) AS col0 FROM tab2 +---- +-2460 +3 query I rowsort label-1052 SELECT ALL - SUM ( ALL + + 16 ) FROM tab1 @@ -6716,8 +6797,15 @@ NULL # Datafusion - Expected - 97 # Datafusion - Expected - -6975 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* \(\- Int64\(31\)\) \* \(\- tab0\.col0\) AS col1" at position 0 and "tab0\.col0 \+ \(\- tab0\.col2\) \* \(\- \(\- tab0\.col0\)\) / Int64\(34\) \* Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + col0 ) * - ( 31 ) * - col0 AS col1, col0 + + + ( - + col2 ) * - - col0 / 34 * - 0 col1 FROM tab0 +---- +-234639 +-291679 +-6975 +15 +87 +97 query I rowsort label-1095 SELECT - col0 * - - col1 * CAST ( - col1 AS INTEGER ) + + 44 * col0 FROM tab2 AS cor0 @@ -6777,8 +6865,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 AS col2, - COUNT ( * ) AS col2 FROM tab0 +---- +-3 +50 query I rowsort SELECT 95 * - 96 AS col0 FROM tab1 @@ -6890,8 +6981,15 @@ SELECT - - ( - col1 ) AS col2 FROM tab0 AS cor0 WHERE NULL <= + col2 * - col0 # Datafusion - Expected - 87 # Datafusion - Expected - 55 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \+ cor0\.col0 AS col1" at position 0 and "\(\- CAST\(\(\- cor0\.col0\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 42 + + col0 AS col1, - CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 cor0 +---- +-27 +15 +45 +55 +87 +97 query I rowsort SELECT - col1 - + + col0 col1 FROM tab1 @@ -7615,8 +7713,15 @@ SELECT + col1 FROM tab1 WHERE NOT 8 IS NOT NULL # Datafusion - Expected - 784350240 # Datafusion - Expected - -77 # Datafusion - Expected - 295680000 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col2" at position 0 and "\(\- tab2\.col2\) \* tab2\.col2 \* tab2\.col2 \* \(\- tab2\.col1\) \* Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, - col2 * col2 * col2 * - + col1 * + 60 AS col2 FROM tab2 +---- +-51 +-67 +-77 +295680000 +37231020 +784350240 query I rowsort label-1240 SELECT DISTINCT - col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 @@ -9984,8 +10089,11 @@ SELECT + ( + CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -747 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "CAST\(\(\- sum\(Int64\(83\)\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 AS col0, CAST ( - SUM ( + + 83 ) AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 +---- +-747 +26 query II rowsort SELECT 44 AS col1, - col2 AS col0 FROM tab0 @@ -10881,8 +10989,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 AS col0, - COUNT ( * ) col0 FROM tab1 +---- +-3 +0 query II rowsort label-1776 SELECT CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) + + + 60 * - 17 AS col0 FROM tab2 @@ -11270,8 +11381,15 @@ SELECT MIN ( DISTINCT + ( col1 ) ) AS col0 FROM tab1 # Datafusion - Expected - -230 # Datafusion - Expected - 8169 # Datafusion - Expected - -2162 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ Int64\(89\) \* \(\- \(\- tab1\.col0\)\) \+ tab1\.col1 AS col1" at position 0 and "tab1\.col1 \* Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 23 + 89 * - - col0 + col1 AS col1, col1 * - 46 AS col1 FROM tab1 +---- +-2162 +-230 +-644 +4576 +7593 +8169 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 @@ -11280,8 +11398,15 @@ SELECT DISTINCT + 23 + 89 * - - col0 + col1 AS col1, col1 * - 46 AS col1 FROM ta # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col2, col2 AS col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-1838 SELECT DISTINCT 15 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 @@ -11299,8 +11424,15 @@ SELECT * FROM tab1 WHERE NULL BETWEEN ( NULL ) AND - 56 / col1 # Datafusion - Expected - -15 # Datafusion - Expected - -99 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "\(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, - col0 AS col1 FROM tab0 +---- +-10 +-15 +-47 +-87 +-97 +-99 query I rowsort SELECT ALL + - col1 + - ( ( - col0 ) ) * - col0 AS col0 FROM tab1 AS cor0 @@ -12785,8 +12917,15 @@ SELECT 26 * 66 + + - col1 + - - CAST ( - col2 AS INTEGER ) - + col2 * + col1 col # Datafusion - Expected - 94 # Datafusion - Expected - 3 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \+ \(\- tab0\.col0\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 + + - col0 AS col1, + 94 col1 FROM tab0 +---- +-69 +-79 +3 +94 +94 +94 query I rowsort label-2082 SELECT DISTINCT + ( - col0 ) * + col1 + CAST ( - + col0 AS INTEGER ) FROM tab0 AS cor0 @@ -13618,8 +13757,11 @@ SELECT * FROM tab0 AS cor0 WHERE NOT - ( 6 ) <= - - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - -216 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(93\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 * - COUNT ( * ) AS col2, - COUNT ( * ) + + 93 + COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +-216 +93 query I rowsort SELECT 63 * - 20 AS col1 FROM tab0 @@ -13845,8 +13987,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 92 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 92 AS col1, 47 AS col1 FROM tab2 cor0 +---- +47 +47 +47 +92 +92 +92 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 72 + - 98 * - col2 <> + 62 @@ -13963,8 +14112,15 @@ SELECT DISTINCT + - 85 / - COUNT ( * ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1, - col1 FROM tab1 AS cor0 +---- +-14 +-14 +-47 +-47 +-5 +-5 query I rowsort SELECT ALL + col1 * + col2 * - ( - - col2 ) + - + col1 + + col2 AS col2 FROM tab1 @@ -14493,8 +14649,15 @@ SELECT col0 * 24 + + col0 + - col2 / - col0 + + - col0 + + 38 FROM tab0 # Datafusion - Expected - 7 # Datafusion - Expected - 0 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 / \(\- tab0\.col1\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 / - col1 AS col1, 7 AS col1 FROM tab0 +---- +-99 +0 +0 +7 +7 +7 query I rowsort SELECT DISTINCT + 85 * + - col1 FROM tab0 @@ -14807,8 +14970,11 @@ SELECT DISTINCT - + ( + + 71 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "Int64\(\-98\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 29 AS col1, - 98 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 +---- +29 +NULL query III rowsort SELECT * FROM tab2 WHERE NOT - col0 * + + col1 * - 1 IS NOT NULL @@ -15040,8 +15206,15 @@ SELECT ALL + 57 / - 14 col2 FROM tab1 AS cor0 # Datafusion - Expected - 3791 # Datafusion - Expected - 60 # Datafusion - Expected - 3843 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "cor0\.col2 \- Int64\(\-96\) \* Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 60 col1, col2 - - 96 * 39 AS col1 FROM tab0 AS cor0 +---- +3754 +3791 +3843 +60 +60 +60 query I rowsort SELECT - 87 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL @@ -15410,8 +15583,15 @@ SELECT + - 30 * - 30 + + col2 + + col2 / - + col0 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - -97 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ Int64\(\-6\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + - 6 AS col1, col0 AS col1 FROM tab1 AS cor0 +---- +-57 +-91 +-97 +51 +85 +91 query I rowsort SELECT ALL + col0 + + col2 * + + col1 FROM tab2 AS cor0 @@ -15681,8 +15861,15 @@ SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT col2 - ( - 51 ) - - - 38 BETW # Datafusion - Expected - -484 # Datafusion - Expected - NULL # Datafusion - Expected - -810 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- cor0\.col0\) \* cor0\.col1 \- cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col1, - col0 * col1 - ( + + col2 ) col1 FROM tab1 cor0 +---- +-4345 +-484 +-810 +NULL +NULL +NULL query I rowsort SELECT DISTINCT + ( - - col1 ) AS col2 FROM tab0 AS cor0 @@ -16584,8 +16771,15 @@ SELECT DISTINCT + - col1 - + + 41 FROM tab1 AS cor0 # Datafusion - Expected - 75 # Datafusion - Expected - 77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, col0 AS col2 FROM tab2 AS cor0 +---- +46 +51 +64 +67 +75 +77 query I rowsort label-2710 SELECT + - SUM ( ( col0 ) ) - + COUNT ( * ) col2 FROM tab0 AS cor0 @@ -18029,8 +18223,15 @@ SELECT ALL + MIN ( + - col1 ) AS col2 FROM tab0 # Datafusion - Expected - 52 # Datafusion - Expected - 4350 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* tab2\.col0 AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * col0 AS col2, 52 AS col2 FROM tab2 +---- +1058 +2560 +4350 +52 +52 +52 query I rowsort label-2937 SELECT ALL + 0 / MIN ( DISTINCT + 9 ) * 16 AS col1 FROM tab1 @@ -18211,8 +18412,15 @@ SELECT ALL * FROM tab2 WHERE NOT NULL > - + col2 # Datafusion - Expected - -64 # Datafusion - Expected - -5025 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \* tab2\.col1 AS col2" at position 0 and "\(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 * + col1 AS col2, - col0 AS col2 FROM tab2 +---- +-2346 +-46 +-4928 +-5025 +-64 +-75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1344 @@ -18221,8 +18429,15 @@ SELECT ALL - col0 * + col1 AS col2, - col0 AS col2 FROM tab2 # Datafusion - Expected - 109 # Datafusion - Expected - 3196 # Datafusion - Expected - 907 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* tab1\.col1 AS col1" at position 0 and "Int64\(19\) \* \(\- \(\- tab1\.col1\)\) \- Int64\(\-14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 * col1 col1, 19 * - - col1 - - 14 AS col1 FROM tab1 +---- +109 +1344 +280 +295 +3196 +907 query III rowsort SELECT * FROM tab1 WHERE NOT + col1 = - 85 + 40 * col0 @@ -18280,8 +18495,11 @@ SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 41 AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL +---- +0 +41 query I rowsort label-2976 SELECT 80 * + MIN ( ALL 20 ) FROM tab1 AS cor0 @@ -18568,8 +18786,15 @@ SELECT DISTINCT + col1 * - col1 + col0 AS col1 FROM tab1 AS cor0 WHERE + col1 * # Datafusion - Expected - 64 # Datafusion - Expected - 86 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 AS col2, + col0 AS col2 FROM tab2 cor0 +---- +46 +64 +75 +86 +86 +86 query III rowsort SELECT * FROM tab1 cor0 WHERE NOT - col2 * col1 NOT BETWEEN + col2 AND NULL @@ -18592,8 +18817,15 @@ SELECT 94, 58 / 16 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -18 # Datafusion - Expected - -75 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, - 18 AS col1 FROM tab2 AS cor0 +---- +-18 +-18 +-18 +-46 +-64 +-75 query I rowsort label-3025 SELECT ALL - ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0 @@ -18633,8 +18865,15 @@ SELECT col1 * - - ( - col2 ) * - col1 * + col0 FROM tab2 # Datafusion - Expected - 85 # Datafusion - Expected - -6188 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* \(\- tab1\.col2\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 * - col2 AS col1, + col0 AS col1 FROM tab1 +---- +-4896 +-5015 +-6188 +51 +85 +91 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -19568,8 +19807,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - 30 ) col0, COUNT ( * ) - + 6 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 +---- +-30 +3 query I rowsort label-3196 SELECT DISTINCT 86 + + COUNT ( * ) - 79 FROM tab2 AS cor0 @@ -19941,8 +20183,15 @@ SELECT DISTINCT col0 FROM tab0 WHERE NULL < ( CAST ( NULL AS INTEGER ) + + 22 ) # Datafusion - Expected - 15 # Datafusion - Expected - -594 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \* tab0\.col2 \* \(\- \(\- tab0\.col1\)\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 6 * + col2 * - ( + - col1 ) AS col2, + col0 col2 FROM tab0 +---- +-1260 +-22842 +-594 +15 +87 +97 query I rowsort SELECT - 72 * col0 AS col2 FROM tab0 @@ -19958,8 +20207,15 @@ SELECT - 72 * col0 AS col2 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2, col2 FROM tab0 cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT + + 81 * + col2 AS col1 FROM tab2 AS cor0 WHERE NOT col0 + + - 43 / - 41 IS NOT NULL @@ -20847,8 +21103,11 @@ SELECT DISTINCT - 64 * - col1 + - ( - col1 ) * - - col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 121 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "\(\- sum\(\(\- cor0\.col2\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 73 AS col0, - SUM ( - col2 ) AS col0 FROM tab2 AS cor0 +---- +121 +73 query I rowsort label-3398 SELECT CAST ( - col1 AS INTEGER ) + - + 28 + col2 AS col0 FROM tab0 AS cor0 @@ -21298,8 +21557,15 @@ SELECT ALL - col1 - + + col2 FROM tab2 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - -3811 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* \(\- tab2\.col1\) \+ tab2\.col0 AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 * - col1 + col0 AS col1, + col2 col1 FROM tab2 +---- +-1127 +-3016 +-3811 +23 +40 +58 query I rowsort label-3474 SELECT - COUNT ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 WHERE NOT - - col0 IS NOT NULL @@ -22367,8 +22633,15 @@ SELECT * FROM tab0 WHERE NOT + - col2 * - - col2 IS NOT NULL # Datafusion - Expected - -5015 # Datafusion - Expected - -74 # Datafusion - Expected - -6188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) AS col0" at position 0 and "\(\- cor0\.col2\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 74 AS col0, - col2 * + col0 col0 FROM tab1 cor0 +---- +-4896 +-5015 +-6188 +-74 +-74 +-74 query II rowsort SELECT ALL - - col1 AS col1, + col0 FROM tab0 AS cor0 @@ -22897,8 +23170,10 @@ SELECT ALL col2, 28 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 6e2f28b160438e0d0797a2834516ceda -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + col2 AS col2, + col0 AS col2, - col2 FROM tab0 AS cor0 +---- +9 values hashing to 3ff255c09842cab9bef764346a64b47c query I rowsort label-3735 SELECT DISTINCT MIN ( col0 ) AS col1 FROM tab2 AS cor0 @@ -23253,8 +23528,11 @@ SELECT + - col0 col1 FROM tab0 WHERE col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 6 AS col2, + COUNT ( * ) AS col2 FROM tab0 +---- +3 +6 query III rowsort SELECT ALL * FROM tab1 WHERE + 91 > + col2 @@ -23896,8 +24174,11 @@ 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\(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\. +query II valuesort SELECT - 37 + - COUNT ( * ) + + - COUNT ( * ) AS col2, + 51 + 28 + - 96 AS col2 FROM tab2 AS cor0 +---- +-17 +-43 query I rowsort SELECT ALL col2 * - ( col0 ) FROM tab1 AS cor0 @@ -23916,8 +24197,11 @@ SELECT 38 + - col0 + - - 82 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +-3 +3 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT 24 >= NULL @@ -23937,8 +24221,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - - COUNT ( * ) ) AS col0, + 51 AS col0 FROM tab2 +---- +-3 +51 query I rowsort SELECT ALL - - 64 - + col2 AS col1 FROM tab2 cor0 @@ -24954,8 +25241,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN ( col1 ) AND ( NULL # Datafusion - Expected - 1914 # Datafusion - Expected - NULL # Datafusion - Expected - 194 -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 "cor0\.col1 \* cor0\.col0 \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - CAST ( NULL AS FLOAT8 ) AS col2, col1 * col0 + col0 AS col2 FROM tab0 AS cor0 +---- +1230 +1914 +194 +NULL +NULL +NULL query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> ( col0 + + col2 + + - 57 * col1 ) @@ -25530,8 +25824,15 @@ SELECT SUM ( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - NULL # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, - col2 AS col1 FROM tab2 +---- +-23 +-40 +-58 +NULL +NULL +NULL query I rowsort SELECT + col0 FROM tab0 WHERE NOT + 38 IS NULL @@ -26139,8 +26440,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col2, COUNT ( * ) AS col2 FROM tab0 +---- +3 +3 query I rowsort SELECT - ( - 11 ) FROM tab1 @@ -26169,8 +26473,9 @@ SELECT DISTINCT - MIN ( - + col0 ) FROM tab2 75 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "tab0\.col0 \- CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col1, col0 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT NULL IS NULL +---- query I rowsort SELECT DISTINCT col0 * - 68 + + col1 + + + col0 + col1 * - - col0 + + col2 AS col0 FROM tab1 AS cor0 @@ -26240,8 +26545,15 @@ SELECT ALL col2 * col1 + + col0 FROM tab0 # Datafusion - Expected - 64 # Datafusion - Expected - -55 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \+ tab2\.col2 AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 78 + col2 col1, col0 AS col1 FROM tab2 +---- +-20 +-38 +-55 +46 +64 +75 query I rowsort label-4288 SELECT + COUNT ( * ) + - MIN ( DISTINCT + col2 ) FROM tab1 AS cor0 @@ -26451,8 +26763,15 @@ SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) >= + ( col1 ) + col1 # Datafusion - Expected - -77 # Datafusion - Expected - 58 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 AS col1, - col1 AS col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +23 +40 +58 query II rowsort SELECT DISTINCT - - col0, col0 AS col0 FROM tab2 AS cor0 @@ -26881,8 +27200,9 @@ SELECT + - COUNT ( * ) / + + 11 + - COUNT ( * ) * - 49 FROM tab0 AS cor0 147 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* cor0\.col0 AS col1" at position 0 and "cor0\.col2 \+ Int64\(26\) \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * + col0 AS col1, col2 + + + 26 + + col2 AS col1 FROM tab0 AS cor0 WHERE - col1 IS NULL +---- query I rowsort label-4392 SELECT DISTINCT + - MIN ( ALL + ( + col2 ) ) FROM tab1 AS cor0 @@ -27116,8 +27436,15 @@ SELECT 91 - + col0 col2 FROM tab0 # Datafusion - Expected - 15 # Datafusion - Expected - 99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, col0 AS col1 FROM tab0 +---- +10 +15 +47 +87 +97 +99 query I rowsort label-4431 SELECT ALL col2 / 20 + - - col1 FROM tab0 @@ -27500,8 +27827,15 @@ SELECT MIN ( + col0 ) FROM tab2 cor0 # Datafusion - Expected - 42 # Datafusion - Expected - -81 # Datafusion - Expected - 162 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 \- \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, + col1 - - col1 col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +162 +2 +42 query I rowsort SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE col1 * - + 48 >= NULL @@ -28026,8 +28360,15 @@ SELECT ALL - MIN ( ALL - + 35 ) * + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab # Datafusion - Expected - -4096 # Datafusion - Expected - -75 # Datafusion - Expected - -4800 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 / \(\- \(\- tab2\.col1\)\) \+ \(\- tab2\.col0\) AS col0" at position 0 and "Int64\(64\) \* \(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 / - - col1 + - col0 col0, 64 * - col0 AS col0 FROM tab2 +---- +-2944 +-4096 +-46 +-4800 +-64 +-75 query I rowsort label-4579 SELECT ALL 99 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 @@ -28398,8 +28739,15 @@ SELECT 54 * 27 * - - col0 * + col2 AS col0 FROM tab0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, + col0 AS col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-4635 SELECT - + 82 col2 FROM tab0 WHERE NOT - CAST ( + col1 AS INTEGER ) IS NOT NULL @@ -28473,8 +28821,15 @@ SELECT ALL + col2 * + 23 + + + col1 - + col1 col0 FROM tab0 # Datafusion - Expected - 25 # Datafusion - Expected - -9547 # Datafusion - Expected - 114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col0\) \+ Int64\(56\) AS col2" at position 0 and "cor0\.col2 \+ Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * - col0 + + + ( 56 ) AS col2, col2 + 15 AS col2 FROM tab0 AS cor0 +---- +-649 +-814 +-9547 +114 +25 +62 query I rowsort label-4646 SELECT + ( - + SUM ( col0 ) ) col1 FROM tab1 AS cor0 @@ -28563,8 +28918,11 @@ SELECT - col1 AS col2, col1 / col0 FROM tab0 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 col2" at position 0 and "avg\(\(\- cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + 47 AS col2, + AVG ( - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < - col0 +---- +47 +NULL query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT 36 IN ( 11, - col2 + - 86, - col0, col1, col2 ) @@ -28611,8 +28969,15 @@ SELECT COUNT ( ALL - 26 ) col1 FROM tab1 # Datafusion - Expected - 72 # Datafusion - Expected - -75 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "tab2\.col0 \+ \(\- Int64\(\-8\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - col0 ) AS col0, col0 + - - 8 AS col0 FROM tab2 +---- +-46 +-64 +-75 +54 +72 +83 query II rowsort SELECT - col2 * - - col0, col1 AS col1 FROM tab1 @@ -28670,8 +29035,15 @@ SELECT + 50 + + + 44 + - col2 * + ( - col0 ) FROM tab2 AS cor0 # Datafusion - Expected - 114 # Datafusion - Expected - 8 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "Int64\(39\) \+ \(\- \(\- cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 8 AS col1, 39 + - - col0 AS col1 FROM tab2 cor0 +---- +103 +114 +8 +8 +8 +85 query I rowsort SELECT + col1 + - col2 + + 43 FROM tab2 AS cor0 @@ -29414,8 +29786,11 @@ SELECT * FROM tab0 WHERE + + col1 / + + col1 >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1604 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(tab1\.col0\)\) \* Int64\(20\) \+ Int64\(72\) \* count\(tab1\.col0\) AS col1" at position 0 and "Int64\(22\) \- Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( + col0 ) * 20 + + 72 * + COUNT ( + + col0 ) AS col1, 22 - 33 AS col1 FROM tab1 +---- +-11 +-1604 query I rowsort label-4796 SELECT ALL - CAST ( - + col2 AS INTEGER ) * col0 AS col0 FROM tab1 WHERE NOT + col2 NOT BETWEEN NULL AND + col1 @@ -30025,8 +30400,15 @@ SELECT ALL - col0 / + - col1 FROM tab2 AS cor0 # Datafusion - Expected - 7225 # Datafusion - Expected - -97 # Datafusion - Expected - 8281 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(97\)\) AS col1" at position 0 and "tab1\.col0 \* tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - ( + 97 ) ) col1, col0 * + col0 AS col1 FROM tab1 +---- +-97 +-97 +-97 +2601 +7225 +8281 query I rowsort label-4892 SELECT - CAST ( + 46 AS INTEGER ) AS col2 FROM tab1 @@ -31901,8 +32283,15 @@ SELECT * FROM tab1 WHERE NOT col2 + col0 * - + col1 <> - 78 # Datafusion - Expected - 21 # Datafusion - Expected - 97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col2, col1 AS col2 FROM tab0 +---- +1 +15 +21 +81 +87 +97 query II rowsort SELECT - 55 + col1 + + col0, + col0 FROM tab1 AS cor0 @@ -34452,8 +34841,15 @@ SELECT + 8 + + SUM ( ALL + col2 ) AS col1 FROM tab2 # Datafusion - Expected - 912 # Datafusion - Expected - 175 # Datafusion - Expected - 912 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ \(\- Int64\(\-79\)\) AS col0" at position 0 and "Int64\(76\) \* Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + - - 79 col0, 76 * + 12 AS col0 FROM tab1 +---- +138 +147 +175 +912 +912 +912 query I rowsort SELECT ALL 61 - + 49 AS col1 FROM tab1 @@ -35224,8 +35620,11 @@ SELECT ( ( - COUNT ( * ) ) ) / + - 8 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) col1, COUNT ( * ) AS col1 FROM tab1 +---- +-3 +3 query I rowsort SELECT DISTINCT 74 * + col2 FROM tab2 @@ -36635,8 +37034,11 @@ SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN ( - col2 * + # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- min\(Int64\(31\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, - MIN ( ALL + 31 ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 +---- +-31 +9 query I rowsort SELECT ALL - ( + - col0 ) AS col0 FROM tab0 @@ -37416,8 +37818,15 @@ SELECT ALL - col1 + - 24 AS col0 FROM tab2 # Datafusion - Expected - 56 # Datafusion - Expected - -91 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, 56 AS col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +56 +56 +56 query I rowsort SELECT DISTINCT - col2 * + col0 - 30 * + 65 FROM tab1 AS cor0 @@ -37682,8 +38091,15 @@ SELECT ALL ( ( + - col0 ) ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - -91 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 \- cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, col1 - col1 col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +0 +0 +0 query III rowsort SELECT * FROM tab1 WHERE NOT - 64 IS NULL @@ -38914,8 +39330,15 @@ SELECT ALL + 45 + - ( - col2 ) AS col1 FROM tab2 # Datafusion - Expected - -111 # Datafusion - Expected - 25 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* tab1\.col1 AS col2" at position 0 and "Int64\(\-64\) \+ \(\- tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * + col1 AS col2, - 64 + - col1 col2 FROM tab1 +---- +-111 +-69 +-78 +196 +2209 +25 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( - col1 >= ( NULL ) ) ) @@ -38965,8 +39388,15 @@ SELECT - + ( 2 ) + - 81 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 42 # Datafusion - Expected - 80 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 80 AS col0, + 42 AS col0 FROM tab0 AS cor0 +---- +42 +42 +42 +80 +80 +80 query I rowsort label-6381 SELECT ALL MAX ( - 16 ) AS col2 FROM tab0 AS cor0 @@ -39080,8 +39510,11 @@ SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * - col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 121 # Datafusion - Expected - -2552 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- sum\(cor0\.col2\)\)\) AS col1" at position 0 and "Int64\(\-44\) \* max\(DISTINCT cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - SUM ( + col2 ) AS col1, - 44 * MAX ( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0 +---- +-2552 +121 query I rowsort label-6400 SELECT + - col2 / + 98 AS col1 FROM tab2 AS cor0 @@ -39481,8 +39914,15 @@ SELECT col1 + - - 62 + + 37, col0 + - col1 + + col0 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -14 # Datafusion - Expected - 0 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) / Int64\(27\) AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 / + 27 AS col1, - col1 AS col1 FROM tab1 +---- +-1 +-14 +-47 +-5 +0 +0 query I rowsort label-6465 SELECT col1 / + 85 FROM tab0 @@ -40481,8 +40921,15 @@ SELECT DISTINCT 63 col0 FROM tab1 # Datafusion - Expected - 99 # Datafusion - Expected - -81 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, + 99 AS col0 FROM tab0 +---- +-1 +-21 +-81 +99 +99 +99 query I rowsort SELECT DISTINCT - 85 col1 FROM tab2 AS cor0 @@ -40872,8 +41319,11 @@ SELECT + 67 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 * + COUNT ( * ) AS col1, 69 AS col1 FROM tab2 cor0 +---- +63 +69 query I rowsort label-6690 SELECT - MAX ( DISTINCT + - 17 ) FROM tab1 cor0 @@ -41185,8 +41635,15 @@ SELECT DISTINCT - ( col1 ) AS col0, + col1 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, ( col0 ) FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query II rowsort SELECT DISTINCT - col0 AS col2, 43 FROM tab2 AS cor0 @@ -41205,8 +41662,15 @@ SELECT DISTINCT - col0 AS col2, 43 FROM tab2 AS cor0 # Datafusion - Expected - -96 # Datafusion - Expected - 39 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \+ \(\- tab1\.col1\) AS col1" at position 0 and "\(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 44 + - col1 AS col1, - col2 AS col1 FROM tab1 +---- +-3 +-59 +-68 +-96 +30 +39 query I rowsort SELECT ALL + 85 + + 1 AS col2 FROM tab2 @@ -41370,8 +41834,9 @@ SELECT DISTINCT ( + 58 ) * + - col2 FROM tab1 cor0 -5568 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 FROM tab1 AS cor0 WHERE NULL <= col1 +---- query I rowsort label-6772 SELECT + 16 / - SUM ( DISTINCT + 17 ) + - - 31 FROM tab0 cor0 WHERE NULL = NULL @@ -41418,8 +41883,15 @@ SELECT ALL 89 + + COUNT ( * ) + 47 FROM tab0 # Datafusion - Expected - 54 # Datafusion - Expected - -99 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, 54 col2 FROM tab0 +---- +-10 +-47 +-99 +54 +54 +54 query I rowsort SELECT + col1 / + 63 * + + 7 FROM tab1 WHERE + + col1 BETWEEN 44 * col2 AND NULL @@ -41428,8 +41900,11 @@ SELECT + col1 / + 63 * + + 7 FROM tab1 WHERE + + col1 BETWEEN 44 * col2 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 AS col0, COUNT ( * ) AS col0 FROM tab2 +---- +3 +68 query I rowsort label-6782 SELECT - 75 - + + COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab0 @@ -41535,8 +42010,11 @@ SELECT ALL + ( - 26 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 43 AS col1, - 80 AS col1 FROM tab0 +---- +-80 +43 query I rowsort label-6802 SELECT ALL - - ( COUNT ( * ) ) col0 FROM tab1 AS cor0 @@ -42132,8 +42610,15 @@ SELECT ALL - + col0 * - - 83 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -197056 # Datafusion - Expected - -75 # Datafusion - Expected - -291375 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col0 \+ \(\- cor0\.col2\) \* cor0\.col1 \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, col0 + + - col2 * + + col1 * col0 AS col0 FROM tab2 AS cor0 +---- +-197056 +-291375 +-46 +-53912 +-64 +-75 query I rowsort label-6908 SELECT DISTINCT + SUM ( - - col1 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0 @@ -42731,8 +43216,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS FLOAT8 ) / - 17 * + + # Datafusion - Expected - 17 # Datafusion - Expected - 38412 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(\-4\) \* \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * - 4 * - col0 AS col2, 17 AS col2 FROM tab0 AS cor0 +---- +17 +17 +17 +2820 +3480 +38412 query I rowsort SELECT + + 77 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL @@ -43078,8 +43570,15 @@ NULL # Datafusion - Expected - 60 # Datafusion - Expected - 58 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* cor0\.col2 AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 1 * col2 AS col0, 60 col0 FROM tab2 AS cor0 +---- +23 +40 +58 +60 +60 +60 query II rowsort label-7060 SELECT ALL 79 AS col0, + COUNT ( * ) AS col1 FROM tab2 @@ -43223,8 +43722,15 @@ SELECT ALL + ( + COUNT ( * ) ) AS col1 FROM tab1 WHERE NOT ( + col1 IS NULL ) # Datafusion - Expected - 21 # Datafusion - Expected - 94 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab0\.col2\)\) \+ \(\- \(\- tab0\.col2\)\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - + col2 ) + - - col2 AS col0, col1 AS col0 FROM tab0 +---- +1 +198 +20 +21 +81 +94 query I rowsort SELECT DISTINCT - col2 - + + col1 FROM tab0 @@ -43784,8 +44290,15 @@ SELECT DISTINCT - - col0 AS col2 FROM tab2 AS cor0 WHERE - col0 - + col2 / + 25 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 FROM tab1 AS cor0 WHERE - 84 NOT BETWEEN + col1 AND NULL +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT ALL + + col2 + - 19 + + col2 FROM tab2 AS cor0 @@ -44019,8 +44532,15 @@ SELECT ALL 60 col1, col2 FROM tab1 # Datafusion - Expected - -47 # Datafusion - Expected - -46 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col0" at position 0 and "\(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 46 AS col0, ( - col1 ) AS col0 FROM tab1 +---- +-14 +-46 +-46 +-46 +-47 +-5 query I rowsort label-7210 SELECT - SUM ( + - col2 ) FROM tab1 @@ -45683,8 +46203,11 @@ SELECT ALL 60 FROM tab2 WHERE - col2 NOT IN ( ( + ( - + col0 ) ) ) # 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\(tab2\.col1\) AS col1" at position 0 and "Int64\(\-17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( ALL + col1 ) AS col1, - 17 AS col1 FROM tab2 +---- +-17 +3 query I rowsort SELECT ALL col2 AS col1 FROM tab2 WHERE NOT col0 IS NOT NULL @@ -46960,8 +47483,15 @@ SELECT - - CAST ( + - ( 98 ) AS INTEGER ) FROM tab2 cor0 # Datafusion - Expected - 58 # Datafusion - Expected - 77 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - col1 ) AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +23 +40 +51 +58 +67 +77 query I rowsort SELECT - 35 * - 72 AS col1 FROM tab1 AS cor0 @@ -48605,8 +49135,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col1 + - col2 ) IS NOT NULL # Datafusion - Expected - 64 # Datafusion - Expected - -58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col2\) AS Int32\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + CAST ( - col2 AS INTEGER ) ) col2, + col0 AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +46 +64 +75 query I rowsort SELECT DISTINCT - 97 col2 FROM tab1 AS cor0 @@ -49004,8 +49541,15 @@ SELECT + + CAST ( 14 AS INTEGER ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -61 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(61\)\) AS 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 IR valuesort SELECT ALL - + 61 AS col0, CAST ( NULL AS FLOAT8 ) col0 FROM tab0 AS cor0 +---- +-61 +-61 +-61 +NULL +NULL +NULL query I rowsort label-8024 SELECT + CAST ( + - CAST ( + + col0 AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 AS cor0 @@ -50246,8 +50790,15 @@ SELECT ALL - 86 * 88 col2 FROM tab0 AS cor0 # Datafusion - Expected - -459 # Datafusion - Expected - -58 # Datafusion - Expected - -459 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col1" at position 0 and "Int64\(27\) \* Int64\(\-17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 AS col1, 27 * - 17 AS col1 FROM tab1 cor0 +---- +-459 +-459 +-459 +-58 +-58 +-58 query I rowsort SELECT col2 FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN - - col0 + - col1 * 80 AND + 99 @@ -50263,8 +50814,15 @@ SELECT col2 FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN - - col0 + - col1 * 80 # Datafusion - Expected - -4257 # Datafusion - Expected - 56 # Datafusion - Expected - -430 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "Int64\(43\) \* \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 AS col0, 43 * - col2 AS col0 FROM tab0 AS cor0 +---- +-2021 +-4257 +-430 +56 +56 +56 query I rowsort SELECT ALL 88 FROM tab2 WHERE NOT col1 IS NULL @@ -51434,8 +51992,15 @@ SELECT - col2 AS col0, - ( + 53 ) - - 68 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 94 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 94 AS col2, col0 col2 FROM tab2 +---- +46 +64 +75 +94 +94 +94 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NULL <> - col0 + 18 @@ -51461,8 +52026,15 @@ SELECT col1 * + + col1 col2 FROM tab1 # Datafusion - Expected - 50 # Datafusion - Expected - 58 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, 50 AS col1 FROM tab2 +---- +23 +40 +50 +50 +50 +58 query II rowsort label-8429 SELECT + 84 AS col1, + SUM ( DISTINCT col1 ) + COUNT ( * ) AS col2 FROM tab2 @@ -51515,8 +52087,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - -96 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col0, + col1 AS col0 FROM tab1 +---- +-59 +-68 +-96 +14 +47 +5 query I rowsort SELECT ALL + 0 AS col1 FROM tab1 cor0 @@ -53139,8 +53718,15 @@ SELECT - col1 + ( + ( + 1 ) ) + col1 AS col0 FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - -163 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) \+ Int64\(\-70\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 93 + - 70 AS col1, col0 AS col1 FROM tab2 +---- +-163 +-163 +-163 +46 +64 +75 query I rowsort SELECT ALL 93 + - col2 - 8 AS col1 FROM tab1 @@ -53225,8 +53811,15 @@ SELECT * FROM tab2 WHERE NOT + + col2 * + ( - + col0 ) IN ( 14 ) # Datafusion - Expected - 0 # Datafusion - Expected - -58 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col0" at position 0 and "tab2\.col0 / \(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, + col0 / + - col1 AS col0 FROM tab2 +---- +-1 +-23 +-40 +-58 +0 +0 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT ( - col1 * + + col1 ) NOT BETWEEN NULL AND ( NULL ) @@ -53658,8 +54251,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT col2 + - - 35 NOT IN ( + - col0 + - - 1, 5 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, + col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-8789 SELECT + - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT 7 NOT IN ( - + 89, + col1, - + 85 ) @@ -53673,8 +54273,15 @@ SELECT + - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT 7 NOT IN ( - + 89, + col # Datafusion - Expected - 42 # Datafusion - Expected - 64 # Datafusion - Expected - 882 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "cor0\.col1 \* Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 64 AS col0, col1 * + 42 col0 FROM tab0 AS cor0 +---- +3402 +42 +64 +64 +64 +882 query I rowsort SELECT + col0 FROM tab1 AS cor0 WHERE NOT + col0 / col2 IS NOT NULL @@ -54038,8 +54645,15 @@ SELECT DISTINCT - + ( + col0 ) FROM tab0 cor0 # Datafusion - Expected - 2162 # Datafusion - Expected - -96 # Datafusion - Expected - 182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col1\) \* \(\- cor0\.col1\) \+ \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, - col1 * + - col1 + - col1 AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +182 +20 +2162 query I rowsort label-8852 SELECT + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) * + + col2 * col0 * + 77 * CAST ( - - ( - - 97 ) AS INTEGER ) + + - col0 col2 FROM tab0 AS cor0 WHERE NOT 2 IS NULL @@ -54706,8 +55320,15 @@ SELECT DISTINCT - col0 * - 77 AS col2 FROM tab0 # Datafusion - Expected - -58 # Datafusion - Expected - -9603 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* \(\- tab0\.col2\) AS col0" at position 0 and "\(\- Int64\(58\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * + - col2 AS col0, ( - + 58 ) AS col0 FROM tab0 +---- +-58 +-58 +-58 +-705 +-870 +-9603 query I rowsort SELECT col2 - + 6 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL @@ -54991,8 +55612,11 @@ SELECT DISTINCT 36 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 199 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "sum\(DISTINCT tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) * COUNT ( * ) AS col1, + SUM ( DISTINCT col0 ) AS col1 FROM tab0 +---- +199 +9 query I rowsort label-9009 SELECT COUNT ( * ) * - + 12 FROM tab2 @@ -56131,8 +56755,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 AS col1, - COUNT ( * ) col1 FROM tab0 AS cor0 +---- +-3 +82 query I rowsort label-9203 SELECT + MIN ( - + ( col2 ) ) AS col2 FROM tab1 AS cor0 @@ -56982,8 +57609,9 @@ SELECT ALL + - COUNT ( * ) * - 69 + + + 67 * - + COUNT ( * ) FROM tab2 AS cor0 6 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1, + col1 FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND NULL +---- query I rowsort SELECT ALL ( - col0 ) + ( - 51 ) AS col2 FROM tab2 AS cor0 @@ -57137,8 +57765,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ), + ( + + COUNT ( * ) ) FROM tab0 +---- +3 +3 query I rowsort label-9366 SELECT - col1 * - + col0 + - 51 * 9 + - CAST ( ( + col0 ) AS INTEGER ) + - - col1 AS col1 FROM tab0 @@ -58285,8 +58916,15 @@ SELECT 45 + - 73 * - + COUNT ( * ) FROM tab0 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, + col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT col1 * - col0 AS col2 FROM tab0 AS cor0 WHERE + col1 NOT IN ( - col0 ) OR NOT col1 * 32 IS NULL @@ -58484,8 +59122,15 @@ SELECT + col1 + col1 FROM tab1 WHERE NOT ( ( CAST ( 10 AS INTEGER ) ) NOT IN ( + # Datafusion - Expected - -64 # Datafusion - Expected - 36 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 36 AS col1, - col0 AS col1 FROM tab2 +---- +-46 +-64 +-75 +36 +36 +36 query I rowsort label-9593 SELECT DISTINCT COUNT ( + ( - - col1 ) ) AS col2 FROM tab1 @@ -58554,8 +59199,10 @@ SELECT * FROM tab1 AS cor0 WHERE + col2 + col1 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 81b2b2177e18333e73069fb5e27bc72d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 1 and "Int64\(\-37\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - ( + col1 ) AS col2, col2 AS col0, - 37 AS col0 FROM tab0 cor0 +---- +9 values hashing to a3a12aec68358791f170a0dc31ccbb21 query I rowsort SELECT ALL - col0 + - + ( + col1 ) AS col2 FROM tab2 AS cor0 @@ -59086,8 +59733,10 @@ SELECT ALL - - 38 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to cf0a630be4121b028da2c88723c2e4ed -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-9\)\)\) AS col1" at position 0 and "Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + ( - - 9 ) ) AS col1, 82 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 +---- +18 values hashing to 2e6292b3c26ae79fb14bccfa694fa965 query II rowsort label-9697 SELECT + - COUNT ( * ), + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - 24 + - col1 * + 71 * + col0 / + col1 = + col2 * - col1 + col2 @@ -59806,8 +60455,15 @@ SELECT DISTINCT * FROM tab1 WHERE - col2 <= - col0 # Datafusion - Expected - 85 # Datafusion - Expected - 19 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(19\)\)\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( 19 ) AS col0, + 85 AS col0 FROM tab2 cor0 +---- +19 +19 +19 +85 +85 +85 query I rowsort SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT - 62 > col1 + + col1 * - col0 @@ -60698,8 +61354,11 @@ SELECT ALL - col2 * - 40 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +-90 +3 query I rowsort label-9959 SELECT ALL + SUM ( ALL + col2 ) FROM tab0 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_103.slt b/data/sqlite/random/aggregates/slt_good_103.slt index b7be320..a78c1f2 100644 --- a/data/sqlite/random/aggregates/slt_good_103.slt +++ b/data/sqlite/random/aggregates/slt_good_103.slt @@ -901,8 +901,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 53 AS col1, - COUNT ( * ) col1 FROM tab1 cor0 CROSS JOIN tab0 cor1 +---- +-53 +-9 query I rowsort label-146 SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -1927,8 +1930,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND NULL # Datafusion - Expected - 128 # Datafusion - Expected - 3886 # Datafusion - Expected - 150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* \(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col0 \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col1 * - + col2 col0, col0 + col0 AS col0 FROM tab2 AS cor0 +---- +1173 +128 +150 +3080 +3886 +92 query II rowsort label-314 SELECT - COUNT ( * ), COUNT ( * ) AS col1 FROM tab2 @@ -2420,8 +2430,15 @@ SELECT + - 55 * + + 74 - + + col1 - + col1 * + 10 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 11 # Datafusion - Expected - -58 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col2 AS col2, 11 AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +11 +11 +11 query I rowsort SELECT col2 - + + ( - col0 ) col0 FROM tab1 @@ -2509,8 +2526,9 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 * - 85 * + col2 IS NULL 9 values hashing to 75c998aa53ac83218cbf2feb962d0a49 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* \(\- tab2\.col2\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 * - col2 AS col1, col0 AS col1 FROM tab2 WHERE - col2 BETWEEN NULL AND col0 +---- query I rowsort SELECT DISTINCT + col1 FROM tab0 WHERE - + 88 IS NOT NULL @@ -2536,8 +2554,15 @@ SELECT DISTINCT + - ( - COUNT ( * ) ) col0 FROM tab2 AS cor0 # Datafusion - Expected - -30 # Datafusion - Expected - -91 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(\-30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, - 30 AS col0 FROM tab1 AS cor0 +---- +-30 +-30 +-30 +-51 +-85 +-91 query I rowsort SELECT DISTINCT col2 + - - col2 * col0 * - 70 col1 FROM tab2 @@ -2755,8 +2780,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT col1 >= + + CAST ( + col2 AS INTEGER ) # Datafusion - Expected - -77 # Datafusion - Expected - 58 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col1, - col1 AS col1 FROM tab2 cor0 +---- +-51 +-67 +-77 +23 +40 +58 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 / 2 IS NOT NULL @@ -5215,8 +5247,15 @@ SELECT * FROM tab1 cor0 WHERE NOT + 8 + - 47 + - - ( + + ( - - col1 ) ) + + 94 I # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col2, col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT col0 * col1 IS NOT NULL @@ -5796,8 +5835,15 @@ SELECT DISTINCT - + col0 AS col2, col0 - - col1 FROM tab2 AS cor0 # Datafusion - Expected - -75690 # Datafusion - Expected - 64 # Datafusion - Expected - -931491 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-64\)\) AS col0" at position 0 and "\(\- cor0\.col0\) \* cor0\.col2 \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 64 AS col0, - col0 * + col2 * + col0 AS col0 FROM tab0 AS cor0 +---- +-10575 +-75690 +-931491 +64 +64 +64 query II rowsort SELECT + + col2 col2, col0 + 92 AS col0 FROM tab0 AS cor0 @@ -6059,8 +6105,15 @@ SELECT - col1 * - 74 FROM tab2 # Datafusion - Expected - 38 # Datafusion - Expected - -97 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col0, 38 AS col0 FROM tab0 +---- +-15 +-87 +-97 +38 +38 +38 query III rowsort SELECT * FROM tab1 WHERE ( NULL ) IS NOT NULL OR NOT NULL NOT BETWEEN - col1 + - - 55 AND 23 @@ -6191,8 +6244,15 @@ SELECT * FROM tab0 AS cor0 WHERE - col2 * + - col0 <> - CAST ( - col2 AS INTEGER # Datafusion - Expected - -97 # Datafusion - Expected - -60 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \* \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(2\) \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + 4 ) * - col0 AS col1, 2 + - col2 AS col1 FROM tab0 AS cor0 +---- +-348 +-388 +-45 +-60 +-8 +-97 query I rowsort SELECT - 9 + - col0 + col0 AS col2 FROM tab0 AS cor0 @@ -6426,8 +6486,11 @@ 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\(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\. +query II valuesort SELECT - + ( COUNT ( * ) ) AS col0, - COUNT ( ALL + 93 ) AS col0 FROM tab1 AS cor0 +---- +-3 +-3 query II rowsort SELECT ALL 94 col2, 56 + + ( - col2 ) + - - col0 * ( 1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL @@ -7486,8 +7549,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - + COUNT ( * ), - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 79 IS NOT NULL +---- +0 +0 query II rowsort SELECT + + col2, + 25 FROM tab0 AS cor0 @@ -7581,8 +7647,15 @@ SELECT + 11 + 65 FROM tab0 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, + col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-1241 SELECT DISTINCT - + MIN ( col0 ) AS col1 FROM tab2 AS cor0 @@ -7735,8 +7808,15 @@ SELECT - col0 * - + col2 col1 FROM tab2 # Datafusion - Expected - 86 # Datafusion - Expected - 77 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 col0, 86 AS col0 FROM tab2 +---- +51 +67 +77 +86 +86 +86 query I rowsort label-1266 SELECT 65 * + CAST ( MAX ( ALL - col2 ) AS INTEGER ) AS col1 FROM tab2 @@ -8712,8 +8792,15 @@ SELECT ALL * FROM tab0 WHERE - 53 + + 72 IS NOT NULL # Datafusion - Expected - 40 # Datafusion - Expected - -80 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 80 AS col1, col2 col1 FROM tab2 AS cor0 +---- +-80 +-80 +-80 +23 +40 +58 query I rowsort label-1431 SELECT MIN ( + col0 ) col1 FROM tab2 AS cor0 @@ -9586,8 +9673,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( - 58 ) + col2 ) IS NULL # Datafusion - Expected - -47 # Datafusion - Expected - 37 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 col2, - col2 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +37 +37 +37 query I rowsort SELECT + col2 FROM tab1 AS cor0 WHERE NOT - ( + col1 ) + - - col1 = NULL @@ -9902,8 +9996,15 @@ SELECT col2 FROM tab2 WHERE NOT 41 > NULL # Datafusion - Expected - -85 # Datafusion - Expected - -73 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col2" at position 0 and "\(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 73 AS col2, - col0 AS col2 FROM tab1 +---- +-51 +-73 +-73 +-73 +-85 +-91 query I rowsort label-1631 SELECT DISTINCT CAST ( + 76 AS INTEGER ) * - + col2 FROM tab0 @@ -10385,8 +10486,10 @@ SELECT - col2 col1, - col1 * + - col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 94f6f2095e14bd72ddcac65c0796d4ea -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col0, + col0, - col2 FROM tab2 AS cor0 +---- +9 values hashing to 2044bcefd2b82d8ba3e9ed2653f3a5f4 query I rowsort label-1708 SELECT DISTINCT + - SUM ( ALL - col0 ) FROM tab1 WHERE NOT + - 58 NOT IN ( 6 + col2, - ( ( - - col0 ) ) + - col2 ) @@ -10921,8 +11024,15 @@ SELECT + col2 AS col0, 56 FROM tab2 # Datafusion - Expected - 3 # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-43\) \+ Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col2, - 43 + 46 AS col2 FROM tab0 +---- +3 +3 +3 +NULL +NULL +NULL query I rowsort label-1795 SELECT ( CAST ( - col0 AS INTEGER ) ) FROM tab2 @@ -11366,8 +11476,15 @@ SELECT ALL - col0 + ( col0 ) col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col0 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 +---- +46 +64 +75 +NULL +NULL +NULL query I rowsort SELECT + ( 35 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL @@ -11637,8 +11754,15 @@ SELECT ALL * FROM tab1 cor0 WHERE 19 IS NOT NULL # Datafusion - Expected - -5 # Datafusion - Expected - -6734 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(\-74\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 * + - 74 AS col0, - col1 AS col0 FROM tab1 AS cor0 +---- +-14 +-3774 +-47 +-5 +-6290 +-6734 query I rowsort label-1914 SELECT + MIN ( ALL 9 ) FROM tab2 AS cor0 WHERE NOT + col0 * - + col0 + - + col0 BETWEEN 70 + - + CAST ( NULL AS INTEGER ) AND NULL @@ -12003,8 +12127,15 @@ SELECT COUNT ( * ) * 41 - + - COUNT ( * ) + + - 56 AS col2 FROM tab0 # Datafusion - Expected - 3056 # Datafusion - Expected - -5025 # Datafusion - Expected - 3844 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \* tab2\.col1 AS col2" at position 0 and "Int64\(16\) \- tab2\.col2 \- tab2\.col2 \* \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 * col1 AS col2, 16 - col2 - col2 * - col1 AS col2 FROM tab2 +---- +-2346 +-4928 +-5025 +1166 +3056 +3844 query I rowsort label-1975 SELECT DISTINCT col2 + + + 22 / - col0 FROM tab1 @@ -12152,8 +12283,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + - COUNT ( * ) ) AS col1, 66 AS col1 FROM tab1 AS cor0 WHERE ( NOT NULL = + + col0 ) +---- +0 +66 query III rowsort SELECT ALL * FROM tab1 cor0 WHERE NOT ( ( NOT NULL BETWEEN NULL AND col1 ) ) @@ -12380,8 +12514,15 @@ SELECT DISTINCT + ( - col2 ) + + 5 + 21 + - col1 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - -74 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \+ Int64\(\-51\) \+ \(\- Int64\(64\)\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 41 + - 51 + - + 64 col2, + ( - + col1 ) col2 FROM tab2 AS cor0 +---- +-51 +-67 +-74 +-74 +-74 +-77 query I rowsort label-2038 SELECT DISTINCT SUM ( DISTINCT + 76 ) col2 FROM tab2 AS cor0 @@ -13278,8 +13419,11 @@ SELECT ALL col0 FROM tab0 AS cor0 WHERE - 34 + col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col1" at position 0 and "max\(DISTINCT Int64\(\-19\)\) \* count\(CAST\(Int64\(93\) AS Int32\)\) \+ max\(\(\- tab2\.col0\)\) \+ Int64\(\-51\) / count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +98 +NULL query I rowsort label-2186 SELECT DISTINCT - 82 * - MAX ( DISTINCT + col2 ) AS col0 FROM tab1 @@ -13435,8 +13579,15 @@ SELECT + - MIN ( ALL - - 69 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col1, col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT DISTINCT - 39 col0 FROM tab2 @@ -13728,8 +13879,15 @@ SELECT DISTINCT - 71 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL # Datafusion - Expected - 20 # Datafusion - Expected - 77 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col0, + 20 AS col0 FROM tab2 +---- +20 +20 +20 +51 +67 +77 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT ( - col0 BETWEEN - + col1 AND + + 47 ) @@ -15351,8 +15509,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) + + ( + + 0 ) + - + 18 AS col0, + 9 AS col0 FROM tab2, tab2 AS cor0 +---- +-9 +9 query I rowsort label-2532 SELECT - 82 / + MAX ( + - col0 ) FROM tab2 @@ -15649,8 +15810,15 @@ SELECT ( - COUNT ( * ) ) + - 9 FROM tab1 # Datafusion - Expected - 33 # Datafusion - Expected - -6209 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \* tab1\.col2 \- \(\- Int64\(\-21\)\) AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 * + + col2 - - - 21 AS col1, + 33 AS col1 FROM tab1 +---- +-4917 +-5036 +-6209 +33 +33 +33 query I rowsort SELECT ALL col2 + 92 * col1 AS col1 FROM tab2 @@ -16306,8 +16474,15 @@ SELECT + 47 + - + 57 FROM tab0 # Datafusion - Expected - -61 # Datafusion - Expected - 0 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) / Int64\(79\) AS col0" at position 0 and "Int64\(\-61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 / + ( + 79 ) AS col0, - 61 AS col0 FROM tab1 AS cor0 +---- +-61 +-61 +-61 +0 +0 +0 query III rowsort SELECT * FROM tab2 AS cor0 WHERE + col0 * + 88 * + + col1 IS NOT NULL @@ -16327,8 +16502,11 @@ SELECT 14 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(tab0\.col0\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + COUNT ( + col0 ) ) + + ( + ( - COUNT ( * ) ) ) AS col1, + COUNT ( * ) AS col1 FROM tab0 +---- +0 +3 query I rowsort SELECT + 53 + + - col1 FROM tab1 @@ -16376,8 +16554,9 @@ SELECT col2 + + + ( + 2 ) FROM tab1 AS cor0 98 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) / \(\- Int64\(39\)\) \- \(\- \(\- \(\- \(\- CAST\(NULL AS Float64\)\)\)\)\) AS col2" at position 0 and "Int64\(9\) \+ cor0\.col0 \- Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT - - col0 / - ( 39 ) - - - ( - - CAST ( NULL AS FLOAT8 ) ) AS col2, + 9 + ( col0 ) - 49 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL +---- query II rowsort SELECT ALL + 85, - col1 AS col1 FROM tab2 AS cor0 @@ -16614,8 +16793,15 @@ SELECT DISTINCT SUM ( + + col2 ) AS col2 FROM tab0 # Datafusion - Expected - 68 # Datafusion - Expected - 11 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 11 AS col0, + col2 col0 FROM tab1 AS cor0 +---- +11 +11 +11 +59 +68 +96 query III rowsort SELECT * FROM tab2 cor0 WHERE NOT + 46 * 34 * - ( - ( - 84 ) ) IS NOT NULL @@ -17381,8 +17567,15 @@ SELECT DISTINCT - - ( - - col1 ) + col0 FROM tab2 AS cor0 # Datafusion - Expected - 15 # Datafusion - Expected - 99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, col0 AS col1 FROM tab0 AS cor0 +---- +10 +15 +47 +87 +97 +99 query I rowsort SELECT DISTINCT + - ( + ( - 96 ) ) FROM tab2 AS cor0 @@ -18808,8 +19001,15 @@ SELECT ALL * FROM tab0 WHERE NOT - 88 IS NOT NULL # Datafusion - Expected - -85 # Datafusion - Expected - 64 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "\(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 64 AS col1, - col0 AS col1 FROM tab1 +---- +-51 +-85 +-91 +64 +64 +64 query I rowsort SELECT - col2 * + - col2 + ( col0 ) + col0 FROM tab2 @@ -19532,8 +19732,15 @@ SELECT 48 * ( col2 ) FROM tab0 # Datafusion - Expected - -29 # Datafusion - Expected - 99 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "Int64\(\-29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 AS col1, - 29 col1 FROM tab1 +---- +-29 +-29 +-29 +99 +99 +99 query I rowsort label-3210 SELECT MAX ( - - col1 ) col0 FROM tab0 @@ -20153,8 +20360,15 @@ SELECT DISTINCT col2 AS col2, + 60 AS col2 FROM tab1 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col2, + col2 AS col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-3319 SELECT ALL 72 + - CAST ( - 28 AS INTEGER ) col0 FROM tab2 AS cor0 @@ -20170,8 +20384,15 @@ SELECT ALL 72 + - CAST ( - 28 AS INTEGER ) col0 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "Int64\(95\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - + col1 ) AS col0, + 95 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 +---- +-1 +-21 +-81 +NULL +NULL +NULL query I rowsort label-3321 SELECT ALL SUM ( DISTINCT ( - 62 ) ) FROM tab1 cor0 @@ -20480,8 +20701,15 @@ SELECT ALL - 24, + col1 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col0, col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT col1 * - 3 FROM tab2 @@ -20614,8 +20842,11 @@ SELECT + col1, - col1 AS col0 FROM tab0 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 "Int64\(23\) 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 II valuesort SELECT DISTINCT + + 23 AS col2, + ( COUNT ( + 56 ) ) AS col2 FROM tab1 AS cor0 +---- +23 +3 query II rowsort SELECT + ( - col2 ) AS col1, - 9 + + col2 + + 37 + + col1 FROM tab2 @@ -20847,8 +21078,11 @@ SELECT 39 FROM tab0 cor0 WHERE NOT col2 * + col0 + - ( - col1 ) + - col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - -227 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) 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 II valuesort SELECT - 58 AS col0, SUM ( ALL + - col0 ) AS col0 FROM tab1 +---- +-227 +-58 query I rowsort label-3429 SELECT ALL CAST ( + ( col1 ) AS INTEGER ) FROM tab0 @@ -20917,8 +21151,15 @@ SELECT DISTINCT - SUM ( - 6 ) AS col2, COUNT ( ALL - col1 ) + 32 FROM tab1 # Datafusion - Expected - -67 # Datafusion - Expected - -77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\)" at position 0 and "\(\- tab2\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - col1 ), - col1 FROM tab2 +---- +-51 +-51 +-67 +-67 +-77 +-77 query I rowsort SELECT - col0 * + col1 * col0 - - col2 AS col2 FROM tab0 AS cor0 @@ -21284,8 +21525,15 @@ SELECT ALL - 74 * + 49 AS col2 FROM tab1 AS cor0 WHERE col1 + - - col0 IS NULL # Datafusion - Expected - 77 # Datafusion - Expected - -58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, + col1 col2 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +51 +67 +77 query I rowsort label-3503 SELECT + SUM ( - - col1 ) AS col0 FROM tab1 cor0 @@ -21962,8 +22210,11 @@ 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\(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\. +query II valuesort SELECT + + ( COUNT ( * ) ) + - SUM ( ALL - + ( + 63 ) ) + - 8 AS col0, - SUM ( + - col0 ) / - COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +-75 +184 query I rowsort label-3611 SELECT - col1 * + col1 FROM tab0 AS cor0 WHERE col0 * CAST ( 34 AS INTEGER ) NOT IN ( + col0 + - col2 ) @@ -22215,8 +22466,15 @@ SELECT ALL - CAST ( - col2 AS INTEGER ) / 78 * 89 FROM tab0 AS cor0 # Datafusion - Expected - 15 # Datafusion - Expected - 0 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) / cor0\.col0 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col2 / + col0 AS col1, ( col0 ) col1 FROM tab0 AS cor0 +---- +-1 +-3 +0 +15 +87 +97 query I rowsort label-3652 SELECT ALL + - 82 / COUNT ( * ) FROM tab2 cor0 @@ -22960,8 +23218,15 @@ SELECT DISTINCT - 22 * 11 + - + col0 FROM tab0 AS cor0 # Datafusion - Expected - 97 # Datafusion - Expected - -462 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(\-22\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + - 22 col2, + col0 AS col2 FROM tab0 AS cor0 +---- +-1782 +-22 +-462 +15 +87 +97 query I rowsort label-3780 SELECT DISTINCT 45 / + col0 * - - col1 AS col1 FROM tab2 cor0 @@ -23842,8 +24107,15 @@ SELECT - COUNT ( * ) + - 23 / + 85 + 98 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - NULL # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ cor0\.col0 \* cor0\.col1 \* Int64\(\-90\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) + col0 * col1 * - 90 AS col1, - col2 AS col1 FROM tab1 cor0 +---- +-59 +-68 +-96 +NULL +NULL +NULL query III rowsort label-3924 SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 >= ( 20 * - col2 * - col0 + col1 + - col0 + + + 46 + CAST ( NULL AS INTEGER ) - - col2 ) @@ -24205,8 +24477,15 @@ NULL # Datafusion - Expected - -62 # 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 "\(\- tab0\.col2\) \+ \(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 AS col0, ( - col2 ) + - col0 AS col0 FROM tab0 +---- +-196 +-62 +-97 +21 +21 +21 query I rowsort SELECT DISTINCT col2 * + 88 FROM tab2 @@ -24793,8 +25072,15 @@ SELECT DISTINCT - col1 * col0 + + 18 FROM tab1 AS cor0 # Datafusion - Expected - 4628 # Datafusion - Expected - 9 # Datafusion - Expected - 4628 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(52\) \* Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + + ( - + col2 ) AS col1, + 52 * + + 89 AS col1 FROM tab2 AS cor0 +---- +28 +37 +4628 +4628 +4628 +9 query II rowsort SELECT DISTINCT - col0, col2 AS col0 FROM tab1 cor0 WHERE 25 IS NULL @@ -24816,8 +25102,15 @@ SELECT DISTINCT 80 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 28 # Datafusion - Expected - -75 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col0, + 28 AS col0 FROM tab2 +---- +-46 +-64 +-75 +28 +28 +28 query I rowsort SELECT + - 36 * col0 + - col0 + col2 * col2 + - ( - - col2 ) * - col0 + - ( - col2 ) * + col2 AS col1 FROM tab0 AS cor0 @@ -25607,8 +25900,15 @@ SELECT + col2 * + 23 col0 FROM tab1 cor0 # Datafusion - Expected - 23 # Datafusion - Expected - 57 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 col0, 23 AS col0 FROM tab2 AS cor0 +---- +23 +23 +23 +57 +57 +57 query II rowsort SELECT ALL + col0 col1, 20 - - col2 FROM tab1 AS cor0 @@ -25648,8 +25948,15 @@ SELECT DISTINCT 34 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE # Datafusion - Expected - -162 # Datafusion - Expected - -58 # Datafusion - Expected - -152 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col2" at position 0 and "\(\- tab2\.col1\) \+ \(\- Int64\(85\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, - col1 + - + 85 AS col2 FROM tab2 +---- +-136 +-152 +-162 +-23 +-40 +-58 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT - 30 - + col2 IS NOT NULL @@ -25697,8 +26004,15 @@ SELECT + SUM ( 16 ) col1 FROM tab0 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - 91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 AS col0, - ( + col0 ) AS col0 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +51 +85 +91 query II rowsort SELECT ALL - 21, col2 AS col1 FROM tab1 AS cor0 @@ -27042,8 +27356,15 @@ SELECT DISTINCT col1 * - 67 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 71 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 AS col0, col1 col0 FROM tab0 AS cor0 +---- +1 +21 +71 +71 +71 +81 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT + 32 IS NULL @@ -27431,8 +27752,15 @@ SELECT ALL * FROM tab0 cor0 WHERE NOT - col1 + + col0 IS NOT NULL # Datafusion - Expected - 81 # Datafusion - Expected - 43 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) \+ cor0\.col2 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 56 + col2 AS col2, col1 AS col2 FROM tab0 AS cor0 +---- +-46 +-9 +1 +21 +43 +81 query I rowsort SELECT ALL 84 col2 FROM tab0 AS cor0 @@ -27618,8 +27946,15 @@ SELECT + col2 + + 50 + - - col1 FROM tab2 AS cor0 # Datafusion - Expected - 365 # Datafusion - Expected - 6622 # Datafusion - Expected - 264 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(86\) AS col0" at position 0 and "cor0\.col0 \+ Int64\(\-5\) \* \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * + 86 AS col0, col0 + - 5 * - ( col2 ) AS col0 FROM tab2 cor0 +---- +161 +264 +365 +4386 +5762 +6622 query II rowsort SELECT col0, + col2 AS col2 FROM tab0 AS cor0 WHERE NULL <= NULL @@ -27836,8 +28171,15 @@ SELECT + col1 * + 4, col2 AS col1 FROM tab2 # Datafusion - Expected - 456192 # Datafusion - Expected - -143 # Datafusion - Expected - 46080 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) \+ Int64\(\-56\) AS col1" at position 0 and "Int64\(\-64\) \* tab0\.col2 \* Int64\(\-72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 87 + + - 56 AS col1, - 64 * + col2 * - 72 AS col1 FROM tab0 +---- +-143 +-143 +-143 +216576 +456192 +46080 query I rowsort SELECT - 75 + - col1 FROM tab2 cor0 @@ -27955,8 +28297,15 @@ SELECT DISTINCT + col1 - + 75 FROM tab2 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 col0, + col0 AS col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT DISTINCT ( - - col2 ) * - col1 AS col1 FROM tab0 @@ -28484,8 +28833,15 @@ SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( + 24 + - - col1 ) AND 13 # Datafusion - Expected - 150 # Datafusion - Expected - 1 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) / \(\- tab2\.col0\) AS col1" at position 0 and "tab2\.col0 \+ tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 / - + col0 AS col1, col0 + + col0 AS col1 FROM tab2 +---- +1 +1 +1 +128 +150 +92 query I rowsort SELECT + ( - col1 ) * - 3 FROM tab1 WHERE NOT col0 + - + col0 / col0 = - col2 / + col0 + ( 54 ) @@ -29976,8 +30332,15 @@ SELECT + + 47 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - -85 # Datafusion - Expected - -91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0, - col0 FROM tab1 AS cor0 +---- +-51 +-51 +-85 +-85 +-91 +-91 query I rowsort SELECT ALL - - col1 * 16 FROM tab1 cor0 @@ -30482,8 +30845,9 @@ SELECT DISTINCT CAST ( + + col1 AS INTEGER ) FROM tab1 AS cor0 5 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col1\) \* cor0\.col0 AS col0" at position 0 and "cor0\.col2 \+ \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * - col1 * + col0 AS col0, + col2 + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT + 72 + + 45 IS NOT NULL +---- query I rowsort SELECT col2 * - - col0 FROM tab1 cor0 @@ -30870,8 +31234,15 @@ SELECT - CAST ( + 15 AS INTEGER ) FROM tab2 AS cor0 # Datafusion - Expected - 42 # Datafusion - Expected - 5 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) / cor0\.col1 AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + + 74 ) / + col1 AS col0, + 42 AS col0 FROM tab1 AS cor0 +---- +1 +14 +42 +42 +42 +5 query I rowsort label-5071 SELECT DISTINCT + MAX ( + col0 ) FROM tab0 cor0 @@ -31369,8 +31740,15 @@ SELECT + COUNT ( * ) * - + 22 * + 54 * - MIN ( - ( - 42 ) ) FROM tab0 # Datafusion - Expected - -4951 # Datafusion - Expected - -1 # Datafusion - Expected - -521 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 / \(\- tab0\.col2\) AS col0" at position 0 and "tab0\.col2 \* Int64\(\-50\) \+ \(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 / - col2 AS col0, + col2 * - 50 + - col1 AS col0 FROM tab0 +---- +-1 +-1 +-1 +-2431 +-4951 +-521 query II rowsort SELECT col2 AS col2, + 26 FROM tab0 @@ -32426,8 +32804,15 @@ SELECT DISTINCT * FROM tab2 WHERE - col1 * - 89 + col1 IS NULL # Datafusion - Expected - -22 # Datafusion - Expected - 160888 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* tab1\.col2 \* Int64\(26\) AS col0" at position 0 and "Int64\(\-81\) \+ tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * col2 * + 26 AS col0, - 81 + + col2 AS col0 FROM tab1 +---- +-13 +-22 +127296 +130390 +15 +160888 query I rowsort label-5333 SELECT + ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 @@ -33089,8 +33474,11 @@ SELECT DISTINCT COUNT ( - + 61 ) - - 20 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1320 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* Int64\(33\) AS col0" at position 0 and "Int64\(70\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 40 * 33 col0, + 70 + + COUNT ( * ) AS col0 FROM tab0, tab1 AS cor0 +---- +1320 +79 query II rowsort label-5439 SELECT ( COUNT ( * ) ) AS col1, + COUNT ( * ) AS col2 FROM tab0 @@ -34617,8 +35005,15 @@ SELECT ALL - - col0 AS col0 FROM tab0 WHERE NULL <> - + col0 * - - col2 # Datafusion - Expected - 10 # Datafusion - Expected - 97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 col1, + col2 AS col1 FROM tab0 +---- +10 +15 +47 +87 +97 +99 query I rowsort SELECT + + col2 + - - col2 + - col1 + + - col2 FROM tab2 AS cor0 @@ -35816,8 +36211,15 @@ SELECT ALL - 11, ( + ( + col0 ) ) * + col2 col0 FROM tab2 AS cor0 # Datafusion - Expected - 10 # Datafusion - Expected - 97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 AS col0, + col2 AS col0 FROM tab0 AS cor0 +---- +10 +15 +47 +87 +97 +99 query I rowsort SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT 97 BETWEEN - col1 * + + 17 * - 67 / - col2 AND NULL @@ -35856,8 +36258,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NULL > 69 # Datafusion - Expected - -67 # Datafusion - Expected - -1 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) / \(\- cor0\.col0\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 85 / - col0 AS col0, - col1 AS col0 FROM tab2 AS cor0 +---- +-1 +-1 +-1 +-51 +-67 +-77 query II rowsort SELECT ALL col1 AS col2, + 77 - + col1 FROM tab2 cor0 WHERE NULL < NULL @@ -35921,8 +36330,15 @@ SELECT DISTINCT + MIN ( - col2 ) * COUNT ( * ) + + ( 77 ) FROM tab2 AS cor0 # Datafusion - Expected - 60 # Datafusion - Expected - 32 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / Int64\(47\) \- \(\- cor0\.col2\) \+ \(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 / + 47 - + - col2 + - - col1 AS col0, 60 AS col0 FROM tab0 AS cor0 +---- +102 +128 +32 +60 +60 +60 query I rowsort SELECT ALL col2 + + col2 * + + col2 FROM tab0 @@ -36648,8 +37064,15 @@ SELECT ALL + - COUNT ( * ) + - 40 FROM tab1 AS cor0 # Datafusion - Expected - 23 # Datafusion - Expected - 714 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col1 AS col1" at position 0 and "cor0\.col0 \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 * col1 col1, col0 + - col2 col1 FROM tab1 AS cor0 +---- +-45 +23 +26 +425 +4277 +714 query I rowsort SELECT DISTINCT col2 * + 47 FROM tab0 @@ -37054,8 +37477,15 @@ SELECT ALL + + 85 * col0 FROM tab1 WHERE + ( col1 ) NOT IN ( + 11, - col1 ) # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT + - 41 col2 FROM tab0 AS cor0 WHERE NOT 5 / + col2 IS NOT NULL @@ -40323,8 +40753,15 @@ SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * col2 AS col2 FROM tab0 WHERE ( - # Datafusion - Expected - -64 # Datafusion - Expected - -9 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \- tab2\.col1 AS col0" at position 0 and "\(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 - + col1 AS col0, - col0 AS col0 FROM tab2 +---- +-28 +-37 +-46 +-64 +-75 +-9 query II rowsort SELECT DISTINCT - col0 AS col2, + col1 AS col0 FROM tab2 @@ -40968,8 +41405,10 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 2dd7860696e51a26759e9ce98d3bbccb -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 1 and "tab1\.col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 21 AS col1, col2 AS col2, + col2 FROM tab1 +---- +9 values hashing to d1031cd6f0587bb16efd63b58dbd40f1 query II rowsort SELECT col1 * - - col0 * col2 - - col1 AS col1, col2 AS col0 FROM tab0 WHERE NULL IS NOT NULL @@ -42474,8 +42913,11 @@ SELECT + COUNT ( * ) + + 76 col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 85 AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +3 +85 query I rowsort label-7002 SELECT - ( + col2 ) / - + col0 + 20 col0 FROM tab0 @@ -42640,8 +43082,15 @@ NULL # Datafusion - Expected - 46 # Datafusion - Expected - 99 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 / tab0\.col1 AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 / + col1 AS col2, + 46 AS col2 FROM tab0 +---- +0 +0 +46 +46 +46 +99 query I rowsort label-7027 SELECT 87 / + 82 + + col0 AS col1 FROM tab2 AS cor0 @@ -43254,8 +43703,15 @@ SELECT DISTINCT 15 col1 FROM tab0 AS cor0 # Datafusion - Expected - 16 # Datafusion - Expected - 58 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 58 AS col1, 16 AS col1 FROM tab0 AS cor0 +---- +16 +16 +16 +58 +58 +58 query I rowsort label-7132 SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + col1 + + 60 * - 77 AND NULL @@ -43562,8 +44018,15 @@ SELECT ALL - + col1 * col2 + + + col2 col1 FROM tab1 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - 5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab1\.col1 AS Int32\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( + col1 AS INTEGER ) AS col1, col0 col1 FROM tab1 +---- +14 +47 +5 +51 +85 +91 query III rowsort SELECT * FROM tab2 WHERE NULL = col1 * col0 * - - col1 @@ -43824,8 +44287,11 @@ SELECT 92 - - - col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, - 58 AS col1 FROM tab2 AS cor0 WHERE + col1 + 12 = NULL +---- +-58 +0 query I rowsort SELECT DISTINCT + col1 * 34 + + - 5 col0 FROM tab2 cor0 @@ -44102,8 +44568,15 @@ SELECT 12 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= NULL # Datafusion - Expected - 16 # Datafusion - Expected - -77 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col1 AS col1, + 16 AS col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +16 +16 +16 query II rowsort SELECT ALL + col1, + 71 AS col2 FROM tab2 @@ -44857,8 +45330,15 @@ SELECT ALL + col1 - + col1 + col0 * col0 AS col1 FROM tab2 # Datafusion - Expected - -87 # Datafusion - Expected - -5 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 5 AS col0, - col0 AS col0 FROM tab0 AS cor0 +---- +-15 +-5 +-5 +-5 +-87 +-97 query III rowsort label-7393 SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 ) * col0 >= CAST ( - col2 AS INTEGER ) @@ -45297,8 +45777,15 @@ SELECT DISTINCT - col1 * - 40 + - col0 - 62 FROM tab1 # Datafusion - Expected - 81 # Datafusion - Expected - 76 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \+ Int64\(95\) / \(\- tab0\.col0\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 76 + + 95 / + - col0 AS col0, 81 AS col0 FROM tab0 +---- +70 +75 +76 +81 +81 +81 query I rowsort SELECT - 98 * 24 + + col0 AS col1 FROM tab1 @@ -45326,8 +45813,15 @@ SELECT DISTINCT * FROM tab1 WHERE + + col2 / + ( 0 ) * - CAST ( NULL AS FLOAT8 ) # Datafusion - Expected - 10 # Datafusion - Expected - 97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* \(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col2 \+ \(\- cor0\.col1\) \+ cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 * - col0 AS col2, col2 + - col1 + col1 AS col2 FROM tab0 AS cor0 +---- +10 +1215 +1827 +47 +97 +99 query I rowsort SELECT DISTINCT - - 22 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL @@ -45633,8 +46127,9 @@ SELECT DISTINCT 10 * + col2 AS col2 FROM tab1 960 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "tab1\.col2 \* \(\- tab1\.col1\) \* \(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 AS col1, + col2 * + - col1 * - + col2 AS col1 FROM tab1 WHERE NOT NULL BETWEEN col2 AND NULL +---- query I rowsort label-7518 SELECT 56 * - - COUNT ( * ) FROM tab0 @@ -45796,8 +46291,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 15 * col0 ) # Datafusion - Expected - 81263 # Datafusion - Expected - -5 # Datafusion - Expected - 8075 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 \* cor0\.col1 \* Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + ( + - col1 ) col2, col0 * + col1 * + 19 AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +13566 +8075 +81263 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= 54 @@ -45995,8 +46497,15 @@ SELECT DISTINCT col1, 73 AS col0 FROM tab0 # Datafusion - Expected - 42 # Datafusion - Expected - 81 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, 42 col2 FROM tab0 cor0 +---- +1 +21 +42 +42 +42 +81 query I rowsort SELECT + + 29 * + col1 * - ( + 46 ) AS col2 FROM tab2 AS cor0 @@ -46253,8 +46762,15 @@ SELECT DISTINCT + - 9 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 35 # Datafusion - Expected - -58 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, + 35 AS col0 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +35 +35 +35 query I rowsort SELECT - col2 + - 72 FROM tab2 AS cor0 @@ -46585,8 +47101,15 @@ SELECT * FROM tab2 AS cor0 WHERE col0 * + CAST ( - col1 AS INTEGER ) * + 95 + + # Datafusion - Expected - 67 # Datafusion - Expected - 7068 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) \* Int64\(\-93\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 76 * ( - 93 ) AS col0, col1 AS col0 FROM tab2 AS cor0 +---- +51 +67 +7068 +7068 +7068 +77 query I rowsort label-7670 SELECT - - 22 * - - COUNT ( * ) * + 66 col1 FROM tab0 AS cor0 @@ -47057,8 +47580,15 @@ SELECT - 5 AS col0, + col0 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +NULL +NULL +NULL query II rowsort label-7744 SELECT DISTINCT COUNT ( * ) AS col0, - 95 * - - 59 FROM tab1 AS cor0 @@ -47879,8 +48409,15 @@ SELECT + 46 + + - 29 AS col2 FROM tab1 # Datafusion - Expected - -1312 # Datafusion - Expected - 0 # Datafusion - Expected - -1312 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 / \(\- tab0\.col0\) AS col0" at position 0 and "tab0\.col2 / \(\- tab0\.col1\) \* tab0\.col1 \+ Int64\(\-82\) \* Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 / - col0 AS col0, col2 / - col1 * + col1 + - 82 * 16 AS col0 FROM tab0 +---- +-1 +-1312 +-1312 +-1411 +-3 +0 query I rowsort label-7883 SELECT - col0 + 62 / + + col2 AS col1 FROM tab0 @@ -48696,8 +49233,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -5544 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(tab2\.col0\) \* CAST\(min\(tab2\.col2\) AS Int32\) \- count\(Int64\(1\)\) AS count\(\*\) / Int64\(73\) AS col1" at position 0 and "Int64\(99\) \* Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + AVG ( col0 ) * CAST ( MIN ( + + col2 ) AS INTEGER ) - + COUNT ( * ) / 73 AS col1, + 99 * - 56 AS col1 FROM tab2 WHERE NOT NULL > NULL +---- +-5544 +NULL query II rowsort SELECT ALL - col1 AS col1, col2 * - col1 col0 FROM tab1 @@ -48720,8 +49260,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 + + 69 NOT IN ( col0 + + 52 ) # Datafusion - Expected - -47 # Datafusion - Expected - 99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, - col2 AS col0 FROM tab0 +---- +-10 +-47 +-99 +10 +47 +99 query I rowsort label-8017 SELECT - COUNT ( * ) FROM tab0 WHERE NOT NULL <> 99 @@ -50017,8 +50564,15 @@ SELECT DISTINCT MIN ( + + col0 ) AS col1 FROM tab2 # Datafusion - Expected - -1995 # Datafusion - Expected - -81 # Datafusion - Expected - -7695 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col1" at position 0 and "tab0\.col1 \* \(\- Int64\(95\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, + col1 * - + 95 col1 FROM tab0 WHERE NOT NULL IS NOT NULL +---- +-1 +-1995 +-21 +-7695 +-81 +-95 query I rowsort label-8226 SELECT DISTINCT - + ( COUNT ( * ) ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -50253,8 +50807,15 @@ SELECT ALL 46 / + SUM ( + + col0 ) AS col0 FROM tab2 # Datafusion - Expected - 94 # Datafusion - Expected - 99 # Datafusion - Expected - 198 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / cor0\.col1 AS col0" at position 0 and "cor0\.col2 \- \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 / + col1 AS col0, col2 - + ( - col2 ) AS col0 FROM tab0 AS cor0 +---- +0 +0 +198 +20 +94 +99 query I rowsort SELECT - 98 AS col0 FROM tab2 AS cor0 WHERE NOT col1 <> NULL @@ -51824,8 +52385,15 @@ SELECT ALL + 62 - - - 88 FROM tab2 # Datafusion - Expected - -38 # Datafusion - Expected - 8 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \- \(\- \(\- tab2\.col1\)\) AS col2" at position 0 and "Int64\(13\) \+ \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 - - - col1 AS col2, 13 + - col1 col2 FROM tab2 +---- +-13 +-38 +-5 +-54 +-64 +8 query II rowsort SELECT col0 * - + 91, col2 AS col0 FROM tab0 @@ -52576,8 +53144,15 @@ SELECT ALL 82 * + col1, + col2 FROM tab0 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 2 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) / cor0\.col2 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 57 / col2 col1, + col0 AS col1 FROM tab2 AS cor0 +---- +0 +1 +2 +46 +64 +75 query I rowsort SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - + 70 AND + + 3 - + 16 @@ -52672,8 +53247,11 @@ SELECT DISTINCT - col0 * - col1 + + 0 * + col2 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "CAST\(avg\(DISTINCT Int64\(82\)\) AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 60 AS col1, + CAST ( + AVG ( DISTINCT 82 ) AS INTEGER ) * - COUNT ( * ) + 96 AS col1 FROM tab2 +---- +-150 +60 query I rowsort SELECT + col1 AS col0 FROM tab2 WHERE - col2 = + + col2 @@ -53625,8 +54203,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab0 +---- +3 +3 query II rowsort label-8830 SELECT COUNT ( * ), + MAX ( - CAST ( + col2 AS INTEGER ) ) + MIN ( - + col2 ) AS col0 FROM tab1 @@ -54307,8 +54888,15 @@ SELECT ALL - 54 * + ( - col0 ) / - - col0 FROM tab2 # Datafusion - Expected - 25 # Datafusion - Expected - 188 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \- \(\- tab2\.col2\) \+ Int64\(56\) \+ Int64\(92\) / \(\- tab2\.col1\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 - - + col2 + + + 56 + + 92 / - col1 col0, 25 AS col0 FROM tab2 +---- +124 +159 +188 +25 +25 +25 query I rowsort SELECT ALL 56 * - col1 AS col0 FROM tab0 cor0 WHERE ( NULL ) >= + ( - 32 ) @@ -55173,8 +55761,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 1 AS col0, + COUNT ( * ) / + 46 AS col0 FROM tab1 +---- +0 +1 query III rowsort SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( + col1 ) AND NULL @@ -55379,8 +55970,11 @@ 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\(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\. +query II valuesort SELECT + ( + MAX ( + - col0 ) ) col0, COUNT ( * ) + + COUNT ( * ) * + - 93 AS col0 FROM tab0 +---- +-15 +-276 query I rowsort label-9124 SELECT col2 / col2 * - - col1 AS col1 FROM tab1 @@ -55404,8 +55998,11 @@ 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\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(\-15\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 3 AS col2, 98 * - - COUNT ( * ) + - - 15 AS col2 FROM tab1 +---- +3 +309 query I rowsort SELECT - + 8 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 @@ -55726,8 +56323,15 @@ SELECT COUNT ( ALL + ( - col0 ) ) AS col2 FROM tab1 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( col1 ), col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT DISTINCT 77 - 15 AS col0 FROM tab2 @@ -55842,8 +56446,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN - - col1 * + 64 AND N # Datafusion - Expected - -37 # Datafusion - Expected - 99 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(\-37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, - 37 AS col0 FROM tab0 AS cor0 +---- +-37 +-37 +-37 +10 +47 +99 query III rowsort SELECT * FROM tab1 AS cor0 WHERE 41 = col2 @@ -56289,8 +56900,15 @@ NULL # Datafusion - Expected - 64 # Datafusion - Expected - 43 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 43 AS col1, col0 AS col1 FROM tab2 AS cor0 +---- +43 +43 +43 +46 +64 +75 query I rowsort label-9277 SELECT DISTINCT - - ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0 @@ -56447,8 +57065,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 85 IN ( - ( col1 ) ) # Datafusion - Expected - 68 # Datafusion - Expected - 64 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \+ cor0\.col2 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col1 + + + col2 AS col0, col2 AS col0 FROM tab1 AS cor0 +---- +110 +115 +59 +64 +68 +96 query I rowsort SELECT - - col0 AS col0 FROM tab0 AS cor0 WHERE NOT 3 * + col1 IS NULL @@ -58480,8 +59105,15 @@ SELECT ALL - 49 * 29 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - -24 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 24 AS col0, - col1 AS col0 FROM tab2 AS cor0 +---- +-24 +-24 +-24 +-51 +-67 +-77 query I rowsort label-9634 SELECT DISTINCT MAX ( DISTINCT - col2 ) FROM tab1 cor0 @@ -59325,8 +59957,15 @@ SELECT + col1 * 94 FROM tab0 # Datafusion - Expected - -47 # Datafusion - Expected - 15 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "\(\- tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 15 AS col2, - col1 col2 FROM tab1 +---- +-14 +-47 +-5 +15 +15 +15 query I rowsort SELECT ALL + col2 + + + col1 AS col1 FROM tab2 @@ -59791,8 +60430,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * - MIN ( DISTINCT + 90 ) AS col1, - 2 AS col1 FROM tab2 +---- +-2 +-270 query I rowsort label-9859 SELECT col1 / col2 / col1 FROM tab1 @@ -59858,8 +60500,10 @@ SELECT DISTINCT + ( col2 ) AS col0, col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 200fca005a4988ca43f784480b22fc68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 1 and "cor0\.col0 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - col2 * - col1 + col1 / - - col0 AS col0, + 76 AS col2, + col0 AS col2 FROM tab2 cor0 +---- +9 values hashing to c2ebede201f769e65c91720ff92fbcfb query I rowsort SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE ( NULL ) = - col1 + - 33 @@ -60238,8 +60882,11 @@ SELECT ALL col0 * - + ( + col2 ) * + col1 col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 910 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(35\) \* Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, 35 * + 26 col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 +---- +9 +910 query I rowsort label-9937 SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE - 50 NOT IN ( + col2 + + 60 ) diff --git a/data/sqlite/random/aggregates/slt_good_104.slt b/data/sqlite/random/aggregates/slt_good_104.slt index c99b8b4..1d6fc33 100644 --- a/data/sqlite/random/aggregates/slt_good_104.slt +++ b/data/sqlite/random/aggregates/slt_good_104.slt @@ -146,8 +146,10 @@ SELECT ALL - COUNT ( * ) * - 55 AS col1, + 21 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 44fa0a20756ff4ff14cc6a5c650377d5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT col2, + 80, col2 AS col2 FROM tab2 +---- +9 values hashing to 1371a507579163dd60f302bb13f5a976 query II rowsort SELECT ALL + col0 AS col0, 95 FROM tab2 @@ -1589,8 +1591,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND + - col0 # Datafusion - Expected - 40 # Datafusion - Expected - 28 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ Int64\(\-28\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 56 + + - 28 AS col0, col2 AS col0 FROM tab2 AS cor0 +---- +23 +28 +28 +28 +40 +58 query I rowsort label-258 SELECT ALL + SUM ( - + col0 ) FROM tab1 AS cor0 @@ -2528,8 +2537,15 @@ SELECT + COUNT ( * ) * - + 50 FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col2, col2 AS col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT ALL + - col2 * - + 45 + - col2 FROM tab0 AS cor0 WHERE - 18 IS NOT NULL @@ -4613,8 +4629,15 @@ SELECT ALL + ( col1 ) + + col2 FROM tab1 cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 5 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + ( - col1 ) AS col0, + col2 AS col0 FROM tab1 AS cor0 +---- +14 +47 +5 +59 +68 +96 query I rowsort SELECT col2 * + col2 FROM tab1 AS cor0 WHERE ( - col1 / + col1 ) NOT BETWEEN + ( - col0 ) AND 34 * - 96 @@ -4693,8 +4716,15 @@ SELECT + 64 + + - COUNT ( * ) col0 FROM tab1 AS cor0 # Datafusion - Expected - -297024 # Datafusion - Expected - 80 # Datafusion - Expected - -257712 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- cor0\.col1\) AS col2" at position 0 and "CAST\(Int64\(52\) AS Int32\) \* Int64\(\-84\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + - + col1 AS col2, CAST ( 52 AS INTEGER ) * - 84 * + ( col2 ) AS col2 FROM tab1 AS cor0 +---- +-257712 +-297024 +-419328 +37 +44 +80 query III rowsort SELECT DISTINCT * FROM tab2 cor0 WHERE col0 BETWEEN - 80 AND NULL @@ -4821,8 +4851,11 @@ 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\(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\. +query II valuesort SELECT ALL - ( + + COUNT ( * ) ) + - + 20 AS col1, + MIN ( DISTINCT + 52 ) AS col1 FROM tab1 AS cor0 +---- +-23 +52 query I rowsort SELECT - - ( + col1 ) + - col2 AS col0 FROM tab1 AS cor0 @@ -4924,8 +4957,11 @@ SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(cor0\.col1\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( + col1 ) AS col0, 97 AS col0 FROM tab0 AS cor0 +---- +81 +97 query I rowsort label-812 SELECT 80 * - + COUNT ( * ) * CAST ( - 92 AS INTEGER ) col2 FROM tab0 AS cor0 @@ -4954,8 +4990,15 @@ SELECT + MIN ( ALL - + 67 ) col2 FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - 40 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 40 AS col2, col0 AS col2 FROM tab2 +---- +40 +40 +40 +46 +64 +75 query II rowsort SELECT col0, 0 AS col2 FROM tab2 @@ -5152,8 +5195,15 @@ SELECT ALL + + MAX ( ALL + 85 ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 14 # Datafusion - Expected - 58 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, 14 col1 FROM tab2 +---- +14 +14 +14 +23 +40 +58 query I rowsort label-849 SELECT DISTINCT + + 87 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 59 + - ( ( CAST ( NULL AS INTEGER ) ) ) IS NULL @@ -5214,8 +5264,15 @@ NULL # Datafusion - Expected - 12 # Datafusion - Expected - -58 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, 12 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +12 +12 +12 query I rowsort SELECT col1 * + 51 * + col2 FROM tab1 AS cor0 @@ -5355,8 +5412,13 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> ( - col1 ) # Datafusion - Expected - 33 # Datafusion - Expected - 0 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \- \(\- tab2\.col2\) AS col2" at position 0 and "Int64\(33\) \+ \(\- tab2\.col0\) / Int64\(\-50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 - + - col2 AS col2, + 33 + - col0 / - 50 AS col2 FROM tab2 +---- +0 +0 +33 +34 query I rowsort SELECT ALL ( - col0 ) + 15 AS col1 FROM tab0 @@ -6277,8 +6339,15 @@ SELECT DISTINCT + col2 + - - 98 FROM tab2 AS cor0 # Datafusion - Expected - 94 # Datafusion - Expected - -77 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( - col1 ) AS col2, 94 AS col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +94 +94 +94 query I rowsort label-1027 SELECT DISTINCT + ( + + col2 ) + + - col2 / - - col0 + 59 FROM tab1 AS cor0 @@ -8321,8 +8390,15 @@ SELECT ALL MAX ( - col2 ) FROM tab0 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 AS col2, + col0 AS col2 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-1366 SELECT DISTINCT - MIN ( 41 ) FROM tab0 AS cor0 @@ -8579,8 +8655,15 @@ SELECT - - col1 AS col2 FROM tab1 AS cor0 WHERE 99 IS NULL # Datafusion - Expected - -5 # Datafusion - Expected - -8365 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col0 \+ Int64\(\-84\) AS col1" at position 0 and "cor0\.col2 / Int64\(87\) \- cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col0 * col0 + - 84 AS col1, + col2 / 87 - + col1 AS col1 FROM tab1 AS cor0 +---- +-13 +-2685 +-47 +-5 +-7309 +-8365 query I rowsort label-1415 SELECT - + SUM ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0 @@ -8817,8 +8900,15 @@ SELECT ALL * FROM tab1 WHERE + + 60 IS NOT NULL # Datafusion - Expected - -76 # Datafusion - Expected - 5096 # Datafusion - Expected - -118 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \* Int64\(\-56\) AS col1" at position 0 and "Int64\(\-71\) \- tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 * - 56 col1, - 71 - col1 AS col1 FROM tab1 +---- +-118 +-76 +-85 +2856 +4760 +5096 query II rowsort label-1453 SELECT + COUNT ( * ), MAX ( - 69 ) AS col0 FROM tab1 WHERE NOT + col1 * - col2 * - 19 NOT BETWEEN NULL AND + - 28 @@ -8953,8 +9043,15 @@ SELECT DISTINCT col2 * - 75 FROM tab0 # Datafusion - Expected - 938 # Datafusion - Expected - 99 # Datafusion - Expected - 110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 \- cor0\.col1 \* Int64\(\-11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, + col2 - + col1 * - 11 AS col1 FROM tab0 AS cor0 +---- +10 +110 +241 +47 +938 +99 query I rowsort SELECT + - col2 * - col1 - col2 + + col2 + - col0 + + col2 * col1 * - col0 FROM tab1 cor0 @@ -9830,8 +9927,15 @@ SELECT col1 * 67 FROM tab0 # Datafusion - Expected - -874 # Datafusion - Expected - 51 # Datafusion - Expected - -1216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-14\)\) \+ \(\- \(\- tab2\.col1\)\) \+ \(\- tab2\.col2\) AS col0" at position 0 and "Int64\(19\) \* \(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + - 14 ) + - - col1 + - col2 AS col0, 19 * - + col0 AS col0 FROM tab2 +---- +-1216 +-1425 +-874 +23 +42 +51 query I rowsort SELECT + col1 + - col2 * - + 56 AS col1 FROM tab2 @@ -9937,8 +10041,15 @@ SELECT + + 66 * + 36 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - -81 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 AS col0, + ( - + col0 ) AS col0 FROM tab0 AS cor0 +---- +-1 +-15 +-21 +-81 +-87 +-97 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT col1 < col0 * - col1 @@ -10454,8 +10565,11 @@ SELECT ALL * FROM tab0 WHERE NOT + 38 > NULL # 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\(DISTINCT \(\- tab1\.col1\)\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( DISTINCT - col1 ) AS col0, 78 AS col0 FROM tab1 +---- +3 +78 query I rowsort SELECT + ( + 7 ) + - col0 * - col1 * - - col0 FROM tab1 @@ -10763,8 +10877,15 @@ SELECT ALL - COUNT ( + col1 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 0 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 AS col1, - col1 AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +0 +0 +0 query I rowsort SELECT - ( + 93 ) * + + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL @@ -10849,8 +10970,15 @@ SELECT ALL COUNT ( * ) / - - 26 FROM tab2 AS cor0 WHERE NULL IN ( 98 * + col1 + # Datafusion - Expected - 64 # Datafusion - Expected - 4350 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* tab2\.col0 AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 * + col0 col2, col0 AS col2 FROM tab2 +---- +1058 +2560 +4350 +46 +64 +75 query III rowsort SELECT * FROM tab1 WHERE ( ( - - col0 ) IS NULL ) @@ -11167,8 +11295,11 @@ SELECT DISTINCT * FROM tab2 WHERE 64 + - - 12 + - + col2 = + 46 * - + col0 * - + # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 37 AS col0, + COUNT ( * ) AS col0 FROM tab1 +---- +-37 +3 query I rowsort label-1838 SELECT DISTINCT + col1 / col0 FROM tab0 WHERE - - col0 + - col1 + + CAST ( NULL AS INTEGER ) IS NULL @@ -11193,8 +11324,15 @@ SELECT - col0, 36 * col1 - + 17 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 1885 # Datafusion - Expected - 77 # Datafusion - Expected - 1885 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(29\) \* Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, 29 * 65 AS col2 FROM tab2 AS cor0 +---- +1885 +1885 +1885 +51 +67 +77 query I rowsort label-1841 SELECT + + 67 + COUNT ( * ) FROM tab1 AS cor0 @@ -11250,8 +11388,11 @@ SELECT DISTINCT + 54 * + COUNT ( DISTINCT - + 65 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-35\)\)\) AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MIN ( - 35 ) AS col2, 77 AS col2 FROM tab0 +---- +35 +77 query I rowsort label-1851 SELECT + COUNT ( * ) * - 65 AS col2 FROM tab0 WHERE - - 6 IS NULL @@ -11394,8 +11535,15 @@ SELECT 24 AS col2 FROM tab1, tab1 AS cor0 # Datafusion - Expected - 35 # Datafusion - Expected - 36 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 col0, 35 AS col0 FROM tab0 +---- +35 +35 +35 +36 +36 +36 query I rowsort SELECT DISTINCT + col2 * - col2 * + - 25 AS col0 FROM tab2 AS cor0 @@ -13099,8 +13247,15 @@ SELECT DISTINCT col1, + 82 * + 2 FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 AS col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query III rowsort SELECT * FROM tab2 WHERE NOT - + col1 + col1 IS NULL @@ -13215,8 +13370,15 @@ SELECT * FROM tab0 WHERE - 8 BETWEEN - col2 AND - col0 + col1 # Datafusion - Expected - 4698 # Datafusion - Expected - 77 # Datafusion - Expected - 3240 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "tab2\.col2 \* Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, + col2 * 81 AS col0 FROM tab2 +---- +1863 +3240 +4698 +51 +67 +77 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT col1 * - + col0 + + col2 IN ( ( - col2 ), col1 / col0 * + col2 / + + ( - col1 ) * col2 ) @@ -13230,8 +13392,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT col1 * - + col0 + + col2 IN ( ( - col2 ), # Datafusion - Expected - 22 # Datafusion - Expected - -9504 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* tab0\.col2 \+ tab0\.col2 AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * + col2 + col2 AS col0, 22 AS col0 FROM tab0 +---- +-658 +-860 +-9504 +22 +22 +22 query I rowsort SELECT ALL + 2 * col2 FROM tab2 @@ -13300,8 +13469,11 @@ SELECT ALL - COUNT ( * ) / - 34 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 2346 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col1 \* Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, col1 * + 46 AS col2 FROM tab2 AS cor0 WHERE NOT col1 >= + + 60 +---- +2346 +46 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1 @@ -13413,8 +13585,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL MIN ( + col2 ) AS col1, + ( + - COUNT ( * ) ) AS col1, + 96 FROM tab0 +---- +-3 +10 +96 query I rowsort SELECT col2 + col1 - + + 83 col0 FROM tab1 @@ -13554,8 +13730,15 @@ SELECT col1 FROM tab0 cor0 WHERE ( NOT + 18 * + col1 * col1 + - + col1 IS NOT NU # Datafusion - Expected - 3264 # Datafusion - Expected - 64 # Datafusion - Expected - 354 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col2 AS col1" at position 0 and "cor0\.col2 \+ \(\- cor0\.col2\) \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + + col2 AS col1, + col2 + - + col2 * - col1 AS col1 FROM tab1 AS cor0 +---- +110 +115 +1440 +3264 +354 +64 query III rowsort SELECT * FROM tab2 AS cor0 WHERE ( 45 ) + + 5 BETWEEN NULL AND NULL @@ -14098,8 +14281,9 @@ SELECT - col2 * - ( + - col0 ) * - col2 * - + 31 + + + 12 FROM tab0 AS cor0 -29471595 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(97\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - + 97 AS col1, + CAST ( NULL AS INTEGER ) col1, - col2 FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND NULL +---- query I rowsort SELECT ALL - 91 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL @@ -14260,8 +14444,11 @@ SELECT - 11 * + COUNT ( * ), - 45 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -87690 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col0" at position 0 and "Int64\(15\) \* Int64\(\-74\) \* \(\- Int64\(\-79\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 48 AS col0, 15 * - 74 * - - 79 col0 FROM tab2 +---- +-87690 +48 query II rowsort SELECT DISTINCT col1 AS col0, 28 + 83 FROM tab1 @@ -14733,8 +14920,11 @@ SELECT DISTINCT - + ( - + col0 ) AS col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-99\)\) AS col0" at position 0 and "\(\- CAST\(CAST\(min\(DISTINCT Int64\(\-75\)\) AS Int32\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 99 AS col0, - CAST ( + CAST ( MIN ( DISTINCT - 75 ) AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 AS cor0 +---- +75 +99 query I rowsort label-2418 SELECT ALL + SUM ( + + 73 ) FROM tab1 AS cor0 @@ -15716,8 +15906,15 @@ NULL # Datafusion - Expected - -54 # Datafusion - Expected - 728 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* Int64\(8\) AS col1" at position 0 and "tab1\.col1 \+ \(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * + + 8 col1, col1 + - col2 AS col1 FROM tab1 +---- +-21 +-54 +-82 +408 +680 +728 query I rowsort SELECT DISTINCT + ( col2 ) * col2 * col0 + + ( 98 ) AS col2 FROM tab0 @@ -17524,8 +17721,15 @@ NULL # Datafusion - Expected - 70 # Datafusion - Expected - 10 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 10 AS col2, 70 AS col2 FROM tab2 +---- +10 +10 +10 +70 +70 +70 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT 91 IS NULL @@ -18317,8 +18521,15 @@ SELECT DISTINCT - col0 + + - 26 FROM tab1 AS cor0 # Datafusion - Expected - 4 # Datafusion - Expected - 76 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 AS col2, 4 AS col2 FROM tab0 AS cor0 +---- +4 +4 +4 +76 +76 +76 query II rowsort label-3022 SELECT col2, col1 / + col0 FROM tab2 AS cor0 @@ -18547,8 +18758,15 @@ SELECT col2 AS col2, - 79 * + col0 AS col1 FROM tab2 # Datafusion - Expected - -68 # Datafusion - Expected - 88 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(88\)\)\) AS col0" at position 0 and "\(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - + 88 ) AS col0, - col2 col0 FROM tab1 +---- +-59 +-68 +-96 +88 +88 +88 query III rowsort SELECT ALL * FROM tab1 WHERE + + 95 / col1 BETWEEN NULL AND NULL @@ -18913,8 +19131,15 @@ SELECT ALL * FROM tab2 WHERE NOT + col0 = + - col1 # Datafusion - Expected - 1 # Datafusion - Expected - -230 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \* tab0\.col2 AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 23 * + col2 AS col2, + col1 AS col2 FROM tab0 +---- +-1081 +-2277 +-230 +1 +21 +81 query I rowsort label-3116 SELECT - CAST ( + col0 AS INTEGER ) + 5 col0 FROM tab2 AS cor0 WHERE - 16 IS NULL @@ -20143,8 +20368,15 @@ SELECT + 96 * + 40 FROM tab2 AS cor0 # Datafusion - Expected - -3034 # Datafusion - Expected - 58 # Datafusion - Expected - -2682 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(37\) \* \(\- cor0\.col1\) \- Int64\(66\) \+ \(\- cor0\.col1\) \- Int64\(79\) \- cor0\.col2 \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, + 37 * - col1 - + 66 + + - col1 - + 79 - + col2 + + col1 AS col1 FROM tab2 AS cor0 +---- +-2055 +-2682 +-3034 +23 +40 +58 query II rowsort SELECT DISTINCT col2 * - + col0 AS col1, + col1 * - 27 AS col2 FROM tab1 @@ -20700,8 +20932,15 @@ SELECT * FROM tab0 WHERE NOT + 90 * + 30 / col0 NOT IN ( col2 ) # Datafusion - Expected - -75 # Datafusion - Expected - -38 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \+ Int64\(39\) AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 + + 39 AS col1, - col0 AS col1 FROM tab2 +---- +-12 +-28 +-38 +-46 +-64 +-75 query I rowsort label-3418 SELECT + MIN ( - col2 ) col1 FROM tab2 @@ -21580,8 +21819,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 > - CAST ( NULL AS INTEGER ) # Datafusion - Expected - -47 # Datafusion - Expected - 96 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, - col1 AS col1 FROM tab1 cor0 +---- +-14 +-47 +-5 +59 +68 +96 query II rowsort SELECT ALL - 20, + col0 FROM tab0 AS cor0 @@ -21864,8 +22110,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) - 47 AS col1, 76 + - 95 AS col1 FROM tab2 AS cor0 +---- +-19 +-50 query III rowsort SELECT * FROM tab0 cor0 WHERE + ( - col0 ) IS NOT NULL @@ -22027,8 +22276,11 @@ SELECT - SUM ( ALL - col2 ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(\(\- CAST\(NULL AS Int32\)\)\) AS Int32\) AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + COUNT ( + - CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1, 8 AS col1 FROM tab2 AS cor0 +---- +0 +8 query II rowsort label-3637 SELECT ALL - 50 + 70 - - - 37 AS col1, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 @@ -22054,8 +22306,15 @@ SELECT DISTINCT - ( + + col1 ) + - 54 col0 FROM tab2 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, col0 AS col2 FROM tab0 AS cor0 +---- +15 +87 +97 +NULL +NULL +NULL query I rowsort label-3640 SELECT ALL - + 58 + COUNT ( * ) FROM tab1 AS cor0 @@ -22617,8 +22876,15 @@ SELECT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 57 IS NOT NULL # Datafusion - Expected - -1 # Datafusion - Expected - -400 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- Int64\(40\)\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 * - + 40 AS col0, - col1 AS col0 FROM tab0 AS cor0 +---- +-1 +-1880 +-21 +-3960 +-400 +-81 query I rowsort label-3730 SELECT ALL + ( 75 ) + + COUNT ( - - 69 ) FROM tab2 AS cor0 @@ -22650,8 +22916,15 @@ SELECT ALL - 31 FROM tab0 cor0 WHERE NOT NULL > 86 # Datafusion - Expected - -77 # Datafusion - Expected - -58 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 AS col0, - col1 col0 FROM tab2 AS cor0 +---- +-23 +-40 +-51 +-58 +-67 +-77 query I rowsort label-3735 SELECT 39 * - COUNT ( * ) + - 11 AS col0 FROM tab0 AS cor0 WHERE NULL IN ( + 86 * + ( - col0 ), col2 ) @@ -22694,8 +22967,15 @@ SELECT col0 + 37 AS col0 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ Int64\(27\) AS col1" at position 0 and "tab2\.col0 \+ \(\- CAST\(NULL AS Int32\)\) \+ tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 29 + + 27 AS col1, col0 + - CAST ( NULL AS INTEGER ) + col1 col1 FROM tab2 +---- +56 +56 +56 +NULL +NULL +NULL query I rowsort SELECT DISTINCT - col2 * - + 45 AS col1 FROM tab0 @@ -23839,8 +24119,15 @@ SELECT - + col0 + 66 FROM tab0 AS cor0 WHERE NOT 3 / + 34 <= NULL # Datafusion - Expected - 719 # Datafusion - Expected - 98 # Datafusion - Expected - 9617 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col2 AS col1" at position 0 and "cor0\.col0 \* cor0\.col2 \+ Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 + col2 col1, + col0 * + col2 + + + 14 AS col1 FROM tab0 cor0 +---- +-11 +-34 +719 +884 +9617 +98 query I rowsort SELECT - 17 + col2 + - col0 * - col2 FROM tab0 @@ -23895,8 +24182,15 @@ SELECT * FROM tab1 AS cor0 WHERE col0 * + 49 < + 45 - 99 # Datafusion - Expected - 21 # Datafusion - Expected - 5 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 AS col0, col1 AS col0 FROM tab0 AS cor0 +---- +1 +21 +5 +5 +5 +81 query I rowsort SELECT DISTINCT + 50 AS col1 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 ) @@ -24595,8 +24889,15 @@ SELECT ALL - 65 - + + 55 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -3480 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \* tab2\.col2 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 60 * + col2 col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 +---- +-1380 +-2400 +-3480 +NULL +NULL +NULL query I rowsort SELECT ALL 94 * + + 9 * - col2 FROM tab1 @@ -24654,8 +24955,15 @@ SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( + ( + col0 ) / - - ( - ( + - col1 ) # Datafusion - Expected - 90 # Datafusion - Expected - -97 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, 90 AS col0 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +90 +90 +90 query II rowsort label-4076 SELECT ALL ( CAST ( + + col1 AS INTEGER ) ) AS col2, col0 FROM tab2 cor0 @@ -24721,8 +25029,15 @@ SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND 22 # Datafusion - Expected - 78 # Datafusion - Expected - 9603 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* tab0\.col2 AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * + col2 AS col0, 78 AS col0 FROM tab0 +---- +705 +78 +78 +78 +870 +9603 query I rowsort label-4087 SELECT ( + - MIN ( ALL - 74 ) ) AS col2 FROM tab0 @@ -25050,8 +25365,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, + 67 AS col1 FROM tab0 AS cor0 +---- +-3 +67 query I rowsort label-4139 SELECT ALL + MIN ( ALL + + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col1 + col2 + - col1 IS NOT NULL ) @@ -25462,8 +25780,10 @@ SELECT DISTINCT - - 29 FROM tab2 AS cor0 WHERE + col2 + col1 - col2 * 50 + CAST # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to b81a2f28085a600771d441b02f0b2e7f -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 89 AS col2, col0 AS col2, + + ( 31 ) * + - col0 FROM tab2 AS cor0 +---- +9 values hashing to 2f1749e6ab946da3484e80977060c315 query I rowsort SELECT + - col1 FROM tab2 WHERE NOT NULL > + col2 @@ -26964,8 +27284,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE - 77 IS NULL # Datafusion - Expected - 0 # Datafusion - Expected - 92 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ tab2\.col0 AS col2" at position 0 and "tab2\.col2 / \(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 + col0 col2, col2 / - col0 AS col2 FROM tab2 +---- +0 +0 +0 +128 +150 +92 query I rowsort SELECT - - 32 - + col0 AS col1 FROM tab2 AS cor0 @@ -27116,8 +27443,15 @@ SELECT ALL MAX ( DISTINCT - - col1 ) FROM tab0 # Datafusion - Expected - 21 # Datafusion - Expected - 77 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 AS col2, col1 AS col2 FROM tab0 +---- +1 +21 +77 +77 +77 +81 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -27262,8 +27596,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, 0 AS col0 FROM tab2 AS cor0 +---- +-3 +0 query I rowsort label-4507 SELECT DISTINCT - + COUNT ( * ) + - COUNT ( col1 ) FROM tab0 AS cor0 @@ -27371,8 +27708,15 @@ SELECT col0 / 23 / + col1 AS col2 FROM tab2 # Datafusion - Expected - -174 # Datafusion - Expected - 59 # Datafusion - Expected - -180 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "\(\- tab1\.col0\) \+ Int64\(\-89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 AS col0, - col0 + - 89 AS col0 FROM tab1 +---- +-140 +-174 +-180 +59 +59 +59 query I rowsort SELECT ALL col0 * - - col2 AS col1 FROM tab0 @@ -27560,8 +27904,11 @@ SELECT ALL + col0 + + - col0 + - col2 AS col0 FROM tab1 WHERE NULL IS 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 "max\(Int64\(60\)\) \+ \(\- \(\- CAST\(NULL AS Float64\)\)\) AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + MAX ( + 60 ) + - - CAST ( NULL AS FLOAT8 ) AS col0, + 53 AS col0 FROM tab0 +---- +53 +NULL query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 NOT IN ( - col1 * col0, - col1 ) @@ -29447,8 +29794,15 @@ SELECT ALL 18 * - 16 + - - 32 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 90 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \+ \(\- tab2\.col0\) \+ tab2\.col1 AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + - col0 + col1 AS col0, + 21 AS col0 FROM tab2 +---- +21 +21 +21 +56 +59 +90 query I rowsort label-4868 SELECT DISTINCT + 82 / - col0 FROM tab2 @@ -30119,8 +30473,15 @@ SELECT + + 81, - 54 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 580 # Datafusion - Expected - 97 # Datafusion - Expected - 5742 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab0\.col0\)\) AS col1" at position 0 and "Int64\(\-58\) \* \(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - col0 ) AS col1, - 58 * - col2 AS col1 FROM tab0 +---- +15 +2726 +5742 +580 +87 +97 query I rowsort label-4973 SELECT + COUNT ( * ) * - + ( 42 ) FROM tab1 AS cor0 @@ -31831,8 +32192,12 @@ 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\(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\. +query III valuesort SELECT DISTINCT - CAST ( - 75 AS INTEGER ), COUNT ( * ) + + - ( - COUNT ( * ) ) AS col0, ( - + 54 ) AS col0 FROM tab2 +---- +-54 +6 +75 query II rowsort label-5259 SELECT CAST ( + + col0 AS INTEGER ) * - col2 AS col0, + 63 AS col1 FROM tab0 AS cor0 @@ -33779,8 +34144,15 @@ SELECT DISTINCT - col1 + + + col2 / + col0 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -115 # Datafusion - Expected - 67 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col2" at position 0 and "\(\- cor0\.col2\) \+ \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 AS col2, - col2 + - col1 AS col2 FROM tab1 AS cor0 +---- +-110 +-115 +-64 +67 +67 +67 query II rowsort label-5571 SELECT - 72, + 70 * - + COUNT ( * ) AS col0 FROM tab0 AS cor0 @@ -33917,8 +34289,15 @@ SELECT DISTINCT - MAX ( - ( + col2 ) ) FROM tab1 cor0 # Datafusion - Expected - 75 # Datafusion - Expected - -77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - col1 ) AS col2, + col0 AS col2 FROM tab2 +---- +-51 +-67 +-77 +46 +64 +75 query I rowsort SELECT + 46 * + col0 FROM tab2 @@ -34167,8 +34546,15 @@ SELECT DISTINCT + 69 * + col2 AS col1 FROM tab1 # Datafusion - Expected - 68 # Datafusion - Expected - NULL # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- CAST\(NULL AS Int32\)\) \* cor0\.col1 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col2 * + - CAST ( NULL AS INTEGER ) * + col1 AS col1, col2 AS col1 FROM tab1 cor0 +---- +59 +68 +96 +NULL +NULL +NULL query I rowsort SELECT DISTINCT + 55 FROM tab0 AS cor0 WHERE NULL < + col0 @@ -35463,8 +35849,15 @@ SELECT - MAX ( col1 ) col0 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2, + col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -35661,8 +36054,15 @@ SELECT DISTINCT - - col2 AS col1 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS IN # Datafusion - Expected - -22 # Datafusion - Expected - -75 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(\-22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col1, - 22 AS col1 FROM tab2 AS cor0 +---- +-22 +-22 +-22 +-46 +-64 +-75 query I rowsort SELECT DISTINCT + 17 col1 FROM tab1 AS cor0 @@ -35791,8 +36191,15 @@ SELECT DISTINCT + ( - col0 ) AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL A # Datafusion - Expected - 14 # Datafusion - Expected - -99 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \+ \(\- tab1\.col0\) \- tab1\.col0 AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 + - col0 - + col0 AS col2, col1 AS col2 FROM tab1 +---- +-111 +-31 +-99 +14 +47 +5 query I rowsort SELECT DISTINCT + - col0 col2 FROM tab2 WHERE NULL <> NULL @@ -35913,8 +36320,15 @@ SELECT - SUM ( ALL 12 ) AS col1 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( col2 ), col2 FROM tab0 cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT DISTINCT + col1 * + col2 * - col0 - col2 + + + col1 FROM tab2 AS cor0 @@ -36079,8 +36493,15 @@ SELECT DISTINCT - col2 + col2 / - + col0 FROM tab2 AS cor0 # Datafusion - Expected - -3080 # Datafusion - Expected - 40 # Datafusion - Expected - -3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \- \(\- cor0\.col2\) / Int64\(87\) \* cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col1\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 40 - - col2 / 87 * + col0 AS col1, - col1 * col2 AS col1 FROM tab2 cor0 +---- +-1173 +-3080 +-3886 +40 +40 +40 query III rowsort SELECT * FROM tab1 cor0 WHERE 0 * + col0 IS NULL @@ -37004,8 +37425,11 @@ SELECT DISTINCT + col2 col2, - 84 + + 20 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "min\(DISTINCT tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 AS col1, + MIN ( DISTINCT + col2 ) AS col1 FROM tab1 +---- +59 +78 query II rowsort SELECT + col2, 14 AS col1 FROM tab1 @@ -37108,8 +37532,11 @@ SELECT DISTINCT * FROM tab2 WHERE NOT - 92 + + + col0 * + 91 * + col0 + col1 IS # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, 44 AS col2 FROM tab1 +---- +3 +44 query I rowsort label-6109 SELECT DISTINCT col2 / + 1 + + + col2 AS col2 FROM tab2 @@ -37796,8 +38223,10 @@ SELECT col1 + + - 98 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to bf5547a31df6b17645841c112cc30144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 1 and "Int64\(61\) \+ cor0\.col1 \* Int64\(\-53\) \* cor0\.col0 \* cor0\.col0 \+ \(\- cor0\.col0\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - - col1 + + 18 / - 98, + col1 AS col2, + 61 + col1 * - 53 * + col0 * + col0 + - col0 AS col2 FROM tab2 cor0 +---- +9 values hashing to 7166b0c098c27dd61c5d084c83dd7319 query I rowsort SELECT ALL + col0 + - ( col2 ) FROM tab1 cor0 @@ -38369,8 +38798,15 @@ NULL # Datafusion - Expected - 26 # Datafusion - Expected - -214760 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* \(\- Int64\(\-40\)\) \* \(\- tab1\.col0\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 59 * - - 40 * - + col0 AS col0, 26 AS col0 FROM tab1 +---- +-120360 +-200600 +-214760 +26 +26 +26 query I rowsort label-6319 SELECT - - COUNT ( ALL + - col0 ) AS col1 FROM tab0 AS cor0 @@ -38894,8 +39330,15 @@ SELECT COUNT ( * ) * 91 AS col1 FROM tab0 # Datafusion - Expected - 99 # Datafusion - Expected - 17 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "Int64\(89\) \+ Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 AS col0, + 89 + 10 AS col0 FROM tab2 +---- +17 +17 +17 +99 +99 +99 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT + 49 NOT IN ( col1 * 86, 59, 40 + - col1 ) @@ -39933,8 +40376,15 @@ SELECT DISTINCT - MAX ( DISTINCT + col2 ) AS col1 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 81 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col2, col0 AS col2 FROM tab0 +---- +1 +15 +21 +81 +87 +97 query I rowsort SELECT - 21 * - 32 + + 6 AS col0 FROM tab2 @@ -41001,8 +41451,9 @@ SELECT col1, - col1 FROM tab0 WHERE NOT - col1 IS NULL -81 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(86\) \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, 86 * - col1 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) = col0 * + col0 +---- query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT - ( + - col2 ) NOT BETWEEN + 56 AND NULL @@ -41403,8 +41854,15 @@ SELECT + 81 * + col0 col0 FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col1, col0 AS col1 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT DISTINCT col2 AS col2 FROM tab1 WHERE - - col1 IS NOT NULL @@ -41491,8 +41949,11 @@ SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE + col2 > + 81 + - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 4788 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(63\) \* Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col2, 63 * 76 AS col2 FROM tab1 AS cor0 WHERE - 46 IS NOT NULL +---- +3 +4788 query I rowsort label-6841 SELECT 83 / CAST ( + + col2 AS INTEGER ) col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL @@ -41984,8 +42445,15 @@ SELECT - COUNT ( * ) * + COUNT ( * ) + + ( + 35 ) - 28 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - -1092 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \* Int64\(52\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 21 * + + 52 AS col2, col1 AS col2 FROM tab0 AS cor0 +---- +-1092 +-1092 +-1092 +1 +21 +81 query II rowsort label-6922 SELECT - col0 / + - ( - col0 ) AS col2, + 98 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL @@ -42526,8 +42994,15 @@ SELECT + 21 + + 54 AS col2 FROM tab1 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col0, + col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-7013 SELECT MIN ( DISTINCT - 18 ) col1 FROM tab1 @@ -42746,8 +43221,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT - 93 + col0 IS NULL # Datafusion - Expected - -210 # Datafusion - Expected - 9409 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col0 AS col1" at position 0 and "cor0\.col1 \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * col0 AS col1, + col1 * - + col2 AS col1 FROM tab0 AS cor0 +---- +-210 +-3807 +-99 +225 +7569 +9409 query I rowsort SELECT ALL + 23 * - - col1 FROM tab0 AS cor0 @@ -43428,8 +43910,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT ( - 10 + - col0 ) = col2 + + col1 # Datafusion - Expected - -880 # Datafusion - Expected - 29 # Datafusion - Expected - -9702 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col0" at position 0 and "\(\- tab0\.col2\) \+ tab0\.col0 \* \(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + + 29 ) AS col0, - col2 + + + col0 * - col2 AS col0 FROM tab0 +---- +-752 +-880 +-9702 +29 +29 +29 query I rowsort label-7164 SELECT col0 / - + col0 AS col2 FROM tab1 @@ -43865,8 +44354,15 @@ SELECT ALL - - 7 col2 FROM tab2 AS cor0 # Datafusion - Expected - 37 # Datafusion - Expected - 5 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col2, + 37 AS col2 FROM tab1 AS cor0 +---- +14 +37 +37 +37 +47 +5 query II rowsort SELECT DISTINCT - col0, col2 * - col2 AS col0 FROM tab0 AS cor0 @@ -45451,8 +45947,15 @@ SELECT + CAST ( + 40 AS INTEGER ) AS col2, col2 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 1870 # Datafusion - Expected - 0 # Datafusion - Expected - 2002 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- cor0\.col1 AS col0" at position 0 and "cor0\.col0 \* Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 - + + col1 AS col0, col0 * + 22 AS col0 FROM tab1 AS cor0 +---- +0 +0 +0 +1122 +1870 +2002 query I rowsort SELECT DISTINCT + 27 + col0 FROM tab1 @@ -45486,8 +45989,15 @@ SELECT ALL 97 AS col1, + 68 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col2, + col2 FROM tab1 cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT 25 col0 FROM tab0 cor0 @@ -47486,8 +47996,11 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 195 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "sum\(tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, SUM ( ALL + col1 ) col0 FROM tab2 +---- +195 +3 query III rowsort SELECT * FROM tab1 WHERE col1 NOT BETWEEN NULL AND NULL @@ -48048,8 +48561,15 @@ SELECT SUM ( ALL 67 ) AS col0 FROM tab2 # Datafusion - Expected - 705 # Datafusion - Expected - 99 # Datafusion - Expected - 9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "tab0\.col0 \* tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, col0 * + + col2 AS col1 FROM tab0 +---- +10 +47 +705 +870 +9603 +99 query I rowsort SELECT col0 + + 9 FROM tab1 @@ -49170,8 +49690,15 @@ SELECT DISTINCT - ( + 55 ) AS col2 FROM tab1 # Datafusion - Expected - -75 # Datafusion - Expected - 97 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \+ tab0\.col2 AS col0" at position 0 and "Int64\(\-75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + + col2 AS col0, - 75 AS col0 FROM tab0 +---- +-75 +-75 +-75 +196 +62 +97 query II rowsort label-8110 SELECT ALL col1 AS col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 @@ -49300,8 +49827,15 @@ SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT - - col2 = ( col2 ) # Datafusion - Expected - 75 # Datafusion - Expected - -97 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) / Int64\(91\) \+ \(\- cor0\.col0\) \+ \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 / + 91 + - col0 + - + col1 AS col2, + col0 AS col2 FROM tab2 AS cor0 +---- +-141 +-142 +-97 +46 +64 +75 query I rowsort SELECT ALL ( - + ( + col1 ) ) AS col0 FROM tab1 AS cor0 @@ -49988,8 +50522,15 @@ SELECT * FROM tab0 cor0 WHERE NOT NULL IN ( 2, - col1 ) # Datafusion - Expected - 0 # Datafusion - Expected - 99 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col2\) \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, + ( - + col2 ) + col2 AS col1 FROM tab0 AS cor0 +---- +0 +0 +0 +10 +47 +99 query I rowsort SELECT DISTINCT 6 * + col1 AS col1 FROM tab2 @@ -50049,8 +50590,15 @@ SELECT ALL * FROM tab2 WHERE NOT - 76 BETWEEN + + col0 AND + col0 # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* tab0\.col0 AS col0" at position 0 and "tab0\.col2 \* Int64\(\-68\) \+ CAST\(NULL AS Float64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 1 * + col0 AS col0, + col2 * - 68 + + + CAST ( NULL AS FLOAT8 ) AS col0 FROM tab0 +---- +15 +87 +97 +NULL +NULL +NULL query I rowsort SELECT DISTINCT 5 * - - 22 FROM tab1 @@ -50077,8 +50625,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( + ( + 8 ) ) col0, - COUNT ( * ) AS col0 FROM tab0 +---- +-3 +3 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -50284,8 +50835,15 @@ SELECT DISTINCT col0, 34 AS col2 FROM tab2 # Datafusion - Expected - 22 # Datafusion - Expected - -64 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 64 AS col1, 22 AS col1 FROM tab1 +---- +-64 +-64 +-64 +22 +22 +22 query I rowsort SELECT + 65 / - 41 * - + 25 * + + col2 * - 15 AS col2 FROM tab2 WHERE + col2 > + 27 * col2 @@ -50732,8 +51290,15 @@ SELECT DISTINCT * FROM tab1 WHERE - 35 = NULL # Datafusion - Expected - 47 # Datafusion - Expected - 6 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 6 col0, + col1 AS col0 FROM tab1 +---- +14 +47 +5 +6 +6 +6 query III rowsort SELECT * FROM tab1 WHERE NOT + col1 + 51 * - - 49 IS NOT NULL @@ -50910,8 +51475,15 @@ SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL # Datafusion - Expected - 96 # Datafusion - Expected - 75 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 \* cor0\.col1 / cor0\.col2 \- Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, col0 * col1 / col2 - + 27 col2 FROM tab2 AS cor0 +---- +46 +59 +64 +75 +75 +96 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > - col0 + ( - + 17 ) @@ -51195,14 +51767,24 @@ SELECT - - COUNT ( * ) FROM tab0 WHERE NOT NULL <> NULL # Datafusion - Expected - 2430 # Datafusion - Expected - -99 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col0" at position 0 and "Int64\(30\) \* tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, 30 * col1 AS col0 FROM tab0 +---- +-10 +-47 +-99 +2430 +30 +630 # 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\(1\)\) AS count\(\*\) \- Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 40 AS col0, COUNT ( * ) - + + 65 AS col0 FROM tab1 WHERE NOT + col0 BETWEEN NULL AND - 14 + + col2 +---- +-63 +40 query I rowsort SELECT - col0 * + 60 col0 FROM tab0 @@ -52653,8 +53235,9 @@ SELECT + + 64 * + - col0 FROM tab0 AS cor0 -960 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) / cor0\.col2 AS col2" at position 0 and "cor0\.col1 / cor0\.col2 \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 / + col2 col2, + col1 / col2 * col0 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN col0 + - col2 - + + col1 AND 9 +---- query I rowsort label-8686 SELECT ALL + COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL >= ( - col1 ) * - - 25 @@ -53956,8 +54539,15 @@ SELECT ALL + col1 / + col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Expected - 870 # Datafusion - Expected - 96 # Datafusion - Expected - 705 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \+ \(\- \(\- cor0\.col1\)\) 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 II valuesort SELECT + 15 + - - ( col1 ) AS col1, col0 * col2 AS col1 FROM tab0 AS cor0 +---- +16 +36 +705 +870 +96 +9603 query I rowsort SELECT ALL + col2 FROM tab0 WHERE - 57 = NULL @@ -54943,8 +55533,15 @@ SELECT ALL - - COUNT ( * ) + + 19 AS col0 FROM tab1 cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 FROM tab2 cor0 WHERE ( NULL ) IS NULL +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT DISTINCT - col2 + 48 col0 FROM tab0 AS cor0 @@ -55474,14 +56071,24 @@ SELECT ALL + col0 + + 76 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -72 # Datafusion - Expected - 77 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(\-72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, - 72 AS col0 FROM tab2 AS cor0 +---- +-72 +-72 +-72 +51 +67 +77 # 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 "sum\(\(\- Int64\(40\)\)\) 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 II valuesort SELECT ALL + SUM ( ALL + - ( + + 40 ) ) AS col1, + COUNT ( + 86 ) col1 FROM tab1 AS cor0 +---- +-120 +3 query I rowsort label-9151 SELECT ALL + COUNT ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0 @@ -55954,8 +56561,15 @@ SELECT DISTINCT + 31 * + 93 AS col2 FROM tab1 # Datafusion - Expected - -66 # Datafusion - Expected - -1875 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* \(\- tab2\.col0\) AS col2" at position 0 and "Int64\(\-66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 25 * - col0 AS col2, - 66 AS col2 FROM tab2 +---- +-1150 +-1600 +-1875 +-66 +-66 +-66 query I rowsort SELECT col0 FROM tab0 WHERE NOT - + col2 < ( col0 ) @@ -56037,8 +56651,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) = - col2 # Datafusion - Expected - -70 # Datafusion - Expected - -88 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col2" at position 0 and "Int64\(\-70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 88 AS col2, ( - 70 ) AS col2 FROM tab2 +---- +-70 +-70 +-70 +-88 +-88 +-88 query II rowsort SELECT 5 AS col1, col1 - - col0 FROM tab2 @@ -57253,8 +57874,15 @@ SELECT + ( CAST ( + CAST ( + col1 AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab0 # Datafusion - Expected - 78 # Datafusion - Expected - -8 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col0" at position 0 and "\(\- tab0\.col1\) \+ \(\- Int64\(\-99\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 8 AS col0, - col1 + - - 99 AS col0 FROM tab0 +---- +-8 +-8 +-8 +18 +78 +98 query III rowsort SELECT * FROM tab2 WHERE NOT 17 IS NULL @@ -57972,8 +58600,15 @@ SELECT 32 * - SUM ( + + ( + col2 ) ) FROM tab0 # Datafusion - Expected - 40 # Datafusion - Expected - 51 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 col1, col2 AS col1 FROM tab2 +---- +23 +40 +51 +51 +51 +58 query I rowsort label-9559 SELECT col2 / + 37 AS col0 FROM tab0 @@ -58492,8 +59127,15 @@ SELECT + MAX ( ALL + col1 ) AS col2 FROM tab2 # Datafusion - Expected - 20 # Datafusion - Expected - 58 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, 20 col1 FROM tab2 +---- +20 +20 +20 +23 +40 +58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 @@ -58664,8 +59306,11 @@ SELECT DISTINCT - - 53 * - 93 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(cor0\.col0\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( + col0 ) AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +3 +3 query I rowsort SELECT + col1 * 94 FROM tab1 cor0 @@ -58757,8 +59402,15 @@ NULL # Datafusion - Expected - -70 # Datafusion - Expected - 59 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \- \(\- cor0\.col1\) \+ \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(\-70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 - + - col1 + - col0 AS col2, - 70 col2 FROM tab2 cor0 +---- +-70 +-70 +-70 +38 +51 +59 query I rowsort label-9685 SELECT ALL - col2 + + col0 + + 7 / 79 + - 55 + + ( - - col1 ) FROM tab2 AS cor0 @@ -58803,8 +59455,15 @@ SELECT COUNT ( * ) / + 70 FROM tab2 # Datafusion - Expected - 217 # Datafusion - Expected - 0 # Datafusion - Expected - 626 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 / Int64\(92\) AS col1" at position 0 and "tab0\.col2 \* \(\- CAST\(Int64\(\-13\) AS Int32\)\) \+ tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 / + 92 AS col1, col2 * + - CAST ( - 13 AS INTEGER ) + + col0 AS col1 FROM tab0 +---- +0 +0 +0 +1384 +217 +626 query I rowsort SELECT DISTINCT ( + col0 ) + - col2 AS col0 FROM tab2 @@ -59018,8 +59677,15 @@ SELECT + + 77 * - - 20 * - col0 * 7 FROM tab0 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - 580 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(10\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 * 10 AS col2, - col2 AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +230 +400 +580 query III rowsort SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NOT col2 IS NOT NULL ) @@ -60567,8 +61233,15 @@ SELECT col0 col0, 96 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1, - col1 FROM tab1 AS cor0 +---- +-14 +-14 +-47 +-47 +-5 +-5 query I rowsort label-9976 SELECT DISTINCT - COUNT ( * ) / - 85 + - COUNT ( * ) col1 FROM tab2 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_105.slt b/data/sqlite/random/aggregates/slt_good_105.slt index 7462d5a..8c92d57 100644 --- a/data/sqlite/random/aggregates/slt_good_105.slt +++ b/data/sqlite/random/aggregates/slt_good_105.slt @@ -600,8 +600,15 @@ SELECT 19 / 51 AS col0 FROM tab2 # Datafusion - Expected - -79 # Datafusion - Expected - 49107 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-57\)\) \* cor0\.col2 \* Int64\(86\) \+ cor0\.col0 AS col0" at position 0 and "Int64\(20\) \- CAST\(cor0\.col2 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - 57 ) * + col2 * 86 + col0 AS col0, + 20 - + CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0 +---- +-27 +-79 +10 +230409 +485395 +49107 query I rowsort SELECT DISTINCT 87 * + - col2 FROM tab0 @@ -651,8 +658,15 @@ SELECT col1 AS col2, + 2 col1 FROM tab2 AS cor0 # Datafusion - Expected - -19 # Datafusion - Expected - 60 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 60 col0, ( - 19 ) AS col0 FROM tab1 +---- +-19 +-19 +-19 +60 +60 +60 query I rowsort label-101 SELECT SUM ( + 74 ) FROM tab0 @@ -817,8 +831,11 @@ SELECT SUM ( 57 ) AS col1 FROM tab0 AS cor0 WHERE - col0 < + 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 AS col2, COUNT ( * ) col2 FROM tab2 AS cor0 +---- +13 +3 query I rowsort SELECT + - 25 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 @@ -1573,8 +1590,15 @@ SELECT col1 * + 7 AS col0 FROM tab2 # Datafusion - Expected - 25 # Datafusion - Expected - -63 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-63\)\)\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - - 63 ) AS col0, 25 AS col0 FROM tab0 +---- +-63 +-63 +-63 +25 +25 +25 query I rowsort label-247 SELECT 39 * + - COUNT ( col2 ) AS col2 FROM tab0 @@ -2919,8 +2943,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT col0 * + ( - 19 ) IS NOT NULL # Datafusion - Expected - -94 # Datafusion - Expected - 75 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(\-94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, - 94 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL +---- +-94 +-94 +-94 +46 +64 +75 query II rowsort SELECT ALL + col0 + - - ( - 21 ) AS col0, col1 FROM tab2 @@ -3309,8 +3340,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 + + + col2 + + + CAST ( NUL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( col1 ), col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT ALL - 65 * + ( col0 ) FROM tab0 @@ -3383,8 +3421,15 @@ SELECT ( - + 90 ) AS col1 FROM tab2 # Datafusion - Expected - 104 # Datafusion - Expected - 58 # Datafusion - Expected - 133 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "tab2\.col2 \+ \(\- \(\- tab2\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, col2 + - - col0 AS col1 FROM tab2 +---- +104 +133 +23 +40 +58 +69 query I rowsort SELECT ALL + col1 * - 74 AS col2 FROM tab0 @@ -3458,8 +3503,15 @@ SELECT ALL + col0 * - 93 * 72 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -97 # Datafusion - Expected - 830 # Datafusion - Expected - -38367 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* \(\- tab0\.col2\) AS col1" at position 0 and "tab0\.col1 \* \(\- tab0\.col1\) \* tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 83 * - col2 col1, col1 * - + col1 * + col0 AS col1 FROM tab0 +---- +-38367 +-97 +-98415 +3901 +8217 +830 query I rowsort SELECT + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL @@ -5030,8 +5082,15 @@ SELECT * FROM tab1 AS cor0 WHERE - col0 = + - col0 + + 75 # Datafusion - Expected - -6336 # Datafusion - Expected - 93 # Datafusion - Expected - -640 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "cor0\.col2 \* Int64\(\-64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 93 AS col1, + col2 * - 64 AS col1 FROM tab0 AS cor0 +---- +-3008 +-6336 +-640 +93 +93 +93 query III rowsort SELECT * FROM tab2 AS cor0 WHERE - 84 + col0 IS NULL @@ -5375,8 +5434,11 @@ SELECT 84 FROM tab1 AS cor0 WHERE ( NOT ( NULL > ( + col2 * + col1 * 29 * - col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 56 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +3 +56 query I rowsort SELECT - 79 FROM tab2 cor0 WHERE ( NOT col1 - - col2 IS NOT NULL ) @@ -6182,8 +6244,9 @@ SELECT + - 41 * + + ( 55 ) col2 FROM tab0 AS cor0 -2255 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(\-64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col1, - 64 AS col1 FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( + 73 ) +---- query I rowsort label-993 SELECT 59 / + col1 - - ( + - ( col0 ) ) * + - col0 AS col0 FROM tab0 AS cor0 @@ -6222,8 +6285,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, + 98 AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL +---- +0 +98 query I rowsort SELECT DISTINCT - ( + + 20 ) FROM tab2 cor0 @@ -8824,8 +8890,15 @@ SELECT DISTINCT + col0 + + col2 * + + col2 AS col1 FROM tab2 # Datafusion - Expected - 25141 # Datafusion - Expected - 6 # Datafusion - Expected - 290860 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \+ \(\- \(\- tab1\.col0\)\) AS col2" at position 0 and "tab1\.col2 \* tab1\.col1 \* tab1\.col0 \- tab1\.col1 \+ Int64\(83\) \- Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 85 + - + ( - + col0 ) AS col2, col2 * + col1 * col0 - + + col1 + 83 - 12 AS col2 FROM tab1 +---- +-34 +0 +25141 +290860 +6 +68601 query II rowsort label-1428 SELECT 19 + - CAST ( NULL AS INTEGER ), + COUNT ( 53 ) + + 72 AS col1 FROM tab0 @@ -10466,8 +10539,11 @@ SELECT DISTINCT + ( - SUM ( + + col2 ) ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - -195 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col2" at position 0 and "\(\- sum\(tab2\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 66 AS col2, - SUM ( ALL col1 ) col2 FROM tab2 +---- +-195 +66 query I rowsort label-1706 SELECT ALL + COUNT ( * ) * SUM ( ALL + col2 * + col2 ) AS col0 FROM tab2 AS cor0 WHERE ( col1 * - col2 ) BETWEEN NULL AND ( + 38 ) @@ -10947,8 +11023,15 @@ SELECT DISTINCT - 17 AS col1 FROM tab2 WHERE NOT NULL >= ( NULL ) AND ( - 51 ) I # Datafusion - Expected - 65 # Datafusion - Expected - 67 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ tab1\.col0 \- tab1\.col2 \+ \(\- tab1\.col1\) AS col1" at position 0 and "Int64\(6\) \- \(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + + ( col0 ) - + + col2 + + - col1 AS col1, 6 - - col2 AS col1 FROM tab1 +---- +-8 +102 +106 +65 +67 +74 query I rowsort SELECT DISTINCT + col0 * - - col1 + + col0 FROM tab2 @@ -11952,8 +12035,10 @@ SELECT ALL * FROM tab0 WHERE + col1 < - col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to b02dffe5176ae8a19de8a147af89d9a6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "tab0\.col0 \+ Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 78 AS col2, + col0 + 0 col2, + col2 AS col0 FROM tab0 +---- +9 values hashing to 1cd1a49192453dea41eb2488ca015029 query III rowsort SELECT * FROM tab0 WHERE NOT + col2 <> + + 99 @@ -12118,8 +12203,15 @@ SELECT DISTINCT + col1 * + col1 AS col1 FROM tab2 AS cor0 WHERE CAST ( col0 AS I # Datafusion - Expected - 87 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, col0 AS col1 FROM tab0 cor0 +---- +15 +87 +97 +NULL +NULL +NULL query I rowsort label-1963 SELECT DISTINCT 90 * + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL @@ -12140,8 +12232,15 @@ SELECT 68 * - col0 col2 FROM tab0 cor0 # Datafusion - Expected - 145 # Datafusion - Expected - -91 # Datafusion - Expected - 155 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col1" at position 0 and "Int64\(78\) \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 91 AS col1, 78 + col1 AS col1 FROM tab2 cor0 +---- +-91 +-91 +-91 +129 +145 +155 query I rowsort label-1966 SELECT ALL + 45 - + COUNT ( * ) col1 FROM tab2 cor0 WHERE NULL > ( NULL ) @@ -12671,8 +12770,15 @@ SELECT ALL col1 + - CAST ( + - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, + col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query II rowsort label-2054 SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, + col0 AS col1 FROM tab1 AS cor0 @@ -13520,8 +13626,15 @@ SELECT * FROM tab1 WHERE NOT ( + 61 + - 9 + - 90 + - + col2 ) IS NULL # Datafusion - Expected - 51 # Datafusion - Expected - 75 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 75 AS col1, 51 AS col1 FROM tab0 +---- +51 +51 +51 +75 +75 +75 query I rowsort label-2202 SELECT ALL - MIN ( col2 ) col0 FROM tab2 @@ -14255,8 +14368,15 @@ NULL # Datafusion - Expected - 181 # Datafusion - Expected - -81 # Datafusion - Expected - 155629 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(94\) \+ cor0\.col0 \+ Int64\(74\) / cor0\.col0 \* cor0\.col1 \* Int64\(32\) \* CAST\(cor0\.col0 AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 col2, + 94 + + col0 + + 74 / col0 * + col1 * + 32 * + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 cor0 +---- +-1 +-21 +-81 +155629 +181 +191 query I rowsort SELECT + + col1 * - - col0 FROM tab0 AS cor0 @@ -15022,8 +15142,15 @@ SELECT ( + 70 ) + - col2 * + col0 * + col1 AS col2 FROM tab0 # Datafusion - Expected - 68 # Datafusion - Expected - NULL # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 + + - CAST ( NULL AS INTEGER ) AS col1, col2 AS col1 FROM tab1 +---- +59 +68 +96 +NULL +NULL +NULL query I rowsort label-2443 SELECT - col2 + CAST ( NULL AS INTEGER ) / + - col1 AS col2 FROM tab1 @@ -15089,8 +15216,15 @@ SELECT DISTINCT - + col0 col0 FROM tab1 AS cor0 WHERE 63 IS NOT NULL # Datafusion - Expected - 59 # Datafusion - Expected - 91 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 AS col1, col2 AS col1 FROM tab1 AS cor0 +---- +51 +59 +68 +85 +91 +96 query I rowsort SELECT DISTINCT 57 col0 FROM tab0 AS cor0 @@ -15431,8 +15565,12 @@ SELECT DISTINCT + 1 + ( - 28 ) * + col0 + - col0 AS col0 FROM tab2 # Datafusion - Expected - 81 # Datafusion - Expected - 93 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 1 and "Int64\(87\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT MIN ( DISTINCT - - 55 ) / 98 + + MAX ( ALL + col1 ), 93 AS col1, + 87 AS col1 FROM tab0 AS cor0 +---- +81 +87 +93 query I rowsort SELECT - col1 * + - col1 - - 57 + + col0 FROM tab0 AS cor0 @@ -15448,8 +15586,15 @@ SELECT - col1 * + - col1 - - 57 + + col0 FROM tab0 AS cor0 # Datafusion - Expected - -33 # Datafusion - Expected - 81 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, - 33 col2 FROM tab0 +---- +-33 +-33 +-33 +1 +21 +81 query I rowsort label-2510 SELECT DISTINCT + col0 * 96 / + 62 AS col2 FROM tab0 cor0 @@ -15586,8 +15731,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 35 * - col2 IS NOT NULL # Datafusion - Expected - -8514 # Datafusion - Expected - 73 # Datafusion - Expected - -860 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "Int64\(\-86\) \* \(\- CAST\(\(\- cor0\.col2\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 73 AS col0, - 86 * - CAST ( + - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0 +---- +-4042 +-8514 +-860 +73 +73 +73 query I rowsort label-2533 SELECT DISTINCT + 3 * + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 / - 80 IS NULL @@ -15755,8 +15907,11 @@ SELECT DISTINCT - + col0 * - - 83 AS col1 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 col1" at position 0 and "count\(DISTINCT \(\- \(\- cor0\.col2\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 AS col1, COUNT ( DISTINCT + ( - - col2 ) ) AS col1 FROM tab0 AS cor0 +---- +-82 +3 query I rowsort SELECT + 78 * 32 + - 21 AS col1 FROM tab0 AS cor0 @@ -16598,8 +16753,15 @@ SELECT - + 51 + - MAX ( ALL col2 ) * - - MAX ( ALL - col0 ) FROM tab2 cor0 # Datafusion - Expected - -79 # Datafusion - Expected - 420 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* cor0\.col2 AS col0" at position 0 and "Int64\(\-79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 42 * col2 AS col0, - 79 AS col0 FROM tab0 cor0 +---- +-79 +-79 +-79 +1974 +4158 +420 query I rowsort SELECT DISTINCT + col1 * + 52 + + 86 AS col2 FROM tab1 AS cor0 @@ -17009,8 +17171,15 @@ SELECT DISTINCT * FROM tab0 WHERE NOT - col0 BETWEEN - col2 + 71 AND + col2 / + # Datafusion - Expected - -3080 # Datafusion - Expected - 75 # Datafusion - Expected - -3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col0" at position 0 and "\(\- tab2\.col1\) \* \(\- \(\- tab2\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 AS col0, ( + - col1 ) * ( - - col2 ) col0 FROM tab2 +---- +-1173 +-3080 +-3886 +75 +75 +75 query I rowsort SELECT ( col1 ) col0 FROM tab0 AS cor0 @@ -18322,8 +18491,15 @@ SELECT + - 99 FROM tab1 WHERE NOT NULL BETWEEN - col1 * col1 AND + - col1 # Datafusion - Expected - 46 # Datafusion - Expected - -38 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \+ Int64\(20\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 + 20 col1, col0 AS col1 FROM tab2 WHERE ( CAST ( NULL AS FLOAT8 ) * 53 IS NULL ) +---- +-20 +-3 +-38 +46 +64 +75 query I rowsort SELECT DISTINCT - col1 * + - 57 FROM tab2 @@ -19180,8 +19356,11 @@ SELECT ALL - + 41 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 26 * + + COUNT ( * ) AS col0, 22 AS col0 FROM tab1 AS cor0 +---- +22 +78 query III rowsort label-3120 SELECT ALL * FROM tab0 WHERE col2 IN ( col1 / + col1 - - + 41 + + 14 + + CAST ( NULL AS INTEGER ) ) OR ( - col1 * - 40 ) >= col2 @@ -19951,8 +20130,15 @@ SELECT * FROM tab2 AS cor0 WHERE - col1 + col2 * - 67 = NULL # Datafusion - Expected - 75 # Datafusion - Expected - -77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, + col0 AS col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +46 +64 +75 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * - ( - + 36 ) = col1 @@ -21145,8 +21331,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE - col0 + - CAST ( NULL AS INTEGER ) IS NULL # Datafusion - Expected - 70 # Datafusion - Expected - 81 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, 70 AS col2 FROM tab0 AS cor0 +---- +1 +21 +70 +70 +70 +81 query I rowsort SELECT 9 FROM tab0 WHERE NULL IS NULL @@ -23821,8 +24014,15 @@ SELECT DISTINCT MIN ( DISTINCT - 68 ) + - 86 AS col1 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - 24 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col0" at position 0 and "\(\- \(\- tab1\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 24 AS col0, + ( - - col2 ) AS col0 FROM tab1 +---- +24 +24 +24 +59 +68 +96 query II rowsort label-3903 SELECT ALL col0 AS col0, col1 / + 3 - 7 AS col1 FROM tab0 @@ -24409,8 +24609,15 @@ SELECT ALL + col1 * + col0 AS col2 FROM tab2 WHERE col0 BETWEEN ( + 34 ) AND NUL # Datafusion - Expected - 24 # Datafusion - Expected - NULL # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(3\)\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) * - + 3 AS col2, 24 col2 FROM tab2 +---- +24 +24 +24 +NULL +NULL +NULL query II rowsort SELECT ALL col2, + ( - 61 ) FROM tab0 @@ -24772,8 +24979,15 @@ SELECT DISTINCT - col0 + + + col2 AS col2, - col2 FROM tab1 # Datafusion - Expected - -67 # Datafusion - Expected - 92 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ tab2\.col0 AS col0" at position 0 and "\(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 + + col0 AS col0, - col1 AS col0 FROM tab2 +---- +-51 +-67 +-77 +128 +150 +92 query I rowsort label-4067 SELECT - CAST ( NULL AS INTEGER ) / + col1 FROM tab2 AS cor0 @@ -24806,8 +25020,11 @@ SELECT + 68 AS col1, - col0 + + col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "Int64\(13\) \- \(\- count\(DISTINCT \(\- cor0\.col0\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 AS col2, 13 - - COUNT ( DISTINCT - + col0 ) AS col2 FROM tab0 AS cor0 +---- +16 +16 query I rowsort SELECT ALL 90 col1 FROM tab0 cor0 @@ -25955,8 +26172,15 @@ SELECT + 86 * - + 72 FROM tab0 AS cor0 WHERE + 34 + ( - col1 ) BETWEEN - 51 + - # Datafusion - Expected - 60 # Datafusion - Expected - 69 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 69 AS col2, + 60 AS col2 FROM tab0 AS cor0 +---- +60 +60 +60 +69 +69 +69 query I rowsort SELECT ALL + 52 / col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL @@ -26065,8 +26289,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(cor0\.col0\) AS col1" at position 0 and "Int64\(4\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + MAX ( ALL col0 ) AS col1, 4 + + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE col2 BETWEEN NULL AND + col2 +---- +4 +NULL query I rowsort label-4280 SELECT DISTINCT + - col1 * - - col2 / + - col2 FROM tab2 AS cor0 @@ -26515,8 +26742,15 @@ SELECT ALL + col0 + col0 AS col1, - col1 + col2 FROM tab0 # Datafusion - Expected - 5766 # Datafusion - Expected - 96 # Datafusion - Expected - 5766 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab1\.col2 AS Int32\) AS col1" at position 0 and "Int64\(62\) \* Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( col2 AS INTEGER ) AS col1, 62 * + 93 AS col1 FROM tab1 +---- +5766 +5766 +5766 +59 +68 +96 query I rowsort label-4353 SELECT col2 / + + 22 FROM tab2 @@ -26632,8 +26866,15 @@ SELECT ALL CAST ( ( + col1 ) AS INTEGER ) + col2 col2, - col0 FROM tab2 # Datafusion - Expected - 128 # Datafusion - Expected - -8004 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* \(\- Int64\(92\)\) AS col0" at position 0 and "tab0\.col2 \+ tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 * - + 92 AS col0, col2 + + col1 AS col0 FROM tab0 +---- +-8004 +-8004 +-8004 +100 +128 +31 query I rowsort SELECT ALL 95 * - + col1 * col1 FROM tab0 @@ -26824,8 +27065,11 @@ SELECT ALL CAST ( 10 AS INTEGER ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 103 # Datafusion - Expected - 225 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- sum\(DISTINCT \(\- \(\- cor0\.col1\)\)\)\)\) AS col0" at position 0 and "max\(DISTINCT Int64\(75\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - SUM ( DISTINCT - - col1 ) AS col0, MAX ( DISTINCT + 75 ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +103 +225 query I rowsort label-4399 SELECT - - MAX ( - - 39 ) FROM tab0 AS cor0 @@ -26851,8 +27095,15 @@ SELECT DISTINCT - col2 + + - col0 FROM tab0 # Datafusion - Expected - 25 # Datafusion - Expected - -91 # Datafusion - Expected - 2209 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col0" at position 0 and "tab1\.col1 \* tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col0, col1 * + col1 AS col0 FROM tab1 +---- +-51 +-85 +-91 +196 +2209 +25 query II rowsort label-4403 SELECT DISTINCT - 31 + + CAST ( + 52 AS INTEGER ), + col1 + col2 AS col1 FROM tab2 @@ -27837,8 +28088,15 @@ SELECT ALL + col0 AS col0, 0 FROM tab2 AS cor0 # Datafusion - Expected - -37 # Datafusion - Expected - -58 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col2, - 37 AS col2 FROM tab2 AS cor0 +---- +-23 +-37 +-37 +-37 +-40 +-58 query I rowsort label-4569 SELECT + - MIN ( 70 ) FROM tab2 AS cor0 @@ -28377,8 +28635,15 @@ SELECT DISTINCT ( - ( col2 ) ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 11 # Datafusion - Expected - 81 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col2\) \+ cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, - col2 + col1 col2 FROM tab0 AS cor0 WHERE NULL IS NULL +---- +-98 +1 +11 +21 +34 +81 query I rowsort SELECT ALL + col2 + - 20 * 91 FROM tab0 @@ -28485,8 +28750,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( * ) AS col1, 47 AS col1 FROM tab0 AS cor0 +---- +3 +47 query I rowsort label-4669 SELECT DISTINCT ( - ( + - 41 ) ) / - 83 AS col0 FROM tab2 @@ -28882,8 +29150,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( col1 AS INTEGER ) IS NULL # Datafusion - Expected - -47 # Datafusion - Expected - 14 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 14 AS col1, - col1 AS col1 FROM tab1 +---- +-14 +-47 +-5 +14 +14 +14 query I rowsort SELECT 91 + 95 FROM tab2 @@ -28979,8 +29254,15 @@ SELECT ALL + + col0 * + - 95 FROM tab0 AS cor0 # Datafusion - Expected - 24 # Datafusion - Expected - 159 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ \(\- \(\- tab1\.col0\)\) AS col2" at position 0 and "Int64\(22\) \+ Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 + - - col0 AS col2, + 22 + + 2 AS col2 FROM tab1 +---- +144 +147 +159 +24 +24 +24 query I rowsort SELECT ALL - + col0 * - col1 FROM tab0 cor0 @@ -29528,8 +29810,15 @@ SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NULL IN ( - col0 ) # Datafusion - Expected - -24 # Datafusion - Expected - 96 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- Int64\(24\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, - ( 24 ) AS col1 FROM tab1 AS cor0 +---- +-24 +-24 +-24 +59 +68 +96 query I rowsort label-4843 SELECT DISTINCT 94 - 25 * CAST ( - MIN ( col0 ) AS INTEGER ) FROM tab1 AS cor0 @@ -30001,8 +30290,11 @@ SELECT ALL - 93 + 22 + + 92 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, 32 AS col1 FROM tab2 AS cor0 +---- +3 +32 query I rowsort label-4922 SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( 98 / - + col1 + 79 ) NOT IN ( col2 ) @@ -30243,8 +30535,15 @@ SELECT col0 AS col2, 39 + col2 * + 13 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "CAST\(NULL AS Float64\) \* \(\- Int64\(21\)\) \* Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + col1 AS col0, CAST ( NULL AS FLOAT8 ) * - + 21 * + 77 AS col0 FROM tab0 cor0 +---- +1 +21 +81 +NULL +NULL +NULL query I rowsort SELECT DISTINCT - 42 + - ( + - 68 ) * col0 AS col1 FROM tab1 @@ -30318,8 +30617,15 @@ SELECT ALL 77 * + + 1 * + col0 AS col2, + ( 36 ) AS col0 FROM tab1 # Datafusion - Expected - 50 # Datafusion - Expected - 97 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, + 50 col2 FROM tab0 +---- +15 +50 +50 +50 +87 +97 query I rowsort label-4974 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab0 AS cor0 @@ -30389,8 +30695,15 @@ SELECT - + CAST ( col0 AS INTEGER ) FROM tab1 WHERE NOT + col2 + + - col1 + + co # Datafusion - Expected - NULL # Datafusion - Expected - 33 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / \(\- tab2\.col0\) \* Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 33 AS col1, CAST ( NULL AS INTEGER ) / - col0 * 71 AS col1 FROM tab2 +---- +33 +33 +33 +NULL +NULL +NULL query II rowsort label-4987 SELECT ALL col1 col1, CAST ( + col2 AS INTEGER ) FROM tab2 @@ -30873,8 +31186,15 @@ SELECT ALL - 41 - + col0 / col1 FROM tab2 cor0 # Datafusion - Expected - 49 # Datafusion - Expected - NULL # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\)\) AS col0" at position 0 and "cor0\.col2 / cor0\.col1 \- Int64\(\-48\) \+ Int64\(68\) / \(\- \(\- cor0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - ( CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0, ( col2 ) / ( col1 ) - - 48 + + + 68 / - - col2 col0 FROM tab0 AS cor0 +---- +147 +49 +54 +NULL +NULL +NULL query I rowsort label-5062 SELECT + MIN ( DISTINCT + + 97 ) FROM tab0 AS cor0 @@ -31596,8 +31916,15 @@ SELECT DISTINCT - 89 + + 58 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL # Datafusion - Expected - -33 # Datafusion - Expected - -75 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col1, - 33 AS col1 FROM tab2 AS cor0 +---- +-33 +-33 +-33 +-46 +-64 +-75 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT + ( col1 ) * - 98 IS NULL @@ -31839,8 +32166,15 @@ SELECT ALL COUNT ( DISTINCT 26 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 58 # Datafusion - Expected - -77 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 AS col0, col2 AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +23 +40 +58 query IIIIII rowsort SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 53 IS NULL @@ -33625,8 +33959,11 @@ SELECT DISTINCT + SUM ( DISTINCT - 18 ) AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3293 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(37\) \* Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, + 37 * - 89 AS col2 FROM tab2 AS cor0 +---- +-3293 +3 query I rowsort SELECT DISTINCT + col1 - + 31 col1 FROM tab2 AS cor0 @@ -33783,8 +34120,15 @@ SELECT ALL COUNT ( * ) + - 56, + COUNT ( * ) AS col0 FROM tab1 WHERE NULL IN ( + # Datafusion - Expected - 0 # Datafusion - Expected - -88 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) \+ Int64\(\-7\) AS col1" at position 0 and "tab0\.col1 \+ tab0\.col1 / \(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 + + - 7 AS col1, col1 + + col1 / - col1 AS col1 FROM tab0 +---- +-28 +-8 +-88 +0 +20 +80 query III rowsort SELECT DISTINCT * FROM tab0 WHERE + 2 * + 16 + + 17 * - - 39 > - - col1 + + col0 @@ -34539,8 +34883,15 @@ SELECT - 42 FROM tab0 AS cor0 WHERE 58 + - CAST ( - - col0 AS INTEGER ) * + col0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1, col1 AS col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT 69 - ( col0 ) + + + col0 + - 15 * - + col2 * - col2 * col2 FROM tab0 @@ -35007,8 +35358,15 @@ SELECT * FROM tab0 WHERE - ( CAST ( NULL AS FLOAT8 ) ) * - + col1 - - - col0 * - # Datafusion - Expected - 1 # Datafusion - Expected - 99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* tab0\.col1 AS col1" at position 0 and "\(\- tab0\.col1\) / \(\- \(\- \(\- tab0\.col1\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * + col1 AS col1, - col1 / - - ( - ( col1 ) ) col1 FROM tab0 +---- +1 +1 +1 +210 +3807 +99 query I rowsort SELECT - col1 + + - 33 FROM tab1 @@ -35216,8 +35574,15 @@ SELECT ALL - 10 * - col1 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 52 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 AS col1, + col0 AS col1 FROM tab2 AS cor0 +---- +46 +52 +52 +52 +64 +75 query I rowsort label-5768 SELECT + MAX ( - - 4 ) col2 FROM tab1 AS cor0 @@ -35227,8 +35592,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + MIN ( DISTINCT col0 ) ) AS col2, 77 / - COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +-25 +51 query I rowsort SELECT ALL - + 20 FROM tab0 cor0 @@ -36558,8 +36926,15 @@ SELECT DISTINCT + 95, col0 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 58 # Datafusion - Expected - -77 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 AS col0, + col2 col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +23 +40 +58 query I rowsort label-5992 SELECT ALL + COUNT ( * ) * - - 99 FROM tab2 @@ -36752,8 +37127,15 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col1, ( CAST ( NULL AS INTEGER ) ) col1 FROM tab1 +---- +-14 +-47 +-5 +NULL +NULL +NULL query III rowsort label-6023 SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= + col1 / col1 + + CAST ( NULL AS FLOAT8 ) @@ -36819,8 +37201,11 @@ SELECT ( 55 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- avg\(Int64\(61\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + COUNT ( * ) AS col2, - AVG ( + + 61 ) * COUNT ( * ) + CAST ( NULL AS FLOAT8 ) AS col2 FROM tab0, tab2 cor0 +---- +9 +NULL query I rowsort label-6032 SELECT ALL ( + + ( 28 ) ) * + COUNT ( * ) FROM tab1 @@ -37510,8 +37895,15 @@ SELECT DISTINCT + ( - 63 ) AS col1 FROM tab0 # Datafusion - Expected - 51 # Datafusion - Expected - 79 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* Int64\(69\) / tab2\.col2 AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 * 69 / col2 col2, col1 AS col2 FROM tab2 +---- +132 +153 +51 +67 +77 +79 query III rowsort SELECT ALL * FROM tab0 WHERE + col2 + - - 48 = NULL @@ -37712,8 +38104,11 @@ SELECT col1 + + 62 * 35 AS col2 FROM tab2 AS cor0 WHERE NOT + CAST ( + 57 AS INT # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 71 AS col2, CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 +---- +71 +NULL query II rowsort label-6178 SELECT ALL - - col2 AS col2, 96 FROM tab2 AS cor0 WHERE ( NOT col1 BETWEEN + CAST ( col0 AS INTEGER ) AND + - col0 ) @@ -37732,8 +38127,15 @@ SELECT ALL - - col2 AS col2, 96 FROM tab2 AS cor0 WHERE ( NOT col1 BETWEEN + CAS # Datafusion - Expected - -77 # Datafusion - Expected - -58 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab2\.col2\) AS Int32\) AS col2" at position 0 and "\(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - col2 AS INTEGER ) AS col2, ( - col1 ) AS col2 FROM tab2 +---- +-23 +-40 +-51 +-58 +-67 +-77 query I rowsort label-6180 SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT + - 6 + + 33 <> NULL @@ -37784,8 +38186,15 @@ SELECT + 37 + - col0 * - col0 col0 FROM tab0 cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "\(\- cor0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + col2 ), ( - + ( col2 ) ) FROM tab0 AS cor0 +---- +-10 +-10 +-47 +-47 +-99 +-99 query I rowsort label-6189 SELECT 33 + + + 22 / + 29 AS col0 FROM tab1 AS cor0 @@ -39506,8 +39915,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -4615 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-61\) \+ Int64\(\-33\) \* \(\- Int64\(46\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + COUNT ( * ) AS col0, - 61 + - 33 * - + ( + 46 ) * + - COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +-4615 +3 query I rowsort SELECT col0 * + + col2 * + col2 AS col0 FROM tab0 AS cor0 @@ -39644,8 +40056,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \* min\(\(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( + MIN ( + 20 ) ) AS col1, - COUNT ( * ) * + + MIN ( + - col2 ) AS col1 FROM tab1 AS cor0 +---- +20 +288 query I rowsort label-6497 SELECT + - 55 * COUNT ( * ) - - 2 FROM tab0 AS cor0 @@ -41476,8 +41891,15 @@ SELECT - col2 + - + 18 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - NULL # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col1\) AS Int32\) \- CAST\(NULL AS Int32\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( - col1 AS INTEGER ) - + + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col2, ( + ( - col1 ) ) AS col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +NULL +NULL +NULL query I rowsort label-6803 SELECT - COUNT ( * ) * - MIN ( + 98 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1 @@ -42161,8 +42583,15 @@ NULL # Datafusion - Expected - 30 # Datafusion - Expected - 32 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 AS col2, 30 AS col2 FROM tab0 AS cor0 +---- +30 +30 +30 +32 +32 +32 query I rowsort label-6915 SELECT ALL MIN ( DISTINCT + col1 ) FROM tab0 @@ -42213,8 +42642,15 @@ SELECT DISTINCT COUNT ( - col1 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NUL # Datafusion - Expected - 24 # Datafusion - Expected - 97 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \- \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 - ( - + col0 ) AS col2, 24 AS col2 FROM tab0 AS cor0 +---- +196 +24 +24 +24 +62 +97 query I rowsort SELECT + + col0 + + ( - 3 ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL @@ -42297,8 +42733,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NULL > col2 * - 58 * 25 # Datafusion - Expected - -47 # Datafusion - Expected - 99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "\(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, - col2 AS col1 FROM tab0 +---- +-10 +-47 +-99 +10 +47 +99 query I rowsort label-6937 SELECT ALL + MIN ( DISTINCT 63 ) FROM tab2 @@ -42377,8 +42820,15 @@ SELECT * FROM tab0 AS cor0 WHERE - 6 IS NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col0, col0 FROM tab0 cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT ALL + + 74 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 @@ -42476,8 +42926,15 @@ SELECT ALL * FROM tab2 WHERE NOT + - 23 > - col1 # Datafusion - Expected - 5 # Datafusion - Expected - 91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col2, col1 AS col2 FROM tab1 +---- +14 +47 +5 +51 +85 +91 query I rowsort SELECT - - col1 * col0 col0 FROM tab1 WHERE NOT - 46 * - col2 / col0 / col2 IS NOT NULL @@ -42614,8 +43071,15 @@ SELECT ALL + + col0 - - col1 - + col1 FROM tab2 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - -75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, - col0 AS col0 FROM tab2 AS cor0 +---- +-46 +-46 +-64 +-64 +-75 +-75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 @@ -42681,8 +43145,15 @@ SELECT + 45 * - + 10 AS col0 FROM tab1 # Datafusion - Expected - 92 # Datafusion - Expected - 37 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 col0, + 92 AS col0 FROM tab0 +---- +37 +37 +37 +92 +92 +92 query II rowsort label-6997 SELECT DISTINCT COUNT ( * ) AS col1, - 72 * 29 AS col2 FROM tab0 @@ -44879,8 +45350,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( + - col2 ) AS col1 FROM tab0 +---- +-3 +3 query III rowsort SELECT * FROM tab1 WHERE - - 57 / - + col2 IS NOT NULL @@ -45551,8 +46025,11 @@ SELECT ALL - MIN ( + 47 ) AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- \(\- cor0\.col1\)\)\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MIN ( - - col1 ) col2, ( 28 ) AS col2 FROM tab1 AS cor0 +---- +28 +5 query I rowsort label-7471 SELECT ALL + col0 + - CAST ( NULL AS INTEGER ) + + col2 FROM tab0 AS cor0 @@ -45657,8 +46134,15 @@ SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN + 36 AND 22 # Datafusion - Expected - 268 # Datafusion - Expected - 1 # Datafusion - Expected - 308 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 / Int64\(53\) AS col0" at position 0 and "Int64\(4\) \* tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 / 53 col0, 4 * + col1 AS col0 FROM tab2 +---- +0 +1 +1 +204 +268 +308 query II rowsort label-7488 SELECT + 70 AS col2, + COUNT ( DISTINCT col2 ) FROM tab1 cor0 @@ -45939,8 +46423,15 @@ SELECT ALL col1 * 51 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - -77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col1 AS col0, ( + col1 ) AS col0 FROM tab2 cor0 +---- +-51 +-67 +-77 +51 +67 +77 query II rowsort SELECT DISTINCT - + 11 AS col0, - col2 + - - col2 * + col1 FROM tab2 AS cor0 @@ -46521,8 +47012,15 @@ SELECT DISTINCT + col0 * + + 14 FROM tab1 AS cor0 # Datafusion - Expected - 15 # Datafusion - Expected - 12 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 AS col2, + 15 AS col2 FROM tab2 AS cor0 +---- +12 +12 +12 +15 +15 +15 query III rowsort SELECT DISTINCT * FROM tab1 WHERE 70 NOT BETWEEN NULL AND - + col1 @@ -46842,8 +47340,15 @@ SELECT DISTINCT - 33 AS col0, col1 + - col2 FROM tab2 # Datafusion - Expected - -77 # Datafusion - Expected - -58 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col1" at position 0 and "\(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + col2 ) AS col1, - col1 AS col1 FROM tab2 +---- +-23 +-40 +-51 +-58 +-67 +-77 query III rowsort SELECT * FROM tab1 WHERE NOT + 44 > + + 37 @@ -47735,8 +48240,15 @@ SELECT + SUM ( DISTINCT + 69 ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col0, - col2 AS col0 FROM tab0 AS cor0 +---- +-10 +-10 +-47 +-47 +-99 +-99 query I rowsort SELECT + - 22 + - col0 * col0 AS col2 FROM tab0 cor0 @@ -47768,8 +48280,15 @@ SELECT + col0 * col0 + 53 + col1 + + 91 col1 FROM tab0 AS cor0 WHERE + col1 * + # Datafusion - Expected - -138 # Datafusion - Expected - 5 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "\(\- tab1\.col0\) \+ \(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col0, - col0 + - col1 AS col0 FROM tab1 +---- +-138 +-65 +-90 +14 +47 +5 query III rowsort label-7825 SELECT * FROM tab1 WHERE NOT - 29 * 44 * - col1 >= + CAST ( NULL AS INTEGER ) * col0 @@ -48546,8 +49065,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE 92 IS NULL # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT + 15 AS col0 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL @@ -48733,8 +49259,15 @@ SELECT DISTINCT 29 + - + COUNT ( * ) FROM tab1 # Datafusion - Expected - 85 # Datafusion - Expected - 37 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 37 AS col1, col0 AS col1 FROM tab1 +---- +37 +37 +37 +51 +85 +91 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 @@ -48743,8 +49276,15 @@ SELECT ALL + 37 AS col1, col0 AS col1 FROM tab1 # Datafusion - Expected - 0 # Datafusion - Expected - -91 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col0" at position 0 and "Int64\(\-6\) / tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, - 6 / col2 col0 FROM tab1 +---- +-51 +-85 +-91 +0 +0 +0 query I rowsort label-7976 SELECT DISTINCT + - COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 @@ -50107,8 +50647,15 @@ SELECT + 57 * + 62 col0 FROM tab1 # Datafusion - Expected - 108 # Datafusion - Expected - -97 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 col2, col1 + + col0 AS col2 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +108 +96 +98 query I rowsort SELECT DISTINCT - 20 * + - col0 FROM tab1 AS cor0 @@ -50218,8 +50765,11 @@ SELECT ALL - 56 + col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 57 AS col2, COUNT ( * ) AS col2 FROM tab1 +---- +-57 +3 query I rowsort SELECT ALL - 62 + - col2 FROM tab0 @@ -52375,8 +52925,15 @@ SELECT ALL + COUNT ( ALL + - col1 ) col2 FROM tab0 AS cor0 WHERE NULL IS NULL # Datafusion - Expected - 39 # Datafusion - Expected - -5 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col2, + 39 col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +39 +39 +39 query I rowsort SELECT col2 * + col1 * + col2 FROM tab0 AS cor0 @@ -52872,8 +53429,9 @@ NULL NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) / cor0\.col2 AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 87 / + col2 AS col0, + 80 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL +---- query I rowsort SELECT col0 + col2 FROM tab2 cor0 WHERE NULL > 68 @@ -54162,8 +54720,15 @@ SELECT 49 * - col0 + + 48 FROM tab0 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - -75 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col0 AS col0, + col1 AS col0 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +51 +67 +77 query I rowsort SELECT - col2 + - - 76 AS col0 FROM tab1 AS cor0 @@ -56254,8 +56819,11 @@ 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\(1\)\) AS count\(\*\)\) \* \(\- Int64\(75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 40 AS col1, - COUNT ( * ) * - + 75 AS col1 FROM tab2 +---- +225 +40 query II rowsort label-9234 SELECT COUNT ( * ) / CAST ( COUNT ( * ) AS INTEGER ), COUNT ( * ) AS col0 FROM tab2 @@ -56347,8 +56915,15 @@ SELECT ALL 81 * + + col2 FROM tab2 AS cor0 # Datafusion - Expected - 41 # Datafusion - Expected - 81 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, 41 AS col2 FROM tab0 +---- +1 +21 +41 +41 +41 +81 query I rowsort SELECT DISTINCT 6 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 @@ -56690,8 +57265,15 @@ SELECT + - col0 * - ( - 77 ) FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 714 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col0 AS col0" at position 0 and "Int64\(39\) / cor0\.col1 \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 * + + col0 AS col0, 39 / + col1 + col1 AS col0 FROM tab1 AS cor0 +---- +12 +16 +425 +4277 +47 +714 query II rowsort label-9304 SELECT ALL + 22, - COUNT ( * ) AS col0 FROM tab1 @@ -56956,8 +57538,9 @@ SELECT DISTINCT - - 67 AS col0, 21 - + col0 FROM tab1 AS cor0 -70 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab0\.col2\)\) AS col0" at position 0 and "Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col2 AS col0, + 20 AS col0 FROM tab0 WHERE NOT ( NOT 33 IS NULL ) +---- query I rowsort SELECT + col1 FROM tab1 WHERE NOT ( NOT ( NOT 64 IS NULL ) ) @@ -57026,8 +57609,15 @@ SELECT - ( - col2 ) + col2 col0 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col1, col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 * - col1 IS NOT NULL @@ -58172,8 +58762,15 @@ SELECT ALL + - col2 + + ( - - 93 ) FROM tab1 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - -9235 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col0\) \+ cor0\.col1 \+ \(\- cor0\.col0\) \* Int64\(34\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * + ( - col0 ) + + col1 + - col0 * + 34 AS col2, col0 AS col2 FROM tab1 AS cor0 +---- +-6616 +-7900 +-9235 +51 +85 +91 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 >= - - 95 @@ -58782,8 +59379,15 @@ SELECT 75 * col0 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, col1 AS col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query II rowsort SELECT - col0 AS col1, - 93 AS col2 FROM tab1 AS cor0 @@ -58813,8 +59417,15 @@ SELECT ( + + 84 ) AS col1 FROM tab1 cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 16 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 16 AS col1, - col1 AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +16 +16 +16 query I rowsort label-9650 SELECT ALL SUM ( ALL + ( 3 ) ) * - 51 FROM tab0 AS cor0 @@ -58923,8 +59534,15 @@ SELECT - COUNT ( * ) + 81 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -69 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \+ \(\- Int64\(92\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 + - ( + 92 ) AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 +---- +-34 +-52 +-69 +NULL +NULL +NULL query I rowsort SELECT DISTINCT + + col1 FROM tab1 AS cor0 WHERE 84 + + + col2 IS NOT NULL @@ -59466,8 +60084,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - - 91 ) AS col0, COUNT ( * ) * ( - 25 ) AS col0 FROM tab1 +---- +-75 +91 query I rowsort SELECT col0 + - 7 - col2 AS col1 FROM tab1 AS cor0 @@ -59705,8 +60326,10 @@ SELECT - 70 * + + col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a2c7a5fae246d46bc0e76733d3ee75e5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 24 AS col2, col0 * + col0 * + col0 AS col1, + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 +---- +9 values hashing to 0948a6a01c1ae77a7db398aa817cc0bd query I rowsort SELECT - col0 * - ( - col2 ) AS col1 FROM tab0 diff --git a/data/sqlite/random/aggregates/slt_good_106.slt b/data/sqlite/random/aggregates/slt_good_106.slt index 9ae4b91..517036e 100644 --- a/data/sqlite/random/aggregates/slt_good_106.slt +++ b/data/sqlite/random/aggregates/slt_good_106.slt @@ -407,8 +407,15 @@ SELECT col2 FROM tab1 WHERE NOT - - col2 + + col1 + - 64 IS NULL # Datafusion - Expected - 31 # Datafusion - Expected - 94 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ Int64\(47\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + 47 AS col0, 31 AS col0 FROM tab1 +---- +31 +31 +31 +52 +61 +94 query I rowsort label-62 SELECT - 5 + + - 31 * + MAX ( DISTINCT - 80 ) AS col1 FROM tab0 AS cor0 @@ -672,8 +679,11 @@ SELECT DISTINCT 71 AS col1, 94 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -153 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- sum\(DISTINCT Int64\(71\)\)\) AS Int32\) \- \(\- Int64\(\-82\)\) AS col2" at position 0 and "Int64\(\-84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - + SUM ( DISTINCT 71 ) AS INTEGER ) - - - 82 AS col2, - 84 AS col2 FROM tab2 AS cor0 +---- +-153 +-84 query I rowsort label-104 SELECT - col0 - - col0 + + + 38 * col2 * - + CAST ( NULL AS INTEGER ) * col0 * - + col2 / col2 AS col2 FROM tab0 cor0 @@ -1821,8 +1831,15 @@ SELECT * FROM tab0 AS cor0 WHERE ( col0 ) NOT BETWEEN + CAST ( NULL AS FLOAT8 ) # Datafusion - Expected - 0 # Datafusion - Expected - 422331 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* \(\- cor0\.col0\) \* \(\- cor0\.col0\) AS col0" at position 0 and "Int64\(\-20\) / cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 51 * - + col0 * - col0 AS col0, - 20 / col2 AS col0 FROM tab1 AS cor0 +---- +0 +0 +0 +132651 +368475 +422331 query I rowsort label-288 SELECT + MAX ( ALL + col0 ) + - COUNT ( * ) FROM tab2 @@ -1912,8 +1929,11 @@ SELECT ALL ( - - 68 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, + COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +3 +3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 @@ -2364,8 +2384,11 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 3 + + col0 ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-72\)\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 72 col2, 81 AS col2 FROM tab2 AS cor0 +---- +72 +81 query I rowsort SELECT + - col1 + - 30 + + 79 FROM tab1 AS cor0 @@ -3070,8 +3093,15 @@ SELECT col1 + + - col2 AS col0 FROM tab2 # Datafusion - Expected - 91 # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \+ CAST\(NULL AS Int32\) \+ tab0\.col1 \+ CAST\(NULL AS Float64\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + 54 + CAST ( NULL AS INTEGER ) + col1 + + CAST ( NULL AS FLOAT8 ) AS col1, + 91 AS col1 FROM tab0 +---- +91 +91 +91 +NULL +NULL +NULL query III rowsort SELECT * FROM tab0 WHERE NULL IN ( + - col2 + + 67 ) @@ -3142,8 +3172,15 @@ SELECT ALL ( + 53 ) AS col1 FROM tab0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, col2 AS col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT DISTINCT - col2 FROM tab1 WHERE NOT ( ( 96 ) > 15 ) @@ -4168,8 +4205,11 @@ SELECT 17 * - - 40 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, + COUNT ( * ) AS col0 FROM tab0 +---- +3 +3 query I rowsort label-676 SELECT - 16 / 10 FROM tab0 @@ -4276,8 +4316,9 @@ SELECT + COUNT ( * ), - MAX ( ALL - - col1 ) col2 FROM tab2 cor0 -77 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ tab2\.col2 AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 + + + col2 AS col1, - col2 AS col1 FROM tab2 WHERE ( NOT col2 * - col1 IS NOT NULL ) +---- query I rowsort SELECT DISTINCT + + 14 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 @@ -5256,8 +5297,15 @@ SELECT - 92 + col1, + col0 FROM tab1 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col2, col0 AS col2 FROM tab0 cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT col0 * col2 + - 10 FROM tab2 @@ -5541,8 +5589,15 @@ SELECT + - 65 + - MIN ( - col1 ) FROM tab2 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 98 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \+ cor0\.col0 AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + ( - + col1 ) + + col0 col0, 64 col0 FROM tab0 cor0 +---- +108 +64 +64 +64 +96 +98 query I rowsort SELECT ( - + 83 ) FROM tab0 AS cor0 WHERE 29 IS NOT NULL @@ -5637,8 +5692,15 @@ SELECT ALL + col0 AS col2, col2 AS col1 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 6561 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* \(\- \(\- tab0\.col1\)\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * - - col1 AS col2, + col0 AS col2 FROM tab0 +---- +1 +15 +441 +6561 +87 +97 query I rowsort label-930 SELECT - 79 / + + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 @@ -5724,8 +5786,15 @@ SELECT ALL - 30 AS col2 FROM tab0 cor0 # Datafusion - Expected - 91 # Datafusion - Expected - -40 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* Int64\(8\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * + ( 8 ) AS col1, + col0 AS col1 FROM tab1 AS cor0 +---- +-112 +-376 +-40 +51 +85 +91 query I rowsort SELECT ALL + - col1 + - - col2 AS col1 FROM tab2 AS cor0 @@ -6115,8 +6184,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) col1, 45 AS col1 FROM tab1 +---- +-3 +45 query I rowsort label-1009 SELECT ALL - 50 * 61 * - - COUNT ( * ) - + 7 FROM tab0 @@ -6457,8 +6529,15 @@ SELECT + 77 col2, col0 + col0 * 79 AS col0 FROM tab0 # Datafusion - Expected - -40 # Datafusion - Expected - 91 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, - 40 AS col1 FROM tab1 +---- +-40 +-40 +-40 +51 +85 +91 query I rowsort label-1066 SELECT DISTINCT + + col2 * - + CAST ( + + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0 @@ -6474,8 +6553,15 @@ SELECT DISTINCT + + col2 * - + CAST ( + + col2 AS INTEGER ) AS col1 FROM tab1 AS # Datafusion - Expected - 185 # Datafusion - Expected - 49 # Datafusion - Expected - 518 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col0" at position 0 and "cor0\.col1 \* Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 49 AS col0, + col1 * + + 37 AS col0 FROM tab1 AS cor0 +---- +1739 +185 +49 +49 +49 +518 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 IS NULL ) @@ -6774,8 +6860,15 @@ NULL # Datafusion - Expected - 138 # Datafusion - Expected - 5 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "tab1\.col1 \+ tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + + col1 ) AS col2, + col1 + col0 AS col2 FROM tab1 +---- +138 +14 +47 +5 +65 +90 query I rowsort label-1120 SELECT DISTINCT - - 30 * col1 / col2 - col2 FROM tab2 AS cor0 @@ -7977,8 +8070,15 @@ SELECT MAX ( 35 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 34 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ CAST\(\(\- tab0\.col2\) AS Int32\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 + CAST ( - col2 AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 +---- +-98 +11 +34 +NULL +NULL +NULL query I rowsort label-1318 SELECT DISTINCT 31 / - 86 + - 59 + col1 AS col0 FROM tab2 @@ -8395,8 +8495,10 @@ SELECT DISTINCT - col1 * + 72 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 4713223f76514fbfea4ccf3a3877a728 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 0 and "CAST\(Int64\(55\) AS Int32\) \+ \(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 11 AS col0, CAST ( + 55 AS INTEGER ) + - col1 col0, 69 FROM tab0 +---- +9 values hashing to 5ab464d883abed358fd094c4e47c64dd query I rowsort label-1387 SELECT MAX ( 50 ) AS col1 FROM tab1 @@ -8901,8 +9003,15 @@ SELECT + - col1 FROM tab1 AS cor0 WHERE - 95 = - ( - + 2 ) + + col2 # Datafusion - Expected - -65 # Datafusion - Expected - 86 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \+ cor0\.col2 AS col2" at position 0 and "Int64\(\-65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 28 + + col2 AS col2, - 65 AS col2 FROM tab2 AS cor0 +---- +-65 +-65 +-65 +51 +68 +86 query I rowsort SELECT ALL + - col0 + 3 + - 79 col1 FROM tab1 cor0 @@ -9268,8 +9377,15 @@ SELECT - ( col0 ) + + col1 AS col2 FROM tab0 # Datafusion - Expected - -5 # Datafusion - Expected - 91 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 col1, - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( - col2 * - col1 + col2 + + + col1 BETWEEN - + col2 / col1 + + + col2 AND + 78 / + - 73 + + col0 ) +---- +-14 +-47 +-5 +51 +85 +91 query I rowsort SELECT DISTINCT - ( col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL > col2 @@ -9633,8 +9749,15 @@ SELECT DISTINCT + col2 * + - col1 AS col0 FROM tab1 # Datafusion - Expected - 315352 # Datafusion - Expected - -56 # Datafusion - Expected - 376817 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col2" at position 0 and "cor0\.col1 \* \(\- cor0\.col0\) \* \(\- cor0\.col0\) \+ \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 56 AS col2, col1 * - col0 * - col0 + - + col2 AS col2 FROM tab2 cor0 +---- +-56 +-56 +-56 +107893 +315352 +376817 query I rowsort label-1588 SELECT DISTINCT COUNT ( * ) + + COUNT ( col2 ) AS col1 FROM tab1 AS cor0 @@ -11063,8 +11186,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col1 ) # Datafusion - Expected - 0 # Datafusion - Expected - 96 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "Int64\(37\) / Int64\(11\) / \(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, + 37 / 11 / - ( + + col2 ) AS col1 FROM tab1 +---- +0 +0 +0 +59 +68 +96 query I rowsort label-1827 SELECT + + MIN ( + ( + CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0 @@ -12099,8 +12229,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, 72 AS col1 FROM tab0 AS cor0 +---- +-3 +72 query I rowsort label-2002 SELECT DISTINCT MIN ( ALL 73 ) AS col1 FROM tab2 AS cor0 @@ -12438,8 +12571,15 @@ SELECT + 54 + col0 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL # Datafusion - Expected - 36 # Datafusion - Expected - 5 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, 36 AS col0 FROM tab1 AS cor0 +---- +14 +36 +36 +36 +47 +5 query II rowsort SELECT DISTINCT col2 AS col0, 73 AS col2 FROM tab0 AS cor0 @@ -12529,8 +12669,15 @@ SELECT + MAX ( - + col0 ) FROM tab1 AS cor0 # Datafusion - Expected - 44 # Datafusion - Expected - -57 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \+ Int64\(\-62\) AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col1 + - 62 AS col2, + 44 col2 FROM tab1 cor0 +---- +-15 +-48 +-57 +44 +44 +44 query I rowsort SELECT DISTINCT + + col2 + + ( + + 13 ) AS col2 FROM tab1 AS cor0 @@ -14209,8 +14356,9 @@ SELECT + - col2 * + + col0 FROM tab0 cor0 -9603 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col2" at position 0 and "tab0\.col2 \* \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 col2, + col2 * - + col1 AS col2 FROM tab0 WHERE ( 1 + - col2 ) IS NULL +---- query I rowsort label-2358 SELECT DISTINCT col1 / + - 6 + 0 FROM tab1 @@ -14932,8 +15080,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - - COUNT ( * ) + + 76 AS col0, 69 AS col0 FROM tab2 AS cor0 +---- +69 +79 query I rowsort SELECT - 38 * + 57 + col2 AS col1 FROM tab0 @@ -15375,8 +15526,15 @@ NULL # Datafusion - Expected - -6208 # Datafusion - Expected - NULL # Datafusion - Expected - -960 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col2" at position 0 and "Int64\(64\) \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) + - col1 * - col1 AS col2, + 64 * - col0 AS col2 FROM tab0 AS cor0 +---- +-5568 +-6208 +-960 +NULL +NULL +NULL query I rowsort SELECT ALL + 32 + + - 27 FROM tab1 @@ -16334,8 +16492,15 @@ SELECT ALL + col0 + 87 + - col1 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2, + col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-2714 SELECT DISTINCT col1 - 29 / - col2 AS col1 FROM tab1 cor0 @@ -16498,8 +16663,15 @@ SELECT DISTINCT + + 0 * + + col2 + 32 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, + col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query III rowsort SELECT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN + col0 AND ( - 60 + - 38 * + col0 ) @@ -16859,8 +17031,15 @@ SELECT col1, CAST ( + 32 AS INTEGER ) FROM tab2 cor0 # Datafusion - Expected - -39 # Datafusion - Expected - 75 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col2 / tab2\.col2 \+ \(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 col1, + col2 / col2 + + - col2 AS col1 FROM tab2 +---- +-22 +-39 +-57 +46 +64 +75 query II rowsort SELECT DISTINCT col2 AS col0, - 24 FROM tab1 @@ -16968,8 +17147,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < 34 # Datafusion - Expected - 81 # Datafusion - Expected - 11 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- Int64\(86\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 - + 86 AS col0, + 81 AS col0 FROM tab0 AS cor0 +---- +-71 +1 +11 +81 +81 +81 query III rowsort SELECT * FROM tab2 AS cor0 WHERE col1 / - col0 <= + + 14 @@ -17138,8 +17324,11 @@ SELECT - col2 * 27 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT CAST\(\(\- Int64\(\-9\)\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + SUM ( DISTINCT CAST ( - + ( - 9 ) AS INTEGER ) ) AS col2, - 89 AS col2 FROM tab0 WHERE NULL IS NOT NULL +---- +-89 +NULL query I rowsort SELECT ALL + col2 * 59 * - - 53 - col0 FROM tab0 @@ -18863,8 +19052,15 @@ SELECT - - 71 + COUNT ( * ) + COUNT ( * ) FROM tab0 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 27 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-27\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 27 AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +10 +27 +27 +27 +47 +99 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NULL IN ( 34, col2 * ( - 67 ) + col0 * + col2 ) @@ -19501,8 +19697,15 @@ SELECT ALL - - 56 * - col2 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 4350 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab2\.col0\)\) \* Int64\(58\) AS col2" at position 0 and "Int64\(\-40\) \+ tab2\.col2 \+ tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - - col0 ) * + + 58 AS col2, ( - 40 ) + + col2 + col0 AS col2 FROM tab2 +---- +2668 +29 +3712 +4350 +64 +93 query I rowsort SELECT ( col1 ) * - + col0 FROM tab2 @@ -20518,8 +20721,15 @@ SELECT ALL - col2 * - 88 + - col0 FROM tab1 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col1" at position 0 and "CAST\(cor0\.col2 AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 col1, CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query II rowsort SELECT DISTINCT + - col0, 72 + col0 AS col0 FROM tab0 AS cor0 @@ -20555,8 +20765,15 @@ SELECT + col0 * + - 19 AS col0 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* CAST\(NULL AS Int32\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 * CAST ( NULL AS INTEGER ) AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +10 +47 +99 +NULL +NULL +NULL query I rowsort label-3394 SELECT DISTINCT + MAX ( col1 ) FROM tab2 AS cor0 WHERE NULL >= + ( - col1 ) @@ -21082,8 +21299,15 @@ SELECT DISTINCT * FROM tab0 WHERE 93 + - 69 IS NULL # Datafusion - Expected - -21 # Datafusion - Expected - 97 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "\(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, - col1 AS col2 FROM tab0 +---- +-1 +-21 +-81 +15 +87 +97 query I rowsort label-3481 SELECT DISTINCT + + 94 + - col1 * + col2 * - col1 * + ( + col1 ) - - col0 + - col0 / + - col1 AS col0 FROM tab0 AS cor0 @@ -22598,8 +22822,15 @@ SELECT ALL 24 * - col1 col1 FROM tab1 cor0 # Datafusion - Expected - -239481 # Datafusion - Expected - 31 # Datafusion - Expected - -24190 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col0" at position 0 and "Int64\(41\) \* Int64\(59\) \* \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 AS col0, 41 * + 59 * - col2 AS col0 FROM tab0 cor0 +---- +-113693 +-239481 +-24190 +31 +31 +31 query I rowsort label-3741 SELECT DISTINCT - + 42 * - - ( + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) AS col0 FROM tab0 AS cor0 @@ -22613,8 +22844,15 @@ NULL # Datafusion - Expected - 30 # Datafusion - Expected - -3744 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(39\)\) \* cor0\.col2 AS col1" at position 0 and "Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 39 ) * col2 AS col1, 30 AS col1 FROM tab1 AS cor0 +---- +-2301 +-2652 +-3744 +30 +30 +30 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND + col2 @@ -23255,8 +23493,15 @@ SELECT - 70, - col1 AS col2 FROM tab1 # Datafusion - Expected - -67 # Datafusion - Expected - 81 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col1" at position 0 and "\(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 81 col1, - col1 AS col1 FROM tab2 +---- +-51 +-67 +-77 +81 +81 +81 query III rowsort SELECT * FROM tab1 WHERE NULL BETWEEN - 81 AND + 71 + + + col2 @@ -23302,8 +23547,15 @@ SELECT col2 + + - 16 + - col1 * + 95 * col1 AS col1 FROM tab0 # Datafusion - Expected - 32 # Datafusion - Expected - 52 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ Int64\(\-29\) AS col2" at position 0 and "Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + + - 29 AS col2, 32 AS col2 FROM tab0 +---- +-28 +-8 +32 +32 +32 +52 query I rowsort SELECT ALL - 41 - + col1 FROM tab0 cor0 @@ -24556,8 +24808,15 @@ SELECT DISTINCT COUNT ( * ) + - CAST ( - - 49 AS INTEGER ) AS col1 FROM tab2 AS # Datafusion - Expected - 0 # Datafusion - Expected - 91 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col2 \+ \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, col2 + - col2 col2 FROM tab1 AS cor0 +---- +0 +0 +0 +51 +85 +91 query II rowsort SELECT col0, - col1 FROM tab0 AS cor0 @@ -24810,8 +25069,15 @@ SELECT COUNT ( DISTINCT - 27 ) AS col1 FROM tab0 # Datafusion - Expected - -40 # Datafusion - Expected - 58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, - col2 AS col0 FROM tab2 +---- +-23 +-40 +-58 +23 +40 +58 query I rowsort label-4117 SELECT DISTINCT MIN ( ALL col1 ) FROM tab0 AS cor0 @@ -25009,8 +25275,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + - 86 IS NOT NULL # Datafusion - Expected - 53 # Datafusion - Expected - 97 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- Int64\(\-53\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col2, - ( + - 53 ) AS col2 FROM tab0 AS cor0 +---- +15 +53 +53 +53 +87 +97 query II rowsort label-4147 SELECT + + CAST ( NULL AS INTEGER ) col0, - col2 + CAST ( NULL AS INTEGER ) FROM tab1 cor0 @@ -25036,8 +25309,10 @@ SELECT ALL - COUNT ( * ) * - 97 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 83027a2a7bfccfdb7ce1265ebba30ad4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ \(\- tab2\.col1\) \+ \(\- tab2\.col2\) \* \(\- tab2\.col1\) \* tab2\.col1 AS col1" at position 1 and "\(\- tab2\.col0\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT col2 * 42 * + col1 * + ( - col2 ), col0 + - col1 + - + col2 * + - col1 * + col1 AS col1, - + col0 AS col1 FROM tab2 +---- +9 values hashing to 66e62febcd1ecaf1decbbbb1091b5caa query I rowsort SELECT ALL 8 * - col1 * 5 * col1 * - col1 AS col0 FROM tab1 @@ -25482,8 +25757,15 @@ SELECT - MAX ( - - 50 ) * - 64 FROM tab1 # Datafusion - Expected - 88 # Datafusion - Expected - 192 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ tab1\.col2 AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 + + + ( + col2 ) col1, + 88 AS col1 FROM tab1 +---- +118 +136 +192 +88 +88 +88 query I rowsort SELECT - col2 * - - 54 AS col1 FROM tab1 @@ -25528,8 +25810,15 @@ SELECT DISTINCT - 71 * + - col2 FROM tab0 AS cor0 # Datafusion - Expected - -124 # Datafusion - Expected - 80 # Datafusion - Expected - -135 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / \(\- cor0\.col0\) \+ Int64\(80\) \- cor0\.col1 \- \(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col0\) \+ Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 / + - col0 + + 80 - col1 - - col1 AS col0, - col0 + - 60 col0 FROM tab2 AS cor0 +---- +-106 +-124 +-135 +79 +79 +80 query I rowsort label-4229 SELECT DISTINCT + CAST ( col2 AS INTEGER ) col2 FROM tab1 cor0 @@ -25599,8 +25888,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) - 9 AS col0, COUNT ( * ) / + 84 AS col0 FROM tab0 +---- +-6 +0 query I rowsort SELECT col2 - 69 FROM tab2 @@ -25667,8 +25959,15 @@ SELECT ALL - + col0 * 59 col1 FROM tab2 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col0, + col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query II rowsort SELECT ALL ( - col1 ) + - col2 * - - col1 AS col0, col0 * + 14 FROM tab1 AS cor0 @@ -27443,8 +27742,15 @@ SELECT + - 46 FROM tab1 AS cor0 WHERE + col2 IS NULL # Datafusion - Expected - -91 # Datafusion - Expected - 5617 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ cor0\.col1 \+ cor0\.col0 \* \(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "Int64\(\-91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 + col1 + col0 * - - col0 AS col1, - 91 AS col1 FROM tab2 AS cor0 +---- +-91 +-91 +-91 +2121 +4109 +5617 query I rowsort SELECT DISTINCT - col0 + - - 78 AS col2 FROM tab1 @@ -27476,8 +27782,15 @@ SELECT DISTINCT + 56 - - - 63 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 83 # Datafusion - Expected - -25 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ Int64\(\-25\) \- cor0\.col1 AS col2" at position 0 and "Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + - 25 - + col1 AS col2, 83 col2 FROM tab1 AS cor0 +---- +-25 +-25 +-25 +83 +83 +83 query I rowsort SELECT - 62 + + col2 * col1 + - col1 + - 88 * + col2 + + col1 col1 FROM tab0 AS cor0 @@ -27724,8 +28037,9 @@ SELECT ALL col1 + + + col1 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL 42 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "\(\- CAST\(\(\- cor0\.col2\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col1 AS col2, - CAST ( + + ( - col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( col1 * + - col0 * - col2 ) AND - col2 +---- query III rowsort SELECT ALL * FROM tab0 cor0 WHERE NOT col0 / - - 12 IS NOT NULL @@ -28093,8 +28407,15 @@ SELECT - 94 + - col2 col1 FROM tab2 AS cor0 # Datafusion - Expected - 70 # Datafusion - Expected - 97 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 col2, 70 AS col2 FROM tab0 cor0 +---- +15 +70 +70 +70 +87 +97 query I rowsort label-4641 SELECT DISTINCT + COUNT ( * ) + 28 AS col1 FROM tab2 AS cor0 @@ -28292,8 +28613,15 @@ SELECT + + 53 + ( + col0 ) AS col1 FROM tab2 cor0 # Datafusion - Expected - 25 # Datafusion - Expected - 24 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ cor0\.col0 AS col2" at position 0 and "Int64\(5\) \+ CAST\(Int64\(20\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 + col0 AS col2, 5 + + CAST ( + 20 AS INTEGER ) AS col2 FROM tab2 AS cor0 +---- +17 +23 +24 +25 +25 +25 query III rowsort SELECT * FROM tab0 WHERE 18 * - col2 IS NULL @@ -28418,8 +28746,15 @@ SELECT ALL col1 col2 FROM tab1 WHERE NOT - col1 + - + col0 <> - col2 # Datafusion - Expected - -32 # Datafusion - Expected - 714 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* tab1\.col1 AS col0" at position 0 and "\(\- tab1\.col2\) \- Int64\(0\) \+ \(\- tab1\.col1\) \* tab1\.col1 / tab1\.col1 \+ Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * + + col1 AS col0, - col2 - + + 0 + - + col1 * + col1 / + col1 + + 83 AS col0 FROM tab1 +---- +-27 +-32 +19 +425 +4277 +714 query II rowsort SELECT + ( + 29 ), col0 * + + 60 * - col0 AS col0 FROM tab2 @@ -28892,8 +29227,15 @@ SELECT DISTINCT + col1 - ( - + ( col2 ) ) + + 31 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 714 # Datafusion - Expected - -90 # Datafusion - Expected - 425 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col1 AS Int32\)\) \+ \(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col0 \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( col1 AS INTEGER ) + + - col0 AS col2, col0 * + col1 AS col2 FROM tab1 AS cor0 WHERE - col1 * + - 98 IS NOT NULL AND col2 + + CAST ( NULL AS INTEGER ) + ( + - col2 ) IS NULL +---- +-138 +-65 +-90 +425 +4277 +714 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 @@ -28902,8 +29244,15 @@ SELECT ALL - CAST ( col1 AS INTEGER ) + + - col0 AS col2, col0 * + col1 AS col2 # Datafusion - Expected - 159 # Datafusion - Expected - 5 # Datafusion - Expected - 144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 \- \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, col0 - + - col2 AS col2 FROM tab1 AS cor0 +---- +14 +144 +147 +159 +47 +5 query I rowsort label-4768 SELECT ALL + + 26 * + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) FROM tab0 AS cor0 @@ -29030,8 +29379,11 @@ SELECT + - 40 col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- min\(cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, - MIN ( + + col0 ) AS col2 FROM tab1 AS cor0 +---- +-51 +3 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT 45 + - col0 >= NULL @@ -29733,8 +30085,15 @@ SELECT - ( COUNT ( DISTINCT - 7 ) ) FROM tab1 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -96 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL +---- +-14 +-47 +-5 +-59 +-68 +-96 query I rowsort label-4907 SELECT + MAX ( ALL + + 20 ) col0 FROM tab2 AS cor0 @@ -30164,8 +30523,15 @@ SELECT DISTINCT + col0 + + + 94 AS col0 FROM tab0 # Datafusion - Expected - -67 # Datafusion - Expected - -66 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col2" at position 0 and "tab2\.col1 \* tab2\.col2 / \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 66 AS col2, col1 * + col2 / - col2 col2 FROM tab2 +---- +-51 +-66 +-66 +-66 +-67 +-77 query I rowsort SELECT ALL 24 + - + 99 FROM tab2 @@ -31292,8 +31658,15 @@ SELECT + + col0 FROM tab2 WHERE NOT 54 > + col2 + - col1 # Datafusion - Expected - 3876 # Datafusion - Expected - 5 # Datafusion - Expected - 3363 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "tab1\.col2 \* Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, + col2 * 57 AS col0 FROM tab1 +---- +14 +3363 +3876 +47 +5 +5472 query I rowsort label-5163 SELECT ALL + 75 * + MIN ( DISTINCT - - 8 ) FROM tab2 @@ -31800,8 +32173,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * - 57 AS col2, 7 / + 51 AS col2 FROM tab1 AS cor0 +---- +-171 +0 query I rowsort label-5248 SELECT - + ( + COUNT ( * ) ) * - MAX ( DISTINCT - col0 ) AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) <= NULL @@ -32228,8 +32604,15 @@ SELECT + ( - COUNT ( * ) ) FROM tab0 WHERE + - col1 < NULL # Datafusion - Expected - -31 # Datafusion - Expected - -58 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(\-31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( col2 ) AS col1, - 31 AS col1 FROM tab2 AS cor0 +---- +-23 +-31 +-31 +-31 +-40 +-58 query I rowsort SELECT + - 67 - - col0 col0 FROM tab0 AS cor0 @@ -33109,8 +33492,15 @@ SELECT DISTINCT + 41 * + 31 * + col0 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 52 # Datafusion - Expected - -96 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, 52 AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +52 +52 +52 query I rowsort label-5468 SELECT - COUNT ( * ) * + COUNT ( * ) / 64 + + MIN ( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0 @@ -33317,8 +33707,15 @@ SELECT * FROM tab2 WHERE NOT NULL BETWEEN + 83 AND NULL # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, + col2 AS col2 FROM tab0 cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT DISTINCT + + col1 * - 97 * + + 35 - 16 + col2 * - col0 col2 FROM tab0 AS cor0 @@ -34328,16 +34725,20 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "sum\(cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) AS col1, SUM ( ALL + col0 ) AS col1 FROM tab2 AS cor0 +---- +-3 +185 query I rowsort SELECT - 1 * - ( + 73 ) AS col0 FROM tab2 WHERE NOT ( NULL NOT IN ( + col2, + col0, col2 ) ) ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 15 AS col0, col1 AS col0 FROM tab0 WHERE NOT ( ( - col0 ) NOT BETWEEN NULL AND + - col0 ) +---- query III rowsort SELECT ALL * FROM tab1 WHERE NULL > + - 67 @@ -34524,8 +34925,10 @@ SELECT MIN ( ALL + col0 ) AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 545d9f728c50bfcf751a08d933b045b1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "Int64\(22\) \* Int64\(95\) \- Int64\(82\) \* Int64\(62\) \+ tab1\.col1 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col2 AS col1, col0 * + CAST ( NULL AS INTEGER ) * - ( 80 ) + + ( ( + col0 ) ) + + col0, + 22 * 95 - 82 * 62 + + col1 AS col1 FROM tab1 +---- +9 values hashing to 0d384c88f01bf8c8803b328d97324df5 query II rowsort SELECT ALL + col2 col1, - col0 FROM tab0 @@ -35203,8 +35606,15 @@ SELECT DISTINCT COUNT ( * ), 46 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 # Datafusion - Expected - 20 # Datafusion - Expected - 81 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, 20 AS col2 FROM tab0 +---- +1 +20 +20 +20 +21 +81 query II rowsort SELECT - col2 AS col2, col0 FROM tab0 @@ -35588,8 +35998,15 @@ SELECT 59 * 42 * + 31 FROM tab1 AS cor0 WHERE NOT NULL <> NULL # Datafusion - Expected - -4489 # Datafusion - Expected - 62 # Datafusion - Expected - -5929 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "tab2\.col1 \* \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 col2, col1 * - col1 AS col2 FROM tab2 +---- +-2601 +-4489 +-5929 +62 +62 +62 query I rowsort label-5868 SELECT ALL - ( + - ( COUNT ( * ) ) ) FROM tab0 @@ -36839,8 +37256,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 / + 1 + - col0 IS NOT NULL # Datafusion - Expected - -77 # Datafusion - Expected - 179 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ \(\- \(\- cor0\.col1\)\) \+ cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 + - - col1 + col0 AS col2, - col1 col2 FROM tab2 cor0 +---- +-51 +-67 +-77 +134 +178 +179 # Datafusion - Datafusion expected results: query error DataFusion error: Schema error: Schema contains qualified field name cor0\.col1 and unqualified field name col1 which would be ambiguous @@ -37572,8 +37996,11 @@ SELECT ALL + + COUNT ( * ), ( - - ( + COUNT ( * ) ) ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "max\(\(\- cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, MAX ( - col0 ) col2 FROM tab1 AS cor0 +---- +-51 +3 query I rowsort label-6187 SELECT + 48 * + 47 - + CAST ( - col1 AS INTEGER ) FROM tab0 @@ -38444,8 +38871,11 @@ SELECT DISTINCT + COUNT ( * ) col0 FROM tab1 WHERE ( + col2 ) = NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(25\)\) AS col0" at position 0 and "Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( 25 ) col0, - 43 AS col0 FROM tab0, tab0 AS cor0 +---- +-43 +25 query II rowsort SELECT ALL + ( 89 ) AS col0, + col2 * + - col0 AS col1 FROM tab0 @@ -38742,8 +39172,15 @@ SELECT + + col1 AS col2, 18 FROM tab1 AS cor0 # Datafusion - Expected - 609 # Datafusion - Expected - -81 # Datafusion - Expected - 2349 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 \- cor0\.col1 \* \(\- Int64\(28\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 AS col2, + col1 - col1 * - ( + 28 ) AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +2349 +29 +609 query I rowsort SELECT + col0 * + + col1 - 88 AS col2 FROM tab1 AS cor0 @@ -38936,8 +39373,10 @@ SELECT DISTINCT - SUM ( - 93 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to b6f9fbd7394c6f68254dcdd8d66dc8a9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-5\) AS Int32\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + CAST ( + - 5 AS INTEGER ) AS col1, + 76 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 +---- +18 values hashing to d712666aae2e262dd00c60e00fad67a7 query I rowsort SELECT - + 24 AS col2 FROM tab0 AS cor0 WHERE + col0 >= NULL @@ -40199,8 +40638,15 @@ SELECT ALL - - 66 * col1 FROM tab1 cor0 # Datafusion - Expected - 40 # Datafusion - Expected - -75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col1, col2 col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +23 +40 +58 query I rowsort label-6634 SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 cor0 @@ -40735,8 +41181,15 @@ SELECT DISTINCT 85 * ( - col1 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 34 # Datafusion - Expected - -97 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col0 AS col2, + 34 AS col2 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +34 +34 +34 query III rowsort SELECT * FROM tab2 WHERE NOT NULL BETWEEN - col0 / + col0 + 43 AND NULL @@ -41262,8 +41715,15 @@ SELECT ALL * FROM tab2 WHERE NULL < - + col0 * + col2 - - col0 + - - col1 - + co # Datafusion - Expected - 0 # Datafusion - Expected - 56595 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(\-49\) \* \(\- tab0\.col0\) AS col2" at position 0 and "tab0\.col1 \- tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 * - 49 * - col0 AS col2, col1 - + col1 AS col2 FROM tab0 +---- +0 +0 +0 +328251 +365981 +56595 query II rowsort SELECT col0 * - + col1 * + + ( - col0 ), - ( - - 22 ) AS col0 FROM tab2 cor0 @@ -41618,8 +42078,15 @@ SELECT ALL + 1 + + col0 FROM tab1 AS cor0 # Datafusion - Expected - 144 # Datafusion - Expected - 1 # Datafusion - Expected - 159 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) / \(\- Int64\(85\)\) AS col0" at position 0 and "cor0\.col2 \+ \(\- \(\- cor0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 / - ( 85 ) AS col0, col2 + - - col0 col0 FROM tab1 AS cor0 +---- +0 +1 +1 +144 +147 +159 query I rowsort label-6871 SELECT 39 * ( + col2 ) * + CAST ( NULL AS INTEGER ) * - col2 + - + 51 AS col2 FROM tab0 AS cor0 @@ -41826,8 +42293,15 @@ SELECT COUNT ( * ) + - 92 FROM tab2 AS cor0 # Datafusion - Expected - 78 # Datafusion - Expected - 29 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ Int64\(\-67\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 + - 67 AS col2, 78 AS col2 FROM tab1 +---- +-8 +1 +29 +78 +78 +78 query II rowsort SELECT ALL ( col1 ), 23 FROM tab2 @@ -44714,8 +45188,15 @@ SELECT ALL col0 FROM tab0 cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - -67 # Datafusion - Expected - 87 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "Int64\(\-67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 AS col1, - 67 AS col1 FROM tab0 AS cor0 +---- +-67 +-67 +-67 +87 +87 +87 query III rowsort label-7404 SELECT * FROM tab2 cor0 WHERE NULL IN ( 30 * col1 * + 83 * + CAST ( col1 AS INTEGER ) - + col1 ) @@ -45155,8 +45636,15 @@ SELECT ALL - - ( - 64 ) + + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Expected - 5 # Datafusion - Expected - -4549 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(50\) \+ \(\- cor0\.col0\) / \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - ( col0 ) * + 50 + - + col0 / - col2 AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +-2550 +-4249 +-4549 +14 +47 +5 query III rowsort SELECT * FROM tab2 AS cor0 WHERE ( + - col0 ) IS NOT NULL @@ -46573,8 +47061,15 @@ SELECT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL # Datafusion - Expected - 158 # Datafusion - Expected - 9 # Datafusion - Expected - 168 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col0" at position 0 and "cor0\.col1 \+ Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 9 AS col0, + ( col1 ) + + 91 AS col0 FROM tab2 AS cor0 +---- +142 +158 +168 +9 +9 +9 query III rowsort label-7712 SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS FLOAT8 ) NOT IN ( + col2 ) @@ -46783,8 +47278,15 @@ SELECT DISTINCT + ( - + 84 ) AS col0 FROM tab1 # Datafusion - Expected - 73 # Datafusion - Expected - 672 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* Int64\(32\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + + 32 AS col2, 73 AS col2 FROM tab0 +---- +2592 +32 +672 +73 +73 +73 query I rowsort label-7745 SELECT DISTINCT + ( + MAX ( ALL 14 ) ) FROM tab0 @@ -47147,8 +47649,9 @@ SELECT ( - + col0 ) * col0 AS col1 FROM tab1 -8281 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, 0 col1 FROM tab1 WHERE NULL <> col0 * + col1 +---- query I rowsort label-7801 SELECT ALL MIN ( ALL - 59 ) AS col2 FROM tab0 @@ -48468,8 +48971,15 @@ SELECT DISTINCT 54 * - - SUM ( col0 ) FROM tab2 # Datafusion - Expected - 93 # Datafusion - Expected - 41 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 AS col1, + 93 AS col1 FROM tab2 +---- +41 +41 +41 +93 +93 +93 query II rowsort SELECT + 43 AS col2, + col1 + + 73 * + 25 col1 FROM tab2 @@ -49191,8 +49701,15 @@ SELECT DISTINCT - col0 + - col1 + col0 col1 FROM tab1 # Datafusion - Expected - -64 # Datafusion - Expected - 1 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 / \(\- \(\- tab2\.col0\)\) AS col0" at position 0 and "\(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 / + - ( - col0 ) AS col0, - col0 AS col0 FROM tab2 +---- +-46 +-64 +-75 +1 +1 +1 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NULL <= - 18 + + col0 @@ -49660,8 +50177,15 @@ SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) + + - 96 IS NOT NULL # Datafusion - Expected - 21 # Datafusion - Expected - -81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + + col1 ) AS col0, + col1 AS col0 FROM tab0 +---- +-1 +-21 +-81 +1 +21 +81 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + + col1 + + + 51 @@ -50147,8 +50671,15 @@ SELECT ALL - 87 col0, col0 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - 939 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(17\) \+ Int64\(\-47\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * + 17 + - 47 AS col1, - col2 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +344 +633 +939 query I rowsort label-8297 SELECT DISTINCT + 31 + COUNT ( * ) AS col2 FROM tab2 AS cor0 @@ -50333,8 +50864,15 @@ SELECT 84 col1, + col0 FROM tab1 # Datafusion - Expected - -21 # Datafusion - Expected - 55 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "\(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 55 AS col2, - col1 AS col2 FROM tab0 +---- +-1 +-21 +-81 +55 +55 +55 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 @@ -50343,8 +50881,15 @@ SELECT + 55 AS col2, - col1 AS col2 FROM tab0 # Datafusion - Expected - -87 # Datafusion - Expected - -97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0, - col0 FROM tab0 AS cor0 +---- +-15 +-15 +-87 +-87 +-97 +-97 query I rowsort SELECT DISTINCT - - 66 FROM tab1 AS cor0 @@ -50804,8 +51349,11 @@ SELECT ALL - col0 * + + col1 * - 60 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 88 col1, 94 AS col1 FROM tab0 +---- +88 +94 query I rowsort label-8396 SELECT ALL col2 * + + CAST ( NULL AS INTEGER ) FROM tab0 @@ -50983,8 +51531,15 @@ SELECT DISTINCT - ( ( col1 ) ) AS col2 FROM tab2 # Datafusion - Expected - 10 # Datafusion - Expected - 81 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 col0, col2 AS col0 FROM tab0 AS cor0 +---- +1 +10 +21 +47 +81 +99 query I rowsort SELECT DISTINCT 6 + + - 59 AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL @@ -51257,8 +51812,9 @@ SELECT ALL - ( - COUNT ( - + col2 ) ) AS col0 FROM tab2 AS cor0 3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 46 AS col1, - col0 AS col1 FROM tab2 AS cor0 WHERE NOT col1 >= - 62 +---- query I rowsort label-8468 SELECT DISTINCT - col1 + - - col2 / + - 8 col2 FROM tab2 @@ -51407,8 +51963,15 @@ SELECT col1 col0, col2 FROM tab2 # Datafusion - Expected - -47 # Datafusion - Expected - 85 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 85 AS col1, - col1 AS col1 FROM tab1 +---- +-14 +-47 +-5 +85 +85 +85 query I rowsort label-8490 SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL <= NULL @@ -51907,8 +52470,11 @@ SELECT COUNT ( * ) / - ( + ( - COUNT ( * ) ) ) AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) AS col2, - COUNT ( * ) * - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 +---- +-3 +NULL query III rowsort SELECT * FROM tab0 WHERE NOT ( - - 77 ) IS NULL @@ -52334,8 +52900,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( - col1 AS INTEGER ) * + 6 # Datafusion - Expected - 10 # Datafusion - Expected - 81 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, + ( 10 ) AS col0 FROM tab0 AS cor0 +---- +1 +10 +10 +10 +21 +81 query I rowsort label-8643 SELECT - - MAX ( ALL - - 9 ) AS col2 FROM tab2 cor0 @@ -53242,8 +53815,11 @@ SELECT DISTINCT - col0, + 62 FROM tab2 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, 99 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL +---- +3 +99 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 * 77 + + - col0 - - - col2 * - 35 BETWEEN NULL AND + col1 @@ -53288,8 +53864,15 @@ SELECT COUNT ( * ) * + SUM ( DISTINCT col1 ) AS col1 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-8802 SELECT 93 * COUNT ( * ) AS col1 FROM tab2 @@ -53403,8 +53986,15 @@ NULL # Datafusion - Expected - 163 # Datafusion - Expected - -95 # Datafusion - Expected - 173 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \- tab0\.col2 AS col2" at position 0 and "Int64\(76\) \+ \(\- \(\- tab0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 4 - + col2 AS col2, 76 + - - col0 AS col2 FROM tab0 +---- +-43 +-6 +-95 +163 +173 +91 query I rowsort label-8819 SELECT + col0 + - - col2 / + - col1 AS col2 FROM tab1 WHERE NULL IS NULL @@ -53687,8 +54277,15 @@ SELECT - col0 AS col1, 52 AS col2 FROM tab0 # Datafusion - Expected - -64 # Datafusion - Expected - 91 # Datafusion - Expected - -115 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "\(\- tab1\.col1\) \+ \(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, - col1 + + - col2 AS col1 FROM tab1 +---- +-110 +-115 +-64 +51 +85 +91 query I rowsort SELECT + 45 * 40 FROM tab1 @@ -54179,8 +54776,15 @@ SELECT - COUNT ( * ) / COUNT ( * ) AS col0 FROM tab2 # Datafusion - Expected - -26 # Datafusion - Expected - 91 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "\(\- tab1\.col0\) \+ tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, - col0 + col2 AS col1 FROM tab1 +---- +-23 +-26 +45 +51 +85 +91 query I rowsort SELECT ALL 91 * - + col1 FROM tab0 @@ -54212,8 +54816,15 @@ SELECT DISTINCT 3 AS col2 FROM tab1 WHERE ( NULL IS NULL ) # Datafusion - Expected - -734193 # Datafusion - Expected - 13 # Datafusion - Expected - -819553 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 0 and "\(\- tab0\.col0\) \* Int64\(96\) \* Int64\(87\) \+ tab0\.col0 \* \(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 AS col0, - col0 * + + 96 * + 87 + col0 * - col0 AS col0 FROM tab0 +---- +-125505 +-734193 +-819553 +13 +13 +13 query II rowsort label-8947 SELECT ALL - COUNT ( * ), COUNT ( * ) AS col0 FROM tab0 @@ -54751,8 +55362,15 @@ SELECT 21 + - col0 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) NOT BETWEE # Datafusion - Expected - 3840 # Datafusion - Expected - 19 # Datafusion - Expected - 5568 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) \+ tab2\.col2 \+ Int64\(43\) AS col2" at position 0 and "tab2\.col2 \* Int64\(97\) \- tab2\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 + + col2 + + 43 col2, + col2 * 97 - col2 AS col2 FROM tab2 +---- +-16 +1 +19 +2208 +3840 +5568 query I rowsort label-9045 SELECT COUNT ( * ) FROM tab1 WHERE - col1 IS NULL @@ -54790,8 +55408,15 @@ SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) * - COUNT ( * ) FROM tab2 # Datafusion - Expected - -21 # Datafusion - Expected - -97 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, - col1 AS col1 FROM tab0 +---- +-1 +-15 +-21 +-81 +-87 +-97 query III rowsort label-9051 SELECT * FROM tab0 WHERE + + CAST ( + 77 AS INTEGER ) + + 31 < ( NULL ) @@ -56315,8 +56940,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT 0 < col0 # Datafusion - Expected - -2560 # Datafusion - Expected - 37 # Datafusion - Expected - -4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "cor0\.col0 \* \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 AS col0, ( col0 ) * ( - + ( + col2 ) ) AS col0 FROM tab2 AS cor0 +---- +-1058 +-2560 +-4350 +37 +37 +37 query II rowsort SELECT ALL + + 56 * 17 * - col2 * - col2 * + + 69 AS col2, col1 * + - col2 AS col1 FROM tab2 AS cor0 @@ -57263,8 +57895,15 @@ SELECT ALL 98 * - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL < ( col0 ) # Datafusion - Expected - 696 # Datafusion - Expected - 81 # Datafusion - Expected - 120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col0\) \+ cor0\.col0 \* Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, - col0 + + col0 * + 9 AS col0 FROM tab0 AS cor0 +---- +1 +120 +21 +696 +776 +81 query I rowsort SELECT + 49 * + 78 AS col1 FROM tab2 AS cor0 @@ -57626,8 +58265,9 @@ SELECT DISTINCT COUNT ( DISTINCT + col2 ) * + + 32 FROM tab0 AS cor0 96 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ cor0\.col1 \+ Int64\(74\) AS col2" at position 0 and "Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + CAST ( NULL AS INTEGER ) + col1 + + 74 AS col2, 8 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> col2 +---- query I rowsort label-9519 SELECT DISTINCT - MIN ( + + 14 ) AS col0 FROM tab1 @@ -58522,8 +59162,15 @@ SELECT 55 AS col1 FROM tab1, tab2 cor0 # Datafusion - Expected - -66 # Datafusion - Expected - 3360 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* tab1\.col0 \+ \(\- \(\- tab1\.col0\)\) \+ \(\- Int64\(\-84\)\) AS col0" at position 0 and "Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 * + + col0 + - - col0 + - - 84 AS col0, - 66 AS col0 FROM tab1 +---- +-66 +-66 +-66 +1920 +3144 +3360 query I rowsort SELECT DISTINCT 1 + + ( - col1 ) AS col0 FROM tab0 @@ -58608,8 +59255,15 @@ SELECT + 3 * - - 48 * + 71 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 43 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 43 AS col0, col1 AS col0 FROM tab2 +---- +43 +43 +43 +51 +67 +77 query I rowsort label-9678 SELECT DISTINCT - SUM ( + - 90 ) FROM tab1 @@ -60144,8 +60798,15 @@ SELECT ALL 4 * - col0 * + col1 FROM tab1 # Datafusion - Expected - 39 # Datafusion - Expected - 91 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 0 and "cor0\.col1 / Int64\(\-74\) \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 91 AS col1, col1 / - 74 + col2 AS col1 FROM tab2 AS cor0 +---- +23 +39 +58 +91 +91 +91 query III rowsort SELECT * FROM tab1 cor0 WHERE ( - col2 / + col0 ) IN ( col1 ) diff --git a/data/sqlite/random/aggregates/slt_good_107.slt b/data/sqlite/random/aggregates/slt_good_107.slt index 15b92ca..ca05913 100644 --- a/data/sqlite/random/aggregates/slt_good_107.slt +++ b/data/sqlite/random/aggregates/slt_good_107.slt @@ -411,8 +411,10 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 8 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c0bb55c89dc5af3f7155c0ba46e2d164 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col0" at position 0 and "\(\- cor0\.col1\) \* \(\- cor0\.col2\) \* cor0\.col2 AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 62 col0, col1, ( - col1 ) * - col2 * ( + ( + col2 ) ) AS col0 FROM tab2 AS cor0 +---- +9 values hashing to 65a677505e385d3d0c7e43863ef47a7f query II rowsort label-61 SELECT + col2 * + col2 + col2 * - - 54 AS col0, CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL @@ -836,8 +838,9 @@ SELECT ALL + ( - ( COUNT ( * ) ) ) FROM tab2 cor0 -3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(\-18\) AS col2" at position 0 and "cor0\.col1 \* Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * - 18 AS col2, col1 * 49 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 >= NULL +---- query II rowsort SELECT DISTINCT + col2 * - col2 + + 69 * - col1 AS col0, col0 AS col2 FROM tab0 cor0 @@ -1696,8 +1699,15 @@ SELECT + MAX ( + + 76 ) + - - COUNT ( * ) AS col2 FROM tab1 # Datafusion - Expected - 69090 # Datafusion - Expected - -99 # Datafusion - Expected - 941094 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col0" at position 0 and "tab0\.col0 \* Int64\(98\) \* tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, col0 * 98 * + col2 AS col0 FROM tab0 +---- +-10 +-47 +-99 +69090 +85260 +941094 query II rowsort SELECT ALL col0 AS col1, + col0 AS col2 FROM tab0 @@ -1737,8 +1747,15 @@ SELECT SUM ( - 2 ) FROM tab0 AS cor0 # Datafusion - Expected - 42 # Datafusion - Expected - 78 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "Int64\(\-16\) \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 AS col2, - 16 + col2 AS col2 FROM tab2 AS cor0 +---- +24 +42 +7 +78 +78 +78 query III rowsort SELECT ALL * FROM tab1 WHERE - + col1 NOT BETWEEN NULL AND col0 * - 18 / col2 * - col1 + + col1 - - col0 @@ -1874,8 +1891,15 @@ NULL # Datafusion - Expected - -30 # Datafusion - Expected - 30 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 30 AS col2, - 30 AS col2 FROM tab1 +---- +-30 +-30 +-30 +30 +30 +30 query I rowsort label-301 SELECT - MAX ( + - 29 ) FROM tab0 AS cor0 @@ -1907,8 +1931,15 @@ SELECT ALL - CAST ( col2 AS INTEGER ) FROM tab1 cor0 # Datafusion - Expected - 199 # Datafusion - Expected - -81 # Datafusion - Expected - 3773 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 \* cor0\.col2 \- CAST\(\(\- cor0\.col2\) AS Int32\) \+ \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, col1 * col2 - + CAST ( + - col2 AS INTEGER ) + - col1 AS col0 FROM tab0 cor0 +---- +-1 +-21 +-81 +197 +199 +3773 query II rowsort SELECT - col0, + col1 * col1 AS col2 FROM tab1 AS cor0 @@ -2508,8 +2539,15 @@ SELECT DISTINCT 29 AS col2, - col1 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col0 \+ \(\- cor0\.col0\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col2 col0, col0 + - col0 * + CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0 +---- +-10 +-47 +-99 +NULL +NULL +NULL query I rowsort label-408 SELECT + 9 / col2 FROM tab0 AS cor0 @@ -2856,8 +2894,15 @@ SELECT DISTINCT col1 AS col1 FROM tab0 WHERE ( NULL ) IN ( 84 + col2 ) # Datafusion - Expected - 9 # Datafusion - Expected - -75 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "tab2\.col2 \+ Int64\(\-87\) \- Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, + col2 + - 87 - + - 56 col0 FROM tab2 +---- +-46 +-64 +-75 +-8 +27 +9 query II rowsort SELECT + + col2 AS col1, col2 FROM tab0 AS cor0 @@ -2995,8 +3040,15 @@ SELECT DISTINCT 69 * col2 + + col1 + - col1 + - - col2 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -96 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 AS col0, - col1 AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +-59 +-68 +-96 query I rowsort label-492 SELECT ALL + + MIN ( DISTINCT - + col0 ) FROM tab1 AS cor0 @@ -3374,8 +3426,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 820487 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ tab1\.col0 \+ tab1\.col0 \+ tab1\.col2 \+ tab1\.col1 \+ \(\- \(\- tab1\.col2\)\) \* \(\- Int64\(89\)\) \* \(\- tab1\.col2\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + col0 + col0 + col2 + + col1 + - - col2 * - + 89 * - col2 AS col0, + col1 AS col0 FROM tab1 +---- +14 +310128 +411924 +47 +5 +820487 query I rowsort SELECT DISTINCT 11 * - 36 FROM tab1 @@ -3433,8 +3492,9 @@ SELECT + 74 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 ) 9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, 72 AS col1 FROM tab1 WHERE NOT + - col1 >= NULL +---- query I rowsort SELECT ALL - col0 * - + 55 * - col2 FROM tab1 @@ -3597,8 +3657,15 @@ SELECT DISTINCT + + 17 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col2 AS col2, col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-592 SELECT ALL - 88 / + ( - 28 ) + - col0 * 42 + - - 65 FROM tab1 cor0 @@ -3753,8 +3820,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 1 AS col1, - COUNT ( * ) AS col1 FROM tab2 cor0 +---- +-3 +1 query I rowsort SELECT DISTINCT + 65 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - + col2 @@ -4379,8 +4449,11 @@ SELECT * FROM tab0 cor0 WHERE NOT ( + col2 ) - 65 + - col2 * + 74 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- cor0\.col2\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( - col2 ) AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +3 +3 query I rowsort label-722 SELECT 22 + + 67 + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 14 IS NULL @@ -4747,8 +4820,15 @@ SELECT ALL - + 33 AS col2 FROM tab1 WHERE NOT - + 32 * + 92 IS NOT NULL # Datafusion - Expected - -64 # Datafusion - Expected - -768 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \* Int64\(48\) AS col0" at position 0 and "\(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 16 * + 48 col0, - col0 AS col0 FROM tab2 +---- +-46 +-64 +-75 +-768 +-768 +-768 query I rowsort SELECT + 18 * - - col2 FROM tab1 @@ -6847,8 +6927,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT - ( - col1 ) IS NOT NULL # Datafusion - Expected - 81 # Datafusion - Expected - -5220 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* Int64\(\-90\) \* \(\- Int64\(58\)\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col1 * - 90 * - + ( 58 ) AS col0, + col1 AS col0 FROM tab0 AS cor0 +---- +-109620 +-422820 +-5220 +1 +21 +81 query I rowsort SELECT col0 + - + col0 + - ( col1 ) FROM tab0 AS cor0 @@ -7385,8 +7472,15 @@ SELECT ALL - + 52 col1, - col1 AS col2 FROM tab1 AS cor0 WHERE NOT CAST ( NULL A # Datafusion - Expected - 0 # Datafusion - Expected - -3196 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col1 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 II valuesort SELECT ALL - col2 * col1 AS col1, 5 / 36 AS col1 FROM tab1 AS cor0 +---- +-1344 +-295 +-3196 +0 +0 +0 query I rowsort label-1233 SELECT DISTINCT - - COUNT ( col1 ) AS col2 FROM tab1 AS cor0 @@ -7725,8 +7819,11 @@ SELECT - COUNT ( * ) - + - 53 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-69\) AS Int32\) \- Int64\(\-3\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - 69 AS INTEGER ) - - 3 AS col2, - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +-66 +0 query I rowsort label-1288 SELECT DISTINCT - COUNT ( + ( + col0 ) ) - COUNT ( * ) FROM tab1 AS cor0 @@ -7907,8 +8004,11 @@ SELECT DISTINCT + 82 + 53 - - COUNT ( * ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) * ( + 41 ) AS col1 FROM tab0 +---- +3 +NULL query I rowsort SELECT - ( col1 ) * - 55 FROM tab0 @@ -8060,8 +8160,15 @@ SELECT 27 * + col2, col2 FROM tab0 AS cor0 # Datafusion - Expected - -77 # Datafusion - Expected - -75 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col1" at position 0 and "\(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, - col1 AS col1 FROM tab2 +---- +-46 +-51 +-64 +-67 +-75 +-77 query I rowsort SELECT + 56 * + 58 * col2 AS col2 FROM tab2 @@ -8210,8 +8317,11 @@ SELECT + COUNT ( * ) + 49 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col2, + COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +3 +3 query I rowsort label-1367 SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 @@ -9168,8 +9278,15 @@ SELECT + col1 AS col2 FROM tab2 WHERE NOT - col1 IS NOT NULL # Datafusion - Expected - 129 # Datafusion - Expected - 77 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-77\)\) AS col1" at position 0 and "tab2\.col0 \+ Int64\(\-13\) \+ tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - - 77 ) AS col1, col0 + - 13 + col1 AS col1 FROM tab2 +---- +128 +129 +77 +77 +77 +84 query I rowsort SELECT 43 * + col2 FROM tab2 @@ -9319,8 +9436,15 @@ NULL # Datafusion - Expected - -4959 # Datafusion - Expected - -9409 # Datafusion - Expected - -5529 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col0 \* Int64\(\-57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 * - col0 col1, col0 * - 57 AS col1 FROM tab0 cor0 +---- +-225 +-4959 +-5529 +-7569 +-855 +-9409 query I rowsort SELECT ALL 88 + + col2 FROM tab2 AS cor0 @@ -9573,8 +9697,15 @@ SELECT - 24 * 87 FROM tab0 AS cor0 WHERE NULL IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1, col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-1595 SELECT - 75 * - col0 / - col0 FROM tab1 AS cor0 @@ -9602,8 +9733,15 @@ SELECT + + col2 * + + col1 FROM tab2 AS cor0 # Datafusion - Expected - 78 # Datafusion - Expected - -96 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 AS col0, 78 AS col0 FROM tab1 cor0 +---- +-59 +-68 +-96 +78 +78 +78 query II rowsort SELECT + - col2 AS col2, col1 FROM tab2 cor0 @@ -10641,8 +10779,15 @@ SELECT MIN ( + - ( + col2 ) ) AS col0 FROM tab0 cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + ( + - col2 ) ) AS col0, + col2 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT DISTINCT 11 * + - col2 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col2 + - col2 @@ -11374,13 +11519,22 @@ SELECT + + 77 + - 83 FROM tab0 AS cor0 # Datafusion - Expected - 83 # Datafusion - Expected - -58 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(19\) \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col1, + 19 + + col0 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +65 +83 +94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 395c55cd8298226f9b5071376fc7bd0c -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ tab2\.col2 AS col1" at position 0 and "tab2\.col2 \+ tab2\.col2 \- tab2\.col1 \* Int64\(94\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - CAST ( NULL AS INTEGER ) + col2 AS col1, 15 * - col2 + col0, + col2 + + col2 - col1 * 94 AS col1 FROM tab2 +---- +9 values hashing to 946350f329091e379a4de681a1f322ae query I rowsort SELECT 43 + - 87 col1 FROM tab1 @@ -12370,8 +12524,15 @@ SELECT ALL col0 * - - 88 AS col2 FROM tab2 # Datafusion - Expected - 147 # Datafusion - Expected - 49 # Datafusion - Expected - 159 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col1" at position 0 and "tab1\.col0 \+ tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 49 AS col1, col0 + + col2 AS col1 FROM tab1 +---- +144 +147 +159 +49 +49 +49 query I rowsort label-2061 SELECT + 54 / + col2 FROM tab2 @@ -13741,8 +13902,15 @@ SELECT ALL col1 * + col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL # Datafusion - Expected - 36 # Datafusion - Expected - -96 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 96 AS col1, + 36 AS col1 FROM tab1 AS cor0 +---- +-96 +-96 +-96 +36 +36 +36 query I rowsort SELECT DISTINCT - + col0 FROM tab2 WHERE - col0 <> + ( col2 ) * col0 + col0 @@ -13826,8 +13994,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 AS col2, + COUNT ( * ) + + 76 AS col2 FROM tab0 AS cor0 +---- +11 +79 query III rowsort label-2299 SELECT ALL * FROM tab2 AS cor0 WHERE + ( + ( + - 4 ) ) + + col1 > - col0 * 3 - CAST ( NULL AS INTEGER ) / - col0 @@ -13973,8 +14144,15 @@ SELECT SUM ( - - col0 ) AS col0 FROM tab0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, col0 AS col1 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-2324 SELECT DISTINCT - CAST ( - 59 AS INTEGER ) FROM tab1 @@ -14331,8 +14509,15 @@ SELECT col0 * - 1, col1 AS col1 FROM tab1 # Datafusion - Expected - 32 # Datafusion - Expected - NULL # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \* tab2\.col0 \* CAST\(NULL AS Float64\) AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - col1 * col0 * CAST ( NULL AS FLOAT8 ) AS col1, + 32 AS col1 FROM tab2 +---- +32 +32 +32 +NULL +NULL +NULL query II rowsort label-2383 SELECT DISTINCT 5 * CAST ( NULL AS INTEGER ), COUNT ( * ) AS col0 FROM tab0 @@ -14728,8 +14913,15 @@ SELECT DISTINCT - COUNT ( * ) - - - COUNT ( * ) FROM tab1 cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, col0 AS col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-2448 SELECT DISTINCT + SUM ( DISTINCT - + col2 ) FROM tab0 AS cor0 @@ -15151,8 +15343,15 @@ SELECT + + COUNT ( + 15 ) FROM tab1 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col1, col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 @@ -15362,8 +15561,15 @@ SELECT * FROM tab0 WHERE NOT ( + - col1 + CAST ( NULL AS INTEGER ) ) BETWEEN + c # Datafusion - Expected - 47 # Datafusion - Expected - -29 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 29 AS col0, + col2 col0 FROM tab0 AS cor0 +---- +-29 +-29 +-29 +10 +47 +99 query II rowsort label-2561 SELECT - 69 col0, CAST ( NULL AS INTEGER ) + - - col2 FROM tab2 AS cor0 @@ -15905,8 +16111,11 @@ SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE + col2 + col0 = + 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +3 +8 query I rowsort SELECT ( + - 20 ) FROM tab1 AS cor0 @@ -16018,8 +16227,11 @@ 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\(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\. +query II valuesort SELECT ALL - - COUNT ( * ) AS col1, + 50 * ( MAX ( DISTINCT + + col2 ) ) AS col1 FROM tab0 AS cor0 +---- +3 +4950 query I rowsort SELECT - + 26 AS col2 FROM tab0 AS cor0 @@ -16501,8 +16713,15 @@ SELECT - + ( + + col0 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - -96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "\(\- cor0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2, - col2 FROM tab1 AS cor0 +---- +-59 +-59 +-68 +-68 +-96 +-96 query I rowsort SELECT DISTINCT - - col2 AS col0 FROM tab1 WHERE ( 58 IS NOT NULL ) @@ -17470,8 +17689,15 @@ SELECT - ( COUNT ( * ) ) FROM tab1 AS cor0 WHERE NULL IS NULL # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL @@ -19023,8 +19249,9 @@ SELECT ALL ( + col2 ) - 30 FROM tab1 AS cor0 66 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col2 AS col2, col2, 83 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( 88 * + 0 ) +---- query IIIIII rowsort SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NULL IS NOT NULL @@ -19422,8 +19649,15 @@ SELECT ALL + ( - col2 ) - - - col2 + + + col0 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 94 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \- \(\- tab0\.col2\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 - - col2 AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 +---- +198 +20 +94 +NULL +NULL +NULL query I rowsort label-3232 SELECT - 46 - - 46 / col2 col1 FROM tab1 @@ -19643,8 +19877,15 @@ SELECT - 22 + 61 col2 FROM tab1 # Datafusion - Expected - 68 # Datafusion - Expected - 0 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \+ tab1\.col1 AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 + + + col1 AS col1, col2 AS col1 FROM tab1 +---- +0 +0 +0 +59 +68 +96 query III rowsort SELECT * FROM tab0 WHERE + - ( col2 ) NOT BETWEEN ( NULL ) AND NULL @@ -19684,8 +19925,15 @@ SELECT + CAST ( + COUNT ( * ) AS INTEGER ) / + SUM ( DISTINCT + + 78 ) / + COUNT # Datafusion - Expected - 15 # Datafusion - Expected - -4 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(64\)\) / cor0\.col1 AS col2" at position 0 and "CAST\(Int64\(15\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 64 / col1 AS col2, CAST ( 15 AS INTEGER ) col2 FROM tab1 AS cor0 +---- +-1 +-12 +-4 +15 +15 +15 query I rowsort label-3273 SELECT + 41 / col2 + col1 AS col0 FROM tab0 AS cor0 @@ -19881,8 +20129,15 @@ SELECT + 8 AS col1, - col0 FROM tab0 AS cor0 # Datafusion - Expected - 45 # Datafusion - Expected - 44 # Datafusion - Expected - 945 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "cor0\.col1 \* Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 44 AS col2, + col1 * + 45 AS col2 FROM tab0 AS cor0 +---- +3645 +44 +44 +44 +45 +945 query I rowsort label-3304 SELECT DISTINCT - COUNT ( * ) * + 92 * COUNT ( * ) AS col0 FROM tab2 AS cor0 @@ -20162,8 +20417,10 @@ SELECT ALL - 6 + + + ( - COUNT ( * ) ) AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a9b4d276adc46e80bbdd85241587132e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 1 and "Int64\(70\) \* tab1\.col1 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col0 AS col1, 7 AS col2, 70 * col1 AS col2 FROM tab1 +---- +9 values hashing to c1e9dba69030c1ae410261bc274bca9f query I rowsort SELECT DISTINCT ( + col1 ) * + col2 AS col2 FROM tab2 @@ -20335,8 +20592,15 @@ SELECT ALL - - MIN ( - col1 ) * + + COUNT ( * ) + + - 57 AS col0 FROM tab2 AS co # Datafusion - Expected - 64 # Datafusion - Expected - -381870 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ cor0\.col1 \* Int64\(76\) \* \(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 30 ) + + col1 * + + 76 * - col0 AS col2, col0 AS col2 FROM tab2 AS cor0 +---- +-178266 +-374498 +-381870 +46 +64 +75 query I rowsort SELECT + col1 AS col1 FROM tab0 WHERE NULL = NULL @@ -20354,8 +20618,15 @@ SELECT COUNT ( * ) - + 2 AS col0 FROM tab2 WHERE + - ( col1 ) <= - col0 # Datafusion - Expected - 435 # Datafusion - Expected - -63375 # Datafusion - Expected - 1218 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \* tab1\.col1 \+ \(\- tab1\.col2\) \+ Int64\(\-34\) \+ tab1\.col1 \* Int64\(\-85\) \* \(\- Int64\(\-53\)\) \+ Int64\(21\) AS col1" at position 0 and "Int64\(87\) \* tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 * + col1 + + - col2 + - 34 + ( col1 ) * - 85 * - - 53 + ( + 21 ) AS col1, 87 * + col1 AS col1 FROM tab1 +---- +-214025 +-22622 +-63375 +1218 +4089 +435 query I rowsort label-3389 SELECT col1 + - 72 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 @@ -20591,8 +20862,15 @@ SELECT ALL + 94, - col2 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, + col0 FROM tab0 cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT DISTINCT 17 AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL @@ -21397,8 +21675,11 @@ SELECT ALL COUNT ( ALL col0 ) AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6966 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* Int64\(\-86\) AS col1" at position 0 and "Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 81 * - 86 AS col1, - 25 AS col1 FROM tab2 +---- +-25 +-6966 query I rowsort label-3569 SELECT + CAST ( - col2 AS INTEGER ) + + col0 AS col2 FROM tab1 cor0 WHERE ( - col1 / 6 NOT BETWEEN NULL AND NULL ) @@ -21462,8 +21743,11 @@ SELECT + col1 + - + col2 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \- min\(\(\- cor0\.col1\)\) AS col0" at position 0 and "\(\- Int64\(73\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 9 - + MIN ( - col1 ) AS col0, ( - + ( + 73 ) ) AS col0 FROM tab1 AS cor0 +---- +-73 +56 query I rowsort label-3580 SELECT - + COUNT ( * ) + - - 81 FROM tab0 AS cor0 @@ -21698,8 +21982,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 25 IS NULL # Datafusion - Expected - -75 # Datafusion - Expected - 69 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ tab2\.col2 AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 + + col2 AS col1, - col0 AS col1 FROM tab2 +---- +-46 +-64 +-75 +104 +133 +69 query III rowsort SELECT * FROM tab0 AS cor0 WHERE - 29 * - 39 NOT IN ( 42 ) @@ -22004,8 +22295,15 @@ SELECT - + ( - + col0 ) FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 75 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 75 AS col0, col1 AS col0 FROM tab0 AS cor0 +---- +1 +21 +75 +75 +75 +81 query I rowsort label-3668 SELECT ALL + - 20 * - COUNT ( * ) + - - SUM ( DISTINCT + - 38 ) + - COUNT ( * ) FROM tab1 AS cor0 @@ -22203,8 +22501,15 @@ SELECT + 73 + - + col0 * col1 col1 FROM tab2 AS cor0 # Datafusion - Expected - 196 # Datafusion - Expected - -4928 # Datafusion - Expected - 196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* \(\- Int64\(64\)\) AS col1" at position 0 and "Int64\(98\) \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * - ( 64 ) AS col1, + 98 * 2 AS col1 FROM tab2 +---- +-3264 +-4288 +-4928 +196 +196 +196 query I rowsort label-3701 SELECT COUNT ( * ) * + - 59 AS col0 FROM tab0 @@ -22303,8 +22608,11 @@ SELECT ALL * FROM tab1 cor0 WHERE NOT + 11 * - col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +3 +56 query I rowsort label-3718 SELECT + CAST ( COUNT ( * ) AS INTEGER ) / - 36 AS col0 FROM tab1 AS cor0 @@ -23309,8 +23617,11 @@ SELECT * FROM tab1 WHERE NOT NULL < - col0 / 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-3 +NULL query I rowsort label-3885 SELECT + col0 / + col0 - + - 45 FROM tab1 AS cor0 @@ -23530,8 +23841,9 @@ SELECT DISTINCT - - 79 AS col0 FROM tab0 cor0 79 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 19 AS col2, + 0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL +---- query I rowsort label-3922 SELECT + + 10 * + col0 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 @@ -24923,8 +25235,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> NULL # Datafusion - Expected - 64 # Datafusion - Expected - -58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, + col0 AS col2 FROM tab2 +---- +-23 +-40 +-58 +46 +64 +75 query III rowsort label-4154 SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 44 NOT IN ( + 62, - 80 + CAST ( + col0 AS INTEGER ) ) @@ -26019,8 +26338,15 @@ SELECT - - ( + - col2 ) col1 FROM tab0 AS cor0 # Datafusion - Expected - 5850 # Datafusion - Expected - -77 # Datafusion - Expected - 4992 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 \* Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col1 AS col2, col0 * + 78 col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +3588 +4992 +5850 query I rowsort label-4335 SELECT DISTINCT - - MAX ( + - col2 ) FROM tab0 cor0 @@ -26376,8 +26702,15 @@ SELECT * FROM tab0 WHERE NOT 4 IS NULL # Datafusion - Expected - -8 # Datafusion - Expected - -77 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "tab2\.col1 \- tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, + col1 - col0 AS col1 FROM tab2 +---- +-51 +-67 +-77 +-8 +13 +5 query II rowsort SELECT DISTINCT + col0, - 18 * col2 FROM tab1 @@ -26802,8 +27135,10 @@ SELECT ALL - COUNT ( * ) * + 21 * 43 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 92f4a140bf9b1cc264721cf7b03cd32c -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col2, 19, col2 FROM tab0 +---- +9 values hashing to 60050217414d48959de776906d771468 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -26894,8 +27229,15 @@ SELECT DISTINCT 44 + + MAX ( 19 ) AS col0, - ( + - 82 ) + - 8 + + - COUNT ( * ) # Datafusion - Expected - 47 # Datafusion - Expected - -18 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(18\)\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( ( + 18 ) ) AS col1, + col2 AS col1 FROM tab0 +---- +-18 +-18 +-18 +10 +47 +99 query III rowsort SELECT ALL * FROM tab0 WHERE NOT - - 11 * - - 72 * - 98 >= NULL @@ -28160,8 +28502,11 @@ SELECT DISTINCT - col0 * 5 col0, 50 * 86 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34680 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \* max\(DISTINCT Int64\(17\)\) \* Int64\(\-30\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 68 * MAX ( DISTINCT + 17 ) * - 30 AS col2, COUNT ( * ) col2 FROM tab0 +---- +3 +34680 query I rowsort label-4697 SELECT DISTINCT 11 / col0 FROM tab1 @@ -28451,8 +28796,9 @@ SELECT - col0 * - col2 * CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0 931491 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 \* Int64\(29\) \* cor0\.col1 \+ \(\- \(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, col1 * 29 * col1 + - ( - + col1 ) AS col2 FROM tab2 cor0 WHERE - col1 NOT BETWEEN - 94 + + col0 + - 22 * + col2 AND NULL +---- query I rowsort label-4746 SELECT DISTINCT MIN ( ALL - 26 ) * + COUNT ( * ) + + COUNT ( * ) FROM tab2 @@ -29852,8 +30198,15 @@ SELECT ALL + ( + COUNT ( * ) ) AS col0 FROM tab0 # Datafusion - Expected - -20655 # Datafusion - Expected - NULL # Datafusion - Expected - -31059 -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 "cor0\.col1 \* \(\- cor0\.col0\) \* Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - CAST ( NULL AS FLOAT8 ) AS col1, col1 * - col0 * + 17 AS col1 FROM tab0 AS cor0 +---- +-1649 +-20655 +-31059 +NULL +NULL +NULL query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT 86 IS NOT NULL @@ -30295,8 +30648,15 @@ SELECT + 83 + col0 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col1, col1 AS col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-5054 SELECT col0 / + 60 + + col1 FROM tab0 AS cor0 @@ -30582,8 +30942,15 @@ SELECT DISTINCT + + COUNT ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -5025 # Datafusion - Expected - 92 # Datafusion - Expected - -2346 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ cor0\.col0 AS col0" at position 0 and "cor0\.col1 \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 + col0 col0, + col1 * + - col0 AS col0 FROM tab2 AS cor0 +---- +-2346 +-4928 +-5025 +128 +150 +92 query I rowsort label-5098 SELECT ALL - col1 / + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 @@ -31294,8 +31661,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT ( ( NOT + col1 - + CAST ( NULL AS INTEGER ) # Datafusion - Expected - 87 # Datafusion - Expected - 88 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 88 col2, col0 AS col2 FROM tab0 AS cor0 +---- +15 +87 +88 +88 +88 +97 query I rowsort SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL @@ -31999,8 +32373,11 @@ SELECT DISTINCT - + col0 AS col0, + 22 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "count\(cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - CAST ( NULL AS INTEGER ) col0, COUNT ( + col2 ) AS col0 FROM tab2 cor0 +---- +3 +NULL query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > ( NULL ) @@ -32354,8 +32731,10 @@ SELECT DISTINCT - 42 * + col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to ebab27bdb7c78fbe73cb3e580807d05b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* CAST\(NULL AS Int32\) \+ \(\- Int64\(77\)\) AS col2" at position 0 and "Int64\(62\) \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col1 * + CAST ( NULL AS INTEGER ) + - ( + 77 ) AS col2, 62 + + col2 AS col2, + col2 AS col1 FROM tab0 cor0 +---- +9 values hashing to 365650e06a534af845a718dfd594724c query I rowsort SELECT DISTINCT - 20 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 @@ -32521,8 +32900,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 1 AS col1, COUNT ( * ) * + 16 AS col1 FROM tab2 AS cor0 +---- +-1 +48 query I rowsort SELECT + 35 * - - col0 FROM tab0 AS cor0 @@ -33519,8 +33901,11 @@ SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT BETWEEN + col0 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(93\) \+ max\(\(\- tab0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 93 + MAX ( + - ( col1 ) ) AS col1 FROM tab0 +---- +3 +92 query I rowsort SELECT DISTINCT 14 * - 7 * 62 FROM tab0 @@ -33543,8 +33928,15 @@ NULL # Datafusion - Expected - 91 # Datafusion - Expected - 96 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col1, col0 AS col1 FROM tab1 +---- +51 +59 +68 +85 +91 +96 query I rowsort label-5590 SELECT ( COUNT ( * ) ) + 7 FROM tab2 WHERE NOT 24 - + 63 + + col2 + col1 / col1 IS NULL @@ -34455,8 +34847,15 @@ SELECT + col2 * + col0 * col2 AS col1 FROM tab2 # Datafusion - Expected - -14 # Datafusion - Expected - -3 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 / \(\- tab1\.col1\) AS col2" at position 0 and "Int64\(\-14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 / + - col1 AS col2, - 14 AS col2 FROM tab1 +---- +-1 +-14 +-14 +-14 +-17 +-3 query I rowsort SELECT DISTINCT - 41 * + 5 FROM tab1 @@ -35107,8 +35506,15 @@ SELECT CAST ( - + col0 AS INTEGER ) + col2 + - 72 + + - col2 AS col1 FROM tab2 # Datafusion - Expected - -168 # Datafusion - Expected - -9409 # Datafusion - Expected - -178 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* \(\- \(\- tab0\.col0\)\) AS col0" at position 0 and "\(\- tab0\.col0\) \+ Int64\(\-81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 * - ( + - col0 ) AS col0, - col0 + - 81 col0 FROM tab0 +---- +-168 +-178 +-225 +-7569 +-9409 +-96 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -35276,8 +35682,15 @@ SELECT ALL * FROM tab1 WHERE NULL > + CAST ( + col2 AS INTEGER ) # Datafusion - Expected - 87 # Datafusion - Expected - 18 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 18 AS col1, col0 AS col1 FROM tab0 +---- +15 +18 +18 +18 +87 +97 query I rowsort SELECT ALL - col2 + - 69 FROM tab2 @@ -35482,8 +35895,15 @@ SELECT - col2 AS col0, - 38 FROM tab2 # Datafusion - Expected - 6561 # Datafusion - Expected - 99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "tab0\.col1 \* tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, col1 * + col1 AS col0 FROM tab0 +---- +1 +10 +441 +47 +6561 +99 query I rowsort SELECT ALL - 1 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 @@ -36575,8 +36995,11 @@ SELECT + COUNT ( * ) / 80 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-15\)\) \* Int64\(\-24\) \- \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ sum\(Int64\(5\)\) AS col2" at position 0 and "count\(cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 15 * - 24 - - - CAST ( NULL AS INTEGER ) + + SUM ( ALL + 5 ) col2, COUNT ( ALL col2 ) AS col2 FROM tab1 AS cor0 +---- +3 +NULL query I rowsort label-6099 SELECT - MAX ( - + col0 ) AS col0 FROM tab2 AS cor0 @@ -36669,8 +37092,15 @@ SELECT + - col0 FROM tab0 AS cor0 WHERE ( NOT ( NOT ( NOT - ( - + 91 ) <= NULL ) # Datafusion - Expected - 62 # Datafusion - Expected - 81 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, + 62 AS col2 FROM tab0 AS cor0 +---- +1 +21 +62 +62 +62 +81 query I rowsort SELECT + 72 FROM tab2 WHERE NULL NOT IN ( + col1 * col1 ) @@ -36804,8 +37234,15 @@ SELECT + COUNT ( ALL - + col1 ) AS col0 FROM tab0 # Datafusion - Expected - -27 # Datafusion - Expected - 58 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(48\) / cor0\.col2 \* Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, 48 / col2 * - 27 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL +---- +-27 +-54 +0 +23 +40 +58 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + 79 + 30 + + col2 / col0 @@ -37058,14 +37495,24 @@ SELECT - 20 FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN - + 9 AND 81 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col1 AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- tab0\.col2\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( ALL - col2 ) AS col0, CAST ( NULL AS INTEGER ) + - 73 AS col0 FROM tab0 +---- +-3 +NULL query III rowsort SELECT * FROM tab2 WHERE NOT 5 IS NOT NULL @@ -37434,8 +37881,15 @@ SELECT + col0 AS col1, col0 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2, + col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-6247 SELECT DISTINCT - COUNT ( * ) * 48 + 34 FROM tab2 AS cor0 @@ -38207,8 +38661,15 @@ SELECT ALL + COUNT ( * ) FROM tab2 cor0 WHERE NOT + col2 BETWEEN NULL AND col1 - # Datafusion - Expected - 20 # Datafusion - Expected - 91 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, 20 col2 FROM tab1 +---- +20 +20 +20 +51 +85 +91 query I rowsort SELECT DISTINCT col0 + - col2 * col0 AS col1 FROM tab1 @@ -38325,8 +38786,15 @@ SELECT + + ( 38 ) AS col0 FROM tab0 cor0 # Datafusion - Expected - 128 # Datafusion - Expected - 75 # Datafusion - Expected - 150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col0 \- \(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, + col0 - - col0 AS col1 FROM tab2 +---- +128 +150 +46 +64 +75 +92 query I rowsort label-6392 SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 @@ -40502,8 +40970,15 @@ SELECT - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - 4186 # Datafusion - Expected - 96 # Datafusion - Expected - 663 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col1 \* \(\- \(\- cor0\.col0\)\) \+ \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col2 AS col0, + col1 * - - col0 + + - col0 AS col0 FROM tab1 AS cor0 +---- +340 +4186 +59 +663 +68 +96 query I rowsort label-6757 SELECT - COUNT ( col2 ) FROM tab0 AS cor0 @@ -41442,8 +41917,15 @@ SELECT ALL col1 * - col0 + 67 FROM tab1 WHERE NOT - 40 NOT BETWEEN NULL AND + co # Datafusion - Expected - 1 # Datafusion - Expected - 34 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-34\)\) AS col1" at position 0 and "cor0\.col1 / cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 34 AS col1, + col1 / col2 col1 FROM tab0 cor0 +---- +0 +1 +2 +34 +34 +34 query II rowsort SELECT + + col0 AS col0, col1 * col0 FROM tab2 AS cor0 @@ -43069,8 +43551,15 @@ SELECT ALL - 14 col1 FROM tab0 # Datafusion - Expected - -47 # Datafusion - Expected - 99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 AS col0, - col2 AS col0 FROM tab0 cor0 +---- +-10 +-47 +-99 +10 +47 +99 query I rowsort label-7181 SELECT ALL COUNT ( * ) * + 63 AS col0 FROM tab0 AS cor0 @@ -43204,8 +43693,11 @@ SELECT ALL col0 + + + 15 * + + col0 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(tab1\.col2\)\) AS col2" at position 0 and "Int64\(56\) / Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( + col2 ) AS col2, 56 / + + 87 AS col2 FROM tab1 +---- +-96 +0 query I rowsort label-7203 SELECT + CAST ( - 68 AS INTEGER ) FROM tab2 @@ -43969,8 +44461,15 @@ SELECT DISTINCT - col2 / + 80 col2 FROM tab2 # Datafusion - Expected - 141 # Datafusion - Expected - 0 # Datafusion - Expected - 142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) / \(\- tab2\.col2\) AS col0" at position 0 and "tab2\.col1 \+ tab2\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 38 / - col2 AS col0, col1 + + col0 AS col0 FROM tab2 +---- +-1 +0 +0 +141 +142 +97 query I rowsort SELECT + 77 * - 33 FROM tab2 @@ -44485,8 +44984,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 15 AS col2, COUNT ( * ) AS col2 FROM tab1 +---- +15 +3 query II rowsort SELECT col2, + col1 AS col0 FROM tab2 @@ -44551,8 +45053,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 34 AS col2, - COUNT ( * ) col2 FROM tab0 AS cor0 +---- +-3 +34 query II rowsort label-7425 SELECT col1 / - col1, col0 - + ( + 2 ) col0 FROM tab0 @@ -45838,8 +46343,15 @@ SELECT ALL + 65 AS col0, 51 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 3 # Datafusion - Expected - 99 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col2 AS col0, 3 AS col0 FROM tab0 AS cor0 +---- +10 +3 +3 +3 +47 +99 query I rowsort SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 * - - col0 IS NULL @@ -46198,8 +46710,15 @@ SELECT DISTINCT - 60 * + 81 AS col0 FROM tab1 cor0 # Datafusion - Expected - -21 # Datafusion - Expected - 5727 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* \(\- Int64\(\-83\)\) AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 * - - 83 AS col1, - col1 col1 FROM tab0 +---- +-1 +-21 +-81 +5727 +5727 +5727 query I rowsort SELECT DISTINCT + 77 * col2 AS col2 FROM tab0 @@ -46907,8 +47426,11 @@ SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT NULL <= - 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, - COUNT ( * ) + 56 AS col1 FROM tab1 AS cor0 +---- +3 +53 query I rowsort label-7819 SELECT - 62 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 @@ -47183,8 +47705,15 @@ SELECT 75 - col2 - col1 FROM tab1 # Datafusion - Expected - -4096 # Datafusion - Expected - -30 # Datafusion - Expected - -5625 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 / Int64\(97\) \+ \(\- tab2\.col0\) \+ Int64\(45\) AS col2" at position 0 and "\(\- CAST\(tab2\.col0 AS Int32\)\) \* tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 / 97 + - col0 + 45 AS col2, - CAST ( + col0 AS INTEGER ) * + col0 AS col2 FROM tab2 +---- +-1 +-19 +-2116 +-30 +-4096 +-5625 query I rowsort label-7862 SELECT - COUNT ( * ) col1 FROM tab2 WHERE NULL IS NOT NULL @@ -48936,8 +49465,15 @@ SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT + col1 + col0 * # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, + col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT - 97 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 @@ -49176,8 +49712,15 @@ SELECT + COUNT ( col2 ) * - - 12 FROM tab0 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "\(\- cor0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col2, - col2 FROM tab0 AS cor0 +---- +-10 +-10 +-47 +-47 +-99 +-99 query I rowsort label-8196 SELECT ALL 16 * + + COUNT ( * ) AS col0 FROM tab2 @@ -49235,8 +49778,15 @@ SELECT * FROM tab1 WHERE ( NOT NULL NOT IN ( + ( + 8 ) ) ) # Datafusion - Expected - 99 # Datafusion - Expected - -91 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 AS col1, + 99 col1 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +99 +99 +99 query I rowsort label-8206 SELECT COUNT ( * ) * + COUNT ( * ) + 12 + + + ( + 7 ) * - COUNT ( * ) FROM tab2 AS cor0 @@ -49650,8 +50200,15 @@ SELECT ALL 29 + - + 34 AS col1 FROM tab2 # Datafusion - Expected - 4277 # Datafusion - Expected - NULL # Datafusion - Expected - 714 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-93\) \+ \(\- tab1\.col1\) AS col0" at position 0 and "tab1\.col0 \* tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) * - 93 + + + ( - col1 ) AS col0, + col0 * col1 AS col0 FROM tab1 +---- +425 +4277 +714 +NULL +NULL +NULL query I rowsort SELECT DISTINCT - ( col0 ) - col0 FROM tab0 @@ -49761,8 +50318,15 @@ SELECT ALL * FROM tab1 WHERE NOT ( - col0 * - col2 + - col0 * - 82 ) >= + col1 # Datafusion - Expected - -6188 # Datafusion - Expected - 96 # Datafusion - Expected - -4896 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col0\) \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, - col0 * + col2 AS col0 FROM tab1 AS cor0 +---- +-4896 +-5015 +-6188 +59 +68 +96 query I rowsort label-8293 SELECT ALL - - SUM ( - col2 ) AS col1 FROM tab0 AS cor0 @@ -50314,8 +50878,15 @@ SELECT DISTINCT - ( - 93 ) FROM tab2 # Datafusion - Expected - 40 # Datafusion - Expected - 91 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, + 40 AS col2 FROM tab1 AS cor0 +---- +40 +40 +40 +51 +85 +91 query I rowsort SELECT + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL @@ -50371,8 +50942,15 @@ SELECT COUNT ( * ) + + + COUNT ( * ) FROM tab1 # Datafusion - Expected - -40 # Datafusion - Expected - -58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\)" at position 0 and "\(\- tab2\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2, - col2 FROM tab2 +---- +-23 +-23 +-40 +-40 +-58 +-58 query I rowsort SELECT col1 * 87 FROM tab1 AS cor0 @@ -50700,8 +51278,11 @@ SELECT ALL * FROM tab1 WHERE NOT col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "Int64\(41\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 AS col0, + 41 - + + COUNT ( * ) col0 FROM tab0 +---- +38 +98 query I rowsort label-8446 SELECT DISTINCT COUNT ( * ) * SUM ( - 99 ) FROM tab0 @@ -51442,8 +52023,15 @@ SELECT ALL col0 + col0 * - - 65 * + col2 AS col0 FROM tab2 AS cor0 WHERE NULL BE # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query II rowsort SELECT + ( + col2 ) AS col1, 27 FROM tab2 AS cor0 @@ -51515,8 +52103,15 @@ SELECT DISTINCT + 69 AS col0, col2 AS col1 FROM tab1 # Datafusion - Expected - -40 # Datafusion - Expected - 58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, - col2 AS col1 FROM tab2 +---- +-23 +-40 +-58 +23 +40 +58 query I rowsort SELECT + col2 * + 89 AS col2 FROM tab0 @@ -52267,8 +52862,15 @@ SELECT + col0 * + 83 AS col1 FROM tab1 AS cor0 WHERE NOT + 2 IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 +---- +10 +47 +99 +NULL +NULL +NULL query I rowsort label-8708 SELECT - col1 / 33 AS col1 FROM tab0 AS cor0 @@ -52779,8 +53381,10 @@ SELECT DISTINCT * FROM tab2 WHERE NOT - + col1 >= + 10 / 91 * - - col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 01e578e690d0e6d9d4e1f46fd9c87425 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ \(\- \(\- tab0\.col0\)\) \+ \(\- tab0\.col0\) AS col0" at position 0 and "Int64\(74\) \+ tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col2 + - - col0 + - col0 AS col0, 74 + + col0 AS col0, + - 5 FROM tab0 +---- +9 values hashing to 567c989cb45c737c36e7b363070ada83 query I rowsort label-8792 SELECT DISTINCT + MIN ( - + col0 ) - + COUNT ( * ) + COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0 @@ -53035,14 +53639,24 @@ SELECT DISTINCT - col0 + + - col2 - + + col2 AS col1 FROM tab1 WHERE + 18 IS NUL # Datafusion - Expected - 92 # Datafusion - Expected - 92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col2" at position 0 and "Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 AS col2, 92 AS col2 FROM tab0 +---- +92 +92 +92 +92 +92 +92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, 47 AS col2 FROM tab2 +---- +3 +47 query I rowsort SELECT ALL - 50 * + ( - col2 ) AS col0 FROM tab0 @@ -53294,8 +53908,13 @@ NULL # Datafusion - Expected - 111 # Datafusion - Expected - NULL # Datafusion - Expected - 195 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "cor0\.col1 \+ cor0\.col0 \+ \(\- \(\- cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) col2, + col1 + col0 + - - col0 AS col2 FROM tab0 AS cor0 +---- +111 +195 +NULL +NULL query I rowsort label-8876 SELECT - SUM ( ( + col2 ) ) AS col1 FROM tab0 AS cor0 @@ -54858,8 +55477,9 @@ SELECT * FROM tab1 cor0 WHERE NULL BETWEEN - col0 * - 61 + + col1 + - 91 AND NUL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col0 AS col1, 94 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL BETWEEN + 98 + + CAST ( - 4 AS INTEGER ) AND - col1 + - 53 ) +---- query I rowsort label-9144 SELECT DISTINCT + MIN ( + - col0 ) FROM tab2 AS cor0 WHERE NOT NULL < ( NULL ) @@ -55082,8 +55702,15 @@ SELECT + 25 + - col2 + - col1 AS col0 FROM tab1 cor0 # Datafusion - Expected - 3127 # Datafusion - Expected - -91 # Datafusion - Expected - 3604 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col2 \* Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col0, col2 * 53 AS col0 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +3127 +3604 +5088 query I rowsort SELECT - 97 FROM tab0 AS cor0 WHERE 43 IS NULL @@ -55930,8 +56557,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 0 AS col0, - COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +-3 +0 query I rowsort label-9316 SELECT - + COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0 @@ -57893,8 +58523,15 @@ SELECT DISTINCT - ( - + col1 ) AS col1 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-9637 SELECT + COUNT ( * ) col1 FROM tab1, tab2 AS cor0 @@ -58161,8 +58798,15 @@ NULL # Datafusion - Expected - 21 # Datafusion - Expected - -7178 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* Int64\(\-74\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * - 74 AS col0, col1 AS col0 FROM tab0 +---- +-1110 +-6438 +-7178 +1 +21 +81 query II rowsort label-9680 SELECT DISTINCT - MIN ( - 42 ) * + COUNT ( * ), 21 AS col0 FROM tab0 @@ -58985,8 +59629,10 @@ SELECT * FROM tab1 cor0 WHERE NOT + col1 * - CAST ( NULL AS INTEGER ) IS NOT NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to d8e61cbefbad68f455c9b447a956e820 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + ( + + col1 ), col1, - 37 AS col2 FROM tab0 AS cor0 +---- +9 values hashing to df2fe7c6fdfeb0b578274f6e7dde3a76 query II rowsort SELECT DISTINCT + - col0 * + - col2, col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1 * col2 - + col0 + 99 * - - 54 + - col0, col1 * col0, - col0, - + col1 * + 53 + - 30 - - - 85 * + col0, 84 + col1 + + - col2 * - col2 + - col2 * - 51 * - + col0, - - col0 * - col0 + - 85 ) @@ -59728,8 +60374,15 @@ SELECT DISTINCT - 36, 30 AS col2 FROM tab2 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col0, + col0 col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT DISTINCT + 4 * - col1 AS col1 FROM tab1 diff --git a/data/sqlite/random/aggregates/slt_good_108.slt b/data/sqlite/random/aggregates/slt_good_108.slt index da3ba37..ba7760a 100644 --- a/data/sqlite/random/aggregates/slt_good_108.slt +++ b/data/sqlite/random/aggregates/slt_good_108.slt @@ -217,8 +217,11 @@ SELECT ALL * FROM tab2 WHERE NOT - col2 * + 24 + col2 * - 46 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 7627 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "Int64\(98\) \* Int64\(77\) \- \(\- count\(Int64\(\-37\)\)\) \- sum\(DISTINCT Int64\(\-96\)\) \- Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 84 AS col1, 98 * 77 - - COUNT ( - 37 ) - SUM ( DISTINCT - 96 ) - 18 AS col1 FROM tab0 +---- +7627 +84 query III rowsort SELECT * FROM tab0 WHERE NOT ( ( col1 * - col2 * - + col2 * + col0 ) NOT BETWEEN ( NULL ) AND ( col2 * col0 ) ) @@ -1144,8 +1147,11 @@ SELECT 15 / - - col2 + - col0 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab2 +---- +-9 +3 query I rowsort SELECT ALL - - 48 * + 17 AS col1 FROM tab2 AS cor0 @@ -1446,8 +1452,15 @@ SELECT * FROM tab0 WHERE NOT + - 62 IS NOT NULL # Datafusion - Expected - 47 # Datafusion - Expected - 22 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 22 col0, ( col1 ) AS col0 FROM tab1 +---- +14 +22 +22 +22 +47 +5 query III rowsort SELECT ALL * FROM tab0 WHERE - 33 NOT BETWEEN NULL AND col0 @@ -1582,8 +1595,15 @@ SELECT + col1 * + col2 + - - 88 * col0 * + + CAST ( col2 AS INTEGER ) FROM tab0 # Datafusion - Expected - -52 # Datafusion - Expected - -97 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ \(\- tab1\.col0\) \+ Int64\(\-74\) AS col1" at position 0 and "tab1\.col1 \+ Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + + - col0 + + - 74 AS col1, + col1 + - 66 AS col1 FROM tab1 +---- +-100 +-19 +-29 +-52 +-61 +-97 query I rowsort SELECT + + 16 * + - col2 * + 94 * col2 + + + ( + 11 ) FROM tab2 cor0 @@ -1603,14 +1623,24 @@ SELECT DISTINCT + 98 * + 1, + col1 + + col2 FROM tab2 AS cor0 WHERE NOT NULL IS # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col0, col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ), COUNT ( * ) FROM tab0 +---- +3 +3 query I rowsort label-265 SELECT ALL ( - COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 @@ -1765,8 +1795,15 @@ SELECT ALL * FROM tab2 WHERE - + col1 + - 56 + + col2 <> NULL # Datafusion - Expected - 16 # Datafusion - Expected - 6 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 / tab1\.col1 AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 / + + col1 AS col2, 16 col2 FROM tab1 +---- +1 +11 +16 +16 +16 +6 query I rowsort SELECT ALL col0 + 94 FROM tab1 @@ -2259,8 +2296,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + MAX ( ALL + + col1 ) AS col1, - 85 col0, - - COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +-85 +3 +47 query I rowsort SELECT + col2 FROM tab2 AS cor0 WHERE NOT - col2 / + col0 IS NOT NULL @@ -2597,8 +2638,15 @@ SELECT DISTINCT + 95 + MAX ( DISTINCT - - 21 ) FROM tab2 # Datafusion - Expected - 2640 # Datafusion - Expected - 99 # Datafusion - Expected - 2640 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "Int64\(44\) \* Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, 44 * + 60 AS col1 FROM tab0 +---- +10 +2640 +2640 +2640 +47 +99 query III rowsort SELECT DISTINCT * FROM tab1 WHERE ( - 4 + col2 ) IS NOT NULL @@ -4084,8 +4132,15 @@ SELECT ALL - COUNT ( * ) + + COUNT ( * ) col0 FROM tab1 AS cor0 # Datafusion - Expected - -75 # Datafusion - Expected - -95 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(3\)\) \- cor0\.col0 \- cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 3 - + + col0 - + col0 AS col2, - col0 col2 FROM tab2 AS cor0 +---- +-131 +-153 +-46 +-64 +-75 +-95 query III rowsort SELECT * FROM tab0 WHERE ( 17 IS NOT NULL ) @@ -4488,8 +4543,15 @@ SELECT DISTINCT col2 AS col2, + col1 * 46 + col0 AS col2 FROM tab2 # Datafusion - Expected - 79 # Datafusion - Expected - 3243 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- cor0\.col1 \* \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 - col1 * - + col2 AS col1, 79 AS col1 FROM tab1 AS cor0 +---- +1358 +300 +3243 +79 +79 +79 query I rowsort SELECT DISTINCT - 63 - + 20 AS col1 FROM tab2 AS cor0 @@ -4948,8 +5010,15 @@ SELECT COUNT ( + + 71 ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - -91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 91 AS col0, - col0 col0 FROM tab1 cor0 +---- +-51 +-85 +-91 +-91 +-91 +-91 query I rowsort SELECT ALL + col0 * + - col2 + + col0 AS col0 FROM tab0 AS cor0 @@ -5612,8 +5681,15 @@ SELECT - col1 + 83 * col2 FROM tab1 AS cor0 # Datafusion - Expected - 62 # Datafusion - Expected - 2163 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \* Int64\(39\) \+ Int64\(\-96\) \- \(\- cor0\.col0\) AS col0" at position 0 and "Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( 56 ) * 39 + + - 96 - - + col0 AS col0, 62 AS col0 FROM tab2 AS cor0 +---- +2134 +2152 +2163 +62 +62 +62 query I rowsort SELECT ALL + 40 + + 13 * + 86 col1 FROM tab2 AS cor0 @@ -6552,8 +6628,15 @@ SELECT - ( + ( - - 80 ) ) FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL +---- +10 +10 +47 +47 +99 +99 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + - 74 AND NULL OR NOT NULL IS NOT NULL @@ -7114,8 +7197,15 @@ SELECT + col1 * + 0 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 61 # Datafusion - Expected - -16 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(16\)\) AS col0" at position 0 and "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 16 AS col0, 61 AS col0 FROM tab1 AS cor0 +---- +-16 +-16 +-16 +61 +61 +61 query III rowsort SELECT ALL * FROM tab2 WHERE NOT col2 * + - 65 + - + col1 + 39 = + col0 + + col2 @@ -7208,8 +7298,11 @@ SELECT * FROM tab0 AS cor0 WHERE col1 * - col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-23\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) + - 23 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-20 +3 query I rowsort label-1184 SELECT - - 71 + - col2 + - 27 - - 17 * col1 / + 76 FROM tab1 AS cor0 @@ -7454,8 +7547,15 @@ SELECT DISTINCT CAST ( 33 AS INTEGER ), 6 * 22 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 3364 # Datafusion - Expected - NULL # Datafusion - Expected - 529 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* tab2\.col1 \* Int64\(20\) AS col2" at position 0 and "\(\- tab2\.col2\) \* \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) * col1 * + 20 AS col2, - col2 * + - col2 AS col2 FROM tab2 +---- +1600 +3364 +529 +NULL +NULL +NULL query I rowsort label-1225 SELECT DISTINCT - 30 * + SUM ( DISTINCT + col0 ) FROM tab0 @@ -7703,8 +7803,15 @@ NULL # Datafusion - Expected - 12600 # Datafusion - Expected - -91 # Datafusion - Expected - 118440 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col1\) \* Int64\(45\) \* Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 AS col1, ( - col1 ) * + 45 * - 56 AS col1 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +118440 +12600 +35280 query I rowsort label-1264 SELECT DISTINCT - col2 / - + col0 FROM tab0 @@ -9176,8 +9283,15 @@ SELECT SUM ( 20 ) FROM tab1 # Datafusion - Expected - 5 # Datafusion - Expected - -69 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* Int64\(\-2\) \+ \(\- tab2\.col2\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * - 2 + - col2 AS col1, 5 AS col1 FROM tab2 +---- +-120 +-174 +-69 +5 +5 +5 query I rowsort SELECT ALL + + col2 FROM tab0 WHERE - - col1 NOT BETWEEN + col2 AND NULL @@ -9260,8 +9374,11 @@ SELECT 46 + COUNT ( * ) FROM tab2 AS cor0 WHERE + col1 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-14\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, - COUNT ( * ) + - 14 * - COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL +---- +0 +0 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 <= NULL @@ -9684,8 +9801,15 @@ SELECT - col2 * - 65 FROM tab1 AS cor0 # Datafusion - Expected - -95 # Datafusion - Expected - 58 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "Int64\(\-95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, - 95 AS col1 FROM tab2 +---- +-95 +-95 +-95 +23 +40 +58 query I rowsort SELECT ALL 47 AS col2 FROM tab0, tab1 AS cor0 @@ -10152,8 +10276,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) FROM tab1 +---- +3 +3 query I rowsort label-1658 SELECT 19 / + COUNT ( * ) FROM tab1 @@ -11244,8 +11371,10 @@ SELECT DISTINCT col2 AS col0, + col0 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c5b619299931dbdf390af67440689862 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col0, - 93, + col0 AS col0 FROM tab0 +---- +9 values hashing to 45aa4c218aed95c497beb5ec5f1e2e5d query I rowsort SELECT DISTINCT + + col1 AS col2 FROM tab1 AS cor0 WHERE - col2 + col2 IS NOT NULL @@ -11735,8 +11864,15 @@ SELECT - col0 FROM tab0 WHERE NOT 57 <> - col0 + - 50 # Datafusion - Expected - NULL # Datafusion - Expected - -84 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(61\)\) \+ \(\- cor0\.col2\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* cor0\.col0 / \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 61 + - col2 AS col2, - CAST ( NULL AS INTEGER ) * col0 / - col1 AS col2 FROM tab2 AS cor0 +---- +-101 +-119 +-84 +NULL +NULL +NULL query I rowsort label-1920 SELECT - 14 / + 36 + col1 AS col0 FROM tab2 AS cor0 @@ -12219,8 +12355,15 @@ SELECT DISTINCT 25 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 91 # Datafusion - Expected - 5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, col0 AS col2 FROM tab1 +---- +14 +47 +5 +51 +85 +91 query I rowsort SELECT ALL + 0 * + + col0 * col2 col2 FROM tab2 @@ -13057,8 +13200,15 @@ SELECT + ( - col0 ) * - - col1 FROM tab1 AS cor0 # Datafusion - Expected - -3364 # Datafusion - Expected - -5082 # Datafusion - Expected - -1600 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \* \(\- tab2\.col1\) AS col2" at position 0 and "tab2\.col2 \* \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 * - + col1 AS col2, + col2 * - + col2 col2 FROM tab2 +---- +-1600 +-3364 +-3366 +-4422 +-5082 +-529 query I rowsort SELECT DISTINCT + col1 AS col0 FROM tab0 AS cor0 WHERE col2 IS NULL @@ -14156,8 +14306,15 @@ SELECT * FROM tab2 WHERE - col2 + + ( - + col2 ) IS NOT NULL # Datafusion - Expected - 10 # Datafusion - Expected - -81 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, ( + col2 ) AS col1 FROM tab0 +---- +-1 +-21 +-81 +10 +47 +99 query II rowsort SELECT 3, col2 AS col0 FROM tab1 @@ -14343,8 +14500,9 @@ SELECT ALL col2 * 1 AS col2 FROM tab1 AS cor0 96 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col0, col0 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN col1 AND NULL +---- query I rowsort label-2350 SELECT ALL - - 47 + + + MIN ( ALL col1 ) col0 FROM tab1 AS cor0 @@ -14807,8 +14965,15 @@ SELECT ALL + - col2, - col0 / - + col1 + col1 * - col1 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 2560 # Datafusion - Expected - 8 # Datafusion - Expected - 4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "cor0\.col2 \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 col2, + ( + col2 ) * + col0 AS col2 FROM tab2 cor0 +---- +1058 +2560 +4350 +8 +8 +8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 @@ -14817,8 +14982,15 @@ SELECT + 8 col2, + ( + col2 ) * + col0 AS col2 FROM tab2 cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( col0 ) AS col1, col0 AS col1 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT + 45 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 @@ -15333,8 +15505,11 @@ SELECT DISTINCT - col1, col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 +---- +3 +NULL query I rowsort label-2509 SELECT DISTINCT - MAX ( - 26 ) FROM tab0 @@ -15540,8 +15715,15 @@ SELECT DISTINCT + 98 / - col2, 52 + + + col0 FROM tab2 WHERE + - col1 IN ( + 74 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 col0, col0 AS col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query III rowsort SELECT DISTINCT * FROM tab1 WHERE + col2 * - col0 = - + 86 @@ -15570,8 +15752,10 @@ SELECT DISTINCT + col0 + - - 10 * + + col1 * - ( 93 ) AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 812796ffdfd74fd6ec63b5a598cda658 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + + col0 AS col2, - col1 AS col2, + - col2 * - col1 AS col1 FROM tab2 AS cor0 +---- +9 values hashing to a1933a2d32ab9a2fbc688e9b7e10c459 query II rowsort label-2548 SELECT - col1 AS col2, col1 + + + 74 / - col0 FROM tab0 AS cor0 @@ -16989,8 +17173,15 @@ SELECT DISTINCT + col2 * col1 + + + 49 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 44 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-44\)\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 44 AS col0, col1 AS col0 FROM tab1 cor0 +---- +14 +44 +44 +44 +47 +5 query I rowsort SELECT DISTINCT + 51 + + - 10 + - col1 * col1 AS col2 FROM tab1 AS cor0 @@ -17244,8 +17435,9 @@ SELECT DISTINCT col0, - 11 * col1 AS col1 FROM tab0 -11 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-27\)\) AS col1" at position 0 and "tab2\.col2 \* Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 27 AS col1, col2 * 71 AS col1 FROM tab2 WHERE + 93 IS NULL +---- # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 @@ -17254,8 +17446,15 @@ SELECT - - 27 AS col1, col2 * 71 AS col1 FROM tab2 WHERE + 93 IS NULL # Datafusion - Expected - -3080 # Datafusion - Expected - -22 # Datafusion - Expected - -3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col0" at position 0 and "tab2\.col1 \* \(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 22 AS col0, col1 * - col2 AS col0 FROM tab2 +---- +-1173 +-22 +-22 +-22 +-3080 +-3886 query I rowsort SELECT DISTINCT ( + col1 ) + + col2 * - col1 * - col1 FROM tab1 @@ -17277,8 +17476,11 @@ SELECT ALL + col0 col2, - col1 * - 8 FROM tab2 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 col0" at position 0 and "count\(\(\- cor0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 17 col0, + COUNT ( - col0 ) col0 FROM tab1 AS cor0 +---- +17 +3 query I rowsort label-2824 SELECT - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 cor0 @@ -18246,8 +18448,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, + 2 AS col0 FROM tab2 +---- +-3 +2 query I rowsort SELECT + col0 * + - 3 FROM tab0 AS cor0 @@ -18306,8 +18511,15 @@ SELECT + col2 / + 95 + - col2 AS col2 FROM tab0 # Datafusion - Expected - 87 # Datafusion - Expected - 3 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col2" at position 0 and "Int64\(67\) / \(\- \(\- tab0\.col0\)\) \+ tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 3 AS col2, 67 / + ( - - col0 ) + + + col0 AS col2 FROM tab0 +---- +19 +3 +3 +3 +87 +97 query I rowsort label-2991 SELECT col1 AS col1 FROM tab1 AS cor0 WHERE col0 IN ( + + col1, 18 * + col0 / + + 26 - - + col1 + - - CAST ( NULL AS INTEGER ), - + 37 * - + col2 ) @@ -18487,8 +18699,15 @@ SELECT - COUNT ( * ) * 30 / + COUNT ( col1 ) AS col2 FROM tab2 # Datafusion - Expected - 3288 # Datafusion - Expected - 96 # Datafusion - Expected - 1685 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "tab1\.col2 \* Int64\(9\) \- \(\- tab1\.col0\) \+ tab1\.col1 \* Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, + col2 * + + 9 - - col0 + + col1 * 55 AS col0 FROM tab1 +---- +1685 +3288 +59 +68 +891 +96 query I rowsort SELECT + col1 * + + col0 * - col0 * col1 FROM tab2 @@ -19358,8 +19577,9 @@ SELECT - - 86 * - + 13 AS col2 FROM tab0 AS cor0 -1118 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0, col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL ) +---- query II rowsort SELECT - 44 AS col2, col1 AS col0 FROM tab0 AS cor0 @@ -20042,8 +20262,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 30 AS col2, 3 + - + COUNT ( * ) col2 FROM tab2 +---- +0 +30 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 1 < col0 @@ -20391,8 +20614,15 @@ SELECT * FROM tab0 WHERE + - 11 / + col2 IS NULL # Datafusion - Expected - 40908 # Datafusion - Expected - 97 # Datafusion - Expected - 1948 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* tab0\.col0 AS col2" at position 0 and "tab0\.col1 \* Int64\(\-33\) \* Int64\(\-59\) \+ \(\- \(\- tab0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 * + col0 AS col2, + col1 * - 33 * - 59 + - ( - col1 ) col2 FROM tab0 +---- +1215 +157788 +1827 +1948 +40908 +97 query I rowsort SELECT + 36 * col2 AS col2 FROM tab0 @@ -20509,8 +20739,9 @@ SELECT ALL - COUNT ( ALL 2 ) AS col2, + 70 FROM tab1 70 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2, col2 FROM tab1 WHERE col0 + 74 + col2 > NULL +---- query I rowsort SELECT ( - 34 ) FROM tab2 @@ -20990,8 +21221,15 @@ SELECT 44 col0 FROM tab1 # Datafusion - Expected - 455 # Datafusion - Expected - 0 # Datafusion - Expected - 255 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) / Int64\(56\) AS col0" at position 0 and "Int64\(\-5\) \* \(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 / + 56 AS col0, - 5 * - ( + col0 ) AS col0 FROM tab1 +---- +-1 +-1 +0 +255 +425 +455 query III rowsort SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - col0 AND + col2 + col0 @@ -22220,8 +22458,15 @@ SELECT DISTINCT - col1 - - col1 AS col1, + ( - 30 ) / - col0 - + col2 * + + col0 # Datafusion - Expected - -99 # Datafusion - Expected - 2 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \+ cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 85 + col0 AS col1, - col2 AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-70 +-99 +12 +2 query II rowsort SELECT + 17 - 3 AS col2, col0 * - - 6 AS col1 FROM tab1 AS cor0 @@ -23257,8 +23502,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 20 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 20 AS col1, + col2 AS col1 FROM tab0 +---- +10 +20 +20 +20 +47 +99 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * col0 IS NOT NULL @@ -23788,8 +24040,15 @@ SELECT DISTINCT - + 87 * col0 FROM tab2 AS cor0 # Datafusion - Expected - -77 # Datafusion - Expected - 58 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - ( + + col2 ) AS col2, - ( + col1 ) col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +23 +40 +58 query I rowsort label-3893 SELECT DISTINCT + COUNT ( * ) * - 89 AS col0 FROM tab2 @@ -24170,8 +24429,11 @@ SELECT + 44 + - COUNT ( * ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL +---- +3 +NULL query III rowsort SELECT * FROM tab0 WHERE col1 NOT BETWEEN - col0 AND ( + col0 ) @@ -24370,8 +24632,15 @@ SELECT ALL + 60 + - 72 FROM tab0 cor0 # Datafusion - Expected - -67 # Datafusion - Expected - 58 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "CAST\(\(\- cor0\.col1\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 58 AS col0, CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 cor0 +---- +-51 +-67 +-77 +58 +58 +58 query I rowsort SELECT ALL - 52 + + 14 FROM tab1 AS cor0 @@ -26024,8 +26293,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) > + col1 # Datafusion - Expected - 92 # Datafusion - Expected - 58 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col2 AS Int32\) AS col2" at position 0 and "Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( col2 AS INTEGER ) AS col2, 92 AS col2 FROM tab2 +---- +23 +40 +58 +92 +92 +92 query I rowsort label-4263 SELECT ALL col2 / + - 85 AS col0 FROM tab2 @@ -26652,8 +26928,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) + - + COUNT ( * ) AS col2, MIN ( DISTINCT + ( 93 ) ) AS col2 FROM tab1 +---- +-6 +93 query III rowsort SELECT DISTINCT * FROM tab1 WHERE col1 <= - col1 @@ -26732,8 +27011,15 @@ SELECT ALL + MIN ( ALL col0 ) * + 35 FROM tab0 cor0 # Datafusion - Expected - 10 # Datafusion - Expected - 97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 \+ cor0\.col1 / cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, + col2 + ( + col1 ) / col0 AS col1 FROM tab0 AS cor0 +---- +10 +15 +52 +87 +97 +99 query I rowsort label-4378 SELECT DISTINCT - - MIN ( ALL + + col0 ) + + SUM ( DISTINCT + col1 ) FROM tab2 AS cor0 @@ -27246,8 +27532,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, 75 AS col1 FROM tab0 AS cor0 WHERE NOT + 65 IS NULL +---- +-3 +75 query I rowsort label-4461 SELECT + MAX ( ALL - col1 ) * COUNT ( * ) FROM tab1 AS cor0 @@ -27261,8 +27550,15 @@ SELECT + MAX ( ALL - col1 ) * COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Expected - -62 # Datafusion - Expected - 11 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 0 and "\(\- cor0\.col2\) \+ \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 11 AS col0, - col2 + - + col0 AS col0 FROM tab0 AS cor0 +---- +-196 +-62 +-97 +11 +11 +11 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT NULL > ( 51 ) @@ -27725,8 +28021,15 @@ SELECT ALL + ( - - 95 ) FROM tab2 # Datafusion - Expected - -81 # Datafusion - Expected - -99 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col1, - col1 AS col1 FROM tab0 +---- +-1 +-10 +-21 +-47 +-81 +-99 query I rowsort SELECT ALL + 8 * - - col2 AS col1 FROM tab0 @@ -27858,8 +28161,15 @@ SELECT + col1 * - col2 * ( - col2 ) + - + col0 * + col2 FROM tab0 AS cor0 # Datafusion - Expected - 1 # Datafusion - Expected - -30 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \+ \(\- tab0\.col0\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + - col0 col2, + col1 AS col2 FROM tab0 +---- +-174 +-194 +-30 +1 +21 +81 query I rowsort SELECT DISTINCT - ( + 90 ) FROM tab0 @@ -29050,8 +29360,15 @@ SELECT 46 - - + col1 AS col0 FROM tab2 cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col0, col0 AS col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-4754 SELECT DISTINCT 99 + + MIN ( - col1 ) - + + 87 * COUNT ( * ) AS col0 FROM tab0 @@ -29732,8 +30049,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 50 AS col0, 2 col0 FROM tab1 +---- +2 +50 query I rowsort label-4865 SELECT MAX ( DISTINCT + + 2 ) AS col0 FROM tab0 @@ -29880,8 +30200,11 @@ SELECT COUNT ( * ), 27 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -148 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col2" at position 0 and "max\(tab2\.col1\) \* \(\- count\(Int64\(87\)\)\) \+ Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 AS col2, + MAX ( col1 ) * + - COUNT ( 87 ) + + 83 AS col2 FROM tab2 +---- +-148 +80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 @@ -29890,8 +30213,15 @@ SELECT 80 AS col2, + MAX ( col1 ) * + - COUNT ( 87 ) + + 83 AS col2 FROM tab2 # Datafusion - Expected - 43 # Datafusion - Expected - 96 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, 43 AS col1 FROM tab1 +---- +43 +43 +43 +59 +68 +96 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE col1 <> NULL @@ -30460,8 +30790,11 @@ SELECT + col2 + - 44 AS col0, - 4 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 + COUNT ( * ) AS col2, + 75 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL +---- +75 +90 query I rowsort SELECT DISTINCT - col2 * - col0 + + - 33 + - col2 FROM tab0 AS cor0 @@ -31274,8 +31607,15 @@ SELECT + + 78 * - col0 FROM tab0 AS cor0 # Datafusion - Expected - -93 # Datafusion - Expected - -5942 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ cor0\.col2 \* Int64\(\-61\) AS col1" at position 0 and "Int64\(\-93\) \+ Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 + + col2 * - 61 AS col1, - 93 + 0 AS col1 FROM tab0 AS cor0 +---- +-2852 +-523 +-5942 +-93 +-93 +-93 query I rowsort label-5125 SELECT 9 * + col0 + - 6 + 75 + + + col0 / col1 * - col2 + - col2 FROM tab0 cor0 @@ -32193,8 +32533,15 @@ SELECT ALL 8 * + MAX ( - col0 ) AS col1, ( + MIN ( - col1 ) ) FROM tab2 # Datafusion - Expected - -705 # Datafusion - Expected - 61 # Datafusion - Expected - -870 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \+ CAST\(Int64\(71\) AS Int32\) AS col0" at position 0 and "tab0\.col0 \* \(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 + CAST ( + 71 AS INTEGER ) AS col0, col0 * - ( + col2 ) AS col0 FROM tab0 +---- +-28 +-705 +-870 +-9603 +24 +61 query III rowsort SELECT * FROM tab2 WHERE NOT + + col0 IN ( - col2 + col2, col1 + 12, + col0 ) @@ -32219,8 +32566,11 @@ SELECT DISTINCT col2 / - CAST ( + + col1 AS INTEGER ) col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 23 AS col0, + COUNT ( * ) AS col0 FROM tab0 +---- +23 +3 query I rowsort SELECT ALL - 45 FROM tab2 WHERE 2 IS NOT NULL @@ -33054,8 +33404,15 @@ SELECT * FROM tab0 cor0 WHERE 90 * + - col1 BETWEEN NULL AND + 58 # Datafusion - Expected - 29 # Datafusion - Expected - 9314 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-95\)\)\) \- cor0\.col0 \* \(\- cor0\.col0\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - - 95 ) - col0 * - col0 col0, 29 AS col0 FROM tab0 AS cor0 +---- +130 +29 +29 +29 +7474 +9314 query III rowsort SELECT * FROM tab2 WHERE - col1 NOT BETWEEN NULL AND + + col2 + + - 26 + col2 * - col1 @@ -33394,8 +33751,15 @@ SELECT * FROM tab2 WHERE NOT + 80 > NULL # Datafusion - Expected - -225 # Datafusion - Expected - 99 # Datafusion - Expected - -9409 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "\(\- tab0\.col0\) \* tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, - col0 * col0 AS col1 FROM tab0 +---- +-225 +-7569 +-9409 +10 +47 +99 query I rowsort SELECT DISTINCT + col2 * + - 87 AS col2 FROM tab1 WHERE NULL IS NOT NULL @@ -34747,8 +35111,15 @@ SELECT DISTINCT 22 + 69 AS col1 FROM tab1 cor0 # Datafusion - Expected - -87 # Datafusion - Expected - -97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col0 col1, - col0 AS col1 FROM tab0 AS cor0 +---- +-15 +-15 +-87 +-87 +-97 +-97 query III rowsort SELECT * FROM tab0 WHERE col2 < ( 91 ) @@ -35536,8 +35907,15 @@ SELECT ALL + col2 AS col0, col2 FROM tab0 cor0 # Datafusion - Expected - 73 # Datafusion - Expected - 68 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ \(\- cor0\.col1\) \+ Int64\(99\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 + - col1 + 99 AS col0, 73 col0 FROM tab0 cor0 +---- +-1 +-29 +68 +73 +73 +73 query III rowsort SELECT * FROM tab1 WHERE + - col2 * - 48 + col0 + - - 90 <= NULL @@ -35621,8 +35999,15 @@ SELECT DISTINCT col2 * + 23 * 72 + - 58 FROM tab1 AS cor0 # Datafusion - Expected - -24190 # Datafusion - Expected - 91 # Datafusion - Expected - -262072 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col1 \* Int64\(\-82\) \* tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 col1, col1 * - 82 * + col2 col1 FROM tab1 +---- +-110208 +-24190 +-262072 +51 +85 +91 query I rowsort SELECT DISTINCT col0 * - - col0 col2 FROM tab1 @@ -36072,8 +36457,15 @@ SELECT + 65 * - col0 + col0 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1, + col1 AS col1 FROM tab0 cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-5911 SELECT + col0 * CAST ( NULL AS INTEGER ) * - col0 FROM tab1 AS cor0 @@ -36707,8 +37099,11 @@ SELECT ALL * FROM tab2 WHERE NOT 2 BETWEEN col2 * - 70 AND - + col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, 50 AS col2 FROM tab1 +---- +3 +50 query I rowsort SELECT + 31 * - col0 + - col1 AS col0 FROM tab1 @@ -37255,8 +37650,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( + col0 ) IS NULL # Datafusion - Expected - 7614 # Datafusion - Expected - 31 # Datafusion - Expected - 1974 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col2 AS col2" at position 0 and "cor0\.col1 \* Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 + + col2 col2, + col1 * 94 AS col2 FROM tab0 AS cor0 +---- +100 +128 +1974 +31 +7614 +94 query I rowsort SELECT ALL - - 8 * + col2 + - col0 + - + col0 - - - col1 * - col1 AS col0 FROM tab0 AS cor0 @@ -37403,8 +37805,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE 24 + + CAST ( NULL AS INTEGER ) IS NOT # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col2 AS Int32\)" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( col2 AS INTEGER ), + col2 AS col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query II rowsort SELECT DISTINCT - - 59 + + col2, 47 * + col0 AS col1 FROM tab0 AS cor0 @@ -37574,8 +37983,15 @@ SELECT + col1 * + 23 AS col1 FROM tab0 # Datafusion - Expected - 23 # Datafusion - Expected - NULL # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- tab1\.col2\) \+ tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col1, - col2 + col0 AS col1 FROM tab1 +---- +-45 +23 +26 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab2 WHERE + 8 <> NULL @@ -38190,8 +38606,15 @@ SELECT 50 * + MAX ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0 # 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 col0" at position 0 and "cor0\.col1 \- cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 col0, col1 - col1 AS col0 FROM tab2 AS cor0 +---- +0 +0 +0 +79 +79 +79 query I rowsort SELECT 85 * + ( + - col1 ) FROM tab0 cor0 @@ -38433,8 +38856,10 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 8ff6080477f18eed3b1a815ea0b123d3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col2" at position 0 and "Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 28 AS col2, 32 AS col2, + + col2 AS col1 FROM tab0 +---- +9 values hashing to 52aa552ca75346bd933765463c94c020 query II rowsort SELECT ALL col1, - col0 AS col0 FROM tab2 @@ -38674,8 +39099,15 @@ SELECT DISTINCT + - col1 / - - col0 + - col1 FROM tab1 AS cor0 # Datafusion - Expected - 75 # Datafusion - Expected - 59846 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \- CAST\(\(\- tab2\.col1\) AS Int32\) \* \(\- tab2\.col2\) \* \(\- tab2\.col1\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 - CAST ( - col1 AS INTEGER ) * - col2 * - col1 AS col1, col0 AS col1 FROM tab2 +---- +237200 +260420 +46 +59846 +64 +75 query III rowsort SELECT * FROM tab2 WHERE - col2 - col1 IS NULL @@ -39378,8 +39810,15 @@ SELECT col2 FROM tab2 WHERE NOT - + col1 * + col0 IS NOT NULL # Datafusion - Expected - -21 # Datafusion - Expected - 56 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 56 AS col0, - ( + col1 ) AS col0 FROM tab0 cor0 +---- +-1 +-21 +-81 +56 +56 +56 query I rowsort SELECT - col0 * - 87 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col1 ) @@ -39863,8 +40302,15 @@ SELECT DISTINCT col0 AS col2 FROM tab2 WHERE ( - 12 ) IS NULL # Datafusion - Expected - 131 # Datafusion - Expected - 5499 # Datafusion - Expected - 149 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(69\) \+ Int64\(15\) \- Int64\(36\) AS col0" at position 0 and "cor0\.col2 \+ CAST\(Int64\(91\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 80 * 69 + + 15 - + 36 col0, col2 + CAST ( 91 AS INTEGER ) AS col0 FROM tab2 AS cor0 +---- +114 +131 +149 +5499 +5499 +5499 query III rowsort SELECT * FROM tab1 AS cor0 WHERE 23 / + + col2 NOT BETWEEN ( col1 * + col1 ) AND ( ( col1 ) ) @@ -40167,8 +40613,15 @@ SELECT COUNT ( * ) * + MIN ( - + col1 ) AS col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "tab0\.col0 \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 +---- +10 +47 +99 +NULL +NULL +NULL query I rowsort label-6601 SELECT ALL + MAX ( + - col0 ) + - 35 / COUNT ( DISTINCT - - 95 ) AS col1 FROM tab1 @@ -41756,8 +42209,11 @@ SELECT DISTINCT - col0 + col2 * + col0 + 86 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(6\) \+ Int64\(15\) / CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, 6 + + + 15 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 +---- +-3 +NULL query I rowsort label-6855 SELECT ALL + MIN ( 90 ) + - COUNT ( * ) AS col1 FROM tab2 @@ -42753,8 +43209,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 68 col2, CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 +---- +-3 +68 query I rowsort SELECT + col0 * + - col1 * 18 + 50 AS col1 FROM tab0 @@ -43083,8 +43542,15 @@ SELECT col2 / + - col0 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 4312 # Datafusion - Expected - 58 # Datafusion - Expected - 3752 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col1 \* Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, + col1 * 56 AS col0 FROM tab2 AS cor0 +---- +23 +2856 +3752 +40 +4312 +58 query I rowsort label-7076 SELECT DISTINCT - COUNT ( * ) * MIN ( DISTINCT + - col2 ) FROM tab1 cor0 @@ -43233,8 +43699,15 @@ SELECT * FROM tab1 AS cor0 WHERE - ( - 65 ) IS NOT NULL # Datafusion - Expected - 5 # Datafusion - Expected - 80 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \- \(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col1 \+ \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 - - col2 AS col0, col1 + - col0 AS col0 FROM tab2 AS cor0 +---- +-8 +116 +13 +46 +5 +80 query III rowsort label-7099 SELECT ALL * FROM tab2 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) >= + 88 @@ -43406,8 +43879,11 @@ SELECT ALL + col2 + + + col2 * - 56 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 31 AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +-31 +3 query I rowsort label-7130 SELECT DISTINCT COUNT ( * ) + + 35 + COUNT ( * ) AS col2 FROM tab2 AS cor0 @@ -43634,8 +44110,15 @@ SELECT col1 * 72 * - col0 AS col2 FROM tab0 # Datafusion - Expected - -10 # Datafusion - Expected - 97 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "\(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, - col2 AS col2 FROM tab0 +---- +-10 +-47 +-99 +15 +87 +97 query I rowsort label-7168 SELECT DISTINCT - MAX ( DISTINCT + - col2 ) col2 FROM tab1 cor0 @@ -43710,8 +44193,10 @@ SELECT DISTINCT + MIN ( - - ( + col1 ) ) FROM tab2 WHERE NOT NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 3815695de751e03fc4c929478a36055a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* tab0\.col0 \+ CAST\(NULL AS Float64\) AS col2" at position 1 and "Int64\(\-4\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IRI valuesort SELECT col1, col1 * col0 + + CAST ( NULL AS FLOAT8 ) AS col2, - 4 AS col2 FROM tab0 +---- +9 values hashing to b76b872d417447d548fb7f41f6907db4 query III rowsort SELECT * FROM tab0 WHERE col0 NOT IN ( col0 * + col2 + col2, + col1, 99 ) @@ -43886,8 +44371,15 @@ SELECT DISTINCT MIN ( + col0 ) FROM tab1 # Datafusion - Expected - -51 # Datafusion - Expected - 514 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab1\.col0\)\) \+ Int64\(\-9\) \* \(\- tab1\.col1\) AS col2" at position 0 and "\(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - - col0 ) + - 9 * - col1 AS col2, - col0 AS col2 FROM tab1 WHERE ( col0 ) NOT BETWEEN 68 AND + 74 OR NOT NULL IS NOT NULL +---- +-51 +-85 +-91 +130 +177 +514 query I rowsort SELECT DISTINCT - col1 + + 74 * - - 31 + + col2 FROM tab1 @@ -45869,8 +46361,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 52 IS NULL # Datafusion - Expected - -77 # Datafusion - Expected - 4582 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(79\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * + 79 AS col0, - col1 AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +1817 +3160 +4582 query I rowsort label-7537 SELECT DISTINCT - 99 * + COUNT ( * ) FROM tab2 @@ -46037,8 +46536,15 @@ SELECT ALL + col0 + col1 AS col1 FROM tab2 cor0 WHERE NOT 95 <= - col0 * col1 # Datafusion - Expected - 47 # Datafusion - Expected - 0 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) / \(\- \(\- cor0\.col2\)\) \* \(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 / - ( - col2 ) * + ( - col0 ) AS col2, + col1 AS col2 FROM tab1 cor0 +---- +0 +0 +0 +14 +47 +5 query I rowsort label-7564 SELECT ALL + COUNT ( ALL - col0 ) / - + 89 FROM tab2 AS cor0 @@ -46307,8 +46813,15 @@ SELECT ALL * FROM tab2 WHERE NOT col0 + col2 <= - col0 + col2 # Datafusion - Expected - 10 # Datafusion - Expected - -95 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \+ \(\- Int64\(53\)\) / tab1\.col1 AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 + - + 53 / + col1 AS col2, + 10 AS col2 FROM tab1 +---- +-54 +-92 +-95 +10 +10 +10 query II rowsort SELECT col2 AS col2, 39 AS col1 FROM tab2 AS cor0 @@ -46615,8 +47128,9 @@ SELECT - ( - - col0 ) col2 FROM tab1 -91 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* Int64\(\-44\) AS col2" at position 0 and "\(\- CAST\(tab2\.col0 AS Int32\)\) / \(\- tab2\.col1\) \+ \(\- Int64\(43\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 * - 44 AS col2, - CAST ( + col0 AS INTEGER ) / - col1 + - + 43 AS col2 FROM tab2 WHERE - + col1 * - 5 + 10 + + 17 IS NULL +---- query III rowsort SELECT DISTINCT * FROM tab2 WHERE + 56 IS NOT NULL @@ -46630,8 +47144,15 @@ SELECT DISTINCT * FROM tab2 WHERE + 56 IS NOT NULL # Datafusion - Expected - -86 # Datafusion - Expected - -97 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.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 II valuesort SELECT DISTINCT - col0 AS col0, - ( 86 ) AS col0 FROM tab0 +---- +-15 +-86 +-86 +-86 +-87 +-97 query I rowsort label-7658 SELECT - MIN ( + + col0 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL @@ -46889,8 +47410,15 @@ SELECT + col1 AS col1, 7 FROM tab2 AS cor0 WHERE - 17 - - 54 + CAST ( NULL AS FL # Datafusion - Expected - -645 # Datafusion - Expected - -96 # Datafusion - Expected - -685 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(46\) \* Int64\(\-16\) \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( col2 ) AS col0, 46 * - 16 + col0 AS col0 FROM tab1 cor0 +---- +-59 +-645 +-651 +-68 +-685 +-96 query I rowsort label-7701 SELECT DISTINCT - SUM ( ALL + 86 ) AS col0 FROM tab1 @@ -46980,8 +47508,15 @@ NULL # Datafusion - Expected - 59 # Datafusion - Expected - -91 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, col2 AS col0 FROM tab1 +---- +-51 +-85 +-91 +59 +68 +96 query I rowsort SELECT ALL + 5 AS col1 FROM tab2, tab2 AS cor0 @@ -47094,8 +47629,15 @@ SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL ) # Datafusion - Expected - -369640 # Datafusion - Expected - 343186 # Datafusion - Expected - -376933 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* cor0\.col2 \* Int64\(61\) AS col0" at position 0 and "\(\- cor0\.col2\) \+ Int64\(75\) \* cor0\.col0 \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 97 * col2 * + 61 AS col0, - col2 + 75 * col0 * - + col1 AS col0 FROM tab2 AS cor0 +---- +-175973 +-369640 +-376933 +136091 +236680 +343186 query II rowsort SELECT ALL - col0, + col0 FROM tab1 @@ -47390,8 +47932,9 @@ SELECT ALL - COUNT ( * ) / 45 / ( - 46 ) col0 FROM tab2 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, col0 AS col0 FROM tab0 WHERE - - col2 * - 70 IS NULL +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -47566,8 +48109,15 @@ SELECT 54 * + - col0 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL +---- +10 +10 +47 +47 +99 +99 query I rowsort label-7812 SELECT ALL + 76 * + COUNT ( * ) FROM tab2 AS cor0 @@ -47627,8 +48177,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 80 AS col1, - COUNT ( * ) AS col1 FROM tab0 +---- +-3 +80 query I rowsort label-7822 SELECT DISTINCT + + MIN ( + col2 ) col1 FROM tab1 AS cor0 @@ -48278,8 +48831,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 AS col0, - COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab0 +---- +9 +91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 @@ -48288,8 +48844,15 @@ SELECT 91 AS col0, - COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab0 # Datafusion - Expected - 4288 # Datafusion - Expected - 64 # Datafusion - Expected - 5025 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col2" at position 0 and "Int64\(67\) \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 64 AS col2, + 67 * + col0 AS col2 FROM tab2 AS cor0 +---- +3082 +4288 +5025 +64 +64 +64 query II rowsort label-7936 SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 59 + + + CAST ( - col2 AS INTEGER ) / - + 80 AS col1 FROM tab2 AS cor0 @@ -48750,8 +49313,15 @@ SELECT col2 AS col2, 58 AS col2 FROM tab0 # Datafusion - Expected - -4512 # Datafusion - Expected - -1 # Datafusion - Expected - -480 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) / tab1\.col2 AS col1" at position 0 and "tab1\.col1 \* Int64\(\-96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 / col2 AS col1, col1 * - 96 col1 FROM tab1 +---- +-1 +-1 +-1 +-1344 +-4512 +-480 query II rowsort SELECT ALL + 48, 47 AS col0 FROM tab1 @@ -49333,8 +49903,15 @@ SELECT DISTINCT + 34 AS col0, + col2 - + - 98 FROM tab2 AS cor0 WHERE + col1 * 4 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1, col1 AS col1 FROM tab1 cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT DISTINCT + + ( - col0 ) * - col0 * + ( + + 62 ) AS col2 FROM tab2 AS cor0 @@ -49374,8 +49951,15 @@ SELECT 20 + - COUNT ( * ) col0 FROM tab1 # Datafusion - Expected - 31 # Datafusion - Expected - -91 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.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 II valuesort SELECT DISTINCT - col0 AS col0, + 31 AS col0 FROM tab1 +---- +-51 +-85 +-91 +31 +31 +31 query I rowsort SELECT ALL + 87 AS col1 FROM tab2 WHERE NULL NOT IN ( + col1, 2, col0 * + col0 + + col1, + col1 - + 6 + + + 42 * + ( + col1 ), + ( - 55 ) ) @@ -49470,8 +50054,15 @@ SELECT DISTINCT + col0 + col0 + - ( + ( + + ( + + col2 ) ) ) - + - 65 FROM tab1 # Datafusion - Expected - 0 # Datafusion - Expected - 32 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col1\) / Int64\(\-82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + col2 AS col0, - col1 / - 82 AS col0 FROM tab0 AS cor0 +---- +-77 +0 +0 +0 +2 +32 query I rowsort SELECT col1 * + col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL @@ -49579,8 +50170,9 @@ SELECT ALL - - col1 AS col0 FROM tab0 WHERE NULL IS NULL 81 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \- Int64\(56\) \+ tab0\.col0 AS col1" at position 1 and "tab0\.col0 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 88 + 37 * col1, 7 - + 56 + col0 AS col1, + col0 AS col1 FROM tab0 WHERE - col2 IS NULL +---- query I rowsort SELECT + + col1 + - col1 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL @@ -49659,8 +50251,11 @@ SELECT 89 * + 83 AS col1, - col0 + + col1 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT \(\- tab1\.col0\)\) AS col0" at position 0 and "min\(tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MIN ( DISTINCT - col0 ) col0, + MIN ( ALL col2 ) AS col0 FROM tab1 +---- +-91 +59 query III rowsort label-8151 SELECT ALL * FROM tab2 WHERE - - col1 * 62 * + CAST ( NULL AS INTEGER ) + - 64 IS NULL @@ -50844,8 +51439,15 @@ SELECT ALL - 71 / col0 AS col1 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - -5 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 col1, col2 AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +59 +68 +96 query I rowsort SELECT col0 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL @@ -51207,8 +51809,11 @@ SELECT - 91 * - + 45 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(DISTINCT tab2\.col1\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - COUNT ( DISTINCT + col1 ) ) AS col1, COUNT ( * ) AS col1 FROM tab2 +---- +3 +3 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 45 * - - col2 BETWEEN ( + col2 ) AND col1 @@ -51515,8 +52120,15 @@ SELECT DISTINCT MAX ( DISTINCT - col2 ) / + 4 AS col1 FROM tab0 # Datafusion - Expected - 34 # Datafusion - Expected - -714 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \* tab1\.col1 AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 * + col1 AS col2, + 34 AS col2 FROM tab1 +---- +-425 +-4277 +-714 +34 +34 +34 query I rowsort label-8453 SELECT ALL CAST ( - col2 AS INTEGER ) col1 FROM tab2 @@ -51617,8 +52229,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT col1 / 21 IS NOT NULL # Datafusion - Expected - 62 # Datafusion - Expected - -81 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, + 62 AS col0 FROM tab0 +---- +-1 +-21 +-81 +62 +62 +62 query II rowsort label-8470 SELECT DISTINCT CAST ( NULL AS INTEGER ) col2, - col0 / - + col0 AS col1 FROM tab0 @@ -52394,8 +53013,15 @@ SELECT - 82 * - MIN ( + - 94 ) FROM tab2 AS cor0 # Datafusion - Expected - 372 # Datafusion - Expected - -6561 # Datafusion - Expected - 372 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- cor0\.col1\) 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 II valuesort SELECT ALL col1 * - col1 AS col0, 12 * 31 AS col0 FROM tab0 AS cor0 +---- +-1 +-441 +-6561 +372 +372 +372 query I rowsort SELECT 24 FROM tab2 AS cor0 WHERE NOT 71 NOT BETWEEN + col0 AND + ( - + col1 ) @@ -52564,8 +53190,15 @@ SELECT + 45 * col0 * + col2 FROM tab1 # Datafusion - Expected - 6648 # Datafusion - Expected - 5025 # Datafusion - Expected - 7519 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* tab2\.col0 AS col2" at position 0 and "\(\- tab2\.col1\) \* \(\- tab2\.col0\) \+ Int64\(43\) \* tab2\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + + col0 AS col2, - col1 * - col0 + 43 * + col2 AS col2 FROM tab2 +---- +2346 +3335 +4928 +5025 +6648 +7519 query III rowsort SELECT * FROM tab1 WHERE NOT NULL >= + 54 @@ -53338,8 +53971,15 @@ SELECT - 86 / col1 FROM tab0 # Datafusion - Expected - -141 # Datafusion - Expected - 522 # Datafusion - Expected - -142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* Int64\(9\) AS col0" at position 0 and "\(\- tab2\.col0\) \+ \(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * 9 AS col0, - col0 + - + col1 AS col0 FROM tab2 +---- +-141 +-142 +-97 +207 +360 +522 query I rowsort label-8743 SELECT MAX ( 21 ) * - COUNT ( * ) - COUNT ( * ) AS col1 FROM tab1 @@ -53453,8 +54093,15 @@ SELECT MIN ( DISTINCT + - col1 ) FROM tab1 # Datafusion - Expected - 1 # Datafusion - Expected - 99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col0 / cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, col0 / + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL +---- +1 +1 +1 +10 +47 +99 query I rowsort SELECT ALL 89 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL @@ -53890,8 +54537,15 @@ SELECT ALL - + ( - + 69 ) FROM tab1 cor0 # Datafusion - Expected - -21 # Datafusion - Expected - -2 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(2\)\) AS col1" at position 0 and "\(\- cor0\.col1\) \* Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 2 AS col1, - col1 * 1 AS col1 FROM tab0 AS cor0 +---- +-1 +-2 +-2 +-2 +-21 +-81 query I rowsort label-8837 SELECT - MIN ( ALL + + col1 ) AS col0 FROM tab0 AS cor0 @@ -54568,8 +55222,15 @@ SELECT - 89 * + + col0 FROM tab0 # Datafusion - Expected - 63461 # Datafusion - Expected - 77 # Datafusion - Expected - 55424 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "tab2\.col2 \* \(\- tab2\.col2\) \+ \(\- Int64\(9\)\) \* \(\- tab2\.col0\) \* Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, + col2 * + - col2 + - + 9 * ( + - col0 ) * 99 AS col2 FROM tab2 +---- +40457 +51 +55424 +63461 +67 +77 query II rowsort label-8947 SELECT DISTINCT COUNT ( * ), + 77 AS col1 FROM tab1 @@ -55596,8 +56257,15 @@ SELECT ALL - col1 / + 89 AS col2 FROM tab1 # Datafusion - Expected - -190 # Datafusion - Expected - 84 # Datafusion - Expected - -893 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "tab0\.col2 \* \(\- Int64\(19\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 84 AS col1, + col2 * + ( - ( 19 ) ) AS col1 FROM tab0 +---- +-1881 +-190 +-893 +84 +84 +84 query I rowsort SELECT ALL + ( 43 ) + + col1 AS col0 FROM tab2 @@ -56435,8 +57103,15 @@ SELECT ALL col0 / + + col0 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -90 # Datafusion - Expected - 86 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 86 col0, - 90 AS col0 FROM tab1 AS cor0 +---- +-90 +-90 +-90 +86 +86 +86 query I rowsort SELECT - 21 FROM tab0 AS cor0 WHERE NOT ( - col2 ) IS NULL @@ -57779,8 +58454,15 @@ SELECT * FROM tab1 cor0 WHERE NOT NULL = - col1 # Datafusion - Expected - 4 # Datafusion - Expected - 2025 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(\-27\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * - 27 AS col0, 4 col0 FROM tab2 AS cor0 +---- +1242 +1728 +2025 +4 +4 +4 query I rowsort label-9476 SELECT ALL + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL @@ -58117,8 +58799,15 @@ SELECT DISTINCT - - col0 + - 25 * + ( + col1 ) + - col1 AS col1 FROM tab0 AS cor # Datafusion - Expected - 99 # Datafusion - Expected - -64 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \- cor0\.col1 AS col1" at position 0 and "cor0\.col0 \+ Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 - + col1 AS col1, + ( ( + col0 ) ) + + 8 AS col1 FROM tab1 AS cor0 +---- +-110 +-115 +-64 +59 +93 +99 query I rowsort SELECT ALL col0 - - ( - - col1 ) AS col2 FROM tab2 AS cor0 @@ -58366,8 +59055,11 @@ SELECT DISTINCT - 39 - + 75 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* count\(cor0\.col0\) \- Int64\(\-73\) AS col2" at position 0 and "\(\- Int64\(8\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 2 * COUNT ( col0 ) - - 73 AS col2, - ( + 8 ) AS col2 FROM tab0 AS cor0 +---- +-8 +79 query I rowsort SELECT DISTINCT - 8 / - col0 - 0 FROM tab0 WHERE NOT NULL IS NULL @@ -59608,8 +60300,15 @@ SELECT - 94 col1, col2 + col1 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 117 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ Int64\(60\) AS col1" at position 0 and "\(\- \(\- \(\- CAST\(cor0\.col2 AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 57 + 60 AS col1, - ( - ( - + CAST ( col2 AS INTEGER ) ) ) AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +117 +117 +117 query II rowsort SELECT DISTINCT col2 col2, - ( - 77 ) + + col2 AS col0 FROM tab1 AS cor0 @@ -60261,8 +60960,15 @@ SELECT DISTINCT - COUNT ( DISTINCT ( 14 ) ) * + COUNT ( * ) AS col2 FROM tab2 # Datafusion - Expected - 65 # Datafusion - Expected - 0 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) / Int64\(78\) AS col0" at position 0 and "cor0\.col1 \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 3 / + 78 AS col0, col1 + col0 AS col0 FROM tab1 AS cor0 +---- +0 +0 +0 +138 +65 +90 query II rowsort label-9888 SELECT 76 / - + col2 col2, col2 / + 5 - + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_109.slt b/data/sqlite/random/aggregates/slt_good_109.slt index 5ddebce..35dd7db 100644 --- a/data/sqlite/random/aggregates/slt_good_109.slt +++ b/data/sqlite/random/aggregates/slt_good_109.slt @@ -341,8 +341,15 @@ SELECT DISTINCT - + ( - MAX ( DISTINCT - - col2 ) ) FROM tab1 AS cor0 WHERE col0 # Datafusion - Expected - -40 # Datafusion - Expected - 75 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "\(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, - col2 AS col2 FROM tab2 +---- +-23 +-40 +-58 +46 +64 +75 query I rowsort label-52 SELECT SUM ( ALL - + col0 ) FROM tab2 @@ -662,8 +669,15 @@ SELECT ALL + col1 AS col2, col2 + - ( 88 ) * + col1 FROM tab1 AS cor0 WHERE NOT # Datafusion - Expected - 40 # Datafusion - Expected - -58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "\(\- \(\- cor0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col2 AS col0, ( - - col2 ) AS col0 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +23 +40 +58 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND col0 @@ -2039,8 +2053,9 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 64 * + + 77 IS NULL 9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 62 col0, - col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL +---- query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT + ( - 23 ) BETWEEN ( + col0 ) AND NULL @@ -3119,8 +3134,15 @@ SELECT DISTINCT + 1, col2 * col1 AS col2 FROM tab2 # Datafusion - Expected - 125 # Datafusion - Expected - 97 # Datafusion - Expected - 135 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "tab0\.col0 \+ Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, col0 + 38 AS col1 FROM tab0 +---- +125 +135 +15 +53 +87 +97 query III rowsort label-511 SELECT DISTINCT * FROM tab1 WHERE NULL < + CAST ( NULL AS INTEGER ) @@ -3254,8 +3276,12 @@ 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\(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\. +query III valuesort SELECT + SUM ( DISTINCT + col0 ), - COUNT ( * ) AS col0, 39 col0 FROM tab0 AS cor0 +---- +-3 +199 +39 query I rowsort label-531 SELECT - - ( + COUNT ( * ) ) * + 92 FROM tab1 AS cor0 @@ -3575,8 +3601,15 @@ SELECT ALL 64 AS col2, - 62 + - col0 + 62 - - col0 AS col0 FROM tab0 cor0 # Datafusion - Expected - -1215 # Datafusion - Expected - 99 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col0 \* \(\- \(\- \(\- cor0\.col1\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 col1, col0 * - - ( - ( col1 ) ) AS col1 FROM tab0 AS cor0 +---- +-1215 +-1827 +-97 +10 +47 +99 query II rowsort SELECT + col1 AS col1, col1 AS col0 FROM tab2 AS cor0 @@ -4423,8 +4456,15 @@ SELECT DISTINCT - ( col0 ) - - col2 FROM tab2 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - -58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, + col1 AS col0 FROM tab2 +---- +-23 +-40 +-58 +51 +67 +77 query I rowsort label-730 SELECT ALL + SUM ( ALL - col2 ) FROM tab0 @@ -5318,8 +5358,15 @@ SELECT col2 FROM tab1 AS cor0 WHERE NOT 60 <= NULL # Datafusion - Expected - NULL # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 +---- +51 +67 +77 +NULL +NULL +NULL query II rowsort SELECT + 83, col0 AS col0 FROM tab1 AS cor0 @@ -5551,8 +5598,15 @@ SELECT DISTINCT + SUM ( - 55 ) col2 FROM tab1 cor0 # Datafusion - Expected - -68 # Datafusion - Expected - -96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "\(\- cor0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2, - ( col2 ) FROM tab1 AS cor0 +---- +-59 +-59 +-68 +-68 +-96 +-96 query II rowsort SELECT DISTINCT - 14, - col0 FROM tab2 AS cor0 WHERE 97 + + col0 IS NULL @@ -5938,8 +5992,11 @@ SELECT - col0 - - 93 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 291 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-97\)\)\) AS col1" at position 0 and "Int64\(\-10\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - SUM ( ALL - 97 ) AS col1, - 10 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 +---- +291 +NULL query I rowsort SELECT + col0 + 46 + - col1 AS col0 FROM tab1 WHERE NOT + + 86 IS NULL @@ -6488,8 +6545,15 @@ SELECT + 93 - - - col2 + + - 53 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col2, + ( col2 ) FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT col0 + - col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 ) @@ -7460,8 +7524,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 37 + - 30 col0, - COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +-3 +-67 query II rowsort SELECT - + col0, - col2 AS col1 FROM tab0 AS cor0 @@ -7506,8 +7573,11 @@ SELECT + - col0, col0 * + col0 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(tab0\.col2\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MIN ( + col2 ) AS col2, COUNT ( * ) AS col2 FROM tab0 +---- +10 +3 query I rowsort label-1243 SELECT - CAST ( NULL AS INTEGER ) * - - 90 FROM tab1 @@ -7772,8 +7842,15 @@ SELECT ALL col2 + + - col0 FROM tab0 # Datafusion - Expected - 97 # Datafusion - Expected - 531 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(51\) \+ cor0\.col1 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col2 * 51 + + col1 col1, col0 col1 FROM tab0 AS cor0 WHERE ( NULL IS NULL ) +---- +15 +2478 +5050 +531 +87 +97 query II rowsort SELECT ALL + col1 - + col1 col0, 8 AS col2 FROM tab1 AS cor0 @@ -8495,8 +8572,15 @@ SELECT ALL + col1 AS col0 FROM tab0 AS cor0 WHERE - 48 BETWEEN NULL AND NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + col1 ), + col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT DISTINCT col0 FROM tab1 cor0 WHERE NOT + ( - col2 ) * + 3 + - ( col0 ) * - - ( + + ( col0 ) ) > + + 34 / + col1 @@ -8926,8 +9010,15 @@ SELECT ALL 55 * + - 42 FROM tab1 # Datafusion - Expected - -241472 # Datafusion - Expected - 58 # Datafusion - Expected - -246225 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "\(\- tab2\.col0\) \* Int64\(49\) \* tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, - col0 * + + 49 * + col1 AS col0 FROM tab2 +---- +-114954 +-241472 +-246225 +23 +40 +58 query I rowsort label-1467 SELECT COUNT ( * ) * + 67 FROM tab0 @@ -9245,8 +9336,15 @@ NULL # Datafusion - Expected - -262144 # Datafusion - Expected - -75 # Datafusion - Expected - -360000 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "\(\- cor0\.col0\) \* cor0\.col0 \* Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col0, - col0 * col0 * + 64 col0 FROM tab2 AS cor0 WHERE + col1 / - 81 IS NOT NULL +---- +-135424 +-262144 +-360000 +-46 +-64 +-75 query I rowsort SELECT + ( 85 ) col1 FROM tab0 AS cor0 @@ -9270,8 +9368,15 @@ SELECT ALL col0 * - col0 AS col0 FROM tab2 AS cor0 WHERE 7 + + ( - + 83 ) + + co # Datafusion - Expected - 49 # Datafusion - Expected - 75 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 col1, 49 AS col1 FROM tab2 cor0 +---- +46 +49 +49 +49 +64 +75 query I rowsort SELECT col1 * + ( - col2 ) + - ( - - col2 ) + + - ( col0 ) / - + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL @@ -10130,8 +10235,15 @@ SELECT col2 AS col2, - col1 * - 68 + col1 + - + 92 FROM tab0 AS cor0 # Datafusion - Expected - 870 # Datafusion - Expected - 97 # Datafusion - Expected - 9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col0 \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col1, col0 * col2 AS col1 FROM tab0 AS cor0 +---- +15 +705 +87 +870 +9603 +97 query I rowsort SELECT + col1 FROM tab2 AS cor0 WHERE NOT + col2 IN ( + col0 ) @@ -10147,8 +10259,15 @@ SELECT + col1 FROM tab2 AS cor0 WHERE NOT + col2 IN ( + col0 ) # Datafusion - Expected - 79 # Datafusion - Expected - -5 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, 79 AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +79 +79 +79 query I rowsort SELECT ALL + 16 AS col2 FROM tab1 WHERE NOT - 59 + - col0 * 25 = NULL @@ -10348,8 +10467,9 @@ SELECT + ( col2 ) AS col0 FROM tab2 WHERE NOT + - col1 = NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* cor0\.col0 \- cor0\.col1 \+ \(\- \(\- cor0\.col0\)\) \* CAST\(NULL AS Int32\) \* Int64\(62\) \- cor0\.col2 AS col2" at position 0 and "\(\- cor0\.col1\) \+ Int64\(\-74\) \- cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 21 * + col0 - + + col1 + - - col0 * ( + + CAST ( NULL AS INTEGER ) ) * + 62 - + col2 AS col2, - col1 + - 74 - col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 - - 81 IS NOT NULL +---- query II rowsort label-1708 SELECT - + CAST ( NULL AS INTEGER ), - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL ) @@ -11577,8 +11697,15 @@ SELECT ALL * FROM tab1 WHERE + + col2 * - 76 < NULL # Datafusion - Expected - 2289 # Datafusion - Expected - -89 # Datafusion - Expected - 3315 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col0" at position 0 and "tab2\.col2 \* Int64\(57\) \+ Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 89 AS col0, + col2 * + 57 + 9 col0 FROM tab2 +---- +-89 +-89 +-89 +1320 +2289 +3315 query I rowsort label-1908 SELECT + + COUNT ( + col2 ) AS col0 FROM tab0 WHERE NULL <= NULL @@ -11592,8 +11719,15 @@ SELECT + + COUNT ( + col2 ) AS col0 FROM tab0 WHERE NULL <= NULL # Datafusion - Expected - 93 # Datafusion - Expected - 10 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 10 AS col2, + 93 AS col2 FROM tab0 +---- +10 +10 +10 +93 +93 +93 query I rowsort SELECT DISTINCT - + col0 AS col1 FROM tab2 WHERE ( NOT ( NULL ) < NULL ) @@ -11900,8 +12034,15 @@ SELECT DISTINCT - col1 AS col2 FROM tab1 WHERE NOT - col1 = NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col0, col0 AS col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT DISTINCT - 4 + 61 * - - ( - col0 ) * - col2 FROM tab0 @@ -12075,8 +12216,15 @@ SELECT ALL - + COUNT ( DISTINCT + 91 ) FROM tab0 AS cor0 # Datafusion - Expected - -13 # Datafusion - Expected - -99 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, - 13 AS col2 FROM tab0 cor0 WHERE NOT + col2 IS NULL +---- +-10 +-13 +-13 +-13 +-47 +-99 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= + col1 @@ -12115,8 +12263,15 @@ SELECT + 69 AS col0 FROM tab0 cor0 WHERE NOT 68 <= - + 45 # Datafusion - Expected - 117 # Datafusion - Expected - 58 # Datafusion - Expected - 125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col1 \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, col1 + + col2 AS col1 FROM tab2 cor0 +---- +117 +125 +23 +40 +58 +74 query II rowsort SELECT DISTINCT - col2, - col1 AS col1 FROM tab0 AS cor0 @@ -14357,8 +14512,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( ALL - + col1 ) AS col1, COUNT ( * ) * - 60 AS col1 FROM tab0 +---- +-180 +103 query I rowsort label-2365 SELECT + 54 * COUNT ( * ) AS col1 FROM tab1 @@ -14500,8 +14658,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + SUM ( - + 1 ) * - 26 AS col2, COUNT ( * ) * - 69 col2 FROM tab0 +---- +-207 +78 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT + col2 NOT BETWEEN + + col1 * - 27 AND NULL @@ -14946,8 +15107,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, - 89 AS col0 FROM tab1 +---- +-3 +-89 query I rowsort SELECT DISTINCT + 1 col2 FROM tab0 WHERE col2 < NULL @@ -15879,8 +16043,15 @@ SELECT DISTINCT - - 60 col1 FROM tab2 AS cor0 # Datafusion - Expected - -6561 # Datafusion - Expected - 9801 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col2 AS col0" at position 0 and "cor0\.col1 \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 * + col2 AS col0, col1 * + - col1 AS col0 FROM tab0 AS cor0 +---- +-1 +-441 +-6561 +100 +2209 +9801 query I rowsort label-2623 SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE ( - CAST ( NULL AS INTEGER ) * + col0 ) > CAST ( + + col0 AS INTEGER ) / - + col1 @@ -16039,8 +16210,15 @@ SELECT - col1 AS col1, - col0 * - col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 9409 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* \(\- tab0\.col0\) AS col1" at position 0 and "tab0\.col0 \- Int64\(39\) \+ \(\- tab0\.col2\) \- tab0\.col2 \+ CAST\(NULL AS Int32\) \* tab0\.col1 \* \(\- Int64\(89\)\) \* \(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * + - col0 AS col1, + col0 - 39 + + ( - + col2 ) - col2 + + CAST ( NULL AS INTEGER ) * col1 * ( - ( + + 89 ) ) * - col0 col1 FROM tab0 +---- +225 +7569 +9409 +NULL +NULL +NULL query I rowsort label-2648 SELECT - col1 * col2 * - CAST ( col1 AS INTEGER ) AS col1 FROM tab0 @@ -16604,8 +16782,9 @@ SELECT DISTINCT + + COUNT ( + 15 ) AS col2 FROM tab2 AS cor0 3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \+ Int64\(23\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 45 + + 23 AS col0, col2 AS col0 FROM tab1 WHERE + + 60 IS NULL +---- query I rowsort SELECT ALL + + 2 + col1 * col0 - - 62 FROM tab1 AS cor0 @@ -17313,8 +17492,15 @@ SELECT DISTINCT + MIN ( ALL - 99 ) + - 82 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, col2 col1 FROM tab0 WHERE 84 BETWEEN - col1 AND + 91 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT - + 10 FROM tab1 WHERE + col1 BETWEEN + col2 AND + col0 @@ -17384,8 +17570,11 @@ SELECT ALL 76 AS col1, 95 + 23 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- cor0\.col1\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( - col1 ) AS col2, COUNT ( * ) col2 FROM tab0 AS cor0 +---- +3 +3 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) >= - 33 @@ -17744,8 +17933,15 @@ SELECT DISTINCT + col1 / + col2 + - 78 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 14 # Datafusion - Expected - 1 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / cor0\.col0 AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 / col0 AS col0, 14 AS col0 FROM tab2 AS cor0 +---- +1 +1 +1 +14 +14 +14 query II rowsort label-2925 SELECT DISTINCT - col1 / 88, col2 FROM tab0 AS cor0 @@ -18264,8 +18460,15 @@ SELECT - - 29 FROM tab2 cor0 WHERE 26 + col0 IS NULL # Datafusion - Expected - -3080 # Datafusion - Expected - 58 # Datafusion - Expected - -3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 0 and "\(\- cor0\.col1\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 58 AS col1, - col1 * + col2 AS col1 FROM tab2 AS cor0 +---- +-1173 +-3080 +-3886 +58 +58 +58 query I rowsort SELECT col2 * - col1 - + - 36 AS col2 FROM tab1 cor0 @@ -18403,8 +18606,15 @@ SELECT col1 FROM tab0 WHERE NOT - - col2 NOT IN ( 66 + col1 * + - col2 + + + col # Datafusion - Expected - 209 # Datafusion - Expected - 40 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "tab0\.col1 \- \(\- tab0\.col2\) \- \(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 AS col0, col1 - - col2 - - col1 AS col0 FROM tab0 +---- +101 +209 +40 +40 +40 +52 query III rowsort SELECT ALL * FROM tab1 WHERE + + 96 IS NULL @@ -18738,8 +18948,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CAST\(Int64\(\-14\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, + CAST ( - 14 AS INTEGER ) AS col2 FROM tab0 WHERE NOT col2 BETWEEN - 14 / + col1 + col2 AND NULL +---- +-14 +0 query I rowsort label-3091 SELECT + col1 / + - ( + col2 ) FROM tab0 @@ -19261,8 +19474,15 @@ SELECT DISTINCT - 83 * - ( COUNT ( * ) ) AS col2, + ( + 7 ) * + - ( 50 ) AS col1 # Datafusion - Expected - 870 # Datafusion - Expected - -20 # Datafusion - Expected - 9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col0" at position 0 and "cor0\.col2 \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 20 col0, + col2 * + col0 AS col0 FROM tab0 AS cor0 +---- +-20 +-20 +-20 +705 +870 +9603 query I rowsort label-3179 SELECT DISTINCT - MIN ( DISTINCT col0 ) FROM tab2 @@ -19418,8 +19638,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 / + 87 IS NULL # Datafusion - Expected - -56 # Datafusion - Expected - -31 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \+ Int64\(54\) AS col0" at position 0 and "Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 85 + 54 AS col0, ( + - 56 ) AS col0 FROM tab0 AS cor0 +---- +-31 +-31 +-31 +-56 +-56 +-56 query I rowsort SELECT - 52 + + ( - + ( - - col1 ) ) AS col2 FROM tab1 AS cor0 @@ -19912,8 +20139,13 @@ SELECT ALL 15 + + - 77 * 55 AS col0 FROM tab2 # Datafusion - Expected - -80 # Datafusion - Expected - 0 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) / tab0\.col0 AS col1" at position 0 and "Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 50 / + + col0 AS col1, ( - 80 ) AS col1 FROM tab0 +---- +-3 +-80 +-80 +0 query I rowsort SELECT DISTINCT 33 + 25 col0 FROM tab1 @@ -21451,8 +21683,15 @@ SELECT + - 4 / + col1 FROM tab2 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - -4950 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- Int64\(66\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * - + 66 AS col1, + col0 AS col1 FROM tab2 AS cor0 +---- +-3036 +-4224 +-4950 +46 +64 +75 query I rowsort SELECT - 22 * - + col1 * col1 FROM tab0 AS cor0 @@ -22587,8 +22826,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 78 AS col2, - COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +-3 +78 query I rowsort SELECT ALL + + 42 AS col2 FROM tab0 cor0 @@ -22670,8 +22912,15 @@ SELECT DISTINCT col0 * + + 9 AS col0 FROM tab2 cor0 # Datafusion - Expected - 154 # Datafusion - Expected - -75 # Datafusion - Expected - 134 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab2\.col0\) AS Int32\) AS col1" at position 0 and "tab2\.col1 \+ tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - col0 AS INTEGER ) AS col1, col1 + + col1 AS col1 FROM tab2 +---- +-46 +-64 +-75 +102 +134 +154 query I rowsort label-3744 SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NULL @@ -23285,8 +23534,15 @@ NULL # Datafusion - Expected - -52 # Datafusion - Expected - 64 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ tab1\.col2 AS col1" at position 0 and "\(\- tab1\.col0\) \+ Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + + col2 AS col1, - col0 + + 39 AS col1 FROM tab1 +---- +-12 +-46 +-52 +110 +115 +64 query I rowsort SELECT + 97 AS col1 FROM tab2 cor0 WHERE NULL IS NULL @@ -23943,8 +24199,15 @@ SELECT DISTINCT + col1 / 19 FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, col0 col2 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-3954 SELECT col1 * - col2 * - col0 - + col2 + - col2 / - col1 FROM tab1 @@ -24046,8 +24309,15 @@ SELECT + col0 AS col0, col2 FROM tab0 # Datafusion - Expected - -73 # Datafusion - Expected - -96 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, - 73 AS col1 FROM tab1 +---- +-59 +-68 +-73 +-73 +-73 +-96 query II rowsort SELECT - col1, col2 AS col1 FROM tab1 @@ -25951,8 +26221,15 @@ SELECT ALL - col2 - - col0 * + CAST ( 59 AS INTEGER ) + col1 FROM tab1 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - -96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2, CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0 +---- +-59 +-59 +-68 +-68 +-96 +-96 query I rowsort SELECT + - 11 AS col1 FROM tab0 AS cor0 @@ -26462,8 +26739,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col0, - 8 * - 86 AS col0 FROM tab1 +---- +0 +688 query III rowsort SELECT DISTINCT * FROM tab1 WHERE ( col0 ) BETWEEN NULL AND NULL @@ -27122,8 +27402,15 @@ SELECT DISTINCT + MAX ( ( 58 ) ) * + ( - + 10 ) col0 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 +---- +15 +87 +97 +NULL +NULL +NULL query I rowsort label-4483 SELECT DISTINCT + 21 * COUNT ( * ) AS col1 FROM tab2 @@ -27976,8 +28263,9 @@ SELECT - col2 * - - col0 FROM tab1 AS cor0 -6188 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col2 \+ Int64\(28\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 + + col2 + + 28 AS col1, + col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL +---- query I rowsort label-4623 SELECT ALL col1 / + - col0 + + col2 + - 21 / - col0 FROM tab1 @@ -28438,8 +28726,11 @@ SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE ( col0 - - col2 = 35 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(91\)\) AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MAX ( DISTINCT 91 ) AS col1, 39 AS col1 FROM tab2 +---- +39 +91 query I rowsort SELECT + + 66 + - col2 - - col0 col2 FROM tab1 WHERE NOT + 97 IS NOT NULL @@ -28504,8 +28795,12 @@ 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\(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\. +query III valuesort SELECT COUNT ( * ), SUM ( ALL - + col2 ) * + 77 AS col0, COUNT ( * ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL +---- +-9317 +3 +3 query II rowsort SELECT + col0, 40 FROM tab2 cor0 @@ -29072,8 +29367,15 @@ SELECT - 42 col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col0, + col0 col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-4810 SELECT + col2 / - 80 AS col1 FROM tab0 AS cor0 @@ -32639,8 +32941,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 16 AS col1, COUNT ( * ) * 51 AS col1 FROM tab1 AS cor0 +---- +153 +16 query II rowsort label-5409 SELECT COUNT ( * ) AS col0, - COUNT ( * ) AS col2 FROM tab0 @@ -32900,8 +33205,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 / - col0 IS NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 col0, + col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query II rowsort label-5452 SELECT + 12 * CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ), col0 AS col2 FROM tab1 AS cor0 @@ -33261,8 +33573,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MIN ( DISTINCT - 31 ) AS col1, COUNT ( * ) * + - 36 AS col1 FROM tab1 AS cor0 +---- +-108 +-31 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 53 * + - ( - col0 ) + + col0 = - - col0 * ( + - col0 ) - + col0 @@ -34031,8 +34346,15 @@ SELECT ALL - col1 * ( - + col2 ) FROM tab0 # Datafusion - Expected - 4 # Datafusion - Expected - 1096 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ Int64\(62\) \* Int64\(15\) \+ Int64\(75\) AS col1" at position 0 and "Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 + + 62 * ( + 15 ) + + + 75 AS col1, + 4 col1 FROM tab1 AS cor0 +---- +1056 +1090 +1096 +4 +4 +4 query I rowsort label-5631 SELECT DISTINCT + 45 + - 86 / - + 31 AS col0 FROM tab0 AS cor0 @@ -34042,14 +34364,20 @@ SELECT DISTINCT + 45 + - 86 / - + 31 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "sum\(DISTINCT cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 AS col2, SUM ( DISTINCT + + col1 ) AS col2 FROM tab1 AS cor0 +---- +12 +66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(41\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, 41 + COUNT ( * ) col2 FROM tab2 AS cor0 WHERE + 0 IS NOT NULL +---- +3 +44 query I rowsort label-5634 SELECT CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 cor0 @@ -34633,8 +34961,15 @@ SELECT - - 36 / + 43 FROM tab1 AS cor0 # Datafusion - Expected - 2000 # Datafusion - Expected - NULL # Datafusion - Expected - 2900 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "cor0\.col2 \* Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col0, + col2 * 50 col0 FROM tab2 AS cor0 +---- +1150 +2000 +2900 +NULL +NULL +NULL query I rowsort SELECT DISTINCT + ( 54 ) AS col0 FROM tab0 AS cor0 @@ -34648,8 +34983,15 @@ SELECT DISTINCT + ( 54 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -37 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(37\)\) AS col2" at position 0 and "\(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 37 ) AS col2, - col2 AS col2 FROM tab0 +---- +-10 +-37 +-37 +-37 +-47 +-99 query I rowsort label-5736 SELECT ALL MIN ( + 26 ) AS col0 FROM tab2 @@ -34899,8 +35241,15 @@ SELECT DISTINCT - COUNT ( * ) / + 68 + + ( - 59 ) + COUNT ( * ) col1 FROM tab1 A # Datafusion - Expected - 43 # Datafusion - Expected - -5 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \+ \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 18 + - col2 AS col1, 43 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 * col0 >= - 91 +---- +-22 +-40 +-5 +43 +43 +43 query IIIIII rowsort label-5782 SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL @@ -35010,8 +35359,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5130 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- Int64\(95\)\)\)\) \* Int64\(\-54\) 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 II valuesort SELECT DISTINCT - ( + MAX ( ALL - ( 95 ) ) ) * - 54 AS col2, MIN ( + 20 ) AS col2 FROM tab2 +---- +-5130 +20 query I rowsort SELECT ALL - 0 * - - 61 * - - 46 col0 FROM tab0 @@ -35044,8 +35396,15 @@ SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 5 # Datafusion - Expected - -99 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, 5 col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +5 +5 +5 query I rowsort SELECT ALL col0 * - - col2 + + + col1 FROM tab0 AS cor0 @@ -37686,8 +38045,15 @@ SELECT DISTINCT + + col2 - - - col1 FROM tab0 AS cor0 # Datafusion - Expected - -26 # Datafusion - Expected - 98 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col1" at position 0 and "Int64\(\-27\) \+ Int64\(64\) / cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 AS col1, - 27 + 64 / col2 AS col1 FROM tab0 AS cor0 +---- +-21 +-26 +-27 +98 +98 +98 query II rowsort label-6242 SELECT ALL - COUNT ( * ), 30 * - COUNT ( * ) AS col1 FROM tab0 AS cor0 @@ -37899,8 +38265,11 @@ SELECT ALL - 13 * + + 95 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col2" at position 0 and "min\(DISTINCT Int64\(78\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 61 AS col2, MIN ( DISTINCT + + 78 ) AS col2 FROM tab2 +---- +-61 +78 query III rowsort SELECT * FROM tab0 WHERE NOT ( 46 ) IS NOT NULL @@ -38498,8 +38867,15 @@ SELECT + 30 - - + 50 FROM tab0 AS cor0 # Datafusion - Expected - 22 # Datafusion - Expected - -89 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT - 89 AS col1, 22 AS col1 FROM tab2 cor0 WHERE NULL IS NULL +---- +-89 +-89 +-89 +22 +22 +22 query I rowsort SELECT DISTINCT + + 94 * - 84 FROM tab2 AS cor0 @@ -40054,8 +40430,11 @@ SELECT - col1 + - + 72 AS col0 FROM tab2 WHERE NOT 70 <> 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 126 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "\(\- sum\(\(\- Int64\(42\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 AS col2, - SUM ( ALL - + 42 ) AS col2 FROM tab2 +---- +11 +126 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3031 @@ -40064,8 +40443,15 @@ SELECT 11 AS col2, - SUM ( ALL - + 42 ) AS col2 FROM tab2 # Datafusion - Expected - 1 # Datafusion - Expected - -4958 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ Int64\(\-67\) \* cor0\.col0 AS col0" at position 0 and "Int64\(56\) / cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + - 67 * col0 AS col0, ( + 56 ) / col2 AS col0 FROM tab2 AS cor0 +---- +-3031 +-4211 +-4958 +0 +1 +2 query I rowsort label-6633 SELECT COUNT ( * ) - + + ( - + COUNT ( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 @@ -40147,8 +40533,11 @@ SELECT + col1 / + + 78 * 25 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, - 85 AS col1 FROM tab1 +---- +-85 +3 query II rowsort SELECT - - col0 AS col0, 19 AS col1 FROM tab1 AS cor0 @@ -40753,8 +41142,15 @@ SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) BETWEEN NU # Datafusion - Expected - 32 # Datafusion - Expected - 47 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \+ Int64\(46\) AS col2" at position 0 and "Int64\(18\) \+ cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 1 + + 46 AS col2, + 18 + + col1 AS col2 FROM tab1 AS cor0 +---- +23 +32 +47 +47 +47 +65 query I rowsort SELECT col2 * - 35 + 10 AS col2 FROM tab0 cor0 @@ -40801,8 +41197,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(tab1\.col1\) AS col0" at position 0 and "Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MAX ( ( col1 ) ) AS col0, - 92 AS col0 FROM tab1 +---- +-92 +47 query I rowsort SELECT ALL + 17 + - + col0 FROM tab1 cor0 @@ -41001,8 +41400,11 @@ SELECT DISTINCT - col1 + + + col0 + - 29 * - col0 * 99 * + col1 AS col1 FROM tab # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(DISTINCT Int64\(2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 64 + + + CAST ( NULL AS INTEGER ) AS col0, COUNT ( DISTINCT + + 2 ) AS col0 FROM tab0 AS cor0 +---- +1 +NULL query I rowsort SELECT DISTINCT - - col2 FROM tab0 AS cor0 WHERE NOT NULL > + col1 @@ -42344,8 +42746,11 @@ SELECT ALL 3 col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 8 - - + col0 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col0, - 60 AS col0 FROM tab2 cor0 +---- +-60 +3 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL OR col0 IS NULL @@ -42544,8 +42949,11 @@ SELECT MAX ( DISTINCT - col0 ) * - + 68 * - COUNT ( * ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col0" at position 0 and "max\(Int64\(8\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 43 AS col0, + MAX ( ALL 8 ) col0 FROM tab0 cor0 +---- +43 +8 query I rowsort label-7054 SELECT - col2 / + col0 col1 FROM tab2 AS cor0 @@ -43208,8 +43616,9 @@ SELECT ALL - 34 * - + col0 FROM tab0 510 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, col0 col2 FROM tab2 WHERE NOT + col0 * - col1 IS NOT NULL +---- query I rowsort label-7167 SELECT ALL SUM ( DISTINCT - col2 ) * - COUNT ( DISTINCT - 49 ) AS col2 FROM tab0 @@ -44401,8 +44810,15 @@ SELECT ALL * FROM tab1 WHERE NOT ( NOT + col2 IS NULL ) # Datafusion - Expected - -1 # Datafusion - Expected - 91 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ Int64\(0\) AS col1" at position 0 and "tab1\.col2 / \(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( col0 ) + 0 AS col1, + col2 / - col2 AS col1 FROM tab1 +---- +-1 +-1 +-1 +51 +85 +91 query I rowsort SELECT - + 12 / + + 87 AS col0 FROM tab1 WHERE NOT ( NOT ( NOT + + col1 + ( + - 2 ) BETWEEN - + ( + 35 ) AND col0 * + col2 ) ) @@ -44547,8 +44963,15 @@ SELECT DISTINCT + 7 + - 13 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 99 # Datafusion - Expected - 73091 # Datafusion - Expected - 210 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \* Int64\(47\) \* tab0\.col1 \+ tab0\.col2 \+ Int64\(43\) AS col2" at position 0 and "tab0\.col1 \* tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 74 * + 47 * col1 + + col2 + + 43 AS col2, col1 * + col2 AS col2 FROM tab0 +---- +210 +281808 +3620 +3807 +73091 +99 query I rowsort label-7384 SELECT SUM ( DISTINCT - col0 ) + - COUNT ( ALL col1 ) FROM tab1 @@ -45275,8 +45698,15 @@ SELECT + - 32 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - -140 # Datafusion - Expected - -6 # Datafusion - Expected - -1316 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \+ cor0\.col1 AS col1" at position 0 and "\(\- cor0\.col1\) \* Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 53 ) + col1 AS col1, - col1 * + 28 AS col1 FROM tab1 AS cor0 +---- +-1316 +-140 +-39 +-392 +-48 +-6 query I rowsort SELECT - col0 + - 33 FROM tab0 AS cor0 @@ -45567,8 +45997,15 @@ SELECT ALL - + col1 * + col0 * col2 * col0 AS col2, - col2 FROM tab0 cor0 # Datafusion - Expected - 43 # Datafusion - Expected - 97 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col0 AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * + col0 AS col0, + 43 AS col0 FROM tab0 cor0 +---- +1215 +1827 +43 +43 +43 +97 query I rowsort label-7550 SELECT DISTINCT - 96 / + 89 + col1 * + col1 FROM tab2 AS cor0 @@ -45632,8 +46069,15 @@ SELECT - COUNT ( * ) - - + 53 AS col2 FROM tab0 # Datafusion - Expected - 6303 # Datafusion - Expected - 85 # Datafusion - Expected - 8846 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \- Int64\(38\) \+ Int64\(27\) AS col2" at position 0 and "Int64\(\-92\) \* \(\- tab1\.col2\) \+ tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 - + 38 + + + 27 AS col2, - 92 * - col2 + + col1 AS col2 FROM tab1 +---- +48 +5433 +57 +6303 +85 +8846 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 @@ -45840,8 +46284,15 @@ SELECT ALL - 28 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - 98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \* Int64\(86\) / \(\- tab2\.col0\) AS col1" at position 0 and "Int64\(21\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 86 * 86 / + ( - col0 ) AS col1, 21 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 +---- +115 +160 +98 +NULL +NULL +NULL query III rowsort SELECT * FROM tab0 WHERE NOT + 70 BETWEEN NULL AND col2 @@ -46154,8 +46605,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(\-13\) \- Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( ( + + 60 ) ) AS col2, COUNT ( * ) / - 13 - 81 AS col2 FROM tab1 AS cor0 +---- +-60 +-81 query I rowsort SELECT - col2 * + + 15 col1 FROM tab0 @@ -46751,8 +47205,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - -80 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- \(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + col1 ) - - - col0 col2, + col1 col2 FROM tab1 cor0 +---- +-37 +-44 +-80 +14 +47 +5 query I rowsort label-7734 SELECT + COUNT ( * ) * 72 FROM tab2 @@ -48180,8 +48641,15 @@ SELECT DISTINCT 34 * - - col1 FROM tab2 # Datafusion - Expected - 35 # Datafusion - Expected - -99 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(36\) \+ \(\- cor0\.col0\) / cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col1, + 36 + - col0 / col0 AS col1 FROM tab0 cor0 +---- +-10 +-47 +-99 +35 +35 +35 query I rowsort SELECT ALL + 98 FROM tab2 AS cor0 WHERE - col1 IN ( 4 ) @@ -48599,8 +49067,15 @@ SELECT ( 87 ) * col1 + + 75 AS col2 FROM tab0 # Datafusion - Expected - 44 # Datafusion - Expected - 5 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 \+ \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col1 AS col2, col0 + - col1 AS col2 FROM tab1 AS cor0 +---- +14 +37 +44 +47 +5 +80 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN ( + col0 ) AND ( NULL ) @@ -48835,8 +49310,12 @@ SELECT ALL + 44 * - + col0 FROM tab2 # Datafusion - Expected - 89 # Datafusion - Expected - 69 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 89 AS col0, + MIN ( + 23 ) * + COUNT ( * ), 88 AS col0 FROM tab0 +---- +69 +88 +89 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -49221,8 +49700,15 @@ SELECT * FROM tab2 AS cor0 WHERE col2 >= col2 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT DISTINCT + 45 + - col1 - - col1 FROM tab0 @@ -49471,8 +49957,15 @@ SELECT DISTINCT + col2 * - - col1, col0 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -34 # Datafusion - Expected - 9 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "Int64\(\-74\) \+ \(\- \(\- tab2\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 9 AS col1, - 74 + - - col2 AS col1 FROM tab2 +---- +-16 +-34 +-51 +9 +9 +9 query III rowsort SELECT * FROM tab1 WHERE NOT + + 65 / + col1 * 31 IS NOT NULL @@ -49917,8 +50410,15 @@ SELECT SUM ( + + 44 ) AS col1 FROM tab1 # Datafusion - Expected - 77 # Datafusion - Expected - -58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col0, col1 col0 FROM tab2 +---- +-23 +-40 +-58 +51 +67 +77 query I rowsort SELECT DISTINCT ( - 50 ) + col1 FROM tab2 @@ -49934,8 +50434,15 @@ SELECT DISTINCT ( - 50 ) + col1 FROM tab2 # Datafusion - Expected - 72 # Datafusion - Expected - -1575 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \* tab1\.col1 \* \(\- \(\- tab1\.col1\)\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 63 * + col1 * - ( - col1 ) AS col0, + ( + 72 ) AS col0 FROM tab1 +---- +-12348 +-139167 +-1575 +72 +72 +72 query III rowsort label-8254 SELECT ALL * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) > NULL @@ -50099,8 +50606,11 @@ SELECT ALL - COUNT ( * ) * + MIN ( + 20 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -507 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* min\(DISTINCT Int64\(56\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-35\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) * MIN ( DISTINCT 56 ) * COUNT ( * ) - COUNT ( * ) AS col1, - 35 / + COUNT ( * ) AS col1 FROM tab0 +---- +-11 +-507 query I rowsort SELECT DISTINCT - 18 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 @@ -51780,8 +52290,15 @@ SELECT DISTINCT + - col2 FROM tab0 AS cor0 WHERE 89 IS NOT NULL # Datafusion - Expected - 4928 # Datafusion - Expected - -3480 # Datafusion - Expected - 5025 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* \(\- tab2\.col1\) \+ Int64\(\-7\) \* \(\- tab2\.col2\) AS col1" at position 0 and "tab2\.col0 \* \(\- \(\- tab2\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * - col1 + - 7 * - col2 AS col1, col0 * - - col1 AS col1 FROM tab2 +---- +-1012 +-2800 +-3480 +2346 +4928 +5025 query I rowsort label-8559 SELECT col1 / - 28 + - ( - - col2 ) AS col1 FROM tab1 @@ -52755,8 +53272,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 40 ) >= 65 * - 80 # Datafusion - Expected - 11 # Datafusion - Expected - -5 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col1 AS col2, + 11 AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +11 +11 +11 query I rowsort label-8718 SELECT - COUNT ( ALL 8 ) FROM tab1 cor0 @@ -53198,8 +53722,15 @@ SELECT * FROM tab0 WHERE - + col2 <> - + col1 # Datafusion - Expected - 81 # Datafusion - Expected - 99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 / tab0\.col1 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 / col1 AS col0, col1 col0 FROM tab0 +---- +0 +0 +1 +21 +81 +99 query I rowsort SELECT col2 * + - 10 col2 FROM tab0 @@ -53300,8 +53831,15 @@ SELECT + ( + 15 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -289304 # Datafusion - Expected - 17 # Datafusion - Expected - -45494 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "cor0\.col2 \* Int64\(\-86\) \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 AS col0, col2 * - 86 * ( col2 ) AS col0 FROM tab2 cor0 +---- +-137600 +-289304 +-45494 +17 +17 +17 query I rowsort label-8805 SELECT - MAX ( ALL + col0 ) + COUNT ( * ) AS col2 FROM tab0 AS cor0 @@ -53406,8 +53944,9 @@ SELECT * FROM tab1 AS cor0 WHERE - ( 51 ) * + + CAST ( NULL AS FLOAT8 ) / + 85 * ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \- \(\- \(\- Int64\(\-7\)\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 24 - - - ( - 7 ) AS col1, col2 col1 FROM tab1 AS cor0 WHERE NULL > col2 +---- query I rowsort SELECT ALL - 1 * col2 AS col2 FROM tab0 AS cor0 @@ -53910,8 +54449,15 @@ SELECT DISTINCT + 55, - col0 FROM tab1 WHERE + col2 IS NULL # Datafusion - Expected - -87 # Datafusion - Expected - 81 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, - col0 col2 FROM tab0 +---- +-15 +-87 +-97 +1 +21 +81 query I rowsort label-8910 SELECT DISTINCT MIN ( + - CAST ( NULL AS INTEGER ) ) FROM tab1 @@ -54339,8 +54885,11 @@ SELECT ALL + CAST ( ( - col1 ) AS INTEGER ) * - col0 col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 AS col2, COUNT ( * ) col2 FROM tab0 AS cor0 +---- +21 +3 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE ( + 65 < 93 ) @@ -54428,8 +54977,11 @@ SELECT DISTINCT - 16 + - col1 AS col0 FROM tab1 # 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 "Int64\(19\) AS col1" at position 0 and "Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 19 AS col1, + 77 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 +---- +19 +77 query I rowsort SELECT - + 88 AS col0 FROM tab2 cor0 @@ -54776,8 +55328,15 @@ SELECT col0 AS col2, col1 AS col1 FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - 5 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, 64 AS col2 FROM tab1 AS cor0 +---- +14 +47 +5 +64 +64 +64 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 @@ -54786,8 +55345,15 @@ SELECT ALL + col1 AS col2, 64 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1, - col1 FROM tab1 cor0 +---- +-14 +-14 +-47 +-47 +-5 +-5 query I rowsort label-9050 SELECT + MIN ( - CAST ( col1 AS INTEGER ) ) AS col2 FROM tab2 AS cor0 @@ -54928,8 +55494,15 @@ SELECT col2 + 7 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL # Datafusion - Expected - 67 # Datafusion - Expected - 45 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-45\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 45 AS col2, col1 col2 FROM tab2 AS cor0 +---- +45 +45 +45 +51 +67 +77 query I rowsort label-9070 SELECT + 66 / + + 37 FROM tab1 AS cor0 @@ -55290,8 +55863,15 @@ SELECT ALL col2 FROM tab0 WHERE NOT col1 * + col0 IS NULL # Datafusion - Expected - 2240 # Datafusion - Expected - -58 # Datafusion - Expected - 2625 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col1" at position 0 and "\(\- tab2\.col0\) \* Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col1, - col0 * - 35 AS col1 FROM tab2 +---- +-23 +-40 +-58 +1610 +2240 +2625 query III rowsort SELECT * FROM tab2 WHERE NOT - 2 IS NOT NULL @@ -56879,8 +57459,15 @@ SELECT - SUM ( ALL ( + col0 ) ) * + 91 + - + MIN ( ALL + col2 ) FROM tab0 # Datafusion - Expected - 96 # Datafusion - Expected - -93 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 93 AS col0, 96 AS col0 FROM tab2 AS cor0 +---- +-93 +-93 +-93 +96 +96 +96 query I rowsort SELECT + - 50 * + - 79 * col2 FROM tab2 AS cor0 @@ -58270,8 +58857,15 @@ SELECT - + COUNT ( * ) / - CAST ( MAX ( ALL + col2 ) AS INTEGER ) * - - 9 + + 56 # Datafusion - Expected - 81 # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Float64\) AS Float64\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL CAST ( + CAST ( NULL AS FLOAT8 ) AS FLOAT8 ) AS col1, 81 AS col1 FROM tab2 AS cor0 +---- +81 +81 +81 +NULL +NULL +NULL query II rowsort label-9618 SELECT DISTINCT - CAST ( NULL AS INTEGER ), - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT - 8 < 46 + + + col2 @@ -58291,8 +58885,15 @@ SELECT - MAX ( 16 ) FROM tab1 # Datafusion - Expected - 11 # Datafusion - Expected - 96 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, 11 AS col0 FROM tab1 AS cor0 +---- +11 +11 +11 +59 +68 +96 query I rowsort label-9621 SELECT DISTINCT - ( MAX ( ALL + 57 ) ) AS col0 FROM tab0 AS cor0 WHERE col2 * + col0 IS NULL @@ -58322,8 +58923,15 @@ SELECT DISTINCT + MAX ( + + CAST ( + - col0 AS INTEGER ) ) AS col2 FROM tab1 AS # Datafusion - Expected - 54 # Datafusion - Expected - NULL # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-52\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) * - 52 AS col1, 54 AS col1 FROM tab1 +---- +54 +54 +54 +NULL +NULL +NULL query I rowsort label-9626 SELECT ALL SUM ( ALL - col2 ) AS col0 FROM tab2 @@ -58380,8 +58988,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT ( - col1 * + col2 IS NOT NULL ) # Datafusion - Expected - -40 # Datafusion - Expected - -9 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \+ \(\- cor0\.col1\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col2 + - col1 AS col2, - ( col2 ) AS col2 FROM tab2 AS cor0 +---- +-23 +-28 +-37 +-40 +-58 +-9 query III rowsort SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( NULL ) diff --git a/data/sqlite/random/aggregates/slt_good_11.slt b/data/sqlite/random/aggregates/slt_good_11.slt index 4d8cfe6..8fa2472 100644 --- a/data/sqlite/random/aggregates/slt_good_11.slt +++ b/data/sqlite/random/aggregates/slt_good_11.slt @@ -1123,8 +1123,11 @@ SELECT ALL 86, - col0 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, 88 AS col0 FROM tab0 AS cor0 +---- +3 +88 query I rowsort SELECT - 34 + 45 AS col1 FROM tab2 @@ -2169,8 +2172,11 @@ SELECT col2 * 8 / col1 * + + 47 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\(DISTINCT \(\- cor0\.col1\)\) 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 II valuesort SELECT ALL + + COUNT ( DISTINCT - col1 ) AS col2, - COUNT ( ALL + col2 ) AS col2 FROM tab0 AS cor0 +---- +-3 +3 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -2382,8 +2388,11 @@ SELECT + 13 * + - MAX ( + + 53 ) AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(36\)\)\) AS col1" at position 0 and "Int64\(\-54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( DISTINCT + 36 ) AS col1, ( - 54 ) AS col1 FROM tab0 +---- +-36 +-54 query I rowsort SELECT + - 28 AS col0 FROM tab2 cor0 @@ -2965,8 +2974,10 @@ SELECT DISTINCT - 44, - MAX ( - 36 ) col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to ec4f42d435da796982ac27e850793ca2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- cor0\.col0 \* \(\- cor0\.col2\) AS col0" at position 1 and "Int64\(\-8\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col0 col1, col0 - col0 * - col2 AS col0, + - 8 AS col0 FROM tab1 AS cor0 WHERE col0 * + + 8 NOT IN ( + 21, + col2 ) +---- +9 values hashing to a5e2efad110e1c38c16f4221aabc1166 query I rowsort SELECT col1 * - col1 - + 2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL @@ -3283,8 +3294,15 @@ SELECT + ( col0 ) * col1 + - + col0 FROM tab1 # Datafusion - Expected - -64 # Datafusion - Expected - -75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "\(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, - col0 AS col2 FROM tab2 +---- +-46 +-46 +-64 +-64 +-75 +-75 query III rowsort SELECT * FROM tab1 WHERE NOT ( - 65 ) IN ( + col0 ) @@ -4137,8 +4155,11 @@ SELECT ALL + col0 + 55 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col1, + COUNT ( * ) AS col1 FROM tab0 cor0 +---- +-3 +3 query II rowsort SELECT DISTINCT + - ( - col0 ) AS col2, + col1 - - col2 FROM tab0 AS cor0 @@ -4187,8 +4208,15 @@ SELECT col0, - col2 * - col0 AS col0 FROM tab2 # Datafusion - Expected - 2 # Datafusion - Expected - 81 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, 2 col2 FROM tab0 +---- +1 +2 +2 +2 +21 +81 query II rowsort SELECT 25, - col2 AS col1 FROM tab2 AS cor0 @@ -4429,8 +4457,15 @@ SELECT 50 * - 18 * + + SUM ( DISTINCT 51 ) FROM tab2 AS cor0 # Datafusion - Expected - 44 # Datafusion - Expected - -713 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* \(\- cor0\.col2\) AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 31 * - + col2 AS col2, + 44 col2 FROM tab2 AS cor0 +---- +-1240 +-1798 +-713 +44 +44 +44 query I rowsort SELECT 40 FROM tab0 WHERE NULL > + col2 @@ -5152,8 +5187,11 @@ SELECT DISTINCT ( - SUM ( DISTINCT + col1 ) ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 11 AS col0, COUNT ( * ) AS col0 FROM tab0 +---- +-11 +3 query I rowsort SELECT ALL - col0 + + col0 col1 FROM tab1 @@ -5177,8 +5215,15 @@ SELECT ALL * FROM tab0 WHERE NOT - + col1 BETWEEN NULL AND col1 * + 93 + + col1 # Datafusion - Expected - 64 # Datafusion - Expected - -57 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 57 AS col2, col0 AS col2 FROM tab2 +---- +-57 +-57 +-57 +46 +64 +75 query I rowsort SELECT + 6 * + - col1 AS col2 FROM tab0 @@ -5378,8 +5423,15 @@ SELECT + col0 + - - col2 AS col0 FROM tab0 # Datafusion - Expected - 263 # Datafusion - Expected - 5 # Datafusion - Expected - 206 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "Int64\(57\) \+ cor0\.col2 \+ cor0\.col0 \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 AS col0, + 57 + col2 + + col0 + col1 AS col0 FROM tab1 AS cor0 +---- +14 +206 +218 +263 +47 +5 query I rowsort SELECT + col0 - + col0 + col0 AS col0 FROM tab1 AS cor0 @@ -6023,8 +6075,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 8 AS col0, - COUNT ( * ) col0 FROM tab1 +---- +-3 +-8 query I rowsort SELECT DISTINCT 39 * + ( col2 ) * + + 38 AS col1 FROM tab0 @@ -7966,8 +8021,11 @@ SELECT DISTINCT * FROM tab2 WHERE col2 * + col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -185 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- cor0\.col0\)\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( - + col0 ) AS col2, + 21 AS col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL +---- +-185 +21 query I rowsort SELECT ALL col1 col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( 2 / col0, col1, - + col1 - - col0 ) @@ -8345,8 +8403,9 @@ SELECT + - 0 / + col0 + - 16 col1 FROM tab1 cor0 -16 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- cor0\.col0\) \* \(\- cor0\.col1\) \+ \(\- Int64\(\-91\)\) \* \(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col2\) \+ Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + col0 ) + - col0 * - ( col1 ) + - - 91 * - col1 AS col1, - col2 + + + 18 col1 FROM tab2 AS cor0 WHERE col0 * col2 + + + 31 * - + col1 - ( ( + + CAST ( NULL AS INTEGER ) ) ) IS NOT NULL +---- query I rowsort SELECT col2 + - 86 - - col0 FROM tab2 @@ -8637,8 +8696,15 @@ SELECT SUM ( DISTINCT - col0 ) AS col1 FROM tab0 cor0 # Datafusion - Expected - 35 # Datafusion - Expected - 680 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* tab0\.col2 AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 * col2 col1, + 35 AS col1 FROM tab0 +---- +3196 +35 +35 +35 +6732 +680 query I rowsort label-1401 SELECT DISTINCT col1 * + ( - col2 ) / + col2 + - + col0 AS col2 FROM tab0 @@ -8888,8 +8954,15 @@ SELECT COUNT ( * ) / - + 22 FROM tab0 # Datafusion - Expected - -85 # Datafusion - Expected - 94 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col1" at position 0 and "\(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 AS col1, - col0 AS col1 FROM tab1 +---- +-51 +-85 +-91 +94 +94 +94 query I rowsort SELECT ALL - + col1 - + col2 AS col1 FROM tab2 AS cor0 @@ -9064,8 +9137,11 @@ SELECT + - col2 - + col0 * - - 13 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -135 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 45 * + ( COUNT ( * ) ) AS col0, + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) col0 FROM tab2 +---- +-135 +NULL query I rowsort label-1471 SELECT - 34 / + col1 + - + col0 + + col2 FROM tab2 WHERE ( + col1 ) IS NOT NULL @@ -10452,8 +10528,15 @@ SELECT ALL * FROM tab1 cor0 WHERE - 91 + 1 IN ( + col1 ) # Datafusion - Expected - 2610 # Datafusion - Expected - 81 # Datafusion - Expected - 450 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "Int64\(30\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col1 col0, 30 * + + ( ( col0 ) ) AS col0 FROM tab0 AS cor0 +---- +1 +21 +2610 +2910 +450 +81 query I rowsort SELECT ALL col1 + - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 ) @@ -10580,8 +10663,15 @@ SELECT ALL + 35 / col2 - + col0 AS col0 FROM tab2 cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 97 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, 64 AS col1 FROM tab0 +---- +15 +64 +64 +64 +87 +97 query I rowsort SELECT ALL + 63 + - col0 + + - 15 * + col1 AS col0 FROM tab0 AS cor0 @@ -11737,8 +11827,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - COUNT ( * ) AS col0, - 59 * - 81 / - + COUNT ( * ) AS col1, - - COUNT ( * ) col1 FROM tab1 +---- +-1593 +-3 +3 query II rowsort label-1922 SELECT + COUNT ( * ) AS col0, - 98 FROM tab2 @@ -12019,8 +12113,12 @@ SELECT DISTINCT 76 col2 FROM tab1 # Datafusion - Expected - 10 # Datafusion - Expected - -52 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(cor0\.col2\) AS col0" at position 0 and "min\(\(\- Int64\(52\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT MIN ( col2 ) AS col0, + MIN ( - ( 52 ) ) AS col0, 48 AS col0 FROM tab0 cor0 +---- +-52 +10 +48 query I rowsort SELECT ALL + 20 + + col2 FROM tab1 AS cor0 @@ -12538,8 +12636,15 @@ SELECT + 26 * - 94 * - 64 FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 col0, col2 AS col0 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-2054 SELECT DISTINCT + MIN ( ALL - + 41 ) FROM tab2 @@ -13445,8 +13550,11 @@ 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\(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\. +query II valuesort SELECT ALL - - COUNT ( * ) * + 81 AS col2, - 1 AS col2 FROM tab2 AS cor0 +---- +-1 +243 query I rowsort label-2206 SELECT DISTINCT - + 74 - COUNT ( * ) FROM tab2 cor0 @@ -13998,8 +14106,15 @@ SELECT + 79 * + + COUNT ( * ) + 51 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -110 # Datafusion - Expected - 82 # Datafusion - Expected - -517 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "Int64\(11\) \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 82 col2, 11 * - col2 AS col2 FROM tab0 AS cor0 +---- +-1089 +-110 +-517 +82 +82 +82 query I rowsort label-2297 SELECT - - 22 / 69 + SUM ( + 34 ) AS col1 FROM tab2 cor0 @@ -14534,8 +14649,15 @@ SELECT DISTINCT col0 AS col1, - col2 + + col2 FROM tab2 AS cor0 # Datafusion - Expected - -156 # Datafusion - Expected - -5 # Datafusion - Expected - -150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col0\) \+ Int64\(\-65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, - col0 + + - 65 AS col1 FROM tab1 cor0 +---- +-116 +-14 +-150 +-156 +-47 +-5 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 81 + - col1 + - + col0 + + - col1, - 27 ) @@ -15157,14 +15279,24 @@ SELECT DISTINCT - - col0 / + + col0 AS col1, col1 * + + 65 AS col2 FROM tab2 AS # Datafusion - Expected - 23 # Datafusion - Expected - 90 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ CAST\(\(\- Int64\(\-23\)\) AS Int32\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 + CAST ( - - 23 AS INTEGER ) AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +100 +23 +40 +58 +74 +90 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- max\(DISTINCT cor0\.col1\)\) AS Int32\)\)\) AS col2" at position 0 and "\(\- count\(DISTINCT Int64\(93\)\)\) \* \(\- CAST\(\(\- min\(DISTINCT cor0\.col1\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - CAST ( - MAX ( DISTINCT col1 ) AS INTEGER ) AS col2, - COUNT ( DISTINCT 93 ) * - CAST ( - MIN ( DISTINCT + col1 ) AS INTEGER ) AS col2 FROM tab2 AS cor0 +---- +-51 +-77 query II rowsort label-2485 SELECT + - col0 / - ( + 91 ) + + col0 AS col1, col2 col0 FROM tab1 AS cor0 @@ -16801,8 +16933,15 @@ SELECT + - MAX ( + 48 ) AS col0 FROM tab2 cor0 # Datafusion - Expected - 75669 # Datafusion - Expected - 97 # Datafusion - Expected - 931490 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col0 \* tab0\.col0 \* tab0\.col2 \+ \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, + col0 * + col0 * col2 + - col1 AS col2 FROM tab0 +---- +10494 +15 +75669 +87 +931490 +97 query I rowsort label-2754 SELECT 48 + CAST ( NULL AS INTEGER ) * - SUM ( - col0 ) AS col0 FROM tab2 @@ -16875,8 +17014,11 @@ SELECT + + ( 15 ) AS col0 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +3 +67 query I rowsort SELECT + 57 * + col0 * + col1 FROM tab2 AS cor0 @@ -17132,8 +17274,15 @@ SELECT + + 35 FROM tab0 WHERE NOT NULL IS NULL # Datafusion - Expected - -15 # Datafusion - Expected - 99 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 AS col0, + ( - col0 ) AS col0 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +10 +47 +99 query I rowsort label-2810 SELECT ALL - + 65 * - - 36 + 95 * - CAST ( + col2 AS INTEGER ) FROM tab1 cor0 @@ -17185,8 +17334,15 @@ SELECT DISTINCT + - COUNT ( * ) * - 42 / + - 2 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -97 # Datafusion - Expected - 17 # Datafusion - Expected - -1827 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \+ \(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col0\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 27 + - col2 AS col0, - col0 * + col1 AS col0 FROM tab0 AS cor0 +---- +-1215 +-1827 +-20 +-72 +-97 +17 query I rowsort SELECT - 31 + + col2 * + col0 FROM tab1 AS cor0 @@ -17716,8 +17872,15 @@ SELECT col0 * - 40 FROM tab1 # Datafusion - Expected - 2400 # Datafusion - Expected - 65 # Datafusion - Expected - 3480 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "tab2\.col2 \* Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 AS col0, + col2 * 60 AS col0 FROM tab2 +---- +1380 +2400 +3480 +65 +65 +65 query I rowsort label-2904 SELECT ALL SUM ( - 42 ) * + COUNT ( * ) AS col2 FROM tab0 @@ -17887,8 +18050,15 @@ SELECT ALL SUM ( - 97 ) AS col2 FROM tab1 AS cor0 WHERE col1 + + + col2 IS NOT N # Datafusion - Expected - 23 # Datafusion - Expected - NULL # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "cor0\.col0 \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col1, col0 + + - col2 AS col1 FROM tab1 AS cor0 +---- +-45 +23 +26 +NULL +NULL +NULL query I rowsort SELECT DISTINCT - 99 + + + col2 AS col2 FROM tab1 AS cor0 @@ -18143,8 +18313,15 @@ SELECT DISTINCT 68 * + + col2 FROM tab2 WHERE + + 10 IS NULL # Datafusion - Expected - 49 # Datafusion - Expected - 62 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ Int64\(41\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 + + 41 AS col2, 49 col2 FROM tab0 +---- +122 +42 +49 +49 +49 +62 query I rowsort label-2971 SELECT ( MIN ( 71 ) ) col0 FROM tab1 @@ -18613,8 +18790,11 @@ SELECT ALL - 49 * + 84 FROM tab1 WHERE NOT - col1 NOT IN ( - col2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(tab1\.col1\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( ALL + col1 ) col2, + COUNT ( * ) col2 FROM tab1 +---- +-3 +3 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + - 24 * - 25 ) @@ -18735,8 +18915,10 @@ SELECT DISTINCT col1, + col0 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to 47fa575942f11af231f750582db09367 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 col0, 57 col0 FROM tab1, tab0 AS cor0 +---- +18 values hashing to 9f53afed3c2e2fe94f19fa7cac03a71c query I rowsort label-3073 SELECT 73 * - col0 / 66 * CAST ( NULL AS INTEGER ) * + col1 * - col2 FROM tab2 @@ -19003,8 +19185,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 82 AS col0, + COUNT ( * ) * - 87 col0 FROM tab2 AS cor0 +---- +-261 +82 query I rowsort SELECT DISTINCT 8 + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL @@ -19372,8 +19557,11 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 82 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(\-28\)\)\) AS col0" at position 0 and "\(\- Int64\(37\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - MAX ( - 28 ) AS col0, - ( + 37 ) AS col0 FROM tab2 AS cor0 +---- +-37 +28 query I rowsort SELECT ALL - col1 * col1 * col2 FROM tab2 AS cor0 @@ -19698,8 +19886,11 @@ SELECT ALL - + col0 / - + col0 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col1" at position 0 and "Int64\(\-31\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 61 AS col1, - 31 + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 <= NULL +---- +-31 +-61 query I rowsort SELECT + - col1 + + col2 FROM tab0 WHERE NOT ( NOT + 34 IS NOT NULL ) @@ -19995,8 +20186,15 @@ NULL # Datafusion - Expected - 64 # Datafusion - Expected - -58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, + col0 col1 FROM tab2 +---- +-23 +-40 +-58 +46 +64 +75 query I rowsort label-3274 SELECT ( col2 ) / col1 + + col0 FROM tab1 @@ -20350,8 +20548,11 @@ SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN + col2 A # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(35\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) * 35 + + COUNT ( * ) AS col1, + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 cor0 +---- +-3 +NULL query I rowsort SELECT DISTINCT 92 * + + col2 FROM tab0 AS cor0 @@ -23156,8 +23357,15 @@ SELECT - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT 38 * co # Datafusion - Expected - 61 # Datafusion - Expected - 9603 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* tab0\.col2 AS col0" at position 0 and "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 * + col2 AS col0, 61 AS col0 FROM tab0 +---- +61 +61 +61 +705 +870 +9603 query II rowsort SELECT DISTINCT 54 * + col0, + col2 FROM tab0 @@ -24297,8 +24505,15 @@ NULL # Datafusion - Expected - -1 # Datafusion - Expected - 42 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ tab0\.col1 AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 + col1 AS col0, - col1 AS col0 FROM tab0 +---- +-1 +-21 +-81 +162 +2 +42 query I rowsort SELECT ALL + 44 - 25 AS col1 FROM tab2 @@ -24359,8 +24574,15 @@ SELECT + 50 AS col1 FROM tab2, tab1 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Expected - 11 # Datafusion - Expected - 0 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 AS col0, 11 AS col0 FROM tab1 +---- +0 +0 +0 +11 +11 +11 query I rowsort SELECT DISTINCT + + col1 * - col2 AS col0 FROM tab0 WHERE NOT NULL <= - col2 / + + 68 + + col1 @@ -24817,8 +25039,11 @@ SELECT - - 21 * ( COUNT ( * ) ) * COUNT ( * ) AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-91\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 91 AS col0, COUNT ( * ) AS col0 FROM tab0 cor0 +---- +3 +91 query I rowsort label-4067 SELECT DISTINCT - + SUM ( ALL col1 ) FROM tab0 AS cor0 @@ -25870,8 +26095,15 @@ SELECT ALL + 38 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - -2209 # Datafusion - Expected - 96 # Datafusion - Expected - -196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "\(\- tab1\.col1\) \* tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, - col1 * + col1 AS col0 FROM tab1 +---- +-196 +-2209 +-25 +59 +68 +96 query II rowsort SELECT col0 AS col2, + 56 * - 23 AS col0 FROM tab1 @@ -26530,8 +26762,15 @@ SELECT - + MAX ( col0 ) * - 25 * - MIN ( + 27 ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -43 # Datafusion - Expected - NULL # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(\-25\) AS col0" at position 0 and "Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 * - - CAST ( NULL AS INTEGER ) + - 25 AS col0, - 43 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL +---- +-43 +-43 +-43 +NULL +NULL +NULL query I rowsort SELECT ALL + - 24 FROM tab0 cor0 WHERE 33 IS NOT NULL @@ -27685,8 +27924,15 @@ SELECT ALL - 53 - - COUNT ( * ) col0 FROM tab1 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - -56 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 56 col2, 85 AS col2 FROM tab0 AS cor0 +---- +-56 +-56 +-56 +85 +85 +85 query I rowsort label-4537 SELECT + ( - MAX ( - CAST ( 7 AS INTEGER ) ) ) / + 57 + - MAX ( + col0 ) FROM tab2 AS cor0 @@ -27882,8 +28128,15 @@ SELECT + col2 * - 92 + col0 * col1 + - + col1 FROM tab1 cor0 # Datafusion - Expected - -58 # Datafusion - Expected - 77 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col0, - col2 AS col0 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +51 +67 +77 query I rowsort label-4570 SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) + - COUNT ( * ) FROM tab1 @@ -27975,8 +28228,15 @@ SELECT + col1, 52 AS col0 FROM tab1 # Datafusion - Expected - -3807 # Datafusion - Expected - -99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col0" at position 0 and "tab0\.col1 \* \(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 col0, col1 * - + col2 AS col0 FROM tab0 +---- +-10 +-210 +-3807 +-47 +-99 +-99 query II rowsort label-4585 SELECT 37, - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 @@ -28185,8 +28445,15 @@ SELECT ( - MAX ( CAST ( col2 AS INTEGER ) ) ) * + 3 AS col0 FROM tab1 # Datafusion - Expected - -74 # Datafusion - Expected - 462 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* Int64\(6\) AS col2" at position 0 and "Int64\(\-55\) \+ Int64\(\-19\) \+ \(\- \(\- tab2\.col2\)\) / Int64\(\-69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + + 6 AS col2, - 55 + + - 19 + - - col2 / + - 69 AS col2 FROM tab2 +---- +-74 +-74 +-74 +306 +402 +462 query I rowsort SELECT col2 + 85 FROM tab1 WHERE NOT - - col1 IS NOT NULL @@ -28517,8 +28784,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) - + 97 + - 19 AS col0, + 70 col0 FROM tab2 AS cor0 +---- +-113 +70 query I rowsort SELECT ALL - + 15 - + col2 AS col0 FROM tab1 cor0 @@ -28620,8 +28890,15 @@ SELECT DISTINCT + col2 AS col2, 35 * - 90 FROM tab0 AS cor0 # Datafusion - Expected - -4 # Datafusion - Expected - -5032 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / cor0\.col2 \* Int64\(\-65\) \+ cor0\.col2 \+ cor0\.col1 \* \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col2 / col2 * + - 65 + + col2 + col1 * - col0 AS col2, - 4 AS col2 FROM tab2 AS cor0 WHERE NOT - ( + col1 ) IS NULL +---- +-2388 +-4 +-4 +-4 +-4953 +-5032 query III rowsort SELECT * FROM tab0 WHERE - col2 * - - col1 / + col2 > 69 @@ -28933,8 +29210,9 @@ SELECT * FROM tab2 AS cor0 WHERE 28 + col2 * 11 < - ( ( - col2 ) ) ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- tab0\.col1\) AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 * - col1 AS col1, + 50 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( + col0 ) +---- query I rowsort SELECT ALL 4 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 @@ -29445,8 +29723,15 @@ SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col2 + + col0 IS NULL # Datafusion - Expected - -20020 # Datafusion - Expected - -13 # Datafusion - Expected - -94094 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) AS col0" at position 0 and "Int64\(91\) \* Int64\(\-22\) \* tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 13 AS col0, + 91 * - 22 * + + col2 AS col0 FROM tab0 +---- +-13 +-13 +-13 +-198198 +-20020 +-94094 query I rowsort SELECT DISTINCT + col2 * - + ( - col0 ) + - + col1 * - - col0 FROM tab2 WHERE NOT NULL IS NULL @@ -30445,8 +30730,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT - col1 <= - col1 # Datafusion - Expected - 64 # Datafusion - Expected - -4275 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col0 \+ cor0\.col0 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col2 * col0 + + + col0 AS col2, ( + + col0 ) AS col2 FROM tab2 AS cor0 +---- +-1012 +-2496 +-4275 +46 +64 +75 query I rowsort label-4997 SELECT + SUM ( DISTINCT - + col2 ) FROM tab1 AS cor0 @@ -31476,8 +31768,15 @@ SELECT DISTINCT ( - 56 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -870 # Datafusion - Expected - -81 # Datafusion - Expected - -705 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, + col2 * - + col0 AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-705 +-81 +-870 +-9603 query I rowsort SELECT DISTINCT - col1 FROM tab1 WHERE - col2 > NULL @@ -31734,8 +32033,15 @@ SELECT DISTINCT - col0 AS col1 FROM tab2 cor0 WHERE NOT 74 IS NULL # Datafusion - Expected - 3996 # Datafusion - Expected - -5 # Datafusion - Expected - 3723 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 \- \(\- cor0\.col0\) \* Int64\(44\) \+ Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, + col2 - + - col0 * 44 + - 76 col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +2264 +3723 +3996 query I rowsort SELECT DISTINCT + col2 - + 73 FROM tab1 AS cor0 @@ -31934,8 +32240,15 @@ SELECT ALL - ( col2 ) / col0 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -225313 # Datafusion - Expected - 598 # Datafusion - Expected - -26933 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* cor0\.col2 AS col1" at position 0 and "cor0\.col0 \- cor0\.col2 \* cor0\.col2 \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 * + col2 col1, col0 - col2 * + + col2 * + col1 AS col1 FROM tab2 AS cor0 +---- +-123136 +-225313 +-26933 +1040 +1508 +598 query III rowsort label-5249 SELECT * FROM tab1 AS cor0 WHERE + 82 IN ( 70 + + 17, 84, - - col1 + - col2, + + CAST ( - + 88 AS FLOAT8 ), + 72, + col2 ) @@ -33002,8 +33315,11 @@ SELECT ALL * FROM tab1 WHERE NULL <= - - col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, - COUNT ( * ) col2 FROM tab1 cor0 +---- +-3 +3 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 + - col0 / + col0 < ( + - 72 ) @@ -33102,14 +33418,24 @@ SELECT - 74 * - + col2 AS col0 FROM tab1 # Datafusion - Expected - 68 # Datafusion - Expected - 49 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 49 AS col0, + col2 AS col0 FROM tab1 +---- +49 +49 +49 +59 +68 +96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2 +---- +3 +3 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + - col2 NOT BETWEEN - - col1 * - col2 AND NULL @@ -33276,8 +33602,15 @@ SELECT DISTINCT - 34 col1 FROM tab1 AS cor0 # Datafusion - Expected - -11 # Datafusion - Expected - 75 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "Int64\(53\) \+ \(\- cor0\.col0\) \+ \(\- cor0\.col2\) / Int64\(\-57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - ( col0 ) AS col0, + 53 + - col0 + - col2 / - 57 col0 FROM tab2 AS cor0 +---- +-11 +-21 +46 +64 +7 +75 query I rowsort label-5483 SELECT + - SUM ( col1 ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0 @@ -33432,8 +33765,15 @@ SELECT ALL + 86 * col2 FROM tab0 AS cor0 WHERE NOT 17 IS NULL # Datafusion - Expected - 16 # Datafusion - Expected - -99 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col2, 16 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +16 +16 +16 query I rowsort label-5507 SELECT ALL - - MIN ( DISTINCT + - 27 ) * + SUM ( col0 ) + + COUNT ( * ) FROM tab1 AS cor0 @@ -33694,8 +34034,15 @@ SELECT + 31 AS col2 FROM tab0 cor0 WHERE NOT - col1 / + col1 >= NULL # Datafusion - Expected - -18900 # Datafusion - Expected - 97 # Datafusion - Expected - -187110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(\-54\) \* cor0\.col2 \* Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col2, - 54 * + + col2 * + 35 AS col2 FROM tab0 AS cor0 +---- +-187110 +-18900 +-88830 +15 +87 +97 query I rowsort label-5549 SELECT 7 * + + MIN ( DISTINCT + col0 ) FROM tab1 cor0 @@ -34276,8 +34623,15 @@ SELECT + COUNT ( * ) / - 43 AS col2 FROM tab0 # Datafusion - Expected - -1 # Datafusion - Expected - 8820 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* \(\- tab0\.col2\) \* \(\- tab0\.col1\) AS col2" at position 0 and "\(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 * - col2 * - col1 AS col2, - col1 AS col2 FROM tab0 +---- +-1 +-21 +-81 +159894 +4158 +8820 query I rowsort SELECT DISTINCT + col0 + 38 * 75 + col0 FROM tab1 @@ -34665,8 +35019,15 @@ SELECT + COUNT ( * ), COUNT ( * ) AS col0 FROM tab2 WHERE + col2 IS NULL # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, col1 AS col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + 77 IN ( + col0 ) @@ -35083,8 +35444,15 @@ SELECT ALL - - COUNT ( DISTINCT + col2 ) FROM tab2 cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, col0 AS col2 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT ALL col1 + + 86 + + - 48 + col0 FROM tab1 @@ -35479,8 +35847,11 @@ SELECT ALL + col0 AS col0, + 55 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, - CAST ( + COUNT ( * ) AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab1 +---- +-3 +0 query I rowsort label-5843 SELECT ALL COUNT ( - - col1 ) FROM tab1 @@ -35609,8 +35980,11 @@ SELECT ALL + 99 * - SUM ( col0 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 45 AS col1, COUNT ( * ) AS col1 FROM tab1 +---- +3 +45 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * - col0 IS NOT NULL @@ -35623,8 +35997,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * - col0 IS NOT NULL # Datafusion - Expected - -472 # Datafusion - Expected - -91 # Datafusion - Expected - -544 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 \+ Int64\(\-9\) \* \(\- \(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, + col2 + - 9 * - - col2 col1 FROM tab1 AS cor0 +---- +-472 +-51 +-544 +-768 +-85 +-91 query I rowsort SELECT col0 * + ( - + 84 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> ( + 42 ) @@ -35699,8 +36080,15 @@ SELECT ALL + + ( - col2 ) / + col0 FROM tab0 AS cor0 # Datafusion - Expected - 51 # Datafusion - Expected - 89 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ Int64\(94\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + + 94 AS col2, col0 AS col2 FROM tab1 cor0 +---- +47 +51 +80 +85 +89 +91 query I rowsort SELECT + col1 + + + 93 * col2 FROM tab0 AS cor0 @@ -36151,8 +36539,15 @@ SELECT DISTINCT - - col2 * + col2 * + col2 + + col1 AS col0, + col1 - - + col0 A # Datafusion - Expected - -83 # Datafusion - Expected - -11 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col2" at position 0 and "Int64\(\-83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 11 AS col2, - 83 AS col2 FROM tab2 AS cor0 +---- +-11 +-11 +-11 +-83 +-83 +-83 query I rowsort label-5947 SELECT - - ( + + MIN ( ALL + ( - - CAST ( col0 AS INTEGER ) ) ) ) FROM tab0 AS cor0 @@ -36281,8 +36676,15 @@ SELECT DISTINCT + COUNT ( * ) * COUNT ( * ), + 96 AS col1 FROM tab1 # Datafusion - Expected - -73 # Datafusion - Expected - 64736 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* Int64\(14\) \* \(\- \(\- tab1\.col2\)\) AS col1" at position 0 and "Int64\(12\) \- tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 * + 14 * + - ( - col2 ) col1, 12 - + col0 AS col1 FROM tab1 +---- +-39 +-73 +-79 +129024 +48734 +64736 query I rowsort SELECT ALL + 5 col0 FROM tab2 @@ -36603,8 +37005,11 @@ SELECT col1 AS col1, + 61 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 298 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(42\)\) AS col2" at position 0 and "\(\- min\(DISTINCT \(\- cor0\.col2\)\)\) \+ sum\(cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 42 col2, - MIN ( DISTINCT - col2 ) + SUM ( + col0 ) AS col2 FROM tab0 AS cor0 +---- +-42 +298 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 < + 16 @@ -36754,8 +37159,15 @@ SELECT 60 * - ( COUNT ( * ) ) FROM tab0 # Datafusion - Expected - 40 # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(14\) AS Int32\) / Int64\(16\) \+ CAST\(NULL AS Int32\) \+ \(\- tab2\.col0\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + 14 AS INTEGER ) / 16 + + CAST ( NULL AS INTEGER ) + - + col0 AS col1, col2 AS col1 FROM tab2 +---- +23 +40 +58 +NULL +NULL +NULL query I rowsort SELECT DISTINCT col1 - col1 * + 69 AS col1 FROM tab0 @@ -36862,8 +37274,10 @@ SELECT ( + + 83 ) * 40 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 37e2226e55131b39aa48fed34920f749 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col2" at position 0 and "Int64\(\-41\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - col0 AS col2, - 33, - 41 col2 FROM tab1 +---- +9 values hashing to c7fd765716f68fb3647a3c3b42e77464 query II rowsort SELECT + col1 AS col2, ( col1 ) AS col1 FROM tab2 @@ -37174,8 +37588,10 @@ SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) < col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 98681163fa7a6c5bda9118a5a56cf10e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col0" at position 1 and "Int64\(73\) \+ \(\- cor0\.col2\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - col2, - 12 AS col0, + 73 + - col2 AS col0 FROM tab1 AS cor0 +---- +9 values hashing to 27ebecc7151211a71c9dc926903ebfad query I rowsort SELECT col1 AS col1 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL @@ -38248,8 +38664,15 @@ SELECT DISTINCT - + col0 - - col1 FROM tab1 AS cor0 # Datafusion - Expected - 73 # Datafusion - Expected - 5 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, + 73 col0 FROM tab1 AS cor0 +---- +14 +47 +5 +73 +73 +73 query I rowsort SELECT ALL col1 * + - col0 * - ( - + 53 ) FROM tab2 @@ -39185,8 +39608,11 @@ SELECT + 53 + + + col1 * + 38 FROM tab2 WHERE NOT NULL IN ( - 72, col2, - 61 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 121 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(cor0\.col2\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( + col2 ) AS col1, 20 AS col1 FROM tab2 AS cor0 +---- +121 +20 query II rowsort label-6438 SELECT DISTINCT + MIN ( DISTINCT + col1 ), 30 AS col2 FROM tab0 AS cor0 @@ -39321,8 +39747,15 @@ SELECT - - COUNT ( + CAST ( - col0 AS INTEGER ) ) FROM tab2 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - -81 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "\(\- CAST\(\(\- cor0\.col0\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col2, - CAST ( - + col0 AS INTEGER ) col2 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +15 +87 +97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 @@ -39331,8 +39764,15 @@ SELECT DISTINCT - col1 AS col2, - CAST ( - + col0 AS INTEGER ) col2 FROM tab0 AS # Datafusion - Expected - 0 # 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 "Int64\(35\) / cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 AS col1, 35 / col2 col1 FROM tab1 AS cor0 +---- +0 +0 +0 +37 +37 +37 query I rowsort label-6462 SELECT - COUNT ( * ) - + 25 AS col2 FROM tab2 AS cor0 @@ -39890,8 +40330,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "min\(cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, + MIN ( col0 ) AS col0 FROM tab0 cor0 +---- +-3 +15 query I rowsort SELECT ALL - 73 + + - col2 + col2 FROM tab0 AS cor0 @@ -41154,8 +41597,11 @@ SELECT ALL + + ( - ( - col0 ) ) AS col2 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -291 # Datafusion - Expected - 112 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(79\) \+ Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 97 * + COUNT ( * ) AS col1, 79 + + 33 AS col1 FROM tab1 +---- +-291 +112 query III rowsort SELECT * FROM tab0 WHERE NOT NULL <> col1 + + col0 @@ -41249,8 +41695,15 @@ NULL # Datafusion - Expected - -21 # Datafusion - Expected - 97 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "\(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, ( - col1 ) AS col2 FROM tab0 +---- +-1 +-21 +-81 +15 +87 +97 query II rowsort SELECT - + 65 AS col2, + 25 * 10 * + + 75 + + + col0 FROM tab1 AS cor0 @@ -41450,8 +41903,15 @@ NULL # Datafusion - Expected - 67 # Datafusion - Expected - -9801 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- tab0\.col2\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * - col2 col1, + 67 col1 FROM tab0 +---- +-100 +-2209 +-9801 +67 +67 +67 query II rowsort SELECT ALL 84, col2 * - col0 AS col1 FROM tab2 @@ -43826,8 +44286,15 @@ SELECT - + 4, col1 FROM tab2 cor0 WHERE NOT 87 * - 35 * - col0 IS NOT NULL # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, + col1 AS col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT + 35 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL @@ -43932,8 +44399,15 @@ SELECT 16 AS col1 FROM tab2 WHERE + col1 * - - col2 >= - CAST ( NULL AS INTEGER # Datafusion - Expected - 59 # Datafusion - Expected - 3196 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \* \(\- tab1\.col2\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col1 * + - col2 AS col1, col2 AS col1 FROM tab1 WHERE + 51 IS NOT NULL +---- +1344 +295 +3196 +59 +68 +96 query I rowsort SELECT 3 + - col1 + - col2 FROM tab0 @@ -44794,8 +45268,15 @@ NULL # Datafusion - Expected - 21 # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* CAST\(NULL AS Int32\) \+ tab0\.col2 AS col1" at position 0 and "Int64\(68\) \+ \(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 * + CAST ( NULL AS INTEGER ) + + + col2 AS col1, + 68 + - col2 AS col1 FROM tab0 +---- +-31 +21 +58 +NULL +NULL +NULL query I rowsort SELECT ALL 34 - + - 73 AS col0 FROM tab2 @@ -45109,8 +45590,15 @@ NULL # Datafusion - Expected - -217328 # Datafusion - Expected - 25 # Datafusion - Expected - -17405 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "\(\- cor0\.col2\) \* cor0\.col1 \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 * - - col1 AS col2, - col2 * col1 * col2 AS col2 FROM tab1 AS cor0 +---- +-129024 +-17405 +-217328 +196 +2209 +25 query I rowsort label-7415 SELECT ALL - SUM ( - col0 ) col2 FROM tab0 AS cor0 @@ -45267,8 +45755,15 @@ SELECT + ( + 46 ) * + col0 FROM tab1 cor0 # Datafusion - Expected - -6873 # Datafusion - Expected - 30 # Datafusion - Expected - -7663 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ Int64\(\-27\) AS col2" at position 0 and "cor0\.col0 \* Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 57 + - 27 AS col2, + col0 * - 79 AS col2 FROM tab0 AS cor0 +---- +-1185 +-6873 +-7663 +30 +30 +30 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 95 / - 28 IS NULL @@ -46611,8 +47106,11 @@ SELECT col1 * 84 * 4 AS col1 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\(cor0\.col0\)\) AS col2" at position 0 and "min\(DISTINCT Int64\(71\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( + col0 ) AS col2, MIN ( DISTINCT 71 ) AS col2 FROM tab1 cor0 +---- +-3 +71 query III rowsort SELECT ALL * FROM tab2 WHERE NOT ( NOT - col0 + col2 IS NOT NULL ) @@ -46692,8 +47190,15 @@ SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( col2 * + col2 + 80, + 59 + + 62 ) # Datafusion - Expected - 145 # Datafusion - Expected - 63 # Datafusion - Expected - 145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "Int64\(50\) \+ Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 63 AS col0, + 50 + + 95 col0 FROM tab1 AS cor0 +---- +145 +145 +145 +63 +63 +63 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 IN ( - col0 - + col0, ( + col1 ) ) @@ -47017,8 +47522,15 @@ SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) = - - 20 # Datafusion - Expected - -36 # Datafusion - Expected - 3810 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ Int64\(\-83\) \* \(\- cor0\.col1\) AS col1" at position 0 and "Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + + - 83 * - col1 AS col1, - 36 col1 FROM tab1 AS cor0 +---- +-36 +-36 +-36 +1111 +330 +3810 query I rowsort SELECT DISTINCT - + 46 + - 61 AS col0 FROM tab0 AS cor0 @@ -47882,8 +48394,15 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) / tab0\.col1 \+ tab0\.col1 AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 48 / + col1 + col1 AS col2, + col1 AS col2 FROM tab0 +---- +1 +21 +23 +49 +81 +81 query I rowsort SELECT ( - 3 ) FROM tab1 @@ -48036,8 +48555,11 @@ SELECT * FROM tab0 AS cor0 WHERE + col0 < col2 / - 6 + + - col1 + + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -2703406 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "sum\(DISTINCT cor0\.col0\) \* Int64\(\-13\) \* Int64\(11\) \* Int64\(95\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(37\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) col1, + SUM ( DISTINCT col0 ) * - 13 * 11 * + + 95 - + COUNT ( * ) + + 37 / + ( + COUNT ( * ) ) AS col1 FROM tab0 cor0 +---- +-2703406 +-3 query II rowsort SELECT ALL col2, - col0 * - col1 * - col2 * col0 FROM tab0 cor0 @@ -48358,8 +48880,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( COUNT ( * ) ) col1, ( - COUNT ( * ) ) AS col1 FROM tab0 +---- +-3 +3 query I rowsort SELECT ALL 48 * - 62 FROM tab1 AS cor0 @@ -48382,8 +48907,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \+ count\(DISTINCT \(\- Int64\(20\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MAX ( col2 ) * - 21 AS col0, + COUNT ( * ) + + ( COUNT ( DISTINCT - ( 20 ) ) ) col0 FROM tab1 AS cor0 +---- +2016 +4 query I rowsort label-7955 SELECT + MAX ( - 8 ) AS col0 FROM tab2 AS cor0 @@ -48995,8 +49523,11 @@ SELECT col0 FROM tab2 WHERE ( + + 46 ) NOT BETWEEN 76 + col0 / - 9 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 49 AS col1, COUNT ( * ) AS col1 FROM tab1 +---- +-49 +3 query I rowsort SELECT ALL 42 + + + 14 FROM tab1 @@ -49056,8 +49587,12 @@ SELECT + - col1 + - + col2 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 80 # Datafusion - Expected - 3 # 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 "cor0\.col1 \+ \(\- cor0\.col1\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 80 AS col0, 3, + col1 + - + col1 AS col0 FROM tab2 AS cor0 +---- +0 +3 +80 query III rowsort SELECT * FROM tab0 WHERE - 14 IN ( + - col0 + - 80 ) @@ -49168,8 +49703,15 @@ SELECT DISTINCT 37 * + - col1 AS col1 FROM tab0 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 83 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 83 AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +14 +47 +5 +83 +83 +83 query I rowsort SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE - 61 * + 34 IS NULL @@ -49897,8 +50439,15 @@ SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE ( NULL ) <= - col0 # Datafusion - Expected - -295 # Datafusion - Expected - 75 # Datafusion - Expected - -3196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(12\)\) \+ Int64\(87\) AS col2" at position 0 and "cor0\.col2 \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 12 ) + + + 87 AS col2, col2 * - col1 col2 FROM tab1 AS cor0 +---- +-1344 +-295 +-3196 +75 +75 +75 query I rowsort SELECT DISTINCT - 11 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL @@ -49911,8 +50460,15 @@ SELECT DISTINCT - 11 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL # Datafusion - Expected - -2745 # Datafusion - Expected - 0 # Datafusion - Expected - -2910 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \+ tab0\.col0 AS col1" at position 0 and "Int64\(40\) \* \(\- Int64\(51\)\) \+ \(\- \(\- \(\- tab0\.col2\)\)\) \* \(\- \(\- tab0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 + + col0 AS col1, 40 * - ( 51 ) + - ( - - col2 ) * - - col0 AS col1 FROM tab0 +---- +-11643 +-2745 +-2910 +0 +0 +0 query II rowsort label-8211 SELECT 63 + COUNT ( * ), + 32 AS col0 FROM tab0 @@ -50199,8 +50755,15 @@ SELECT - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 # Datafusion - Expected - 58 # Datafusion - Expected - 3 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \- tab2\.col1 \+ Int64\(16\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 - col1 + + 16 AS col1, col2 col1 FROM tab2 +---- +11 +23 +24 +3 +40 +58 query I rowsort SELECT 63 + + - col1 col1 FROM tab1 @@ -50448,8 +51011,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND NULL # Datafusion - Expected - 40 # Datafusion - Expected - -57 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col1" at position 0 and "\(\- CAST\(\(\- cor0\.col2\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 57 AS col1, - ( + CAST ( - col2 AS INTEGER ) ) col1 FROM tab2 AS cor0 +---- +-57 +-57 +-57 +23 +40 +58 query I rowsort label-8299 SELECT ALL 25 / + ( - col2 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 @@ -50562,8 +51132,10 @@ SELECT ALL + col1 + + 76 / - 98 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 3133070f7d765697d7ef9e182aa6bfb0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(\-44\) AS col0" at position 1 and "\(\- cor0\.col0\) \* cor0\.col0 \+ \(\- cor0\.col1\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT col2, - 10 * + - 44 AS col0, + - col0 * col0 + - col1 AS col0 FROM tab2 AS cor0 +---- +9 values hashing to 4754a2265efc3f9b692a1e9cbecefe3a query I rowsort label-8318 SELECT DISTINCT + 20 + + - MIN ( DISTINCT + - 73 ) * - - 40 FROM tab1 cor0 @@ -50870,8 +51442,15 @@ SELECT + - 49 AS col0 FROM tab1 cor0 # Datafusion - Expected - 88 # Datafusion - Expected - -50 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 50 AS col2, 88 AS col2 FROM tab2 AS cor0 +---- +-50 +-50 +-50 +88 +88 +88 query II rowsort SELECT ALL + col1, col2 AS col0 FROM tab1 AS cor0 @@ -51191,8 +51770,15 @@ SELECT DISTINCT - 72 - - COUNT ( * ) FROM tab1 # Datafusion - Expected - 87 # Datafusion - Expected - 94 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col2 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 + col2 AS col2, col0 AS col2 FROM tab0 AS cor0 +---- +15 +198 +20 +87 +94 +97 query I rowsort label-8414 SELECT + COUNT ( * ) + + 74 col1 FROM tab2 AS cor0 @@ -52647,8 +53233,11 @@ SELECT ALL * FROM tab0 WHERE NOT ( NOT ( NULL >= col1 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col0" at position 0 and "Int64\(90\) / Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 75 col0, 90 / + 91 AS col0 FROM tab0 AS cor0 +---- +-75 +0 query II rowsort label-8653 SELECT DISTINCT 11 AS col2, CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0 @@ -52708,8 +53297,15 @@ SELECT ALL col0 + + col2 + - 29 FROM tab2 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Expected - 4410 # Datafusion - Expected - 97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "cor0\.col2 \* \(\- \(\- cor0\.col1\)\) \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 AS col1, + col2 * - - col1 * col1 AS col1 FROM tab0 AS cor0 +---- +15 +308367 +4410 +87 +97 +99 query III rowsort SELECT * FROM tab0 WHERE NOT + col1 <> - + col1 @@ -53795,8 +54391,15 @@ SELECT ALL 76 col2 FROM tab1 # Datafusion - Expected - 6 # Datafusion - Expected - 93 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-93\)\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 93 col2, 6 AS col2 FROM tab0 AS cor0 +---- +6 +6 +6 +93 +93 +93 query I rowsort label-8836 SELECT CAST ( NULL AS INTEGER ) - + 34 AS col2 FROM tab1 AS cor0 WHERE NOT 19 IS NULL @@ -54456,8 +55059,11 @@ 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\(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\. +query II valuesort SELECT ALL - + COUNT ( * ) AS col2, MAX ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0 +---- +-3 +77 query I rowsort SELECT ALL 85 AS col2 FROM tab2 cor0 @@ -54586,8 +55192,15 @@ SELECT * FROM tab2 WHERE - + col2 BETWEEN ( col0 * + col0 * - col1 * 75 ) AND NU # Datafusion - Expected - 64 # Datafusion - Expected - 43 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 43 AS col1, col0 AS col1 FROM tab2 +---- +43 +43 +43 +46 +64 +75 query I rowsort label-8973 SELECT DISTINCT + 37 + - - CAST ( + + col2 AS INTEGER ) FROM tab0 @@ -54885,8 +55498,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 33 AS col2, - ( ( + COUNT ( * ) ) ) AS col2 FROM tab1 +---- +-3 +33 query I rowsort label-9026 SELECT - + MIN ( DISTINCT + col0 ) FROM tab1 cor0 @@ -54937,8 +55553,15 @@ SELECT DISTINCT col0 * + 51 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - 986 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* tab2\.col2 AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 17 ) * col2 col2, + col1 AS col2 FROM tab2 +---- +391 +51 +67 +680 +77 +986 query III rowsort SELECT ALL * FROM tab1 WHERE NOT ( ( + - col2 IS NULL ) ) @@ -55120,8 +55743,11 @@ SELECT ALL - ( + - 25 ) col1 FROM tab0 AS cor0 # 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 "Int64\(69\) AS col0" at position 0 and "Int64\(\-69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 69 AS col0, - 69 AS col0 FROM tab1 AS cor0 +---- +-69 +69 query I rowsort label-9064 SELECT - COUNT ( ALL - + col1 ) FROM tab1 cor0 @@ -55583,8 +56209,11 @@ SELECT - 35 * COUNT ( * ) * 73 AS col0 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "min\(Int64\(\-25\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, MIN ( + - 25 ) AS col1 FROM tab0 +---- +-25 +3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 @@ -55593,8 +56222,15 @@ SELECT DISTINCT COUNT ( * ) AS col1, MIN ( + - 25 ) AS col1 FROM tab0 # Datafusion - Expected - 1 # Datafusion - Expected - -96 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col0\) / \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, - col0 / - + col0 AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +1 +1 +1 query I rowsort label-9141 SELECT ALL 72 * + + ( - COUNT ( * ) ) * COUNT ( DISTINCT - col2 ) FROM tab1 AS cor0 @@ -55762,8 +56398,15 @@ SELECT col0, 75 AS col2 FROM tab1 # Datafusion - Expected - 87 # Datafusion - Expected - 27 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 27 col1, col0 AS col1 FROM tab0 +---- +15 +27 +27 +27 +87 +97 query II rowsort SELECT DISTINCT col2 AS col2, col0 - + + col0 AS col0 FROM tab2 AS cor0 @@ -55956,8 +56599,11 @@ 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\(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\. +query II valuesort SELECT ALL + + COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 +---- +3 +3 query I rowsort SELECT + ( + 74 ) col1 FROM tab1 cor0 @@ -56812,8 +57458,10 @@ SELECT + 37 - - - SUM ( ALL + col2 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 97b7720a8852367cd8e24c5e9d6b7331 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col2" at position 0 and "Int64\(\-97\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL ( + 93 ) AS col2, - col1 AS col0, - 97 AS col2 FROM tab1 AS cor0 +---- +9 values hashing to f3efbb09536dd4c505dcab856be30b10 query I rowsort label-9338 SELECT + - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE col2 + 14 = - 79 @@ -57643,8 +58291,15 @@ SELECT - col2 AS col0 FROM tab1 cor0 WHERE NOT col0 IS NOT NULL # Datafusion - Expected - -4851 # Datafusion - Expected - -85 # Datafusion - Expected - -72171 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(85\)\) AS col1" at position 0 and "\(\- cor0\.col1\) \* Int64\(\-11\) \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 85 AS col1, - col1 * - 11 * - col1 AS col1 FROM tab0 AS cor0 +---- +-11 +-4851 +-72171 +-85 +-85 +-85 query I rowsort SELECT - ( + col1 ) + 44 AS col0 FROM tab2 AS cor0 @@ -58099,8 +58754,15 @@ SELECT * FROM tab0 WHERE NOT 82 NOT IN ( + - col1 + col1 * CAST ( NULL AS INTEGE # Datafusion - Expected - 6 # Datafusion - Expected - 81 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 81 AS col2, + 6 AS col2 FROM tab0 AS cor0 +---- +6 +6 +6 +81 +81 +81 query I rowsort label-9555 SELECT DISTINCT - MAX ( DISTINCT + 46 ) + + 43 + + 86 AS col0 FROM tab1 AS cor0 @@ -58286,8 +58948,15 @@ NULL # Datafusion - Expected - 68 # Datafusion - Expected - -87 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \+ Int64\(\-98\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 11 + - 98 AS col0, + col2 AS col0 FROM tab1 +---- +-87 +-87 +-87 +59 +68 +96 query I rowsort SELECT - 44 * col0 * - + col1 + 33 + col0 * + col1 AS col0 FROM tab0 @@ -58375,8 +59044,15 @@ SELECT + 63 + + col2 FROM tab2 AS cor0 # Datafusion - Expected - -84 # Datafusion - Expected - -73 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(73\)\) AS col2" at position 0 and "Int64\(\-84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 73 AS col2, - 84 AS col2 FROM tab1 AS cor0 +---- +-73 +-73 +-73 +-84 +-84 +-84 query I rowsort label-9593 SELECT DISTINCT + MAX ( + ( - 38 ) ) AS col2 FROM tab1 AS cor0 @@ -58519,8 +59195,15 @@ SELECT col2 + - 10 * - + col2 - - col2 AS col1 FROM tab2 # Datafusion - Expected - 93 # Datafusion - Expected - 5 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "CAST\(\(\- Int64\(\-93\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, + CAST ( - ( - 93 ) AS INTEGER ) AS col2 FROM tab1 +---- +14 +47 +5 +93 +93 +93 query I rowsort SELECT + col0 * - 80 + + + col0 AS col1 FROM tab1 @@ -59067,8 +59750,15 @@ SELECT DISTINCT + col2 * - 55 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 119 # Datafusion - Expected - 42 # Datafusion - Expected - 149 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "cor0\.col0 \+ \(\- \(\- \(\- cor0\.col1\)\)\) \- Int64\(1\) \+ Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 AS col2, col0 + - ( - - col1 ) - + + 1 + + 54 AS col2 FROM tab0 AS cor0 +---- +-13 +119 +149 +42 +42 +42 query I rowsort SELECT ALL - + 95 * + col2 AS col0 FROM tab0 cor0 @@ -59086,8 +59776,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - 27 ) * - COUNT ( * ) AS col2, COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab1, tab0 AS cor0 +---- +-243 +-81 query III rowsort SELECT * FROM tab2 WHERE NOT col2 * + col1 + 72 / + col1 BETWEEN NULL AND + col1 * - + col2 * + col2 @@ -60498,8 +61191,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col2, + 0 AS col2 FROM tab1 +---- +-3 +0 query I rowsort label-9947 SELECT COUNT ( * ) / + 68 AS col2 FROM tab0 WHERE NOT ( NULL ) > NULL diff --git a/data/sqlite/random/aggregates/slt_good_110.slt b/data/sqlite/random/aggregates/slt_good_110.slt index a372a18..9053b53 100644 --- a/data/sqlite/random/aggregates/slt_good_110.slt +++ b/data/sqlite/random/aggregates/slt_good_110.slt @@ -65,8 +65,11 @@ SELECT * FROM tab1 WHERE - col0 * - + col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ Int64\(\-90\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 + - 90 AS col1, + ( + COUNT ( * ) ) AS col1 FROM tab1 +---- +2 +3 query I rowsort SELECT DISTINCT col0 + - + col1 AS col0 FROM tab2 @@ -665,8 +668,11 @@ SELECT ALL col0 + - 19 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT \(\- tab0\.col0\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( DISTINCT + - col0 ) + - COUNT ( * ) AS col2, COUNT ( * ) col2 FROM tab0 +---- +0 +3 query IIIIII rowsort SELECT ALL * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( NULL ) >= NULL @@ -2375,8 +2381,15 @@ SELECT DISTINCT * FROM tab1 WHERE + + 84 * col2 NOT IN ( - col1 * - col2 + 7 ) # Datafusion - Expected - 14 # Datafusion - Expected - -86346 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- Int64\(23\)\) \* tab0\.col1 \+ tab0\.col1 \* tab0\.col0 AS col1" at position 0 and "tab0\.col2 \+ Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * - + 23 * + col1 + + col1 * + col0 AS col1, col2 + + 4 AS col1 FROM tab0 +---- +-2180 +-3003 +-86346 +103 +14 +51 query I rowsort SELECT ALL + - col2 FROM tab2 WHERE + col2 + + 63 + - col2 IS NULL @@ -2969,8 +2982,15 @@ SELECT MAX ( + 2 ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -1 # Datafusion - Expected - -77 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) 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 II valuesort SELECT + - col1 AS col1, col0 / - col2 AS col1 FROM tab2 AS cor0 +---- +-1 +-1 +-2 +-51 +-67 +-77 query I rowsort label-486 SELECT COUNT ( + - col2 ) FROM tab0 cor0 @@ -5691,8 +5711,15 @@ SELECT * FROM tab0 WHERE NOT ( NOT 45 IS NULL ) # Datafusion - Expected - 27 # Datafusion - Expected - 27 # Datafusion - Expected - 567 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col1" at position 0 and "cor0\.col1 \* Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 27 AS col1, col1 * + 27 AS col1 FROM tab0 AS cor0 +---- +2187 +27 +27 +27 +27 +567 query II rowsort SELECT + 11, - col2 + - + col0 + - col1 AS col1 FROM tab2 AS cor0 @@ -6158,8 +6185,9 @@ SELECT DISTINCT col0 * - col1 * + 94 * col1 FROM tab2 -35668864 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "cor0\.col0 \+ Int64\(84\) \+ \(\- cor0\.col2\) / Int64\(\-64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 68 AS col2, col0 + + 84 + - col2 / - 64 AS col2 FROM tab0 AS cor0 WHERE NULL <> col2 + - col0 + + - 74 +---- query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > 0 @@ -6229,8 +6257,15 @@ SELECT ALL - - 59 col2, - 53 FROM tab2 cor0 # Datafusion - Expected - 118 # Datafusion - Expected - 91 # Datafusion - Expected - 136 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col2 \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, col2 + + col2 AS col2 FROM tab1 AS cor0 +---- +118 +136 +192 +51 +85 +91 query II rowsort SELECT - col0 AS col2, - col2 AS col0 FROM tab1 AS cor0 @@ -6358,8 +6393,15 @@ SELECT ALL + - ( + + 50 ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - 16 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 16 AS col0, - col2 AS col0 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +16 +16 +16 query I rowsort SELECT DISTINCT col1 FROM tab1 cor0 WHERE 67 < NULL @@ -6372,8 +6414,15 @@ SELECT DISTINCT col1 FROM tab1 cor0 WHERE 67 < NULL # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2, col2 AS col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query II rowsort label-1049 SELECT - CAST ( NULL AS INTEGER ), - COUNT ( * ) AS col0 FROM tab1 @@ -6829,8 +6878,15 @@ SELECT col0 * - + 56 * - col2 + col2 + - col0 AS col0 FROM tab0 # Datafusion - Expected - -2662 # Datafusion - Expected - 159 # Datafusion - Expected - -2667 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ tab1\.col0 AS col2" at position 0 and "\(\- tab1\.col1\) \- Int64\(58\) \* Int64\(44\) \+ \(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 + + + col0 AS col2, - col1 - 58 * 44 + - ( col2 ) AS col2 FROM tab1 +---- +-2616 +-2662 +-2667 +144 +147 +159 query I rowsort SELECT col1 * - + 83 AS col2 FROM tab0 @@ -6885,8 +6941,11 @@ SELECT ALL + 82 AS col0, col2 * - ( - ( col2 ) ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, - 64 AS col1 FROM tab2 +---- +-64 +NULL query I rowsort SELECT + - col0 / + col1 FROM tab1 AS cor0 WHERE NOT 17 = NULL @@ -7839,8 +7898,11 @@ SELECT ALL SUM ( ALL - + 98 ) AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, 85 AS col2 FROM tab2 cor0 +---- +3 +85 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT - col2 IN ( col2, + col2 * col1 ) @@ -7955,8 +8017,15 @@ SELECT ALL + + col2 + - 35 + 31 - ( - col2 ) FROM tab0 AS cor0 # Datafusion - Expected - -77 # Datafusion - Expected - -75 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, + ( + - col1 ) AS col2 FROM tab2 AS cor0 +---- +-46 +-51 +-64 +-67 +-75 +-77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 @@ -7965,8 +8034,15 @@ SELECT - col0 AS col2, + ( + - col1 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -15 # Datafusion - Expected - -99 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col2 AS col2, - col0 AS col2 FROM tab0 AS cor0 +---- +-10 +-15 +-47 +-87 +-97 +-99 query I rowsort label-1317 SELECT DISTINCT COUNT ( * ) + COUNT ( * ) + + 75 AS col2 FROM tab2 @@ -8065,8 +8141,11 @@ SELECT - COUNT ( * ) / + 25 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, + 41 AS col1 FROM tab1 cor0 +---- +3 +41 query II rowsort SELECT col0, ( + + 72 ) AS col2 FROM tab1 cor0 @@ -8464,8 +8543,15 @@ SELECT ALL + col0 / 63 FROM tab2 # Datafusion - Expected - -3028 # Datafusion - Expected - -29 # Datafusion - Expected - -3834 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col0" at position 0 and "Int64\(52\) \- \(\- tab2\.col1\) \* \(\- \(\- \(\- tab2\.col2\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + - 29 ) col0, 52 - - col1 * + - ( - - col2 ) col0 FROM tab2 +---- +-1121 +-29 +-29 +-29 +-3028 +-3834 query II rowsort SELECT col2, - col0 + + ( col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL @@ -8533,8 +8619,15 @@ SELECT ALL col0 AS col1, - 29 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -4640 # Datafusion - Expected - -77 # Datafusion - Expected - -3200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(79\) \* CAST\(\(\- cor0\.col2\) AS Int32\) \- cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, 79 * CAST ( - col2 AS INTEGER ) - + + col2 AS col0 FROM tab2 AS cor0 +---- +-1840 +-3200 +-4640 +-51 +-67 +-77 query I rowsort label-1407 SELECT ALL - - MAX ( ALL + ( - 96 ) ) FROM tab2 AS cor0 @@ -8685,8 +8778,15 @@ SELECT - col2 * - 77 * 29 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - -35 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col1" at position 0 and "tab2\.col1 \* \(\- tab2\.col2\) \* \(\- tab2\.col2\) \- CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 35 AS col1, col1 * - col2 * + - col2 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 +---- +-35 +-35 +-35 +NULL +NULL +NULL query II rowsort label-1430 SELECT ALL - COUNT ( * ), - 11 AS col2 FROM tab0 @@ -9198,8 +9298,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE 67 > - + col0 # Datafusion - Expected - 34 # Datafusion - Expected - -49 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 49 AS col1, + 34 AS col1 FROM tab0 AS cor0 WHERE NOT + 7 IS NULL +---- +-49 +-49 +-49 +34 +34 +34 query I rowsort SELECT ALL - 31 * col1 AS col0 FROM tab0 AS cor0 @@ -9415,8 +9522,15 @@ SELECT ALL + ( + - col0 ) * + + col2 FROM tab1 # Datafusion - Expected - -30 # 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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 74 AS col0, - 30 AS col0 FROM tab0 +---- +-30 +-30 +-30 +74 +74 +74 query I rowsort SELECT DISTINCT - + col1 FROM tab1 WHERE NOT NULL < NULL @@ -9567,8 +9681,15 @@ SELECT ALL - - 73 - CAST ( - - 71 AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS J # Datafusion - Expected - 68 # Datafusion - Expected - 42 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 42 col1, col2 AS col1 FROM tab1 cor0 WHERE NOT - col2 IS NULL +---- +42 +42 +42 +59 +68 +96 query I rowsort SELECT DISTINCT + col1 - col2 + + col2 * - col0 FROM tab2 cor0 @@ -9765,8 +9886,9 @@ SELECT + col0 + col1 + + col1 * col2 + col1 FROM tab0 AS cor0 3984 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col0 AS col0, + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 WHERE NOT 26 - col2 BETWEEN NULL AND - ( col1 ) + + CAST ( NULL AS INTEGER ) +---- query I rowsort SELECT - 52 AS col2 FROM tab0 AS cor0 WHERE 0 IS NULL @@ -11351,8 +11473,15 @@ SELECT DISTINCT * FROM tab0 WHERE NOT - - 83 <> NULL # Datafusion - Expected - 2 # Datafusion - Expected - 58 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col0\) / Int64\(\-23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, - col0 / - 23 col0 FROM tab2 AS cor0 +---- +2 +2 +23 +3 +40 +58 query I rowsort SELECT ( col2 ) AS col1 FROM tab2 AS cor0 WHERE col2 / - 76 IS NOT NULL @@ -11487,8 +11616,15 @@ SELECT ALL MIN ( 51 ) * - + COUNT ( * ) + + - COUNT ( * ) col2 FROM tab1 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - -81 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, + col0 AS col1 FROM tab0 cor0 +---- +-1 +-21 +-81 +15 +87 +97 query I rowsort SELECT ALL 22 * + 5 FROM tab1 @@ -12157,8 +12293,11 @@ SELECT DISTINCT ( - SUM ( - 2 ) ) FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 1352 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \+ Int64\(15\) AS col0" at position 0 and "sum\(DISTINCT Int64\(26\)\) \* Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 76 + 15 AS col0, + SUM ( DISTINCT 26 ) * 52 AS col0 FROM tab2 AS cor0 +---- +1352 +91 query I rowsort label-2012 SELECT ALL + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NULL > NULL @@ -12937,8 +13076,11 @@ SELECT MIN ( - + col2 ) AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(cor0\.col0\) 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 II valuesort SELECT DISTINCT + MAX ( col0 ) AS col2, + ( - MIN ( ALL - col2 ) ) AS col2 FROM tab0 AS cor0 +---- +97 +99 query IIIIII rowsort SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 76 + + 92 * + 99 > NULL @@ -12972,8 +13114,15 @@ SELECT ALL + + MIN ( - 7 ) FROM tab1 AS cor0 # Datafusion - Expected - -53 # Datafusion - Expected - -810 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(54\)\) \* cor0\.col0 AS col1" at position 0 and "Int64\(\-53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 54 * ( col0 ) AS col1, - 53 AS col1 FROM tab0 AS cor0 +---- +-4698 +-5238 +-53 +-53 +-53 +-810 query I rowsort SELECT - 3 + + 70 AS col2 FROM tab2 AS cor0 @@ -13271,8 +13420,15 @@ SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) < - col0 # Datafusion - Expected - 47 # Datafusion - Expected - -714 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* \(\- tab1\.col0\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 * - col0 AS col0, col1 AS col0 FROM tab1 +---- +-425 +-4277 +-714 +14 +47 +5 query I rowsort label-2197 SELECT ALL - 19 * + - COUNT ( - col1 ) FROM tab0 @@ -13306,8 +13462,15 @@ SELECT * FROM tab0 WHERE NOT NULL IN ( + col2, col0 ) # Datafusion - Expected - -855507 # Datafusion - Expected - -50 # Datafusion - Expected - -185520 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \* cor0\.col2 AS col0" at position 0 and "cor0\.col2 \* cor0\.col1 \* Int64\(87\) \* \(\- cor0\.col2\) \+ Int64\(\-60\) \* Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 5 * + col2 AS col0, + col2 * + col1 * + ( + 87 ) * - col2 + - 60 * + 47 AS col0 FROM tab0 AS cor0 +---- +-15569643 +-185520 +-235 +-495 +-50 +-855507 query I rowsort label-2203 SELECT + 9 / + 63 AS col0 FROM tab2 AS cor0 @@ -14261,8 +14424,15 @@ SELECT DISTINCT + - MAX ( - + col1 ) FROM tab2 WHERE NOT + col2 = + - ( - col2 ) # Datafusion - Expected - 47 # Datafusion - Expected - -83 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 83 AS col1, col2 col1 FROM tab0 +---- +-83 +-83 +-83 +10 +47 +99 query I rowsort SELECT + col2 * - - 42 + - + col0 FROM tab0 AS cor0 @@ -14288,8 +14458,15 @@ SELECT ALL + col0, - col2 FROM tab2 cor0 # Datafusion - Expected - 91 # Datafusion - Expected - -5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col1 AS col1, col0 AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +51 +85 +91 query II rowsort label-2366 SELECT DISTINCT - - 62 col1, + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 cor0 @@ -16180,8 +16357,11 @@ SELECT ALL + 33 + - + ( + col1 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2, tab0 AS cor0 +---- +-9 +9 query I rowsort SELECT ( - + 79 ) - + col2 FROM tab0 @@ -16260,8 +16440,15 @@ SELECT + col2 + - + ( + - col0 ) * + + col2 * + col1 FROM tab2 AS cor0 WHERE NOT # Datafusion - Expected - 62 # Datafusion - Expected - -97 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \- cor0\.col1 AS col0" at position 0 and "\(\- Int64\(\-62\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 - + col1 AS col0, ( - ( - 62 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL +---- +-141 +-142 +-97 +62 +62 +62 query I rowsort label-2698 SELECT DISTINCT + SUM ( DISTINCT 92 ) AS col1 FROM tab2 AS cor0 @@ -16506,8 +16693,15 @@ SELECT + col0 * 33 FROM tab1 # Datafusion - Expected - -81 # Datafusion - Expected - 77 # Datafusion - Expected - -101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "Int64\(53\) \+ \(\- tab2\.col1\) \- tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, 53 + - col1 - col1 AS col2 FROM tab2 +---- +-101 +-49 +-81 +51 +67 +77 query I rowsort label-2739 SELECT DISTINCT - ( + + SUM ( ALL - 17 ) ) FROM tab2 cor0 @@ -18633,8 +18827,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 6 IS NOT NULL # Datafusion - Expected - 564 # Datafusion - Expected - 98 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "Int64\(\-12\) \* \(\- CAST\(\(\- \(\- cor0\.col1\)\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 AS col0, - 12 * - + CAST ( - - col1 AS INTEGER ) AS col0 FROM tab1 cor0 +---- +168 +564 +60 +98 +98 +98 query I rowsort SELECT DISTINCT - 33 * + - 73 * - - col2 AS col0 FROM tab1 cor0 @@ -19980,8 +20181,9 @@ SELECT + + col0 AS col1 FROM tab2 WHERE NULL NOT BETWEEN - 3 AND NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col1" at position 0 and "\(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, - col0 AS col1 FROM tab1 WHERE ( NULL ) < NULL +---- query II rowsort SELECT ALL - - 84 AS col0, + 40 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 ) @@ -20443,8 +20645,15 @@ SELECT col2 AS col1, col0 + col1 FROM tab0 AS cor0 WHERE NULL <= NULL # Datafusion - Expected - 88 # Datafusion - Expected - -68 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) \+ Int64\(8\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 76 + + 8 AS col1, 88 AS col1 FROM tab1 AS cor0 +---- +-68 +-68 +-68 +88 +88 +88 query I rowsort label-3387 SELECT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab2 AS cor0 @@ -20523,8 +20732,11 @@ SELECT + - ( + 61 ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 13 col2, + COUNT ( * ) col2 FROM tab0 AS cor0 +---- +13 +3 query I rowsort label-3400 SELECT DISTINCT + SUM ( DISTINCT - - col2 ) FROM tab0 AS cor0 @@ -20764,8 +20976,15 @@ SELECT ALL ( + ( + col1 ) ) AS col1 FROM tab2 # Datafusion - Expected - 30 # Datafusion - Expected - 30 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\)" at position 0 and "Int64\(30\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 30, 30 FROM tab0 +---- +30 +30 +30 +30 +30 +30 query I rowsort label-3440 SELECT ALL + 77 * - COUNT ( * ) AS col1 FROM tab2 cor0 @@ -21720,8 +21939,15 @@ NULL # Datafusion - Expected - 38 # Datafusion - Expected - 40 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 40 col0, + ( 38 ) AS col0 FROM tab2 +---- +38 +38 +38 +40 +40 +40 query II rowsort SELECT ALL col1 + 97 AS col2, - 45 * - col2 AS col1 FROM tab2 @@ -21997,8 +22223,9 @@ SELECT * FROM tab2 cor0 WHERE col0 NOT BETWEEN ( NULL ) AND - col2 9 values hashing to 75c998aa53ac83218cbf2feb962d0a49 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- \(\- cor0\.col2\) \+ \(\- cor0\.col0\) \+ \(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 - - col2 + - + col0 + + - col1 AS col1, + col2 AS col1 FROM tab0 AS cor0 WHERE ( - col1 - + col0 ) IS NULL +---- query II rowsort label-3645 SELECT ALL - - 72 AS col1, COUNT ( * ) FROM tab1 cor0 @@ -22196,8 +22423,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + + col2 >= NULL # Datafusion - Expected - -68 # Datafusion - Expected - 43 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 43 AS col0, - col2 AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +43 +43 +43 query I rowsort SELECT DISTINCT col0 * - 16 FROM tab0 AS cor0 @@ -22517,8 +22751,15 @@ SELECT 38 * + col2 * + col1 AS col2 FROM tab2 # Datafusion - Expected - 38 # Datafusion - Expected - 91 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 col1, + 38 AS col1 FROM tab1 +---- +38 +38 +38 +51 +85 +91 query I rowsort label-3728 SELECT + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 cor0 @@ -23303,8 +23544,15 @@ SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 # Datafusion - Expected - -1 # Datafusion - Expected - 156 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ Int64\(65\) AS col2" at position 0 and "\(\- tab1\.col1\) / tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 + + 65 AS col2, - col1 / col1 col2 FROM tab1 +---- +-1 +-1 +-1 +116 +150 +156 query I rowsort label-3855 SELECT CAST ( NULL AS INTEGER ) * ( - - col2 ) AS col2 FROM tab1 AS cor0 @@ -24003,8 +24251,15 @@ SELECT DISTINCT + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 # Datafusion - Expected - 7120 # Datafusion - Expected - 75 # Datafusion - Expected - 7120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "Int64\(80\) \* Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, + 80 * + 89 AS col1 FROM tab2 +---- +46 +64 +7120 +7120 +7120 +75 query I rowsort label-3973 SELECT - col1 AS col1 FROM tab0 WHERE ( NULL ) < - CAST ( NULL AS INTEGER ) * - col1 + 84 @@ -24936,8 +25191,15 @@ SELECT SUM ( ALL + col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL # Datafusion - Expected - -91 # Datafusion - Expected - 96 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "\(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, - col0 AS col1 FROM tab1 +---- +-51 +-85 +-91 +59 +68 +96 query I rowsort label-4127 SELECT DISTINCT - 22 - + - COUNT ( * ) FROM tab1 @@ -25138,8 +25400,15 @@ SELECT DISTINCT ( + 37 ) FROM tab2 cor0 # Datafusion - Expected - 59 # Datafusion - Expected - -157 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ Int64\(\-66\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 + - 66 AS col1, col2 AS col1 FROM tab1 AS cor0 +---- +-117 +-151 +-157 +59 +68 +96 query I rowsort SELECT - + 42 + col1 + + - 36 FROM tab2 AS cor0 @@ -25279,8 +25548,15 @@ SELECT DISTINCT * FROM tab1 WHERE NULL >= + + col1 * col0 # Datafusion - Expected - -76 # Datafusion - Expected - 91 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, ( - 76 ) AS col1 FROM tab1 +---- +-76 +-76 +-76 +51 +85 +91 query I rowsort SELECT DISTINCT + col2 * + 61 / - 79 + - col1 FROM tab0 AS cor0 WHERE NOT + 65 IS NOT NULL @@ -25583,8 +25859,15 @@ SELECT - col2 / - col1 * - col2 / - col2 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - -97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 col2, col1 AS col2 FROM tab0 +---- +-15 +-87 +-97 +1 +21 +81 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NULL > + col0 * + col0 @@ -25890,8 +26173,9 @@ SELECT * FROM tab1 WHERE col2 - 39 NOT BETWEEN - 95 AND NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "cor0\.col0 \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 AS col1, col0 * - col1 col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL ) +---- query I rowsort label-4281 SELECT + 8 * + 42 + - SUM ( - 32 ) AS col0 FROM tab2 cor0 @@ -26257,8 +26541,11 @@ SELECT DISTINCT + MAX ( + ( - CAST ( col1 AS INTEGER ) ) ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(8\) / min\(\(\- cor0\.col1\)\) \- CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col2, + 8 / MIN ( - col1 ) - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 +---- +3 +NULL query I rowsort label-4339 SELECT ALL 78 * + - COUNT ( DISTINCT col2 ) FROM tab2 AS cor0 @@ -26300,8 +26587,15 @@ SELECT 39 / - ( - col0 ) FROM tab0 # Datafusion - Expected - 5 # Datafusion - Expected - -798 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* \(\- tab1\.col1\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 * - + col1 AS col2, col1 AS col2 FROM tab1 +---- +-2679 +-285 +-798 +14 +47 +5 query I rowsort label-4345 SELECT COUNT ( * ) / + + 71 col0 FROM tab0 @@ -27278,8 +27572,15 @@ SELECT - col2, - ( 98 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col1, + col0 AS col1 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-4511 SELECT COUNT ( * ) * + + 50 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL @@ -27565,8 +27866,10 @@ SELECT DISTINCT MAX ( - ( + - col2 ) ) - + 21 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to fd5c7ea664d30e080605685e76a95a4a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col2" at position 1 and "\(\- \(\- tab0\.col0\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL ( + + col2 ) AS col1, - 9 AS col2, - + ( + - col0 ) col2 FROM tab0 +---- +9 values hashing to 1eaabe3b99f72d5458019cf35e91c349 query I rowsort label-4561 SELECT COUNT ( * ) + 36 + - - 54 col2 FROM tab2 @@ -27603,8 +27906,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ), + COUNT ( * ) FROM tab0 cor0 +---- +3 +3 query I rowsort label-4568 SELECT DISTINCT COUNT ( ALL 47 ) AS col1 FROM tab2 cor0 @@ -27771,8 +28077,15 @@ SELECT DISTINCT + col2 - - col2 + + col2 FROM tab2 AS cor0 # Datafusion - Expected - 51 # Datafusion - Expected - 53 # Datafusion - Expected - 9841 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "cor0\.col2 \+ Int64\(\-59\) \- cor0\.col2 \* \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 53 AS col0, col2 + - 59 - col2 * + - col2 AS col0 FROM tab0 AS cor0 +---- +2197 +51 +53 +53 +53 +9841 query I rowsort label-4597 SELECT ALL + + COUNT ( + - col2 ) + - COUNT ( * ) AS col1 FROM tab0 WHERE - - col0 * - col2 IS NOT NULL @@ -28162,8 +28475,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "Int64\(\-7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 46 AS col0, - 7 AS col0 FROM tab0 AS cor0 +---- +-7 +46 query I rowsort SELECT - + 18 * 36 AS col1 FROM tab0 AS cor0 @@ -28638,8 +28954,11 @@ SELECT DISTINCT + col0 col2, - 11 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 "max\(DISTINCT Int64\(\-13\)\) 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 II valuesort SELECT ALL + MAX ( DISTINCT - 13 ) AS col2, COUNT ( + + col2 ) AS col2 FROM tab0 AS cor0 +---- +-13 +3 query I rowsort label-4740 SELECT - MIN ( ALL - + 32 ) FROM tab1 AS cor0 @@ -29936,8 +30255,15 @@ SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE col1 + + col0 BETWEEN col2 * - 52 # Datafusion - Expected - 99 # Datafusion - Expected - -29 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 29 AS col1, + 99 AS col1 FROM tab0 AS cor0 +---- +-29 +-29 +-29 +99 +99 +99 query I rowsort SELECT + col1 * + - col0 AS col0 FROM tab2 AS cor0 @@ -30912,8 +31238,15 @@ SELECT ALL * FROM tab2 cor0 WHERE NOT - 45 <> 58 # Datafusion - Expected - 71 # Datafusion - Expected - -256275 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \* Int64\(52\) \* tab2\.col1 \+ tab2\.col0 \* tab2\.col1 AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + col0 ) * 52 * + col1 + ( + col0 ) * + col1 AS col2, 71 AS col2 FROM tab2 +---- +-119646 +-251328 +-256275 +71 +71 +71 query I rowsort label-5124 SELECT - 58 / + + 39 AS col0 FROM tab0 cor0 @@ -31232,8 +31565,15 @@ SELECT * FROM tab0 WHERE + + col2 * + col2 IS NOT NULL # Datafusion - Expected - 91 # Datafusion - Expected - 5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab1\.col1 AS Int32\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( col1 AS INTEGER ) AS col1, col0 AS col1 FROM tab1 +---- +14 +47 +5 +51 +85 +91 query I rowsort label-5176 SELECT DISTINCT + MIN ( DISTINCT + 2 ) AS col1 FROM tab1 @@ -31447,8 +31787,15 @@ SELECT DISTINCT + MAX ( + col0 ) / - - COUNT ( * ) FROM tab0 AS cor0 # Datafusion - Expected - -7650 # Datafusion - Expected - -6552 # Datafusion - Expected - -8190 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \* Int64\(78\) AS col0" at position 0 and "\(\- cor0\.col0\) \* Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 84 * 78 AS col0, - col0 * + 90 col0 FROM tab1 cor0 +---- +-4590 +-6552 +-6552 +-6552 +-7650 +-8190 query I rowsort SELECT DISTINCT 32 col2 FROM tab1 @@ -31670,8 +32017,11 @@ SELECT col1 * - col2 + - + ( - 3 ) FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- min\(DISTINCT \(\- \(\- CAST\(NULL AS Int32\)\)\)\)\) / Int64\(29\) \* Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 AS col0, COUNT ( * ) * - MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) / + + ( + 29 ) * - 45 AS col0 FROM tab2 AS cor0 +---- +81 +NULL query I rowsort label-5251 SELECT DISTINCT ( + + CAST ( NULL AS INTEGER ) ) / - + col0 AS col1 FROM tab2 AS cor0 @@ -31929,8 +32279,15 @@ SELECT DISTINCT + 11 * + SUM ( + + col0 ) FROM tab0 # Datafusion - Expected - 1 # Datafusion - Expected - 96 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "tab1\.col1 / tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, + col1 / + col1 AS col0 FROM tab1 +---- +1 +1 +1 +59 +68 +96 query I rowsort SELECT ALL + col2 * + - ( + col0 ) * col0 + + - 94 FROM tab2 @@ -32037,14 +32394,20 @@ SELECT * FROM tab2 WHERE NULL NOT BETWEEN - col0 * - - 74 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 156 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(8\)\) AS col2" at position 0 and "sum\(DISTINCT tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 8 ) col2, SUM ( DISTINCT + col2 ) AS col2 FROM tab0 WHERE + col0 IS NOT NULL +---- +-8 +156 # 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\(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\. +query II valuesort SELECT COUNT ( * ) * + + ( MAX ( - col0 ) ) AS col2, + 64 col2 FROM tab1 AS cor0 WHERE + col2 + - + col0 IS NULL +---- +64 +NULL query I rowsort SELECT ALL + ( - - ( col1 ) ) col0 FROM tab1 AS cor0 @@ -32416,8 +32779,15 @@ SELECT col0 + ( 69 + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) = + col # Datafusion - Expected - 42 # Datafusion - Expected - -91 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 col2, 42 AS col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +42 +42 +42 query I rowsort SELECT + + col1 + - 50 col0 FROM tab0 AS cor0 @@ -33508,8 +33878,15 @@ SELECT - 13 * - 36 + + 25 * + ( 59 ) * col1 + 83 AS col2, + col0 * + - col2 AS c # Datafusion - Expected - 21 # Datafusion - Expected - 9 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \+ Int64\(16\) AS col2" at position 0 and "\(\- \(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 7 + 16 AS col2, - ( - col1 ) AS col2 FROM tab0 AS cor0 +---- +1 +21 +81 +9 +9 +9 query I rowsort label-5550 SELECT DISTINCT SUM ( ALL col1 ) + COUNT ( * ) FROM tab0 @@ -36342,8 +36719,10 @@ SELECT ALL + 38 / + col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to b0e9329e3c0fe0ee1824c77500c5f82f -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 1 and "\(\- \(\- cor0\.col0\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 27 / col1, + 45 AS col1, - - col0 AS col1 FROM tab2 AS cor0 +---- +9 values hashing to f2c4495b125464d0840aee214dcc9d83 query I rowsort SELECT 90 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT + 45 + - col0 BETWEEN NULL AND + col0 ) @@ -37434,8 +37813,11 @@ SELECT - col0 * + col1 FROM tab1 WHERE NOT - col0 * + 83 * - 64 = NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 33 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 +---- +33 +NULL query I rowsort SELECT DISTINCT col0 col2 FROM tab2 WHERE NOT NULL IS NULL @@ -37969,8 +38351,15 @@ SELECT DISTINCT - ( + MIN ( - + col1 ) ) AS col0 FROM tab0 # Datafusion - Expected - 78 # Datafusion - Expected - -99 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + + col2 ) AS col2, 78 AS col2 FROM tab0 +---- +-10 +-47 +-99 +78 +78 +78 query I rowsort label-6290 SELECT ALL + COUNT ( * ) + COUNT ( * ) + + 99 * ( - SUM ( + col2 ) ) FROM tab0 @@ -38470,8 +38859,15 @@ NULL # Datafusion - Expected - -17995 # Datafusion - Expected - 91 # Datafusion - Expected - -194956 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "Int64\(61\) \* \(\- cor0\.col2\) \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 AS col2, 61 * - col2 * + + col1 AS col2 FROM tab1 AS cor0 +---- +-17995 +-194956 +-81984 +51 +85 +91 query I rowsort label-6373 SELECT ALL 92 * + - COUNT ( * ) FROM tab1 AS cor0 @@ -38661,8 +39057,15 @@ SELECT ALL - col1 * ( - col0 ) FROM tab0 AS cor0 # Datafusion - Expected - -8 # Datafusion - Expected - -5 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col1\) AS Int32\) AS col0" at position 0 and "Int64\(\-8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( - col1 AS INTEGER ) AS col0, - 8 AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +-8 +-8 +-8 query I rowsort label-6406 SELECT col1 - - CAST ( NULL AS INTEGER ) + - 29 AS col2 FROM tab0 WHERE NOT col0 * - ( col2 ) <= + + col2 * + - col1 * - - CAST ( NULL AS INTEGER ) @@ -39040,8 +39443,15 @@ SELECT + SUM ( DISTINCT ( col0 ) ) FROM tab0 # Datafusion - Expected - -47 # Datafusion - Expected - 11 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 0 and "\(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 11 AS col0, - col1 AS col0 FROM tab1 +---- +-14 +-47 +-5 +11 +11 +11 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -39067,8 +39477,9 @@ SELECT 32 + COUNT ( * ) AS col0 FROM tab2 35 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, 25 col1 FROM tab2 WHERE NOT NULL BETWEEN - col1 * ( col1 ) AND + col1 +---- query I rowsort label-6472 SELECT 72 + - - COUNT ( * ) FROM tab2 @@ -39092,8 +39503,15 @@ SELECT col1 AS col0, col0 * + col0 FROM tab2 AS cor0 # Datafusion - Expected - -1 # Datafusion - Expected - 97 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col1, - 1 AS col1 FROM tab0 AS cor0 +---- +-1 +-1 +-1 +15 +87 +97 query I rowsort SELECT + col1 * - col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL @@ -39219,8 +39637,15 @@ SELECT ALL col2 AS col2, 18 AS col2 FROM tab1 # Datafusion - Expected - -59 # Datafusion - Expected - -91 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col0" at position 0 and "\(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, - col2 AS col0 FROM tab1 +---- +-51 +-59 +-68 +-85 +-91 +-96 query I rowsort SELECT col0 * + 22 FROM tab2 @@ -39903,8 +40328,15 @@ SELECT - COUNT ( * ) * + 44 FROM tab0 # Datafusion - Expected - -8 # Datafusion - Expected - 6561 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* tab0\.col1 AS col0" at position 0 and "Int64\(\-8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * + col1 AS col0, - 8 col0 FROM tab0 +---- +-8 +-8 +-8 +1 +441 +6561 query I rowsort SELECT 86 * col1 * col0 FROM tab1 @@ -41072,8 +41504,15 @@ SELECT DISTINCT - - 26 AS col1, - COUNT ( * ) FROM tab0 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - 54 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-54\)\) AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - - 54 ) AS col2, - col0 AS col2 FROM tab0 +---- +-15 +-87 +-97 +54 +54 +54 query I rowsort SELECT 50 col1 FROM tab1 WHERE NOT ( NOT NULL <= 32 ) @@ -41509,8 +41948,15 @@ SELECT DISTINCT MIN ( + 70 ) + - COUNT ( * ) AS col0 FROM tab2 # Datafusion - Expected - 83 # Datafusion - Expected - 90 # Datafusion - Expected - 125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \- Int64\(1\) AS col2" at position 0 and "tab1\.col1 \+ \(\- Int64\(\-78\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 - 1 AS col2, col1 + - - 78 AS col2 FROM tab1 +---- +125 +50 +83 +84 +90 +92 query I rowsort label-6878 SELECT + MAX ( DISTINCT - col0 ) AS col1 FROM tab2 @@ -41750,8 +42196,15 @@ SELECT 53 * - 27 + - col1 FROM tab1 # Datafusion - Expected - 7939 # Datafusion - Expected - 66 # Datafusion - Expected - 8769 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "\(\- \(\- tab0\.col1\)\) \+ Int64\(81\) \* tab0\.col0 \+ tab0\.col1 \+ Int64\(80\) \* tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 66 AS col0, - ( - col1 ) + 81 * + col0 + col1 + 80 * + col1 AS col0 FROM tab0 +---- +66 +66 +66 +7857 +7939 +8769 query I rowsort SELECT + col2 + 72 AS col1 FROM tab2 @@ -42379,8 +42832,10 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 2fd875726a4b1f00f97c169da6c1b052 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \* Int64\(79\) AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 8 * 79 AS col1, 92 * - col0 * col1 * col1 - - col0, - col0 AS col1 FROM tab2 +---- +9 values hashing to 952dd61df5a002fb301978a48195c513 query I rowsort label-7010 SELECT + + COUNT ( * ) / - + 46 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 @@ -43673,8 +44128,11 @@ SELECT ALL COUNT ( * ) * - ( - + 45 ) AS col0 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Float64\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT - ( - CAST ( NULL AS FLOAT8 ) ) col2, + COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +3 +NULL query I rowsort label-7232 SELECT ALL col0 + 36 / - - 93 + + + col2 AS col1 FROM tab2 AS cor0 @@ -43845,8 +44303,15 @@ SELECT DISTINCT - COUNT ( * ) + - + CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 +---- +15 +87 +97 +NULL +NULL +NULL query I rowsort label-7260 SELECT ALL col2 + + 93 * CAST ( NULL AS INTEGER ) FROM tab2 @@ -44388,8 +44853,15 @@ SELECT ALL + 6 * col1 AS col2, - col2 col0 FROM tab2 # Datafusion - Expected - -91 # Datafusion - Expected - -96 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "\(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - + col2 ) AS col2, - col0 col2 FROM tab1 +---- +-51 +-59 +-68 +-85 +-91 +-96 query I rowsort label-7347 SELECT col1 / + 43 FROM tab0 @@ -44886,8 +45358,15 @@ NULL # Datafusion - Expected - 58 # Datafusion - Expected - 97 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ tab2\.col1 AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 + + col1 AS col0, col2 col0 FROM tab2 +---- +141 +142 +23 +40 +58 +97 query II rowsort label-7428 SELECT ALL - CAST ( - + col2 AS INTEGER ) AS col0, + 22 FROM tab2 @@ -45373,8 +45852,15 @@ SELECT + + col2 AS col1 FROM tab0 WHERE NOT - col1 IS NOT NULL # Datafusion - Expected - 75 # Datafusion - Expected - 77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "CAST\(cor0\.col0 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0 +---- +46 +51 +64 +67 +75 +77 query I rowsort label-7507 SELECT DISTINCT SUM ( DISTINCT + - 53 ) col0 FROM tab2 AS cor0 @@ -46967,8 +47453,15 @@ SELECT * FROM tab1 WHERE NOT - + 6 IS NOT NULL # Datafusion - Expected - -47 # Datafusion - Expected - 96 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, - col1 AS col1 FROM tab1 +---- +-14 +-47 +-5 +59 +68 +96 query I rowsort label-7784 SELECT CAST ( - col2 AS INTEGER ) * - col1 * col1 FROM tab0 @@ -47188,8 +47681,15 @@ SELECT ALL + ( - col1 ) col0, 76 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEE # Datafusion - Expected - 1 # Datafusion - Expected - 91 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, + 1 AS col1 FROM tab1 AS cor0 +---- +1 +1 +1 +51 +85 +91 query II rowsort SELECT - 58, + 59 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL @@ -47371,8 +47871,11 @@ SELECT DISTINCT col0, + col1 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -195 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "sum\(Int64\(\-65\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 58 AS col2, + ( SUM ( ALL - 65 ) ) AS col2 FROM tab1 cor0 +---- +-195 +58 query I rowsort SELECT ALL - 83 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 @@ -49070,8 +49573,15 @@ SELECT - COUNT ( * ) - + - 5 FROM tab2 AS cor0 # Datafusion - Expected - -1 # Datafusion - Expected - 97 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col0 AS col1" at position 0 and "Int64\(\-90\) / \(\- \(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 + + col0 AS col1, - 90 / - - col1 AS col1 FROM tab0 AS cor0 +---- +-1 +-4 +-90 +196 +62 +97 query III rowsort SELECT ALL * FROM tab2 WHERE col1 - + 12 - - + 94 + + 47 NOT BETWEEN col2 AND ( - 63 ) * - 63 @@ -52005,8 +52515,15 @@ NULL # Datafusion - Expected - -45 # Datafusion - Expected - -77 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col0" at position 0 and "Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col0, - 45 AS col0 FROM tab2 +---- +-45 +-45 +-45 +-51 +-67 +-77 query I rowsort SELECT ALL ( - + ( - 51 ) ) FROM tab2 @@ -52200,8 +52717,15 @@ SELECT - - col2 FROM tab1 AS cor0 WHERE NOT + col2 * - + col2 + + + CAST ( - col # Datafusion - Expected - -40 # Datafusion - Expected - -37 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(37\)\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 37 AS col2, - col2 AS col2 FROM tab2 cor0 +---- +-23 +-37 +-37 +-37 +-40 +-58 query I rowsort label-8660 SELECT + - COUNT ( * ) / + 88 FROM tab1 AS cor0 @@ -52417,8 +52941,15 @@ SELECT DISTINCT + col1 * + + 51 * col0 FROM tab2 # Datafusion - Expected - -51 # Datafusion - Expected - -96 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col0" at position 0 and "Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 96 col0, - 51 AS col0 FROM tab2 +---- +-51 +-51 +-51 +-96 +-96 +-96 query II rowsort SELECT col0 * - col2 AS col1, - col0 + + - col0 FROM tab2 @@ -54870,8 +55401,15 @@ SELECT + ( + 0 ) * 11 col1 FROM tab0 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, col0 AS col2 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query II rowsort SELECT - 5 * + ( + col2 ) AS col2, - 66 * - 3 + + + ( 12 ) * + + col2 col0 FROM tab0 @@ -55406,8 +55944,15 @@ SELECT 1 / col0 AS col2 FROM tab1 # Datafusion - Expected - 95 # Datafusion - Expected - -96 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, 95 AS col0 FROM tab1 +---- +-59 +-68 +-96 +95 +95 +95 query I rowsort SELECT ALL - col2 * + 55 AS col2 FROM tab2 @@ -55578,8 +56123,15 @@ NULL # Datafusion - Expected - 17 # Datafusion - Expected - 91 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col0 AS col0, 17 AS col0 FROM tab1 cor0 +---- +17 +17 +17 +51 +85 +91 query I rowsort label-9216 SELECT DISTINCT COUNT ( DISTINCT - 31 ) FROM tab0 AS cor0 @@ -56379,8 +56931,15 @@ SELECT DISTINCT - 41 * 42 AS col1 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - -1 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 / Int64\(\-47\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 / + - 47 AS col0, col2 AS col0 FROM tab1 +---- +-1 +-1 +-1 +59 +68 +96 query III rowsort SELECT * FROM tab0 AS cor0 WHERE 79 * + + 34 * - col2 IS NULL @@ -56761,8 +57320,11 @@ SELECT DISTINCT CAST ( - + COUNT ( DISTINCT - col1 ) AS INTEGER ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) col2, 75 AS col2 FROM tab1 AS cor0 +---- +3 +75 query III rowsort SELECT * FROM tab1 cor0 WHERE NULL = 71 / + 65 @@ -58844,8 +59406,15 @@ SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 / - col0 AS col1 FROM tab2 WHE # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, col0 AS col1 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN - + col1 AND + col2 @@ -58961,8 +59530,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * - COUNT ( * ) * - SUM ( ALL - 60 ) AS col1, - 36 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 +---- +-36 +-43740 query I rowsort label-9770 SELECT - MIN ( col1 ) FROM tab1 WHERE NOT + 30 IS NOT NULL @@ -59807,8 +60379,12 @@ SELECT DISTINCT - 75 + 33 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -199 # Datafusion - Expected - 3 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT \(\- tab0\.col0\)\) AS col0" at position 0 and "Int64\(87\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL SUM ( DISTINCT - col0 ) AS col0, COUNT ( * ), + 87 col0 FROM tab0 +---- +-199 +3 +87 query I rowsort SELECT - 39 col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 diff --git a/data/sqlite/random/aggregates/slt_good_111.slt b/data/sqlite/random/aggregates/slt_good_111.slt index 1fe0156..607fa7a 100644 --- a/data/sqlite/random/aggregates/slt_good_111.slt +++ b/data/sqlite/random/aggregates/slt_good_111.slt @@ -207,8 +207,9 @@ SELECT + col1 FROM tab0 WHERE ( - 44 ) BETWEEN NULL AND col1 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, + col1 FROM tab0 WHERE NOT NULL > ( NULL ) +---- query I rowsort SELECT + 61 + ( - col1 ) FROM tab2 @@ -409,8 +410,15 @@ SELECT DISTINCT + 72 + - col2 col2 FROM tab2 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - 8281 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 * col0 AS col1, - col0 AS col1 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +2601 +7225 +8281 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 46 + - col2 @@ -1167,8 +1175,9 @@ SELECT DISTINCT + + 34 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 34 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 AS col2, + 5 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL +---- query II rowsort label-189 SELECT DISTINCT + ( + COUNT ( * ) ) col1, - 2 FROM tab2 AS cor0 @@ -1461,8 +1470,11 @@ SELECT - 84 * + + 7 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - -172 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT tab0\.col1\)\) AS col2" at position 0 and "Int64\(27\) \+ \(\- sum\(DISTINCT tab0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( DISTINCT col1 ) AS col2, + 27 + - SUM ( DISTINCT + col0 ) AS col2 FROM tab0 +---- +-172 +-81 query I rowsort label-237 SELECT DISTINCT + ( - MIN ( DISTINCT + - CAST ( NULL AS INTEGER ) ) ) + + - 75 * - - COUNT ( * ) FROM tab0 @@ -1795,8 +1807,15 @@ SELECT - - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + 86 + - - 59 <= ( + col2 # Datafusion - Expected - 65 # Datafusion - Expected - 273 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \* Int64\(13\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col1 * + 13 AS col0, 65 AS col0 FROM tab0 AS cor0 +---- +1053 +13 +273 +65 +65 +65 query II rowsort label-288 SELECT ALL + COUNT ( * ) AS col2, - COUNT ( DISTINCT - col0 ) FROM tab0 @@ -2081,8 +2100,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) * - 56 + + 42 AS col1, + ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0 +---- +-126 +-3 query I rowsort label-332 SELECT ALL - col0 - col2 / col0 * - + 70 col2 FROM tab1 @@ -2219,8 +2241,15 @@ SELECT DISTINCT + 33 col2 FROM tab1 # Datafusion - Expected - 1173 # Datafusion - Expected - -99 # Datafusion - Expected - 3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ \(\- Int64\(62\)\) \+ \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 30 + - + 62 + - col1 AS col2, col1 * + col2 AS col2 FROM tab2 AS cor0 +---- +-109 +-83 +-99 +1173 +3080 +3886 query I rowsort label-355 SELECT 38 * CAST ( + col2 AS INTEGER ) * col0 / + + col0 + col2 FROM tab2 AS cor0 @@ -3285,8 +3314,15 @@ SELECT ALL - - col2 + - col0 + + - col2 - - 85 * + 63 * - + 89 * - 98 AS col0 FR # Datafusion - Expected - -3807 # Datafusion - Expected - 52 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col1" at position 0 and "cor0\.col2 \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 AS col1, col2 * - col1 AS col1 FROM tab0 AS cor0 +---- +-210 +-3807 +-99 +52 +52 +52 query I rowsort SELECT + 44 * col0 AS col0 FROM tab2 @@ -4306,8 +4342,15 @@ SELECT - MAX ( + - ( + - CAST ( + col0 AS INTEGER ) ) ) FROM tab1 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - -81 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, - col0 AS col0 FROM tab0 AS cor0 +---- +-1 +-15 +-21 +-81 +-87 +-97 query II rowsort label-701 SELECT ALL + 46, - 53 - - + COUNT ( + - col2 ) AS col0 FROM tab2 cor0 @@ -4773,8 +4816,15 @@ SELECT DISTINCT + col1 / col0 + - 10 AS col0 FROM tab1 cor0 # Datafusion - Expected - 97 # Datafusion - Expected - -42 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ \(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 + + - col1 AS col1, col0 col1 FROM tab0 AS cor0 +---- +-162 +-2 +-42 +15 +87 +97 query I rowsort SELECT - col2 + - col2 * - + col0 FROM tab0 @@ -5063,8 +5113,15 @@ SELECT ALL ( - col0 ) FROM tab1 AS cor0 WHERE NOT - CAST ( col2 AS FLOAT8 ) IS N # Datafusion - Expected - 91 # Datafusion - Expected - 5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, col0 AS col2 FROM tab1 AS cor0 +---- +14 +47 +5 +51 +85 +91 query II rowsort label-823 SELECT ALL + COUNT ( * ) AS col1, + 86 - - - 63 FROM tab1 @@ -5086,8 +5143,11 @@ SELECT 30 * + col1 AS col0 FROM tab0 # 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\(tab0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 21 AS col0, - COUNT ( + + col1 ) AS col0 FROM tab0 +---- +-21 +-3 query II rowsort SELECT + col1 AS col2, - 74 FROM tab1 @@ -5830,8 +5890,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - 78 > NULL ) # Datafusion - Expected - 57105 # Datafusion - Expected - -99 # Datafusion - Expected - 9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col1\) \* \(\- cor0\.col2\) \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 * col1 col2, - col1 * - col2 * col0 AS col2 FROM tab0 AS cor0 +---- +-210 +-3807 +-99 +18270 +57105 +9603 query I rowsort SELECT ALL + 82 + ( + 0 ) FROM tab0 cor0 WHERE NOT 13 / + 99 * - col2 NOT IN ( ( col1 ) ) @@ -6169,8 +6236,15 @@ SELECT ALL + col0 + - col0 * 69 AS col2 FROM tab2 WHERE NULL >= NULL # Datafusion - Expected - 8339 # Datafusion - Expected - -2900 # Datafusion - Expected - 9227 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* \(\- Int64\(50\)\) AS col1" at position 0 and "tab0\.col2 \* Int64\(24\) \+ \(\- Int64\(89\)\) \* Int64\(\-91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 * - + 50 AS col1, col2 * + + 24 + - + 89 * + ( - 91 ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL +---- +-2900 +-2900 +-2900 +10475 +8339 +9227 query I rowsort SELECT 11 * col1 * col0 * + 11 FROM tab2 @@ -6193,14 +6267,20 @@ SELECT DISTINCT - 95 * + ( - - ( col0 ) ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(\(\- max\(Int64\(\-63\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, CAST ( + - MAX ( - 63 ) AS INTEGER ) col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL +---- +0 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col0" at position 0 and "Int64\(54\) / avg\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - 73 AS col0, 54 / + + AVG ( ALL + - CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 +---- +-73 +NULL query I rowsort label-1006 SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 cor0 @@ -6734,8 +6814,10 @@ SELECT DISTINCT * FROM tab0 WHERE + col0 IS NULL OR NOT NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 5eb4d9ef53ce8b20be1002eabc5511f8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 1 and "tab0\.col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 30, col2, + col2 FROM tab0 +---- +9 values hashing to bf511753d44992565a4ac02db1d82cd4 query I rowsort SELECT col1 - + 66 FROM tab1 WHERE NOT - - 19 <> col1 + + + col1 + + col0 @@ -6909,8 +6991,15 @@ SELECT DISTINCT + 0 * + + SUM ( + 4 ) FROM tab0 # Datafusion - Expected - -1 # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \* \(\- CAST\(NULL AS Float64\)\) / tab1\.col1 AS col2" at position 0 and "\(\- tab1\.col0\) / Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - col0 * - + CAST ( NULL AS FLOAT8 ) / col1 AS col2, - col0 / 65 AS col2 FROM tab1 +---- +-1 +-1 +0 +NULL +NULL +NULL query I rowsort SELECT ALL 81 * - col2 FROM tab0 @@ -7323,8 +7412,15 @@ SELECT DISTINCT + col1 + 27 + + + col1 - + - 87 * - 80 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - -62 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 62 AS col2, - col0 AS col2 FROM tab0 +---- +-15 +-62 +-62 +-62 +-87 +-97 query I rowsort SELECT ALL - 74 AS col2 FROM tab2 WHERE NOT + 21 BETWEEN NULL AND - col1 * - 38 @@ -7617,8 +7713,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - -80 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(80\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( 80 ) AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +-80 +-80 +-80 +10 +47 +99 query I rowsort SELECT col1 + + 33 AS col0 FROM tab2 @@ -7755,8 +7858,11 @@ SELECT DISTINCT + ( - + 25 ), + COUNT ( + 10 ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) 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 II valuesort SELECT + 86 AS col0, + SUM ( - col1 ) AS col0 FROM tab1 AS cor0 +---- +-66 +86 query I rowsort SELECT DISTINCT 95 - + - col0 AS col1 FROM tab1 @@ -7825,8 +7931,15 @@ SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL # Datafusion - Expected - 16 # Datafusion - Expected - -6188 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col2\) AS col2" at position 0 and "Int64\(75\) \+ \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 * + - col2 AS col2, + 75 + - col2 AS col2 FROM tab1 AS cor0 +---- +-21 +-4896 +-5015 +-6188 +16 +7 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 * - + col1 IS NOT NULL @@ -8451,8 +8564,10 @@ SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab1 WHERE NOT + col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to b52eb173ab7100d81c3e19362fe11607 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + col1 AS col0, 7 AS col0, 68 - - 45 FROM tab1 +---- +9 values hashing to facaf3b5098b2a4b3679faa93c86bcdd query I rowsort SELECT DISTINCT - + 53 + + + col0 AS col1 FROM tab2 AS cor0 @@ -8766,8 +8881,15 @@ SELECT ALL - COUNT ( * ) + - 8 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - -97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( col0 ) col2, col1 AS col2 FROM tab0 +---- +-15 +-87 +-97 +1 +21 +81 query I rowsort SELECT DISTINCT + ( - 28 ) FROM tab0 @@ -8825,8 +8947,15 @@ SELECT DISTINCT 28 * + 53 AS col1 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - -81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +NULL +NULL +NULL query I rowsort label-1442 SELECT ALL - 6 + - 65 / 2 FROM tab0 AS cor0 @@ -8838,8 +8967,11 @@ SELECT ALL - 6 + - 65 / 2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col2" at position 0 and "Int64\(\-32\) \- \(\- Int64\(\-61\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 48 AS col2, - 32 - - - 61 AS col2 FROM tab0 AS cor0 +---- +-93 +48 query I rowsort SELECT ALL - col1 AS col1 FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND col1 @@ -9047,8 +9179,12 @@ SELECT * FROM tab1 AS cor0 WHERE 20 <= - col1 # Datafusion - Expected - NULL # Datafusion - Expected - -3 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Float64\) AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL CAST ( + CAST ( NULL AS FLOAT8 ) AS INTEGER ) + + + COUNT ( * ) AS col0, - COUNT ( * ) AS col0, + 61 FROM tab1 AS cor0 +---- +-3 +61 +NULL query I rowsort SELECT DISTINCT - - col2 + col0 + 82 FROM tab0 AS cor0 @@ -9647,8 +9783,15 @@ SELECT DISTINCT ( - ( + + col1 ) ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 5 # Datafusion - Expected - -96 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col1, 5 AS col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +5 +5 +5 query I rowsort SELECT - - 44 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 @@ -9783,8 +9926,15 @@ SELECT DISTINCT col2 + col0 * - - 88 col0 FROM tab0 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 34 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 0 and "\(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 34 AS col1, - col2 AS col1 FROM tab0 +---- +-10 +-47 +-99 +34 +34 +34 query I rowsort SELECT - - 12 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IS NOT NULL @@ -10312,8 +10462,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) * 53 AS col1, + MAX ( + col0 ) AS col1 FROM tab0 +---- +159 +97 query I rowsort label-1678 SELECT DISTINCT - col1 / - + 63 * - - col0 * + 96 AS col1 FROM tab1 @@ -10594,8 +10747,15 @@ SELECT DISTINCT - 54 * col1 - - + col0 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - 5 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +14 +47 +5 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * + col2 IS NULL @@ -11326,8 +11486,15 @@ SELECT - - 32 * col0 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col2, col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT ALL + 63 * col1 AS col2 FROM tab1 AS cor0 @@ -11353,8 +11520,15 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - 0 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 / \(\- tab0\.col1\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 / - + col1 AS col2, col1 col2 FROM tab0 +---- +-4 +-97 +0 +1 +21 +81 query I rowsort SELECT + 53 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 @@ -11395,8 +11569,15 @@ SELECT ALL - 16 * - + ( + + 53 ), col2 FROM tab1 # Datafusion - Expected - 37 # Datafusion - Expected - 97 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, 37 AS col2 FROM tab0 +---- +15 +37 +37 +37 +87 +97 query I rowsort SELECT col1 FROM tab2 WHERE NOT + + 68 > ( + col1 ) @@ -11568,8 +11749,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 28 AS col0, 35 - - + 28 + 59 * - COUNT ( * ) * - 33 AS col0 FROM tab2 AS cor0 +---- +28 +5904 query I rowsort label-1887 SELECT ALL + COUNT ( * ) + MAX ( + - col2 ) FROM tab1 AS cor0 @@ -11809,8 +11993,15 @@ SELECT col1, 67 * - - 49 * + col2 FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - -99 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 99 AS col1, col0 AS col1 FROM tab2 AS cor0 +---- +-99 +-99 +-99 +46 +64 +75 query I rowsort label-1927 SELECT DISTINCT 17 / col2 * - col0 + - col1 + + col0 FROM tab1 AS cor0 @@ -12102,8 +12293,10 @@ SELECT - - COUNT ( * ) * 55 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 114a42a666a373906a79bdf00540c8be -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col1" at position 0 and "\(\- cor0\.col0\) \* cor0\.col1 \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + ( + 69 ) col1, - col0 * + col1 + + - col1 AS col1, - 54 FROM tab0 AS cor0 +---- +9 values hashing to e16b23438b42eadfabbadbdbe5b7af45 query I rowsort SELECT - col2 + + 78 + col1 * + col1 FROM tab1 @@ -12936,8 +13129,11 @@ SELECT DISTINCT - 80 + + COUNT ( * ) AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "min\(\(\- \(\- Int64\(\-55\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, + MIN ( ALL - - ( - 55 ) ) col1 FROM tab0 AS cor0 +---- +-55 +3 query III rowsort SELECT * FROM tab2 AS cor0 WHERE - col2 / + col0 NOT BETWEEN col2 * 16 * + col2 AND NULL @@ -14205,8 +14401,15 @@ SELECT + 29 + - col2 FROM tab1 AS cor0 # Datafusion - Expected - 79 # Datafusion - Expected - 40 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) \+ cor0\.col1 AS col2" at position 0 and "Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 37 + col1 AS col2, + ( 79 ) AS col2 FROM tab2 cor0 +---- +14 +30 +40 +79 +79 +79 query I rowsort SELECT DISTINCT + 76 FROM tab0 AS cor0 WHERE NOT NULL <= + 20 @@ -14247,8 +14450,9 @@ SELECT ALL - + col1 + col2 / + col0 FROM tab1 AS cor0 -5 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col1, col0 col1 FROM tab0 cor0 WHERE col1 <> NULL +---- query I rowsort label-2328 SELECT ALL + MIN ( DISTINCT + - 79 ) + - - 25 FROM tab0 AS cor0 @@ -14550,8 +14754,15 @@ SELECT ALL + 77 FROM tab0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 91 # Datafusion - Expected - -99 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col1, 91 AS col1 FROM tab0 +---- +-10 +-47 +-99 +91 +91 +91 query I rowsort SELECT DISTINCT + col2 * - - 27 AS col1 FROM tab1 @@ -15204,8 +15415,15 @@ SELECT ALL + - 45 col2 FROM tab1 AS cor0 # Datafusion - Expected - 9405 # Datafusion - Expected - -9 # Datafusion - Expected - 950 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col2" at position 0 and "tab0\.col2 \* Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 9 col2, + col2 * 95 AS col2 FROM tab0 +---- +-9 +-9 +-9 +4465 +9405 +950 query III rowsort SELECT * FROM tab1 WHERE NOT - - col1 + + 6 IS NULL @@ -15912,8 +16130,9 @@ SELECT ALL COUNT ( * ) * + ( - - COUNT ( * ) ) FROM tab0 9 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \+ Int64\(79\) AS col1" at position 0 and "tab2\.col2 / \(\- Int64\(55\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 + + 79 AS col1, col2 / - + 55 AS col1 FROM tab2 WHERE NOT - 42 IS NOT NULL +---- query I rowsort label-2595 SELECT 18 * - COUNT ( * ) FROM tab1 @@ -16268,8 +16487,15 @@ SELECT + 11 + - ( - col2 ) FROM tab0 AS cor0 # Datafusion - Expected - 46 # Datafusion - Expected - 60 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) \+ cor0\.col0 AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 15 + + col0 AS col2, 46 AS col2 FROM tab2 AS cor0 +---- +31 +46 +46 +46 +49 +60 query I rowsort SELECT col2 + - 99 FROM tab1 AS cor0 @@ -17793,8 +18019,15 @@ SELECT ALL - 87 / - col0 FROM tab1 # Datafusion - Expected - 4125 # Datafusion - Expected - 97 # Datafusion - Expected - 2530 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \+ tab2\.col0 AS col0" at position 0 and "CAST\(\(\- \(\- tab2\.col0\)\) AS Int32\) \* Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + + col0 AS col0, + CAST ( - - col0 AS INTEGER ) * 55 AS col0 FROM tab2 +---- +141 +142 +2530 +3520 +4125 +97 query I rowsort label-2904 SELECT + SUM ( ALL + col2 ) AS col0 FROM tab0 WHERE ( ( NULL ) > NULL ) @@ -18190,8 +18423,15 @@ SELECT DISTINCT + MIN ( DISTINCT 65 ) FROM tab0 # Datafusion - Expected - 77 # Datafusion - Expected - -75 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 col0, + col1 AS col0 FROM tab2 +---- +-46 +-64 +-75 +51 +67 +77 query I rowsort label-2970 SELECT ALL - CAST ( - 5 AS INTEGER ) col1 FROM tab2 AS cor0 @@ -20436,8 +20676,15 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - 85 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \+ \(\- cor0\.col1\) \+ Int64\(76\) AS col2" at position 0 and "cor0\.col2 / \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90 + - col1 + ( 76 ) col2, + col2 / - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 +---- +145 +165 +85 +NULL +NULL +NULL query I rowsort label-3343 SELECT ALL - - COUNT ( * ) + + 18 AS col0 FROM tab1 AS cor0 @@ -20475,8 +20722,15 @@ SELECT ALL 11 * - + col1 * + 3, 3 AS col2 FROM tab1 # Datafusion - Expected - -160 # Datafusion - Expected - 84 # Datafusion - Expected - -131 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ tab2\.col2 AS col1" at position 0 and "\(\- tab2\.col0\) \+ Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 61 + col2 col1, - col0 + + - 85 AS col1 FROM tab2 +---- +-131 +-149 +-160 +101 +119 +84 query II rowsort label-3348 SELECT ALL COUNT ( ALL + col0 ) AS col2, + COUNT ( * ) FROM tab1 @@ -20612,8 +20866,11 @@ SELECT DISTINCT - MIN ( DISTINCT + 54 ) * + COUNT ( * ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10730 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* sum\(CAST\(tab2\.col0 AS Int32\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 * + SUM ( + CAST ( + + col0 AS INTEGER ) ) AS col1, - COUNT ( * ) AS col1 FROM tab2 +---- +-3 +10730 query II rowsort label-3369 SELECT ALL col2 / col2 AS col1, col2 FROM tab1 @@ -21002,8 +21259,15 @@ SELECT ALL + - SUM ( ALL col2 ) FROM tab1 cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- tab0\.col1\) AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 * + - col1 AS col0, - col2 AS col0 FROM tab0 +---- +-10 +-210 +-3807 +-47 +-99 +-99 query I rowsort label-3433 SELECT + 78 * + COUNT ( * ) AS col0 FROM tab2 @@ -21030,8 +21294,11 @@ SELECT + 44 * - col0 col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(73\)\) AS col1" at position 0 and "Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( 73 ) AS col1, - 82 AS col1 FROM tab1 +---- +-73 +-82 query I rowsort label-3437 SELECT col2 * + + 51 + 87 + col1 / col2 AS col2 FROM tab2 @@ -21211,8 +21478,11 @@ SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 * - 37 * + + 20 IS # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(77\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, COUNT ( ALL 77 ) AS col0 FROM tab0 AS cor0 +---- +3 +3 query I rowsort label-3465 SELECT DISTINCT + ( - ( - 35 ) ) + 60 - + COUNT ( * ) FROM tab1 AS cor0 @@ -22234,8 +22504,15 @@ SELECT DISTINCT + 6 FROM tab0, tab2 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 87 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 AS col2, col1 AS col2 FROM tab2 AS cor0 +---- +51 +67 +77 +87 +87 +87 query II rowsort label-3630 SELECT - col0 AS col2, + CAST ( - + col0 AS INTEGER ) + col1 FROM tab0 AS cor0 @@ -22750,8 +23027,11 @@ SELECT - col0 FROM tab0 cor0 WHERE NOT + col1 IN ( + ( - col2 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(\-20\)\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - MAX ( - 20 ) ) col2, CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 +---- +20 +NULL query II rowsort SELECT - - 40, + col2 FROM tab0 AS cor0 @@ -23229,8 +23509,11 @@ SELECT ALL + 98, col1 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 64 AS col1, 76 AS col1 FROM tab0 +---- +64 +76 query I rowsort SELECT DISTINCT - - col1 * + col2 col1 FROM tab2 AS cor0 @@ -23995,8 +24278,11 @@ SELECT DISTINCT + - SUM ( - 16 ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(cor0\.col0\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - MAX ( ALL col0 ) AS col0, + COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +3 +97 query I rowsort label-3917 SELECT - COUNT ( ALL - col1 ) AS col1 FROM tab0 @@ -24342,8 +24628,15 @@ SELECT + col0 * - 90 FROM tab1 # Datafusion - Expected - -10 # Datafusion - Expected - -8633 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \* \(\- tab0\.col0\) AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 * + ( + - col0 ) AS col0, - col2 AS col0 FROM tab0 +---- +-10 +-1335 +-47 +-7743 +-8633 +-99 query I rowsort label-3970 SELECT - ( - + COUNT ( * ) ) + + COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL @@ -24394,8 +24687,15 @@ SELECT DISTINCT - - col0 FROM tab2 AS cor0 WHERE NOT - col0 >= NULL # Datafusion - Expected - 87 # Datafusion - Expected - 0 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ \(\- tab0\.col2\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + - + col2 AS col1, col0 AS col1 FROM tab0 +---- +0 +0 +0 +15 +87 +97 query I rowsort label-3977 SELECT 31 + 60 / + col2 + - 84 FROM tab1 @@ -25269,8 +25569,15 @@ NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, col0 AS col2 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( + 49 / - 42 ) AND + 44 * col1 @@ -26041,8 +26348,15 @@ SELECT * FROM tab0 WHERE NOT - - ( - col0 ) - + col2 IS NULL # Datafusion - Expected - 21 # Datafusion - Expected - -81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col0, col1 AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +1 +21 +81 query I rowsort label-4250 SELECT - MIN ( 79 ) * - ( + COUNT ( * ) ) + - MIN ( DISTINCT - col2 ) FROM tab1 cor0 @@ -26891,8 +27205,15 @@ SELECT 84 * + 16 * - 40 * + COUNT ( * ) + 95 FROM tab0 # Datafusion - Expected - 67 # Datafusion - Expected - 1540 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \* \(\- tab2\.col1\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 * - col1 AS col2, col1 AS col2 FROM tab2 +---- +1020 +1340 +1540 +51 +67 +77 query I rowsort SELECT col1 + + - 22 AS col1 FROM tab2 AS cor0 WHERE NOT - 14 + col2 + + + 70 * col2 > + col1 @@ -26954,8 +27275,15 @@ SELECT ALL - 46 AS col0, + col1 - + col2 col1 FROM tab1 # Datafusion - Expected - 68 # Datafusion - Expected - -714 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* \(\- tab1\.col1\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * - col1 AS col0, col2 AS col0 FROM tab1 +---- +-425 +-4277 +-714 +59 +68 +96 query II rowsort SELECT ALL 69, - 58 AS col1 FROM tab0 @@ -27063,8 +27391,10 @@ SELECT + 92 * - - COUNT ( * ) AS col2 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f32780f2efd7a907754763fb1e40e79d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* cor0\.col0 \* \(\- cor0\.col1\) AS col2" at position 1 and "\(\- Int64\(39\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col0, - col1 * + col0 * - + col1 AS col2, - + 39 AS col2 FROM tab2 AS cor0 +---- +9 values hashing to baa6d91c9c8f29f1300e2b78e6a8f9a7 query I rowsort SELECT DISTINCT 50 + - col1 AS col0 FROM tab0 AS cor0 @@ -27368,8 +27698,15 @@ SELECT DISTINCT col2 col1, col2 FROM tab2 # Datafusion - Expected - -81 # Datafusion - Expected - 97 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "Int64\(\-81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, - 81 AS col1 FROM tab0 +---- +-81 +-81 +-81 +15 +87 +97 query II rowsort label-4460 SELECT DISTINCT - 8, + SUM ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 @@ -27462,8 +27799,15 @@ NULL # Datafusion - Expected - -40 # Datafusion - Expected - 129 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ Int64\(77\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 52 + 77 AS col0, - col2 AS col0 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +129 +129 +129 query I rowsort SELECT ( - col0 ) * + + 93 AS col0 FROM tab0 cor0 @@ -28423,8 +28767,15 @@ SELECT - + MIN ( DISTINCT - - 46 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col0 AS col0, col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-4636 SELECT - SUM ( + + 48 ) FROM tab0 @@ -29010,8 +29361,11 @@ SELECT DISTINCT 15 - - ( - ( - - 23 ) ) * COUNT ( * ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 29 col1, 24 AS col1 FROM tab1 +---- +24 +29 query I rowsort label-4733 SELECT DISTINCT - MIN ( DISTINCT - - 61 ) FROM tab0 AS cor0 @@ -29541,8 +29895,11 @@ SELECT + 15 * - - 59, + col1 + - 77 - - col0 * + - 53 - - 56 + - 52 + col0 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT cor0\.col2\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MIN ( DISTINCT + col2 ) AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE CAST ( - CAST ( + 87 AS INTEGER ) AS INTEGER ) + + 72 BETWEEN + col0 AND + ( - - 80 ) +---- +NULL +NULL query I rowsort SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0 WHERE 25 BETWEEN + col1 AND col0 @@ -30069,8 +30426,15 @@ SELECT ALL * FROM tab0 WHERE NULL = 75 # Datafusion - Expected - 77 # Datafusion - Expected - -5025 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* \(\- tab2\.col1\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 * - col1 AS col0, col1 AS col0 FROM tab2 +---- +-2346 +-4928 +-5025 +51 +67 +77 query I rowsort SELECT ALL - ( - col2 ) * ( col1 ) * + - col0 AS col2 FROM tab2 @@ -30673,8 +31037,11 @@ SELECT ALL col0 * + col0 + 64 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-92\)\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( ALL - 92 ) AS col0, 89 AS col0 FROM tab0 AS cor0 +---- +3 +89 query I rowsort SELECT ALL col0 * + - col1 AS col1 FROM tab1 @@ -31129,8 +31496,15 @@ SELECT DISTINCT - + 10 + + ( col0 ) FROM tab1 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- cor0\.col1\) \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, + CAST ( NULL AS INTEGER ) * - col1 * - col0 AS col0 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +NULL +NULL +NULL query I rowsort label-5082 SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab1 AS cor0 @@ -31822,8 +32196,15 @@ SELECT - col0 + + ( col1 ) * + + col1 + - 79 col0, col2 AS col2 FROM tab2 AS cor # Datafusion - Expected - 75 # Datafusion - Expected - 5 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, ( 75 ) AS col2 FROM tab1 cor0 +---- +14 +47 +5 +75 +75 +75 query I rowsort SELECT ALL ( - 98 ) - 79 FROM tab2 @@ -31856,8 +32237,15 @@ SELECT + col0 AS col0, 83 * - col2 FROM tab1 # Datafusion - Expected - -68 # Datafusion - Expected - -73 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col2" at position 0 and "\(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 73 AS col2, - col2 col2 FROM tab1 +---- +-59 +-68 +-73 +-73 +-73 +-96 query II rowsort label-5200 SELECT DISTINCT col2 - col0 / 9 + 55 AS col2, - 83 AS col1 FROM tab1 @@ -31980,8 +32368,9 @@ SELECT DISTINCT ( + + 44 ) AS col0 FROM tab0 44 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, + col1 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN 16 AND NULL +---- query I rowsort SELECT - - 88 + + + col0 FROM tab1 AS cor0 @@ -32790,8 +33179,15 @@ SELECT ALL - 15 / - col2 + ( + + col1 ) + - - 78, col0 col2 FROM tab0 AS cor0 # Datafusion - Expected - -3549 # Datafusion - Expected - -96 # Datafusion - Expected - -1989 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "\(\- tab1\.col0\) \* Int64\(40\) \+ \(\- \(\- tab1\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, - col0 * + 40 + - - col0 AS col2 FROM tab1 +---- +-1989 +-3315 +-3549 +-59 +-68 +-96 query II rowsort SELECT DISTINCT 13 * - + col0, col0 + + 49 + - + col2 * ( - + col1 ) AS col2 FROM tab2 @@ -32904,8 +33300,11 @@ SELECT col1 * + 40 col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) col1, - 62 AS col1 FROM tab1 +---- +-62 +3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 @@ -32914,8 +33313,15 @@ SELECT DISTINCT COUNT ( * ) col1, - 62 AS col1 FROM tab1 # Datafusion - Expected - 3080 # Datafusion - Expected - -87 # Datafusion - Expected - 3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) \- cor0\.col2 AS col2" at position 0 and "cor0\.col1 \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 29 ) - col2 AS col2, col1 * col2 AS col2 FROM tab2 AS cor0 +---- +-52 +-69 +-87 +1173 +3080 +3886 query I rowsort SELECT ALL - 90 FROM tab1 WHERE col1 NOT BETWEEN NULL AND col0 @@ -34096,8 +34502,15 @@ SELECT col0 * + + col0 * 33 AS col1 FROM tab2 # Datafusion - Expected - 48 # Datafusion - Expected - -49115 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* Int64\(11\) \* \(\- tab0\.col2\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 95 * 11 * - col2 AS col2, 48 col2 FROM tab0 +---- +-103455 +-10450 +-49115 +48 +48 +48 query I rowsort SELECT ALL - + 89 FROM tab0 WHERE ( NOT ( col0 ) < col1 - - col0 ) @@ -34295,8 +34708,15 @@ SELECT col1 * col0, + ( 58 ) / - 64 AS col2 FROM tab2 # Datafusion - Expected - 15 # Datafusion - Expected - 99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* tab0\.col1 AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * + + col1 AS col2, col0 AS col2 FROM tab0 +---- +15 +210 +3807 +87 +97 +99 query I rowsort label-5607 SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT NULL < col1 @@ -34567,8 +34987,15 @@ SELECT * FROM tab1 WHERE NOT NULL BETWEEN col1 + - col0 AND + 11 # Datafusion - Expected - -36 # Datafusion - Expected - 91 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 col1, - 36 AS col1 FROM tab1 +---- +-36 +-36 +-36 +51 +85 +91 query III rowsort SELECT DISTINCT * FROM tab0 WHERE - 48 BETWEEN - col2 * + - col2 AND NULL @@ -34766,8 +35193,15 @@ SELECT + 81 AS col0 FROM tab1 cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 0 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / \(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 / - col0 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +0 +0 +0 +23 +40 +58 query I rowsort label-5684 SELECT + 86 / - + SUM ( DISTINCT col1 ) col2 FROM tab1 AS cor0 @@ -34800,8 +35234,15 @@ SELECT DISTINCT + ( 49 ) FROM tab2 # Datafusion - Expected - 98 # Datafusion - Expected - 36 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 36 col0, + 98 AS col0 FROM tab1 +---- +36 +36 +36 +98 +98 +98 query II rowsort label-5689 SELECT ALL CAST ( NULL AS INTEGER ) AS col1, COUNT ( 60 ) FROM tab0 @@ -34911,8 +35352,9 @@ SELECT ALL 81 * - MAX ( + col1 ) AS col0 FROM tab1 AS cor0 WHERE ( - ( 29 ) NOT -3807 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \* cor0\.col0 AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col1 * + col0 col1, 31 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + ( + - ( - col0 ) ) AND + - 53 +---- # Datafusion - Datafusion expected results: # Datafusion - Expected - 140 @@ -34921,8 +35363,15 @@ SELECT DISTINCT - - col1 * + col0 col1, 31 AS col1 FROM tab2 AS cor0 WHERE NULL # Datafusion - Expected - 97 # Datafusion - Expected - 68 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \+ Int64\(99\) \+ Int64\(56\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + + + 99 + 56 AS col1, ( + col0 ) col1 FROM tab0 +---- +140 +15 +58 +68 +87 +97 query I rowsort label-5708 SELECT ALL ( + - COUNT ( * ) ) - + COUNT ( * ) FROM tab2 @@ -35618,8 +36067,15 @@ SELECT COUNT ( * ) / - 92 FROM tab2 # Datafusion - Expected - -7 # Datafusion - Expected - 97 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(60\) \+ \(\- Int64\(67\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, 60 + - + 67 AS col2 FROM tab0 +---- +-7 +-7 +-7 +15 +87 +97 query I rowsort label-5818 SELECT DISTINCT - SUM ( + + 59 ) FROM tab2 @@ -36061,8 +36517,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ), + COUNT ( * ) FROM tab2 AS cor0 +---- +3 +3 query I rowsort label-5898 SELECT ALL - + col1 * - col0 / + col0 + - col0 FROM tab1 AS cor0 @@ -36188,8 +36647,9 @@ SELECT - 26 AS col1, 86 + COUNT ( * ) FROM tab1 cor0 89 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(18\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90 * 18 AS col2, col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL +---- query I rowsort label-5921 SELECT DISTINCT MIN ( - - col0 ) FROM tab0 AS cor0 @@ -36275,8 +36735,11 @@ SELECT DISTINCT col2 * 48 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 98 col1 FROM tab2 +---- +3 +98 query III rowsort label-5933 SELECT * FROM tab1 WHERE NOT col1 - - col2 NOT BETWEEN ( + CAST ( NULL AS INTEGER ) * + 73 ) AND ( NULL ) @@ -36308,8 +36771,15 @@ SELECT DISTINCT col0 FROM tab2 WHERE - - col0 + + col2 * + 62 NOT IN ( - - 54 ) # Datafusion - Expected - 77 # Datafusion - Expected - -75 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, + col1 AS col0 FROM tab2 +---- +-46 +-64 +-75 +51 +67 +77 query I rowsort SELECT ALL + col0 FROM tab2 cor0 WHERE col1 NOT IN ( + - col0 * + 15 ) @@ -36640,8 +37110,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) + + 55 AS col0, 71 AS col0 FROM tab2 AS cor0 +---- +52 +71 query III rowsort label-5992 SELECT * FROM tab2 AS cor0 WHERE col0 * CAST ( + - CAST ( NULL AS INTEGER ) AS FLOAT8 ) + + + col2 <> NULL @@ -36737,8 +37210,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, - 22 AS col1 FROM tab2 AS cor0 WHERE NOT col0 + - col1 + col1 IN ( - - col0 / - col0, col0 ) +---- +-22 +0 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( ( NOT + 51 IS NULL ) ) ) @@ -36976,8 +37452,11 @@ SELECT DISTINCT col1 * - - 86 * - - col1 + + - 85 + 53 / 26 * + ( + - col0 ) FRO # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, COUNT ( * ) + + 30 AS col0 FROM tab0 +---- +3 +33 query I rowsort label-6045 SELECT DISTINCT MIN ( DISTINCT + col1 ) * - CAST ( COUNT ( * ) AS INTEGER ) + + - 85 FROM tab2 @@ -38876,8 +39355,15 @@ SELECT 87 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL # Datafusion - Expected - 58 # Datafusion - Expected - 97 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, 58 AS col1 FROM tab0 +---- +15 +58 +58 +58 +87 +97 query II rowsort label-6361 SELECT 2 AS col0, CAST ( + - AVG ( - col0 ) AS INTEGER ) FROM tab0 AS cor0 @@ -39057,8 +39543,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ), - COUNT ( * ) FROM tab2 cor0 +---- +-3 +-3 query I rowsort SELECT - - 18 AS col2 FROM tab0 AS cor0 @@ -39174,8 +39663,11 @@ SELECT * FROM tab0 cor0 WHERE NOT - col2 / + col0 BETWEEN NULL AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 7744 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* sum\(cor0\.col2\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 * SUM ( + col2 ) AS col2, 47 AS col2 FROM tab2 AS cor0 +---- +47 +7744 query I rowsort label-6411 SELECT ALL CAST ( - MIN ( - 99 ) AS INTEGER ) FROM tab0 AS cor0 @@ -40791,8 +41283,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > - ( - - 88 ) # Datafusion - Expected - -59 # Datafusion - Expected - 588 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \* Int64\(42\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + ( - col1 ) * + 42 AS col0, ( - col2 ) AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +1974 +210 +588 query I rowsort label-6669 SELECT DISTINCT - 97 * + COUNT ( * ) - + + 24 FROM tab1 AS cor0 @@ -40811,8 +41310,15 @@ SELECT DISTINCT - + MAX ( ALL + col2 ) FROM tab0 AS cor0 # Datafusion - Expected - -15 # Datafusion - Expected - -99 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + ( + col2 ) AS col1, - col0 AS col1 FROM tab0 AS cor0 +---- +-10 +-15 +-47 +-87 +-97 +-99 query II rowsort SELECT DISTINCT - 11 AS col0, col2 AS col2 FROM tab0 @@ -42351,8 +42857,15 @@ SELECT ALL + 28, + col0 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- CAST\(cor0\.col1 AS Int32\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col1, - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0 +---- +-14 +-14 +-47 +-47 +-5 +-5 query II rowsort SELECT DISTINCT + col1 col0, + col2 AS col1 FROM tab0 AS cor0 @@ -42533,8 +43046,15 @@ NULL # Datafusion - Expected - 31 # Datafusion - Expected - 91 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, + 31 AS col2 FROM tab1 +---- +31 +31 +31 +51 +85 +91 query I rowsort SELECT ALL + ( 77 ) AS col1 FROM tab0 @@ -42606,8 +43126,15 @@ SELECT DISTINCT 37 + + col2 FROM tab1 AS cor0 # Datafusion - Expected - 1363 # Datafusion - Expected - 170 # Datafusion - Expected - 406 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ Int64\(74\) AS col0" at position 0 and "Int64\(\-29\) \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 + 74 col0, - 29 * - col1 AS col0 FROM tab1 AS cor0 +---- +133 +1363 +142 +145 +170 +406 query I rowsort label-6969 SELECT - MIN ( + ( - col0 ) ) + + + COUNT ( * ) AS col0 FROM tab1 AS cor0 @@ -44016,8 +44543,15 @@ SELECT DISTINCT - ( + ( 25 ) ) * - col2 FROM tab2 # Datafusion - Expected - 8217 # Datafusion - Expected - 17 # Datafusion - Expected - 830 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "cor0\.col2 \* Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 AS col0, + col2 * + 83 AS col0 FROM tab0 AS cor0 +---- +17 +17 +17 +3901 +8217 +830 query I rowsort SELECT DISTINCT 66 * - - col1 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL @@ -44650,8 +45184,10 @@ SELECT 26 col0 FROM tab1, tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to fed65e03a84cf71719073c5b6e02570f -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "Int64\(\-58\) \* \(\- tab1\.col1\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL col0 AS col2, + col0 / col1 * + col0 AS col0, - 58 * - + col1 AS col2 FROM tab1 +---- +9 values hashing to 4bcd9da1b9f72d9ecb399aeb59a95153 query I rowsort SELECT DISTINCT ( - col0 ) * + 29 + - + 93 AS col0 FROM tab1 @@ -44736,8 +45272,15 @@ SELECT DISTINCT col1 + - col0 + 40 / - col1 / + 86 AS col0 FROM tab2 WHERE col1 # Datafusion - Expected - 75 # Datafusion - Expected - -77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col1, col0 AS col1 FROM tab2 +---- +-51 +-67 +-77 +46 +64 +75 query III rowsort SELECT * FROM tab2 WHERE NOT + ( col1 ) >= ( NULL ) @@ -45892,8 +46435,15 @@ SELECT ALL + - 4 + + + ( MAX ( + CAST ( - - col1 AS INTEGER ) ) ) AS col1 FROM t # Datafusion - Expected - 206 # Datafusion - Expected - 47 # Datafusion - Expected - 3446 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "cor0\.col1 \+ cor0\.col0 \* CAST\(\(\- cor0\.col2\) AS Int32\) \+ cor0\.col1 \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 AS col0, col1 + col0 * + + CAST ( - col2 AS INTEGER ) + + col1 * col1 AS col0 FROM tab2 AS cor0 +---- +1594 +206 +3446 +47 +47 +47 query III rowsort SELECT * FROM tab0 AS cor0 WHERE col2 + + - col2 + - 4 IS NULL @@ -46219,8 +46769,15 @@ SELECT ALL + col2, - col0 AS col0 FROM tab1 # Datafusion - Expected - 87 # Datafusion - Expected - 81 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col1 AS col2, col0 col2 FROM tab0 cor0 +---- +1 +15 +21 +81 +87 +97 query I rowsort label-7553 SELECT DISTINCT + + 89 / + + COUNT ( * ) AS col1 FROM tab2 AS cor0 @@ -46645,8 +47202,11 @@ SELECT * FROM tab1 AS cor0 WHERE ( - col0 IS NOT NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \- max\(cor0\.col2\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - CAST ( NULL AS INTEGER ) - MAX ( col2 ) - - COUNT ( * ) AS col2, 3 AS col2 FROM tab2 AS cor0 +---- +3 +NULL query I rowsort label-7622 SELECT ALL - - ( + CAST ( col0 AS INTEGER ) ) AS col0 FROM tab1 AS cor0 @@ -47705,8 +48265,15 @@ SELECT - 25 / 35 + - col2 - 52 AS col2 FROM tab2 AS cor0 WHERE - col1 IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - -33 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* \(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 33 AS col1, + CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab0 +---- +-33 +-33 +-33 +NULL +NULL +NULL query I rowsort SELECT ( - col2 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL @@ -47781,8 +48348,15 @@ SELECT DISTINCT + 64 * COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Expected - 5929 # Datafusion - Expected - -6675 # Datafusion - Expected - 4489 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(89\) AS col0" at position 0 and "\(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col0 * + 89 AS col0, - col1 * + - col1 AS col0 FROM tab2 AS cor0 +---- +-4094 +-5696 +-6675 +2601 +4489 +5929 query III rowsort label-7813 SELECT * FROM tab2 WHERE NOT NULL BETWEEN - col1 + + col0 - - col0 * + col1 AND 66 + col0 * 82 / - 22 * + 8 + - - col1 + CAST ( NULL AS INTEGER ) @@ -47967,8 +48541,15 @@ SELECT MAX ( ALL + + col1 ) * + CAST ( - 51 AS INTEGER ) FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - 76 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 AS col1, + col0 AS col1 FROM tab2 +---- +46 +64 +75 +76 +76 +76 query I rowsort SELECT ALL + col1 * - - col2 FROM tab0 @@ -48939,8 +49520,9 @@ SELECT DISTINCT + ( + 3 ) AS col2 FROM tab2 AS cor0 WHERE NULL > col0 * - + col1 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - 92 ) AS col0, + col2 col0 FROM tab1 AS cor0 WHERE ( 24 ) > ( NULL ) +---- query I rowsort SELECT DISTINCT col1 * col1 + 83 - + col0 AS col0 FROM tab1 AS cor0 @@ -49322,8 +49904,15 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - -686 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col0\) \* cor0\.col1 \+ cor0\.col1 AS col0" at position 0 and "cor0\.col1 \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 + - col0 * col1 + col1 AS col0, col1 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 +---- +-415 +-4183 +-686 +NULL +NULL +NULL query I rowsort SELECT DISTINCT + col2 * + col2 - 1 AS col1 FROM tab1 AS cor0 @@ -50421,8 +51010,11 @@ SELECT - 21 / ( - ( 56 ) ) * + col0 + - col1 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\(\-42\) AS col1" at position 0 and "Int64\(71\) / \(\- min\(tab2\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 42 AS col1, 71 / + - MIN ( + col2 ) AS col1 FROM tab2 +---- +-3 +-42 query I rowsort SELECT ALL - 29 + - col0 - + col1 * - 24 FROM tab0 @@ -50625,8 +51217,15 @@ SELECT DISTINCT * FROM tab0 WHERE NOT - col0 < + ( + col0 ) # Datafusion - Expected - 47 # Datafusion - Expected - 9 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 9 AS col2, + col1 AS col2 FROM tab1 +---- +14 +47 +5 +9 +9 +9 query III rowsort SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND 96 @@ -50893,8 +51492,11 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 + + - CAST ( NULL AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - CAST ( NULL AS FLOAT8 ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +3 +NULL query I rowsort SELECT DISTINCT + ( - - 48 ) FROM tab1 AS cor0 @@ -50922,8 +51524,15 @@ SELECT col0 col1 FROM tab0 WHERE NOT + 60 IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - -20 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) / Int64\(86\) \+ \(\- Int64\(20\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- Int64\(99\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 / 86 + ( - ( + 20 ) ) AS col2, + CAST ( NULL AS INTEGER ) + - + 99 AS col2 FROM tab0 AS cor0 +---- +-20 +-20 +-20 +NULL +NULL +NULL query I rowsort SELECT 84 AS col2 FROM tab0 WHERE NOT - 95 IS NOT NULL @@ -50958,8 +51567,15 @@ SELECT + + col1, ( + col1 ) - + col1 - - + col2 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -25 # 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 "Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 21 AS col2, - 25 AS col2 FROM tab2 AS cor0 +---- +-25 +-25 +-25 +21 +21 +21 query I rowsort label-8327 SELECT - MIN ( + col0 ) AS col1 FROM tab1 AS cor0 @@ -51358,8 +51974,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, 51 AS col0 FROM tab0 +---- +-3 +51 query I rowsort SELECT col1 + + + 94 FROM tab2 @@ -51497,8 +52116,15 @@ SELECT + 13 * - col0 FROM tab0 WHERE NOT + - 79 <= NULL # Datafusion - Expected - -68 # Datafusion - Expected - 68 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col1" at position 0 and "\(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 AS col1, - col2 col1 FROM tab1 +---- +-59 +-68 +-96 +68 +68 +68 query I rowsort label-8412 SELECT ALL CAST ( NULL AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 ) @@ -52155,8 +52781,15 @@ SELECT ALL + 36 * + - 64 + - col2 * 34 AS col2 FROM tab2 # Datafusion - Expected - -77 # Datafusion - Expected - -99 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(\-77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col2, - 77 AS col2 FROM tab0 cor0 +---- +-10 +-47 +-77 +-77 +-77 +-99 query III rowsort SELECT * FROM tab1 AS cor0 WHERE - 63 - col2 < 95 @@ -52228,8 +52861,15 @@ SELECT ALL ( + + 2 ) / + col0 FROM tab1 # Datafusion - Expected - 83 # Datafusion - Expected - 75 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( col0 ) AS col2, 83 AS col2 FROM tab2 cor0 +---- +46 +64 +75 +83 +83 +83 query I rowsort label-8533 SELECT 66 * COUNT ( * ) FROM tab1 cor0 @@ -52395,8 +53035,15 @@ SELECT ALL * FROM tab0 WHERE NULL NOT IN ( col0 + - col0, - col0, col0 ) # Datafusion - Expected - 18 # Datafusion - Expected - -77 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col2" at position 0 and "Int64\(18\) \+ tab2\.col0 \- tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, 18 + col0 - ( + col0 ) AS col2 FROM tab2 +---- +-51 +-67 +-77 +18 +18 +18 query I rowsort label-8561 SELECT ALL - COUNT ( ALL + 86 ) AS col0 FROM tab1 @@ -54313,8 +54960,15 @@ SELECT ALL 14 + - + col0 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 68 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "cor0\.col2 \* cor0\.col0 \+ CAST\(NULL AS Int32\) / \(\- \(\- cor0\.col0\)\) \- cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 AS col2, + col2 * col0 + CAST ( NULL AS INTEGER ) / - ( - col0 ) - ( col0 ) AS col2 FROM tab1 AS cor0 +---- +68 +68 +68 +NULL +NULL +NULL query I rowsort label-8874 SELECT ALL CAST ( NULL AS INTEGER ) - + MAX ( ALL col2 ) col2 FROM tab2 AS cor0 @@ -54699,8 +55353,11 @@ 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\(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\. +query II valuesort SELECT - - COUNT ( * ) / - COUNT ( * ) - - 93 * - COUNT ( * ) AS col2, - COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +-280 +-3 query I rowsort label-8937 SELECT - col2 - - ( - - col0 ) / - col2 AS col2 FROM tab0 cor0 @@ -55800,8 +56457,15 @@ SELECT DISTINCT 27 col2, - col2 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, + col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT ALL - 29 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) @@ -56009,8 +56673,15 @@ SELECT ( + - 38 ) FROM tab0 AS cor0 # Datafusion - Expected - 55 # Datafusion - Expected - -91 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, + 55 AS col1 FROM tab1 +---- +-51 +-85 +-91 +55 +55 +55 query II rowsort label-9163 SELECT ALL + CAST ( - + ( 59 ) AS INTEGER ) AS col2, COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -56468,8 +57139,15 @@ SELECT DISTINCT col2 * + ( + col0 ) AS col0, + col0 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -77 # Datafusion - Expected - 2552 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab2\.col2\)\) \* Int64\(44\) AS col0" at position 0 and "\(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - - col2 ) * + 44 AS col0, - col1 AS col0 FROM tab2 +---- +-51 +-67 +-77 +1012 +1760 +2552 query I rowsort SELECT + - 3 col0 FROM tab1 AS cor0 @@ -56500,8 +57178,15 @@ SELECT - - col0 + + col1 * + - 61 + + col2 AS col0, col0 FROM tab1 AS cor0 # Datafusion - Expected - 15 # Datafusion - Expected - -99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 col2, col0 AS col2 FROM tab0 cor0 +---- +-10 +-47 +-99 +15 +87 +97 query I rowsort label-9244 SELECT DISTINCT + col0 + + col2 / - col0 + col2 AS col1 FROM tab0 cor0 @@ -57138,8 +57823,15 @@ NULL # Datafusion - Expected - 76 # Datafusion - Expected - 86 # Datafusion - Expected - 156 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \+ tab0\.col1 AS col2" at position 0 and "tab0\.col1 \+ Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 + col1 AS col2, col1 + + 75 AS col2 FROM tab0 +---- +156 +26 +6 +76 +86 +96 query I rowsort SELECT ALL col1 + - + 26 * + - col0 AS col0 FROM tab2 AS cor0 @@ -57481,8 +58173,15 @@ SELECT ALL COUNT ( * ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 80 # Datafusion - Expected - 950697 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* \(\- tab0\.col2\) \* \(\- tab0\.col2\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 * - col2 * - col2 col1, 80 AS col1 FROM tab0 +---- +33135 +80 +80 +80 +8700 +950697 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -57770,8 +58469,15 @@ SELECT ALL - + 3 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 5488 # Datafusion - Expected - NULL # Datafusion - Expected - 5488 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(98\) \* Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) col1, + 98 * + 56 AS col1 FROM tab0 +---- +5488 +5488 +5488 +NULL +NULL +NULL query II rowsort SELECT 41 AS col0, - col1 FROM tab2 @@ -58293,8 +58999,15 @@ SELECT ALL + CAST ( + - col2 AS INTEGER ) AS col2 FROM tab1 # Datafusion - Expected - 93 # Datafusion - Expected - -77 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - col1 ) AS col1, 93 AS col1 FROM tab2 +---- +-51 +-67 +-77 +93 +93 +93 query I rowsort SELECT - col1 + 87 AS col0 FROM tab0 WHERE NULL <> ( - col0 ) @@ -58452,8 +59165,15 @@ SELECT ALL + MAX ( DISTINCT - 24 ) FROM tab1 WHERE col0 IS NOT NULL # Datafusion - Expected - 85 # Datafusion - Expected - 83 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 83 AS col2, col0 AS col2 FROM tab1 +---- +51 +83 +83 +83 +85 +91 query I rowsort SELECT DISTINCT - 36 * + + col1 FROM tab2 @@ -58671,8 +59391,15 @@ SELECT DISTINCT SUM ( DISTINCT - 87 ) FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col2, col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT DISTINCT + + col0 FROM tab1 WHERE NOT - 82 BETWEEN - 36 AND - col2 - - col2 @@ -59079,8 +59806,15 @@ SELECT ALL - col2 * col2 col1, col0 / - - 32 FROM tab1 AS cor0 # Datafusion - Expected - 2209 # Datafusion - Expected - 8 # Datafusion - Expected - 9801 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "tab0\.col2 \* tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 8 AS col1, col2 * + + col2 AS col1 FROM tab0 +---- +100 +2209 +8 +8 +8 +9801 query I rowsort SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT + col1 = 59 + 43 @@ -59710,8 +60444,15 @@ SELECT DISTINCT - col2 * + 37 * col1 * 84 AS col2 FROM tab2 # Datafusion - Expected - 49 # Datafusion - Expected - 282900 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \* \(\- tab2\.col0\) \* Int64\(\-82\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 46 * - col0 * - 82 col1, + 49 AS col1 FROM tab2 +---- +173512 +241408 +282900 +49 +49 +49 query I rowsort SELECT DISTINCT - ( - col2 ) + ( + col2 ) FROM tab1 @@ -60485,8 +61226,15 @@ SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL # Datafusion - Expected - -64 # Datafusion - Expected - -58 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col2, - col0 AS col2 FROM tab2 cor0 +---- +-23 +-40 +-46 +-58 +-64 +-75 query I rowsort SELECT DISTINCT + + col1 AS col1 FROM tab2 AS cor0 WHERE - 61 IS NULL @@ -60499,8 +61247,15 @@ SELECT DISTINCT + + col1 AS col1 FROM tab2 AS cor0 WHERE - 61 IS NULL # Datafusion - Expected - 91 # Datafusion - Expected - 5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, + col0 col2 FROM tab1 cor0 +---- +14 +47 +5 +51 +85 +91 query I rowsort label-9894 SELECT ALL + CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 diff --git a/data/sqlite/random/aggregates/slt_good_112.slt b/data/sqlite/random/aggregates/slt_good_112.slt index be11cfd..2cbbf45 100644 --- a/data/sqlite/random/aggregates/slt_good_112.slt +++ b/data/sqlite/random/aggregates/slt_good_112.slt @@ -411,8 +411,12 @@ SELECT * FROM tab0 WHERE NOT - 69 * - - 64 * col0 BETWEEN ( - 70 * - - 65 ) AND # Datafusion - Expected - 0 # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(92\)\) AS col0" at position 1 and "\(\- Int64\(18\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL COUNT ( DISTINCT + col2 ), COUNT ( + ( + 92 ) ) col0, - + 18 * + COUNT ( * ) AS col0 FROM tab2 WHERE CAST ( - CAST ( - col2 AS INTEGER ) AS FLOAT8 ) IS NULL +---- +0 +0 +0 query I rowsort SELECT ( - + ( - + col2 ) ) AS col2 FROM tab0 @@ -581,8 +585,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab2 +---- +3 +3 query II rowsort SELECT ALL col1, 4 FROM tab1 @@ -1595,8 +1602,15 @@ SELECT DISTINCT col0 * - - ( col2 ) AS col2 FROM tab0 # Datafusion - Expected - -67 # Datafusion - Expected - 54 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \+ tab2\.col1 AS col0" at position 0 and "\(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 23 + + col1 AS col0, + ( - col1 ) AS col0 FROM tab2 +---- +-51 +-67 +-77 +28 +44 +54 query I rowsort label-266 SELECT ALL - col1 + col2 + col2 / - - 5 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL @@ -1979,8 +1993,15 @@ SELECT + col2 FROM tab2 AS cor0 WHERE ( NULL IS NULL ) # Datafusion - Expected - 15 # Datafusion - Expected - 79900 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(25\) \* cor0\.col1 AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * 25 * + col1 AS col1, 15 AS col1 FROM tab1 cor0 +---- +15 +15 +15 +33600 +7375 +79900 query I rowsort label-328 SELECT SUM ( - col1 ) * + ( - 52 ) * 69 FROM tab2 @@ -1999,8 +2020,15 @@ SELECT ( - 34 ) * + 14 + COUNT ( * ) FROM tab0 # Datafusion - Expected - -40 # Datafusion - Expected - 58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, - col2 AS col0 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +23 +40 +58 query II rowsort label-331 SELECT - 29 AS col0, MAX ( DISTINCT - + col0 ) FROM tab2 AS cor0 @@ -3016,8 +3044,15 @@ SELECT * FROM tab1 AS cor0 WHERE ( + col0 ) NOT IN ( 72 + + + col1 ) # Datafusion - Expected - 15 # Datafusion - Expected - 9603 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* \(\- cor0\.col0\) \* cor0\.col2 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * - col0 * + + col2 AS col2, col0 AS col2 FROM tab0 AS cor0 +---- +15 +18270 +57105 +87 +9603 +97 query I rowsort SELECT ALL ( + col2 ) * + col1 AS col0 FROM tab1 @@ -3867,8 +3902,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT NULL > col1 + + 9 # Datafusion - Expected - 22 # Datafusion - Expected - -940 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \* cor0\.col1 \+ \(\- cor0\.col1\) AS col2" at position 0 and "Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 19 * col1 + + - col1 AS col2, 22 AS col2 FROM tab1 AS cor0 +---- +-100 +-280 +-940 +22 +22 +22 query I rowsort SELECT + 56 * + - col1 + col1 FROM tab2 AS cor0 @@ -3888,8 +3930,9 @@ SELECT - COUNT ( * ) + + + ( + - 5 ) AS col0 FROM tab2 -8 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \- tab0\.col0 \+ \(\- tab0\.col1\) AS col1" at position 0 and "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + col2 - col0 + - + col1 AS col1, + 58 AS col1, - + 61 AS col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL +---- query I rowsort SELECT ALL + 18 FROM tab2 cor0 WHERE col0 / + ( 69 ) IS NOT NULL @@ -3954,8 +3997,11 @@ 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 "max\(DISTINCT \(\- cor0\.col2\)\) AS col0" at position 0 and "count\(\(\- cor0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + MAX ( DISTINCT - col2 ) AS col0, + COUNT ( + - col1 ) col0 FROM tab2 AS cor0 +---- +-23 +3 query I rowsort SELECT DISTINCT - - 92 * + col2 * 71 AS col1 FROM tab2 cor0 @@ -5921,8 +5967,15 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col0\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col1 AS col2, - col0 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 +---- +14 +47 +5 +NULL +NULL +NULL query III rowsort SELECT ALL * FROM tab1 WHERE + + ( - col1 ) / + - col1 IN ( - col1, 34 - col1 + - col1 ) @@ -6053,8 +6106,11 @@ SELECT * FROM tab0 AS cor0 WHERE NOT + col1 - - - col1 * + col0 = - col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ min\(tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, COUNT ( * ) + MIN ( col2 ) AS col0 FROM tab1 +---- +3 +62 query I rowsort label-1012 SELECT DISTINCT COUNT ( + - col1 ) AS col1 FROM tab2 WHERE NULL > 64 @@ -6096,8 +6152,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= + col1 * 1 + col0 # Datafusion - Expected - 45 # Datafusion - Expected - -99 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, 45 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +45 +45 +45 query I rowsort SELECT DISTINCT - 7 FROM tab0 AS cor0 WHERE NOT - 54 IS NULL @@ -6377,8 +6440,11 @@ SELECT DISTINCT + COUNT ( * ) / + 21 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(44\)\) AS col0" at position 0 and "Int64\(\-4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - + 44 ) AS col0, - 4 col0 FROM tab0 +---- +-4 +-44 query I rowsort label-1068 SELECT 18 / col1 FROM tab0 @@ -7236,8 +7302,15 @@ SELECT - 16 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col2, col1 AS col2 FROM tab1 cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-1204 SELECT - 38 - - COUNT ( * ) FROM tab2 AS cor0 @@ -8856,8 +8929,15 @@ SELECT ALL COUNT ( * ) - + 20 + COUNT ( * ) + - - 3 FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, col2 FROM tab2 WHERE NOT NULL IS NOT NULL +---- +23 +23 +40 +40 +58 +58 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE 97 * col2 BETWEEN NULL AND + + col0 + + 84 @@ -9380,8 +9460,15 @@ SELECT DISTINCT + 84 FROM tab0 AS cor0 WHERE NOT NULL > col2 # Datafusion - Expected - 148 # Datafusion - Expected - 31 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col1" at position 0 and "cor0\.col0 \+ Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 31 AS col1, col0 + 51 AS col1 FROM tab0 AS cor0 +---- +138 +148 +31 +31 +31 +66 query I rowsort label-1554 SELECT - ( COUNT ( * ) ) * - 97 * - - COUNT ( * ) FROM tab1 AS cor0 @@ -10476,8 +10563,15 @@ NULL # Datafusion - Expected - 44 # Datafusion - Expected - 99 # Datafusion - Expected - 126 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(29\) \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, 29 + + col0 AS col1 FROM tab0 AS cor0 +---- +10 +116 +126 +44 +47 +99 query I rowsort SELECT - ( + 16 ) AS col1 FROM tab0 AS cor0 WHERE 82 IS NULL @@ -12716,8 +12810,11 @@ SELECT ALL * FROM tab2 cor0 WHERE NOT NULL >= col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab0 +---- +0 +3 query I rowsort SELECT + col0 FROM tab1 WHERE - - col0 IS NULL @@ -12793,8 +12890,15 @@ SELECT ALL * FROM tab0, tab0 AS cor0 WHERE NOT + 1 IS NOT NULL # Datafusion - Expected - 0 # Datafusion - Expected - -91 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 / Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, + col2 / 72 AS col1 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +0 +0 +1 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -15266,8 +15370,15 @@ SELECT DISTINCT col2 + + + col1 + - 3 col2 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \- \(\- cor0\.col0\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - - col1 ) - - + col0 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 +---- +141 +142 +97 +NULL +NULL +NULL query I rowsort label-2527 SELECT ALL - - CAST ( NULL AS INTEGER ) + + col0 + - col0 * col0 FROM tab2 AS cor0 @@ -15319,8 +15430,15 @@ SELECT ALL col1 AS col0, 32 * - - ( - col0 ) FROM tab1 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col0, col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT ALL + col0 * - + col2 AS col0 FROM tab0 WHERE NOT + - col0 NOT IN ( + col0 ) @@ -16278,8 +16396,15 @@ SELECT ALL + - COUNT ( ALL + col1 ) FROM tab0 AS cor0 # Datafusion - Expected - -14 # Datafusion - Expected - 58 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(\-14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 col1, - 14 AS col1 FROM tab2 AS cor0 +---- +-14 +-14 +-14 +23 +40 +58 query I rowsort label-2690 SELECT + 89 * + COUNT ( * ) + - 3 AS col0 FROM tab0 AS cor0 @@ -17143,8 +17268,15 @@ SELECT - MIN ( col2 ) + - 52 FROM tab1 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\)" at position 0 and "\(\- tab1\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1, - col1 FROM tab1 +---- +-14 +-14 +-47 +-47 +-5 +-5 query I rowsort label-2831 SELECT ( - 1 ) * + COUNT ( * ) + - SUM ( - col0 ) FROM tab1 @@ -17654,8 +17786,15 @@ SELECT DISTINCT + + 6 - - col2 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - -500 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* \(\- Int64\(10\)\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 50 * - ( 10 ) AS col0, - col0 AS col0 FROM tab0 AS cor0 +---- +-15 +-500 +-500 +-500 +-87 +-97 query I rowsort SELECT col1 - - col1 * - col2 FROM tab2 AS cor0 @@ -17942,8 +18081,15 @@ SELECT ALL + - col2 col1, - 81 FROM tab0 AS cor0 # Datafusion - Expected - -4489 # Datafusion - Expected - -57 # Datafusion - Expected - -5929 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col0" at position 0 and "cor0\.col1 \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 57 AS col0, col1 * - col1 AS col0 FROM tab2 AS cor0 +---- +-2601 +-4489 +-57 +-57 +-57 +-5929 query I rowsort label-2961 SELECT - - COUNT ( * ) * - COUNT ( * ) + + + COUNT ( * ) col2 FROM tab1 WHERE col1 - - 43 / + - 50 + col2 IS NOT NULL @@ -18128,8 +18274,10 @@ SELECT col2 col0, ( - col0 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 98b99a149b93d97c36e543938cbd2de5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\)" at position 0 and "Int64\(52\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 52, 52, - + ( - - col1 ) AS col1 FROM tab1 +---- +9 values hashing to 66ba4261949d859ad4a7bd3fa720bf28 query I rowsort label-2992 SELECT DISTINCT - ( - - CAST ( + col2 AS INTEGER ) ) FROM tab1 AS cor0 @@ -18315,8 +18463,15 @@ SELECT DISTINCT + 3 AS col0 FROM tab2 AS cor0 WHERE NOT NULL < - col2 * - + col1 # Datafusion - Expected - 68 # Datafusion - Expected - -5 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, + col2 AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +59 +68 +96 query I rowsort label-3022 SELECT ALL MAX ( DISTINCT + 8 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL @@ -18485,8 +18640,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT NULL = col1 * + 58 - - 98 # Datafusion - Expected - 58 # Datafusion - Expected - 97 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 col2, 58 AS col2 FROM tab0 AS cor0 +---- +15 +58 +58 +58 +87 +97 query I rowsort label-3049 SELECT - CAST ( - 30 AS INTEGER ) AS col0 FROM tab0 AS cor0 @@ -18502,8 +18664,15 @@ SELECT - CAST ( - 30 AS INTEGER ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - -1 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 / \(\- tab2\.col0\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 / + - col0 AS col0, col1 AS col0 FROM tab2 +---- +-1 +-1 +-1 +51 +67 +77 query I rowsort SELECT 10 * + + 13 FROM tab2 @@ -18823,8 +18992,15 @@ SELECT * FROM tab0 AS cor0 WHERE + 66 * - + col1 + - col2 * + ( + col1 ) <= + co # Datafusion - Expected - -1600 # Datafusion - Expected - NULL # Datafusion - Expected - -1875 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) \- Int64\(19\) \+ cor0\.col1 AS col0" at position 0 and "Int64\(25\) \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - CAST ( NULL AS INTEGER ) - 19 + col1 AS col0, + ( + + 25 ) * - col0 AS col0 FROM tab2 AS cor0 +---- +-1150 +-1600 +-1875 +NULL +NULL +NULL query I rowsort SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE - col0 - - - 42 IS NULL @@ -19879,8 +20055,15 @@ SELECT COUNT ( * ) + ( + 7 ) FROM tab1 AS cor0 # Datafusion - Expected - 150 # Datafusion - Expected - -2 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) / \(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col0 \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 94 / - col0 col1, + col0 + col0 AS col1 FROM tab2 AS cor0 +---- +-1 +-1 +-2 +128 +150 +92 query I rowsort label-3277 SELECT 76 + + col2 * + CAST ( + - col1 AS INTEGER ) - - + col1 + + + col2 FROM tab2 AS cor0 @@ -20414,8 +20597,15 @@ SELECT - col1 col0, + ( 38 ) - + 71 + - col0 * col0 - + 14 AS col1 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, + col1 AS col2 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT DISTINCT + col1 + col1 * - col1 AS col0 FROM tab2 @@ -21782,8 +21972,15 @@ SELECT DISTINCT - col1 - - + col0 * CAST ( - + col1 AS INTEGER ) FROM tab2 AS co # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col0, + col0 FROM tab0 cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT - 74 * + 68 FROM tab1 cor0 @@ -21927,8 +22124,15 @@ SELECT ALL + MIN ( ALL 66 ) FROM tab1 # Datafusion - Expected - -379456 # Datafusion - Expected - 7200 # Datafusion - Expected - -336675 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \* Int64\(\-95\) \+ tab2\.col0 AS col1" at position 0 and "tab2\.col0 \* tab2\.col1 \* \(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * - 95 + + col0 col1, col0 * + + col1 * - col1 AS col1 FROM tab2 +---- +-119646 +-336675 +-379456 +4416 +6144 +7200 query I rowsort SELECT 0 * - + col2 + + col1 AS col2 FROM tab2 AS cor0 @@ -22713,8 +22917,15 @@ SELECT + col2 AS col1, col2 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2, + col2 AS col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-3734 SELECT - MIN ( ALL col1 ) AS col2 FROM tab2 WHERE NOT NULL > + col0 @@ -23108,8 +23319,10 @@ SELECT * FROM tab0 WHERE NOT ( NOT - 18 IS NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 97bbd07d456aa509eb4a4faaa87864cc -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "\(\- \(\- tab1\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col1 col2, - ( - + col2 ) AS col2, - col2 AS col1 FROM tab1 +---- +9 values hashing to d1c377f5daeb91efe1ca197fb394e9b0 query I rowsort SELECT ALL - col0 AS col1 FROM tab1 WHERE NOT ( NULL IS NULL ) @@ -23132,8 +23345,15 @@ SELECT col2 AS col0, 13 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - -75 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col2\) / \(\- \(\- cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, - col2 / - - col0 AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +0 +0 +0 query I rowsort SELECT ALL - col2 * + col2 + col1 AS col1 FROM tab0 cor0 @@ -23751,8 +23971,11 @@ SELECT ( + col2 ) * col1 - + col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 24 AS col1, + COUNT ( * ) AS col1 FROM tab1 +---- +-24 +3 query III rowsort SELECT ALL * FROM tab0 WHERE NOT NULL > + col1 @@ -24541,8 +24764,15 @@ SELECT - col0 AS col0, 28 + + - 94 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - -73 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 73 AS col0, + col2 AS col0 FROM tab0 AS cor0 +---- +-73 +-73 +-73 +10 +47 +99 query I rowsort SELECT DISTINCT + col1 + 45 FROM tab1 cor0 WHERE NOT NULL IS NULL @@ -24646,8 +24876,15 @@ SELECT ALL MIN ( - + ( - col0 ) ) + - 43 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 50 # Datafusion - Expected - 8 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \- Int64\(6\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - col1 ) - + + 6 AS col2, + 50 AS col2 FROM tab1 AS cor0 +---- +-1 +41 +50 +50 +50 +8 query III rowsort SELECT * FROM tab2 WHERE + + col1 * + col1 + - 91 IS NOT NULL @@ -25274,8 +25511,15 @@ SELECT * FROM tab1 WHERE + 8 = ( NULL ) # Datafusion - Expected - -21 # Datafusion - Expected - -9409 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* \(\- tab0\.col0\) AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * - col0 AS col0, - col1 AS col0 FROM tab0 +---- +-1 +-21 +-225 +-7569 +-81 +-9409 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -25526,8 +25770,15 @@ SELECT + MIN ( - 76 ) + + COUNT ( 84 ) FROM tab1 WHERE + - 85 IS NOT NULL # Datafusion - Expected - 10 # Datafusion - Expected - 196 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* \(\- tab0\.col1\) \+ tab0\.col2 AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 * - col1 + + col2 AS col0, col2 AS col0 FROM tab0 +---- +10 +1262 +1837 +196 +47 +99 query I rowsort SELECT col1 * - + col0 + - - 53 AS col1 FROM tab2 @@ -25708,8 +25959,11 @@ SELECT col1 AS col0 FROM tab2 AS cor0 WHERE col0 * 11 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CAST\(NULL AS Float64\)\) / Int64\(\-77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT + COUNT ( * ) AS col1, - CAST ( NULL AS FLOAT8 ) / - 77 AS col1 FROM tab2 AS cor0 +---- +3 +NULL query III rowsort SELECT * FROM tab1 AS cor0 WHERE + 53 * + col1 + - col2 IS NULL @@ -26173,8 +26427,15 @@ SELECT + - col2 * + + col1 FROM tab2 AS cor0 # Datafusion - Expected - 71 # Datafusion - Expected - 9801 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- \(\- tab0\.col2\)\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * - - ( col2 ) AS col2, + 71 col2 FROM tab0 +---- +100 +2209 +71 +71 +71 +9801 query I rowsort SELECT 90 - - col1 FROM tab2 @@ -26402,8 +26663,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) + + 30 col2, - 65 AS col2 FROM tab0 +---- +-65 +27 query I rowsort label-4348 SELECT COUNT ( * ) * + 57 FROM tab0 @@ -26857,8 +27121,15 @@ NULL # Datafusion - Expected - 30 # Datafusion - Expected - 97 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, 30 AS col2 FROM tab0 +---- +15 +30 +30 +30 +87 +97 query II rowsort label-4421 SELECT ALL + 92 / col2 / - - col0, col0 AS col1 FROM tab2 @@ -26921,8 +27192,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = + col0 * - col0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "CAST\(tab1\.col1 AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col1, + CAST ( + col1 AS INTEGER ) FROM tab1 +---- +14 +14 +47 +47 +5 +5 query III rowsort SELECT ALL * FROM tab0 WHERE NOT - 97 IN ( - 48, ( + - col0 ) * + 26 + col1 ) @@ -27181,8 +27459,15 @@ SELECT 25 * + MIN ( - - col2 ) col1 FROM tab1 # Datafusion - Expected - 87 # Datafusion - Expected - -5 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 5 col1, + col0 AS col1 FROM tab0 +---- +-5 +-5 +-5 +15 +87 +97 query I rowsort label-4476 SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + col2 * ( ( - col2 ) ) FROM tab2 WHERE + 33 IS NOT NULL @@ -27214,8 +27499,15 @@ SELECT DISTINCT ( + + col0 ) col2 FROM tab0 # Datafusion - Expected - 5159 # Datafusion - Expected - -75 # Datafusion - Expected - 4489 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 \* Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, col1 * 67 AS col2 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +3417 +4489 +5159 query I rowsort label-4481 SELECT + - COUNT ( * ) * + 31 * + 87 * + + COUNT ( * ) AS col1 FROM tab2 AS cor0 @@ -28737,8 +29029,15 @@ SELECT 91 + + 70 + + col1 FROM tab2 AS cor0 # Datafusion - Expected - 95 # Datafusion - Expected - 97 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col0 AS col1, + 95 AS col1 FROM tab0 AS cor0 +---- +15 +87 +95 +95 +95 +97 query II rowsort label-4733 SELECT COUNT ( * ), + SUM ( DISTINCT - - col1 ) AS col2 FROM tab2 cor0 @@ -29646,8 +29945,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1426 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* Int64\(\-46\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 31 * + - 46 AS col1, + 46 AS col1 FROM tab2 +---- +-1426 +46 query II rowsort SELECT col1 * col2, col1 AS col2 FROM tab2 @@ -31171,8 +31473,11 @@ SELECT ALL + + CAST ( - - CAST ( + col1 AS INTEGER ) AS INTEGER ) FROM tab1 AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - + AVG ( - CAST ( NULL AS INTEGER ) ) AS col0, 69 AS col0 FROM tab0 AS cor0 +---- +69 +NULL query III rowsort label-5135 SELECT * FROM tab2 cor0 WHERE + col0 * - col0 / 1 IN ( + - CAST ( + CAST ( NULL AS FLOAT8 ) AS INTEGER ) + - ( + + col1 ) * col2 ) OR - 83 * CAST ( - col1 * - ( - 4 ) AS INTEGER ) + + col2 * col1 IS NOT NULL @@ -31234,8 +31539,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(\-39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - COUNT ( * ) AS col0, - 39 AS col0 FROM tab0 AS cor0 +---- +-39 +3 query I rowsort label-5146 SELECT ALL + - SUM ( DISTINCT - + ( - - col1 ) ) FROM tab1 AS cor0 WHERE + col1 - + col2 / col0 IS NULL @@ -31662,8 +31970,9 @@ SELECT - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \+ Int64\(75\) \+ \(\- \(\- tab0\.col0\)\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 41 + + 75 + - - col0 col1, + col2 AS col1 FROM tab0 WHERE ( 6 ) NOT BETWEEN NULL AND NULL +---- # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 @@ -31672,8 +31981,15 @@ SELECT + + 41 + + 75 + - - col0 col1, + col2 AS col1 FROM tab0 WHERE ( 6 ) NOT B # Datafusion - Expected - -21 # Datafusion - Expected - 62 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \+ Int64\(\-37\) AS col1" at position 0 and "Int64\(\-21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 + - 37 AS col1, - 21 AS col1 FROM tab0 AS cor0 +---- +-21 +-21 +-21 +-27 +10 +62 query II rowsort SELECT - 21 + + col2 AS col0, - 3 AS col1 FROM tab1 AS cor0 @@ -34268,8 +34584,15 @@ SELECT + MIN ( ALL + - col0 ) FROM tab2 cor0 # Datafusion - Expected - -421875 # Datafusion - Expected - 1 # Datafusion - Expected - -97336 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) / \(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col0\) \* cor0\.col0 \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 / - col1 AS col0, - col0 * + col0 * col0 AS col0 FROM tab2 AS cor0 +---- +-262144 +-421875 +-97336 +1 +1 +1 query I rowsort label-5653 SELECT - MIN ( DISTINCT - - col2 ) * ( - ( + 6 ) ) FROM tab0 @@ -34499,8 +34822,15 @@ SELECT + - col1 FROM tab0 WHERE NOT NULL <> col2 * - col2 / + - col1 # Datafusion - Expected - 45 # Datafusion - Expected - 75 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, 45 AS col2 FROM tab2 +---- +45 +45 +45 +46 +64 +75 query I rowsort SELECT + ( - col1 ) + + + col0 AS col2 FROM tab0 AS cor0 @@ -34748,8 +35078,15 @@ SELECT ALL 24 * col0 FROM tab0 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL # Datafusion - Expected - 89 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ cor0\.col0 \+ \(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col0 \+ cor0\.col1 / cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) + + col0 + + ( - + col0 ) AS col1, col0 + + col1 / + col2 AS col1 FROM tab0 AS cor0 +---- +16 +89 +97 +NULL +NULL +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -35690,8 +36027,15 @@ SELECT DISTINCT - col2 * col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL # Datafusion - Expected - 196 # Datafusion - Expected - 44 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ Int64\(49\) AS col2" at position 0 and "cor0\.col1 \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - ( + col1 ) + 49 col2, ( col1 ) * + col1 col2 FROM tab1 AS cor0 +---- +196 +2 +2209 +25 +35 +44 query III rowsort SELECT * FROM tab0 AS cor0 WHERE - col1 * col0 * + col0 IS NOT NULL @@ -35942,8 +36286,11 @@ SELECT + 58 * - 91 + + col2 + + 96 + 10 * + col1 - - col0 col0, col0 FROM tab2 A # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(28\)\) \- Int64\(81\) AS col0" at position 0 and "Int64\(83\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( DISTINCT + 28 ) - + 81 AS col0, 83 / + COUNT ( * ) AS col0 FROM tab0 +---- +-53 +27 query I rowsort SELECT DISTINCT 26 + + col0 AS col0 FROM tab0 @@ -36835,8 +37182,15 @@ SELECT - col0 * - 80 * - - col0 FROM tab0 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col1 AS col2, col1 AS col2 FROM tab0 cor0 +---- +1 +1 +21 +21 +81 +81 query II rowsort SELECT DISTINCT 40, col0 + - col2 col1 FROM tab0 AS cor0 @@ -37501,8 +37855,15 @@ SELECT - COUNT ( * ) + COUNT ( * ) FROM tab1 cor0 # Datafusion - Expected - 1455 # Datafusion - Expected - 60 # Datafusion - Expected - 435 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "cor0\.col0 \* cor0\.col0 \+ Int64\(82\) \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 AS col1, col0 * + col0 + + 82 * - col0 AS col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL +---- +-1005 +1455 +435 +60 +60 +60 query I rowsort SELECT + 54 * - col0 FROM tab2 AS cor0 @@ -37615,8 +37976,15 @@ SELECT ALL col2 AS col0, + col1 AS col2 FROM tab0 # Datafusion - Expected - -64 # Datafusion - Expected - -58 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col2" at position 0 and "\(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, - col0 AS col2 FROM tab2 +---- +-23 +-40 +-46 +-58 +-64 +-75 query I rowsort label-6189 SELECT DISTINCT + col1 + col1 / + + col0 AS col2 FROM tab0 @@ -37686,8 +38054,15 @@ SELECT ALL col1 * - col0 AS col1 FROM tab2 WHERE NOT - 23 BETWEEN - 6 * 56 / - c # Datafusion - Expected - -34 # Datafusion - Expected - 75 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ Int64\(35\) AS col0" at position 0 and "Int64\(\-34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 40 + + + 35 AS col0, - 34 AS col0 FROM tab1 +---- +-34 +-34 +-34 +75 +75 +75 query I rowsort SELECT - col2 - + + 72 AS col0 FROM tab2 AS cor0 @@ -37843,8 +38218,15 @@ SELECT DISTINCT * FROM tab1 cor0 WHERE - 9 IS NULL # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0, + col0 AS col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query II rowsort label-6224 SELECT - COUNT ( * ) AS col1, - ( - 29 ) AS col2 FROM tab0 AS cor0 @@ -38361,8 +38743,15 @@ SELECT 80 * + 21 - + col0 AS col0 FROM tab1 # Datafusion - Expected - -20 # Datafusion - Expected - -188 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \- tab1\.col0 AS col0" at position 0 and "CAST\(Int64\(\-20\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 97 - + col0 AS col0, CAST ( - 20 AS INTEGER ) AS col0 FROM tab1 +---- +-148 +-182 +-188 +-20 +-20 +-20 query III rowsort label-6314 SELECT * FROM tab1 WHERE + CAST ( + - col2 AS INTEGER ) + - col2 * - - col1 BETWEEN - col0 AND - 86 * + 86 @@ -38545,8 +38934,9 @@ SELECT ALL + - MIN ( - + col1 ) AS col1 FROM tab1 AS cor0 47 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 \* Int64\(18\) \* cor0\.col2 \+ \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, + col1 * + 18 * col2 + - col2 col2 FROM tab2 cor0 WHERE - 47 * - + 28 + col2 IS NULL +---- query I rowsort label-6342 SELECT DISTINCT MAX ( + 39 ) col0 FROM tab0 @@ -39227,8 +39617,15 @@ SELECT - col2 col0 FROM tab2 AS cor0 WHERE 3 = NULL # Datafusion - Expected - -4624 # Datafusion - Expected - -410 # Datafusion - Expected - -3481 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \* Int64\(\-82\) AS col2" at position 0 and "cor0\.col2 \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col1 * + - 82 AS col2, + col2 * + - col2 AS col2 FROM tab1 AS cor0 +---- +-1148 +-3481 +-3854 +-410 +-4624 +-9216 query I rowsort SELECT - col2 AS col2 FROM tab0 cor0 WHERE - col2 BETWEEN - 5 AND + col1 @@ -39319,8 +39716,15 @@ SELECT DISTINCT COUNT ( * ) * - 60 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, + col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 @@ -39329,8 +39733,15 @@ SELECT ALL + col2, + col2 FROM tab0 # Datafusion - Expected - 87 # Datafusion - Expected - -70 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 70 AS col2, + col0 AS col2 FROM tab0 AS cor0 +---- +-70 +-70 +-70 +15 +87 +97 query III rowsort SELECT ALL * FROM tab1 WHERE - 46 IS NOT NULL @@ -39769,8 +40180,11 @@ SELECT DISTINCT - + ( 83 ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT CAST ( NULL AS FLOAT8 ) AS col1, + COUNT ( * ) AS col1 FROM tab2 +---- +3 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 @@ -40031,8 +40445,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) - 51 AS col0, + COUNT ( + 19 ) AS col0 FROM tab2 AS cor0 +---- +-48 +3 query I rowsort label-6595 SELECT COUNT ( * ) + + 14 FROM tab1 @@ -40958,8 +41375,15 @@ SELECT col0 * col2 * - 13 FROM tab2 cor0 # Datafusion - Expected - 61 # Datafusion - Expected - 97 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, 61 AS col2 FROM tab0 AS cor0 +---- +15 +61 +61 +61 +87 +97 query III rowsort SELECT ALL * FROM tab1 cor0 WHERE - col2 + col2 <> NULL @@ -41074,8 +41498,15 @@ NULL # Datafusion - Expected - 9603 # Datafusion - Expected - 19 # Datafusion - Expected - 705 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \+ Int64\(34\) AS col1" at position 0 and "tab0\.col2 \* tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + + 34 col1, col2 * col0 AS col1 FROM tab0 +---- +-53 +-63 +19 +705 +870 +9603 query I rowsort label-6760 SELECT ALL CAST ( - 18 AS INTEGER ) + 51 * - col1 / + col1 FROM tab2 @@ -43099,8 +43530,15 @@ SELECT - 82 * 7 FROM tab0 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 75 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 / Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, col2 / - 73 AS col1 FROM tab2 AS cor0 +---- +0 +0 +0 +46 +64 +75 query I rowsort SELECT DISTINCT 36 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 @@ -43131,8 +43569,15 @@ SELECT + + col1 + + - col2 * - - col2 FROM tab0 AS cor0 # Datafusion - Expected - 3886 # Datafusion - Expected - 74 # Datafusion - Expected - 1173 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col2 AS col2" at position 0 and "cor0\.col1 \* \(\- \(\- cor0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + col2 col2, col1 * - - col2 AS col2 FROM tab2 cor0 +---- +117 +1173 +125 +3080 +3886 +74 query I rowsort label-7106 SELECT ALL + col1 - - col1 / 99 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 @@ -43664,8 +44109,15 @@ SELECT ALL COUNT ( * ) FROM tab2 WHERE ( NULL ) IS NOT NULL # Datafusion - Expected - -68 # Datafusion - Expected - 5 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - col1 ) AS col0, - col2 AS col0 FROM tab1 cor0 +---- +-59 +-68 +-96 +14 +47 +5 query I rowsort SELECT + 42 * - 10 * - 40 col2 FROM tab1 AS cor0 @@ -44959,8 +45411,15 @@ SELECT ALL col1 * - + col1 * - 95 AS col0, - col1 AS col2 FROM tab0 # Datafusion - Expected - -144 # Datafusion - Expected - -5025 # Datafusion - Expected - -134 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \* \(\- \(\- tab2\.col0\)\) AS col2" at position 0 and "\(\- tab2\.col1\) \+ Int64\(\-67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 * - - col0 AS col2, - col1 + + ( - 67 ) AS col2 FROM tab2 +---- +-118 +-134 +-144 +-2346 +-4928 +-5025 query I rowsort SELECT DISTINCT + col0 FROM tab1 WHERE NOT - + col2 NOT IN ( - - col0, + col0 ) @@ -44978,8 +45437,15 @@ SELECT DISTINCT + 68 * - - COUNT ( * ) AS col0 FROM tab2 # Datafusion - Expected - -3519 # Datafusion - Expected - 98371 # Datafusion - Expected - -6279 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(\-23\) \* Int64\(\-91\) AS col2" at position 0 and "Int64\(69\) \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * - 23 * - 91 col2, 69 * - + col0 AS col2 FROM tab1 AS cor0 +---- +-3519 +-5865 +-6279 +10465 +29302 +98371 query II rowsort SELECT - 31, col1 AS col2 FROM tab0 @@ -45343,8 +45809,15 @@ SELECT ALL ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 = NULL # Datafusion - Expected - 2 # Datafusion - Expected - -75 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col0 / Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col1, col0 / 32 AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +1 +2 +2 query I rowsort label-7473 SELECT ALL COUNT ( * ) + + 62 * - 71 * + COUNT ( * ) FROM tab0 AS cor0 @@ -47358,8 +47831,11 @@ SELECT - col0 + 89 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\(\(\- cor0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 74 AS col0, + COUNT ( - + col1 ) col0 FROM tab1 AS cor0 +---- +3 +74 query I rowsort SELECT - 0 + - + col1 FROM tab0 @@ -47617,8 +48093,15 @@ SELECT - COUNT ( * ) * + 29 + 78 AS col0 FROM tab0 # Datafusion - Expected - 60 # Datafusion - Expected - -192 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ \(\- cor0\.col2\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 + - + col2 AS col2, 60 AS col2 FROM tab1 AS cor0 +---- +-118 +-136 +-192 +60 +60 +60 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL <= ( NULL ) ) OR NULL < + 78 + - - 70 @@ -47664,8 +48147,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE + 66 < + col2 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, + col2 col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT ALL - col0 * - - 59 + + col0 col1 FROM tab0 AS cor0 @@ -48142,8 +48632,15 @@ NULL # Datafusion - Expected - 117 # Datafusion - Expected - 4350 # Datafusion - Expected - 125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* tab2\.col0 AS col2" at position 0 and "tab2\.col2 \- \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * + col0 AS col2, col2 - - col1 AS col2 FROM tab2 +---- +1058 +117 +125 +2560 +4350 +74 query III rowsort label-7931 SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + - col2 * + col1 / - col1 * - col2 NOT IN ( + CAST ( col1 AS INTEGER ) ) ) @@ -48278,8 +48775,11 @@ SELECT DISTINCT - - ( ( + col2 ) ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( COUNT ( * ) ) AS col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NULL > ( col0 * 64 ) +---- +0 +NULL query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + 5 @@ -49376,8 +49876,15 @@ SELECT DISTINCT + 71 - 34 - - col0 * - col2 AS col0, + col2 * - - col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / \(\- \(\- tab0\.col0\)\) \+ \(\- tab0\.col1\) \* tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, - CAST ( NULL AS INTEGER ) / - - col0 + - + col1 * col0 AS col2 FROM tab0 +---- +1 +21 +81 +NULL +NULL +NULL query III rowsort SELECT * FROM tab1 WHERE NOT + + 44 IS NULL @@ -50138,8 +50645,11 @@ SELECT * FROM tab2 AS cor0 WHERE - col0 * + + col0 > + col0 # 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 "max\(cor0\.col1\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( ALL + + col1 ) col2, + 99 AS col2 FROM tab1 AS cor0 +---- +47 +99 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * - + 82 + col2 IS NOT NULL @@ -50288,8 +50798,15 @@ SELECT ALL col0, col1 - 55 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - 58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, col1 AS col0 FROM tab2 AS cor0 +---- +23 +40 +51 +58 +67 +77 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 <> + 8 @@ -50817,8 +51334,15 @@ SELECT DISTINCT col1, + 9 + - + col2 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col2 AS Int32\)" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( + col2 AS INTEGER ), col2 AS col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-8377 SELECT ALL COUNT ( * ) - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - 4 - - - 64 BETWEEN NULL AND NULL @@ -51844,8 +52368,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 60 col1, - COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +-3 +60 query II rowsort SELECT ALL - col1 AS col1, - col1 + col1 AS col0 FROM tab1 AS cor0 @@ -52656,8 +53183,15 @@ SELECT DISTINCT + 11 * col2 + - col0 FROM tab0 AS cor0 WHERE NOT 40 IS NOT NULL # Datafusion - Expected - -1071 # Datafusion - Expected - 81 # Datafusion - Expected - -4131 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col1\) \* Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, - col1 * 51 AS col2 FROM tab0 AS cor0 +---- +-1071 +-4131 +-51 +1 +21 +81 query I rowsort label-8692 SELECT ALL + 13 - + COUNT ( * ) FROM tab0 AS cor0 @@ -53160,8 +53694,15 @@ SELECT + - 45 * + + ( 76 ) - COUNT ( * ) col0 FROM tab0 AS cor0 # Datafusion - Expected - 177 # Datafusion - Expected - -99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col1 \+ cor0\.col0 \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, col1 + + + col0 + + col1 col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +129 +177 +99 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT 46 <= NULL @@ -53334,8 +53875,11 @@ SELECT - 11 + - 12 AS col1, - col1 * - col2 / - - col2 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(tab2\.col2\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( + col2 ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 +---- +58 +NULL query I rowsort label-8808 SELECT + SUM ( + ( 60 ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 @@ -53504,8 +54048,15 @@ SELECT - + 22 * - + col1 - + col2, - col2 FROM tab2 AS cor0 WHERE - - CAST ( NUL # Datafusion - Expected - -48 # Datafusion - Expected - 0 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(39\) / Int64\(\-63\) AS col1" at position 0 and "Int64\(\-48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 + 39 / + - 63 AS col1, ( - 48 ) AS col1 FROM tab0 cor0 +---- +-48 +-48 +-48 +0 +0 +0 query I rowsort SELECT + col2 + + 93 AS col0 FROM tab0 AS cor0 @@ -53802,8 +54353,11 @@ SELECT MAX ( ALL + 43 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 24 AS col2, + COUNT ( * ) AS col2 FROM tab2 +---- +-24 +3 query I rowsort SELECT 41 * + 45 col2 FROM tab1 @@ -54180,8 +54734,15 @@ SELECT DISTINCT - COUNT ( ALL - ( + 14 ) ) FROM tab1 # Datafusion - Expected - -85 # Datafusion - Expected - 30 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 30 AS col1, - col0 AS col1 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +30 +30 +30 query II rowsort label-8947 SELECT ALL - 14, MAX ( DISTINCT - ( + col0 ) ) / 40 * + 22 AS col0 FROM tab1 AS cor0 @@ -54535,8 +55096,15 @@ SELECT + + col0 + - 89 FROM tab0 AS cor0 WHERE NOT col1 IS NULL # Datafusion - Expected - 15 # Datafusion - Expected - -450 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) \* cor0\.col0 AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 30 * + col0 AS col2, 15 AS col2 FROM tab0 AS cor0 +---- +-2610 +-2910 +-450 +15 +15 +15 query I rowsort SELECT DISTINCT + 58 col0 FROM tab1 @@ -54980,8 +55548,15 @@ SELECT DISTINCT - 38 * + COUNT ( * ) AS col2 FROM tab0 # Datafusion - Expected - -47 # Datafusion - Expected - 89 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 col0, - col2 AS col0 FROM tab0 +---- +-10 +-47 +-99 +89 +89 +89 query II rowsort SELECT ALL - 74 AS col2, + col1 FROM tab2 AS cor0 @@ -56138,8 +56713,15 @@ SELECT ( - + col0 ) * - + 61 FROM tab1 # Datafusion - Expected - -35670 # Datafusion - Expected - 81 # Datafusion - Expected - -28905 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "tab0\.col2 \* Int64\(\-41\) \* tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, col2 * - 41 * + col0 AS col0 FROM tab0 +---- +-28905 +-35670 +-393723 +1 +21 +81 query III rowsort SELECT ALL * FROM tab2 WHERE NOT col0 BETWEEN ( NULL ) AND col2 - - col2 @@ -56382,8 +56964,11 @@ SELECT DISTINCT CAST ( - MIN ( ALL + 43 ) AS INTEGER ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* Int64\(\-26\) \+ \(\- CAST\(NULL AS Int32\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-40\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* max\(Int64\(\-6\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 62 * + - 26 + - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col1, - 40 * - + ( + COUNT ( * ) ) * MAX ( - 6 ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 +---- +-2160 +NULL query I rowsort SELECT DISTINCT col0 * - - col1 + - col0 FROM tab2 @@ -56938,8 +57523,15 @@ SELECT - - ( - COUNT ( * ) ) col2 FROM tab0 WHERE NOT NULL IN ( - - col1, col2 * # Datafusion - Expected - -8696 # Datafusion - Expected - 97 # Datafusion - Expected - -950693 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(4\) \+ tab0\.col2 \* tab0\.col0 \* \(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, 4 + + col2 * col0 * - col2 AS col2 FROM tab0 +---- +-33131 +-8696 +-950693 +15 +87 +97 query I rowsort SELECT + col1 AS col0 FROM tab2 WHERE NOT col1 IN ( - col2, + 75 / - 31 ) @@ -57056,8 +57648,11 @@ SELECT DISTINCT - COUNT ( - col2 ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 227 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT cor0\.col0\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( DISTINCT col0 ) AS col1, 80 AS col1 FROM tab1 AS cor0 +---- +227 +80 query I rowsort SELECT DISTINCT 29 + col1 AS col1 FROM tab1 @@ -57447,8 +58042,15 @@ SELECT MAX ( DISTINCT - + col0 ) FROM tab2 # Datafusion - Expected - 31 # Datafusion - Expected - 95 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 AS col1, + 31 AS col1 FROM tab0 +---- +31 +31 +31 +95 +95 +95 query I rowsort SELECT ALL + - col1 col0 FROM tab2 cor0 WHERE NULL BETWEEN ( NULL ) AND col2 @@ -58362,8 +58964,15 @@ SELECT + col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + 42 # Datafusion - Expected - -10 # Datafusion - Expected - -81 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, - col2 AS col0 FROM tab0 AS cor0 +---- +-1 +-10 +-21 +-47 +-81 +-99 query III rowsort SELECT * FROM tab0 WHERE - + col1 - + ( + 38 ) IS NULL @@ -58490,8 +59099,9 @@ SELECT DISTINCT - 20 * + col0 + - col1 FROM tab0 WHERE ( 9 ) = col1 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col2" at position 0 and "tab2\.col2 \+ \(\- tab2\.col1\) \+ Int64\(27\) \* tab2\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 65 AS col2, + col2 + - col1 + + 27 * col2 AS col2 FROM tab2 WHERE 66 = 47 * col0 +---- query I rowsort label-9658 SELECT 79 AS col1 FROM tab0 WHERE ( - 28 * - col2 - - col2 ) <> - col1 * - - col2 + - - CAST ( NULL AS INTEGER ) @@ -59433,8 +60043,15 @@ SELECT col0 FROM tab0 AS cor0 WHERE - col1 + + col2 IS NOT NULL # Datafusion - Expected - 39 # Datafusion - Expected - 96 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, + 39 col1 FROM tab1 +---- +39 +39 +39 +59 +68 +96 query III rowsort SELECT * FROM tab2 WHERE col1 / + + 28 * - - 48 <> NULL @@ -59813,8 +60430,15 @@ SELECT DISTINCT ( + col2 ) + + 8 AS col2 FROM tab2 # Datafusion - Expected - 24 # Datafusion - Expected - 75 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \+ \(\- cor0\.col2\) \+ Int64\(82\) AS col1" at position 0 and "Int64\(\-23\) \- \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 + - col2 + 82 AS col1, - 23 - - col2 AS col1 FROM tab0 AS cor0 +---- +-13 +-14 +24 +38 +75 +76 query II rowsort SELECT col1 + - 66 - + 98, - col2 AS col2 FROM tab1 AS cor0 @@ -60143,8 +60767,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * col2 <> NULL # Datafusion - Expected - 13 # Datafusion - Expected - -75 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col1 \- \(\- \(\- cor0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, col1 - - - col0 AS col0 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +-8 +13 +5 query II rowsort SELECT ALL - 97 AS col2, - col1 * + col0 + - col1 FROM tab1 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_113.slt b/data/sqlite/random/aggregates/slt_good_113.slt index 33df064..cfa6f49 100644 --- a/data/sqlite/random/aggregates/slt_good_113.slt +++ b/data/sqlite/random/aggregates/slt_good_113.slt @@ -559,8 +559,15 @@ SELECT ALL * FROM tab1 WHERE NOT ( col2 - - CAST ( NULL AS INTEGER ) ) IS NOT NU # Datafusion - Expected - 44 # Datafusion - Expected - 29 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 29 col2, 44 AS col2 FROM tab1 +---- +29 +29 +29 +44 +44 +44 query I rowsort SELECT DISTINCT + 58 * + 71 AS col1 FROM tab2 @@ -854,8 +861,11 @@ SELECT DISTINCT - col0 * - 86 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, - 69 AS col2 FROM tab0 AS cor0 +---- +-69 +3 query I rowsort SELECT + col1 + + 35 + - ( 74 ) FROM tab2 AS cor0 @@ -1009,8 +1019,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= col2 + col2 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0, col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-158 SELECT - 3 / + col0 * - 48 AS col2 FROM tab1 @@ -1321,8 +1338,15 @@ SELECT 34, col0 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, col1 AS col0 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-209 SELECT DISTINCT col1 * - + CAST ( NULL AS INTEGER ) * - col1 * col2 AS col2 FROM tab1 @@ -1733,8 +1757,11 @@ SELECT ALL - MAX ( ALL - col0 ) AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -6535 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- Int64\(76\)\) \* Int64\(85\) \+ Int64\(\-72\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, - ( 76 ) * 85 + - 72 - + COUNT ( * ) col0 FROM tab0 +---- +-6535 +3 query I rowsort SELECT ALL col0 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN 20 / ( ( - + col1 ) ) + + col2 AND NULL @@ -2070,8 +2097,10 @@ SELECT - - col0 / + 90 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to ed18b00977e8c27465ba7eca2d3e5ad6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col0\) \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - col1 AS col0, - col0 * col2 AS col0, - ( - 55 ) AS col1 FROM tab2 AS cor0 +---- +9 values hashing to 1eacfefc779258023548bd5f1c789d06 query I rowsort label-328 SELECT + + col1 / col0 + + + col2 AS col1 FROM tab2 AS cor0 @@ -2112,8 +2141,15 @@ SELECT ALL ( - col1 ) + col2 AS col1 FROM tab2 # Datafusion - Expected - -9603 # Datafusion - Expected - -99 # Datafusion - Expected - -870 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \+ \(\- tab0\.col2\) AS col0" at position 0 and "tab0\.col0 \* \(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 89 + - + col2 AS col0, col0 * - + col2 AS col0 FROM tab0 +---- +-136 +-188 +-705 +-870 +-9603 +-99 query I rowsort SELECT 75 * - 15 FROM tab1 @@ -2490,8 +2526,11 @@ SELECT DISTINCT 87 - 73 AS col2, col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT tab2\.col2\) AS col2" at position 0 and "CAST\(NULL AS Int32\) / Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( DISTINCT col2 ) AS col2, CAST ( NULL AS INTEGER ) / 83 AS col2 FROM tab2 +---- +23 +NULL query I rowsort label-395 SELECT DISTINCT - MIN ( col1 ) * + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 @@ -3454,8 +3493,11 @@ SELECT DISTINCT COUNT ( * ) / + + 22 AS col1 FROM tab2 # 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 "\(\- sum\(Int64\(69\)\)\) AS col1" at position 0 and "Int64\(27\) \* \(\- \(\- \(\- CAST\(NULL AS Float64\)\)\)\) \* Int64\(57\) \- \(\- \(\- max\(Int64\(72\)\)\)\) \- Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - ( + SUM ( ALL + + 69 ) ) AS col1, + 27 * ( - - ( + - ( CAST ( NULL AS FLOAT8 ) ) ) ) * + 57 - - ( ( - MAX ( ALL 72 ) ) ) - 98 col1 FROM tab2 +---- +-207 +NULL query I rowsort SELECT ALL - 16 * + col0 col2 FROM tab0 @@ -3867,8 +3909,11 @@ SELECT col1 AS col1 FROM tab1 WHERE - - col2 + + 72 + + + 39 + 71 <> col2 * + + # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \- tab1\.col1 \+ Int64\(\-95\) AS col0" at position 0 and "Int64\(\-61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 - + col1 + - 95 AS col0, - 61 AS col0 FROM tab1 +---- +-61 +-95 query I rowsort SELECT - - col0 FROM tab1 cor0 WHERE NOT col2 < col1 @@ -3931,8 +3976,15 @@ SELECT ALL + col1 FROM tab2 WHERE NOT + col1 IS NOT NULL # Datafusion - Expected - -67 # Datafusion - Expected - 76 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "\(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 76 AS col1, - col1 AS col1 FROM tab2 +---- +-51 +-67 +-77 +76 +76 +76 query II rowsort SELECT col1, - col2 * - col1 AS col2 FROM tab1 @@ -4069,8 +4121,9 @@ SELECT + 37 + + - col1 + - col0 * - 49 FROM tab2 WHERE ( + col2 + col1 / - col1 3645 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col1" at position 0 and "\(\- cor0\.col2\) \* cor0\.col1 \* Int64\(64\) / cor0\.col1 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - 16 AS col1, - col1, - col2 * col1 * + 64 / col1 col1 FROM tab1 AS cor0 WHERE NULL IN ( col0, - 65, col1 ) +---- query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) < + - 6 @@ -4183,8 +4236,15 @@ SELECT ALL + + col0 FROM tab0 WHERE NOT col0 >= - - 84 # Datafusion - Expected - -6188 # Datafusion - Expected - -5 # Datafusion - Expected - -5015 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col2\) \* \(\- \(\- cor0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col1 AS col0, ( + - col2 ) * - - col0 col0 FROM tab1 AS cor0 +---- +-14 +-47 +-4896 +-5 +-5015 +-6188 query I rowsort label-680 SELECT - CAST ( + + 65 AS INTEGER ) FROM tab1 cor0 WHERE ( NULL ) IS NULL @@ -4617,8 +4677,15 @@ SELECT * FROM tab0 cor0 WHERE 77 / + + col0 BETWEEN + col1 AND NULL # Datafusion - Expected - -1 # Datafusion - Expected - 99 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(76\) / Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, 76 / - 47 AS col1 FROM tab0 AS cor0 +---- +-1 +-1 +-1 +10 +47 +99 query II rowsort SELECT - col0 - - col2 + col0 AS col1, - col2 FROM tab1 @@ -5439,8 +5506,15 @@ NULL # Datafusion - Expected - 120 # Datafusion - Expected - -74400 # Datafusion - Expected - 146 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* tab2\.col2 \* Int64\(\-30\) AS col1" at position 0 and "Int64\(69\) \+ tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 62 * col2 * - 30 AS col1, + 69 + col1 AS col1 FROM tab2 +---- +-107880 +-42780 +-74400 +120 +136 +146 query I rowsort label-882 SELECT ( + 29 ) / col2 * - 28 FROM tab1 @@ -5985,8 +6059,10 @@ SELECT - 38 FROM tab0 WHERE NOT - 56 + + col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to b354bda7da0f6492cc0ec03225b3fdbd -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "\(\- Int64\(\-97\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col0 AS col2, col1 AS col0, - - 97 AS col2 FROM tab1 +---- +9 values hashing to ee24c65a386d590de0f09e36def456b2 query I rowsort SELECT col1 AS col1 FROM tab2 WHERE - col0 - ( - col0 ) + 90 IS NULL @@ -6842,8 +6918,9 @@ SELECT + CAST ( + + 83 AS INTEGER ) FROM tab0 AS cor0 83 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col0, col1 AS col0 FROM tab1 WHERE NOT NULL <= NULL +---- query I rowsort label-1117 SELECT DISTINCT + + SUM ( ALL - ( + ( + 5 ) ) ) AS col2 FROM tab0 WHERE NULL < 90 @@ -7135,8 +7212,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 35 AS col0, - ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0 +---- +-3 +35 query I rowsort SELECT + col0 * + - col0 * col1 + + 56 FROM tab0 AS cor0 @@ -7769,8 +7849,15 @@ SELECT ALL + col1 - - - col1 + - + 63 * - col0 * + col1 col0 FROM tab1 AS cor0 # Datafusion - Expected - 6075 # Datafusion - Expected - 47 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col1" at position 0 and "Int64\(75\) \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 AS col1, + 75 * col1 AS col1 FROM tab0 AS cor0 +---- +1575 +47 +47 +47 +6075 +75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 @@ -7779,8 +7866,15 @@ SELECT + 47 AS col1, + 75 * col1 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, - col1 AS col2 FROM tab1 cor0 +---- +-14 +-47 +-5 +14 +47 +5 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND NOT ( NOT + col2 IS NOT NULL ) @@ -8493,8 +8587,15 @@ SELECT + COUNT ( * ) FROM tab0 WHERE NOT ( col2 * CAST ( NULL AS INTEGER ) + col # Datafusion - Expected - 2910 # Datafusion - Expected - 0 # Datafusion - Expected - 450 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) / \(\- tab0\.col1\) AS col0" at position 0 and "Int64\(30\) \* tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 23 / - col1 AS col0, + 30 * col0 AS col0 FROM tab0 +---- +-1 +-23 +0 +2610 +2910 +450 query I rowsort label-1395 SELECT - CAST ( + col1 AS INTEGER ) / CAST ( col0 AS INTEGER ) FROM tab2 WHERE NOT - - col0 < - + 15 @@ -8782,8 +8883,15 @@ SELECT DISTINCT - - col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 > NULL # Datafusion - Expected - 144 # Datafusion - Expected - 79 # Datafusion - Expected - 159 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(12\) AS Int32\)\) \+ cor0\.col0 AS col2" at position 0 and "cor0\.col0 \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( + 12 AS INTEGER ) + + col0 AS col2, + col0 + + + col2 col2 FROM tab1 AS cor0 +---- +144 +147 +159 +39 +73 +79 query IIIIII rowsort SELECT * FROM tab1 cor0 INNER JOIN tab0 AS cor1 ON ( NULL ) IS NOT NULL @@ -8975,8 +9083,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( NULL ) IS NOT NULL ) OR NOT NULL <> # Datafusion - Expected - 85 # Datafusion - Expected - 97 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ cor0\.col1 AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 + + + col1 AS col2, 85 AS col2 FROM tab2 AS cor0 +---- +141 +142 +85 +85 +85 +97 query I rowsort label-1475 SELECT CAST ( NULL AS INTEGER ) - - - col0 AS col1 FROM tab1 AS cor0 @@ -9145,8 +9260,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col0, MIN ( ALL - col0 ) AS col0 FROM tab0 +---- +-3 +-97 query I rowsort SELECT col2 + 70 AS col1 FROM tab2 @@ -9735,8 +9853,15 @@ SELECT DISTINCT ( - CAST ( col2 AS INTEGER ) ) col2 FROM tab1 # Datafusion - Expected - 8 # Datafusion - Expected - -5 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col2, 8 AS col2 FROM tab1 +---- +-14 +-47 +-5 +8 +8 +8 query I rowsort label-1602 SELECT + COUNT ( DISTINCT - - CAST ( NULL AS FLOAT8 ) ) - + COUNT ( * ) * - 78 FROM tab1 @@ -11492,8 +11617,15 @@ SELECT 58 col1, - col2 * + + 85 AS col2 FROM tab2 # Datafusion - Expected - -2209 # Datafusion - Expected - 96 # Datafusion - Expected - -196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "tab1\.col1 \* \(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, col1 * - + col1 AS col1 FROM tab1 +---- +-196 +-2209 +-25 +59 +68 +96 query I rowsort SELECT - + col1 * + + col2 * col2 AS col1 FROM tab0 AS cor0 @@ -11866,8 +11998,15 @@ SELECT ALL - col0 FROM tab1 WHERE NOT + + ( - + ( + - col1 ) ) IS NULL # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, + col2 AS col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query III rowsort SELECT * FROM tab0 WHERE NOT - col2 BETWEEN 52 * + - col0 AND + col2 @@ -11887,8 +12026,15 @@ SELECT + 15 FROM tab2 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col0, col0 col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT + col1 * - + 87 FROM tab1 @@ -11975,8 +12121,15 @@ SELECT ( COUNT ( * ) ) / COUNT ( * ) + - 70 AS col2 FROM tab1 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, col2 AS col1 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query II rowsort label-1987 SELECT col2 / - 99 + + col2 AS col0, col1 / col0 + - col1 FROM tab1 @@ -12185,8 +12338,15 @@ SELECT - col2 + - col0 + + col2 * - ( - col2 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 44 # Datafusion - Expected - 53 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "cor0\.col0 \+ \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 53 AS col2, col0 + - col1 AS col2 FROM tab1 AS cor0 +---- +37 +44 +53 +53 +53 +80 query II rowsort SELECT DISTINCT + col0 AS col1, col2 + + + col2 col0 FROM tab1 AS cor0 @@ -12536,8 +12696,15 @@ SELECT ALL + MAX ( + - 3 ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 10 # Datafusion - Expected - 99 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col2 AS col1, 10 AS col1 FROM tab0 AS cor0 +---- +10 +10 +10 +10 +47 +99 query I rowsort label-2076 SELECT ALL + SUM ( DISTINCT + + col0 ) col0 FROM tab2 AS cor0 @@ -12671,8 +12838,15 @@ SELECT ALL + ( - MIN ( + col2 ) ) * + 56 + + + COUNT ( * ) FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - -63 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 63 AS col1, col2 AS col1 FROM tab1 cor0 +---- +-63 +-63 +-63 +59 +68 +96 query II rowsort label-2098 SELECT + - 21, COUNT ( * ) AS col0 FROM tab0 AS cor0 @@ -14096,8 +14270,15 @@ SELECT ( - + 4 ) / - 73 FROM tab0 # Datafusion - Expected - 60 # Datafusion - Expected - 1911 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* Int64\(21\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * 21 AS col0, + 60 AS col0 FROM tab1 +---- +1071 +1785 +1911 +60 +60 +60 query I rowsort label-2341 SELECT DISTINCT 41 * - COUNT ( * ) * + 26 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -14127,8 +14308,11 @@ SELECT + + MAX ( ALL - - ( + 77 ) ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* cor0\.col0 AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 AS col2, 33 col2 FROM tab2 AS cor0 +---- +33 +NULL query I rowsort SELECT ALL ( + 98 ) FROM tab1 cor0 WHERE ( NOT + col2 + - + col0 IS NULL ) @@ -14644,8 +14828,9 @@ SELECT - MIN ( CAST ( col0 AS INTEGER ) ) AS col1 FROM tab2 AS cor0 -46 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col2 \+ cor0\.col1 AS col1" at position 0 and "Int64\(30\) \+ cor0\.col1 \- Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 * col2 + + col1 AS col1, 30 + col1 - 93 AS col1 FROM tab0 AS cor0 WHERE col0 IS NULL +---- query II rowsort label-2430 SELECT - + CAST ( + + col2 AS INTEGER ) * + col0, + col1 AS col0 FROM tab1 AS cor0 @@ -15170,8 +15355,9 @@ SELECT ALL * FROM tab0 cor0 WHERE ( NOT NULL IS NOT NULL ) 9 values hashing to c4b42765dff94eaaa46040e537fb43b7 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \- cor0\.col2 \- \(\- cor0\.col0\) \+ cor0\.col2 \+ Int64\(12\) \* Int64\(55\) \- cor0\.col2 \* \(\- cor0\.col0\) \* cor0\.col0 \* \(\- \(\- cor0\.col0\)\) \* Int64\(23\) AS col1" at position 0 and "Int64\(29\) \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 16 - col2 - - col0 + col2 + 12 * + 55 - col2 * - col0 * + col0 * - - col0 * + + 23 AS col1, 29 * - col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 AND - + col2 + + 30 +---- query II rowsort SELECT + 42 * 54, col1 + 54 AS col0 FROM tab1 @@ -15352,8 +15538,15 @@ SELECT COUNT ( * ) * + + 10 AS col1 FROM tab2 AS cor0 WHERE + col1 / + - col1 / # Datafusion - Expected - 76 # Datafusion - Expected - -540 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(\-18\) \* Int64\(30\) AS col0" at position 0 and "Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * - 18 * + 30 col0, 76 col0 FROM tab0 AS cor0 +---- +-11340 +-43740 +-540 +76 +76 +76 query II rowsort label-2546 SELECT MIN ( - - col0 ) AS col0, CAST ( NULL AS INTEGER ) FROM tab2 @@ -15741,8 +15934,15 @@ SELECT 21, + 44 / + col1 AS col1 FROM tab0 cor0 # Datafusion - Expected - 8505 # Datafusion - Expected - 81 # Datafusion - Expected - 1389 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col0 \* Int64\(98\) \- cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, col0 * + 98 - + col1 AS col0 FROM tab0 AS cor0 +---- +1 +1389 +21 +81 +8505 +9505 query II rowsort SELECT - col0 * - + col1 AS col2, 44 AS col1 FROM tab0 @@ -15870,8 +16070,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 276 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(99\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 * - + COUNT ( * ) - - + 99 - - + COUNT ( * ) col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +276 +3 query I rowsort SELECT - - col1 - - col1 AS col0 FROM tab0 AS cor0 @@ -15946,8 +16149,15 @@ SELECT + + col2, + col0 AS col2 FROM tab1 cor0 WHERE + CAST ( NULL AS INTEGER ) # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 col0 FROM tab0 AS cor0 WHERE + 40 + + 84 + - 23 * + + col1 IS NOT NULL +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT + col2 FROM tab2 WHERE + 67 + + col2 IS NOT NULL @@ -17465,8 +17675,15 @@ SELECT DISTINCT + col0 * + - ( + col1 ), + col0 + col2 * + - ( + col1 ) AS col2 # Datafusion - Expected - -46 # Datafusion - Expected - 80 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \+ tab2\.col2 AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + col2 AS col1, - col0 AS col1 FROM tab2 WHERE ( - - col0 * 25 + col2 / + col1 + - col2 * col1 ) NOT IN ( 58, 46, - 45 ) +---- +-46 +-64 +-75 +116 +46 +80 query I rowsort label-2895 SELECT - 28 * SUM ( col2 ) + COUNT ( * ) AS col1 FROM tab2 cor0 @@ -17555,8 +17772,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 34 >= - col0 ) # Datafusion - Expected - -1827 # Datafusion - Expected - 81 # Datafusion - Expected - -1215 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "\(\- tab0\.col1\) \* tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col0, - col1 * ( + + col0 ) AS col0 FROM tab0 +---- +-1215 +-1827 +-97 +1 +21 +81 query II rowsort SELECT ( - ( 3 ) ) * + 49 * + col0, col1 AS col0 FROM tab1 @@ -17953,8 +18177,15 @@ SELECT DISTINCT SUM ( DISTINCT + col2 ) * + - 95 AS col1 FROM tab0 # Datafusion - Expected - 1 # Datafusion - Expected - 260 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* CAST\(tab0\.col2 AS Int32\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 * + + CAST ( + col2 AS INTEGER ) AS col0, col1 AS col0 FROM tab0 +---- +1 +1222 +21 +2574 +260 +81 query I rowsort SELECT + col2 + + 13 AS col0 FROM tab0 @@ -18754,8 +18985,10 @@ SELECT ALL col0 * - + col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to efec4b640fa30203ea416d9fc305658b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col0 \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - col0 * + col0 + CAST ( NULL AS INTEGER ) AS col0, - 13 - + col1 + + - col2, + + 35 AS col0 FROM tab2 AS cor0 +---- +9 values hashing to 86714de7511a99d2a55c2e253fc405cf query II rowsort label-3104 SELECT DISTINCT + 51 AS col2, COUNT ( * ) FROM tab1 cor0 @@ -20754,8 +20987,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ), + COUNT ( * ) FROM tab1 +---- +3 +3 query I rowsort SELECT DISTINCT 28 col1 FROM tab0 @@ -21189,8 +21425,15 @@ NULL # Datafusion - Expected - -291450 # Datafusion - Expected - NULL # Datafusion - Expected - -53958 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-74\) AS col0" at position 0 and "\(\- tab2\.col0\) \* \(\- tab2\.col1\) \* \(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 74 AS col0, - col0 * - + col1 * - col2 AS col0 FROM tab2 +---- +-197120 +-291450 +-53958 +NULL +NULL +NULL query I rowsort SELECT DISTINCT 87 * + + col1 AS col1 FROM tab2 @@ -21228,8 +21471,11 @@ SELECT DISTINCT 69 * - col2 + + - col2 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -684 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col1" at position 0 and "Int64\(\-76\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 1 col1, - 76 * + + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 +---- +-684 +1 query I rowsort SELECT + - col1 * - col1 col0 FROM tab1 cor0 @@ -23290,8 +23536,15 @@ SELECT ALL + + ( 68 ) FROM tab2 AS cor0 # Datafusion - Expected - -62 # Datafusion - Expected - -75 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "\(\- tab2\.col2\) \- \(\- tab2\.col0\) \+ Int64\(\-86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( col0 ) AS col0, ( - col2 ) - - col0 + - 86 AS col0 FROM tab2 +---- +-46 +-62 +-63 +-64 +-69 +-75 query I rowsort label-3857 SELECT ALL - col1 + 73 + + - col1 / + 47 AS col2 FROM tab1 @@ -23830,8 +24083,15 @@ SELECT - ( - + 21 ) AS col0 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -2574 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* Int64\(\-26\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 * - 26 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 +---- +-2574 +-2574 +-2574 +NULL +NULL +NULL query III rowsort SELECT * FROM tab2 WHERE NOT - 41 BETWEEN NULL AND 44 @@ -26292,8 +26552,15 @@ SELECT 99 FROM tab2 AS cor0 WHERE NOT NULL = - ( + 32 ) # Datafusion - Expected - 64 # Datafusion - Expected - 59 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 59 AS col2, + col0 AS col2 FROM tab2 AS cor0 +---- +46 +59 +59 +59 +64 +75 query I rowsort SELECT DISTINCT - 64 + + 87 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL IS NOT NULL ) @@ -26404,8 +26671,15 @@ SELECT DISTINCT col2 + - - col1 + - col1, col1 FROM tab1 AS cor0 # Datafusion - Expected - -25 # Datafusion - Expected - -175 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* Int64\(\-5\) AS col0" at position 0 and "Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 * - 5 AS col0, - 25 AS col0 FROM tab1 +---- +-175 +-175 +-175 +-25 +-25 +-25 query I rowsort label-4367 SELECT + + ( + - SUM ( DISTINCT + - 4 ) ) FROM tab2 AS cor0 @@ -27264,8 +27538,15 @@ SELECT ALL col1 * - col2 + + - 39, + col2 FROM tab1 cor0 WHERE + col1 IS NOT NUL # Datafusion - Expected - 54 # Datafusion - Expected - 6188 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col2 AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * col2 AS col2, 54 AS col2 FROM tab1 AS cor0 +---- +4896 +5015 +54 +54 +54 +6188 query II rowsort SELECT + - ( 61 ), col0 FROM tab2 AS cor0 @@ -27686,8 +27967,15 @@ SELECT - 7 FROM tab1 cor0 WHERE ( CAST ( NULL AS INTEGER ) ) BETWEEN 99 AND NULL # Datafusion - Expected - 720 # Datafusion - Expected - -99 # Datafusion - Expected - 9700 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 \* cor0\.col2 \+ CAST\(cor0\.col0 AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col2, + col0 * + col2 + CAST ( ( col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +720 +957 +9700 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE - 43 * - - col0 IS NULL @@ -28226,8 +28514,11 @@ SELECT - - ( + col0 ) * + col0 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(avg\(Int64\(\-84\)\) AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + CAST ( + + AVG ( - 84 ) AS INTEGER ) col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +3 +84 query I rowsort label-4658 SELECT DISTINCT - COUNT ( - - col1 ) FROM tab2 cor0 @@ -28748,8 +29039,15 @@ SELECT * FROM tab1 WHERE col2 / - col0 + + col1 IS NOT NULL # Datafusion - Expected - 64 # Datafusion - Expected - -8 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(8\)\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 8 ) col1, + col0 AS col1 FROM tab2 +---- +-8 +-8 +-8 +46 +64 +75 query I rowsort label-4742 SELECT CAST ( 36 AS INTEGER ) * - 10 col2 FROM tab1 @@ -28917,8 +29215,11 @@ SELECT DISTINCT + CAST ( - - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) \* CAST\(NULL AS Int32\) \+ \(\- min\(Int64\(10\)\)\) \- \(\- count\(\(\- tab2\.col1\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 29 * + + CAST ( NULL AS INTEGER ) + - MIN ( 10 ) - - COUNT ( - col1 ) AS col0, ( COUNT ( * ) ) AS col0 FROM tab2 +---- +3 +NULL query I rowsort label-4769 SELECT col0 * + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) FROM tab1 @@ -29162,8 +29463,15 @@ SELECT ALL - MAX ( + col2 ) - + COUNT ( * ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 90 # Datafusion - Expected - 91 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 col1, 90 AS col1 FROM tab1 cor0 +---- +51 +85 +90 +90 +90 +91 query I rowsort SELECT DISTINCT - 72 FROM tab2 AS cor0 WHERE NOT + 81 * - + ( 84 ) IS NOT NULL @@ -29809,8 +30117,15 @@ NULL # Datafusion - Expected - 54 # Datafusion - Expected - 75 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 75 AS col0, 54 AS col0 FROM tab0 AS cor0 +---- +54 +54 +54 +75 +75 +75 query I rowsort label-4906 SELECT - 34 + + COUNT ( * ) FROM tab1 AS cor0 @@ -31740,8 +32055,15 @@ SELECT ALL + MAX ( ALL - col1 ) * - COUNT ( * ) col1 FROM tab2 # Datafusion - Expected - 126 # Datafusion - Expected - 96 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(96\) AS Int32\) AS col1" at position 0 and "Int64\(68\) \+ tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( + 96 AS INTEGER ) AS col1, 68 + + col2 AS col1 FROM tab2 +---- +108 +126 +91 +96 +96 +96 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NULL = col1 * - - ( + col2 ) @@ -31763,8 +32085,11 @@ SELECT SUM ( + 45 ) AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 4 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 +---- +4 +NULL query I rowsort SELECT - 45 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 ) @@ -32090,8 +32415,11 @@ 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\(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\. +query II valuesort SELECT ALL - 22 * - + ( - COUNT ( * ) ) + 4 AS col0, COUNT ( ALL + 82 ) col0 FROM tab2 AS cor0 +---- +-62 +3 query I rowsort label-5279 SELECT DISTINCT + + ( SUM ( ALL 55 ) ) AS col2 FROM tab2 AS cor0 @@ -32555,8 +32883,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 17 AS col0, COUNT ( * ) - + 46 AS col0 FROM tab1 cor0 +---- +-17 +-43 query I rowsort SELECT 68 + + 30 + + - col1 col1 FROM tab1 @@ -32639,8 +32970,15 @@ SELECT DISTINCT + 96 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - -66 # Datafusion - Expected - -58 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col0" at position 0 and "Int64\(\-16\) \+ Int64\(\-50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 col0, - 16 + - 50 col0 FROM tab2 +---- +-23 +-40 +-58 +-66 +-66 +-66 query I rowsort label-5372 SELECT DISTINCT - + 8 / - col2 AS col0 FROM tab2 AS cor0 @@ -33989,8 +34327,11 @@ SELECT - - ( + - ( - col0 ) ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "max\(\(\- tab2\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + COUNT ( * ) AS col1, + MAX ( ALL - col2 ) AS col1 FROM tab2 WHERE NOT + col1 IS NULL +---- +-23 +3 query I rowsort SELECT - ( - col1 ) * col0 AS col2 FROM tab0 @@ -34900,8 +35241,11 @@ SELECT ALL * FROM tab0 AS cor0 WHERE ( col1 ) >= - col2 # 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 "Int64\(32\) AS col0" at position 0 and "Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 32 AS col0, - 16 AS col0 FROM tab2 AS cor0 +---- +-16 +32 query I rowsort SELECT DISTINCT - - col2 col1 FROM tab1 AS cor0 WHERE NOT NULL >= col1 @@ -35787,8 +36131,15 @@ SELECT - SUM ( + - 13 ) + COUNT ( * ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 4277 # Datafusion - Expected - 1 # Datafusion - Expected - 714 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / \(\- Int64\(\-64\)\) AS col0" at position 0 and "\(\- cor0\.col0\) \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 / - ( + - 64 ) col0, - col0 * - col1 AS col0 FROM tab1 AS cor0 +---- +0 +1 +1 +425 +4277 +714 query I rowsort label-5893 SELECT DISTINCT + - col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 @@ -36872,8 +37223,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col2, MAX ( - - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN - + 90 AND + + col0 +---- +-1 +14 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - ( + 45 ) / - 41 + + 88 ) < NULL @@ -37508,8 +37862,11 @@ SELECT ALL + 78 + - + 39 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -227 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT tab1\.col0\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + SUM ( DISTINCT col0 ) ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 +---- +-227 +NULL query I rowsort SELECT + 15 - - + col1 FROM tab1 @@ -37643,8 +38000,15 @@ SELECT ALL col2 AS col1, 81 AS col2 FROM tab1 # Datafusion - Expected - 1 # Datafusion - Expected - -810 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* Int64\(\-6\) \* Int64\(9\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * - 6 * + 9 AS col2, + col1 AS col2 FROM tab0 +---- +-4698 +-5238 +-810 +1 +21 +81 query I rowsort label-6206 SELECT col0 / + - 92 * col2 * - - 80 FROM tab2 @@ -37911,8 +38275,9 @@ SELECT ALL + + col2 AS col0 FROM tab1 AS cor0 WHERE col0 <= - - col2 + - col2 * 96 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(\-26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col2 AS col1, - 26 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL +---- query I rowsort label-6250 SELECT ALL + COUNT ( ALL + col2 ) AS col2 FROM tab1 AS cor0 @@ -38280,8 +38645,15 @@ SELECT ALL - - col2 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) IS NULL # Datafusion - Expected - -14268125 # Datafusion - Expected - 77 # Datafusion - Expected - -8396917 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(41\) \* cor0\.col0 \* cor0\.col2 \* Int64\(\-80\) \+ \(\- cor0\.col0\) \+ \(\- \(\- cor0\.col0\)\) \- cor0\.col1 \- cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( col1 ) AS col2, + ( 41 ) * ( + col0 ) * col2 * - 80 + - + col0 + - - col0 - + col1 - col2 AS col2 FROM tab2 AS cor0 +---- +-14268125 +-3470314 +-8396917 +51 +67 +77 query I rowsort SELECT - ( + + 41 ) AS col0 FROM tab2 AS cor0 @@ -38520,8 +38892,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 54 = - col2 / + col0 * + 94 ) # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col1, + col1 FROM tab1 cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-6345 SELECT DISTINCT + 54 + - COUNT ( * ) FROM tab2 AS cor0 @@ -38554,8 +38933,15 @@ SELECT - ( + - ( + col2 ) ) + - + 42 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - 6975 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(93\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 * + 93 AS col0, col1 AS col0 FROM tab2 AS cor0 +---- +4278 +51 +5952 +67 +6975 +77 query III rowsort label-6350 SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST ( - - col1 AS INTEGER ) NOT BETWEEN NULL AND NULL @@ -38962,8 +39348,15 @@ SELECT DISTINCT - - col2 - col1 AS col1 FROM tab0 WHERE - - col2 IS NOT NULL # Datafusion - Expected - 67 # Datafusion - Expected - 41 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \- \(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 92 - - - col1 AS col2, col1 col2 FROM tab2 AS cor0 +---- +15 +25 +41 +51 +67 +77 query I rowsort SELECT col0 - 21 FROM tab1 AS cor0 @@ -40390,8 +40783,15 @@ SELECT - COUNT ( + - 2 ) AS col0 FROM tab1 # Datafusion - Expected - 68 # Datafusion - Expected - 49 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 49 AS col0, col2 AS col0 FROM tab1 +---- +49 +49 +49 +59 +68 +96 query I rowsort SELECT - 18 * 63 * col2 col2 FROM tab2 @@ -40724,8 +41124,15 @@ SELECT ALL - 39 + + - 14 FROM tab2 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - -54 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \+ \(\- Int64\(\-48\)\) \+ \(\- tab1\.col0\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 + - - 48 + - + col0 AS col1, col0 AS col1 FROM tab1 +---- +-122 +-134 +-54 +51 +85 +91 query III rowsort SELECT DISTINCT * FROM tab1 WHERE - 23 + - 58 IS NULL @@ -40756,8 +41163,15 @@ SELECT ALL + col1 - - col1 + + col2 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 +---- +71 +71 +71 +NULL +NULL +NULL query II rowsort label-6718 SELECT DISTINCT - + 76 AS col0, - COUNT ( * ) * - + ( + COUNT ( * ) ) col1 FROM tab0 AS cor0 @@ -40772,8 +41186,15 @@ SELECT DISTINCT - + 76 AS col0, - COUNT ( * ) * - + ( + COUNT ( * ) ) col1 FROM # Datafusion - Expected - -21 # Datafusion - Expected - 2 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 2 AS col2, - col1 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +2 +2 +2 query I rowsort SELECT DISTINCT + ( + + 96 ) FROM tab1 cor0 @@ -41239,8 +41660,15 @@ SELECT col0 FROM tab2 WHERE ( NOT NULL IS NULL ) # Datafusion - Expected - 85 # Datafusion - Expected - 5 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 AS col2, + col0 AS col2 FROM tab1 AS cor0 +---- +5 +5 +5 +51 +85 +91 query I rowsort label-6794 SELECT 54 - + - COUNT ( * ) FROM tab2 AS cor0 @@ -42717,8 +43145,15 @@ SELECT ALL - 28 + - MIN ( ALL - + 99 ) + + + COUNT ( * ) - + COUNT ( * ) * - - ( # Datafusion - Expected - 40 # Datafusion - Expected - -75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col0 AS col0, + col2 AS col0 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +23 +40 +58 query I rowsort SELECT + col0 + + 58 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL @@ -42806,8 +43241,15 @@ SELECT DISTINCT + col2 * - + col1 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 45 # Datafusion - Expected - 0 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 0 AS col2, 45 AS col2 FROM tab0 AS cor0 +---- +0 +0 +0 +45 +45 +45 query I rowsort SELECT DISTINCT - 84 + - col2 * - - col1 + - - col1 FROM tab2 AS cor0 @@ -43918,8 +44360,15 @@ SELECT ALL col1 * + + ( - col1 ) FROM tab1 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( col2 ) AS col2, + col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-7226 SELECT ALL - 83 + MAX ( col1 ) FROM tab0 AS cor0 @@ -44096,8 +44545,15 @@ SELECT ( MIN ( ALL col1 ) ) FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - 75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, + col2 AS col1 FROM tab2 +---- +23 +40 +46 +58 +64 +75 query I rowsort SELECT DISTINCT + col0 * col2 * - 71 FROM tab2 @@ -44182,8 +44638,15 @@ SELECT - - ( - + col0 ) - - col1 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -31 # Datafusion - Expected - 90 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) / cor0\.col1 \+ \(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "Int64\(68\) \+ \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 76 / col1 + - - col0 AS col2, + 68 + - col2 AS col2 FROM tab0 AS cor0 +---- +-31 +15 +173 +21 +58 +90 query II rowsort SELECT DISTINCT + col0 + col1 + + - col1 * + col1 AS col1, ( - + col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL @@ -44673,8 +45136,15 @@ SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - CAST ( col2 AS INTEGER ) AND NUL # Datafusion - Expected - 153 # Datafusion - Expected - 97 # Datafusion - Expected - 193 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 \+ \(\- CAST\(cor0\.col1 AS Int32\)\) \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + col0 ) AS col2, + col0 + - CAST ( col1 AS INTEGER ) + + col0 col2 FROM tab0 cor0 +---- +-51 +15 +153 +193 +87 +97 query I rowsort label-7350 SELECT + COUNT ( + - col0 ) AS col1 FROM tab1 @@ -44708,8 +45178,11 @@ SELECT MAX ( + col2 ) AS col1 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -156 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(\(\- cor0\.col2\)\)\) \+ Int64\(51\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col0, - COUNT ( ALL + - col2 ) + + 51 * + - COUNT ( * ) col0 FROM tab2 AS cor0 +---- +-156 +3 query I rowsort SELECT ALL - ( col0 ) FROM tab2 AS cor0 WHERE ( 49 * + col0 * 10 ) IS NULL @@ -44991,8 +45464,11 @@ SELECT col2 * - col1 / - col1 + col0 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 223 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT \(\- cor0\.col2\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - SUM ( DISTINCT + - col2 ) AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +223 +3 query III rowsort SELECT * FROM tab2 AS cor0 WHERE + col0 * + col0 IS NULL @@ -45103,8 +45579,15 @@ SELECT ALL * FROM tab2 cor0 WHERE NOT ( col1 + - - 84 * - 79 / + + col1 + + 57 + # Datafusion - Expected - 465 # Datafusion - Expected - 69 # Datafusion - Expected - 465 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col2" at position 0 and "Int64\(15\) \* Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 69 col2, + 15 * + 31 AS col2 FROM tab2 AS cor0 WHERE col0 IS NOT NULL +---- +465 +465 +465 +69 +69 +69 query II rowsort SELECT + + 49 AS col1, col2 FROM tab1 AS cor0 @@ -45524,8 +46007,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) + - - 47 AS col2, 72 col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 +---- +38 +72 query I rowsort SELECT ALL - + 85 - col1 AS col1 FROM tab2 cor0 @@ -45786,8 +46272,15 @@ SELECT ALL + 18 * + - col2 col1 FROM tab1 # Datafusion - Expected - -47 # Datafusion - Expected - 39 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col0" at position 0 and "\(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 col0, - col1 AS col0 FROM tab1 +---- +-14 +-47 +-5 +39 +39 +39 query II rowsort SELECT - - col0 col1, 74 AS col0 FROM tab1 AS cor0 @@ -46462,8 +46955,11 @@ SELECT col2 * col2 - - - col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, ( + - 60 ) AS col0 FROM tab0 cor0 +---- +-60 +3 query I rowsort SELECT ALL col0 + + + 45 AS col1 FROM tab2 AS cor0 @@ -47195,8 +47691,15 @@ SELECT ( + ( + ( 83 ) ) ) * - col2 FROM tab1 WHERE NOT NULL <> NULL # Datafusion - Expected - 45 # Datafusion - Expected - 448 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* Int64\(32\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 * + 32 AS col1, + 45 AS col1 FROM tab1 +---- +1504 +160 +448 +45 +45 +45 query I rowsort SELECT DISTINCT col2 AS col0 FROM tab1 WHERE - col0 NOT IN ( + - col2 ) @@ -47766,8 +48269,11 @@ SELECT - ( - COUNT ( ALL - col0 ) ) AS col0 FROM tab1 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\(DISTINCT cor0\.col1\)\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( DISTINCT + col1 ) AS col2, 2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL +---- +-3 +2 query I rowsort SELECT col0 FROM tab0 AS cor0 WHERE NOT - col2 = col1 @@ -48053,8 +48559,15 @@ SELECT DISTINCT - col1 AS col1, - col0 FROM tab1 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - 28 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) \- Int64\(\-66\) \+ Int64\(39\) / \(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 38 - - 66 + 39 / - - col0 col2, - col0 AS col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +28 +28 +28 query I rowsort SELECT ALL - col0 * + ( - - col0 ) + + ( - col1 ) FROM tab1 AS cor0 @@ -48495,8 +49008,15 @@ SELECT DISTINCT - col2 * + + col2 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 33 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-33\)\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 33 col2, 0 AS col2 FROM tab0 AS cor0 +---- +0 +0 +0 +33 +33 +33 query I rowsort SELECT DISTINCT + - ( - col0 ) col2 FROM tab2 AS cor0 @@ -48835,8 +49355,15 @@ SELECT DISTINCT CAST ( CAST ( + - COUNT ( ALL - 57 ) AS INTEGER ) AS INTEGER ) - # Datafusion - Expected - 18 # Datafusion - Expected - 73 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 73 AS col2, 18 AS col2 FROM tab2 AS cor0 +---- +18 +18 +18 +73 +73 +73 query III rowsort SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL BETWEEN col0 AND NULL @@ -49063,8 +49590,15 @@ SELECT - 43 AS col2, col2 col2 FROM tab1 # Datafusion - Expected - 6188 # Datafusion - Expected - 2761 # Datafusion - Expected - 5780 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* Int64\(47\) \- tab1\.col2 AS col1" at position 0 and "Int64\(\-68\) \* \(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 60 * + 47 - col2 col1, - 68 * - col0 AS col1 FROM tab1 +---- +2724 +2752 +2761 +3468 +5780 +6188 query I rowsort SELECT col0 * - + 32 - + - ( - + ( ( col1 ) ) ) AS col0 FROM tab1 @@ -50276,8 +50810,9 @@ SELECT + 68 AS col2, SUM ( DISTINCT + 20 ) FROM tab0 AS cor0 20 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 28 col0, col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL +---- query I rowsort SELECT - col1 * + + col2 FROM tab2 cor0 @@ -50320,8 +50855,15 @@ SELECT ALL * FROM tab2 WHERE NOT ( - + 28 + - 67 ) IS NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, + col0 FROM tab1 WHERE NOT + 76 IS NULL +---- +51 +51 +85 +85 +91 +91 query I rowsort label-8284 SELECT - COUNT ( * ) * - 84 AS col2 FROM tab0 @@ -50389,8 +50931,11 @@ SELECT DISTINCT - 64 * + 68 + + col0 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "cor0\.col1 \- cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) col2, col1 - + col1 AS col2 FROM tab2 AS cor0 +---- +0 +NULL query I rowsort label-8297 SELECT MAX ( DISTINCT - - ( + col2 ) ) + + + COUNT ( * ) AS col1 FROM tab2 AS cor0 @@ -50449,8 +50994,11 @@ SELECT - + 97 FROM tab1 WHERE - - col2 IN ( col2, + ( + col0 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, - 32 AS col2 FROM tab2 +---- +-32 +3 query I rowsort label-8306 SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) FROM tab2 @@ -51193,8 +51741,15 @@ SELECT DISTINCT - 28 + + - 40, + COUNT ( * ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 49 # Datafusion - Expected - 32 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(32\)\)\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( 32 ) AS col1, + 49 AS col1 FROM tab0 AS cor0 +---- +32 +32 +32 +49 +49 +49 query II rowsort SELECT + col1 + col2 - - col1, col1 FROM tab2 @@ -51452,8 +52007,11 @@ SELECT ALL - - MAX ( 16 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 AS col2, + COUNT ( * ) AS col2 FROM tab0 +---- +3 +63 query I rowsort label-8467 SELECT DISTINCT - col2 / + ( 92 ) FROM tab1 @@ -51588,8 +52146,11 @@ SELECT ALL col0 + + + 93 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 72 + COUNT ( * ) + + COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2 +---- +-66 +3 query I rowsort SELECT ALL 1 * - - col2 - - - col1 FROM tab2 @@ -51820,8 +52381,15 @@ SELECT DISTINCT - col1 + + - col2 FROM tab1 WHERE - 28 * col1 = - + 44 + 56 # Datafusion - Expected - -7656 # Datafusion - Expected - 2856 # Datafusion - Expected - -9506 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \* Int64\(51\) AS col2" at position 0 and "\(\- tab0\.col0\) \+ tab0\.col0 \* \(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 * + + 51 AS col2, - col0 + + col0 * + - col0 AS col2 FROM tab0 +---- +-240 +-7656 +-9506 +2856 +2856 +2856 query II rowsort label-8527 SELECT + col1 - - ( + col1 ), + 69 * CAST ( NULL AS INTEGER ) * 28 AS col2 FROM tab1 @@ -52193,8 +52761,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - 23, col0, - 80, - col2 # Datafusion - Expected - -40 # Datafusion - Expected - 58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col2 AS col1, - col2 AS col1 FROM tab2 cor0 +---- +-23 +-40 +-58 +23 +40 +58 query I rowsort label-8588 SELECT DISTINCT + + col2 / + 44 + - col0 FROM tab1 AS cor0 @@ -52721,8 +53296,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL +---- +3 +3 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT col1 + col0 * 50 NOT BETWEEN + + col0 AND + 81 @@ -53100,8 +53678,15 @@ SELECT - - 56 AS col2, 29 FROM tab1 cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, col0 FROM tab1 AS cor0 WHERE 41 IS NOT NULL +---- +51 +51 +85 +85 +91 +91 query I rowsort label-8744 SELECT - MIN ( - - col1 ) AS col2 FROM tab1 @@ -53198,8 +53783,11 @@ SELECT * FROM tab0 AS cor0 WHERE NOT ( - 95 ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col2, col0 AS col2 FROM tab0 AS cor0 WHERE NOT col1 < + col0 +---- +-47 +15 query I rowsort SELECT - - 78 * col1 * + - 8 + + col2 - + 58 AS col1 FROM tab1 AS cor0 @@ -53232,8 +53820,9 @@ SELECT ALL - col2 + - 15 col0, 0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND - ( - ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab0\.col0 AS Int32\)\)" at position 0 and "\(\- tab0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - CAST ( col0 AS INTEGER ) ), - col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 AND + col0 * + + col1 +---- query I rowsort SELECT ( + col1 ) * col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 ) @@ -53390,8 +53979,9 @@ SELECT * FROM tab2 WHERE NOT + 31 * - + ( + col2 ) * + col1 BETWEEN - 82 AND NUL 9 values hashing to 75c998aa53ac83218cbf2feb962d0a49 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "\(\- tab2\.col2\) \+ tab2\.col1 \* tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, - col2 + col1 * col1 AS col0 FROM tab2 WHERE NOT NULL = ( + col0 ) +---- query I rowsort label-8793 SELECT MAX ( - + ( + col2 ) ) AS col1 FROM tab0 AS cor0 @@ -53606,8 +54196,15 @@ SELECT ALL - 7 FROM tab0 cor0 JOIN tab0 AS cor1 ON NULL IS NOT NULL # Datafusion - Expected - 1827 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "\(\- tab0\.col1\) \* \(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col2, - col1 * - col0 AS col2 FROM tab0 +---- +1215 +15 +1827 +87 +97 +97 query I rowsort SELECT ALL 19 * + + 5 FROM tab0 @@ -53677,8 +54274,15 @@ SELECT * FROM tab2 AS cor0 WHERE 6 * + ( + 89 ) * - - col1 NOT BETWEEN ( + - 92 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, + col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT DISTINCT - 95 + - ( + col1 ) AS col1 FROM tab2 @@ -54079,8 +54683,15 @@ SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( - col1, - col1, + 7 + - - 71 + co # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col0, col0 FROM tab2 AS cor0 WHERE NOT 12 - + + col2 IS NULL +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT ALL + col2 * + col1 * + col1 - - col1 FROM tab1 AS cor0 @@ -54597,8 +55208,10 @@ SELECT DISTINCT - SUM ( ALL + + ( - + col0 ) ) col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to fc8913db0d4506f77b2b8900b3148f09 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-72\)\) AS col2" at position 0 and "\(\- Int64\(83\)\) \* cor0\.col0 \* \(\- cor0\.col1\) / \(\- cor0\.col1\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - - 72 AS col2, col0 AS col0, - + 83 * + col0 * - col1 / - + col1 AS col2 FROM tab1 AS cor0 +---- +9 values hashing to 7fbea6f852a45c17662ce636529f5357 query I rowsort SELECT + col1 * + + 38 * - col2 FROM tab1 cor0 @@ -54753,8 +55366,11 @@ SELECT 16 * + col1 / - col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 +---- +3 +NULL query I rowsort SELECT ( 72 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 @@ -54768,8 +55384,11 @@ SELECT DISTINCT * FROM tab2 WHERE - 27 < NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) / Int64\(66\) \+ \(\- \(\- cor0\.col1\)\) \+ \(\- Int64\(\-13\)\) AS col1" at position 0 and "Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 * - ( - CAST ( NULL AS INTEGER ) ) / + 66 + - - col1 + - - 13 AS col1, - 85 AS col1 FROM tab1 AS cor0 +---- +-85 +NULL query I rowsort label-9016 SELECT ALL - + COUNT ( * ) * 27 FROM tab0 AS cor0 @@ -56116,8 +56735,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 42 AS col1, + COUNT ( * ) / 28 AS col1 FROM tab1 +---- +0 +42 query I rowsort label-9242 SELECT - COUNT ( * ) * - MAX ( + 14 ) AS col2 FROM tab1 @@ -57152,8 +57774,9 @@ SELECT ALL - + 98 AS col1 FROM tab0 AS cor0 -98 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \* \(\- Int64\(\-26\)\) \* \(\- CAST\(Int64\(39\) AS Int32\)\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 35 * - - 26 * - CAST ( + 39 AS INTEGER ) AS col0, col2 col0 FROM tab2 WHERE NULL IS NOT NULL +---- # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 @@ -57587,8 +58210,15 @@ SELECT - col1 / col2 + + + col0 * - + col2 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 50 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- cor0\.col2\) \+ Int64\(26\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 + - ( col2 ) + + 26 AS col1, ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 cor0 +---- +43 +49 +50 +NULL +NULL +NULL query I rowsort label-9480 SELECT + COUNT ( * ) + + - ( - MIN ( DISTINCT + 80 ) ) AS col0 FROM tab0 cor0 @@ -58403,8 +59033,11 @@ SELECT * FROM tab0 WHERE NOT ( - - 87 - - + 79 ) IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -185 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) 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 II valuesort SELECT DISTINCT 71 AS col0, SUM ( + - col0 ) col0 FROM tab2 AS cor0 +---- +-185 +71 query I rowsort SELECT ALL + 17 * col1 AS col1 FROM tab0 @@ -59032,8 +59665,15 @@ SELECT * FROM tab1 AS cor0 WHERE - 4 * + col1 IS NULL # Datafusion - Expected - 115 # Datafusion - Expected - -20 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \+ Int64\(\-48\) AS col1" at position 0 and "cor0\.col1 \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 28 + - 48 AS col1, + col1 + + + col2 AS col1 FROM tab1 AS cor0 +---- +-20 +-20 +-20 +110 +115 +64 query I rowsort SELECT DISTINCT - col1 - - col2 FROM tab2 cor0 @@ -59458,8 +60098,15 @@ SELECT ALL - col2 AS col2 FROM tab2 AS cor0 WHERE NOT - CAST ( + col0 AS INTEGER # Datafusion - Expected - NULL # Datafusion - Expected - 53 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 53 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 +---- +53 +53 +53 +NULL +NULL +NULL query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 34 / col2 * - 65 * + col2 IS NULL @@ -60258,8 +60905,15 @@ SELECT + 46 + + 65 FROM tab0 cor0 # Datafusion - Expected - -56 # Datafusion - Expected - -81 # Datafusion - Expected - -116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / Int64\(\-71\) \+ \(\- cor0\.col1\) AS col2" at position 0 and "\(\- cor0\.col1\) \+ \(\- Int64\(35\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 / + - 71 + - col1 AS col2, - col1 + - ( 35 ) AS col2 FROM tab0 AS cor0 +---- +-116 +-2 +-21 +-36 +-56 +-81 query I rowsort SELECT DISTINCT 61 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 diff --git a/data/sqlite/random/aggregates/slt_good_114.slt b/data/sqlite/random/aggregates/slt_good_114.slt index 08c8645..8542c6b 100644 --- a/data/sqlite/random/aggregates/slt_good_114.slt +++ b/data/sqlite/random/aggregates/slt_good_114.slt @@ -590,8 +590,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE + col2 + 56 < - col0 # Datafusion - Expected - -9216 # Datafusion - Expected - 8 # Datafusion - Expected - -3481 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \+ \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col2 \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 67 + + - col2 col2, col2 * - + col2 AS col2 FROM tab1 AS cor0 +---- +-1 +-29 +-3481 +-4624 +-9216 +8 query III rowsort SELECT * FROM tab0 AS cor0 WHERE - col1 >= col2 @@ -985,8 +992,11 @@ SELECT ALL + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + 93 >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 156 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-52\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) * - 52 AS col0, COUNT ( * ) col0 FROM tab2 AS cor0 +---- +156 +3 query I rowsort SELECT ALL + 27 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 @@ -1997,8 +2007,15 @@ SELECT + col2 AS col1 FROM tab2 cor0 WHERE NOT ( col0 ) + col2 + - + col2 / - + # Datafusion - Expected - 375760112 # Datafusion - Expected - 5 # Datafusion - Expected - 28109075 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "\(\- cor0\.col0\) \* Int64\(\-19\) \* cor0\.col2 \* \(\- cor0\.col2\) \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - ( - col1 ) ) col1, - col0 * - 19 * ( col2 ) * + ( - + col2 ) * - col1 AS col1 FROM tab1 AS cor0 +---- +125024256 +14 +28109075 +375760112 +47 +5 query I rowsort label-322 SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - 7 IS NULL @@ -2183,8 +2200,11 @@ SELECT - 65 * - - 11 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3280 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(40\)\) \* Int64\(82\) AS col2" at position 0 and "\(\- CAST\(\(\- \(\- CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\)\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MAX ( ALL + 40 ) * 82 AS col2, - CAST ( - - CAST ( - - COUNT ( * ) AS INTEGER ) AS INTEGER ) col2 FROM tab1 AS cor0 +---- +-3 +3280 query II rowsort SELECT - col1, 13 AS col0 FROM tab2 @@ -2767,8 +2787,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col2, - COUNT ( DISTINCT - + 8 ) AS col2 FROM tab1 +---- +-1 +-3 query I rowsort SELECT - ( + col0 ) - 72 + col0 FROM tab2 WHERE NOT - + col0 * - + col1 + - - col0 + - + 16 IS NULL @@ -2840,8 +2863,11 @@ SELECT * FROM tab2 WHERE col1 BETWEEN - - col0 AND - col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) col2, + 63 AS col2 FROM tab0 +---- +3 +63 query I rowsort label-462 SELECT + col2 + ( + CAST ( NULL AS INTEGER ) ) + - + 21 + + + 5 - + col2 FROM tab0 WHERE ( NOT NULL < + col1 + - 68 * - - ( + 60 ) / 27 + - 45 * + ( - CAST ( NULL AS INTEGER ) ) ) @@ -2868,8 +2894,15 @@ SELECT COUNT ( * ) * - 70 AS col0 FROM tab1 # Datafusion - Expected - 1 # Datafusion - Expected - 4086 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(39\)\) \+ Int64\(55\) \* cor0\.col0 AS col2" at position 0 and "cor0\.col0 / cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 39 + + 55 * + col0 AS col2, col0 / + col2 AS col2 FROM tab2 AS cor0 +---- +1 +1 +2 +2491 +3481 +4086 query I rowsort SELECT - 53 + - 80 AS col0 FROM tab0 AS cor0 @@ -4222,8 +4255,11 @@ SELECT DISTINCT + 96 * + 23 * 97 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5100 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-20\)\) \* \(\- Int64\(85\)\) AS col0" at position 0 and "Int64\(\-29\) / Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( ALL + - 20 ) * - ( 85 ) AS col0, - 29 / 4 AS col0 FROM tab2 AS cor0 +---- +-7 +5100 query III rowsort SELECT * FROM tab1 cor0 WHERE NOT - col1 * - col1 NOT BETWEEN + col2 AND + ( + - 56 ) @@ -5186,8 +5222,15 @@ SELECT - col0 * - + ( 28 ) AS col1, col0 + col1 + + + 12 FROM tab1 # Datafusion - Expected - 156468 # Datafusion - Expected - -19 # Datafusion - Expected - 220896 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col2" at position 0 and "Int64\(59\) \* Int64\(39\) \* tab1\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 19 col2, 59 * + + 39 * col2 AS col2 FROM tab1 +---- +-19 +-19 +-19 +135759 +156468 +220896 query III rowsort SELECT * FROM tab1 WHERE NOT - ( - - 79 ) IS NULL @@ -5602,8 +5645,15 @@ SELECT - - 68 + - 1 + - COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS co # Datafusion - Expected - -35 # Datafusion - Expected - 99 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "Int64\(\-35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 col0, - 35 AS col0 FROM tab0 +---- +-35 +-35 +-35 +99 +99 +99 query I rowsort label-918 SELECT ALL - - MIN ( DISTINCT + col2 ) FROM tab0 AS cor0 @@ -7475,8 +7525,15 @@ SELECT DISTINCT + COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab1 # Datafusion - Expected - 45 # Datafusion - Expected - 44 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 AS col1, 45 AS col1 FROM tab2 cor0 +---- +44 +44 +44 +45 +45 +45 query I rowsort SELECT 38 * 24 * + col2 FROM tab0 AS cor0 @@ -7663,8 +7720,10 @@ SELECT MAX ( DISTINCT 12 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to cabcceb7ba1f8ba7ee1638233735ec87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ \(\- tab2\.col1\) \+ tab2\.col1 AS col0" at position 1 and "Int64\(57\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - ( + col0 ), 58 + - col1 + + + col1 AS col0, 57 AS col0 FROM tab2 +---- +9 values hashing to 92b4f9b9646ba2de109806ba4902fe5d query I rowsort label-1264 SELECT SUM ( DISTINCT 38 ) FROM tab0 @@ -8110,8 +8169,15 @@ SELECT * FROM tab1 AS cor0 WHERE 66 / + - col0 * - 82 IS NULL # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col1, + col1 AS col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT DISTINCT col0 * - - 97 FROM tab1 @@ -9143,8 +9209,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT col0 <> - 20 * - + col1 # Datafusion - Expected - NULL # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col1 AS Int32\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( + col1 AS INTEGER ) AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 +---- +51 +67 +77 +NULL +NULL +NULL query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 67 / 29 IN ( + col2 ) @@ -9204,8 +9277,15 @@ SELECT ALL COUNT ( * ), COUNT ( * ) col1 FROM tab2 # Datafusion - Expected - -22 # Datafusion - Expected - 58 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, - 22 AS col0 FROM tab2 +---- +-22 +-22 +-22 +23 +40 +58 query I rowsort label-1524 SELECT - + CAST ( - 62 AS INTEGER ) * COUNT ( * ) * + 19 FROM tab1 WHERE NOT - 8 IS NULL @@ -9437,8 +9517,15 @@ SELECT DISTINCT + 69 AS col1, - 56 + - 43 AS col2 FROM tab0 cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 21 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 21 AS col1, 87 col1 FROM tab2 cor0 +---- +21 +21 +21 +87 +87 +87 query I rowsort SELECT - 84 * + + col2 col0 FROM tab2 @@ -10112,8 +10199,11 @@ SELECT DISTINCT - SUM ( ALL 56 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(tab2\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) + + COUNT ( * ) AS col2, - COUNT ( col1 ) AS col2 FROM tab2 +---- +-3 +0 query I rowsort SELECT - col0 + + + col2 + 1 FROM tab2 @@ -10227,8 +10317,15 @@ SELECT DISTINCT - 44 + ( - 22 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 108 # Datafusion - Expected - -9507 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- cor0\.col2 \+ \(\- cor0\.col0\) \* \(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "cor0\.col1 \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col1 - col2 + - col0 * - ( - col0 ) AS col1, + col1 + col0 AS col1 FROM tab0 AS cor0 +---- +-191 +-7558 +-9507 +108 +96 +98 query III rowsort SELECT * FROM tab0 WHERE NOT NULL NOT IN ( col2, 58, + col0 ) @@ -10274,8 +10371,11 @@ SELECT - - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 +---- +-3 +NULL query II rowsort SELECT 45, 44 AS col0 FROM tab2 @@ -10717,8 +10817,11 @@ SELECT ALL ( + + 4 ) / - COUNT ( * ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ), COUNT ( * ) FROM tab1 +---- +3 +3 query I rowsort SELECT ALL - 50 AS col0 FROM tab1 cor0 @@ -10857,8 +10960,15 @@ SELECT SUM ( ALL - 9 ) AS col1, 85 AS col2 FROM tab0 # Datafusion - Expected - 81 # Datafusion - Expected - 9 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) / tab0\.col2 AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 97 / col2 AS col2, + col1 AS col2 FROM tab0 +---- +0 +1 +2 +21 +81 +9 query I rowsort label-1788 SELECT ALL MIN ( DISTINCT - 77 ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) @@ -11175,8 +11285,15 @@ SELECT DISTINCT + - 38 + 12 + + - col2 AS col1, + col2 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, - CAST ( NULL AS INTEGER ) * - 59 AS col1 FROM tab0 AS cor0 +---- +15 +87 +97 +NULL +NULL +NULL query II rowsort SELECT ALL - 87 + - 26 * + col0 + - col2 AS col2, - col0 FROM tab2 AS cor0 @@ -12794,8 +12911,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( - 60 ) AS col2, COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +-60 +-9 # Datafusion - Datafusion expected results: query error DataFusion error: Schema error: Schema contains qualified field name cor0\.col1 and unqualified field name col1 which would be ambiguous @@ -13001,8 +13121,10 @@ SELECT ALL - 31 * - + col2 col1 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to dc45e674a7fe272537b91698e269813c -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / Int64\(50\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + CAST ( NULL AS INTEGER ) / + 50 col2, 14 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 +---- +18 values hashing to 6640b9a43da11533fed6980e93083d51 query I rowsort SELECT 61 * + 10 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 @@ -13344,8 +13466,15 @@ SELECT DISTINCT - - col0 * col0 - 73 col2 FROM tab1 AS cor0 # Datafusion - Expected - 1360 # Datafusion - Expected - -96 # Datafusion - Expected - 1920 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col0" at position 0 and "Int64\(20\) \* tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, 20 * + col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL +---- +-59 +-68 +-96 +1180 +1360 +1920 query I rowsort SELECT + ( - ( - - 77 ) ) AS col1 FROM tab2 @@ -14134,8 +14263,15 @@ SELECT + MIN ( ALL - + col0 ) AS col2, 37 FROM tab1 # Datafusion - Expected - 20 # Datafusion - Expected - 1 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 / tab0\.col2 AS col2" at position 0 and "tab0\.col2 \- \(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 / + col2 AS col2, + ( + col2 ) - + - col2 AS col2 FROM tab0 +---- +1 +1 +1 +198 +20 +94 query I rowsort label-2326 SELECT DISTINCT 17 / - col0 AS col2 FROM tab0 @@ -14245,8 +14381,15 @@ SELECT + 87 - + col2 + - col2 AS col1 FROM tab0 # Datafusion - Expected - 77 # Datafusion - Expected - 5 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \- \(\- tab2\.col1\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 - - col1 AS col2, col1 col2 FROM tab2 +---- +-8 +13 +5 +51 +67 +77 query I rowsort SELECT DISTINCT - - ( - + ( - col1 ) ) FROM tab0 WHERE NOT col0 >= + ( col2 ) + + col2 * - 91 @@ -15453,8 +15596,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT - 67 NOT BETWEEN col2 AND + - col0 * ( - c # Datafusion - Expected - 0 # Datafusion - Expected - -96 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "Int64\(60\) / \(\- Int64\(\-80\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, 60 / - - 80 AS col2 FROM tab1 +---- +-59 +-68 +-96 +0 +0 +0 query II rowsort SELECT ALL - - 74, col0 FROM tab1 WHERE NOT - - col0 IS NOT NULL @@ -15644,8 +15794,11 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * - 84 * + + col2 IS 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\(DISTINCT Int64\(\-58\)\)\) AS col1" at position 0 and "Int64\(\-48\) \- \(\- Int64\(\-33\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( DISTINCT - 58 ) AS col1, - 48 - - - 33 AS col1 FROM tab1 AS cor0 +---- +-1 +-81 query I rowsort label-2582 SELECT MAX ( ALL col1 ) * - + 72 AS col0 FROM tab0 AS cor0 @@ -15857,8 +16010,15 @@ SELECT ALL col2 * col1 + 78 FROM tab1 cor0 # Datafusion - Expected - -54 # Datafusion - Expected - -77 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col0 \+ \(\- cor0\.col0\) \- Int64\(\-11\) \+ Int64\(22\) \- \(\- Int64\(\-87\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col1 AS col0, + col0 + - col0 - - 11 + + 22 - + ( - - 87 ) AS col0 FROM tab2 AS cor0 +---- +-51 +-54 +-54 +-54 +-67 +-77 query I rowsort SELECT col2 * - + ( col0 ) * + 61 + + ( + col1 ) FROM tab1 @@ -15874,8 +16034,15 @@ SELECT col2 * - + ( col0 ) * + 61 + + ( + col1 ) FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - 27 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 27 ) AS col1, col0 AS col1 FROM tab2 +---- +27 +27 +27 +46 +64 +75 query I rowsort SELECT 36 * - col2 AS col1 FROM tab0 @@ -16588,8 +16755,11 @@ SELECT * FROM tab2 AS cor0 WHERE CAST ( - col1 AS INTEGER ) + + - 14 NOT BETWEEN # Datafusion - Datafusion expected results: # Datafusion - Expected - -2196 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(\-36\) AS col2" at position 0 and "sum\(DISTINCT Int64\(\-1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 * - 36 AS col2, SUM ( DISTINCT - 1 ) AS col2 FROM tab2 +---- +-1 +-2196 query I rowsort SELECT + col0 * + + col1 AS col1 FROM tab1 AS cor0 @@ -17549,8 +17719,15 @@ SELECT + col1 / + col2 * - col0 col2 FROM tab1 # Datafusion - Expected - 31 # Datafusion - Expected - 58 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + + col2 ) col1, + 31 AS col1 FROM tab2 +---- +23 +31 +31 +31 +40 +58 query II rowsort SELECT ALL - 80 * - 59 AS col1, + 52 AS col0 FROM tab0 @@ -18251,8 +18428,11 @@ SELECT 45 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> - col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(DISTINCT cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + COUNT ( * ) * + COUNT ( * ) AS col2, COUNT ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0 +---- +3 +9 query I rowsort SELECT 71 * - col1 FROM tab0 @@ -18839,8 +19019,11 @@ SELECT ALL - 80 FROM tab1 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(\-42\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( ALL - 42 ) AS col2, + COUNT ( * ) AS col2 FROM tab1 +---- +-3 +3 query I rowsort label-3108 SELECT ALL 24 * - COUNT ( ALL - col1 ) FROM tab0 WHERE NULL >= - 24 * CAST ( + + col0 AS INTEGER ) - - - col0 @@ -19043,8 +19226,15 @@ SELECT - - MAX ( - - col1 ) FROM tab2 AS cor0 # Datafusion - Expected - -4418 # Datafusion - Expected - 5414976 # Datafusion - Expected - -1316 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \* cor0\.col2 \* \(\- cor0\.col0\) \* cor0\.col1 AS col1" at position 0 and "cor0\.col1 \* Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 79 * col2 * - col0 * + col1 AS col1, col1 * - 94 AS col1 FROM tab1 AS cor0 +---- +-1316 +-4418 +-470 +1980925 +22976044 +5414976 query I rowsort SELECT - - col2 + + col0 * 46 + - col2 FROM tab0 AS cor0 @@ -20868,8 +21058,15 @@ SELECT 22 * - - col2 AS col0 FROM tab0 # Datafusion - Expected - 98 # Datafusion - Expected - 99 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, 98 col0 FROM tab0 +---- +10 +47 +98 +98 +98 +99 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -21192,8 +21389,15 @@ SELECT SUM ( 7 ) AS col2 FROM tab0 WHERE NOT 86 IS NULL # Datafusion - Expected - -77 # Datafusion - Expected - 49 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(9\)\) \+ cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 9 + col2 col1, - col1 AS col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +14 +31 +49 query II rowsort label-3499 SELECT col1 + col1 + col0 / - ( CAST ( NULL AS INTEGER ) ) AS col1, 62 FROM tab1 AS cor0 @@ -21490,8 +21694,9 @@ SELECT 93 * - - COUNT ( * ) + COUNT ( * ) FROM tab2 282 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0, col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) >= NULL +---- query I rowsort SELECT + - 15 FROM tab2 AS cor0 WHERE ( NULL ) > NULL @@ -21840,8 +22045,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ), COUNT ( * ) FROM tab1 +---- +3 +3 query I rowsort label-3605 SELECT + COUNT ( * ) * + 46 FROM tab0 @@ -22982,8 +23190,15 @@ SELECT - 10 FROM tab2 AS cor0 WHERE NOT col0 * ( + - col2 ) BETWEEN - col0 AND - # Datafusion - Expected - 5390 # Datafusion - Expected - -4408 # Datafusion - Expected - 5390 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col2\) \- cor0\.col2 AS col0" at position 0 and "Int64\(98\) \* Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * + - ( col2 ) - + col2 AS col0, + 98 * + 55 AS col0 FROM tab2 AS cor0 +---- +-1081 +-2600 +-4408 +5390 +5390 +5390 query II rowsort SELECT 90 col0, col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL @@ -23136,8 +23351,15 @@ SELECT + col0 AS col1 FROM tab0 WHERE NOT + col2 <> NULL # Datafusion - Expected - 124 # Datafusion - Expected - 14 # Datafusion - Expected - 124 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col2" at position 0 and "Int64\(33\) \+ Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 14 col2, + 33 + + 91 AS col2 FROM tab0 +---- +124 +124 +124 +14 +14 +14 query I rowsort SELECT - 94 * ( - 26 ) FROM tab0 @@ -24319,8 +24541,11 @@ SELECT ALL + + 3 * col1 + - CAST ( NULL AS INTEGER ) FROM tab1 WHERE + - CAST ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -121 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(cor0\.col2\)\) 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 II valuesort SELECT + - SUM ( + col2 ) AS col2, MIN ( col2 ) AS col2 FROM tab2 cor0 +---- +-121 +23 query III rowsort SELECT * FROM tab0 AS cor0 WHERE - col0 * + col0 * col1 * col1 - + 94 > - col0 * 11 + - col2 + - 54 @@ -24666,8 +24891,10 @@ SELECT * FROM tab0 WHERE col1 BETWEEN - CAST ( NULL AS INTEGER ) AND - col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f9bc6b1e3531733d0ab4d945902c13ee -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / \(\- cor0\.col1\) AS col2" at position 0 and "Int64\(94\) \* Int64\(94\) \+ cor0\.col1 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col2 / - + col1 AS col2, col1 + - col2, 94 * + 94 + + + col1 AS col2 FROM tab1 AS cor0 +---- +9 values hashing to 0d23fe4b514eb9aa1a03469750645a69 query I rowsort SELECT ALL + 50 + 25 FROM tab1 AS cor0 @@ -25408,8 +25635,11 @@ SELECT * FROM tab0 WHERE NULL IS NOT NULL AND NOT ( col1 * col2 + - col2 ) IS NO # Datafusion - Datafusion expected results: # Datafusion - Expected - 854 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* Int64\(\-14\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 61 * - 14 AS col1, - COUNT ( * ) + + COUNT ( * ) col1 FROM tab2 +---- +0 +854 query I rowsort label-4198 SELECT DISTINCT - MIN ( col1 ) + + CAST ( MIN ( - col0 ) AS INTEGER ) FROM tab1 WHERE NOT NULL < NULL @@ -26037,8 +26267,15 @@ SELECT ALL + col0, col0 / + col0 + col2 AS col1 FROM tab2 WHERE NULL IS NOT NULL # Datafusion - Expected - -67 # Datafusion - Expected - 77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col2, + ( - col1 ) AS col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +51 +67 +77 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NULL IS NULL OR NULL > NULL @@ -27559,8 +27796,15 @@ SELECT * FROM tab1 WHERE NULL < col2 * col0 + - - col1 # Datafusion - Expected - 86 # Datafusion - Expected - 141 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ \(\- \(\- tab2\.col1\)\) AS col0" at position 0 and "tab2\.col1 \- Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 + - - col1 AS col0, col1 - - 19 AS col0 FROM tab2 +---- +115 +131 +141 +70 +86 +96 query I rowsort SELECT ALL col0 * + - 53 AS col2 FROM tab2 @@ -27600,8 +27844,11 @@ 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\(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\. +query II valuesort SELECT ALL + ( + + COUNT ( * ) ) - 72 col2, + MAX ( + 59 ) AS col2 FROM tab0 +---- +-69 +59 query II rowsort SELECT DISTINCT ( + 25 ) * - col1, 64 AS col1 FROM tab2 @@ -28848,8 +29095,11 @@ SELECT - 37 * - col0 FROM tab1 WHERE NOT ( 64 IS NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) col2, + COUNT ( * ) AS col2 FROM tab1 +---- +3 +3 query II rowsort label-4768 SELECT ( - + 76 ) * + - COUNT ( * ), - MAX ( + col1 ) AS col2 FROM tab1 @@ -28864,8 +29114,15 @@ SELECT ( - + 76 ) * + - COUNT ( * ), - MAX ( + col1 ) AS col2 FROM tab1 # Datafusion - Expected - -1922 # Datafusion - Expected - 77 # Datafusion - Expected - -1922 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "Int64\(\-62\) \* Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col0, - 62 * 31 AS col0 FROM tab2 +---- +-1922 +-1922 +-1922 +51 +67 +77 query I rowsort label-4770 SELECT ( - MIN ( + + 19 ) ) col2 FROM tab1 @@ -29000,8 +29257,15 @@ SELECT DISTINCT COUNT ( * ) / + ( + MAX ( - - col1 ) ) * - 4 AS col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 +---- +10 +47 +99 +NULL +NULL +NULL query I rowsort SELECT + 36 * - ( 5 ) AS col0 FROM tab0 AS cor0 @@ -29356,8 +29620,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE - 28 NOT BETWEEN NULL AND 38 / col1 # Datafusion - Expected - -44 # Datafusion - Expected - NULL # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ cor0\.col0 AS col0" at position 0 and "cor0\.col1 \+ \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) + + col0 AS col0, + col1 + - col0 AS col0 FROM tab1 cor0 +---- +-37 +-44 +-80 +NULL +NULL +NULL query I rowsort SELECT ALL 48 + col2 FROM tab0 AS cor0 @@ -29596,8 +29867,15 @@ SELECT DISTINCT * FROM tab0 cor0 WHERE col2 NOT BETWEEN + 45 AND NULL # Datafusion - Expected - -24 # Datafusion - Expected - -81 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(63\) \- cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, 63 - col0 AS col1 FROM tab0 AS cor0 WHERE - col0 * col0 IS NOT NULL +---- +-1 +-21 +-24 +-34 +-81 +48 query II rowsort SELECT - - 66 AS col0, + 77 * + col2 FROM tab2 cor0 @@ -29621,8 +29899,15 @@ SELECT ALL + COUNT ( * ) + + 51 + - - 17 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -81 # 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 "\(\- cor0\.col0\) \+ Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 88 AS col2, - col0 + + + 16 col2 FROM tab0 AS cor0 +---- +-71 +-81 +-88 +-88 +-88 +1 query I rowsort SELECT + ( - - 93 ) FROM tab1 AS cor0 @@ -29657,8 +29942,15 @@ SELECT DISTINCT + 66 AS col0 FROM tab0 WHERE NULL IS NOT NULL # Datafusion - Expected - -4947 # Datafusion - Expected - 32 # Datafusion - Expected - -765 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-32\)\) AS col2" at position 0 and "Int64\(\-51\) \* tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - 32 ) AS col2, - 51 * + col0 AS col2 FROM tab0 +---- +-4437 +-4947 +-765 +32 +32 +32 query I rowsort label-4903 SELECT - MIN ( DISTINCT + - 32 ) AS col1 FROM tab0 @@ -29858,8 +30150,9 @@ SELECT ( - + 84 ) FROM tab1 AS cor0 -84 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col1 \* Int64\(78\) \* Int64\(99\) \* \(\- \(\- tab0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col2, col1 * + 78 * 99 * - ( + - col2 ) AS col2 FROM tab0 WHERE NOT + col0 * col1 / 47 < - 75 + + + col0 * + 18 +---- query I rowsort SELECT DISTINCT 50 * - 63 col0 FROM tab1 @@ -29879,8 +30172,15 @@ SELECT 20 AS col1, + COUNT ( * ) col0 FROM tab0 # Datafusion - Expected - -64 # Datafusion - Expected - 75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, - col0 col1 FROM tab2 +---- +-46 +-64 +-75 +46 +64 +75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 @@ -30576,8 +30876,15 @@ SELECT + 60 * - - 70 - - col2 * 18 FROM tab0 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - -77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "CAST\(\(\- cor0\.col1\) AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - + col1 ), CAST ( - + col1 AS INTEGER ) FROM tab2 AS cor0 +---- +-51 +-51 +-67 +-67 +-77 +-77 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT + 44 IS NOT NULL @@ -31061,8 +31368,11 @@ SELECT ALL col2 / + col2 AS col2, - 35 * - ( col2 ) + col2 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1248 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(\-16\) AS col2" at position 0 and "max\(tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 * + - 16 AS col2, MAX ( ALL col0 ) AS col2 FROM tab1 +---- +-1248 +91 query III rowsort SELECT ALL * FROM tab1 WHERE ( col2 ) = ( NULL ) @@ -31524,8 +31834,15 @@ SELECT ALL - col0 AS col0 FROM tab2 WHERE + + col0 IS NOT NULL # Datafusion - Expected - 361631 # Datafusion - Expected - -99 # Datafusion - Expected - 4563 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "tab0\.col2 \+ Int64\(48\) \* Int64\(\-93\) \* \(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( col2 ) AS col1, col2 + 48 * - 93 * - + col1 AS col1 FROM tab0 +---- +-10 +-47 +-99 +361631 +4563 +93754 query I rowsort SELECT DISTINCT - col2 * + col0 - ( + 32 ) AS col0 FROM tab0 AS cor0 @@ -31851,8 +32168,10 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 2023374bb80f155083512ebd9c78bd9f -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- \(\- cor0\.col1\)\) AS col2" at position 1 and "Int64\(7\) \+ cor0\.col2 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - col0 * col2 + + - col2 + 90, - col2 * - - col1 AS col2, + 7 + + col2 AS col2 FROM tab1 AS cor0 +---- +9 values hashing to c22d1fc024c60317c49780f599edd37e query I rowsort SELECT ALL - 42 * ( - col1 ) * + ( + ( + 17 ) ) FROM tab0 @@ -33032,8 +33351,15 @@ SELECT ALL col0 AS col0, + col0 / col0 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 AS col2, + col1 AS col2 FROM tab0 AS cor0 +---- +1 +15 +21 +81 +87 +97 query II rowsort SELECT ALL - col0 col0, 73 FROM tab2 AS cor0 @@ -33232,8 +33558,9 @@ SELECT * FROM tab1 WHERE NOT - 14 IS NULL 9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, - col2 AS col0 FROM tab2 WHERE NOT NULL IS NULL +---- query II rowsort label-5485 SELECT ALL 59 AS col0, - 10 / col1 / 75 FROM tab0 cor0 @@ -33298,8 +33625,15 @@ SELECT ALL * FROM tab1 WHERE - col0 + + 42 <= NULL # Datafusion - Expected - 0 # Datafusion - Expected - -99 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col0" at position 0 and "tab0\.col1 \+ \(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, col1 + - + col1 col0 FROM tab0 +---- +-10 +-47 +-99 +0 +0 +0 query I rowsort label-5495 SELECT DISTINCT + - 61 * COUNT ( * ) AS col0 FROM tab1 cor0 @@ -33741,8 +34075,15 @@ SELECT * FROM tab0 AS cor0 WHERE + col0 + + col0 * + col1 IS NOT NULL # Datafusion - Expected - -49 # Datafusion - Expected - -891 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-9\)\) \* Int64\(\-99\) AS col1" at position 0 and "Int64\(7\) \+ Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 9 * - 99 AS col1, 7 + - 56 AS col1 FROM tab2 AS cor0 +---- +-49 +-49 +-49 +-891 +-891 +-891 query I rowsort label-5576 SELECT - COUNT ( ALL 35 ) AS col0 FROM tab1 AS cor0 @@ -34421,8 +34762,15 @@ SELECT 82 FROM tab1 WHERE 10 IS NULL # Datafusion - Expected - 70 # Datafusion - Expected - 81 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, 70 AS col2 FROM tab0 +---- +1 +21 +70 +70 +70 +81 query I rowsort SELECT + ( - col2 ) FROM tab0 WHERE ( + 42 ) IS NULL @@ -34666,8 +35014,15 @@ SELECT ALL + + col0 + - - col0 + ( col1 ) AS col2 FROM tab2 WHERE - - col2 * + 1 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, + col0 AS col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query II rowsort SELECT - col2 * col1, + col0 FROM tab0 cor0 @@ -34909,8 +35264,15 @@ SELECT col1 * + 28 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -2346 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(51\)\)\) \* \(\- Int64\(46\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( + + 51 ) * - + 46 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 +---- +-2346 +-2346 +-2346 +NULL +NULL +NULL query I rowsort label-5766 SELECT - - CAST ( NULL AS INTEGER ) + + + col2 * - - ( - + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 = NULL @@ -35436,8 +35798,15 @@ NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col0, + col0 AS col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT ALL + 58 * - col1 FROM tab2 @@ -35665,8 +36034,15 @@ SELECT ALL - col1 AS col2 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL ) # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 FROM tab2 AS cor0 WHERE NOT col2 IS NULL +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT ALL - - col1 * ( - col0 ) AS col2 FROM tab2 AS cor0 @@ -37142,8 +37518,15 @@ SELECT ALL - + 23 + - col1 FROM tab1 AS cor0 # Datafusion - Expected - -9 # Datafusion - Expected - 77 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- cor0\.col0\) \+ cor0\.col1 AS col2" at position 0 and "cor0\.col2 \+ \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 + - col0 + col1 AS col2, col2 + - col1 AS col2 FROM tab2 AS cor0 +---- +-28 +-37 +-9 +51 +67 +77 query I rowsort label-6147 SELECT ALL 70 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 @@ -37442,8 +37825,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 66 * + 6 col1, - COUNT ( * ) AS col1 FROM tab0 cor0 +---- +-3 +396 query I rowsort label-6200 SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 * + col2 IS NULL @@ -37959,8 +38345,15 @@ SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL # Datafusion - Expected - 30 # Datafusion - Expected - -9603 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- cor0\.col2\) \+ \(\- cor0\.col0\) \* cor0\.col2 AS col1" at position 0 and "Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 + + - col2 + - + col0 * ( col2 ) AS col1, 30 AS col1 FROM tab0 AS cor0 +---- +-705 +-870 +-9603 +30 +30 +30 query I rowsort label-6283 SELECT + MIN ( - + col1 ) AS col0 FROM tab1 AS cor0 @@ -38086,8 +38479,15 @@ SELECT * FROM tab0 AS cor0 WHERE ( col0 IS NULL ) # Datafusion - Expected - -1856 # Datafusion - Expected - -6600 # Datafusion - Expected - -2175 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* \(\- Int64\(88\)\) AS col0" at position 0 and "Int64\(29\) \* \(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * - + 88 AS col0, 29 * - col0 AS col0 FROM tab2 +---- +-1334 +-1856 +-2175 +-4048 +-5632 +-6600 query I rowsort SELECT DISTINCT col2 + - ( + col2 ) - 63 FROM tab2 @@ -39763,8 +40163,15 @@ SELECT col2 FROM tab1 WHERE ( NOT NULL IS NOT NULL ) # Datafusion - Expected - 531441 # Datafusion - Expected - NULL # Datafusion - Expected - 9261 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ tab0\.col2 AS col0" at position 0 and "tab0\.col1 \* tab0\.col1 \* tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) + col2 AS col0, col1 * + + col1 * + col1 AS col0 FROM tab0 +---- +1 +531441 +9261 +NULL +NULL +NULL query II rowsort SELECT 40 + + 94 col0, col1 AS col2 FROM tab2 @@ -39904,8 +40311,11 @@ SELECT ALL col2 * - 29 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- Int64\(72\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) * + COUNT ( * ) AS col0, - ( + 72 ) AS col0 FROM tab1 +---- +-72 +-9 query I rowsort label-6612 SELECT DISTINCT - ( - MIN ( 50 ) ) AS col2 FROM tab0 WHERE + col2 + + CAST ( - col0 AS INTEGER ) NOT BETWEEN - col2 * - - 47 + - 76 - col2 * - col0 AND + + 0 + - 0 @@ -40199,8 +40609,9 @@ SELECT + col2 + - - col0 / - col2 AS col1 FROM tab0 AS cor0 99 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* tab0\.col1 \- \(\- tab0\.col0\) AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL col0 * + col1 - - col0 AS col1, col1 AS col2, - col1 AS col1 FROM tab0 WHERE NULL IS NOT NULL +---- query III rowsort SELECT ALL * FROM tab2 WHERE NOT - + col0 + col2 IS NOT NULL @@ -40241,8 +40652,15 @@ SELECT + col2 + - col1 + + + 73 FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, + col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT DISTINCT - 87 FROM tab2 WHERE + - 9 IS NOT NULL @@ -40634,8 +41052,15 @@ SELECT DISTINCT SUM ( 21 ) + + 45 col2 FROM tab2 WHERE NOT col1 + - col2 NOT IN # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2, + col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL +---- +23 +23 +40 +40 +58 +58 query I rowsort label-6730 SELECT + + 13 FROM tab2 WHERE NOT NULL BETWEEN - + CAST ( NULL AS INTEGER ) * - col0 - col1 + CAST ( - col0 AS INTEGER ) * - col0 AND + - col2 @@ -40700,8 +41125,12 @@ 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\(1\)\) AS count\(\*\) \- \(\- Int64\(\-54\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 80 AS col1, + MAX ( + col1 ), COUNT ( * ) - - - 54 AS col1 FROM tab0 +---- +-51 +-80 +81 query I rowsort SELECT DISTINCT 40 + col1 FROM tab1 @@ -41100,8 +41529,15 @@ NULL # Datafusion - Expected - 0 # Datafusion - Expected - 5 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "Int64\(\-61\) / tab1\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, - 61 / col2 AS col2 FROM tab1 +---- +-1 +0 +0 +14 +47 +5 query III rowsort label-6808 SELECT ALL * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) * + col0 IS NULL @@ -42411,8 +42847,15 @@ SELECT - col1 * col1 + + CAST ( NULL AS INTEGER ) - + col1 + - 18 + 44 - + + col # Datafusion - Expected - 68 # Datafusion - Expected - -5 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, col2 col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +59 +68 +96 query I rowsort label-7029 SELECT DISTINCT - col2 / + 13 + + col0 + - col2 FROM tab1 AS cor0 @@ -42576,8 +43019,15 @@ SELECT ALL + COUNT ( * ) + - + COUNT ( - 54 ) FROM tab0 AS cor0 # Datafusion - Expected - -127400 # Datafusion - Expected - 1 # Datafusion - Expected - -71400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / cor0\.col2 AS col2" at position 0 and "Int64\(40\) \* cor0\.col0 \* Int64\(\-35\) \+ \(\- cor0\.col1\) \+ cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 / col2 AS col2, + 40 * + + col0 * + - 35 + - col1 + + col1 AS col2 FROM tab1 cor0 +---- +-119000 +-127400 +-71400 +1 +1 +1 query I rowsort SELECT ALL + col1 * 39 AS col0 FROM tab0 @@ -43595,8 +44045,15 @@ SELECT col1 - + col1 AS col1, 44 / 13 - + col0 + - 76 / + 78 col0 FROM tab0 # Datafusion - Expected - 68 # Datafusion - Expected - 0 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col1\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + + - col1 AS col0, + 68 AS col0 FROM tab1 cor0 +---- +0 +0 +0 +68 +68 +68 query I rowsort SELECT ALL - - col2 + - col1 FROM tab1 cor0 @@ -43803,8 +44260,15 @@ SELECT col0 col2, col2 FROM tab0 AS cor0 # Datafusion - Expected - -2 # Datafusion - Expected - 5929 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col1 AS col2" at position 0 and "Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * col1 col2, - 2 AS col2 FROM tab2 cor0 +---- +-2 +-2 +-2 +2601 +4489 +5929 query II rowsort SELECT + col0, 56 * - + col0 AS col1 FROM tab0 AS cor0 @@ -44785,8 +45249,9 @@ SELECT + col2 / + col2 AS col2, col2 AS col1 FROM tab2 AS cor0 58 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "Int64\(45\) \- cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 51 AS col0, 45 - + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL +---- query I rowsort SELECT DISTINCT + col0 * col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( - 10 ) IS NOT NULL @@ -45069,8 +45534,11 @@ SELECT DISTINCT + 99 / - + MIN ( DISTINCT 82 ) AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 40 + + + COUNT ( * ) AS col1, + 99 AS col1 FROM tab1 AS cor0 +---- +-37 +99 query I rowsort label-7473 SELECT ALL + ( - SUM ( + + col1 ) ) AS col0 FROM tab2 AS cor0 @@ -45251,8 +45719,11 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 56 + - + col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - -1740 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col1" at position 0 and "Int64\(\-30\) \* \(\- min\(\(\- tab2\.col2\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 98 AS col1, ( + - 30 ) * - MIN ( ALL - col2 ) AS col1 FROM tab2 +---- +-1740 +98 query I rowsort SELECT 64 + - 20 AS col2 FROM tab1 @@ -45423,8 +45894,15 @@ SELECT + COUNT ( + 2 ) AS col2 FROM tab2 cor0 # Datafusion - Expected - 98 # Datafusion - Expected - 931491 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col0\) \* \(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col0 \+ cor0\.col1 \+ \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * - + col0 * - col2 AS col0, col0 + + col1 + - col2 col0 FROM tab0 AS cor0 +---- +-1 +10575 +49 +75690 +931491 +98 query I rowsort label-7530 SELECT DISTINCT MAX ( ALL + CAST ( 81 AS INTEGER ) ) FROM tab1 @@ -45446,8 +45924,11 @@ SELECT * FROM tab1 AS cor0 WHERE col0 * - + col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) = col0 +---- +0 +0 query I rowsort label-7534 SELECT + + SUM ( + CAST ( 11 AS INTEGER ) ) AS col0 FROM tab0 cor0 @@ -46221,8 +46702,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - -1863 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* \(\- Int64\(27\)\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 69 * - + 27 AS col0, + col1 col0 FROM tab1 +---- +-1863 +-1863 +-1863 +14 +47 +5 query I rowsort label-7654 SELECT DISTINCT + COUNT ( * ) / + 17 FROM tab0 @@ -46248,8 +46736,11 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( - col1 ) + - col0 < - - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(\(\- \(\- tab1\.col0\)\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) col0, COUNT ( - - col0 ) / - COUNT ( * ) AS col0 FROM tab1 +---- +-1 +3 query I rowsort label-7660 SELECT DISTINCT + + ( - + COUNT ( * ) ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -46413,8 +46904,10 @@ SELECT ALL * FROM tab1 WHERE + 70 / col2 * + + 84 * - + col2 >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 8b750cdcc37313dc17d33012f8fcd488 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col1 AS col1, + col1, - col0 + - col1 FROM tab2 +---- +9 values hashing to 501eb456d995eedf9ffe7195659cdaad query I rowsort SELECT DISTINCT + col1 * + + 58 col2 FROM tab1 @@ -48061,8 +48554,15 @@ SELECT + COUNT ( - 79 ) * + - COUNT ( * ) FROM tab0 # Datafusion - Expected - 4277 # Datafusion - Expected - NULL # Datafusion - Expected - 714 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(38\) AS Int32\) \* \(\- \(\- tab1\.col2\)\) \+ tab1\.col2 / \(\- CAST\(NULL AS Int32\)\) \+ Int64\(78\) AS col0" at position 0 and "tab1\.col0 \* tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + CAST ( + + 38 AS INTEGER ) ) * - - col2 + + col2 / - CAST ( NULL AS INTEGER ) + 78 AS col0, + col0 * + col1 AS col0 FROM tab1 +---- +425 +4277 +714 +NULL +NULL +NULL query I rowsort SELECT + col1 * + + ( + col2 ) AS col1 FROM tab0 @@ -49051,8 +49551,11 @@ SELECT DISTINCT col1 + 13 col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 + COUNT ( * ) AS col2, 3 col2 FROM tab2 +---- +14 +3 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NULL >= 94 @@ -49776,8 +50279,15 @@ SELECT + col2 + - 71 - - 16 + - col0 col1, 36 FROM tab2 WHERE NOT NULL IS NOT NU # Datafusion - Expected - 68 # Datafusion - Expected - -4 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col1" at position 0 and "CAST\(tab1\.col2 AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 4 AS col1, CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 +---- +-4 +-4 +-4 +59 +68 +96 query II rowsort SELECT + 16 col0, col2 FROM tab1 @@ -52164,8 +52674,11 @@ SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NULL > CAST ( col2 AS INTEGER ) / # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(62\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 62 ) AS col2, + COUNT ( * ) AS col2 FROM tab2 cor0 +---- +-62 +3 query I rowsort label-8635 SELECT DISTINCT - CAST ( + col0 AS INTEGER ) + + 96 / + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL @@ -52268,8 +52781,15 @@ SELECT ALL - col0 col2, - col1 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - -96 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(22\) / Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 col2, + 22 / 46 AS col2 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +0 +0 +0 query I rowsort SELECT + col2 + - + ( - 99 ) AS col1 FROM tab2 cor0 @@ -52307,8 +52827,15 @@ SELECT ALL + 71 * - col1 * + col2, col0 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - 714 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \* \(\- tab1\.col0\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 * + - col0 AS col1, + col2 AS col1 FROM tab1 +---- +425 +4277 +59 +68 +714 +96 query III rowsort SELECT ALL * FROM tab0 WHERE ( col0 ) + col0 + + + 24 BETWEEN + - col1 AND NULL @@ -52621,8 +53148,9 @@ SELECT ALL + + col2 * col2 * + col1 + col1 FROM tab2 AS cor0 27030 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 6 AS col1, - col1 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL +---- query I rowsort SELECT col2 * - col2 * - col2 + + 67 AS col1 FROM tab1 AS cor0 @@ -53962,8 +54490,11 @@ 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\(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\. +query RI valuesort SELECT CAST ( NULL AS FLOAT8 ) * COUNT ( * ) - - COUNT ( * ) AS col0, - MAX ( DISTINCT - col1 ) AS col0 FROM tab1 +---- +5 +NULL query I rowsort label-8929 SELECT - col0 / - col1 - + col0 + - col2 + + + 70 * - col0 + + col0 AS col1 FROM tab2 @@ -54636,8 +55167,11 @@ SELECT - - col2 AS col2 FROM tab0 WHERE NOT col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 18 AS col0, COUNT ( * ) AS col0 FROM tab0 +---- +-18 +3 query I rowsort label-9037 SELECT 36 * COUNT ( * ) AS col1 FROM tab1 @@ -54693,8 +55227,11 @@ SELECT DISTINCT ( - 85 ) + 18 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 156 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(tab0\.col2\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( ALL col2 ) col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 +---- +156 +NULL query I rowsort label-9047 SELECT ALL 40 + + COUNT ( * ) * - + COUNT ( * ) FROM tab1 @@ -55046,8 +55583,15 @@ SELECT col1 - + 40 AS col0 FROM tab2 cor0 WHERE NULL IS NULL # Datafusion - Expected - -57 # Datafusion - Expected - -77 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(\-57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + col1 ) AS col0, - 57 AS col0 FROM tab2 AS cor0 +---- +-51 +-57 +-57 +-57 +-67 +-77 query I rowsort SELECT + col2 * col2 * - 61 AS col2 FROM tab1 AS cor0 @@ -56253,8 +56797,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT - 28 + - col1 IS NOT NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col0, + ( col0 ) FROM tab1 cor0 +---- +51 +51 +85 +85 +91 +91 query II rowsort SELECT + + 79 col0, - col2 FROM tab2 AS cor0 @@ -56923,8 +57474,11 @@ SELECT ALL + col0 * + + col0 * - col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- min\(Int64\(3\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) * + - MIN ( 3 ) AS col2, ( + + COUNT ( * ) ) col2 FROM tab1 AS cor0 +---- +3 +9 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25075 @@ -57129,8 +57683,15 @@ SELECT - 45 / col2 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -3807 # Datafusion - Expected - 39 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "\(\- cor0\.col2\) \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 AS col1, - col2 * col1 AS col1 FROM tab0 AS cor0 +---- +-210 +-3807 +-99 +39 +39 +39 query I rowsort SELECT + - 66 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 @@ -57191,8 +57752,15 @@ SELECT DISTINCT - 26 col2 FROM tab1 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, + col1 AS col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query II rowsort SELECT + 74 + + 63, 5 col2 FROM tab1 WHERE NULL IS NOT NULL @@ -57493,8 +58061,15 @@ SELECT DISTINCT 0 AS col1, 69 FROM tab0 # Datafusion - Expected - -1053 # Datafusion - Expected - 91 # Datafusion - Expected - -1053 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "Int64\(81\) \* Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, + 81 * - 13 col1 FROM tab1 +---- +-1053 +-1053 +-1053 +51 +85 +91 query I rowsort SELECT ALL col0 * - 10 FROM tab0 @@ -57520,8 +58095,15 @@ SELECT DISTINCT - col2, - 64 AS col0 FROM tab0 # Datafusion - Expected - -136 # Datafusion - Expected - 5 # Datafusion - Expected - -118 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "\(\- tab1\.col2\) \+ \(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, - col2 + - + col2 AS col2 FROM tab1 +---- +-118 +-136 +-192 +14 +47 +5 query I rowsort label-9516 SELECT DISTINCT + SUM ( DISTINCT + + 97 ) FROM tab1 @@ -57556,8 +58138,9 @@ SELECT - ( - ( - MAX ( - + 4 ) ) ) AS col0 FROM tab2 AS cor0 4 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * - - col1 AS col1, + col0 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL +---- query I rowsort label-9523 SELECT - + MAX ( - + 3 ) / + - 61 AS col2 FROM tab2 AS cor0 @@ -57641,8 +58224,15 @@ NULL # Datafusion - Expected - -1703 # Datafusion - Expected - 96 # Datafusion - Expected - -1743 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "Int64\(23\) \* Int64\(\-78\) \+ tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, 23 * - 78 + + col0 AS col1 FROM tab1 +---- +-1703 +-1709 +-1743 +59 +68 +96 query III rowsort SELECT * FROM tab0 cor0 WHERE ( - col0 ) * - col0 + col1 BETWEEN NULL AND - 11 @@ -58861,8 +59451,11 @@ SELECT DISTINCT - - COUNT ( * ) AS col2, - 68 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -195 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- tab2\.col1\)\) AS col2" at position 0 and "Int64\(\-92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( - + col1 ) AS col2, - 92 AS col2 FROM tab2 +---- +-195 +-92 query IIIIII rowsort SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL <= NULL @@ -59265,8 +59858,15 @@ SELECT DISTINCT 34 + 49 FROM tab2 # Datafusion - Expected - 67 # 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 "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 20 AS col0, col1 col0 FROM tab2 AS cor0 +---- +20 +20 +20 +51 +67 +77 query I rowsort SELECT DISTINCT - col1 * - col1 - ( - + col1 ) AS col1 FROM tab1 AS cor0 @@ -59680,8 +60280,9 @@ SELECT col0 - + 80 + - 39 AS col1 FROM tab1 -68 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, + 74 AS col2 FROM tab0 WHERE NULL NOT BETWEEN - + ( + 41 ) AND col1 +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -59903,8 +60504,15 @@ SELECT ( - 70 ) * - - col0 AS col2 FROM tab1 # Datafusion - Expected - 81 # Datafusion - Expected - 68 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 68 AS col2, 81 AS col2 FROM tab0 AS cor0 +---- +68 +68 +68 +81 +81 +81 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 @@ -59913,8 +60521,15 @@ SELECT + 68 AS col2, 81 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 75 # Datafusion - Expected - -77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "CAST\(\(\- \(\- cor0\.col0\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +46 +64 +75 query I rowsort SELECT + 88 AS col1 FROM tab2 cor0 @@ -59928,8 +60543,9 @@ SELECT * FROM tab2 WHERE NOT ( NULL ) <= col0 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "\(\- CAST\(\(\- tab0\.col0\) AS Float64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL col1 col2, - CAST ( ( - col0 ) AS FLOAT8 ) col2 FROM tab0 WHERE NOT + col2 - - - 12 NOT IN ( col0 / col0 + 39 + - col1 ) +---- query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 - + col0 AND - + col2 @@ -59958,8 +60574,15 @@ SELECT + 88 / - 81 FROM tab2 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - 77 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(19\) \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col0, 19 + col2 AS col0 FROM tab2 AS cor0 +---- +42 +51 +59 +67 +77 +77 query I rowsort SELECT - ( + + col2 ) * - ( - ( col2 ) ) + 96 AS col0 FROM tab0 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_115.slt b/data/sqlite/random/aggregates/slt_good_115.slt index d51fb95..f8e9e4a 100644 --- a/data/sqlite/random/aggregates/slt_good_115.slt +++ b/data/sqlite/random/aggregates/slt_good_115.slt @@ -805,8 +805,15 @@ SELECT * FROM tab2 WHERE NOT ( ( col2 ) >= 73 ) # Datafusion - Expected - 63 # Datafusion - Expected - 10 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT + 10 AS col2, 63 col2 FROM tab1 +---- +10 +10 +10 +63 +63 +63 query II rowsort SELECT ALL - 56 AS col0, - col2 * - 77 FROM tab2 AS cor0 @@ -1311,8 +1318,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT col1 * - + 57 IS NOT NULL # Datafusion - Expected - 115 # Datafusion - Expected - 1 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col1" at position 0 and "cor0\.col2 \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 1 AS col1, col2 + + col1 col1 FROM tab1 AS cor0 +---- +1 +1 +1 +110 +115 +64 query II rowsort label-220 SELECT + 22 AS col2, COUNT ( * ) FROM tab1 AS cor0 @@ -1805,8 +1819,15 @@ SELECT DISTINCT 90 + - + col2 * col1 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 5508 # Datafusion - Expected - -11 # Datafusion - Expected - 7776 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col1" at position 0 and "CAST\(Int64\(\-81\) AS Int32\) \* \(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 11 AS col1, CAST ( + - 81 AS INTEGER ) * - + col2 AS col1 FROM tab1 +---- +-11 +-11 +-11 +4779 +5508 +7776 query I rowsort label-298 SELECT ALL - 96 * - CAST ( + COUNT ( * ) AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab0 @@ -1826,8 +1847,11 @@ SELECT ALL 59, - col0 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col1" at position 0 and "min\(tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 49 col1, + MIN ( ALL col0 ) AS col1 FROM tab2 +---- +46 +49 query I rowsort SELECT - col1 + - + col0 + - col0 * - - col0 * - 49 FROM tab2 AS cor0 @@ -3223,8 +3247,15 @@ SELECT DISTINCT COUNT ( * ) col0 FROM tab2, tab0 AS cor0 # Datafusion - Expected - 69 # Datafusion - Expected - 16 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 16 AS col0, 69 AS col0 FROM tab2 +---- +16 +16 +16 +69 +69 +69 query III rowsort SELECT ALL * FROM tab1 WHERE ( NOT 64 > NULL ) @@ -3432,8 +3463,15 @@ SELECT - + 8 AS col2 FROM tab0 cor0 # Datafusion - Expected - -295 # Datafusion - Expected - 72 # Datafusion - Expected - -1344 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col2\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 58 + col1 AS col0, ( - col2 ) * + col1 AS col0 FROM tab1 AS cor0 +---- +-1344 +-295 +-3196 +105 +63 +72 query I rowsort label-570 SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE + 78 * + col1 IS NULL @@ -4022,8 +4060,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 97 AS col1, COUNT ( * ) col1 FROM tab2 AS cor0 +---- +3 +97 query I rowsort label-671 SELECT DISTINCT + COUNT ( * ) - - COUNT ( * ) FROM tab0 @@ -4695,8 +4736,11 @@ SELECT ALL + - 16 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 85 AS col2 FROM tab2 +---- +3 +85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 @@ -4705,8 +4749,15 @@ SELECT COUNT ( * ) AS col2, 85 AS col2 FROM tab2 # Datafusion - Expected - 40 # Datafusion - Expected - 86 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 86 AS col1, + col2 AS col1 FROM tab2 +---- +23 +40 +58 +86 +86 +86 query I rowsort label-778 SELECT DISTINCT + MAX ( DISTINCT - 20 ) AS col2 FROM tab2 @@ -6730,8 +6781,11 @@ SELECT ALL COUNT ( * ) col0 FROM tab0 WHERE 85 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- cor0\.col1\)\) \- count\(\(\- cor0\.col0\)\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( ALL - col1 ) - + COUNT ( - col0 ) AS col2, + 24 col2 FROM tab2 AS cor0 +---- +-80 +24 query I rowsort SELECT DISTINCT + col2 - + col0 - col1 + - 53 col1 FROM tab1 cor0 @@ -7067,8 +7121,15 @@ SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + 85 # Datafusion - Expected - -3337929 # Datafusion - Expected - 97 # Datafusion - Expected - -9409 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col1\) \* \(\- cor0\.col0\) \* \(\- cor0\.col1\) \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( col0 ) AS col2, - col1 * - + ( col0 ) * - col1 * + col0 AS col2 FROM tab0 AS cor0 +---- +-1476225 +-3337929 +-9409 +15 +87 +97 query I rowsort SELECT - 71 * - col1 AS col1 FROM tab0 cor0 @@ -7575,8 +7636,15 @@ SELECT * FROM tab1 WHERE - 89 IN ( + col2 * - 98, - col2, - 26 ) # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + col2 ), + col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT col1 + + + 91 + - 1 + col2 * col1 - - col1 FROM tab1 @@ -7592,8 +7660,15 @@ SELECT col1 + + + 91 + - 1 + col2 * col1 - - col1 FROM tab1 # Datafusion - Expected - 3311 # Datafusion - Expected - -9548 # Datafusion - Expected - 3311 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \+ Int64\(96\) \* \(\- tab0\.col2\) \+ Int64\(44\) AS col1" at position 0 and "Int64\(77\) \* Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 88 + 96 * - ( + col2 ) + 44 AS col1, 77 * + 43 AS col1 FROM tab0 +---- +-1004 +-4556 +-9548 +3311 +3311 +3311 query I rowsort label-1253 SELECT ALL + SUM ( DISTINCT - + col1 ) AS col0 FROM tab1 @@ -7990,8 +8065,15 @@ SELECT * FROM tab2 cor0 WHERE - 93 / + + col2 IS NULL # Datafusion - Expected - 12 # Datafusion - Expected - -67522 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(73\) \+ \(\- \(\- cor0\.col0\)\) \* \(\- cor0\.col2\) \* cor0\.col1 AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * + 73 + - - ( ( + col0 ) ) * - col2 * col1 col1, 12 AS col1 FROM tab1 AS cor0 +---- +-24710 +-287405 +-67522 +12 +12 +12 query I rowsort SELECT DISTINCT - + col2 - + col2 AS col1 FROM tab0 AS cor0 @@ -8897,8 +8979,15 @@ SELECT * FROM tab0 WHERE NULL NOT BETWEEN col0 AND NULL # Datafusion - Expected - 59 # Datafusion - Expected - 177 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- \(\- Int64\(86\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0 - - + 86 AS col0, col2 AS col0 FROM tab1 AS cor0 +---- +137 +171 +177 +59 +68 +96 query I rowsort label-1476 SELECT + + ( - + COUNT ( * ) ) col0 FROM tab1 AS cor0 @@ -9250,8 +9339,15 @@ SELECT + + MIN ( + col1 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - -96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "\(\- cor0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2, - col2 FROM tab1 AS cor0 +---- +-59 +-59 +-68 +-68 +-96 +-96 query I rowsort SELECT - + 68 AS col2 FROM tab2 AS cor0 @@ -10729,8 +10825,15 @@ SELECT - 19 * + col0 AS col2 FROM tab1 # Datafusion - Expected - 5 # Datafusion - Expected - -7826 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \* \(\- \(\- tab1\.col0\)\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 86 * - - col0 AS col2, + col1 AS col2 FROM tab1 +---- +-4386 +-7310 +-7826 +14 +47 +5 query I rowsort SELECT DISTINCT + col1 * - - 90 AS col2 FROM tab0 @@ -12564,8 +12667,15 @@ SELECT DISTINCT - COUNT ( * ) col2 FROM tab1 WHERE + - 74 * 54 IN ( - ( + col2 ) # Datafusion - Expected - 47 # Datafusion - Expected - -5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col2, col1 AS col2 FROM tab1 +---- +-14 +-47 +-5 +14 +47 +5 query III rowsort SELECT DISTINCT * FROM tab1 WHERE - - col0 > - - col0 @@ -12976,8 +13086,15 @@ SELECT ALL 59 * col1 + - + col2 FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - 147361 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \* \(\- Int64\(\-30\)\) \* Int64\(\-78\) \- tab1\.col2 AS col1" at position 0 and "tab1\.col2 \+ \(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 63 * - ( - 30 ) * - 78 - col2 col1, col2 + - col1 AS col1 FROM tab1 +---- +147324 +147352 +147361 +21 +54 +82 query I rowsort label-2148 SELECT - ( COUNT ( ALL CAST ( - col2 AS INTEGER ) ) ) AS col2 FROM tab1 cor0 @@ -15111,8 +15228,15 @@ SELECT + 2, - col1 AS col2 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - -99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, col2 AS col0 FROM tab0 +---- +-10 +-47 +-99 +10 +47 +99 query I rowsort label-2512 SELECT - CAST ( AVG ( + 0 ) AS INTEGER ) FROM tab0 @@ -15175,8 +15299,15 @@ SELECT ALL col0 + + col2 * + + col0 FROM tab2 AS cor0 # Datafusion - Expected - 441 # Datafusion - Expected - 25 # Datafusion - Expected - 6561 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* cor0\.col2 / \(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "cor0\.col1 \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 25 * + col2 / - + ( + - col2 ) AS col0, col1 * + col1 col0 FROM tab0 AS cor0 +---- +1 +25 +25 +25 +441 +6561 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 = + - col0 @@ -15486,8 +15617,15 @@ SELECT DISTINCT + - col2 col2 FROM tab0 AS cor0 WHERE - col0 = NULL # Datafusion - Expected - 42 # Datafusion - Expected - 75 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 \+ Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + col0 ) col1, col2 + + + 2 AS col1 FROM tab2 AS cor0 +---- +25 +42 +46 +60 +64 +75 query I rowsort SELECT ALL + col1 * + 13 AS col1 FROM tab1 @@ -15573,8 +15711,15 @@ SELECT ALL - col0 + + - 69 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, col1 FROM tab0 AS cor0 WHERE NULL IS NULL +---- +1 +1 +21 +21 +81 +81 query I rowsort label-2587 SELECT + - COUNT ( ALL - - col2 ) FROM tab0 AS cor0 @@ -16620,8 +16765,15 @@ SELECT ALL + - CAST ( MIN ( DISTINCT col0 ) AS INTEGER ) * - + 65 - - - SUM ( - # Datafusion - Expected - 68 # Datafusion - Expected - 32 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) / \(\- cor0\.col0\) \+ \(\- Int64\(\-31\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 / - + col0 + - - 31 AS col0, + col2 AS col0 FROM tab1 AS cor0 +---- +31 +31 +32 +59 +68 +96 query I rowsort label-2755 SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) FROM tab0 cor0 @@ -17288,8 +17440,15 @@ SELECT DISTINCT + + col2 * - + col2 - - - 68 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -10 # Datafusion - Expected - 81 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- Int64\(0\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 - 0 AS col1, - col2 AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +1 +21 +81 query I rowsort SELECT - + 18 - + col1 FROM tab2 AS cor0 @@ -17839,8 +17998,15 @@ SELECT ALL 52 * - COUNT ( * ) * - COUNT ( * ) + - 28 AS col0 FROM tab2 # Datafusion - Expected - 34 # Datafusion - Expected - -5692 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ \(\- cor0\.col0\) \* cor0\.col0 AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 + - col0 * + col0 AS col0, 34 AS col0 FROM tab2 AS cor0 +---- +-2167 +-4173 +-5692 +34 +34 +34 query I rowsort label-2960 SELECT + 33 / + - COUNT ( * ) + 18 AS col2 FROM tab0 @@ -18974,8 +19140,15 @@ SELECT ( - col1 ) * 76 FROM tab2 # Datafusion - Expected - -4489 # Datafusion - Expected - -690 # Datafusion - Expected - -5929 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* Int64\(\-30\) AS col2" at position 0 and "tab2\.col1 \* \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 * - 30 AS col2, col1 * ( - col1 ) AS col2 FROM tab2 +---- +-2601 +-4489 +-5929 +-690 +-690 +-690 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + ( + ( + col2 ) ) < - + col1 @@ -19745,8 +19918,15 @@ SELECT - 17 + - - 75 * + COUNT ( - - 73 ) AS col2 FROM tab0 # Datafusion - Expected - -420716 # Datafusion - Expected - -9230 # Datafusion - Expected - -469920 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col2\) \+ \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col2 \- cor0\.col2 \* \(\- \(\- cor0\.col2\)\) \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * - col2 + - + col1 AS col2, col2 - col2 * - - col2 * + + col0 col2 FROM tab1 cor0 +---- +-295826 +-3486 +-420716 +-4671 +-469920 +-9230 query I rowsort SELECT 50 + + - 2 AS col0 FROM tab2 AS cor0 @@ -20270,8 +20450,15 @@ SELECT DISTINCT - col0 + + + 58 + - ( - 35 ) FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - 40 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 40 AS col0, + col2 AS col0 FROM tab1 cor0 +---- +40 +40 +40 +59 +68 +96 query I rowsort label-3357 SELECT col1 * + 5 / - col2 + - - col1 + + CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab1 cor0 @@ -21563,8 +21750,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 * + MIN ( ALL - + col2 ) AS col2, COUNT ( * ) - + 60 AS col2 FROM tab2 AS cor0 +---- +-406 +-57 query II rowsort SELECT ALL 79 * + col2 + 70 AS col1, 56 * + + 33 AS col0 FROM tab1 AS cor0 @@ -22362,8 +22552,15 @@ SELECT + col0 * + - col0 AS col2 FROM tab1 WHERE + 85 IS NULL # Datafusion - Expected - 10 # Datafusion - Expected - -81 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, + col2 AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +10 +47 +99 query I rowsort SELECT ALL 64 * - col0 + + col2 - - col0 + + col2 AS col0 FROM tab1 AS cor0 @@ -23915,8 +24112,11 @@ SELECT + - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab0 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\(\(\- \(\- cor0\.col1\)\)\)\) AS col0" at position 0 and "Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( - - col1 ) AS col0, - 22 AS col0 FROM tab1 AS cor0 +---- +-22 +-3 query I rowsort SELECT - 80 + - 62 * - + 58 FROM tab1 AS cor0 @@ -24275,8 +24475,11 @@ SELECT col0 AS col0, col2 col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(45\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col2, + 45 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 +---- +-3 +NULL query I rowsort label-4011 SELECT ALL SUM ( ALL + col2 ) AS col2 FROM tab2 AS cor0 @@ -24828,8 +25031,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- max\(cor0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, - MAX ( + col1 ) AS col0 FROM tab0 AS cor0 +---- +-3 +-81 query I rowsort SELECT col0 + - + col1 AS col1 FROM tab0 AS cor0 @@ -24871,8 +25077,15 @@ SELECT 95 + - - col2 - - col2 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 190 # Datafusion - Expected - 5 # Datafusion - Expected - 532 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col1" at position 0 and "cor0\.col1 \* Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 5 AS col1, col1 * 38 AS col1 FROM tab1 AS cor0 +---- +1786 +190 +5 +5 +5 +532 query I rowsort SELECT ALL + + col0 * 12 - - 88 * col1 - col1 FROM tab2 AS cor0 @@ -25686,8 +25899,15 @@ SELECT ALL + 36, - 33 * col0 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -7735 # Datafusion - Expected - -91 # Datafusion - Expected - -8281 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(\-91\) \* \(\- \(\- cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 AS col1, - 91 * - - col0 AS col1 FROM tab1 AS cor0 +---- +-4641 +-51 +-7735 +-8281 +-85 +-91 query I rowsort label-4248 SELECT ALL + CAST ( - - COUNT ( * ) AS INTEGER ) + 21 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -26251,8 +26471,15 @@ SELECT DISTINCT col0 * - 45 * - - 9 * ( - col2 ) AS col0 FROM tab0 # Datafusion - Expected - 184 # Datafusion - Expected - 45 # Datafusion - Expected - 196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "tab1\.col0 \+ Int64\(14\) \+ tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 45 AS col1, col0 + + + 14 + + + col0 AS col1 FROM tab1 +---- +116 +184 +196 +45 +45 +45 query II rowsort SELECT + 35, 28 AS col2 FROM tab1 @@ -27916,8 +28143,11 @@ SELECT + col0 AS col1 FROM tab2 WHERE NULL = + CAST ( NULL AS INTEGER ) * + CAST # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(19\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - + 19 ) * + + COUNT ( * ) AS col0, COUNT ( * ) col0 FROM tab2 +---- +3 +57 query I rowsort SELECT col2 + - - 44 FROM tab1 @@ -28032,8 +28262,15 @@ SELECT DISTINCT + + 63 * COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT # Datafusion - Expected - 64 # Datafusion - Expected - 9 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \+ Int64\(\-49\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 + - 49 AS col1, col0 AS col1 FROM tab2 +---- +-26 +-9 +46 +64 +75 +9 query I rowsort SELECT 77 * + col2 FROM tab0 @@ -28574,8 +28811,15 @@ SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE col2 + + - col1 - CAST ( - col0 A # Datafusion - Expected - 67 # Datafusion - Expected - 73 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 73 AS col2, col1 AS col2 FROM tab2 +---- +51 +67 +73 +73 +73 +77 query I rowsort SELECT DISTINCT - col2 + 75 AS col1 FROM tab0 WHERE col0 * - + col2 + + col1 - col1 <> 90 @@ -28608,8 +28852,15 @@ SELECT DISTINCT - + col0 * - 68 * + ( - 68 ) + + + 45 + - col0 FROM tab0 cor0 # Datafusion - Expected - -68 # Datafusion - Expected - 96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, - col2 col0 FROM tab1 cor0 +---- +-59 +-68 +-96 +59 +68 +96 query I rowsort label-4729 SELECT ALL SUM ( - 53 ) AS col0 FROM tab0 AS cor0 @@ -28917,8 +29168,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 23 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 23 AS col2, col1 AS col2 FROM tab1 +---- +14 +23 +23 +23 +47 +5 query II rowsort label-4779 SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) AS col1, MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 @@ -29014,8 +29272,15 @@ SELECT ALL 60 + + - col0 - - col0 FROM tab1 # Datafusion - Expected - 52 # Datafusion - Expected - -79 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \+ Int64\(\-28\) AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + - 28 AS col1, 52 AS col1 FROM tab1 +---- +-113 +-119 +-79 +52 +52 +52 query I rowsort SELECT ( - 75 ) * + 45 + col2 col0 FROM tab2 @@ -29299,8 +29564,15 @@ SELECT ALL * FROM tab0 WHERE NOT - col1 = + - 7 # Datafusion - Expected - -91 # Datafusion - Expected - -652 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- \(\- cor0\.col1\)\) \+ cor0\.col0 \+ Int64\(11\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * - ( - + col1 ) + col0 + + + 11 AS col2, - col0 AS col2 FROM tab1 AS cor0 +---- +-329 +-4175 +-51 +-652 +-85 +-91 query I rowsort SELECT ALL 86 col1 FROM tab1 AS cor0 WHERE - ( + 3 ) >= ( NULL ) @@ -30393,8 +30665,15 @@ SELECT DISTINCT + col2 AS col0, col0 FROM tab2 AS cor0 # Datafusion - Expected - 3640 # Datafusion - Expected - -96 # Datafusion - Expected - 2040 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "tab1\.col0 \* Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, col0 * + 40 AS col1 FROM tab1 +---- +-59 +-68 +-96 +2040 +3400 +3640 query I rowsort label-5022 SELECT DISTINCT MIN ( ALL - col0 ) / COUNT ( * ) + SUM ( col2 + + 20 * + col0 ) FROM tab2 WHERE + col1 NOT IN ( - - col2 - + col0 ) @@ -31039,8 +31318,9 @@ NULL 58 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 AS col2, col1 col2 FROM tab2 AS cor0 WHERE - col0 >= NULL +---- query I rowsort SELECT DISTINCT + - col0 - - col0 FROM tab0 AS cor0 @@ -31462,8 +31742,11 @@ SELECT DISTINCT + ( - MIN ( + col1 ) ) * - COUNT ( * ) FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(44\)\) AS col2" at position 0 and "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + MAX ( + + 44 ) AS col2, 70 AS col2 FROM tab2 AS cor0 +---- +44 +70 query II rowsort label-5198 SELECT ALL - + SUM ( + col1 ) AS col0, 24 col1 FROM tab1 AS cor0 @@ -32215,8 +32498,11 @@ SELECT + MAX ( DISTINCT - 6 ) 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 \(\- cor0\.col0\)\) 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 II valuesort SELECT ALL MIN ( DISTINCT - col0 ) AS col2, + COUNT ( + col0 ) AS col2 FROM tab2 AS cor0 +---- +-75 +3 query I rowsort SELECT + col1 FROM tab1 WHERE NOT - col1 - - 39 IS NOT NULL @@ -32259,8 +32545,11 @@ SELECT 79 FROM tab1 AS cor0 WHERE NULL > NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 121 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- tab2\.col2\)\)\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - SUM ( - + col2 ) AS col1, 72 col1 FROM tab2 +---- +121 +72 query I rowsort SELECT DISTINCT + col1 * - col0 + + col1 FROM tab2 @@ -33379,8 +33668,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 13 AS col0, COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab2, tab0 AS cor0 +---- +0 +13 query I rowsort SELECT DISTINCT ( + - col0 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL @@ -33657,8 +33949,11 @@ SELECT col2 * + col0 AS col1 FROM tab1 WHERE - col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "max\(DISTINCT Int64\(28\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, MAX ( DISTINCT + ( 28 ) ) + + COUNT ( * ) AS col1 FROM tab1 +---- +-3 +31 query I rowsort SELECT ALL + col0 + 31 + + col0 FROM tab0 AS cor0 @@ -33727,8 +34022,11 @@ SELECT + + 66 - ( - COUNT ( * ) ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \- Int64\(92\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 - + 92 AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +-71 +3 query II rowsort label-5581 SELECT DISTINCT + + 19 - - col2 AS col2, CAST ( - + col0 AS INTEGER ) FROM tab2 AS cor0 @@ -33899,8 +34197,15 @@ SELECT col1 * + 51 - + 23 AS col2 FROM tab2 # Datafusion - Expected - -56 # Datafusion - Expected - 54241 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(\-17\) \* \(\- cor0\.col1\) \- cor0\.col0 AS col1" at position 0 and "Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * - 17 * - col1 - + col0 AS col1, - 56 AS col1 FROM tab1 AS cor0 +---- +-56 +-56 +-56 +22797 +4930 +54241 query I rowsort label-5609 SELECT ALL - 61 * + 58 + + - MAX ( - + col0 ) - - 70 FROM tab0 AS cor0 WHERE ( NULL ) < col0 @@ -33963,8 +34268,11 @@ SELECT ALL + col1 * 62 + 75 FROM tab2 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 "Int64\(\-45\) \* CAST\(NULL AS Float64\) AS col0" at position 0 and "min\(\(\- cor0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT - 45 * + CAST ( NULL AS FLOAT8 ) AS col0, MIN ( ALL + - col1 ) col0 FROM tab1 AS cor0 +---- +-47 +NULL query I rowsort SELECT DISTINCT 95 * + ( + col1 ) FROM tab1 AS cor0 @@ -34330,8 +34638,15 @@ SELECT ALL col0 + - + 12 FROM tab2 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col1, col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( - 33 / + 57 ) IS NULL +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT DISTINCT - 71 - + + col2 * - col2 FROM tab0 @@ -34565,8 +34880,15 @@ SELECT col2 / - - col1 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 76 # Datafusion - Expected - 61 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col1" at position 0 and "cor0\.col1 \+ Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 61 AS col1, col1 + 71 AS col1 FROM tab1 AS cor0 WHERE NOT 62 * 52 < col2 / + + col0 +---- +118 +61 +61 +61 +76 +85 query I rowsort SELECT + 97 * + col2 AS col2 FROM tab2 cor0 WHERE NOT - col1 <> + col2 @@ -35130,8 +35452,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT col2 + + 94 IS NULL # Datafusion - Expected - -210 # Datafusion - Expected - 81 # Datafusion - Expected - -3807 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col2\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col1 AS col0, - col2 * + col1 AS col0 FROM tab0 AS cor0 +---- +-210 +-3807 +-99 +1 +21 +81 query III rowsort SELECT ALL * FROM tab2 WHERE + + 12 <> ( NULL ) @@ -35825,8 +36154,11 @@ SELECT * FROM tab2 WHERE NOT ( NOT - col0 IS NOT NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 54 AS col0, 42 AS col0 FROM tab2 +---- +42 +54 query II rowsort SELECT ALL 0, 19 AS col2 FROM tab1 @@ -36047,8 +36379,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT + 60 IS NULL # Datafusion - Expected - 85 # Datafusion - Expected - 84 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 84 AS col2, col0 AS col2 FROM tab1 +---- +51 +84 +84 +84 +85 +91 query I rowsort SELECT ALL - 6 FROM tab1 WHERE NOT ( + + col0 ) IS NOT NULL @@ -36356,8 +36695,15 @@ SELECT ALL - - MIN ( ALL + - ( + 0 ) ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -99 # Datafusion - Expected - 418 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(31\) \+ \(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * + + ( + ( + 31 ) ) + - col2 AS col0, - col2 AS col0 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +2687 +2908 +418 query III rowsort SELECT * FROM tab0 WHERE - col0 + 69 > - 97 * - + 18 @@ -36549,8 +36895,15 @@ SELECT DISTINCT + + ( COUNT ( * ) ) col2 FROM tab1 AS cor0 # Datafusion - Expected - -97 # Datafusion - Expected - 840 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(56\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 * + 56 AS col2, - col0 col2 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +4872 +5432 +840 query I rowsort SELECT DISTINCT - 70 col0 FROM tab1 AS cor0 @@ -36569,8 +36922,11 @@ SELECT ALL - col0 - - col1 + + col1 FROM tab2 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 192 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- tab0\.col1\)\) \* Int64\(64\) 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 II valuesort SELECT ALL COUNT ( - col1 ) * + 64 AS col2, - COUNT ( 11 ) AS col2 FROM tab0 +---- +-3 +192 query I rowsort SELECT DISTINCT col0 * + 71 AS col2 FROM tab2 @@ -36995,8 +37351,15 @@ SELECT ALL 37, col1 FROM tab1 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col0, col1 AS col0 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT + col1 * - col1 * - 85 AS col0 FROM tab1 @@ -37030,8 +37393,11 @@ SELECT DISTINCT - + col2 col2, + 88 + 47 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +3 +3 query I rowsort label-6125 SELECT DISTINCT col1 * + ( + CAST ( - col2 AS INTEGER ) ) * 53 FROM tab2 AS cor0 WHERE NOT ( 74 ) IS NOT NULL @@ -37125,8 +37491,15 @@ SELECT DISTINCT - - COUNT ( DISTINCT + col2 ) FROM tab0 cor0 # Datafusion - Expected - -3711 # Datafusion - Expected - -83 # Datafusion - Expected - -4349 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col1" at position 0 and "Int64\(\-58\) \* cor0\.col0 \+ cor0\.col1 / \(\- Int64\(\-53\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 83 AS col1, - 58 * + col0 + col1 / - - 53 AS col1 FROM tab2 AS cor0 +---- +-2668 +-3711 +-4349 +-83 +-83 +-83 query II rowsort SELECT DISTINCT + 67 AS col0, - col2 AS col2 FROM tab2 AS cor0 @@ -37267,8 +37640,15 @@ SELECT ALL - ( - + col2 ) - - col0 FROM tab2 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - 97 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 97 col0, - col0 AS col0 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +97 +97 +97 query I rowsort label-6162 SELECT - 88 * + + col0 * 16 / - col1 - 3 + CAST ( NULL AS INTEGER ) FROM tab2 @@ -37298,8 +37678,15 @@ SELECT col0 - - 99 AS col0 FROM tab2 WHERE - CAST ( + 65 AS INTEGER ) + + 41 <> # Datafusion - Expected - 21 # Datafusion - Expected - 9603 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* tab0\.col0 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 * col0 AS col0, col1 AS col0 FROM tab0 +---- +1 +21 +705 +81 +870 +9603 query I rowsort label-6166 SELECT ALL - COUNT ( * ) * + 72 + - CAST ( NULL AS INTEGER ) col1 FROM tab0 @@ -37307,8 +37694,9 @@ SELECT ALL - COUNT ( * ) * + 72 + - CAST ( NULL AS INTEGER ) col1 FROM tab0 NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 col2, - col2 col2 FROM tab1 AS cor0 WHERE ( NULL ) = + 45 +---- query I rowsort label-6168 SELECT DISTINCT ( SUM ( + ( + - 78 ) ) ) col2 FROM tab2 AS cor0 @@ -39146,8 +39534,15 @@ SELECT * FROM tab1 AS cor0 WHERE 75 IS NOT NULL # Datafusion - Expected - -21 # Datafusion - Expected - -81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- cor0\.col1\)\)\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( - + col1 ) AS col2, - col1 AS col2 FROM tab0 AS cor0 +---- +-1 +-1 +-21 +-21 +-81 +-81 query III rowsort SELECT + col2 * + col1 AS col1, + col2, + col0 FROM tab1 AS cor0 @@ -39175,8 +39570,15 @@ SELECT DISTINCT ( - col0 ) * - ( + col2 ) AS col0 FROM tab1 # Datafusion - Expected - 30 # Datafusion - Expected - -59220 # Datafusion - Expected - 127 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(\-60\) \* \(\- \(\- tab0\.col2\)\) AS col0" at position 0 and "tab0\.col1 \+ \(\- \(\- Int64\(\-88\)\)\) / \(\- Int64\(\-72\)\) \+ tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 21 * - 60 * - - col2 AS col0, col1 + - - ( + - 88 ) / - - 72 + col2 AS col0 FROM tab0 +---- +-124740 +-12600 +-59220 +127 +30 +99 query I rowsort SELECT - col0 * + - col2 AS col2 FROM tab2 @@ -39346,8 +39748,15 @@ SELECT + CAST ( ( - col1 ) AS INTEGER ) - - + col0 + col1 FROM tab1 AS cor0 # Datafusion - Expected - -81 # Datafusion - Expected - 93 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \+ cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 6 + + col0 AS col1, - col1 AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +103 +21 +93 query I rowsort label-6515 SELECT + MIN ( DISTINCT 33 ) FROM tab1 AS cor0 WHERE - 3 + + + 50 IS NOT NULL @@ -40058,8 +40467,15 @@ SELECT col2 + + + col1 FROM tab0 # Datafusion - Expected - 44 # Datafusion - Expected - NULL # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- tab1\.col1\) AS col1" at position 0 and "\(\- tab1\.col1\) \+ \(\- \(\- tab1\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) + - ( + col1 ) AS col1, - col1 + - - col0 AS col1 FROM tab1 +---- +37 +44 +80 +NULL +NULL +NULL query I rowsort SELECT + 55 FROM tab0, tab2 AS cor0 WHERE + 73 IS NOT NULL @@ -41026,8 +41442,15 @@ SELECT - + 78 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - -1 # 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 "\(\- tab0\.col1\) / tab0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 AS col1, - col1 / + col1 AS col1 FROM tab0 +---- +-1 +-1 +-1 +60 +60 +60 query I rowsort SELECT col0 * + 54 FROM tab2 @@ -41378,8 +41801,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \* max\(DISTINCT cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( ALL + col0 ) col2, - COUNT ( * ) * + MAX ( DISTINCT + + col1 ) AS col2 FROM tab2 AS cor0 +---- +-231 +46 query I rowsort label-6852 SELECT ALL + COUNT ( - col0 ) AS col0 FROM tab0 AS cor0 @@ -42712,8 +43138,11 @@ SELECT DISTINCT 37 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(63\) \* \(\- \(\- sum\(\(\- cor0\.col2\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 56 AS col0, CAST ( NULL AS INTEGER ) * 63 * - - SUM ( - col2 ) col0 FROM tab1 AS cor0 +---- +-56 +NULL query I rowsort label-7065 SELECT - - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 @@ -43156,8 +43585,15 @@ NULL # Datafusion - Expected - -67 # Datafusion - Expected - 69 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 + col0 AS col1, - ( + col1 ) AS col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +104 +133 +69 query I rowsort SELECT DISTINCT 0 + 13 * - col0 + + col1 AS col2 FROM tab1 @@ -43963,8 +44399,15 @@ SELECT 99 * MIN ( DISTINCT - + col0 ) AS col0 FROM tab0 # Datafusion - Expected - 9 # Datafusion - Expected - 5 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + col1 ) col0, 9 AS col0 FROM tab1 +---- +14 +47 +5 +9 +9 +9 query I rowsort SELECT DISTINCT + ( - + col2 ) + + 94 + - col1 FROM tab1 @@ -44487,8 +44930,15 @@ SELECT - + SUM ( ALL col2 ) FROM tab1 AS cor0 # Datafusion - Expected - -115 # Datafusion - Expected - 966 # Datafusion - Expected - -322 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(69\) AS col1" at position 0 and "Int64\(23\) \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * 69 AS col1, 23 * - + col1 AS col1 FROM tab1 AS cor0 +---- +-1081 +-115 +-322 +3243 +345 +966 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE + col1 + col1 < NULL @@ -44633,8 +45083,15 @@ SELECT ALL 38 / - - col0 + + col2 * + + 65 + col1 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 97 # Datafusion - Expected - 32 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \- cor0\.col0 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 - + col0 AS col2, + ( + + col0 ) AS col2 FROM tab0 cor0 +---- +-77 +15 +2 +32 +87 +97 query I rowsort SELECT - + ( + 1 ) + - + 81 AS col2 FROM tab2 AS cor0 @@ -44680,8 +45137,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT NULL = - 31 # Datafusion - Expected - -87 # Datafusion - Expected - 1 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 AS col0, - col0 AS col0 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +1 +1 +1 query I rowsort label-7397 SELECT + MIN ( - - col0 ) * + COUNT ( DISTINCT + col1 ) FROM tab2 AS cor0 @@ -45916,8 +46380,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE col0 + - 66 IS NOT NULL # Datafusion - Expected - -17 # Datafusion - Expected - 77 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col0\) \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, - col0 + + col2 AS col0 FROM tab2 AS cor0 +---- +-17 +-23 +-24 +51 +67 +77 query II rowsort SELECT ALL col1 col1, col0 AS col2 FROM tab1 AS cor0 @@ -46922,8 +47393,9 @@ SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 cor0 3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, - ( col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL +---- query I rowsort label-7763 SELECT ALL - COUNT ( DISTINCT - 76 ) FROM tab2 AS cor0 @@ -47197,8 +47669,15 @@ SELECT * FROM tab1 WHERE - col1 NOT BETWEEN NULL AND CAST ( NULL AS INTEGER ) * # Datafusion - Expected - -58 # Datafusion - Expected - -77 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col2" at position 0 and "\(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - col1 ) AS col2, - col2 col2 FROM tab2 +---- +-23 +-40 +-51 +-58 +-67 +-77 query I rowsort label-7808 SELECT COUNT ( + col2 ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE + 5 + col1 IS NULL @@ -47652,8 +48131,11 @@ SELECT ( - - CAST ( - col2 AS INTEGER ) ) * 19 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 91 col2, 73 AS col2 FROM tab1 AS cor0 +---- +73 +91 query I rowsort label-7884 SELECT ALL - + COUNT ( * ) / + - 10 FROM tab2 WHERE + - 51 * + 19 = NULL @@ -48971,8 +49453,11 @@ SELECT - MAX ( DISTINCT + - col0 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col0" at position 0 and "Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 81 AS col0, + 52 AS col0 FROM tab0 +---- +-81 +52 query I rowsort label-8100 SELECT ALL CAST ( NULL AS INTEGER ) / col1 AS col2 FROM tab1 @@ -49421,8 +49906,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT - 43 NOT IN ( + - 74 * col2 ) # Datafusion - Expected - 47 # Datafusion - Expected - 29 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 29 AS col0, + col1 AS col0 FROM tab1 AS cor0 +---- +14 +29 +29 +29 +47 +5 query I rowsort SELECT ALL + - 47 * col1 col0 FROM tab2 AS cor0 WHERE NULL < col2 @@ -49916,8 +50408,15 @@ SELECT DISTINCT + ( ( - 24 ) ) FROM tab2 AS cor0 # Datafusion - Expected - 8726 # Datafusion - Expected - -97 # Datafusion - Expected - 96056 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(26\) \- Int64\(10\) \* cor0\.col0 \* \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col0, 26 - + + 10 * col0 * - + col2 AS col0 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +7076 +8726 +96056 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT 82 * - ( 47 ) + + 20 IS NOT NULL @@ -50254,8 +50753,15 @@ SELECT ALL + + ( - CAST ( - 34 AS INTEGER ) ) FROM tab2 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 5 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 5 AS col1, + col0 AS col1 FROM tab2 AS cor0 +---- +46 +5 +5 +5 +64 +75 query I rowsort label-8315 SELECT ALL + COUNT ( * ) / - ( + + 9 ) FROM ( tab1 cor0 CROSS JOIN tab0 cor1 ) @@ -50376,8 +50882,11 @@ SELECT ALL + COUNT ( * ) col1 FROM tab0 AS cor0 WHERE ( + + col0 <> 59 + + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-54\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 61 + - - COUNT ( * ) AS col1, - 54 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 +---- +64 +NULL query I rowsort SELECT DISTINCT - 11 * - ( - col0 ) * + col0 + col0 AS col2 FROM tab0 AS cor0 @@ -50723,8 +51232,15 @@ SELECT + + col2 FROM tab2 WHERE col1 < CAST ( - - 85 AS INTEGER ) # Datafusion - Expected - -90 # Datafusion - Expected - -8281 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* \(\- tab1\.col0\) AS col2" at position 0 and "Int64\(\-90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 * - col0 AS col2, - 90 AS col2 FROM tab1 +---- +-2601 +-7225 +-8281 +-90 +-90 +-90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1215 @@ -50733,8 +51249,15 @@ SELECT ALL col0 * - col0 AS col2, - 90 AS col2 FROM tab1 # Datafusion - Expected - 95 # Datafusion - Expected - 97 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* \(\- tab0\.col1\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * - col1 AS col0, 95 AS col0 FROM tab0 +---- +1215 +1827 +95 +95 +95 +97 query I rowsort SELECT DISTINCT 20 * - - col1 FROM tab2 @@ -51517,8 +52040,9 @@ SELECT * FROM tab0 AS cor0 WHERE NOT + 14 < col0 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, + 9 AS col0 FROM tab2 AS cor0 WHERE NOT + 88 NOT BETWEEN ( + - 40 / - ( CAST ( NULL AS INTEGER ) ) + - col2 - 22 - + 79 ) AND col2 +---- query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 = NULL @@ -52369,8 +52893,15 @@ SELECT + col0 / + 35 - + col0 + - 69 FROM tab0 AS cor0 # Datafusion - Expected - 5929 # Datafusion - Expected - 95 # Datafusion - Expected - 4489 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \- \(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 20 - - col0 AS col2, col1 * col1 AS col2 FROM tab2 cor0 +---- +2601 +4489 +5929 +66 +84 +95 query III rowsort SELECT * FROM tab2 AS cor0 WHERE + 8 NOT BETWEEN 70 + ( col0 ) - + col0 AND 38 @@ -53097,8 +53628,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * - 62 AS col1, MAX ( DISTINCT - + col0 ) AS col1 FROM tab1 AS cor0 +---- +-186 +-51 query I rowsort label-8787 SELECT COUNT ( + + 90 ) col0 FROM tab1 AS cor0 @@ -53184,8 +53718,15 @@ SELECT + col0 + - + col2 AS col0 FROM tab1 # Datafusion - Expected - -1 # Datafusion - Expected - 28 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \+ tab0\.col0 AS col2" at position 0 and "\(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 13 + + col0 AS col2, - col1 AS col2 FROM tab0 +---- +-1 +-21 +-81 +100 +110 +28 query II rowsort SELECT + col2 + + col0 + + col2 + - + col0, - col0 AS col1 FROM tab0 @@ -53619,8 +54160,15 @@ SELECT ALL 93 - + - SUM ( + 44 ) FROM tab2 AS cor0 # Datafusion - Expected - 616 # Datafusion - Expected - -66 # Datafusion - Expected - 616 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ Int64\(\-51\) AS col0" at position 0 and "Int64\(44\) \* Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col0 + - 51 AS col0, 44 * + + 14 AS col0 FROM tab0 AS cor0 +---- +-138 +-148 +-66 +616 +616 +616 query I rowsort label-8873 SELECT DISTINCT - ( COUNT ( * ) ) - SUM ( DISTINCT - CAST ( - col1 AS INTEGER ) ) - 99 + 29 * 83 AS col0 FROM tab2 AS cor0 @@ -54629,8 +55177,15 @@ SELECT DISTINCT - - MAX ( DISTINCT - + col0 ) FROM tab0 AS cor0 # Datafusion - Expected - 116 # Datafusion - Expected - -79 # Datafusion - Expected - 117 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(\-79\)\) AS Int32\)\) AS col0" at position 0 and "cor0\.col1 / Int64\(52\) \- \(\- CAST\(Int64\(93\) AS Int32\)\) \+ Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + CAST ( - - 79 AS INTEGER ) AS col0, + col1 / + 52 - + - CAST ( 93 AS INTEGER ) + 23 AS col0 FROM tab0 AS cor0 WHERE - col1 * - + 12 + 35 IS NOT NULL +---- +-79 +-79 +-79 +116 +116 +117 query I rowsort SELECT ALL - col2 + - - 0 AS col2 FROM tab0 cor0 @@ -55565,8 +56120,15 @@ SELECT DISTINCT ( + col0 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col2 AND ( # Datafusion - Expected - 20 # Datafusion - Expected - -51 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(51\)\) AS col0" at position 0 and "Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - ( + 51 ) ) AS col0, 20 AS col0 FROM tab1 AS cor0 +---- +-51 +-51 +-51 +20 +20 +20 query I rowsort SELECT - col0 * - col1 * + - col2 FROM tab2 cor0 @@ -56038,12 +56600,16 @@ SELECT DISTINCT col0 * col2 * - col0 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 8 AS col1, COUNT ( * ) AS col1 FROM tab0 +---- +-8 +3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> col0 +---- query I rowsort label-9279 SELECT ALL CAST ( + + 32 AS INTEGER ) AS col1 FROM tab2 cor0 @@ -56305,8 +56871,15 @@ SELECT DISTINCT - MAX ( + col0 ) col2 FROM tab0 AS cor0 # Datafusion - Expected - -58 # Datafusion - Expected - 187126344 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- \(\- cor0\.col2\)\) \* cor0\.col1 \* Int64\(68\) \* cor0\.col1 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 * - - col2 * + col1 * + + 68 * col1 col1, - col2 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +1032120320 +1327846200 +187126344 query I rowsort SELECT ALL - col2 * col2 - 24 FROM tab2 AS cor0 @@ -56470,8 +57043,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 243 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(\-81\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( DISTINCT - 81 ) * - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +243 +3 query I rowsort label-9349 SELECT MIN ( DISTINCT + + ( - ( - col1 ) ) ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 0 * col0 + - ( - col2 ) + + - col0 + - col0 * - + col0 ) @@ -57877,8 +58453,15 @@ SELECT - col0 * col1 * + col1 FROM tab0 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - -97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, + col0 AS col1 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +15 +87 +97 query I rowsort SELECT 54 * - 96 AS col1 FROM tab2 AS cor0 @@ -58339,8 +58922,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, + 74 AS col0 FROM tab2 AS cor0 +---- +-3 +74 query I rowsort label-9662 SELECT - COUNT ( col0 ) AS col1 FROM tab0 AS cor0 @@ -58657,8 +59243,15 @@ SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col2 > - - col1 / - col1 - + 43 # Datafusion - Expected - 262 # Datafusion - Expected - -53 # Datafusion - Expected - 262 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col0" at position 0 and "Int64\(21\) \* Int64\(25\) / Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 53 AS col0, + 21 * 25 / 2 AS col0 FROM tab1 AS cor0 +---- +-53 +-53 +-53 +262 +262 +262 query I rowsort SELECT ALL - col2 * + col1 col2 FROM tab1 AS cor0 WHERE NOT col2 >= NULL @@ -59421,8 +60014,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * - - 82 AS col0, - 80 * + 43 AS col0 FROM tab0 +---- +-246 +-3440 query I rowsort label-9840 SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT col0 BETWEEN NULL AND + col1 @@ -60030,8 +60626,15 @@ SELECT DISTINCT MAX ( ALL - ( - ( + - col2 ) ) ) FROM tab2 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 col2, - col1 col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +14 +47 +5 query II rowsort SELECT - col1, 92 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL ) @@ -60214,8 +60817,11 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 ) * 71 NOT IN ( - + col2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- cor0\.col1\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( - col1 ) AS col2, COUNT ( * ) AS col2 FROM tab1 cor0 +---- +-66 +3 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + + + col2 + col2 IS NULL @@ -60271,8 +60877,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ), ( COUNT ( * ) ) FROM tab0 +---- +3 +3 query I rowsort SELECT ALL + col0 * - 48 col1 FROM tab1 cor0 diff --git a/data/sqlite/random/aggregates/slt_good_116.slt b/data/sqlite/random/aggregates/slt_good_116.slt index e343579..5f4504c 100644 --- a/data/sqlite/random/aggregates/slt_good_116.slt +++ b/data/sqlite/random/aggregates/slt_good_116.slt @@ -329,8 +329,15 @@ SELECT ALL 87 * - col2 * + - CAST ( + col2 AS INTEGER ) col0 FROM tab0 # Datafusion - Expected - 50 # Datafusion - Expected - -58 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + + col2 ) AS col0, 50 AS col0 FROM tab2 +---- +-23 +-40 +-58 +50 +50 +50 query II rowsort label-51 SELECT ALL + col0 / 68 AS col2, col1 + 69 / 37 FROM tab2 @@ -463,8 +470,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT + col2 >= col2 # Datafusion - Expected - 44 # Datafusion - Expected - 1694 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(22\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * 22 AS col1, 44 col1 FROM tab2 AS cor0 +---- +1122 +1474 +1694 +44 +44 +44 query I rowsort SELECT ALL + + 88 AS col0 FROM tab0 AS cor0 @@ -854,8 +868,15 @@ SELECT DISTINCT 18 - - col0 AS col0 FROM tab1 # Datafusion - Expected - 3551 # Datafusion - Expected - -5544 # Datafusion - Expected - 4081 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* Int64\(\-72\) AS col2" at position 0 and "Int64\(\-53\) \* \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * - 72 AS col2, - 53 * + ( - col1 ) AS col2 FROM tab2 +---- +-3672 +-4824 +-5544 +2703 +3551 +4081 query I rowsort SELECT DISTINCT - col0 * - ( - 4 ) AS col1 FROM tab2 AS cor0 @@ -888,8 +909,15 @@ SELECT DISTINCT MIN ( - 44 ) FROM tab2 AS cor0 # Datafusion - Expected - 75 # Datafusion - Expected - -77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, + col0 AS col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +46 +64 +75 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * 21 >= - 23 + + col0 + + ( col2 ) - + col0 + + 54 @@ -1169,8 +1197,9 @@ SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE ( - ( + 30 ) * - 4 + - ( - 3 ) ) IS N 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 * - col2 AS col1, + 91 AS col1 FROM tab0 AS cor0 WHERE col1 NOT IN ( col1 ) +---- query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 75 IS NULL @@ -1493,8 +1522,10 @@ SELECT ALL * FROM tab0 WHERE col2 IS NOT NULL OR ( - - col1 ) >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c24739388d57a313a244bf18357fa60e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* Int64\(\-87\) AS col0" at position 1 and "tab0\.col1 AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 37 * 50 AS col2, + col0 * + - 87 AS col0, + col1 AS col0 FROM tab0 +---- +9 values hashing to 316016d2acafa61e193a07a04c06fab6 query I rowsort SELECT DISTINCT 46 col2 FROM tab1 @@ -1739,8 +1770,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( - col1 ) AS col2, MIN ( - 50 ) * + 30 + - - COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-103 +-1497 query II rowsort SELECT ALL - col2 * + col2 AS col1, col0 FROM tab0 AS cor0 @@ -2114,8 +2148,11 @@ SELECT * FROM tab0 WHERE NOT + col1 = 30 * - + col2 + + 77 + - col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(12\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 40 AS col0, CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - + 12 AS col0 FROM tab0 +---- +40 +NULL query I rowsort label-341 SELECT DISTINCT + MIN ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 @@ -2142,8 +2179,10 @@ SELECT - ( + + 13 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 7a6879701b905ebd485a81332ccec585 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ( - col2 ) * - CAST ( NULL AS INTEGER ) AS col0, col2 AS col1, ( - col2 ) AS col0 FROM tab1 cor0 +---- +9 values hashing to 64b86b3e1241089b72421b2d0c639bf1 query I rowsort label-346 SELECT ALL - 98 * COUNT ( * ) * + + COUNT ( * ) FROM tab0 cor0 @@ -2178,8 +2217,15 @@ SELECT - - col1 col2 FROM tab0 WHERE NULL <= 63 # Datafusion - Expected - 59 # Datafusion - Expected - 8281 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* tab1\.col0 AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * col0 AS col0, col2 AS col0 FROM tab1 +---- +2601 +59 +68 +7225 +8281 +96 query I rowsort SELECT + - 42 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 @@ -2279,8 +2325,15 @@ SELECT 46 AS col2, 53 AS col0 FROM tab1 cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col2, col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT ALL + - col0 * + 30 FROM tab2 cor0 @@ -4597,8 +4650,11 @@ SELECT + - ( col1 ) FROM tab1 cor0 WHERE NOT col2 * - col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 86 col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL +---- +0 +86 query I rowsort label-750 SELECT DISTINCT 34 * + col1 + CAST ( 78 AS INTEGER ) FROM tab2 @@ -5616,8 +5672,15 @@ SELECT DISTINCT 56 + - + CAST ( 72 AS INTEGER ) + + 66 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, + col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT + + 67 * col0 AS col1 FROM tab2 AS cor0 @@ -7061,8 +7124,10 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 8f2da9ec9e6a5e9778d48af0b9db65b1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ \(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - col2 + - + col1 AS col0, ( - - 95 ), + - col2 AS col0 FROM tab0 AS cor0 +---- +9 values hashing to b6d51a77a4af73910623e75fbbb9e522 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 IN ( + col0, col1 * - 92 - col0, - - col1 ) @@ -7302,8 +7367,11 @@ SELECT DISTINCT + - SUM ( DISTINCT 67 ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +-3 +3 query I rowsort SELECT + - col2 * - col1 - - 22 FROM tab1 AS cor0 @@ -7357,8 +7425,15 @@ SELECT + ( col0 ) FROM tab2 AS cor0 WHERE col1 - ( + col0 ) IS NULL # Datafusion - Expected - 7 # Datafusion - Expected - -88 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ \(\- Int64\(20\)\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 + - ( 20 ) AS col0, + 7 AS col0 FROM tab1 AS cor0 +---- +-116 +-79 +-88 +7 +7 +7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 @@ -7367,8 +7442,15 @@ SELECT ALL - col2 + - ( 20 ) AS col0, + 7 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 45 # Datafusion - Expected - 49 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \+ Int64\(\-62\) \+ 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 II valuesort SELECT ALL + 96 + - 62 + 15 AS col0, 45 AS col0 FROM tab2 +---- +45 +45 +45 +49 +49 +49 query I rowsort label-1212 SELECT COUNT ( * ) + MAX ( ALL - col2 ) FROM tab0 @@ -9372,8 +9454,15 @@ SELECT + COUNT ( * ) + - MIN ( - 40 ) FROM tab2 AS cor0 # Datafusion - Expected - 8148 # Datafusion - Expected - -5 # Datafusion - Expected - 8148 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(97\) \* Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col1 AS col0, + 97 * + 84 AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +8148 +8148 +8148 query I rowsort SELECT - - 0 * - - 1 FROM tab0 AS cor0 @@ -9950,8 +10039,9 @@ SELECT DISTINCT + 57 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "\(\- tab1\.col0\) \* tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 AS col1, - col0 * + col2 AS col1 FROM tab1 WHERE NULL NOT IN ( - - col0 * - + col1 * + - 24 * - col0, - col1, + 5, - - 59, + 14 ) +---- query I rowsort SELECT DISTINCT + + 77 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 @@ -10051,8 +10141,9 @@ SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 56 AND NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col2 \* Int64\(16\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * + col2 * + 16 AS col1, + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( col1 ) IS NOT NULL +---- query III rowsort SELECT * FROM tab0 cor0 WHERE NOT col2 + + + 30 IS NULL @@ -10075,8 +10166,15 @@ SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE NULL <= NULL # Datafusion - Expected - 68 # Datafusion - Expected - -96 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, 68 AS col0 FROM tab1 +---- +-59 +-68 +-96 +68 +68 +68 query II rowsort SELECT 15 AS col1, col2 + + col2 FROM tab0 @@ -10638,8 +10736,15 @@ SELECT - col2 * + - col0 + + 74 + 34 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - -8812 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- \(\- cor0\.col2\)\) \+ cor0\.col0 \+ Int64\(91\) \* \(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 + - - col2 + + col0 + + 91 * - + col2 AS col0, col1 AS col0 FROM tab0 AS cor0 +---- +-4134 +-792 +-8812 +1 +21 +81 query III rowsort SELECT * FROM tab2 WHERE col0 BETWEEN 1 AND col2 @@ -10876,8 +10981,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + - col2 < NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( col0 ), + col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT ALL 39 - + 31 + col0 AS col0 FROM tab2 @@ -11204,8 +11316,11 @@ SELECT ALL 7 + - COUNT ( * ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 40 AS col1, 50 AS col1 FROM tab0 +---- +-40 +50 query I rowsort SELECT DISTINCT + col1 * + - col1 * - + 87 FROM tab0 cor0 @@ -11958,8 +12073,11 @@ SELECT ALL col0 * - - 51 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) \+ \(\- Int64\(\-62\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 29 + - - 62 AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +3 +33 query I rowsort label-1987 SELECT ALL - COUNT ( * ) + - 70 AS col2 FROM tab1 @@ -12058,8 +12176,12 @@ NULL # Datafusion - Expected - 3 # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + + COUNT ( * ), + COUNT ( * ), ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 +---- +3 +3 +3 query I rowsort label-2003 SELECT - 53 * - MIN ( + col2 ) AS col2 FROM tab1 AS cor0 @@ -12922,8 +13044,15 @@ SELECT ( COUNT ( * ) ) col1 FROM tab2 AS cor0 WHERE 53 * 65 IS NOT NULL # Datafusion - Expected - 23 # Datafusion - Expected - -24 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \- \(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 - - - col0 AS col0, + col2 AS col0 FROM tab2 AS cor0 +---- +-17 +-23 +-24 +23 +40 +58 query I rowsort SELECT ALL - 53 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL @@ -13054,8 +13183,15 @@ SELECT * FROM tab2 WHERE NULL NOT BETWEEN col2 AND - ( 50 ) / + 63 # Datafusion - Expected - 85 # Datafusion - Expected - -99 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 99 AS col1, + col0 AS col1 FROM tab1 AS cor0 +---- +-99 +-99 +-99 +51 +85 +91 query II rowsort SELECT + - col1, col2 * + col0 AS col2 FROM tab1 AS cor0 @@ -13153,8 +13289,15 @@ SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 cor0 WHERE + col0 >= + - 66 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( col1 ), col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-2184 SELECT ALL 66 * - 75 * - - COUNT ( * ) FROM tab2 AS cor0 @@ -13882,8 +14025,15 @@ SELECT DISTINCT 37 * 56 FROM tab0 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - -62 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col2" at position 0 and "\(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 62 AS col2, - col0 AS col2 FROM tab2 +---- +-46 +-62 +-62 +-62 +-64 +-75 query II rowsort SELECT - col0 * + + col0, col0 FROM tab1 @@ -14999,8 +15149,15 @@ SELECT + 59 / + SUM ( - - col0 ) AS col2 FROM tab2 # Datafusion - Expected - 5 # Datafusion - Expected - -8281 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * - col0 AS col0, + col1 AS col0 FROM tab1 AS cor0 +---- +-2601 +-7225 +-8281 +14 +47 +5 query I rowsort label-2485 SELECT DISTINCT + - ( - + MIN ( DISTINCT + col2 ) ) FROM tab1 AS cor0 @@ -15505,8 +15662,15 @@ SELECT col0 - 8 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - -28 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \- Int64\(68\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 40 - + 68 col0, col2 AS col0 FROM tab0 +---- +-28 +-28 +-28 +10 +47 +99 query I rowsort SELECT ALL + col1 AS col2 FROM tab1 WHERE ( NULL ) IS NOT NULL @@ -16252,8 +16416,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 71 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "Int64\(60\) / Int64\(98\) / \(\- cor0\.col2\) \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 71 AS col1, 60 / 98 / + - col2 + col2 AS col1 FROM tab0 AS cor0 +---- +10 +47 +71 +71 +71 +99 query I rowsort SELECT + col2 col2 FROM tab2 AS cor0 WHERE NOT + col2 = + 8 @@ -16802,8 +16973,15 @@ SELECT DISTINCT - col0 FROM tab2 cor0 WHERE NOT NULL > NULL # Datafusion - Expected - 47 # Datafusion - Expected - 84 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "\(\- \(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 84 AS col1, - ( - col2 ) AS col1 FROM tab0 cor0 +---- +10 +47 +84 +84 +84 +99 query I rowsort SELECT ALL + 36 * col1 FROM tab1 AS cor0 @@ -18052,8 +18230,15 @@ SELECT DISTINCT ( - 16 ), + COUNT ( * ) col2 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - 50 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 50 AS col2, + col1 AS col2 FROM tab1 AS cor0 +---- +14 +47 +5 +50 +50 +50 query I rowsort label-2984 SELECT + COUNT ( * ) / - - 83 FROM tab1 AS cor0 @@ -19513,8 +19698,11 @@ SELECT DISTINCT 48 + + col1 + + 39 * - - ( col1 ) AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6384 # Datafusion - Expected - 3101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \* Int64\(78\) \+ sum\(\(\- cor0\.col1\)\) AS col1" at position 0 and "Int64\(40\) \* Int64\(77\) \+ Int64\(63\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 * + + 78 + + + SUM ( - col1 ) AS col1, 40 * 77 + 63 / + COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +-6384 +3101 query II rowsort SELECT ALL col2 AS col2, col1 FROM tab1 AS cor0 @@ -19636,8 +19824,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT - col1 + + col0 = ( 25 ) # Datafusion - Expected - 68 # Datafusion - Expected - 41 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 41 AS col0, col2 col0 FROM tab1 +---- +41 +41 +41 +59 +68 +96 query I rowsort SELECT ALL 57 FROM tab1 cor0 WHERE NULL IS NOT NULL @@ -19753,8 +19948,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - CAST ( NULL AS INTEGER ) + 76 = NU # Datafusion - Expected - -58 # Datafusion - Expected - 77 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 col0, - col2 AS col0 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +51 +67 +77 query I rowsort SELECT DISTINCT - 43 + - 95 FROM tab2 AS cor0 @@ -20972,8 +21174,15 @@ SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 68 IS NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, + col0 FROM tab0 cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-3458 SELECT + CAST ( NULL AS INTEGER ) + + - MAX ( - col1 ) + - COUNT ( * ) FROM tab2 AS cor0 @@ -23298,8 +23507,15 @@ SELECT ALL + - col2 * - col0 + + - col1 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 4277 # Datafusion - Expected - 84 # Datafusion - Expected - 714 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / Int64\(6\) \+ Int64\(25\) \+ cor0\.col0 AS col1" at position 0 and "cor0\.col1 \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 / + 6 + + + 25 + col0 AS col1, + col1 * + ( + col0 ) AS col1 FROM tab1 AS cor0 +---- +124 +131 +425 +4277 +714 +84 query I rowsort SELECT DISTINCT - col1 + - - col0 AS col2 FROM tab0 @@ -23406,8 +23622,11 @@ 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 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 II valuesort SELECT ALL - - 15 AS col1, - COUNT ( DISTINCT + - col1 ) AS col1 FROM tab2 AS cor0 +---- +-3 +15 query I rowsort SELECT - 95 * - + 3 FROM tab2 AS cor0 @@ -23800,8 +24019,15 @@ SELECT - + ( - CAST ( col2 AS INTEGER ) ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + col1 ) col0, - col1 AS col0 FROM tab1 cor0 +---- +-14 +-14 +-47 +-47 +-5 +-5 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= + col0 + - col1 @@ -24132,8 +24358,10 @@ SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NU # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to de9c7455790a51776bcb65cbea6c5349 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 \- \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - col0 AS col2, col1 - - col2 AS col2, col2 AS col0 FROM tab1 AS cor0 +---- +9 values hashing to 04e007e91aa30d91d9779184f21a9e2c query I rowsort label-3994 SELECT - ( - ( - col2 ) ) + - 51 / - ( + 14 ) AS col2 FROM tab0 AS cor0 @@ -24444,8 +24672,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT col0 > 64 * 8 - + col2 # Datafusion - Expected - 136 # Datafusion - Expected - 97 # Datafusion - Expected - 192 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col2" at position 0 and "cor0\.col2 \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 97 AS col2, col2 + + col2 AS col2 FROM tab1 AS cor0 +---- +118 +136 +192 +97 +97 +97 query I rowsort SELECT - 98 + + col2 col1 FROM tab1 cor0 @@ -24598,8 +24833,15 @@ SELECT DISTINCT - ( col0 ) * + col0 FROM tab1 # Datafusion - Expected - 2 # Datafusion - Expected - -58 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab2\.col2\) AS Int32\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( - col2 AS INTEGER ) AS col2, + 2 AS col2 FROM tab2 +---- +-23 +-40 +-58 +2 +2 +2 query I rowsort SELECT DISTINCT - 64 col0 FROM tab0 AS cor0 @@ -25896,8 +26138,15 @@ SELECT + col0, + col1 + - + col2 FROM tab0 AS cor0 # Datafusion - Expected - -4350 # Datafusion - Expected - 77 # Datafusion - Expected - -2560 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "\(\- cor0\.col0\) \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - - col1 ) AS col0, - col0 * col2 AS col0 FROM tab2 AS cor0 +---- +-1058 +-2560 +-4350 +51 +67 +77 query III rowsort SELECT * FROM tab0 WHERE NOT - 28 * + col2 + - + ( - col0 ) + col0 >= ( col0 ) @@ -26218,8 +26467,15 @@ SELECT * FROM tab1 WHERE ( NOT 69 <= NULL ) # Datafusion - Expected - NULL # Datafusion - Expected - -910 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* \(\- tab1\.col1\) AS col2" at position 0 and "tab1\.col1 / Int64\(11\) \+ \(\- tab1\.col2\) / \(\- tab1\.col0\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 65 * - col1 AS col2, + col1 / 11 + - col2 / - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 +---- +-3055 +-325 +-910 +NULL +NULL +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 @@ -26228,8 +26484,15 @@ SELECT + 65 * - col1 AS col2, + col1 / 11 + - col2 / - col0 * CAST ( NULL AS INT # Datafusion - Expected - 115 # Datafusion - Expected - 96 # Datafusion - Expected - 110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "cor0\.col2 \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - ( + col2 ) AS col0, col2 + col1 AS col0 FROM tab1 AS cor0 +---- +110 +115 +59 +64 +68 +96 query I rowsort SELECT col0 + + col1 FROM tab1 AS cor0 WHERE NULL IS NULL @@ -27162,8 +27425,15 @@ SELECT ALL - - 65 FROM tab1 cor0 # Datafusion - Expected - -2694 # Datafusion - Expected - 84 # Datafusion - Expected - -2727 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "Int64\(\-40\) \* Int64\(67\) \- cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 84 AS col0, - 40 * + 67 - + + col1 AS col0 FROM tab1 AS cor0 +---- +-2685 +-2694 +-2727 +84 +84 +84 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 + - col1 IS NOT NULL ) @@ -27586,8 +27856,15 @@ NULL # Datafusion - Expected - -3080 # Datafusion - Expected - NULL # Datafusion - Expected - -3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(15\) \* Int64\(92\) \+ \(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "cor0\.col1 \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) * + 15 * 92 + - - col1 AS col2, col1 * - + ( col2 ) AS col2 FROM tab2 AS cor0 +---- +-1173 +-3080 +-3886 +NULL +NULL +NULL query I rowsort SELECT ALL + 52 FROM tab0 WHERE NOT col1 <= NULL @@ -27892,8 +28169,15 @@ SELECT ALL + col2 * + col0 - col2 FROM tab2 # Datafusion - Expected - 6 # Datafusion - Expected - 99 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, 6 AS col0 FROM tab0 AS cor0 +---- +10 +47 +6 +6 +6 +99 query I rowsort SELECT - col2 - col1 FROM tab1 AS cor0 WHERE - ( - 19 ) IS NULL @@ -28693,8 +28977,11 @@ 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\(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\. +query II valuesort SELECT ALL - - COUNT ( * ) AS col1, + MAX ( col0 ) AS col1 FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL +---- +0 +NULL query I rowsort SELECT + col2 col1 FROM tab0 cor0 WHERE NOT NULL >= 3 @@ -29317,8 +29604,15 @@ SELECT DISTINCT + COUNT ( * ) AS col2, + 58 col1 FROM tab2 cor0 # Datafusion - Expected - -924 # Datafusion - Expected - -81 # Datafusion - Expected - -3564 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(\-44\) \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col1 AS col1, + ( + - 44 ) * col1 AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-3564 +-44 +-81 +-924 query II rowsort SELECT + col2 AS col2, + 64 FROM tab1 AS cor0 @@ -29854,8 +30148,15 @@ SELECT - - MAX ( DISTINCT + + 88 ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -27 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 27 AS col0, - col1 AS col0 FROM tab1 AS cor0 +---- +-14 +-27 +-27 +-27 +-47 +-5 query I rowsort SELECT ALL col0 + + + 81 FROM tab0 @@ -29956,8 +30257,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * - MAX ( ALL - col2 ) + + 10 AS col2, 63 AS col2 FROM tab1 AS cor0 +---- +187 +63 query II rowsort label-4951 SELECT ALL - + CAST ( NULL AS INTEGER ) * + 33 * - + 12 AS col2, 66 AS col1 FROM tab0 cor0 @@ -30699,8 +31003,15 @@ SELECT + 16 * + col2 * 70 + - col1 AS col1 FROM tab2 # Datafusion - Expected - -30 # Datafusion - Expected - 99 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col1, - 30 AS col1 FROM tab0 +---- +-30 +-30 +-30 +10 +47 +99 query I rowsort label-5074 SELECT ALL 93 / + + COUNT ( DISTINCT - + col1 ) - ( 5 ) + + - COUNT ( * ) FROM tab0 AS cor0 @@ -31197,8 +31508,10 @@ SELECT DISTINCT + col1 / col0 - - col1 FROM tab2 WHERE NOT ( ( NOT 90 + col1 IS # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 08bf7c26c476774bc1f04ce3cc9c5462 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "Int64\(65\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col2 AS col0, + col2 * - ( - - 1 ), 65 col0 FROM tab1 +---- +9 values hashing to 77e963504fed6ba1aa09ab64db2225a6 query I rowsort SELECT ALL col0 FROM tab2 WHERE + 47 BETWEEN NULL AND ( ( + 4 ) ) @@ -31311,8 +31624,15 @@ SELECT + - 10 + - 39 + + + col1 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 145 # Datafusion - Expected - -690 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) \* cor0\.col2 AS col0" at position 0 and "cor0\.col1 \+ cor0\.col2 \+ Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 30 * + col2 AS col0, + col1 + + col2 + + 20 AS col0 FROM tab2 cor0 +---- +-1200 +-1740 +-690 +137 +145 +94 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( + 42, col0 ) @@ -31500,8 +31820,15 @@ SELECT - col0 * col0 - + col2 - + 4 + + + 57 * - 12 + + + col0 - + col2 FROM tab # Datafusion - Expected - 0 # Datafusion - Expected - -75 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 75 AS col1, 0 AS col1 FROM tab0 AS cor0 +---- +-75 +-75 +-75 +0 +0 +0 query I rowsort SELECT + - col1 AS col1 FROM tab1 AS cor0 WHERE + 49 IS NOT NULL @@ -33275,8 +33602,15 @@ SELECT - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT + col0 IN ( - + col2 ) # Datafusion - Expected - 65 # Datafusion - Expected - -11 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-11\)\)\) AS col2" at position 0 and "\(\- CAST\(\(\- cor0\.col1\) AS Int32\)\) \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - ( - - 11 ) AS col2, - CAST ( - col1 AS INTEGER ) + + + col0 col2 FROM tab1 AS cor0 +---- +-11 +-11 +-11 +138 +65 +90 query I rowsort SELECT DISTINCT - 18 + + col0 AS col1 FROM tab1 @@ -33881,8 +34215,15 @@ SELECT COUNT ( * ) * - 1 FROM tab0 WHERE NOT - col1 * - - col0 * col0 * col0 + 8 # Datafusion - Expected - 9 # Datafusion - Expected - 96 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, + 9 col1 FROM tab1 +---- +59 +68 +9 +9 +9 +96 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < - col2 @@ -36760,8 +37101,15 @@ SELECT ALL + + 73 FROM tab2 cor0 # Datafusion - Expected - -25 # Datafusion - Expected - 37 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 AS col0, - 25 AS col0 FROM tab1 AS cor0 +---- +-25 +-25 +-25 +37 +37 +37 query III rowsort SELECT ALL * FROM tab2 cor0 WHERE NOT - 13 NOT IN ( + col2 ) @@ -37344,8 +37692,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + SUM ( - ( - 76 ) ) col1, - COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +-3 +228 query I rowsort SELECT ALL - 0 + + 18 col1 FROM tab0 AS cor0 @@ -37512,8 +37863,15 @@ SELECT * FROM tab1 WHERE NOT - 53 - - col1 + + 43 * col2 + + 12 NOT BETWEEN - + # Datafusion - Expected - -2546 # Datafusion - Expected - 77 # Datafusion - Expected - -2926 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "Int64\(38\) \* \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, + 38 * - col1 AS col2 FROM tab2 +---- +-1938 +-2546 +-2926 +51 +67 +77 query I rowsort label-6194 SELECT 38 / - + col0 * + col2 FROM tab1 @@ -37785,8 +38143,11 @@ SELECT CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 +---- +9 +9 query I rowsort SELECT - 48 + + 21 AS col1 FROM tab0 AS cor0 @@ -37906,8 +38267,15 @@ SELECT DISTINCT col0 - col2 - + 6 FROM tab2 AS cor0 # Datafusion - Expected - -73 # Datafusion - Expected - -10 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(10\)\) AS col0" at position 0 and "Int64\(10\) \- Int64\(84\) \+ Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 10 AS col0, 10 - 84 + 1 AS col0 FROM tab2 AS cor0 +---- +-10 +-10 +-10 +-73 +-73 +-73 query I rowsort SELECT DISTINCT + + col2 FROM tab0 AS cor0 WHERE NOT 76 <= - - 44 @@ -38427,8 +38795,15 @@ SELECT - col0 * 14 AS col1 FROM tab0 # Datafusion - Expected - 67 # Datafusion - Expected - -70 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \* \(\- Int64\(\-7\)\) AS col1" at position 0 and "tab0\.col2 \+ Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 * + + ( - ( - 7 ) ) AS col1, col2 + - 32 AS col1 FROM tab0 +---- +-22 +-329 +-693 +-70 +15 +67 query II rowsort label-6337 SELECT ALL SUM ( CAST ( NULL AS INTEGER ) ) / + + 36 * + + COUNT ( DISTINCT + col0 ), 15 AS col1 FROM tab2 @@ -38611,8 +38986,10 @@ SELECT - col1 * - 70 + col0 * - 84, - 18 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 015f40e35eff8e5e9fb9040e5b4759f6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - col0 AS col1, 44 AS col1, + ( + 5 ) FROM tab2 AS cor0 +---- +9 values hashing to be40482955ec7f56d496e33426b24c31 query I rowsort label-6365 SELECT - MIN ( col0 ) - - CAST ( + 22 AS INTEGER ) FROM tab1 AS cor0 @@ -38672,8 +39049,15 @@ SELECT DISTINCT * FROM tab2 WHERE - col1 + + + 67 + + + 32 IS NOT NULL # Datafusion - Expected - 73 # Datafusion - Expected - -97 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, 73 AS col0 FROM tab0 +---- +-15 +-87 +-97 +73 +73 +73 query I rowsort label-6375 SELECT ALL + MAX ( ALL + 85 ) AS col1 FROM tab2 @@ -39573,8 +39957,11 @@ SELECT DISTINCT 15 / + COUNT ( * ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 18 ) AS col1, COUNT ( * ) AS col1 FROM tab0 WHERE NULL IS NOT NULL AND ( NULL IS NOT NULL ) +---- +0 +18 query I rowsort SELECT ALL 31 * col1 + - col0 FROM tab1 @@ -40020,8 +40407,15 @@ SELECT ALL col1 * - 59 FROM tab2 # Datafusion - Expected - -4350 # Datafusion - Expected - -58254 # Datafusion - Expected - -1058 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ Int64\(\-76\) \+ tab2\.col2 \+ \(\- tab2\.col2\) \+ \(\- Int64\(55\)\) \* tab2\.col0 \* tab2\.col2 \- \(\- \(\- tab2\.col0\)\) AS col1" at position 0 and "tab2\.col2 \* \(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 58 + - 76 + + col2 + + - col2 + - + 55 * + col0 * ( col2 ) - - ( + - col0 ) AS col1, + col2 * - + col0 col1 FROM tab2 WHERE - - col2 IS NOT NULL +---- +-1058 +-140882 +-239343 +-2560 +-4350 +-58254 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -40536,8 +40930,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 17 AS col2, - COUNT ( * ) * + + 41 AS col2 FROM tab1 AS cor0 +---- +-123 +-17 query I rowsort SELECT ALL + 74 + - + 54 AS col2 FROM tab0 AS cor0 @@ -40867,8 +41264,15 @@ SELECT DISTINCT + 23 / + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 47 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \+ Int64\(9\) \+ \(\- Int64\(9\)\) / cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 38 + 9 + - + 9 / + + col0 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +23 +40 +47 +47 +47 +58 query I rowsort SELECT DISTINCT + 34 col1 FROM tab0 AS cor0 @@ -41136,8 +41540,15 @@ SELECT DISTINCT - - 73 AS col0, col0 FROM tab0 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 18 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 18 AS col2, col1 AS col2 FROM tab0 AS cor0 +---- +1 +18 +18 +18 +21 +81 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - 45, + col2 ) @@ -41598,8 +42009,15 @@ NULL # Datafusion - Expected - -63403 # Datafusion - Expected - 98 # Datafusion - Expected - -864171 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ cor0\.col1 AS col1" at position 0 and "cor0\.col0 \* \(\- \(\- Int64\(\-2\)\)\) \* \(\- \(\- cor0\.col2\)\) \* Int64\(45\) \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + + + col1 AS col1, col0 * - ( - - 2 ) * - + ( - col2 ) * + 45 + + + col2 AS col1 FROM tab0 AS cor0 +---- +-63403 +-78290 +-864171 +108 +96 +98 query I rowsort label-6855 SELECT ALL col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 @@ -43366,8 +43784,15 @@ SELECT - 78 + + + SUM ( - 40 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -16 # Datafusion - Expected - -84 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* cor0\.col1 \+ \(\- cor0\.col2\) AS col0" at position 0 and "Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 * col1 + - + col2 AS col0, - 16 col0 FROM tab1 AS cor0 +---- +-16 +-16 +-16 +-2277 +-292 +-84 query I rowsort label-7156 SELECT col2 / 58 + - + col0 + 19 AS col0 FROM tab2 AS cor0 @@ -45614,8 +46039,15 @@ NULL # Datafusion - Expected - -3080 # Datafusion - Expected - 58 # Datafusion - Expected - -3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col1 \* \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, col1 * - col2 AS col0 FROM tab2 AS cor0 +---- +-1173 +-3080 +-3886 +23 +40 +58 query I rowsort SELECT col1 * + 4 * - + col2 AS col2 FROM tab0 @@ -45953,8 +46385,11 @@ SELECT ALL - COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 135 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(92\) \+ Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, + 92 + + 43 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 +---- +135 +9 query II rowsort SELECT ALL - - col0 AS col2, 1 FROM tab1 AS cor0 @@ -46008,8 +46443,15 @@ SELECT ALL - col2 * - 96 AS col0 FROM tab2 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, + col1 AS col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT ( - col2 ) + - col1 FROM tab0 cor0 WHERE NOT col0 * col0 IS NULL @@ -46411,8 +46853,15 @@ NULL # Datafusion - Expected - 80 # Datafusion - Expected - 75 # Datafusion - Expected - 116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col2 \+ tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, col2 + col2 AS col1 FROM tab2 +---- +116 +46 +46 +64 +75 +80 query I rowsort label-7650 SELECT DISTINCT + MIN ( + col0 ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL @@ -46614,8 +47063,15 @@ SELECT DISTINCT - MAX ( + - 26 ) AS col2 FROM tab2 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 30 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 30 AS col2, + col1 AS col2 FROM tab1 AS cor0 +---- +14 +30 +30 +30 +47 +5 query I rowsort SELECT ALL - col1 col0 FROM tab2 AS cor0 WHERE + 88 IS NULL @@ -48413,8 +48869,11 @@ SELECT DISTINCT 21 + col1 / col1 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 124 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "Int64\(15\) \- \(\- \(\- min\(\(\- tab0\.col0\)\)\)\) \+ Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 70 col2, 15 - + - ( - + MIN ( - col0 ) ) + + 12 AS col2 FROM tab0 +---- +124 +70 query III rowsort SELECT ALL * FROM tab2 WHERE NOT 25 NOT IN ( - col1, - 16 + + 79, + 36 + 50 ) @@ -48561,8 +49020,15 @@ SELECT + col1, - 97 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, CAST ( NULL AS INTEGER ) + + - 2 col2 FROM tab1 +---- +-59 +-68 +-96 +NULL +NULL +NULL query I rowsort SELECT + 39 * 43 FROM tab0, tab0 cor0 @@ -48960,8 +49426,11 @@ SELECT 35 AS col2, + COUNT ( * ) / + - 46 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) col2, - COUNT ( * ) col2 FROM tab0 +---- +-3 +3 query I rowsort SELECT ALL - 87 * + 11 * + + col1 AS col2 FROM tab0 cor0 @@ -49419,8 +49888,15 @@ SELECT - col0 + - - col0 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 40 # 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 "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 col0, col2 AS col0 FROM tab2 +---- +23 +40 +58 +63 +63 +63 query I rowsort SELECT ALL - 47 * + col0 AS col1 FROM tab0 @@ -49671,8 +50147,15 @@ SELECT ALL * FROM tab0 WHERE NOT col2 <> - col1 * col2 # Datafusion - Expected - 37 # Datafusion - Expected - -95 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 95 AS col1, 37 AS col1 FROM tab1 AS cor0 +---- +-95 +-95 +-95 +37 +37 +37 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <> - col0 @@ -52418,8 +52901,15 @@ SELECT - col0 FROM tab0 WHERE NOT ( NOT 78 IS NULL ) # Datafusion - Expected - 21 # Datafusion - Expected - -3150 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \* Int64\(63\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 50 * 63 AS col0, + col1 AS col0 FROM tab0 +---- +-3150 +-3150 +-3150 +1 +21 +81 query I rowsort SELECT + 55 / + col0 - + col0 + - + col1 FROM tab1 WHERE NOT - 77 IS NOT NULL @@ -52558,8 +53048,11 @@ SELECT + 24, 36 - 84 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "tab1\.col0 \* tab1\.col0 \* CAST\(NULL AS Float64\) \* \(\- tab1\.col1\) / \(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT + 51 AS col2, + col0 * + col0 * CAST ( NULL AS FLOAT8 ) * + - col1 / - col2 AS col2 FROM tab1 +---- +51 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 @@ -53350,8 +53843,15 @@ SELECT * FROM tab2 WHERE - col2 IN ( - 8, - CAST ( NULL AS INTEGER ) + - col1 ) # Datafusion - Expected - -111 # Datafusion - Expected - 75 # Datafusion - Expected - -101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col1\) \+ Int64\(\-34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, - col1 + - 34 AS col2 FROM tab2 AS cor0 +---- +-101 +-111 +-85 +46 +64 +75 query I rowsort SELECT ALL + + ( + col1 ) + - + col0 FROM tab1 AS cor0 @@ -53622,8 +54122,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 AS col1, COUNT ( * ) col1 FROM tab1 AS cor0 +---- +3 +87 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT + 49 NOT BETWEEN NULL AND - - 3 @@ -53826,8 +54329,15 @@ SELECT + 78 * + 21 col0 FROM tab1 # Datafusion - Expected - 4754 # Datafusion - Expected - 26 # Datafusion - Expected - 816 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "tab0\.col1 \+ tab0\.col0 \+ \(\- tab0\.col0\) \* Int64\(\-48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 26 AS col1, col1 + col0 + - col0 * - 48 AS col1 FROM tab0 +---- +26 +26 +26 +4284 +4754 +816 query I rowsort SELECT ALL - col2 * + - 53 FROM tab1 @@ -54003,8 +54513,15 @@ SELECT COUNT ( * ) AS col1, 67 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -29 # Datafusion - Expected - 75 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(\-29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 col1, - 29 AS col1 FROM tab2 AS cor0 +---- +-29 +-29 +-29 +46 +64 +75 query I rowsort label-8913 SELECT - col2 / - - col1 AS col0 FROM tab1 AS cor0 @@ -54020,8 +54537,15 @@ SELECT - col2 / - - col1 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -50 # Datafusion - Expected - -96 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(\-50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, - 50 col0 FROM tab1 AS cor0 +---- +-50 +-50 +-50 +-59 +-68 +-96 query II rowsort SELECT ALL + col1 AS col2, col0 * + 43 FROM tab1 AS cor0 @@ -54050,8 +54574,15 @@ SELECT ALL - col0, + col0 FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 8 * + CAST ( NULL AS INTEGER ) AS col0, col2 col0 FROM tab2 +---- +23 +40 +58 +NULL +NULL +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -54099,8 +54630,15 @@ SELECT ALL 53 FROM tab2 WHERE NOT NULL IS NULL # Datafusion - Expected - -85 # Datafusion - Expected - 91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "\(\- CAST\(tab1\.col0 AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col2, - CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 +---- +-51 +-85 +-91 +51 +85 +91 query I rowsort SELECT ALL - + col0 AS col2 FROM tab0 WHERE NOT + + 8 = + col0 * col0 * + 77 @@ -54304,8 +54842,11 @@ SELECT COUNT ( * ) * - 62 * MIN ( ALL - col0 ) AS col1 FROM tab1 # 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 col2" at position 0 and "\(\- max\(DISTINCT tab0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 AS col2, - MAX ( DISTINCT + col2 ) AS col2 FROM tab0 +---- +-99 +76 query I rowsort label-8959 SELECT col0 + CAST ( + - col2 AS INTEGER ) * + 74 + + - col2 + + + 37 * col0 * - + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL @@ -54529,8 +55070,15 @@ SELECT DISTINCT col1 / + + col0 - - 42 FROM tab0 # Datafusion - Expected - 72 # Datafusion - Expected - 78 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \+ tab2\.col1 AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 + col1 AS col1, 72 AS col1 FROM tab2 +---- +52 +68 +72 +72 +72 +78 query I rowsort label-8997 SELECT 19 / 73 + 13 FROM tab1 @@ -55231,8 +55779,11 @@ SELECT DISTINCT COUNT ( * ) + - 19 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col2, 24 col2 FROM tab1 +---- +24 +3 query I rowsort label-9114 SELECT COUNT ( * ) + - - 72 FROM tab0 @@ -55898,8 +56449,15 @@ SELECT ALL - SUM ( ALL + + col2 ) FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 96 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 AS col0, col1 AS col0 FROM tab1 +---- +14 +47 +5 +96 +96 +96 query I rowsort SELECT ALL + - col0 AS col0 FROM tab1 WHERE + 93 <> + col1 @@ -56164,8 +56722,15 @@ SELECT DISTINCT - ( + - COUNT ( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 # Datafusion - Expected - -1828 # Datafusion - Expected - -28 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col0" at position 0 and "\(\- tab0\.col2\) / tab0\.col2 \+ \(\- tab0\.col1\) \* tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 28 AS col0, - col2 / col2 + + - col1 * + + col0 AS col0 FROM tab0 +---- +-1216 +-1828 +-28 +-28 +-28 +-98 query I rowsort label-9278 SELECT + col1 * + 4 * - CAST ( - col1 AS INTEGER ) - + col0 FROM tab2 AS cor0 @@ -56283,8 +56848,15 @@ SELECT ALL + 99 AS col1 FROM tab1, tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( col2 ), col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query II rowsort SELECT + + 42 * - - col2 AS col1, col0 FROM tab2 AS cor0 @@ -56515,8 +57087,11 @@ SELECT + CAST ( - col1 AS INTEGER ) - - 92 AS col0 FROM tab2 AS cor0 WHERE NOT - # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "sum\(cor0\.col1\) / Int64\(50\) \+ \(\- Int64\(12\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, + SUM ( + col1 ) / 50 + - + 12 AS col2 FROM tab2 AS cor0 +---- +-9 +3 query I rowsort label-9334 SELECT ALL - MAX ( DISTINCT col0 ) AS col2 FROM tab0 AS cor0 @@ -57744,8 +58319,15 @@ SELECT DISTINCT col0 + - ( 14 ) FROM tab0 # Datafusion - Expected - 32 # Datafusion - Expected - 5 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 col0, 32 col0 FROM tab1 +---- +14 +32 +32 +32 +47 +5 query I rowsort label-9532 SELECT col1 * - CAST ( + + 30 AS INTEGER ) + + - 73 FROM tab2 @@ -58670,8 +59252,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - -3850 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(55\) \* \(\- Int64\(70\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) AS col0, + 55 * - + 70 AS col0 FROM tab1 +---- +-3850 +-9 query II rowsort SELECT - + col2 * + col1 AS col2, 76 FROM tab0 cor0 @@ -58912,8 +59497,15 @@ NULL # Datafusion - Expected - -40 # Datafusion - Expected - 81 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "CAST\(\(\- tab0\.col0\) AS Int32\) \+ Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, + CAST ( + - col0 AS INTEGER ) + 47 AS col2 FROM tab0 +---- +-40 +-50 +1 +21 +32 +81 query I rowsort label-9724 SELECT ALL 95 * - COUNT ( * ) AS col0 FROM tab1 @@ -59286,8 +59878,15 @@ SELECT DISTINCT + COUNT ( * ) + + + 29 FROM tab0 # Datafusion - Expected - 1 # Datafusion - Expected - -4305 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-41\)\) \* \(\- cor0\.col1\) \* Int64\(5\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 41 * - col1 * + 5 col0, col1 AS col0 FROM tab0 AS cor0 +---- +-16605 +-205 +-4305 +1 +21 +81 query I rowsort label-9788 SELECT DISTINCT + col0 / - col1 AS col1 FROM tab2 AS cor0 @@ -59596,8 +60195,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 6 + - col0 <= col0 * col1 # Datafusion - Expected - 21 # 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 "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 43 AS col2, col1 AS col2 FROM tab0 AS cor0 +---- +-43 +-43 +-43 +1 +21 +81 query I rowsort SELECT DISTINCT 27 + - - 36 AS col0 FROM tab0 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_117.slt b/data/sqlite/random/aggregates/slt_good_117.slt index a22bcdf..8edf525 100644 --- a/data/sqlite/random/aggregates/slt_good_117.slt +++ b/data/sqlite/random/aggregates/slt_good_117.slt @@ -141,8 +141,15 @@ SELECT + - col1 AS col0, + col2 / + - ( - col1 ) FROM tab2 cor0 # Datafusion - Expected - -47 # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col0, - col2 AS col0 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +NULL +NULL +NULL query I rowsort SELECT DISTINCT 52 AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NULL @@ -1095,8 +1102,11 @@ SELECT ALL - + col0 FROM tab1 AS cor0 WHERE col1 * + CAST ( NULL AS INTEGER ) / # Datafusion - Datafusion expected results: # Datafusion - Expected - 160 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(29\)\) \+ Int64\(35\) \+ Int64\(96\) AS col1" at position 0 and "max\(\(\- cor0\.col2\)\) \* Int64\(\-2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( DISTINCT + 29 ) + + ( 35 ) + 96 AS col1, MAX ( - + col2 ) * - 2 AS col1 FROM tab2 AS cor0 +---- +160 +46 query I rowsort SELECT col2 FROM tab1 WHERE ( + - 73 ) IS NOT NULL @@ -1330,8 +1340,11 @@ SELECT ALL - 25 FROM tab1 AS cor0 WHERE NOT + col1 / 53 <> NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col1" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 72 AS col1, CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +-72 +3 query I rowsort label-217 SELECT ALL + + COUNT ( * ) + + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - ( + col0 ) * + col2 IS NULL @@ -1724,8 +1737,15 @@ SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + col2 + + 92 + + col0 - - + col1 # Datafusion - Expected - 36 # Datafusion - Expected - 9801 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* tab0\.col2 AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * col2 col0, 36 col0 FROM tab0 +---- +100 +2209 +36 +36 +36 +9801 query I rowsort SELECT ALL + + col2 * col1 col2 FROM tab0 AS cor0 WHERE NULL BETWEEN - col2 / - col0 * + col0 + + 33 AND - - col1 @@ -1746,8 +1766,11 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col1 * - col1 ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 12934 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* \(\- Int64\(2\)\) \* \(\- sum\(cor0\.col2\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 29 * - + 2 * - SUM ( col2 ) AS col2, COUNT ( * ) AS col2 FROM tab1 cor0 +---- +12934 +3 query I rowsort label-283 SELECT ALL + MIN ( ALL + - col1 ) FROM tab1 AS cor0 @@ -3015,8 +3038,15 @@ SELECT col1, - 40 FROM tab2 # Datafusion - Expected - -2113 # Datafusion - Expected - 99 # Datafusion - Expected - -9705 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "tab0\.col2 \* \(\- tab0\.col2\) \+ \(\- Int64\(\-96\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, + col2 * - col2 + + - ( - 96 ) AS col0 FROM tab0 +---- +-2113 +-4 +-9705 +10 +47 +99 query I rowsort label-487 SELECT ALL + 81 / - + col1 FROM tab0 @@ -3739,8 +3769,15 @@ SELECT + COUNT ( DISTINCT - - col0 ) - 32 FROM tab2 # Datafusion - Expected - 91 # Datafusion - Expected - 10 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ Int64\(61\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 + + + 61 AS col1, col0 AS col1 FROM tab1 AS cor0 +---- +-24 +-30 +10 +51 +85 +91 query I rowsort SELECT DISTINCT 46 * - col1 * + - 75 AS col1 FROM tab1 cor0 @@ -4301,8 +4338,11 @@ SELECT DISTINCT + ( 85 ) AS col1 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT Int64\(\-36\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( DISTINCT - 36 ) AS col1, COUNT ( * ) AS col1 FROM tab1 +---- +1 +3 query I rowsort SELECT DISTINCT - ( + col1 ) * + - 54 * - col0 FROM tab0 @@ -4466,8 +4506,11 @@ SELECT ALL - 98 * + 47 AS col0 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, + 84 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT NULL > NULL ) ) +---- +0 +84 query I rowsort label-733 SELECT SUM ( DISTINCT 78 ) FROM tab2 cor0 @@ -4737,8 +4780,15 @@ SELECT DISTINCT - CAST ( + col1 AS INTEGER ) + col1 FROM tab1 # Datafusion - Expected - 379456 # Datafusion - Expected - -9 # Datafusion - Expected - 336675 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col2 AS col2" at position 0 and "cor0\.col1 \* \(\- cor0\.col1\) \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 + + col2 AS col2, col1 * - + col1 * - col0 AS col2 FROM tab2 cor0 +---- +-28 +-37 +-9 +119646 +336675 +379456 query III rowsort SELECT ALL * FROM tab2 cor0 WHERE ( col0 * 33 * - + 68 ) > - 99 * + 74 @@ -5302,8 +5352,15 @@ SELECT DISTINCT col0 / - col2 + + col0 + - - col0 + + col0 FROM tab2 cor0 # Datafusion - Expected - 0 # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- cor0\.col1\) / Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col0, - col1 / + - 38 AS col0 FROM tab0 AS cor0 +---- +0 +0 +2 +NULL +NULL +NULL query I rowsort label-866 SELECT ALL + - col0 * col1 * - col0 / - + CAST ( NULL AS INTEGER ) + 12 FROM tab1 AS cor0 @@ -5589,8 +5646,15 @@ SELECT - 98 * 39 FROM tab1 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT DISTINCT - 41 + col0 * + ( col2 ) AS col0 FROM tab1 AS cor0 @@ -7062,8 +7126,15 @@ SELECT * FROM tab1 WHERE NOT + ( - 66 ) IS NOT NULL # Datafusion - Expected - 0 # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- tab2\.col0\) / \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - ( + CAST ( NULL AS INTEGER ) ) ) AS col2, - col0 / + - col1 AS col2 FROM tab2 +---- +0 +0 +1 +NULL +NULL +NULL query I rowsort SELECT - col0 * col2 * + 40 * + - col1 * - col0 col2 FROM tab0 cor0 @@ -7106,8 +7177,15 @@ SELECT CAST ( - - MAX ( - col1 ) AS INTEGER ) FROM tab2 AS cor0 # Datafusion - Expected - -4410 # Datafusion - Expected - 22 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "cor0\.col2 \* cor0\.col1 \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 22 AS col2, col2 * col1 * - col1 AS col2 FROM tab0 AS cor0 +---- +-308367 +-4410 +-99 +22 +22 +22 query I rowsort label-1167 SELECT ALL - + SUM ( - 56 ) AS col0 FROM tab1 AS cor0 @@ -7805,8 +7883,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 / - 76 * + col0 / + CAST ( NULL # Datafusion - Expected - 84 # Datafusion - Expected - NULL # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ Int64\(21\) \* CAST\(NULL AS Int32\) \- Int64\(\-47\) \* Int64\(97\) \* cor0\.col1 \+ \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 2 + + 21 * CAST ( NULL AS INTEGER ) - + - 47 * + 97 * + col1 + - col0 AS col2, 84 AS col2 FROM tab2 AS cor0 WHERE - 72 <> 69 +---- +84 +84 +84 +NULL +NULL +NULL query I rowsort SELECT DISTINCT + ( + - 14 ) FROM tab1 AS cor0 @@ -8356,8 +8441,15 @@ SELECT - ( - - 66 ) AS col2 FROM tab2 cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 96 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 96 AS col2, ( + col0 ) AS col2 FROM tab0 AS cor0 +---- +15 +87 +96 +96 +96 +97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 @@ -8440,8 +8532,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT - 34 IS NOT NULL # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 col0, col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-1374 SELECT + + COUNT ( * ) * - - 32 FROM tab0 AS cor0 @@ -8508,8 +8607,11 @@ SELECT * FROM tab0 WHERE + col2 * - - col1 + col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( * ) + + 17 AS col1 FROM tab1 +---- +20 +3 query I rowsort SELECT 81 FROM tab1 WHERE ( NOT 87 IS NOT NULL ) @@ -8522,8 +8624,15 @@ SELECT 81 FROM tab1 WHERE ( NOT 87 IS NOT NULL ) # Datafusion - Expected - -56 # Datafusion - Expected - 58 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 col1, - 56 AS col1 FROM tab2 +---- +-56 +-56 +-56 +23 +40 +58 query I rowsort SELECT + 82 * + col2 FROM tab1 @@ -9763,8 +9872,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) * - COUNT ( * ) AS col0, - 76 AS col0 FROM tab1 +---- +-76 +9 query I rowsort SELECT ALL col0 + - 43 + + col0 AS col1 FROM tab1 AS cor0 @@ -10259,8 +10371,11 @@ SELECT COUNT ( * ) + - 37 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ cor0\.col1 AS col1" at position 0 and "\(\- cor0\.col1\) / \(\- \(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col1 col1, - col1 / - - col2 AS col1 FROM tab1 AS cor0 +---- +0 +NULL query I rowsort label-1682 SELECT ALL MAX ( + col2 ) FROM tab0 AS cor0 WHERE + ( 90 ) / 52 + 45 >= + 73 @@ -10510,8 +10625,15 @@ NULL # Datafusion - Expected - 5 # Datafusion - Expected - 8 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- cor0\.col1 AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 - + col1 col0, 5 AS col0 FROM tab2 AS cor0 +---- +-13 +-5 +5 +5 +5 +8 query I rowsort SELECT - - col2 - - col1 - - 86 FROM tab2 AS cor0 @@ -11297,8 +11419,11 @@ SELECT * FROM tab0 AS cor0 WHERE NOT - 96 <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / sum\(DISTINCT \(\- \(\- cor0\.col1\)\)\) \+ Int64\(\-15\) AS col1" at position 0 and "CAST\(NULL AS Float64\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) / SUM ( DISTINCT - - col1 ) + - 15 AS col1, CAST ( NULL AS FLOAT8 ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +NULL +NULL query I rowsort SELECT DISTINCT - 53 AS col1 FROM tab1, tab0 AS cor0 @@ -11817,8 +11942,15 @@ SELECT - - 88 * ( - 14 ) / + COUNT ( * ) FROM tab2 cor0 # Datafusion - Expected - 5 # Datafusion - Expected - -5915 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* \(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 65 ) * - col0 AS col0, col1 AS col0 FROM tab1 AS cor0 +---- +-3315 +-5525 +-5915 +14 +47 +5 query I rowsort label-1945 SELECT - + SUM ( DISTINCT - ( + col2 ) ) AS col0 FROM tab0 AS cor0 @@ -12027,8 +12159,15 @@ SELECT DISTINCT + COUNT ( * ) * - 54 FROM tab1 # Datafusion - Expected - -5238 # Datafusion - Expected - 65 # Datafusion - Expected - -810 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col1" at position 0 and "tab0\.col0 \* Int64\(\-54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 65 AS col1, + col0 * - 54 AS col1 FROM tab0 +---- +-4698 +-5238 +-810 +65 +65 +65 query I rowsort SELECT ALL col2 FROM tab0 WHERE - col1 * - + 48 - col2 IS NOT NULL @@ -12154,8 +12293,15 @@ SELECT DISTINCT col2 / + col1 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL # Datafusion - Expected - -32 # Datafusion - Expected - 70 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col1" at position 0 and "Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 70 col1, - 32 AS col1 FROM tab1 cor0 +---- +-32 +-32 +-32 +70 +70 +70 query III rowsort label-2004 SELECT * FROM tab2 AS cor0 WHERE NOT - 1 NOT BETWEEN NULL AND - ( - - CAST ( NULL AS INTEGER ) ) @@ -12562,8 +12708,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE ( 91 ) - + + col1 <= NULL # Datafusion - Expected - -9 # Datafusion - Expected - 68 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ Int64\(\-9\) AS col0" at position 0 and "\(\- cor0\.col1\) \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 + - 9 col0, - col1 + col2 AS col0 FROM tab2 AS cor0 +---- +-28 +-37 +-9 +42 +58 +68 query I rowsort SELECT ALL + - col1 + - ( - col2 ) FROM tab1 AS cor0 @@ -13532,8 +13685,15 @@ SELECT - - col1 FROM tab1 AS cor0 WHERE - ( CAST ( CAST ( NULL AS INTEGER ) AS I # Datafusion - Expected - -87 # Datafusion - Expected - 4 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 4 AS col2, - col0 col2 FROM tab0 cor0 +---- +-15 +-87 +-97 +4 +4 +4 query I rowsort label-2223 SELECT 64 * + 43 / - 91 - - CAST ( NULL AS INTEGER ) + - 87 FROM tab1 AS cor0 @@ -14556,8 +14716,15 @@ SELECT ALL + - 49 FROM tab1 AS cor0 WHERE NOT col0 * 35 * + + 55 IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col2 AS col2, col2 FROM tab0 cor0 +---- +10 +10 +47 +47 +99 +99 query III rowsort label-2401 SELECT ALL - 19 AS col1, - col1 * col2, + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 @@ -16192,8 +16359,15 @@ SELECT + - 94 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL <= - + 13 ) # Datafusion - Expected - 73 # Datafusion - Expected - -77 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, 73 AS col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +73 +73 +73 query II rowsort SELECT ALL + 16, - 3 col1 FROM tab1 AS cor0 @@ -17724,8 +17898,15 @@ NULL # Datafusion - Expected - 77 # Datafusion - Expected - 2475 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* cor0\.col0 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 * + col0 AS col2, col1 AS col2 FROM tab2 AS cor0 +---- +1518 +2112 +2475 +51 +67 +77 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE ( + - col0 NOT IN ( - + col0 ) ) @@ -18316,8 +18497,11 @@ SELECT 12 AS col0, - col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 96 col0, 26 AS col0 FROM tab2 AS cor0 +---- +26 +96 query I rowsort SELECT DISTINCT 52 * + - col0 FROM tab2 @@ -18338,8 +18522,15 @@ SELECT DISTINCT 97 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col2, col2 AS col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query II rowsort SELECT ALL + col0 * - + col2, 18 * - 1 AS col1 FROM tab1 @@ -18610,8 +18801,15 @@ SELECT ALL - col2 + - 4 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, col1 col2 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT ALL + col0 * col0 FROM tab2 AS cor0 WHERE - col2 IS NULL @@ -18978,8 +19176,15 @@ SELECT DISTINCT - col2 * - ( + + col0 ) AS col0 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - -99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, col2 col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +10 +47 +99 query I rowsort SELECT - 40 + 76 + + col2 FROM tab1 WHERE NULL IS NULL @@ -20162,8 +20367,11 @@ SELECT ALL 36 / col1 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "min\(Int64\(38\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 14 AS col0, MIN ( 38 ) AS col0 FROM tab0 AS cor0 +---- +14 +38 query I rowsort label-3317 SELECT DISTINCT - - MAX ( - - 68 ) FROM tab0 AS cor0 @@ -20279,8 +20487,15 @@ SELECT * FROM tab1 AS cor0 WHERE + col2 / + col1 IS NOT NULL # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + col2 ) AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT DISTINCT + col1 * + 15 + - col0 AS col2 FROM tab0 AS cor0 @@ -20718,8 +20933,15 @@ SELECT - 2 AS col2, - 39 FROM tab2 cor0 # Datafusion - Expected - 3807 # Datafusion - Expected - -14 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col2" at position 0 and "cor0\.col1 \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 14 col2, col1 * + + col2 AS col2 FROM tab0 cor0 +---- +-14 +-14 +-14 +210 +3807 +99 query II rowsort SELECT DISTINCT + col1 col0, col2 col2 FROM tab1 AS cor0 @@ -20985,8 +21207,15 @@ SELECT + MIN ( DISTINCT 56 ) AS col2 FROM tab0 # Datafusion - Expected - 5 # Datafusion - Expected - -91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col0, + col1 AS col0 FROM tab1 +---- +-51 +-85 +-91 +14 +47 +5 query III rowsort SELECT * FROM tab1 WHERE NOT + col0 <> - + col1 + col1 @@ -22037,8 +22266,15 @@ SELECT ALL + 91 col0 FROM tab2 # Datafusion - Expected - 73 # Datafusion - Expected - -3505 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ Int64\(\-39\) \* tab1\.col0 \+ \(\- tab1\.col1\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 + - 39 * + + col0 + - col1 AS col1, + 73 AS col1 FROM tab1 +---- +-1952 +-3235 +-3505 +73 +73 +73 query I rowsort SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NULL <> + col2 @@ -23184,8 +23420,9 @@ SELECT ALL col1 - - col2 AS col1, + col0 AS col2 FROM tab0 87 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* tab0\.col1 AS col2" at position 0 and "Int64\(\-13\) \+ Int64\(87\) \+ tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * col1 AS col2, - 13 + 87 + + col0 col2 FROM tab0 WHERE NOT + col1 / - col1 NOT BETWEEN - 25 AND NULL +---- query I rowsort SELECT ALL + ( + + col0 ) * + col1 AS col2 FROM tab1 @@ -23487,13 +23724,18 @@ SELECT - + MIN ( ALL + 30 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 26 AS col1, COUNT ( * ) / COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +26 +3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 19811f49e692f39ce371b956304d2fbb -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(83\) \* cor0\.col2 \+ \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col1 AS col0, + 83 * col2 + - col0 AS col0, + col1 FROM tab1 AS cor0 +---- +9 values hashing to cbcc37c466fcc23c5d7e72509badb3cf query II rowsort SELECT DISTINCT col1 * - 57, col2 AS col2 FROM tab2 AS cor0 WHERE NOT col2 - 31 + - col2 BETWEEN NULL AND - - ( - 80 ) * - - col1 / - + col0 / - - ( ( + + col2 ) ) @@ -24171,8 +24413,11 @@ SELECT + 41, + col1 / + - 60 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -227 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "sum\(\(\- cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col1, SUM ( + - col0 ) AS col1 FROM tab1 AS cor0 +---- +-227 +3 query III rowsort label-3990 SELECT * FROM tab2 cor0 WHERE - CAST ( - 86 AS INTEGER ) IS NULL @@ -24279,8 +24524,15 @@ SELECT COUNT ( * ) * - + 88 FROM tab0 AS cor0 # Datafusion - Expected - 57 # Datafusion - Expected - -58 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(58\) AS Int32\)\) AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + CAST ( + + 58 AS INTEGER ) ) AS col1, 57 AS col1 FROM tab1 AS cor0 +---- +-58 +-58 +-58 +57 +57 +57 query I rowsort label-4010 SELECT + + col2 / - col1 * - col2 + ( - 18 ) FROM tab2 AS cor0 @@ -26293,8 +26545,15 @@ SELECT DISTINCT + col1, + col1 * - col0 AS col0 FROM tab2 WHERE NOT + - col1 * + # Datafusion - Expected - 66 # Datafusion - Expected - 77 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, 66 AS col0 FROM tab2 +---- +51 +66 +66 +66 +67 +77 query I rowsort SELECT ALL + col1 * - - 46 FROM tab0 AS cor0 @@ -26317,8 +26576,11 @@ SELECT + 34 / - COUNT ( * ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 96 AS col0, 21 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) +---- +21 +96 query I rowsort label-4349 SELECT ALL + MIN ( ALL + ( - col1 ) ) + + + 96 FROM tab1 @@ -26381,8 +26643,9 @@ SELECT DISTINCT - + 37 + - + SUM ( ALL 25 ) FROM tab0 AS cor0 -112 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) / \(\- \(\- Int64\(29\)\)\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 / - - ( + 29 ) AS col0, 29 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> - col1 +---- query I rowsort SELECT + + col0 FROM tab1 AS cor0 WHERE NOT - 9 / + + col0 BETWEEN NULL AND - col1 @@ -27234,8 +27497,9 @@ SELECT DISTINCT - col0 + - + col0 col0 FROM tab2 WHERE NOT + col2 / + ( + col2 ) -92 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \* Int64\(10\) AS col0" at position 0 and "\(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * 10 col0, - col0 AS col0 FROM tab1 WHERE NOT NULL IS NULL +---- query I rowsort label-4495 SELECT DISTINCT - MIN ( DISTINCT col1 ) AS col2 FROM tab0 @@ -27459,8 +27723,15 @@ SELECT DISTINCT MIN ( 58 ) FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - -43 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 43 AS col2, + col1 AS col2 FROM tab1 +---- +-43 +-43 +-43 +14 +47 +5 query III rowsort SELECT ALL * FROM tab0 WHERE + 73 >= + 0 * col2 @@ -28543,8 +28814,15 @@ NULL # Datafusion - Expected - 77 # Datafusion - Expected - 28 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) \+ tab2\.col2 \+ tab2\.col2 / \(\- tab2\.col1\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 30 + col2 + col2 / + - col1 AS col2, col1 AS col2 FROM tab2 +---- +-7 +10 +28 +51 +67 +77 query I rowsort SELECT ALL - - col2 + + - col1 AS col0 FROM tab2 AS cor0 WHERE NULL = col2 + - col2 @@ -28569,8 +28847,11 @@ SELECT 36 - - col0 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 29 AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 +---- +29 +9 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NULL IN ( col0, - col2, col0 ) @@ -29153,8 +29434,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MAX ( DISTINCT + col1 ) AS col2, COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 +---- +-9 +77 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT + + col2 BETWEEN - + col2 AND col2 - + col1 @@ -29190,8 +29474,11 @@ SELECT DISTINCT col1 + + col2 col2 FROM tab1 WHERE NOT NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(5\)\)\) AS col1" at position 0 and "Int64\(\-91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MIN ( ALL + 5 ) col1, - 91 AS col1 FROM tab0 AS cor0 +---- +-5 +-91 query I rowsort SELECT DISTINCT + col0 FROM tab1 cor0 WHERE NULL IS NULL @@ -29243,8 +29530,15 @@ SELECT + MAX ( DISTINCT 43 ) AS col1 FROM tab1 # Datafusion - Expected - -16904033 # Datafusion - Expected - 77 # Datafusion - Expected - -7884723 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "\(\- \(\- tab2\.col1\)\) \+ tab2\.col2 \* tab2\.col2 \* \(\- tab2\.col0\) \* tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, - ( - col1 ) + col2 * col2 * - col0 * col1 AS col0 FROM tab2 +---- +-1240983 +-16904033 +-7884723 +51 +67 +77 query I rowsort SELECT DISTINCT - 0 * - col0 AS col1 FROM tab0 WHERE NOT NULL > + col2 * + - col0 * + 83 + + - col1 * + col0 * col0 * + col1 @@ -30629,8 +30923,11 @@ SELECT ALL - - ( - col0 ) / + col0 col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-77\)\) AS col0" at position 0 and "Int64\(\-20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 77 AS col0, - 20 AS col0 FROM tab0 AS cor0 +---- +-20 +77 query I rowsort label-5069 SELECT + CAST ( + col2 AS INTEGER ) / + + col2 FROM tab1 @@ -31404,8 +31701,15 @@ SELECT + COUNT ( ALL + col1 ) AS col1 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, + col1 col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT + 85 + + - 9 + + - col2 FROM tab2 @@ -31496,8 +31800,15 @@ SELECT ALL MIN ( - ( - ( - 70 ) ) ) AS col2 FROM tab2, tab2 AS cor0 # Datafusion - Expected - 100 # Datafusion - Expected - -97 # Datafusion - Expected - 189 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col0" at position 0 and "Int64\(90\) \+ tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, 90 + col2 AS col0 FROM tab0 +---- +-15 +-87 +-97 +100 +137 +189 query I rowsort SELECT ( - 8 ) * + 60 + + col1 FROM tab1 @@ -31968,8 +32279,9 @@ SELECT ALL * FROM tab2, tab0 cor0 WHERE NOT NULL >= NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col2 AS col1, 84 - + 73 / - col0 AS col2, col2 AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL +---- query I rowsort SELECT ALL - - col2 * ( - col0 ) * - + col0 - - col2 * + + 68 + - 19 AS col0 FROM tab2 AS cor0 @@ -32168,8 +32480,15 @@ SELECT ALL - 65 + + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Expected - 75 # Datafusion - Expected - 92 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 + - - col0 AS col1, col0 AS col1 FROM tab2 AS cor0 +---- +128 +150 +46 +64 +75 +92 query I rowsort label-5321 SELECT DISTINCT CAST ( AVG ( + - col2 ) AS INTEGER ) AS col2 FROM tab0 @@ -32216,8 +32535,15 @@ NULL # Datafusion - Expected - -904590 # Datafusion - Expected - -871 # Datafusion - Expected - -1474875 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* \(\- tab2\.col1\) AS col2" at position 0 and "Int64\(\-69\) \* \(\- tab2\.col0\) \* Int64\(3\) \* Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 * - + col1 AS col2, - 69 * - + col0 * + 3 * - 95 AS col2 FROM tab2 +---- +-1001 +-1258560 +-1474875 +-663 +-871 +-904590 query I rowsort label-5327 SELECT DISTINCT + 48 * + - 6 - + + CAST ( NULL AS INTEGER ) * 81 / COUNT ( col0 ) FROM tab0 @@ -33564,8 +33890,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + + + col1 + 67 + + 2 IS NULL # Datafusion - Expected - 10 # Datafusion - Expected - -81 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, col2 AS col1 FROM tab0 +---- +-1 +-21 +-81 +10 +47 +99 query II rowsort label-5549 SELECT COUNT ( * ) AS col1, - SUM ( DISTINCT col2 ) + + - 39 FROM tab1 @@ -33633,8 +33966,15 @@ SELECT * FROM tab0 WHERE NULL IN ( - + col2 * + + CAST ( + + col0 AS INTEGER ) / # Datafusion - Expected - 78 # Datafusion - Expected - 48 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- \(\- cor0\.col1\)\) \+ Int64\(20\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 + - - col1 + + 20 AS col2, + 78 AS col2 FROM tab1 AS cor0 +---- +114 +30 +48 +78 +78 +78 query I rowsort label-5561 SELECT + - ( ( + COUNT ( * ) ) ) AS col2 FROM tab0 AS cor0 @@ -34819,8 +35159,11 @@ SELECT DISTINCT 83 AS col2, 46 AS col0 FROM tab2 AS cor0 # 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 "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 26 AS col2, 1 AS col2 FROM tab1 AS cor0 +---- +1 +26 query I rowsort label-5759 SELECT ALL ( + 36 ) + + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col1 < NULL @@ -35346,8 +35689,10 @@ SELECT - col1 + 64 * - 75 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 0b29e8158f14c650698fbfefc4921c0e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\)" at position 0 and "\(\- tab2\.col0\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - col0, col2 AS col2, - col0 FROM tab2 +---- +9 values hashing to ff2dc62375806ed29e27cb7af8baa636 query I rowsort SELECT - 80 + 7 FROM tab2 cor0 @@ -37047,8 +37392,15 @@ NULL # Datafusion - Expected - -4350 # Datafusion - Expected - -77 # Datafusion - Expected - -2560 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "\(\- tab2\.col2\) \* tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, - col2 * + ( + col0 ) AS col1 FROM tab2 +---- +-1058 +-2560 +-4350 +-51 +-67 +-77 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT - 13 - + + col2 * + col1 IS NOT NULL @@ -37208,8 +37560,15 @@ SELECT DISTINCT + 52 col2 FROM tab1 cor0 # Datafusion - Expected - -705 # Datafusion - Expected - -99 # Datafusion - Expected - -9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col2 AS Int32\)\) AS col2" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int32\) \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - CAST ( + col2 AS INTEGER ) AS col2, + CAST ( - col2 AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-705 +-870 +-9603 +-99 query I rowsort label-6148 SELECT COUNT ( DISTINCT + col0 ) * MAX ( + - col0 ) FROM tab2 @@ -37242,8 +37601,10 @@ SELECT ALL ( - 19 ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 3af47f72d84b35db034e7082f15652f5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* \(\- \(\- tab1\.col0\)\) AS col0" at position 0 and "\(\- tab1\.col0\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 2 * - - col0 col0, - col0, - + col0 AS col0 FROM tab1 +---- +9 values hashing to 444234b8615ac07064e0319cb813ed24 query II rowsort label-6153 SELECT - CAST ( NULL AS INTEGER ), - col0 + - col0 AS col0 FROM tab2 @@ -37611,8 +37972,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ), + COUNT ( * ) FROM tab1 AS cor0 +---- +3 +3 query I rowsort label-6218 SELECT ALL + - 48 / ( + - COUNT ( * ) ) + 0 + - 11 AS col0 FROM tab2 AS cor0 @@ -37816,8 +38180,15 @@ SELECT DISTINCT + 31 + + - col2 + + - col2 AS col0 FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col1 AS Int32\)" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( + col1 AS INTEGER ), col1 col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-6251 SELECT + - MAX ( ALL + - CAST ( + - col2 AS INTEGER ) ) AS col2 FROM tab1 AS cor0 @@ -38029,8 +38400,11 @@ SELECT DISTINCT + + MIN ( + - 29 ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 * - # Datafusion - Datafusion expected results: # Datafusion - Expected - 172 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ \(\- sum\(\(\- cor0\.col2\)\)\) AS col0" at position 0 and "Int64\(5\) \+ \(\- Int64\(\-15\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 16 + - SUM ( - col2 ) AS col0, 5 + - - 15 AS col0 FROM tab0 AS cor0 +---- +172 +20 query I rowsort label-6285 SELECT DISTINCT + 58 * - + ( - + SUM ( ALL + 83 ) ) col2 FROM tab2 cor0 @@ -38437,8 +38811,15 @@ SELECT ALL col0, + col0 * - ( - - col1 ) + col1 AS col2 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "tab0\.col1 / CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, col1 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 +---- +15 +87 +97 +NULL +NULL +NULL query III rowsort SELECT ALL * FROM tab1 WHERE NOT NULL > + col1 * + 85 + - + 9 @@ -38473,8 +38854,15 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - 60 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \+ tab0\.col2 AS col0" at position 0 and "CAST\(NULL AS Float64\) \* \(\- tab0\.col1\) \* \(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT 13 + col2 AS col0, CAST ( NULL AS FLOAT8 ) * - col1 * - + col1 col0 FROM tab0 +---- +112 +23 +60 +NULL +NULL +NULL query III rowsort SELECT * FROM tab2 AS cor0 WHERE - col0 / col1 * + 9 IS NOT NULL @@ -39107,8 +39495,15 @@ SELECT * FROM tab2 WHERE NOT ( + 12 * - - col0 / + - 56 ) IS NULL # Datafusion - Expected - -64 # Datafusion - Expected - 15 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "\(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 15 AS col0, - col0 col0 FROM tab2 +---- +-46 +-64 +-75 +15 +15 +15 query I rowsort SELECT + ( + 47 ) * col0 AS col1 FROM tab1 AS cor0 @@ -39150,8 +39545,15 @@ SELECT DISTINCT - - 83 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - -41 # Datafusion - Expected - 64 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ tab1\.col2 AS col1" at position 0 and "\(\- CAST\(Int64\(41\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 + + + col2 AS col1, - CAST ( + 41 AS INTEGER ) AS col1 FROM tab1 +---- +-41 +-41 +-41 +110 +115 +64 query I rowsort SELECT - col0 + - col2 + col0 FROM tab2 @@ -39493,8 +39895,15 @@ SELECT ALL + - col2 FROM tab0 cor0 WHERE NOT ( + 49 ) IN ( 57, + col1 ) # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(cor0\.col0 AS Int32\)\)\)" at position 0 and "\(\- CAST\(\(\- cor0\.col0\) AS Int32\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - CAST ( col0 AS INTEGER ), - CAST ( + - col0 AS INTEGER ) FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query II rowsort label-6526 SELECT - + 51 / - - col2, + col1 FROM tab1 AS cor0 @@ -39592,8 +40001,15 @@ SELECT DISTINCT COUNT ( * ) * - - ( + + 25 ) * - - 60 col2 FROM tab2 # Datafusion - Expected - -96 # Datafusion - Expected - 159 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ tab1\.col2 \+ Int64\(35\) / tab1\.col0 AS col0" at position 0 and "\(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 + col2 + + 35 / + col0 AS col0, - col2 AS col0 FROM tab1 +---- +-59 +-68 +-96 +144 +147 +159 query I rowsort SELECT DISTINCT + col1 * + - col2 AS col0 FROM tab2 @@ -40067,8 +40483,10 @@ SELECT + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL >= + CAST ( NULL AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 072000ef05741b572d5ec03bd064aee3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + ( - ( CAST ( NULL AS INTEGER ) ) ) AS col1, 30 AS col2, - col1 AS col1 FROM tab0 cor0 +---- +9 values hashing to 39e5b8f0a9586105acacb5bbcea8ab0e query II rowsort SELECT DISTINCT + col1 AS col0, - col0 FROM tab0 AS cor0 @@ -40186,8 +40604,15 @@ SELECT ALL - 21 * - + COUNT ( * ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 81 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 AS col1, col2 AS col1 FROM tab1 +---- +59 +68 +81 +81 +81 +96 query I rowsort label-6638 SELECT + 95 * - - COUNT ( * ) + + MIN ( + col2 ) FROM tab1 @@ -40276,8 +40701,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT - 61 + + col1 IS NOT NULL # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, col2 AS col0 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT ALL ( - - col1 ) AS col2 FROM tab1 @@ -40539,8 +40971,15 @@ SELECT SUM ( ( - 68 ) ) AS col2 FROM tab2 # Datafusion - Expected - 1550 # Datafusion - Expected - 4620 # Datafusion - Expected - 208 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \* Int64\(\-84\) AS col1" at position 0 and "Int64\(17\) \* tab0\.col0 \+ \(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 55 * + - 84 AS col1, 17 * + col0 + - col2 AS col1 FROM tab0 +---- +1469 +1550 +208 +4620 +4620 +4620 query I rowsort label-6692 SELECT + + 67 FROM tab2 WHERE NOT NULL <= + CAST ( NULL AS FLOAT8 ) + col1 + + - CAST ( + 3 AS INTEGER ) * col1 * + 66 @@ -41377,8 +41816,15 @@ SELECT * FROM tab1 WHERE - - col1 NOT BETWEEN - col1 AND col1 # Datafusion - Expected - 34 # Datafusion - Expected - 92 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ \(\- tab0\.col2\) \+ tab0\.col1 AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 + - col2 + + col1 AS col2, 34 AS col2 FROM tab0 +---- +-40 +34 +34 +34 +69 +92 query I rowsort SELECT - 42 AS col2 FROM tab1, tab1 AS cor0 @@ -42059,8 +42505,15 @@ SELECT col0, - 82 FROM tab1 WHERE NULL IS NOT NULL # Datafusion - Expected - -40 # Datafusion - Expected - -3 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) AS col2" at position 0 and "CAST\(\(\- tab2\.col2\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 AS col2, CAST ( - + col2 AS INTEGER ) AS col2 FROM tab2 +---- +-23 +-3 +-3 +-3 +-40 +-58 query I rowsort label-6949 SELECT 96 * COUNT ( * ) FROM tab2 @@ -43531,8 +43984,15 @@ SELECT + 68 + + COUNT ( * ) AS col1 FROM tab2 # Datafusion - Expected - 134 # Datafusion - Expected - 1592 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \+ Int64\(\-12\) \+ \(\- tab0\.col1\) \* Int64\(\-23\) \+ \(\- tab0\.col0\) \* tab0\.col0 AS col2" at position 0 and "Int64\(37\) \+ \(\- tab0\.col1\) \+ tab0\.col0 \+ tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 34 + + - 12 + - col1 * - 23 + - col0 * + col0 AS col2, 37 + - col1 + col0 + + + col1 AS col2 FROM tab0 +---- +-7132 +-9432 +124 +134 +1592 +52 query I rowsort label-7191 SELECT ALL - COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( NOT ( NOT - ( + 85 ) IS NULL ) ) @@ -43563,8 +44023,15 @@ SELECT ( + 29 ) + - col2 + - + col2 + ( - 0 ) * + col1 AS col0 FROM tab1 # Datafusion - Expected - 171 # Datafusion - Expected - NULL # Datafusion - Expected - 177 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(86\) \+ tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) col1, 86 + + col0 AS col1 FROM tab1 +---- +137 +171 +177 +NULL +NULL +NULL query II rowsort SELECT - + col0 AS col2, col0 - + 34 FROM tab2 AS cor0 @@ -43852,8 +44319,11 @@ SELECT DISTINCT CAST ( + - col1 AS INTEGER ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 227 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(tab1\.col0\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + SUM ( col0 ) AS col2, + ( + COUNT ( * ) ) col2 FROM tab1 +---- +227 +3 query I rowsort SELECT 69 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 @@ -43883,8 +44353,9 @@ SELECT + 48 AS col1 FROM tab0 cor0 WHERE NOT col1 > - col2 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL +---- query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 0 + col2 IS NOT NULL @@ -45232,8 +45703,15 @@ SELECT - + 9 AS col0 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL # Datafusion - Expected - 17 # Datafusion - Expected - 75 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, 17 AS col1 FROM tab2 +---- +17 +17 +17 +46 +64 +75 query I rowsort label-7470 SELECT SUM ( + + col1 ) AS col0 FROM tab0 WHERE col0 + + CAST ( + - 38 AS FLOAT8 ) BETWEEN NULL AND ( - - col0 ) @@ -45353,8 +45831,15 @@ SELECT ALL + - 70 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL # Datafusion - Expected - 3 # Datafusion - Expected - -81 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, 3 col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +3 +3 +3 query III rowsort SELECT * FROM tab2 cor0 WHERE NOT 33 IS NOT NULL @@ -45456,8 +45941,15 @@ SELECT DISTINCT 2 + - col2 AS col2 FROM tab2 # Datafusion - Expected - -87 # 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 "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 AS col2, ( + - col0 ) AS col2 FROM tab0 +---- +-15 +-87 +-97 +17 +17 +17 query I rowsort SELECT ALL 87 + - - col1 col2 FROM tab1 @@ -45564,8 +46056,15 @@ SELECT DISTINCT - COUNT ( * ) / - 20 FROM tab0 # Datafusion - Expected - 0 # Datafusion - Expected - -77 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 / Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 col1, + col2 / + + 73 AS col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +0 +0 +0 query II rowsort SELECT DISTINCT - + col2 AS col1, + col0 FROM tab1 AS cor0 @@ -46048,8 +46547,15 @@ SELECT ALL - - col0 * - - col2 AS col2 FROM tab2 WHERE NOT NULL < ( - 46 ) # Datafusion - Expected - 5952 # Datafusion - Expected - 17 # Datafusion - Expected - 6975 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "\(\- tab2\.col0\) \* \(\- Int64\(93\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 17 AS col0, - col0 * - + 93 AS col0 FROM tab2 +---- +17 +17 +17 +4278 +5952 +6975 query I rowsort label-7599 SELECT 96 * + COUNT ( * ) FROM tab1 @@ -46105,8 +46611,15 @@ NULL # Datafusion - Expected - 5742 # Datafusion - Expected - 77 # Datafusion - Expected - 3960 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(99\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + col1 ) AS col2, + 99 * col2 AS col2 FROM tab2 AS cor0 +---- +2277 +3960 +51 +5742 +67 +77 query III rowsort SELECT ALL * FROM tab1 cor0 WHERE ( - 43 ) IS NOT NULL @@ -46476,8 +46989,15 @@ SELECT ALL + 95 * col2 AS col0 FROM tab1 # Datafusion - Expected - 87 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \* \(\- tab0\.col1\) \+ \(\- tab0\.col2\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL CAST ( NULL AS FLOAT8 ) * - col1 + - col2 AS col2, col0 AS col2 FROM tab0 +---- +15 +87 +97 +NULL +NULL +NULL query III rowsort SELECT ALL * FROM tab0 WHERE NOT + - 56 IS NULL @@ -47887,8 +48407,11 @@ SELECT DISTINCT * FROM tab0 WHERE NULL IS NULL OR ( NULL ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 85 col0, 4 AS col0 FROM tab2 AS cor0 +---- +-85 +4 query I rowsort SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL @@ -48277,8 +48800,15 @@ SELECT ALL MIN ( DISTINCT + col1 ) / - 62 AS col1 FROM tab2 AS cor0 WHERE NULL I # Datafusion - Expected - 47 # Datafusion - Expected - -26 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 26 AS col2, + col1 AS col2 FROM tab1 cor0 +---- +-26 +-26 +-26 +14 +47 +5 query II rowsort SELECT ALL col0 AS col1, + ( 22 ) FROM tab0 AS cor0 @@ -48331,8 +48861,15 @@ SELECT - 76 * + col1 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 0 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) / \(\- cor0\.col1\) AS col0" at position 0 and "\(\- \(\- cor0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 5 / - col1 AS col0, + ( - - col1 ) AS col0 FROM tab2 AS cor0 +---- +0 +0 +0 +51 +67 +77 query I rowsort SELECT DISTINCT - 59 + - ( - 82 ) FROM tab2 AS cor0 @@ -51226,8 +51763,11 @@ SELECT + 91 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 38 AS col0, 36 AS col0 FROM tab2 AS cor0 +---- +-38 +36 query I rowsort label-8454 SELECT - MAX ( - - col0 ) AS col2 FROM tab0 AS cor0 @@ -51936,8 +52476,15 @@ SELECT + CAST ( col0 AS INTEGER ) + - col0 AS col0 FROM tab1 # Datafusion - Expected - -4620 # Datafusion - Expected - -4390 # Datafusion - Expected - -4020 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* \(\- tab2\.col1\) \+ Int64\(84\) \* Int64\(\-6\) AS col0" at position 0 and "Int64\(\-60\) \* tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * - col1 + 84 * - 6 AS col0, - 60 * + col1 col0 FROM tab2 +---- +-1677 +-3060 +-3584 +-4020 +-4390 +-4620 query III rowsort label-8569 SELECT * FROM tab2 WHERE NULL IN ( + 9, CAST ( 29 AS INTEGER ) * - 68 + + - col0 ) @@ -53048,8 +53595,15 @@ SELECT * FROM tab0 cor0 WHERE NOT ( ( 3 ) = ( - col2 ) ) # Datafusion - Expected - -67 # Datafusion - Expected - -77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\)" at position 0 and "\(\- tab2\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1, - col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL +---- +-51 +-51 +-67 +-67 +-77 +-77 query I rowsort label-8755 SELECT DISTINCT + 56 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND CAST ( NULL AS INTEGER ) @@ -53364,8 +53918,11 @@ SELECT + ( + 95 ) + - 23 + + - COUNT ( * ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7004 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(91\) \* Int64\(\-77\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* count\(\(\- tab1\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) + 91 * - 77 AS col2, + CAST ( NULL AS INTEGER ) * + COUNT ( ALL - col2 ) AS col2 FROM tab1 +---- +-7004 +NULL query I rowsort label-8810 SELECT ALL - col0 / - 38 + 75 + - col2 AS col2 FROM tab2 @@ -54222,8 +54779,11 @@ SELECT ALL - col2 FROM tab0 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\(DISTINCT \(\- tab1\.col1\)\)\) 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 II valuesort SELECT - COUNT ( DISTINCT - col1 ) AS col1, COUNT ( - + 49 ) AS col1 FROM tab1 +---- +-3 +3 query I rowsort label-8949 SELECT DISTINCT - 7 * - - MIN ( CAST ( - - col2 AS INTEGER ) ) + - 27 AS col0 FROM tab1 AS cor0 @@ -54531,8 +55091,15 @@ SELECT ALL + + 56 - + ( - + 18 ) FROM tab0 WHERE NOT + + col2 IS NULL # Datafusion - Expected - -12372 # Datafusion - Expected - 81 # Datafusion - Expected - -58252 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "tab0\.col2 \* Int64\(20\) \* Int64\(\-62\) \+ Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( col1 ) AS col0, + col2 * + 20 * - 62 + 28 AS col0 FROM tab0 +---- +-122732 +-12372 +-58252 +1 +21 +81 query II rowsort label-8994 SELECT CAST ( - col2 AS INTEGER ) * 95 + - 31 * - CAST ( NULL AS INTEGER ), 97 + - col0 col1 FROM tab2 @@ -54784,8 +55351,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2145 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* sum\(DISTINCT \(\- CAST\(\(\- tab2\.col1\) AS Int32\)\)\) AS col1" at position 0 and "Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 * SUM ( DISTINCT + - CAST ( - col1 AS INTEGER ) ) AS col1, 95 AS col1 FROM tab2 +---- +2145 +95 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -54828,8 +55398,15 @@ SELECT DISTINCT col2 * 19 FROM tab0 AS cor0 # Datafusion - Expected - 22 # Datafusion - Expected - 5698 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \* cor0\.col1 AS col0" at position 0 and "cor0\.col2 / \(\- \(\- cor0\.col0\)\) \+ \(\- Int64\(\-22\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 74 * col1 AS col0, + col2 / - - col0 + - - 22 AS col0 FROM tab2 AS cor0 +---- +22 +22 +22 +3774 +4958 +5698 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 - - col0 IS NOT NULL @@ -55067,8 +55644,9 @@ SELECT + + col2 * - 25 FROM tab0 cor0 -250 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "cor0\.col0 \* Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 AS col1, + ( col0 ) * + 96 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 * - ( + + col0 ) AND - 86 +---- query II rowsort SELECT DISTINCT + col0, - col1 col2 FROM tab0 AS cor0 @@ -55913,8 +56491,12 @@ SELECT ALL + 50 AS col1, 24 AS col0 FROM tab0 # Datafusion - Expected - 3 # Datafusion - Expected - 60 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "min\(CAST\(NULL AS Float64\)\) \* Int64\(10\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort SELECT ALL COUNT ( * ) AS col0, 60, MIN ( CAST ( NULL AS FLOAT8 ) ) * 10 AS col0 FROM tab0 +---- +3 +60 +NULL query II rowsort SELECT col2, 99 FROM tab1 @@ -56070,8 +56652,11 @@ SELECT - COUNT ( * ) AS col0, - 60 + - ( 21 ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 309 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- CAST\(\(\- sum\(tab0\.col1\)\) AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, - CAST ( - SUM ( col1 ) AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab0 +---- +3 +309 query III rowsort SELECT ALL * FROM tab2 WHERE NOT + 90 IN ( + ( - col1 ) ) @@ -56085,8 +56670,15 @@ SELECT ALL * FROM tab2 WHERE NOT + 90 IN ( + ( - col1 ) ) # Datafusion - Expected - 91 # Datafusion - Expected - -96 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, col0 AS col1 FROM tab1 +---- +-59 +-68 +-96 +51 +85 +91 query I rowsort SELECT DISTINCT + 90 - + col2 AS col1 FROM tab1 cor0 @@ -56311,8 +56903,15 @@ SELECT ALL col2 FROM tab2 WHERE NOT NULL IS NULL # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( col2 ), col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT - col1 + - col1 * - 83 * - - col1 IS NOT NULL @@ -56450,8 +57049,11 @@ SELECT DISTINCT * FROM tab1 cor0 WHERE 5 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(cor0\.col1\) AS col2" at position 0 and "Int64\(\-90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + SUM ( ALL + + col1 ) AS col2, - 90 AS col2 FROM tab1 cor0 +---- +-90 +66 query I rowsort SELECT + 33 * + col0 FROM tab2 @@ -57431,8 +58033,15 @@ SELECT - 46 * ( - + COUNT ( - + col1 ) ) FROM tab1 cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -96 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 col0, - col1 AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +-59 +-68 +-96 query II rowsort SELECT DISTINCT - ( - - col0 ) AS col1, - col0 * col1 FROM tab0 @@ -59112,8 +59721,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE ( + 26 ) IS NULL # Datafusion - Expected - 67 # Datafusion - Expected - 58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, + 67 col1 FROM tab2 AS cor0 +---- +23 +40 +58 +67 +67 +67 query I rowsort SELECT - 29 AS col2 FROM tab2 cor0 @@ -59732,8 +60348,11 @@ SELECT DISTINCT - - col1 AS col2, 90 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 210 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- max\(Int64\(\-71\)\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- max\(DISTINCT cor0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) * - MAX ( - 71 ) - COUNT ( * ) AS col2, - MAX ( DISTINCT col2 ) col2 FROM tab2 cor0 +---- +-58 +210 query I rowsort label-9852 SELECT ALL MIN ( ALL + + col1 ) FROM tab0 AS cor0 @@ -60195,8 +60814,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( + - col2 ) col2, - COUNT ( * ) AS col2 FROM tab0 +---- +-3 +-99 query I rowsort SELECT + 51 * - ( + col2 ) AS col2 FROM tab2 @@ -60294,8 +60916,11 @@ SELECT ALL * FROM tab1 AS cor0 WHERE + 96 * - - col1 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +3 +3 query II rowsort SELECT DISTINCT col0 AS col0, 58 * 58 * + col2 + + 4 AS col1 FROM tab2 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_118.slt b/data/sqlite/random/aggregates/slt_good_118.slt index 3ffb554..78b5f28 100644 --- a/data/sqlite/random/aggregates/slt_good_118.slt +++ b/data/sqlite/random/aggregates/slt_good_118.slt @@ -1223,8 +1223,15 @@ SELECT col2 * - col0 / + col1 * - 18 + col0 + - 16 * col0 AS col0 FROM tab0 WHER # Datafusion - Expected - 43 # Datafusion - Expected - 96 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, + 43 AS col1 FROM tab1 +---- +43 +43 +43 +59 +68 +96 query I rowsort SELECT + ( ( - col1 ) ) col2 FROM tab1 @@ -1261,8 +1268,15 @@ SELECT col2 * + + 17 * 70 FROM tab1 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 88 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 88 AS col0, col1 AS col0 FROM tab2 AS cor0 +---- +51 +67 +77 +88 +88 +88 query I rowsort label-210 SELECT ALL MAX ( col1 ) col2 FROM tab1 AS cor0 @@ -1720,8 +1734,11 @@ SELECT DISTINCT - - col1 + + col0 col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 2 AS col1, 36 AS col1 FROM tab2 AS cor0 +---- +2 +36 query III rowsort label-288 SELECT * FROM tab0 WHERE + CAST ( NULL AS FLOAT8 ) < NULL @@ -1857,8 +1874,15 @@ SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - -68 # Datafusion - Expected - 77 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col1\) \+ cor0\.col1 / Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 col2, - ( + + col1 ) + + + col1 / - 37 AS col2 FROM tab2 AS cor0 +---- +-52 +-68 +-79 +51 +67 +77 query I rowsort SELECT ALL - ( - col0 ) col0 FROM tab2 cor0 @@ -1911,8 +1935,11 @@ SELECT + 96 * + col1 * - - 8 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(86\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + 86 ) AS col0, + COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +-86 +3 query III rowsort SELECT * FROM tab1 WHERE NOT + - col2 - - - col0 IS NOT NULL @@ -2477,8 +2504,10 @@ SELECT 97 / - SUM ( + + col1 ) col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 059b947f8097423d517e025ecbf3bd10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(74\) AS col2" at position 0 and "\(\- tab2\.col1\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 38 * 74 AS col2, + CAST ( NULL AS INTEGER ), - col1 AS col2 FROM tab2 +---- +9 values hashing to 4e6a517dfc57c2575b85fee0cc7e0c14 query I rowsort SELECT - - col2 * 38 col2 FROM tab2 AS cor0 @@ -2789,8 +2818,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, 18 AS col0 FROM tab2 AS cor0 WHERE + col1 BETWEEN - col1 / 58 / col0 * + - col2 AND - + ( - col1 ) +---- +-3 +18 query I rowsort SELECT DISTINCT - col1 - + col1 * + col1 AS col0 FROM tab1 AS cor0 @@ -3082,8 +3114,15 @@ NULL # Datafusion - Expected - -8 # Datafusion - Expected - 91 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "Int64\(\-8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 AS col2, - 8 AS col2 FROM tab1 AS cor0 +---- +-8 +-8 +-8 +51 +85 +91 query I rowsort SELECT + - 9 * - col0 FROM tab2 AS cor0 @@ -3527,8 +3566,11 @@ SELECT - col2 * col0 + + 66 + - col2 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 63 AS col1, COUNT ( * ) AS col1 FROM tab0 cor0 +---- +-63 +3 query II rowsort SELECT - 35, + col1 AS col0 FROM tab2 AS cor0 @@ -3713,8 +3755,15 @@ SELECT DISTINCT + col1 + + - col1 AS col0 FROM tab0 # Datafusion - Expected - 4277 # Datafusion - Expected - 1 # Datafusion - Expected - 714 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 / \(\- \(\- tab1\.col0\)\) AS col1" at position 0 and "tab1\.col0 \* tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 / - - col0 AS col1, col0 * + col1 col1 FROM tab1 +---- +1 +1 +1 +425 +4277 +714 query I rowsort SELECT - - 51 * - - 15 * 75 AS col2 FROM tab0 WHERE NULL BETWEEN - col1 AND - 56 @@ -4251,8 +4300,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 56 IS NOT NULL # Datafusion - Expected - 91 # Datafusion - Expected - 99 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \+ \(\- Int64\(\-48\)\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 + - - 48 AS col0, 91 AS col0 FROM tab2 +---- +115 +125 +91 +91 +91 +99 query I rowsort SELECT - + 52 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 @@ -4347,8 +4403,10 @@ SELECT ALL col2 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 8de6dc1b0fbd4c925b0f15ffcbfbf540 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) / \(\- tab1\.col2\) \+ tab1\.col1 AS col0" at position 0 and "Int64\(5\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - col0 / - col2 + + col1 AS col0, + 70, + 5 AS col0 FROM tab1 +---- +9 values hashing to 2215382938f7e270c0b4e0887c483808 query I rowsort SELECT DISTINCT + col2 * ( + col0 ) * col0 + col1 * + 43 AS col1 FROM tab1 WHERE NOT 37 * + ( + col2 ) <> NULL @@ -4536,8 +4594,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) + SUM ( - 64 ) col2, MAX ( col2 ) AS col2 FROM tab2 AS cor0 +---- +-195 +58 query I rowsort SELECT DISTINCT 93 * - + col2 + col2 * + col2 FROM tab2 AS cor0 @@ -4854,8 +4915,15 @@ SELECT DISTINCT - COUNT ( * ) AS col0, + COUNT ( * ) FROM tab0 AS cor0 # Datafusion - Expected - 5 # Datafusion - Expected - 91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, + col1 AS col2 FROM tab1 AS cor0 +---- +14 +47 +5 +51 +85 +91 query I rowsort label-811 SELECT ALL - COUNT ( * ) * + COUNT ( + col1 ) AS col2 FROM tab2 AS cor0 @@ -5878,8 +5946,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( CAST ( - 71 AS INTEGER ) ) IS NOT NUL # Datafusion - Expected - -437 # Datafusion - Expected - NULL # Datafusion - Expected - -760 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* tab2\.col2 AS col0" at position 0 and "tab2\.col2 \* Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) * col2 col0, + col2 * - 19 AS col0 FROM tab2 +---- +-1102 +-437 +-760 +NULL +NULL +NULL query II rowsort label-991 SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) * + + COUNT ( DISTINCT col1 ) FROM tab2 @@ -6237,8 +6312,11 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 36 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 42 AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +-42 +3 query I rowsort SELECT ALL + - 54 AS col0 FROM tab2 cor0 @@ -6877,8 +6955,15 @@ SELECT - 37 + - + col0 AS col1 FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 FROM tab0 cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT ALL - 13 * col0 col1 FROM tab0 AS cor0 @@ -7120,8 +7205,15 @@ SELECT DISTINCT + - col2, col1 * - + col0 col2 FROM tab0 AS cor0 WHERE NOT + col # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT DISTINCT - col0 * + 50 FROM tab2 @@ -7363,8 +7455,15 @@ SELECT ALL + col2 - + + 58 + col2 AS col1 FROM tab2 # Datafusion - Expected - 40 # Datafusion - Expected - 147 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \+ Int64\(89\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 + + 89 col0, col2 AS col0 FROM tab2 +---- +112 +129 +147 +23 +40 +58 query I rowsort SELECT 63 * - - col2 * + 16 FROM tab1 WHERE col2 + - 42 IN ( + ( 28 ) ) @@ -8763,8 +8862,11 @@ SELECT col2 * + - ( - 36 ) + 92 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + 16 AS col2 FROM tab2 +---- +16 +3 query II rowsort label-1476 SELECT ALL ( COUNT ( * ) ) AS col1, 98 FROM tab0 @@ -9100,8 +9202,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, + 88 AS col0 FROM tab0 AS cor0 +---- +-3 +88 query II rowsort SELECT col1, col1 + + 49 FROM tab2 AS cor0 @@ -9357,8 +9462,15 @@ SELECT - col2 * 22 * - - col0 AS col1 FROM tab2 # Datafusion - Expected - -7533 # Datafusion - Expected - NULL # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* \(\- CAST\(NULL AS Int32\)\) \* cor0\.col0 AS col2" at position 0 and "cor0\.col1 \* Int64\(\-93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 50 * - CAST ( NULL AS INTEGER ) * col0 col2, col1 * - 93 AS col2 FROM tab0 AS cor0 +---- +-1953 +-7533 +-93 +NULL +NULL +NULL query I rowsort label-1570 SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL @@ -9818,8 +9930,15 @@ SELECT DISTINCT - + ( + 90 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - 1 # Datafusion - Expected - 75 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "\(\- tab2\.col0\) / \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col2, - col0 / - col2 AS col2 FROM tab2 +---- +1 +1 +2 +46 +64 +75 query II rowsort SELECT col2 + + col0 * 72 AS col2, - col1 AS col0 FROM tab2 cor0 @@ -10283,8 +10402,10 @@ SELECT DISTINCT - 39 + - + col2 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 91069c3d8d223d542257dbb5e454207c -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col1" at position 0 and "\(\- cor0\.col1\) / Int64\(\-76\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 37 col1, + col0 * 55 - + 18, - col1 / - 76 col1 FROM tab1 AS cor0 +---- +9 values hashing to e060f543214f4c88f87f4572d2805b69 query III rowsort SELECT * FROM tab0 AS cor0 WHERE ( NOT - + ( - 3 ) + + + 55 + - - col2 / + - ( + + col2 ) NOT BETWEEN NULL AND + 54 * - 96 ) @@ -10704,8 +10825,15 @@ SELECT - COUNT ( * ), + ( + COUNT ( * ) ) AS col0 FROM tab0 # Datafusion - Expected - -88 # Datafusion - Expected - 44 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "CAST\(Int64\(\-88\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 44 AS col2, + CAST ( - 88 AS INTEGER ) col2 FROM tab2 AS cor0 +---- +-88 +-88 +-88 +44 +44 +44 query I rowsort SELECT ALL 82 * + col1 + 99 col1 FROM tab2 AS cor0 @@ -10757,8 +10885,11 @@ SELECT DISTINCT + - 81 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 +---- +0 +NULL query I rowsort label-1795 SELECT ALL + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col1 >= NULL @@ -11119,8 +11250,15 @@ SELECT + ( 93 ) AS col0, - col0 FROM tab1 # Datafusion - Expected - 8265 # Datafusion - Expected - 42 # Datafusion - Expected - 9215 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(42\)\)\) AS col2" at position 0 and "Int64\(95\) \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( + + 42 ) AS col2, 95 * col0 AS col2 FROM tab0 AS cor0 +---- +1425 +42 +42 +42 +8265 +9215 query I rowsort SELECT - 13 * + col0 * + col1 FROM tab0 AS cor0 @@ -11202,8 +11340,11 @@ SELECT DISTINCT - 37 AS col2, col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2346 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* Int64\(\-46\) 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 II valuesort SELECT + 51 * - 46 AS col1, MAX ( + col2 ) AS col1 FROM tab0 +---- +-2346 +99 query I rowsort label-1866 SELECT DISTINCT ( + + 54 ) + + - COUNT ( * ) AS col0 FROM tab1 @@ -11337,8 +11478,15 @@ SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE + ( - - col1 ) * - col2 IS # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col0, col1 AS col0 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-1888 SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE NOT col0 / + 93 IS NULL @@ -12135,8 +12283,15 @@ SELECT ALL 20 - + + col1 * - col2 AS col2 FROM tab2 # Datafusion - Expected - 50 # Datafusion - Expected - 91 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "\(\- \(\- Int64\(50\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 col1, ( - - ( 50 ) ) AS col1 FROM tab1 +---- +50 +50 +50 +51 +85 +91 query I rowsort label-2028 SELECT - MAX ( + + col2 ) col2 FROM tab0 @@ -12174,8 +12329,9 @@ SELECT + SUM ( DISTINCT + ( - + col0 ) ) FROM tab0 -199 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col1 AS col1, + col2 AS col1 FROM tab1 AS cor0 WHERE - col2 / + col0 IS NULL +---- query I rowsort SELECT DISTINCT - 50 * col0 + col1 * col2 FROM tab1 AS cor0 @@ -12802,8 +12958,15 @@ SELECT ALL ( - + col1 ) FROM tab1 cor0 # 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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 79 AS col1, col2 / - col1 AS col1 FROM tab0 +---- +-99 +0 +0 +79 +79 +79 query I rowsort SELECT DISTINCT + col2 FROM tab2 WHERE NOT ( NOT ( NULL ) IS NOT NULL ) @@ -13040,8 +13203,11 @@ SELECT 15 + + COUNT ( * ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - -3216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(71\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(48\) \* Int64\(\-67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - + 71 ) / COUNT ( * ) AS col1, 48 * - 67 col1 FROM tab0 +---- +-23 +-3216 query I rowsort SELECT ALL - col1 + col1 * + col0 + + col2 + + col2 FROM tab2 AS cor0 @@ -13165,8 +13331,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 68 col2, COUNT ( * ) + - 24 AS col2 FROM tab0 AS cor0 +---- +-21 +-68 query I rowsort SELECT + col0 + - - col1 + 94 FROM tab1 AS cor0 @@ -14302,8 +14471,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( ALL + col1 ) AS col1, - COUNT ( * ) AS col1 FROM tab1 +---- +-3 +3 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= col1 + + 86 @@ -15156,8 +15328,10 @@ SELECT 82 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 42ddb5f495e10c555584bdda95360320 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) \* cor0\.col2 \+ \(\- cor0\.col1\) \* cor0\.col2 AS col2" at position 0 and "Int64\(67\) \- cor0\.col2 \+ CAST\(NULL AS Int32\) \+ Int64\(17\) \* cor0\.col2 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 13 * col2 + + - col1 * + col2 AS col2, - 68, + 67 - col2 + + CAST ( NULL AS INTEGER ) + + 17 * col2 AS col2 FROM tab2 AS cor0 +---- +9 values hashing to 2f0e08dc451ec3f89ebd0408120bf58f query I rowsort SELECT + 64 + - + col2 AS col1 FROM tab1 AS cor0 @@ -15589,8 +15763,15 @@ SELECT col1 + col1 * - 34 AS col1 FROM tab0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col2, + col2 FROM tab1 WHERE NOT col2 IS NULL +---- +59 +59 +68 +68 +96 +96 query II rowsort SELECT col2 + - + 94, - 87 AS col1 FROM tab2 @@ -16622,8 +16803,12 @@ SELECT ALL 73 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - NULL # Datafusion - Expected - 3 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 and "Int64\(27\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - CAST ( NULL AS INTEGER ) / - 24 * 51, COUNT ( * ) AS col1, + 27 AS col1 FROM tab0 +---- +27 +3 +NULL query I rowsort label-2771 SELECT - SUM ( ALL 73 ) AS col1 FROM tab0 @@ -18188,8 +18373,15 @@ SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND NULL # Datafusion - Expected - -10 # Datafusion - Expected - 81 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col1 AS col0, - col2 AS col0 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +1 +21 +81 query I rowsort SELECT col0 + + + 23 AS col2 FROM tab1 cor0 @@ -18492,8 +18684,15 @@ SELECT + + 72 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 31 # Datafusion - Expected - 3196 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- cor0\.col1\) AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col2 * + ( - col1 ) AS col2, + 31 AS col2 FROM tab1 AS cor0 +---- +1344 +295 +31 +31 +31 +3196 query I rowsort SELECT + ( - + col0 ) AS col2 FROM tab2 AS cor0 @@ -18943,8 +19142,11 @@ SELECT 54 + - ( + - ( + col1 ) ) * 78 + + ( col0 ) + - + col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, - 44 AS col0 FROM tab1 +---- +-44 +3 query I rowsort SELECT DISTINCT + + 68 * col2 FROM tab0 AS cor0 @@ -20202,8 +20404,15 @@ SELECT - col0 + + - col2 + - 92 + 57 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 2209 # Datafusion - Expected - 59 # Datafusion - Expected - 658 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ cor0\.col1 \+ cor0\.col2 AS col1" at position 0 and "cor0\.col1 \* Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 + col1 + + col2 AS col1, col1 * 47 AS col1 FROM tab1 AS cor0 +---- +-21 +2209 +235 +24 +59 +658 query I rowsort label-3372 SELECT DISTINCT + 50 * - COUNT ( * ) col1 FROM tab0 AS cor0 @@ -20892,8 +21101,9 @@ SELECT DISTINCT ( - 43 ) * + + 75 col2 FROM tab1 -3225 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL +---- query IIIIII rowsort SELECT DISTINCT * FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 ) @@ -21080,8 +21290,15 @@ SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT - col0 * - - 98 NOT BETWEEN N # Datafusion - Expected - -55 # Datafusion - Expected - 4224 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(44\) AS col2" at position 0 and "Int64\(\-55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * + 44 AS col2, - 55 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL +---- +-55 +-55 +-55 +2596 +2992 +4224 query I rowsort SELECT - col0 * + - 33 AS col2 FROM tab0 AS cor0 @@ -21110,8 +21327,11 @@ SELECT DISTINCT 31 / - col1 - - + col1 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\)" at position 0 and "Int64\(18\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 18, 18 FROM tab1 AS cor0 +---- +18 +18 query I rowsort SELECT + col1 * - 51 FROM tab2 AS cor0 @@ -21800,8 +22020,15 @@ SELECT + MIN ( col1 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - -58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, col2 AS col0 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +23 +40 +58 query I rowsort SELECT + col0 + - col0 FROM tab0 AS cor0 WHERE NOT NULL = NULL @@ -24493,8 +24720,15 @@ NULL # Datafusion - Expected - 70 # Datafusion - Expected - -77 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col1 AS col2, 70 AS col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +70 +70 +70 query I rowsort SELECT DISTINCT + + col0 * + 15 FROM tab1 AS cor0 @@ -24971,8 +25205,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * 98 + - + 15 * + 38 AS col2, - ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 +---- +-276 +-3 query I rowsort SELECT col0 + + - col0 FROM tab2 @@ -25943,8 +26180,15 @@ SELECT DISTINCT - ( + col2 ) + - col1 FROM tab2 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - -37 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 37 col2, col1 AS col2 FROM tab2 +---- +-37 +-37 +-37 +51 +67 +77 query III rowsort SELECT DISTINCT * FROM tab0 WHERE - col0 IS NULL @@ -26265,8 +26509,15 @@ SELECT DISTINCT + 50 * + col2 FROM tab1 # Datafusion - Expected - -40 # Datafusion - Expected - 58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, - col2 AS col1 FROM tab2 +---- +-23 +-40 +-58 +23 +40 +58 query I rowsort SELECT ALL - col0 * 46 * + - col0 AS col0 FROM tab0 AS cor0 @@ -27556,8 +27807,15 @@ SELECT + 30 * - col2 AS col0, 41 * + col0 + col1 / - col0 FROM tab2 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - -81 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 AS col0, - col0 AS col0 FROM tab0 AS cor0 +---- +-1 +-15 +-21 +-81 +-87 +-97 query I rowsort SELECT - ( ( + 20 ) ) + col0 AS col1 FROM tab2 @@ -28517,8 +28775,15 @@ SELECT ALL + ( + ( col1 ) ) FROM tab1 # Datafusion - Expected - 67 # Datafusion - Expected - -315 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) \* Int64\(15\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 * + + 15 AS col1, + 67 AS col1 FROM tab0 +---- +-1215 +-15 +-315 +67 +67 +67 query III rowsort SELECT * FROM tab1 WHERE NOT NULL <= + ( col0 ) @@ -28779,8 +29044,15 @@ NULL # Datafusion - Expected - 5929 # Datafusion - Expected - 58 # Datafusion - Expected - 4489 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "tab2\.col1 \* tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col1, + col1 * col1 AS col1 FROM tab2 +---- +23 +2601 +40 +4489 +58 +5929 query I rowsort SELECT - - 79 FROM tab2 WHERE NOT - col1 + + + ( + + 35 ) + col1 + - col0 IS NULL @@ -28795,8 +29067,9 @@ SELECT * FROM tab2 WHERE NOT - - col1 + ( 11 ) IS NULL 9 values hashing to 75c998aa53ac83218cbf2feb962d0a49 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "cor0\.col1 \* cor0\.col1 \+ cor0\.col2 \- \(\- \(\- cor0\.col1\)\) \+ \(\- \(\- cor0\.col2\)\) \* cor0\.col0 \* Int64\(30\) \+ \(\- \(\- \(\- cor0\.col0\)\)\) \- Int64\(35\) \+ \(\- cor0\.col2\) \+ Int64\(21\) \+ Int64\(52\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col1 AS col1, col1 * col1 + + col2 - - + ( - col1 ) + - - col2 * col0 * + 30 + - + ( + + ( - - col0 ) ) - 35 + + - col2 + 21 + + ( 52 ) * + col0 col1 FROM tab1 AS cor0 WHERE col1 IS NULL +---- query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT + col1 <> + 54 @@ -30743,8 +31016,15 @@ SELECT 65 + - + col0 + + 98 FROM tab1 # Datafusion - Expected - -67 # Datafusion - Expected - -3234 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \* Int64\(42\) AS col2" at position 0 and "\(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 * 42 col2, - col1 col2 FROM tab2 +---- +-2142 +-2814 +-3234 +-51 +-67 +-77 query I rowsort label-5138 SELECT ALL SUM ( + - col0 ) FROM tab1 AS cor0 @@ -31014,8 +31294,15 @@ SELECT - col2 * + - ( + col2 ) - + 19 + - col1 AS col2 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - -81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 +---- +-1 +-21 +-81 +NULL +NULL +NULL query I rowsort SELECT DISTINCT + 9 AS col2 FROM tab2 @@ -31309,8 +31596,15 @@ SELECT - COUNT ( + col2 ) AS col2 FROM tab2 # Datafusion - Expected - -204638 # Datafusion - Expected - -49 # Datafusion - Expected - -2510 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col1" at position 0 and "\(\- tab1\.col1\) \* Int64\(77\) \- tab1\.col1 \* \(\- tab1\.col1\) \* \(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 49 col1, - col1 * 77 - + col1 * - col1 * + - col0 AS col1 FROM tab1 +---- +-11074 +-204638 +-2510 +-49 +-49 +-49 query II rowsort label-5225 SELECT - - ( + ( COUNT ( + 90 ) ) ), - 22 AS col1 FROM tab2 AS cor0 @@ -31636,8 +31930,15 @@ SELECT 29 * col2 - + col0 * col2 FROM tab2 AS cor0 WHERE NOT - col1 * + ( col1 ) # Datafusion - Expected - 4 # Datafusion - Expected - -58 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, 4 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +4 +4 +4 query III rowsort SELECT * FROM tab0 cor0 WHERE NOT col1 IS NULL @@ -31722,8 +32023,15 @@ SELECT ALL * FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND 97 # Datafusion - Expected - 2209 # Datafusion - Expected - 96 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 0 and "tab1\.col1 \* tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 AS col0, col1 * + col1 AS col0 FROM tab1 +---- +196 +2209 +25 +96 +96 +96 query I rowsort label-5293 SELECT MAX ( DISTINCT + + col1 ) FROM tab2 @@ -31870,8 +32178,15 @@ SELECT DISTINCT + + col1 col1, + 34 FROM tab1 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col2, col2 AS col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query III rowsort SELECT * FROM tab1 cor0 WHERE col2 IS NULL @@ -31884,15 +32199,26 @@ SELECT * FROM tab1 cor0 WHERE col2 IS NULL # Datafusion - Expected - 67 # Datafusion - Expected - 10 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 10 AS col2, col1 AS col2 FROM tab2 AS cor0 +---- +10 +10 +10 +51 +67 +77 # Datafusion - Datafusion expected results: # 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\(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\. +query III valuesort SELECT DISTINCT - COUNT ( * ) * - - COUNT ( ALL + col0 ) + MIN ( ALL - 57 ) AS col0, - COUNT ( * ) AS col0, - 61 FROM tab2 AS cor0 WHERE NOT ( NULL ) < - 47 +---- +-61 +0 +NULL query I rowsort SELECT ALL 78 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 @@ -32133,8 +32459,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - col0 * - col0 * col2 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2, + col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query II rowsort label-5357 SELECT DISTINCT 18 * + + COUNT ( * ) + + 8 * CAST ( NULL AS INTEGER ), COUNT ( * ) AS col2 FROM tab1 AS cor0 @@ -32294,8 +32627,15 @@ SELECT ALL * FROM tab1 WHERE - ( + col1 ) > - ( + col0 ) + col2 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col1, col1 col1 FROM tab1 cor0 +---- +14 +14 +47 +47 +5 +5 query II rowsort SELECT DISTINCT 62, + col0 AS col0 FROM tab1 AS cor0 @@ -33341,8 +33681,15 @@ SELECT ALL - col2 - - 18 - 55 FROM tab0 AS cor0 WHERE NOT ( - + col1 ) NOT BETWE # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col2, col2 AS col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT + ( 37 ) AS col1 FROM tab0 AS cor0 @@ -33354,8 +33701,11 @@ SELECT + ( 37 ) AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "max\(CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 81 AS col2, + MAX ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0 +---- +81 +NULL query II rowsort SELECT ALL - + 90, ( + + 13 ) + - col1 AS col0 FROM tab2 AS cor0 @@ -34365,8 +34715,11 @@ SELECT col1 FROM tab0 cor0 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-8\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MAX ( - 8 ) AS col0, + COUNT ( * ) col0 FROM tab1 AS cor0 +---- +-8 +3 query I rowsort label-5728 SELECT - ( - - COUNT ( ALL col2 ) ) FROM tab0 AS cor0 @@ -34395,8 +34748,15 @@ SELECT ALL + SUM ( DISTINCT - col2 ) AS col2, MIN ( - col1 ) AS col1 FROM tab1 A # Datafusion - Expected - -65 # Datafusion - Expected - -97 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(\-65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - ( col0 ) AS col1, - 65 AS col1 FROM tab0 cor0 WHERE NOT - 89 IS NULL +---- +-15 +-65 +-65 +-65 +-87 +-97 query I rowsort SELECT - ( - 85 ) AS col1 FROM tab0 @@ -34541,8 +34901,10 @@ SELECT * FROM tab0 WHERE 56 = NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 8792d4e2a93556f63b3a3d452e9ce53c -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) \* \(\- tab0\.col2\) AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - col1 * - col2 AS col2, - 53 AS col0, - + col0 col2 FROM tab0 +---- +9 values hashing to 53ccb4caa6133a06394900c7a163f21b query I rowsort label-5756 SELECT + 43 / - MIN ( - col1 ) FROM tab0 @@ -36007,8 +36369,10 @@ SELECT col1, 11 * + + col2 + + + CAST ( NULL AS INTEGER ) col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 65a4c453ab275d84e223ca1bcdfca3b9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 62 AS col2, col1 AS col2, + col1 * - col2 * - 23 * - col0 FROM tab2 +---- +9 values hashing to b371363c75638b68194b11bdf396fd0b query II rowsort label-6001 SELECT 37, COUNT ( * ) * - COUNT ( DISTINCT + 83 ) AS col2 FROM tab1 @@ -36422,8 +36786,15 @@ NULL # Datafusion - Expected - 21 # Datafusion - Expected - 228 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \* \(\- Int64\(12\)\) AS col2" at position 0 and "cor0\.col1 \+ cor0\.col2 / cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 19 * - + 12 col2, col1 + + col2 / col0 AS col2 FROM tab0 AS cor0 +---- +2 +21 +228 +228 +228 +84 query I rowsort SELECT + ( + - col0 ) FROM tab0 AS cor0 @@ -36839,8 +37210,11 @@ SELECT DISTINCT + - col1 / + - col0 AS col0 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 97 + CAST ( NULL AS INTEGER ) AS col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +3 +NULL query I rowsort SELECT DISTINCT - col2 col1 FROM tab1 AS cor0 WHERE NOT - col0 / + col0 <= + col2 @@ -36875,8 +37249,11 @@ SELECT ALL col2 AS col1, + col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- tab0\.col0\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( ALL - col0 ) AS col2, + COUNT ( * ) + + COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab0 +---- +-3 +4 query III rowsort SELECT * FROM tab2 WHERE NOT + - 32 * col1 * col1 - - 14 / 45 - + col1 + + + col2 >= - + col0 * col2 @@ -37809,8 +38186,15 @@ SELECT - 94 col2, ( + col0 ) AS col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND N # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col1, ( col1 ) FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT ALL + col0 col0 FROM tab0 WHERE NOT - ( - - 64 ) BETWEEN NULL AND + 53 @@ -39057,8 +39441,15 @@ SELECT ( + 54 ) FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - -92 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 AS col2, + col0 AS col2 FROM tab2 +---- +-92 +-92 +-92 +46 +64 +75 query I rowsort label-6517 SELECT - 58 - + MIN ( DISTINCT CAST ( + col0 AS INTEGER ) ) FROM tab2 @@ -40065,8 +40456,15 @@ SELECT ALL 1 * + ( - COUNT ( + + col0 ) ) FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT + + 46 - - - 9 * + col0 FROM tab0 AS cor0 @@ -40173,8 +40571,15 @@ SELECT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - 28 # Datafusion - Expected - 5929 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \* CAST\(\(\- tab2\.col1\) AS Int32\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 * CAST ( - col1 AS INTEGER ) col0, 28 col0 FROM tab2 +---- +2601 +28 +28 +28 +4489 +5929 query I rowsort label-6696 SELECT DISTINCT - ( + CAST ( + col0 AS INTEGER ) ) * + - 14 * col0 + + col2 * + col1 col0 FROM tab2 @@ -40239,8 +40644,15 @@ SELECT ALL + 38 col2 FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, + col0 AS col1 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-6707 SELECT DISTINCT + MIN ( col0 ) FROM tab0 @@ -40412,7 +40824,7 @@ SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to b619fa74d4f76197f2a714a769b16dd0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 1 and "\(\- cor0\.col2\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Schema error: Schema contains qualified field name cor0\.col2 and unqualified field name col2 which would be ambiguous SELECT col2, 7 AS col2, - col2 AS col2 FROM tab2 AS cor0 query I rowsort label-6737 @@ -41090,8 +41502,15 @@ NULL # Datafusion - Expected - 17 # Datafusion - Expected - 32 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ cor0\.col2 AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 + + + col2 AS col1, 17 AS col1 FROM tab0 AS cor0 +---- +-77 +17 +17 +17 +2 +32 query I rowsort label-6845 SELECT - SUM ( ALL - col0 ) FROM tab0 cor0 @@ -41872,8 +42291,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 51 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) / Int64\(31\) \* \(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 / 31 * + - col0 AS col0, col1 col0 FROM tab1 AS cor0 +---- +14 +170 +182 +47 +5 +51 query I rowsort label-6977 SELECT - SUM ( ALL + col2 ) FROM tab2 WHERE NOT + col0 * col2 NOT IN ( - col2 * 71 * + ( col2 ) ) @@ -42505,8 +42931,15 @@ SELECT DISTINCT + 42 col0 FROM tab1 # Datafusion - Expected - 39 # Datafusion - Expected - 70 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 0 and "CAST\(Int64\(39\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 70 AS col0, CAST ( 39 AS INTEGER ) AS col0 FROM tab2 +---- +39 +39 +39 +70 +70 +70 query I rowsort label-7083 SELECT - 71 + + + COUNT ( ALL - - col2 ) FROM tab2 AS cor0 @@ -42657,8 +43090,15 @@ SELECT DISTINCT ( - COUNT ( * ) ) col2 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - -99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 AS col1, col2 AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +10 +47 +99 query I rowsort label-7108 SELECT - COUNT ( DISTINCT - 31 ) AS col2 FROM tab2 AS cor0 @@ -42760,8 +43200,15 @@ NULL # Datafusion - Expected - -64 # Datafusion - Expected - -58 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- cor0\.col2\)\)\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - ( - + col2 ) AS col1, ( - col0 ) AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-46 +-58 +-64 +-75 query I rowsort SELECT 82 + - col1 + - col2 * - col2 AS col0 FROM tab0 @@ -45015,8 +45462,15 @@ SELECT col1 / - ( 74 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - -75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "\(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col0, - col0 col0 FROM tab2 +---- +-46 +-46 +-64 +-64 +-75 +-75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 @@ -45025,8 +45479,15 @@ SELECT ALL - col0 AS col0, - col0 col0 FROM tab2 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col0, col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 @@ -45035,8 +45496,15 @@ SELECT ALL col0 AS col0, col0 FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - 97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, col1 AS col2 FROM tab0 +---- +1 +15 +21 +81 +87 +97 query I rowsort SELECT DISTINCT - 16 * - + ( - 52 ) AS col2 FROM tab2 AS cor0 @@ -46161,8 +46629,11 @@ SELECT DISTINCT - col0 + - + ( col2 ) AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-17\)\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( - 17 ) AS col1, 73 AS col1 FROM tab1 AS cor0 +---- +-17 +73 query I rowsort SELECT - 95 col1 FROM tab2 @@ -46183,8 +46654,15 @@ SELECT + - COUNT ( + + col0 ) FROM tab0 WHERE - - col1 + col1 - col0 IS NOT NULL # Datafusion - Expected - -91 # Datafusion - Expected - 5 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "\(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, - col0 AS col0 FROM tab1 +---- +-51 +-85 +-91 +14 +47 +5 query I rowsort SELECT ALL ( - ( - col2 ) ) FROM tab1 @@ -46307,8 +46785,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) - + - 34 * - + MIN ( + col0 ) AS col0, 31 AS col0 FROM tab1 AS cor0 +---- +-1731 +31 query I rowsort SELECT - - col2 AS col1 FROM tab0 AS cor0 WHERE + 40 + - col2 IS NOT NULL @@ -46558,8 +47039,15 @@ SELECT DISTINCT col1 - col2 + - col0 AS col0 FROM tab0 # Datafusion - Expected - -7225 # Datafusion - Expected - 6547 # Datafusion - Expected - -8281 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) \* \(\- tab1\.col0\) \- Int64\(96\) AS col2" at position 0 and "tab1\.col0 \* \(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 73 * - col0 - + 96 col2, col0 * - col0 AS col2 FROM tab1 +---- +-2601 +-7225 +-8281 +3627 +6109 +6547 query I rowsort label-7750 SELECT - - MAX ( - - col1 ) * + 3 AS col2 FROM tab0 AS cor0 @@ -47919,8 +48407,15 @@ SELECT - SUM ( - - ( - ( col1 ) ) ) FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 40 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 40 AS col0, + col2 AS col0 FROM tab0 AS cor0 +---- +10 +40 +40 +40 +47 +99 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 * + ( - + col0 ) ) BETWEEN NULL AND NULL @@ -47951,8 +48446,15 @@ SELECT DISTINCT col0 + - 21 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -77 # Datafusion - Expected - 58 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, - col1 AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +23 +40 +58 query I rowsort label-7984 SELECT + COUNT ( + col0 ) FROM tab2 AS cor0 @@ -48114,8 +48616,15 @@ SELECT col0 + + + col1 col0 FROM tab2 # Datafusion - Expected - 88 # Datafusion - Expected - -945 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \* Int64\(18\) \* \(\- Int64\(\-5\)\) \+ tab0\.col0 \* tab0\.col1 AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 24 * 18 * - - 5 + + col0 * ( + col1 ) AS col2, 88 AS col2 FROM tab0 +---- +-2063 +-333 +-945 +88 +88 +88 query III rowsort SELECT ALL * FROM tab1 WHERE NOT NULL <= + 58 + + ( col1 ) @@ -49016,8 +49525,15 @@ SELECT + ( 3 ) / COUNT ( * ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 5 # Datafusion - Expected - 273 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* Int64\(3\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 * 3 col0, col1 AS col0 FROM tab1 +---- +14 +153 +255 +273 +47 +5 query I rowsort label-8157 SELECT - col0 * + + col2 / - + col2 AS col2 FROM tab2 @@ -50134,8 +50650,15 @@ SELECT ALL col1 / - + col1 FROM tab2 # Datafusion - Expected - 4243 # Datafusion - Expected - 96 # Datafusion - Expected - 680 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col1\) \* \(\- cor0\.col0\) \+ \(\- Int64\(34\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, - col1 * - col0 + - + ( + 34 ) AS col0 FROM tab1 cor0 +---- +391 +4243 +59 +68 +680 +96 query II rowsort SELECT - col1 AS col1, - col2 FROM tab0 AS cor0 @@ -51187,8 +51710,15 @@ SELECT - col0 * - - 79 AS col1 FROM tab0 # Datafusion - Expected - 475 # Datafusion - Expected - 91 # Datafusion - Expected - 4465 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "Int64\(95\) \* tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, + 95 * + + col1 AS col2 FROM tab1 +---- +1330 +4465 +475 +51 +85 +91 query I rowsort SELECT DISTINCT + col2 + 2 * - col1 AS col2 FROM tab2 @@ -52087,8 +52617,11 @@ SELECT DISTINCT col0 * + 92 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 AS col1, COUNT ( * ) AS col1 FROM tab1 +---- +3 +54 query I rowsort label-8672 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + ( + col0 ) AS col2 FROM tab1 @@ -52238,8 +52771,15 @@ SELECT ALL 49 * + col0 FROM tab1 # Datafusion - Expected - -40 # Datafusion - Expected - -30 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 30 AS col1, + ( - col2 ) AS col1 FROM tab2 +---- +-23 +-30 +-30 +-30 +-40 +-58 query II rowsort label-8697 SELECT DISTINCT + col0 col2, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 @@ -52969,8 +53509,15 @@ SELECT MAX ( ALL + col0 ) FROM tab0 # Datafusion - Expected - 24 # Datafusion - Expected - 770 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* cor0\.col2 AS col1" at position 0 and "Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 * + col2 col1, + 24 AS col1 FROM tab0 cor0 +---- +24 +24 +24 +3619 +7623 +770 query II rowsort label-8821 SELECT ALL - 75 AS col1, ( - col2 ) * - 70 + - 28 + CAST ( 56 AS INTEGER ) FROM tab1 AS cor0 @@ -53073,8 +53620,11 @@ SELECT ALL 83 + - 82 + col1 FROM tab2 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) * + CAST ( + + COUNT ( * ) AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab1 +---- +3 +9 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT NULL > + col0 @@ -53133,8 +53683,15 @@ SELECT ALL - SUM ( DISTINCT - col1 ) AS col1 FROM tab2 # Datafusion - Expected - -40 # Datafusion - Expected - -37 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \- Int64\(58\) AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 21 - + 58 col1, - col2 AS col1 FROM tab2 +---- +-23 +-37 +-37 +-37 +-40 +-58 query III rowsort SELECT * FROM tab0 WHERE - - 89 + 59 * - ( + col2 ) IS NOT NULL @@ -53280,8 +53837,15 @@ SELECT DISTINCT - col1 AS col0, col1 + + 19 AS col2 FROM tab2 # Datafusion - Expected - -7 # Datafusion - Expected - -77 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "Int64\(\-7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, - 7 AS col1 FROM tab2 +---- +-51 +-67 +-7 +-7 +-7 +-77 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NULL <> - 73 * - 1 @@ -53987,8 +54551,11 @@ SELECT DISTINCT * FROM tab1 WHERE ( NOT ( 46 * col0 + - + CAST ( NULL AS FLOAT8 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) col1, COUNT ( * ) AS col1 FROM tab0 +---- +-3 +3 query I rowsort SELECT ALL 11 * + - col1 col1 FROM tab0 @@ -54052,8 +54619,15 @@ SELECT col0 + 69 FROM tab0 WHERE - + 19 * col2 * - - col1 BETWEEN + col0 AND - c # Datafusion - Expected - 20 # Datafusion - Expected - -15 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 15 col2, 20 AS col2 FROM tab2 AS cor0 +---- +-15 +-15 +-15 +20 +20 +20 query II rowsort SELECT col1 + + + col1 + + col1, col2 + + - 13 - + - col0 * - ( - col1 ) + 22 * + col2 AS col2 FROM tab0 AS cor0 @@ -54324,8 +54898,15 @@ SELECT DISTINCT + - 45 AS col0, - col1 FROM tab0 AS cor0 # Datafusion - Expected - -1 # Datafusion - Expected - 5 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- Int64\(85\)\) / cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col0, - ( + + 85 ) / + col2 AS col0 FROM tab1 AS cor0 +---- +-1 +-1 +0 +14 +47 +5 query I rowsort SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL @@ -54625,8 +55206,15 @@ SELECT + col1 + col0 AS col2 FROM tab0 WHERE NOT NULL IS NULL # Datafusion - Expected - -30 # Datafusion - Expected - -58 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col1" at position 0 and "\(\- tab2\.col2\) \+ Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 col1, - col2 + + 10 AS col1 FROM tab2 +---- +-13 +-23 +-30 +-40 +-48 +-58 query I rowsort label-9103 SELECT + + col2 FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) IS NULL @@ -54639,8 +55227,15 @@ SELECT + + col2 FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) IS NULL # Datafusion - Expected - -40 # Datafusion - Expected - -58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\)" at position 0 and "\(\- tab2\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2, - col2 FROM tab2 +---- +-23 +-23 +-40 +-40 +-58 +-58 query I rowsort label-9105 SELECT MAX ( DISTINCT 43 ) FROM tab1 @@ -54848,8 +55443,15 @@ SELECT DISTINCT + + col0 / + 7 + col1 + - col0 col1 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "tab0\.col0 \* tab0\.col0 \- CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, col0 * col0 - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 +---- +-15 +-87 +-97 +NULL +NULL +NULL query I rowsort SELECT ( - + 38 ) + col2 AS col2 FROM tab1 @@ -55867,8 +56469,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 45 < NULL # Datafusion - Expected - -1455 # Datafusion - Expected - NULL # Datafusion - Expected - -225 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(15\) \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - - CAST ( NULL AS INTEGER ) ) AS col0, 15 * - col0 AS col0 FROM tab0 AS cor0 +---- +-1305 +-1455 +-225 +NULL +NULL +NULL query III rowsort SELECT * FROM tab2 AS cor0 WHERE col0 BETWEEN + col2 AND - + col0 @@ -56093,8 +56702,15 @@ SELECT ALL + + col1 + + + col1 * - col0 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 62 # Datafusion - Expected - -69 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col1" at position 0 and "cor0\.col2 \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 69 AS col1, col2 + col0 col1 FROM tab0 AS cor0 +---- +-69 +-69 +-69 +196 +62 +97 query II rowsort SELECT ALL col1 * - col0 + - + col1 * + + col0 + + col0, col0 FROM tab1 AS cor0 @@ -56895,8 +57511,10 @@ SELECT - col0 + + - ( + col2 ) AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 500e33bcc7116abd08fb723d6a4a35a0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col0" at position 0 and "tab2\.col1 \* Int64\(0\) \+ tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 4 AS col0, col1 * - 0 + + col1 col0, + ( col2 ) FROM tab2 +---- +9 values hashing to 4930f64c5f6b4e9489c8d1a5d1c08d40 query I rowsort SELECT + - col2 col1 FROM tab0 WHERE NULL >= NULL @@ -56927,8 +57545,15 @@ NULL # Datafusion - Expected - 36 # Datafusion - Expected - -77 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 AS col0, 36 AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +36 +36 +36 query II rowsort SELECT + - col1, col0 FROM tab1 AS cor0 @@ -57449,8 +58074,15 @@ SELECT ALL - - ( 3 ) + - col2 * - col0 + col1 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 70 # Datafusion - Expected - 9507 # Datafusion - Expected - 122 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \- cor0\.col1 \+ \(\- \(\- cor0\.col1\)\) \* \(\- \(\- Int64\(1\)\)\) \* cor0\.col0 \* cor0\.col0 AS col1" at position 0 and "Int64\(23\) \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 - col1 + - - col1 * - - ( + 1 ) * col0 * + col0 col1, + 23 + col2 AS col1 FROM tab0 AS cor0 +---- +122 +158938 +18191 +33 +70 +9507 query I rowsort SELECT + col0 * - col0 - - 4 FROM tab0 AS cor0 @@ -57990,8 +58622,15 @@ SELECT - 0 AS col2 FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL ) # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( col1 ), col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT ALL 45 FROM tab1 WHERE - col2 IS NULL @@ -58581,8 +59220,10 @@ SELECT ALL 45 * - - 36 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 70236533b256fe2d75f86226ba43e3e6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col1" at position 0 and "tab2\.col0 \* Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 65 AS col1, + col0 * + 78 col1, - 17 AS col2 FROM tab2 +---- +9 values hashing to 4e29b7f3eb03a071b5a63eef5731dc95 query I rowsort SELECT - ( - ( 12 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 diff --git a/data/sqlite/random/aggregates/slt_good_119.slt b/data/sqlite/random/aggregates/slt_good_119.slt index 165a263..1d8c2cb 100644 --- a/data/sqlite/random/aggregates/slt_good_119.slt +++ b/data/sqlite/random/aggregates/slt_good_119.slt @@ -1289,8 +1289,15 @@ SELECT ALL COUNT ( * ) * - ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 26 # Datafusion - Expected - 6188 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col2 AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * + + col2 AS col0, + 26 AS col0 FROM tab1 cor0 WHERE NULL IS NULL +---- +26 +26 +26 +4896 +5015 +6188 query I rowsort SELECT DISTINCT - 21 * col1 FROM tab0 AS cor0 @@ -1549,8 +1556,11 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NULL > col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(\-84\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( DISTINCT + - 84 ) col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> col0 +---- +0 +NULL query I rowsort SELECT ALL 88 AS col0 FROM tab2 @@ -3464,8 +3474,10 @@ SELECT DISTINCT col2 - + + col2 col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 8269f8c580a46052ba73834c87ded237 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* Int64\(\-96\) \+ tab2\.col0 AS col2" at position 1 and "tab2\.col1 \+ \(\- tab2\.col2\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 66 * col1 - col1 AS col1, col0 * - 96 + col0 AS col2, col1 + - col2 AS col2 FROM tab2 +---- +9 values hashing to da1aa80610350d966b3e20b8ce9849bc query I rowsort label-575 SELECT COUNT ( * ) * + + 85 FROM tab0 @@ -4802,8 +4814,15 @@ SELECT col1 FROM tab0 WHERE NOT - col1 IS NULL # Datafusion - Expected - -47 # Datafusion - Expected - 74 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col0" at position 0 and "Int64\(\-32\) / Int64\(58\) \+ \(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 74 AS col0, - 32 / + 58 + - + ( + + col1 ) AS col0 FROM tab1 +---- +-14 +-47 +-5 +74 +74 +74 query I rowsort label-788 SELECT + SUM ( ALL + col1 ) col2 FROM tab0 @@ -5106,8 +5125,15 @@ SELECT DISTINCT - - col0 AS col0 FROM tab0 AS cor0 WHERE NULL <> - col2 * + col0 # Datafusion - Expected - -940 # Datafusion - Expected - -649452 # Datafusion - Expected - -9306 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(\-72\) \* \(\- Int64\(93\)\) \- Int64\(\-61\) \+ \(\- cor0\.col1\) AS col1" at position 0 and "\(\- \(\- \(\- cor0\.col2\)\)\) \* Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * - 72 * - + 93 - - 61 + - col1 AS col1, - ( - - col2 ) * 94 AS col1 FROM tab0 AS cor0 +---- +-100460 +-4418 +-582512 +-649452 +-9306 +-940 query I rowsort label-836 SELECT ALL - COUNT ( - + col1 ) AS col0 FROM tab1 @@ -5137,8 +5163,15 @@ SELECT ALL - COUNT ( * ) * - - ( - 16 ) * - CAST ( - 48 AS INTEGER ) - - COUNT ( # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col1, col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query III rowsort SELECT * FROM tab0 AS cor0 WHERE + 20 IS NULL @@ -6681,8 +6714,15 @@ SELECT 65 col2, - col1 AS col0 FROM tab1 # Datafusion - Expected - 41 # Datafusion - Expected - 0 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col2" at position 0 and "Int64\(\-2\) \+ Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 0 AS col2, - 2 + 43 AS col2 FROM tab0 +---- +0 +0 +0 +41 +41 +41 query I rowsort label-1100 SELECT ALL CAST ( col0 AS INTEGER ) AS col1 FROM tab2 WHERE NOT + col1 + - 56 IS NOT NULL @@ -6904,8 +6944,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 +---- +3 +3 query I rowsort label-1136 SELECT DISTINCT - ( - + COUNT ( 40 ) ) col0 FROM tab0 @@ -7142,8 +7185,15 @@ SELECT DISTINCT - - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, col0 col2 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-1172 SELECT ALL 46 * - + COUNT ( col0 ) FROM tab0 @@ -7362,8 +7412,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 96 + - COUNT ( * ) AS col2, + 49 col2 FROM tab2 +---- +49 +93 query I rowsort SELECT DISTINCT + col2 + + 46 AS col2 FROM tab0 @@ -7779,8 +7832,15 @@ SELECT col2 * - + col2 AS col2 FROM tab0 # Datafusion - Expected - 2698 # Datafusion - Expected - -58 # Datafusion - Expected - 2698 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) 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 II valuesort SELECT - col2 col2, - 38 * - 71 AS col2 FROM tab2 +---- +-23 +-40 +-58 +2698 +2698 +2698 query II rowsort SELECT ALL - col0 + - - 87 * col1, - col0 col0 FROM tab0 AS cor0 @@ -7866,8 +7926,15 @@ SELECT COUNT ( * ) * COUNT ( ALL + col1 ) AS col2 FROM tab1 WHERE NOT ( - 23 ) I # Datafusion - Expected - 3825 # Datafusion - Expected - 77 # Datafusion - Expected - 3264 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col1 AS Int32\) AS col1" at position 0 and "Int64\(51\) \* tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( + col1 AS INTEGER ) col1, 51 * col0 AS col1 FROM tab2 +---- +2346 +3264 +3825 +51 +67 +77 query I rowsort SELECT + 74 * + col0 * + + ( col1 ) FROM tab1 @@ -7980,8 +8047,9 @@ SELECT ALL 33 * - COUNT ( ALL - 46 ) - + COUNT ( * ) AS col1 FROM tab0 AS cor0 -102 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ cor0\.col2 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) + ( + col2 ) AS col1, col0 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL +---- query I rowsort SELECT + col1 + + ( + 57 ) AS col1 FROM tab0 @@ -8009,8 +8077,15 @@ SELECT DISTINCT + ( - col0 ) + + - col2 + + - 61 * + col0 FROM tab1 # Datafusion - Expected - 0 # Datafusion - Expected - 113 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ Int64\(47\) AS col0" at position 0 and "Int64\(57\) / \(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 + 47 AS col0, 57 / - col0 AS col0 FROM tab0 +---- +-3 +0 +0 +113 +113 +113 query I rowsort label-1309 SELECT ALL - 34 + + + ( COUNT ( DISTINCT col1 ) ) FROM tab0 @@ -8092,8 +8167,11 @@ SELECT CAST ( - + 26 AS INTEGER ) col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* min\(DISTINCT cor0\.col2\) AS col0" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) * + MIN ( DISTINCT + col2 ) col0, - ( - COUNT ( * ) ) col0 FROM tab1 AS cor0 +---- +3 +NULL query II rowsort label-1323 SELECT DISTINCT COUNT ( * ) AS col2, ( + COUNT ( * ) ) FROM tab2 @@ -8343,8 +8421,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 + - col2, 67 ) # Datafusion - Expected - 169 # Datafusion - Expected - 81 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "cor0\.col0 \+ Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 AS col2, col0 + + + 82 AS col2 FROM tab0 AS cor0 +---- +1 +169 +179 +21 +81 +97 query I rowsort label-1365 SELECT ALL col0 + ( + - 22 ) / col0 FROM tab1 @@ -9336,8 +9421,11 @@ SELECT ALL - col2 / col1 FROM tab0 AS cor0 WHERE NULL >= col0 # 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 "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 8 col0, + 25 AS col0 FROM tab1 AS cor0 +---- +25 +8 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 @@ -9352,8 +9440,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) / 43 - + 16 + ( + - 63 ) AS col2, MAX ( col0 ) AS col2 FROM tab2 +---- +-79 +75 query I rowsort label-1536 SELECT DISTINCT + COUNT ( * ) * + 7 FROM tab2 @@ -9454,8 +9545,15 @@ SELECT ALL + col2 col0 FROM tab0 WHERE NULL NOT BETWEEN col0 AND NULL # Datafusion - Expected - -375 # Datafusion - Expected - 77 # Datafusion - Expected - -320 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col1 AS Int32\) AS col0" at position 0 and "Int64\(5\) \* \(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( col1 AS INTEGER ) AS col0, 5 * - col0 AS col0 FROM tab2 +---- +-230 +-320 +-375 +51 +67 +77 query I rowsort label-1555 SELECT CAST ( NULL AS INTEGER ) + - + COUNT ( * ) FROM tab1 @@ -9492,8 +9590,15 @@ SELECT ALL 43 / + col2 * + col0 * + col2 + + ( + 49 ) * - col2 FROM tab0 WHERE N # Datafusion - Expected - 40 # Datafusion - Expected - 20 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 20 AS col0, col2 AS col0 FROM tab2 +---- +20 +20 +20 +23 +40 +58 query II rowsort label-1562 SELECT ALL - COUNT ( + CAST ( + + 14 AS INTEGER ) ) AS col2, + COUNT ( * ) FROM tab1 @@ -10842,8 +10947,11 @@ SELECT 41 + 34 * + col2 * + + 97 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13869 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(67\)\) \* \(\- sum\(Int64\(\-69\)\)\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 67 * - SUM ( - 69 ) AS col2, 75 AS col2 FROM tab1 AS cor0 +---- +-13869 +75 query I rowsort label-1782 SELECT + MAX ( DISTINCT - 41 ) + - 9 col0 FROM tab1 AS cor0 @@ -11395,8 +11503,9 @@ SELECT DISTINCT - + col0 - + col2 + - ( + col1 ) * + + 4 AS col1 FROM tab0 cor0 -386 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(58\)\) \* cor0\.col0 AS col1" at position 0 and "Int64\(44\) \+ \(\- cor0\.col0\) \* Int64\(\-54\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 58 * col0 AS col1, 44 + - + col0 * + - 54 * + col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL +---- query I rowsort label-1871 SELECT DISTINCT - MIN ( ALL + col2 ) - COUNT ( - ( + col1 ) ) AS col0 FROM tab2 @@ -11595,8 +11704,15 @@ SELECT DISTINCT 48 - - 86 AS col2, - 6 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 283974 # Datafusion - Expected - 0 # Datafusion - Expected - 283985 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- cor0\.col0\) AS col2" at position 0 and "CAST\(Int64\(\-55\) AS Int32\) \* Int64\(58\) \* \(\- Int64\(89\)\) \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 + - col0 AS col2, CAST ( - 55 AS INTEGER ) * 58 * - + 89 + + col0 AS col2 FROM tab2 AS cor0 +---- +0 +0 +0 +283956 +283974 +283985 query I rowsort label-1901 SELECT ALL + + CAST ( + - col0 AS INTEGER ) FROM tab1 AS cor0 @@ -12220,8 +12336,15 @@ SELECT ALL - col0 * col0 AS col2 FROM tab1 WHERE NOT ( ( - 19 ) IS NULL ) # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0, col0 FROM tab1 cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT DISTINCT - 76 + - col2 * - + col1 AS col2 FROM tab2 AS cor0 @@ -12434,8 +12557,9 @@ SELECT 71 AS col0 FROM tab0 cor0 WHERE NOT - col0 IN ( - 48 * + 50 * + 36 + + co 71 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col1 \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, + col1 * + ( + col0 ) AS col0 FROM tab0 cor0 WHERE NOT col0 < NULL +---- query I rowsort SELECT DISTINCT - col0 * + 96 FROM tab1 cor0 @@ -12487,8 +12611,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) * + + 54 AS col1, SUM ( - 43 ) AS col1 FROM tab2 +---- +-129 +162 query II rowsort SELECT DISTINCT col0 + col2 AS col2, - col2 * + + col2 FROM tab0 @@ -12535,8 +12662,15 @@ SELECT DISTINCT 89 * - - 13 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col0, col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT ALL col1 * + - col1 AS col1 FROM tab0 AS cor0 @@ -12575,8 +12709,15 @@ SELECT ALL ( + + SUM ( - col0 ) ) col1 FROM tab2 # Datafusion - Expected - 80 # Datafusion - Expected - 58 # Datafusion - Expected - 116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "tab2\.col2 \+ tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( col2 ) AS col0, + col2 + col2 col0 FROM tab2 +---- +116 +23 +40 +46 +58 +80 query I rowsort label-2060 SELECT - CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 @@ -12833,8 +12974,9 @@ SELECT ALL + - col1 + - - 3 AS col2 FROM tab1 AS cor0 -44 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col1" at position 0 and "Int64\(81\) / cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 col1, 81 / + col2 AS col1 FROM tab0 AS cor0 WHERE NULL = 62 +---- query I rowsort SELECT ALL ( + + 18 ) + - - col2 FROM tab2 @@ -14834,8 +14976,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) AS col2, + MIN ( - + col1 ) AS col2 FROM tab1 AS cor0 +---- +-3 +-47 query III rowsort SELECT * FROM tab1 AS cor0 WHERE + 50 <> ( NULL ) @@ -15140,8 +15285,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab2 +---- +3 +3 query III rowsort SELECT ALL * FROM tab1 WHERE NOT - - col2 <> ( col0 + + 7 ) @@ -15538,8 +15686,9 @@ SELECT - 27 AS col0, MIN ( ALL - col1 ) FROM tab0 -81 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, col1 AS col2 FROM tab2 WHERE NOT NULL >= + col2 +---- query I rowsort SELECT DISTINCT ( + + col0 ) * - col0 FROM tab2 @@ -17740,8 +17889,15 @@ SELECT - MIN ( DISTINCT + 16 ) AS col0 FROM tab2 # Datafusion - Expected - -92 # Datafusion - Expected - -97 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "Int64\(\-92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, - 92 col2 FROM tab0 +---- +-15 +-87 +-92 +-92 +-92 +-97 query II rowsort SELECT DISTINCT + 53 AS col0, col1 * - 99 - + col2 * + ( col1 ) - + 84 AS col2 FROM tab1 @@ -18033,8 +18189,15 @@ SELECT DISTINCT - CAST ( - 1 AS INTEGER ) FROM tab0 # Datafusion - Expected - -10 # Datafusion - Expected - -97 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "\(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, - col2 AS col2 FROM tab0 +---- +-10 +-15 +-47 +-87 +-97 +-99 query II rowsort label-2957 SELECT ALL CAST ( NULL AS INTEGER ), col1 col1 FROM tab1 @@ -18374,8 +18537,15 @@ SELECT DISTINCT + + col0 + + col1 + col0 * + 46 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 59 # Datafusion - Expected - 91 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, col2 AS col1 FROM tab1 +---- +51 +59 +68 +85 +91 +96 query I rowsort SELECT DISTINCT col1 + - - 80 * + col0 FROM tab0 @@ -19197,8 +19367,15 @@ SELECT ALL + - 66 AS col2 FROM tab2 cor0 WHERE col2 NOT BETWEEN NULL AND NULL # Datafusion - Expected - -20 # Datafusion - Expected - -97 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \- cor0\.col1 AS col1" at position 0 and "Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 - + col1 AS col1, - 20 AS col1 FROM tab2 AS cor0 +---- +-141 +-142 +-20 +-20 +-20 +-97 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> col1 @@ -21043,8 +21220,15 @@ SELECT ALL 25 * 20 FROM tab0 # Datafusion - Expected - -2125 # Datafusion - Expected - 91 # Datafusion - Expected - -201019 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col1 \* tab1\.col0 \* CAST\(\(\- tab1\.col1\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( col0 ) AS col1, + col1 * + col0 * CAST ( - + col1 AS INTEGER ) col1 FROM tab1 +---- +-201019 +-2125 +-9996 +51 +85 +91 query I rowsort label-3451 SELECT + SUM ( DISTINCT - 17 ) AS col0 FROM tab2 @@ -21169,8 +21353,15 @@ SELECT ALL + col2 AS col2, + 36 * 24 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -21 # Datafusion - Expected - -93 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 93 AS col0, - col1 AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +-93 +-93 +-93 query I rowsort label-3470 SELECT DISTINCT + + CAST ( - - 65 AS INTEGER ) FROM tab1 AS cor0 @@ -21589,8 +21780,15 @@ SELECT DISTINCT + ( - 38 ) + + - 79 + + ( - + 46 ) AS col0, + 56 FROM tab1 AS co # Datafusion - Expected - 78 # Datafusion - Expected - 97 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \- cor0\.col0 \+ cor0\.col0 AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 - + col0 + col0 col1, 78 AS col1 FROM tab0 AS cor0 +---- +15 +78 +78 +78 +87 +97 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -21648,8 +21846,15 @@ SELECT * FROM tab0 WHERE + col0 / - + col1 * + - col0 - + col1 IS NULL # Datafusion - Expected - -67 # Datafusion - Expected - 77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "\(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col2, - col1 AS col2 FROM tab2 +---- +-51 +-67 +-77 +51 +67 +77 query I rowsort SELECT 97 * + 26 * + 35 AS col2 FROM tab0 @@ -22042,8 +22247,10 @@ SELECT + 58 + COUNT ( * ) col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to e735c3d1c0fb6e15136fd16009fcccf2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 1 and "cor0\.col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL col2 * col1, col1, + col1 FROM tab1 AS cor0 +---- +9 values hashing to d1f489c975ed0eb969b27bf14de064ef query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 49 - col1 IS NULL @@ -22067,8 +22274,11 @@ SELECT * FROM tab2 WHERE col1 * + + col1 NOT BETWEEN col0 * - + col1 AND - col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \- \(\- CAST\(NULL AS Float64\)\) \+ Int64\(73\) AS col2" at position 0 and "max\(Int64\(60\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT 45 - - CAST ( NULL AS FLOAT8 ) + 73 AS col2, + MAX ( ALL + 60 ) col2 FROM tab1 AS cor0 +---- +60 +NULL query I rowsort label-3612 SELECT - ( + CAST ( NULL AS INTEGER ) ) - COUNT ( * ) - - + ( - - 46 ) FROM tab1 cor0 @@ -23785,8 +23995,15 @@ SELECT DISTINCT - + 15, - 55 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 14 # Datafusion - Expected - 97 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, + 14 AS col2 FROM tab0 AS cor0 +---- +14 +14 +14 +15 +87 +97 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -24701,8 +24918,15 @@ SELECT + col0 FROM tab2 AS cor0 WHERE - col2 > NULL # Datafusion - Expected - -21 # Datafusion - Expected - -5069 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* \(\- cor0\.col2\) \+ Int64\(79\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 52 * - col2 + 79 AS col0, - col1 AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-2365 +-441 +-5069 +-81 query I rowsort SELECT DISTINCT + ( + col2 ) FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN col0 AND NULL @@ -25064,8 +25288,15 @@ SELECT - - SUM ( ALL - col0 ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - -20 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col0" at position 0 and "\(\- \(\- Int64\(\-67\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 20 col0, - ( - - 67 ) AS col0 FROM tab1 +---- +-20 +-20 +-20 +-67 +-67 +-67 query II rowsort label-4108 SELECT COUNT ( * ) AS col2, + 89 FROM tab1 @@ -25228,8 +25459,15 @@ SELECT + 46 * + col2 * col0 FROM tab0 AS cor0 # Datafusion - Expected - 13 # Datafusion - Expected - 87 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ Int64\(34\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 53 + + 34 AS col2, 13 col2 FROM tab2 AS cor0 +---- +13 +13 +13 +87 +87 +87 query I rowsort SELECT DISTINCT + + col0 * + col2 * + col0 FROM tab0 AS cor0 @@ -25372,8 +25610,15 @@ SELECT ALL + 52, col1 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 6264 # Datafusion - Expected - -2 # Datafusion - Expected - 6984 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col0" at position 0 and "Int64\(\-72\) \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 2 AS col0, - 72 * - col0 AS col0 FROM tab0 AS cor0 +---- +-2 +-2 +-2 +1080 +6264 +6984 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE 33 < NULL @@ -25976,8 +26221,11 @@ SELECT ALL * FROM tab1 WHERE NOT - - col1 - - col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "max\(Int64\(79\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col0, + MAX ( + 79 ) AS col0 FROM tab0 +---- +79 +NULL query I rowsort label-4259 SELECT ALL + ( COUNT ( * ) ) * - 78 FROM tab1 WHERE NOT NULL NOT BETWEEN - 10 / col2 / col2 + - col2 / + col2 AND ( col0 * col1 ) @@ -26071,8 +26319,11 @@ SELECT + col1 * 52 * + 11 AS col1 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 34 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +3 +34 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT col0 + 99 / + col1 IS NULL @@ -26664,8 +26915,15 @@ SELECT - col2 * - - col2 FROM tab2 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - -77 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col0\) \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, - col0 + + col0 col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +0 +0 +0 query I rowsort SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 * - col1 IS NOT NULL @@ -26707,8 +26965,15 @@ SELECT - MIN ( + col2 ) / - 53 FROM tab1 AS cor0 # Datafusion - Expected - 10 # Datafusion - Expected - -97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) \* tab0\.col0 AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 * col0 col0, + col2 AS col0 FROM tab0 +---- +-1215 +-1827 +-97 +10 +47 +99 query I rowsort SELECT ALL + col0 * + 84 + col1 * - col0 FROM tab1 @@ -27018,8 +27283,11 @@ SELECT - MAX ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0 # 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 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 II valuesort SELECT 39 col0, - COUNT ( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0 +---- +-3 +39 query I rowsort label-4431 SELECT ALL MIN ( ALL - + 16 ) FROM tab0 AS cor0 WHERE 18 BETWEEN - col2 AND + - col1 / + col2 @@ -27137,8 +27405,15 @@ SELECT * FROM tab2 cor0 WHERE 90 * + ( + - col0 ) IS NULL # Datafusion - Expected - -4374 # Datafusion - Expected - -40 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-91\)\) \+ \(\- Int64\(86\)\) \+ Int64\(\-45\) AS col1" at position 0 and "cor0\.col1 \* \(\- Int64\(54\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 91 + - + 86 + - 45 AS col1, + col1 * - + 54 AS col1 FROM tab0 AS cor0 +---- +-1134 +-40 +-40 +-40 +-4374 +-54 query I rowsort label-4449 SELECT DISTINCT + + COUNT ( ALL 5 ) FROM tab2 AS cor0 @@ -27498,8 +27773,15 @@ SELECT DISTINCT - MIN ( DISTINCT + col1 ) FROM tab1 cor0 # Datafusion - Expected - 6 # Datafusion - Expected - 81 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, 6 AS col2 FROM tab0 AS cor0 +---- +1 +21 +6 +6 +6 +81 query I rowsort SELECT DISTINCT + 76 * - col2 + + col2 * + 85 AS col1 FROM tab2 AS cor0 @@ -27554,8 +27836,15 @@ SELECT - col0 + + col0, col0 FROM tab0 AS cor0 # Datafusion - Expected - 33 # Datafusion - Expected - 60 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(6\) AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * 6 AS col1, 33 AS col1 FROM tab0 AS cor0 +---- +282 +33 +33 +33 +594 +60 query I rowsort SELECT - col0 + 13 FROM tab2 @@ -27718,8 +28007,15 @@ SELECT + COUNT ( * ) * - 72 FROM tab1 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - -75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, col2 AS col0 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +23 +40 +58 query I rowsort label-4543 SELECT ALL 45 * COUNT ( * ) FROM tab2 AS cor0 @@ -28326,8 +28622,15 @@ SELECT 83 + - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 77 # Datafusion - Expected - 29 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) \+ tab2\.col2 AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 29 + + col2 AS col0, col1 col0 FROM tab2 +---- +-6 +11 +29 +51 +67 +77 query I rowsort SELECT + - col1 + 62 col2 FROM tab2 AS cor0 @@ -28997,8 +29300,11 @@ SELECT DISTINCT - 12 FROM tab1 WHERE NOT - 75 - 35 + + + 19 * 70 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "max\(DISTINCT tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, + MAX ( DISTINCT + col2 ) AS col0 FROM tab0 +---- +3 +99 query I rowsort SELECT ALL + 83 * + col2 + + 84 col2 FROM tab2 @@ -29038,8 +29344,15 @@ SELECT - col0 * - col2 * + 14 FROM tab1 AS cor0 # Datafusion - Expected - 3196 # Datafusion - Expected - -579 # Datafusion - Expected - 1344 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \* cor0\.col1 \- \(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 45 * + col1 - - col0 AS col2, col1 * + col2 col2 FROM tab1 AS cor0 +---- +-140 +-2024 +-579 +1344 +295 +3196 query I rowsort SELECT - 61 * - + 29 AS col2 FROM tab0 AS cor0 @@ -29157,8 +29470,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 57 AS col2, + COUNT ( * ) AS col2 FROM tab1 +---- +3 +57 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT + + ( - 90 ) IS NOT NULL @@ -29321,8 +29637,15 @@ SELECT ALL * FROM tab0 cor0 WHERE NOT - 41 IS NULL # Datafusion - Expected - -582 # Datafusion - Expected - -37 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col2" at position 0 and "cor0\.col0 \* Int64\(\-6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 37 AS col2, col0 * + - 6 AS col2 FROM tab0 AS cor0 +---- +-37 +-37 +-37 +-522 +-582 +-90 query III rowsort SELECT * FROM tab0 AS cor0 WHERE ( col2 ) > + col2 @@ -29559,8 +29882,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) + - ( 72 ) AS col0, + 11 + - SUM ( ALL - col0 ) AS col0 FROM tab1 +---- +-69 +238 query I rowsort SELECT DISTINCT - 73 * + ( - + col2 ) - - + col0 col0 FROM tab0 @@ -29605,8 +29931,15 @@ SELECT COUNT ( DISTINCT ( col2 ) ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 5775 # Datafusion - Expected - -77 # Datafusion - Expected - 4928 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(\-77\) \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col2, - 77 * - col0 col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +3542 +4928 +5775 query I rowsort label-4859 SELECT DISTINCT - - 48 / + 78 + - + col0 AS col1 FROM tab1 AS cor0 WHERE + 90 IS NOT NULL @@ -30141,8 +30474,15 @@ SELECT + - COUNT ( * ) + - 85 / - 14 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 A # Datafusion - Expected - 136 # Datafusion - Expected - -78 # Datafusion - Expected - 192 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col2" at position 0 and "cor0\.col2 \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 78 AS col2, col2 + + col2 AS col2 FROM tab1 AS cor0 +---- +-78 +-78 +-78 +118 +136 +192 query I rowsort label-4945 SELECT + 89 / + ( - - col2 ) + - col0 FROM tab1 AS cor0 @@ -30162,8 +30502,11 @@ SELECT DISTINCT + 39 AS col0 FROM tab2 AS cor0 WHERE NOT - 55 NOT BETWEEN NULL A # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 64 AS col0, COUNT ( * ) AS col0 FROM tab0 cor0 +---- +3 +64 query I rowsort SELECT DISTINCT + col2 * + - 86 FROM tab0 @@ -30192,8 +30535,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 55 AS col1, - COUNT ( * ) AS col1 FROM tab0 WHERE - 74 IS NULL +---- +0 +55 query I rowsort SELECT - - 89 FROM tab2 cor0 WHERE ( NOT ( NULL ) > col1 ) @@ -30809,8 +31155,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> col1 / - - 97 # Datafusion - Expected - 221760 # Datafusion - Expected - -75 # Datafusion - Expected - 279792 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col1 \* \(\- cor0\.col2\) \* Int64\(\-72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col0 AS col1, + col1 * - + col2 * - 72 AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +221760 +279792 +84456 query I rowsort label-5057 SELECT - - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1 @@ -32176,8 +32529,15 @@ SELECT + 70 * col0 FROM tab2 # Datafusion - Expected - -73 # Datafusion - Expected - -7142 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* Int64\(\-96\) \+ tab2\.col2 AS col2" at position 0 and "Int64\(\-73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * - 96 + + col2 AS col2, - 73 AS col2 FROM tab2 +---- +-4393 +-6104 +-7142 +-73 +-73 +-73 query I rowsort label-5285 SELECT ALL + CAST ( - col0 AS INTEGER ) col0 FROM tab1 @@ -32750,8 +33110,10 @@ SELECT ALL - + 87 / + - col1 + + col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to ee604e0a16eb7546f7753b799d713122 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 1 and "Int64\(\-37\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - 7 col2, - col1 AS col0, + - 37 AS col0 FROM tab1 AS cor0 +---- +9 values hashing to 34d0a41fb09d13bc3367df6bc96a0abf query I rowsort label-5378 SELECT DISTINCT - SUM ( + col1 ) col1 FROM tab1 cor0 @@ -33019,8 +33381,15 @@ SELECT - ( 10 ) col2 FROM tab2 AS cor0 # Datafusion - Expected - 15 # Datafusion - Expected - 99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "\(\- \(\- tab0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, ( - - col0 ) AS col0 FROM tab0 +---- +10 +15 +47 +87 +97 +99 query I rowsort label-5423 SELECT ALL col0 / - 38 FROM tab1 @@ -33138,8 +33507,15 @@ SELECT * FROM tab1 AS cor0 WHERE - 53 * + - 89 * + col0 - + - col1 <= NULL # Datafusion - Expected - -4624 # Datafusion - Expected - -10 # Datafusion - Expected - -9216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col1" at position 0 and "cor0\.col2 \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 AS col1, col2 * - col2 AS col1 FROM tab1 AS cor0 +---- +-10 +-10 +-10 +-3481 +-4624 +-9216 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT + - col2 + - col1 IS NULL @@ -33227,8 +33603,15 @@ SELECT ALL + - COUNT ( DISTINCT 43 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 59 # Datafusion - Expected - -91 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col0 col1, col2 AS col1 FROM tab1 cor0 +---- +-51 +-85 +-91 +59 +68 +96 query I rowsort label-5454 SELECT - - ( - - SUM ( + col0 ) ) AS col1 FROM tab2 WHERE NOT 45 - - 31 + + col1 IS NOT NULL @@ -33550,8 +33933,15 @@ SELECT - - 15, + 91 * + col1 + + - 69 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -3000 # Datafusion - Expected - 58 # Datafusion - Expected - -4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(75\) \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col2 AS col1, + 75 * - col2 col1 FROM tab2 AS cor0 +---- +-1725 +-3000 +-4350 +23 +40 +58 query II rowsort SELECT DISTINCT + + col1 + - 43, col2 - col0 AS col1 FROM tab0 AS cor0 WHERE NULL >= - col1 @@ -33890,8 +34280,15 @@ SELECT + ( - 24 ) FROM tab0 AS cor0 # Datafusion - Expected - -60 # Datafusion - Expected - 75 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(\-60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, - 60 AS col2 FROM tab2 AS cor0 +---- +-60 +-60 +-60 +46 +64 +75 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT + 68 <= + - 23 * col2 @@ -34675,8 +35072,11 @@ SELECT CAST ( + - ( col0 ) AS INTEGER ) AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 2576 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "\(\- max\(\(\- tab2\.col0\)\)\) \* Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 AS col1, - MAX ( - col0 ) * + 56 AS col1 FROM tab2 +---- +2576 +90 query II rowsort SELECT DISTINCT - 75 AS col0, + col1 FROM tab0 @@ -35029,8 +35429,15 @@ SELECT + col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL # Datafusion - Expected - 246400 # Datafusion - Expected - -4350 # Datafusion - Expected - 310880 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* \(\- tab2\.col0\) AS col1" at position 0 and "Int64\(80\) \* tab2\.col1 \* tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * - col0 AS col1, 80 * col1 * + col2 col1 FROM tab2 +---- +-1058 +-2560 +-4350 +246400 +310880 +93840 query I rowsort label-5751 SELECT DISTINCT - SUM ( + 4 ) FROM tab2 @@ -35567,8 +35974,15 @@ SELECT DISTINCT * FROM tab0 WHERE NOT - col1 > - col1 # Datafusion - Expected - 55 # Datafusion - Expected - -47 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col1" at position 0 and "cor0\.col1 \+ Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 47 AS col1, col1 + - 12 AS col1 FROM tab2 cor0 +---- +-47 +-47 +-47 +39 +55 +65 query II rowsort SELECT DISTINCT col2, ( + ( 26 ) ) FROM tab1 AS cor0 @@ -35755,8 +36169,15 @@ SELECT ALL col0 * - - 72 FROM tab1 # Datafusion - Expected - 81 # Datafusion - Expected - 99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, col1 AS col0 FROM tab0 +---- +1 +10 +21 +47 +81 +99 query II rowsort SELECT ALL + + col2 AS col2, col0 * + 19 AS col1 FROM tab2 AS cor0 @@ -36127,8 +36548,15 @@ SELECT ALL + 60 * - col1 FROM tab1 # Datafusion - Expected - 32 # Datafusion - Expected - 5025 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 * + - col0 AS col1, 32 AS col1 FROM tab2 AS cor0 +---- +2346 +32 +32 +32 +4928 +5025 query I rowsort SELECT DISTINCT - 38 + - 52 FROM tab0 @@ -37507,8 +37935,15 @@ SELECT ALL + 54 - - COUNT ( * ) FROM tab2 AS cor0 WHERE - 83 - + col2 + col2 / c # Datafusion - Expected - 21 # Datafusion - Expected - 57 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 57 col0, + col1 AS col0 FROM tab0 AS cor0 +---- +1 +21 +57 +57 +57 +81 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -38292,8 +38727,15 @@ SELECT DISTINCT 99 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < - col2 - - + 91 / # Datafusion - Expected - -44 # Datafusion - Expected - 38 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "Int64\(6\) \+ Int64\(\-50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 38 AS col0, + 6 + + - 50 AS col0 FROM tab0 cor0 +---- +-44 +-44 +-44 +38 +38 +38 query I rowsort SELECT - col0 * col1 + + col2 - - 15 AS col2 FROM tab2 AS cor0 @@ -38979,8 +39421,15 @@ SELECT col2 / col2 * - col0 - - + 79 + col2 * - 35 * col2 AS col0 FROM tab0 # Datafusion - Expected - -313208 # Datafusion - Expected - 5 # Datafusion - Expected - -28910 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "\(\- tab1\.col2\) \* tab1\.col1 \* Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, - col2 * col1 * + ( + 98 ) AS col2 FROM tab1 +---- +-131712 +-28910 +-313208 +14 +47 +5 query I rowsort label-6397 SELECT ALL - - col1 * CAST ( NULL AS INTEGER ) * 88 / - 67 + col2 AS col1 FROM tab0 WHERE NOT - CAST ( - col2 AS INTEGER ) + + 78 * + 51 BETWEEN col0 AND NULL @@ -39528,8 +39977,10 @@ SELECT + 17 FROM tab0 AS cor0 WHERE - 98 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to d04d7f2a26c99bdfdf8d720a73b26540 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \+ cor0\.col2 AS col0" at position 1 and "\(\- cor0\.col1\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 37, - 89 + col2 AS col0, - col1 AS col0 FROM tab2 AS cor0 +---- +9 values hashing to 6942b7f4b911b508f863b949bbc6bbc1 query I rowsort SELECT - 14 - + col2 FROM tab0 AS cor0 @@ -40181,8 +40632,15 @@ SELECT DISTINCT - COUNT ( * ) * 74 FROM tab0 AS cor0 # Datafusion - Expected - 3120 # Datafusion - Expected - -5025 # Datafusion - Expected - 4524 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 \* Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col0 * + - col1 AS col1, col2 * 78 AS col1 FROM tab2 AS cor0 +---- +-2346 +-4928 +-5025 +1794 +3120 +4524 query I rowsort label-6604 SELECT + SUM ( DISTINCT 66 ) AS col0 FROM tab2 cor0 @@ -40422,8 +40880,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT - 50 * + col2 IS NOT NULL # Datafusion - Expected - 71 # 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 "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 23 AS col2, + 71 AS col2 FROM tab0 AS cor0 +---- +23 +23 +23 +71 +71 +71 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -41059,8 +41524,15 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) / tab0\.col2 \* \(\- tab0\.col1\) 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 IR valuesort SELECT ALL + 92 / col2 * - col1 AS col0, CAST ( NULL AS FLOAT8 ) AS col0 FROM tab0 +---- +-189 +-81 +0 +NULL +NULL +NULL query I rowsort SELECT DISTINCT - + col0 * - - 36 FROM tab0 AS cor0 @@ -41310,8 +41782,11 @@ SELECT ALL - COUNT ( + col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT \(\- Int64\(76\)\)\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( DISTINCT - + 76 ) AS col0, 42 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 +---- +-76 +42 query II rowsort label-6789 SELECT DISTINCT + + COUNT ( * ) * + + COUNT ( * ) col1, - COUNT ( * ) AS col2 FROM tab0 AS cor0 @@ -41380,8 +41855,9 @@ SELECT 60 * + col1 FROM tab2 4620 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "tab2\.col2 / \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 col2, col2 / - col2 col2 FROM tab2 WHERE NOT NULL IS NULL +---- query I rowsort SELECT - col0 * + 85 col2 FROM tab1 AS cor0 @@ -41447,8 +41923,15 @@ SELECT + ( + - 42 ) col2 FROM tab2 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - 77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col1 AS col2, - ( + + col1 ) AS col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +51 +67 +77 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 <> - ( col2 ) @@ -42840,8 +43323,15 @@ SELECT ALL + - 37 * + col0 FROM tab1 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 2 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) / Int64\(38\) AS col2" at position 0 and "Int64\(\-8\) / \(\- CAST\(Int64\(98\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 / 38 AS col2, - 8 / - CAST ( 98 AS INTEGER ) col2 FROM tab2 AS cor0 +---- +0 +0 +0 +2 +2 +2 query I rowsort label-7044 SELECT - COUNT ( ALL + - col1 ) AS col1 FROM tab0 cor0 @@ -44583,8 +45073,15 @@ SELECT ALL + col0 - 28 FROM tab2 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - 85 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "\(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 85 AS col2, - col1 AS col2 FROM tab2 +---- +-51 +-67 +-77 +85 +85 +85 query IIIIII rowsort SELECT * FROM tab2, tab2 AS cor0 WHERE NOT 73 * - 73 <= ( - 25 ) @@ -45012,8 +45509,15 @@ SELECT * FROM tab1 WHERE NOT NULL <> + col0 + 21 + - 47 / + 83 # Datafusion - Expected - 3080 # Datafusion - Expected - 58 # Datafusion - Expected - 3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "tab2\.col2 \* \(\- \(\- tab2\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, ( col2 ) * - - col1 AS col0 FROM tab2 +---- +1173 +23 +3080 +3886 +40 +58 query I rowsort SELECT col0 * col1 FROM tab0 WHERE NOT - col0 NOT BETWEEN NULL AND ( NULL ) @@ -46826,8 +47330,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + - col0 IS NOT NULL # Datafusion - Expected - 1696 # Datafusion - Expected - -99 # Datafusion - Expected - 1691 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(\-19\) \* Int64\(\-89\) \+ \(\- cor0\.col1\) / \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col2 AS col1, + ( - 19 ) * - 89 + - + col1 / + - col0 AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +1691 +1691 +1696 query II rowsort label-7702 SELECT ALL + COUNT ( * ) AS col0, MAX ( ALL - 83 ) col1 FROM tab0 AS cor0 @@ -47960,8 +48471,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - + COUNT ( * ) col1, 66 * + 57 AS col1 FROM tab1 cor0 +---- +-3 +3762 query II rowsort SELECT ALL col1 AS col2, ( + 62 ) AS col1 FROM tab0 AS cor0 @@ -48057,8 +48571,15 @@ NULL # Datafusion - Expected - -17 # 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 "\(\- cor0\.col0\) / cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 61 AS col0, - col0 / col1 col0 FROM tab1 cor0 +---- +-1 +-17 +-3 +61 +61 +61 query I rowsort label-7913 SELECT DISTINCT + ( + COUNT ( * ) ) col0 FROM tab0 AS cor0 @@ -50034,8 +50555,11 @@ SELECT DISTINCT - COUNT ( * ) FROM tab2 cor0 WHERE ( col2 * col0 + - 6 * - 55 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 66 col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +3 +66 query II rowsort SELECT DISTINCT + 31 AS col0, + 18 FROM tab1 AS cor0 @@ -50078,8 +50602,15 @@ SELECT DISTINCT - MAX ( DISTINCT col1 ) + + COUNT ( ALL + col0 ) FROM tab2 # Datafusion - Expected - 65 # Datafusion - Expected - -1 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(1\)\) AS col2" at position 0 and "Int64\(86\) \+ \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + 1 ) AS col2, + 86 + - col1 AS col2 FROM tab0 +---- +-1 +-1 +-1 +5 +65 +85 query I rowsort SELECT 7 * + col0 AS col2 FROM tab0 WHERE NOT ( - ( + - col2 ) * - col1 ) IS NOT NULL @@ -50233,8 +50764,11 @@ SELECT ALL * FROM tab2 WHERE - + col2 NOT IN ( - - col2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(67\) AS Int32\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( 67 AS INTEGER ) AS col0, - COUNT ( * ) AS col0 FROM tab2 +---- +-3 +-67 query I rowsort label-8274 SELECT ALL CAST ( NULL AS INTEGER ) * + 37 AS col2 FROM tab2 @@ -50303,8 +50837,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT ( 21 - + col1 ) BETWEEN + 41 + 78 AND + col # Datafusion - Expected - 50 # Datafusion - Expected - 87 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ Int64\(\-9\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + - 9 col0, 50 col0 FROM tab1 cor0 +---- +50 +50 +50 +50 +59 +87 query I rowsort label-8284 SELECT - 85 + + 0 * COUNT ( * ) FROM tab1 AS cor0 @@ -50536,8 +51077,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT - 8 IS NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 col1, col0 AS col1 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT DISTINCT ( 49 ) * + - col1 AS col0 FROM tab2 @@ -51439,8 +51987,10 @@ SELECT * FROM tab0 AS cor0 WHERE + col0 - - col2 NOT IN ( - + 47 * 47, 44 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 84a2c89cb8a79b2c5bd151efb165a631 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(8\)\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - + ( + 8 ) col2, - col0 AS col2, - + 51 * + col2 FROM tab2 AS cor0 +---- +9 values hashing to b487e9eb1157c434897316b57a39365c query I rowsort SELECT DISTINCT - - col2 * + + ( + col2 ) * + col2 AS col2 FROM tab0 AS cor0 @@ -53310,8 +53860,15 @@ SELECT col2 FROM tab2 WHERE - + col0 IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - -96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 +---- +-59 +-68 +-96 +NULL +NULL +NULL query I rowsort SELECT DISTINCT - 26 + 85 FROM tab1 @@ -53437,8 +53994,11 @@ SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT col0 * 24 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 18 * - - COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 WHERE NOT - 28 - + - col2 IS NULL +---- +-54 +3 query I rowsort SELECT - col0 * 90 col2 FROM tab2 @@ -53460,8 +54020,15 @@ SELECT DISTINCT + 14 * - - 71 * - 42 AS col2, + COUNT ( * ) * 44 AS col0 FROM ta # Datafusion - Expected - 183 # Datafusion - Expected - 81 # Datafusion - Expected - 111 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "tab0\.col0 \+ Int64\(95\) \- Int64\(\-97\) \+ Int64\(\-96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, col0 + 95 - - 97 + - 96 AS col0 FROM tab0 +---- +1 +111 +183 +193 +21 +81 query I rowsort SELECT + ( + - 20 ) FROM tab1 AS cor0 @@ -53645,8 +54212,15 @@ SELECT ALL - - 40 FROM tab0 cor0 # Datafusion - Expected - 71 # Datafusion - Expected - 96 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col2 AS col0, + 71 AS col0 FROM tab1 cor0 +---- +59 +68 +71 +71 +71 +96 query I rowsort SELECT ( - + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 * - - col0 IS NOT NULL @@ -53715,8 +54289,15 @@ SELECT ALL COUNT ( col2 ) / + 26 FROM tab1 WHERE NOT + col2 >= - 96 * col1 # Datafusion - Expected - -99 # Datafusion - Expected - 81 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(\-72\) \+ Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, + ( - 72 ) + - 27 AS col0 FROM tab0 AS cor0 +---- +-99 +-99 +-99 +1 +21 +81 query III rowsort SELECT DISTINCT * FROM tab2 WHERE 22 / - 93 IS NULL @@ -53740,8 +54321,15 @@ SELECT - 77 FROM tab0 AS cor0 WHERE col2 + + CAST ( NULL AS INTEGER ) IS NULL # Datafusion - Expected - -6365 # Datafusion - Expected - 11 # Datafusion - Expected - -7315 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "\(\- tab2\.col1\) \* Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 11 AS col1, - col1 * 95 AS col1 FROM tab2 +---- +-4845 +-6365 +-7315 +11 +11 +11 query I rowsort SELECT ALL + col1 + + + col0 col2 FROM tab2 @@ -54175,8 +54763,15 @@ SELECT ALL MAX ( DISTINCT + 56 ) / - - 69 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 10 # Datafusion - Expected - 97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, col2 AS col1 FROM tab0 AS cor0 +---- +10 +15 +47 +87 +97 +99 query I rowsort SELECT - - 81 FROM tab1 WHERE NOT NULL IS NULL @@ -54403,8 +54998,15 @@ SELECT + MIN ( ALL - 57 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 7 # Datafusion - Expected - 91 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "Int64\(1\) \* Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, 1 * + 7 AS col1 FROM tab1 +---- +51 +7 +7 +7 +85 +91 query II rowsort label-8955 SELECT ALL 28, + ( - - col2 ) + + + col1 FROM tab2 AS cor0 WHERE ( NOT NULL IN ( - col1 * + 61, 88, - - col2, + col0 + - 98 + - + CAST ( NULL AS INTEGER ) ) ) @@ -54445,8 +55047,9 @@ SELECT + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - col0 <= NULL 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col1 \+ \(\- cor0\.col2\) \* \(\- cor0\.col0\) / \(\- cor0\.col2\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + + col1 + + - col2 * - col0 / - + col2 AS col2, 6 col2 FROM tab1 AS cor0 WHERE - col0 IS NULL +---- query I rowsort SELECT ALL col1 + - 13 + + col2 AS col1 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL @@ -55165,8 +55768,15 @@ SELECT DISTINCT col0 AS col2, CAST ( - 57 AS INTEGER ) * - - 57 FROM tab2 # Datafusion - Expected - 144 # Datafusion - Expected - 91 # Datafusion - Expected - 159 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col2 \+ tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, col2 + + + col0 AS col1 FROM tab1 +---- +144 +147 +159 +51 +85 +91 query I rowsort SELECT DISTINCT + col1 * - 50 AS col1 FROM tab0 WHERE NOT NULL IN ( - + col1, + 32, + col2 + + col2, - 78 * - - col0 ) @@ -55811,8 +56421,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 + - + ( + 93 ) ) = ( NULL ) # Datafusion - Expected - 0 # Datafusion - Expected - -6750 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(90\) AS col2" at position 0 and "Int64\(39\) / \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 * 90 AS col2, 39 / - col2 AS col2 FROM tab2 AS cor0 +---- +-1 +-4140 +-5760 +-6750 +0 +0 query I rowsort SELECT + ( + 89 ) FROM tab0 AS cor0 @@ -56015,8 +56632,11 @@ SELECT * FROM tab0 AS cor0 WHERE NOT + 58 * - 14 - + - 96 NOT IN ( + - col2, - ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "min\(cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col0, MIN ( + col2 ) AS col0 FROM tab1 AS cor0 +---- +3 +59 query I rowsort SELECT ALL + col2 + - + col0 FROM tab0 @@ -56302,8 +56922,15 @@ SELECT DISTINCT - col1 + + col1 FROM tab2 AS cor0 WHERE NOT ( col0 * + 63 IS NUL # Datafusion - Expected - -87 # Datafusion - Expected - 19 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ Int64\(\-79\) AS col1" at position 0 and "\(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 98 + - 79 AS col1, ( - col0 ) col1 FROM tab0 +---- +-15 +-87 +-97 +19 +19 +19 query I rowsort label-9279 SELECT - CAST ( + + ( 14 ) AS INTEGER ) + - - 85 * - + COUNT ( * ) * + + ( - 79 ) FROM tab0 @@ -56457,8 +57084,11 @@ SELECT - ( + + col0 ) AS col0, col0 * - col2 + col2 * - col0 * + 5 FROM tab0 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "sum\(\(\- tab1\.col1\)\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col0, SUM ( - col1 ) + + + COUNT ( * ) / - 69 col0 FROM tab1 +---- +-66 +3 query II rowsort SELECT 96 AS col1, col0 * col2 * - col0 AS col2 FROM tab1 @@ -56568,8 +57198,10 @@ SELECT - + col0, - 95 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 116584ef45c0f807f4c6805ad977e6a1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + col0, - col0, + + col2 FROM tab0 AS cor0 +---- +9 values hashing to 7eb022befd71a80373c0585c392938e1 query I rowsort SELECT + - ( 55 ) AS col0 FROM tab0 cor0 @@ -57367,8 +57999,15 @@ SELECT DISTINCT + + col1 - + col2 FROM tab2 AS cor0 WHERE + 21 BETWEEN NULL AND # Datafusion - Expected - 50 # Datafusion - Expected - -96 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, + 50 AS col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +50 +50 +50 query I rowsort label-9456 SELECT - MAX ( + - ( - 36 ) ) FROM tab1 AS cor0 @@ -57401,8 +58040,15 @@ SELECT + MAX ( DISTINCT col2 ) FROM tab1 cor0 # Datafusion - Expected - 16 # Datafusion - Expected - 43 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) / cor0\.col1 AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 43 / col1 AS col1, 16 AS col1 FROM tab0 AS cor0 +---- +0 +16 +16 +16 +2 +43 query I rowsort SELECT - + col1 * + + 94 AS col0 FROM tab0 AS cor0 @@ -58414,8 +59060,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + - COUNT ( * ) ) col0, 45 AS col0 FROM tab2 +---- +-3 +45 query I rowsort SELECT + - ( + + col0 ) AS col0 FROM tab2 WHERE NULL <= NULL @@ -59043,8 +59692,11 @@ 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\(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\. +query II valuesort SELECT ALL + 64 AS col1, - COUNT ( * ) - + - SUM ( DISTINCT col2 ) * + COUNT ( * ) * + 67 * + 70 AS col1 FROM tab1 +---- +3137607 +64 query I rowsort SELECT + col1 + - col1 col2 FROM tab2 cor0 WHERE NOT NULL > col0 @@ -59235,8 +59887,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT 68 * col0 + - - col1 IS NOT NULL # Datafusion - Expected - 87 # Datafusion - Expected - 291 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) / Int64\(25\) \* \(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col0 / 25 * - col0 AS col1, col0 AS col1 FROM tab0 cor0 +---- +0 +15 +261 +291 +87 +97 query I rowsort label-9769 SELECT - COUNT ( * ) + - + 72 + + + MIN ( DISTINCT + col0 ) FROM tab0 @@ -59613,8 +60272,15 @@ SELECT ALL SUM ( DISTINCT + ( + - col2 ) ) + + COUNT ( * ) FROM tab1 # Datafusion - Expected - 30 # Datafusion - Expected - 77 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, + 30 AS col0 FROM tab2 +---- +30 +30 +30 +51 +67 +77 query I rowsort label-9830 SELECT ALL + col0 * CAST ( NULL AS INTEGER ) + col1 + col0 AS col0 FROM tab1 @@ -59830,8 +60496,15 @@ SELECT ( - - 55 ) FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - -41 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 41 AS col0, + col2 AS col0 FROM tab0 +---- +-41 +-41 +-41 +10 +47 +99 query I rowsort label-9865 SELECT - - 9 / - 83 * - col2 * + col1 * + col2 * - ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 @@ -60188,8 +60861,11 @@ SELECT - 11 * - col0 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(58\)\) \+ CAST\(NULL AS Int32\) \- \(\- Int64\(\-11\)\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 58 + CAST ( NULL AS INTEGER ) - - + ( ( - 11 ) ) AS col1, ( + 12 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 +---- +12 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] diff --git a/data/sqlite/random/aggregates/slt_good_12.slt b/data/sqlite/random/aggregates/slt_good_12.slt index ec0fbf9..c08893d 100644 --- a/data/sqlite/random/aggregates/slt_good_12.slt +++ b/data/sqlite/random/aggregates/slt_good_12.slt @@ -48,8 +48,15 @@ SELECT ALL * FROM tab0 cor0 WHERE NULL NOT BETWEEN + col0 AND - ( + 75 ) * + col # Datafusion - Expected - 73 # Datafusion - Expected - 18 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ Int64\(64\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col0 + + 64 AS col1, + 73 AS col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL +---- +-11 +0 +18 +73 +73 +73 query I rowsort label-2 SELECT - + col0 / + col2 + - col2 + col2 FROM tab0 AS cor0 @@ -729,8 +736,15 @@ SELECT ALL + - col0 * - col2 * + 45 + ( - col1 ) + col2 * + - 50 * + 78 AS col0 # Datafusion - Expected - -84 # Datafusion - Expected - -1210 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-22\)\) \* Int64\(\-55\) AS col0" at position 0 and "Int64\(\-84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 22 * - 55 AS col0, - 84 AS col0 FROM tab1 AS cor0 +---- +-1210 +-1210 +-1210 +-84 +-84 +-84 query I rowsort SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT 96 IS NULL @@ -1344,8 +1358,11 @@ SELECT DISTINCT + ( + ( - + 40 ) ) AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + 40 ) AS col2, COUNT ( * ) col2 FROM tab0 +---- +3 +40 query I rowsort SELECT + + col1 + - col1 + 26 * col0 FROM tab0 cor0 @@ -1389,8 +1406,15 @@ SELECT DISTINCT col2 * + - 43 + - + col2 + - + 68 * col1 / + col2 FROM tab2 AS c # Datafusion - Expected - -2093 # Datafusion - Expected - -5 # Datafusion - Expected - -1955 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 \* Int64\(\-23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col2, + col0 * - 23 col2 FROM tab1 AS cor0 +---- +-1173 +-14 +-1955 +-2093 +-47 +-5 query II rowsort SELECT + col2, - 70 FROM tab0 AS cor0 @@ -1556,8 +1580,15 @@ SELECT - 45 / + COUNT ( * ) AS col0 FROM tab0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, col1 AS col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 @@ -1566,8 +1597,15 @@ SELECT DISTINCT + col1, col1 AS col1 FROM tab2 # Datafusion - Expected - -91 # Datafusion - Expected - -5 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col0" at position 0 and "\(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, ( - col0 ) AS col0 FROM tab1 +---- +-14 +-47 +-5 +-51 +-85 +-91 query I rowsort label-239 SELECT MIN ( DISTINCT + + col0 ) + - + COUNT ( * ) FROM tab1 @@ -1771,8 +1809,15 @@ SELECT + col0 + + + col2 AS col2 FROM tab1 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col2 \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 AS col0, col2 + - - CAST ( NULL AS INTEGER ) * + col2 col0 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +NULL +NULL +NULL query I rowsort SELECT ALL + - col2 * 11 AS col0 FROM tab2 AS cor0 @@ -1932,8 +1977,15 @@ SELECT DISTINCT - col2 + + + col1 AS col1 FROM tab1 # Datafusion - Expected - -3776 # Datafusion - Expected - 91 # Datafusion - Expected - -4352 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "\(\- tab1\.col2\) \* Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col1, - col2 * 64 col1 FROM tab1 +---- +-3776 +-4352 +-6144 +51 +85 +91 query I rowsort label-296 SELECT ALL MAX ( + col1 ) AS col1 FROM tab0 @@ -2058,8 +2110,15 @@ SELECT DISTINCT + 65 * col1 col2 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 78 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 AS col0, col1 AS col0 FROM tab1 +---- +14 +47 +5 +78 +78 +78 query I rowsort label-315 SELECT ALL + col2 / + col1 * col2 col2 FROM tab2 @@ -2463,8 +2522,15 @@ SELECT col1 + 47 FROM tab2 AS cor0 # Datafusion - Expected - 2 # Datafusion - Expected - -81 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col1" at position 0 and "cor0\.col1 \- Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 81 AS col1, + col1 - + 3 col1 FROM tab1 cor0 +---- +-81 +-81 +-81 +11 +2 +44 query I rowsort SELECT ALL + - col0 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL ) @@ -3218,8 +3284,15 @@ NULL # Datafusion - Expected - 9 # Datafusion - Expected - -81 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(95\) / cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col1 col0, + 95 / + col2 AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +0 +2 +9 query I rowsort SELECT DISTINCT 35 * - 33 * col1 AS col0 FROM tab0 @@ -3344,8 +3417,9 @@ NULL NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col1" at position 0 and "Int64\(\-48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 58 AS col1, - 48 AS col1 FROM tab0 AS cor0 WHERE + CAST ( col1 AS INTEGER ) IS NULL +---- query II rowsort label-532 SELECT + + col0 / + col0 + + + 52 AS col1, - col2 FROM tab0 AS cor0 @@ -4365,8 +4439,15 @@ SELECT col1 * - + 57 FROM tab2 AS cor0 # Datafusion - Expected - -81 # Datafusion - Expected - -31 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ \(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 + - col1 AS col0, - col1 col0 FROM tab0 AS cor0 +---- +-1 +-100 +-128 +-21 +-31 +-81 query I rowsort SELECT ALL + 62 * + ( - ( - + 59 ) ) * - - col0 + col0 FROM tab2 AS cor0 @@ -4898,8 +4979,10 @@ SELECT ALL ( - + 40 ) - - 10 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 836379b28f8b4f9201dde17a42f5929c -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 1 and "tab2\.col1 \* \(\- Int64\(\-49\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col0, col0 col2, col1 * - - 49 AS col2 FROM tab2 +---- +9 values hashing to be5ea7ffededdcfb7c9365411ddbdb3f query I rowsort label-779 SELECT DISTINCT + 82 / 18 AS col1 FROM tab2 AS cor0 @@ -5859,8 +5942,11 @@ SELECT - 28 FROM tab2 AS cor0 WHERE col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col2, + COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +3 +3 query I rowsort label-945 SELECT DISTINCT 71 + - - col1 + - col2 / + + col0 + col1 FROM tab1 @@ -6071,8 +6157,15 @@ SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE NULL <> 99 * + col2 # Datafusion - Expected - -7189 # Datafusion - Expected - 5 # Datafusion - Expected - -6715 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 \* Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, col0 * - 79 col2 FROM tab1 AS cor0 +---- +-4029 +-6715 +-7189 +14 +47 +5 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 18 NOT BETWEEN NULL AND + col0 @@ -7022,8 +7115,11 @@ SELECT + 7 * + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, 94 AS col1 FROM tab1 AS cor0 +---- +3 +94 query I rowsort SELECT + + col1 * - col2 + - - col1 FROM tab0 AS cor0 @@ -7994,8 +8090,11 @@ SELECT ALL col0 + + col0 * - + col0 - + - 27 col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- cor0\.col0\)\)\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MAX ( - ( col0 ) ) AS col2, + 54 AS col2 FROM tab2 AS cor0 +---- +46 +54 query I rowsort SELECT + - col1 * + col1 + + 6 * 45 AS col1 FROM tab1 AS cor0 @@ -8272,8 +8371,15 @@ SELECT ALL + ( + - 32 ) col0, col2 AS col1 FROM tab1 # Datafusion - Expected - 60 # Datafusion - Expected - 529 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* \(\- \(\- tab2\.col2\)\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * - - col2 AS col2, 60 AS col2 FROM tab2 +---- +1600 +3364 +529 +60 +60 +60 query I rowsort SELECT + 58 col1 FROM tab1 @@ -8390,8 +8496,15 @@ SELECT MIN ( + 85 ) * COUNT ( + + 0 ) FROM tab0 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + + col0 ), col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT DISTINCT + 93 col0 FROM tab2 cor0 @@ -9698,8 +9811,15 @@ SELECT ALL - MIN ( DISTINCT + CAST ( - col0 AS INTEGER ) ) AS col2 FROM tab1 # Datafusion - Expected - -128 # Datafusion - Expected - 300 # Datafusion - Expected - -150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* Int64\(4\) AS col2" at position 0 and "\(\- tab2\.col0\) \+ \(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * + + 4 AS col2, + ( - col0 ) + - col0 AS col2 FROM tab2 +---- +-128 +-150 +-92 +184 +256 +300 query I rowsort SELECT DISTINCT - 30 + col1 + + 33 AS col1 FROM tab0 WHERE NULL IS NOT NULL @@ -10403,8 +10523,15 @@ SELECT + 95 / - 39 FROM tab0 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 col0, + col0 AS col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query II rowsort SELECT DISTINCT col0 col0, ( 89 ) * col2 + col1 FROM tab0 cor0 @@ -10430,8 +10557,15 @@ SELECT - col0 * - 6 + - + col1 + 97 - col2 / - col2 FROM tab0 # Datafusion - Expected - -15 # Datafusion - Expected - -74 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ \(\- cor0\.col2\) AS col0" at position 0 and "Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 + - col2 AS col0, - 15 AS col0 FROM tab2 AS cor0 +---- +-117 +-125 +-15 +-15 +-15 +-74 query II rowsort SELECT col1 * ( + 88 ) + - 65 + - col2, + col2 AS col0 FROM tab2 AS cor0 @@ -10508,8 +10642,15 @@ SELECT ALL + col1 AS col2, + 7 * 85 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - -11 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(11\)\) AS col0" at position 0 and "cor0\.col1 / cor0\.col2 \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 11 AS col0, col1 / + col2 + + ( ( + col1 ) ) AS col0 FROM tab2 AS cor0 +---- +-11 +-11 +-11 +53 +68 +78 query II rowsort SELECT DISTINCT - col1, + ( 23 ) AS col2 FROM tab0 AS cor0 @@ -10845,8 +10986,15 @@ SELECT DISTINCT + + 16 FROM tab0 AS cor0 WHERE NOT + 62 * + + col2 <> - - col2 * # Datafusion - Expected - -5856 # Datafusion - Expected - -99 # Datafusion - Expected - 9602 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "tab0\.col1 \* \(\- tab0\.col1\) \- tab0\.col0 \* \(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, col1 * - col1 - col0 * - col2 AS col1 FROM tab0 +---- +-10 +-47 +-5856 +-99 +429 +9602 query I rowsort SELECT ALL + ( - col1 ) * - 60 + + - ( + col0 ) AS col2 FROM tab2 AS cor0 @@ -11381,8 +11529,9 @@ SELECT * FROM tab1 WHERE ( NOT - 95 IS NULL ) 9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, + col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL +---- query I rowsort SELECT DISTINCT 79 - 26 * - - ( - + 69 ) col0 FROM tab1 @@ -13790,8 +13939,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * - COUNT ( * ) AS col2, + COUNT ( * ) + 88 AS col2 FROM tab0 +---- +-9 +91 query II rowsort SELECT DISTINCT + - col0 * - - col0 AS col1, + col2 col0 FROM tab1 AS cor0 @@ -14127,8 +14279,15 @@ SELECT ALL - 89 col1, COUNT ( * ) + 58 col2 FROM tab1 # Datafusion - Expected - 68 # Datafusion - Expected - -490 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* \(\- tab1\.col1\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 98 * - col1 AS col1, col2 AS col1 FROM tab1 +---- +-1372 +-4606 +-490 +59 +68 +96 query I rowsort label-2312 SELECT - MIN ( - + 18 ) * + COUNT ( * ) FROM tab1 @@ -14268,8 +14427,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= + - col0 # Datafusion - Expected - 23 # Datafusion - Expected - 77 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col2, 23 AS col2 FROM tab2 +---- +23 +23 +23 +51 +67 +77 query I rowsort label-2336 SELECT DISTINCT - 85 / + col0 FROM tab2 @@ -14581,8 +14747,11 @@ SELECT + - ( - - 52 ) AS col0, + 33 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 95 AS col1, + 32 col1 FROM tab2 AS cor0 +---- +32 +95 query I rowsort SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT NULL < + col1 @@ -16245,8 +16414,15 @@ SELECT - col2 * - + col1, 38 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 80 # Datafusion - Expected - 75 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 \+ Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, + col2 + + 40 AS col1 FROM tab2 AS cor0 +---- +46 +63 +64 +75 +80 +98 query III rowsort label-2654 SELECT ALL * FROM tab0 WHERE + CAST ( ( 12 ) AS INTEGER ) * col1 IS NOT NULL @@ -16316,8 +16492,15 @@ SELECT DISTINCT + + 75 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - -70 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 70 AS col0, col2 AS col0 FROM tab0 cor0 +---- +-70 +-70 +-70 +10 +47 +99 query I rowsort label-2666 SELECT DISTINCT - - COUNT ( + col2 ) + + COUNT ( * ) FROM tab2 AS cor0 @@ -16629,8 +16812,15 @@ SELECT - + CAST ( + 65 AS INTEGER ) + 91 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -3903 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ cor0\.col2 \+ cor0\.col2 \* \(\- cor0\.col1\) AS col1" at position 0 and "Int64\(3\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - col0 ) + + col2 + col2 * - col1 AS col1, 3 * - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 +---- +-1196 +-3104 +-3903 +NULL +NULL +NULL query I rowsort SELECT - col2 + ( - + 26 ) FROM tab2 AS cor0 @@ -17065,8 +17255,11 @@ SELECT - + COUNT ( - 69 ) col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 121 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- cor0\.col2\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( - col2 ) AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL +---- +121 +3 query I rowsort SELECT DISTINCT 27 / + col2 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN + 98 * - 12 AND NULL @@ -17137,8 +17330,11 @@ SELECT DISTINCT - + col1 + + 2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 47 AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +3 +47 query I rowsort label-2800 SELECT DISTINCT + ( - CAST ( CAST ( 65 AS INTEGER ) AS INTEGER ) ) + - 96 + + MIN ( + - col0 ) FROM tab2 AS cor0 @@ -18451,8 +18647,15 @@ SELECT DISTINCT - MIN ( DISTINCT - 46 ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -580 # Datafusion - Expected - 97 # Datafusion - Expected - -5742 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "cor0\.col2 \* Int64\(\-58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * - - col1 AS col2, col2 * - 58 AS col2 FROM tab0 cor0 +---- +-2726 +-5742 +-580 +1215 +1827 +97 query I rowsort label-3019 SELECT ALL CAST ( NULL AS INTEGER ) * + + 68 * + + 42 * col1 + col1 * col0 AS col0 FROM tab0 AS cor0 @@ -19478,8 +19681,12 @@ SELECT 21 * 49 col1 FROM tab1 # Datafusion - Expected - 10 # Datafusion - Expected - 3 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(tab0\.col2\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT MIN ( ALL col2 ) AS col2, COUNT ( * ) AS col2, + 47 FROM tab0 +---- +10 +3 +47 query I rowsort label-3181 SELECT + COUNT ( * ) + - 30 AS col1 FROM tab0 cor0 @@ -20185,8 +20392,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 ) + - col1 / 23 * + - CAST ( NULL AS # Datafusion - Expected - 1552 # Datafusion - Expected - -42 # Datafusion - Expected - 240 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col1" at position 0 and "cor0\.col0 \* Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 42 col1, col0 * + + 16 AS col1 FROM tab0 AS cor0 +---- +-42 +-42 +-42 +1392 +1552 +240 query I rowsort label-3296 SELECT DISTINCT + 22 * + + COUNT ( * ) AS col1 FROM tab2 AS cor0 @@ -20571,8 +20785,15 @@ SELECT - col1, col1 * col2 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 93 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 93 AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +14 +47 +5 +93 +93 +93 query I rowsort SELECT + ( - col2 ) - + col1 FROM tab0 AS cor0 WHERE NOT ( + col1 ) IS NOT NULL @@ -21179,8 +21400,15 @@ SELECT DISTINCT + - col2 AS col2, - col2 + + 39 FROM tab2 AS cor0 # Datafusion - Expected - 5103 # Datafusion - Expected - 49 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col1" at position 0 and "Int64\(63\) \* \(\- \(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 49 AS col1, + 63 * - - col1 col1 FROM tab0 AS cor0 +---- +1323 +49 +49 +49 +5103 +63 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( + ( + col2 ) ) @@ -21808,8 +22036,15 @@ NULL # Datafusion - Expected - 48 # Datafusion - Expected - 99 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 AS col1, + 48 AS col1 FROM tab0 AS cor0 +---- +10 +47 +48 +48 +48 +99 query I rowsort label-3570 SELECT col0 FROM tab0 AS cor0 WHERE NOT CAST ( + col0 AS INTEGER ) IS NULL @@ -22004,8 +22239,11 @@ SELECT ALL * FROM tab0 WHERE - col1 + - col1 / + - col1 BETWEEN ( + 30 ) AND NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab2 +---- +3 +NULL query II rowsort SELECT 18 * + 42 * - col2 AS col2, - 14 FROM tab0 @@ -22040,8 +22278,9 @@ SELECT col0, 97 / col1 col2 FROM tab0 97 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 91 col0, + 1 AS col0 FROM tab2 WHERE NOT NULL IS NULL +---- query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE - col0 = ( NULL ) @@ -22212,8 +22451,15 @@ SELECT ALL + col1 AS col0, col2 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - -58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col2 AS col2, + col1 AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +51 +67 +77 query II rowsort SELECT + - col2 col2, 99 AS col1 FROM tab1 AS cor0 @@ -22556,8 +22802,9 @@ SELECT ALL ( + ( - + 78 ) ) * - + col1 - 33 AS col0 FROM tab1 3633 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\)" at position 0 and "\(\- tab2\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0, - col0 FROM tab2 WHERE NOT NULL <= col0 + - col0 - - 98 +---- query I rowsort label-3688 SELECT - + 35 + - - ( - col0 ) - + - col0 * + col2 / - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS FLOAT8 ) NOT BETWEEN + col0 AND NULL @@ -22633,8 +22880,9 @@ SELECT DISTINCT - + col2 * - + col0 * - + 2 + - - 22 FROM tab0 cor0 -19184 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col1" at position 0 and "\(\- tab2\.col1\) \+ \(\- Int64\(\-44\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col1, - col1 + ( - - 44 ) col1 FROM tab2 WHERE - col2 NOT IN ( 23 * 84 + col1 * - CAST ( NULL AS FLOAT8 ), + col2, col0, + col2, - 93 ) +---- query II rowsort SELECT DISTINCT - col0 + - + col2, col0 AS col2 FROM tab1 @@ -22813,8 +23061,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(\-33\)\) AS col0" at position 0 and "Int64\(\-37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( MAX ( DISTINCT + ( - 33 ) ) ) AS col0, - 37 AS col0 FROM tab2 +---- +-33 +-37 query I rowsort label-3728 SELECT DISTINCT MAX ( ALL + + col1 ) * + - 11 + + - COUNT ( * ) FROM tab1 @@ -22942,8 +23193,11 @@ SELECT DISTINCT - + col2 + + col2 + + 38 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 95 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT col1 IS NULL +---- +-95 +NULL query I rowsort label-3748 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - col2 * col1 + + col2 * 87 - col1 FROM tab0 @@ -23229,8 +23483,15 @@ SELECT DISTINCT - col0 * 28 AS col0 FROM tab2 # Datafusion - Expected - -1 # Datafusion - Expected - 5250 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* tab2\.col0 AS col2" at position 0 and "Int64\(42\) / Int64\(\-40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 70 * + + col0 col2, + 42 / - 40 AS col2 FROM tab2 +---- +-1 +-1 +-1 +3220 +4480 +5250 query I rowsort SELECT DISTINCT 93 AS col1 FROM tab1 WHERE NOT - col1 IS NOT NULL @@ -23372,8 +23633,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT 75 IS NULL # Datafusion - Expected - 52 # Datafusion - Expected - -65 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col0" at position 0 and "Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 65 AS col0, 52 col0 FROM tab1 +---- +-65 +-65 +-65 +52 +52 +52 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 @@ -23382,8 +23650,15 @@ SELECT ALL - 65 AS col0, 52 col0 FROM tab1 # Datafusion - Expected - -21 # Datafusion - Expected - -97 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col1, - col1 AS col1 FROM tab0 +---- +-1 +-15 +-21 +-81 +-87 +-97 query II rowsort SELECT ALL col0 col1, col2 FROM tab2 @@ -23865,8 +24140,11 @@ SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col1 AND + - col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(78\) AS Int32\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( + 78 AS INTEGER ) col0, 22 AS col0 FROM tab0 +---- +22 +78 query I rowsort label-3899 SELECT ALL MAX ( ALL CAST ( + col1 AS INTEGER ) ) + + 60 FROM tab1 @@ -24603,8 +24881,15 @@ SELECT DISTINCT - col2 + col2 + 35 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 23 # Datafusion - Expected - -90760 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col2 \+ \(\- \(\- cor0\.col2\)\) \+ cor0\.col1 \* \(\- cor0\.col2\) \* \(\- Int64\(\-30\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * + col2 + - - col2 + + col1 * - col2 * - - 30 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +-113158 +-34638 +-90760 +23 +40 +58 query I rowsort label-4018 SELECT DISTINCT - COUNT ( * ) - - ( + 82 ) AS col2 FROM tab2 AS cor0 @@ -25395,8 +25680,15 @@ SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NULL = NULL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col1, + col1 AS col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-4144 SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE NOT CAST ( + col0 AS INTEGER ) >= NULL @@ -26035,8 +26327,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 58 AS col0, - ( - + COUNT ( * ) ) AS col0 FROM tab0 +---- +3 +58 query I rowsort label-4242 SELECT - COUNT ( - 20 ) FROM tab0 AS cor0 @@ -26550,8 +26845,15 @@ SELECT ALL + SUM ( + 94 ) * 29 FROM tab1 AS cor0 WHERE NOT ( - 59 * + col0 ) IS # Datafusion - Expected - 49 # Datafusion - Expected - 91 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, 49 AS col2 FROM tab1 cor0 +---- +49 +49 +49 +51 +85 +91 query I rowsort label-4330 SELECT - col1 * + - CAST ( 54 AS INTEGER ) + col2 * + 12 FROM tab2 AS cor0 @@ -28612,8 +28914,11 @@ SELECT CAST ( SUM ( + - col0 ) AS INTEGER ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "Int64\(\-97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 90 col0, - 97 col0 FROM tab1 AS cor0 +---- +-97 +90 query I rowsort SELECT col1 * + + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL @@ -29390,8 +29695,15 @@ SELECT ALL 6 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, + col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query II rowsort SELECT col0, - col2 AS col1 FROM tab2 @@ -29525,8 +29837,15 @@ SELECT ALL - 59 * - col1 AS col2 FROM tab2 WHERE NOT - + col1 + - - CAST ( NULL # Datafusion - Expected - -912673 # Datafusion - Expected - 0 # Datafusion - Expected - -3375 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) / \(\- tab0\.col1\) AS col1" at position 0 and "tab0\.col0 \* tab0\.col0 \* \(\- CAST\(tab0\.col0 AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 / - col1 col1, col0 * col0 * - CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 +---- +-2 +-3375 +-48 +-658503 +-912673 +0 query I rowsort label-4810 SELECT + CAST ( + 52 AS INTEGER ) * - COUNT ( DISTINCT + + col2 ) FROM tab1 @@ -30746,8 +31065,15 @@ SELECT DISTINCT + 71 * 94 FROM tab2 # Datafusion - Expected - -1 # Datafusion - Expected - -3886 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \* tab2\.col1 AS col1" at position 0 and "Int64\(39\) \+ \(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 * + + col1 AS col1, 39 + - col2 AS col1 FROM tab2 +---- +-1 +-1173 +-19 +-3080 +-3886 +16 query I rowsort label-5006 SELECT DISTINCT - MAX ( 18 ) col1 FROM tab2 @@ -30824,8 +31150,15 @@ NULL # Datafusion - Expected - -2560 # Datafusion - Expected - -63 # Datafusion - Expected - -4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-90\)\)\) \+ Int64\(27\) AS col1" at position 0 and "cor0\.col2 \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( + - 90 ) + 27 AS col1, ( col2 ) * + - col0 col1 FROM tab2 AS cor0 +---- +-1058 +-2560 +-4350 +-63 +-63 +-63 query I rowsort label-5017 SELECT + SUM ( - col0 ) + + COUNT ( * ) * + + 94 FROM tab1 AS cor0 @@ -31104,8 +31437,11 @@ SELECT col1 * + + 32 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +3 +89 query I rowsort label-5062 SELECT + 23 / + ( + 3 ) AS col1 FROM tab0 @@ -32559,8 +32895,15 @@ SELECT + - COUNT ( * ) FROM tab0 WHERE NULL < + 95 - - col1 # Datafusion - Expected - 82 # Datafusion - Expected - 518 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ Int64\(\-36\) \* \(\- tab1\.col1\) AS col2" at position 0 and "Int64\(87\) \+ \(\- tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 + - 36 * - col1 AS col2, 87 + - col1 col2 FROM tab1 +---- +1739 +185 +40 +518 +73 +82 query I rowsort SELECT ALL + + 42 FROM tab0 WHERE NOT - col0 <> NULL @@ -32712,8 +33055,15 @@ SELECT 58 AS col1 FROM tab2 WHERE NOT NULL < ( - + col1 ) # Datafusion - Expected - -129 # Datafusion - Expected - 0 # Datafusion - Expected - -139 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) / tab2\.col2 AS col2" at position 0 and "\(\- tab2\.col1\) \+ \(\- Int64\(62\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 1 / + col2 AS col2, - col1 + - + 62 AS col2 FROM tab2 +---- +-113 +-129 +-139 +0 +0 +0 query II rowsort SELECT ALL col2 * ( col2 ), col2 col2 FROM tab2 @@ -32801,8 +33151,15 @@ SELECT ALL + 13 col0 FROM tab0 # Datafusion - Expected - -68 # Datafusion - Expected - -6787 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-53\)\) \+ Int64\(\-72\) \* cor0\.col1 \* Int64\(19\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 53 + - 72 * + col1 * 19 AS col0, - col2 AS col0 FROM tab1 cor0 +---- +-19099 +-59 +-64243 +-6787 +-68 +-96 query I rowsort SELECT - 53 * - col2 + + col0 AS col2 FROM tab2 AS cor0 @@ -33279,8 +33636,15 @@ SELECT DISTINCT + + 77 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = - col2 / - - c # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, + col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-5419 SELECT DISTINCT + 10 / - col2 FROM tab0 AS cor0 @@ -33547,8 +33911,15 @@ SELECT col2 / - - col0 AS col0 FROM tab1 # Datafusion - Expected - 77 # Datafusion - Expected - 97 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, 77 AS col2 FROM tab0 +---- +15 +77 +77 +77 +87 +97 query I rowsort SELECT ALL ( - + 76 ) FROM tab2 @@ -33618,8 +33989,15 @@ NULL # Datafusion - Expected - 2457 # Datafusion - Expected - -5 # Datafusion - Expected - 2295 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col0 \* Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col1 AS col1, col0 * + 27 AS col1 FROM tab1 AS cor0 WHERE NOT - 61 + col1 IS NULL +---- +-14 +-47 +-5 +1377 +2295 +2457 query I rowsort label-5475 SELECT - - col2 / + - col0 - 27 FROM tab2 AS cor0 @@ -34156,8 +34534,15 @@ SELECT ALL col2 / - + 52 FROM tab0 # Datafusion - Expected - -26 # Datafusion - Expected - 58 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(21\) \- Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, 21 - + 47 col1 FROM tab2 AS cor0 +---- +-26 +-26 +-26 +23 +40 +58 query II rowsort SELECT ALL 19 AS col1, col2 AS col0 FROM tab0 AS cor0 @@ -34277,8 +34662,15 @@ SELECT ALL - - 1 + + col0 FROM tab1 AS cor0 # Datafusion - Expected - -97 # Datafusion - Expected - 30 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ Int64\(\-17\) AS col0" at position 0 and "Int64\(\-97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 + + - 17 AS col0, - 97 AS col0 FROM tab1 +---- +-12 +-3 +-97 +-97 +-97 +30 query I rowsort SELECT + col0 * + ( + col0 ) col1 FROM tab0 @@ -34445,8 +34837,15 @@ SELECT DISTINCT - - 82, col2 + - col1 col1 FROM tab2 AS cor0 # Datafusion - Expected - 1972 # Datafusion - Expected - 59 # Datafusion - Expected - 782 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "Int64\(\-34\) \* \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 59 AS col0, - 34 * - + col2 AS col0 FROM tab2 AS cor0 +---- +1360 +1972 +59 +59 +59 +782 query I rowsort SELECT DISTINCT - col1 + + 19 + col0 AS col2 FROM tab2 AS cor0 @@ -34557,8 +34956,15 @@ SELECT col0 AS col2, - col2 - + - 92 * + col1 col1 FROM tab0 # Datafusion - Expected - -64 # Datafusion - Expected - -1808 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* \(\- tab2\.col0\) \- \(\- tab2\.col1\) AS col0" at position 0 and "CAST\(\(\- tab2\.col0\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 25 * - col0 - - + col1 AS col0, + CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 +---- +-1099 +-1523 +-1808 +-46 +-64 +-75 query I rowsort SELECT + + 2 * - 51 FROM tab0 AS cor0 @@ -34859,8 +35265,15 @@ SELECT ALL 74 col2 FROM tab0 AS cor0 # Datafusion - Expected - 47 # 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 "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 AS col1, col2 AS col1 FROM tab0 AS cor0 +---- +-10 +-10 +-10 +10 +47 +99 query I rowsort label-5672 SELECT DISTINCT + + MIN ( DISTINCT + col0 ) FROM tab2 AS cor0 @@ -35263,8 +35676,11 @@ SELECT - ( 59 ) AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 +---- +3 +NULL query II rowsort label-5738 SELECT ALL COUNT ( * ) col2, - 6 FROM tab2 WHERE col2 IN ( + 11 ) @@ -35472,8 +35888,15 @@ SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE - - col2 IS NOT NULL # Datafusion - Expected - 5015 # Datafusion - Expected - -2 # Datafusion - Expected - 6188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 / Int64\(\-34\) AS col2" at position 0 and "tab1\.col2 \* tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 / - 34 AS col2, col2 * col0 AS col2 FROM tab1 +---- +-1 +-2 +-2 +4896 +5015 +6188 query I rowsort SELECT DISTINCT + 38 FROM tab1 WHERE ( col1 * 93 * col2 ) BETWEEN ( NULL ) AND 37 @@ -36165,8 +36588,10 @@ SELECT ALL + MAX ( DISTINCT col0 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 2e8344ef1a5d3ff4d5c3568a5493eac1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col2" at position 0 and "\(\- tab2\.col2\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 73 AS col2, - 39, - col2 col2 FROM tab2 +---- +9 values hashing to 597ce13ea059335e711146e3964bb8e4 query II rowsort SELECT DISTINCT + 44 AS col1, col1 * - 44 FROM tab0 WHERE NOT - - col2 * - + col0 * - - 82 > NULL @@ -37018,8 +37443,10 @@ SELECT - 83, - col2 + + col1 AS col0, + col2 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 6404aee99bf8a4cb22feb021fc6a7a96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 1 and "tab0\.col1 AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT col2 AS col2, - ( col1 ) AS col0, col1 AS col0 FROM tab0 +---- +9 values hashing to af58f940086d1252d592554614503cd4 query II rowsort SELECT + col1, col0 AS col2 FROM tab1 @@ -37048,8 +37475,15 @@ SELECT ALL SUM ( DISTINCT - 67 ) AS col1 FROM tab1 # Datafusion - Expected - -47 # Datafusion - Expected - 2 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "\(\- tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 2 AS col2, - col1 AS col2 FROM tab1 +---- +-14 +-47 +-5 +2 +2 +2 query I rowsort SELECT ALL + + 37 AS col2 FROM tab0 WHERE NULL IS NOT NULL @@ -38639,14 +39073,20 @@ SELECT + + 22 + - col1 + + + col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \+ Int64\(\-89\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 83 + - 89 AS col2, + COUNT ( * ) AS col2 FROM tab1 +---- +-6 +3 # 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MAX ( - - 62 ) AS col2, - COUNT ( * ) AS col2 FROM tab2 +---- +-3 +-62 query I rowsort label-6298 SELECT ALL + + COUNT ( * ) - COUNT ( * ) AS col2 FROM tab1 WHERE + + col0 / col0 IS NULL @@ -39080,8 +39520,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 29 * col0 IS NULL # Datafusion - Expected - 7225 # Datafusion - Expected - -41 # Datafusion - Expected - 8281 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col0" at position 0 and "cor0\.col0 \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 41 AS col0, col0 * + + col0 AS col0 FROM tab1 AS cor0 +---- +-41 +-41 +-41 +2601 +7225 +8281 query I rowsort SELECT + - 54 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 @@ -39168,8 +39615,11 @@ 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\(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\. +query II valuesort SELECT + - COUNT ( * ) AS col0, + MAX ( - ( + 47 ) ) col0 FROM tab2 AS cor0 WHERE 93 * 75 * + + col0 IS NULL +---- +0 +NULL query II rowsort label-6386 SELECT 35 - + 15 AS col1, MIN ( ALL - 46 ) FROM tab2, tab2 AS cor0 @@ -39446,8 +39896,9 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 76 IS NOT NULL 9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(73\) \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + col0 ) AS col1, 73 * - + col1 AS col1 FROM tab0 AS cor0 WHERE 75 <= NULL +---- query I rowsort label-6434 SELECT - MAX ( + - col1 ) AS col1 FROM tab0 AS cor0 @@ -40668,8 +41119,15 @@ SELECT * FROM tab2 WHERE NOT + col2 NOT IN ( col2 ) # Datafusion - Expected - 68 # Datafusion - Expected - NULL # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, + col2 AS col0 FROM tab1 +---- +59 +68 +96 +NULL +NULL +NULL query III rowsort SELECT ALL * FROM tab0 cor0 WHERE col2 * + - col1 NOT BETWEEN - col1 * + col0 * ( + col1 ) * 68 + + 52 / col0 * - col2 * 31 AND ( + 85 ) @@ -41199,8 +41657,15 @@ SELECT ( + col2 ) + + CAST ( - + col2 AS INTEGER ) * - col1 FROM tab1 cor0 # Datafusion - Expected - -714 # Datafusion - Expected - 90 # Datafusion - Expected - -425 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "cor0\.col1 \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 + ( - - col0 ) AS col2, col1 * - col0 AS col2 FROM tab1 AS cor0 +---- +-425 +-4277 +-714 +138 +65 +90 query I rowsort label-6721 SELECT - SUM ( - col1 ) / - + 29 FROM tab1 cor0 @@ -41469,8 +41934,15 @@ NULL # Datafusion - Expected - 6188 # Datafusion - Expected - 5 # Datafusion - Expected - 5015 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "tab1\.col2 \* tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col0, + col2 * col0 AS col0 FROM tab1 +---- +14 +47 +4896 +5 +5015 +6188 query II rowsort SELECT 21, - col2 col2 FROM tab0 @@ -41748,8 +42220,15 @@ SELECT * FROM tab2 WHERE col0 * col1 * - col1 >= ( NULL ) # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col0, col0 AS col0 FROM tab0 cor0 +---- +15 +15 +87 +87 +97 +97 query III rowsort SELECT * FROM tab1 AS cor0 WHERE col2 > col0 @@ -41911,8 +42390,15 @@ SELECT DISTINCT - col0 AS col2, col0 FROM tab1 # Datafusion - Expected - 17 # Datafusion - Expected - 15 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 15 AS col1, 17 AS col1 FROM tab0 +---- +15 +15 +15 +17 +17 +17 query I rowsort label-6835 SELECT ALL + - SUM ( 43 ) FROM tab1 AS cor0 @@ -42673,8 +43159,15 @@ NULL # Datafusion - Expected - 126 # Datafusion - Expected - 0 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / Int64\(\-51\) AS col2" at position 0 and "cor0\.col2 \- Int64\(\-68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 / - 51 AS col2, + col2 - - 68 AS col2 FROM tab2 AS cor0 +---- +-1 +-1 +0 +108 +126 +91 query I rowsort SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( + - col2 ) + - col2 < - col0 @@ -43184,8 +43677,15 @@ SELECT ALL + + col1 * 59 FROM tab1 AS cor0 # Datafusion - Expected - 63 # Datafusion - Expected - 66 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ \(\- tab0\.col0\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 + + - col0 AS col2, 63 AS col2 FROM tab0 +---- +-66 +-96 +63 +63 +63 +66 query I rowsort label-7050 SELECT + 10 * - MIN ( ALL + col2 ) AS col1 FROM tab1 @@ -43353,8 +43853,12 @@ 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\(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\. +query III valuesort SELECT ALL - COUNT ( * ), - COUNT ( * ), - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT 69 NOT IN ( + + 75 ) +---- +0 +0 +0 query I rowsort label-7076 SELECT ALL COUNT ( * ) * 26 FROM tab0 AS cor0 @@ -43907,8 +44411,9 @@ SELECT ALL col1 col1, - col1 AS col0 FROM tab1 -5 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "\(\- Int64\(\-22\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 col2, - ( - 22 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL +---- query I rowsort SELECT - col1 * - + 97 FROM tab0 @@ -44887,8 +45392,15 @@ SELECT DISTINCT + 24 + 72 + col0 * 29 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col2 \* CAST\(NULL AS Int32\) \- Int64\(\-99\) \+ cor0\.col2 \* Int64\(\-30\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 84 * ( + col2 ) * + CAST ( NULL AS INTEGER ) - - 99 + col2 * - 30 AS col1, col2 AS col1 FROM tab0 cor0 +---- +10 +47 +99 +NULL +NULL +NULL query I rowsort SELECT ( - col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL @@ -44970,8 +45482,15 @@ SELECT ALL + MAX ( + ( - - 65 ) ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - -714 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \* tab1\.col1 AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 * + + col1 AS col0, + col2 col0 FROM tab1 +---- +-425 +-4277 +-714 +59 +68 +96 query I rowsort SELECT 6 * - col2 FROM tab2 @@ -45111,8 +45630,15 @@ SELECT + 52 / + - 48 FROM tab2 cor0 # Datafusion - Expected - -64 # Datafusion - Expected - -75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col0, - col0 AS col0 FROM tab2 AS cor0 +---- +-46 +-46 +-64 +-64 +-75 +-75 query I rowsort label-7361 SELECT ALL + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 WHERE NOT - 91 >= NULL @@ -45187,8 +45713,11 @@ SELECT COUNT ( - CAST ( NULL AS INTEGER ) ), + COUNT ( * ) AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3078 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(19\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 54 * - COUNT ( * ) * + + 19 AS col2, COUNT ( * ) AS col2 FROM tab1 +---- +3 +3078 query II rowsort label-7373 SELECT - col2 * 50 AS col0, - col0 / - + 59 - + col0 FROM tab0 @@ -45398,8 +45927,11 @@ SELECT DISTINCT 98 col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(max\(CAST\(NULL AS Int32\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, CAST ( + MAX ( + + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1 FROM tab2 +---- +3 +NULL query I rowsort SELECT ALL + + 77 AS col1 FROM tab0 WHERE + col2 NOT BETWEEN + col0 AND NULL @@ -45827,8 +46359,15 @@ SELECT 63 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL # Datafusion - Expected - -3886 # Datafusion - Expected - 77 # Datafusion - Expected - -3080 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "tab2\.col1 \* \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, col1 * - col2 AS col2 FROM tab2 +---- +-1173 +-3080 +-3886 +51 +67 +77 query I rowsort SELECT ALL + 11 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 @@ -45996,8 +46535,15 @@ SELECT + 16, col0 FROM tab2 AS cor0 WHERE NOT ( - col1 * + 77 ) < NULL # Datafusion - Expected - -40 # Datafusion - Expected - 88 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 88 AS col0, - col2 AS col0 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +88 +88 +88 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( - 22 ) @@ -46075,8 +46621,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) * + + COUNT ( * ) + - COUNT ( * ) AS col0, 69 AS col0 FROM tab1 AS cor0 +---- +6 +69 query I rowsort SELECT ALL + 31 + + 37 AS col1 FROM tab2 AS cor0 @@ -46576,8 +47125,15 @@ SELECT - 76 * - 42 + - 67 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - -97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col0, + ( + ( + col1 ) ) AS col0 FROM tab0 +---- +-15 +-87 +-97 +1 +21 +81 query I rowsort label-7613 SELECT - MAX ( - ( - ( + ( + + 54 ) ) ) ) FROM tab0 @@ -47526,8 +48082,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "max\(cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, + MAX ( col2 ) AS col2 FROM tab1 AS cor0 +---- +-3 +96 query I rowsort label-7767 SELECT ALL + COUNT ( col1 ) col0 FROM tab1 AS cor0 @@ -47551,8 +48110,11 @@ SELECT COUNT ( ALL - - col1 ) AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(cor0\.col2\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( col2 ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +10 +3 query I rowsort label-7772 SELECT + COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab2 AS cor0 @@ -49878,8 +50440,15 @@ SELECT 73 / + 50 FROM tab1 # Datafusion - Expected - 15 # Datafusion - Expected - -96 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 AS col0, + 15 AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +15 +15 +15 query II rowsort SELECT + 96, col1 col0 FROM tab0 AS cor0 @@ -50020,8 +50589,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + col1 IN ( - col0, - col1 + col0 ) ) # Datafusion - Expected - 75 # Datafusion - Expected - -77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col1, col0 AS col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +46 +64 +75 query I rowsort SELECT + + col2 * - + col0 AS col1 FROM tab1 AS cor0 @@ -50113,8 +50689,15 @@ SELECT DISTINCT - COUNT ( + 21 ) AS col2 FROM tab1 # Datafusion - Expected - 55 # Datafusion - Expected - 12 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 AS col0, + 55 AS col0 FROM tab2 +---- +12 +12 +12 +55 +55 +55 query I rowsort SELECT + col1 * + - 35 - + 99 FROM tab2 @@ -50802,8 +51385,15 @@ SELECT MAX ( ALL - col2 ) AS col0, ( ( - SUM ( DISTINCT + col2 ) ) ) AS col1 FRO # Datafusion - Expected - -57 # Datafusion - Expected - 300 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* Int64\(4\) AS col1" at position 0 and "Int64\(\-57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 * 4 AS col1, - 57 col1 FROM tab2 +---- +-57 +-57 +-57 +184 +256 +300 query I rowsort label-8310 SELECT ALL - MIN ( - ( + - col0 ) ) FROM tab1 @@ -50944,8 +51534,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MAX ( col0 ) + - COUNT ( * ) AS col0, - 78 AS col0 FROM tab1 AS cor0 +---- +-78 +88 query I rowsort SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE col1 * + 14 IS NOT NULL @@ -51362,8 +51955,15 @@ SELECT DISTINCT + 25 * + - 71 * + COUNT ( * ) col1 FROM tab0 AS cor0 # Datafusion - Expected - 40 # 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 "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +23 +40 +58 +90 +90 +90 query I rowsort label-8408 SELECT DISTINCT MAX ( DISTINCT - - col2 ) AS col0 FROM tab2 cor0 @@ -51848,8 +52448,15 @@ SELECT - col2 * 21 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - -91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "\(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col1, - ( + col0 ) AS col1 FROM tab1 +---- +-51 +-51 +-85 +-85 +-91 +-91 query II rowsort SELECT col0 AS col2, - col2 FROM tab1 @@ -52410,8 +53017,15 @@ SELECT ALL + + 58, MAX ( + col2 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 3481 # Datafusion - Expected - 91 # Datafusion - Expected - 4624 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col2 \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + col0 ) AS col2, + col2 * + col2 AS col2 FROM tab1 AS cor0 +---- +3481 +4624 +51 +85 +91 +9216 query I rowsort label-8582 SELECT + COUNT ( * ) * + 72 AS col1 FROM tab1 AS cor0 @@ -52729,8 +53343,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE - col2 * 44 + + 90 BETWEEN - + 37 AND - col # Datafusion - Expected - 94 # Datafusion - Expected - -91 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \- Int64\(92\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + + col1 ) - + 92 AS col0, + 94 AS col0 FROM tab0 +---- +-11 +-71 +-91 +94 +94 +94 query III rowsort SELECT DISTINCT * FROM tab2 WHERE - 15 > NULL @@ -53253,8 +53874,15 @@ SELECT ALL COUNT ( DISTINCT + - col2 ) AS col0 FROM tab0 # Datafusion - Expected - 85 # Datafusion - Expected - -91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col1, + col0 AS col1 FROM tab1 +---- +-51 +-85 +-91 +51 +85 +91 query II rowsort SELECT - col0 col1, + col1 * - 60 AS col2 FROM tab1 @@ -54536,8 +55164,15 @@ SELECT ALL * FROM tab2 WHERE NOT + col0 * - 6 + - + col2 / - 90 IN ( ( + col2 ) # Datafusion - Expected - -25 # Datafusion - Expected - 96 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, - 25 col1 FROM tab1 +---- +-25 +-25 +-25 +59 +68 +96 query I rowsort label-8935 SELECT DISTINCT + COUNT ( * ) * - 33 AS col2 FROM tab2 WHERE NOT ( col2 ) <= NULL @@ -54872,8 +55507,12 @@ SELECT ALL + MAX ( + CAST ( - + 16 AS INTEGER ) ) AS col1 FROM tab0 # Datafusion - Expected - 3 # Datafusion - Expected - 25 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 1 and "Int64\(\-63\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT COUNT ( * ), + 25 AS col0, - 63 AS col0 FROM tab0 +---- +-63 +25 +3 query III rowsort label-8992 SELECT * FROM tab2 WHERE NOT - - col0 NOT BETWEEN - CAST ( NULL AS FLOAT8 ) * - col1 / + 8 AND ( - + 29 ) @@ -55519,8 +56158,15 @@ SELECT - 99 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL # Datafusion - Expected - -64 # Datafusion - Expected - -75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( col0 ) AS col1, - col0 AS col1 FROM tab2 AS cor0 +---- +-46 +-46 +-64 +-64 +-75 +-75 query II rowsort SELECT DISTINCT col2 AS col0, + col0 * + 19 AS col1 FROM tab0 @@ -55652,8 +56298,11 @@ SELECT + ( - + 16 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "max\(\(\- Int64\(27\)\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, MAX ( ALL - + 27 ) / + COUNT ( * ) col2 FROM tab0 +---- +-9 +3 query I rowsort SELECT 9 * - + col1 col2 FROM tab2 @@ -55875,8 +56524,15 @@ SELECT - - col1 FROM tab0 cor0 WHERE NOT col2 * + + col1 + + + CAST ( + + ( col1 # Datafusion - Expected - 31 # Datafusion - Expected - -5 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 AS col2, + 31 AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +31 +31 +31 query I rowsort label-9151 SELECT + COUNT ( * ) * + ( - COUNT ( * ) ) FROM tab0 AS cor0 @@ -55999,8 +56655,15 @@ SELECT - 25 / + + col1 + + - col0 FROM tab2 AS cor0 # Datafusion - Expected - 30 # Datafusion - Expected - 6188 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* tab1\.col2 AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 * + col2 AS col0, 30 AS col0 FROM tab1 WHERE col2 - + + ( - - 88 ) / + 17 + + col1 + - col0 < col2 +---- +30 +30 +30 +4896 +5015 +6188 query II rowsort label-9170 SELECT ALL 7 AS col1, + COUNT ( * ) FROM tab0 @@ -57566,8 +58229,15 @@ SELECT + col0 + - ( + + col0 ) FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, + col1 AS col0 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT 24 + - - col1 FROM tab2 @@ -58554,8 +59224,11 @@ SELECT DISTINCT + col0 / col2 * + ( col1 ) + + 70 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, + 88 AS col1 FROM tab1 AS cor0 +---- +3 +88 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE col1 <> - 65 @@ -58752,8 +59425,11 @@ SELECT - - CAST ( + + col2 AS INTEGER ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(cor0\.col0\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( col0 ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +-75 +3 query I rowsort label-9619 SELECT 68 * - MAX ( ALL - col0 ) AS col1 FROM tab2 cor0 @@ -58982,8 +59658,15 @@ SELECT ( 39 ) / col0 col0 FROM tab0 # Datafusion - Expected - 1 # Datafusion - Expected - -5852 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* \(\- tab2\.col1\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 76 * - col1 AS col0, 1 AS col0 FROM tab2 +---- +-3876 +-5092 +-5852 +1 +1 +1 query I rowsort SELECT ALL ( - col0 ) + + col0 FROM tab0 @@ -59141,8 +59824,15 @@ SELECT DISTINCT col0 + + - col0 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 6557 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ Int64\(98\) \- Int64\(32\) \* Int64\(40\) \* \(\- cor0\.col1\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + + 98 - 32 * + 40 * + - col1 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 +---- +18114 +60326 +6557 +NULL +NULL +NULL query I rowsort label-9680 SELECT col2 / - col0 + - ( - col0 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL @@ -60257,8 +60947,9 @@ SELECT ALL 82 - - 30 AS col2 FROM tab0 WHERE NOT + col1 + col0 IS NOT NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "tab1\.col0 \* tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, + col0 * ( + col0 ) col0 FROM tab1 WHERE NULL IS NOT NULL +---- query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT col0 <> + 30 @@ -60631,8 +61322,15 @@ SELECT ALL - 91 * - col1 + - col2 + + 51 - - 47 - 0 + col1 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 FROM tab1 WHERE NOT + col1 - + - 61 + 58 * - col1 / col1 IS NULL +---- +14 +14 +47 +47 +5 +5 query II rowsort SELECT ALL + 48 AS col0, - col1 * 71 * - + col0 AS col1 FROM tab2 diff --git a/data/sqlite/random/aggregates/slt_good_120.slt b/data/sqlite/random/aggregates/slt_good_120.slt index 21e2cd8..bd68c5b 100644 --- a/data/sqlite/random/aggregates/slt_good_120.slt +++ b/data/sqlite/random/aggregates/slt_good_120.slt @@ -575,8 +575,15 @@ SELECT + 53 + + 57 - - - col2, 91 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -1 # 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 "\(\- cor0\.col2\) / \(\- \(\- cor0\.col2\)\) \* cor0\.col0 / cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 29 AS col2, ( - col2 ) / - - col2 * + col0 / col0 AS col2 FROM tab2 AS cor0 +---- +-1 +-1 +-1 +-29 +-29 +-29 query I rowsort label-92 SELECT + MIN ( DISTINCT - 92 ) AS col2 FROM tab1 AS cor0 WHERE - col0 * + 72 NOT IN ( - 81 ) @@ -986,8 +993,11 @@ SELECT ALL + col0 * - col1 + - + ( + col2 ) AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - -31 -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 "max\(DISTINCT \(\- cor0\.col1\)\) \- Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MIN ( DISTINCT col0 ) AS col0, ( + MAX ( DISTINCT - col1 ) ) - + 30 AS col0 FROM tab0 cor0 +---- +-15 +-31 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 + - - col2 + + 28 * col2 * - col1 ) IS NOT NULL @@ -1633,8 +1643,15 @@ SELECT + + 97, col0 * - col1 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 31 # Datafusion - Expected - 99 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col2 col1, 31 AS col1 FROM tab0 AS cor0 +---- +10 +31 +31 +31 +47 +99 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE col2 * col2 IS NULL @@ -4031,8 +4048,15 @@ SELECT + 37, 95 + - col2 - + col1 / + 10 AS col0 FROM tab0 # Datafusion - Expected - 40 # Datafusion - Expected - -21 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 21 AS col0, 40 AS col0 FROM tab2 AS cor0 +---- +-21 +-21 +-21 +40 +40 +40 query I rowsort label-666 SELECT DISTINCT - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 @@ -4375,8 +4399,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 75 / ( col1 ) # Datafusion - Expected - 50 # Datafusion - Expected - -3927 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* Int64\(85\) \- \(\- Int64\(68\)\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col1 * + + 85 - - + 68 AS col2, 50 col2 FROM tab1 AS cor0 +---- +-1122 +-357 +-3927 +50 +50 +50 query I rowsort SELECT ALL - 80 * - col1 col1 FROM tab1 @@ -5038,8 +5069,15 @@ SELECT + + ( + - 48 ) * - 51 * - + col2 AS col2 FROM tab1 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col2, col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query III rowsort SELECT * FROM tab2 WHERE + - 97 * - col0 + col1 IS NOT NULL @@ -5237,8 +5275,11 @@ SELECT col2 * + ( + col2 ) AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + - 41 ) AS col2, ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 +---- +-41 +3 query I rowsort label-859 SELECT - COUNT ( * ) * - + 22 FROM tab2 @@ -5396,8 +5437,15 @@ SELECT DISTINCT 55 * col1 * + 6 FROM tab0 AS cor0 # Datafusion - Expected - -209 # Datafusion - Expected - 110 # Datafusion - Expected - -218 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(22\) AS col0" at position 0 and "Int64\(0\) \+ \(\- cor0\.col1\) \- cor0\.col0 \- cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 * + 22 AS col0, + 0 + - + col1 - + col0 - + col1 AS col0 FROM tab2 AS cor0 +---- +-148 +-209 +-218 +110 +110 +110 query I rowsort SELECT + col1 * col2 - ( col0 ) + - col0 col1 FROM tab2 AS cor0 @@ -6224,8 +6272,15 @@ SELECT DISTINCT - - 90 * col1 + col0 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - -1 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) / cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 / + col0 col2, - col0 AS col2 FROM tab2 AS cor0 +---- +-1 +-1 +-1 +-46 +-64 +-75 query I rowsort label-1028 SELECT ALL COUNT ( * ) * 46 AS col0 FROM tab1 AS cor0 WHERE ( + 21 * + + 42 / - 63 * - col0 * 36 + col0 * + col2 NOT BETWEEN + 67 + + col2 * 15 AND NULL ) @@ -6837,8 +6892,11 @@ 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\(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\. +query II valuesort SELECT ALL - - COUNT ( * ) AS col0, SUM ( ALL col2 ) + + 66 AS col0 FROM tab1 AS cor0 +---- +289 +3 query III rowsort label-1126 SELECT ALL * FROM tab0 AS cor0 WHERE 89 NOT BETWEEN - 58 * + - CAST ( NULL AS INTEGER ) + 98 AND col0 @@ -7085,8 +7143,15 @@ NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, col0 AS col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-1167 SELECT + COUNT ( * ) - + SUM ( ALL - - col1 ) AS col1 FROM tab0 WHERE NOT - + 12 IS NULL @@ -7753,8 +7818,10 @@ SELECT * FROM tab0 WHERE NOT - col1 * + col1 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 8ea1a806e99309de60af0584121f0b74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 1 and "cor0\.col1 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 27, 4 AS col2, col1 AS col2 FROM tab2 AS cor0 +---- +9 values hashing to 093b84c4285f3ed07d59428c1df732ed query I rowsort label-1275 SELECT + - COUNT ( DISTINCT - + col0 ) AS col0 FROM tab2 AS cor0 @@ -8061,8 +8128,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col0 * + + col0 / + + CAST ( - col0 # Datafusion - Expected - 85 # Datafusion - Expected - -1160 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \* CAST\(Int64\(58\) AS Int32\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 20 * + CAST ( + 58 AS INTEGER ) AS col1, col0 AS col1 FROM tab1 AS cor0 +---- +-1160 +-1160 +-1160 +51 +85 +91 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT 72 IS NOT NULL @@ -8218,8 +8292,10 @@ SELECT * FROM tab2 WHERE 47 > NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 2a729ba1b9c07299914322fcfbc307ad -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 1 and "tab1\.col0 \+ \(\- \(\- tab1\.col1\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 56, + 89 AS col1, col0 + + + ( - ( + - col1 ) ) AS col1 FROM tab1 +---- +9 values hashing to 54773b6fa398b87d4e5f49c4b31a4c09 query I rowsort label-1351 SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NULL > ( 51 ) + + col2 * ( - col0 ) * - 46 * - col0 @@ -8289,8 +8365,10 @@ SELECT ALL col1 * - + col2 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to fe77fa21500022ccc977acf7a7985a46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \* cor0\.col0 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 35 * col0 AS col2, col1 AS col2, + 19 FROM tab0 AS cor0 +---- +9 values hashing to 6e9b58845df528c3b94e090b99ecb26a query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT 85 * col0 * - 94 IS NULL @@ -9262,8 +9340,15 @@ SELECT DISTINCT COUNT ( * ) * - COUNT ( + + 1 ) + + ( + MIN ( DISTINCT 31 ) ) + # Datafusion - Expected - 1 # Datafusion - Expected - -58 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col1 / cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, + col1 / + ( + col2 ) AS col0 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +1 +1 +2 query I rowsort SELECT DISTINCT col1 + + + 68 * + 45 FROM tab1 @@ -10138,8 +10223,15 @@ SELECT - COUNT ( + + col1 ) col2 FROM tab1 # Datafusion - Expected - 5762 # Datafusion - Expected - 5969 # Datafusion - Expected - 6622 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* \(\- \(\- tab2\.col1\)\) \- \(\- tab2\.col2\) AS col0" at position 0 and "tab2\.col1 \* Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 * - - col1 - - ( col2 ) AS col0, + col1 * + 86 AS col0 FROM tab2 +---- +2624 +4386 +4547 +5762 +5969 +6622 query III rowsort SELECT * FROM tab2 WHERE ( - + col2 ) <= ( NULL ) @@ -11559,8 +11651,11 @@ SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( ( 75 ) ) NOT BETWEEN ( + col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "min\(cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col1, + MIN ( + col0 ) AS col1 FROM tab0 cor0 +---- +15 +3 query I rowsort SELECT col0 * + col0 * col0 - + 72 * col2 FROM tab1 AS cor0 @@ -12347,8 +12442,15 @@ SELECT + 88 AS col0 FROM tab1 AS cor0 WHERE - 68 IS NULL # Datafusion - Expected - 21 # Datafusion - Expected - -81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + col1 ) AS col2, + col1 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +1 +21 +81 query I rowsort SELECT ALL - col0 + 64 FROM tab0 AS cor0 WHERE NULL = NULL @@ -13052,8 +13154,11 @@ SELECT ALL + col1 * - - 47 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 +---- +-9 +9 query I rowsort label-2140 SELECT + COUNT ( ALL - - col0 ) AS col0 FROM tab0 @@ -14515,8 +14620,15 @@ NULL # Datafusion - Expected - 63 # Datafusion - Expected - -96 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(15\) \- Int64\(\-48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 col0, + 15 - - 48 col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +63 +63 +63 query I rowsort SELECT ( + 86 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 @@ -14738,8 +14850,11 @@ SELECT ALL + - col0 AS col2 FROM tab0 cor0 WHERE + col2 * 93 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- min\(Int64\(\-13\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, - MIN ( - 13 ) col0 FROM tab1 AS cor0 +---- +13 +3 query I rowsort SELECT + 43 * - ( - ( 21 ) ) FROM tab0 WHERE NOT NULL IS NOT NULL @@ -15376,8 +15491,15 @@ SELECT DISTINCT col0 * + 30 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - 21 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 AS col1, - col0 AS col1 FROM tab2 +---- +-46 +-64 +-75 +21 +21 +21 query I rowsort SELECT DISTINCT 19 * col0 AS col1 FROM tab2 @@ -15879,8 +16001,11 @@ SELECT ALL COUNT ( * ) * - 3 / + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( 3 - c # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 33 AS col1 FROM tab2 +---- +3 +33 query II rowsort SELECT col0 col1, - 82 - - col0 - + 31 AS col0 FROM tab0 @@ -16338,8 +16463,11 @@ SELECT ALL COUNT ( + - 11 ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, 67 AS col1 FROM tab1 +---- +3 +67 query I rowsort label-2683 SELECT ALL MIN ( ( + 7 ) ) AS col0 FROM tab1 @@ -17216,8 +17344,15 @@ SELECT ALL - MAX ( + + col2 ) FROM tab1 cor0 # Datafusion - Expected - -178929 # Datafusion - Expected - -99 # Datafusion - Expected - -9801 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col2 \* cor0\.col2 \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, col2 * + + col2 * - col1 col1 FROM tab0 AS cor0 +---- +-10 +-178929 +-2100 +-47 +-9801 +-99 query IIIIII rowsort SELECT ALL * FROM tab1, tab0 cor0 WHERE - + ( - + 94 ) NOT BETWEEN - - 47 AND NULL @@ -17267,8 +17402,11 @@ SELECT + col0 * 72, 1 - + col0 + - col1 / + col2 AS col2 FROM tab0 AS cor0 # 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\(96\) \+ min\(\(\- \(\- cor0\.col2\)\)\) AS col1" at position 0 and "Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + ( + 96 ) + + MIN ( - - col2 ) col1, - 1 AS col1 FROM tab0 AS cor0 +---- +-1 +106 query I rowsort label-2844 SELECT + + 24 / MIN ( DISTINCT + col0 ) - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 @@ -17587,8 +17725,15 @@ SELECT DISTINCT + CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2 cor0 # Datafusion - Expected - 203 # Datafusion - Expected - -91 # Datafusion - Expected - 227 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col0 \+ cor0\.col2 \+ \(\- \(\- cor0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col0, + col0 + col2 + - - col2 AS col0 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +203 +227 +243 query I rowsort label-2895 SELECT ALL - ( - MAX ( col1 ) ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 @@ -18008,8 +18153,15 @@ SELECT + - 81, col2 FROM tab2 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 70 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 70 AS col1, + col0 col1 FROM tab0 AS cor0 +---- +15 +70 +70 +70 +87 +97 query I rowsort label-2960 SELECT - + col2 * + + CAST ( - col2 AS INTEGER ) col1 FROM tab1 AS cor0 @@ -18399,8 +18551,15 @@ SELECT - col2 * 51 + + col2 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 98 # Datafusion - Expected - 90 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ cor0\.col1 AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 + col1 AS col2, 98 AS col2 FROM tab1 AS cor0 +---- +138 +65 +90 +98 +98 +98 query I rowsort SELECT DISTINCT - col0 + + - ( + - col0 ) * + col1 * + col2 AS col2 FROM tab0 cor0 @@ -21206,8 +21365,11 @@ SELECT ( 99 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL > NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(tab2\.col1\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( ALL + + col1 ) + + COUNT ( * ) AS col2, 46 AS col2 FROM tab2 WHERE NOT col2 = NULL +---- +46 +NULL query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 > + - col1 @@ -21255,8 +21417,11 @@ SELECT ( - - 73 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, 49 AS col0 FROM tab0 AS cor0 +---- +49 +NULL query I rowsort SELECT DISTINCT - + ( 94 ) FROM tab0 AS cor0 @@ -21737,8 +21902,15 @@ SELECT DISTINCT - 27 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( col1 ), + col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query II rowsort label-3578 SELECT ALL - COUNT ( * ) AS col0, 15 FROM tab2 cor0 CROSS JOIN tab2 cor1 @@ -22014,8 +22186,15 @@ SELECT DISTINCT - col0 - - 41 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 2960 # Datafusion - Expected - -45 # Datafusion - Expected - 4292 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col2" at position 0 and "cor0\.col2 \* Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 45 AS col2, col2 * + 74 AS col2 FROM tab2 AS cor0 +---- +-45 +-45 +-45 +1702 +2960 +4292 query I rowsort label-3626 SELECT ALL - - SUM ( - col1 ) FROM tab1 AS cor0 @@ -22831,8 +23010,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND col0 # Datafusion - Expected - 64 # Datafusion - Expected - 79 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 79 AS col2, col0 AS col2 FROM tab2 AS cor0 +---- +46 +64 +75 +79 +79 +79 query I rowsort label-3762 SELECT ALL + + ( + 72 ) / - col2 + + col0 * + col2 FROM tab0 AS cor0 @@ -23337,8 +23523,15 @@ SELECT + col0 col0, - 98 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - -58 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col2 / \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col0, col2 / - col1 AS col0 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +0 +0 +0 query II rowsort label-3852 SELECT ALL + col2 * + - 51 AS col1, - 71 / - col0 FROM tab1 @@ -23755,8 +23948,15 @@ SELECT + ( - ( + 59 ) ) AS col1 FROM tab2 # Datafusion - Expected - 24 # Datafusion - Expected - -75 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "tab2\.col0 \+ CAST\(\(\- tab2\.col2\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, + col0 + + CAST ( - col2 AS INTEGER ) col0 FROM tab2 +---- +-46 +-64 +-75 +17 +23 +24 query II rowsort SELECT DISTINCT + ( + ( + + col2 ) ), col1 FROM tab0 @@ -23785,8 +23985,15 @@ SELECT - col0, ( - col1 ) AS col2 FROM tab2 # Datafusion - Expected - 85 # Datafusion - Expected - 2 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 2 AS col2, col0 AS col2 FROM tab1 +---- +2 +2 +2 +51 +85 +91 query I rowsort label-3919 SELECT - MIN ( - + col0 ) FROM tab1 @@ -23828,8 +24035,9 @@ SELECT + + MAX ( ALL + col0 ) AS col2 FROM tab1 cor0 91 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1, - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - col0 +---- query I rowsort label-3927 SELECT ALL - + ( - - ( COUNT ( * ) ) ) + - 6 FROM tab2 AS cor0 @@ -24219,8 +24427,10 @@ SELECT + col2 * + ( + - ( - col0 ) ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 917bb0b909bf55eca876e5ec2f601884 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 1 and "tab0\.col1 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - col2 AS col0, + col1 AS col2, + col1 AS col2 FROM tab0 +---- +9 values hashing to d5efad01e83e3ae70ad0f5be27b07fd5 query II rowsort label-3993 SELECT ALL col2, - col2 / - 44 FROM tab2 @@ -24644,8 +24854,11 @@ SELECT ALL * FROM tab0 AS cor0 WHERE - 90 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col0" at position 0 and "\(\- max\(Int64\(\-36\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 68 AS col0, + ( - MAX ( - 36 ) ) AS col0 FROM tab2 cor0 +---- +-68 +36 query I rowsort label-4057 SELECT - SUM ( ALL col0 ) AS col0 FROM tab0 AS cor0 @@ -25966,8 +26179,15 @@ SELECT col1 - col2 * - 33 * 9 FROM tab2 AS cor0 # Datafusion - Expected - -76 # Datafusion - Expected - 90 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ cor0\.col1 AS col1" at position 0 and "Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 + + col1 AS col1, ( - 76 ) col1 FROM tab1 AS cor0 +---- +-76 +-76 +-76 +138 +65 +90 query I rowsort SELECT ALL 22 - + col0 AS col2 FROM tab0 @@ -26310,8 +26530,11 @@ SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - 18 = NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, COUNT ( * ) col1 FROM tab1 AS cor0 +---- +3 +3 query I rowsort label-4325 SELECT DISTINCT - + CAST ( 39 AS INTEGER ) AS col2 FROM tab2 AS cor0 @@ -26538,8 +26761,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col2" at position 0 and "max\(\(\- cor0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( - + COUNT ( * ) ) col2, MAX ( + - col2 ) AS col2 FROM tab2 AS cor0 +---- +-23 +-3 query I rowsort label-4363 SELECT DISTINCT - - COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab0 AS cor0 @@ -27283,8 +27509,15 @@ SELECT ALL + col0 * - col0 + - - ( - 43 ) FROM tab2 AS cor0 # Datafusion - Expected - 49 # Datafusion - Expected - 17 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 col1, 49 col1 FROM tab2 AS cor0 +---- +17 +17 +17 +49 +49 +49 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * - - col1 IS NULL @@ -27491,8 +27724,15 @@ SELECT DISTINCT - + col2 * - + col2 * + + col1 FROM tab2 WHERE NOT - - col1 IS N # Datafusion - Expected - 80 # Datafusion - Expected - NULL # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, 80 AS col2 FROM tab1 +---- +80 +80 +80 +NULL +NULL +NULL query I rowsort label-4518 SELECT DISTINCT - ( + + COUNT ( * ) ) AS col2 FROM tab0 WHERE NOT NULL > NULL @@ -28233,8 +28473,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT 97 * 96 IS NOT NULL # Datafusion - Expected - 21 # Datafusion - Expected - 83 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 83 AS col2, col1 AS col2 FROM tab0 +---- +1 +21 +81 +83 +83 +83 query I rowsort label-4643 SELECT + col2 / - - col1 AS col0 FROM tab1 @@ -28935,8 +29182,15 @@ NULL # Datafusion - Expected - 5994 # Datafusion - Expected - 99 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* tab0\.col1 AS col0" at position 0 and "tab0\.col1 \* \(\- Int64\(\-74\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * + + col1 AS col0, + col1 * - - 74 AS col0 FROM tab0 +---- +1554 +210 +3807 +5994 +74 +99 query II rowsort SELECT + ( - col1 ), col2 * + 65 AS col0 FROM tab1 @@ -29525,8 +29779,15 @@ SELECT ALL MAX ( + 66 ) AS col1 FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0, + col0 AS col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query II rowsort SELECT + - col0 AS col1, + col0 col0 FROM tab0 AS cor0 @@ -29688,8 +29949,15 @@ SELECT + ( - col1 ) / - col1 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 18 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 18 col0, + col2 AS col0 FROM tab1 AS cor0 +---- +18 +18 +18 +59 +68 +96 query I rowsort SELECT ALL - + 87 * + 30 FROM tab0 AS cor0 @@ -29939,8 +30207,15 @@ NULL # Datafusion - Expected - -47 # Datafusion - Expected - 5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "\(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col0, - col1 AS col0 FROM tab1 +---- +-14 +-47 +-5 +14 +47 +5 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT - col1 - - col1 > NULL @@ -30487,8 +30762,15 @@ SELECT DISTINCT 32 * - COUNT ( * ) FROM tab0 # Datafusion - Expected - 28 # Datafusion - Expected - 81606 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* \(\- tab2\.col1\) \* \(\- tab2\.col2\) AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 21 * + ( - col1 ) * - col2 AS col1, 28 AS col1 FROM tab2 +---- +24633 +28 +28 +28 +64680 +81606 query I rowsort SELECT ALL + 77 * col0 * - col1 AS col1 FROM tab2 @@ -31139,8 +31421,15 @@ SELECT DISTINCT ( ( ( col2 ) ) ) + col0 * - col1 AS col1, 43 FROM tab0 # Datafusion - Expected - 29 # Datafusion - Expected - 91 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, 29 AS col1 FROM tab1 +---- +29 +29 +29 +51 +85 +91 query I rowsort label-5117 SELECT ( + - COUNT ( * ) ) + - COUNT ( * ) AS col1 FROM tab1 @@ -32569,8 +32858,15 @@ SELECT ALL + + 99 + - 48 - - - col0 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 4465 # Datafusion - Expected - -57 # Datafusion - Expected - 475 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col2" at position 0 and "Int64\(95\) \* \(\- \(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 57 AS col2, 95 * - - col1 AS col2 FROM tab1 AS cor0 +---- +-57 +-57 +-57 +1330 +4465 +475 query III rowsort SELECT * FROM tab2 cor0 WHERE NOT 0 IS NULL @@ -32760,8 +33056,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + CAST ( 98 AS INTEGER ) # Datafusion - Expected - -81 # Datafusion - Expected - -99 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col2, - col1 AS col2 FROM tab0 AS cor0 +---- +-1 +-10 +-21 +-47 +-81 +-99 query III rowsort SELECT * FROM tab0 AS cor0 WHERE - col0 = col1 * - col2 @@ -33294,8 +33597,15 @@ SELECT + col0 + - col2 * + 21 col0 FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \* tab2\.col0 \* tab2\.col2 / tab2\.col0 / CAST\(NULL AS Int32\) \+ tab2\.col1 AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * col0 * + col2 / ( col0 ) / + CAST ( NULL AS INTEGER ) + + col1 AS col2, + col0 AS col2 FROM tab2 +---- +46 +64 +75 +NULL +NULL +NULL query I rowsort label-5478 SELECT ALL MAX ( + 71 ) + + ( + + 3 ) AS col2 FROM tab1 @@ -34942,8 +35252,11 @@ SELECT ALL + COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col0 - - + col1 * + + 66 # 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 "sum\(DISTINCT Int64\(1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 59 AS col0, SUM ( DISTINCT + 1 ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 +---- +1 +59 query I rowsort label-5756 SELECT + COUNT ( * ) * 66 FROM tab2 AS cor0 @@ -34978,8 +35291,15 @@ SELECT + 12 + col2 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -323 # Datafusion - Expected - -97 # Datafusion - Expected - -3962 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col2 \* Int64\(\-41\) \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, + col2 * - 41 + + col0 AS col0 FROM tab0 AS cor0 +---- +-15 +-1912 +-323 +-3962 +-87 +-97 query II rowsort SELECT ALL col1, + 15 AS col2 FROM tab0 @@ -35570,8 +35890,9 @@ SELECT - COUNT ( * ) col1, + COUNT ( * ) FROM tab0 AS cor0 3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "Int64\(\-77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, - 77 AS col0 FROM tab0 WHERE - 71 BETWEEN NULL AND ( - col0 ) +---- query III rowsort SELECT * FROM tab2 WHERE - - 7 * - ( + col1 ) * col2 IS NULL @@ -35764,8 +36085,11 @@ SELECT + col0 * + + col1 * - col1 AS col2 FROM tab0 WHERE - col1 + + col2 IS NOT # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(83\) AS Int32\) \* Int64\(89\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) + + CAST ( 83 AS INTEGER ) * 89 / CAST ( NULL AS INTEGER ) AS col1, - 12 AS col1 FROM tab2 +---- +-12 +NULL query I rowsort SELECT + col1 * + 93 * + col1 * 24 - ( - + 55 ) FROM tab2 @@ -36548,8 +36872,15 @@ NULL # Datafusion - Expected - -97 # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ \(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "cor0\.col0 / \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col0 + - - col0 AS col2, + col0 / - col1 AS col2 FROM tab0 AS cor0 +---- +-4 +-97 +0 +0 +0 +0 query I rowsort SELECT DISTINCT + col1 - - col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL @@ -37510,8 +37841,11 @@ SELECT ALL - 17 AS col2 FROM tab2 WHERE col2 + + - col0 <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 28 AS col0, + COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +-28 +3 query I rowsort SELECT ALL + 12 FROM tab0 AS cor0 WHERE 64 IS NULL @@ -38316,8 +38650,9 @@ SELECT ALL + COUNT ( + 31 ) AS col2 FROM tab0 AS cor0 3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL +---- query II rowsort SELECT ALL + col1, + col1 * - col0 FROM tab2 @@ -38619,8 +38954,15 @@ SELECT + 53 * 69 - + + COUNT ( * ) AS col1 FROM tab2 # Datafusion - Expected - -4928 # Datafusion - Expected - -376808 # Datafusion - Expected - -5025 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- \(\- cor0\.col0\)\) \* \(\- cor0\.col1\) \* cor0\.col0 AS col0" at position 0 and "\(\- cor0\.col1\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + - - col0 * - col1 * + + col0 AS col0, - col1 * col0 AS col0 FROM tab2 AS cor0 +---- +-107865 +-2346 +-315315 +-376808 +-4928 +-5025 query I rowsort label-6365 SELECT DISTINCT - + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1 @@ -38774,8 +39116,11 @@ SELECT DISTINCT - + COUNT ( + - col2 ) AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "sum\(Int64\(\-3\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col1, SUM ( - 3 ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL +---- +0 +NULL query I rowsort SELECT DISTINCT - 24 * col2 FROM tab0 AS cor0 @@ -38901,8 +39246,15 @@ SELECT ALL + col2 AS col0 FROM tab2 WHERE + col2 <> + col2 # Datafusion - Expected - 21 # Datafusion - Expected - 80 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) / \(\- \(\- cor0\.col2\)\) \+ cor0\.col1 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 / - - col2 + + col1 col0, + col1 AS col0 FROM tab0 AS cor0 +---- +0 +1 +20 +21 +80 +81 query I rowsort label-6412 SELECT ALL SUM ( col2 ) * - COUNT ( * ) + 81 AS col1 FROM tab2 @@ -39170,8 +39522,15 @@ NULL # Datafusion - Expected - -640 # Datafusion - Expected - 58 # Datafusion - Expected - 739 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "tab2\.col2 \* tab2\.col2 \+ \(\- tab2\.col0\) \* \(\- Int64\(\-35\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, ( col2 ) * col2 + + - col0 * - - 35 AS col1 FROM tab2 +---- +-1081 +-640 +23 +40 +58 +739 query I rowsort SELECT ALL + ( col1 ) * col2 FROM tab2 @@ -39272,8 +39631,11 @@ SELECT * FROM tab0 WHERE 46 * - - col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 183 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-61\) AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( - 61 AS INTEGER ) * + COUNT ( * ) AS col1, + ( - COUNT ( * ) ) AS col1 FROM tab2 +---- +-3 +183 query I rowsort label-6472 SELECT DISTINCT - + 18 + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0 @@ -40093,8 +40455,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * col0 / + ( - col0 ) IS NULL # Datafusion - Expected - -40 # Datafusion - Expected - -58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col2, - col2 AS col2 FROM tab2 AS cor0 +---- +-23 +-23 +-40 +-40 +-58 +-58 query I rowsort label-6609 SELECT + MIN ( DISTINCT + - 76 ) AS col2 FROM tab1 AS cor0 @@ -40114,8 +40483,11 @@ SELECT DISTINCT col1, col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(DISTINCT Int64\(62\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col2, COUNT ( DISTINCT 62 ) AS col2 FROM tab1 AS cor0 +---- +1 +NULL query I rowsort label-6612 SELECT MAX ( 8 ) * + COUNT ( * ) AS col1 FROM tab2 @@ -40275,8 +40647,15 @@ SELECT - - 43 * COUNT ( * ) + 22 + 74 * + + ( - COUNT ( * ) ) AS col0 FROM tab0 # Datafusion - Expected - 2751858 # Datafusion - Expected - -7 # Datafusion - Expected - 15178240 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* cor0\.col2 / \(\- Int64\(32\)\) AS col2" at position 0 and "cor0\.col0 \* \(\- cor0\.col2\) \* cor0\.col1 \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 6 * col2 / - ( 32 ) col2, + col0 * - col2 * + ( col1 ) * - col1 col2 FROM tab2 AS cor0 +---- +-10 +-4 +-7 +15178240 +19527150 +2751858 query I rowsort SELECT DISTINCT - 37 AS col2 FROM tab1 cor0 @@ -40894,8 +41273,11 @@ SELECT ALL 3 * + col0 col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- min\(tab1\.col2\)\) \+ Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, - MIN ( + col2 ) + + 0 AS col2 FROM tab1 +---- +-59 +3 query III rowsort SELECT ALL * FROM tab2 WHERE NOT - 18 + + col2 IS NULL @@ -41176,8 +41558,15 @@ SELECT ALL - col1 + + 56 FROM tab0 cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 188 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \+ Int64\(73\) \+ tab1\.col2 AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 + + + 73 + + + col2 AS col1, col2 AS col1 FROM tab1 +---- +151 +160 +188 +59 +68 +96 query I rowsort SELECT ALL - col0 + - + 68 FROM tab1 @@ -41761,8 +42150,15 @@ SELECT DISTINCT - CAST ( 93 AS INTEGER ) * + col0 FROM tab2 # Datafusion - Expected - 77 # Datafusion - Expected - 5625 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col0 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * + col0 AS col0, + col1 AS col0 FROM tab2 AS cor0 +---- +2116 +4096 +51 +5625 +67 +77 query II rowsort label-6880 SELECT - 15 AS col0, - MIN ( DISTINCT + + col1 ) AS col2 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL @@ -41818,8 +42214,15 @@ SELECT - - MIN ( DISTINCT + + 56 ) FROM tab2 AS cor0 # Datafusion - Expected - 250558 # Datafusion - Expected - -62 # Datafusion - Expected - 382388 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(62\)\) AS col2" at position 0 and "Int64\(28\) \* cor0\.col2 \* Int64\(86\) \+ \(\- cor0\.col1\) \+ \(\- cor0\.col1\) \* cor0\.col1 \* \(\- Int64\(99\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 62 AS col2, 28 * col2 * + + 86 + - col1 + + - col1 * + + col1 * - + 99 col2 FROM tab1 AS cor0 +---- +-62 +-62 +-62 +144542 +250558 +382388 query I rowsort label-6888 SELECT + - SUM ( 32 ) AS col0 FROM tab2 cor0 @@ -42468,8 +42871,15 @@ SELECT * FROM tab0 WHERE + - col1 - + + 31 IS NOT NULL # Datafusion - Expected - -96 # Datafusion - Expected - 94 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ tab1\.col1 AS col2" at position 0 and "\(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 + + col1 AS col2, - col2 AS col2 FROM tab1 +---- +-59 +-68 +-96 +10 +28 +94 query I rowsort SELECT 51 + - ( + col2 ) FROM tab0 @@ -42596,8 +43006,15 @@ SELECT 50 * col1 / - + col1 FROM tab1 # Datafusion - Expected - -870 # Datafusion - Expected - 97 # Datafusion - Expected - -9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "\(\- tab0\.col0\) \* tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, - col0 * + col2 AS col2 FROM tab0 +---- +-705 +-870 +-9603 +15 +87 +97 query I rowsort label-7018 SELECT ALL + MAX ( ALL - + col1 ) * 31 - + - 50 FROM tab0 AS cor0 @@ -42624,8 +43041,11 @@ SELECT - col1 / + CAST ( - 46 AS INTEGER ), ( + col1 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - -1520 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col2" at position 0 and "Int64\(\-76\) \* Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 27 col2, ( - 76 ) * + 20 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 +---- +-1520 +27 query III rowsort SELECT ALL * FROM tab0 WHERE NOT + + col0 = + - col2 @@ -43805,8 +44225,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 44 col1, - COUNT ( * ) AS col1 FROM tab1 +---- +-3 +44 query II rowsort SELECT + col2 AS col1, 15 - + + 68 * + col2 FROM tab2 @@ -44258,8 +44681,15 @@ SELECT + col1 / + col2 + - + 78 * - + 1 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 10 # Datafusion - Expected - -71 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ Int64\(\-24\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 + - 24 AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +-123 +-34 +-71 +10 +47 +99 query I rowsort SELECT DISTINCT - - col2 AS col0 FROM tab1 AS cor0 WHERE NOT col0 >= + + col0 / + 66 * + - col1 @@ -46179,8 +46609,15 @@ SELECT + col0 * + col0 FROM tab2 WHERE NOT + ( - ( - CAST ( NULL AS INTEGER ) ) # Datafusion - Expected - -47 # Datafusion - Expected - -8 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) \* tab0\.col1 \* Int64\(8\) AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 * col1 * + 8 AS col0, - col2 col0 FROM tab0 +---- +-10 +-3528 +-47 +-52488 +-8 +-99 query I rowsort SELECT col1 + + + 49 AS col1 FROM tab0 @@ -46203,8 +46640,15 @@ SELECT 10 + - 18 AS col1 FROM tab2 # Datafusion - Expected - 58 # Datafusion - Expected - 91 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col2, + 58 AS col2 FROM tab1 +---- +51 +58 +58 +58 +85 +91 query III rowsort label-7613 SELECT * FROM tab1 AS cor0 WHERE NULL <= - col2 + + 19 / CAST ( NULL AS INTEGER ) @@ -46482,8 +46926,15 @@ SELECT ALL + SUM ( - col0 ) + - MIN ( DISTINCT + + col1 ) FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col0" at position 0 and "cor0\.col0 \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 92 ) AS col0, col0 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 +---- +92 +92 +92 +NULL +NULL +NULL query III rowsort SELECT * FROM tab0 AS cor0 WHERE + ( - 29 ) * col0 + + + col2 NOT BETWEEN NULL AND + 96 @@ -46726,8 +47177,11 @@ 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\(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\. +query II valuesort SELECT - - COUNT ( * ) AS col0, + ( COUNT ( * ) ) + MIN ( 9 ) AS col0 FROM tab2 AS cor0 +---- +12 +3 query I rowsort SELECT DISTINCT + col0 - - col0 + col1 FROM tab1 @@ -46985,8 +47439,11 @@ SELECT ALL + col1 - col0 - + ( + CAST ( + col1 AS INTEGER ) ) AS col2, col2 AS c # 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 "min\(cor0\.col0\) AS col0" at position 0 and "\(\- Int64\(1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( + col0 ) AS col0, ( - + 1 ) AS col0 FROM tab1 AS cor0 +---- +-1 +51 query I rowsort label-7737 SELECT COUNT ( DISTINCT 30 ) col0 FROM tab2 AS cor0 @@ -47409,8 +47866,15 @@ SELECT DISTINCT 10 AS col2 FROM tab1 cor0 # Datafusion - Expected - -4096 # Datafusion - Expected - 32 # Datafusion - Expected - -5625 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "\(\- cor0\.col0\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 AS col0, - col0 * + col0 AS col0 FROM tab2 AS cor0 +---- +-2116 +-4096 +-5625 +32 +32 +32 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT NULL = + col1 / - - col0 @@ -48035,8 +48499,15 @@ NULL # Datafusion - Expected - 98 # Datafusion - Expected - 99 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 col1, + 98 AS col1 FROM tab0 AS cor0 +---- +10 +47 +98 +98 +98 +99 query I rowsort SELECT col1 FROM tab2 WHERE NOT 31 BETWEEN - + col1 AND + + col1 @@ -48087,8 +48558,15 @@ SELECT + 25 AS col1, ( + + col2 ) AS col0 FROM tab1 # Datafusion - Expected - 77 # Datafusion - Expected - -77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, 77 AS col0 FROM tab2 +---- +-51 +-67 +-77 +77 +77 +77 query I rowsort SELECT DISTINCT 76 FROM tab1 AS cor0 WHERE NULL NOT IN ( col0 ) @@ -48405,8 +48883,11 @@ SELECT DISTINCT - - 61 * + ( - MIN ( ALL - - 49 ) ) AS col2 FROM tab0 AS cor0 CR # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, + 2 AS col1 FROM tab0 +---- +2 +3 query I rowsort SELECT ALL + col2 * + col0 * + col1 * 66 AS col2 FROM tab0 AS cor0 @@ -48650,8 +49131,11 @@ SELECT - col0 * + 96 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -363 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* sum\(DISTINCT tab2\.col2\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- Int64\(93\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) * + SUM ( DISTINCT + col2 ) AS col1, + ( CAST ( NULL AS INTEGER ) ) + - + ( 93 ) AS col1 FROM tab2 +---- +-363 +NULL query I rowsort label-8014 SELECT + MAX ( + col1 ) * + + COUNT ( * ) FROM tab0 @@ -48681,8 +49165,11 @@ SELECT - col0 * col1 / 21 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, col1 FROM tab0 WHERE col2 + + col1 NOT BETWEEN + 36 AND NULL +---- +21 +21 query III rowsort SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= + 35 * - 18 @@ -49358,8 +49845,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * - MAX ( DISTINCT - col1 ) * - COUNT ( * ) AS col0, 81 + + - COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +-459 +78 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT col0 <> + col1 ) @@ -52483,8 +52973,15 @@ SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE col1 <> col2 * + 38 * col2 # Datafusion - Expected - 69 # Datafusion - Expected - 97 # Datafusion - Expected - 106 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col0 AS col0" at position 0 and "Int64\(82\) \+ Int64\(34\) \- cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 + col0 AS col0, ( + 82 ) + + 34 - + col2 AS col0 FROM tab0 cor0 +---- +106 +17 +196 +62 +69 +97 query I rowsort SELECT DISTINCT - col0 * col1 * + 15 - - - col1 AS col1 FROM tab2 AS cor0 @@ -52551,8 +53048,15 @@ SELECT DISTINCT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL # Datafusion - Expected - 85 # Datafusion - Expected - 58 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 AS col2, + col0 AS col2 FROM tab1 +---- +51 +58 +58 +58 +85 +91 query I rowsort label-8659 SELECT 54 * - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2 @@ -52571,8 +53075,15 @@ SELECT - + 3 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 64 # Datafusion - Expected - -58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 col2, + col0 AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +46 +64 +75 query I rowsort SELECT - col1 * col1 * + col0 + col0 FROM tab0 AS cor0 @@ -52776,8 +53287,11 @@ SELECT 71 * - col1 + + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -711 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-79\)\) \* count\(DISTINCT \(\- CAST\(cor0\.col1 AS Int32\)\)\) AS col2" at position 0 and "max\(cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( ALL - 79 ) * COUNT ( DISTINCT - CAST ( col1 AS INTEGER ) ) AS col2, MAX ( ALL col2 ) AS col2 FROM tab1 AS cor0 +---- +-711 +96 query I rowsort label-8695 SELECT ALL - CAST ( + 20 AS INTEGER ) AS col1 FROM tab2 AS cor0 @@ -53395,8 +53909,15 @@ NULL # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col1, col1 col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -54374,8 +54895,15 @@ SELECT + col1 * - col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NOT NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col1 AS col0, col1 AS col0 FROM tab1 cor0 +---- +14 +14 +47 +47 +5 +5 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( + col0 ) > + col2 * - + ( - col0 ) + col1 + + + 1 @@ -55248,8 +55776,11 @@ SELECT DISTINCT 18 / - col2 * + - 61 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34155 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* Int64\(15\) \* Int64\(\-99\) AS col1" at position 0 and "min\(tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 * + 15 * + - 99 AS col1, + MIN ( ALL col2 ) AS col1 FROM tab2 WHERE NOT ( - col0 ) <> + CAST ( - - col1 AS INTEGER ) * col1 * 50 +---- +-34155 +NULL query III rowsort SELECT * FROM tab2 WHERE NOT + + 97 * - col2 IS NULL @@ -55407,8 +55938,15 @@ SELECT ALL ( - 80 ) / + - 61 AS col0 FROM tab0 # Datafusion - Expected - 125 # Datafusion - Expected - -95 # Datafusion - Expected - 143 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col1" at position 0 and "cor0\.col2 \+ Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 95 AS col1, col2 + + + 85 AS col1 FROM tab2 AS cor0 +---- +-95 +-95 +-95 +108 +125 +143 query I rowsort label-9130 SELECT - - COUNT ( * ) * 91 FROM tab0 WHERE NOT + 40 + + 35 IS NULL @@ -57076,8 +57614,11 @@ SELECT ALL * FROM tab2 WHERE col1 + + col0 = NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 26 AS col0, + COUNT ( * ) AS col0 FROM tab1 +---- +26 +3 query I rowsort label-9417 SELECT ALL COUNT ( - 72 ) FROM tab0 cor0 @@ -57278,8 +57819,11 @@ 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\(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\. +query II valuesort SELECT + + COUNT ( * ), ( + COUNT ( * ) ) FROM tab2 cor0 +---- +3 +3 query I rowsort label-9453 SELECT - MIN ( - col0 ) AS col0 FROM tab1 AS cor0 @@ -57431,8 +57975,15 @@ SELECT DISTINCT + - COUNT ( * ) AS col1, 46 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 89 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 +---- +89 +89 +89 +NULL +NULL +NULL query I rowsort SELECT DISTINCT - - ( + col0 ) col1 FROM tab2 AS cor0 @@ -58842,8 +59393,9 @@ SELECT ALL * FROM tab1 WHERE NOT NULL < - 26 - - 59 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, + col1 FROM tab0 WHERE NOT NULL IN ( col0 ) +---- query I rowsort SELECT ALL + - 89 * - - col2 AS col0 FROM tab0 AS cor0 @@ -59069,8 +59621,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 163875 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(\-74\)\) AS col0" at position 0 and "\(\- max\(cor0\.col0\)\) \* sum\(DISTINCT Int64\(\-23\)\) \* Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( DISTINCT - 74 ) AS col0, - MAX ( + + col0 ) * + SUM ( DISTINCT - 23 ) * + 95 AS col0 FROM tab2 AS cor0 +---- +-74 +163875 query I rowsort label-9750 SELECT - MIN ( ( 19 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 @@ -59218,8 +59773,15 @@ SELECT - col0 * + col0 * - col1 FROM tab2 # Datafusion - Expected - 1600 # Datafusion - Expected - 58 # Datafusion - Expected - 3364 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "tab2\.col2 \* tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, + col2 * col2 col0 FROM tab2 +---- +1600 +23 +3364 +40 +529 +58 query III rowsort SELECT * FROM tab2 WHERE NOT - + col1 * + 96 IS NULL @@ -59893,8 +60455,15 @@ SELECT - 75 AS col2, col0 * 1 * - 70 * - + col1 col1 FROM tab2 AS cor0 # Datafusion - Expected - -210237 # Datafusion - Expected - 3 # Datafusion - Expected - -304799 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-3\)\) AS col1" at position 0 and "\(\- cor0\.col1\) \+ cor0\.col2 \* Int64\(\-71\) \* Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 3 col1, - ( + col1 ) + + col2 * - 71 * 74 col1 FROM tab2 cor0 +---- +-120893 +-210237 +-304799 +3 +3 +3 query II rowsort SELECT ALL - 85, - col0 - + + col0 AS col2 FROM tab1 AS cor0 @@ -59981,8 +60550,15 @@ SELECT ALL - 60 + 26 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ CAST\(NULL AS Int32\) \+ \(\- cor0\.col1\) \* \(\- cor0\.col0\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + CAST ( NULL AS INTEGER ) + - col1 * + - col0 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 +---- +NULL +NULL +NULL +NULL +NULL +NULL query I rowsort SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NULL <> NULL @@ -60428,8 +61004,15 @@ SELECT DISTINCT + 66 + + col2 + - - 90 FROM tab0 AS cor0 # Datafusion - Expected - -441 # Datafusion - Expected - 97 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "\(\- tab0\.col1\) \* tab0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, - col1 * + + col1 AS col1 FROM tab0 +---- +-1 +-441 +-6561 +15 +87 +97 query I rowsort label-9969 SELECT ALL CAST ( - + SUM ( DISTINCT - col2 ) AS INTEGER ) FROM tab2 diff --git a/data/sqlite/random/aggregates/slt_good_121.slt b/data/sqlite/random/aggregates/slt_good_121.slt index affa980..12f5f20 100644 --- a/data/sqlite/random/aggregates/slt_good_121.slt +++ b/data/sqlite/random/aggregates/slt_good_121.slt @@ -1118,8 +1118,15 @@ SELECT 9 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - -50 # Datafusion - Expected - -96 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- tab1\.col2\)\)\) AS col1" at position 0 and "Int64\(\-50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - ( - - col2 ) ) AS col1, - 50 AS col1 FROM tab1 +---- +-50 +-50 +-50 +-59 +-68 +-96 query I rowsort SELECT ALL + 21 FROM tab0 WHERE NULL IS NULL @@ -1565,8 +1572,15 @@ SELECT - - col1 AS col1, + 75 + + col0 FROM tab0 cor0 # Datafusion - Expected - 10 # Datafusion - Expected - -81 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "\(\- \(\- cor0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col2, - ( - + col2 ) AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +10 +47 +99 query I rowsort SELECT - - col1 * + 60 AS col0 FROM tab0 AS cor0 @@ -1691,8 +1705,15 @@ SELECT DISTINCT MIN ( 92 ) FROM tab1 # Datafusion - Expected - 0 # 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\(50\) / \(\- tab1\.col2\) \* \(\- Int64\(\-88\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 45 AS col0, + 50 / + - col2 * - - 88 AS col0 FROM tab1 +---- +-45 +-45 +-45 +0 +0 +0 query II rowsort SELECT ALL + 78 AS col1, col0 FROM tab1 @@ -2519,8 +2540,15 @@ SELECT * FROM tab0 WHERE NOT 83 + 82 IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - 0 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 / tab1\.col0 AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 / col0 AS col0, col1 col0 FROM tab1 +---- +0 +0 +0 +14 +47 +5 query I rowsort SELECT ALL - col2 + - + col0 FROM tab1 AS cor0 @@ -2744,8 +2772,15 @@ SELECT ALL + 6 + col1 FROM tab0 AS cor0 # Datafusion - Expected - 56 # Datafusion - Expected - 84 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) \+ tab0\.col0 AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 13 + col0 col0, 56 AS col0 FROM tab0 +---- +2 +56 +56 +56 +74 +84 query II rowsort SELECT ALL - 86, 85 * + col1 / - 96 * col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL @@ -3147,8 +3182,15 @@ SELECT DISTINCT + - col0 + + col2 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 22 # Datafusion - Expected - -96 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col2 AS col1, 22 col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +22 +22 +22 query I rowsort SELECT ALL - 85 + - 73 FROM tab0 AS cor0 @@ -3391,8 +3433,11 @@ SELECT SUM ( DISTINCT - ( + col0 ) ) col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-16\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) / - 16 AS col2, + COUNT ( * ) AS col2 FROM tab1 +---- +0 +3 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -3643,8 +3688,15 @@ SELECT ALL * FROM tab2 WHERE ( - - 39 * + 44 ) IS NOT NULL # Datafusion - Expected - 64 # Datafusion - Expected - 70 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 0 and "\(\- CAST\(\(\- tab2\.col0\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 70 AS col0, - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 +---- +46 +64 +70 +70 +70 +75 query I rowsort label-604 SELECT ALL + SUM ( - col2 ) AS col1 FROM tab0 AS cor0 @@ -4256,8 +4308,15 @@ SELECT - + col0 / + - 28 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL # Datafusion - Expected - 42 # Datafusion - Expected - 91 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col0 AS col1, 42 AS col1 FROM tab1 AS cor0 +---- +42 +42 +42 +51 +85 +91 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - - col0 ) >= - col2 @@ -4372,8 +4431,15 @@ SELECT - - 50 + - col2 FROM tab1 cor0 # Datafusion - Expected - 91 # Datafusion - Expected - -2079 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(\-28\) \+ cor0\.col1 AS col0" at position 0 and "Int64\(53\) \+ Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * + - 28 + + + col1 col0, 53 + + 38 AS col0 FROM tab2 AS cor0 +---- +-1377 +-1809 +-2079 +91 +91 +91 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -4460,8 +4526,15 @@ SELECT ALL + - 50 AS col0 FROM tab1 WHERE col2 IS NOT NULL # Datafusion - Expected - 76 # Datafusion - Expected - -58 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, 76 col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +76 +76 +76 query I rowsort label-734 SELECT MIN ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0 @@ -4526,8 +4599,11 @@ SELECT + 66 AS col0, col1 col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "min\(CAST\(\(\- tab2\.col2\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 11 AS col2, MIN ( + CAST ( - col2 AS INTEGER ) ) col2 FROM tab2 +---- +-58 +11 query I rowsort label-744 SELECT col1 * - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0 @@ -4543,8 +4619,15 @@ SELECT col1 * - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0 # Datafusion - Expected - 4512 # Datafusion - Expected - 99 # Datafusion - Expected - 9504 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(\-96\) \* \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, - 96 * - col2 AS col0 FROM tab0 AS cor0 +---- +10 +4512 +47 +9504 +960 +99 query I rowsort label-746 SELECT - 9 + 1 / col1 FROM tab0 AS cor0 @@ -4714,8 +4797,15 @@ SELECT ALL - col2 * + + col0 AS col1 FROM tab0 # Datafusion - Expected - -125 # Datafusion - Expected - 77 # Datafusion - Expected - -117 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col1\) \+ \(\- cor0\.col1\) \+ \(\- cor0\.col2\) \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col1 AS col0, - col1 + - col1 + - + col2 + + col1 AS col0 FROM tab2 AS cor0 +---- +-117 +-125 +-74 +51 +67 +77 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT ( 48 + col2 IS NOT NULL ) @@ -4913,8 +5003,15 @@ SELECT ALL + 86, col1 + + 90 * + col2 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 15 # Datafusion - Expected - -99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 col1, col0 AS col1 FROM tab0 cor0 +---- +-10 +-47 +-99 +15 +87 +97 query I rowsort label-800 SELECT - + CAST ( - - 29 AS INTEGER ) / - col2 AS col2 FROM tab2 cor0 @@ -6721,8 +6818,15 @@ SELECT - + 78 AS col1 FROM tab1 AS cor0 WHERE col2 < 83 / col1 # Datafusion - Expected - -6 # Datafusion - Expected - 58 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, - 6 AS col1 FROM tab2 AS cor0 +---- +-6 +-6 +-6 +23 +40 +58 query I rowsort label-1100 SELECT ALL + + ( + COUNT ( * ) ) + - + 90 + + COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1 AS cor0 @@ -7120,8 +7224,15 @@ SELECT + MAX ( + 15 ) AS col1 FROM tab2 cor0 WHERE NOT CAST ( NULL AS INTEGER ) # Datafusion - Expected - 94 # Datafusion - Expected - 9246920 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col0 \* cor0\.col0 \* Int64\(95\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * + col0 * + + col0 * 95 AS col1, + ( + 94 ) AS col1 FROM tab2 cor0 +---- +24903680 +40078125 +9246920 +94 +94 +94 query I rowsort SELECT ALL - 53 * + 46 AS col0 FROM tab1 @@ -7787,8 +7898,11 @@ SELECT 88 * + 95 + + + COUNT ( * ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 94 AS col1, COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL <= - - col0 - + + col2 +---- +-94 +0 query I rowsort label-1265 SELECT - COUNT ( * ) + + 58 AS col2 FROM tab0 @@ -8228,8 +8342,15 @@ SELECT col2 * + 22 - + 82 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -49564 # Datafusion - Expected - 0 # Datafusion - Expected - -7742 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \- cor0\.col1 AS col0" at position 0 and "Int64\(4\) \+ \(\- cor0\.col0\) \+ Int64\(51\) \* Int64\(\-10\) \* cor0\.col0 \- cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - col1 ) - col1 AS col0, ( + 4 ) + - + col0 + 51 * - 10 * + col0 - + col1 col0 FROM tab0 AS cor0 +---- +-44474 +-49564 +-7742 +0 +0 +0 query II rowsort label-1336 SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 3 / - col0 col2 FROM tab0 @@ -9312,8 +9433,15 @@ SELECT + - col1 AS col2 FROM tab2 WHERE NOT NULL IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - 8 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 col2, col1 AS col2 FROM tab1 +---- +14 +47 +5 +8 +8 +8 query I rowsort label-1516 SELECT 34 * 19 * - 55 * - COUNT ( * ) col1 FROM tab0 @@ -9415,8 +9543,15 @@ SELECT - col2 * + + 30 * + col0 AS col2 FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - 0 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) / Int64\(\-89\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 46 / - 89 AS col2, + col0 AS col2 FROM tab2 +---- +0 +0 +0 +46 +64 +75 query I rowsort label-1532 SELECT ALL - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - 91 / + 66 - + 5 FROM tab1 WHERE NOT NULL NOT BETWEEN + - ( + - 70 ) / - col0 * - 43 * + - 93 AND col1 * - col1 @@ -10586,8 +10721,15 @@ SELECT col2 + + 9 AS col2 FROM tab2 # Datafusion - Expected - -47 # Datafusion - Expected - 59 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(\-18\) AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 + ( - 18 ) AS col1, - col1 AS col1 FROM tab1 +---- +-14 +-47 +-5 +59 +59 +59 query I rowsort label-1726 SELECT DISTINCT - col2 / + + 40 col2 FROM tab2 WHERE NOT - 28 IS NULL @@ -11081,8 +11223,15 @@ SELECT + 92 / - col2 FROM tab2 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - 5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "\(\- \(\- cor0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col1 col0, - ( + - col0 ) AS col0 FROM tab1 AS cor0 +---- +14 +47 +5 +51 +85 +91 query I rowsort label-1804 SELECT DISTINCT + CAST ( - ( + - COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab1 AS cor0 @@ -11928,8 +12077,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT - 30 * - col2 <= ( NULL ) # Datafusion - Expected - 24 # Datafusion - Expected - 58 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col2\) \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col1, - col2 + col0 col1 FROM tab2 cor0 +---- +17 +23 +23 +24 +40 +58 query I rowsort label-1949 SELECT ALL + - COUNT ( * ) FROM tab1 AS cor0 WHERE col2 IN ( col0, 70 * col1 ) @@ -12274,8 +12430,15 @@ NULL # Datafusion - Expected - 46 # Datafusion - Expected - 42 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \- Int64\(\-93\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + col1 ) - - 93 AS col0, + 46 AS col0 FROM tab2 +---- +16 +26 +42 +46 +46 +46 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -12593,8 +12756,15 @@ SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - + 81 FROM tab0 WHERE NOT col2 <> # Datafusion - Expected - -3157 # Datafusion - Expected - 5250 # Datafusion - Expected - -2747 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* Int64\(70\) AS col0" at position 0 and "\(\- tab2\.col1\) \* Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 * 70 AS col0, - ( + col1 ) * + 41 col0 FROM tab2 +---- +-2091 +-2747 +-3157 +3220 +4480 +5250 query I rowsort label-2057 SELECT ALL - COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab0, tab2 AS cor0 @@ -12761,8 +12931,15 @@ NULL # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, ( + col2 ) FROM tab2 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-2084 SELECT + SUM ( ALL - col1 ) AS col0 FROM tab0 @@ -13241,8 +13418,15 @@ SELECT col2 + - 76 AS col1 FROM tab0 # Datafusion - Expected - 91 # Datafusion - Expected - 96 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, + col0 AS col1 FROM tab1 +---- +51 +59 +68 +85 +91 +96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 @@ -13736,8 +13920,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) AS col1, - 1 AS col1 FROM tab1 AS cor0 +---- +-1 +-3 query I rowsort label-2242 SELECT - - 46 / col0 FROM tab0 AS cor0 @@ -13811,8 +13998,15 @@ SELECT ALL 21 + + - col1 * col2 AS col2 FROM tab1 # Datafusion - Expected - 48 # Datafusion - Expected - 5525 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* Int64\(85\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 65 * + 85 AS col0, 48 col0 FROM tab2 AS cor0 +---- +48 +48 +48 +5525 +5525 +5525 query I rowsort label-2254 SELECT - 68 / + col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 @@ -14705,8 +14899,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) AS col2, - 75 AS col2 FROM tab0 cor0 +---- +-3 +-75 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -15886,8 +16083,15 @@ SELECT ALL col0 / - + ( - ( - - 67 ) ) AS col0 FROM tab1 # Datafusion - Expected - -2368 # Datafusion - Expected - 36 # Datafusion - Expected - -2775 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col2" at position 0 and "\(\- tab2\.col0\) \* Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 col2, - col0 * + 37 AS col2 FROM tab2 +---- +-1702 +-2368 +-2775 +36 +36 +36 query II rowsort label-2603 SELECT + 54, - COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab0 @@ -16589,8 +16793,15 @@ SELECT + - ( + 10 ) FROM tab2 AS cor0 # Datafusion - Expected - 5 # Datafusion - Expected - 6188 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- Int64\(68\)\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 * - + 68 AS col2, + 5 AS col2 FROM tab1 AS cor0 +---- +3468 +5 +5 +5 +5780 +6188 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -17292,8 +17503,15 @@ SELECT - col0 AS col0 FROM tab0 cor0 WHERE NOT 2 IS NULL # Datafusion - Expected - 295 # Datafusion - Expected - -8281 # Datafusion - Expected - 3196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col0 AS col2" at position 0 and "cor0\.col1 \* \(\- \(\- cor0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 * col0 AS col2, + col1 * - - col2 col2 FROM tab1 cor0 +---- +-2601 +-7225 +-8281 +1344 +295 +3196 query III rowsort SELECT * FROM tab0 WHERE NOT + 75 IS NULL @@ -17891,8 +18109,15 @@ SELECT - + 73 FROM tab1 WHERE - + col1 + CAST ( + col2 AS INTEGER ) IS NULL # Datafusion - Expected - -4096 # Datafusion - Expected - 9 # Datafusion - Expected - -5625 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col0" at position 0 and "\(\- tab2\.col0\) \* tab2\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 AS col0, - col0 * col0 AS col0 FROM tab2 +---- +-2116 +-4096 +-5625 +9 +9 +9 query III rowsort SELECT * FROM tab0 AS cor0 WHERE col1 = + col2 * col1 @@ -17945,8 +18170,15 @@ SELECT 87 * - col0 FROM tab2 WHERE NOT 51 NOT BETWEEN + - col0 AND + - col0 # Datafusion - Expected - NULL # Datafusion - Expected - 96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "CAST\(NULL AS Float64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL col2 col0, + CAST ( NULL AS FLOAT8 ) col0 FROM tab1 +---- +59 +68 +96 +NULL +NULL +NULL query III rowsort SELECT ALL * FROM tab1 WHERE NOT col2 + - - col0 IS NULL @@ -18005,8 +18237,15 @@ SELECT - - 69 + - + COUNT ( DISTINCT col1 ) * + 85 * + SUM ( + 29 ) AS col2 FROM # Datafusion - Expected - 21 # Datafusion - Expected - -89 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ \(\- Int64\(9\)\) \+ cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col1\) \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 + - + 9 + + col1 AS col2, ( - col1 ) + col2 AS col2 FROM tab1 AS cor0 +---- +-46 +-53 +-89 +21 +54 +82 query I rowsort label-2954 SELECT ( + COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 @@ -18407,8 +18646,15 @@ SELECT 47 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 # Datafusion - Expected - 58 # Datafusion - Expected - 3066107 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \- \(\- tab2\.col0\) \* Int64\(\-63\) \* tab2\.col0 \* \(\- tab2\.col2\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 - - col0 * - 63 * + col0 * - col2 AS col0, + col2 AS col0 FROM tab2 +---- +10321960 +20553808 +23 +3066107 +40 +58 query I rowsort SELECT - 36 - + col0 col1 FROM tab0 AS cor0 @@ -18952,8 +19198,11 @@ SELECT DISTINCT - col2 AS col0, 96 - + - 17 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "max\(tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col2, + MAX ( ALL col1 ) AS col2 FROM tab2 +---- +77 +NULL query II rowsort SELECT - col2 col0, + 61 FROM tab2 AS cor0 @@ -19043,8 +19292,15 @@ SELECT ALL + 45 * + 60 FROM tab0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0, col0 FROM tab0 WHERE NOT NULL IS NOT NULL +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT ( - - 8 ) AS col2 FROM tab2 @@ -19173,8 +19429,15 @@ SELECT DISTINCT SUM ( DISTINCT - 15 ) FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - 97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 / \(\- \(\- tab0\.col1\)\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 / - - col1 AS col0, col1 AS col0 FROM tab0 +---- +0 +1 +21 +4 +81 +97 query I rowsort SELECT + 25 * - 93 * 12 FROM tab2 cor0 @@ -20720,8 +20983,11 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - + col1 ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "Int64\(\-69\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 AS col1, - 69 + + COUNT ( * ) col1 FROM tab2 +---- +-66 +71 query I rowsort SELECT DISTINCT 85 col2 FROM tab2, tab0 cor0 @@ -20936,8 +21202,15 @@ SELECT ALL + col0 * + + ( - + col0 ) FROM tab2 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 81 # Datafusion - Expected - 100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 \+ Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, col1 + + + 19 AS col2 FROM tab0 AS cor0 +---- +1 +100 +20 +21 +40 +81 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 @@ -21103,8 +21376,15 @@ SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) = + col1 # Datafusion - Expected - -21 # Datafusion - Expected - -81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- cor0\.col1\)\)\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - ( - - col1 ) ) AS col1, - col1 AS col1 FROM tab0 AS cor0 +---- +-1 +-1 +-21 +-21 +-81 +-81 query I rowsort SELECT ALL + col1 * - 42 FROM tab1 cor0 @@ -21603,8 +21883,15 @@ SELECT - MAX ( ALL col1 ) FROM tab2 cor0 # Datafusion - Expected - 73 # Datafusion - Expected - 80 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* tab0\.col2 AS col2" at position 0 and "Int64\(16\) \+ Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 * + col2 AS col2, 16 + 57 AS col2 FROM tab0 +---- +376 +73 +73 +73 +792 +80 query I rowsort label-3537 SELECT ALL - SUM ( DISTINCT + 85 ) FROM tab2 @@ -21702,8 +21989,15 @@ SELECT DISTINCT - 83 AS col1 FROM tab1 AS cor0 WHERE + col1 * 36 >= NULL # Datafusion - Expected - 47 # Datafusion - Expected - 24 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(24\) AS Int32\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + CAST ( + + 24 AS INTEGER ) AS col1, + col2 col1 FROM tab0 AS cor0 +---- +10 +24 +24 +24 +47 +99 query I rowsort SELECT DISTINCT + ( + 54 ) col2 FROM tab0 AS cor0 @@ -21903,8 +22197,15 @@ SELECT + SUM ( + + 36 ) * COUNT ( * ) AS col1 FROM tab2 # Datafusion - Expected - -85 # Datafusion - Expected - -91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\)" at position 0 and "\(\- tab1\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0, - col0 FROM tab1 +---- +-51 +-51 +-85 +-85 +-91 +-91 query I rowsort SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT col1 * + col1 <= NULL @@ -23029,8 +23330,11 @@ SELECT COUNT ( * ) * 3 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "\(\- max\(CAST\(Int64\(\-15\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 7 AS col2, - MAX ( + CAST ( + - 15 AS INTEGER ) ) AS col2 FROM tab1 cor0 +---- +15 +7 query I rowsort SELECT + col1 + - 25 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL @@ -23794,8 +24098,15 @@ SELECT ALL - MAX ( DISTINCT - 68 ) FROM tab0 AS cor0 # Datafusion - Expected - 43 # Datafusion - Expected - -97 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(60\) \- Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col1, 60 - + 17 AS col1 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +43 +43 +43 query II rowsort label-3896 SELECT ALL - + COUNT ( * ), 14 col2 FROM tab1 AS cor0 @@ -24355,8 +24666,10 @@ SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + 5 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 6b24d47661024ca816fc16219d387b81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 1 and "cor0\.col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 10 + - CAST ( NULL AS INTEGER ) * col0 col1, col2, col2 FROM tab2 AS cor0 +---- +9 values hashing to 480dc3871885171583c990fe3eaa678c query III rowsort SELECT * FROM tab1 AS cor0 WHERE 99 * - col2 BETWEEN + col2 AND 97 @@ -24381,8 +24694,15 @@ SELECT DISTINCT ( col1 ) + + col2 FROM tab0 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) / cor0\.col2 \- \(\- cor0\.col2\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 2 / + col2 - - + col2 col2, - col2 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +10 +47 +99 query I rowsort SELECT - - ( - ( + - col1 ) ) FROM tab2 AS cor0 @@ -25827,8 +26147,15 @@ SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 WHERE NULL <= NULL # Datafusion - Expected - 91 # Datafusion - Expected - -5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col1, col0 AS col1 FROM tab1 +---- +-14 +-47 +-5 +51 +85 +91 query I rowsort SELECT ALL col1 + - 19 AS col2 FROM tab1 @@ -26893,8 +27220,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * - + 16 col1, 71 col1 FROM tab2 +---- +-48 +71 query I rowsort label-4413 SELECT SUM ( - col0 ) * - 75 FROM tab2 @@ -26921,8 +27251,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ), + ( + COUNT ( * ) ) FROM tab0 +---- +3 +3 query III rowsort SELECT ALL * FROM tab1 WHERE + + col1 + + 87 NOT BETWEEN NULL AND + + 13 @@ -27164,8 +27497,15 @@ NULL # Datafusion - Expected - -97 # Datafusion - Expected - 42 # Datafusion - Expected - -1827 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "cor0\.col1 \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col1 + - - col1 AS col1, + col1 * - col0 col1 FROM tab0 AS cor0 +---- +-1215 +-1827 +-97 +162 +2 +42 query I rowsort SELECT DISTINCT - 85 + + 45 FROM tab2 AS cor0 @@ -27319,8 +27659,15 @@ SELECT DISTINCT 73 + - - col1 + col0 * col1 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - -12 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(12\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 12 AS col2, col1 AS col2 FROM tab0 AS cor0 +---- +-12 +-12 +-12 +1 +21 +81 query I rowsort SELECT - col2 * - - col0 + + 39 + + + col1 FROM tab0 AS cor0 @@ -28912,8 +29259,15 @@ NULL # Datafusion - Expected - 7826 # Datafusion - Expected - -5 # Datafusion - Expected - 7310 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col1" at position 0 and "tab1\.col0 \* Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, + col0 * + 86 AS col1 FROM tab1 +---- +-14 +-47 +-5 +4386 +7310 +7826 query I rowsort label-4752 SELECT - + ( + + 69 ) * + CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 @@ -29521,8 +29875,11 @@ SELECT - - 0 / col2 AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN - 95 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, 63 AS col0 FROM tab1 AS cor0 +---- +3 +63 query I rowsort label-4851 SELECT ALL ( - ( - + COUNT ( * ) ) ) FROM tab0 @@ -29583,8 +29940,15 @@ SELECT + col2 * ( + 11 ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 98 # Datafusion - Expected - 5 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, + 98 AS col0 FROM tab1 +---- +14 +47 +5 +98 +98 +98 query I rowsort SELECT DISTINCT ( 10 ) AS col1 FROM tab1 @@ -29730,8 +30094,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col0, 80 col0 FROM tab0 cor0 +---- +-3 +80 query I rowsort SELECT col1 * - col0 * - col0 * 55 + col2 AS col2 FROM tab2 AS cor0 @@ -29928,8 +30295,11 @@ SELECT + 79 + - col1 * 18 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, + 81 AS col0 FROM tab1 +---- +3 +81 query III rowsort SELECT * FROM tab0 WHERE ( - 55 + + ( + - ( + col1 ) ) IS NULL ) @@ -30208,8 +30578,15 @@ SELECT * FROM tab1 AS cor0 WHERE + 48 IS NOT NULL # Datafusion - Expected - -2630870 # Datafusion - Expected - -81 # Datafusion - Expected - -2131873 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col1" at position 0 and "tab0\.col2 \+ tab0\.col2 \* Int64\(63\) \* Int64\(\-48\) \* tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, col2 + + col2 * ( + 63 ) * - 48 * + col0 AS col1 FROM tab0 +---- +-1 +-21 +-2131873 +-2630870 +-29039373 +-81 query I rowsort SELECT DISTINCT 48 - - col1 + - 70 AS col1 FROM tab2 @@ -30229,8 +30606,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT 20 IS NOT NULL # Datafusion - Expected - -93 # Datafusion - Expected - 77 # Datafusion - Expected - -103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(\-26\) \+ \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, - 26 + + - col1 AS col2 FROM tab2 AS cor0 +---- +-103 +-77 +-93 +51 +67 +77 query II rowsort SELECT DISTINCT col0 AS col2, 30 FROM tab0 AS cor0 @@ -30399,8 +30783,15 @@ SELECT - 22 * - col2 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 27 # Datafusion - Expected - 15 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 15 AS col1, 27 AS col1 FROM tab2 AS cor0 +---- +15 +15 +15 +27 +27 +27 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND - + 60 @@ -30452,8 +30843,15 @@ SELECT + col1 * 52 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 20 # Datafusion - Expected - -5 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col0 \+ Int64\(\-71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + col1 ) col1, col0 + - 71 AS col1 FROM tab1 AS cor0 +---- +-14 +-20 +-47 +-5 +14 +20 query I rowsort SELECT ALL - 63 + + 35 + col1 FROM tab2 AS cor0 @@ -31069,8 +31467,11 @@ SELECT ALL - MIN ( 11 ) - 11 + 7 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col1, + 54 AS col1 FROM tab0 +---- +-3 +54 query I rowsort label-5112 SELECT DISTINCT COUNT ( ALL 58 ) AS col2 FROM tab2 @@ -31089,8 +31490,11 @@ SELECT ALL + - COUNT ( * ) * 81 AS col0 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(70\)\)\) / \(\- count\(\(\- Int64\(51\)\)\)\) AS col0" at position 0 and "Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MAX ( ALL 70 ) / - + COUNT ( - ( 51 ) ) AS col0, 76 AS col0 FROM tab0 AS cor0 +---- +23 +76 query I rowsort label-5116 SELECT DISTINCT - COUNT ( * ) + MIN ( ALL + + col0 ) AS col1 FROM tab0 AS cor0 @@ -31230,8 +31634,15 @@ SELECT DISTINCT + ( 89 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 4341 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col0 \* cor0\.col2 \+ \(\- \(\- cor0\.col2\)\) AS col2" at position 0 and "Int64\(\-13\) \+ cor0\.col1 \* cor0\.col0 / cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 + + col0 * col2 + - - col2 AS col2, - 13 + col1 * col0 / + col0 col2 FROM tab2 AS cor0 +---- +1030 +2523 +38 +4341 +54 +64 query I rowsort label-5138 SELECT DISTINCT + COUNT ( + - col1 ) + + + ( 96 ) * + MIN ( DISTINCT - 48 ) col1 FROM tab0 AS cor0 WHERE NOT NULL > ( + col2 ) @@ -31800,8 +32211,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\)" at position 0 and "Int64\(52\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 52, 52 FROM tab1 AS cor0 +---- +52 +52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 @@ -34386,8 +34800,11 @@ SELECT DISTINCT - 83 AS col0 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +-3 +3 query I rowsort label-5659 SELECT - + COUNT ( - + 81 ) FROM tab1 AS cor0 @@ -34900,8 +35317,15 @@ SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 35 IS NULL # Datafusion - Expected - 99 # Datafusion - Expected - 8 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) / cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col0 / + col2 col1, + col2 AS col1 FROM tab0 AS cor0 +---- +0 +0 +10 +47 +8 +99 query I rowsort SELECT ALL + + ( col2 ) * - col2 FROM tab1 AS cor0 @@ -35775,8 +36199,11 @@ SELECT DISTINCT 7 * 21 + + - ( - col1 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 10 + ( COUNT ( * ) ) AS col1, - COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +-3 +13 query I rowsort SELECT - col0 * - + col1 AS col1 FROM tab0 AS cor0 @@ -36033,8 +36460,9 @@ SELECT DISTINCT + COUNT ( * ) + 75 FROM tab0 AS cor0 78 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col0 AS col2, col0 AS col2 FROM tab2 AS cor0 WHERE - col2 IS NULL +---- query II rowsort SELECT col0 + + col2, col1 + + col1 col1 FROM tab0 AS cor0 @@ -36519,8 +36947,11 @@ SELECT ALL - col1 + + col1 col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -185 # Datafusion - Expected - 121 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(cor0\.col0\)\) 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 II valuesort SELECT ALL - + SUM ( col0 ) AS col0, + SUM ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0 +---- +-185 +121 query I rowsort SELECT col0 FROM tab0 AS cor0 WHERE + col0 * + + ( - 28 ) * 90 IS NULL @@ -37554,8 +37985,15 @@ SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + + 65 ) * col0 I # Datafusion - Expected - 33 # Datafusion - Expected - 77 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, 33 AS col0 FROM tab2 AS cor0 +---- +33 +33 +33 +51 +67 +77 query I rowsort SELECT ALL + - ( - + col2 ) * - + col2 FROM tab1 cor0 @@ -37727,8 +38165,15 @@ NULL # Datafusion - Expected - -21 # Datafusion - Expected - 97 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col1, - col1 AS col1 FROM tab0 +---- +-1 +-21 +-81 +15 +87 +97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 @@ -37737,8 +38182,15 @@ SELECT ALL + col0 AS col1, - col1 AS col1 FROM tab0 # Datafusion - Expected - 611 # Datafusion - Expected - 92 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "Int64\(13\) \* tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 92 AS col1, + 13 * col1 AS col1 FROM tab1 +---- +182 +611 +65 +92 +92 +92 query II rowsort SELECT ( - - 81 ) - + - col0, ( col2 ) AS col2 FROM tab1 @@ -38206,8 +38658,15 @@ SELECT DISTINCT ( - MIN ( DISTINCT + + col1 ) ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -90 # Datafusion - Expected - -58 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + ( col2 ) AS col0, - 90 AS col0 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +-90 +-90 +-90 query III rowsort SELECT ALL * FROM tab1 cor0 WHERE NOT - 21 IS NULL @@ -38434,8 +38893,15 @@ SELECT ALL + + 14 * - - col2 + col0 - col0 * - - col2 - + ( - 91 ) * + col1 FROM # Datafusion - Expected - 5 # Datafusion - Expected - -91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +14 +47 +5 query III rowsort SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <> - 38 @@ -38507,8 +38973,9 @@ SELECT + 68 + col0 AS col2 FROM tab0 AS cor0 83 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab0\.col0\)\) \+ \(\- tab0\.col0\) / \(\- tab0\.col0\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 + + ( - col0 ) / + - col0 AS col1, ( col0 ) col1 FROM tab0 WHERE - - 11 * - - 29 IS NULL +---- query I rowsort SELECT - col0 + 62 AS col0 FROM tab2 @@ -39322,8 +39789,11 @@ SELECT ALL + + MIN ( DISTINCT + + 8 ) col2 FROM tab0 cor0 # 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 "Int64\(73\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 73 AS col0, + 24 AS col0 FROM tab0 +---- +24 +73 query I rowsort SELECT ALL + ( - col1 ) col2 FROM tab2 WHERE NOT - ( + col1 ) * + ( - 57 ) * col1 - col0 IS NOT NULL @@ -39577,8 +40047,11 @@ SELECT - col0 + - 79 col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 62 col2, 90 AS col2 FROM tab1 +---- +62 +90 query I rowsort SELECT 55 * + ( col0 ) * col1 + - 7 AS col0 FROM tab2 @@ -39996,8 +40469,15 @@ SELECT ALL - SUM ( - 57 ) + + MIN ( DISTINCT col1 ) FROM tab1 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col0, col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-6582 SELECT ALL + col1 * + ( CAST ( col2 AS INTEGER ) ) AS col1 FROM tab1 @@ -40283,8 +40763,9 @@ SELECT + MIN ( DISTINCT - col0 ) AS col1 FROM tab2 -75 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \- \(\- CAST\(Int64\(73\) AS Int32\)\) AS col2" at position 0 and "cor0\.col0 / cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 72 - - + CAST ( + 73 AS INTEGER ) AS col2, + col0 / + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL +---- query I rowsort label-6629 SELECT + COUNT ( * ) + - + 18 AS col1 FROM tab0 cor0 @@ -40312,8 +40793,15 @@ SELECT * FROM tab0 AS cor0 WHERE + ( + + 36 ) NOT BETWEEN NULL AND NULL # Datafusion - Expected - 55 # Datafusion - Expected - -58 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col2" at position 0 and "tab2\.col1 \+ Int64\(\-15\) \* tab2\.col0 / Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col2, + col1 + - 15 * col0 / + 42 AS col2 FROM tab2 +---- +-23 +-40 +-58 +35 +41 +55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 @@ -40621,8 +41109,15 @@ SELECT ALL col1 - + - 16 AS col1 FROM tab1 # Datafusion - Expected - 10 # Datafusion - Expected - 81 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "\(\- \(\- tab0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, - ( - col2 ) AS col0 FROM tab0 +---- +1 +10 +21 +47 +81 +99 query III rowsort SELECT * FROM tab1 WHERE NOT NULL <> + - col2 + - - col0 @@ -40819,8 +41314,15 @@ SELECT 91, + 89 / - 96 * col1 col1 FROM tab1 WHERE + 76 <= NULL # Datafusion - Expected - 137 # Datafusion - Expected - 77 # Datafusion - Expected - 160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \- \(\- tab1\.col1\) AS col2" at position 0 and "tab1\.col2 \+ \(\- tab1\.col1\) \+ \(\- tab1\.col2\) / \(\- tab1\.col1\) \+ Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 63 - - col1 col2, col2 + + - col1 + - col2 / + - col1 + 72 AS col2 FROM tab1 +---- +110 +137 +160 +68 +77 +94 query I rowsort label-6714 SELECT DISTINCT - CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 @@ -40846,8 +41348,11 @@ SELECT ALL - 98 * - 62 AS col1 FROM tab0 WHERE NULL = 21 / + col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -117390 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(tab2\.col0\) AS col1" at position 0 and "CAST\(\(\- avg\(DISTINCT \(\- tab2\.col1\)\)\) AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(43\) \* Int64\(\-14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( ALL col0 ) AS col1, + ( + CAST ( + - AVG ( DISTINCT - col1 ) AS INTEGER ) ) * + COUNT ( * ) * + 43 * - 14 AS col1 FROM tab2 +---- +-117390 +3 query I rowsort SELECT DISTINCT + col2 * ( col1 ) FROM tab1 @@ -41201,8 +41706,15 @@ SELECT DISTINCT * FROM tab0 WHERE 22 + + ( + col2 ) + + - col1 + - - col0 * - co # Datafusion - Expected - NULL # Datafusion - Expected - 96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab1\.col2\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Float64\)\) \* \(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ( - - col2 ) AS col0, - CAST ( NULL AS FLOAT8 ) * - + col2 AS col0 FROM tab1 +---- +59 +68 +96 +NULL +NULL +NULL query I rowsort label-6779 SELECT MIN ( col2 ) AS col2 FROM tab1 WHERE NOT + col0 - col2 BETWEEN NULL AND col2 * + 19 @@ -42694,8 +43206,15 @@ SELECT MIN ( 76 ) AS col2 FROM tab0 # Datafusion - Expected - 87 # Datafusion - Expected - 8 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 8 AS col2, col0 col2 FROM tab0 +---- +15 +8 +8 +8 +87 +97 query II rowsort label-7032 SELECT ALL - 30, + COUNT ( * ) + COUNT ( ALL + - 70 ) * + + 90 AS col0 FROM tab2 @@ -43708,8 +44227,15 @@ SELECT DISTINCT - + 4 col2 FROM tab0 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 col2, col2 AS col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-7202 SELECT DISTINCT + + 70 / 31 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 @@ -44781,8 +45307,15 @@ SELECT DISTINCT * FROM tab1 WHERE ( 31 ) IN ( CAST ( - CAST ( - col0 AS INTEGER # Datafusion - Expected - 85 # Datafusion - Expected - 1 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 1 AS col2, ( col0 ) AS col2 FROM tab1 +---- +1 +1 +1 +51 +85 +91 query I rowsort label-7387 SELECT - + CAST ( NULL AS INTEGER ) / + col1 col0 FROM tab0 WHERE NOT ( + col1 <= + col1 ) @@ -44903,8 +45436,15 @@ SELECT ALL 43 - col0 FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0, col0 FROM tab2 WHERE NOT - col0 * + + 8 * - col2 IS NULL +---- +46 +46 +64 +64 +75 +75 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT col0 + col0 NOT BETWEEN ( + col1 ) + 71 AND - col0 + col0 @@ -45168,8 +45708,15 @@ SELECT 75 AS col1, 6 FROM tab2 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 5 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col1 AS col0, + 64 AS col0 FROM tab1 AS cor0 +---- +14 +47 +5 +64 +64 +64 query I rowsort SELECT - + col2 * - - col1 FROM tab1 AS cor0 @@ -45333,8 +45880,15 @@ SELECT ALL + col0 / 78 FROM tab1 # Datafusion - Expected - 7830 # Datafusion - Expected - 73 # Datafusion - Expected - 8730 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(73\) AS Int32\) AS col2" at position 0 and "Int64\(90\) \* tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( + 73 AS INTEGER ) AS col2, 90 * col0 AS col2 FROM tab0 +---- +1350 +73 +73 +73 +7830 +8730 query I rowsort SELECT ALL ( - col0 ) FROM tab0 WHERE NULL IS NULL @@ -45409,8 +45963,15 @@ SELECT ALL + MIN ( 17 ) AS col0 FROM tab2 # Datafusion - Expected - 30 # Datafusion - Expected - 42 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col1 AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + + col1 AS col0, 30 AS col0 FROM tab0 AS cor0 +---- +162 +2 +30 +30 +30 +42 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -46159,8 +46720,15 @@ SELECT * FROM tab1 WHERE ( NOT col2 IS NULL ) # Datafusion - Expected - 59 # Datafusion - Expected - 840 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* Int64\(60\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + ( + 60 ) AS col1, col2 AS col1 FROM tab1 +---- +2820 +300 +59 +68 +840 +96 query I rowsort SELECT DISTINCT - + ( - - col2 ) col1 FROM tab0 AS cor0 @@ -46321,7 +46889,7 @@ SELECT DISTINCT + COUNT ( * ) + - 89 col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 4f3211e31d459f18a4248b4e71d761ad -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(98\)\) \* \(\- Int64\(61\)\) / CAST\(NULL AS Int32\) \+ cor0\.col0 \- Int64\(98\) \+ \(\- cor0\.col0\) \+ \(\- cor0\.col2\) \* cor0\.col0 \* \(\- cor0\.col2\) \* Int64\(15\) \* cor0\.col0 \- \(\- cor0\.col2\) AS col2" at position 0 and "Int64\(62\) \* Int64\(\-36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Schema error: Schema contains qualified field name cor0\.col2 and unqualified field name col2 which would be ambiguous SELECT ALL - + 98 * - ( + 61 ) / CAST ( NULL AS INTEGER ) + + col0 - + 98 + - col0 + - + col2 * col0 * + - col2 * 15 * col0 - ( - col2 ) col2, + 62 * - 36 AS col2, col2 FROM tab0 AS cor0 query I rowsort label-7627 @@ -47011,8 +47579,15 @@ SELECT ( - col0 ) AS col1, + col1 / + 32 FROM tab2 AS cor0 # Datafusion - Expected - -465 # Datafusion - Expected - -2912 # Datafusion - Expected - -4371 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* CAST\(Int64\(\-32\) AS Int32\) AS col1" at position 0 and "\(\- tab1\.col1\) \* \(\- Int64\(\-93\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( col0 ) * CAST ( - 32 AS INTEGER ) AS col1, - col1 * - - 93 AS col1 FROM tab1 +---- +-1302 +-1632 +-2720 +-2912 +-4371 +-465 query I rowsort label-7736 SELECT - col2 + - col2 + + - CAST ( - - col2 AS INTEGER ) FROM tab2 WHERE - col2 - - + 31 IS NOT NULL @@ -47417,8 +47992,11 @@ SELECT DISTINCT * FROM tab0 WHERE - - 36 NOT IN ( - 75 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT \(\- tab2\.col2\)\) AS col1" at position 0 and "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( DISTINCT - col2 ) AS col1, - CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 +---- +-23 +-3 query I rowsort label-7810 SELECT - MIN ( - col2 ) * + ( COUNT ( * ) ) FROM tab1 @@ -47895,8 +48473,11 @@ SELECT - col1 + + - col1 AS col0 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(17\) / Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, 17 / 91 AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL +---- +0 +0 query I rowsort SELECT col0 - + 28 FROM tab2 AS cor0 @@ -48425,8 +49006,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + - + 12 - + 74 / + 3 col1, - COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +-3 +-33 query I rowsort label-7979 SELECT ALL + 81 + - - MAX ( + col1 ) FROM tab2 AS cor0 @@ -48444,8 +49028,15 @@ SELECT * FROM tab2 WHERE NULL <> col2 # Datafusion - Expected - -2560 # Datafusion - Expected - NULL # Datafusion - Expected - -4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int32\) AS Int32\) AS col2" at position 0 and "tab2\.col2 \* \(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, col2 * - col0 col2 FROM tab2 +---- +-1058 +-2560 +-4350 +NULL +NULL +NULL query I rowsort SELECT DISTINCT col0 + col2 + - col2 AS col0 FROM tab1 @@ -49409,8 +50000,15 @@ SELECT DISTINCT - 83 col1 FROM tab0 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 74 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- Int64\(\-74\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * - - 74 AS col1, - CAST ( NULL AS INTEGER ) + - + col0 AS col1 FROM tab0 AS cor0 +---- +1554 +5994 +74 +NULL +NULL +NULL query I rowsort label-8135 SELECT ALL COUNT ( ALL col2 ) col1 FROM tab2 @@ -49745,8 +50343,11 @@ SELECT DISTINCT col0 * 55 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, ( + 13 ) AS col2 FROM tab0 +---- +13 +3 query I rowsort label-8188 SELECT DISTINCT - COUNT ( * ) / - + 67 FROM tab0 @@ -50275,8 +50876,15 @@ NULL # Datafusion - Expected - -4 # Datafusion - Expected - -79 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col1" at position 0 and "Int64\(\-4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 79 col1, - 4 AS col1 FROM tab0 +---- +-4 +-4 +-4 +-79 +-79 +-79 query II rowsort SELECT + col1, 20 FROM tab1 @@ -50925,8 +51533,9 @@ SELECT DISTINCT - - col2 AS col0, col1 AS col1 FROM tab1 AS cor0 14 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* cor0\.col1 \* cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 * + col1 * col0 col1, col2 AS col1 FROM tab2 cor0 WHERE NOT + col0 * 47 / col2 * col2 * - - 47 IS NOT NULL +---- query II rowsort label-8390 SELECT + + 86 * - + COUNT ( * ), + 92 AS col2 FROM tab0 AS cor0 @@ -51086,8 +51695,15 @@ SELECT ALL * FROM tab0 cor0 WHERE NOT col2 BETWEEN - - col2 AND col2 # Datafusion - Expected - 12 # Datafusion - Expected - -62 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* Int64\(62\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col1 * 62 AS col2, 12 AS col2 FROM tab0 AS cor0 +---- +-1302 +-5022 +-62 +12 +12 +12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 @@ -51096,8 +51712,15 @@ SELECT ALL - + col1 * 62 AS col2, 12 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 17 # Datafusion - Expected - 77 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, 17 AS col2 FROM tab2 AS cor0 WHERE ( NOT 65 IS NULL ) +---- +17 +17 +17 +51 +67 +77 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE ( - col2 + 82 < - + 54 + + 53 ) @@ -51286,8 +51909,15 @@ SELECT - COUNT ( * ) AS col0, - 88 FROM tab0 # Datafusion - Expected - -26 # Datafusion - Expected - 91 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "\(\- \(\- tab1\.col2\)\) \+ \(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, ( - - col2 ) + - col0 AS col2 FROM tab1 +---- +-23 +-26 +45 +51 +85 +91 query I rowsort label-8447 SELECT + MAX ( DISTINCT - col2 ) * - + ( - - 36 ) AS col2 FROM tab0 AS cor0 @@ -51617,8 +52247,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) * ( + 59 ) AS col2, 66 AS col2 FROM tab1 +---- +177 +66 query I rowsort SELECT DISTINCT col0 * - - 83 * - - col0 + + col1 + + - col2 FROM tab2 @@ -52654,8 +53287,15 @@ SELECT - col2 + - + 55 FROM tab0 AS cor0 # Datafusion - Expected - 41 # Datafusion - Expected - -3886 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 * - + col2 AS col1, 41 AS col1 FROM tab2 AS cor0 +---- +-1173 +-3080 +-3886 +41 +41 +41 query I rowsort label-8662 SELECT col1 / + col2 + col1 AS col0 FROM tab2 @@ -52667,8 +53307,11 @@ SELECT col1 / + col2 + col1 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) / Int64\(\-99\) \+ \(\- CAST\(tab0\.col0 AS Int32\)\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "\(\- \(\- tab0\.col1\)\) / \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 12 / + - 99 + - CAST ( + col0 AS INTEGER ) * - - CAST ( NULL AS INTEGER ) AS col2, - ( - + col1 ) / - + col1 AS col2 FROM tab0 WHERE NOT ( + col2 = 86 * + + col1 ) +---- +-1 +NULL query I rowsort SELECT ALL 22 * + 94 * - 37 FROM tab0 @@ -53369,8 +54012,15 @@ SELECT - col1 * + + col1 AS col1 FROM tab1 # Datafusion - Expected - -87 # Datafusion - Expected - 1772 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ \(\- Int64\(\-47\)\) \* \(\- Int64\(\-37\)\) AS col0" at position 0 and "\(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 33 + - - 47 * + ( - - 37 ) AS col0, - col0 AS col0 FROM tab0 +---- +-15 +-87 +-97 +1772 +1772 +1772 query I rowsort label-8782 SELECT ALL COUNT ( * ) + - - 20 FROM tab2 cor0 @@ -54334,8 +54984,15 @@ SELECT DISTINCT + COUNT ( * ) AS col2, + CAST ( - COUNT ( * ) AS INTEGER ) AS co # Datafusion - Expected - -81 # Datafusion - Expected - 44130 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \+ Int64\(\-66\) \+ tab0\.col2 \* \(\- tab0\.col1\) \* Int64\(\-21\) \* tab0\.col2 AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 96 + - 66 + col2 * - + col1 * - 21 * col2 col0, - col1 AS col0 FROM tab0 +---- +-1 +-21 +-81 +205851 +3757539 +44130 query III rowsort SELECT * FROM tab1 AS cor0 WHERE col1 * + col0 * 82 IS NULL @@ -54723,8 +55380,11 @@ SELECT - - 17 * COUNT ( - CAST ( col1 AS INTEGER ) ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 137 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \+ Int64\(75\) AS col1" at position 0 and "Int64\(62\) \+ \(\- \(\- \(\- max\(cor0\.col1\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 62 + + 75 AS col1, 62 + - - ( - MAX ( col1 ) ) AS col1 FROM tab1 AS cor0 +---- +137 +15 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND col2 * 31 @@ -54733,8 +55393,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-84\) \* \(\- count\(Int64\(30\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 4 AS col0, - ( COUNT ( * ) ) * - 84 * + - COUNT ( ALL + 30 ) AS col0 FROM tab0 +---- +-756 +4 query I rowsort label-9004 SELECT + MAX ( + 42 ) FROM tab2 @@ -56021,8 +56684,15 @@ SELECT * FROM tab2 WHERE NOT - col1 * - col1 + + col0 IS NOT NULL # Datafusion - Expected - -1232 # Datafusion - Expected - 75 # Datafusion - Expected - -1072 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "Int64\(16\) \* \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, 16 * - ( col1 ) AS col2 FROM tab2 +---- +-1072 +-1232 +-816 +46 +64 +75 query I rowsort label-9217 SELECT ALL - MIN ( ALL - 31 ) FROM tab0 @@ -56241,8 +56911,15 @@ SELECT - 21 * + + COUNT ( * ) FROM tab0 # Datafusion - Expected - 96 # Datafusion - Expected - -162 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(85\)\) \+ \(\- cor0\.col1\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 85 + - col1 AS col0, 96 AS col0 FROM tab2 AS cor0 +---- +-136 +-152 +-162 +96 +96 +96 query I rowsort SELECT col2 * + ( - - col0 ) AS col2 FROM tab1 AS cor0 @@ -59010,8 +59687,15 @@ SELECT ALL - col2 + + + ( + ( - - col1 ) ) col2 FROM tab2 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -52 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 52 AS col0, - col2 AS col0 FROM tab0 AS cor0 +---- +-10 +-47 +-52 +-52 +-52 +-99 query I rowsort SELECT DISTINCT + - 83 + + + 92 + col0 FROM tab2 AS cor0 @@ -59257,8 +59941,15 @@ NULL # Datafusion - Expected - -67 # Datafusion - Expected - NULL # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, - col1 col1 FROM tab2 +---- +-51 +-67 +-77 +NULL +NULL +NULL query I rowsort label-9753 SELECT ALL + 72 * + COUNT ( * ) AS col1 FROM tab0 diff --git a/data/sqlite/random/aggregates/slt_good_122.slt b/data/sqlite/random/aggregates/slt_good_122.slt index 1bab29e..51cfe01 100644 --- a/data/sqlite/random/aggregates/slt_good_122.slt +++ b/data/sqlite/random/aggregates/slt_good_122.slt @@ -1142,8 +1142,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + 81 + - + COUNT ( * ) AS col1, 13 col1 FROM tab1 AS cor0 +---- +13 +78 query III rowsort SELECT DISTINCT * FROM tab0 cor0 WHERE 84 < + - 23 @@ -1355,8 +1358,11 @@ SELECT ALL + MAX ( ALL + - col0 ) + SUM ( ALL - - 38 ) * COUNT ( * ) * 26 / + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -180576 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(48\) \* Int64\(\-57\) \* Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 48 * - 57 * 66 AS col2 FROM tab1 AS cor0 +---- +-180576 +3 query I rowsort SELECT ALL - col0 + col2 * + col1 AS col0 FROM tab2 AS cor0 @@ -1492,8 +1498,15 @@ SELECT - + MIN ( + - col2 ) col2 FROM tab2 AS cor0 # Datafusion - Expected - 54 # Datafusion - Expected - -99 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col2 AS col2, 54 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +54 +54 +54 query II rowsort SELECT ALL - ( - ( + 56 ) ) AS col1, + col0 FROM tab1 AS cor0 @@ -2163,8 +2176,15 @@ SELECT ALL + 77, - col0 AS col0 FROM tab2 # Datafusion - Expected - -64 # Datafusion - Expected - 0 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) / tab2\.col0 AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 7 / col0 AS col1, - col0 AS col1 FROM tab2 +---- +-46 +-64 +-75 +0 +0 +0 query I rowsort SELECT + + col1 FROM tab2 WHERE NOT col1 >= + col1 @@ -2441,8 +2461,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( 14 ) # Datafusion - Expected - 47 # Datafusion - Expected - 77 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, + 47 AS col2 FROM tab2 +---- +47 +47 +47 +51 +67 +77 query I rowsort SELECT - - col1 AS col2 FROM tab2 AS cor0 WHERE NOT + 90 / - 95 + 12 + - - col2 * - col1 IS NULL @@ -2715,8 +2742,15 @@ SELECT ( + col2 ) col0, - 33 AS col1 FROM tab2 WHERE NULL <> + col1 + col2 # Datafusion - Expected - -12 # Datafusion - Expected - 15 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "Int64\(\-12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 15 AS col0, - 12 AS col0 FROM tab1 +---- +-12 +-12 +-12 +15 +15 +15 query I rowsort SELECT DISTINCT col0 * - 92 * - - 33 + - col0 + + - 48 FROM tab1 @@ -3288,8 +3322,15 @@ SELECT + 64 + - 17 / - ( - 78 ) AS col2 FROM tab2 WHERE ( NOT + 84 >= + 80 ) # Datafusion - Expected - 3080 # Datafusion - Expected - 4350 # Datafusion - Expected - 3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* tab2\.col0 AS col2" at position 0 and "tab2\.col1 \* \(\- \(\- tab2\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 * col0 col2, col1 * - - col2 AS col2 FROM tab2 +---- +1058 +1173 +2560 +3080 +3886 +4350 query III rowsort SELECT ALL * FROM tab0 WHERE - col0 / - 7 - + col1 IS NULL @@ -3864,8 +3905,15 @@ SELECT DISTINCT col1 col1, + col0 * + + 60 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\)" at position 0 and "CAST\(NULL AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + CAST ( NULL AS FLOAT8 ), + CAST ( NULL AS INTEGER ) FROM tab2 +---- +NULL +NULL +NULL +NULL +NULL +NULL query I rowsort SELECT ( ( + + col0 ) ) * + col1 * col2 FROM tab0 @@ -4084,8 +4132,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 34 AS col1, - ( + COUNT ( * ) ) AS col1 FROM tab2 +---- +-3 +34 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -4255,8 +4306,15 @@ SELECT ALL - + 77 AS col1 FROM tab1 WHERE NOT + 71 IS NOT NULL # Datafusion - Expected - 92 # Datafusion - Expected - 61 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 61 AS col0, + 92 AS col0 FROM tab2 +---- +61 +61 +61 +92 +92 +92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 @@ -4265,8 +4323,15 @@ SELECT ALL 61 AS col0, + 92 AS col0 FROM tab2 # Datafusion - Expected - 86 # Datafusion - Expected - 99 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, 86 col0 FROM tab0 +---- +10 +47 +86 +86 +86 +99 query II rowsort label-705 SELECT COUNT ( - col1 ), 88 col1 FROM tab0 WHERE NOT + col1 * - col0 + 1 IS NOT NULL @@ -4657,8 +4722,15 @@ SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 + - + 72 ) BETWEEN NU # Datafusion - Expected - -47 # Datafusion - Expected - 99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, ( - + col2 ) col0 FROM tab0 +---- +-10 +-47 +-99 +10 +47 +99 query I rowsort SELECT - col2 * 5 FROM tab0 @@ -4805,8 +4877,15 @@ SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN col2 AND NULL # Datafusion - Expected - 81 # Datafusion - Expected - 91 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, + 81 col2 FROM tab1 AS cor0 +---- +51 +81 +81 +81 +85 +91 query III rowsort SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col1 IN ( - col0, - col1, + + col1 * - - 23, ( col1 ), - - 86, col0 ) @@ -4910,8 +4989,11 @@ SELECT ( 16 ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- \(\- cor0\.col2\)\)\)\) / \(\- max\(Int64\(\-86\)\)\) \+ \(\- max\(\(\- cor0\.col0\)\)\) \- CAST\(\(\- count\(Int64\(2\)\)\) AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + ( SUM ( - - col2 ) ) / - MAX ( ALL + - 86 ) + - MAX ( - col0 ) - + CAST ( - COUNT ( ALL 2 ) AS INTEGER ) col0, COUNT ( * ) * + + COUNT ( * ) col0 FROM tab1 AS cor0 +---- +52 +9 query I rowsort label-807 SELECT ALL MIN ( DISTINCT + + col0 ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE + col2 <> + + 40 * + - col0 @@ -6184,8 +6266,15 @@ SELECT DISTINCT - CAST ( + ( - + 47 ) AS INTEGER ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, col1 AS col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 55 IS NOT NULL @@ -7119,8 +7208,15 @@ SELECT ALL 32 * COUNT ( * ) AS col2 FROM tab0 # Datafusion - Expected - 75 # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* \(\- tab2\.col2\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) * - col2 AS col2, + 75 AS col2 FROM tab2 +---- +75 +75 +75 +NULL +NULL +NULL query I rowsort SELECT DISTINCT - 24 AS col1 FROM tab1 cor0 @@ -7755,8 +7851,15 @@ SELECT + + 22 + col0 FROM tab2 AS cor0 # Datafusion - Expected - -69 # Datafusion - Expected - -84 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(77\)\) \+ Int64\(\-7\) AS col1" at position 0 and "Int64\(\-69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 77 + - 7 AS col1, - 69 AS col1 FROM tab1 AS cor0 +---- +-69 +-69 +-69 +-84 +-84 +-84 query I rowsort label-1278 SELECT - 27 * - COUNT ( * ) FROM tab0 @@ -8017,8 +8120,9 @@ SELECT col1, + col2, + - col2 + 42 FROM tab2 9 values hashing to d3095ddb56c6d7289767c5a295cdc9fb # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \+ tab2\.col1 AS col0" at position 0 and "tab2\.col0 \- \(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 35 + col1 AS col0, + col0 - - col2 AS col0 FROM tab2 WHERE NOT NULL < NULL +---- query II rowsort SELECT + col0 AS col2, col1 AS col1 FROM tab1 @@ -8137,8 +8241,15 @@ SELECT + col1 FROM tab2 AS cor0 WHERE col1 <= 35 # Datafusion - Expected - -68 # Datafusion - Expected - -4084 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \* cor0\.col2 \- \(\- Int64\(44\)\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 43 * + col2 - - + 44 AS col1, - col2 col1 FROM tab1 cor0 +---- +-2493 +-2880 +-4084 +-59 +-68 +-96 query I rowsort label-1339 SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT + col0 IN ( + col0 ) @@ -8838,8 +8949,15 @@ SELECT ALL + col1 - 5 * col0 FROM tab2 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, + col0 FROM tab1 AS cor0 WHERE 45 * + CAST ( NULL AS INTEGER ) IS NULL +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT col0 * 3 * + - col1 * + + 77 FROM tab1 AS cor0 @@ -9059,8 +9177,9 @@ SELECT + MIN ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT + 3 IS NULL -91 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col2 AS col2, col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL +---- query I rowsort label-1495 SELECT + - MIN ( + 23 ) AS col2 FROM tab2 AS cor0 @@ -9082,8 +9201,11 @@ SELECT - SUM ( - - 56 ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, 76 AS col1 FROM tab0 AS cor0 +---- +3 +76 query I rowsort SELECT DISTINCT ( - 62 ) * + 63 AS col2 FROM tab1 @@ -9097,8 +9219,10 @@ SELECT DISTINCT 49 + COUNT ( * ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 78b8b088a6aef9eeef6bd149bd8bf686 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 32 AS col0, 14 AS col0, + 31 * - col1 * col1 AS col2 FROM tab1 +---- +9 values hashing to c38a4cc3867124e4d7a94b4c7a997270 query III rowsort SELECT DISTINCT * FROM tab0 WHERE + + 82 < NULL @@ -9111,8 +9235,15 @@ SELECT DISTINCT * FROM tab0 WHERE + + 82 < NULL # Datafusion - Expected - 64 # Datafusion - Expected - -75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col1, col0 AS col1 FROM tab2 WHERE - 8 NOT IN ( + col1 * col0 ) +---- +-46 +-64 +-75 +46 +64 +75 query I rowsort SELECT DISTINCT 47 + 82 AS col2 FROM tab2 @@ -9287,8 +9418,15 @@ SELECT col0 * col2 + - + 59 col2 FROM tab0 # Datafusion - Expected - -66 # Datafusion - Expected - 169 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \+ Int64\(93\) AS col0" at position 0 and "Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + + 76 ) + 93 AS col0, - 66 AS col0 FROM tab1 +---- +-66 +-66 +-66 +169 +169 +169 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -10226,8 +10364,10 @@ SELECT + 36 * - - col1 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 08e082881d7c06791d1c9ecb530ef243 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "Int64\(\-98\) \+ \(\- tab0\.col2\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL col2 AS col1, + col1 + + col1 * - col0 * col1 * + 43, + - 98 + - col2 AS col1 FROM tab0 +---- +9 values hashing to 5fd1975f0017d4e77c47bf59e043f27b query I rowsort SELECT col0 FROM tab1 WHERE NOT + col0 / - 68 + + 79 * + 37 / + - col2 IS NULL @@ -10367,8 +10507,15 @@ SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE CA # Datafusion - Expected - -4732 # Datafusion - Expected - 5 # Datafusion - Expected - -4420 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(52\) \* \(\- cor0\.col0\) \+ \(\- cor0\.col1\) \+ cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, + 52 * - col0 + - col1 + + col1 AS col2 FROM tab1 AS cor0 +---- +-2652 +-4420 +-4732 +14 +47 +5 query I rowsort label-1704 SELECT ALL + CAST ( NULL AS INTEGER ) * - + col0 * col0 AS col1 FROM tab0 AS cor0 @@ -10634,8 +10781,15 @@ SELECT - - col2 - + - 52 + - - 75 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER # Datafusion - Expected - 59 # Datafusion - Expected - 8349 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col0 \* \(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 + + + col0 * - - col0 AS col0, col2 AS col0 FROM tab1 AS cor0 WHERE ( NOT - - col1 IS NULL ) +---- +2697 +59 +68 +7284 +8349 +96 query II rowsort SELECT ALL - 6 col1, + 40 + 23 FROM tab0 AS cor0 @@ -11411,8 +11565,15 @@ SELECT ALL + col2 + + col1 + + col2 / - col2 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 30 # Datafusion - Expected - 9 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \+ \(\- cor0\.col2\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 67 + - col2 AS col0, 30 AS col0 FROM tab2 AS cor0 +---- +27 +30 +30 +30 +44 +9 query II rowsort label-1882 SELECT ALL + 3 * + col2 + col1 AS col0, - ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0 @@ -11980,8 +12141,15 @@ SELECT COUNT ( * ), 25 AS col0 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 36 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ tab1\.col1 \* \(\- tab1\.col1\) AS col1" at position 0 and "Int64\(\-37\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \* tab1\.col1 \* Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 61 + + col1 * - col1 AS col1, - 37 * - - CAST ( NULL AS INTEGER ) * + col1 * + 22 AS col1 FROM tab1 +---- +-135 +-2148 +36 +NULL +NULL +NULL query II rowsort SELECT DISTINCT + col0 AS col0, - 2 + - ( - col0 ) FROM tab0 cor0 @@ -13103,8 +13271,11 @@ SELECT DISTINCT * FROM tab0 WHERE + col1 / + - 18 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(cor0\.col1\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( + col1 ) AS col0, ( + 24 ) AS col0 FROM tab1 AS cor0 +---- +24 +66 query I rowsort SELECT ALL - 85 + - col2 col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL @@ -13133,8 +13304,15 @@ SELECT - 30 / - MAX ( DISTINCT - + 74 ) FROM tab1 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Float64\) AS Int32\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( CAST ( NULL AS FLOAT8 ) AS INTEGER ) AS col1, + col0 AS col1 FROM tab1 cor0 +---- +51 +85 +91 +NULL +NULL +NULL query I rowsort label-2159 SELECT ALL + MAX ( ALL + 59 ) * + MIN ( - - col1 ) + + - 61 * + ( COUNT ( * ) ) + COUNT ( * ) AS col2 FROM tab1 WHERE NOT + - col2 + col2 >= col1 @@ -14194,8 +14372,15 @@ SELECT + 18 - + + 17 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL ) # Datafusion - Expected - 150 # Datafusion - Expected - -539 # Datafusion - Expected - 128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \* cor0\.col1 AS col1" at position 0 and "cor0\.col0 \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 7 * + col1 AS col1, col0 + + col0 AS col1 FROM tab2 AS cor0 +---- +-357 +-469 +-539 +128 +150 +92 query I rowsort label-2336 SELECT - ( - col1 ) / + col2 - + 4 AS col2 FROM tab2 AS cor0 @@ -15553,8 +15738,15 @@ SELECT ALL - 86 + - col1 FROM tab0 # Datafusion - Expected - 69 # Datafusion - Expected - 51 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-51\)\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 51 AS col2, 69 AS col2 FROM tab0 AS cor0 +---- +51 +51 +51 +69 +69 +69 query I rowsort label-2556 SELECT DISTINCT + col1 / - + 99 / col1 * + col0 FROM tab1 AS cor0 @@ -15891,8 +16083,11 @@ SELECT - + col0 - col1 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ sum\(CAST\(NULL AS Int32\)\) AS col1" at position 0 and "max\(DISTINCT \(\- cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 32 + + SUM ( CAST ( NULL AS INTEGER ) ) AS col1, MAX ( DISTINCT ( - col0 ) ) AS col1 FROM tab2 AS cor0 +---- +-46 +NULL query I rowsort label-2609 SELECT - + col1 / col2 - - + col0 + + + 27 * - col2 AS col0 FROM tab1 AS cor0 @@ -17940,8 +18135,11 @@ SELECT ALL 32 col0 FROM tab1 AS cor0 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + COUNT ( * ) ) AS col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-3 +3 query I rowsort label-2956 SELECT ALL + SUM ( - CAST ( col0 AS INTEGER ) ) FROM tab1 AS cor0 @@ -18009,8 +18207,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = col0 * col1 / + col2 # Datafusion - Expected - 1 # Datafusion - Expected - -5292 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* \(\- Int64\(\-4\)\) \* \(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 63 * - + ( - 4 ) * - col1 AS col0, col1 AS col0 FROM tab0 AS cor0 +---- +-20412 +-252 +-5292 +1 +21 +81 query II rowsort label-2969 SELECT DISTINCT - - 3 col0, + COUNT ( col0 ) FROM tab1 AS cor0 @@ -18220,8 +18425,9 @@ SELECT DISTINCT col1 * + col0 col2 FROM tab2 AS cor0 5025 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \- Int64\(21\) AS col2" at position 0 and "Int64\(\-35\) \* Int64\(97\) \* tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 - 21 col2, - 35 * + 97 * + col1 AS col2 FROM tab2 WHERE NOT NULL >= 71 - 80 +---- query I rowsort SELECT DISTINCT - - col2 AS col0 FROM tab2 WHERE NULL <= ( col1 ) @@ -18644,8 +18850,15 @@ SELECT ALL COUNT ( * ) * + - 40 AS col0 FROM tab1 # Datafusion - Expected - -15 # Datafusion - Expected - 99 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "\(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, - col0 AS col1 FROM tab0 +---- +-15 +-87 +-97 +10 +47 +99 query I rowsort SELECT DISTINCT + + ( + + col2 ) * + 70 * + - col2 FROM tab1 WHERE NOT NULL IS NOT NULL @@ -18675,8 +18888,15 @@ SELECT + - 60 * + 82 * col1 + + col0, col0 FROM tab0 cor0 # Datafusion - Expected - 85 # Datafusion - Expected - -3033 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \* cor0\.col0 \+ cor0\.col2 \+ Int64\(\-7\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 34 * + col0 + + col2 + + - 7 AS col2, col0 AS col2 FROM tab1 AS cor0 +---- +-1645 +-2838 +-3033 +51 +85 +91 query I rowsort SELECT ALL + - col1 * - - col2 FROM tab2 AS cor0 @@ -19692,8 +19912,11 @@ SELECT ALL + MIN ( + 22 ) FROM tab2, tab1 AS cor0 # 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 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 II valuesort SELECT + + ( - ( - 71 ) ) col2, MAX ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0 +---- +71 +81 query I rowsort SELECT + col2 + + col2 AS col0 FROM tab0 AS cor0 WHERE 96 * + col2 IS NOT NULL @@ -19902,8 +20125,11 @@ SELECT DISTINCT - - col1 FROM tab1 WHERE NOT - - col1 >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 35 AS col0, ( COUNT ( * ) ) AS col0 FROM tab0 +---- +-35 +3 query II rowsort label-3283 SELECT ALL - 8 AS col2, + col0 - 6 + + + col1 - CAST ( col1 AS INTEGER ) * - col2 + - col0 FROM tab0 @@ -20978,8 +21204,10 @@ SELECT DISTINCT + + col2 + - col0 col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to ed9ee3977c93d27c459b47b53b6ef833 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "\(\- cor0\.col2\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col2, 96 * + + CAST ( + 14 AS INTEGER ) AS col0, - col2 FROM tab1 AS cor0 +---- +9 values hashing to 71997841258127885197e53a2f855a71 query II rowsort label-3459 SELECT col2 / 93, col2 * col1 AS col2 FROM tab1 @@ -21467,8 +21695,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * col0 IN ( + CAST ( + CAST ( 27 AS # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col2, col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-3535 SELECT DISTINCT + 28 AS col1 FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) ) = + 38 / + col2 @@ -22184,8 +22419,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE col0 NOT IN ( + 50 ) # Datafusion - Expected - 737 # Datafusion - Expected - 32 # Datafusion - Expected - 847 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 0 and "tab2\.col1 \* \(\- Int64\(\-11\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 AS col1, col1 * - - 11 col1 FROM tab2 +---- +32 +32 +32 +561 +737 +847 query III rowsort SELECT ALL * FROM tab1 WHERE + + col1 - + col1 BETWEEN + col2 + - - col2 + - - col1 AND - col0 @@ -22485,8 +22727,15 @@ SELECT DISTINCT COUNT ( * ) * - 96 FROM tab1 # Datafusion - Expected - 79 # Datafusion - Expected - -720 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* Int64\(\-17\) \- tab2\.col2 AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 * + + ( - 17 ) - + col2 col1, 79 AS col1 FROM tab2 +---- +-1044 +-414 +-720 +79 +79 +79 query III rowsort SELECT * FROM tab1 WHERE + + col2 / + col2 IS NULL @@ -22555,8 +22804,11 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( ( - CAST ( + - col1 AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -168 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-56\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) * - COUNT ( * ) AS col1, - 56 * + COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +-168 +9 query I rowsort SELECT ALL + col0 * + + col1 + + - 10 AS col0 FROM tab0 AS cor0 @@ -24948,8 +25200,9 @@ SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 AND + col1 / ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col1" at position 0 and "Int64\(\-49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col0 AS col1, - 49 col1 FROM tab0 WHERE - 59 IS NULL +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -25591,8 +25844,15 @@ SELECT ALL COUNT ( * ) * - 33 + + 66 FROM tab2 # Datafusion - Expected - -140 # Datafusion - Expected - 48 # Datafusion - Expected - -658 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col2" at position 0 and "Int64\(14\) \* \(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 AS col2, 14 * - + col2 AS col2 FROM tab0 +---- +-1386 +-140 +-658 +48 +48 +48 query I rowsort SELECT ALL + 83 + + + 73 FROM tab2 AS cor0 @@ -25787,8 +26047,15 @@ SELECT col0 * col0 - - 50 col2 FROM tab2 # Datafusion - Expected - 75 # Datafusion - Expected - -529 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* \(\- tab2\.col2\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 * - col2 AS col2, col0 AS col2 FROM tab2 +---- +-1600 +-3364 +-529 +46 +64 +75 query I rowsort label-4248 SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <> NULL @@ -25890,8 +26157,15 @@ SELECT col0 + + 65 FROM tab0 AS cor0 # Datafusion - Expected - 32 # Datafusion - Expected - 91 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col0 AS col0, + 32 AS col0 FROM tab1 AS cor0 +---- +32 +32 +32 +51 +85 +91 query I rowsort SELECT DISTINCT - + ( - 85 ) AS col0 FROM tab0 AS cor0 @@ -27016,8 +27290,9 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 IN ( - col1 ) 9 values hashing to 75c998aa53ac83218cbf2feb962d0a49 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "tab1\.col2 \* tab1\.col1 \* tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, col2 * col1 * col0 AS col2 FROM tab1 WHERE NOT - col1 BETWEEN NULL AND NULL +---- query III rowsort SELECT ALL * FROM tab0 WHERE NOT + 61 IS NULL @@ -27124,8 +27399,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( + col1 ) - - - col2 IS NULL # Datafusion - Expected - 217328 # Datafusion - Expected - 5 # Datafusion - Expected - 17405 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "cor0\.col1 \* cor0\.col2 \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - col1 ) AS col1, col1 * col2 * + col2 AS col1 FROM tab1 cor0 +---- +129024 +14 +17405 +217328 +47 +5 query I rowsort label-4478 SELECT DISTINCT 5 / + ( - - col0 ) * - col1 + + col1 - + - col0 * - - 52 + - col1 FROM tab1 cor0 @@ -27434,8 +27716,11 @@ SELECT - + CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -195 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "\(\- \(\- sum\(\(\- cor0\.col1\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 AS col2, ( - - SUM ( - col1 ) ) AS col2 FROM tab2 AS cor0 +---- +-195 +56 query I rowsort SELECT ALL + col2 * + 55 * - 99 FROM tab1 AS cor0 @@ -28175,8 +28460,15 @@ SELECT DISTINCT + 91 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 2178 # Datafusion - Expected - -675 # Datafusion - Expected - 1034 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(\-45\) AS col1" at position 0 and "Int64\(22\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * - 45 col1, 22 * col2 AS col1 FROM tab0 AS cor0 +---- +-3915 +-4365 +-675 +1034 +2178 +220 query I rowsort label-4649 SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - col0 ) @@ -28545,8 +28837,11 @@ SELECT DISTINCT - col2 - - + col1 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) NOT # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +3 +3 query I rowsort label-4711 SELECT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL >= col2 @@ -29008,8 +29303,15 @@ NULL # Datafusion - Expected - 2943 # Datafusion - Expected - 68 # Datafusion - Expected - 3767 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "cor0\.col2 \* cor0\.col1 \+ cor0\.col1 \* Int64\(84\) / \(\- Int64\(47\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 AS col2, col2 * + + col1 + col1 * 84 / - ( + 47 ) AS col2 FROM tab2 AS cor0 +---- +1082 +2943 +3767 +68 +68 +68 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT 23 + - - 89 IS NULL @@ -29813,8 +30115,15 @@ SELECT DISTINCT col1 * 85 - col0 FROM tab2 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - 0 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + + - col1 AS col1, - col2 AS col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +0 +0 +0 query I rowsort SELECT DISTINCT col1 - + - col1 * - + col1 + + col0 FROM tab1 @@ -30357,8 +30666,9 @@ SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) + - 29 FROM tab0 NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* \(\- tab1\.col2\) AS col0" at position 0 and "Int64\(47\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + col2 * - col2 AS col0, + col1, 47 AS col0 FROM tab1 WHERE NOT + CAST ( 17 AS INTEGER ) + + col1 IS NOT NULL +---- query I rowsort SELECT ALL + + ( col1 ) + col2 AS col2 FROM tab0 AS cor0 @@ -31803,8 +32113,11 @@ SELECT + ( - COUNT ( * ) ) * - COUNT ( * ) AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 +---- +-3 +NULL query II rowsort label-5250 SELECT DISTINCT - COUNT ( * ), + COUNT ( * ) FROM tab0 cor0 WHERE NOT 55 / + + 26 + col0 IS NOT NULL @@ -32532,8 +32845,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL CAST ( NULL AS FLOAT8 ) col1, ( + - COUNT ( * ) ) col1 FROM tab1 +---- +-3 +NULL query I rowsort SELECT DISTINCT + col1 FROM tab0 WHERE NOT NULL <= ( - + col2 - + - 4 ) @@ -32786,8 +33102,11 @@ SELECT COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT + CAST ( + ( - + 42 ) AS INT # Datafusion - Datafusion expected results: # Datafusion - Expected - -7104 # Datafusion - Expected - -1257 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(tab1\.col2\)\) \* Int64\(74\) AS col0" at position 0 and "\(\- min\(Int64\(\-35\)\)\) \* Int64\(\-36\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( + col2 ) * 74 AS col0, - MIN ( + - 35 ) * - 36 + + + COUNT ( * ) AS col0 FROM tab1 +---- +-1257 +-7104 query I rowsort label-5421 SELECT + - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 @@ -33098,8 +33417,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE 93 = + 60 + + col1 # Datafusion - Expected - -96 # Datafusion - Expected - -47 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col1" at position 0 and "Int64\(\-96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 47 col1, + ( - 96 ) AS col1 FROM tab2 +---- +-47 +-47 +-47 +-96 +-96 +-96 query I rowsort SELECT 7 + - col1 * + col0 * col2 col2 FROM tab1 @@ -33454,8 +33780,15 @@ SELECT DISTINCT CAST ( - + 11 AS INTEGER ) FROM tab1 AS cor0 # Datafusion - Expected - 49 # Datafusion - Expected - 96 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, 49 col0 FROM tab1 AS cor0 +---- +49 +49 +49 +59 +68 +96 query I rowsort label-5526 SELECT - COUNT ( + 31 ) FROM tab1 cor0 @@ -33863,8 +34196,15 @@ SELECT + CAST ( - 41 AS INTEGER ) * - col2 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 52 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-52\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 52 AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +10 +47 +52 +52 +52 +99 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -34014,8 +34354,11 @@ SELECT ALL * FROM tab1 AS cor0 WHERE ( - 37 + 1 * col0 <> col2 * - + col0 * + co # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( COUNT ( * ) ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +3 +NULL query III rowsort SELECT * FROM tab0 AS cor0 WHERE + 61 IS NOT NULL @@ -34246,8 +34589,15 @@ SELECT * FROM tab1 AS cor0 WHERE ( col2 * - - col1 * - 56 * + col2 * + col2 ) IS # Datafusion - Expected - -58 # Datafusion - Expected - 7084 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) \* \(\- cor0\.col1\) \+ cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 91 * - col1 + col1 AS col2, - col2 col2 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +4692 +6164 +7084 query I rowsort label-5651 SELECT ALL - + ( COUNT ( * ) ) AS col1 FROM tab1 cor0 @@ -34401,8 +34751,15 @@ SELECT * FROM tab0 WHERE ( - col0 ) * - - col0 IS NULL # Datafusion - Expected - -59 # Datafusion - Expected - 3196 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* \(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 * + - col2 AS col0, - col2 AS col0 FROM tab1 cor0 +---- +-59 +-68 +-96 +1344 +295 +3196 query I rowsort SELECT ALL + 39 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL @@ -34645,8 +35002,15 @@ SELECT DISTINCT - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col0 / - 34 + + - # Datafusion - Expected - 2154 # Datafusion - Expected - 1 # Datafusion - Expected - 3072 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / cor0\.col0 AS col2" at position 0 and "Int64\(85\) \+ Int64\(29\) \- Int64\(51\) \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 / + + col0 AS col2, 85 + 29 - + 51 * - col2 AS col2 FROM tab2 AS cor0 +---- +1 +1 +1 +1287 +2154 +3072 query I rowsort label-5713 SELECT SUM ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0 @@ -35567,8 +35931,15 @@ SELECT 31 / - - COUNT ( DISTINCT + + 60 ) AS col2 FROM tab2 # Datafusion - Expected - 10 # Datafusion - Expected - -1869 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \* Int64\(\-85\) \+ \(\- \(\- tab0\.col1\)\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 22 * + + ( + - 85 ) + - - col1 AS col1, + col2 AS col1 FROM tab0 +---- +-1789 +-1849 +-1869 +10 +47 +99 query I rowsort label-5871 SELECT - col0 / - 82 FROM tab2 @@ -35644,8 +36015,15 @@ SELECT ALL + SUM ( - + col1 ) FROM tab0 cor0 # Datafusion - Expected - -10 # Datafusion - Expected - 81 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, - col2 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +1 +21 +81 query I rowsort SELECT ALL + 92 * col1 col2 FROM tab2 AS cor0 @@ -36949,8 +37327,10 @@ SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 - + - col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a3b1ba051236c82a145196edd727fda2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col0 AS col1, + ( - col0 ) AS col1, + col0 AS col0 FROM tab0 AS cor0 +---- +9 values hashing to 6f00e1a1d764ed9eff96b17c18b953c8 query I rowsort label-6092 SELECT DISTINCT - 47 * - - 35 * ( COUNT ( * ) ) FROM tab2 @@ -37944,8 +38324,15 @@ SELECT - ( - col1 ) * + col0 - + col1 + - + col0 FROM tab1 # Datafusion - Expected - 84 # Datafusion - Expected - 12 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 AS col0, + 84 col0 FROM tab1 +---- +12 +12 +12 +84 +84 +84 query I rowsort label-6263 SELECT + col0 / - col0 + - col1 col2 FROM tab2 AS cor0 WHERE col0 IS NOT NULL @@ -38302,8 +38689,15 @@ SELECT * FROM tab0 WHERE NOT - - CAST ( NULL AS FLOAT8 ) IS NULL # Datafusion - Expected - 40 # Datafusion - Expected - -11 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(11\)\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - + 11 ) AS col1, + col2 col1 FROM tab2 +---- +-11 +-11 +-11 +23 +40 +58 query I rowsort label-6318 SELECT - col1 / 27 FROM tab2 AS cor0 @@ -38426,8 +38820,15 @@ SELECT DISTINCT 39 * col1 * - + ( - - col2 ) AS col0 FROM tab1 # Datafusion - Expected - -91 # Datafusion - Expected - 3796104 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* tab2\.col0 \* tab2\.col0 \* tab2\.col2 AS col1" at position 0 and "CAST\(Int64\(\-91\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 * col0 * col0 * col2 AS col1, CAST ( + - 91 AS INTEGER ) AS col1 FROM tab2 +---- +-91 +-91 +-91 +12779520 +25447500 +3796104 query I rowsort label-6337 SELECT ALL - CAST ( NULL AS INTEGER ) + - + col0 AS col0 FROM tab2 @@ -38894,8 +39295,15 @@ SELECT DISTINCT col2 AS col2, + 44 FROM tab1 # Datafusion - Expected - -1782 # Datafusion - Expected - -962 # Datafusion - Expected - -180 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \+ CAST\(Int64\(\-85\) AS Int32\) \+ \(\- tab0\.col2\) \* Int64\(78\) \- tab0\.col0 AS col0" at position 0 and "Int64\(18\) \* \(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - col2 ) + + CAST ( - 85 AS INTEGER ) + - col2 * ( 78 ) - + + col0 col0, 18 * - + col2 AS col0 FROM tab0 +---- +-1782 +-180 +-3813 +-8003 +-846 +-962 query I rowsort SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE NOT - col0 IS NULL @@ -39203,8 +39611,15 @@ SELECT + 35 AS col1 FROM tab0 AS cor0 WHERE col2 + col0 <> - 4 # Datafusion - Expected - 1640 # Datafusion - Expected - 4350 # Datafusion - Expected - 3404 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col2 \* cor0\.col2 \+ Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 * - col2 col2, ( + col2 ) * + col2 + 40 AS col2 FROM tab2 AS cor0 +---- +1058 +1640 +2560 +3404 +4350 +569 query I rowsort SELECT DISTINCT + - col2 FROM tab1 AS cor0 WHERE NOT col0 <> NULL @@ -39227,8 +39642,15 @@ NULL # Datafusion - Expected - 2919 # Datafusion - Expected - 75 # Datafusion - Expected - 4243 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab2\.col0\)\) AS col0" at position 0 and "\(\- tab2\.col1\) \+ Int64\(73\) \* tab2\.col2 \+ Int64\(76\) \- Int64\(\-59\) / tab2\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - ( - col0 ) ) AS col0, - col1 + + 73 * + col2 + + 76 - - 59 / + col0 AS col0 FROM tab2 +---- +1705 +2919 +4243 +46 +64 +75 query I rowsort label-6471 SELECT ALL + CAST ( NULL AS INTEGER ) + - 92 FROM tab1 @@ -39294,8 +39716,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN + - col2 AND col0 + col1 # Datafusion - Expected - 79 # Datafusion - Expected - 97 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 AS col1, 79 AS col1 FROM tab0 AS cor0 +---- +15 +79 +79 +79 +87 +97 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + - ( ( col2 ) ) + col1 IS NOT NULL @@ -39629,8 +40058,9 @@ SELECT - 60, - col1 AS col1 FROM tab1 AS cor0 -5 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "tab1\.col2 \+ tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 84 AS col0, col2 + + + col0 AS col0 FROM tab1 WHERE col0 IN ( col0 * + - 3, + 51 * + col0 / + - col1 + + 80 ) +---- query I rowsort label-6535 SELECT ALL - 0 / - + 97 + - MIN ( ALL - col1 ) + + 5 AS col0 FROM tab0 @@ -40284,8 +40714,11 @@ SELECT DISTINCT - col2 AS col0 FROM tab2 cor0 WHERE 41 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, 27 AS col0 FROM tab1 AS cor0 +---- +27 +3 query I rowsort SELECT 56 + - 40 AS col2 FROM tab1 cor0 @@ -40864,8 +41297,15 @@ SELECT ALL - 59 col0, - COUNT ( * ) * + SUM ( - col0 ) FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - 55 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 AS col0, col2 AS col0 FROM tab2 +---- +23 +40 +55 +55 +55 +58 query I rowsort label-6748 SELECT - COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab0 @@ -41549,8 +41989,15 @@ SELECT DISTINCT ( + + col2 ) col1 FROM tab2 # Datafusion - Expected - 235880316 # Datafusion - Expected - -97 # Datafusion - Expected - 13962956 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(53\) \* Int64\(28\) \* \(\- cor0\.col0\) \* \(\- cor0\.col0\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 AS col0, 53 * + + 28 * - col0 * + - col0 * + col1 AS col0 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +13962956 +235880316 +27045900 query I rowsort SELECT + col1 / - + col2 FROM tab2 AS cor0 WHERE NOT NULL < 49 * + - col1 @@ -41846,8 +42293,15 @@ SELECT ALL + 65 * + col2 + - - col1 AS col2 FROM tab0 # Datafusion - Expected - -37 # Datafusion - Expected - 79 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* \(\- tab2\.col1\) / \(\- tab2\.col1\) \+ tab2\.col2 AS col1" at position 0 and "tab2\.col2 \+ \(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 21 * - col1 / - col1 + col2 col1, + col2 + - col1 AS col1 FROM tab2 +---- +-28 +-37 +-9 +44 +61 +79 query I rowsort SELECT DISTINCT 84 - - col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL @@ -42645,8 +43099,9 @@ NULL NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL col1 AS col0, + col2 AS col0, - + col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL +---- query I rowsort SELECT + col2 * - col0 FROM tab2 AS cor0 WHERE - 78 - - + 72 IS NOT NULL @@ -42690,8 +43145,15 @@ SELECT + - COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( - 97 * - col2 / + - 13 + - # Datafusion - Expected - -47 # Datafusion - Expected - -92 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 92 col2, - col1 col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +-92 +-92 +-92 query II rowsort SELECT - col1 AS col1, 73 AS col2 FROM tab2 AS cor0 @@ -43237,8 +43699,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col2, 86 AS col2 FROM tab2 cor0 +---- +-3 +86 query I rowsort SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN col0 AND + col2 * - col0 @@ -43448,8 +43913,15 @@ NULL # Datafusion - Expected - -64 # Datafusion - Expected - -75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0, - col0 FROM tab2 cor0 +---- +-46 +-46 +-64 +-64 +-75 +-75 query I rowsort SELECT ALL ( - 35 ) + - + col1 AS col1 FROM tab1 AS cor0 WHERE NOT + 2 IS NULL @@ -43781,8 +44253,11 @@ SELECT + col2 * + + 41 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 195 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 65 * - + COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab1 +---- +195 +3 query I rowsort label-7229 SELECT DISTINCT + ( 6 ) + - ( + COUNT ( col1 ) ) FROM tab1 @@ -43912,8 +44387,15 @@ SELECT - SUM ( - 41 ) AS col0 FROM tab2 cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 18 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 18 AS col2, - col1 AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +18 +18 +18 query I rowsort label-7251 SELECT CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 AS cor0 @@ -43962,8 +44444,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) < + CAST ( NULL AS INTEGER ) # Datafusion - Expected - 0 # Datafusion - Expected - 30 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* cor0\.col2 AS col2" at position 0 and "cor0\.col2 \+ \(\- cor0\.col2\) \+ Int64\(\-96\) / \(\- \(\- cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 3 * + + col2 AS col2, col2 + - col2 + + - 96 / - - col0 AS col2 FROM tab0 AS cor0 +---- +-1 +-6 +0 +141 +297 +30 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE col0 IN ( 45 * + + col2 ) @@ -44127,8 +44616,15 @@ SELECT ALL col0 * + 24 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - 3264 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* Int64\(34\) AS col2" at position 0 and "Int64\(0\) \+ tab1\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( col2 ) * 34 col2, + 0 + col2 AS col2 FROM tab1 +---- +2006 +2312 +3264 +59 +68 +96 query I rowsort label-7287 SELECT ALL col0 / - 53 AS col0 FROM tab1 @@ -44169,14 +44665,20 @@ SELECT DISTINCT - - 20 * col2 * + + col1 * + - col2 * 43 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, 4 AS col0 FROM tab2 AS cor0 +---- +3 +4 # 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 "Int64\(0\) \* \(\- cor0\.col0\) \* cor0\.col0 / cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 80 AS col2, + 0 * - col0 * col0 / col2 AS col2 FROM tab0 cor0 +---- +0 +80 query I rowsort label-7295 SELECT + MIN ( - col2 ) AS col0 FROM tab0 cor0 @@ -45163,8 +45665,15 @@ SELECT ALL SUM ( ALL + col1 ) FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - 41 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 41 AS col1, col0 AS col1 FROM tab2 +---- +41 +41 +41 +46 +64 +75 query I rowsort SELECT DISTINCT - 15 * - col2 FROM tab2 AS cor0 @@ -45245,8 +45754,15 @@ SELECT 39 * + CAST ( col2 AS INTEGER ) + - col0 FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - -6150 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(\-82\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * - 82 col1, col0 AS col1 FROM tab2 cor0 +---- +-3772 +-5248 +-6150 +46 +64 +75 query I rowsort label-7469 SELECT ALL - 31 * - 35 + COUNT ( * ) AS col0 FROM tab0 AS cor0 @@ -45384,8 +45900,15 @@ SELECT DISTINCT - ( 25 ) AS col0 FROM tab1 WHERE - col2 BETWEEN NULL AND + 90 / # Datafusion - Expected - 1276 # Datafusion - Expected - 77 # Datafusion - Expected - 880 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "tab2\.col2 \* Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col0, col2 * + 22 AS col0 FROM tab2 +---- +1276 +506 +51 +67 +77 +880 query II rowsort SELECT ALL + col1, - 73 AS col2 FROM tab1 @@ -45433,8 +45956,10 @@ SELECT + 59 col2, col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 917079b64bb82110ed4680dde2b51374 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col0, + col0, + - col0 FROM tab0 AS cor0 +---- +9 values hashing to 6f00e1a1d764ed9eff96b17c18b953c8 query I rowsort label-7497 SELECT DISTINCT + COUNT ( - 42 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 @@ -46045,8 +46570,15 @@ SELECT + col1 + col1 + col2 + + ( col2 + - col2 ) AS col0 FROM tab2 WHERE NOT NU # Datafusion - Expected - 157 # Datafusion - Expected - 33 # Datafusion - Expected - 151 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ Int64\(97\) \+ \(\- cor0\.col1\) AS col2" at position 0 and "Int64\(66\) \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 + + 97 + - + col1 AS col2, + 66 + + col0 AS col2 FROM tab1 AS cor0 +---- +-13 +-18 +117 +151 +157 +33 query I rowsort SELECT ALL - - 68 * col2 * - col0 FROM tab2 AS cor0 @@ -46087,8 +46619,11 @@ SELECT + + 99 + - 11 * + col0 + + ( 87 ) + 68 / col2 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ sum\(DISTINCT cor0\.col0\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) + SUM ( DISTINCT col0 ) AS col0, COUNT ( * ) col0 FROM tab2 AS cor0 +---- +3 +NULL query I rowsort SELECT col0 * + + col0 * - 31 + - - 71 AS col2 FROM tab1 AS cor0 @@ -46261,8 +46796,15 @@ NULL # Datafusion - Expected - 5698 # Datafusion - Expected - 5683 # Datafusion - Expected - 4958 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \* \(\- \(\- cor0\.col0\)\) \+ cor0\.col2 AS col0" at position 0 and "Int64\(74\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col0 * - - col0 + col2 AS col0, 74 * + col1 AS col0 FROM tab2 AS cor0 +---- +2139 +3774 +4136 +4958 +5683 +5698 query I rowsort label-7632 SELECT - col2 + + 91 + + + col1 + - col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0, CAST ( + 38 AS INTEGER ) + + - col0 ) @@ -47136,8 +47678,15 @@ SELECT + MAX ( ALL + col1 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -46 # Datafusion - Expected - -97 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab0\.col0\) AS Int32\) AS col2" at position 0 and "Int64\(\-34\) \+ Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - col0 AS INTEGER ) AS col2, - 34 + - 12 AS col2 FROM tab0 +---- +-15 +-46 +-46 +-46 +-87 +-97 query II rowsort label-7776 SELECT ALL COUNT ( ALL + 77 ) + - COUNT ( DISTINCT col2 ) AS col0, + 26 / 26 FROM tab2 @@ -47940,8 +48489,15 @@ SELECT - 57 * + + 80 * + + 58 * - col0 AS col2 FROM tab1 # Datafusion - Expected - 87 # Datafusion - Expected - -81 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col1, col0 AS col1 FROM tab0 cor0 +---- +-1 +-21 +-81 +15 +87 +97 query I rowsort SELECT DISTINCT - - 31 AS col0 FROM tab1 cor0 @@ -49697,8 +50253,15 @@ SELECT + 40, col0 AS col2 FROM tab2 # Datafusion - Expected - -527681 # Datafusion - Expected - -75 # Datafusion - Expected - -399521 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col1" at position 0 and "\(\- tab2\.col1\) \* tab2\.col1 \* Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, - col1 * + col1 * 89 AS col1 FROM tab2 +---- +-231489 +-399521 +-46 +-527681 +-64 +-75 query I rowsort label-8194 SELECT DISTINCT - SUM ( + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 WHERE NULL IS NOT NULL @@ -50342,13 +50905,18 @@ SELECT DISTINCT + col1 - 27 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col1, 39 AS col1 FROM tab2 AS cor0 +---- +3 +39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f83fc17c7f2d54813d812eda14b325ea -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 1 and "cor0\.col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col1, + col0, + + col0 FROM tab2 AS cor0 +---- +9 values hashing to 1c14b1cb41d7d269283749b685a99c14 query I rowsort label-8299 SELECT - col2 / - col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL @@ -50398,8 +50966,10 @@ SELECT * FROM tab1 WHERE NOT - 70 < NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c5ef886672f357cf0e399ac8a2e9d6cb -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 1 and "cor0\.col2 AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 50 * + col1, col2 col0, col2 AS col0 FROM tab0 AS cor0 +---- +9 values hashing to 8eb3cd1399d4717c7536922a90fdc288 query I rowsort SELECT ALL 5 col1 FROM tab1 AS cor0 @@ -50528,8 +51098,11 @@ 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\(Int64\(1\)\) AS count\(\*\) / \(\- min\(cor0\.col0\)\) \+ Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( + + 13 ) * 48 col1, COUNT ( * ) / - MIN ( + col0 ) + 61 AS col1 FROM tab2 cor0 +---- +61 +624 query I rowsort label-8331 SELECT DISTINCT MIN ( ALL - + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1 FROM tab2 @@ -50846,8 +51419,15 @@ SELECT * FROM tab0 AS cor0 WHERE + CAST ( col1 AS INTEGER ) * col0 * + 68 >= NUL # Datafusion - Expected - 40 # Datafusion - Expected - 81 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 81 col1, col2 AS col1 FROM tab2 AS cor0 +---- +23 +40 +58 +81 +81 +81 query I rowsort SELECT - col1 + col2 col1 FROM tab1 AS cor0 @@ -51557,8 +52137,11 @@ SELECT col2 + + col2 + + col0 * col1 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-54\) AS Int32\) AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( + ( - 54 ) AS INTEGER ) AS col2, + 62 col2 FROM tab0 AS cor0 +---- +-54 +62 query I rowsort SELECT + 83 + col0 * 76 * + + col0 * col1 * - - 67 - col2 AS col2 FROM tab1 @@ -53366,8 +53949,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ), ( + COUNT ( * ) ) FROM tab0 +---- +3 +3 query I rowsort SELECT ALL + col1 AS col2 FROM tab1 WHERE NOT - 70 IS NOT NULL @@ -53656,8 +54242,15 @@ SELECT MAX ( + col1 ) / - ( + COUNT ( * ) ) + + COUNT ( * ) FROM tab1 cor0 # Datafusion - Expected - 13 # Datafusion - Expected - 0 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \+ \(\- tab2\.col1\) AS col1" at position 0 and "tab2\.col1 \- tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 + - + col1 AS col1, col1 - + col0 AS col1 FROM tab2 +---- +-8 +0 +0 +0 +13 +5 query III rowsort SELECT * FROM tab0 WHERE - + 23 + + - col0 IS NULL @@ -53771,8 +54364,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + 32 AND NULL # Datafusion - Expected - -40 # Datafusion - Expected - 97 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(47\) \+ \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, 47 + - col0 col1 FROM tab0 AS cor0 +---- +-40 +-50 +15 +32 +87 +97 query I rowsort label-8860 SELECT - COUNT ( * ) / - ( - 39 ) FROM tab1 AS cor0 @@ -54181,8 +54781,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col1 ) BETWEEN - ( - col1 ) AND ( # Datafusion - Expected - 64 # Datafusion - Expected - 25 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-25\)\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 25 AS col2, col0 AS col2 FROM tab2 AS cor0 +---- +25 +25 +25 +46 +64 +75 query I rowsort label-8932 SELECT DISTINCT + MAX ( - col1 ) + - 43 FROM tab1 @@ -54365,8 +54972,15 @@ SELECT COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab0 # Datafusion - Expected - -21160 # Datafusion - Expected - -96 # Datafusion - Expected - -64000 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col0" at position 0 and "tab2\.col2 \* tab2\.col2 \* \(\- \(\- Int64\(\-40\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 96 AS col0, col2 * col2 * - ( - - 40 ) AS col0 FROM tab2 +---- +-134560 +-21160 +-64000 +-96 +-96 +-96 query I rowsort label-8963 SELECT ALL - SUM ( ALL col0 ) * + + ( + 12 ) col1 FROM tab0 @@ -55479,8 +56093,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "sum\(tab2\.col2\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, + SUM ( ALL + + col2 ) / COUNT ( * ) AS col0 FROM tab2 +---- +-3 +40 query I rowsort label-9147 SELECT DISTINCT + CAST ( - 69 AS INTEGER ) AS col1 FROM tab1 @@ -56337,8 +56954,15 @@ SELECT ALL + + 70 AS col1 FROM tab2 AS cor0 WHERE - col0 IS NULL # Datafusion - Expected - 46 # Datafusion - Expected - -96 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 AS col1, 46 AS col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +46 +46 +46 query I rowsort label-9289 SELECT ALL + 41 / + 43 AS col1 FROM tab2 @@ -56419,8 +57043,15 @@ SELECT - ( col2 ) + - col1 AS col0 FROM tab0 cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 92 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 92 col0, col2 col0 FROM tab1 AS cor0 +---- +59 +68 +92 +92 +92 +96 query I rowsort label-9302 SELECT DISTINCT - - COUNT ( * ) + 13 AS col1 FROM tab2 AS cor0 @@ -57192,8 +57823,15 @@ SELECT 88 + + + col2 FROM tab0 # Datafusion - Expected - 58 # Datafusion - Expected - 91 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ Int64\(63\) \+ \(\- Int64\(18\)\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + + 63 + - + 18 AS col1, + col2 AS col1 FROM tab2 +---- +109 +120 +23 +40 +58 +91 query I rowsort SELECT col0 + 35 FROM tab0 @@ -57893,8 +58531,11 @@ SELECT DISTINCT - COUNT ( ALL 67 ) AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- min\(\(\- tab2\.col2\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col1, - MIN ( ALL - col2 ) AS col1 FROM tab2 +---- +58 +NULL query II rowsort SELECT 68 col2, col1 AS col1 FROM tab2 AS cor0 @@ -58027,8 +58668,11 @@ SELECT DISTINCT + + 20 + - COUNT ( * ) AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 127 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \- \(\- Int64\(97\)\) \+ \(\- CAST\(count\(Int64\(24\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 33 - - + 97 + - CAST ( + COUNT ( + ( + 24 ) ) AS INTEGER ) AS col1, 12 AS col1 FROM tab0 AS cor0 +---- +12 +127 query I rowsort label-9574 SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) / - + 85 * - col1 <= + col0 * col0 @@ -58464,8 +59108,15 @@ NULL # Datafusion - Expected - 14450 # Datafusion - Expected - 91 # Datafusion - Expected - 16562 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col0\) \* cor0\.col0 \* Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 col2, ( + - col0 ) * + col0 * - 2 AS col2 FROM tab1 cor0 +---- +14450 +16562 +51 +5202 +85 +91 query I rowsort label-9639 SELECT DISTINCT + - SUM ( ALL 28 ) FROM tab0 cor0 @@ -59717,14 +60368,20 @@ 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\(Int64\(1\)\) AS count\(\*\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 37 AS col2, - COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +1 +37 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 54 ) AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL +---- +-54 +3 query I rowsort SELECT 87 * - col0 FROM tab0 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_123.slt b/data/sqlite/random/aggregates/slt_good_123.slt index 5f2bb8f..5025d56 100644 --- a/data/sqlite/random/aggregates/slt_good_123.slt +++ b/data/sqlite/random/aggregates/slt_good_123.slt @@ -458,8 +458,15 @@ SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * 8 >= N # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col2 \- \(\- \(\- cor0\.col2\)\) \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col0 col2, col2 - - - col2 + + col0 AS col2 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query II rowsort SELECT DISTINCT - - col0 AS col0, col2 FROM tab1 AS cor0 @@ -485,8 +492,15 @@ SELECT DISTINCT + col1 * + col1 * col2 AS col0 FROM tab0 # Datafusion - Expected - -3822 # Datafusion - Expected - 25 # Datafusion - Expected - -3570 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* \(\- \(\- tab1\.col1\)\) AS col2" at position 0 and "Int64\(42\) \* \(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * - - col1 AS col2, 42 * - col0 AS col2 FROM tab1 +---- +-2142 +-3570 +-3822 +196 +2209 +25 query I rowsort SELECT ALL ( - 72 ) FROM tab2 @@ -990,8 +1004,15 @@ SELECT ALL COUNT ( * ) / + + COUNT ( col1 ) AS col1 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - -2401 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(\-49\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 49 * - 49 AS col0, col1 AS col0 FROM tab0 +---- +-2401 +-2401 +-2401 +1 +21 +81 query I rowsort SELECT ALL + col1 + + + 82 + + - col1 AS col1 FROM tab0 @@ -2146,8 +2167,15 @@ SELECT DISTINCT COUNT ( ALL 48 ) col0 FROM tab2 AS cor0 # Datafusion - Expected - 4575 # Datafusion - Expected - 1 # Datafusion - Expected - 4575 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col1" at position 0 and "Int64\(\-75\) \* Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 1 AS col1, - 75 * - 61 AS col1 FROM tab2 AS cor0 +---- +1 +1 +1 +4575 +4575 +4575 query II rowsort SELECT 40, + col2 col1 FROM tab1 AS cor0 @@ -2189,8 +2217,11 @@ SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, + ( - 39 ) AS col0 FROM tab2 cor0 +---- +-39 +3 query I rowsort SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT col2 + col1 NOT BETWEEN NULL AND + col2 @@ -3555,8 +3586,15 @@ SELECT COUNT ( 31 ) * + 74 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -61 # Datafusion - Expected - 5655 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ tab2\.col0 \* tab2\.col0 AS col0" at position 0 and "\(\- Int64\(61\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 30 + col0 * col0 AS col0, - ( + + 61 ) col0 FROM tab2 +---- +-61 +-61 +-61 +2146 +4126 +5655 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -3880,8 +3918,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 <= + 91 * - col1 + + 10 - + + co # Datafusion - Expected - -59 # Datafusion - Expected - -91 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, - col2 AS col0 FROM tab1 AS cor0 +---- +-51 +-59 +-68 +-85 +-91 +-96 query II rowsort SELECT + - col0, ( - 24 ) AS col1 FROM tab2 AS cor0 @@ -4568,8 +4613,15 @@ SELECT DISTINCT + 87 - 39 * col1 col2 FROM tab0 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \- \(\- \(\- cor0\.col2\)\) \- cor0\.col2 AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 - - - col2 - + col2 AS col2, - col2 AS col2 FROM tab0 AS cor0 +---- +-10 +-10 +-47 +-47 +-99 +-99 query I rowsort SELECT ALL + col2 - + ( - col0 ) * + - 84 AS col2 FROM tab2 AS cor0 @@ -5024,8 +5076,15 @@ SELECT ALL ( + 87 ) FROM tab0 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col0 col0, col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT + - 71 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL @@ -6282,8 +6341,15 @@ NULL # Datafusion - Expected - 870 # Datafusion - Expected - 97 # Datafusion - Expected - 9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "cor0\.col2 \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col0 AS col2, col2 * col0 AS col2 FROM tab0 AS cor0 +---- +15 +705 +87 +870 +9603 +97 query I rowsort SELECT DISTINCT - col1 * - - col1 FROM tab2 AS cor0 @@ -6360,8 +6426,15 @@ SELECT - ( - + ( - - ( + col0 ) ) ) AS col0 FROM tab0 # Datafusion - Expected - 95 # Datafusion - Expected - 81 # Datafusion - Expected - 132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "tab0\.col2 \* tab0\.col0 \+ tab0\.col2 \+ Int64\(85\) \+ tab0\.col0 \* tab0\.col2 \* \(\- tab0\.col2\) / tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, + col2 * col0 + + col2 + + 85 + col0 * col2 * - col2 / + + col2 AS col0 FROM tab0 +---- +1 +132 +184 +21 +81 +95 query I rowsort SELECT ALL 27 * 21 + 1 FROM tab0 @@ -6417,8 +6490,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( ALL - col2 ) AS col1, ( - + COUNT ( * ) ) AS col1 FROM tab0 cor0 +---- +-156 +-3 query I rowsort SELECT DISTINCT - col2 * 41 FROM tab2 AS cor0 @@ -6804,8 +6880,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT - 16 * + - col2 < - + col1 + ( col2 ) # Datafusion - Expected - 58 # Datafusion - Expected - -529 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* \(\- tab2\.col2\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * - col2 AS col0, col2 AS col0 FROM tab2 +---- +-1600 +-3364 +-529 +23 +40 +58 query I rowsort SELECT DISTINCT - col1 - - - col1 * + col1 FROM tab2 AS cor0 WHERE ( + col0 ) IS NULL @@ -6844,8 +6927,15 @@ SELECT + 83 * - + COUNT ( * ) AS col1 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(58\) / Int64\(\-57\) \* Int64\(61\) \* tab2\.col1 \* Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, + CAST ( NULL AS INTEGER ) + + 58 / + - 57 * + 61 * col1 * - 76 AS col1 FROM tab2 +---- +23 +40 +58 +NULL +NULL +NULL query I rowsort SELECT - col2 * + - col2 * - col1 AS col2 FROM tab0 @@ -7345,8 +7435,15 @@ SELECT ALL - ( + col2 ) + - col1 col0 FROM tab1 # Datafusion - Expected - -8019 # Datafusion - Expected - NULL # Datafusion - Expected - -810 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ tab0\.col0 AS col2" at position 0 and "Int64\(81\) \* \(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col0 AS col2, + 81 * - col2 AS col2 FROM tab0 +---- +-3807 +-8019 +-810 +NULL +NULL +NULL query I rowsort SELECT DISTINCT + 62 + + + 23 + + col0 AS col2 FROM tab0 @@ -8507,8 +8604,9 @@ SELECT ( col2 ) + - 36 AS col2 FROM tab2 cor0 4 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 \+ Int64\(\-51\) / cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - col2 ) AS col2, col1 + + - 51 / + col2 col2 FROM tab0 AS cor0 WHERE NOT - 42 IS NOT NULL +---- query I rowsort label-1396 SELECT - CAST ( - - ( MAX ( ALL + 19 ) ) AS INTEGER ) col0 FROM tab0 AS cor0 @@ -9508,8 +9606,11 @@ SELECT - 17 * - - col0 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT \(\- tab2\.col2\)\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MIN ( DISTINCT + - col2 ) AS col2, ( + 93 ) AS col2 FROM tab2 +---- +-58 +93 query I rowsort SELECT - 35 * + - col2 AS col1 FROM tab0 @@ -11608,8 +11709,15 @@ SELECT DISTINCT * FROM tab0 WHERE NOT 13 < NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0, + col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT - ( - ( + col2 ) ) FROM tab1 @@ -11883,8 +11991,15 @@ SELECT - 53 + col0 AS col1 FROM tab2 # Datafusion - Expected - 11107 # Datafusion - Expected - 30 # Datafusion - Expected - 2559 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ cor0\.col0 AS col1" at position 0 and "cor0\.col0 \* Int64\(90\) \+ Int64\(24\) \* cor0\.col2 \+ CAST\(cor0\.col1 AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 + col0 AS col1, col0 * 90 + + 24 * col2 + + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0 +---- +11107 +174 +194 +2559 +30 +8091 query I rowsort SELECT ALL col1 AS col0 FROM tab0 WHERE NOT NULL <> - 13 @@ -12220,8 +12335,15 @@ SELECT DISTINCT col1 * + + col0 - - col2 FROM tab0 AS cor0 # Datafusion - Expected - -57 # Datafusion - Expected - -51 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ Int64\(45\) AS col0" at position 0 and "Int64\(\-57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col2 + + 45 AS col0, ( + - 57 ) AS col0 FROM tab1 AS cor0 +---- +-14 +-23 +-51 +-57 +-57 +-57 query I rowsort label-2002 SELECT 86 * - MIN ( ALL 58 ) FROM tab0 WHERE NOT col0 IS NULL @@ -12833,8 +12955,15 @@ SELECT - 33 * + + col2 FROM tab1 # Datafusion - Expected - -87 # Datafusion - Expected - 97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, - col0 AS col2 FROM tab0 +---- +-15 +-87 +-97 +15 +87 +97 query II rowsort SELECT ALL - col2 * - 93, col0 FROM tab2 AS cor0 @@ -12990,8 +13119,15 @@ SELECT col2 * col2 - + 28 * col1 FROM tab2 AS cor0 # Datafusion - Expected - -210 # Datafusion - Expected - -97 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, + col1 * - col2 AS col2 FROM tab0 AS cor0 +---- +-15 +-210 +-3807 +-87 +-97 +-99 query I rowsort SELECT DISTINCT - ( - 35 ) col0 FROM tab2 @@ -13437,8 +13573,11 @@ 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\(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\. +query II valuesort SELECT ALL - + COUNT ( * ), - COUNT ( * ) FROM tab1 AS cor0 +---- +-3 +-3 query I rowsort SELECT DISTINCT + + ( - ( - - col0 ) ) * - col0 - - col1 - - 56 * + 21 AS col0 FROM tab1 AS cor0 @@ -13857,8 +13996,11 @@ SELECT + 28, + col0 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col1" at position 0 and "max\(DISTINCT Int64\(44\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 37 AS col1, + MAX ( DISTINCT + + 44 ) AS col1 FROM tab2 AS cor0 +---- +37 +44 query II rowsort label-2278 SELECT ALL - 83, 15 * + - CAST ( NULL AS INTEGER ) / - col0 AS col0 FROM tab2 AS cor0 @@ -14448,8 +14590,15 @@ SELECT 23 + 98 FROM tab1 AS cor0 WHERE + 15 * col1 + col2 * + 89 BETWEEN NULL AN # Datafusion - Expected - 10 # Datafusion - Expected - 9603 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col2 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * + col2 AS col0, + col2 AS col0 FROM tab0 AS cor0 +---- +10 +47 +705 +870 +9603 +99 query I rowsort SELECT ALL ( - - 71 ) * + col1 FROM tab2 cor0 @@ -14553,8 +14702,15 @@ SELECT + + ( - - 92 ) FROM tab2 AS cor0 # Datafusion - Expected - 1827 # Datafusion - Expected - 41 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "cor0\.col0 \* \(\- \(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 AS col1, + col0 * - - col1 AS col1 FROM tab0 AS cor0 +---- +1215 +1827 +41 +41 +41 +97 query I rowsort label-2388 SELECT DISTINCT - - col1 * col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 @@ -14576,8 +14732,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Float64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + - COUNT ( * ) AS col1, + CAST ( NULL AS FLOAT8 ) col1 FROM tab0 AS cor0 +---- +-3 +NULL query I rowsort SELECT - + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL @@ -15557,8 +15716,15 @@ SELECT DISTINCT - 14 AS col0 FROM tab2 cor0 # Datafusion - Expected - -3886 # Datafusion - Expected - -77 # Datafusion - Expected - -3080 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col2" at position 0 and "tab2\.col2 \* \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, col2 * + - col1 AS col2 FROM tab2 +---- +-1173 +-3080 +-3886 +-51 +-67 +-77 query I rowsort SELECT DISTINCT - 67 * - + col1 AS col1 FROM tab0 @@ -16467,8 +16633,11 @@ SELECT DISTINCT - + 28 * + col2 * - + col1 FROM tab1 AS cor0 WHERE col0 <> - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(max\(CAST\(NULL AS Int32\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - CAST ( MAX ( + + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1, 97 AS col1 FROM tab1 AS cor0 +---- +97 +NULL query II rowsort label-2696 SELECT ALL + col0 * col1 * col1 AS col1, 2 / 41 FROM tab2 AS cor0 @@ -16596,8 +16765,15 @@ SELECT DISTINCT COUNT ( * ) / + - 61 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -24 # Datafusion - Expected - 13667 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- Int64\(87\)\) \- \(\- cor0\.col1\) \+ cor0\.col2 \* \(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "\(\- cor0\.col2\) / Int64\(57\) \+ \(\- \(\- cor0\.col2\)\) \+ \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 * - + 87 - - col1 + + col2 * - - col2 col0, - col2 / 57 + - ( - + col2 ) + - col0 AS col0 FROM tab1 AS cor0 +---- +-24 +-27 +10881 +12588 +13667 +44 query I rowsort SELECT col1 * - 87 + 90 FROM tab2 AS cor0 @@ -16705,8 +16881,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE + col2 * + col2 <> NULL # Datafusion - Expected - 1362 # Datafusion - Expected - 94 # Datafusion - Expected - 5574 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col0\) \+ Int64\(69\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 + + col2 AS col0, - col0 + 69 * col1 AS col0 FROM tab0 AS cor0 +---- +-28 +1362 +198 +20 +5574 +94 query I rowsort SELECT DISTINCT + 71 + - col1 FROM tab2 AS cor0 @@ -17471,8 +17654,15 @@ SELECT + - col0, col0 FROM tab0 AS cor0 # Datafusion - Expected - 115 # Datafusion - Expected - 96 # Datafusion - Expected - 110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "CAST\(cor0\.col1 AS Int32\) \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, CAST ( ( col1 ) AS INTEGER ) + + col2 col0 FROM tab1 AS cor0 +---- +110 +115 +59 +64 +68 +96 query I rowsort label-2860 SELECT - CAST ( - + SUM ( DISTINCT + col0 ) AS INTEGER ) AS col0 FROM tab1 cor0 @@ -17749,8 +17939,15 @@ SELECT 74 * + + COUNT ( * ) FROM tab1 # Datafusion - Expected - 81 # Datafusion - Expected - 9 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* Int64\(9\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + + col1 ) * + 9 AS col2, col1 AS col2 FROM tab0 +---- +1 +189 +21 +729 +81 +9 query I rowsort SELECT col1 + - - 89 AS col2 FROM tab1 @@ -18421,8 +18618,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) + 95 col0, - 80 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL +---- +-80 +95 query I rowsort label-3025 SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( - col0 + col2 + - col2 IN ( col2 - - 26 * col0 ) ) @@ -18569,8 +18769,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE 38 IS NOT NULL # Datafusion - Expected - 1512 # Datafusion - Expected - -9409 # Datafusion - Expected - 1512 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col0 AS col2" at position 0 and "Int64\(27\) \* Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * col0 AS col2, 27 * 56 AS col2 FROM tab0 AS cor0 +---- +-225 +-7569 +-9409 +1512 +1512 +1512 query I rowsort label-3052 SELECT ALL - COUNT ( + + 16 ) + 88 FROM tab1 AS cor0 @@ -18811,8 +19018,15 @@ SELECT DISTINCT + CAST ( + col2 AS INTEGER ) + - col2 AS col2 FROM tab2 cor0 # Datafusion - Expected - -69 # Datafusion - Expected - -13 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) AS col0" at position 0 and "Int64\(\-69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 13 AS col0, - 69 AS col0 FROM tab0 AS cor0 +---- +-13 +-13 +-13 +-69 +-69 +-69 query I rowsort SELECT ALL 0 + - 83 FROM tab0 AS cor0 WHERE NOT ( ( col1 ) IS NULL ) @@ -20377,8 +20591,15 @@ SELECT DISTINCT + CAST ( - - col1 AS INTEGER ) * - - col1 AS col2 FROM tab1 AS c # Datafusion - Expected - 87 # Datafusion - Expected - -4473 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* Int64\(\-63\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 71 * - 63 AS col2, + col0 AS col2 FROM tab0 AS cor0 +---- +-4473 +-4473 +-4473 +15 +87 +97 query I rowsort SELECT ALL col0 + + - 9 AS col2 FROM tab1 cor0 @@ -21073,8 +21294,15 @@ SELECT + col2 + col1 + col0 * + 49 * + + 59 * - col1 AS col1 FROM tab2 # Datafusion - Expected - -87 # Datafusion - Expected - -31 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 AS col2, - col0 AS col2 FROM tab0 +---- +-15 +-31 +-31 +-31 +-87 +-97 query I rowsort SELECT DISTINCT 88 + col1 * - 50 FROM tab2 AS cor0 WHERE NOT ( + col1 * - - 72 ) NOT BETWEEN ( + col1 ) AND NULL @@ -21304,8 +21532,15 @@ SELECT DISTINCT col1, - col0 + + + col0 * - col2 * + col0 AS col2 FROM tab2 AS c # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 col1, col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -21492,8 +21727,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - - COUNT ( * ) ) AS col2, 27 AS col2 FROM tab1 +---- +27 +3 query III rowsort SELECT ALL * FROM tab1 WHERE + col1 * col0 + + + col1 * + col1 - col2 + + - 2 * - + col2 BETWEEN - col0 AND + - col1 @@ -22959,8 +23197,11 @@ 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\(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\. +query II valuesort SELECT - - COUNT ( * ) col1, - 27 * ( - 73 ) AS col1 FROM tab0 AS cor0 +---- +1971 +3 query I rowsort label-3768 SELECT + + MIN ( + - 92 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0 @@ -23134,8 +23375,15 @@ SELECT - + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - 98 # Datafusion - Expected - 58 # Datafusion - Expected - 116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "tab2\.col2 \+ Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, + col2 + + 58 AS col1 FROM tab2 +---- +116 +23 +40 +58 +81 +98 query I rowsort label-3795 SELECT 82 + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -24848,8 +25096,15 @@ SELECT DISTINCT - - col1 + col0 * + 23 FROM tab1 AS cor0 # Datafusion - Expected - 56 # Datafusion - Expected - 44 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 44 AS col1, 56 AS col1 FROM tab0 +---- +44 +44 +44 +56 +56 +56 query II rowsort SELECT ALL + 47 AS col2, 31 * + 26 * - - col0 FROM tab2 AS cor0 @@ -24922,8 +25177,11 @@ SELECT + - 23 AS col0 FROM tab1 WHERE 90 * + - 7 * CAST ( + col0 AS FLOAT8 ) IS # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(89\) AS col2" at position 0 and "Int64\(48\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) - + 89 AS col2, 48 * COUNT ( * ) AS col2 FROM tab1 +---- +-86 +144 query I rowsort label-4096 SELECT COUNT ( * ) + + ( - MIN ( + col1 ) ) AS col0 FROM tab0 AS cor0 WHERE col0 * - - 8 NOT IN ( ( col2 ) * col2 + - 75, - col1, + - col1, + col1 ) AND NULL IS NULL @@ -24958,8 +25216,10 @@ SELECT DISTINCT + col2 * - + 27 AS col2, - col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to ed9600299d19f0166b57c0c9096b0917 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(99\)\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 99 AS col0, ( 28 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 +---- +18 values hashing to 82e71574f19309cf1caa7544e317f1f8 query III rowsort SELECT DISTINCT * FROM tab2 WHERE - - ( - col2 ) / - col0 IS NOT NULL @@ -25704,8 +25964,15 @@ SELECT col0 + 72 FROM tab1 # Datafusion - Expected - -57 # Datafusion - Expected - -43 # Datafusion - Expected - -102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* tab2\.col1 / CAST\(tab2\.col1 AS Int32\) \- tab2\.col0 \+ Int64\(\-35\) AS col1" at position 0 and "\(\- tab2\.col1\) \+ Int64\(40\) \- tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * col1 / + CAST ( + + col1 AS INTEGER ) - col0 + - 35 AS col1, - col1 + 40 - + col0 AS col1 FROM tab2 +---- +-101 +-102 +-22 +-30 +-43 +-57 query I rowsort label-4221 SELECT DISTINCT + ( + ( - COUNT ( ALL + col1 ) ) ) * - 63 FROM tab2 @@ -26081,14 +26348,24 @@ SELECT ALL - - col1 + + ( + col2 ) FROM tab1 AS cor0 # Datafusion - Expected - 3080 # Datafusion - Expected - 276 # Datafusion - Expected - 1173 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) \* Int64\(\-23\) \- tab2\.col2 AS col1" at position 0 and "tab2\.col1 \* tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 13 * - 23 - + col2 AS col1, col1 * + + col2 col1 FROM tab2 +---- +1173 +241 +259 +276 +3080 +3886 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 31 AS col1, COUNT ( * ) AS col1 FROM tab0 +---- +3 +31 query I rowsort label-4280 SELECT - SUM ( + + col1 ) AS col0 FROM tab1 @@ -27094,8 +27371,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + col1 ) AND NULL # Datafusion - Expected - 20 # Datafusion - Expected - -81 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, col2 + col2 col1 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +198 +20 +94 query I rowsort SELECT 85 * 80 AS col0 FROM tab0 AS cor0 @@ -27207,8 +27491,11 @@ SELECT + col1 + 86 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 135 # Datafusion - Expected - 96 -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 "max\(DISTINCT tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 + 66 AS col1, MAX ( DISTINCT + + col2 ) AS col1 FROM tab1 +---- +135 +96 query I rowsort SELECT DISTINCT + 31 * col2 * + + col1 + + - 83 FROM tab0 WHERE + col2 + - 51 IS NULL AND NOT ( NULL >= - - col2 ) @@ -27226,8 +27513,10 @@ SELECT 82 + - + COUNT ( * ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to fd3ba4bc8cf9efa82320f5e1babbb20a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + col1 AS col2, col2 * + + ( + 13 ), + - col2 AS col2 FROM tab2 AS cor0 +---- +9 values hashing to c513fe89986b40e68dfa3e4c575b18de query I rowsort label-4481 SELECT - COUNT ( * ) + - 81 * + - 80 AS col1 FROM tab0 AS cor0 @@ -27462,8 +27751,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) / + ( 30 ) AS col0, + 12 AS col0 FROM tab1 +---- +0 +12 query I rowsort SELECT + + col1 * - col0 AS col1 FROM tab2 WHERE + col1 NOT BETWEEN 97 AND NULL @@ -27860,8 +28152,15 @@ SELECT DISTINCT - 93 / - col1 AS col2 FROM tab2 # Datafusion - Expected - -87 # Datafusion - Expected - -6 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(6\)\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 6 AS col2, - col0 AS col2 FROM tab0 AS cor0 +---- +-15 +-6 +-6 +-6 +-87 +-97 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN + 76 AND + col1 @@ -28291,8 +28590,15 @@ SELECT COUNT ( * ) * - 6 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 17 # Datafusion - Expected - -58 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, 17 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +17 +17 +17 query II rowsort SELECT - 59 col1, 92 FROM tab2 @@ -28848,8 +29154,15 @@ SELECT col1 * col0 * - 30 FROM tab0 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - -77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1, - col1 FROM tab2 cor0 +---- +-51 +-51 +-67 +-67 +-77 +-77 query II rowsort SELECT DISTINCT - 38 AS col2, - 26 FROM tab2 WHERE - 77 + + + col1 = NULL @@ -30183,8 +30496,15 @@ SELECT ALL - 39 * COUNT ( * ) / - + SUM ( ALL - - 12 ) FROM tab0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, col0 AS col2 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-4968 SELECT DISTINCT + CAST ( + 9 AS INTEGER ) FROM tab1 @@ -30266,8 +30586,15 @@ SELECT + ( - MIN ( + col2 ) ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - 25 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col1 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * col1 AS col1, col0 col1 FROM tab1 AS cor0 +---- +196 +2209 +25 +51 +85 +91 query I rowsort SELECT - 10 * - col1 AS col0 FROM tab0 AS cor0 @@ -30401,8 +30728,15 @@ SELECT DISTINCT + col0 FROM tab1 WHERE - ( col2 ) <> + + col2 # Datafusion - Expected - -68 # Datafusion - Expected - -11 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-11\) AS Int32\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - 11 AS INTEGER ) AS col2, - col2 col2 FROM tab1 AS cor0 +---- +-11 +-11 +-11 +-59 +-68 +-96 query I rowsort SELECT DISTINCT + - 90 * + - col2 AS col2 FROM tab1 AS cor0 @@ -30423,8 +30757,11 @@ SELECT + - MIN ( + + col0 ) AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) col0, - 21 AS col0 FROM tab2 +---- +-21 +3 query III rowsort SELECT * FROM tab1 WHERE NULL IS NOT NULL OR NOT NULL IS NOT NULL @@ -30812,8 +31149,11 @@ SELECT DISTINCT + ( 6 ) - + col0 AS col1 FROM tab1 WHERE NOT ( col0 ) + + + col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ count\(Int64\(74\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 + + COUNT ( 74 ) col1, COUNT ( * ) AS col1 FROM tab2 +---- +3 +40 query III rowsort SELECT * FROM tab1 WHERE NOT + + 82 IN ( - - 16 - - col1 + + 62 * + 23, col2 + - - col1 ) @@ -30991,8 +31331,11 @@ SELECT DISTINCT 67 * 36 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-65\)\) 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 II valuesort SELECT - - 65 AS col0, - MIN ( - col2 ) AS col0 FROM tab1 AS cor0 +---- +65 +96 query I rowsort label-5100 SELECT - - col1 * col1 / - col0 FROM tab0 AS cor0 @@ -32362,8 +32705,15 @@ SELECT DISTINCT col0 + + - 0 - + col1 * - 66, + col0 AS col0 FROM tab0 # Datafusion - Expected - 2618 # Datafusion - Expected - 58 # Datafusion - Expected - 2278 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "Int64\(34\) \* tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, + 34 * col1 AS col0 FROM tab2 +---- +1734 +2278 +23 +2618 +40 +58 query I rowsort label-5328 SELECT ALL COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0 @@ -32544,8 +32894,15 @@ SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col2 * + - 79 + - col0 NOT # Datafusion - Expected - 18 # Datafusion - Expected - -3139 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) \* Int64\(43\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 73 * + 43 AS col2, 18 AS col2 FROM tab2 cor0 +---- +-3139 +-3139 +-3139 +18 +18 +18 query I rowsort label-5356 SELECT DISTINCT COUNT ( ALL - col2 ) / - 59 FROM tab1 AS cor0 @@ -32972,8 +33329,15 @@ SELECT DISTINCT - 5 * + 49 + + 89 FROM tab0 # Datafusion - Expected - -16 # Datafusion - Expected - NULL # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / tab0\.col0 \+ \(\- Int64\(75\)\) AS col0" at position 0 and "Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) / + col0 + - + 75 col0, - 16 AS col0 FROM tab0 WHERE - + col2 IS NOT NULL +---- +-16 +-16 +-16 +NULL +NULL +NULL query III rowsort label-5422 SELECT * FROM tab0 WHERE ( NULL ) BETWEEN CAST ( 47 AS FLOAT8 ) AND - - col2 @@ -33633,8 +33997,15 @@ SELECT * FROM tab2 WHERE + ( col0 ) IN ( col2 * - 23, 4, + + 24 * - col2 * col1, # Datafusion - Expected - -2209 # Datafusion - Expected - 54 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col0" at position 0 and "tab1\.col1 \* \(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 AS col0, col1 * - + col1 AS col0 FROM tab1 +---- +-196 +-2209 +-25 +54 +54 +54 query I rowsort label-5530 SELECT DISTINCT - col0 / - - col1 FROM tab1 AS cor0 @@ -33843,8 +34214,15 @@ SELECT - + ( + + 84 ) * COUNT ( * ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -75 # Datafusion - Expected - 3157 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(41\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 * + + 41 col2, - col0 AS col2 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +2091 +2747 +3157 query I rowsort SELECT DISTINCT 95 FROM tab2 AS cor0 WHERE NOT 54 / col0 - + col2 IS NULL @@ -34257,8 +34635,11 @@ SELECT DISTINCT * FROM tab1 WHERE NOT + - CAST ( + + col0 AS INTEGER ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / \(\- tab2\.col0\) AS col1" at position 0 and "Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col0 col1, ( + - 30 ) AS col1 FROM tab2 +---- +-30 +NULL query I rowsort label-5637 SELECT DISTINCT - col1 * - + col2 * + col0 * 96 * 42 + - col1 * - + ( - - col2 ) / + col2 + col1 * - + col0 + - col0 FROM tab0 AS cor0 @@ -34478,8 +34859,15 @@ SELECT 81, - COUNT ( * ) AS col1 FROM tab0 # Datafusion - Expected - 200 # Datafusion - Expected - 1 # Datafusion - Expected - 560 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col2" at position 0 and "tab1\.col1 \* Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 1 AS col2, col1 * + + 40 AS col2 FROM tab1 +---- +1 +1 +1 +1880 +200 +560 query I rowsort label-5675 SELECT ALL - ( + + 60 ) + - - 54 - + COUNT ( * ) + + 86 * + MAX ( - 50 ) + + - MIN ( DISTINCT + + ( + col1 ) ) / + - 34 AS col1 FROM tab1 @@ -35515,8 +35903,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, 19 AS col1 FROM tab1 AS cor0 +---- +-3 +19 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 20 IS NULL @@ -35956,14 +36347,20 @@ SELECT ALL + col0, - col1 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ), + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0, tab0 AS cor0 +---- +9 +9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ), + ( COUNT ( * ) ) FROM tab1 AS cor0 +---- +3 +3 query II rowsort label-5919 SELECT ALL - ( + 24 ), + 44 - 83 * - ( - SUM ( + + col2 ) ) * + 98 AS col0 FROM tab0 AS cor0 @@ -36021,8 +36418,15 @@ SELECT 82 + + MAX ( + 1 ) FROM tab2 # Datafusion - Expected - -75 # Datafusion - Expected - 48311 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* Int64\(\-7\) \+ \(\- tab2\.col0\) \* \(\- \(\- tab2\.col0\)\) \* \(\- tab2\.col2\) AS col0" at position 0 and "\(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * - 7 + - col0 * - - col0 * - + col2 AS col0, - col0 col0 FROM tab2 +---- +-46 +-64 +-75 +163301 +325781 +48311 query I rowsort label-5928 SELECT DISTINCT COUNT ( * ) - - MAX ( ALL - col1 ) AS col0 FROM tab1 @@ -36606,8 +37010,15 @@ SELECT + col2 / + - col0 AS col1 FROM tab0 # Datafusion - Expected - 25 # Datafusion - Expected - 81 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col1 AS Int32\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( col1 AS INTEGER ) AS col0, 25 AS col0 FROM tab0 +---- +1 +21 +25 +25 +25 +81 query III rowsort SELECT * FROM tab2 WHERE ( + col1 * + col2 * 92 ) IS NULL @@ -38173,8 +38584,15 @@ SELECT ALL col0 AS col0, col2 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 78 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ Int64\(76\) AS col0" at position 0 and "\(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 2 + 76 AS col0, - col1 AS col0 FROM tab1 +---- +-14 +-47 +-5 +78 +78 +78 query II rowsort label-6281 SELECT + COUNT ( DISTINCT col1 ) AS col1, ( + COUNT ( * ) ) * CAST ( MIN ( ALL - - col1 ) AS INTEGER ) - 88 AS col0 FROM tab1 @@ -38270,8 +38688,15 @@ SELECT col1 FROM tab1 AS cor0 WHERE 66 IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - 7 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-7\)\) AS col0" at position 0 and "cor0\.col0 \* cor0\.col2 \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ cor0\.col1 \* cor0\.col2 \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 7 AS col0, col0 * + + col2 * - ( - CAST ( NULL AS INTEGER ) ) + col1 * col2 * - col1 AS col0 FROM tab1 AS cor0 +---- +7 +7 +7 +NULL +NULL +NULL query I rowsort label-6297 SELECT DISTINCT + MAX ( 70 ) AS col1 FROM tab2 AS cor0 @@ -38684,8 +39109,11 @@ SELECT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE + 55 * + 89 <= - + 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Float64\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + ( + + CAST ( - - COUNT ( * ) AS FLOAT8 ) ) * - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +3 +NULL query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 IS NULL AND col0 < NULL @@ -39031,8 +39459,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - COUNT ( * ) ) col1, + 26 AS col1 FROM tab1 AS cor0 +---- +-3 +26 query I rowsort SELECT - - col2 * + + col1 + 10 FROM tab0 AS cor0 @@ -39436,8 +39867,15 @@ SELECT ALL + col1 + 35 + + col1 * - col0 AS col0 FROM tab2 cor0 # Datafusion - Expected - -4 # Datafusion - Expected - 70953 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(\-33\) \* \(\- tab2\.col0\) \+ \(\- tab2\.col2\) \* tab2\.col2 \+ tab2\.col1 AS col2" at position 0 and "Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 * - 33 * - col0 + - col2 * + col2 + ( col1 ) AS col2, - 4 AS col2 FROM tab2 +---- +-4 +-4 +-4 +45062 +61837 +70953 query I rowsort label-6484 SELECT - col2 + - + col0 * + CAST ( NULL AS INTEGER ) FROM tab1 cor0 @@ -40692,8 +41130,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE 80 IS NULL # Datafusion - Expected - -210 # Datafusion - Expected - 18 # Datafusion - Expected - -987 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "Int64\(21\) \* \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 18 AS col0, + 21 * + - col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL +---- +-2079 +-210 +-987 +18 +18 +18 query I rowsort SELECT col0 FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN NULL AND 40 @@ -41110,8 +41555,15 @@ SELECT + ( - - 24 ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - 4950 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col1 AS Int32\) \* cor0\.col0 \+ \(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + CAST ( + col1 AS INTEGER ) * col0 + - col0 AS col2, + col1 AS col2 FROM tab2 AS cor0 +---- +2300 +4864 +4950 +51 +67 +77 query I rowsort label-6761 SELECT - - MAX ( + col0 ) AS col1 FROM tab0 AS cor0 @@ -41168,8 +41620,15 @@ SELECT * FROM tab1 WHERE NOT - - col0 NOT BETWEEN CAST ( NULL AS INTEGER ) AND - # Datafusion - Expected - -52 # Datafusion - Expected - -97 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col1" at position 0 and "Int64\(\-52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, - 52 AS col1 FROM tab0 +---- +-15 +-52 +-52 +-52 +-87 +-97 query I rowsort SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL @@ -41347,8 +41806,15 @@ SELECT DISTINCT - 3 * + - col0 + 5 FROM tab1 AS cor0 # Datafusion - Expected - 604513 # Datafusion - Expected - -96 # Datafusion - Expected - 189873 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col0 \* \(\- cor0\.col0\) \* \(\- Int64\(73\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 col0, + col0 * - + ( + col0 ) * - + 73 AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +189873 +527425 +604513 query I rowsort SELECT ALL col1 * + 36 FROM tab0 AS cor0 @@ -41379,8 +41845,15 @@ SELECT - col1 * col2 * - col0, col0 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 82 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 82 AS col1, col2 AS col1 FROM tab0 AS cor0 +---- +10 +47 +82 +82 +82 +99 query I rowsort label-6803 SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1 @@ -41686,8 +42159,11 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( col0 ) BETWEEN + col1 * + - col0 A # Datafusion - Datafusion expected results: # Datafusion - Expected - 237 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 79 * + COUNT ( * ) AS col1, + 96 AS col1 FROM tab2 AS cor0 +---- +237 +96 query I rowsort SELECT 68 * col1 - - - 90 FROM tab0 AS cor0 @@ -42332,8 +42808,15 @@ SELECT DISTINCT + col0 * + + col1 + + col2 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 17 # Datafusion - Expected - 68 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 68 AS col0, 17 AS col0 FROM tab2 AS cor0 +---- +17 +17 +17 +68 +68 +68 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT col1 + - 76 <= - 37 @@ -42452,8 +42935,15 @@ SELECT - col0 + + col0 * col1 / + col0 AS col2 FROM tab2 # Datafusion - Expected - -87 # Datafusion - Expected - -97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0, ( - col0 ) FROM tab0 AS cor0 +---- +-15 +-15 +-87 +-87 +-97 +-97 query I rowsort SELECT ALL + + col1 + + col0 - - col0 col0 FROM tab2 AS cor0 @@ -42671,8 +43161,15 @@ SELECT ALL * FROM tab2 WHERE - + col2 + + col2 * + col0 IS NOT NULL # Datafusion - Expected - 0 # Datafusion - Expected - 91 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "Int64\(\-49\) / \(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, - 49 / - + col0 AS col1 FROM tab1 +---- +0 +0 +0 +51 +85 +91 query III rowsort SELECT * FROM tab1 WHERE NOT NULL = - 84 - + + 67 @@ -44008,8 +44505,15 @@ NULL # Datafusion - Expected - 56 # 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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 19 AS col0, 56 AS col0 FROM tab1 AS cor0 +---- +-19 +-19 +-19 +56 +56 +56 query I rowsort SELECT ALL col0 FROM tab2 WHERE + col2 BETWEEN - 78 AND - - col1 @@ -44856,8 +45360,15 @@ SELECT MIN ( + col1 ) AS col1 FROM tab2 WHERE NOT + col2 * col2 IN ( - 88 - col0 # Datafusion - Expected - -3364 # Datafusion - Expected - 2376 # Datafusion - Expected - -529 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \* Int64\(36\) AS col0" at position 0 and "\(\- tab2\.col2\) \* tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 66 * + 36 AS col0, - col2 * + col2 AS col0 FROM tab2 +---- +-1600 +-3364 +-529 +2376 +2376 +2376 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE ( ( NOT col0 = NULL ) ) @@ -45237,8 +45748,15 @@ SELECT DISTINCT + 71 + col2 FROM tab1 WHERE - + col2 NOT BETWEEN - 9 AND + col1 # Datafusion - Expected - 48 # Datafusion - Expected - 5 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + + col1 ) AS col2, + 48 AS col2 FROM tab1 +---- +14 +47 +48 +48 +48 +5 query I rowsort SELECT DISTINCT col0 * 65 col0 FROM tab0 AS cor0 @@ -45394,8 +45912,15 @@ SELECT DISTINCT + MIN ( ALL 0 ) * - + 77 FROM tab1 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + col0 ) AS col0, col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT 89 * - + 98 FROM tab1 @@ -46309,8 +46834,11 @@ SELECT DISTINCT + col1 FROM tab0 WHERE NOT col2 <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +3 +NULL query II rowsort SELECT - + 37, col1 * + 18 AS col0 FROM tab1 AS cor0 WHERE NOT 36 >= - + col2 / col0 - col2 @@ -46409,8 +46937,11 @@ SELECT - 67 * COUNT ( * ) * - 47 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 46 AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +-46 +3 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT 46 - + col0 * col2 IS NOT NULL @@ -47031,8 +47562,11 @@ SELECT DISTINCT + - 7 AS col0 FROM tab2 AS cor0 WHERE NOT ( - col1 ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- sum\(\(\- CAST\(NULL AS Float64\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + COUNT ( * ) AS col1, - SUM ( - CAST ( NULL AS FLOAT8 ) ) AS col1 FROM tab2 AS cor0 +---- +3 +NULL query I rowsort label-7743 SELECT ALL - 25 + 46 + - COUNT ( * ) / - MAX ( ALL - col0 ) FROM tab1 AS cor0 @@ -49121,8 +49655,15 @@ SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND col0 - + c # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col1, col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT 22 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 @@ -50102,8 +50643,11 @@ SELECT ALL + COUNT ( col2 ) AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab1, tab1 AS cor0 +---- +9 +9 query I rowsort label-8242 SELECT ALL - CAST ( + + AVG ( col2 ) AS INTEGER ) AS col2 FROM tab0 @@ -50128,8 +50672,10 @@ SELECT DISTINCT - 13, - 54 * - COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab1 cor # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 88ae2cabd3a7628321698f9324571c0e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(\-11\) AS col0" at position 1 and "cor0\.col2 AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col0, ( 78 ) * + - 11 AS col0, col2 AS col0 FROM tab1 AS cor0 +---- +9 values hashing to 97404c16e6afd691d53b1c2279fb1180 query I rowsort SELECT DISTINCT + + 64 AS col2 FROM tab0 AS cor0 @@ -51367,8 +51913,15 @@ SELECT DISTINCT - 66 * - 20 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -33 # Datafusion - Expected - -51 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ Int64\(\-53\) AS col1" at position 0 and "Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 2 + - 53 AS col1, - 33 AS col1 FROM tab1 AS cor0 +---- +-33 +-33 +-33 +-51 +-51 +-51 query I rowsort SELECT DISTINCT + 50 * + + 69 + col0 + - 4 AS col1 FROM tab1 cor0 @@ -51385,8 +51938,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), + COUNT ( * ) FROM tab2 WHERE NOT + col0 IS NULL OR NOT ( NULL IS NOT NULL ) +---- +3 +3 query III rowsort SELECT * FROM tab2 WHERE 37 < col0 @@ -52510,8 +53066,15 @@ SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT 19 IS NOT NULL # Datafusion - Expected - 0 # Datafusion - Expected - -26 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(26\)\) AS col1" at position 0 and "\(\- cor0\.col2\) \- \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 26 AS col1, - col2 - - col2 AS col1 FROM tab0 cor0 +---- +-26 +-26 +-26 +0 +0 +0 query I rowsort SELECT DISTINCT - col0 * - 55 FROM tab0 AS cor0 WHERE NOT + 43 >= - + 58 + + ( + col1 ) * - col1 @@ -52774,8 +53337,15 @@ SELECT + + col1 - col2 - col1 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 22 # Datafusion - Expected - 186 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \- \(\- Int64\(21\)\) \+ cor0\.col2 \+ cor0\.col0 AS col2" at position 0 and "Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 - - ( + 21 ) + + col2 + + col0 AS col2, 22 AS col2 FROM tab2 AS cor0 +---- +122 +157 +186 +22 +22 +22 query I rowsort SELECT DISTINCT - + col0 + - 16 + - - col1 + - col2 AS col2 FROM tab0 cor0 @@ -55621,8 +56191,11 @@ SELECT - MAX ( - + col1 ) AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col2" at position 0 and "Int64\(\-81\) \+ Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 20 AS col2, - 81 + 83 AS col2 FROM tab2 cor0 +---- +-20 +2 query I rowsort SELECT ( - + col1 ) * - col1 FROM tab0 AS cor0 @@ -56020,8 +56593,11 @@ SELECT ALL - 34, col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, - COUNT ( * ) col1 FROM tab0 +---- +-3 +3 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + 17 AND NULL @@ -56543,8 +57119,15 @@ SELECT + - COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( NOT ( NULL IS NULL ) ) # Datafusion - Expected - -3807 # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "tab0\.col1 \* \(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, col1 * + - col2 AS col0 FROM tab0 +---- +-210 +-3807 +-99 +NULL +NULL +NULL query I rowsort SELECT DISTINCT 94 + col1 AS col0 FROM tab0 WHERE col1 + + + 36 + - col0 * 10 <> NULL @@ -57260,8 +57843,15 @@ SELECT ALL 67, + COUNT ( * ) * 1 col1 FROM tab1 AS cor0 # Datafusion - Expected - 654276 # Datafusion - Expected - NULL # Datafusion - Expected - 729476 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- CAST\(Int64\(80\) AS Int32\)\) \* Int64\(\-94\) \* cor0\.col0 \+ Int64\(3\) \* Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, - CAST ( + 80 AS INTEGER ) * - 94 * + col0 + + + 3 * + 12 col2 FROM tab0 AS cor0 +---- +112836 +654276 +729476 +NULL +NULL +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 @@ -57270,8 +57860,15 @@ SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, - CAST ( + 80 AS INTEGER ) * # Datafusion - Expected - 47 # Datafusion - Expected - -9 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 9 AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +-9 +-9 +-9 +14 +47 +5 query I rowsort label-9433 SELECT ALL + COUNT ( * ) / 81 AS col0 FROM tab1 @@ -57835,8 +58432,15 @@ SELECT 16 AS col0, + 46 col1 FROM tab2 cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, col1 AS col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-9523 SELECT + CAST ( - - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT ( col2 ) * - col2 / - + col1 - - + col2 + ( - + col1 ) IS NOT NULL @@ -57849,8 +58453,15 @@ SELECT + CAST ( - - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT ( col2 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 col1, + col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query II rowsort SELECT + col1, ( + col0 ) FROM tab1 AS cor0 @@ -59418,8 +60029,15 @@ SELECT MIN ( + + 88 ) AS col2 FROM tab2 WHERE NOT - 86 * - col0 * + - col1 IS NU # Datafusion - Expected - 39 # Datafusion - Expected - 97 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col0 AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( col1 ) + + col0 AS col1, 39 AS col1 FROM tab2 AS cor0 +---- +141 +142 +39 +39 +39 +97 query I rowsort label-9781 SELECT ALL ( - - CAST ( + - col0 AS INTEGER ) ) FROM tab2 AS cor0 @@ -60249,8 +60867,15 @@ SELECT - 19 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - -78975 # Datafusion - Expected - -99 # Datafusion - Expected - -6305 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col0 \* Int64\(\-65\) \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 col1, + ( col0 ) * + - 65 * col1 AS col1 FROM tab0 AS cor0 +---- +-10 +-118755 +-47 +-6305 +-78975 +-99 query I rowsort SELECT - col0 * + - col0 * + col2 * + - col1 FROM tab0 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_124.slt b/data/sqlite/random/aggregates/slt_good_124.slt index e72ccd7..86224d0 100644 --- a/data/sqlite/random/aggregates/slt_good_124.slt +++ b/data/sqlite/random/aggregates/slt_good_124.slt @@ -382,8 +382,15 @@ SELECT - + ( + ( + 99 ) ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - -4 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 4 AS col1, - col0 AS col1 FROM tab0 AS cor0 +---- +-15 +-4 +-4 +-4 +-87 +-97 query I rowsort label-52 SELECT ALL 71 + + COUNT ( ALL + col0 ) FROM tab2 AS cor0 @@ -759,8 +766,11 @@ SELECT DISTINCT - ( + COUNT ( * ) ) AS col2 FROM tab0 WHERE NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) col2, - COUNT ( * ) AS col2 FROM tab2 +---- +-3 +3 query I rowsort SELECT DISTINCT 86 * - col0 FROM tab0 AS cor0 @@ -1163,8 +1173,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(\-22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( * ) AS col2, - 22 AS col2 FROM tab0 AS cor0 +---- +-22 +3 query I rowsort SELECT ALL + col0 FROM tab0 AS cor0 WHERE + col1 BETWEEN 53 * + col2 AND - col2 * + ( col1 ) @@ -1291,8 +1304,10 @@ SELECT - COUNT ( + col1 ) AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 93aaccf5b700133e84be6b0b74622306 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col1" at position 0 and "\(\- cor0\.col2\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 70 col1, - col2 * + col0 AS col1, 78 AS col2 FROM tab1 AS cor0 +---- +9 values hashing to 0505efc97b134289e45b44902f41aba4 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 ) < NULL @@ -1724,8 +1739,15 @@ NULL # Datafusion - Expected - -68 # Datafusion - Expected - 25 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col1 * - col1 AS col0, - col2 AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +196 +2209 +25 query I rowsort label-277 SELECT MIN ( ALL 77 ) * + ( - ( + - COUNT ( * ) ) ) AS col1 FROM tab2 @@ -2904,8 +2926,15 @@ SELECT + col1 * - + 51 - + col1 FROM tab0 # Datafusion - Expected - 77 # Datafusion - Expected - 140 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \+ cor0\.col0 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 65 + col0 AS col2, + col1 AS col2 FROM tab2 AS cor0 +---- +111 +129 +140 +51 +67 +77 query I rowsort SELECT DISTINCT - - ( - - 49 ) AS col1 FROM tab2 AS cor0 @@ -3145,8 +3174,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) / + SUM ( - col0 ) AS col1, MAX ( ALL - col2 ) AS col1 FROM tab2 AS cor0 +---- +-23 +0 query I rowsort label-511 SELECT ALL + - COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 @@ -4222,8 +4254,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 72 col2, - COUNT ( * ) AS col2 FROM tab0 +---- +-3 +72 query III rowsort SELECT * FROM tab2 WHERE NOT NULL NOT IN ( col2, - ( col2 ) ) @@ -4811,8 +4846,15 @@ SELECT col2 AS col0, + 99 FROM tab0 # Datafusion - Expected - 85 # Datafusion - Expected - -91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, col0 AS col2 FROM tab1 +---- +-51 +-85 +-91 +51 +85 +91 query I rowsort label-789 SELECT ALL - CAST ( NULL AS INTEGER ) * 38 FROM tab1 @@ -6190,8 +6232,15 @@ SELECT - 19 * + - 78 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - -231 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* Int64\(3\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 * + 3 col0, col1 AS col0 FROM tab2 cor0 +---- +-153 +-201 +-231 +51 +67 +77 query I rowsort SELECT ALL - 23 * - - col0 AS col0 FROM tab1 AS cor0 @@ -7126,8 +7175,15 @@ SELECT 28 * + ( + + 17 ) + - 3 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - -5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, col1 AS col0 FROM tab1 cor0 +---- +-14 +-47 +-5 +14 +47 +5 query I rowsort SELECT DISTINCT + ( - col0 ) * col2 FROM tab1 AS cor0 @@ -7390,8 +7446,15 @@ SELECT + 61, 73 - col1 col2 FROM tab2 AS cor0 # Datafusion - Expected - 1309 # Datafusion - Expected - -75 # Datafusion - Expected - 1139 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 \* Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, + col1 * 17 AS col2 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +1139 +1309 +867 query I rowsort label-1222 SELECT ALL + + MAX ( DISTINCT col0 ) + + 65 - - 98 AS col2 FROM tab0 AS cor0 @@ -7624,8 +7687,10 @@ SELECT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN + col0 * - col1 AND + col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c03e6344091de533d45298455510f395 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col2 \+ \(\- \(\- cor0\.col1\)\) \* Int64\(40\) AS col2" at position 0 and "\(\- CAST\(\(\- cor0\.col0\) AS Int32\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + ( + col2 ) + + + col2 + - - col1 * + 40 AS col2, - ( CAST ( col0 AS INTEGER ) ), - + CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 +---- +9 values hashing to d56a356d8638a42b0f0eb062264a01c7 query I rowsort label-1262 SELECT + COUNT ( * ) + + + 64 * 81 * MAX ( DISTINCT + 66 ) FROM tab2 AS cor0 @@ -10666,7 +10731,7 @@ SELECT ALL COUNT ( * ) - + 24 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to d10b9abf5793e1b3092ab11959e3707e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* \(\- tab0\.col1\) \+ Int64\(85\) AS col0" at position 1 and "Int64\(51\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Schema error: Schema contains qualified field name tab0\.col0 and unqualified field name col0 which would be ambiguous SELECT DISTINCT col0, 19 * - col1 + + 85 col0, + 51 AS col0 FROM tab0 query I rowsort @@ -10972,8 +11037,11 @@ SELECT - + 20 + - + col0 AS col2 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 7287 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(\(\- count\(Int64\(71\)\)\) AS Int32\) \+ \(\- \(\- max\(cor0\.col1\)\)\) \* Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, CAST ( - COUNT ( 71 ) AS INTEGER ) + - - MAX ( ALL col1 ) * ( 90 ) AS col0 FROM tab0 AS cor0 +---- +3 +7287 query I rowsort SELECT ALL col2 - - 61 + + col1 FROM tab2 AS cor0 @@ -11443,8 +11511,15 @@ SELECT ALL - 12 + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - -99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, col2 AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +10 +47 +99 query I rowsort label-1880 SELECT MIN ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 @@ -11498,8 +11573,15 @@ SELECT DISTINCT - SUM ( - 14 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col0, + col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + - col2 IS NULL @@ -11617,8 +11699,10 @@ SELECT ALL col2 * - col1 * + col2 + + col2 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 267f15050838967141c93b2b1d51cf7b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \- tab0\.col0 AS col0" at position 0 and "tab0\.col1 AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL col1 - col0 AS col0, - col1 AS col1, + + col1 AS col0 FROM tab0 +---- +9 values hashing to f31c0741d77e36d8a49edd427acbb87c query I rowsort label-1907 SELECT ALL + col2 / + 51 FROM tab1 WHERE NOT + col2 IS NULL @@ -11752,8 +11836,15 @@ SELECT - col1 FROM tab2 AS cor0 WHERE NOT 68 IS NULL # Datafusion - Expected - 2 # Datafusion - Expected - 1 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 col1, + 2 AS col1 FROM tab0 cor0 +---- +1 +1 +1 +2 +2 +2 query I rowsort label-1929 SELECT ALL 66 / - - col1 FROM tab0 AS cor0 @@ -13199,8 +13290,9 @@ SELECT ALL + MAX ( DISTINCT + 98 ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0 95 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) / Int64\(\-41\) / tab1\.col2 AS col1" at position 0 and "tab1\.col2 \* Int64\(\-37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 / - 41 / + col2 AS col1, + col2 * - 37 AS col1 FROM tab1 WHERE NULL BETWEEN ( + col0 ) AND + 74 +---- query I rowsort label-2175 SELECT - - SUM ( ( - col0 ) ) FROM tab2 AS cor0 @@ -13428,8 +13520,15 @@ SELECT + - 43 FROM tab2 cor0 # Datafusion - Expected - 77 # Datafusion - Expected - 9409 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \* \(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "\(\- Int64\(\-77\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col0 * - - col0 AS col2, - ( + - 77 ) AS col2 FROM tab0 AS cor0 +---- +225 +7569 +77 +77 +77 +9409 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT col0 IN ( - col1 * - col0 * col1 + + col1 ) @@ -13651,8 +13750,11 @@ SELECT + col1 / + 94 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col1, + ( + + COUNT ( * ) ) AS col1 FROM tab2 AS cor0 +---- +3 +NULL query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + - col1 BETWEEN col0 AND NULL ) @@ -13747,8 +13849,15 @@ SELECT DISTINCT - ( COUNT ( DISTINCT - - col0 ) ) + - 73 FROM tab1 AS cor0 # Datafusion - Expected - -141 # Datafusion - Expected - 217 # Datafusion - Expected - -142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ cor0\.col0 \+ cor0\.col1 AS col2" at position 0 and "CAST\(\(\- cor0\.col1\) AS Int32\) \+ \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 + + col0 + col1 AS col2, + CAST ( - col1 AS INTEGER ) + + - col0 AS col2 FROM tab2 cor0 +---- +-141 +-142 +-97 +143 +205 +217 query I rowsort SELECT ALL + + 52 + - - col0 AS col1 FROM tab1 AS cor0 @@ -16061,8 +16170,15 @@ NULL # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, col0 FROM tab2 WHERE - - col0 NOT BETWEEN + - col2 AND + 13 +---- +46 +46 +64 +64 +75 +75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 @@ -16071,8 +16187,15 @@ SELECT DISTINCT col0, col0 FROM tab2 WHERE - - col0 NOT BETWEEN + - col2 AND + 1 # Datafusion - Expected - -21 # Datafusion - Expected - -81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\)" at position 0 and "\(\- CAST\(tab0\.col1 AS Int32\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( col1 ), - CAST ( + col1 AS INTEGER ) FROM tab0 +---- +-1 +-1 +-21 +-21 +-81 +-81 query III rowsort SELECT DISTINCT * FROM tab1 WHERE - col0 = - + col0 + - + col1 + + + col0 - col1 @@ -16100,8 +16223,15 @@ SELECT - COUNT ( * ) * 31 FROM tab1 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 AS col1, col1 AS col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query II rowsort label-2655 SELECT DISTINCT + + col1 * CAST ( NULL AS INTEGER ) * + col0 + - + 97 AS col0, - col2 FROM tab2 AS cor0 @@ -16710,8 +16840,15 @@ SELECT col2 + + col1 + - - col1 FROM tab1 AS cor0 # Datafusion - Expected - -97 # Datafusion - Expected - -570 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* \(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 38 * - col0 AS col1, + ( - + col0 ) AS col1 FROM tab0 AS cor0 +---- +-15 +-3306 +-3686 +-570 +-87 +-97 query I rowsort SELECT 60 * + col0 * col0 * - - 99 FROM tab1 @@ -16828,8 +16965,9 @@ SELECT + ( + - 85 ), SUM ( DISTINCT - - col0 ) col0 FROM tab0 AS cor0 199 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col2, col2 AS col2 FROM tab0 cor0 WHERE - col0 >= 55 +---- query I rowsort SELECT DISTINCT 26 + + - col2 FROM tab1 @@ -16944,8 +17082,15 @@ SELECT + ( 22 ) FROM tab0 AS cor0 # Datafusion - Expected - 39 # Datafusion - Expected - -5 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 AS col1, + 39 AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +39 +39 +39 query I rowsort SELECT DISTINCT - 78 * + col1 FROM tab1 cor0 @@ -17043,12 +17188,20 @@ SELECT - + 39 AS col1 FROM tab1 WHERE NULL IS NOT NULL # Datafusion - Expected - 75 # Datafusion - Expected - -77 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 \+ Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, col2 + + + 17 AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +40 +57 +75 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 FROM tab1 cor0 WHERE NULL NOT BETWEEN + ( + - CAST ( NULL AS INTEGER ) ) * - + 61 AND - col1 +---- query I rowsort SELECT DISTINCT - 73 + - col1 * - - col1 AS col0 FROM tab1 AS cor0 @@ -17200,8 +17353,11 @@ SELECT DISTINCT 36 AS col2, + MAX ( ( + col2 ) ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -121 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "sum\(DISTINCT \(\- tab2\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, SUM ( DISTINCT + - col2 ) col1 FROM tab2 +---- +-121 +3 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT 57 IS NOT NULL @@ -18456,8 +18612,10 @@ SELECT DISTINCT - ( - + 61 ) FROM tab1 WHERE NOT + col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to d90392ce24a5c1901fa9224b86555788 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col1" at position 1 and "tab2\.col1 \* tab2\.col0 \+ tab2\.col1 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col0 AS col2, - col2 AS col1, col1 * col0 + + col1 AS col1 FROM tab2 +---- +9 values hashing to 77719c76a35dd53556120c61bc5acd72 query III rowsort SELECT * FROM tab2 WHERE NOT + - col2 + - 2 = + 32 - col2 @@ -18544,8 +18702,15 @@ SELECT DISTINCT * FROM tab2 WHERE ( ( NOT NULL IS NULL ) ) # Datafusion - Expected - -7790 # Datafusion - Expected - 68 # Datafusion - Expected - -7790 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col1" at position 0 and "Int64\(95\) \* \(\- Int64\(82\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 68 AS col1, 95 * - + 82 AS col1 FROM tab2 cor0 +---- +-7790 +-7790 +-7790 +68 +68 +68 query I rowsort SELECT 70 FROM tab2 AS cor0 WHERE NULL IN ( 40 ) @@ -18825,8 +18990,15 @@ SELECT ALL - + col0 - col2 + - - 43 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -56 # Datafusion - Expected - -99 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- tab1\.col0\)\)\) \- \(\- Int64\(\-14\)\) AS col1" at position 0 and "Int64\(26\) \- Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - - col0 ) - - - 14 AS col1, 26 - + 82 AS col1 FROM tab1 +---- +-105 +-56 +-56 +-56 +-65 +-99 query I rowsort SELECT + col0 AS col2 FROM tab2 cor0 WHERE col2 IS NOT NULL @@ -19041,8 +19213,15 @@ SELECT DISTINCT + col0 - + + col0 FROM tab2 # Datafusion - Expected - 7 # Datafusion - Expected - 0 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / \(\- cor0\.col1\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 / + - col1 AS col1, + 7 col1 FROM tab0 AS cor0 +---- +-99 +0 +0 +7 +7 +7 query II rowsort label-3130 SELECT + col2 / + 3 col2, col2 AS col1 FROM tab2 cor0 @@ -19510,7 +19689,7 @@ SELECT - ( + ( 94 ) ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 01acd3de8db1789af95550eb0979747b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col2" at position 0 and "\(\- tab1\.col2\) \+ Int64\(35\) \+ tab1\.col2 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Schema error: Schema contains qualified field name tab1\.col2 and unqualified field name col2 which would be ambiguous SELECT 75 AS col2, col2, - col2 + + 35 + col2 AS col2 FROM tab1 query I rowsort @@ -19776,8 +19955,15 @@ SELECT DISTINCT - col2 * - 66 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - NULL # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col1, - col0 col1 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +NULL +NULL +NULL query I rowsort SELECT ALL + + col0 + + + ( col1 ) * + 39 - + - col1 AS col1 FROM tab0 cor0 @@ -20059,8 +20245,15 @@ SELECT - - ( - col0 ), col1 FROM tab1 WHERE NOT NULL IS NULL # Datafusion - Expected - -69 # Datafusion - Expected - -75 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col1" at position 0 and "Int64\(\-69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col1, - 69 AS col1 FROM tab2 +---- +-46 +-64 +-69 +-69 +-69 +-75 query I rowsort SELECT DISTINCT col0 * + + 19 * - col0 AS col0 FROM tab2 @@ -21250,8 +21443,15 @@ SELECT + ( col2 ) * - 19 + - - ( + col0 ), col0 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 14 # Datafusion - Expected - 1740 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col0 \+ \(\- cor0\.col0\) \+ Int64\(49\) / cor0\.col0 AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * col0 + - col0 + + + 49 / + col0 AS col0, 14 AS col0 FROM tab0 AS cor0 +---- +0 +1203 +14 +14 +14 +1740 query I rowsort SELECT - + col2 * - + col1 AS col2 FROM tab1 AS cor0 @@ -21323,8 +21523,15 @@ NULL # Datafusion - Expected - 51 # Datafusion - Expected - 61 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col1" at position 0 and "Int64\(56\) \+ \(\- \(\- cor0\.col0\)\) / Int64\(\-15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 AS col1, + 56 + - - col0 / + - 15 AS col1 FROM tab0 AS cor0 +---- +50 +51 +55 +61 +61 +61 query II rowsort SELECT - col0 AS col2, + col2 AS col0 FROM tab2 AS cor0 @@ -21380,8 +21587,15 @@ SELECT DISTINCT - ( + COUNT ( * ) ) / - 33 FROM tab2 AS cor0 # Datafusion - Expected - -77 # Datafusion - Expected - -58 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab2\.col2 AS Int32\)\) AS col2" at position 0 and "tab2\.col1 \+ \(\- tab2\.col1\) \- tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( CAST ( col2 AS INTEGER ) ) AS col2, + col1 + - col1 - col1 AS col2 FROM tab2 +---- +-23 +-40 +-51 +-58 +-67 +-77 query II rowsort SELECT ALL + 40 col1, - 37 * + - 50 * 32 + - 0 AS col2 FROM tab2 @@ -21436,8 +21650,15 @@ SELECT ALL + COUNT ( - 66 ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 49 # Datafusion - Expected - -5 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 AS col0, 49 col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +49 +49 +49 query I rowsort label-3511 SELECT DISTINCT 27 + - + col1 + + col0 / + 17 AS col1 FROM tab2 AS cor0 @@ -21530,8 +21751,11 @@ SELECT ALL - col2, + col0 * + ( - + col1 ) AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 76 AS col2, COUNT ( * ) AS col2 FROM tab1 cor0 +---- +3 +76 query II rowsort SELECT DISTINCT - col2 AS col0, - 76 FROM tab0 AS cor0 @@ -22375,8 +22599,11 @@ SELECT DISTINCT col1, + ( - + col0 ) col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \+ \(\- tab1\.col0\) / tab1\.col0 AS col1" at position 0 and "Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 22 + - col0 / col0 AS col1, 71 AS col1 FROM tab1 +---- +21 +71 query I rowsort SELECT ( 28 ) * - + col2 FROM tab2 AS cor0 @@ -22392,8 +22619,15 @@ SELECT ( 28 ) * - + col2 FROM tab2 AS cor0 # Datafusion - Expected - -21 # Datafusion - Expected - 27 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 27 AS col2, - col1 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +27 +27 +27 query I rowsort label-3664 SELECT - 41 * + - COUNT ( * ) FROM tab1 cor0 @@ -22614,8 +22848,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col2 / + col2 + # Datafusion - Expected - 59 # Datafusion - Expected - -91 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + col0 ) AS col1, + col2 AS col1 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +59 +68 +96 query I rowsort SELECT DISTINCT + col1 * + - 4 * + + col1 + + col0 AS col1 FROM tab1 AS cor0 @@ -23042,8 +23283,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT 80 IS NULL # Datafusion - Expected - 5 # Datafusion - Expected - 99 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* tab0\.col2 AS col0" at position 0 and "\(\- tab0\.col1\) / \(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * col2 AS col0, - col1 / + - ( col0 ) AS col0 FROM tab0 +---- +0 +0 +210 +3807 +5 +99 query I rowsort label-3778 SELECT DISTINCT SUM ( col2 ) AS col2 FROM tab0 WHERE NOT col2 NOT BETWEEN - 21 + col1 AND ( 34 * + col0 ) @@ -23551,8 +23799,15 @@ SELECT DISTINCT col1 - + - col0 AS col1 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + col0 ) AS col0, col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-3862 SELECT COUNT ( - - col1 ) * - 66 AS col0 FROM tab2 @@ -23623,8 +23878,15 @@ SELECT - - SUM ( - - 31 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 42 # Datafusion - Expected - -97 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(2\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col0, 2 * + col1 AS col0 FROM tab0 cor0 +---- +-15 +-87 +-97 +162 +2 +42 query II rowsort SELECT ALL col0 AS col2, col1 FROM tab0 AS cor0 @@ -24105,8 +24367,15 @@ SELECT + col1 * - 44 + - + col2 AS col2 FROM tab2 WHERE NOT - 71 <= + ( + - 96 ) # Datafusion - Expected - -291450 # Datafusion - Expected - 53958 # Datafusion - Expected - -53958 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \* \(\- tab2\.col0\) \* tab2\.col2 AS col2" at position 0 and "tab2\.col0 \* \(\- tab2\.col1\) \* \(\- \(\- tab2\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * - + col0 * + + col2 AS col2, + col0 * - col1 * - - col2 AS col2 FROM tab2 +---- +-197120 +-291450 +-53958 +197120 +291450 +53958 query I rowsort SELECT ALL + + col0 + + + ( + col1 ) FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND - ( - col0 ) + + 27 - - 95 @@ -24360,8 +24629,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) col1, 64 AS col1 FROM tab1 +---- +-3 +64 query I rowsort SELECT col0 + - + 56 AS col0 FROM tab1 @@ -24411,8 +24683,15 @@ SELECT ALL col1 * col2 + - + col1 * + 90 AS col1, - col2 + + 72 / + - col2, - - # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, col1 AS col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -24821,8 +25100,15 @@ SELECT - col1 * col0 * + col2 AS col2 FROM tab0 # 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 col2" at position 0 and "Int64\(0\) / \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 AS col2, + 0 / - col1 col2 FROM tab2 AS cor0 +---- +0 +0 +0 +79 +79 +79 query II rowsort SELECT + 38 AS col0, col1 AS col2 FROM tab0 AS cor0 @@ -24896,8 +25182,11 @@ SELECT + 6 - - col2 * + ( + - ( col1 ) ) AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 13 AS col1, + COUNT ( * ) AS col1 FROM tab2 +---- +-13 +3 query I rowsort label-4073 SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab2 WHERE NOT - ( 43 ) IS NOT NULL @@ -25192,8 +25481,15 @@ SELECT ALL COUNT ( col0 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 71 # Datafusion - Expected - -29 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col1" at position 0 and "CAST\(Int64\(71\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 29 AS col1, CAST ( + 71 AS INTEGER ) col1 FROM tab1 AS cor0 +---- +-29 +-29 +-29 +71 +71 +71 query I rowsort SELECT - - 66 AS col0 FROM tab0 cor0 @@ -25909,8 +26205,15 @@ SELECT ( - - col2 ) * + 89 + col2 FROM tab0 AS cor0 # Datafusion - Expected - 25 # Datafusion - Expected - 65 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col1" at position 0 and "Int64\(10\) \+ \(\- \(\- cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 65 AS col1, 10 + - - col0 AS col1 FROM tab0 AS cor0 +---- +107 +25 +65 +65 +65 +97 query I rowsort SELECT - col2 * + col0 * - 68 FROM tab1 AS cor0 @@ -26057,8 +26360,15 @@ SELECT * FROM tab1 WHERE col2 BETWEEN - CAST ( + + col0 AS INTEGER ) * + col0 AN # Datafusion - Expected - 101 # Datafusion - Expected - -714 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \* tab1\.col0 AS col0" at position 0 and "tab1\.col1 \+ Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * + col0 col0, col1 + 54 col0 FROM tab1 +---- +-425 +-4277 +-714 +101 +59 +68 query III rowsort SELECT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN ( NULL ) AND 26 * + - ( - - col2 ) @@ -27315,8 +27625,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 AS col1, - 61 + - COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +-64 +48 query I rowsort SELECT ALL 73 - + - ( 22 ) FROM tab1 AS cor0 @@ -27383,8 +27696,15 @@ SELECT 97 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 21 # 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 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 58 col0, + col1 col0 FROM tab0 AS cor0 +---- +1 +21 +58 +58 +58 +81 query I rowsort label-4485 SELECT + + MIN ( ALL + 12 ) col1 FROM tab0 AS cor0 @@ -27974,8 +28294,15 @@ SELECT * FROM tab2 cor0 WHERE - col1 IS NULL OR NOT NULL IS NULL # Datafusion - Expected - 59 # Datafusion - Expected - -58 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col1, 59 AS col1 FROM tab2 +---- +-23 +-40 +-58 +59 +59 +59 query I rowsort SELECT - + col1 AS col0 FROM tab2 WHERE NOT NULL > NULL @@ -27988,8 +28315,15 @@ SELECT - + col1 AS col0 FROM tab2 WHERE NOT NULL > NULL # Datafusion - Expected - 3514 # Datafusion - Expected - 77 # Datafusion - Expected - 621 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "tab2\.col0 \+ \(\- tab2\.col2\) \* \(\- tab2\.col2\) \+ tab2\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 AS col0, col0 + - col2 * + - col2 + + col0 AS col0 FROM tab2 +---- +1728 +3514 +621 +77 +77 +77 query II rowsort SELECT + col2 * - col0 AS col0, - 58 FROM tab1 @@ -28495,8 +28829,15 @@ SELECT col2 * - 81 AS col0 FROM tab2 # Datafusion - Expected - -43 # Datafusion - Expected - -6188 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \* tab1\.col2 AS col1" at position 0 and "Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * + col2 AS col1, - 43 AS col1 FROM tab1 +---- +-43 +-43 +-43 +-4896 +-5015 +-6188 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT NULL = 97 @@ -28628,8 +28969,15 @@ SELECT DISTINCT - CAST ( - col2 AS INTEGER ) - col0 * col0 FROM tab0 WHERE - ( - # Datafusion - Expected - -2448 # Datafusion - Expected - 6 # Datafusion - Expected - -3696 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \+ \(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 \* Int64\(\-48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 83 + - col1 AS col0, col1 * - 48 AS col0 FROM tab2 AS cor0 +---- +-2448 +-3216 +-3696 +16 +32 +6 query I rowsort label-4692 SELECT - 24 + + col2 / 2 FROM tab2 AS cor0 @@ -29570,8 +29918,15 @@ SELECT 71 * + - MIN ( - + 37 ) AS col1 FROM tab0 cor0 # Datafusion - Expected - -3102 # Datafusion - Expected - 99 # Datafusion - Expected - -6534 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 \* Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, + col2 * - 66 AS col1 FROM tab0 AS cor0 +---- +-3102 +-6534 +-660 +10 +47 +99 query II rowsort SELECT DISTINCT + col0, - col0 + - col0 AS col2 FROM tab0 @@ -30631,8 +30986,15 @@ SELECT DISTINCT + col1 + col1 + col2 + + col1 FROM tab1 AS cor0 # Datafusion - Expected - 31 # Datafusion - Expected - -89 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ \(\- Int64\(74\)\) AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + - ( 74 ) col1, 31 AS col1 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL +---- +-161 +-171 +-89 +31 +31 +31 query I rowsort label-5009 SELECT ALL MAX ( ALL - 28 ) - 8 * 21 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 55 IS NULL @@ -31167,8 +31529,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( DISTINCT - + 24 ) AS col1, - COUNT ( * ) AS col1 FROM tab1 +---- +-24 +-3 query I rowsort SELECT ( + 90 ) col2 FROM tab0 @@ -31571,8 +31936,15 @@ SELECT - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 91 IS NULL # Datafusion - Expected - 64 # Datafusion - Expected - -58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col1, col0 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +46 +64 +75 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT - ( + - 53 ) + - + col0 IS NOT NULL @@ -31874,8 +32246,15 @@ SELECT + COUNT ( * ) + + COUNT ( DISTINCT + 57 ) FROM tab2 AS cor0 # Datafusion - Expected - -472 # Datafusion - Expected - 7415 # Datafusion - Expected - -544 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(82\)\) \* \(\- cor0\.col0\) \+ \(\- cor0\.col1\) AS col1" at position 0 and "Int64\(8\) \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 82 * - + col0 + - col1 AS col1, + 8 * - + col2 AS col1 FROM tab1 AS cor0 +---- +-472 +-544 +-768 +4168 +6965 +7415 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN ( - col1 ) AND 90 @@ -32390,8 +32769,15 @@ SELECT + - ( - 68 ) * + + 86 - - col0 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 12 # Datafusion - Expected - 5 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col2, + 12 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL +---- +12 +12 +12 +14 +47 +5 query I rowsort SELECT ( - col1 ) * + ( + + col1 ) FROM tab2 @@ -33397,8 +33783,15 @@ SELECT SUM ( 18 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 430 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* tab0\.col2 AS col1" at position 0 and "Int64\(42\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 43 * + col2 AS col1, 42 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 +---- +2021 +4257 +430 +NULL +NULL +NULL query I rowsort label-5468 SELECT ALL COUNT ( * ) + + - 87 FROM tab0 AS cor0 @@ -33444,8 +33837,9 @@ SELECT DISTINCT COUNT ( * ) * - 70 FROM tab2, tab1 AS cor0 -630 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "tab2\.col2 \+ \(\- Int64\(29\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, col2 + ( - + 29 ) AS col1 FROM tab2 WHERE - col2 IS NULL +---- query III rowsort SELECT * FROM tab1 WHERE NOT col1 + - col2 IS NOT NULL @@ -33461,8 +33855,11 @@ SELECT - ( - - col2 ) AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col2, - 30 AS col2 FROM tab1 +---- +-30 +3 query I rowsort SELECT ( - - 97 ) * 39 FROM tab1 @@ -34280,8 +34677,15 @@ SELECT DISTINCT - - col2 FROM tab1 WHERE col2 IS NOT NULL # Datafusion - Expected - 1600 # Datafusion - Expected - -58 # Datafusion - Expected - 3364 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col2" at position 0 and "tab2\.col2 \* tab2\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col2, col2 * + + col2 AS col2 FROM tab2 +---- +-23 +-40 +-58 +1600 +3364 +529 query I rowsort label-5618 SELECT - SUM ( DISTINCT - 85 ) FROM tab0 @@ -34664,8 +35068,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 4 IS NULL # Datafusion - Expected - 91 # Datafusion - Expected - -96 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col2 AS col1, + ( col0 ) AS col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +51 +85 +91 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 <> ( NULL ) @@ -35218,8 +35629,15 @@ SELECT DISTINCT ( + + col2 ) + - - col1 AS col2 FROM tab1 cor0 WHERE NULL IS NOT # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col1, col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 @@ -35228,8 +35646,15 @@ SELECT col1 AS col1, col1 FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, + col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query II rowsort SELECT ALL + + col0 AS col2, - ( - - col2 ) FROM tab0 AS cor0 @@ -35345,8 +35770,15 @@ SELECT - col1 + + - 93 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 48 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "Int64\(0\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 48 AS col1, + 0 * col0 AS col1 FROM tab0 AS cor0 +---- +0 +0 +0 +48 +48 +48 query I rowsort SELECT 83 + + col1 FROM tab2 AS cor0 @@ -35526,8 +35958,15 @@ SELECT DISTINCT COUNT ( - + 47 ) FROM tab1 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, + col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query II rowsort SELECT ALL 91, - 51 AS col0 FROM tab0 @@ -35920,8 +36359,15 @@ SELECT + CAST ( NULL AS INTEGER ) / - col0 AS col0 FROM tab2 WHERE NOT NULL IS N # Datafusion - Expected - 0 # Datafusion - Expected - -416250 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* Int64\(\-74\) \* \(\- \(\- tab2\.col0\)\) AS col1" at position 0 and "tab2\.col2 \- tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * - 74 * - - col0 AS col1, + col2 - col2 AS col1 FROM tab2 +---- +-156584 +-303104 +-416250 +0 +0 +0 query II rowsort SELECT DISTINCT - 53, - col0 AS col0 FROM tab0 cor0 @@ -35966,8 +36412,11 @@ SELECT DISTINCT - col1 * + - col1 + + col0, 15 * - col0 AS col2 FROM tab1 AS cor # Datafusion - Datafusion expected results: # Datafusion - Expected - -10545 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(37\)\)\) \* Int64\(95\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - SUM ( 37 ) * 95 AS col0, 69 AS col0 FROM tab0 cor0 +---- +-10545 +69 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT 21 IS NULL @@ -36168,8 +36617,15 @@ SELECT ALL * FROM tab1 WHERE + + col1 + col0 BETWEEN NULL AND + + col0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col0, col0 AS col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT ALL - + ( 5 ) FROM tab2 AS cor0 @@ -36885,8 +37341,15 @@ SELECT DISTINCT ( - COUNT ( * ) ) / + MIN ( ALL - col0 ) * + COUNT ( * ) FROM ta # Datafusion - Expected - 26 # Datafusion - Expected - 45 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 AS col0, 26 col0 FROM tab1 +---- +26 +26 +26 +45 +45 +45 query I rowsort SELECT ALL - col2 * + - col2 col0 FROM tab2 @@ -37683,8 +38146,15 @@ SELECT + SUM ( - + col1 ) FROM tab1 cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 col2, col2 col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT + ( col1 ) * - col0 AS col0 FROM tab2 @@ -38433,8 +38903,15 @@ SELECT DISTINCT + + 68 / - 18 + + col0 AS col0, 77 FROM tab0 cor0 # Datafusion - Expected - 67 # Datafusion - Expected - -1657 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* Int64\(21\) \+ \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * + 21 + - col2 col2, col1 col2 FROM tab2 AS cor0 +---- +-1094 +-1465 +-1657 +51 +67 +77 query I rowsort label-6291 SELECT + CAST ( + COUNT ( * ) AS INTEGER ) + - 33 AS col2 FROM tab2 @@ -38670,8 +39147,15 @@ SELECT + 19 * - COUNT ( * ) + - 20 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -59 # Datafusion - Expected - -91 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 AS col0, - col2 AS col0 FROM tab1 AS cor0 +---- +-51 +-59 +-68 +-85 +-91 +-96 query I rowsort label-6331 SELECT DISTINCT + ( + COUNT ( * ) ) + - + 7 FROM tab1 AS cor0 @@ -38811,8 +39295,11 @@ SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NOT + + CAST ( NULL AS INTEGER ) IS # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(\-79\)\)\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MAX ( - 79 ) AS col0, + 68 AS col0 FROM tab0 +---- +68 +79 query I rowsort label-6353 SELECT + 47 - - - 50 * + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE - - col1 IS NOT NULL @@ -39334,8 +39821,15 @@ SELECT DISTINCT + col1 * - col1 + - col2 + col0 FROM tab2 AS cor0 # Datafusion - Expected - 2560 # Datafusion - Expected - 5 # Datafusion - Expected - 1058 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col0\) \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 - col0 AS col2, - col0 * - ( + col2 ) AS col2 FROM tab2 AS cor0 +---- +-8 +1058 +13 +2560 +4350 +5 query III rowsort label-6449 SELECT ALL * FROM tab2 WHERE NOT + - 47 BETWEEN + - CAST ( + col2 AS INTEGER ) - col0 AND - col0 + - col2 @@ -39389,8 +39883,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col0, + 3 + - 60 AS col0 FROM tab2 AS cor0 +---- +-3 +-57 query I rowsort SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE col0 * - col2 <> - col0 - + - col2 + col1 @@ -39432,8 +39929,15 @@ SELECT + 26 FROM tab1 WHERE NOT NULL IN ( + - 81 * - ( + - col1 ) + + - ( 96 ) * # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, col0 AS col2 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT - 35 * - col2 AS col0 FROM tab2 AS cor0 @@ -40030,8 +40534,15 @@ SELECT - COUNT ( * ) * + COUNT ( * ) - + SUM ( col0 ) - + + 11 FROM tab1 # Datafusion - Expected - -3 # Datafusion - Expected - 75 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col0" at position 0 and "tab0\.col2 / \(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 75 AS col0, col2 / - ( col0 ) AS col0 FROM tab0 +---- +-1 +-3 +0 +75 +75 +75 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 86 * + 43 IS NOT NULL @@ -40121,8 +40632,15 @@ SELECT ALL * FROM tab0 WHERE NULL BETWEEN - col1 * - col0 AND col2 # Datafusion - Expected - 8 # Datafusion - Expected - 97 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "tab0\.col0 / tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, col0 / + col2 AS col1 FROM tab0 +---- +0 +0 +15 +8 +87 +97 query I rowsort label-6582 SELECT col1 + + col1 + - 7 FROM tab0 WHERE NOT NULL <> CAST ( NULL AS INTEGER ) + + col2 @@ -45066,8 +45584,15 @@ SELECT + col2 / + - 13 FROM tab1 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(cor0\.col0 AS Int32\)\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - CAST ( col0 AS INTEGER ) col1, col0 AS col1 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-7415 SELECT - - MIN ( + col2 ) AS col2 FROM tab2 AS cor0 @@ -45415,8 +45940,15 @@ SELECT ALL * FROM tab1 cor0 WHERE 69 * - + 35 * + + col1 + + + 72 IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - -3 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +-3 +-3 +-3 +14 +47 +5 query II rowsort label-7474 SELECT + + 30, - COUNT ( * ) AS col1 FROM tab1 cor0 @@ -46184,8 +46716,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 - + col2 NOT BETWEEN NULL A # Datafusion - Expected - -5100 # Datafusion - Expected - -97 # Datafusion - Expected - -2392 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ \(\- cor0\.col1\) AS col2" at position 0 and "\(\- cor0\.col0\) \- cor0\.col1 \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 + - + col1 AS col2, - col0 - col1 * col0 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL +---- +-141 +-142 +-2392 +-4992 +-5100 +-97 query II rowsort SELECT + col0, 94 * 43 + + col2 FROM tab0 AS cor0 @@ -46287,8 +46826,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * - 8 + 23 AS col1, - 14 AS col1 FROM tab1 +---- +-1 +-14 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 95 * - 94 + - col0 - - 97 AND + col0 @@ -46781,8 +47323,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + COUNT ( * ) AS col0, 10 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 +---- +-9 +10 query II rowsort label-7699 SELECT DISTINCT + + COUNT ( * ), - 26 + - 24 col1 FROM tab2 AS cor0 @@ -47093,8 +47638,11 @@ SELECT DISTINCT + + 84 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +-3 +3 query I rowsort SELECT - col0 * 47 AS col1 FROM tab2 @@ -47916,8 +48464,11 @@ SELECT 14 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 AS col0, COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 cor0 +---- +21 +6 query II rowsort SELECT DISTINCT + - col0, 68 AS col1 FROM tab0 AS cor0 @@ -48094,8 +48645,15 @@ SELECT DISTINCT + col0 * + 81 * + CAST ( ( + ( - + col2 ) ) AS INTEGER ) FROM ta # Datafusion - Expected - -1 # Datafusion - Expected - 81 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ Int64\(0\) AS col2" at position 0 and "cor0\.col2 / Int64\(\-10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + + - 0 AS col2, col2 / - 10 AS col2 FROM tab0 AS cor0 +---- +-1 +-4 +-9 +1 +21 +81 query I rowsort label-7915 SELECT + CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 WHERE NOT ( NULL NOT BETWEEN - CAST ( col0 AS INTEGER ) * + - col0 * + col1 AND NULL ) @@ -48402,8 +48960,11 @@ SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( - col2 AS INTEGER ) * + ( + - 14 ) I # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(cor0\.col1\)\)\) AS col1" at position 0 and "Int64\(\-75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - MAX ( col1 ) AS col1, - 75 col1 FROM tab1 AS cor0 +---- +-75 +47 query I rowsort SELECT + col2 * + + 47 AS col0 FROM tab1 AS cor0 @@ -48940,8 +49501,11 @@ SELECT DISTINCT - 23 * 85 AS col1, COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) AS # 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\(\(\- cor0\.col1\)\)\)\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( ALL - col1 ) AS col2, ( + + 12 ) AS col2 FROM tab0 AS cor0 +---- +12 +3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 @@ -49578,8 +50142,12 @@ 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\(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\. +query III valuesort SELECT - COUNT ( * ) AS col1, + COUNT ( - ( col1 ) ) AS col1, + + MAX ( + col2 ) AS col0 FROM tab0 AS cor0 +---- +-3 +3 +99 query III rowsort label-8153 SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) * + col0 + col0 AND NULL @@ -49808,8 +50376,15 @@ SELECT col1 / + 52 AS col1 FROM tab1 # Datafusion - Expected - -150 # Datafusion - Expected - 9 # Datafusion - Expected - -705 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "tab0\.col2 \* Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 9 AS col2, col2 * - 15 AS col2 FROM tab0 +---- +-1485 +-150 +-705 +9 +9 +9 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT - 64 + + col0 + + col2 IS NULL @@ -51297,8 +51872,15 @@ SELECT + - 81 AS col1, + col0 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - -17 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 17 col1, col0 AS col1 FROM tab0 AS cor0 +---- +-17 +-17 +-17 +15 +87 +97 query I rowsort label-8441 SELECT DISTINCT + COUNT ( DISTINCT + - CAST ( + + col0 AS INTEGER ) ) + + + 43 FROM tab2 AS cor0 @@ -51396,8 +51978,15 @@ SELECT DISTINCT - + CAST ( + - col1 AS INTEGER ) FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 AS col0, - CAST ( NULL AS INTEGER ) * 34 AS col0 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +NULL +NULL +NULL query I rowsort SELECT ALL col1 * + 32 + - col0 FROM tab2 AS cor0 @@ -51545,8 +52134,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT col0 > - 6 + col1 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, + col1 AS col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT DISTINCT 48 AS col0 FROM tab0 cor0 CROSS JOIN tab0 cor1 @@ -51666,8 +52262,10 @@ SELECT 34 * + col2 * - 92 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 64968d6d29256af31bca501ca188e401 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT ( + + col2 ), - col2, + col2 col2 FROM tab0 +---- +9 values hashing to 5ffbb70b5c82b462587cc45549e6b50b query I rowsort SELECT + - col1 * - + col2 + - 64 FROM tab1 cor0 @@ -52286,8 +52884,12 @@ SELECT ALL - col2 * + 57 col1 FROM tab1 # Datafusion - Expected - 84 # Datafusion - Expected - 3 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(84\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + SUM ( DISTINCT + 84 ) col2, COUNT ( * ) col2, + + 65 + - COUNT ( * ) FROM tab1 +---- +3 +62 +84 query I rowsort SELECT + 22 * - - col0 AS col0 FROM tab2 AS cor0 @@ -53650,8 +54252,15 @@ SELECT DISTINCT + SUM ( DISTINCT + 76 ) FROM tab0 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 95 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + + 95 ) AS col2, col1 AS col2 FROM tab2 cor0 +---- +51 +67 +77 +95 +95 +95 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = + col0 * - - 47 @@ -54471,8 +55080,15 @@ SELECT + MIN ( + col0 ) * + 75 FROM tab2 # Datafusion - Expected - 270810 # Datafusion - Expected - 65 # Datafusion - Expected - 289926 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col1" at position 0 and "tab1\.col0 \* Int64\(\-59\) \* Int64\(\-54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 AS col1, col0 * + - 59 * + - 54 AS col1 FROM tab1 +---- +162486 +270810 +289926 +65 +65 +65 query I rowsort label-8972 SELECT ALL - 53 + + SUM ( + col1 ) + - COUNT ( * ) / + + 75 FROM tab2 @@ -55843,8 +56459,11 @@ SELECT - 91 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \+ Int64\(51\) AS col0" at position 0 and "sum\(DISTINCT Int64\(41\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 26 + 51 AS col0, SUM ( DISTINCT 41 ) AS col0 FROM tab2 +---- +25 +41 query I rowsort SELECT + - 6 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 @@ -56044,8 +56663,15 @@ SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) <> col2 + - ( - col2 ) # Datafusion - Expected - 12 # Datafusion - Expected - -53 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 53 col2, 12 AS col2 FROM tab0 AS cor0 +---- +-53 +-53 +-53 +12 +12 +12 query I rowsort SELECT DISTINCT - 21 * + col2 + + col2 FROM tab0 AS cor0 @@ -56061,8 +56687,15 @@ SELECT DISTINCT - 21 * + col2 + + col2 FROM tab0 AS cor0 # Datafusion - Expected - 7569 # Datafusion - Expected - 38 # Datafusion - Expected - 9409 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col2" at position 0 and "cor0\.col0 \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 38 AS col2, + col0 * col0 AS col2 FROM tab0 AS cor0 +---- +225 +38 +38 +38 +7569 +9409 query II rowsort label-9238 SELECT - ( 18 ) / - + COUNT ( * ), 24 AS col0 FROM tab2 AS cor0 @@ -56754,8 +57387,11 @@ 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\(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\. +query IR valuesort SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( * ) / CAST ( NULL AS FLOAT8 ) AS col1 FROM tab1 AS cor0 +---- +-3 +NULL query I rowsort label-9351 SELECT 87 + - 44 + + COUNT ( * ) AS col1 FROM tab1 AS cor0 @@ -57123,8 +57759,9 @@ SELECT COUNT ( * ) * - ( + 61 ) FROM tab2 -183 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab1\.col0\)\) AS col2" at position 0 and "tab1\.col0 \+ tab1\.col0 \+ Int64\(46\) \* \(\- tab1\.col2\) \- tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 AS col2, + ( ( + col0 ) ) + col0 + 46 * - col2 - + col1 AS col2 FROM tab1 WHERE + 91 IS NULL +---- query I rowsort label-9413 SELECT 70 / + COUNT ( * ) AS col1 FROM tab2 @@ -57262,8 +57899,15 @@ SELECT DISTINCT - col1 AS col1, - col1 + + col1 + + col0 / 1 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 32 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "\(\- CAST\(NULL AS Float64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 32 AS col2, - CAST ( NULL AS FLOAT8 ) AS col2 FROM tab2 +---- +32 +32 +32 +NULL +NULL +NULL query III rowsort SELECT * FROM tab0 WHERE NOT NULL = - - 21 @@ -57584,8 +58228,11 @@ SELECT 71 * - + ( - + 46 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 192 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(64\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col1, + 64 * + COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +192 +3 query II rowsort SELECT - col1, - col2 AS col2 FROM tab2 AS cor0 @@ -58620,8 +59267,11 @@ SELECT - 8 + + 55 * - 50 col2 FROM tab1 AS cor0 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(92\)\)\) AS col1" at position 0 and "Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MIN ( + + 92 ) AS col1, + 24 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL +---- +24 +NULL query I rowsort label-9657 SELECT ALL + - ( - COUNT ( * ) ) col1 FROM tab2 AS cor0 @@ -58988,8 +59638,11 @@ SELECT ALL * FROM tab2 WHERE NOT col2 < + 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - -185 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- tab2\.col0\)\) AS col2" at position 0 and "Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( ALL - col0 ) col2, 92 AS col2 FROM tab2 +---- +-185 +92 query I rowsort label-9715 SELECT 35 + - COUNT ( - 96 ) FROM tab0 @@ -58997,8 +59650,9 @@ SELECT 35 + - COUNT ( - 96 ) FROM tab0 32 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, + col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL +---- query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE + col1 IN ( - col0 * - + col1 - + col0 ) @@ -59388,8 +60042,11 @@ SELECT - CAST ( + 35 AS INTEGER ) AS col0 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\(\(\- cor0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 70 AS col0, + COUNT ( + ( - + col2 ) ) AS col0 FROM tab0 AS cor0 +---- +3 +70 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + - 94 + - col1 * + col1 * col0 * - 44 BETWEEN NULL AND NULL @@ -60565,8 +61222,11 @@ SELECT DISTINCT + ( + 69 ) * - COUNT ( * ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(Int64\(83\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) - + ( COUNT ( 83 ) ) col2 FROM tab1 +---- +-6 +NULL query I rowsort SELECT ALL col1 * + + col0 + col2 FROM tab1 diff --git a/data/sqlite/random/aggregates/slt_good_125.slt b/data/sqlite/random/aggregates/slt_good_125.slt index 9c7bd90..fc51222 100644 --- a/data/sqlite/random/aggregates/slt_good_125.slt +++ b/data/sqlite/random/aggregates/slt_good_125.slt @@ -830,8 +830,15 @@ SELECT ALL * FROM tab0 WHERE NOT - + col0 * + col0 * ( - + col2 ) + + col2 + - 9 # Datafusion - Expected - -1 # Datafusion - Expected - -465 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* \(\- tab0\.col0\) AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 * - + col0 col0, - col1 col0 FROM tab0 +---- +-1 +-21 +-2697 +-3007 +-465 +-81 query I rowsort label-142 SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT 37 = + col2 @@ -1062,8 +1069,15 @@ SELECT col1 + + col2 + - 27 FROM tab1 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - -26 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 26 col0, col2 AS col0 FROM tab2 AS cor0 +---- +-26 +-26 +-26 +23 +40 +58 query I rowsort SELECT 11 + + col1 AS col2 FROM tab1 @@ -2107,8 +2121,15 @@ SELECT DISTINCT COUNT ( * ) / + COUNT ( col1 ) FROM tab0 # Datafusion - Expected - 76 # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- tab2\.col2\) AS col1" at position 0 and "Int64\(\-52\) / \(\- tab2\.col2\) \+ \(\- Int64\(\-75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) + - col2 col1, - 52 / ( - col2 ) + - - 75 AS col1 FROM tab2 +---- +75 +76 +77 +NULL +NULL +NULL query I rowsort label-350 SELECT + SUM ( + col1 ) AS col2 FROM tab2 @@ -2824,8 +2845,15 @@ SELECT ALL + - col1 + + 0 * - + 10 AS col2 FROM tab1 WHERE - col1 IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 +---- +51 +67 +77 +NULL +NULL +NULL query II rowsort label-465 SELECT ALL - CAST ( col2 AS INTEGER ) * col1 AS col2, + 59 FROM tab2 @@ -3610,8 +3638,9 @@ SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN - - col1 AND + col2 99 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ Int64\(\-45\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col2 + - 45 AS col1, 14 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL +---- query III rowsort label-604 SELECT * FROM tab1 AS cor0 WHERE + 49 / - col1 / - 5 * col2 - + CAST ( NULL AS INTEGER ) * col2 >= NULL @@ -4227,8 +4256,15 @@ SELECT - SUM ( DISTINCT - col1 ) * + + COUNT ( * ) * + - COUNT ( * ) - + 29 AS c # Datafusion - Expected - 0 # Datafusion - Expected - -95 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \- Int64\(48\) AS col1" at position 0 and "Int64\(\-39\) / \(\- \(\- tab1\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 - + 48 AS col1, - 39 / - - col0 AS col1 FROM tab1 +---- +-53 +-62 +-95 +0 +0 +0 query II rowsort SELECT col2 - 14, ( - col0 ) AS col1 FROM tab0 @@ -4500,8 +4536,11 @@ SELECT DISTINCT - 14 + + 63 AS col0, - col1 * - - col2 + col0 + col1 + + col0 * # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col1" at position 0 and "min\(Int64\(69\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - 14 ) AS col1, MIN ( ALL 69 ) AS col1 FROM tab2 AS cor0 +---- +-14 +69 query I rowsort SELECT - 6 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL @@ -5517,8 +5556,11 @@ SELECT * FROM tab2 WHERE NOT 36 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 22 AS col1, COUNT ( * ) AS col1 FROM tab2 +---- +22 +3 query I rowsort label-907 SELECT 2 * - + COUNT ( - col2 ) * + - CAST ( NULL AS INTEGER ) col0 FROM tab0 @@ -6992,8 +7034,15 @@ SELECT DISTINCT 17 AS col0 FROM tab0 WHERE NOT - - col0 * col2 + col2 - - col0 + # Datafusion - Expected - -78 # Datafusion - Expected - 9 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "Int64\(\-78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 9 AS col2, - 78 col2 FROM tab2 +---- +-78 +-78 +-78 +9 +9 +9 query III rowsort SELECT * FROM tab1 WHERE NULL BETWEEN + - ( - col0 ) AND + col1 @@ -7077,8 +7126,11 @@ SELECT + col2, col1 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 col2" at position 0 and "\(\- count\(\(\- cor0\.col2\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 31 AS col2, - COUNT ( - col2 ) AS col2 FROM tab0 AS cor0 +---- +-3 +31 query I rowsort label-1165 SELECT ALL MIN ( - - 52 ) FROM tab1 AS cor0 @@ -9803,8 +9855,15 @@ SELECT + ( + COUNT ( * ) ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - 35 # Datafusion - Expected - 81 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, 35 AS col2 FROM tab0 AS cor0 +---- +1 +21 +35 +35 +35 +81 query I rowsort label-1615 SELECT DISTINCT + SUM ( 4 ) FROM tab2 AS cor0 @@ -10463,8 +10522,11 @@ SELECT ALL - + 12 * - col0 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN NULL AND - - # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 52 AS col2 FROM tab1 +---- +3 +52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 @@ -10473,8 +10535,15 @@ SELECT COUNT ( * ) AS col2, 52 AS col2 FROM tab1 # Datafusion - Expected - -47 # Datafusion - Expected - 71 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "\(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 71 AS col2, - col2 AS col2 FROM tab0 +---- +-10 +-47 +-99 +71 +71 +71 query I rowsort SELECT - col1 + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL @@ -11640,8 +11709,15 @@ SELECT ALL col0 FROM tab0 AS cor0 WHERE ( + col2 ) = NULL # Datafusion - Expected - -41 # Datafusion - Expected - -96 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 AS col2, - 41 AS col2 FROM tab1 cor0 +---- +-41 +-41 +-41 +-59 +-68 +-96 query I rowsort SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 12 AND NULL @@ -12531,8 +12607,11 @@ SELECT + ( + col0 ) + + col2 col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \- \(\- count\(Int64\(49\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 AS col0, CAST ( NULL AS INTEGER ) - + - COUNT ( 49 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL +---- +57 +NULL query I rowsort label-2071 SELECT MAX ( - 66 ) FROM tab0 AS cor0 @@ -14667,8 +14746,11 @@ SELECT ALL COUNT ( * ), + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \+ Int64\(\-25\) \+ Int64\(7\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 50 + - 25 + 7 AS col1, COUNT ( * ) col1 FROM tab2 cor0 WHERE NOT col1 < col0 +---- +2 +32 query II rowsort SELECT ALL + + col1 AS col0, - col0 AS col1 FROM tab2 AS cor0 @@ -14815,8 +14897,11 @@ SELECT * FROM tab0 WHERE col0 * - 3 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \* Int64\(\-32\) \+ \(\- tab2\.col2\) \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + col1 ) * - 32 + + - col2 - - CAST ( NULL AS INTEGER ) AS col2, + 30 col2 FROM tab2 +---- +30 +NULL query III rowsort SELECT * FROM tab0 WHERE + 63 IS NULL @@ -14898,8 +14983,15 @@ SELECT + col2 * + 64 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \* \(\- tab0\.col0\) \- Int64\(93\) \* \(\- CAST\(NULL AS Int32\)\) \+ tab0\.col0 AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + - 18 ) * + - col0 - + + 93 * - CAST ( NULL AS INTEGER ) + + col0 col0, + col2 AS col0 FROM tab0 +---- +10 +47 +99 +NULL +NULL +NULL query II rowsort label-2469 SELECT ALL - col0 AS col0, col1 / col2 AS col2 FROM tab1 @@ -15251,8 +15343,15 @@ SELECT col0 + - col2 + - col2 AS col1 FROM tab0 # Datafusion - Expected - 5 # Datafusion - Expected - 732 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \* Int64\(\-8\) \+ Int64\(4\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 * - 8 + 4 AS col2, + col1 col2 FROM tab1 +---- +14 +412 +47 +5 +684 +732 query I rowsort label-2527 SELECT COUNT ( * ) FROM tab1 WHERE + + col1 * - 99 - + 92 IN ( + col0 * + col1, col0, + col2 * - 43, + + ( - 13 ), + 59 ) @@ -15901,8 +16000,15 @@ SELECT ALL + COUNT ( * ) + 5 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 35 # Datafusion - Expected - -91 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, 35 AS col2 FROM tab1 cor0 +---- +-51 +-85 +-91 +35 +35 +35 query I rowsort SELECT DISTINCT - col2 * col0 - col0 FROM tab0 AS cor0 @@ -16116,8 +16222,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT ( NOT - col0 <= 0 ) ) # Datafusion - Expected - -325052 # Datafusion - Expected - -5 # Datafusion - Expected - -32300 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col0" at position 0 and "tab1\.col0 \* tab1\.col1 \* Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, col0 * + col1 * - 76 AS col0 FROM tab1 +---- +-14 +-32300 +-325052 +-47 +-5 +-54264 query I rowsort label-2665 SELECT DISTINCT col1 / - - 36 FROM tab2 @@ -16473,8 +16586,15 @@ SELECT col1, 24 FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - 39 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 AS col0, col1 AS col0 FROM tab0 +---- +1 +21 +39 +39 +39 +81 query I rowsort SELECT ALL - 95 * col0 FROM tab0 @@ -18028,8 +18148,15 @@ NULL # Datafusion - Expected - 52 # Datafusion - Expected - NULL # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* tab0\.col1 / \(\- CAST\(NULL AS Int32\)\) \+ tab0\.col2 AS col1" at position 0 and "\(\- CAST\(Int64\(\-99\) AS Int32\)\) \+ \(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 38 * col1 / - CAST ( NULL AS INTEGER ) + + col2 AS col1, - CAST ( - 99 AS INTEGER ) + - col2 AS col1 FROM tab0 +---- +0 +52 +89 +NULL +NULL +NULL query I rowsort SELECT ALL - + 3 * - - 66 FROM tab0 AS cor0 @@ -18045,8 +18172,15 @@ SELECT ALL - + 3 * - - 66 FROM tab0 AS cor0 # Datafusion - Expected - 88 # Datafusion - Expected - 68 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- \(\- cor0\.col1\)\) \+ Int64\(\-47\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 + - - col1 + - 47 AS col2, ( 88 ) AS col2 FROM tab1 AS cor0 +---- +17 +63 +68 +88 +88 +88 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -18201,8 +18335,15 @@ SELECT ALL - ( + + COUNT ( * ) ) + 90 AS col1 FROM tab1 # Datafusion - Expected - -3422 # Datafusion - Expected - 97 # Datafusion - Expected - -1357 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \+ tab2\.col0 AS col0" at position 0 and "tab2\.col2 \* Int64\(\-59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + + + col0 AS col0, + col2 * + - 59 AS col0 FROM tab2 +---- +-1357 +-2360 +-3422 +141 +142 +97 query II rowsort label-3010 SELECT ALL - col1 AS col2, CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab1 @@ -18354,8 +18495,11 @@ SELECT - col0, + col0 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - -121 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-15\)\)\) AS col1" at position 0 and "sum\(DISTINCT \(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( - 15 ) AS col1, SUM ( DISTINCT - col2 ) col1 FROM tab2 AS cor0 +---- +-121 +45 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL @@ -18364,8 +18508,15 @@ SELECT - SUM ( - 15 ) AS col1, SUM ( DISTINCT - col2 ) col1 FROM tab2 AS cor0 # Datafusion - Expected - -21 # Datafusion - Expected - NULL # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) AS col1, - col1 AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +NULL +NULL +NULL query I rowsort label-3035 SELECT MIN ( ( - col0 ) ) AS col2 FROM tab2 AS cor0 @@ -18433,8 +18584,15 @@ SELECT ALL + + ( CAST ( - 74 AS INTEGER ) ) col0 FROM tab0 AS cor0 # Datafusion - Expected - 33 # Datafusion - Expected - 2977 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(53\) AS Int32\)\)\) \* cor0\.col2 \+ Int64\(\-97\) AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - ( - CAST ( 53 AS INTEGER ) ) * + col2 + - 97 AS col1, 33 AS col1 FROM tab2 AS cor0 +---- +1122 +2023 +2977 +33 +33 +33 query I rowsort label-3046 SELECT 88 / - MAX ( DISTINCT - ( - col1 ) ) FROM tab2 @@ -19018,8 +19176,15 @@ SELECT col1 * - col0 + 80 FROM tab2 # Datafusion - Expected - 90 # Datafusion - Expected - 91 # Datafusion - Expected - 138 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col0 \+ \(\- \(\- tab1\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 col2, col0 + - - col1 AS col2 FROM tab1 +---- +138 +51 +65 +85 +90 +91 query I rowsort SELECT + 78 + + col2 FROM tab0 @@ -19302,8 +19467,15 @@ SELECT ALL MAX ( ALL + ( + col0 ) ) FROM tab2 AS cor0 # Datafusion - Expected - 4 # Datafusion - Expected - 99 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, 4 AS col0 FROM tab0 AS cor0 +---- +10 +4 +4 +4 +47 +99 query I rowsort label-3186 SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL IN ( CAST ( + col0 AS FLOAT8 ) ) @@ -19723,8 +19895,15 @@ SELECT 29 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 165 # Datafusion - Expected - 11 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "Int64\(66\) \+ tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 11 col1, 66 + col2 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL +---- +11 +11 +11 +113 +165 +76 query I rowsort SELECT col0 FROM tab2 WHERE NOT - 25 = - 33 @@ -20691,8 +20870,11 @@ SELECT - ( + col0 ), col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT \(\- tab1\.col1\)\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( DISTINCT - + col1 ) AS col0, 80 AS col0 FROM tab1 +---- +-66 +80 query I rowsort label-3424 SELECT ALL COUNT ( DISTINCT 34 ) AS col0 FROM tab0, tab0 AS cor0 @@ -21353,8 +21535,15 @@ SELECT ALL + 48 + + ( + col0 ) FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ \(\- tab2\.col0\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col0 col1, col0 AS col1 FROM tab2 +---- +46 +64 +75 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab1 WHERE - col1 NOT BETWEEN + + 68 AND + 87 @@ -22785,8 +22974,15 @@ SELECT * FROM tab1 WHERE ( NULL ) = + 4 # Datafusion - Expected - 0 # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \+ CAST\(NULL AS Float64\) AS col0" at position 0 and "\(\- cor0\.col1\) \- \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + ( + 7 ) + CAST ( NULL AS FLOAT8 ) AS col0, - col1 - - col1 AS col0 FROM tab0 AS cor0 +---- +0 +0 +0 +NULL +NULL +NULL query I rowsort label-3761 SELECT ALL 2 / - col0 AS col0 FROM tab1 AS cor0 @@ -23091,8 +23287,15 @@ SELECT ALL COUNT ( * ) * - 36 AS col2 FROM tab2 # Datafusion - Expected - 82 # Datafusion - Expected - -99 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, 82 AS col0 FROM tab0 +---- +-10 +-47 +-99 +82 +82 +82 query I rowsort SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE NULL IN ( - 29 ) @@ -23235,8 +23438,15 @@ SELECT col2 * - col0 * - col2 * col1 * - col2 + - col1 FROM tab2 AS cor0 # Datafusion - Expected - 2984 # Datafusion - Expected - -75 # Datafusion - Expected - 3508 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 \+ Int64\(46\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 AS col1, col2 + + 46 * + col0 AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +2139 +2984 +3508 query I rowsort SELECT ALL - col1 * + 12 FROM tab0 @@ -23368,8 +23578,9 @@ SELECT DISTINCT + col1 * + col2 + ( - + 95 ) * + - col2 * col1 + + + col1 + + 98 NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0, - col0 FROM tab2 AS cor0 WHERE NULL >= NULL +---- query I rowsort label-3855 SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 49 + col0 + - 70 + col1 / - col1 FROM tab1 AS cor0 WHERE 32 NOT IN ( - + 90 + - col2 / col0, + 61 ) @@ -23737,8 +23948,15 @@ SELECT col1 / - - col1 AS col1 FROM tab1 # Datafusion - Expected - 154 # Datafusion - Expected - 0 # Datafusion - Expected - 165 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) / Int64\(68\) AS col1" at position 0 and "tab2\.col0 \+ \(\- Int64\(\-90\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 3 / 68 AS col1, + col0 + - - 90 AS col1 FROM tab2 +---- +0 +0 +0 +136 +154 +165 query I rowsort label-3916 SELECT - ( + CAST ( + col2 AS INTEGER ) ) FROM tab1 AS cor0 @@ -23882,8 +24100,15 @@ SELECT + + SUM ( DISTINCT + + col2 ) * + COUNT ( * ) col1 FROM tab0 AS cor0 # Datafusion - Expected - 10 # Datafusion - Expected - 83 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 83 AS col1, + 10 AS col1 FROM tab1 +---- +10 +10 +10 +83 +83 +83 query I rowsort label-3938 SELECT ALL - CAST ( NULL AS INTEGER ) * 13 FROM tab0 @@ -26321,8 +26546,11 @@ SELECT DISTINCT - COUNT ( * ) / + 90 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <= NULL +---- +0 +NULL query I rowsort label-4342 SELECT - COUNT ( * ) * - COUNT ( * ) * + - 73 col1 FROM tab1 @@ -26340,8 +26568,15 @@ SELECT ALL * FROM tab2 WHERE NOT - col2 - + col2 IS NOT NULL # Datafusion - Expected - 6188 # Datafusion - Expected - 96 # Datafusion - Expected - 4896 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, + col2 * col0 AS col0 FROM tab1 AS cor0 +---- +4896 +5015 +59 +6188 +68 +96 query II rowsort SELECT col0, + col2 + - col0 AS col1 FROM tab0 AS cor0 @@ -26636,8 +26871,15 @@ NULL # Datafusion - Expected - 68 # Datafusion - Expected - 58 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, + 68 col0 FROM tab2 AS cor0 +---- +23 +40 +58 +68 +68 +68 query I rowsort label-4388 SELECT + - ( - - MIN ( col1 ) ) FROM tab1 cor0 @@ -28099,8 +28341,15 @@ SELECT DISTINCT col2 / + ( - + col2 ) + + - col0 FROM tab1 cor0 # Datafusion - Expected - 828 # Datafusion - Expected - 8 # Datafusion - Expected - 1350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- cor0\.col1 AS col1" at position 0 and "Int64\(18\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 - col1 AS col1, 18 * col0 AS col1 FROM tab2 AS cor0 +---- +-13 +-5 +1152 +1350 +8 +828 query I rowsort SELECT ALL - col2 + + - 80 + - ( + - col2 ) col0 FROM tab0 AS cor0 @@ -29494,8 +29743,11 @@ SELECT - col0 * 95 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 77 AS col0, 83 AS col0 FROM tab2 +---- +-77 +83 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -30801,8 +31053,15 @@ SELECT DISTINCT - MAX ( 27 ) FROM tab0 # Datafusion - Expected - 67 # Datafusion - Expected - 41 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 41 AS col0, col1 AS col0 FROM tab2 +---- +41 +41 +41 +51 +67 +77 query I rowsort label-5095 SELECT ALL - 83 + - + COUNT ( * ) FROM tab2 @@ -32728,8 +32987,15 @@ SELECT DISTINCT - 63 * - col0 AS col0 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col1 / \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 +---- +51 +85 +91 +NULL +NULL +NULL query III rowsort SELECT * FROM tab2 WHERE NOT col1 NOT BETWEEN NULL AND - + col0 * - - 84 + + col1 @@ -33728,8 +33994,15 @@ SELECT DISTINCT col1, + col0 + - col1 AS col2 FROM tab1 cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 \+ \(\- Int64\(30\)\) / cor0\.col0 \* \(\- Int64\(\-82\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, + col2 + - + 30 / col0 * - - 82 AS col1 FROM tab2 AS cor0 +---- +23 +40 +46 +58 +64 +75 query I rowsort label-5573 SELECT ( CAST ( - col1 AS INTEGER ) ) AS col1 FROM tab2 AS cor0 @@ -34743,8 +35016,15 @@ SELECT ALL + col0 AS col1 FROM tab2 AS cor0 WHERE - 68 * col2 / CAST ( - - col1 # Datafusion - Expected - 67 # Datafusion - Expected - -97 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, 67 col2 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +67 +67 +67 query I rowsort SELECT DISTINCT + ( + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT + 35 NOT BETWEEN NULL AND - col0 + + 65 + + - 42 @@ -34997,8 +35277,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE CAST ( NULL AS # Datafusion - Expected - -45516 # Datafusion - Expected - 91 # Datafusion - Expected - -59145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 \* \(\- cor0\.col0\) \+ Int64\(\-11\) \* cor0\.col2 \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, col0 * - col0 + - 11 * col2 * col2 AS col2 FROM tab1 AS cor0 +---- +-103977 +-45516 +-59145 +51 +85 +91 query II rowsort SELECT - + col1 AS col1, + col2 / - col0 FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL ) @@ -35093,8 +35380,15 @@ NULL # Datafusion - Expected - -71 # Datafusion - Expected - -33 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col1" at position 0 and "Int64\(\-71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 33 AS col1, - 71 AS col1 FROM tab1 AS cor0 +---- +-33 +-33 +-33 +-71 +-71 +-71 query I rowsort label-5798 SELECT DISTINCT - MIN ( ALL + ( - ( + col2 ) ) ) FROM tab0 cor0 @@ -35494,8 +35788,15 @@ SELECT - SUM ( col2 ) AS col2 FROM tab2 cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 96 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, - col1 col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +59 +68 +96 query II rowsort label-5864 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 42 AS col1, col2 AS col0 FROM tab2 @@ -35775,8 +36076,15 @@ SELECT - - MIN ( + - 91 ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - -96 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "CAST\(cor0\.col0 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, + CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +51 +85 +91 query I rowsort SELECT ALL 73 * col0 AS col1 FROM tab1 @@ -36120,8 +36428,15 @@ SELECT ALL col2 * + 51 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col1, col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-5967 SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE CAST ( NULL AS FLOAT8 ) IS NULL @@ -36260,8 +36575,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) col1, - MIN ( ALL - col0 ) + + COUNT ( + - col1 ) AS col1 FROM tab0 cor0 +---- +-3 +100 query I rowsort SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT col0 / - col1 <= ( + col0 * - col0 ) @@ -36751,8 +37069,15 @@ SELECT * FROM tab0 WHERE + - col2 * + 27 IN ( - 61 + + col2 ) # Datafusion - Expected - -99 # Datafusion - Expected - -93 # Datafusion - Expected - -210 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) \- cor0\.col1 AS col2" at position 0 and "cor0\.col2 \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 72 - col1 AS col2, col2 * - col1 AS col2 FROM tab0 AS cor0 +---- +-153 +-210 +-3807 +-73 +-93 +-99 query I rowsort SELECT + + col0 - col1 AS col2 FROM tab2 AS cor0 @@ -37128,8 +37453,10 @@ SELECT DISTINCT + + 55 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 27b8f82c00665575facc7d5d0ce49b83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT col2 AS col1, 43 col1, - col1 FROM tab0 +---- +9 values hashing to 5fb3532f7035e593a6dbbe45c7f0d37c query IIIIII rowsort SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL BETWEEN 66 AND NULL @@ -37308,8 +37635,15 @@ SELECT DISTINCT - SUM ( ALL - 50 ) col1 FROM tab2 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 44 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-44\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 44 col1, col0 AS col1 FROM tab1 AS cor0 +---- +44 +44 +44 +51 +85 +91 query I rowsort SELECT + ( + ( - 47 ) ) * - 53 FROM tab1 @@ -37977,8 +38311,10 @@ SELECT ALL + 71 FROM tab0 WHERE NOT + 67 / col0 = + col2 + + 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 9b9f61fb4ffd2beb9588f61a0fd28994 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "Int64\(83\) \- tab1\.col0 \+ \(\- tab1\.col0\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 31 AS col2, + col0 * + col1 + col1 + + - col0 * + col2, 83 - + col0 + - ( col0 ) AS col2 FROM tab1 +---- +9 values hashing to 79a865c0aed56f14f922fd731bdb482a query I rowsort SELECT - col2 * 79 FROM tab1 @@ -38102,8 +38438,11 @@ SELECT ALL + col2 AS col0 FROM tab0 WHERE NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- \(\- count\(\(\- tab2\.col1\)\)\)\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) * - - COUNT ( + - col1 ) AS col1, 99 AS col1 FROM tab2 +---- +99 +NULL query I rowsort SELECT - 18 AS col0 FROM tab0 WHERE + col0 = NULL @@ -38221,8 +38560,15 @@ SELECT DISTINCT + + COUNT ( ALL - col2 ) col0, - 99 FROM tab1 AS cor0 # Datafusion - Expected - 51 # Datafusion - Expected - 0 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) / Int64\(77\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 / + 77 AS col0, col1 AS col0 FROM tab2 +---- +-1 +0 +0 +51 +67 +77 query I rowsort label-6302 SELECT col0 * - col2 / - col2 AS col2 FROM tab0 @@ -38258,8 +38604,15 @@ SELECT + MIN ( ALL - 20 ) AS col1, COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col0, + col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT ALL + - 55 FROM tab1 WHERE NOT - + col2 IS NOT NULL @@ -38394,8 +38747,15 @@ SELECT - + 3 / - col1 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 88 # Datafusion - Expected - -96 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 AS col0, 88 AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +88 +88 +88 query II rowsort SELECT - col0 + - col1, col0 AS col1 FROM tab1 @@ -39085,8 +39445,15 @@ SELECT col1 AS col2 FROM tab1 WHERE ( NOT ( ( NULL ) IS NOT NULL ) ) # Datafusion - Expected - 10 # Datafusion - Expected - -74 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \+ \(\- tab2\.col2\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + - col2 AS col1, + 10 AS col1 FROM tab2 +---- +-117 +-125 +-74 +10 +10 +10 query I rowsort SELECT DISTINCT col1 * + col0 - - col1 * + col1 AS col1 FROM tab0 @@ -39263,8 +39630,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + SUM ( ALL + 4 ) ) AS col0, - COUNT ( * ) AS col0 FROM tab1 +---- +-3 +12 query I rowsort SELECT + 24 * - + col0 AS col0 FROM tab2 @@ -40066,8 +40436,15 @@ SELECT ALL + 50 * COUNT ( * ) / + MAX ( ( + ( + col2 ) ) ) FROM tab2 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 34 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 34 AS col1, - col2 AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +34 +34 +34 query I rowsort label-6604 SELECT ALL MIN ( DISTINCT + + col0 ) AS col0 FROM tab0 @@ -42282,8 +42659,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 col2, + COUNT ( * ) + 41 AS col2 FROM tab0 cor0 +---- +44 +8 query I rowsort label-6985 SELECT - + col1 / + + CAST ( NULL AS INTEGER ) / col2 AS col1 FROM tab1 AS cor0 @@ -42725,8 +43105,15 @@ SELECT DISTINCT - - col2, + col2 FROM tab0 cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, col1 FROM tab2 cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-7051 SELECT ALL COUNT ( DISTINCT + col1 ) FROM tab2 AS cor0 @@ -43517,8 +43904,10 @@ SELECT + MAX ( ALL + - 93 ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a2e5f06157be2ad7ef7c9ecb4e26ca72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "tab0\.col2 \+ \(\- \(\- tab0\.col1\)\) \+ tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL col2 AS col1, ( + col2 ) + - - col1 + + ( col0 ) AS col1, + + 45 + CAST ( NULL AS INTEGER ) col1 FROM tab0 +---- +9 values hashing to 0a1737f88538d9b70f4be366a673310f query I rowsort SELECT ALL col0 * - - 86 FROM tab2 @@ -44413,8 +44802,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * - COUNT ( * ) col2, + 94 AS col2 FROM tab0 +---- +9 +94 query I rowsort SELECT + 92 * 88 FROM tab1 @@ -44916,8 +45308,15 @@ SELECT ALL - + ( + - 84 ) FROM tab0 AS cor0 # Datafusion - Expected - 54 # Datafusion - Expected - -75 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, 54 col2 FROM tab2 cor0 +---- +-46 +-64 +-75 +54 +54 +54 query I rowsort SELECT - col1 FROM tab2 AS cor0 WHERE NOT NULL > + col1 @@ -45338,8 +45737,15 @@ SELECT * FROM tab0 WHERE + - col1 NOT IN ( col2 * + col1, 33 ) # Datafusion - Expected - 58 # Datafusion - Expected - 69 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- \(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 - - col2 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +104 +133 +23 +40 +58 +69 query I rowsort SELECT DISTINCT + - ( + 1 ) + + - 37 + + col0 FROM tab0 AS cor0 @@ -45636,8 +46042,15 @@ SELECT DISTINCT + COUNT ( 10 ) FROM tab0 # Datafusion - Expected - -58 # Datafusion - Expected - 920 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \* Int64\(\-40\) AS col2" at position 0 and "\(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 * + - 40 AS col2, - col2 AS col2 FROM tab2 +---- +-23 +-40 +-58 +1600 +2320 +920 query I rowsort label-7536 SELECT 86 * - MAX ( + + col0 ) col1 FROM tab2 @@ -46164,8 +46577,15 @@ SELECT DISTINCT col2 + - 8 + + ( + col0 ) AS col0 FROM tab2 # Datafusion - Expected - 3886 # Datafusion - Expected - 3377 # Datafusion - Expected - 3080 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \+ Int64\(66\) \* Int64\(50\) AS col1" at position 0 and "tab2\.col2 \* tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + + 66 * 50 AS col1, col2 * + col1 AS col1 FROM tab2 +---- +1173 +3080 +3351 +3367 +3377 +3886 query I rowsort SELECT ALL col1 * col1 - - + col1 FROM tab0 @@ -46610,8 +47030,15 @@ SELECT DISTINCT - ( COUNT ( ALL - 39 ) ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 6 # Datafusion - Expected - NULL # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- \(\- cor0\.col0\)\) \+ \(\- Int64\(25\)\) \+ Int64\(84\) \* \(\- CAST\(NULL AS Int32\)\) / CAST\(Int64\(17\) AS Int32\) \* \(\- Int64\(27\)\) \+ cor0\.col2 AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * - - col0 + - + 25 + + 84 * - CAST ( NULL AS INTEGER ) / + CAST ( 17 AS INTEGER ) * - + 27 + col2 AS col0, 6 AS col0 FROM tab2 AS cor0 +---- +6 +6 +6 +NULL +NULL +NULL query I rowsort SELECT ALL - + ( + 34 ) FROM tab1 AS cor0 @@ -47893,8 +48320,11 @@ SELECT DISTINCT * FROM tab2 WHERE - - col2 / - col2 + 53 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\)\) AS col0" at position 0 and "sum\(\(\- CAST\(Int64\(\-11\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, SUM ( - CAST ( - 11 AS INTEGER ) ) AS col0 FROM tab0 cor0 +---- +33 +NULL query II rowsort label-7912 SELECT ALL COUNT ( * ), COUNT ( * ) * + + MIN ( + col0 ) AS col2 FROM tab2 @@ -47938,8 +48368,15 @@ SELECT col2 FROM tab2 AS cor0 WHERE NOT NULL <> NULL # Datafusion - Expected - -72 # Datafusion - Expected - 40 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \* CAST\(\(\- cor0\.col2\) AS Int32\) AS col0" at position 0 and "\(\- Int64\(72\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 4 * CAST ( - col2 AS INTEGER ) AS col0, - ( + 72 ) AS col0 FROM tab0 AS cor0 +---- +-72 +-72 +-72 +188 +396 +40 query I rowsort SELECT - col0 + + - 2 * - col1 FROM tab1 AS cor0 @@ -48422,8 +48859,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT + 23 <> - col0 # Datafusion - Expected - -3685 # Datafusion - Expected - -53 # Datafusion - Expected - -4235 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col1" at position 0 and "Int64\(55\) \* CAST\(\(\- cor0\.col1\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 53 AS col1, + 55 * CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 +---- +-2805 +-3685 +-4235 +-53 +-53 +-53 query I rowsort label-7994 SELECT DISTINCT - COUNT ( * ) * + - ( COUNT ( + - col1 ) ) AS col2 FROM tab2 cor0 @@ -48598,8 +49042,9 @@ SELECT 32 + MIN ( ALL + - col1 ) FROM tab2 -45 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "CAST\(\(\- tab1\.col1\) AS Int32\) \* tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, CAST ( - col1 AS INTEGER ) * col2 col1 FROM tab1 WHERE + - col2 IS NULL +---- query I rowsort SELECT + 67 + + - col0 col2 FROM tab1 @@ -48837,8 +49282,15 @@ SELECT COUNT ( * ) / - MIN ( ALL - - col0 ) col2 FROM tab2 # Datafusion - Expected - 10 # Datafusion - Expected - 97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, col2 col1 FROM tab0 +---- +10 +15 +47 +87 +97 +99 query I rowsort SELECT col0 * - 31 - + col1 FROM tab1 @@ -50076,8 +50528,15 @@ SELECT * FROM tab0 AS cor0 INNER JOIN tab2 cor1 ON NULL >= 44 # Datafusion - Expected - 161 # Datafusion - Expected - 75 # Datafusion - Expected - 172 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "Int64\(97\) \+ tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 col1, + 97 + + col0 col1 FROM tab2 +---- +143 +161 +172 +46 +64 +75 query I rowsort SELECT col1 FROM tab0 AS cor0 WHERE NOT col2 * col0 + col0 IS NOT NULL @@ -50188,8 +50647,15 @@ SELECT DISTINCT + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab0 # Datafusion - Expected - -96 # Datafusion - Expected - 29 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \+ \(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 + - col1 AS col1, - col2 AS col1 FROM tab1 AS cor0 +---- +-13 +-59 +-68 +-96 +20 +29 query III rowsort SELECT ALL * FROM tab2 cor0 WHERE NOT NULL > 83 @@ -50216,8 +50682,11 @@ SELECT + ( - + col0 ) + + col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 17 AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 +---- +-17 +9 query I rowsort SELECT DISTINCT col2 * + col0 + + + col2 FROM tab0 @@ -50396,8 +50865,15 @@ SELECT DISTINCT + + 10 + - + CAST ( - 17 AS INTEGER ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 760 # Datafusion - Expected - 12 # Datafusion - Expected - 793 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "tab1\.col1 \+ \(\- Int64\(86\)\) \+ \(\- Int64\(\-16\)\) \* Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 AS col0, col1 + + - ( + + 86 ) + - - 16 * 52 AS col0 FROM tab1 +---- +12 +12 +12 +751 +760 +793 query II rowsort label-8320 SELECT ALL CAST ( NULL AS INTEGER ) * col0 + - 8, col0 AS col2 FROM tab0 @@ -51067,8 +51543,9 @@ SELECT - col2 FROM tab1 WHERE NOT - col1 + - 49 * - - col1 >= NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col2, - col1 col2 FROM tab0 AS cor0 WHERE col0 IS NULL +---- query II rowsort SELECT + col1 AS col0, col1 * - col1 * 90 - - col2 AS col2 FROM tab0 AS cor0 @@ -51299,8 +51776,9 @@ SELECT DISTINCT 9 / - 95 AS col0 FROM tab0 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 AS col0 FROM tab1 WHERE NOT NULL > ( - - 62 + + col2 ) +---- query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 <= ( NULL ) ) @@ -52106,8 +52584,15 @@ SELECT + + col1 FROM tab1 WHERE NOT NULL <> col1 # Datafusion - Expected - NULL # Datafusion - Expected - 438893 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* Int64\(53\) \* \(\- \(\- tab1\.col0\)\) AS col0" at position 0 and "CAST\(NULL AS Float64\) \+ tab1\.col0 \* Int64\(\-20\) \+ tab1\.col2 \+ \(\- tab1\.col2\) \* \(\- tab1\.col2\) \* tab1\.col2 \* Int64\(\-48\) / \(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT col0 * 53 * - - col0 AS col0, CAST ( NULL AS FLOAT8 ) + + col0 * - 20 + col2 + - + col2 * - col2 * + col2 * - 48 / - col2 AS col0 FROM tab1 +---- +137853 +382925 +438893 +NULL +NULL +NULL query I rowsort label-8597 SELECT 93 / - - 63 AS col0 FROM tab1 @@ -52457,14 +52942,24 @@ SELECT ALL - + col2 - col2 - col2 * - col0 FROM tab0 AS cor0 # Datafusion - Expected - -2 # Datafusion - Expected - 9497 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* tab0\.col0 \+ Int64\(88\) AS col1" at position 0 and "\(\- tab0\.col1\) / \(\- \(\- tab0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 * + col0 + 88 AS col1, - col1 / - - col2 AS col1 FROM tab0 +---- +-1 +-2 +0 +313 +7657 +9497 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) AS col1, ( + - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 +---- +-9 +-9 query I rowsort label-8655 SELECT ALL + CAST ( - - col2 AS INTEGER ) * - 79 * + ( col0 ) FROM tab2 cor0 @@ -53157,8 +53652,15 @@ SELECT ALL - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 32 IS NOT NULL # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "CAST\(cor0\.col1 AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, CAST ( col1 AS INTEGER ) FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query II rowsort SELECT col0 col2, - 51 FROM tab0 AS cor0 @@ -53225,8 +53727,15 @@ SELECT - 76 * + 35 + - col0 AS col2, 56 - + - col1 + - 47 AS col0 FROM tab2 AS c # Datafusion - Expected - -2560 # Datafusion - Expected - 75 # Datafusion - Expected - -4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab2\.col0\)\) AS col2" at position 0 and "tab2\.col0 \* \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + ( - - col0 ) ) AS col2, col0 * - + col2 AS col2 FROM tab2 +---- +-1058 +-2560 +-4350 +46 +64 +75 query I rowsort SELECT ALL col1 + - 94 FROM tab1 @@ -53484,8 +53993,15 @@ SELECT + 69, col2 AS col0 FROM tab2 cor0 # Datafusion - Expected - 67 # Datafusion - Expected - -77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 AS col2, col1 col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +51 +67 +77 query I rowsort label-8829 SELECT + col0 / col2 + 77 AS col0 FROM tab0 AS cor0 @@ -56128,8 +56644,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), COUNT ( * ) FROM tab2 cor0 +---- +3 +3 query I rowsort label-9268 SELECT DISTINCT ( + MIN ( DISTINCT col1 ) ) FROM tab1 AS cor0 @@ -56143,8 +56662,15 @@ SELECT DISTINCT ( + MIN ( DISTINCT col1 ) ) FROM tab1 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1, ( + col1 ) AS col1 FROM tab2 cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT - 61 * - 26 FROM tab0 @@ -56227,8 +56753,15 @@ NULL # Datafusion - Expected - 1063 # Datafusion - Expected - 5 # Datafusion - Expected - 3397 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "Int64\(\-63\) \* \(\- tab1\.col2\) \- CAST\(Int64\(25\) AS Int32\) \+ tab1\.col1 \* \(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col2, - 63 * - col2 - + + CAST ( 25 AS INTEGER ) + col1 * - col2 AS col2 FROM tab1 +---- +1063 +14 +3397 +4679 +47 +5 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -56383,8 +56916,15 @@ SELECT ALL - COUNT ( * ) * 32 + 16 AS col1 FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, + col0 FROM tab2 AS cor0 WHERE ( - 87 ) * col2 + - - 61 IS NOT NULL +---- +46 +46 +64 +64 +75 +75 query II rowsort SELECT ALL + + col1, col1 AS col2 FROM tab2 AS cor0 @@ -57490,8 +58030,15 @@ SELECT - col0 col2, + col0 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 69 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(1\) \+ cor0\.col0 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 * 1 + col0 AS col0, col1 AS col0 FROM tab2 AS cor0 +---- +104 +133 +51 +67 +69 +77 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT ( + 43 ) < + 92 / + col0 @@ -57609,8 +58156,9 @@ SELECT ALL COUNT ( ( + col2 ) ) * + SUM ( + col1 ) + 35 col2, 3 FROM tab0 AS cor 3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, + ( - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - 33 +---- query II rowsort SELECT DISTINCT + - col0 col2, col1 FROM tab2 AS cor0 @@ -57625,8 +58173,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, 14 AS col2 FROM tab1 AS cor0 +---- +-3 +14 query I rowsort label-9508 SELECT ALL + + 83 + + COUNT ( * ) FROM tab1 WHERE + - col0 * + + CAST ( NULL AS INTEGER ) NOT IN ( - col0 - col0, + col1 + - col1 + col1, + col0 * + 71 ) @@ -57848,8 +58399,9 @@ SELECT + - col2 AS col2 FROM tab2 AS cor0 WHERE 38 + + col2 NOT IN ( - 30, - 52 -58 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "cor0\.col2 \* Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 85 + - CAST ( NULL AS INTEGER ) AS col0, col2 * - 91 col0 FROM tab2 AS cor0 WHERE - 5 > 49 +---- query I rowsort label-9544 SELECT - MIN ( DISTINCT + + col0 ) FROM tab2 AS cor0 @@ -58404,8 +58956,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 91 col1, - COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +-3 +-91 query I rowsort label-9644 SELECT MAX ( + + 5 ) AS col2 FROM tab1 AS cor0 @@ -58553,8 +59108,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( ALL + col1 ) / + 56 + - COUNT ( * ) AS col2, + 65 col2 FROM tab2 +---- +0 +65 query I rowsort label-9669 SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT + 82 > NULL @@ -58772,8 +59330,11 @@ SELECT ALL - ( - + ( CAST ( col0 AS INTEGER ) ) ) * - 14 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(cor0\.col2\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( ALL + col2 ) AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +3 +96 query I rowsort SELECT + col2 * col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col0 ) @@ -58843,8 +59404,15 @@ SELECT DISTINCT - - 80 AS col0 FROM tab1 cor0 # Datafusion - Expected - 0 # Datafusion - Expected - -77 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 / cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 AS col0, col2 / col1 AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +0 +0 +0 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE - 1 = NULL @@ -58878,8 +59446,15 @@ SELECT + CAST ( - - col2 AS INTEGER ) FROM tab2 # Datafusion - Expected - 5775 # Datafusion - Expected - -77 # Datafusion - Expected - 4928 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col2" at position 0 and "Int64\(77\) \* tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - + col1 ) col2, 77 * col0 AS col2 FROM tab2 +---- +-51 +-67 +-77 +3542 +4928 +5775 query I rowsort SELECT col0 * + col2 * - col2 AS col0 FROM tab1 @@ -58999,8 +59574,15 @@ SELECT DISTINCT col2 * - + 70 col0 FROM tab2 # Datafusion - Expected - -42668 # Datafusion - Expected - 81 # Datafusion - Expected - -34523 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(\-59\) \+ cor0\.col1 \+ Int64\(\-49\) \* \(\- cor0\.col0\) \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col2, - 59 + + col1 + + - 49 * - col0 * + - col2 col2 FROM tab0 cor0 +---- +-34523 +-42668 +-470605 +1 +21 +81 query I rowsort SELECT DISTINCT ( + 58 ) FROM tab0 AS cor0 @@ -59306,8 +59888,15 @@ SELECT DISTINCT + + 56 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 47 # Datafusion - Expected - 68 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-68\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 68 AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +14 +47 +5 +68 +68 +68 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -59728,8 +60317,15 @@ SELECT col1 + + - 57 FROM tab2 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - -58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 col2, col1 AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +51 +67 +77 query I rowsort label-9864 SELECT ALL + 61 + ( COUNT ( * ) ) FROM tab2 @@ -60387,8 +60983,15 @@ SELECT DISTINCT 47 + - + col0 * - col1 * - + col2 FROM tab2 # Datafusion - Expected - -47 # Datafusion - Expected - 99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col2 AS col2, - col2 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +10 +47 +99 query I rowsort label-9966 SELECT DISTINCT + 7 - + + COUNT ( * ) FROM tab0 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_126.slt b/data/sqlite/random/aggregates/slt_good_126.slt index 19f8872..c73841a 100644 --- a/data/sqlite/random/aggregates/slt_good_126.slt +++ b/data/sqlite/random/aggregates/slt_good_126.slt @@ -631,8 +631,15 @@ SELECT ALL + MIN ( - col2 ) * + SUM ( - col2 ) FROM tab2 cor0 # Datafusion - Expected - 97 # Datafusion - Expected - 65 # Datafusion - Expected - 196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \+ Int64\(\-32\) AS col1" at position 0 and "tab0\.col0 \+ tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 + + - 32 AS col1, + col0 + + col2 AS col1 FROM tab0 +---- +-17 +196 +55 +62 +65 +97 query I rowsort SELECT DISTINCT - 21 FROM tab0 WHERE NULL IS NOT NULL @@ -645,8 +652,15 @@ SELECT DISTINCT - 21 FROM tab0 WHERE NULL IS NOT NULL # Datafusion - Expected - 85 # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) \+ \(\- tab1\.col2\) \* \(\- tab1\.col1\) \* Int64\(45\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - CAST ( NULL AS FLOAT8 ) + - col2 * - col1 * + 45 col2, col0 AS col2 FROM tab1 +---- +51 +85 +91 +NULL +NULL +NULL query I rowsort SELECT ALL + - col2 * 56 - col0 FROM tab0 cor0 @@ -714,8 +728,9 @@ SELECT ALL + 92 + col1 AS col2 FROM tab1 97 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "\(\- tab1\.col2\) / Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, - col2 / + + 98 AS col0 FROM tab1 WHERE col0 + - 55 IS NULL +---- query I rowsort label-117 SELECT - 56 + - + 8 * - COUNT ( * ) FROM tab2 @@ -888,8 +903,15 @@ SELECT ALL 15 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL # Datafusion - Expected - 39 # Datafusion - Expected - 9603 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- cor0\.col0\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( col2 ) * - col0 col0, 39 AS col0 FROM tab0 AS cor0 +---- +39 +39 +39 +705 +870 +9603 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -910,8 +932,15 @@ SELECT * FROM tab1 AS cor0 WHERE ( NOT - + col0 <= NULL ) # Datafusion - Expected - 75 # Datafusion - Expected - -251904 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* Int64\(41\) \* \(\- cor0\.col2\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 64 * + 41 * - col2 AS col2, 75 AS col2 FROM tab1 AS cor0 +---- +-154816 +-178432 +-251904 +75 +75 +75 query I rowsort label-148 SELECT ALL COUNT ( - + col0 ) FROM tab0 @@ -1095,8 +1124,9 @@ SELECT DISTINCT * FROM tab2 WHERE + 11 >= 18 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 38 AS col2, 45 AS col2 FROM tab1 WHERE NOT ( ( col0 / col1 + ( + 56 ) NOT IN ( - col2 ) ) ) +---- query I rowsort SELECT DISTINCT 35 * 38 FROM tab1 @@ -1155,8 +1185,15 @@ SELECT DISTINCT COUNT ( * ) AS col0, 56 FROM tab0 AS cor0 # Datafusion - Expected - 73 # Datafusion - Expected - 525 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* Int64\(35\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * 35 AS col2, 73 col2 FROM tab0 +---- +3045 +3395 +525 +73 +73 +73 query IIIIII rowsort SELECT DISTINCT * FROM tab2 AS cor0 JOIN tab1 cor1 ON NOT + 38 * + + 54 + + 14 IS NOT NULL @@ -1532,8 +1569,15 @@ SELECT ALL col0 AS col2, + col2 * + 85 AS col0 FROM tab1 # Datafusion - Expected - -2304 # Datafusion - Expected - -58 # Datafusion - Expected - -2700 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col0" at position 0 and "\(\- tab2\.col0\) \* \(\- Int64\(\-36\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 col0, - col0 * - - 36 AS col0 FROM tab2 +---- +-1656 +-23 +-2304 +-2700 +-40 +-58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 @@ -3160,8 +3204,15 @@ SELECT DISTINCT + COUNT ( * ) - - COUNT ( - col0 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -78 # Datafusion - Expected - 77 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "Int64\(\-76\) \- Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - ( - col1 ) col2, - 76 - + 2 AS col2 FROM tab2 AS cor0 +---- +-78 +-78 +-78 +51 +67 +77 query I rowsort label-521 SELECT CAST ( + SUM ( - 22 ) AS INTEGER ) FROM tab2 @@ -3856,8 +3907,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-74\)\) AS col1" at position 0 and "cor0\.col2 \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 74 col1, col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +74 +NULL query I rowsort label-638 SELECT - MIN ( ALL + - 24 ) FROM tab0 AS cor0 @@ -4036,8 +4090,11 @@ SELECT COUNT ( * ) * + ( + COUNT ( * ) ) AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col0, - 99 AS col0 FROM tab2 +---- +-99 +3 query I rowsort label-668 SELECT + 87 / 48 * COUNT ( * ) AS col0 FROM tab0 @@ -4286,8 +4343,15 @@ SELECT DISTINCT + + 94, col2 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - 5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col1 AS col2, col0 AS col2 FROM tab1 AS cor0 +---- +14 +47 +5 +51 +85 +91 query I rowsort SELECT ALL col2 * + - 26 FROM tab2 AS cor0 @@ -4451,8 +4515,11 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 94 - col0 + + 65 = 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(cor0\.col1\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( col1 ) AS col2, 56 col2 FROM tab1 cor0 +---- +47 +56 query III rowsort SELECT * FROM tab0 WHERE NOT 23 NOT BETWEEN col2 AND NULL @@ -4502,8 +4569,15 @@ SELECT + 24 AS col0, - 74 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) AS col1" at position 0 and "\(\- \(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + - CAST ( NULL AS FLOAT8 ) AS col1, - ( - + col2 ) col1 FROM tab0 AS cor0 +---- +10 +47 +99 +NULL +NULL +NULL query III rowsort label-744 SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - CAST ( + CAST ( + CAST ( + - 58 AS INTEGER ) AS INTEGER ) AS INTEGER ) - + - col1 IS NOT NULL @@ -5770,8 +5844,15 @@ SELECT ALL - 32 / col0 + 14 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col1, + col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT + 98 + + 54 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL @@ -5797,8 +5878,15 @@ SELECT * FROM tab1 WHERE NOT + col1 < ( - + col0 ) # Datafusion - Expected - -68 # Datafusion - Expected - 864 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* tab1\.col2 AS col0" at position 0 and "\(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 * + col2 AS col0, - col2 col0 FROM tab1 +---- +-59 +-68 +-96 +531 +612 +864 query I rowsort label-968 SELECT DISTINCT 84 * COUNT ( * ) FROM tab1 WHERE NOT NULL <= - - col1 + 3 @@ -5974,8 +6062,15 @@ SELECT DISTINCT + col0, col1 / + col0 AS col2 FROM tab0 cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1, col1 AS col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query II rowsort label-997 SELECT - col1 * - col0, 79 / + col2 + - + col1 - + - col2 + - 1 AS col0 FROM tab1 AS cor0 @@ -6730,8 +6825,15 @@ NULL # Datafusion - Expected - -85 # Datafusion - Expected - 35 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 / Int64\(25\) \* Int64\(35\) AS col1" at position 0 and "\(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 / 25 * + 35 col1, - col0 AS col1 FROM tab1 +---- +-51 +-85 +-91 +0 +0 +35 query II rowsort SELECT 74, col1 AS col2 FROM tab2 @@ -6901,8 +7003,15 @@ SELECT + 52 * COUNT ( * ) FROM tab1 # Datafusion - Expected - -5025 # Datafusion - Expected - 529 # Datafusion - Expected - -2346 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* tab2\.col2 AS col0" at position 0 and "tab2\.col0 \* \(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 * + col2 AS col0, + col0 * - col1 AS col0 FROM tab2 +---- +-2346 +-4928 +-5025 +1600 +3364 +529 query I rowsort SELECT DISTINCT 16 * - - col0 * + + col2 * - col1 FROM tab0 @@ -7138,8 +7247,15 @@ SELECT CAST ( NULL AS INTEGER ) * col2 * + col0 + col0 AS col1 FROM tab0 cor0 WH # Datafusion - Expected - -3 # Datafusion - Expected - 97 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "CAST\(Int64\(84\) AS Int32\) \+ \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, CAST ( + 84 AS INTEGER ) + - + col0 AS col1 FROM tab0 AS cor0 +---- +-13 +-3 +15 +69 +87 +97 query III rowsort SELECT DISTINCT * FROM tab0 cor0 WHERE col2 / - ( col1 ) IS NULL @@ -7531,8 +7647,11 @@ SELECT DISTINCT MIN ( ALL - - 10 ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 33 AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 +---- +33 +9 query I rowsort SELECT + - ( - 19 ) FROM tab2 AS cor0 @@ -8306,8 +8425,15 @@ SELECT DISTINCT + - ( + col0 ) FROM tab2 WHERE + + col2 IS NULL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, col1 AS col2 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query II rowsort SELECT DISTINCT - col2, - col1 AS col2 FROM tab2 AS cor0 @@ -9638,8 +9764,15 @@ SELECT - 89 + COUNT ( * ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 34 # Datafusion - Expected - 174 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ Int64\(83\) AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + 83 AS col0, 34 AS col0 FROM tab1 AS cor0 +---- +134 +168 +174 +34 +34 +34 query III rowsort SELECT * FROM tab2 AS cor0 WHERE - col2 IS NOT NULL AND NOT NULL IS NULL @@ -9779,8 +9912,15 @@ SELECT + col2 * + col2 - - col1 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -2624 # Datafusion - Expected - -376942 # Datafusion - Expected - -3075 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \- cor0\.col0 \* cor0\.col0 \* cor0\.col1 AS col0" at position 0 and "Int64\(41\) \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 - + + col0 * + col0 * + col1 AS col0, 41 * - + ( + col0 ) AS col0 FROM tab2 AS cor0 +---- +-107967 +-1886 +-2624 +-3075 +-315469 +-376942 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1304 @@ -9789,8 +9929,15 @@ SELECT DISTINCT - col1 - + + col0 * + col0 * + col1 AS col0, 41 * - + ( + col0 ) # Datafusion - Expected - 91 # Datafusion - Expected - -1378 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \* \(\- Int64\(\-44\)\) \+ cor0\.col2 \+ \(\- \(\- cor0\.col2\)\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 34 * - - 44 + col2 + - - col2 AS col2, + col0 AS col2 FROM tab1 AS cor0 +---- +-1304 +-1360 +-1378 +51 +85 +91 query I rowsort label-1611 SELECT ALL + 55 + - COUNT ( * ) * 66 col2 FROM tab2 AS cor0 @@ -9959,8 +10106,15 @@ SELECT 39 + MAX ( - - 21 ) FROM tab0 # Datafusion - Expected - -68 # Datafusion - Expected - NULL # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 + + CAST ( NULL AS INTEGER ) col1, - col2 AS col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +NULL +NULL +NULL query I rowsort SELECT DISTINCT - - 77 AS col2 FROM tab1 cor0 WHERE NOT ( NOT NULL NOT BETWEEN 8 + + col0 AND 5 ) @@ -10116,8 +10270,15 @@ SELECT ALL ( 38 ) + - col0 FROM tab2 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 99 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, + col2 + + - col2 AS col1 FROM tab0 AS cor0 +---- +0 +0 +0 +10 +47 +99 query I rowsort SELECT ALL + col1 + - 6 FROM tab2 @@ -12113,8 +12274,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + COUNT ( * ) col0, - 57 AS col0 FROM tab2 AS cor0 +---- +-3 +-57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 @@ -12183,8 +12347,15 @@ NULL # Datafusion - Expected - 67 # Datafusion - Expected - 228 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab2\.col1\)\) \+ Int64\(\-20\) \- Int64\(\-94\) \+ tab2\.col1 AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - col1 ) + - 20 - - 94 + + col1 AS col0, col1 AS col0 FROM tab2 +---- +176 +208 +228 +51 +67 +77 query I rowsort SELECT - col1 * + - col0 * 92 FROM tab0 @@ -12537,8 +12708,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + - col2 AND NULL # Datafusion - Expected - 15 # Datafusion - Expected - 97 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ cor0\.col1 AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + col1 AS col1, ( + 15 ) AS col1 FROM tab2 AS cor0 +---- +141 +142 +15 +15 +15 +97 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NULL = 77 @@ -12968,8 +13146,15 @@ SELECT DISTINCT - - col0 + + - 58 / + col2 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 +---- +51 +85 +91 +NULL +NULL +NULL query I rowsort SELECT DISTINCT + col1 * col2 + - col1 * + col0 FROM tab0 @@ -13505,8 +13690,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + 32 ) AS col1, COUNT ( * ) + + 68 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 +---- +32 +77 query I rowsort SELECT - col1 - - col0 - + col1 FROM tab0 AS cor0 @@ -13834,8 +14022,15 @@ SELECT ( - MAX ( - + col0 ) ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -18 # Datafusion - Expected - 55 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col1" at position 0 and "cor0\.col2 \+ \(\- Int64\(18\)\) \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 AS col1, + col2 + - ( + 18 ) + - col2 AS col1 FROM tab0 AS cor0 +---- +-18 +-18 +-18 +55 +55 +55 query III rowsort label-2280 SELECT * FROM tab2 cor0 WHERE NOT col0 * - + CAST ( NULL AS INTEGER ) IS NULL @@ -14702,8 +14897,15 @@ SELECT + COUNT ( * ) + - COUNT ( DISTINCT - col1 ) AS col2 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col1, col1 AS col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT - + 99 + + col1 AS col0 FROM tab2 AS cor0 @@ -15032,8 +15234,15 @@ SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT 27 IS NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "CAST\(cor0\.col0 AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0, CAST ( col0 AS INTEGER ) FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> - + col2 + - + col0 - 28 @@ -15431,8 +15640,15 @@ SELECT col1 - - - col0 FROM tab1 AS cor0 # Datafusion - Expected - -6 # Datafusion - Expected - 81 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(\-6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, - 6 col0 FROM tab0 AS cor0 +---- +-6 +-6 +-6 +1 +21 +81 query I rowsort label-2548 SELECT + MAX ( DISTINCT - + CAST ( + col1 AS INTEGER ) ) col0 FROM tab1 AS cor0 @@ -16387,8 +16603,15 @@ SELECT ALL - col0, 84 col0 FROM tab0 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - 3886 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col2 AS Int32\) \* cor0\.col1 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + CAST ( + + col2 AS INTEGER ) * + col1 AS col2, col1 col2 FROM tab2 AS cor0 +---- +1173 +3080 +3886 +51 +67 +77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 @@ -16397,8 +16620,15 @@ SELECT ALL + + CAST ( + + col2 AS INTEGER ) * + col1 AS col2, col1 col2 FROM tab # Datafusion - Expected - 67 # Datafusion - Expected - 37 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 col0, col1 col0 FROM tab2 AS cor0 +---- +37 +37 +37 +51 +67 +77 query III rowsort label-2709 SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( NULL AS FLOAT8 ) * + col1 < NULL @@ -17051,8 +17281,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 77 AS col0, - COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +-3 +77 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT + col1 / - 10 * + ( - col0 ) IS NULL @@ -17229,8 +17462,15 @@ SELECT + 72 FROM tab1 WHERE + col1 NOT IN ( + col2 ) # Datafusion - Expected - 42 # Datafusion - Expected - 81 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, + 42 AS col0 FROM tab0 +---- +1 +21 +42 +42 +42 +81 query I rowsort SELECT DISTINCT + - col0 * col0 - ( - 43 ) + col2 * - col2 FROM tab0 WHERE NOT NULL IS NOT NULL @@ -17488,8 +17728,15 @@ SELECT COUNT ( * ) / - + 9 FROM tab2 cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, + col0 AS col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT - ( 88 ) AS col2 FROM tab0 cor0 @@ -17568,8 +17815,15 @@ SELECT * FROM tab2 WHERE NOT + - 84 = 57 # Datafusion - Expected - -47 # Datafusion - Expected - -97 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \+ \(\- tab0\.col2\) AS col1" at position 0 and "\(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + - col2 AS col1, - col2 AS col1 FROM tab0 +---- +-10 +-196 +-47 +-62 +-97 +-99 query III rowsort SELECT * FROM tab1 WHERE NOT NULL BETWEEN - + col2 AND - + col1 * + col2 @@ -17949,8 +18203,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE ( 27 ) <= col1 # Datafusion - Expected - -85 # Datafusion - Expected - -1 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 1 col1, - col0 AS col1 FROM tab1 AS cor0 +---- +-1 +-1 +-1 +-51 +-85 +-91 query I rowsort label-2966 SELECT 83 * CAST ( NULL AS INTEGER ) / + 58 FROM tab0 cor0 @@ -18147,8 +18408,11 @@ SELECT ALL + MAX ( ALL + - ( - - col2 ) ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +3 +3 query I rowsort SELECT DISTINCT + col1 + 49 col1 FROM tab2 cor0 @@ -18313,8 +18577,15 @@ SELECT DISTINCT col2 AS col0, - 67 * + 9 + + col2 AS col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - -81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, - CAST ( NULL AS INTEGER ) col0 FROM tab0 +---- +-1 +-21 +-81 +NULL +NULL +NULL query I rowsort label-3024 SELECT MIN ( + col0 ) AS col1 FROM tab0 cor0 @@ -18451,8 +18722,15 @@ SELECT col2 * + - ( + col0 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -33 # Datafusion - Expected - -91 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col1, - 33 col1 FROM tab1 cor0 +---- +-33 +-33 +-33 +-51 +-85 +-91 query I rowsort label-3044 SELECT DISTINCT - ( + 21 ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 @@ -18930,7 +19208,7 @@ SELECT ALL + col1 * 29 * + 97 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to b0ac51706f2869cade256d8eb8fde0c6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Schema error: Schema contains qualified field name tab1\.col0 and unqualified field name col0 which would be ambiguous SELECT DISTINCT col1 AS col0, + col2 AS col0, + col0 AS col0 FROM tab1 query II rowsort @@ -20331,8 +20609,15 @@ SELECT ALL + COUNT ( ALL + col1 ) FROM tab1 AS cor0 # Datafusion - Expected - -52 # Datafusion - Expected - 97 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(35\) \+ \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 col2, 35 + - + col0 AS col2 FROM tab0 AS cor0 +---- +-52 +-62 +15 +20 +87 +97 query I rowsort label-3355 SELECT - SUM ( DISTINCT - col1 ) * - MIN ( 47 ) + 47 FROM tab0 AS cor0 @@ -20565,8 +20850,11 @@ SELECT COUNT ( * ) * 87 AS col1 FROM tab2 # 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 col2" at position 0 and "tab1\.col1 \- \(\- \(\- tab1\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 69 AS col2, + col1 - - - col1 AS col2 FROM tab1 +---- +0 +69 query I rowsort SELECT - + col0 * + 35 + - col2 + + col2 AS col0 FROM tab2 AS cor0 @@ -21172,8 +21460,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT 77 + + 96 + - 80 IS NULL # Datafusion - Expected - -47 # Datafusion - Expected - 99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 / col1 AS col2, - col2 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +0 +0 +99 query I rowsort label-3487 SELECT - + SUM ( - ( ( + col0 ) ) ) + - + 24 FROM tab1 AS cor0 @@ -21457,8 +21752,15 @@ SELECT ALL + 6 / + - 55 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -201771 # Datafusion - Expected - -99 # Datafusion - Expected - -5247 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(\-53\) \* cor0\.col2 \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 col1, - 53 * col2 * + col1 col1 FROM tab0 AS cor0 +---- +-10 +-11130 +-201771 +-47 +-5247 +-99 query I rowsort SELECT + - ( col0 ) * + col2 * - col1 AS col0 FROM tab2 AS cor0 @@ -21535,8 +21837,15 @@ SELECT * FROM tab1 AS cor0 WHERE col2 BETWEEN + col1 AND + + col2 * + col2 * - - # Datafusion - Expected - -40 # Datafusion - Expected - -5604 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \+ cor0\.col0 \* \(\- cor0\.col0\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 + col0 * - col0 AS col2, - col2 AS col2 FROM tab2 cor0 +---- +-2095 +-23 +-40 +-4075 +-5604 +-58 query I rowsort SELECT + ( + - 87 ) + - 9 AS col0 FROM tab0 AS cor0 @@ -21819,8 +22128,11 @@ SELECT ALL + col2 AS col0 FROM tab1 WHERE NOT NULL >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -4017 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- cor0\.col2\)\) \* Int64\(18\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(17\) \* CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( - col2 ) * + ( + + 18 ) + - COUNT ( * ) AS col2, + 17 * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2 FROM tab1 cor0 +---- +-4017 +NULL query II rowsort label-3596 SELECT - - SUM ( - col1 ) AS col0, - SUM ( + - col2 ) + 97 FROM tab0 AS cor0 @@ -22047,8 +22359,11 @@ SELECT - CAST ( NULL AS INTEGER ) * - + col0 * + + col0 + - ( - 5 ) * col2 FROM # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - COUNT ( * ) AS col1, COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 +---- +81 +9 query I rowsort SELECT ALL 93 * - 15 FROM tab0 AS cor0 WHERE NULL IS NULL @@ -22973,8 +23288,15 @@ SELECT - col1 * col1 + + 29 AS col0 FROM tab0 # Datafusion - Expected - -4828 # Datafusion - Expected - 81 # Datafusion - Expected - -4189 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 / tab1\.col0 \- \(\- tab1\.col0\) \+ \(\- tab1\.col1\) AS col0" at position 0 and "tab1\.col2 \* \(\- Int64\(71\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 / + col0 - - + col0 + - col1 col0, + col2 * - + 71 AS col0 FROM tab1 +---- +-4189 +-4828 +-6816 +38 +45 +81 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= 55 @@ -23574,8 +23896,15 @@ SELECT col2, - 7 FROM tab1 # Datafusion - Expected - -14 # Datafusion - Expected - -81 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col2" at position 0 and "\(\- tab0\.col0\) \+ \(\- Int64\(\-73\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, - col0 + - ( + - 73 ) AS col2 FROM tab0 +---- +-1 +-14 +-21 +-24 +-81 +58 query II rowsort SELECT ALL - col0 col1, 70 AS col2 FROM tab2 AS cor0 @@ -23690,8 +24019,15 @@ SELECT 65 + + + 92 + + - MIN ( + col2 ) col2 FROM tab0 # Datafusion - Expected - 12 # Datafusion - Expected - 87 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ tab1\.col0 / Int64\(\-21\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 + col0 / - 21 AS col2, + 12 AS col2 FROM tab1 +---- +12 +12 +12 +49 +81 +87 query I rowsort label-3912 SELECT ALL MIN ( ALL col0 ) AS col2 FROM tab0 @@ -23945,8 +24281,15 @@ SELECT DISTINCT - ( - col2 ) * - 5 - - col0 + 93 * + 28 + + + col0 * + col1 AS c # Datafusion - Expected - 60 # Datafusion - Expected - 19 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 19 AS col1, 60 AS col1 FROM tab1 AS cor0 +---- +19 +19 +19 +60 +60 +60 query I rowsort SELECT + - ( - + ( col1 ) ) FROM tab2 AS cor0 @@ -25345,8 +25688,15 @@ SELECT DISTINCT + 33 + - col0 + + - col0 + - col0 + + - 59 AS col0 FROM tab1 # Datafusion - Expected - -15 # Datafusion - Expected - 99 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "\(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, - col0 col1 FROM tab0 +---- +-15 +-87 +-97 +10 +47 +99 query I rowsort label-4191 SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab2 WHERE col2 + + + 19 NOT BETWEEN NULL AND NULL OR + col1 / col1 + - col2 IS NOT NULL @@ -25705,8 +26055,15 @@ SELECT 3 * col0 AS col0 FROM tab2 # Datafusion - Expected - 6 # Datafusion - Expected - -97 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* \(\- tab0\.col1\) AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * - col1 AS col0, + 6 AS col0 FROM tab0 +---- +-1215 +-1827 +-97 +6 +6 +6 query I rowsort label-4252 SELECT ALL - CAST ( NULL AS INTEGER ) * SUM ( ALL + col0 ) FROM tab2 @@ -25848,8 +26205,15 @@ SELECT + 82 AS col2, col2 FROM tab0 AS cor0 # Datafusion - Expected - 98 # Datafusion - Expected - 68 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 68 AS col2, + 98 AS col2 FROM tab1 AS cor0 +---- +68 +68 +68 +98 +98 +98 query II rowsort label-4274 SELECT 87 AS col0, - MIN ( DISTINCT + 17 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 @@ -25947,8 +26311,15 @@ SELECT DISTINCT - ( 91 ) FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - -10 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 AS col0, col1 AS col0 FROM tab0 AS cor0 +---- +-10 +-10 +-10 +1 +21 +81 query I rowsort SELECT DISTINCT + col0 + + - col0 AS col1 FROM tab2 @@ -26166,8 +26537,15 @@ SELECT - COUNT ( * ) - - 28 col2 FROM tab1 cor0 # Datafusion - Expected - 10 # Datafusion - Expected - 0 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- cor0\.col1 \* cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 - col1 * + col0 col1, col2 AS col1 FROM tab0 AS cor0 +---- +-1200 +-1740 +0 +10 +47 +99 query I rowsort SELECT DISTINCT + col1 * - + 98 + 36 - col1 FROM tab1 cor0 @@ -26245,8 +26623,15 @@ SELECT 31 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 64 # Datafusion - Expected - -99 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col2, 64 col2 FROM tab0 +---- +-10 +-47 +-99 +64 +64 +64 query I rowsort label-4338 SELECT DISTINCT + COUNT ( ALL - col2 ) AS col2 FROM tab1 @@ -26281,8 +26666,15 @@ SELECT - col0 + - 76 * 24 AS col0, + 33 * + + col0 FROM tab2 AS cor0 # Datafusion - Expected - 5 # Datafusion - Expected - -72 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \+ \(\- cor0\.col0\) \+ Int64\(\-43\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 + - col0 + - 43 AS col2, col1 AS col2 FROM tab1 cor0 +---- +-32 +-66 +-72 +14 +47 +5 query I rowsort SELECT DISTINCT + - col2 AS col0 FROM tab2 AS cor0 WHERE - col2 + col0 IS NOT NULL @@ -26409,8 +26801,15 @@ SELECT ALL + + col0 AS col0, 42 * 62 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - -53 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 53 AS col2, col1 col2 FROM tab2 AS cor0 +---- +-53 +-53 +-53 +51 +67 +77 query I rowsort SELECT DISTINCT + col0 + - + col2 col2 FROM tab0 AS cor0 WHERE + col1 < NULL @@ -26797,8 +27196,15 @@ SELECT col2 * - + col0 * col0 col1 FROM tab2 # Datafusion - Expected - -21 # Datafusion - Expected - -81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, - col1 AS col1 FROM tab0 +---- +-1 +-1 +-21 +-21 +-81 +-81 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 42 IS NOT NULL @@ -26818,8 +27224,15 @@ SELECT ALL + 89 * + col2 + - 6 + + + col0 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 15 # Datafusion - Expected - 31 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col2 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 + + col2 AS col2, col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL +---- +100 +128 +15 +31 +87 +97 query I rowsort SELECT DISTINCT + 73 * col1 AS col1 FROM tab0 AS cor0 @@ -28513,8 +28926,15 @@ SELECT DISTINCT - - 30 + + - ( + + col2 ) * - col0 FROM tab1 AS cor0 # Datafusion - Expected - -4 # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- cor0\.col2\) AS col0" at position 0 and "Int64\(75\) / \(\- cor0\.col1\) \+ Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 + + - col2 AS col0, 75 / + - col1 + 1 col0 FROM tab1 AS cor0 +---- +-14 +-4 +0 +0 +0 +0 query I rowsort SELECT DISTINCT - col1 + 36 AS col0 FROM tab0 AS cor0 @@ -29063,8 +29483,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 69 col1, - COUNT ( * ) col1 FROM tab2 AS cor0 +---- +-3 +69 query I rowsort SELECT DISTINCT - col2 * + + col1 + - + col1 col0 FROM tab1 @@ -29912,8 +30335,15 @@ SELECT + COUNT ( col0 ), + 25 col2 FROM tab1 # Datafusion - Expected - -64 # Datafusion - Expected - 3886 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* tab2\.col1 AS col0" at position 0 and "CAST\(\(\- tab2\.col0\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * + + col1 AS col0, + CAST ( + - col0 AS INTEGER ) AS col0 FROM tab2 +---- +-46 +-64 +-75 +1173 +3080 +3886 query I rowsort label-4943 SELECT SUM ( DISTINCT - + col0 ) AS col0 FROM tab1 @@ -30026,8 +30456,15 @@ SELECT DISTINCT - col1 AS col1, col1 - + col1 - col0 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - -5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 AS col2, + col0 AS col2 FROM tab1 cor0 +---- +-14 +-47 +-5 +51 +85 +91 query I rowsort SELECT - 75 * col2 + + col2 FROM tab1 @@ -30937,8 +31374,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - SUM ( ALL + col1 ) AS col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +-103 +-3 query I rowsort label-5122 SELECT 4 + - - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL @@ -31440,8 +31880,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = ( - 73 ) # Datafusion - Expected - 87 # Datafusion - Expected - 75 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, 87 AS col1 FROM tab2 AS cor0 +---- +46 +64 +75 +87 +87 +87 query I rowsort label-5200 SELECT DISTINCT + MAX ( + 6 ) + - MAX ( - col2 ) FROM tab1 AS cor0 @@ -32041,8 +32488,15 @@ SELECT DISTINCT - col0 + col1 AS col2, - 0 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 30 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(99\) \* Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 30 AS col0, + CAST ( NULL AS INTEGER ) + + 99 * + 87 col0 FROM tab1 cor0 +---- +30 +30 +30 +NULL +NULL +NULL query I rowsort SELECT - col0 + - 19 * + col2 FROM tab0 AS cor0 @@ -34050,8 +34504,15 @@ SELECT DISTINCT col1 * - 45 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 52360 # Datafusion - Expected - -5025 # Datafusion - Expected - 66062 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \* tab2\.col1 AS col0" at position 0 and "\(\- tab2\.col1\) \* tab2\.col2 \* Int64\(\-17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * col1 AS col0, - col1 * ( ( col2 ) ) * - 17 AS col0 FROM tab2 +---- +-2346 +-4928 +-5025 +19941 +52360 +66062 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2116 @@ -34060,8 +34521,15 @@ SELECT - col0 * col1 AS col0, - col1 * ( ( col2 ) ) * - 17 AS col0 FROM tab2 # Datafusion - Expected - 117 # Datafusion - Expected - 5625 # Datafusion - Expected - 125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col0 AS col1" at position 0 and "cor0\.col2 \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * + col0 AS col1, + col2 + + col1 AS col1 FROM tab2 AS cor0 +---- +117 +125 +2116 +4096 +5625 +74 query II rowsort SELECT - 72 * + - 5 AS col2, + 91 - col1 AS col1 FROM tab0 AS cor0 @@ -34376,8 +34844,15 @@ SELECT ALL + COUNT ( * ) * + COUNT ( * ) * + + 75 - 39 AS col2 FROM tab1 # Datafusion - Expected - 0 # Datafusion - Expected - 53981 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col0\) \* \(\- cor0\.col1\) \- \(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col2 / cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 * - col0 * - col1 - - col2 AS col1, col2 / col1 col1 FROM tab2 cor0 +---- +0 +0 +0 +197160 +291508 +53981 query I rowsort SELECT + 91 * 13 FROM tab0 cor0 @@ -34715,8 +35190,11 @@ SELECT ALL - CAST ( col0 AS INTEGER ) AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "Int64\(31\) \+ Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 64 col1, + 31 + 72 AS col1 FROM tab0 AS cor0 +---- +103 +64 query I rowsort SELECT ALL + ( + + col1 ) + + col1 * 87 AS col2 FROM tab1 cor0 @@ -34758,8 +35236,11 @@ SELECT - 31 * + col2 / + col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 52 -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\(6\) \- Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( + + col0 ) AS col1, 6 - - 46 AS col1 FROM tab0 AS cor0 +---- +52 +97 query I rowsort SELECT 62 * 43 * + + col0 FROM tab0 AS cor0 @@ -35198,8 +35679,15 @@ SELECT 27 / + SUM ( ALL col2 ) * - + 55 * - COUNT ( * ) FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - -96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "CAST\(NULL AS Float64\) \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL - col2 AS col0, CAST ( NULL AS FLOAT8 ) + + col1 AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +NULL +NULL +NULL query I rowsort label-5814 SELECT MAX ( - 49 ) + + ( + 53 ) FROM tab2 @@ -35261,8 +35749,15 @@ SELECT ALL + 97 FROM tab2 WHERE NULL >= + - 28 # Datafusion - Expected - 65 # Datafusion - Expected - 79 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 79 AS col0, 65 col0 FROM tab0 +---- +65 +65 +65 +79 +79 +79 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 @@ -35271,8 +35766,15 @@ SELECT ALL 79 AS col0, 65 col0 FROM tab0 # Datafusion - Expected - -21 # Datafusion - Expected - -81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\)" at position 0 and "\(\- tab0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1, - col1 FROM tab0 +---- +-1 +-1 +-21 +-21 +-81 +-81 query I rowsort label-5826 SELECT ALL COUNT ( * ) * - + 16 * COUNT ( * ) FROM tab1 @@ -35842,8 +36344,15 @@ SELECT - 25 * col0 FROM tab0 WHERE NOT 56 + col1 BETWEEN NULL AND - ( + + 76 ) # Datafusion - Expected - 40 # Datafusion - Expected - 55 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col0" at position 0 and "tab2\.col2 \* tab2\.col2 / tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 col0, + col2 * + col2 / + col2 col0 FROM tab2 +---- +23 +40 +55 +55 +55 +58 query I rowsort SELECT ( 73 ) * - 70 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( + ( 60 ) ) * - col2 AND NULL @@ -36625,8 +37134,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 694 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- min\(Int64\(\-22\)\)\)\) \* Int64\(\-29\) \+ Int64\(56\) AS col0" at position 0 and "Int64\(\-55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - MIN ( - 22 ) * + - 29 + 56 AS col0, - 55 AS col0 FROM tab1 AS cor0 +---- +-55 +694 query I rowsort SELECT ALL ( + - 90 ) AS col0 FROM tab1 AS cor0 @@ -36704,8 +37216,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 29 - + 72 / - 16 AS col1, 86 * + COUNT ( * ) * - 5 - + + 55 * - 89 + + 95 col1 FROM tab0 +---- +33 +3700 query I rowsort SELECT ALL - + 5 * col0 FROM tab0 AS cor0 @@ -36753,8 +37268,15 @@ SELECT DISTINCT 89 AS col2, - col2 / + 99 AS col0 FROM tab2 cor0 # Datafusion - Expected - -64 # Datafusion - Expected - 7 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( 7 ) AS col0, ( - col0 ) AS col0 FROM tab2 cor0 +---- +-46 +-64 +-75 +7 +7 +7 query I rowsort SELECT DISTINCT + col1 + - + 35 AS col1 FROM tab0 AS cor0 @@ -37058,8 +37580,15 @@ SELECT DISTINCT - - 80 / + 33 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 56 # Datafusion - Expected - -99 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - col2 ) AS col1, 56 col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +56 +56 +56 query I rowsort SELECT DISTINCT - ( + col1 ) * col1 + + 95 AS col2 FROM tab2 AS cor0 @@ -37531,8 +38060,15 @@ SELECT DISTINCT col0 * col2 + - 64 AS col0 FROM tab2 AS cor0 WHERE NOT col2 + co # Datafusion - Expected - 153 # Datafusion - Expected - -64 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col0" at position 0 and "cor0\.col2 \+ Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 col0, col2 + + 54 AS col0 FROM tab0 AS cor0 +---- +-64 +-64 +-64 +101 +153 +64 query I rowsort label-6199 SELECT DISTINCT + MIN ( DISTINCT - col0 ) FROM tab0 AS cor0 @@ -38802,8 +39338,15 @@ SELECT - SUM ( 74 ) FROM tab1 cor0 # Datafusion - Expected - 2209 # Datafusion - Expected - 5 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, col1 * + col1 AS col2 FROM tab1 AS cor0 +---- +14 +196 +2209 +25 +47 +5 query III rowsort SELECT ALL * FROM tab0 cor0 WHERE NULL <> + 54 * 56 / + col0 @@ -39265,8 +39808,15 @@ SELECT * FROM tab1 WHERE NOT col2 + + + col1 / col1 IS NOT NULL # Datafusion - Expected - 64 # Datafusion - Expected - 58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, col0 AS col1 FROM tab2 +---- +23 +40 +46 +58 +64 +75 query III rowsort SELECT ALL * FROM tab1 WHERE NOT - col0 * + col2 <= col0 / + 70 + - - 23 * - + col0 @@ -39607,8 +40157,9 @@ SELECT ALL + - col0 * 74 + + + col0 / - - 62 AS col1 FROM tab0 AS cor0 -7177 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 65 col0, 50 AS col0 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL +---- query I rowsort label-6538 SELECT DISTINCT + - MIN ( + col2 ) FROM tab1 AS cor0 @@ -39684,8 +40235,15 @@ SELECT + 79 + + col1 AS col1, 60 FROM tab1 # Datafusion - Expected - -68 # Datafusion - Expected - 26 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 + col0 AS col2, - col2 AS col2 FROM tab1 cor0 +---- +-45 +-59 +-68 +-96 +23 +26 query I rowsort SELECT ALL - 80 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) @@ -40402,8 +40960,15 @@ SELECT DISTINCT - col0 * 82 col2 FROM tab2 # Datafusion - Expected - -5760 # Datafusion - Expected - 82 # Datafusion - Expected - -5760 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "Int64\(72\) \* Int64\(\-80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 AS col2, 72 * - 80 AS col2 FROM tab2 +---- +-5760 +-5760 +-5760 +82 +82 +82 query I rowsort SELECT 48 + 27 * + col1 FROM tab0 cor0 @@ -40664,8 +41229,15 @@ SELECT + - col2 AS col1, - col2 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -136 # Datafusion - Expected - -5 # Datafusion - Expected - -118 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col2\) \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col1, - col2 + + - ( + + col2 ) AS col1 FROM tab1 AS cor0 +---- +-118 +-136 +-14 +-192 +-47 +-5 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 ) <> ( NULL ) @@ -40844,8 +41416,15 @@ SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 2 IS NULL # Datafusion - Expected - 0 # Datafusion - Expected - -77991 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* tab2\.col1 \- Int64\(\-73\) \* tab2\.col2 \* Int64\(\-48\) AS col1" at position 0 and "tab2\.col2 / Int64\(\-99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + + col1 - - 73 * + col2 * - 48 AS col1, col2 / - 99 AS col1 FROM tab2 +---- +-134231 +-198743 +-77991 +0 +0 +0 query III rowsort SELECT * FROM tab2 AS cor0 WHERE 36 <= NULL @@ -41501,8 +42080,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - COUNT ( * ) AS col2, - 81 AS col2 FROM tab0 AS cor0 +---- +-81 +3 query III rowsort SELECT * FROM tab1 AS cor0 WHERE - 73 IS NULL @@ -41843,8 +42425,15 @@ NULL # Datafusion - Expected - 141 # Datafusion - Expected - 2 # Datafusion - Expected - 193 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "Int64\(94\) \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 AS col0, 94 + col2 AS col0 FROM tab0 AS cor0 +---- +104 +141 +193 +2 +2 +2 query III rowsort SELECT * FROM tab1 AS cor0 WHERE 13 IS NULL @@ -42138,8 +42727,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT 86 * 49 + + 91 / - - col2 + col0 IS NUL # Datafusion - Expected - 0 # Datafusion - Expected - 75 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "\(\- cor0\.col0\) \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col0 AS col0, - col0 + col0 AS col0 FROM tab2 AS cor0 +---- +0 +0 +0 +46 +64 +75 query II rowsort label-6954 SELECT ALL col1, + CAST ( + col2 AS INTEGER ) FROM tab1 @@ -42703,8 +43299,15 @@ SELECT - 10, - col1 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - -82 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 82 AS col1, col2 col1 FROM tab0 AS cor0 +---- +-82 +-82 +-82 +10 +47 +99 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT - col1 NOT IN ( - col0, + col2 + - col2 + - col1 ) @@ -43003,8 +43606,15 @@ SELECT + 59 AS col1, - COUNT ( * ) FROM tab0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col1, + col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT DISTINCT - col2 + col1 AS col0 FROM tab2 WHERE + col2 * + col1 <= + + 13 + + col2 @@ -43303,8 +43913,15 @@ SELECT ALL * FROM tab2 WHERE col0 + + + col1 IS NULL # Datafusion - Expected - -130 # Datafusion - Expected - 159 # Datafusion - Expected - -112 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \+ Int64\(82\) AS col0" at position 0 and "Int64\(\-72\) \+ \(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 + 82 AS col0, - 72 + + - col2 col0 FROM tab2 +---- +-112 +-130 +-95 +133 +149 +159 query II rowsort label-7140 SELECT + CAST ( - ( - COUNT ( * ) ) AS INTEGER ) AS col1, - COUNT ( + col0 ) col2 FROM tab0 @@ -43373,8 +43990,15 @@ SELECT ALL col2 / 24 AS col1 FROM tab1 AS cor0 WHERE NULL <> NULL # Datafusion - Expected - 4422 # Datafusion - Expected - 379456 # Datafusion - Expected - 5852 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- cor0\.col1\) \* cor0\.col1 AS col2" at position 0 and "cor0\.col1 \* cor0\.col1 \+ \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 * - + col1 * col1 AS col2, col1 * col1 + - col1 AS col2 FROM tab2 cor0 +---- +119646 +2550 +336675 +379456 +4422 +5852 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT + 58 * + col0 * - ( + - 93 ) IS NULL @@ -44776,8 +45400,15 @@ SELECT ALL - 20 - - 10 AS col0, COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Expected - -2209 # Datafusion - Expected - -64 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \- Int64\(84\) AS col2" at position 0 and "cor0\.col1 \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 20 - + 84 AS col2, col1 * - col1 AS col2 FROM tab1 cor0 +---- +-196 +-2209 +-25 +-64 +-64 +-64 query I rowsort SELECT 40 - + col2 AS col2 FROM tab1 @@ -44977,8 +45608,15 @@ SELECT + CAST ( - ( - + 95 ) AS INTEGER ) AS col2 FROM tab2 # Datafusion - Expected - 5 # Datafusion - Expected - -91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, + col1 AS col2 FROM tab1 +---- +-51 +-85 +-91 +14 +47 +5 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= + col1 * - 26 @@ -45044,8 +45682,15 @@ SELECT ALL + ( - + MIN ( ALL - col1 ) ) AS col0 FROM tab1 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + + col0 ), col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-7426 SELECT - 59 * + 6 + col1 / - ( + 60 ) AS col2 FROM tab1 AS cor0 @@ -45649,8 +46294,10 @@ SELECT ALL COUNT ( ALL - + col2 ) AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 6c73ab94e281272b0b310505605e4d23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col2 / \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col1 AS col2, col2 / + - col1 AS col2, + + col0 FROM tab0 AS cor0 +---- +9 values hashing to 18dacef921507ef27948d8ad7dcbee9b query I rowsort label-7524 SELECT ALL - 96 + + + COUNT ( * ) FROM tab2 AS cor0 @@ -45719,8 +46366,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col2, col1 * + col0 * + 42 * - 95, 45 * 74 / - col2 ) +---- +0 +0 query I rowsort SELECT DISTINCT + col0 * col2 AS col1 FROM tab2 AS cor0 WHERE NOT 95 + 13 IS NOT NULL @@ -45773,8 +46423,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) IS NULL OR NULL IS NULL # Datafusion - Expected - 25 # Datafusion - Expected - -93 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col1" at position 0 and "Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 93 AS col1, + 25 AS col1 FROM tab0 +---- +-93 +-93 +-93 +25 +25 +25 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -46817,8 +47474,10 @@ SELECT + col0 * + - 32 + - col2 + - - 97 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 8fc17c0a8b75ada8498288668171a4b1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col1 AS col0, - col1 AS col0, + - CAST ( - - 61 AS INTEGER ) + + - 0 * + - col2 FROM tab0 +---- +9 values hashing to 17f5cacba7672ada966dc8d58c2d5b5a query III rowsort SELECT ALL * FROM tab1 WHERE NULL NOT IN ( col1, + ( + - 41 ) * + 91 ) @@ -46860,8 +47519,15 @@ NULL # Datafusion - Expected - -96 # Datafusion - Expected - -77 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "\(\- tab2\.col2\) \+ tab2\.col1 \+ Int64\(\-30\) \- tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, + ( - col2 ) + + ( col1 ) + + - 30 - col0 AS col1 FROM tab2 +---- +-48 +-51 +-57 +-67 +-77 +-96 query II rowsort SELECT + col0 AS col1, - 1 FROM tab0 AS cor0 @@ -46906,8 +47572,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- Int64\(36\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - + COUNT ( * ) ) col0, + ( + - ( ( + + 36 ) ) ) AS col0 FROM tab2 AS cor0 +---- +-3 +-36 query III rowsort SELECT * FROM tab0 cor0 WHERE ( col2 * col2 ) IS NOT NULL @@ -47499,8 +48168,15 @@ NULL # Datafusion - Expected - -79 # Datafusion - Expected - -891068 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(68\)\) \- \(\- cor0\.col0\) \* Int64\(\-33\) \* Int64\(25\) \* Int64\(72\) AS col0" at position 0 and "Int64\(\-79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 68 - - col0 * ( - 33 ) * 25 * 72 AS col0, - 79 AS col0 FROM tab0 AS cor0 +---- +-5167868 +-5761868 +-79 +-79 +-79 +-891068 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -47749,8 +48425,15 @@ SELECT DISTINCT - COUNT ( * ) + + - 64 AS col0 FROM tab0 AS cor0 WHERE + col0 IS # Datafusion - Expected - -1 # Datafusion - Expected - 99 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 / \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, col2 / + - col2 AS col1 FROM tab0 AS cor0 +---- +-1 +-1 +-1 +10 +47 +99 query I rowsort SELECT DISTINCT + col2 + 4 + + col0 FROM tab2 cor0 @@ -48696,8 +49379,11 @@ SELECT + col1 / 89 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, 4 AS col1 FROM tab2 +---- +3 +4 query II rowsort SELECT DISTINCT col2, - col0 AS col1 FROM tab0 @@ -48930,8 +49616,15 @@ SELECT ALL ( + - col0 ) + - col1 * + + col2 col0 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 31 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \- Int64\(\-14\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* \(\- tab1\.col2\) \+ \(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 17 - - 14 AS col1, - ( + + CAST ( NULL AS INTEGER ) ) * - col2 + - + col1 AS col1 FROM tab1 +---- +31 +31 +31 +NULL +NULL +NULL query III rowsort SELECT * FROM tab2 WHERE + col2 * - col2 IS NULL @@ -50330,8 +51023,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * - + ( - 17 ) AS col1, - 99 col1 FROM tab1 +---- +-51 +-99 query III rowsort SELECT * FROM tab0 WHERE + ( + ( + col1 ) ) NOT BETWEEN ( NULL ) AND 29 / + + 51 * - + col0 @@ -50739,8 +51435,9 @@ SELECT COUNT ( * ) * + CAST ( + + ( - 78 ) AS INTEGER ) FROM tab2 AS cor0 WHERE -234 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col0" at position 0 and "Int64\(35\) \* tab2\.col2 \* tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, + 35 * col2 * + col2 AS col0 FROM tab2 WHERE NULL > 37 +---- query III rowsort SELECT * FROM tab0 WHERE + col2 * 73 IS NULL @@ -51177,8 +51874,15 @@ SELECT DISTINCT - + col2 AS col2, col2 FROM tab0 AS cor0 # Datafusion - Expected - -77 # Datafusion - Expected - -75 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col0 AS col0, - col1 AS col0 FROM tab2 cor0 +---- +-46 +-51 +-64 +-67 +-75 +-77 query I rowsort SELECT - col1 * 55 + - - col0 FROM tab1 AS cor0 @@ -51401,8 +52105,15 @@ SELECT col1 * - 95 * + col2 AS col0 FROM tab1 # Datafusion - Expected - 99 # Datafusion - Expected - 59438 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \- cor0\.col2 \* cor0\.col2 \* Int64\(75\) \+ \(\- cor0\.col1\) \+ \(\- cor0\.col1\) \+ \(\- cor0\.col2\) \* Int64\(77\) \* \(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 - ( col2 ) * + col2 * + 75 + - col1 + + - col1 + - col2 * 77 * - + col0 col0, col2 col0 FROM tab0 AS cor0 +---- +-111599 +10 +4255 +47 +59438 +99 query I rowsort SELECT - + col2 - 63 col1 FROM tab1 AS cor0 @@ -51454,8 +52165,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 68 AND 21 * - + c # Datafusion - Expected - -4277 # Datafusion - Expected - -64 # Datafusion - Expected - -714 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col1" at position 0 and "cor0\.col0 \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 64 AS col1, + col0 * - col1 AS col1 FROM tab1 AS cor0 +---- +-425 +-4277 +-64 +-64 +-64 +-714 query I rowsort label-8478 SELECT COUNT ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 @@ -51719,8 +52437,15 @@ SELECT ALL - ( - - col1 ) col1, - 56 AS col2 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT CAST ( NULL AS FLOAT8 ) AS col0, col1 AS col0 FROM tab1 +---- +14 +47 +5 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 83 + 30 IS NULL @@ -51767,8 +52492,15 @@ NULL # Datafusion - Expected - 50 # Datafusion - Expected - 3234 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* cor0\.col1 AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 42 * + col1 AS col2, 50 AS col2 FROM tab2 AS cor0 +---- +2142 +2814 +3234 +50 +50 +50 query I rowsort SELECT 75 FROM tab2 AS cor0 WHERE NULL IS NULL @@ -52198,8 +52930,11 @@ SELECT - col0 + + col1 / + col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 51 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +3 +51 query I rowsort label-8596 SELECT - - MIN ( ALL col0 ) AS col1 FROM tab1 AS cor0 @@ -52568,8 +53303,15 @@ SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <> + 49 # Datafusion - Expected - 19 # Datafusion - Expected - -81 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 AS col2, 19 AS col2 FROM tab0 AS cor0 +---- +-81 +-81 +-81 +19 +19 +19 query II rowsort SELECT 53, 33 * - - ( + - col0 ) AS col2 FROM tab1 AS cor0 WHERE NULL >= ( NULL ) @@ -53328,8 +54070,15 @@ SELECT - 15 * - CAST ( - col1 AS INTEGER ) FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - -26979 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \* \(\- tab2\.col2\) \* \(\- tab2\.col1\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 * - col2 * - col1 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 +---- +-123200 +-225388 +-26979 +NULL +NULL +NULL query I rowsort label-8779 SELECT DISTINCT - ( + + ( - - 46 ) ) / - COUNT ( * ) AS col2 FROM tab2 @@ -53550,8 +54299,15 @@ SELECT - col0, + 67 AS col1 FROM tab2 # Datafusion - Expected - 12 # Datafusion - Expected - -97 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, + 12 AS col2 FROM tab0 +---- +-15 +-87 +-97 +12 +12 +12 query II rowsort label-8813 SELECT COUNT ( * ) AS col2, 76 + + COUNT ( * ) FROM tab2 @@ -53646,8 +54402,15 @@ SELECT ALL - ( - col1 ) AS col0 FROM tab0 # Datafusion - Expected - 95 # Datafusion - Expected - 77 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, + 95 AS col0 FROM tab2 +---- +51 +67 +77 +95 +95 +95 query I rowsort SELECT DISTINCT - + 7 * - col2 AS col1 FROM tab0 cor0 @@ -54035,8 +54798,15 @@ SELECT 10 AS col1, - COUNT ( * ) FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - 58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, + col0 AS col1 FROM tab2 +---- +23 +40 +46 +58 +64 +75 query III rowsort SELECT ALL * FROM tab2 WHERE + 62 IS NOT NULL @@ -54605,8 +55375,11 @@ SELECT + 95 / col1 * - + col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) 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 II valuesort SELECT ALL + 99 AS col2, - MIN ( - col0 ) AS col2 FROM tab1 AS cor0 +---- +91 +99 query I rowsort SELECT ALL + ( + 40 ) AS col1 FROM tab1 @@ -56154,8 +56927,15 @@ SELECT DISTINCT - 34 AS col1 FROM tab1 AS cor0 WHERE NOT + 14 * - 87 IS NOT NULL # Datafusion - Expected - 91 # Datafusion - Expected - -5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, col0 AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +51 +85 +91 query I rowsort label-9239 SELECT ALL CAST ( + 1 AS INTEGER ) FROM tab0 AS cor0 @@ -56181,8 +56961,15 @@ SELECT DISTINCT COUNT ( - + col2 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -159 # Datafusion - Expected - -93 # Datafusion - Expected - -147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ \(\- Int64\(\-3\)\) AS col2" at position 0 and "\(\- cor0\.col0\) \+ \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 + - - 3 col2, - col0 + - col2 AS col2 FROM tab1 AS cor0 +---- +-144 +-147 +-159 +-56 +-65 +-93 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <> - 53 * - 96 + + + col1 @@ -57125,8 +57912,15 @@ SELECT + col2 - + - 16 FROM tab1 AS cor0 # Datafusion - Expected - 82 # Datafusion - Expected - 18 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 18 AS col0, 82 col0 FROM tab2 +---- +18 +18 +18 +82 +82 +82 query III rowsort SELECT ALL * FROM tab1 WHERE NOT - col0 * col1 * - + col1 + - col0 IS NOT NULL @@ -57279,8 +58073,15 @@ SELECT - 58 + + - col1 + + - col1 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 75 # Datafusion - Expected - 91 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col2, 75 AS col2 FROM tab1 AS cor0 +---- +51 +75 +75 +75 +85 +91 query II rowsort SELECT ALL - - col2 + + + ( 98 ), + col1 * + 10 AS col2 FROM tab2 AS cor0 @@ -58303,8 +59104,15 @@ SELECT ALL - 27 * 26 FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - 53 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 53 AS col0, col2 col0 FROM tab2 +---- +23 +40 +53 +53 +53 +58 query I rowsort SELECT ALL - + ( - 1 ) AS col1 FROM tab0 AS cor0 @@ -58390,8 +59198,15 @@ SELECT DISTINCT 58 AS col2 FROM tab2 AS cor0 WHERE 1 * - col0 - + + 1 IS NULL # Datafusion - Expected - 91 # Datafusion - Expected - -714 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* \(\- tab1\.col0\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 * - + col0 AS col2, ( + col0 ) col2 FROM tab1 +---- +-425 +-4277 +-714 +51 +85 +91 query III rowsort SELECT col1 + - 56 AS col1, col0 AS col0, - col0 * + col1 FROM tab1 @@ -58721,8 +59536,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, 80 AS col1 FROM tab0 +---- +-3 +80 query I rowsort SELECT + col2 * - + 79 FROM tab2 diff --git a/data/sqlite/random/aggregates/slt_good_127.slt b/data/sqlite/random/aggregates/slt_good_127.slt index 6f47960..b895458 100644 --- a/data/sqlite/random/aggregates/slt_good_127.slt +++ b/data/sqlite/random/aggregates/slt_good_127.slt @@ -517,8 +517,10 @@ SELECT + 57 AS col0, col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 15da073867ef4ca9cc0544f62c2c80c1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col0\) / \(\- cor0\.col1\) \+ \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col1 AS col2, - col0 / - col1 + - col0 AS col2, - - 39 * 84 + col1 + + col1 * + 30 AS col0 FROM tab0 AS cor0 +---- +9 values hashing to f4a9ea686dc018829dead38a5e42abd4 query II rowsort SELECT + + col1 AS col1, ( 17 ) + + + 95 FROM tab2 cor0 @@ -1343,8 +1345,15 @@ SELECT + 12 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 6161 # Datafusion - Expected - 96 # Datafusion - Expected - 4869 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "tab1\.col2 \* tab1\.col0 \+ Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, col2 * + col0 + - 27 AS col0 FROM tab1 +---- +4869 +4988 +59 +6161 +68 +96 query I rowsort label-214 SELECT DISTINCT - 9 * - - ( + - 52 ) + MAX ( ALL - col1 ) AS col2 FROM tab2 AS cor0 @@ -1551,8 +1560,9 @@ SELECT - CAST ( + 42 AS INTEGER ) col2 FROM tab1 -42 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "\(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, - col0 AS col1 FROM tab0 WHERE NOT - col1 IS NOT NULL +---- query I rowsort SELECT ( - - 93 ) AS col1 FROM tab2 @@ -1583,8 +1593,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - SUM ( - col2 ) AS col0, + COUNT ( * ) * - 17 AS col0 FROM tab1 AS cor0 +---- +-51 +223 query I rowsort SELECT ALL - col1 AS col1 FROM tab0 WHERE NOT NULL <= col1 @@ -2010,8 +2023,15 @@ SELECT 94 FROM tab1 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - 69 # Datafusion - Expected - 81 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 AS col0, + 69 AS col0 FROM tab0 AS cor0 +---- +1 +21 +69 +69 +69 +81 query I rowsort label-318 SELECT ALL MIN ( ALL - col1 ) * CAST ( + 8 AS INTEGER ) AS col1 FROM tab0 @@ -2189,8 +2209,15 @@ SELECT + + COUNT ( + ( + ( + col1 ) ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) = c # Datafusion - Expected - 0 # Datafusion - Expected - 58 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "tab2\.col0 / tab2\.col0 / Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, col0 / col0 / + + 55 AS col0 FROM tab2 +---- +0 +0 +0 +23 +40 +58 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN + ( 80 ) AND col0 @@ -4166,8 +4193,15 @@ SELECT 61 + - COUNT ( * ) AS col2 FROM tab1 # Datafusion - Expected - 70 # Datafusion - Expected - -14 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col1" at position 0 and "Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 14 AS col1, 70 AS col1 FROM tab1 AS cor0 +---- +-14 +-14 +-14 +70 +70 +70 query I rowsort label-678 SELECT ALL 35 + - CAST ( ( - + 74 ) AS INTEGER ) + + col0 * + 5 col0 FROM tab0 AS cor0 @@ -4733,8 +4767,15 @@ SELECT DISTINCT - 10 - COUNT ( * ) FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - -99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col0 \+ cor0\.col2 \+ cor0\.col0 \+ Int64\(\-72\) \+ Int64\(\-43\) \* cor0\.col2 \* Int64\(81\) \- CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + ( + - col2 ) AS col0, col0 + + col2 + + col0 + - 72 + + - 43 * col2 * + 81 - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 +---- +-10 +-47 +-99 +NULL +NULL +NULL query III rowsort SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN + 60 + - col0 AND + - col1 * + col2 + + - col1 - + - 53 + - + col0 @@ -5726,8 +5767,11 @@ SELECT DISTINCT * FROM tab1 WHERE NOT ( - ( - - col2 ) * - 80 ) NOT IN ( col2 + # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 47 AS col0, + CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col0 FROM tab0 +---- +47 +NULL query I rowsort label-929 SELECT col2 / + ( col0 ) + + col2 + - - col1 / 32 + - ( col1 + 82 ) FROM tab0 AS cor0 @@ -6125,8 +6169,15 @@ SELECT DISTINCT * FROM tab2 WHERE col0 * - col1 IS NULL # Datafusion - Expected - 4 # Datafusion - Expected - -81 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col1" at position 0 and "Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col1, 4 AS col1 FROM tab0 +---- +-1 +-21 +-81 +4 +4 +4 query I rowsort label-996 SELECT col0 AS col2 FROM tab2 WHERE NOT col1 / col0 IN ( + CAST ( - col2 AS INTEGER ) * - - 50 + - ( - 40 ) + - col0 - col1 / col2 - - + col0 ) @@ -7105,8 +7156,15 @@ SELECT - 61 AS col2, - col2 FROM tab2 cor0 # Datafusion - Expected - -4 # Datafusion - Expected - -97 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(17\) \- cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col0 col2, + 17 - col1 col2 FROM tab0 cor0 +---- +-15 +-4 +-64 +-87 +-97 +16 query II rowsort label-1148 SELECT + col0 col2, col2 / + - 88 FROM tab2 AS cor0 @@ -7449,8 +7507,15 @@ SELECT 55 + + - 78 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - -10 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) / Int64\(18\) \* Int64\(2\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 91 / 18 * + 2 AS col0, col2 AS col0 FROM tab1 +---- +-10 +-10 +-10 +59 +68 +96 query I rowsort label-1206 SELECT COUNT ( DISTINCT ( - col1 ) ) + - + COUNT ( * ) col0 FROM tab1 @@ -7543,8 +7608,15 @@ SELECT DISTINCT + 27 col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - -5950 # Datafusion - Expected - -91 # Datafusion - Expected - -59878 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(14\) \* \(\- cor0\.col0\) \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, 14 * + - col0 * col1 AS col2 FROM tab1 cor0 +---- +-51 +-5950 +-59878 +-85 +-91 +-9996 query II rowsort SELECT + - col0 + + 79 + + - col2, + col1 col2 FROM tab0 AS cor0 WHERE NOT - 25 < col0 / col0 @@ -7985,8 +8057,15 @@ SELECT col1 * ( - 8 ) * + ( 79 ) FROM tab1 # Datafusion - Expected - -67 # Datafusion - Expected - -77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col2" at position 0 and "\(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, - col1 AS col2 FROM tab2 +---- +-51 +-51 +-67 +-67 +-77 +-77 query II rowsort SELECT DISTINCT col2 AS col1, - col1 col2 FROM tab2 @@ -8005,8 +8084,15 @@ SELECT DISTINCT col2 AS col1, - col1 col2 FROM tab2 # Datafusion - Expected - 0 # Datafusion - Expected - -4425 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* \(\- tab2\.col0\) \- tab2\.col0 AS col2" at position 0 and "tab2\.col2 / \(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 * - col0 - + col0 AS col2, col2 / - col0 AS col2 FROM tab2 +---- +-1104 +-2624 +-4425 +0 +0 +0 query II rowsort label-1291 SELECT DISTINCT COUNT ( * ) * + + ( - - COUNT ( * ) ) AS col2, COUNT ( * ) AS col0 FROM tab1 @@ -8926,8 +9012,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 96 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, col1 AS col0 FROM tab1 AS cor0 +---- +14 +47 +5 +59 +68 +96 query I rowsort SELECT DISTINCT ( - ( col2 ) ) * + + 22 FROM tab1 AS cor0 @@ -9085,8 +9178,15 @@ SELECT * FROM tab2 WHERE NULL < + col2 + + col0 # Datafusion - Expected - -47 # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col2" at position 0 and "\(\- \(\- \(\- CAST\(tab0\.col2 AS Int32\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT CAST ( NULL AS FLOAT8 ) AS col2, - ( - - CAST ( + + col2 AS INTEGER ) ) AS col2 FROM tab0 +---- +-10 +-47 +-99 +NULL +NULL +NULL query I rowsort label-1472 SELECT ALL + COUNT ( ALL 62 ) AS col0 FROM tab0 @@ -9206,8 +9306,15 @@ SELECT DISTINCT - MAX ( + CAST ( + + 75 AS INTEGER ) ) * + 89 AS col2 FROM tab0 # Datafusion - Expected - 205 # Datafusion - Expected - -49 # Datafusion - Expected - 574 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col1" at position 0 and "Int64\(41\) \* tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 49 AS col1, 41 * + col1 col1 FROM tab1 +---- +-49 +-49 +-49 +1927 +205 +574 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 @@ -9216,8 +9323,15 @@ SELECT - 49 AS col1, 41 * + col1 col1 FROM tab1 # Datafusion - Expected - -85 # Datafusion - Expected - 65 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col2" at position 0 and "\(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 65 AS col2, - col0 AS col2 FROM tab1 +---- +-51 +-85 +-91 +65 +65 +65 query I rowsort SELECT ALL col0 * + col2 * - - col2 * - + 88 FROM tab0 @@ -9786,8 +9900,15 @@ SELECT col2, 45 + col1 FROM tab0 # Datafusion - Expected - 46 # Datafusion - Expected - NULL # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) col1, + 46 AS col1 FROM tab2 +---- +46 +46 +46 +NULL +NULL +NULL query I rowsort label-1584 SELECT DISTINCT 26 - - COUNT ( * ) AS col0 FROM tab0 @@ -11510,8 +11631,15 @@ SELECT - 30 * - col0 AS col2 FROM tab1 # Datafusion - Expected - 75 # Datafusion - Expected - -2784 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* Int64\(\-48\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * - 48 AS col2, ( + 75 ) col2 FROM tab2 +---- +-1104 +-1920 +-2784 +75 +75 +75 query I rowsort label-1863 SELECT + 96 * + - CAST ( - col0 AS INTEGER ) / - - CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 @@ -12189,8 +12317,9 @@ SELECT 54 * + - 89 + 82 AS col1 FROM tab0 AS cor0 -4724 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "CAST\(NULL AS Int32\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 col1, CAST ( NULL AS INTEGER ) * col0 col1 FROM tab2 AS cor0 WHERE NOT - col1 * + col0 IS NOT NULL +---- query II rowsort SELECT + col2 * 10, col0 AS col1 FROM tab1 AS cor0 @@ -12365,8 +12494,11 @@ SELECT ALL + COUNT ( * ) * 45 * + + 91 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 +---- +9 +9 query II rowsort SELECT + col1, + col0 * + - 35 + - col0 AS col0 FROM tab0 @@ -12492,8 +12624,15 @@ SELECT DISTINCT - 89 / - + 52 + ( - 81 ) FROM tab1 AS cor0 # Datafusion - Expected - -14 # Datafusion - Expected - 61 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ Int64\(14\) AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 + + 14 AS col1, ( - col1 ) AS col1 FROM tab1 +---- +-14 +-47 +-5 +19 +28 +61 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( col0 + - 67 ) @@ -12704,8 +12843,12 @@ SELECT ALL 14 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) # Datafusion - Expected - -103 # Datafusion - Expected - -3 # Datafusion - Expected - 80 -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\(\-79\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - SUM ( + col1 ) AS col0, - COUNT ( - 79 ) AS col0, 80 col0 FROM tab0 AS cor0 +---- +-103 +-3 +80 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE + col2 * + col2 IS NULL @@ -13379,8 +13522,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 11 + - SUM ( + 67 ) + 75 col0, + COUNT ( * ) * + - 69 AS col0 FROM tab1 +---- +-115 +-207 query I rowsort label-2163 SELECT DISTINCT + 5 / + 40 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 @@ -13421,8 +13567,15 @@ NULL # Datafusion - Expected - 81 # Datafusion - Expected - 98 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \+ tab0\.col1 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 + + col1 AS col0, + col1 AS col0 FROM tab0 +---- +1 +108 +21 +81 +96 +98 query I rowsort label-2169 SELECT DISTINCT - + ( COUNT ( * ) ) + + - COUNT ( * ) / CAST ( + + AVG ( DISTINCT - col0 ) AS INTEGER ) AS col0 FROM tab0 AS cor0 @@ -14003,8 +14156,15 @@ SELECT - CAST ( + - 23 AS INTEGER ) * + + ( - col2 ) - + 1 FROM tab0 AS cor0 # Datafusion - Expected - -6885 # Datafusion - Expected - 91 # Datafusion - Expected - -7371 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 \* Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, col0 * - 81 col2 FROM tab1 AS cor0 +---- +-4131 +-6885 +-7371 +51 +85 +91 query III rowsort label-2271 SELECT * FROM tab0 AS cor0 WHERE - + CAST ( + 84 AS INTEGER ) - - 39 IS NOT NULL OR NOT NULL IN ( - 61 ) @@ -14151,8 +14311,11 @@ SELECT DISTINCT - COUNT ( * ) * - 8 FROM tab0 WHERE NOT NULL = ( - col2 * + - co # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 434 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col2" at position 0 and "CAST\(Int64\(40\) AS Int32\) \* \(\- max\(CAST\(\(\- tab0\.col2\) AS Int32\)\)\) \+ Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 53 col2, CAST ( + 40 AS INTEGER ) * - MAX ( + CAST ( - col2 AS INTEGER ) ) + 34 col2 FROM tab0 +---- +-53 +434 query I rowsort label-2298 SELECT - - MAX ( - col2 ) * + + 19 + + MAX ( ALL + 40 ) + - 43 FROM tab0 AS cor0 @@ -14555,8 +14718,9 @@ SELECT 1 + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL 78 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ Int64\(\-39\) AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + - 39 col0, - col2 AS col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL +---- query III rowsort SELECT * FROM tab1 WHERE NOT + - 97 * + 32 + 2 + - + 94 IS NULL @@ -14844,8 +15008,9 @@ SELECT - + col0 + col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL 45 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col1, + col1 FROM tab1 AS cor0 WHERE NOT - col0 * + col2 IS NOT NULL +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -16489,8 +16654,11 @@ SELECT DISTINCT + + 1 * 80 FROM tab2 WHERE ( + - col1 ) + + col1 BETWEEN NULL AN # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 80 AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 25 IS NOT NULL +---- +0 +80 query I rowsort SELECT + 11 + - col0 * + col1 AS col2 FROM tab2 AS cor0 @@ -17338,8 +17506,15 @@ SELECT + 27, col0 FROM tab0 cor0 # Datafusion - Expected - 77 # Datafusion - Expected - 58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "CAST\(cor0\.col1 AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, CAST ( + + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 +---- +23 +40 +51 +58 +67 +77 query II rowsort label-2821 SELECT - 83, - col0 + col1 - - 55 * col0 * - CAST ( - col2 AS INTEGER ) col0 FROM tab0 AS cor0 @@ -17368,8 +17543,11 @@ SELECT ALL - + 43 * 68 + + 59 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5175 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* \(\- max\(DISTINCT Int64\(69\)\)\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 * - MAX ( DISTINCT + 69 ) AS col1, 7 AS col1 FROM tab0 AS cor0 +---- +-5175 +7 query II rowsort SELECT ALL + 57 * - col2 + + 62, col0 AS col1 FROM tab2 AS cor0 @@ -18251,8 +18429,15 @@ SELECT DISTINCT + col2 - + 82 AS col2 FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - -66 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) \+ tab2\.col0 / tab2\.col2 AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 67 + + col0 / + + col2 AS col1, col0 AS col1 FROM tab2 +---- +-65 +-66 +-66 +46 +64 +75 query I rowsort SELECT DISTINCT 68 - + ( + 79 ) FROM tab1 @@ -18952,8 +19137,11 @@ SELECT + - ( + 49 ) AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-80\) AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( - 80 AS INTEGER ) AS col1, COUNT ( * ) * + + 74 col1 FROM tab2 WHERE NOT NULL <= - col1 +---- +0 +80 query II rowsort SELECT DISTINCT + col1 / + + 27 + + 45 * 72 + + col1 AS col0, - col2 * - - col1 FROM tab1 WHERE NULL <= col1 * col1 * + - col2 + + 56 @@ -19225,8 +19413,15 @@ SELECT ALL col0 + + 9 * + col1 AS col1 FROM tab1 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - -49 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 49 AS col2, + col1 AS col2 FROM tab1 cor0 +---- +-49 +-49 +-49 +14 +47 +5 query I rowsort label-3127 SELECT 10 - COUNT ( * ) FROM tab1 WHERE 19 - col0 IN ( col0 / - col2 + - 25 ) @@ -19789,8 +19984,15 @@ SELECT + 86 * - col2 FROM tab0 # Datafusion - Expected - 141 # Datafusion - Expected - 58 # Datafusion - Expected - 142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "Int64\(\-53\) / Int64\(71\) \+ tab2\.col0 \+ tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, - 53 / + 71 + + + col0 + col1 col1 FROM tab2 +---- +141 +142 +23 +40 +58 +97 query III rowsort SELECT DISTINCT * FROM tab2 WHERE + 16 IS NULL @@ -20635,8 +20837,15 @@ SELECT + 73 + col0 - - 71 + - + col1 * 7 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, col0 AS col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-3360 SELECT ALL - CAST ( - 83 AS INTEGER ) * 80 * + + COUNT ( * ) + - - 31 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 @@ -21172,8 +21381,15 @@ SELECT + + col0 / 16 + + col2 * + + col2 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 218 # Datafusion - Expected - 4633 # Datafusion - Expected - 209 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ Int64\(\-61\) \* \(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col0 \- \(\- cor0\.col1\) \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + - 61 * - col0 AS col0, + col0 - - + col1 + col1 AS col0 FROM tab2 AS cor0 +---- +148 +209 +218 +2829 +3944 +4633 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 @@ -22660,8 +22876,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab1 +---- +-3 +-3 query II rowsort label-3691 SELECT - COUNT ( * ) AS col1, COUNT ( * ) FROM tab0 @@ -24199,8 +24418,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT + col1 <> NULL # Datafusion - Expected - 0 # Datafusion - Expected - 97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col2 / tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 col2, col2 / col0 AS col2 FROM tab0 +---- +0 +1 +15 +3 +87 +97 query I rowsort label-3936 SELECT DISTINCT - MAX ( ALL - + 28 ) FROM tab1 @@ -24239,8 +24465,15 @@ SELECT ALL + col1 / - ( + col1 ) col2 FROM tab0 # Datafusion - Expected - 237200 # Datafusion - Expected - 75 # Datafusion - Expected - 260420 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col2 \* tab2\.col1 \* tab2\.col1 \+ tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col1, col2 * col1 * + + col1 + col2 AS col1 FROM tab2 +---- +237200 +260420 +46 +59846 +64 +75 query I rowsort SELECT ALL + + col2 AS col0 FROM tab2 AS cor0 WHERE NOT - 75 - + 56 IS NOT NULL @@ -24419,8 +24652,15 @@ SELECT COUNT ( * ) * - + COUNT ( * ) AS col2, + COUNT ( * ) AS col0 FROM tab0 AS # Datafusion - Expected - 40 # Datafusion - Expected - 75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 AS col1, col2 col1 FROM tab2 AS cor0 +---- +23 +40 +46 +58 +64 +75 query I rowsort label-3971 SELECT - 95 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 @@ -24437,8 +24677,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + COUNT ( * ) AS col2, 8 AS col2 FROM tab1 AS cor0 +---- +-3 +8 query I rowsort SELECT DISTINCT col1 + col0 AS col2 FROM tab1 cor0 WHERE NULL = NULL @@ -24805,8 +25048,15 @@ NULL # Datafusion - Expected - -47 # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) AS col1" at position 0 and "\(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT - CAST ( NULL AS FLOAT8 ) AS col1, - col2 AS col1 FROM tab0 +---- +-10 +-47 +-99 +NULL +NULL +NULL query II rowsort SELECT DISTINCT col1, - col2 AS col0 FROM tab1 @@ -25682,8 +25932,15 @@ SELECT ALL - 85 * - 5 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col2 AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT DISTINCT + col1 FROM tab1 WHERE - col1 * + + col2 + + + 23 IS NULL @@ -25913,8 +26170,15 @@ SELECT ALL SUM ( ALL + + col2 ) FROM tab0 # Datafusion - Expected - -95 # Datafusion - Expected - -77 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col2" at position 0 and "Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 col2, - 95 AS col2 FROM tab2 +---- +-51 +-67 +-77 +-95 +-95 +-95 query I rowsort label-4220 SELECT DISTINCT + col1 * + col1 * col0 / - col1 FROM tab2 @@ -26055,8 +26319,15 @@ SELECT ( - MIN ( + - 96 ) ) + 99 AS col1 FROM tab0 # Datafusion - Expected - -65 # Datafusion - Expected - 99 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 col0, - 65 AS col0 FROM tab0 +---- +-65 +-65 +-65 +10 +47 +99 query III rowsort SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - ( + col0 ) @@ -26106,8 +26377,15 @@ SELECT DISTINCT + ( + col2 ) + - 26 / - - 76 FROM tab2 # Datafusion - Expected - -84 # Datafusion - Expected - -97 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \- \(\- \(\- tab0\.col2\)\) AS col2" at position 0 and "tab0\.col1 \- \(\- \(\- tab0\.col1\)\) \- \(\- Int64\(\-84\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 - + ( - ( - col2 ) ) AS col2, + col1 - - - col1 - - - 84 AS col2 FROM tab0 +---- +-196 +-62 +-84 +-84 +-84 +-97 query I rowsort label-4250 SELECT - + COUNT ( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) @@ -26499,8 +26777,15 @@ SELECT DISTINCT + col1 AS col0, col1 col2 FROM tab0 # Datafusion - Expected - -23276 # Datafusion - Expected - 0 # Datafusion - Expected - -70400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(0\)\) AS col2" at position 0 and "tab2\.col2 \* \(\- Int64\(\-44\)\) \* \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - ( + 0 ) ) AS col2, col2 * - - 44 * - col2 col2 FROM tab2 +---- +-148016 +-23276 +-70400 +0 +0 +0 query I rowsort label-4317 SELECT DISTINCT col0 * + 45 - col0 / + 62 + 45 + - col1 AS col2 FROM tab2 @@ -26603,8 +26888,15 @@ SELECT ALL MAX ( ALL + - col0 ) AS col0 FROM tab1 # Datafusion - Expected - -85 # Datafusion - Expected - 91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "\(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, - col0 AS col2 FROM tab1 +---- +-51 +-85 +-91 +51 +85 +91 query II rowsort SELECT + 51 AS col2, - col2 FROM tab0 @@ -26671,8 +26963,11 @@ SELECT DISTINCT + MIN ( DISTINCT - col0 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(CAST\(\(\- tab1\.col1\) AS Int32\)\) \+ \(\- count\(DISTINCT Int64\(\-4\)\)\) \* count\(DISTINCT \(\- tab1\.col0\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( + + CAST ( - col1 AS INTEGER ) ) + + - COUNT ( DISTINCT - 4 ) * + COUNT ( DISTINCT - col0 ) AS col2, CAST ( NULL AS INTEGER ) * 75 AS col2 FROM tab1 +---- +0 +NULL query II rowsort SELECT DISTINCT 81 AS col1, + col0 FROM tab1 cor0 @@ -27407,8 +27702,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, 34 AS col0 FROM tab2 +---- +-3 +34 query I rowsort label-4464 SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) - + col0 FROM tab2 @@ -28071,8 +28369,15 @@ SELECT ALL * FROM tab0 cor0 WHERE 23 IS NULL # Datafusion - Expected - 59 # Datafusion - Expected - 840 # Datafusion - Expected - -1059 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) \* \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(97\) \+ Int64\(59\) \+ \(\- cor0\.col1\) \* \(\- \(\- cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 56 * + - col0 AS col2, 97 + + + 59 + - col1 * - - col0 col2 FROM tab0 AS cor0 +---- +-1059 +-1671 +4872 +5432 +59 +840 query III rowsort SELECT * FROM tab2 WHERE 84 IS NULL @@ -28345,8 +28650,11 @@ SELECT DISTINCT + MIN ( ALL + + 34 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2470 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-65\)\) \* Int64\(\-38\) AS col2" at position 0 and "Int64\(\-50\) \+ Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 65 * + - 38 AS col2, - 50 + + + 59 AS col2 FROM tab1 AS cor0 +---- +-2470 +9 query I rowsort SELECT + 16 * + 79 AS col1 FROM tab2 cor0 @@ -28861,8 +29169,15 @@ SELECT COUNT ( * ) * MIN ( ALL - 44 ) FROM tab1 # Datafusion - Expected - -1305 # Datafusion - Expected - 330 # Datafusion - Expected - -1305 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* Int64\(22\) AS col1" at position 0 and "Int64\(45\) \* Int64\(\-29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * 22 AS col1, + 45 * - 29 col1 FROM tab0 +---- +-1305 +-1305 +-1305 +1914 +2134 +330 query I rowsort label-4705 SELECT DISTINCT - ( - COUNT ( ALL col1 ) ) / + 54 * + SUM ( + - col0 ) FROM tab2 @@ -29155,8 +29470,10 @@ SELECT + MIN ( ALL - 79 ) + - COUNT ( * ), + 26 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c193e355b661b6c6b597a453ee02d148 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col1" at position 1 and "tab1\.col1 \* Int64\(83\) \+ \(\- tab1\.col0\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col2 / + - col2 + - col2, 73 AS col1, col1 * ( 83 ) + - col0 AS col1 FROM tab1 +---- +9 values hashing to 5f82a040289b329ef111c6ef52a8ae19 query I rowsort SELECT + ( 64 ) + - - 63 + 44 + + col0 AS col1 FROM tab0 @@ -29300,8 +29617,11 @@ SELECT - col1 AS col2, col2 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + COUNT ( * ) col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +3 +3 query I rowsort SELECT col2 * + - 93 AS col1 FROM tab0 AS cor0 @@ -29362,8 +29682,10 @@ SELECT * FROM tab1 WHERE col1 + - 53 * - - 72 + + 14 <= - CAST ( + - ( - - 39 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to fd788b1e93f8379452db1725736edc2e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-96\)\) \* Int64\(\-63\) AS col0" at position 1 and "\(\- \(\- cor0\.col0\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + + col2 + - col0 AS col2, - ( - 96 ) * - 63 AS col0, - - col0 AS col0 FROM tab2 cor0 +---- +9 values hashing to a3ccc7ca7ef5fc6f6a57a6fd8683e45f query I rowsort SELECT DISTINCT + col0 + - col1 + - col0 AS col2 FROM tab0 cor0 @@ -30060,8 +30382,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT col0 / - col2 >= + - 35 # Datafusion - Expected - 52 # Datafusion - Expected - 76 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-76\)\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 76 AS col2, 52 AS col2 FROM tab2 AS cor0 +---- +52 +52 +52 +76 +76 +76 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT + - 60 + 29 IS NULL ) @@ -30662,8 +30991,11 @@ SELECT * FROM tab2 cor0 WHERE NOT ( + col0 + + + 83 IS NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "max\(\(\- cor0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) / + COUNT ( * ) AS col0, + MAX ( - col1 ) col0 FROM tab0 AS cor0 +---- +-1 +-1 query I rowsort SELECT 35 AS col1 FROM tab0 AS cor0 WHERE NOT ( ( NULL ) BETWEEN NULL AND ( col0 * + col0 ) ) @@ -30930,8 +31262,15 @@ SELECT - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL # Datafusion - Expected - 85 # Datafusion - Expected - -372645 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* Int64\(45\) \* \(\- tab1\.col0\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * + 45 * - col0 AS col2, col0 AS col2 FROM tab1 +---- +-117045 +-325125 +-372645 +51 +85 +91 query I rowsort label-5055 SELECT DISTINCT MIN ( col0 ) * + COUNT ( * ) FROM tab0 @@ -31172,8 +31511,15 @@ SELECT + 81 / 93 + - 21 / - col1 AS col0 FROM tab0 # Datafusion - Expected - 4 # Datafusion - Expected - -5 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "\(\- Int64\(\-4\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col2, + ( - ( + - 4 ) ) AS col2 FROM tab1 +---- +-14 +-47 +-5 +4 +4 +4 query II rowsort label-5097 SELECT ALL 74 AS col1, COUNT ( * ) FROM tab1 @@ -31318,8 +31664,11 @@ SELECT - + 87 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -747 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 83 * COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab2, tab2 AS cor0 +---- +-747 +9 query I rowsort label-5121 SELECT DISTINCT + col2 / col0 * CAST ( 37 AS INTEGER ) AS col2 FROM tab2 AS cor0 @@ -31418,8 +31767,15 @@ SELECT DISTINCT 5 + - col1 FROM tab2 AS cor0 # Datafusion - Expected - -30 # Datafusion - Expected - 95 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ Int64\(90\) AS col1" at position 0 and "Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 + + 90 AS col1, - 30 col1 FROM tab1 AS cor0 +---- +-30 +-30 +-30 +104 +137 +95 query II rowsort SELECT ALL + col2 AS col0, col2 AS col1 FROM tab1 @@ -33801,8 +34157,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + COUNT ( DISTINCT + - col2 ) AS col2, - COUNT ( * ) AS col2, + + COUNT ( - - col1 ) FROM tab0 +---- +-3 +3 +3 query III rowsort SELECT ALL * FROM tab0 WHERE + col2 >= - 83 @@ -34158,8 +34518,15 @@ SELECT 40 * + 26 FROM tab2 # Datafusion - Expected - 85 # Datafusion - Expected - -8273 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \+ Int64\(90\) \* \(\- tab1\.col0\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 83 + + 90 * + - col0 AS col1, + col0 AS col1 FROM tab1 +---- +-4673 +-7733 +-8273 +51 +85 +91 query I rowsort SELECT DISTINCT + - col1 FROM tab0 AS cor0 WHERE NULL <= + col2 @@ -34175,8 +34542,11 @@ SELECT ALL - 38 + - - col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- CAST\(Int64\(\-23\) AS Int32\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 19 * - - COUNT ( * ) + - CAST ( + - 23 AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 +---- +80 +NULL query III rowsort SELECT * FROM tab1 WHERE ( - 22 + - col2 ) BETWEEN + 83 AND ( NULL ) @@ -34351,8 +34721,15 @@ SELECT ALL + ( + col0 ) * + 21 + - - col1 FROM tab1 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col2, col2 AS col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-5617 SELECT DISTINCT 92 + - MAX ( DISTINCT col2 ) AS col1 FROM tab2 WHERE NOT + 19 / col2 IS NOT NULL @@ -34789,8 +35166,11 @@ SELECT - col1 * col0 AS col0, col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - ( + COUNT ( * ) ) AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +-3 +3 query I rowsort SELECT 77 * 12 * + col0 FROM tab1 AS cor0 @@ -34901,8 +35281,15 @@ SELECT DISTINCT + + 8 + col2 / + - ( col0 ) FROM tab2 cor0 # Datafusion - Expected - 35 # Datafusion - Expected - 75 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, 35 AS col2 FROM tab2 AS cor0 +---- +35 +35 +35 +46 +64 +75 query I rowsort SELECT ALL + - col0 - - col0 AS col0 FROM tab0 AS cor0 @@ -34987,8 +35374,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 16 ) IS NOT NULL # Datafusion - Expected - -3120 # Datafusion - Expected - 58 # Datafusion - Expected - -4524 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 \* Int64\(\-78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, col2 * - 78 AS col0 FROM tab2 AS cor0 +---- +-1794 +-3120 +-4524 +23 +40 +58 query I rowsort SELECT - col0 * - - col1 AS col2 FROM tab0 cor0 @@ -35335,8 +35729,15 @@ SELECT - + ( SUM ( ALL 32 ) ) FROM tab1 AS cor0 # Datafusion - Expected - 150 # Datafusion - Expected - 77 # Datafusion - Expected - 128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, col0 + + col0 AS col2 FROM tab2 AS cor0 +---- +128 +150 +51 +67 +77 +92 query II rowsort SELECT col0 * + + col2, - col0 - col1 * + col0 AS col1 FROM tab2 @@ -36877,8 +37278,11 @@ SELECT ALL + 93 * + col1 + - 64, + 74 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 37 AS col0, COUNT ( * ) col0 FROM tab0 cor0 +---- +-37 +3 query I rowsort SELECT + 91 * - col1 * 30 - + col2 AS col1 FROM tab2 cor0 @@ -37299,8 +37703,11 @@ SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE + 46 >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, + COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +-3 +3 query I rowsort SELECT DISTINCT - ( 65 ) AS col1 FROM tab1 @@ -38931,8 +39338,15 @@ SELECT col0 / col2 AS col0 FROM tab2 AS cor0 WHERE 57 * - CAST ( + CAST ( NULL A # Datafusion - Expected - 0 # Datafusion - Expected - 49 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col1" at position 0 and "tab0\.col1 \+ \(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 49 AS col1, col1 + + - col1 AS col1 FROM tab0 +---- +0 +0 +0 +49 +49 +49 query I rowsort label-6378 SELECT ALL + CAST ( + + col1 AS INTEGER ) col2 FROM tab0 @@ -39079,8 +39493,9 @@ SELECT DISTINCT * FROM tab1 WHERE ( - - 47 - + col1 + - 96 * - + CAST ( NULL AS 9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col1 * - CAST ( NULL AS INTEGER ) col0, + col1 col0 FROM tab2 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND NULL +---- query III rowsort SELECT DISTINCT * FROM tab1 WHERE + col1 * - + col1 + 28 + + 1 IS NULL @@ -39358,8 +39773,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) / Int64\(\-42\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 / + - 42 + + + COUNT ( * ) AS col2, - COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 +---- +-9 +7 query I rowsort SELECT ALL + ( + col0 ) + - 9 FROM tab1 cor0 @@ -39451,8 +39869,15 @@ SELECT + MAX ( DISTINCT - 19 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 29 # Datafusion - Expected - 25 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col2" at position 0 and "Int64\(96\) \- cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 25 AS col2, 96 - + + col1 AS col2 FROM tab2 AS cor0 +---- +19 +25 +25 +25 +29 +45 query I rowsort label-6462 SELECT - - 99 / - col2 + + + col1 AS col1 FROM tab1 AS cor0 @@ -39611,8 +40036,15 @@ SELECT DISTINCT + COUNT ( * ) col1 FROM tab1 WHERE NULL > NULL # Datafusion - Expected - 51 # Datafusion - Expected - -68 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 / tab1\.col1 \* \(\- tab1\.col2\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 / col1 * - col2 col1, col0 AS col1 FROM tab1 +---- +-1003 +-288 +-68 +51 +85 +91 query I rowsort label-6488 SELECT DISTINCT + COUNT ( ALL - - 65 ) col0 FROM tab0 @@ -39824,8 +40256,15 @@ SELECT ALL - MAX ( DISTINCT + 95 ) / + + MAX ( ALL col2 ) FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - -4004 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \* tab2\.col1 AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 52 * col1 AS col1, 47 AS col1 FROM tab2 +---- +-2652 +-3484 +-4004 +47 +47 +47 query I rowsort label-6523 SELECT - SUM ( - 42 ) AS col2 FROM tab1 WHERE NOT ( + 26 * - 5 + + + col1 * - 33 ) <> 98 + + col1 - - col2 / col2 + + + 0 + + 54 @@ -40496,8 +40935,11 @@ SELECT - - 83 col2 FROM tab0 AS cor0 WHERE ( NULL IS NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 227 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(cor0\.col0\) 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 II valuesort SELECT SUM ( ALL col0 ) col1, MIN ( - - 13 ) AS col1 FROM tab1 cor0 +---- +13 +227 query I rowsort label-6632 SELECT ALL 28 / - 24 FROM tab2 @@ -40682,8 +41124,15 @@ SELECT + 51 - + col2 * 75 FROM tab0 cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col0, col2 AS col0 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT DISTINCT + col2 - + col1 + - + col2 AS col2 FROM tab2 AS cor0 @@ -40706,8 +41155,15 @@ SELECT - + ( + col0 ) + col0 FROM tab0 AS cor0 # Datafusion - Expected - -161 # Datafusion - Expected - 81 # Datafusion - Expected - -739 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col2 \* Int64\(\-15\) \- CAST\(cor0\.col1 AS Int32\) \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, ( + col2 ) * + - 15 - CAST ( + col1 AS INTEGER ) + ( + col2 ) col2 FROM tab0 AS cor0 WHERE NOT + ( + 3 ) + col1 + + + col0 * + col1 IS NULL +---- +-1387 +-161 +-739 +1 +21 +81 query I rowsort SELECT + col2 col2 FROM tab1 WHERE NOT + + col2 + col0 + - col2 IS NOT NULL @@ -41737,8 +42193,9 @@ SELECT * FROM tab0 WHERE ( - 47 ) NOT BETWEEN NULL AND ( NULL ) ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, col2 FROM tab0 WHERE NOT 25 IS NOT NULL +---- query I rowsort SELECT + col2 + - 70 + + col1 AS col0 FROM tab2 AS cor0 @@ -41916,8 +42373,15 @@ SELECT col1 + - 18, + col0 FROM tab2 # Datafusion - Expected - -125 # Datafusion - Expected - 856155 # Datafusion - Expected - -136 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(82\) \* \(\- tab2\.col2\) \* Int64\(\-60\) \+ Int64\(75\) AS col0" at position 0 and "\(\- tab2\.col0\) \+ Int64\(\-61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 3 * 82 * - + col2 * - 60 + + 75 col0, - col0 + - 61 AS col0 FROM tab2 +---- +-107 +-125 +-136 +339555 +590475 +856155 query I rowsort label-6877 SELECT DISTINCT 99 + + - COUNT ( * ) FROM tab1 AS cor0 @@ -42052,8 +42516,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 30 AS col1, 21 * - COUNT ( * ) col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 +---- +-189 +30 query I rowsort label-6901 SELECT + COUNT ( * ) col2 FROM tab2, tab0 AS cor0 @@ -43214,8 +43681,11 @@ SELECT ALL + col1 * + - col2 + 21 + - + col1 + - ( col2 ) + col2 FROM tab1 WHERE # 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 "Int64\(1\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + 1 ) AS col1, 65 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 +---- +1 +65 query III rowsort SELECT * FROM tab0 AS cor0 WHERE ( + col0 ) < - + col2 @@ -43276,8 +43746,15 @@ SELECT ( - 26 ) FROM tab0 AS cor0 # Datafusion - Expected - 5912 # Datafusion - Expected - -77 # Datafusion - Expected - 6917 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col1" at position 0 and "\(\- cor0\.col2\) \+ \(\- \(\- cor0\.col0\)\) \+ Int64\(\-92\) \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 77 col1, - col2 + - + ( - + col0 ) + - 92 * + - col0 AS col1 FROM tab2 cor0 +---- +-77 +-77 +-77 +4255 +5912 +6917 query I rowsort SELECT DISTINCT + - ( + col2 ) * - col2 FROM tab1 AS cor0 @@ -45204,8 +45681,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(cor0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( + + col0 ) AS col0, COUNT ( * ) * - COUNT ( + col1 ) AS col0 FROM tab1 AS cor0 +---- +-227 +-9 query III rowsort SELECT * FROM tab2 WHERE + + col1 < NULL @@ -45258,8 +45738,15 @@ SELECT - col1 AS col0, col1 FROM tab2 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - -58 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, - col0 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-46 +-58 +-64 +-75 query I rowsort SELECT ALL - 21 AS col0 FROM tab2 cor0 @@ -46076,8 +46563,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( - - col2 ) IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - -5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - col1 ) AS col0, col1 AS col0 FROM tab1 cor0 +---- +-14 +-47 +-5 +14 +47 +5 query II rowsort label-7566 SELECT DISTINCT - 68 * - 27, + 99 + - COUNT ( * ) AS col0 FROM tab0 AS cor0 @@ -46240,8 +46734,15 @@ SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) + + col1 >= + ( + col2 # Datafusion - Expected - 5 # Datafusion - Expected - 91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +14 +47 +5 +51 +85 +91 query I rowsort SELECT ALL + col1 * 9 AS col2 FROM tab1 @@ -46458,8 +46959,15 @@ SELECT DISTINCT + col1 * - + col2 * + col0 - - - col1 FROM tab2 AS cor0 # Datafusion - Expected - 76 # Datafusion - Expected - 97 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, 76 col1 FROM tab0 AS cor0 +---- +15 +76 +76 +76 +87 +97 query I rowsort SELECT DISTINCT - + col0 * - 64 FROM tab0 AS cor0 @@ -47052,8 +47560,15 @@ SELECT ALL col0, 67 + + 65 + col1 * col1 FROM tab2 # Datafusion - Expected - -1984 # Datafusion - Expected - -75 # Datafusion - Expected - -2325 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(\-31\) \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 col2, - 31 * + col0 AS col2 FROM tab2 AS cor0 +---- +-1426 +-1984 +-2325 +-46 +-64 +-75 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 ) BETWEEN - col2 AND col2 @@ -47899,8 +48414,15 @@ SELECT ALL + CAST ( + ( + - COUNT ( + 0 ) ) AS INTEGER ) FROM tab1 # Datafusion - Expected - -6 # Datafusion - Expected - 91 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "Int64\(\-6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, - 6 AS col2 FROM tab1 +---- +-6 +-6 +-6 +51 +85 +91 query I rowsort label-7853 SELECT - COUNT ( * ) * + + 74 AS col1 FROM tab1 @@ -47914,8 +48436,15 @@ SELECT - COUNT ( * ) * + + 74 AS col1 FROM tab1 # Datafusion - Expected - 91 # Datafusion - Expected - -18816 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \* tab1\.col1 \* tab1\.col2 AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * col1 * + col2 AS col2, + col0 AS col2 FROM tab1 +---- +-1475 +-150212 +-18816 +51 +85 +91 query II rowsort SELECT - 8 AS col2, col1 AS col1 FROM tab0 AS cor0 @@ -48009,8 +48538,9 @@ SELECT DISTINCT + 58 - - + ( + 21 ) col0 FROM tab1 AS cor0 WHERE NOT ( col2 ) > 79 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col2 AS col2" at position 0 and "Int64\(59\) / cor0\.col0 \* cor0\.col0 \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 + col2 AS col2, + 59 / col0 * + col0 + col0 col2 FROM tab2 AS cor0 WHERE ( NOT ( - col0 * - - ( 87 ) IS NOT NULL ) ) +---- query I rowsort label-7870 SELECT DISTINCT - COUNT ( * ) col2 FROM tab0 WHERE NOT NULL IS NULL @@ -48074,8 +48604,15 @@ SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN col1 AND + col2 # Datafusion - Expected - 15 # Datafusion - Expected - -286 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) \- tab0\.col0 \- tab0\.col0 AS col0" at position 0 and "Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 - + col0 - + col0 AS col0, 15 AS col0 FROM tab0 +---- +-122 +-266 +-286 +15 +15 +15 query I rowsort SELECT - ( + + col2 ) - + 55 AS col1 FROM tab1 @@ -48130,8 +48667,15 @@ SELECT - - ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT - col0 * + - 63 IS NOT NU # Datafusion - Expected - 47 # Datafusion - Expected - 11 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 11 AS col1, 47 AS col1 FROM tab0 AS cor0 +---- +11 +11 +11 +47 +47 +47 query II rowsort SELECT ALL - col2, col1 AS col0 FROM tab0 AS cor0 @@ -48200,8 +48744,15 @@ SELECT DISTINCT * FROM tab0 WHERE - + col1 NOT BETWEEN - 53 + ( + - 30 ) * 79 AN # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, col1 AS col0 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT DISTINCT + col0 + - + 61 FROM tab1 cor0 @@ -48232,8 +48783,15 @@ SELECT col2 * col2 + - col1 * col0, + col0 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 81 # Datafusion - Expected - 98 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col2 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col1 + + ( col2 ) AS col2, col1 AS col2 FROM tab0 AS cor0 +---- +-11 +-34 +1 +21 +81 +98 query I rowsort SELECT ALL - col0 * + 93 FROM tab0 @@ -48692,8 +49250,9 @@ SELECT DISTINCT + - ( + + COUNT ( * ) ) * COUNT ( * ) FROM tab2 AS cor0 -9 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, 58 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL +---- query I rowsort SELECT + - 28 AS col2 FROM tab0 cor0 WHERE NOT col0 IS NULL @@ -48788,8 +49347,15 @@ SELECT DISTINCT - COUNT ( * ) - COUNT ( * ) + + MAX ( DISTINCT + col2 ) * + + CO # Datafusion - Expected - 21 # Datafusion - Expected - 76 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 76 AS col2, col1 AS col2 FROM tab0 +---- +1 +21 +76 +76 +76 +81 query I rowsort SELECT 90 - + col2 AS col0 FROM tab1 @@ -48839,8 +49405,15 @@ SELECT - + MAX ( DISTINCT col1 ) FROM tab1 AS cor0 # Datafusion - Expected - 59 # Datafusion - Expected - 91 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, + col2 AS col1 FROM tab1 +---- +51 +59 +68 +85 +91 +96 query I rowsort label-8008 SELECT 37 / - - col2 AS col1 FROM tab0 @@ -49347,8 +49920,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT + 46 + - col1 + - - 56 IS NOT NULL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col1, + col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT ALL - ( col2 ) AS col0 FROM tab2 WHERE - - 30 IS NULL @@ -50020,8 +50600,15 @@ SELECT col2 FROM tab1 AS cor0 WHERE NOT ( col0 * + 50 + col1 + - - col2 ) > ( 11 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1, col1 AS col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query III rowsort SELECT * FROM tab0 WHERE NOT 65 * col1 = NULL @@ -51895,8 +52482,11 @@ SELECT ALL * FROM tab0 WHERE NOT + 20 + - col1 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- Int64\(\-81\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, ( - - 81 ) AS col2 FROM tab0 +---- +3 +81 query II rowsort SELECT ALL 94 AS col1, - 20 FROM tab0 @@ -51915,8 +52505,15 @@ SELECT ALL 94 AS col1, - 20 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - -35 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 35 AS col1, col2 AS col1 FROM tab0 +---- +-35 +-35 +-35 +10 +47 +99 query I rowsort SELECT ALL - + col1 FROM tab2 AS cor0 WHERE NOT col1 + 64 IS NOT NULL @@ -52530,8 +53127,11 @@ SELECT + 19 + - 68 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -168 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* min\(Int64\(56\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, - COUNT ( * ) * MIN ( ALL + 56 ) AS col1 FROM tab0 +---- +-168 +3 query II rowsort label-8623 SELECT ALL 17, COUNT ( * ) AS col1 FROM tab0 @@ -53953,8 +54553,15 @@ SELECT 63 / - + 17 FROM tab0 AS cor0 # Datafusion - Expected - -10 # Datafusion - Expected - 12 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) \+ Int64\(13\) AS col1" at position 0 and "\(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + + 13 AS col1, - ( + col2 ) AS col1 FROM tab0 +---- +-10 +-47 +-68 +-8 +-99 +12 query I rowsort SELECT - 89 * - col0 + + col2 + - - 38 FROM tab1 @@ -54438,8 +55045,9 @@ SELECT ALL + col2 + + 27 + + + col1, + 41 / - 85 * + + col2 AS col1 FROM tab2 AS 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \+ Int64\(43\) \- \(\- cor0\.col1\) AS col2" at position 0 and "Int64\(40\) \* Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 89 + + + 43 - + - col1 AS col2, + 40 * - 96 AS col2 FROM tab0 AS cor0 WHERE + col0 * - col2 + + col2 * - col1 IS NULL +---- query I rowsort SELECT + col1 + - col0 + col2 AS col0 FROM tab1 cor0 @@ -56173,8 +56781,15 @@ SELECT DISTINCT - MIN ( + + 19 ) AS col2 FROM tab0 cor0 # Datafusion - Expected - 8 # Datafusion - Expected - -5 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col2 / Int64\(52\) \+ Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col1 col2, col2 / 52 + + ( + 7 ) AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +8 +8 +8 query I rowsort label-9221 SELECT ALL - SUM ( - + 81 ) FROM tab2 @@ -58500,8 +59115,15 @@ SELECT ALL + SUM ( - 36 ) + ( 36 ) FROM tab1 AS cor0 # Datafusion - Expected - 119 # Datafusion - Expected - -99 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(38\) \+ \(\- \(\- cor0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col0, ( + + 38 ) + - - col1 AS col0 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +119 +39 +59 query I rowsort label-9597 SELECT - col2 / 33 * - col0 - - col1 - - ( col0 ) + + - col0 * - - ( - 36 ) / ( - 43 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 @@ -59220,8 +59842,15 @@ SELECT ALL + col1 * + col0 * + 43 + col0 * col0 FROM tab1 AS cor0 # Datafusion - Expected - 191 # Datafusion - Expected - 99 # Datafusion - Expected - 193 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "Int64\(95\) \+ tab0\.col1 \+ tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col0, 95 + + col1 + + col0 AS col0 FROM tab0 +---- +10 +191 +193 +203 +47 +99 query II rowsort SELECT - col1 + - ( + col1 ) - + - col0 AS col0, - col2 * + 89 FROM tab2 @@ -59631,8 +60260,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN col2 AND NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col1 AS Int32\)" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( col1 AS INTEGER ), + col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-9784 SELECT + SUM ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0 @@ -60116,8 +60752,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- max\(DISTINCT Int64\(53\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, - MAX ( DISTINCT 53 ) AS col2 FROM tab2 +---- +-53 +3 query II rowsort SELECT ALL col0, 80 col1 FROM tab2 diff --git a/data/sqlite/random/aggregates/slt_good_128.slt b/data/sqlite/random/aggregates/slt_good_128.slt index 1fdb8b3..ad73f84 100644 --- a/data/sqlite/random/aggregates/slt_good_128.slt +++ b/data/sqlite/random/aggregates/slt_good_128.slt @@ -1152,8 +1152,9 @@ SELECT ALL + - ( COUNT ( * ) ) * + - 86 + - - 63 FROM tab1 cor0 321 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "\(\- cor0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2, - col2 FROM tab1 AS cor0 WHERE - 96 IN ( 35 * + col2 + - + 8, + 93 ) +---- query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE - col0 + - - col1 * - 7 IS NULL @@ -1304,8 +1305,11 @@ SELECT ALL - - SUM ( DISTINCT - - col0 ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\)" at position 0 and "Int64\(35\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 35, 35 FROM tab1 AS cor0 +---- +35 +35 query I rowsort SELECT col0 * col0 * + 91 + + col1 FROM tab1 AS cor0 @@ -1321,8 +1325,15 @@ SELECT col0 * col0 * + 91 + + col1 FROM tab1 AS cor0 # Datafusion - Expected - 17 # Datafusion - Expected - -99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 \+ Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, + col0 + 2 col2 FROM tab0 cor0 +---- +-10 +-47 +-99 +17 +89 +99 query I rowsort SELECT 60 * - 79 FROM tab0 AS cor0 @@ -1655,8 +1666,15 @@ SELECT + + 59 AS col2 FROM tab1 WHERE NOT - 22 * - col2 + + col2 IS NOT NULL # Datafusion - Expected - 21 # Datafusion - Expected - -6561 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) \* tab0\.col1 AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 * col1 AS col2, + col1 AS col2 FROM tab0 +---- +-1 +-441 +-6561 +1 +21 +81 query III rowsort SELECT * FROM tab1 cor0 WHERE NOT - ( + col0 ) NOT BETWEEN NULL AND NULL @@ -1724,8 +1742,15 @@ SELECT DISTINCT - SUM ( DISTINCT 19 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 14 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 AS col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +14 +14 +14 +NULL +NULL +NULL query I rowsort SELECT ALL ( + col2 ) + - col2 + col1 AS col2 FROM tab2 @@ -2893,8 +2918,10 @@ SELECT - col0 AS col1, - col0 * + - ( - col2 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 9306f096c8aa13d08835eb99f63600ad -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(51\) \+ tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col0 AS col2, + 51 + col1 AS col2, + col1 + + + col1 AS col0 FROM tab0 +---- +9 values hashing to 0e4f675730d25aa5fbfcec359f16f805 query II rowsort label-468 SELECT DISTINCT + MAX ( ALL col0 ) + COUNT ( * ) AS col0, + 81 FROM tab1 AS cor0 @@ -4281,8 +4308,15 @@ SELECT - col2 - 47 col1 FROM tab2 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, + col1 AS col1 FROM tab2 cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT + col0 * - + ( + col1 ) FROM tab1 AS cor0 @@ -4551,8 +4585,15 @@ SELECT ALL col1 * + + col0 col1 FROM tab1 # Datafusion - Expected - -1 # Datafusion - Expected - 0 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(45\)\) / tab0\.col1 AS col2" at position 0 and "\(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( 45 ) / col1 AS col2, - col1 AS col2 FROM tab0 +---- +-1 +-2 +-21 +-45 +-81 +0 query II rowsort label-741 SELECT - CAST ( NULL AS INTEGER ) / col0 * + - col1, + CAST ( - col0 AS INTEGER ) col2 FROM tab2 @@ -4822,8 +4863,15 @@ SELECT + 21 * - col1 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 2924 # Datafusion - Expected - 0 # Datafusion - Expected - 4128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) / cor0\.col1 AS col0" at position 0 and "cor0\.col2 \* Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 5 / + col1 AS col0, + col2 * 43 AS col0 FROM tab1 cor0 +---- +-1 +0 +0 +2537 +2924 +4128 query I rowsort label-786 SELECT MIN ( DISTINCT + ( col0 ) ) FROM tab0 AS cor0 @@ -4906,8 +4954,10 @@ SELECT + 71 - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a51174c6922a9600aae47a0b5eb50f26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "tab0\.col0 \* \(\- tab0\.col0\) \+ tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, + col0 * - col0 + col2 AS col2, col1 * - col0 FROM tab0 +---- +9 values hashing to df8ebeeaf2d6289099a7931f7367c295 query I rowsort label-801 SELECT ALL CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab1 @@ -6660,8 +6710,15 @@ SELECT col2 * + 40 * - + col1 / + col1 AS col1 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 20 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(20\) AS Int32\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + CAST ( + + 20 AS INTEGER ) AS col1, col0 AS col1 FROM tab0 AS cor0 +---- +15 +20 +20 +20 +87 +97 query II rowsort label-1085 SELECT - + CAST ( - + col2 AS INTEGER ), 75 AS col1 FROM tab2 AS cor0 @@ -8788,8 +8845,15 @@ SELECT - ( 42 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT DISTINCT 65 * - + col1 * - - col2 + + ( + - col0 ) FROM tab0 @@ -9247,8 +9311,11 @@ SELECT 79, - MAX ( - + col2 ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(58\)\) \* \(\- CAST\(NULL AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "min\(DISTINCT cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 58 * - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col1, + MIN ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0 +---- +15 +NULL query I rowsort SELECT + 33 * 17 * + col0 FROM tab2 cor0 @@ -9526,8 +9593,11 @@ SELECT ALL - col1, col1 FROM tab2 AS cor0 WHERE ( - col2 ) <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 34 AS col0, + 10 AS col0 FROM tab2 AS cor0 +---- +10 +34 query II rowsort SELECT ( - col1 ) * col1 col2, col2 * col2 FROM tab1 AS cor0 @@ -9995,8 +10065,11 @@ SELECT - col1 FROM tab1 WHERE NOT ( NOT NULL > - col0 * 20 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(38\)\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MIN ( DISTINCT 38 ) AS col2, 60 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 +---- +38 +60 query I rowsort SELECT ALL - + 62 col0 FROM tab1 cor0 @@ -10647,8 +10720,11 @@ SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT + - 14 IS NOT NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) col1, CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + - 63 AS col1 FROM tab1 cor0 +---- +NULL +NULL query I rowsort SELECT col2 + - 97 AS col2 FROM tab2 cor0 @@ -12545,8 +12621,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, 63 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL +---- +0 +63 query I rowsort label-2048 SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL @@ -12999,8 +13078,11 @@ SELECT - 16 AS col2, col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +3 +51 query I rowsort SELECT ALL + - 98 * + col0 col0 FROM tab1 cor0 @@ -14291,8 +14373,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT - - 90 IS NULL AND NOT ( NULL ) IS NOT NULL # Datafusion - Expected - -68 # Datafusion - Expected - 0 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) / \(\- Int64\(16\)\) \* Int64\(\-3\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 4 / - + 16 * - 3 AS col0, - col2 AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +0 +0 +0 query I rowsort label-2331 SELECT DISTINCT + MIN ( + 13 ) AS col1 FROM tab0 AS cor0 @@ -14439,8 +14528,15 @@ SELECT - col1 AS col2, + col0 FROM tab0 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 88 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 88 AS col2, - col2 col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +88 +88 +88 query I rowsort SELECT ALL col0 * + - col1 + col2 FROM tab2 AS cor0 @@ -14466,8 +14562,15 @@ SELECT ALL + col0 col1, + col0 FROM tab1 cor0 # Datafusion - Expected - -1827 # Datafusion - Expected - 86 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "\(\- cor0\.col1\) \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 86 AS col2, - col1 * + col0 AS col2 FROM tab0 AS cor0 +---- +-1215 +-1827 +-97 +86 +86 +86 query I rowsort label-2356 SELECT CAST ( + + ( - - 69 ) AS INTEGER ) AS col2 FROM tab1 @@ -14596,8 +14699,15 @@ SELECT DISTINCT + 31 + - 14 col1, SUM ( DISTINCT + - col0 ) FROM tab2 # Datafusion - Expected - 23 # Datafusion - Expected - 80 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \+ tab2\.col2 AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 + + + col2 col1, col2 AS col1 FROM tab2 +---- +116 +23 +40 +46 +58 +80 query I rowsort label-2376 SELECT - col1 + + 9 / - col0 + - - col2 col2 FROM tab0 @@ -15129,8 +15239,15 @@ SELECT ALL - col1 * 72 AS col1 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, + col1 FROM tab1 cor0 +---- +14 +14 +47 +47 +5 +5 query II rowsort SELECT ALL - - col1, col0 AS col1 FROM tab0 AS cor0 @@ -15537,8 +15654,11 @@ SELECT DISTINCT - col1 AS col0, - 50 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- cor0\.col1\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( ( SUM ( - col1 ) ) ) AS col1, COUNT ( * ) col1 FROM tab1 AS cor0 +---- +3 +66 query I rowsort label-2531 SELECT + MAX ( col2 ) AS col0 FROM tab2 cor0 @@ -15640,8 +15760,15 @@ SELECT * FROM tab0 WHERE - - 79 NOT BETWEEN - col1 AND NULL # Datafusion - Expected - NULL # Datafusion - Expected - 6 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab2\.col1\)\) \+ \(\- Int64\(61\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + - col1 ) + - + 61 AS col1, - CAST ( NULL AS INTEGER ) col1 FROM tab2 +---- +-10 +16 +6 +NULL +NULL +NULL query I rowsort label-2549 SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NULL IS NOT NULL @@ -15865,8 +15992,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 19 * + COUNT ( * ) + - 91 AS col0, + MAX ( 82 ) AS col0 FROM tab1 AS cor0 +---- +-148 +82 query II rowsort SELECT - + 65 AS col0, - ( - col0 ) FROM tab1 AS cor0 @@ -16762,8 +16892,11 @@ SELECT + + 43 + + ( + 3 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- CAST\(max\(tab0\.col1\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 62 + + - COUNT ( * ) AS col2, - CAST ( + MAX ( + col1 ) AS INTEGER ) col2 FROM tab0 +---- +-65 +-81 query I rowsort label-2738 SELECT - MIN ( DISTINCT 85 ) + + - SUM ( - - 64 ) - + CAST ( NULL AS INTEGER ) * 71 AS col1 FROM tab2 @@ -16853,8 +16986,15 @@ SELECT ALL - col1 * - + col2 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -2211 # Datafusion - Expected - 0 # Datafusion - Expected - -2541 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) / Int64\(\-43\) \* Int64\(\-70\) AS col0" at position 0 and "\(\- tab2\.col1\) \* Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 21 / + - 43 * - 70 AS col0, - col1 * + 33 AS col0 FROM tab2 +---- +-1683 +-2211 +-2541 +0 +0 +0 query I rowsort SELECT DISTINCT col2 * 81 * - - col0 AS col2 FROM tab0 @@ -17880,8 +18020,15 @@ SELECT - + col2 - + 1 FROM tab1 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-29\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + - CAST ( NULL AS INTEGER ) ) * - 29 AS col2, col0 AS col2 FROM tab1 cor0 +---- +51 +85 +91 +NULL +NULL +NULL query I rowsort label-2923 SELECT - SUM ( - 80 ) - 46 FROM tab1 AS cor0 @@ -17961,8 +18108,15 @@ SELECT + 73 / col1 + + col1 * - col2 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 1 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / Int64\(55\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 / + ( + 55 ) AS col0, ( + + ( + col2 ) ) col0 FROM tab2 AS cor0 +---- +0 +1 +1 +23 +40 +58 query I rowsort label-2936 SELECT ALL + 22 / + col2 col0 FROM tab1 AS cor0 @@ -18062,8 +18216,15 @@ SELECT DISTINCT COUNT ( * ) - + ( - 42 ) FROM tab1 # Datafusion - Expected - -67 # Datafusion - Expected - 45 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- Int64\(32\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 - 32 AS col0, ( - col1 ) AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +19 +35 +45 query I rowsort label-2952 SELECT col0 * - + col0 + 15 / - - ( - + col2 ) * - + 45 - + col0 FROM tab2 cor0 @@ -18322,8 +18483,11 @@ SELECT + col2, + col2 * - - 59 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- tab0\.col0\)\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( ALL - col0 ) AS col2, ( 16 ) AS col2 FROM tab0 +---- +-15 +16 query I rowsort SELECT ALL col1 * + ( + 34 ) AS col1 FROM tab1 @@ -18417,8 +18581,15 @@ SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 + - col # Datafusion - Expected - 61 # Datafusion - Expected - 96 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, + 61 AS col0 FROM tab1 +---- +59 +61 +61 +61 +68 +96 query I rowsort label-3007 SELECT DISTINCT + 87 + - - MIN ( - col2 ) FROM tab0 AS cor0 @@ -18906,8 +19077,15 @@ SELECT DISTINCT + + MAX ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 1 # Datafusion - Expected - 91 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "\(\- \(\- cor0\.col2\)\) / cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col0 col2, - ( - + col2 ) / + col2 AS col2 FROM tab1 cor0 +---- +1 +1 +1 +51 +85 +91 query I rowsort SELECT DISTINCT + ( + ( - col0 ) ) FROM tab0 @@ -19135,8 +19313,15 @@ SELECT + col2 + - col2 - col0 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - -18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \- \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 18 AS col2, CAST ( NULL AS INTEGER ) - - col1 AS col2 FROM tab0 +---- +-18 +-18 +-18 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab2 WHERE - col2 * col0 IS NOT NULL @@ -20725,8 +20910,15 @@ NULL # Datafusion - Expected - 63 # Datafusion - Expected - 35 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 AS col1, + 63 AS col1 FROM tab2 AS cor0 +---- +35 +35 +35 +63 +63 +63 query I rowsort SELECT DISTINCT + col1 - + + col0 * + col1 AS col1 FROM tab0 AS cor0 @@ -20796,8 +20988,15 @@ SELECT DISTINCT + col0 * - col0 + CAST ( ( + - col1 ) AS INTEGER ) * + col2 AS c # Datafusion - Expected - -80 # Datafusion - Expected - -2958 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(13\)\) \* cor0\.col0 \+ \(\- cor0\.col1\) \* cor0\.col0 AS col0" at position 0 and "Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 13 * + col0 + - col1 * + + col0 AS col0, ( - 80 ) AS col0 FROM tab0 AS cor0 +---- +-1358 +-1410 +-2958 +-80 +-80 +-80 query II rowsort label-3405 SELECT + ( + 13 ) col2, MIN ( ALL - 18 ) FROM tab2 AS cor0 @@ -21362,8 +21561,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT - 95 = - col2 # Datafusion - Expected - 85 # Datafusion - Expected - 70 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 70 AS col1, 85 AS col1 FROM tab0 AS cor0 +---- +70 +70 +70 +85 +85 +85 query II rowsort SELECT - col2 col1, col2 FROM tab1 AS cor0 @@ -22216,8 +22422,15 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - 35 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \+ \(\- tab0\.col2\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 + - col2 AS col0, col1 AS col0 FROM tab0 +---- +-2 +-54 +1 +21 +35 +81 query III rowsort SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN ( col0 ) AND ( NULL ) @@ -22949,8 +23162,15 @@ SELECT - CAST ( + - 35 AS INTEGER ) - - col1 / - col0 FROM tab1 AS cor0 # Datafusion - Expected - 461824 # Datafusion - Expected - 3886 # Datafusion - Expected - 541200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \* cor0\.col1 AS col1" at position 0 and "Int64\(82\) \* \(\- Int64\(\-88\)\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col2 * + col1 AS col1, + 82 * - - 88 * + + ( + col0 ) AS col1 FROM tab2 AS cor0 +---- +1173 +3080 +331936 +3886 +461824 +541200 query I rowsort SELECT DISTINCT - + ( - col0 ) AS col2 FROM tab0 cor0 @@ -23612,8 +23832,15 @@ SELECT + col2 * 58 + + col2 * + - col1 FROM tab0 AS cor0 # Datafusion - Expected - -145 # Datafusion - Expected - 0 # Datafusion - Expected - -406 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ cor0\.col2 AS col2" at position 0 and "cor0\.col1 \* Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 + + col2 AS col2, col1 * - 29 AS col2 FROM tab1 AS cor0 +---- +-1363 +-145 +-406 +0 +0 +0 query II rowsort SELECT col2 + - 21, 37 * + col2 AS col2 FROM tab1 AS cor0 @@ -24048,8 +24275,10 @@ SELECT + 39, + col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 8a9281cdbd78572b5c756af273af921f -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col0, col0, + 46 / + 70 * - + col0 + - col1 / - col1 AS col2 FROM tab0 +---- +9 values hashing to 0350371aa86249a9feff49616236acd5 query I rowsort SELECT 9 * + + 15 AS col0 FROM tab1 @@ -25382,8 +25611,11 @@ SELECT ALL col2 FROM tab1 AS cor0 WHERE ( ( + col1 ) ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, + 40 AS col0 FROM tab0 cor0 WHERE NOT - col2 - col2 IS NOT NULL +---- +0 +40 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT ( 66 ) <= - col2 @@ -26053,8 +26285,15 @@ SELECT ALL COUNT ( + col0 ) AS col2 FROM tab2 # Datafusion - Expected - 63 # Datafusion - Expected - 97 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col2, 63 AS col2 FROM tab0 +---- +15 +63 +63 +63 +87 +97 query II rowsort SELECT ALL + col1 AS col0, 4 * + col0 + col2 FROM tab2 @@ -26556,8 +26795,15 @@ SELECT ALL + + MIN ( ALL - col1 ) / + 53 FROM tab1 AS cor0 # Datafusion - Expected - -149 # Datafusion - Expected - 96 # Datafusion - Expected - -189 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(20\) \* Int64\(\-12\) \- \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, 20 * + - 12 - - + col0 AS col1 FROM tab1 AS cor0 +---- +-149 +-155 +-189 +59 +68 +96 query I rowsort label-4351 SELECT + + SUM ( ALL col2 ) + + + COUNT ( + 88 ) FROM tab0 AS cor0 @@ -26869,8 +27115,15 @@ SELECT col2 + + 14 * col2 col1 FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - -4350 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 * + col0 AS col1, col2 AS col1 FROM tab2 cor0 WHERE NOT 68 + + + CAST ( NULL AS INTEGER ) IS NOT NULL +---- +-1058 +-2560 +-4350 +23 +40 +58 query I rowsort SELECT ALL - col0 + + - col1 FROM tab2 @@ -28006,8 +28259,15 @@ SELECT - - 36 + col1 + - col1 + - ( - 71 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 58 # Datafusion - Expected - 77 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, + col2 AS col0 FROM tab2 AS cor0 +---- +23 +40 +51 +58 +67 +77 query I rowsort label-4594 SELECT 82 / + - 73 + + - 12 * + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 cor0 @@ -28443,8 +28703,11 @@ SELECT + 67 * col0 AS col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 48 AS col0, COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 +---- +48 +NULL query III rowsort SELECT * FROM tab0 WHERE NOT + 76 * - col1 IS NULL @@ -28646,8 +28909,15 @@ SELECT DISTINCT col0 * + + col2 AS col2 FROM tab2 # Datafusion - Expected - 0 # Datafusion - Expected - 6194 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-44\)\) \+ cor0\.col0 \* Int64\(82\) AS col1" at position 0 and "Int64\(\-62\) / cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 44 + col0 * + 82 AS col1, + ( - 62 ) / + col1 AS col1 FROM tab2 AS cor0 +---- +-1 +0 +0 +3816 +5292 +6194 query I rowsort label-4698 SELECT - col1 + 21 / + col2 AS col1 FROM tab0 AS cor0 @@ -28684,8 +28954,15 @@ SELECT ALL - col0 + - 70 * + col2 AS col1, + col2 AS col0 FROM tab2 # Datafusion - Expected - 135 # Datafusion - Expected - 75 # Datafusion - Expected - 153 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "Int64\(95\) \+ \(\- \(\- tab2\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, 95 + - - col2 AS col2 FROM tab2 +---- +118 +135 +153 +46 +64 +75 query I rowsort SELECT 28 - col1 FROM tab0 @@ -29241,8 +29518,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE 55 * - - col2 IS NOT NULL # Datafusion - Expected - 441 # Datafusion - Expected - 7 # Datafusion - Expected - 6561 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col1" at position 0 and "cor0\.col1 \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 7 col1, col1 * + col1 AS col1 FROM tab0 AS cor0 +---- +1 +441 +6561 +7 +7 +7 query I rowsort label-4791 SELECT DISTINCT + COUNT ( * ) * - ( + MAX ( DISTINCT - 99 ) ) AS col0 FROM tab2 AS cor0 @@ -29511,8 +29795,15 @@ SELECT - + ( - COUNT ( * ) ) col0 FROM tab2 cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, + col0 AS col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN + + col0 AND + col1 @@ -30891,8 +31182,10 @@ SELECT DISTINCT col1 * + 15 * + + 10 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to cb3e4e01b32f179c50537fbb7b00e6b8 -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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 3 AS col1, 74 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 +---- +18 values hashing to 723d5170e5b664ee2f8a5ba45e616595 query I rowsort label-5065 SELECT DISTINCT - SUM ( ALL - col0 ) FROM tab2 AS cor0 @@ -31644,8 +31937,13 @@ SELECT ALL * FROM tab2 WHERE NOT 33 / - col2 IN ( + col0, + col1, col0 ) # Datafusion - Expected - 2720 # Datafusion - Expected - -64 # Datafusion - Expected - 2720 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "Int64\(40\) \* Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, 40 * + 68 AS col2 FROM tab2 WHERE NOT + col1 <= - - col0 +---- +-46 +-64 +2720 +2720 query III rowsort SELECT * FROM tab0 WHERE NOT ( NOT NULL NOT IN ( - col1, + 36 * - col1 - + col2 ) ) @@ -31762,8 +32060,15 @@ SELECT col1 + ( - + 9 ) AS col1 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \+ tab0\.col2 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 + + col2 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 +---- +0 +0 +0 +NULL +NULL +NULL query I rowsort label-5209 SELECT DISTINCT - col0 - col0 / 36 AS col2 FROM tab1 @@ -31849,8 +32154,11 @@ SELECT - col2 AS col2, + CAST ( + - 57 AS INTEGER ) * + col2 * + - 4 * + - col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(56\) \+ \(\- Int64\(10\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +0 +68 query II rowsort SELECT - 66 * + 91 AS col1, + col0 + + - col0 AS col2 FROM tab2 @@ -32973,8 +33281,15 @@ SELECT DISTINCT COUNT ( * ) * + + COUNT ( ALL - + col0 ) / + COUNT ( * ) FROM ta # Datafusion - Expected - -47 # Datafusion - Expected - 58 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 58 AS col1, - col1 AS col1 FROM tab1 +---- +-14 +-47 +-5 +58 +58 +58 query I rowsort label-5415 SELECT DISTINCT MAX ( ( col0 ) ) FROM tab0 @@ -33480,8 +33795,11 @@ SELECT DISTINCT - col0 * - ( + col1 ) * - + col0 AS col1, + 60 * + 5 + - 14 * - # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-56\)\) AS Int32\) AS col0" at position 0 and "\(\- \(\- sum\(\(\- tab1\.col1\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( - - 56 AS INTEGER ) AS col0, - ( - SUM ( - col1 ) ) AS col0 FROM tab1 +---- +-66 +56 query III rowsort label-5497 SELECT * FROM tab0 WHERE NOT col2 <= - CAST ( NULL AS INTEGER ) @@ -34048,8 +34366,15 @@ SELECT DISTINCT - - col0 * - - col1 - + + col2 AS col2, 78 AS col0 FROM tab1 AS # Datafusion - Expected - 51 # Datafusion - Expected - NULL # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ tab2\.col2 AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) + col2 AS col0, 51 AS col0 FROM tab2 +---- +51 +51 +51 +NULL +NULL +NULL query I rowsort SELECT + 36 - - col1 + + col0 + col2 AS col2 FROM tab0 @@ -34458,8 +34783,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, - 25 col0 FROM tab0 AS cor0 +---- +-25 +-3 query I rowsort label-5657 SELECT + + MIN ( + + 12 ) FROM tab2 AS cor0 @@ -35303,8 +35631,15 @@ SELECT col0 + - col1 + + + 86 * col0 + - + 59 AS col0 FROM tab0 # Datafusion - Expected - 91 # Datafusion - Expected - -68437 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ \(\- Int64\(\-72\)\) \- tab1\.col2 \+ \(\- tab1\.col1\) \+ \(\- Int64\(\-94\)\) \+ tab1\.col1 \* tab1\.col2 \* \(\- tab1\.col0\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 + - ( + - 72 ) - col2 + - col1 + - - 94 + col1 * col2 * - + col0 AS col1, col0 AS col1 FROM tab1 +---- +-24888 +-290694 +-68437 +51 +85 +91 query I rowsort SELECT DISTINCT + 38 + col1 col0 FROM tab0 @@ -37197,8 +37532,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- count\(\(\- cor0\.col2\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) AS col2, - COUNT ( ALL - + col2 ) AS col2 FROM tab2 cor0 +---- +-3 +-3 query I rowsort label-6100 SELECT - COUNT ( ALL + + 15 ) AS col0 FROM tab1 AS cor0 @@ -37527,8 +37865,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), + COUNT ( * ) FROM tab1 cor0 +---- +3 +3 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT + 98 IS NULL @@ -37911,8 +38252,15 @@ SELECT * FROM tab2 AS cor0 WHERE + 90 IS NOT NULL # Datafusion - Expected - -27 # Datafusion - Expected - -764 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* Int64\(\-75\) \- Int64\(89\) AS col1" at position 0 and "Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 9 * - 75 - 89 AS col1, - 27 AS col1 FROM tab1 +---- +-27 +-27 +-27 +-764 +-764 +-764 query II rowsort SELECT col2 * - 27 + + col0 AS col0, + col1 AS col2 FROM tab2 @@ -38922,8 +39270,15 @@ SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT ( + + col2 ) <> NULL # Datafusion - Expected - -87 # Datafusion - Expected - -97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0, + ( ( - + col0 ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL +---- +-15 +-15 +-87 +-87 +-97 +-97 query III rowsort SELECT ALL * FROM tab1 cor0 WHERE NOT - 42 NOT BETWEEN NULL AND NULL @@ -39510,8 +39865,10 @@ SELECT DISTINCT - col2 * - 10 * + 45 * col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f00e7e39381013fd3fe7f7a18e8bbf76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 1 and "\(\- cor0\.col2\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - - col1 / + col2 AS col2, 14 col0, - col2 AS col0 FROM tab2 AS cor0 +---- +9 values hashing to 3d321cf7207ebf3405dae447b76cac6e query I rowsort label-6481 SELECT DISTINCT COUNT ( * ) * 67 + ( - - 99 ) AS col0 FROM tab2 AS cor0 @@ -40660,8 +41017,11 @@ SELECT ALL col2 * - col1 * - - 61 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - COUNT ( * ) * + + COUNT ( * ) col1, + 20 AS col1 FROM tab1 AS cor0 +---- +20 +9 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE col1 + + + 98 = col1 * + + col0 * - 5 * + col2 @@ -40713,8 +41073,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ), + COUNT ( * ) FROM tab1 cor0 +---- +3 +3 query II rowsort SELECT - col0 + - - ( - + col0 ) AS col2, col1 AS col0 FROM tab2 AS cor0 @@ -41269,8 +41632,11 @@ SELECT ALL * FROM tab1 cor0 WHERE NOT - col1 + - ( + col0 ) BETWEEN NULL AND NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col2, - COUNT ( * ) * 4 AS col2 FROM tab2 AS cor0 +---- +-12 +NULL query II rowsort label-6764 SELECT 46 AS col1, col1 / - col1 FROM tab1 @@ -41611,8 +41977,15 @@ SELECT ALL + 55 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - 1112643 # Datafusion - Expected - 81 # Datafusion - Expected - 2854035 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "\(\- tab0\.col1\) \* \(\- tab0\.col1\) \* \(\- tab0\.col0\) \* Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, - col1 * - col1 * - col0 * - 29 AS col0 FROM tab0 +---- +1 +1112643 +21 +2813 +2854035 +81 query I rowsort SELECT ALL col0 + + col0 + col2 FROM tab1 AS cor0 @@ -41662,8 +42035,15 @@ SELECT DISTINCT - ( + 53 ) + COUNT ( * ) AS col0 FROM tab2 # Datafusion - Expected - 48 # Datafusion - Expected - 6825 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* tab1\.col0 \+ \(\- Int64\(\-7\)\) \* tab1\.col0 AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * col0 + - - 7 * col0 AS col1, 48 AS col1 FROM tab1 +---- +48 +48 +48 +5253 +5610 +6825 query I rowsort label-6827 SELECT ALL + SUM ( DISTINCT col2 ) + 78 AS col1 FROM tab1 @@ -41958,8 +42338,11 @@ SELECT DISTINCT + col2 + + ( - col1 ) / - 18 + + col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 +---- +3 +3 query I rowsort SELECT + col2 - + 72 FROM tab1 @@ -42570,8 +42953,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, + 52 AS col0 FROM tab0 +---- +-3 +52 query I rowsort label-6977 SELECT DISTINCT + col0 / + + col1 FROM tab1 @@ -42660,8 +43046,15 @@ SELECT 84 + - 5 * - - col2 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - -9 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \+ Int64\(\-29\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 20 + - 29 AS col2, col1 AS col2 FROM tab2 cor0 +---- +-9 +-9 +-9 +51 +67 +77 query III rowsort SELECT ALL * FROM tab0 WHERE - + col0 * + 99 IS NOT NULL @@ -42900,8 +43293,11 @@ SELECT DISTINCT * FROM tab1 WHERE - - 90 IS NULL # 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 "max\(Int64\(16\)\) \+ sum\(DISTINCT cor0\.col0\) 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 II valuesort SELECT MAX ( 16 ) + + SUM ( DISTINCT + col0 ) AS col0, COUNT ( - - 56 ) AS col0 FROM tab2 AS cor0 +---- +201 +3 query II rowsort SELECT DISTINCT + 44 col2, + 22 AS col1 FROM tab2 cor0 @@ -42939,8 +43335,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN - - col2 AND NULL # Datafusion - Expected - -30 # Datafusion - Expected - 41 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(41\) AS Int32\) AS col1" at position 0 and "\(\- cor0\.col1\) \+ Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( + + 41 AS INTEGER ) AS col1, - col1 + + + 47 AS col1 FROM tab2 AS cor0 +---- +-20 +-30 +-4 +41 +41 +41 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT - ( - - col1 ) * - 1 * + - col0 IS NOT NULL @@ -43898,8 +44301,15 @@ SELECT ALL 52 / MAX ( ALL + - 66 ) AS col2 FROM tab1 # Datafusion - Expected - 59 # Datafusion - Expected - -5096 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \* Int64\(56\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * + 56 AS col0, col2 AS col0 FROM tab1 +---- +-2856 +-4760 +-5096 +59 +68 +96 query I rowsort SELECT ALL - col2 FROM tab2 WHERE + col1 NOT BETWEEN ( col0 / + 48 ) AND ( 18 ) @@ -43994,8 +44404,15 @@ SELECT + 24 / - + col1 AS col1, + 77 + + col0 FROM tab2 # Datafusion - Expected - 91 # Datafusion - Expected - 96 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, + col0 AS col1 FROM tab1 +---- +51 +59 +68 +85 +91 +96 query I rowsort SELECT ALL 43 * - col1 FROM tab0 @@ -45020,8 +45437,15 @@ SELECT DISTINCT ( - ( col0 ) ) AS col0 FROM tab1 # Datafusion - Expected - -70 # Datafusion - Expected - 77 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "tab2\.col0 \+ \(\- tab2\.col2\) \+ Int64\(\-87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, col0 + - col2 + + - 87 AS col0 FROM tab2 +---- +-63 +-64 +-70 +51 +67 +77 query I rowsort SELECT ALL - col1 + - col2 - + col2 FROM tab2 @@ -45417,8 +45841,11 @@ SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) < col0 * + col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 AS col2, + COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +3 +85 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -47216,8 +47643,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, - 80 AS col2 FROM tab2 +---- +-3 +-80 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT + col0 - col1 + - col0 > NULL @@ -48609,8 +49039,9 @@ SELECT ALL col1 * - + 48 FROM tab0 AS cor0 -48 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \+ cor0\.col0 AS col2" at position 0 and "CAST\(\(\- cor0\.col1\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - col1 ) + + col0 AS col2, CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL +---- query I rowsort SELECT + + col0 * col2 AS col2 FROM tab0 cor0 @@ -48742,8 +49173,15 @@ NULL # Datafusion - Expected - 8 # Datafusion - Expected - 26979 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* tab2\.col2 \* tab2\.col2 AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 * + col2 * col2 AS col1, + 8 AS col1 FROM tab2 +---- +123200 +225388 +26979 +8 +8 +8 query I rowsort label-8001 SELECT - + 90 / - 18 AS col2 FROM tab0 AS cor0 @@ -49517,8 +49955,15 @@ SELECT ALL + COUNT ( * ) / + MIN ( ALL - 37 ), COUNT ( * ) col2 FROM tab1 cor0 # Datafusion - Expected - 893 # Datafusion - Expected - NULL # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* cor0\.col2 \* Int64\(53\) \- Int64\(\-16\) \+ \(\- cor0\.col2\) AS col2" at position 0 and "\(\- cor0\.col1\) \* \(\- Int64\(19\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + col2 * + 53 - + - 16 + - col2 AS col2, - col1 * - + 19 AS col2 FROM tab1 AS cor0 +---- +266 +893 +95 +NULL +NULL +NULL query I rowsort label-8135 SELECT 21 + + MAX ( col1 ) - 5 col0 FROM tab0 cor0 @@ -49776,8 +50221,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 96 AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +-96 +3 query II rowsort label-8175 SELECT ALL + COUNT ( * ), 4 col0 FROM tab0 cor0 @@ -50065,8 +50513,11 @@ SELECT DISTINCT col2 * + 66 + - ( + ( - col0 ) ) AS col2 FROM tab0 AS cor0 WHERE # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, - 99 AS col2 FROM tab0 AS cor0 WHERE NULL = - col2 / - col0 +---- +-99 +0 query I rowsort label-8224 SELECT COUNT ( * ) + + - COUNT ( DISTINCT + col0 ) + + - 51 AS col2 FROM tab1 cor0 @@ -50375,8 +50826,15 @@ SELECT ALL - col2 / - - col1 + + - ( - 32 ) + + - 4 FROM tab0 cor0 # Datafusion - Expected - 3807 # Datafusion - Expected - -97 # Datafusion - Expected - 210 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \- tab0\.col2 AS col2" at position 0 and "\(\- tab0\.col2\) \* \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 - + + col2 AS col2, - col2 * - + col1 AS col2 FROM tab0 +---- +-196 +-62 +-97 +210 +3807 +99 query I rowsort SELECT DISTINCT + col0 - + + col2 * ( - + col2 ) FROM tab2 @@ -50648,8 +51106,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 11 AS col1, + COUNT ( * ) * - 90 AS col1 FROM tab1 +---- +-270 +11 query II rowsort SELECT - col2 AS col1, col2 FROM tab2 AS cor0 @@ -52678,8 +53139,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(\-83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 AS col1, + COUNT ( * ) - + ( - 83 ) AS col1 FROM tab1 +---- +19 +86 query I rowsort label-8641 SELECT DISTINCT ( + COUNT ( ALL col1 ) ) FROM tab1 @@ -53286,8 +53750,15 @@ SELECT + 62 * col2 * + + col2 col2 FROM tab2 AS cor0 # Datafusion - Expected - 94 # Datafusion - Expected - -820 # Datafusion - Expected - 114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(\-82\) AS col1" at position 0 and "Int64\(93\) \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * - 82 AS col1, 93 + + + col1 AS col1 FROM tab0 AS cor0 +---- +-3854 +-8118 +-820 +114 +174 +94 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT + col0 / + + 23 + - + col0 IS NULL @@ -53768,8 +54239,15 @@ SELECT - - 36 FROM tab2 AS cor0 WHERE - CAST ( - + col1 AS INTEGER ) IS NULL # Datafusion - Expected - -47 # Datafusion - Expected - -5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col1, - col1 FROM tab1 cor0 +---- +-14 +-14 +-47 +-47 +-5 +-5 query I rowsort label-8814 SELECT ALL + - SUM ( ALL + + 61 ) AS col2 FROM tab1 cor0 @@ -53799,8 +54277,15 @@ SELECT - 71 + + col1 AS col1 FROM tab2 # Datafusion - Expected - -70 # Datafusion - Expected - -652131 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ tab0\.col0 \+ tab0\.col1 \* Int64\(17\) \* \(\- \(\- tab0\.col1\)\) \* \(\- tab0\.col0\) AS col2" at position 0 and "tab0\.col0 \+ Int64\(\-85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + col1 ) + col0 + + col1 * 17 * - - col1 * - col0 AS col2, col0 + - 85 AS col2 FROM tab0 +---- +-1551 +-1672959 +-652131 +-70 +12 +2 query I rowsort SELECT ALL 76 FROM tab2 WHERE NULL IS NOT NULL @@ -53854,8 +54339,15 @@ NULL # Datafusion - Expected - -7161 # Datafusion - Expected - -6300 # Datafusion - Expected - -6231 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \* \(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "Int64\(93\) \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 84 * - - col0 AS col2, 93 * - col1 AS col2 FROM tab2 AS cor0 +---- +-3864 +-4743 +-5376 +-6231 +-6300 +-7161 query III rowsort label-8827 SELECT DISTINCT * FROM tab2 WHERE NOT + col0 * - - col0 / - CAST ( - + col0 AS FLOAT8 ) + - col0 + col2 BETWEEN - col2 * - col1 AND - 47 @@ -54060,8 +54552,15 @@ NULL # Datafusion - Expected - 7452 # Datafusion - Expected - 5 # Datafusion - Expected - 7452 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(92\) \* Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, 92 * + 81 AS col0 FROM tab1 AS cor0 +---- +14 +47 +5 +7452 +7452 +7452 query I rowsort label-8862 SELECT DISTINCT + - COUNT ( * ) * - COUNT ( col1 ) + + 9 FROM tab2 AS cor0 @@ -54193,8 +54692,15 @@ SELECT - - col2 + + 98 - ( 72 ) / - col2 FROM tab1 AS cor0 # Datafusion - Expected - -10 # Datafusion - Expected - -81 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, - col2 AS col0 FROM tab0 cor0 +---- +-1 +-10 +-21 +-47 +-81 +-99 query I rowsort SELECT - 54 + + col1 AS col2 FROM tab2 cor0 @@ -54920,8 +55426,15 @@ SELECT ALL col1 * + ( - + 71 ) FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 9506 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col2 \- \(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * + col2 - - - col0 AS col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 +---- +690 +783 +9506 +NULL +NULL +NULL query III rowsort SELECT * FROM tab0 AS cor0 WHERE NULL > 23 @@ -55383,8 +55896,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, + 54 AS col1 FROM tab0 AS cor0 +---- +3 +54 query I rowsort SELECT ALL 28 * + col0 FROM tab2 AS cor0 @@ -55670,8 +56186,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col2, + MIN ( ALL + 77 ) AS col2 FROM tab2 cor0 +---- +-3 +77 query I rowsort SELECT DISTINCT - - 81 col0 FROM tab2 AS cor0 @@ -56227,8 +56746,15 @@ SELECT DISTINCT - + COUNT ( * ) * 69 FROM tab2 AS cor0 # Datafusion - Expected - -3080 # Datafusion - Expected - -75 # Datafusion - Expected - -3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col1" at position 0 and "tab2\.col2 \* \(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, col2 * - + col1 AS col1 FROM tab2 +---- +-1173 +-3080 +-3886 +-46 +-64 +-75 query I rowsort SELECT - col1 * + col1 * ( - + col1 ) AS col0 FROM tab1 @@ -56377,8 +56903,15 @@ SELECT DISTINCT 98 col0, COUNT ( * ) AS col2 FROM tab0 # Datafusion - Expected - 60 # Datafusion - Expected - 75 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, 60 AS col2 FROM tab2 +---- +46 +60 +60 +60 +64 +75 query I rowsort SELECT col1 * 83 FROM tab2 WHERE NOT + + col0 - + + col2 = NULL @@ -56528,8 +57061,15 @@ SELECT ( + ( 93 ) ) * + CAST ( + + col0 AS INTEGER ) + - - 7 FROM tab0 cor0 # Datafusion - Expected - -75 # Datafusion - Expected - 1 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) / Int64\(\-72\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 / + - 72 col0, ( - col0 ) AS col0 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +0 +0 +1 query I rowsort label-9271 SELECT DISTINCT + MAX ( DISTINCT + 26 ) AS col2 FROM tab2 AS cor0 @@ -56601,8 +57141,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + - ( - col0 ) + - col2 > NUL # Datafusion - Expected - 4931 # Datafusion - Expected - 95 # Datafusion - Expected - 5491 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "Int64\(88\) \* cor0\.col2 \+ \(\- cor0\.col0\) \* Int64\(\-53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 col0, + 88 * col2 + - col0 * - 53 col0 FROM tab0 AS cor0 +---- +13853 +4931 +5491 +95 +95 +95 query I rowsort SELECT - + 41 * + - col1 + 19 AS col2 FROM tab1 AS cor0 @@ -57372,8 +57919,15 @@ SELECT ALL * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) < + - 71 * col0 # Datafusion - Expected - 81 # Datafusion - Expected - 99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col2 AS Int32\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( col2 AS INTEGER ) AS col0, col1 AS col0 FROM tab0 +---- +1 +10 +21 +47 +81 +99 query III rowsort label-9411 SELECT DISTINCT * FROM tab1 WHERE ( - CAST ( 69 AS INTEGER ) ) IS NOT NULL @@ -57636,8 +58190,15 @@ SELECT * FROM tab0 WHERE NOT - col1 BETWEEN ( NULL ) AND 41 # Datafusion - Expected - 10 # Datafusion - Expected - 97 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, 10 AS col2 FROM tab0 +---- +10 +10 +10 +15 +87 +97 query II rowsort SELECT + col1 AS col0, + col2 FROM tab0 @@ -58271,8 +58832,15 @@ NULL # Datafusion - Expected - 67 # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col2, + col1 AS col2 FROM tab2 +---- +51 +67 +77 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab1 WHERE ( - col2 ) BETWEEN NULL AND NULL @@ -58505,8 +59073,15 @@ SELECT ALL + col2 * col1 + + 87 AS col1 FROM tab1 # Datafusion - Expected - 77 # Datafusion - Expected - 33 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \- tab0\.col1 \+ tab0\.col1 AS col1" at position 0 and "Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 33 - col1 + + col1 col1, 77 AS col1 FROM tab0 +---- +33 +33 +33 +77 +77 +77 query I rowsort SELECT - col1 FROM tab2 WHERE + ( - col1 ) + + - col0 IS NOT NULL @@ -58695,8 +59270,11 @@ SELECT DISTINCT + col1 AS col2, - 1 AS col1 FROM tab0 # 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 col2" at position 0 and "cor0\.col1 / \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 11 col2, col1 / + - col1 col2 FROM tab1 cor0 +---- +-1 +11 query I rowsort label-9621 SELECT ALL - col0 * - - col0 * col1 * - 98 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL @@ -58982,8 +59560,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 / - - CAST ( + ( + 8 ) AS I # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col2, + col1 AS col2 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE + col0 <= NULL @@ -59135,8 +59720,15 @@ SELECT ( - + col1 ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -2425 # Datafusion - Expected - -65 # Datafusion - Expected - 7467 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col2" at position 0 and "cor0\.col1 \* Int64\(97\) \+ \(\- \(\- cor0\.col0\)\) \* Int64\(\-26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 65 AS col2, + col1 * + 97 + - - col0 * - 26 AS col2 FROM tab0 AS cor0 +---- +-225 +-2425 +-65 +-65 +-65 +7467 query III rowsort label-9690 SELECT * FROM tab1 WHERE NOT col1 * + CAST ( - col2 AS INTEGER ) IS NOT NULL @@ -59578,8 +60170,15 @@ SELECT ALL * FROM tab1 WHERE - - 72 + - col0 IS NOT NULL # Datafusion - Expected - 2652 # Datafusion - Expected - 94 # Datafusion - Expected - 2301 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ Int64\(89\) AS col1" at position 0 and "Int64\(39\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + ( 89 ) AS col1, 39 * + col2 col1 FROM tab1 AS cor0 +---- +103 +136 +2301 +2652 +3744 +94 query I rowsort SELECT ALL - col0 FROM tab2 cor0 WHERE ( NULL ) IS NULL @@ -60434,8 +61033,15 @@ SELECT DISTINCT CAST ( + 52 AS INTEGER ) AS col1 FROM tab1 # Datafusion - Expected - 0 # Datafusion - Expected - 91 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col1 / Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col2, col1 / 35 col2 FROM tab1 +---- +0 +0 +1 +51 +85 +91 query III rowsort SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - 11 / + + col1 * col1 + - + 16 @@ -60896,8 +61502,15 @@ SELECT COUNT ( * ) + MIN ( DISTINCT col1 ) AS col1 FROM tab1 # Datafusion - Expected - -70 # Datafusion - Expected - -80 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \+ \(\- tab2\.col2\) AS col1" at position 0 and "Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - col2 ) + - col2 AS col1, - 70 col1 FROM tab2 +---- +-116 +-46 +-70 +-70 +-70 +-80 query I rowsort label-9998 SELECT ALL - CAST ( - 32 AS INTEGER ) AS col1 FROM tab1 diff --git a/data/sqlite/random/aggregates/slt_good_129.slt b/data/sqlite/random/aggregates/slt_good_129.slt index 33cc6f1..7c3e74b 100644 --- a/data/sqlite/random/aggregates/slt_good_129.slt +++ b/data/sqlite/random/aggregates/slt_good_129.slt @@ -77,8 +77,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - SUM ( 47 ) AS col1, + 39 * - COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL +---- +0 +NULL query II rowsort SELECT col1 AS col1, + col2 FROM tab2 @@ -1186,8 +1189,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE + 77 IS NULL # Datafusion - Expected - 16 # Datafusion - Expected - 39 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col2" at position 0 and "tab2\.col1 \- Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 AS col2, col1 - 51 col2 FROM tab2 +---- +0 +16 +26 +39 +39 +39 query I rowsort SELECT DISTINCT + col0 + - 13 + - col1 + col0 AS col1 FROM tab2 @@ -2382,8 +2392,15 @@ SELECT ALL CAST ( + + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 78 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 78 AS col0, 64 AS col0 FROM tab0 AS cor0 +---- +64 +64 +64 +78 +78 +78 query I rowsort label-394 SELECT - - COUNT ( * ) * + + 96 AS col1 FROM tab1 AS cor0 @@ -2881,8 +2898,15 @@ SELECT * FROM tab0 cor0 WHERE + ( + 86 ) IS NOT NULL # Datafusion - Expected - 1 # 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 "cor0\.col0 / cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 36 AS col1, col0 / + col0 AS col1 FROM tab2 AS cor0 +---- +1 +1 +1 +36 +36 +36 query I rowsort SELECT DISTINCT - 88 AS col0 FROM tab2 WHERE NULL BETWEEN NULL AND - 38 - + col2 @@ -3201,8 +3225,15 @@ SELECT DISTINCT - col2 + - col2 * 56 FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - -437175 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* tab2\.col0 \* \(\- tab2\.col1\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 * col0 * - col1 AS col1, col0 AS col1 FROM tab2 +---- +-204102 +-428736 +-437175 +46 +64 +75 query I rowsort label-531 SELECT DISTINCT ( + COUNT ( * ) ) * + + 38 FROM tab0 @@ -4557,8 +4588,11 @@ SELECT 71 * - - COUNT ( * ) + MAX ( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, + 99 AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL +---- +0 +99 query III rowsort SELECT * FROM tab2 WHERE + 85 IS NULL diff --git a/data/sqlite/random/aggregates/slt_good_13.slt b/data/sqlite/random/aggregates/slt_good_13.slt index 2020100..8916b7a 100644 --- a/data/sqlite/random/aggregates/slt_good_13.slt +++ b/data/sqlite/random/aggregates/slt_good_13.slt @@ -81,7 +81,7 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - - 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to b2bca4f85632dc5ee1c75834b3813c34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- \(\- \(\- cor0\.col0\)\) \+ cor0\.col1 \* Int64\(\-69\) AS col1" at position 0 and "Int64\(\-34\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Schema error: Schema contains qualified field name cor0\.col1 and unqualified field name col1 which would be ambiguous SELECT col1 - - - col0 + + col1 * - 69 col1, + col1 AS col1, + - 34 AS col1 FROM tab2 AS cor0 query I rowsort label-8 @@ -326,8 +326,11 @@ SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 79 AND + + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( * ) AS col2, COUNT ( * ) col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL +---- +0 +0 query I rowsort SELECT DISTINCT col0 - + 95 FROM tab0 AS cor0 @@ -763,8 +766,15 @@ SELECT 85 + col1 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -113 # Datafusion - Expected - 99 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "tab0\.col0 \+ \(\- tab0\.col1\) \+ \(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 col1, col0 + - + col1 + - col2 AS col1 FROM tab0 +---- +-113 +-3 +10 +47 +56 +99 query I rowsort SELECT DISTINCT 44 + + 75 AS col1 FROM tab1 @@ -871,8 +881,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT - 57 + + + col2 * + + 59 * - col1 IS NOT NU # Datafusion - Expected - 58 # Datafusion - Expected - 81 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col1 / \(\- cor0\.col0\) \+ Int64\(\-30\) \+ \(\- Int64\(\-88\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col0, + col1 / - col0 + + - 30 + - + ( - 88 ) AS col0 FROM tab0 AS cor0 +---- +1 +21 +53 +58 +58 +81 query I rowsort label-136 SELECT - COUNT ( DISTINCT + - ( ( 6 ) ) ) FROM tab1 AS cor0 @@ -1422,8 +1439,15 @@ SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <> ( NULL # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, + ( + col2 ) col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-228 SELECT + MAX ( DISTINCT - col1 ) FROM tab0 WHERE NOT ( NOT ( col0 * + ( + col2 ) + - col1 / - col1 IS NULL ) ) @@ -1826,8 +1850,15 @@ SELECT ALL + MIN ( - col2 ) FROM tab1 AS cor0 # Datafusion - Expected - 4 # Datafusion - Expected - 96 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, + 4 AS col0 FROM tab1 cor0 +---- +4 +4 +4 +59 +68 +96 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 * - col2 IS NOT NULL @@ -1890,8 +1921,15 @@ SELECT ALL - 4 * CAST ( + - col0 AS INTEGER ) + - col2 FROM tab2 cor0 # Datafusion - Expected - -64 # Datafusion - Expected - -58 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col2, - col0 AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-46 +-58 +-64 +-75 query I rowsort label-302 SELECT + COUNT ( * ) / + 63 + + 2 AS col0 FROM tab2 AS cor0 @@ -3315,8 +3353,9 @@ SELECT ALL - 90 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, - col2 AS col0 FROM tab2 AS cor0 WHERE 89 IS NULL +---- query I rowsort SELECT + + 76 * + col0 AS col0 FROM tab2 AS cor0 WHERE NULL < + 16 @@ -3995,8 +4034,15 @@ SELECT DISTINCT - ( - - 13 ) FROM tab1 # Datafusion - Expected - 0 # Datafusion - Expected - 96 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "tab1\.col2 \+ \(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, col2 + - col2 AS col0 FROM tab1 +---- +0 +0 +0 +59 +68 +96 query I rowsort label-654 SELECT ALL + COUNT ( col1 ) AS col0 FROM tab1 AS cor0 @@ -4010,8 +4056,15 @@ SELECT ALL + COUNT ( col1 ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -50 # Datafusion - Expected - 62 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-62\)\) AS col2" at position 0 and "Int64\(14\) \- cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 62 AS col2, 14 - + col0 AS col2 FROM tab2 AS cor0 +---- +-32 +-50 +-61 +62 +62 +62 query I rowsort label-656 SELECT ALL CAST ( - col1 AS INTEGER ) FROM tab2 cor0 @@ -4249,8 +4302,15 @@ SELECT DISTINCT + CAST ( - col1 AS INTEGER ) FROM tab1 cor0 # Datafusion - Expected - 85 # Datafusion - Expected - -6251 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \+ \(\- cor0\.col0\) \* cor0\.col2 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( ( - 63 ) ) + + - col0 * + col2 col1, + col0 AS col1 FROM tab1 AS cor0 +---- +-4959 +-5078 +-6251 +51 +85 +91 query I rowsort SELECT - col1 * + + col1 + + col1 + ( col0 ) AS col1 FROM tab2 AS cor0 @@ -5031,8 +5091,15 @@ SELECT * FROM tab2 WHERE NOT - - 36 IS NULL # Datafusion - Expected - 81 # Datafusion - Expected - 99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, col1 AS col0 FROM tab0 +---- +1 +10 +21 +47 +81 +99 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT - ( + - col0 ) - + col2 + - - 32 >= NULL @@ -5741,8 +5808,15 @@ SELECT DISTINCT SUM ( - col2 ) * COUNT ( * ) + + 77 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -72 # Datafusion - Expected - 96 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col2" at position 0 and "Int64\(\-25\) \+ \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 AS col2, - 25 + - col1 AS col2 FROM tab1 AS cor0 +---- +-30 +-39 +-72 +59 +68 +96 query I rowsort SELECT DISTINCT 4 AS col2 FROM tab0 cor0 @@ -5864,8 +5938,15 @@ SELECT DISTINCT * FROM tab2 WHERE + + col2 BETWEEN 33 AND - + col0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col1, col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query II rowsort SELECT col2, col0 col0 FROM tab2 @@ -8649,8 +8730,15 @@ SELECT ALL - col1 * - + 51 AS col0 FROM tab1 cor0 # Datafusion - Expected - 157 # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(10\) \+ \(\- \(\- cor0\.col0\)\) \+ Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) col1, 10 + - - col0 + 50 AS col1 FROM tab0 AS cor0 +---- +147 +157 +75 +NULL +NULL +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 @@ -8659,8 +8747,15 @@ SELECT CAST ( NULL AS INTEGER ) col1, 10 + - - col0 + 50 AS col1 FROM tab0 AS co # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col0 AS col1, col0 AS col1 FROM tab2 cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT + 33 col2 FROM tab2 @@ -9773,8 +9868,15 @@ SELECT ALL + 46 col2, col1 + - 38 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -13 # Datafusion - Expected - -5 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(\-13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, - 13 AS col0 FROM tab1 AS cor0 +---- +-13 +-13 +-13 +-14 +-47 +-5 query I rowsort label-1614 SELECT DISTINCT - COUNT ( DISTINCT - col2 ) FROM tab1 AS cor0 @@ -9795,8 +9897,15 @@ SELECT - + 27 FROM tab1 cor0 # Datafusion - Expected - -91 # Datafusion - Expected - 70686 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* CAST\(cor0\.col0 AS Int32\) \* cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 99 * CAST ( + col0 AS INTEGER ) * + col1 AS col0, + ( - + col0 ) AS col0 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +42075 +423423 +70686 query II rowsort SELECT + 42, + ( col1 ) * 63 - - - 43 * - col1 AS col0 FROM tab0 AS cor0 @@ -10147,8 +10256,11 @@ SELECT DISTINCT + ( + 20 ), + col0 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(22\)\) AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MIN ( DISTINCT 22 ) AS col2, + 91 AS col2 FROM tab2 AS cor0 +---- +22 +91 query I rowsort label-1677 SELECT DISTINCT CAST ( + AVG ( ALL + + 79 ) AS INTEGER ) AS col1 FROM tab0 AS cor0 @@ -10339,8 +10451,11 @@ SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 ) WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 21 col2, + COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-21 +3 query I rowsort SELECT col2 * - + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL @@ -10536,8 +10651,15 @@ SELECT DISTINCT * FROM tab1 WHERE NULL > col1 # Datafusion - Expected - -67 # Datafusion - Expected - 77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "\(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, - col1 AS col0 FROM tab2 +---- +-51 +-67 +-77 +51 +67 +77 query I rowsort SELECT 4 FROM tab0 WHERE NOT NULL IS NOT NULL @@ -10722,8 +10844,15 @@ SELECT + - 76 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 97 # Datafusion - Expected - -55 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 AS col1, + 97 AS col1 FROM tab0 +---- +-55 +-55 +-55 +97 +97 +97 query I rowsort SELECT + col1 / - 8 * + - col2 col1 FROM tab1 WHERE NOT + + col2 < NULL @@ -10790,8 +10919,15 @@ SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE col1 BETWEEN NULL AND - - 68 # Datafusion - Expected - -32 # Datafusion - Expected - 89 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col0" at position 0 and "\(\- Int64\(32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( 89 ) col0, - ( 32 ) col0 FROM tab2 AS cor0 +---- +-32 +-32 +-32 +89 +89 +89 query I rowsort SELECT DISTINCT + 6 * + + col2 - 86 FROM tab0 AS cor0 @@ -11212,8 +11348,15 @@ SELECT ALL col0 * - - col1 FROM tab1 # Datafusion - Expected - 5376 # Datafusion - Expected - -67 # Datafusion - Expected - 6300 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) AS col2" at position 0 and "tab2\.col0 \* Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 67 col2, + col0 * + 84 AS col2 FROM tab2 +---- +-67 +-67 +-67 +3864 +5376 +6300 query III rowsort SELECT * FROM tab1 WHERE + ( - col0 ) * - - 88 IS NULL @@ -11832,8 +11975,11 @@ SELECT ALL - COUNT ( * ) * + - 23 + + 92 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1559 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(17\) \+ Int64\(9\) \+ \(\- min\(Int64\(\-20\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 * + 17 + + + 9 + - MIN ( ALL - 20 ) AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +1559 +3 query I rowsort label-1961 SELECT + CAST ( - 17 AS INTEGER ) FROM tab2 @@ -11849,8 +11995,15 @@ SELECT + CAST ( - 17 AS INTEGER ) FROM tab2 # Datafusion - Expected - -10 # Datafusion - Expected - -97 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, - col2 AS col0 FROM tab0 +---- +-10 +-15 +-47 +-87 +-97 +-99 query I rowsort label-1963 SELECT + COUNT ( * ) FROM tab1 WHERE NOT - col1 >= NULL @@ -12250,8 +12403,11 @@ SELECT * FROM tab2 cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -4418 # Datafusion - Expected - -243 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(26\)\)\) \+ Int64\(32\) \* min\(Int64\(\-84\)\) \+ Int64\(16\) \+ Int64\(\-20\) \* min\(Int64\(86\)\) AS col0" at position 0 and "Int64\(81\) \* \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - SUM ( DISTINCT + 26 ) + + 32 * MIN ( ALL - 84 ) + 16 + - 20 * + MIN ( + 86 ) AS col0, 81 * - + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 +---- +-243 +-4418 query I rowsort SELECT 83 + - col1 FROM tab1 @@ -12973,8 +13129,15 @@ SELECT ALL + COUNT ( * ) / - 45 * - COUNT ( * ) AS col1 FROM tab2 cor0 # Datafusion - Expected - 4740 # Datafusion - Expected - -99 # Datafusion - Expected - 4822 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col0 \+ \(\- \(\- Int64\(45\)\)\) \+ Int64\(\-52\) \* Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 col0, col0 + - - ( 45 ) + - 52 * - 90 AS col0 FROM tab0 cor0 +---- +-10 +-47 +-99 +4740 +4812 +4822 query I rowsort label-2147 SELECT - col1 + - + col2 / - col1 + + - 41 * col2 AS col0 FROM tab0 @@ -13070,8 +13233,15 @@ SELECT ALL * FROM tab1 WHERE NOT - 60 IN ( col1, + col1 - 86 ) # Datafusion - Expected - 59 # Datafusion - Expected - 41 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 AS col0, 59 AS col0 FROM tab2 +---- +41 +41 +41 +59 +59 +59 query I rowsort label-2163 SELECT col2 / col0 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 @@ -13183,8 +13353,15 @@ SELECT DISTINCT + CAST ( + 63 AS INTEGER ) FROM tab2 # Datafusion - Expected - 186 # Datafusion - Expected - 5 # Datafusion - Expected - 180 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "tab1\.col0 \+ Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, col0 + + 95 AS col2 FROM tab1 +---- +14 +146 +180 +186 +47 +5 query I rowsort label-2180 SELECT DISTINCT MIN ( DISTINCT + - col0 ) AS col2 FROM tab0 @@ -13643,8 +13820,15 @@ SELECT DISTINCT - COUNT ( col1 ) + - 34 AS col1 FROM tab2 # Datafusion - Expected - -6121 # Datafusion - Expected - -5 # Datafusion - Expected - -4948 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(67\) \+ \(\- cor0\.col0\) \* \(\- \(\- cor0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, + 67 + - col0 * - - col2 AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-4829 +-4948 +-5 +-6121 query I rowsort SELECT DISTINCT - 39 col0 FROM tab0 cor0 @@ -15161,8 +15345,13 @@ SELECT ALL + col2 + + col2 AS col2 FROM tab2 WHERE NOT NULL >= NULL # Datafusion - Expected - 34 # Datafusion - Expected - 0 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 / \(\- Int64\(40\)\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 / - ( + 40 ) AS col1, 34 AS col1 FROM tab2 +---- +-1 +0 +34 +34 query I rowsort SELECT DISTINCT + 75 col1 FROM tab2 @@ -15308,8 +15497,15 @@ SELECT DISTINCT + - 22 col2 FROM tab2 AS cor0 # Datafusion - Expected - 3 # Datafusion - Expected - 6188 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* \(\- \(\- tab1\.col2\)\) AS col0" at position 0 and "Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + col0 ) * - - col2 AS col0, 3 AS col0 FROM tab1 +---- +3 +3 +3 +4896 +5015 +6188 query I rowsort label-2543 SELECT DISTINCT + col0 * col1 + - + col0 * col0 / 20 + + CAST ( - 10 AS INTEGER ) FROM tab2 WHERE + col1 / 49 BETWEEN col2 AND - + 12 @@ -15364,8 +15560,15 @@ SELECT ALL + 91 * - 13 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -33 # Datafusion - Expected - 75 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col0 AS col2, - 33 AS col2 FROM tab2 AS cor0 +---- +-33 +-33 +-33 +46 +64 +75 query I rowsort label-2552 SELECT ALL - CAST ( - 79 AS INTEGER ) FROM tab2 cor0 @@ -16244,8 +16447,11 @@ SELECT ALL * FROM tab1 WHERE + col2 IN ( + + col1, col1 / + col0, - col1, - CAST # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(tab1\.col1\)\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MIN ( col1 ) AS col2, 93 AS col2 FROM tab1 +---- +-5 +93 query I rowsort label-2694 SELECT + col0 / + 83 FROM tab0 AS cor0 @@ -16502,8 +16708,15 @@ SELECT * FROM tab1 WHERE NULL > + ( + 34 ) # Datafusion - Expected - 9 # Datafusion - Expected - 7 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 AS col0, 9 AS col0 FROM tab2 +---- +7 +7 +7 +9 +9 +9 query I rowsort label-2737 SELECT SUM ( DISTINCT - 87 ) FROM tab2 @@ -16556,8 +16769,11 @@ SELECT ALL + 55 * + CAST ( NULL AS FLOAT8 ) AS col1 FROM tab2 cor0 WHERE NOT NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - -624 # Datafusion - Expected - -2256 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \+ \(\- cor0\.col0\) \* cor0\.col2 AS col2" at position 0 and "Int64\(\-48\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - col1 ) + ( - col0 ) * col2 AS col2, - 48 * + col2 col2 FROM tab0 AS cor0 WHERE col1 >= col0 +---- +-2256 +-624 query I rowsort SELECT - col2 + + col1 * 96 FROM tab1 AS cor0 @@ -16573,8 +16789,15 @@ SELECT - col2 + + col1 * 96 FROM tab1 AS cor0 # Datafusion - Expected - 41 # Datafusion - Expected - 78 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col0 / cor0\.col0 AS col1" at position 0 and "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + + col0 / col0 AS col1, 41 AS col1 FROM tab2 AS cor0 +---- +41 +41 +41 +52 +68 +78 query I rowsort SELECT DISTINCT + 70 FROM tab1 AS cor0 WHERE NOT - 0 + - col1 IS NOT NULL @@ -17243,8 +17466,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 91 col1, - ( + + 50 ) * ( - + COUNT ( * ) ) col1 FROM tab1 cor0 +---- +-91 +150 query I rowsort SELECT 78 + + - col1 FROM tab0 @@ -18189,8 +18415,15 @@ SELECT DISTINCT - COUNT ( DISTINCT - col2 ) FROM tab1 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 col2, + col0 AS col2 FROM tab1 cor0 +---- +51 +51 +85 +85 +91 +91 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + col1 <= col0 @@ -18514,8 +18747,15 @@ SELECT ALL 15 + - col2 * - 61 + - - 57 AS col1 FROM tab2 # Datafusion - Expected - 97 # Datafusion - Expected - 75 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(20\) \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, 20 + col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL +---- +46 +64 +71 +75 +87 +97 query I rowsort label-3078 SELECT - ( - + col2 ) AS col2 FROM tab1 cor0 WHERE + col0 + col0 * + CAST ( NULL AS FLOAT8 ) + - col1 - col0 * col2 + - col0 BETWEEN - col0 AND NULL @@ -18844,8 +19084,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(\-64\) \+ count\(DISTINCT Int64\(0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 22 + 6 AS col2, COUNT ( * ) / + - 64 + COUNT ( DISTINCT 0 ) AS col2 FROM tab0 WHERE - 4 IN ( - col0 + + col1, ( - col0 ) / + - 87 ) +---- +0 +28 query III rowsort SELECT DISTINCT * FROM tab0 WHERE col0 BETWEEN NULL AND NULL @@ -19839,8 +20082,15 @@ SELECT DISTINCT * FROM tab1 cor0 WHERE col0 IS NULL # Datafusion - Expected - -4896 # Datafusion - Expected - 6 # Datafusion - Expected - -5015 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col1\) AS Int32\) \+ Int64\(96\) \- cor0\.col0 AS col2" at position 0 and "cor0\.col2 \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - col1 AS INTEGER ) + 96 - + + col0 AS col2, col2 * - col0 AS col2 FROM tab1 AS cor0 +---- +-42 +-4896 +-5015 +-6188 +31 +6 query I rowsort SELECT DISTINCT 87 FROM tab2 WHERE + 29 + - 2 IS NOT NULL @@ -20061,8 +20311,15 @@ SELECT ALL MIN ( ALL 72 ) FROM tab2 # Datafusion - Expected - -66 # Datafusion - Expected - -99 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col2" at position 0 and "\(\- CAST\(Int64\(66\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, - CAST ( + 66 AS INTEGER ) col2 FROM tab0 +---- +-10 +-47 +-66 +-66 +-66 +-99 query I rowsort label-3334 SELECT ALL col0 + + CAST ( - + col1 AS INTEGER ) FROM tab2 @@ -20090,8 +20347,15 @@ SELECT col0 + 60 FROM tab2 # Datafusion - Expected - 131 # Datafusion - Expected - 96 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "tab1\.col0 \+ \(\- Int64\(\-42\)\) \+ \(\- tab1\.col2\) / Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, col0 + - - 42 + - col2 / + 23 AS col1 FROM tab1 +---- +125 +131 +59 +68 +89 +96 query I rowsort label-3338 SELECT - COUNT ( * ) - - + COUNT ( * ) + - ( - + SUM ( ALL - 66 ) ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) >= NULL @@ -21672,8 +21936,10 @@ SELECT ALL - + COUNT ( * ) + 63 AS col0 FROM tab0 AS cor0 WHERE col0 * - ( - CAS # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 5d85fbe6cf63a33640c886e21ff2325d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "Int64\(17\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col1 AS col0, - 13 AS col1, 17 AS col0 FROM tab2 +---- +9 values hashing to 4b3232f81b0175906fe5b89c3127393b query I rowsort label-3608 SELECT - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -22087,8 +22353,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 +---- +3 +3 query I rowsort SELECT ALL - ( - ( - col2 ) ) AS col2 FROM tab0 @@ -22251,8 +22520,10 @@ SELECT - - 10 * + 78 col0, - 72 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 97f8b9e9c54a4e1c3dcf93bba3a2a872 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 69 AS col0, - col2 AS col0, - - col2 FROM tab2 AS cor0 +---- +9 values hashing to 12ea1609b5068633baeac379e80be840 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL @@ -22318,8 +22589,15 @@ SELECT ALL * FROM tab1 WHERE NOT - col2 / - + 37 - + 94 * + - 21 IS NOT NULL # Datafusion - Expected - 87 # Datafusion - Expected - 0 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) / Int64\(52\) AS col1" at position 0 and "\(\- \(\- cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 / + 52 AS col1, - ( - col0 ) AS col1 FROM tab0 cor0 +---- +0 +0 +0 +15 +87 +97 query I rowsort SELECT DISTINCT - col1 * - col1 * - col2 AS col2 FROM tab1 AS cor0 @@ -22507,8 +22785,15 @@ SELECT 53 + + SUM ( ALL - 98 ) FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 24 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \+ \(\- Int64\(\-75\)\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 + - - 75 AS col2, col1 AS col2 FROM tab1 +---- +-10 +-16 +14 +24 +47 +5 query I rowsort SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL < NULL ) @@ -22954,8 +23239,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ), + COUNT ( * ) FROM tab2 AS cor0 +---- +3 +3 query I rowsort SELECT + col2 + - - col2 AS col2 FROM tab0 cor0 @@ -24251,8 +24539,15 @@ SELECT col2 FROM tab1 WHERE NOT col0 IS NOT NULL # Datafusion - Expected - 10 # Datafusion - Expected - 9603 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* tab0\.col0 AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * + col0 AS col1, col2 AS col1 FROM tab0 +---- +10 +47 +705 +870 +9603 +99 query II rowsort SELECT DISTINCT + ( 72 ) AS col0, col0 - + + col1 AS col2 FROM tab0 @@ -24469,8 +24764,10 @@ SELECT + 99 col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to b128e3130f5ff2a66de43aebfea36b65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "\(\- tab0\.col0\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL col1 AS col0, ( ( - col0 ) ), + - col0 AS col0 FROM tab0 +---- +9 values hashing to 2675f5f911e7746d89e0da6d487fdd25 query I rowsort SELECT DISTINCT 50 * col1 FROM tab2 WHERE NOT - 72 NOT BETWEEN + + col1 + col2 AND NULL @@ -24631,8 +24928,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * ( - - col0 ) IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 AS col2, + CAST ( NULL AS INTEGER ) * - 83 AS col2 FROM tab0 AS cor0 +---- +15 +87 +97 +NULL +NULL +NULL query I rowsort SELECT - col2 * - col2 + - col0 + - 25 - + 13 + col1 * col2 * + - 78 * + col1 AS col0 FROM tab2 AS cor0 @@ -24683,8 +24987,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - MIN ( + - col2 ) AS col0, + ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE NULL <= ( NULL ) +---- +0 +NULL query I rowsort label-4109 SELECT + COUNT ( DISTINCT - 79 ) FROM tab1 @@ -25244,8 +25551,11 @@ SELECT * FROM tab1 AS cor0 WHERE NOT col2 > + + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(98\)\)\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - COUNT ( ALL + 98 ) AS col1, - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +0 +3 query II rowsort SELECT ALL + 51, + col0 AS col0 FROM tab0 @@ -25656,8 +25966,12 @@ SELECT DISTINCT + COUNT ( * ) AS col2, - ( + 73 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -3 # Datafusion - Expected - 3 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - COUNT ( * ) AS col0, COUNT ( * ) AS col0, + - MAX ( ALL - ( - 25 ) ) FROM tab1 AS cor0 +---- +-25 +-3 +3 query I rowsort label-4265 SELECT DISTINCT + COUNT ( 87 ) AS col2 FROM tab1 @@ -26285,8 +26599,15 @@ SELECT + col0 col2, col1 FROM tab2 # Datafusion - Expected - -3901 # Datafusion - Expected - -75 # Datafusion - Expected - -415 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col2" at position 0 and "Int64\(83\) \* \(\- tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 75 AS col2, 83 * - col1 AS col2 FROM tab1 +---- +-1162 +-3901 +-415 +-75 +-75 +-75 query II rowsort SELECT DISTINCT 99 * + 23 - col1 AS col0, col2 FROM tab0 AS cor0 @@ -26320,8 +26641,15 @@ SELECT 40, - col0 + col0 + - + col2 * - col2 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-4372 SELECT + COUNT ( col2 ) FROM tab1 AS cor0 @@ -27566,8 +27894,15 @@ SELECT DISTINCT col0 + - ( col1 ) * col2 * - + col0 AS col0 FROM tab1 AS cor0 WH # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, col0 FROM tab2 cor0 +---- +46 +46 +64 +64 +75 +75 query III rowsort SELECT * FROM tab2 AS cor0 WHERE col2 >= ( + col1 ) @@ -27823,8 +28158,11 @@ SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT 38 * + col1 * + col1 NOT BETW # Datafusion - Datafusion expected results: # Datafusion - Expected - -227 # Datafusion - Expected - 92 -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 "Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + SUM ( DISTINCT - col0 ) AS col2, + 92 AS col2 FROM tab1 AS cor0 +---- +-227 +92 query II rowsort SELECT DISTINCT - 3 + - col0 AS col1, col0 AS col2 FROM tab0 AS cor0 @@ -28563,8 +28901,11 @@ SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(71\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(cor0\.col2\) \+ Int64\(\-86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 71 + COUNT ( * ) AS col2, + COUNT ( + col2 ) + - 86 col2 FROM tab0 AS cor0 +---- +-68 +-83 query I rowsort label-4745 SELECT ALL 31 - 36 / + 50 + - - col0 + - + col1 * col1 * - col0 AS col1 FROM tab2 AS cor0 @@ -28716,8 +29057,10 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f7bf30201dcb4e3dcdce98c5a06ed0f4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \* Int64\(66\) \+ tab1\.col0 AS col1" at position 1 and "\(\- tab1\.col1\) \* Int64\(89\) \* \(\- tab1\.col2\) \- tab1\.col2 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col1 * 99 AS col0, - col2 * 66 + col0 AS col1, - col1 * + 89 * - + col2 - + col2 AS col1 FROM tab1 +---- +9 values hashing to e750a362c7b35241ba404531b507a5cd query I rowsort label-4770 SELECT DISTINCT SUM ( 2 ) + - - 64 AS col0 FROM tab1 cor0 @@ -29089,8 +29432,15 @@ SELECT DISTINCT + col0, 89 FROM tab1 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, col0 AS col2 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NULL > - 34 @@ -29289,8 +29639,11 @@ SELECT DISTINCT + + 12 + - col1 * + 73 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "min\(\(\- Int64\(\-30\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 col1, MIN ( ALL - - 30 ) AS col1 FROM tab2 +---- +30 +90 query I rowsort SELECT + 12 FROM tab0 WHERE NOT + - col1 <> NULL @@ -30291,8 +30644,15 @@ SELECT col2 + 74 FROM tab2 # Datafusion - Expected - -47 # Datafusion - Expected - 168 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ Int64\(57\) \+ Int64\(15\) AS col2" at position 0 and "\(\- tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 + + 57 + + 15 AS col2, - col1 AS col2 FROM tab1 +---- +-14 +-47 +-5 +131 +140 +168 query I rowsort label-5040 SELECT DISTINCT + COUNT ( * ) + 4 * + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 @@ -30436,8 +30796,15 @@ SELECT ALL - 50 col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 0 # Datafusion - Expected - -81 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col0 \+ \(\- \(\- \(\- cor0\.col0\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col1, col0 + - ( - - col0 ) AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +0 +0 +0 query I rowsort label-5062 SELECT + 27 * col0 / col2 FROM tab1 AS cor0 @@ -30511,8 +30878,11 @@ SELECT col1 + col2 * - col0 + col2 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 89 col2, COUNT ( * ) col2 FROM tab2 AS cor0 +---- +3 +89 query I rowsort SELECT - 27 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 @@ -30953,8 +31323,15 @@ SELECT CAST ( NULL AS INTEGER ) + - col1 + + col0 col2 FROM tab1 AS cor0 WHERE - # Datafusion - Expected - -74 # Datafusion - Expected - -197 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ \(\- cor0\.col0\) \- cor0\.col1 AS col2" at position 0 and "Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 + - + col0 - col1 AS col2, - 74 AS col2 FROM tab0 AS cor0 +---- +-118 +-143 +-197 +-74 +-74 +-74 query III rowsort SELECT * FROM tab2 AS cor0 WHERE 75 IS NOT NULL @@ -30998,8 +31375,15 @@ SELECT - col0 * + + col0 AS col0, + col1 + + - ( - + col0 ) FROM tab1 # Datafusion - Expected - 39 # Datafusion - Expected - 97 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, 39 AS col2 FROM tab0 +---- +15 +39 +39 +39 +87 +97 query I rowsort SELECT DISTINCT col2 * + - col1 AS col1 FROM tab1 @@ -31106,8 +31490,15 @@ SELECT DISTINCT - col2 + - col0 * - CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - -32 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - 32 ) col0, col2 col0 FROM tab0 cor0 +---- +-32 +-32 +-32 +10 +47 +99 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 93 <> + col2 @@ -31620,8 +32011,15 @@ SELECT ALL - col1 + col2 + + ( - col2 ) FROM tab1 # Datafusion - Expected - 46 # Datafusion - Expected - 8 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ \(\- tab2\.col1\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 + - col1 AS col1, col0 AS col1 FROM tab2 +---- +-13 +-5 +46 +64 +75 +8 query I rowsort SELECT + 28 + - col0 * - + col1 AS col1 FROM tab0 AS cor0 @@ -31696,8 +32094,15 @@ SELECT DISTINCT - col2 col0, 62 / 90 + + col2 AS col1 FROM tab2 # Datafusion - Expected - -47 # Datafusion - Expected - 52 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col1" at position 0 and "\(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 52 AS col1, - col2 AS col1 FROM tab0 +---- +-10 +-47 +-99 +52 +52 +52 query II rowsort SELECT 0 + 75 * col2 AS col1, - 30 FROM tab1 @@ -31744,8 +32149,15 @@ SELECT ALL COUNT ( DISTINCT - col1 ) col2 FROM tab1 AS cor0 # Datafusion - Expected - 59 # Datafusion - Expected - -91 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col0, + col2 AS col0 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +59 +68 +96 query II rowsort label-5271 SELECT DISTINCT + 96 + + 9 AS col2, + COUNT ( * ) FROM tab0 @@ -32014,8 +32426,15 @@ SELECT col1 col0 FROM tab0 WHERE NULL <= NULL # Datafusion - Expected - 32 # Datafusion - Expected - 41 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ Int64\(\-34\) AS col0" at position 0 and "Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 + - 34 AS col0, 32 AS col0 FROM tab2 +---- +12 +30 +32 +32 +32 +41 query I rowsort label-5315 SELECT ALL - CAST ( NULL AS INTEGER ) - 38 * + ( - col2 ) + 54 AS col1 FROM tab1 @@ -32169,8 +32588,11 @@ SELECT ALL + 49 / 29 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 0 AS col1, + COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +0 +3 query III rowsort SELECT * FROM tab0 AS cor0 WHERE + col1 + ( + col1 ) > NULL @@ -32972,8 +33394,15 @@ SELECT ALL - ( + col2 ) - col2 + - 41 + 94 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - NULL # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT - CAST ( NULL AS FLOAT8 ) AS col1, + ( - col2 ) AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +NULL +NULL +NULL query I rowsort label-5482 SELECT - - CAST ( NULL AS INTEGER ) / + - 5 + - col2 FROM tab1 AS cor0 @@ -33300,8 +33729,15 @@ SELECT - COUNT ( * ), + 25 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 136 # Datafusion - Expected - 77 # Datafusion - Expected - 136 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(17\) \* Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col1 col2, 17 * + 8 col2 FROM tab2 AS cor0 +---- +136 +136 +136 +51 +67 +77 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> col0 + - col2 @@ -33708,8 +34144,15 @@ NULL # Datafusion - Expected - -100 # Datafusion - Expected - -81 # Datafusion - Expected - -2209 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col2\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col1 AS col1, - col2 * col2 AS col1 FROM tab0 AS cor0 +---- +-1 +-100 +-21 +-2209 +-81 +-9801 query I rowsort label-5600 SELECT ALL + SUM ( + 65 ) AS col1 FROM tab0 cor0 @@ -34558,8 +35001,15 @@ SELECT ALL - 93 col0, 45 FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col2, col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query III rowsort SELECT * FROM tab0 cor0 WHERE NOT - 69 * 33 IS NULL @@ -35075,8 +35525,15 @@ SELECT ALL + COUNT ( * ) + + - 49 FROM tab0 # Datafusion - Expected - -47 # Datafusion - Expected - -7622 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \* Int64\(77\) \* tab0\.col1 \+ tab0\.col1 AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 * 77 * + col1 + + col1 AS col0, - col2 AS col0 FROM tab0 +---- +-10 +-16149 +-293058 +-47 +-7622 +-99 query I rowsort SELECT 78 col0 FROM tab0 @@ -35288,8 +35745,15 @@ SELECT + - 89 AS col2, + col1 - + col2 * + col2 * 1 AS col1 FROM tab2 cor0 # Datafusion - Expected - 420875 # Datafusion - Expected - 5 # Datafusion - Expected - 295970 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col2 \* cor0\.col2 \* cor0\.col0 \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, + col2 * + col2 * col0 + col0 AS col0 FROM tab1 AS cor0 +---- +14 +295970 +420875 +47 +470067 +5 query II rowsort SELECT DISTINCT - + col1 AS col0, 81 * + 10 AS col2 FROM tab0 AS cor0 @@ -35721,8 +36185,15 @@ SELECT 29 AS col2, COUNT ( ALL + + 36 ) / + MAX ( DISTINCT 55 * 2 ) FROM tab2 AS # Datafusion - Expected - 94 # Datafusion - Expected - NULL # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* \(\- tab1\.col2\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) * - col2 col1, 94 AS col1 FROM tab1 +---- +94 +94 +94 +NULL +NULL +NULL query I rowsort SELECT + 67 * + 92 AS col0 FROM tab0 @@ -35925,8 +36396,15 @@ SELECT DISTINCT ( col1 ) * + - col2 * + col2 + col0 - col2 FROM tab1 cor0 # Datafusion - Expected - 98 # Datafusion - Expected - -2850 # Datafusion - Expected - 109 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* Int64\(\-38\) AS col0" at position 0 and "\(\- CAST\(Int64\(\-34\) AS Int32\)\) \+ tab2\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 * - 38 col0, - CAST ( - 34 AS INTEGER ) + + + col0 AS col0 FROM tab2 +---- +-1748 +-2432 +-2850 +109 +80 +98 query I rowsort SELECT + 76 col1 FROM tab1 @@ -37095,8 +37573,15 @@ SELECT ALL - COUNT ( + + col2 ) col0 FROM tab2 # Datafusion - Expected - -4 # Datafusion - Expected - -7488 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab1\.col2 AS Int32\) \* Int64\(\-78\) AS col2" at position 0 and "tab1\.col0 / Int64\(\-19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + col2 AS INTEGER ) * - 78 AS col2, + col0 / - 19 AS col2 FROM tab1 +---- +-2 +-4 +-4 +-4602 +-5304 +-7488 query I rowsort label-6168 SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT col2 * - col1 BETWEEN + - 17 / - col1 AND NULL @@ -39048,8 +39533,15 @@ SELECT + COUNT ( - - col0 ) FROM tab0 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - 59 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 AS col1, - col1 col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +59 +59 +59 query I rowsort label-6487 SELECT - 64 * - MIN ( DISTINCT + col1 ) FROM tab2 @@ -39226,8 +39718,15 @@ NULL # Datafusion - Expected - 10 # Datafusion - Expected - 9603 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- \(\- CAST\(cor0\.col0 AS Int32\)\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 * - - CAST ( col0 AS INTEGER ) AS col1, col2 AS col1 FROM tab0 AS cor0 +---- +10 +47 +705 +870 +9603 +99 query III rowsort SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( + col2 ) @@ -39504,8 +40003,15 @@ SELECT ALL + 76 FROM tab0 WHERE - + 53 IS NULL # Datafusion - Expected - 97 # Datafusion - Expected - -260 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \* tab0\.col2 AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 26 * + col2 AS col1, + col0 AS col1 FROM tab0 +---- +-1222 +-2574 +-260 +15 +87 +97 query I rowsort SELECT ( col0 ) * + col0 + + 51 AS col1 FROM tab2 @@ -39575,8 +40081,15 @@ SELECT DISTINCT - - 55 * 8 + + 72 FROM tab1 AS cor0 # Datafusion - Expected - -3579 # Datafusion - Expected - -99 # Datafusion - Expected - -141 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "\(\- cor0\.col0\) \+ cor0\.col1 \* Int64\(\-44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col1, - col0 + + col1 * - 44 AS col1 FROM tab0 AS cor0 +---- +-10 +-1011 +-141 +-3579 +-47 +-99 query I rowsort SELECT ALL + 52 * col2 FROM tab0 AS cor0 @@ -40221,8 +40734,15 @@ SELECT ALL - MAX ( + col0 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 col2, col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query III rowsort label-6676 SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + + - CAST ( + col2 AS INTEGER ) NOT BETWEEN col1 * - 46 AND - ( + - col2 ) * + - col2 - - col0 @@ -40279,8 +40799,15 @@ SELECT DISTINCT + MIN ( DISTINCT + col2 ) FROM tab1 AS cor0 # Datafusion - Expected - 705 # Datafusion - Expected - 99 # Datafusion - Expected - 9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col2" at position 0 and "cor0\.col2 \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col2 AS col2, + col2 * col0 AS col2 FROM tab0 AS cor0 +---- +10 +47 +705 +870 +9603 +99 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT + ( - + 1 ) IS NOT NULL @@ -41542,8 +42069,9 @@ SELECT DISTINCT + - col0 FROM tab2 WHERE NOT + 3 BETWEEN NULL AND + col2 + col1 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "\(\- CAST\(NULL AS Float64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - + col2 AS col1, ( - + CAST ( NULL AS FLOAT8 ) ) AS col1 FROM tab0 WHERE NOT NULL IS NULL +---- query I rowsort label-6898 SELECT DISTINCT - col1 * + col0 + - - col0 / + col0 FROM tab1 WHERE + col2 IS NOT NULL @@ -41711,8 +42239,15 @@ SELECT + - 17, col0 / 17 AS col1 FROM tab0 cor0 # Datafusion - Expected - -71 # Datafusion - Expected - -5 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(\-71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col1 AS col0, - 71 col0 FROM tab1 cor0 +---- +-14 +-47 +-5 +-71 +-71 +-71 query II rowsort SELECT col1 * + col0 AS col2, + col1 * + + ( col1 ) FROM tab1 @@ -42023,8 +42558,15 @@ SELECT * FROM tab2 AS cor0 WHERE NULL > NULL AND ( NOT - col1 IS NOT NULL ) # Datafusion - Expected - -64 # Datafusion - Expected - -97 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \+ Int64\(1\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 98 + + 1 AS col0, - col0 AS col0 FROM tab2 cor0 +---- +-46 +-64 +-75 +-97 +-97 +-97 query I rowsort SELECT col1 + + 98 FROM tab2 AS cor0 @@ -42143,8 +42685,15 @@ SELECT + + col1 - col1 + - col2 FROM tab2 AS cor0 # Datafusion - Expected - -17 # Datafusion - Expected - -97 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(\-17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 AS col0, - 17 AS col0 FROM tab0 AS cor0 +---- +-15 +-17 +-17 +-17 +-87 +-97 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL @@ -42565,8 +43114,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT + ( + - 64 ) + 32 + col2 FROM tab2 WHERE NOT NULL IS NOT NULL @@ -43288,8 +43844,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 + - COUNT ( * ) AS col1, + 16 AS col1 FROM tab0 AS cor0 +---- +16 +78 query I rowsort SELECT + col2 * - ( - col0 ) * 95 + 17 + 90 AS col0 FROM tab0 AS cor0 @@ -43406,8 +43965,15 @@ SELECT DISTINCT col1, + col2 col2 FROM tab2 cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-7196 SELECT - COUNT ( ALL - col1 ) AS col1 FROM tab1 AS cor0 @@ -43430,8 +43996,15 @@ SELECT ALL - MIN ( 96 ) FROM tab0 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - -91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, - col0 AS col1 FROM tab1 AS cor0 +---- +-51 +-51 +-85 +-85 +-91 +-91 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT col1 > - + col1 @@ -44252,8 +44825,15 @@ SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NUL # Datafusion - Expected - 87 # Datafusion - Expected - 62 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "\(\- \(\- tab0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 62 AS col2, - ( + + ( - col0 ) ) AS col2 FROM tab0 +---- +15 +62 +62 +62 +87 +97 query I rowsort label-7339 SELECT + + COUNT ( * ) + 73 * 63 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -44461,8 +45041,11 @@ SELECT - col2 + + - col1 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, 99 AS col0 FROM tab0 AS cor0 +---- +3 +99 query I rowsort label-7376 SELECT + + COUNT ( ALL - + ( + col1 ) ) AS col0 FROM tab1 AS cor0 @@ -45100,8 +45683,11 @@ SELECT 38 * + 70 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 5 AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +-5 +3 query I rowsort label-7483 SELECT + + MAX ( - + col0 ) FROM tab0 AS cor0 @@ -45859,8 +46445,15 @@ SELECT + col0 * - 79 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -11 # Datafusion - Expected - 75 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col0" at position 0 and "CAST\(Int64\(\-11\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 75 col0, + CAST ( - 11 AS INTEGER ) AS col0 FROM tab2 AS cor0 +---- +-11 +-11 +-11 +75 +75 +75 query I rowsort label-7609 SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL > NULL @@ -45900,8 +46493,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - -354 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* \(\- tab1\.col2\) \+ \(\- tab1\.col2\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 * - col2 + + - col2 AS col2, + col1 AS col2 FROM tab1 +---- +-1440 +-3264 +-354 +14 +47 +5 query I rowsort label-7616 SELECT DISTINCT 22 + + COUNT ( * ) FROM tab0 @@ -46089,8 +46689,9 @@ SELECT - col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col1" at position 0 and "Int64\(25\) \* \(\- Int64\(\-80\)\) \+ tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + + ( 35 ) ) AS col1, + 25 * - - 80 + col1 AS col1 FROM tab2 WHERE NULL < - col0 * - col1 +---- query I rowsort SELECT DISTINCT - 25 * + - 60 col2 FROM tab2 @@ -46118,8 +46719,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) + + 6 AS col0, 46 AS col0 FROM tab1 +---- +3 +46 query I rowsort SELECT DISTINCT + + 63 * - col0 AS col0 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL @@ -46269,8 +46873,10 @@ SELECT - + col1 - - + col2 * ( 23 ) AS col0 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 6d23c1cb12695b340a922e4756b4dd0b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-67\)\) \- \(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - 67 - - + col2 AS col0, - col0 AS col2, + col2 col0 FROM tab0 AS cor0 +---- +9 values hashing to 95203f3a17a537411e595da59d8f76b0 query I rowsort label-7681 SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) + 98 FROM tab0 @@ -46627,8 +47233,15 @@ SELECT - COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - 29 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 AS col2, col1 AS col2 FROM tab0 +---- +1 +21 +29 +29 +29 +81 query II rowsort SELECT ALL + col2 AS col1, + col2 AS col2 FROM tab1 AS cor0 @@ -46929,8 +47542,11 @@ SELECT DISTINCT col1 * col1 + - ( - + col1 ) AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col0" at position 0 and "max\(Int64\(\-19\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 93 AS col0, + MAX ( - 19 ) AS col0 FROM tab1 +---- +-19 +93 query I rowsort label-7789 SELECT - col2 FROM tab1 WHERE - col0 * + + CAST ( NULL AS INTEGER ) IS NOT NULL @@ -47828,8 +48444,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT + col0 < - col0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col2, + col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-7944 SELECT DISTINCT MIN ( ALL col0 ) AS col1 FROM tab0 AS cor0 @@ -48615,8 +49238,15 @@ SELECT ALL - + COUNT ( * ) AS col1 FROM tab0 WHERE NULL >= NULL # Datafusion - Expected - 44 # Datafusion - Expected - -84 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \+ tab0\.col2 \* \(\- tab0\.col1\) AS col0" at position 0 and "Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 15 + col2 * - + col1 col0, 44 AS col0 FROM tab0 +---- +-195 +-3792 +-84 +44 +44 +44 query I rowsort SELECT - 94 FROM tab0 cor0 WHERE NULL IS NOT NULL @@ -48899,8 +49529,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - col0 + - col2 # Datafusion - Expected - -1 # Datafusion - Expected - -94 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ \(\- cor0\.col1\) AS col1" at position 0 and "Int64\(54\) / \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col1 + + - col1 AS col1, 54 / - + col0 AS col1 FROM tab1 AS cor0 +---- +-1 +-10 +-28 +-94 +0 +0 query II rowsort SELECT DISTINCT col1, + 60 AS col2 FROM tab2 AS cor0 @@ -48939,8 +49576,11 @@ SELECT ALL - + col2 + + + 49 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) col0 FROM tab0 WHERE - 91 + + + CAST ( NULL AS INTEGER ) - + 98 * + 64 IS NOT NULL +---- +0 +0 query I rowsort SELECT DISTINCT + 11 + - 14 FROM tab0 @@ -49490,8 +50130,15 @@ SELECT DISTINCT + - 23 AS col0 FROM tab1 AS cor0 WHERE ( col1 ) BETWEEN 18 AND N # Datafusion - Expected - 68 # Datafusion - Expected - -7 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 7 AS col0, col2 AS col0 FROM tab1 AS cor0 +---- +-7 +-7 +-7 +59 +68 +96 query I rowsort label-8212 SELECT MAX ( ALL - + 88 ) * + + 12 + + COUNT ( * ) FROM tab0 AS cor0 @@ -49785,8 +50432,15 @@ SELECT DISTINCT - col2 AS col2, - col2 + - CAST ( + + col1 AS INTEGER ) FROM tab # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(31\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, + 31 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +51 +85 +91 +NULL +NULL +NULL query I rowsort SELECT + + col0 FROM tab2 WHERE col1 + col1 > col0 @@ -50408,8 +51062,9 @@ SELECT DISTINCT - col2 - - col1 AS col0 FROM tab0 WHERE NULL IS NOT NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, + col1 FROM tab2 cor0 WHERE + 19 > col1 +---- query I rowsort label-8370 SELECT COUNT ( + col0 ) col2 FROM tab2 AS cor0 @@ -51016,8 +51671,15 @@ SELECT * FROM tab2 cor0 WHERE NULL <> 46 * 20 # Datafusion - Expected - -26 # Datafusion - Expected - 6 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "Int64\(\-26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 AS col2, - 26 AS col2 FROM tab2 AS cor0 +---- +-26 +-26 +-26 +6 +6 +6 query I rowsort label-8479 SELECT ALL - 42 AS col2 FROM tab2 WHERE + - 60 IN ( - + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) - + col1, - ( - col1 ) ) @@ -51659,8 +52321,9 @@ SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS c 9 values hashing to cd7a7901e47c15155404aff0d216fe0b # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) AS col2" at position 0 and "cor0\.col0 \+ \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 54 AS col2, col0 + - col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL +---- query I rowsort label-8586 SELECT ALL - COUNT ( * ) - + - 2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL @@ -51756,8 +52419,15 @@ SELECT * FROM tab1 AS cor0 WHERE - 73 IS NOT NULL # Datafusion - Expected - 91 # Datafusion - Expected - 5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, + col0 AS col2 FROM tab1 AS cor0 +---- +14 +47 +5 +51 +85 +91 query I rowsort SELECT + - 23 + 79 AS col0 FROM tab1 AS cor0 @@ -51797,8 +52467,15 @@ SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - 310930 # Datafusion - Expected - 177 # Datafusion - Expected - 383656 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ Int64\(86\) AS col0" at position 0 and "Int64\(62\) \* tab1\.col0 \* tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + + 86 AS col0, + 62 * col0 * + col2 AS col0 FROM tab1 +---- +137 +171 +177 +303552 +310930 +383656 query IIIIII rowsort SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= NULL @@ -52472,8 +53149,15 @@ SELECT CAST ( - CAST ( NULL AS FLOAT8 ) AS INTEGER ) * ( - ( + col0 ) ) AS col0 # Datafusion - Expected - 26 # Datafusion - Expected - -3888 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col1 \- \(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 * col1 - - - col1 AS col2, 26 AS col2 FROM tab0 AS cor0 +---- +-100 +-231 +-3888 +26 +26 +26 query I rowsort label-8719 SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE + 42 BETWEEN NULL AND NULL @@ -53577,8 +54261,15 @@ SELECT ALL 99 / + col1 FROM tab2 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - 32 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 AS col1, - col0 AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +32 +32 +32 query I rowsort label-8914 SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NULL >= col1 @@ -53996,8 +54687,15 @@ SELECT + + 48 AS col1 FROM tab1 WHERE - - col0 IS NULL # Datafusion - Expected - 21 # Datafusion - Expected - 14 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \+ \(\- tab0\.col1\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + 15 ) + + - col1 AS col1, + 21 AS col1 FROM tab0 +---- +-6 +-66 +14 +21 +21 +21 query I rowsort label-8980 SELECT - col2 col1 FROM tab0 WHERE ( CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) IS NULL @@ -54236,8 +54934,15 @@ SELECT DISTINCT - COUNT ( - - col1 ) col2 FROM tab2 cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 75 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col1 \+ \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 col2, col1 + + - col1 AS col2 FROM tab2 AS cor0 +---- +0 +0 +0 +46 +64 +75 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > + col2 @@ -54621,8 +55326,15 @@ SELECT DISTINCT 30 * COUNT ( * ) FROM tab1 # Datafusion - Expected - 67 # Datafusion - Expected - 88 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 88 AS col0, ( + col1 ) AS col0 FROM tab2 +---- +51 +67 +77 +88 +88 +88 query III rowsort label-9083 SELECT col0 AS col2, - 45 / col0 * + col0 AS col1, + + 91 * + 76 FROM tab1 @@ -54947,8 +55659,15 @@ SELECT ALL 20 * - + 84 + - col1 * 9 FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - -4988 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \* tab2\.col2 AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 86 * + + col2 AS col0, col2 AS col0 FROM tab2 +---- +-1978 +-3440 +-4988 +23 +40 +58 query I rowsort SELECT ALL 17 FROM tab0 WHERE NOT - + 81 IS NOT NULL @@ -55099,8 +55818,15 @@ SELECT DISTINCT - 48 * - 39 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -1980 # Datafusion - Expected - -49 # Datafusion - Expected - -1980 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col1" at position 0 and "Int64\(36\) \* Int64\(\-55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 49 AS col1, 36 * - 55 AS col1 FROM tab2 cor0 +---- +-1980 +-1980 +-1980 +-49 +-49 +-49 query I rowsort label-9160 SELECT DISTINCT - MAX ( DISTINCT - col2 ) + + - 54 FROM tab2 @@ -55281,8 +56007,15 @@ SELECT - ( COUNT ( * ) ) + COUNT ( * ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -80 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* cor0\.col1 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 80 * col1 col1, ( + - col2 ) col1 FROM tab0 cor0 +---- +-10 +-1680 +-47 +-6480 +-80 +-99 query I rowsort label-9190 SELECT DISTINCT - - ( + CAST ( NULL AS INTEGER ) ) + - - COUNT ( * ) FROM tab2 cor0 WHERE + col2 >= - + 60 @@ -55482,8 +56215,15 @@ SELECT + 78 * - col1 AS col0 FROM tab2 # Datafusion - Expected - -87 # Datafusion - Expected - 0 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 / \(\- tab0\.col2\) AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 / + - col2 AS col2, - col0 AS col2 FROM tab0 +---- +-1 +-15 +-2 +-87 +-97 +0 query III rowsort SELECT * FROM tab0 WHERE NOT ( NOT col2 IS NOT NULL ) @@ -55793,8 +56533,15 @@ SELECT - - col1 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - + 20 # Datafusion - Expected - 0 # Datafusion - Expected - 58 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(0\) \* \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, + 0 * - col2 AS col0 FROM tab2 AS cor0 +---- +0 +0 +0 +23 +40 +58 query I rowsort label-9271 SELECT ALL + CAST ( - 81 AS INTEGER ) AS col0 FROM tab2 AS cor0 @@ -57203,8 +57950,15 @@ SELECT + - ( - 50 ) FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "Int64\(27\) \- Int64\(63\) / CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col1, 27 - 63 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2 +---- +46 +64 +75 +NULL +NULL +NULL query I rowsort SELECT - 23 * - + col0 AS col1 FROM tab0 @@ -58215,8 +58969,15 @@ SELECT ALL + col0 * + + 10 AS col2 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS # Datafusion - Expected - -2560 # Datafusion - Expected - 93 # Datafusion - Expected - -4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "tab2\.col2 \* \(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 93 col1, col2 * - col0 AS col1 FROM tab2 +---- +-1058 +-2560 +-4350 +93 +93 +93 query II rowsort label-9667 SELECT ALL + ( - COUNT ( * ) ) col1, + 75 FROM tab2 @@ -58247,8 +59008,15 @@ SELECT * FROM tab0 WHERE NOT + - col1 + col0 * + - col1 * - + col0 > + col1 # Datafusion - Expected - -98 # Datafusion - Expected - NULL # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col2, - 98 AS col2 FROM tab1 +---- +-98 +-98 +-98 +NULL +NULL +NULL query II rowsort SELECT + 33, col2 FROM tab2 @@ -58456,8 +59224,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 9 * 55 + col1 >= 1 - col1 AND NOT NUL # Datafusion - Expected - 41 # Datafusion - Expected - 74 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \+ tab2\.col2 AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 + + col2 AS col2, + 41 AS col2 FROM tab2 +---- +117 +125 +41 +41 +41 +74 query I rowsort label-9703 SELECT ALL - MAX ( DISTINCT + col2 ) AS col1 FROM tab2 @@ -58614,8 +59389,15 @@ NULL # Datafusion - Expected - 85 # Datafusion - Expected - -89 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 89 AS col2, 85 AS col2 FROM tab2 AS cor0 +---- +-89 +-89 +-89 +85 +85 +85 query II rowsort label-9731 SELECT DISTINCT + ( + COUNT ( * ) ) * + MIN ( DISTINCT 17 ) AS col0, - SUM ( ALL + ( - - 13 ) ) - - - COUNT ( * ) FROM tab1 AS cor0 @@ -59854,8 +60636,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ), + COUNT ( * ) FROM tab2 +---- +3 +3 query I rowsort label-9948 SELECT ALL COUNT ( * ) * 18 FROM tab2 AS cor0 @@ -59943,8 +60728,15 @@ SELECT + COUNT ( * ), 76 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL A # Datafusion - Expected - 508130 # Datafusion - Expected - -14 # Datafusion - Expected - 543998 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col0" at position 0 and "Int64\(61\) \* \(\- tab1\.col0\) \* Int64\(\-98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 14 AS col0, + 61 * - col0 * - 98 col0 FROM tab1 +---- +-14 +-14 +-14 +304878 +508130 +543998 query II rowsort SELECT col1 AS col0, + col0 AS col2 FROM tab1 @@ -60145,8 +60937,11 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 39 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) 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 II valuesort SELECT ALL 89 col1, MAX ( + - col0 ) AS col1 FROM tab0 AS cor0 +---- +-15 +89 query I rowsort label-9996 SELECT + MIN ( ALL - + col1 ) FROM tab1 cor0 diff --git a/data/sqlite/random/aggregates/slt_good_14.slt b/data/sqlite/random/aggregates/slt_good_14.slt index 7e61c5b..77179d5 100644 --- a/data/sqlite/random/aggregates/slt_good_14.slt +++ b/data/sqlite/random/aggregates/slt_good_14.slt @@ -887,8 +887,13 @@ SELECT - 74 + + - col0 AS col1 FROM tab2 cor0 # Datafusion - Expected - 87 # Datafusion - Expected - -2 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) / cor0\.col2 AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 / + col2 AS col1, 87 AS col1 FROM tab2 AS cor0 +---- +-1 +-2 +87 +87 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 <> - col2 * + - col0 + col0 @@ -927,8 +932,11 @@ SELECT ALL 97 + - col2 * + - 34 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "sum\(CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 56 AS col2, + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 +---- +56 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -1233,8 +1241,15 @@ SELECT ALL MAX ( + 0 ) AS col2 FROM tab0 # Datafusion - Expected - -40 # Datafusion - Expected - -58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 AS col2, - col2 AS col2 FROM tab2 AS cor0 +---- +-23 +-23 +-40 +-40 +-58 +-58 query I rowsort SELECT ALL 0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - ( col1 ) AND NULL @@ -2070,8 +2085,15 @@ SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col1 < NULL # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, + col0 AS col1 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query II rowsort SELECT DISTINCT - 69, + col0 col2 FROM tab1 AS cor0 @@ -2623,8 +2645,15 @@ SELECT DISTINCT col0 * 3 * col2 + - 29 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL # Datafusion - Expected - 111 # Datafusion - Expected - -5 # Datafusion - Expected - 105 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(21\) \+ cor0\.col0 \+ cor0\.col2 / \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, + 21 + col0 + + col2 / - col2 col0 FROM tab1 cor0 +---- +-14 +-47 +-5 +105 +111 +71 query I rowsort label-426 SELECT DISTINCT - COUNT ( * ) + - 76 * 63 AS col1 FROM tab1 AS cor0 @@ -2864,8 +2893,15 @@ SELECT * FROM tab1 AS cor0 WHERE + col2 + - + 34 + + col0 IS NULL # Datafusion - Expected - 12 # Datafusion - Expected - 80 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- \(\- cor0\.col2\)\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 + - ( - col2 ) AS col2, + 12 AS col2 FROM tab2 cor0 +---- +116 +12 +12 +12 +46 +80 query I rowsort SELECT DISTINCT - + 84 - + col0 AS col1 FROM tab1 cor0 @@ -3491,8 +3527,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(50\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 AS col2, COUNT ( * ) * - + 50 AS col2 FROM tab0 AS cor0 +---- +-150 +90 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 = + col2 @@ -4321,8 +4360,11 @@ SELECT - col0 AS col0 FROM tab2 WHERE NOT col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "sum\(Int64\(\-50\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, SUM ( - 50 ) AS col2 FROM tab2 +---- +-150 +3 query I rowsort label-704 SELECT DISTINCT + COUNT ( + + col1 ) * - 67 AS col2 FROM tab2 AS cor0 @@ -4571,8 +4613,15 @@ SELECT DISTINCT - ( + col0 ) * + col0 + col0 FROM tab1 # Datafusion - Expected - 77 # Datafusion - Expected - -75 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, col1 AS col2 FROM tab2 +---- +-46 +-64 +-75 +51 +67 +77 query I rowsort label-745 SELECT - 46 / + col1 AS col0 FROM tab0 @@ -4584,8 +4633,11 @@ SELECT - 46 / + col1 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col2, 87 AS col2 FROM tab0 +---- +3 +87 query I rowsort SELECT col2 + + col2 + - col2 AS col0 FROM tab2 @@ -5592,8 +5644,9 @@ SELECT - - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( - + col2 ) IS NOT NULL 3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "Int64\(56\) \* \(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col2, + 56 * ( - col0 ) AS col2 FROM tab1 WHERE + ( - - 93 ) BETWEEN NULL AND - col0 +---- query I rowsort SELECT ALL 56 + - 75 AS col1 FROM tab0 @@ -5647,8 +5700,11 @@ SELECT col1 * - CAST ( 54 AS INTEGER ) + col1 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - - COUNT ( * ) ) AS col2, COUNT ( * ) col2 FROM tab2 +---- +3 +3 query I rowsort label-923 SELECT + ( - - COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 @@ -5777,8 +5833,15 @@ SELECT ALL 14 + - 99 * - + ( col2 ) + + 69 FROM tab1 cor0 # Datafusion - Expected - 97 # Datafusion - Expected - 3 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \- cor0\.col2 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 13 - + col2 AS col2, + col0 AS col2 FROM tab0 AS cor0 +---- +-34 +-86 +15 +3 +87 +97 query I rowsort label-943 SELECT ALL 86 - col1 / + - 29 AS col0 FROM tab2 AS cor0 @@ -7646,8 +7709,9 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND + col1 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col2 AS Int32\) AS col1" at position 0 and "cor0\.col2 \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + CAST ( col2 AS INTEGER ) AS col1, col2 + + col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL +---- query I rowsort label-1248 SELECT ALL + col2 + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0 @@ -7936,8 +8000,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + - 5 > col2 - - col1 # Datafusion - Expected - 21 # Datafusion - Expected - 98 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 AS col2, col1 AS col2 FROM tab0 +---- +1 +21 +81 +98 +98 +98 query I rowsort label-1294 SELECT DISTINCT 82 * + 17 * CAST ( - 17 AS INTEGER ) AS col2 FROM tab2 @@ -7977,8 +8048,15 @@ SELECT * FROM tab0 WHERE NOT + col0 BETWEEN - - CAST ( NULL AS INTEGER ) AND + c # Datafusion - Expected - NULL # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "Int64\(40\) \* CAST\(NULL AS Int32\) \- Int64\(9\) \+ Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 col1, + 40 * + CAST ( NULL AS INTEGER ) - + 9 + + 46 AS col1 FROM tab2 +---- +46 +64 +75 +NULL +NULL +NULL query I rowsort label-1300 SELECT DISTINCT + 84 * - - COUNT ( + 85 ) + + - COUNT ( * ) AS col1 FROM tab1 @@ -8410,8 +8488,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 107 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ max\(cor0\.col1\) AS col0" at position 0 and "Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 + MAX ( + col1 ) AS col0, - 92 AS col0 FROM tab1 AS cor0 +---- +-92 +107 query I rowsort SELECT DISTINCT 33 col2 FROM tab1 WHERE NOT col0 + col0 IS NULL @@ -10319,8 +10400,11 @@ SELECT 25 AS col2, 36 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -14820 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col0" at position 0 and "\(\- sum\(\(\- \(\- cor0\.col2\)\)\)\) \* Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 AS col0, - SUM ( - - col2 ) * + 95 AS col0 FROM tab0 AS cor0 +---- +-14820 +33 query I rowsort label-1691 SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 * + col0 IS NULL @@ -10402,8 +10486,15 @@ SELECT + CAST ( 14 AS INTEGER ) + col0, - 43 * - 28 AS col2 FROM tab0 AS cor0 WH # Datafusion - Expected - -64 # Datafusion - Expected - 226125 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- cor0\.col1\) \* \(\- Int64\(\-45\)\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * - col1 * - - 45 AS col1, - col0 AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +105570 +221760 +226125 query I rowsort SELECT ALL + col2 - - col1 * 29 * col0 col2 FROM tab0 @@ -10436,8 +10527,15 @@ SELECT MIN ( - + col2 ) AS col1 FROM tab1 # Datafusion - Expected - 85 # Datafusion - Expected - 4 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 4 AS col2, + col0 AS col2 FROM tab1 +---- +4 +4 +4 +51 +85 +91 query I rowsort label-1710 SELECT ALL - col2 + + + 67 / 70 + + + CAST ( NULL AS INTEGER ) + col1 + - col2 + - + col2 - - + col1 * + col2 FROM tab0 @@ -10962,8 +11060,15 @@ SELECT * FROM tab1 WHERE NOT + 18 = NULL # Datafusion - Expected - 40 # Datafusion - Expected - 37 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 AS col1, col2 AS col1 FROM tab2 +---- +23 +37 +37 +37 +40 +58 query I rowsort label-1789 SELECT DISTINCT + ( + - col2 ) / + col0 FROM tab0 @@ -11936,14 +12041,24 @@ SELECT DISTINCT 55 * 32 * - COUNT ( * ) col2 FROM tab1 # Datafusion - Expected - -2071 # Datafusion - Expected - -5 # Datafusion - Expected - -145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col0 \+ cor0\.col1 \* Int64\(\-46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 col0, col0 + col1 * - 46 AS col0 FROM tab1 AS cor0 +---- +-14 +-145 +-2071 +-47 +-5 +-593 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 11070 -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\(41\)\) \* Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 80 AS col2, + SUM ( + 41 ) * 90 AS col2 FROM tab2 cor0 +---- +11070 +80 query I rowsort SELECT DISTINCT col0 - col1 FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( - col2 ) @@ -12167,8 +12282,15 @@ SELECT DISTINCT - 21 + - ( 1 ) + + - 73 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 58 # Datafusion - Expected - -77 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, col2 AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +23 +40 +58 query I rowsort label-1988 SELECT - COUNT ( 57 ) AS col2 FROM tab2 @@ -12223,8 +12345,15 @@ SELECT * FROM tab2 cor0 WHERE NOT - col0 >= - col0 + - + col2 # Datafusion - Expected - -75 # Datafusion - Expected - -77 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "CAST\(\(\- cor0\.col0\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( col1 ) AS col0, CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0 +---- +-46 +-51 +-64 +-67 +-75 +-77 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT col0 IS NULL ) ) @@ -12579,8 +12708,15 @@ SELECT + COUNT ( * ) + + 96 * + 55 AS col0 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col1, col1 col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query II rowsort label-2061 SELECT DISTINCT + COUNT ( * ), CAST ( ( + 99 ) AS INTEGER ) + + - SUM ( - ( - col2 ) ) AS col0 FROM tab0 WHERE + 78 IS NULL @@ -12869,8 +13005,15 @@ SELECT + col0 AS col0, - col2 col0 FROM tab1 AS cor0 # Datafusion - Expected - 167 # Datafusion - Expected - 81 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(80\) \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col0, 80 + + col0 AS col0 FROM tab0 cor0 +---- +1 +167 +177 +21 +81 +95 query I rowsort SELECT - - col2 * - col1 * col2 FROM tab0 AS cor0 @@ -12929,8 +13072,10 @@ SELECT DISTINCT ( - 54 ) * + col0 * - col2 - col2 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 940bd26ba3002d5b037f2e8ed6c52ef3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 1 and "Int64\(84\) \* Int64\(31\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - col0 * 90, - col1 AS col2, + ( 84 ) * + ( + 31 ) AS col2 FROM tab1 +---- +9 values hashing to 7aca83ea7f500800e75d139ae099d26e query II rowsort label-2115 SELECT ALL CAST ( - 34 AS INTEGER ), col2 * - 19 AS col0 FROM tab0 @@ -13608,8 +13753,15 @@ SELECT ALL - 91 + + - COUNT ( * ) col0 FROM tab1 AS cor0 # Datafusion - Expected - 4350 # Datafusion - Expected - 77 # Datafusion - Expected - 2560 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "cor0\.col2 \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 AS col0, col2 * col0 col0 FROM tab2 AS cor0 +---- +1058 +2560 +4350 +51 +67 +77 query I rowsort SELECT + ( 11 ) AS col0 FROM tab0 AS cor0 @@ -13748,8 +13900,15 @@ NULL # Datafusion - Expected - 4554 # Datafusion - Expected - 62 # Datafusion - Expected - 460 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "tab0\.col2 \* \(\- Int64\(\-46\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 AS col2, col2 * - - 46 AS col2 FROM tab0 +---- +2162 +4554 +460 +62 +62 +62 query II rowsort SELECT + col1 col1, col0 + col0 AS col0 FROM tab0 @@ -14042,8 +14201,15 @@ SELECT ALL - + col1 + - 17 FROM tab0 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - -75 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(41\) / \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col1, + 41 / + - col0 AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +0 +0 +0 query I rowsort label-2291 SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 83 IS NOT NULL @@ -14187,8 +14353,15 @@ SELECT - col2 + + ( - col0 ) - - col2 / + - col1 * - 93 FROM tab2 AS cor0 WHERE # Datafusion - Expected - 74 # Datafusion - Expected - 77 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col1 AS col1, + 74 AS col1 FROM tab2 AS cor0 +---- +51 +67 +74 +74 +74 +77 query I rowsort label-2316 SELECT MIN ( ALL col1 ) AS col1 FROM tab2 AS cor0 @@ -14416,8 +14589,15 @@ SELECT + + col2 * + col0 col1 FROM tab1 AS cor0 # Datafusion - Expected - -48 # Datafusion - Expected - -6188 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col2 \+ \(\- cor0\.col1\) \+ cor0\.col1 AS col2" at position 0 and "\(\- Int64\(48\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 * col2 + + - col1 + + col1 AS col2, - ( + 48 ) AS col2 FROM tab1 AS cor0 +---- +-48 +-48 +-48 +-4896 +-5015 +-6188 query I rowsort SELECT ALL - 14 col1 FROM tab2 cor0 @@ -15270,8 +15450,15 @@ SELECT DISTINCT + 57 + COUNT ( * ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 36 # Datafusion - Expected - 4958 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col0 \* cor0\.col1 AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - + col1 ) + + col0 * + col1 AS col1, 36 AS col1 FROM tab2 AS cor0 +---- +2295 +36 +36 +36 +4851 +4958 query I rowsort label-2493 SELECT - 3 / - col1 + 10 FROM tab2 AS cor0 WHERE 30 + 16 IS NOT NULL @@ -15776,8 +15963,15 @@ NULL # Datafusion - Expected - -91 # Datafusion - Expected - -96 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col2 AS col2, - col0 AS col2 FROM tab1 AS cor0 +---- +-51 +-59 +-68 +-85 +-91 +-96 query I rowsort label-2572 SELECT COUNT ( * ) / MIN ( DISTINCT - 52 ) AS col2 FROM tab2 @@ -16054,8 +16248,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) + + MAX ( - col0 ) AS col2, - SUM ( ALL - col2 ) AS col2 FROM tab0 AS cor0 +---- +-18 +156 query I rowsort label-2619 SELECT COUNT ( * ) + 29 + + COUNT ( * ) AS col2 FROM tab0 AS cor0 @@ -17190,8 +17387,15 @@ SELECT - 93 + 15 col0 FROM tab1 # Datafusion - Expected - -68 # Datafusion - Expected - -96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "\(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col2, - col2 AS col2 FROM tab1 +---- +-59 +-59 +-68 +-68 +-96 +-96 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT - col0 >= + 79 @@ -17729,8 +17933,15 @@ SELECT DISTINCT - col1 - + - 41 - - col0 * - 47 * col1 col2 FROM tab2 # Datafusion - Expected - 72 # Datafusion - Expected - 76 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "Int64\(8\) \+ tab2\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 76 AS col0, 8 + col0 AS col0 FROM tab2 +---- +54 +72 +76 +76 +76 +83 query I rowsort SELECT + ( - - col2 ) + - - col0 FROM tab0 @@ -17753,8 +17964,11 @@ SELECT DISTINCT 93 AS col1, - COUNT ( * ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- Int64\(6\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, + ( - + 6 ) / + COUNT ( * ) AS col1 FROM tab2 +---- +-2 +3 query I rowsort SELECT DISTINCT - col1 + + - 54 FROM tab2 @@ -17848,8 +18062,15 @@ SELECT MIN ( col0 ) col0 FROM tab0 cor0 # Datafusion - Expected - 68 # Datafusion - Expected - -96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 col0, col2 AS col0 FROM tab1 +---- +-59 +-68 +-96 +59 +68 +96 query I rowsort label-2914 SELECT + col2 / - 74 FROM tab1 @@ -18265,8 +18486,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT 10 / - + col0 / col0 < + 86 # Datafusion - Expected - -104 # Datafusion - Expected - 75 # Datafusion - Expected - -133 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col0\) \- cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0 AS col1, - col0 - + col2 AS col1 FROM tab2 AS cor0 +---- +-104 +-133 +-69 +46 +64 +75 query I rowsort label-2984 SELECT - col2 / + ( + 82 ) - - col1 FROM tab0 AS cor0 @@ -18389,8 +18617,15 @@ SELECT ALL * FROM tab0 cor0 WHERE NULL IN ( col2 ) # Datafusion - Expected - 47 # Datafusion - Expected - 77 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 + - + col2 col0, col2 AS col0 FROM tab0 AS cor0 +---- +-2 +-32 +10 +47 +77 +99 query I rowsort SELECT DISTINCT - col2 * + 72 - - ( ( - ( - col1 ) ) ) FROM tab2 AS cor0 @@ -19029,8 +19264,15 @@ SELECT - col1 * + + col1 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 2208 # Datafusion - Expected - 50 # Datafusion - Expected - 2208 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col2" at position 0 and "Int64\(32\) \* Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 50 AS col2, 32 * + 69 AS col2 FROM tab2 AS cor0 +---- +2208 +2208 +2208 +50 +50 +50 query I rowsort label-3104 SELECT DISTINCT - 58 - - COUNT ( * ) AS col1 FROM tab1 AS cor0 @@ -19546,8 +19788,15 @@ SELECT ALL + 78 * col2 AS col1 FROM tab2 # Datafusion - Expected - -59 # Datafusion - Expected - 82 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ \(\- tab1\.col1\) AS col1" at position 0 and "\(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 + + - col1 AS col1, - col2 AS col1 FROM tab1 +---- +-59 +-68 +-96 +21 +54 +82 query I rowsort label-3191 SELECT DISTINCT + 45 / + col1 FROM tab1 @@ -19906,8 +20155,15 @@ SELECT col2 * + col0 * + col0 FROM tab0 # Datafusion - Expected - 33 # Datafusion - Expected - -31 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 AS col2, + 33 AS col2 FROM tab2 +---- +-31 +-31 +-31 +33 +33 +33 query I rowsort SELECT + + col1 * - col2 - col0 col1 FROM tab0 WHERE NOT NULL = - 36 @@ -20552,8 +20808,15 @@ SELECT + col2 + col2 * - col1 * 80 col2 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, + col1 AS col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-3364 SELECT col2 * + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 @@ -20849,8 +21112,11 @@ SELECT ALL ( - MAX ( ALL + col0 ) ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, COUNT ( * ) / - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 +---- +3 +NULL query I rowsort label-3412 SELECT DISTINCT + MIN ( DISTINCT 83 ) FROM tab1 WHERE + col2 <> NULL @@ -25078,8 +25344,15 @@ SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) <= 43 # Datafusion - Expected - -69 # Datafusion - Expected - 77 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "\(\- Int64\(69\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 AS col0, + ( - + 69 ) AS col0 FROM tab2 AS cor0 +---- +-69 +-69 +-69 +51 +67 +77 query I rowsort label-4102 SELECT - MIN ( + + 46 ) AS col1 FROM tab0 cor0 @@ -25168,8 +25441,15 @@ SELECT ALL col0, 35 FROM tab2 # Datafusion - Expected - 97 # Datafusion - Expected - 97 # Datafusion - Expected - 9709 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col2 \* tab0\.col2 \- tab0\.col2 \- Int64\(\-7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, + col2 * col2 - + + col2 - + - 7 col2 FROM tab0 +---- +15 +2169 +87 +97 +97 +9709 query I rowsort label-4116 SELECT MIN ( DISTINCT + col1 ) AS col2 FROM tab2 @@ -25857,8 +26137,15 @@ SELECT COUNT ( - + 59 ), - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS N # Datafusion - Expected - 3364 # Datafusion - Expected - 92 # Datafusion - Expected - 529 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ cor0\.col2 AS col1" at position 0 and "cor0\.col2 \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 69 + col2 AS col1, col2 * + col2 AS col1 FROM tab2 AS cor0 +---- +109 +127 +1600 +3364 +529 +92 query II rowsort label-4235 SELECT - col1 - - col0 AS col0, 42 / col2 AS col1 FROM tab2 cor0 @@ -26230,8 +26517,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +3 +3 query I rowsort SELECT - + col2 * - - col2 FROM tab0 AS cor0 @@ -27717,7 +28007,7 @@ SELECT ALL + COUNT ( * ) + - - COUNT ( * ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 1abd9cdde06493c2546379cef90bb4e5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* Int64\(14\) AS col0" at position 1 and "Int64\(95\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Schema error: Schema contains qualified field name tab1\.col0 and unqualified field name col0 which would be ambiguous SELECT + col0 AS col0, col1 * 14 AS col0, + + 95 AS col0 FROM tab1 query I rowsort label-4531 @@ -27933,8 +28223,15 @@ SELECT * FROM tab0 WHERE - 44 * - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND # Datafusion - Expected - 96 # Datafusion - Expected - 92 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ Int64\(33\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + 33 AS col0, + col2 AS col0 FROM tab1 AS cor0 +---- +101 +129 +59 +68 +92 +96 query IIIIII rowsort SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT NULL IS NULL ) @@ -28545,8 +28842,15 @@ SELECT 24 AS col0, + col2 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 182642 # Datafusion - Expected - NULL # Datafusion - Expected - 55131 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "cor0\.col2 \* Int64\(47\) \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col2, + col2 * + 47 * col1 AS col2 FROM tab2 AS cor0 +---- +144760 +182642 +55131 +NULL +NULL +NULL query I rowsort SELECT DISTINCT + ( - 21 ) AS col1 FROM tab1 AS cor0 @@ -29367,8 +29671,15 @@ SELECT DISTINCT 60 - - col1 * + 31 FROM tab2 # Datafusion - Expected - 85 # Datafusion - Expected - -43 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \- Int64\(88\) \+ \(\- tab1\.col0\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 - 88 + + - col0 AS col2, col0 AS col2 FROM tab1 +---- +-111 +-114 +-43 +51 +85 +91 query III rowsort label-4805 SELECT * FROM tab0 WHERE NOT col0 + - ( - CAST ( NULL AS INTEGER ) ) IS NULL @@ -30735,8 +31046,15 @@ SELECT - 91 * + - col2 * - + col0 FROM tab1 # Datafusion - Expected - -58 # Datafusion - Expected - 2772 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* \(\- tab2\.col1\) AS col2" at position 0 and "\(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 36 * - col1 AS col2, - col2 AS col2 FROM tab2 +---- +-23 +-40 +-58 +1836 +2412 +2772 query II rowsort SELECT ALL col1 * col1, col0 FROM tab1 @@ -30802,8 +31120,10 @@ SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col2 + - col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to cb6a6ba5755f92071bf8a8a82b944fe1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- \(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col1 col2, - ( + - col1 ) AS col2, - - col2 FROM tab2 AS cor0 +---- +9 values hashing to d44e2aba212feaa301cc7f66fe45c70c query II rowsort label-5037 SELECT - SUM ( - 81 ) / - COUNT ( * ), 28 AS col2 FROM tab1 AS cor0 @@ -31789,8 +32109,15 @@ SELECT * FROM tab2 WHERE + col2 NOT IN ( - 19 ) # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, col2 AS col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-5204 SELECT MIN ( 75 ) col2 FROM tab2 @@ -32295,8 +32622,15 @@ SELECT ALL col1 FROM tab2 cor0 WHERE ( col2 ) IS NULL # Datafusion - Expected - 705 # Datafusion - Expected - -99 # Datafusion - Expected - 9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) 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 II valuesort SELECT DISTINCT - + col2 AS col1, col0 * col2 AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +705 +870 +9603 query I rowsort SELECT ALL - 66 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 >= + 71 @@ -32622,8 +32956,15 @@ SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT - col1 + - + col0 # Datafusion - Expected - 10 # Datafusion - Expected - 81 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +1 +10 +21 +47 +81 +99 query I rowsort SELECT DISTINCT + 15 AS col0 FROM tab2 cor0 @@ -32762,8 +33103,15 @@ SELECT DISTINCT - MIN ( DISTINCT col1 ) FROM tab2 AS cor0 # Datafusion - Expected - 4725 # Datafusion - Expected - -77 # Datafusion - Expected - 4032 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab2\.col1 AS Int32\)\) AS col1" at position 0 and "Int64\(62\) \* tab2\.col0 \+ tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( col1 AS INTEGER ) AS col1, + ( + 62 ) * col0 + col0 AS col1 FROM tab2 +---- +-51 +-67 +-77 +2898 +4032 +4725 query I rowsort label-5361 SELECT DISTINCT MAX ( - ( 40 ) ) AS col0 FROM tab1 @@ -32809,8 +33157,15 @@ SELECT + col1 * + 95 + + col1 * - - 22 + col0 + - - col0 * 93 + 36 FROM tab2 cor # Datafusion - Expected - 40 # Datafusion - Expected - 25 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \+ Int64\(53\) AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 28 + + 53 AS col2, 40 AS col2 FROM tab2 AS cor0 +---- +25 +25 +25 +40 +40 +40 query II rowsort SELECT DISTINCT - col0 AS col1, 1 FROM tab2 @@ -33343,8 +33698,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND NULL # Datafusion - Expected - 64 # Datafusion - Expected - -75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col1 \+ \(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + col1 + - + col0 AS col2, col0 col2 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +46 +64 +75 query I rowsort SELECT ALL + - col0 * - 16 AS col1 FROM tab2 AS cor0 @@ -34094,8 +34456,15 @@ SELECT + SUM ( 82 ) FROM tab0 AS cor0 # Datafusion - Expected - -89 # Datafusion - Expected - -77 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(\-89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, - 89 col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +-89 +-89 +-89 query I rowsort label-5582 SELECT ALL + COUNT ( DISTINCT + 21 ) FROM tab1 AS cor0 @@ -34518,8 +34887,15 @@ SELECT DISTINCT + 19 + - + col0, - ( + 42 ) FROM tab1 AS cor0 WHERE NOT NULL BET # Datafusion - Expected - 97 # Datafusion - Expected - -777 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* Int64\(37\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( col1 ) * + 37 col1, col0 col1 FROM tab0 AS cor0 +---- +-2997 +-37 +-777 +15 +87 +97 query I rowsort label-5652 SELECT COUNT ( * ) * + + ( MIN ( ALL + 63 ) ) - + + COUNT ( * ) FROM tab1 cor0 @@ -34909,8 +35285,11 @@ SELECT + col2 * - col2 + + col0 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col1, 37 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 +---- +37 +9 query I rowsort SELECT DISTINCT ( - col1 ) * - col2 AS col0 FROM tab1 @@ -35143,8 +35522,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col1, 9 AS col1 FROM tab0 AS cor0 +---- +-3 +9 query I rowsort SELECT ALL 52 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 @@ -35456,8 +35838,11 @@ SELECT ALL - - COUNT ( * ) AS col0, + 77 col2 FROM tab0 AS cor0 # 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\(cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 42 col0, + COUNT ( + ( col2 ) ) AS col0 FROM tab2 AS cor0 +---- +-42 +3 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT col0 / 91 IS NOT NULL @@ -36832,8 +37217,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 60 AS col1, - MIN ( DISTINCT col0 ) / - COUNT ( * ) AS col1 FROM tab0 +---- +-60 +5 query II rowsort SELECT col2, + ( - col2 ) FROM tab0 @@ -37094,8 +37482,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col2, 76 / - COUNT ( * ) AS col2 FROM tab1 +---- +-25 +-3 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 * ( + col0 ) NOT BETWEEN + col2 * col1 + col1 + - - col0 * + 36 AND 86 @@ -37699,8 +38090,11 @@ SELECT DISTINCT - + MAX ( + - 29 ) * + 33 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 64 AS col2, + 33 AS col2 FROM tab0 +---- +33 +64 query I rowsort SELECT - col2 - - 6 AS col1 FROM tab0 @@ -40980,8 +41374,15 @@ SELECT DISTINCT - 26, + col0 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 84 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 84 AS col1, col0 AS col1 FROM tab0 AS cor0 +---- +15 +84 +84 +84 +87 +97 query I rowsort SELECT col1 + col0 FROM tab0 AS cor0 WHERE NOT + col2 >= col2 @@ -41150,8 +41551,15 @@ SELECT - + col1 FROM tab1 AS cor0 WHERE - 85 + + 76 IS NOT NULL # Datafusion - Expected - 11 # Datafusion - Expected - -97 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \+ Int64\(26\) \* tab0\.col2 \* Int64\(0\) AS col2" at position 0 and "tab0\.col1 \- tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - + col0 ) + + 26 * col2 * ( 0 ) AS col2, col1 - col2 AS col2 FROM tab0 +---- +-15 +-87 +-97 +-98 +11 +34 query II rowsort SELECT DISTINCT col2, + col1 FROM tab0 @@ -42577,8 +42985,15 @@ SELECT DISTINCT - - col0 * + col1 + col0 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -51 # Datafusion - Expected - 159 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \+ cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - - col0 ) + + col2 col0, - col0 AS col0 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +144 +147 +159 query I rowsort SELECT ALL - ( + ( + + col2 ) ) + - col2 * - col2 + - 56 FROM tab1 cor0 @@ -42715,8 +43130,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT - 46 >= ( - ( - - col1 ) ) # Datafusion - Expected - -87 # Datafusion - Expected - -21 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 21 col2, - col0 AS col2 FROM tab0 AS cor0 +---- +-15 +-21 +-21 +-21 +-87 +-97 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 + col0 + col0 / 88 IS NOT NULL @@ -42782,8 +43204,15 @@ SELECT ALL + - col0 + 24 AS col2 FROM tab2 cor0 # Datafusion - Expected - -44 # Datafusion - Expected - 82 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col2 AS col0" at position 0 and "Int64\(\-44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 + col2 AS col0, - 44 AS col0 FROM tab1 AS cor0 +---- +-44 +-44 +-44 +21 +54 +82 query I rowsort label-7004 SELECT ALL + MAX ( ALL col0 ) AS col1 FROM tab2 cor0 @@ -43492,8 +43921,15 @@ SELECT ALL - 25 + + - col0 AS col1 FROM tab2 # Datafusion - Expected - 0 # Datafusion - Expected - 99 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col2 AS Int32\) AS col0" at position 0 and "tab0\.col0 / tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( col2 AS INTEGER ) col0, + col0 / col2 AS col0 FROM tab0 +---- +0 +0 +10 +47 +8 +99 query II rowsort SELECT DISTINCT 95 col2, 7 * - ( - - 55 ) FROM tab2 @@ -44389,8 +44825,11 @@ SELECT ALL - + col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1715 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(35\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 49 * 35 AS col2, + COUNT ( * ) col2 FROM tab2 AS cor0 +---- +1715 +3 query I rowsort label-7267 SELECT - + MAX ( + col0 ) FROM tab0 AS cor0 @@ -44440,8 +44879,15 @@ SELECT col2 * + - col0 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - 75 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 AS col0, + col1 AS col0 FROM tab2 AS cor0 +---- +46 +51 +64 +67 +75 +77 query II rowsort SELECT + col1 AS col2, 81 FROM tab0 AS cor0 @@ -45940,8 +46386,15 @@ SELECT + SUM ( DISTINCT + ( 97 ) ) FROM tab0 AS cor0 WHERE NOT 23 BETWEEN NULL A # Datafusion - Expected - 2079 # Datafusion - Expected - 81 # Datafusion - Expected - 8019 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "tab0\.col1 \* Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, col1 * 99 AS col0 FROM tab0 +---- +1 +2079 +21 +8019 +81 +99 query I rowsort SELECT + 76 AS col0 FROM tab0 WHERE NOT NULL IS NULL @@ -46905,8 +47358,15 @@ SELECT DISTINCT + MAX ( DISTINCT + col2 ) AS col1 FROM tab0 # Datafusion - Expected - -77 # Datafusion - Expected - 58 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, - col1 AS col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +23 +40 +58 query II rowsort SELECT col0 AS col0, 1 FROM tab0 AS cor0 @@ -46932,8 +47392,15 @@ SELECT ALL ( - - 41 ) FROM tab2 AS cor0 # Datafusion - Expected - 74 # Datafusion - Expected - 58 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 col1, 74 AS col1 FROM tab2 cor0 +---- +23 +40 +58 +74 +74 +74 query I rowsort SELECT col2 col1 FROM tab1 AS cor0 WHERE NOT - 33 * + 0 BETWEEN - col0 / + + col2 AND NULL @@ -47023,8 +47490,11 @@ SELECT DISTINCT 60 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - 41 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(0\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 0 col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col0 * - col1 IS NOT NULL +---- +0 +3 query I rowsort SELECT + + col0 * - col2 + + col2 FROM tab2 AS cor0 @@ -47174,8 +47644,15 @@ NULL # Datafusion - Expected - 10 # Datafusion - Expected - 81 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 col0, col2 col0 FROM tab0 +---- +1 +10 +21 +47 +81 +99 query III rowsort SELECT ALL * FROM tab2 WHERE + col2 * + 22 NOT BETWEEN NULL AND col1 @@ -48684,8 +49161,15 @@ SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 <= - 38 / CAST ( # Datafusion - Expected - -1 # Datafusion - Expected - -5 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col1\) / \(\- \(\- cor0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col1 AS col0, - col1 / - - col1 AS col0 FROM tab1 AS cor0 +---- +-1 +-1 +-1 +-14 +-47 +-5 query I rowsort label-7975 SELECT + - CAST ( NULL AS INTEGER ) * + col0 FROM tab1 AS cor0 @@ -49217,8 +49701,15 @@ SELECT - col2 + + 1 + + - col2 col1 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, col1 AS col2 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-8060 SELECT - ( - col0 ) / - col2 AS col2 FROM tab2 @@ -49234,8 +49725,15 @@ SELECT - ( - col0 ) / - col2 AS col2 FROM tab2 # Datafusion - Expected - -33 # Datafusion - Expected - 6881 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \+ \(\- tab2\.col2\) \+ Int64\(90\) \* tab2\.col1 \+ Int64\(55\) AS col0" at position 0 and "Int64\(\-33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 + - col2 + 90 * + col1 + + 55 AS col0, - 33 AS col0 FROM tab2 +---- +-33 +-33 +-33 +4576 +5952 +6881 query I rowsort label-8062 SELECT ALL COUNT ( - + col2 ) + 42 AS col0 FROM tab2 @@ -49635,8 +50133,11 @@ SELECT DISTINCT col1 * - - col2 * col2 + - col1 * 9 col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 97 / COUNT ( * ) AS col1, 72 AS col1 FROM tab1 AS cor0 +---- +32 +72 query III rowsort SELECT * FROM tab1 WHERE - - 3 <= + - col0 @@ -50131,8 +50632,15 @@ SELECT - CAST ( + 80 AS INTEGER ) AS col2, + COUNT ( * ) AS col1 FROM tab0 WHERE # Datafusion - Expected - -64 # Datafusion - Expected - 51 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "Int64\(\-64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 51 AS col2, - 64 col2 FROM tab0 +---- +-64 +-64 +-64 +51 +51 +51 query I rowsort label-8208 SELECT COUNT ( - CAST ( NULL AS INTEGER ) ) + + 51 * - COUNT ( * ) AS col2 FROM tab0 @@ -51230,8 +51738,9 @@ NULL NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 col0, col1 col0 FROM tab2 WHERE ( NULL ) <= ( NULL ) +---- query I rowsort SELECT + 7 * - col0 AS col0 FROM tab1 @@ -52452,8 +52961,11 @@ SELECT ALL - col0, 40 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 156 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 52 * COUNT ( * ) AS col2, - 25 AS col2 FROM tab0 +---- +-25 +156 query I rowsort label-8602 SELECT col2 / col0 FROM tab2 WHERE NOT + col2 = + - col0 * + + col0 + + - col0 @@ -53714,8 +54226,15 @@ SELECT - + 56 col0 FROM tab2 WHERE + col2 <> - col2 # Datafusion - Expected - 60 # Datafusion - Expected - 3 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 AS col0, 60 AS col0 FROM tab2 +---- +3 +3 +3 +60 +60 +60 query I rowsort label-8813 SELECT MIN ( DISTINCT + + col1 ) * + - COUNT ( * ) FROM tab0 @@ -54043,8 +54562,15 @@ SELECT ALL * FROM tab0 WHERE NOT 50 BETWEEN NULL AND ( - - col2 ) # Datafusion - Expected - 67 # Datafusion - Expected - 95 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \- Int64\(\-7\) \* Int64\(0\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 95 - - 7 * 0 AS col0, col1 AS col0 FROM tab2 +---- +51 +67 +77 +95 +95 +95 query I rowsort label-8867 SELECT ALL MAX ( - 99 ) FROM tab1 @@ -54406,8 +54932,15 @@ SELECT * FROM tab2 WHERE col1 * - 51 IS NULL # Datafusion - Expected - 137 # Datafusion - Expected - 99 # Datafusion - Expected - 137 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "Int64\(78\) \- \(\- Int64\(59\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, + 78 - - + 59 AS col1 FROM tab0 +---- +10 +137 +137 +137 +47 +99 query I rowsort SELECT ALL + col1 + + ( - 51 ) FROM tab1 @@ -54433,8 +54966,11 @@ SELECT ALL col0 * + 31 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(25\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( ( COUNT ( * ) ) ) + 25 AS col0, + COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +28 +3 query III rowsort SELECT * FROM tab0 cor0 WHERE NULL > - col0 @@ -55100,8 +55636,15 @@ SELECT DISTINCT - col2 * + col1 - - col0 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -84 # Datafusion - Expected - 75 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, - 84 AS col1 FROM tab2 AS cor0 +---- +-84 +-84 +-84 +46 +64 +75 query II rowsort SELECT ALL + col2, - col2 * - col1 * col0 AS col0 FROM tab1 AS cor0 @@ -55188,8 +55731,15 @@ SELECT COUNT ( ALL 49 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 4489 # Datafusion - Expected - 98 # Datafusion - Expected - 5929 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "tab2\.col1 \* tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 AS col0, + col1 * + col1 AS col0 FROM tab2 +---- +2601 +4489 +5929 +98 +98 +98 query I rowsort SELECT DISTINCT - col1 * 83 AS col2 FROM tab0 @@ -55205,8 +55755,15 @@ SELECT DISTINCT - col1 * 83 AS col2 FROM tab0 # Datafusion - Expected - 87 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col1, col0 AS col1 FROM tab0 +---- +15 +87 +97 +NULL +NULL +NULL query III rowsort label-9049 SELECT ALL * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) / - col1 IS NOT NULL @@ -55403,8 +55960,15 @@ NULL # Datafusion - Expected - 29 # Datafusion - Expected - 77 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( + + col1 ) AS col2, 29 AS col2 FROM tab2 AS cor0 +---- +29 +29 +29 +51 +67 +77 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE 15 IS NULL @@ -57260,8 +57824,15 @@ SELECT ALL + 34 - - + 48 FROM tab1 AS cor0 INNER JOIN tab1 AS cor1 ON NULL <= NU # Datafusion - Expected - -84 # Datafusion - Expected - 46 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col1" at position 0 and "Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 AS col1, - 84 AS col1 FROM tab1 +---- +-84 +-84 +-84 +46 +46 +46 query I rowsort label-9382 SELECT + ( COUNT ( * ) ) FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL @@ -57554,8 +58125,15 @@ SELECT + MIN ( + 70 ) AS col0 FROM tab0 # Datafusion - Expected - 67 # Datafusion - Expected - 9 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 9 AS col2, + col1 AS col2 FROM tab2 +---- +51 +67 +77 +9 +9 +9 query I rowsort label-9430 SELECT DISTINCT col2 / + col1 + col1 AS col2 FROM tab2 @@ -58962,8 +59540,15 @@ SELECT ALL + COUNT ( * ) FROM tab2 WHERE - CAST ( NULL AS INTEGER ) NOT IN ( - 7 # Datafusion - Expected - 3240 # Datafusion - Expected - 91 # Datafusion - Expected - 3693 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col2 \* Int64\(55\) \+ \(\- tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, + col2 * 55 + - col1 col2 FROM tab1 +---- +3240 +3693 +51 +5266 +85 +91 query I rowsort SELECT ALL - + 32 AS col0 FROM tab1 WHERE - - 41 NOT IN ( - + col2 + - ( 49 ), col1 + - col2 ) @@ -59047,8 +59632,15 @@ SELECT DISTINCT - 72 + + col1 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "tab0\.col2 \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, col2 * - + CAST ( NULL AS INTEGER ) col0 FROM tab0 +---- +1 +21 +81 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * 14 * - col2 IN ( - col1, + col1 + - 12, + 72 ) @@ -59631,8 +60223,15 @@ SELECT - SUM ( ALL - ( + col0 ) ) FROM tab0 cor0 # Datafusion - Expected - -4956 # Datafusion - Expected - 2 # Datafusion - Expected - -4956 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "Int64\(84\) \* Int64\(\-59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 2 AS col0, 84 * - 59 col0 FROM tab0 cor0 +---- +-4956 +-4956 +-4956 +2 +2 +2 query I rowsort label-9774 SELECT + CAST ( + + 97 AS INTEGER ) FROM tab0 @@ -60638,8 +61237,15 @@ SELECT + - col0 * - + col0 + + 56 col1 FROM tab0 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -39 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col2" at position 0 and "cor0\.col1 \- CAST\(Int64\(48\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 39 AS col2, + col1 - CAST ( 48 AS INTEGER ) AS col2 FROM tab0 AS cor0 +---- +-27 +-39 +-39 +-39 +-47 +33 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -60661,8 +61267,15 @@ NULL # Datafusion - Expected - 77 # Datafusion - Expected - 7967 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(51\)\) \* \(\- cor0\.col0\) \+ cor0\.col2 \+ Int64\(27\) \+ \(\- cor0\.col1\) \* Int64\(\-88\) AS col2" at position 0 and "\(\- cor0\.col2\) \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 51 * - col0 + + col2 + + 27 + - col1 * - 88 AS col2, - col2 + col0 col2 FROM tab0 AS cor0 +---- +-2 +-32 +5161 +6322 +77 +7967 query I rowsort label-9935 SELECT ALL - CAST ( + 4 AS INTEGER ) FROM tab0 cor0 @@ -60848,8 +61461,15 @@ SELECT + 46 + - col2 * - col1 FROM tab0 # Datafusion - Expected - 77 # Datafusion - Expected - 58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col2 col0, + col1 col0 FROM tab2 AS cor0 +---- +23 +40 +51 +58 +67 +77 query I rowsort label-9965 SELECT ALL + 26 + col1 / col0 AS col1 FROM tab0 cor0 @@ -60964,8 +61584,11 @@ SELECT ALL ( 96 ), - 80 col0 FROM tab0 AS cor0 WHERE ( - 69 ) IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +3 +3 query I rowsort label-9982 SELECT DISTINCT - 44 * 67 / - - COUNT ( * ) FROM tab1 diff --git a/data/sqlite/random/aggregates/slt_good_15.slt b/data/sqlite/random/aggregates/slt_good_15.slt index 9236940..dfdcd6d 100644 --- a/data/sqlite/random/aggregates/slt_good_15.slt +++ b/data/sqlite/random/aggregates/slt_good_15.slt @@ -553,8 +553,15 @@ SELECT - col0, col1 - col2 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( col1 ) col0, col1 AS col0 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-94 SELECT ALL - COUNT ( * ) * 74 FROM tab0 AS cor0 @@ -1122,8 +1129,15 @@ SELECT col1, 47 AS col1 FROM tab1 # Datafusion - Expected - 9 # Datafusion - Expected - -75 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col1, + 9 AS col1 FROM tab2 +---- +-46 +-64 +-75 +9 +9 +9 query I rowsort SELECT - + 90 * 48 FROM tab1 AS cor0 @@ -2128,8 +2142,15 @@ SELECT + ( + 47 ) FROM tab2 AS cor0 # Datafusion - Expected - -5929 # Datafusion - Expected - 58 # Datafusion - Expected - -4489 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- cor0\.col2\)\) AS Int32\) AS col0" at position 0 and "cor0\.col1 \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - - col2 AS INTEGER ) AS col0, + col1 * - col1 AS col0 FROM tab2 AS cor0 +---- +-2601 +-4489 +-5929 +23 +40 +58 query III rowsort SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND - col0 @@ -2568,8 +2589,15 @@ SELECT ALL + - 65 * - col1 * col0 AS col2 FROM tab1 WHERE NULL IS NULL # Datafusion - Expected - 2560 # Datafusion - Expected - -38 # Datafusion - Expected - 4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col2" at position 0 and "tab2\.col0 \* tab2\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 38 AS col2, col0 * col2 AS col2 FROM tab2 +---- +-38 +-38 +-38 +1058 +2560 +4350 query II rowsort label-422 SELECT + col0 AS col1, ( - col1 ) * col2 / col1 - - col1 FROM tab0 @@ -3244,8 +3272,15 @@ SELECT ALL + - col1 - 16 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -17 # Datafusion - Expected - 94 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \- Int64\(\-3\) \* cor0\.col1 AS col1" at position 0 and "Int64\(\-17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 79 - - 3 * col1 col1, - 17 AS col1 FROM tab1 AS cor0 +---- +-17 +-17 +-17 +121 +220 +94 query III rowsort SELECT ALL * FROM tab2 cor0 WHERE NOT + col0 + - col1 IS NULL @@ -3710,8 +3745,15 @@ SELECT * FROM tab0 cor0 WHERE NOT col2 / - 30 IS NULL # Datafusion - Expected - 11 # Datafusion - Expected - 9504 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col0 \- cor0\.col2 \+ \(\- cor0\.col1\) \+ cor0\.col1 AS col1" at position 0 and "\(\- cor0\.col2\) \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * + + ( + + col0 ) - + col2 + - col1 + col1 AS col1, - col2 + + + col1 AS col1 FROM tab0 AS cor0 +---- +-98 +11 +34 +658 +860 +9504 query I rowsort SELECT - + ( + 43 ) FROM tab0 AS cor0 @@ -4117,8 +4159,15 @@ SELECT ALL - - 55 * - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 IS # Datafusion - Expected - -1001 # Datafusion - Expected - 58 # Datafusion - Expected - -871 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(\-13\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, - 13 * + col1 col0 FROM tab2 AS cor0 +---- +-1001 +-663 +-871 +23 +40 +58 query II rowsort SELECT - 2, + col1 FROM tab1 AS cor0 @@ -4183,8 +4232,15 @@ SELECT - col2 / - + 83 - - + 66 AS col2 FROM tab1 cor0 # Datafusion - Expected - -2231 # Datafusion - Expected - 71 # Datafusion - Expected - -345 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "\(\- cor0\.col0\) \* Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( + + 71 ) col2, - col0 * + 23 AS col2 FROM tab0 cor0 +---- +-2001 +-2231 +-345 +71 +71 +71 query I rowsort label-683 SELECT DISTINCT - + MIN ( ALL + + col0 ) AS col0 FROM tab1 AS cor0 @@ -4862,8 +4918,15 @@ SELECT - 72 * col1 AS col1 FROM tab2 # Datafusion - Expected - -47 # Datafusion - Expected - 46 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col1" at position 0 and "\(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 AS col1, - col2 AS col1 FROM tab0 +---- +-10 +-47 +-99 +46 +46 +46 query I rowsort SELECT ALL col1 AS col1 FROM tab0 WHERE NOT ( NULL <> + 13 * 6 * col2 ) @@ -5505,8 +5568,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 56 AS col0, - ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0 +---- +-3 +56 query I rowsort SELECT DISTINCT + 80 FROM tab1 WHERE NOT NULL IS NULL @@ -5895,8 +5961,15 @@ SELECT * FROM tab1 WHERE + 86 > ( - 81 ) # Datafusion - Expected - 59 # Datafusion - Expected - 42 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 42 AS col2, 59 AS col2 FROM tab2 +---- +42 +42 +42 +59 +59 +59 query III rowsort SELECT * FROM tab0 WHERE NULL BETWEEN + + col0 AND NULL @@ -5990,8 +6063,15 @@ SELECT + - 57 AS col2, - 82 FROM tab0 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - -58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 58 AS col1, ( + col0 ) AS col1 FROM tab2 cor0 +---- +-58 +-58 +-58 +46 +64 +75 query I rowsort label-983 SELECT + 57 * - 62 * - COUNT ( * ) AS col1 FROM tab2 AS cor0 @@ -6077,8 +6157,11 @@ SELECT ALL - col1 * col0 FROM tab2 WHERE ( col1 * + col1 ) IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 13 AS col2, + 22 col2 FROM tab0 +---- +13 +22 query I rowsort SELECT ALL 32 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL @@ -6221,8 +6304,15 @@ SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN col1 AND + col2 # Datafusion - Expected - 0 # Datafusion - Expected - 7 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "Int64\(38\) / Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 7 AS col0, 38 / - 91 AS col0 FROM tab0 +---- +0 +0 +0 +7 +7 +7 query I rowsort label-1026 SELECT ( - - ( + CAST ( NULL AS INTEGER ) ) ) * 34 col2 FROM tab1 @@ -6488,8 +6578,11 @@ SELECT DISTINCT + COUNT ( * ), COUNT ( * ) AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col0, 92 AS col0 FROM tab0 AS cor0 +---- +3 +92 query I rowsort SELECT ALL - + 33 col2 FROM tab1 AS cor0 @@ -6565,8 +6658,15 @@ SELECT DISTINCT - 78 * + - COUNT ( * ) * + ( COUNT ( * ) ) AS col2 FROM tab0 # Datafusion - Expected - 91 # Datafusion - Expected - -5 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col2, + 91 col2 FROM tab1 +---- +-14 +-47 +-5 +91 +91 +91 query I rowsort SELECT ALL - 2 * 25 FROM tab1 AS cor0 @@ -7214,8 +7314,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 27 col0, + 2 * + COUNT ( * ) + + - 58 AS col0 FROM tab1 AS cor0 +---- +-52 +27 query I rowsort label-1186 SELECT COUNT ( * ) + + + 60 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -7581,8 +7684,15 @@ NULL # Datafusion - Expected - 0 # Datafusion - Expected - 53 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "\(\- cor0\.col1\) / cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 AS col2, - col1 / col2 AS col2 FROM tab1 AS cor0 +---- +0 +0 +0 +53 +53 +53 query II rowsort SELECT + col2 AS col2, col0 + - 36 AS col0 FROM tab0 AS cor0 @@ -7721,8 +7831,15 @@ SELECT ALL + col0 + + - ( - + 33 ) / 72 AS col0 FROM tab0 # Datafusion - Expected - 68 # Datafusion - Expected - 26 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ \(\- tab1\.col2\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + - + col2 AS col0, col2 AS col0 FROM tab1 +---- +-45 +23 +26 +59 +68 +96 query I rowsort label-1267 SELECT - col1 * + 0 / + col1 + + + 67 AS col2 FROM tab1 @@ -7927,8 +8044,9 @@ SELECT - + col2 + - ( + - col2 ) FROM tab1 AS cor0 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* Int64\(22\) AS col1" at position 0 and "cor0\.col2 \+ \(\- cor0\.col1\) / \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 31 * + + 22 AS col1, col2 + - col1 / - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 WHERE NOT ( - 33 - + ( - - 83 ) + + + col2 - + - 23 - - 71 + col0 + - 60 + + - col1 + - col1 * col0 + col0 ) IS NOT NULL +---- query I rowsort SELECT ALL + ( - 26 ) * 37 AS col1 FROM tab2 AS cor0 @@ -8086,8 +8204,15 @@ SELECT * FROM tab1 WHERE NOT col1 * - col1 * 1 + - + col2 BETWEEN - col1 * - col # Datafusion - Expected - NULL # Datafusion - Expected - 93 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \+ \(\- \(\- tab0\.col0\)\) AS col1" at position 0 and "tab0\.col1 \- \(\- tab0\.col0\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 78 + - - col0 col1, col1 - - col0 * - CAST ( NULL AS INTEGER ) + + + 77 AS col1 FROM tab0 +---- +165 +175 +93 +NULL +NULL +NULL query I rowsort SELECT ( - col0 ) * + col2 * + col0 FROM tab0 cor0 @@ -8262,8 +8387,15 @@ SELECT DISTINCT + - MAX ( ALL - 28 ) FROM tab0 AS cor0 # Datafusion - Expected - 96 # Datafusion - Expected - -5 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, 96 AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +96 +96 +96 query II rowsort SELECT 80 * + col1, col2 FROM tab0 WHERE NOT NULL IS NOT NULL @@ -9820,8 +9952,15 @@ SELECT DISTINCT 97 * col1 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - -57 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(57\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 57 AS col1, + col0 col1 FROM tab0 AS cor0 +---- +-57 +-57 +-57 +15 +87 +97 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT + 27 IS NULL @@ -9859,8 +9998,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - + col1 * col1 * ( - 3 # Datafusion - Expected - 97 # Datafusion - Expected - 88 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-88\)\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 88 AS col0, + 97 AS col0 FROM tab2 AS cor0 +---- +88 +88 +88 +97 +97 +97 query I rowsort label-1609 SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 62 = - CAST ( - col1 AS INTEGER ) * - col0 @@ -10213,8 +10359,15 @@ SELECT ALL - col1 AS col2, col1 FROM tab1 AS cor0 # Datafusion - Expected - 1585 # Datafusion - Expected - 51 # Datafusion - Expected - 1849 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "cor0\.col0 \* Int64\(24\) \+ Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 51 AS col2, col0 * + 24 + + ( 49 ) AS col2 FROM tab2 AS cor0 +---- +1153 +1585 +1849 +51 +51 +51 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN NULL AND - 87 @@ -10467,8 +10620,15 @@ SELECT DISTINCT * FROM tab1 cor0 WHERE - col1 NOT BETWEEN NULL AND - - col2 # Datafusion - Expected - 5100 # Datafusion - Expected - 6121 # Datafusion - Expected - 5460 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \+ \(\- Int64\(\-24\)\) \+ tab1\.col0 \* tab1\.col2 AS col1" at position 0 and "\(\- tab1\.col0\) \* Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + - - 24 + col0 * + col2 col1, - col0 * - 60 col1 FROM tab1 +---- +3060 +4869 +4954 +5100 +5460 +6121 query I rowsort SELECT - col1 * + col1 + ( col2 ) FROM tab1 @@ -10784,8 +10944,15 @@ SELECT + + col0 AS col2 FROM tab2 WHERE NOT col1 * col1 / - col2 IS NOT NULL # Datafusion - Expected - 28 # Datafusion - Expected - -96 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col2\) AS Int32\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( - col2 AS INTEGER ) AS col2, + 28 AS col2 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +28 +28 +28 query III rowsort SELECT * FROM tab0 WHERE NOT - - col1 * - col1 * + col0 BETWEEN NULL AND NULL @@ -11755,8 +11922,15 @@ SELECT CAST ( col0 AS INTEGER ) AS col0 FROM tab1 WHERE NOT + 54 = + - col0 # Datafusion - Expected - -29 # Datafusion - Expected - 3450 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \* Int64\(\-46\) AS col0" at position 0 and "Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 * + - 46 AS col0, - 29 AS col0 FROM tab2 +---- +-29 +-29 +-29 +2116 +2944 +3450 query III rowsort SELECT ALL * FROM tab0 WHERE NOT NULL IN ( + col1 + col1 + + col2 * col2 ) @@ -11916,8 +12090,15 @@ SELECT ALL + + 33 AS col2 FROM tab1 WHERE NOT NULL IS NULL # Datafusion - Expected - -87 # Datafusion - Expected - 19 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 AS col0, - col0 AS col0 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +19 +19 +19 query II rowsort SELECT DISTINCT + - 21 AS col2, col0 FROM tab1 AS cor0 @@ -12180,8 +12361,11 @@ SELECT DISTINCT MAX ( ALL ( + col0 ) ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col0, - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 +---- +-9 +NULL query II rowsort SELECT col0, - col1 * - - col1 * 15 AS col1 FROM tab0 @@ -13029,8 +13213,15 @@ SELECT + + 31 AS col0 FROM tab0 AS cor0 WHERE - col1 * - col1 * + col0 * - + col # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 AS col1, col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT col0 - col2 AS col0 FROM tab2 cor0 @@ -13297,8 +13488,15 @@ SELECT ALL - + 2 * - - col0 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 61 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-61\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 61 AS col1, col2 AS col1 FROM tab0 AS cor0 +---- +10 +47 +61 +61 +61 +99 query I rowsort label-2169 SELECT DISTINCT CAST ( + + col0 AS INTEGER ) + - 81 AS col0 FROM tab1 @@ -13662,8 +13860,15 @@ SELECT ( - ( + - 75 ) ) * - ( + col0 ) + - + 15 AS col1 FROM tab0 # Datafusion - Expected - -4624 # Datafusion - Expected - 32 # Datafusion - Expected - -9216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 0 and "tab1\.col2 \* \(\- \(\- \(\- tab1\.col2\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 32 AS col1, + col2 * + + ( - ( - - col2 ) ) AS col1 FROM tab1 +---- +-3481 +-4624 +-9216 +32 +32 +32 query I rowsort label-2230 SELECT ALL + CAST ( NULL AS INTEGER ) * - + SUM ( - col2 ) FROM tab0 WHERE NOT + 77 <= + col2 @@ -14782,8 +14987,15 @@ SELECT + col1, ( col2 ) AS col0 FROM tab1 # Datafusion - Expected - -441 # Datafusion - Expected - 81 # Datafusion - Expected - -6561 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col1 \* \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, col1 * - col1 AS col2 FROM tab0 +---- +-1 +-441 +-6561 +1 +21 +81 query III rowsort label-2422 SELECT ALL * FROM tab0 WHERE NOT - 24 + 96 + - + 52 * - CAST ( NULL AS INTEGER ) * col1 + - col0 * - col1 NOT IN ( col2 ) @@ -15073,8 +15285,15 @@ SELECT - 80 - ( + col2 ) FROM tab2 # Datafusion - Expected - 98 # Datafusion - Expected - 12 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col1" at position 0 and "Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 12 AS col1, + 98 AS col1 FROM tab1 AS cor0 +---- +12 +12 +12 +98 +98 +98 query II rowsort label-2470 SELECT DISTINCT - col2, + col0 + 61 + + - ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 @@ -15173,8 +15392,15 @@ SELECT DISTINCT col1 FROM tab2 cor0 WHERE NOT - col0 IS NOT NULL # Datafusion - Expected - 48 # Datafusion - Expected - 97 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, 48 AS col1 FROM tab0 AS cor0 +---- +15 +48 +48 +48 +87 +97 query I rowsort SELECT ALL + + ( - col1 ) FROM tab1 WHERE NULL IS NOT NULL @@ -15504,8 +15730,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col2 ) IN ( col2, - 0 + - col2 * c # Datafusion - Expected - -128 # Datafusion - Expected - 99 # Datafusion - Expected - -100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col2\) \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, - col2 + + ( - col1 ) AS col1 FROM tab0 AS cor0 +---- +-100 +-128 +-31 +10 +47 +99 query III rowsort label-2539 SELECT * FROM tab2 WHERE NOT + 42 + + col0 * + col1 + col1 + + CAST ( NULL AS INTEGER ) IS NOT NULL @@ -15947,8 +16180,15 @@ SELECT 63 * + 52 col2 FROM tab0 # Datafusion - Expected - -68 # Datafusion - Expected - 11 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "\(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 col2, - col2 col2 FROM tab1 +---- +-59 +-68 +-96 +11 +11 +11 query III rowsort SELECT ALL * FROM tab1 WHERE + 41 BETWEEN - 34 AND + + col0 @@ -16342,8 +16582,10 @@ SELECT ALL - COUNT ( * ) / - + 24 * - 99 + + - 95 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to efe8b1ba49a3a9b053a965d06d59b703 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 1 and "tab1\.col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + col0 AS col0, + col2, + col2 FROM tab1 +---- +9 values hashing to f9d8097961db29b361f7f8846c834b45 query I rowsort SELECT 22 * - + ( col2 ) AS col0 FROM tab2 @@ -16587,8 +16829,15 @@ SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE ( NOT CAST ( NULL AS INTEGER ) IS # Datafusion - Expected - 65 # Datafusion - Expected - 86 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "cor0\.col0 \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 86 AS col0, col0 + + + col1 AS col0 FROM tab1 cor0 +---- +138 +65 +86 +86 +86 +90 query I rowsort label-2707 SELECT ( SUM ( DISTINCT - col2 ) ) FROM tab1 AS cor0 @@ -18079,8 +18328,15 @@ SELECT ALL COUNT ( - - 33 ) FROM tab1 # Datafusion - Expected - 69 # Datafusion - Expected - 96 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, + 69 AS col1 FROM tab1 +---- +59 +68 +69 +69 +69 +96 query I rowsort label-2953 SELECT CAST ( + + 3 AS INTEGER ) * - col2 FROM tab2 cor0 @@ -18506,8 +18762,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 37 AS col1, - 18 * + 37 - - COUNT ( * ) AS col1 FROM tab1 cor0 +---- +-37 +-663 query III rowsort SELECT DISTINCT * FROM tab0 WHERE + - 82 + col0 NOT BETWEEN NULL AND + col0 @@ -18635,8 +18894,11 @@ SELECT + COUNT ( * ) / + COUNT ( * ) - - COUNT ( * ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 192 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \+ sum\(tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, CAST ( - COUNT ( * ) AS INTEGER ) + SUM ( col1 ) AS col1 FROM tab2 +---- +-3 +192 query II rowsort SELECT ALL col1 * - 49 col0, 98 AS col2 FROM tab0 @@ -19318,8 +19580,11 @@ SELECT - 58 * - + COUNT ( * ) 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 col2" at position 0 and "count\(tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 AS col2, + COUNT ( ALL + col1 ) AS col2 FROM tab0 +---- +3 +37 query I rowsort label-3154 SELECT ALL + MIN ( ALL + + ( + + ( - col2 ) ) ) FROM tab0 @@ -20167,8 +20432,15 @@ SELECT + - 28 AS col1, - col2 AS col2 FROM tab0 cor0 # Datafusion - Expected - -5481 # Datafusion - Expected - 81 # Datafusion - Expected - -945 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 \* \(\- Int64\(63\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, col0 * - + 63 AS col2 FROM tab0 cor0 +---- +-5481 +-6111 +-945 +1 +21 +81 query I rowsort label-3293 SELECT + SUM ( ALL col2 ) FROM tab1 AS cor0 WHERE NOT ( + col0 ) < col2 + + col2 @@ -20610,8 +20882,15 @@ SELECT + ( col1 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN 82 / - ( # Datafusion - Expected - -74 # Datafusion - Expected - -5 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col0" at position 0 and "\(\- cor0\.col2\) \+ cor0\.col2 \- cor0\.col0 \+ \(\- Int64\(8\)\) \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 5 AS col0, - col2 + col2 - + col0 + - + 8 + + col1 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL +---- +-104 +-5 +-5 +-5 +-74 +58 query I rowsort label-3362 SELECT ALL - + 87 / - - COUNT ( * ) FROM tab1 cor0 @@ -20939,8 +21218,11 @@ SELECT ALL + col0 + + col1 + + col0 / + col1 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -156 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(CAST\(\(\- tab0\.col2\) AS Int32\)\) AS col1" at position 0 and "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( CAST ( - col2 AS INTEGER ) ) AS col1, 58 AS col1 FROM tab0 +---- +-156 +58 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE - 99 + - col1 - + - 21 IS NOT NULL @@ -21409,8 +21691,15 @@ SELECT ALL 7 * + col1 col1 FROM tab1 # Datafusion - Expected - 146 # Datafusion - Expected - 97 # Datafusion - Expected - 9847 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(46\) \+ \(\- cor0\.col2\) \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, 46 + + - col2 * ( ( - col2 ) ) AS col1 FROM tab0 AS cor0 +---- +146 +15 +2255 +87 +97 +9847 query I rowsort SELECT DISTINCT + col1 * - - col1 FROM tab1 AS cor0 WHERE NULL <= ( NULL ) @@ -22920,8 +23209,15 @@ SELECT 8 + - SUM ( ALL + + col1 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - -5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col1, col0 col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +51 +85 +91 query I rowsort label-3749 SELECT + MIN ( DISTINCT + col2 ) / - ( + 63 * 93 ) FROM tab1 cor0 WHERE NOT - ( col2 ) >= NULL @@ -23128,8 +23424,15 @@ SELECT DISTINCT 33 AS col2, - 43 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 76 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 +---- +76 +76 +76 +NULL +NULL +NULL query III rowsort label-3782 SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST ( - col0 AS INTEGER ) * 53 ) IS NULL @@ -23407,8 +23710,15 @@ SELECT ALL 25 AS col0 FROM tab1 cor0 # Datafusion - Expected - -67 # Datafusion - Expected - -77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, - col1 AS col0 FROM tab2 AS cor0 +---- +-51 +-51 +-67 +-67 +-77 +-77 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 72 BETWEEN ( - col2 ) AND + 54 @@ -24126,8 +24436,15 @@ SELECT * FROM tab2 WHERE NULL <> - + 42 + col0 + + col2 # Datafusion - Expected - -45 # Datafusion - Expected - 92 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ tab2\.col0 AS col0" at position 0 and "Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + + + col0 AS col0, - 45 AS col0 FROM tab2 +---- +-45 +-45 +-45 +128 +150 +92 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 @@ -24136,8 +24453,15 @@ SELECT col0 + + + col0 AS col0, - 45 AS col0 FROM tab2 # Datafusion - Expected - -408 # Datafusion - Expected - -5 # Datafusion - Expected - -354 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "\(\- tab1\.col2\) \* Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 AS col2, - col2 * + 6 AS col2 FROM tab1 WHERE + - 66 <> - - col1 +---- +-14 +-354 +-408 +-47 +-5 +-576 query I rowsort SELECT DISTINCT + col2 * - col2 - col0 FROM tab2 AS cor0 @@ -24153,8 +24477,15 @@ SELECT DISTINCT + col2 * - col2 - col0 FROM tab2 AS cor0 # Datafusion - Expected - 3144 # Datafusion - Expected - 4484 # Datafusion - Expected - 3961 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- \(\- cor0\.col0\)\) \- \(\- cor0\.col1\) \- \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 \+ cor0\.col2 \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col2 * - - col0 - - col1 - - col1 AS col2, col0 + + col2 * col1 AS col2 FROM tab2 cor0 +---- +1160 +1219 +2714 +3144 +3961 +4484 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -24812,8 +25143,11 @@ SELECT ALL 56 AS col1 FROM tab1 WHERE ( + CAST ( - + col1 AS INTEGER ) * + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 95 AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0 +---- +95 +NULL query I rowsort label-4049 SELECT ALL + SUM ( + - CAST ( NULL AS INTEGER ) ) FROM tab2 @@ -24899,8 +25233,11 @@ SELECT + + 27 + + col2 AS col1 FROM tab2 AS cor0 # 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 "cor0\.col0 / cor0\.col0 AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 / + col0 AS col1, - 0 AS col1 FROM tab1 AS cor0 +---- +0 +1 query I rowsort SELECT ALL 60 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -24974,8 +25311,15 @@ SELECT + col0 * + + col0 col1 FROM tab2 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col2, + col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query II rowsort SELECT DISTINCT ( - col2 ), 73 - - - col2 AS col1 FROM tab1 @@ -25923,8 +26267,15 @@ SELECT col0 * 47 * - col2 FROM tab0 # Datafusion - Expected - 476847 # Datafusion - Expected - 97 # Datafusion - Expected - 592767 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "\(\- tab0\.col0\) \* Int64\(\-63\) \* tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col2, - col0 * - 63 * col0 col2 FROM tab0 +---- +14175 +15 +476847 +592767 +87 +97 query I rowsort label-4234 SELECT DISTINCT SUM ( ALL + col1 ) * + + COUNT ( * ) AS col0 FROM tab2 @@ -26086,8 +26437,15 @@ SELECT ALL - + 72 col1 FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 97 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, + 68 AS col2 FROM tab0 AS cor0 +---- +15 +68 +68 +68 +87 +97 query I rowsort SELECT - + col2 * - + col1 FROM tab0 AS cor0 @@ -26198,8 +26556,10 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE 69 * - - col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 9b17d0d762fe6198a55eb68d52b0049d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 1 and "tab1\.col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 93 col1, + col0, + + col0 FROM tab1 +---- +9 values hashing to 87ac7f28b5db2c2dc2968a981fb2af56 query II rowsort label-4278 SELECT + COUNT ( * ), 72 + MAX ( + 55 ) + + - 84 AS col2 FROM tab0 @@ -26216,8 +26576,11 @@ SELECT DISTINCT - 20 + - COUNT ( * ) AS col2, - COUNT ( * ) + COUNT ( * ) FROM t # 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 col1" at position 0 and "count\(tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 28 AS col1, COUNT ( col0 ) AS col1 FROM tab0 +---- +28 +3 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -26444,8 +26807,11 @@ SELECT + 27 * + col2 + 48 + + col2 FROM tab2 WHERE NOT - 54 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col1" at position 0 and "sum\(DISTINCT \(\- Int64\(53\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 24 AS col1, SUM ( DISTINCT - + 53 ) col1 FROM tab0 AS cor0 +---- +-24 +-53 query I rowsort SELECT DISTINCT ( - + 0 ) FROM tab2 AS cor0 @@ -26468,8 +26834,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT + 3 + + col1 * + + col1 + - + 48 * - col0 < # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col1, col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-4321 SELECT DISTINCT 62 * + COUNT ( * ) * - - 30 AS col2 FROM tab0 @@ -26764,8 +27137,11 @@ SELECT ALL + col0 * - CAST ( - 80 AS INTEGER ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 5915 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "max\(\(\- \(\- cor0\.col0\)\)\) \* Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 AS col1, MAX ( ALL - - col0 ) * + 65 AS col1 FROM tab1 AS cor0 +---- +5915 +87 query I rowsort label-4372 SELECT ALL + COUNT ( DISTINCT - + 54 ) AS col0 FROM tab1 WHERE + 35 >= NULL @@ -26847,8 +27223,11 @@ SELECT * FROM tab0 WHERE - CAST ( - - col1 AS FLOAT8 ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col0" at position 0 and "Int64\(\-7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 54 AS col0, - 7 AS col0 FROM tab2 +---- +-7 +54 query II rowsort label-4387 SELECT 87, - COUNT ( - 24 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL @@ -26883,8 +27262,15 @@ SELECT col0 AS col0, col2 / - - CAST ( col0 AS INTEGER ) + col1 AS col1 FROM tab # Datafusion - Expected - -21 # Datafusion - Expected - 97 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 col1, + ( - col1 ) AS col1 FROM tab0 +---- +-1 +-21 +-81 +15 +87 +97 query I rowsort SELECT DISTINCT col2 * + 32 * - 57 FROM tab2 AS cor0 @@ -27120,8 +27506,11 @@ SELECT DISTINCT + + ( + + 26 ) AS col1 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, + 15 col0 FROM tab1 AS cor0 +---- +15 +3 query I rowsort SELECT ALL - ( - 7 ) AS col1 FROM tab2 AS cor0 @@ -27422,8 +27811,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 67 AS col2, - COUNT ( * ) AS col2 FROM tab0 cor0 +---- +-3 +67 query I rowsort SELECT + col1 + + 96 + col0 * - col2 FROM tab1 AS cor0 @@ -28425,8 +28817,15 @@ SELECT + + col0 / + + col0 FROM tab0 AS cor0 # Datafusion - Expected - 32 # Datafusion - Expected - 82 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "Int64\(72\) \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 82 col1, 72 + - col2 AS col1 FROM tab2 AS cor0 +---- +14 +32 +49 +82 +82 +82 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 / - col1 ) IN ( - col0 ) @@ -28798,8 +29197,11 @@ SELECT + 57 + + - col1 * col0 col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(53\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - COUNT ( * ) AS col1, 53 - COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +3 +50 query I rowsort SELECT - 88 * col1 + ( + col1 ) * + col1 * + col1 + - col2 FROM tab1 AS cor0 @@ -28936,8 +29338,15 @@ SELECT 96 * + - 48 + - col1 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 6 # Datafusion - Expected - 15 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \+ Int64\(\-6\) AS col1" at position 0 and "Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 + - 6 AS col1, + 6 col1 FROM tab2 +---- +15 +15 +15 +6 +6 +6 query II rowsort SELECT DISTINCT col1 + col2, col0 FROM tab2 @@ -29031,8 +29440,11 @@ SELECT COUNT ( * ) - - - 93 * - + ( - COUNT ( * ) ) AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1862 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(49\) AS Int32\)\) \* Int64\(38\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( + + 49 AS INTEGER ) * + + 38 AS col2, + ( 69 ) AS col2 FROM tab1 AS cor0 +---- +-1862 +69 query I rowsort SELECT ALL - ( + + col2 ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL @@ -29084,8 +29496,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 87 AND + 2 # Datafusion - Expected - 75 # Datafusion - Expected - -2142 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col1 \+ cor0\.col1 \* Int64\(\-93\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * col1 + + col1 * - 93 AS col1, col0 AS col1 FROM tab2 AS cor0 +---- +-1232 +-1742 +-2142 +46 +64 +75 query I rowsort label-4758 SELECT - MAX ( CAST ( + 75 AS INTEGER ) ) AS col2 FROM tab0 AS cor0 @@ -29309,8 +29728,11 @@ 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\(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\. +query II valuesort SELECT + ( + COUNT ( * ) ), COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL +---- +0 +0 query II rowsort label-4794 SELECT - 54 AS col2, COUNT ( - - col1 ) FROM tab2 AS cor0 @@ -29788,8 +30210,15 @@ SELECT + COUNT ( DISTINCT - 16 ) FROM tab1 AS cor0 WHERE NOT + col0 IS NULL # Datafusion - Expected - 55 # Datafusion - Expected - -3886 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* \(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * - - col2 col0, + 55 col0 FROM tab2 AS cor0 +---- +-1173 +-3080 +-3886 +55 +55 +55 query II rowsort label-4872 SELECT + COUNT ( * ) AS col0, - ( - + 84 ) AS col2 FROM tab0 @@ -29898,8 +30327,15 @@ SELECT ALL col1 + + + col2 * - 15 + - ( + - col0 ) FROM tab0 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - -4 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col2" at position 0 and "cor0\.col1 / Int64\(\-75\) \- \(\- \(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 4 AS col2, + col1 / - 75 - - - col1 AS col2 FROM tab2 AS cor0 +---- +-4 +-4 +-4 +-51 +-67 +-78 query I rowsort label-4889 SELECT DISTINCT + CAST ( col2 AS INTEGER ) + - col1 AS col2 FROM tab2 AS cor0 @@ -30048,8 +30484,11 @@ SELECT ALL 68 + - - MIN ( - col0 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -225 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 * - COUNT ( * ) AS col2, COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 +---- +-225 +9 query I rowsort label-4912 SELECT DISTINCT SUM ( DISTINCT - col2 ) + + 98 + 13 * - 1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 @@ -30896,8 +31335,15 @@ SELECT ALL + - col2 + + - 25 col1 FROM tab1 AS cor0 # Datafusion - Expected - -7 # Datafusion - Expected - 97 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab0\.col0\)\) AS col2" at position 0 and "Int64\(\-7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - col0 ) col2, - 7 AS col2 FROM tab0 +---- +-7 +-7 +-7 +15 +87 +97 query I rowsort SELECT ALL + col0 * - col0 + col2 AS col1 FROM tab2 @@ -31262,8 +31708,13 @@ SELECT ALL * FROM tab1 AS cor0 WHERE col0 * - col1 IS NULL # Datafusion - Expected - -1 # Datafusion - Expected - 66 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-66\)\) 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 II valuesort SELECT DISTINCT - - 66 AS col1, col0 / - col2 AS col1 FROM tab2 AS cor0 +---- +-1 +-2 +66 +66 query I rowsort label-5110 SELECT DISTINCT - 70 / - - col2 + - col0 FROM tab0 AS cor0 @@ -31630,8 +32081,11 @@ SELECT + 76 FROM tab2 WHERE NOT - 56 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 18 AS col1, + COUNT ( * ) AS col1 FROM tab1 +---- +18 +3 query I rowsort label-5168 SELECT DISTINCT 10 / - + COUNT ( * ) AS col0 FROM tab0 WHERE NOT - - 12 > + + col0 @@ -31774,8 +32228,15 @@ SELECT ALL - - 5 * + - col1 - - + col1 - - col1 * col1 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 165 # Datafusion - Expected - 0 # Datafusion - Expected - 462 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 / Int64\(\-78\) AS col0" at position 0 and "Int64\(33\) \* tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 / - 78 AS col0, 33 * + + col1 AS col0 FROM tab1 +---- +-1 +-1 +0 +1551 +165 +462 query I rowsort SELECT - - ( col2 ) AS col0 FROM tab1 WHERE NOT ( - col0 <> NULL ) @@ -31900,8 +32361,15 @@ SELECT * FROM tab1 cor0 WHERE 25 + ( + 52 ) + - ( + ( - col2 ) ) IS NULL # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 col2, col2 AS col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-5212 SELECT + col1 + - + 73 / + - col1 + - col1 + + - 7 AS col1 FROM tab1 AS cor0 @@ -32250,8 +32718,15 @@ SELECT ALL col0 * - + 25 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> ( col1 * - col2 # Datafusion - Expected - 5015 # Datafusion - Expected - -35 # Datafusion - Expected - 6188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col1" at position 0 and "cor0\.col2 \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 35 AS col1, col2 * + col0 AS col1 FROM tab1 AS cor0 +---- +-35 +-35 +-35 +4896 +5015 +6188 query II rowsort SELECT - 2 * - - col2, col0 AS col1 FROM tab2 @@ -32732,8 +33207,11 @@ SELECT 95 + col0 / col0 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col0" at position 0 and "sum\(tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 5 AS col0, SUM ( ALL + col1 ) AS col0 FROM tab0 +---- +103 +5 query III rowsort SELECT DISTINCT * FROM tab2 WHERE - - 78 + 13 * + - col1 * + col1 IS NOT NULL @@ -32904,8 +33382,15 @@ SELECT 82 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - -6960 # Datafusion - Expected - 81 # Datafusion - Expected - -1200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col0\) \* Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, - col0 * + 80 AS col0 FROM tab0 AS cor0 +---- +-1200 +-6960 +-7760 +1 +21 +81 query III rowsort SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) >= + + 78 * 66 * col1 @@ -33067,8 +33552,15 @@ SELECT - 50 * - 7 FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col1 AS Int32\)" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + col1 AS INTEGER ), col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query II rowsort label-5402 SELECT - + col0 * 16 AS col1, + col0 AS col0 FROM tab1 WHERE NOT - + 63 + + 7 BETWEEN + CAST ( - col0 AS INTEGER ) + - col0 + - col1 AND NULL @@ -33884,8 +34376,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col1, ( - MIN ( - + 95 ) ) AS col1 FROM tab2 AS cor0 WHERE NULL <= ( 40 ) +---- +0 +NULL query I rowsort label-5543 SELECT ALL - 36 / + COUNT ( * ) AS col0 FROM tab0 AS cor0 @@ -34523,8 +35018,15 @@ SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + 36 # Datafusion - Expected - 87 # Datafusion - Expected - -8811 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(89\)\) \* \(\- cor0\.col1\) \* cor0\.col2 \* \(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 89 ) * - col1 * col2 * - col1 AS col1, col0 AS col1 FROM tab0 AS cor0 +---- +-27444663 +-392490 +-8811 +15 +87 +97 query I rowsort label-5646 SELECT + COUNT ( - - col0 ) FROM tab2 AS cor0 @@ -34735,8 +35237,15 @@ SELECT + + col1 + - 81 AS col1 FROM tab0 cor0 # Datafusion - Expected - -59 # Datafusion - Expected - 98 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \+ Int64\(7\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - - col0 ) + 7 col1, - col2 AS col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +58 +92 +98 query III rowsort SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL NOT IN ( - col2 - - col2, col0 + 59, - col0 * + + 48 ) ) @@ -35187,8 +35696,15 @@ SELECT + COUNT ( * ) + 13 FROM tab0 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 425 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \+ \(\- \(\- cor0\.col1\)\) \* Int64\(75\) AS col1" at position 0 and "Int64\(0\) \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 50 + - - col1 * + + 75 AS col1, + 0 + + - col1 AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +1100 +3575 +425 query II rowsort SELECT + 74 AS col2, col0 - - - 63 FROM tab2 cor0 @@ -35231,8 +35747,11 @@ SELECT + col2 * + ( + - col0 ) AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-27\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) * - 27 AS col2, COUNT ( * ) AS col2 FROM tab2 +---- +-81 +3 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT + + 70 >= - + ( - + col0 ) + col2 @@ -37370,8 +37889,15 @@ SELECT ALL - - MAX ( + col2 ) FROM tab0 AS cor0 # Datafusion - Expected - -81 # Datafusion - Expected - 99 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, - col1 AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +10 +47 +99 query I rowsort SELECT - col1 * + 42 col2 FROM tab2 AS cor0 @@ -37497,8 +38023,15 @@ SELECT - col1 AS col0, col0 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -48 # Datafusion - Expected - 37 # Datafusion - Expected - 132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col1" at position 0 and "Int64\(46\) \- \(\- Int64\(85\)\) \+ tab0\.col1 \+ \(\- tab0\.col2\) \* \(\- \(\- tab0\.col1\)\) \+ \(\- \(\- tab0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 AS col1, 46 - - + 85 + + col1 + + - col2 * - - col1 + - - col2 AS col1 FROM tab0 +---- +-3548 +-48 +132 +37 +37 +37 query I rowsort label-6134 SELECT CAST ( NULL AS INTEGER ) * + - 50 AS col0 FROM tab2 @@ -37677,8 +38210,15 @@ SELECT - - col1 / - - col0 + - ( 77 ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 33 # Datafusion - Expected - -29 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 29 ) AS col1, + 33 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL +---- +-29 +-29 +-29 +33 +33 +33 query II rowsort SELECT ALL + col0, col2 * + 9 - - 91 FROM tab0 AS cor0 WHERE ( NULL ) >= - col2 @@ -37912,8 +38452,11 @@ SELECT DISTINCT + 19, + col1 * + col1 AS col2 FROM tab1 cor0 WHERE NULL BETWEEN # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col0" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 31 AS col0, CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 +---- +-31 +3 query I rowsort label-6197 SELECT DISTINCT - ( CAST ( - COUNT ( DISTINCT + col0 ) AS INTEGER ) ) FROM tab1 AS cor0 @@ -38087,8 +38630,11 @@ SELECT COUNT ( ALL + 54 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 +---- +3 +NULL query II rowsort label-6227 SELECT DISTINCT - - COUNT ( * ) AS col0, MAX ( + - 3 ) FROM tab0 AS cor0 @@ -39257,8 +39803,11 @@ SELECT ( + 24 ) AS col1 FROM tab0 WHERE ( - col0 ) IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(58\)\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + MAX ( DISTINCT + 58 ) AS col2, + 49 col2 FROM tab1 AS cor0 +---- +49 +58 query I rowsort SELECT DISTINCT + - 61 FROM tab1 cor0 @@ -40033,8 +40582,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL = NULL +---- +0 +0 query I rowsort label-6548 SELECT DISTINCT - col0 + - col2 FROM tab2 WHERE CAST ( NULL AS FLOAT8 ) <> NULL @@ -40320,8 +40872,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 10 col0, - COUNT ( * ) AS col0 FROM tab0 +---- +-10 +-3 query II rowsort label-6599 SELECT 0 col2, COUNT ( * ) AS col1 FROM tab0 @@ -40451,8 +41006,10 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 6357952adfc00c59cf0c8633d995677b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col2, + 6 + - - 82 + CAST ( NULL AS INTEGER ) * - col2 / + + col0, + col2 FROM tab1 +---- +9 values hashing to 4b8c39a78c532957043f9e2a500862e5 query II rowsort label-6621 SELECT ALL col0 AS col2, col1 - + + col1 + col2 * - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 @@ -40981,8 +41538,15 @@ NULL # Datafusion - Expected - -49 # Datafusion - Expected - -99 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col2" at position 0 and "Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + - col2 ) AS col2, - 49 AS col2 FROM tab0 +---- +-10 +-47 +-49 +-49 +-49 +-99 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT - 24 IS NOT NULL @@ -41422,8 +41986,11 @@ SELECT + + 96 + - 71 AS col0 FROM tab2 WHERE NOT - - col1 <> + 4 - - + col1 * + # 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 "Int64\(\-65\) AS col0" at position 0 and "Int64\(98\) / count\(Int64\(83\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 65 AS col0, 98 / + + COUNT ( ALL + + 83 ) AS col0 FROM tab1 +---- +-65 +32 query I rowsort label-6774 SELECT DISTINCT + + ( - 6 ) / col1 FROM tab1 AS cor0 @@ -42344,8 +42911,15 @@ SELECT col2 * 21 AS col0 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col0 \+ \(\- CAST\(NULL AS Int32\)\) \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, + col0 + + - CAST ( NULL AS INTEGER ) * - col1 col1 FROM tab2 AS cor0 +---- +46 +64 +75 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + + ( - - col1 ) < + col0 ) @@ -43461,8 +44035,11 @@ SELECT DISTINCT + col0, - col0 / + - col1 + - col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +3 +3 query I rowsort SELECT ( + - 84 ) AS col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL @@ -43704,8 +44281,15 @@ SELECT DISTINCT col2 / col1 col2 FROM tab1 WHERE NULL < 85 # Datafusion - Expected - -1256 # Datafusion - Expected - 99 # Datafusion - Expected - 5642 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "Int64\(\-40\) \* tab0\.col2 \- \(\- tab0\.col2\) \* tab0\.col0 \+ \(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, ( ( + - 40 ) ) * col2 - - col2 * + col0 + - + col1 AS col1 FROM tab0 +---- +-1256 +10 +449 +47 +5642 +99 query I rowsort label-7145 SELECT COUNT ( * ) / - SUM ( ALL - col2 ) FROM tab2 @@ -43964,8 +44548,9 @@ SELECT - col2 * + - ( col2 ) FROM tab1 cor0 9216 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* \(\- Int64\(74\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * - + 74 AS col1, + col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL +---- query I rowsort SELECT ALL - col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL @@ -44185,8 +44770,15 @@ SELECT ALL - CAST ( + col0 AS INTEGER ) * - ( - + col0 ) + - - col2 * + col2 * + # Datafusion - Expected - 138 # Datafusion - Expected - 5 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "tab1\.col1 \+ tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( col1 ) AS col0, col1 + col0 AS col0 FROM tab1 +---- +138 +14 +47 +5 +65 +90 query I rowsort label-7220 SELECT - SUM ( DISTINCT + 41 ) AS col1 FROM tab2 @@ -45456,8 +46048,11 @@ SELECT - col2 * - col0, col0 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) * - COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab2 +---- +-9 +3 query II rowsort SELECT DISTINCT - col1, + col2 AS col1 FROM tab1 @@ -45900,8 +46495,15 @@ NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT 78 + + col2 + 19 / col1 NOT BETWEEN + col2 AND NULL @@ -46057,8 +46659,11 @@ SELECT col1 * + 98 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + CAST ( NULL AS FLOAT8 ) - + COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) / + + COUNT ( * ) AS col0 FROM tab2 +---- +NULL +NULL query I rowsort label-7536 SELECT ALL - 70 - - + MIN ( DISTINCT - 32 ) AS col2 FROM tab1 AS cor0 @@ -46259,8 +46864,11 @@ SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 +---- +3 +NULL query I rowsort label-7570 SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL @@ -47049,8 +47657,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 col0, col2 AS col0 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-7696 SELECT ALL - - COUNT ( * ) AS col2 FROM tab0 WHERE NULL <> - + col1 + + 94 @@ -48982,8 +49597,9 @@ SELECT MIN ( 88 ) AS col2 FROM tab1 cor0 88 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(83\) \+ cor0\.col0 \+ cor0\.col1 / Int64\(38\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * 83 + + + col0 + + col1 / 38 col0, + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= + 62 / + col0 +---- query II rowsort label-8026 SELECT DISTINCT - col2 AS col0, CAST ( NULL AS INTEGER ) * + col2 + col0 + col0 AS col2 FROM tab1 AS cor0 @@ -49003,8 +49619,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +-3 +3 query I rowsort label-8029 SELECT + - 45 + - - SUM ( - - col1 ) FROM tab2 AS cor0 WHERE NOT - col2 - + - col0 / - col1 IS NULL @@ -51156,8 +51775,15 @@ SELECT col2 * - col0 FROM tab1 WHERE NOT ( 25 + + col2 IS NOT NULL ) # Datafusion - Expected - 5366 # Datafusion - Expected - -31 # Datafusion - Expected - 5367 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ Int64\(44\) AS col2" at position 0 and "Int64\(55\) \* Int64\(95\) \- \(\- cor0\.col1\) \- \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 + 44 AS col2, + 55 * + + 95 - + - col1 - - col0 AS col2 FROM tab2 AS cor0 +---- +-2 +-20 +-31 +5322 +5366 +5367 query I rowsort SELECT DISTINCT - col1 col2 FROM tab0 AS cor0 WHERE NULL > - col0 @@ -51511,8 +52137,15 @@ SELECT 74 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, col0 AS col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query II rowsort SELECT ALL + col0 AS col1, 14 - col1 col0 FROM tab2 AS cor0 @@ -51531,8 +52164,15 @@ SELECT ALL + col0 AS col1, 14 - col1 col0 FROM tab2 AS cor0 # Datafusion - Expected - 55 # Datafusion - Expected - -32 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col0" at position 0 and "cor0\.col2 \+ Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 32 AS col0, col2 + + 45 AS col0 FROM tab0 AS cor0 +---- +-32 +-32 +-32 +144 +55 +92 query I rowsort SELECT ALL + - 12 * - 73 FROM tab0 AS cor0 @@ -52875,8 +53515,15 @@ NULL # Datafusion - Expected - 97 # Datafusion - Expected - -313 # Datafusion - Expected - 1827 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \+ Int64\(54\) \+ \(\- tab0\.col2\) \* Int64\(28\) AS col1" at position 0 and "tab0\.col1 \* \(\- \(\- tab0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 + + 54 + - col2 * 28 AS col1, + col1 * - - col0 AS col1 FROM tab0 +---- +-1277 +-2815 +-313 +1215 +1827 +97 query I rowsort SELECT - col2 FROM tab1 WHERE ( ( NULL ) IS NOT NULL ) @@ -53381,8 +54028,15 @@ SELECT - 64 * - COUNT ( * ) FROM tab0 # Datafusion - Expected - 129 # Datafusion - Expected - -75 # Datafusion - Expected - 119 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "tab2\.col1 \+ Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, col1 + 52 AS col2 FROM tab2 +---- +-46 +-64 +-75 +103 +119 +129 query I rowsort label-8747 SELECT DISTINCT - SUM ( DISTINCT - col2 ) AS col1 FROM tab2 @@ -53553,8 +54207,15 @@ SELECT - col0 AS col2, col2 * col1 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 2376 # Datafusion - Expected - 85 # Datafusion - Expected - 240 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "cor0\.col2 \* Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 85 col2, + col2 * + 24 AS col2 FROM tab0 AS cor0 +---- +1128 +2376 +240 +85 +85 +85 query I rowsort label-8774 SELECT - MIN ( + col1 ) AS col2 FROM tab1 AS cor0 @@ -53944,8 +54605,10 @@ SELECT - MIN ( DISTINCT - 94 ) * + 3 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 072c7c21af74a83dbf33aefa2b42e216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col1" at position 0 and "Int64\(\-7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - col1 AS col1, - 7 col1, - col0 FROM tab0 +---- +9 values hashing to 0c5bff781ed182a259f3d3e18b8cde79 query I rowsort SELECT DISTINCT col1 FROM tab2 WHERE NOT - col1 * + - 72 BETWEEN - - 29 AND col0 / + 58 + + col2 @@ -54391,8 +55054,15 @@ SELECT ALL + col2 AS col1, + 60 FROM tab1 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - -77 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- Int64\(\-25\)\) / \(\- \(\- cor0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, + ( - - 25 ) / - - col1 col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +0 +0 +0 query II rowsort SELECT + + 81 col2, - 28 FROM tab2 cor0 @@ -54722,8 +55392,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE 37 < - col2 # Datafusion - Expected - 58 # Datafusion - Expected - -77 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, col2 AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +23 +40 +58 query I rowsort SELECT - - col0 * - col1 * + 79 + - col0 FROM tab0 AS cor0 @@ -55732,8 +56409,15 @@ SELECT ALL COUNT ( * ) * + 47 FROM tab0 AS cor0 # Datafusion - Expected - -1 # 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 "Int64\(79\) / \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 39 AS col1, 79 / + + ( + - ( + col0 ) ) AS col1 FROM tab2 AS cor0 +---- +-1 +-1 +-1 +-39 +-39 +-39 query III rowsort SELECT ALL * FROM tab1 WHERE NOT 38 + col2 IS NOT NULL @@ -56137,8 +56821,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT CAST ( NULL AS FLOAT8 ) AS col1, - COUNT ( * ) AS col1 FROM tab0 +---- +-3 +NULL query III rowsort SELECT DISTINCT * FROM tab2 WHERE 47 + 56 IS NULL @@ -56439,8 +57126,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) * + - SUM ( - col1 ) col0, + 79 AS col0 FROM tab2 AS cor0 +---- +585 +79 query I rowsort SELECT DISTINCT 27 * + + col2 AS col2 FROM tab2 AS cor0 @@ -56456,8 +57146,15 @@ SELECT DISTINCT 27 * + + col2 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 5 # Datafusion - Expected - 91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 AS col2, col1 col2 FROM tab1 AS cor0 +---- +14 +47 +5 +51 +85 +91 query II rowsort SELECT DISTINCT - col2, ( - 60 ) AS col1 FROM tab2 AS cor0 @@ -57315,8 +58012,15 @@ SELECT ( + 92 ) col0 FROM tab0 # Datafusion - Expected - -4257 # Datafusion - Expected - -34 # Datafusion - Expected - -430 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col1" at position 0 and "Int64\(43\) \* \(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 34 AS col1, 43 * - col2 AS col1 FROM tab0 +---- +-2021 +-34 +-34 +-34 +-4257 +-430 query I rowsort SELECT DISTINCT + 29 + - col1 AS col2 FROM tab1 @@ -57693,8 +58397,15 @@ NULL # Datafusion - Expected - 0 # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "cor0\.col2 \+ CAST\(\(\- cor0\.col2\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 + + CAST ( NULL AS INTEGER ) AS col1, col2 + ( + CAST ( - col2 AS INTEGER ) ) col1 FROM tab0 AS cor0 +---- +0 +0 +0 +NULL +NULL +NULL query I rowsort SELECT DISTINCT + - col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) >= col1 @@ -58479,8 +59190,11 @@ SELECT ALL + col1 + - 13 FROM tab0 WHERE NULL BETWEEN NULL AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -333 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "min\(\(\- tab0\.col2\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(18\) \+ \(\- Int64\(85\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, MIN ( - col2 ) + ( + + COUNT ( * ) ) + + 18 + - + 85 * + COUNT ( * ) AS col0 FROM tab0 +---- +-333 +3 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT ( NOT ( col0 IN ( col0 * - + ( - col1 ) ) ) ) ) @@ -59860,8 +60574,15 @@ SELECT DISTINCT col2 - - ( + - col0 ) FROM tab0 # Datafusion - Expected - 1 # Datafusion - Expected - 58 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "tab2\.col0 / tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 AS col0, col0 / col2 AS col0 FROM tab2 +---- +1 +1 +2 +58 +58 +58 query II rowsort label-9820 SELECT DISTINCT - 47, + CAST ( - col0 AS INTEGER ) col0 FROM tab2 @@ -60426,8 +61147,11 @@ SELECT - 83 * 16, col1 + 38 * - col1 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(92\)\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MIN ( + 92 ) AS col0, 21 AS col0 FROM tab0 cor0 +---- +21 +92 query II rowsort label-9911 SELECT ALL + - 32 / col0 * col1 * + + col2 - col1 + col0 - 22 + 84 AS col0, col1 col2 FROM tab2 WHERE NOT + + 83 IS NULL diff --git a/data/sqlite/random/aggregates/slt_good_16.slt b/data/sqlite/random/aggregates/slt_good_16.slt index 11fd29b..1f2865e 100644 --- a/data/sqlite/random/aggregates/slt_good_16.slt +++ b/data/sqlite/random/aggregates/slt_good_16.slt @@ -403,8 +403,15 @@ SELECT ALL - col0 FROM tab1 WHERE NOT NULL IN ( - col1, col1 ) # Datafusion - Expected - 11 # Datafusion - Expected - 0 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ \(\- tab2\.col0\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 + - col0 AS col1, + 11 col1 FROM tab2 +---- +0 +0 +0 +11 +11 +11 query I rowsort SELECT ALL - col2 * - col2 AS col1 FROM tab0 WHERE NOT ( + - col0 ) >= ( NULL ) @@ -1234,8 +1241,15 @@ SELECT + 24 * - + ( - - col1 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -98 # Datafusion - Expected - NULL # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col2, - 98 AS col2 FROM tab2 +---- +-98 +-98 +-98 +NULL +NULL +NULL query I rowsort label-199 SELECT - col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 @@ -2759,8 +2773,15 @@ SELECT DISTINCT * FROM tab0 WHERE ( + - CAST ( - - col2 AS INTEGER ) ) - + col2 # Datafusion - Expected - -67 # Datafusion - Expected - -46 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 46 AS col0, - col1 AS col0 FROM tab2 AS cor0 +---- +-46 +-46 +-46 +-51 +-67 +-77 query I rowsort SELECT + + ( + 24 ) FROM tab0 AS cor0 @@ -2798,8 +2819,15 @@ SELECT DISTINCT 91 AS col2, - 61 AS col0 FROM tab2 # Datafusion - Expected - 4988 # Datafusion - Expected - -68 # Datafusion - Expected - 6203 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col2" at position 0 and "cor0\.col2 \* \(\- \(\- cor0\.col0\)\) \+ Int64\(\-32\) \+ \(\- \(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 68 AS col2, col2 * ( - - col0 ) + + - 32 + - - col1 col2 FROM tab1 cor0 +---- +-68 +-68 +-68 +4878 +4988 +6203 query II rowsort SELECT ALL col0 AS col1, col0 FROM tab0 AS cor0 @@ -3144,8 +3172,15 @@ SELECT + - SUM ( ALL + - 83 ) FROM tab0 AS cor0 # Datafusion - Expected - -23 # Datafusion - Expected - -5856 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \* Int64\(61\) AS col0" at position 0 and "\(\- tab1\.col0\) \+ tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 * 61 AS col0, - col0 + + col2 col0 FROM tab1 +---- +-23 +-26 +-3599 +-4148 +-5856 +45 query II rowsort label-521 SELECT ALL - COUNT ( * ) * - - 78 AS col0, 40 FROM tab0 @@ -3361,8 +3396,15 @@ SELECT DISTINCT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 * - col2 BETWE # Datafusion - Expected - NULL # Datafusion - Expected - -75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 \* \(\- cor0\.col1\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 col2, col1 * - + col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 +---- +-46 +-64 +-75 +NULL +NULL +NULL query I rowsort SELECT ALL + col0 + + col0 * + col0 * + - col2 col1 FROM tab1 AS cor0 @@ -4122,8 +4164,15 @@ SELECT ALL + col0 + + 76 AS col2 FROM tab0 # Datafusion - Expected - -54 # Datafusion - Expected - 58 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "Int64\(\-54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 col0, - 54 AS col0 FROM tab2 +---- +-54 +-54 +-54 +23 +40 +58 query I rowsort SELECT DISTINCT - - col1 AS col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL @@ -4142,8 +4191,11 @@ SELECT DISTINCT 28 AS col2, col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab2 +---- +-3 +3 query I rowsort label-682 SELECT DISTINCT - + 29 / CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0 @@ -5185,8 +5237,11 @@ SELECT DISTINCT - + 5 FROM tab2 AS cor0 WHERE - ( col2 ) - - col0 + - col1 IS NU # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -162 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "sum\(Int64\(2\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 71 AS col2, SUM ( 2 ) * - + COUNT ( * ) + + COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab0, tab0 AS cor0 +---- +-162 +71 query I rowsort SELECT ALL 34 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 @@ -5247,8 +5302,15 @@ SELECT - col0 * - + 56 FROM tab0 # Datafusion - Expected - 61 # Datafusion - Expected - 99 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, 61 AS col0 FROM tab0 +---- +10 +47 +61 +61 +61 +99 query II rowsort SELECT ALL - col1 AS col0, - col1 FROM tab1 @@ -5393,8 +5455,10 @@ SELECT - 57 FROM tab0 cor0 WHERE NOT 76 <> NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to dac89d3723db8bda5c994e676dc86173 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + + col2 * - - col2 AS col0, col1 / - col1 + 86 AS col2, col2 col0 FROM tab2 AS cor0 +---- +9 values hashing to d721a5808a9e12b8fe77ae18dbbbe17f query I rowsort SELECT ALL + - ( - 38 ) FROM tab0 cor0 @@ -5433,8 +5497,11 @@ SELECT - + 76 col0 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-3 +NULL query I rowsort label-900 SELECT DISTINCT - MAX ( DISTINCT col0 ) FROM tab0 AS cor0 @@ -5538,8 +5605,15 @@ SELECT DISTINCT + COUNT ( * ) * - MIN ( ALL - 53 ) FROM tab1 AS cor0 # Datafusion - Expected - 22 # Datafusion - Expected - 81 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col1 \+ \(\- \(\- cor0\.col1\)\) / cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, col1 + - - col1 / + col1 AS col0 FROM tab0 AS cor0 +---- +1 +2 +21 +22 +81 +82 query I rowsort SELECT DISTINCT + col1 * col2 * - + col2 FROM tab1 AS cor0 @@ -6215,8 +6289,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND ( NULL ) # Datafusion - Expected - 47 # Datafusion - Expected - -5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, + col1 col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +14 +47 +5 query I rowsort SELECT col1 * + 5 col1 FROM tab2 AS cor0 @@ -6439,8 +6520,15 @@ SELECT 25 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 / \(\- \(\- tab1\.col0\)\) AS col1" at position 0 and "Int64\(87\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 / - - col0 col1, 87 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 +---- +0 +0 +1 +NULL +NULL +NULL query II rowsort SELECT DISTINCT + ( + + col2 ) col0, 19 + + col2 AS col2 FROM tab0 @@ -6468,8 +6556,9 @@ SELECT DISTINCT 10 * + MIN ( ALL + 13 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor 130 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 FROM tab1 WHERE NULL IS NOT NULL +---- query I rowsort label-1068 SELECT + 59 - + - col2 + CAST ( - - col1 AS INTEGER ) * col2 + - col1 - + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0 @@ -6897,8 +6986,11 @@ SELECT 43 * - - col1 AS col1, - col1 FROM tab1 WHERE NOT ( ( NOT NULL IS NOT NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col0, 69 AS col0 FROM tab0 +---- +-3 +69 query I rowsort SELECT DISTINCT + col2 * + 8 * - col1 FROM tab2 @@ -7004,8 +7096,15 @@ SELECT DISTINCT - ( + col0 ) + - 75 FROM tab2 # Datafusion - Expected - -87000 # Datafusion - Expected - -6561 # Datafusion - Expected - -1557345 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* \(\- tab0\.col1\) AS col2" at position 0 and "tab0\.col0 \* \(\- tab0\.col2\) \* tab0\.col2 \* tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + - col1 AS col2, + col0 * - col2 * + + col2 * col2 AS col2 FROM tab0 +---- +-1 +-1557345 +-441 +-6561 +-87000 +-94119003 query I rowsort label-1150 SELECT ALL + 61 / + - col1 AS col1 FROM tab2 @@ -8813,8 +8912,15 @@ SELECT - ( + col0 ) / col0 AS col2 FROM tab2 # Datafusion - Expected - -87 # Datafusion - Expected - 81 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "\(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( col1 ) AS col0, - col0 AS col0 FROM tab0 +---- +-15 +-87 +-97 +1 +21 +81 query I rowsort SELECT DISTINCT + - col2 * - - col0 * - - col0 * - col2 FROM tab0 AS cor0 @@ -9084,8 +9190,15 @@ SELECT + 53 - col0 + + - col2 - col1 * 65 FROM tab0 # Datafusion - Expected - 9 # Datafusion - Expected - 26 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \- \(\- tab1\.col0\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 - - + col0 AS col0, 9 AS col0 FROM tab1 +---- +-45 +23 +26 +9 +9 +9 query I rowsort SELECT col1 FROM tab2 WHERE + col0 * - 62 IS NOT NULL @@ -9585,8 +9698,15 @@ SELECT ALL + COUNT ( ALL + - 91 ) AS col1 FROM tab0 WHERE + + 43 + - col1 IS NUL # Datafusion - Expected - -67 # Datafusion - Expected - 4081 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \* \(\- cor0\.col1\) \- \(\- Int64\(\-42\)\) \* cor0\.col1 AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 95 * - col1 - - - 42 * + col1 AS col1, - col1 col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +2703 +3551 +4081 query I rowsort SELECT DISTINCT - col0 + 34 + + + col2 / ( - 94 ) * + col0 / ( + ( - col0 ) ) * + col1 + 65 * - col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL @@ -10040,8 +10160,15 @@ SELECT + 54 * - COUNT ( * ) * COUNT ( * ) FROM tab1 # Datafusion - Expected - 0 # Datafusion - Expected - 58 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col2\) \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 AS col0, - ( col2 ) + col2 AS col0 FROM tab2 AS cor0 +---- +0 +0 +0 +23 +40 +58 query I rowsort SELECT DISTINCT ( 80 ) - col1 AS col0 FROM tab2 WHERE NULL IS NULL @@ -10760,8 +10887,11 @@ SELECT DISTINCT col2 col0 FROM tab1 WHERE NOT + col2 * - col1 + + col1 + + col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab0 WHERE NOT 15 IS NULL +---- +-3 +3 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * col2 + + col1 * col0 IS NULL @@ -10828,8 +10958,15 @@ SELECT DISTINCT * FROM tab2 WHERE + + 43 = + col0 / col1 - - + col1 + + col0 / C # Datafusion - Expected - -7225 # Datafusion - Expected - 0 # Datafusion - Expected - -8281 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \- tab1\.col1 AS col0" at position 0 and "\(\- tab1\.col0\) \* tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 - + col1 col0, - col0 * col0 AS col0 FROM tab1 +---- +-2601 +-7225 +-8281 +0 +0 +0 query I rowsort label-1777 SELECT ALL + CAST ( NULL AS INTEGER ) * + 30 - + SUM ( - CAST ( + col1 AS INTEGER ) ) FROM tab1 @@ -10883,8 +11020,11 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + 55 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +3 +3 query I rowsort label-1786 SELECT DISTINCT + 73 * COUNT ( * ) AS col1 FROM tab0 AS cor0 @@ -11181,8 +11321,10 @@ SELECT + + col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 6ad1158e6e40d812b059888a5c7897e1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "\(\- tab1\.col0\) \* tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - col0 AS col1, - col0 * col1 AS col1, + + col2 / 72 + - 92 AS col1 FROM tab1 +---- +9 values hashing to 4d18a821f6615f328f272e613aee2a66 query III rowsort SELECT ALL * FROM tab2 WHERE col0 - col2 IN ( - col1, col0 * + + 35 * 60 ) @@ -11538,8 +11680,11 @@ SELECT + CAST ( + + 20 AS INTEGER ) / 24 + - col2 * + + 64 + col2 col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -199 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT cor0\.col0\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - SUM ( DISTINCT col0 ) AS col2, + COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-199 +3 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT - col0 + 24 = NULL @@ -11790,8 +11935,15 @@ SELECT DISTINCT COUNT ( * ) + COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Expected - 9 # Datafusion - Expected - 32 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \+ tab0\.col1 \+ tab0\.col1 AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 + col1 + + + col1 col0, 9 AS col0 FROM tab0 +---- +-97 +115 +32 +9 +9 +9 query I rowsort label-1933 SELECT ALL MAX ( 58 ) * 44 AS col1 FROM tab0 @@ -12939,8 +13091,15 @@ SELECT ALL MAX ( - - 22 ) FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, col0 col1 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT DISTINCT + 85 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 @@ -13118,8 +13277,15 @@ SELECT - ( - 4 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - 81 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "\(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, - col0 col0 FROM tab0 +---- +-15 +-87 +-97 +1 +21 +81 query III rowsort SELECT ALL * FROM tab0 WHERE NULL BETWEEN + ( - - col2 ) AND col2 / col0 @@ -14394,8 +14560,15 @@ SELECT ALL + 73 - + + 85 * - COUNT ( * ) FROM tab0 # Datafusion - Expected - -29 # Datafusion - Expected - 75 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "Int64\(35\) \- tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, 35 - col0 AS col1 FROM tab2 +---- +-11 +-29 +-40 +46 +64 +75 query I rowsort label-2359 SELECT - - MAX ( col0 ) + + COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0 @@ -14610,8 +14783,15 @@ SELECT col2 * - + 53 AS col1, 98 / + - col1 FROM tab1 # Datafusion - Expected - -175 # Datafusion - Expected - 80 # Datafusion - Expected - -490 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col0" at position 0 and "tab1\.col1 \* Int64\(\-35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 80 AS col0, + col1 * - 35 AS col0 FROM tab1 +---- +-1645 +-175 +-490 +80 +80 +80 query I rowsort label-2392 SELECT DISTINCT + ( - - 79 ) * COUNT ( * ) FROM tab1 AS cor0 @@ -15251,8 +15431,15 @@ SELECT + 53 AS col1, col0 FROM tab1 AS cor0 # Datafusion - Expected - 1827 # Datafusion - Expected - -89 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col0" at position 0 and "cor0\.col0 \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 89 AS col0, col0 * col1 AS col0 FROM tab0 AS cor0 +---- +-89 +-89 +-89 +1215 +1827 +97 query I rowsort SELECT 70 + col0 + - col0 FROM tab2 AS cor0 @@ -15966,8 +16153,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, - COUNT ( * ) AS col2 FROM tab1 cor0 +---- +-3 +3 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( col1 ) * col2 = NULL @@ -16140,8 +16330,15 @@ SELECT DISTINCT 2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - 77 # Datafusion - Expected - 2689 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \- \(\- tab2\.col0\) \* Int64\(35\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 - - col0 * + + 35 AS col2, col1 AS col2 FROM tab2 +---- +1674 +2304 +2689 +51 +67 +77 query I rowsort SELECT DISTINCT 58 + + - 19 AS col1 FROM tab1 @@ -16932,8 +17129,11 @@ SELECT ALL - 4 col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT cor0\.col2\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( DISTINCT col2 ) col2, 82 AS col2 FROM tab0 AS cor0 +---- +10 +82 query II rowsort SELECT DISTINCT ( + + col0 ) * col1, + col1 AS col2 FROM tab2 @@ -17180,8 +17380,15 @@ SELECT 98 - + - col1 AS col2 FROM tab2 # Datafusion - Expected - -40 # Datafusion - Expected - -4326 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \+ \(\- \(\- tab2\.col2\)\) \* \(\- tab2\.col0\) AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 24 + - - col2 * - col0 col1, - col2 AS col1 FROM tab2 +---- +-1034 +-23 +-2536 +-40 +-4326 +-58 query I rowsort SELECT - ( - 23 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL @@ -17539,8 +17746,10 @@ SELECT ( - SUM ( DISTINCT + col1 ) ) AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c54344399f428ea394425a7b67de710f -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- cor0\.col2\) AS Int32\)\) AS col0" at position 1 and "\(\- cor0\.col0\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col2, ( + - CAST ( - col2 AS INTEGER ) ) AS col0, + - col0 col0 FROM tab1 AS cor0 +---- +9 values hashing to d5f665c0e8d76f6771b9df2790d21dec query I rowsort label-2871 SELECT DISTINCT + 86 / - 30 FROM tab1 AS cor0 @@ -17755,8 +17964,15 @@ NULL # Datafusion - Expected - 0 # Datafusion - Expected - -99 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col2 \- cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col2 col1, col2 - + col2 AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +0 +0 +0 query I rowsort label-2903 SELECT - 3 + COUNT ( * ) FROM tab1 AS cor0 @@ -18709,8 +18925,11 @@ SELECT - MAX ( ALL - col2 ) * - - COUNT ( * ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT cor0\.col2\) AS col1" at position 0 and "Int64\(33\) / Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( DISTINCT + + col2 ) col1, + 33 / + + 5 AS col1 FROM tab2 cor0 +---- +23 +6 query I rowsort SELECT - col2 AS col2 FROM tab2 WHERE NOT - 14 IN ( - col1 * + 18 * 40 + - 49 ) @@ -18726,8 +18945,15 @@ SELECT - col2 AS col2 FROM tab2 WHERE NOT - 14 IN ( - col1 * + 18 * 40 + - 49 ) # Datafusion - Expected - 760 # Datafusion - Expected - 97 # Datafusion - Expected - 7524 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "\(\- \(\- tab0\.col2\)\) \* Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, - ( + - col2 ) * 76 AS col1 FROM tab0 +---- +15 +3572 +7524 +760 +87 +97 query II rowsort label-3066 SELECT 3 col2, ( + + MIN ( ALL - + col0 ) ) * - + 75 FROM tab1 @@ -19193,8 +19419,15 @@ SELECT ALL col1 - + col2 + + col0 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 4 # Datafusion - Expected - 97 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col0 AS Int32\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( col0 AS INTEGER ) AS col0, 4 AS col0 FROM tab0 cor0 +---- +15 +4 +4 +4 +87 +97 query I rowsort SELECT DISTINCT col2 * col0 + + ( col0 ) FROM tab2 AS cor0 @@ -19280,8 +19513,15 @@ SELECT + COUNT ( * ) * - 5 * 89 + SUM ( ALL + 56 ) col0 FROM tab1 # Datafusion - Expected - 290 # Datafusion - Expected - 35 # Datafusion - Expected - 3149 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 0 and "tab1\.col1 \* tab1\.col2 \+ \(\- tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 AS col2, + col1 * col2 + - ( + col1 ) col2 FROM tab1 +---- +1330 +290 +3149 +35 +35 +35 query I rowsort SELECT - 67 * - col0 * + col0 AS col1 FROM tab1 AS cor0 @@ -19343,8 +19583,15 @@ SELECT DISTINCT + col0 * - + col0 AS col1 FROM tab2 # Datafusion - Expected - -51 # Datafusion - Expected - 6899200 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* Int64\(35\) \* cor0\.col0 \* \(\- cor0\.col2\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col1 * 35 * + + col0 * - + col2 AS col2, - col1 AS col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +10200750 +1888530 +6899200 query I rowsort SELECT 17 * + - 11 + - - col0 FROM tab2 AS cor0 @@ -19442,8 +19689,10 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + - 2 ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 26bbd5be966f8758cd918943f14714d1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- \(\- cor0\.col1\)\) \* \(\- cor0\.col1\) AS col2" at position 1 and "\(\- cor0\.col2\) \* cor0\.col0 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col1 AS col0, + col2 * - - col1 * - col1 col2, - col2 * col0 AS col2 FROM tab2 cor0 +---- +9 values hashing to 0fd0097a1aee55755af95f1625edc382 query I rowsort SELECT 34 * col0 AS col0 FROM tab0 @@ -19906,8 +20155,11 @@ SELECT ALL * FROM tab1 WHERE - 94 <= - col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1751 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ Int64\(\-46\) \* \(\- Int64\(36\)\) AS col1" at position 0 and "Int64\(\-69\) / \(\- CAST\(NULL AS Int32\)\) \* tab1\.col1 \* tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 95 + - 46 * - + 36 AS col1, - 69 / - CAST ( NULL AS INTEGER ) * + col1 * + col2 AS col1 FROM tab1 +---- +1751 +NULL query I rowsort SELECT ALL 14 FROM tab2 WHERE NOT + col2 IS NULL @@ -20007,8 +20259,15 @@ SELECT + 3 * 68 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 161 # Datafusion - Expected - 828 # Datafusion - Expected - 145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \* Int64\(\-36\) AS col1" at position 0 and "tab2\.col1 \+ \(\- Int64\(\-94\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 * - 36 AS col1, col1 + - - 94 col1 FROM tab2 +---- +1440 +145 +161 +171 +2088 +828 query I rowsort SELECT DISTINCT - 54 * + 24 AS col2 FROM tab1 @@ -21834,8 +22093,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT - ( + 61 ) * col0 - - col1 + - + col2 * - c # Datafusion - Expected - -2030 # Datafusion - Expected - 85 # Datafusion - Expected - -2030 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col1" at position 0 and "Int64\(29\) \* Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 85 AS col1, + 29 * - 70 AS col1 FROM tab2 +---- +-2030 +-2030 +-2030 +85 +85 +85 query I rowsort SELECT + col1 * 22 AS col0 FROM tab1 @@ -22400,8 +22666,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + ( - 29 ) # Datafusion - Expected - 2560 # Datafusion - Expected - 97 # Datafusion - Expected - 4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col1" at position 0 and "cor0\.col2 \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 97 AS col1, + col2 * + col0 AS col1 FROM tab2 AS cor0 +---- +1058 +2560 +4350 +97 +97 +97 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT + 29 + + col1 * 61 * - ( ( col2 ) ) - col0 + col1 + - col1 / + - col2 * col0 <= + + col2 - 62 @@ -22473,8 +22746,15 @@ SELECT DISTINCT - 29 + - - col1 col0 FROM tab2 AS cor0 # Datafusion - Expected - 96 # Datafusion - Expected - 90 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "cor0\.col2 \+ cor0\.col0 / Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 + - - col0 col2, col2 + + + col0 / + 66 AS col2 FROM tab1 AS cor0 +---- +138 +60 +65 +69 +90 +96 query III rowsort SELECT ALL * FROM tab2 cor0 WHERE 62 / - - 84 IS NULL @@ -22623,8 +22903,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 + col2 - + - col2 + col1 * + CAST # Datafusion - Expected - -85 # Datafusion - Expected - -4 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) / \(\- tab1\.col1\) AS col2" at position 0 and "\(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 62 / - + col1 AS col2, - col0 AS col2 FROM tab1 +---- +-1 +-12 +-4 +-51 +-85 +-91 query I rowsort label-3710 SELECT ALL + 78 / - MIN ( DISTINCT - 29 ) FROM tab0 @@ -22677,8 +22964,15 @@ NULL # Datafusion - Expected - -66 # Datafusion - Expected - 6947 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \+ \(\- Int64\(73\)\) \* \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 61 + - ( 73 ) * + - col2 col1, - 66 AS col1 FROM tab1 AS cor0 +---- +-66 +-66 +-66 +4246 +4903 +6947 query II rowsort label-3719 SELECT DISTINCT - COUNT ( * ), MIN ( ( col2 ) ) + 50 AS col2 FROM tab1 AS cor0 @@ -22996,8 +23290,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 26 AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +26 +3 query I rowsort label-3772 SELECT ALL + + 33 * + + COUNT ( * ) AS col0 FROM tab0 AS cor0 @@ -23046,8 +23343,11 @@ SELECT * FROM tab2 cor0 WHERE NOT + 51 * CAST ( NULL AS INTEGER ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab1 +---- +3 +3 query I rowsort SELECT 31 * + col1 AS col1 FROM tab1 @@ -24207,8 +24507,15 @@ SELECT DISTINCT + - 70 + - + 30 FROM tab2 AS cor0 # Datafusion - Expected - 5074 # Datafusion - Expected - 8 # Datafusion - Expected - 6256 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-76\)\) \+ \(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col2 \+ \(\- \(\- cor0\.col2\)\) \* \(\- \(\- cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 76 + - col2 AS col1, col2 + - - col2 * - - col0 AS col1 FROM tab1 AS cor0 +---- +-20 +17 +4992 +5074 +6256 +8 query III rowsort SELECT ALL * FROM tab2 WHERE 10 IN ( + 14 + + col1 / + col2 * + col1 * - col2, + ( + 59 ) ) @@ -25024,12 +25331,20 @@ SELECT ALL - 35 + + - 64 FROM tab1 # Datafusion - Expected - 44 # Datafusion - Expected - 5 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, + 44 AS col0 FROM tab1 +---- +14 +44 +44 +44 +47 +5 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, col0 FROM tab0 WHERE NOT NULL BETWEEN - 55 AND + col0 +---- query I rowsort label-4117 SELECT COUNT ( ALL 81 ) FROM tab0 AS cor0 @@ -26729,8 +27044,15 @@ SELECT DISTINCT col2 / + 60 * - 37 FROM tab1 AS cor0 WHERE NOT NULL >= NULL # Datafusion - Expected - -10 # Datafusion - Expected - 81 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 AS col2, - col2 AS col2 FROM tab0 cor0 +---- +-10 +-47 +-99 +1 +21 +81 query I rowsort SELECT DISTINCT - col0 * - - col2 * 0 FROM tab2 @@ -28008,8 +28330,15 @@ SELECT - - 30 * col2 - + 75 FROM tab1 AS cor0 # Datafusion - Expected - 29 # Datafusion - Expected - 97 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + ( - col0 ) AS col1, + 29 AS col1 FROM tab0 AS cor0 +---- +15 +29 +29 +29 +87 +97 query I rowsort SELECT + 69 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL @@ -28475,8 +28804,15 @@ SELECT col2 * col1 AS col2, - ( - + 85 ) * + col0 FROM tab2 # Datafusion - Expected - -5 # Datafusion - Expected - 144 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ Int64\(48\) AS col2" at position 0 and "CAST\(Int64\(\-5\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 + + 48 col2, + CAST ( + - 5 AS INTEGER ) AS col2 FROM tab1 +---- +-5 +-5 +-5 +107 +116 +144 query I rowsort label-4677 SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE col1 IS NULL @@ -29761,8 +30097,11 @@ SELECT - ( + 53 ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 AS col2, COUNT ( * ) col2 FROM tab1 +---- +-70 +3 query I rowsort SELECT ALL - ( col0 ) * + - 25 + 13 + col0 AS col2 FROM tab2 @@ -30141,8 +30480,11 @@ SELECT DISTINCT + 48 * col1 + - - 11 + - - col2 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(95\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( 95 ) col1, + COUNT ( * ) AS col1 FROM tab0 cor0 +---- +-95 +3 query I rowsort SELECT DISTINCT + 57 + + - col2 FROM tab1 @@ -30165,8 +30507,15 @@ SELECT ( - 78 ) FROM tab0 # Datafusion - Expected - -79 # Datafusion - Expected - -58 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col0" at position 0 and "Int64\(\-79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, - 79 AS col0 FROM tab2 +---- +-23 +-40 +-58 +-79 +-79 +-79 query I rowsort label-4959 SELECT - - MIN ( ALL col2 ) AS col0 FROM tab2 WHERE NOT + col0 IS NOT NULL @@ -30926,8 +31275,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 32 AS col2, + COUNT ( * ) * - COUNT ( * ) col2 FROM tab2 AS cor0 +---- +-32 +-9 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT 28 IS NULL @@ -31071,8 +31423,15 @@ SELECT ALL + CAST ( - AVG ( DISTINCT + 80 ) AS INTEGER ) AS col2, 4 AS col1 FROM # Datafusion - Expected - -2583 # Datafusion - Expected - -99 # Datafusion - Expected - -2583 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) 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 II valuesort SELECT ALL - col2 AS col2, + 63 * - 41 AS col2 FROM tab0 +---- +-10 +-2583 +-2583 +-2583 +-47 +-99 query I rowsort label-5108 SELECT - 56 + COUNT ( * ) FROM tab2 @@ -31395,8 +31754,11 @@ SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - col2 - + ( + - ( - 53 ) ) * # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -199 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- sum\(cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col1, - SUM ( ALL + + col0 ) AS col1 FROM tab0 AS cor0 +---- +-199 +3 query III rowsort SELECT * FROM tab2 AS cor0 WHERE ( NOT + 44 * col2 * col0 <= NULL ) @@ -31881,8 +32243,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col1" at position 0 and "Int64\(\-60\) \- \(\- Int64\(25\)\) \- Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col1, - 60 - - ( 25 ) - ( + 42 ) AS col1 FROM tab1 +---- +-77 +3 query I rowsort SELECT 77 * 1 AS col2 FROM tab0 WHERE col0 IS NULL @@ -31927,8 +32292,15 @@ SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 WHERE + col0 + + - # Datafusion - Expected - -342630 # Datafusion - Expected - 26 # Datafusion - Expected - -8910 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "\(\- tab0\.col1\) \* tab0\.col2 \* Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 26 AS col0, - col1 * col2 * 90 col0 FROM tab0 +---- +-18900 +-342630 +-8910 +26 +26 +26 query II rowsort SELECT DISTINCT - - col1 * col2 * - 75 AS col2, col2 + + + 67 * col2 FROM tab1 AS cor0 @@ -32889,8 +33261,11 @@ SELECT + - col1 FROM tab1 AS cor0 WHERE - col1 + - + ( + - col0 ) NOT BETWEEN - # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 21 AS col1, + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 cor0 +---- +21 +9 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT 78 IS NULL @@ -32948,8 +33323,15 @@ SELECT 24 * - + col0 * 45 + - + col2 * col0 AS col1 FROM tab2 # Datafusion - Expected - 525 # Datafusion - Expected - -58 # Datafusion - Expected - 592 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col0" at position 0 and "tab2\.col1 \+ tab2\.col0 \* Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, ( col1 ) + col0 * + 7 AS col0 FROM tab2 +---- +-23 +-40 +-58 +373 +525 +592 query III rowsort SELECT * FROM tab0 WHERE + col2 + + col2 + - + col1 * col2 > NULL @@ -33456,8 +33838,10 @@ SELECT ALL ( - + COUNT ( * ) ) * + - COUNT ( * ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 8403e53035010b58c68b41aad95b5a72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* \(\- tab1\.col2\) \* tab1\.col0 \* tab1\.col2 AS col2" at position 0 and "\(\- tab1\.col2\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 55 * - col2 * col0 * + col2 AS col2, ( col1 ) + + + 31 - - 52 * + col0, - ( + + col2 ) AS col2 FROM tab1 +---- +9 values hashing to a839404cf95b88462384039bd6283c77 query I rowsort label-5513 SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE ( NULL <> col1 + + col0 ) @@ -33616,8 +34000,11 @@ 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\(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\. +query II valuesort SELECT ALL ( - COUNT ( * ) ) * - 64 AS col1, ( - - 19 ) AS col1 FROM tab0 +---- +19 +192 query I rowsort label-5541 SELECT ( - 92 ) * 79 + + COUNT ( * ) FROM tab2 @@ -33788,8 +34175,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT col1 <> - col0 * + 50 # Datafusion - Expected - -15 # Datafusion - Expected - 5 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col0\) / Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, - col0 / + 6 AS col0 FROM tab1 AS cor0 +---- +-14 +-15 +-8 +14 +47 +5 query I rowsort SELECT DISTINCT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + 49 * + col2 / - 25 + + 29 @@ -34076,8 +34470,11 @@ 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\(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\. +query II valuesort SELECT + + COUNT ( * ), COUNT ( * ) FROM tab1 cor0 +---- +3 +3 query III rowsort SELECT DISTINCT * FROM tab0 WHERE ( - col2 ) = - 86 @@ -35325,8 +35722,15 @@ SELECT - - 50 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 4422 # Datafusion - Expected - 92 # Datafusion - Expected - 5082 -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\) \* \(\- \(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 92 col2, + 66 * - - col1 AS col2 FROM tab2 AS cor0 +---- +3366 +4422 +5082 +92 +92 +92 query I rowsort SELECT DISTINCT - + 98 * - 61 - ( + - col0 ) + - 32 + - + ( + 86 ) + + - col0 + + + col2 + + + col0 FROM tab2 AS cor0 @@ -37670,8 +38074,15 @@ SELECT - + COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 28 # Datafusion - Expected - -27 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col1" at position 0 and "Int64\(49\) \+ \(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 27 col1, 49 + - col1 AS col1 FROM tab0 +---- +-27 +-27 +-27 +-32 +28 +48 query I rowsort SELECT ALL col1 + 91 + - 14 FROM tab0 @@ -40565,8 +40976,9 @@ SELECT DISTINCT col1 / - 45 - col0 FROM tab1 AS cor0 -92 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "Int64\(73\) \* \(\- Int64\(\-63\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, 73 * - - 63 AS col1 FROM tab0 WHERE + + 16 * + ( - col0 ) IN ( col0 ) +---- query I rowsort label-6699 SELECT CAST ( + 98 AS INTEGER ) AS col2 FROM tab0 @@ -40605,8 +41017,15 @@ SELECT MAX ( + 93 ) FROM tab2 # Datafusion - Expected - -39 # 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 "cor0\.col2 \+ Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 28 AS col2, ( ( col2 ) ) + - 79 col2 FROM tab2 AS cor0 +---- +-21 +-39 +-56 +28 +28 +28 query I rowsort SELECT DISTINCT - 12 * - - col0 FROM tab1 AS cor0 @@ -40761,8 +41180,15 @@ SELECT ALL + col2 * + - CAST ( + + 75 AS INTEGER ) + + + col2, - col2 AS col1 FR # Datafusion - Expected - 67 # Datafusion - Expected - -96 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, + 67 AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +67 +67 +67 query I rowsort SELECT DISTINCT - ( - 34 ) AS col2 FROM tab1 AS cor0 @@ -41219,8 +41645,11 @@ SELECT ALL ( + + 4 ) + + col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- max\(CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, - MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 +---- +-3 +NULL query I rowsort SELECT DISTINCT - col0 + 71 + 31 FROM tab0 @@ -41337,8 +41766,15 @@ SELECT DISTINCT + COUNT ( DISTINCT - ( - + 47 ) ) FROM tab2 # Datafusion - Expected - 95 # Datafusion - Expected - 45675 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* Int64\(25\) \* \(\- tab0\.col1\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 * + 25 * - col1 AS col2, 95 AS col2 FROM tab0 +---- +2425 +30375 +45675 +95 +95 +95 query II rowsort label-6823 SELECT 53 / ( + col2 ), 24 col2 FROM tab0 @@ -41480,8 +41916,15 @@ SELECT DISTINCT 83 - + col1 * + col0 * + col2 FROM tab0 # Datafusion - Expected - 62 # Datafusion - Expected - 5 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, + ( + 62 ) AS col0 FROM tab1 +---- +14 +47 +5 +62 +62 +62 query II rowsort label-6845 SELECT COUNT ( - - col2 ) - - COUNT ( * ) AS col0, - 27 * - + 23 AS col1 FROM tab1 @@ -41556,8 +41999,15 @@ SELECT + - 86 * - col2 * + col1 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 44 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 44 col2, + col0 col2 FROM tab2 AS cor0 +---- +44 +44 +44 +46 +64 +75 query I rowsort SELECT ALL ( + ( + + col1 ) ) AS col1 FROM tab2 AS cor0 @@ -42905,8 +43355,15 @@ SELECT - + 85 - - + 62 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - NULL # Datafusion - Expected - 13 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "\(\- tab0\.col0\) \+ \(\- CAST\(NULL AS Int32\)\) / \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 13 AS col2, - col0 + - CAST ( NULL AS INTEGER ) / - col1 AS col2 FROM tab0 +---- +13 +13 +13 +NULL +NULL +NULL query I rowsort label-7085 SELECT ALL + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE ( NULL ) <= ( + 96 ) / - col0 - + col2 * + col1 @@ -43040,8 +43497,15 @@ SELECT * FROM tab1 WHERE 23 * col2 IS NULL # Datafusion - Expected - 2 # Datafusion - Expected - 39130 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* \(\- Int64\(43\)\) \* \(\- tab0\.col2\) AS col0" at position 0 and "tab0\.col1 \+ tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 91 * - ( + + 43 ) * - col2 AS col0, col1 + + col1 AS col0 FROM tab0 +---- +162 +183911 +2 +387387 +39130 +42 query I rowsort label-7106 SELECT DISTINCT SUM ( - 92 ) * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 @@ -43107,8 +43571,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + col1 * + 50 >= NULL # Datafusion - Expected - 159 # Datafusion - Expected - 5 # Datafusion - Expected - 144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col2 \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( col1 ) AS col0, + col2 + col0 AS col0 FROM tab1 AS cor0 +---- +14 +144 +147 +159 +47 +5 query I rowsort SELECT ALL + ( + col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL > ( NULL ) @@ -43453,8 +43924,11 @@ SELECT DISTINCT - col1 * - + col1 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- sum\(\(\- cor0\.col1\)\)\)\) / \(\- min\(DISTINCT \(\- CAST\(\(\- Int64\(99\)\) AS Int32\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ max\(Int64\(5\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - SUM ( ALL - col1 ) / - + MIN ( DISTINCT + - CAST ( - ( 99 ) AS INTEGER ) ) + + COUNT ( * ) + MAX ( 5 ) AS col1, + COUNT ( * ) AS col1 FROM tab0 cor0 +---- +3 +9 query I rowsort SELECT ALL 70 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) @@ -43649,8 +44123,15 @@ SELECT + + MAX ( DISTINCT - + 71 ) * 1 FROM tab0 cor0 # Datafusion - Expected - 77 # Datafusion - Expected - 75 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, col1 AS col2 FROM tab2 +---- +46 +51 +64 +67 +75 +77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 @@ -44298,8 +44779,15 @@ NULL # Datafusion - Expected - 68 # Datafusion - Expected - 80 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \- tab1\.col1 AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 - col1 col0, + col2 AS col0 FROM tab1 +---- +37 +44 +59 +68 +80 +96 query I rowsort SELECT DISTINCT 47 + + - col2 FROM tab1 @@ -44311,8 +44799,11 @@ SELECT DISTINCT 47 + + - col2 FROM tab1 # 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 "min\(tab0\.col1\) AS col0" at position 0 and "Int64\(\-41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( col1 ) col0, - 41 AS col0 FROM tab0 +---- +-41 +1 query I rowsort SELECT + col2 AS col0 FROM tab1 WHERE col1 >= - + col0 @@ -44556,8 +45047,15 @@ SELECT - - col2 * - col2 - col1 FROM tab1 cor0 # Datafusion - Expected - -5712 # Datafusion - Expected - 15 # Datafusion - Expected - -8064 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "CAST\(\(\- Int64\(85\)\) AS Int32\) \* cor0\.col2 \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 15 AS col0, CAST ( - + 85 AS INTEGER ) * + + col2 + + + col2 AS col0 FROM tab1 AS cor0 +---- +-4956 +-5712 +-8064 +15 +15 +15 query II rowsort SELECT - col0 AS col1, + col1 - 39 AS col2 FROM tab0 AS cor0 @@ -46041,8 +46539,11 @@ SELECT - MAX ( DISTINCT + CAST ( - col1 AS INTEGER ) ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, + 63 AS col0 FROM tab2 AS cor0 +---- +3 +63 query I rowsort label-7609 SELECT DISTINCT MIN ( ALL + 54 ) + - + COUNT ( * ) FROM tab0 AS cor0 @@ -46210,8 +46711,15 @@ SELECT * FROM tab2 WHERE NOT + col1 > 91 # Datafusion - Expected - -1827 # Datafusion - Expected - 87 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col2" at position 0 and "tab0\.col0 \* \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 87 AS col2, col0 * - col1 AS col2 FROM tab0 +---- +-1215 +-1827 +-97 +87 +87 +87 query II rowsort SELECT col0, - col1 AS col2 FROM tab0 AS cor0 @@ -46254,8 +46762,11 @@ SELECT DISTINCT * FROM tab0 WHERE NULL = - + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - -1159 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- cor0\.col1\)\) \* Int64\(78\) AS col2" at position 0 and "Int64\(61\) \* Int64\(\-19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + MAX ( - col1 ) * + 78 AS col2, 61 * - 19 AS col2 FROM tab0 AS cor0 +---- +-1159 +-78 query III rowsort SELECT DISTINCT * FROM tab0 cor0 WHERE - ( 5 ) * col2 IS NOT NULL @@ -46546,8 +47057,15 @@ SELECT DISTINCT 75 + col1 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -49 # Datafusion - Expected - 91 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col0 AS Int32\) AS col2" at position 0 and "Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( + col0 AS INTEGER ) col2, - 49 AS col2 FROM tab1 AS cor0 +---- +-49 +-49 +-49 +51 +85 +91 query I rowsort label-7685 SELECT ALL - CAST ( 44 AS INTEGER ) AS col0 FROM tab0 AS cor0 @@ -48040,8 +48558,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MAX ( + 38 ) AS col0, - COUNT ( * ) AS col0 FROM tab0 +---- +-3 +-38 query I rowsort label-7935 SELECT ALL col0 / 84 * - 64 + + col0 FROM tab1 @@ -48926,8 +49447,11 @@ SELECT DISTINCT + 83 - + 87 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ min\(DISTINCT \(\- tab1\.col0\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) + + MIN ( DISTINCT - col0 ) + - COUNT ( * ) AS col0, + 16 AS col0 FROM tab1 +---- +16 +NULL query I rowsort SELECT + col2 + + - 18 FROM tab1 @@ -49069,8 +49593,15 @@ SELECT DISTINCT 88 * 6 / - COUNT ( * ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -850 # Datafusion - Expected - 21 # Datafusion - Expected - 1224 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col1" at position 0 and "Int64\(75\) \* cor0\.col0 \- cor0\.col0 \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 21 AS col1, + 75 * col0 - + col0 * + + col0 AS col1 FROM tab1 AS cor0 +---- +-1456 +-850 +1224 +21 +21 +21 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 70 AND + 53 @@ -49082,8 +49613,9 @@ SELECT ALL * FROM tab2 AS cor0 WHERE col2 + - col2 NOT BETWEEN + + col0 AND + - 9 values hashing to 75c998aa53ac83218cbf2feb962d0a49 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* Int64\(19\) \+ \(\- tab0\.col2\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 * 19 + + - col2 AS col0, + col1 AS col0 FROM tab0 WHERE NOT + CAST ( NULL AS FLOAT8 ) IS NULL +---- query I rowsort label-8107 SELECT ALL 79 * + CAST ( + + 5 AS INTEGER ) * col0 + col1 - 97 AS col0 FROM tab0 @@ -49879,8 +50411,15 @@ SELECT col2 AS col0, 29 * - col1 FROM tab2 # Datafusion - Expected - 40 # Datafusion - Expected - 48 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 48 col1, col2 AS col1 FROM tab2 +---- +23 +40 +48 +48 +48 +58 query I rowsort label-8235 SELECT + col0 / + 32 AS col2 FROM tab1 @@ -50137,8 +50676,15 @@ SELECT * FROM tab2 WHERE NOT ( NOT ( NULL <> + CAST ( + CAST ( + + col0 AS INTEG # Datafusion - Expected - 69 # Datafusion - Expected - 71 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 71 col0, 69 col0 FROM tab1 +---- +69 +69 +69 +71 +71 +71 query I rowsort label-8279 SELECT ALL - COUNT ( * ) AS col2 FROM tab1, tab2 cor0 @@ -51215,8 +51761,9 @@ SELECT 7 * - 55 AS col0 FROM tab1 AS cor0 -385 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) / cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 81 / col1 AS col0, - col0 col0 FROM tab1 AS cor0 WHERE NOT + col2 + + col1 BETWEEN NULL AND NULL +---- query I rowsort SELECT - col2 * 47 + - col0 * + + col0 col0 FROM tab1 AS cor0 @@ -51844,8 +52391,15 @@ SELECT - col1 AS col2, 69 AS col1 FROM tab0 cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col1, + col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT ALL - col2 * + ( col0 ) AS col1 FROM tab0 AS cor0 @@ -52031,8 +52585,15 @@ SELECT + COUNT ( * ) + - 27 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -3131 # Datafusion - Expected - 4896 # Datafusion - Expected - -833 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(51\) AS col0" at position 0 and "cor0\.col0 \+ Int64\(70\) \* \(\- cor0\.col1\) \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col2 * 51 AS col0, col0 + 70 * - col1 + col2 AS col0 FROM tab1 AS cor0 +---- +-206 +-3131 +-833 +3009 +3468 +4896 query I rowsort SELECT DISTINCT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL @@ -52123,8 +52684,15 @@ SELECT ALL - - 90 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - -2419 # Datafusion - Expected - -6 # Datafusion - Expected - -943 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) AS col2" at position 0 and "Int64\(\-43\) \* tab2\.col2 \+ tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 6 AS col2, - 43 * col2 + + col0 AS col2 FROM tab2 +---- +-1656 +-2419 +-6 +-6 +-6 +-943 query III rowsort label-8608 SELECT * FROM tab2 WHERE NOT + 48 + CAST ( - col1 AS INTEGER ) IS NULL @@ -52143,8 +52711,15 @@ SELECT DISTINCT - 59 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - -2622 # Datafusion - Expected - -68 # Datafusion - Expected - -2622 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ Int64\(\-58\) AS col2" at position 0 and "Int64\(57\) \* Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 + - 58 AS col2, 57 * - 46 AS col2 FROM tab0 AS cor0 +---- +-105 +-157 +-2622 +-2622 +-2622 +-68 query I rowsort label-8611 SELECT COUNT ( * ) + - COUNT ( * ) - - 16 AS col1 FROM tab2 AS cor0 @@ -52483,8 +53058,11 @@ SELECT ALL 33 col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1335 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \* Int64\(49\) \+ Int64\(\-61\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 26 * 49 + - 61 AS col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +-1335 +3 query I rowsort SELECT + 0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 @@ -53670,8 +54248,15 @@ SELECT col0 * + 51 FROM tab2 # Datafusion - Expected - -47 # Datafusion - Expected - 33 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 col2, - col2 col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +33 +33 +33 query I rowsort SELECT ALL + col2 / - col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 * + 33 AND + - col0 * + + 85 + col2 - - col0 + + - col2 * col2 - - col1 @@ -53958,8 +54543,15 @@ SELECT + col0 * + ( - 67 ) * + col1 + ( - 76 ) FROM tab0 # Datafusion - Expected - 170 # Datafusion - Expected - 91 # Datafusion - Expected - 1598 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col1 \* Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, + col1 * + 34 AS col1 FROM tab1 +---- +1598 +170 +476 +51 +85 +91 query II rowsort label-8919 SELECT ALL SUM ( 48 ), 49 AS col0 FROM tab0 @@ -54085,8 +54677,15 @@ SELECT + + ( - col1 ) + - 54 AS col1 FROM tab2 AS cor0 WHERE col0 * + col2 - + c # Datafusion - Expected - -77 # Datafusion - Expected - 25 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \+ tab2\.col0 AS col0" at position 0 and "\(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 50 + col0 AS col0, - col1 AS col0 FROM tab2 +---- +-4 +-51 +-67 +-77 +14 +25 query I rowsort SELECT DISTINCT - 98 - + col0 + - col2 AS col0 FROM tab1 WHERE NOT + 85 * ( - col2 ) + ( - col0 ) = 66 @@ -54371,8 +54970,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT - col1 NOT IN ( - + col0, CAST ( - col2 AS # Datafusion - Expected - 87 # Datafusion - Expected - 58 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-58\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - - 58 ) AS col1, col0 col1 FROM tab0 AS cor0 +---- +15 +58 +58 +58 +87 +97 query II rowsort SELECT - - ( + col1 ) col1, 18 + - ( - - col1 ) + - - col1 + - + col1 * + 79 AS col2 FROM tab0 AS cor0 @@ -54804,8 +55410,15 @@ SELECT COUNT ( * ) FROM tab0 WHERE NOT NULL = col2 # Datafusion - Expected - 80 # Datafusion - Expected - 6188 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \* \(\- tab1\.col2\) AS col1" at position 0 and "\(\- tab1\.col1\) \- \(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 * - col2 AS col1, - ( + col1 ) - - col0 AS col1 FROM tab1 +---- +37 +44 +4896 +5015 +6188 +80 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col0 + - col1 ) @@ -55689,8 +56302,15 @@ SELECT ALL COUNT ( * ) + 28 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 75 # Datafusion - Expected - 77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - col1 ) AS col1, + col0 AS col1 FROM tab2 cor0 +---- +46 +51 +64 +67 +75 +77 query I rowsort label-9192 SELECT - COUNT ( * ) * - + COUNT ( * ) + 6 - - ( CAST ( NULL AS INTEGER ) ) * MIN ( col0 ) + - 57 AS col1 FROM tab2 AS cor0 @@ -56739,8 +57359,15 @@ SELECT ALL * FROM tab1 WHERE NOT - col1 <= ( NULL ) # Datafusion - Expected - 8 # Datafusion - Expected - -91 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, 8 AS col1 FROM tab1 +---- +-51 +-85 +-91 +8 +8 +8 query I rowsort SELECT ALL col2 * + + 77 FROM tab2 @@ -57589,8 +58216,15 @@ SELECT + col1 + col0 - + 44, col1 FROM tab0 # Datafusion - Expected - 34 # Datafusion - Expected - NULL # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ \(\- Int64\(86\)\) \+ \(\- CAST\(NULL AS Float64\)\) \* Int64\(37\) \- Int64\(\-55\) AS col2" at position 0 and "Int64\(85\) \+ \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT 85 + + - ( + 86 ) + - CAST ( NULL AS FLOAT8 ) * 37 - ( - 55 ) AS col2, 85 + - col1 col2 FROM tab2 +---- +18 +34 +8 +NULL +NULL +NULL query II rowsort SELECT DISTINCT + col0 * - + 66, 13 col0 FROM tab1 @@ -59322,8 +59956,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT + col1 = ( + col2 ) # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, 67 AS col2 FROM tab2 +---- +51 +67 +67 +67 +67 +77 query I rowsort SELECT + 36 + 23 FROM tab1 @@ -60131,8 +60772,9 @@ NULL NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab2\.col2\)\) \* tab2\.col0 \* Int64\(89\) AS col2" at position 0 and "tab2\.col1 \+ Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col2 * + col0 * + 89 AS col2, ( col1 ) + 54 col2 FROM tab2 WHERE + col1 < NULL +---- query I rowsort SELECT DISTINCT 88 * col0 * - col0 AS col0 FROM tab0 diff --git a/data/sqlite/random/aggregates/slt_good_17.slt b/data/sqlite/random/aggregates/slt_good_17.slt index 167a193..f138373 100644 --- a/data/sqlite/random/aggregates/slt_good_17.slt +++ b/data/sqlite/random/aggregates/slt_good_17.slt @@ -679,8 +679,15 @@ SELECT 64 * col1 * 18 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 3 # Datafusion - Expected - -2496076 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* Int64\(71\) \* \(\- tab1\.col2\) \* \(\- tab1\.col2\) \* tab1\.col1 / tab1\.col2 AS col1" at position 0 and "Int64\(\-17\) / \(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 11 * 71 * - col2 * - col2 * col1 / + col2 col1, - 17 / - col1 AS col1 FROM tab1 +---- +-1049664 +-230395 +-2496076 +0 +1 +3 query I rowsort label-99 SELECT 1 + COUNT ( * ) * 14 FROM tab2 @@ -712,8 +719,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE - 73 <= NULL # Datafusion - Expected - 34 # Datafusion - Expected - 78 # Datafusion - Expected - 714 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "cor0\.col1 \* Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 78 AS col1, col1 * 34 AS col1 FROM tab0 cor0 +---- +2754 +34 +714 +78 +78 +78 query I rowsort label-104 SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * + col1 FROM tab1 cor0 @@ -1466,8 +1480,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) col2, COUNT ( * ) * + 51 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( - 40 ) AND ( NULL ) +---- +0 +0 query I rowsort SELECT DISTINCT - + ( ( col1 ) ) AS col1 FROM tab2 AS cor0 @@ -2563,8 +2580,15 @@ SELECT - - col1 * + col2 AS col1 FROM tab0 cor0 # Datafusion - Expected - -77 # Datafusion - Expected - 321600 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \* Int64\(\-64\) \* tab2\.col0 AS col2" at position 0 and "\(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * - 64 * + + col0 AS col2, - col1 AS col2 FROM tab2 +---- +-51 +-67 +-77 +150144 +315392 +321600 query I rowsort SELECT DISTINCT 99 * col2 AS col0 FROM tab2 @@ -2740,8 +2764,15 @@ SELECT + MAX ( col0 ) * + + 92, MAX ( ALL 44 ) col1 FROM tab1 AS cor0 # Datafusion - Expected - -169037 # Datafusion - Expected - -5625 # Datafusion - Expected - -287167 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col1\) \+ cor0\.col2 \* Int64\(66\) \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 * - col0 AS col1, - col1 + + col2 * 66 * - col0 AS col1 FROM tab2 AS cor0 +---- +-169037 +-2116 +-287167 +-4096 +-5625 +-69879 query I rowsort SELECT ALL + col1 * - col0 * - - 92 FROM tab1 AS cor0 @@ -2943,8 +2974,15 @@ SELECT ALL 7 - + - ( col0 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 5 # Datafusion - Expected - -91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, col1 AS col2 FROM tab1 +---- +-51 +-85 +-91 +14 +47 +5 query I rowsort SELECT ALL - col2 * + col0 * + + 26 AS col0 FROM tab0 @@ -3922,8 +3960,15 @@ SELECT ALL 86 * - + COUNT ( * ) FROM tab2 WHERE ( NULL ) IS NULL # Datafusion - Expected - -37 # Datafusion - Expected - 0 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) / \(\- tab2\.col0\) AS col1" at position 0 and "\(\- tab2\.col1\) \- \(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 21 / - col0 AS col1, - col1 - - col2 AS col1 FROM tab2 +---- +-28 +-37 +-9 +0 +0 +0 query II rowsort label-641 SELECT DISTINCT MIN ( DISTINCT 56 ) AS col0, + COUNT ( * ) FROM tab0 AS cor0 @@ -3994,8 +4039,15 @@ SELECT DISTINCT - + 12 + 3 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \+ \(\- Int64\(25\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 33 + ( - + 25 ) AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 +---- +-58 +-58 +-58 +NULL +NULL +NULL query I rowsort label-651 SELECT + - MAX ( + 0 ) - ( + COUNT ( * ) ) FROM tab0 AS cor0 @@ -4126,8 +4178,15 @@ NULL # Datafusion - Expected - -20 # Datafusion - Expected - -252300 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \* tab2\.col0 \* tab2\.col2 AS col2" at position 0 and "Int64\(31\) \+ \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 * + + col0 * + col2 AS col2, + 31 + - col1 AS col2 FROM tab2 +---- +-102400 +-20 +-24334 +-252300 +-36 +-46 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL >= - - col2 ) @@ -5445,8 +5504,15 @@ SELECT - SUM ( - + 23 ) AS col1 FROM tab1 # Datafusion - Expected - -16 # Datafusion - Expected - -99 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- tab0\.col1\) AS col2" at position 0 and "\(\- tab0\.col0\) \+ \(\- tab0\.col1\) / \(\- \(\- tab0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * - col1 AS col2, + ( - + col0 ) + - col1 / - - col1 AS col2 FROM tab0 +---- +-16 +-210 +-3807 +-88 +-98 +-99 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 87 IS NULL @@ -6726,8 +6792,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> + col1 * + - col2 # Datafusion - Expected - 64 # Datafusion - Expected - 93 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 93 AS col1, + col0 AS col1 FROM tab2 AS cor0 +---- +46 +64 +75 +93 +93 +93 query I rowsort SELECT DISTINCT + 61 * 33 AS col2 FROM tab1 AS cor0 @@ -6864,8 +6937,15 @@ SELECT - col2 / 50 * - + 88 * + col1 AS col2 FROM tab2 # Datafusion - Expected - -52 # Datafusion - Expected - -75 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.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 II valuesort SELECT DISTINCT - col0 AS col0, - 52 AS col0 FROM tab2 +---- +-46 +-52 +-52 +-52 +-64 +-75 query I rowsort SELECT ALL + col2 + 41 * col0 AS col0 FROM tab1 AS cor0 @@ -7397,8 +7477,9 @@ SELECT ALL * FROM tab0 WHERE + 72 IS NOT NULL 9 values hashing to c4b42765dff94eaaa46040e537fb43b7 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col0, + col1 col0 FROM tab0 WHERE 85 IS NULL +---- query I rowsort SELECT - ( col0 ) * ( ( col0 ) ) AS col1 FROM tab1 @@ -7524,8 +7605,11 @@ SELECT DISTINCT + - 5 / - - 65 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab2, tab0 cor0 +---- +-9 +9 query I rowsort label-1228 SELECT ALL + - CAST ( 63 AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1 @@ -7678,8 +7762,9 @@ SELECT + col0 col0 FROM tab1 AS cor0 WHERE + 77 IS NOT NULL 91 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col2" at position 0 and "cor0\.col0 / Int64\(\-55\) \- cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 60 AS col2, col0 / - 55 - col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL +---- query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT - col0 IN ( + col0, + col1 ) @@ -7897,8 +7982,15 @@ SELECT + ( + COUNT ( DISTINCT + col2 ) ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 28 # Datafusion - Expected - 810 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* \(\- cor0\.col0\) \+ cor0\.col2 AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 * - col0 + col2 AS col2, + 28 AS col2 FROM tab1 AS cor0 +---- +28 +28 +28 +4345 +484 +810 query I rowsort SELECT - 79 * + ( - - 0 ) + + 79 FROM tab1 cor0 @@ -8323,8 +8415,12 @@ SELECT col1, col0 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 46 # Datafusion - Expected - 51 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT tab2\.col1\) AS col0" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT MIN ( ALL + col0 ), MIN ( DISTINCT ( col1 ) ) AS col0, COUNT ( * ) AS col0 FROM tab2 +---- +3 +46 +51 query II rowsort SELECT + col1 AS col0, - ( + - col0 ) + + ( - col0 ) * + - col2 AS col2 FROM tab0 WHERE NOT + col0 + col1 IS NULL @@ -8468,8 +8564,11 @@ 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\(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\. +query II valuesort SELECT 6 / 48 + COUNT ( * ) - - COUNT ( * ) AS col0, + 92 AS col0 FROM tab1 +---- +6 +92 query I rowsort SELECT DISTINCT col2 * - 88 / + 8 FROM tab0 AS cor0 WHERE NULL IN ( - 98 * col2 ) @@ -8622,8 +8721,11 @@ SELECT ALL + ( - COUNT ( + + col2 ) ) col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 87 AS col0, + COUNT ( * ) AS col0 FROM tab0 +---- +3 +87 query I rowsort SELECT col0 - - 37 FROM tab1 @@ -9141,8 +9243,15 @@ SELECT - 10 * - ( - COUNT ( * ) ) * - + 66 + + COUNT ( * ) AS col2 FROM tab0 AS # Datafusion - Expected - NULL # Datafusion - Expected - 45 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ cor0\.col2 AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col0 + col2 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +-23 +-26 +45 +NULL +NULL +NULL query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT + 92 IS NOT NULL @@ -9223,8 +9332,15 @@ SELECT + 50 * col2 + + + ( - - col2 ) FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, col2 AS col1 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT DISTINCT - 56 * col2 AS col2 FROM tab2 @@ -9846,8 +9962,15 @@ SELECT DISTINCT - 20 + - + 80 * - col1 / + col1 FROM tab1 AS cor0 # Datafusion - Expected - -75 # Datafusion - Expected - 77 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "\(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, - col0 AS col0 FROM tab2 +---- +-46 +-64 +-75 +51 +67 +77 query II rowsort SELECT ALL col2 AS col1, + col0 AS col0 FROM tab2 @@ -10138,8 +10261,15 @@ SELECT * FROM tab1 WHERE NOT 44 IS NULL # Datafusion - Expected - -1224 # Datafusion - Expected - 66 # Datafusion - Expected - -1728 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col2" at position 0 and "Int64\(18\) \* \(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 AS col2, 18 * - col2 AS col2 FROM tab1 +---- +-1062 +-1224 +-1728 +66 +66 +66 query I rowsort label-1656 SELECT COUNT ( * ) / - + 88 FROM tab2 @@ -10328,8 +10458,15 @@ SELECT ALL + 16 + COUNT ( * ) FROM tab0 cor0 # Datafusion - Expected - 71 # Datafusion - Expected - 5634 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \+ \(\- cor0\.col2\) \+ \(\- CAST\(cor0\.col0 AS Int32\)\) \* \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 + - col2 + - CAST ( + + ( col0 ) AS INTEGER ) * - col0 AS col1, + 71 AS col1 FROM tab2 cor0 +---- +2144 +4133 +5634 +71 +71 +71 query I rowsort SELECT ALL + col1 * - ( - col1 ) * - col2 + - + col1 + col1 - - col1 * + - 55 AS col2 FROM tab0 @@ -11794,8 +11931,15 @@ SELECT ALL - COUNT ( ALL - 65 ) AS col2 FROM tab1 WHERE - 55 * - ( + - col0 ) + # Datafusion - Expected - 36 # Datafusion - Expected - 34 # Datafusion - Expected - 36 -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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 col0, + 36 col0 FROM tab2 +---- +34 +34 +34 +36 +36 +36 query I rowsort label-1929 SELECT ALL + 7 / + + col0 AS col2 FROM tab0 @@ -12022,8 +12166,10 @@ SELECT DISTINCT * FROM tab0 cor0 WHERE - col0 + - col1 BETWEEN NULL AND + 9 + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 values hashing to a689c014c027c4924538b46405de9cf4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 1 and "\(\- \(\- cor0\.col0\)\) AS col1" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIII valuesort SELECT - col0 AS col0, col0 AS col1, col2 + col0, - - col0 AS col1 FROM tab1 AS cor0 +---- +12 values hashing to 3c3101a8e9ef09d1b682669354f60ace query I rowsort SELECT + col2 * - col0 + - col1 col1 FROM tab2 AS cor0 @@ -12321,8 +12467,15 @@ SELECT DISTINCT + - COUNT ( * ) * COUNT ( * ) FROM tab2 cor0 WHERE col0 * + CAST # Datafusion - Expected - -21 # Datafusion - Expected - 62 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 AS col0, - col1 col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +62 +62 +62 query I rowsort SELECT - + ( + 97 ) FROM tab0 AS cor0 @@ -12391,8 +12544,15 @@ SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT - 98 <= NULL # Datafusion - Expected - -6 # Datafusion - Expected - 75 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, - 6 col1 FROM tab2 +---- +-6 +-6 +-6 +46 +64 +75 query II rowsort label-2022 SELECT 2 AS col1, COUNT ( * ) col0 FROM tab1 @@ -12407,8 +12567,15 @@ SELECT 2 AS col1, COUNT ( * ) col0 FROM tab1 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col1, + col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT ALL - col2 * - 20 AS col2 FROM tab0 @@ -13112,8 +13279,15 @@ NULL # Datafusion - Expected - 67 # Datafusion - Expected - 241740 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(34\) \* \(\- Int64\(\-79\)\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 90 * + 34 * - - 79 AS col0, col1 AS col0 FROM tab2 AS cor0 +---- +241740 +241740 +241740 +51 +67 +77 query III rowsort label-2143 SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( - col1 / + CAST ( - 14 AS INTEGER ) ) @@ -13286,8 +13460,11 @@ SELECT * FROM tab1 WHERE col0 BETWEEN + col0 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- Int64\(9\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, - ( + 9 ) AS col0 FROM tab0 +---- +-9 +3 query I rowsort SELECT col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL @@ -13792,8 +13969,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT - 75 IS NOT NULL # Datafusion - Expected - -87 # Datafusion - Expected - -61 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- CAST\(Int64\(61\) AS Int32\)\) AS col1" at position 0 and "Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 * - CAST ( + + 61 AS INTEGER ) AS col1, - 87 AS col1 FROM tab0 AS cor0 +---- +-1281 +-4941 +-61 +-87 +-87 +-87 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN + col1 * + - col0 * - - 88 AND NULL @@ -14310,8 +14494,15 @@ SELECT + 34 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( - CAST ( NULL AS INTEG # Datafusion - Expected - 670 # Datafusion - Expected - 79 # Datafusion - Expected - 770 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col1" at position 0 and "cor0\.col1 \* Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 79 AS col1, + col1 * + 10 AS col1 FROM tab2 AS cor0 +---- +510 +670 +770 +79 +79 +79 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT 94 + + col0 BETWEEN ( col0 ) AND - 45 @@ -14877,8 +15068,9 @@ SELECT - MAX ( + 39 ) FROM tab2 cor0 -39 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / \(\- cor0\.col1\) AS col1" at position 0 and "Int64\(94\) \- \(\- \(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 / - col1 col1, 94 - - - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = NULL +---- query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 * + 27 ) >= col1 / + - 59 @@ -15121,8 +15313,15 @@ SELECT * FROM tab2 WHERE NOT + col0 * col2 IS NULL # Datafusion - Expected - 68 # Datafusion - Expected - -90 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 AS col1, + col2 AS col1 FROM tab1 +---- +-90 +-90 +-90 +59 +68 +96 query I rowsort SELECT + col0 + + + col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL @@ -15442,8 +15641,15 @@ SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE + col0 IS NULL # Datafusion - Expected - -1 # Datafusion - Expected - -96 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(71\) / \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col2 col1, ( + 71 ) / - col2 AS col1 FROM tab1 AS cor0 +---- +-1 +-1 +-59 +-68 +-96 +0 query I rowsort label-2528 SELECT ALL CAST ( CAST ( - col1 AS INTEGER ) AS INTEGER ) + - - 80 * + col2 FROM tab0 AS cor0 @@ -17515,8 +17721,15 @@ SELECT + 2 * + col1 FROM tab0 # Datafusion - Expected - -47 # Datafusion - Expected - -91 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "\(\- CAST\(Int64\(47\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, - CAST ( + + 47 AS INTEGER ) AS col2 FROM tab1 AS cor0 +---- +-47 +-47 +-47 +-51 +-85 +-91 query I rowsort label-2873 SELECT - + 94 * - 65 + - COUNT ( * ) AS col0 FROM tab0 cor0 @@ -18163,8 +18376,15 @@ SELECT ALL COUNT ( DISTINCT + 85 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - 77 # Datafusion - Expected - 75 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, col1 col2 FROM tab2 +---- +46 +51 +64 +67 +75 +77 query I rowsort label-2976 SELECT + 32 * - - COUNT ( * ) AS col1 FROM tab2 @@ -19080,8 +19300,9 @@ SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE 43 IS NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(\-26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col2, - 26 AS col2 FROM tab1 AS cor0 WHERE NOT 80 NOT BETWEEN + CAST ( NULL AS INTEGER ) - - col0 * + 59 - + 66 AND NULL +---- query I rowsort SELECT DISTINCT col1 * - 47 AS col2 FROM tab0 AS cor0 @@ -19583,8 +19804,15 @@ SELECT + SUM ( DISTINCT - + col2 ) - + COUNT ( * ) / - + COUNT ( * ) FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, + col0 AS col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT DISTINCT + 8 + - col1 AS col0 FROM tab2 @@ -20291,8 +20519,15 @@ SELECT ALL col0 + - 56 + + col1 FROM tab0 AS cor0 # Datafusion - Expected - 48 # Datafusion - Expected - 58 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( col2 ) AS col0, 48 AS col0 FROM tab2 +---- +23 +40 +48 +48 +48 +58 query I rowsort label-3323 SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) FROM tab1 AS cor0 @@ -20864,8 +21099,15 @@ SELECT DISTINCT col1 * + + 72 col2 FROM tab2 WHERE NULL IS NOT NULL # Datafusion - Expected - 21 # Datafusion - Expected - NULL # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col0, 21 AS col0 FROM tab0 +---- +21 +21 +21 +NULL +NULL +NULL query I rowsort label-3415 SELECT MAX ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 @@ -20973,8 +21215,10 @@ SELECT * FROM tab0 WHERE col0 NOT BETWEEN NULL AND + col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c4e7e3c3bacff0e7ec23db77f3a7d20c -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \- Int64\(27\) \+ Int64\(91\) AS col0" at position 0 and "Int64\(\-97\) \+ tab0\.col1 \+ Int64\(\-21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 6 - 27 + + 91 AS col0, - 97 + + col1 + - 21 AS col0, + ( - 66 ) FROM tab0 +---- +9 values hashing to 51ef227762955c35fb25cdf54634906c query I rowsort SELECT 63 * - + col0 - + col1 AS col1 FROM tab2 @@ -21260,8 +21504,15 @@ NULL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, col1 AS col0 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT ALL + ( - 61 ) + 84 AS col1 FROM tab0 @@ -21844,8 +22095,15 @@ NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0 AS col0, col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT + 32 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 @@ -22074,8 +22332,11 @@ SELECT DISTINCT - 29 * + - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 282 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "CAST\(Int64\(\-94\) AS Int32\) \* \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col1, CAST ( - 94 AS INTEGER ) * - - ( - COUNT ( * ) ) AS col1 FROM tab1 cor0 +---- +282 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 @@ -22084,8 +22345,15 @@ SELECT CAST ( NULL AS INTEGER ) AS col1, CAST ( - 94 AS INTEGER ) * - - ( - COUN # Datafusion - Expected - 21 # Datafusion - Expected - 97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, + col1 AS col2 FROM tab0 AS cor0 +---- +1 +15 +21 +81 +87 +97 query I rowsort SELECT + col1 FROM tab1 AS cor0 WHERE 30 IS NOT NULL @@ -22418,8 +22686,15 @@ SELECT COUNT ( * ) * + + 48 + + + 57 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -19 # Datafusion - Expected - 9681 # Datafusion - Expected - 195 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col2 \* cor0\.col1 \+ Int64\(78\) AS col0" at position 0 and "cor0\.col0 \+ cor0\.col2 \- cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * + col2 * col1 + + + ( + + 78 ) AS col0, col0 + ( + col2 ) - + col1 AS col0 FROM tab0 cor0 +---- +-19 +18348 +195 +57183 +76 +9681 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 * + col2 IS NOT NULL @@ -22900,8 +23175,15 @@ SELECT ALL * FROM tab2 cor0 WHERE ( 78 + 68 + col2 ) IS NULL # Datafusion - Expected - -47 # Datafusion - Expected - -714 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \* tab1\.col1 AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 * col1 AS col1, - col1 AS col1 FROM tab1 +---- +-14 +-425 +-4277 +-47 +-5 +-714 query I rowsort SELECT - col1 FROM tab1 WHERE NULL < + + col2 @@ -23354,8 +23636,9 @@ SELECT DISTINCT + 96 * + + 92 AS col2 FROM tab2 cor0 8832 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \+ Int64\(16\) \* tab2\.col1 AS col1" at position 0 and "Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 + 16 * col1 AS col1, - 6 AS col1 FROM tab2 WHERE NOT NULL IS NULL +---- query I rowsort label-3822 SELECT 13 * - MAX ( ALL - col2 ) FROM tab0 @@ -23515,8 +23798,11 @@ SELECT DISTINCT - 32, col1 AS col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "Int64\(\-84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 12 AS col0, - 84 AS col0 FROM tab0 WHERE + col1 IS NOT NULL +---- +-84 +12 query I rowsort label-3850 SELECT DISTINCT MAX ( DISTINCT col2 ) AS col2 FROM tab1 @@ -24609,8 +24895,15 @@ SELECT ALL + 22 AS col1, COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Expected - 83 # Datafusion - Expected - -5 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, + 83 col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +83 +83 +83 query I rowsort SELECT ALL + col1 col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND col1 / + 42 @@ -24746,8 +25039,15 @@ SELECT DISTINCT CAST ( + col2 AS INTEGER ) + - col2 FROM tab2 # Datafusion - Expected - -78 # Datafusion - Expected - -77 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) \- \(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "Int64\(\-78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 67 - - - ( col2 ) AS col0, - 78 AS col0 FROM tab0 AS cor0 +---- +-114 +-166 +-77 +-78 +-78 +-78 query I rowsort label-4044 SELECT ALL + COUNT ( * ) + - COUNT ( * ) / - + 56 FROM tab1 AS cor0 @@ -26688,8 +26988,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - col2 * + + col2 IS NOT NU # Datafusion - Expected - 52 # Datafusion - Expected - -96 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col2 AS col2, + 52 AS col2 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +52 +52 +52 query I rowsort label-4370 SELECT DISTINCT - SUM ( ALL - 66 ) FROM tab0 AS cor0 @@ -26893,8 +27200,15 @@ SELECT + MIN ( ( - 13 ) ) AS col1 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, col2 AS col1 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT - 83 - col2 AS col1 FROM tab1 WHERE NOT + 85 IS NOT NULL @@ -27005,8 +27319,15 @@ SELECT * FROM tab1 cor0 WHERE + col2 <= 69 * + 80 # Datafusion - Expected - -77 # Datafusion - Expected - 75 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "Int64\(3\) \+ Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 col1, + 3 + + - 80 AS col1 FROM tab2 +---- +-77 +-77 +-77 +46 +64 +75 query I rowsort label-4424 SELECT SUM ( + + CAST ( NULL AS INTEGER ) ) FROM tab1 @@ -27020,8 +27341,15 @@ NULL # Datafusion - Expected - 1408 # Datafusion - Expected - 81 # Datafusion - Expected - 1336 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \- \(\- tab0\.col0\) \+ \(\- tab0\.col0\) AS col0" at position 0 and "Int64\(22\) \* Int64\(58\) \+ tab0\.col0 \+ Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 - + - col0 + - col0 AS col0, 22 * + 58 + col0 + 45 AS col0 FROM tab0 +---- +1 +1336 +1408 +1418 +21 +81 query II rowsort SELECT ALL + col2 AS col1, col0 - - col0 FROM tab1 @@ -27775,8 +28103,15 @@ SELECT DISTINCT + 84 + - - 67 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 87 # Datafusion - Expected - -97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col1, col0 AS col1 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +15 +87 +97 query I rowsort label-4545 SELECT ALL MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 @@ -29061,8 +29396,15 @@ SELECT - 81 / col2 AS col2 FROM tab2 # Datafusion - Expected - 28 # Datafusion - Expected - 58 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "tab2\.col2 \+ \(\- Int64\(12\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, col2 + ( - + 12 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL +---- +11 +23 +28 +40 +46 +58 query II rowsort SELECT - col1 col0, 27 + - + 38 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL ) @@ -29108,8 +29450,15 @@ SELECT ALL ( col2 ) * + + 94 FROM tab0 # Datafusion - Expected - 88 # Datafusion - Expected - 75 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col1 \+ Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, col1 + + 11 AS col1 FROM tab2 +---- +46 +62 +64 +75 +78 +88 query II rowsort SELECT DISTINCT col1, + 97 * - - col0 FROM tab1 @@ -29165,8 +29514,15 @@ SELECT ALL + 34 * - - 85 + + 39 FROM tab2 cor0 WHERE NOT ( 81 ) * + + col0 / + c # Datafusion - Expected - 705 # Datafusion - Expected - 99 # Datafusion - Expected - 9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col0\) \* \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + col2 ) AS col0, - col0 * - col2 AS col0 FROM tab0 AS cor0 +---- +10 +47 +705 +870 +9603 +99 query III rowsort SELECT * FROM tab0 AS cor0 WHERE + 5 IN ( col0 ) @@ -29249,8 +29605,15 @@ SELECT DISTINCT + 10 + + col0 * col2, 94 col2 FROM tab2 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - -62 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \+ Int64\(61\) / \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 61 + 61 / - col2 AS col2, + col0 col2 FROM tab1 AS cor0 +---- +-61 +-61 +-62 +51 +85 +91 query I rowsort label-4796 SELECT + 9 - + 4 + - COUNT ( ALL + 53 ) + + 42 AS col0 FROM tab1 @@ -30263,8 +30626,15 @@ SELECT ALL - col0 FROM tab0 WHERE NULL > NULL # Datafusion - Expected - 63 # Datafusion - Expected - 75 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col1, + 63 AS col1 FROM tab2 +---- +46 +63 +63 +63 +64 +75 query II rowsort label-4965 SELECT COUNT ( * ), 62 + 50 + SUM ( + + col1 ) AS col0 FROM tab1 @@ -30291,8 +30661,15 @@ SELECT ALL + MAX ( DISTINCT + col0 ) col2 FROM tab1 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - -59 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 59 AS col0, - col2 AS col0 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +-59 +-59 +-59 query I rowsort SELECT ALL - ( - - 15 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 @@ -30616,8 +30993,15 @@ SELECT + 62 * - 53 FROM tab1 # Datafusion - Expected - -21 # Datafusion - Expected - -9603 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* tab0\.col2 AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 * col2 AS col1, - col1 AS col1 FROM tab0 +---- +-1 +-21 +-705 +-81 +-870 +-9603 query III rowsort SELECT * FROM tab2 WHERE - 37 + + col1 IS NOT NULL @@ -30777,8 +31161,15 @@ SELECT + col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL # Datafusion - Expected - 29 # Datafusion - Expected - NULL # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) col2, + 29 col2 FROM tab1 AS cor0 +---- +29 +29 +29 +NULL +NULL +NULL query II rowsort SELECT ALL - col0 col0, col2 AS col1 FROM tab2 AS cor0 @@ -30885,8 +31276,15 @@ SELECT 12 / + col0 col2 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \- cor0\.col1 / cor0\.col1 AS col1" at position 0 and "cor0\.col0 \+ \(\- cor0\.col2\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( 13 ) - + col1 / + col1 col1, col0 + - col2 * - ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 cor0 +---- +12 +12 +12 +NULL +NULL +NULL query III rowsort SELECT * FROM tab2 WHERE col0 + + 86 IS NULL @@ -31367,8 +31765,11 @@ SELECT DISTINCT - col0 + - 36 - - col1 + + col1 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, - 39 AS col2 FROM tab0 +---- +-39 +3 query I rowsort SELECT + + col0 - - col2 * - - 46 * 91 + + 73 FROM tab0 AS cor0 @@ -31650,8 +32051,15 @@ SELECT ALL * FROM tab1 cor0 WHERE ( - - col2 - + col2 NOT IN ( + - col0 ) ) # Datafusion - Expected - 72 # Datafusion - Expected - 77 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, 72 AS col2 FROM tab2 +---- +51 +67 +72 +72 +72 +77 query I rowsort SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL @@ -31874,8 +32282,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - + col0 # Datafusion - Expected - -47 # Datafusion - Expected - -5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col1, - col1 FROM tab1 AS cor0 +---- +-14 +-14 +-47 +-47 +-5 +-5 query I rowsort label-5229 SELECT - - MAX ( DISTINCT 7 ) FROM tab0 AS cor0 WHERE col2 >= NULL @@ -32200,8 +32615,15 @@ SELECT ALL - ( + CAST ( - COUNT ( * ) AS INTEGER ) ) + - 15 AS col1 FROM tab0 AS # Datafusion - Expected - 1221 # Datafusion - Expected - 13 # Datafusion - Expected - 1221 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col1" at position 0 and "Int64\(33\) \* Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 AS col1, 33 * 37 AS col1 FROM tab2 AS cor0 +---- +1221 +1221 +1221 +13 +13 +13 query I rowsort SELECT - col1 - - ( - col0 ) + + col0 FROM tab2 @@ -33517,8 +33939,15 @@ SELECT DISTINCT MIN ( - 85 ) * - MIN ( - 0 ) FROM tab0 # Datafusion - Expected - 5 # Datafusion - Expected - -5733 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \+ Int64\(\-62\) \* tab1\.col0 AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + - 62 * + + col0 col0, col1 AS col0 FROM tab1 +---- +-3213 +-5355 +-5733 +14 +47 +5 query I rowsort SELECT ALL col2 * + + col0 + - 7 col0 FROM tab0 @@ -34404,8 +34833,15 @@ SELECT ALL + + SUM ( + ( col2 ) ) FROM tab0 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 58 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 58 col2, + col1 col2 FROM tab0 +---- +1 +21 +58 +58 +58 +81 query I rowsort SELECT ALL + - 74 AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND NULL @@ -35799,8 +36235,15 @@ SELECT + 72 col0 FROM tab0 AS cor0 # Datafusion - Expected - -77 # Datafusion - Expected - -77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(\-77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col1 AS col0, - 77 AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +-77 +-77 +-77 query I rowsort SELECT col0 * 52 * + col1 + col0 + + 36 - + col0 AS col1 FROM tab0 @@ -36202,8 +36645,15 @@ SELECT DISTINCT - + 8 * 98 FROM tab0 AS cor0 # Datafusion - Expected - -7569 # Datafusion - Expected - 29 # Datafusion - Expected - -9409 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "cor0\.col0 \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 29 AS col1, col0 * - col0 AS col1 FROM tab0 AS cor0 +---- +-225 +-7569 +-9409 +29 +29 +29 query III rowsort label-5940 SELECT ALL * FROM tab2 AS cor0 WHERE 98 NOT BETWEEN - CAST ( NULL AS INTEGER ) * - + col1 / - col2 AND + 40 @@ -36237,8 +36687,15 @@ SELECT 29, - 12 * - - col1 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -7585 # Datafusion - Expected - 38 # Datafusion - Expected - -83005 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "\(\- cor0\.col1\) \* cor0\.col2 \* Int64\(26\) \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 38 AS col0, - col1 * col2 * + 26 + col0 AS col0 FROM tab1 AS cor0 +---- +-34893 +-7585 +-83005 +38 +38 +38 query I rowsort SELECT - col2 * 3 FROM tab2 WHERE NOT - 57 IS NOT NULL @@ -36324,8 +36781,11 @@ SELECT ALL COUNT ( ALL + + 35 ) FROM tab2 cor0 # 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\) 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 II valuesort SELECT DISTINCT + 33 AS col1, MAX ( + col0 ) AS col1 FROM tab1 AS cor0 +---- +33 +91 query III rowsort SELECT * FROM tab2 AS cor0 WHERE + col0 + + col2 IS NOT NULL @@ -37268,8 +37728,15 @@ SELECT COUNT ( * ) / 21 * + 25 FROM tab2, tab1 AS cor0 # Datafusion - Expected - -1856 # Datafusion - Expected - 20 # Datafusion - Expected - -2175 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \+ \(\- Int64\(38\)\) AS col2" at position 0 and "tab2\.col0 \+ Int64\(30\) \* \(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 + - + 38 AS col2, + col0 + 30 * - col0 AS col2 FROM tab2 +---- +-1334 +-15 +-1856 +-2175 +2 +20 query II rowsort SELECT DISTINCT + col2 + + col1 AS col1, + col2 col0 FROM tab0 @@ -37979,8 +38446,15 @@ NULL # Datafusion - Expected - 43 # Datafusion - Expected - 63 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 63 AS col2, + 43 AS col2 FROM tab1 +---- +43 +43 +43 +63 +63 +63 query II rowsort SELECT - col0 AS col0, col2 col2 FROM tab1 @@ -39284,8 +39758,11 @@ SELECT col1 + - col0 FROM tab2 WHERE NOT + - col2 <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "min\(DISTINCT \(\- Int64\(96\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 AS col1, MIN ( DISTINCT - + 96 ) AS col1 FROM tab2 +---- +-96 +87 query I rowsort SELECT + 30 * + + col1 FROM tab1 @@ -40238,8 +40715,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * - MIN ( ALL + col0 ) AS col0, MAX ( DISTINCT + col1 ) col0 FROM tab2 AS cor0 +---- +-138 +77 query I rowsort label-6614 SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL ) @@ -40394,8 +40874,15 @@ SELECT + + 62 AS col0 FROM tab0 WHERE NOT NULL IS NULL # Datafusion - Expected - 64 # Datafusion - Expected - -58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, col0 AS col2 FROM tab2 AS cor0 WHERE NOT 64 IS NULL +---- +-23 +-40 +-58 +46 +64 +75 query I rowsort SELECT - 59 col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL @@ -40586,8 +41073,15 @@ SELECT DISTINCT + + COUNT ( * ) AS col0, COUNT ( * ) - + COUNT ( DISTINCT + col2 # Datafusion - Expected - 68 # Datafusion - Expected - -96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, + col2 AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +59 +68 +96 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -41190,8 +41684,11 @@ SELECT + CAST ( + 76 AS INTEGER ) + - col0 col0 FROM tab1 AS cor0 WHERE NULL IS # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- cor0\.col2\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(NULL AS Int32\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( - col2 ) AS col0, - COUNT ( * ) + + + ( - CAST ( NULL AS INTEGER ) ) / + - ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0 +---- +3 +NULL query I rowsort SELECT DISTINCT + col2 * - col0 + - ( - col2 ) * - col1 AS col2 FROM tab1 @@ -42494,8 +42991,15 @@ SELECT ALL * FROM tab0 WHERE + - 46 + col0 IN ( - col1 * col1 ) # Datafusion - Expected - -51 # Datafusion - Expected - -25 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) / tab0\.col0 \+ \(\- Int64\(19\)\) AS col0" at position 0 and "Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 91 / col0 + - + 19 AS col0, - 51 AS col0 FROM tab0 +---- +-19 +-20 +-25 +-51 +-51 +-51 query I rowsort label-6978 SELECT + SUM ( + 74 ) FROM tab1 AS cor0 WHERE NULL IS NULL @@ -42666,8 +43170,15 @@ SELECT 12 / + + col0 FROM tab0 # Datafusion - Expected - 85 # Datafusion - Expected - -58 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, 85 AS col1 FROM tab2 +---- +-23 +-40 +-58 +85 +85 +85 query II rowsort label-7006 SELECT ALL + col2 AS col0, - col1 * col0 * col2 / + 54 FROM tab2 @@ -43063,8 +43574,15 @@ SELECT DISTINCT ( 72 ), + col1 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - -36 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 36 AS col2, col0 AS col2 FROM tab1 +---- +-36 +-36 +-36 +51 +85 +91 query I rowsort label-7071 SELECT - col0 * - + 51 / + 3 FROM tab0 @@ -43437,8 +43955,15 @@ SELECT DISTINCT + col2 AS col2, - 48 FROM tab0 # Datafusion - Expected - 28 # Datafusion - Expected - 96 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, + 28 AS col1 FROM tab1 +---- +28 +28 +28 +59 +68 +96 query I rowsort label-7127 SELECT DISTINCT 85 * + COUNT ( * ) FROM tab2 @@ -43835,8 +44360,15 @@ SELECT + 24 col0 FROM tab2 AS cor0 # Datafusion - Expected - 5 # Datafusion - Expected - -91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 col0, col1 AS col0 FROM tab1 +---- +-51 +-85 +-91 +14 +47 +5 query I rowsort SELECT ALL - col0 * - - col2 - col2 - + 52 AS col0 FROM tab1 AS cor0 @@ -44031,8 +44563,15 @@ SELECT ALL 6 col1 FROM tab0 WHERE NOT ( NULL IS NOT NULL ) # Datafusion - Expected - 1 # Datafusion - Expected - 75 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col0 / Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, col0 / + 34 AS col1 FROM tab2 +---- +1 +1 +2 +46 +64 +75 query I rowsort label-7224 SELECT DISTINCT COUNT ( * ) * - 1 AS col0 FROM tab2 WHERE NOT ( NOT + 15 NOT BETWEEN NULL AND + col0 ) @@ -44044,8 +44583,13 @@ SELECT DISTINCT COUNT ( * ) * - 1 AS col0 FROM tab2 WHERE NOT ( NOT + 15 NOT BET # Datafusion - Expected - 0 # 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 "Int64\(42\) / \(\- tab2\.col2\) \* \(\- tab2\.col2\) / tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 29 AS col1, 42 / - col2 * - + col2 / col2 AS col1 FROM tab2 +---- +0 +1 +29 +29 query I rowsort label-7226 SELECT DISTINCT - MAX ( ALL + 26 ) AS col1 FROM tab1 @@ -45320,8 +45864,15 @@ SELECT - + col1 * + + 63 + 38 FROM tab0 cor0 # Datafusion - Expected - 441 # Datafusion - Expected - 69 # Datafusion - Expected - 6561 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ Int64\(22\) AS col1" at position 0 and "\(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + + 22 AS col1, - col1 * - + col1 AS col1 FROM tab0 AS cor0 +---- +1 +121 +32 +441 +6561 +69 query I rowsort label-7439 SELECT DISTINCT CAST ( + + ( - - col0 ) AS INTEGER ) AS col1 FROM tab2 AS cor0 @@ -45507,8 +46058,11 @@ SELECT DISTINCT - 95 AS col1 FROM tab0 WHERE + col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(max\(cor0\.col1\) AS Int32\) AS col1" at position 0 and "Int64\(23\) \+ \(\- \(\- max\(cor0\.col0\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) + CAST ( + MAX ( ALL col1 ) AS INTEGER ) AS col1, + 23 + - - MAX ( + col0 ) AS col1 FROM tab0 AS cor0 +---- +120 +84 query I rowsort SELECT ALL col0 * + 47 * - ( col2 ) AS col1 FROM tab0 AS cor0 WHERE 70 + - + col0 + col2 + + col2 IS NOT NULL @@ -45808,8 +46362,15 @@ SELECT col0 * - 67 AS col1 FROM tab0 # Datafusion - Expected - 40 # Datafusion - Expected - 16 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 col1, col2 AS col1 FROM tab2 +---- +16 +16 +16 +23 +40 +58 query I rowsort SELECT DISTINCT 74 * + - col0 FROM tab0 @@ -46337,8 +46898,11 @@ SELECT COUNT ( * ) AS col1 FROM tab0 WHERE - - col0 + - 61 + ( - - col2 ) IS NOT # Datafusion - Datafusion expected results: # Datafusion - Expected - -102 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(89\)\)\) \+ \(\- Int64\(13\)\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( DISTINCT ( 89 ) ) + - + 13 AS col2, + 54 AS col2 FROM tab1 +---- +-102 +54 query I rowsort SELECT DISTINCT col2 + + 34 FROM tab0 @@ -46550,8 +47114,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 70 AS col1, COUNT ( * ) * 11 AS col1 FROM tab0 WHERE 31 NOT BETWEEN NULL AND - + 59 +---- +-70 +33 query I rowsort label-7637 SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT NULL BETWEEN - + col2 * 12 AND + col2 @@ -46584,8 +47151,9 @@ SELECT col1 FROM tab1 WHERE NOT + col1 IS NOT NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, + col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL +---- query I rowsort label-7644 SELECT col1 / - + col2 FROM tab2 cor0 @@ -46975,8 +47543,15 @@ SELECT * FROM tab0 cor0 WHERE + 59 / ( + col0 ) IS NULL # Datafusion - Expected - -4350 # Datafusion - Expected - 77 # Datafusion - Expected - -2560 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "\(\- cor0\.col0\) \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - - col1 ) AS col0, - col0 * col2 AS col0 FROM tab2 AS cor0 +---- +-1058 +-2560 +-4350 +51 +67 +77 query I rowsort label-7706 SELECT DISTINCT col0 - + + ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 @@ -47017,8 +47592,11 @@ SELECT * FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS 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\(DISTINCT tab2\.col2\) AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( DISTINCT + + col2 ) AS col2, 74 AS col2 FROM tab2 +---- +3 +74 query I rowsort SELECT ALL + col0 + + 80 * + col1 + + col1 AS col2 FROM tab2 AS cor0 @@ -48241,8 +48819,11 @@ SELECT ALL 51 + - col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(17\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) * + + 17 AS col1, + COUNT ( * ) AS col1 FROM tab0 +---- +3 +51 query III rowsort SELECT * FROM tab0 WHERE col2 * + + col1 - - ( - - ( col1 ) ) IS NOT NULL @@ -48734,8 +49315,9 @@ SELECT * FROM tab1 WHERE NOT NULL >= + 61 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + col0, + col0 AS col0, - col2 + - col1 + + 39 * - + 91 + col2 / col1 col1 FROM tab2 AS cor0 WHERE NOT ( 62 ) * col0 NOT IN ( + col0 - + col1 * - col1, col2 + - + 92 / col2 * - + 69 ) +---- query I rowsort SELECT ALL 50 FROM tab0 AS cor0 WHERE ( 48 ) IS NOT NULL @@ -49200,8 +49782,15 @@ SELECT DISTINCT - 88 AS col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL # Datafusion - Expected - 58 # Datafusion - Expected - 5929 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col1 AS col0" at position 0 and "cor0\.col2 \- cor0\.col1 \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * col1 AS col0, col2 - + ( + + col1 ) + + col1 AS col0 FROM tab2 AS cor0 +---- +23 +2601 +40 +4489 +58 +5929 query I rowsort SELECT ( - col2 ) col1 FROM tab1 AS cor0 @@ -50904,8 +51493,15 @@ NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, col0 col1 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT ALL ( ( + col2 ) ) + - - col2 AS col0 FROM tab2 @@ -51166,8 +51762,15 @@ SELECT - 94 + col0 * + + col2 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 95 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ tab2\.col0 \+ \(\- tab2\.col0\) AS col1" at position 0 and "\(\- tab2\.col1\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 95 + col0 + + - col0 AS col1, - col1 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 +---- +95 +95 +95 +NULL +NULL +NULL query I rowsort label-8395 SELECT DISTINCT col1 / + col0 - - col1 + - + col2 FROM tab0 @@ -51312,8 +51915,9 @@ SELECT - COUNT ( * ) + - MIN ( + 7 ) FROM tab1 AS cor0 -10 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col2" at position 0 and "Int64\(89\) \* Int64\(\-40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 5 AS col2, 89 * - 40 AS col2 FROM tab2 AS cor0 WHERE ( NULL BETWEEN CAST ( NULL AS INTEGER ) AND NULL ) +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -51538,8 +52142,15 @@ SELECT DISTINCT + col2 + + + col0 + - col2 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +14 +47 +5 +99 +99 +99 query I rowsort SELECT ALL - 39 * 10 FROM tab0 @@ -53139,8 +53750,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( - ( col0 ), + 61, - col1 + c # Datafusion - Expected - 91 # Datafusion - Expected - 5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col2, + col0 AS col2 FROM tab1 +---- +14 +47 +5 +51 +85 +91 query I rowsort label-8715 SELECT + col0 * col1 / col0 AS col2 FROM tab0 @@ -53767,8 +54385,11 @@ SELECT DISTINCT + COUNT ( * ) * + MIN ( DISTINCT - 89 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 24 + COUNT ( * ) col2, - COUNT ( col0 ) AS col2 FROM tab0 AS cor0 +---- +-21 +-3 query I rowsort label-8818 SELECT - CAST ( NULL AS INTEGER ) + + - 27 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL @@ -54736,8 +55357,10 @@ SELECT - 51 AS col0 FROM tab2, tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 11b27b9ce0ddc5e8b935c2ac7f37e905 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 1 and "\(\- tab0\.col2\) \* Int64\(72\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT CAST ( 47 AS INTEGER ) AS col2, col2 AS col0, - col2 * 72 AS col0 FROM tab0 +---- +9 values hashing to 5e927c402b89bdef8a85dc14517fd48e query III rowsort SELECT DISTINCT * FROM tab0 WHERE - 95 <> 56 @@ -54909,8 +55532,15 @@ SELECT DISTINCT - CAST ( + + col0 AS INTEGER ) AS col2 FROM tab2 # Datafusion - Expected - 98 # Datafusion - Expected - -34 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(34\)\) AS col1" at position 0 and "Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - + 34 ) AS col1, 98 AS col1 FROM tab2 +---- +-34 +-34 +-34 +98 +98 +98 query III rowsort SELECT ALL * FROM tab0 WHERE ( NULL ) IS NULL AND NULL IS NULL @@ -55337,8 +55967,15 @@ SELECT - col2 FROM tab0 AS cor0 WHERE ( NULL ) > col0 * col2 # Datafusion - Expected - -7 # Datafusion - Expected - 48 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col2" at position 0 and "Int64\(33\) \- cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 48 AS col2, + 33 - col2 AS col2 FROM tab2 AS cor0 +---- +-25 +-7 +10 +48 +48 +48 query I rowsort label-9078 SELECT DISTINCT - + 47 * - COUNT ( DISTINCT 21 ) FROM tab2 cor0 @@ -56424,8 +57061,15 @@ SELECT + MIN ( ALL col1 ) AS col2 FROM tab0 # Datafusion - Expected - -58 # Datafusion - Expected - -77 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - col1 ) AS col2, - col2 AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-51 +-58 +-67 +-77 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT + col0 = - - 84 @@ -56514,8 +57158,15 @@ NULL # Datafusion - Expected - -68 # Datafusion - Expected - 17 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "CAST\(\(\- tab1\.col2\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 17 AS col2, CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 +---- +-59 +-68 +-96 +17 +17 +17 query I rowsort SELECT - col0 + - - 67 FROM tab0 @@ -56534,8 +57185,11 @@ SELECT col2 * - + 59 + + col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19158 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* \(\- sum\(tab2\.col1\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-52\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 99 * - SUM ( col1 ) + - + COUNT ( * ) * - 52 + - - COUNT ( * ) * - COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab2 +---- +-19158 +3 query I rowsort SELECT + 43 + + col1 * - col2 FROM tab1 @@ -56676,8 +57330,15 @@ SELECT DISTINCT ( col2 ) / col0 + - col1 FROM tab2 WHERE - col2 * - CAST ( NULL # Datafusion - Expected - NULL # Datafusion - Expected - 197539 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \+ \(\- tab2\.col2\) \+ tab2\.col0 \* Int64\(31\) \* Int64\(85\) AS col0" at position 0 and "tab2\.col2 \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - 28 ) + - col2 + + + col0 * 31 * + + 85 AS col0, col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 +---- +121159 +168572 +197539 +NULL +NULL +NULL query I rowsort SELECT ALL 71 * + col1 * + + 47 + col1 FROM tab1 cor0 @@ -56822,8 +57483,15 @@ SELECT - CAST ( - + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - -75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, ( + - col0 ) AS col0 FROM tab2 AS cor0 +---- +-46 +-46 +-64 +-64 +-75 +-75 query I rowsort label-9321 SELECT MIN ( col0 ) / - 81 FROM tab1 AS cor0 @@ -57135,8 +57803,15 @@ SELECT ALL * FROM tab1 WHERE NOT col1 = 64 # Datafusion - Expected - 47 # Datafusion - Expected - 48 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 AS col0, col2 AS col0 FROM tab0 +---- +10 +47 +48 +48 +48 +99 query I rowsort label-9374 SELECT DISTINCT - MIN ( DISTINCT - 96 ) FROM tab0 @@ -57522,8 +58197,15 @@ SELECT ALL + - CAST ( + + COUNT ( * ) AS INTEGER ) - + 9 * + - 54 AS col1 FROM t # Datafusion - Expected - 168 # Datafusion - Expected - -93 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col2" at position 0 and "cor0\.col0 \* cor0\.col0 / cor0\.col2 \+ cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 93 col2, + col0 * col0 / col2 + col1 AS col2 FROM tab1 AS cor0 +---- +-93 +-93 +-93 +127 +168 +41 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT + 21 * + - col0 * + 76 * + - col1 / - col1 * col1 IS NOT NULL @@ -58294,14 +58976,24 @@ SELECT DISTINCT - + MIN ( ALL - col0 ) * - 65 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 15 # Datafusion - Expected - 1 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) / \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 77 / - + col0 col2, + 15 AS col2 FROM tab2 AS cor0 +---- +1 +1 +1 +15 +15 +15 # 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\(Int64\(1\)\) AS count\(\*\) \+ \(\- max\(DISTINCT Int64\(\-26\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + MAX ( ALL + col1 ) AS col2, + MAX ( - col0 ) + COUNT ( * ) + - MAX ( DISTINCT - 26 ) AS col2 FROM tab0 cor0 +---- +-81 +14 query I rowsort SELECT DISTINCT - col2 * + 3 FROM tab2 AS cor0 @@ -58596,8 +59288,15 @@ SELECT DISTINCT + col1 / - - 72 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, col2 AS col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT DISTINCT 1 + col0 col1 FROM tab2 @@ -59768,8 +60467,11 @@ SELECT - - col2 * + col1 * + - col1, - 29 FROM tab2 WHERE NOT + - col0 * col2 >= # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ Int64\(\-33\) AS col0" at position 0 and "Int64\(61\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 + + - 33 AS col0, 61 - COUNT ( * ) AS col0 FROM tab2 +---- +33 +58 query II rowsort label-9820 SELECT 91 * - 11 + - - CAST ( - col1 AS INTEGER ), col1 AS col0 FROM tab2 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_18.slt b/data/sqlite/random/aggregates/slt_good_18.slt index a31fbcb..3354ca9 100644 --- a/data/sqlite/random/aggregates/slt_good_18.slt +++ b/data/sqlite/random/aggregates/slt_good_18.slt @@ -360,8 +360,11 @@ SELECT DISTINCT + - 70 - + 71 AS col1 FROM tab2 WHERE - 25 + + col2 * + - col1 * # Datafusion - Datafusion expected results: # Datafusion - Expected - -4975 # Datafusion - Expected - 3913 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(\-63\) \+ Int64\(\-61\) AS col2" at position 0 and "min\(Int64\(\-47\)\) \* Int64\(\-81\) \+ max\(tab0\.col0\) \+ Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 78 * + - 63 + - 61 AS col2, MIN ( - 47 ) * - 81 + ( + MAX ( + col0 ) ) + + 9 AS col2 FROM tab0 +---- +-4975 +3913 query I rowsort SELECT ALL + 49 + - col2 AS col1 FROM tab2 AS cor0 @@ -1589,8 +1592,15 @@ SELECT col0 / - col0 / - col0 * col0 * + + 31 * - 92 FROM tab1 AS cor0 WHERE NUL # Datafusion - Expected - 21 # Datafusion - Expected - 88 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 88 AS col2, col1 AS col2 FROM tab0 AS cor0 +---- +1 +21 +81 +88 +88 +88 query I rowsort label-260 SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 @@ -1604,8 +1614,15 @@ SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 # Datafusion - Expected - -117 # Datafusion - Expected - 3779 # Datafusion - Expected - -125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(63\) \- \(\- cor0\.col1\) \+ cor0\.col2 AS col2" at position 0 and "\(\- cor0\.col1\) \- CAST\(cor0\.col2 AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * 63 - + - col1 + col2 AS col2, - col1 - + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE - 5 IS NOT NULL +---- +-117 +-125 +-74 +1523 +2637 +3779 query II rowsort SELECT DISTINCT + - 49 AS col0, col1 FROM tab0 AS cor0 @@ -1632,8 +1649,11 @@ SELECT - 58 * COUNT ( * ) FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 45 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-45 +3 query I rowsort SELECT ALL - col0 + + - ( + - col0 ) - + + col2 FROM tab0 @@ -2325,8 +2345,15 @@ SELECT ALL - COUNT ( * ) / SUM ( - col1 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 26 # Datafusion - Expected - 5 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, 26 AS col0 FROM tab1 +---- +14 +26 +26 +26 +47 +5 query I rowsort label-378 SELECT ALL + col1 / - - col1 col0 FROM tab2 @@ -2937,14 +2964,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 166 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) / Int64\(\-28\) AS col0" at position 0 and "sum\(DISTINCT cor0\.col1\) \* Int64\(70\) / Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + - 46 ) / - 28 AS col0, SUM ( DISTINCT col1 ) * 70 / + + 82 AS col0 FROM tab2 AS cor0 +---- +1 +166 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT \(\- cor0\.col0\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( DISTINCT - + col0 ) AS col0, CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +3 +NULL query I rowsort SELECT ALL + - col1 / col0 FROM tab1 WHERE 73 <= NULL @@ -4257,8 +4290,15 @@ SELECT 38, 81 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - -952 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \* Int64\(14\) AS col1" at position 0 and "\(\- \(\- tab1\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 * + 14 col1, - ( - col0 ) col1 FROM tab1 +---- +-1344 +-826 +-952 +51 +85 +91 query I rowsort label-704 SELECT DISTINCT + SUM ( - - 40 ) + - 31 FROM tab2 @@ -4980,8 +5020,15 @@ SELECT - 5 / - + col2 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 7 # Datafusion - Expected - -99 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 col2, + 7 col2 FROM tab0 cor0 +---- +-10 +-47 +-99 +7 +7 +7 query I rowsort SELECT DISTINCT - 50 * ( col1 * - col2 ) AS col0 FROM tab0 @@ -5532,8 +5579,15 @@ SELECT ALL + COUNT ( DISTINCT + 3 ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -57 # Datafusion - Expected - 77 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "\(\- tab2\.col2\) \+ \(\- \(\- tab2\.col0\)\) / tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col0, ( - + col2 ) + - - col0 / col2 AS col0 FROM tab2 +---- +-21 +-39 +-57 +51 +67 +77 query II rowsort SELECT DISTINCT + col2, - col1 + + col0 AS col0 FROM tab0 @@ -5845,8 +5899,15 @@ SELECT - - SUM ( - col0 ) FROM tab0 cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 60 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 60 AS col0, col2 AS col0 FROM tab2 AS cor0 WHERE col1 + col2 NOT IN ( - col1, col0 + + col1 ) +---- +23 +40 +58 +60 +60 +60 query I rowsort label-965 SELECT DISTINCT COUNT ( * ) * - 98 * COUNT ( * ) AS col0 FROM tab2 AS cor0 @@ -5935,8 +5996,11 @@ SELECT - - col1 - 9 AS col0 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 13 AS col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +13 +3 query I rowsort SELECT DISTINCT + - col1 + - 8 + - 4 FROM tab0 AS cor0 @@ -6718,8 +6782,11 @@ SELECT + col0, 86 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 33 ) AS col1, + COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 +---- +-33 +9 query I rowsort label-1109 SELECT MIN ( - col0 ) / - COUNT ( * ) + - + COUNT ( DISTINCT 21 ) + + - SUM ( ALL + 39 ) FROM tab0 @@ -7294,8 +7361,15 @@ SELECT ALL + MAX ( - col2 ) - + + COUNT ( * ) * - + 41 FROM tab1 # Datafusion - Expected - 1534 # Datafusion - Expected - 281198 # Datafusion - Expected - 1768 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \+ Int64\(88\) \* \(\- cor0\.col2\) \* \(\- cor0\.col1\) AS col2" at position 0 and "Int64\(\-26\) \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 50 + + 88 * - col2 * - + col1 AS col2, - 26 * + ( + - col2 ) AS col2 FROM tab1 AS cor0 +---- +118222 +1534 +1768 +2496 +25910 +281198 query I rowsort label-1200 SELECT DISTINCT - CAST ( - 66 AS INTEGER ) AS col2 FROM tab0 AS cor0 @@ -7537,8 +7611,11 @@ SELECT col0 * + + col2, - 25 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col2" at position 0 and "Int64\(\-86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 32 AS col2, - 86 AS col2 FROM tab0 +---- +-32 +-86 query II rowsort label-1239 SELECT DISTINCT - COUNT ( * ), 61 AS col0 FROM tab1 @@ -7548,8 +7625,10 @@ SELECT DISTINCT - COUNT ( * ), 61 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to ebba8e86e91cf61693f1ab18acbe9378 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT col0 col2, + col1 AS col2, + + col1 * + - col2 AS col2 FROM tab2 AS cor0 +---- +9 values hashing to f067c4684d24b7ebb620408df14aa241 query II rowsort SELECT col2 col2, + col2 AS col1 FROM tab2 AS cor0 @@ -7585,8 +7664,15 @@ SELECT - - COUNT ( col0 ) AS col2 FROM tab2 cor0 # Datafusion - Expected - 68 # Datafusion - Expected - -5 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, col2 AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +59 +68 +96 query I rowsort label-1246 SELECT DISTINCT + - COUNT ( ALL + col2 ) FROM tab0 AS cor0 @@ -7696,8 +7782,15 @@ SELECT DISTINCT + COUNT ( ALL - 35 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 5218 # Datafusion - Expected - -71 # Datafusion - Expected - 6007 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \- cor0\.col0 \+ Int64\(\-5\) AS col2" at position 0 and "cor0\.col2 \* Int64\(87\) \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 25 - col0 + + - 5 AS col2, col2 * + 87 + + col0 AS col2 FROM tab1 AS cor0 +---- +-31 +-65 +-71 +5218 +6007 +8403 query III rowsort SELECT * FROM tab1 AS cor0 WHERE - 71 * - 6 <= NULL @@ -8358,8 +8451,15 @@ SELECT DISTINCT * FROM tab0 WHERE + col2 BETWEEN - + 31 * col0 AND NULL # Datafusion - Expected - 91 # Datafusion - Expected - -410 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(\-82\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * - 82 col2, col0 AS col2 FROM tab1 AS cor0 +---- +-1148 +-3854 +-410 +51 +85 +91 query I rowsort SELECT DISTINCT + col1 - - - 87 col0 FROM tab0 AS cor0 @@ -10161,8 +10261,9 @@ SELECT - - 84 / - + col2 + + col2 AS col2 FROM tab2 AS cor0 57 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(90\)\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 90 AS col1, 64 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL +---- query I rowsort SELECT + col1 FROM tab2 WHERE - 46 > col1 @@ -10379,8 +10480,15 @@ SELECT DISTINCT 74 * - col2 + + col1 * - col0 FROM tab0 # Datafusion - Expected - -96 # Datafusion - Expected - 77 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col2, - 96 col2 FROM tab2 +---- +-96 +-96 +-96 +51 +67 +77 query II rowsort label-1716 SELECT 31 AS col1, 12 * COUNT ( * ) AS col2 FROM tab1 @@ -11263,8 +11371,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col0, ( - - ( MAX ( ALL 0 ) ) ) AS col0 FROM tab1 +---- +-3 +0 query II rowsort SELECT 18 * - col1 * col0 col1, - col1 AS col0 FROM tab0 @@ -11288,8 +11399,15 @@ SELECT ALL + 19 * + - COUNT ( * ) FROM tab1 # Datafusion - Expected - 58 # Datafusion - Expected - 5874 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \+ cor0\.col1 \* cor0\.col1 AS col1" at position 0 and "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 + col1 * col1 col1, 58 col1 FROM tab2 AS cor0 +---- +2546 +4434 +58 +58 +58 +5874 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * - 90 * - + 1 / - col0 * + + col0 NOT IN ( - col0 * + - col1 / + ( col2 ) * col0 + - 16 * - 37 ) @@ -11504,8 +11622,11 @@ SELECT + 7 * - COUNT ( * ) col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- avg\(CAST\(cor0\.col2 AS Int32\)\)\) AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - + AVG ( CAST ( + col2 AS INTEGER ) ) AS INTEGER ) AS col2, ( + - COUNT ( * ) ) / COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +-1 +-40 query III rowsort SELECT * FROM tab2 WHERE + 58 + + ( col2 ) BETWEEN + 29 * + ( col2 ) AND NULL @@ -11999,8 +12120,15 @@ SELECT ALL - 36 * - - SUM ( col2 ) * + COUNT ( * ) * + COUNT ( * ) AS col0 FROM # Datafusion - Expected - -59 # Datafusion - Expected - 91 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, - col2 AS col2 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +51 +85 +91 query I rowsort SELECT + col2 FROM tab0 AS cor0 WHERE ( + 55 BETWEEN - + 39 + - col1 * + 92 / + col2 AND - - col1 ) @@ -12244,8 +12372,15 @@ SELECT DISTINCT - + 60 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 0 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) / \(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( col2 ) / + ( + + ( - + col1 ) ) AS col0, col2 AS col0 FROM tab2 AS cor0 +---- +0 +0 +0 +23 +40 +58 query I rowsort label-2031 SELECT DISTINCT MIN ( ALL + + col2 ) AS col1 FROM tab1 @@ -12276,8 +12411,11 @@ SELECT ALL + col1 - + col2 * 7 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 AS col2, + COUNT ( * ) col2 FROM tab0 WHERE NULL IS NULL +---- +3 +64 query I rowsort SELECT ALL + 18 + + col1 AS col2 FROM tab1 @@ -12465,8 +12603,9 @@ SELECT DISTINCT + 79 + - 42 FROM tab0 37 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, - 10 AS col0 FROM tab2 WHERE - 21 + col1 IS NULL +---- query I rowsort label-2068 SELECT - 12 + COUNT ( DISTINCT 76 ) FROM tab2 @@ -15268,8 +15407,11 @@ SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \+ \(\- min\(\(\- cor0\.col0\)\)\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 20 + - MIN ( - col0 ) AS col0, 35 AS col0 FROM tab2 AS cor0 +---- +35 +95 query I rowsort label-2529 SELECT ALL - + 37 - + MAX ( 56 ) AS col2 FROM tab1 AS cor0 @@ -15353,8 +15495,15 @@ SELECT ALL + 36 * - ( - 30 ) FROM tab1 AS cor0 # Datafusion - Expected - 2499 # Datafusion - Expected - -77 # Datafusion - Expected - 2509 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(\-53\) \+ cor0\.col1 \+ \(\- Int64\(\-35\)\) \* Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 col2, - 53 + + col1 + - - 35 * + 71 AS col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +2483 +2499 +2509 query I rowsort SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND - col1 @@ -15632,8 +15781,15 @@ SELECT DISTINCT 76 - - 10 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - -75 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(23\) / Int64\(\-88\) \* Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col1, 23 / - 88 * + 99 AS col1 FROM tab2 AS cor0 WHERE NOT col1 * + - ( col0 ) IN ( + col0 ) +---- +-46 +-64 +-75 +0 +0 +0 query II rowsort SELECT + col1 * 79 + - col0 AS col2, + col1 FROM tab2 AS cor0 @@ -15705,8 +15861,11 @@ SELECT DISTINCT + col2 * - col0, - col1 AS col1 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 col0" at position 0 and "\(\- count\(Int64\(8\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( + col2 ) AS col0, - COUNT ( 8 ) AS col0 FROM tab2 AS cor0 +---- +-3 +121 query I rowsort label-2597 SELECT 19 / + + col1 AS col2 FROM tab1 @@ -16775,8 +16934,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE ( 20 ) IS NOT NULL # Datafusion - Expected - 7 # Datafusion - Expected - NULL # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, + 7 AS col0 FROM tab2 AS cor0 +---- +7 +7 +7 +NULL +NULL +NULL query II rowsort label-2778 SELECT DISTINCT - 77, - CAST ( NULL AS INTEGER ) / + - col0 AS col2 FROM tab2 AS cor0 @@ -17988,8 +18154,11 @@ 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\(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\. +query II valuesort SELECT ( COUNT ( * ) ), COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 +---- +9 +9 query I rowsort label-2982 SELECT + ( COUNT ( * ) ) * - 98 FROM tab1 @@ -18169,8 +18338,15 @@ SELECT + COUNT ( * ) / - - 60 FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - 76 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 AS col2, col0 AS col2 FROM tab2 +---- +46 +64 +75 +76 +76 +76 query I rowsort label-3013 SELECT DISTINCT + - COUNT ( * ) FROM tab0 AS cor0 WHERE ( + 5 ) IS NULL @@ -18184,8 +18360,15 @@ SELECT DISTINCT + - COUNT ( * ) FROM tab0 AS cor0 WHERE ( + 5 ) IS NULL # Datafusion - Expected - 69 # Datafusion - Expected - 96 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, 69 AS col0 FROM tab1 AS cor0 +---- +59 +68 +69 +69 +69 +96 query II rowsort SELECT - 91 AS col1, - 23 FROM tab2 AS cor0 WHERE NOT NULL < col0 @@ -18855,8 +19038,15 @@ SELECT ALL 58 AS col2 FROM tab1 WHERE NOT ( + - col0 * + ( - ( col2 ) ) + 47 * - # Datafusion - Expected - -136 # Datafusion - Expected - 96 # Datafusion - Expected - -192 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "Int64\(\-2\) \* tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + col2 ) AS col1, - 2 * + col2 AS col1 FROM tab1 +---- +-118 +-136 +-192 +59 +68 +96 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + - col0 * + col2 + - col2 AND ( col1 ) @@ -19336,8 +19526,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab1 cor0 +---- +-3 +-3 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < 48 + - - col2 @@ -19494,8 +19687,15 @@ NULL # Datafusion - Expected - 77 # Datafusion - Expected - 136 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ Int64\(61\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 + + + 61 AS col2, + col1 AS col2 FROM tab2 +---- +107 +125 +136 +51 +67 +77 query I rowsort SELECT ALL + 25 + - + col0 FROM tab1 @@ -19638,8 +19838,15 @@ SELECT col0, + 48 FROM tab0 AS cor0 WHERE NULL IS NULL # Datafusion - Expected - 355 # Datafusion - Expected - NULL # Datafusion - Expected - 373 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* tab2\.col2 \+ Int64\(20\) AS col0" at position 0 and "tab2\.col2 \- Int64\(\-33\) \* \(\- Int64\(\-12\)\) \+ Int64\(\-81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col2 + + + 20 AS col0, + col2 - - 33 * - - 12 + - 81 AS col0 FROM tab2 +---- +338 +355 +373 +NULL +NULL +NULL query III rowsort label-3261 SELECT * FROM tab1 WHERE NOT - - CAST ( + col1 AS INTEGER ) * + 79 - col2 * col0 * - col2 * - 83 + + 51 = NULL @@ -19961,8 +20168,15 @@ SELECT col1 + col0 - ( + col0 ) AS col1 FROM tab0 # Datafusion - Expected - -1 # Datafusion - Expected - 145 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ Int64\(98\) AS col0" at position 0 and "tab1\.col2 / \(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + 98 AS col0, + col2 / - col2 AS col0 FROM tab1 +---- +-1 +-1 +-1 +103 +112 +145 query II rowsort SELECT - ( + col1 ) + - - ( col2 ), + col2 * - col2 AS col1 FROM tab2 @@ -20323,8 +20537,15 @@ SELECT DISTINCT - 74 * + - 22 FROM tab0 # Datafusion - Expected - 83 # Datafusion - Expected - 65 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 65 AS col1, 83 AS col1 FROM tab1 AS cor0 +---- +65 +65 +65 +83 +83 +83 query I rowsort label-3374 SELECT + CAST ( 4 AS INTEGER ) FROM tab2 cor0 @@ -21805,8 +22026,15 @@ SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE NOT ( NOT 9 + - + ( col0 ) IS NUL # Datafusion - Expected - -461 # Datafusion - Expected - 66 # Datafusion - Expected - -750 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "\(\- tab1\.col1\) \* tab1\.col0 \+ Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 66 AS col1, - col1 * col0 + - 36 AS col1 FROM tab1 +---- +-4313 +-461 +-750 +66 +66 +66 query I rowsort label-3619 SELECT MIN ( + 51 ) AS col0 FROM tab0 cor0 @@ -22025,8 +22253,15 @@ SELECT ALL COUNT ( + + col1 ) col1 FROM tab0 # Datafusion - Expected - 27 # Datafusion - Expected - -66 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 66 AS col2, 27 AS col2 FROM tab2 +---- +-66 +-66 +-66 +27 +27 +27 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - - 21 - + + col1 <> col0 @@ -23657,8 +23892,15 @@ SELECT ALL + col0 + 57 + + col2 - - col0 + - col2 + + + 25 * - ( 98 ) FROM tab1 # Datafusion - Expected - 95 # Datafusion - Expected - -92 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col1" at position 0 and "Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( ( - 92 ) ) AS col1, + 95 col1 FROM tab2 AS cor0 WHERE NULL IS NULL +---- +-92 +-92 +-92 +95 +95 +95 query I rowsort SELECT DISTINCT + + 68 * + col0 + - col2 + 42 FROM tab0 AS cor0 @@ -24932,8 +25174,15 @@ SELECT ALL - col0 / - + 18 FROM tab0 # Datafusion - Expected - 55 # Datafusion - Expected - 48 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 AS col2, + 55 AS col2 FROM tab1 +---- +48 +48 +48 +55 +55 +55 query I rowsort SELECT 96 * - col1 AS col0 FROM tab1 @@ -24971,8 +25220,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 22 AS col1, + 74 + - + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( NOT ( + col0 * + 51 * 29 - col2 + col2 ) BETWEEN 14 * - col2 AND NULL ) +---- +-22 +74 query I rowsort SELECT - col0 + - col2 - col1 FROM tab1 cor0 @@ -25105,8 +25357,15 @@ SELECT ALL col0 + 45 AS col1 FROM tab1 # Datafusion - Expected - 51 # Datafusion - Expected - 6802 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ tab1\.col0 \* Int64\(74\) AS col2" at position 0 and "Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 + col0 * + 74 AS col2, + 51 AS col2 FROM tab1 +---- +3870 +51 +51 +51 +6349 +6802 query III rowsort SELECT * FROM tab1 WHERE NOT + col2 + + ( - ( col0 ) ) IS NULL @@ -25193,8 +25452,9 @@ SELECT DISTINCT * FROM tab1 WHERE - col1 < col0 9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col2" at position 0 and "tab1\.col0 \+ tab1\.col2 \+ Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, col0 + + + col2 + 6 AS col2 FROM tab1 WHERE NOT NULL IS NULL +---- query III rowsort SELECT ALL * FROM tab0 WHERE + + col0 + + + col2 <> - col0 + - - 77 + - col2 @@ -25564,8 +25824,15 @@ SELECT DISTINCT + MIN ( ALL - 86 ) AS col1 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - -73 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 73 AS col1, + col2 AS col1 FROM tab1 +---- +-73 +-73 +-73 +59 +68 +96 query III rowsort SELECT * FROM tab2 WHERE NOT - 72 IS NOT NULL @@ -27081,8 +27348,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col1 + - col2 ) IS NULL # Datafusion - Expected - 65 # Datafusion - Expected - 5625 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * - - col0 AS col0, 65 AS col0 FROM tab2 AS cor0 +---- +2116 +4096 +5625 +65 +65 +65 query I rowsort label-4487 SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + col1 + + col2 AS col1 FROM tab1 cor0 @@ -27255,8 +27529,15 @@ SELECT + col0 * + - 50 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / cor0\.col1 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 / + col1 AS col1, col0 AS col1 FROM tab0 cor0 +---- +0 +15 +4 +87 +97 +97 query I rowsort label-4517 SELECT - col1 / + + 76 FROM tab2 cor0 @@ -28995,8 +29276,15 @@ SELECT ALL + col1 AS col1, col2 * - col1 AS col0 FROM tab2 # Datafusion - Expected - 25 # Datafusion - Expected - 90 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 AS col2, + 25 AS col2 FROM tab1 +---- +25 +25 +25 +90 +90 +90 query I rowsort label-4794 SELECT + + ( - MAX ( DISTINCT - - col1 ) ) FROM tab2 AS cor0 @@ -30588,8 +30876,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \+ sum\(Int64\(24\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 AS col1, ( - COUNT ( * ) ) + + SUM ( ALL + 24 ) AS col1 FROM tab0 WHERE NOT + + col1 IS NOT NULL +---- +59 +NULL query II rowsort SELECT + col2, - col0 + + col2 AS col0 FROM tab0 @@ -30608,8 +30899,15 @@ SELECT + col2, - col0 + + col2 AS col0 FROM tab0 # Datafusion - Expected - 870 # Datafusion - Expected - 97 # Datafusion - Expected - 9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "tab0\.col0 \* tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, col0 * col2 AS col1 FROM tab0 +---- +15 +705 +87 +870 +9603 +97 query I rowsort label-5068 SELECT DISTINCT + MIN ( + - 44 ) FROM tab0 @@ -30648,8 +30946,11 @@ SELECT + col2 / + + col1 + + col0 + col1 FROM tab2 WHERE NOT + col1 * - + col0 I # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-2\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - COUNT ( * ) + - 2 - - COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 +---- +-2 +9 query I rowsort SELECT DISTINCT col2 * + + col2 + + ( - col1 ) AS col1 FROM tab2 @@ -31005,8 +31306,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * + 12 AS col0, - SUM ( ALL + + col0 ) AS col0 FROM tab1 +---- +-227 +36 query I rowsort SELECT ALL + col1 + + 74 + - col2 AS col1 FROM tab2 WHERE NOT - col1 IS NULL @@ -31084,8 +31388,11 @@ SELECT ALL + col2 AS col1, - col0 * + col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, 31 col0 FROM tab0 AS cor0 +---- +3 +31 query I rowsort SELECT - 77 - + 6 + - col1 + col1 * 23 + - + 51 col1 FROM tab0 cor0 @@ -31175,8 +31482,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - + col2 ) - col2 IN ( - - CAST # Datafusion - Expected - -40 # Datafusion - Expected - -75 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col0 AS Int32\)\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - CAST ( col0 AS INTEGER ) AS col1, - col2 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-46 +-58 +-64 +-75 query II rowsort label-5160 SELECT ALL COUNT ( ALL + + col1 ) AS col2, + COUNT ( ALL - - 96 ) AS col1 FROM tab2 AS cor0 @@ -31671,8 +31985,15 @@ SELECT - col2 + - + col2 col0 FROM tab1 # Datafusion - Expected - 203228 # Datafusion - Expected - 2880 # Datafusion - Expected - 2300 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) \* Int64\(\-90\) AS col0" at position 0 and "cor0\.col1 \* cor0\.col1 \* Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 32 * + - 90 col0, col1 * + col1 * + 92 AS col0 FROM tab1 AS cor0 +---- +18032 +203228 +2300 +2880 +2880 +2880 query II rowsort SELECT DISTINCT col1, col0 * - col1 FROM tab1 @@ -32661,8 +32982,15 @@ SELECT 40 * + + 11 + - 97 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 10 # Datafusion - Expected - -97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col2\) \* \(\- cor0\.col2\) / cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, - col2 * - + col2 / col2 AS col1 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +10 +47 +99 query I rowsort SELECT + col1 - + + 89 col2 FROM tab2 AS cor0 @@ -35231,8 +35559,15 @@ SELECT 46 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NU # Datafusion - Expected - NULL # Datafusion - Expected - -599 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ \(\- tab1\.col0\) \* Int64\(7\) \- Int64\(53\) AS col0" at position 0 and "tab1\.col2 \+ \(\- CAST\(NULL AS Float64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT col0 + - + col0 * + 7 - + 53 AS col0, col2 + + - CAST ( NULL AS FLOAT8 ) AS col0 FROM tab1 +---- +-359 +-563 +-599 +NULL +NULL +NULL query II rowsort SELECT DISTINCT - col1, + col1 AS col0 FROM tab1 cor0 WHERE NOT - col0 IS NULL @@ -35344,8 +35679,15 @@ SELECT ALL - col0 - + + col1 + - 75 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 86 # Datafusion - Expected - 42 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + - - col1 AS col0, 86 AS col0 FROM tab0 AS cor0 +---- +162 +2 +42 +86 +86 +86 query I rowsort SELECT DISTINCT - 34 col1 FROM tab2 AS cor0 @@ -35645,8 +35987,11 @@ SELECT ALL + col1 * + + ( - 8 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col0" at position 0 and "Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 73 AS col0, + ( + 37 ) col0 FROM tab1 cor0 +---- +-73 +37 query II rowsort SELECT DISTINCT + 11 + + - 81 - + ( 69 ), + col1 AS col0 FROM tab2 AS cor0 @@ -35921,8 +36266,10 @@ SELECT - 81 * + + COUNT ( * ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 419df0c710dc585928958a051dc15f63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ tab1\.col2 / tab1\.col1 AS col2" at position 1 and "tab1\.col0 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) AS col1, col2 + col2 / + col1 AS col2, col0 AS col2 FROM tab1 +---- +9 values hashing to 096ddee4cdf7282cad84657efb1eba4b query I rowsort SELECT + col2 * + - col1 + + col2 FROM tab2 AS cor0 @@ -36298,8 +36645,10 @@ SELECT ALL + + COUNT ( ALL + - col0 ) * COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 780b5dd6a751efa86d0f189e6ffbae17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(94\) AS col2" at position 0 and "Int64\(43\) \+ Int64\(\-3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col2 * 94 col2, ( + + 43 ) + - 3 AS col2, - col2 FROM tab2 AS cor0 +---- +9 values hashing to c8017c028506262c71f5d84d55d481a9 query I rowsort label-6013 SELECT DISTINCT - 24 * 68 * - ( COUNT ( * ) ) / + COUNT ( * ) + + COUNT ( DISTINCT + 70 ) + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1 @@ -37582,8 +37931,15 @@ SELECT * FROM tab1 WHERE NOT + col1 > 90 # Datafusion - Expected - -14 # Datafusion - Expected - 26 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "tab2\.col0 \+ Int64\(\-9\) \- tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 26 AS col1, + col0 + + ( - 9 ) - col1 AS col1 FROM tab2 +---- +-1 +-14 +-22 +26 +26 +26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 @@ -37592,8 +37948,15 @@ SELECT + 26 AS col1, + col0 + + ( - 9 ) - col1 AS col1 FROM tab2 # Datafusion - Expected - 7794 # Datafusion - Expected - 69 # Datafusion - Expected - 8349 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col1" at position 0 and "cor0\.col2 \- Int64\(\-91\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 69 AS col1, + col2 - - 91 * + col0 AS col1 FROM tab1 AS cor0 +---- +4737 +69 +69 +69 +7794 +8349 query II rowsort SELECT - col2 AS col2, col2 * + 74 col0 FROM tab0 AS cor0 @@ -38033,8 +38396,15 @@ SELECT * FROM tab0 cor0 WHERE NOT + col2 >= + col2 # Datafusion - Expected - -47 # Datafusion - Expected - 99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, - col2 AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +10 +47 +99 query I rowsort SELECT ALL col0 * 80 col0 FROM tab0 AS cor0 @@ -38068,8 +38438,15 @@ SELECT - 73 * - + col0 FROM tab0 cor0 # Datafusion - Expected - -1829 # Datafusion - Expected - -90 # Datafusion - Expected - -2108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) / \(\- cor0\.col2\) \+ \(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 \* Int64\(\-31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col0 / - col2 + - col0 AS col1, + col2 * + - 31 AS col1 FROM tab1 AS cor0 +---- +-1829 +-2108 +-2976 +-51 +-84 +-90 query I rowsort SELECT + - col1 col1 FROM tab0 WHERE NOT NULL IS NOT NULL @@ -38513,8 +38890,15 @@ SELECT DISTINCT + col2 * + col1 AS col2 FROM tab1 AS cor0 WHERE + 59 <= - col1 - # Datafusion - Expected - 1772 # Datafusion - Expected - -40 # Datafusion - Expected - 2042 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col0" at position 0 and "cor0\.col1 \* \(\- Int64\(\-27\)\) \+ Int64\(\-37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 40 AS col0, + ( col1 ) * - - 27 + - 37 AS col0 FROM tab2 AS cor0 +---- +-40 +-40 +-40 +1340 +1772 +2042 query I rowsort label-6378 SELECT ALL - - 81 * - + COUNT ( * ) AS col0 FROM tab0 AS cor0 @@ -39095,8 +39479,15 @@ SELECT + COUNT ( * ) * + 47 AS col2 FROM tab2 cor0 # Datafusion - Expected - -3040 # Datafusion - Expected - 5092 # Datafusion - Expected - -4408 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col1 \* cor0\.col0 AS col1" at position 0 and "\(\- CAST\(cor0\.col2 AS Int32\)\) \* Int64\(75\) \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 + + col1 * col0 col1, - CAST ( + col2 AS INTEGER ) * 75 + - col2 AS col1 FROM tab2 AS cor0 +---- +-1748 +-3040 +-4408 +2397 +5005 +5092 query I rowsort label-6474 SELECT DISTINCT COUNT ( * ) + - ( + - 69 ) + ( - + CAST ( NULL AS INTEGER ) ) FROM tab1 @@ -39284,8 +39675,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + COUNT ( * ) ) AS col0, 88 AS col0 FROM tab1 cor0 +---- +-3 +88 query I rowsort label-6505 SELECT + - 37 + - + COUNT ( * ) FROM tab1 AS cor0 @@ -39446,8 +39840,15 @@ SELECT + MAX ( + - 88 ) FROM tab2 cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col0, + col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query III rowsort SELECT * FROM tab1 AS cor0 WHERE col0 * - col0 * + - col2 > - + 48 @@ -39513,8 +39914,11 @@ SELECT ALL ( + 48 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 61 AS col0, + COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +-61 +3 query I rowsort SELECT ALL + col1 * + - col1 + - col2 FROM tab0 cor0 @@ -39537,8 +39941,15 @@ SELECT ALL - 31 * + - ( + + col1 ) AS col0 FROM tab1 # Datafusion - Expected - 15 # Datafusion - Expected - 2 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 / tab0\.col2 AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 / + + col2 AS col1, col0 AS col1 FROM tab0 +---- +0 +1 +15 +2 +87 +97 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 @@ -39547,8 +39958,15 @@ SELECT col1 / + + col2 AS col1, col0 AS col1 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col2" at position 0 and "\(\- tab2\.col1\) \+ CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT - ( + + col2 ) AS col2, - col1 + CAST ( NULL AS FLOAT8 ) AS col2 FROM tab2 +---- +-23 +-40 +-58 +NULL +NULL +NULL query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT NULL = + col1 - - col1 * + col0 + + + 5 @@ -40190,8 +40608,11 @@ SELECT MIN ( - - 60 ) AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - -103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col1" at position 0 and "sum\(\(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 21 AS col1, ( + SUM ( ALL - + col1 ) ) AS col1 FROM tab0 AS cor0 +---- +-103 +21 query II rowsort SELECT + + 90 AS col1, + col0 + - 5 FROM tab1 AS cor0 @@ -40544,8 +40965,11 @@ SELECT DISTINCT 20 * 70 AS col0, ( - 52 ) col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT cor0\.col1\)\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MAX ( DISTINCT + col1 ) AS col0, 8 AS col0 FROM tab2 AS cor0 +---- +-77 +8 query II rowsort SELECT + - col1, - 50 - - + 79 col0 FROM tab0 AS cor0 @@ -40920,8 +41344,11 @@ SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - 23 IS NOT # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +-3 +3 query II rowsort SELECT DISTINCT - + col0 * 3 AS col1, - col0 * - col1 AS col2 FROM tab0 AS cor0 @@ -41533,8 +41960,9 @@ SELECT COUNT ( + + col0 ) FROM tab1 cor0 3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 col2, col1 AS col2 FROM tab0 AS cor0 WHERE col2 IS NULL +---- query II rowsort label-6872 SELECT + + COUNT ( * ) AS col1, - ( + COUNT ( * ) ) FROM tab1 AS cor0 @@ -41554,8 +41982,15 @@ SELECT ALL - MIN ( col2 ) col2 FROM tab0 AS cor0 # Datafusion - Expected - -2448 # Datafusion - Expected - NULL # Datafusion - Expected - -3456 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(36\) \* \(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) AS col2, 36 * - col2 AS col2 FROM tab1 +---- +-2124 +-2448 +-3456 +NULL +NULL +NULL query I rowsort SELECT + - col0 * + - ( + 96 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL @@ -41746,8 +42181,15 @@ SELECT - 98 AS col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN col0 / col2 AND NULL # Datafusion - Expected - 150 # Datafusion - Expected - -455 # Datafusion - Expected - 150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* Int64\(\-35\) AS col2" at position 0 and "Int64\(98\) \+ Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 * - 35 col2, 98 + + 52 AS col2 FROM tab2 AS cor0 +---- +-455 +-455 +-455 +150 +150 +150 query I rowsort label-6906 SELECT ALL - ( - - COUNT ( * ) ) AS col1 FROM tab2 AS cor0 @@ -43100,8 +43542,11 @@ SELECT 6 + + COUNT ( + 73 ) FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ count\(\(\- cor0\.col1\)\) AS col1" at position 0 and "Int64\(27\) \+ Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 92 + ( COUNT ( ( - + ( col1 ) ) ) ) col1, 27 + 16 AS col1 FROM tab1 AS cor0 +---- +43 +95 query I rowsort SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT - 54 * + col1 * + col0 - col0 IN ( - 97 ) @@ -43495,8 +43940,15 @@ SELECT * FROM tab0 WHERE col0 / - 92 * + col0 IS NOT NULL # Datafusion - Expected - -21 # Datafusion - Expected - 34 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \+ tab0\.col1 AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 + col1 AS col0, - col1 AS col0 FROM tab0 +---- +-1 +-21 +-81 +-98 +11 +34 query I rowsort SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL @@ -43930,8 +44382,11 @@ SELECT * FROM tab2 WHERE NOT + col0 + - col0 >= col1 * col1 / col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 199 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(tab0\.col0\) AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( + col0 ) AS col2, + 31 AS col2 FROM tab0 +---- +199 +31 query I rowsort SELECT ALL 54 FROM tab2 WHERE NOT col2 IS NOT NULL @@ -44527,8 +44982,11 @@ SELECT - 81 + - col1 * + + col0 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + + COUNT ( * ) ) AS col0, + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 +---- +3 +NULL query I rowsort label-7364 SELECT + 63 + + SUM ( ALL - 69 ) AS col1 FROM tab2 AS cor0 @@ -44723,8 +45181,15 @@ SELECT col2, col0 AS col2, col2 + + col2 * + + col1 * - - col2 FROM tab0 # Datafusion - Expected - 42 # Datafusion - Expected - 873 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* tab0\.col0 \+ Int64\(8\) \* tab0\.col0 AS col2" at position 0 and "Int64\(21\) \+ tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * col0 + + 8 * col0 AS col2, + 21 + col1 col2 FROM tab0 +---- +102 +1335 +22 +2523 +42 +873 query I rowsort SELECT DISTINCT 90 + - + 48 + - + col1 AS col0 FROM tab2 @@ -45269,8 +45734,15 @@ NULL # Datafusion - Expected - 99 # Datafusion - Expected - 3 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) / cor0\.col0 AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 53 / + col0 AS col2, 99 AS col2 FROM tab0 AS cor0 +---- +0 +0 +3 +99 +99 +99 query IIIIII rowsort SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND NULL @@ -45326,8 +45798,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col0 # Datafusion - Expected - -10 # Datafusion - Expected - 97 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, - col2 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +15 +87 +97 query I rowsort label-7499 SELECT - - 98 / + + col0 AS col2 FROM tab1 AS cor0 @@ -46194,8 +46673,11 @@ SELECT DISTINCT - 42 * 58 + + 52 FROM tab0, tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, ( - - COUNT ( * ) ) AS col2 FROM tab2, tab1 AS cor0 +---- +9 +9 query I rowsort SELECT ALL - col2 + + col1 + + - col2 * + 19 AS col2 FROM tab0 @@ -46314,8 +46796,15 @@ SELECT 69 * COUNT ( * ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -1 # Datafusion - Expected - 96 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col2\) / cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, - col2 / + col1 AS col1 FROM tab1 cor0 +---- +-1 +-11 +-6 +59 +68 +96 query II rowsort SELECT DISTINCT + - 20, col1 * + col1 + + col0 + col2 AS col0 FROM tab1 AS cor0 @@ -46492,8 +46981,10 @@ SELECT DISTINCT - + 70 AS col0, col1 AS col1 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c0c2087c9ca73befd22b2c055c2eb24e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col0, col2 * + + 43 * + col1 AS col1, col0 AS col0 FROM tab0 AS cor0 +---- +9 values hashing to f82eb8c1e030c34dcf2208cda1209cfc query I rowsort label-7683 SELECT + 13 / + col1 + + - 67 * + col2 + + col2 / - col2 FROM tab2 AS cor0 @@ -46538,8 +47029,11 @@ SELECT ALL + 22 * - ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE - col0 - - 35 <> # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 0 AS col1, + COUNT ( * ) AS col1 FROM tab0 +---- +0 +3 query I rowsort label-7691 SELECT DISTINCT + 76 AS col2 FROM tab0 WHERE NOT + CAST ( - ( - - 72 ) AS INTEGER ) NOT BETWEEN + - 41 AND ( NULL ) @@ -46791,8 +47285,11 @@ SELECT ALL - COUNT ( * ) + - + 30 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(\(\- cor0\.col1\)\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - MAX ( - col1 ) ) col2, COUNT ( * ) col2 FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN NULL AND + col0 +---- +0 +NULL query I rowsort SELECT DISTINCT - + col0 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL @@ -46877,8 +47374,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -227 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- cor0\.col0\)\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( ALL - + col0 ) col2, 87 AS col2 FROM tab1 AS cor0 +---- +-227 +87 query I rowsort SELECT + col0 + col0 - col1 FROM tab1 @@ -47280,8 +47780,15 @@ SELECT + col2 + - - ( - col2 ) AS col2, 39 + col0 FROM tab1 AS cor0 WHERE + col2 # Datafusion - Expected - -18 # Datafusion - Expected - NULL # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \+ tab1\.col0 \+ tab1\.col0 / \(\- CAST\(NULL AS Int32\)\) / Int64\(\-66\) AS col1" at position 0 and "Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 51 + + ( col0 ) + + col0 / - CAST ( NULL AS INTEGER ) / - 66 AS col1, - 18 AS col1 FROM tab1 +---- +-18 +-18 +-18 +NULL +NULL +NULL query I rowsort label-7811 SELECT 30 * 16 + COUNT ( * ) AS col0 FROM tab1 @@ -48019,8 +48526,11 @@ SELECT - 15 * - + 99 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- cor0\.col1\)\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MIN ( - col1 ) col2, + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 +---- +47 +NULL query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT ( - 14 ) <> ( + col2 / - col2 ) ) @@ -48362,8 +48872,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col2, col2 AS col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query II rowsort SELECT col1 AS col1, 20 FROM tab1 @@ -48548,8 +49065,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 AS col0, - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 +---- +-9 +99 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) >= col2 * - col2 / col2 * col2 * ( + col0 ) @@ -48968,8 +49488,15 @@ SELECT ALL * FROM tab1 WHERE NOT ( - 13 NOT BETWEEN ( 33 + - + CAST ( NULL AS IN # Datafusion - Expected - -47 # Datafusion - Expected - -99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "\(\- cor0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2, - col2 FROM tab0 cor0 +---- +-10 +-10 +-47 +-47 +-99 +-99 query I rowsort label-8093 SELECT CAST ( - CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) / + COUNT ( ALL + 37 ) FROM tab1 cor0 @@ -52916,8 +53443,15 @@ SELECT 14 / + col1 FROM tab2 # Datafusion - Expected - 27 # Datafusion - Expected - 0 # Datafusion - Expected - 27 -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\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 36 / 98 AS col1, + 27 AS col1 FROM tab0 +---- +0 +0 +0 +27 +27 +27 query I rowsort label-8727 SELECT MAX ( DISTINCT + col1 ) FROM tab1 WHERE NOT - 5 * - col2 * 51 * + + col1 IS NOT NULL @@ -53007,8 +53541,15 @@ SELECT col1 + - + 26 + + + ( col2 ) FROM tab0 AS cor0 # Datafusion - Expected - -2079 # Datafusion - Expected - 58 # Datafusion - Expected - -1809 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col1 \* Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, + col1 * - 27 AS col0 FROM tab2 AS cor0 +---- +-1377 +-1809 +-2079 +23 +40 +58 query I rowsort SELECT ALL + col0 + + 69 AS col1 FROM tab2 @@ -54137,8 +54678,15 @@ SELECT DISTINCT + col2 * 26 col1 FROM tab2 # Datafusion - Expected - 14 # Datafusion - Expected - 9461 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* Int64\(86\) \+ \(\- tab1\.col0\) \+ Int64\(\-86\) \* \(\- tab1\.col2\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 * + 86 + - col0 + - 86 * - col2 col2, + col1 AS col2 FROM tab1 +---- +10229 +12677 +14 +47 +5 +9461 query I rowsort SELECT - col0 FROM tab0 AS cor0 WHERE NULL BETWEEN 69 AND + - col2 + + + col2 @@ -54318,8 +54866,15 @@ SELECT + col0 AS col0 FROM tab0 WHERE NOT NULL = + 57 # Datafusion - Expected - -85 # Datafusion - Expected - NULL # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col2 \+ CAST\(NULL AS Float64\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT - col0 * col2 + CAST ( NULL AS FLOAT8 ) AS col1, - col0 AS col1 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +NULL +NULL +NULL query I rowsort label-8971 SELECT DISTINCT - + ( - - COUNT ( * ) ) FROM tab2 cor0 @@ -54584,8 +55139,15 @@ SELECT ALL MAX ( DISTINCT - 93 ) FROM tab2 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, + col0 col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT DISTINCT + ( - + 19 ) FROM tab0 AS cor0 @@ -54672,8 +55234,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 WHERE NULL < 1 * - + col0 * col2 +---- +0 +0 query I rowsort label-9026 SELECT + + COUNT ( * ) * + 28 col0 FROM tab1 AS cor0 @@ -55277,13 +55842,22 @@ SELECT - 0 * + col0 AS col0 FROM tab1 # Datafusion - Expected - -4019 # Datafusion - Expected - 25 # Datafusion - Expected - -5558 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col2" at position 0 and "tab2\.col1 \+ tab2\.col0 \* \(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 col2, + col1 + col0 * - col0 AS col2 FROM tab2 +---- +-2065 +-4019 +-5558 +25 +25 +25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c253f75c0b7e41f5f5b3768168649010 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - col1 AS col1, + col1 AS col0, col0 AS col1 FROM tab2 AS cor0 +---- +9 values hashing to 78978d6744745f6b084064dba7bad53a query I rowsort label-9128 SELECT ALL 22 * - - 47 + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) > - 49 @@ -56206,8 +56780,15 @@ SELECT + 20 * + - COUNT ( * ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 83 # Datafusion - Expected - -58 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(6\) \- \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 AS col1, 6 - - col1 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +57 +73 +83 query I rowsort label-9281 SELECT - col1 / + 24 AS col1 FROM tab2 @@ -57775,8 +58356,15 @@ SELECT + ( - + 84 ) * + 60 col2, COUNT ( * ) AS col1 FROM tab0 # Datafusion - Expected - 68 # Datafusion - Expected - 8736 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \* Int64\(\-91\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + col2 ) * + - 91 AS col0, col2 AS col0 FROM tab1 +---- +5369 +59 +6188 +68 +8736 +96 query I rowsort SELECT ALL - col0 FROM tab2 WHERE NOT NULL IS NOT NULL OR ( - + 42 ) IS NOT NULL @@ -57824,8 +58412,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( - + 40 AS INTEGER ) BETWEEN # Datafusion - Expected - -430 # Datafusion - Expected - -81 # Datafusion - Expected - -2021 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 \+ Int64\(\-44\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, + col2 + - 44 * col2 AS col1 FROM tab0 AS cor0 +---- +-1 +-2021 +-21 +-4257 +-430 +-81 query I rowsort SELECT + col0 * + 94 * - col2 FROM tab0 @@ -59532,8 +60127,15 @@ SELECT * FROM tab2 WHERE NOT - col2 + col0 BETWEEN 21 + - + col2 * + 46 AND col0 # Datafusion - Expected - -388 # Datafusion - Expected - -81 # Datafusion - Expected - -1828 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "Int64\(78\) \+ CAST\(Int64\(8\) AS Int32\) \* Int64\(\-3\) \* tab0\.col1 \- Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + + col1 ) col0, 78 + + CAST ( + 8 AS INTEGER ) * - 3 * + col1 - + - 38 AS col0 FROM tab0 WHERE NOT - 55 IS NULL +---- +-1 +-1828 +-21 +-388 +-81 +92 query I rowsort SELECT DISTINCT col2 * 1 FROM tab0 WHERE + + 72 IS NOT NULL @@ -60099,8 +60701,10 @@ SELECT DISTINCT + MIN ( DISTINCT + col0 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to ec54554e7552a0cdaacafd7a4bec04f3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col2" at position 1 and "tab1\.col1 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 12 AS col1, - 73 AS col2, + + col1 AS col2 FROM tab1 +---- +9 values hashing to 3ea2734b2207d424d99526020674d342 query I rowsort SELECT 69 * - + col1 FROM tab1 @@ -60289,8 +60893,10 @@ SELECT + COUNT ( * ) * + COUNT ( * ) col0 FROM tab1, tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 57bb4ceee017351167e71080bb859713 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col0 AS col0, ( - 6 ), + + col0 FROM tab0 +---- +9 values hashing to 61d204126128e4c592d232b458eed926 query I rowsort label-9958 SELECT 75 + COUNT ( * ) AS col2 FROM tab0 @@ -60523,8 +61129,9 @@ SELECT DISTINCT + MAX ( DISTINCT + col1 ) FROM tab1 47 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\)" at position 0 and "\(\- tab0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0, - col0 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) >= NULL +---- query I rowsort label-9998 SELECT ALL + 92 * COUNT ( ALL 19 ) FROM tab1 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_19.slt b/data/sqlite/random/aggregates/slt_good_19.slt index 3776f07..3547064 100644 --- a/data/sqlite/random/aggregates/slt_good_19.slt +++ b/data/sqlite/random/aggregates/slt_good_19.slt @@ -173,8 +173,15 @@ SELECT + col2 FROM tab1 AS cor0 WHERE 82 IS NOT NULL # Datafusion - Expected - 87 # Datafusion - Expected - 81 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, col0 AS col2 FROM tab0 AS cor0 +---- +1 +15 +21 +81 +87 +97 query I rowsort SELECT ALL 43 + col1 * 9 FROM tab0 AS cor0 @@ -1782,8 +1789,11 @@ SELECT * FROM tab1 AS cor0 WHERE NOT 32 / + + col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab2 cor0 +---- +-3 +3 query I rowsort SELECT DISTINCT + 90 + + col0 * col2 FROM tab0 AS cor0 @@ -2597,8 +2607,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 80 ) >= 52 # Datafusion - Expected - 128 # Datafusion - Expected - 1 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / cor0\.col0 AS col2" at position 0 and "cor0\.col2 \+ cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 / + col0 AS col2, + col2 + col1 col2 FROM tab0 AS cor0 +---- +1 +1 +1 +100 +128 +31 query I rowsort label-418 SELECT DISTINCT MAX ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0 @@ -2660,8 +2677,15 @@ SELECT + 51 * - 27 + - col2 * + col0 FROM tab2 AS cor0 # Datafusion - Expected - 5015 # Datafusion - Expected - 46 # Datafusion - Expected - 6188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) / cor0\.col0 \+ cor0\.col1 AS col2" at position 0 and "\(\- \(\- cor0\.col0\)\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 / + col0 + col1 AS col2, - ( - col0 ) * + col2 AS col2 FROM tab1 AS cor0 +---- +13 +4 +46 +4896 +5015 +6188 query I rowsort SELECT DISTINCT 35 * - col1 col0 FROM tab1 AS cor0 @@ -2836,8 +2860,15 @@ SELECT col0 + 84 FROM tab0 AS cor0 # Datafusion - Expected - 33 # Datafusion - Expected - 8 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ \(\- tab0\.col2\) AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 + - col2 AS col1, 33 AS col1 FROM tab0 +---- +-44 +33 +33 +33 +45 +8 query I rowsort SELECT col0 * - col1 * 13 AS col0 FROM tab1 @@ -5039,8 +5070,15 @@ SELECT DISTINCT - CAST ( + - ( + - col1 ) AS INTEGER ) * - 27 AS col1 FROM tab2 # Datafusion - Expected - 81 # Datafusion - Expected - 31 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col1 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 + + + col1 AS col2, + col1 col2 FROM tab0 AS cor0 +---- +1 +100 +128 +21 +31 +81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 @@ -5270,8 +5308,15 @@ SELECT - SUM ( col0 ) / - + COUNT ( * ) FROM tab0 # Datafusion - Expected - 12 # Datafusion - Expected - -5 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, + ( + 12 ) AS col1 FROM tab1 +---- +-14 +-47 +-5 +12 +12 +12 query I rowsort label-857 SELECT 4 * - COUNT ( * ) AS col1 FROM tab0 @@ -5678,8 +5723,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN + 80 AND 12 * - col2 # Datafusion - Expected - 64 # Datafusion - Expected - 4402 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \* cor0\.col0 \+ cor0\.col0 \+ \(\- cor0\.col1\) \+ Int64\(\-14\) \+ cor0\.col2 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col2 * col0 + + col0 + - col1 + - 14 + col2 AS col2, col0 AS col2 FROM tab2 AS cor0 +---- +1062 +2573 +4402 +46 +64 +75 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT - col0 <> + ( + col2 ) @@ -5750,8 +5802,15 @@ SELECT - 47 + 63 + - + col0 FROM tab1 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 97 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col0 AS col0, + 68 AS col0 FROM tab0 AS cor0 +---- +15 +68 +68 +68 +87 +97 query I rowsort SELECT DISTINCT - ( + - col0 ) AS col1 FROM tab0 AS cor0 @@ -5822,8 +5881,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), COUNT ( * ) FROM tab0 cor0 +---- +3 +3 query II rowsort label-945 SELECT ALL - - COUNT ( * ) col0, 18 col1 FROM tab1 AS cor0 @@ -5994,8 +6056,15 @@ SELECT - MAX ( DISTINCT + ( col1 ) ) FROM tab0 AS cor0 WHERE - col0 IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - 51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(51\) AS col2" at position 0 and "\(\- tab2\.col2\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 0 + + + 51 col2, - col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NULL IS NULL +---- +51 +51 +51 +NULL +NULL +NULL query I rowsort label-973 SELECT DISTINCT MAX ( - + 62 ) - - 70 FROM tab1 @@ -6714,8 +6783,15 @@ SELECT DISTINCT * FROM tab0 WHERE + col1 IN ( ( ( - col0 ) ) ) # Datafusion - Expected - 64 # Datafusion - Expected - -21 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 21 col2, + col0 AS col2 FROM tab2 +---- +-21 +-21 +-21 +46 +64 +75 query III rowsort label-1099 SELECT ALL * FROM tab1 WHERE ( - col0 + + - col2 * 9 ) NOT BETWEEN - col2 - + + 20 + + col0 * + col0 * + CAST ( NULL AS INTEGER ) AND NULL @@ -6843,8 +6919,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) 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 II valuesort SELECT ALL + 66 AS col1, + MAX ( - + col0 ) AS col1 FROM tab1 +---- +-51 +66 query III rowsort SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - col0 * + - 37 + - col2 AND + 14 @@ -6940,8 +7019,15 @@ SELECT col0 + + - col2 FROM tab2 AS cor0 WHERE NOT col2 > + col2 # Datafusion - Expected - 3046 # Datafusion - Expected - -30 # Datafusion - Expected - 3852 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col0" at position 0 and "cor0\.col2 \* cor0\.col1 \+ Int64\(\-34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 30 AS col0, + col2 * + col1 + + - 34 AS col0 FROM tab2 cor0 +---- +-30 +-30 +-30 +1139 +3046 +3852 query II rowsort label-1135 SELECT DISTINCT + 76, + 60 + - 6 - COUNT ( * ) AS col2 FROM tab0 cor0 @@ -6985,8 +7071,15 @@ SELECT + - col1 AS col2, - col1 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 col1, + col2 AS col1 FROM tab1 cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT DISTINCT + 34 FROM tab0, tab0 AS cor0 @@ -7040,8 +7133,11 @@ SELECT - col2 / col0 * + col0 * - + col1 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 86 AS col0, 20 AS col0 FROM tab2 +---- +20 +86 query II rowsort label-1150 SELECT - - 19 AS col0, COUNT ( * ) FROM tab2 AS cor0 @@ -7692,8 +7788,15 @@ SELECT ALL col1 - 98, col0 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col1, col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-1259 SELECT MIN ( ALL + 35 ) FROM tab0 AS cor0 @@ -7890,8 +7993,15 @@ SELECT 22 + + + 54 AS col2, - col2 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 46 # Datafusion - Expected - 82 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ cor0\.col2 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 42 + col2 col2, col0 col2 FROM tab2 AS cor0 +---- +100 +46 +64 +65 +75 +82 query II rowsort SELECT ( + col0 ) + + 37 * + 3 * + ( - 96 ) + + col1 col2, col2 AS col0 FROM tab1 AS cor0 @@ -8026,8 +8136,15 @@ SELECT - - 32 FROM tab0 AS cor0 WHERE NOT 16 IN ( - + col0, col2, + - col2, col0 # Datafusion - Expected - 91 # Datafusion - Expected - 96 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, + 91 AS col0 FROM tab1 AS cor0 +---- +59 +68 +91 +91 +91 +96 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 / + col0 + + ( ( - col0 ) ) IS NULL @@ -8260,8 +8377,11 @@ SELECT - ( + + 98 ) + - col1 col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 43 + + + COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 +---- +46 +NULL query I rowsort label-1353 SELECT - 89 + MAX ( ALL 35 ) FROM tab0 @@ -9923,8 +10043,15 @@ SELECT + col0 * + col0 + + CAST ( col2 AS INTEGER ) + + - col0 * + col1 AS col0 # Datafusion - Expected - 110 # Datafusion - Expected - 159 # Datafusion - Expected - 115 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \- \(\- tab1\.col0\) AS col1" at position 0 and "tab1\.col1 \+ tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( col2 ) - - col0 AS col1, + col1 + + col2 AS col1 FROM tab1 +---- +110 +115 +144 +147 +159 +64 query I rowsort SELECT DISTINCT - 14 * + 96 * 12 FROM tab0 AS cor0 @@ -10276,8 +10403,9 @@ SELECT - col0 + + - 8 FROM tab2 -83 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) / \(\- \(\- tab2\.col2\)\) \* \(\- tab2\.col1\) AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 / - - col2 * - col1 col1, - col2 AS col1 FROM tab2 WHERE NULL IS NOT NULL +---- query I rowsort SELECT ALL - - 90 - + col2 col1 FROM tab0 AS cor0 @@ -10959,8 +11087,15 @@ SELECT - ( + col0 ) * - col1 + col2 AS col0 FROM tab0 # Datafusion - Expected - 75 # Datafusion - Expected - -77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \* Int64\(1\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 * + 1 col1, col0 AS col1 FROM tab2 +---- +-51 +-67 +-77 +46 +64 +75 query I rowsort label-1790 SELECT DISTINCT + col0 * 4 / - col1 AS col0 FROM tab0 @@ -12313,8 +12448,11 @@ SELECT - col2 + + 67 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "min\(Int64\(\-68\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, MIN ( - 68 ) AS col1 FROM tab2 WHERE NULL < + + ( - 12 ) +---- +0 +NULL query I rowsort SELECT col2 * + + col1 + ( + 54 ) AS col1 FROM tab2 @@ -13070,8 +13208,15 @@ SELECT - col1 * col0 + - - 33 * - col2 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, ( col1 ) AS col2 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT ALL + 4 - col1 AS col1 FROM tab2 @@ -13147,8 +13292,11 @@ SELECT DISTINCT + 91 - + 78 FROM tab2 WHERE NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - -1518 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col1" at position 0 and "Int64\(46\) \* Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 79 AS col1, 46 * + - 33 AS col1 FROM tab2 cor0 CROSS JOIN tab0 cor1 +---- +-1518 +79 query II rowsort label-2156 SELECT - + SUM ( ALL + - CAST ( NULL AS INTEGER ) ) AS col0, 36 col1 FROM tab0 AS cor0 @@ -13700,8 +13848,11 @@ 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 "tab2\.col2 / \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 55 AS col2, + col2 / - col2 AS col2 FROM tab2 +---- +-1 +55 query II rowsort label-2249 SELECT ALL col0 AS col1, - col0 / + + CAST ( NULL AS INTEGER ) FROM tab0 @@ -13846,8 +13997,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN + 5 AND ( 79 / CAST ( + - # Datafusion - Expected - 54 # Datafusion - Expected - 58 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col0 \+ Int64\(\-10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 col1, + col0 + - 10 AS col1 FROM tab2 AS cor0 +---- +23 +36 +40 +54 +58 +65 query I rowsort label-2274 SELECT - 21 / MAX ( DISTINCT - col2 ) * + + COUNT ( * ) * - - 2 + - 48 FROM tab0 AS cor0 WHERE NOT NULL IS NULL @@ -13880,8 +14038,15 @@ SELECT DISTINCT - col0 / - + col0 FROM tab2 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 23 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 23 AS col2, + ( col0 ) AS col2 FROM tab1 AS cor0 +---- +23 +23 +23 +51 +85 +91 query II rowsort SELECT + + col1 AS col2, col0 FROM tab2 cor0 @@ -13960,8 +14125,11 @@ SELECT - MIN ( DISTINCT - 12 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(51\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( * ) + + 51 AS col0, - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +-9 +54 query I rowsort label-2291 SELECT - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 @@ -15586,8 +15754,15 @@ SELECT + - 1 FROM tab1 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - 96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(99\) \* Int64\(83\) \* Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, - CAST ( NULL AS INTEGER ) * ( + ( + + 99 ) ) * 83 * 1 AS col1 FROM tab1 +---- +59 +68 +96 +NULL +NULL +NULL query I rowsort label-2560 SELECT + 42 / + 52 * + col2 AS col0 FROM tab2 @@ -15747,8 +15922,15 @@ SELECT ALL ( - 23 ) FROM tab2 # Datafusion - Expected - -85 # Datafusion - Expected - -91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\)" at position 0 and "\(\- tab1\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0, - col0 FROM tab1 WHERE col1 * + col0 > col1 * - + col2 / + ( - 96 ) * col1 +---- +-51 +-51 +-85 +-85 +-91 +-91 query I rowsort SELECT DISTINCT + col2 - + + col2 + col2 AS col1 FROM tab1 @@ -16822,8 +17004,9 @@ SELECT ALL 95 AS col0, ( + MIN ( + col2 ) ) AS col1 FROM tab0 10 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(\-94\) \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, - 94 * - col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL +---- query I rowsort label-2758 SELECT - SUM ( ALL + - col1 ) FROM tab2 AS cor0 @@ -18114,8 +18297,15 @@ SELECT ALL 74 - + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1 # Datafusion - Expected - 59 # Datafusion - Expected - 147 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- \(\- Int64\(56\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 - - + 56 AS col1, col2 AS col1 FROM tab1 AS cor0 +---- +107 +141 +147 +59 +68 +96 query II rowsort SELECT col1 - - - col2, col2 AS col0 FROM tab2 AS cor0 @@ -18286,8 +18476,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 87 col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-3 +87 query I rowsort SELECT + col0 * col2 - - col0 AS col0 FROM tab1 AS cor0 @@ -18503,8 +18696,15 @@ NULL # Datafusion - Expected - 40 # Datafusion - Expected - 81 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col0, 40 AS col0 FROM tab0 AS cor0 +---- +1 +21 +40 +40 +40 +81 query I rowsort SELECT col1 FROM tab0 AS cor0 WHERE - ( 76 ) > + + 45 @@ -18856,8 +19056,15 @@ SELECT ALL col1 * + col1 * + + 56 AS col2 FROM tab0 # Datafusion - Expected - 67 # Datafusion - Expected - 53 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 53 col2, + col1 col2 FROM tab2 AS cor0 +---- +51 +53 +53 +53 +67 +77 query I rowsort label-3089 SELECT - + ( + COUNT ( DISTINCT - - col1 ) ) AS col2 FROM tab1 AS cor0 @@ -19744,8 +19951,15 @@ SELECT ALL - + COUNT ( * ) AS col0, COUNT ( * ) col1 FROM tab0 AS cor0 # Datafusion - Expected - 30 # Datafusion - Expected - -58 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col2 AS col1, 30 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +30 +30 +30 query I rowsort SELECT - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT 61 + + col1 * + col1 IS NOT NULL @@ -20472,8 +20686,15 @@ SELECT + 92 * - ( col0 ) FROM tab2 # Datafusion - Expected - 6786 # Datafusion - Expected - -81 # Datafusion - Expected - 1170 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- tab0\.col1\)\)\) AS col0" at position 0 and "tab0\.col0 \* Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - - col1 ) AS col0, + col0 * 78 AS col0 FROM tab0 +---- +-1 +-21 +-81 +1170 +6786 +7566 query III rowsort label-3359 SELECT ALL * FROM tab1 WHERE NOT ( + + col0 + - - CAST ( 40 AS INTEGER ) ) <> NULL @@ -20790,8 +21011,11 @@ SELECT col1 / - + 51 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -3009 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "Int64\(\-59\) \* min\(tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 33 col1, - 59 * + MIN ( col1 ) AS col1 FROM tab2 +---- +-3009 +33 query I rowsort label-3414 SELECT + SUM ( ALL - - 54 ) FROM tab1 @@ -21022,8 +21246,15 @@ SELECT DISTINCT + col2 * col1 FROM tab0 AS cor0 WHERE NOT + col1 IN ( - col0 ) # Datafusion - Expected - 68 # Datafusion - Expected - 8148 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* tab0\.col0 AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 84 * col0 col0, 68 AS col0 FROM tab0 +---- +1260 +68 +68 +68 +7308 +8148 query I rowsort SELECT ALL - 73 AS col2 FROM tab0 WHERE NULL IS NOT NULL @@ -21624,8 +21855,15 @@ SELECT 72 col0, ( COUNT ( * ) ) * + COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - -75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "\(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 col0, - col0 AS col0 FROM tab2 +---- +-46 +-46 +-64 +-64 +-75 +-75 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -21802,8 +22040,11 @@ SELECT DISTINCT * FROM tab2 WHERE NOT + 46 * + 17 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(\-88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - + CAST ( + ( + ( - - COUNT ( * ) ) ) AS INTEGER ) ) AS col1, - 88 AS col1 FROM tab1 +---- +-3 +-88 query I rowsort label-3580 SELECT DISTINCT - MIN ( + 97 ) AS col1 FROM tab1 @@ -22065,8 +22306,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 WHERE ( col1 ) IS NOT NULL +---- +3 +3 query I rowsort SELECT - 70 - 31 * - - 66 + col1 FROM tab2 AS cor0 @@ -22166,8 +22410,9 @@ SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + col1, - 36, - col2 ) ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col0" at position 0 and "cor0\.col0 \- cor0\.col0 \* cor0\.col1 \* \(\- Int64\(\-86\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 3 AS col0, col0 - + col0 * + col1 * - - 86 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL +---- query I rowsort label-3641 SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) / + col2 AS col2 FROM tab0 AS cor0 @@ -22415,8 +22660,15 @@ SELECT + MAX ( - col0 ) FROM tab1 cor0 # Datafusion - Expected - 40 # Datafusion - Expected - -15 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 15 AS col1, + col2 col1 FROM tab2 AS cor0 +---- +-15 +-15 +-15 +23 +40 +58 query II rowsort SELECT ALL + + 59 * - col2 col0, + 73 FROM tab0 AS cor0 WHERE ( + + ( + col1 ) ) IS NULL @@ -23582,8 +23834,15 @@ SELECT DISTINCT - - 13 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - -1446 # Datafusion - Expected - 58 # Datafusion - Expected - -3230 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "tab2\.col1 \+ \(\- tab2\.col2\) \* tab2\.col2 \+ tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, + col1 + + - col2 * col2 + + col1 AS col1 FROM tab2 +---- +-1446 +-3230 +-427 +23 +40 +58 query I rowsort SELECT ALL + col0 * + - col0 * + - col1 + col2 AS col1 FROM tab1 AS cor0 @@ -24256,8 +24515,11 @@ SELECT DISTINCT - 84 - col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-61\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 61 AS col0, COUNT ( * ) col0 FROM tab1 AS cor0 +---- +3 +61 query II rowsort label-3991 SELECT DISTINCT - 13 AS col2, MIN ( + 32 ) AS col1 FROM tab0 AS cor0 @@ -24351,8 +24613,15 @@ SELECT DISTINCT - MIN ( + 80 ) AS col2 FROM tab0 # Datafusion - Expected - 5 # Datafusion - Expected - -5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, + 5 AS col1 FROM tab1 +---- +-14 +-47 +-5 +5 +5 +5 query I rowsort label-4009 SELECT ALL - MAX ( - + 89 ) FROM tab2 WHERE NULL IS NOT NULL @@ -24648,8 +24917,11 @@ SELECT 10 - - + COUNT ( * ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 166 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col2" at position 0 and "Int64\(\-83\) \* Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - + COUNT ( * ) AS INTEGER ) col2, - 83 * - 2 AS col2 FROM tab2 +---- +-3 +166 query I rowsort SELECT + + col0 * col2 + 69 FROM tab0 WHERE NOT + col2 + - - ( - col2 ) < NULL @@ -24760,8 +25032,12 @@ SELECT DISTINCT - - COUNT ( * ) FROM tab0 WHERE NOT NULL = - col0 # Datafusion - Expected - 56 # Datafusion - Expected - 37 # 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 "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 56 AS col1, + 37 AS col1, - CAST ( NULL AS INTEGER ) * - col2 + 11 AS col1 FROM tab2 +---- +37 +56 +NULL query I rowsort SELECT 50 + - col2 col2 FROM tab1 AS cor0 @@ -24834,8 +25110,15 @@ NULL # Datafusion - Expected - 10 # Datafusion - Expected - -97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * - + ( col1 ) AS col0, col2 AS col0 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL +---- +-1215 +-1827 +-97 +10 +47 +99 query I rowsort SELECT - + ( + 1 ) + - + 17 FROM tab1 AS cor0 @@ -25107,8 +25390,15 @@ SELECT + - COUNT ( * ) + + + ( SUM ( ALL - col0 ) ) FROM tab0 WHERE NOT NULL IS # Datafusion - Expected - 47 # Datafusion - Expected - 24 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 24 AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +10 +24 +24 +24 +47 +99 query III rowsort SELECT * FROM tab2 AS cor0 WHERE - ( 2 ) <> + 84 @@ -25986,8 +26276,11 @@ SELECT DISTINCT + 96 AS col1, - col2 * - col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -143 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col0" at position 0 and "\(\- max\(cor0\.col1\)\) \* Int64\(1\) \+ \(\- max\(cor0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 AS col0, - MAX ( + col1 ) * 1 + - + MAX ( col2 ) AS col0 FROM tab1 AS cor0 +---- +-143 +68 query II rowsort SELECT - col0 * col0 + col1, col0 FROM tab0 cor0 @@ -26350,8 +26643,15 @@ SELECT ALL - + 18 * + + col1 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -39 # Datafusion - Expected - 7081 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) \* \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(\-39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 73 * - col0 AS col1, - 39 AS col1 FROM tab0 AS cor0 +---- +-39 +-39 +-39 +1095 +6351 +7081 query III rowsort SELECT ALL - ( + col1 ), + 61 col1, + 41 * + - 40 * - col2 * + - 19 AS col0 FROM tab0 AS cor0 @@ -27413,8 +27713,15 @@ SELECT - 54 * - - ( + col2 ) AS col2 FROM tab2 # Datafusion - Expected - 124 # Datafusion - Expected - -1 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 / \(\- tab2\.col2\) AS col0" at position 0 and "tab2\.col1 \+ Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 / + - col2 AS col0, col1 + 47 AS col0 FROM tab2 +---- +-1 +-1 +-1 +114 +124 +98 query I rowsort label-4509 SELECT + MAX ( DISTINCT - - col2 ) AS col2 FROM tab1 @@ -27562,8 +27869,15 @@ SELECT - - col2 / - col1 AS col1, col1 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -81 # Datafusion - Expected - 97 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ cor0\.col2 AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 + + col2 AS col2, - col1 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +196 +62 +97 query I rowsort SELECT ALL 56 + + 23 FROM tab2 AS cor0 @@ -27949,8 +28263,10 @@ SELECT * FROM tab2 AS cor0 WHERE col2 + - + col0 * - col1 * 78 * - - col2 * - co # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 9565586d5b982d26a4b8b79f1e93b77c -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \+ \(\- cor0\.col2\) \+ Int64\(27\) \+ Int64\(91\) \+ \(\- cor0\.col1\) \* cor0\.col0 AS col1" at position 0 and "Int64\(\-80\) / cor0\.col1 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 68 + - col2 + 27 + 91 + - + col1 * col0 col1, CAST ( col2 AS INTEGER ) AS col0, + - 80 / + col1 AS col1 FROM tab1 cor0 +---- +9 values hashing to 91b3db6533494dcfb9a2bfce64c646b5 query I rowsort SELECT DISTINCT - col2 * + - 61 + - col2 AS col2 FROM tab0 AS cor0 @@ -27966,8 +28282,15 @@ SELECT DISTINCT - col2 * + - 61 + - col2 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -5 # Datafusion - Expected - 6599 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- \(\- cor0\.col0\)\) \* Int64\(72\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + - - col0 * 72 AS col2, - col1 AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +3686 +6125 +6599 query I rowsort SELECT ALL - 92 * 88 + - - 7 * - 85 FROM tab1 AS cor0 @@ -28054,8 +28377,15 @@ SELECT ALL + col1 * - 85 * + 57 col2 FROM tab2 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - -96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- \(\- cor0\.col2\)\) AS Int32\)\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - CAST ( - - col2 AS INTEGER ) col1, - col2 AS col1 FROM tab1 AS cor0 +---- +-59 +-59 +-68 +-68 +-96 +-96 query I rowsort label-4612 SELECT ALL col0 * + CAST ( + col1 AS INTEGER ) + col0 FROM tab0 AS cor0 @@ -28091,8 +28421,15 @@ NULL # Datafusion - Expected - -156 # Datafusion - Expected - -397 # Datafusion - Expected - -156 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- Int64\(31\)\) \+ \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(\-63\) \+ Int64\(\-93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 * - + 31 + - col0 AS col2, - 63 + - 93 AS col2 FROM tab0 AS cor0 +---- +-1472 +-156 +-156 +-156 +-3166 +-397 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT 60 BETWEEN NULL AND NULL @@ -28590,8 +28927,15 @@ SELECT * FROM tab1 WHERE NOT 37 <= - col2 / - col1 # Datafusion - Expected - 57 # Datafusion - Expected - 81 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "Int64\(13\) \+ Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, + 13 + 44 AS col0 FROM tab0 +---- +1 +21 +57 +57 +57 +81 query II rowsort SELECT DISTINCT + col2 AS col1, 97 FROM tab1 @@ -29874,8 +30218,10 @@ SELECT DISTINCT + 7 AS col2, - COUNT ( * ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 3e61e0cb76f22a0c9aa0bf645cb73bb2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT col1, col0 col0, + col1 FROM tab0 +---- +9 values hashing to 85b091ff10547e953bc6714d7e07504f query I rowsort SELECT DISTINCT - + 6 AS col0 FROM tab2 cor0 @@ -30496,8 +30842,15 @@ SELECT ALL - - 53 + + - col1 FROM tab0 AS cor0 # Datafusion - Expected - 5368 # Datafusion - Expected - 58 # Datafusion - Expected - 5368 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(\-61\) \* \(\- Int64\(88\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col0, - 61 * - ( 88 ) AS col0 FROM tab2 AS cor0 +---- +23 +40 +5368 +5368 +5368 +58 query I rowsort SELECT + col0 col0 FROM tab0 AS cor0 WHERE NULL > ( NULL ) @@ -31053,8 +31406,15 @@ SELECT ALL MAX ( DISTINCT + CAST ( + + ( - ( 41 ) ) AS INTEGER ) ) * - COUNT ( * # Datafusion - Expected - 15 # Datafusion - Expected - -99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + col2 ) AS col2, col0 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +15 +87 +97 query I rowsort SELECT ALL + + col0 + - + 22 FROM tab1 cor0 @@ -31425,8 +31785,11 @@ SELECT 62 * + 10 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "sum\(CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, SUM ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 +---- +3 +NULL query I rowsort label-5173 SELECT ALL - - SUM ( ALL - - col0 ) FROM tab2 AS cor0 @@ -31440,8 +31803,15 @@ SELECT ALL - - SUM ( ALL - - col0 ) FROM tab2 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - -97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col0, - col0 FROM tab0 AS cor0 +---- +-15 +-15 +-87 +-87 +-97 +-97 query I rowsort SELECT DISTINCT + + 58 + - ( - + col0 ) FROM tab1 AS cor0 @@ -31460,8 +31830,11 @@ SELECT - - col0 * + 83 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(\-19\) \+ \(\- cor0\.col2\) \+ \(\- Int64\(11\)\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 51 AS col0, CAST ( NULL AS INTEGER ) + - 19 + - + col2 + - + 11 * + col1 AS col0 FROM tab1 AS cor0 +---- +51 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 @@ -31470,8 +31843,15 @@ SELECT DISTINCT + 51 AS col0, CAST ( NULL AS INTEGER ) + - 19 + - + col2 + - + 1 # Datafusion - Expected - 150 # Datafusion - Expected - -80 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col2" at position 0 and "cor0\.col0 \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 80 AS col2, col0 + col0 AS col2 FROM tab2 AS cor0 +---- +-80 +-80 +-80 +128 +150 +92 query I rowsort label-5179 SELECT ALL + ( col1 ) + col1 + - CAST ( col0 AS INTEGER ) col1 FROM tab0 AS cor0 @@ -31514,8 +31894,15 @@ SELECT DISTINCT - 36 + - + col1 + col0 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / Int64\(72\) \+ Int64\(\-38\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 / + + 72 + - 38 AS col1, CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab0 AS cor0 +---- +-37 +-38 +-38 +NULL +NULL +NULL query I rowsort label-5186 SELECT + ( - - SUM ( - 32 ) ) + - + 64 col2 FROM tab0 AS cor0 @@ -31607,8 +31994,11 @@ SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN 64 AND ( + col1 / - 50 / + col0 + # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col0" at position 0 and "min\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 18 AS col0, + MIN ( - - CAST ( NULL AS INTEGER ) ) col0 FROM tab2 +---- +-18 +NULL query I rowsort SELECT + 46 + + col0 FROM tab0 @@ -33941,8 +34331,9 @@ SELECT + + COUNT ( + - ( + ( + 73 ) ) ) AS col1 FROM tab0 AS cor0 3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "CAST\(cor0\.col1 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col2 col0, ( + CAST ( ( col1 ) AS INTEGER ) ) col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + col1 * + col2 + - col0 + + col1 +---- query II rowsort SELECT + + 99, col1 * + 30 FROM tab2 WHERE NOT NULL BETWEEN + col1 / + 45 AND + 50 @@ -34540,8 +34931,15 @@ SELECT ALL + COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - 140 # Datafusion - Expected - 16 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "Int64\(25\) \+ tab0\.col0 \+ Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 16 col2, ( + 25 ) + col0 + 18 AS col2 FROM tab0 +---- +130 +140 +16 +16 +16 +58 query I rowsort SELECT - + col1 * + + col0 AS col2 FROM tab2 AS cor0 WHERE - col1 + + col2 + - 23 = + 4 @@ -35658,8 +36056,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 * + + col0 * 7 IS NULL # Datafusion - Expected - -47 # Datafusion - Expected - -96 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col2, - col1 AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +-59 +-68 +-96 query II rowsort SELECT DISTINCT 67 AS col0, + col0 + + - col0 FROM tab0 AS cor0 @@ -35989,8 +36394,15 @@ SELECT ALL COUNT ( * ) - 51 * + COUNT ( * ) AS col2 FROM tab2 cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 3744 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \- \(\- cor0\.col2\) \* Int64\(38\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 - + - col2 * 38 AS col1, col2 AS col1 FROM tab1 AS cor0 +---- +2301 +2652 +3744 +59 +68 +96 query I rowsort SELECT DISTINCT 68 * col1 AS col1 FROM tab1 @@ -36264,8 +36676,15 @@ SELECT DISTINCT - COUNT ( * ) * + 72 AS col0 FROM tab0 # Datafusion - Expected - 150022 # Datafusion - Expected - 864 # Datafusion - Expected - 18666 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* Int64\(9\) AS col0" at position 0 and "\(\- tab1\.col0\) \+ \(\- Int64\(99\)\) \+ tab1\.col1 \* \(\- tab1\.col2\) \* \(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * + 9 AS col0, - col0 + - + 99 + + col1 * ( - col2 * - col1 ) AS col0 FROM tab1 +---- +1291 +150022 +18666 +531 +612 +864 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT ( + col0 - + col2 ) IS NOT NULL @@ -36616,8 +37035,15 @@ SELECT ALL * FROM tab2 cor0 WHERE NULL >= + col0 # Datafusion - Expected - 85 # Datafusion - Expected - 0 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / \(\- cor0\.col0\) AS col0" at position 0 and "Int64\(2\) \+ Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 / - + col0 col0, 2 + 83 col0 FROM tab1 AS cor0 +---- +0 +0 +0 +85 +85 +85 query I rowsort label-6026 SELECT - COUNT ( * ) * + ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 @@ -36717,8 +37143,15 @@ SELECT ALL + MAX ( + + 99 ) FROM tab1 AS cor0 # Datafusion - Expected - -5051 # Datafusion - Expected - -97 # Datafusion - Expected - -5061 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(73\) \* Int64\(\-68\) \- cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 AS col0, + 73 * - 68 - + col0 AS col0 FROM tab0 AS cor0 +---- +-15 +-4979 +-5051 +-5061 +-87 +-97 query I rowsort label-6044 SELECT ALL SUM ( + col2 ) AS col1 FROM tab0 AS cor0 @@ -36746,8 +37179,15 @@ SELECT + 26 * + ( + - col1 ) AS col2 FROM tab0 # Datafusion - Expected - 9 # Datafusion - Expected - 66 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col2" at position 0 and "Int64\(\-66\) \- Int64\(\-75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( 66 ) AS col2, - 66 - - 75 AS col2 FROM tab1 +---- +66 +66 +66 +9 +9 +9 query I rowsort SELECT DISTINCT - 54 FROM tab0 WHERE NOT ( NULL ) IS NULL @@ -36778,8 +37218,15 @@ SELECT DISTINCT + + col1 col2 FROM tab1 cor0 WHERE NULL NOT IN ( - col2 * - 89, # Datafusion - Expected - -47 # Datafusion - Expected - -5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "\(\- tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col2, - col1 col2 FROM tab1 +---- +-14 +-14 +-47 +-47 +-5 +-5 query I rowsort label-6053 SELECT CAST ( NULL AS INTEGER ) + - - 77 FROM tab0 WHERE - col2 BETWEEN - + col1 AND NULL @@ -37093,8 +37540,11 @@ SELECT ALL - col1 / - col1 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( - col1, col # 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 col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 0 AS col1, 51 AS col1 FROM tab0 WHERE - 51 IS NOT NULL +---- +0 +51 query I rowsort label-6102 SELECT + + COUNT ( - 72 ) FROM tab1 AS cor0 @@ -37891,8 +38341,10 @@ SELECT ALL ( + col0 ) * + + 16 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a74aff1b62634c907dd0681ba9d88d3e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 1 and "\(\- tab1\.col2\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 39 AS col2, + col2 AS col0, + - col2 AS col0 FROM tab1 +---- +9 values hashing to 9303986ebe5632da63d79ec0b2fd0f01 query I rowsort SELECT + + col2 * - 77 FROM tab0 WHERE NOT NULL IS NOT NULL @@ -38223,8 +38675,15 @@ SELECT ALL + - col2 + + 23 AS col0 FROM tab1 WHERE NOT ( col1 ) < + 27 # Datafusion - Expected - 102 # Datafusion - Expected - 57 # Datafusion - Expected - 182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ Int64\(10\) AS col0" at position 0 and "tab1\.col0 \+ tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + 10 AS col0, col0 + col0 AS col0 FROM tab1 +---- +102 +15 +170 +182 +24 +57 query I rowsort label-6282 SELECT ALL + COUNT ( * ) AS col2 FROM tab2 WHERE ( NOT - ( + col0 ) IS NULL ) @@ -38486,8 +38945,11 @@ SELECT 19 * + 91 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 34 AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +3 +34 query II rowsort SELECT ALL - - 89, col2 + + 78 AS col2 FROM tab2 AS cor0 @@ -39433,8 +39895,15 @@ SELECT DISTINCT + - col1 / col1 AS col2, + col1 FROM tab1 AS cor0 # Datafusion - Expected - 36 # Datafusion - Expected - 3196 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col1 AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * + col1 AS col0, + 36 AS col0 FROM tab1 cor0 +---- +1344 +295 +3196 +36 +36 +36 query I rowsort label-6482 SELECT DISTINCT + 94 / + COUNT ( * ) FROM tab1 AS cor0 @@ -39608,8 +40077,15 @@ SELECT - + 94 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, col0 AS col2 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query III rowsort SELECT * FROM tab1 WHERE NOT NULL BETWEEN - col0 AND - col0 @@ -39777,8 +40253,11 @@ SELECT COUNT ( * ) * 81 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 246 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(41\) \+ \(\- Int64\(\-20\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 * + COUNT ( * ) col2, + 41 + - - 20 AS col2 FROM tab1 AS cor0 +---- +246 +61 query I rowsort SELECT 33 * col2 + - 49 FROM tab2 cor0 @@ -39837,8 +40316,15 @@ SELECT DISTINCT * FROM tab2 WHERE ( - col1 * - col0 * - col0 ) NOT IN ( 7, col2, # Datafusion - Expected - 26 # Datafusion - Expected - -89 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 89 AS col0, 26 col0 FROM tab2 +---- +-89 +-89 +-89 +26 +26 +26 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 @@ -39985,8 +40471,15 @@ SELECT ALL + 96 + MAX ( DISTINCT + col1 ) FROM tab2 # Datafusion - Expected - 0 # Datafusion - Expected - -67 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) AS col1" at position 0 and "\(\- cor0\.col1\) \- \(\- cor0\.col0\) \- cor0\.col0 \+ \(\- \(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 67 col1, - col1 - - + col0 - col0 + - - col1 AS col1 FROM tab0 AS cor0 +---- +-67 +-67 +-67 +0 +0 +0 query I rowsort SELECT ALL - + ( - 15 ) FROM tab0 AS cor0 @@ -40361,8 +40854,15 @@ SELECT DISTINCT + + ( - + 56 ) FROM tab0 WHERE - col1 = NULL # Datafusion - Expected - 8 # Datafusion - Expected - -98 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col2\) / cor0\.col2 \- cor0\.col1 AS col0" at position 0 and "Int64\(48\) / Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * - col2 / col2 - col1 AS col0, 48 / + 6 AS col0 FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NULL +---- +-108 +-96 +-98 +8 +8 +8 query I rowsort SELECT DISTINCT - 21 + + 22 FROM tab2 AS cor0 WHERE NULL IS NULL @@ -40798,8 +41298,10 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 28 > 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 88a4bb2c7887066c08eb5d7b71eaf0de -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col2\) \+ Int64\(\-79\) \+ cor0\.col0 AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col2 AS col0, CAST ( NULL AS INTEGER ) - ( - col0 ) AS col1, - col2 + - 79 + + col0 col0 FROM tab2 AS cor0 +---- +9 values hashing to b8e9386d1faeb07505338ff97b371c39 query I rowsort label-6708 SELECT DISTINCT + + 15 + MIN ( + + col2 ) FROM tab0 AS cor0 @@ -40974,8 +41476,11 @@ SELECT col0 + col2 * col0 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -223 # Datafusion - Expected - 198 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(tab1\.col2\)\) AS col2" at position 0 and "sum\(DISTINCT tab1\.col1\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - SUM ( + col2 ) AS col2, + SUM ( DISTINCT + col1 ) * COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL +---- +-223 +198 # Datafusion - Datafusion expected results: # Datafusion - Expected - -112 @@ -41067,8 +41572,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col0, COUNT ( * ) + + - 21 AS col0 FROM tab2 +---- +-18 +-3 query I rowsort SELECT ALL col0 AS col2 FROM tab1 WHERE NOT - + col1 * - + col2 * col0 + - + 51 IS NULL @@ -42038,8 +42546,15 @@ SELECT 73 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 33 # Datafusion - Expected - 84 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "CAST\(Int64\(33\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 84 AS col0, CAST ( + ( + 33 ) AS INTEGER ) AS col0 FROM tab0 +---- +33 +33 +33 +84 +84 +84 query I rowsort SELECT ALL + col2 * + col1 * 64 AS col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND 52 * + col2 @@ -42347,8 +42862,11 @@ SELECT + MAX ( - 19 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, 78 AS col0 FROM tab1 +---- +3 +78 query I rowsort SELECT ALL 93 * col1 AS col0 FROM tab1 @@ -42932,8 +43450,15 @@ SELECT - 81, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE col1 NOT I # Datafusion - Expected - 47 # Datafusion - Expected - 34 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 34 AS col1, + col2 AS col1 FROM tab0 AS cor0 +---- +10 +34 +34 +34 +47 +99 query IIIIII rowsort SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 90 IS NOT NULL @@ -43442,8 +43967,11 @@ SELECT DISTINCT * FROM tab0 WHERE + + col2 - col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ \(\- min\(Int64\(\-65\)\)\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + 23 ) + - MIN ( + - 65 ) AS col2, 28 AS col2 FROM tab0 +---- +28 +88 query I rowsort SELECT - 48 + - col0 + + 97 * col1 * + 25 * 1 FROM tab1 WHERE ( NULL ) IS NOT NULL @@ -44567,8 +45095,15 @@ SELECT 80 + col0 AS col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ Int64\(\-6\) \+ \(\- Int64\(88\)\) \* \(\- cor0\.col2\) / cor0\.col2 AS col1" at position 0 and "\(\- \(\- \(\- CAST\(NULL AS Int32\)\)\)\) \* cor0\.col1 \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 + - 6 + + - ( 88 ) * - col2 / col2 AS col1, - ( - - CAST ( NULL AS INTEGER ) ) * + col1 + + + col0 AS col1 FROM tab2 AS cor0 +---- +15 +31 +5 +NULL +NULL +NULL query II rowsort label-7337 SELECT DISTINCT CAST ( NULL AS INTEGER ), col0 + + ( - col1 ) AS col2 FROM tab2 @@ -44800,8 +45335,15 @@ SELECT ALL 4 AS col1 FROM tab1 WHERE NULL IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - 47 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\)" at position 0 and "Int64\(47\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47, 47 FROM tab0 +---- +47 +47 +47 +47 +47 +47 query II rowsort label-7374 SELECT DISTINCT + COUNT ( * ) AS col2, COUNT ( * ) * - + 21 FROM tab0 @@ -44816,8 +45358,15 @@ SELECT DISTINCT + COUNT ( * ) AS col2, COUNT ( * ) * - + 21 FROM tab0 # Datafusion - Expected - -21 # Datafusion - Expected - NULL # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 * + - CAST ( NULL AS INTEGER ) col1, - col1 AS col1 FROM tab0 +---- +-1 +-21 +-81 +NULL +NULL +NULL query I rowsort SELECT col1 AS col1 FROM tab2 WHERE NOT - 1 * + 34 NOT BETWEEN col1 AND + col0 @@ -45027,8 +45576,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 >= col0 + - col1 # Datafusion - Expected - 75 # Datafusion - Expected - -58650 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(50\) \* \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * + 50 * + - col2 AS col2, col0 AS col2 FROM tab2 AS cor0 +---- +-154000 +-194300 +-58650 +46 +64 +75 query I rowsort label-7412 SELECT + MAX ( 37 ) AS col0 FROM tab2 cor0 @@ -45448,8 +46004,11 @@ SELECT ALL - 79 + + col1 * - 96 AS col2 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -241 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(84\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-18\) \+ Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 20 * + COUNT ( * ) AS col0, 84 * - ( + COUNT ( * ) ) + - 18 + + 29 col0 FROM tab0 AS cor0 +---- +-241 +60 query I rowsort label-7480 SELECT ALL + - 61 + + COUNT ( DISTINCT + + col2 ) col1 FROM tab0 AS cor0 @@ -45550,8 +46109,15 @@ SELECT + CAST ( - 95 AS INTEGER ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -54 # Datafusion - Expected - 3 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col0" at position 0 and "\(\- cor0\.col2\) \- \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 3 AS col0, ( - ( col2 ) ) - - col1 AS col0 FROM tab1 AS cor0 +---- +-21 +-54 +-82 +3 +3 +3 query I rowsort label-7497 SELECT ALL + SUM ( + - col1 ) col0 FROM tab2 AS cor0 @@ -46039,8 +46605,15 @@ SELECT + col1 * col2 + + col1 + - - col0 col1 FROM tab0 AS cor0 # Datafusion - Expected - -2526 # Datafusion - Expected - NULL # Datafusion - Expected - -4327 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "tab2\.col2 \* \(\- tab2\.col0\) \+ Int64\(98\) \+ \(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 * + - CAST ( NULL AS INTEGER ) AS col0, col2 * - col0 + + + 98 + - col0 AS col0 FROM tab2 +---- +-1006 +-2526 +-4327 +NULL +NULL +NULL query III rowsort SELECT ALL * FROM tab2 WHERE NOT + + 14 IS NULL @@ -47451,8 +48024,11 @@ SELECT + ( - col2 ) * - 71 * + col1 + + + col2 AS col1 FROM tab0 WHERE + col0 IS # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + COUNT ( * ) col2, - 20 AS col2 FROM tab2 WHERE NOT + 86 IS NULL +---- +-20 +3 query I rowsort SELECT + col1 * col2 * + col1 AS col1 FROM tab0 @@ -47753,8 +48329,15 @@ SELECT ALL * FROM tab1 WHERE + 17 + - col0 * col1 <> + - ( - col2 ) + - col2 # Datafusion - Expected - 15 # Datafusion - Expected - 73 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 73 AS col2, 15 AS col2 FROM tab2 +---- +15 +15 +15 +73 +73 +73 query I rowsort label-7867 SELECT ALL COUNT ( - + 42 ) AS col0 FROM tab2 @@ -47987,8 +48570,11 @@ SELECT COUNT ( * ), 3 + + + 7 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* \(\- count\(DISTINCT tab1\.col2\)\) AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 10 * - COUNT ( DISTINCT col2 ) AS col0, + 86 AS col0 FROM tab1 +---- +-30 +86 query I rowsort label-7906 SELECT 28 * + - CAST ( - - col2 AS INTEGER ) FROM tab2 @@ -48217,8 +48803,15 @@ SELECT - COUNT ( * ) * - - COUNT ( * ), + 36 col1 FROM tab2 AS cor0 # Datafusion - Expected - 86 # Datafusion - Expected - 58 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, + 86 AS col1 FROM tab2 +---- +23 +40 +58 +86 +86 +86 query II rowsort label-7941 SELECT DISTINCT + + 18 col0, + col0 + - CAST ( NULL AS INTEGER ) + - 24 FROM tab1 AS cor0 @@ -48613,8 +49206,11 @@ SELECT + ( + MAX ( DISTINCT + ( - col1 ) ) ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, - 54 AS col0 FROM tab1 +---- +-54 +3 query II rowsort SELECT - col0 AS col2, - 55 AS col0 FROM tab0 @@ -51187,8 +51783,11 @@ SELECT col0 + + col2 + col2 * - 23 - + col0 * - 21 AS col1, col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4816 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \* Int64\(56\) AS col1" at position 0 and "max\(cor0\.col1\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 86 * 56 AS col1, MAX ( + col1 ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +-4816 +80 query I rowsort SELECT ALL - col0 + - - 63 FROM tab2 cor0 @@ -51664,8 +52263,15 @@ SELECT + COUNT ( * ) AS col0, + COUNT ( * ) AS col1 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, + CAST ( NULL AS INTEGER ) * + ( + 74 ) col1 FROM tab1 +---- +51 +85 +91 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab1 WHERE + col1 + col2 = + col0 + - 65 @@ -51731,8 +52337,9 @@ SELECT DISTINCT - ( col0 ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( + + col0 ) ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, col0 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL +---- query II rowsort SELECT DISTINCT - ( + 95 ) AS col0, 46 + - col0 FROM tab2 AS cor0 @@ -53170,8 +53777,15 @@ SELECT ALL - col0 * 7 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 AS col2, col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-8757 SELECT - - ( + SUM ( + + col1 ) ) + 17 AS col2 FROM tab0 cor0 @@ -54317,8 +54931,11 @@ SELECT DISTINCT 74 + - CAST ( - 23 AS INTEGER ) col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 2419 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col1" at position 0 and "Int64\(59\) \* Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 12 AS col1, 59 * 41 AS col1 FROM tab1 +---- +12 +2419 query III rowsort SELECT ALL * FROM tab0 WHERE NOT - col0 + - + col1 IS NULL @@ -56167,8 +56784,11 @@ SELECT + - col1 * + - col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL +---- +0 +0 query I rowsort SELECT ( col2 ) - + - col0 col2 FROM tab2 @@ -57079,8 +57699,15 @@ SELECT - 73 * - 29 AS col0 FROM tab1 # Datafusion - Expected - 87 # Datafusion - Expected - 68 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 68 AS col1, col0 AS col1 FROM tab0 +---- +15 +68 +68 +68 +87 +97 query II rowsort SELECT ALL - 46, + 48 AS col1 FROM tab2 @@ -57099,8 +57726,15 @@ SELECT ALL - 46, + 48 AS col1 FROM tab2 # Datafusion - Expected - -50 # Datafusion - Expected - 97 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(\-50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, - 50 AS col2 FROM tab0 AS cor0 +---- +-50 +-50 +-50 +15 +87 +97 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT 88 <= - + 58 @@ -57991,8 +58625,15 @@ SELECT ALL col2 / + col1 + - 29 FROM tab0 AS cor0 WHERE NOT + 14 IS NOT NULL # Datafusion - Expected - 139200 # Datafusion - Expected - -4341 # Datafusion - Expected - 292667 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col0\) \+ \(\- cor0\.col2\) \+ cor0\.col1 AS col1" at position 0 and "cor0\.col0 / CAST\(\(\- cor0\.col1\) AS Int32\) \+ Int64\(87\) \* cor0\.col2 \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * + - col0 + - + col2 + col1 AS col1, col0 / + CAST ( + - col1 AS INTEGER ) + + 87 * + col2 * + col2 AS col1 FROM tab2 AS cor0 +---- +-1030 +-2523 +-4341 +139200 +292667 +46023 # Datafusion - Datafusion expected results: query error DataFusion error: Schema error: Schema contains qualified field name tab2\.col0 and unqualified field name col0 which would be ambiguous @@ -58996,8 +59637,11 @@ 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\(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\. +query IR valuesort SELECT + COUNT ( * ) - - ( - - COUNT ( DISTINCT + col1 ) ) AS col2, SUM ( ALL + col0 ) * AVG ( 14 ) * - COUNT ( * ) AS col2 FROM tab0 WHERE + 93 > NULL +---- +0 +NULL query I rowsort label-9712 SELECT ALL - COUNT ( * ) * + 72 FROM tab2 @@ -59015,8 +59659,15 @@ SELECT DISTINCT 89 + + - col1 AS col2 FROM tab0 AS cor0 WHERE col0 >= NULL # Datafusion - Expected - 85 # Datafusion - Expected - -91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "CAST\(\(\- \(\- cor0\.col0\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( col0 ) AS col0, CAST ( - ( + - col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +51 +85 +91 query I rowsort SELECT 65 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 @@ -59416,8 +60067,11 @@ SELECT DISTINCT 90 + col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- tab2\.col0\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( - + col0 ) + COUNT ( * ) AS col2, 42 AS col2 FROM tab2 +---- +42 +6 query I rowsort SELECT + col0 * - col0 * + + col2 AS col2 FROM tab0 @@ -60264,8 +60918,15 @@ SELECT DISTINCT MAX ( + 98 ) + - + 54 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - 2 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 2 AS col1, ( - col0 ) AS col1 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +2 +2 +2 query I rowsort SELECT - ( - - 41 ) FROM tab2 AS cor0 @@ -60596,8 +61257,15 @@ SELECT 91 * - col1 * + + 4 * - + 65 + - col2 AS col0 FROM tab1 # Datafusion - Expected - 1420 # Datafusion - Expected - 12 # Datafusion - Expected - 834 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \- tab2\.col0 AS col2" at position 0 and "\(\- tab2\.col1\) \+ Int64\(57\) \+ tab2\.col2 \* Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 58 - col0 AS col2, - col1 + 57 + col2 * 36 AS col2 FROM tab2 +---- +-17 +-6 +12 +1420 +2078 +834 query I rowsort SELECT ALL - 81 + col1 AS col1 FROM tab1 WHERE NOT col1 = NULL diff --git a/data/sqlite/random/aggregates/slt_good_2.slt b/data/sqlite/random/aggregates/slt_good_2.slt index c892935..425a6d3 100644 --- a/data/sqlite/random/aggregates/slt_good_2.slt +++ b/data/sqlite/random/aggregates/slt_good_2.slt @@ -283,8 +283,11 @@ SELECT * FROM tab0 AS cor0 WHERE 97 + + ( - 79 ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - -701 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT \(\- Int64\(\-27\)\)\) \+ Int64\(\-50\) AS col2" at position 0 and "Int64\(4\) \+ Int64\(15\) \* Int64\(\-47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MIN ( DISTINCT - - 27 ) + + - 50 AS col2, 4 + + 15 * - 47 AS col2 FROM tab2 AS cor0 +---- +-23 +-701 query I rowsort label-43 SELECT DISTINCT + 30 / + col1 + - - 90 AS col1 FROM tab1 AS cor0 @@ -1963,8 +1966,15 @@ SELECT DISTINCT - col1 * + - ( + - 66 ) FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 33 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 33 AS col2, + col1 AS col2 FROM tab0 AS cor0 +---- +1 +21 +33 +33 +33 +81 query I rowsort label-324 SELECT + 75 * CAST ( NULL AS INTEGER ) + + - col0 FROM tab1 AS cor0 @@ -2011,8 +2021,11 @@ SELECT ALL + ( - col0 ) * 70 + - + col0 FROM tab2 # 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\(1\) \* Int64\(23\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 1 * 23 AS col2, 0 AS col2 FROM tab2 +---- +0 +23 query I rowsort label-331 SELECT ALL + ( - COUNT ( - col2 ) ) AS col2 FROM tab1 @@ -2067,8 +2080,15 @@ SELECT DISTINCT - col0 + + 96 col2 FROM tab0 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - -54 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 54 AS col2, + col0 col2 FROM tab0 AS cor0 +---- +-54 +-54 +-54 +15 +87 +97 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE - ( - 44 ) NOT BETWEEN NULL AND NULL @@ -2283,8 +2303,15 @@ SELECT + - 24 + - - 94 * + col2 + 25 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -9603 # Datafusion - Expected - 32 # Datafusion - Expected - -705 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \+ \(\- cor0\.col0\) AS col2" at position 0 and "\(\- cor0\.col2\) \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + ( - col2 ) + - col0 AS col2, - col2 * + + col0 AS col2 FROM tab0 AS cor0 +---- +-705 +-77 +-870 +-9603 +2 +32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 @@ -2293,8 +2320,15 @@ SELECT ALL - + ( - col2 ) + - col0 AS col2, - col2 * + + col0 AS col2 FROM tab0 # Datafusion - Expected - 178865 # Datafusion - Expected - 48 # Datafusion - Expected - 178287 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ Int64\(71\) AS col2" at position 0 and "Int64\(87\) \* Int64\(\-24\) \* \(\- Int64\(85\)\) \+ \(\- cor0\.col2\) \+ Int64\(\-35\) \* \(\- cor0\.col2\) \- Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 + 71 AS col2, 87 * - 24 * - + 85 + - col2 + - 35 * - col2 - - 25 AS col2 FROM tab2 AS cor0 +---- +13 +178287 +178865 +179477 +31 +48 query I rowsort SELECT DISTINCT - col1 + 1 FROM tab1 AS cor0 WHERE 21 - - col1 IS NOT NULL @@ -2534,8 +2568,11 @@ SELECT DISTINCT - ( + + MIN ( DISTINCT ( col1 ) ) ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- cor0\.col2\)\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MIN ( + - ( col2 ) ) AS col2, + CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0 WHERE NOT + col1 * 48 * col2 IS NULL +---- +99 +NULL query I rowsort label-413 SELECT COUNT ( * ) * - ( + ( - - 57 ) ) FROM tab2 cor0 @@ -3196,8 +3233,11 @@ 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\(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\. +query II valuesort SELECT - 82 / + COUNT ( * ) - 70 AS col0, + ( - 93 ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 +---- +-79 +-93 query I rowsort label-524 SELECT DISTINCT - 46 * + - CAST ( + ( - COUNT ( * ) ) AS INTEGER ) + - ( + + COUNT ( * ) ) + - - COUNT ( * ) FROM tab2 AS cor0 @@ -3694,8 +3734,15 @@ SELECT ALL - col1 FROM tab2 WHERE NOT col1 / + col1 IS NOT NULL # Datafusion - Expected - -1925 # Datafusion - Expected - 58 # Datafusion - Expected - -1675 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col1" at position 0 and "cor0\.col1 \* \(\- Int64\(25\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 AS col1, + col1 * - ( 25 ) AS col1 FROM tab2 AS cor0 +---- +-1275 +-1675 +-1925 +23 +40 +58 query II rowsort label-615 SELECT ALL - CAST ( NULL AS INTEGER ) col0, col0 AS col2 FROM tab2 cor0 @@ -4213,8 +4260,15 @@ SELECT DISTINCT * FROM tab0 WHERE NOT + 87 BETWEEN NULL AND ( NULL ) # Datafusion - Expected - 56 # Datafusion - Expected - -99 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- 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 II valuesort SELECT DISTINCT + - col2 AS col2, + 56 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +56 +56 +56 query II rowsort label-698 SELECT ALL - ( 93 ) / + CAST ( - col1 AS INTEGER ) AS col0, col2 FROM tab0 AS cor0 WHERE NOT + 35 NOT IN ( col2 ) @@ -6115,8 +6169,15 @@ SELECT DISTINCT col0 + + ( - col0 ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - -77 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* \(\- cor0\.col1\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 77 * - col1 AS col2, + 67 AS col2 FROM tab0 AS cor0 +---- +-1617 +-6237 +-77 +67 +67 +67 query I rowsort SELECT DISTINCT - - 25 FROM tab2 WHERE NOT - 50 IS NULL @@ -6338,8 +6399,15 @@ SELECT * FROM tab0 WHERE NOT + col0 BETWEEN NULL AND NULL # Datafusion - Expected - -69 # Datafusion - Expected - 91 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(\-69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col2, - 69 AS col2 FROM tab1 AS cor0 +---- +-69 +-69 +-69 +51 +85 +91 query I rowsort SELECT DISTINCT + col2 * + ( + col1 ) - - 17 AS col1 FROM tab2 AS cor0 @@ -6437,8 +6505,15 @@ SELECT - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Expected - 41 # Datafusion - Expected - 5 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, + 41 AS col0 FROM tab1 AS cor0 +---- +14 +41 +41 +41 +47 +5 query II rowsort label-1054 SELECT ALL + 0, COUNT ( * ) col0 FROM tab0 AS cor0 @@ -7523,8 +7598,15 @@ NULL # Datafusion - Expected - -134 # Datafusion - Expected - 0 # Datafusion - Expected - -162 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col1 AS col0" at position 0 and "Int64\(\-66\) \- cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col1 + col1 AS col0, - 66 - + + col2 col0 FROM tab1 AS cor0 +---- +-125 +-134 +-162 +0 +0 +0 query I rowsort SELECT - col2 AS col0 FROM tab1 WHERE - col2 * 58 + - - col2 + col2 IS NULL @@ -7755,8 +7837,15 @@ SELECT ALL - col1 * - - col2 AS col0 FROM tab2 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, + col0 AS col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT DISTINCT - ( - + col1 ) * + col1 FROM tab0 AS cor0 @@ -7798,8 +7887,15 @@ SELECT col2 / - 50 - + 5 * - + col2 FROM tab2 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 69 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 AS col2, - col2 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +69 +69 +69 query II rowsort SELECT ALL + 57, col2 FROM tab1 AS cor0 @@ -8557,8 +8653,15 @@ SELECT MAX ( ALL 76 ) + - MIN ( DISTINCT ( + 69 ) ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ Int64\(10\) \+ \(\- CAST\(NULL AS Int32\)\) \- Int64\(\-2\) AS col1" at position 0 and "CAST\(cor0\.col2 AS Int32\) / CAST\(NULL AS Int32\) \* Int64\(\-69\) \- Int64\(\-4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 + + 10 + - ( + CAST ( NULL AS INTEGER ) ) - + - 2 AS col1, CAST ( col2 AS INTEGER ) / + CAST ( NULL AS INTEGER ) * - 69 - - 4 col1 FROM tab0 AS cor0 +---- +NULL +NULL +NULL +NULL +NULL +NULL query I rowsort label-1403 SELECT col1 AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL @@ -8682,8 +8785,11 @@ 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\(Int64\(1\)\) AS count\(\*\) / \(\- \(\- sum\(\(\- cor0\.col1\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( ALL 1 ) + 42 AS col2, + COUNT ( * ) / - - SUM ( - col1 ) AS col2 FROM tab1 AS cor0 +---- +0 +39 query I rowsort label-1423 SELECT DISTINCT - MIN ( - + 17 ) AS col2 FROM tab0 @@ -9944,8 +10050,15 @@ SELECT + col1, 95 AS col0 FROM tab2 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query III rowsort SELECT * FROM tab0 WHERE NOT + col1 + - - col0 > NULL @@ -10144,8 +10257,11 @@ SELECT DISTINCT - 80 * - col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 79 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +3 +79 query III rowsort SELECT * FROM tab0 cor0 WHERE NOT - 49 IS NULL @@ -11128,8 +11244,11 @@ SELECT 84 * + 69 * - col0 + - - col2 * 86 * + col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -332 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-15\) \* Int64\(20\) \+ \(\- Int64\(32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, - 15 * + 20 + - ( + + 32 ) AS col0 FROM tab2 cor0 +---- +-332 +3 query I rowsort SELECT - col0 * col0 - - col0 + - - col0 AS col0 FROM tab0 AS cor0 @@ -11284,8 +11403,10 @@ SELECT DISTINCT + col0 * + - col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 20558ed69dd41db6cef9b47e81e45c79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* \(\- tab2\.col1\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col1 * - col1 col1, col0 AS col1, - - col0 FROM tab2 +---- +9 values hashing to 24aec877d794b38029662545dcddf838 query II rowsort label-1861 SELECT ALL 31 * - COUNT ( * ) AS col2, 70 col0 FROM tab2 @@ -11368,8 +11489,15 @@ SELECT + col0 AS col2 FROM tab1 WHERE NULL IS NOT NULL # Datafusion - Expected - 53 # Datafusion - Expected - 97 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 col1, + 53 AS col1 FROM tab0 AS cor0 +---- +15 +53 +53 +53 +87 +97 query I rowsort label-1875 SELECT ALL - + COUNT ( * ) + + 29 FROM tab0 AS cor0 @@ -11434,8 +11562,15 @@ SELECT DISTINCT - - 95 FROM tab2 WHERE NOT ( + ( + - 60 ) ) * - + col2 / - ( + c # Datafusion - Expected - -8119 # Datafusion - Expected - 5 # Datafusion - Expected - -8110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "Int64\(83\) \* Int64\(\-97\) \- tab1\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, 83 * - 97 - col2 AS col2 FROM tab1 +---- +-8110 +-8119 +-8147 +14 +47 +5 query II rowsort label-1886 SELECT + col0 AS col1, - col0 / 79 AS col0 FROM tab2 @@ -11454,8 +11589,15 @@ SELECT + col0 AS col1, - col0 / 79 AS col0 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 10 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col0" at position 0 and "tab2\.col0 \* \(\- CAST\(NULL AS Float64\)\) \* \(\- CAST\(\(\- tab2\.col0\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL + 10 AS col0, col0 * + - CAST ( NULL AS FLOAT8 ) * - CAST ( - + col0 AS INTEGER ) AS col0 FROM tab2 +---- +10 +10 +10 +NULL +NULL +NULL query I rowsort SELECT DISTINCT + 99 FROM tab1 AS cor0 WHERE + col2 <> NULL @@ -12836,8 +12978,15 @@ SELECT col2 * - - 46 FROM tab0 # Datafusion - Expected - 91 # Datafusion - Expected - -96 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, + col0 AS col2 FROM tab1 +---- +-59 +-68 +-96 +51 +85 +91 query I rowsort SELECT ALL - col2 * - 94 col2 FROM tab0 @@ -12978,8 +13127,11 @@ SELECT ALL + col0 + - 54 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) / Int64\(73\) AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 36 / + 73 col0, + 53 col0 FROM tab1 cor0 CROSS JOIN tab2 cor1 +---- +0 +53 query I rowsort SELECT DISTINCT - + ( - - col0 ) + + col0 AS col1 FROM tab0 AS cor0 @@ -13333,8 +13485,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col0 ) IS NULL # Datafusion - Expected - -87 # Datafusion - Expected - 97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col2, - col0 AS col2 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +15 +87 +97 query I rowsort SELECT - col1 * + 26 AS col1 FROM tab2 AS cor0 @@ -13481,8 +13640,15 @@ SELECT - SUM ( - col2 ) FROM tab1 AS cor0 WHERE NOT ( col0 ) * + col0 < - - 45 # Datafusion - Expected - -67 # Datafusion - Expected - 19 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 19 AS col0, - col1 AS col0 FROM tab2 cor0 +---- +-51 +-67 +-77 +19 +19 +19 query I rowsort SELECT - 39 * + col1 AS col0 FROM tab2 AS cor0 @@ -14122,8 +14288,15 @@ SELECT + 83 * 95 AS col1 FROM tab0, tab0 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT DISTINCT + + ( - 77 ) AS col2 FROM tab2 WHERE 65 IS NOT NULL @@ -14441,8 +14614,15 @@ SELECT ALL ( + col1 ) col2, + 1 FROM tab0 # Datafusion - Expected - -4042 # Datafusion - Expected - -99 # Datafusion - Expected - -4042 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "Int64\(\-86\) \* Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, - 86 * 47 AS col1 FROM tab0 +---- +-10 +-4042 +-4042 +-4042 +-47 +-99 query II rowsort SELECT ALL + col2, col0 AS col0 FROM tab0 @@ -14479,8 +14659,15 @@ SELECT DISTINCT + 39, - 40 AS col2 FROM tab0 cor0 # Datafusion - Expected - 19 # Datafusion - Expected - 96 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - + col2 ) AS col0, 19 AS col0 FROM tab1 cor0 +---- +19 +19 +19 +59 +68 +96 query I rowsort SELECT - 93 * 92 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 @@ -14768,8 +14955,15 @@ SELECT DISTINCT + MIN ( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - -33281250 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* cor0\.col1 \* \(\- \(\- cor0\.col0\)\) \* \(\- Int64\(72\)\) \+ \(\- cor0\.col0\) \* \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 92 * ( + col1 ) * - - col0 * - + 72 + - col0 * - ( + col2 ) AS col2, + col0 AS col2 FROM tab2 AS cor0 +---- +-15538846 +-32640512 +-33281250 +46 +64 +75 query I rowsort SELECT DISTINCT + + col1 FROM tab2 AS cor0 WHERE NOT 50 + col1 * - 59 + - col0 BETWEEN col2 AND NULL @@ -14825,8 +15019,11 @@ SELECT + + 52 / + col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(65\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 16 col0, 65 + + COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +16 +68 query I rowsort label-2449 SELECT ALL - + SUM ( ALL + col1 ) AS col2 FROM tab2 AS cor0 @@ -15899,8 +16096,11 @@ SELECT DISTINCT - MIN ( + + ( + 80 ) ) col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 549 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 61 * + + COUNT ( * ) col0, + 11 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 +---- +11 +549 query I rowsort SELECT DISTINCT + col2 * 52 AS col1 FROM tab1 AS cor0 @@ -16934,8 +17134,15 @@ SELECT + col0 * - + 41 FROM tab0 AS cor0 # Datafusion - Expected - 59 # Datafusion - Expected - 91 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, + col2 AS col1 FROM tab1 AS cor0 +---- +51 +59 +68 +85 +91 +96 query II rowsort label-2809 SELECT + COUNT ( * ) AS col0, - COUNT ( - col0 ) FROM tab1 AS cor0 @@ -17557,8 +17764,15 @@ SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT col2 > NULL # Datafusion - Expected - -24 # Datafusion - Expected - -91 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \+ \(\- cor0\.col1\) AS col1" at position 0 and "Int64\(\-24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 77 + - col1 AS col1, ( + - 24 ) AS col1 FROM tab1 AS cor0 +---- +-124 +-24 +-24 +-24 +-82 +-91 query III rowsort SELECT * FROM tab0 cor0 WHERE NOT NULL <= + ( + col0 ) * + col1 @@ -17710,8 +17924,15 @@ SELECT DISTINCT - 55 * - + COUNT ( + 25 ) * - ( + COUNT ( * ) ) + 74 AS col0 FRO # Datafusion - Expected - 26 # Datafusion - Expected - -99 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - col2 ) AS col0, + 26 AS col0 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +26 +26 +26 query I rowsort SELECT - 42 + col0 FROM tab1 @@ -18880,8 +19101,15 @@ SELECT col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE - col2 # Datafusion - Expected - 87 # Datafusion - Expected - 9909 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- cor0\.col0\) \* \(\- cor0\.col1\) \* cor0\.col1 \- Int64\(\-11\) \+ cor0\.col2 \* cor0\.col2 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * - + col0 * - col1 * + col1 - + - 11 + + + col2 * + col2 AS col1, col0 AS col1 FROM tab0 cor0 +---- +15 +7973835 +805818 +87 +97 +9909 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col1 ) NOT IN ( col2 ) @@ -18999,8 +19227,15 @@ SELECT DISTINCT - ( + + COUNT ( * ) ) AS col2 FROM tab0 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 34 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 34 AS col0, + ( + col2 ) AS col0 FROM tab0 AS cor0 +---- +10 +34 +34 +34 +47 +99 query I rowsort SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT NULL <= NULL @@ -19117,8 +19352,15 @@ SELECT ALL + MIN ( + col2 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - -4459 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(\-91\) AS col1" at position 0 and "\(\- \(\- tab0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 49 * - 91 AS col1, ( - - col2 ) AS col1 FROM tab0 +---- +-4459 +-4459 +-4459 +10 +47 +99 query I rowsort label-3170 SELECT DISTINCT ( + + COUNT ( * ) ) AS col2 FROM tab1 @@ -19571,8 +19813,15 @@ SELECT DISTINCT + 44 AS col2 FROM tab0 WHERE ( NULL IN ( col1 * - ( - 87 ) * - 9 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2, col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-3243 SELECT - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 @@ -19601,8 +19850,15 @@ SELECT + col2 * - - col2 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 +---- +51 +67 +77 +NULL +NULL +NULL query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT ( - ( + - 72 ) ) * col2 - - ( - + col2 ) = + 86 @@ -19612,8 +19868,11 @@ SELECT * FROM tab0 AS cor0 WHERE NOT ( - ( + - 72 ) ) * col2 - - ( - + col2 ) = # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(45\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 45 AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +-45 +3 query I rowsort SELECT ALL - 50 * - + col2 * - col0 AS col1 FROM tab1 @@ -20626,8 +20885,15 @@ SELECT ALL + 45 * - col1 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, col0 AS col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query II rowsort SELECT - + col1, col1 AS col1 FROM tab1 AS cor0 @@ -20972,8 +21238,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) > - col1 - col1 # Datafusion - Expected - 82 # Datafusion - Expected - -80 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 80 AS col0, + 82 AS col0 FROM tab1 AS cor0 +---- +-80 +-80 +-80 +82 +82 +82 query I rowsort label-3465 SELECT + MAX ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0 @@ -21850,8 +22123,15 @@ SELECT DISTINCT + 73 * + + 19 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -20 # Datafusion - Expected - -97 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, - 20 AS col1 FROM tab0 AS cor0 +---- +-15 +-20 +-20 +-20 +-87 +-97 query I rowsort SELECT - col2 * col2 + - 59 col0 FROM tab1 cor0 @@ -21965,8 +22245,15 @@ SELECT 17 * + col1 AS col0 FROM tab1 # Datafusion - Expected - -40 # Datafusion - Expected - 75 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, - col2 AS col1 FROM tab2 +---- +-23 +-40 +-58 +46 +64 +75 query III rowsort SELECT ALL * FROM tab0 WHERE NOT + col0 IS NULL @@ -22120,8 +22407,9 @@ SELECT ALL ( + + col2 ) col2 FROM tab0 99 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 \* Int64\(31\) \* Int64\(77\) \+ Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, col0 * + 31 * 77 + 28 AS col2 FROM tab2 AS cor0 WHERE NULL > 5 +---- query I rowsort SELECT - + 60 + + - 21 FROM tab2 AS cor0 @@ -22409,8 +22697,15 @@ SELECT - + MIN ( DISTINCT + 39 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -91 # Datafusion - Expected - 96 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "\(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col0, - col0 AS col0 FROM tab1 +---- +-51 +-85 +-91 +59 +68 +96 query I rowsort SELECT DISTINCT 25 * - 48 FROM tab0 @@ -22819,8 +23114,15 @@ SELECT DISTINCT - - COUNT ( * ) * - 45 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -91 # Datafusion - Expected - -5 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, - col0 AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +-51 +-85 +-91 query I rowsort SELECT col2 * col1 + + 74 + + 76 + col1 FROM tab0 WHERE NOT - - 29 + + + col0 * + 64 / col2 * + col0 IS NOT NULL @@ -22881,8 +23183,15 @@ SELECT * FROM tab0 AS cor0 WHERE + col0 * - col0 < - col2 * + 31 + + - col1 # Datafusion - Expected - 2 # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- \(\- CAST\(NULL AS Int32\)\) \+ cor0\.col0 \+ \(\- \(\- cor0\.col2\)\) \+ \(\- cor0\.col2\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 - - CAST ( NULL AS INTEGER ) + + col0 + - - col2 + - col2 AS col0, 2 AS col0 FROM tab0 cor0 +---- +2 +2 +2 +NULL +NULL +NULL query III rowsort label-3784 SELECT * FROM tab2 WHERE CAST ( col1 AS INTEGER ) IS NOT NULL @@ -24434,8 +24743,15 @@ SELECT ALL - col2 * - + col2 * + 18 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col2, col2 AS col2 FROM tab2 cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-4047 SELECT DISTINCT - + 16 - MIN ( ALL col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL @@ -24992,8 +25308,11 @@ SELECT 23 + + COUNT ( * ) FROM tab0 # 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 "Int64\(35\) \+ count\(tab1\.col1\) AS col0" at position 0 and "Int64\(\-58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 + + COUNT ( col1 ) AS col0, - 58 col0 FROM tab1 +---- +-58 +38 query I rowsort SELECT ALL col2 + col1 * + 29 * 10 AS col2 FROM tab2 AS cor0 @@ -25255,8 +25574,15 @@ SELECT ALL 63 * col0 / - col0 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 73 # Datafusion - Expected - -580 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* CAST\(Int64\(58\) AS Int32\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 * + CAST ( + 58 AS INTEGER ) AS col1, 73 AS col1 FROM tab0 AS cor0 +---- +-2726 +-5742 +-580 +73 +73 +73 query I rowsort label-4184 SELECT - col1 * CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0 @@ -25594,8 +25920,11 @@ 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\(\(\- cor0\.col0\)\)\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( ALL - col0 ) col1, 12 AS col1 FROM tab1 AS cor0 +---- +-3 +12 query III rowsort label-4239 SELECT * FROM tab1 AS cor0 WHERE NOT col1 / - - CAST ( + col0 AS INTEGER ) IS NULL @@ -25673,8 +26002,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ), - COUNT ( * ) FROM tab0 AS cor0 +---- +-3 +-3 query I rowsort SELECT ALL - 70 * - 4 FROM tab1 AS cor0 @@ -25913,8 +26245,15 @@ SELECT col0 + - + 68 AS col2 FROM tab0 # Datafusion - Expected - 5015 # Datafusion - Expected - 6256 # Datafusion - Expected - 6188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col0 \+ cor0\.col2 AS col0" at position 0 and "cor0\.col2 \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 * + col0 + + col2 AS col0, + col2 * + col0 AS col0 FROM tab1 AS cor0 +---- +4896 +4992 +5015 +5074 +6188 +6256 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 + col0 IS NULL @@ -26126,8 +26465,15 @@ SELECT + + 53 * + - col1 * + col1 + - + col0 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 4186 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(46\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + col0 ) * 46 AS col0, 21 AS col0 FROM tab1 cor0 +---- +21 +21 +21 +2346 +3910 +4186 query I rowsort SELECT + - col0 * + + col1 AS col2 FROM tab0 AS cor0 @@ -26534,8 +26880,15 @@ SELECT DISTINCT - col2 + 16 + + 87 * - col1 FROM tab2 AS cor0 # Datafusion - Expected - -29 # Datafusion - Expected - 9 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col0" at position 0 and "CAST\(Int64\(\-29\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( + 9 ) AS col0, CAST ( - 29 AS INTEGER ) col0 FROM tab1 AS cor0 +---- +-29 +-29 +-29 +9 +9 +9 query I rowsort label-4387 SELECT - - MIN ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0 @@ -28179,14 +28532,24 @@ SELECT * FROM tab2 AS cor0 WHERE NOT col1 + + + col2 NOT BETWEEN - - 13 AND - + # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1, ( col1 ) FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 49 AS col1, 57 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL OR NOT + 46 IS NOT NULL +---- +49 +57 query I rowsort label-4669 SELECT ALL + MAX ( ALL col2 ) + - COUNT ( * ) + + COUNT ( * ) + + 79 FROM tab0 @@ -28788,8 +29151,11 @@ SELECT + CAST ( - - 74 AS INTEGER ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( 16 ) AS col2, COUNT ( * ) AS col2 FROM tab1 +---- +16 +3 query II rowsort SELECT ALL col1, ( + col1 ) + - - 6 AS col2 FROM tab0 WHERE - 74 * col1 IS NULL @@ -29601,8 +29967,15 @@ SELECT DISTINCT + + col1 * 5 FROM tab2 cor0 # Datafusion - Expected - 13 # Datafusion - Expected - 56 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col1" at position 0 and "Int64\(81\) \+ \(\- cor0\.col2\) \+ \(\- cor0\.col0\) \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 56 AS col1, ( 81 ) + - col2 + - col0 + + col0 AS col1 FROM tab1 AS cor0 +---- +-15 +13 +22 +56 +56 +56 query II rowsort SELECT 94, + col2 FROM tab2 AS cor0 @@ -29913,8 +30286,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) FROM tab2 +---- +-3 +-3 query II rowsort label-4946 SELECT + COUNT ( * ) AS col1, COUNT ( * ) FROM tab1 @@ -29948,8 +30324,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( DISTINCT col0 ) col1, - COUNT ( * ) AS col1 FROM tab1 +---- +-3 +3 query I rowsort SELECT ALL - col2 + - col1 * col1 * - 19 FROM tab2 AS cor0 @@ -29991,8 +30370,15 @@ NULL # Datafusion - Expected - 1058 # Datafusion - Expected - -24 # Datafusion - Expected - 2560 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ cor0\.col2 AS col0" at position 0 and "cor0\.col0 \* \(\- \(\- cor0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + + col2 AS col0, col0 * - - ( + ( col2 ) ) AS col0 FROM tab2 AS cor0 +---- +-17 +-23 +-24 +1058 +2560 +4350 query I rowsort SELECT ALL - - col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL @@ -30429,8 +30815,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE 46 IN ( 5 ) # Datafusion - Expected - 64 # Datafusion - Expected - 58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 AS col1, col0 AS col1 FROM tab2 AS cor0 +---- +23 +40 +46 +58 +64 +75 query I rowsort label-5036 SELECT DISTINCT col0 - CAST ( NULL AS INTEGER ) - + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL @@ -30945,8 +31338,11 @@ SELECT DISTINCT + 31 - + 96 FROM tab1 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 "\(\- cor0\.col2\) / \(\- cor0\.col0\) AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 / - col0 AS col0, 6 AS col0 FROM tab2 AS cor0 +---- +0 +6 query III rowsort SELECT * FROM tab1 WHERE NOT NULL IS NULL AND NOT + - col2 >= NULL @@ -31089,8 +31485,15 @@ SELECT - col1 AS col1 FROM tab1 WHERE NOT + 24 IS NOT NULL # Datafusion - Expected - 46 # Datafusion - Expected - 5 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 + ( - + col0 ) AS col2, 46 col2 FROM tab2 AS cor0 +---- +-8 +13 +46 +46 +46 +5 query I rowsort SELECT - col0 + - 32 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL @@ -32128,8 +32531,15 @@ SELECT + MIN ( - - col0 ) * + + 80 FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - 7 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 7 AS col0, col1 AS col0 FROM tab0 +---- +1 +21 +7 +7 +7 +81 query I rowsort label-5324 SELECT ALL - MAX ( + col2 ) col0 FROM tab2 @@ -32177,8 +32587,15 @@ SELECT ALL + SUM ( ALL 49 ) FROM tab1 # Datafusion - Expected - 36 # Datafusion - Expected - 98 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* Int64\(7\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * 7 AS col2, + ( 36 ) AS col2 FROM tab1 +---- +329 +35 +36 +36 +36 +98 query I rowsort label-5332 SELECT + 37 * + CAST ( - + ( + col1 ) AS INTEGER ) AS col0 FROM tab1 @@ -32263,8 +32680,15 @@ SELECT - + MIN ( + 62 ) * CAST ( - - 57 AS INTEGER ) FROM tab1 AS cor0 CROSS JOI # Datafusion - Expected - -58 # Datafusion - Expected - -77 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col1, - ( + col2 ) AS col1 FROM tab2 +---- +-23 +-40 +-51 +-58 +-67 +-77 query I rowsort label-5346 SELECT DISTINCT + SUM ( + - col2 ) FROM tab1 @@ -32702,8 +33126,15 @@ SELECT + 16 AS col1, col2 * + - col2 FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2, + col2 AS col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-5419 SELECT + ( + SUM ( ALL + col0 ) ) * - + SUM ( col2 ) - - COUNT ( * ) * SUM ( + - col2 ) AS col0 FROM tab2 AS cor0 @@ -33081,8 +33512,15 @@ SELECT * FROM tab1 AS cor0 WHERE col2 <= ( + 44 ) # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, + col0 col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT - col1 * + 37 AS col0 FROM tab0 AS cor0 @@ -34175,8 +34613,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 72 * + + 0 AS col0, - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL +---- +0 +0 query I rowsort label-5672 SELECT - COUNT ( * ) * 55 FROM tab2 WHERE NULL IS NOT NULL @@ -34185,8 +34626,10 @@ SELECT - COUNT ( * ) * 55 FROM tab2 WHERE NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 5dce72b6fe2673c9dba3cdd3e2d8b4b1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \* Int64\(\-30\) AS col2" at position 0 and "\(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 66 * - 30 AS col2, - col1 AS col2, + col1 col2 FROM tab0 +---- +9 values hashing to 346f2b55068484cdc8d3b1475c9a1a1b query I rowsort label-5674 SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 @@ -34743,8 +35186,15 @@ SELECT + col2 * + col2 + + 36 FROM tab1 AS cor0 # Datafusion - Expected - -5722 # Datafusion - Expected - NULL # Datafusion - Expected - -934 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- cor0\.col1\) \+ cor0\.col0 \+ cor0\.col2 \- \(\- Int64\(\-61\)\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) col1, - col1 + ( col0 ) + + + col2 - - - 61 * col0 AS col1 FROM tab0 AS cor0 +---- +-5231 +-5722 +-934 +NULL +NULL +NULL query I rowsort label-5765 SELECT col0 * + CAST ( + 25 AS INTEGER ) FROM tab2 AS cor0 @@ -34818,8 +35268,15 @@ SELECT ALL - - col0 * - 76 + - + 54 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 2 # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) / cor0\.col1 AS col2" at position 0 and "cor0\.col0 / cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col0 / col1 AS col2, col0 / + + col2 AS col2 FROM tab2 AS cor0 +---- +0 +0 +1 +1 +1 +2 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -35382,8 +35839,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 98 AS col1, COUNT ( * ) / 53 AS col1 FROM tab0 AS cor0 +---- +0 +98 query I rowsort SELECT ALL 14 * + 63 FROM tab0 @@ -35439,8 +35899,15 @@ SELECT DISTINCT - COUNT ( * ) AS col0, + 18 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 38 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "tab0\.col0 \+ \(\- tab0\.col2\) \+ \(\- \(\- tab0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 38 AS col0, + col0 + - col2 + - - col2 col0 FROM tab0 +---- +15 +38 +38 +38 +87 +97 query III rowsort SELECT * FROM tab2 WHERE NOT + 37 / col0 >= NULL @@ -35617,8 +36084,15 @@ SELECT ALL col0, + col2 + - 93 + col2 FROM tab0 # Datafusion - Expected - 6 # Datafusion - Expected - 44 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 44 AS col1, 6 col1 FROM tab0 +---- +44 +44 +44 +6 +6 +6 query I rowsort SELECT DISTINCT - + 38 FROM tab0 WHERE - 30 IS NOT NULL @@ -36554,8 +37028,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 <= NULL # Datafusion - Expected - -36800 # Datafusion - Expected - 4377 # Datafusion - Expected - -36800 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(CAST\(Int64\(\-50\) AS Float64\) AS Int32\)\) \* Int64\(86\) \- \(\- tab2\.col1\) AS col1" at position 0 and "Int64\(\-46\) \* Int64\(80\) \* \(\- Int64\(\-10\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( CAST ( - 50 AS FLOAT8 ) AS INTEGER ) * 86 - + - col1 AS col1, + ( - 46 ) * 80 * - ( - 10 ) AS col1 FROM tab2 +---- +-36800 +-36800 +-36800 +4351 +4367 +4377 query II rowsort SELECT DISTINCT - col2 * 39 * + col1, col2 FROM tab0 @@ -36853,8 +37334,15 @@ SELECT ALL * FROM tab2 WHERE NOT - col1 + - - ( - 15 ) < NULL # Datafusion - Expected - 58 # Datafusion - Expected - 5929 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* tab2\.col1 AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * col1 AS col0, + col2 AS col0 FROM tab2 +---- +23 +2601 +40 +4489 +58 +5929 query I rowsort SELECT DISTINCT col1 * + 34 AS col0 FROM tab2 @@ -39537,8 +40025,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) FROM tab0 +---- +-3 +-3 query I rowsort SELECT ALL - col1 + 57 col0 FROM tab2 @@ -40944,8 +41435,10 @@ SELECT DISTINCT - col0 * ( - + col1 ) * CAST ( 30 AS INTEGER ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a7b19251ddddb08173ba446cd028ce3e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "Int64\(\-11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 53 AS col2, - 11 AS col2, - col1 AS col0 FROM tab2 +---- +9 values hashing to 28bd663caf7b0dccb2a690850e5a97ad query II rowsort SELECT + col0 AS col1, col0 * + col2 + col2 - - col0 AS col2 FROM tab0 @@ -41346,8 +41839,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, 37 AS col2 FROM tab1, tab0 AS cor0 +---- +37 +9 query I rowsort SELECT + 80 * + 52 FROM tab2 @@ -42488,8 +42984,11 @@ SELECT 73 + - - 87 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -121 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "sum\(DISTINCT \(\- cor0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 60 + + COUNT ( * ) AS col0, SUM ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0 +---- +-121 +63 query I rowsort SELECT ALL - 43 - - - col1 AS col0 FROM tab1 @@ -42575,8 +43074,15 @@ SELECT - col2 AS col0, col1 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -58 # Datafusion - Expected - 529 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 * col2 AS col0, - col2 AS col0 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +1600 +3364 +529 query I rowsort SELECT ALL + 75 * col0 AS col1 FROM tab1 AS cor0 @@ -43431,8 +43937,15 @@ SELECT col0 col2 FROM tab0 WHERE NOT NULL IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - -36 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 36 AS col1, col2 AS col1 FROM tab0 +---- +-36 +-36 +-36 +10 +47 +99 query I rowsort SELECT - col0 * + - 21 FROM tab2 WHERE NOT NULL IS NOT NULL @@ -43529,8 +44042,11 @@ SELECT ALL + col0 * - col2 * - 4 + + col1 - - 50 + + col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(cor0\.col2\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - COUNT ( + col2 ) AS col1, + COUNT ( * ) col1 FROM tab2 cor0 +---- +3 +3 query III rowsort SELECT * FROM tab2 AS cor0 WHERE + 56 < col2 * 16 @@ -43581,8 +44097,15 @@ SELECT DISTINCT col1 + - + 84 AS col2 FROM tab0 # Datafusion - Expected - 92 # Datafusion - Expected - -3032 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) \- Int64\(\-31\) \* \(\- tab1\.col2\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 56 - - 31 * - col2 AS col0, + 92 AS col0 FROM tab1 +---- +-1885 +-2164 +-3032 +92 +92 +92 query I rowsort SELECT - col1 - - 36 AS col2 FROM tab1 @@ -44196,8 +44719,9 @@ SELECT + COUNT ( * ) + + - MIN ( + 99 ) FROM tab0 AS cor0 -96 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, - col1 AS col0 FROM tab0 AS cor0 WHERE + ( + col1 ) IS NULL +---- query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 76 * - col0 AND - col2 @@ -45015,8 +45539,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT - 69 IS NOT NULL # Datafusion - Expected - 2469 # Datafusion - Expected - -99 # Datafusion - Expected - 5173 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "Int64\(52\) \* tab0\.col2 \- Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 col1, 52 * + + col2 - - 25 AS col1 FROM tab0 +---- +-10 +-47 +-99 +2469 +5173 +545 query III rowsort SELECT ALL * FROM tab2 WHERE ( - col2 * col1 ) IN ( 33 ) @@ -45085,8 +45616,15 @@ SELECT ALL - col1 + - ( + - col0 ) FROM tab0 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - -77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col1, - col1 FROM tab2 AS cor0 +---- +-51 +-51 +-67 +-67 +-77 +-77 query I rowsort label-7488 SELECT - + 47 + - 14 / - - ( + 52 ) FROM tab0 AS cor0 @@ -45948,8 +46486,15 @@ SELECT - 17 AS col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL # Datafusion - Expected - -47 # Datafusion - Expected - -5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, - col1 AS col1 FROM tab1 +---- +-14 +-14 +-47 +-47 +-5 +-5 query I rowsort label-7635 SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) FROM tab2 @@ -46629,8 +47174,15 @@ NULL # Datafusion - Expected - -99 # Datafusion - Expected - 945 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* cor0\.col1 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 45 * + col1 AS col1, - col2 AS col1 FROM tab0 cor0 +---- +-10 +-47 +-99 +3645 +45 +945 query I rowsort SELECT ALL + 80 + col1 * + 27 + + col0 + + - 16 FROM tab2 AS cor0 @@ -46769,8 +47321,15 @@ SELECT ALL col2 AS col1, - 22 FROM tab2 AS cor0 # Datafusion - Expected - -3731 # Datafusion - Expected - 96 # Datafusion - Expected - -2091 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(41\) \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, 41 * + - col0 AS col0 FROM tab1 AS cor0 +---- +-2091 +-3485 +-3731 +59 +68 +96 query II rowsort SELECT DISTINCT col0, ( - 17 ) FROM tab1 AS cor0 @@ -46789,8 +47348,15 @@ SELECT DISTINCT col0, ( - 17 ) FROM tab1 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 77 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 77 AS col1, + col0 col1 FROM tab0 AS cor0 +---- +15 +77 +77 +77 +87 +97 query II rowsort SELECT + col0, - 43 FROM tab0 AS cor0 @@ -47105,8 +47671,11 @@ SELECT DISTINCT - ( - col0 ) * + col1 + col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 19 AS col2, + COUNT ( * ) AS col2 FROM tab2 +---- +-19 +3 query III rowsort SELECT DISTINCT * FROM tab1 WHERE ( col2 ) IS NULL @@ -47693,8 +48262,10 @@ SELECT - SUM ( - + 32 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 5b3eed277cfa606205eb42455fe9b74a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 1 and "\(\- tab1\.col0\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col1, + 94 AS col2, - + col0 col2 FROM tab1 +---- +9 values hashing to 6384105c2b18fbf1118545de339aedfd query II rowsort SELECT 64, 46 AS col2 FROM tab2 @@ -48183,8 +48754,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + 44 col1, COUNT ( * ) - - ( COUNT ( * ) ) + - 4 col1 FROM tab0 cor0 +---- +2 +44 query I rowsort label-8000 SELECT 45 + col1 col1 FROM tab0 cor0 WHERE NOT NULL IN ( - CAST ( col0 AS INTEGER ) ) @@ -48216,8 +48790,15 @@ SELECT ALL - CAST ( NULL AS FLOAT8 ) + + col0 FROM tab1 AS cor0 WHERE ( NULL ) I # Datafusion - Expected - 133 # Datafusion - Expected - -320 # Datafusion - Expected - 139 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* Int64\(4\) AS col0" at position 0 and "\(\- tab1\.col1\) \+ tab1\.col0 \+ tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 80 * 4 AS col0, - col1 + + + col0 + col2 AS col0 FROM tab1 +---- +-320 +-320 +-320 +112 +133 +139 query I rowsort label-8005 SELECT - MAX ( - ( 10 ) ) * - ( + 19 ) AS col2 FROM tab2 @@ -49011,8 +49592,11 @@ SELECT ALL 17 * - MAX ( ALL - col2 ) * + + COUNT ( * ) col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(27\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col2, - COUNT ( + 27 ) AS col2 FROM tab2 +---- +-3 +3 query II rowsort label-8145 SELECT ALL CAST ( AVG ( col2 ) AS INTEGER ) AS col2, - CAST ( - MAX ( DISTINCT - + 46 ) AS INTEGER ) FROM tab2 @@ -50163,8 +50747,15 @@ SELECT + SUM ( ALL 90 ) * + 46 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -135 # Datafusion - Expected - -91 # Datafusion - Expected - -1269 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(27\) \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - + col0 ) AS col2, 27 * + - col1 col2 FROM tab1 AS cor0 +---- +-1269 +-135 +-378 +-51 +-85 +-91 query I rowsort label-8332 SELECT ALL + ( + ( + CAST ( NULL AS INTEGER ) ) ) FROM tab0 @@ -50312,8 +50903,15 @@ SELECT col1 * ( + + 60 ), 24 AS col1 FROM tab1 # Datafusion - Expected - -295 # Datafusion - Expected - 88 # Datafusion - Expected - -3196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col2" at position 0 and "\(\- tab1\.col2\) \* tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 88 AS col2, - col2 * col1 AS col2 FROM tab1 +---- +-1344 +-295 +-3196 +88 +88 +88 query I rowsort SELECT + + col1 AS col1 FROM tab2 WHERE NOT NULL <= + + 32 @@ -50789,8 +51387,11 @@ 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\(Int64\(1\)\) AS count\(\*\) / max\(tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 41 AS col0, COUNT ( * ) / + + MAX ( + col2 ) AS col0 FROM tab0 +---- +0 +41 query I rowsort label-8434 SELECT SUM ( DISTINCT + col1 ) AS col2 FROM tab0 @@ -51684,8 +52285,11 @@ SELECT CAST ( + col0 AS INTEGER ) * + - col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab1 +---- +3 +3 query I rowsort SELECT 5 * + - col1 * 39 AS col0 FROM tab2 @@ -51729,8 +52333,11 @@ SELECT - col0 * + col2 col2, + col1 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + - COUNT ( * ) ) AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 +---- +9 +9 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE 40 IS NOT NULL @@ -51748,8 +52355,15 @@ SELECT * FROM tab2 AS cor0 WHERE ( col0 ) IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-8601 SELECT ALL + 19 * + + 14 + - COUNT ( * ) + 37 FROM tab1 AS cor0 @@ -52679,8 +53293,15 @@ SELECT MAX ( DISTINCT - col0 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -2360 # Datafusion - Expected - 75 # Datafusion - Expected - -3422 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(59\) \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, 59 * - col2 AS col2 FROM tab2 AS cor0 +---- +-1357 +-2360 +-3422 +46 +64 +75 query II rowsort label-8754 SELECT + SUM ( 26 ), COUNT ( * ) / + 14 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 @@ -53181,8 +53802,15 @@ SELECT DISTINCT * FROM tab2 WHERE - 19 IS NOT NULL # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 34 * + + CAST ( NULL AS INTEGER ) AS col0, col1 AS col0 FROM tab1 +---- +14 +47 +5 +NULL +NULL +NULL query I rowsort SELECT + + col2 AS col0 FROM tab2 AS cor0 WHERE 40 <= + col0 @@ -53306,8 +53934,15 @@ SELECT + col2, - col1 / - col0 / + col1 * - - col0 FROM tab0 AS cor0 WHERE ( NUL # Datafusion - Expected - 1820 # Datafusion - Expected - -68544 # Datafusion - Expected - 1020 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col1 \* cor0\.col0 AS col2" at position 0 and "cor0\.col0 \* Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 * col1 * + col0 col2, col0 * 20 col2 FROM tab1 AS cor0 +---- +-25075 +-290836 +-68544 +1020 +1700 +1820 query I rowsort SELECT ALL - col2 - + - col0 FROM tab1 @@ -54772,8 +55407,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 64 * - 59 IS NOT NULL # Datafusion - Expected - 53 # Datafusion - Expected - 81 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 col2, 53 AS col2 FROM tab0 AS cor0 +---- +1 +21 +53 +53 +53 +81 query II rowsort label-9100 SELECT ALL 18 AS col0, + 30 * + COUNT ( * ) FROM tab0 AS cor0 @@ -55040,8 +55682,9 @@ SELECT DISTINCT + - col2 * - col2 - + 53 AS col1 FROM tab0 AS cor0 9748 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(\-83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( col2 ) AS col0, - 83 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL +---- query I rowsort label-9141 SELECT + SUM ( ALL - col0 ) AS col2 FROM tab0 AS cor0 @@ -55690,8 +56333,15 @@ SELECT 45 + col0 - - 48 AS col1 FROM tab0 # Datafusion - Expected - -75 # Datafusion - Expected - -77 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col0" at position 0 and "\(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, - col0 AS col0 FROM tab2 +---- +-46 +-51 +-64 +-67 +-75 +-77 query I rowsort SELECT ALL - ( - 73 ) AS col0 FROM tab1 @@ -56185,8 +56835,11 @@ SELECT - CAST ( + 77 AS INTEGER ) / + + 50 / - - col0 * - 9 - + col1 AS col0 FRO # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 195 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT Int64\(72\)\) AS col1" at position 0 and "\(\- sum\(\(\- cor0\.col1\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( DISTINCT + 72 ) AS col1, ( + - SUM ( - col1 ) ) col1 FROM tab2 AS cor0 +---- +1 +195 query I rowsort SELECT col2 + - - 66 FROM tab1 AS cor0 @@ -56510,8 +57163,11 @@ SELECT ALL 15 - - col0 AS col2 FROM tab1 AS cor0 # 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 "min\(cor0\.col2\) AS col1" at position 0 and "Int64\(\-96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( + col2 ) AS col1, - 96 AS col1 FROM tab1 AS cor0 WHERE - CAST ( + col0 AS INTEGER ) NOT BETWEEN col0 * - col1 AND + 79 +---- +-96 +NULL query I rowsort label-9382 SELECT ALL - 39 - - SUM ( ALL col0 ) FROM tab0 AS cor0 @@ -56691,8 +57347,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 68 col2, COUNT ( DISTINCT ( - col1 ) ) col1, - - 89 * - - COUNT ( * ) AS col1 FROM tab0 +---- +267 +3 +68 query I rowsort label-9411 SELECT DISTINCT - 21 + CAST ( - + col0 AS INTEGER ) FROM tab2 @@ -56760,8 +57420,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - 19 ) col1, - COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +-3 +19 query II rowsort SELECT DISTINCT + col1 AS col1, col0 * - col0 FROM tab2 @@ -57184,8 +57847,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( ALL - + 11 ) col1, - COUNT ( * ) AS col1 FROM tab1 +---- +-11 +-3 query I rowsort SELECT DISTINCT - - col0 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL @@ -58689,8 +59355,15 @@ NULL # Datafusion - Expected - -1 # Datafusion - Expected - 450 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* tab0\.col0 AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 30 * + col0 AS col0, - col1 AS col0 FROM tab0 +---- +-1 +-21 +-81 +2610 +2910 +450 query I rowsort SELECT - col0 * 92 * - 66 AS col0 FROM tab1 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_20.slt b/data/sqlite/random/aggregates/slt_good_20.slt index 4a00f15..0616d40 100644 --- a/data/sqlite/random/aggregates/slt_good_20.slt +++ b/data/sqlite/random/aggregates/slt_good_20.slt @@ -113,8 +113,15 @@ SELECT - - ( + 88 ) + - - col2 FROM tab0 AS cor0 # Datafusion - Expected - -37 # Datafusion - Expected - -246 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \* Int64\(43\) \- Int64\(\-50\) \+ cor0\.col0 \+ Int64\(\-96\) AS col1" at position 0 and "Int64\(\-16\) \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 5 * 43 - - 50 + + col0 + - 96 AS col1, - 16 + - col1 AS col1 FROM tab0 cor0 +---- +-164 +-17 +-174 +-246 +-37 +-97 query III rowsort SELECT * FROM tab0 AS cor0 WHERE - ( 83 ) IS NULL @@ -305,8 +312,9 @@ SELECT * FROM tab0 WHERE NOT - col0 * - - col0 IS NULL 9 values hashing to c4b42765dff94eaaa46040e537fb43b7 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col0" at position 0 and "Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 85 AS col0, - 60 AS col0 FROM tab2 AS cor0 WHERE NOT col1 + - + CAST ( col1 AS INTEGER ) + + + col0 * + + col0 NOT IN ( - + 58 * CAST ( + + col0 AS INTEGER ) ) +---- query I rowsort label-43 SELECT DISTINCT 4 * + - COUNT ( * ) AS col0 FROM tab1 AS cor0 @@ -368,8 +376,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - COUNT ( * ) AS col2, 74 AS col2 FROM tab1 AS cor0 +---- +-3 +74 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -822,8 +833,15 @@ SELECT + - 22 + 85 - 29 * col2 FROM tab0 AS cor0 # Datafusion - Expected - -46 # Datafusion - Expected - 189 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \- tab1\.col1 \* \(\- \(\- tab1\.col0\)\) \- tab1\.col0 \+ tab1\.col2 \+ \(\- tab1\.col2\) \+ Int64\(75\) \* tab1\.col1 \+ Int64\(58\) / Int64\(68\) AS col0" at position 0 and "\(\- Int64\(\-95\)\) / Int64\(88\) \+ \(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 - + col1 * - - col0 - + col0 + + + col2 + - col2 + + + 75 * + col1 + + + 58 / + 68 AS col0, - ( - 95 ) / + 88 + ( - col1 ) AS col0 FROM tab1 +---- +-13 +-194 +-4 +-46 +-911 +189 query I rowsort SELECT 94 - + 63 AS col2 FROM tab0 AS cor0 @@ -1110,8 +1128,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) AS col2, - 20 AS col2 FROM tab1 AS cor0 +---- +-20 +-3 query I rowsort label-166 SELECT - CAST ( + 31 AS INTEGER ) AS col2 FROM tab2 AS cor0 @@ -2480,8 +2501,15 @@ SELECT ALL col2 + + + ( + - 42 ) * + col0 FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - 9604 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- \(\- cor0\.col2\)\) \- \(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * - - col2 - - col1 AS col0, + col1 AS col0 FROM tab0 AS cor0 +---- +1 +21 +786 +81 +891 +9604 query I rowsort label-395 SELECT ALL + COUNT ( - 9 ) + 2 AS col0 FROM tab2 AS cor0 @@ -2510,8 +2538,15 @@ SELECT DISTINCT - 90 AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1 # Datafusion - Expected - 66 # Datafusion - Expected - 58 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-58\)\) AS col0" at position 0 and "Int64\(3\) \+ \(\- Int64\(\-63\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 58 ) AS col0, 3 + - - 63 AS col0 FROM tab2 AS cor0 +---- +58 +58 +58 +66 +66 +66 query I rowsort label-399 SELECT - COUNT ( ALL - CAST ( + - col0 AS INTEGER ) ) * 70 AS col2 FROM tab0 AS cor0 @@ -3353,8 +3388,15 @@ SELECT ALL MIN ( - - col1 ) AS col0 FROM tab2 # Datafusion - Expected - -68 # Datafusion - Expected - 96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "\(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, - col2 col0 FROM tab1 +---- +-59 +-68 +-96 +59 +68 +96 query II rowsort SELECT ALL col0, - col0 FROM tab2 WHERE NOT NULL < NULL @@ -4004,8 +4046,15 @@ NULL # Datafusion - Expected - 64 # Datafusion - Expected - -75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col1, col0 AS col1 FROM tab2 AS cor0 WHERE ( + col1 * - 51 ) IS NOT NULL +---- +-46 +-64 +-75 +46 +64 +75 query I rowsort label-641 SELECT MIN ( + + ( + col0 ) ) AS col0 FROM tab1 AS cor0 @@ -4302,8 +4351,11 @@ SELECT * FROM tab0 WHERE - ( col1 ) 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 col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 78 AS col0, 10 AS col0 FROM tab2 +---- +10 +78 query I rowsort SELECT col2 * - 65 col2 FROM tab2 @@ -4329,8 +4381,15 @@ SELECT ALL - ( 6 ) * COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 # Datafusion - Expected - 85 # Datafusion - Expected - -1 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 / \(\- tab1\.col0\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 / + - col0 AS col1, + col0 AS col1 FROM tab1 +---- +-1 +-1 +-1 +51 +85 +91 query I rowsort SELECT DISTINCT 96 + - 67 * - + col2 + col0 FROM tab2 AS cor0 @@ -5726,8 +5785,9 @@ SELECT + 77 + + - col0 AS col1 FROM tab0 AS cor0 62 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* \(\- tab2\.col2\) AS col2" at position 0 and "Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 35 * + - col2 AS col2, 32 AS col2 FROM tab2 WHERE NULL IS NOT NULL +---- query I rowsort label-928 SELECT - SUM ( ALL col0 ) FROM tab1 AS cor0 WHERE - 53 <> - - 11 @@ -6082,8 +6142,15 @@ SELECT DISTINCT 35 + + - col2 AS col1 FROM tab1 cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0, + col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT ALL - 46 * 22 * - - col0 + + + col1 FROM tab0 AS cor0 @@ -6121,8 +6188,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 17 AS col0, COUNT ( * ) * 25 AS col0 FROM tab0 +---- +17 +75 query I rowsort label-995 SELECT DISTINCT 90 + - COUNT ( * ) AS col1 FROM tab2 @@ -6839,8 +6909,15 @@ SELECT ALL - 22 - + col1 FROM tab2 AS cor0 # Datafusion - Expected - 33 # Datafusion - Expected - 33 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \- Int64\(66\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 - 66 AS col2, 33 AS col2 FROM tab0 AS cor0 +---- +-19 +-56 +33 +33 +33 +33 query II rowsort label-1109 SELECT col2 * - 15 + + + 18 * col2 AS col2, - 6 FROM tab1 WHERE + col1 + + col2 > CAST ( col0 AS INTEGER ) @@ -6904,8 +6981,15 @@ SELECT DISTINCT - + 23 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 89 # Datafusion - Expected - 715 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) \* \(\- Int64\(55\)\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 13 * - ( + + 55 ) col0, 89 AS col0 FROM tab0 AS cor0 +---- +715 +715 +715 +89 +89 +89 query I rowsort SELECT + ( - - 55 ) AS col1 FROM tab0 AS cor0 @@ -6939,8 +7023,15 @@ SELECT DISTINCT - COUNT ( + 94 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 3144 # Datafusion - Expected - 35 # Datafusion - Expected - 3961 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 0 and "cor0\.col1 \* cor0\.col2 \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 AS col2, col1 * col2 + col0 col2 FROM tab2 AS cor0 +---- +1219 +3144 +35 +35 +35 +3961 query I rowsort SELECT + 43 * + + 27 * + - col0 FROM tab1 @@ -7160,8 +7251,15 @@ SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE - 2 <= col2 / - col0 # Datafusion - Expected - 67 # Datafusion - Expected - -67 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 67 AS col0, col1 col0 FROM tab2 +---- +-67 +-67 +-67 +51 +67 +77 query I rowsort SELECT + col2 * + 15 * 2 FROM tab1 @@ -7933,8 +8031,11 @@ SELECT ALL - + 69 + + - 59 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(cor0\.col1\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MIN ( + + col1 ) AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +1 +3 query I rowsort label-1295 SELECT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 + col2 IS NULL @@ -8518,8 +8619,11 @@ SELECT + 27 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, 4 AS col0 FROM tab1 +---- +3 +4 query I rowsort label-1391 SELECT ALL - 4 + + + COUNT ( * ) FROM tab0 AS cor0 @@ -9035,8 +9139,15 @@ SELECT DISTINCT + 43 + + ( - col1 ) + 48 AS col1 FROM tab1 # Datafusion - Expected - 18 # Datafusion - Expected - 99 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ Int64\(0\) AS col2" at position 0 and "\(\- tab0\.col2\) \+ Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 + + 0 col2, - col2 + + 65 AS col2 FROM tab0 +---- +-34 +10 +18 +47 +55 +99 query III rowsort SELECT DISTINCT * FROM tab2 cor0 WHERE - ( - + col0 ) IS NULL @@ -9639,8 +9750,15 @@ SELECT - MIN ( ALL - - col2 ) / + 29 FROM tab1 AS cor0 # Datafusion - Expected - 54 # Datafusion - Expected - -91 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 AS col1, 54 AS col1 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +54 +54 +54 query I rowsort label-1575 SELECT MAX ( - 59 ) AS col1 FROM tab0 @@ -9856,8 +9974,15 @@ SELECT ALL - 2 AS col0, col2 FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - -54 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \+ \(\- \(\- \(\- tab2\.col0\)\)\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 21 ) + - ( - - col0 ) AS col1, col0 AS col1 FROM tab2 +---- +-25 +-43 +-54 +46 +64 +75 query I rowsort SELECT col0 + - - 30 AS col2 FROM tab1 @@ -10362,8 +10487,15 @@ SELECT ALL + ( - col2 ) + 32 - + 29 FROM tab0 cor0 # Datafusion - Expected - 1 # Datafusion - Expected - -97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, 1 AS col0 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +1 +1 +1 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 72 * - ( + col1 ) * col0 NOT BETWEEN - col2 AND col0 @@ -10851,8 +10983,15 @@ SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT NULL >= NULL ) # Datafusion - Expected - -64 # Datafusion - Expected - 97 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* tab0\.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 II valuesort SELECT col1 * + + col0 AS col2, - 64 col2 FROM tab0 +---- +-64 +-64 +-64 +1215 +1827 +97 query I rowsort SELECT ALL col1 * + + 0 AS col0 FROM tab0 @@ -10952,8 +11091,11 @@ SELECT ALL - MAX ( ALL col2 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -219 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(min\(Int64\(\-1\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 73 * - COUNT ( * ) AS col0, + CAST ( + + MIN ( + - 1 ) AS INTEGER ) AS col0 FROM tab0 +---- +-1 +-219 query I rowsort SELECT ALL + 83 * - col0 col1 FROM tab1 @@ -10993,8 +11135,15 @@ SELECT col0 FROM tab0 WHERE NOT - - ( col0 ) IN ( + col1 ) # Datafusion - Expected - -73 # Datafusion - Expected - -58 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(\-73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - col2 ) AS col2, - 73 AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +-73 +-73 +-73 query I rowsort SELECT DISTINCT col1 + + 55 * + 63 AS col0 FROM tab2 AS cor0 @@ -12164,8 +12313,15 @@ SELECT + - COUNT ( * ) / + 51 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, col2 AS col0 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-1985 SELECT ALL - SUM ( DISTINCT - 97 ) AS col0 FROM tab0 @@ -12533,8 +12689,15 @@ SELECT 99 * + 14 * - col2 * + col1, + col1 col1 FROM tab2 AS cor0 # Datafusion - Expected - -20 # Datafusion - Expected - -88 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col2" at position 0 and "\(\- Int64\(65\)\) \+ Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 88 AS col2, - ( 65 ) + 45 AS col2 FROM tab0 AS cor0 +---- +-20 +-20 +-20 +-88 +-88 +-88 query I rowsort label-2043 SELECT ALL - SUM ( + 60 ) col1 FROM tab0 AS cor0 @@ -14230,8 +14393,15 @@ SELECT DISTINCT 88, + 64 col2 FROM tab0 # Datafusion - Expected - -68 # Datafusion - Expected - -96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "\(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, - col2 AS col2 FROM tab1 +---- +-59 +-59 +-68 +-68 +-96 +-96 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -15149,8 +15319,15 @@ SELECT ALL + 31 * + - col2 AS col1 FROM tab1 # Datafusion - Expected - 101 # Datafusion - Expected - 330 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* tab0\.col2 AS col0" at position 0 and "tab0\.col2 \+ \(\- tab0\.col0\) \+ tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 33 * col2 col0, col2 + - col0 + + col2 AS col0 FROM tab0 +---- +-67 +101 +1551 +3267 +330 +79 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT + col0 * col2 IS NULL @@ -16092,8 +16269,15 @@ SELECT ALL MIN ( + 30 ) FROM tab2 # Datafusion - Expected - 55 # Datafusion - Expected - -96 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "\(\- CAST\(Int64\(\-55\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 col2, - CAST ( - 55 AS INTEGER ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL +---- +-59 +-68 +-96 +55 +55 +55 query I rowsort label-2633 SELECT + ( MIN ( col1 ) ) FROM tab0 @@ -16324,8 +16508,9 @@ SELECT DISTINCT + ( 3 ) FROM tab2 3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, col1 AS col0 FROM tab0 WHERE NOT + col1 = NULL +---- query I rowsort label-2670 SELECT col2 + - CAST ( NULL AS INTEGER ) / - col1 FROM tab0 @@ -17414,8 +17599,15 @@ NULL # Datafusion - Expected - 79 # Datafusion - Expected - -93 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \- Int64\(93\) AS col1" at position 0 and "Int64\(33\) \+ tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 0 - + 93 AS col1, 33 + + col0 AS col1 FROM tab2 +---- +-93 +-93 +-93 +108 +79 +97 query I rowsort SELECT DISTINCT + 51 * + col0 FROM tab1 @@ -17947,8 +18139,15 @@ SELECT ALL - col1 FROM tab2 WHERE NOT + col0 IS NULL # Datafusion - Expected - 21 # Datafusion - Expected - 4 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 4 col0, + col1 AS col0 FROM tab0 +---- +1 +21 +4 +4 +4 +81 query I rowsort label-2926 SELECT + COUNT ( * ) / - 35 + SUM ( - + 9 ) AS col1 FROM tab1 @@ -18626,8 +18825,15 @@ SELECT - + 2 / - CAST ( + col1 AS INTEGER ) - col0 AS col1 FROM tab2 WHERE NOT - # Datafusion - Expected - 30 # Datafusion - Expected - -78 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 78 AS col2, 30 AS col2 FROM tab1 +---- +-78 +-78 +-78 +30 +30 +30 query I rowsort SELECT + col0 * - + 25 AS col1 FROM tab0 @@ -18678,8 +18884,11 @@ SELECT ALL + col2 / 77 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + COUNT ( * ) / + COUNT ( * ) AS col1, 87 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 +---- +-1 +87 query I rowsort SELECT - - 13 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 @@ -21698,8 +21907,15 @@ SELECT DISTINCT 78 * - col0 + - - col1 AS col2 FROM tab0 # Datafusion - Expected - -67 # Datafusion - Expected - 0 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 + + - col0 AS col1, - col1 AS col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +0 +0 +0 query III rowsort label-3543 SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 - + col1 * - CAST ( col1 AS INTEGER ) + + 26 NOT IN ( + col0 ) @@ -22069,8 +22285,15 @@ NULL # Datafusion - Expected - -47 # Datafusion - Expected - -3654 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* \(\- tab0\.col1\) \* Int64\(2\) AS col1" at position 0 and "\(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * + - col1 * 2 AS col1, - col2 col1 FROM tab0 +---- +-10 +-194 +-2430 +-3654 +-47 +-99 query II rowsort SELECT col0, - col1 FROM tab0 cor0 WHERE NOT 3 IS NULL @@ -22136,8 +22359,10 @@ SELECT * FROM tab1 AS cor0 WHERE NOT - 65 * - col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to d5aa5275597b1b244ad90c688909bf2d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-17\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + CAST ( NULL AS INTEGER ) col0, 80, - 17 AS col0 FROM tab2 AS cor0 +---- +9 values hashing to a777a94ae0da2025bb2f6759a0bc43ce query I rowsort SELECT + 84 col1 FROM tab1 @@ -22570,8 +22795,11 @@ SELECT MIN ( ALL - + col0 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, 16 AS col0 FROM tab0 cor0 +---- +16 +3 query I rowsort label-3686 SELECT ALL - 49 FROM tab1 AS cor0 WHERE ( NOT ( ( NOT + 39 - + CAST ( NULL AS INTEGER ) >= + - col0 ) ) ) @@ -22620,8 +22848,15 @@ SELECT DISTINCT - 5 + + 35 AS col1 FROM tab0 # Datafusion - Expected - 77 # Datafusion - Expected - -77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, + 77 AS col0 FROM tab2 +---- +-51 +-67 +-77 +77 +77 +77 query I rowsort SELECT + col2 + - + col0 AS col0 FROM tab0 AS cor0 @@ -22895,8 +23130,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab0 +---- +-3 +3 query I rowsort SELECT col2 * + - col1 + ( - - 87 ) AS col1 FROM tab2 @@ -23483,8 +23721,15 @@ SELECT ALL * FROM tab0 WHERE - - col1 <> ( CAST ( 96 AS INTEGER ) ) # Datafusion - Expected - 15 # Datafusion - Expected - -5 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col2, + 15 col2 FROM tab1 +---- +-14 +-47 +-5 +15 +15 +15 query II rowsort SELECT - col1, + 67 AS col2 FROM tab2 @@ -25531,8 +25776,15 @@ SELECT COUNT ( * ), + SUM ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -2537 # Datafusion - Expected - NULL # Datafusion - Expected - -4327 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(23\) \+ \(\- cor0\.col2\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 23 + + ( + - col2 ) * + col0 AS col0 FROM tab2 AS cor0 +---- +-1035 +-2537 +-4327 +NULL +NULL +NULL query II rowsort SELECT + 61 AS col0, + ( + + col2 ) * ( + 17 ) FROM tab1 AS cor0 @@ -27170,8 +27422,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT 31 IS NOT NULL # Datafusion - Expected - 23 # Datafusion - Expected - 84 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col2\) \+ cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col1 + - + ( col2 ) + + col0 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +101 +23 +40 +58 +74 +84 query III rowsort SELECT DISTINCT * FROM tab0 WHERE ( NOT NULL <= ( 87 * 88 * 28 + - col1 * - - col0 ) ) @@ -27299,8 +27558,15 @@ SELECT ALL - ( + 51 ) FROM tab2 cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 99 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 99 ) AS col1, col0 col1 FROM tab2 +---- +46 +64 +75 +99 +99 +99 query I rowsort label-4464 SELECT ALL ( + + COUNT ( * ) ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1 @@ -27470,8 +27736,15 @@ SELECT ALL 14, - ( - col2 ) * + col0 - + - col0 col0 FROM tab0 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - 75 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(75\) AS Int32\) AS col2" at position 0 and "\(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( + + 75 AS INTEGER ) AS col2, - col0 col2 FROM tab1 +---- +-51 +-85 +-91 +75 +75 +75 query II rowsort label-4493 SELECT DISTINCT + - 97, SUM ( DISTINCT col1 ) * + - 90 AS col1 FROM tab0 WHERE NOT 26 IS NOT NULL @@ -28963,8 +29236,15 @@ SELECT * FROM tab1 AS cor0 WHERE 5 >= 18 + + - 8 # Datafusion - Expected - -7230 # Datafusion - Expected - 84 # Datafusion - Expected - -8328 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-84\)\) AS col0" at position 0 and "\(\- cor0\.col0\) \* cor0\.col0 \+ \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 84 AS col0, - col0 * + col0 + - col1 AS col0 FROM tab1 AS cor0 +---- +-2615 +-7230 +-8328 +84 +84 +84 query I rowsort SELECT ALL 43 FROM tab1 AS cor0 WHERE NOT + col0 > ( + 75 * - 2 + 80 * + + col1 ) @@ -29303,8 +29583,15 @@ SELECT * FROM tab0 WHERE ( NOT ( + 85 * col0 ) IS NULL ) # Datafusion - Expected - 94 # 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\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 55 AS col2, 94 AS col2 FROM tab2 +---- +55 +55 +55 +94 +94 +94 query I rowsort label-4795 SELECT ALL + COUNT ( * ) + - COUNT ( DISTINCT + col1 ) col1 FROM tab1 AS cor0 @@ -29851,8 +30138,15 @@ SELECT - 53 + 78 * 21 AS col2 FROM tab1 # Datafusion - Expected - 1 # Datafusion - Expected - 32 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ \(\- tab0\.col0\) AS col1" at position 0 and "Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + - col0 AS col1, 1 AS col1 FROM tab0 +---- +-77 +1 +1 +1 +2 +32 query I rowsort SELECT + col1 + + col2 + + - col2 FROM tab2 @@ -29924,8 +30218,15 @@ SELECT ALL + MAX ( ALL - + col1 ) col1 FROM tab2 AS cor0 # Datafusion - Expected - 10 # Datafusion - Expected - -931491 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col0\) \* cor0\.col2 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 * - col0 * + + col2 AS col0, col2 col0 FROM tab0 AS cor0 +---- +-10575 +-75690 +-931491 +10 +47 +99 query I rowsort SELECT - col0 * col1 FROM tab0 WHERE NOT + ( - col2 ) >= col1 @@ -29937,8 +30238,11 @@ SELECT - col0 * col1 FROM tab0 WHERE NOT + ( - col2 ) >= col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 AS col0, + COUNT ( * ) AS col0 FROM tab1 +---- +3 +77 query I rowsort label-4901 SELECT ALL 59 / + - 41 FROM tab2 @@ -31010,8 +31314,9 @@ SELECT + COUNT ( + - 26 ) FROM tab2 AS cor0 3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / \(\- cor0\.col0\) \* \(\- cor0\.col1\) \* \(\- \(\- cor0\.col2\)\) \* \(\- cor0\.col2\) \+ Int64\(12\) \+ \(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + col0 ) / - col0 * - col1 * - - col2 * + - col2 + + 12 + + + ( - - col0 ) AS col0, ( - col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> NULL +---- query I rowsort SELECT - + col2 FROM tab1 AS cor0 WHERE NOT col2 * ( + 88 ) < - ( 4 ) @@ -31444,8 +31749,15 @@ SELECT + + CAST ( - 57 AS INTEGER ) col1, 76 FROM tab0 AS cor0 # Datafusion - Expected - -231 # Datafusion - Expected - 97 # Datafusion - Expected - -100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col1\) \* cor0\.col2 \+ \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + ( col0 ) AS col2, - col1 * + + col2 + + - col1 AS col2 FROM tab0 AS cor0 +---- +-100 +-231 +-3888 +15 +87 +97 query I rowsort label-5150 SELECT ALL - MIN ( + + 96 ) AS col1 FROM tab1 @@ -32103,8 +32415,15 @@ SELECT ALL * FROM tab2 WHERE ( + col0 ) >= NULL # Datafusion - Expected - -4489 # Datafusion - Expected - -74 # Datafusion - Expected - -2601 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \- cor0\.col1 AS col2" at position 0 and "cor0\.col1 \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 - col1 AS col2, col1 * + ( - col1 ) AS col2 FROM tab2 AS cor0 +---- +-117 +-125 +-2601 +-4489 +-5929 +-74 query I rowsort SELECT - col1 * col2 + - 79 FROM tab0 AS cor0 @@ -32534,8 +32853,15 @@ SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT col0 > ( col0 ) # Datafusion - Expected - -21 # Datafusion - Expected - -81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col1, - col1 FROM tab0 AS cor0 +---- +-1 +-1 +-21 +-21 +-81 +-81 query I rowsort SELECT ALL + col2 FROM tab0 AS cor0 WHERE col2 IN ( 72 * + - col0 / + + 21, - 24 ) @@ -32777,8 +33103,15 @@ SELECT ALL + col1 FROM tab0 WHERE ( ( NULL BETWEEN - col1 AND NULL ) ) # Datafusion - Expected - -4275 # Datafusion - Expected - 97 # Datafusion - Expected - -4275 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 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 II valuesort SELECT ALL + col0 AS col2, 75 * + - 57 AS col2 FROM tab0 AS cor0 +---- +-4275 +-4275 +-4275 +15 +87 +97 query I rowsort SELECT - 21 + + col0 col2 FROM tab2 AS cor0 @@ -32877,8 +33210,15 @@ SELECT DISTINCT - - 81 * + COUNT ( * ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -21 # Datafusion - Expected - -5 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 5 AS col1, - col1 AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-5 +-5 +-5 +-81 query I rowsort label-5391 SELECT + MIN ( - - col1 ) AS col0 FROM tab1 cor0 @@ -32899,8 +33239,11 @@ SELECT * FROM tab0 WHERE NOT + - col0 * - col2 * CAST ( - 7 AS INTEGER ) IS NOT # Datafusion - Datafusion expected results: # Datafusion - Expected - 147 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(49\) AS col1" at position 0 and "Int64\(20\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) * + 49 AS col1, + 20 * + COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +147 +60 query I rowsort label-5395 SELECT ALL - - col2 * + col0 / + - col0 + - + 52 + - col0 FROM tab1 AS cor0 @@ -33128,8 +33471,11 @@ SELECT + - 19 * - + col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4459 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT cor0\.col0\) \* Int64\(49\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( DISTINCT + col0 ) * 49 AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +3 +4459 query I rowsort SELECT DISTINCT - + col2 * - col0 * 45 AS col2 FROM tab0 AS cor0 @@ -34079,8 +34425,15 @@ SELECT ALL + MAX ( ALL col1 ) FROM tab1 AS cor0 # Datafusion - Expected - -21 # Datafusion - Expected - 5 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col1 \+ \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, col1 + - col2 AS col0 FROM tab1 AS cor0 +---- +-21 +-54 +-82 +14 +47 +5 query I rowsort label-5581 SELECT - COUNT ( * ) * 76 + + + 27 FROM tab2 @@ -34284,8 +34637,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 * 95 AS col2, - COUNT ( * ) * + 21 AS col2 FROM tab2 AS cor0 +---- +-1900 +-63 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 IN ( + ( - col1 ) ) @@ -34953,8 +35309,11 @@ SELECT ALL * FROM tab2 WHERE NOT ( + 57 + - ( col2 ) ) BETWEEN ( + col0 ) AND NU # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- \(\- cor0\.col0\)\)\)\) AS col2" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( - - col0 ) AS col2, - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0 +---- +-51 +3 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 + col2 ) >= col1 + - ( - 56 ) @@ -36500,8 +36859,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 23 - - COUNT ( * ) AS col2, - 31 AS col2 FROM tab0 AS cor0 +---- +-31 +26 query III rowsort SELECT * FROM tab0 AS cor0 WHERE col0 * + col2 IS NULL @@ -36714,8 +37076,11 @@ SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + col0 / col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- Int64\(89\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col2, - ( + 89 ) col2 FROM tab2 +---- +-89 +3 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -37980,8 +38345,15 @@ SELECT ALL - + col2 * col2 + - col1 * 61 AS col0 FROM tab1 cor0 # Datafusion - Expected - 2290 # Datafusion - Expected - 7 # Datafusion - Expected - 9802 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "tab0\.col2 \* tab0\.col2 \+ tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 AS col0, col2 * col2 + + col1 AS col0 FROM tab0 +---- +121 +2290 +7 +7 +7 +9802 query I rowsort SELECT - col1 col2 FROM tab1 WHERE NOT - col1 BETWEEN NULL AND - + 29 @@ -38130,8 +38502,15 @@ SELECT - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) = - 60 * + + col2 # Datafusion - Expected - 23 # Datafusion - Expected - 21 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-21\)\) AS col0" at position 0 and "Int64\(70\) \+ \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 21 AS col0, + 70 + + - col2 AS col0 FROM tab0 cor0 +---- +-29 +21 +21 +21 +23 +60 query I rowsort SELECT + col1 * col2 * + - col1 FROM tab0 AS cor0 @@ -38415,8 +38794,11 @@ SELECT DISTINCT CAST ( - - 21 AS INTEGER ) + - - SUM ( col0 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 45 AS col2, + COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-45 +3 query III rowsort SELECT * FROM tab0 cor0 WHERE + 54 IN ( col1 ) @@ -38521,8 +38903,15 @@ SELECT - COUNT ( * ) / 46 FROM tab2 AS cor0 # Datafusion - Expected - 150212 # Datafusion - Expected - 59 # Datafusion - Expected - 1700 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "cor0\.col1 \* Int64\(68\) \* \(\- \(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 59 AS col1, + col1 * 68 * - - col1 AS col1 FROM tab1 AS cor0 +---- +13328 +150212 +1700 +59 +59 +59 query I rowsort label-6325 SELECT + + SUM ( col1 ) FROM tab0 AS cor0 @@ -38556,8 +38945,10 @@ SELECT ALL - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE 16 <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to d9e6193657df37d9c15f92b3d0a19a32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col2 AS col2, + 86 col2, - - col1 FROM tab1 AS cor0 +---- +9 values hashing to 1aff7b0e59f8cf42239ea2de50bf8269 query I rowsort SELECT - + 4 * 33 + - col2 FROM tab0 cor0 @@ -38642,8 +39033,11 @@ SELECT ALL 1 * col0, - col1 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-46\)\) AS col0" at position 0 and "\(\- min\(Int64\(6\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( - 46 ) AS col0, + ( - MIN ( 6 ) ) AS col0 FROM tab2 AS cor0 +---- +-46 +-6 query I rowsort SELECT - - col2 FROM tab0 AS cor0 WHERE NOT + ( - 25 ) > col2 @@ -39313,8 +39707,15 @@ SELECT DISTINCT * FROM tab0 cor0 WHERE - 62 * + 87 BETWEEN NULL AND NULL # Datafusion - Expected - 2501 # Datafusion - Expected - -58 # Datafusion - Expected - 2153 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(33\) \* cor0\.col1 \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 AS col1, 33 * + col1 + - ( col2 ) AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +1660 +2153 +2501 query I rowsort SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL @@ -39347,8 +39748,11 @@ SELECT ALL 52, CAST ( - ( 46 ) AS INTEGER ) * col2 AS col1 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "min\(\(\- \(\- cor0\.col0\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, MIN ( - - col0 ) AS col0 FROM tab0 AS cor0 +---- +15 +3 query I rowsort SELECT DISTINCT 70 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) @@ -39381,8 +39785,15 @@ NULL # Datafusion - Expected - -47 # Datafusion - Expected - 69 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 69 ) AS col2, - col2 col2 FROM tab0 cor0 +---- +-10 +-47 +-99 +69 +69 +69 query II rowsort label-6456 SELECT + col1 * - col1 AS col1, - col0 * col0 / col1 + + col2 * - col1 FROM tab0 AS cor0 @@ -39498,8 +39909,15 @@ NULL # Datafusion - Expected - 74 # Datafusion - Expected - 75 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( col0 ) AS col2, 74 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL +---- +46 +64 +74 +74 +74 +75 query I rowsort label-6475 SELECT DISTINCT SUM ( - + 46 ) FROM tab2 AS cor0 @@ -41152,8 +41570,9 @@ SELECT ALL - ( 32 ) FROM tab1, tab1 AS cor0 WHERE NOT NULL IS NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col2" at position 0 and "cor0\.col0 \* cor0\.col1 \* Int64\(43\) \- \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 50 col2, col0 * ( + col1 ) * + + 43 - - col0 AS col2 FROM tab2 AS cor0 WHERE NULL <> NULL +---- query I rowsort label-6754 SELECT DISTINCT - MAX ( DISTINCT - 71 ) FROM tab1 AS cor0 @@ -41760,8 +42179,15 @@ SELECT ALL 47, col2 FROM tab1 AS cor0 # Datafusion - Expected - 44 # Datafusion - Expected - 22 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) / Int64\(\-14\) \+ Int64\(29\) AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 99 / - 14 + + 29 col2, 44 AS col2 FROM tab0 AS cor0 +---- +22 +22 +22 +44 +44 +44 query III rowsort SELECT DISTINCT * FROM tab0 WHERE + col2 + - col0 <= NULL @@ -42340,8 +42766,15 @@ SELECT ( MAX ( col2 ) ) AS col2 FROM tab0 # Datafusion - Expected - -295 # Datafusion - Expected - 91 # Datafusion - Expected - -2773 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "Int64\(\-59\) \* tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, - 59 * col1 col1 FROM tab1 +---- +-2773 +-295 +-826 +51 +85 +91 query I rowsort SELECT + col2 * - 22 * - col2 AS col0 FROM tab0 @@ -43653,8 +44086,15 @@ SELECT ALL + 67 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) # Datafusion - Expected - 0 # Datafusion - Expected - 75 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "tab2\.col2 \+ \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, + col2 + - col2 AS col2 FROM tab2 +---- +0 +0 +0 +46 +64 +75 query I rowsort label-7173 SELECT + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 @@ -43679,8 +44119,11 @@ SELECT 45, 94 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 60 AS col2, + 28 AS col2 FROM tab0 AS cor0 +---- +28 +60 query I rowsort SELECT ALL 19 col1 FROM tab2 cor0 WHERE NOT NULL < NULL @@ -43919,8 +44362,11 @@ SELECT ALL + 38, - COUNT ( * ) * + 18 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "max\(tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, MAX ( + col2 ) AS col1 FROM tab0 +---- +3 +99 query III rowsort label-7217 SELECT DISTINCT * FROM tab1 WHERE NOT + col0 / + + 79 + - col1 + col0 * + col1 BETWEEN col0 + CAST ( col2 AS FLOAT8 ) * + + col1 / col1 AND ( + col2 ) @@ -45883,8 +46329,15 @@ SELECT DISTINCT + 99 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col1 AND NULL # Datafusion - Expected - 0 # Datafusion - Expected - 62 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "\(\- cor0\.col1\) / Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 62 AS col1, - col1 / 75 AS col1 FROM tab0 AS cor0 +---- +-1 +0 +0 +62 +62 +62 query I rowsort label-7551 SELECT + - SUM ( ALL col1 ) AS col0 FROM tab0 AS cor0 @@ -46360,8 +46813,15 @@ SELECT col2 AS col2, col0 * ( - + 24 ) + - 42 FROM tab0 AS cor0 # Datafusion - Expected - 2686 # Datafusion - Expected - -96 # Datafusion - Expected - 2686 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(79\) \* Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col0, + 79 * 34 AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +2686 +2686 +2686 query I rowsort label-7625 SELECT DISTINCT - - COUNT ( * ) * - 87 FROM tab0 cor0 @@ -46674,8 +47134,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( DISTINCT + 75 ) - + MAX ( DISTINCT - 54 ) AS col0, - COUNT ( * ) + + - 92 AS col0 FROM tab0 AS cor0 +---- +-95 +129 query I rowsort SELECT ALL - + 88 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + - col2 / + col1 / - col0 @@ -47079,8 +47542,15 @@ SELECT + col2 * + col0 - + col1 AS col2 FROM tab1 # Datafusion - Expected - 46 # Datafusion - Expected - -1 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) / Int64\(43\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 / + + 43 col0, 46 AS col0 FROM tab2 AS cor0 +---- +-1 +-1 +-1 +46 +46 +46 query I rowsort SELECT DISTINCT 90 * + 75 FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND NULL @@ -48066,8 +48536,11 @@ SELECT col2 FROM tab0 WHERE NOT + col1 NOT IN ( + 99 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 AS col0, COUNT ( * ) AS col0 FROM tab1 +---- +22 +3 query II rowsort SELECT ALL + 56 AS col0, 3 + - col0 * col2 FROM tab2 @@ -48756,8 +49229,15 @@ SELECT + - COUNT ( * ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 1215 # Datafusion - Expected - 98 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ tab0\.col0 AS col1" at position 0 and "tab0\.col1 \* tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 + + col0 AS col1, + col1 * col0 AS col1 FROM tab0 +---- +108 +1215 +1827 +96 +97 +98 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT - - 68 > - col1 @@ -48975,8 +49455,15 @@ SELECT ALL + MIN ( DISTINCT + + col0 ) FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "tab2\.col1 \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 AS col1, col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 +---- +82 +82 +82 +NULL +NULL +NULL query I rowsort label-8059 SELECT DISTINCT + 75 / - col0 + - + col1 AS col2 FROM tab0 @@ -49718,8 +50205,15 @@ SELECT DISTINCT + + col0 * - col0 AS col2 FROM tab2 cor0 # Datafusion - Expected - -3364 # Datafusion - Expected - 91 # Datafusion - Expected - -529 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col0" at position 0 and "cor0\.col2 \* \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 AS col0, + col2 * - + col2 AS col0 FROM tab2 AS cor0 +---- +-1600 +-3364 +-529 +91 +91 +91 query I rowsort SELECT + ( - + ( + col2 ) ) FROM tab1 @@ -49963,8 +50457,11 @@ SELECT ALL 69 + - - 65 + + + col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(0\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 0 AS col0, + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +0 +6 query I rowsort SELECT 92 * col1 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL @@ -51040,8 +51537,15 @@ SELECT ALL SUM ( - + CAST ( + + 61 AS INTEGER ) ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 1 # 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 "cor0\.col1 / cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 AS col1, col1 / + col0 AS col1 FROM tab2 AS cor0 +---- +0 +1 +1 +39 +39 +39 query I rowsort SELECT ALL + col0 * col2 * + - col0 AS col1 FROM tab2 @@ -51135,8 +51639,15 @@ SELECT + MAX ( + - col0 ) + COUNT ( * ) * + - 6 FROM tab1 # Datafusion - Expected - 81 # Datafusion - Expected - 84 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 84 col0, + 81 AS col0 FROM tab0 +---- +81 +81 +81 +84 +84 +84 query III rowsort label-8412 SELECT * FROM tab2 WHERE NULL <= + 38 / col1 * + CAST ( NULL AS INTEGER ) * col2 + - 10 @@ -52408,8 +52919,15 @@ NULL # Datafusion - Expected - 75 # Datafusion - Expected - 74 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col2 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + + col2 AS col2, col0 AS col2 FROM tab2 AS cor0 +---- +117 +125 +46 +64 +74 +75 query I rowsort SELECT col2 + - + 57 FROM tab2 @@ -53262,8 +53780,15 @@ SELECT ALL col2 + - - 25 col0 FROM tab2 # Datafusion - Expected - -23 # Datafusion - Expected - 54 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ \(\- cor0\.col1\) \+ Int64\(56\) AS col2" at position 0 and "CAST\(Int64\(\-56\) AS Int32\) \+ Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + - + col1 + + 56 col2, CAST ( - 56 AS INTEGER ) + 33 AS col2 FROM tab0 AS cor0 +---- +-106 +-23 +-23 +-23 +14 +54 query II rowsort SELECT ALL + - 4 + col1 - - + col1 AS col0, 37 col1 FROM tab1 AS cor0 @@ -54143,8 +54668,15 @@ SELECT DISTINCT COUNT ( * ) * + SUM ( col1 ) * + - 40 FROM tab1 # Datafusion - Expected - -64 # Datafusion - Expected - 5925 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* tab2\.col0 AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 79 * + col0 AS col1, - col0 AS col1 FROM tab2 +---- +-46 +-64 +-75 +3634 +5056 +5925 query I rowsort SELECT ALL - col1 * + col0 * + - 85 FROM tab0 @@ -55950,8 +56482,15 @@ SELECT ALL - col1 + + 74 FROM tab2 AS cor0 # Datafusion - Expected - -58 # Datafusion - Expected - 77 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col2, - col2 AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +51 +67 +77 query I rowsort label-9185 SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE ( - 11 + + col1 ) BETWEEN NULL AND col0 @@ -56376,8 +56915,15 @@ SELECT - - col1 AS col1, + col1 * - col1 * col1 + + col2 FROM tab1 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - 48 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-48\)\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 48 col0, 77 col0 FROM tab2 AS cor0 +---- +48 +48 +48 +77 +77 +77 query I rowsort SELECT ALL 90 * - + col1 + + col0 FROM tab2 AS cor0 @@ -56403,8 +56949,15 @@ SELECT - col0 AS col1, 1 FROM tab2 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - -75 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(0\) \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col1, 0 * + - col2 AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +0 +0 +0 query II rowsort SELECT - col0 * + col2, col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL AND NULL IS NOT NULL @@ -56427,8 +56980,15 @@ SELECT MAX ( - + 30 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 80 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 80 AS col2, + col0 col2 FROM tab2 AS cor0 +---- +46 +64 +75 +80 +80 +80 query I rowsort label-9266 SELECT ALL MIN ( + 37 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL @@ -57000,8 +57560,15 @@ SELECT - col0 + 24 / + CAST ( NULL AS FLOAT8 ) * - col2 * + + col1 AS col2 FROM # Datafusion - Expected - 3216 # Datafusion - Expected - -77 # Datafusion - Expected - 3696 -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 \* Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, + col1 * + 48 AS col0 FROM tab2 cor0 +---- +-51 +-67 +-77 +2448 +3216 +3696 query I rowsort label-9360 SELECT DISTINCT - col1 / 39 AS col0 FROM tab1 AS cor0 @@ -57498,8 +58065,9 @@ SELECT DISTINCT - MIN ( col1 ) + MAX ( DISTINCT - + 39 ) + + + COUNT ( * ) AS co -87 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col1" at position 0 and "\(\- CAST\(\(\- Int64\(98\)\) AS Int32\)\) \- cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 44 AS col1, - CAST ( ( - + 98 ) AS INTEGER ) - col1 AS col1 FROM tab0 AS cor0 WHERE - 13 = NULL +---- query I rowsort label-9437 SELECT DISTINCT + - 27 - - CAST ( + + col2 AS INTEGER ) * - 71 + + - col1 FROM tab0 AS cor0 @@ -58813,8 +59381,15 @@ SELECT * FROM tab2 AS cor0 WHERE - 21 NOT IN ( + 37 ) # Datafusion - Expected - -3481 # Datafusion - Expected - -81 # Datafusion - Expected - -3450 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col1" at position 0 and "\(\- Int64\(\-53\)\) \* Int64\(\-66\) \+ tab0\.col2 \+ \(\- Int64\(\-77\)\) / tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 col1, - ( - 53 ) * + - 66 + col2 + - - 77 / col2 AS col1 FROM tab0 +---- +-1 +-21 +-3399 +-3450 +-3481 +-81 query I rowsort label-9653 SELECT ALL - MIN ( ALL - - col0 ) AS col2 FROM tab1 @@ -59992,8 +60567,9 @@ SELECT ALL - 80 / 14 + col1 FROM tab2 cor0 72 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col0, ( + col1 ) col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL +---- query I rowsort SELECT ALL - - 90 * + + 30 + + col2 + + col2 FROM tab1 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_21.slt b/data/sqlite/random/aggregates/slt_good_21.slt index 15d638a..59ed018 100644 --- a/data/sqlite/random/aggregates/slt_good_21.slt +++ b/data/sqlite/random/aggregates/slt_good_21.slt @@ -128,8 +128,15 @@ SELECT SUM ( DISTINCT + 56 ) AS col1 FROM tab0 # Datafusion - Expected - 99 # Datafusion - Expected - -380 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* Int64\(\-38\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * - 38 AS col1, col2 AS col1 FROM tab0 +---- +-1786 +-3762 +-380 +10 +47 +99 query II rowsort label-16 SELECT DISTINCT + MIN ( DISTINCT + - col2 ) AS col0, + SUM ( DISTINCT - col1 ) * COUNT ( * ) - MAX ( 11 ) FROM tab1 @@ -670,8 +677,15 @@ SELECT DISTINCT - col1 col1 FROM tab0 cor0 WHERE NOT col2 + + 74 IS NOT NULL # Datafusion - Expected - -13 # Datafusion - Expected - 58 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, - 13 AS col1 FROM tab2 AS cor0 +---- +-13 +-13 +-13 +23 +40 +58 query I rowsort SELECT DISTINCT - 89 col1 FROM tab1 AS cor0 @@ -2273,8 +2287,15 @@ SELECT DISTINCT * FROM tab1 WHERE - - col2 > + + col0 / - 18 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 AS col0, + col2 AS col0 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT col1 * + 34 AS col1 FROM tab0 AS cor0 @@ -2614,8 +2635,15 @@ SELECT - 94 + + + SUM ( - ( - col2 ) ) FROM tab1 AS cor0 # Datafusion - Expected - -26 # Datafusion - Expected - -34 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ \(\- tab1\.col0\) \+ \(\- Int64\(34\)\) AS col0" at position 0 and "Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + - + col0 + - + 34 AS col0, - 26 AS col0 FROM tab1 +---- +-26 +-26 +-26 +-34 +-34 +-34 query I rowsort SELECT col0 * - 38 + + + 40 * - col2 AS col0 FROM tab2 @@ -3613,8 +3641,10 @@ SELECT col2 col2, + 84 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 4bf9a40949df687290fae7d109a67a16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col2" at position 0 and "Int64\(\-70\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 24 AS col2, - 47 * + - col1 + col1 AS col1, + - 70 AS col2 FROM tab0 AS cor0 +---- +9 values hashing to dbec655d78a757108a32d19a12170cfd query I rowsort label-599 SELECT + SUM ( DISTINCT - - ( + col2 ) ) AS col2 FROM tab0 AS cor0 @@ -4036,8 +4066,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 2 AS col1, - COUNT ( * ) * + + 16 / 75 / - MAX ( - col2 ) AS col1 FROM tab0 AS cor0 +---- +-2 +0 query I rowsort SELECT - - col1 * + - 64 AS col2 FROM tab1 AS cor0 @@ -4309,8 +4342,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +-3 +3 query I rowsort label-717 SELECT 49 * - - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL < NULL @@ -5061,8 +5097,11 @@ SELECT DISTINCT + col0 AS col2, 9 - col0 * + + col0 + + + col2 AS col0 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 col1" at position 0 and "count\(Int64\(\-49\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 49 AS col1, COUNT ( - 49 ) AS col1 FROM tab2 cor0 +---- +-49 +3 query I rowsort SELECT 35 FROM tab0 AS cor0 WHERE NOT col1 <= + + col0 * + + col0 @@ -5234,8 +5273,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 83 AS col2, + ( - - COUNT ( * ) ) AS col2 FROM tab2 +---- +-83 +3 query I rowsort SELECT + col1 * - - 20 * - col0 FROM tab0 @@ -6889,8 +6931,15 @@ SELECT DISTINCT - - 83 * COUNT ( * ) * - 48 * + COUNT ( * ) + + 80 FROM tab0 AS # Datafusion - Expected - 27 # Datafusion - Expected - -91 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(86\) \+ \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col0 col0, 86 + + - col2 AS col0 FROM tab1 cor0 +---- +-10 +-51 +-85 +-91 +18 +27 query I rowsort SELECT col0 AS col0 FROM tab0 AS cor0 WHERE col2 + + 78 IS NOT NULL @@ -7017,8 +7066,11 @@ SELECT ALL - + col1 AS col0 FROM tab0 WHERE NOT - - col2 > NULL # 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\(\(\- tab2\.col2\)\)\) AS col1" at position 0 and "Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( + - col2 ) AS col1, + 71 AS col1 FROM tab2 +---- +-3 +71 query I rowsort label-1163 SELECT - 27 + + + 74 * COUNT ( * ) AS col1 FROM tab1 AS cor0 @@ -7712,8 +7764,15 @@ SELECT + CAST ( + - col0 AS INTEGER ) AS col1, col0 AS col0 FROM tab1 cor0 # Datafusion - Expected - 714 # Datafusion - Expected - 81 # Datafusion - Expected - 3082 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(74\) \+ cor0\.col2 \* Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( col1 ) AS col2, 74 + + col2 * + + 64 col2 FROM tab0 AS cor0 +---- +1 +21 +3082 +6410 +714 +81 query I rowsort label-1276 SELECT - - ( col0 ) / col0 AS col1 FROM tab1 AS cor0 @@ -7953,8 +8012,11 @@ SELECT COUNT ( * ), + 73 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, - ( + COUNT ( * ) ) - + + COUNT ( * ) + COUNT ( * ) col1 FROM tab0 +---- +-3 +3 query II rowsort label-1319 SELECT col1 AS col0, CAST ( col0 AS INTEGER ) AS col1 FROM tab2 @@ -8143,8 +8205,15 @@ SELECT DISTINCT - 21 * + 58 * + + 50 AS col1 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 4 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4 AS col1, col0 AS col1 FROM tab0 +---- +15 +4 +4 +4 +87 +97 query I rowsort SELECT - col0 * - + 49 FROM tab1 @@ -8184,8 +8253,11 @@ SELECT - + col0 AS col2, + col2 - - ( col2 ) AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +3 +3 query I rowsort SELECT ALL col2 + - col0 - + + col2 - - col1 col2 FROM tab1 @@ -8793,8 +8865,15 @@ SELECT DISTINCT + col0 AS col2, + col1 FROM tab1 AS cor0 # Datafusion - Expected - -13 # Datafusion - Expected - 25 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "Int64\(\-61\) \+ Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 AS col1, - 61 + + 48 AS col1 FROM tab0 cor0 +---- +-13 +-13 +-13 +25 +25 +25 query I rowsort SELECT DISTINCT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL @@ -9143,8 +9222,15 @@ SELECT + 86 + col2 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 159 # Datafusion - Expected - 181 # Datafusion - Expected - 147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- Int64\(\-85\)\) 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 II valuesort SELECT col2 + - - 85 AS col1, + col0 + + col2 AS col1 FROM tab1 AS cor0 +---- +144 +144 +147 +153 +159 +181 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( col2, - 89 ) @@ -9335,8 +9421,15 @@ SELECT + col2 AS col1, + col1 AS col2 FROM tab2 # Datafusion - Expected - -690 # Datafusion - Expected - -94 # Datafusion - Expected - -960 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col2" at position 0 and "tab2\.col0 \* Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 94 AS col2, + col0 * - 15 AS col2 FROM tab2 +---- +-1125 +-690 +-94 +-94 +-94 +-960 query II rowsort SELECT 63 AS col2, col0 FROM tab2 @@ -9528,8 +9621,15 @@ SELECT DISTINCT - col2 * - 25 AS col2 FROM tab2 # Datafusion - Expected - -37 # Datafusion - Expected - -75 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col1" at position 0 and "Int64\(\-37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col1, - 37 AS col1 FROM tab2 +---- +-37 +-37 +-37 +-46 +-64 +-75 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + + 18 AND 1 @@ -9539,8 +9639,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 21 AS col0, COUNT ( * ) * - 84 AS col0 FROM tab1 AS cor0 +---- +-252 +21 query II rowsort SELECT col2, - 82 * + - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL @@ -9574,8 +9677,11 @@ SELECT DISTINCT + 12 / + col2 + - + col2 FROM tab2 AS cor0 WHERE NOT - 80 + + - # 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 "\(\- min\(DISTINCT \(\- cor0\.col1\)\)\) AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( DISTINCT - + col1 ) AS col0, + 5 col0 FROM tab0 AS cor0 +---- +5 +81 query I rowsort SELECT + 89 * 61 * + col0 + - col1 AS col2 FROM tab1 cor0 @@ -10023,8 +10129,15 @@ SELECT * FROM tab2 WHERE + col1 * + col1 + + 34 IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( ( + col2 ) ), col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT ALL - 44 - - col0 FROM tab1 @@ -10237,8 +10350,15 @@ SELECT col1, - 33 * - + col0 * + col1 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -28211002 # Datafusion - Expected - -88 # Datafusion - Expected - -6648678 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) \* Int64\(88\) AS col2" at position 0 and "Int64\(90\) \+ Int64\(97\) \* \(\- cor0\.col1\) \* cor0\.col2 \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 1 * ( + 88 ) AS col2, 90 + + 97 * - col1 * col2 * + + col0 col2 FROM tab1 AS cor0 +---- +-2432185 +-28211002 +-6648678 +-88 +-88 +-88 query I rowsort label-1691 SELECT + 9 / + col1 + - 46 AS col0 FROM tab2 AS cor0 @@ -10402,8 +10522,15 @@ SELECT * FROM tab2 WHERE NOT + col2 * - col1 * + + 49 / - - col2 <> NULL # Datafusion - Expected - 81 # Datafusion - Expected - 99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* tab0\.col1 AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * + col1 col2, col1 AS col2 FROM tab0 +---- +1 +21 +210 +3807 +81 +99 query I rowsort label-1717 SELECT + 29 / + + 18 FROM tab2 @@ -10720,8 +10847,9 @@ SELECT * FROM tab2 WHERE - col2 + - - col1 * 13 IS NOT NULL 9 values hashing to 75c998aa53ac83218cbf2feb962d0a49 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col1, col1 FROM tab2 WHERE ( NOT + col0 + - - ( - col0 ) NOT BETWEEN - + 65 + col2 AND - 2 ) +---- query I rowsort SELECT DISTINCT + col0 + - 93 FROM tab2 @@ -11606,8 +11734,15 @@ SELECT ALL - col0 * - 94 col0 FROM tab0 # Datafusion - Expected - -4851 # Datafusion - Expected - -93 # Datafusion - Expected - -490 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col1" at position 0 and "Int64\(\-49\) \* tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 93 col1, - 49 * + ( col2 ) AS col1 FROM tab0 +---- +-2303 +-4851 +-490 +-93 +-93 +-93 query II rowsort SELECT + col1, col0 AS col0 FROM tab2 @@ -12256,8 +12391,11 @@ SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2 * + # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(22\)\) AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( 22 ) AS col0, 59 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 + + col0 + - 15 IS NULL +---- +59 +66 query I rowsort SELECT col0 + + col0 FROM tab1 AS cor0 WHERE ( 59 ) IS NULL @@ -12465,8 +12603,11 @@ SELECT ALL col2 / + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( col1 ) < NULL # 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 "\(\- sum\(cor0\.col1\)\) 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 II valuesort SELECT DISTINCT - SUM ( + col1 ) AS col1, MAX ( + col2 ) AS col1 FROM tab2 AS cor0 +---- +-195 +58 query I rowsort SELECT - ( - 15 ) col2 FROM tab2 AS cor0 @@ -13142,8 +13283,15 @@ SELECT MIN ( - + 93 ) AS col2 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 6 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / \(\- tab1\.col1\) \* Int64\(69\) \+ tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 AS col1, CAST ( NULL AS INTEGER ) / + - col1 * 69 + col0 AS col1 FROM tab1 +---- +6 +6 +6 +NULL +NULL +NULL query I rowsort label-2170 SELECT DISTINCT ( + col0 ) + - - CAST ( col2 AS INTEGER ) FROM tab2 @@ -13615,8 +13763,15 @@ SELECT + 66 * 77 FROM tab1 # Datafusion - Expected - 15 # Datafusion - Expected - 49 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 49 AS col2, 15 col2 FROM tab2 +---- +15 +15 +15 +49 +49 +49 query I rowsort label-2247 SELECT CAST ( - col1 AS INTEGER ) * + 3 - 34 AS col2 FROM tab0 @@ -14432,8 +14587,15 @@ SELECT DISTINCT + + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 83 * co # Datafusion - Expected - -75 # Datafusion - Expected - -77 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, + ( + - col0 ) AS col0 FROM tab2 AS cor0 +---- +-46 +-51 +-64 +-67 +-75 +-77 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT 97 IS NOT NULL @@ -14528,8 +14690,15 @@ SELECT + 17 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - 25 # Datafusion - Expected - -6137 # Datafusion - Expected - 2209 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \+ \(\- tab1\.col2\) \* tab1\.col0 AS col2" at position 0 and "tab1\.col1 \* tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 + - col2 * + + col0 AS col2, col1 * + col1 col2 FROM tab1 +---- +-4845 +-4964 +-6137 +196 +2209 +25 query II rowsort label-2405 SELECT - MAX ( + + 34 ) + 50 AS col1, - 0 * - 41 FROM tab0 @@ -15423,8 +15592,15 @@ NULL # Datafusion - Expected - 162 # Datafusion - Expected - 108 # Datafusion - Expected - 156 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col0 \+ cor0\.col2 \+ \(\- cor0\.col1\) \* \(\- Int64\(\-19\)\) AS col0" at position 0 and "cor0\.col0 \+ Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 + + + col0 + + col2 + - col1 * - - 19 AS col0, + col0 + 71 AS col0 FROM tab1 AS cor0 +---- +-23 +-666 +108 +122 +156 +162 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 + - - 16 <> NULL @@ -15573,8 +15749,15 @@ SELECT ALL ( col0 ) + + + col0 FROM tab1 AS cor0 WHERE NOT col0 IN ( - 32 ) # Datafusion - Expected - -68 # Datafusion - Expected - 68544 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col1 \* Int64\(96\) AS col0" at position 0 and "Int64\(\-52\) \+ Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 * + col1 * + 96 AS col0, - 52 + - 16 AS col0 FROM tab1 AS cor0 +---- +-68 +-68 +-68 +40800 +410592 +68544 query I rowsort SELECT DISTINCT + 81 * - 79 AS col2 FROM tab0 AS cor0 @@ -15816,8 +15999,15 @@ SELECT 61 / - col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL # Datafusion - Expected - -40 # Datafusion - Expected - 56 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 AS col1, - col2 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +56 +56 +56 query I rowsort SELECT - col0 + + 17 col2 FROM tab0 AS cor0 @@ -16329,8 +16519,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - CAST ( NULL AS INTEGER ) ) AS col2, + COUNT ( * ) AS col2 FROM tab1 cor0 +---- +3 +NULL query I rowsort SELECT ALL - + 0 AS col1 FROM tab0 cor0 @@ -16786,8 +16979,11 @@ SELECT * FROM tab2 WHERE + + col0 + - 64 NOT IN ( + 61 * + col1 - + 34 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 126 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(42\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) * 42 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 +---- +126 +NULL query III rowsort SELECT * FROM tab1 WHERE - col0 + + col0 = col0 @@ -17873,8 +18069,15 @@ SELECT - + ( - 76 ) * - col0 * ( + 91 ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 17 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 17 AS col2, 68 AS col2 FROM tab2 AS cor0 +---- +17 +17 +17 +68 +68 +68 query I rowsort SELECT - 28 * + - 78 AS col1 FROM tab2 @@ -18362,8 +18565,15 @@ SELECT COUNT ( * ) / - COUNT ( * ) col1 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col1 AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query II rowsort SELECT ALL + col2 AS col2, col2 AS col0 FROM tab1 AS cor0 @@ -18396,8 +18606,11 @@ SELECT DISTINCT - + col2 + - col1 AS col2 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, ( - COUNT ( * ) ) AS col2 FROM tab0 +---- +-3 +3 query I rowsort SELECT DISTINCT 45 * col0 + + col2 AS col1 FROM tab2 @@ -19142,8 +19355,15 @@ SELECT ALL - + ( - + col2 ) AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND - - co # Datafusion - Expected - -96 # Datafusion - Expected - 118 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ tab1\.col2 \+ Int64\(\-41\) AS col2" at position 0 and "\(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 + + col2 + - 41 AS col2, - col2 AS col2 FROM tab1 +---- +-59 +-68 +-96 +103 +106 +118 query I rowsort label-3159 SELECT COUNT ( * ) + ( + 24 ) * + - 38 AS col0 FROM tab2, tab2 AS cor0 @@ -19527,8 +19747,15 @@ SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE - col0 + - 80 >= + col0 # Datafusion - Expected - 210 # Datafusion - Expected - -97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col2 \* \(\- \(\- cor0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col0, col2 * - - col1 AS col0 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +210 +3807 +99 query II rowsort SELECT DISTINCT + col0, col2 FROM tab2 cor0 @@ -19840,8 +20067,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 17 IS NULL # Datafusion - Expected - 87 # Datafusion - Expected - 9 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \- Int64\(\-8\) AS col0" at position 0 and "Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col1 - - 8 AS col0, 87 AS col0 FROM tab0 AS cor0 +---- +29 +87 +87 +87 +89 +9 query I rowsort label-3276 SELECT ALL + col0 / - - col0 FROM tab2 cor0 @@ -19858,8 +20092,11 @@ SELECT ALL + COUNT ( * ) - + 63 AS col1 FROM tab2 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\(cor0\.col0\) AS col1" at position 0 and "Int64\(19\) \- Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( ALL col0 ) col1, + 19 - + 50 AS col1 FROM tab1 AS cor0 +---- +-31 +3 query I rowsort label-3279 SELECT + col2 / + col2 - + col1 - col2 * + col1 * + col2 FROM tab0 AS cor0 @@ -19994,8 +20231,15 @@ SELECT + - COUNT ( * ) AS col1, + MIN ( 28 ) FROM tab2 cor0 # Datafusion - Expected - 870 # Datafusion - Expected - -81 # Datafusion - Expected - 705 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 \* \(\- \(\- cor0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col2, col0 * - - col2 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +705 +870 +9603 query II rowsort label-3299 SELECT + COUNT ( * ) AS col0, CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 @@ -20208,8 +20452,15 @@ SELECT * FROM tab2 WHERE col1 * - col1 + 74 >= NULL # Datafusion - Expected - 4543 # Datafusion - Expected - 91 # Datafusion - Expected - 5236 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col2 \* Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, col2 * + 77 AS col2 FROM tab1 +---- +4543 +51 +5236 +7392 +85 +91 query II rowsort SELECT 97, col2 AS col2 FROM tab0 @@ -20822,8 +21073,15 @@ SELECT + - 3, - 91 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col2, + col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT ALL + + 76 * - 85 AS col0 FROM tab0 AS cor0 @@ -21130,8 +21388,15 @@ NULL # Datafusion - Expected - 75 # Datafusion - Expected - 77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "\(\- \(\- tab2\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col2, - ( - col0 ) AS col2 FROM tab2 +---- +46 +51 +64 +67 +75 +77 query III rowsort SELECT ALL * FROM tab1 cor0 WHERE + 17 / col1 IS NOT NULL @@ -21141,8 +21406,11 @@ SELECT ALL * FROM tab1 cor0 WHERE + 17 / col1 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, + 77 AS col0 FROM tab0 AS cor0 +---- +3 +77 query I rowsort label-3482 SELECT DISTINCT 93 * COUNT ( * ) col0 FROM tab2 AS cor0 @@ -22938,8 +23206,15 @@ SELECT - ( 78 ) * - col1 * + + col1 FROM tab2 AS cor0 # Datafusion - Expected - 16 # Datafusion - Expected - -79 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col0" at position 0 and "Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 79 AS col0, 16 AS col0 FROM tab0 AS cor0 +---- +-79 +-79 +-79 +16 +16 +16 query I rowsort SELECT ALL + + col0 * - 14 * + - col0 AS col0 FROM tab1 AS cor0 @@ -23335,8 +23610,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) + + - MAX ( ALL - + 1 ) AS col2, + 82 AS col2 FROM tab0 +---- +4 +82 query III rowsort SELECT * FROM tab0 WHERE - col0 - col0 / 22 IS NULL @@ -23730,8 +24008,15 @@ SELECT DISTINCT - 4 * - + col0 FROM tab0 # Datafusion - Expected - 41 # Datafusion - Expected - 19 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 AS col2, 41 AS col2 FROM tab0 +---- +19 +19 +19 +41 +41 +41 query I rowsort label-3914 SELECT + - col1 / + 98 FROM tab0 AS cor0 @@ -24120,8 +24405,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 60 + - - COUNT ( * ) AS col0, - 29 AS col0 FROM tab0 AS cor0 +---- +-29 +63 query I rowsort label-3973 SELECT ALL + COUNT ( * ) - + 36 AS col2 FROM tab2 AS cor0 @@ -25122,8 +25410,11 @@ SELECT 6 + - + 26 - 28 + 2 / + 55 + 87 * col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 +---- +-81 +9 query III rowsort SELECT * FROM tab1 WHERE + col1 NOT IN ( + ( + + ( 67 ) ) + + col2 ) @@ -26024,8 +26315,15 @@ SELECT + - 91, col0 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 75 # Datafusion - Expected - 97 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col2\) \+ cor0\.col0 \+ Int64\(\-2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, ( + - col2 ) + + + col0 + + - 2 col1 FROM tab0 AS cor0 +---- +-34 +-4 +15 +75 +87 +97 query I rowsort label-4292 SELECT ALL - + COUNT ( * ) FROM tab2 AS cor0 WHERE ( col0 ) > ( NULL ) @@ -26078,8 +26376,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT - col1 < + col0 + + col1 + col0 # Datafusion - Expected - 14 # Datafusion - Expected - 765 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* \(\- \(\- tab2\.col1\)\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 15 * - - col1 col1, 14 AS col1 FROM tab2 +---- +1005 +1155 +14 +14 +14 +765 query II rowsort label-4301 SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col1, - COUNT ( * ) * - 60 / ( - COUNT ( * ) ) * - COUNT ( * ) + + COUNT ( DISTINCT + col1 ) * 92 FROM tab1 AS cor0 @@ -26368,8 +26673,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( + - col2 ) AS col2, - COUNT ( * ) AS col2 FROM tab2 +---- +-3 +3 query II rowsort SELECT DISTINCT - ( + col1 ) AS col2, - col1 FROM tab1 AS cor0 @@ -26428,8 +26736,15 @@ SELECT 33 + - - 51 + + col2 + - 96 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, + col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT 75 * - col2 * - - col1 * - 20 * col0 + col0 AS col2 FROM tab1 AS cor0 @@ -27406,8 +27721,15 @@ SELECT 96 / + MAX ( + ( - + 65 ) ) AS col2 FROM tab1 # Datafusion - Expected - 57 # Datafusion - Expected - 70 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 0 and "cor0\.col1 / cor0\.col1 \+ Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 70 col0, col1 / col1 + 56 col0 FROM tab2 AS cor0 +---- +57 +57 +57 +70 +70 +70 query II rowsort SELECT + 77 AS col1, + 34 AS col0 FROM tab0 AS cor0 @@ -27856,8 +28178,11 @@ SELECT + + CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col2" at position 0 and "Int64\(\-84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 43 AS col2, - 84 AS col2 FROM tab1 AS cor0 +---- +-84 +43 query I rowsort SELECT DISTINCT - col1 * + 96 AS col2 FROM tab0 @@ -28361,8 +28686,15 @@ SELECT * FROM tab1 WHERE - - col0 + col2 < 82 # Datafusion - Expected - 2889 # Datafusion - Expected - 52 # Datafusion - Expected - 3416 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ Int64\(\-8\) AS col0" at position 0 and "\(\- tab2\.col1\) \- Int64\(42\) \+ \(\- Int64\(47\)\) \* \(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 60 + - 8 AS col0, - col1 - 42 + - + 47 * - col0 AS col0 FROM tab2 +---- +2069 +2889 +3416 +52 +52 +52 query I rowsort SELECT - col1 * + ( + col0 ) + + col1 FROM tab0 @@ -28487,8 +28819,15 @@ SELECT ALL - MIN ( ALL - col0 ) AS col2 FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - -81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, col1 AS col0 FROM tab0 +---- +-1 +-21 +-81 +1 +21 +81 query I rowsort SELECT - 87 col1 FROM tab0 WHERE NOT col2 IS NULL @@ -28832,8 +29171,15 @@ SELECT ALL - - col1 AS col1, + 65 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -44 # Datafusion - Expected - -97 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(\-44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col0, - 44 AS col0 FROM tab0 cor0 +---- +-15 +-44 +-44 +-44 +-87 +-97 query I rowsort label-4761 SELECT DISTINCT - CAST ( - 85 AS INTEGER ) * + col0 AS col0 FROM tab2 AS cor0 @@ -29729,8 +30075,15 @@ SELECT + 67 col0, - col1 FROM tab0 AS cor0 # Datafusion - Expected - 150 # Datafusion - Expected - 77 # Datafusion - Expected - 139 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 \+ \(\- \(\- Int64\(75\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, + col0 + - ( - + 75 ) AS col2 FROM tab2 cor0 WHERE NOT - 17 - - col0 IS NULL +---- +121 +139 +150 +51 +67 +77 query I rowsort label-4908 SELECT - MAX ( ALL + col0 ) AS col1 FROM tab1 AS cor0 @@ -31063,8 +31416,11 @@ SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT col2 + + 99 * + col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - -121 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col2" at position 0 and "sum\(\(\- tab2\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 65 AS col2, SUM ( - col2 ) AS col2 FROM tab2 +---- +-121 +65 query I rowsort SELECT - 41 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN 69 AND col0 / - - col0 @@ -31259,8 +31615,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 15 BETWEEN 96 AND ( - - col2 ) # Datafusion - Expected - 40 # Datafusion - Expected - 81 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 81 col1, 40 AS col1 FROM tab0 AS cor0 +---- +40 +40 +40 +81 +81 +81 query I rowsort label-5169 SELECT + 32 / - - COUNT ( * ) FROM tab1 @@ -31446,8 +31809,15 @@ SELECT SUM ( ALL + - col0 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - -81 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, - col0 AS col1 FROM tab0 AS cor0 +---- +-1 +-15 +-21 +-81 +-87 +-97 query I rowsort SELECT ALL + ( + col2 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL @@ -31779,8 +32149,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT - col0 >= - col0 # Datafusion - Expected - -1771 # Datafusion - Expected - 9562 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col2 \+ Int64\(\-41\) AS col2" at position 0 and "Int64\(56\) \+ cor0\.col0 \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 * + col2 + - 41 AS col2, 56 + col0 * - col1 AS col2 FROM tab0 AS cor0 +---- +-1159 +-1771 +-41 +664 +829 +9562 query III rowsort label-5253 SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= col0 * col1 - CAST ( NULL AS INTEGER ) + - col2 @@ -32016,8 +32393,15 @@ SELECT ALL + 76 + + + MAX ( ALL - col2 ) FROM tab1 AS cor0 # Datafusion - Expected - -45 # Datafusion - Expected - -21 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) AS col2" at position 0 and "Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 21 col2, - 45 AS col2 FROM tab1 +---- +-21 +-21 +-21 +-45 +-45 +-45 query II rowsort SELECT DISTINCT - col2 + - - col0 + - col0 * + + ( + col1 ) * + - 55 col1, 43 + + + col2 FROM tab0 @@ -32225,8 +32609,15 @@ SELECT ALL ( MAX ( - col1 ) ) col2 FROM tab1 AS cor0 # Datafusion - Expected - -2 # Datafusion - Expected - 32 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \+ tab0\.col2 AS col2" at position 0 and "Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( col0 ) + + + col2 AS col2, - 2 AS col2 FROM tab0 +---- +-2 +-2 +-2 +-77 +2 +32 query I rowsort SELECT DISTINCT + col1 + + + 5 AS col0 FROM tab0 @@ -32449,8 +32840,11 @@ SELECT DISTINCT 0 * - 83 + + col2 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) AS col2" at position 0 and "\(\- CAST\(NULL AS Float64\)\) \* \(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT - 52 col2, - CAST ( NULL AS FLOAT8 ) * - + col0 AS col2 FROM tab0 +---- +-52 +NULL query I rowsort SELECT ALL - 41 + col2 FROM tab0 @@ -32533,8 +32927,15 @@ SELECT ALL - 78 + + col2 + - 79 * + 65 FROM tab1 WHERE NOT - 88 + + col0 IS NOT # Datafusion - Expected - 128 # Datafusion - Expected - 90 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "\(\- \(\- tab0\.col2\)\) \+ tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 AS col2, ( - ( - col2 ) ) + col1 AS col2 FROM tab0 +---- +100 +128 +31 +90 +90 +90 query I rowsort SELECT ALL 12 * col1 FROM tab0 @@ -33145,8 +33546,9 @@ SELECT ALL - col0 + - col0 * + - col1 FROM tab1 663 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 34 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NULL >= - col0 +---- query I rowsort SELECT ( - col0 ) * - + 92 AS col2 FROM tab0 @@ -33317,8 +33719,15 @@ SELECT col2 * + - col0 - + col2 FROM tab2 # Datafusion - Expected - 99 # Datafusion - Expected - 3552 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \* Int64\(\-37\) \+ Int64\(0\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + col2 ) * - 37 + + 0 AS col2, 99 AS col2 FROM tab1 +---- +2183 +2516 +3552 +99 +99 +99 query I rowsort label-5511 SELECT ALL - COUNT ( * ) - + - 18 FROM tab0 @@ -33514,8 +33923,15 @@ SELECT DISTINCT + 23 + + col1 + - col2 * - col2 + col0 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - -22 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - 22 ) col2, col0 AS col2 FROM tab2 cor0 +---- +-22 +-22 +-22 +46 +64 +75 query I rowsort SELECT ALL - 12 + + - col0 AS col2 FROM tab1 @@ -33896,8 +34312,15 @@ SELECT + - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 # Datafusion - Expected - 5 # Datafusion - Expected - 44 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- Int64\(57\) \+ Int64\(54\) \* Int64\(1\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 - + + 57 + 54 * + 1 AS col0, col1 AS col0 FROM tab1 AS cor0 +---- +11 +14 +2 +44 +47 +5 query I rowsort label-5606 SELECT + col2 + - + 75 + + col0 / + 85 + col1 AS col2 FROM tab2 AS cor0 @@ -33928,8 +34351,15 @@ SELECT DISTINCT - CAST ( 58 AS INTEGER ) AS col2 FROM tab1 cor0 # Datafusion - Expected - -87 # Datafusion - Expected - -97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col1\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col0 * - col1 col2, - col0 AS col2 FROM tab0 AS cor0 +---- +-1215 +-15 +-1827 +-87 +-97 +-97 query I rowsort label-5610 SELECT - + col2 / - 1 - - col1 FROM tab0 AS cor0 @@ -34196,8 +34626,15 @@ SELECT DISTINCT + COUNT ( * ) col1, 26 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -100 # Datafusion - Expected - -81 # Datafusion - Expected - -2209 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col2 \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col2, col2 * - col2 AS col2 FROM tab0 cor0 +---- +-1 +-100 +-21 +-2209 +-81 +-9801 query I rowsort SELECT + 41 FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL ) @@ -34380,8 +34817,15 @@ SELECT DISTINCT + ( - COUNT ( ALL - col0 ) ) FROM tab1 AS cor0 # Datafusion - Expected - 6816 # Datafusion - Expected - 1694 # Datafusion - Expected - 6827 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \* cor0\.col1 AS col1" at position 0 and "Int64\(75\) \* Int64\(\-93\) \* \(\- cor0\.col1\) / cor0\.col1 \- cor0\.col0 \+ Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 * + col1 AS col1, 75 * - 93 * - col1 / col1 - + col0 + - 84 AS col1 FROM tab2 AS cor0 +---- +1122 +1474 +1694 +6816 +6827 +6845 # Datafusion - Datafusion expected results: # Datafusion - Expected - 100 @@ -35068,8 +35512,15 @@ SELECT - 63 * + - col1, col0 / ( - - col2 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -91 # Datafusion - Expected - -194308 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* \(\- Int64\(\-23\)\) \* \(\- cor0\.col2\) \+ \(\- CAST\(Int64\(4\) AS Int32\)\) AS col0" at position 0 and "\(\- cor0\.col0\) \- cor0\.col1 / cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 88 * - + ( - 23 ) * - col2 + - CAST ( 4 AS INTEGER ) AS col0, + ( - col0 ) - + col1 / + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL +---- +-119420 +-137636 +-194308 +-51 +-85 +-91 query I rowsort label-5794 SELECT DISTINCT + - col0 / + - col2 FROM tab0 cor0 @@ -36304,8 +36755,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, - COUNT ( * ) AS col0 FROM tab2 WHERE NULL BETWEEN + col2 + col0 AND NULL +---- +0 +0 query II rowsort SELECT + 0 AS col2, col1 FROM tab2 cor0 WHERE col1 IS NULL @@ -40019,8 +40473,15 @@ SELECT ( - COUNT ( - 93 ) ) AS col2 FROM tab0 # Datafusion - Expected - 15 # Datafusion - Expected - 193 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ tab1\.col2 AS col0" at position 0 and "Int64\(10\) \+ Int64\(52\) \+ \(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 97 + col2 AS col0, + 10 + 52 + + - col1 AS col0 FROM tab1 +---- +15 +156 +165 +193 +48 +57 query III rowsort SELECT * FROM tab0 WHERE col1 * - + 80 / + - col0 - + 86 IS NOT NULL @@ -40179,8 +40640,15 @@ SELECT DISTINCT + 72 col0, + MAX ( ALL + 93 ) + - ( + COUNT ( * ) ) AS col1 FROM # Datafusion - Expected - -68 # Datafusion - Expected - -96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "\(\- cor0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col2, - col2 FROM tab1 cor0 +---- +-59 +-59 +-68 +-68 +-96 +-96 query I rowsort label-6628 SELECT DISTINCT - ( - COUNT ( ALL + - 80 ) ) * + SUM ( + 58 ) + + 83 FROM tab0 AS cor0 @@ -41491,8 +41959,15 @@ SELECT ALL + MIN ( ( - col2 ) ) AS col0 FROM tab0 WHERE + + col0 * - - col0 + co # Datafusion - Expected - 65 # Datafusion - Expected - 99 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 99 AS col0, + 65 AS col0 FROM tab0 +---- +65 +65 +65 +99 +99 +99 query II rowsort SELECT + 16, + col2 col0 FROM tab1 @@ -41536,8 +42011,10 @@ SELECT ( + - col0 ) FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * col # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c3ae6e795320b2f2d626ef4e0b3ad50e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(19\) \* Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + col1 AS col2, 19 * + 73 AS col2, - 16 AS col0 FROM tab2 AS cor0 +---- +9 values hashing to a6b3cfb55fd1801cd450c3fe39c37b6e query I rowsort label-6860 SELECT ALL + 13 / - - MIN ( DISTINCT col2 ) / + + COUNT ( * ) FROM tab1 @@ -42789,8 +43266,15 @@ SELECT ALL - + ( + 36 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -77 # Datafusion - Expected - 6561 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col2" at position 0 and "CAST\(\(\- cor0\.col0\) AS Int32\) \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col1 * - col1 col2, + CAST ( - + col0 AS INTEGER ) + col2 AS col2 FROM tab0 AS cor0 +---- +-77 +1 +2 +32 +441 +6561 query III rowsort SELECT * FROM tab0 cor0 WHERE NOT NULL <= 24 @@ -42848,8 +43332,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - COUNT ( * ) AS col1, 52 col1 FROM tab2 AS cor0 +---- +3 +52 query I rowsort SELECT DISTINCT col0 * - col0 + - + col1 + - + col0 * + col1 * - col1 FROM tab0 @@ -42886,8 +43373,11 @@ SELECT - COUNT ( - - 25 ) + + + 7 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / max\(\(\- Int64\(45\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) / + MAX ( ALL - + 45 ) + COUNT ( * ) + COUNT ( * ) AS col0, 86 AS col0 FROM tab1 AS cor0 +---- +6 +86 query I rowsort SELECT + col2 + - - 18 FROM tab1 cor0 @@ -42963,8 +43453,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NULL < 47 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 AS col1, col2 col1 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-7091 SELECT - 92 / + 58 AS col2 FROM tab1 cor0 @@ -43201,8 +43698,15 @@ SELECT + 0 * - col2 / - col2 * + ( col1 ) + 46 AS col0 FROM tab2 cor0 # Datafusion - Expected - 10 # Datafusion - Expected - 81 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, col2 col0 FROM tab0 +---- +1 +10 +21 +47 +81 +99 query I rowsort label-7126 SELECT ALL + COUNT ( * ) + ( 92 ) FROM tab0, tab2 AS cor0 @@ -43698,8 +44202,15 @@ SELECT ALL col1 * + 57 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( col # Datafusion - Expected - -2137 # Datafusion - Expected - 19 # Datafusion - Expected - -823 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "Int64\(\-38\) \* \(\- \(\- cor0\.col2\)\) \+ cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 19 AS col2, - 38 * - - col2 + col1 AS col2 FROM tab2 AS cor0 +---- +-1443 +-2137 +-823 +19 +19 +19 query I rowsort SELECT + 33 * - + col1 + - col1 * - col2 AS col0 FROM tab0 AS cor0 @@ -45922,8 +46433,15 @@ NULL # Datafusion - Expected - 37 # Datafusion - Expected - 26 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) \+ cor0\.col0 AS col0" at position 0 and "Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 71 + col0 AS col0, 37 AS col0 FROM tab0 cor0 +---- +-56 +16 +26 +37 +37 +37 query III rowsort SELECT * FROM tab2 AS cor0 WHERE + col0 > + col2 * col2 @@ -46024,8 +46542,15 @@ NULL # Datafusion - Expected - 64 # Datafusion - Expected - 77 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 AS col1, col0 col1 FROM tab2 +---- +46 +64 +75 +77 +77 +77 query I rowsort label-7605 SELECT ALL col0 / - ( - - col0 ) AS col2 FROM tab2 @@ -46105,8 +46630,15 @@ SELECT - ( - + col1 ) col0 FROM tab1 cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 9 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 9 col1, col2 AS col1 FROM tab1 AS cor0 +---- +59 +68 +9 +9 +9 +96 query I rowsort label-7618 SELECT - 24 / + + col1 FROM tab0 AS cor0 @@ -46879,8 +47411,15 @@ SELECT col2 + - col0 + + 70 + + col1 FROM tab0 # Datafusion - Expected - 86 # Datafusion - Expected - -328 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \* tab1\.col1 \+ Int64\(\-33\) AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 * + + col1 + - 33 AS col1, 86 col1 FROM tab1 +---- +-1377 +-3229 +-328 +86 +86 +86 query I rowsort label-7750 SELECT MIN ( ALL 33 ) + 13 FROM tab2 @@ -47810,8 +48349,9 @@ SELECT DISTINCT + 23 AS col0 FROM tab0 WHERE NULL IS NOT NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "Int64\(73\) \+ tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col1, + 73 + + col2 AS col1 FROM tab2 WHERE NULL NOT BETWEEN col2 AND NULL +---- query II rowsort SELECT ALL 71, - ( col2 ) AS col0 FROM tab1 @@ -48487,8 +49027,15 @@ SELECT ALL COUNT ( DISTINCT - - col0 ) * - 90 * - 24 AS col1 FROM tab2 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, col0 AS col1 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-8004 SELECT ALL + - 64 * COUNT ( * ) FROM tab1 AS cor0 @@ -49589,8 +50136,11 @@ SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 71 + - 48 + + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 / tab1\.col0 AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 / col0 AS col0, 48 AS col0 FROM tab1 +---- +0 +48 query I rowsort SELECT ALL - 10 * + - col1 + + ( + col2 ) AS col0 FROM tab2 AS cor0 WHERE NULL <= col1 @@ -50067,8 +50617,11 @@ SELECT ALL 32 AS col2 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) col1, 13 AS col1 FROM tab2 AS cor0 +---- +13 +NULL query I rowsort SELECT DISTINCT ( + col0 ) * - col1 + - col0 AS col2 FROM tab1 AS cor0 @@ -51103,8 +51656,15 @@ SELECT - 45 / + MAX ( - - col0 ) FROM tab0 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - 58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, + col1 AS col0 FROM tab2 AS cor0 +---- +23 +40 +51 +58 +67 +77 query I rowsort SELECT DISTINCT - 72 * col1 AS col1 FROM tab2 @@ -51127,8 +51687,15 @@ SELECT DISTINCT 9 * + 38 * + CAST ( 20 AS INTEGER ) * 69 * + + col2 AS col0 FROM # Datafusion - Expected - -1719 # Datafusion - Expected - -959585 # Datafusion - Expected - -493 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) \+ cor0\.col1 \+ Int64\(31\) \- cor0\.col1 \* cor0\.col1 \* cor0\.col2 \* cor0\.col0 AS col2" at position 0 and "Int64\(36\) \+ \(\- cor0\.col2\) \+ Int64\(99\) \+ cor0\.col1 \* \(\- Int64\(38\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 14 + + col1 + + + 31 - + + col1 * + col1 * + col2 * + col0 AS col2, 36 + + - col2 + ( + ( + 99 ) ) + + col1 * - + 38 col2 FROM tab1 AS cor0 +---- +-114 +-125353 +-13669228 +-1719 +-493 +-959585 query I rowsort SELECT col1 + ( col0 ) * 16 AS col1 FROM tab0 AS cor0 @@ -52757,8 +53324,15 @@ SELECT COUNT ( * ) / + 51 * + - COUNT ( * ) FROM tab0 cor0 # Datafusion - Expected - -21 # Datafusion - Expected - 0 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \- \(\- cor0\.col0\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 - - col0 AS col2, - ( col1 ) AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +0 +0 +0 query I rowsort SELECT DISTINCT - 38 AS col0 FROM tab0 WHERE NULL NOT BETWEEN 54 + col0 * - + col2 AND NULL @@ -53153,8 +53727,15 @@ SELECT * FROM tab2 WHERE - - 49 + + col2 = 62 # Datafusion - Expected - 67 # Datafusion - Expected - -81 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \- Int64\(\-9\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 90 - - 9 col0, 67 AS col0 FROM tab2 AS cor0 +---- +-81 +-81 +-81 +67 +67 +67 query I rowsort SELECT ALL 87 * + 41 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL @@ -53233,8 +53814,15 @@ SELECT ALL - MIN ( - + col2 ) FROM tab0 # Datafusion - Expected - 705 # Datafusion - Expected - 99 # Datafusion - Expected - 9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "tab0\.col0 \* tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, + col0 * ( + + col2 ) AS col1 FROM tab0 +---- +10 +47 +705 +870 +9603 +99 query III rowsort SELECT * FROM tab1 WHERE NOT - - 93 >= col0 @@ -53583,8 +54171,11 @@ SELECT SUM ( - - col0 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -122 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(1\) / \(\- max\(tab1\.col0\)\) AS col0" at position 0 and "Int64\(\-62\) \- \(\- CAST\(Int64\(\-93\) AS Int32\)\) \+ Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( COUNT ( * ) ) + + 1 / - MAX ( ALL + col0 ) AS col0, - 62 - - CAST ( - 93 AS INTEGER ) + 33 AS col0 FROM tab1 +---- +-122 +-3 query III rowsort SELECT * FROM tab2 WHERE - ( - col1 ) NOT IN ( col1 ) @@ -55251,8 +55842,15 @@ SELECT * FROM tab0 WHERE NOT - col2 * - col1 + + col2 + - 61 <= NULL # Datafusion - Expected - 81 # Datafusion - Expected - -99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, + col1 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +1 +21 +81 query I rowsort label-9115 SELECT ALL 19 * + - COUNT ( * ) * - MAX ( - + col2 ) FROM tab2 AS cor0 @@ -55266,8 +55864,15 @@ SELECT ALL 19 * + - COUNT ( * ) * - MAX ( - + col2 ) FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 75 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 75 AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +14 +47 +5 +75 +75 +75 query III rowsort SELECT * FROM tab1 cor0 WHERE NOT col0 * col1 IS NULL @@ -55604,8 +56209,15 @@ SELECT + col0 * + + col0 * - 8 col1 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL # Datafusion - Expected - -25 # Datafusion - Expected - 0 # Datafusion - Expected - -196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) / cor0\.col2 AS col2" at position 0 and "\(\- cor0\.col1\) \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 / col2 AS col2, - col1 * + + col1 AS col2 FROM tab1 AS cor0 +---- +-1 +-1 +-196 +-2209 +-25 +0 query I rowsort SELECT col1 * 47 AS col2 FROM tab1 cor0 @@ -55938,8 +56550,15 @@ SELECT ALL col2, - col0 * - col0 + 39 AS col0 FROM tab0 # Datafusion - Expected - 40 # Datafusion - Expected - 22 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 22 col0, + col2 AS col0 FROM tab2 +---- +22 +22 +22 +23 +40 +58 query I rowsort label-9222 SELECT ALL MAX ( DISTINCT col0 ) * - + CAST ( + AVG ( col1 ) AS INTEGER ) AS col2 FROM tab1 @@ -56993,8 +57612,15 @@ SELECT DISTINCT + CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 2209 # Datafusion - Expected - 5 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "\(\- tab1\.col1\) \* Int64\(1\) \* \(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 col0, - col1 * 1 * - + col1 col0 FROM tab1 +---- +14 +196 +2209 +25 +47 +5 query I rowsort label-9391 SELECT + COUNT ( * ) col2 FROM tab0 WHERE NOT NULL >= NULL @@ -57136,8 +57762,11 @@ SELECT + ( - col2 ) * - col0 FROM tab2 WHERE + - 9 <> - col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(18\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col0, 18 * COUNT ( * ) - + 50 AS col0 FROM tab2 AS cor0 +---- +4 +NULL query I rowsort SELECT - col1 - - + col2 + - ( col2 ) FROM tab2 AS cor0 @@ -58538,8 +59167,15 @@ SELECT - col0 / 71 AS col1 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - -97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col0, col1 AS col0 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +1 +21 +81 query II rowsort SELECT + col0 AS col2, col1 * + col2 * - - col2 FROM tab2 AS cor0 @@ -58707,8 +59343,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - COUNT ( ALL - - 74 ) * - + COUNT ( * ) AS col0, + 13 AS col0 FROM tab0 WHERE NOT + col0 <= NULL +---- +0 +13 query II rowsort SELECT DISTINCT + 24, 30 * + - col1 AS col0 FROM tab2 @@ -58759,8 +59398,11 @@ SELECT DISTINCT + 73 * + - 44 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) 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 II valuesort SELECT ALL 36 AS col1, + MIN ( ALL + col0 ) AS col1 FROM tab2 AS cor0 +---- +36 +46 query I rowsort SELECT DISTINCT + - 71 col1 FROM tab1 cor0 @@ -59662,8 +60304,10 @@ SELECT ALL - 33 + col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to b6e6722e89c7e7083b8e974c485e939e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \+ \(\- Int64\(43\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 61 + ( - + 43 ) col0, col2 AS col0, - 53 AS col2 FROM tab2 AS cor0 +---- +9 values hashing to cf0fdded19372dc1a851b9349697a026 query I rowsort SELECT col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL ) @@ -59961,8 +60605,15 @@ SELECT ALL - COUNT ( * ) AS col2 FROM tab0 WHERE NOT 6 IN ( col1, col2 * + col1 # Datafusion - Expected - -64 # Datafusion - Expected - 31 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "\(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 31 AS col2, - col0 AS col2 FROM tab2 +---- +-46 +-64 +-75 +31 +31 +31 query I rowsort SELECT ALL col1 * 94 * + col2 AS col0 FROM tab1 diff --git a/data/sqlite/random/aggregates/slt_good_22.slt b/data/sqlite/random/aggregates/slt_good_22.slt index 8952396..49d613c 100644 --- a/data/sqlite/random/aggregates/slt_good_22.slt +++ b/data/sqlite/random/aggregates/slt_good_22.slt @@ -600,8 +600,15 @@ SELECT col0 + - 55 AS col2 FROM tab1 # Datafusion - Expected - -4623 # Datafusion - Expected - 99 # Datafusion - Expected - -915 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "CAST\(Int64\(12\) AS Int32\) \* Int64\(\-68\) \+ tab0\.col2 \* \(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, + CAST ( 12 AS INTEGER ) * + - 68 + col2 * - col1 AS col0 FROM tab0 +---- +-1026 +-4623 +-915 +10 +47 +99 query I rowsort label-89 SELECT col0 + + col1 + - col1 / col1 + 5 - col0 FROM tab2 AS cor0 @@ -883,8 +890,15 @@ SELECT ALL + - COUNT ( * ) - - - 54 col0 FROM tab0 AS cor0 # Datafusion - Expected - 65 # Datafusion - Expected - 44 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT + 44 AS col0, 65 AS col0 FROM tab1 AS cor0 +---- +44 +44 +44 +65 +65 +65 query III rowsort SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN + 70 AND NULL @@ -1110,8 +1124,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT - 0 BETWEEN NULL AND NULL # Datafusion - Expected - -47 # Datafusion - Expected - 52 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 AS col0, - col2 AS col0 FROM tab0 cor0 +---- +-10 +-47 +-99 +52 +52 +52 query III rowsort SELECT ALL * FROM tab0 WHERE NOT + col1 IN ( - col0 - - 20 + + col2 * - - col1 * - col1, 89, 9, + col2 ) @@ -2057,8 +2078,15 @@ SELECT DISTINCT * FROM tab0 WHERE + 33 IN ( - - 25, - 53, - 84 * - 64 ) # Datafusion - Expected - 77 # Datafusion - Expected - -5083 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \* tab2\.col1 \+ \(\- tab2\.col2\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * + col1 + - col2 AS col0, col1 AS col0 FROM tab2 +---- +-2369 +-4968 +-5083 +51 +67 +77 query I rowsort label-331 SELECT COUNT ( * ) + + + SUM ( - - 87 ) AS col2 FROM tab0 @@ -2735,8 +2763,15 @@ SELECT ALL + col2 + + - 56 AS col1 FROM tab0 WHERE NOT + + col2 + - - 1 * 28 IS # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 AS col2 FROM tab1 cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-446 SELECT + - col1 FROM tab2 cor0 WHERE NOT - CAST ( + col1 AS FLOAT8 ) < ( + 73 ) @@ -3831,8 +3866,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( col1 ) = NULL # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query II rowsort SELECT - ( - 20 ), col2 FROM tab1 @@ -5575,8 +5617,11 @@ SELECT + col0, col1 / - - col1 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 85 col2 FROM tab0 AS cor0 +---- +3 +85 query I rowsort label-918 SELECT DISTINCT + 84 + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 @@ -5814,8 +5859,11 @@ SELECT - 30 AS col1, - 50 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, + COUNT ( * ) AS col0 FROM tab1 +---- +3 +3 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT 93 + + - 38 + + col0 IS NULL @@ -6089,8 +6137,15 @@ SELECT DISTINCT + - col2 / col0 * col0 FROM tab1 AS cor0 # Datafusion - Expected - -5015 # Datafusion - Expected - -39 # Datafusion - Expected - -6188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) 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 II valuesort SELECT + - 39 AS col1, col0 * - col2 AS col1 FROM tab1 AS cor0 +---- +-39 +-39 +-39 +-4896 +-5015 +-6188 query III rowsort SELECT DISTINCT * FROM tab0 cor0 WHERE ( 92 ) IS NOT NULL @@ -6145,8 +6200,9 @@ SELECT ALL col2 - + + col0 FROM tab2 -24 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab1\.col1\)\) AS col0" at position 0 and "Int64\(\-95\) \* \(\- tab1\.col0\) / tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col1 AS col0, - 95 * - col0 / + col0 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT IN ( col1 / - - 23, - 31 ) +---- query I rowsort SELECT + 71 * - 73 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 @@ -7436,8 +7492,11 @@ SELECT col0 AS col2, - ( col2 ) AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 col1, + COUNT ( * ) AS col1 FROM tab1 +---- +3 +80 query III rowsort SELECT ALL * FROM tab0 WHERE - ( col1 ) * + ( - col2 ) * + col1 <> NULL @@ -8001,8 +8060,10 @@ SELECT * FROM tab2 WHERE ( NULL ) BETWEEN col1 AND + + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 66fb010a4ef5ffa293e888e3f5aa3f61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 1 and "\(\- tab1\.col0\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 85 col1, 25 AS col0, - col0 AS col0 FROM tab1 +---- +9 values hashing to 88dd49d0fa814e35367bcbea470fd71a query I rowsort label-1320 SELECT ALL - + col1 / + - col2 + + + col2 AS col2 FROM tab2 AS cor0 @@ -8036,8 +8097,9 @@ SELECT + - 29, + COUNT ( * ) AS col0 FROM tab0 AS cor0 3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \+ tab2\.col2 AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + + col2 AS col1, col2 AS col1 FROM tab2 WHERE NULL >= 2 +---- query III rowsort SELECT * FROM tab1 WHERE NOT NULL BETWEEN + 0 - col0 AND NULL @@ -8609,8 +8671,11 @@ SELECT ALL * FROM tab0 WHERE NOT - col2 / col2 + - col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 195 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- sum\(DISTINCT \(\- cor0\.col1\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, - SUM ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0 +---- +195 +3 query I rowsort label-1421 SELECT ALL + COUNT ( ALL + - CAST ( NULL AS INTEGER ) ) FROM tab1 cor0 @@ -8842,8 +8907,15 @@ SELECT ALL + COUNT ( * ) + - 63 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col0" at position 0 and "\(\- cor0\.col0\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 63 AS col0, - col0 + + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 +---- +-63 +-63 +-63 +NULL +NULL +NULL query II rowsort SELECT col1 AS col1, 81 * col0 FROM tab0 AS cor0 @@ -8908,8 +8980,15 @@ NULL # Datafusion - Expected - 83 # Datafusion - Expected - 170 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ tab2\.col1 AS col0" at position 0 and "Int64\(25\) \+ tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 93 + + col1 col0, 25 + + + col2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL +---- +144 +160 +170 +48 +65 +83 query I rowsort label-1469 SELECT - COUNT ( * ) * - - 63 AS col0 FROM tab2 @@ -9109,8 +9188,15 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - 27 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(\-35\) / \(\- Int64\(37\)\) / \(\- cor0\.col2\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 42 + - col0 AS col1, - 35 / - + 37 / - + col2 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 +---- +-45 +-55 +27 +NULL +NULL +NULL query I rowsort SELECT DISTINCT - col0 + - - col0 AS col1 FROM tab0 @@ -9456,8 +9542,15 @@ SELECT + col2, + col0 * - col2 * 97 + + 19 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -62 # Datafusion - Expected - 97 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col1, - 62 AS col1 FROM tab0 AS cor0 +---- +-62 +-62 +-62 +15 +87 +97 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 99 * + col0 <> 15 @@ -10160,8 +10253,9 @@ SELECT DISTINCT 74 + + - COUNT ( * ) FROM tab0 71 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(50\) / Int64\(19\) \* Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, + 50 / + 19 * 28 AS col2 FROM tab1 AS cor0 WHERE 62 * + - ( - + col0 ) IS NULL +---- query I rowsort label-1675 SELECT ALL - ( - - CAST ( NULL AS INTEGER ) ) + + col1 FROM tab0 cor0 @@ -10876,8 +10970,11 @@ SELECT col1 / col1 * + - 77 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 37 AS col1, COUNT ( * ) AS col1 FROM tab2 +---- +3 +37 query I rowsort SELECT ALL 62 * 58 AS col2 FROM tab0 @@ -11412,8 +11509,15 @@ SELECT col0 * + - col2 * - + ( + 67 ) AS col1 FROM tab0 # Datafusion - Expected - 40 # Datafusion - Expected - 85 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 85 AS col1, + col2 col1 FROM tab2 +---- +23 +40 +58 +85 +85 +85 query II rowsort label-1887 SELECT DISTINCT COUNT ( * ) AS col1, 9 FROM tab0 @@ -11444,8 +11548,15 @@ SELECT DISTINCT + MIN ( - 49 ) FROM tab2 cor0 # Datafusion - Expected - -68 # Datafusion - Expected - -5 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "\(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col2, - col2 AS col2 FROM tab1 +---- +-14 +-47 +-5 +-59 +-68 +-96 query I rowsort SELECT DISTINCT + 29 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -11677,8 +11788,11 @@ SELECT ALL col1 + + 20 * + col2 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 230 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \+ sum\(DISTINCT cor0\.col0\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 + SUM ( DISTINCT col0 ) AS col0, COUNT ( * ) AS col0 FROM tab2 cor0 +---- +230 +3 query I rowsort label-1931 SELECT COUNT ( * ) + + MAX ( ( + 58 ) ) AS col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN 97 AND NULL @@ -11736,8 +11850,10 @@ SELECT DISTINCT col0, - 54 * ( + + 7 ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 9a5477d1fb53f75bb76ae544d8be7c84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + col0 AS col1, + 7 AS col0, - col1 AS col1 FROM tab1 +---- +9 values hashing to 16e65e102d1f77d79d5f5382500b5a79 query II rowsort SELECT ALL + col1, 12 FROM tab0 AS cor0 @@ -12191,8 +12307,15 @@ SELECT - col0 * + - col1 AS col2 FROM tab0 # Datafusion - Expected - -64 # Datafusion - Expected - 5025 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* tab2\.col1 AS col2" at position 0 and "\(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * + col1 AS col2, - col0 AS col2 FROM tab2 +---- +-46 +-64 +-75 +2346 +4928 +5025 query I rowsort SELECT DISTINCT - 87 + col0 + - col0 AS col2 FROM tab0 AS cor0 @@ -12213,8 +12336,15 @@ SELECT 99 * col2 * + col1 AS col0 FROM tab1 # Datafusion - Expected - 81 # Datafusion - Expected - -99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 AS col0, ( col1 ) col0 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +1 +21 +81 query II rowsort SELECT - col1, - 43 AS col0 FROM tab0 AS cor0 @@ -12286,8 +12416,15 @@ SELECT - 35 / - - 44 AS col1 FROM tab0 # Datafusion - Expected - -17199 # Datafusion - Expected - -96 # Datafusion - Expected - -9639 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col0" at position 0 and "Int64\(99\) \* \(\- tab1\.col0\) \+ tab1\.col0 \* Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, 99 * - col0 + col0 * - 90 AS col0 FROM tab1 +---- +-16065 +-17199 +-59 +-68 +-96 +-9639 query II rowsort SELECT DISTINCT - col2, - col2 AS col1 FROM tab0 cor0 @@ -12472,8 +12609,11 @@ SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> - # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "sum\(DISTINCT cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 53 AS col2, + SUM ( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0 +---- +103 +53 query I rowsort SELECT - - col2 FROM tab2 AS cor0 WHERE ( NULL ) <= + 45 * + ( + col1 ) @@ -14883,8 +15023,11 @@ SELECT + 45 + col0 + col0 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \- Int64\(\-37\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 23 - - 37 AS col1, COUNT ( * ) AS col1 FROM tab1 +---- +3 +60 query I rowsort label-2466 SELECT DISTINCT MIN ( - 3 ) + 57 + + - 68 FROM tab1 @@ -16145,8 +16288,15 @@ SELECT DISTINCT col1 + - col2 col2 FROM tab1 AS cor0 WHERE NOT ( NULL NOT BETWEE # Datafusion - Expected - NULL # 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 "CAST\(NULL AS Float64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + + 45 AS col1, CAST ( NULL AS FLOAT8 ) AS col1 FROM tab2 AS cor0 +---- +45 +45 +45 +NULL +NULL +NULL query I rowsort label-2672 SELECT DISTINCT - CAST ( + + 99 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 @@ -16215,8 +16365,15 @@ SELECT DISTINCT - - col1 FROM tab0 AS cor0 WHERE ( NOT + col1 IS NULL ) # Datafusion - Expected - 1113 # Datafusion - Expected - 46 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ Int64\(47\) AS col2" at position 0 and "cor0\.col1 \* Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 + + 47 col2, col1 * ( 53 ) AS col2 FROM tab0 AS cor0 +---- +-34 +1113 +26 +4293 +46 +53 query III rowsort SELECT * FROM tab1 cor0 WHERE - col2 + + col0 >= NULL @@ -16685,8 +16842,11 @@ SELECT DISTINCT 1 - + 11 * col0 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(49\)\)\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - + MIN ( 49 ) ) AS col0, 93 AS col0 FROM tab2 +---- +-49 +93 query I rowsort label-2760 SELECT ALL - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT col2 IS NULL @@ -16834,8 +16994,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 118 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col2" at position 0 and "min\(tab2\.col1\) \+ Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 AS col2, MIN ( col1 ) + + 67 AS col2 FROM tab2 +---- +118 +3 query II rowsort SELECT ALL 53, + 56 AS col0 FROM tab2 @@ -17141,8 +17304,15 @@ SELECT ALL - col0 * 52 * col2 FROM tab1 AS cor0 WHERE ( NOT NULL IN ( col1 ) ) # Datafusion - Expected - 21 # Datafusion - Expected - -97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col0\) AS Int32\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + - ( col0 ) AS INTEGER ) AS col2, col1 AS col2 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +1 +21 +81 query I rowsort SELECT DISTINCT + col1 + - + ( + + 20 ) FROM tab2 @@ -17266,8 +17436,15 @@ SELECT ALL COUNT ( * ) AS col0, - 21 + + - 46 AS col2 FROM tab0 # Datafusion - Expected - -3132 # Datafusion - Expected - -77 # Datafusion - Expected - -2160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col2" at position 0 and "tab2\.col2 \* Int64\(\-54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, col2 * - 54 AS col2 FROM tab2 +---- +-1242 +-2160 +-3132 +-51 +-67 +-77 query I rowsort SELECT DISTINCT + 97 col0 FROM tab0 @@ -17281,8 +17458,15 @@ SELECT DISTINCT + 97 col0 FROM tab0 # Datafusion - Expected - -198 # Datafusion - Expected - 91 # Datafusion - Expected - -207 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "CAST\(Int64\(\-58\) AS Int32\) \+ Int64\(\-81\) \+ \(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, CAST ( - 58 AS INTEGER ) + - 81 + - col2 AS col1 FROM tab1 +---- +-198 +-207 +-235 +51 +85 +91 query II rowsort SELECT ALL - 38 AS col1, col2 FROM tab2 @@ -17978,8 +18162,11 @@ SELECT DISTINCT * FROM tab2 WHERE 53 + + - col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, + 38 AS col0 FROM tab0 cor0 +---- +3 +38 query I rowsort label-2972 SELECT - MIN ( DISTINCT - 83 ) AS col2 FROM tab1 AS cor0 @@ -19630,8 +19817,15 @@ SELECT 20 + col1 * + 59 FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 9679824 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* Int64\(\-48\) \* Int64\(21\) \* Int64\(\-99\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * - 48 * 21 * - 99 AS col0, col1 AS col0 FROM tab0 +---- +1 +1496880 +21 +81 +8681904 +9679824 query I rowsort SELECT - 44 FROM tab2 WHERE ( NOT - col1 IS NULL ) @@ -19732,8 +19926,15 @@ NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + col0 ) AS col0, col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT col1 * + 63 AS col0 FROM tab2 @@ -19887,7 +20088,7 @@ SELECT ALL + 22 / - 36 FROM tab0 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) / tab1\.col0 AS col1" at position 0 and "tab1\.col0 / Int64\(28\) \+ Int64\(\-17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Schema error: Schema contains qualified field name tab1\.col1 and unqualified field name col1 which would be ambiguous SELECT - col0 / col0 AS col1, col0 / 28 + - 17 AS col1, + col1 FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL ) query I rowsort @@ -19921,8 +20122,15 @@ SELECT + col0 FROM tab1 WHERE NOT col1 + + - col0 + col1 * + + col0 IS NULL # Datafusion - Expected - -47 # Datafusion - Expected - 69 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 69 AS col0, - col2 AS col0 FROM tab0 cor0 +---- +-10 +-47 +-99 +69 +69 +69 query I rowsort label-3289 SELECT ALL - col2 + + - col0 + CAST ( NULL AS INTEGER ) * + ( + + col0 ) * + col1 + - col1 * - col0 FROM tab2 AS cor0 @@ -20080,8 +20288,15 @@ SELECT ALL - 95 FROM tab0 AS cor0 WHERE 25 IS NOT NULL # Datafusion - Expected - 63 # Datafusion - Expected - 97 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \* cor0\.col0 \+ \(\- cor0\.col0\) \+ cor0\.col1 \* cor0\.col0 AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col1 * col0 + - + col0 + col1 * col0 AS col0, 63 col0 FROM tab0 AS cor0 +---- +2415 +3567 +63 +63 +63 +97 query I rowsort SELECT + - ( col0 ) * col1 + 69 * + col1 * + ( 23 ) + + - ( - 45 ) FROM tab1 AS cor0 @@ -20722,8 +20937,15 @@ SELECT ALL ( - col0 ) * - - 19 AS col0 FROM tab1 # Datafusion - Expected - -85 # Datafusion - Expected - 35 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col1" at position 0 and "\(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 AS col1, - col0 AS col1 FROM tab1 +---- +-51 +-85 +-91 +35 +35 +35 query I rowsort label-3416 SELECT ALL - col2 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IN ( col0, + col1 ) @@ -20761,8 +20983,15 @@ SELECT 82, 38 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + - # Datafusion - Expected - 79 # Datafusion - Expected - 9409 # Datafusion - Expected - 168 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* tab0\.col0 AS col0" at position 0 and "tab0\.col2 \+ Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 * col0 AS col0, + col2 + + 69 AS col0 FROM tab0 +---- +116 +168 +225 +7569 +79 +9409 query I rowsort SELECT ALL + + 69 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 @@ -23381,8 +23610,15 @@ SELECT ALL 19 * + 42 * + 92 AS col0 FROM tab2 # Datafusion - Expected - -84 # Datafusion - Expected - 62 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \* tab2\.col2 / \(\- tab2\.col0\) \+ tab2\.col1 AS col2" at position 0 and "\(\- tab2\.col1\) \+ \(\- \(\- \(\- tab2\.col0\)\)\) \+ tab2\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 * col2 / - col0 + col1 AS col2, - col1 + - - ( - col0 ) + + + col2 AS col2 FROM tab2 +---- +-101 +-74 +-84 +102 +111 +62 query I rowsort label-3852 SELECT DISTINCT + MIN ( + 48 ) FROM tab0 @@ -23961,8 +24197,11 @@ SELECT ( - + col2 ) * 92 AS col1 FROM tab1 # 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 "\(\- sum\(DISTINCT Int64\(\-75\)\)\) AS col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( DISTINCT - 75 ) col2, + ( + 9 ) AS col2 FROM tab1 +---- +75 +9 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NULL = ( col2 ) @@ -24108,8 +24347,15 @@ SELECT - col0 * - 98 - col2 + - 32 col1 FROM tab2 cor0 # Datafusion - Expected - 138 # Datafusion - Expected - 192 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \- \(\- tab1\.col2\) AS col1" at position 0 and "tab1\.col0 \+ tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 - - col2 AS col1, col0 + + col1 AS col1 FROM tab1 +---- +118 +136 +138 +192 +65 +90 query I rowsort label-3982 SELECT DISTINCT COUNT ( * ) * + 24 AS col2 FROM tab0 WHERE 3 / - 63 * - 87 * - 41 * + col2 IN ( + col1 / col1 - col0 ) @@ -24774,8 +25020,15 @@ SELECT ALL * FROM tab2 WHERE - + col1 * + - 66 + col0 > NULL # Datafusion - Expected - -85 # Datafusion - Expected - 3 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "\(\- tab1\.col0\) \+ \(\- tab1\.col2\) \+ tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 3 col1, - col0 + - col2 + + + ( + + col2 ) AS col1 FROM tab1 +---- +-51 +-85 +-91 +3 +3 +3 query III rowsort SELECT * FROM tab0 WHERE NULL >= + + ( - col2 ) / - 40 @@ -24902,8 +25155,15 @@ SELECT - col2 col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL # Datafusion - Expected - 210 # Datafusion - Expected - -81 # Datafusion - Expected - 3807 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col2" at position 0 and "tab0\.col2 \* tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + col1 ) AS col2, col2 * + col1 AS col2 FROM tab0 +---- +-1 +-21 +-81 +210 +3807 +99 query I rowsort label-4108 SELECT ALL - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 @@ -25493,8 +25753,15 @@ SELECT DISTINCT + col2 + - - 93 AS col1, - col2 FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, col2 AS col1 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query II rowsort SELECT DISTINCT - - col2, - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL @@ -25553,8 +25820,15 @@ SELECT MAX ( DISTINCT - ( col0 ) ) AS col1 FROM tab0 cor0 # Datafusion - Expected - 67 # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* cor0\.col0 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) * col0 AS col0, col1 AS col0 FROM tab2 AS cor0 +---- +51 +67 +77 +NULL +NULL +NULL query I rowsort SELECT + 85 * + - col2 FROM tab0 AS cor0 @@ -25750,8 +26024,15 @@ SELECT ALL * FROM tab1 WHERE + 81 * col2 < + 34 # Datafusion - Expected - -70 # Datafusion - Expected - 58 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "Int64\(\-70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 col0, - 70 AS col0 FROM tab2 +---- +-70 +-70 +-70 +23 +40 +58 query I rowsort label-4241 SELECT col1 / - col2 * 61 FROM tab1 @@ -26290,8 +26571,15 @@ SELECT ALL + 38 + + col2 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -81 # Datafusion - Expected - -98 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \- cor0\.col0 AS col2" at position 0 and "Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 23 - ( + + col0 ) AS col2, - 81 AS col2 FROM tab2 AS cor0 +---- +-69 +-81 +-81 +-81 +-87 +-98 query I rowsort label-4326 SELECT 47 / - + col2 FROM tab1 @@ -26684,8 +26972,11 @@ SELECT - col2 + - 52 * + col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -214 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(79\) AS col2" at position 0 and "CAST\(\(\- sum\(DISTINCT tab1\.col2\)\) AS Int32\) \- Int64\(\-9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) + 79 AS col2, CAST ( - SUM ( DISTINCT col2 ) AS INTEGER ) - - 9 AS col2 FROM tab1 +---- +-214 +82 query I rowsort SELECT DISTINCT col2 + col2 - col0 AS col2 FROM tab1 @@ -27241,8 +27532,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, 33 col2 FROM tab2 AS cor0 +---- +3 +33 query II rowsort SELECT ALL - col0, + col1 + ( + 23 ) AS col0 FROM tab2 AS cor0 @@ -27394,8 +27688,15 @@ SELECT ALL * FROM tab1 cor0 WHERE 2 < - col2 + + col0 * - ( - 25 ) # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, col0 FROM tab0 AS cor0 WHERE 29 + + - 16 * - - col0 IS NOT NULL +---- +15 +15 +87 +87 +97 +97 query I rowsort label-4505 SELECT DISTINCT + col0 + + + col1 / - 16 - + col2 FROM tab0 AS cor0 @@ -27501,8 +27802,15 @@ SELECT ALL - 41 * - - 86 * + 43, COUNT ( * ) AS col0 FROM tab1 # Datafusion - Expected - 1552 # Datafusion - Expected - 270 # Datafusion - Expected - 240 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab0\.col0\)\) \* Int64\(18\) AS col2" at position 0 and "Int64\(16\) \* tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - + col0 ) * 18 AS col2, ( 16 ) * col0 col2 FROM tab0 +---- +1392 +1552 +1566 +1746 +240 +270 query I rowsort SELECT DISTINCT ( + + col0 ) col1 FROM tab2 @@ -27639,8 +27947,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( - col2 ) AND 4 + + col0 # Datafusion - Expected - 0 # Datafusion - Expected - 77 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(22\) / Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, 22 / 35 AS col0 FROM tab2 AS cor0 +---- +0 +0 +0 +51 +67 +77 query I rowsort label-4543 SELECT ALL - COUNT ( * ) * + COUNT ( * ) * + - 51 AS col0 FROM tab2 @@ -27687,8 +28002,15 @@ NULL # Datafusion - Expected - -67 # Datafusion - Expected - 77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, - col1 AS col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +51 +67 +77 query I rowsort SELECT - 21 * + 20 FROM tab1 @@ -27933,8 +28255,15 @@ SELECT col0 + - + col0 AS col1 FROM tab2 # Datafusion - Expected - 118 # Datafusion - Expected - 83 # Datafusion - Expected - 146 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col2" at position 0 and "Int64\(50\) \+ tab1\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 83 AS col2, 50 + col2 AS col2 FROM tab1 +---- +109 +118 +146 +83 +83 +83 query II rowsort SELECT DISTINCT + col1, 11 AS col0 FROM tab0 @@ -28477,8 +28806,13 @@ NULL # Datafusion - Expected - -40 # Datafusion - Expected - -58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "\(\- cor0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2, - col2 FROM tab2 AS cor0 WHERE NOT + col2 IN ( - - 92 * + col0 + - + ( col1 ) + 86 * - col2 * + + col1, - col2 + col0 ) +---- +-40 +-40 +-58 +-58 query I rowsort label-4674 SELECT - COUNT ( DISTINCT - 38 ) FROM tab2 AS cor0 @@ -28510,8 +28844,15 @@ SELECT * FROM tab0 AS cor0 WHERE ( NOT 62 / + - col2 + + 56 BETWEEN NULL AND CAS # Datafusion - Expected - 64 # Datafusion - Expected - -58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + col2 ) col1, + col0 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +46 +64 +75 query I rowsort SELECT ALL - col0 FROM tab0 cor0 WHERE 15 * - 67 IS NOT NULL @@ -29002,8 +29343,15 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - 51450 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(14\) \* Int64\(49\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * + 14 * 49 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 +---- +31556 +43904 +51450 +NULL +NULL +NULL query I rowsort SELECT - col1 + + - col2 FROM tab0 @@ -30108,8 +30456,15 @@ SELECT ALL - 96 * col2 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 col1, + col2 AS col1 FROM tab0 cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-4959 SELECT DISTINCT - - SUM ( DISTINCT + col1 ) AS col1 FROM tab2 cor0 @@ -30268,8 +30623,15 @@ NULL # Datafusion - Expected - 77 # Datafusion - Expected - -75 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "\(\- cor0\.col0\) / cor0\.col1 \- \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + col0 ) col0, - col0 / col1 - - col1 AS col0 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +51 +66 +77 query I rowsort label-4986 SELECT ALL - - 30 * - COUNT ( * ) AS col2 FROM tab1 AS cor0 @@ -30989,8 +31351,15 @@ SELECT DISTINCT - 2 + + COUNT ( - col0 ) AS col2 FROM tab2 cor0 # Datafusion - Expected - 3483810 # Datafusion - Expected - 64 # Datafusion - Expected - 9147600 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "Int64\(\-66\) \* Int64\(\-45\) \* \(\- \(\- cor0\.col2\)\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 AS col0, - 66 * - 45 * - - col2 * + + col1 AS col0 FROM tab2 AS cor0 +---- +11541420 +3483810 +64 +64 +64 +9147600 query II rowsort label-5102 SELECT ALL + 81, MAX ( ALL col2 ) AS col0 FROM tab2 AS cor0 @@ -31039,8 +31408,15 @@ SELECT - col1, 43 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -26 # Datafusion - Expected - 77 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col2" at position 0 and "\(\- cor0\.col0\) \+ \(\- \(\- cor0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 AS col2, - col0 + - - col2 AS col2 FROM tab1 AS cor0 +---- +-23 +-26 +45 +77 +77 +77 query I rowsort SELECT + col2 * - - col2 FROM tab1 cor0 WHERE NULL IS NULL @@ -33151,8 +33527,15 @@ SELECT DISTINCT + + 25 + - col0 FROM tab0 WHERE NOT - col0 IS NOT NULL # Datafusion - Expected - 3 # Datafusion - Expected - 97 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \+ cor0\.col1 AS col0" at position 0 and "Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col0 + col1 AS col0, + 3 AS col0 FROM tab2 cor0 +---- +141 +142 +3 +3 +3 +97 query I rowsort label-5464 SELECT ( + MIN ( + col0 ) ) * - COUNT ( * ) FROM tab2 AS cor0 @@ -33508,8 +33891,15 @@ SELECT DISTINCT 79, + col2 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 13 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 13 AS col2, + col0 AS col2 FROM tab1 AS cor0 +---- +13 +13 +13 +51 +85 +91 query II rowsort SELECT ALL - 18, + col1 AS col2 FROM tab2 AS cor0 @@ -35039,8 +35429,15 @@ SELECT COUNT ( DISTINCT 29 ) AS col1 FROM tab0 # Datafusion - Expected - 486 # Datafusion - Expected - -99 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col1 \* Int64\(53\) \+ cor0\.col2 \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, + col1 * + 53 + col2 * - + ( + col1 ) AS col1 FROM tab0 AS cor0 +---- +-10 +-46 +-47 +-99 +486 +903 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 <> ( NULL ) @@ -35187,8 +35584,15 @@ SELECT 47 * - 68 FROM tab0 # Datafusion - Expected - -164 # Datafusion - Expected - 81 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "\(\- tab0\.col0\) \+ tab0\.col2 \+ \(\- tab0\.col0\) \+ Int64\(46\) / tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, + ( ( ( - col0 ) ) ) + col2 + - col0 + + 46 / + col0 AS col2 FROM tab0 +---- +-164 +-95 +1 +20 +21 +81 query I rowsort label-5795 SELECT + - MIN ( ALL - + 8 ) FROM tab2 WHERE NOT - - 84 IN ( - + 19 + - - 34, col0 ) @@ -35335,8 +35739,15 @@ NULL # Datafusion - Expected - 14 # Datafusion - Expected - 7 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \- tab1\.col0 AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 92 - + col0 AS col0, col1 AS col0 FROM tab1 +---- +1 +14 +41 +47 +5 +7 query I rowsort SELECT ALL - 64 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 @@ -35517,8 +35928,15 @@ SELECT ALL 90 * - 87 * - col1 FROM tab1 # Datafusion - Expected - 75 # Datafusion - Expected - 77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 col2, + col0 AS col2 FROM tab2 cor0 +---- +46 +51 +64 +67 +75 +77 query I rowsort label-5848 SELECT DISTINCT - 3 * - + ( + CAST ( COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab1 AS cor0 @@ -35580,8 +35998,15 @@ SELECT 60 AS col2, - col1 FROM tab0 # Datafusion - Expected - -64 # Datafusion - Expected - 58 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \+ Int64\(\-36\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 94 + - 36 col2, - col0 AS col2 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +58 +58 +58 query II rowsort label-5857 SELECT + COUNT ( * ) AS col0, - 71 AS col2 FROM tab1 AS cor0 @@ -36969,8 +37394,11 @@ 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\(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\. +query II valuesort SELECT ( COUNT ( * ) ), + COUNT ( * ) FROM tab0 +---- +3 +3 query I rowsort SELECT DISTINCT 21 * - 98 FROM tab0 @@ -37112,8 +37540,15 @@ SELECT + 28 * - COUNT ( * ) AS col0 FROM tab1 cor0 # Datafusion - Expected - 115 # Datafusion - Expected - 30 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "tab1\.col2 \+ tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 30 col2, col2 + + + col1 AS col2 FROM tab1 +---- +110 +115 +30 +30 +30 +64 query III rowsort SELECT DISTINCT * FROM tab2 WHERE - 12 + + 75 / + col2 NOT BETWEEN NULL AND - - col2 * col0 / - 88 * + col0 + - 28 * + col0 * + - col1 * + - 30 + - + 93 * col1 / + 93 @@ -37893,8 +38328,15 @@ SELECT ALL - 14 + + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 WHERE ( + 29 * - # Datafusion - Expected - NULL # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* Int64\(5\) 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 IR valuesort SELECT DISTINCT col0 * 5 AS col2, CAST ( NULL AS FLOAT8 ) col2 FROM tab0 +---- +435 +485 +75 +NULL +NULL +NULL query I rowsort SELECT + col1 * - 46 AS col0 FROM tab1 @@ -38149,8 +38591,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, + 51 AS col0 FROM tab1 WHERE NOT NULL IS NULL +---- +0 +51 query III rowsort SELECT DISTINCT * FROM tab0 WHERE + - 95 IS NOT NULL @@ -38353,8 +38798,15 @@ SELECT - CAST ( - 80 AS INTEGER ) / - col2 FROM tab2 # Datafusion - Expected - 59 # Datafusion - Expected - 6188 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* \(\- \(\- tab1\.col2\)\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * - - col2 AS col0, + col2 AS col0 FROM tab1 +---- +4896 +5015 +59 +6188 +68 +96 query I rowsort SELECT ALL - 26 * + col0 AS col2 FROM tab0 @@ -38564,8 +39016,15 @@ SELECT + COUNT ( * ) + - + COUNT ( ( + 81 ) ) * + - COUNT ( * ) + + - 84 AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 \- cor0\.col1 \* \(\- CAST\(NULL AS Int32\)\) / cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 + - col2 AS col2, + col1 - + col1 * - CAST ( NULL AS INTEGER ) / col2 col2 FROM tab0 AS cor0 +---- +0 +0 +0 +NULL +NULL +NULL query I rowsort label-6341 SELECT DISTINCT + 33 + - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0 @@ -39226,8 +39685,10 @@ SELECT col2 * + col0, + ( - col0 ) AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 3a9d8b174e85e708f55106d4368997b7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col1 \* \(\- cor0\.col2\) AS col0" at position 1 and "\(\- \(\- cor0\.col0\)\) \- cor0\.col1 AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - col2 * col0 - + col1 - + + col2, col0 * + col1 * - col2 AS col0, - - col0 - col1 AS col0 FROM tab1 AS cor0 +---- +9 values hashing to a2267be0e3b8105cfd58f9b129ee6746 query I rowsort label-6448 SELECT - SUM ( + col1 ) FROM tab2 AS cor0 WHERE - col1 * CAST ( - col0 AS INTEGER ) + + col1 NOT BETWEEN NULL AND - + col0 @@ -40252,8 +40713,15 @@ SELECT DISTINCT 63 FROM tab0 WHERE ( col2 ) IS NOT NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col0, + col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT ALL 22 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 @@ -40342,8 +40810,11 @@ 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\(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\. +query II valuesort SELECT ALL - ( - COUNT ( * ) ) AS col0, 80 - - + 10 AS col0 FROM tab0 +---- +3 +90 query III rowsort SELECT * FROM tab1 WHERE NOT ( + - col0 + + + col1 ) <= - col1 * col0 @@ -41537,8 +42008,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) col2, SUM ( 27 ) + - 2 * - 26 col2 FROM tab0 +---- +-3 +133 query II rowsort label-6833 SELECT DISTINCT + MAX ( DISTINCT 80 ), - COUNT ( * ) AS col1 FROM tab2 @@ -41667,8 +42141,15 @@ SELECT ALL ( col0 ) / - ( - 47 ) AS col2 FROM tab1 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, ( col0 ) FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-6852 SELECT col0 * - col0 * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 @@ -42194,8 +42675,11 @@ SELECT DISTINCT MAX ( DISTINCT - 98 ) / + ( - COUNT ( * ) ) + - + ( - COUNT ( * # 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\(DISTINCT Int64\(\-52\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 80 AS col2, COUNT ( DISTINCT - 52 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL +---- +1 +80 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 + ( - 76 ) IS NULL @@ -42727,8 +43211,15 @@ SELECT - 63 * - 26 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 4624 # Datafusion - Expected - 31 # Datafusion - Expected - 9216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-31\)\) AS col1" at position 0 and "cor0\.col2 \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 31 col1, col2 * col2 AS col1 FROM tab1 cor0 +---- +31 +31 +31 +3481 +4624 +9216 query I rowsort label-7027 SELECT MAX ( - 46 ) + 53 AS col1 FROM tab0 @@ -44321,8 +44812,11 @@ SELECT ALL + + col1 + + - col1 + + col2 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +3 +87 query I rowsort SELECT ALL - 15 - col1 AS col1 FROM tab1 @@ -44404,8 +44898,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT - 74 IS NULL # Datafusion - Expected - 0 # Datafusion - Expected - -58 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col1 \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, col1 + + - col1 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +0 +0 +0 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 / + col0 < - col2 @@ -44762,8 +45263,11 @@ SELECT * FROM tab0 AS cor0 WHERE NOT - ( col2 ) < col0 * + col0 + + CAST ( 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\(DISTINCT cor0\.col2\)\) AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( DISTINCT + col2 ) AS col1, + 90 AS col1 FROM tab1 AS cor0 +---- +-3 +90 query II rowsort label-7360 SELECT col2, col1 / + col1 + 64 + - 80 / 97 * CAST ( NULL AS INTEGER ) * col1 / + - 76 AS col0 FROM tab1 AS cor0 @@ -44783,8 +45287,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - SUM ( - CAST ( NULL AS INTEGER ) ) col2, + 63 AS col2 FROM tab0 WHERE NOT col1 IS NULL +---- +63 +NULL query III rowsort SELECT * FROM tab2 AS cor0 WHERE NULL = 8 + col2 + col2 @@ -45040,8 +45547,15 @@ SELECT DISTINCT + COUNT ( * ) / ( COUNT ( * ) ) + - + 10 AS col0 FROM tab0 AS co # Datafusion - Expected - 16 # Datafusion - Expected - 18 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- Int64\(29\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 - 29 AS col1, 16 AS col1 FROM tab1 cor0 +---- +-15 +-24 +16 +16 +16 +18 query I rowsort label-7404 SELECT ALL + 24 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 @@ -46230,8 +46744,11 @@ SELECT - ( + - 21 ) * + + col1 FROM tab0 AS cor0 # 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 "Int64\(83\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 83 col2, 4 AS col2 FROM tab2 AS cor0 +---- +4 +83 query I rowsort SELECT ALL - 94 * + 65 AS col1 FROM tab0 @@ -46405,8 +46922,15 @@ SELECT - COUNT ( ALL + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 WH # Datafusion - Expected - NULL # Datafusion - Expected - -91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / Int64\(\-66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, - CAST ( NULL AS INTEGER ) / - 66 AS col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +NULL +NULL +NULL query II rowsort SELECT ALL - 77 AS col0, col1 * - col2 AS col1 FROM tab2 @@ -46617,8 +47141,15 @@ SELECT 69 + + col0 col2 FROM tab1 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, col0 col2 FROM tab1 cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT ALL + - 88 col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 @@ -47563,8 +48094,15 @@ SELECT ( MAX ( DISTINCT + col1 ) ) FROM tab0 AS cor0 # Datafusion - Expected - 74 # Datafusion - Expected - 48 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 AS col2, + 74 AS col2 FROM tab1 +---- +48 +48 +48 +74 +74 +74 query II rowsort SELECT col2, - 0 FROM tab2 @@ -47602,8 +48140,15 @@ SELECT col1 * + CAST ( - 4 AS INTEGER ) FROM tab2 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, + col0 col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT + col2 FROM tab2 WHERE NOT col2 IS NULL @@ -47956,8 +48501,15 @@ SELECT * FROM tab1 WHERE NOT col2 * + col2 NOT BETWEEN NULL AND NULL # Datafusion - Expected - 47 # Datafusion - Expected - -5 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 5 col1, col2 AS col1 FROM tab0 AS cor0 +---- +-5 +-5 +-5 +10 +47 +99 query I rowsort label-7878 SELECT - - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL ) @@ -48527,8 +49079,15 @@ SELECT DISTINCT + 43 + 90 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - 5 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, - col2 AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +14 +47 +5 query I rowsort label-7976 SELECT ALL + + col1 - col1 + - - CAST ( NULL AS INTEGER ) * + 91 AS col1 FROM tab0 AS cor0 @@ -48558,8 +49117,15 @@ SELECT * FROM tab2 WHERE NOT + col2 IN ( col1, col0 ) # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(74\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) * - + 74 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 +---- +NULL +NULL +NULL +NULL +NULL +NULL query I rowsort SELECT DISTINCT 5 * + col1 FROM tab1 @@ -50542,13 +51108,18 @@ SELECT DISTINCT - ( + col2 ) / + - 58 AS col1 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 185 # Datafusion - Expected - -121 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- cor0\.col0\)\)\) AS col0" at position 0 and "sum\(\(\- cor0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - SUM ( ALL - + col0 ) AS col0, SUM ( - col2 ) col0 FROM tab2 AS cor0 +---- +-121 +185 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 29f51db65c76a33ab5a1623a0718ab68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col1 AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col0 * + col1 AS col2, 88 AS col2, col1 col2 FROM tab0 AS cor0 +---- +9 values hashing to 90b5f0bbb179f515d3b2cd3b2f547c1d query I rowsort SELECT - + ( - 45 ) FROM tab2 AS cor0 @@ -51275,8 +51846,15 @@ SELECT * FROM tab2 WHERE col1 + + col1 IN ( + + 66 ) OR col1 * + col2 IS NULL # Datafusion - Expected - -363301 # Datafusion - Expected - 81092 # Datafusion - Expected - -451512 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \* Int64\(38\) \* tab0\.col0 AS col0" at position 0 and "tab0\.col2 \- tab0\.col1 \+ Int64\(22\) \+ Int64\(\-48\) \* tab0\.col0 \* tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 * 38 * col0 AS col0, col2 - col1 + + 22 + - 48 * + + col0 * col0 AS col0 FROM tab0 +---- +-10812 +-363301 +-451512 +12540 +72732 +81092 query I rowsort label-8432 SELECT - COUNT ( * ) + + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 * - - col2 < - - col0 @@ -52955,8 +53533,11 @@ SELECT ALL - 65 col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / Int64\(14\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) / 14 AS col0, + COUNT ( * ) AS col0 FROM tab1 +---- +3 +NULL query I rowsort SELECT 16 + - col2 * + + 31 AS col1 FROM tab0 @@ -53026,8 +53607,15 @@ SELECT ALL - - col2 - + col2 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 5 # Datafusion - Expected - -91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, col1 col2 FROM tab1 +---- +-51 +-85 +-91 +14 +47 +5 query I rowsort label-8721 SELECT DISTINCT + MAX ( 48 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1 @@ -53085,8 +53673,11 @@ SELECT ALL ( - + 95 ) col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT tab1\.col1\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( DISTINCT + col1 ) AS col2, + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 +---- +6 +66 query II rowsort SELECT - 33, - 96 AS col1 FROM tab0 @@ -53196,8 +53787,15 @@ SELECT - 18 AS col2, ( + col0 ) + - col2 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 +---- +NULL +NULL +NULL +NULL +NULL +NULL query III rowsort SELECT * FROM tab2 WHERE + 71 * + 43 * - col1 IS NULL @@ -54204,8 +54802,15 @@ SELECT * FROM tab2 WHERE NOT NULL BETWEEN - + 33 AND 48 + + col0 # Datafusion - Expected - -17 # Datafusion - Expected - 97 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "Int64\(\-17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, - 17 AS col1 FROM tab0 WHERE NOT ( - ( + col2 ) * - 86 ) IS NULL +---- +-17 +-17 +-17 +15 +87 +97 query I rowsort SELECT ALL - col0 + + 97 FROM tab0 AS cor0 @@ -54556,8 +55161,11 @@ SELECT MAX ( ALL col0 ) * + + 14 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 168 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(56\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, + 56 * + COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +168 +3 query III rowsort SELECT ALL * FROM tab0 WHERE NOT ( + 44 * + 74 - - 98 ) IS NOT NULL @@ -54874,8 +55482,9 @@ SELECT 52, col1 AS col1 FROM tab0 81 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 73 AS col1, 19 col1 FROM tab2 WHERE NOT NULL IS NULL +---- query I rowsort label-9025 SELECT ALL MAX ( DISTINCT + 96 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 @@ -55564,8 +56173,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( - col1 ) ) NOT IN ( + 28, + col2 + # Datafusion - Expected - -58 # Datafusion - Expected - -5865 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- cor0\.col1\) \+ cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * - col1 + + col0 AS col2, - col2 AS col2 FROM tab2 cor0 +---- +-23 +-2555 +-40 +-4414 +-58 +-5865 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= + 14 @@ -56774,8 +57390,15 @@ SELECT col0 * - - col0 * col2 * - col1 FROM tab2 # Datafusion - Expected - 40 # Datafusion - Expected - 0 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 / tab2\.col0 AS col2" at position 0 and "\(\- CAST\(\(\- tab2\.col2\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 / + + col0 AS col2, - CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 +---- +0 +0 +0 +23 +40 +58 query III rowsort SELECT ALL * FROM tab1 WHERE ( NOT col0 BETWEEN NULL AND + - 1 ) @@ -56979,8 +57602,15 @@ SELECT - col1 AS col0, col2 FROM tab1 # Datafusion - Expected - 11 # Datafusion - Expected - 0 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 / \(\- Int64\(91\)\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 / - + 91 AS col2, ( 11 ) AS col2 FROM tab0 +---- +-1 +0 +0 +11 +11 +11 query I rowsort SELECT + 57 * - + 11 * - - col1 AS col2 FROM tab2 @@ -57025,8 +57655,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT + col2 <= 45 * - col0 + + col0 * + + col0 # Datafusion - Expected - 5 # Datafusion - Expected - 91 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col0\) \+ \(\- Int64\(\-90\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 col2, - col0 + - - 90 AS col2 FROM tab1 AS cor0 +---- +-1 +39 +5 +51 +85 +91 query II rowsort SELECT ALL + col2 + - col2 AS col2, + col2 AS col0 FROM tab0 AS cor0 @@ -57088,8 +57725,15 @@ SELECT col2 * - 57 - - col0 FROM tab1 # Datafusion - Expected - -1 # Datafusion - Expected - -99 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col0" at position 0 and "tab0\.col0 / \(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, col0 / - + col0 AS col0 FROM tab0 +---- +-1 +-1 +-1 +-10 +-47 +-99 query III rowsort SELECT * FROM tab1 WHERE + 84 = NULL @@ -57211,8 +57855,11 @@ SELECT DISTINCT + col1 / - col0 AS col1 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) col1, - COUNT ( * ) AS col1 FROM tab1 +---- +-3 +3 query I rowsort SELECT - 6 * col1 col0 FROM tab0 @@ -57526,8 +58173,15 @@ SELECT ALL * FROM tab1 cor0 WHERE NOT 0 * + + col0 * + 67 + - col0 >= NULL # Datafusion - Expected - NULL # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(5\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( 5 ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +-5 +-5 +-5 +NULL +NULL +NULL query I rowsort SELECT + col0 * + col2 + col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL @@ -57743,8 +58397,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT - col0 <> col1 # Datafusion - Expected - 23 # Datafusion - Expected - 450 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-90\) AS Int32\)\) \* Int64\(5\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( - 90 AS INTEGER ) * + 5 AS col2, + 23 AS col2 FROM tab1 AS cor0 +---- +23 +23 +23 +450 +450 +450 query I rowsort label-9490 SELECT + SUM ( DISTINCT + + 68 ) AS col0 FROM tab1 AS cor0 @@ -57967,8 +58628,9 @@ SELECT 79 + - 11 AS col1 FROM tab0 AS cor0 68 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col2" at position 0 and "Int64\(4\) / Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 77 col2, 4 / + 8 col2 FROM tab0 WHERE NOT - col1 <= - col1 + + col1 +---- query I rowsort label-9525 SELECT CAST ( NULL AS INTEGER ) * col0 col2 FROM tab0 @@ -58000,8 +58662,15 @@ SELECT MAX ( ALL + + col1 ) FROM tab2 # Datafusion - Expected - 128 # Datafusion - Expected - 58 # Datafusion - Expected - 150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "tab2\.col0 \- \(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, + col0 - - col0 AS col0 FROM tab2 +---- +128 +150 +23 +40 +58 +92 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT + col1 - - + 23 IS NULL @@ -58084,8 +58753,15 @@ SELECT 46 * - col1 + ( - col2 ) FROM tab2 # Datafusion - Expected - 60 # Datafusion - Expected - 82 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ Int64\(68\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 + 68 AS col1, 60 AS col1 FROM tab1 cor0 +---- +115 +60 +60 +60 +73 +82 query I rowsort SELECT col1 * - 19 + - + col2 FROM tab0 cor0 @@ -58554,8 +59230,15 @@ SELECT * FROM tab0 WHERE NOT col2 * + 45 + col1 + - - col2 / + 8 + - col0 + - co # Datafusion - Expected - -29 # Datafusion - Expected - NULL # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col0, - 29 AS col0 FROM tab0 +---- +-29 +-29 +-29 +NULL +NULL +NULL query I rowsort label-9616 SELECT ALL COUNT ( ALL 31 ) AS col2 FROM tab2 @@ -59404,8 +60087,15 @@ SELECT - - CAST ( NULL AS INTEGER ) + - + col2 * ( + col2 ) FROM tab1 WHERE NOT # Datafusion - Expected - -2103 # Datafusion - Expected - 85 # Datafusion - Expected - -2103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col0" at position 0 and "Int64\(88\) \* \(\- Int64\(24\)\) \+ Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 85 col0, + 88 * + - ( + 24 ) + 9 col0 FROM tab2 AS cor0 +---- +-2103 +-2103 +-2103 +85 +85 +85 query I rowsort label-9761 SELECT + 55 AS col2 FROM tab2 WHERE NOT + col2 + - CAST ( - + CAST ( + col1 AS INTEGER ) AS INTEGER ) * + 9 >= + - CAST ( NULL AS INTEGER ) @@ -59660,8 +60350,11 @@ SELECT COUNT ( * ) AS col2 FROM tab1 WHERE - col0 + - + col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "Int64\(\-14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 16 AS col1, - 14 AS col1 FROM tab1 +---- +-14 +16 query II rowsort SELECT - 89, - 72 AS col1 FROM tab1 @@ -60598,8 +61291,10 @@ SELECT DISTINCT - CAST ( + SUM ( DISTINCT - col1 ) AS INTEGER ) AS col0 FROM tab # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 36a6f3ce8ee02d24ac3b7c86c3e53f87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "Int64\(65\) \+ Int64\(90\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col1 AS col0, - 17 AS col1, 65 + + 90 AS col0 FROM tab2 +---- +9 values hashing to 8b3a618e43faf5f7187c4650a6553bd2 query II rowsort SELECT ALL + col0 * col2 - 1 AS col1, 41 FROM tab0 WHERE NOT + col1 + col2 IS NOT NULL @@ -60756,8 +61451,15 @@ SELECT DISTINCT + 13 * - + col1 FROM tab1 # Datafusion - Expected - 17 # Datafusion - Expected - -26979 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* tab2\.col2 \* \(\- tab2\.col1\) AS col2" at position 0 and "\(\- tab2\.col2\) \+ tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 * + col2 * - col1 AS col2, - col2 + col0 AS col2 FROM tab2 +---- +-123200 +-225388 +-26979 +17 +23 +24 query I rowsort label-9984 SELECT + col1 FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) < col2 diff --git a/data/sqlite/random/aggregates/slt_good_23.slt b/data/sqlite/random/aggregates/slt_good_23.slt index e382f1c..b64c98b 100644 --- a/data/sqlite/random/aggregates/slt_good_23.slt +++ b/data/sqlite/random/aggregates/slt_good_23.slt @@ -1399,8 +1399,15 @@ SELECT - 99 * + COUNT ( * ) FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, + ( + col1 ) FROM tab1 +---- +14 +14 +47 +47 +5 +5 query II rowsort SELECT + 66 col0, - col1 FROM tab2 @@ -1721,8 +1728,15 @@ SELECT ALL ( + - 37 ) FROM tab2 # Datafusion - Expected - 64 # 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 "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 50 AS col2, + col0 col2 FROM tab2 AS cor0 +---- +-50 +-50 +-50 +46 +64 +75 query I rowsort SELECT - - col0 * ( - col0 ) FROM tab1 AS cor0 @@ -2510,8 +2524,11 @@ SELECT DISTINCT - 2 + + col0 + col2 + + 32 + - col1 + + - col2 FROM tab2 WHERE N # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-47\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( + ( + - 47 ) ) AS col1, COUNT ( * ) col1 FROM tab1 +---- +-47 +3 query II rowsort label-403 SELECT ALL + COUNT ( * ), - 28 AS col1 FROM tab1 @@ -2648,8 +2665,15 @@ SELECT col0 + - col0 + + 71 + col0 AS col1 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "\(\- tab2\.col1\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, - col1 + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 +---- +51 +67 +77 +NULL +NULL +NULL query I rowsort label-427 SELECT COUNT ( * ) / - - 22 + + COUNT ( * ) FROM tab0 @@ -2741,8 +2765,15 @@ SELECT ( + 59 ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE 94 BETWEEN col0 # Datafusion - Expected - -5015 # Datafusion - Expected - -10 # Datafusion - Expected - -6188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col1" at position 0 and "cor0\.col2 \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 10 AS col1, + col2 * - col0 col1 FROM tab1 AS cor0 +---- +-10 +-10 +-10 +-4896 +-5015 +-6188 query I rowsort label-442 SELECT DISTINCT - 51 + - ( 0 ) + COUNT ( - + col0 ) * - 75 * + COUNT ( * ) FROM tab1 AS cor0 @@ -2775,8 +2806,15 @@ SELECT ALL COUNT ( * ) AS col0, 59 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, + col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-448 SELECT col2 * CAST ( NULL AS INTEGER ) + col1 + + + 39 FROM tab0 AS cor0 @@ -2965,8 +3003,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 27 col2, + ( + + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 +---- +-27 +3 query I rowsort SELECT ( + - col0 ) * + 49 AS col1 FROM tab0 AS cor0 @@ -3646,8 +3687,15 @@ SELECT - 0 * - col1 * + col0 FROM tab2 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, col2 AS col0 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT DISTINCT - 25 * - ( - col1 ) AS col0 FROM tab1 @@ -3900,8 +3948,11 @@ SELECT 98 * + 25 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, COUNT ( * ) / + COUNT ( * ) col0 FROM tab0 cor0 +---- +1 +3 query I rowsort label-639 SELECT 5 FROM tab1 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) - col1 + + + col2 / - 21 ) IS NOT NULL @@ -4161,8 +4212,15 @@ SELECT col1 * - 13 + 43 AS col2 FROM tab1 # Datafusion - Expected - -2209 # Datafusion - Expected - 75 # Datafusion - Expected - -100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \+ Int64\(85\) AS col1" at position 0 and "tab0\.col2 \* \(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 + + 85 AS col1, col2 * - col2 AS col1 FROM tab0 +---- +-100 +-14 +-2209 +-9801 +38 +75 query I rowsort label-684 SELECT + col2 / + - col1 + + 23 AS col0 FROM tab1 @@ -4298,8 +4356,15 @@ NULL # Datafusion - Expected - -2360 # Datafusion - Expected - 16 # Datafusion - Expected - -3422 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "Int64\(59\) \* \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 16 AS col2, 59 * - col2 col2 FROM tab2 +---- +-1357 +-2360 +-3422 +16 +16 +16 query I rowsort SELECT DISTINCT ( 22 ) FROM tab2 AS cor0 @@ -4679,8 +4744,15 @@ SELECT DISTINCT - 65 AS col0 FROM tab1 WHERE NOT col0 + + 7 IS NOT NULL # Datafusion - Expected - 68 # Datafusion - Expected - -5 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, + col2 AS col0 FROM tab1 +---- +-14 +-47 +-5 +59 +68 +96 query I rowsort label-771 SELECT DISTINCT - - col1 * col0 + - ( 87 ) + + 63 * - 36 * - col0 FROM tab2 WHERE - - CAST ( NULL AS INTEGER ) IS NOT NULL @@ -4700,8 +4772,11 @@ SELECT ALL COUNT ( DISTINCT + + col2 ) * 84 + - COUNT ( * ) AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 66 AS col2, COUNT ( * ) AS col2 FROM tab2 +---- +3 +66 query I rowsort label-775 SELECT DISTINCT - MAX ( ALL - 61 ) FROM tab0 AS cor0 WHERE col2 + 40 + + 9 IS NOT NULL @@ -4732,8 +4807,15 @@ SELECT DISTINCT - 11 / - + 55 AS col1, + col0 * - col2 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, col2 AS col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query III rowsort label-779 SELECT ALL * FROM tab1 AS cor0 WHERE + 30 * + 71 - CAST ( NULL AS INTEGER ) IS NOT NULL @@ -5033,8 +5115,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 18 AS col1, - 91 * + - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 +---- +18 +819 query I rowsort label-831 SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 @@ -7254,8 +7339,15 @@ SELECT + + 55 + + col2 - - col0 + - - 7 * col0 FROM tab2 AS cor0 WHERE ( + - 83 # Datafusion - Expected - -14 # Datafusion - Expected - -963 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \* \(\- cor0\.col1\) \+ cor0\.col2 \- cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 20 * - col1 + col2 - + col0 col1, - col1 AS col1 FROM tab1 AS cor0 +---- +-126 +-14 +-235 +-47 +-5 +-963 query III rowsort SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 BETWEEN - - col0 AND NULL @@ -8157,8 +8249,15 @@ SELECT + COUNT ( ALL col0 ) col2 FROM tab1 AS cor0 # Datafusion - Expected - -21 # Datafusion - Expected - 92 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col2" at position 0 and "\(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( 92 ) AS col2, - col1 AS col2 FROM tab0 +---- +-1 +-21 +-81 +92 +92 +92 query I rowsort label-1346 SELECT DISTINCT + COUNT ( * ) + + 0 AS col1 FROM tab2 @@ -8239,8 +8338,15 @@ SELECT + + ( + 10 ) * - - col0 FROM tab0 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL +---- +15 +15 +87 +87 +97 +97 query III rowsort SELECT * FROM tab0 cor0 WHERE NOT 79 IS NOT NULL @@ -8385,8 +8491,15 @@ SELECT - CAST ( + + 57 AS INTEGER ) FROM tab0 # Datafusion - Expected - 34 # Datafusion - Expected - NULL # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT CAST ( NULL AS FLOAT8 ) AS col2, 34 AS col2 FROM tab1 +---- +34 +34 +34 +NULL +NULL +NULL query III rowsort SELECT * FROM tab0 WHERE NOT - + col2 NOT BETWEEN - col2 * - col2 AND col0 @@ -8801,8 +8914,15 @@ SELECT ALL MAX ( - ( + col0 ) ) FROM tab1 # Datafusion - Expected - 32 # Datafusion - Expected - -26 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 26 AS col1, 32 AS col1 FROM tab1 AS cor0 +---- +-26 +-26 +-26 +32 +32 +32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 @@ -8811,8 +8931,15 @@ SELECT ALL + - 26 AS col1, 32 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -15 # Datafusion - Expected - -99 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col2 AS col0, - col0 AS col0 FROM tab0 AS cor0 +---- +-10 +-15 +-47 +-87 +-97 +-99 query I rowsort SELECT DISTINCT - - ( - 70 ) FROM tab2 AS cor0 @@ -9089,8 +9216,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL +---- +3 +3 query I rowsort SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) = ( - 12 ) @@ -9302,8 +9432,15 @@ SELECT ALL + MAX ( DISTINCT - - 69 ) FROM tab2 # Datafusion - Expected - -18 # Datafusion - Expected - 5 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(\-18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, - 18 AS col0 FROM tab1 AS cor0 +---- +-18 +-18 +-18 +14 +47 +5 query II rowsort label-1535 SELECT ALL COUNT ( * ) AS col0, - 54 FROM tab0 AS cor0 @@ -9337,8 +9474,10 @@ SELECT - 88 + + COUNT ( ALL ( col2 ) ) col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 7befec651df5586e9100cb3be2273c79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \+ tab0\.col2 AS col2" at position 0 and "Int64\(\-64\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 71 + col2 AS col2, 38, + - 64 AS col2 FROM tab0 +---- +9 values hashing to c506ee6a0de8fa9b82ba9b4f983b8063 query I rowsort SELECT DISTINCT 74 + + col1 + - col2 * - 82 FROM tab0 @@ -11449,8 +11588,11 @@ SELECT col1 AS col0, + ( - + col0 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "Int64\(60\) \+ \(\- count\(\(\- tab0\.col2\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 63 col1, + 60 + - COUNT ( + - col2 ) AS col1 FROM tab0 +---- +57 +63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1344 @@ -12065,8 +12207,15 @@ SELECT ALL - col0 + - 8 + col2 * + ( + col0 ) + - - col0 + col0 * + col0 * + 54 # Datafusion - Expected - -47 # Datafusion - Expected - 24 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col0" at position 0 and "\(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 24 col0, - col1 AS col0 FROM tab1 +---- +-14 +-47 +-5 +24 +24 +24 query I rowsort SELECT 57 + + 65 FROM tab2 @@ -12763,8 +12912,15 @@ SELECT - ( - CAST ( + COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 90 # Datafusion - Expected - 74 # Datafusion - Expected - 7290 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \+ cor0\.col0 AS col1" at position 0 and "Int64\(90\) \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 59 + + col0 AS col1, 90 * + col1 AS col1 FROM tab0 AS cor0 +---- +146 +156 +1890 +7290 +74 +90 query I rowsort SELECT DISTINCT - - col1 * - col1 - - 37 - col0 AS col0 FROM tab0 AS cor0 @@ -13065,8 +13221,15 @@ SELECT + COUNT ( ALL - 7 ) FROM tab2 # Datafusion - Expected - 3915 # Datafusion - Expected - -97 # Datafusion - Expected - 4365 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col0" at position 0 and "Int64\(45\) \* tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, 45 * + col0 AS col0 FROM tab0 +---- +-15 +-87 +-97 +3915 +4365 +675 query II rowsort label-2150 SELECT ALL 34 AS col2, COUNT ( * ) AS col0 FROM tab1 @@ -13273,8 +13436,15 @@ SELECT * FROM tab2 AS cor0 WHERE 35 + + - 35 IS NOT NULL # Datafusion - Expected - -68 # Datafusion - Expected - 47 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(62\)\) AS Int32\)\) \- \(\- cor0\.col1\) \- Int64\(96\) AS col0" at position 0 and "Int64\(\-52\) \- Int64\(16\) \+ Int64\(36\) / \(\- Int64\(77\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( - + 62 AS INTEGER ) - - col1 - 96 AS col0, ( - 52 ) - + 16 + 36 / - + 77 AS col0 FROM tab0 AS cor0 +---- +-13 +-33 +-68 +-68 +-68 +47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 @@ -13283,8 +13453,15 @@ SELECT - CAST ( - + 62 AS INTEGER ) - - col1 - 96 AS col0, ( - 52 ) - + 16 + 36 # Datafusion - Expected - -64 # Datafusion - Expected - 33 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 33 AS col1, - col0 AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +33 +33 +33 query I rowsort SELECT ALL + 49 AS col0 FROM tab0 cor0 @@ -13340,8 +13517,11 @@ SELECT 13 * + + 74 AS col0 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\(DISTINCT Int64\(84\)\)\) AS col2" at position 0 and "max\(DISTINCT Int64\(35\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( DISTINCT 84 ) col2, MAX ( DISTINCT 35 ) AS col2 FROM tab0 +---- +-1 +35 query I rowsort label-2192 SELECT ALL - CAST ( ( ( CAST ( + 25 AS INTEGER ) ) ) AS INTEGER ) FROM tab1 @@ -14541,8 +14721,15 @@ SELECT + - col2, + col2 FROM tab2 cor0 # Datafusion - Expected - -87 # Datafusion - Expected - -10 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col1" at position 0 and "CAST\(\(\- cor0\.col0\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 10 col1, CAST ( - + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0 +---- +-10 +-10 +-10 +-15 +-87 +-97 query II rowsort SELECT - col0 AS col2, - col1 * - 44 - + 91 AS col0 FROM tab2 AS cor0 @@ -14837,8 +15024,15 @@ SELECT ALL 6 * + 97 * - MAX ( + 49 ) AS col2 FROM tab0 cor0 # Datafusion - Expected - 50 # Datafusion - Expected - 1944 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \* Int64\(\-24\) AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 81 * + - 24 AS col1, 50 AS col1 FROM tab1 cor0 +---- +1944 +1944 +1944 +50 +50 +50 query I rowsort SELECT ALL + 24 * + + 21 + - col1 col0 FROM tab0 AS cor0 @@ -15240,8 +15434,15 @@ SELECT ALL + + col1 AS col0 FROM tab0 WHERE NULL IS NULL # Datafusion - Expected - -7486 # Datafusion - Expected - -7 # Datafusion - Expected - -9326 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) AS col2" at position 0 and "tab0\.col0 \* \(\- tab0\.col0\) \+ \(\- tab0\.col2\) / tab0\.col0 / tab0\.col0 \+ Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 7 AS col2, col0 * - + col0 + + - col2 / col0 / col0 + 83 AS col2 FROM tab0 +---- +-142 +-7 +-7 +-7 +-7486 +-9326 query II rowsort label-2503 SELECT ALL - col0 + CAST ( NULL AS INTEGER ) AS col1, 5 FROM tab2 cor0 @@ -16021,8 +16222,11 @@ SELECT ALL 14 AS col2 FROM tab0 WHERE NOT - 15 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(\(\- tab0\.col1\)\)\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - + AVG ( - col1 ) col1, 87 AS col1 FROM tab0 WHERE NOT + + col1 IS NOT NULL +---- +87 +NULL query I rowsort SELECT ALL col1 FROM tab2 WHERE NULL NOT BETWEEN + col1 / col1 + + + col2 / - 94 + - 5 AND - + 10 @@ -16120,8 +16324,15 @@ SELECT ALL * FROM tab2 WHERE ( col0 + 47 ) IS NULL # Datafusion - Expected - 40 # Datafusion - Expected - -5625 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* \(\- tab2\.col0\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * - col0 AS col0, + col2 AS col0 FROM tab2 +---- +-2116 +-4096 +-5625 +23 +40 +58 query I rowsort SELECT - - col1 + + 78 * - col1 FROM tab0 WHERE NOT NULL >= - - 9 @@ -16854,8 +17065,15 @@ NULL # Datafusion - Expected - 850 # Datafusion - Expected - -76 # Datafusion - Expected - 910 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col2" at position 0 and "Int64\(10\) \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 76 AS col2, 10 * + col0 AS col2 FROM tab1 AS cor0 +---- +-76 +-76 +-76 +510 +850 +910 query I rowsort SELECT DISTINCT + 99 / col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL @@ -17158,8 +17376,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3024 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* max\(Int64\(\-84\)\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 36 * MAX ( ALL - 84 ) AS col2, 84 AS col2 FROM tab0 +---- +3024 +84 query III rowsort SELECT * FROM tab2 WHERE - col2 * col2 + - col1 BETWEEN col1 AND NULL @@ -17709,8 +17930,9 @@ SELECT DISTINCT 15 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 40 15 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, - col1 AS col1 FROM tab1 WHERE col2 >= NULL +---- query I rowsort SELECT DISTINCT - ( + col0 ) * col1 + - - 11 * - 11 - + col2 * + col0 AS col0 FROM tab1 @@ -17947,8 +18169,11 @@ SELECT DISTINCT COUNT ( DISTINCT - 56 ) * - - 86 + + MAX ( ALL + 30 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 37 col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +-37 +3 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 * col1 + 6 IS NOT NULL @@ -19522,8 +19747,15 @@ SELECT DISTINCT SUM ( col2 ) AS col1 FROM tab0 # Datafusion - Expected - -67 # Datafusion - Expected - -78 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(78\)\) AS col1" at position 0 and "\(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 78 ) AS col1, - col1 AS col1 FROM tab2 +---- +-51 +-67 +-77 +-78 +-78 +-78 query I rowsort SELECT ALL + 88 + - 14 * 12 FROM tab2 @@ -20466,8 +20698,9 @@ SELECT ALL * FROM tab0 WHERE NOT ( + + col1 ) < NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col2" at position 0 and "tab0\.col0 \* Int64\(32\) \* Int64\(\-8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 88 col2, col0 * 32 * - 8 AS col2 FROM tab0 WHERE ( NULL IS NOT NULL ) +---- query I rowsort SELECT - col0 + + col0 - col2 FROM tab2 @@ -20640,8 +20873,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> + + col2 # Datafusion - Expected - -47 # Datafusion - Expected - 75 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "Int64\(\-47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, - 47 AS col2 FROM tab2 +---- +-47 +-47 +-47 +46 +64 +75 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT - ( + col0 ) - + + col2 * col1 * - col1 IS NULL @@ -20676,8 +20916,15 @@ SELECT ALL - CAST ( - col0 AS INTEGER ) - - 65 AS col1, + 51 FROM tab1 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col1 AS col1, col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query II rowsort SELECT ALL + - col2 AS col1, col2 FROM tab1 AS cor0 @@ -20901,8 +21148,15 @@ SELECT - + col0 * col0, 27 * - + ( + col1 ) AS col1 FROM tab1 cor0 # Datafusion - Expected - 146 # Datafusion - Expected - 82 # Datafusion - Expected - 156 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "Int64\(79\) \+ tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 82 AS col0, + 79 + + col1 AS col0 FROM tab2 +---- +130 +146 +156 +82 +82 +82 query III rowsort SELECT * FROM tab0 WHERE NOT NULL BETWEEN - col1 + 56 AND - 60 @@ -20927,8 +21181,10 @@ SELECT ALL - SUM ( ALL col0 ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 32634dfc4672077720d59e6c49a824cf -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(\-21\) \* cor0\.col2 AS col2" at position 0 and "\(\- cor0\.col2\) \* \(\- cor0\.col0\) \+ \(\- cor0\.col1\) \+ Int64\(61\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col0 * - 21 * + col2 AS col2, - col0 + + 11 + - col0 AS col0, - + col2 * - col0 + + - col1 + + 61 AS col2 FROM tab2 AS cor0 +---- +9 values hashing to 593f0c1b292a4715269f6f757d6985ea query I rowsort label-3462 SELECT - - ( - + SUM ( DISTINCT - col0 ) ) + - - COUNT ( * ) FROM tab2 cor0 @@ -20969,8 +21225,11 @@ SELECT ALL - ( - col1 ) * - col0 * - ( + col2 ) + + + 46 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(tab1\.col1\) AS col2" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( ALL + + col1 ) AS col2, - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 +---- +3 +3 query I rowsort label-3469 SELECT MAX ( + ( col1 ) ) AS col1 FROM tab0 @@ -21706,8 +21965,15 @@ SELECT ALL - 8 * + 68 AS col0 FROM tab0 # Datafusion - Expected - 77 # Datafusion - Expected - 58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 col0, col1 AS col0 FROM tab2 +---- +23 +40 +51 +58 +67 +77 query I rowsort SELECT + 54 * + col0 AS col2 FROM tab1 @@ -22226,8 +22492,10 @@ SELECT ALL + col0 - - 65 FROM tab0 AS cor0 WHERE ( 35 + - + col0 ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 92e1f320d27aff2c72610c10d10a4187 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - col1 AS col2, + ( + col0 ) col2, col2 + - col1 FROM tab0 AS cor0 +---- +9 values hashing to 3f24d7c2a74bd0c87757233ff944b4d6 query I rowsort SELECT DISTINCT + 45 AS col1 FROM tab2 cor0 @@ -22876,8 +23144,15 @@ SELECT ALL - col1 * - 83 + + ( - 29 ) - - + col0 * + ( col2 ) col1 FROM tab0 # Datafusion - Expected - -30 # Datafusion - Expected - 9506 # Datafusion - Expected - -297 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \+ \(\- tab0\.col0\) \* \(\- tab0\.col0\) AS col2" at position 0 and "\(\- tab0\.col2\) \- tab0\.col2 \* Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + - + col0 * + - col0 AS col2, - col2 - + col2 * + 2 AS col2 FROM tab0 +---- +-141 +-297 +-30 +240 +7656 +9506 query I rowsort SELECT - 51 + + col2 FROM tab1 AS cor0 @@ -23338,8 +23613,15 @@ SELECT ALL col2 * + 61 FROM tab0 # Datafusion - Expected - 68 # Datafusion - Expected - -380 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(\-75\) \+ \(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col1 * - 75 + - col1 AS col0, + col2 AS col0 FROM tab1 AS cor0 +---- +-1064 +-3572 +-380 +59 +68 +96 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -23520,8 +23802,15 @@ SELECT col0, - 8 FROM tab1 AS cor0 # Datafusion - Expected - 30 # Datafusion - Expected - -89 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col1" at position 0 and "cor0\.col0 \+ Int64\(\-34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 89 AS col1, + col0 + - 34 AS col1 FROM tab2 AS cor0 +---- +-89 +-89 +-89 +12 +30 +41 query II rowsort SELECT DISTINCT - 39, col2 AS col0 FROM tab0 AS cor0 @@ -23540,8 +23829,15 @@ SELECT DISTINCT - 39, col2 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 33 # Datafusion - Expected - 77 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col1 AS col2, 33 col2 FROM tab2 AS cor0 +---- +33 +33 +33 +51 +67 +77 query I rowsort label-3891 SELECT - 0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 @@ -23611,8 +23907,10 @@ SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( - col0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to f8375127e19666b0cc3850200b50483f -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\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT CAST ( NULL AS FLOAT8 ) AS col0, 77 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 +---- +18 values hashing to 7a470439fdf15f901d7cb3085cdd5548 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * + 0 NOT BETWEEN ( + 43 ) AND ( 83 ) @@ -23681,8 +23979,9 @@ SELECT - 98 * - COUNT ( * ) * - + 66 FROM tab1 -19404 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "cor0\.col1 \* cor0\.col0 \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 AS col2, + col1 * + + col0 + + col2 col2 FROM tab0 cor0 WHERE NOT NULL IS NULL +---- query I rowsort label-3917 SELECT - MAX ( - 60 ) AS col2 FROM tab0 @@ -24099,8 +24398,15 @@ SELECT ALL col2 + - 63 - - - 77 AS col2, col0 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 84 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 84 AS col2, + col0 AS col2 FROM tab0 AS cor0 +---- +15 +84 +84 +84 +87 +97 query I rowsort SELECT ALL 25 + + 46 FROM tab1 AS cor0 @@ -25934,8 +26240,15 @@ SELECT * FROM tab1 WHERE + 63 IS NOT NULL # Datafusion - Expected - 50 # Datafusion - Expected - 8019 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \* Int64\(\-83\) \+ tab1\.col0 AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 * - 83 + col0 col0, 50 AS col0 FROM tab1 +---- +4982 +50 +50 +50 +5735 +8019 query I rowsort SELECT col0 * + col1 + col0 AS col2 FROM tab1 @@ -26080,8 +26393,9 @@ SELECT DISTINCT * FROM tab2 WHERE + 7 NOT IN ( - 74 * + 57 * 63 / + CAST ( NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col0" at position 0 and "Int64\(94\) / Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - 41 ) AS col0, + 94 / + 74 AS col0 FROM tab1 WHERE NOT col0 <= NULL +---- query I rowsort label-4310 SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) * + - COUNT ( * ) FROM tab1 AS cor0 @@ -26200,8 +26514,15 @@ SELECT + 59 - - + 34 + - - col2 col0, - ( 57 ) * + - col2 FROM tab0 # Datafusion - Expected - 81 # Datafusion - Expected - 65 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \- \(\- tab1\.col0\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 26 - - col0 AS col2, 81 AS col2 FROM tab1 +---- +25 +59 +65 +81 +81 +81 query I rowsort SELECT DISTINCT + col0 * + 68 FROM tab2 AS cor0 WHERE + col2 * - col1 < - col1 * + col1 @@ -26897,8 +27218,15 @@ SELECT ALL + - col1 * + + 76 FROM tab2 AS cor0 WHERE NOT col2 = NULL # Datafusion - Expected - 128 # Datafusion - Expected - 99 # Datafusion - Expected - 100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "tab0\.col1 \+ tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, col1 + col2 AS col0 FROM tab0 +---- +10 +100 +128 +31 +47 +99 query I rowsort label-4447 SELECT ALL MAX ( ALL + col1 ) AS col2 FROM tab0 @@ -27465,8 +27793,15 @@ SELECT DISTINCT + col2 * 68 AS col2 FROM tab0 WHERE NOT ( + col1 ) IS NOT NULL # Datafusion - Expected - -68 # Datafusion - Expected - 0 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* Int64\(26\) AS col1" at position 0 and "\(\- tab1\.col2\) \+ \(\- \(\- tab1\.col1\)\) \+ \(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 * + + 26 AS col1, - col2 + - - col1 + - col1 AS col1 FROM tab1 +---- +-59 +-68 +-96 +0 +0 +0 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT ( + col1 ) <= + col2 @@ -28593,8 +28928,15 @@ SELECT * FROM tab0 AS cor0 WHERE ( NOT col1 <> + col1 ) # Datafusion - Expected - 89 # Datafusion - Expected - 81 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, + 89 AS col2 FROM tab0 AS cor0 +---- +1 +21 +81 +89 +89 +89 query I rowsort label-4721 SELECT DISTINCT + ( + ( col2 ) ) / + col0 + - - 67 + col2 - + 52 FROM tab0 cor0 @@ -29148,8 +29490,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + COUNT ( * ) ) AS col1, + 57 AS col1 FROM tab1 cor0 +---- +-3 +57 query I rowsort label-4812 SELECT + - CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab1 AS cor0 @@ -29201,8 +29546,10 @@ SELECT - COUNT ( * ) + + MAX ( - col1 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to ed2482c28ca3e144e9a72b8f1d06d202 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- cor0\.col2\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col0 + - col2 col2, 76, + + 27 AS col2 FROM tab0 AS cor0 +---- +9 values hashing to 0a4a2befd681a6dd7c69346f2c027414 query I rowsort SELECT - + col1 + + col2 * - + 53 FROM tab2 AS cor0 @@ -29282,8 +29629,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - + ( - col0 ) # Datafusion - Expected - 15 # Datafusion - Expected - 99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col2 AS col1, + col0 AS col1 FROM tab0 AS cor0 +---- +10 +15 +47 +87 +97 +99 query I rowsort label-4834 SELECT DISTINCT MAX ( DISTINCT + col0 ) FROM tab2 cor0 @@ -30603,8 +30957,15 @@ SELECT DISTINCT 34 FROM tab1 AS cor0 WHERE NULL <> NULL # Datafusion - Expected - 66 # Datafusion - Expected - -58 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col1, 66 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +66 +66 +66 query III rowsort SELECT * FROM tab1 WHERE NOT - 10 IS NULL @@ -31130,8 +31491,15 @@ SELECT col2, + col0 * col0 * + col1 AS col1 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, col2 col1 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT DISTINCT + col2 * - col1 + - - col0 FROM tab2 @@ -32236,8 +32604,15 @@ SELECT ALL - + 18 col1, - ( - 88 ) FROM tab1 AS cor0 # Datafusion - Expected - 133 # Datafusion - Expected - 58 # Datafusion - Expected - 151 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 \+ \(\- Int64\(\-93\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, col2 + - - 93 AS col0 FROM tab2 AS cor0 +---- +116 +133 +151 +23 +40 +58 query II rowsort SELECT DISTINCT - + col2 AS col0, + col1 + + + col2 AS col1 FROM tab0 AS cor0 @@ -32604,8 +32979,15 @@ SELECT ALL - COUNT ( 1 ) FROM tab2 AS cor0 # Datafusion - Expected - 81 # Datafusion - Expected - 99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, + col1 AS col0 FROM tab0 AS cor0 +---- +1 +10 +21 +47 +81 +99 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT ( 40 ) / - col0 <> + - col2 + - - col1 - + col1 @@ -33965,8 +34347,15 @@ SELECT + MIN ( DISTINCT col2 ) AS col1 FROM tab0 cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- tab0\.col1\) AS Int32\)\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( + - col1 AS INTEGER ) AS col0, + col1 AS col0 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-5603 SELECT COUNT ( * ) FROM tab0 WHERE NOT ( - col2 - - col2 ) < NULL @@ -34524,8 +34913,15 @@ SELECT DISTINCT + col2 + - col1 * - 25 FROM tab2 AS cor0 WHERE col0 + - - col1 + # Datafusion - Expected - 142 # Datafusion - Expected - -77 # Datafusion - Expected - 141 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "tab2\.col0 \+ tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col1, + col0 + col1 AS col1 FROM tab2 +---- +-51 +-67 +-77 +141 +142 +97 query I rowsort label-5695 SELECT ALL MIN ( + 92 ) AS col1 FROM tab0 @@ -35128,8 +35524,15 @@ SELECT + + col1 * - + 85 FROM tab2 cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col2 AS col2, col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT + + ( + + ( + 71 ) ) FROM tab0 AS cor0 @@ -36329,8 +36732,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT + - col2 + + + col0 IS NULL # Datafusion - Expected - -83 # Datafusion - Expected - -58 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(\-83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, - 83 AS col0 FROM tab2 cor0 +---- +-23 +-40 +-58 +-83 +-83 +-83 query II rowsort SELECT - - 70 AS col1, + col0 * col1 FROM tab0 AS cor0 @@ -36729,8 +37139,11 @@ SELECT DISTINCT + col1 FROM tab0 cor0 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* cor0\.col0 AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 col0, + 54 AS col0 FROM tab1 AS cor0 +---- +54 +NULL query I rowsort SELECT + + 58 AS col1 FROM tab2 AS cor0 WHERE NOT ( ( NULL = col2 - ( - 21 ) ) ) @@ -36773,8 +37186,15 @@ SELECT ALL - CAST ( + col1 AS INTEGER ) * - - 24 + 94 AS col0 FROM tab0 # Datafusion - Expected - -60 # Datafusion - Expected - -40 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(40\)\) AS col1" at position 0 and "Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 40 col1, - 60 col1 FROM tab2 AS cor0 +---- +-40 +-40 +-40 +-60 +-60 +-60 query I rowsort label-6067 SELECT DISTINCT + col0 + + col2 / + - col1 * 20 FROM tab2 AS cor0 @@ -37238,8 +37658,15 @@ SELECT - col0 + ( + 28 ) * + + 43 FROM tab2 # Datafusion - Expected - -98 # Datafusion - Expected - -657660 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ Int64\(36\) \* \(\- tab0\.col0\) \* tab0\.col1 \* tab0\.col2 AS col1" at position 0 and "\(\- tab0\.col2\) \+ tab0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 60 + + 36 * - col0 * col1 * col2 AS col1, - col2 + + col1 AS col1 FROM tab0 +---- +-2055720 +-345648 +-657660 +-98 +11 +34 query I rowsort label-6140 SELECT DISTINCT ( - COUNT ( * ) ) + - 58 + - 97 FROM tab2 @@ -37281,8 +37708,15 @@ SELECT + - 75 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - -81 # Datafusion - Expected - -99 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, - col1 AS col1 FROM tab0 AS cor0 +---- +-1 +-10 +-21 +-47 +-81 +-99 query I rowsort label-6147 SELECT CAST ( 9 AS INTEGER ) col1 FROM tab1 AS cor0 @@ -37450,8 +37884,11 @@ SELECT * FROM tab0 AS cor0 WHERE ( + - col0 ) NOT BETWEEN col0 * + - 31 * col1 - # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +3 +53 query III rowsort SELECT ALL * FROM tab2 WHERE NOT + + ( - col1 ) IS NOT NULL @@ -37531,8 +37968,10 @@ SELECT - col0 * - - 38 + - + ( col2 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 063439bd7cdcc3bb484cdbe2faecc913 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* \(\- cor0\.col1\) \* Int64\(\-77\) AS col0" at position 1 and "Int64\(\-66\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL col2 * - 83, + 15 * - col1 * - 77 AS col0, + ( + - 66 ) col0 FROM tab0 cor0 +---- +9 values hashing to cf3e07da7b1b85641d9cbaf0445a4679 query I rowsort SELECT - + 59 * - + 99 + 75 * - - col2 FROM tab0 AS cor0 @@ -37859,8 +38298,15 @@ SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND - ( col0 ) * - + col0 * # Datafusion - Expected - NULL # Datafusion - Expected - -91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, CAST ( NULL AS INTEGER ) * ( + col2 ) AS col0 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +NULL +NULL +NULL query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NULL < 15 @@ -38913,8 +39359,15 @@ SELECT COUNT ( ALL + 43 ) AS col1 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - -5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, col1 AS col0 FROM tab1 +---- +-14 +-47 +-5 +14 +47 +5 query I rowsort SELECT ALL 45 * + 98 + - 64 FROM tab0 @@ -40227,8 +40680,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-79\) \+ Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 23 col1, + COUNT ( * ) + + - 79 + + + 10 AS col1 FROM tab0 +---- +-66 +23 query I rowsort label-6635 SELECT - - col2 * + + 36 * - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab0 AS cor0 @@ -40514,8 +40970,15 @@ SELECT - col2 / + col2 + + 9 * + col0, col2 col1 FROM tab0 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 2244 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* Int64\(44\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 * 44 AS col1, col0 AS col1 FROM tab2 AS cor0 +---- +2244 +2244 +2244 +46 +64 +75 query II rowsort SELECT ALL + ( + col1 ), - 89 FROM tab2 AS cor0 @@ -40706,8 +41169,15 @@ SELECT DISTINCT + COUNT ( ALL + + ( - 75 ) ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - NULL # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ CAST\(NULL AS Int32\) \* \(\- cor0\.col0\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + + CAST ( NULL AS INTEGER ) * - col0 AS col0, - col1 AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +NULL +NULL +NULL query III rowsort SELECT * FROM tab2 AS cor0 WHERE 33 * + 13 IS NULL @@ -41655,8 +42125,15 @@ SELECT + - col0 AS col2 FROM tab0 WHERE + - col0 IS NOT NULL # Datafusion - Expected - 54 # Datafusion - Expected - 91 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 col2, 54 AS col2 FROM tab1 +---- +51 +54 +54 +54 +85 +91 query I rowsort SELECT ALL + - col2 * + col0 * col2 - + col0 FROM tab1 AS cor0 @@ -41712,8 +42189,15 @@ SELECT + - 82 col0 FROM tab1 cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 AS col0, col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 95 = + col0 * - 9 * - col2 @@ -42319,8 +42803,11 @@ SELECT + 15 + col0 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 48 AS col1, 44 AS col1 FROM tab1 AS cor0 +---- +-48 +44 query I rowsort SELECT ALL - ( + - col0 ) FROM tab2 AS cor0 @@ -42362,8 +42849,15 @@ SELECT ALL - 8 * - ( + 13 ) FROM tab2 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 589 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \+ Int64\(\-49\) \+ tab2\.col2 \* Int64\(10\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 + + ( + - 49 ) + col2 * + 10 AS col0, col2 AS col0 FROM tab2 +---- +204 +23 +391 +40 +58 +589 query III rowsort SELECT * FROM tab1 WHERE ( NOT 29 IN ( ( + 43 ), col0 + - 50, - - 18 * 89 + - - col2, col1 ) ) @@ -42682,8 +43176,11 @@ 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\(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\. +query II valuesort SELECT - 82 * - - ( - COUNT ( * ) ) - + 78 AS col2, + 76 AS col2 FROM tab2 AS cor0 +---- +168 +76 query I rowsort label-7036 SELECT ALL + - COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab2 AS cor0 @@ -42771,8 +43268,15 @@ SELECT ALL col1 + + col0 / col1 * col1 FROM tab1 AS cor0 # Datafusion - Expected - -75 # Datafusion - Expected - -77 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col1 AS col0, - col0 AS col0 FROM tab2 AS cor0 +---- +-46 +-51 +-64 +-67 +-75 +-77 query III rowsort SELECT ALL * FROM tab0 cor0 WHERE NOT ( ( NOT NULL IS NULL ) ) @@ -43010,8 +43514,15 @@ SELECT + 36 + + + col2 * col0 FROM tab0 # Datafusion - Expected - 17 # Datafusion - Expected - 48 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( 48 ) AS col0, + 17 AS col0 FROM tab1 +---- +17 +17 +17 +48 +48 +48 query I rowsort label-7087 SELECT DISTINCT - COUNT ( DISTINCT - + 94 ) + - 75 FROM tab1 @@ -43707,8 +44218,11 @@ SELECT * FROM tab1 AS cor0 WHERE NOT col1 / + col1 NOT BETWEEN NULL AND - col1 - # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +-3 +3 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -44450,8 +44964,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + col1 NOT BETWEEN CAST ( - - 57 A # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col0, col0 FROM tab2 AS cor0 WHERE col1 NOT IN ( + + col1 * - - 10 * - + 26 ) +---- +46 +46 +64 +64 +75 +75 query II rowsort label-7327 SELECT DISTINCT + + 51 col0, - MAX ( DISTINCT - + col0 ) AS col1 FROM tab1 AS cor0 @@ -45573,8 +46094,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 15 AS col2, + ( + - COUNT ( * ) ) AS col2 FROM tab1 AS cor0 +---- +-3 +15 query I rowsort label-7512 SELECT DISTINCT + col1 * - CAST ( + + 29 AS INTEGER ) * - 16 AS col2 FROM tab2 cor0 @@ -48364,8 +48888,11 @@ SELECT DISTINCT - + ( - 60 ) AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col1" at position 0 and "Int64\(\-24\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 96 AS col1, - 24 * + COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +-72 +-96 query I rowsort label-7976 SELECT DISTINCT - CAST ( CAST ( SUM ( + 25 ) AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 @@ -48452,8 +48979,11 @@ SELECT DISTINCT + - CAST ( + 25 AS INTEGER ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(16\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 16 AS col1, + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 * - 16 <= - 36 +---- +-16 +0 query III rowsort SELECT * FROM tab2 WHERE NOT + - col2 * col2 + + col0 BETWEEN NULL AND NULL @@ -48704,8 +49234,15 @@ SELECT + - col2 + - - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 cor0 # Datafusion - Expected - 2240 # Datafusion - Expected - -5550 # Datafusion - Expected - 3248 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \* \(\- cor0\.col0\) \- \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(\-56\) \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col0 * - col0 - - col0 AS col2, - 56 * + - col2 AS col2 FROM tab2 cor0 +---- +-2070 +-4032 +-5550 +1288 +2240 +3248 query I rowsort SELECT DISTINCT - col0 + - 29 / + ( + - col0 ) + - col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL @@ -49263,8 +49800,11 @@ 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\(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\. +query II valuesort SELECT - 18 AS col0, COUNT ( * ) + - + ( + - COUNT ( * ) ) + - + MAX ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0 +---- +-18 +7 query I rowsort SELECT DISTINCT 47 FROM tab1 AS cor0 WHERE NULL IS NOT NULL @@ -49601,8 +50141,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - COUNT ( * ) AS col1, - COUNT ( * ) col1 FROM tab0 AS cor0 +---- +-3 +3 query I rowsort SELECT ALL + 68 AS col2 FROM tab0 AS cor0 @@ -49643,8 +50186,15 @@ SELECT - CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 # Datafusion - Expected - 10 # Datafusion - Expected - 34 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ \(\- tab0\.col2\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 + - col2 col0, + col2 AS col0 FROM tab0 +---- +-98 +10 +11 +34 +47 +99 query III rowsort SELECT DISTINCT * FROM tab0 WHERE + 35 + col0 * - 58 IS NOT NULL @@ -50029,8 +50579,15 @@ SELECT ALL + 56 * + col2 + + col1 FROM tab2 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 39 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 AS col2, col0 AS col2 FROM tab2 AS cor0 +---- +39 +39 +39 +46 +64 +75 query I rowsort SELECT DISTINCT - + 10 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL @@ -50444,8 +51001,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 +---- +3 +3 query I rowsort SELECT DISTINCT + col0 * - + col2 AS col1 FROM tab2 AS cor0 @@ -50757,8 +51317,15 @@ SELECT DISTINCT + col0 * + 76 * + col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "\(\- tab1\.col0\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 81 AS col0, - col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 +---- +81 +81 +81 +NULL +NULL +NULL query I rowsort label-8384 SELECT - CAST ( + col0 AS INTEGER ) * + col0 AS col2 FROM tab2 @@ -50988,8 +51555,15 @@ SELECT - 21 / + + COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Expected - 252960 # Datafusion - Expected - -91 # Datafusion - Expected - 270816 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(\-48\) \* Int64\(\-62\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 col0, - 48 * - 62 * + col0 AS col0 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +151776 +252960 +270816 query I rowsort SELECT ALL col1 FROM tab2 WHERE + col0 - + ( - 67 ) IS NULL @@ -51070,8 +51644,15 @@ SELECT COUNT ( ALL - + col2 ) FROM tab2 # Datafusion - Expected - -21 # Datafusion - Expected - 82 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 82 AS col1, - col1 col1 FROM tab0 +---- +-1 +-21 +-81 +82 +82 +82 query III rowsort SELECT ALL * FROM tab2 WHERE NOT + ( + col1 ) IS NULL @@ -51289,8 +51870,10 @@ SELECT 45 * + COUNT ( * ) AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c8c3e1a0603b5b480d6e718a3c20a61d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \* cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col1\) \+ Int64\(7\) \* Int64\(\-22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 27 * + col0 col2, - col1 + + 7 * - 22 col2, + + col1 - col2 AS col2 FROM tab1 AS cor0 +---- +9 values hashing to 9660df1a26e1870bd9516f3394c4e29b query I rowsort label-8471 SELECT + SUM ( ALL - - 3 ) AS col2 FROM tab1 AS cor0 @@ -53979,8 +54562,15 @@ SELECT ALL * FROM tab1 WHERE NOT + - col1 / col1 + + - 6 * + col2 <= col1 # Datafusion - Expected - 102 # Datafusion - Expected - 69 # Datafusion - Expected - 102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "Int64\(86\) \+ \(\- Int64\(\-73\)\) \+ Int64\(\-57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 col0, 86 + - - 73 + - 57 AS col0 FROM tab1 AS cor0 +---- +102 +102 +102 +69 +69 +69 query I rowsort SELECT ALL + ( + + col0 ) * + col1 AS col0 FROM tab1 cor0 @@ -54358,8 +54948,15 @@ SELECT DISTINCT - COUNT ( * ) AS col2, - MIN ( ALL - + 64 ) / - MIN ( ALL col1 ) # Datafusion - Expected - 84 # Datafusion - Expected - 96 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, 84 AS col0 FROM tab1 AS cor0 +---- +59 +68 +84 +84 +84 +96 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT - 36 + 59 + - 1 * - col0 IS NULL @@ -54846,8 +55443,15 @@ SELECT DISTINCT + col1 * - col1, + col2 * col1 AS col0 FROM tab0 # Datafusion - Expected - 3196 # Datafusion - Expected - -92 # Datafusion - Expected - 295 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) \+ \(\- tab1\.col1\) AS col2" at position 0 and "tab1\.col1 \* tab1\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 87 + - col1 col2, + col1 * + col2 AS col2 FROM tab1 +---- +-101 +-134 +-92 +1344 +295 +3196 query I rowsort label-9056 SELECT ALL - MAX ( ALL - - 35 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -55093,8 +55697,15 @@ SELECT DISTINCT 83 * + MAX ( + - ( - col2 ) ) FROM tab2 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-9093 SELECT COUNT ( * ) * + - SUM ( ALL + 90 ) FROM tab0 @@ -55427,8 +56038,13 @@ SELECT ALL MIN ( + - col0 ) AS col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - -2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 / Int64\(\-40\) AS col2" at position 0 and "Int64\(\-84\) / tab1\.col1 \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 / + - 40 AS col2, - 84 / col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 +---- +-1 +-2 +NULL +NULL query I rowsort label-9150 SELECT + 57 * + COUNT ( * ) / COUNT ( * ) FROM tab2 @@ -55585,8 +56201,15 @@ SELECT DISTINCT - - 6 * + 0 * + COUNT ( * ) FROM tab0 AS cor0 # Datafusion - Expected - -10 # Datafusion - Expected - -97 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col0 AS col0, - col2 AS col0 FROM tab0 AS cor0 +---- +-10 +-15 +-47 +-87 +-97 +-99 query I rowsort SELECT + + 0 + col1 FROM tab2 AS cor0 @@ -56392,8 +57015,11 @@ SELECT ALL - 2 AS col1, 98 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- Int64\(74\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( ALL - + 74 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE + 5 IS NULL +---- +0 +NULL query I rowsort SELECT + 75 - + col1 + + - 21 FROM tab2 @@ -56591,8 +57217,9 @@ SELECT ALL * FROM tab1 cor0 WHERE NULL <> - 64 * + col2 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(\-11\) AS col2" at position 0 and "cor0\.col0 \* cor0\.col2 \* \(\- cor0\.col0\) \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * - 11 AS col2, col0 * col2 * - col0 * ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE NULL = NULL +---- query III rowsort label-9340 SELECT * FROM tab2 AS cor0 WHERE + CAST ( col2 AS FLOAT8 ) - - + 69 IS NULL @@ -57765,8 +58392,11 @@ SELECT - - 46 AS col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 189 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(63\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, + 63 * COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL +---- +189 +3 query I rowsort SELECT + + 47 AS col2 FROM tab1 cor0 @@ -58208,8 +58838,15 @@ SELECT - - COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 # Datafusion - Expected - 800 # Datafusion - Expected - 75 # Datafusion - Expected - 1160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(20\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, 20 * + col2 AS col2 FROM tab2 AS cor0 +---- +1160 +46 +460 +64 +75 +800 query I rowsort label-9608 SELECT - COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab1 AS cor0 @@ -58293,8 +58930,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col0 # Datafusion - Expected - 28 # Datafusion - Expected - 162 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) / \(\- cor0\.col1\) \- \(\- cor0\.col0\) \+ Int64\(73\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 97 / - col1 - - col0 + 73 AS col2, + 28 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL +---- +118 +139 +162 +28 +28 +28 query I rowsort label-9622 SELECT - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL ) @@ -58665,8 +59309,15 @@ SELECT DISTINCT + MAX ( ALL + col2 ) FROM tab2 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 99 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col1 \* cor0\.col2 AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + + col1 * col2 AS col2, + 0 AS col2 FROM tab0 AS cor0 +---- +0 +0 +0 +308367 +4410 +99 query III rowsort SELECT * FROM tab1 cor0 WHERE NOT + ( - col0 ) IN ( - + col2, col0 ) @@ -58820,8 +59471,15 @@ SELECT ALL col0 + + col0 + + col0 FROM tab0 # Datafusion - Expected - 64 # Datafusion - Expected - -85 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \+ \(\- \(\- \(\- tab2\.col0\)\)\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 + + + ( - - ( - col0 ) ) AS col1, col0 AS col1 FROM tab2 +---- +-56 +-74 +-85 +46 +64 +75 query I rowsort SELECT - - ( + col0 ) * - - 45 + 3 * - col0 FROM tab1 cor0 diff --git a/data/sqlite/random/aggregates/slt_good_24.slt b/data/sqlite/random/aggregates/slt_good_24.slt index 6881c24..60def3c 100644 --- a/data/sqlite/random/aggregates/slt_good_24.slt +++ b/data/sqlite/random/aggregates/slt_good_24.slt @@ -272,8 +272,15 @@ SELECT col0, col1 * + col0 AS col2 FROM tab2 AS cor0 WHERE NOT + 0 IS NULL # Datafusion - Expected - 5 # Datafusion - Expected - -91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, col1 col0 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +14 +47 +5 query II rowsort label-36 SELECT - col1 + col0 + + col1 - col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT - 99 * - - 94 + + - col2 IS NULL @@ -433,8 +440,15 @@ SELECT DISTINCT COUNT ( * ) + - + COUNT ( 51 ) * COUNT ( * ) + + 30 FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - 30 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 AS col1, + col0 col1 FROM tab2 +---- +30 +30 +30 +46 +64 +75 query I rowsort label-61 SELECT - 16 * + + MAX ( + - col1 ) FROM tab1 @@ -1318,8 +1332,15 @@ SELECT ALL + ( - + COUNT ( * ) ) FROM tab1 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - -67 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 67 AS col2, col0 AS col2 FROM tab1 AS cor0 +---- +-67 +-67 +-67 +51 +85 +91 query I rowsort label-200 SELECT + 35 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 @@ -1351,8 +1372,15 @@ SELECT - 29 * 78 AS col0 FROM tab1 # Datafusion - Expected - 7225 # Datafusion - Expected - -2867 # Datafusion - Expected - 8281 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \* Int64\(61\) AS col1" at position 0 and "\(\- tab1\.col0\) \* \(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 47 * + 61 AS col1, - col0 * - col0 AS col1 FROM tab1 +---- +-2867 +-2867 +-2867 +2601 +7225 +8281 query III rowsort SELECT ALL * FROM tab1 WHERE NOT + 14 + 46 IS NOT NULL @@ -1478,8 +1506,15 @@ SELECT + ( COUNT ( * ) ) + - 72 + 98 FROM tab1 cor0 # Datafusion - Expected - -135 # Datafusion - Expected - 68558 # Datafusion - Expected - -163 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col1 \* cor0\.col2 \+ cor0\.col1 AS col1" at position 0 and "Int64\(\-67\) \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * + col1 * col2 + + col1 col1, - 67 + - + col2 AS col1 FROM tab1 AS cor0 +---- +-126 +-135 +-163 +25080 +290883 +68558 query I rowsort label-226 SELECT COUNT ( * ) * + 13 + - + 96 FROM tab1 AS cor0 @@ -1504,8 +1539,11 @@ SELECT ALL + - 48 col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(Int64\(3\) AS Int32\) AS col2" at position 0 and "\(\- max\(Int64\(16\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - COUNT ( * ) ) * - + COUNT ( * ) * CAST ( + 3 AS INTEGER ) AS col2, - MAX ( 16 ) AS col2 FROM tab2 AS cor0 +---- +-16 +27 query I rowsort label-230 SELECT + SUM ( + col2 ) AS col1 FROM tab1 AS cor0 @@ -2468,8 +2506,15 @@ SELECT DISTINCT col1 / - col1 AS col1 FROM tab0 # Datafusion - Expected - 91 # Datafusion - Expected - -5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col2, + col0 AS col2 FROM tab1 +---- +-14 +-47 +-5 +51 +85 +91 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 @@ -2478,8 +2523,15 @@ SELECT DISTINCT - col1 AS col2, + col0 AS col2 FROM tab1 # Datafusion - Expected - 30 # Datafusion - Expected - -15 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 15 AS col0, 30 AS col0 FROM tab2 +---- +-15 +-15 +-15 +30 +30 +30 query I rowsort label-400 SELECT DISTINCT MIN ( ( ( col1 ) ) ) FROM tab1 @@ -3281,8 +3333,15 @@ SELECT DISTINCT MIN ( DISTINCT - ( 1 ) ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 1702 # Datafusion - Expected - 58 # Datafusion - Expected - 3466 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col1" at position 0 and "Int64\(4\) \+ cor0\.col2 \* cor0\.col2 \- Int64\(\-98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 AS col1, 4 + col2 * + + col2 - - 98 AS col1 FROM tab2 AS cor0 +---- +1702 +23 +3466 +40 +58 +631 query I rowsort label-531 SELECT DISTINCT - MIN ( ALL + 23 ) FROM tab0 AS cor0 @@ -3564,8 +3623,15 @@ SELECT ALL - col1 FROM tab2 WHERE + col1 + + 6 IS NULL # Datafusion - Expected - -66 # Datafusion - Expected - 77 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "Int64\(\-93\) \+ Int64\(\-57\) \+ Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, - 93 + - 57 + + ( 84 ) AS col2 FROM tab2 +---- +-66 +-66 +-66 +51 +67 +77 query I rowsort label-579 SELECT - SUM ( ALL + + 11 ) AS col1 FROM tab1 @@ -3606,8 +3672,15 @@ SELECT + ( - col2 ) * - col1 / - col1 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col0, - col1 AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +14 +47 +5 query I rowsort label-585 SELECT CAST ( NULL AS INTEGER ) * - 17 AS col2 FROM tab2 @@ -3707,8 +3780,15 @@ SELECT ALL COUNT ( * ) + + 22 FROM tab0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 <= - 83 @@ -4403,8 +4483,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab1, tab1 AS cor0 +---- +9 +9 query III rowsort SELECT DISTINCT * FROM tab0 WHERE + 69 IS NULL @@ -5113,8 +5196,15 @@ SELECT * FROM tab2 AS cor0 WHERE - ( - col1 ) IS NOT NULL # Datafusion - Expected - -64 # Datafusion - Expected - 8 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 8 AS col1, - col0 AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +8 +8 +8 query I rowsort SELECT DISTINCT + col0 + - - col0 + 95 + - + col0 FROM tab1 @@ -6152,8 +6242,11 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * + + col1 > + + col2 * col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-71\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(5\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( - 71 ) / COUNT ( * ) col1, + 5 / + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IN ( 26, 95 * + col2 ) +---- +1 +1 query I rowsort SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN 15 AND + col0 @@ -6334,8 +6427,11 @@ SELECT - col0 AS col0, ( - col1 ) FROM tab2 AS cor0 # 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\(DISTINCT Int64\(4\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 38 AS col2, COUNT ( DISTINCT + 4 ) AS col2 FROM tab1 AS cor0 +---- +1 +38 query II rowsort label-1056 SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col2, col0 AS col1 FROM tab0 AS cor0 @@ -6651,8 +6747,15 @@ SELECT ALL + 44 FROM tab2 WHERE NOT - 68 * col0 + + - 15 IS NOT NULL # Datafusion - Expected - 136 # Datafusion - Expected - -5 # Datafusion - Expected - 118 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col1, + col2 + + col2 AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +118 +136 +192 query II rowsort SELECT DISTINCT - 79 AS col2, - col2 FROM tab0 AS cor0 @@ -6830,8 +6933,15 @@ SELECT * FROM tab0 WHERE NOT ( - - col1 ) IS NOT NULL # Datafusion - Expected - -21 # Datafusion - Expected - -18 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* Int64\(\-18\) AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 * - 18 AS col0, - col1 AS col0 FROM tab0 +---- +-1 +-18 +-18 +-18 +-21 +-81 query I rowsort SELECT col1 FROM tab1 WHERE NOT ( - + ( + 34 ) - + col0 * - - ( - + 15 ) ) IS NOT NULL @@ -7359,8 +7469,11 @@ SELECT DISTINCT - CAST ( - col1 AS INTEGER ) - + - 23 * - 82 * + 7 FROM tab1 # 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\(64\)\)\) \- \(\- \(\- max\(DISTINCT \(\- cor0\.col1\)\)\)\) AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( + + 64 ) - - - MAX ( DISTINCT - col1 ) AS col1, 31 AS col1 FROM tab2 AS cor0 +---- +115 +31 query I rowsort SELECT ALL - - col2 - + + col0 + col1 * - col2 FROM tab1 cor0 @@ -8063,8 +8176,15 @@ SELECT ALL col2 * - col2 + - col2 + 39 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, ( + col1 ) FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-1340 SELECT COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1 @@ -8570,8 +8690,15 @@ SELECT + + 61 AS col0, + col2 FROM tab2 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - 5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 AS col2, col0 AS col2 FROM tab1 AS cor0 +---- +14 +47 +5 +51 +85 +91 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND + col2 @@ -8598,8 +8725,15 @@ SELECT ALL col0 + - + ( - col1 ) + 46 AS col1 FROM tab1 # Datafusion - Expected - 4617 # Datafusion - Expected - 97 # Datafusion - Expected - 1197 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ \(\- \(\- tab0\.col0\)\) AS col1" at position 0 and "tab0\.col1 \* Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + + col2 ) + - - col0 AS col1, col1 * 57 AS col1 FROM tab0 +---- +1197 +196 +4617 +57 +62 +97 query I rowsort SELECT 11 + col2 col2 FROM tab0 @@ -10169,8 +10303,11 @@ SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(cor0\.col2\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( ALL col2 ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +3 +99 query I rowsort SELECT + 77 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - 72 * + + 88 * + - col1 AND + col0 * - + 68 + - + col1 / 7 @@ -10951,8 +11088,15 @@ SELECT ALL - ( - 51 ) + + MIN ( - 0 ) AS col2 FROM tab1 # Datafusion - Expected - 10 # Datafusion - Expected - -97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - col0 ) AS col1, + col2 AS col1 FROM tab0 +---- +-15 +-87 +-97 +10 +47 +99 query I rowsort SELECT DISTINCT 43 * + 58 AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NULL @@ -11569,8 +11713,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - 36 ) # Datafusion - Expected - -59 # Datafusion - Expected - -91 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 col2, - col2 AS col2 FROM tab1 AS cor0 +---- +-51 +-59 +-68 +-85 +-91 +-96 query II rowsort SELECT DISTINCT - 96 AS col0, col1 col1 FROM tab2 AS cor0 @@ -12606,8 +12757,15 @@ SELECT DISTINCT + col1, 10 AS col0 FROM tab2 cor0 WHERE NOT col0 + + ( + - CAST # Datafusion - Expected - -77 # Datafusion - Expected - 4350 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * col0 AS col1, - col1 AS col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +1058 +2560 +4350 query I rowsort SELECT DISTINCT col2 AS col1 FROM tab1 WHERE ( NOT 35 + col2 + + 40 >= + 41 ) @@ -12664,8 +12822,15 @@ SELECT * FROM tab1 WHERE NOT + + col0 + - + 3 >= NULL # Datafusion - Expected - 5025 # Datafusion - Expected - 308 # Datafusion - Expected - 4928 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \* tab2\.col1 AS col0" at position 0 and "tab2\.col0 \* tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4 * + + col1 AS col0, col0 * + col1 AS col0 FROM tab2 +---- +204 +2346 +268 +308 +4928 +5025 query I rowsort SELECT 83 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL @@ -12908,8 +13073,11 @@ SELECT ALL MAX ( + col1 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 35 col0, COUNT ( * ) AS col0 FROM tab1 +---- +-35 +3 query I rowsort label-2147 SELECT ALL - COUNT ( DISTINCT - col0 ) FROM tab1 AS cor0 @@ -13047,8 +13215,15 @@ SELECT DISTINCT COUNT ( DISTINCT - col2 ) FROM tab0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col1, col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT ALL + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT 59 / + + col0 >= NULL @@ -14356,8 +14531,15 @@ SELECT ALL - 4 FROM tab1 cor0 WHERE NOT col1 + - - 37 IS NOT NULL # Datafusion - Expected - 197205 # Datafusion - Expected - -3900 # Datafusion - Expected - 291535 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* \(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col2 \* \(\- \(\- cor0\.col0\)\) \* cor0\.col1 \+ Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 * - col0 AS col0, + col2 * - - col0 * col1 + + 85 col0 FROM tab2 cor0 +---- +-2392 +-3328 +-3900 +197205 +291535 +54043 query II rowsort label-2383 SELECT ALL CAST ( col2 AS INTEGER ) col1, 9 AS col0 FROM tab0 AS cor0 @@ -14842,8 +15024,15 @@ SELECT + - 18 col1 FROM tab1 AS cor0 WHERE ( + col0 * - col2 IS NOT NULL ) # Datafusion - Expected - -75 # Datafusion - Expected - 97 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 + col1 AS col2, - col0 AS col2 FROM tab2 cor0 +---- +-46 +-64 +-75 +141 +142 +97 query I rowsort label-2459 SELECT - SUM ( + - CAST ( NULL AS INTEGER ) ) + + SUM ( DISTINCT - 8 ) * - 62 FROM tab0 AS cor0 @@ -14867,8 +15056,15 @@ SELECT + + CAST ( - col0 AS INTEGER ) / + col0 + - col1 AS col2, - col1 * - col2 # Datafusion - Expected - -95 # Datafusion - Expected - -96 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(\-8\) \+ Int64\(\-87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col2 AS col2, - 8 + - 87 col2 FROM tab1 AS cor0 WHERE NOT 84 + col0 * + col2 IS NULL +---- +-59 +-68 +-95 +-95 +-95 +-96 query III rowsort SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL NOT BETWEEN NULL AND NULL ) @@ -17172,8 +17368,15 @@ SELECT ALL + col1 * + + col1 * col2 + col2 FROM tab2 cor0 WHERE col1 <= + CAST ( # Datafusion - Expected - -37 # Datafusion - Expected - -73 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \- Int64\(\-2\) AS col2" at position 0 and "cor0\.col2 \- cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col0 - - 2 AS col2, + col2 - col1 col2 FROM tab2 AS cor0 +---- +-28 +-37 +-44 +-62 +-73 +-9 query II rowsort SELECT DISTINCT + ( + ( col1 ) ) AS col0, - col2 AS col2 FROM tab2 AS cor0 @@ -18140,8 +18343,11 @@ SELECT + ( + + col0 ) FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + COUNT ( * ) col2 FROM tab1 cor0 +---- +3 +3 query II rowsort label-2993 SELECT + - 23, 35 + - COUNT ( * ) AS col2 FROM tab0 AS cor0 @@ -18388,8 +18594,11 @@ SELECT ALL + + ( + col1 ), - col2 / - col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) 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 II valuesort SELECT 83 AS col0, + MAX ( DISTINCT - col1 ) AS col0 FROM tab1 +---- +-5 +83 query I rowsort label-3034 SELECT ALL COUNT ( * ) / ( + - SUM ( DISTINCT - - col0 ) ) + + COUNT ( * ) col2 FROM tab1 @@ -18888,8 +19097,15 @@ NULL # Datafusion - Expected - 9 # Datafusion - Expected - 0 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) / Int64\(49\) AS col0" at position 0 and "cor0\.col1 \- cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 / + 49 col0, col1 - + col2 AS col0 FROM tab2 AS cor0 +---- +-1 +-1 +0 +28 +37 +9 query I rowsort SELECT - ( + col0 ) - - 95 AS col0 FROM tab0 AS cor0 @@ -19466,8 +19682,11 @@ SELECT ALL MIN ( + CAST ( - 13 AS INTEGER ) ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "max\(Int64\(\-38\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 86 col0, + MAX ( ALL - 38 ) AS col0 FROM tab1 +---- +-38 +86 query I rowsort label-3214 SELECT - MIN ( col0 ) AS col1 FROM tab1 @@ -19492,8 +19711,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 * - + col0 * col1 * 5 ) <= NULL # Datafusion - Expected - -99 # Datafusion - Expected - 42 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 + col1 AS col0, - col2 AS col0 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +162 +2 +42 query I rowsort label-3218 SELECT - MIN ( col2 ) AS col0 FROM tab2 @@ -19571,8 +19797,15 @@ NULL # Datafusion - Expected - -10 # Datafusion - Expected - 82 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \- tab0\.col2 / \(\- tab0\.col2\) AS col2" at position 0 and "\(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 - col2 / - col2 AS col2, - col2 AS col2 FROM tab0 +---- +-10 +-47 +-99 +2 +22 +82 query I rowsort SELECT DISTINCT col1 * 11 AS col1 FROM tab2 @@ -20058,8 +20291,11 @@ SELECT COUNT ( * ) + - 75 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(38\)\) AS col1" at position 0 and "\(\- CAST\(Int64\(81\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( ALL + + 38 ) AS col1, - CAST ( + 81 AS INTEGER ) AS col1 FROM tab1 +---- +-81 +3 query I rowsort label-3316 SELECT DISTINCT + ( + MIN ( 64 ) ) * - CAST ( NULL AS INTEGER ) FROM tab0 @@ -21343,8 +21579,15 @@ SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - 85 # Datafusion - Expected - 51 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + 51 ) AS col2, col0 AS col2 FROM tab1 AS cor0 +---- +51 +51 +51 +51 +85 +91 query I rowsort label-3528 SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 @@ -21727,8 +21970,15 @@ SELECT + 3 + + COUNT ( * ) AS col0 FROM tab2 # Datafusion - Expected - -40 # Datafusion - Expected - 2459 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \* \(\- tab2\.col0\) \+ tab2\.col1 \+ tab2\.col1 AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 * + ( - col0 ) + col1 + + col1 AS col0, - col2 AS col0 FROM tab2 +---- +-23 +-40 +-58 +1528 +2138 +2459 query I rowsort SELECT + 1 + - + col1 col1 FROM tab0 @@ -21837,8 +22087,15 @@ SELECT + 70 col2 FROM tab1 # Datafusion - Expected - -21 # Datafusion - Expected - NULL # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, - col1 AS col0 FROM tab0 +---- +-1 +-21 +-81 +NULL +NULL +NULL query I rowsort SELECT DISTINCT 73 * 56 AS col1 FROM tab2 @@ -21987,8 +22244,15 @@ SELECT ALL - MAX ( DISTINCT - + col2 ) FROM tab2 AS cor0 # Datafusion - Expected - -24 # Datafusion - Expected - -15 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-15\) AS Int32\) AS col1" at position 0 and "Int64\(\-24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( - 15 AS INTEGER ) AS col1, - 24 AS col1 FROM tab1 cor0 +---- +-15 +-15 +-15 +-24 +-24 +-24 query I rowsort label-3630 SELECT + + COUNT ( * ) AS col1 FROM tab2 cor0 @@ -22244,8 +22508,15 @@ SELECT ALL COUNT ( * ) / + 23 + + CAST ( + - 72 AS INTEGER ) FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + col0 IS NOT NULL @@ -23369,8 +23640,15 @@ SELECT + 74 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - NULL # Datafusion - Expected - -58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col2" at position 0 and "tab2\.col0 \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(63\) \+ tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, col0 + - CAST ( NULL AS INTEGER ) * ( 63 ) + + + col0 AS col2 FROM tab2 +---- +-23 +-40 +-58 +NULL +NULL +NULL query II rowsort SELECT DISTINCT 38, col0 AS col2 FROM tab1 AS cor0 @@ -24118,8 +24396,15 @@ SELECT col1 / + col2 col1 FROM tab1 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - 588 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* cor0\.col1 AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( 42 ) * col1 AS col1, - col0 AS col1 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +1974 +210 +588 query I rowsort SELECT + - 23 * col0 * - ( - col1 ) FROM tab2 AS cor0 @@ -24245,8 +24530,9 @@ query error DataFusion error: Schema error: Schema contains qualified field name SELECT - ( - - 46 ) AS col1, col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col0" at position 0 and "Int64\(55\) \* tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 col0, 55 * col1 AS col0 FROM tab0 WHERE NOT NULL <> NULL +---- query I rowsort label-4012 SELECT DISTINCT CAST ( + + 90 AS INTEGER ) FROM tab1 @@ -24405,8 +24691,11 @@ SELECT ALL + ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, + 96 AS col2 FROM tab0 AS cor0 +---- +3 +96 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN ( ( + ( - - col0 ) ) ) AND ( + col2 ) @@ -24489,8 +24778,10 @@ SELECT ALL + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to 3f7b09235f6dd39e652827206fe3738b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(67\)\) AS col2" at position 0 and "Int64\(68\) \- Int64\(\-99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 67 col2, 68 - - 99 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 +---- +18 values hashing to f7ad7dbe3b1b6364680d165197ad2abc query I rowsort label-4051 SELECT + 88 / 42 AS col2 FROM tab1 AS cor0 @@ -24550,8 +24841,15 @@ SELECT - col1 AS col1 FROM tab2 WHERE NULL IS NOT NULL # Datafusion - Expected - -5837 # Datafusion - Expected - 61 # Datafusion - Expected - -4389 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \+ tab2\.col2 AS col2" at position 0 and "tab2\.col1 \+ Int64\(\-25\) \+ tab2\.col2 \+ \(\- tab2\.col1\) \* \(\- \(\- tab2\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 3 + col2 AS col2, + col1 + - 25 + ( + + col2 ) + - col1 * - - col1 AS col2 FROM tab2 +---- +-2552 +-4389 +-5837 +26 +43 +61 query I rowsort SELECT - ( + + ( - col1 ) ) AS col2 FROM tab2 @@ -24788,8 +25086,15 @@ SELECT 22 * col0 AS col2 FROM tab2 # Datafusion - Expected - -26508 # Datafusion - Expected - 76 # Datafusion - Expected - -300 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "Int64\(12\) \* tab1\.col1 \* \(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 76 AS col1, 12 * col1 * - col1 col1 FROM tab1 +---- +-2352 +-26508 +-300 +76 +76 +76 query I rowsort SELECT ALL - ( - ( + col0 ) ) * col2 FROM tab2 @@ -25229,8 +25534,15 @@ SELECT - - col0 AS col2 FROM tab0 WHERE NOT - col1 * col2 + + - ( - col1 ) + col # Datafusion - Expected - 3080 # Datafusion - Expected - 89 # Datafusion - Expected - 3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "tab2\.col1 \* tab2\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 89 AS col2, col1 * + col2 AS col2 FROM tab2 +---- +1173 +3080 +3886 +89 +89 +89 query II rowsort SELECT ALL 36, col1 FROM tab1 cor0 @@ -25957,8 +26269,11 @@ SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 / - + col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 76 AS col0, + COUNT ( * ) col0 FROM tab2 cor0 +---- +3 +76 query I rowsort SELECT DISTINCT + 98 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) @@ -26373,8 +26688,15 @@ SELECT DISTINCT + + ( + + COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor # Datafusion - Expected - -68 # Datafusion - Expected - 5 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col2, - col2 AS col2 FROM tab1 cor0 +---- +-59 +-68 +-96 +14 +47 +5 query I rowsort SELECT - col2 col1 FROM tab1 AS cor0 WHERE 47 + col2 IS NOT NULL @@ -26540,8 +26862,15 @@ SELECT + col2 * - + 11 col2 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - 31 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 31 AS col0, col2 AS col0 FROM tab1 +---- +31 +31 +31 +59 +68 +96 query III rowsort SELECT * FROM tab2 WHERE - 81 IS NOT NULL @@ -26761,8 +27090,15 @@ SELECT ALL + 75 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE - - 56 > - # Datafusion - Expected - 2495 # Datafusion - Expected - 75 # Datafusion - Expected - 4285 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "\(\- \(\- tab2\.col0\)\) \* \(\- \(\- \(\- \(\- tab2\.col2\)\)\)\) \+ \(\- Int64\(65\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, - ( - col0 ) * - - ( - - col2 ) + - + 65 AS col1 FROM tab2 +---- +2495 +4285 +46 +64 +75 +993 query II rowsort SELECT + col1, + col2 FROM tab1 @@ -26807,8 +27143,9 @@ SELECT ALL - - CAST ( + + 5 AS INTEGER ) * col1 FROM tab2 AS cor0 385 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, 36 AS col1 FROM tab2 cor0 WHERE NULL NOT IN ( col0 - - 1 + col1 + col0 * - + CAST ( NULL AS FLOAT8 ) ) +---- query I rowsort label-4437 SELECT ALL + CAST ( - - 65 AS INTEGER ) * + - 31 FROM tab1 AS cor0 @@ -28155,8 +28492,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT - col1 / + + ( - 2 ) * - - ( 87 ) IS NOT N # Datafusion - Expected - 25 # Datafusion - Expected - -91 # Datafusion - Expected - 2209 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "\(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col0 AS col0, ( - col1 ) * - col1 AS col0 FROM tab1 cor0 +---- +-51 +-85 +-91 +196 +2209 +25 query II rowsort SELECT ALL - + 48 AS col0, 31 FROM tab0 AS cor0 @@ -28235,8 +28579,15 @@ SELECT DISTINCT * FROM tab2 WHERE + - 44 * - 29 + + 55 * + 54 / + 50 IS NOT NULL # Datafusion - Expected - 91 # Datafusion - Expected - -5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, col0 AS col1 FROM tab1 cor0 +---- +-14 +-47 +-5 +51 +85 +91 query I rowsort SELECT ALL col1 + col2 AS col2 FROM tab2 WHERE + col0 + - col2 NOT IN ( + col2 ) @@ -29087,8 +29438,15 @@ SELECT ALL - col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND col2 + - - c # Datafusion - Expected - -40 # Datafusion - Expected - -58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, - col2 AS col1 FROM tab2 AS cor0 +---- +-23 +-23 +-40 +-40 +-58 +-58 query I rowsort SELECT ALL col2 FROM tab2 AS cor0 WHERE 29 IS NULL @@ -29266,8 +29624,15 @@ SELECT ALL col1 / - + col2, - col1 * col0 AS col0 FROM tab0 # Datafusion - Expected - 40 # Datafusion - Expected - -75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col0, col2 AS col0 FROM tab2 +---- +-46 +-64 +-75 +23 +40 +58 query II rowsort SELECT col0 AS col2, + 36 FROM tab0 @@ -29476,8 +29841,15 @@ SELECT ALL + 36 * - 67 AS col0 FROM tab0 cor0 # Datafusion - Expected - -81 # Datafusion - Expected - 99 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \* cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 * + col2 AS col0, - col1 AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +210 +3807 +99 query II rowsort label-4884 SELECT DISTINCT + COUNT ( * ) / + COUNT ( * ) AS col2, + 38 FROM tab2 AS cor0 @@ -30606,8 +30978,15 @@ SELECT 6 / - 67 FROM tab1 # Datafusion - Expected - -64 # Datafusion - Expected - 75 # Datafusion - Expected - -64 -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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 75 col0, ( + - 64 ) AS col0 FROM tab2 +---- +-64 +-64 +-64 +75 +75 +75 query I rowsort SELECT + col1 * + 14 FROM tab0 AS cor0 @@ -30697,8 +31076,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - col1 AND - col1 # Datafusion - Expected - 21 # Datafusion - Expected - 13 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 AS col0, col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL +---- +1 +13 +13 +13 +21 +81 query I rowsort SELECT DISTINCT + ( - - col2 ) * - col2 FROM tab0 @@ -30845,8 +31231,15 @@ SELECT + 14 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 64 # Datafusion - Expected - 52 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 AS col1, col0 AS col1 FROM tab2 AS cor0 +---- +46 +52 +52 +52 +64 +75 query I rowsort label-5105 SELECT - ( + ( ( + + COUNT ( * ) ) ) ) FROM tab1 cor0 @@ -31371,8 +31764,15 @@ SELECT + col1 AS col1, col1 AS col2 FROM tab0 cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 col1, col2 AS col1 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query II rowsort SELECT DISTINCT 4, + 0 AS col1 FROM tab2 AS cor0 @@ -31671,8 +32071,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(\-11\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 59 AS col1, COUNT ( * ) * - - 11 AS col1 FROM tab0 +---- +33 +59 query I rowsort label-5249 SELECT + COUNT ( * ) FROM tab2 WHERE ( col1 * - 73 ) <> NULL @@ -31722,8 +32125,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) - 60 AS col2, COUNT ( * ) - - 82 * 61 * 94 AS col2 FROM tab0 AS cor0 +---- +-63 +470191 query I rowsort label-5258 SELECT COUNT ( * ) - + 75 AS col2 FROM tab0 AS cor0 @@ -31849,8 +32255,15 @@ SELECT DISTINCT - 79 AS col0, col2 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1, col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT - + 40 AS col0 FROM tab1 AS cor0 WHERE NOT 91 BETWEEN + col1 AND NULL @@ -32103,8 +32516,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 71 AS col1, + 49 AS col1 FROM tab2 +---- +49 +71 query III rowsort SELECT * FROM tab0 WHERE col0 NOT IN ( - 41 / 92 * col2 * + col0 * col2 ) @@ -32204,8 +32620,15 @@ SELECT ALL + col0 * - col2 FROM tab0 AS cor0 WHERE col2 - col2 IS NOT NULL # Datafusion - Expected - -35 # Datafusion - Expected - -58 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col2" at position 0 and "Int64\(\-99\) \+ \(\- \(\- tab2\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + col2 ) AS col2, - 99 + - - col0 col2 FROM tab2 +---- +-23 +-24 +-35 +-40 +-53 +-58 query III rowsort SELECT * FROM tab0 WHERE - + col0 NOT IN ( 80 ) @@ -32744,8 +33167,15 @@ SELECT ALL ( col1 ) * + - 17 FROM tab2 AS cor0 # Datafusion - Expected - -6006 # Datafusion - Expected - -75 # Datafusion - Expected - -5226 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(78\) \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( - + col0 ) AS col2, + 78 * + - col1 AS col2 FROM tab2 AS cor0 +---- +-3978 +-46 +-5226 +-6006 +-64 +-75 query I rowsort label-5427 SELECT ALL + - 15 / + COUNT ( * ) FROM tab1 AS cor0 @@ -32784,8 +33214,15 @@ NULL # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 col0, col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-5433 SELECT ALL + COUNT ( * ) * + 74 FROM tab1 @@ -33339,8 +33776,15 @@ SELECT + 55 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND 16 / - col # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col2, col2 FROM tab2 cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-5525 SELECT ALL col0 / 79 FROM tab1 @@ -33451,8 +33895,15 @@ SELECT - col0 + - col2 * + - col1 FROM tab2 # Datafusion - Expected - -67 # Datafusion - Expected - 34 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \- Int64\(3\) AS col0" at position 0 and "\(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 37 - + ( + 3 ) col0, - col1 AS col0 FROM tab2 +---- +-51 +-67 +-77 +34 +34 +34 query I rowsort SELECT - col1 - - + 91 FROM tab2 WHERE + + col2 * 30 IS NOT NULL @@ -34308,8 +34759,11 @@ SELECT + ( + + 8 ) / - col0 AS col0 FROM tab2 AS cor0 WHERE NOT 10 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(87\) \- \(\- Int64\(\-79\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, 87 - - - 79 AS col0 FROM tab0 AS cor0 +---- +3 +8 query III rowsort label-5684 SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 / - + CAST ( NULL AS FLOAT8 ) + + col2 + + - col2 * - 9 ) > ( - col2 ) @@ -34615,8 +35069,15 @@ SELECT ALL - col1 + 10 FROM tab1 AS cor0 # Datafusion - Expected - 23 # Datafusion - Expected - -24468750 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- cor0\.col0\) \* cor0\.col0 \* \(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 * - col0 * col0 * - col2 AS col0, col2 AS col0 FROM tab2 AS cor0 +---- +-10485760 +-2238728 +-24468750 +23 +40 +58 query I rowsort label-5736 SELECT ALL MIN ( + 83 ) AS col0 FROM tab0 @@ -34697,8 +35158,15 @@ SELECT ALL + 31 - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - -44 # Datafusion - Expected - -62 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col2" at position 0 and "\(\- tab1\.col0\) \+ tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 62 AS col2, - col0 + + col1 col2 FROM tab1 +---- +-37 +-44 +-62 +-62 +-62 +-80 query III rowsort SELECT * FROM tab1 WHERE - 19 * + + col2 + col2 <> - - col0 @@ -34740,8 +35208,11 @@ SELECT + col0 - + col2 + + 97 col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 31 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +-31 +3 query I rowsort SELECT + ( + col0 ) - 93 FROM tab0 AS cor0 @@ -35729,8 +36200,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 - - col1 IS NOT NULL # Datafusion - Expected - -38 # Datafusion - Expected - -83 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \+ \(\- cor0\.col2\) \+ Int64\(\-9\) AS col1" at position 0 and "Int64\(\-38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 16 + - col2 + - 9 AS col1, - 38 AS col1 FROM tab2 AS cor0 +---- +-38 +-38 +-38 +-48 +-65 +-83 query I rowsort SELECT DISTINCT + col1 * + col1 * + col2 + + - col0 FROM tab2 AS cor0 @@ -36402,8 +36880,15 @@ SELECT 47 * + + col2 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 87 - 27 IS NOT NULL @@ -37480,8 +37965,15 @@ SELECT 57 * - col2 AS col2 FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - 99 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 99 AS col0, col2 AS col0 FROM tab2 +---- +23 +40 +58 +99 +99 +99 query I rowsort SELECT col1 * - - col2 AS col2 FROM tab2 @@ -37581,8 +38073,11 @@ SELECT col1 + + + col0 FROM tab2 WHERE ( NULL ) IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 45 AS col1, - 62 AS col1 FROM tab1 +---- +-62 +45 query I rowsort label-6225 SELECT DISTINCT MIN ( ALL - 83 ) AS col1 FROM tab2 @@ -37688,8 +38183,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( 11 * + + 92, 60 + + - col2, + + c # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col2 / cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 AS col2, col2 / col1 AS col2 FROM tab0 AS cor0 +---- +0 +0 +1 +21 +81 +99 query I rowsort label-6243 SELECT - COUNT ( - col2 ) col0 FROM tab1 AS cor0 @@ -37919,8 +38421,15 @@ SELECT 64 * ( + col0 ) FROM tab1 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col2, col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-6282 SELECT DISTINCT col2 + - - CAST ( NULL AS INTEGER ) FROM tab2 @@ -38398,8 +38907,10 @@ SELECT * FROM tab1 cor0 WHERE 25 * + 57 >= - - 75 * - col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 33452afe6bf9f073dcdd0e92d5925d30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col0" at position 1 and "\(\- cor0\.col2\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + + col1 * + - col2 + col2, - 73 col0, - ( + col2 ) col0 FROM tab0 AS cor0 +---- +9 values hashing to 90813debfeb78d8dc02da16b1586c337 query I rowsort SELECT + + col1 FROM tab0 WHERE NULL NOT BETWEEN + + col0 AND + col1 @@ -38545,8 +39056,15 @@ SELECT + 93 * + CAST ( + col1 AS INTEGER ) / col1 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 69 # Datafusion - Expected - -96 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, 69 AS col1 FROM tab1 +---- +-59 +-68 +-96 +69 +69 +69 query I rowsort SELECT - ( - - col1 ) * + 82 col0 FROM tab2 WHERE NOT - 4 * + + 46 / - + 37 * col2 * + + col1 + + col1 + - col1 IS NULL @@ -39141,8 +39659,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT 67 * + col2 + + 82 > NULL # Datafusion - Expected - 10 # Datafusion - Expected - -81 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +10 +47 +99 query I rowsort label-6482 SELECT - COUNT ( * ) - - 19 col2 FROM tab1 AS cor0 @@ -39794,8 +40319,15 @@ SELECT 47 * + 31 AS col0 FROM tab2 # Datafusion - Expected - 58 # Datafusion - Expected - 83 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \+ tab2\.col1 AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 6 + + col1 AS col0, + col2 col0 FROM tab2 +---- +23 +40 +57 +58 +73 +83 query I rowsort label-6586 SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 @@ -39884,8 +40416,15 @@ SELECT ALL * FROM tab2 WHERE NULL <= col0 # Datafusion - Expected - NULL # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(22\) \+ cor0\.col1 \- CAST\(NULL AS Float64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL col2 AS col0, + 22 + + col1 - + CAST ( NULL AS FLOAT8 ) AS col0 FROM tab0 AS cor0 +---- +10 +47 +99 +NULL +NULL +NULL query I rowsort label-6599 SELECT ALL ( - + COUNT ( * ) ) * - MIN ( DISTINCT + + ( + ( + - 19 ) ) ) FROM tab1 AS cor0 @@ -41325,8 +41864,15 @@ SELECT DISTINCT 13 + col1 FROM tab0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, + col0 col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-6846 SELECT DISTINCT 61 * col1 / + ( - + 25 ) FROM tab0 @@ -42745,8 +43291,15 @@ SELECT + ( col2 ) * - 96 * - - 44 FROM tab2 AS cor0 # Datafusion - Expected - 14 # Datafusion - Expected - -22 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) / Int64\(3\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 66 / 3 AS col1, 14 AS col1 FROM tab1 +---- +-22 +-22 +-22 +14 +14 +14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 @@ -42755,8 +43308,15 @@ SELECT ALL - 66 / 3 AS col1, 14 AS col1 FROM tab1 # Datafusion - Expected - -4 # Datafusion - Expected - 9 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col0" at position 0 and "Int64\(\-4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 9 AS col0, - 4 AS col0 FROM tab0 +---- +-4 +-4 +-4 +9 +9 +9 query I rowsort label-7077 SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0 @@ -42880,8 +43440,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col2" at position 0 and "Int64\(\-8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 36 AS col2, - 8 AS col2 FROM tab0 +---- +-36 +-8 query III rowsort SELECT ALL * FROM tab0 WHERE NOT NULL >= - col1 @@ -44570,8 +45133,15 @@ SELECT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE 43 * 15 IS NOT # Datafusion - Expected - 132 # Datafusion - Expected - 91 # Datafusion - Expected - 138 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(47\) \+ \(\- \(\- cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0 AS col1, 47 + - + ( - col0 ) AS col1 FROM tab1 AS cor0 +---- +132 +138 +51 +85 +91 +98 query I rowsort label-7391 SELECT - col1 / + - ( col1 ) + col0 FROM tab2 AS cor0 @@ -44799,8 +45369,15 @@ SELECT ALL - ( - col2 ) - - col0, col2 FROM tab2 # Datafusion - Expected - 113 # Datafusion - Expected - 58 # Datafusion - Expected - 103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \- \(\- tab2\.col2\) \+ \(\- tab2\.col2\) AS col0" at position 0 and "tab2\.col1 \+ Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 - - col2 + - col2 AS col0, col1 + 36 AS col0 FROM tab2 +---- +103 +113 +23 +40 +58 +87 query I rowsort label-7426 SELECT COUNT ( * ) + + 45 FROM tab2 WHERE - col2 IS NULL @@ -44831,8 +45408,15 @@ SELECT DISTINCT + 44 + - col1 + - col0 + col0 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 99 AS col2, CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 +---- +99 +99 +99 +NULL +NULL +NULL query II rowsort SELECT - col2, - 45 AS col0 FROM tab1 cor0 @@ -45399,8 +45983,15 @@ SELECT ALL + 82 + - ( + + col1 ) col0 FROM tab1 AS cor0 # Datafusion - Expected - -14 # Datafusion - Expected - 159 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \+ cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 + + + col0 AS col1, - col1 AS col1 FROM tab1 cor0 +---- +-14 +-47 +-5 +144 +147 +159 query I rowsort SELECT DISTINCT - 42 + - 85 FROM tab0 AS cor0 @@ -45706,8 +46297,11 @@ SELECT * FROM tab0 cor0 WHERE NOT col1 * + col2 * + + ( + col2 ) IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col2" at position 0 and "Int64\(\-56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 36 AS col2, - 56 AS col2 FROM tab0 AS cor0 +---- +-56 +36 query I rowsort label-7573 SELECT DISTINCT 70 + COUNT ( * ) / + + 60 FROM tab2 cor0 @@ -45957,8 +46551,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 44 AS col2, - COUNT ( * ) col2 FROM tab0 AS cor0 +---- +-3 +44 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -46870,8 +47467,15 @@ SELECT col2 + + col2 * - col1 - - + 14 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 44 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 44 AS col0, + col1 AS col0 FROM tab1 AS cor0 +---- +14 +44 +44 +44 +47 +5 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -47216,8 +47820,15 @@ SELECT 61 FROM tab1 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 115 # Datafusion - Expected - 96 # Datafusion - Expected - 110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col1 \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, + col1 + + + col2 AS col0 FROM tab1 AS cor0 +---- +110 +115 +59 +64 +68 +96 query II rowsort SELECT 14 * 6 AS col2, col1 FROM tab2 @@ -47495,8 +48106,11 @@ SELECT DISTINCT - COUNT ( * ) * 98 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(10\)\) AS col1" at position 0 and "CAST\(\(\- Int64\(74\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) * + COUNT ( * ) * - + 10 col1, CAST ( - + 74 AS INTEGER ) AS col1 FROM tab2 +---- +-74 +-90 query III rowsort SELECT DISTINCT * FROM tab1 cor0 WHERE + col1 + col1 * + col0 IS NOT NULL @@ -48047,8 +48661,15 @@ SELECT ALL + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) < + col2 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 col1, + col2 AS col1 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query II rowsort SELECT 70 AS col1, + col2 * col2 FROM tab2 AS cor0 @@ -48125,8 +48746,15 @@ SELECT ALL col1 + col2 / + - col0 + + 10 col2 FROM tab2 AS cor0 # Datafusion - Expected - 185 # Datafusion - Expected - -340 # Datafusion - Expected - 2165 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(36\)\) \* cor0\.col2 \+ cor0\.col2 \+ cor0\.col2 AS col0" at position 0 and "Int64\(86\) \+ \(\- cor0\.col1\) \* Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + ( + 36 ) * + col2 + col2 + + + col2 col0, 86 + - col1 * - 99 AS col0 FROM tab0 AS cor0 +---- +-1598 +-3366 +-340 +185 +2165 +8105 query I rowsort SELECT - 45 * - - col2 FROM tab0 AS cor0 WHERE col0 >= - 63 - + - col0 @@ -48403,8 +49031,11 @@ SELECT DISTINCT * FROM tab2 WHERE - + col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-55\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - ( - - 55 ) ) col0, COUNT ( * ) AS col0 FROM tab2 +---- +-55 +3 query I rowsort SELECT - 25 FROM tab1 WHERE NOT NULL IS NOT NULL @@ -48605,8 +49236,15 @@ SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 54 # Datafusion - Expected - 48 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "cor0\.col1 \+ Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 48 AS col1, + col1 + + + 40 AS col1 FROM tab1 AS cor0 +---- +45 +48 +48 +48 +54 +87 query I rowsort label-8058 SELECT + 94 / MIN ( ALL + col0 ) * 72 * + 9 FROM tab2 @@ -48710,8 +49348,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 * ( - - col0 ) IS NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, + col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT ALL col1 + + ( col1 ) * - 91 FROM tab1 cor0 @@ -48895,8 +49540,11 @@ SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NOT + ( 12 ) IS NULL # 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 "Int64\(69\) AS col2" at position 0 and "\(\- sum\(\(\- cor0\.col1\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 AS col2, - SUM ( + - col1 ) AS col2 FROM tab1 AS cor0 WHERE col2 * - 50 - - col0 * - col2 * - 75 + - ( col2 ) * + + col2 / - col2 IS NOT NULL +---- +66 +69 query I rowsort SELECT ALL + + 97 FROM tab0 cor0 @@ -49545,8 +50193,15 @@ SELECT DISTINCT - col1 - col0 / - col2 FROM tab0 # Datafusion - Expected - -1 # Datafusion - Expected - -81 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col1" at position 0 and "Int64\(55\) / Int64\(\-41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, + 55 / + - 41 AS col1 FROM tab0 +---- +-1 +-1 +-1 +-1 +-21 +-81 query I rowsort SELECT ALL col1 + 61 - + col0 FROM tab2 WHERE NOT - + col2 IN ( - - 91 ) @@ -50033,8 +50688,15 @@ SELECT - ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 1827 # Datafusion - Expected - -81 # Datafusion - Expected - 1215 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col0 \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 AS col1, col0 * col1 AS col1 FROM tab0 cor0 +---- +-1 +-21 +-81 +1215 +1827 +97 query I rowsort SELECT ALL col1 + 25 FROM tab1 AS cor0 @@ -50546,8 +51208,15 @@ SELECT SUM ( DISTINCT + col1 ) FROM tab2 # Datafusion - Expected - -28 # Datafusion - Expected - 25 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col1 AS col1" at position 0 and "Int64\(\-28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * col1 AS col1, - 28 AS col1 FROM tab1 AS cor0 +---- +-28 +-28 +-28 +196 +2209 +25 query I rowsort SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE + col1 * col1 IS NOT NULL @@ -50611,8 +51280,15 @@ SELECT DISTINCT * FROM tab2 cor0 WHERE 18 IS NOT NULL # Datafusion - Expected - 85 # Datafusion - Expected - -726 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ \(\- cor0\.col2\) \+ cor0\.col1 \* Int64\(\-44\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col1 + - col2 + + col1 * - 44 AS col1, col0 AS col1 FROM tab1 AS cor0 +---- +-2183 +-284 +-726 +51 +85 +91 query I rowsort label-8392 SELECT DISTINCT + col0 AS col2 FROM tab1 AS cor0 WHERE NOT + 73 + + CAST ( NULL AS INTEGER ) > col2 * - 92 @@ -51037,8 +51713,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(54\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - COUNT ( * ) AS col1, + COUNT ( * ) * - + ( + + ( 54 ) ) col1 FROM tab2 AS cor0 +---- +-162 +3 query I rowsort SELECT DISTINCT - - 30 AS col0 FROM tab2 AS cor0 @@ -51376,8 +52055,15 @@ SELECT ALL MAX ( DISTINCT - + col0 ) FROM tab1 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - -81 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col2 \+ \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col2, + col2 + - + col2 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +0 +0 +0 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 + - ( - col0 ) AND - col1 @@ -51994,14 +52680,24 @@ SELECT 78, + col0 * - col2 AS col2 FROM tab0 # Datafusion - Expected - 34 # Datafusion - Expected - 77 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "Int64\(1\) / Int64\(\-21\) \+ Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, 1 / - 21 + + 34 AS col0 FROM tab2 +---- +34 +34 +34 +51 +67 +77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, 74 AS col0 FROM tab2 AS cor0 +---- +3 +74 query I rowsort SELECT DISTINCT col1 AS col0 FROM tab2 WHERE NOT ( + 39 ) <> + 11 @@ -52467,8 +53163,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 71 AS col2, COUNT ( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) +---- +71 +9 query I rowsort SELECT - 68 FROM tab1 cor0 WHERE NOT col0 = col2 @@ -53292,8 +53991,15 @@ SELECT DISTINCT - - 65 * - col1 + + ( + 84 ) FROM tab1 AS cor0 # Datafusion - Expected - -6 # Datafusion - Expected - 52800 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \* \(\- \(\- cor0\.col2\)\) \* Int64\(33\) AS col0" at position 0 and "Int64\(\-6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - ( col2 ) * - - col2 * ( 33 ) AS col0, ( + - 6 ) AS col0 FROM tab2 AS cor0 +---- +-6 +-6 +-6 +111012 +17457 +52800 query III rowsort SELECT * FROM tab2 AS cor0 WHERE col1 * - col2 + col2 >= NULL @@ -53983,8 +54689,11 @@ SELECT DISTINCT - 79, col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- cor0\.col0\)\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MAX ( - col0 ) AS col2, 38 AS col2 FROM tab0 AS cor0 +---- +-15 +38 query I rowsort label-8944 SELECT - SUM ( + + col1 ) AS col0 FROM tab2 AS cor0 @@ -54118,8 +54827,9 @@ SELECT - 48 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL -48 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(2\) / cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col1 AS col2, + 2 / + col1 AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL +---- query I rowsort SELECT + col1 * - + 39 * + 89 AS col0 FROM tab1 AS cor0 @@ -54582,8 +55292,15 @@ SELECT DISTINCT SUM ( col1 ) FROM tab2 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, + col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT ALL + + col2 + 5 AS col2 FROM tab2 AS cor0 @@ -54866,8 +55583,15 @@ SELECT + + 39 AS col2 FROM tab1 WHERE NOT NULL <> NULL # Datafusion - Expected - 2747 # Datafusion - Expected - 6 # Datafusion - Expected - 3157 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col1" at position 0 and "Int64\(\-41\) \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 AS col1, - 41 * - col1 AS col1 FROM tab2 AS cor0 +---- +2091 +2747 +3157 +6 +6 +6 query I rowsort label-9082 SELECT - - 66 * - - 96 + + SUM ( DISTINCT + + ( - - col2 ) ) FROM tab2 AS cor0 @@ -55526,8 +56250,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 + - 92 / - 81 AND N # Datafusion - Expected - -2560 # Datafusion - Expected - -75 # Datafusion - Expected - -4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col0 \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col0 col2, col0 * - + col2 AS col2 FROM tab2 AS cor0 +---- +-1058 +-2560 +-4350 +-46 +-64 +-75 query II rowsort SELECT - 81 AS col2, - col1 * - col1 + - + 15 * 24 FROM tab0 AS cor0 @@ -55594,8 +56325,15 @@ SELECT col0 * col0 FROM tab2 WHERE ( NOT ( NOT + col2 IS NULL ) ) # Datafusion - Expected - -13 # Datafusion - Expected - 99 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "Int64\(\-13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, - 13 AS col0 FROM tab0 +---- +-13 +-13 +-13 +10 +47 +99 query I rowsort SELECT DISTINCT 28 - - - 33 FROM tab0 @@ -55939,8 +56677,15 @@ SELECT col1, + col0 * 41 * + 96 FROM tab1 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - -97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col0 AS col1, col0 AS col1 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +15 +87 +97 query I rowsort SELECT 70 * + col2 * - + col1 FROM tab0 @@ -55961,8 +56706,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 75 AS col0, - COUNT ( * ) AS col0 FROM tab0, tab1 AS cor0 +---- +-9 +75 query I rowsort SELECT DISTINCT + 51 col0 FROM tab2 @@ -56159,8 +56907,11 @@ SELECT DISTINCT - + col1 + + 88 col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 22 AS col1, + 79 AS col1 FROM tab0 AS cor0 +---- +22 +79 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 + + col1 + - col1 AND NULL @@ -56631,8 +57382,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col1, + MAX ( - ( - col0 ) ) AS col1 FROM tab1 AS cor0 +---- +-3 +91 query I rowsort SELECT ALL - + col2 * + 23 AS col2 FROM tab0 AS cor0 @@ -57126,8 +57880,10 @@ SELECT ALL + 33 / 93 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 800e7552a8caeea3c5bc737fd157a9c3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ CAST\(NULL AS Int32\) \+ \(\- tab1\.col2\) AS col1" at position 1 and "Int64\(\-72\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 1 / - - 3 AS col0, + col0 + CAST ( NULL AS INTEGER ) + - col2 col1, - 72 AS col1 FROM tab1 +---- +9 values hashing to 84ecfc0a02c3f29b81de1f1011c03b78 query I rowsort SELECT DISTINCT col0 + + + 62 * + + col2 + - - 35 * + 65 AS col2 FROM tab2 AS cor0 @@ -57642,8 +58398,15 @@ SELECT ALL 56 * - - col2 AS col0, col2 FROM tab1 # Datafusion - Expected - 4 # Datafusion - Expected - -99 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + col2 ) AS col2, 4 AS col2 FROM tab0 +---- +-10 +-47 +-99 +4 +4 +4 query I rowsort SELECT DISTINCT + + 85 AS col0 FROM tab0 AS cor0 @@ -57730,8 +58493,11 @@ SELECT ALL + col0 AS col2, - col2 * + col0 * - col0 AS col0 FROM tab0 # 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 "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 14 AS col0, + 34 col0 FROM tab2 +---- +-14 +34 query I rowsort SELECT DISTINCT col0 + 58 FROM tab0 @@ -58424,8 +59190,15 @@ SELECT DISTINCT + + col0 * col2 FROM tab2 cor0 WHERE NOT col2 > NULL # Datafusion - Expected - -6188 # Datafusion - Expected - 96 # Datafusion - Expected - -4896 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "\(\- tab1\.col2\) \* tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col1, - col2 * col0 col1 FROM tab1 +---- +-4896 +-5015 +-6188 +59 +68 +96 query I rowsort label-9688 SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 @@ -58793,8 +59566,15 @@ SELECT DISTINCT - COUNT ( + 52 ) AS col1 FROM tab1 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT - 38 * - 76 + - col2 AS col1 FROM tab2 AS cor0 @@ -58899,8 +59679,11 @@ SELECT ALL col0 FROM tab2 AS cor0 WHERE col2 + + - col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 68 + + + COUNT ( * ) col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +-65 +3 query I rowsort SELECT col0 + 82 - col1 FROM tab0 cor0 @@ -59000,8 +59783,15 @@ SELECT ALL - col0 AS col1, col1 AS col1, - col1 FROM tab2 # Datafusion - Expected - -32 # Datafusion - Expected - 29 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col2" at position 0 and "Int64\(\-32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 29 AS col2, ( + - 32 ) AS col2 FROM tab2 +---- +-32 +-32 +-32 +29 +29 +29 query I rowsort label-9781 SELECT - MAX ( - - col2 ) FROM tab2 @@ -59292,8 +60082,15 @@ SELECT + - SUM ( 73 ), 36 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -96 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, - col1 AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +-59 +-68 +-96 query I rowsort label-9828 SELECT DISTINCT + 62 * + COUNT ( * ) FROM tab1 @@ -59980,8 +60777,15 @@ SELECT + + 75 * + + col0 * col1, col2 * - 39 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - NULL # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- CAST\(NULL AS Int32\)\) \* cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 * - CAST ( NULL AS INTEGER ) * + + col1 AS col0, - col1 AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +NULL +NULL +NULL query I rowsort label-9939 SELECT ALL CAST ( + col2 AS INTEGER ) * + 66 AS col2 FROM tab2 AS cor0 @@ -60003,8 +60807,11 @@ SELECT DISTINCT ( - 78 ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(28\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 28 col2, + ( + + COUNT ( * ) ) AS col2 FROM tab0 WHERE + col2 + - - col0 IS NULL +---- +-28 +0 query I rowsort label-9943 SELECT COUNT ( ALL + - col2 ) FROM tab1 @@ -60269,8 +61076,11 @@ SELECT col2 + - 46 * - col2 + - col1 * + 44 AS col0, + col1 / ( + + 39 ) + + + c # 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 "cor0\.col1 / \(\- cor0\.col1\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 / - + col1 AS col2, 13 AS col2 FROM tab1 AS cor0 +---- +-1 +13 query I rowsort SELECT DISTINCT + 89 + + - col2 FROM tab0 diff --git a/data/sqlite/random/aggregates/slt_good_25.slt b/data/sqlite/random/aggregates/slt_good_25.slt index 17a3d02..3ad5aa9 100644 --- a/data/sqlite/random/aggregates/slt_good_25.slt +++ b/data/sqlite/random/aggregates/slt_good_25.slt @@ -504,8 +504,15 @@ SELECT - ( + 87 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -5929 # Datafusion - Expected - 58 # Datafusion - Expected - -4489 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col1 \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 col0, + col1 * - + col1 AS col0 FROM tab2 AS cor0 +---- +-2601 +-4489 +-5929 +23 +40 +58 query III rowsort label-74 SELECT ALL * FROM tab1 AS cor0 WHERE - col2 / + CAST ( NULL AS INTEGER ) = NULL @@ -738,8 +745,11 @@ SELECT 82 * col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 +---- +3 +NULL query I rowsort label-114 SELECT - + CAST ( - col1 AS INTEGER ) col0 FROM tab1 cor0 @@ -819,8 +829,15 @@ SELECT + MAX ( DISTINCT + 44 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 58 # Datafusion - Expected - -69 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ \(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 + - ( col2 ) col0, + col2 col0 FROM tab2 AS cor0 +---- +-104 +-133 +-69 +23 +40 +58 query III rowsort label-126 SELECT * FROM tab0 AS cor0 WHERE + col0 NOT IN ( - CAST ( - - 83 AS INTEGER ) ) @@ -992,8 +1009,11 @@ SELECT ALL + COUNT ( * ) * - 76 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, 78 AS col0 FROM tab1 +---- +3 +78 query I rowsort label-156 SELECT DISTINCT + 45 * + COUNT ( * ) FROM tab2 @@ -1346,8 +1366,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 + ( - + ( 9 ) ) + + 90 + + # Datafusion - Expected - 1 # 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 "cor0\.col2 / Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 71 col1, + col2 / + 25 AS col1 FROM tab0 AS cor0 +---- +0 +1 +3 +71 +71 +71 query I rowsort label-210 SELECT ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT ( + + 97 ) + - ( col0 ) IS NOT NULL @@ -3198,8 +3225,10 @@ SELECT - - col1 AS col0 FROM tab2 WHERE NOT + col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 7fe59ada64a9ecabdbd77325798778d7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col2 AS col0" at position 0 and "\(\- \(\- cor0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT col2 * + col2 AS col0, ( - - col2 ) AS col0, - col1 col2 FROM tab2 AS cor0 +---- +9 values hashing to ff4360f751696100f2fec30b980cfdf1 query I rowsort SELECT ALL + 4 + + + 95 + - 33 FROM tab2 @@ -3645,8 +3674,11 @@ SELECT + col0 + - ( + - 25 ) * + col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) col2, - ( + + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 +---- +-3 +3 query I rowsort label-589 SELECT ALL col1 * CAST ( - col1 AS INTEGER ) - + 89 FROM tab0 @@ -4027,8 +4059,15 @@ SELECT * FROM tab2 WHERE NOT - col2 * + col0 * + - col1 IS NULL # Datafusion - Expected - 78 # Datafusion - Expected - 3196 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* tab1\.col2 AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * + col2 AS col1, 78 AS col1 FROM tab1 +---- +1344 +295 +3196 +78 +78 +78 query I rowsort label-651 SELECT + 77 / + + col1 AS col1 FROM tab2 AS cor0 @@ -5223,8 +5262,15 @@ SELECT DISTINCT + ( + col0 ) * + + col0 + 32 + 17 + - col2 FROM tab2 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, col0 AS col1 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-856 SELECT ALL MIN ( - - col2 ) FROM tab0 @@ -5846,13 +5892,22 @@ SELECT MAX ( DISTINCT - 14 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -96 # Datafusion - Expected - -910 # Datafusion - Expected - -144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* \(\- \(\- CAST\(\(\- Int64\(10\)\) AS Int32\)\)\) AS col0" at position 0 and "\(\- tab1\.col0\) \+ Int64\(\-6\) \+ \(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * - - CAST ( - + 10 AS INTEGER ) AS col0, - col0 + - 6 + - col1 AS col0 FROM tab1 +---- +-144 +-510 +-71 +-850 +-910 +-96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to ebc6054aecf868683b328990b7d4e94f -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* \(\- Int64\(73\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 75 * + - ( 73 ) AS col0, + CAST ( NULL AS INTEGER ) AS col0, col2 FROM tab2 +---- +9 values hashing to 3024f70c220d65a232c502fcd4de1ffe query II rowsort SELECT ALL + col1, + 56 FROM tab2 @@ -6122,8 +6177,11 @@ SELECT DISTINCT + SUM ( ALL + 53 ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +3 +3 query I rowsort SELECT 46 + - + col2 col0 FROM tab1 @@ -6302,8 +6360,15 @@ SELECT DISTINCT - ( col1 ) / col0 * + CAST ( - 9 AS INTEGER ) col1 FROM tab0 AS # Datafusion - Expected - -96 # Datafusion - Expected - 94 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col1 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + + col1 AS col1, - col2 AS col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +10 +28 +94 query I rowsort label-1032 SELECT DISTINCT - + ( + + SUM ( + col1 ) ) AS col0 FROM tab2 AS cor0 @@ -6660,8 +6725,15 @@ SELECT - + col2 AS col2, + 54 FROM tab0 AS cor0 # Datafusion - Expected - -2560 # Datafusion - Expected - 3944 # Datafusion - Expected - -4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- \(\- cor0\.col1\)\) \+ cor0\.col2 AS col2" at position 0 and "cor0\.col2 \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * - - col1 + col2 AS col2, + col2 * - col0 AS col2 FROM tab2 AS cor0 +---- +-1058 +-2560 +-4350 +1196 +3120 +3944 query I rowsort SELECT - - 98 + - - ( 82 ) + - col0 AS col2 FROM tab0 cor0 @@ -7526,8 +7598,15 @@ SELECT + 87 * + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Expected - -68 # Datafusion - Expected - -9216 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* \(\- tab1\.col2\) AS col2" at position 0 and "\(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * - + col2 AS col2, ( + - col2 ) AS col2 FROM tab1 +---- +-3481 +-4624 +-59 +-68 +-9216 +-96 query I rowsort SELECT - 70 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) @@ -7646,8 +7725,15 @@ SELECT + + col1 * - - 28 FROM tab2 AS cor0 # Datafusion - Expected - -21 # Datafusion - Expected - 92 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 AS col1, - col1 AS col1 FROM tab0 cor0 +---- +-1 +-21 +-81 +92 +92 +92 query I rowsort label-1251 SELECT ALL + SUM ( DISTINCT + col1 ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0 @@ -7670,8 +7756,15 @@ SELECT ALL + SUM ( DISTINCT - + col1 ) FROM tab0 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + + col2 ), + col2 AS col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-1255 SELECT ALL COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT 89 > NULL @@ -7731,8 +7824,11 @@ SELECT DISTINCT * FROM tab1 WHERE col1 NOT BETWEEN - 30 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 25 AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +-25 +3 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 67 + + 39 / 21 * + ( + col0 ) + - 30 + + 74 * - 71 = + col1 @@ -8130,8 +8226,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NULL < NULL OR NOT ( - col2 ) <= - col1 * + # Datafusion - Expected - 2 # Datafusion - Expected - 11 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "cor0\.col1 \+ Int64\(\-19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 AS col2, + col1 + - 19 AS col2 FROM tab0 AS cor0 +---- +-18 +11 +11 +11 +2 +62 query II rowsort label-1332 SELECT + ( COUNT ( * ) ) * COUNT ( * ) col0, + COUNT ( * ) FROM tab2 AS cor0 @@ -8403,8 +8506,15 @@ SELECT col1 + - 85 + + col0 FROM tab1 AS cor0 # Datafusion - Expected - 34 # Datafusion - Expected - 74 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ Int64\(64\) AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 + + 64 AS col0, + 34 AS col0 FROM tab0 +---- +111 +163 +34 +34 +34 +74 query I rowsort label-1376 SELECT DISTINCT + COUNT ( * ) + COUNT ( + col1 ) FROM tab2 @@ -8567,8 +8677,15 @@ SELECT ALL - col1 * 75 AS col0 FROM tab0 # Datafusion - Expected - 58 # Datafusion - Expected - -77 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- \(\- cor0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, - ( - col2 ) AS col0 FROM tab2 cor0 WHERE NOT col0 BETWEEN - 66 * col2 AND + - col0 +---- +-51 +-67 +-77 +23 +40 +58 query III rowsort label-1400 SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 34 - + CAST ( col2 AS INTEGER ) + + col1 IS NULL @@ -9000,8 +9117,11 @@ SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE - + col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 185 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(tab2\.col0\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + SUM ( col0 ) AS col2, COUNT ( * ) AS col2 FROM tab2 +---- +185 +3 query I rowsort label-1474 SELECT ( col0 ) / - ( - ( + 26 ) ) FROM tab1 @@ -9507,8 +9627,11 @@ SELECT ALL + + SUM ( ALL col2 ) col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* avg\(Int64\(81\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) * AVG ( ALL 81 ) AS col1, - COUNT ( * ) AS col1 FROM tab0 cor0 +---- +-3 +NULL query I rowsort label-1558 SELECT ALL + + MIN ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0 @@ -10806,8 +10929,15 @@ SELECT DISTINCT 9 - + col0, - col0 + - 64 AS col0, + 14 AS col2 FROM tab2 # Datafusion - Expected - 97 # Datafusion - Expected - 5 # Datafusion - Expected - 141 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \+ Int64\(45\) AS col1" at position 0 and "tab2\.col0 \+ tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 + + 45 AS col1, + col0 + col1 AS col1 FROM tab2 +---- +-13 +141 +142 +22 +5 +97 query I rowsort label-1778 SELECT ALL 71 FROM tab1 WHERE - 81 * - 13 + - + col0 + - + col1 <= ( - 34 * + CAST ( NULL AS INTEGER ) ) @@ -11201,8 +11331,9 @@ SELECT ALL + MIN ( ALL - col0 ) FROM tab2 -75 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col1, + col1 FROM tab0 AS cor0 WHERE NOT col0 IN ( - 73, ( - - col2 ) + - col1, col0 * - - CAST ( NULL AS INTEGER ), + 70 ) +---- query I rowsort SELECT DISTINCT 60 * col1 AS col1 FROM tab2 AS cor0 @@ -11297,8 +11428,15 @@ SELECT DISTINCT - + 4 + + + ( COUNT ( - - col1 ) ) FROM tab0 AS cor0 # Datafusion - Expected - 2025 # Datafusion - Expected - -31 # Datafusion - Expected - 525 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \+ \(\- tab0\.col1\) AS col0" at position 0 and "tab0\.col1 \* Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 + - col1 AS col0, col1 * + 25 AS col0 FROM tab0 +---- +-100 +-128 +-31 +2025 +25 +525 query II rowsort SELECT - 91 AS col1, + 34 * - col2 FROM tab0 @@ -11317,8 +11455,15 @@ SELECT - 91 AS col1, + 34 * - col2 FROM tab0 # Datafusion - Expected - 45 # Datafusion - Expected - -90 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col2" at position 0 and "tab0\.col2 \+ \(\- Int64\(\-35\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 90 AS col2, + col2 + - - 35 AS col2 FROM tab0 +---- +-90 +-90 +-90 +134 +45 +82 query II rowsort label-1864 SELECT DISTINCT CAST ( 40 AS INTEGER ) * + col0 + - col0 + - - col1 * 75 * 54 AS col2, CAST ( NULL AS INTEGER ) FROM tab2 @@ -11381,8 +11526,11 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 / 14 * + + col2 NOT IN ( + - co # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- cor0\.col2\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - MIN ( ALL - col2 ) AS col1, ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0 +---- +3 +99 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT + col0 + + col0 IS NOT NULL @@ -11512,8 +11660,15 @@ SELECT + 97 + COUNT ( * ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 435420 # Datafusion - Expected - -583 # Datafusion - Expected - 708480 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ Int64\(89\) \- Int64\(11\) \+ Int64\(\-89\) \* Int64\(8\) AS col1" at position 0 and "Int64\(\-82\) \* Int64\(90\) \* \(\- tab1\.col2\) \+ tab1\.col1 \+ \(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + + 89 - 11 + - 89 * 8 AS col1, - 82 * + 90 * - col2 + col1 + + - col1 AS col1 FROM tab1 +---- +-543 +-549 +-583 +435420 +501840 +708480 query I rowsort label-1897 SELECT + col0 + CAST ( - + col1 AS INTEGER ) AS col0 FROM tab2 @@ -11676,8 +11831,15 @@ SELECT DISTINCT 8, - col1 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - -58 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "CAST\(\(\- cor0\.col0\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, CAST ( - + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-46 +-58 +-64 +-75 query I rowsort SELECT DISTINCT col2 + + 25 * - + col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) > NULL @@ -13354,8 +13516,15 @@ SELECT + col0 / + 53 + + 58 - + col1 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 75 # Datafusion - Expected - -77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, col0 AS col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +46 +64 +75 query I rowsort SELECT DISTINCT ( 15 ) + 75 col2 FROM tab0 @@ -13765,8 +13934,11 @@ SELECT ALL + 98 col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, + COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +3 +3 query I rowsort label-2272 SELECT + MAX ( DISTINCT - 45 ) FROM tab2 cor0 @@ -13842,8 +14014,15 @@ SELECT DISTINCT + + ( + MAX ( - 0 ) ) FROM tab2 AS cor0 # Datafusion - Expected - 826 # Datafusion - Expected - -37 # Datafusion - Expected - 952 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(37\)\) AS col2" at position 0 and "cor0\.col2 \- cor0\.col2 \* \(\- Int64\(13\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 37 col2, col2 - col2 * - + 13 col2 FROM tab1 AS cor0 +---- +-37 +-37 +-37 +1344 +826 +952 query I rowsort label-2284 SELECT DISTINCT - MAX ( ALL - col1 ) * SUM ( col1 ) + COUNT ( * ) AS col2 FROM tab1 AS cor0 @@ -14885,8 +15064,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + COUNT ( 21 ) AS col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-3 +3 query I rowsort SELECT DISTINCT + - ( col2 ) col2 FROM tab2 AS cor0 @@ -15449,8 +15631,15 @@ SELECT DISTINCT - 58 * + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 40 # Datafusion - Expected - -71 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(71\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 71 AS col0, col2 AS col0 FROM tab2 AS cor0 +---- +-71 +-71 +-71 +23 +40 +58 query I rowsort label-2557 SELECT COUNT ( * ) AS col1 FROM tab1 cor0 WHERE - col2 <> NULL OR NOT col2 BETWEEN NULL AND ( - col0 ) @@ -17307,8 +17496,15 @@ SELECT - col1 * + - col2 + col2 + - - col2 + + col1 + - 30 * + - col1 col2 FROM # Datafusion - Expected - 23 # Datafusion - Expected - 529 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col2 AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * col2 AS col0, 23 AS col0 FROM tab2 AS cor0 +---- +1600 +23 +23 +23 +3364 +529 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 IN ( - - col1, + 57, + col1 ) @@ -17378,8 +17574,11 @@ SELECT ALL - - col1 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 * + co # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 35 AS col1, - COUNT ( * ) - COUNT ( * ) AS col1 FROM tab2 cor0 +---- +-35 +-6 query I rowsort SELECT ALL - col1 + ( - 70 ) + + - col1 + + col0 FROM tab1 @@ -18512,8 +18711,15 @@ SELECT 94 * - + ( col1 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 55 # Datafusion - Expected - 99 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(70\) \- cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, 70 - col0 AS col1 FROM tab0 AS cor0 +---- +-17 +-27 +10 +47 +55 +99 query I rowsort SELECT + + 91 * - col0 AS col2 FROM tab2 AS cor0 @@ -18726,8 +18932,15 @@ SELECT DISTINCT - - 77 + - - col1 FROM tab0 WHERE + col1 IN ( col1, col1, col1 / # Datafusion - Expected - 6772 # Datafusion - Expected - 99 # Datafusion - Expected - 132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "\(\- Int64\(\-81\)\) \- Int64\(32\) \+ \(\- tab0\.col1\) \* Int64\(\-83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, - ( - 81 ) - + 32 + - col1 * - 83 AS col1 FROM tab0 +---- +10 +132 +1792 +47 +6772 +99 query I rowsort SELECT col2 * + 27 FROM tab1 @@ -19170,8 +19383,15 @@ SELECT - 34 * + col0 FROM tab2 # Datafusion - Expected - -59 # Datafusion - Expected - -91 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "\(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col1, - col2 col1 FROM tab1 +---- +-51 +-59 +-68 +-85 +-91 +-96 query I rowsort SELECT - 2 * - col2 * 77 FROM tab0 AS cor0 WHERE NOT NULL IS NULL @@ -19334,8 +19554,15 @@ SELECT DISTINCT - MAX ( - col2 ) AS col1 FROM tab0 # Datafusion - Expected - 68 # Datafusion - Expected - -6 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 6 AS col0, col2 AS col0 FROM tab1 AS cor0 +---- +-6 +-6 +-6 +59 +68 +96 query I rowsort SELECT DISTINCT 31 * + + col0 + - - col1 AS col1 FROM tab2 AS cor0 @@ -19891,8 +20118,11 @@ SELECT DISTINCT * FROM tab0 WHERE NOT - + col2 <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "Int64\(\-59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 67 AS col0, - 59 AS col0 FROM tab2 +---- +-59 +67 query II rowsort label-3292 SELECT - CAST ( NULL AS INTEGER ) * 24 / + 65 AS col1, col2 AS col2 FROM tab2 @@ -20065,8 +20295,10 @@ SELECT DISTINCT - 27 AS col1, COUNT ( * ) - + COUNT ( ALL 48 ) + 6 + - COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 8282b1146c7dee76bfdd5ced861bcbd8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "cor0\.col0 \+ Int64\(7\) \+ Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - col0 AS col2, col0 + 7 + 89 AS col2, - 53 FROM tab2 AS cor0 +---- +9 values hashing to 647b8c7fb0555d4bbbe0139298faa5bd query II rowsort label-3318 SELECT DISTINCT + 7, COUNT ( * ) + MAX ( ALL + 31 ) + + 96 col1 FROM tab2 AS cor0 @@ -20272,8 +20504,15 @@ SELECT 15 * - - col0 * + - col1 FROM tab0 # Datafusion - Expected - -67 # Datafusion - Expected - 173 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \+ tab2\.col1 AS col0" at position 0 and "\(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 96 + + col1 AS col0, - col1 AS col0 FROM tab2 +---- +-51 +-67 +-77 +147 +163 +173 query I rowsort SELECT + 89 * + col1 FROM tab1 @@ -20865,8 +21104,11 @@ SELECT - col2 / + + col1 AS col2, 23 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col2, - 66 col2 FROM tab0 AS cor0 +---- +-66 +3 query II rowsort SELECT - - 92, ( + - ( - col2 ) ) * - - col2 + + 6 + - ( col1 ) * col2 AS col0 FROM tab0 AS cor0 @@ -21357,8 +21599,15 @@ SELECT DISTINCT + col2 + + - 36 AS col0 FROM tab0 # Datafusion - Expected - -67 # Datafusion - Expected - 91 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "Int64\(\-67\) \+ tab1\.col1 / Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col2, - 67 + col1 / + + 40 AS col2 FROM tab1 +---- +-66 +-67 +-67 +51 +85 +91 query I rowsort label-3537 SELECT ALL col0 + - CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 @@ -21476,8 +21725,15 @@ SELECT 3 + + MAX ( DISTINCT - 39 ) FROM tab2 AS cor0 # Datafusion - Expected - -5293 # Datafusion - Expected - NULL # Datafusion - Expected - -6083 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(79\) \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, + 79 * - col1 AS col0 FROM tab2 AS cor0 +---- +-4029 +-5293 +-6083 +NULL +NULL +NULL query I rowsort label-3557 SELECT ALL COUNT ( * ) + + + COUNT ( ( - col0 ) ) FROM tab1 AS cor0 @@ -22034,8 +22290,15 @@ SELECT + COUNT ( ALL 78 ) FROM tab1 AS cor0 # Datafusion - Expected - 15 # Datafusion - Expected - 99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 col1, col0 AS col1 FROM tab0 AS cor0 +---- +10 +15 +47 +87 +97 +99 query II rowsort SELECT - 50 AS col1, - col0 FROM tab1 AS cor0 @@ -22430,8 +22693,15 @@ SELECT ALL + - COUNT ( * ) / + 39 FROM tab2 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - -58 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 AS col1, - col0 AS col1 FROM tab2 AS cor0 WHERE 0 IN ( + col1 + - col2, - col0 + + + col0 ) +---- +-46 +-58 +-58 +-58 +-64 +-75 query I rowsort SELECT - 5 * + col1 + - col2 AS col2 FROM tab0 cor0 @@ -22699,8 +22969,11 @@ 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\(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\. +query II valuesort SELECT + + ( + COUNT ( * ) ), COUNT ( * ) FROM tab0 AS cor0 +---- +3 +3 query I rowsort label-3758 SELECT - 31 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 @@ -22781,8 +23054,15 @@ NULL # Datafusion - Expected - 69 # Datafusion - Expected - 180 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(2\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 90 * 2 col1, 69 AS col1 FROM tab2 +---- +180 +180 +180 +69 +69 +69 query I rowsort SELECT ALL 43 FROM tab2 cor0 WHERE NULL IS NOT NULL @@ -24879,8 +25159,15 @@ SELECT + - COUNT ( * ) + - - COUNT ( * ) * 87 FROM tab1 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -2726 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ Int64\(2\) \* Int64\(\-23\) \* cor0\.col2 AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 + + 2 * - 23 * + + col2 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 +---- +-1081 +-1880 +-2726 +NULL +NULL +NULL query I rowsort label-4127 SELECT ALL + ( + SUM ( 38 ) ) AS col1 FROM tab0 @@ -26673,8 +26960,15 @@ SELECT DISTINCT col0 AS col1, + 11 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - -38 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 38 AS col0, - col2 col0 FROM tab2 AS cor0 +---- +-23 +-38 +-38 +-38 +-40 +-58 query I rowsort label-4425 SELECT DISTINCT - SUM ( DISTINCT - col2 ) * - - 12 AS col1 FROM tab1 AS cor0 @@ -26901,8 +27195,11 @@ SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND col1 + col0 # 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\(\(\- cor0\.col0\)\)\) AS col1" at position 0 and "Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - COUNT ( ALL - col0 ) AS col1, 68 AS col1 FROM tab1 AS cor0 +---- +-3 +68 query I rowsort label-4464 SELECT - CAST ( NULL AS INTEGER ) * - + col2 AS col1 FROM tab2 AS cor0 @@ -27094,8 +27391,11 @@ SELECT DISTINCT - - 48 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 26 col2, COUNT ( * ) AS col2 FROM tab2 +---- +26 +3 query I rowsort SELECT 80 + - 62 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL @@ -27242,8 +27542,15 @@ SELECT - 72 + - 27 FROM tab1 AS cor0 # Datafusion - Expected - 97 # Datafusion - Expected - 48 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \+ Int64\(33\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 + 33 AS col2, col0 AS col2 FROM tab0 +---- +120 +130 +15 +48 +87 +97 query I rowsort label-4521 SELECT + col0 / col1 * col2 + + col1 col2 FROM tab0 @@ -28858,8 +29165,15 @@ SELECT ALL col2 + + 79 / col0 AS col2 FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, + col2 AS col1 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-4803 SELECT - SUM ( + 66 ) / + 13 col2 FROM tab2 @@ -29788,8 +30102,15 @@ SELECT DISTINCT 26 + + - 19 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - -93 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) \- tab0\.col1 AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 - col1 AS col1, col2 AS col1 FROM tab0 +---- +-113 +-173 +-93 +10 +47 +99 query I rowsort label-4955 SELECT + MIN ( - col0 ) AS col2 FROM tab0 cor0 @@ -30398,8 +30719,15 @@ SELECT + 77 / - COUNT ( * ) FROM tab2 # Datafusion - Expected - -59 # Datafusion - Expected - NULL # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 / \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 / + - CAST ( NULL AS INTEGER ) AS col2, - 59 AS col2 FROM tab1 +---- +-59 +-59 +-59 +NULL +NULL +NULL query I rowsort SELECT 27 col1 FROM tab1 WHERE NOT - 68 * - col0 / + col1 - col1 IS NOT NULL @@ -30745,8 +31073,15 @@ SELECT - col2 * + + col1 col2 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 93 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \+ \(\- Int64\(6\)\) AS col2" at position 0 and "Int64\(11\) \* CAST\(NULL AS Int32\) \+ Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - - col2 ) + - + 6 AS col2, + 11 * CAST ( NULL AS INTEGER ) + - 4 AS col2 FROM tab0 AS cor0 +---- +4 +41 +93 +NULL +NULL +NULL query II rowsort SELECT col2, col1 + + 24 - + - col0 AS col1 FROM tab1 @@ -30919,8 +31254,15 @@ SELECT col0 * - 41 * + - 68 * + - 53 col1 FROM tab2 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - -21 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(21\)\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 21 AS col0, - col1 AS col0 FROM tab2 AS cor0 +---- +-21 +-21 +-21 +-51 +-67 +-77 query I rowsort SELECT DISTINCT col0 * + col2 + - col1 FROM tab0 @@ -31127,8 +31469,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) / + + MAX ( DISTINCT + + col1 ) AS col1, SUM ( col0 ) AS col1 FROM tab0 AS cor0 +---- +0 +199 query I rowsort SELECT DISTINCT - - 93 AS col2 FROM tab0 AS cor0 @@ -31678,8 +32023,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN col2 AND ( - col2 ) # Datafusion - Expected - 77 # Datafusion - Expected - 4858 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ Int64\(\-64\) \* \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 + - 64 * - + col0 AS col2, 77 col2 FROM tab2 cor0 +---- +2967 +4136 +4858 +77 +77 +77 query I rowsort SELECT - 85 + col1 * - 72 AS col1 FROM tab2 AS cor0 @@ -31892,8 +32244,11 @@ SELECT DISTINCT - COUNT ( * ) * + 2 * - 54 col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-10\)\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( - 10 ) AS col2, 7 col2 FROM tab0 AS cor0 +---- +-30 +7 query I rowsort label-5307 SELECT ALL ( col0 ) * - ( CAST ( NULL AS INTEGER ) ) + - col0 FROM tab2 cor0 @@ -32749,8 +33104,15 @@ SELECT + 5, col2 * - + 63 AS col0 FROM tab0 # Datafusion - Expected - -91 # Datafusion - Expected - -5 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "\(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col2, - col0 AS col2 FROM tab1 +---- +-14 +-47 +-5 +-51 +-85 +-91 query II rowsort SELECT DISTINCT col1 AS col1, - col0 col0 FROM tab0 @@ -33408,8 +33770,15 @@ SELECT DISTINCT ( - + COUNT ( * ) ) + - + 78 FROM tab2 # Datafusion - Expected - 705 # Datafusion - Expected - 99 # Datafusion - Expected - 9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 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 II valuesort SELECT DISTINCT col2 AS col1, - col0 * - col2 AS col1 FROM tab0 AS cor0 +---- +10 +47 +705 +870 +9603 +99 query II rowsort label-5552 SELECT ALL + 28, COUNT ( * ) * - 79 + - + 56 col1 FROM tab2 AS cor0 @@ -34535,8 +34904,15 @@ SELECT + ( + ( col0 ) ) * - 86 FROM tab1 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 7 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 7 AS col0, col1 AS col0 FROM tab2 AS cor0 +---- +51 +67 +7 +7 +7 +77 query III rowsort SELECT ALL * FROM tab1 cor0 WHERE NOT col2 + - 89 IN ( - 66 - - col2 ) @@ -35130,8 +35506,10 @@ SELECT - + col0 - col2 FROM tab1 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 5bbbbaeffb9f0bcadbd182d78bd78ae5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col2, col2, - 15 FROM tab0 +---- +9 values hashing to 8cd509808465f81ad979be682bc6c4ff query II rowsort SELECT ALL 85, col2 AS col0 FROM tab1 AS cor0 @@ -35554,8 +35932,15 @@ SELECT ( - 82 ) * - 30 + + - col2 FROM tab1 WHERE NOT ( NULL IS NULL ) # Datafusion - Expected - 12 # Datafusion - Expected - 40 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 AS col0, ( + 12 ) AS col0 FROM tab0 AS cor0 +---- +12 +12 +12 +40 +40 +40 query I rowsort label-5909 SELECT + COUNT ( * ) * + COUNT ( ALL + CAST ( - 51 AS INTEGER ) ) FROM tab0 AS cor0 @@ -35854,8 +36239,15 @@ SELECT DISTINCT + 55 FROM tab1 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - 77 # Datafusion - Expected - 58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + ( - + col2 ) AS col2, col1 AS col2 FROM tab2 AS cor0 +---- +23 +40 +51 +58 +67 +77 query II rowsort label-5959 SELECT DISTINCT - ( 83 ) AS col0, + CAST ( col0 AS INTEGER ) - - col1 AS col2 FROM tab1 AS cor0 @@ -37630,8 +38022,15 @@ NULL # Datafusion - Expected - 62 # Datafusion - Expected - -90 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 90 col1, + 62 AS col1 FROM tab2 +---- +-90 +-90 +-90 +62 +62 +62 query I rowsort SELECT DISTINCT 33 * + 89 AS col0 FROM tab0 @@ -37655,8 +38054,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab1 cor0 WHERE col2 * + col0 IS NULL +---- +0 +0 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < - col1 * - 6 * - - 52 * 73 - + ( col1 ) * + col0 @@ -37790,8 +38192,15 @@ SELECT + MAX ( ALL + col2 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 1701 # Datafusion - Expected - -81 # Datafusion - Expected - 6561 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col1 \* Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 col1, + col1 * 81 AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +1701 +6561 +81 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 >= + col1 * - col0 / + + col0 @@ -38024,7 +38433,7 @@ SELECT ALL COUNT ( * ) * - CAST ( - - 32 AS INTEGER ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 0eeba65f09cb02dfd975fb6cc8486554 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col1" at position 1 and "\(\- \(\- tab0\.col0\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Schema error: Schema contains qualified field name tab0\.col1 and unqualified field name col1 which would be ambiguous SELECT ALL col1, 27 AS col1, - - col0 col1 FROM tab0 query I rowsort @@ -38197,8 +38606,9 @@ SELECT ALL - + COUNT ( * ) * - ( + - 30 ) AS col1 FROM tab0 cor0 -90 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 AS col1, + 73 AS col1 FROM tab1 AS cor0 WHERE NOT + 23 > ( NULL ) +---- query I rowsort SELECT ALL 91 * - + 19 FROM tab0 cor0 @@ -38487,8 +38897,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 90 + + + 95 col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +-3 +5 query I rowsort SELECT ALL - col1 AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL @@ -38579,8 +38992,15 @@ SELECT - CAST ( + - 17 AS INTEGER ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, + col2 AS col2 FROM tab1 cor0 +---- +59 +59 +68 +68 +96 +96 query II rowsort SELECT DISTINCT + col2, 47 FROM tab1 cor0 @@ -39006,8 +39426,15 @@ SELECT ALL col0 AS col0 FROM tab1 WHERE 21 * + - col0 * - ( + ( 89 ) ) + + + ( c # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col1, col1 FROM tab1 cor0 +---- +14 +14 +47 +47 +5 +5 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + + col1 * - col0 IS NULL @@ -40826,8 +41253,15 @@ SELECT DISTINCT - - ( - + col2 ) / + 96 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 71 AS col2, - CAST ( NULL AS INTEGER ) + + 95 col2 FROM tab0 AS cor0 +---- +71 +71 +71 +NULL +NULL +NULL query I rowsort label-6772 SELECT ALL 30 - + col2 - - col2 - - col2 / + col1 * col2 FROM tab2 @@ -40861,8 +41295,10 @@ SELECT ALL + col2 + - ( col2 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 3a333596cddde63cb3e2b695cdf149dc -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ Int64\(20\) AS col2" at position 0 and "\(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col1 + 20 col2, - col1 AS col2, + col0 FROM tab0 +---- +9 values hashing to 6488fda368972594cf8e49d10b914c3f query I rowsort SELECT DISTINCT col1 * - - col0 - - col2 AS col0 FROM tab1 @@ -41823,8 +42259,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -700 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* \(\- min\(DISTINCT tab1\.col2\)\) \+ \(\- max\(\(\- Int64\(8\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 12 * - MIN ( DISTINCT col2 ) + - MAX ( - + 8 ) AS col1, COUNT ( * ) AS col1 FROM tab1 +---- +-700 +3 query I rowsort SELECT ALL 20 * + col1 AS col2 FROM tab2 @@ -41969,8 +42408,11 @@ SELECT ALL - 99 * - col0 - col0 AS col2 FROM tab2 AS cor0 WHERE NOT 69 IS NOT NU # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col2, + 98 AS col2 FROM tab1 cor0 +---- +3 +98 query I rowsort label-6954 SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) + 35 * - 96 * + + col0 * + + col2 AS col1 FROM tab2 @@ -42681,8 +43123,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - -5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col2, + col1 AS col2 FROM tab1 +---- +-14 +-47 +-5 +14 +47 +5 query I rowsort SELECT DISTINCT - ( + 54 ) FROM tab0 @@ -42987,8 +43436,15 @@ NULL # Datafusion - Expected - 67 # Datafusion - Expected - -89 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 89 AS col2, col1 AS col2 FROM tab2 AS cor0 +---- +-89 +-89 +-89 +51 +67 +77 query I rowsort label-7130 SELECT ALL - + MIN ( - col0 ) col2 FROM tab2 AS cor0 @@ -43314,8 +43770,9 @@ SELECT DISTINCT - + 82 * - + col2 FROM tab0 AS cor0 820 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col2 \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, + col2 * - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= NULL +---- query I rowsort label-7183 SELECT - ( - 97 ) * COUNT ( * ) / 17 col0 FROM tab1 AS cor0 @@ -44052,8 +44509,15 @@ SELECT + - col1 AS col0, - 29 FROM tab2 AS cor0 WHERE + col1 * + col1 < + col2 / # Datafusion - Expected - -75 # Datafusion - Expected - 77 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, - col0 AS col2 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +51 +67 +77 query I rowsort SELECT DISTINCT + 96 + 33 AS col2 FROM tab1 AS cor0 @@ -44516,8 +44980,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + + - COUNT ( * ) + - SUM ( - 22 ) AS col1, + 10 AS col1 FROM tab1 AS cor0 +---- +10 +66 query II rowsort label-7374 SELECT ALL + 88 / + + 60, + col0 - + 9 AS col1 FROM tab1 AS cor0 @@ -44657,8 +45124,15 @@ SELECT DISTINCT + 11 AS col1, col1 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -1827 # Datafusion - Expected - 81 # Datafusion - Expected - -1215 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col0\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, - col0 * + col1 AS col0 FROM tab0 cor0 +---- +-1215 +-1827 +-97 +1 +21 +81 query I rowsort SELECT 89 * + 22 AS col1 FROM tab2 @@ -45892,8 +46366,15 @@ SELECT * FROM tab2 WHERE NOT + 43 * ( ( - col2 ) ) * + 9 + - 32 IS NULL # Datafusion - Expected - 40 # Datafusion - Expected - 95 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 95 AS col0, + col2 AS col0 FROM tab2 +---- +23 +40 +58 +95 +95 +95 query II rowsort label-7605 SELECT DISTINCT 28 AS col0, col2 * + 2 - - 42 - + col2 * - col0 + - 67 + - col2 + - 82 * - - 99 / + 75 * + - 5 + - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 @@ -46133,8 +46614,11 @@ SELECT ALL col2 * ( - 85 ) FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, + 14 AS col0 FROM tab2 AS cor0 +---- +14 +NULL query I rowsort label-7646 SELECT ALL - 41 * + MAX ( - col2 ) FROM tab1 AS cor0 @@ -46627,8 +47111,15 @@ SELECT - 54 AS col1, COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - -90 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col2" at position 0 and "cor0\.col0 \- cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 AS col2, + col0 - + col0 AS col2 FROM tab1 AS cor0 +---- +-90 +-90 +-90 +0 +0 +0 query I rowsort SELECT ALL 83 + + col0 + - 26 * + ( + col0 ) FROM tab1 AS cor0 @@ -47309,8 +47800,15 @@ SELECT * FROM tab1, tab0 AS cor0 WHERE NULL IS NOT NULL OR NOT NULL IS NULL # Datafusion - Expected - 9 # Datafusion - Expected - -2233 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* \(\- tab2\.col1\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 29 * - col1 col0, + 9 AS col0 FROM tab2 +---- +-1479 +-1943 +-2233 +9 +9 +9 query II rowsort SELECT col2 * col1 AS col1, - col1 AS col0 FROM tab0 @@ -47486,8 +47984,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) col1, + MAX ( DISTINCT - 92 ) - - 42 col1 FROM tab2 +---- +-3 +-50 query I rowsort SELECT + 58 * - 95 * - 6 FROM tab1 WHERE NOT col1 < - col0 @@ -48293,8 +48794,15 @@ SELECT DISTINCT - SUM ( col2 ) * - ( MIN ( ALL col1 ) ) FROM tab2 # Datafusion - Expected - 40 # Datafusion - Expected - -75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col0, col2 AS col0 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +23 +40 +58 query I rowsort SELECT - col2 * - + col2 * + + col0 * - ( 4 ) + - - col1 AS col2 FROM tab0 @@ -49784,8 +50292,15 @@ SELECT DISTINCT + CAST ( + 56 AS INTEGER ) col0 FROM tab1 AS cor0 # Datafusion - Expected - 882 # Datafusion - Expected - -81 # Datafusion - Expected - 3402 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col1 \* Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, + col1 * + 42 AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +3402 +42 +882 query II rowsort label-8236 SELECT + SUM ( ALL - + col0 ), + 80 AS col0 FROM tab1 AS cor0 @@ -50777,8 +51292,11 @@ SELECT ALL * FROM tab1 AS cor0 WHERE 36 > - col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT cor0\.col1\)\) AS col0" at position 0 and "max\(Int64\(22\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MAX ( DISTINCT + + col1 ) AS col0, + MAX ( ALL + 22 ) AS col0 FROM tab1 AS cor0 +---- +-47 +22 query I rowsort SELECT col2 * 98 col1 FROM tab2 @@ -50832,8 +51350,15 @@ SELECT ALL MAX ( DISTINCT - - col1 ) col0 FROM tab1 # Datafusion - Expected - -1740 # Datafusion - Expected - 97 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col0 \+ tab0\.col0 \* \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col2, + col0 + + col0 * - ( + col1 ) col2 FROM tab0 +---- +-1200 +-1740 +0 +15 +87 +97 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -50941,8 +51466,15 @@ SELECT * FROM tab0 WHERE NOT - + col2 * + 29 IS NOT NULL # Datafusion - Expected - -3157 # Datafusion - Expected - 5 # Datafusion - Expected - -3953 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col2" at position 0 and "tab2\.col2 \* \(\- tab2\.col1\) \- \(\- CAST\(\(\- tab2\.col1\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 5 col2, col2 * + ( - col1 ) - + - CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 +---- +-1224 +-3157 +-3953 +5 +5 +5 query I rowsort SELECT DISTINCT col2 FROM tab0 WHERE - col0 + + + 37 <= NULL @@ -51958,8 +52490,15 @@ SELECT DISTINCT ( col2 ) AS col2 FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL ) # Datafusion - Expected - -21 # Datafusion - Expected - 97 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, - col1 AS col2 FROM tab0 cor0 +---- +-1 +-21 +-81 +15 +87 +97 query I rowsort label-8596 SELECT DISTINCT - - COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab0 AS cor0 @@ -53485,8 +54024,15 @@ SELECT ALL + MAX ( - 72 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 66 # Datafusion - Expected - 86 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "cor0\.col0 \+ \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 86 AS col0, + col0 + - col1 AS col0 FROM tab0 AS cor0 +---- +-66 +66 +86 +86 +86 +96 query I rowsort SELECT - + col1 * + 63 AS col1 FROM tab1 AS cor0 @@ -54083,8 +54629,15 @@ SELECT * FROM tab1 cor0 WHERE NOT + 99 IS NULL # Datafusion - Expected - 17 # Datafusion - Expected - 97 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- Int64\(\-17\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, - ( - 17 ) AS col2 FROM tab0 cor0 +---- +15 +17 +17 +17 +87 +97 query I rowsort SELECT DISTINCT + 89 * - - col2 FROM tab2 AS cor0 @@ -54124,8 +54677,15 @@ SELECT 52 * + COUNT ( ALL + ( col0 ) ) * + COUNT ( * ) * + - 80 + + 45 AS col0, # Datafusion - Expected - -55 # Datafusion - Expected - -96 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col0" at position 0 and "Int64\(\-55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - col2 ) col0, - 55 AS col0 FROM tab1 +---- +-55 +-55 +-55 +-59 +-68 +-96 query I rowsort label-8952 SELECT 44 / + + col2 AS col2 FROM tab0 @@ -54324,8 +54884,15 @@ SELECT DISTINCT col0, ( - + 36 ) FROM tab2 # Datafusion - Expected - -20 # Datafusion - Expected - -96 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 col2, - 20 AS col2 FROM tab1 +---- +-20 +-20 +-20 +-59 +-68 +-96 query I rowsort SELECT DISTINCT - - col1 * + col1 + col0 - - col0 FROM tab2 AS cor0 @@ -54597,8 +55164,15 @@ SELECT 83 + - - ( - 14 ) * col2 FROM tab1 AS cor0 # Datafusion - Expected - -3440 # Datafusion - Expected - 71 # Datafusion - Expected - -4988 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "Int64\(86\) \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 71 AS col1, 86 * - col2 col1 FROM tab2 AS cor0 +---- +-1978 +-3440 +-4988 +71 +71 +71 query I rowsort label-9031 SELECT ALL - 6 + COUNT ( * ) FROM tab2 @@ -54899,8 +55473,15 @@ SELECT * FROM tab0 cor0 WHERE - - col2 + + col2 <> + + 77 AND - ( + + 86 ) IS NU # Datafusion - Expected - 85 # Datafusion - Expected - -58 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) / cor0\.col0 \- cor0\.col2 AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 / + col0 - + col2 AS col1, + 85 AS col1 FROM tab2 AS cor0 +---- +-24 +-41 +-58 +85 +85 +85 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 = ( + - 70 ) + + col1 @@ -56136,8 +56717,11 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 / 46 * - 84 + - 89 = col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) 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 II valuesort SELECT 83 col1, + MAX ( - col0 ) col1 FROM tab2 AS cor0 +---- +-46 +83 query I rowsort SELECT DISTINCT - col1 + + 69 * - - col0 col0 FROM tab0 @@ -57056,8 +57640,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE - ( + col1 ) + + CAST ( NULL AS FLOAT8 ) IS # Datafusion - Expected - 66 # Datafusion - Expected - 97 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col0 \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, col0 + - col1 AS col1 FROM tab0 AS cor0 +---- +-66 +15 +66 +87 +96 +97 query III rowsort SELECT * FROM tab1 AS cor0 WHERE col2 <> - + col0 @@ -57252,8 +57843,15 @@ SELECT ALL + MIN ( ALL - 52 ) AS col0 FROM tab2 # Datafusion - Expected - 46 # Datafusion - Expected - 392 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* Int64\(28\) AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 * + + 28 col2, 46 AS col2 FROM tab1 +---- +1316 +140 +392 +46 +46 +46 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + 3 * col1 AND NULL @@ -58849,8 +59447,15 @@ SELECT - col2 AS col1, col0 * 26 col0 FROM tab0 # Datafusion - Expected - -47 # Datafusion - Expected - 55 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 col1, - col1 AS col1 FROM tab1 +---- +-14 +-47 +-5 +55 +55 +55 query III rowsort SELECT ALL * FROM tab1 WHERE NULL NOT IN ( col0 * - col1 + + ( - 93 ) + + col1 * + col2 ) @@ -59638,8 +60243,15 @@ SELECT ALL * FROM tab2 WHERE NOT + + 23 / 12 * col2 * - + col2 * - - 42 IS NOT N # Datafusion - Expected - 5 # Datafusion - Expected - -91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - col0 ) AS col0, col1 AS col0 FROM tab1 +---- +-51 +-85 +-91 +14 +47 +5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 @@ -59658,8 +60270,15 @@ SELECT ALL col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 col2, + col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE - 72 <= NULL @@ -59744,8 +60363,15 @@ SELECT ALL 44 + - col1 FROM tab1 # Datafusion - Expected - 82 # Datafusion - Expected - 663 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* tab1\.col1 \+ \(\- tab1\.col0\) AS col1" at position 0 and "Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * + + col1 + - col0 AS col1, + 82 AS col1 FROM tab1 +---- +340 +4186 +663 +82 +82 +82 query III rowsort SELECT * FROM tab0 WHERE + col0 NOT BETWEEN NULL AND + + 39 @@ -60018,8 +60644,15 @@ SELECT DISTINCT + - 34 + - + 81 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 97 # Datafusion - Expected - -88 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab0\.col1\)\) \- \(\- \(\- tab0\.col2\)\) \+ \(\- Int64\(99\)\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - col1 ) - - ( - col2 ) + - + 99 AS col2, 97 col2 FROM tab0 +---- +-197 +-65 +-88 +97 +97 +97 query I rowsort label-9934 SELECT ALL - ( col1 ) - - CAST ( + col1 AS INTEGER ) - + col2 / - col1 AS col1 FROM tab1 diff --git a/data/sqlite/random/aggregates/slt_good_26.slt b/data/sqlite/random/aggregates/slt_good_26.slt index 8fecdc0..c76d8cf 100644 --- a/data/sqlite/random/aggregates/slt_good_26.slt +++ b/data/sqlite/random/aggregates/slt_good_26.slt @@ -673,8 +673,15 @@ SELECT col0, - col1 * 45 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 20 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 20 col0, col1 AS col0 FROM tab1 AS cor0 +---- +14 +20 +20 +20 +47 +5 query II rowsort SELECT 57 col2, - col2 * + col1 FROM tab0 AS cor0 @@ -993,8 +1000,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 = ( + + col2 ) # Datafusion - Expected - 34 # Datafusion - Expected - 6561 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col1 AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 * + ( col1 ) AS col2, 34 AS col2 FROM tab0 AS cor0 +---- +1 +34 +34 +34 +441 +6561 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT - col0 = NULL @@ -1228,8 +1242,15 @@ SELECT + + 4 AS col0, col0 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 58 # Datafusion - Expected - -77 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 col1, col2 AS col1 FROM tab2 AS cor0 WHERE - col0 <= - col0 +---- +-51 +-67 +-77 +23 +40 +58 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * col2 * col0 / - - col2 * 84 * + col2 BETWEEN NULL AND ( col2 * - col0 * 65 ) @@ -1348,8 +1369,15 @@ SELECT DISTINCT + COUNT ( * ) / 22 AS col1 FROM tab1 # Datafusion - Expected - -1738 # Datafusion - Expected - NULL # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- tab0\.col1\) \* tab0\.col0 \- Int64\(\-89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) col0, - col1 * col0 - - 89 AS col0 FROM tab0 +---- +-1126 +-1738 +-8 +NULL +NULL +NULL query I rowsort label-219 SELECT ALL CAST ( - col2 AS INTEGER ) * + 32 AS col2 FROM tab0 @@ -2059,8 +2087,15 @@ SELECT ALL col2 * 79 + - + 46 * + col0 FROM tab1 # Datafusion - Expected - 108 # Datafusion - Expected - 9800 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* tab0\.col2 \- \(\- \(\- tab0\.col1\)\) AS col1" at position 0 and "tab0\.col0 \+ tab0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 * col2 - - - col1 col1, + col0 + + + col1 AS col1 FROM tab0 +---- +108 +2128 +79 +96 +98 +9800 query I rowsort label-338 SELECT DISTINCT 90 - + SUM ( + 82 ) FROM tab0 @@ -2456,8 +2491,15 @@ SELECT ALL - - 12 + - 49 * 21 col1 FROM tab0 WHERE col2 >= NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col0, col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-405 SELECT DISTINCT + SUM ( ALL - ( + + ( + 15 ) ) ) AS col1 FROM tab0 @@ -3468,8 +3510,11 @@ SELECT - col2 + - col1 + - - ( col1 ) * 22 * 85 + + col2 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, ( - 29 ) AS col1 FROM tab2 +---- +-29 +3 query II rowsort SELECT ALL + 33, col0 col1 FROM tab0 AS cor0 @@ -3771,8 +3816,9 @@ SELECT - + 30 col2, col2 + + - 57 FROM tab1 AS cor0 39 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) / Int64\(3\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + - 47 / ( 3 ) AS col0, - col0, + ( + 42 ) AS col0 FROM tab1 WHERE NOT ( ( NULL ) IS NULL ) +---- query III rowsort SELECT * FROM tab0 WHERE ( NOT NULL NOT BETWEEN NULL AND ( col2 ) ) @@ -4059,8 +4105,15 @@ NULL # Datafusion - Expected - -43 # Datafusion - Expected - 99 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, - 43 AS col1 FROM tab0 +---- +-43 +-43 +-43 +10 +47 +99 query III rowsort SELECT * FROM tab1 WHERE NOT col0 IN ( + 28, - col0, col0 - + 82 ) @@ -4117,8 +4170,15 @@ SELECT + MIN ( + 82 ) FROM tab1 # Datafusion - Expected - 77 # Datafusion - Expected - -97 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col2\) \- \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 AS col1, ( - col2 ) - - col0 AS col1 FROM tab0 AS cor0 +---- +-15 +-2 +-32 +-87 +-97 +77 query I rowsort SELECT + col1 * + col2 * ( - 59 ) FROM tab1 cor0 @@ -4745,8 +4805,15 @@ SELECT ALL - + 8 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col1, col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT DISTINCT + 94 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL @@ -4977,8 +5044,10 @@ SELECT 38, col2 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c9c453bcfe72c2afc6e84fac474c9416 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col0" at position 0 and "tab0\.col0 \* tab0\.col1 AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 44 col0, - col1, col0 * + col1 col0 FROM tab0 +---- +9 values hashing to d4d1a967e72c4b247c51e40718a77341 query I rowsort label-822 SELECT COUNT ( * ) * - ( - - MIN ( + + col2 ) ) AS col2 FROM tab1 @@ -6602,8 +6671,15 @@ SELECT + ( 79 ) / - - 8 col1 FROM tab2 # Datafusion - Expected - 15 # Datafusion - Expected - 8 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "Int64\(20\) \- tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 AS col1, 20 - + ( col1 ) AS col1 FROM tab1 +---- +-27 +15 +6 +8 +8 +8 query III rowsort SELECT * FROM tab1 WHERE NOT ( + col1 ) > NULL @@ -6730,8 +6806,11 @@ SELECT DISTINCT ( col0 ) * - - col0 * ( col2 ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -546 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \* \(\- min\(\(\- tab1\.col0\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 6 * - MIN ( - + col0 ) col2, + COUNT ( * ) AS col2 FROM tab1 +---- +-546 +3 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT + + col1 * 17 IS NULL @@ -6782,8 +6861,15 @@ SELECT - + COUNT ( * ) * - 11 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -5 # Datafusion - Expected - 9678032 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- \(\- cor0\.col2\)\) \* \(\- cor0\.col0\) \* Int64\(\-23\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * - - col2 * - col0 * - 23 AS col1, + ( - col1 ) AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +10810368 +6805355 +9678032 query II rowsort label-1125 SELECT - + COUNT ( + - col0 ), - COUNT ( * ) + + - COUNT ( * ) + + + 2 * 42 AS col1 FROM tab2 AS cor0 @@ -7073,8 +7159,15 @@ SELECT ALL 16, - COUNT ( * ) AS col0 FROM tab1 # Datafusion - Expected - 2635 # Datafusion - Expected - -5 # Datafusion - Expected - 2821 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col0" at position 0 and "tab1\.col0 \* Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 5 AS col0, + col0 * + + 31 AS col0 FROM tab1 +---- +-5 +-5 +-5 +1581 +2635 +2821 query I rowsort SELECT ALL - col1 * - col0 - col2 AS col2 FROM tab1 @@ -7399,8 +7492,15 @@ SELECT + col0 * - + col2 + col0 AS col2 FROM tab2 # Datafusion - Expected - 43 # Datafusion - Expected - 0 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \+ \(\- \(\- tab1\.col2\)\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 + - - col2 AS col0, 43 AS col0 FROM tab1 +---- +0 +0 +0 +43 +43 +43 query I rowsort label-1223 SELECT col0 + - col2 + ( col0 ) / - - col1 col1 FROM tab2 @@ -7526,8 +7626,11 @@ SELECT DISTINCT COUNT ( * ) + - - 78 col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-35\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) - - 35 col1, COUNT ( * ) AS col1 FROM tab2 +---- +3 +32 query I rowsort SELECT ALL 90 - 77 * col0 FROM tab1 @@ -7893,8 +7996,9 @@ SELECT col1 * ( 73 ) FROM tab0 73 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col2" at position 0 and "Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 AS col2, 51 AS col2 FROM tab2 WHERE NOT + col2 + + col2 * - + 51 * - col0 IS NOT NULL +---- query I rowsort SELECT DISTINCT + col1 * 35 * - - col2 FROM tab2 WHERE NULL IS NOT NULL @@ -7935,8 +8039,15 @@ SELECT DISTINCT - - 10 col2 FROM tab1 AS cor0 # Datafusion - Expected - 4277 # Datafusion - Expected - 6 # Datafusion - Expected - 714 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col1" at position 0 and "tab1\.col0 \* tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 6 col1, + col0 * + col1 AS col1 FROM tab1 +---- +425 +4277 +6 +6 +6 +714 query I rowsort label-1315 SELECT DISTINCT ( + + MAX ( DISTINCT col0 ) ) AS col2 FROM tab0 @@ -8127,8 +8238,15 @@ SELECT col0 * - 17 * + col0 col1 FROM tab2 # Datafusion - Expected - -5015 # Datafusion - Expected - 53 # Datafusion - Expected - -6188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "\(\- tab1\.col0\) \* tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 53 AS col1, - col0 * + col2 AS col1 FROM tab1 +---- +-4896 +-5015 +-6188 +53 +53 +53 query I rowsort label-1345 SELECT SUM ( - - col0 ) FROM tab1 @@ -8268,8 +8386,15 @@ NULL # Datafusion - Expected - 73 # Datafusion - Expected - -58 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, 73 AS col0 FROM tab2 +---- +-23 +-40 +-58 +73 +73 +73 query I rowsort SELECT ALL col0 * 69 AS col2 FROM tab2 @@ -8869,8 +8994,15 @@ SELECT ALL + ( - 12 ) FROM tab2 # Datafusion - Expected - -15 # Datafusion - Expected - 16 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \+ \(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 + - ( col1 ) AS col1, + ( - col0 ) AS col1 FROM tab0 AS cor0 +---- +-15 +-4 +-64 +-87 +-97 +16 query I rowsort SELECT - 9 + - - col2 FROM tab1 AS cor0 @@ -9164,8 +9296,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * + - 67 AS col0, + 75 col0 FROM tab0 +---- +-201 +75 query I rowsort label-1525 SELECT DISTINCT - - col2 + - col0 + + 4 AS col2 FROM tab1 WHERE + - CAST ( NULL AS INTEGER ) IS NULL @@ -10404,8 +10539,11 @@ SELECT DISTINCT + col1 * + + 87 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -7452 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ \(\- CAST\(NULL AS Float64\)\) AS col0" at position 0 and "Int64\(81\) \* Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT + - col2 + - + CAST ( NULL AS FLOAT8 ) AS col0, 81 * - 92 col0 FROM tab0 AS cor0 +---- +-7452 +NULL query I rowsort SELECT ALL + + col1 + + + col2 AS col0 FROM tab0 AS cor0 @@ -10983,8 +11121,11 @@ SELECT ALL + 7 + + col1 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +3 +3 query III rowsort SELECT * FROM tab0 WHERE ( - 60 + 36 ) IS NOT NULL @@ -11417,8 +11558,15 @@ SELECT DISTINCT * FROM tab0 WHERE NOT ( - col1 ) NOT BETWEEN 37 AND ( - 28 ) # Datafusion - Expected - -123 # Datafusion - Expected - -97 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* \(\- tab0\.col0\) AS col2" at position 0 and "tab0\.col0 \- \(\- tab0\.col2\) \* \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 * + ( - col0 ) AS col2, col0 - - col2 * - col1 AS col2 FROM tab0 +---- +-1215 +-123 +-1827 +-2 +-3792 +-97 query II rowsort SELECT 27 AS col0, + 80 AS col1 FROM tab0 @@ -11458,8 +11606,15 @@ SELECT DISTINCT 17 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, col2 AS col1 FROM tab0 cor0 +---- +10 +10 +47 +47 +99 +99 query III rowsort SELECT * FROM tab0 WHERE NOT ( + col0 ) <= NULL @@ -11613,8 +11768,15 @@ SELECT DISTINCT + 57 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL # Datafusion - Expected - NULL # Datafusion - Expected - 300 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* tab0\.col2 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 IR valuesort SELECT DISTINCT 30 * + col2 AS col1, - CAST ( NULL AS FLOAT8 ) AS col1 FROM tab0 +---- +1410 +2970 +300 +NULL +NULL +NULL query I rowsort label-1931 SELECT - 36 * col1 AS col0 FROM tab0 WHERE NOT ( NULL ) IN ( ( - + ( - CAST ( + col0 AS INTEGER ) ) ) ) @@ -11667,8 +11829,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, 77 * + ( + COUNT ( DISTINCT + 68 ) ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL +---- +-3 +77 query I rowsort SELECT 27 + + col0 AS col1 FROM tab1 @@ -11753,8 +11918,11 @@ SELECT - ( - col1 ) - + + CAST ( col1 AS INTEGER ) * - 2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col2, + ( CAST ( - - COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab2 AS cor0 +---- +3 +3 query II rowsort SELECT - - col2 - - col2 col2, col1 + + 99 + - col2 FROM tab1 AS cor0 @@ -12073,8 +12241,11 @@ SELECT + col2 * col2 + col2 col0, col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -738 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(89\)\) AS col1" at position 0 and "sum\(Int64\(\-82\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( + 89 ) AS col1, SUM ( - 82 ) AS col1 FROM tab0, tab2 AS cor0 +---- +-738 +9 query I rowsort SELECT DISTINCT + - 5 FROM tab0 WHERE NOT - col1 IS NULL @@ -12093,8 +12264,15 @@ SELECT ALL + 63 FROM tab0, tab1 cor0 # Datafusion - Expected - -291450 # Datafusion - Expected - 77 # Datafusion - Expected - -197120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "tab2\.col2 \* \(\- tab2\.col1\) \* tab2\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 col0, col2 * - col1 * col0 AS col0 FROM tab2 +---- +-197120 +-291450 +-53958 +51 +67 +77 query I rowsort SELECT DISTINCT col0 * + - 72 * 36 FROM tab1 AS cor0 @@ -12181,8 +12359,15 @@ SELECT + ( + col1 ) / + col1 AS col1, + col2 + ( - CAST ( - col2 AS INTEGER ) ) # Datafusion - Expected - 21 # Datafusion - Expected - 97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, col1 AS col2 FROM tab0 +---- +1 +15 +21 +81 +87 +97 query I rowsort SELECT DISTINCT + 15 col0 FROM tab1 @@ -12545,8 +12730,15 @@ SELECT * FROM tab1 WHERE + 58 * - col2 + - col0 + + col1 * - - col1 * + col0 * 9 # Datafusion - Expected - 882090 # Datafusion - Expected - 72 # Datafusion - Expected - 9008 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col1" at position 0 and "\(\- tab0\.col2\) \* Int64\(90\) \* \(\- tab0\.col2\) \+ \(\- Int64\(85\)\) / \(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 72 AS col1, - col2 * + 90 * - col2 + - + 85 / + - col2 AS col1 FROM tab0 +---- +198811 +72 +72 +72 +882090 +9008 query I rowsort SELECT col1 * - col2 + - 40 FROM tab0 @@ -13249,8 +13441,15 @@ SELECT + col0 - + col0 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL # Datafusion - Expected - -87 # Datafusion - Expected - 45 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \+ \(\- cor0\.col1\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 46 + + - col1 AS col2, - col0 AS col2 FROM tab0 AS cor0 +---- +-15 +-35 +-87 +-97 +25 +45 query II rowsort SELECT DISTINCT + col0 col1, 68 + + + col1 FROM tab1 AS cor0 @@ -13589,8 +13788,11 @@ SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + + ( - col1 ) + 52 <> NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- cor0\.col1\)\)\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( - col1 ) AS col0, + 49 AS col0 FROM tab1 AS cor0 +---- +47 +49 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + col2 <> NULL @@ -15201,8 +15403,9 @@ SELECT ALL - 35 * + - col0 FROM tab1 3185 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-35\)\)\) \* Int64\(36\) AS col0" at position 0 and "Int64\(\-32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( - 35 ) * 36 AS col0, - 32 AS col0 FROM tab0 WHERE NULL < - - ( + 0 ) +---- query I rowsort label-2517 SELECT + - MAX ( - col0 ) col0 FROM tab0 AS cor0 @@ -15693,8 +15896,11 @@ SELECT DISTINCT - col0, - col2 AS col0 FROM tab0 AS cor0 # 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 "sum\(tab1\.col1\) AS col1" at position 0 and "Int64\(4\) \- \(\- CAST\(NULL AS Float64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL SUM ( + + col1 ) AS col1, 4 - - CAST ( NULL AS FLOAT8 ) AS col1 FROM tab1 +---- +66 +NULL query I rowsort label-2595 SELECT DISTINCT - MIN ( + - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 @@ -16686,8 +16892,9 @@ SELECT ALL - 92 + col2 / + col0 FROM tab0 AS cor0 WHERE NOT col0 > 9 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 14 AS col2, 60 AS col2 FROM tab2 cor0 WHERE NOT NULL < ( NULL ) +---- query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT + col1 / + 23 * 82 IS NULL @@ -16804,8 +17011,15 @@ SELECT ALL * FROM tab1 WHERE NULL >= - - col0 * col1 + col1 + + 60 # Datafusion - Expected - 6188 # Datafusion - Expected - -714 # Datafusion - Expected - 4896 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* \(\- tab1\.col0\) AS col0" at position 0 and "tab1\.col2 \* tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * - col0 AS col0, col2 * col0 AS col0 FROM tab1 +---- +-425 +-4277 +-714 +4896 +5015 +6188 query II rowsort SELECT - 68 * + 73 AS col1, + 30 AS col2 FROM tab1 @@ -16930,8 +17144,10 @@ SELECT DISTINCT CAST ( + - 75 AS INTEGER ) AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 02a7661c231e19cde7a035aff3678bcc -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - col2 AS col0, col1 col0, col2 FROM tab1 WHERE NOT NULL IS NOT NULL +---- +9 values hashing to d1c377f5daeb91efe1ca197fb394e9b0 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT col2 / + 97 IS NOT NULL @@ -17641,8 +17857,15 @@ SELECT ALL + - col0 * 12 FROM tab2 cor0 # Datafusion - Expected - 21 # Datafusion - Expected - -97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- \(\- cor0\.col0\)\) AS Int32\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( - - col0 AS INTEGER ) AS col2, col1 AS col2 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +1 +21 +81 query I rowsort SELECT DISTINCT - col2 * - 25 + + col0 AS col0 FROM tab1 AS cor0 @@ -18100,8 +18323,11 @@ SELECT * FROM tab0 WHERE NULL NOT BETWEEN CAST ( NULL AS INTEGER ) * - ( col2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(50\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 50 AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +-50 +3 query I rowsort label-3000 SELECT ( CAST ( - col1 AS INTEGER ) ) FROM tab1 AS cor0 @@ -18384,8 +18610,15 @@ SELECT + col2 + 62 * + 28 + 42 / + col1 FROM tab0 # Datafusion - Expected - 480 # Datafusion - Expected - 7 # Datafusion - Expected - 2584 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ \(\- tab1\.col0\) AS col2" at position 0 and "Int64\(\-9\) \* tab1\.col2 \+ \(\- tab1\.col1\) \* \(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 98 + + - col0 col2, - 9 * + col2 + + - col1 * - col2 AS col2 FROM tab1 +---- +-236 +13 +2584 +47 +480 +7 query I rowsort SELECT DISTINCT - 26 * + 63 AS col2 FROM tab1 @@ -18919,8 +19152,15 @@ SELECT ALL SUM ( - CAST ( - + 27 AS INTEGER ) ) col0 FROM tab1 # Datafusion - Expected - 32 # Datafusion - Expected - 99 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "tab0\.col2 \+ \(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, col2 + - + col0 AS col1 FROM tab0 +---- +-77 +10 +2 +32 +47 +99 query II rowsort SELECT ALL - col1, ( 30 ) FROM tab2 WHERE NULL >= + col1 @@ -20111,8 +20351,15 @@ SELECT DISTINCT - 21 AS col1, SUM ( ALL + 78 ) FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -581 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \* \(\- cor0\.col2\) \- cor0\.col1 \+ cor0\.col2 \* Int64\(0\) \* cor0\.col1 AS col1" at position 0 and "cor0\.col1 \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(18\) \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 56 * + - col2 - + col1 + + col2 * + 0 * col1 AS col1, col1 * - - CAST ( NULL AS INTEGER ) + + 18 + - col2 AS col1 FROM tab0 AS cor0 +---- +-2713 +-5545 +-581 +NULL +NULL +NULL query II rowsort SELECT - + 90 AS col2, col0 FROM tab1 cor0 @@ -20172,8 +20419,15 @@ SELECT COUNT ( * ) + - 85 AS col2, 34 AS col1 FROM tab0 # Datafusion - Expected - 53 # Datafusion - Expected - -810 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- 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 II valuesort SELECT DISTINCT + col2 * - + 81 AS col1, 53 col1 FROM tab0 +---- +-3807 +-8019 +-810 +53 +53 +53 query I rowsort label-3342 SELECT col2 * + 51 - + col2 + - col1 * - col2 * - CAST ( + ( + + CAST ( NULL AS INTEGER ) ) AS INTEGER ) col2 FROM tab0 WHERE NULL NOT BETWEEN col1 AND + + col2 @@ -20233,8 +20487,15 @@ NULL # Datafusion - Expected - 40 # Datafusion - Expected - 0 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \- \(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col2 - - col2 AS col1, + col2 AS col1 FROM tab2 AS cor0 +---- +0 +0 +0 +23 +40 +58 query II rowsort SELECT DISTINCT - col0 + col1 AS col1, ( + + 96 ) AS col0 FROM tab0 AS cor0 @@ -20759,8 +21020,15 @@ SELECT DISTINCT + ( - - col0 ) + col0 * + 81 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 58 # Datafusion - Expected - -462 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* Int64\(\-22\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * - 22 AS col0, + 58 AS col0 FROM tab0 +---- +-1782 +-22 +-462 +58 +58 +58 query I rowsort SELECT + - col2 FROM tab1 WHERE ( NULL <> col1 * 87 * - col2 ) @@ -21475,8 +21743,15 @@ SELECT DISTINCT - col2 AS col0, - 74 * - 93 col1 FROM tab0 # Datafusion - Expected - 149002 # Datafusion - Expected - 5 # Datafusion - Expected - 20806 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "tab1\.col0 \* Int64\(92\) \+ Int64\(6\) \+ \(\- tab1\.col2\) \* \(\- tab1\.col1\) \* \(\- Int64\(\-44\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, + col0 * + 92 + 6 + - col2 * - col1 * - - 44 AS col0 FROM tab1 +---- +14 +149002 +20806 +47 +5 +63834 query I rowsort label-3546 SELECT ALL MAX ( + - 29 ) AS col0 FROM tab0 @@ -22693,8 +22968,15 @@ SELECT 42 * - 40 AS col1 FROM tab1 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col2, + col0 col2 FROM tab1 +---- +51 +51 +85 +85 +91 +91 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -22827,8 +23109,10 @@ SELECT ALL + ( + 46 ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 6582a142680784ef392058572c0e9fe7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + + col1, - 42, + col1 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL +---- +9 values hashing to eeb67694522cc2c26760d73a55f6f401 query I rowsort SELECT ALL + 66 * - + col2 * - col2 col1 FROM tab2 AS cor0 WHERE ( + - 16 IS NOT NULL ) @@ -23921,8 +24205,15 @@ SELECT DISTINCT + 57 + col2 FROM tab1 AS cor0 # Datafusion - Expected - 9603 # Datafusion - Expected - 510 # Datafusion - Expected - 705 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- Int64\(\-33\) \* cor0\.col0 AS col2" at position 0 and "cor0\.col0 \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 - - 33 * + col0 AS col2, + col0 * + col2 AS col2 FROM tab0 AS cor0 +---- +2958 +3298 +510 +705 +870 +9603 query I rowsort SELECT 31 + + 17 AS col2 FROM tab0 @@ -24005,8 +24296,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 43 AS col1, - COUNT ( * ) AS col1 FROM tab2 +---- +-3 +43 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -24028,8 +24322,10 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to b8a045c188070844ebf478e9a7493cdb -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col1" at position 0 and "Int64\(82\) \- Int64\(99\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - col1 AS col1, col0 / 1 / + col1, + 82 - + + 99 AS col1 FROM tab1 +---- +9 values hashing to f063a5cc14ff08defd42a9d41a8eb530 query I rowsort SELECT 53 * + col1 AS col1 FROM tab1 @@ -25022,8 +25318,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * - + 61 AS col0, - 65 AS col0 FROM tab1 cor0 +---- +-183 +-65 query I rowsort SELECT + 19 + - 78 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -27041,8 +27340,15 @@ SELECT + - 5 / + + 47 + col1 - + - col1 AS col0 FROM tab2 cor0 # Datafusion - Expected - 170 # Datafusion - Expected - 300846 # Datafusion - Expected - 182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(\-57\) \* \(\- Int64\(58\)\) AS col2" at position 0 and "cor0\.col0 \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * - 57 * - + 58 AS col2, col0 + col0 AS col2 FROM tab1 AS cor0 +---- +102 +168606 +170 +182 +281010 +300846 query III rowsort SELECT * FROM tab1 WHERE NOT NULL BETWEEN 31 * col0 AND + 29 + col2 @@ -28114,8 +28420,11 @@ 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\(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\. +query II valuesort SELECT 75 + - 58 + - 98 * - + COUNT ( * ) * - COUNT ( * ) AS col2, - MAX ( - - col2 ) AS col2 FROM tab0 +---- +-865 +-99 query III rowsort SELECT ALL * FROM tab1 WHERE + 90 IS NULL @@ -28682,8 +28991,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( col0 ) IS NULL # Datafusion - Expected - 91 # Datafusion - Expected - 9120 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ cor0\.col2 \* cor0\.col2 \* Int64\(1\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 + + col2 * + col2 * 1 AS col2, + col0 AS col2 FROM tab1 cor0 +---- +3422 +4556 +51 +85 +91 +9120 query I rowsort SELECT ALL + 75 FROM tab1 cor0 WHERE NOT 76 * - + col1 IS NOT NULL OR col1 IN ( + ( - col0 ) ) @@ -29167,8 +29483,15 @@ NULL # Datafusion - Expected - 6 # Datafusion - Expected - -81 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col0, + ( + 6 ) AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +6 +6 +6 query II rowsort label-4808 SELECT 65, MIN ( ALL 91 ) AS col0 FROM tab2 cor0 @@ -29847,8 +30170,9 @@ SELECT ALL + - 98 AS col1, col2 + - - ( col1 ) FROM tab1 AS cor0 WHERE NOT NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \+ Int64\(14\) / cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 20 + 14 / col0 col2, - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col0 AND NULL +---- query II rowsort label-4919 SELECT + SUM ( ALL + - col2 ) * + SUM ( + - 0 ) col0, - MIN ( + 27 ) FROM tab2 @@ -29889,8 +30213,15 @@ SELECT ALL - COUNT ( ALL + 44 ) col1 FROM tab2 # Datafusion - Expected - -18 # Datafusion - Expected - 154 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \+ \(\- \(\- tab2\.col1\)\) AS col0" at position 0 and "Int64\(\-18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + - - col1 AS col0, - 18 AS col0 FROM tab2 +---- +-18 +-18 +-18 +102 +134 +154 query I rowsort SELECT DISTINCT col2 * - col1 * col2 FROM tab1 @@ -29987,8 +30318,15 @@ SELECT ALL - 55 * 85 * - col2 / + - CAST ( - col2 AS FLOAT8 ), ( + col1 ) AS col # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col2 \* CAST\(NULL AS Int32\) \+ \(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 col1, col2 * CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab1 +---- +51 +85 +91 +NULL +NULL +NULL query I rowsort label-4939 SELECT ALL + SUM ( ALL col1 ) AS col1 FROM tab1 @@ -30639,8 +30977,10 @@ SELECT DISTINCT col0 * - 99 * - 37 - 48, col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to d132d63615fd6384b1b64c57c6715418 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "CAST\(Int64\(45\) AS Int32\) \* Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - col2 AS col1, CAST ( + + 45 AS INTEGER ) * + 69 col1, col0 AS col2 FROM tab0 +---- +9 values hashing to ac7a59280944ec89a669dd60362ae95b query I rowsort label-5052 SELECT + col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 @@ -32231,8 +32571,15 @@ SELECT DISTINCT col2 AS col1, - col0 + 31 FROM tab2 # Datafusion - Expected - -20 # Datafusion - Expected - 24 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "cor0\.col2 \* Int64\(\-2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 AS col1, col2 * - 2 AS col1 FROM tab0 AS cor0 +---- +-198 +-20 +-94 +24 +24 +24 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = + col2 / + 21 @@ -32417,8 +32764,15 @@ SELECT ALL + ( col0 ) - - col0 FROM tab1 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - -75 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col2, col1 AS col2 FROM tab2 +---- +-46 +-64 +-75 +51 +67 +77 query I rowsort SELECT DISTINCT - col1 - - - 36 col2 FROM tab0 @@ -32492,8 +32846,15 @@ SELECT DISTINCT col2 + + col2 + + col1 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 501 # Datafusion - Expected - 99 # Datafusion - Expected - 103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col0 \+ \(\- cor0\.col1\) \+ Int64\(7\) \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 col1, col0 + - col1 + 7 * col1 AS col1 FROM tab0 AS cor0 +---- +10 +103 +213 +47 +501 +99 query I rowsort SELECT + + ( + ( - + col0 ) ) AS col0 FROM tab1 AS cor0 @@ -33954,8 +34315,15 @@ SELECT + col2 * + CAST ( 18 AS INTEGER ) FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \- tab0\.col2 AS col0" at position 0 and "tab0\.col2 \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 - + col2 AS col0, + col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL +---- +0 +0 +0 +NULL +NULL +NULL query I rowsort label-5600 SELECT DISTINCT + MIN ( ALL - col0 ) AS col2 FROM tab0 @@ -34844,8 +35212,15 @@ SELECT + - col1 / - col2 * 5 AS col1 FROM tab2 WHERE NOT - + col2 IS NOT NULL # Datafusion - Expected - 0 # Datafusion - Expected - 34 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "tab2\.col2 / \(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 34 col2, + col2 / - col0 col2 FROM tab2 +---- +0 +0 +0 +34 +34 +34 query I rowsort label-5750 SELECT ALL + MIN ( DISTINCT + 85 ) AS col1 FROM tab1 @@ -34878,8 +35253,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + COUNT ( col2 ) * MAX ( ALL + + 85 ) AS col2, COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +-9 +255 query I rowsort label-5756 SELECT - col1 + - 74 * + ( - col1 ) / 93 / - + col1 * col0 * + - col0 FROM tab1 AS cor0 @@ -35882,8 +36260,11 @@ SELECT + col1 * 43 col2 FROM tab1 WHERE NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col2" at position 0 and "min\(DISTINCT Int64\(35\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 65 AS col2, MIN ( DISTINCT + 35 ) col2 FROM tab1 AS cor0 +---- +35 +65 query III rowsort label-5923 SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( 31 AS INTEGER ) + + col0 >= NULL @@ -36357,8 +36738,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +-3 +3 query II rowsort SELECT + col1 * col2, col1 AS col0 FROM tab1 cor0 WHERE NOT - ( + col1 ) <= col1 @@ -36870,8 +37254,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 46 + + col2 <= + col1 # Datafusion - Expected - 54 # Datafusion - Expected - 65 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 AS col0, + 54 AS col0 FROM tab1 AS cor0 +---- +54 +54 +54 +65 +65 +65 query I rowsort SELECT + col0 * + col1 AS col1 FROM tab2 AS cor0 WHERE NOT - 45 IS NULL @@ -37207,8 +37598,15 @@ SELECT ALL + - 88 * 84 + - + col1 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -10 # Datafusion - Expected - 45 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \+ \(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col1 \+ Int64\(\-15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col2 + + - col0 AS col1, + col1 + - 15 AS col1 FROM tab1 cor0 +---- +-1 +-10 +-23 +-26 +32 +45 query I rowsort SELECT col2 + + - 67 AS col0 FROM tab2 AS cor0 @@ -37966,8 +38364,11 @@ SELECT ALL col2 * - col1 * + - 62 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ tab0\.col0 AS col0" at position 0 and "CAST\(NULL AS Float64\) \* tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col0 AS col0, + CAST ( NULL AS FLOAT8 ) * col0 AS col0 FROM tab0 +---- +NULL +NULL query I rowsort label-6268 SELECT DISTINCT - ( + COUNT ( * ) ) + 65 AS col2 FROM tab2 AS cor0 @@ -38207,8 +38608,15 @@ SELECT * FROM tab0 WHERE ( - - 58 - 99 ) IS NOT NULL # Datafusion - Expected - 87 # Datafusion - Expected - 1 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) / tab0\.col1 AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 1 / + col1 col2, + col0 AS col2 FROM tab0 +---- +0 +0 +1 +15 +87 +97 query III rowsort label-6305 SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= + col0 / + col1 + 15 + + - 91 * CAST ( - 74 AS INTEGER ) * ( + 84 ) * + col1 AND NOT col2 IS NULL @@ -38686,8 +39094,15 @@ SELECT + 26 / + 23 AS col1 FROM tab2 AS cor0 WHERE ( NOT ( - - col0 * 11 ) NOT B # Datafusion - Expected - -10 # Datafusion - Expected - 94 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- Int64\(\-35\)\) AS col0" at position 0 and "Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 + - - 35 AS col0, ( - 10 ) AS col0 FROM tab1 AS cor0 +---- +-10 +-10 +-10 +103 +131 +94 query I rowsort SELECT + col1 FROM tab2 AS cor0 WHERE + ( - col0 ) * - col1 <= NULL @@ -39452,8 +39867,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN - 44 * + col1 AND # Datafusion - Expected - 40 # Datafusion - Expected - -3744 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col0 \+ \(\- cor0\.col2\) \* cor0\.col1 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + col0 + - + col2 * + col1 AS col0, col2 AS col0 FROM tab2 cor0 +---- +-1076 +-2939 +-3744 +23 +40 +58 query II rowsort label-6509 SELECT ALL - - col2 * col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL @@ -41378,8 +41800,11 @@ SELECT MAX ( DISTINCT - + 76 ) + + COUNT ( * ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1575 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-63\)\) \* Int64\(\-25\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + MAX ( ALL + - 63 ) * - 25 AS col0, + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 +---- +1575 +9 query I rowsort SELECT + 80 * + col0 + + ( - ( + + 20 ) ) FROM tab0 @@ -41810,8 +42235,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE col1 + + ( col1 ) IS NOT NULL # Datafusion - Expected - -3806 # Datafusion - Expected - 0 # Datafusion - Expected - -4477 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ cor0\.col0 AS col0" at position 0 and "\(\- Int64\(61\)\) \* cor0\.col0 \+ Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 + col0 AS col0, - ( + 61 ) * col0 + 98 AS col0 FROM tab2 AS cor0 +---- +-2708 +-3806 +-4477 +0 +0 +0 query I rowsort label-6906 SELECT + + CAST ( NULL AS INTEGER ) - COUNT ( * ) + - 78 AS col0 FROM tab1 AS cor0 @@ -41925,8 +42357,15 @@ SELECT ALL - - 0 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL # Datafusion - Expected - 21 # Datafusion - Expected - -143 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \+ Int64\(\-96\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 47 + - 96 col0, col1 AS col0 FROM tab0 cor0 +---- +-143 +-143 +-143 +1 +21 +81 query I rowsort SELECT - 51 + + + col2 * + + col2 FROM tab1 AS cor0 @@ -42647,14 +43086,24 @@ SELECT col0 - + 31 FROM tab2 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0, col0 col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) col2, + 40 AS col2 FROM tab1 AS cor0 +---- +-3 +40 query I rowsort label-7043 SELECT DISTINCT col1 / - - 37 AS col2 FROM tab0 @@ -42774,8 +43223,11 @@ SELECT DISTINCT - + col0 + - col2 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) \+ \(\- \(\- \(\- CAST\(NULL AS Int32\)\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "max\(\(\- Int64\(32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 44 + - - ( - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) AS col1, MAX ( ALL - + 32 ) AS col1 FROM tab2 cor0 +---- +-32 +NULL query I rowsort label-7063 SELECT + + COUNT ( * ) * + 15 AS col1 FROM tab1 AS cor0 @@ -43624,8 +44076,11 @@ SELECT DISTINCT 29 + + + col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(72\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, + 72 + COUNT ( * ) col0 FROM tab1 cor0 +---- +-3 +75 query I rowsort label-7207 SELECT ALL - 75 + COUNT ( * ) AS col1 FROM tab1 AS cor0 @@ -43672,8 +44127,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= ( - col2 ) # Datafusion - Expected - 97 # Datafusion - Expected - 885 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* Int64\(\-59\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * - 59 AS col1, col0 AS col1 FROM tab0 +---- +15 +5133 +5723 +87 +885 +97 # Datafusion - Datafusion expected results: # Datafusion - Expected - -100 @@ -43682,8 +44144,15 @@ SELECT - col0 * - 59 AS col1, col0 AS col1 FROM tab0 # Datafusion - Expected - -81 # Datafusion - Expected - -9801 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- tab0\.col2\) AS col1" at position 0 and "\(\- tab0\.col1\) \+ tab0\.col2 / Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 * - col2 AS col1, - col1 + + col2 / 83 AS col1 FROM tab0 +---- +-100 +-21 +-2209 +-81 +-9801 +0 query II rowsort SELECT ALL + 80 * 69, + 91 AS col1 FROM tab1 @@ -44063,8 +44532,15 @@ SELECT DISTINCT 77 / + 47 FROM tab2 # Datafusion - Expected - 5 # Datafusion - Expected - -91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col0, + col1 AS col0 FROM tab1 +---- +-51 +-85 +-91 +14 +47 +5 query I rowsort label-7273 SELECT ALL - 98 + - + COUNT ( * ) + 92 FROM tab2 @@ -44882,8 +45358,11 @@ 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\(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\. +query II valuesort SELECT - 25 * - COUNT ( * ) AS col1, + SUM ( 95 ) col1 FROM tab0 +---- +285 +75 query I rowsort SELECT - + col0 * + 51 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL ) @@ -44940,8 +45419,11 @@ SELECT ALL col0 AS col1 FROM tab2 WHERE NOT + col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 185 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-13\)\) 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 II valuesort SELECT - - 13 AS col1, SUM ( + col0 ) AS col1 FROM tab2 AS cor0 +---- +13 +185 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + - col0 + + 17 < NULL @@ -45201,8 +45683,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col1 + - col1, - 92 * + col1 ) # Datafusion - Expected - -358 # Datafusion - Expected - 91 # Datafusion - Expected - -3259 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "Int64\(\-63\) \+ tab1\.col1 \* \(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, - 63 + + ( + + col1 ) * - col2 col2 FROM tab1 +---- +-1407 +-3259 +-358 +51 +85 +91 query I rowsort SELECT - 80 + + + 81 FROM tab0 @@ -46898,8 +47387,15 @@ SELECT col2 + - 91 FROM tab1 # Datafusion - Expected - 159 # Datafusion - Expected - -91 # Datafusion - Expected - 165 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "tab1\.col0 \+ \(\- Int64\(\-74\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, col0 + - - 74 AS col1 FROM tab1 +---- +-51 +-85 +-91 +125 +159 +165 query I rowsort SELECT DISTINCT - + 87 + + + col0 AS col2 FROM tab0 cor0 @@ -46945,8 +47441,11 @@ SELECT ALL + - 70 - 59 FROM tab1 AS cor0 WHERE NULL <= col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 36 AS col2, 58 AS col2 FROM tab1 AS cor0 +---- +-36 +58 query I rowsort SELECT + col0 - - 7 AS col2 FROM tab2 AS cor0 @@ -47022,8 +47521,15 @@ SELECT DISTINCT + COUNT ( * ) * - MIN ( DISTINCT - col0 ) AS col1 FROM tab0 AS c # Datafusion - Expected - 2 # Datafusion - Expected - 81 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(28\) / cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, 28 / col2 col0 FROM tab0 cor0 +---- +0 +0 +1 +2 +21 +81 query I rowsort SELECT + + col0 * ( 92 ) FROM tab2 AS cor0 @@ -47778,8 +48284,15 @@ SELECT DISTINCT - + 92 + - col0 FROM tab1 AS cor0 # Datafusion - Expected - 96 # Datafusion - Expected - 92 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \+ Int64\(92\) \+ \(\- tab1\.col2\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 68 + 92 + - col2 AS col0, ( col2 ) AS col0 FROM tab1 +---- +101 +59 +64 +68 +92 +96 query I rowsort label-7895 SELECT ALL + 90 * - CAST ( NULL AS INTEGER ) FROM tab0 @@ -49306,8 +49819,15 @@ SELECT - col0 + - col2 + 31 AS col0, col2 col1 FROM tab0 # Datafusion - Expected - 0 # Datafusion - Expected - 99 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ \(\- tab0\.col1\) / Int64\(66\) AS col0" at position 0 and "tab0\.col0 / \(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 + - col1 / 66 AS col0, col0 / - + col1 AS col0 FROM tab0 +---- +-4 +-97 +0 +10 +46 +99 query I rowsort label-8151 SELECT MAX ( DISTINCT + CAST ( + 96 AS INTEGER ) ) AS col2 FROM tab2 @@ -49538,8 +50058,11 @@ SELECT ALL * FROM tab2 AS cor0 WHERE + col1 * + col0 > NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(cor0\.col0\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + AVG ( + col0 ) AS col1, COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT + 79 NOT BETWEEN NULL AND + 23 +---- +0 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL @@ -49548,8 +50071,15 @@ SELECT + AVG ( + col0 ) AS col1, COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT + # Datafusion - Expected - 21 # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* tab0\.col2 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( col2 ) AS col0, col1 AS col0 FROM tab0 +---- +1 +21 +81 +NULL +NULL +NULL query I rowsort label-8189 SELECT ALL 6 / - col2 AS col1 FROM tab2 @@ -50085,8 +50615,15 @@ SELECT ALL 9 + - 44 * + 47 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 # Datafusion - Expected - 70 # Datafusion - Expected - 75 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 AS col0, + 70 AS col0 FROM tab2 AS cor0 +---- +46 +64 +70 +70 +70 +75 query II rowsort SELECT col1 AS col0, - col2 + col2 AS col1 FROM tab2 AS cor0 @@ -50306,8 +50843,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT AVG ( + col0 ) * 21 * - COUNT ( * ) col0, 83 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL +---- +83 +NULL query I rowsort label-8309 SELECT - 74 + COUNT ( * ) AS col1 FROM tab2 cor0 @@ -50488,8 +51028,15 @@ SELECT + + col1 col1, 13 FROM tab1 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - 91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, - col0 AS col1 FROM tab1 cor0 +---- +-51 +-85 +-91 +51 +85 +91 query II rowsort SELECT DISTINCT + col1, 66 col0 FROM tab0 AS cor0 @@ -50699,8 +51246,11 @@ SELECT - 88, MIN ( ALL - 41 ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 +---- +3 +NULL query I rowsort SELECT DISTINCT + ( - - 55 ) - - + col2 FROM tab2 WHERE NOT NULL NOT BETWEEN - - col2 / col0 AND NULL @@ -50805,8 +51355,15 @@ SELECT ALL + + 21 + + col1 / ( - col1 ) + 52 FROM tab2 AS cor0 # Datafusion - Expected - 7569 # Datafusion - Expected - -86 # Datafusion - Expected - 225 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(39\)\) \- cor0\.col2 AS col2" at position 0 and "cor0\.col0 \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 39 - + col2 AS col2, col0 * + col0 AS col2 FROM tab0 AS cor0 +---- +-138 +-49 +-86 +225 +7569 +9409 query I rowsort label-8390 SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -50864,8 +51421,10 @@ SELECT DISTINCT col1 FROM tab2 WHERE 47 * - 33 <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a73ab3165dc3ec68d6e7a17996f72345 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + col2, col2, + col1 / 45 FROM tab0 +---- +9 values hashing to dce3f7a174778f5da3258bd894831d79 query II rowsort SELECT DISTINCT - 42 AS col2, - ( + 31 ) FROM tab1 @@ -51257,8 +51816,15 @@ SELECT col2 * - 11 FROM tab1 AS cor0 # Datafusion - Expected - 80 # Datafusion - Expected - NULL # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "cor0\.col0 \+ Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col0, col0 + 34 AS col0 FROM tab2 AS cor0 +---- +109 +80 +98 +NULL +NULL +NULL query I rowsort label-8465 SELECT - MAX ( DISTINCT + 59 ) * - COUNT ( * ) * + 65 * + SUM ( ALL col0 ) AS col2 FROM tab2 AS cor0 @@ -51440,8 +52006,15 @@ NULL # Datafusion - Expected - 87 # Datafusion - Expected - 96 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col0 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + col0 AS col2, col0 AS col2 FROM tab0 AS cor0 +---- +-66 +15 +66 +87 +96 +97 query I rowsort SELECT - + col0 + + 80 FROM tab0 AS cor0 @@ -52350,8 +52923,9 @@ SELECT - ( + 90 ) * - 66 + + - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* Int64\(27\) AS col2" at position 0 and "Int64\(\-31\) \* \(\- \(\- Int64\(\-97\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 63 * 27 col2, - 31 * - ( + - ( - 97 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 * - - 45, - col0 ) +---- query I rowsort SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( 41 ) IS NULL @@ -53009,8 +53583,15 @@ SELECT DISTINCT col2 + 66 FROM tab2 cor0 # Datafusion - Expected - 75 # Datafusion - Expected - -77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col2, + col0 AS col2 FROM tab2 AS cor0 WHERE - 53 IS NOT NULL +---- +-51 +-67 +-77 +46 +64 +75 query II rowsort label-8749 SELECT ALL 39 AS col1, - CAST ( - - col0 AS INTEGER ) FROM tab1 AS cor0 @@ -53047,8 +53628,15 @@ SELECT + ( + ( - + col1 ) ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -42 # Datafusion - Expected - 75 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col1" at position 0 and "Int64\(\-42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 75 AS col1, - 42 AS col1 FROM tab2 +---- +-42 +-42 +-42 +75 +75 +75 query II rowsort SELECT + 8 AS col1, col0 AS col2 FROM tab0 @@ -53282,8 +53870,15 @@ SELECT COUNT ( ALL - + 20 ) FROM tab1 # Datafusion - Expected - -47 # Datafusion - Expected - 99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- \(\- \(\- cor0\.col1\)\)\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 * - - ( - col1 ) AS col2, - col2 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +210 +3807 +99 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NULL <= - ( - - col2 ) @@ -53512,8 +54107,9 @@ SELECT ALL - 22 + + col0 * - col0 AS col1, col0 col2 FROM tab0 AS cor0 97 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, + col0 FROM tab0 AS cor0 WHERE ( NULL ) >= + - 57 + ( + col0 ) * - - col0 * + ( col1 ) - + col2 - + col1 * - col1 * + - 61 / 40 * + 74 +---- query III rowsort label-8827 SELECT * FROM tab0 AS cor0 WHERE + col2 NOT IN ( 73, + col2 / + 74, + CAST ( + ( + col1 ) AS FLOAT8 ), - - col1 + col0 ) @@ -54669,8 +55265,15 @@ SELECT - 31 FROM tab1 WHERE + col0 / col2 * + CAST ( + 2 AS INTEGER ) * - col1 = # Datafusion - Expected - -40 # Datafusion - Expected - -84 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col2" at position 0 and "\(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 84 AS col2, ( - col2 ) AS col2 FROM tab2 +---- +-23 +-40 +-58 +-84 +-84 +-84 query II rowsort SELECT + + col1, - col1 FROM tab1 AS cor0 WHERE col0 NOT IN ( - + ( + col0 ), col1 ) @@ -55840,8 +56443,15 @@ SELECT + 31 FROM tab0 WHERE NOT NULL IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - -3675 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(\-49\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * - 49 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 +---- +-2254 +-3136 +-3675 +NULL +NULL +NULL query I rowsort SELECT DISTINCT + - 70 FROM tab1 cor0 @@ -56946,8 +57556,15 @@ SELECT ALL + 61 + 64 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NOT NULL I # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, col2 AS col1 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-9404 SELECT ALL - CAST ( NULL AS INTEGER ) + + 60 AS col0 FROM tab2 AS cor0 @@ -57013,8 +57630,15 @@ SELECT ALL + col0 + + + col1 FROM tab1 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, + col0 FROM tab1 WHERE NOT NULL IS NOT NULL +---- +51 +51 +85 +85 +91 +91 query I rowsort label-9415 SELECT COUNT ( + - col0 ) + CAST ( - - 42 AS INTEGER ) FROM tab1 WHERE ( col0 ) IS NULL @@ -57542,8 +58166,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 65 + + col2 BETWEEN NULL AND NULL # Datafusion - Expected - 21 # Datafusion - Expected - -97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, col1 AS col2 FROM tab0 +---- +-15 +-87 +-97 +1 +21 +81 query I rowsort label-9502 SELECT DISTINCT CAST ( + 19 AS INTEGER ) FROM tab1 @@ -57940,8 +58571,11 @@ 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\(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\. +query II valuesort SELECT ALL + + COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 +---- +3 +3 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT col0 / + col2 NOT BETWEEN ( col0 + col0 ) AND ( NULL ) @@ -58551,8 +59185,15 @@ SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) * - + col2 > NULL # Datafusion - Expected - 59 # Datafusion - Expected - -8554 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* \(\- tab1\.col0\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 94 * - col0 col1, + col2 AS col1 FROM tab1 +---- +-4794 +-7990 +-8554 +59 +68 +96 query III rowsort SELECT DISTINCT * FROM tab1 WHERE + + col1 - - - col1 IS NOT NULL @@ -59796,8 +60437,15 @@ SELECT CAST ( col1 AS INTEGER ) AS col0 FROM tab1 WHERE col2 IS NULL # Datafusion - Expected - -29 # Datafusion - Expected - 91 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 col2, - 29 col2 FROM tab1 AS cor0 +---- +-29 +-29 +-29 +51 +85 +91 query II rowsort SELECT ALL + 50, col2 AS col0 FROM tab1 AS cor0 @@ -60183,8 +60831,15 @@ SELECT DISTINCT - COUNT ( * ) / + COUNT ( - - ( col0 ) ) AS col0, + COUNT ( * ) # Datafusion - Expected - 64 # Datafusion - Expected - 58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col1, + col0 col1 FROM tab2 AS cor0 +---- +23 +40 +46 +58 +64 +75 query I rowsort SELECT DISTINCT - 59 * + - col1 + + ( - col2 ) FROM tab2 AS cor0 @@ -60269,8 +60924,15 @@ SELECT DISTINCT * FROM tab1 cor0 WHERE col1 * + col1 * + col2 >= NULL # Datafusion - Expected - -6 # Datafusion - Expected - 23 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "Int64\(\-13\) \- Int64\(92\) \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 23 AS col1, - 13 - + 92 + + col2 AS col1 FROM tab0 AS cor0 +---- +-58 +-6 +-95 +23 +23 +23 query I rowsort SELECT DISTINCT + col1 * - col1 * - col2 + - - col2 + + col1 AS col1 FROM tab0 AS cor0 @@ -60360,8 +61022,11 @@ SELECT ALL - 16 / COUNT ( * ) AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- cor0\.col1\)\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( - + col1 ) col1, + 62 AS col1 FROM tab2 AS cor0 +---- +-51 +62 query I rowsort SELECT + ( 29 ) AS col0 FROM tab2 AS cor0 @@ -60450,8 +61115,15 @@ SELECT * FROM tab1 WHERE NOT ( NOT ( NOT ( - - col0 - - 17 ) IS NULL ) ) # Datafusion - Expected - 47 # Datafusion - Expected - 19 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 AS col1, col2 AS col1 FROM tab0 +---- +10 +19 +19 +19 +47 +99 query III rowsort SELECT * FROM tab1 WHERE NOT + col0 * 35 <> - col0 diff --git a/data/sqlite/random/aggregates/slt_good_27.slt b/data/sqlite/random/aggregates/slt_good_27.slt index 0151863..40bf23e 100644 --- a/data/sqlite/random/aggregates/slt_good_27.slt +++ b/data/sqlite/random/aggregates/slt_good_27.slt @@ -77,8 +77,11 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 24 * + 22 IN ( + 97 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col0 \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- CAST\(CAST\(NULL AS Int32\) AS Int32\)\) \+ Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 * col0 * - CAST ( NULL AS INTEGER ) AS col2, + ( - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) + + 19 AS col2 FROM tab2 AS cor0 +---- +NULL +NULL query I rowsort SELECT DISTINCT + col2 col1 FROM tab1 WHERE - 56 * + - col0 IS NULL @@ -224,8 +227,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN ( - col2 ) AND NULL # Datafusion - Expected - -68 # Datafusion - Expected - -96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\)" at position 0 and "\(\- tab1\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2, - col2 FROM tab1 +---- +-59 +-59 +-68 +-68 +-96 +-96 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -325,8 +335,11 @@ SELECT DISTINCT - - col0 * - col2 * - - col0 FROM tab1 cor0 WHERE NOT + 71 <> NU # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(81\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( + + 81 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 +---- +81 +NULL query I rowsort SELECT ALL - 39 + 58 AS col2 FROM tab0 AS cor0 @@ -582,8 +595,10 @@ SELECT DISTINCT - - MIN ( DISTINCT - col0 ) AS col1 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 0f0ae85b5919e58a3b87dd92bca3d10b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 1 and "\(\- Int64\(73\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 40 AS col1, col0 AS col2, - + 73 AS col2 FROM tab0 cor0 +---- +9 values hashing to 8c34554d5b105d497903c1c222eac3d1 query I rowsort label-90 SELECT - MIN ( ALL + ( col0 ) ) FROM tab0 @@ -1039,8 +1054,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT - ( - + 44 ) NOT BETWEEN + ( - + 91 ) AND # Datafusion - Expected - -291508 # Datafusion - Expected - -1 # Datafusion - Expected - -53981 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \- Int64\(39\) AS col1" at position 0 and "\(\- tab2\.col2\) \+ \(\- tab2\.col0\) \* tab2\.col2 \* tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 38 - + 39 col1, - col2 + - col0 * ( col2 ) * col1 AS col1 FROM tab2 +---- +-1 +-1 +-1 +-197160 +-291508 +-53981 query I rowsort SELECT ALL 7 + + ( col0 ) * - col0 AS col2 FROM tab0 AS cor0 @@ -1290,8 +1312,10 @@ SELECT + COUNT ( * ) AS col1, + 29 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 2ce5bbbe03e61c9789b68b67abf55232 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab1\.col1 AS Int32\) \* tab1\.col0 AS col2" at position 1 and "\(\- Int64\(\-22\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 85, CAST ( col1 AS INTEGER ) * + col0 AS col2, - - 22 AS col2 FROM tab1 +---- +9 values hashing to ff6bec5a2720c6193eccfc864f051830 query II rowsort SELECT DISTINCT col1 AS col0, 58 + + col1 FROM tab0 @@ -1376,8 +1400,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ), ( COUNT ( * ) ) FROM tab1 +---- +3 +3 query IIIIII rowsort SELECT * FROM tab2, tab1 AS cor0 WHERE + 85 * - + 42 IS NOT NULL @@ -2425,8 +2452,11 @@ SELECT DISTINCT + col0 + + 23 * col2 FROM tab1 AS cor0 # 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 "Int64\(79\) / sum\(\(\- Int64\(\-84\)\)\) AS col1" at position 0 and "max\(Int64\(62\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 79 / + SUM ( - + ( - 84 ) ) AS col1, MAX ( + 62 ) AS col1 FROM tab0, tab0 AS cor0 +---- +0 +62 query I rowsort SELECT DISTINCT 33 * - - 24 FROM tab1 @@ -2964,8 +2994,10 @@ SELECT col0, + col2 * 37 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 6779ca1336b2a4fbb56b94081d5dd6d8 -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 "tab2\.col0 \* tab2\.col0 \+ Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RII valuesort SELECT CAST ( NULL AS FLOAT8 ) AS col2, + col0 * + col0 + 43 col2, - + 78 * - - col1 - + + 3 / 98 * col2 AS col1 FROM tab2 +---- +9 values hashing to a4aa0dfe0265808223bc036a0260eab4 query I rowsort SELECT 28 * + - 60 * - + 38 FROM tab1 @@ -3083,8 +3115,15 @@ SELECT ALL - ( - COUNT ( * ) ) + 46 FROM tab1 # Datafusion - Expected - 80 # Datafusion - Expected - 8 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 AS col1, + 80 AS col1 FROM tab2 +---- +8 +8 +8 +80 +80 +80 query I rowsort SELECT ALL + 63 + - 90 FROM tab2 @@ -3688,8 +3727,15 @@ SELECT DISTINCT + col1 / + - col1 AS col0 FROM tab1 # Datafusion - Expected - 1924 # Datafusion - Expected - 0 # Datafusion - Expected - 293 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \+ tab0\.col0 AS col1" at position 0 and "tab0\.col0 \+ tab0\.col2 \+ tab0\.col0 \* tab0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - col0 ) + col0 AS col1, col0 + col2 + col0 * + col1 AS col1 FROM tab0 +---- +0 +0 +0 +1277 +1924 +293 query I rowsort SELECT DISTINCT col2 * + 90 AS col0 FROM tab0 @@ -5782,8 +5828,15 @@ SELECT DISTINCT - col1 / + 96 FROM tab1 # Datafusion - Expected - 33 # Datafusion - Expected - 6 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 6 AS col0, 33 AS col0 FROM tab0 AS cor0 +---- +33 +33 +33 +6 +6 +6 query I rowsort label-951 SELECT + col0 / + - col1 FROM tab1 AS cor0 @@ -5919,8 +5972,9 @@ NULL NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \+ \(\- tab0\.col1\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( col0 ) + + - col1 AS col0, 63 col0 FROM tab0 WHERE NULL IS NOT NULL +---- query I rowsort SELECT 6 * 84 AS col1 FROM tab1 @@ -6030,8 +6084,15 @@ SELECT DISTINCT - 28 FROM tab2 AS cor0 WHERE NOT - col1 / 81 - - 36 BETWEEN NULL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT 97 + col2 col2 FROM tab1 @@ -6102,8 +6163,15 @@ SELECT ALL ( + 41 ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, col0 AS col2 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query III rowsort SELECT * FROM tab1 WHERE NOT - col2 * - col0 IS NOT NULL @@ -6445,8 +6513,11 @@ 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\(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\. +query II valuesort SELECT + 14 - + - COUNT ( * ) AS col0, ( - SUM ( ALL + 58 ) ) col0 FROM tab1 AS cor0 +---- +-174 +17 query I rowsort SELECT ALL col1 + - + col1 * - 39 AS col1 FROM tab1 AS cor0 @@ -7386,8 +7457,10 @@ SELECT 89 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to aa8825985985f0f0b2abdf95d29e0c5a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / \(\- cor0\.col2\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "cor0\.col1 \+ \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + col1 / - col2 + + CAST ( NULL AS INTEGER ) AS col2, + col1 + - + col2 AS col2, - col1 * - col1 col1 FROM tab2 AS cor0 +---- +9 values hashing to 57691b7002c583558823222da89871bc query I rowsort SELECT ALL col0 FROM tab2 AS cor0 WHERE + 52 IS NOT NULL @@ -7673,8 +7746,15 @@ SELECT - - 61 AS col1 FROM tab2 WHERE 49 IS NULL # Datafusion - Expected - 40 # Datafusion - Expected - 11 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 11 col1, col2 AS col1 FROM tab2 +---- +11 +11 +11 +23 +40 +58 query I rowsort SELECT DISTINCT - - 93 + - - col2 FROM tab2 AS cor0 @@ -7782,8 +7862,11 @@ SELECT DISTINCT + SUM ( col2 ) * - + COUNT ( * ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 582 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* \(\- min\(\(\- tab0\.col0\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 6 * - MIN ( ALL - col0 ) AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 +---- +582 +NULL query I rowsort SELECT - col1 * + col1 + + col2 AS col1 FROM tab1 AS cor0 @@ -7880,8 +7963,11 @@ SELECT ALL + 56 / col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Float64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + COUNT ( * ) AS col1, CAST ( NULL AS FLOAT8 ) AS col1 FROM tab2 +---- +3 +NULL query I rowsort label-1306 SELECT ALL - 36 / - col0 + - 32 AS col0 FROM tab2 AS cor0 @@ -8637,8 +8723,15 @@ SELECT DISTINCT - col2 + + col0 * - + col1 + - CAST ( - - col1 AS FLOAT8 ) + - + # Datafusion - Expected - -87 # Datafusion - Expected - -97 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col0" at position 0 and "Int64\(\-87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 97 AS col0, - 87 AS col0 FROM tab2 AS cor0 +---- +-87 +-87 +-87 +-97 +-97 +-97 query I rowsort label-1428 SELECT + CAST ( NULL AS INTEGER ) / + 22 AS col0 FROM tab1 cor0 @@ -9112,8 +9205,15 @@ SELECT DISTINCT + - col1 / + 64 FROM tab1 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - -9844 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(\-82\) \+ cor0\.col2 \* \(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col1 \+ \(\- cor0\.col0\) / \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 * + - 82 + col2 * + - col0 AS col0, + col1 + - col0 / - col1 AS col0 FROM tab2 AS cor0 +---- +-5240 +-8874 +-9844 +51 +68 +77 query II rowsort SELECT DISTINCT + col2, + 94 AS col0 FROM tab0 cor0 @@ -10360,8 +10460,15 @@ SELECT DISTINCT + 23, ( 27 ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - -59 # Datafusion - Expected - 91 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) / Int64\(24\) \- \(\- cor0\.col0\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 19 / + 24 - - + col0 AS col0, - col2 AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +51 +85 +91 query II rowsort SELECT ALL + 3 + + col1, col1 col1 FROM tab2 AS cor0 @@ -11481,8 +11588,11 @@ SELECT - col0 * 9 + + + col2 * + + col2 + col0 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +3 +8 query I rowsort label-1887 SELECT MAX ( - ( + CAST ( NULL AS INTEGER ) ) ) * - - COUNT ( * ) - 97 FROM tab1 @@ -12798,8 +12908,9 @@ SELECT - col2 AS col0, - 61 FROM tab2 -61 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col0" at position 0 and "tab1\.col2 \- tab1\.col0 \+ Int64\(\-35\) \* Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 23 AS col0, col2 - + col0 + - 35 * - 99 AS col0 FROM tab1 WHERE NOT - col1 <> ( - - 43 - + - 29 ) +---- query III rowsort label-2110 SELECT ALL * FROM tab0 WHERE + CAST ( + col1 AS INTEGER ) - + ( + - 54 ) / - + col1 + - 81 = ( NULL ) @@ -13332,8 +13443,11 @@ SELECT ALL - col2 * ( - col2 ) * - col0 + 77 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ sum\(cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 72 AS col1, + CAST ( NULL AS INTEGER ) + + SUM ( + + col1 ) AS col1 FROM tab0 AS cor0 +---- +-72 +NULL query IIIIII rowsort SELECT ALL * FROM tab0 cor0 JOIN tab0 AS cor1 ON NULL IS NULL @@ -15857,8 +15971,11 @@ SELECT col0 * + col2 + - + ( ( + col1 ) ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 29 AS col1, COUNT ( * ) AS col1 FROM tab1 +---- +29 +3 query I rowsort label-2612 SELECT ALL - 47 + - MIN ( - ( 16 ) ) / + - 88 * + + COUNT ( * ) + - + COUNT ( * ) col2 FROM tab0 AS cor0 @@ -16556,8 +16673,15 @@ SELECT ALL + SUM ( + - col0 ) - - MAX ( ALL 43 ) FROM tab0 cor0 # Datafusion - Expected - 64 # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, col0 AS col2 FROM tab2 +---- +46 +64 +75 +NULL +NULL +NULL query III rowsort SELECT * FROM tab1 WHERE NOT - + 88 * col2 * + col0 IS NULL @@ -16878,8 +17002,15 @@ SELECT col2 * + col2 - col1 + + 15 + - col1 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 80 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) / cor0\.col0 \+ cor0\.col1 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 / col0 + col1 AS col0, ( + col1 ) AS col0 FROM tab0 AS cor0 +---- +0 +1 +20 +21 +80 +81 query I rowsort SELECT ALL - col2 AS col1 FROM tab2 WHERE + 77 BETWEEN NULL AND - col1 / 29 + - col1 * + - col2 - - 35 + - col1 @@ -18654,8 +18785,15 @@ SELECT 25 AS col1 FROM tab1 AS cor0 WHERE NOT ( col0 + + col0 + + - col2 * ( 91 # Datafusion - Expected - 40 # Datafusion - Expected - 93 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 93 col1, col2 AS col1 FROM tab2 AS cor0 +---- +23 +40 +58 +93 +93 +93 query I rowsort SELECT ( - + 36 ) FROM tab1 AS cor0 @@ -18850,8 +18988,11 @@ 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\(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\. +query II valuesort SELECT ALL 14 + COUNT ( * ) + + 70 AS col2, - 33 + - 11 AS col2 FROM tab0 WHERE + 98 = 25 + + col2 * + col2 + - col0 +---- +-44 +84 query I rowsort label-3118 SELECT DISTINCT + MIN ( + 25 ) AS col1 FROM tab1 AS cor0 @@ -19313,8 +19454,15 @@ SELECT ALL - + 68 + - col0 col0 FROM tab2 AS cor0 # Datafusion - Expected - -86 # Datafusion - Expected - 8 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "Int64\(\-86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 8 AS col2, - 86 AS col2 FROM tab0 AS cor0 +---- +-86 +-86 +-86 +8 +8 +8 query II rowsort label-3190 SELECT - ( CAST ( - COUNT ( * ) AS INTEGER ) ), + 39 AS col1 FROM tab0 AS cor0 @@ -19447,8 +19595,15 @@ SELECT + col1 + + 34 * - col0 - - - 24 FROM tab1 # Datafusion - Expected - 0 # Datafusion - Expected - 45 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ Int64\(\-54\) AS col0" at position 0 and "tab0\.col0 / CAST\(tab0\.col1 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + - 54 AS col0, + col0 / + ( + CAST ( col1 AS INTEGER ) ) col0 FROM tab0 +---- +-44 +-7 +0 +4 +45 +97 query III rowsort SELECT ALL * FROM tab0 WHERE col0 NOT BETWEEN NULL AND - 20 @@ -19732,8 +19887,11 @@ 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\(1\)\) AS count\(\*\) \- \(\- Int64\(47\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MAX ( DISTINCT col2 ) AS col1, COUNT ( * ) - - + 47 AS col1 FROM tab1 AS cor0 +---- +50 +96 query I rowsort label-3258 SELECT ALL 98 - + + COUNT ( * ) FROM tab0 @@ -21357,8 +21515,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, - 50 AS col0 FROM tab1 +---- +-3 +-50 query I rowsort SELECT DISTINCT ( + - ( - 95 ) ) FROM tab1 @@ -21694,8 +21855,9 @@ SELECT ALL - + 62 - - 62 AS col1 FROM tab1 AS cor0 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(66\)\) AS col1" at position 0 and "\(\- cor0\.col0\) \+ \(\- \(\- cor0\.col1\)\) \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 66 AS col1, - col0 + - - col1 + ( + col1 ) col1 FROM tab0 AS cor0 WHERE NOT + 39 IS NOT NULL +---- query I rowsort SELECT DISTINCT 1 * + + col2 col1 FROM tab2 AS cor0 @@ -22486,8 +22648,15 @@ SELECT ALL + COUNT ( * ) + + MAX ( + 11 ) * + 43 + + 68 * + COUNT ( ALL + 34 ) A # Datafusion - Expected - 68 # Datafusion - Expected - 0 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- \(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 - - ( - col0 ) AS col1, col2 AS col1 FROM tab1 AS cor0 +---- +0 +0 +0 +59 +68 +96 query I rowsort SELECT DISTINCT + col1 + 87 + - + col1 * + 95 + 14 FROM tab0 AS cor0 @@ -22499,8 +22668,11 @@ SELECT DISTINCT + col1 + 87 + - + col1 * + 95 + 14 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- cor0\.col2\)\) \* Int64\(\-1\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( - col2 ) * - 1 + + - COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +93 +NULL query III rowsort SELECT * FROM tab2 WHERE 39 + + + col2 * - 22 IS NOT NULL @@ -23947,8 +24119,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) + MAX ( - + col2 ) AS col0, COUNT ( * ) * + + 52 + - COUNT ( * ) AS col0 FROM tab1 +---- +-50 +153 query I rowsort label-3949 SELECT DISTINCT + 85 + + - 41 / + 31 FROM tab1 cor0 @@ -24119,8 +24294,11 @@ SELECT DISTINCT 25 + 4 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, + 66 AS col0 FROM tab1 +---- +3 +66 query I rowsort label-3978 SELECT - col2 - - 22 * + CAST ( NULL AS INTEGER ) * - 75 * + col2 AS col1 FROM tab2 @@ -24192,8 +24370,15 @@ NULL # Datafusion - Expected - 64 # Datafusion - Expected - -75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 AS col2, col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT - 60 IS NOT NULL ) +---- +-46 +-64 +-75 +46 +64 +75 query I rowsort SELECT - - col1 * + col1 + - + col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( + - 4 IS NOT NULL ) @@ -24520,8 +24705,11 @@ SELECT ALL col0 * + 8 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 47 col0, COUNT ( * ) AS col0 FROM tab1 +---- +-47 +3 query I rowsort label-4045 SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0 WHERE 51 > ( NULL ) @@ -24797,8 +24985,15 @@ SELECT col1 * + - col1 * - + 6 FROM tab2 cor0 # Datafusion - Expected - 58 # Datafusion - Expected - 2 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 / tab2\.col2 AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 / col2 AS col1, col2 AS col1 FROM tab2 +---- +1 +1 +2 +23 +40 +58 query I rowsort label-4089 SELECT ALL COUNT ( * ) * + ( + COUNT ( * ) ) / + ( + + COUNT ( ALL - col2 ) ) + + ( + SUM ( col2 ) ) FROM tab2 @@ -25562,8 +25757,11 @@ SELECT 73, col2 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-64\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( + - 64 ) AS col1, + COUNT ( * ) AS col1 FROM tab2 +---- +3 +3 query II rowsort label-4213 SELECT ALL + 36 * + 98, + MAX ( ALL col0 ) AS col1 FROM tab1 @@ -26400,8 +26598,11 @@ SELECT ALL + 2, + col2 * + col1 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) / + 80 col0 FROM tab0 AS cor0 +---- +0 +NULL query II rowsort SELECT + 75 * + 6 AS col2, col1 AS col0 FROM tab2 @@ -26666,8 +26867,15 @@ SELECT * FROM tab2 WHERE - col0 * col0 / + col0 BETWEEN NULL AND + col0 / + col2 # Datafusion - Expected - 170 # Datafusion - Expected - -91 # Datafusion - Expected - 182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col2" at position 0 and "tab1\.col0 \+ \(\- \(\- tab1\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 col2, col0 + - - col0 AS col2 FROM tab1 +---- +-51 +-85 +-91 +102 +170 +182 query I rowsort label-4403 SELECT DISTINCT + ( + MAX ( - col1 ) ) AS col1 FROM tab0 @@ -27457,8 +27665,15 @@ SELECT DISTINCT - + 22 - - 58 FROM tab1 AS cor0 # Datafusion - Expected - 38 # Datafusion - Expected - -94 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col2" at position 0 and "cor0\.col2 \+ Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 94 AS col2, + col2 + - 30 AS col2 FROM tab1 AS cor0 +---- +-94 +-94 +-94 +29 +38 +66 query I rowsort SELECT DISTINCT 42 * col1 AS col0 FROM tab2 AS cor0 @@ -27512,8 +27727,15 @@ SELECT ALL col0 AS col0 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) NOT IN ( # Datafusion - Expected - 68 # Datafusion - Expected - -96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + col2 ) AS col0, + col2 col0 FROM tab1 +---- +-59 +-68 +-96 +59 +68 +96 query I rowsort label-4537 SELECT DISTINCT + col0 / + ( + col0 ) AS col0 FROM tab0 AS cor0 @@ -27757,8 +27979,15 @@ SELECT 11 * + col2 / + col2 - 36 FROM tab0 AS cor0 # Datafusion - Expected - 57 # Datafusion - Expected - -61 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \+ \(\- cor0\.col0\) / Int64\(\-21\) AS col2" at position 0 and "Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 63 + - col0 / - 21 AS col2, 57 AS col2 FROM tab1 AS cor0 +---- +-59 +-59 +-61 +57 +57 +57 query I rowsort SELECT DISTINCT + + col2 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL @@ -27852,8 +28081,11 @@ 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 "min\(\(\- tab0\.col2\)\) AS col0" at position 0 and "count\(DISTINCT Int64\(48\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( - + col2 ) AS col0, COUNT ( DISTINCT + 48 ) col0 FROM tab0 +---- +-99 +1 query I rowsort SELECT DISTINCT col0 + - col2 col1 FROM tab1 @@ -28115,8 +28347,15 @@ NULL # Datafusion - Expected - 15 # Datafusion - Expected - -99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, + col0 AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +15 +87 +97 query I rowsort SELECT 61 * - + col1 + col1 + + - 8 * col2 FROM tab2 AS cor0 @@ -29874,8 +30113,15 @@ SELECT DISTINCT + col2, - 16 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - -5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +14 +47 +5 query I rowsort label-4925 SELECT ALL + COUNT ( * ) / + 55 FROM tab0 AS cor0 @@ -30017,8 +30263,15 @@ NULL # Datafusion - Expected - 14 # Datafusion - Expected - 91 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 col2, 14 AS col2 FROM tab1 +---- +14 +14 +14 +51 +85 +91 query I rowsort label-4948 SELECT ALL MAX ( ALL + 54 ) col1 FROM tab0 @@ -30124,8 +30377,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(\(\- \(\- cor0\.col2\)\)\)\)\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - MAX ( - - col2 ) col2, 6 col2 FROM tab2 AS cor0 +---- +58 +6 query I rowsort SELECT - 24 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 @@ -30560,8 +30816,15 @@ SELECT col2 * - 61 + 52 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col2, col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT 35 * - ( + + col2 ) + - 70 FROM tab2 @@ -30630,8 +30893,11 @@ SELECT DISTINCT col1 col2, - 83 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 223 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT cor0\.col2\) AS col0" at position 0 and "CAST\(Int64\(8\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( DISTINCT col2 ) AS col0, CAST ( 8 AS INTEGER ) AS col0 FROM tab1 AS cor0 +---- +223 +8 query I rowsort SELECT DISTINCT col0 * + + col2 FROM tab2 cor0 @@ -30799,8 +31065,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 255 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(85\) \* count\(Int64\(\-17\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) - + COUNT ( * ) AS col0, 85 * + COUNT ( ALL - 17 ) AS col0 FROM tab0 AS cor0 +---- +-6 +255 query I rowsort label-5076 SELECT ALL col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 WHERE + CAST ( NULL AS FLOAT8 ) + CAST ( NULL AS INTEGER ) IS NOT NULL @@ -31745,8 +32014,15 @@ SELECT - 17 * 41 * - - col0 FROM tab0 # Datafusion - Expected - 1833 # Datafusion - Expected - -5 # Datafusion - Expected - 195 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col1" at position 0 and "CAST\(tab1\.col1 AS Int32\) \* Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col1, ( CAST ( + col1 AS INTEGER ) ) * + + 39 col1 FROM tab1 +---- +-14 +-47 +-5 +1833 +195 +546 query I rowsort SELECT ALL + 30 * 76 FROM tab2 @@ -31979,8 +32255,15 @@ SELECT * FROM tab1 WHERE - 44 + - + col1 IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - -5 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, 47 AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +47 +47 +47 query I rowsort SELECT + 59 AS col0 FROM tab0 cor0 @@ -32273,8 +32556,15 @@ SELECT ALL * FROM tab0 WHERE - 32 NOT BETWEEN col1 * + col2 + - CAST ( NULL AS I # Datafusion - Expected - 85 # Datafusion - Expected - -793 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* \(\- tab1\.col2\) \- \(\- tab1\.col0\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + + 13 ) * - + col2 - - col0 AS col2, col0 col2 FROM tab1 +---- +-1197 +-682 +-793 +51 +85 +91 query I rowsort SELECT ALL col0 + - col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL @@ -32384,8 +32674,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE + col1 + + 10 <> NULL # Datafusion - Expected - -1 # Datafusion - Expected - 96 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 / \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col2 AS col1, col2 / - col1 col1 FROM tab1 AS cor0 +---- +-1 +-11 +-6 +59 +68 +96 query I rowsort SELECT col0 * - col2 FROM tab1 WHERE NOT NULL > NULL @@ -32909,8 +33206,15 @@ SELECT + - col2 FROM tab2 WHERE NULL <= - 0 # Datafusion - Expected - 85 # Datafusion - Expected - 88 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 88 AS col2, col0 AS col2 FROM tab1 +---- +51 +85 +88 +88 +88 +91 query I rowsort SELECT ALL - 37 + - - col1 FROM tab0 @@ -33231,8 +33535,15 @@ SELECT ALL col1 AS col2, + 50 FROM tab0 # Datafusion - Expected - -59 # Datafusion - Expected - 91 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "\(\- tab1\.col2\) \+ \(\- \(\- \(\- tab1\.col0\)\)\) \- \(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, - col2 + - - ( - col0 ) - - col0 AS col2 FROM tab1 +---- +-59 +-68 +-96 +51 +85 +91 query II rowsort label-5475 SELECT DISTINCT + ( CAST ( - 75 AS INTEGER ) ) * col2, - col2 AS col1 FROM tab2 @@ -33275,8 +33586,15 @@ SELECT ALL 60 FROM tab0 cor0 CROSS JOIN tab1 cor1 # Datafusion - Expected - 4489 # Datafusion - Expected - NULL # Datafusion - Expected - 5929 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col1 \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col1 AS col1, col1 * col1 AS col1 FROM tab2 AS cor0 +---- +2601 +4489 +5929 +NULL +NULL +NULL query I rowsort label-5482 SELECT - - CAST ( - - col2 AS INTEGER ) * + - 54 + col2 + + + col0 * - col1 * - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 @@ -34919,8 +35237,11 @@ SELECT + col2 * 88 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, - COUNT ( * ) AS col2 FROM tab1 +---- +-3 +3 query II rowsort SELECT - + col0, col1 FROM tab2 AS cor0 @@ -36800,8 +37121,11 @@ SELECT ALL + 62 FROM tab0 AS cor0 WHERE 4 + + + col1 * - col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 195 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col0" at position 0 and "sum\(DISTINCT cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 44 AS col0, SUM ( DISTINCT col1 ) AS col0 FROM tab2 cor0 +---- +195 +44 query I rowsort label-6082 SELECT DISTINCT 58 * + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL @@ -37358,8 +37682,15 @@ SELECT 18 * - MIN ( DISTINCT + 67 ) AS col2 FROM tab0 # Datafusion - Expected - 5092 # Datafusion - Expected - 1 # Datafusion - Expected - 6265 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) / \(\- cor0\.col0\) / \(\- Int64\(\-1\)\) AS col2" at position 0 and "Int64\(77\) \+ \(\- cor0\.col0\) \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 91 / - col0 / - ( + - 1 ) AS col2, 77 + - + col0 * + ( - col2 ) AS col2 FROM tab1 AS cor0 +---- +1 +1 +1 +4973 +5092 +6265 query I rowsort SELECT - 94 * + + col2 * - - col0 AS col2 FROM tab0 AS cor0 @@ -37425,8 +37756,15 @@ SELECT * FROM tab0 cor0 WHERE - 16 IS NOT NULL # Datafusion - Expected - -67 # Datafusion - Expected - NULL # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "\(\- cor0\.col2\) \+ \(\- cor0\.col1\) \+ cor0\.col0 / cor0\.col1 \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col1 * - + ( + - CAST ( NULL AS INTEGER ) ) AS col0, - col2 + - col1 + col0 / col1 + + + col1 AS col0 FROM tab1 AS cor0 +---- +-42 +-67 +-93 +NULL +NULL +NULL query I rowsort label-6188 SELECT DISTINCT + col2 / - - 92 AS col2 FROM tab1 cor0 @@ -37640,8 +37978,15 @@ SELECT + COUNT ( * ) * - CAST ( - SUM ( ALL + col1 ) AS INTEGER ) + + - COUNT ( # Datafusion - Expected - -77 # Datafusion - Expected - -5083 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \+ \(\- tab2\.col1\) \* tab2\.col0 AS col0" at position 0 and "\(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 + - + col1 * col0 AS col0, - col1 AS col0 FROM tab2 +---- +-2369 +-4968 +-5083 +-51 +-67 +-77 query III rowsort label-6225 SELECT * FROM tab1 WHERE - col2 * CAST ( NULL AS INTEGER ) > - - 87 @@ -37863,8 +38208,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 < + col1 # Datafusion - Expected - 87 # Datafusion - Expected - 81 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col1 AS col1, col0 AS col1 FROM tab0 AS cor0 +---- +1 +15 +21 +81 +87 +97 query I rowsort label-6262 SELECT DISTINCT SUM ( 28 ) AS col1 FROM tab2 AS cor0 @@ -38517,8 +38869,15 @@ SELECT ALL + CAST ( + - 69 AS INTEGER ) AS col2 FROM tab2 # Datafusion - Expected - -88 # Datafusion - Expected - 37 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "Int64\(\-26\) / Int64\(\-35\) \- Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 AS col2, ( - 26 ) / - 35 - + 88 AS col2 FROM tab2 +---- +-88 +-88 +-88 +37 +37 +37 query II rowsort SELECT ALL - 63 AS col2, col0 FROM tab2 @@ -38689,8 +39048,15 @@ SELECT DISTINCT 16 * - col2 AS col1 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - -5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, col1 AS col2 FROM tab1 +---- +-14 +-47 +-5 +14 +47 +5 query I rowsort SELECT + 55 * + col0 * + col2 AS col2 FROM tab2 @@ -39095,8 +39461,15 @@ SELECT - 37 * - MIN ( DISTINCT + ( + + 13 ) ), ( + COUNT ( * ) ) AS col1 FROM ta # Datafusion - Expected - 125 # Datafusion - Expected - 72 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col2" at position 0 and "tab2\.col2 \+ tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 AS col2, col2 + + + ( col1 ) AS col2 FROM tab2 +---- +117 +125 +72 +72 +72 +74 query I rowsort label-6457 SELECT + COUNT ( * ) FROM tab0 WHERE + + 66 + col1 IS NOT NULL @@ -39148,8 +39521,15 @@ SELECT COUNT ( * ) * - 7 AS col0 FROM tab2 # Datafusion - Expected - 4624 # Datafusion - Expected - 41 # Datafusion - Expected - 9216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "tab1\.col2 \* tab1\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 41 col2, col2 * col2 AS col2 FROM tab1 +---- +3481 +41 +41 +41 +4624 +9216 query I rowsort SELECT ALL - col1 FROM tab0 WHERE 46 < - 43 @@ -39645,8 +40025,15 @@ NULL # Datafusion - Expected - 64 # Datafusion - Expected - -31 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 AS col1, + col0 AS col1 FROM tab2 AS cor0 +---- +-31 +-31 +-31 +46 +64 +75 query III rowsort SELECT * FROM tab1 WHERE NOT + + col2 - + - 52 IS NOT NULL @@ -39816,8 +40203,15 @@ SELECT ALL - COUNT ( 77 ) AS col0 FROM tab1 # Datafusion - Expected - -31 # Datafusion - Expected - NULL # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\)\) AS Int32\) AS col1" at position 0 and "Int64\(\-31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) AS col1, - 31 AS col1 FROM tab0 +---- +-31 +-31 +-31 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab0 WHERE ( ( col2 ) ) + col0 IS NOT NULL @@ -40138,8 +40532,15 @@ SELECT + 32 AS col0, COUNT ( * ) AS col2 FROM tab1 cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 77 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 \+ \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 AS col2, + col1 + - col1 AS col2 FROM tab2 AS cor0 +---- +0 +0 +0 +51 +67 +77 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 64 AND + + col0 @@ -40815,8 +41216,11 @@ SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN - col2 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, - 84 AS col1 FROM tab1 +---- +-84 +3 query III rowsort label-6748 SELECT DISTINCT * FROM tab0 WHERE NOT - CAST ( - - col0 AS INTEGER ) IS NULL @@ -41042,8 +41446,11 @@ SELECT + col2 * - 69 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 51 AS col0, + COUNT ( * ) AS col0 FROM tab2 +---- +-51 +3 query I rowsort SELECT col2 + 14 * + col1 + + - 37 FROM tab0 @@ -42527,8 +42934,15 @@ SELECT ALL - 19 * - + col1 FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - 1 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 / tab1\.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 II valuesort SELECT ALL col2 / col0 AS col2, 64 AS col2 FROM tab1 +---- +0 +0 +1 +64 +64 +64 query I rowsort SELECT 35 AS col2 FROM tab2 WHERE NOT 4 + + + 71 IN ( 6 ) @@ -42644,8 +43058,9 @@ SELECT DISTINCT - col2 - + col0 - - - col1 AS col2 FROM tab1 AS cor0 -206 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(46\)\) \+ cor0\.col0 AS col2" at position 0 and "cor0\.col1 / \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 46 + col0 AS col2, col1 / + - col1 AS col2 FROM tab2 AS cor0 WHERE NULL <> col1 +---- query I rowsort SELECT DISTINCT col1 * + 7 + col0 FROM tab0 @@ -42874,8 +43289,11 @@ SELECT DISTINCT + col1 AS col1, + 85 + + ( + 85 ) AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(69\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 69 AS col2, + COUNT ( * ) AS col2 FROM tab0 cor0 +---- +-69 +3 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN - col2 AND - - col2 * + col1 @@ -42941,8 +43359,15 @@ SELECT 92 + - - col2 FROM tab2 cor0 # Datafusion - Expected - 37 # Datafusion - Expected - -81 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(37\) \+ cor0\.col1 / Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 col1, 37 + col1 / + 83 AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +37 +37 +37 query II rowsort label-7105 SELECT DISTINCT + + col2, - 47 / - - 56 FROM tab0 AS cor0 @@ -43120,8 +43545,11 @@ SELECT * FROM tab1 WHERE NULL <= 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col2, 9 col2 FROM tab1 +---- +3 +9 query I rowsort SELECT ALL + 9 + col0 AS col2 FROM tab2 @@ -43270,8 +43698,15 @@ SELECT ALL - col1 * - + 67 AS col1 FROM tab2 # Datafusion - Expected - -861 # Datafusion - Expected - 81 # Datafusion - Expected - -3321 -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 \* Int64\(\-41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, col1 * - 41 AS col0 FROM tab0 AS cor0 +---- +-3321 +-41 +-861 +1 +21 +81 query I rowsort SELECT DISTINCT - - col2 + + - 22 * - - 28 FROM tab1 AS cor0 @@ -43584,8 +44019,11 @@ SELECT * FROM tab0, tab0 AS cor0 WHERE NOT - 81 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(cor0\.col2\) AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MAX ( col2 ) AS col0, 86 AS col0 FROM tab1 AS cor0 +---- +86 +96 query I rowsort label-7209 SELECT + MAX ( ALL - + 25 ) FROM tab1 AS cor0 @@ -44030,8 +44468,15 @@ SELECT - col2 + + col0 - + + 69 / + col0 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 65 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 65 AS col2, ( col1 ) AS col2 FROM tab1 +---- +14 +47 +5 +65 +65 +65 query I rowsort SELECT DISTINCT col0 + + ( + col0 ) FROM tab0 @@ -44615,8 +45060,15 @@ SELECT DISTINCT col0 * col0 * + - 58 FROM tab1 AS cor0 # Datafusion - Expected - -25 # Datafusion - Expected - 55 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(44\)\) \+ \(\- \(\- cor0\.col2\)\) AS col1" at position 0 and "Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( - + 44 ) + - - col2 AS col1, - 25 AS col1 FROM tab0 AS cor0 +---- +-25 +-25 +-25 +-34 +3 +55 query I rowsort SELECT ALL ( 80 ) AS col2 FROM tab2 AS cor0 @@ -44789,8 +45241,11 @@ SELECT DISTINCT col0 - - - col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col1, + 57 AS col1 FROM tab1 +---- +3 +57 query III rowsort SELECT * FROM tab1 WHERE NOT + col1 * + 52 * + + 0 - - ( + col1 ) > + + col2 @@ -44864,8 +45319,11 @@ SELECT ALL + col0, - col1 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(51\)\) AS col0" at position 0 and "Int64\(47\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MAX ( + + 51 ) AS col0, 47 / + + COUNT ( * ) AS col0 FROM tab0 +---- +15 +51 query II rowsort SELECT ALL - 56, - 62 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL < NULL @@ -45762,8 +46220,15 @@ SELECT * FROM tab2 WHERE NULL IS NOT NULL OR - col0 IS NOT NULL # Datafusion - Expected - 50 # Datafusion - Expected - 20 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 20 AS col0, 50 AS col0 FROM tab1 +---- +20 +20 +20 +50 +50 +50 query I rowsort SELECT col2 + + 84 AS col0 FROM tab0 @@ -46046,8 +46511,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT 24 + + + 65 + + 79 / 13 > + col0 # Datafusion - Expected - 53 # Datafusion - Expected - 88 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col0" at position 0 and "Int64\(53\) \- Int64\(\-67\) / Int64\(83\) \* Int64\(\-82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 AS col0, + 53 - - 67 / 83 * - 82 col0 FROM tab1 AS cor0 +---- +53 +53 +53 +88 +88 +88 query I rowsort SELECT ALL + 98 + + + 61 + - + 55 FROM tab1 @@ -46240,8 +46712,15 @@ SELECT + col0 + 46 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - -81 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, - col0 AS col0 FROM tab0 cor0 WHERE NOT col1 IS NULL +---- +-1 +-15 +-21 +-81 +-87 +-97 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -46506,8 +46985,15 @@ SELECT ALL + - col1 + col0 col0 FROM tab1 AS cor0 # Datafusion - Expected - 217 # Datafusion - Expected - 4013 # Datafusion - Expected - 205 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ Int64\(51\) \* cor0\.col1 AS col0" at position 0 and "cor0\.col0 \+ cor0\.col0 \- \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 + + 51 * + col1 AS col0, + col0 + col0 - - col1 AS col0 FROM tab2 AS cor0 +---- +143 +205 +217 +2687 +3503 +4013 query II rowsort SELECT + + col1 AS col2, + col2 * + ( col2 ) FROM tab2 AS cor0 @@ -46625,8 +47111,10 @@ SELECT + ( - col2 ) * + col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 854bd5a25327f38cbcf813e569305bc8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \+ \(\- tab0\.col1\) AS col0" at position 1 and "\(\- tab0\.col2\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col1, - 47 + - + ( + col1 ) col0, - col2 AS col0 FROM tab0 +---- +9 values hashing to d693dea5155f347362ad548bf865539e query II rowsort SELECT ALL col0, + 77 AS col1 FROM tab1 @@ -46769,8 +47257,15 @@ NULL # Datafusion - Expected - 24 # Datafusion - Expected - 96 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 AS col0, + 24 AS col0 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL +---- +24 +24 +24 +59 +68 +96 query I rowsort label-7721 SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE ( + col2 ) - - 79 BETWEEN NULL AND NULL @@ -47113,8 +47608,15 @@ SELECT DISTINCT - + 16 * + col1 FROM tab0 AS cor0 # Datafusion - Expected - 63 # Datafusion - Expected - -58 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col2 / Int64\(\-21\) \+ Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, col2 / - 21 + ( 64 ) col2 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +62 +63 +63 query II rowsort SELECT 89 * - col2, col0 AS col0 FROM tab1 @@ -47650,8 +48152,15 @@ SELECT - col2 FROM tab2 AS cor0 WHERE NOT col1 + - ( - col1 ) IS NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 AS col0 FROM tab1 cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT ( col2 ) * - col0 * - 15 AS col0 FROM tab2 AS cor0 @@ -48170,8 +48679,12 @@ 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\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT COUNT ( + + ( - col1 ) ) - + MAX ( DISTINCT 54 ) AS col1, SUM ( DISTINCT + - 23 ), + + COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab0 +---- +-23 +-51 +9 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE + 42 IS NOT NULL @@ -48408,8 +48921,15 @@ SELECT COUNT ( * ) + + 31 FROM tab2 # Datafusion - Expected - 24192 # Datafusion - Expected - 90 # Datafusion - Expected - 5310 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ tab1\.col0 AS col0" at position 0 and "tab1\.col1 \* tab1\.col2 \* Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + ( col0 ) AS col0, + col1 * + col2 * + ( 18 ) col0 FROM tab1 +---- +138 +24192 +5310 +57528 +65 +90 query II rowsort SELECT col2, + ( col1 ) FROM tab2 @@ -49082,8 +49602,15 @@ SELECT * FROM tab0 WHERE NOT - 75 * + - 77 > - 96 # Datafusion - Expected - -34 # Datafusion - Expected - 34 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "cor0\.col2 \+ \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 34 AS col2, col2 + + - col1 AS col2 FROM tab0 AS cor0 +---- +-11 +-34 +34 +34 +34 +98 query I rowsort label-8106 SELECT ( - MIN ( DISTINCT + col0 ) ) FROM tab0 AS cor0 @@ -50065,8 +50592,9 @@ SELECT ALL * FROM tab1 WHERE NOT NULL <= - + col2 + - col0 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 64 AS col1, - col0 AS col1 FROM tab2 WHERE NOT ( 6 ) IS NOT NULL +---- query I rowsort label-8276 SELECT ALL + CAST ( + + col0 AS INTEGER ) AS col2 FROM tab1 cor0 @@ -50271,8 +50799,11 @@ SELECT ALL 86 FROM tab1 WHERE ( + 92 ) IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(77\)\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( ALL 77 ) AS col2, + 27 AS col2 FROM tab1 +---- +27 +77 query I rowsort SELECT - - 68 FROM tab0 WHERE NOT - - col2 IS NULL @@ -51492,8 +52023,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) FROM tab0 cor0 +---- +-3 +-3 query I rowsort SELECT + ( 58 ) - + col0 FROM tab0 @@ -52992,8 +53526,11 @@ SELECT ALL * FROM tab1 cor0 WHERE 93 * col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-4\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 23 * - - COUNT ( * ) + + + COUNT ( * ) AS col1, COUNT ( * ) * - - 4 AS col1 FROM tab1 AS cor0 +---- +12 +72 query I rowsort label-8758 SELECT DISTINCT - COUNT ( ALL 75 ) col2 FROM tab0 AS cor0 @@ -53143,8 +53680,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) * - 91 AS col2, 1 AS col2 FROM tab2 AS cor0 +---- +1 +273 query I rowsort label-8784 SELECT MIN ( ALL - - 68 ) FROM tab1 @@ -53202,8 +53742,15 @@ SELECT * FROM tab2 AS cor0 WHERE NULL IS NULL OR NULL IS NULL # Datafusion - Expected - 87 # Datafusion - Expected - -918 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* Int64\(\-18\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * - 18 AS col2, + 87 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL +---- +-1530 +-1638 +-918 +87 +87 +87 query IIIIII rowsort SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NULL @@ -55350,8 +55897,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * + 24 = 88 + - - 84 / - 84 # Datafusion - Expected - 59 # Datafusion - Expected - -77 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( col1 ) AS col1, 59 AS col1 FROM tab2 cor0 +---- +-51 +-67 +-77 +59 +59 +59 query III rowsort label-9149 SELECT DISTINCT * FROM tab0 AS cor0 WHERE 91 * 71 > + CAST ( NULL AS INTEGER ) / 85 @@ -55731,8 +56285,11 @@ SELECT DISTINCT 92, 23 col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col2, 58 col2 FROM tab2 +---- +3 +58 query II rowsort SELECT DISTINCT + 72, + ( + col2 ) col1 FROM tab2 @@ -57270,8 +57827,15 @@ SELECT + CAST ( - col0 AS INTEGER ) col0 FROM tab1 # Datafusion - Expected - -64 # Datafusion - Expected - -75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, - col0 AS col2 FROM tab2 AS cor0 +---- +-46 +-46 +-64 +-64 +-75 +-75 query I rowsort label-9454 SELECT + + COUNT ( * ) * 44 AS col1 FROM tab2 AS cor0 @@ -57314,8 +57878,11 @@ SELECT ALL - SUM ( - col0 ) * 66 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 189 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 63 * + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab2 +---- +189 +3 query I rowsort SELECT DISTINCT ( ( - col2 ) ) AS col2 FROM tab0 @@ -57985,8 +58552,11 @@ 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 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 II valuesort SELECT ( - - 28 ) AS col2, + COUNT ( DISTINCT col2 ) col2 FROM tab2 +---- +28 +3 query II rowsort label-9580 SELECT DISTINCT - col0 / col2, 49 + + - 30 AS col1 FROM tab0 @@ -58189,8 +58759,15 @@ SELECT ALL + ( COUNT ( * ) ) AS col0 FROM tab0 cor0 # Datafusion - Expected - 57 # Datafusion - Expected - 58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 \+ Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, col2 + 17 col1 FROM tab2 AS cor0 +---- +23 +40 +40 +57 +58 +75 query I rowsort label-9614 SELECT DISTINCT - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * + 74 * COUNT ( + - 28 ) FROM tab1 AS cor0 @@ -58278,8 +58855,15 @@ SELECT ALL - ( 71 ) - col1 * - col0 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 5755 # Datafusion - Expected - 99 # Datafusion - Expected - -5397 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col0 \* \(\- Int64\(56\)\) \+ \(\- Int64\(\-34\)\) \+ cor0\.col1 \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, col0 * - + 56 + - - 34 + col1 * + col1 AS col0 FROM tab0 AS cor0 +---- +-4397 +-5397 +10 +47 +5755 +99 query II rowsort SELECT ALL + - 87 AS col2, + 79 FROM tab2 AS cor0 @@ -58292,8 +58876,9 @@ SELECT ALL + - 87 AS col2, + 79 FROM tab2 AS cor0 79 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab0\.col2\)\) AS col0" at position 0 and "\(\- tab0\.col1\) \* tab0\.col1 / \(\- tab0\.col2\) \* tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - ( + col2 ) AS col0, - ( ( + col1 ) ) * + + col1 / - + col2 * + col1 AS col0 FROM tab0 WHERE NOT NULL > NULL +---- query I rowsort label-9630 SELECT col0 / - 1 AS col0 FROM tab0 @@ -58376,8 +58961,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) AS col0, 58 col0 FROM tab2 AS cor0 +---- +-3 +58 query III rowsort SELECT * FROM tab1 cor0 WHERE NOT 33 - + - col1 BETWEEN ( + 81 + 63 ) AND NULL @@ -58565,8 +59153,11 @@ SELECT SUM ( ALL - - 13 ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-23\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, ( - 23 ) * COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +-3 +-69 query I rowsort label-9675 SELECT ALL - COUNT ( - - 18 ) FROM tab2 AS cor0 @@ -59213,8 +59804,15 @@ SELECT + col1 col2, col0 FROM tab2 AS cor0 # Datafusion - Expected - -75 # Datafusion - Expected - 96 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ cor0\.col1 \+ Int64\(68\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + + col2 ) + + col1 + + 68 AS col2, - col0 AS col2 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +105 +77 +96 query I rowsort SELECT DISTINCT 70 - + col2 FROM tab1 AS cor0 @@ -59312,8 +59910,15 @@ SELECT col0 * - 72 + + col2 * 47 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 90 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-90\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 90 col1, col2 AS col1 FROM tab1 AS cor0 +---- +59 +68 +90 +90 +90 +96 query II rowsort SELECT - col1, + col0 col1 FROM tab0 AS cor0 @@ -60488,8 +61093,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col2, 54 AS col2 FROM tab1 +---- +-3 +54 query I rowsort label-9994 SELECT + COUNT ( * ) * 43 AS col2 FROM tab2 diff --git a/data/sqlite/random/aggregates/slt_good_28.slt b/data/sqlite/random/aggregates/slt_good_28.slt index adbd87a..8dd8435 100644 --- a/data/sqlite/random/aggregates/slt_good_28.slt +++ b/data/sqlite/random/aggregates/slt_good_28.slt @@ -411,8 +411,10 @@ SELECT DISTINCT 0, - 79 * - col2 * - + ( - + 1 ) AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 5ddc949883661833c6913282f564d087 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - col0 AS col1, + col0 AS col1, col1 + - col2 * - + col2 * - col0 FROM tab1 AS cor0 +---- +9 values hashing to db00b79344d9574501720775e222f49c query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + 18 IS NULL @@ -674,8 +676,11 @@ SELECT DISTINCT col2 * - col0 * - col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 82 AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +3 +82 query I rowsort label-104 SELECT DISTINCT - 56 + - COUNT ( * ) * - - CAST ( + 25 AS INTEGER ) FROM tab0 @@ -706,8 +711,15 @@ SELECT ALL col0 * ( col2 ) - - col2 AS col2 FROM tab0 # Datafusion - Expected - -77 # Datafusion - Expected - 3886 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 * - + col1 AS col1, - col1 AS col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +1173 +3080 +3886 query I rowsort SELECT DISTINCT - col1 * - col1 - col1 * - col0 AS col1 FROM tab2 AS cor0 @@ -1135,8 +1147,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + - COUNT ( * ) AS col2, + MAX ( DISTINCT + - ( - - 79 ) ) - - ( + - 46 ) * 54 AS col2 FROM tab1 AS cor0 +---- +-2563 +-3 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT 41 + col1 <= - 20 @@ -1396,8 +1411,15 @@ SELECT + col0 FROM tab1 WHERE NOT - 38 / + + 28 * - col2 IS NOT NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1, col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query II rowsort SELECT - col1, 87 * - col0 AS col1 FROM tab0 @@ -1423,8 +1445,11 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 60 ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 4368 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(CAST\(cor0\.col1 AS Int32\)\) AS col1" at position 0 and "Int64\(\-91\) \* Int64\(\-48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + SUM ( ALL CAST ( col1 AS INTEGER ) ) AS col1, - 91 * - 48 AS col1 FROM tab1 cor0 +---- +4368 +66 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE + 89 IS NOT NULL @@ -1828,8 +1853,11 @@ SELECT DISTINCT * FROM tab0 WHERE NOT - col1 + + col2 + 20 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab0 +---- +3 +3 query I rowsort label-288 SELECT DISTINCT COUNT ( * ) * + - CAST ( NULL AS INTEGER ) FROM tab0 @@ -2873,8 +2901,15 @@ SELECT DISTINCT - col0 * - - col1 * - col2 FROM tab2 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 35 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 35 AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +14 +35 +35 +35 +47 +5 query I rowsort label-462 SELECT - MAX ( DISTINCT + col1 ) FROM tab1 cor0 @@ -2898,8 +2933,11 @@ SELECT DISTINCT - ( + col1 ) + - col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -195 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT tab2\.col1\)\) AS col2" at position 0 and "Int64\(\-8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( DISTINCT + col1 ) AS col2, - 8 AS col2 FROM tab2 +---- +-195 +-8 query I rowsort SELECT ALL - col1 + + + 62 AS col2 FROM tab2 WHERE NOT ( col2 * - + 60 IS NULL ) @@ -3047,8 +3085,9 @@ SELECT - 58 * - - col2 * - - 17 + - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0 -94670 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( col0 ) AS col0, ( ( + 82 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 + - 46 IS NOT NULL +---- query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) = col2 - col1 + - + col1 @@ -3361,8 +3400,11 @@ SELECT - col0 * - 15 + + col1 + ( - col0 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ \(\- CAST\(Int64\(22\) AS Int32\)\) AS col0" at position 0 and "sum\(\(\- Int64\(22\)\)\) / \(\- count\(DISTINCT tab2\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 + + - CAST ( + 22 AS INTEGER ) AS col0, SUM ( ALL - + 22 ) / - COUNT ( DISTINCT + + col1 ) AS col0 FROM tab2 +---- +22 +31 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE col0 NOT IN ( + col2, - col1, - 22 / col2 * - 56, col0, 99 + - + col2 ) @@ -3538,8 +3580,15 @@ SELECT * FROM tab2 WHERE NOT + 87 * 82 * - col0 <> + + col0 # Datafusion - Expected - -4624 # Datafusion - Expected - 66 # Datafusion - Expected - -9216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "tab1\.col2 \* \(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 66 AS col0, col2 * - col2 AS col0 FROM tab1 +---- +-3481 +-4624 +-9216 +66 +66 +66 query II rowsort SELECT ALL - col1, - col2 AS col2 FROM tab2 @@ -3861,8 +3910,15 @@ SELECT DISTINCT + col1 + + 17 FROM tab0 # Datafusion - Expected - -40 # Datafusion - Expected - -53 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \- tab2\.col0 AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 - col0 AS col1, - col2 AS col1 FROM tab2 +---- +-23 +-24 +-40 +-42 +-53 +-58 query II rowsort label-619 SELECT ALL + - col0 / + col1 AS col0, + col0 + + col0 FROM tab2 cor0 @@ -4272,8 +4328,15 @@ SELECT ALL col1, ( - + 92 ) * + 41 - 60 * - - col0 AS col0 FROM tab2 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 96 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col0, + col1 AS col0 FROM tab1 AS cor0 +---- +14 +47 +5 +59 +68 +96 query II rowsort SELECT ALL + 12, + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL @@ -4293,8 +4356,15 @@ SELECT ALL + 40 * + + col2 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - -97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, + col1 AS col2 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +1 +21 +81 query I rowsort SELECT DISTINCT - - col2 * + ( + 0 ) * - - col1 AS col1 FROM tab0 AS cor0 @@ -5761,8 +5831,15 @@ SELECT col1 * - + 71 * + + col2 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 61 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 61 AS col1, col2 AS col1 FROM tab0 AS cor0 +---- +10 +47 +61 +61 +61 +99 query I rowsort label-931 SELECT 55 * + MIN ( col0 ) / + + COUNT ( * ) + - + 82 AS col0 FROM tab1 @@ -6571,8 +6648,15 @@ SELECT - 69 * + - col0 FROM tab1 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - 37 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-37\)\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 37 col1, - col0 col1 FROM tab2 cor0 +---- +-46 +-64 +-75 +37 +37 +37 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + + 1 + - col0 * - col0 + + - col2 - col1 = ( - 90 ) @@ -6822,8 +6906,15 @@ SELECT ALL + 64 * + COUNT ( ALL col0 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 5969 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col1 \+ cor0\.col2 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 * + col1 + + col2 AS col2, col1 AS col2 FROM tab2 AS cor0 +---- +2624 +4547 +51 +5969 +67 +77 query I rowsort SELECT DISTINCT - - 0 AS col2 FROM tab0 AS cor0 @@ -6957,8 +7048,15 @@ SELECT DISTINCT + + ( 21 ) - COUNT ( * ) + 53 + - COUNT ( * ) * + CAST ( - 72 AS # Datafusion - Expected - -68 # Datafusion - Expected - -4543 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \- \(\- cor0\.col1\) \+ cor0\.col0 \- cor0\.col2 \* Int64\(47\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 - ( - + col1 ) + + col0 - col2 * + + 47 AS col1, - col2 AS col1 FROM tab1 AS cor0 +---- +-2742 +-3126 +-4543 +-59 +-68 +-96 query I rowsort label-1121 SELECT ALL - + COUNT ( DISTINCT - - col2 ) FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) > NULL @@ -8065,8 +8163,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT ( + 93 ) <> ( NULL ) # Datafusion - Expected - -58 # Datafusion - Expected - -2387 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* Int64\(\-31\) AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * - 31 AS col1, - col2 AS col1 FROM tab2 +---- +-1581 +-2077 +-23 +-2387 +-40 +-58 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -8147,8 +8252,15 @@ SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + col2 * + col2 + # Datafusion - Expected - NULL # Datafusion - Expected - -99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +NULL +NULL +NULL query II rowsort SELECT col1, + col0 FROM tab2 cor0 @@ -9094,8 +9206,15 @@ SELECT DISTINCT - 73 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - 192 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ \(\- \(\- tab1\.col2\)\) AS col0" at position 0 and "tab1\.col0 \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + - - col2 AS col0, + col0 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 +---- +118 +136 +192 +NULL +NULL +NULL query I rowsort label-1471 SELECT ALL + col0 / col2 + - ( col1 ) * - col2 AS col1 FROM tab2 @@ -9361,8 +9480,15 @@ SELECT ALL + + ( + ( - col2 ) ) FROM tab0 AS cor0 # Datafusion - Expected - 4489 # Datafusion - Expected - NULL # Datafusion - Expected - 5929 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \+ CAST\(NULL AS Int32\) / \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 \* CAST\(cor0\.col1 AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 10 + CAST ( NULL AS INTEGER ) / - + col1 AS col2, col1 * + CAST ( col1 AS INTEGER ) col2 FROM tab2 AS cor0 +---- +2601 +4489 +5929 +NULL +NULL +NULL query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + col0 IS NULL ) @@ -9821,8 +9947,15 @@ SELECT col0 FROM tab1 AS cor0 WHERE NOT col0 <= + col2 # Datafusion - Expected - 35 # Datafusion - Expected - -777 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* \(\- cor0\.col1\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 * - col1 AS col0, 35 AS col0 FROM tab0 AS cor0 +---- +-2997 +-37 +-777 +35 +35 +35 query I rowsort SELECT - col2 FROM tab0 AS cor0 WHERE NOT NULL < 33 + + 65 + + + col1 * + + col2 @@ -10887,8 +11020,15 @@ SELECT ALL - CAST ( + - 16 AS INTEGER ) * + col2 - col2 + + - col0, + 76 * + + c # Datafusion - Expected - 77 # Datafusion - Expected - 96 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- CAST\(Int64\(\-77\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, - CAST ( - 77 AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +59 +68 +77 +77 +77 +96 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col1 AND - - col0 @@ -11082,8 +11222,15 @@ SELECT col0 + + col0 * + col1 + + col0 + + CAST ( - 59 AS INTEGER ) FROM tab1 # Datafusion - Expected - 58 # Datafusion - Expected - 78 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 / tab2\.col0 \+ tab2\.col1 AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 / + + col0 + + + col1 AS col1, col2 AS col1 FROM tab2 +---- +23 +40 +52 +58 +67 +78 query I rowsort label-1805 SELECT DISTINCT col0 + + - ( - col0 ) / - col1 FROM tab0 @@ -11111,8 +11258,15 @@ SELECT + 71 / - COUNT ( * ) * + - COUNT ( DISTINCT 70 ) FROM tab1 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 60 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "cor0\.col0 \+ \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 60 AS col1, + col0 + - col0 AS col1 FROM tab2 AS cor0 +---- +0 +0 +0 +60 +60 +60 query I rowsort SELECT col1 * - + col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL @@ -11729,8 +11883,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= col2 / col2 # Datafusion - Expected - 295 # Datafusion - Expected - -6188 # Datafusion - Expected - 3196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col0 AS col1" at position 0 and "cor0\.col1 \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 * ( + col0 ) AS col1, col1 * col2 AS col1 FROM tab1 AS cor0 +---- +-4896 +-5015 +-6188 +1344 +295 +3196 query III rowsort SELECT * FROM tab0 WHERE + + 99 IS NULL @@ -12270,8 +12431,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( col1 ) AS col1, - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 +---- +77 +9 query I rowsort SELECT DISTINCT - 78 + col2 FROM tab2 @@ -13122,8 +13286,15 @@ SELECT + col1 - - + col0 * - - col0 FROM tab2 AS cor0 # Datafusion - Expected - -8613 # Datafusion - Expected - 45 # Datafusion - Expected - -950600 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "cor0\.col0 \+ cor0\.col2 \* cor0\.col2 \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 45 AS col1, col0 + col2 * col2 * + - col0 AS col1 FROM tab0 AS cor0 +---- +-33120 +-8613 +-950600 +45 +45 +45 query I rowsort label-2144 SELECT - - col1 / - 1 + - 2 AS col1 FROM tab2 AS cor0 @@ -13406,8 +13577,10 @@ SELECT ALL COUNT ( * ) + - 66 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to e96b6fb02145eeec9ba70fa6e9d922b1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(9\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 79 * + 9 + - CAST ( NULL AS INTEGER ) AS col0, + col0 * + 46, - col1 AS col0 FROM tab0 +---- +9 values hashing to f8b1a062471bc2e4c1a5132677cb1009 query I rowsort label-2192 SELECT COUNT ( + + 48 ) + + MIN ( DISTINCT col2 ) AS col1 FROM tab0 @@ -13647,8 +13820,11 @@ SELECT DISTINCT * FROM tab1 WHERE NOT - ( + + col1 ) - + 12 * + + col0 + - 0 IS # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 +---- +3 +3 query I rowsort SELECT DISTINCT 89 * col1 AS col0 FROM tab0 AS cor0 @@ -14914,8 +15090,15 @@ SELECT DISTINCT - 25 AS col1, 16 * + 24 + - col2 + + + 46 FROM tab0 AS cor0 # Datafusion - Expected - 3080 # Datafusion - Expected - 11 # Datafusion - Expected - 3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "cor0\.col1 \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 11 AS col1, + col1 * col2 AS col1 FROM tab2 AS cor0 +---- +11 +11 +11 +1173 +3080 +3886 query I rowsort SELECT - col0 * + 67 AS col0 FROM tab2 @@ -15615,8 +15798,15 @@ SELECT col1 * + col1 FROM tab2 AS cor0 WHERE NOT 45 BETWEEN + - col1 + - 78 * 43 # Datafusion - Expected - 115 # Datafusion - Expected - -4320 # Datafusion - Expected - 110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* \(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col1 \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 45 * - + col2 AS col0, col1 + + col2 AS col0 FROM tab1 cor0 +---- +-2655 +-3060 +-4320 +110 +115 +64 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT col2 < ( col1 - col2 + 22 + - 35 * + 15 ) @@ -16305,8 +16495,15 @@ SELECT col1 * - - 66 AS col2 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col1, col0 col1 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query III rowsort SELECT * FROM tab0 cor0 WHERE NOT + col0 IN ( + 10 - col0, + 82, + col0 ) @@ -17070,8 +17267,10 @@ SELECT ALL + ( - col2 ) / - + col0 + + 84 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 8d7a2d0e8ae0e6021d96efb1888e66d7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 1 and "\(\- \(\- tab1\.col0\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + col0, CAST ( NULL AS INTEGER ) AS col2, - - col0 AS col2 FROM tab1 +---- +9 values hashing to 3bf3ab2ee866b85086e32b3888e33509 query I rowsort SELECT col0 + - 65 AS col1 FROM tab1 @@ -17184,8 +17383,10 @@ SELECT DISTINCT - col0 - + - ( + col2 ) FROM tab2 WHERE + col1 / col2 * - ( - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to ed615987b05d7298d280cfeb697c8f0b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 16 AS col0, 41 AS col0 FROM tab0, tab1 AS cor0 +---- +18 values hashing to 0c7fcb257ef72df8e7f8b8107b9f468b query I rowsort label-2815 SELECT DISTINCT 92 + - - ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 @@ -17357,8 +17558,15 @@ NULL # Datafusion - Expected - 11 # Datafusion - Expected - 58 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col1" at position 0 and "Int64\(60\) \+ Int64\(\-49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col2 AS col1, + 60 + - 49 AS col1 FROM tab2 cor0 +---- +11 +11 +11 +23 +40 +58 query I rowsort label-2841 SELECT DISTINCT - + col2 / + col0 AS col2 FROM tab2 AS cor0 @@ -17368,8 +17576,11 @@ SELECT DISTINCT - + col2 / + col0 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + COUNT ( * ) col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +-3 +3 query III rowsort SELECT ALL * FROM tab2 WHERE ( col2 = + 43 ) @@ -17398,8 +17609,15 @@ SELECT MIN ( - col2 ) FROM tab1 AS cor0 WHERE NOT - 54 BETWEEN - ( - col2 ) + - # Datafusion - Expected - -17 # Datafusion - Expected - 44 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-44\)\) AS col1" at position 0 and "Int64\(\-17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 44 ) AS col1, - 17 AS col1 FROM tab0 AS cor0 +---- +-17 +-17 +-17 +44 +44 +44 query I rowsort label-2848 SELECT ALL - + MAX ( DISTINCT + col1 ) FROM tab1 AS cor0 @@ -18129,8 +18347,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) + - COUNT ( * ) AS col2, MIN ( + - 33 ) AS col2 FROM tab1 +---- +-33 +-6 query I rowsort label-2972 SELECT 54 + - - COUNT ( * ) * - COUNT ( * ) * - - ( + 46 ) col2 FROM tab2 @@ -18452,8 +18673,15 @@ SELECT ALL + + col1 * - col1 + + - col1 FROM tab1 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col0, col2 AS col0 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query II rowsort SELECT - - col0, 93 AS col2 FROM tab2 AS cor0 @@ -18468,8 +18696,11 @@ SELECT - - col0, 93 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 38 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + 17 + - - 4 > ( NULL ) +---- +-38 +0 query I rowsort label-3026 SELECT ALL + col1 / + col1 + + col2 * - 10 * col1 * + 62 AS col2 FROM tab0 AS cor0 @@ -18587,8 +18818,15 @@ SELECT ALL - - col1 AS col2, + ( - - col0 ) FROM tab1 AS cor0 # Datafusion - Expected - 50 # Datafusion - Expected - -96 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(\-32\) \+ Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 AS col2, - 32 + + + 82 AS col2 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +50 +50 +50 query I rowsort label-3044 SELECT DISTINCT COUNT ( - - 34 ) * - 27 col1 FROM tab0 @@ -18710,8 +18948,11 @@ SELECT ALL 93 + + - COUNT ( * ) AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 25 AS col0, + ( + COUNT ( * ) ) AS col0 FROM tab1 +---- +-25 +3 query III rowsort SELECT * FROM tab0 WHERE ( + 86 / col1 ) IN ( + col1, col0, col2 ) @@ -18981,8 +19222,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT - col2 - + 53 - + - 7 * - ( + col0 ) * + 66 # Datafusion - Expected - -2560 # Datafusion - Expected - -58 # Datafusion - Expected - -4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "\(\- cor0\.col2\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, - col2 * + col0 AS col1 FROM tab2 cor0 +---- +-1058 +-23 +-2560 +-40 +-4350 +-58 query I rowsort SELECT ALL + - col1 * - col2 * col1 AS col1 FROM tab0 AS cor0 @@ -20226,8 +20474,9 @@ SELECT * FROM tab1 WHERE col1 BETWEEN NULL AND + - ( - + 94 ) - 17 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, col2 AS col2 FROM tab1 AS cor0 WHERE col0 * col1 NOT BETWEEN + ( + + col0 ) AND NULL +---- query I rowsort label-3313 SELECT 94 / + + col2 + col0 * - col2 FROM tab2 @@ -20678,8 +20927,15 @@ SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( 45 ) AND ( + col2 ) + col1 / # Datafusion - Expected - -44 # Datafusion - Expected - 89 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col0" at position 0 and "Int64\(\-44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 89 AS col0, - 44 AS col0 FROM tab0 AS cor0 +---- +-44 +-44 +-44 +89 +89 +89 query I rowsort label-3394 SELECT - - COUNT ( * ) + - ( - + SUM ( ALL + ( - col1 ) ) ) col1 FROM tab2 AS cor0 @@ -21345,8 +21601,15 @@ SELECT DISTINCT ( COUNT ( * ) ) / - COUNT ( * ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - 4 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 4 AS col1, + ( - col2 ) AS col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +4 +4 +4 query I rowsort label-3508 SELECT MAX ( DISTINCT + - col1 ) AS col1 FROM tab2 @@ -21646,8 +21909,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * 92 AS col0, 38 AS col0 FROM tab2 AS cor0 +---- +-276 +38 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN col1 / - col2 + + - col2 + + col1 AND NULL @@ -22853,8 +23119,15 @@ SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 + - - col1 IS NULL # Datafusion - Expected - -40 # Datafusion - Expected - -58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col2" at position 0 and "\(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col2, - col2 AS col2 FROM tab2 +---- +-23 +-23 +-40 +-40 +-58 +-58 query I rowsort SELECT ALL 55 * - - 10 AS col2 FROM tab1 WHERE NOT + 7 IS NULL @@ -22964,8 +23237,15 @@ SELECT DISTINCT * FROM tab0 WHERE - ( - col2 ) IS NULL # Datafusion - Expected - 0 # Datafusion - Expected - 9604 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* tab0\.col0 \+ tab0\.col1 AS col1" at position 0 and "Int64\(33\) / \(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * col0 + col1 AS col1, 33 / - col0 col1 FROM tab0 +---- +-2 +0 +0 +786 +891 +9604 query I rowsort label-3770 SELECT ALL 40 + + + 87 * + - COUNT ( ALL col2 ) AS col2 FROM tab0 @@ -23707,8 +23987,9 @@ SELECT 88 AS col0, col2 col1 FROM tab2 58 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 97 AS col0, 82 AS col0 FROM tab0 AS cor0 WHERE + col2 IS NULL +---- query I rowsort SELECT - - col0 + - col0 * + 27 + - + 37 * ( - - 10 ) + - - 89 FROM tab2 cor0 @@ -23842,8 +24123,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ) # Datafusion - Expected - 4624 # Datafusion - Expected - -96 # Datafusion - Expected - 9216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col2 \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, col2 * + + col2 AS col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +3481 +4624 +9216 query II rowsort SELECT - 66, 47 AS col2 FROM tab0 AS cor0 @@ -24940,8 +25228,15 @@ NULL # Datafusion - Expected - 5 # Datafusion - Expected - -5545 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* Int64\(72\) \+ cor0\.col1 / \(\- cor0\.col1\) AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col1 * 72 + + col1 / + - col1 AS col0, + 5 col0 FROM tab2 AS cor0 +---- +-3673 +-4825 +-5545 +5 +5 +5 query II rowsort label-4091 SELECT DISTINCT col2 / + col1 + col1 * col1 AS col1, + col0 FROM tab0 AS cor0 @@ -26364,8 +26659,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( + col0 IS NULL ) ) # Datafusion - Expected - 10 # Datafusion - Expected - -9409 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* tab0\.col0 AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * + + col0 AS col1, col2 AS col1 FROM tab0 +---- +-225 +-7569 +-9409 +10 +47 +99 query II rowsort SELECT DISTINCT col2 * + - 42 AS col0, col0 AS col1 FROM tab2 @@ -26384,8 +26686,11 @@ SELECT ALL * FROM tab1 WHERE NOT ( ( NOT - col2 > NULL ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, ( 3 ) AS col2 FROM tab0 +---- +3 +3 query I rowsort label-4334 SELECT ( - + col2 ) / - - 12 - + col2 FROM tab0 @@ -26722,8 +27027,9 @@ SELECT ALL - 4, - col1 AS col0 FROM tab1 AS cor0 -5 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, - col2 AS col0 FROM tab0 WHERE + col1 IS NULL +---- query I rowsort label-4389 SELECT MIN ( DISTINCT - col0 ) * - COUNT ( * ) FROM tab0 @@ -27983,8 +28289,15 @@ NULL # Datafusion - Expected - -3 # Datafusion - Expected - 42 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ tab0\.col1 AS col1" at position 0 and "tab0\.col0 / Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + col1 AS col1, col0 / + - 30 AS col1 FROM tab0 +---- +-2 +-3 +0 +162 +2 +42 query I rowsort SELECT DISTINCT col1 * - col2 + + + 98 AS col1 FROM tab1 @@ -28036,8 +28349,15 @@ SELECT ALL + col2 + - ( + 64 ) + - - 15 FROM tab0 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + col2 ) AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-4595 SELECT DISTINCT + - COUNT ( * ) - + + COUNT ( DISTINCT - 93 ) col0 FROM tab1 AS cor0 WHERE + col2 IS NULL @@ -28398,8 +28718,15 @@ SELECT 41 * + 91 AS col1 FROM tab1 # Datafusion - Expected - 14 # Datafusion - Expected - 767 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* Int64\(13\) AS col0" at position 0 and "tab2\.col0 \- Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 * + 13 AS col0, col0 - 61 AS col0 FROM tab2 +---- +-15 +14 +3 +767 +767 +767 query II rowsort SELECT DISTINCT - 58 + 19, 94 AS col2 FROM tab1 @@ -29031,8 +29358,11 @@ SELECT DISTINCT + col2 * + 13 - + col2 FROM tab1 WHERE NOT + + col0 <= ( + 25 * # 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\(tab2\.col1\) AS col1" at position 0 and "Int64\(\-68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( ALL + col1 ) AS col1, - 68 AS col1 FROM tab2 +---- +-68 +3 query I rowsort label-4759 SELECT DISTINCT - 23 * COUNT ( * ) AS col2 FROM tab0 @@ -29758,8 +30088,11 @@ SELECT ALL ( + - COUNT ( DISTINCT + col0 ) ) * ( + 38 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2900 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT \(\- tab2\.col2\)\)\) \* Int64\(50\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MIN ( DISTINCT - col2 ) * 50 AS col2, 36 AS col2 FROM tab2 +---- +2900 +36 query II rowsort SELECT ALL + col0, 73 + col0 * + col2 col1 FROM tab1 @@ -29985,8 +30318,15 @@ SELECT DISTINCT col0 * + - ( col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col1 AS Int32\)" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( + col1 AS INTEGER ), ( + col1 ) FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-4915 SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IS NULL @@ -30246,8 +30586,15 @@ SELECT - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) / + 51 FROM tab2 AS co # Datafusion - Expected - 10 # Datafusion - Expected - -81 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, col2 AS col1 FROM tab0 cor0 WHERE NULL IS NULL +---- +-1 +-21 +-81 +10 +47 +99 query I rowsort SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE col2 + col1 IS NULL @@ -31254,8 +31601,15 @@ SELECT - col2 * 40 * - - col0 AS col2 FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, col2 col0 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-5121 SELECT COUNT ( * ) + + - 49 FROM tab0 cor0 @@ -31294,8 +31648,15 @@ SELECT ALL + col1 FROM tab2 WHERE + col0 IS NOT NULL # Datafusion - Expected - -43 # Datafusion - Expected - 50 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* \(\- tab1\.col1\) AS col2" at position 0 and "Int64\(\-43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 * - col1 AS col2, - 43 AS col2 FROM tab1 +---- +-43 +-43 +-43 +140 +470 +50 query I rowsort label-5127 SELECT ALL - COUNT ( DISTINCT - 91 ) / + COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0 @@ -31419,8 +31780,15 @@ SELECT ALL 49 * + ( + - 36 ) AS col1 FROM tab1 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, + ( col1 ) FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-5148 SELECT + 91 / + COUNT ( * ) AS col1 FROM tab0 WHERE col2 NOT IN ( + 61 * + 78 ) @@ -34997,8 +35365,15 @@ SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE NOT ( col2 + 28 IS NULL ) # Datafusion - Expected - -67 # Datafusion - Expected - -1925 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* \(\- tab2\.col1\) AS col1" at position 0 and "\(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 * - col1 AS col1, - col1 AS col1 FROM tab2 +---- +-1275 +-1675 +-1925 +-51 +-67 +-77 query I rowsort SELECT + + 76 * + col1 AS col1 FROM tab0 WHERE NOT ( NULL = + ( 77 ) ) @@ -35219,8 +35594,10 @@ SELECT ALL - 91, + 93 AS col1 FROM tab0 cor0 WHERE NOT + col2 * - 99 IN ( + 7 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 52cda33a9cd06804c6aff22f5c5d740c -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col1, col1, + + 98 FROM tab2 +---- +9 values hashing to f1de8421760d41738fb7ee24a1be4968 query I rowsort SELECT col1 + + col1 + + col0 AS col1 FROM tab2 @@ -35362,8 +35739,11 @@ SELECT DISTINCT + col1, + col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 6 col2, 48 AS col2 FROM tab1 +---- +-6 +48 query II rowsort label-5802 SELECT ALL + CAST ( - MAX ( ALL col0 ) AS INTEGER ), 59 + - - 3 - - - 44 AS col2 FROM tab1 AS cor0 WHERE + 67 < col1 @@ -35928,8 +36308,15 @@ SELECT ALL - 81 * - SUM ( - 37 ) FROM tab0 AS cor0 # Datafusion - Expected - -59 # Datafusion - Expected - 91 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + - col0 ) AS col1, - col2 AS col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +51 +85 +91 query I rowsort SELECT 75 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL @@ -36116,8 +36503,15 @@ SELECT ALL + COUNT ( * ) - COUNT ( col0 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -295 # Datafusion - Expected - -55 # Datafusion - Expected - -3196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \- Int64\(66\) AS col0" at position 0 and "cor0\.col1 \* \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 11 - 66 col0, col1 * - col2 AS col0 FROM tab1 AS cor0 +---- +-1344 +-295 +-3196 +-55 +-55 +-55 query I rowsort SELECT + col2 - - col1 + + col1 FROM tab2 AS cor0 @@ -36151,8 +36545,11 @@ SELECT + - 43, col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- min\(\(\- cor0\.col0\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, - MIN ( ALL - col0 ) col2 FROM tab2 AS cor0 +---- +3 +75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 @@ -36405,8 +36802,15 @@ SELECT ALL 67 * - + 95 * - col1 FROM tab0 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + + col0 ), col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT ALL - ( - 28 ) FROM tab2 AS cor0 @@ -36488,8 +36892,15 @@ NULL # Datafusion - Expected - -42 # Datafusion - Expected - 97 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(\-42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, - 42 AS col2 FROM tab0 +---- +-42 +-42 +-42 +15 +87 +97 query I rowsort SELECT ALL 36 * + + col1 AS col2 FROM tab2 @@ -36572,8 +36983,11 @@ SELECT ALL - - 59 * 42 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 207 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(76\)\) \+ Int64\(68\) \* count\(\(\- Int64\(62\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(80\) \+ \(\- count\(DISTINCT \(\- cor0\.col1\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( ALL 76 ) + 68 * + COUNT ( - + 62 ) col0, CAST ( NULL AS INTEGER ) / - COUNT ( * ) * 80 + + - COUNT ( DISTINCT - col1 ) AS col0 FROM tab1 cor0 +---- +207 +NULL query I rowsort SELECT + col2 + + ( + 69 ) AS col1 FROM tab0 AS cor0 @@ -37068,7 +37482,7 @@ SELECT ALL + col1, - 40 + 96 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to fe3b5c02a824e9abf82dbeaf51c3cf9b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col0 AS Int32\) \+ Int64\(8\) AS col2" at position 1 and "tab0\.col1 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Schema error: Schema contains qualified field name tab0\.col2 and unqualified field name col2 which would be ambiguous SELECT col2 AS col2, + CAST ( + col0 AS INTEGER ) + 8 AS col2, + col1 AS col2 FROM tab0 query III rowsort @@ -37690,8 +38104,15 @@ SELECT DISTINCT 46 * - col1 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -5 # Datafusion - Expected - -6 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) / cor0\.col1 AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 / + + col1 col1, - col1 AS col1 FROM tab1 AS cor0 +---- +-1 +-11 +-14 +-47 +-5 +-6 query III rowsort label-6189 SELECT * FROM tab2 AS cor0 WHERE - 15 * + + 61 NOT IN ( + 58 * + CAST ( 12 AS INTEGER ) * col0 ) @@ -39133,8 +39554,15 @@ SELECT DISTINCT + + col1 - - 43 FROM tab0 AS cor0 # Datafusion - Expected - -59 # Datafusion - Expected - 3129 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \- cor0\.col1 \* \(\- cor0\.col2\) \- cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 - col1 * - col2 - col2 AS col0, - col2 AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +1249 +237 +3129 query I rowsort SELECT ALL - col0 FROM tab2 AS cor0 WHERE col1 = + - 42 @@ -39370,8 +39798,15 @@ SELECT col1 * + ( + col2 ) + col1 AS col2 FROM tab0 # Datafusion - Expected - -83 # Datafusion - Expected - 43 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT ALL + 43 AS col0, - 83 AS col0 FROM tab2 +---- +-83 +-83 +-83 +43 +43 +43 query I rowsort label-6455 SELECT - COUNT ( * ) + - - 83 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL @@ -39515,8 +39950,15 @@ SELECT ALL * FROM tab2 WHERE ( 6 ) < NULL # Datafusion - Expected - -99 # Datafusion - Expected - 75 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(\-99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, - 99 col1 FROM tab2 AS cor0 +---- +-99 +-99 +-99 +46 +64 +75 query I rowsort SELECT - ( col2 ) * + 14 AS col0 FROM tab1 AS cor0 @@ -39648,8 +40090,15 @@ SELECT ALL - 4 FROM tab0 WHERE ( + col2 ) <= + col2 # Datafusion - Expected - 0 # Datafusion - Expected - -91 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col2" at position 0 and "Int64\(54\) / \(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, 54 / - col2 AS col2 FROM tab1 +---- +-51 +-85 +-91 +0 +0 +0 query II rowsort label-6500 SELECT DISTINCT COUNT ( * ), - COUNT ( * ) AS col2 FROM tab1 @@ -40650,8 +41099,15 @@ SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN col0 - - 43 + - # Datafusion - Expected - -21 # Datafusion - Expected - 50 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 50 AS col1, - ( + col1 ) AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +50 +50 +50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 @@ -40660,8 +41116,15 @@ SELECT DISTINCT 50 AS col1, - ( + col1 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - 58 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, - col0 AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +23 +40 +58 query I rowsort label-6671 SELECT - 4 * - CAST ( NULL AS INTEGER ) * + col2 + - col1 + + 85 AS col0 FROM tab0 AS cor0 @@ -40711,8 +41174,12 @@ NULL # Datafusion - Expected - 9 # Datafusion - Expected - 96 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(max\(cor0\.col2\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL COUNT ( * ) * + COUNT ( * ) AS col2, + CAST ( MAX ( + col2 ) AS INTEGER ) AS col2, + - 13 FROM tab1 AS cor0 +---- +-13 +9 +96 query I rowsort SELECT col1 * + col2 + ( col0 ) + + col2 AS col2 FROM tab1 AS cor0 @@ -40842,8 +41309,15 @@ SELECT DISTINCT - 11 / col2 AS col0 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \- CAST\(NULL AS Float64\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT 81 - CAST ( NULL AS FLOAT8 ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 +---- +NULL +NULL +NULL +NULL +NULL +NULL query I rowsort label-6700 SELECT - MAX ( - + CAST ( + col1 AS INTEGER ) ) FROM tab2 AS cor0 @@ -41342,8 +41816,15 @@ SELECT + - 46 * - col0 + + col0 + col1, col0 AS col1 FROM tab2 WHERE NOT 91 * + # Datafusion - Expected - 2 # Datafusion - Expected - -77 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, 2 AS col2 FROM tab2 +---- +-51 +-67 +-77 +2 +2 +2 query II rowsort label-6781 SELECT - COUNT ( * ), - 4 AS col0 FROM tab2 @@ -41978,8 +42459,9 @@ SELECT ALL col2 FROM tab2 AS cor0 WHERE - 83 * 76 * - 83 IS NOT NULL 58 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \- Int64\(11\) AS col1" at position 0 and "Int64\(\-34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 42 - + 11 AS col1, - 34 col1 FROM tab0 cor0 WHERE NOT NULL < NULL +---- query I rowsort SELECT ALL 13 * + - col1 + 68 + 47 - + col0 FROM tab1 AS cor0 @@ -43035,8 +43517,15 @@ SELECT ALL + col0 * - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) = col2 + - 41 # Datafusion - Expected - 50 # Datafusion - Expected - 52 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-52\)\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 52 col0, 50 col0 FROM tab2 AS cor0 +---- +50 +50 +50 +52 +52 +52 query I rowsort SELECT ALL - col1 * - + col1 FROM tab1 AS cor0 @@ -43129,8 +43618,15 @@ SELECT ALL - - col0, + 57 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 31 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 AS col2, col0 AS col2 FROM tab1 AS cor0 +---- +31 +31 +31 +51 +85 +91 query IIIIII rowsort SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE 83 IS NOT NULL @@ -43462,8 +43958,9 @@ SELECT * FROM tab0 AS cor0 WHERE - col1 IN ( - CAST ( + 97 AS INTEGER ) / + - co ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* Int64\(\-13\) AS col1" at position 0 and "tab0\.col1 \+ Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 * - 13 AS col1, col1 + 52 AS col1 FROM tab0 WHERE NOT ( + + ( - CAST ( NULL AS INTEGER ) ) ) IS NULL +---- query III rowsort label-7128 SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= CAST ( + - 47 AS INTEGER ) @@ -43965,8 +44462,15 @@ SELECT * FROM tab0 WHERE + col2 + col0 * + + col2 IS NULL # Datafusion - Expected - -7189 # Datafusion - Expected - -5 # Datafusion - Expected - -6715 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(\-79\) \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 AS col2, - 79 * + col0 AS col2 FROM tab1 AS cor0 +---- +-14 +-4029 +-47 +-5 +-6715 +-7189 query I rowsort label-7214 SELECT ALL - ( - ( - + CAST ( + COUNT ( * ) AS INTEGER ) ) ) + - 54 FROM tab1 cor0 WHERE NOT - col0 - 43 + + 1 BETWEEN - + 11 + - + col0 / - ( - col2 ) AND - ( + 72 ) * - 26 * - 56 @@ -44311,8 +44815,15 @@ SELECT - COUNT ( * ) AS col1, COUNT ( * ) - - 37 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - 4725 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* cor0\.col0 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 63 * + + col0 AS col0, col1 AS col0 FROM tab2 AS cor0 +---- +2898 +4032 +4725 +51 +67 +77 query II rowsort SELECT ALL col2, 29 FROM tab0 cor0 @@ -44352,8 +44863,11 @@ SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) / 85 col2 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 73 col0, COUNT ( * ) col0 FROM tab0 AS cor0 +---- +3 +73 query I rowsort SELECT + col2 * col0 * - col1 AS col1 FROM tab2 @@ -44458,8 +44972,15 @@ SELECT + col0 col0 FROM tab2 WHERE + CAST ( col1 AS INTEGER ) IS NOT NULL # Datafusion - Expected - -295 # Datafusion - Expected - 2 # Datafusion - Expected - -889 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \+ Int64\(44\) AS col1" at position 0 and "Int64\(\-18\) \* tab1\.col1 \+ \(\- Int64\(43\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 42 + 44 AS col1, - 18 * + + col1 + - + 43 AS col1 FROM tab1 +---- +-133 +-295 +-889 +2 +2 +2 query I rowsort SELECT ALL col0 - 91 FROM tab0 @@ -44890,8 +45411,15 @@ SELECT DISTINCT - 10 / - col1 AS col0 FROM tab1 # Datafusion - Expected - 7 # Datafusion - Expected - -91 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col0 col2, 7 AS col2 FROM tab1 cor0 +---- +-51 +-85 +-91 +7 +7 +7 query I rowsort label-7367 SELECT ALL - + 61 * COUNT ( * ) FROM tab2 AS cor0 WHERE - 4 + - + col1 IS NULL @@ -45593,8 +46121,11 @@ SELECT DISTINCT col0 + - 74 col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 57 AS col1, COUNT ( * ) AS col1 FROM tab2 +---- +3 +57 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -45891,8 +46422,9 @@ SELECT - + COUNT ( * ) AS col1, + COUNT ( * ) AS col2 FROM tab0 AS cor0 3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ cor0\.col0 \+ Int64\(\-73\) \* cor0\.col1 AS col1" at position 0 and "Int64\(\-2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 + + col0 + - 73 * + col1 AS col1, - 2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > col2 +---- query II rowsort SELECT - col1 col0, + col2 + - + col0 AS col2 FROM tab1 AS cor0 @@ -46147,8 +46679,9 @@ SELECT * FROM tab2 WHERE NOT NULL > - 20 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \+ CAST\(NULL AS Float64\) \- tab2\.col2 AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL col2 + CAST ( NULL AS FLOAT8 ) - + col2 AS col2, col0 col2 FROM tab2 WHERE NOT ( + + col2 ) * - + 30 <= + col0 +---- query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col0 + 24 ) IS NULL @@ -46398,8 +46931,11 @@ SELECT ALL + col0 + - col1 + 64 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 + - COUNT ( * ) AS col2, ( + COUNT ( * ) ) AS col2 FROM tab1 +---- +29 +3 query III rowsort SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - col1 AND + col2 @@ -46938,8 +47474,15 @@ SELECT - col1 AS col2 FROM tab0 WHERE + 69 BETWEEN - 24 + col2 AND 4 # Datafusion - Expected - 425 # Datafusion - Expected - 91 # Datafusion - Expected - 4277 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col0 \* \(\- tab1\.col0\) \* tab1\.col1 / \(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, + col0 * - + col0 * col1 / + - col0 AS col1 FROM tab1 +---- +425 +4277 +51 +714 +85 +91 query I rowsort label-7713 SELECT ALL + - 11 + COUNT ( * ) AS col1 FROM tab2 AS cor0 @@ -47305,8 +47848,15 @@ SELECT + + 82 + col2 - - col0 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col1, col1 col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query II rowsort label-7774 SELECT 88 * - col0, CAST ( NULL AS INTEGER ) col0 FROM tab0 WHERE NULL IS NULL @@ -48413,8 +48963,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 99 AS col1, - COUNT ( * ) AS col1 FROM tab2 +---- +-3 +99 query I rowsort label-7963 SELECT + + MAX ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0 @@ -48620,8 +49173,15 @@ SELECT + 12 / - ( col0 ) AS col1 FROM tab0 # Datafusion - Expected - -87 # Datafusion - Expected - 1 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) / Int64\(\-74\) AS col2" at position 0 and "Int64\(\-87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 78 / - 74 AS col2, - 87 AS col2 FROM tab0 +---- +-87 +-87 +-87 +1 +1 +1 query I rowsort SELECT DISTINCT - - 5 col2 FROM tab2 AS cor0 @@ -48919,8 +49479,15 @@ SELECT ALL + 90 * - col0 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* cor0\.col1 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + CAST ( NULL AS INTEGER ) * + col1 AS col2, + col0 AS col2 FROM tab2 AS cor0 +---- +46 +64 +75 +NULL +NULL +NULL query I rowsort SELECT 33 FROM tab2 cor0 WHERE ( NULL ) = - - col0 * 20 * + + 72 @@ -49697,8 +50264,11 @@ SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 * - - 78 AND col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) AS col0, 99 AS col0 FROM tab0 +---- +-9 +99 query I rowsort SELECT ALL + ( + col2 ) * + + 26 + col1 + + - 83 * + col2 col0 FROM tab0 @@ -49941,8 +50511,15 @@ SELECT DISTINCT COUNT ( + 31 ) - COUNT ( 66 ) AS col0 FROM tab2 # Datafusion - Expected - 295 # Datafusion - Expected - 6279 # Datafusion - Expected - 3196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \- \(\- tab1\.col2\) \* tab1\.col0 AS col0" at position 0 and "tab1\.col1 \* tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 - - col2 * + + col0 AS col0, col1 * + col2 AS col0 FROM tab1 +---- +1344 +295 +3196 +4947 +5100 +6279 query I rowsort label-8207 SELECT DISTINCT - 24 * + COUNT ( * ) AS col0 FROM tab1 @@ -50134,14 +50711,24 @@ SELECT DISTINCT - 47 / + - COUNT ( * ) FROM tab2 # Datafusion - Expected - 33 # Datafusion - Expected - 53 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 53 AS col2, 33 AS col2 FROM tab0 AS cor0 +---- +33 +33 +33 +53 +53 +53 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 88 col1, CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 +---- +-88 +NULL query I rowsort SELECT - col0 - - col0 + - + 97 + + col1 / + 89 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL @@ -50413,8 +51000,11 @@ SELECT + + col2 / + col2, col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT cor0\.col0\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MIN ( DISTINCT col0 ) AS col0, + COUNT ( * ) AS col0 FROM tab1 cor0 +---- +-51 +3 query I rowsort SELECT col1 * + col0 + - 69 * + + 56 AS col0 FROM tab0 cor0 @@ -51146,8 +51736,11 @@ SELECT DISTINCT + + col0 AS col0 FROM tab1 WHERE NOT ( NOT col0 + - col0 IS NOT # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- cor0\.col0\)\) AS col1" at position 0 and "Int64\(30\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MIN ( - col0 ) col1, 30 + COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +-75 +33 query III rowsort SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 * - + col0 IS NOT NULL @@ -51993,8 +52586,11 @@ SELECT ALL - SUM ( col2 ) AS col0 FROM tab2 # 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\(16\) AS col2" at position 0 and "Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 16 col2, ( + - 13 ) AS col2 FROM tab2 +---- +-13 +16 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -52007,8 +52603,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- tab1\.col2\)\) AS col1" at position 0 and "Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( - col2 ) AS col1, - 5 AS col1 FROM tab1 +---- +-5 +-59 query I rowsort SELECT ALL + col0 * - - col1 AS col0 FROM tab0 @@ -52566,8 +53165,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) col0, 23 AS col0 FROM tab2 +---- +-3 +23 query I rowsort label-8645 SELECT + col2 + + + col2 * - col1 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2 @@ -52732,8 +53334,15 @@ SELECT col1 FROM tab2 AS cor0 WHERE NOT ( 17 ) * + - col0 * col1 IS NULL # Datafusion - Expected - -3080 # Datafusion - Expected - -3886 # Datafusion - Expected - -2680 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col1 \* Int64\(\-40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * - col2 AS col0, + col1 * - 40 AS col0 FROM tab2 AS cor0 +---- +-1173 +-2040 +-2680 +-3080 +-3080 +-3886 query I rowsort SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT - ( + ( - 51 ) ) + + 61 IN ( - ( col1 ) ) @@ -52771,8 +53380,15 @@ SELECT + ( MIN ( + - col1 ) ) AS col2 FROM tab2 # Datafusion - Expected - -5461 # Datafusion - Expected - -65 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* Int64\(\-65\) AS col1" at position 0 and "tab0\.col1 \* \(\- Int64\(68\)\) \- \(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * - 65 col1, col1 * - + 68 - + - col2 AS col1 FROM tab0 +---- +-1365 +-1418 +-5265 +-5461 +-65 +31 query I rowsort SELECT col2 * 43 AS col0 FROM tab1 @@ -53058,8 +53674,15 @@ SELECT col2 AS col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL # Datafusion - Expected - -295 # Datafusion - Expected - -91 # Datafusion - Expected - -2773 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 \* Int64\(\-59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 AS col2, + col1 * - 59 AS col2 FROM tab1 AS cor0 +---- +-2773 +-295 +-51 +-826 +-85 +-91 query I rowsort SELECT DISTINCT + col0 * col0 + - col0 col2 FROM tab0 AS cor0 @@ -53096,8 +53719,15 @@ SELECT + MAX ( + col2 ) - + - 30 * + COUNT ( * ) AS col0 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \- tab0\.col2 AS col0" at position 0 and "Int64\(55\) \* \(\- CAST\(NULL AS Int32\)\) \* tab0\.col1 \+ \(\- \(\- tab0\.col2\)\) \- \(\- tab0\.col0\) \* \(\- tab0\.col1\) \+ \(\- tab0\.col1\) / Int64\(4\) \* tab0\.col1 \+ Int64\(\-58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 - + col2 AS col0, + 55 * - CAST ( NULL AS INTEGER ) * col1 + - - col2 - - col0 * - col1 + - col1 / + 4 * + col1 + - 58 AS col0 FROM tab0 +---- +0 +0 +0 +NULL +NULL +NULL query I rowsort label-8727 SELECT ALL ( + 40 ) - COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 @@ -53643,8 +54273,11 @@ SELECT - 12 AS col2, - col2 * - 77 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - -291 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "count\(\(\- \(\- tab1\.col1\)\)\) \* \(\- Int64\(97\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 AS col2, + COUNT ( - - col1 ) * - ( 97 ) AS col2 FROM tab1 +---- +-291 +70 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -53836,8 +54469,9 @@ SELECT + col2 * + - col1 + - 16 FROM tab2 AS cor0 -3902 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(26\)\) \+ \(\- \(\- tab2\.col2\)\) AS col0" at position 0 and "Int64\(29\) \- tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 26 + - - col2 AS col0, 29 - + + col1 AS col0 FROM tab2 WHERE NOT NULL BETWEEN + - col2 AND + 42 +---- query I rowsort SELECT + col2 + + + col0 AS col0 FROM tab2 WHERE NOT + + col1 <> - - col2 + + - col1 @@ -54013,8 +54647,15 @@ SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT ( - col0 + col2 ) IS NOT NULL # Datafusion - Expected - -40 # Datafusion - Expected - NULL # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 63 * - ( CAST ( NULL AS INTEGER ) ) AS col0, - col2 AS col0 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +NULL +NULL +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 @@ -54259,8 +54900,15 @@ SELECT 27 * - col0 + 52 * + - col0 col2 FROM tab0 # Datafusion - Expected - -98 # Datafusion - Expected - 97 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 col2, - 98 AS col2 FROM tab0 +---- +-98 +-98 +-98 +15 +87 +97 query I rowsort SELECT + col1 + - 80 * + - col2 col0 FROM tab1 @@ -54459,8 +55107,15 @@ SELECT ALL ( col2 ) col2 FROM tab2 WHERE NOT - 83 + + col0 IS NOT NULL # Datafusion - Expected - -68 # Datafusion - Expected - -714 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* \(\- tab1\.col0\) AS col1" at position 0 and "tab1\.col2 / tab1\.col0 \+ \(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + - col0 AS col1, col2 / col0 + - col2 AS col1 FROM tab1 +---- +-425 +-4277 +-59 +-68 +-714 +-95 query I rowsort label-8954 SELECT ALL + + ( + ( - 21 ) ) * 99 + COUNT ( * ) FROM tab1 WHERE NOT NULL < NULL @@ -54603,8 +55258,9 @@ SELECT - - ( + - col2 ) AS col2 FROM tab2 AS cor0 -58 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 74 ) AS col2, - col0 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2 * col2 ) +---- query I rowsort SELECT - col0 * + col2 + - + col0 AS col0 FROM tab1 WHERE - col0 IS NULL @@ -54788,8 +55444,15 @@ SELECT ALL - COUNT ( * ) * - + 20 AS col1 FROM tab1 # Datafusion - Expected - 5 # Datafusion - Expected - -3196 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* CAST\(\(\- tab1\.col1\) AS Int32\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * + CAST ( - + col1 AS INTEGER ) AS col0, col1 AS col0 FROM tab1 +---- +-1344 +-295 +-3196 +14 +47 +5 query II rowsort label-9006 SELECT DISTINCT - 9 AS col2, + 5 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 @@ -57241,8 +57904,9 @@ SELECT ALL 30 * - + COUNT ( * ) FROM tab1 -90 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 / Int64\(91\) AS col2" at position 0 and "tab0\.col1 \+ \(\- CAST\(Int64\(93\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col2 / + 91 col2, + col1 + + - CAST ( + 93 AS INTEGER ) AS col2, ( + col2 ) * - + 9 FROM tab0 WHERE NOT - - col2 IS NOT NULL +---- query I rowsort SELECT + 42 * + + 38 AS col0 FROM tab2 WHERE NOT NULL IS NULL @@ -58176,8 +58840,15 @@ SELECT DISTINCT - SUM ( - + 22 ) FROM tab1 # Datafusion - Expected - 108 # Datafusion - Expected - 81 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "tab0\.col0 \+ tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 col0, col0 + + col1 AS col0 FROM tab0 +---- +1 +108 +21 +81 +96 +98 query I rowsort label-9567 SELECT - MIN ( + + 84 ) FROM tab2 @@ -58191,8 +58862,15 @@ SELECT - MIN ( + + 84 ) FROM tab2 # Datafusion - Expected - 19 # Datafusion - Expected - 2 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 2 AS col2, + 19 AS col2 FROM tab0 +---- +19 +19 +19 +2 +2 +2 query I rowsort SELECT DISTINCT col0 * col2 * - col0 * + 13 FROM tab0 @@ -58320,8 +58998,10 @@ SELECT DISTINCT + 61 * + COUNT ( * ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 3e296d347d1003400e97646e345ca1b7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- Int64\(39\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - CAST ( NULL AS INTEGER ) col1, 4 AS col0, - ( + 39 ) AS col1 FROM tab2 +---- +9 values hashing to edb5a48d853dac0c5028f239f10f263f query I rowsort label-9592 SELECT - COUNT ( * ) + + 30 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 @@ -58386,8 +59066,11 @@ SELECT - SUM ( ALL + col0 ) AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(84\)\) AS col2" at position 0 and "Int64\(\-50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( 84 ) AS col2, + ( - 50 ) AS col2 FROM tab2 AS cor0 +---- +-50 +3 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE - 12 + 2 IS NULL @@ -58612,8 +59295,15 @@ SELECT ALL 44 FROM tab1 WHERE NOT + col1 IS NOT NULL # Datafusion - Expected - 97 # Datafusion - Expected - -705 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* \(\- tab0\.col0\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 * - col0 AS col1, col0 AS col1 FROM tab0 +---- +-4089 +-4559 +-705 +15 +87 +97 query I rowsort label-9641 SELECT + COUNT ( DISTINCT + + 83 ) AS col0 FROM tab2 @@ -59302,8 +59992,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, 24 AS col0 FROM tab1 +---- +-3 +24 query I rowsort SELECT DISTINCT - 56 FROM tab2 WHERE - ( 67 ) > + ( - 40 ) * - col1 + col0 @@ -59401,8 +60094,11 @@ SELECT ALL - 52 / + - col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - AVG ( + - CAST ( NULL AS INTEGER ) ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL +---- +0 +NULL query I rowsort SELECT ALL + col1 * - + 31 FROM tab1 @@ -59661,8 +60357,15 @@ SELECT DISTINCT col2 * 4 FROM tab0 cor0 # Datafusion - Expected - 87 # 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 "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 AS col2, col0 AS col2 FROM tab0 AS cor0 +---- +15 +17 +17 +17 +87 +97 query I rowsort SELECT ALL + col2 + - + col1 AS col0 FROM tab1 @@ -59738,8 +60441,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 40 AS col0, + COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +3 +40 query II rowsort SELECT DISTINCT + 98 AS col0, col1 AS col2 FROM tab2 AS cor0 @@ -60139,8 +60845,15 @@ SELECT ALL 68 * + col2 AS col1 FROM tab0 AS cor0 WHERE - col2 IS NULL # Datafusion - Expected - 0 # Datafusion - Expected - -75 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col0" at position 0 and "cor0\.col1 / \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 75 col0, col1 / - col0 AS col0 FROM tab0 AS cor0 +---- +-5 +-75 +-75 +-75 +0 +0 query II rowsort label-9902 SELECT ALL - COUNT ( * ) AS col2, 48 FROM tab2 AS cor0 @@ -60261,8 +60974,15 @@ SELECT - + 98 + + COUNT ( * ) col1 FROM tab2 AS cor0 # Datafusion - Expected - 1 # Datafusion - Expected - 722 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \* \(\- Int64\(\-46\)\) \+ Int64\(32\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - ( + + col0 ) * - - 46 + + 32 AS col0, col1 col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL +---- +1 +21 +4034 +4494 +722 +81 query I rowsort label-9923 SELECT ALL + CAST ( COUNT ( - + col2 ) AS INTEGER ) FROM tab2 cor0 diff --git a/data/sqlite/random/aggregates/slt_good_29.slt b/data/sqlite/random/aggregates/slt_good_29.slt index 717a20e..5a2be15 100644 --- a/data/sqlite/random/aggregates/slt_good_29.slt +++ b/data/sqlite/random/aggregates/slt_good_29.slt @@ -746,8 +746,15 @@ SELECT ALL + ( SUM ( DISTINCT col0 ) ) FROM tab0 # Datafusion - Expected - 14 # Datafusion - Expected - -81 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, + 14 AS col2 FROM tab0 +---- +-1 +-21 +-81 +14 +14 +14 query I rowsort label-118 SELECT ALL CAST ( - ( + col2 ) AS INTEGER ) FROM tab0 @@ -2185,8 +2192,15 @@ SELECT ALL 41 col2 FROM tab2 cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1, col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query II rowsort SELECT DISTINCT + - 80, - 76 AS col2 FROM tab0 AS cor0 @@ -2357,8 +2371,15 @@ SELECT DISTINCT COUNT ( * ) * - + MAX ( - col0 ) FROM tab0 AS cor0 # Datafusion - Expected - -33135 # Datafusion - Expected - -97 # Datafusion - Expected - -8700 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 \* cor0\.col2 \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col0 + - col2 AS col2, col0 * + col2 * + - col2 AS col2 FROM tab0 AS cor0 +---- +-196 +-33135 +-62 +-8700 +-950697 +-97 query I rowsort SELECT + ( col1 ) FROM tab2 WHERE - col2 IS NOT NULL @@ -2635,8 +2656,15 @@ SELECT - col1 FROM tab2 WHERE - + 81 <> + + col0 # Datafusion - Expected - NULL # Datafusion - Expected - 980 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \* \(\- cor0\.col1\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 70 * - ( + col1 ) col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 +---- +3290 +350 +980 +NULL +NULL +NULL query I rowsort SELECT + 40 col1 FROM tab1 cor0 @@ -2811,8 +2839,15 @@ SELECT 60 + COUNT ( * ) AS col2 FROM tab2 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, ( + + col0 ) AS col2 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-462 SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT - 44 IS NULL @@ -3303,8 +3338,15 @@ SELECT + 23 / - 95 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 AS col1, + col1 AS col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-540 SELECT + CAST ( + - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0 @@ -3444,8 +3486,10 @@ SELECT + + col0 / - 10 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a7839921009f442325b2696cb772dd0b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 / tab2\.col1 \+ tab2\.col2 AS col2" at position 1 and "Int64\(\-33\) / Int64\(52\) / Int64\(76\) \+ tab2\.col1 \+ tab2\.col2 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 79 + - col0 + - 44 AS col1, col0 / + col1 + col2 AS col2, + ( - 33 ) / 52 / + 76 + + col1 + col2 AS col2 FROM tab2 +---- +9 values hashing to 0223462602ad2897153cb7a8a2f5df55 query I rowsort label-563 SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 @@ -4039,8 +4083,15 @@ SELECT ( - col2 ) * - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( # Datafusion - Expected - 146 # Datafusion - Expected - -99 # Datafusion - Expected - 163 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(65\) \- \(\- cor0\.col0\) / cor0\.col1 \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, + ( 65 ) - - col0 / col1 + col1 AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +146 +163 +90 query I rowsort label-666 SELECT ALL - COUNT ( * ) * - 73 FROM tab1 AS cor0 @@ -4443,8 +4494,15 @@ SELECT DISTINCT - + 37 * + col1 * + 40 AS col2, col0 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 58 # Datafusion - Expected - 80 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 col1, 58 col1 FROM tab0 AS cor0 +---- +58 +58 +58 +80 +80 +80 query I rowsort label-733 SELECT + CAST ( + - ( - ( col2 ) ) AS INTEGER ) col2 FROM tab2 AS cor0 @@ -4862,8 +4920,15 @@ SELECT - MIN ( DISTINCT - - 0 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 58 # Datafusion - Expected - 77 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, 58 AS col0 FROM tab2 +---- +51 +58 +58 +58 +67 +77 query I rowsort SELECT DISTINCT + 27 col0 FROM tab1 @@ -5292,8 +5357,15 @@ SELECT ALL - col0 * 38 FROM tab1 # Datafusion - Expected - -87 # Datafusion - Expected - 97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "\(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, - col0 AS col1 FROM tab0 +---- +-15 +-87 +-97 +15 +87 +97 query I rowsort label-866 SELECT ALL + col1 AS col1 FROM tab0 WHERE ( + CAST ( ( col1 ) AS INTEGER ) ) NOT BETWEEN NULL AND + 97 @@ -5845,8 +5917,9 @@ SELECT ALL + 98 * - MAX ( ALL + 56 ) FROM tab1 -5488 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* Int64\(65\) \+ \(\- tab0\.col1\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * 65 + - + col1 AS col0, col2 AS col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col0 +---- query III rowsort label-952 SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - 5, - col0 * + col2, - CAST ( + + col1 AS FLOAT8 ), col1 ) @@ -7069,8 +7142,10 @@ SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE CAST ( NULL AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to dab30af0cacb9f05e8ff719120b69385 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \* Int64\(11\) AS col2" at position 0 and "\(\- tab0\.col1\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - col2 * + 11 AS col2, 76 * + col0 * col0 AS col0, + - col1 AS col2 FROM tab0 +---- +9 values hashing to a0ba79bc1590b48f02d3efd3be5da0c0 query I rowsort label-1166 SELECT DISTINCT ( 94 ) / + - COUNT ( * ) col1 FROM tab1 @@ -7239,8 +7314,11 @@ SELECT ( - col1 ) * + col0 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 25904 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(29\) \+ min\(Int64\(\-75\)\) \* \(\- min\(tab2\.col2\)\) \* Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + + COUNT ( * ) ) AS col0, + 29 + + ( + MIN ( - 75 ) ) * - MIN ( ALL col2 ) * 15 AS col0 FROM tab2 +---- +25904 +3 query I rowsort SELECT + 89 AS col2 FROM tab2, tab1 AS cor0 @@ -7795,8 +7873,10 @@ SELECT + + 99 + + ( - - col2 ) * + col0 * - col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f795a1e2d51e68c30ed475ca39b89ac7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ cor0\.col2 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 75 + col2 AS col2, 19 / - - 55 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 +---- +9 values hashing to a7e3898b4660c616cd4e6c12b3182bed query II rowsort SELECT - col0 + - col2 AS col2, + 53 AS col0 FROM tab1 AS cor0 @@ -8069,8 +8149,11 @@ SELECT 54, 24 * col2 col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 291 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( * ) * + 97 AS col0 FROM tab1 +---- +291 +3 query III rowsort SELECT * FROM tab0 WHERE + - 64 IS NOT NULL @@ -8094,8 +8177,15 @@ SELECT DISTINCT + COUNT ( DISTINCT + 28 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 41 # Datafusion - Expected - 96 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 AS col0, 41 AS col0 FROM tab1 AS cor0 +---- +41 +41 +41 +59 +68 +96 query I rowsort label-1337 SELECT 62 + - - ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0 @@ -8147,8 +8237,11 @@ SELECT DISTINCT 53 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + - CAST ( COUNT ( * ) AS INTEGER ) ) col2, + ( - 6 ) AS col2 FROM tab0 +---- +-3 +-6 query I rowsort SELECT DISTINCT + col1 * - 61 AS col1 FROM tab0 @@ -8420,8 +8513,15 @@ SELECT ALL col2, col1 AS col1 FROM tab1 # Datafusion - Expected - 37 # Datafusion - Expected - 99 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- \(\- tab0\.col1\)\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * - - col1 AS col2, + 37 col2 FROM tab0 +---- +210 +37 +37 +37 +3807 +99 query I rowsort SELECT 56 * col2 AS col0 FROM tab0 @@ -9079,8 +9179,11 @@ SELECT DISTINCT + col2 * + - col0 + - col1 + - CAST ( col2 AS INTEGER ) + + col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, - 92 AS col0 FROM tab1 AS cor0 +---- +-92 +3 query I rowsort label-1499 SELECT ALL CAST ( - - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 @@ -10432,8 +10535,15 @@ SELECT ALL - + col1 AS col1, col1 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 140 # Datafusion - Expected - 5 # Datafusion - Expected - 140 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(80\) \+ Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, + 80 + + 60 AS col2 FROM tab1 AS cor0 +---- +14 +140 +140 +140 +47 +5 query I rowsort label-1731 SELECT col2 + CAST ( NULL AS INTEGER ) + - 12 * + ( col1 ) FROM tab2 AS cor0 @@ -10639,8 +10749,15 @@ SELECT ALL - - col1 * col2 + + - 82 + + col2 AS col0 FROM tab2 cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, col0 AS col1 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-1766 SELECT ALL - SUM ( ALL + - 58 ) FROM tab1 @@ -11052,8 +11169,15 @@ SELECT ALL + MAX ( - col1 ) col2 FROM tab2 cor0 # Datafusion - Expected - 10 # Datafusion - Expected - -97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* \(\- \(\- \(\- tab0\.col0\)\)\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * - + ( - - col0 ) AS col1, + col2 AS col1 FROM tab0 +---- +-1215 +-1827 +-97 +10 +47 +99 query I rowsort SELECT 70 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 @@ -13269,8 +13393,15 @@ SELECT + COUNT ( * ) AS col1, + MIN ( - 69 ) FROM tab0 # Datafusion - Expected - 2688 # Datafusion - Expected - -89 # Datafusion - Expected - 5568 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col1" at position 0 and "Int64\(\-35\) \* Int64\(\-48\) \- tab0\.col1 \* \(\- CAST\(Int64\(48\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 89 AS col1, - 35 * - 48 - + col1 * - CAST ( + 48 AS INTEGER ) AS col1 FROM tab0 +---- +-89 +-89 +-89 +1728 +2688 +5568 query II rowsort label-2195 SELECT + CAST ( SUM ( ALL - - 79 ) AS INTEGER ), 47 col1 FROM tab0 @@ -14014,8 +14145,15 @@ SELECT + 61, col0 FROM tab1 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, col1 AS col2 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query III rowsort label-2316 SELECT * FROM tab1 WHERE NOT - + col0 + CAST ( 53 AS INTEGER ) * + + 34 IS NOT NULL @@ -14115,14 +14253,24 @@ SELECT 31 * col0 / + col1 AS col0, 99 AS col2 FROM tab0 # Datafusion - Expected - 6064 # Datafusion - Expected - -80 # Datafusion - Expected - 7120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col0" at position 0 and "Int64\(\-96\) \* \(\- tab2\.col0\) \+ Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 80 AS col0, - 96 * + ( - + col0 ) + - 80 AS col0 FROM tab2 +---- +-80 +-80 +-80 +4336 +6064 +7120 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 6272 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "Int64\(64\) \* Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 8 AS col2, + 64 * + 98 col2 FROM tab1 +---- +6272 +8 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -14613,8 +14761,15 @@ SELECT - - 68 col1 FROM tab0 cor0 # Datafusion - Expected - 41 # Datafusion - Expected - 84 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \- \(\- tab0\.col1\) \* Int64\(83\) AS col0" at position 0 and "tab0\.col0 / \(\- Int64\(25\)\) \+ CAST\(Int64\(41\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 - + + ( - col1 ) * + 83 AS col0, col0 / - + 25 + + CAST ( 41 AS INTEGER ) AS col0 FROM tab0 +---- +1764 +38 +38 +41 +6804 +84 query III rowsort label-2409 SELECT * FROM tab1 WHERE col1 BETWEEN ( - 10 ) AND ( CAST ( - 50 AS INTEGER ) ) + - col2 @@ -15981,8 +16136,15 @@ SELECT + col0 * + + col2 * - 56 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col0, + col0 AS col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT - + 55 * - + col2 AS col1 FROM tab0 AS cor0 @@ -16374,8 +16536,15 @@ SELECT * FROM tab1 cor0 WHERE NOT + col2 >= + col0 - - col1 + - col1 * + 39 # Datafusion - Expected - -58 # Datafusion - Expected - 77 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, - col2 AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +51 +67 +77 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 <= - ( - 91 ) @@ -16635,8 +16804,9 @@ NULL -58 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 AS col2, - col0 col2 FROM tab0 AS cor0 WHERE col1 IS NULL +---- query I rowsort label-2743 SELECT DISTINCT - SUM ( col1 ) AS col0 FROM tab2 AS cor0 @@ -17125,8 +17295,15 @@ NULL # Datafusion - Expected - 85 # Datafusion - Expected - 25 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(66\)\) \+ cor0\.col0 AS col1" at position 0 and "\(\- CAST\(\(\- cor0\.col0\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 66 + col0 AS col1, - CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +-15 +19 +25 +51 +85 +91 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 78 + 5 IS NULL @@ -17152,8 +17329,11 @@ SELECT ALL 15 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "count\(CAST\(cor0\.col2 AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 31 AS col2, COUNT ( + CAST ( col2 AS INTEGER ) ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 <= NULL +---- +0 +31 query I rowsort SELECT - 19 + + 68 FROM tab1 AS cor0 @@ -17770,8 +17950,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +3 +NULL query I rowsort label-2935 SELECT - + col0 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0 @@ -17822,8 +18005,15 @@ SELECT 21 * - col1 * col1 FROM tab2 # Datafusion - Expected - -68 # Datafusion - Expected - 66 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "\(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 col1, - col2 col1 FROM tab1 +---- +-59 +-68 +-96 +66 +66 +66 query I rowsort label-2943 SELECT ALL - MAX ( 96 ) AS col1 FROM tab2, tab1 AS cor0 @@ -18082,8 +18272,15 @@ SELECT col1 + - 15 AS col2 FROM tab0 # Datafusion - Expected - -37347408 # Datafusion - Expected - 77 # Datafusion - Expected - -42921648 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(84\) \* Int64\(84\) \* \(\- cor0\.col1\) \* Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col0, 84 * 84 * - col1 * + + 79 col0 FROM tab2 AS cor0 +---- +-28428624 +-37347408 +-42921648 +51 +67 +77 query I rowsort SELECT ALL + ( - + 72 ) * - col0 * 6 AS col0 FROM tab1 AS cor0 @@ -18656,8 +18853,15 @@ NULL # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, + col0 col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query II rowsort label-3080 SELECT DISTINCT + col2, CAST ( NULL AS INTEGER ) FROM tab2 @@ -18983,8 +19187,11 @@ SELECT CAST ( + 16 AS INTEGER ) / - 94 + - col2 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 26 -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\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( ALL 89 ) AS col2, 26 AS col2 FROM tab0 AS cor0 +---- +26 +89 query I rowsort label-3129 SELECT MAX ( - + ( 28 ) ) FROM tab1 AS cor0 @@ -19266,8 +19473,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col2, col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-3171 SELECT DISTINCT 78 / - col0 FROM tab1 @@ -19557,8 +19771,11 @@ SELECT + col0 - + col2 * col0 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 AS col0, CAST ( NULL AS INTEGER ) + - COUNT ( * ) col0 FROM tab1 +---- +46 +NULL query III rowsort SELECT * FROM tab0 WHERE NOT + col0 * - col0 IS NULL @@ -19740,8 +19957,15 @@ SELECT ALL col1 + col1 + col0 AS col1, + col1 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1, col1 AS col1 FROM tab0 cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-3249 SELECT DISTINCT - col0 + + + CAST ( NULL AS INTEGER ) FROM tab0 cor0 @@ -19859,8 +20083,15 @@ SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 83 AND NULL # Datafusion - Expected - 18270 # Datafusion - Expected - 97 # Datafusion - Expected - 9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col2 \* tab0\.col1 \* tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, col2 * col1 * + + col0 AS col2 FROM tab0 +---- +15 +18270 +57105 +87 +9603 +97 query I rowsort SELECT + ( col1 ) * - - 91 + ( 21 ) + + 71 AS col0 FROM tab1 @@ -19903,8 +20134,11 @@ 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\(Int64\(1\)\) AS count\(\*\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + COUNT ( DISTINCT col2 ) AS col0, COUNT ( * ) / + - COUNT ( * ) AS col0 FROM tab1 cor0 +---- +-1 +-3 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT + - 25 = NULL @@ -20012,8 +20246,15 @@ SELECT ALL + 59 - col2 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col2, col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query II rowsort SELECT + 82 * + col1 * 38, ( + + ( + ( + col2 ) ) ) + + col2 AS col2 FROM tab2 @@ -20028,8 +20269,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col2, - COUNT ( * ) + - ( + 56 ) AS col2 FROM tab1 AS cor0 +---- +-3 +-59 query I rowsort label-3295 SELECT ALL 29 * ( - - MAX ( DISTINCT - + CAST ( - 21 AS INTEGER ) ) ) FROM tab0 AS cor0 @@ -20832,8 +21076,15 @@ SELECT - col1 * + ( 4 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 96 AS col1, col2 AS col1 FROM tab1 AS cor0 +---- +59 +68 +96 +96 +96 +96 query I rowsort label-3427 SELECT - + 75 + - - COUNT ( * ) * - ( - 7 ) FROM tab1 AS cor0 @@ -21194,8 +21445,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, col2 AS col0 FROM tab0 cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT 77 + col0 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( + col0 * + - col1 + + - col2 ) @@ -21471,8 +21729,15 @@ NULL # Datafusion - Expected - 34 # Datafusion - Expected - -4350 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* \(\- tab2\.col2\) AS col2" at position 0 and "\(\- tab2\.col2\) \+ Int64\(76\) \- CAST\(\(\- \(\- tab2\.col1\)\) AS Int32\) / CAST\(Int64\(26\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * - col2 AS col2, - col2 + + 76 - + CAST ( - - col1 AS INTEGER ) / CAST ( + 26 AS INTEGER ) AS col2 FROM tab2 +---- +-1058 +-2560 +-4350 +16 +34 +52 query I rowsort SELECT ALL + - 19 FROM tab0 AS cor0 WHERE - col2 * col2 <= - + col1 @@ -21656,8 +21921,15 @@ SELECT ALL - + 62 * 22 * + COUNT ( * ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -5 # Datafusion - Expected - -3196 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 * + + ( col2 ) AS col0, - col1 AS col0 FROM tab1 AS cor0 +---- +-1344 +-14 +-295 +-3196 +-47 +-5 query I rowsort label-3563 SELECT - COUNT ( ALL + - 83 ) * + 23 FROM tab1 AS cor0 @@ -21792,8 +22064,15 @@ SELECT - col1 FROM tab0 AS cor0 WHERE 31 <> - col0 * - + col1 # Datafusion - Expected - 870 # Datafusion - Expected - 9 # Datafusion - Expected - 9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "tab0\.col0 \* tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 9 AS col2, col0 * col2 AS col2 FROM tab0 +---- +705 +870 +9 +9 +9 +9603 query I rowsort label-3585 SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab0 WHERE - - 62 = NULL @@ -22219,8 +22498,15 @@ SELECT ALL + col0 * - + col0 col2 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 83 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS 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 IR valuesort SELECT 83 AS col2, CAST ( NULL AS FLOAT8 ) col2 FROM tab1 +---- +83 +83 +83 +NULL +NULL +NULL query I rowsort label-3655 SELECT ALL - SUM ( ALL + 78 ) AS col2 FROM tab0 cor0 @@ -22659,8 +22945,15 @@ SELECT DISTINCT SUM ( col1 ) AS col0 FROM tab2 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "CAST\(tab1\.col0 AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, CAST ( + + col0 AS INTEGER ) FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-3727 SELECT DISTINCT COUNT ( * ) - - 92 FROM tab2 @@ -23804,8 +24097,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - -41 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 / tab0\.col0 \+ \(\- tab0\.col1\) \+ \(\- tab0\.col1\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 / + + col0 + + - col1 + - col1 AS col1, col2 col1 FROM tab0 +---- +-1 +-161 +-41 +10 +47 +99 query I rowsort SELECT col1 FROM tab1 WHERE - 76 IS NOT NULL @@ -24282,8 +24582,15 @@ SELECT ALL - col1, CAST ( col2 AS INTEGER ) FROM tab0 WHERE NOT col0 * - ( + 78 # Datafusion - Expected - 125 # Datafusion - Expected - 943 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \* \(\- tab2\.col2\) AS col0" at position 0 and "tab2\.col1 \+ tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 41 * + - col2 AS col0, + col1 + + + col2 AS col0 FROM tab2 +---- +117 +125 +1640 +2378 +74 +943 query I rowsort label-3995 SELECT ALL - col2 / CAST ( - col0 AS INTEGER ) * - - col1 AS col0 FROM tab1 AS cor0 @@ -24789,8 +25096,15 @@ SELECT DISTINCT + 8 - + - col0 - + 86 / + 94 * 71 FROM tab1 # Datafusion - Expected - 32 # Datafusion - Expected - -96 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, 32 AS col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +32 +32 +32 query II rowsort SELECT DISTINCT + col1, + 64 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * - 67 * + 54 * + col0 BETWEEN - col1 * 43 AND NULL @@ -25440,8 +25754,15 @@ SELECT * FROM tab0 WHERE NOT + 11 > NULL # Datafusion - Expected - 85 # Datafusion - Expected - 79 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 79 AS col1, col0 AS col1 FROM tab1 +---- +51 +79 +79 +79 +85 +91 query I rowsort SELECT DISTINCT + 36 * col0 AS col1 FROM tab0 @@ -26655,8 +26976,15 @@ SELECT ALL - col1 / col2 FROM tab2 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 47 # Datafusion - Expected - -79 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 79 AS col0, col1 AS col0 FROM tab1 +---- +-79 +-79 +-79 +14 +47 +5 query I rowsort SELECT col0 AS col1 FROM tab0 WHERE NOT + col2 IS NOT NULL @@ -27268,8 +27596,15 @@ SELECT ALL - col1 / + col2 AS col2, - col2 * + col1 + - - 12 FROM tab1 AS cor0 # Datafusion - Expected - -161 # Datafusion - Expected - -44 # Datafusion - Expected - -109 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ Int64\(\-29\) AS col0" at position 0 and "Int64\(\-62\) \+ CAST\(\(\- cor0\.col2\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 + - 29 AS col0, - 62 + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0 +---- +-109 +-116 +-126 +-161 +-44 +-72 query I rowsort SELECT - + ( - + 99 ) FROM tab1 AS cor0 @@ -27956,8 +28291,15 @@ SELECT + + col1, ( - 25 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 65 # Datafusion - Expected - -89 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(89\)\) AS col1" at position 0 and "cor0\.col1 \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 89 col1, + col1 + col0 AS col1 FROM tab1 AS cor0 +---- +-89 +-89 +-89 +138 +65 +90 query I rowsort label-4593 SELECT + 61 * - col1 / - + col1 AS col2 FROM tab0 cor0 @@ -28871,8 +29213,11 @@ SELECT COUNT ( col1 ) FROM tab0 cor0 WHERE NOT col0 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 "Int64\(\-77\) \+ Int64\(74\) AS col2" at position 0 and "Int64\(\-64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 77 + + 74 AS col2, - 64 col2 FROM tab0 AS cor0 +---- +-3 +-64 query II rowsort SELECT ALL - + col0 * ( - col1 ), col2 + - col2 + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) = NULL @@ -29268,8 +29613,11 @@ SELECT + 50 + 92 FROM tab0 WHERE NOT NULL IS NOT NULL # 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\(tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 73 AS col0, + COUNT ( col0 ) AS col0 FROM tab1 +---- +3 +73 query I rowsort SELECT ALL + col2 AS col0 FROM tab1 WHERE NULL <= NULL @@ -29907,8 +30255,15 @@ SELECT DISTINCT - 62 / - + col2 * col2 / col2 + ( - col2 ) - - - col2 AS col2 FR # Datafusion - Expected - 10 # Datafusion - Expected - 97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, col2 AS col1 FROM tab0 AS cor0 +---- +10 +15 +47 +87 +97 +99 query I rowsort SELECT ALL - + ( + 27 ) FROM tab0 AS cor0 @@ -30028,8 +30383,9 @@ SELECT DISTINCT - + col2 + 72 FROM tab2 cor0 49 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) / \(\- cor0\.col0\) \+ \(\- Int64\(\-71\)\) \+ \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(\-45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 / - col0 + - - 71 + - + col0 AS col1, - 45 AS col1 FROM tab2 cor0 WHERE + 7 IS NOT NULL AND 24 IN ( 91 * + CAST ( NULL AS INTEGER ) ) +---- query I rowsort SELECT col2 + - 53 AS col2 FROM tab2 @@ -30605,8 +30961,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT col0 + - + col1 * - col1 / - col2 >= NULL # Datafusion - Expected - 64 # Datafusion - Expected - -5742 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* Int64\(\-99\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 * + - 99 AS col1, col0 AS col1 FROM tab2 +---- +-2277 +-3960 +-5742 +46 +64 +75 query I rowsort SELECT ALL + - ( + - 34 ) col2 FROM tab1 AS cor0 @@ -32469,8 +32832,11 @@ SELECT - ( + - MAX ( ALL col2 ) ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(29\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( COUNT ( * ) ) * 29 + + COUNT ( * ) col2, + 23 AS col2 FROM tab1 AS cor0 +---- +23 +90 query III rowsort label-5339 SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 * CAST ( + col2 AS INTEGER ) > NULL @@ -32821,8 +33187,15 @@ SELECT DISTINCT MIN ( ALL + 59 ) AS col1 FROM tab0 # Datafusion - Expected - -87 # Datafusion - Expected - -97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0, - col0 FROM tab0 AS cor0 +---- +-15 +-15 +-87 +-87 +-97 +-97 query II rowsort SELECT ALL col2 * col1 AS col0, - col1 FROM tab1 @@ -34433,8 +34806,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - -57114 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \+ \(\- Int64\(\-80\)\) \* \(\- cor0\.col1\) \* \(\- \(\- cor0\.col0\)\) \+ \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 20 + - - 80 * + ( - + col1 ) * - - col0 + - + col1 AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +-33985 +-342187 +-57114 +14 +47 +5 query I rowsort SELECT + 59 + + 88 AS col2 FROM tab1 AS cor0 @@ -34710,8 +35090,11 @@ SELECT DISTINCT - MAX ( + col0 ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 455 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \+ sum\(Int64\(44\)\) AS col1" at position 0 and "Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 59 + SUM ( + 44 ) AS col1, - 6 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 +---- +-6 +455 query I rowsort label-5706 SELECT ALL + + COUNT ( * ) + - 80 AS col0 FROM tab2 AS cor0 @@ -35007,8 +35390,15 @@ SELECT + + col1 / ( + col0 ) + - col2 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 3434 # Datafusion - Expected - NULL # Datafusion - Expected - 4806 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "tab1\.col2 \+ Int64\(33\) \+ \(\- tab1\.col2\) \+ Int64\(69\) \+ Int64\(49\) \* tab1\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col2, col2 + + 33 + - col2 + + 69 + + 49 * + col2 AS col2 FROM tab1 +---- +2993 +3434 +4806 +NULL +NULL +NULL query I rowsort label-5754 SELECT CAST ( NULL AS INTEGER ) * - 6 FROM tab0 @@ -35181,8 +35571,9 @@ SELECT + - 87 * col0 FROM tab2 AS cor0 -6525 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(\-55\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col0, - 55 * col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL +---- query I rowsort SELECT - 77 + - + col0 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL @@ -36269,8 +36660,15 @@ SELECT DISTINCT - ( + 67 ) AS col1 FROM tab1 AS cor0 WHERE NOT - 83 IS NULL # Datafusion - Expected - 66 # 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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 91 AS col0, 66 AS col0 FROM tab0 cor0 +---- +-91 +-91 +-91 +66 +66 +66 query II rowsort label-5951 SELECT DISTINCT + col2 AS col2, - CAST ( - 14 AS INTEGER ) + + col2 AS col1 FROM tab0 AS cor0 @@ -37822,8 +38220,15 @@ NULL # Datafusion - Expected - 21 # Datafusion - Expected - 74 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 74 AS col2, col1 AS col2 FROM tab0 +---- +1 +21 +74 +74 +74 +81 query I rowsort SELECT DISTINCT - col0 + - 36 AS col1 FROM tab0 AS cor0 @@ -37855,8 +38260,9 @@ SELECT - 11 / - MAX ( ALL + col0 ) AS col1 FROM tab0 cor0 WHERE 21 NOT BETWEEN N 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(63\) \* \(\- CAST\(Int64\(83\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, 63 * + - CAST ( 83 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 + - col1 NOT IN ( + 59 ) +---- query II rowsort SELECT + 47 + - col1 AS col2, col1 + - 66 FROM tab2 AS cor0 @@ -37896,8 +38302,15 @@ SELECT DISTINCT col0 FROM tab2 WHERE - + col2 / 10 IS NOT NULL # Datafusion - Expected - -71 # Datafusion - Expected - 97 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(16\) \- tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col2, + 16 - + col0 AS col2 FROM tab0 +---- +-71 +-81 +1 +15 +87 +97 query I rowsort SELECT ALL 17 - - 25 AS col1 FROM tab0 @@ -38768,8 +39181,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT + col0 / ( 6 ) IS NOT NULL # Datafusion - Expected - 77 # Datafusion - Expected - 91 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, 77 AS col2 FROM tab1 +---- +51 +77 +77 +77 +85 +91 query II rowsort label-6368 SELECT DISTINCT 23 / + col0 AS col2, ( + 13 ) AS col1 FROM tab1 @@ -39208,8 +39628,15 @@ SELECT DISTINCT * FROM tab0 WHERE ( - ( - 20 ) IS NOT NULL ) # Datafusion - Expected - -6188 # Datafusion - Expected - 5 # Datafusion - Expected - -5015 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col2\) \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, - col2 * + + col0 col2 FROM tab1 AS cor0 +---- +-4896 +-5015 +-6188 +14 +47 +5 query III rowsort SELECT * FROM tab2 AS cor0 WHERE 36 + - - 77 / col0 IS NULL @@ -39541,8 +39968,15 @@ SELECT ALL + COUNT ( * ) * 43 AS col1 FROM tab0 # Datafusion - Expected - 5712 # Datafusion - Expected - -5 # Datafusion - Expected - 4956 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(84\) \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col1 AS col0, 84 * + + col2 AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +4956 +5712 +8064 query II rowsort label-6503 SELECT - 90 AS col0, - COUNT ( * ) FROM tab1 cor0 @@ -39642,8 +40076,15 @@ SELECT SUM ( - + 21 ) FROM tab0 # Datafusion - Expected - 21 # Datafusion - Expected - 8 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 AS col2, col1 AS col2 FROM tab0 +---- +1 +21 +8 +8 +8 +81 query I rowsort label-6519 SELECT - 85 / COUNT ( * ) AS col2 FROM tab0 @@ -39768,8 +40209,15 @@ SELECT MIN ( 6 ) FROM tab1 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + col0 ) AS col2, col0 AS col2 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-6537 SELECT DISTINCT SUM ( ALL col0 ) FROM tab2 AS cor0 @@ -40725,8 +41173,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "min\(cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col1, MIN ( ALL col2 ) AS col1 FROM tab1 AS cor0 +---- +3 +59 query I rowsort SELECT ALL + 3 * - - col0 * 45 * 5 FROM tab2 AS cor0 @@ -40874,8 +41325,15 @@ SELECT ALL * FROM tab2 WHERE NOT col1 - - col0 IS NOT NULL # Datafusion - Expected - 0 # Datafusion - Expected - -58 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col1" at position 0 and "tab2\.col2 / tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - col2 ) AS col1, col2 / col0 AS col1 FROM tab2 +---- +-23 +-40 +-58 +0 +0 +0 query I rowsort label-6721 SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) * COUNT ( * ) FROM tab1 WHERE ( NULL ) IS NULL @@ -41003,8 +41461,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) - 41 AS col1, - 68 AS col1 FROM tab2 +---- +-38 +-68 query I rowsort SELECT - + 62 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 @@ -41556,8 +42017,11 @@ SELECT DISTINCT + ( 84 ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- cor0\.col0\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + MIN ( + - col0 ) + COUNT ( * ) col0, 12 AS col0 FROM tab2 cor0 +---- +12 +78 query I rowsort SELECT 98 + - 43 + + col0 - 3 * - - col0 FROM tab0 AS cor0 @@ -42024,8 +42488,15 @@ SELECT DISTINCT - 59 + + - CAST ( - - col1 AS INTEGER ) FROM tab2 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 5 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, + 87 AS col2 FROM tab1 AS cor0 +---- +14 +47 +5 +87 +87 +87 query III rowsort SELECT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN - col1 + - 88 AND ( NULL ) @@ -42310,8 +42781,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col1" at position 0 and "min\(\(\- tab1\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 5 AS col1, + MIN ( ALL - col2 ) col1 FROM tab1 WHERE NOT ( NOT ( 25 ) IS NOT NULL ) +---- +-5 +-96 query I rowsort SELECT DISTINCT 89 * col1 col0 FROM tab1 @@ -43721,8 +44195,15 @@ SELECT ALL - COUNT ( * ) * + 97 * 23 + - 61 AS col2 FROM tab1 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col0, + col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-7193 SELECT - - COUNT ( - - col0 ) FROM tab0 AS cor0 @@ -43741,8 +44222,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 - 7 IS NULL # Datafusion - Expected - 65 # Datafusion - Expected - 82 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "cor0\.col1 \+ \(\- \(\- cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 AS col2, col1 + - - col0 AS col2 FROM tab1 AS cor0 +---- +138 +65 +82 +82 +82 +90 query I rowsort SELECT ALL + col2 + + + col2 FROM tab0 AS cor0 @@ -45429,8 +45917,15 @@ SELECT + MIN ( + 89 ) FROM tab0 AS cor0 # Datafusion - Expected - 69 # Datafusion - Expected - -77 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + + col1 ) AS col2, 69 AS col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +69 +69 +69 query I rowsort SELECT DISTINCT col2 * 89 col1 FROM tab0 AS cor0 @@ -45605,8 +46100,15 @@ SELECT + - 58 * COUNT ( * ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 83 # Datafusion - Expected - NULL # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + CAST ( NULL AS FLOAT8 ) AS col0, + 83 AS col0 FROM tab0 AS cor0 +---- +83 +83 +83 +NULL +NULL +NULL query I rowsort SELECT 0 + + col2 FROM tab2 @@ -46107,8 +46609,15 @@ SELECT ALL - col0 - + col1 * - col2 FROM tab1 AS cor0 # Datafusion - Expected - 51 # Datafusion - Expected - -50 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \+ \(\- cor0\.col0\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 35 + - col0 col0, 51 AS col0 FROM tab0 AS cor0 +---- +-122 +-132 +-50 +51 +51 +51 query II rowsort SELECT col2 - 85 + + col0 col1, col0 FROM tab1 @@ -46891,8 +47400,15 @@ SELECT * FROM tab0 AS cor0 WHERE ( + - col1 ) IS NOT NULL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col1, col1 AS col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query II rowsort SELECT - col2 col1, col2 AS col0 FROM tab1 AS cor0 @@ -47745,8 +48261,11 @@ 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\(1\)\) AS count\(\*\)\) / \(\- Int64\(88\)\) \* Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( ALL - 69 ) AS col2, - COUNT ( * ) / - + 88 * - 4 AS col2 FROM tab2 +---- +0 +69 query I rowsort label-7857 SELECT - ( + CAST ( - 76 AS INTEGER ) ) AS col1 FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN ( + 13 ) AND - col2 * col2 @@ -48626,8 +49145,15 @@ SELECT - 74 * col2 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 4760 # Datafusion - Expected - 57 # Datafusion - Expected - 6720 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col2" at position 0 and "cor0\.col2 \* Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 AS col2, col2 * + 70 AS col2 FROM tab1 AS cor0 +---- +4130 +4760 +57 +57 +57 +6720 query I rowsort SELECT DISTINCT col2 + 86 FROM tab2 AS cor0 @@ -49773,8 +50299,15 @@ SELECT ALL - 97 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 # Datafusion - Expected - 5460 # Datafusion - Expected - -97 # Datafusion - Expected - 2574 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(26\) \* cor0\.col1 \* \(\- \(\- CAST\(cor0\.col2 AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( - + col0 ) AS col0, ( + 26 ) * + col1 * - - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +2574 +5460 +98982 query I rowsort SELECT 91 AS col1 FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( col1, 54, + col0 + - ( col0 ) * - + col1, - 32, + + col1 ) @@ -49827,7 +50360,7 @@ SELECT ALL - col1 FROM tab0 WHERE NOT NULL NOT BETWEEN - CAST ( NULL AS INTEGER # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 81c84f86ec843fd22b1f173f0144a2cb -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Schema error: Schema contains qualified field name cor0\.col2 and unqualified field name col2 which would be ambiguous SELECT col2, 45 * - + 37 - + 35 AS col2, + col2 AS col2 FROM tab0 cor0 query I rowsort label-8196 @@ -50632,8 +51165,15 @@ SELECT ALL 72 AS col2 FROM tab1 WHERE - col1 NOT BETWEEN + 97 AND - 86 + + col0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2, + ( col2 ) FROM tab0 +---- +10 +10 +47 +47 +99 +99 query III rowsort SELECT DISTINCT * FROM tab1 WHERE 96 IS NOT NULL @@ -51266,8 +51806,15 @@ SELECT DISTINCT + + col1 * + - col0 + col0 FROM tab1 cor0 # Datafusion - Expected - 6 # Datafusion - Expected - 92 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- cor0\.col0 / \(\- Int64\(67\)\) AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + col0 ) - + + col0 / - ( + ( 67 ) ) AS col0, 6 AS col0 FROM tab1 AS cor0 +---- +51 +6 +6 +6 +86 +92 query I rowsort SELECT - + 87 + col2 + - col1 AS col1 FROM tab1 AS cor0 WHERE 88 + + col2 = NULL @@ -51413,8 +51960,11 @@ SELECT ALL 86 AS col2, + ( - 70 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 AS col2, + COUNT ( * ) AS col2 FROM tab1 +---- +3 +47 query I rowsort label-8462 SELECT + SUM ( ALL col0 ) AS col1 FROM tab2 @@ -51428,8 +51978,15 @@ SELECT + SUM ( ALL col0 ) AS col1 FROM tab2 # Datafusion - Expected - -40 # Datafusion - Expected - 75 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 col1, - col2 AS col1 FROM tab2 WHERE - + col0 + - - col0 + - col1 IS NOT NULL +---- +-23 +-40 +-58 +46 +64 +75 query II rowsort SELECT 12 AS col1, - col2 FROM tab2 cor0 @@ -51444,8 +52001,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 67 AS col0, - 58 + - + COUNT ( * ) col0 FROM tab0 AS cor0 +---- +-61 +-67 query I rowsort SELECT ALL + col1 * 99 + - col0 col2 FROM tab2 cor0 @@ -52173,8 +52733,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +-3 +-3 query I rowsort label-8586 SELECT DISTINCT - COUNT ( ALL - - 74 ) AS col1 FROM tab1 AS cor0 @@ -52321,8 +52884,15 @@ SELECT DISTINCT - 13 * 81 - - - MAX ( - col1 ) FROM tab2 AS cor0 # Datafusion - Expected - -470 # Datafusion - Expected - -81 # Datafusion - Expected - -2209 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "\(\- cor0\.col2\) \+ cor0\.col1 \+ cor0\.col2 \- cor0\.col1 \+ \(\- cor0\.col2\) \* Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col2, + ( - col2 ) + + col1 + + col2 - col1 + - col2 * + 47 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-2209 +-4653 +-470 +-81 query I rowsort label-8611 SELECT ALL - MAX ( DISTINCT - 35 ) FROM tab2 @@ -52343,8 +52913,15 @@ SELECT DISTINCT ( ( - col1 ) ) AS col2 FROM tab1 # Datafusion - Expected - 3484 # Datafusion - Expected - -44 # Datafusion - Expected - 4004 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col1" at position 0 and "tab2\.col1 \* Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 44 AS col1, col1 * 52 AS col1 FROM tab2 +---- +-44 +-44 +-44 +2652 +3484 +4004 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 @@ -52353,8 +52930,15 @@ SELECT ALL - 44 AS col1, col1 * 52 AS col1 FROM tab2 # Datafusion - Expected - -67 # Datafusion - Expected - -66 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col2" at position 0 and "\(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 66 col2, - col1 col2 FROM tab2 +---- +-51 +-66 +-66 +-66 +-67 +-77 query II rowsort label-8615 SELECT ALL + - col0 + - col1, + 6 * + col2 + + - 22 + col1 / + 5 AS col0 FROM tab0 WHERE - + 0 * + + 0 * + col1 + col2 * col2 IS NOT NULL @@ -53446,8 +54030,15 @@ NULL # Datafusion - Expected - -1781 # Datafusion - Expected - 76 # Datafusion - Expected - -690 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "Int64\(32\) \* \(\- tab2\.col2\) \+ tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 AS col1, + 32 * - + col2 + + col0 col1 FROM tab2 +---- +-1216 +-1781 +-690 +76 +76 +76 query I rowsort label-8800 SELECT ALL + 15 + + - col1 / - col0 FROM tab1 @@ -53525,8 +54116,15 @@ NULL # Datafusion - Expected - -67 # Datafusion - Expected - 25 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col2" at position 0 and "\(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 AS col2, - col1 AS col2 FROM tab2 +---- +-51 +-67 +-77 +25 +25 +25 query II rowsort label-8812 SELECT 62 AS col0, + COUNT ( * ) AS col2 FROM tab2 @@ -53670,8 +54268,11 @@ SELECT ALL - + 66 + - col1 + - col1 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -8428 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- \(\- Int64\(98\)\)\) \* Int64\(\-86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, - COUNT ( * ) + - ( - + 98 ) * - 86 AS col2 FROM tab2 AS cor0 WHERE ( col0 ) IS NULL +---- +-8428 +0 query III rowsort SELECT * FROM tab0 AS cor0 WHERE 58 * col0 * + col1 = - col2 @@ -53754,8 +54355,12 @@ NULL # Datafusion - Expected - -3 # Datafusion - Expected - 51 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- \(\- cor0\.col1\)\)\) AS col1" at position 1 and "Int64\(\-30\) \+ Int64\(\-33\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - COUNT ( * ), MIN ( ( - - col1 ) ) AS col1, - 30 + - 33 AS col1 FROM tab2 cor0 +---- +-3 +-63 +51 query I rowsort SELECT + 52 * - + col0 AS col2 FROM tab2 AS cor0 @@ -54623,8 +55228,15 @@ SELECT col0 * col0 FROM tab2 WHERE NOT - col1 + - - 0 IS NOT NULL # Datafusion - Expected - 87 # Datafusion - Expected - -97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col1, col0 AS col1 FROM tab0 cor0 +---- +-15 +-87 +-97 +15 +87 +97 query II rowsort label-8991 SELECT DISTINCT col0 / 53, 28 / - + col0 + + ( - col2 ) + + + 51 * - - col2 col0 FROM tab1 @@ -54680,8 +55292,15 @@ SELECT ALL + 37 * COUNT ( * ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - NULL # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- \(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\)\)\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * - - CAST ( ( - + CAST ( NULL AS INTEGER ) ) AS INTEGER ) col2, - col2 AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +NULL +NULL +NULL query I rowsort label-8999 SELECT + - 97 / + MIN ( - col2 ) * - ( + 67 ) AS col2 FROM tab0 AS cor0 @@ -55998,8 +56617,15 @@ SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL OR NOT + col2 * + # Datafusion - Expected - 42 # Datafusion - Expected - -91 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col1, 42 col1 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +42 +42 +42 query I rowsort label-9223 SELECT ALL - - SUM ( DISTINCT - col0 ) FROM tab0 AS cor0 @@ -56055,8 +56681,15 @@ SELECT + 9 / - ( + 43 ) AS col1 FROM tab0 cor0 # Datafusion - Expected - 81 # Datafusion - Expected - 758637 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* \(\- tab0\.col2\) \* Int64\(\-79\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * + - col2 * + - 79 AS col1, 81 AS col1 FROM tab0 +---- +55695 +68730 +758637 +81 +81 +81 query I rowsort label-9232 SELECT DISTINCT + 7 / COUNT ( * ) * - 60 / - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 @@ -56111,8 +56744,15 @@ SELECT - - ( - 1 ) + + CAST ( col2 AS INTEGER ) FROM tab1 cor0 # Datafusion - Expected - -59 # Datafusion - Expected - 81 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* Int64\(\-81\) AS col2" at position 0 and "Int64\(\-59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 * - 81 AS col2, - 59 AS col2 FROM tab0 AS cor0 +---- +-59 +-59 +-59 +1701 +6561 +81 query I rowsort SELECT ALL - ( - + ( - ( - col0 ) ) ) FROM tab2 cor0 @@ -56249,8 +56889,11 @@ SELECT - COUNT ( * ) * + 33 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3465 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \* Int64\(\-63\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 * + - 63 AS col1, COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col1 +---- +0 +3465 query I rowsort label-9260 SELECT ALL COUNT ( - - col2 ) AS col2 FROM tab0 @@ -56363,8 +57006,15 @@ SELECT * FROM tab1 WHERE NOT + - 45 - - 60 IS NULL # Datafusion - Expected - 99 # Datafusion - Expected - -48990 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* tab0\.col2 \* Int64\(\-71\) AS col2" at position 0 and "tab0\.col1 \+ tab0\.col2 \- tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 69 * col2 * - 71 AS col2, col1 + + + col2 - + col1 AS col2 FROM tab0 +---- +-230253 +-485001 +-48990 +10 +47 +99 query I rowsort SELECT + 53 * - col1 * - col1 FROM tab2 AS cor0 @@ -56762,8 +57412,11 @@ SELECT col0 * 57 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * - COUNT ( * ) col1 FROM tab2 AS cor0 +---- +-9 +NULL query III rowsort label-9341 SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) <= - col0 @@ -56900,8 +57553,15 @@ SELECT col1 - + + col0 * col1 * + + col2 * col1 FROM tab0 # Datafusion - Expected - 0 # Datafusion - Expected - NULL # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "tab0\.col0 / tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( ( - col2 ) ) - - CAST ( NULL AS INTEGER ) col2, + col0 / + col2 AS col2 FROM tab0 +---- +0 +0 +8 +NULL +NULL +NULL query I rowsort SELECT DISTINCT col2 - - ( + + col2 ) + + col1 AS col2 FROM tab2 @@ -57289,8 +57949,10 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 + + col1 >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f022dfe1da9fe6032657e82988e2ad1f -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 25 AS col2, + 28, - col1 AS col2 FROM tab1 AS cor0 +---- +9 values hashing to 10a204e5c2386c170e76423109f7fc36 query I rowsort SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE col2 <= + col1 @@ -57430,8 +58092,11 @@ SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT ( NOT - 56 >= NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - -199752 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(88\)\) AS col2" at position 0 and "Int64\(58\) \* Int64\(\-42\) \* Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 88 AS col2, 58 * - 42 * + 82 AS col2 FROM tab2 AS cor0 +---- +-199752 +-88 query I rowsort label-9451 SELECT - col0 + - 34 / - 36 AS col2 FROM tab0 @@ -58243,8 +58908,9 @@ SELECT + col2 AS col2 FROM tab2 cor0 WHERE NOT - ( - col0 ) * - + col2 - + col1 58 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(94\) \+ cor0\.col2 AS col1" at position 0 and "Int64\(5\) \* cor0\.col2 \+ Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0 * + 94 + + col2 AS col1, + 5 * + col2 + ( + 81 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL +---- query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT 38 + + - 20 >= + + col0 * + col2 @@ -58881,8 +59547,15 @@ SELECT - col0 * + col2 * col1 * + - col1 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 73 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 73 AS col1, col0 AS col1 FROM tab1 AS cor0 +---- +51 +73 +73 +73 +85 +91 query I rowsort SELECT DISTINCT - 60 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 @@ -59953,8 +60626,15 @@ SELECT + col1, - col0 - - + col2 * + 29 AS col0 FROM tab0 # Datafusion - Expected - 160 # Datafusion - Expected - 8 # Datafusion - Expected - 448 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "tab1\.col1 \* Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 AS col2, col1 * + 32 AS col2 FROM tab1 +---- +1504 +160 +448 +8 +8 +8 query I rowsort label-9862 SELECT + 49 / + + col1 AS col2 FROM tab1 @@ -60044,8 +60724,9 @@ SELECT + col1 + col0 + + ( col0 ) + + col1 FROM tab0 AS cor0 216 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col1 \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col2 AS col1, + ( col1 ) + - col2 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN col0 * - + 23 AND + + 93 * col0 + - col0 +---- query I rowsort label-9877 SELECT COUNT ( DISTINCT - + col0 ) + COUNT ( * ) FROM tab1 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_3.slt b/data/sqlite/random/aggregates/slt_good_3.slt index 28c5fc3..2575617 100644 --- a/data/sqlite/random/aggregates/slt_good_3.slt +++ b/data/sqlite/random/aggregates/slt_good_3.slt @@ -120,8 +120,15 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - -99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +NULL +NULL +NULL query I rowsort label-14 SELECT MAX ( ALL + - ( - - 51 ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL @@ -400,8 +407,15 @@ SELECT ALL COUNT ( * ) + 80 AS col2 FROM tab2 # Datafusion - Expected - 94 # Datafusion - Expected - 88 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 col0, 94 AS col0 FROM tab0 +---- +88 +88 +88 +94 +94 +94 query I rowsort label-58 SELECT ALL - col2 + + 33 + + + ( + CAST ( NULL AS INTEGER ) ) / - - col1 FROM tab1 @@ -564,8 +578,15 @@ SELECT col2 / col0 * col2 / + col2 AS col0 FROM tab1 # Datafusion - Expected - -1 # Datafusion - Expected - -56 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col2" at position 0 and "tab0\.col1 / \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 56 AS col2, col1 / - col1 AS col2 FROM tab0 +---- +-1 +-1 +-1 +-56 +-56 +-56 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( col0 ) / - 3 * - 34 IS NULL @@ -837,8 +858,15 @@ SELECT COUNT ( 23 ), + CAST ( - 16 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE # Datafusion - Expected - -2560 # Datafusion - Expected - -58 # Datafusion - Expected - -4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col2 \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, col2 * - + col0 col0 FROM tab2 AS cor0 +---- +-1058 +-23 +-2560 +-40 +-4350 +-58 query I rowsort label-124 SELECT DISTINCT - - CAST ( 2 AS INTEGER ) FROM tab1 AS cor0 @@ -1467,8 +1495,11 @@ SELECT ALL * FROM tab2 AS cor0 WHERE 51 NOT BETWEEN - col0 AND - - 42 + - col1 * # Datafusion - Datafusion expected results: # Datafusion - Expected - -204 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 68 * COUNT ( * ) AS col2, - COUNT ( * ) col2 FROM tab2 AS cor0 +---- +-204 +-3 query II rowsort SELECT - col0 * col1 AS col2, ( col1 ) AS col0 FROM tab2 @@ -1494,8 +1525,15 @@ SELECT ALL col1 * - 81 AS col0 FROM tab0 # Datafusion - Expected - 5025 # Datafusion - Expected - 1 # Datafusion - Expected - 2346 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) / \(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 60 / - + col0 col2, + col1 * + col0 col2 FROM tab2 cor0 +---- +0 +0 +1 +2346 +4928 +5025 query I rowsort label-233 SELECT - + 78 + COUNT ( * ) FROM tab2 AS cor0 @@ -2366,8 +2404,15 @@ SELECT * FROM tab1 AS cor0 WHERE ( - + 89 ) + + 50 <> - ( - 41 ) * + col2 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, + col2 FROM tab0 cor0 +---- +10 +10 +47 +47 +99 +99 query III rowsort label-378 SELECT * FROM tab0 AS cor0 WHERE - 42 BETWEEN NULL AND + + ( + CAST ( NULL AS FLOAT8 ) ) @@ -2746,8 +2791,9 @@ SELECT DISTINCT + 71 * 76 AS col1 FROM tab1 cor0 5396 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* Int64\(41\) \+ \(\- Int64\(57\)\) AS col2" at position 0 and "tab2\.col0 \+ Int64\(\-82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * + 41 + - ( + 57 ) AS col2, ( + col0 ) + - 82 AS col2 FROM tab2 WHERE - col2 >= + col2 AND NOT NULL IS NULL +---- query II rowsort SELECT - col1 AS col2, - ( - 10 ) FROM tab2 WHERE - - col2 + - col0 IS NOT NULL @@ -4525,8 +4571,11 @@ SELECT ALL - col1 col0 FROM tab0 WHERE NOT + col1 >= + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(67\)\) AS col1" at position 0 and "\(\- max\(\(\- \(\- tab2\.col0\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( DISTINCT + 67 ) AS col1, - MAX ( - - col0 ) AS col1 FROM tab2 +---- +-75 +67 query III rowsort SELECT * FROM tab1 cor0 WHERE NOT - col1 / - col0 > NULL @@ -4546,8 +4595,11 @@ SELECT 34 + col1 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 72 AS col1, + COUNT ( * ) AS col1 FROM tab2 +---- +3 +72 query IIIIII rowsort SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN ( ( + + 24 ) ) AND ( NULL ) @@ -5774,8 +5826,15 @@ SELECT ALL + col0 AS col0, 56 FROM tab0 WHERE ( - col1 ) IS NULL # Datafusion - Expected - -85 # Datafusion - Expected - 91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, - col0 AS col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +51 +85 +91 query I rowsort label-935 SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( + col0 IN ( 68, + CAST ( NULL AS INTEGER ), - - col1 * - 7 * - 74, - 62 ) ) @@ -6218,8 +6277,15 @@ SELECT ALL - MIN ( - 30 ) - - 79 FROM tab1 AS cor0 # Datafusion - Expected - 70 # Datafusion - Expected - 87 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 AS col0, + 70 AS col0 FROM tab1 cor0 +---- +70 +70 +70 +87 +87 +87 query II rowsort SELECT ALL + 53 AS col2, col1 FROM tab0 AS cor0 @@ -6638,8 +6704,15 @@ SELECT - col0 / - 49 FROM tab1 # Datafusion - Expected - 11 # Datafusion - Expected - -9553 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \+ \(\- tab0\.col0\) \* tab0\.col2 AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 50 + - col0 * + col2 AS col1, 11 AS col1 FROM tab0 +---- +-655 +-820 +-9553 +11 +11 +11 query II rowsort SELECT DISTINCT 35 * + + 79 * - 35 AS col2, + col0 AS col0 FROM tab0 @@ -6725,8 +6798,11 @@ 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\(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\. +query II valuesort SELECT 72 * - COUNT ( * ) + 49 + - 26 AS col0, 1 col0 FROM tab1 AS cor0 +---- +-193 +1 query I rowsort SELECT - col1 + + - col1 AS col2 FROM tab0 AS cor0 @@ -6759,8 +6835,15 @@ SELECT + 88 + + col2 col2 FROM tab0 AS cor0 # Datafusion - Expected - 46 # Datafusion - Expected - 8 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + - col1 AS col2, col0 AS col2 FROM tab2 AS cor0 +---- +-13 +-5 +46 +64 +75 +8 query I rowsort SELECT - + 13 * - - 91 + + + 49 * + + col2 AS col0 FROM tab0 AS cor0 @@ -6814,8 +6897,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, + COUNT ( * ) + + 38 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 +---- +-9 +47 query I rowsort label-1101 SELECT ALL - MAX ( DISTINCT - 10 ) AS col1 FROM tab0 @@ -7339,8 +7425,15 @@ SELECT + MIN ( ALL col0 ) AS col2 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - 62 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 / \(\- tab1\.col0\) \+ Int64\(63\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 / + - col0 + + 63 AS col2, col1 col2 FROM tab1 +---- +14 +47 +5 +62 +62 +62 query I rowsort SELECT DISTINCT + - col0 AS col2 FROM tab0 WHERE NULL IS NOT NULL @@ -8797,8 +8890,15 @@ SELECT - 42 * 32 AS col0 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col1, col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-1429 SELECT COUNT ( - - ( col2 ) ) FROM tab1 @@ -10284,8 +10384,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + + - 5 # Datafusion - Expected - 33 # Datafusion - Expected - -563108 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col2 \* cor0\.col0 AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * + col2 * + col0 col1, 33 AS col1 FROM tab1 cor0 +---- +-249696 +-426275 +-563108 +33 +33 +33 query III rowsort SELECT * FROM tab0 cor0 WHERE NOT + ( - 21 ) > NULL @@ -10460,8 +10567,15 @@ SELECT + col0 / col0 / + CAST ( 14 AS INTEGER ) * + - col0 + + col1, col0 * 6 AS # Datafusion - Expected - 97 # Datafusion - Expected - -98 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \+ \(\- tab0\.col1\) AS col2" at position 0 and "Int64\(66\) \+ Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 + - ( + col1 ) AS col2, 66 + + + 31 col2 FROM tab0 +---- +-108 +-96 +-98 +97 +97 +97 query I rowsort SELECT DISTINCT 16 * + - col1 - col2 AS col2 FROM tab2 @@ -10919,8 +11033,15 @@ SELECT ALL + 78, col2 + + col2 AS col2 FROM tab0 cor0 # Datafusion - Expected - -64 # Datafusion - Expected - -75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0, + ( - col0 ) FROM tab2 AS cor0 +---- +-46 +-46 +-64 +-64 +-75 +-75 query I rowsort SELECT ALL + - 74 + + 14 + + + 94 AS col0 FROM tab2 AS cor0 @@ -11568,8 +11689,15 @@ SELECT ALL 13 - - SUM ( DISTINCT - col2 ) FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 96 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 col0, col1 col0 FROM tab1 +---- +14 +47 +5 +59 +68 +96 query I rowsort SELECT col1 - + - col0 AS col0 FROM tab2 @@ -12153,8 +12281,15 @@ SELECT col0 + + - col2 * ( + col2 ) AS col0 FROM tab0 # Datafusion - Expected - -10 # Datafusion - Expected - 97 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, - col2 AS col1 FROM tab0 cor0 +---- +-10 +-47 +-99 +15 +87 +97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 @@ -12163,8 +12298,15 @@ SELECT ALL col0 AS col1, - col2 AS col1 FROM tab0 cor0 # Datafusion - Expected - -77 # Datafusion - Expected - 58 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, ( - col1 ) AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +23 +40 +58 query I rowsort SELECT + + 12 FROM tab1 AS cor0 WHERE + col0 + + 75 * 57 BETWEEN NULL AND + col1 - - - 2 + + col1 @@ -13140,8 +13282,11 @@ SELECT 10 * - + 78 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +3 +3 query I rowsort label-2133 SELECT SUM ( DISTINCT - col1 ) * COUNT ( * ) - + 9 AS col1 FROM tab2 AS cor0 @@ -13636,8 +13781,15 @@ SELECT DISTINCT + col2 * + 61 AS col0 FROM tab2 cor0 WHERE NOT - col0 NOT BETWEE # Datafusion - Expected - 2624 # Datafusion - Expected - -46 # Datafusion - Expected - 3075 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col1" at position 0 and "Int64\(42\) \* cor0\.col0 \+ \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 46 AS col1, 42 * + col0 + - col0 AS col1 FROM tab2 AS cor0 +---- +-46 +-46 +-46 +1886 +2624 +3075 query I rowsort label-2222 SELECT + + col2 / + + col1 AS col0 FROM tab0 AS cor0 @@ -13917,8 +14069,15 @@ SELECT ALL 85 + - - SUM ( DISTINCT col1 ) FROM tab0 # Datafusion - Expected - 71 # Datafusion - Expected - 96 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, 71 AS col0 FROM tab1 +---- +59 +68 +71 +71 +71 +96 query II rowsort label-2271 SELECT + COUNT ( * ), 76 AS col0 FROM tab1 @@ -14248,8 +14407,15 @@ SELECT DISTINCT + 20 * - 57 * + ( - col2 ) FROM tab0 AS cor0 # Datafusion - Expected - -77 # Datafusion - Expected - -75 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col0 AS col0, - col1 AS col0 FROM tab2 AS cor0 +---- +-46 +-51 +-64 +-67 +-75 +-77 query I rowsort SELECT DISTINCT 78 * - 37 * - col1 AS col2 FROM tab2 @@ -14279,8 +14445,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT col1 NOT BETWEEN + col1 AND + CAST ( NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, col1 AS col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT col0 * - - 78 AS col2 FROM tab0 @@ -14910,8 +15083,11 @@ SELECT ALL - ( - 32 ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col2, + 70 AS col2 FROM tab1 AS cor0 +---- +70 +NULL query I rowsort SELECT ALL + ( + + 7 ) AS col2 FROM tab0 AS cor0 @@ -15271,8 +15447,15 @@ SELECT - - col2 * + + col0 * - + 39 AS col1 FROM tab2 AS cor0 WHERE NOT NULL = + # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, + col2 AS col0 FROM tab0 cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL @@ -15536,8 +15719,13 @@ SELECT DISTINCT CAST ( + 51 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT - 5 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, + col1 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + col0 AND NULL +---- +47 +47 +5 +5 query I rowsort label-2538 SELECT - - CAST ( NULL AS INTEGER ) * - col0 FROM tab0 AS cor0 @@ -16433,8 +16621,15 @@ SELECT ALL - ( col0 ) - - 99 / + + 46 FROM tab2 # Datafusion - Expected - -58 # Datafusion - Expected - 26 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \+ \(\- \(\- tab1\.col0\)\) AS col1" at position 0 and "Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 + - - col0 AS col1, - 58 AS col1 FROM tab1 +---- +-45 +-58 +-58 +-58 +23 +26 query III rowsort SELECT * FROM tab1 WHERE NOT - 25 + - col0 NOT BETWEEN NULL AND - col1 @@ -16447,8 +16642,15 @@ SELECT * FROM tab1 WHERE NOT - 25 + - col0 NOT BETWEEN NULL AND - col1 # Datafusion - Expected - 5 # Datafusion - Expected - 51 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col1" at position 0 and "\(\- Int64\(\-5\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 51 AS col1, - ( - 5 ) AS col1 FROM tab1 +---- +5 +5 +5 +51 +51 +51 query I rowsort SELECT + - col1 * - 7 + + col2 AS col2 FROM tab0 cor0 @@ -16738,8 +16940,11 @@ SELECT ALL + col1 * + col2 * + + 51 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col0" at position 0 and "\(\- cor0\.col1\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 3 AS col0, - col1 * + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 +---- +3 +NULL query I rowsort label-2743 SELECT DISTINCT - MAX ( DISTINCT + CAST ( + col0 AS INTEGER ) ) + + COUNT ( * ) FROM tab0 AS cor0 @@ -16822,8 +17027,11 @@ SELECT + CAST ( ( + - col1 ) AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(DISTINCT Int64\(\-25\)\)\) \+ Int64\(62\) AS col1" at position 0 and "min\(Int64\(80\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( DISTINCT - 25 ) + 62 AS col1, MIN ( + 80 ) col1 FROM tab0 cor0 +---- +61 +80 query I rowsort label-2757 SELECT DISTINCT 26 + COUNT ( * ) FROM tab2 @@ -17259,8 +17467,15 @@ SELECT DISTINCT col0 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL # Datafusion - Expected - -21 # Datafusion - Expected - 9603 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* tab0\.col2 AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * col2 AS col0, - col1 AS col0 FROM tab0 +---- +-1 +-21 +-81 +705 +870 +9603 query I rowsort SELECT DISTINCT - 49 * + col2 * + col2 FROM tab2 @@ -17682,8 +17897,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + - CAST ( NULL AS INTEGER # Datafusion - Expected - -29 # Datafusion - Expected - 99 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(\-88\) \+ cor0\.col0 \+ Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, - 88 + + col0 + + + 44 AS col1 FROM tab0 AS cor0 +---- +-29 +10 +43 +47 +53 +99 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + - col1 * + col0 @@ -18332,8 +18554,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) + COUNT ( DISTINCT - 80 ) AS col2, 77 AS col2 FROM tab2 +---- +4 +77 query III rowsort SELECT DISTINCT * FROM tab1 WHERE + col2 - - col1 * - ( col1 ) * + col1 * 8 IS NULL @@ -18353,8 +18578,15 @@ SELECT - 5 * - 15 * + col2 + col0 FROM tab2 AS cor0 # Datafusion - Expected - 125 # Datafusion - Expected - 77 # Datafusion - Expected - 117 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col1 \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, + col1 + + col2 AS col0 FROM tab2 AS cor0 +---- +117 +125 +51 +67 +74 +77 query I rowsort label-3013 SELECT ALL - + MIN ( 33 ) AS col1 FROM tab2 AS cor0 @@ -18597,8 +18829,11 @@ SELECT * FROM tab0 WHERE NOT + col0 - + + col2 / - 60 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +3 +9 query I rowsort label-3052 SELECT ALL + + COUNT ( - - col2 ) AS col1 FROM tab1 AS cor0 @@ -20323,8 +20558,15 @@ SELECT col0 * + + 23 FROM tab2 # Datafusion - Expected - 7 # Datafusion - Expected - -42 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 42 col2, 7 AS col2 FROM tab2 +---- +-42 +-42 +-42 +7 +7 +7 query I rowsort SELECT - 74 + + - col1 FROM tab1 WHERE NOT + - 78 <= NULL @@ -20470,8 +20712,15 @@ SELECT 42 + + 12 FROM tab2 AS cor0 # Datafusion - Expected - 78 # Datafusion - Expected - -81 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, + 78 AS col1 FROM tab0 cor0 +---- +-1 +-21 +-81 +78 +78 +78 query I rowsort SELECT DISTINCT + 46 * - col0 / col0 * 83 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 * - col0 AND NULL @@ -20513,8 +20762,10 @@ SELECT DISTINCT - + ( MIN ( + 47 ) ) AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to eea10b6ba5ecf3af1c02005b0246fb75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col2, col2, - + col1 - + 14 * col2 AS col0 FROM tab0 AS cor0 +---- +9 values hashing to c5df1d22f82d297c367fdfdbd6985e7f query II rowsort SELECT DISTINCT col2 AS col1, 53 AS col2 FROM tab1 AS cor0 @@ -22066,8 +22317,15 @@ SELECT ALL - col1 + 64 * + col0 col0 FROM tab2 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 31 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 31 AS col2, col0 AS col2 FROM tab2 +---- +31 +31 +31 +46 +64 +75 query I rowsort label-3625 SELECT ALL - MIN ( - 6 ) FROM tab0 @@ -22387,8 +22645,15 @@ SELECT DISTINCT 7 * + col2 + col2 FROM tab1 AS cor0 # Datafusion - Expected - -2435 # Datafusion - Expected - 58 # Datafusion - Expected - -4235 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "Int64\(48\) \+ tab2\.col2 \* \(\- tab2\.col0\) \+ tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 col0, + 48 + col2 * - col0 + + col1 AS col0 FROM tab2 +---- +-2435 +-4235 +-959 +23 +40 +58 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN ( + + 88 ) AND ( NULL ) @@ -23666,8 +23931,15 @@ SELECT DISTINCT MAX ( DISTINCT - col0 ) FROM tab0 AS cor0 # Datafusion - Expected - 147 # Datafusion - Expected - 66 # Datafusion - Expected - 159 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col2" at position 0 and "cor0\.col0 \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 66 AS col2, col0 + ( + + col2 ) col2 FROM tab1 AS cor0 +---- +144 +147 +159 +66 +66 +66 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE col1 + 85 < NULL @@ -23691,8 +23963,15 @@ SELECT - COUNT ( * ) AS col2, - COUNT ( * ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 768240 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- cor0\.col2\) \* Int64\(80\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - col0 ) * + - col2 * + 80 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 +---- +56400 +69600 +768240 +NULL +NULL +NULL query II rowsort SELECT ALL + ( - col2 ) AS col1, 9 FROM tab2 @@ -24767,8 +25046,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT - 98 * - col0 IS NOT NULL # Datafusion - Expected - 40 # Datafusion - Expected - -75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +23 +40 +58 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 @@ -24777,8 +25063,15 @@ SELECT DISTINCT - col0 AS col1, col2 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - -96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, col2 col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +59 +68 +96 query I rowsort SELECT ALL - col0 * 55 AS col1 FROM tab1 cor0 @@ -24824,8 +25117,15 @@ SELECT ALL col1 + - col0 * + + 13 AS col1 FROM tab2 # Datafusion - Expected - -135 # Datafusion - Expected - -75 # Datafusion - Expected - -146 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col1" at position 0 and "Int64\(\-71\) \+ \(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, - 71 + - + col0 AS col1 FROM tab2 +---- +-117 +-135 +-146 +-46 +-64 +-75 query II rowsort label-4069 SELECT 55 / + CAST ( NULL AS INTEGER ), col2 * 46 + col1 + + CAST ( NULL AS INTEGER ) + - col2 * - col0 AS col0 FROM tab2 @@ -25068,8 +25368,10 @@ SELECT + col1 - + col0 / + + col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 135213b0ca44925bd5125b00409b70f8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-60\)\) AS col2" at position 0 and "cor0\.col2 \* Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - - 60 AS col2, col2 * + ( 2 ) col2, - - col1 FROM tab2 AS cor0 +---- +9 values hashing to c95c8727e375ff5547d48b7bbd2aa6fc query I rowsort SELECT + - 2 + col2 AS col0 FROM tab2 AS cor0 @@ -25174,8 +25476,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 WHERE col2 IS NOT NULL +---- +3 +3 query I rowsort label-4126 SELECT - 51 * - SUM ( ALL + 17 ) AS col1 FROM tab1 @@ -25531,8 +25836,15 @@ SELECT CAST ( MIN ( ALL - - col0 ) AS INTEGER ) FROM tab0 # Datafusion - Expected - 59 # Datafusion - Expected - 6188 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* tab1\.col0 AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * + + col0 AS col1, col2 AS col1 FROM tab1 +---- +4896 +5015 +59 +6188 +68 +96 query I rowsort SELECT ALL 87 col1 FROM tab0 cor0 @@ -26632,8 +26944,11 @@ SELECT DISTINCT + col2, 89 col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 227 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(tab1\.col0\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( ALL ( col0 ) ) AS col1, + 14 AS col1 FROM tab1 +---- +14 +227 query III rowsort SELECT DISTINCT * FROM tab0 cor0 WHERE - col2 >= NULL @@ -26688,8 +27003,15 @@ SELECT ALL col1 + + col2 - - col2 * + 91 * - + col2 * 34 + + - 82 FROM tab1 # Datafusion - Expected - -6 # Datafusion - Expected - 48 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \* Int64\(12\) AS col1" at position 0 and "Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 4 * 12 AS col1, - 6 AS col1 FROM tab1 +---- +-6 +-6 +-6 +48 +48 +48 query I rowsort SELECT ALL - - col0 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL @@ -26796,14 +27118,24 @@ SELECT DISTINCT * FROM tab1 WHERE NOT NULL < + - 47 * - col1 # Datafusion - Expected - 76 # Datafusion - Expected - 96 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, + 76 AS col0 FROM tab1 +---- +59 +68 +76 +76 +76 +96 # 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col1, SUM ( + col0 ) col1 FROM tab2 +---- +-3 +185 query I rowsort SELECT - 74 FROM tab0 WHERE NOT + col1 IS NOT NULL @@ -27503,8 +27835,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, 49 AS col0 FROM tab2 AS cor0 +---- +-3 +49 query I rowsort SELECT col1 * col1 * col1 FROM tab2 cor0 @@ -28059,8 +28394,11 @@ 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\(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\. +query II valuesort SELECT ALL + + COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 +---- +3 +3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 @@ -28069,8 +28407,15 @@ SELECT ALL + + COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query II rowsort SELECT ALL - + col2 AS col1, col2 col2 FROM tab1 AS cor0 @@ -28574,8 +28919,15 @@ SELECT - - 89 + col2 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 441 # Datafusion - Expected - -67 # Datafusion - Expected - 6561 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \+ \(\- cor0\.col2\) \- Int64\(40\) AS col2" at position 0 and "cor0\.col1 \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 20 + + ( - col2 ) - 40 AS col2, col1 * + col1 AS col2 FROM tab0 AS cor0 +---- +-119 +-30 +-67 +1 +441 +6561 query III rowsort label-4685 SELECT DISTINCT * FROM tab0 WHERE NOT - col1 + - col1 BETWEEN CAST ( NULL AS INTEGER ) AND NULL @@ -28631,8 +28983,15 @@ SELECT 34 + + - col2 FROM tab2 # Datafusion - Expected - -66 # Datafusion - Expected - 1661 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* Int64\(21\) \+ \(\- \(\- Int64\(44\)\)\) AS col2" at position 0 and "Int64\(\-66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + + 21 + - - ( + 44 ) AS col2, - 66 col2 FROM tab2 +---- +-66 +-66 +-66 +1115 +1451 +1661 query I rowsort SELECT + - col2 * - - col2 + + col2 FROM tab2 AS cor0 @@ -29173,8 +29532,15 @@ SELECT col0, + 2 FROM tab0 # Datafusion - Expected - 1 # Datafusion - Expected - 58 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "tab2\.col1 / tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col0, col1 / col2 AS col0 FROM tab2 +---- +1 +1 +2 +23 +40 +58 query I rowsort SELECT ALL + - col0 col2 FROM tab2 WHERE NULL >= col1 @@ -31626,8 +31992,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(2\)\) AS col0" at position 0 and "Int64\(28\) \+ Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( DISTINCT 2 ) AS col0, + 28 + + 31 AS col0 FROM tab2 +---- +2 +59 query I rowsort label-5185 SELECT DISTINCT + col0 * col2 / + - 99 AS col1 FROM tab2 AS cor0 @@ -31809,8 +32178,15 @@ SELECT DISTINCT + MAX ( col0 ) AS col2 FROM tab1 # Datafusion - Expected - -97 # Datafusion - Expected - 804 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* Int64\(59\) \- tab0\.col1 AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * 59 - + col1 col2, - col0 AS col2 FROM tab0 +---- +-15 +-87 +-97 +5112 +5722 +804 query III rowsort SELECT * FROM tab0 WHERE NOT - col1 < ( ( - + col2 ) ) - + 55 @@ -31913,8 +32289,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 80 # Datafusion - Expected - NULL # Datafusion - Expected - 60 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ Int64\(\-36\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(63\)\) \* cor0\.col1 \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 + - 36 AS col2, - CAST ( NULL AS INTEGER ) * + - ( 63 ) * + col1 + + + col2 col2 FROM tab1 AS cor0 WHERE NOT + 81 IS NULL +---- +23 +32 +60 +NULL +NULL +NULL query II rowsort label-5233 SELECT DISTINCT + - ( CAST ( - col1 AS INTEGER ) ), - col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL ) @@ -32174,8 +32557,11 @@ SELECT - col1 col0 FROM tab1 cor0 WHERE NOT + col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 99 AS col1, COUNT ( * ) AS col1 FROM tab2 cor0 +---- +3 +99 query I rowsort label-5278 SELECT DISTINCT - MAX ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 @@ -32185,8 +32571,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 166 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "sum\(DISTINCT CAST\(cor0\.col0 AS Int32\)\) \+ CAST\(Int64\(\-33\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col0, + SUM ( DISTINCT + CAST ( col0 AS INTEGER ) ) + CAST ( + - 33 AS INTEGER ) col0 FROM tab0 AS cor0 +---- +166 +3 query I rowsort SELECT ALL - + col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL @@ -33054,8 +33443,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 AS col0, - COUNT ( * ) AS col0 FROM tab2 +---- +-3 +-70 query I rowsort SELECT ALL + 45 + + - col2 AS col2 FROM tab1 @@ -33323,8 +33715,15 @@ SELECT DISTINCT + - col1 + - 10 / + + col0 - + col1 FROM tab0 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 95 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ Int64\(44\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + 44 col0, ( + - col1 ) AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +129 +135 +95 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < col0 + col2 * + ( - 81 ) + + - col2 + - 81 + - - 1 @@ -33475,8 +33874,9 @@ query error DataFusion error: Schema error: Schema contains qualified field name SELECT DISTINCT 98 + - - 10 AS col0, col1, + 57 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col1" at position 0 and "Int64\(\-23\) \+ Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 82 AS col1, - 23 + 47 AS col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -33875,8 +34275,15 @@ SELECT ALL + col2 / 44 + col1 AS col0 FROM tab2 # Datafusion - Expected - 34 # Datafusion - Expected - -75 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "CAST\(Int64\(34\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, + CAST ( + 34 AS INTEGER ) AS col2 FROM tab2 +---- +-46 +-64 +-75 +34 +34 +34 query III rowsort SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + col0, 22 ) @@ -34021,8 +34428,15 @@ SELECT col1 * + col1 col2, + col2 AS col0, - col1 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - 0 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) / tab1\.col0 AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 61 / col0 AS col0, col1 AS col0 FROM tab1 +---- +-1 +0 +0 +14 +47 +5 query I rowsort label-5577 SELECT + 85 + - + SUM ( - col1 ) AS col2 FROM tab0 WHERE NOT CAST ( 13 AS FLOAT8 ) > NULL @@ -34050,8 +34464,11 @@ SELECT ( + - CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, 6 AS col1 FROM tab0 +---- +3 +6 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE - 65 IS NOT NULL @@ -34207,8 +34624,15 @@ SELECT + + 51 AS col0 FROM tab1 WHERE NOT col1 < + col1 # Datafusion - Expected - -81 # Datafusion - Expected - 99 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, - col1 AS col1 FROM tab0 +---- +-1 +-21 +-81 +10 +47 +99 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT + 70 IS NOT NULL @@ -34376,8 +34800,15 @@ SELECT - col2 * + ( + 39 ) FROM tab2 # Datafusion - Expected - -3196 # Datafusion - Expected - 375 # Datafusion - Expected - -295 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(25\)\) \* Int64\(\-3\) \* cor0\.col1 AS col0" at position 0 and "cor0\.col2 \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 25 * + - 3 * col1 AS col0, + col2 * + - col1 AS col0 FROM tab1 AS cor0 +---- +-1344 +-295 +-3196 +1050 +3525 +375 query I rowsort SELECT ALL - 89 + col0 FROM tab1 AS cor0 @@ -34564,8 +34995,15 @@ SELECT - 31 * col1 FROM tab0 # Datafusion - Expected - 40 # Datafusion - Expected - -2900 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \* tab2\.col2 AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 50 * + + col2 AS col0, + col2 AS col0 FROM tab2 +---- +-1150 +-2000 +-2900 +23 +40 +58 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT - + col2 - + col0 IS NOT NULL @@ -35792,8 +36230,15 @@ SELECT DISTINCT col0 + + col2 AS col0 FROM tab0 WHERE ( NOT col2 IS NOT NULL ) # Datafusion - Expected - -5 # Datafusion - Expected - 30 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 col1, - 5 AS col1 FROM tab1 AS cor0 +---- +-5 +-5 +-5 +30 +30 +30 query II rowsort SELECT col1, + col0 FROM tab1 AS cor0 @@ -36477,8 +36922,15 @@ SELECT - ( - SUM ( DISTINCT + - 34 ) ) FROM tab0 AS cor0 # Datafusion - Expected - -46 # Datafusion - Expected - 24 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 + + + col0 col1, - col0 AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +17 +23 +24 query I rowsort SELECT - col2 FROM tab2 WHERE + ( + col1 ) IS NOT NULL @@ -36994,8 +37446,15 @@ SELECT 43 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NO # Datafusion - Expected - 34 # Datafusion - Expected - -675 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* Int64\(\-45\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 * - 45 AS col2, 34 AS col2 FROM tab0 +---- +-3915 +-4365 +-675 +34 +34 +34 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT - ( col0 ) IS NULL @@ -39036,8 +39495,15 @@ SELECT - 71 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 59 # Datafusion - Expected - 91 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 AS col1, col2 AS col1 FROM tab1 AS cor0 +---- +51 +59 +68 +85 +91 +96 query I rowsort label-6409 SELECT ALL - 11 + + COUNT ( * ) - MIN ( DISTINCT col1 ) * - 58 AS col0 FROM tab1 AS cor0 @@ -39070,8 +39536,15 @@ SELECT ALL col0, + ( col2 ) FROM tab0 # Datafusion - Expected - 38 # Datafusion - Expected - 2400 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* tab2\.col0 AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 32 * + col0 AS col1, 38 AS col1 FROM tab2 +---- +1472 +2048 +2400 +38 +38 +38 query I rowsort SELECT ALL + 89 * - + col1 FROM tab1 @@ -39664,8 +40137,15 @@ SELECT - + col0 + ( - - col1 ) AS col1, 37 FROM tab0 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 6256 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- cor0\.col0\) \* \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + - col0 * + - col2 AS col1, 85 AS col1 FROM tab1 cor0 +---- +4992 +5074 +6256 +85 +85 +85 query I rowsort SELECT col2 + 65 * + 10 FROM tab1 AS cor0 @@ -40036,8 +40516,9 @@ SELECT + - col0 AS col1 FROM tab2 WHERE col0 BETWEEN col2 + - 94 * - col1 AND NU ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "tab2\.col0 / Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - col1 ) AS col1, col0 / - 84 AS col1 FROM tab2 WHERE + + 36 = col2 +---- query I rowsort label-6569 SELECT - ( + - COUNT ( * ) ) FROM tab2, tab2 AS cor0 @@ -40107,8 +40588,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN + ( - + col0 ) + - - col2 AND # Datafusion - Expected - -68 # Datafusion - Expected - -99 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col2\) AS Int32\) AS col1" at position 0 and "\(\- CAST\(Int64\(68\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + CAST ( + - col2 AS INTEGER ) AS col1, - CAST ( + 68 AS INTEGER ) AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-68 +-68 +-68 +-99 query I rowsort SELECT ALL + + col1 + + 90 FROM tab1 AS cor0 @@ -41601,8 +42089,12 @@ NULL # Datafusion - Expected - -3 # Datafusion - Expected - NULL # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 and "max\(cor0\.col1\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - COUNT ( * ), + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0, + MAX ( + col1 ) AS col0 FROM tab1 AS cor0 +---- +-3 +47 +NULL query II rowsort SELECT DISTINCT 99 AS col0, - 95 FROM tab0 @@ -42194,8 +42686,15 @@ SELECT + 66, - 39 * ( - 92 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - -68514 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ cor0\.col1 \* cor0\.col2 \* \(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 + col1 * + col2 * - col0 AS col2, col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL +---- +-25045 +-290806 +-68514 +51 +85 +91 query I rowsort SELECT ALL 59 + + col0 AS col2 FROM tab1 WHERE NOT - - 87 IS NULL @@ -44147,8 +44646,10 @@ SELECT + col0 / - + col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a26e0e7127442e859312ef067b8a5b22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col0" at position 0 and "\(\- \(\- cor0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + ( + 71 ) AS col0, + ( - + ( + - col1 ) ) AS col0, - 62 + col1 * + col1 FROM tab2 AS cor0 +---- +9 values hashing to 3099d36de111273dbf25bee6e960ef97 query I rowsort label-7259 SELECT DISTINCT - col0 + - col1 + + - CAST ( NULL AS INTEGER ) * - 89 AS col2 FROM tab2 AS cor0 @@ -44200,8 +44701,15 @@ SELECT * FROM tab2 AS cor0 WHERE - ( + 74 ) IS NOT NULL # Datafusion - Expected - 2304 # Datafusion - Expected - 2 # Datafusion - Expected - 2304 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ Int64\(\-89\) AS col1" at position 0 and "Int64\(36\) \* Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 + - 89 AS col1, + ( + 36 ) * 64 AS col1 FROM tab1 +---- +-38 +-4 +2 +2304 +2304 +2304 # Datafusion - Datafusion expected results: # Datafusion - Expected - 130 @@ -44210,8 +44718,15 @@ SELECT ALL col0 + - 89 AS col1, + ( + 36 ) * 64 AS col1 FROM tab1 # Datafusion - Expected - 59 # Datafusion - Expected - 170 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \- \(\- tab1\.col0\) \+ Int64\(94\) \- Int64\(\-82\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 97 - - col0 + + 94 - + - 82 AS col1, + col2 AS col1 FROM tab1 +---- +130 +164 +170 +59 +68 +96 query I rowsort SELECT + 11 * + - col1 FROM tab1 @@ -44664,8 +45179,11 @@ SELECT - MAX ( + col2 ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col2, + 29 AS col2 FROM tab1 +---- +29 +NULL query I rowsort label-7340 SELECT + - CAST ( + + MAX ( DISTINCT + + 90 ) AS INTEGER ) FROM tab2 cor0 @@ -44768,8 +45286,15 @@ SELECT DISTINCT 28 * 60 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 96 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(96\) AS Int32\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + 96 AS INTEGER ) AS col1, col0 AS col1 FROM tab0 +---- +15 +87 +96 +96 +96 +97 query I rowsort label-7358 SELECT DISTINCT 55 * - + 41 * - - COUNT ( * ) AS col1 FROM tab1 @@ -45177,8 +45702,15 @@ NULL # Datafusion - Expected - -87 # Datafusion - Expected - 81 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, - col0 col2 FROM tab0 +---- +-15 +-87 +-97 +1 +21 +81 query I rowsort label-7423 SELECT 17 * MIN ( DISTINCT + col2 ) AS col1 FROM tab2 @@ -45553,8 +46085,15 @@ SELECT * FROM tab1 AS cor0 WHERE 13 BETWEEN NULL AND NULL # Datafusion - Expected - -46 # Datafusion - Expected - 5 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \+ \(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 + - + col1 AS col0, - col0 AS col0 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +15 +31 +5 query I rowsort label-7484 SELECT MIN ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0 @@ -45600,8 +46139,15 @@ SELECT DISTINCT 43 * + col1 * - col1 AS col0 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) \* CAST\(NULL AS Int32\) \* tab2\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 col2, + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * col2 col2 FROM tab2 +---- +51 +67 +77 +NULL +NULL +NULL query I rowsort SELECT ALL ( + 19 ) FROM tab2 @@ -45617,8 +46163,15 @@ SELECT ALL ( + 19 ) FROM tab2 # Datafusion - Expected - -68 # Datafusion - Expected - NULL # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab1\.col0 AS Int32\)\) \* tab1\.col2 \* Int64\(84\) \* \(\- \(\- tab1\.col0\)\) \+ CAST\(NULL AS Int32\) / Int64\(23\) \* tab1\.col2 \* \(\- tab1\.col0\) AS col1" at position 0 and "\(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + CAST ( + col0 AS INTEGER ) * col2 * + + 84 * - - col0 + CAST ( NULL AS INTEGER ) / + + 23 * col2 * - col0 AS col1, - col2 AS col1 FROM tab1 WHERE NOT - col0 = col1 +---- +-59 +-68 +-96 +NULL +NULL +NULL query I rowsort label-7493 SELECT DISTINCT + COUNT ( DISTINCT + 11 ) FROM tab0 AS cor0 @@ -46770,8 +47323,15 @@ SELECT DISTINCT 52, col2 + - - col1 AS col2 FROM tab1 # Datafusion - Expected - -68 # Datafusion - Expected - 86 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "\(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 86 col2, - col2 col2 FROM tab1 +---- +-59 +-68 +-96 +86 +86 +86 query I rowsort label-7683 SELECT ALL + col0 / + - col0 AS col0 FROM tab0 @@ -47990,8 +48550,15 @@ NULL # Datafusion - Expected - 71 # Datafusion - Expected - NULL # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col0, 71 col0 FROM tab1 cor0 +---- +71 +71 +71 +NULL +NULL +NULL query I rowsort label-7878 SELECT DISTINCT + COUNT ( * ) + - + 9 AS col0 FROM tab0 @@ -48706,8 +49273,15 @@ SELECT ( + 85 ) + + + 31 + ( + col2 ) * 15 FROM tab1 AS cor0 # Datafusion - Expected - 82 # Datafusion - Expected - 90 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col0 AS col1" at position 0 and "cor0\.col2 \- cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 + col0 AS col1, col2 - col1 AS col1 FROM tab1 AS cor0 +---- +138 +21 +54 +65 +82 +90 query I rowsort SELECT DISTINCT - col1 + col2 + 34 FROM tab0 cor0 @@ -49328,8 +49902,15 @@ SELECT + + col0 * + + 48 + + col2 FROM tab1 cor0 # Datafusion - Expected - -40 # Datafusion - Expected - 58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 col0, - col2 AS col0 FROM tab2 +---- +-23 +-40 +-58 +23 +40 +58 query I rowsort label-8101 SELECT ALL - COUNT ( * ) * - + 21 FROM tab1 @@ -49520,8 +50101,15 @@ SELECT DISTINCT COUNT ( * ) / - 45 col1 FROM tab2 # Datafusion - Expected - -40 # Datafusion - Expected - -75 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 AS col2, - col2 AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-46 +-58 +-64 +-75 query I rowsort label-8132 SELECT DISTINCT + - COUNT ( * ) / + MIN ( ALL + col2 ) FROM tab2 AS cor0 @@ -49628,8 +50216,15 @@ SELECT 63 * col0 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 75 # Datafusion - Expected - 97 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, 75 AS col2 FROM tab0 AS cor0 +---- +15 +75 +75 +75 +87 +97 query I rowsort label-8149 SELECT MIN ( 52 ) / 42 FROM tab1 AS cor0 @@ -49990,8 +50585,11 @@ SELECT SUM ( DISTINCT 10 ) * - COUNT ( * ) AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 97 AS col1, COUNT ( * ) col1 FROM tab2 +---- +3 +97 query III rowsort SELECT * FROM tab2 WHERE - col2 + - col1 / + ( 25 ) + + col1 * col0 * - + col2 * col0 + - + col2 IS NOT NULL @@ -50559,8 +51157,10 @@ SELECT ALL 93, col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to e729c56463b5b87181650035f3ba1d42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 1 and "Int64\(\-16\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 94, col1 AS col2, - 16 AS col2 FROM tab2 AS cor0 +---- +9 values hashing to d35dd3bf7dc7497ccb6d66c8ef390787 query I rowsort SELECT + ( col0 ) * - - col1 col1 FROM tab2 AS cor0 @@ -51036,8 +51636,15 @@ SELECT ALL col2 * ( - col1 ) / + col0 + + - col0 FROM tab1 # Datafusion - Expected - -156 # Datafusion - Expected - 990 # Datafusion - Expected - -104 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) \* \(\- tab0\.col0\) AS col2" at position 0 and "Int64\(\-57\) \- tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 66 * - col0 AS col2, - 57 - + + col2 AS col2 FROM tab0 +---- +-104 +-156 +-67 +5742 +6402 +990 query III rowsort SELECT DISTINCT * FROM tab1 WHERE ( NOT NULL < - col2 ) @@ -52163,8 +52770,11 @@ SELECT - + SUM ( + + 57 ) AS col1, SUM ( - col1 ) + - 33 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(14\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) * + 14 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +-42 +NULL query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT - ( - col2 ) * 9 = NULL @@ -52186,8 +52796,15 @@ SELECT - - col1 * + col0 AS col0 FROM tab0 WHERE NOT - 70 - - 55 * col1 = NULL # Datafusion - Expected - 3080 # Datafusion - Expected - 27 # Datafusion - Expected - 3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col2" at position 0 and "tab2\.col1 \* tab2\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 AS col2, col1 * + col2 AS col2 FROM tab2 +---- +1173 +27 +27 +27 +3080 +3886 query I rowsort SELECT ALL + 48 * + - 5 AS col2 FROM tab0 @@ -52305,8 +52922,11 @@ SELECT col2 - 29 + - 52 * + CAST ( col1 AS INTEGER ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "min\(\(\- tab0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0, MIN ( ALL + - col0 ) AS col0 FROM tab0 +---- +-97 +0 query I rowsort SELECT + + col1 FROM tab1 WHERE NOT + col2 IS NULL @@ -52846,8 +53466,15 @@ SELECT CAST ( - 38 AS INTEGER ) AS col0 FROM tab0 # Datafusion - Expected - -47 # Datafusion - Expected - 64 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 AS col1, ( - + col1 ) AS col1 FROM tab1 +---- +-14 +-47 +-5 +64 +64 +64 query I rowsort label-8678 SELECT DISTINCT + CAST ( col0 AS INTEGER ) AS col2 FROM tab2 @@ -52977,8 +53604,15 @@ SELECT + 72 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, col2 AS col0 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-8700 SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 68 * col1 * + col2 AS col1 FROM tab2 AS cor0 @@ -53183,8 +53817,11 @@ 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\(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\. +query II valuesort SELECT ALL 9 * - COUNT ( * ) AS col2, + 56 col2 FROM tab2 AS cor0 +---- +-27 +56 query III rowsort SELECT DISTINCT * FROM tab0 cor0 WHERE - col1 >= + 48 @@ -53405,8 +54042,15 @@ SELECT - MIN ( - + col1 ) * - 2 + - 0 col0 FROM tab0 AS cor0 # Datafusion - Expected - -1746 # Datafusion - Expected - -88 # Datafusion - Expected - -270 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(88\)\) AS col2" at position 0 and "cor0\.col0 \* Int64\(\-18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - + 88 ) AS col2, col0 * - 18 AS col2 FROM tab0 AS cor0 +---- +-1566 +-1746 +-270 +-88 +-88 +-88 query I rowsort SELECT ALL + ( + - 10 ) FROM tab0 AS cor0 @@ -54412,8 +55056,11 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > ( + 45 + - + 4 + - 97 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 AS col1, + COUNT ( * ) AS col1 FROM tab1 cor0 +---- +-31 +3 query III rowsort SELECT * FROM tab2 AS cor0 WHERE 89 + 49 + + ( ( + col0 ) ) NOT IN ( - 11 ) @@ -54848,8 +55495,11 @@ SELECT + MIN ( DISTINCT + 94 ) AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "Int64\(49\) \+ Int64\(\-53\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 7 AS col0, 49 + - 53 / COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +32 +7 query I rowsort label-9006 SELECT DISTINCT COUNT ( + + 43 ) AS col1 FROM tab1 AS cor0 @@ -55299,8 +55949,11 @@ SELECT ALL + ( + MAX ( + ( + col0 ) ) ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab0 WHERE + 16 IS NULL +---- +0 +0 query I rowsort label-9076 SELECT + ( COUNT ( * ) ) * - - 58 AS col1 FROM tab2 @@ -55422,8 +56075,15 @@ SELECT ALL COUNT ( DISTINCT + + 76 ) col2 FROM tab0 # Datafusion - Expected - -75 # Datafusion - Expected - -77 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, - col0 AS col1 FROM tab2 +---- +-46 +-51 +-64 +-67 +-75 +-77 query I rowsort SELECT ALL + 13 * col2 col2 FROM tab0 AS cor0 WHERE col1 + + 25 + + 94 BETWEEN + col2 AND - - col2 @@ -56502,8 +57162,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) \* count\(Int64\(\-36\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 95 AS col0, 3 * - - COUNT ( * ) * COUNT ( - 36 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 +---- +243 +95 query I rowsort SELECT ALL + col1 * - 90 * - + 55 + + col1 * col1 + + 67 - + col0 AS col1 FROM tab2 AS cor0 @@ -56572,8 +57235,15 @@ SELECT - ( - + col2 ) * col1 FROM tab2 # Datafusion - Expected - 25 # Datafusion - Expected - -9725324 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \* \(\- \(\- tab2\.col2\)\) \* Int64\(49\) \* Int64\(59\) AS col1" at position 0 and "Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 * - - col2 * 49 * + 59 AS col1, 25 AS col1 FROM tab2 +---- +-1529339 +-4625600 +-9725324 +25 +25 +25 query I rowsort SELECT DISTINCT + ( - + 70 ) + - - col2 * - + ( - - col1 ) * - 14 AS col1 FROM tab2 WHERE NOT NULL IN ( - 2, + col2 ) @@ -56676,8 +57346,15 @@ NULL # Datafusion - Expected - -8281 # Datafusion - Expected - -6003 # Datafusion - Expected - -2601 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* \(\- cor0\.col2\) \- cor0\.col0 AS col0" at position 0 and "cor0\.col0 \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 62 * - + col2 - + col0 AS col0, col0 * + - col0 AS col0 FROM tab1 AS cor0 +---- +-2601 +-3743 +-4307 +-6003 +-7225 +-8281 query I rowsort label-9297 SELECT + col0 * col1 / col2 + - col2 FROM tab0 cor0 @@ -57117,8 +57794,11 @@ SELECT DISTINCT ( + 49 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(19\)\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MIN ( DISTINCT + 19 ) col0, ( 48 ) col0 FROM tab1 cor0 +---- +19 +48 query I rowsort SELECT + col0 + 11 - - col2 * - col2 col0 FROM tab0 cor0 @@ -57413,8 +58093,15 @@ SELECT - - 74 * - 51 * + ( + - ( + 33 ) ) + + col1 / + + col2 + col2 * ( - col0 # Datafusion - Expected - 65 # Datafusion - Expected - 75 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, 65 AS col1 FROM tab2 +---- +46 +64 +65 +65 +65 +75 query I rowsort label-9424 SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT - + 53 = ( - 93 ) @@ -57668,8 +58355,15 @@ SELECT + ( - 96 ) FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( col2 ), col2 AS col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT ALL 20 + + 65 AS col0 FROM tab1 AS cor0 @@ -58475,8 +59169,15 @@ SELECT ALL - col1 * - 22 + col1 col1 FROM tab1 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - 29 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 29 AS col0, - col1 col0 FROM tab2 AS cor0 WHERE + col0 NOT IN ( - ( + - 69 ) ) +---- +-51 +-67 +-77 +29 +29 +29 query III rowsort SELECT * FROM tab1 cor0 WHERE col1 + col0 IS NULL @@ -58683,8 +59384,15 @@ SELECT ALL - col0 + 19 + - 55 * + col0 AS col1 FROM tab2 cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 1 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 1 AS col1, col0 AS col1 FROM tab0 AS cor0 +---- +1 +1 +1 +15 +87 +97 query I rowsort SELECT DISTINCT col2 + - + 61 col1 FROM tab1 @@ -58806,8 +59514,15 @@ SELECT - + col1 * col2 / - 25 FROM tab2 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query II rowsort label-9645 SELECT col2 AS col1, - CAST ( - ( + - col0 ) AS INTEGER ) AS col0 FROM tab0 @@ -59352,8 +60067,10 @@ SELECT 67 AS col1, + 54 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 5784a1b0fe6042e940ea5642bd663b71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col1, + col1, col2 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 +---- +9 values hashing to ebc6d493c3ead69b50f5c776bb99c2f4 query I rowsort SELECT - + col2 * - - col1 * - 41 FROM tab1 cor0 @@ -59856,8 +60573,15 @@ SELECT ALL - 82 / - col1 FROM tab2 # Datafusion - Expected - 7275 # Datafusion - Expected - -2 # Datafusion - Expected - 4462 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 / \(\- tab2\.col2\) AS col0" at position 0 and "tab2\.col0 \* Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 / - + col2 AS col0, + col0 * + 97 AS col0 FROM tab2 +---- +-1 +-1 +-2 +4462 +6208 +7275 query I rowsort SELECT DISTINCT 39 * + + col2 * + 72 AS col2 FROM tab2 @@ -59898,8 +60622,11 @@ SELECT MAX ( - 81 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(cor0\.col1\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( ALL + col1 ) AS col0, + COUNT ( * ) col0 FROM tab0 AS cor0 +---- +1 +3 query I rowsort label-9830 SELECT DISTINCT - MIN ( 84 ) FROM tab2 cor0 @@ -59986,8 +60713,15 @@ SELECT ALL - ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE - 16 IS NULL # Datafusion - Expected - 4489 # Datafusion - Expected - 77 # Datafusion - Expected - 5929 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "tab2\.col1 \* tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 col2, col1 * col1 AS col2 FROM tab2 +---- +2601 +4489 +51 +5929 +67 +77 query II rowsort SELECT col0 AS col2, + 49 * - + 34 * - col1 FROM tab2 diff --git a/data/sqlite/random/aggregates/slt_good_30.slt b/data/sqlite/random/aggregates/slt_good_30.slt index a3efc42..95c23b0 100644 --- a/data/sqlite/random/aggregates/slt_good_30.slt +++ b/data/sqlite/random/aggregates/slt_good_30.slt @@ -841,8 +841,15 @@ SELECT ALL + CAST ( - col0 AS INTEGER ) * 91 - + col0 * 76 + - + 22 AS col1 FROM # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + + col2 ), col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-136 SELECT MIN ( ALL + + 18 ) FROM tab0 cor0 @@ -952,8 +959,15 @@ SELECT ALL 18 + ( + - 83 ) FROM tab2 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, - col1 AS col1 FROM tab1 AS cor0 +---- +-14 +-14 +-47 +-47 +-5 +-5 query I rowsort label-153 SELECT DISTINCT + - 57 + + CAST ( + 17 AS INTEGER ) * + 94 * + 46 col2 FROM tab1 AS cor0 @@ -1795,8 +1809,15 @@ SELECT + + col1 * - ( 89 ) + col1 / + 23 col1 FROM tab2 cor0 WHERE CAST ( + 44 A # Datafusion - Expected - 100 # Datafusion - Expected - 9 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \- Int64\(\-19\) AS col1" at position 0 and "cor0\.col1 \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 - + - 19 AS col1, col1 + + col2 AS col1 FROM tab0 AS cor0 +---- +-28 +-80 +100 +128 +31 +9 query I rowsort label-289 SELECT ALL - ( + 61 ) / col2 + + 96 FROM tab1 AS cor0 @@ -2044,8 +2065,15 @@ SELECT ALL - 95 + - 63 FROM tab0 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - -9 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + col2 AS col0, - col0 AS col0 FROM tab2 AS cor0 +---- +-28 +-37 +-46 +-64 +-75 +-9 query II rowsort SELECT + col0 + + 45 AS col2, col0 FROM tab0 AS cor0 @@ -2111,8 +2139,11 @@ SELECT * FROM tab2 WHERE NOT - col0 BETWEEN - + 24 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "min\(\(\- cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) * COUNT ( * ) AS col2, MIN ( ALL - col0 ) AS col2 FROM tab2 AS cor0 +---- +-75 +9 query I rowsort label-338 SELECT DISTINCT col1 / + col1 col0 FROM tab0 AS cor0 @@ -2404,8 +2435,15 @@ SELECT DISTINCT + - 19 AS col1, - COUNT ( * ) FROM tab0 AS cor0 WHERE - col2 / - # Datafusion - Expected - 58 # Datafusion - Expected - 92 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \+ cor0\.col0 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 + + col0 AS col0, + col2 AS col0 FROM tab2 AS cor0 +---- +128 +150 +23 +40 +58 +92 query I rowsort SELECT ALL col1 + - col1 + + + col2 AS col2 FROM tab2 cor0 @@ -2790,8 +2828,11 @@ SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 97 AS col1, + COUNT ( * ) col1 FROM tab1 AS cor0 +---- +-97 +3 query I rowsort SELECT - 95 * col2 AS col0 FROM tab2 AS cor0 WHERE NOT col2 * 79 IS NOT NULL @@ -3050,8 +3091,12 @@ SELECT ALL + SUM ( 53 ) FROM tab1 # Datafusion - Expected - -3 # Datafusion - Expected - NULL # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(51\) \+ sum\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + CAST ( - ( COUNT ( * ) ) AS INTEGER ) col0, 51 + + + SUM ( + + CAST ( NULL AS INTEGER ) ) AS col0, COUNT ( DISTINCT + + col2 ) - COUNT ( * ) * 31 FROM tab1 +---- +-3 +-90 +NULL query I rowsort SELECT + 44 * - + col0 * - - 72 FROM tab0 @@ -3282,8 +3327,15 @@ SELECT ( + 55 ) * - col0 + - col1 + ( + 71 ) FROM tab2 # Datafusion - Expected - -66 # Datafusion - Expected - -6120 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \* tab1\.col0 \+ tab1\.col2 AS col1" at position 0 and "Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 * + col0 + + col2 AS col1, - 66 AS col1 FROM tab1 +---- +-4800 +-4956 +-6120 +-66 +-66 +-66 query I rowsort SELECT 64 * - 96 AS col1 FROM tab2, tab1 AS cor0 @@ -3391,8 +3443,15 @@ SELECT - col0 * + - col1 + col1 + - 46 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 97 # Datafusion - Expected - 58 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, 97 AS col0 FROM tab2 AS cor0 +---- +23 +40 +58 +97 +97 +97 query I rowsort SELECT ALL + - 15 - - + 71 AS col2 FROM tab2 AS cor0 @@ -4085,8 +4144,15 @@ SELECT + 99 * - col0 FROM tab2 cor0 WHERE NOT - col2 * + CAST ( + col0 AS FLOAT8 # Datafusion - Expected - 2494 # Datafusion - Expected - -5 # Datafusion - Expected - 989 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col1" at position 0 and "Int64\(43\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 5 AS col1, + 43 * + col2 AS col1 FROM tab2 cor0 +---- +-5 +-5 +-5 +1720 +2494 +989 query I rowsort label-657 SELECT + - col2 / - + col2 AS col0 FROM tab1 AS cor0 @@ -4626,8 +4692,15 @@ NULL # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col1, col1 AS col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-744 SELECT DISTINCT + ( + SUM ( + col0 ) ) + + COUNT ( * ) FROM tab1 @@ -5818,8 +5891,15 @@ SELECT + - 24 AS col0 FROM tab1 cor0 # Datafusion - Expected - -67 # Datafusion - Expected - -77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 col0, - col1 AS col0 FROM tab2 AS cor0 +---- +-51 +-51 +-67 +-67 +-77 +-77 query I rowsort SELECT ALL - 26 FROM tab0 AS cor0 WHERE col2 IS NOT NULL @@ -6229,8 +6309,11 @@ SELECT - - col1 * + col2 * - 5 * - col0 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 156 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "sum\(DISTINCT tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 55 AS col2, + SUM ( DISTINCT + col2 ) AS col2 FROM tab0 WHERE - col1 <= 65 +---- +156 +55 query II rowsort SELECT ALL 16 * - col1 + + col0 + + - 37 * + - 84, - col1 col2 FROM tab2 @@ -6261,8 +6344,15 @@ SELECT ALL 54 AS col0 FROM tab0 AS cor0 WHERE ( 60 * + + col0 ) IS NOT NULL # Datafusion - Expected - 97 # Datafusion - Expected - -450 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(\-45\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * - 45 AS col1, + col0 AS col1 FROM tab0 AS cor0 +---- +-2115 +-4455 +-450 +15 +87 +97 query I rowsort SELECT DISTINCT 48 + + ( - ( + 58 ) ) FROM tab2 AS cor0 @@ -6363,8 +6453,11 @@ SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * + 3 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, - 46 AS col1 FROM tab1 cor0 +---- +-46 +3 query I rowsort SELECT - ( + 30 ) FROM tab1 AS cor0 @@ -6740,8 +6833,15 @@ SELECT ALL + 66 FROM tab2 AS cor0 WHERE col0 * + + col1 / 29 IS NULL # Datafusion - Expected - 68 # Datafusion - Expected - -45 # 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 "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 45 AS col0, col2 AS col0 FROM tab1 +---- +-45 +-45 +-45 +59 +68 +96 query I rowsort label-1096 SELECT - COUNT ( + col0 ) * COUNT ( * ) - + 36 - + 88 FROM tab1 WHERE NOT - + ( col1 ) IS NULL @@ -6968,8 +7068,10 @@ SELECT + - 1 col0, - 83 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to e4619f6475e0495bcae24bcbbd1ae258 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) AS col1" at position 1 and "Int64\(31\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 88, - 26 AS col1, + 31 col1 FROM tab2 AS cor0 +---- +9 values hashing to bbf92fb07cd0e023aa1ebae1fc8ff3ab query II rowsort SELECT 46 * + + 73, - col1 AS col1 FROM tab1 @@ -8187,8 +8289,11 @@ 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\(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\. +query II valuesort SELECT 12 + 97 + - COUNT ( * ) AS col2, 43 + 76 col2 FROM tab2 +---- +106 +119 query I rowsort label-1343 SELECT ALL ( - MAX ( col2 ) ) * + 37 AS col0 FROM tab0 WHERE NOT ( + - col0 / col0 ) IN ( - ( - col0 ) - + ( - 36 ) ) @@ -8280,8 +8385,15 @@ SELECT + COUNT ( ALL + 71 ) + + 34 AS col1 FROM tab2 WHERE ( - col2 ) NOT BETWEE # Datafusion - Expected - -74 # Datafusion - Expected - 22 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col0" at position 0 and "\(\- tab2\.col0\) \+ tab2\.col2 \- CAST\(tab2\.col1 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 22 col0, - col0 + col2 - + CAST ( + + col1 AS INTEGER ) col0 FROM tab2 +---- +-101 +-74 +-84 +22 +22 +22 query I rowsort SELECT col0 + + + 51 * - col2 AS col0 FROM tab0 @@ -9496,8 +9608,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 30 AS col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +-3 +30 query I rowsort SELECT ALL - col0 * 79 - col2 + ( + col0 ) FROM tab0 AS cor0 @@ -9893,8 +10008,15 @@ SELECT DISTINCT + 73 - + - col2 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - 58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, + col1 AS col0 FROM tab2 +---- +23 +40 +51 +58 +67 +77 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -11151,8 +11273,9 @@ SELECT DISTINCT - SUM ( + col0 ) - COUNT ( * ) AS col2 FROM tab0 cor0 -202 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- cor0\.col2\) \* cor0\.col1 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 + - col2 * col1 AS col2, + ( + col1 ) AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - - col0 +---- query I rowsort SELECT ALL + ( - col2 ) - - + 71 FROM tab2 AS cor0 @@ -11254,8 +11377,15 @@ SELECT DISTINCT - MAX ( ALL - col1 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 378 # Datafusion - Expected - 81 # Datafusion - Expected - 1458 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 \* \(\- Int64\(\-18\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col2, + col1 * - - 18 col2 FROM tab0 AS cor0 +---- +1 +1458 +18 +21 +378 +81 query I rowsort label-1851 SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL ) @@ -11780,8 +11910,15 @@ NULL # Datafusion - Expected - 81 # Datafusion - Expected - 99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, col1 AS col0 FROM tab0 AS cor0 +---- +1 +10 +21 +47 +81 +99 query I rowsort SELECT + col0 * - + ( + 43 ) + 58 - + 97 + - col0 * - col0 * - + col0 FROM tab1 AS cor0 @@ -12862,8 +12999,9 @@ SELECT DISTINCT - 37 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 -37 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, col1 FROM tab0 cor0 WHERE + 73 IS NULL +---- query I rowsort label-2108 SELECT + col2 FROM tab1 AS cor0 WHERE NOT NULL > CAST ( NULL AS INTEGER ) @@ -13224,8 +13362,15 @@ SELECT ALL 11 AS col0, - col1 * col0 * col1 + ( + col0 + - col2 ) AS col2 FROM t # Datafusion - Expected - -142 # Datafusion - Expected - 77 # Datafusion - Expected - -141 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "\(\- cor0\.col1\) \- cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 AS col0, - col1 - col0 col0 FROM tab2 AS cor0 +---- +-141 +-142 +-97 +51 +67 +77 query I rowsort label-2170 SELECT DISTINCT - 33 / + + 18 FROM tab2 AS cor0 @@ -14133,8 +14278,15 @@ SELECT ALL - COUNT ( - col2 ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 / \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col2, + col0 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 +---- +14 +47 +5 +NULL +NULL +NULL query I rowsort SELECT - col0 * - ( 64 ) * + ( - 20 ) + - col2 AS col2 FROM tab0 @@ -14265,8 +14417,11 @@ SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( NOT col0 IS NU # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 55 col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +-55 +3 query I rowsort label-2341 SELECT - 88 * CAST ( + - col2 AS INTEGER ) AS col0 FROM tab2 WHERE NOT + - col1 > NULL @@ -14433,8 +14588,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) + + 34 * 32 AS col2, ( - + 59 ) AS col2 FROM tab0 cor0 +---- +-59 +1091 query I rowsort label-2366 SELECT DISTINCT SUM ( DISTINCT + + 53 ) FROM tab1 AS cor0 @@ -14770,8 +14928,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + COUNT ( * ) ) AS col1, - 47 AS col1 FROM tab0 +---- +-3 +-47 query I rowsort SELECT col1 * + 2 - + 18 * + + 99 * - col2 * + 77 FROM tab1 @@ -15086,8 +15247,15 @@ NULL # Datafusion - Expected - 12 # Datafusion - Expected - -96 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* \(\- Int64\(6\)\) AS col1" at position 0 and "tab0\.col1 \- Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 16 * - + 6 AS col1, col1 - + + 9 AS col1 FROM tab0 +---- +-8 +-96 +-96 +-96 +12 +72 query I rowsort SELECT ALL + col2 + 16 FROM tab2 @@ -15177,8 +15345,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 31 BETWEEN col0 AND col0 * - col2 / # Datafusion - Expected - -912 # Datafusion - Expected - -75 # Datafusion - Expected - -9605 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col2" at position 0 and "Int64\(\-2\) \* cor0\.col1 \+ \(\- cor0\.col2\) \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 75 AS col2, - 2 * + col1 + - col2 * + col0 AS col2 FROM tab0 AS cor0 +---- +-75 +-75 +-75 +-867 +-912 +-9605 query II rowsort SELECT + col1, + col0 + + 6 FROM tab1 AS cor0 @@ -16448,8 +16623,15 @@ SELECT DISTINCT + 62 / - + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col0, + col0 AS col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query II rowsort SELECT - 96 AS col2, col2 AS col0 FROM tab1 @@ -17172,8 +17354,15 @@ SELECT ALL * FROM tab1 WHERE NOT + 97 * - 46 + + + col0 IS NULL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, col1 FROM tab0 cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-2824 SELECT ALL + COUNT ( * ) / + MIN ( + 24 ) + + COUNT ( * ) FROM tab1 AS cor0 WHERE col2 IS NULL @@ -17536,8 +17725,15 @@ SELECT col0 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL # Datafusion - Expected - 7 # Datafusion - Expected - 5 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \- \(\- \(\- CAST\(\(\- cor0\.col1\) AS Int32\)\)\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col0 - - - CAST ( - col1 AS INTEGER ) AS col2, 7 AS col2 FROM tab2 AS cor0 +---- +-8 +13 +5 +7 +7 +7 query I rowsort SELECT ALL - ( - col1 ) - col1 AS col0 FROM tab2 @@ -17580,8 +17776,15 @@ SELECT + + 66 FROM tab0 WHERE 73 * - - col2 * - col0 IS NULL # Datafusion - Expected - -70 # Datafusion - Expected - 96 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, - 70 AS col1 FROM tab1 +---- +-70 +-70 +-70 +59 +68 +96 query II rowsort SELECT DISTINCT - col0 * col0 * col2 AS col1, 25 FROM tab1 @@ -17995,8 +18198,15 @@ SELECT DISTINCT CAST ( 22 AS INTEGER ) FROM tab0 AS cor0 # Datafusion - Expected - 4624 # Datafusion - Expected - 88 # Datafusion - Expected - 9216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "\(\- cor0\.col2\) \* \(\- cor0\.col2\) \+ \(\- \(\- Int64\(\-29\)\)\) / cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 88 AS col1, - col2 * + - col2 + - + ( - - 29 ) / + col0 col1 FROM tab1 AS cor0 +---- +3481 +4624 +88 +88 +88 +9216 query I rowsort label-2960 SELECT - 0 * SUM ( + col0 ) FROM tab2 cor0 @@ -18495,8 +18705,15 @@ SELECT DISTINCT + - col0 AS col2 FROM tab1 WHERE NOT - + col0 IS NOT NULL # Datafusion - Expected - 67 # Datafusion - Expected - 7084 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* tab2\.col1 AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 * col1 col2, col1 AS col2 FROM tab2 +---- +4692 +51 +6164 +67 +7084 +77 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT ( + ( 3 ) ) IS NULL @@ -18622,8 +18839,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 76 AS col2, - COUNT ( * ) AS col2 FROM tab0 +---- +-3 +76 query I rowsort label-3067 SELECT COUNT ( ALL + ( - - col0 ) ) FROM tab0 @@ -19900,8 +20120,15 @@ SELECT col1 * + col2 / + - 46 FROM tab0 WHERE NOT NULL <> + col2 # Datafusion - Expected - -90 # Datafusion - Expected - 96 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, - 90 AS col0 FROM tab1 +---- +-90 +-90 +-90 +59 +68 +96 query I rowsort SELECT ALL + - 34 FROM tab1 cor0 @@ -20495,8 +20722,15 @@ SELECT ALL + col1 col1, col1 * 71 * col2 + + col0 * + col0 FROM tab2 # Datafusion - Expected - 67 # Datafusion - Expected - 69273 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \- cor0\.col1 \* Int64\(\-59\) \* cor0\.col2 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 66 - + col1 * + - 59 * col2 AS col0, ( + col1 ) AS col0 FROM tab2 AS cor0 +---- +181786 +229340 +51 +67 +69273 +77 query I rowsort SELECT DISTINCT col2 + + 18 FROM tab2 AS cor0 @@ -20512,8 +20746,15 @@ SELECT DISTINCT col2 + + 18 FROM tab2 AS cor0 # Datafusion - Expected - 15 # Datafusion - Expected - 77 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ cor0\.col0 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - col2 ) + + col0 AS col2, col0 AS col2 FROM tab0 AS cor0 +---- +-2 +-32 +15 +77 +87 +97 query I rowsort SELECT DISTINCT - - 42 + + + col0 + + - 41 + - col2 * - - 91 col1 FROM tab0 AS cor0 WHERE col1 * col2 - col2 > NULL @@ -21695,8 +21936,11 @@ SELECT 86 + - + col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 114 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(cor0\.col2\) \- \(\- Int64\(\-42\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( ALL col2 ) - - - 42 AS col1, CAST ( NULL AS INTEGER ) * - 87 AS col1 FROM tab0 AS cor0 +---- +114 +NULL query I rowsort SELECT ALL - + 97 * - col0 * + 79 FROM tab2 AS cor0 WHERE - ( ( col0 ) ) IS NOT NULL @@ -21736,8 +21980,10 @@ SELECT + col1 * - col0 * + col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f0ede127224dc5d7215dc0d6bd2ec0cb -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col2 \* \(\- cor0\.col0\) \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT col1 AS col2, + col2 * - col0 * - col2 AS col2, - + col1 FROM tab0 AS cor0 +---- +9 values hashing to a2eb256d8517ed704a61203271789452 query I rowsort label-3576 SELECT + col1 / - col0 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL < CAST ( NULL AS INTEGER ) @@ -22311,8 +22557,11 @@ SELECT 46 + + col2 + + 79 col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 291 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(97\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, 97 * COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +-3 +291 query I rowsort SELECT ALL + 82 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 @@ -23690,8 +23939,15 @@ SELECT - + MIN ( - - 21 ) FROM tab2 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 96 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, col1 AS col0 FROM tab1 AS cor0 +---- +14 +47 +5 +59 +68 +96 query II rowsort SELECT DISTINCT + - col0 AS col2, 17 + - - 59 FROM tab2 AS cor0 @@ -24431,8 +24687,15 @@ SELECT ALL COUNT ( ALL - + col0 ) FROM tab0 AS cor0 # Datafusion - Expected - 441 # Datafusion - Expected - -78 # Datafusion - Expected - 6561 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(78\)\) AS col0" at position 0 and "cor0\.col1 \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 78 col0, + col1 * col1 AS col0 FROM tab0 AS cor0 +---- +-78 +-78 +-78 +1 +441 +6561 query III rowsort label-4020 SELECT ALL * FROM tab2 cor0 WHERE NOT - col0 + + 37 + CAST ( NULL AS INTEGER ) * + col0 * + - col1 NOT IN ( col2 ) @@ -24564,8 +24827,11 @@ SELECT + + col2 AS col0 FROM tab2 AS cor0 WHERE NOT 47 * col0 + - ( - 24 ) + - c # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(78\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col0, + COUNT ( 78 ) AS col0 FROM tab0 cor0 +---- +3 +3 query III rowsort SELECT * FROM tab1 cor0 WHERE NOT + 99 * col2 * - 74 IS NULL @@ -24917,8 +25183,15 @@ SELECT DISTINCT + col2 / + - 82 col1 FROM tab2 cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col2, + col2 AS col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query II rowsort SELECT DISTINCT 91, col1 FROM tab2 @@ -24937,8 +25210,15 @@ SELECT DISTINCT 91, col1 FROM tab2 # Datafusion - Expected - 3 # Datafusion - Expected - -75 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col0, 3 AS col0 FROM tab2 +---- +-46 +-64 +-75 +3 +3 +3 query II rowsort SELECT - 81 AS col0, col0 + - 90 FROM tab0 @@ -25413,8 +25693,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 AS col0, - COUNT ( * ) AS col0 FROM tab2 cor0 +---- +-3 +37 query I rowsort SELECT DISTINCT 85 + - col0 FROM tab1 AS cor0 @@ -25881,8 +26164,11 @@ SELECT MIN ( DISTINCT 87 ) AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 86 AS col1, COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT - col1 < NULL +---- +-86 +0 query I rowsort SELECT ALL 67 col0 FROM tab2 cor0 @@ -26042,8 +26328,15 @@ SELECT 91 * + COUNT ( * ) FROM tab1, tab2 AS cor0 # Datafusion - Expected - -86 # Datafusion - Expected - 24 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 24 AS col1, - 86 AS col1 FROM tab0 +---- +-86 +-86 +-86 +24 +24 +24 query I rowsort SELECT DISTINCT + + col2 * + 59 FROM tab0 AS cor0 @@ -27247,8 +27540,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT MIN ( + 53 ) / - COUNT ( * ) + - 8 * - MAX ( DISTINCT + col0 ) AS col0, - 42 AS col0 FROM tab1 AS cor0 +---- +-42 +711 query I rowsort SELECT + - ( - + 56 ) FROM tab2 AS cor0 @@ -27317,8 +27613,11 @@ SELECT col2 / - 30 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +-3 +3 query I rowsort label-4493 SELECT DISTINCT + COUNT ( - col1 ) * + - CAST ( NULL AS INTEGER ) * - - ( + - 64 ) FROM tab1 @@ -27469,8 +27768,15 @@ SELECT ALL MAX ( - 42 ) AS col1, - COUNT ( * ) FROM tab0 cor0 # Datafusion - Expected - 85 # Datafusion - Expected - -3196 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col1 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 * col1 AS col2, + col0 AS col2 FROM tab1 AS cor0 +---- +-1344 +-295 +-3196 +51 +85 +91 query I rowsort SELECT - 61 + - + 34 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 @@ -27909,8 +28215,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - col1 # Datafusion - Expected - 91 # Datafusion - Expected - -495 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* Int64\(99\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 * 99 AS col2, col0 col2 FROM tab1 AS cor0 +---- +-1386 +-4653 +-495 +51 +85 +91 query III rowsort SELECT * FROM tab1 WHERE - - col2 * + - col0 + - col1 <> 52 @@ -28049,8 +28362,15 @@ SELECT + + SUM ( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 59 # Datafusion - Expected - -58 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col2, + 59 AS col2 FROM tab2 +---- +-23 +-40 +-58 +59 +59 +59 query I rowsort label-4615 SELECT DISTINCT + COUNT ( DISTINCT + + 82 ) FROM tab1 @@ -28328,8 +28648,15 @@ SELECT + COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -3995 # Datafusion - Expected - -52 # Datafusion - Expected - -4277 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) AS col2" at position 0 and "Int64\(47\) \* \(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + ( - 52 ) ) AS col2, + 47 * - col0 AS col2 FROM tab1 +---- +-2397 +-3995 +-4277 +-52 +-52 +-52 query I rowsort SELECT ALL + 33 * - ( col0 ) AS col2 FROM tab2 @@ -28472,8 +28799,15 @@ SELECT - col0 + 30 FROM tab1 AS cor0 # Datafusion - Expected - -21 # Datafusion - Expected - -37 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 37 AS col0, - col1 AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-37 +-37 +-37 +-81 query I rowsort label-4680 SELECT - COUNT ( ALL + 44 ) AS col0 FROM tab1 @@ -29334,8 +29668,11 @@ SELECT ALL * FROM tab0 cor0 WHERE NOT ( col0 IS 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\(DISTINCT cor0\.col0\) AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( DISTINCT col0 ) AS col0, 53 AS col0 FROM tab2 AS cor0 +---- +3 +53 query II rowsort label-4829 SELECT + ( COUNT ( * ) ) AS col2, COUNT ( * ) FROM tab0 AS cor0 @@ -29660,8 +29997,15 @@ SELECT + col1 FROM tab1 WHERE + 48 * + col2 + + - col2 IN ( + - col1, ( + - 91 ) # Datafusion - Expected - 0 # Datafusion - Expected - 99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col2" at position 0 and "cor0\.col2 / \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col2 AS col2, col2 / - col1 AS col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL +---- +-99 +0 +0 +10 +47 +99 query III rowsort label-4880 SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( + CAST ( col0 AS INTEGER ), CAST ( NULL AS INTEGER ), - - 1 + 90 * col1 ) @@ -32218,8 +32562,11 @@ SELECT - - 52 + + + 41 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -199 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "sum\(\(\- tab0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, SUM ( - col0 ) AS col1 FROM tab0 +---- +-199 +3 query I rowsort label-5314 SELECT + 93 / + COUNT ( + ( - col0 ) ) / - 1 FROM tab2 @@ -32781,8 +33128,15 @@ SELECT col0 * + 18 AS col0 FROM tab1 # Datafusion - Expected - 12 # Datafusion - Expected - -99 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, + 12 AS col1 FROM tab0 +---- +-10 +-47 +-99 +12 +12 +12 query I rowsort label-5407 SELECT DISTINCT COUNT ( * ) - 61 FROM tab0, tab0 AS cor0 @@ -33919,8 +34273,11 @@ SELECT DISTINCT + 67 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 223 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT cor0\.col2\) AS col1" at position 0 and "Int64\(0\) / Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + SUM ( DISTINCT + col2 ) AS col1, + 0 / + 77 AS col1 FROM tab1 cor0 +---- +0 +223 query I rowsort label-5596 SELECT ALL - MAX ( - + 93 ) + - - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 @@ -34885,8 +35242,15 @@ NULL # Datafusion - Expected - 1764 # Datafusion - Expected - 67 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) / tab0\.col1 AS col1" at position 0 and "Int64\(84\) \* tab0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 67 / + ( + + col1 ) col1, 84 * + col1 AS col1 FROM tab0 +---- +0 +1764 +3 +67 +6804 +84 query I rowsort label-5765 SELECT 70 * + - COUNT ( * ) FROM tab1 @@ -34963,13 +35327,18 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) AS col1, 13 col1 FROM tab0 AS cor0 +---- +-3 +13 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 12476e7262c9990f7f8d98eff9d260a9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-36\)\)\) AS col0" at position 1 and "Int64\(80\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col0 AS col1, - ( ( - - 36 ) ) col0, + + 80 AS col0 FROM tab0 AS cor0 +---- +9 values hashing to 092a98cd89ccda9c4f02aa319c8585b5 query I rowsort label-5778 SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0 @@ -35104,8 +35473,11 @@ SELECT - ( 50 ) AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(cor0\.col0\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( + col0 ) AS col0, + ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0 +---- +3 +3 query III rowsort SELECT * FROM tab2 AS cor0 WHERE 42 IS NOT NULL @@ -36345,8 +36717,15 @@ SELECT + COUNT ( * ) * + + 27 FROM tab2 AS cor0 # Datafusion - Expected - -91 # Datafusion - Expected - 20 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \- Int64\(76\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col2 - + 76 col0, - col0 AS col0 FROM tab1 AS cor0 +---- +-17 +-51 +-8 +-85 +-91 +20 query I rowsort SELECT - 27 * - col0 * 86 AS col1 FROM tab2 @@ -36403,8 +36782,15 @@ SELECT - col2 + + - 56 * + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + 16 BETWE # Datafusion - Expected - 71 # Datafusion - Expected - 84 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 AS col1, 71 AS col1 FROM tab2 AS cor0 +---- +71 +71 +71 +84 +84 +84 query II rowsort SELECT + ( + 65 ) * + - col2 + - + 97 / + col0 / - - 31 + - - 47, 11 * + + 1 / 62 AS col2 FROM tab1 AS cor0 WHERE NOT col1 >= - col1 @@ -36466,8 +36852,15 @@ SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL # Datafusion - Expected - 85 # Datafusion - Expected - 35 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 AS col1, col0 AS col1 FROM tab1 AS cor0 +---- +35 +35 +35 +51 +85 +91 query II rowsort SELECT - col1, + col0 AS col0 FROM tab2 cor0 @@ -37440,8 +37833,15 @@ SELECT ALL 85, col0 FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - 97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col0 col2, ( col1 ) AS col2 FROM tab0 cor0 +---- +1 +15 +21 +81 +87 +97 query I rowsort label-6190 SELECT ALL + - MIN ( - 43 ) AS col1 FROM tab1 AS cor0 @@ -37504,8 +37904,15 @@ SELECT ALL + col1 * - col0 * - 79 FROM tab2 cor0 # Datafusion - Expected - -4928 # Datafusion - Expected - -3886 # Datafusion - Expected - -5025 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col1 AS col2" at position 0 and "cor0\.col1 \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 * + col1 AS col2, col1 * + - col0 AS col2 FROM tab2 AS cor0 +---- +-1173 +-2346 +-3080 +-3886 +-4928 +-5025 query I rowsort label-6199 SELECT + col2 + - col0 / - col2 FROM tab2 AS cor0 @@ -37639,8 +38046,15 @@ SELECT + - 55 + - col1 * - + col2 * + col1 + + - col1 FROM tab1 AS cor0 # Datafusion - Expected - 6 # Datafusion - Expected - 97 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col2, + 6 AS col2 FROM tab0 cor0 +---- +15 +6 +6 +6 +87 +97 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - + col0 ) + - col0 / + 41 IS NULL @@ -37714,8 +38128,15 @@ SELECT + 30 * - col1 FROM tab2 # Datafusion - Expected - 2680 # Datafusion - Expected - NULL # Datafusion - Expected - 3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \* \(\- Int64\(49\)\) AS col0" at position 0 and "tab2\.col2 \* Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT CAST ( NULL AS FLOAT8 ) * - + 49 AS col0, col2 * 67 AS col0 FROM tab2 +---- +1541 +2680 +3886 +NULL +NULL +NULL query III rowsort SELECT ALL * FROM tab0 WHERE ( NOT - col2 IS NULL ) @@ -38312,8 +38733,11 @@ SELECT ALL * FROM tab2 AS cor0 WHERE 30 >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(cor0\.col1\)\) \* \(\- CAST\(NULL AS Int32\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - SUM ( ALL col1 ) * - CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col1, + ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0 +---- +3 +NULL query I rowsort label-6329 SELECT + + col2 * - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 @@ -38421,8 +38845,10 @@ SELECT ALL + 70 + ( col0 ) AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to bef9e9bea818003d3e01b136e55e373f -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ Int64\(\-42\) \+ \(\- Int64\(\-25\)\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col0 + - 42 + - - 25 AS col1, ( ( - col0 ) ) col1, + + col1 / col1 / col2 AS col0 FROM tab0 AS cor0 +---- +9 values hashing to 2033a7ce521b54825282a79599abdfdf query I rowsort label-6348 SELECT ALL col0 * - col2 + - 63 / - col0 - - 70 + col0 - CAST ( NULL AS INTEGER ) * + + col0 FROM tab1 AS cor0 @@ -38798,8 +39224,15 @@ SELECT DISTINCT 17, col0, col0 AS col2 FROM tab0 cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, col1 AS col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT - + 44 AS col2 FROM tab2 AS cor0 @@ -39156,8 +39589,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN + 52 + + col0 + + - col1 # Datafusion - Expected - 17 # Datafusion - Expected - 75 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, 17 AS col1 FROM tab2 +---- +17 +17 +17 +46 +64 +75 query I rowsort SELECT ALL 68 AS col0 FROM tab2 WHERE - col0 + col1 IS NOT NULL @@ -39482,8 +39922,15 @@ SELECT ALL + + col0 - - col2 col0 FROM tab2 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, col0 AS col1 FROM tab2 cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT DISTINCT + col1 FROM tab0 WHERE NOT NULL >= - + 36 * - col2 * - col1 @@ -42278,8 +42725,15 @@ SELECT 28 AS col2, col2 AS col0 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 20 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 20 AS col2, col0 AS col2 FROM tab0 +---- +15 +20 +20 +20 +87 +97 query I rowsort label-6989 SELECT + + SUM ( DISTINCT + 30 ) AS col1 FROM tab2 AS cor0 @@ -42585,8 +43039,15 @@ SELECT * FROM tab2 AS cor0 WHERE 14 + + 38 - 46 * col1 IS NOT NULL # Datafusion - Expected - 47 # Datafusion - Expected - 29 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 29 AS col1, + col2 AS col1 FROM tab0 AS cor0 +---- +10 +29 +29 +29 +47 +99 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col0 + 16 ) NOT IN ( col2 * - col0 ) @@ -42713,8 +43174,15 @@ SELECT + COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0 WHERE col0 * - col1 IS NO # Datafusion - Expected - 247690 # Datafusion - Expected - 485 # Datafusion - Expected - 26350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \* \(\- cor0\.col1\) AS col2" at position 0 and "Int64\(54\) / \(\- \(\- cor0\.col2\)\) \+ \(\- cor0\.col1\) \* CAST\(Int64\(62\) \* Int64\(\-85\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 97 * - + col1 AS col2, 54 / - - col2 + - col1 * CAST ( + 62 * - 85 AS INTEGER ) AS col2 FROM tab1 AS cor0 +---- +1358 +247690 +26350 +4559 +485 +73780 query II rowsort label-7069 SELECT + MAX ( ALL 80 ), - 7 AS col2 FROM tab2 AS cor0 @@ -43344,8 +43812,15 @@ SELECT * FROM tab1 AS cor0 WHERE - 97 NOT BETWEEN + + col2 AND NULL # Datafusion - Expected - 30 # Datafusion - Expected - 81 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col1 AS col2, + 30 col2 FROM tab0 AS cor0 +---- +1 +21 +30 +30 +30 +81 query I rowsort label-7165 SELECT DISTINCT - - 27 / col0 - + CAST ( NULL AS INTEGER ) + + col0 + - - 35 / col1 AS col0 FROM tab1 AS cor0 @@ -43430,8 +43905,11 @@ SELECT DISTINCT - 78 col0, col0 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -320 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col2" at position 0 and "max\(DISTINCT \(\- cor0\.col2\)\) \* Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 80 col2, MAX ( DISTINCT - col2 ) * + ( 32 ) AS col2 FROM tab0 cor0 +---- +-320 +80 query I rowsort label-7178 SELECT DISTINCT 22 / 4 - col1 + - col0 FROM tab1 AS cor0 @@ -44515,8 +44993,15 @@ NULL # Datafusion - Expected - 58 # Datafusion - Expected - 529 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col2 AS col2" at position 0 and "cor0\.col2 \+ Int64\(48\) / \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * + col2 AS col2, col2 + 48 / - + col2 AS col2 FROM tab2 AS cor0 +---- +1600 +21 +3364 +39 +529 +58 query I rowsort label-7353 SELECT ALL - - CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 cor0 @@ -44907,8 +45392,15 @@ SELECT - + 36 / + 64 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 96 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "Int64\(23\) / tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, + 23 / + col1 AS col0 FROM tab1 +---- +0 +1 +4 +59 +68 +96 query I rowsort SELECT DISTINCT + + ( - col2 ) + - ( + 13 ) FROM tab0 AS cor0 @@ -46701,8 +47193,15 @@ SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN + col0 AND NULL # Datafusion - Expected - 46 # Datafusion - Expected - -87 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \- \(\- \(\- cor0\.col2\)\) \+ Int64\(\-60\) \- \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col0 - - - col2 + + - 60 - - col1 AS col2, col0 AS col2 FROM tab2 cor0 +---- +-126 +-78 +-87 +46 +64 +75 query I rowsort label-7711 SELECT ALL - col2 * - 29 + - + col0 - + col0 / - 97 AS col0 FROM tab0 AS cor0 @@ -47314,8 +47813,10 @@ SELECT - 41 * ( + col1 ) AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to c4b1a4972575dd740912be3b6984ce08 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 AS col2, 77 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 +---- +18 values hashing to c732472ccaf2381c2152b9630d796314 query I rowsort SELECT ALL 82 - + + ( - - col1 ) * + col0 * + col1 col0 FROM tab1 AS cor0 @@ -47388,8 +47889,11 @@ SELECT ALL 28 - + 66 AS col2, col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / count\(Int64\(72\)\) AS col0" at position 0 and "\(\- Int64\(71\)\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - + CAST ( NULL AS INTEGER ) ) / + COUNT ( + + 72 ) col0, + ( - + 71 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 +---- +NULL +NULL query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 68 + col1 IS NULL @@ -49363,8 +49867,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1 +---- +9 +9 query I rowsort SELECT ALL - col2 + col0 AS col1 FROM tab2 WHERE ( NULL >= + col1 * - ( + + col2 ) ) @@ -49432,8 +49939,15 @@ SELECT 89 * - MIN ( DISTINCT - col0 ) * - COUNT ( * ) FROM tab0 # Datafusion - Expected - 68 # Datafusion - Expected - 97 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 97 AS col1, col2 AS col1 FROM tab1 +---- +59 +68 +96 +97 +97 +97 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT - - ( 17 ) < - + col2 @@ -49967,8 +50481,15 @@ SELECT ALL - col2 * col2 - 30 + 81 + + + col0 FROM tab1 WHERE NULL < NULL OR NUL # Datafusion - Expected - 123 # Datafusion - Expected - 5 # Datafusion - Expected - 123 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(40\) \+ Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, + 40 + 83 AS col0 FROM tab1 AS cor0 +---- +123 +123 +123 +14 +47 +5 query I rowsort SELECT DISTINCT - - ( - 80 ) + + - col1 * + 57 AS col2 FROM tab2 AS cor0 @@ -50280,8 +50801,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, 85 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 +---- +-9 +85 query I rowsort label-8298 SELECT DISTINCT - COUNT ( * ) + + - 52 - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1 @@ -52193,8 +52717,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE col0 * - - col0 IS NULL # Datafusion - Expected - 76751 # Datafusion - Expected - 1 # Datafusion - Expected - 8165 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col2" at position 0 and "cor0\.col1 \* Int64\(96\) \* Int64\(17\) \+ cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 1 AS col2, col1 * 96 * 17 + + col1 AS col2 FROM tab1 AS cor0 +---- +1 +1 +1 +22862 +76751 +8165 query I rowsort SELECT DISTINCT col0 * + + col1 * + + col1 FROM tab2 @@ -52748,8 +53279,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, 38 AS col1 FROM tab1 AS cor0 +---- +-3 +38 query I rowsort label-8703 SELECT ALL + + COUNT ( * ) * + 20 FROM tab2 AS cor0 @@ -52987,8 +53521,15 @@ SELECT DISTINCT + MAX ( + col0 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -6531 # Datafusion - Expected - 59 # Datafusion - Expected - 193 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col2" at position 0 and "cor0\.col0 \+ cor0\.col0 \+ cor0\.col1 \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 59 AS col2, col0 + col0 + + col1 * + ( - col1 ) AS col2 FROM tab0 AS cor0 +---- +-267 +-6531 +193 +59 +59 +59 query I rowsort SELECT ALL - ( - + col0 ) col1 FROM tab1 AS cor0 @@ -53022,8 +53563,15 @@ NULL # Datafusion - Expected - -47 # Datafusion - Expected - 0 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ \(\- tab1\.col2\) AS col2" at position 0 and "\(\- tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 + - col2 AS col2, - col1 AS col2 FROM tab1 +---- +-14 +-47 +-5 +0 +0 +0 query II rowsort label-8750 SELECT DISTINCT - 52 + - - COUNT ( * ) AS col0, + 7 * - + 54 FROM tab0 @@ -54164,8 +54712,15 @@ SELECT ALL + 95 FROM tab1 AS cor0 WHERE NOT - col1 < NULL # Datafusion - Expected - 40 # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 77 + + ( + CAST ( NULL AS INTEGER ) ) AS col1, col2 col1 FROM tab2 +---- +23 +40 +58 +NULL +NULL +NULL query I rowsort SELECT ALL col0 * - 27 AS col0 FROM tab2 @@ -54339,8 +54894,9 @@ SELECT DISTINCT COUNT ( DISTINCT col2 ) AS col2 FROM tab0 AS cor0 3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col0, col0 FROM tab1 AS cor0 WHERE NOT NULL >= NULL +---- query III rowsort SELECT * FROM tab2 cor0 WHERE NOT - col1 = - + 75 + col0 + + col0 / + 73 @@ -54362,8 +54918,11 @@ SELECT 73 col0 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) col2, 44 col2 FROM tab2 +---- +3 +44 query I rowsort SELECT DISTINCT - 25 + - 6 FROM tab1 WHERE ( NOT ( NULL ) >= + - 31 * 73 ) @@ -55187,8 +55746,11 @@ SELECT - - col1 AS col2, - col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -204 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \* max\(\(\- cor0\.col0\)\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 4 * + MAX ( - + col0 ) AS col1, 88 AS col1 FROM tab1 AS cor0 +---- +-204 +88 query I rowsort label-9115 SELECT DISTINCT COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 @@ -55363,8 +55925,9 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 <> + 7 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ Int64\(\-99\) AS col1" at position 0 and "Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + - 99 AS col1, 1 AS col1 FROM tab2 AS cor0 WHERE NULL IN ( + col1 * col1 - - col2 * + col1 + col0, 59 ) +---- query I rowsort label-9144 SELECT ALL + COUNT ( * ) - - COUNT ( ( 17 ) ) FROM tab1 AS cor0 @@ -57273,8 +57836,15 @@ SELECT + col2 AS col2 FROM tab0 WHERE NOT col1 = - col0 # Datafusion - Expected - -87 # Datafusion - Expected - -97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0, - col0 FROM tab0 AS cor0 +---- +-15 +-15 +-87 +-87 +-97 +-97 query I rowsort label-9469 SELECT ALL - + COUNT ( * ) / COUNT ( * ) FROM tab1 AS cor0 @@ -57292,8 +57862,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT NULL > + - col0 # Datafusion - Expected - 21 # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 / \(\- CAST\(NULL AS Float64\)\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT + col0 / - CAST ( NULL AS FLOAT8 ) AS col0, col1 AS col0 FROM tab0 +---- +1 +21 +81 +NULL +NULL +NULL query I rowsort SELECT ( col1 ) AS col1 FROM tab0 WHERE NOT + col0 / + col2 IS NOT NULL @@ -57504,8 +58081,15 @@ SELECT ALL 85 * - col0 * + col2 FROM tab1 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - 8 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "cor0\.col0 / Int64\(92\) \- cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 8 AS col1, ( col0 ) / 92 - col2 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +8 +8 +8 query II rowsort SELECT + ( col0 ), 7 AS col2 FROM tab1 @@ -57671,8 +58255,11 @@ SELECT DISTINCT - + MAX ( ALL + col2 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "avg\(\(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + + 29 AS col1, AVG ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0 +---- +29 +NULL query II rowsort SELECT DISTINCT col2, + col2 * + col1 * + col2 FROM tab1 AS cor0 @@ -58821,8 +59408,15 @@ SELECT DISTINCT + col1 / + 28 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NU # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, + col0 AS col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT col0 IN ( ( - col0 ) + - ( - ( col1 ) ) ) @@ -58836,8 +59430,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT col0 IN ( ( - col0 ) + - ( - ( col1 ) ) ) # Datafusion - Expected - 28 # Datafusion - Expected - 52 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col1" at position 0 and "cor0\.col1 \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 52 col1, col1 + + col1 AS col1 FROM tab1 AS cor0 +---- +10 +28 +52 +52 +52 +94 query I rowsort SELECT - 27 * - col2 FROM tab0 @@ -59172,8 +59773,15 @@ SELECT * FROM tab1 WHERE NOT + col2 * + 44 + - + col0 - 93 NOT BETWEEN - 98 AND # Datafusion - Expected - 43 # Datafusion - Expected - -6188 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \* \(\- \(\- tab1\.col0\)\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 * - - col0 AS col0, 43 AS col0 FROM tab1 +---- +-4896 +-5015 +-6188 +43 +43 +43 query I rowsort label-9785 SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL diff --git a/data/sqlite/random/aggregates/slt_good_31.slt b/data/sqlite/random/aggregates/slt_good_31.slt index b121309..354769e 100644 --- a/data/sqlite/random/aggregates/slt_good_31.slt +++ b/data/sqlite/random/aggregates/slt_good_31.slt @@ -269,8 +269,15 @@ SELECT ALL ( - + 85 ) FROM tab2 # Datafusion - Expected - 56550 # Datafusion - Expected - 97 # Datafusion - Expected - 624195 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "cor0\.col0 \* Int64\(65\) \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - col0 ) AS col0, col0 * + 65 * + col2 AS col0 FROM tab0 cor0 +---- +15 +45825 +56550 +624195 +87 +97 query I rowsort SELECT - - col0 * - col0 * + + ( - + 8 ) + 77 * + col2 col2 FROM tab1 AS cor0 @@ -1786,8 +1793,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, + COUNT ( * ) - + 48 AS col2 FROM tab2 cor0 +---- +-3 +-45 query I rowsort SELECT 90 + + col0 col2 FROM tab2 AS cor0 @@ -2489,8 +2499,11 @@ SELECT DISTINCT 96 * - col0 + + - 95 * - - col0 + + - 84 * col2 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / sum\(Int64\(15\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) / SUM ( ALL + 15 ) AS col2, + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL +---- +0 +NULL query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT 9 NOT BETWEEN NULL AND - 81 @@ -3006,8 +3019,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < + CAST ( NULL AS INTEGER ) # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col1, + col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT ALL - 70 + + col0 FROM tab0 @@ -3648,8 +3668,10 @@ SELECT ALL + MIN ( - + col1 ) col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to d65177a2fee1f4b16b8ac5cf0a650eb1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + + col2 AS col1, - col0 AS col1, - + col0 FROM tab0 AS cor0 +---- +9 values hashing to 7eb022befd71a80373c0585c392938e1 query I rowsort SELECT - + 49 * - col0 AS col2 FROM tab2 AS cor0 @@ -4062,8 +4084,15 @@ SELECT DISTINCT 8 - + 82 / col0 * + ( 61 ) FROM tab2 # Datafusion - Expected - 44 # Datafusion - Expected - -2982 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(88\)\) AS Int32\) \* cor0\.col0 \+ Int64\(54\) \* cor0\.col1 AS col0" at position 0 and "Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( - + 88 AS INTEGER ) * col0 + + 54 * col1 AS col0, 44 AS col0 FROM tab2 AS cor0 +---- +-1294 +-1474 +-2982 +44 +44 +44 # Datafusion - Datafusion expected results: # Datafusion - Expected - 686 @@ -4072,8 +4101,15 @@ SELECT DISTINCT CAST ( - + 88 AS INTEGER ) * col0 + + 54 * col1 AS col0, 44 AS c # Datafusion - Expected - -47 # Datafusion - Expected - 686 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(14\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 49 ) * 14 AS col0, - col1 AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +686 +686 +686 query I rowsort SELECT + ( + + 75 ) col2 FROM tab2 AS cor0 @@ -4155,8 +4191,11 @@ SELECT DISTINCT 59, + col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, - 9 AS col1 FROM tab0 AS cor0 +---- +-9 +3 query I rowsort SELECT + ( + + col2 ) col2 FROM tab1 AS cor0 @@ -4654,8 +4693,10 @@ SELECT ALL + + col0 + + + 3 * col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 6aec349842d00f9e451bcb5db9ebd6cf -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* cor0\.col0 \+ Int64\(\-94\) \+ Int64\(\-86\) \* cor0\.col1 \+ cor0\.col1 AS col2" at position 0 and "cor0\.col1 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 37 * col0 + - 94 + - 86 * col1 + col1 AS col2, col1 + - + col2 - + col0 AS col1, col1 AS col2 FROM tab0 AS cor0 +---- +9 values hashing to 5cc041399d4d6b69b2a94cacf5292aa2 query III rowsort SELECT * FROM tab2 AS cor0 WHERE - 21 * - 75 <> NULL @@ -4705,7 +4746,7 @@ SELECT DISTINCT - 70 AS col2, + MIN ( ALL - col0 ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 143e8c6766320bc195bb3fc81f23b4f7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col1 AS col0" at position 1 and "cor0\.col0 \- \(\- cor0\.col1\) \- Int64\(84\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Schema error: Schema contains qualified field name cor0\.col0 and unqualified field name col0 which would be ambiguous SELECT + ( + col0 ) AS col0, col2 + col1 col0, col0 - + - col1 - ( 84 ) AS col0 FROM tab0 AS cor0 query I rowsort @@ -4741,8 +4782,15 @@ SELECT DISTINCT + CAST ( 74 AS INTEGER ) FROM tab2 cor0 # Datafusion - Expected - -40 # Datafusion - Expected - -27 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col2" at position 0 and "\(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 27 AS col2, - col2 AS col2 FROM tab2 +---- +-23 +-27 +-27 +-27 +-40 +-58 query III rowsort SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN - ( - 72 ) + - 53 AND - col1 * - col2 * + col0 * col1 + - 77 * - col1 * + - col2 @@ -4898,8 +4946,11 @@ SELECT DISTINCT + - MAX ( - 56 ) AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(66\) / sum\(DISTINCT \(\- tab0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, - COUNT ( * ) * + + 66 / + SUM ( DISTINCT - col0 ) AS col0 FROM tab0 +---- +0 +3 query I rowsort SELECT - 7 * + col0 col1 FROM tab0 @@ -5519,8 +5570,15 @@ SELECT + 71 * - 30 FROM tab0 # Datafusion - Expected - -4958 # Datafusion - Expected - 91 # Datafusion - Expected - -4292 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(85\) \* Int64\(47\) / cor0\.col2 \* Int64\(\-74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, 85 * 47 / col2 * - 74 AS col1 FROM tab1 AS cor0 +---- +-3034 +-4292 +-4958 +51 +85 +91 query I rowsort SELECT + + 71 + + col0 FROM tab1 cor0 @@ -6956,8 +7014,11 @@ SELECT + col1 col2, - 50 * - CAST ( + ( - 50 ) AS INTEGER ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +-3 +3 query III rowsort SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - - col1 * col0 + col0 ) @@ -8054,8 +8115,15 @@ SELECT * FROM tab1 WHERE NOT NULL <= - col2 + - col0 # Datafusion - Expected - -153 # Datafusion - Expected - 470 # Datafusion - Expected - -144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* tab1\.col1 AS col0" at position 0 and "Int64\(\-85\) \+ \(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 94 * col1 AS col0, - 85 + - col2 AS col0 FROM tab1 +---- +-144 +-153 +-181 +1316 +4418 +470 query I rowsort label-1310 SELECT DISTINCT + + COUNT ( * ) * 99 col1 FROM tab2 cor0 @@ -9846,8 +9914,15 @@ SELECT * FROM tab2 WHERE NOT 82 IS NOT NULL # Datafusion - Expected - 80 # Datafusion - Expected - 77 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, 80 AS col2 FROM tab2 +---- +51 +67 +77 +80 +80 +80 query I rowsort label-1606 SELECT - col0 / 29 FROM tab0 @@ -10429,8 +10504,15 @@ SELECT * FROM tab0 WHERE NOT - col1 + - col0 BETWEEN NULL AND - 27 # Datafusion - Expected - -67 # Datafusion - Expected - 81 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-81\)\) AS col1" at position 0 and "\(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - - 81 ) AS col1, - col1 AS col1 FROM tab2 +---- +-51 +-67 +-77 +81 +81 +81 query III rowsort SELECT * FROM tab1 WHERE NOT - 1 IS NOT NULL @@ -10613,8 +10695,10 @@ SELECT DISTINCT + col2, col0 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 440a95be4036aefcebd3b2001df30975 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "tab1\.col2 \* CAST\(NULL AS Float64\) \+ Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IRI valuesort SELECT + 26 AS col0, + col2 * + CAST ( NULL AS FLOAT8 ) + - 90 AS col0, - + col2 AS col1 FROM tab1 +---- +9 values hashing to c82ff1c3a0174e722872223822e84eae query I rowsort label-1732 SELECT - 25 * + COUNT ( * ) FROM tab0 @@ -12109,8 +12193,15 @@ SELECT + 43 * - 55 FROM tab1 # Datafusion - Expected - 2079 # Datafusion - Expected - -81 # Datafusion - Expected - 8019 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "\(\- cor0\.col1\) \* Int64\(\-99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col2, - col1 * - 99 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +2079 +8019 +99 query I rowsort SELECT + 4 + col1 * 39 AS col1 FROM tab2 AS cor0 @@ -13353,8 +13444,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT 11 + - + col2 - 38 + - - col1 BETWEEN NULL # Datafusion - Expected - 26 # Datafusion - Expected - 76 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 AS col1, 26 col1 FROM tab1 AS cor0 +---- +26 +26 +26 +76 +76 +76 query II rowsort SELECT ALL + 94 AS col2, col1 * - col1 FROM tab0 AS cor0 @@ -14523,8 +14621,15 @@ SELECT * FROM tab0 AS cor0 WHERE - col1 <> - + 83 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, ( + col2 ) FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -15122,8 +15227,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE ( - - 71 ) + - 22 IS NOT NULL # Datafusion - Expected - 12 # Datafusion - Expected - -75 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 col1, 12 AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +12 +12 +12 query II rowsort label-2487 SELECT ALL - 3 AS col2, + ( + COUNT ( col2 ) ) AS col1 FROM tab1 AS cor0 @@ -15171,8 +15283,15 @@ SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - 80 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col0 AS col2, col0 AS col2 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query II rowsort SELECT col2 col0, + 18 FROM tab0 AS cor0 @@ -15295,8 +15414,15 @@ SELECT ALL + 29 * 91 + - col0 * + col0 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -74 # Datafusion - Expected - -7333 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ Int64\(\-74\) \* Int64\(98\) AS col1" at position 0 and "Int64\(\-74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col1 + - 74 * 98 AS col1, - 74 AS col1 FROM tab0 cor0 +---- +-7253 +-7273 +-7333 +-74 +-74 +-74 query I rowsort label-2513 SELECT DISTINCT + COUNT ( * ) + - - MAX ( + + 80 ) AS col1 FROM tab2 @@ -15896,8 +16022,11 @@ SELECT DISTINCT - CAST ( - 32 AS INTEGER ) + + + col1 + + col0 / + 35 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 "Int64\(3\) AS col0" at position 0 and "sum\(DISTINCT \(\- tab0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 3 col0, SUM ( DISTINCT - col2 ) AS col0 FROM tab0 WHERE - col0 IS NULL +---- +3 +NULL query I rowsort SELECT ALL + 92 FROM tab1 AS cor0 WHERE NULL NOT IN ( - ( + 29 ) * - 27 + - 59 - + col1, + col1 + col1 ) @@ -16227,8 +16356,15 @@ SELECT + COUNT ( - 17 ) FROM tab2 cor0 # Datafusion - Expected - -10 # Datafusion - Expected - -7425 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(99\)\) \* \(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 99 * - - col0 AS col0, - 10 col0 FROM tab2 AS cor0 +---- +-10 +-10 +-10 +-4554 +-6336 +-7425 query I rowsort SELECT ALL + 42 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 @@ -17083,8 +17219,11 @@ SELECT * FROM tab1 AS cor0 WHERE ( ( - - col1 ) ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 39 AS col1, COUNT ( * ) AS col1 FROM tab1 cor0 +---- +3 +39 query I rowsort label-2811 SELECT ALL - SUM ( + + col2 ) AS col2 FROM tab0 AS cor0 @@ -17216,8 +17355,9 @@ SELECT DISTINCT + MIN ( ALL + 40 ) AS col0 FROM tab1 AS cor0 40 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 68 AS col2, 19 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL +---- query I rowsort SELECT - - col2 * - 1 * - 60 FROM tab2 WHERE NOT col0 IS NULL @@ -17388,8 +17528,15 @@ SELECT DISTINCT + + 88 * - - COUNT ( * ) - - - COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Expected - -98 # Datafusion - Expected - -99 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "\(\- Int64\(98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, - ( + + 98 ) AS col0 FROM tab0 AS cor0 +---- +-10 +-47 +-98 +-98 +-98 +-99 query I rowsort SELECT + 11 * - + col2 FROM tab1 AS cor0 @@ -17816,8 +17963,11 @@ SELECT * FROM tab0 WHERE col2 * - ( + col0 ) < - col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col0, - COUNT ( * ) AS col0 FROM tab1 +---- +-3 +3 query I rowsort SELECT col0 * col0 - 34 AS col2 FROM tab2 @@ -18253,8 +18403,15 @@ SELECT ALL col1 AS col1, col0 - col2 AS col0 FROM tab2 # Datafusion - Expected - -21 # Datafusion - Expected - 63 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 63 AS col2, - col1 AS col2 FROM tab0 cor0 +---- +-1 +-21 +-81 +63 +63 +63 query III rowsort SELECT ALL * FROM tab1 cor0 WHERE 27 >= ( - + 93 * - 46 ) @@ -18282,8 +18439,15 @@ SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) + - SUM ( ALL + + col2 ) - COUNT ( # Datafusion - Expected - 44 # Datafusion - Expected - -96 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 col2, ( + 44 ) AS col2 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +44 +44 +44 query I rowsort label-3005 SELECT ALL - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - - 53 FROM tab1, tab0 AS cor0 WHERE NULL IS NULL @@ -18562,8 +18726,9 @@ SELECT DISTINCT - + col1 * - 27 * + col2 + - 88 * col2 + + + 4 FROM tab1 AS cor0 80312 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(82\) AS Int32\)\) AS col0" at position 0 and "\(\- cor0\.col0\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( 82 AS INTEGER ) AS col0, - col0 * col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL +---- query I rowsort label-3049 SELECT 92 + ( 87 ) * + - COUNT ( * ) FROM tab1 AS cor0 @@ -19184,8 +19349,11 @@ SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT BETWEEN NULL AND # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 198 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-66\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col1, COUNT ( * ) * - - 66 AS col1 FROM tab2 AS cor0 +---- +198 +3 query I rowsort SELECT + col0 * - col0 + + col2 AS col2 FROM tab0 AS cor0 WHERE NULL >= ( NULL ) @@ -20303,8 +20471,15 @@ SELECT DISTINCT + 61 * - 41 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -21 # Datafusion - Expected - -97 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, - col1 AS col2 FROM tab0 AS cor0 +---- +-1 +-15 +-21 +-81 +-87 +-97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 @@ -20313,8 +20488,15 @@ SELECT - col0 AS col2, - col1 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( ( + col2 ) ) col2, col2 AS col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT - 48 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL @@ -20570,8 +20752,15 @@ SELECT DISTINCT CAST ( - col0 AS INTEGER ) AS col2, - col1 col1 FROM tab1 cor0 # Datafusion - Expected - 19 # Datafusion - Expected - -97 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- cor0\.col0\)\)\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - ( - col0 ) AS col2, 19 AS col2 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +19 +19 +19 query I rowsort SELECT DISTINCT - col0 * + 80 FROM tab0 AS cor0 @@ -20622,8 +20811,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col2, 88 AS col2 FROM tab1 +---- +-3 +88 query II rowsort SELECT ALL col0 AS col1, + col1 AS col0 FROM tab2 @@ -21128,8 +21320,15 @@ SELECT 16 + + 54 * CAST ( + - 19 AS INTEGER ) FROM tab2 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - 29 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-29\)\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + ( - 29 ) AS col0, ( + - col0 ) AS col0 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +29 +29 +29 query I rowsort SELECT ALL - col0 * - 36 * - + col1 * - 75 FROM tab0 AS cor0 @@ -21416,8 +21615,15 @@ SELECT ALL - + COUNT ( DISTINCT + 0 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 87 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) col1, ( + ( col0 ) ) col1 FROM tab0 +---- +15 +87 +97 +NULL +NULL +NULL query I rowsort SELECT ALL col1 * col1 + - 72 AS col1 FROM tab0 AS cor0 @@ -21540,8 +21746,15 @@ SELECT ALL col2 / + ( 39 ) AS col0 FROM tab0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, ( + col0 ) AS col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query II rowsort SELECT + 44, 1 col2 FROM tab0 AS cor0 @@ -21710,8 +21923,11 @@ SELECT - 93 / + COUNT ( * ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- \(\- tab1\.col1\)\)\) AS col0" at position 0 and "Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MIN ( ALL - ( - + col1 ) ) AS col0, + 74 AS col0 FROM tab1 +---- +5 +74 query I rowsort SELECT DISTINCT + col2 * + ( - col1 ) * + - col1 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL @@ -22078,8 +22294,15 @@ SELECT + + 53 * MAX ( + col0 ) + 20 - + ( MIN ( - 84 ) ) FROM tab2 AS cor0 # Datafusion - Expected - -59 # Datafusion - Expected - 91 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "\(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, - col2 AS col2 FROM tab1 +---- +-59 +-68 +-96 +51 +85 +91 query I rowsort SELECT ALL col1 + - 97 FROM tab0 @@ -22512,8 +22735,11 @@ SELECT + col0 + - 44 FROM tab1 # 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\(\(\- tab0\.col0\)\) 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 II valuesort SELECT ALL + COUNT ( ALL - col0 ) AS col1, SUM ( - col0 ) AS col1 FROM tab0 +---- +-199 +3 query I rowsort label-3700 SELECT + 67 / - col0 AS col0 FROM tab2 @@ -22795,8 +23021,11 @@ SELECT DISTINCT 62 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- tab1\.col0\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( - col0 ) AS col1, + CAST ( NULL AS INTEGER ) col1 FROM tab1 +---- +91 +NULL query I rowsort label-3746 SELECT DISTINCT - - ( + - COUNT ( * ) ) FROM tab2 AS cor0 @@ -22821,8 +23050,15 @@ SELECT ALL - - col1 / - col1 FROM tab0 AS cor0 # Datafusion - Expected - -4353456 # Datafusion - Expected - 99 # Datafusion - Expected - -59298526 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(\-95\) \* \(\- \(\- \(\- Int64\(\-65\)\)\)\) \* cor0\.col2 \* cor0\.col0 \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( col2 ) AS col1, ( - 95 ) * - ( - ( - - 65 ) ) * + col2 * col0 + - col1 AS col1 FROM tab0 AS cor0 +---- +-4353456 +-5372271 +-59298526 +10 +47 +99 query III rowsort label-3750 SELECT * FROM tab0 cor0 WHERE NOT ( - col0 * - col1 * 44 + 84 * - col2 * - col0 ) <> CAST ( NULL AS INTEGER ) @@ -23165,8 +23401,15 @@ SELECT + 78 col2, - COUNT ( * ) FROM tab0 # Datafusion - Expected - 21 # Datafusion - Expected - 80 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 80 col0, col1 AS col0 FROM tab0 +---- +1 +21 +80 +80 +80 +81 query I rowsort label-3806 SELECT COUNT ( * ) / - + 94 col2 FROM tab2 @@ -23180,8 +23423,15 @@ SELECT COUNT ( * ) / - + 94 col2 FROM tab2 # Datafusion - Expected - -45 # Datafusion - Expected - 81 # Datafusion - Expected - 147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "\(\- tab0\.col0\) \- \(\- tab0\.col1\) \+ tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, ( - + col0 ) - - col1 + + col1 AS col2 FROM tab0 +---- +-45 +-95 +1 +147 +21 +81 query III rowsort SELECT ALL * FROM tab1 cor0 WHERE NOT 21 IS NOT NULL @@ -23771,8 +24021,11 @@ SELECT DISTINCT + + 72 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\(cor0\.col1\)\) AS col2" at position 0 and "Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( + col1 ) AS col2, 32 AS col2 FROM tab1 AS cor0 +---- +-3 +32 query I rowsort label-3903 SELECT + - MAX ( + + 53 ) * - 79 FROM tab0 AS cor0 @@ -23882,8 +24135,15 @@ SELECT DISTINCT - col1 - - - col1 AS col0 FROM tab1 # Datafusion - Expected - 129 # Datafusion - Expected - NULL # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(32\) \+ tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + CAST ( NULL AS INTEGER ) AS col1, + 32 + + + col0 AS col1 FROM tab0 +---- +119 +129 +47 +NULL +NULL +NULL query I rowsort SELECT ALL + 56 FROM tab2 WHERE NOT ( + 60 ) * + 59 IS NOT NULL @@ -24590,8 +24850,9 @@ SELECT - 85 col2, + 23 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 18 values hashing to 8e5e90563d5a68e3c777a692b655209e # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ \(\- tab2\.col2\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 + + - col2 col1, col2 col1 FROM tab2 WHERE 70 BETWEEN + col0 AND NULL +---- query III rowsort label-4039 SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 - + col0 <> CAST ( - col1 AS INTEGER ) @@ -24692,8 +24953,11 @@ SELECT - COUNT ( * ) * - - 92 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 12 AS col0, COUNT ( * ) col0 FROM tab1 +---- +12 +3 query I rowsort label-4059 SELECT ALL - col2 + ( - col1 ) AS col2 FROM tab1 WHERE NOT - - CAST ( col0 AS INTEGER ) IS NOT NULL @@ -25992,8 +26256,11 @@ SELECT - col1 * col2 / - col2 col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, 94 AS col1 FROM tab1 +---- +3 +94 query I rowsort label-4278 SELECT + + COUNT ( * ) FROM tab1 WHERE NOT ( NULL = ( 17 ) ) @@ -26059,8 +26326,15 @@ SELECT 91 * - COUNT ( * ) FROM tab1 # Datafusion - Expected - -4 # Datafusion - Expected - -32 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col1" at position 0 and "cor0\.col1 \* Int64\(\-4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 32 ) AS col1, col1 * - 4 AS col1 FROM tab0 AS cor0 +---- +-32 +-32 +-32 +-324 +-4 +-84 query I rowsort SELECT + col1 AS col2 FROM tab2 cor0 WHERE - col0 = NULL @@ -26566,8 +26840,15 @@ SELECT * FROM tab0 WHERE col1 NOT BETWEEN - col1 AND CAST ( NULL AS INTEGER ) + # Datafusion - Expected - -67 # 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 "\(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 AS col1, - col1 AS col1 FROM tab2 +---- +-51 +-67 +-77 +1 +1 +1 query I rowsort label-4375 SELECT ALL + - MIN ( DISTINCT + - col1 ) FROM tab2 AS cor0 @@ -26638,7 +26919,7 @@ SELECT + 20 * + - 78 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to b54a6acacd38d68d7357ea9a0e028193 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- cor0\.col2\) \* Int64\(\-98\) \+ \(\- cor0\.col1\) \+ Int64\(82\) AS col1" at position 0 and "CAST\(CAST\(\(\- cor0\.col1\) AS Int32\) AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Schema error: Schema contains qualified field name cor0\.col1 and unqualified field name col1 which would be ambiguous SELECT DISTINCT + col1 * - + col2 * - 98 + - col1 + 82 AS col1, col1, + CAST ( + + CAST ( + - ( + col1 ) AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 AS cor0 query I rowsort @@ -27202,8 +27483,11 @@ SELECT ALL - ( - col1 ) * + + 77 + + col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- Int64\(\-43\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) * COUNT ( * ) AS col1, ( - - 43 ) AS col1 FROM tab2, tab0 AS cor0 +---- +-81 +43 query I rowsort label-4475 SELECT DISTINCT - col1 / - 82 col1 FROM tab2 @@ -28826,8 +29110,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL >= - 94 ) # Datafusion - Expected - -4312 # Datafusion - Expected - 600236 # Datafusion - Expected - -4312 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* \(\- \(\- tab1\.col2\)\) \* tab1\.col0 AS col1" at position 0 and "\(\- \(\- Int64\(88\)\)\) \* \(\- Int64\(49\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 97 * - - ( col2 ) * col0 AS col1, - ( - + 88 ) * - + 49 AS col1 FROM tab1 +---- +-4312 +-4312 +-4312 +474912 +486455 +600236 query I rowsort label-4749 SELECT ALL 45 * - COUNT ( * ) AS col1 FROM tab1 @@ -29080,8 +29371,15 @@ SELECT - + col0 FROM tab2 WHERE col2 IS NULL # Datafusion - Expected - 77 # Datafusion - Expected - 58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, col1 AS col0 FROM tab2 AS cor0 +---- +23 +40 +51 +58 +67 +77 query I rowsort label-4789 SELECT ALL - + 30 / - 69 + + - col2 FROM tab2 AS cor0 @@ -29632,8 +29930,11 @@ SELECT - + 18 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 # 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 "Int64\(64\) \- Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MIN ( ALL - + 49 ) AS col1, + 64 - 63 AS col1 FROM tab1 +---- +-49 +1 query I rowsort SELECT + 10 * - - col2 * col2 FROM tab0 cor0 @@ -29954,8 +30255,11 @@ SELECT - + MAX ( 80 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 51 AS col0, COUNT ( * ) AS col0 FROM tab1 +---- +3 +51 query I rowsort SELECT + col2 * - - 18 AS col1 FROM tab1 @@ -29983,8 +30287,10 @@ SELECT DISTINCT - col1 * 76 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 8213c001c209604e398782ae2fb22c5a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "\(\- tab2\.col0\) \* Int64\(\-5\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col1 AS col2, + CAST ( col1 AS INTEGER ) + + - 28, - col0 * + - 5 col2 FROM tab2 +---- +9 values hashing to 9b3fcd5fcc949190637cad42e1fbbf61 query III rowsort SELECT * FROM tab2 WHERE NOT 48 * col2 * + col0 IS NOT NULL @@ -30891,8 +31197,15 @@ SELECT MIN ( - - 49 ) + - COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Expected - 71 # Datafusion - Expected - -58 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, 71 col2 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +71 +71 +71 query I rowsort label-5089 SELECT DISTINCT + col2 + + - 12 / + + col1 FROM tab0 AS cor0 @@ -31509,8 +31822,15 @@ SELECT * FROM tab1 WHERE + 36 IS NOT NULL # Datafusion - Expected - -37 # Datafusion - Expected - -99 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col2 \+ Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 AS col1, col2 + + - 84 AS col1 FROM tab0 AS cor0 +---- +-10 +-37 +-47 +-74 +-99 +15 query I rowsort label-5183 SELECT + ( - 64 ) + - MAX ( + 76 ) AS col1 FROM tab1 cor0 @@ -31659,8 +31979,15 @@ SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE NOT col1 * - col1 + + col0 <= + c # Datafusion - Expected - 0 # Datafusion - Expected - 1332 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(18\)\) \* Int64\(\-74\) AS col0" at position 0 and "Int64\(20\) / Int64\(96\) \* Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 18 ) * + - 74 AS col0, + 20 / + 96 * + 31 AS col0 FROM tab1 AS cor0 WHERE + col2 > + + col1 + + ( - col2 ) +---- +0 +0 +0 +1332 +1332 +1332 query II rowsort SELECT ALL col0 AS col2, ( - 53 ) AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL @@ -32455,8 +32782,15 @@ SELECT - + 21, MAX ( ALL 87 ) + - SUM ( ALL - - 75 ) AS col1 FROM tab1 cor0 # Datafusion - Expected - 753571 # Datafusion - Expected - -96 # Datafusion - Expected - 132651 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "\(\- cor0\.col0\) \* \(\- cor0\.col0\) \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, - col0 * - col0 * + + col0 col2 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +132651 +614125 +753571 query I rowsort SELECT col1 * + ( - col2 ) - + - col0 FROM tab2 AS cor0 @@ -32613,8 +32947,11 @@ SELECT DISTINCT - 86 + - MAX ( DISTINCT - + col0 ) AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 1 col2, + COUNT ( * ) AS col2 FROM tab0 +---- +-1 +3 query I rowsort SELECT ALL - col1 + - 37 AS col2 FROM tab2 @@ -32649,8 +32986,11 @@ SELECT DISTINCT - 82 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(89\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 97 * - COUNT ( * ) + + 89 AS col0, COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL +---- +0 +89 query I rowsort SELECT ALL + 0 AS col1 FROM tab0 WHERE NOT NULL IS NULL @@ -34385,8 +34725,15 @@ SELECT * FROM tab0 WHERE - 76 NOT IN ( - col2 + - - col2 * col2, 55 / + - col2 ) # Datafusion - Expected - -78 # Datafusion - Expected - -91 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "Int64\(\-78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col1, - 78 col1 FROM tab1 +---- +-51 +-78 +-78 +-78 +-85 +-91 query II rowsort SELECT DISTINCT - col2 - + ( + col2 ) + - 5, col0 AS col1 FROM tab0 @@ -34910,8 +35257,11 @@ SELECT col0 AS col0, - 52 * + col0 - col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, 83 AS col1 FROM tab2, tab1 AS cor0 +---- +83 +9 query I rowsort label-5741 SELECT 37 + + CAST ( NULL AS INTEGER ) / - MAX ( 33 ) * + COUNT ( * ) AS col2 FROM tab0 @@ -35095,8 +35445,15 @@ SELECT + COUNT ( * ) * COUNT ( DISTINCT + + 69 ) FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 58 AS col2, CAST ( NULL AS INTEGER ) + + + 16 col2 FROM tab1 +---- +-58 +-58 +-58 +NULL +NULL +NULL query II rowsort SELECT - col2, + col2 FROM tab1 AS cor0 WHERE ( 52 IS NOT NULL ) @@ -35250,8 +35607,11 @@ SELECT DISTINCT col2 AS col0, + 5 + - col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 +---- +3 +3 query I rowsort SELECT ( 37 ) * + - col2 FROM tab0 @@ -35368,8 +35728,15 @@ SELECT DISTINCT - 71 / + col1 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2, + col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-5813 SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT - - ( col1 ) + - col0 + + col0 IS NOT NULL @@ -36334,8 +36701,9 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - col2 + - + col ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- \(\- cor0\.col1\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col2 AS col0, + ( - + col0 ) col2, - - col1 AS col0 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN - 98 AND col0 +---- query I rowsort SELECT ALL + 74 FROM tab0 AS cor0 WHERE NOT ( + col0 IS NOT NULL ) @@ -36490,8 +36858,15 @@ SELECT COUNT ( * ) * ( - - 67 ) FROM tab1 AS cor0 # Datafusion - Expected - 154 # Datafusion - Expected - 870 # Datafusion - Expected - 182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(29\) AS col1" at position 0 and "Int64\(86\) \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 30 * + + 29 AS col1, 86 + + col2 AS col1 FROM tab1 AS cor0 +---- +145 +154 +182 +870 +870 +870 query I rowsort SELECT DISTINCT + - col1 * + 32 FROM tab2 AS cor0 @@ -37957,8 +38332,11 @@ SELECT 0 * + col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(tab1\.col0\) AS col0" at position 0 and "Int64\(16\) \+ Int64\(\-84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( + col0 ) AS col0, 16 + - 84 AS col0 FROM tab1 +---- +-68 +51 query I rowsort SELECT + - ( 62 ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL @@ -38003,8 +38381,15 @@ SELECT DISTINCT * FROM tab0 WHERE NOT ( - 40 IS NULL ) # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, col1 FROM tab2 cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT ALL 55 + - 99 AS col0 FROM tab1 AS cor0 @@ -39327,8 +39712,11 @@ SELECT ALL - 28, 34 / + col2 AS col0 FROM tab2 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 "Int64\(\-53\) AS col0" at position 0 and "sum\(cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 53 AS col0, SUM ( + col2 ) AS col0 FROM tab0 cor0 +---- +-53 +156 query I rowsort SELECT ALL - col1 * - - col0 col2 FROM tab1 AS cor0 @@ -39351,8 +39739,11 @@ SELECT + col2 + - 99 AS col1 FROM tab0 # 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\(tab1\.col0\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( ALL + col0 ) AS col0, + 70 AS col0 FROM tab1 +---- +3 +70 query I rowsort label-6468 SELECT ALL + - COUNT ( * ) * - + MAX ( ALL 59 ) - + - COUNT ( * ) AS col2 FROM tab2 AS cor0 @@ -39908,8 +40299,15 @@ SELECT DISTINCT + 82 AS col2, COUNT ( * ) AS col0 FROM tab0 WHERE NULL NOT BETWE # Datafusion - Expected - 67 # Datafusion - Expected - -26 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(26\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 26 AS col2, + col1 AS col2 FROM tab2 cor0 +---- +-26 +-26 +-26 +51 +67 +77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 @@ -39918,8 +40316,15 @@ SELECT DISTINCT - + 26 AS col2, + col1 AS col2 FROM tab2 cor0 # Datafusion - Expected - -3280 # Datafusion - Expected - 58 # Datafusion - Expected - -3280 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(82\) \* Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, + 82 * - 40 AS col1 FROM tab2 AS cor0 +---- +-3280 +-3280 +-3280 +23 +40 +58 query II rowsort SELECT DISTINCT + - 21, col1 + + 65 col1 FROM tab0 AS cor0 @@ -40723,8 +41128,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + ( - COUNT ( * ) ), - COUNT ( * ) FROM tab1 AS cor0 +---- +-3 +-3 query I rowsort label-6692 SELECT ALL 19 * + CAST ( - - col0 AS INTEGER ) col1 FROM tab0 cor0 @@ -41663,8 +42071,15 @@ SELECT ALL ( - 42 ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -210 # Datafusion - Expected - 97 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "\(\- tab0\.col2\) \* tab0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, - col2 * + col1 AS col1 FROM tab0 +---- +-210 +-3807 +-99 +15 +87 +97 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -41711,8 +42126,15 @@ SELECT ALL + col0 / - + col0 FROM tab2 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, + col1 FROM tab2 WHERE ( ( NULL ) IS NULL ) +---- +51 +51 +67 +67 +77 +77 query III rowsort SELECT * FROM tab0 WHERE ( ( NOT NULL NOT BETWEEN ( - 65 / + col0 + + col2 ) AND NULL ) ) @@ -42184,8 +42606,15 @@ SELECT - ( col1 ) * - - ( - col2 ) + + col0 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 col1, CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 +---- +15 +87 +97 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col1 - + col0 @@ -42732,8 +43161,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + MAX ( ALL - + 32 ) AS col0, 2 / - ( COUNT ( * ) ) AS col0, 5 FROM tab1 +---- +-32 +0 +5 query I rowsort label-7026 SELECT DISTINCT + COUNT ( * ) - - SUM ( ALL + - col0 ) * + 81 FROM tab2 @@ -42891,8 +43324,11 @@ 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\(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\. +query II valuesort SELECT + + ( COUNT ( * ) ) + COUNT ( * ) + 75 AS col2, 44 - + 82 AS col2 FROM tab1 AS cor0 +---- +-38 +81 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * + 60 / - col1 IS NOT NULL @@ -43324,8 +43760,15 @@ SELECT ALL + col2 * 91 + - ( + - col1 ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -7569 # Datafusion - Expected - 39 # Datafusion - Expected - -9409 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "tab0\.col0 \* \(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 AS col1, col0 * - + col0 col1 FROM tab0 +---- +-225 +-7569 +-9409 +39 +39 +39 query II rowsort SELECT ALL + col0 - + col2 - - - 34 AS col2, + col0 * - 70 FROM tab1 @@ -44220,8 +44663,15 @@ SELECT DISTINCT 80, - CAST ( - - 52 AS INTEGER ) col2 FROM tab0 # Datafusion - Expected - -1534 # Datafusion - Expected - -94 # Datafusion - Expected - -1795 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col2" at position 0 and "Int64\(66\) \+ tab2\.col0 \+ Int64\(25\) \* \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 94 AS col2, 66 + col0 + + 25 * - col1 AS col2 FROM tab2 +---- +-1163 +-1534 +-1795 +-94 +-94 +-94 query I rowsort SELECT ALL ( 78 ) AS col1 FROM tab2 cor0 @@ -44852,8 +45302,15 @@ NULL # Datafusion - Expected - 142 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -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 "tab2\.col1 \+ tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + CAST ( NULL AS FLOAT8 ) col2, ( + col1 ) + + + col0 AS col2 FROM tab2 +---- +141 +142 +97 +NULL +NULL +NULL query I rowsort label-7380 SELECT 78 + + 15 - + 45 * + COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab1 AS cor0 @@ -44903,8 +45360,10 @@ SELECT ALL - col2 + - 77 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c383b9bdcb410c5835afe122afe6bd31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) \+ Int64\(79\) \* cor0\.col1 \+ cor0\.col2 \* \(\- cor0\.col1\) \+ Int64\(53\) \* cor0\.col1 AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 82 + 79 * col1 + + col2 * + - col1 + + + 53 * col1 AS col1, 16 AS col1, - col2 FROM tab1 AS cor0 +---- +9 values hashing to 1a19322332d4023d00e8be833e6ecde1 query I rowsort label-7389 SELECT - + COUNT ( * ) * - - SUM ( ALL - - 29 ) FROM tab0 AS cor0 @@ -45234,8 +45693,15 @@ NULL # Datafusion - Expected - 74 # Datafusion - Expected - 0 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col1 AS col0" at position 0 and "Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + + col1 AS col0, 74 col0 FROM tab1 AS cor0 +---- +0 +0 +0 +74 +74 +74 query I rowsort label-7442 SELECT - + col2 + - + CAST ( 83 AS INTEGER ) + + 16 * - col0 * + ( 26 ) FROM tab0 AS cor0 @@ -45385,8 +45851,15 @@ SELECT DISTINCT + + COUNT ( DISTINCT + ( 98 ) ) * MAX ( + col2 ) col1 FROM tab1 # Datafusion - Expected - 3133 # Datafusion - Expected - -23 # Datafusion - Expected - 4516 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(23\)\) AS col1" at position 0 and "\(\- tab2\.col2\) \+ \(\- tab2\.col0\) \- \(\- tab2\.col1\) \- Int64\(\-79\) \* tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - + 23 ) AS col1, - col2 + - col0 - - col1 - + - 79 * + col2 AS col1 FROM tab2 +---- +-23 +-23 +-23 +1799 +3133 +4516 query I rowsort label-7465 SELECT COUNT ( * ) * - 76 AS col1 FROM tab1 @@ -45408,8 +45881,11 @@ SELECT DISTINCT + + 51 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-9\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) + + - 9 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-6 +3 query I rowsort label-7469 SELECT DISTINCT - + COUNT ( * ) + + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) @@ -45583,8 +46059,15 @@ SELECT 78 + - - 2 col2 FROM tab1 # Datafusion - Expected - -3774 # Datafusion - Expected - 97 # Datafusion - Expected - -4214 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "Int64\(44\) \* \(\- tab0\.col0\) \+ Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 col1, 44 * - col0 + + 54 AS col1 FROM tab0 +---- +-3774 +-4214 +-606 +15 +87 +97 query I rowsort SELECT - 53 + col0 AS col0 FROM tab0 AS cor0 @@ -45690,8 +46173,15 @@ SELECT DISTINCT - - 93 * + col2 FROM tab1 AS cor0 # Datafusion - Expected - 7569 # Datafusion - Expected - 40 # Datafusion - Expected - 8439 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "Int64\(87\) \* \(\- \(\- cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 AS col1, 87 * - - col0 col1 FROM tab0 cor0 +---- +1305 +40 +40 +40 +7569 +8439 query I rowsort label-7515 SELECT ALL MIN ( + 31 ) / 50 FROM tab1 AS cor0 @@ -45777,8 +46267,15 @@ SELECT COUNT ( * ) FROM tab1 WHERE + 65 IS NOT NULL # Datafusion - Expected - -4465 # Datafusion - Expected - 41 # Datafusion - Expected - -9069 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "tab1\.col0 \+ tab1\.col2 \+ \(\- tab1\.col2\) \* tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 41 AS col0, col0 + + + col2 + - col2 * col2 col0 FROM tab1 +---- +-3337 +-4465 +-9069 +41 +41 +41 query I rowsort label-7528 SELECT + ( 38 ) * SUM ( DISTINCT + col2 ) AS col0 FROM tab1 @@ -47376,8 +47873,15 @@ SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE NOT col0 * 37 * + col1 <> N # Datafusion - Expected - 0 # Datafusion - Expected - -75 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "tab2\.col2 / \(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, + col2 / + ( - col0 ) AS col2 FROM tab2 +---- +-46 +-64 +-75 +0 +0 +0 query II rowsort SELECT col2, + 33 + col1 AS col0 FROM tab2 @@ -47583,8 +48087,15 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - -99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, CAST ( NULL AS INTEGER ) col1 FROM tab0 +---- +-10 +-47 +-99 +NULL +NULL +NULL query I rowsort label-7822 SELECT - SUM ( ALL - 91 ) FROM tab0 @@ -47706,8 +48217,15 @@ SELECT + COUNT ( * ), 67 * - + COUNT ( * ) col0 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 col2, col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT ALL - col1 * - 22 FROM tab1 @@ -47991,8 +48509,15 @@ SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( ( # Datafusion - Expected - 1 # Datafusion - Expected - 77 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \- \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 - - + col0 AS col1, 1 AS col1 FROM tab0 AS cor0 +---- +-2 +-32 +1 +1 +1 +77 query I rowsort SELECT - col1 + + 74 col1 FROM tab0 AS cor0 @@ -48400,8 +48925,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5429 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(61\)\) \* min\(Int64\(89\)\) 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 II valuesort SELECT ALL - ( + + 61 ) * MIN ( + 89 ) AS col0, - COUNT ( - col0 ) AS col0 FROM tab2 AS cor0 +---- +-3 +-5429 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < + col0 @@ -50596,8 +51124,15 @@ SELECT - col2 + - ( - + col1 ) FROM tab1 # Datafusion - Expected - 77 # Datafusion - Expected - 5025 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \* \(\- tab2\.col1\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 * + - col1 AS col2, col1 AS col2 FROM tab2 +---- +2346 +4928 +5025 +51 +67 +77 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT + ( - 32 ) IS NOT NULL @@ -52201,8 +52736,15 @@ SELECT - ( col2 ) + 10, + col1 * - 68 col0 FROM tab1 WHERE NOT NULL IS NULL # Datafusion - Expected - 563108 # Datafusion - Expected - -5 # Datafusion - Expected - 426275 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col1" at position 0 and "\(\- tab1\.col2\) \* \(\- tab1\.col0\) \* tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col1, - col2 * - col0 * + col0 AS col1 FROM tab1 +---- +-14 +-47 +-5 +249696 +426275 +563108 query I rowsort SELECT - ( + + 98 ) AS col2 FROM tab0 @@ -52260,8 +52802,10 @@ SELECT + 52 AS col1, - COUNT ( * ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 73b8194ab5cdb4dd00496a7d5b618c2d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + col1 AS col1, col0 / 19 * + 2, + col1 FROM tab2 AS cor0 +---- +9 values hashing to d21230b09e9b1944c24fa7d8e94f72bc query I rowsort label-8599 SELECT DISTINCT - 72 + COUNT ( * ) AS col2 FROM tab1 AS cor0 @@ -52823,8 +53367,15 @@ SELECT COUNT ( * ), - SUM ( ALL + col0 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - NULL # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col0, - col1 AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +NULL +NULL +NULL query I rowsort SELECT DISTINCT ( - - ( - col1 ) ) AS col1 FROM tab2 AS cor0 @@ -53001,8 +53552,15 @@ SELECT 72 * + + CAST ( 15 AS INTEGER ) * + col0 * - 34 + + 99 + col0 AS col1 FRO # Datafusion - Expected - NULL # Datafusion - Expected - 74 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \+ Int64\(53\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col1 + 53 col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 +---- +134 +54 +74 +NULL +NULL +NULL query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( ( - + col1 ), 52 * - - 3 ) @@ -53639,8 +54197,15 @@ SELECT DISTINCT - 82 * 73 AS col1 FROM tab1 # Datafusion - Expected - -81 # Datafusion - Expected - 9801 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 * col2 AS col1, - col1 AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +100 +2209 +9801 query II rowsort SELECT ALL col0 + + 11 AS col1, 41 AS col0 FROM tab2 AS cor0 @@ -54621,8 +55186,15 @@ SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE NULL <= col0 # Datafusion - Expected - 68 # Datafusion - Expected - 59 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-59\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 59 AS col1, col2 AS col1 FROM tab1 AS cor0 +---- +59 +59 +59 +59 +68 +96 query I rowsort label-8987 SELECT DISTINCT CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL @@ -54941,8 +55513,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) + + 71 AS col0, 3 AS col0 FROM tab0 +---- +3 +74 query III rowsort SELECT ALL * FROM tab2 WHERE NULL < col0 + col2 * col1 @@ -55521,8 +56096,10 @@ SELECT ALL + 11 + COUNT ( * ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 5f6a776aaf3263fac809214868c3842a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* tab0\.col2 \* CAST\(Int64\(\-59\) AS Int32\) \* tab0\.col2 \* tab0\.col1 AS col2" at position 0 and "tab0\.col1 \+ tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 18 * + col2 * CAST ( - 59 AS INTEGER ) * + col2 * col1 AS col2, + col1 + col1 AS col2, col1 FROM tab0 +---- +9 values hashing to cb2f9339361ca5c7e8b1f56d78f034c5 query I rowsort SELECT DISTINCT - col2 * + ( - col0 ) AS col1 FROM tab1 @@ -55618,8 +56195,15 @@ SELECT ALL + col0, + col1 * - 59 col2 FROM tab0 # Datafusion - Expected - 2805 # Datafusion - Expected - 231 # Datafusion - Expected - 3003 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ \(\- \(\- tab1\.col0\)\) \- Int64\(\-87\) AS col2" at position 0 and "tab1\.col0 \* Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 53 + - ( - + col0 ) - - 87 AS col2, + col0 * + + 33 AS col2 FROM tab1 +---- +1683 +191 +225 +231 +2805 +3003 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -56298,8 +56882,15 @@ SELECT CAST ( - 13 AS INTEGER ) AS col0 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 +---- +1 +21 +81 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab0 WHERE + - 25 + - 63 + + - col2 NOT BETWEEN col0 AND + + 72 @@ -56342,8 +56933,15 @@ SELECT - - col2 * col0 - + 99 + + + 32 + - col0 FROM tab0 AS cor0 # Datafusion - Expected - 3539 # Datafusion - Expected - 8281 # Datafusion - Expected - 4682 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \* \(\- \(\- \(\- tab1\.col0\)\)\) AS col2" at position 0 and "tab1\.col2 \* tab1\.col2 \+ Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * - ( + ( - - col0 ) ) col2, + col2 * col2 + + 58 AS col2 FROM tab1 +---- +2601 +3539 +4682 +7225 +8281 +9274 query IIIIII rowsort SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 18 IS NOT NULL @@ -56686,8 +57284,15 @@ SELECT DISTINCT + col1 / - col2 col0 FROM tab1 # Datafusion - Expected - -87 # Datafusion - Expected - 81 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "Int64\(\-87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 81 AS col2, - 87 AS col2 FROM tab1 +---- +-87 +-87 +-87 +81 +81 +81 query I rowsort label-9328 SELECT COUNT ( * ) * + ( COUNT ( * ) ) col0 FROM tab1 @@ -57289,8 +57894,15 @@ NULL # Datafusion - Expected - 0 # Datafusion - Expected - 71 # Datafusion - Expected - 0 -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\) / cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 71 AS col0, + 26 / col0 AS col0 FROM tab2 cor0 +---- +0 +0 +0 +71 +71 +71 query I rowsort label-9430 SELECT DISTINCT col2 / - + col0 FROM tab1 AS cor0 @@ -57364,8 +57976,11 @@ SELECT - 6 + + col2 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "min\(Int64\(0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, MIN ( - 0 ) AS col1 FROM tab0 AS cor0 +---- +0 +3 query III rowsort SELECT * FROM tab2 cor0 WHERE NOT 87 IS NOT NULL @@ -58083,8 +58698,9 @@ SELECT ALL - ( - 76 ) * + + 45 - 47 AS col2 FROM tab1 3373 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* \(\- cor0\.col0\) \+ Int64\(47\) \- cor0\.col1 AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 62 * - col0 + 47 - col1 AS col0, + 5 col0, - + col1 AS col0 FROM tab2 cor0 WHERE NOT + 31 * col0 IS NOT NULL +---- query II rowsort label-9565 SELECT ALL COUNT ( 7 ) AS col0, MIN ( + 20 ) AS col2 FROM tab2 AS cor0 @@ -58202,8 +58818,15 @@ SELECT ALL 74 + - ( ( col2 ) ) AS col2 FROM tab1 # Datafusion - Expected - 113 # Datafusion - Expected - 69 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \- \(\- tab2\.col2\) AS col0" at position 0 and "Int64\(46\) \+ tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 - - col2 AS col0, 46 + col1 col0 FROM tab2 +---- +104 +113 +123 +133 +69 +97 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -58484,8 +59107,15 @@ SELECT MIN ( ALL - 98 ) * + + COUNT ( * ) + - - 46 AS col0 FROM tab1 # Datafusion - Expected - 2784 # Datafusion - Expected - 4084 # Datafusion - Expected - 480 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \+ tab0\.col1 \* Int64\(51\) AS col1" at position 0 and "tab0\.col0 \* Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 + + col1 * 51 col1, col0 * + + 32 col1 FROM tab0 +---- +-48 +1061 +2784 +3104 +4084 +480 query I rowsort label-9626 SELECT - - COUNT ( * ) * + COUNT ( * ) - + 50 AS col0 FROM tab1 AS cor0 @@ -58720,8 +59350,15 @@ SELECT DISTINCT * FROM tab0 WHERE NOT + ( - - col2 ) NOT IN ( + col2, + 60, ( + # Datafusion - Expected - -13 # Datafusion - Expected - 3000 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* Int64\(40\) AS col1" at position 0 and "\(\- tab2\.col1\) \- \(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * 40 AS col1, + ( - + col1 ) - + - col0 AS col1 FROM tab2 +---- +-13 +-5 +1840 +2560 +3000 +8 query I rowsort SELECT DISTINCT - + col1 + + - col1 - + col0 AS col1 FROM tab2 AS cor0 @@ -58977,8 +59614,15 @@ SELECT + - 82 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 30 # Datafusion - Expected - 72 # Datafusion - Expected - 141 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ cor0\.col2 AS col0" at position 0 and "cor0\.col2 \+ cor0\.col2 \+ \(\- \(\- cor0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 25 + col2 col0, + col2 + + + col2 + - - col2 AS col0 FROM tab0 AS cor0 +---- +124 +141 +297 +30 +35 +72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 @@ -58987,8 +59631,15 @@ SELECT ALL 25 + col2 col0, + col2 + + + col2 + - - col2 AS col0 FROM tab0 AS cor # Datafusion - Expected - NULL # Datafusion - Expected - -98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col2" at position 0 and "Int64\(10\) \+ \(\- CAST\(NULL AS Int32\)\) \- tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 98 AS col2, + 10 + + - CAST ( NULL AS INTEGER ) - col1 AS col2 FROM tab0 +---- +-98 +-98 +-98 +NULL +NULL +NULL query II rowsort label-9709 SELECT - COUNT ( * ) AS col0, - COUNT ( ALL + col0 ) FROM tab2 @@ -59058,8 +59709,15 @@ SELECT col0 + col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL # Datafusion - Expected - 4 # Datafusion - Expected - 41 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 41 AS col1, + 4 AS col1 FROM tab0 AS cor0 +---- +4 +4 +4 +41 +41 +41 query I rowsort label-9721 SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab1 @@ -60716,8 +61374,15 @@ SELECT DISTINCT - + col0 AS col0 FROM tab2 WHERE - 88 + col0 + + col2 IS NULL # Datafusion - Expected - -54 # Datafusion - Expected - 87 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "Int64\(\-54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 AS col0, - 54 AS col0 FROM tab0 +---- +-54 +-54 +-54 +87 +87 +87 query I rowsort label-9999 SELECT - MAX ( - 42 ) col0 FROM tab0 WHERE NOT + + 65 IS NULL diff --git a/data/sqlite/random/aggregates/slt_good_32.slt b/data/sqlite/random/aggregates/slt_good_32.slt index 5e38a44..a69b6ae 100644 --- a/data/sqlite/random/aggregates/slt_good_32.slt +++ b/data/sqlite/random/aggregates/slt_good_32.slt @@ -559,8 +559,10 @@ SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 28 * - # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 3e0ccd43a3c31f9cb6c49cc17636481c -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 1 and "tab1\.col1 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL col2 AS col0, col1 col2, col1 AS col2 FROM tab1 +---- +9 values hashing to 85d6e437b524c34757cfcaa51bebd239 query II rowsort label-88 SELECT 3 AS col0, SUM ( DISTINCT col2 ) + - COUNT ( * ) FROM tab1 @@ -642,8 +644,11 @@ SELECT ALL - 97 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AN # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(19\)\)\) AS col1" at position 0 and "Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - SUM ( DISTINCT + 19 ) col1, + ( - 84 ) AS col1 FROM tab0 AS cor0 +---- +-19 +-84 query I rowsort label-103 SELECT DISTINCT + 83 * - - COUNT ( * ) * 26 AS col2 FROM tab2, tab2 AS cor0 @@ -1290,8 +1295,10 @@ SELECT DISTINCT + col0, 87 - + col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 052d219fd00756d4b3871023473563b3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- tab0\.col1\) \* tab0\.col2 AS col2" at position 1 and "tab0\.col0 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + col1, col2 * - col1 * + + col2 AS col2, + col0 AS col2 FROM tab0 +---- +9 values hashing to 3a65953a98974be673e94f0b40b446c9 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT 49 * + col0 IS NOT NULL @@ -1321,8 +1328,15 @@ SELECT + col1 / - + col1 FROM tab0 # Datafusion - Expected - 51 # Datafusion - Expected - 66 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 AS col0, 51 AS col0 FROM tab0 +---- +51 +51 +51 +66 +66 +66 query II rowsort SELECT 72, + 16 AS col2 FROM tab2 @@ -1866,8 +1880,11 @@ SELECT ALL MAX ( DISTINCT + - 36 ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 7546 -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\(77\) \* Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( ALL - + col0 ) AS col0, 77 * 98 AS col0 FROM tab1 +---- +-51 +7546 query II rowsort label-306 SELECT + SUM ( ALL + col0 ), + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 @@ -2797,8 +2814,10 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 67f9dee63327996747970317d0883351 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 29 AS col2, - col1 AS col2, + - col2 col2 FROM tab0 AS cor0 +---- +9 values hashing to b57f060c4007424152f9bd58eae3b781 query I rowsort label-462 SELECT DISTINCT CAST ( - col0 AS INTEGER ) * + + CAST ( + - col1 AS INTEGER ) AS col2 FROM tab0 cor0 @@ -3159,8 +3178,15 @@ SELECT + col1 + 40 + - col1 AS col1, col0 + 14 FROM tab2 AS cor0 WHERE NOT NULL # Datafusion - Expected - -8019 # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(99\) \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, 99 * - col1 AS col0 FROM tab0 cor0 +---- +-2079 +-8019 +-99 +NULL +NULL +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -4964,8 +4990,15 @@ SELECT - col1 AS col2, 11 FROM tab2 # Datafusion - Expected - -40 # Datafusion - Expected - 221164 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* Int64\(44\) \* tab2\.col1 \- CAST\(\(\- Int64\(64\)\) AS Int32\) AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 * 44 * col1 - CAST ( - ( + 64 ) AS INTEGER ) AS col1, - col2 AS col1 FROM tab2 +---- +-23 +-40 +-58 +103288 +216896 +221164 query I rowsort label-801 SELECT - COUNT ( * ) - + 88 AS col1 FROM tab0 @@ -5485,8 +5518,11 @@ SELECT ALL - 82, 68 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + 74 AS col2 FROM tab2 +---- +3 +74 query II rowsort SELECT col0 AS col1, + 15 AS col0 FROM tab0 @@ -5616,8 +5652,15 @@ SELECT DISTINCT - COUNT ( * ) * - 31 FROM tab0 # Datafusion - Expected - 87 # Datafusion - Expected - 4992 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-64\)\) \* Int64\(78\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - - 64 ) * + 78 AS col1, + col0 AS col1 FROM tab0 WHERE NOT 75 BETWEEN - CAST ( NULL AS INTEGER ) * col0 AND + - 39 * col0 * col2 +---- +15 +4992 +4992 +4992 +87 +97 query III rowsort SELECT * FROM tab1 WHERE ( 19 ) IS NOT NULL @@ -7024,8 +7067,12 @@ SELECT ALL + col2 * + 66 * + CAST ( 65 AS INTEGER ) FROM tab1 AS cor0 # Datafusion - Expected - 9 # Datafusion - Expected - 3 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 and "Int64\(18\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + COUNT ( * ) * + COUNT ( * ), COUNT ( * ) AS col1, + 18 AS col1 FROM tab2 AS cor0 +---- +18 +3 +9 query II rowsort label-1129 SELECT col1 / - ( - ( - 63 ) ) * col2 * + - 47 + + col0 + + - ( - col2 ) * 5 - - 46 * + col0 col0, 4 AS col2 FROM tab1 AS cor0 @@ -7069,8 +7116,15 @@ SELECT DISTINCT + col2 * + col0 + - col1 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 96 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, + col1 AS col0 FROM tab1 +---- +14 +47 +5 +59 +68 +96 query I rowsort SELECT + col2 FROM tab2 WHERE NOT - col2 * + col1 + - + col1 IS NULL @@ -7836,8 +7890,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + 7 * 67 AND ( + # Datafusion - Expected - 47 # Datafusion - Expected - 16 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 16 col0, + col2 col0 FROM tab0 AS cor0 +---- +10 +16 +16 +16 +47 +99 query I rowsort label-1272 SELECT - - CAST ( NULL AS INTEGER ) + col1 col0 FROM tab1 AS cor0 @@ -8626,8 +8687,11 @@ SELECT + col0 FROM tab1 AS cor0 WHERE NOT + ( - col1 ) IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - ( COUNT ( * ) ) col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +-3 +NULL query I rowsort SELECT + col2 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL @@ -8643,8 +8707,15 @@ SELECT + col2 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 11 # Datafusion - Expected - -1798 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* Int64\(\-31\) AS col0" at position 0 and "Int64\(51\) \+ \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 * - 31 col0, ( + + 51 ) + - + col2 AS col0 FROM tab2 AS cor0 +---- +-1798 +-1798 +-1798 +-7 +11 +28 query I rowsort label-1409 SELECT DISTINCT - 26 * COUNT ( * ) FROM tab2 AS cor0 @@ -9043,8 +9114,9 @@ SELECT - + COUNT ( * ) / + + COUNT ( * ) AS col1 FROM tab1 AS cor0 -1 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \+ Int64\(14\) AS col0" at position 0 and "\(\- cor0\.col2\) / \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 85 + 14 AS col0, - col2 / - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL ) +---- query I rowsort label-1470 SELECT ALL + - 95 / + col1 FROM tab2 AS cor0 @@ -9628,8 +9700,15 @@ SELECT ALL col0 / + col2 col2 FROM tab2 # Datafusion - Expected - 2470 # Datafusion - Expected - 96 # Datafusion - Expected - 660 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(54\) \* cor0\.col1 \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, 54 * + col1 + - col2 AS col1 FROM tab1 AS cor0 +---- +211 +2470 +59 +660 +68 +96 query I rowsort SELECT DISTINCT + + ( 86 ) FROM tab0 AS cor0 @@ -10059,8 +10138,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1 +---- +9 +9 query I rowsort SELECT + 58 + col1 FROM tab1 @@ -11171,8 +11253,11 @@ SELECT DISTINCT + col0 * + col0 + + col2 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col2" at position 0 and "Int64\(21\) \+ Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 45 AS col2, 21 + + 63 AS col2 FROM tab2 AS cor0 +---- +45 +84 query I rowsort label-1822 SELECT ALL + COUNT ( * ) + - + COUNT ( * ) col1 FROM tab0 @@ -12606,8 +12691,15 @@ SELECT - col0 * 1 FROM tab0 cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 56 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 AS col1, col0 AS col1 FROM tab2 +---- +46 +56 +56 +56 +64 +75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c640151c5afa74e4be2a42469e78db14 @@ -13274,8 +13366,15 @@ SELECT ALL - ( COUNT ( DISTINCT - 57 ) ) + 65 * + MIN ( col0 ) FROM tab1 cor0 # Datafusion - Expected - 1 # Datafusion - Expected - 330 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \* tab0\.col0 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( 22 ) * col0 AS col0, col1 AS col0 FROM tab0 +---- +1 +1914 +21 +2134 +330 +81 query I rowsort SELECT - col0 + + col0 * - col1 * - + col0 FROM tab2 @@ -13943,8 +14042,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( + ( + + 36 ) ) + + 62 - + - ( + + 92 ) / + - 33 AS col1, COUNT ( * ) * + 61 AS col1 FROM tab2 AS cor0 +---- +183 +96 query I rowsort label-2290 SELECT ALL + MIN ( ALL + col0 ) + - 41 * - COUNT ( * ) * SUM ( ALL col0 ) FROM tab2 AS cor0 @@ -14262,8 +14364,15 @@ SELECT + COUNT ( * ) * + 4 FROM tab0 # Datafusion - Expected - 4928 # Datafusion - Expected - 58 # Datafusion - Expected - 5025 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "tab2\.col1 \* tab2\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + col2 ) AS col0, col1 * col0 col0 FROM tab2 +---- +23 +2346 +40 +4928 +5025 +58 query I rowsort SELECT ALL + 63 AS col1 FROM tab1 WHERE NOT - col0 NOT IN ( - 29 / + + col2 + + + col1, + col1, - 66 * 1 + - col2 + - 16, + col0 ) @@ -14370,8 +14479,15 @@ SELECT DISTINCT COUNT ( * ) + + 98 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 28 # Datafusion - Expected - 1 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / cor0\.col1 AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 / + + col1 AS col0, + 28 AS col0 FROM tab1 AS cor0 +---- +1 +1 +1 +28 +28 +28 query I rowsort SELECT 80 - + ( + col0 ) * - col0 AS col2 FROM tab1 @@ -14608,8 +14724,15 @@ SELECT + col2 * + col1 - - + col1 + - + col0 FROM tab2 AS cor0 WHERE NOT + ( - + # Datafusion - Expected - -77 # Datafusion - Expected - -4350 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \* \(\- cor0\.col0\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col2 * - col0 AS col2, - col1 AS col2 FROM tab2 AS cor0 +---- +-1058 +-2560 +-4350 +-51 +-67 +-77 query I rowsort label-2397 SELECT DISTINCT - col1 / + + CAST ( + col0 AS INTEGER ) * - - col0 AS col0 FROM tab1 AS cor0 @@ -14641,8 +14764,15 @@ NULL # Datafusion - Expected - 0 # Datafusion - Expected - 5 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "\(\- tab1\.col1\) / \(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col2, + ( ( + - col1 ) ) / - + col0 AS col2 FROM tab1 +---- +0 +0 +0 +14 +47 +5 query I rowsort SELECT ALL - 84 * + 64 - + col0 + + - col2 FROM tab0 cor0 @@ -15072,8 +15202,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE col0 / + 41 NOT BETWEEN - col2 AND 36 # Datafusion - Expected - 87 # Datafusion - Expected - -81 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + ( + col1 ) col2, col0 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +15 +87 +97 query I rowsort SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) = - 37 * - - col1 @@ -15155,8 +15292,9 @@ SELECT * FROM tab0 AS cor0 WHERE ( + 15 ) * + CAST ( NULL AS FLOAT8 ) IS NULL 9 values hashing to c4b42765dff94eaaa46040e537fb43b7 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "Int64\(93\) \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col0 AS col2, ( 93 ) * col0 AS col2 FROM tab0 AS cor0 WHERE - col1 - + col1 IS NULL +---- query I rowsort label-2483 SELECT + + 16 * + ( + COUNT ( * ) ) FROM tab2 AS cor0 @@ -16387,8 +16525,11 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 ) NOT IN ( 32 - + + col1 + + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 227 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "sum\(DISTINCT cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 17 col0, SUM ( DISTINCT + + col0 ) AS col0 FROM tab1 AS cor0 +---- +17 +227 query I rowsort label-2698 SELECT 13 * - 81 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 @@ -16667,8 +16808,15 @@ SELECT DISTINCT + - 38 col0 FROM tab0 cor0 # Datafusion - Expected - 2660 # Datafusion - Expected - 93 # Datafusion - Expected - 2660 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-94\)\) \+ \(\- cor0\.col2\) \+ Int64\(\-10\) \+ cor0\.col1 AS col0" at position 0 and "Int64\(70\) \* Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 94 + - ( + col2 ) + - 10 + + col1 AS col0, 70 * + 38 AS col0 FROM tab2 AS cor0 +---- +112 +121 +2660 +2660 +2660 +93 query I rowsort SELECT ALL 95 AS col2 FROM tab0 AS cor0 WHERE NULL <> NULL @@ -16747,8 +16895,11 @@ SELECT ALL + - ( - MIN ( ALL + ( - col2 ) ) ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 88 * + ( - COUNT ( * ) ) + COUNT ( * ) + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +3 +NULL query I rowsort label-2758 SELECT 34 + + COUNT ( + col0 ) AS col1 FROM tab1 @@ -16782,8 +16933,15 @@ SELECT DISTINCT + 26 AS col2, + col0 * 83 FROM tab2 # Datafusion - Expected - -421456 # Datafusion - Expected - 91 # Datafusion - Expected - -451201 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col2 \+ Int64\(87\) \* \(\- tab1\.col0\) \* Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, col2 + + 87 * - col0 * + 57 AS col2 FROM tab1 +---- +-252813 +-421456 +-451201 +51 +85 +91 query I rowsort SELECT ALL + 1 * + col1 - - col1 FROM tab2 @@ -16860,8 +17018,15 @@ SELECT ALL SUM ( DISTINCT + + 77 ) FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, col1 col2 FROM tab1 +---- +14 +47 +5 +NULL +NULL +NULL query I rowsort SELECT + 50 / - col1 * + col1 AS col2 FROM tab0 WHERE NOT NULL <> ( col2 + + + col0 ) @@ -17093,8 +17258,15 @@ SELECT ALL * FROM tab2 WHERE ( NOT ( NOT + 21 + + + col1 IS NULL ) ) # Datafusion - Expected - -352750 # Datafusion - Expected - -6188 # Datafusion - Expected - -377650 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* \(\- tab1\.col2\) AS col0" at position 0 and "Int64\(83\) \* \(\- tab1\.col0\) \* Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * - col2 AS col0, 83 * - col0 * 50 AS col0 FROM tab1 +---- +-211650 +-352750 +-377650 +-4896 +-5015 +-6188 query I rowsort SELECT ALL + 62 * + col2 FROM tab1 @@ -17297,8 +17469,11 @@ SELECT ALL col2 * + + 42 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 32 AS col0, + COUNT ( * ) AS col0 FROM tab2 +---- +3 +32 query II rowsort SELECT col1, ( + 30 ) AS col2 FROM tab2 @@ -17432,8 +17607,9 @@ SELECT ALL - COUNT ( * ) + - ( MAX ( ALL + 32 ) ) AS col1 FROM tab2 AS cor0 -35 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, + 91 AS col0 FROM tab2 WHERE - + col2 = + col2 +---- query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT + col0 - - col2 + - + col2 IS NOT NULL @@ -18167,8 +18343,15 @@ SELECT DISTINCT + col0, col0 + + col1 FROM tab0 # Datafusion - Expected - 64 # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col2, col0 AS col2 FROM tab2 +---- +46 +64 +75 +NULL +NULL +NULL query I rowsort label-2985 SELECT ALL + SUM ( + ( + + 53 ) ) FROM tab2 @@ -18325,8 +18508,15 @@ SELECT 76 + - 91 FROM tab1 # Datafusion - Expected - 77 # Datafusion - Expected - -99 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col2, + 77 AS col2 FROM tab0 +---- +-10 +-47 +-99 +77 +77 +77 query III rowsort SELECT * FROM tab1 WHERE - + 34 IS NOT NULL @@ -18895,8 +19085,15 @@ SELECT + 13 * - + col2 + 69 col1 FROM tab1 # Datafusion - Expected - -87 # Datafusion - Expected - 97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, - col0 AS col2 FROM tab0 +---- +-15 +-87 +-97 +15 +87 +97 query I rowsort label-3108 SELECT ALL ( CAST ( - 57 AS INTEGER ) ) FROM tab2 @@ -19053,8 +19250,15 @@ SELECT ALL 11 + - + col1 AS col2 FROM tab1 # Datafusion - Expected - 110 # Datafusion - Expected - -600 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* \(\- tab0\.col0\) AS col1" at position 0 and "Int64\(11\) \+ tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 * - col0 AS col1, 11 + + + col2 AS col1 FROM tab0 +---- +-3480 +-3880 +-600 +110 +21 +58 query I rowsort SELECT ALL + - col0 + - - col1 AS col0 FROM tab1 AS cor0 @@ -20789,8 +20993,11 @@ SELECT ALL col1 * - col2 * + 29 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 186 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col0" at position 0 and "sum\(\(\- Int64\(\-62\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 col0, SUM ( - - 62 ) AS col0 FROM tab2 +---- +186 +48 query I rowsort label-3407 SELECT ALL 24 * - COUNT ( * ) AS col0 FROM tab1 @@ -20974,8 +21181,15 @@ SELECT DISTINCT - + COUNT ( * ) + - 65 + 50 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -99 # Datafusion - Expected - -58 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(\-99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 AS col2, - 99 col2 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +-99 +-99 +-99 query I rowsort SELECT ALL + 16 FROM tab2 WHERE NOT 79 IS NOT NULL @@ -21061,8 +21275,15 @@ SELECT DISTINCT + col0 / + + col1 col2 FROM tab0 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - -462383 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) \* cor0\.col0 \* cor0\.col1 \- cor0\.col0 \+ \(\- cor0\.col0\) \+ cor0\.col1 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 * + ( + col0 ) * + col1 - + col0 + - col0 + + col1 AS col1, - col2 col1 FROM tab2 AS cor0 +---- +-215873 +-23 +-40 +-453427 +-462383 +-58 query I rowsort SELECT ALL + - col2 + - + 47 FROM tab2 AS cor0 @@ -21798,8 +22019,15 @@ SELECT 7 * col1 FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col1, col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-3577 SELECT ALL col1 + - - col0 + 35 + - ( col2 ) / - + col0 AS col2 FROM tab2 AS cor0 @@ -22233,8 +22461,11 @@ SELECT - col0 / + + col1 + + 88 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -1357 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "CAST\(Int64\(\-59\) AS Int32\) \* \(\- Int64\(\-23\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 96 col2, + CAST ( - 59 AS INTEGER ) * - - 23 AS col2 FROM tab2 AS cor0 +---- +-1357 +96 query I rowsort SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT + 16 NOT IN ( 34 ) @@ -22447,8 +22678,15 @@ SELECT DISTINCT - col0 / col0 / + - col0 AS col2 FROM tab0 # Datafusion - Expected - 67 # Datafusion - Expected - 62 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 62 AS col0, col1 AS col0 FROM tab2 +---- +51 +62 +62 +62 +67 +77 query I rowsort label-3681 SELECT DISTINCT 28 / - COUNT ( * ) AS col1 FROM tab2 @@ -23099,8 +23337,15 @@ SELECT ALL - + col1 + - col0 * + + col0 FROM tab1 AS cor0 WHERE + col1 <= - col2 # Datafusion - Expected - NULL # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +NULL +NULL +NULL query I rowsort label-3788 SELECT ALL CAST ( NULL AS INTEGER ) + + 13 * + ( - - 43 ) * - MAX ( - ( - 27 ) ) AS col2 FROM tab2 AS cor0 @@ -24114,8 +24359,15 @@ NULL # Datafusion - Expected - 86 # Datafusion - Expected - -96 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, + 86 AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +86 +86 +86 query I rowsort label-3966 SELECT - - ( + MAX ( + ( 89 ) ) ) / 47 AS col1 FROM tab1 AS cor0 @@ -25924,8 +26176,9 @@ SELECT DISTINCT ( + CAST ( - - MAX ( + - col1 ) AS INTEGER ) ) FROM tab1 -5 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, 34 AS col1 FROM tab2 AS cor0 WHERE NOT ( + col2 < NULL ) +---- query I rowsort SELECT + col1 * - 87 * - - 75 * + 55 col2 FROM tab1 AS cor0 WHERE NOT NULL <= NULL @@ -26010,8 +26263,15 @@ SELECT + 41, + col0 FROM tab0 AS cor0 # Datafusion - Expected - 295 # Datafusion - Expected - 130596 # Datafusion - Expected - 3196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \* Int64\(33\) \* \(\- Int64\(66\)\) \- Int64\(84\) AS col0" at position 0 and "\(\- cor0\.col1\) \* \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 60 * 33 * - + 66 - + 84 AS col0, - col1 * - col2 col0 FROM tab1 AS cor0 +---- +130596 +130596 +130596 +1344 +295 +3196 query I rowsort SELECT ALL 81 * - + col2 + 29 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL @@ -26245,8 +26505,15 @@ SELECT DISTINCT + SUM ( ALL + - col2 ) FROM tab2 # Datafusion - Expected - 30 # Datafusion - Expected - 3196 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* \(\- \(\- tab1\.col2\)\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * - - col2 AS col2, + 30 AS col2 FROM tab1 +---- +1344 +295 +30 +30 +30 +3196 query I rowsort SELECT + col2 * + + col2 AS col1 FROM tab1 @@ -26949,8 +27216,15 @@ SELECT DISTINCT + + col0 FROM tab2 WHERE NULL < NULL # Datafusion - Expected - 86 # Datafusion - Expected - -81 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 col1, + 86 AS col1 FROM tab0 AS cor0 WHERE NOT + 87 - - + col2 IS NULL +---- +-1 +-21 +-81 +86 +86 +86 query I rowsort label-4436 SELECT ALL - ( + CAST ( - col0 AS INTEGER ) ) FROM tab2 AS cor0 @@ -27350,8 +27624,15 @@ SELECT * FROM tab0 AS cor0 WHERE - 62 NOT IN ( + - col0 ) # Datafusion - Expected - NULL # Datafusion - Expected - -82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col0 \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( col1 ) + + ( - col2 ) AS col1, col0 + ( CAST ( NULL AS INTEGER ) ) col1 FROM tab1 AS cor0 +---- +-21 +-54 +-82 +NULL +NULL +NULL query I rowsort SELECT DISTINCT - col0 - + 57 AS col0 FROM tab1 cor0 WHERE NULL IS NULL @@ -27709,8 +27990,15 @@ SELECT ALL + + 0 * + - 15 + COUNT ( ALL + 56 ) FROM tab0 cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 5925 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* Int64\(94\) \+ cor0\.col0 AS col1" at position 0 and "cor0\.col1 \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 62 * + ( + ( + 94 ) ) + + col0 AS col1, + col1 + - col1 AS col1 FROM tab0 AS cor0 +---- +0 +0 +0 +5843 +5915 +5925 query I rowsort SELECT DISTINCT - - col1 * + col1 * - col0 FROM tab2 AS cor0 @@ -28559,8 +28847,9 @@ SELECT DISTINCT - SUM ( - col2 ) / + 47 AS col2 FROM tab0 3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, + 35 AS col0 FROM tab2 WHERE NOT col1 + + + 50 + - - col2 IS NOT NULL +---- query I rowsort SELECT ALL - col2 + - - col2 + col1 * + - col1 FROM tab1 @@ -29670,8 +29959,15 @@ SELECT DISTINCT - + 70 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - -1972 # Datafusion - Expected - -5548 # Datafusion - Expected - -2784 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* Int64\(\-73\) AS col1" at position 0 and "\(\- \(\- Int64\(\-29\)\)\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 76 * - 73 col1, - ( - ( + - 29 ) ) * + + col2 AS col1 FROM tab1 AS cor0 +---- +-1711 +-1972 +-2784 +-5548 +-5548 +-5548 query I rowsort SELECT DISTINCT - 83 * - - 40 * + col2 / - - col0 FROM tab1 AS cor0 WHERE col1 * - 50 IS NULL @@ -29835,8 +30131,15 @@ SELECT * FROM tab2 WHERE NOT col2 * ( - 59 ) + - CAST ( NULL AS INTEGER ) * + co # Datafusion - Expected - 14 # Datafusion - Expected - 42 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ tab0\.col1 AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 + col1 AS col1, + 14 AS col1 FROM tab0 +---- +14 +14 +14 +162 +2 +42 query I rowsort label-4915 SELECT 66 / + 94 FROM tab2 @@ -29882,8 +30185,15 @@ SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > col2 + - col2 # Datafusion - Expected - 63 # Datafusion - Expected - 604 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- cor0\.col2\) \+ Int64\(75\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - col2 ) * + - col2 + + + 75 AS col2, + 63 AS col2 FROM tab2 AS cor0 +---- +1675 +3439 +604 +63 +63 +63 query I rowsort SELECT ALL + - 76 + + + col1 FROM tab0 cor0 @@ -30611,8 +30921,11 @@ SELECT - - col2, col1 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "min\(cor0\.col2\) \+ Int64\(\-97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 78 AS col0, + MIN ( + col2 ) + - 97 AS col0 FROM tab2 AS cor0 +---- +-74 +78 query III rowsort label-5045 SELECT DISTINCT - + col2, 10 col2, CAST ( - 12 AS INTEGER ) AS col0 FROM tab1 AS cor0 @@ -30890,8 +31203,11 @@ SELECT ALL col2 * col2 - + + col0 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-60\)\)\) AS col2" at position 0 and "min\(tab0\.col2\) \- Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MIN ( ALL - 60 ) AS col2, MIN ( + + col2 ) - - 88 AS col2 FROM tab0 +---- +60 +98 query II rowsort label-5091 SELECT ALL - COUNT ( - 25 ), + 50 AS col2 FROM tab2 @@ -31068,8 +31384,15 @@ SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 62, col0 * - col2, - col0, + ( co # Datafusion - Expected - 80 # Datafusion - Expected - -75 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col1, 80 AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +80 +80 +80 query II rowsort SELECT DISTINCT col1 + - 99 + col0 AS col0, - 92 AS col2 FROM tab2 AS cor0 @@ -31154,8 +31477,15 @@ SELECT 62 * - col0 * + + col0 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -116 # Datafusion - Expected - -3234 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* \(\- cor0\.col1\) AS col0" at position 0 and "Int64\(2\) \* \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 42 * - col1 col0, 2 * - col2 AS col0 FROM tab2 AS cor0 +---- +-116 +-2142 +-2814 +-3234 +-46 +-80 query I rowsort label-5133 SELECT ALL + + ( + + MAX ( ALL col1 ) ) col1 FROM tab1 AS cor0 @@ -31292,8 +31622,11 @@ SELECT - - 30 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + 53 AS col2 FROM tab1 AS cor0 +---- +3 +53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 @@ -31302,8 +31635,15 @@ SELECT COUNT ( * ) AS col2, + 53 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col1, col1 AS col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT - 39 * - 95 FROM tab2 WHERE NOT - col1 + - - col2 < - 36 @@ -31541,8 +31881,15 @@ SELECT ( - col2 ) + + - 74 + + - 99 * - + 97 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 10 # Datafusion - Expected - 6561 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col1 AS Int32\) \* cor0\.col1 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( col1 AS INTEGER ) * + ( + + col1 ) AS col1, col2 AS col1 FROM tab0 AS cor0 +---- +1 +10 +441 +47 +6561 +99 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col1 / - col1 + + col0 * - col0 ) <= ( NULL ) @@ -33038,8 +33385,15 @@ SELECT + MAX ( - 31 ) + - 17 FROM tab2 # Datafusion - Expected - -87 # Datafusion - Expected - NULL # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col1 AS Int32\) \* tab0\.col2 \+ CAST\(NULL AS Float64\) \+ \(\- Int64\(7\)\) AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT CAST ( + + col1 AS INTEGER ) * col2 + CAST ( NULL AS FLOAT8 ) + - ( + 7 ) AS col2, - col0 AS col2 FROM tab0 +---- +-15 +-87 +-97 +NULL +NULL +NULL query II rowsort label-5446 SELECT ALL - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ), COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 @@ -33590,8 +33944,11 @@ SELECT + col0 - + 5 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 152 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(40\) \+ Int64\(32\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) * 40 + + + 32 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 +---- +152 +NULL query III rowsort SELECT * FROM tab1 WHERE 34 + - 70 <> NULL @@ -33715,8 +34072,15 @@ SELECT DISTINCT col2 + 16 * - + 53 * + col1 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query III rowsort SELECT DISTINCT * FROM tab0 WHERE + 30 + + col0 * - + col0 <= + col1 @@ -34050,8 +34414,15 @@ SELECT ALL col0 / + 80 AS col0 FROM tab0 # Datafusion - Expected - -3886 # Datafusion - Expected - 77 # Datafusion - Expected - -3080 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "\(\- tab2\.col1\) \* tab2\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, - col1 * col2 AS col2 FROM tab2 +---- +-1173 +-3080 +-3886 +51 +67 +77 query I rowsort label-5612 SELECT DISTINCT + CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT + col2 / + + col2 <= 34 @@ -34680,8 +35051,15 @@ SELECT + 79 * col0 + - col2 FROM tab0 cor0 # Datafusion - Expected - -1 # Datafusion - Expected - -714 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 / \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * - col1 AS col2, col1 / - col1 AS col2 FROM tab1 AS cor0 +---- +-1 +-1 +-1 +-425 +-4277 +-714 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 @@ -34690,8 +35068,15 @@ SELECT + col0 * - col1 AS col2, col1 / - col1 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 1827 # Datafusion - Expected - -81 # Datafusion - Expected - 1215 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col0 \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - col1 ) AS col0, + col0 * + + col1 AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +1215 +1827 +97 query I rowsort label-5719 SELECT - COUNT ( * ) * + 47 / SUM ( col0 ) FROM tab0 AS cor0 @@ -34722,8 +35107,11 @@ SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE + col1 * + col1 + 75 - - + col1 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "max\(tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, MAX ( ALL + col2 ) AS col0 FROM tab0 +---- +3 +99 query I rowsort label-5724 SELECT - MAX ( ALL 31 ) FROM tab0 @@ -35296,8 +35684,9 @@ SELECT + + col1 FROM tab2 AS cor0 WHERE NOT col0 <= NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ Int64\(90\) AS col0" at position 0 and "cor0\.col1 \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 + + 90 AS col0, col1 * - col0 AS col0 FROM tab1 AS cor0 WHERE NULL <= + 95 + - col1 * + col1 / + 73 +---- query I rowsort SELECT ALL + + col0 * ( + col0 ) AS col0 FROM tab1 AS cor0 @@ -37492,8 +37881,15 @@ SELECT DISTINCT - col0 + + + col1 FROM tab1 WHERE col2 IS NULL # Datafusion - Expected - 64 # Datafusion - Expected - 58 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, 64 AS col0 FROM tab2 +---- +23 +40 +58 +64 +64 +64 query I rowsort SELECT ( + - ( - ( col0 ) ) ) AS col1 FROM tab1 @@ -37538,8 +37934,10 @@ SELECT + - col0 * col0 AS col0 FROM tab2 AS cor0 WHERE NOT - 37 * - col1 + - col # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c2593989a1b1bea4a02305b2d7d78b3b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\)" at position 0 and "\(\- tab0\.col1\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - col1, - col1 AS col2, - col1 FROM tab0 +---- +9 values hashing to c2593989a1b1bea4a02305b2d7d78b3b query II rowsort SELECT - - 63 - - - col1 col0, + 28 AS col2 FROM tab1 WHERE NULL <= NULL @@ -37623,8 +38021,15 @@ SELECT col2 - - 54 FROM tab1 # Datafusion - Expected - -91 # Datafusion - Expected - 48 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \- Int64\(48\) AS col1" at position 0 and "\(\- \(\- \(\- tab1\.col0\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 - 48 col1, - ( - - col0 ) AS col1 FROM tab1 +---- +-51 +-85 +-91 +11 +20 +48 query I rowsort SELECT + 75 - - 9 + + col1 FROM tab0 @@ -38110,8 +38515,15 @@ SELECT + + 10 AS col2 FROM tab0 AS cor0 WHERE - 89 IS NOT NULL OR NOT NULL IS NO # Datafusion - Expected - 21 # Datafusion - Expected - -81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 AS col0, + col1 col0 FROM tab0 AS cor0 +---- +-81 +-81 +-81 +1 +21 +81 query I rowsort SELECT 97 * 49 FROM tab1 cor0 @@ -38264,8 +38676,11 @@ SELECT ALL * FROM tab0 WHERE NOT col0 + - - col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - -468 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-20\)\) AS col2" at position 0 and "count\(\(\- \(\- tab0\.col0\)\)\) \* \(\- sum\(DISTINCT tab0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MIN ( - 20 ) AS col2, COUNT ( - - col0 ) * - SUM ( DISTINCT + col2 ) AS col2 FROM tab0 +---- +-20 +-468 query II rowsort SELECT - 85 AS col2, 69 FROM tab1 @@ -38805,8 +39220,15 @@ SELECT + CAST ( 5 AS INTEGER ) + + col2 * - + col0 FROM tab2 AS cor0 # Datafusion - Expected - 54 # Datafusion - Expected - 35 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \+ \(\- Int64\(49\)\) AS col0" at position 0 and "cor0\.col2 \+ \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 + - ( 49 ) AS col0, + col2 + - col1 AS col0 FROM tab1 AS cor0 +---- +21 +35 +35 +35 +54 +82 query III rowsort SELECT * FROM tab0 WHERE ( + - 75 ) * col0 IS NOT NULL @@ -38894,8 +39316,11 @@ SELECT DISTINCT + + 72 col1 FROM tab0 AS cor0 WHERE NOT + col1 > NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 185 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(cor0\.col0\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( + col0 ) col0, COUNT ( * ) col0 FROM tab2 cor0 +---- +185 +3 query I rowsort SELECT ALL + col2 * + - 34 * - col1 col1 FROM tab1 AS cor0 @@ -39316,8 +39741,15 @@ SELECT col2, - 92 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -97 # Datafusion - Expected - 5 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(\-50\) \+ \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, - 50 + - col1 AS col2 FROM tab1 cor0 +---- +-55 +-64 +-97 +14 +47 +5 query III rowsort label-6481 SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * + col1 NOT BETWEEN - ( + + col1 ) AND + CAST ( NULL AS INTEGER ) @@ -40114,8 +40546,11 @@ SELECT DISTINCT - col1 + + ( 88 ) + + col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-52\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-66\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) * - 52 - - COUNT ( * ) AS col1, - 66 + - COUNT ( * ) col1 FROM tab1 AS cor0 +---- +-69 +NULL query I rowsort SELECT DISTINCT col0 * - ( ( + 98 ) ) FROM tab0 @@ -40492,8 +40927,10 @@ SELECT ALL 94, col1 * + 17 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f99ef597059122ff14de065d783c1440 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \- tab1\.col1 / \(\- tab1\.col1\) AS col0" at position 0 and "\(\- tab1\.col0\) \* tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ( col1 ) - col1 / - + col1 AS col0, - col0 * + col0 col0, 74 AS col0 FROM tab1 +---- +9 values hashing to 1b587dc79bc85368c438e6250d9b04e5 query I rowsort SELECT + - 44 AS col1 FROM tab2 cor0 @@ -40812,8 +41249,15 @@ SELECT ALL - MIN ( - col2 ) + 54 AS col0 FROM tab0 # Datafusion - Expected - 96 # Datafusion - Expected - -943 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- tab1\.col1\) AS Int32\)\) \+ Int64\(\-79\) \* Int64\(12\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( - col1 AS INTEGER ) + - 79 * + 12 AS col0, + col2 AS col0 FROM tab1 +---- +-901 +-934 +-943 +59 +68 +96 query I rowsort label-6741 SELECT ALL - 22 + + - COUNT ( + 47 ) AS col0 FROM tab0 cor0 @@ -41427,8 +41871,15 @@ SELECT ALL - + 14 * col0 + - - 45 * col0 + + 47 FROM tab2 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - -58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\)" at position 0 and "\(\- tab2\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2, + ( - col2 ) FROM tab2 +---- +-23 +-23 +-40 +-40 +-58 +-58 query III rowsort label-6842 SELECT * FROM tab0 WHERE NOT NULL BETWEEN - CAST ( NULL AS INTEGER ) - + ( CAST ( - 13 AS INTEGER ) ) AND + + ( + 9 ) + + 29 @@ -41487,8 +41938,15 @@ SELECT + + 59 / - col1 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 53 # Datafusion - Expected - -6853 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(89\)\) \* cor0\.col1 AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 89 ) * + col1 col2, 53 AS col2 FROM tab2 AS cor0 +---- +-4539 +-5963 +-6853 +53 +53 +53 query I rowsort label-6851 SELECT - COUNT ( * ) * + 26 col2 FROM tab1 @@ -41589,8 +42047,15 @@ SELECT ALL - 36 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 # Datafusion - Expected - 144 # Datafusion - Expected - 7371 # Datafusion - Expected - 159 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* tab1\.col0 AS col2" at position 0 and "tab1\.col0 \+ CAST\(tab1\.col2 AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 81 * col0 AS col2, + col0 + CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 +---- +144 +147 +159 +4131 +6885 +7371 query I rowsort label-6868 SELECT ALL 17 / col1 FROM tab0 @@ -42371,8 +42836,11 @@ 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\(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\. +query IR valuesort SELECT + - 10 AS col1, 74 * - 93 * + - COUNT ( * ) + - COUNT ( * ) - - CAST ( NULL AS FLOAT8 ) AS col1 FROM tab2 AS cor0 +---- +-10 +NULL query III rowsort label-6999 SELECT DISTINCT * FROM tab1 cor0 WHERE ( col1 ) IN ( CAST ( col1 AS FLOAT8 ) / 35 - + col1 * + col1 + col0 ) @@ -43050,8 +43518,15 @@ SELECT ALL + MIN ( + - col1 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -54 # Datafusion - Expected - -91 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 \+ \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, col1 + + + ( - col2 ) AS col2 FROM tab1 AS cor0 +---- +-21 +-51 +-54 +-82 +-85 +-91 query I rowsort label-7110 SELECT DISTINCT + + 53 + + MIN ( col0 ) AS col0 FROM tab2 AS cor0 @@ -43065,8 +43540,15 @@ SELECT DISTINCT + + 53 + + MIN ( col0 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -260362 # Datafusion - Expected - NULL # Datafusion - Expected - -59823 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* \(\- cor0\.col1\) \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "cor0\.col1 \* \(\- cor0\.col1\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 22 * - + col1 + + + CAST ( NULL AS INTEGER ) col1, + col1 * - col1 * + col2 AS col1 FROM tab2 cor0 +---- +-237160 +-260362 +-59823 +NULL +NULL +NULL query I rowsort SELECT DISTINCT 35 * + 82 AS col2 FROM tab0 @@ -43248,8 +43730,15 @@ SELECT ALL + col1 * + + ( col2 ) FROM tab2 AS cor0 # Datafusion - Expected - 3315 # Datafusion - Expected - 18 # Datafusion - Expected - 3549 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "cor0\.col0 \* Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 18 col0, col0 * 39 AS col0 FROM tab1 cor0 +---- +18 +18 +18 +1989 +3315 +3549 query I rowsort label-7141 SELECT ALL - MAX ( - 4 ) FROM tab1 AS cor0 @@ -45268,8 +45757,15 @@ SELECT DISTINCT - 24 + + 18 FROM tab1 AS cor0 # Datafusion - Expected - 33 # Datafusion - Expected - 89 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \+ cor0\.col2 AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 21 + + col2 AS col2, 33 AS col2 FROM tab1 AS cor0 +---- +117 +33 +33 +33 +80 +89 query I rowsort label-7478 SELECT ALL - MAX ( DISTINCT - - col0 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col2 AND + col2 @@ -45477,8 +45973,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 * + col2 IS NULL # Datafusion - Expected - 92 # Datafusion - Expected - 97 # Datafusion - Expected - 92 -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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 97 AS col0, 92 AS col0 FROM tab1 +---- +92 +92 +92 +97 +97 +97 query I rowsort label-7513 SELECT ALL + - COUNT ( 74 ) + + + COUNT ( * ) + - + 62 AS col0 FROM tab1 AS cor0 @@ -45648,8 +46151,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, + ( - COUNT ( * ) ) AS col2 FROM tab1 +---- +-3 +-3 query I rowsort SELECT 27 * - col0 FROM tab1 @@ -46054,8 +46560,15 @@ SELECT DISTINCT 3 * - + 4 FROM tab1 # Datafusion - Expected - 1880 # Datafusion - Expected - 99 # Datafusion - Expected - 3960 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 \* Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, col2 * + 40 AS col0 FROM tab0 AS cor0 +---- +10 +1880 +3960 +400 +47 +99 query II rowsort label-7606 SELECT + COUNT ( * ) AS col0, + ( + 93 ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0 @@ -46247,8 +46760,11 @@ SELECT + COUNT ( * ) / + COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 26 col1, COUNT ( * ) AS col1 FROM tab1 cor0 +---- +26 +3 query I rowsort SELECT + - 92 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 @@ -46281,8 +46797,15 @@ SELECT ALL - + col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN + col2 AN # Datafusion - Expected - 2560 # Datafusion - Expected - 165 # Datafusion - Expected - 4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ Int64\(68\) 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 II valuesort SELECT ALL + 97 + 68 AS col1, + col0 * + + col2 AS col1 FROM tab2 AS cor0 +---- +1058 +165 +165 +165 +2560 +4350 query I rowsort label-7644 SELECT - + 23 / + MIN ( DISTINCT - col1 ) + - COUNT ( * ) + - - SUM ( - col1 ) FROM tab1 AS cor0 WHERE NOT col0 * + col1 <= 67 * + + col2 @@ -46854,8 +47377,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, - 83 AS col1 FROM tab2 +---- +-3 +-83 query I rowsort label-7742 SELECT ALL - + COUNT ( * ) * + 96 AS col1 FROM tab1 AS cor0 @@ -47272,8 +47798,15 @@ SELECT ALL + 83 * + - col0 * 86, + col1 AS col2 FROM tab1 cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 0 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* cor0\.col2 \* Int64\(0\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 * + col2 * + 0 AS col0, + col1 AS col0 FROM tab2 cor0 +---- +0 +0 +0 +51 +67 +77 query I rowsort label-7809 SELECT DISTINCT - col0 / + 77 FROM tab0 AS cor0 @@ -47579,8 +48112,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 / + col1 ) IS NULL # Datafusion - Expected - 40 # Datafusion - Expected - -75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col0, ( col2 ) AS col0 FROM tab2 +---- +-46 +-64 +-75 +23 +40 +58 query I rowsort SELECT 69 col1 FROM tab0, tab1 AS cor0 @@ -47659,8 +48199,11 @@ SELECT 84 + + col1 col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(15\) AS col0" at position 0 and "Int64\(22\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) + + + 15 AS col0, 22 + + + COUNT ( * ) AS col0 FROM tab2 +---- +18 +25 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + 91, col2 ) @@ -47742,8 +48285,15 @@ SELECT MIN ( - ( 55 ) ) FROM tab0 # Datafusion - Expected - 4 # Datafusion - Expected - 81 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, 4 AS col2 FROM tab0 +---- +1 +21 +4 +4 +4 +81 query I rowsort label-7891 SELECT DISTINCT + SUM ( DISTINCT - col2 ) / MIN ( DISTINCT 30 ) AS col0 FROM tab0 WHERE NOT col2 + - + col1 IS NOT NULL @@ -48519,8 +49069,15 @@ SELECT 34 * - COUNT ( * ) + ( 76 ) FROM tab1 AS cor0 # Datafusion - Expected - 1173 # Datafusion - Expected - 8 # Datafusion - Expected - 3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ Int64\(44\) / Int64\(\-69\) \+ cor0\.col0 AS col2" at position 0 and "cor0\.col2 \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + + 44 / + - 69 + col0 AS col2, col2 * + col1 AS col2 FROM tab2 AS cor0 +---- +-13 +-5 +1173 +3080 +3886 +8 query I rowsort label-8020 SELECT + 84 + + ( ( - - CAST ( COUNT ( * ) AS INTEGER ) ) ) / - MAX ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 @@ -49376,8 +49933,15 @@ SELECT 48 * - + col2 FROM tab0 # Datafusion - Expected - 1547 # Datafusion - Expected - 96 # Datafusion - Expected - 867 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "Int64\(17\) \* \(\- \(\- tab1\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, 17 * - - col0 AS col0 FROM tab1 +---- +1445 +1547 +59 +68 +867 +96 query I rowsort label-8153 SELECT DISTINCT ( + COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) / MAX ( ALL - - ( - col2 ) ) + + + 7 FROM tab0 @@ -51464,8 +52028,15 @@ SELECT * FROM tab2 WHERE NULL <= - - 28 * + col1 - - + col2 - - - col2 # Datafusion - Expected - -59 # Datafusion - Expected - -3196 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col1 / Int64\(73\) \- cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * - col1 AS col1, col1 / + 73 - col2 col1 FROM tab1 cor0 +---- +-1344 +-295 +-3196 +-59 +-68 +-96 query III rowsort SELECT * FROM tab2 AS cor0 WHERE col0 + - col0 IS NOT NULL @@ -52480,8 +53051,15 @@ NULL # Datafusion - Expected - 40 # Datafusion - Expected - 74 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / Int64\(\-74\) \+ cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 / ( + - 74 ) + col0 AS col1, col2 col1 FROM tab2 AS cor0 +---- +23 +40 +46 +58 +64 +74 query I rowsort label-8661 SELECT DISTINCT + col2 / - + col2 AS col2 FROM tab2 AS cor0 @@ -52531,8 +53109,15 @@ SELECT + col1, - col1 / + 90 * - 57 - - col0 / - + col1 AS col2 FROM tab0 AS cor # Datafusion - Expected - -5070 # Datafusion - Expected - 99 # Datafusion - Expected - -18120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "tab0\.col2 \* \(\- tab0\.col2\) \+ \(\- tab0\.col1\) \+ tab0\.col0 \* tab0\.col1 \- \(\- tab0\.col2\) \* Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, col2 * + ( + - col2 ) + + ( - col1 ) + + + col0 * col1 - - + col2 * - 85 AS col0 FROM tab0 +---- +-18120 +-5070 +10 +47 +856 +99 query II rowsort label-8668 SELECT ALL 95 AS col1, + 33 + COUNT ( * ) FROM tab2 @@ -52581,8 +53166,9 @@ SELECT DISTINCT - - col1 + - + col1 AS col0 FROM tab0 cor0 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, + col2 FROM tab0 AS cor0 WHERE 20 BETWEEN - col1 AND NULL +---- query I rowsort label-8677 SELECT + - COUNT ( ALL - - ( + col0 ) ) col0 FROM tab0 AS cor0 @@ -52739,8 +53325,15 @@ SELECT - COUNT ( * ) / 66 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -15 # Datafusion - Expected - 99 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 AS col2, - col0 col2 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +10 +47 +99 query I rowsort label-8701 SELECT - col1 FROM tab0 WHERE NOT col2 * 46 < CAST ( 71 AS FLOAT8 ) @@ -53111,8 +53704,11 @@ SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 28 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(21\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col2, + 21 * + COUNT ( * ) AS col2 FROM tab1 +---- +-3 +63 query I rowsort SELECT - 99 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -53360,8 +53956,15 @@ SELECT DISTINCT 56 + + col0 - + + col2 + + 32 FROM tab2 # Datafusion - Expected - 91 # Datafusion - Expected - 75 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- cor0\.col0\)\) AS Int32\) AS col1" at position 0 and "CAST\(Int64\(91\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - - col0 AS INTEGER ) col1, CAST ( + 91 AS INTEGER ) AS col1 FROM tab2 AS cor0 +---- +46 +64 +75 +91 +91 +91 query I rowsort SELECT DISTINCT - 7 + + col0 + + - col1 * + - 14 col1 FROM tab1 AS cor0 @@ -54017,8 +54620,15 @@ SELECT COUNT ( ALL + 33 ) FROM tab0 AS cor0 # Datafusion - Expected - 55 # Datafusion - Expected - 87 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ Int64\(29\) AS col0" at position 0 and "\(\- cor0\.col2\) \- \(\- Int64\(95\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 + 29 AS col0, - col2 - - + 95 col0 FROM tab2 AS cor0 +---- +37 +52 +55 +69 +72 +87 query I rowsort SELECT ALL - 21 * 12 * - 39 * col2 FROM tab1 AS cor0 @@ -54267,8 +54877,10 @@ SELECT DISTINCT + + col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to fb33bf64ad7969e063a13f2c4fff967f -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(\-34\) \* \(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 37 AS col0, - 34 * - col2 col0, + 74 * col0 FROM tab2 +---- +9 values hashing to e6eff3c090d738052d0b158752d13a16 query I rowsort label-8967 SELECT ALL + COUNT ( * ) * - SUM ( 14 ) * COUNT ( * ) FROM tab2 @@ -55098,8 +55710,11 @@ SELECT DISTINCT + 37 * - col1 + - col1 AS col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - 194 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(34\)\)\) AS col0" at position 0 and "Int64\(98\) \+ Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - SUM ( DISTINCT 34 ) ) AS col0, 98 + + 96 col0 FROM tab0 +---- +-34 +194 query I rowsort label-9101 SELECT DISTINCT + COUNT ( col0 ) * CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL = NULL @@ -55602,8 +56217,15 @@ SELECT DISTINCT + + MIN ( - 3 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -1 # Datafusion - Expected - -91 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-91\)\)\) AS col0" at position 0 and "\(\- cor0\.col1\) / Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - ( - 91 ) AS col0, - col1 / 55 AS col0 FROM tab2 cor0 +---- +-1 +-1 +-91 +-91 +-91 +0 query I rowsort SELECT DISTINCT + 77 * - col1 AS col2 FROM tab2 WHERE ( + ( - col0 ) + - col0 <> NULL ) @@ -56679,8 +57301,15 @@ SELECT - col0 * - + col2 * - 40 FROM tab1 # Datafusion - Expected - 23 # Datafusion - Expected - 31 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \- \(\- tab0\.col2\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 - - col2 AS col2, 23 col2 FROM tab0 +---- +100 +128 +23 +23 +23 +31 query I rowsort label-9363 SELECT ALL MAX ( ALL - + col1 ) AS col1 FROM tab2 @@ -57015,8 +57644,11 @@ SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE 13 + - col0 < 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(\-17\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, ( - 17 ) * + COUNT ( * ) AS col1 FROM tab1 cor0 +---- +-51 +NULL query II rowsort SELECT ALL col1, - col2 + - col1 AS col2 FROM tab0 AS cor0 @@ -57326,8 +57958,11 @@ SELECT ALL col2 AS col2, + ( - 46 ) / + + ( - + col1 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0 +---- +9 +NULL query III rowsort SELECT ALL * FROM tab0 WHERE col1 + + - col2 >= - ( + + 2 ) @@ -57740,8 +58375,15 @@ SELECT ALL * FROM tab2 WHERE NOT - col0 = - col2 # Datafusion - Expected - 47 # Datafusion - Expected - 1 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) / \(\- tab0\.col0\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 / - col0 AS col0, col2 AS col0 FROM tab0 +---- +1 +1 +1 +10 +47 +99 query III rowsort SELECT + col1, col1 * 21 * + col0 AS col0, - + col0 FROM tab1 @@ -57799,8 +58441,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT ( + + col2 * ( + + col0 ) < CAST ( col0 AS # Datafusion - Expected - -87 # Datafusion - Expected - 97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 / + col1 AS col0, - col0 AS col0 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +0 +4 +97 query I rowsort label-9540 SELECT DISTINCT SUM ( - + 11 ) FROM tab1 AS cor0 @@ -58159,7 +58808,7 @@ SELECT - col2 / - - col0 - - col2 FROM tab1 95 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ Int64\(1\) 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: Schema error: Schema contains qualified field name tab0\.col0 and unqualified field name col0 which would be ambiguous SELECT ALL + + col2 + 1 AS col0, ( + + 98 ) AS col0, col0 AS col0 FROM tab0 WHERE NOT ( NULL ) >= 99 query III rowsort @@ -59330,8 +59979,15 @@ SELECT ALL + col1 AS col1, col0 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 3110 # Datafusion - Expected - 75 # Datafusion - Expected - 3916 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col1 \* cor0\.col2 \+ Int64\(54\) \+ Int64\(\-24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0 AS col1, col1 * col2 + 54 + - 24 AS col1 FROM tab2 AS cor0 +---- +1203 +3110 +3916 +46 +64 +75 query III rowsort label-9793 SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) IN ( - + col2 * + + col0 * - 93 * + CAST ( 57 AS INTEGER ) / + - col0 + - col0 + + 20 / + - ( + 35 ) * - - col2 + - 24 * col2 ) @@ -60276,8 +60932,11 @@ SELECT ALL - COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 29 AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +-29 +3 query I rowsort label-9944 SELECT DISTINCT COUNT ( * ) * + - 58 col2 FROM tab0 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_33.slt b/data/sqlite/random/aggregates/slt_good_33.slt index e501dc2..a51e8c1 100644 --- a/data/sqlite/random/aggregates/slt_good_33.slt +++ b/data/sqlite/random/aggregates/slt_good_33.slt @@ -1547,8 +1547,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) * 33 AS col1, - COUNT ( * ) AS col1 FROM tab0 +---- +-3 +99 query I rowsort label-264 SELECT DISTINCT + COUNT ( col0 ) * - 63 / - COUNT ( * ) AS col2 FROM tab0 AS cor0 @@ -2164,8 +2167,15 @@ SELECT - 17 * + ( - 22 ) AS col0, - 94 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -5779 # Datafusion - Expected - -97 # Datafusion - Expected - -6449 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col0 \* \(\- Int64\(67\)\) \+ Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, col0 * - + 67 + 50 col1 FROM tab0 cor0 +---- +-15 +-5779 +-6449 +-87 +-955 +-97 query I rowsort label-367 SELECT ALL + + 7 / COUNT ( * ) FROM tab1 AS cor0 @@ -2409,8 +2419,11 @@ SELECT 58 / + col2 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, 28 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 +---- +28 +9 query II rowsort label-408 SELECT 61 AS col2, COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 @@ -3544,8 +3557,15 @@ SELECT col2 FROM tab0 WHERE NOT 25 > - - col2 + col2 # Datafusion - Expected - NULL # Datafusion - Expected - 56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col1" at position 0 and "CAST\(NULL AS Float64\) \+ tab1\.col0 \* \(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ( + 56 ) AS col1, + CAST ( NULL AS FLOAT8 ) + col0 * + ( - col2 ) AS col1 FROM tab1 +---- +56 +56 +56 +NULL +NULL +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -3832,8 +3852,15 @@ SELECT - MIN ( + 64 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 54 # Datafusion - Expected - NULL # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- cor0\.col0\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-82\) \* cor0\.col0 \- CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 * - col0 * - CAST ( NULL AS INTEGER ) * - 82 * + col0 - + CAST ( NULL AS INTEGER ) AS col2, + 54 AS col2 FROM tab1 AS cor0 +---- +54 +54 +54 +NULL +NULL +NULL query I rowsort label-654 SELECT DISTINCT SUM ( DISTINCT - - col1 ) - - + ( + - CAST ( 67 AS INTEGER ) ) * 91 * + 59 * - - 96 FROM tab2 AS cor0 @@ -4096,8 +4123,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(81\) \+ \(\- sum\(tab2\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 * - 56 AS col0, + ( - 37 ) * + COUNT ( * ) - + + 81 + - + SUM ( + col1 ) AS col0 FROM tab2 +---- +-3192 +-387 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT NULL = ( - 30 + col2 ) @@ -4884,8 +4914,15 @@ SELECT COUNT ( * ) AS col2 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 ) # Datafusion - Expected - 68 # Datafusion - Expected - 714 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* tab1\.col1 AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 * col1 AS col0, col2 AS col0 FROM tab1 +---- +425 +4277 +59 +68 +714 +96 query I rowsort SELECT ALL - + ( 75 ) * + 79 + 1 AS col1 FROM tab0 AS cor0 @@ -4945,8 +4982,15 @@ SELECT DISTINCT COUNT ( - + col1 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - 96 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, col0 AS col1 FROM tab1 +---- +51 +59 +68 +85 +91 +96 query I rowsort SELECT ALL + col1 + - - ( - 63 ) FROM tab0 AS cor0 @@ -5685,8 +5729,15 @@ SELECT + + COUNT ( * ) - + MIN ( ALL - col2 ) AS col2 FROM tab2 cor0 # Datafusion - Expected - 26 # Datafusion - Expected - 90 # Datafusion - Expected - 546 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "cor0\.col1 \* Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 AS col1, col1 * + + 26 AS col1 FROM tab0 AS cor0 +---- +2106 +26 +546 +90 +90 +90 query I rowsort label-956 SELECT DISTINCT + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) * - 94 / - + 95 FROM tab1 AS cor0 @@ -5784,8 +5835,15 @@ NULL # Datafusion - Expected - -714 # Datafusion - Expected - 4 # Datafusion - Expected - -938 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col0" at position 0 and "\(\- tab2\.col1\) \* Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 4 AS col0, - col1 * + 14 AS col0 FROM tab2 +---- +-1078 +-714 +-938 +4 +4 +4 query II rowsort SELECT DISTINCT col0 AS col1, - col0 * + + col0 AS col0 FROM tab1 @@ -6500,8 +6558,15 @@ SELECT 99 AS col1, 19 * + - COUNT ( * ) col0 FROM tab1 # Datafusion - Expected - -30 # Datafusion - Expected - 99 # Datafusion - Expected - -194 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "\(\- tab0\.col0\) \- tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col0, - col0 - ( col0 ) AS col0 FROM tab0 +---- +-174 +-194 +-30 +10 +47 +99 query I rowsort label-1096 SELECT DISTINCT - SUM ( ALL CAST ( + + col2 AS INTEGER ) ) FROM tab1 @@ -6888,8 +6953,11 @@ SELECT DISTINCT + - MAX ( - CAST ( - 72 AS INTEGER ) ) AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9801 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* sum\(tab2\.col2\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 81 * + SUM ( ( + col2 ) ) col2, 48 AS col2 FROM tab2 +---- +48 +9801 query I rowsort SELECT ALL + ( + 33 ) AS col1 FROM tab2 WHERE - 19 + + - col0 BETWEEN + + col2 AND NULL @@ -7808,8 +7876,11 @@ SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) * - COUNT ( * ) AS col1, ( COUNT ( * ) ) col1 FROM tab0 +---- +3 +9 query I rowsort label-1304 SELECT - ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 @@ -8246,8 +8317,15 @@ SELECT * FROM tab1 WHERE NOT + - 94 BETWEEN - CAST ( - + 8 AS INTEGER ) AND - 27 # Datafusion - Expected - 15 # Datafusion - Expected - -9704 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- tab0\.col2\) \+ tab0\.col0 AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * - col2 + + + ( ( ( + col0 ) ) ) AS col2, col0 AS col2 FROM tab0 +---- +-13 +-2194 +-9704 +15 +87 +97 query I rowsort SELECT - 28 + - 13 col1 FROM tab1 @@ -8956,8 +9034,15 @@ SELECT DISTINCT - col2 - - 8 FROM tab0 AS cor0 # Datafusion - Expected - -25 # Datafusion - Expected - 81 # Datafusion - Expected - 35 -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 \- Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, col1 - + 46 AS col0 FROM tab0 AS cor0 +---- +-25 +-45 +1 +21 +35 +81 query III rowsort SELECT * FROM tab0 AS cor0 WHERE - col2 * - + col2 IN ( + + col2 ) @@ -9241,8 +9326,15 @@ SELECT - COUNT ( * ) AS col1, - COUNT ( + CAST ( ( 47 ) AS INTEGER ) ) + - COUNT # Datafusion - Expected - 64 # Datafusion - Expected - -58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col1, col0 AS col1 FROM tab2 +---- +-23 +-40 +-58 +46 +64 +75 query II rowsort SELECT 74 * + 35 * + + col2, + col1 FROM tab1 @@ -9255,8 +9347,9 @@ SELECT 74 * + 35 * + + col2, + col1 FROM tab1 14 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col0" at position 0 and "cor0\.col1 \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 88 AS col0, + col1 * - col0 AS col0 FROM tab0 AS cor0 WHERE NOT col1 + + col1 * col2 IS NOT NULL +---- query I rowsort label-1545 SELECT + col0 / col1 FROM tab1 AS cor0 WHERE NOT - 63 * 19 / ( - - col1 ) * + col2 IN ( + - col2, ( - ( + 42 ) ) * col0 ) @@ -9775,8 +9868,11 @@ SELECT DISTINCT * FROM tab2 WHERE NOT - - 24 <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, 61 AS col2 FROM tab2 +---- +3 +61 query I rowsort label-1632 SELECT ALL + COUNT ( * ) AS col0 FROM tab1 WHERE NOT - - 75 NOT IN ( - col2 * col1, + col0 + - - 62, - + col0 ) @@ -10253,8 +10349,9 @@ SELECT ALL - - MAX ( DISTINCT + + ( + 36 ) ) AS col1 FROM tab2 cor0 36 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 99 AS col1, + col0 AS col1 FROM tab0 WHERE ( NOT ( NULL ) IS NULL ) +---- query II rowsort SELECT col2 AS col2, - col0 AS col1 FROM tab0 @@ -10971,8 +11068,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) col0, COUNT ( * ) * COUNT ( ALL + col1 ) AS col0 FROM tab2 AS cor0 +---- +-3 +9 query I rowsort SELECT DISTINCT + ( - 18 ) * 79 FROM tab1 AS cor0 @@ -11211,8 +11311,15 @@ SELECT ALL + COUNT ( * ), + SUM ( DISTINCT + 92 ) AS col2 FROM tab2 # Datafusion - Expected - 77 # Datafusion - Expected - 75 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, col1 AS col2 FROM tab2 AS cor0 +---- +46 +51 +64 +67 +75 +77 query I rowsort label-1870 SELECT ALL - COUNT ( * ) + - ( - 90 ) AS col0 FROM tab2 AS cor0 WHERE NOT - CAST ( + 35 AS INTEGER ) IS NULL @@ -13105,8 +13212,15 @@ SELECT DISTINCT CAST ( 23 AS INTEGER ) FROM tab2 cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col1 col0, + col1 AS col0 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT + col1 AS col2 FROM tab1 cor0 WHERE NULL < NULL @@ -13284,8 +13398,15 @@ SELECT - CAST ( 15 AS INTEGER ) AS col1 FROM tab1 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, + col0 FROM tab0 cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT ALL - - 80 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 @@ -14426,8 +14547,15 @@ SELECT ALL COUNT ( * ) + + + 82 AS col1 FROM tab2 # Datafusion - Expected - 0 # Datafusion - Expected - -5 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "tab1\.col0 \- \(\- \(\- tab1\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col2, col0 - - - col0 AS col2 FROM tab1 +---- +-14 +-47 +-5 +0 +0 +0 query I rowsort label-2408 SELECT DISTINCT - 10 / - ( - 26 ) * - col1 * col2 + + 1 FROM tab0 @@ -14744,8 +14872,11 @@ SELECT DISTINCT - col0 * + col0 * col2 * col2 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 33 AS col1, COUNT ( * ) AS col1 FROM tab1 +---- +-33 +3 query I rowsort SELECT DISTINCT - ( - col0 ) + + + col1 FROM tab0 @@ -15263,8 +15394,15 @@ SELECT ALL + COUNT ( * ) - - - COUNT ( * ) FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - 7 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 7 AS col1, + col0 AS col1 FROM tab2 +---- +46 +64 +7 +7 +7 +75 query I rowsort label-2552 SELECT - MIN ( 72 ) FROM tab2 @@ -15918,8 +16056,11 @@ SELECT col2 AS col2, - col0 * - - col0 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - -8514 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "Int64\(\-86\) \* \(\- Int64\(\-99\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 30 AS col1, - 86 * ( - - 99 ) AS col1 FROM tab2 cor0 +---- +-8514 +30 query III rowsort label-2654 SELECT * FROM tab2 AS cor0 WHERE 15 * + - col0 = + CAST ( NULL AS FLOAT8 ) @@ -15968,8 +16109,15 @@ SELECT ALL - 98 + COUNT ( DISTINCT + - col0 ) FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - 66 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \- Int64\(\-89\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 - - 89 AS col2, col0 AS col2 FROM tab2 AS cor0 +---- +31 +46 +49 +64 +66 +75 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( col0 ) @@ -16539,8 +16687,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1, col1 FROM tab1 cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-2757 SELECT DISTINCT + 65 + - COUNT ( * ) AS col0 FROM tab0 cor0 @@ -17582,8 +17737,15 @@ SELECT - - COUNT ( + - 93 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 135 # Datafusion - Expected - 75 # Datafusion - Expected - 153 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col2 \- Int64\(\-95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, col2 - - 95 AS col1 FROM tab2 +---- +118 +135 +153 +46 +64 +75 query I rowsort SELECT ALL + - col2 FROM tab1 WHERE NOT - + col2 < NULL @@ -17979,8 +18141,15 @@ SELECT DISTINCT COUNT ( + CAST ( 26 AS INTEGER ) ) AS col0 FROM tab1 # Datafusion - Expected - -21 # Datafusion - Expected - 47 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 47 AS col1, - col1 AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +47 +47 +47 query I rowsort label-2990 SELECT 61 + - MAX ( ALL 37 ) AS col1 FROM tab0 AS cor0 @@ -18319,8 +18488,15 @@ SELECT ALL + ( col0 ) * - - col2 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, col1 AS col2 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT ALL + ( + 27 ) AS col0 FROM tab0 @@ -18349,8 +18525,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT col1 BETWEEN - col0 AND NULL # Datafusion - Expected - 16 # Datafusion - Expected - -91 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col0 AS col1, + 16 AS col1 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +16 +16 +16 query III rowsort SELECT * FROM tab1 cor0 WHERE NOT NULL = + 52 @@ -18487,8 +18670,15 @@ SELECT * FROM tab2 WHERE NOT - - 66 IS NOT NULL # Datafusion - Expected - -5 # Datafusion - Expected - 3196 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* tab1\.col1 AS col0" at position 0 and "Int64\(\-5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 * col1 AS col0, - 5 AS col0 FROM tab1 +---- +-5 +-5 +-5 +1344 +295 +3196 query I rowsort label-3076 SELECT col0 / - + col1 AS col1 FROM tab0 AS cor0 @@ -18685,8 +18875,15 @@ SELECT - + 79 AS col1, MAX ( ALL - col2 ) AS col2 FROM tab2 WHERE NOT - + 72 IS # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "\(\- CAST\(NULL AS Float64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT col0 AS col1, - CAST ( NULL AS FLOAT8 ) AS col1 FROM tab0 +---- +15 +87 +97 +NULL +NULL +NULL query I rowsort label-3108 SELECT DISTINCT MIN ( ALL - 28 ) / + COUNT ( 34 ) FROM tab2 WHERE - + col2 IS NULL @@ -18770,8 +18967,15 @@ NULL # Datafusion - Expected - 2 # Datafusion - Expected - 76 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 76 col0, + 2 col0 FROM tab2 +---- +2 +2 +2 +76 +76 +76 query I rowsort SELECT DISTINCT 91 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + col1 AND NULL @@ -19588,8 +19792,15 @@ SELECT ALL - col2 * col2 * - col0 FROM tab1 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, col0 AS col1 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query IIIIII rowsort SELECT ALL * FROM tab0 AS cor0 JOIN tab2 AS cor1 ON + + 80 IS NOT NULL @@ -19616,8 +19827,11 @@ SELECT * FROM tab2 AS cor0 WHERE NOT 30 + - 69 > NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 121 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-19\)\) AS col2" at position 0 and "\(\- sum\(DISTINCT \(\- cor0\.col2\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 19 AS col2, - SUM ( DISTINCT - + col2 ) AS col2 FROM tab2 AS cor0 +---- +121 +19 query I rowsort label-3270 SELECT 61 + - col1 FROM tab0 cor0 WHERE 65 / - ( + CAST ( NULL AS INTEGER ) ) NOT BETWEEN NULL AND ( NULL ) @@ -19733,8 +19947,15 @@ SELECT ALL + col2 + - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT DISTINCT - ( col0 ) * - col0 * col1 AS col2 FROM tab1 AS cor0 @@ -19786,8 +20007,15 @@ SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN - col2 AN # Datafusion - Expected - 59 # Datafusion - Expected - -91 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 AS col0, + ( col2 ) AS col0 FROM tab1 WHERE NOT - col1 IS NULL +---- +-51 +-85 +-91 +59 +68 +96 query I rowsort label-3297 SELECT ALL CAST ( CAST ( + col2 AS INTEGER ) AS INTEGER ) FROM tab2 @@ -20229,8 +20457,15 @@ SELECT + col0 AS col2, + 38 + col1 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -13 # Datafusion - Expected - 75 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col0 col2, - 13 AS col2 FROM tab2 AS cor0 +---- +-13 +-13 +-13 +46 +64 +75 query I rowsort label-3370 SELECT + + SUM ( - + col1 ) AS col2 FROM tab0 AS cor0 @@ -20263,8 +20498,15 @@ SELECT col1 + - + col0 AS col2 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) / \(\- \(\- \(\- CAST\(NULL AS Float64\)\)\)\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - 11 / + - ( - - CAST ( NULL AS FLOAT8 ) ) AS col2, + col0 AS col2 FROM tab0 +---- +15 +87 +97 +NULL +NULL +NULL query IIIIII rowsort SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 40 NOT BETWEEN NULL AND - 91 @@ -21025,8 +21267,11 @@ SELECT ALL - col0 + - col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col2" at position 0 and "max\(tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 77 AS col2, + MAX ( ALL col1 ) col2 FROM tab2 +---- +77 +77 query I rowsort label-3500 SELECT ALL CAST ( NULL AS INTEGER ) + + 86 / - COUNT ( * ) AS col2 FROM tab2 @@ -21523,8 +21768,15 @@ NULL # Datafusion - Expected - -44 # Datafusion - Expected - 96 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "tab1\.col1 \- tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, + col1 - col0 AS col0 FROM tab1 +---- +-37 +-44 +-80 +59 +68 +96 query I rowsort SELECT DISTINCT col0 * + 94 AS col0 FROM tab0 @@ -22354,8 +22606,15 @@ SELECT ALL - ( - - MIN ( DISTINCT + col1 ) ) + + + COUNT ( * ) AS col2 FROM tab0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2, col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-3721 SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 31 @@ -22779,8 +23038,15 @@ SELECT 4 AS col0, + col2 col1 FROM tab1 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - -1432 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(\-40\) \+ cor0\.col0 \+ cor0\.col0 \+ \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col2 \- cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 38 * + - 40 + + col0 + + col0 + ( + - col1 ) AS col2, col2 - col2 AS col2 FROM tab1 AS cor0 +---- +-1355 +-1385 +-1432 +0 +0 +0 query I rowsort label-3786 SELECT ALL + 19 / - col0 AS col0 FROM tab0 AS cor0 @@ -23048,8 +23314,15 @@ SELECT + col2 / + - col1 * - + col2 FROM tab2 AS cor0 # Datafusion - Expected - 3364 # Datafusion - Expected - 36 # Datafusion - Expected - 529 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "cor0\.col2 \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 36 col1, + col2 * + col2 AS col1 FROM tab2 AS cor0 +---- +1600 +3364 +36 +36 +36 +529 query I rowsort label-3832 SELECT - SUM ( - 62 ) AS col0 FROM tab2 AS cor0 @@ -23544,8 +23817,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "sum\(Int64\(1\)\) \* \(\- count\(cor0\.col0\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 89 col2, SUM ( ALL 1 ) * + - COUNT ( + col0 ) / + COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-3 +89 query I rowsort label-3908 SELECT + CAST ( NULL AS INTEGER ) / col1 * col0 FROM tab2 cor0 @@ -24057,8 +24333,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT ( - ( - + COUNT ( * ) ) ) AS col0, + COUNT ( * ) * 36 AS col0 FROM tab2 +---- +108 +3 query I rowsort label-3993 SELECT - - SUM ( - col2 ) col1 FROM tab1 WHERE NOT + col2 <= col2 @@ -25120,8 +25399,15 @@ SELECT ALL col2 + + + col0 AS col1 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 25 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \+ \(\- tab0\.col0\) \+ \(\- Int64\(72\)\) \+ tab0\.col0 AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 + - ( col0 ) + - + 72 + col0 AS col1, 47 col1 FROM tab0 +---- +-57 +15 +25 +47 +47 +47 query III rowsort label-4175 SELECT * FROM tab2 AS cor0 WHERE - 74 >= + col2 * 29 - - col0 OR + ( - col0 ) + + - CAST ( NULL AS INTEGER ) * + ( + 40 ) > ( NULL ) @@ -26518,8 +26804,9 @@ SELECT ALL + - 53 * 49 / + col1 - - col1 FROM tab1 AS cor0 -8 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col2" at position 0 and "Int64\(22\) \* \(\- cor0\.col0\) \* \(\- Int64\(71\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 42 AS col2, 22 * - + col0 * - + 71 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL +---- query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + - col1 IS NULL @@ -27723,8 +28010,15 @@ SELECT SUM ( + ( - col2 ) ) FROM tab0 # Datafusion - Expected - -2300 # Datafusion - Expected - 28 # Datafusion - Expected - -247 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col1" at position 0 and "tab1\.col1 \* \(\- tab1\.col1\) \- tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 28 ) AS col1, col1 * - col1 - col0 AS col1 FROM tab1 +---- +-110 +-2300 +-247 +28 +28 +28 query I rowsort SELECT col2 AS col1 FROM tab2 AS cor0 WHERE + col0 IS NULL @@ -27760,8 +28054,15 @@ SELECT - col0 / + col1 AS col0 FROM tab0 cor0 # Datafusion - Expected - -1980 # Datafusion - Expected - 13 # Datafusion - Expected - -1980 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "Int64\(\-22\) \* Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 13 AS col2, - 22 * + 90 AS col2 FROM tab1 AS cor0 +---- +-1980 +-1980 +-1980 +13 +13 +13 query I rowsort SELECT ALL + ( - - col0 ) AS col2 FROM tab1 cor0 @@ -27888,8 +28189,15 @@ SELECT DISTINCT col2 + - col0 + col1 FROM tab0 # Datafusion - Expected - 87 # Datafusion - Expected - 77 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 AS col2, col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL +---- +15 +77 +77 +77 +87 +97 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1289 @@ -27898,8 +28206,15 @@ SELECT 77 AS col2, col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL # Datafusion - Expected - 58 # Datafusion - Expected - -911 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- Int64\(21\)\) \+ \(\- Int64\(\-55\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * - + 21 + - - 55 col0, + col2 col0 FROM tab2 AS cor0 +---- +-1289 +-1520 +-911 +23 +40 +58 query I rowsort label-4636 SELECT ALL MAX ( - + col1 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL @@ -28600,8 +28915,15 @@ SELECT ALL - 10 / - col2 - - - col1 * - col1 * + - 8 FROM tab0 AS cor0 # Datafusion - Expected - -1940 # Datafusion - Expected - 93 # Datafusion - Expected - -300 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-93\)\) AS col2" at position 0 and "Int64\(20\) \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 93 AS col2, 20 * - col0 AS col2 FROM tab0 AS cor0 +---- +-1740 +-1940 +-300 +93 +93 +93 query I rowsort SELECT + 89 * - + ( col1 ) FROM tab2 @@ -29283,8 +29605,9 @@ SELECT ALL - - ( + ( + 71 ) ) AS col2, - col2 * - 15 AS col1 FROM tab0 AS cor0 705 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ cor0\.col1 \- cor0\.col2 / \(\- CAST\(NULL AS Int32\)\) \+ \(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + col1 - col2 / - CAST ( NULL AS INTEGER ) + - col0 AS col1, - col1 AS col1 FROM tab2 AS cor0 WHERE NULL >= NULL +---- query II rowsort label-4856 SELECT col0 + - col2 * col1 AS col0, + col2 / - - 70 col2 FROM tab2 AS cor0 @@ -29325,8 +29648,15 @@ SELECT ( MAX ( - col2 ) ) FROM tab0 # Datafusion - Expected - -2615 # Datafusion - Expected - 91 # Datafusion - Expected - -7230 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) / tab1\.col2 \+ \(\- \(\- tab1\.col1\)\) \+ tab1\.col0 AS col0" at position 0 and "\(\- tab1\.col1\) \+ \(\- tab1\.col0\) \* tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 78 / col2 + - - col1 + col0 AS col0, - col1 + - col0 * col0 AS col0 FROM tab1 +---- +-2615 +-7230 +-8328 +139 +65 +91 query I rowsort SELECT DISTINCT col2 AS col1 FROM tab0 WHERE col1 + - 93 >= NULL @@ -29375,8 +29705,11 @@ SELECT ALL * FROM tab1 WHERE - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 141 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) col2, COUNT ( * ) * 47 AS col2 FROM tab0 AS cor0 +---- +141 +3 query I rowsort label-4870 SELECT DISTINCT SUM ( ALL 45 ) FROM tab2 AS cor0 @@ -29417,8 +29750,11 @@ SELECT DISTINCT + col2, 42 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, - 50 AS col1 FROM tab2 +---- +-50 +3 query I rowsort SELECT + ( 73 ) col2 FROM tab1 @@ -29448,8 +29784,15 @@ SELECT 78 + 70 + col2 FROM tab2 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col0, col0 FROM tab2 cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-4881 SELECT ALL + + MIN ( ALL + 85 ) AS col2 FROM tab1 AS cor0 @@ -30680,8 +31023,15 @@ SELECT ALL - col2 FROM tab0 AS cor0 WHERE 61 IS NOT NULL # Datafusion - Expected - 0 # Datafusion - Expected - 99 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, - 0 AS col1 FROM tab0 +---- +0 +0 +0 +10 +47 +99 query III rowsort label-5088 SELECT * FROM tab1 WHERE - col0 IN ( col1, - col0 * + col1 / col2 * - 79 + col2 + CAST ( + col0 AS INTEGER ) ) @@ -31255,8 +31605,15 @@ SELECT ALL 40 * + - col0 AS col0 FROM tab1 # Datafusion - Expected - -21 # Datafusion - Expected - 10 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "\(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 10 col2, - col1 AS col2 FROM tab0 +---- +-1 +-21 +-81 +10 +10 +10 query I rowsort label-5183 SELECT ALL COUNT ( ALL - - col0 ) FROM tab0 @@ -33057,8 +33414,15 @@ SELECT DISTINCT - - col0 * + col2 * col2 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 79 # Datafusion - Expected - 6857 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(83\) \+ cor0\.col2 \- Int64\(\-87\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 * + 83 + col2 - - 87 AS col0, ( + 79 ) AS col0 FROM tab0 AS cor0 +---- +1840 +269 +6857 +79 +79 +79 query I rowsort label-5486 SELECT ALL - ( + - CAST ( NULL AS INTEGER ) ) * 75 AS col2 FROM tab2 AS cor0 @@ -34224,8 +34588,10 @@ SELECT ALL + 43 * col0 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 336913e610f019d6627171eb040a1c29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col0\) AS col1" at position 1 and "Int64\(37\) \+ cor0\.col0 \+ cor0\.col2 \* Int64\(\-25\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT CAST ( NULL AS INTEGER ) AS col0, + col1 + + ( - col0 ) AS col1, 37 + col0 + col2 * - 25 AS col1 FROM tab2 AS cor0 +---- +9 values hashing to af03b892dd056f305c4cf03d16b68d7f query I rowsort label-5677 SELECT 48 / - col2 AS col1 FROM tab1 cor0 @@ -34919,8 +35285,15 @@ SELECT * FROM tab2 WHERE NOT 55 = NULL AND NOT - ( + 72 ) IS NOT NULL # Datafusion - Expected - -47 # Datafusion - Expected - -99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\)" at position 0 and "\(\- tab0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2, - col2 FROM tab0 +---- +-10 +-10 +-47 +-47 +-99 +-99 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -34939,8 +35312,15 @@ NULL # Datafusion - Expected - -96 # Datafusion - Expected - 90 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ tab1\.col0 AS col1" at position 0 and "\(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 + col0 AS col1, - col2 AS col1 FROM tab1 +---- +-59 +-68 +-96 +138 +65 +90 query IIIIII rowsort SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 51 BETWEEN + - 44 AND NULL @@ -35639,8 +36019,15 @@ SELECT ALL * FROM tab2 WHERE + ( - 98 ) + + ( col0 ) + + 62 NOT BETWEEN ( NULL ) # Datafusion - Expected - -10 # Datafusion - Expected - -9603 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- tab0\.col0\) AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * - col0 AS col0, - col2 AS col0 FROM tab0 +---- +-10 +-47 +-705 +-870 +-9603 +-99 query I rowsort label-5920 SELECT ALL - CAST ( - COUNT ( DISTINCT - 27 ) AS INTEGER ) AS col1 FROM tab0 @@ -35826,8 +36213,15 @@ SELECT ALL - col1 + ( col1 ) * col2 * col1 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - -78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \+ \(\- tab1\.col2\) \+ Int64\(81\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + - col2 + + 81 AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 +---- +-63 +-66 +-78 +NULL +NULL +NULL query III rowsort SELECT * FROM tab1 WHERE 35 / col2 IS NULL @@ -36527,8 +36921,15 @@ SELECT + 19 + - - MIN ( + 49 ) FROM tab1 # Datafusion - Expected - -87 # Datafusion - Expected - 98 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \+ tab0\.col0 AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 1 + col0 AS col2, - col0 AS col2 FROM tab0 +---- +-15 +-87 +-97 +16 +88 +98 query I rowsort label-6062 SELECT DISTINCT 7 * - - MIN ( ALL - col0 ) FROM tab1 @@ -37366,8 +37767,15 @@ SELECT ALL + 87, COUNT ( DISTINCT col1 ) col0 FROM tab2 AS cor0 # Datafusion - Expected - -88 # Datafusion - Expected - 97 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(\-88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, - 88 AS col1 FROM tab0 cor0 +---- +-88 +-88 +-88 +15 +87 +97 query I rowsort label-6196 SELECT + col1 / + col2 + - + ( - + col2 ) + - col0 * col0 + col1 FROM tab2 AS cor0 @@ -37534,8 +37942,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col2 AND 19 # Datafusion - Expected - NULL # Datafusion - Expected - -9700 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* tab0\.col2 \+ \(\- tab0\.col0\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 * + col2 + + - col0 AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 +---- +-720 +-957 +-9700 +NULL +NULL +NULL query I rowsort label-6222 SELECT CAST ( - COUNT ( DISTINCT - col2 ) AS INTEGER ) col0 FROM tab1 @@ -38901,8 +39316,15 @@ SELECT DISTINCT + MAX ( ALL - col0 ) * COUNT ( * ) FROM tab0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, + col0 AS col1 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-6459 SELECT ALL 93 / COUNT ( * ) AS col2 FROM tab2 @@ -39139,8 +39561,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 4 IS NOT NULL # Datafusion - Expected - 9 # Datafusion - Expected - 91 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "cor0\.col2 \+ Int64\(9\) \+ \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - ( - col0 ) AS col2, col2 + 9 + - + col2 AS col2 FROM tab1 AS cor0 +---- +51 +85 +9 +9 +9 +91 query I rowsort label-6499 SELECT ALL - col1 * + + col0 * + ( - CAST ( - - ( - - col1 ) AS INTEGER ) ) AS col1 FROM tab0 AS cor0 @@ -39398,7 +39827,7 @@ SELECT col2 * + - 34 * - 98 + col0 / col2 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 0bbfce540d8c92bfae62dda86df77bf5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 1 and "tab1\.col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Schema error: Schema contains qualified field name tab1\.col2 and unqualified field name col2 which would be ambiguous SELECT col1 + 60 AS col2, col2, + col2 FROM tab1 query I rowsort label-6542 @@ -40131,8 +40560,15 @@ SELECT ALL - ( - ( - 54 ) ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - -77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(77\)\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + ( + 77 ) AS col0, col1 col0 FROM tab2 AS cor0 +---- +-77 +-77 +-77 +51 +67 +77 query II rowsort SELECT + 40 + col0 AS col1, - col0 FROM tab2 AS cor0 @@ -42552,8 +42988,10 @@ SELECT 49 * + 69 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to be983e1dd9af8af86b10d7a05ab67a84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - col1 col0, - ( + col0 ) col0, + col1 AS col2 FROM tab2 AS cor0 +---- +9 values hashing to 67d9ab00db1a827e619f0a41cc33b7b8 query I rowsort label-7071 SELECT ALL 44 * + MAX ( - 6 ) - - - 43 AS col1 FROM tab0 AS cor0 @@ -43447,8 +43885,15 @@ NULL # Datafusion - Expected - 3711 # Datafusion - Expected - 1 # Datafusion - Expected - 5324 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) / Int64\(\-70\) AS col2" at position 0 and "Int64\(87\) \- \(\- cor0\.col0\) \+ Int64\(89\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 / - 70 AS col2, + 87 - - col0 + 89 * col2 AS col2 FROM tab2 AS cor0 +---- +0 +0 +1 +2180 +3711 +5324 query I rowsort SELECT ALL - 12 AS col1 FROM tab0 cor0 @@ -44184,8 +44629,15 @@ SELECT col2 * - col2 + col1 AS col0 FROM tab1 # Datafusion - Expected - 10 # Datafusion - Expected - 9700 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \+ tab0\.col0 \* tab0\.col2 AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 + col0 * + col2 AS col1, + ( col2 ) AS col1 FROM tab0 +---- +10 +47 +720 +957 +9700 +99 query I rowsort label-7340 SELECT DISTINCT COUNT ( * ) + + - COUNT ( ALL + col2 ) AS col1 FROM tab2 @@ -44473,8 +44925,15 @@ SELECT ALL + 2 col2, 65 * col1 + - + 10 FROM tab2 cor0 WHERE - col1 IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - -58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + - col2 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +NULL +NULL +NULL query I rowsort label-7386 SELECT - - col2 - - 80 FROM tab2 AS cor0 WHERE NOT 18 + + + col0 NOT IN ( + ( - ( 20 ) ) * col1, ( + - CAST ( NULL AS INTEGER ) ) + - 75 ) @@ -44504,8 +44963,15 @@ SELECT ALL - 88 col1, COUNT ( * ) + - 34 FROM tab2 WHERE NOT NULL > NULL # Datafusion - Expected - 67 # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col0, + col1 AS col0 FROM tab2 +---- +51 +67 +77 +NULL +NULL +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -44768,8 +45234,11 @@ SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, + 68 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 +---- +68 +9 query II rowsort label-7435 SELECT col1, - col1 * + col2 * - - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL IS NOT NULL @@ -44876,8 +45345,11 @@ SELECT + COUNT ( * ) col1 FROM tab1 WHERE NOT 2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- tab0\.col2\)\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( - col2 ) AS col2, + 54 AS col2 FROM tab0 +---- +-99 +54 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT NULL = col0 - - col1 * + col0 @@ -45451,8 +45923,15 @@ SELECT DISTINCT - col2 * col1 FROM tab0 WHERE NOT - + 33 IS NOT NULL # Datafusion - Expected - 64 # Datafusion - Expected - 26 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 26 AS col1, col0 AS col1 FROM tab2 +---- +26 +26 +26 +46 +64 +75 query II rowsort SELECT ALL col1, + 8 FROM tab1 @@ -45513,8 +45992,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + + col2 BETWEEN - col2 AND + 1 # Datafusion - Expected - NULL # Datafusion - Expected - -97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(72\) / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 AS col2, ( + 72 ) / CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +NULL +NULL +NULL query I rowsort label-7552 SELECT COUNT ( * ) + 37 FROM tab2 @@ -46075,8 +46561,15 @@ SELECT * FROM tab1 AS cor0 WHERE ( col1 * + + col1 ) NOT IN ( col1 * - 5 ) # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-7649 SELECT ALL + CAST ( - - 93 AS INTEGER ) AS col2 FROM tab0 AS cor0 @@ -46152,8 +46645,15 @@ SELECT - SUM ( DISTINCT CAST ( - - col2 AS INTEGER ) ) FROM tab0 AS cor0 # Datafusion - Expected - 6391 # Datafusion - Expected - -376875 # Datafusion - Expected - 5561 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \* tab2\.col0 \* tab2\.col1 AS col2" at position 0 and "tab2\.col1 \* Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * + col0 * col1 AS col2, + col1 * 83 col2 FROM tab2 +---- +-107916 +-315392 +-376875 +4233 +5561 +6391 query I rowsort SELECT - - col0 * + 75 FROM tab0 AS cor0 @@ -47149,8 +47649,15 @@ SELECT ( + col0 ) FROM tab1 AS cor0 WHERE NOT NULL = NULL # Datafusion - Expected - 68 # Datafusion - Expected - -96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 col0, col2 AS col0 FROM tab1 cor0 +---- +-59 +-68 +-96 +59 +68 +96 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE col2 * + col2 > NULL @@ -48081,8 +48588,15 @@ SELECT - CAST ( col0 AS INTEGER ) FROM tab0 WHERE + + 82 IS NULL # Datafusion - Expected - 51 # Datafusion - Expected - 9 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) \+ tab1\.col2 AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 59 + col2 AS col2, col0 AS col2 FROM tab1 +---- +0 +37 +51 +85 +9 +91 query I rowsort SELECT ALL 47 * + - 23 * col0 AS col2 FROM tab0 WHERE 96 <= 18 + + + 51 @@ -48355,8 +48869,15 @@ SELECT + col1 * + - col2 * 7 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - -27 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 27 AS col2, col1 AS col2 FROM tab0 +---- +-27 +-27 +-27 +1 +21 +81 query III rowsort SELECT * FROM tab1 WHERE NOT ( NOT - 76 IS NOT NULL ) @@ -49210,8 +49731,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 <> ( - col1 * + col0 + - - # Datafusion - Expected - 47 # Datafusion - Expected - -96 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + + col2 ) col0, + col1 AS col0 FROM tab1 +---- +-59 +-68 +-96 +14 +47 +5 query I rowsort SELECT 21 - 62 + 63 + + col1 AS col0 FROM tab0 @@ -49647,8 +50175,15 @@ SELECT - col2 * - - col1 AS col1 FROM tab0 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(36\) \+ \(\- CAST\(NULL AS Float64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL - + col2 AS col1, 36 + - + CAST ( NULL AS FLOAT8 ) AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +NULL +NULL +NULL query I rowsort SELECT col1 * - 49 * - col2 AS col0 FROM tab1 AS cor0 @@ -49683,8 +50218,15 @@ SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN + - col2 AND NULL # Datafusion - Expected - 84 # Datafusion - Expected - 0 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \+ tab1\.col1 AS col2" at position 0 and "Int64\(25\) \+ tab1\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + + col1 AS col2, 25 + + col2 AS col2 FROM tab1 +---- +0 +0 +0 +121 +84 +93 query I rowsort label-8245 SELECT DISTINCT - SUM ( col2 ) + + 63 FROM tab0 @@ -49804,8 +50346,15 @@ SELECT ALL + CAST ( - 11 AS INTEGER ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 184556 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* Int64\(58\) \* \(\- Int64\(\-37\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 86 * 58 * - - 37 AS col1, col2 col1 FROM tab2 AS cor0 +---- +184556 +184556 +184556 +23 +40 +58 query III rowsort SELECT ALL * FROM tab2 WHERE - 16 * + - col0 * + 79 + - 24 IS NOT NULL @@ -50039,8 +50588,9 @@ SELECT COUNT ( * ) * + COUNT ( * ) + MAX ( + - col1 ), - 5 AS col1 FROM tab1 AS -5 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-28\)\) / \(\- cor0\.col2\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 28 / - col2 AS col2, 75 AS col2 FROM tab1 AS cor0 WHERE 87 IS NULL +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -50862,8 +51412,11 @@ SELECT DISTINCT + SUM ( DISTINCT + 88 ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 7 col1, COUNT ( * ) AS col1 FROM tab1 +---- +3 +7 query III rowsort SELECT * FROM tab2 WHERE NOT col0 < + col0 @@ -51866,8 +52419,15 @@ SELECT CAST ( + - 51 AS INTEGER ) AS col1 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - col1 ) AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +NULL +NULL +NULL query I rowsort label-8598 SELECT DISTINCT 75 * + + COUNT ( - + col2 ) FROM tab2 AS cor0 @@ -52024,8 +52584,15 @@ SELECT ALL + MIN ( DISTINCT - 33 ) FROM tab1 AS cor0 # Datafusion - Expected - 54 # Datafusion - Expected - 75 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, 54 AS col2 FROM tab2 +---- +46 +54 +54 +54 +64 +75 query I rowsort SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE NOT - 82 = NULL @@ -52393,8 +52960,15 @@ SELECT ( col1 ) AS col1 FROM tab2 WHERE NOT ( + col2 ) IS NULL # Datafusion - Expected - 3680 # Datafusion - Expected - 59 # Datafusion - Expected - 3680 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* Int64\(59\) AS col0" at position 0 and "Int64\(80\) \* \(\- Int64\(\-46\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + 59 AS col0, 80 * - - 46 AS col0 FROM tab0 +---- +1239 +3680 +3680 +3680 +4779 +59 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -54504,8 +55078,15 @@ SELECT ALL * FROM tab0 WHERE NOT ( + - col2 ) < col0 # Datafusion - Expected - -174 # Datafusion - Expected - 81 # Datafusion - Expected - -102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(\-87\) \+ \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( + + col1 ) AS col2, - 87 + - col0 AS col2 FROM tab0 AS cor0 +---- +-102 +-174 +-184 +1 +21 +81 query I rowsort SELECT DISTINCT 61 * - col0 FROM tab2 AS cor0 @@ -54725,8 +55306,11 @@ SELECT DISTINCT + ( + 47 ) AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-2\)\)\) AS col2" at position 0 and "Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - - 2 ) AS col2, + ( + - 33 ) AS col2 FROM tab0 AS cor0 +---- +-2 +-33 query I rowsort SELECT + 54 * - ( - - col0 ) col1 FROM tab0 AS cor0 @@ -57828,8 +58412,15 @@ SELECT COUNT ( * ) * + CAST ( - + CAST ( CAST ( - 40 AS INTEGER ) AS INTEGER ) A # Datafusion - Expected - 21 # Datafusion - Expected - 97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, + col1 AS col2 FROM tab0 +---- +1 +15 +21 +81 +87 +97 query I rowsort SELECT col1 * - 89 AS col1 FROM tab1 @@ -57907,8 +58498,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE - col1 + + col0 / + 39 IS NULL # Datafusion - Expected - 71 # Datafusion - Expected - 4958 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \+ \(\- tab2\.col1\) \* \(\- tab2\.col0\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + - + col1 * - col0 AS col2, 71 AS col2 FROM tab2 +---- +2295 +4851 +4958 +71 +71 +71 query I rowsort SELECT DISTINCT col1 + 84 AS col0 FROM tab1 @@ -58561,8 +59159,15 @@ SELECT ( col1 ) * - col1 AS col2 FROM tab1 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col2, col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query II rowsort SELECT 23 AS col1, col2 * col0 AS col2 FROM tab2 @@ -59000,8 +59605,11 @@ SELECT DISTINCT - SUM ( - - col1 ) AS col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +3 +3 query I rowsort SELECT 6 - - 64 FROM tab2 @@ -59592,8 +60200,10 @@ SELECT ALL col1, + col1 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 401649723247a56c6f5126caf27cae3f -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col1" at position 1 and "CAST\(tab2\.col2 AS Int32\) \- \(\- tab2\.col0\) \+ tab2\.col2 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 46 AS col2, - col0 AS col1, + ( + CAST ( + col2 AS INTEGER ) ) - - col0 + col2 AS col1 FROM tab2 +---- +9 values hashing to f5b3dee41f513b29e71c7f8782f99b29 query I rowsort label-9881 SELECT + col2 / + 36 FROM tab0 @@ -59625,8 +60235,9 @@ SELECT col2 / - + 62, 13 + - + col2 AS col0 FROM tab1 -46 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 4 AS col0, 77 AS col0 FROM tab1 AS cor0 WHERE 40 * - 83 - 48 IS NULL +---- query I rowsort SELECT ALL ( 48 ) + col1 + col2 FROM tab1 cor0 @@ -59882,8 +60493,9 @@ SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT - c ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(\-69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 AS col0, - 69 AS col0 FROM tab0 cor0 WHERE 82 >= - 25 + - - col2 * - CAST ( NULL AS FLOAT8 ) +---- query I rowsort label-9930 SELECT CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * + 77 + col2 AS col1 FROM tab0 diff --git a/data/sqlite/random/aggregates/slt_good_34.slt b/data/sqlite/random/aggregates/slt_good_34.slt index fdf392c..092e019 100644 --- a/data/sqlite/random/aggregates/slt_good_34.slt +++ b/data/sqlite/random/aggregates/slt_good_34.slt @@ -1147,8 +1147,15 @@ NULL # Datafusion - Expected - 73 # Datafusion - Expected - -6041 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \+ \(\- tab0\.col2\) \* CAST\(Int64\(62\) AS Int32\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + ( - col2 ) * + CAST ( 62 AS INTEGER ) AS col1, 73 AS col1 FROM tab0 +---- +-2899 +-533 +-6041 +73 +73 +73 query I rowsort label-179 SELECT DISTINCT - + col2 / col1 FROM tab2 WHERE 59 > col0 @@ -1843,8 +1850,10 @@ SELECT - 18 * + COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 8902c18f0db13fd4b84049240a6ee445 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* \(\- tab2\.col2\) \+ Int64\(10\) AS col2" at position 1 and "tab2\.col2 \- Int64\(96\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col0, col0 * - col2 + 10 col2, + col2 - 96 col2 FROM tab2 +---- +9 values hashing to 9abe71b4ef03a79957e464f62f0f244a query I rowsort SELECT - col2 * + + 59 - - col2 AS col1 FROM tab1 @@ -1908,8 +1917,15 @@ SELECT * FROM tab0 WHERE + col0 - - 20 <> - col1 + + 71 - ( - 52 + - col0 ) # Datafusion - Expected - 6 # Datafusion - Expected - NULL # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* \(\- CAST\(NULL AS Int32\)\) \- Int64\(78\) / Int64\(\-27\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 * - CAST ( NULL AS INTEGER ) - + + 78 / + - 27 AS col2, 6 AS col2 FROM tab0 +---- +6 +6 +6 +NULL +NULL +NULL query I rowsort SELECT - col1 * 41 AS col1 FROM tab1 AS cor0 WHERE ( col1 ) IS NOT NULL OR 50 > ( NULL ) @@ -2225,8 +2241,15 @@ SELECT ALL + - ( - - col0 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 4136 # Datafusion - Expected - -5 # Datafusion - Expected - 440 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(88\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, 88 * col1 AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +1232 +4136 +440 query I rowsort SELECT ALL - + col2 FROM tab0 cor0 WHERE col2 - - col1 IS NULL @@ -2522,8 +2545,15 @@ SELECT + 13 / - + 39 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 23 # Datafusion - Expected - -24 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \- cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 - + ( + col0 ) col1, + col2 AS col1 FROM tab2 AS cor0 +---- +-17 +-23 +-24 +23 +40 +58 query I rowsort label-407 SELECT DISTINCT COUNT ( 25 ) * COUNT ( ALL - col1 ) AS col1 FROM tab1 AS cor0 @@ -3016,8 +3046,15 @@ SELECT - 18 AS col2, col1 col1 FROM tab0 AS cor0 # Datafusion - Expected - 632 # Datafusion - Expected - -53 # Datafusion - Expected - 632 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) 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 II valuesort SELECT - 53 AS col0, + 79 * + + 8 AS col0 FROM tab1 cor0 +---- +-53 +-53 +-53 +632 +632 +632 query II rowsort SELECT ALL + 65 AS col1, col1 col2 FROM tab1 AS cor0 @@ -3032,8 +3069,11 @@ SELECT ALL + 65 AS col1, col1 col2 FROM tab1 AS cor0 # 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 "Int64\(96\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 96 AS col0, 50 AS col0 FROM tab1 +---- +50 +96 query III rowsort SELECT ALL * FROM tab2 WHERE NOT + 93 * + - col2 + - col1 IS NOT NULL @@ -3580,8 +3620,10 @@ SELECT * FROM tab0 WHERE col1 = + CAST ( NULL AS INTEGER ) + col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 5ef800af2856d3038f1f5d92a7c1da3a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col2 \+ \(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "Int64\(69\) / CAST\(NULL AS Int32\) \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col0 * + col2 + - - col0 AS col0, + 69 / + CAST ( NULL AS INTEGER ) * - col0 col0, col2 FROM tab0 cor0 +---- +9 values hashing to 93045c596d8cfe99d80570ecc5b02a84 query I rowsort label-580 SELECT - COUNT ( DISTINCT - ( + + col1 ) ) col0 FROM tab1 @@ -3851,8 +3893,11 @@ SELECT ALL 26 - - col1 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- avg\(cor0\.col1\)\) AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - AVG ( ALL + col1 ) AS INTEGER ) col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +-65 +3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 @@ -5273,8 +5318,10 @@ SELECT * FROM tab0 WHERE NULL NOT BETWEEN + + 63 + + col1 AND - col1 * - 10 * + # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 91ed88bb7419675444a4ea563ad9abe9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ \(\- tab2\.col2\) \* tab2\.col1 AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 32 + + - col2 * + + col1 AS col2, col1 AS col2, + + 21 col2 FROM tab2 +---- +9 values hashing to 5815bb4163ff031ef1c032afc99312af query I rowsort SELECT ALL 27 + - col0 col0 FROM tab2 @@ -6045,8 +6092,15 @@ SELECT MIN ( DISTINCT col2 ) AS col2 FROM tab0 # Datafusion - Expected - 28 # Datafusion - Expected - NULL # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \+ \(\- tab2\.col1\) \* CAST\(NULL AS Float64\) \- tab2\.col0 AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + col2 + - col1 * CAST ( NULL AS FLOAT8 ) - + col0 col0, + 28 AS col0 FROM tab2 +---- +28 +28 +28 +NULL +NULL +NULL query I rowsort label-995 SELECT ALL 41 + - - COUNT ( * ) AS col1 FROM tab1 @@ -6589,8 +6643,11 @@ SELECT + 0 col2, 45 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \- \(\- count\(Int64\(70\)\)\) AS col1" at position 0 and "Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 91 - - COUNT ( + 70 ) AS col1, 98 AS col1 FROM tab1 AS cor0 +---- +94 +98 query I rowsort SELECT ALL 83 * + 65 - - - col1 * + col0 FROM tab1 AS cor0 @@ -6675,8 +6732,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT - 15 NOT BETWEEN NULL AND + col1 # Datafusion - Expected - -3080 # Datafusion - Expected - 58 # Datafusion - Expected - -3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, col2 * - + col1 AS col1 FROM tab2 cor0 +---- +-1173 +-3080 +-3886 +23 +40 +58 query II rowsort SELECT ALL + col1 AS col0, col0 * + 71 FROM tab1 AS cor0 @@ -7780,8 +7844,15 @@ SELECT DISTINCT ( + 1 ) AS col2 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 2 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 AS col2, + col0 col2 FROM tab0 +---- +15 +2 +2 +2 +87 +97 query I rowsort label-1290 SELECT + 77 * - + COUNT ( * ) FROM tab1 cor0 @@ -8019,8 +8090,15 @@ SELECT DISTINCT col2, - col1 - + - col1 * - 5 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - 96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - - col2 ) AS col2, - col2 AS col2 FROM tab1 cor0 +---- +-59 +-68 +-96 +59 +68 +96 query I rowsort label-1325 SELECT ALL - + SUM ( col0 ) FROM tab0 AS cor0 @@ -8277,8 +8355,9 @@ SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab1 WHERE NOT + + 48 * - - col1 <> 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 29 AS col2, 59 AS col2 FROM tab0 WHERE NOT + - col2 IS NOT NULL +---- query II rowsort label-1367 SELECT ALL - SUM ( + 63 ) AS col0, + 85 FROM tab0 @@ -8372,8 +8451,15 @@ SELECT ALL col1 + + - col0 - + + ( 29 ) / - + col0 * - - col1 AS col1 FROM tab1 # Datafusion - Expected - 77 # Datafusion - Expected - 58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, col1 AS col0 FROM tab2 +---- +23 +40 +51 +58 +67 +77 query I rowsort SELECT ALL + col2 * - - col1 + 58 - + 21 * + + col2 FROM tab2 @@ -8497,8 +8583,15 @@ SELECT - 13 FROM tab1 WHERE NOT - col0 IS NULL # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, + col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query III rowsort SELECT ALL * FROM tab2 WHERE NOT - 96 IS NULL @@ -8601,8 +8694,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 3 ) - - COUNT ( + col0 ) AS col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-3 +6 query II rowsort label-1419 SELECT + col2 - + 74 col2, col2 + + + CAST ( NULL AS INTEGER ) FROM tab0 @@ -9165,8 +9261,15 @@ SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL ) # Datafusion - Expected - 85 # Datafusion - Expected - 72 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 72 col2, + col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN NULL AND 28 * - + col2 + + 21 * + 50 +---- +51 +72 +72 +72 +85 +91 query I rowsort SELECT - 46 + col1 AS col2 FROM tab1 @@ -9237,8 +9340,11 @@ SELECT ALL + + 59 + - - col0 * + - col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL +---- +3 +NULL query I rowsort SELECT DISTINCT + 81 * + + col1 FROM tab1 cor0 @@ -9315,8 +9421,11 @@ SELECT + 42 FROM tab2 WHERE NOT ( + 74 ) NOT BETWEEN - 97 + - - 3 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1632 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) \* Int64\(32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 51 * 32 col2, COUNT ( * ) AS col2 FROM tab2 +---- +-1632 +3 query I rowsort SELECT col1 * + - col0 FROM tab1 @@ -9704,8 +9813,15 @@ SELECT ALL * FROM tab2 WHERE NOT NULL < + + col2 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col0, col2 AS col0 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-1597 SELECT DISTINCT - + CAST ( - COUNT ( * ) AS INTEGER ) * + 75 FROM tab1 AS cor0 @@ -10080,8 +10196,15 @@ SELECT DISTINCT + col1 * - 34 AS col2 FROM tab2 # Datafusion - Expected - 95 # Datafusion - Expected - 5775 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* Int64\(75\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * + 75 col0, 95 AS col0 FROM tab2 +---- +3825 +5025 +5775 +95 +95 +95 query I rowsort label-1656 SELECT + + col2 + + col1 * CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 WHERE NULL IS NOT NULL @@ -10891,8 +11014,15 @@ SELECT - MAX ( DISTINCT + col1 ) FROM tab2 # Datafusion - Expected - 320252 # Datafusion - Expected - 91 # Datafusion - Expected - 425408 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "Int64\(92\) \* \(\- tab1\.col2\) \* \(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 col2, 92 * - col2 * - + col2 AS col2 FROM tab1 +---- +320252 +425408 +51 +847872 +85 +91 query III rowsort SELECT DISTINCT * FROM tab0 WHERE + + col2 IS NULL @@ -11131,8 +11261,15 @@ SELECT + col1 * + + 23 + + - 12 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - -96 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 96 AS col2, - col0 AS col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +-96 +-96 +-96 query I rowsort SELECT ALL + col1 * + ( + ( + col1 ) ) * + col1 AS col2 FROM tab1 AS cor0 @@ -11567,8 +11704,11 @@ SELECT + 49 + COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab2 WHERE + ( + ( - ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 + + + COUNT ( * ) AS col2, 90 AS col2 FROM tab2 AS cor0 +---- +38 +90 query I rowsort SELECT - 69 + + col0 AS col2 FROM tab0 AS cor0 @@ -12052,8 +12192,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ), + COUNT ( * ) FROM tab1 AS cor0 +---- +3 +3 query I rowsort SELECT DISTINCT 33 FROM tab0 cor0 CROSS JOIN tab0 cor1 @@ -12480,8 +12623,15 @@ SELECT - ( col0 ) AS col1 FROM tab1 cor0 WHERE NOT col2 <= NULL # Datafusion - Expected - 39 # Datafusion - Expected - 58 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, 39 col0 FROM tab2 AS cor0 +---- +23 +39 +39 +39 +40 +58 query I rowsort SELECT ALL - 64 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 @@ -13071,8 +13221,11 @@ SELECT ALL - ( + - 82 ), - 39 - - - col1 AS col0 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\(\(\- cor0\.col2\)\) AS col1" at position 0 and "count\(DISTINCT \(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( - col2 ) AS col1, + COUNT ( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0 +---- +-223 +3 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT NULL = 72 + + col2 @@ -14556,8 +14709,15 @@ SELECT ( - 91 ) + 98 col2 FROM tab0 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col0, + col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-2404 SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL @@ -15011,8 +15171,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN NULL AND + col1 # Datafusion - Expected - 21 # 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 "\(\- \(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 1 AS col2, - ( - col1 ) col2 FROM tab0 cor0 +---- +1 +1 +1 +1 +21 +81 query II rowsort SELECT - - col1, col2 FROM tab0 AS cor0 @@ -15136,8 +15303,9 @@ SELECT DISTINCT 22 * - col0, col0 FROM tab0 15 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(53\)\) \- Int64\(33\) AS col2" at position 0 and "tab2\.col1 \* Int64\(83\) \* \(\- Int64\(85\)\) \* \(\- \(\- \(\- tab2\.col1\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 53 - + 33 col2, col1 * + 83 * - + 85 * - - ( - col1 ) AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + + col1 +---- query II rowsort SELECT DISTINCT ( + 2 ), col1 FROM tab2 @@ -15909,8 +16077,15 @@ SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + + col2 + + col1 + col0 * - col0 BET # Datafusion - Expected - 4 # Datafusion - Expected - 28 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \- Int64\(71\) AS col2" at position 0 and "Int64\(42\) / \(\- \(\- cor0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 - + 71 AS col2, 42 / - ( - col2 ) AS col2 FROM tab0 AS cor0 +---- +-24 +-61 +0 +0 +28 +4 query I rowsort SELECT 83 + - col1 * col2 AS col0 FROM tab0 @@ -17061,8 +17236,15 @@ SELECT DISTINCT col1 + + + 72 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL # Datafusion - Expected - -47 # Datafusion - Expected - -96 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col0" at position 0 and "\(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( ( + col2 ) ) AS col0, - col1 AS col0 FROM tab1 +---- +-14 +-47 +-5 +-59 +-68 +-96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 @@ -17071,8 +17253,15 @@ SELECT - ( ( + col2 ) ) AS col0, - col1 AS col0 FROM tab1 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query II rowsort SELECT ALL + 90 AS col1, col2 AS col0 FROM tab2 @@ -17289,8 +17478,11 @@ SELECT - + CAST ( - 10 AS INTEGER ), 90 AS col1 FROM ( tab1 cor0 CROSS JOIN tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 28 AS col0, COUNT ( * ) AS col0 FROM tab1, tab1 AS cor0 +---- +28 +9 query I rowsort label-2858 SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 @@ -17665,8 +17857,15 @@ SELECT ALL + col0 * + + 15 * - + 71 AS col2 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query II rowsort SELECT ALL - col2 AS col2, - 77 col1 FROM tab2 WHERE NULL <> NULL @@ -18200,8 +18399,15 @@ SELECT - col0 + 8 FROM tab2 AS cor0 # Datafusion - Expected - -92 # Datafusion - Expected - 96 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, - 92 AS col0 FROM tab1 +---- +-92 +-92 +-92 +59 +68 +96 query I rowsort label-3000 SELECT 49 * - 4 * + + COUNT ( * ) FROM tab0 WHERE + - col2 * col0 IS NOT NULL @@ -18349,8 +18555,11 @@ SELECT + 44 * - col1 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 17 AS col0, COUNT ( * ) AS col0 FROM tab2 +---- +17 +3 query I rowsort SELECT col2 * + col2 / - ( + col2 ) AS col2 FROM tab0 WHERE NOT NULL IS NULL @@ -18774,8 +18983,15 @@ NULL # Datafusion - Expected - -9 # Datafusion - Expected - 16 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "Int64\(\-92\) / tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 16 AS col2, - 92 / + col2 AS col2 FROM tab0 +---- +-1 +-9 +0 +16 +16 +16 query II rowsort SELECT ALL - 60 AS col0, + 74 FROM tab2 @@ -20368,8 +20584,15 @@ SELECT - - SUM ( + col0 ) col2 FROM tab0 AS cor0 # Datafusion - Expected - 31 # Datafusion - Expected - 97 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 col2, + 31 AS col2 FROM tab0 AS cor0 +---- +15 +31 +31 +31 +87 +97 query I rowsort SELECT + ( - + 98 ) FROM tab1 AS cor0 @@ -21228,8 +21451,15 @@ SELECT 5 * + col2 AS col1 FROM tab0 # Datafusion - Expected - 67 # Datafusion - Expected - 27846 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* \(\- tab1\.col1\) \* \(\- tab1\.col0\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 39 * - col1 * - col0 AS col2, 67 AS col2 FROM tab1 +---- +16575 +166803 +27846 +67 +67 +67 query I rowsort label-3503 SELECT - MAX ( - col0 ) FROM tab1 @@ -22749,8 +22979,15 @@ SELECT - + col0 FROM tab1 AS cor0 WHERE + col0 = - - col2 # Datafusion - Expected - 85 # Datafusion - Expected - 143 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ Int64\(52\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 + 52 AS col1, + col0 AS col1 FROM tab1 AS cor0 +---- +103 +137 +143 +51 +85 +91 query I rowsort label-3763 SELECT DISTINCT 16 / col1 + + col0 AS col2 FROM tab0 AS cor0 @@ -23059,8 +23296,15 @@ NULL # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, + col2 AS col0 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT ALL - 8 FROM tab1 WHERE NULL IS NOT NULL @@ -23813,8 +24057,11 @@ 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\(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\. +query II valuesort SELECT ALL + SUM ( - col0 ) + - + COUNT ( * ) AS col0, COUNT ( * ) / 5 AS col0 FROM tab0 WHERE NOT NULL >= - - 61 +---- +0 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 @@ -23823,8 +24070,15 @@ SELECT ALL + SUM ( - col0 ) + - + COUNT ( * ) AS col0, COUNT ( * ) / 5 AS col0 F # Datafusion - Expected - 10 # Datafusion - Expected - -81 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, col2 AS col0 FROM tab0 +---- +-1 +-21 +-81 +10 +47 +99 query I rowsort SELECT ALL + col2 * + col2 * + - col0 FROM tab1 AS cor0 @@ -24365,8 +24619,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - 27 ) AS col0, 53 AS col0 FROM tab1 +---- +-27 +53 query I rowsort SELECT col2 * - 37 * - col2 FROM tab0 @@ -25318,8 +25575,15 @@ SELECT ALL col2 FROM tab1 WHERE NULL <> + col0 + - - col0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 AS col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT 57 * + col0 * 11 * 97 AS col2 FROM tab2 @@ -25579,7 +25843,7 @@ SELECT 37 + - 4 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to cd741e22fa35c6dfa847666b4267b499 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Schema error: Schema contains qualified field name cor0\.col2 and unqualified field name col2 which would be ambiguous SELECT ALL - ( - ( col2 ) ) AS col2, col2 AS col2, col1 AS col2 FROM tab1 AS cor0 query I rowsort @@ -25743,8 +26007,15 @@ SELECT + col0 * col1 * - col2 AS col1 FROM tab0 # Datafusion - Expected - 67 # Datafusion - Expected - 70 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 70 AS col2, col1 AS col2 FROM tab2 +---- +51 +67 +70 +70 +70 +77 query I rowsort SELECT + 73 * + col0 AS col2 FROM tab0 @@ -26618,8 +26889,15 @@ SELECT ALL ( - col1 ) * 80 * - - 22 AS col2 FROM tab2 # Datafusion - Expected - 81 # Datafusion - Expected - 70 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ Int64\(19\) AS col0" at position 0 and "\(\- Int64\(\-81\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 + + 19 AS col0, - ( - 81 ) AS col0 FROM tab1 +---- +104 +110 +70 +81 +81 +81 query I rowsort label-4409 SELECT CAST ( + + col0 AS INTEGER ) FROM tab2 @@ -26905,8 +27183,11 @@ SELECT ALL col1 + col2 - col2 * - - 75 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab1 +---- +-3 +3 query II rowsort SELECT 65 AS col0, - col0 FROM tab2 @@ -27346,8 +27627,11 @@ SELECT DISTINCT + SUM ( + - col1 ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 195 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* min\(cor0\.col0\) AS col1" at position 0 and "sum\(DISTINCT CAST\(cor0\.col1 AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) * MIN ( ALL + col0 ) AS col1, + SUM ( DISTINCT CAST ( + col1 AS INTEGER ) ) AS col1 FROM tab2 AS cor0 +---- +195 +NULL query I rowsort label-4528 SELECT - ( + - COUNT ( * ) ) FROM tab1 cor0 @@ -27598,8 +27882,15 @@ SELECT ALL + COUNT ( * ) * + 29 + - 71 FROM tab0 # Datafusion - Expected - 77 # Datafusion - Expected - 94 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \+ cor0\.col2 AS col1" at position 0 and "Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 71 + + + col2 AS col1, ( + 77 ) AS col1 FROM tab2 AS cor0 +---- +111 +129 +77 +77 +77 +94 query I rowsort SELECT DISTINCT + ( 12 ) AS col1 FROM tab1 AS cor0 @@ -28440,8 +28731,15 @@ SELECT ALL + + ( + 21 ) + col1 FROM tab1 AS cor0 # Datafusion - Expected - 66 # Datafusion - Expected - 17 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-17\)\) AS col1" at position 0 and "cor0\.col2 \- Int64\(\-7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 17 AS col1, col2 - - 7 AS col1 FROM tab1 cor0 +---- +103 +17 +17 +17 +66 +75 query I rowsort label-4713 SELECT + CAST ( + ( - 80 ) AS INTEGER ) FROM tab0, tab1 cor0 @@ -29336,8 +29634,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT col0 / + 73 IS NOT NULL # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col2, ( ( + col2 ) ) col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query III rowsort SELECT * FROM tab1 WHERE NOT + col0 / - - col0 <> + ( + + col2 ) * - 16 @@ -29779,8 +30084,9 @@ SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) - 2 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* tab0\.col2 \+ \(\- tab0\.col1\) \+ \(\- tab0\.col2\) \+ Int64\(14\) \* \(\- tab0\.col2\) \+ Int64\(\-64\) AS col2" at position 0 and "Int64\(38\) \+ \(\- tab0\.col1\) \* \(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 * + col2 + - col1 + - col2 + + + 14 * - + col2 + - 64 AS col2, + 38 + - col1 * - col2 col2 FROM tab0 WHERE NULL IS NOT NULL +---- query I rowsort SELECT - col1 + - + 96 AS col0 FROM tab2 @@ -30905,8 +31211,15 @@ SELECT col2, - col0 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -870 # Datafusion - Expected - -4 # Datafusion - Expected - -9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col1" at position 0 and "\(\- cor0\.col2\) \* \(\- \(\- cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 4 AS col1, - col2 * - - col0 AS col1 FROM tab0 AS cor0 +---- +-4 +-4 +-4 +-705 +-870 +-9603 query III rowsort SELECT * FROM tab2 cor0 WHERE NULL = NULL @@ -31461,8 +31774,15 @@ SELECT - MAX ( - 20 ) * COUNT ( * ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 4040 # Datafusion - Expected - -30 # Datafusion - Expected - 4277 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(30\)\) AS col1" at position 0 and "Int64\(24\) \+ \(\- cor0\.col2\) \+ \(\- cor0\.col1\) \+ \(\- cor0\.col0\) \* Int64\(\-48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + ( + 30 ) AS col1, 24 + - col2 + - + col1 + - + col0 * - 48 AS col1 FROM tab1 AS cor0 +---- +-30 +-30 +-30 +2362 +4040 +4277 query I rowsort SELECT DISTINCT + 92 AS col0 FROM tab1 AS cor0 WHERE NOT col1 - col2 IS NULL @@ -32182,8 +32502,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 1 AS col0, COUNT ( * ) + 29 AS col0 FROM tab1 AS cor0 +---- +-1 +32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 @@ -32192,8 +32515,15 @@ SELECT DISTINCT - 1 AS col0, COUNT ( * ) + 29 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 86 # Datafusion - Expected - 77 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, 86 AS col2 FROM tab2 AS cor0 +---- +51 +67 +77 +86 +86 +86 query III rowsort SELECT ALL * FROM tab0 WHERE - 72 + + ( 68 ) + - 76 IS NULL @@ -33142,8 +33472,15 @@ SELECT ALL + 30 * - col1 col0 FROM tab2 AS cor0 # Datafusion - Expected - -80 # Datafusion - Expected - 4275 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(57\) AS col0" at position 0 and "Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0 * + + 57 AS col0, - 80 AS col0 FROM tab2 AS cor0 +---- +-80 +-80 +-80 +2622 +3648 +4275 query I rowsort SELECT - col0 * + ( + 85 ) AS col0 FROM tab0 cor0 @@ -33363,8 +33700,15 @@ SELECT DISTINCT + 43 + - + CAST ( COUNT ( ALL - col0 ) AS INTEGER ) AS col0 FROM # Datafusion - Expected - 66 # Datafusion - Expected - 53 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- cor0\.col0\) \+ cor0\.col1 AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 + + - col0 + col1 AS col0, 66 AS col0 FROM tab2 AS cor0 +---- +28 +50 +53 +66 +66 +66 query I rowsort label-5530 SELECT DISTINCT + col0 / + 49 * + 71 / + + 51 FROM tab1 AS cor0 @@ -33635,8 +33979,11 @@ SELECT + - 48 AS col0, + 62 - + col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 588 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "sum\(Int64\(65\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, SUM ( + 65 ) * + COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +3 +588 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT 23 IS NULL @@ -34036,8 +34383,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= + 20 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col1, col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-5643 SELECT + COUNT ( DISTINCT ( + col2 ) ) * - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN - col0 + 64 AND NULL @@ -34121,8 +34475,15 @@ SELECT - COUNT ( DISTINCT + col2 ) AS col1 FROM tab0 # Datafusion - Expected - -1 # 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 "cor0\.col2 / \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 AS col1, + col2 / - col2 AS col1 FROM tab1 AS cor0 +---- +-1 +-1 +-1 +32 +32 +32 query I rowsort SELECT 10 AS col0 FROM tab0 cor0 @@ -35026,8 +35387,15 @@ SELECT ALL + - col1 - + - 83 FROM tab1 AS cor0 # Datafusion - Expected - -75 # Datafusion - Expected - 2 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ \(\- \(\- \(\- cor0\.col0\)\)\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 + - - ( + - col0 ) AS col1, - col0 AS col1 FROM tab2 AS cor0 +---- +-16 +-27 +-46 +-64 +-75 +2 query I rowsort SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL @@ -35317,8 +35685,15 @@ NULL # Datafusion - Expected - 85 # Datafusion - Expected - 62 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 AS col1, col0 AS col1 FROM tab1 AS cor0 +---- +51 +62 +62 +62 +85 +91 query I rowsort SELECT col0 FROM tab0 cor0 WHERE NOT NULL IS NULL @@ -36128,8 +36503,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 83 + - 46 col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +-3 +37 query II rowsort SELECT DISTINCT + - col1 col1, 12 FROM tab2 AS cor0 @@ -36188,8 +36566,15 @@ SELECT + 3 AS col2, + ( + col0 ) FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, + col1 AS col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-5986 SELECT col1 / + - 42 AS col1 FROM tab1 @@ -37680,8 +38065,15 @@ SELECT 0 - - 30 * 4 FROM tab0 # Datafusion - Expected - 21 # Datafusion - Expected - 97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, col1 AS col2 FROM tab0 AS cor0 +---- +1 +15 +21 +81 +87 +97 query I rowsort label-6240 SELECT DISTINCT + ( + col0 ) / col2 FROM tab2 AS cor0 @@ -37960,8 +38352,15 @@ NULL # Datafusion - Expected - 8911 # Datafusion - Expected - 154 # Datafusion - Expected - 8008 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \+ tab2\.col1 AS col0" at position 0 and "tab2\.col2 \* tab2\.col1 \- CAST\(\(\- tab2\.col1\) AS Int32\) \* tab2\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + + + col1 AS col0, col2 * + + col1 - CAST ( - col1 AS INTEGER ) * col0 AS col0 FROM tab2 +---- +102 +134 +154 +3519 +8008 +8911 query I rowsort SELECT ( - - 64 ) col1 FROM tab2 AS cor0 @@ -39623,8 +40022,15 @@ SELECT + + 48 + - 95 + - CAST ( + + col1 AS INTEGER ) * col1 * + ( - + col2 ) FR # Datafusion - Expected - -81 # Datafusion - Expected - 90 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \* cor0\.col1 \+ cor0\.col1 AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 89 * + col1 + + col1 AS col1, ( - col1 ) AS col1 FROM tab0 AS cor0 WHERE 19 IS NOT NULL +---- +-1 +-21 +-81 +1890 +7290 +90 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 @@ -40360,8 +40766,15 @@ SELECT + + 91 / + - 95 AS col0, 61 - - 13 - + col1, - col2 AS col2 FROM tab2 AS # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, + col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query II rowsort SELECT col0, - col0 FROM tab2 @@ -40489,8 +40902,15 @@ SELECT * FROM tab2 WHERE col0 / col0 BETWEEN - col1 AND NULL # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0, col0 FROM tab2 WHERE NOT NULL IS NOT NULL +---- +46 +46 +64 +64 +75 +75 query III rowsort label-6701 SELECT * FROM tab2 WHERE NOT - col1 NOT IN ( + + col0 / - + col2 * + col0 * CAST ( NULL AS INTEGER ) ) @@ -40688,8 +41108,15 @@ SELECT ALL 13 * + 56 * COUNT ( * ) AS col2 FROM tab2 cor0 # Datafusion - Expected - -35 # Datafusion - Expected - -58 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(\-35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 col2, - 35 AS col2 FROM tab2 AS cor0 +---- +-23 +-35 +-35 +-35 +-40 +-58 query I rowsort label-6735 SELECT - 11 / col1 FROM tab2 @@ -41076,8 +41503,15 @@ SELECT ALL - col0, - 45 col2 FROM tab0 # Datafusion - Expected - 2176 # Datafusion - Expected - 5 # Datafusion - Expected - 1888 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(32\) \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col0, 32 * + + col2 AS col0 FROM tab1 AS cor0 +---- +14 +1888 +2176 +3072 +47 +5 query II rowsort label-6794 SELECT ALL col2, - col0 + + + 67 / col1 AS col1 FROM tab0 AS cor0 @@ -41711,8 +42145,9 @@ SELECT DISTINCT - 28 AS col1 FROM tab0 cor0 -28 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, 26 AS col2 FROM tab1 WHERE NOT NULL IS NULL +---- query I rowsort SELECT ALL + 56 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -41949,8 +42384,15 @@ NULL # Datafusion - Expected - 96 # Datafusion - Expected - 65 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(57\) AS Int32\) \+ Int64\(8\) AS col2" at position 0 and "tab0\.col1 \- \(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( 57 AS INTEGER ) + + 8 col2, col1 - - col0 AS col2 FROM tab0 +---- +108 +65 +65 +65 +96 +98 query II rowsort SELECT + col1 AS col1, + col0 AS col0 FROM tab2 @@ -42115,8 +42557,15 @@ SELECT ALL - 63 col2, 84 * - + COUNT ( * ) FROM tab0 cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-6964 SELECT COUNT ( * ) + + CAST ( 54 AS INTEGER ) * COUNT ( * ) FROM tab2 AS cor0 @@ -42189,8 +42638,15 @@ SELECT + + col2 - col0 FROM tab0 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \+ Int64\(31\) / Int64\(23\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + 31 / 23 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 +---- +-14 +-86 +-96 +NULL +NULL +NULL query III rowsort SELECT ALL * FROM tab0 WHERE ( NULL ) IS NOT NULL AND NOT ( - 61 ) BETWEEN col2 * col0 AND + 95 @@ -43300,8 +43756,15 @@ SELECT - + ( + - 93 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 57 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 57 ) AS col0, + col1 AS col0 FROM tab1 AS cor0 +---- +14 +47 +5 +57 +57 +57 query I rowsort label-7168 SELECT ALL + - COUNT ( ALL - - col1 ) FROM tab1 AS cor0 @@ -43334,8 +43797,15 @@ SELECT * FROM tab2 WHERE - 75 IS NOT NULL # Datafusion - Expected - 8281 # Datafusion - Expected - -96 # Datafusion - Expected - 2601 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col0" at position 0 and "tab1\.col0 \* tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, col0 * col0 AS col0 FROM tab1 +---- +-59 +-68 +-96 +2601 +7225 +8281 query I rowsort SELECT DISTINCT + col0 + - - col2 AS col2 FROM tab1 @@ -44053,8 +44523,9 @@ SELECT + col1 - + 24 AS col2 FROM tab2 AS cor0 53 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL +---- query I rowsort label-7286 SELECT ALL + + COUNT ( * ) / COUNT ( * ) - - 67 FROM tab1 AS cor0 @@ -44192,8 +44663,15 @@ SELECT DISTINCT col0 * + - col2 * + col1 FROM tab0 # Datafusion - Expected - -21 # Datafusion - Expected - 4416 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* Int64\(64\) AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 69 * + 64 AS col0, - ( col1 ) AS col0 FROM tab0 +---- +-1 +-21 +-81 +4416 +4416 +4416 query III rowsort SELECT ALL * FROM tab0 WHERE NOT + col2 <= - col1 + col1 * + 71 @@ -44882,8 +45360,15 @@ SELECT 83 * + - col1 FROM tab2 # Datafusion - Expected - 28 # Datafusion - Expected - 99 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "\(\- Int64\(\-28\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, + ( - - 28 ) AS col1 FROM tab0 +---- +10 +28 +28 +28 +47 +99 query I rowsort label-7424 SELECT col1 / - - CAST ( + + col0 AS INTEGER ) FROM tab1 @@ -45083,8 +45568,15 @@ SELECT ALL MIN ( DISTINCT + 32 ) FROM tab0 # Datafusion - Expected - 81 # Datafusion - Expected - 99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 / tab0\.col1 AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 / + col1 AS col2, col1 AS col2 FROM tab0 +---- +0 +0 +1 +21 +81 +99 query I rowsort SELECT ALL + 46 * - 5 FROM tab1 @@ -46024,8 +46516,15 @@ SELECT * FROM tab2 WHERE - + 13 <> NULL # Datafusion - Expected - 37 # Datafusion - Expected - 99 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( + + col2 ) AS col2, + 37 col2 FROM tab0 AS cor0 +---- +10 +37 +37 +37 +47 +99 query I rowsort label-7624 SELECT DISTINCT - - COUNT ( * ) FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL @@ -46060,8 +46559,11 @@ SELECT - - col2, - 69 * - ( + col0 ) col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 135 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(45\) \* count\(Int64\(\-2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col1, 45 * COUNT ( ALL - 2 ) AS col1 FROM tab2 AS cor0 +---- +135 +3 query I rowsort label-7629 SELECT col1 * CAST ( NULL AS INTEGER ) col1 FROM tab2 @@ -46149,8 +46651,15 @@ SELECT col0, + col0 AS col2 FROM tab1 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col1, col1 AS col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-7643 SELECT SUM ( + col2 ) FROM tab2 @@ -46184,8 +46693,10 @@ SELECT 80 + + - 94 - + col1 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to 5a96ed734eb9d5a65740f4bd5853f106 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-88\)\)\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - - 88 ) AS col2, 36 col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 +---- +18 values hashing to 04fe8aa82c5e2bca7b711154b5a6972d query II rowsort SELECT - 50 + + + col1 AS col0, - 40 FROM tab0 AS cor0 @@ -46249,8 +46760,11 @@ SELECT ALL - col1 AS col0 FROM tab2 WHERE NOT ( + col2 ) * col1 + col0 + + + col # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, - 68 AS col1 FROM tab1 +---- +-68 +3 query I rowsort SELECT DISTINCT col1 * - 32 FROM tab1 @@ -46290,8 +46804,15 @@ SELECT DISTINCT col1 col1, + 38 FROM tab1 cor0 # Datafusion - Expected - 21 # Datafusion - Expected - -81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 AS col0, + col1 col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +1 +21 +81 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE 20 * + col0 < + - ( + col0 ) @@ -46327,8 +46848,15 @@ SELECT * FROM tab1 cor0 WHERE NOT 19 IS NOT NULL # Datafusion - Expected - 96 # Datafusion - Expected - -97 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col0, 96 col0 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +96 +96 +96 query I rowsort label-7672 SELECT ALL + MIN ( ALL - 54 ) FROM tab1 AS cor0 @@ -46818,8 +47346,15 @@ SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) < + col2 # Datafusion - Expected - -47 # Datafusion - Expected - -5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col1, - col1 FROM tab1 AS cor0 +---- +-14 +-14 +-47 +-47 +-5 +-5 query I rowsort label-7752 SELECT ALL COUNT ( * ) * 12 FROM tab0 AS cor0 @@ -47371,8 +47906,15 @@ SELECT * FROM tab1 AS cor0 WHERE col1 + col0 + + 64 IS NULL # Datafusion - Expected - 95 # Datafusion - Expected - 58 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col0, + 95 AS col0 FROM tab2 AS cor0 +---- +23 +40 +58 +95 +95 +95 query I rowsort label-7844 SELECT ALL col2 - col0 FROM tab1 AS cor0 WHERE NOT + col0 * - CAST ( NULL AS INTEGER ) * + col2 <> + 64 * col1 + + 53 @@ -47399,8 +47941,15 @@ SELECT + - col2, - 56 * - col2 / - col2 + + col2 / - col0 - 75 AS col1 FROM tab2 # Datafusion - Expected - 90 # Datafusion - Expected - 97 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col2, 90 AS col2 FROM tab0 AS cor0 +---- +15 +87 +90 +90 +90 +97 query III rowsort SELECT - ( + + col1 ) * + col0, 8 AS col1, col2 AS col0 FROM tab2 AS cor0 @@ -47835,8 +48384,15 @@ SELECT DISTINCT ( - col1 ) * - col0 AS col1 FROM tab2 WHERE NULL IS NOT NULL # Datafusion - Expected - -7128 # Datafusion - Expected - 98 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "tab0\.col1 \* \(\- Int64\(88\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 AS col0, col1 * - + 88 AS col0 FROM tab0 +---- +-1848 +-7128 +-88 +98 +98 +98 query I rowsort SELECT 91 * + - col0 AS col1 FROM tab2 @@ -48033,8 +48589,15 @@ SELECT - - col2 col1, 46 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 FROM tab0 cor0 +---- +15 +15 +87 +87 +97 +97 query IIIIII rowsort SELECT * FROM tab0, tab1 AS cor0 WHERE NOT - - 68 IS NOT NULL @@ -48361,8 +48924,15 @@ SELECT DISTINCT - SUM ( DISTINCT + 97 ) FROM tab2 # Datafusion - Expected - -47 # Datafusion - Expected - 2 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab0\.col1\)\) / tab0\.col2 AS col1" at position 0 and "\(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - col1 ) / col2 AS col1, - col2 col1 FROM tab0 +---- +-10 +-47 +-99 +0 +1 +2 query I rowsort label-8003 SELECT + 83 / + CAST ( col1 AS INTEGER ) AS col1 FROM tab2 @@ -49301,8 +49871,15 @@ SELECT - + COUNT ( * ) / CAST ( + 10 AS INTEGER ) AS col1 FROM tab0 WHERE NOT ( # Datafusion - Expected - -8825 # Datafusion - Expected - -660 # Datafusion - Expected - -7994 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \* \(\- tab0\.col2\) AS col2" at position 0 and "tab0\.col2 \- tab0\.col0 \* Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 * - col2 AS col2, + col2 - + col0 * 92 AS col2 FROM tab0 +---- +-1333 +-3102 +-6534 +-660 +-7994 +-8825 query II rowsort label-8164 SELECT - col1 / - col0 AS col1, col1 AS col0 FROM tab2 @@ -49435,8 +50012,15 @@ SELECT DISTINCT + col0 FROM tab1 cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1, col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT + col2 + 43 FROM tab1 cor0 @@ -50416,8 +51000,15 @@ SELECT DISTINCT - 84 / - COUNT ( * ) FROM tab1 # Datafusion - Expected - -47 # Datafusion - Expected - 40 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "\(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 40 ) AS col1, - col2 AS col1 FROM tab0 +---- +-10 +-47 +-99 +40 +40 +40 query II rowsort SELECT 13, col1 FROM tab2 @@ -50536,8 +51127,15 @@ SELECT ALL - - 44 - - col2 / + - col1 * col2 * + col0 FROM tab2 AS cor0 # Datafusion - Expected - -95 # Datafusion - Expected - -9870299 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col0 \+ Int64\(7\) \* \(\- cor0\.col2\) \* cor0\.col0 \* Int64\(3\) \* cor0\.col2 AS col1" at position 0 and "Int64\(\-95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + col0 + + 7 * - col2 * col0 * 3 * col2 AS col1, - 95 AS col1 FROM tab1 AS cor0 +---- +-6213505 +-8836420 +-95 +-95 +-95 +-9870299 query II rowsort label-8364 SELECT + col0 + + col1 / + + col1 AS col2, 2 FROM tab2 cor0 @@ -51164,8 +51762,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - + COUNT ( * ), - COUNT ( * ) FROM tab2 AS cor0 +---- +-3 +-3 query I rowsort label-8460 SELECT DISTINCT MIN ( + + col2 ) FROM tab0 AS cor0 @@ -52173,8 +52774,15 @@ SELECT ALL - COUNT ( - col0 ) FROM tab1 # Datafusion - Expected - 55 # Datafusion - Expected - 91 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col2 \+ cor0\.col2 / Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, col2 + + col2 / + - 13 AS col2 FROM tab1 AS cor0 +---- +51 +55 +63 +85 +89 +91 query I rowsort label-8642 SELECT DISTINCT + MAX ( + + col0 ) col2 FROM tab1 AS cor0 @@ -52192,8 +52800,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 33 = - 77 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query III rowsort SELECT * FROM tab0 WHERE NOT col0 = 56 / - - 60 @@ -52541,8 +53156,15 @@ SELECT DISTINCT + ( - ( col0 ) ) + 19 AS col1, col0 AS col2 FROM tab0 # Datafusion - Expected - 67 # Datafusion - Expected - -44 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 44 AS col0, + col1 AS col0 FROM tab2 AS cor0 +---- +-44 +-44 +-44 +51 +67 +77 query I rowsort label-8701 SELECT ALL CAST ( + col1 AS INTEGER ) col1 FROM tab1 AS cor0 @@ -53033,8 +53655,15 @@ SELECT ALL ( - col2 ) * - col0 * + col0 AS col2 FROM tab0 # Datafusion - Expected - 210 # Datafusion - Expected - 81 # Datafusion - Expected - 3807 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "\(\- tab0\.col2\) \* \(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col0, - col2 * + - col1 col0 FROM tab0 +---- +1 +21 +210 +3807 +81 +99 query I rowsort label-8783 SELECT DISTINCT + 70 * CAST ( + col0 AS INTEGER ) col2 FROM tab2 @@ -53316,8 +53945,15 @@ SELECT ALL 20 * ( - MIN ( ALL 52 ) ) * - COUNT ( * ), 48 * + 61 AS col1 FROM tab # Datafusion - Expected - -213404 # Datafusion - Expected - -75 # Datafusion - Expected - -161546 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 \+ Int64\(36\) \* \(\- \(\- cor0\.col1\)\) \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col1, + col2 + + 36 * - - col1 * - col1 AS col1 FROM tab2 AS cor0 +---- +-161546 +-213404 +-46 +-64 +-75 +-93613 query III rowsort SELECT * FROM tab1 AS cor0 WHERE col1 IN ( col1, col0 - - + col2 ) @@ -53440,8 +54076,15 @@ SELECT + MAX ( DISTINCT - + ( - 24 ) ) col0 FROM tab2 AS cor0 # Datafusion - Expected - -147 # Datafusion - Expected - 90 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "\(\- cor0\.col0\) \+ Int64\(\-50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 90 AS col0, - col0 + + - 50 AS col0 FROM tab0 AS cor0 +---- +-137 +-147 +-65 +90 +90 +90 query II rowsort label-8849 SELECT ALL 16 col2, + 35 + ( - + 61 ) / + 86 FROM tab0 AS cor0 @@ -53697,8 +54340,11 @@ SELECT ALL col2 * + 84 AS col0, col2 col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 AS col1, COUNT ( * ) AS col1 FROM tab0 +---- +3 +91 query I rowsort label-8891 SELECT COUNT ( DISTINCT col1 ) FROM tab0 @@ -53829,8 +54475,15 @@ SELECT + 12 * + ( - col1 ) FROM tab2 # Datafusion - Expected - -68 # Datafusion - Expected - 5 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "\(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, - col2 AS col0 FROM tab1 +---- +-59 +-68 +-96 +14 +47 +5 query I rowsort label-8911 SELECT - COUNT ( ALL - ( - + col1 ) ) FROM tab0 @@ -53871,8 +54524,9 @@ SELECT + MIN ( - + col1 ) AS col1 FROM tab2 AS cor0 -77 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col2" at position 0 and "tab2\.col1 \* Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, col1 * 73 col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - 36 +---- query I rowsort label-8918 SELECT ALL - CAST ( - - 58 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1 @@ -54182,8 +54836,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE + col2 = + col2 # Datafusion - Expected - 1 # 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 "cor0\.col2 / cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - 60 ) AS col0, + col2 / + col0 AS col0 FROM tab0 AS cor0 +---- +-60 +-60 +-60 +0 +1 +3 query I rowsort SELECT + 33 AS col0 FROM tab2 cor0 @@ -54871,8 +55532,11 @@ SELECT + col1 * - 31 + + col0 AS col1 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(94\)\)\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MAX ( ALL 94 ) AS col0, + 24 AS col0 FROM tab0 AS cor0 +---- +-94 +24 query I rowsort label-9090 SELECT COUNT ( - col2 ) FROM tab1 AS cor0 @@ -56032,8 +56696,11 @@ SELECT DISTINCT - SUM ( + col1 ) AS col1 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 185 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT cor0\.col0\) \+ Int64\(6\) AS col2" at position 0 and "sum\(cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( DISTINCT + col0 ) + 6 AS col2, SUM ( ALL + col0 ) AS col2 FROM tab2 AS cor0 +---- +185 +52 query I rowsort label-9282 SELECT + col1 + - col2 / col1 AS col1 FROM tab0 AS cor0 @@ -56391,8 +57058,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT + 88 IS NOT NULL # Datafusion - Expected - 64 # Datafusion - Expected - 5025 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* tab2\.col1 AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * + col1 AS col1, + col0 AS col1 FROM tab2 +---- +2346 +46 +4928 +5025 +64 +75 query III rowsort SELECT * FROM tab0 WHERE NOT - col2 > NULL @@ -57115,8 +57789,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col2, 36 AS col2 FROM tab2 +---- +-3 +36 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT + col0 / + 34 + + ( col2 ) IS NULL @@ -57133,14 +57810,20 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 27 + - ( - + 77 ) AS col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-3 +104 # Datafusion - Datafusion expected results: # Datafusion - Expected - -174 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- cor0\.col2\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( - col2 ) * + COUNT ( * ) AS col1, - 6 AS col1 FROM tab2 AS cor0 +---- +-174 +-6 query II rowsort SELECT ALL + col2, + ( + 67 ) AS col1 FROM tab0 AS cor0 @@ -59323,8 +60006,15 @@ SELECT 63 * - + 88 + + ( - + col1 ) - + 77 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, + col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT col2 * + col2 + col2 AS col0 FROM tab1 AS cor0 @@ -59702,8 +60392,15 @@ SELECT ALL col1, + col0 col2 FROM tab2 # Datafusion - Expected - 75 # Datafusion - Expected - 77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, col0 AS col2 FROM tab2 +---- +46 +51 +64 +67 +75 +77 query I rowsort SELECT ALL col0 + - 10 AS col2 FROM tab0 @@ -59878,8 +60575,15 @@ SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE - col0 * col0 + - col2 + - # Datafusion - Expected - 40 # Datafusion - Expected - -20 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 20 AS col0, col2 AS col0 FROM tab2 +---- +-20 +-20 +-20 +23 +40 +58 query I rowsort label-9911 SELECT - 80 / - 57 AS col1 FROM tab2 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_35.slt b/data/sqlite/random/aggregates/slt_good_35.slt index 16bd55c..fad461a 100644 --- a/data/sqlite/random/aggregates/slt_good_35.slt +++ b/data/sqlite/random/aggregates/slt_good_35.slt @@ -2186,8 +2186,11 @@ SELECT + + col0 * col2 - col0 FROM tab2 WHERE NOT NULL IS NULL # 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\(61\) \+ Int64\(\-68\) AS col0" at position 0 and "count\(DISTINCT tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 61 + - 68 AS col0, + COUNT ( DISTINCT + + col1 ) AS col0 FROM tab0 +---- +-7 +3 query I rowsort label-364 SELECT + 88 + - COUNT ( * ) FROM tab1 @@ -2584,8 +2587,15 @@ SELECT + 62 * 91 FROM tab0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-427 SELECT 26 / MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 @@ -3417,8 +3427,15 @@ SELECT + COUNT ( DISTINCT ( + col0 ) ) FROM tab0 cor0 # Datafusion - Expected - -10 # Datafusion - Expected - 4454 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \* \(\- cor0\.col2\) \+ \(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 45 * + - col2 + - + col1 AS col0, - col2 AS col0 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +2034 +429 +4454 query I rowsort label-570 SELECT col2 - + 26 / + 79 FROM tab2 AS cor0 @@ -3973,8 +3990,15 @@ SELECT * FROM tab1 WHERE NULL > - + col0 * + CAST ( NULL AS FLOAT8 ) * + col0 # Datafusion - Expected - 85 # Datafusion - Expected - -31 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \+ \(\- Int64\(19\)\) AS col2" at position 0 and "\(\- CAST\(\(\- tab1\.col0\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 12 + - + 19 AS col2, - CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 +---- +-31 +-31 +-31 +51 +85 +91 query I rowsort label-659 SELECT ALL - 96 / - col0 FROM tab1 WHERE NOT NULL IS NOT NULL @@ -4274,8 +4298,15 @@ SELECT ALL - + 29 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 # Datafusion - Expected - 64 # Datafusion - Expected - -602 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \* \(\- Int64\(\-14\)\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 43 * - - 14 AS col2, col0 col2 FROM tab2 AS cor0 +---- +-602 +-602 +-602 +46 +64 +75 query I rowsort SELECT + col1 * + - col1 AS col0 FROM tab0 AS cor0 @@ -6557,8 +6588,10 @@ SELECT ALL + col2 + col1 FROM tab0 AS cor0 WHERE NOT - col1 + + col1 > ( + - 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to 73456b3c584e9e67a25e6190d9d05d81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 30 AS col2, + 17 AS col2 FROM tab0, tab1 AS cor0 +---- +18 values hashing to c4bafc1ced711e65bc57b987436beb71 # Datafusion - Datafusion expected results: # Datafusion - Expected - -705 @@ -6567,8 +6600,15 @@ SELECT ALL 30 AS col2, + 17 AS col2 FROM tab0, tab1 AS cor0 # Datafusion - Expected - 20 # Datafusion - Expected - -9603 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* tab0\.col2 AS col1" at position 0 and "Int64\(41\) \+ \(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * + col2 AS col1, 41 + - + col1 AS col1 FROM tab0 +---- +-40 +-705 +-870 +-9603 +20 +40 query I rowsort label-1096 SELECT - - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 @@ -6925,8 +6965,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, 34 AS col2 FROM tab1 +---- +-3 +34 query I rowsort label-1156 SELECT ALL + CAST ( col0 AS INTEGER ) * col1 FROM tab2 @@ -7351,8 +7394,15 @@ SELECT + col2 - 57 AS col1 FROM tab1 # Datafusion - Expected - 2300 # Datafusion - Expected - 78 # Datafusion - Expected - 247 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "cor0\.col0 \+ cor0\.col1 \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 78 AS col2, + col0 + + col1 * col1 col2 FROM tab1 AS cor0 +---- +110 +2300 +247 +78 +78 +78 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= 95 * + col2 @@ -8632,8 +8682,11 @@ SELECT DISTINCT 24 / 58 AS col1, + MAX ( - ( + 58 ) ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, + COUNT ( * ) AS col0 FROM tab0 +---- +3 +3 query I rowsort label-1438 SELECT ALL + COUNT ( DISTINCT - ( - col0 ) ) AS col0 FROM tab0 @@ -9214,8 +9267,15 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - 78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col0 / cor0\.col2 AS col1" at position 0 and "cor0\.col1 \* CAST\(NULL AS Int32\) \+ cor0\.col2 \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + + + col0 / + col2 AS col1, col1 * CAST ( NULL AS INTEGER ) + col2 * + 80 AS col1 FROM tab2 AS cor0 +---- +53 +68 +78 +NULL +NULL +NULL query I rowsort label-1540 SELECT ALL col2 * + 44 - - 80 / - col2 + - 89 AS col1 FROM tab1 AS cor0 @@ -9346,8 +9406,15 @@ SELECT DISTINCT + COUNT ( + col2 ) AS col2, 49 FROM tab0 cor0 # Datafusion - Expected - -2 # Datafusion - Expected - 91 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(\-2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, - 2 AS col1 FROM tab1 cor0 +---- +-2 +-2 +-2 +51 +85 +91 query II rowsort SELECT + - 48, col2 AS col2 FROM tab0 AS cor0 @@ -9567,8 +9634,11 @@ SELECT DISTINCT + col1 * col0 * + col0 * - - col1 - - 62 / ( + 54 ) * + + 27 + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(tab0\.col0\) AS col0" at position 0 and "max\(\(\- tab0\.col1\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(\-59\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( ( col0 ) ) AS col0, + ( MAX ( ALL - col1 ) ) * + COUNT ( * ) + CAST ( - 59 AS INTEGER ) col0 FROM tab0 +---- +-62 +15 query II rowsort SELECT col2, col0 * - col0 AS col0 FROM tab0 @@ -9753,8 +9823,11 @@ SELECT - col0 + - 18 + - 26 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, 98 AS col2 FROM tab0 cor0 +---- +3 +98 query I rowsort label-1629 SELECT DISTINCT CAST ( + + col1 AS INTEGER ) * col2 - + - 90 FROM tab0 AS cor0 @@ -9922,8 +9995,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 87 AS col1, 57 + - COUNT ( * ) col1 FROM tab2 +---- +-87 +54 query I rowsort label-1658 SELECT MAX ( - - col2 ) FROM tab1 @@ -10083,8 +10159,10 @@ SELECT ALL CAST ( + 7 AS INTEGER ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 275a9f1b17c6e968eba4dc5b75509056 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "\(\- \(\- tab1\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + col0 AS col2, - ( ( - col0 ) ) AS col2, - col1 AS col2 FROM tab1 +---- +9 values hashing to bf09b3872cc4b7779cb8d266acf8aa59 query I rowsort label-1682 SELECT ALL 26 / + 64 AS col0 FROM tab2 @@ -10180,8 +10258,12 @@ 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\(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\. +query RII valuesort SELECT + ( + 31 ) * COUNT ( * ) * CAST ( NULL AS FLOAT8 ) col0, COUNT ( * ) AS col2, 42 AS col0 FROM tab2 +---- +3 +42 +NULL query I rowsort label-1695 SELECT DISTINCT + ( + 83 ) + + - COUNT ( * ) AS col2 FROM tab0 @@ -10411,8 +10493,15 @@ SELECT ALL 54 + - + COUNT ( 23 ) col0 FROM tab1 # Datafusion - Expected - 5929 # Datafusion - Expected - 75 # Datafusion - Expected - 4489 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col1\) \* \(\- \(\- \(\- cor0\.col1\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, - col1 * - ( - ( - col1 ) ) AS col1 FROM tab2 AS cor0 +---- +2601 +4489 +46 +5929 +64 +75 query I rowsort SELECT + ( 42 ) * - col1 + - 70 + 72 FROM tab0 cor0 @@ -10788,8 +10877,11 @@ SELECT * FROM tab0 WHERE - - 17 <= + col2 * - 7 # 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 "\(\- count\(tab2\.col2\)\) \+ Int64\(26\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( + col2 ) + + 26 AS col1, 27 AS col1 FROM tab2 +---- +23 +27 query I rowsort label-1798 SELECT DISTINCT - col0 + + - col2 * col1 / col1 FROM tab2 @@ -11608,8 +11700,15 @@ SELECT + + col0 FROM tab1 AS cor0 WHERE + 3 IS NULL # Datafusion - Expected - -81 # Datafusion - Expected - -99 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, - col1 AS col1 FROM tab0 cor0 +---- +-1 +-10 +-21 +-47 +-81 +-99 query II rowsort label-1938 SELECT + col1 * - col1, + col2 / 38 / + col1 col2 FROM tab2 @@ -12914,8 +13013,15 @@ SELECT DISTINCT - 13, col2 AS col1 FROM tab1 # Datafusion - Expected - -3619 # Datafusion - Expected - 96 # Datafusion - Expected - -1078 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "tab1\.col1 \* Int64\(\-77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, col1 * + - 77 AS col0 FROM tab1 +---- +-1078 +-3619 +-385 +59 +68 +96 query I rowsort label-2155 SELECT ALL + COUNT ( DISTINCT col1 ) FROM tab2 @@ -12963,8 +13069,15 @@ SELECT ALL 24 * - + MIN ( DISTINCT + 36 ) FROM tab2 # Datafusion - Expected - 4277 # Datafusion - Expected - 0 # Datafusion - Expected - 425 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 / Int64\(\-13\) AS col1" at position 0 and "\(\- tab1\.col1\) \* \(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 / - 13 AS col1, - col1 * - col0 AS col1 FROM tab1 +---- +-1 +-3 +0 +425 +4277 +714 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -13014,8 +13127,9 @@ SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND - ( - 77 ) ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab0\.col1\)\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col1 AS col2, 11 AS col2 FROM tab0 WHERE NULL <= NULL +---- query I rowsort SELECT ALL + col2 * - - col1 FROM tab2 @@ -13212,8 +13326,11 @@ SELECT + col1 * col2 + + - col1 + 22 * - + col0 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 4224 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col0" at position 0 and "\(\- Int64\(\-88\)\) \* Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 87 AS col0, - ( - 88 ) * 48 col0 FROM tab1 AS cor0 +---- +-87 +4224 query I rowsort label-2207 SELECT DISTINCT + - col1 * - - col2 + - col2 * + CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 cor0 @@ -13860,8 +13977,15 @@ SELECT ALL - - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - -20 # Datafusion - Expected - 9603 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* tab0\.col2 AS col1" at position 0 and "tab0\.col2 \- Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 * col2 AS col1, col2 - + 30 AS col1 FROM tab0 +---- +-20 +17 +69 +705 +870 +9603 query III rowsort SELECT * FROM tab0 cor0 WHERE NOT + 42 * - 79 IS NULL @@ -14125,8 +14249,15 @@ SELECT ALL - 86 + col0 FROM tab0 # Datafusion - Expected - 125 # Datafusion - Expected - 54 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "tab2\.col1 \+ tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 54 AS col1, col1 + col2 AS col1 FROM tab2 WHERE NOT ( NULL IS NOT NULL ) +---- +117 +125 +54 +54 +54 +74 query I rowsort label-2357 SELECT MAX ( ( + col1 ) ) FROM tab2 @@ -14635,8 +14766,15 @@ SELECT * FROM tab0 AS cor0 WHERE ( - ( + - CAST ( NULL AS INTEGER ) ) ) + 64 * + # Datafusion - Expected - -4465 # Datafusion - Expected - NULL # Datafusion - Expected - -475 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- \(\- CAST\(NULL AS Int32\)\) \- Int64\(\-66\) \* cor0\.col2 \+ cor0\.col1 AS col0" at position 0 and "Int64\(95\) \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 - - + CAST ( NULL AS INTEGER ) - - 66 * + col2 + col1 AS col0, + 95 * - col1 AS col0 FROM tab1 AS cor0 +---- +-1330 +-4465 +-475 +NULL +NULL +NULL query I rowsort SELECT DISTINCT + col2 - col1 + col0 AS col1 FROM tab2 AS cor0 @@ -14648,8 +14786,11 @@ SELECT DISTINCT + col2 - col1 + col0 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 9 AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + col0 * + col0 +---- +0 +9 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 ) >= NULL @@ -16148,8 +16289,11 @@ SELECT - - 84 FROM tab2 cor0 CROSS JOIN tab0 cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(65\)\) \+ Int64\(\-82\) / Int64\(44\) AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( + 65 ) + - 82 / 44 AS col1, 28 col1 FROM tab1 +---- +2 +28 query I rowsort label-2706 SELECT ALL COUNT ( * ) / CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col2 FROM tab2 @@ -16842,8 +16986,15 @@ SELECT ALL SUM ( ALL + col1 ) col0 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT + + 64 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 @@ -17340,8 +17491,15 @@ SELECT ALL + 3 + 34 AS col2, col1 AS col0 FROM tab2 # Datafusion - Expected - -68 # Datafusion - Expected - -5 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \+ \(\- tab1\.col2\) \- \(\- tab1\.col2\) AS col1" at position 0 and "\(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + + col1 ) + - col2 - - col2 col1, - col2 AS col1 FROM tab1 WHERE NOT col0 IS NULL +---- +-14 +-47 +-5 +-59 +-68 +-96 query I rowsort label-2908 SELECT + MIN ( - col0 ) + ( + + 49 ) AS col1 FROM tab0 @@ -17573,8 +17731,15 @@ SELECT - 81, 14 + + 58 AS col0 FROM tab0 # Datafusion - Expected - 504 # Datafusion - Expected - -19 # Datafusion - Expected - 504 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col0" at position 0 and "Int64\(24\) \* Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 19 AS col0, 24 * 21 col0 FROM tab0 WHERE NULL IS NULL +---- +-19 +-19 +-19 +504 +504 +504 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 @@ -17957,8 +18122,15 @@ NULL # Datafusion - Expected - 137 # Datafusion - Expected - 69 # Datafusion - Expected - 108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ tab2\.col2 AS col1" at position 0 and "tab2\.col0 \+ Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 + + + col2 AS col1, col0 + + 62 AS col1 FROM tab2 +---- +104 +108 +126 +133 +137 +69 query I rowsort SELECT col0 FROM tab0 WHERE + - col1 * + + 25 + + 86 BETWEEN + 43 - col2 AND ( 29 ) + + col1 @@ -18311,8 +18483,15 @@ SELECT - + col1 + - 82 + + col0 FROM tab0 WHERE NULL IS NULL # Datafusion - Expected - 10 # Datafusion - Expected - -81 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "Int64\(\-1\) \* \(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, - 1 * - col2 AS col0 FROM tab0 +---- +-1 +-21 +-81 +10 +47 +99 query I rowsort label-3073 SELECT DISTINCT + - 25 - - - COUNT ( * ) FROM tab0 AS cor0 @@ -18525,8 +18704,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 5 + - - MIN ( 28 ) AS col0, - COUNT ( * ) AS col0 FROM tab1 +---- +-3 +33 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -18928,8 +19110,11 @@ SELECT DISTINCT - 89 FROM tab0, tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col0" at position 0 and "CAST\(\(\- sum\(\(\- Int64\(\-3\)\)\)\) AS Int32\) \- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 74 col0, CAST ( - SUM ( ( - - 3 ) ) AS INTEGER ) - + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 +---- +-12 +74 query II rowsort SELECT + col1, col0 + + + col1 FROM tab2 @@ -19059,8 +19244,9 @@ SELECT ALL COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab1 -1 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 24 AS col2, + col0 AS col2 FROM tab0 WHERE NOT - col1 + + 92 <> NULL +---- query I rowsort SELECT col1 * - ( + 64 ) FROM tab0 @@ -19570,8 +19756,15 @@ SELECT ALL - MAX ( + + 19 ) FROM tab0 AS cor0 # Datafusion - Expected - 73 # Datafusion - Expected - 99 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, 73 AS col1 FROM tab0 +---- +10 +47 +73 +73 +73 +99 query I rowsort label-3279 SELECT DISTINCT - 85 * - COUNT ( * ) + - 55 FROM tab2 @@ -19627,8 +19820,11 @@ SELECT + CAST ( + - 43 AS INTEGER ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- tab0\.col0\)\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( - col0 ) AS col2, 89 AS col2 FROM tab0 +---- +-97 +89 query III rowsort SELECT DISTINCT * FROM tab2 WHERE - 40 * - col2 IS NULL @@ -19952,8 +20148,15 @@ SELECT ALL ( - - col2 ) FROM tab2 # Datafusion - Expected - 20 # Datafusion - Expected - -81 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, + 20 AS col2 FROM tab0 +---- +-1 +-21 +-81 +20 +20 +20 query III rowsort SELECT ALL * FROM tab1 WHERE NOT NULL >= ( - + col0 ) @@ -20191,8 +20394,11 @@ SELECT - 70 * 33 + col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- cor0\.col1\)\)\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MIN ( - col1 ) AS col1, 27 AS col1 FROM tab0 AS cor0 +---- +27 +81 query II rowsort SELECT DISTINCT - - col1, + ( col2 ) FROM tab2 cor0 @@ -20334,8 +20540,15 @@ SELECT DISTINCT + ( 24 ) + - 89 FROM tab2 cor0 WHERE NULL <= - col2 # Datafusion - Expected - 0 # Datafusion - Expected - 4014 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col2 \+ Int64\(\-24\) \+ Int64\(85\) \+ cor0\.col1 AS col0" at position 0 and "Int64\(28\) / Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + col2 + - 24 + + 85 + + col1 col0, 28 / + 39 AS col0 FROM tab2 AS cor0 +---- +0 +0 +0 +1285 +3218 +4014 query I rowsort label-3397 SELECT - col0 * + + col0 + col1 + - col0 / - + 98 * col1 FROM tab0 AS cor0 @@ -21559,8 +21772,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + 40 * - - ( - - COUNT ( * ) ) - 19 AS col2, + 30 * - + 33 AS col2 FROM tab1 +---- +-990 +101 query I rowsort SELECT + 87 * 60 AS col2 FROM tab2 @@ -21687,8 +21903,10 @@ SELECT - MAX ( DISTINCT - - 91 ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to 16d61ee06b7e896fde1f040b2be82578 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col0" at position 0 and "Int64\(\-11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 53 AS col0, - 11 AS col0 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 ) +---- +18 values hashing to e39761950b2c4246a4f0cb337c7ec9ee query III rowsort SELECT * FROM tab0 cor0 WHERE NOT NULL < NULL @@ -21712,8 +21930,15 @@ SELECT ALL - col0 * + col0 * + + col1 FROM tab2 cor0 # Datafusion - Expected - 56 # Datafusion - Expected - 76 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "\(\- Int64\(\-56\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 AS col1, + ( - - 56 ) AS col1 FROM tab1 +---- +56 +56 +56 +76 +76 +76 query I rowsort SELECT - 56 * + col1 AS col0 FROM tab0 @@ -23035,8 +23260,11 @@ SELECT + - CAST ( SUM ( DISTINCT + 5 ) AS INTEGER ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 76 AS col2, + 13 AS col2 FROM tab2 AS cor0 +---- +13 +76 query I rowsort label-3840 SELECT DISTINCT - COUNT ( DISTINCT - 39 ) FROM tab2 AS cor0 @@ -23269,8 +23497,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) + COUNT ( * ) * - 35 col0, - 1 AS col0 FROM tab2 AS cor0 +---- +-1 +-102 query I rowsort SELECT 28 + 11 FROM tab1 @@ -23302,8 +23533,15 @@ SELECT DISTINCT ( 79 ) AS col1 FROM tab0 # Datafusion - Expected - 38 # Datafusion - Expected - 99 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ Int64\(52\) AS col2" at position 0 and "tab0\.col0 \- Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 + + 52 AS col2, col0 - + 49 AS col2 FROM tab0 +---- +-34 +151 +38 +48 +62 +99 query I rowsort SELECT - col1 + col2 + col2 AS col2 FROM tab1 @@ -24219,8 +24457,11 @@ SELECT + + ( col0 ) + + - col0 + 17 + - + 46 * + - 13 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "count\(Int64\(\-95\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 78 AS col2, COUNT ( - 95 ) AS col2 FROM tab2 AS cor0 +---- +3 +78 query I rowsort label-4044 SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - 54 FROM tab2 cor0 @@ -24893,8 +25134,15 @@ NULL # Datafusion - Expected - 21 # Datafusion - Expected - -81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, + col1 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +1 +21 +81 query I rowsort SELECT ALL + + col0 * + col0 AS col2 FROM tab2 AS cor0 @@ -25969,8 +26217,11 @@ SELECT * FROM tab2 AS cor0 WHERE NOT col1 <> - ( + 21 ) * - col1 * col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- cor0\.col1\)\)\) AS col1" at position 0 and "Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + SUM ( + - col1 ) AS col1, 61 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0 +---- +61 +NULL query I rowsort label-4331 SELECT ALL - COUNT ( * ) * + 49 AS col2 FROM tab0 cor0 @@ -27744,8 +27995,9 @@ SELECT ALL * FROM tab1 AS cor0 WHERE - 25 IS NOT NULL 9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "cor0\.col0 \* Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 84 col0, + col0 * + 48 AS col0 FROM tab1 AS cor0 WHERE + col1 / + 25 < NULL +---- query I rowsort SELECT - ( + + col1 ) + 23 FROM tab1 @@ -27869,8 +28121,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 5, col0 + + 86 ) OR + - col # Datafusion - Expected - 25 # Datafusion - Expected - NULL # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col0 \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-79\) AS col1" at position 0 and "Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 * col0 * - CAST ( NULL AS INTEGER ) * - 79 AS col1, 25 AS col1 FROM tab2 cor0 +---- +25 +25 +25 +NULL +NULL +NULL query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT ( 4 ) IS NOT NULL @@ -28153,8 +28412,9 @@ SELECT - + CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0 -96 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col2" at position 0 and "tab2\.col2 \+ \(\- \(\- tab2\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, col2 + - - col1 AS col2 FROM tab2 WHERE NOT ( ( NOT - col2 IS NULL ) ) +---- query I rowsort SELECT - 26 AS col0 FROM tab1, tab1 cor0 WHERE NOT NULL IS NOT NULL @@ -28818,8 +29078,15 @@ SELECT ALL - 38 col0 FROM tab1 AS cor0 # Datafusion - Expected - -45 # Datafusion - Expected - 96 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col0\) \- Int64\(\-46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, ( + - col0 ) - - 46 col0 FROM tab1 AS cor0 +---- +-39 +-45 +-5 +59 +68 +96 query I rowsort label-4794 SELECT DISTINCT - + MAX ( + - ( ( + + col1 ) ) ) FROM tab0 AS cor0 @@ -30495,8 +30762,15 @@ SELECT - COUNT ( * ) * 88 FROM tab2 # Datafusion - Expected - -4928 # Datafusion - Expected - 75 # Datafusion - Expected - -5025 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col0 \* \(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, col0 * + - col1 col1 FROM tab2 +---- +-2346 +-4928 +-5025 +46 +64 +75 query I rowsort label-5080 SELECT ALL + COUNT ( * ) * 56 FROM tab1 WHERE + ( - col2 ) <> ( + col2 ) @@ -30506,8 +30780,11 @@ SELECT ALL + COUNT ( * ) * 56 FROM tab1 WHERE + ( - col2 ) <> ( + col2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 75 + COUNT ( * ) col0, - 15 col0 FROM tab1 +---- +-15 +78 query I rowsort label-5082 SELECT ALL 38 / col0 + + col2 * - col1 * + 0 AS col0 FROM tab0 @@ -31061,8 +31338,15 @@ SELECT - 24 * - COUNT ( * ) * + 31 * + - MAX ( ALL - col1 ) * 9 col0 FROM tab0 W # Datafusion - Expected - -68 # Datafusion - Expected - NULL # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) AS col1" at position 0 and "\(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT ( - CAST ( NULL AS FLOAT8 ) ) AS col1, - col2 AS col1 FROM tab1 +---- +-59 +-68 +-96 +NULL +NULL +NULL query I rowsort SELECT col2 + 31 AS col2 FROM tab2 @@ -31463,8 +31747,15 @@ SELECT col0 * - + 38 AS col0 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 AS col2 FROM tab0 cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT DISTINCT - ( - - 36 ) AS col0 FROM tab1 AS cor0 @@ -31611,8 +31902,10 @@ SELECT ALL * FROM tab0 WHERE NOT + - col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 605e6ae1afd4effa4e63fdb3ad5d41c6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\)" at position 0 and "\(\- tab1\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - col2, - col2, col0 FROM tab1 +---- +9 values hashing to 7cf9e5358917dd09fdc04bae0fe4b310 query II rowsort SELECT DISTINCT 84 AS col1, col2 FROM tab0 @@ -32823,8 +33116,12 @@ SELECT ALL ( - 67 ) FROM tab0 # Datafusion - Expected - 3 # Datafusion - Expected - 230 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "sum\(DISTINCT cor0\.col1\) \+ \(\- Int64\(\-35\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + COUNT ( * ) AS col0, SUM ( DISTINCT col1 ) + - - 35 AS col0, + + 31 FROM tab2 AS cor0 +---- +230 +3 +31 query I rowsort SELECT DISTINCT 61 * - - 94 + col2 - - ( - - ( - col0 ) ) + + col1 * + col2 AS col2 FROM tab2 AS cor0 @@ -33372,8 +33669,15 @@ SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL = NULL # Datafusion - Expected - 173 # Datafusion - Expected - -99 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "Int64\(92\) \+ tab0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, 92 + + + col1 AS col1 FROM tab0 +---- +-10 +-47 +-99 +113 +173 +93 query III rowsort SELECT * FROM tab0 WHERE NOT + + col1 >= - 53 @@ -33382,8 +33686,11 @@ SELECT * FROM tab0 WHERE NOT + + col1 >= - 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 199 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "sum\(DISTINCT tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 34 col0, SUM ( DISTINCT + col0 ) AS col0 FROM tab0 +---- +199 +34 query I rowsort SELECT DISTINCT 90 AS col2 FROM tab0 @@ -35174,8 +35481,15 @@ SELECT 58 / + + col2 + - - col2 FROM tab2 # Datafusion - Expected - -85 # Datafusion - Expected - -21 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \+ Int64\(43\) AS col1" at position 0 and "\(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 64 ) + 43 AS col1, - col0 AS col1 FROM tab1 +---- +-21 +-21 +-21 +-51 +-85 +-91 query I rowsort label-5845 SELECT - col1 + - ( + CAST ( NULL AS INTEGER ) ) - + col0 * 26 AS col2 FROM tab2 @@ -35750,8 +36064,15 @@ SELECT DISTINCT MIN ( + col2 ) AS col1 FROM tab2 # Datafusion - Expected - 58 # Datafusion - Expected - 3 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \- \(\- \(\- tab2\.col0\)\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 49 - - - col0 AS col1, col2 AS col1 FROM tab2 +---- +-15 +-26 +23 +3 +40 +58 query I rowsort SELECT ALL col0 + - + col1 FROM tab0 @@ -35790,8 +36111,11 @@ NULL # 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 "sum\(DISTINCT Int64\(70\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 57 AS col2, SUM ( DISTINCT 70 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( col2 ) < NULL +---- +57 +NULL query I rowsort label-5951 SELECT 68 / - 90 AS col1 FROM tab1 AS cor0 @@ -36148,8 +36472,11 @@ SELECT DISTINCT - - col1 * 76 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +3 +3 query I rowsort SELECT ALL - 52 + + - col0 AS col2 FROM tab1 AS cor0 @@ -36911,8 +37238,15 @@ NULL # Datafusion - Expected - 7179 # Datafusion - Expected - 96 # Datafusion - Expected - 8235 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col1" at position 0 and "Int64\(\-46\) \+ \(\- tab1\.col0\) \* \(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 AS col1, - 46 + - col0 * - col0 col1 FROM tab1 +---- +2555 +7179 +8235 +96 +96 +96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 @@ -36921,8 +37255,15 @@ SELECT 96 AS col1, - 46 + - col0 * - col0 col1 FROM tab1 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, + col2 col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 @@ -37238,8 +37579,9 @@ SELECT MIN ( DISTINCT + - ( - col1 ) ) FROM tab1 5 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col2 \+ \(\- \(\- CAST\(NULL AS Float64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL - col0 AS col0, + col2 + - - CAST ( NULL AS FLOAT8 ) AS col0 FROM tab2 AS cor0 WHERE col0 + + 41 IS NULL +---- query I rowsort SELECT + 14 + + 75 * 62 * col2 * - - 51 AS col1 FROM tab2 AS cor0 WHERE NOT col0 <= - col0 * - col2 @@ -37368,8 +37710,9 @@ SELECT DISTINCT - col2 * col0 + + col1 AS col1 FROM tab2 -4283 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(88\) / \(\- \(\- tab0\.col2\)\) \+ Int64\(\-66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 col2, 88 / - - col2 + + ( - 66 ) AS col2 FROM tab0 WHERE - - CAST ( col2 AS INTEGER ) BETWEEN NULL AND - col1 / - + 44 + + - ( + col1 ) +---- query III rowsort SELECT DISTINCT * FROM tab1 WHERE NULL < + 14 + + + 86 @@ -39116,8 +39459,10 @@ SELECT - col0 * - 94 + 26 col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 59180ec9931515fe8c4069138e9603f5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ Int64\(91\) AS col2" at position 1 and "cor0\.col0 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + col0 AS col0, col2 + 91 AS col2, col0 AS col2 FROM tab0 AS cor0 +---- +9 values hashing to 33a8263c67a6d92bc42fc0414ea863f4 query I rowsort SELECT DISTINCT + + col1 * + 95 FROM tab1 AS cor0 @@ -39141,8 +39486,15 @@ NULL # Datafusion - Expected - -3 # Datafusion - Expected - 81 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col1" at position 0 and "\(\- tab0\.col2\) / tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 AS col1, - col2 / col0 AS col1 FROM tab0 +---- +-1 +-3 +0 +81 +81 +81 query III rowsort label-6510 SELECT * FROM tab0 WHERE NOT - col1 * - - col0 + 19 + + 6 + + ( + 7 ) * + + CAST ( NULL AS INTEGER ) * + ( + - col2 ) * - col0 * - CAST ( NULL AS INTEGER ) IS NOT NULL @@ -39414,8 +39766,11 @@ SELECT ALL - col0 * - col2 / - col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(95\)\) \+ \(\- count\(Int64\(5\)\)\) AS col1" at position 0 and "Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 95 + + - COUNT ( 5 ) AS col1, - 5 AS col1 FROM tab0 cor0 +---- +-5 +-98 query II rowsort SELECT col0 + - ( + col1 ) + 38, 95 AS col1 FROM tab0 @@ -40810,8 +41165,11 @@ SELECT MAX ( + ( + col0 ) ) col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col2" at position 0 and "avg\(Int64\(76\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - 82 col2, AVG ( 76 ) AS col2 FROM tab1 WHERE NOT + col1 IS NOT NULL +---- +-82 +NULL query I rowsort label-6779 SELECT - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0 @@ -40830,8 +41188,15 @@ SELECT ALL 52 * + COUNT ( * ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - 68448 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- cor0\.col2\) \* cor0\.col1 \- cor0\.col2 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * - col2 * + col1 - col2 AS col2, + col0 AS col2 FROM tab1 AS cor0 +---- +25016 +290768 +51 +68448 +85 +91 query I rowsort SELECT ALL + 56 AS col1 FROM tab0 WHERE NOT 8 IS NULL @@ -41516,8 +41881,15 @@ SELECT DISTINCT - col2 * - col1 AS col0 FROM tab0 WHERE NOT 40 + + col0 * - - 40 # Datafusion - Expected - -69 # Datafusion - Expected - 58 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(\-69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, - 69 col1 FROM tab2 AS cor0 +---- +-69 +-69 +-69 +23 +40 +58 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT 40 / - - col0 * + col2 IS NOT NULL @@ -42156,8 +42528,11 @@ SELECT MAX ( ALL col2 ) col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -177 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "Int64\(3\) \* max\(\(\- tab1\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 78 AS col2, 3 * + MAX ( - col2 ) AS col2 FROM tab1 +---- +-177 +78 query I rowsort SELECT DISTINCT col2 + - + col2 FROM tab2 @@ -42890,8 +43265,10 @@ SELECT DISTINCT - - col0 FROM tab1 AS cor0 WHERE NOT - 13 < NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 481943e18d19ff3a20d16ff6bde86a98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 59 AS col0, col2 * - - 59 * + col2 AS col1, col1 AS col0 FROM tab1 AS cor0 +---- +9 values hashing to 16689582411fc964c70bf548b3294ce9 query I rowsort label-7139 SELECT COUNT ( * ) * + MAX ( - + col2 ) FROM tab2 AS cor0 @@ -43020,8 +43397,9 @@ SELECT - col2 AS col1, - col1 FROM tab1 AS cor0 -14 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0, - col0 FROM tab1 AS cor0 WHERE - col1 = NULL +---- query II rowsort label-7161 SELECT + 40, COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2 cor0 @@ -43708,8 +44086,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 - - - ( + COUNT ( * ) ) AS col2, 61 AS col2 FROM tab1 AS cor0 +---- +35 +61 query I rowsort SELECT - col2 - + 72 + + + 86 FROM tab1 @@ -43854,8 +44235,15 @@ NULL # Datafusion - Expected - 150 # Datafusion - Expected - -27 # Datafusion - Expected - 161 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-12\)\)\) \+ Int64\(\-15\) AS col2" at position 0 and "Int64\(86\) \+ tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - - 12 ) + - 15 AS col2, + 86 + ( col0 ) AS col2 FROM tab2 +---- +-27 +-27 +-27 +132 +150 +161 query I rowsort SELECT + 5 + + col1 AS col2 FROM tab0 @@ -44381,8 +44769,15 @@ SELECT ALL 15 * + ( - 56 ) FROM tab0 cor0 # Datafusion - Expected - 7225 # Datafusion - Expected - -91 # Datafusion - Expected - 7735 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col0 \* Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, col0 * 85 AS col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +4335 +7225 +7735 query I rowsort label-7388 SELECT DISTINCT - COUNT ( * ) * + 8 + 83 AS col0 FROM tab2 AS cor0 @@ -44807,8 +45202,15 @@ SELECT DISTINCT col2 + - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - -89 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 89 col2, col1 AS col2 FROM tab1 cor0 +---- +-89 +-89 +-89 +14 +47 +5 query I rowsort label-7459 SELECT DISTINCT + MIN ( ALL - 62 ) FROM tab1 AS cor0 @@ -45035,8 +45437,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) / + - 44 AS col1, - COUNT ( * ) AS col1 FROM tab1 +---- +-3 +0 query I rowsort label-7496 SELECT DISTINCT + 63 / + COUNT ( * ) FROM tab2 @@ -45540,8 +45945,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 4 AS col0, - COUNT ( * ) AS col0 FROM tab0 +---- +-3 +-4 query I rowsort label-7578 SELECT DISTINCT + col1 / + - col2 AS col1 FROM tab2 @@ -47349,8 +47757,11 @@ SELECT ( + + col2 ) AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(16\)\)\) AS col2" at position 0 and "Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + SUM ( DISTINCT + ( 16 ) ) AS col2, 51 AS col2 FROM tab1 AS cor0 +---- +-16 +51 query I rowsort label-7889 SELECT COUNT ( ALL + + col2 ) FROM tab0 AS cor0 @@ -47908,8 +48319,11 @@ SELECT - + col0 * + - col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3315 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(1\) \* \(\- sum\(tab2\.col1\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 * + 1 * - + SUM ( col1 ) AS col0, CAST ( NULL AS INTEGER ) col0 FROM tab2 +---- +-3315 +NULL query III rowsort SELECT * FROM tab0 WHERE NOT - col1 > 25 @@ -50247,8 +50661,15 @@ SELECT DISTINCT 31 + col2 FROM tab0 # Datafusion - Expected - 91 # Datafusion - Expected - 42 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 AS col2, 91 AS col2 FROM tab1 +---- +42 +42 +42 +91 +91 +91 query II rowsort SELECT ALL + col2, col1 AS col0 FROM tab2 @@ -50905,8 +51326,15 @@ SELECT + 14 + + col2 AS col1, col1 - + col2 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -1 # Datafusion - Expected - 357 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(17\) AS col2" at position 0 and "cor0\.col0 / \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * + 17 AS col2, + col0 / - col0 AS col2 FROM tab0 AS cor0 +---- +-1 +-1 +-1 +1377 +17 +357 query I rowsort SELECT ALL - 57 + + 57 AS col0 FROM tab1 @@ -51453,8 +51881,11 @@ SELECT * FROM tab2 WHERE NOT NULL >= - - col0 * col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "Int64\(\-74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 25 AS col1, - 74 col1 FROM tab0 +---- +-74 +25 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -51490,8 +51921,15 @@ SELECT ALL MAX ( + col2 ) FROM tab1 AS cor0 # Datafusion - Expected - 23 # Datafusion - Expected - 81 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, 23 AS col0 FROM tab0 AS cor0 +---- +1 +21 +23 +23 +23 +81 query II rowsort label-8575 SELECT - 38 AS col2, - COUNT ( * ) FROM tab2 AS cor0 @@ -51946,8 +52384,15 @@ SELECT DISTINCT - 72 AS col0, COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 col0, col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-8653 SELECT DISTINCT ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0 @@ -52593,8 +53038,15 @@ SELECT col0 / + 4 FROM tab2 # Datafusion - Expected - -15 # Datafusion - Expected - -99 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col0" at position 0 and "\(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, - col0 AS col0 FROM tab0 +---- +-10 +-15 +-47 +-87 +-97 +-99 query I rowsort label-8759 SELECT DISTINCT + MIN ( DISTINCT - col2 ) FROM tab1 cor0 @@ -53893,8 +54345,11 @@ SELECT + col2 * + 40 * - - 22, col2 AS col1 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \+ count\(cor0\.col2\) \* sum\(\(\- cor0\.col1\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 ) +---- +0 +NULL query III rowsort SELECT * FROM tab0 AS cor0 WHERE 87 * + 56 IS NULL @@ -53982,8 +54437,11 @@ SELECT DISTINCT 34 * + 54 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- cor0\.col0\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( - col0 ) AS col2, + COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-15 +3 query I rowsort SELECT + 95 + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL @@ -54396,8 +54854,9 @@ SELECT ALL COUNT ( * ) * + + COUNT ( * ) FROM tab2 9 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 69 AS col0, ( 96 ) AS col0 FROM tab1 AS cor0 WHERE NULL <= ( - col0 ) +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -55095,8 +55554,15 @@ SELECT col1 FROM tab1 WHERE NOT ( ( NOT + + 6 = + 92 ) ) # Datafusion - Expected - 68 # Datafusion - Expected - 84 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 col0, col2 AS col0 FROM tab1 +---- +59 +68 +84 +84 +84 +96 query I rowsort label-9185 SELECT DISTINCT col1 / - + col1 AS col0 FROM tab2 @@ -55308,8 +55774,15 @@ SELECT ALL + 6 * - ( col2 ) + - col1 / - - col0 FROM tab0 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - 5692 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- cor0\.col0\) \- CAST\(\(\- cor0\.col1\) AS Int32\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * - col0 - CAST ( - col1 AS INTEGER ) AS col1, - col0 AS col1 FROM tab2 cor0 +---- +-46 +-64 +-75 +2167 +4173 +5692 query I rowsort SELECT + ( + + col1 ) AS col1 FROM tab0 @@ -57069,8 +57542,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - + COUNT ( * ) ) AS col0, 50 AS col0 FROM tab2 cor0 +---- +-3 +50 query I rowsort label-9510 SELECT DISTINCT + MIN ( + 92 ) FROM tab1 AS cor0 @@ -57182,8 +57658,15 @@ SELECT + - col1 * - 99 + col1 FROM tab2 AS cor0 # Datafusion - Expected - 97 # Datafusion - Expected - -3330 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) \* Int64\(9\) \* cor0\.col2 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - 37 ) * + 9 * + + col2 col2, col0 AS col2 FROM tab0 AS cor0 +---- +-15651 +-32967 +-3330 +15 +87 +97 query III rowsort SELECT ALL * FROM tab0 cor0 WHERE NOT + ( 63 ) IS NULL @@ -57639,8 +58122,11 @@ SELECT col0 AS col2, - col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col0" at position 0 and "max\(\(\- Int64\(97\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 62 AS col0, MAX ( - ( + 97 ) ) col0 FROM tab2 +---- +-62 +-97 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > - 23 @@ -58497,8 +58983,11 @@ SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE ( + - 44 ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\)" at position 0 and "Int64\(79\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 79, 79 FROM tab2 AS cor0 +---- +79 +79 query I rowsort SELECT + 76 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 @@ -59286,8 +59775,15 @@ SELECT 11, ( + + 31 ) AS col2 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - 33 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 33 AS col2, col1 col2 FROM tab0 +---- +1 +21 +33 +33 +33 +81 query III rowsort SELECT * FROM tab0 WHERE ( 5 ) IS NULL @@ -59743,8 +60239,15 @@ SELECT + col1 FROM tab0 WHERE NULL NOT IN ( + + 48 ) # Datafusion - Expected - -77 # Datafusion - Expected - 58 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, - col1 col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +23 +40 +58 query I rowsort label-9953 SELECT + ( - col1 ) + + col2 + - 19 + - + col2 - + col1 * 59 * - - col0 * col0 + + col1 - CAST ( - ( - col1 ) AS INTEGER ) * + col2 FROM tab2 cor0 diff --git a/data/sqlite/random/aggregates/slt_good_36.slt b/data/sqlite/random/aggregates/slt_good_36.slt index f8f8c23..a063fae 100644 --- a/data/sqlite/random/aggregates/slt_good_36.slt +++ b/data/sqlite/random/aggregates/slt_good_36.slt @@ -141,8 +141,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, - 88 AS col0 FROM tab1 +---- +-3 +-88 query II rowsort label-17 SELECT ALL + COUNT ( * ) AS col1, 37 FROM tab0 AS cor0 @@ -708,8 +711,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 +---- +3 +3 query I rowsort SELECT ALL - - 42 col2 FROM tab1 AS cor0 @@ -883,8 +889,15 @@ NULL # Datafusion - Expected - 0 # Datafusion - Expected - 78 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-11\) AS Int32\)\) / \(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + 78 ) AS col1, - CAST ( - 11 AS INTEGER ) / - col1 AS col1 FROM tab2 +---- +0 +0 +0 +78 +78 +78 query I rowsort SELECT ( - col1 ) * - col1 + 70 + + col2 FROM tab1 @@ -2192,8 +2205,15 @@ SELECT + 73 + 23 + col1 AS col2 FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1, col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT DISTINCT col1 * - + 1 AS col0 FROM tab0 @@ -2371,8 +2391,15 @@ SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN ( 85 ) AND col # Datafusion - Expected - 47 # Datafusion - Expected - 87 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 87 AS col0, col1 AS col0 FROM tab1 AS cor0 +---- +14 +47 +5 +87 +87 +87 query I rowsort label-378 SELECT DISTINCT + 9 col1 FROM tab0 AS cor0 WHERE NOT + col0 * CAST ( col0 AS FLOAT8 ) IS NULL @@ -2603,8 +2630,15 @@ SELECT - col2 FROM tab1 WHERE - col1 BETWEEN NULL AND - 21 * + col0 - + - col2 # Datafusion - Expected - 0 # Datafusion - Expected - 75 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, 0 AS col1 FROM tab2 +---- +0 +0 +0 +46 +64 +75 query IIIIII rowsort SELECT * FROM tab0 AS cor0 JOIN tab1 cor1 ON ( NULL IS NOT NULL ) @@ -2820,8 +2854,11 @@ SELECT DISTINCT - COUNT ( * ) * MIN ( DISTINCT - + ( - col0 ) ) AS col2 FROM tab # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 246 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col1" at position 0 and "Int64\(82\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 23 AS col1, 82 * + COUNT ( * ) AS col1 FROM tab0 +---- +-23 +246 query I rowsort SELECT ALL - col2 FROM tab2 WHERE + col2 + 71 IS NOT NULL @@ -3154,8 +3191,15 @@ SELECT DISTINCT ( + ( + SUM ( - col0 ) ) ) FROM tab2 # Datafusion - Expected - -229 # Datafusion - Expected - 37 # Datafusion - Expected - -849 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col1" at position 0 and "tab1\.col1 \+ tab1\.col0 \+ \(\- tab1\.col1\) \* Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 37 AS col1, col1 + + + col0 + - col1 * + 21 AS col1 FROM tab1 +---- +-15 +-229 +-849 +37 +37 +37 query I rowsort SELECT ALL - + col1 FROM tab1 WHERE NULL IS NOT NULL @@ -5776,8 +5820,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) * - - MAX ( - - col2 ) AS col0, MAX ( - - 87 ) AS col0 FROM tab2 +---- +-174 +87 query I rowsort SELECT - col0 col0 FROM tab2 WHERE NOT - col0 IS NOT NULL @@ -5963,8 +6010,15 @@ SELECT + + ( + MIN ( ALL + col0 ) ) FROM tab0 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - 58 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 AS col2, - col0 AS col2 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +23 +40 +58 query I rowsort SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( col2 / - col2, - col2 * + ( + 67 ) + - 13 ) @@ -6440,8 +6494,11 @@ SELECT ALL col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(69\) / max\(Int64\(\-70\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col0, 69 / + MAX ( - 70 ) AS col0 FROM tab1 +---- +0 +3 query I rowsort label-1055 SELECT + CAST ( - - SUM ( ALL + col0 ) AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab2 @@ -6604,8 +6661,15 @@ SELECT DISTINCT - col1 / - col0 col0 FROM tab0 AS cor0 # Datafusion - Expected - -15 # Datafusion - Expected - -97 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * - col0 AS col2, - 15 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL +---- +-1215 +-15 +-15 +-15 +-1827 +-97 query I rowsort SELECT + - 51 + - col0 AS col1 FROM tab0 cor0 @@ -8061,8 +8125,11 @@ SELECT * FROM tab1 WHERE + - 84 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2877 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(36\) \* Int64\(\-82\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 75 + + 36 * - 82 AS col2, 68 AS col2 FROM tab1, tab1 AS cor0 +---- +-2877 +68 query III rowsort SELECT DISTINCT * FROM tab2 WHERE - 42 <> NULL @@ -8298,8 +8365,11 @@ SELECT col2 + + col2 + - col0 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2 +---- +-3 +3 query I rowsort label-1363 SELECT DISTINCT + COUNT ( DISTINCT + col2 ) * - 50 FROM tab1 @@ -8353,8 +8423,15 @@ SELECT - ( + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col2, col0 AS col2 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 @@ -8363,8 +8440,15 @@ SELECT col0 col2, col0 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -3861 # Datafusion - Expected - 87 # Datafusion - Expected - -390 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col2" at position 0 and "cor0\.col2 \* Int64\(\-39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 AS col2, ( + + col2 ) * - 39 col2 FROM tab0 AS cor0 WHERE NOT + 96 IN ( col1 ) +---- +-1833 +-3861 +-390 +87 +87 +87 query I rowsort label-1374 SELECT DISTINCT + CAST ( - 79 AS INTEGER ) FROM tab1 cor0 @@ -8500,8 +8584,15 @@ SELECT + COUNT ( + 14 ) FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - 2035 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \* Int64\(5\) \+ tab2\.col0 \* Int64\(31\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 * + 5 + + col0 * 31 AS col2, col0 AS col2 FROM tab2 +---- +1311 +1784 +2035 +46 +64 +75 query I rowsort SELECT ALL 3 * - + col2 FROM tab0 @@ -9075,8 +9166,15 @@ SELECT DISTINCT - 7, - SUM ( DISTINCT - col0 ) - + 94 AS col1 FROM tab1 # Datafusion - Expected - -5929 # Datafusion - Expected - -75 # Datafusion - Expected - -4489 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "\(\- tab2\.col1\) \* tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, - col1 * col1 AS col0 FROM tab2 +---- +-2601 +-4489 +-46 +-5929 +-64 +-75 query I rowsort SELECT ALL + col0 AS col2 FROM tab1 WHERE + col1 >= 78 @@ -9754,8 +9852,15 @@ SELECT ALL + col1 + - col0 col2, + 33 * col1 FROM tab0 AS cor0 # Datafusion - Expected - 396 # Datafusion - Expected - 0 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ cor0\.col2 AS col0" at position 0 and "cor0\.col2 \* Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 + + col2 AS col0, col2 * 4 AS col0 FROM tab0 AS cor0 +---- +0 +0 +0 +188 +396 +40 query I rowsort SELECT ALL col1 + + col1 + - 45 col1 FROM tab2 @@ -9832,8 +9937,15 @@ SELECT ALL + col0 FROM tab2 WHERE NOT - - col1 IS NOT NULL # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col2, col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-1605 SELECT DISTINCT - COUNT ( * ) / + - 98 FROM tab1 @@ -9867,8 +9979,15 @@ SELECT col1 / + ( - 64 ) AS col2, 6 FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0, + col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT - - 52 * - col2 FROM tab1 AS cor0 WHERE NOT 99 = col2 @@ -11132,8 +11251,15 @@ SELECT ALL * FROM tab0 WHERE NOT CAST ( 26 AS INTEGER ) / + 62 < + + col0 * - 33 # Datafusion - Expected - 5 # Datafusion - Expected - -91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, col1 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL +---- +-51 +-85 +-91 +14 +47 +5 query I rowsort SELECT DISTINCT + - ( + col2 ) FROM tab2 AS cor0 WHERE + col2 >= NULL @@ -11510,8 +11636,15 @@ SELECT 11 - + col2 FROM tab2 # Datafusion - Expected - 61 # Datafusion - Expected - -97 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col1" at position 0 and "Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, 61 AS col1 FROM tab0 +---- +-15 +-87 +-97 +61 +61 +61 query I rowsort label-1881 SELECT + COUNT ( * ) * + + 78 AS col2 FROM tab2 @@ -12355,8 +12488,15 @@ SELECT DISTINCT + SUM ( - - col2 ) FROM tab2 # Datafusion - Expected - 84 # Datafusion - Expected - -5 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col0" at position 0 and "Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, 84 AS col0 FROM tab1 +---- +-14 +-47 +-5 +84 +84 +84 query I rowsort label-2025 SELECT + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 @@ -12530,8 +12670,15 @@ SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NUL # Datafusion - Expected - 47 # Datafusion - Expected - -96 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 AS col0, col1 AS col0 FROM tab1 cor0 +---- +-59 +-68 +-96 +14 +47 +5 query I rowsort SELECT + + 93 * + col2 * 69 AS col0 FROM tab1 AS cor0 WHERE NOT - 34 IS NULL @@ -14020,8 +14167,15 @@ SELECT ALL MAX ( + col0 ) FROM tab1 AS cor0 # Datafusion - Expected - 8 # Datafusion - Expected - 96 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- cor0\.col1\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 + - + col1 col0, ( + + 8 ) AS col0 FROM tab0 AS cor0 +---- +-66 +66 +8 +8 +8 +96 query I rowsort SELECT 89 + + ( - - col0 ) AS col0 FROM tab0 cor0 @@ -14105,8 +14259,15 @@ SELECT * FROM tab1 WHERE NOT col0 + - + ( - - col1 ) IN ( 69, - 56 * + 41 ) # Datafusion - Expected - 64 # Datafusion - Expected - 88 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 88 AS col2, col0 AS col2 FROM tab2 +---- +46 +64 +75 +88 +88 +88 query I rowsort SELECT DISTINCT ( + 1 ) FROM tab1 @@ -14903,8 +15064,15 @@ SELECT DISTINCT - SUM ( - + col0 ) * - 40, 92 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - 93 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 93 AS col2, - col1 AS col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +93 +93 +93 query I rowsort label-2457 SELECT ALL SUM ( - + col0 ) FROM tab1 AS cor0 @@ -14931,8 +15099,15 @@ SELECT ALL col1 * + - 91 FROM tab0 # Datafusion - Expected - 76 # Datafusion - Expected - 0 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) / Int64\(91\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4 / + 91 AS col1, 76 AS col1 FROM tab0 +---- +0 +0 +0 +76 +76 +76 query I rowsort label-2461 SELECT DISTINCT - ( + 62 ) / + col2 FROM tab0 @@ -15268,8 +15443,15 @@ SELECT + + col0 col0 FROM tab1 WHERE NOT NULL < NULL # Datafusion - Expected - NULL # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +NULL +NULL +NULL query I rowsort label-2516 SELECT + ( - + COUNT ( * ) ) * 96 + 67 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND NULL @@ -15627,8 +15809,11 @@ SELECT + col1 * 65 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) col0, COUNT ( * ) AS col0 FROM tab0 +---- +-3 +3 query I rowsort label-2575 SELECT col0 FROM tab0 WHERE NOT + col1 > ( - CAST ( NULL AS INTEGER ) ) @@ -15884,8 +16069,15 @@ SELECT + COUNT ( * ) AS col1, + ( + + SUM ( ALL - col2 ) ) * COUNT ( * ) * 63 AS # Datafusion - Expected - -3854 # Datafusion - Expected - -57 # Datafusion - Expected - -8118 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* Int64\(\-57\) AS col0" at position 0 and "tab0\.col2 \* Int64\(\-82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 * - 57 AS col0, + col2 * - 82 col0 FROM tab0 +---- +-1197 +-3854 +-4617 +-57 +-8118 +-820 query I rowsort SELECT ALL col2 * + - col0 FROM tab1 @@ -16069,8 +16261,15 @@ SELECT DISTINCT * FROM tab2 WHERE + 31 * col0 IS NULL # Datafusion - Expected - -50807 # Datafusion - Expected - 96 # Datafusion - Expected - -4508 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "tab1\.col1 \* tab1\.col1 \* Int64\(\-23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, col1 * + col1 * + - 23 AS col1 FROM tab1 +---- +-4508 +-50807 +-575 +59 +68 +96 query I rowsort label-2648 SELECT DISTINCT 18 * + COUNT ( * ) FROM tab2 @@ -17381,8 +17580,15 @@ SELECT DISTINCT - MIN ( + col1 ) FROM tab2 # Datafusion - Expected - 5 # Datafusion - Expected - -91 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col0, + ( + 5 ) AS col0 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +5 +5 +5 query I rowsort label-2875 SELECT DISTINCT - SUM ( - + col1 ) AS col0 FROM tab2 @@ -18203,8 +18409,15 @@ SELECT + col0 + - 49 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 57 # Datafusion - Expected - 58 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, 57 AS col0 FROM tab2 AS cor0 +---- +23 +40 +57 +57 +57 +58 query II rowsort SELECT ALL - col1 + + col2, col0 col2 FROM tab1 AS cor0 @@ -18329,8 +18542,9 @@ SELECT - 83 AS col0, col0 AS col1 FROM tab1 91 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-69\)\)\) AS col2" at position 0 and "\(\- cor0\.col0\) \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( - 69 ) AS col2, - col0 * - col0 col2 FROM tab1 AS cor0 WHERE NOT col0 = NULL +---- query I rowsort label-3030 SELECT + - SUM ( DISTINCT - col1 ) FROM tab0 AS cor0 @@ -18787,8 +19001,15 @@ SELECT 89 + - ( + + 55 ) FROM tab0 # Datafusion - Expected - 42 # Datafusion - Expected - 91 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, 42 col2 FROM tab1 +---- +42 +42 +42 +51 +85 +91 query I rowsort label-3102 SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col2 * - - col2 FROM tab0 AS cor0 @@ -19110,8 +19331,15 @@ SELECT DISTINCT ( 57 ) FROM tab1 # Datafusion - Expected - 17 # Datafusion - Expected - 97 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "Int64\(38\) \+ \(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, 38 + - col1 AS col1 FROM tab0 +---- +-43 +15 +17 +37 +87 +97 query I rowsort SELECT col2 * col0 - - col1 AS col2 FROM tab1 @@ -19887,8 +20115,10 @@ SELECT - + col0 FROM tab1 AS cor0 WHERE ( NOT - col2 * 52 IS NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 215f25d7da99ca331def9d69b4a66718 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \+ Int64\(\-38\) AS col1" at position 1 and "\(\- cor0\.col2\) / \(\- cor0\.col2\) \+ \(\- cor0\.col2\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + + 46 + - ( + col1 ) AS col2, - 64 + - 38 AS col1, - ( + + col2 ) / - col2 + - col2 AS col1 FROM tab2 AS cor0 +---- +9 values hashing to 5f7b6b0cf116617fde723a420ae93ae2 query I rowsort SELECT 43 + 65 + - - col0 AS col1 FROM tab2 AS cor0 @@ -20438,8 +20668,11 @@ SELECT DISTINCT + - 61 AS col0, + col2 col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(DISTINCT Int64\(74\)\) \+ \(\- Int64\(\-66\)\) \+ Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, COUNT ( DISTINCT 74 ) + ( - - 66 ) + 83 AS col0 FROM tab1 AS cor0 +---- +150 +NULL query II rowsort SELECT DISTINCT col2 AS col1, - col2 * col1 FROM tab0 @@ -20794,8 +21027,15 @@ SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL # Datafusion - Expected - 47 # Datafusion - Expected - -9216 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 * - col2 AS col2, col1 AS col2 FROM tab1 cor0 +---- +-3481 +-4624 +-9216 +14 +47 +5 query I rowsort label-3439 SELECT ALL - col2 / 1 + + + 82 AS col1 FROM tab0 AS cor0 @@ -21098,8 +21338,15 @@ SELECT col1 * col2 AS col1 FROM tab2 cor0 WHERE NOT NULL < NULL # Datafusion - Expected - -3367 # Datafusion - Expected - -25 # Datafusion - Expected - -3145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* \(\- tab1\.col1\) AS col2" at position 0 and "CAST\(Int64\(37\) AS Int32\) \* \(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 * ( - col1 ) col2, + CAST ( 37 AS INTEGER ) * - col0 AS col2 FROM tab1 +---- +-1887 +-196 +-2209 +-25 +-3145 +-3367 query I rowsort SELECT + col2 FROM tab1 WHERE NOT - + col2 < NULL @@ -21464,8 +21711,15 @@ SELECT DISTINCT 60 AS col1 FROM tab1 AS cor0 WHERE NOT + ( - 58 ) * - + col2 + + # Datafusion - Expected - -58 # Datafusion - Expected - -952 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \* cor0\.col1 AS col2" at position 0 and "Int64\(\-58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 68 * + col1 AS col2, - 58 AS col2 FROM tab1 AS cor0 +---- +-3196 +-340 +-58 +-58 +-58 +-952 query I rowsort SELECT DISTINCT col1 * - ( - 78 ) AS col1 FROM tab1 AS cor0 @@ -21605,8 +21859,11 @@ 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\(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\. +query II valuesort SELECT + ( + ( - COUNT ( * ) ) ), - COUNT ( * ) FROM tab2 +---- +-3 +-3 query II rowsort SELECT ALL - col2 AS col2, col2 col0 FROM tab0 @@ -22180,8 +22437,15 @@ SELECT DISTINCT col1 * - + 88 * ( - + col0 ), + col0 FROM tab1 # Datafusion - Expected - 68 # Datafusion - Expected - 89 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 AS col1, col2 AS col1 FROM tab1 +---- +59 +68 +89 +89 +89 +96 query I rowsort SELECT ALL col1 * col0 col0 FROM tab1 @@ -22212,8 +22476,15 @@ SELECT DISTINCT ( - + col2 ), col1 AS col0 FROM tab0 # Datafusion - Expected - 1134 # Datafusion - Expected - 97 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(54\) \* tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, + 54 * + col1 col2 FROM tab0 +---- +1134 +15 +4374 +54 +87 +97 query I rowsort label-3662 SELECT ALL ( + + COUNT ( * ) ) FROM tab2 @@ -22257,8 +22528,15 @@ SELECT DISTINCT - ( + col0 ) / - + col1 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, + col0 AS col2 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-3669 SELECT DISTINCT - COUNT ( - col1 ) + MAX ( ALL + - col2 ) col1 FROM tab1 AS cor0 @@ -23346,8 +23624,9 @@ SELECT - + MAX ( - - 6 ) AS col1 FROM tab0 AS cor0 -6 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* Int64\(10\) / CAST\(\(\- cor0\.col1\) AS Int32\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 86 * + 10 / CAST ( - col1 AS INTEGER ) AS col1, - col1 col1 FROM tab2 AS cor0 WHERE NOT 20 = NULL +---- query I rowsort SELECT DISTINCT col0 + - 94 AS col0 FROM tab1 AS cor0 @@ -23675,8 +23954,10 @@ SELECT DISTINCT + col2 + + col1 * + + CAST ( - + col0 AS INTEGER ) * ( col1 ) * # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to efe8b1ba49a3a9b053a965d06d59b703 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 1 and "cor0\.col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + col0 AS col1, col2, + col2 AS col2 FROM tab1 AS cor0 WHERE + 82 - col1 * - col1 / + col2 + col1 - - col0 + + 38 IS NOT NULL +---- +9 values hashing to f9d8097961db29b361f7f8846c834b45 query I rowsort SELECT + col0 + 81 * - col2 * - + col0 AS col2 FROM tab1 cor0 @@ -23788,8 +24069,9 @@ SELECT ALL - 19 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE ( CAST ( NUL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, col2 AS col0 FROM tab2 WHERE ( NOT NULL BETWEEN - col1 AND + 71 ) +---- query I rowsort label-3930 SELECT DISTINCT + MAX ( - 47 ) AS col0 FROM tab2 AS cor0 @@ -24135,8 +24417,15 @@ SELECT ALL - col0 FROM tab1 cor0 WHERE NOT 25 - - ( + + col0 ) < + 86 # Datafusion - Expected - 69 # Datafusion - Expected - -99 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col2 AS col0, 69 AS col0 FROM tab0 WHERE NULL IS NULL +---- +-10 +-47 +-99 +69 +69 +69 query II rowsort SELECT col0 AS col0, 50 FROM tab1 @@ -24534,8 +24823,11 @@ SELECT DISTINCT + col2 AS col1 FROM tab2 WHERE 96 < - col1 / col2 / 96 - col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(72\) / Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col0, 72 / 6 col0 FROM tab0 +---- +12 +3 query II rowsort SELECT col2 * + col2 AS col1, ( + col2 ) FROM tab0 @@ -25627,8 +25919,11 @@ SELECT col1 * ( - 53 ) * - col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-3 +3 query I rowsort SELECT 18 + col1 FROM tab2 AS cor0 @@ -26393,8 +26688,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + COUNT ( * ) ) AS col2, COUNT ( * ) - - + COUNT ( * ) AS col2 FROM tab0 +---- +-3 +6 query I rowsort SELECT DISTINCT - - col2 * - 89 * - col1 * + - 89 + ( 56 ) AS col0 FROM tab2 AS cor0 @@ -26449,8 +26747,15 @@ SELECT ( + col2 ) * - 54 + + - col0 FROM tab0 # Datafusion - Expected - -215 # Datafusion - Expected - 77 # Datafusion - Expected - -602 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col2" at position 0 and "Int64\(\-43\) \* tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 77 AS col2, - 43 * + col1 AS col2 FROM tab1 +---- +-2021 +-215 +-602 +77 +77 +77 query I rowsort label-4375 SELECT COUNT ( * ) + + COUNT ( * ) + SUM ( + + col1 ) FROM tab1 @@ -27026,8 +27331,15 @@ SELECT - 97 + COUNT ( * ) AS col2, + 91 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -23 # Datafusion - Expected - 9409 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \* cor0\.col0 AS col0" at position 0 and "Int64\(\-23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 * col0 AS col0, - 23 AS col0 FROM tab0 AS cor0 +---- +-23 +-23 +-23 +225 +7569 +9409 query I rowsort SELECT + 99 * + col0 FROM tab2 @@ -28008,8 +28320,11 @@ SELECT ALL ( + MAX ( DISTINCT - col2 ) ) AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 10 AS col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 +---- +10 +NULL query I rowsort label-4636 SELECT DISTINCT - SUM ( ALL col0 ) AS col1 FROM tab2 @@ -28805,8 +29120,11 @@ SELECT DISTINCT - col2 + - + col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab1 +---- +-3 +3 query I rowsort label-4777 SELECT DISTINCT 56 + - COUNT ( * ) FROM tab1 AS cor0 @@ -28883,8 +29201,10 @@ SELECT DISTINCT ( + col1 ) + - - col0 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to b69db3ef90e4105c25ea137cd6ff754a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) / Int64\(51\) \+ Int64\(18\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col0 / 51 + ( 18 ) AS col2, + col0 AS col1, + + col0 AS col2 FROM tab2 AS cor0 +---- +9 values hashing to 015f3044023ad752f1055b1a8e59ea42 query I rowsort label-4790 SELECT - - col2 / + col2 + + ( + 80 ) - + col0 FROM tab0 AS cor0 @@ -28978,8 +29298,15 @@ SELECT * FROM tab2 WHERE NOT + col2 - + col1 IS NOT NULL # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, col2 AS col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 @@ -29693,8 +30020,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 AS col0, - COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +-3 +23 query I rowsort SELECT DISTINCT col1 + 55 AS col2 FROM tab0 AS cor0 @@ -30557,8 +30887,15 @@ SELECT col1 * + + 36 FROM tab1 AS cor0 # Datafusion - Expected - 1 # Datafusion - Expected - 64 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col1 AS col1" at position 0 and "\(\- cor0\.col0\) / \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 + + col1 AS col1, - col0 / - + col1 AS col1 FROM tab1 AS cor0 +---- +1 +110 +115 +17 +3 +64 query III rowsort SELECT * FROM tab2 AS cor0 WHERE ( NOT - - col1 = NULL ) @@ -30590,8 +30927,13 @@ SELECT + col0 * + 41 AS col2 FROM tab0 # Datafusion - Expected - -1 # Datafusion - Expected - 87 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "tab0\.col1 / Int64\(\-53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 87 col1, col1 / - 53 AS col1 FROM tab0 +---- +-1 +0 +87 +87 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 - + col2 IS NULL @@ -30730,8 +31072,15 @@ SELECT * FROM tab2 WHERE NOT 84 IS NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, + col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT - col0 * - ( - ( + ( ( + col0 ) ) ) ) AS col0 FROM tab0 AS cor0 @@ -32889,8 +33238,15 @@ SELECT + col0 + + - col2 * + col1 AS col1, - 20 + - - col2 FROM tab2 # Datafusion - Expected - -40 # Datafusion - Expected - -58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "\(\- cor0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2, - col2 FROM tab2 cor0 +---- +-23 +-23 +-40 +-40 +-58 +-58 query I rowsort label-5448 SELECT - CAST ( NULL AS INTEGER ) * + 99 FROM tab2 AS cor0 @@ -34021,8 +34377,15 @@ NULL # Datafusion - Expected - 40 # Datafusion - Expected - 381 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ Int64\(37\) \* Int64\(9\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 + + 37 * 9 col0, col2 AS col0 FROM tab2 WHERE NULL IS NULL +---- +23 +381 +381 +381 +40 +58 query I rowsort SELECT 28 * - + 52 + - 53 FROM tab0 @@ -34831,8 +35194,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- Int64\(0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, ( - - 0 ) col1 FROM tab0 AS cor0 +---- +-3 +0 query I rowsort label-5768 SELECT ALL MAX ( + - col0 ) AS col0 FROM tab1 WHERE NULL IS NULL @@ -35081,8 +35447,15 @@ SELECT DISTINCT 54 * + 18 AS col0 FROM tab0 # Datafusion - Expected - 1837 # Datafusion - Expected - -94 # Datafusion - Expected - 196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col1" at position 0 and "tab0\.col2 \+ tab0\.col1 \* tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 94 AS col1, + col2 + col1 * + col0 AS col1 FROM tab0 +---- +-94 +-94 +-94 +1262 +1837 +196 query I rowsort SELECT DISTINCT + ( 72 ) AS col0 FROM tab1 AS cor0 @@ -35302,8 +35675,15 @@ SELECT + col1 AS col1, - col2 FROM tab2 # Datafusion - Expected - -153120 # Datafusion - Expected - -81 # Datafusion - Expected - -26400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col1" at position 0 and "Int64\(\-55\) \* tab0\.col0 \* Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, - 55 * col0 * + 32 AS col1 FROM tab0 +---- +-1 +-153120 +-170720 +-21 +-26400 +-81 query I rowsort label-5849 SELECT - MIN ( DISTINCT + - col1 ) AS col0 FROM tab2 AS cor0 @@ -35786,8 +36166,15 @@ SELECT - ( col1 ) * + + 30 FROM tab0 cor0 # Datafusion - Expected - -64 # Datafusion - Expected - -58 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, - col0 AS col1 FROM tab2 cor0 +---- +-23 +-40 +-46 +-58 +-64 +-75 query II rowsort SELECT DISTINCT - col2, - col0 + col2 AS col1 FROM tab1 AS cor0 @@ -36635,8 +37022,15 @@ SELECT ALL col0 AS col0, - 65 + col2 + ( + col1 ) FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col1, + col1 AS col1 FROM tab1 cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-6064 SELECT + COUNT ( * ) * + 7 AS col1 FROM tab0 AS cor0 @@ -38115,8 +38509,11 @@ SELECT + - col0 * - 25 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -227 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT \(\- cor0\.col0\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( DISTINCT - + col0 ) AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +-227 +3 query I rowsort SELECT - ( + col0 ) * + col1 AS col1 FROM tab0 AS cor0 @@ -38422,8 +38819,15 @@ SELECT - col0 + - col2 + + col0 AS col2 FROM tab2 WHERE + col1 * + col2 IS NULL # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab2\.col1\)\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + - col1 ) AS col2, col1 AS col2 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT DISTINCT + 2 AS col1 FROM tab1 @@ -39053,8 +39457,15 @@ SELECT 63, - MIN ( DISTINCT + + col2 ) + + CAST ( - - COUNT ( * ) AS INTEGER ) + # Datafusion - Expected - 110 # Datafusion - Expected - 8 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "tab1\.col0 \+ Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 AS col1, col0 + 19 AS col1 FROM tab1 +---- +104 +110 +70 +8 +8 +8 query III rowsort SELECT DISTINCT - col1 AS col0, col2 AS col1, + + col2 FROM tab1 @@ -39350,8 +39761,10 @@ SELECT ALL ( + col2 ) * 15 + + col2 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 17d7d73256802e32ad1415f5a096a217 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-75\) AS Int32\) AS col1" at position 0 and "\(\- tab1\.col2\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT CAST ( + - 75 AS INTEGER ) AS col1, ( + col0 ) AS col0, - col2 AS col1 FROM tab1 +---- +9 values hashing to 6395f54c553f9f76f783cf14a4bd5d32 query I rowsort label-6532 SELECT - COUNT ( ALL + col2 ) AS col2 FROM tab1 @@ -39411,8 +39824,11 @@ SELECT + 98 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-9\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 9 AS col1, COUNT ( * ) AS col1 FROM tab2 WHERE - - col0 * col1 IS NULL +---- +0 +9 query II rowsort label-6542 SELECT ALL col0 / - col2, - col0 AS col1 FROM tab0 @@ -39755,8 +40171,15 @@ SELECT DISTINCT + 72 + 97 - ( col1 ) * - col2 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 59 # Datafusion - Expected - -66 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ \(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 25 + - col0 col0, col2 AS col0 FROM tab1 AS cor0 +---- +-26 +-60 +-66 +59 +68 +96 query I rowsort SELECT - + 9 col2 FROM tab0 AS cor0 @@ -40069,8 +40492,15 @@ SELECT ALL + + col1 + - - col1 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -15 # Datafusion - Expected - -99 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "\(\- cor0\.col2\) \+ cor0\.col2 \+ \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 col1, - col2 + col2 + - col0 AS col1 FROM tab0 AS cor0 +---- +-10 +-15 +-47 +-87 +-97 +-99 query I rowsort label-6644 SELECT - - MAX ( col0 ) FROM tab1 AS cor0 @@ -40322,8 +40752,15 @@ SELECT ALL - ( + 87 ) AS col1 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - -64 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 64 AS col1, col2 AS col1 FROM tab1 +---- +-64 +-64 +-64 +59 +68 +96 query I rowsort SELECT ALL ( - col1 ) - + - 81 FROM tab2 @@ -40734,8 +41171,15 @@ SELECT ALL 72 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - -40 # Datafusion - Expected - -58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\)" at position 0 and "\(\- tab2\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2, - col2 FROM tab2 +---- +-23 +-23 +-40 +-40 +-58 +-58 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT NULL > 21 * + - col0 - + col2 / col1 @@ -40849,8 +41293,11 @@ SELECT * FROM tab0 cor0 WHERE NULL NOT IN ( 88 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 49 + + COUNT ( * ) AS col2, + ( + + 12 ) AS col2 FROM tab1 AS cor0 +---- +12 +52 query I rowsort SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL @@ -41412,8 +41859,15 @@ SELECT DISTINCT col1 AS col2, col0 FROM tab0 cor0 # Datafusion - Expected - -67 # Datafusion - Expected - -83 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 83 col1, - col1 AS col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +-83 +-83 +-83 query I rowsort SELECT ALL - + 53 FROM tab2 AS cor0 WHERE ( NULL IS NULL ) @@ -41525,8 +41979,15 @@ SELECT col2 / - 72 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col2, col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query III rowsort SELECT * FROM tab0 WHERE col0 NOT IN ( - col0, + 74 ) @@ -41689,8 +42150,15 @@ SELECT - COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 425 # Datafusion - Expected - -975 # Datafusion - Expected - 714 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ Int64\(65\) \* \(\- cor0\.col1\) \+ \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + 65 * - col1 + - col1 col2, + col1 * + col0 AS col2 FROM tab1 AS cor0 +---- +-3193 +-415 +-975 +425 +4277 +714 query I rowsort SELECT 23 - col2 AS col1 FROM tab0 AS cor0 WHERE 72 NOT BETWEEN + + col0 AND 33 @@ -41812,8 +42280,11 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 39 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 223 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 0 and "sum\(DISTINCT cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 26 AS col2, + SUM ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0 +---- +223 +26 query I rowsort label-6931 SELECT DISTINCT ( - - COUNT ( * ) ) AS col2 FROM tab0 cor0 @@ -43289,8 +43760,11 @@ SELECT ALL + COUNT ( * ) * - 58 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "min\(DISTINCT \(\- tab2\.col0\)\) / Int64\(61\) \+ \(\- min\(tab2\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, MIN ( DISTINCT - + col0 ) / 61 + - + MIN ( ALL + col1 ) AS col1 FROM tab2 +---- +-52 +NULL query I rowsort SELECT col0 * 11 FROM tab1 @@ -43795,8 +44269,11 @@ SELECT - col2 - ( 87 ) / 58 AS col0 FROM tab0 cor0 WHERE NOT col2 = + col1 * col # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 42 col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +-42 +3 query I rowsort label-7265 SELECT DISTINCT - COUNT ( * ) + + 53 AS col2 FROM tab2 AS cor0 @@ -43865,8 +44342,15 @@ SELECT DISTINCT col2 FROM tab1 WHERE NULL >= ( NULL ) # Datafusion - Expected - 10 # Datafusion - Expected - 5 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \+ \(\- tab2\.col0\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + - col0 AS col2, + 10 AS col2 FROM tab2 +---- +-8 +10 +10 +10 +13 +5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 @@ -44215,8 +44699,15 @@ SELECT - 61 - + COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Expected - -91 # Datafusion - Expected - 5 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, - col0 AS col2 FROM tab1 AS cor0 WHERE ( ( + col0 ) ) IS NOT NULL +---- +-51 +-85 +-91 +14 +47 +5 query I rowsort SELECT ALL - col1 + - 13 FROM tab1 AS cor0 @@ -44834,8 +45325,15 @@ SELECT COUNT ( ALL + col1 ) * 50 FROM tab2 # Datafusion - Expected - -85 # Datafusion - Expected - -52 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \+ Int64\(\-97\) AS col2" at position 0 and "\(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 45 + - 97 AS col2, - col0 AS col2 FROM tab1 +---- +-51 +-52 +-52 +-52 +-85 +-91 query I rowsort label-7428 SELECT 36 / col2 AS col2 FROM tab2 @@ -45275,8 +45773,15 @@ SELECT DISTINCT col1 * - 2 FROM tab0 # Datafusion - Expected - -3431 # Datafusion - Expected - 99 # Datafusion - Expected - -7227 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "Int64\(73\) \* \(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, 73 * - col2 AS col0 FROM tab0 +---- +-3431 +-7227 +-730 +10 +47 +99 query I rowsort SELECT + + col1 * + 75 + + + 73 AS col0 FROM tab2 WHERE NOT - 59 * - col0 = - 71 @@ -45702,8 +46207,10 @@ SELECT col2 * - 37 FROM tab0 AS cor0 WHERE NULL BETWEEN col0 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 5a1620ea0dee18dc0687decf0ea2e973 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 8 * + col1 col0, col2 * - col0 - col1 + + col2 * + col1, - col2 AS col0 FROM tab1 AS cor0 +---- +9 values hashing to e9139456e1ca0d0e73081fa58bc4c8fb query I rowsort SELECT ALL 74 col1 FROM tab2 @@ -45763,12 +46270,20 @@ SELECT col2 + - 66 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 col2, ( + + col1 ) AS col2 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 81 col0, + col2 AS col0 FROM tab1 AS cor0 WHERE + col0 IS NULL +---- query I rowsort label-7577 SELECT DISTINCT COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 @@ -45958,8 +46473,15 @@ SELECT DISTINCT 60 + CAST ( 8 AS INTEGER ) FROM tab2 cor0 # Datafusion - Expected - 2516 # Datafusion - Expected - 63 # Datafusion - Expected - 3552 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-63\)\) AS col0" at position 0 and "Int64\(37\) \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 63 AS col0, 37 * + col2 col0 FROM tab1 AS cor0 +---- +2183 +2516 +3552 +63 +63 +63 query I rowsort SELECT + - col2 + + - col1 FROM tab1 AS cor0 @@ -45975,8 +46497,15 @@ SELECT + - col2 + + - col1 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - -68 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(68\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 68 AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +-68 +-68 +-68 +14 +47 +5 # Datafusion - Datafusion expected results: query error DataFusion error: Schema error: Schema contains qualified field name cor0\.col0 and unqualified field name col0 which would be ambiguous @@ -46078,8 +46607,10 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT 36 * - col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 14474696fd04c9a289b3860bcccdbf29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \* cor0\.col0 \+ Int64\(78\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 56 * col0 + + + 78 AS col2, col2 + - - col0 * - ( + col2 ) + + col1, col0 AS col2 FROM tab2 cor0 +---- +9 values hashing to 7cdc3adb84ab70826a97ba20f05b6978 query I rowsort label-7629 SELECT + - COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0 @@ -46098,8 +46629,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT + ( 60 ) + - + col0 * col2 IS NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, + col0 AS col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT col1 * + + 15 * + 33 AS col2 FROM tab1 @@ -46916,8 +47454,15 @@ SELECT DISTINCT col2, col1 + - col1 / - - col0 col0 FROM tab0 # Datafusion - Expected - -326625 # Datafusion - Expected - -77 # Datafusion - Expected - -320320 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "Int64\(65\) \* \(\- tab2\.col0\) \* tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, + 65 * - col0 * + col1 AS col1 FROM tab2 +---- +-152490 +-320320 +-326625 +-51 +-67 +-77 query I rowsort label-7771 SELECT + col2 / - col2 col2 FROM tab1 @@ -47396,8 +47941,15 @@ SELECT 61 / ( + 97 ) FROM tab1 # Datafusion - Expected - 49 # Datafusion - Expected - 91 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, 49 AS col1 FROM tab1 +---- +49 +49 +49 +51 +85 +91 query I rowsort label-7848 SELECT - MIN ( - 52 ) AS col0 FROM tab1 @@ -47915,8 +48467,15 @@ SELECT 71 + - + COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Expected - 80 # Datafusion - Expected - 182 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- \(\- cor0\.col0\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 - + - ( col0 ) AS col0, 80 AS col0 FROM tab1 cor0 +---- +102 +170 +182 +80 +80 +80 query I rowsort label-7934 SELECT SUM ( DISTINCT + ( - col0 ) ) * + MIN ( - col0 ) col1 FROM tab2 WHERE NULL IN ( 7 ) @@ -47995,8 +48554,15 @@ SELECT DISTINCT + + ( - 76 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -77 # Datafusion - Expected - -97 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col2 \+ \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, col2 + - col0 AS col2 FROM tab0 AS cor0 +---- +-15 +-77 +-87 +-97 +2 +32 query I rowsort label-7947 SELECT ALL + - COUNT ( * ) + - + 19 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT + 83 + + 82 IS NULL @@ -49163,8 +49729,15 @@ SELECT ALL 90 + - ( 93 ) FROM tab2 cor0 # Datafusion - Expected - 87 # Datafusion - Expected - -29 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 29 AS col2, col0 col2 FROM tab0 AS cor0 +---- +-29 +-29 +-29 +15 +87 +97 query II rowsort SELECT ALL + 0 - col0 AS col0, + ( + 71 ) AS col1 FROM tab1 @@ -52100,8 +52673,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 +---- +3 +3 query I rowsort SELECT ( - + 8 ) FROM tab0 AS cor0 @@ -53135,8 +53711,15 @@ SELECT ALL + 96 * + SUM ( ( - 47 ) ) * - - 16 FROM tab2 AS cor0 # Datafusion - Expected - -26979 # Datafusion - Expected - 24 # Datafusion - Expected - -123200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ \(\- tab2\.col2\) AS col2" at position 0 and "\(\- tab2\.col1\) \* \(\- tab2\.col2\) \* \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 + - col2 AS col2, - col1 * - + col2 * - col2 AS col2 FROM tab2 +---- +-123200 +-225388 +-26979 +17 +23 +24 query I rowsort SELECT + - 20 FROM tab1 WHERE ( NOT + 84 IS NOT NULL ) @@ -53633,8 +54216,11 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> col2 + + 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(cor0\.col2\) AS col2" at position 0 and "Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MIN ( col2 ) AS col2, 83 AS col2 FROM tab1 AS cor0 +---- +59 +83 query I rowsort SELECT + col2 FROM tab0 AS cor0 WHERE + col0 / 76 IS NOT NULL @@ -53646,8 +54232,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MAX ( DISTINCT + - ( + col2 ) ) AS col0, - COUNT ( * ) AS col0 FROM tab0 +---- +-10 +-3 query I rowsort SELECT ALL col2 AS col0 FROM tab2 WHERE NOT - col1 IS NULL @@ -53755,8 +54344,11 @@ SELECT DISTINCT 17 * + 13 * + COUNT ( DISTINCT 8 ), 23 * + 5 * - MAX ( DISTINCT # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, - 45 AS col2 FROM tab0 +---- +-45 +3 query I rowsort label-8905 SELECT 30 / - MIN ( DISTINCT - col2 ) FROM tab2 @@ -53812,8 +54404,15 @@ SELECT - CAST ( + - col1 AS INTEGER ) FROM tab0 cor0 WHERE NOT NULL > col1 # Datafusion - Expected - NULL # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col1 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 +---- +-14 +-47 +-5 +NULL +NULL +NULL query I rowsort label-8913 SELECT ALL - ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0 @@ -54483,8 +55082,15 @@ SELECT - ( 53 ) * + 8 * + col2 FROM tab1 AS cor0 # Datafusion - Expected - -21 # Datafusion - Expected - 97 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, - col1 AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +15 +87 +97 query I rowsort label-9019 SELECT DISTINCT - SUM ( + - col0 ) * + 34 + - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 75 - + - col2 NOT BETWEEN - + col0 / + - col0 + col1 * - col2 AND NULL @@ -55007,8 +55613,15 @@ SELECT col2, 18 * + col2 / + col2 - col2 FROM tab2 WHERE NOT - col2 * + col2 + + # Datafusion - Expected - 4 # Datafusion - Expected - 15 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(15\)\)\) AS col1" at position 0 and "tab1\.col2 / \(\- \(\- Int64\(14\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - + 15 ) AS col1, + col2 / - - ( + 14 ) col1 FROM tab1 +---- +15 +15 +15 +4 +4 +6 query II rowsort SELECT ALL - col2 * + col0 AS col0, 37 FROM tab2 AS cor0 @@ -55826,8 +56439,15 @@ SELECT * FROM tab0 WHERE NOT + col2 * col0 IS NULL # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, + col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query III rowsort SELECT * FROM tab2 AS cor0 WHERE - col2 IS NULL OR NOT ( + ( - + col0 ) ) > + col0 + + col2 @@ -55987,8 +56607,15 @@ SELECT ALL + 14 / - col2 + col1 FROM tab0 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 1 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / cor0\.col2 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 / col2 col0, col1 AS col0 FROM tab0 AS cor0 +---- +1 +1 +1 +1 +21 +81 query II rowsort label-9280 SELECT ALL + COUNT ( * ) AS col1, COUNT ( * ) + + - 35 FROM tab0 @@ -56703,8 +57330,11 @@ SELECT * FROM tab2 AS cor0 WHERE NOT + 42 - + col1 = 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\(DISTINCT \(\- Int64\(27\)\)\) AS col1" at position 0 and "min\(tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( DISTINCT - + 27 ) col1, + MIN ( ALL col0 ) AS col1 FROM tab0 +---- +1 +15 query I rowsort SELECT ALL col0 - 17 AS col1 FROM tab2 WHERE NOT col0 / + col1 IS NOT NULL @@ -57485,8 +58115,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE col1 / + 34 IS NULL # Datafusion - Expected - -67 # Datafusion - Expected - -77 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col1\) AS Int32\) \+ \(\- \(\- cor0\.col2\)\) / Int64\(74\) AS col0" at position 0 and "\(\- Int64\(67\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( + + ( + - col1 ) AS INTEGER ) + - ( - col2 ) / 74 col0, - ( + 67 ) col0 FROM tab2 AS cor0 +---- +-51 +-67 +-67 +-67 +-67 +-77 query I rowsort SELECT 31 * - + col1 FROM tab0 @@ -57867,8 +58504,11 @@ SELECT COUNT ( * ) * + ( - 53 ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- Int64\(\-45\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( - - 45 ) AS col2, + COUNT ( * ) AS col2 FROM tab2 +---- +3 +45 query I rowsort SELECT ALL - ( col1 ) + + col1 col2 FROM tab1 @@ -58395,8 +59035,15 @@ SELECT col0 AS col1, - col1 col0 FROM tab1 AS cor0 # Datafusion - Expected - -670 # Datafusion - Expected - 97 # Datafusion - Expected - -6633 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "CAST\(Int64\(67\) AS Int32\) \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 col1, CAST ( + + 67 AS INTEGER ) * - col2 AS col1 FROM tab0 AS cor0 +---- +-3149 +-6633 +-670 +15 +87 +97 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT col1 = NULL @@ -58930,8 +59577,11 @@ SELECT + + COUNT ( * ) FROM tab2 WHERE NOT ( - 92 > + col1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- Int64\(55\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) + COUNT ( * ) col2, - ( 55 ) AS col2 FROM tab0 +---- +-55 +6 query III rowsort SELECT * FROM tab1 WHERE - col0 + + - col1 IS NOT NULL @@ -59250,8 +59900,15 @@ SELECT DISTINCT MIN ( 2 ) FROM tab0 # Datafusion - Expected - -125 # Datafusion - Expected - 50 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col2" at position 0 and "\(\- tab2\.col2\) \+ \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 50 AS col2, - col2 + + - col1 AS col2 FROM tab2 +---- +-117 +-125 +-74 +50 +50 +50 query II rowsort label-9816 SELECT ( - COUNT ( * ) ) * 56 * + 56, + 84 col1 FROM tab0 @@ -59288,8 +59945,15 @@ SELECT ALL - - 13 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) # Datafusion - Expected - 64 # Datafusion - Expected - 16 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-16\)\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 16 ) AS col2, ( col0 ) AS col2 FROM tab2 +---- +16 +16 +16 +46 +64 +75 query I rowsort SELECT ALL + - 6 + col1 FROM tab1 AS cor0 @@ -59936,8 +60600,15 @@ SELECT - - ( + 71 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, + col1 col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query IIIIII rowsort SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 ) WHERE 85 IS NULL diff --git a/data/sqlite/random/aggregates/slt_good_37.slt b/data/sqlite/random/aggregates/slt_good_37.slt index 6630a6b..20989ce 100644 --- a/data/sqlite/random/aggregates/slt_good_37.slt +++ b/data/sqlite/random/aggregates/slt_good_37.slt @@ -257,8 +257,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 >= NULL # Datafusion - Expected - 68 # Datafusion - Expected - -5 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, col2 col0 FROM tab1 +---- +-14 +-47 +-5 +59 +68 +96 query I rowsort label-36 SELECT - COUNT ( * ) * COUNT ( * ) FROM tab0 cor0 WHERE NOT col2 BETWEEN + col2 AND col2 * + + col0 + - col0 + - CAST ( NULL AS FLOAT8 ) - 99 + ( + - col2 ) + + col0 * - - 85 @@ -580,8 +587,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - COUNT ( * ) col0, + 83 AS col0 FROM tab1 cor0 +---- +3 +83 query I rowsort SELECT - col0 + + col2 * - 27 AS col0 FROM tab0 cor0 @@ -1085,8 +1095,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) * COUNT ( DISTINCT - 65 ) AS col0, 2 AS col0 FROM tab1 +---- +2 +3 query I rowsort SELECT - - ( + col2 ) * col1 FROM tab2 AS cor0 @@ -1987,8 +2000,11 @@ SELECT ALL + 92 * MIN ( + col2 ) 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\(DISTINCT tab0\.col1\)" at position 0 and "count\(DISTINCT tab0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( DISTINCT + col1 ), COUNT ( DISTINCT col1 ) FROM tab0 +---- +3 +3 query I rowsort SELECT DISTINCT col2 + + - 17 - col1 * + ( - col0 ) * col1 FROM tab2 AS cor0 @@ -2059,8 +2075,10 @@ SELECT + - MIN ( ALL + + col0 ) col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 161ad5210cce4b74aa96741097cc65ce -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(\-18\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + col1 AS col0, col0 * + col0 + - + col0 AS col1, + - 18 AS col0 FROM tab1 AS cor0 +---- +9 values hashing to 5d1b0ae9f9ce20e9d2390e882d46d887 query I rowsort SELECT DISTINCT - 18 * 84 col0 FROM tab1 AS cor0 @@ -2170,8 +2188,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 77 / - + # Datafusion - Expected - 73 # Datafusion - Expected - -58 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, 73 col0 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +73 +73 +73 query II rowsort label-362 SELECT DISTINCT COUNT ( * ) AS col1, MAX ( - col1 ) FROM tab1 cor0 WHERE ( - col1 IS NULL ) @@ -2260,8 +2285,15 @@ SELECT + 51 / - CAST ( - col0 AS INTEGER ) AS col0, + 41 FROM tab0 AS cor0 # Datafusion - Expected - -23 # Datafusion - Expected - 0 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) / cor0\.col2 AS col0" at position 0 and "cor0\.col2 \+ \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 10 / col2 AS col0, col2 + - col0 AS col0 FROM tab2 AS cor0 +---- +-17 +-23 +-24 +0 +0 +0 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + - col1 NOT IN ( + col2 ) @@ -2291,8 +2323,15 @@ SELECT ALL + col0 FROM tab0 cor0 WHERE NOT col1 * - - col0 IN ( - col2, - col2 ) # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col2, col1 AS col2 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT + col1 + col1 col1 FROM tab2 @@ -4363,8 +4402,15 @@ SELECT + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 # Datafusion - Expected - -77 # 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 "Int64\(\-77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 33 AS col2, - 77 AS col2 FROM tab2 AS cor0 +---- +-33 +-33 +-33 +-77 +-77 +-77 query I rowsort label-728 SELECT + - col0 / + col2 col0 FROM tab1 AS cor0 @@ -4392,8 +4438,15 @@ SELECT DISTINCT - + ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - -58 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(0\) / cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 col1, 0 / + col0 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +0 +0 +0 query II rowsort label-732 SELECT - + col0 AS col1, 61 / 67 * col0 + 50 FROM tab0 AS cor0 @@ -4868,8 +4921,15 @@ SELECT - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - -12047 # Datafusion - Expected - -81 # Datafusion - Expected - -216967 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col1" at position 0 and "Int64\(57\) \* tab0\.col1 \* \(\- tab0\.col2\) \+ \(\- tab0\.col0\) \+ tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, + 57 * ( col1 ) * - col2 + - col0 + col2 col1 FROM tab0 +---- +-1 +-12047 +-21 +-216967 +-5641 +-81 query III rowsort SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) > - col2 @@ -4917,8 +4977,15 @@ SELECT DISTINCT + col0 * 87 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, + col2 AS col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query III rowsort SELECT ALL * FROM tab2 cor0 WHERE NULL = col1 @@ -5156,8 +5223,9 @@ SELECT COUNT ( * ) + + - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL <= NU NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col1" at position 0 and "cor0\.col1 \* Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 AS col1, col1 * - 43 col1 FROM tab0 AS cor0 WHERE NOT NULL < 10 +---- query I rowsort SELECT DISTINCT ( 36 ) FROM tab0 cor0 @@ -5716,8 +5784,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ), + COUNT ( * ) FROM tab0 WHERE NULL IS NULL +---- +3 +3 query I rowsort label-944 SELECT + - MIN ( - - 63 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1 @@ -6396,8 +6467,15 @@ SELECT DISTINCT * FROM tab2 WHERE + col2 / col1 < NULL # Datafusion - Expected - 40 # Datafusion - Expected - 87 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 AS col0, col2 AS col0 FROM tab2 +---- +23 +40 +58 +87 +87 +87 query I rowsort SELECT ALL col0 FROM tab0 AS cor0 WHERE + 65 + + - col0 < NULL @@ -7848,8 +7926,9 @@ SELECT DISTINCT + 42 * + ( col0 ) * - col2 AS col2 FROM tab1 -259896 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) / CAST\(Int64\(\-25\) AS Int32\) \+ tab0\.col2 AS col0" at position 0 and "CAST\(NULL AS Float64\) \* tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - 22 / CAST ( - 25 AS INTEGER ) + + col2 AS col0, + CAST ( NULL AS FLOAT8 ) * col0 col0 FROM tab0 WHERE NOT NULL IS NULL +---- query I rowsort SELECT + 97 * col1 + col1 FROM tab0 AS cor0 @@ -9430,8 +9509,15 @@ SELECT DISTINCT - CAST ( + col0 AS INTEGER ) + col2 * 74 AS col0, - col2 * - 88 # Datafusion - Expected - 30 # Datafusion - Expected - 91 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, + 30 AS col2 FROM tab1 AS cor0 +---- +30 +30 +30 +51 +85 +91 query I rowsort SELECT ALL + col1 * + + ( + - col2 ) * - 12 + - 74 * + col2 AS col0 FROM tab0 AS cor0 @@ -10589,8 +10675,15 @@ SELECT - + COUNT ( * ) * - - COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Expected - 82 # Datafusion - Expected - 5 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 col2, 82 AS col2 FROM tab1 AS cor0 +---- +14 +47 +5 +82 +82 +82 query II rowsort SELECT ALL - col2, + 55 FROM tab0 AS cor0 WHERE - col1 IS NULL @@ -10659,8 +10752,15 @@ SELECT ALL + + ( - 33 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -6561 # Datafusion - Expected - 99 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col2 AS col2" at position 0 and "\(\- cor0\.col1\) \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * + col2 AS col2, - col1 * + + col1 AS col2 FROM tab0 cor0 +---- +-1 +-441 +-6561 +210 +3807 +99 query I rowsort SELECT col2 + - 47 AS col2 FROM tab0 @@ -11331,8 +11431,15 @@ SELECT ALL - col0 * ( + + col1 ) AS col0 FROM tab0 # Datafusion - Expected - 40 # Datafusion - Expected - 44 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \+ tab2\.col0 AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 + col0 AS col1, col2 col1 FROM tab2 +---- +15 +23 +33 +40 +44 +58 query III rowsort label-1879 SELECT * FROM tab1 WHERE NULL BETWEEN col2 AND CAST ( ( col1 ) AS INTEGER ) * + col0 + col1 @@ -13862,8 +13969,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) AS col1, - COUNT ( * ) AS col1 FROM tab0 +---- +-3 +NULL query I rowsort SELECT + col2 * 90 AS col0 FROM tab0 @@ -13928,8 +14038,15 @@ SELECT ALL + - ( - + COUNT ( * ) ) FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL + - col1 AS col2, + CAST ( NULL AS FLOAT8 ) AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +NULL +NULL +NULL query II rowsort SELECT DISTINCT + - 19 col0, 79 FROM tab2 AS cor0 @@ -14554,8 +14671,11 @@ SELECT ( - COUNT ( + CAST ( NULL AS INTEGER ) ) ) * + - COUNT ( * ) FROM tab0 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col2" at position 0 and "max\(Int64\(85\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 68 AS col2, + MAX ( + 85 ) col2 FROM tab0 +---- +-68 +85 query I rowsort label-2409 SELECT COUNT ( DISTINCT - col2 ) AS col0 FROM tab2 @@ -14897,8 +15017,15 @@ SELECT ALL col1 * + + col2 AS col1 FROM tab0 # Datafusion - Expected - 76 # Datafusion - Expected - -663 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \* Int64\(13\) AS col2" at position 0 and "Int64\(45\) \+ \(\- Int64\(\-31\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * + 13 AS col2, 45 + - - 31 col2 FROM tab1 +---- +-1105 +-1183 +-663 +76 +76 +76 query I rowsort label-2466 SELECT DISTINCT SUM ( ALL + - col1 ) AS col2 FROM tab1 @@ -15898,8 +16025,15 @@ SELECT col2, - 63 * 94 AS col0 FROM tab2 # Datafusion - Expected - 35 # Datafusion - Expected - -39 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 39 AS col2, 35 col2 FROM tab2 AS cor0 +---- +-39 +-39 +-39 +35 +35 +35 query III rowsort SELECT DISTINCT * FROM tab2 cor0 WHERE NULL >= + 74 @@ -16969,8 +17103,15 @@ SELECT + col1 AS col0, + col2 AS col1 FROM tab2 WHERE NOT - - 82 = ( 36 / - col0 # Datafusion - Expected - -67 # Datafusion - Expected - 91 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 0 and "\(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 AS col1, ( - col1 ) col1 FROM tab2 +---- +-51 +-67 +-77 +91 +91 +91 query II rowsort SELECT col2, - 58 AS col0 FROM tab1 @@ -17958,8 +18099,15 @@ SELECT * FROM tab1 WHERE + - col2 * - col1 + - + col0 + + 68 * - col2 IS NULL # Datafusion - Expected - -67 # Datafusion - Expected - -77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\)" at position 0 and "\(\- tab2\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1, - col1 FROM tab2 +---- +-51 +-51 +-67 +-67 +-77 +-77 query I rowsort SELECT DISTINCT - - ( - - 94 ) AS col2 FROM tab0 AS cor0 @@ -18615,8 +18763,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - COUNT ( * ) AS col0, COUNT ( * ) col0 FROM tab0 cor0 +---- +-3 +3 query I rowsort label-3091 SELECT DISTINCT - MAX ( ALL 27 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( + col2 ) * - - ( - + col2 ) IN ( - col2 ) @@ -19750,8 +19901,15 @@ SELECT DISTINCT - - 73 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NUL # Datafusion - Expected - -64 # Datafusion - Expected - 30 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 30 AS col1, - col0 AS col1 FROM tab2 +---- +-46 +-64 +-75 +30 +30 +30 query I rowsort SELECT ALL - - col1 + + col0 FROM tab2 WHERE - col1 * + col2 * + 79 IS NOT NULL @@ -20076,8 +20234,9 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT 82 * - + col2 * + - col0 IS NULL 9 values hashing to 75c998aa53ac83218cbf2feb962d0a49 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col1" at position 0 and "Int64\(64\) \+ Int64\(\-51\) \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 AS col1, 64 + - 51 * ( - col1 ) AS col1 FROM tab0 AS cor0 WHERE col1 + col0 >= NULL +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -20238,8 +20397,15 @@ SELECT ALL + COUNT ( DISTINCT col0 ) AS col0 FROM tab1 # Datafusion - Expected - 10 # Datafusion - Expected - -97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, + col2 AS col0 FROM tab0 +---- +-15 +-87 +-97 +10 +47 +99 query I rowsort SELECT + 92 + + col1 * + + col0 AS col2 FROM tab2 @@ -22622,8 +22788,15 @@ SELECT DISTINCT - col0 AS col0, col0 col0 FROM tab2 cor0 # Datafusion - Expected - -64 # Datafusion - Expected - -98 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(98\)\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 98 AS col1, - ( + + col0 ) AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +-98 +-98 +-98 query I rowsort SELECT ALL col0 * - - ( - + col2 ) FROM tab1 @@ -22882,8 +23055,15 @@ SELECT * FROM tab2 cor0 WHERE NOT - col1 + + col0 IN ( + + col0, col1 ) # Datafusion - Expected - 66 # Datafusion - Expected - -91 # Datafusion - Expected - 108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col1 \+ Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 AS col0, col1 + 61 AS col0 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +108 +66 +75 query I rowsort label-3784 SELECT - MIN ( DISTINCT - - 88 ) AS col1 FROM tab1 cor0 @@ -23650,8 +23830,15 @@ SELECT + CAST ( + 0 AS INTEGER ) AS col1 FROM tab0 cor0 # Datafusion - Expected - 56 # Datafusion - Expected - 96 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, 56 AS col0 FROM tab1 +---- +56 +56 +56 +59 +68 +96 query II rowsort SELECT ALL 39 AS col0, + 46 - col1 AS col2 FROM tab0 @@ -23978,8 +24165,15 @@ SELECT + - 38 * + - 7 FROM tab2 AS cor0 # Datafusion - Expected - 17405 # Datafusion - Expected - 5 # Datafusion - Expected - 217328 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col1" at position 0 and "cor0\.col2 \* cor0\.col2 \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 5 AS col1, col2 * col2 * + col1 col1 FROM tab1 AS cor0 +---- +129024 +17405 +217328 +5 +5 +5 query I rowsort SELECT DISTINCT - 99 - - ( col0 ) + - col1 FROM tab1 AS cor0 @@ -24838,8 +25032,10 @@ SELECT ALL col0 * col2 * + col2 + - 58 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 43e5b9f702b679dcbbca82db7e971f0a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* \(\- cor0\.col0\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 1 * - col0 AS col0, + 7 AS col0, col2 FROM tab0 AS cor0 +---- +9 values hashing to 566f302cd07ca8e3d094ea18b78a4669 query I rowsort SELECT DISTINCT - 95 * - col2 - + 68 FROM tab1 AS cor0 @@ -25766,8 +25962,11 @@ SELECT + - 89 FROM tab2 WHERE NULL <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \+ Int64\(23\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 53 + + + 23 AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +-30 +3 query I rowsort label-4272 SELECT DISTINCT + ( - COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 @@ -26078,8 +26277,11 @@ SELECT DISTINCT * FROM tab1 WHERE 33 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- tab2\.col1\) \* \(\- tab2\.col1\) \* \(\- \(\- tab2\.col1\)\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col1 * - col1 * - - col1 AS col1, 44 AS col1 FROM tab2 +---- +44 +NULL query I rowsort SELECT - + ( - - 48 ) FROM tab2 WHERE - + col2 IS NULL @@ -26528,8 +26730,11 @@ SELECT + col1 * + + 89 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, + 75 AS col2 FROM tab0 cor0 +---- +3 +75 query I rowsort SELECT DISTINCT col0 * + - col0 + - col1 AS col2 FROM tab2 AS cor0 @@ -26727,8 +26932,15 @@ SELECT - COUNT ( - - col0 ) AS col0 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col0, + col1 AS col0 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-4431 SELECT ALL + CAST ( NULL AS INTEGER ) * - 75 * - 97 * - col0 / + 99 FROM tab0 @@ -27627,8 +27839,11 @@ SELECT ALL + - CAST ( - 99 AS INTEGER ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +3 +71 # Datafusion - Datafusion expected results: # Datafusion - Expected - -705 @@ -27637,8 +27852,15 @@ SELECT 71 AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -10 # Datafusion - Expected - -9603 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(19\)\) / Int64\(\-20\) \+ \(\- \(\- \(\- cor0\.col0\)\)\) \* cor0\.col2 AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 19 / - 20 + + - ( - - ( + col0 ) ) * col2 AS col2, - col2 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-705 +-870 +-9603 +-99 query II rowsort SELECT ALL col1 AS col1, col2 FROM tab1 AS cor0 @@ -28279,8 +28501,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT col2 + - col0 + - + col1 - col2 < 18 # Datafusion - Expected - 870 # Datafusion - Expected - 17 # Datafusion - Expected - 9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "cor0\.col0 \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 17 col0, + col0 * + col2 AS col0 FROM tab0 AS cor0 +---- +17 +17 +17 +705 +870 +9603 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT col1 + 2 < NULL @@ -28353,8 +28582,15 @@ SELECT 98 * + + col1 FROM tab2 AS cor0 # Datafusion - Expected - -157 # Datafusion - Expected - -97 # Datafusion - Expected - -167 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(\-70\) \- cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col0 AS col0, - 70 - + col0 col0 FROM tab0 AS cor0 +---- +-15 +-157 +-167 +-85 +-87 +-97 query I rowsort label-4705 SELECT DISTINCT - ( SUM ( - col0 ) ) AS col0 FROM tab0 AS cor0 @@ -28479,8 +28715,15 @@ SELECT ALL col1 col0 FROM tab0 AS cor0 WHERE NULL IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col0 \+ \(\- Int64\(\-22\)\) \+ CAST\(NULL AS Int32\) \* Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, + col0 + - - 22 + + CAST ( NULL AS INTEGER ) * 29 AS col1 FROM tab1 +---- +51 +85 +91 +NULL +NULL +NULL # Datafusion - Datafusion expected results: query error DataFusion error: Schema error: Schema contains qualified field name tab0\.col2 and unqualified field name col2 which would be ambiguous @@ -28612,8 +28855,15 @@ SELECT - col2 * + 84 + + col2 + col2 * col0 AS col0 FROM tab2 # Datafusion - Expected - 10 # Datafusion - Expected - 128 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ \(\- tab0\.col2\) \+ Int64\(94\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 + - col2 + + 94 AS col1, col2 col1 FROM tab0 +---- +-4 +10 +105 +128 +47 +99 query I rowsort SELECT + col2 * + + 56 FROM tab1 @@ -28726,8 +28976,15 @@ SELECT col2 * - CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\)" at position 0 and "\(\- tab0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2, - col2 FROM tab0 +---- +-10 +-10 +-47 +-47 +-99 +-99 query I rowsort SELECT DISTINCT - col0 * col0 * + + ( - 4 ) FROM tab2 @@ -28801,8 +29058,15 @@ SELECT DISTINCT 39 + + ( + 53 ) FROM tab0 AS cor0 # Datafusion - Expected - 38 # Datafusion - Expected - 53 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 AS col0, 38 AS col0 FROM tab0 AS cor0 +---- +38 +38 +38 +53 +53 +53 query I rowsort SELECT col2 * - col0 col2 FROM tab2 AS cor0 WHERE ( - 41 IS NULL ) @@ -28853,8 +29117,15 @@ NULL # Datafusion - Expected - 128 # Datafusion - Expected - 31 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ tab0\.col1" at position 0 and "tab0\.col2 \+ tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 + + col1, + col2 + + col1 FROM tab0 +---- +100 +100 +128 +128 +31 +31 query I rowsort SELECT ALL + - col0 + col0 AS col1 FROM tab0 AS cor0 @@ -29062,8 +29333,15 @@ SELECT DISTINCT + - col0 AS col2, col2 * col1 * - - 25 - 13 FROM tab1 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - -47 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col1" at position 0 and "\(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 47 col1, - col0 AS col1 FROM tab1 +---- +-47 +-47 +-47 +-51 +-85 +-91 query I rowsort label-4816 SELECT + ( + COUNT ( * ) ) AS col1 FROM tab2 @@ -29307,8 +29585,15 @@ SELECT col2 col2, 80 FROM tab2 # Datafusion - Expected - -21 # Datafusion - Expected - 41 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 41 AS col1, - col1 AS col1 FROM tab0 +---- +-1 +-21 +-81 +41 +41 +41 query I rowsort SELECT ALL 1 * - 8 AS col0 FROM tab2 AS cor0 @@ -29361,8 +29646,15 @@ SELECT DISTINCT 37 * 91 AS col0 FROM tab2 # Datafusion - Expected - -5020 # Datafusion - Expected - -4 # Datafusion - Expected - -4910 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) / \(\- tab1\.col1\) AS col2" at position 0 and "\(\- tab1\.col1\) \+ tab1\.col2 \* \(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 64 / - + col1 AS col2, - col1 + col2 * + - col0 AS col2 FROM tab1 +---- +-1 +-12 +-4 +-4910 +-5020 +-6235 query I rowsort SELECT ALL col2 + - - 58 FROM tab0 @@ -30590,8 +30882,11 @@ SELECT MIN ( DISTINCT + - col0 ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, - 99 AS col1 FROM tab0 +---- +-99 +3 query I rowsort label-5077 SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 cor1 @@ -30749,8 +31044,15 @@ SELECT ALL MAX ( DISTINCT - col1 ) AS col1 FROM tab1 # Datafusion - Expected - 91 # Datafusion - Expected - 96 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 col1, col0 col1 FROM tab1 AS cor0 +---- +51 +59 +68 +85 +91 +96 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT 89 IS NULL @@ -30976,8 +31278,11 @@ SELECT + COUNT ( * ) * COUNT ( * ) col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + COUNT ( * ) col2, + 90 col2 FROM tab0 AS cor0 WHERE NULL <= + col0 +---- +0 +90 query I rowsort label-5142 SELECT ALL - + col0 / - col1 - - col2 * + - 23 * - col2 col1 FROM tab2 AS cor0 WHERE - 73 IS NOT NULL @@ -32183,8 +32488,15 @@ SELECT DISTINCT - + col0 + - - col0 * + 71 + col0 FROM tab0 AS cor0 # Datafusion - Expected - -1 # Datafusion - Expected - 74 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col1 AS col0" at position 0 and "cor0\.col1 / \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col2 + + col1 AS col0, + col1 / - col2 col0 FROM tab2 AS cor0 +---- +-1 +-1 +-2 +117 +125 +74 query I rowsort SELECT + col0 - 54 AS col2 FROM tab2 AS cor0 @@ -33544,8 +33856,10 @@ SELECT DISTINCT col1 / - 66 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to d8335a212e2dc7b047ab14e1cadadcb3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ Int64\(31\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ( + col0 ) + + 31 AS col2, 28 * + col1 / - - col1 AS col0, col0 AS col2 FROM tab2 +---- +9 values hashing to 0ce8be3fe55fa4b51bb3f427c6bddead query I rowsort label-5562 SELECT ALL 19 / + col2 FROM tab1 @@ -34366,8 +34680,15 @@ SELECT + col2 AS col2, 48 - - col0 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1, + col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-5697 SELECT col0 / - - col2 FROM tab0 AS cor0 @@ -34701,8 +35022,15 @@ SELECT DISTINCT col1 col1 FROM tab2 AS cor0 WHERE + 4 > NULL AND NOT col2 * + co # Datafusion - Expected - 1274 # Datafusion - Expected - 107 # Datafusion - Expected - 714 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \+ Int64\(95\) AS col2" at position 0 and "Int64\(14\) \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 + 95 col2, 14 * col0 col2 FROM tab1 cor0 +---- +107 +107 +107 +1190 +1274 +714 query I rowsort SELECT ALL col2 - + col2 * + 23 FROM tab0 AS cor0 @@ -34818,8 +35146,15 @@ SELECT 60 * COUNT ( * ) + + 22 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 69 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- Int64\(6\)\) AS col2" at position 0 and "cor0\.col2 \- cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 + - + 6 AS col2, col2 - col2 AS col2 FROM tab2 AS cor0 +---- +0 +0 +0 +40 +58 +69 query I rowsort label-5770 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + 22 FROM tab2 cor0 @@ -34967,8 +35302,15 @@ SELECT ALL - + 78 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 26 # Datafusion - Expected - 3196 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col2 AS col2" at position 0 and "cor0\.col0 \+ \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col1 * + col2 col2, col0 + - col2 col2 FROM tab1 AS cor0 +---- +-45 +1344 +23 +26 +295 +3196 query I rowsort label-5794 SELECT ALL + + 71 / 40 / col2 + col2 + + col1 + col0 AS col1 FROM tab0 AS cor0 @@ -35192,8 +35534,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( * ) AS col1, + 75 AS col1 FROM tab1 AS cor0 +---- +3 +75 query II rowsort SELECT DISTINCT + + 51 col2, col1 FROM tab1 AS cor0 @@ -36596,8 +36941,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), + COUNT ( * ) FROM tab1 AS cor0 +---- +3 +3 query I rowsort label-6068 SELECT + MAX ( ALL + - col1 ) AS col2 FROM tab1 AS cor0 @@ -37363,8 +37711,15 @@ SELECT DISTINCT - 94 AS col2 FROM tab1 WHERE - + col1 <= - 55 - col1 # Datafusion - Expected - NULL # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "cor0\.col1 / Int64\(99\) \* CAST\(NULL AS Int32\) \+ Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 29 AS col1, + col1 / 99 * CAST ( NULL AS INTEGER ) + - 66 AS col1 FROM tab2 AS cor0 +---- +29 +29 +29 +NULL +NULL +NULL query II rowsort SELECT DISTINCT - 83, + 78 col2 FROM tab2 AS cor0 @@ -37568,8 +37923,15 @@ SELECT DISTINCT 10 * + + COUNT ( * ) AS col1 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +NULL +NULL +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 @@ -37578,8 +37940,15 @@ SELECT + - col2 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -93 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 93 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 +---- +-93 +-93 +-93 +NULL +NULL +NULL query I rowsort SELECT DISTINCT col1 * - 60 + col1 FROM tab0 AS cor0 @@ -38153,8 +38522,15 @@ SELECT DISTINCT - + 62, - 98 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 4536 # Datafusion - Expected - 8 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "cor0\.col1 \+ \(\- cor0\.col1\) \* Int64\(\-55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 8 col1, + col1 + - col1 * - 55 AS col1 FROM tab0 AS cor0 +---- +1176 +4536 +56 +8 +8 +8 query II rowsort SELECT col0 col1, + col0 * + 84 + + - 29 + + - col2 FROM tab0 AS cor0 @@ -38900,8 +39276,15 @@ SELECT ALL col0 + col2 FROM tab0 WHERE NOT NULL >= - 16 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, + col1 AS col2 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NOT - 49 > NULL @@ -39296,8 +39679,15 @@ SELECT 8, - ( + + 9 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 79 # Datafusion - Expected - 97 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, 79 AS col1 FROM tab0 AS cor0 +---- +15 +79 +79 +79 +87 +97 query III rowsort SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( + + col0, + col0 ) @@ -39306,8 +39696,11 @@ SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( + + col0, + col0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-15\)\) AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 15 AS col1, 57 col1 FROM tab0 AS cor0 +---- +15 +57 query III rowsort SELECT * FROM tab2 WHERE - col0 < ( - - 66 ) @@ -39658,8 +40051,15 @@ SELECT - col1, 75 * - col2 * - + col1 AS col0 FROM tab0 AS cor0 WHERE NOT 92 IS # Datafusion - Expected - 80 # Datafusion - Expected - -72 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col2" at position 0 and "Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 72 AS col2, 80 AS col2 FROM tab0 AS cor0 +---- +-72 +-72 +-72 +80 +80 +80 query I rowsort label-6576 SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab1 AS cor0 @@ -40008,8 +40408,11 @@ SELECT + col1 / col0 * + 65 + + col2 * col1, col0 col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 58 AS col2 FROM tab2 cor0 +---- +3 +58 query I rowsort SELECT ALL - ( - 69 ) AS col1 FROM tab0 cor0 @@ -40079,8 +40482,11 @@ SELECT DISTINCT - 38 + col0, col1 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -1173 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(23\) \* \(\- Int64\(51\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) + + + COUNT ( * ) AS col1, + 23 * - + 51 AS col1 FROM tab0 +---- +-1173 +6 query II rowsort SELECT + col1 + + col0 AS col1, col0 + + col0 AS col2 FROM tab0 AS cor0 @@ -40968,8 +41374,15 @@ SELECT ALL - col0 FROM tab2 AS cor0 WHERE NULL <> 21 # Datafusion - Expected - 68 # Datafusion - Expected - 65 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 65 AS col1, + col2 AS col1 FROM tab1 AS cor0 +---- +59 +65 +65 +65 +68 +96 query I rowsort label-6785 SELECT DISTINCT MIN ( - col1 ) FROM tab1 AS cor0 @@ -41956,8 +42369,11 @@ SELECT + 20 + - + col1 + + + col2 + ( + col1 ) * - 34 col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col0, 61 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NULL +---- +0 +61 query II rowsort SELECT col0 + - + col2, 78 AS col2 FROM tab1 AS cor0 @@ -42534,8 +42950,15 @@ SELECT ALL - col0 * + + col1 col0 FROM tab1 AS cor0 # Datafusion - Expected - 3 # Datafusion - Expected - -24 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 + - col0 AS col1, 3 AS col1 FROM tab2 AS cor0 +---- +-17 +-23 +-24 +3 +3 +3 query I rowsort label-7049 SELECT DISTINCT 83 - - COUNT ( * ) - CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT + ( - 11 ) ) AS col1 FROM tab2 AS cor0 @@ -42782,8 +43205,15 @@ SELECT * FROM tab2 WHERE - 57 > NULL # Datafusion - Expected - 85 # Datafusion - Expected - -20 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 20 AS col2, col0 AS col2 FROM tab1 AS cor0 +---- +-20 +-20 +-20 +51 +85 +91 query II rowsort SELECT DISTINCT col2 * + col2 - 57, - ( - - 61 ) AS col0 FROM tab2 cor0 @@ -43244,8 +43674,15 @@ SELECT ALL + - MAX ( - 17 ) col2, 78 * + COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Expected - -5 # Datafusion - Expected - 91 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col2, - col1 AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +51 +85 +91 query II rowsort SELECT DISTINCT + col2 AS col2, col0 AS col1 FROM tab1 AS cor0 @@ -43625,8 +44062,15 @@ SELECT ALL 16 + 83 AS col1 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - -96 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, col1 AS col0 FROM tab1 +---- +-59 +-68 +-96 +14 +47 +5 query I rowsort label-7226 SELECT 17 - - - MIN ( ALL + + col0 ) FROM tab1 @@ -43854,8 +44298,15 @@ SELECT 72 * + col0 col0 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - -81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, col1 AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +1 +21 +81 query II rowsort SELECT DISTINCT - col2, col2 AS col0 FROM tab1 AS cor0 @@ -44796,8 +45247,15 @@ SELECT 52 * + 93 * + ( - COUNT ( * ) ) AS col0 FROM tab0 # Datafusion - Expected - -87 # Datafusion - Expected - 81 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col0, - col0 AS col0 FROM tab0 cor0 +---- +-15 +-87 +-97 +1 +21 +81 query II rowsort SELECT col0, col0 col2 FROM tab0 AS cor0 @@ -45284,8 +45742,15 @@ SELECT DISTINCT col0 AS col1, + col2 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, + col2 AS col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT col0 * - 54 AS col0 FROM tab1 @@ -45856,8 +46321,15 @@ SELECT ALL - col0 FROM tab0 AS cor0 WHERE 86 BETWEEN NULL AND ( + - col1 ) * CAS # Datafusion - Expected - -76 # Datafusion - Expected - -77 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col0, - 76 AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-76 +-76 +-76 +-77 query III rowsort SELECT ALL * FROM tab2 cor0 WHERE - 39 / + - 25 NOT BETWEEN col0 AND + + col2 + + + ( - col0 ) / col2 @@ -45952,8 +46424,9 @@ SELECT DISTINCT - col0 + + 90 FROM tab1 5 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col2" at position 0 and "tab0\.col1 \- \(\- Int64\(5\)\) \- \(\- tab0\.col0\) \* tab0\.col1 \- \(\- tab0\.col0\) \* \(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 80 AS col2, col1 - - + 5 - - col0 * col1 - - col0 * - col0 AS col2 FROM tab0 WHERE NULL IS NOT NULL +---- query I rowsort SELECT ALL 69 + - + 74 FROM tab2 @@ -47896,8 +48369,15 @@ SELECT + col2 - col0 - - 57 AS col0 FROM tab1 # Datafusion - Expected - -83 # Datafusion - Expected - 26 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \- tab1\.col2 AS col2" at position 0 and "Int64\(\-83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 - col2 AS col2, - 83 AS col2 FROM tab1 +---- +-45 +-83 +-83 +-83 +23 +26 query I rowsort SELECT ALL 58 * col2 + - col0 FROM tab2 @@ -47913,8 +48393,15 @@ SELECT ALL 58 * col2 + - col0 FROM tab2 # Datafusion - Expected - 55 # Datafusion - Expected - -94 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \- tab0\.col2 AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 - + + col2 AS col2, 55 AS col2 FROM tab0 +---- +-198 +-20 +-94 +55 +55 +55 query II rowsort SELECT col2 + + col2 AS col1, + 15 AS col2 FROM tab1 @@ -48348,8 +48835,12 @@ SELECT ( 82 ) - + - ( - - 76 ) * COUNT ( ALL + col0 ) AS col2 FROM tab0 # Datafusion - Expected - 4 # Datafusion - Expected - -15 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "Int64\(\-37\) \+ Int64\(61\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 4 AS col2, - 18 + + COUNT ( * ) AS col0, - 37 + ( + 61 ) col2 FROM tab2 +---- +-15 +24 +4 query I rowsort SELECT ALL - col1 + + + col0 FROM tab1 @@ -48643,8 +49134,15 @@ SELECT DISTINCT - MIN ( ALL - + col0 ) AS col2 FROM tab2 # Datafusion - Expected - 77 # Datafusion - Expected - 84 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(18\)\) \+ cor0\.col1 \+ cor0\.col1 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 18 + + ( + col1 ) + + col1 col2, col1 AS col2 FROM tab2 AS cor0 +---- +116 +136 +51 +67 +77 +84 query I rowsort SELECT DISTINCT + col2 * + col1 - - 74 AS col0 FROM tab1 AS cor0 @@ -48987,8 +49485,15 @@ SELECT - col0 + - 31 / col0 / + - col0, - col0 FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, + col0 AS col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT DISTINCT + ( 52 ) AS col2 FROM tab0 WHERE NOT + + 12 * col1 IS NOT NULL @@ -49001,8 +49506,15 @@ SELECT DISTINCT + ( 52 ) AS col2 FROM tab0 WHERE NOT + + 12 * col1 IS NOT NULL # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + col0 ), col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT ALL 1 AS col1 FROM tab2 WHERE NOT NULL IS NULL @@ -49212,8 +49724,15 @@ SELECT ALL MAX ( + col2 ) FROM tab2 # Datafusion - Expected - 88 # Datafusion - Expected - NULL # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(30\) \- \(\- tab1\.col0\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) + 30 - - col0 AS col1, 88 AS col1 FROM tab1 +---- +88 +88 +88 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab1 WHERE - ( col1 ) + + col0 IS NULL @@ -49767,8 +50286,15 @@ SELECT ALL - 27 col1 FROM tab2 # Datafusion - Expected - 75 # Datafusion - Expected - 77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, + col0 AS col2 FROM tab2 +---- +46 +51 +64 +67 +75 +77 query I rowsort label-8237 SELECT + ( COUNT ( * ) ) AS col2 FROM tab0 @@ -50533,8 +51059,15 @@ SELECT - 85 / - col0 + col2 + col1 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 54 # Datafusion - Expected - 86 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ Int64\(5\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + 5 col1, 54 AS col1 FROM tab0 cor0 +---- +26 +54 +54 +54 +6 +86 query I rowsort SELECT DISTINCT - - 90 + - col0 FROM tab2 cor0 @@ -50787,8 +51320,10 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 110d5c903c2b65a29e148c8a54da2d3e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \+ \(\- cor0\.col0\) / \(\- \(\- cor0\.col0\)\) AS col0" at position 1 and "Int64\(87\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 62 * col1, - 20 + - col0 / - - col0 col0, + 87 AS col0 FROM tab0 AS cor0 +---- +9 values hashing to 5c71808dcc459ee582ee31846e12d0ce query I rowsort label-8413 SELECT ALL - 2 * SUM ( col0 ) FROM tab2 @@ -51063,8 +51598,15 @@ NULL # Datafusion - Expected - 0 # Datafusion - Expected - 294 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* \(\- Int64\(\-14\)\) AS col0" at position 0 and "tab0\.col1 \+ \(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * - ( + - 14 ) col0, col1 + - col1 AS col0 FROM tab0 +---- +0 +0 +0 +1134 +14 +294 query I rowsort label-8457 SELECT + MAX ( DISTINCT 66 ) / + 36 FROM tab2 @@ -51177,8 +51719,11 @@ SELECT ALL + + MAX ( ALL + + CAST ( - + col1 AS INTEGER ) ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 99 AS col2, + 34 AS col2 FROM tab2 AS cor0 +---- +34 +99 query I rowsort label-8477 SELECT MAX ( - col0 ) FROM tab2 @@ -51295,8 +51840,15 @@ NULL # Datafusion - Expected - -49 # Datafusion - Expected - -94 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) / \(\- tab0\.col1\) AS col1" at position 0 and "Int64\(\-49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 94 / - col1 AS col1, - 49 AS col1 FROM tab0 +---- +-1 +-4 +-49 +-49 +-49 +-94 query I rowsort label-8494 SELECT ALL + col1 / + CAST ( - + col0 AS INTEGER ) FROM tab2 @@ -51864,8 +52416,15 @@ NULL # Datafusion - Expected - 26 # Datafusion - Expected - 95 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 95 AS col2, + 26 AS col2 FROM tab2 AS cor0 +---- +26 +26 +26 +95 +95 +95 query II rowsort SELECT col2, - col1 AS col1 FROM tab0 AS cor0 @@ -51945,8 +52504,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * + MAX ( ALL + col0 ) AS col0, 86 AS col0 FROM tab2 AS cor0 +---- +225 +86 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 11 - + col1 IS NOT NULL @@ -52233,8 +52795,15 @@ SELECT - MIN ( - 73 ) FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 +---- +23 +40 +58 +NULL +NULL +NULL query I rowsort SELECT ALL ( 10 ) AS col0 FROM tab0 AS cor0 @@ -55044,8 +55613,15 @@ SELECT ALL MIN ( 63 ) FROM tab0 AS cor0 # Datafusion - Expected - 55 # Datafusion - Expected - 75 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, 55 AS col2 FROM tab2 AS cor0 +---- +46 +55 +55 +55 +64 +75 query I rowsort label-9110 SELECT - MAX ( ALL - col1 ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL @@ -55685,8 +56261,15 @@ SELECT ALL + ( - + 64 ) FROM tab0 # Datafusion - Expected - 144 # Datafusion - Expected - 171 # Datafusion - Expected - 159 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \+ tab1\.col0 AS col2" at position 0 and "tab1\.col2 \+ tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 80 + col0 col2, col2 + + col0 AS col2 FROM tab1 +---- +131 +144 +147 +159 +165 +171 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 @@ -55695,8 +56278,15 @@ SELECT + 80 + col0 col2, col2 + + col0 AS col2 FROM tab1 # Datafusion - Expected - 62 # Datafusion - Expected - -39 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 39 AS col1, + 62 AS col1 FROM tab2 +---- +-39 +-39 +-39 +62 +62 +62 query II rowsort label-9217 SELECT - 82 AS col0, + 97 * + + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0 @@ -57068,8 +57658,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT - + col2 > ( NULL ) # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, + col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-9451 SELECT DISTINCT COUNT ( * ) + + - 56 * 14 AS col1 FROM tab1 @@ -58456,8 +59053,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab1 +---- +3 +3 query I rowsort label-9673 SELECT + 16 * - CAST ( + col2 AS INTEGER ) FROM tab1 @@ -58822,8 +59422,15 @@ SELECT DISTINCT + col1 + + + 80 FROM tab1 AS cor0 # Datafusion - Expected - 10 # Datafusion - Expected - 92 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ Int64\(11\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + col1 ) + + 11 AS col1, col2 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL AND ( NULL IS NULL ) +---- +10 +12 +32 +47 +92 +99 query I rowsort SELECT ALL - - 78 AS col1 FROM tab1 cor0 @@ -59897,8 +60504,15 @@ SELECT DISTINCT - ( - col2 ) * - + col0 + - col0 AS col2 FROM tab0 # Datafusion - Expected - -67 # Datafusion - Expected - 69 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \+ tab2\.col0 AS col2" at position 0 and "\(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + + col0 AS col2, - col1 AS col2 FROM tab2 +---- +-51 +-67 +-77 +104 +133 +69 query II rowsort SELECT + ( col2 ) + col0 AS col1, col0 * - + col0 FROM tab0 @@ -60372,8 +60986,15 @@ SELECT * FROM tab0 AS cor0 WHERE + col2 - + col0 <= NULL # Datafusion - Expected - 59 # Datafusion - Expected - 14187251 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \- cor0\.col0 \+ cor0\.col1 \* Int64\(\-26\) \* Int64\(\-29\) \* cor0\.col1 \* cor0\.col2 AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 - col0 + + col1 * + - 26 * - 29 * col1 * col2 AS col1, 59 AS col1 FROM tab1 AS cor0 +---- +1112103 +113259795 +14187251 +59 +59 +59 query I rowsort SELECT DISTINCT + 75 * - col1 + + col1 AS col2 FROM tab1 cor0 diff --git a/data/sqlite/random/aggregates/slt_good_38.slt b/data/sqlite/random/aggregates/slt_good_38.slt index ed644b4..4437940 100644 --- a/data/sqlite/random/aggregates/slt_good_38.slt +++ b/data/sqlite/random/aggregates/slt_good_38.slt @@ -393,8 +393,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 19 AS col0, + COUNT ( * ) * - COUNT ( * ) * + + 79 AS col0 FROM tab2 AS cor0 +---- +-711 +19 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL @@ -403,8 +406,15 @@ SELECT DISTINCT 19 AS col0, + COUNT ( * ) * - COUNT ( * ) * + + 79 AS col0 FROM # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) \- Int64\(\-97\) \* \(\- tab0\.col0\) \* tab0\.col1 \* CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 - - 97 * - + col0 * col1 * CAST ( NULL AS INTEGER ) AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 +---- +NULL +NULL +NULL +NULL +NULL +NULL query I rowsort SELECT col0 - + 29 FROM tab0 AS cor0 @@ -646,8 +656,11 @@ SELECT + - COUNT ( * ) * 54 + ( + + ( + + 64 ) ) * + - COUNT ( DISTINCT 88 ) + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "max\(\(\- cor0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, MAX ( - col2 ) AS col0 FROM tab1 AS cor0 +---- +-59 +3 query I rowsort label-103 SELECT ALL CAST ( col2 AS INTEGER ) col2 FROM tab2 AS cor0 @@ -1062,8 +1075,15 @@ SELECT ALL - MAX ( col2 ) * + - 29 AS col0 FROM tab1 # Datafusion - Expected - 5 # Datafusion - Expected - -91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col0, col1 col0 FROM tab1 +---- +-51 +-85 +-91 +14 +47 +5 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT - 21 BETWEEN - 73 AND NULL @@ -2258,8 +2278,11 @@ SELECT col2 * + col1 * - ( + col1 ) * col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 69 AS col2, COUNT ( * ) AS col2 FROM tab1 +---- +3 +69 query I rowsort SELECT col1 * - + col0 AS col1 FROM tab0 @@ -2295,8 +2318,15 @@ NULL # Datafusion - Expected - 68 # Datafusion - Expected - -52 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 52 AS col1, col2 AS col1 FROM tab1 +---- +-52 +-52 +-52 +59 +68 +96 query III rowsort SELECT ALL * FROM tab1 WHERE ( NOT ( col2 / - 41 ) = + 43 * col2 + col1 ) @@ -2727,8 +2757,15 @@ SELECT ALL 75 * - - col0 AS col0 FROM tab1 # Datafusion - Expected - 142 # Datafusion - Expected - -85 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col2" at position 0 and "tab2\.col0 \- \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 85 AS col2, col0 - - col1 AS col2 FROM tab2 +---- +-85 +-85 +-85 +141 +142 +97 query I rowsort label-449 SELECT COUNT ( * ) * + SUM ( ALL + - 86 ) AS col0 FROM tab1 @@ -2904,8 +2941,11 @@ SELECT DISTINCT - - col0 - - - 86 + - 74 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(DISTINCT \(\- Int64\(54\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, + COUNT ( DISTINCT - + 54 ) AS col0 FROM tab1 AS cor0 +---- +1 +3 query I rowsort label-477 SELECT DISTINCT - - MIN ( - + col1 ) AS col0 FROM tab1 AS cor0 @@ -3618,8 +3658,15 @@ SELECT + col0 col0, col2 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 290836 # Datafusion - Expected - 96 # Datafusion - Expected - 68544 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col2\) \* \(\- cor0\.col0\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, - col2 * - col0 * + col1 AS col0 FROM tab1 AS cor0 +---- +25075 +290836 +59 +68 +68544 +96 query II rowsort SELECT ALL - col1 AS col1, + col2 + - col2 FROM tab1 AS cor0 @@ -4198,8 +4245,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) * - 34 + - 15 AS col0, + 45 AS col0 FROM tab1 cor0 +---- +45 +87 query I rowsort SELECT ALL - 52 * - 62 - + 8 * + 75 AS col1 FROM tab0 AS cor0 @@ -4348,8 +4398,15 @@ SELECT ALL - 77 FROM tab0 cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col2, col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT - ( + 20 ) AS col1 FROM tab1 @@ -4823,8 +4880,15 @@ SELECT DISTINCT 53 FROM tab1 AS cor0 WHERE NOT ( col2 * 18 - - 83 ) IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, + col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT + + 98 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL @@ -5125,8 +5189,15 @@ SELECT DISTINCT 53 - - - 6 FROM tab2 # Datafusion - Expected - -21858708 # Datafusion - Expected - 77 # Datafusion - Expected - -12615656 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) / Int64\(34\) \+ \(\- \(\- tab2\.col1\)\) AS col1" at position 0 and "tab2\.col1 \* tab2\.col0 \* tab2\.col2 \* \(\- tab2\.col0\) \- Int64\(16\) \+ tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 / + 34 + - - col1 AS col1, + col1 * + col0 * + col2 * - col0 - + 16 + col2 AS col1 FROM tab2 +---- +-12615656 +-21858708 +-2482061 +51 +67 +77 query I rowsort label-844 SELECT + + 3 + + + COUNT ( * ) AS col1 FROM tab2 cor0 @@ -5357,8 +5428,15 @@ NULL # Datafusion - Expected - 15 # Datafusion - Expected - 33 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ Int64\(\-48\) AS col0" at position 0 and "Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + - 48 AS col0, 15 AS col0 FROM tab0 AS cor0 +---- +-27 +-47 +15 +15 +15 +33 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -5393,8 +5471,11 @@ SELECT ALL - - 56 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 64 AS col1 FROM tab1 AS cor0 +---- +3 +64 query I rowsort SELECT ( + - col2 ) FROM tab2 AS cor0 @@ -6264,8 +6345,15 @@ SELECT DISTINCT - COUNT ( - 90 ) / - 19 FROM tab0 AS cor0 # Datafusion - Expected - 9 # Datafusion - Expected - 77 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, 9 AS col0 FROM tab2 +---- +51 +67 +77 +9 +9 +9 query I rowsort SELECT + col1 + - - col0 + + col2 + + col1 + - - col2 FROM tab2 WHERE NOT - - 49 + - 60 IS NULL @@ -6689,8 +6777,15 @@ SELECT DISTINCT ( 85 ) FROM tab1 AS cor0 # Datafusion - Expected - -7569 # Datafusion - Expected - -97 # Datafusion - Expected - -9409 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col0 \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, + col0 * + - col0 AS col2 FROM tab0 cor0 +---- +-15 +-225 +-7569 +-87 +-9409 +-97 query I rowsort SELECT + + col1 * - col0 - - col0 FROM tab0 AS cor0 @@ -6858,8 +6953,11 @@ SELECT + MAX ( DISTINCT + + ( + col2 ) ) AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 119 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(tab0\.col2\) \+ Int64\(20\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MAX ( + col2 ) + + 20 AS col0, 50 AS col0 FROM tab0 +---- +119 +50 query I rowsort SELECT ALL - + col2 - + col0 AS col0 FROM tab2 AS cor0 @@ -7044,8 +7142,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \+ \(\- sum\(Int64\(\-55\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 24 AS col1, COUNT ( * ) + - + SUM ( - 55 ) AS col1 FROM tab1 cor0 +---- +-24 +168 query II rowsort label-1157 SELECT DISTINCT 58 * + + CAST ( 85 AS INTEGER ) AS col1, + col1 + col1 FROM tab1 @@ -7207,8 +7308,15 @@ SELECT MIN ( DISTINCT - 22 ) + 26 FROM tab2 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col2 AS Int32\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( col2 AS INTEGER ) AS col1, col2 AS col1 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT DISTINCT 16 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL @@ -8259,8 +8367,15 @@ SELECT DISTINCT - col1 + ( + 55 ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 99 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 99 AS col0, + col2 AS col0 FROM tab1 AS cor0 +---- +59 +68 +96 +99 +99 +99 query I rowsort label-1368 SELECT ALL COUNT ( ALL - 74 ) FROM tab1 AS cor0 @@ -8281,8 +8396,10 @@ SELECT DISTINCT - col0 + + 78 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a161a999956fc0520bb8c0a2ecc75ebd -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col0 / cor0\.col1 / Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - col0 AS col2, + col0 / col1 / - 15 col2, + col1 AS col1 FROM tab2 AS cor0 +---- +9 values hashing to 44bd23092ff425f81d58920fa1bd9ac1 query II rowsort SELECT DISTINCT - col0 col1, col0 + - col0 FROM tab1 AS cor0 @@ -9491,8 +9608,11 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + + col0 + col1 IN ( col0, co # Datafusion - Datafusion expected results: # Datafusion - Expected - 201 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(67\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-89\)\) \* sum\(DISTINCT CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( 67 ) AS col2, + COUNT ( * ) * - - 89 * SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0 +---- +201 +NULL query I rowsort SELECT DISTINCT 54 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 @@ -9823,8 +9943,15 @@ SELECT + + 72 + - ( - MAX ( ALL 83 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 58 # Datafusion - Expected - -75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, 58 col2 FROM tab2 +---- +-46 +-64 +-75 +58 +58 +58 query III rowsort SELECT * FROM tab2 WHERE NOT ( - - col1 ) BETWEEN + ( + col1 ) * + col0 + + - 10 * - col0 AND NULL @@ -11216,8 +11343,11 @@ SELECT ALL - col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - -11 -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\(\-11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MAX ( - 52 ) AS col2, - 11 AS col2 FROM tab2 +---- +-11 +-52 query III rowsort label-1864 SELECT DISTINCT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IN ( + col2 ) @@ -11759,8 +11889,11 @@ SELECT 57 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 94 AS col0, + 46 AS col0 FROM tab1 AS cor0 +---- +-94 +46 query I rowsort label-1951 SELECT MIN ( DISTINCT - + 86 ) FROM tab2 AS cor0 @@ -12738,8 +12871,15 @@ SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) FROM tab0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0, col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT DISTINCT + col0 * - + 47 AS col0 FROM tab1 AS cor0 @@ -12816,8 +12956,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 7 * + - col0 IS NOT NULL # Datafusion - Expected - 50 # Datafusion - Expected - 72 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 col2, 50 col2 FROM tab2 +---- +50 +50 +50 +72 +72 +72 query III rowsort label-2122 SELECT ALL * FROM tab2 WHERE NOT + 56 + - CAST ( NULL AS INTEGER ) IS NULL @@ -13199,8 +13346,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 82 AS col0, 8 * - COUNT ( * ) * + ( + + 5 ) AS col0 FROM tab2 AS cor0 +---- +-120 +82 query I rowsort SELECT + ( + + 46 ) FROM tab2 cor0 @@ -14980,8 +15130,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( - 60 ) AS col0, - COUNT ( * ) AS col0 FROM tab2 cor0 +---- +-3 +3 query I rowsort label-2474 SELECT + MAX ( 73 ) + + - SUM ( - + col0 ) AS col0 FROM tab0 AS cor0 @@ -15418,8 +15571,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 58 AS col1, + 68 * - COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +-204 +58 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -15578,8 +15734,15 @@ NULL # Datafusion - Expected - 0 # Datafusion - Expected - -26 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) AS col2" at position 0 and "Int64\(0\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 26 col2, 0 * + col2 col2 FROM tab0 AS cor0 +---- +-26 +-26 +-26 +0 +0 +0 query II rowsort SELECT + col2, col0 FROM tab2 cor0 @@ -16164,8 +16327,11 @@ SELECT ALL - 49 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \* Int64\(\-4\) \- \(\- count\(cor0\.col0\)\) \+ min\(DISTINCT cor0\.col1\) / Int64\(48\) AS col1" at position 0 and "Int64\(63\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 21 * - 4 - - COUNT ( col0 ) + + MIN ( DISTINCT ( + col1 ) ) / 48 AS col1, + 63 / + COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +21 +87 query I rowsort label-2662 SELECT - SUM ( DISTINCT + col2 ) FROM tab2 @@ -16892,8 +17058,15 @@ SELECT - ( + + 64 ) col2 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, col2 col0 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT col0 * - + col2 col2 FROM tab1 @@ -17006,8 +17179,15 @@ SELECT DISTINCT + - col0 AS col1 FROM tab1 WHERE 43 * 0 * + - ( - + 78 ) IS NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, + col0 AS col1 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query II rowsort SELECT ALL 94 AS col1, ( + + col1 ) AS col0 FROM tab0 @@ -17869,8 +18049,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - MAX ( + - 23 ) AS col2, - COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +-3 +23 query II rowsort label-2942 SELECT + + 79 AS col2, - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL OR NULL IS NOT NULL @@ -18462,8 +18645,15 @@ SELECT + 89 * col1 AS col0 FROM tab1 # Datafusion - Expected - 92 # Datafusion - Expected - -77 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - col1 ) AS col2, 92 AS col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +92 +92 +92 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 18 * - ( 39 ) IS NOT NULL @@ -20616,8 +20806,15 @@ SELECT ALL 24 col2 FROM tab0 AS cor0 # Datafusion - Expected - 93 # Datafusion - Expected - 9996 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* \(\- tab1\.col0\) \* \(\- tab1\.col1\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 * + - col0 * - col1 AS col1, 93 col1 FROM tab1 +---- +201019 +2125 +93 +93 +93 +9996 query I rowsort label-3403 SELECT ALL 33 * - SUM ( + 65 ) AS col0 FROM tab1 @@ -20705,8 +20902,15 @@ SELECT - col0, col1 AS col1 FROM tab2 # Datafusion - Expected - 0 # Datafusion - Expected - 91 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col1 / cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col2, + col1 / col0 AS col2 FROM tab1 AS cor0 +---- +0 +0 +0 +51 +85 +91 query I rowsort SELECT DISTINCT - - col1 * 86 FROM tab0 AS cor0 @@ -21168,8 +21372,11 @@ SELECT DISTINCT - MAX ( - col0 ) AS col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, 30 AS col0 FROM tab0 +---- +3 +30 query III rowsort SELECT DISTINCT * FROM tab0 WHERE - col0 = NULL @@ -21285,8 +21492,15 @@ SELECT ALL + COUNT ( * ) + + + 55 col0 FROM tab2 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - -91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 col1, + col0 AS col1 FROM tab1 cor0 +---- +-51 +-85 +-91 +51 +85 +91 query I rowsort SELECT + - 51 col0 FROM tab0 AS cor0 @@ -21507,8 +21721,11 @@ SELECT ALL 39 + 90 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 87 AS col2, + 26 AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1 +---- +-87 +26 query I rowsort label-3548 SELECT DISTINCT - CAST ( + - 49 AS INTEGER ) FROM tab0 cor0 @@ -22645,8 +22862,15 @@ SELECT - col2 * + - col0 * + ( - 88 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 110 # Datafusion - Expected - 81 # Datafusion - Expected - 517 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "Int64\(\-11\) \* \(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 col2, - 11 * ( + - col2 ) AS col2 FROM tab0 +---- +1 +1089 +110 +21 +517 +81 query I rowsort SELECT DISTINCT + 72 * - col2 FROM tab2 @@ -23489,8 +23713,15 @@ SELECT DISTINCT + + MAX ( - - col0 ) - + + 13 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - -5 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 col1, col2 AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +59 +68 +96 query I rowsort label-3880 SELECT ALL col1 * - - col1 col1 FROM tab2 WHERE NOT ( ( NULL ) = ( - - CAST ( NULL AS INTEGER ) + + 56 ) ) @@ -24243,8 +24474,15 @@ SELECT - ( + col2 ) * 1 + col0 FROM tab1 AS cor0 # Datafusion - Expected - 14 # Datafusion - Expected - 9520 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* Int64\(56\) \+ \(\- \(\- tab1\.col0\)\) \* Int64\(56\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * + 56 + - - col0 * + 56 AS col0, + col1 AS col0 FROM tab1 +---- +10192 +14 +47 +5 +5712 +9520 query I rowsort SELECT + ( + 75 ) FROM tab0 @@ -24592,8 +24830,9 @@ SELECT ALL ( + - col2 ) * 27 * - + col2 FROM tab2 90828 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \+ cor0\.col1 \- Int64\(38\) \+ Int64\(83\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col0 + + col1 - 38 + 83 AS col1, 44 AS col1 FROM tab2 AS cor0 WHERE col0 * - - col0 * + 68 IS NULL +---- query I rowsort label-4059 SELECT COUNT ( * ) * - MIN ( 51 ) AS col2 FROM tab1 AS cor0 @@ -24750,8 +24989,15 @@ SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( + - col1 < NULL ) # Datafusion - Expected - 59 # Datafusion - Expected - 37 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 AS col2, 59 AS col2 FROM tab2 AS cor0 +---- +37 +37 +37 +59 +59 +59 query I rowsort SELECT DISTINCT - - col2 * col2 * + 79 * - 43 AS col1 FROM tab1 AS cor0 @@ -26222,8 +26468,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( col2 ) AS col2, + COUNT ( * ) / + 51 AS col2 FROM tab2 AS cor0 +---- +-3 +0 query II rowsort SELECT ALL - - col0, col2 FROM tab1 AS cor0 @@ -26863,8 +27112,15 @@ SELECT ALL * FROM tab1 WHERE 23 IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - 16 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "CAST\(NULL AS Float64\) \* tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 16 col2, CAST ( NULL AS FLOAT8 ) * col1 AS col2 FROM tab0 +---- +16 +16 +16 +NULL +NULL +NULL query I rowsort SELECT - ( - - col1 ) AS col2 FROM tab2 @@ -27692,8 +27948,15 @@ SELECT ALL 43 * col1 + - 34 AS col1 FROM tab0 # Datafusion - Expected - 43 # Datafusion - Expected - -3059 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \+ Int64\(53\) \* Int64\(\-59\) AS col0" at position 0 and "CAST\(\(\- \(\- Int64\(43\)\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 + + + 53 * + - 59 AS col0, CAST ( - - ( + 43 ) AS INTEGER ) AS col0 FROM tab0 +---- +-3059 +-3059 +-3059 +43 +43 +43 query I rowsort label-4569 SELECT - - COUNT ( DISTINCT + col2 ) FROM tab2 AS cor0 @@ -27830,8 +28093,15 @@ SELECT DISTINCT col2, 37 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 +---- +51 +67 +77 +NULL +NULL +NULL query I rowsort label-4591 SELECT DISTINCT + COUNT ( + col0 ) * - 94 FROM tab0 AS cor0 @@ -27960,8 +28230,15 @@ SELECT DISTINCT MIN ( - 65 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 AS col0 FROM tab2 cor0 +---- +46 +46 +64 +64 +75 +75 query III rowsort label-4612 SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( + + 90 AS INTEGER ) * + col2 / + - col2 + col2 NOT BETWEEN + - 78 AND + 23 * + 73 + - 55 * + + col1 * - 20 * + ( 95 ) @@ -28566,8 +28843,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( * ) AS col1, - 43 AS col1 FROM tab0 AS cor0 +---- +-43 +3 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT + 38 IS NULL @@ -28925,8 +29205,15 @@ SELECT DISTINCT - - MIN ( DISTINCT + col0 ) FROM tab0 AS cor0 # Datafusion - Expected - 58 # Datafusion - Expected - 539 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(7\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + 7 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +23 +357 +40 +469 +539 +58 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) NOT IN ( col1, 69 * + 51, - 58, + - col1 ) @@ -29119,8 +29406,15 @@ NULL # Datafusion - Expected - 77 # Datafusion - Expected - -81 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "\(\- cor0\.col2\) \+ \(\- \(\- cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col2, - col2 + - - col0 AS col2 FROM tab0 AS cor0 +---- +-1 +-2 +-21 +-32 +-81 +77 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT NULL = + 32 @@ -29323,8 +29617,15 @@ SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE NULL = + col0 # Datafusion - Expected - -89 # Datafusion - Expected - 5 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col2, - 89 AS col2 FROM tab1 +---- +-89 +-89 +-89 +14 +47 +5 query I rowsort label-4839 SELECT MIN ( - - 26 ) AS col1 FROM tab0 AS cor0 @@ -30538,8 +30839,15 @@ SELECT DISTINCT + 48 - ( + 82 ) + - - col1 FROM tab2 # Datafusion - Expected - 295 # Datafusion - Expected - 88 # Datafusion - Expected - 3196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- Int64\(3\) AS col0" at position 0 and "cor0\.col2 \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 - 3 AS col0, + col2 * + col1 AS col0 FROM tab1 AS cor0 +---- +1344 +295 +3196 +48 +82 +88 query I rowsort SELECT ALL + col0 - + col2 * + - 46 * - + col1 AS col2 FROM tab1 AS cor0 @@ -30574,8 +30882,11 @@ SELECT 47 + + col2, + 2 - - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col0" at position 0 and "Int64\(\-82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 23 AS col0, - 82 AS col0 FROM tab0 cor0 +---- +-82 +23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 @@ -30584,8 +30895,15 @@ SELECT DISTINCT + 23 AS col0, - 82 AS col0 FROM tab0 cor0 # Datafusion - Expected - -2074 # Datafusion - Expected - 58 # Datafusion - Expected - -2074 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(34\) \* Int64\(\-61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, 34 * - 61 AS col0 FROM tab2 AS cor0 +---- +-2074 +-2074 +-2074 +23 +40 +58 query I rowsort SELECT - ( - - 32 ) AS col1 FROM tab0 AS cor0 @@ -30799,8 +31117,11 @@ SELECT ALL - col0, ( col2 ) + - col2 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "min\(DISTINCT \(\- tab0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col2, MIN ( DISTINCT - col2 ) AS col2 FROM tab0 +---- +-99 +3 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -31458,7 +31779,7 @@ SELECT * FROM tab2 AS cor0 WHERE ( 57 ) * + col0 * + col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 76a5c231e86318e45766eaa292275691 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- cor0\.col1 \+ \(\- Int64\(7\)\) AS col2" at position 0 and "cor0\.col0 \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Schema error: Schema contains qualified field name cor0\.col2 and unqualified field name col2 which would be ambiguous SELECT DISTINCT + col1 - + col1 + - + 7 AS col2, col0 * + CAST ( NULL AS INTEGER ) AS col2, col2 AS col2 FROM tab2 AS cor0 query I rowsort @@ -31570,8 +31891,11 @@ SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN ( NULL ) AN # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( col1 * + 4 * 66 ) IS NOT NULL +---- +0 +92 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT 53 + + col1 IS NOT NULL @@ -31618,8 +31942,15 @@ SELECT + 81 col1 FROM tab1 AS cor0 # Datafusion - Expected - -6324 # Datafusion - Expected - 0 # Datafusion - Expected - -8928 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col2" at position 0 and "Int64\(\-93\) \* tab1\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 AS col2, - 93 * + col2 AS col2 FROM tab1 +---- +-5487 +-6324 +-8928 +0 +0 +0 query III rowsort SELECT * FROM tab0 WHERE NULL NOT IN ( 69 ) @@ -32122,8 +32453,10 @@ SELECT DISTINCT + col1 * - 99 + 25 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to d30a9dc9ff7276eb840e65ca878af565 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ( - col1 ) AS col0, 89 AS col0, + 4 AS col2 FROM tab2 cor0 +---- +9 values hashing to 5895c586755428a89fe927e03b1fcc20 query I rowsort SELECT ALL 82 * - col2 AS col1 FROM tab0 AS cor0 @@ -32483,8 +32816,15 @@ SELECT DISTINCT col1 * - - CAST ( - + col2 AS INTEGER ) FROM tab2 # Datafusion - Expected - 40 # Datafusion - Expected - -5025 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* \(\- tab2\.col0\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 * - col0 col1, col2 col1 FROM tab2 +---- +-2346 +-4928 +-5025 +23 +40 +58 query III rowsort SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND ( 75 * col0 * + + col0 ) @@ -33195,8 +33535,15 @@ SELECT COUNT ( * ) AS col2, - 96 + + MAX ( ALL col1 ) AS col0, COUNT ( * ) AS co # Datafusion - Expected - 47 # Datafusion - Expected - 45 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 AS col1, col2 AS col1 FROM tab0 +---- +10 +45 +45 +45 +47 +99 query I rowsort SELECT DISTINCT - col2 * - + col1 AS col2 FROM tab0 @@ -33433,8 +33780,15 @@ SELECT ALL + 83 col1 FROM tab0 AS cor0 # Datafusion - Expected - -32 # Datafusion - Expected - 63 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "\(\- cor0\.col2\) \+ \(\- cor0\.col0\) \+ \(\- \(\- cor0\.col0\)\) \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 63 AS col0, - col2 + - col0 + - - col0 + + col0 AS col0 FROM tab0 AS cor0 +---- +-2 +-32 +63 +63 +63 +77 query III rowsort SELECT ALL * FROM tab1 WHERE NOT ( + 83 IS NOT NULL ) @@ -33470,8 +33824,9 @@ SELECT + MIN ( DISTINCT - 19 ) * + 16 FROM tab1 AS cor0 -304 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col1 \* Int64\(3\) AS col0" at position 0 and "cor0\.col2 \* cor0\.col1 \+ \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 + col1 * 3 AS col0, col2 * col1 + + - ( + + col1 ) col0 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL +---- query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT col2 + col2 IS NULL @@ -34248,8 +34603,15 @@ SELECT + + col2 * 10 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col2, + col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-5658 SELECT - 48 / - 61 AS col1 FROM tab0 AS cor0 @@ -34409,8 +34771,15 @@ SELECT ALL + - col0, col0 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 28 # Datafusion - Expected - 91 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 col1, 28 AS col1 FROM tab1 AS cor0 +---- +28 +28 +28 +51 +85 +91 query II rowsort label-5681 SELECT DISTINCT - - COUNT ( * ) AS col2, + 84 FROM tab1 AS cor0 @@ -35605,8 +35974,10 @@ SELECT * FROM tab2 WHERE NOT + 10 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 550a07b91d8084061cb48c5e38959aa1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 1 and "\(\- cor0\.col2\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 66 AS col0, + col1 AS col2, - col2 AS col2 FROM tab0 cor0 +---- +9 values hashing to 662940ae4c0ebc6a9bd8a307b6c305a4 query II rowsort SELECT DISTINCT 57 + col2, 95 * 68 AS col1 FROM tab2 cor0 @@ -35961,8 +36332,15 @@ SELECT DISTINCT + COUNT ( * ) - + + 55 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -44 # Datafusion - Expected - 91 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(\-49\) \+ \(\- \(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col0 AS col2, - 49 + - - col1 AS col2 FROM tab1 cor0 +---- +-2 +-35 +-44 +51 +85 +91 query I rowsort label-5939 SELECT 44 + + 78 / col0 FROM tab1 AS cor0 @@ -36511,8 +36889,11 @@ SELECT col0 AS col2, col2 - + - ( - + 7 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, + 37 AS col0 FROM tab1 WHERE NOT 50 >= + + col1 +---- +0 +37 query I rowsort label-6030 SELECT DISTINCT 37 * + MIN ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1 @@ -36535,8 +36916,15 @@ SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) IN ( - 96 + + - ( - - 90 ), + col0, - # Datafusion - Expected - -68 # Datafusion - Expected - -96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\)" at position 0 and "\(\- tab1\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2, - col2 FROM tab1 +---- +-59 +-59 +-68 +-68 +-96 +-96 query I rowsort SELECT ALL col2 + - - ( - col0 ) FROM tab0 AS cor0 WHERE NOT NULL <= NULL @@ -36697,8 +37085,15 @@ SELECT DISTINCT - + 64 * - col0 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2, col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT - ( - - col1 ) AS col2 FROM tab0 AS cor0 @@ -37999,8 +38394,15 @@ SELECT ALL 26 AS col0 FROM tab0 AS cor0 WHERE NOT ( + - CAST ( NULL AS INTEGER ) # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, + col2 AS col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT ALL + ( + - ( + + col0 ) ) * + col2 FROM tab0 AS cor0 @@ -38246,8 +38648,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ), + COUNT ( * ) FROM tab0 AS cor0 +---- +3 +3 query I rowsort label-6313 SELECT - MAX ( col2 ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 @@ -38382,8 +38787,11 @@ SELECT ALL col0, - col1 FROM tab1 # 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 "\(\- max\(\(\- cor0\.col1\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 36 AS col1, - MAX ( ALL - col1 ) AS col1 FROM tab0 AS cor0 +---- +1 +36 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -38547,8 +38955,15 @@ SELECT + 4 col1 FROM tab2 AS cor0 WHERE - col2 * - col2 + - col0 BETWEEN NULL AN # Datafusion - Expected - 75 # Datafusion - Expected - -81 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, 75 AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +75 +75 +75 query I rowsort label-6361 SELECT + - 83 * - MIN ( + + col2 ) FROM tab0 AS cor0 @@ -38738,8 +39153,15 @@ SELECT + 63 + 30 col1 FROM tab1 # Datafusion - Expected - 89 # Datafusion - Expected - 31 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ tab0\.col1 AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 + + col1 AS col2, + 89 AS col2 FROM tab0 +---- +100 +128 +31 +89 +89 +89 query I rowsort label-6392 SELECT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT ( NOT - col0 IS NULL ) @@ -39454,8 +39876,11 @@ SELECT DISTINCT * FROM tab0 WHERE - 87 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 34 AS col0, COUNT ( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) +---- +-34 +9 query I rowsort label-6510 SELECT + COUNT ( * ) FROM tab2 WHERE ( NULL ) IS NULL @@ -39525,8 +39950,15 @@ SELECT * FROM tab0 WHERE NOT - col2 - - + 48 IS NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 col0, + col0 AS col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query II rowsort label-6522 SELECT DISTINCT col2, CAST ( NULL AS INTEGER ) * + col2 col0 FROM tab2 @@ -39666,8 +40098,11 @@ SELECT + COUNT ( * ) + - 39 FROM tab1 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- Int64\(\-36\)\)\) AS col2" at position 0 and "min\(DISTINCT \(\- tab2\.col2\)\) \+ Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( ALL - ( - 36 ) ) AS col2, + MIN ( DISTINCT - col2 ) + 57 AS col2 FROM tab2 +---- +-1 +3 query I rowsort SELECT ALL + ( - 2 ) AS col1 FROM tab1 @@ -39956,8 +40391,15 @@ SELECT - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NULL = - col0 / + 49 + + + ( C # Datafusion - Expected - -43 # Datafusion - Expected - 490 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(49\) AS col0" at position 0 and "Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * 49 AS col0, + ( - 43 ) col0 FROM tab0 AS cor0 +---- +-43 +-43 +-43 +2303 +4851 +490 query I rowsort SELECT DISTINCT - 24 AS col0 FROM tab0 WHERE + ( - col0 ) >= NULL @@ -41052,8 +41494,9 @@ SELECT * FROM tab0 WHERE NOT - - col1 - col1 NOT BETWEEN + col0 + - 8 AND NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(20\)\) / Int64\(71\) / cor0\.col2 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 20 / + + 71 / col2 AS col2, col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL +---- query I rowsort label-6780 SELECT ALL COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL @@ -41119,8 +41562,15 @@ SELECT col0 col2 FROM tab2 AS cor0 WHERE NOT + 27 IS NULL # Datafusion - Expected - 65 # Datafusion - Expected - -12 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 12 AS col0, + 65 AS col0 FROM tab0 AS cor0 +---- +-12 +-12 +-12 +65 +65 +65 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 66 > - ( 71 ) - - col0 @@ -41676,8 +42126,11 @@ SELECT + COUNT ( * ) AS col1, + COUNT ( * ) AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(85\) \+ \(\- Int64\(\-20\)\) / \(\- CAST\(NULL AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, 85 + - - 20 / - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + 45 AS col0 FROM tab1 +---- +-3 +NULL query I rowsort label-6885 SELECT DISTINCT - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1 @@ -41976,8 +42429,15 @@ SELECT ALL * FROM tab2 WHERE NOT 65 * - + 62 IS NOT NULL # Datafusion - Expected - -68 # Datafusion - Expected - 83 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col2" at position 0 and "CAST\(\(\- tab1\.col2\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 83 AS col2, CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 +---- +-59 +-68 +-96 +83 +83 +83 query II rowsort SELECT ALL col1, 52 FROM tab1 @@ -42180,8 +42640,15 @@ SELECT ALL - COUNT ( * ) + COUNT ( + ( 22 ) ) AS col0 FROM tab2 # Datafusion - Expected - 196 # Datafusion - Expected - 2682 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* Int64\(40\) \- \(\- \(\- tab0\.col0\)\) / Int64\(\-34\) AS col1" at position 0 and "tab0\.col0 \+ tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 67 * 40 - - - col0 / - 34 AS col1, + col0 + + col2 AS col1 FROM tab0 +---- +196 +2680 +2682 +2682 +62 +97 query I rowsort label-6960 SELECT DISTINCT + 91 + - COUNT ( * ) AS col0 FROM tab2 @@ -42363,8 +42830,10 @@ SELECT ALL - + col0 + + + 95, col1 AS col1 FROM tab0 cor0 WHERE - col0 > NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 275a9f1b17c6e968eba4dc5b75509056 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT col0 col0, col0, - col1 FROM tab1 AS cor0 +---- +9 values hashing to bf09b3872cc4b7779cb8d266acf8aa59 query I rowsort label-6990 SELECT DISTINCT COUNT ( + 10 ) + - 40 FROM tab2 @@ -42480,8 +42949,10 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 66d62c25c3606de48ff93678e366722d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 \* cor0\.col1 \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT ( col0 ) AS col1, col2 * col1 * + - col1 AS col1, - - col1 AS col1 FROM tab2 AS cor0 +---- +9 values hashing to c9398fca3f419d63cacffbbd929c800c query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + + col2 * + + 6 IS NOT NULL @@ -42665,8 +43136,11 @@ SELECT + col2 - + col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND col2 * - col1 + # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 53 AS col1 FROM tab1 +---- +3 +53 query II rowsort SELECT ALL - 50, - 10 AS col1 FROM tab1 @@ -42917,8 +43391,11 @@ SELECT DISTINCT - CAST ( + 68 AS INTEGER ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) col0, + 97 AS col0 FROM tab1 AS cor0 +---- +3 +97 query I rowsort label-7078 SELECT + COUNT ( ALL - col2 ) FROM tab1 cor0 WHERE NOT ( NOT ( 97 ) + + 68 IS NOT NULL ) @@ -43060,8 +43537,15 @@ SELECT * FROM tab0 AS cor0 WHERE col2 / + + col1 + 27 + - CAST ( ( - + 86 ) AS I # Datafusion - Expected - 21 # Datafusion - Expected - 9448 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ cor0\.col0 \* cor0\.col0 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 39 + col0 * + col0 AS col0, + col1 col0 FROM tab0 AS cor0 +---- +1 +21 +264 +7608 +81 +9448 query I rowsort label-7101 SELECT ALL + COUNT ( * ) * - - ( + COUNT ( * ) ) FROM tab0 AS cor0 @@ -44600,8 +45084,11 @@ SELECT DISTINCT col2 + 97 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(90\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MAX ( 90 ) AS col1, COUNT ( * ) col1 FROM tab2 AS cor0 +---- +3 +90 query III rowsort SELECT * FROM tab2 cor0 WHERE col1 * + col0 <> NULL @@ -45054,8 +45541,11 @@ SELECT DISTINCT - 77 - ( - col0 ) + + col1 AS col0, 14 + - ( + ( + col1 ) ) AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, + 70 AS col2 FROM tab1 +---- +3 +70 query I rowsort SELECT + + col2 + - col2 col0 FROM tab2 AS cor0 @@ -45071,8 +45561,11 @@ SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <= + - 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) col1, 22 AS col1 FROM tab1 AS cor0 WHERE NULL < NULL +---- +0 +22 query II rowsort label-7448 SELECT ALL col0 / - 48, - 30 col2 FROM tab2 AS cor0 @@ -45710,8 +46203,15 @@ SELECT DISTINCT + SUM ( ALL + + 80 ) AS col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - -75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col0 col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +NULL +NULL +NULL query II rowsort label-7560 SELECT + + COUNT ( * ) col1, + COUNT ( * ) FROM tab2 AS cor0 @@ -45881,8 +46381,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT 81 * + col2 IS NULL # Datafusion - Expected - 20 # Datafusion - Expected - 5 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, + 20 col0 FROM tab1 AS cor0 +---- +14 +20 +20 +20 +47 +5 query I rowsort label-7589 SELECT ALL - col0 / + - col2 FROM tab2 AS cor0 WHERE ( col0 / - col0 ) IS NOT NULL @@ -46120,8 +46627,11 @@ SELECT COUNT ( ALL - col0 ) AS col2 FROM tab0 WHERE NOT col1 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) col2, 6 AS col2 FROM tab1 +---- +3 +6 query I rowsort SELECT DISTINCT + 35 FROM tab0 WHERE col0 / + col0 + + - col2 + - + col0 > ( - - col0 ) @@ -46662,8 +47172,15 @@ SELECT 2 AS col2 FROM tab1 AS cor0 WHERE NOT 3 IS NULL # Datafusion - Expected - -47 # Datafusion - Expected - -99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "\(\- cor0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2, - col2 FROM tab0 AS cor0 +---- +-10 +-10 +-47 +-47 +-99 +-99 query I rowsort label-7725 SELECT + 40 * ( 43 ) + COUNT ( * ) FROM tab0 AS cor0 @@ -46956,8 +47473,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT - col0 IN ( + 43 ) # Datafusion - Expected - 5 # Datafusion - Expected - 1 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 1 AS col1, + 5 col1 FROM tab2 +---- +1 +1 +1 +5 +5 +5 query I rowsort SELECT - 44 * - - col2 FROM tab0 AS cor0 WHERE ( col0 + + col1 ) IS NOT NULL @@ -47627,8 +48151,15 @@ SELECT * FROM tab2 AS cor0 WHERE 87 * + col1 IS NOT NULL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, col1 FROM tab0 AS cor0 WHERE NULL IS NULL +---- +1 +1 +21 +21 +81 +81 query I rowsort label-7883 SELECT - COUNT ( ALL - col1 ) FROM tab1 AS cor0 @@ -47733,8 +48264,11 @@ SELECT ALL - COUNT ( * ) - 63 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, 31 AS col0 FROM tab1 +---- +3 +31 query I rowsort SELECT DISTINCT 43 * + 8 * - 53 AS col2 FROM tab1 @@ -47798,8 +48332,15 @@ SELECT + 28 * + col2 FROM tab2 cor0 # Datafusion - Expected - -6188 # Datafusion - Expected - -5 # Datafusion - Expected - -5015 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col2, col0 * - col2 AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-4896 +-5 +-5015 +-6188 query I rowsort SELECT - col1 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL @@ -48818,8 +49359,15 @@ SELECT DISTINCT 52 * + - col1 col1 FROM tab1 WHERE + col2 * + - 56 IS NOT NULL # Datafusion - Expected - 75 # Datafusion - Expected - -91 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col1, 75 AS col1 FROM tab1 +---- +-51 +-85 +-91 +75 +75 +75 query I rowsort label-8079 SELECT ( CAST ( NULL AS INTEGER ) ) FROM tab0 @@ -48991,8 +49539,15 @@ SELECT col1 + col1 + + ( + col0 ) + - 83 * + + 53 FROM tab0 # Datafusion - Expected - 33 # Datafusion - Expected - NULL # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* \(\- CAST\(NULL AS Int32\)\) \- \(\- cor0\.col2\) \+ Int64\(68\) \- cor0\.col2 AS col1" at position 0 and "cor0\.col2 \- Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 80 * - CAST ( NULL AS INTEGER ) - - col2 + 68 - col2 AS col1, + col2 - + 63 col1 FROM tab1 AS cor0 +---- +-4 +33 +5 +NULL +NULL +NULL query I rowsort label-8105 SELECT ( 54 ) / + + col0 AS col1 FROM tab1 AS cor0 @@ -49658,8 +50213,15 @@ SELECT * FROM tab1 cor0 WHERE NOT NULL IN ( - col1 * + 69 ) # Datafusion - Expected - -1 # Datafusion - Expected - 5082 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \* cor0\.col1 AS col0" at position 0 and "cor0\.col1 / \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 66 * + col1 AS col0, col1 / - col2 AS col0 FROM tab2 AS cor0 +---- +-1 +-1 +-2 +3366 +4422 +5082 query I rowsort SELECT DISTINCT 79 * - col0 AS col1 FROM tab2 AS cor0 @@ -50255,8 +50817,10 @@ SELECT ALL + col1 col0, col2 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to cc24c13903ba6a55b8950e718e7de8eb -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - col1, - col1, col2 col0 FROM tab1 AS cor0 +---- +9 values hashing to 4e09b7dcd507c0a0ac0bc21aaf858a85 query II rowsort SELECT - col2 AS col1, - 13 * + 59 FROM tab1 AS cor0 @@ -50275,8 +50839,15 @@ SELECT - col2 AS col1, - 13 * + 59 FROM tab1 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, + col0 AS col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT + 11 IS NOT NULL @@ -50409,8 +50980,15 @@ SELECT DISTINCT - + CAST ( 21 AS INTEGER ) * - + COUNT ( * ) AS col0 FROM tab1 A # Datafusion - Expected - 63 # Datafusion - Expected - NULL # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) \* cor0\.col0 \* Int64\(\-4\) \+ CAST\(NULL AS Float64\) AS col2" at position 0 and "cor0\.col1 / \(\- \(\- Int64\(\-46\)\)\) \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - 17 * + col0 * - 4 + CAST ( NULL AS FLOAT8 ) AS col2, + col1 / - ( - - 46 ) + col0 col2 FROM tab2 AS cor0 +---- +45 +63 +74 +NULL +NULL +NULL query I rowsort SELECT ALL - col2 * + col0 col1 FROM tab0 cor0 @@ -51655,8 +52233,15 @@ NULL # Datafusion - Expected - 81 # Datafusion - Expected - 90 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ tab1\.col0 AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 + col0 AS col0, + 81 AS col0 FROM tab1 +---- +138 +65 +81 +81 +81 +90 query I rowsort SELECT ALL 6 * - col2 + col1 AS col2 FROM tab1 @@ -51792,8 +52377,15 @@ SELECT DISTINCT SUM ( DISTINCT - col0 ) AS col1 FROM tab1 # Datafusion - Expected - 77 # Datafusion - Expected - 3886 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* tab2\.col2 AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 * + + col2 AS col0, + col1 AS col0 FROM tab2 +---- +1173 +3080 +3886 +51 +67 +77 query I rowsort label-8570 SELECT - COUNT ( * ) * 53 AS col0 FROM tab1 @@ -51892,8 +52484,15 @@ SELECT ALL + col2 + 92 * + col2 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 4964290 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ cor0\.col0 \* cor0\.col0 \* cor0\.col0 \* cor0\.col1 \+ Int64\(66\) \- \(\- cor0\.col0\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 42 + col0 * + col0 * col0 * col1 + 66 - - col0 AS col0, CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 +---- +20185260 +28265808 +4964290 +NULL +NULL +NULL query I rowsort SELECT col1 FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN + - ( - - col2 ) AND - col0 @@ -52311,8 +52910,11 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + + 69 - - col0 * col0 ) <> col1 OR # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- max\(DISTINCT Int64\(16\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) col1, - COUNT ( * ) / + - MAX ( DISTINCT + ( 16 ) ) AS col1 FROM tab0 cor0 +---- +0 +3 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 8 * 80 NOT BETWEEN ( + col2 * ( col0 ) ) AND ( - 40 - 39 * col1 ) @@ -52851,8 +53453,15 @@ SELECT ALL SUM ( col0 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 20 # Datafusion - Expected - 1 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / \(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "cor0\.col2 \- cor0\.col2 \+ \(\- Int64\(\-20\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 / - - col1 AS col2, + col2 - col2 + - ( - 20 ) col2 FROM tab2 AS cor0 +---- +0 +0 +1 +20 +20 +20 query I rowsort SELECT ALL + 43 * + col1 FROM tab1 AS cor0 WHERE NULL IS NULL @@ -53215,8 +53824,15 @@ SELECT - ( + + COUNT ( * ) ) col1 FROM tab0 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 col2, col2 FROM tab1 AS cor0 WHERE NULL IS NULL +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT ALL 68 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL @@ -54643,8 +55259,15 @@ SELECT + 50 AS col1, - COUNT ( * ) FROM tab0 AS cor0 # Datafusion - Expected - -65 # Datafusion - Expected - 81 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(\-65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, - 65 AS col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL +---- +-65 +-65 +-65 +1 +21 +81 query I rowsort label-9048 SELECT ALL + col0 / col1 * col1 / + col0 FROM tab2 AS cor0 @@ -54735,8 +55358,15 @@ SELECT DISTINCT 33 + - 48 AS col2 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col2, col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT + + 29 / col0 * + col0 FROM tab1 WHERE - 69 IS NULL @@ -56036,8 +56666,10 @@ SELECT col1 * col0 AS col2 FROM tab0 WHERE NOT + + col1 - + 3 >= - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to ec368b8a919bd0b46ea074c8e1f444a6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col2, col2 col2, + col0 * - col1 FROM tab2 +---- +9 values hashing to 0075ddc6741daeb6e93847fff154b0d6 query II rowsort SELECT + col1 * + col1 + 41 * + 89, - 71 + + + col0 AS col0 FROM tab0 WHERE NOT NULL IS NULL @@ -56222,8 +56854,15 @@ SELECT ( ( - + COUNT ( * ) ) ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -4624 # Datafusion - Expected - NULL # Datafusion - Expected - -9216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "cor0\.col2 \* \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col0, col2 * - col2 AS col0 FROM tab1 AS cor0 +---- +-3481 +-4624 +-9216 +NULL +NULL +NULL query I rowsort SELECT col2 - + 13 * + col2 AS col0 FROM tab0 @@ -56476,8 +57115,15 @@ SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "\(\- tab0\.col2\) \+ tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, - col2 + + + col2 AS col2 FROM tab0 +---- +0 +0 +0 +1 +21 +81 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * col1 BETWEEN col0 AND + - 43 + col2 + + col1 @@ -57293,8 +57939,15 @@ SELECT ALL - 96 * + 67 FROM tab1 # Datafusion - Expected - -2412510 # Datafusion - Expected - -7 # Datafusion - Expected - -26136888 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(7\)\) AS col1" at position 0 and "Int64\(87\) \* cor0\.col1 \* Int64\(\-94\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 7 AS col1, 87 * + col1 * + - 94 * col2 AS col1 FROM tab1 cor0 +---- +-10991232 +-2412510 +-26136888 +-7 +-7 +-7 query II rowsort SELECT - 98 AS col1, col2 AS col0 FROM tab0 AS cor0 @@ -58352,8 +59005,15 @@ SELECT 53 + + ( COUNT ( * ) ) FROM tab0 # Datafusion - Expected - 4127 # Datafusion - Expected - 36 # Datafusion - Expected - 4160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col2" at position 0 and "Int64\(98\) \+ tab1\.col1 \+ Int64\(\-55\) \* Int64\(\-73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 AS col2, + 98 + col1 + - 55 * - 73 AS col2 FROM tab1 +---- +36 +36 +36 +4118 +4127 +4160 query II rowsort SELECT 5, col2 col1 FROM tab2 @@ -58965,8 +59625,15 @@ SELECT DISTINCT + 93 * + + 77 FROM tab1 # Datafusion - Expected - 104 # Datafusion - Expected - 75 # Datafusion - Expected - 133 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col2 \+ tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col1, col2 + + col0 AS col1 FROM tab2 +---- +104 +133 +46 +64 +69 +75 query II rowsort SELECT DISTINCT + 37, 52 + + - 92 * + 26 * col1 AS col0 FROM tab0 @@ -59339,8 +60006,15 @@ SELECT + MAX ( DISTINCT - col1 ) FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 55 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 55 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +23 +40 +55 +55 +55 +58 query III rowsort SELECT * FROM tab0 AS cor0 WHERE ( col2 + + - col2 ) = - 99 + - 67 * - 50 + col0 / - 10 + - col1 * ( + col2 ) @@ -60277,8 +60951,15 @@ SELECT DISTINCT 68 AS col1 FROM tab0 cor0 # Datafusion - Expected - -92 # Datafusion - Expected - 14 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col2" at position 0 and "Int64\(\-92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 14 AS col2, - 92 AS col2 FROM tab2 +---- +-92 +-92 +-92 +14 +14 +14 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 @@ -60287,8 +60968,15 @@ SELECT ALL 14 AS col2, - 92 AS col2 FROM tab2 # Datafusion - Expected - 19 # Datafusion - Expected - -96 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col2, 19 AS col2 FROM tab1 +---- +-59 +-68 +-96 +19 +19 +19 query I rowsort label-9965 SELECT SUM ( col1 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL diff --git a/data/sqlite/random/aggregates/slt_good_39.slt b/data/sqlite/random/aggregates/slt_good_39.slt index 1b17ba6..4ef8858 100644 --- a/data/sqlite/random/aggregates/slt_good_39.slt +++ b/data/sqlite/random/aggregates/slt_good_39.slt @@ -75,8 +75,15 @@ SELECT ALL + - ( - COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - 97 # Datafusion - Expected - 34 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \+ cor0\.col2 \+ \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 45 + + col2 + - col1 col2, col0 AS col2 FROM tab0 AS cor0 +---- +11 +143 +15 +34 +87 +97 query III rowsort label-8 SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + + col0 + - col1 <> NULL @@ -938,8 +945,11 @@ SELECT DISTINCT col2 * col1 * + - col2 + col2 * + - col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 AS col1, COUNT ( * ) AS col1 FROM tab2 +---- +3 +40 query I rowsort label-159 SELECT - MAX ( - + col0 ) FROM tab1 @@ -1633,8 +1643,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( DISTINCT + col1 ) col1, - COUNT ( * ) AS col1 FROM tab1 cor0 +---- +-3 +66 query I rowsort label-273 SELECT DISTINCT MIN ( ALL col1 ) col1 FROM tab0 @@ -1821,8 +1834,15 @@ SELECT ALL col1 - + col2 AS col1 FROM tab0 # Datafusion - Expected - 1 # 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 "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 AS col2, 1 col2 FROM tab2 +---- +1 +1 +1 +35 +35 +35 query I rowsort label-304 SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab1 cor0 @@ -2071,8 +2091,15 @@ SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE NOT 14 IS NULL # Datafusion - Expected - -87 # Datafusion - Expected - NULL # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col0, - col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL +---- +-15 +-87 +-97 +NULL +NULL +NULL query II rowsort SELECT ALL col2 col2, - col1 FROM tab0 @@ -2230,8 +2257,15 @@ NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query II rowsort SELECT + col1 AS col0, 62 FROM tab2 @@ -2385,8 +2419,15 @@ NULL # Datafusion - Expected - -14 # Datafusion - Expected - 94 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + col1 AS col2, - col1 AS col2 FROM tab1 cor0 +---- +-14 +-47 +-5 +10 +28 +94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 102 @@ -2395,8 +2436,15 @@ SELECT col1 + col1 AS col2, - col1 AS col2 FROM tab1 cor0 # Datafusion - Expected - -58 # Datafusion - Expected - 154 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col1 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + col1 AS col1, - col2 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +102 +134 +154 query I rowsort label-395 SELECT 26 + - 75 + + - 86 * - + COUNT ( * ) FROM tab0 AS cor0 @@ -2721,8 +2769,15 @@ SELECT ALL + - CAST ( col2 AS INTEGER ) + - + col2 FROM tab1 AS cor0 # Datafusion - Expected - -21 # Datafusion - Expected - NULL # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - CAST ( NULL AS INTEGER ) AS col0, - col1 AS col0 FROM tab0 WHERE NOT - ( + col1 ) * - + 45 < + col1 * - 52 +---- +-1 +-21 +-81 +NULL +NULL +NULL query I rowsort label-447 SELECT ALL - COUNT ( * ) * 97 AS col2 FROM tab0 @@ -3875,8 +3930,15 @@ SELECT - - col1 col0 FROM tab1 AS cor0 WHERE NULL BETWEEN ( - col1 / + - col0 / # Datafusion - Expected - -854 # Datafusion - Expected - 97 # Datafusion - Expected - -9587 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "\(\- tab0\.col0\) \* tab0\.col2 \+ Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, - col0 * col2 + + 16 AS col2 FROM tab0 +---- +-689 +-854 +-9587 +15 +87 +97 query I rowsort SELECT + ( - + col2 ) AS col1 FROM tab1 @@ -4869,8 +4931,10 @@ SELECT 3 col2 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f80daddb6455655e4ad84e40751ffb37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 1 and "cor0\.col1 AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 93 + col0, 99 AS col0, col1 AS col0 FROM tab1 AS cor0 +---- +9 values hashing to d7f5ffd116353481d0779e9c51eb6d1e query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col1 * + col2, + col2 + col0, + col0, + 85 * + col2 * + col1 * col0 * - col1 ) @@ -5306,8 +5370,11 @@ SELECT MAX ( + col2 ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, + 6 AS col0 FROM tab1 AS cor0 +---- +3 +6 query I rowsort label-875 SELECT MIN ( DISTINCT - ( - col2 ) ) AS col2 FROM tab2 AS cor0 @@ -5471,8 +5538,15 @@ SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 FROM tab1 AS cor0 WHERE NOT - col0 + + 83 * 81 * col2 - col2 IS NULL +---- +51 +51 +85 +85 +91 +91 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT col0 <> NULL @@ -6634,8 +6708,15 @@ NULL # Datafusion - Expected - -5642 # Datafusion - Expected - 141 # Datafusion - Expected - -5464 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col1 AS Int32\) \+ Int64\(64\) AS col0" at position 0 and "tab2\.col0 \* \(\- CAST\(tab2\.col1 AS Int32\)\) \* tab2\.col2 / tab2\.col2 \- Int64\(9\) \* tab2\.col0 \+ tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( col1 AS INTEGER ) + 64 col0, col0 * - CAST ( ( + col1 ) AS INTEGER ) * col2 / col2 - + 9 * col0 + + col2 col0 FROM tab2 +---- +-2737 +-5464 +-5642 +115 +131 +141 query I rowsort SELECT ALL - 71 + col1 AS col1 FROM tab2 @@ -7179,8 +7260,15 @@ SELECT COUNT ( * ) + CAST ( SUM ( ALL - 50 ) AS INTEGER ) AS col2 FROM tab0 AS c # Datafusion - Expected - 3 # Datafusion - Expected - 69 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \+ cor0\.col0 AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 + col0 AS col1, 3 AS col1 FROM tab2 AS cor0 +---- +104 +133 +3 +3 +3 +69 query I rowsort SELECT ALL + - ( + 85 ) + - - col1 * - 30 + + 39 AS col2 FROM tab1 cor0 @@ -7423,8 +7511,15 @@ SELECT + + MAX ( - 13 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col1, col0 AS col1 FROM tab0 AS cor0 WHERE col2 * - 43 IS NOT NULL +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT 7 FROM tab1 AS cor0 WHERE NULL IS NOT NULL @@ -7726,8 +7821,15 @@ SELECT * FROM tab2 cor0 WHERE NOT col1 >= - - 29 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 col1, + col0 col1 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT - ( - - col0 ) * + col2 FROM tab1 @@ -8102,8 +8204,15 @@ SELECT DISTINCT + col2 / 29 * - col2, col1 FROM tab1 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - -96 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, ( 67 ) AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +67 +67 +67 query I rowsort label-1345 SELECT + MAX ( + 13 ) FROM tab0 AS cor0 WHERE NOT - col2 + col1 IS NULL @@ -8279,8 +8388,15 @@ SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL # Datafusion - Expected - 77 # Datafusion - Expected - 58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, col1 AS col0 FROM tab2 +---- +23 +40 +51 +58 +67 +77 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -11367,8 +11483,11 @@ SELECT DISTINCT - 92 * - - col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, + 21 AS col0 FROM tab1 +---- +21 +3 query I rowsort SELECT ALL 75 FROM tab2 AS cor0 WHERE ( NOT NULL <= + col2 ) @@ -11530,8 +11649,15 @@ SELECT + 32 + - col1 AS col2 FROM tab2 cor0 WHERE - 3 IS NOT NULL # Datafusion - Expected - 47 # Datafusion - Expected - 122 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ Int64\(30\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 92 + 30 AS col2, col1 col2 FROM tab1 AS cor0 +---- +122 +122 +122 +14 +47 +5 query I rowsort label-1895 SELECT + - ( - MIN ( CAST ( - + col0 AS INTEGER ) ) ) AS col0 FROM tab2 AS cor0 @@ -11649,8 +11775,15 @@ SELECT * FROM tab0 AS cor0 WHERE ( NULL ) >= + + 26 # Datafusion - Expected - 42 # Datafusion - Expected - 0 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 + - ( + + col2 ) col1, 42 AS col1 FROM tab1 AS cor0 +---- +0 +0 +0 +42 +42 +42 query I rowsort label-1915 SELECT + COUNT ( col1 ) AS col1 FROM tab0 AS cor0 @@ -12486,8 +12619,15 @@ SELECT DISTINCT + col0 * + ( - - col2 ) * + 6 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "cor0\.col0 \* CAST\(NULL AS Int32\) / \(\- \(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col0 AS col1, + col0 * CAST ( NULL AS INTEGER ) / - - col2 AS col1 FROM tab1 cor0 +---- +51 +85 +91 +NULL +NULL +NULL query II rowsort label-2060 SELECT ALL - + col1 AS col2, - col2 / + - 37 FROM tab0 AS cor0 @@ -12643,8 +12783,15 @@ SELECT ALL - 61 + 69 * - 67 + - col2 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 352350 # Datafusion - Expected - 0 # Datafusion - Expected - 85698 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \- cor0\.col2 AS col2" at position 0 and "\(\- cor0\.col2\) \* Int64\(81\) \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 - col2 AS col2, - col2 * 81 * - col0 col2 FROM tab2 AS cor0 +---- +0 +0 +0 +207360 +352350 +85698 query III rowsort SELECT DISTINCT * FROM tab1 WHERE + - col1 * - col0 + col2 + col1 <> + 4 @@ -12851,8 +12998,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 AS col0, - ( - 58 ) + COUNT ( * ) + + 94 AS col0 FROM tab0 AS cor0 +---- +-55 +155 query I rowsort SELECT + - col2 * + col0 * - col2 AS col2 FROM tab2 AS cor0 @@ -13215,8 +13365,15 @@ SELECT DISTINCT + - 23 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - 10 # Datafusion - Expected - -97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, ( + col2 ) AS col0 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +10 +47 +99 query II rowsort SELECT col1 + - - col1 AS col2, + col1 col1 FROM tab2 cor0 @@ -14265,8 +14422,15 @@ SELECT + 60 * + - col1 * col2 AS col0 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - -96 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col2, col1 AS col2 FROM tab1 +---- +-59 +-68 +-96 +14 +47 +5 query I rowsort label-2337 SELECT DISTINCT + + MAX ( ALL + col2 ) - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL @@ -14528,8 +14692,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE + 63 * - col1 / 4 IS NULL # Datafusion - Expected - 93 # Datafusion - Expected - -49 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ \(\- Int64\(31\)\) \+ Int64\(29\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 + - + 31 + + 29 AS col0, + 93 AS col0 FROM tab0 AS cor0 +---- +-101 +-12 +-49 +93 +93 +93 query I rowsort label-2380 SELECT DISTINCT + + MIN ( + 12 ) + - - 69 AS col2 FROM tab0 AS cor0 @@ -14712,8 +14883,15 @@ SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL # Datafusion - Expected - -18270 # Datafusion - Expected - -97 # Datafusion - Expected - -9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col2 \* \(\- cor0\.col0\) \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, + col2 * - col0 * + col1 AS col2 FROM tab0 AS cor0 +---- +-15 +-18270 +-57105 +-87 +-9603 +-97 query III rowsort SELECT * FROM tab2 WHERE NOT 84 + - col2 * + - col0 IS NULL @@ -14751,8 +14929,15 @@ SELECT DISTINCT + col1 + + - 81 FROM tab0 # Datafusion - Expected - -110 # Datafusion - Expected - 8861 # Datafusion - Expected - -110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \+ tab1\.col0 \* Int64\(97\) AS col0" at position 0 and "Int64\(\-36\) \+ Int64\(\-74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 34 + col0 * 97 AS col0, - 36 + - 74 AS col0 FROM tab1 +---- +-110 +-110 +-110 +4981 +8279 +8861 query I rowsort SELECT 12 + - ( 19 ) + - 2 - + col1 * col1 FROM tab0 @@ -15330,8 +15515,15 @@ SELECT DISTINCT - col1 FROM tab1 WHERE NOT + col2 >= NULL # Datafusion - Expected - -10 # Datafusion - Expected - -97 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- cor0\.col0\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 * + - col0 col2, + ( - col2 ) AS col2 FROM tab0 cor0 +---- +-10 +-1215 +-1827 +-47 +-97 +-99 query I rowsort label-2519 SELECT - SUM ( ALL + col0 ) * - - SUM ( - - ( - col0 ) ) * + 69 + 25 * 9 FROM tab1 AS cor0 @@ -15821,8 +16013,11 @@ SELECT ALL COUNT ( * ) * CAST ( + - COUNT ( * ) AS INTEGER ) - + SUM ( + 90 ) FR # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 0 AS col2, ( COUNT ( * ) ) AS col2 FROM tab2 WHERE NOT + 78 IS NULL +---- +0 +3 query II rowsort SELECT DISTINCT col0 * - col2 AS col1, 53 FROM tab1 @@ -16065,8 +16260,15 @@ SELECT MAX ( ALL - 35 ) FROM tab0 # Datafusion - Expected - -29400 # Datafusion - Expected - 91 # Datafusion - Expected - -276360 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "Int64\(\-98\) \* Int64\(60\) \* tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, - 98 * 60 * + col1 AS col2 FROM tab1 +---- +-276360 +-29400 +-82320 +51 +85 +91 query I rowsort label-2639 SELECT ALL ( - - CAST ( - - COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab2 @@ -16250,8 +16452,15 @@ SELECT col2 + + col2 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 * - col1 <> + 11 # Datafusion - Expected - -75690 # Datafusion - Expected - -81 # Datafusion - Expected - -10575 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 \* \(\- cor0\.col0\) \* \(\- \(\- cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col1, col2 * - col0 * - - col0 AS col1 FROM tab0 AS cor0 +---- +-1 +-10575 +-21 +-75690 +-81 +-931491 query I rowsort SELECT DISTINCT - ( - 36 ) FROM tab0 @@ -16309,8 +16518,15 @@ SELECT ALL 24 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 194 # Datafusion - Expected - 28 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 0 and "cor0\.col0 \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 28 col0, + col0 + col0 AS col0 FROM tab0 AS cor0 +---- +174 +194 +28 +28 +28 +30 query I rowsort label-2678 SELECT ALL + COUNT ( - col1 ) + + 16 col1 FROM tab1 AS cor0 @@ -16555,14 +16771,24 @@ SELECT DISTINCT + col0, col0 + col1 AS col1 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col2" at position 0 and "Int64\(73\) \+ tab2\.col1 \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, 73 + + ( col1 ) - + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 +---- +-51 +-67 +-77 +NULL +NULL +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ), - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( + 57 ) < - ( - - col1 ) +---- +-3 +-3 query I rowsort label-2716 SELECT + 66 + + - COUNT ( * ) FROM tab0 AS cor0 @@ -16637,8 +16863,15 @@ SELECT ALL - CAST ( col2 AS INTEGER ) + col1 + col2 * col1 * + + 6, + col0 FROM # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-2728 SELECT DISTINCT 15 + CAST ( NULL AS INTEGER ) * - 51 + - - col1 - - - col2 + + ( + col2 ) * - + 88 + - 58 * - col1 AS col2 FROM tab0 @@ -16671,8 +16904,15 @@ SELECT DISTINCT col0 / - col2 - - col0 FROM tab1 # Datafusion - Expected - -9483 # Datafusion - Expected - 43 # Datafusion - Expected - 6261 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col0" at position 0 and "tab0\.col0 \* \(\- tab0\.col0\) \+ \(\- \(\- tab0\.col1\)\) \* tab0\.col1 \+ Int64\(\-75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 43 AS col0, col0 * - + col0 + - - col1 * + + col1 + - 75 AS col0 FROM tab0 +---- +-7203 +-9483 +43 +43 +43 +6261 query III rowsort SELECT * FROM tab0 WHERE + 59 = NULL @@ -17221,8 +17461,15 @@ SELECT + COUNT ( * ) col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - -141 # Datafusion - Expected - -75 # Datafusion - Expected - -142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col0\) \- cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - col0 ) col1, - col0 - col1 AS col1 FROM tab2 AS cor0 +---- +-141 +-142 +-46 +-64 +-75 +-97 query I rowsort SELECT - + 66 * + col0 AS col1 FROM tab0 AS cor0 @@ -18227,8 +18474,15 @@ SELECT ALL * FROM tab2 WHERE NOT ( + ( - - col1 ) ) IS NOT NULL # Datafusion - Expected - 15 # Datafusion - Expected - -99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col2, col0 col2 FROM tab0 +---- +-10 +-47 +-99 +15 +87 +97 query II rowsort label-2992 SELECT DISTINCT col0, + col0 / - + col1 FROM tab0 @@ -19276,8 +19530,15 @@ SELECT col1 * ( + + col1 ) - - - ( col0 ) FROM tab0 # Datafusion - Expected - -59 # Datafusion - Expected - -87 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \- tab1\.col0 AS col2" at position 0 and "\(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4 - + col0 AS col2, - col2 AS col2 FROM tab1 +---- +-47 +-59 +-68 +-81 +-87 +-96 query I rowsort SELECT - - ( + col0 ) - + + col1 FROM tab2 AS cor0 @@ -19530,8 +19791,15 @@ SELECT DISTINCT 52 * + 79 FROM tab1 # Datafusion - Expected - 68 # Datafusion - Expected - 56 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 56 col0, col2 AS col0 FROM tab1 WHERE + 78 * + + col1 NOT IN ( + col2 ) +---- +56 +56 +56 +59 +68 +96 query I rowsort label-3199 SELECT - CAST ( NULL AS INTEGER ) * - + ( + 49 ) * COUNT ( * ) AS col1 FROM tab2 AS cor0 @@ -19764,8 +20032,11 @@ SELECT DISTINCT 40 * + + COUNT ( * ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - -1035 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "Int64\(69\) \* \(\- min\(tab0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 AS col2, 69 * - MIN ( ALL + col0 ) AS col2 FROM tab0 +---- +-1035 +34 query I rowsort label-3237 SELECT DISTINCT 67 / col1 * - 93 FROM tab1 @@ -19880,8 +20151,15 @@ NULL # Datafusion - Expected - 87 # Datafusion - Expected - 36 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-36\)\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 36 AS col2, + col0 AS col2 FROM tab0 WHERE NULL IS NULL +---- +15 +36 +36 +36 +87 +97 query I rowsort SELECT ALL col2 * + + col0 * - col0 + + 59 * + 66 FROM tab1 @@ -19945,8 +20223,15 @@ SELECT ALL + 84 * + - MIN ( col1 ) AS col2 FROM tab2 cor0 # Datafusion - Expected - -3348 # Datafusion - Expected - 58 # Datafusion - Expected - -3348 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* tab2\.col1 / tab2\.col1 AS col0" at position 0 and "Int64\(54\) \* Int64\(\-62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 * + + col1 / + col1 AS col0, 54 * - 62 col0 FROM tab2 +---- +-3348 +-3348 +-3348 +23 +40 +58 query II rowsort SELECT DISTINCT + 90, 12 * - - 82 * col2 * + - 24 AS col2 FROM tab1 @@ -20260,8 +20545,11 @@ SELECT + 88 * - 8 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(18\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 18 AS col2, + COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-18 +3 query I rowsort SELECT DISTINCT + - ( - 94 ) FROM tab2 AS cor0 @@ -20321,8 +20609,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* min\(DISTINCT \(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 62 AS col1, COUNT ( * ) * ( MIN ( DISTINCT - + col2 ) ) AS col1 FROM tab1 AS cor0 +---- +-288 +62 query I rowsort label-3325 SELECT - COUNT ( * ) * + - 64 * MIN ( ALL + ( + 93 ) ) FROM tab0 AS cor0 @@ -21455,8 +21746,15 @@ SELECT DISTINCT - MAX ( DISTINCT - 45 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 96 # Datafusion - Expected - 99 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, 96 AS col1 FROM tab0 AS cor0 +---- +10 +47 +96 +96 +96 +99 query I rowsort label-3520 SELECT ALL COUNT ( + col2 ) AS col1 FROM tab2 AS cor0 @@ -21478,8 +21776,15 @@ SELECT * FROM tab2 WHERE NOT ( col0 / + ( + + col0 ) * - col2 NOT IN ( + - col0 # Datafusion - Expected - 37 # Datafusion - Expected - -75 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, 37 col2 FROM tab2 WHERE NOT + 74 + - col1 IS NULL +---- +-46 +-64 +-75 +37 +37 +37 query I rowsort SELECT ALL col2 col2 FROM tab2 WHERE NOT - + col0 IS NOT NULL @@ -22022,8 +22327,11 @@ SELECT DISTINCT col2, col1 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) col0, - COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +-3 +NULL query I rowsort label-3613 SELECT - COUNT ( * ) / - COUNT ( - col1 ) AS col2 FROM tab2 @@ -22715,8 +23023,15 @@ SELECT ALL + 83 AS col1, - ( COUNT ( - + col2 ) ) FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-3721 SELECT + + 9 * + - 63 + + COUNT ( * ) * 36 FROM tab2 AS cor0 @@ -22762,8 +23077,15 @@ SELECT + col0, + col1 + - + 61 + - 95 + + - col1 FROM tab0 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - -58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab2\.col2\) AS Int32\) AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( - col2 AS INTEGER ) col0, - col2 col0 FROM tab2 +---- +-23 +-23 +-40 +-40 +-58 +-58 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT + col1 NOT BETWEEN col1 AND + 33 @@ -22806,8 +23128,15 @@ SELECT * FROM tab0 WHERE NOT + + col1 >= ( + col2 ) + + CAST ( NULL AS FLOAT8 ) # Datafusion - Expected - 5 # Datafusion - Expected - 3185 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* \(\- \(\- tab1\.col0\)\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 35 * - - col0 AS col2, col1 AS col2 FROM tab1 +---- +14 +1785 +2975 +3185 +47 +5 query I rowsort label-3734 SELECT DISTINCT 53 / + + col0 AS col0 FROM tab1 @@ -22898,8 +23227,9 @@ SELECT DISTINCT + - 22 * + ( + CAST ( + 79 AS INTEGER ) ) + col0 + + 87 FROM tab -1605 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 col1, + 16 AS col1 FROM tab1 AS cor0 WHERE + col2 IS NULL +---- query I rowsort SELECT + + 81 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <= col0 @@ -23017,8 +23347,15 @@ SELECT ALL - col2 * + + col2 FROM tab2 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL # Datafusion - Expected - 41 # Datafusion - Expected - -96 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col2 \+ Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - ( + col2 ) col2, col2 + - 27 col2 FROM tab1 cor0 +---- +-59 +-68 +-96 +32 +41 +69 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 - - col1 IS NOT NULL @@ -23262,8 +23599,15 @@ SELECT - + ( - + 58 ) + - MAX ( + 64 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 28 # Datafusion - Expected - 5025 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col0 AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 * + col0 AS col2, 28 AS col2 FROM tab2 AS cor0 +---- +2346 +28 +28 +28 +4928 +5025 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT + 29 < NULL @@ -23396,8 +23740,15 @@ SELECT ALL 3 * + + ( - 76 ) FROM tab0 cor0 # Datafusion - Expected - 1650 # Datafusion - Expected - -75 # Datafusion - Expected - 1650 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(30\) \* Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col0 AS col2, + 30 * + + 55 AS col2 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +1650 +1650 +1650 query I rowsort label-3826 SELECT - - 77 - - COUNT ( + col1 ) FROM tab1 AS cor0 @@ -23414,8 +23765,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( + col0 ) AS col1, - COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL <> col2 +---- +0 +0 query I rowsort SELECT - col1 * - + 49 FROM tab1 @@ -23566,8 +23920,15 @@ SELECT DISTINCT 49 + + + col1 AS col0 FROM tab0 cor0 # Datafusion - Expected - 0 # Datafusion - Expected - -81 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col2\) \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, - col2 + col2 AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +0 +0 +0 query I rowsort label-3852 SELECT + - MAX ( ALL - col1 ) AS col0 FROM tab0 AS cor0 @@ -24331,8 +24692,15 @@ SELECT DISTINCT + ( col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - -3182 # Datafusion - Expected - 58 # Datafusion - Expected - -3182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(86\) \* Int64\(\-37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 col1, 86 * - 37 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL +---- +-3182 +-3182 +-3182 +23 +40 +58 query I rowsort SELECT ( - 53 ) FROM tab0 @@ -24578,8 +24946,11 @@ SELECT ALL - 24 * COUNT ( * ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- Int64\(37\)\)\) 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 II valuesort SELECT + COUNT ( ALL - + 37 ) AS col2, MAX ( + - 59 ) col2 FROM tab0 +---- +-59 +3 query I rowsort SELECT - - 67 AS col1 FROM tab0 WHERE NULL IS NOT NULL @@ -25164,8 +25535,15 @@ SELECT ALL SUM ( + + ( + ( + - col2 ) ) ) * + - 1 * - 42 AS col2 FROM tab1 # Datafusion - Expected - 4277 # Datafusion - Expected - 6426 # Datafusion - Expected - 714 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* \(\- CAST\(tab1\.col1 AS Int32\)\) \* \(\- Int64\(9\)\) AS col0" at position 0 and "tab1\.col0 \* \(\- \(\- tab1\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * - CAST ( col1 AS INTEGER ) * - ( + 9 ) AS col0, col0 * - - col1 AS col0 FROM tab1 +---- +3825 +38493 +425 +4277 +6426 +714 query III rowsort SELECT ALL * FROM tab1 WHERE ( NULL = 82 / col0 ) @@ -27031,8 +27409,15 @@ SELECT DISTINCT * FROM tab0 WHERE NOT ( CAST ( NULL AS INTEGER ) IS NULL ) # Datafusion - Expected - 85 # Datafusion - Expected - -58 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col0 \+ Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 AS col1, col0 + 21 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +67 +85 +96 query I rowsort SELECT 52 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL @@ -27552,8 +27937,15 @@ SELECT ALL SUM ( DISTINCT - col2 ) AS col0 FROM tab1 # Datafusion - Expected - -4776 # Datafusion - Expected - 5 # Datafusion - Expected - -4500 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "Int64\(53\) \* \(\- tab1\.col0\) \+ tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, 53 * - col0 + col1 AS col2 FROM tab1 +---- +-2689 +-4500 +-4776 +14 +47 +5 query III rowsort SELECT * FROM tab1 WHERE 15 IS NOT NULL @@ -27650,8 +28042,15 @@ SELECT DISTINCT - + ( - 56 ) - - col1 + - ( - 59 ) * + col0 FROM tab1 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - -1 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) AS col1" at position 0 and "\(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 1 AS col1, - col2 AS col1 FROM tab1 +---- +-1 +-1 +-1 +-59 +-68 +-96 query I rowsort SELECT DISTINCT - 62 AS col1 FROM tab2 @@ -27993,8 +28392,15 @@ SELECT - + COUNT ( * ) FROM tab2 WHERE ( NOT + 88 IS NULL ) # Datafusion - Expected - -2 # Datafusion - Expected - -75 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "tab2\.col1 / Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, + col1 / - 30 AS col2 FROM tab2 WHERE + - col2 < col1 +---- +-1 +-2 +-2 +-46 +-64 +-75 query I rowsort SELECT DISTINCT + + ( col2 ) + + + col2 FROM tab2 WHERE NOT - - col0 BETWEEN NULL AND NULL @@ -28060,8 +28466,11 @@ SELECT - + ( - 72 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col0" at position 0 and "Int64\(\-36\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 90 AS col0, - 36 + COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +-33 +-90 query I rowsort SELECT ALL - 59 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL @@ -28805,8 +29214,15 @@ SELECT ALL + CAST ( 14 AS INTEGER ) * 67 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, + col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query II rowsort SELECT + ( - 54 ) AS col1, 83 AS col2 FROM tab0 @@ -28986,8 +29402,15 @@ SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( + 14 ) IS NOT NULL # Datafusion - Expected - -6188 # Datafusion - Expected - 96 # Datafusion - Expected - -4896 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "tab1\.col0 \* \(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col0, col0 * + ( + - col2 ) AS col0 FROM tab1 +---- +-4896 +-5015 +-6188 +59 +68 +96 query II rowsort SELECT col2, + col2 * + + 87 * + + 7 - - + 55 FROM tab2 @@ -30060,8 +30483,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + - col0 <> - 35 + - - col2 # Datafusion - Expected - 49 # Datafusion - Expected - -16 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 16 AS col2, 49 AS col2 FROM tab1 AS cor0 +---- +-16 +-16 +-16 +49 +49 +49 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT col2 IN ( col2 ) @@ -30869,8 +31299,15 @@ SELECT ( - 4 ) * + - 60 FROM tab1 # Datafusion - Expected - -40 # Datafusion - Expected - -43 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 43 AS col1, - col2 AS col1 FROM tab2 +---- +-23 +-40 +-43 +-43 +-43 +-58 query I rowsort SELECT DISTINCT 77 * + + col0 FROM tab0 @@ -30886,8 +31323,15 @@ SELECT DISTINCT 77 * + + col0 FROM tab0 # Datafusion - Expected - -64 # Datafusion - Expected - 4331 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(71\) AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 * ( 71 ) AS col1, - col0 AS col1 FROM tab2 +---- +-46 +-64 +-75 +4331 +4331 +4331 query I rowsort SELECT + ( - 14 ) AS col2 FROM tab2 @@ -33534,8 +33978,15 @@ SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - - col0 # Datafusion - Expected - -226 # Datafusion - Expected - -58 # Datafusion - Expected - -2273 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col2" at position 0 and "Int64\(4\) \+ \(\- cor0\.col2\) \* Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 AS col2, 4 + + - col2 * 23 AS col2 FROM tab0 cor0 +---- +-1077 +-226 +-2273 +-58 +-58 +-58 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 64 IS NULL @@ -33561,8 +34012,11 @@ SELECT ALL 46 * - - col0 / - col1 + - col0 FROM tab0 AS cor0 WHERE NOT col0 IS N # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-2\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 2 AS col0, COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 WHERE NOT + col2 = NULL +---- +2 +NULL query I rowsort SELECT DISTINCT - + col1 * - col2 + - - col0 FROM tab1 AS cor0 @@ -34165,8 +34619,11 @@ SELECT MAX ( ALL - - 83 ) AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, 9 AS col1 FROM tab2 +---- +9 +NULL query I rowsort label-5595 SELECT ALL - CAST ( + col0 AS INTEGER ) * + col1 AS col0 FROM tab1 @@ -34455,8 +34912,15 @@ NULL # Datafusion - Expected - -68 # Datafusion - Expected - 5 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "\(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + col1 ) AS col2, - col2 AS col2 FROM tab1 +---- +-59 +-68 +-96 +14 +47 +5 query I rowsort label-5645 SELECT - col1 / 22 * + CAST ( NULL AS INTEGER ) FROM tab0 @@ -34999,8 +35463,15 @@ SELECT col0 * col2 - - col1 FROM tab0 # Datafusion - Expected - -21 # Datafusion - Expected - 15 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 15 AS col0, - col1 AS col0 FROM tab0 +---- +-1 +-21 +-81 +15 +15 +15 query I rowsort label-5735 SELECT - ( + MAX ( - + col1 ) ) FROM tab0 @@ -35112,8 +35583,15 @@ SELECT 37 * - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN c # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 col0, col1 AS col0 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT + col0 FROM tab1 WHERE NOT ( NOT col2 <= + 70 - + 78 * + 4 ) @@ -35316,8 +35794,11 @@ SELECT DISTINCT 69 + - col0 + - - col1, col1 FROM tab1 cor0 # 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 "\(\- min\(cor0\.col2\)\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - MIN ( ALL col2 ) ) AS col1, ( 0 ) AS col1 FROM tab1 cor0 +---- +-59 +0 query I rowsort SELECT ALL - col0 * - col2 * - col0 FROM tab1 cor0 @@ -36142,8 +36623,15 @@ SELECT COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - -3337904 # Datafusion - Expected - -81 # Datafusion - Expected - -1476126 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "Int64\(5\) \+ tab0\.col2 \+ \(\- \(\- tab0\.col2\)\) \+ tab0\.col0 \* tab0\.col1 \* tab0\.col0 \* \(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, 5 + col2 + - - col2 + col0 * + col1 * col0 * - col1 AS col0 FROM tab0 +---- +-1 +-1476126 +-21 +-3337904 +-81 +-9206 query III rowsort SELECT DISTINCT * FROM tab2 WHERE - - col2 IS NOT NULL @@ -36930,8 +37418,11 @@ SELECT ALL 63 / COUNT ( * ) col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + 80 AS col2 FROM tab0 AS cor0 +---- +3 +80 query I rowsort label-6058 SELECT + COUNT ( * ) * - + 13 / + - 54 FROM tab2 AS cor0 @@ -37244,8 +37735,15 @@ SELECT MAX ( DISTINCT - 58 ) col2 FROM tab0 AS cor0 # Datafusion - Expected - -21 # Datafusion - Expected - 76 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 76 AS col2, - col1 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +76 +76 +76 query III rowsort SELECT * FROM tab1 AS cor0 WHERE - 84 >= col0 @@ -37733,8 +38231,11 @@ 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\(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\. +query II valuesort SELECT + + COUNT ( * ), + COUNT ( * ) FROM tab0 AS cor0 +---- +3 +3 query I rowsort label-6192 SELECT + COUNT ( ALL + - col2 ) FROM tab2 @@ -37917,8 +38418,15 @@ SELECT ALL * FROM tab2 WHERE - ( col1 ) * + 94 + - 38 * + - col2 < NULL # Datafusion - Expected - 64 # Datafusion - Expected - -58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col2, + col0 AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +46 +64 +75 query II rowsort SELECT + col0 * ( + 10 ) * - col1 + - 22 * col2, col1 AS col2 FROM tab1 AS cor0 @@ -38147,8 +38655,15 @@ SELECT ALL + COUNT ( 95 ) AS col1 FROM tab1 # Datafusion - Expected - 6188 # Datafusion - Expected - 96 # Datafusion - Expected - 4896 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "\(\- tab1\.col2\) \* \(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, - col2 * - ( + col0 ) AS col0 FROM tab1 +---- +4896 +5015 +59 +6188 +68 +96 query I rowsort SELECT - col0 FROM tab0 WHERE + - col1 IS NOT NULL @@ -38353,8 +38868,15 @@ SELECT * FROM tab0 WHERE + + col0 >= NULL # Datafusion - Expected - 93 # Datafusion - Expected - 93 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\)" at position 0 and "Int64\(93\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 93, 93 FROM tab0 WHERE NOT NULL IS NOT NULL +---- +93 +93 +93 +93 +93 +93 query I rowsort SELECT col0 - col1 * - col0 AS col2 FROM tab2 @@ -38454,8 +38976,15 @@ SELECT ALL - col2, col0 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - -5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, col1 AS col0 FROM tab1 +---- +-14 +-47 +-5 +14 +47 +5 query II rowsort SELECT DISTINCT - col1, 56 AS col1 FROM tab1 @@ -38481,8 +39010,15 @@ SELECT col2 * - 36 FROM tab1 # Datafusion - Expected - 91 # Datafusion - Expected - 8816568 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* tab1\.col0 \* CAST\(Int64\(98\) AS Int32\) \* Int64\(63\) \+ tab1\.col2 AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 28 * col0 * + CAST ( + 98 AS INTEGER ) * + 63 + col2 AS col2, col0 AS col2 FROM tab1 +---- +14694179 +15731420 +51 +85 +8816568 +91 query I rowsort SELECT ALL - 12 * ( col1 ) FROM tab1 @@ -39017,8 +39553,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ), + COUNT ( * ) FROM tab0 AS cor0 +---- +3 +3 query I rowsort label-6403 SELECT ALL - + SUM ( col2 ) FROM tab1 AS cor0 @@ -39749,8 +40288,11 @@ SELECT + - SUM ( DISTINCT col2 ) AS col1 FROM tab0 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\(Int64\(38\)\)\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( ALL 38 ) col0, 8 col0 FROM tab2 cor0 +---- +-3 +8 query I rowsort label-6522 SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0 @@ -39850,8 +40392,15 @@ SELECT DISTINCT - - 67 + - 51 FROM tab0 AS cor0 # Datafusion - Expected - 14 # Datafusion - Expected - -525 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \* tab0\.col1 AS col2" at position 0 and "Int64\(16\) \- \(\- \(\- tab0\.col2\)\) \- tab0\.col0 / tab0\.col1 \* \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 25 * + + col1 AS col2, 16 - - - col2 - + + col0 / col1 * - col1 AS col2 FROM tab0 +---- +-2025 +-25 +-31 +-525 +14 +90 query II rowsort SELECT ALL - ( + + col0 ) AS col1, + ( - - col0 ) FROM tab1 @@ -39866,8 +40415,11 @@ SELECT ALL - ( + + col0 ) AS col1, + ( - - col0 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col0" at position 0 and "sum\(DISTINCT Int64\(\-50\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 2 AS col0, SUM ( DISTINCT + - 50 ) AS col0 FROM tab2 +---- +-2 +-50 query I rowsort label-6540 SELECT ALL - ( col0 ) / - - col0 FROM tab1 @@ -40190,8 +40742,15 @@ SELECT COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 74 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "\(\- cor0\.col1\) \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 74 AS col1, - col1 + + col1 AS col1 FROM tab0 AS cor0 +---- +0 +0 +0 +74 +74 +74 query I rowsort SELECT ALL 46 * - - 10 * - 69 AS col1 FROM tab0 @@ -40770,8 +41329,15 @@ NULL # Datafusion - Expected - 94 # Datafusion - Expected - -17 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 17 col1, 94 AS col1 FROM tab1 AS cor0 +---- +-17 +-17 +-17 +94 +94 +94 query I rowsort SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE col0 <= NULL @@ -41633,8 +42199,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) * - + 23 AS col2, - 69 AS col2 FROM tab1 cor0 +---- +-69 +-69 query I rowsort SELECT 52 + + - 90 FROM tab2 AS cor0 @@ -42831,8 +43400,11 @@ SELECT - ( + + 60 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -223 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- tab1\.col2\)\) AS col1" at position 0 and "Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( - col2 ) AS col1, - 66 col1 FROM tab1 +---- +-223 +-66 query I rowsort label-7034 SELECT ALL + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab2 cor0 @@ -43031,8 +43603,15 @@ SELECT ALL + CAST ( + + 91 AS INTEGER ) AS col2 FROM tab0 # Datafusion - Expected - 68 # Datafusion - Expected - 37 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 AS col1, col2 AS col1 FROM tab1 +---- +37 +37 +37 +59 +68 +96 query I rowsort label-7064 SELECT MAX ( 48 ) AS col2 FROM tab2 WHERE NOT NULL = NULL @@ -43199,8 +43778,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND 6 # Datafusion - Expected - 58 # Datafusion - Expected - -77 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +23 +40 +58 query II rowsort SELECT ALL col0 AS col0, col2 FROM tab0 @@ -43268,8 +43854,13 @@ SELECT ALL + ( + col2 ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 0 # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- CAST\(tab1\.col0 AS Float64\)\) AS col0" at position 0 and "tab1\.col0 / tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + CAST ( col0 AS FLOAT8 ) AS col0, + col0 / + col2 AS col0 FROM tab1 +---- +0 +1 +NULL +NULL query II rowsort label-7103 SELECT ALL col0 * + - col0, col2 / - col2 AS col0 FROM tab1 @@ -44388,8 +44979,15 @@ SELECT - MIN ( ALL - col1 ) col1 FROM tab1 AS cor0 # Datafusion - Expected - 415 # Datafusion - Expected - -910 # Datafusion - Expected - 3901 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(10\) AS col0" at position 0 and "cor0\.col1 \* \(\- Int64\(\-83\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * 10 AS col0, col1 * - - 83 AS col0 FROM tab1 AS cor0 +---- +-510 +-850 +-910 +1162 +3901 +415 query I rowsort SELECT col2 * + - col0 + col2 - - + 23 + col1 * + + col0 AS col1 FROM tab1 cor0 @@ -44560,8 +45158,15 @@ NULL # Datafusion - Expected - 78 # Datafusion - Expected - 99 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( col2 ) AS col0, 78 AS col0 FROM tab0 AS cor0 +---- +10 +47 +78 +78 +78 +99 query I rowsort SELECT DISTINCT - 75 col1 FROM tab2 AS cor0 @@ -45721,8 +46326,10 @@ SELECT + 66 * col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 0390a05c519f2fef54c1f748980152bc -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* tab0\.col1 AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 85 * + col1 AS col0, ( + ( + 40 ) ) AS col0, 98 AS col0 FROM tab0 +---- +9 values hashing to 5dc3fab496f85c7e0be8671dbfd3ec8f query I rowsort label-7499 SELECT ALL COUNT ( ALL - - 99 ) AS col2 FROM tab1 @@ -46920,8 +47527,15 @@ SELECT 30 - + 44 FROM tab1 # Datafusion - Expected - -15 # Datafusion - Expected - 2 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(96\) AS Int32\) / \(\- Int64\(\-32\)\) \- tab0\.col1 AS col1" at position 0 and "\(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( + 96 AS INTEGER ) / - - 32 - + ( + col1 ) AS col1, - col0 AS col1 FROM tab0 +---- +-15 +-18 +-78 +-87 +-97 +2 query I rowsort label-7696 SELECT ALL CAST ( NULL AS INTEGER ) * - col1 * - col1 * + - 79 / col2 + + col0 AS col1 FROM tab2 AS cor0 @@ -47170,8 +47784,11 @@ SELECT DISTINCT + + col0 / ( col2 ) / + 6 + + + 79 * col0 + col2 col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT \(\- \(\- tab1\.col2\)\)\)\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MAX ( DISTINCT - - col2 ) AS col2, 95 AS col2 FROM tab1 +---- +-96 +95 query IIIIII rowsort SELECT * FROM tab0 cor0 INNER JOIN tab0 AS cor1 ON NULL IS NULL @@ -47225,8 +47842,15 @@ NULL # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -47846,8 +48470,11 @@ SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > + - col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, + COUNT ( * ) col2 FROM tab0 AS cor0 +---- +3 +3 query I rowsort label-7846 SELECT ALL - + col1 / ( + ( ( + ( + col1 ) ) ) ) / - - col1 FROM tab0 AS cor0 @@ -48249,8 +48876,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) FROM tab1 AS cor0 +---- +3 +3 query I rowsort SELECT DISTINCT 66 AS col0 FROM tab2 cor0 WHERE ( NULL ) > + + 30 @@ -48673,8 +49303,9 @@ SELECT DISTINCT col2 AS col1 FROM tab2 WHERE ( - col2 / - 10 + ( + - ( - col0 ) ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* tab1\.col2 AS col2" at position 0 and "tab1\.col0 \* \(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 * col2 col2, col0 * - col0 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NULL +---- query III rowsort SELECT DISTINCT * FROM tab0 cor0 WHERE NULL IS NOT NULL OR NULL <= NULL @@ -48927,8 +49558,11 @@ SELECT ALL 48, - col2 / - - col1 + + + col0 col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - COUNT ( * ) AS col0, + COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +3 +3 query II rowsort SELECT DISTINCT + + col2 AS col0, - 95 AS col2 FROM tab0 AS cor0 @@ -49672,8 +50306,15 @@ SELECT ALL - MAX ( - col0 ) col1 FROM tab2 cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query II rowsort SELECT ALL + col1, col1 col2 FROM tab2 @@ -50543,8 +51184,15 @@ SELECT ALL + 66 * - + 43 - + 70 FROM tab0 # Datafusion - Expected - 85 # Datafusion - Expected - 0 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) / \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 / + - col1 AS col2, + col0 col2 FROM tab1 AS cor0 +---- +-2 +-8 +0 +51 +85 +91 query I rowsort SELECT ALL - + 28 FROM tab0 AS cor0 @@ -51194,8 +51842,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1 ) # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, col2 FROM tab0 cor0 +---- +10 +10 +47 +47 +99 +99 query III rowsort SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( + 30 ) @@ -51713,8 +52368,15 @@ SELECT ALL + 3 + + ( col0 ) FROM tab1 AS cor0 WHERE NOT col1 + - col0 + + 99 IS # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-8494 SELECT ALL COUNT ( ALL + col0 ) AS col1 FROM tab0 AS cor0 @@ -51741,8 +52403,15 @@ SELECT DISTINCT 60 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( col0 ) AS col2, + col0 AS col2 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT - 21 * col0 + + col2 AS col2 FROM tab1 WHERE NOT + col1 NOT BETWEEN - + col1 + - col2 + - 39 AND ( 42 + - - ( - ( + - col1 ) ) ) @@ -51818,8 +52487,15 @@ SELECT col2, + col0 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 17 # Datafusion - Expected - 53 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 AS col1, 17 AS col1 FROM tab1 AS cor0 +---- +17 +17 +17 +53 +53 +53 query I rowsort SELECT DISTINCT col1 * 51 AS col1 FROM tab1 AS cor0 @@ -52480,8 +53156,15 @@ SELECT ALL * FROM tab2 WHERE 35 IS NOT NULL # Datafusion - Expected - 21 # Datafusion - Expected - 9769 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* tab0\.col0 \+ Int64\(79\) \+ Int64\(87\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + col2 ) * + + col0 + ( + 79 ) + 87 AS col0, ( 21 ) AS col0 FROM tab0 +---- +1036 +21 +21 +21 +871 +9769 query III rowsort SELECT * FROM tab0 WHERE NOT NULL BETWEEN col2 AND NULL @@ -53042,8 +53725,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 96 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, col1 col0 FROM tab1 AS cor0 +---- +14 +47 +5 +59 +68 +96 query II rowsort SELECT - + 25 AS col0, 30 FROM tab2 AS cor0 @@ -53174,8 +53864,15 @@ SELECT * FROM tab1 cor0 WHERE NULL IN ( - ( col1 ) - + 49, + col1, - col1 * col1 # Datafusion - Expected - 85 # Datafusion - Expected - -46 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \- cor0\.col1 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 1 - + col1 col1, col0 AS col1 FROM tab1 AS cor0 +---- +-13 +-4 +-46 +51 +85 +91 query I rowsort label-8724 SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 @@ -53374,8 +54071,15 @@ SELECT col0 + 0 AS col2 FROM tab1 # Datafusion - Expected - -47 # Datafusion - Expected - -34 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 / \(\- tab0\.col1\) \- Int64\(30\) AS col2" at position 0 and "\(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 / - col1 - + 30 AS col2, - col2 AS col2 FROM tab0 +---- +-10 +-127 +-30 +-34 +-47 +-99 query I rowsort label-8753 SELECT - MAX ( + - col0 ) FROM tab2 @@ -55143,8 +55847,15 @@ NULL # Datafusion - Expected - 870 # Datafusion - Expected - 9603 # Datafusion - Expected - 9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col2 AS col2" at position 0 and "\(\- cor0\.col2\) \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 * col2 AS col2, - col2 * - col0 col2 FROM tab0 cor0 +---- +705 +705 +870 +870 +9603 +9603 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 < + col0 @@ -55397,8 +56108,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ), - COUNT ( * ) FROM tab2 AS cor0 +---- +-3 +-3 query I rowsort label-9085 SELECT - ( + - COUNT ( * ) ) AS col2 FROM tab1 cor0 @@ -55466,8 +56180,15 @@ SELECT + - ( - ( - - col0 ) ) AS col2 FROM tab0 WHERE - col0 IS NULL # Datafusion - Expected - 37 # Datafusion - Expected - 69 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \+ cor0\.col2 AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col0 + + col2 AS col2, 37 col2 FROM tab2 AS cor0 +---- +104 +133 +37 +37 +37 +69 query I rowsort SELECT DISTINCT - + ( + - 23 ) + + col1 + - col1 AS col1 FROM tab1 AS cor0 @@ -55854,8 +56575,15 @@ SELECT ALL col2 AS col1, col0 AS col2 FROM tab1 # Datafusion - Expected - -696 # Datafusion - Expected - -90 # Datafusion - Expected - -776 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col1" at position 0 and "tab0\.col0 \* Int64\(\-9\) \+ tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 90 AS col1, col0 * - 9 + col0 AS col1 FROM tab0 +---- +-120 +-696 +-776 +-90 +-90 +-90 query II rowsort SELECT - col1 AS col2, - 58 FROM tab2 @@ -55971,8 +56699,15 @@ SELECT - + col1 * + + col0 - + 49 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 17 # Datafusion - Expected - -62 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \+ Int64\(\-85\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col2 + - 85 AS col0, + 17 AS col0 FROM tab2 AS cor0 +---- +-27 +-45 +-62 +17 +17 +17 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 IN ( 40, col2 + + col1, + - col2, + col0 / 27 * - 13 + - 91, - - 60 + - col1 * + 77 + + + col1, - - col2 ) @@ -56814,8 +57549,11 @@ SELECT DISTINCT col2 AS col2, col1 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, + CAST ( - COUNT ( * ) AS INTEGER ) col1 FROM tab1 +---- +-3 +3 query I rowsort label-9314 SELECT - col2 * + CAST ( NULL AS INTEGER ) col2 FROM tab1 @@ -57789,8 +58527,11 @@ SELECT DISTINCT - MIN ( + 2 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-27\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( ALL - 27 ) AS col0, COUNT ( * ) AS col0 FROM tab2 +---- +3 +3 query I rowsort label-9477 SELECT + MAX ( - 11 ) AS col1 FROM tab0 @@ -58192,8 +58933,9 @@ SELECT DISTINCT * FROM tab2 WHERE NULL = ( + - col1 / 4 * col2 ) ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(\-21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + + col0 ) AS col2, - 21 AS col2 FROM tab0 WHERE NOT NULL <= NULL +---- query I rowsort label-9544 SELECT ( + 24 ) + - MAX ( col0 ) FROM tab2 @@ -58483,8 +59225,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 >= 11 # Datafusion - Expected - 0 # Datafusion - Expected - -5 # Datafusion - Expected - 0 -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\) / \(\- Int64\(55\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col1 AS col0, - col1 / - + 55 AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +0 +0 +0 query I rowsort SELECT ALL + - 31 * - 73 + + + ( - col0 ) + col1 AS col1 FROM tab0 AS cor0 @@ -58895,8 +59644,15 @@ SELECT DISTINCT + - 46 + - col2 FROM tab1 AS cor0 WHERE - col2 * + - 72 + + 71 * # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2, col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT ALL 54 + - col1 FROM tab2 @@ -59250,8 +60006,15 @@ SELECT ALL ( col1 ) + ( - col0 ) FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col1, col1 AS col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-9713 SELECT DISTINCT CAST ( + + col1 AS INTEGER ) FROM tab1 @@ -60748,8 +61511,15 @@ SELECT DISTINCT - 80 col0 FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - -58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, col0 AS col1 FROM tab2 +---- +-23 +-40 +-58 +46 +64 +75 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NULL <= + - col1 diff --git a/data/sqlite/random/aggregates/slt_good_4.slt b/data/sqlite/random/aggregates/slt_good_4.slt index 1726e19..12bc223 100644 --- a/data/sqlite/random/aggregates/slt_good_4.slt +++ b/data/sqlite/random/aggregates/slt_good_4.slt @@ -220,8 +220,11 @@ SELECT DISTINCT + ( + col2 ) * + 10 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 AS col0, COUNT ( * ) AS col0 FROM tab0 +---- +-55 +3 query II rowsort label-27 SELECT + 73 AS col2, + SUM ( ALL 66 ) FROM tab1 @@ -292,8 +295,15 @@ SELECT + col1 + 63 FROM tab2 AS cor0 WHERE ( 45 ) >= ( - 43 ) # Datafusion - Expected - 64 # Datafusion - Expected - 5 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col0\) AS col1" at position 0 and "\(\- CAST\(\(\- cor0\.col0\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col1 + - col0 AS col1, - CAST ( - + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0 +---- +-8 +13 +46 +5 +64 +75 query I rowsort SELECT 85 FROM tab1 AS cor0 WHERE + col2 * + - col1 * + + col1 IS NULL @@ -316,8 +326,15 @@ SELECT ALL col2, + col0 * - - 25 AS col0 FROM tab0 # Datafusion - Expected - 85 # Datafusion - Expected - -11 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 11 AS col2, col0 AS col2 FROM tab1 +---- +-11 +-11 +-11 +51 +85 +91 query I rowsort SELECT 42 * col0 FROM tab2 @@ -404,8 +421,15 @@ NULL # Datafusion - Expected - -1 # Datafusion - Expected - 99 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(\-95\) / Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, - 95 / 58 AS col0 FROM tab0 AS cor0 +---- +-1 +-1 +-1 +10 +47 +99 query I rowsort label-55 SELECT DISTINCT - col0 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL @@ -1679,8 +1703,15 @@ SELECT - col0 * col1 * col0 + - col1 FROM tab0 AS cor0 # Datafusion - Expected - -44 # Datafusion - Expected - -75 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(\-44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col0, + ( - 44 ) AS col0 FROM tab2 AS cor0 +---- +-44 +-44 +-44 +-46 +-64 +-75 query I rowsort label-265 SELECT DISTINCT + CAST ( 91 AS INTEGER ) + col1 AS col0 FROM tab2 AS cor0 WHERE col0 IS NULL @@ -2875,8 +2906,15 @@ SELECT ALL - - col2 + + col1 col0 FROM tab0 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - -19 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 19 col0, col2 AS col0 FROM tab1 cor0 +---- +-19 +-19 +-19 +59 +68 +96 query II rowsort SELECT DISTINCT - col2 AS col1, ( - - col2 ) * 68 + col1 AS col0 FROM tab0 AS cor0 @@ -2909,8 +2947,15 @@ NULL # Datafusion - Expected - 14 # Datafusion - Expected - -87 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) \- \(\- tab1\.col1\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + - 92 ) - - col1 AS col0, col1 AS col0 FROM tab1 +---- +-45 +-78 +-87 +14 +47 +5 query I rowsort SELECT ALL + col0 - ( - col1 ) AS col0 FROM tab2 @@ -3070,8 +3115,15 @@ SELECT ALL 91 / COUNT ( * ) / - + COUNT ( * ) FROM tab1, tab0 cor0 # Datafusion - Expected - -51 # Datafusion - Expected - 77 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, - 51 AS col0 FROM tab2 +---- +-51 +-51 +-51 +51 +67 +77 query I rowsort label-486 SELECT - CAST ( NULL AS INTEGER ) * + + col0 AS col0 FROM tab0 @@ -3448,8 +3500,13 @@ SELECT * FROM tab1 AS cor0 WHERE - col1 BETWEEN NULL AND NULL # Datafusion - Expected - 12 # Datafusion - Expected - 7 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / Int64\(14\) \+ Int64\(4\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 / 14 + + 4 AS col1, 12 AS col1 FROM tab1 cor0 +---- +10 +12 +12 +7 query III rowsort SELECT * FROM tab1 cor0 WHERE NOT + 57 IS NOT NULL @@ -3484,8 +3541,15 @@ NULL # Datafusion - Expected - 16 # Datafusion - Expected - 0 # Datafusion - Expected - -6546 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) / \(\- Int64\(\-50\)\) AS col0" at position 0 and "cor0\.col0 \- Int64\(81\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 / - - 50 AS col0, col0 - + 81 * + + col1 AS col0 FROM tab0 cor0 +---- +-1 +-1 +-1614 +-6546 +0 +16 query I rowsort label-551 SELECT + 97 * MIN ( ALL - col0 ) FROM tab2 AS cor0 @@ -3902,8 +3966,15 @@ SELECT - CAST ( NULL AS INTEGER ) col2 FROM tab1 WHERE NOT + col0 * - col1 / col # Datafusion - Expected - 47 # Datafusion - Expected - 28 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 AS col2, col1 AS col2 FROM tab1 +---- +14 +28 +28 +28 +47 +5 query I rowsort label-613 SELECT MAX ( ALL + col2 ) col0 FROM tab0 @@ -4756,8 +4827,11 @@ SELECT ALL - col2 AS col0 FROM tab2 AS cor0 WHERE + 6 * col0 / - - 46 > - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col2, - 81 col2 FROM tab0 AS cor0 +---- +-81 +9 query III rowsort label-764 SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col1, CAST ( NULL AS INTEGER ) ) @@ -4852,8 +4926,15 @@ SELECT ALL 32 * MAX ( ALL + col0 ) AS col0 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 66 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 AS col1, col2 col1 FROM tab0 +---- +10 +47 +66 +66 +66 +99 query I rowsort SELECT + 99 * - 33 AS col2 FROM tab0 @@ -4872,8 +4953,9 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 + - 73 + - col0 IS NOT NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(49\) \+ \(\- \(\- cor0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, 49 + - - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL +---- query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT + col1 / + + 87 * - 77 / + - col2 + + 76 * col2 > NULL @@ -5162,8 +5244,10 @@ SELECT ALL SUM ( - + ( + - col1 ) ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c5e30744665dd7cc427e3888bee2df4a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "tab2\.col1 AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col1 AS col0, CAST ( NULL AS INTEGER ), + col1 AS col0 FROM tab2 +---- +9 values hashing to ef71db4bd2c8e45f488befadc90e5b4b query I rowsort label-829 SELECT DISTINCT MAX ( - col1 ) AS col1 FROM tab2 @@ -5177,8 +5261,15 @@ SELECT DISTINCT MAX ( - col1 ) AS col1 FROM tab2 # Datafusion - Expected - 40 # Datafusion - Expected - 75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, ( col2 ) col1 FROM tab2 +---- +23 +40 +46 +58 +64 +75 query I rowsort SELECT DISTINCT - - col1 + + col2 - 91 AS col1 FROM tab0 AS cor0 @@ -5338,8 +5429,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < - 0 # Datafusion - Expected - 3481 # Datafusion - Expected - -6130 # Datafusion - Expected - 4624 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* Int64\(53\) / Int64\(\-20\) \+ \(\- tab1\.col0\) \* Int64\(66\) AS col0" at position 0 and "tab1\.col2 \* tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * 53 / - 20 + - col0 * + 66 AS col0, col2 * + col2 AS col0 FROM tab1 +---- +-3403 +-5623 +-6130 +3481 +4624 +9216 query I rowsort SELECT ALL + 67 * + col0 AS col2 FROM tab0 @@ -5888,8 +5986,9 @@ SELECT * FROM tab1 WHERE NOT + ( + col0 ) * + 92 IS NULL 9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, col2 FROM tab0 WHERE NOT NULL IS NULL +---- query I rowsort label-947 SELECT - - SUM ( ALL + 84 ) AS col0 FROM tab2 AS cor0 @@ -5942,8 +6041,15 @@ SELECT + col0, 51 FROM tab1 AS cor0 # Datafusion - Expected - 38 # Datafusion - Expected - 59869 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col0 AS Int32\) \+ \(\- \(\- cor0\.col2\)\) \* \(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( col0 AS INTEGER ) + - ( - col2 ) * - + col1 * - col1 AS col2, 38 AS col2 FROM tab2 AS cor0 +---- +237224 +260437 +38 +38 +38 +59869 query II rowsort SELECT DISTINCT + + col2 AS col0, - col0 FROM tab1 AS cor0 @@ -6045,8 +6151,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= 78 * - col1 # Datafusion - Expected - 99 # Datafusion - Expected - -24570 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(21\) \* Int64\(\-78\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * 21 * - 78 col0, col2 AS col0 FROM tab0 AS cor0 +---- +-142506 +-158886 +-24570 +10 +47 +99 query I rowsort SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL @@ -6257,8 +6370,15 @@ SELECT DISTINCT + 3 - + ( + 70 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + col2 ), col2 AS col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT DISTINCT - - col1 * + - 57 FROM tab0 AS cor0 @@ -6836,8 +6956,15 @@ SELECT ALL col0 AS col0, - col0 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 39 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 39 AS col0, + col2 AS col0 FROM tab0 +---- +10 +39 +39 +39 +47 +99 query I rowsort label-1100 SELECT DISTINCT + COUNT ( * ) + - 86 AS col2 FROM tab2 @@ -7806,8 +7933,15 @@ SELECT - MAX ( ALL 51 ) FROM tab2 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - 69 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "\(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 AS col0, - col0 AS col0 FROM tab1 +---- +-51 +-85 +-91 +69 +69 +69 query I rowsort SELECT 25 * - 34 AS col0 FROM tab0 @@ -8051,8 +8185,15 @@ SELECT DISTINCT + MAX ( DISTINCT 95 ) FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - -8472 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col2\) \+ cor0\.col1 \* cor0\.col0 \+ Int64\(30\) AS col0" at position 0 and "cor0\.col0 \+ \(\- cor0\.col0\) \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + col2 ) * - col2 + col1 * + col0 + + 30 AS col0, col0 + + - col0 + + col1 AS col0 FROM tab1 AS cor0 +---- +-3026 +-317 +-8472 +14 +47 +5 query I rowsort label-1300 SELECT + COUNT ( ALL - 69 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 @@ -8305,8 +8446,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, 88 AS col2 FROM tab1 cor0 +---- +-3 +88 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT - col0 / - 75 >= NULL @@ -8444,8 +8588,15 @@ SELECT - + 15 / + COUNT ( * ) AS col2 FROM tab0 cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(\-27\) / \(\- Int64\(77\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, - 27 / - + 77 AS col2 FROM tab0 AS cor0 +---- +0 +0 +0 +1 +21 +81 query I rowsort label-1363 SELECT ALL + col0 + - - 41 + CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0 @@ -8597,8 +8748,9 @@ SELECT ALL col2 AS col2 FROM tab1 WHERE NOT - - 95 * - - col0 + + 76 + col0 / - ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col1" at position 1 and "\(\- tab2\.col0\) \- Int64\(15\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col1 + + col0 AS col0, - col0 AS col1, - + col0 - + + 15 AS col1 FROM tab2 WHERE - 80 + + col1 + - col1 / col2 = - col1 * - 38 + - col2 +---- query I rowsort SELECT ALL ( + - col1 ) + col0 FROM tab0 @@ -9172,8 +9324,11 @@ SELECT ALL - col1 - col1 + - 14 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "max\(Int64\(24\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 41 AS col2, + MAX ( + 24 ) AS col2 FROM tab2 +---- +24 +41 query I rowsort SELECT DISTINCT + col0 - col0 AS col0 FROM tab2 @@ -9211,8 +9366,15 @@ SELECT DISTINCT + MAX ( ALL + col1 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 19 # Datafusion - Expected - 96 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col0, + 19 AS col0 FROM tab1 AS cor0 +---- +19 +19 +19 +59 +68 +96 query II rowsort label-1488 SELECT - COUNT ( * ) / + ( + 53 ) AS col0, + COUNT ( * ) * - + COUNT ( * ) FROM tab1 cor0 @@ -9956,8 +10118,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 50 + - - col2 ) >= ( + CAST ( NULL AS # Datafusion - Expected - 1 # 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 "cor0\.col2 / Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 AS col2, col2 / + 40 AS col2 FROM tab2 AS cor0 +---- +-58 +-58 +-58 +0 +1 +1 query I rowsort label-1619 SELECT 94 * + COUNT ( * ) * - - MAX ( + 45 ) AS col0 FROM tab0 AS cor0 @@ -10683,8 +10852,15 @@ SELECT ALL - 86 * col2 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 0 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 + + col2 AS col1, - col2 AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +0 +0 +0 query I rowsort label-1739 SELECT ALL 11 * 62 / + col1 + - col0 AS col0 FROM tab2 cor0 @@ -11623,8 +11799,15 @@ SELECT ALL - 69 + + COUNT ( * ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - -5 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, col2 col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +59 +68 +96 query I rowsort SELECT ALL - col0 + + + col2 * - col0 FROM tab1 AS cor0 @@ -11662,8 +11845,15 @@ SELECT - - ( + COUNT ( * ) ) * ( + COUNT ( - col0 ) ) + + 66 AS col0 FROM tab0 A # Datafusion - Expected - -97 # Datafusion - Expected - 7322 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* \(\- \(\- Int64\(95\)\)\) \- Int64\(\-7\) AS col2" at position 0 and "Int64\(\-97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 * - - ( + 95 ) - - 7 AS col2, - 97 col2 FROM tab2 +---- +-97 +-97 +-97 +4852 +6372 +7322 query I rowsort SELECT + + 92 + - + col0 + col2 / col2 AS col1 FROM tab0 WHERE NULL IS NOT NULL @@ -11747,8 +11937,15 @@ SELECT DISTINCT SUM ( - - 97 ) * + 32 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 132 # Datafusion - Expected - 5929 # Datafusion - Expected - 142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \* \(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "Int64\(65\) \- \(\- cor0\.col1\) \+ \(\- cor0\.col0\) \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col1 * - - col1 col0, 65 - - col1 + + - col0 + col0 AS col0 FROM tab2 cor0 +---- +116 +132 +142 +2601 +4489 +5929 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT ( ( - col2 ) ) > ( NULL ) @@ -11783,8 +11980,15 @@ SELECT ALL + 17 / - + col0 AS col1 FROM tab1 # Datafusion - Expected - 0 # Datafusion - Expected - -77 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 col1, 0 AS col1 FROM tab2 +---- +-51 +-67 +-77 +0 +0 +0 query II rowsort SELECT + col0, + col0 * - ( + 27 ) AS col2 FROM tab0 @@ -11821,8 +12025,15 @@ SELECT - COUNT ( * ) AS col2, MAX ( col1 ) FROM tab1 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - -9905 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* Int64\(35\) \+ \(\- cor0\.col1\) \- cor0\.col0 \* Int64\(91\) \+ cor0\.col2 AS col2" at position 0 and "Int64\(92\) \+ \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col1 * 35 + - + col1 - + col0 * 91 + + col2 col2, + 92 + - col1 AS col2 FROM tab1 AS cor0 +---- +-5049 +-7856 +-9905 +45 +78 +87 query I rowsort SELECT ALL col2 * - + col0 - ( - col2 ) * col2 * - col1 AS col1 FROM tab0 AS cor0 @@ -12144,8 +12355,15 @@ SELECT + col1 * + col1 + - 30 col2 FROM tab0 # Datafusion - Expected - -66 # Datafusion - Expected - NULL # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* tab0\.col2 / \(\- tab0\.col0\) / CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- Int64\(66\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * + + col2 / - col0 / CAST ( NULL AS INTEGER ) AS col2, ( + ( - + 66 ) ) AS col2 FROM tab0 +---- +-66 +-66 +-66 +NULL +NULL +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1909 @@ -12154,8 +12372,15 @@ SELECT col0 * + + col2 / - col0 / CAST ( NULL AS INTEGER ) AS col2, ( + ( - + 66 # Datafusion - Expected - 40 # Datafusion - Expected - -4814 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* \(\- Int64\(83\)\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * - + 83 AS col1, col2 col1 FROM tab2 +---- +-1909 +-3320 +-4814 +23 +40 +58 query I rowsort SELECT ALL + col1 * - 23 * col0 AS col2 FROM tab1 @@ -12590,8 +12815,15 @@ SELECT 65, 45 AS col1 FROM tab1 # Datafusion - Expected - 87 # 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 "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 AS col2, col0 AS col2 FROM tab0 +---- +15 +17 +17 +17 +87 +97 query I rowsort label-2053 SELECT - MIN ( + + col1 ) AS col1 FROM tab1 @@ -14234,8 +14466,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) + 16 AS col2, 44 AS col2 FROM tab2 AS cor0 +---- +19 +44 query I rowsort label-2320 SELECT 22 + - CAST ( + SUM ( DISTINCT - - col0 ) AS INTEGER ) FROM tab1 AS cor0 WHERE ( + col1 ) NOT IN ( + + col0 ) @@ -14351,8 +14586,15 @@ SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS # Datafusion - Expected - -2 # Datafusion - Expected - 29 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "Int64\(\-2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 29 AS col1, - 2 AS col1 FROM tab0 cor0 +---- +-2 +-2 +-2 +29 +29 +29 query I rowsort label-2339 SELECT ALL - - 67 * - MIN ( + + 20 ) + - - ( + COUNT ( * ) ) + ( SUM ( DISTINCT + - col0 ) ) FROM tab2 AS cor0 @@ -14564,8 +14806,15 @@ SELECT ALL - MAX ( DISTINCT + 89 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 39 # Datafusion - Expected - -99 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "CAST\(Int64\(39\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 col2, + CAST ( + + 39 AS INTEGER ) AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +39 +39 +39 query I rowsort SELECT col0 + 42 AS col0 FROM tab1 AS cor0 @@ -14764,8 +15013,15 @@ SELECT - 60 * CAST ( NULL AS INTEGER ) / col1 + 95 + + 25 AS col1 FROM tab2 AS c # Datafusion - Expected - 68 # Datafusion - Expected - 80 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 AS col0, col2 AS col0 FROM tab1 AS cor0 +---- +59 +68 +80 +80 +80 +96 query I rowsort SELECT ALL col1 + + col0 - - col1 AS col0 FROM tab2 AS cor0 @@ -16280,8 +16536,15 @@ SELECT DISTINCT col1, - CAST ( + col1 AS INTEGER ) + - ( - - 89 ) FROM tab2 # Datafusion - Expected - -67 # Datafusion - Expected - -77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\)" at position 0 and "\(\- tab2\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1, ( + ( + - col1 ) ) FROM tab2 +---- +-51 +-51 +-67 +-67 +-77 +-77 query I rowsort label-2661 SELECT MIN ( DISTINCT 74 ) AS col0 FROM tab2 @@ -16654,8 +16917,11 @@ SELECT ALL col1 * ( col0 ) col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "min\(\(\- Int64\(\-79\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col1, MIN ( - - 79 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL +---- +0 +NULL query III rowsort SELECT * FROM tab0 WHERE NOT - + 72 IS NULL @@ -16980,8 +17246,10 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to a0b728d74fad06ff24ded639fa8c49ea -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(\-30\) AS col2" at position 0 and "Int64\(89\) \* Int64\(\-40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 * - 30 AS col2, 89 * + - 40 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 +---- +18 values hashing to fd362ccbd0ee93c0121b47bb5651b327 query I rowsort SELECT 70 + + 75 col2 FROM tab0 @@ -17121,8 +17389,15 @@ SELECT + - col1 AS col2, ( col1 ) FROM tab1 cor0 # Datafusion - Expected - 321900 # Datafusion - Expected - NULL # Datafusion - Expected - 78292 -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 "Int64\(74\) \* \(\- cor0\.col0\) \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - CAST ( NULL AS FLOAT8 ) col2, 74 * - col0 * - + ( + + col2 ) AS col2 FROM tab2 AS cor0 +---- +189440 +321900 +78292 +NULL +NULL +NULL query III rowsort label-2793 SELECT DISTINCT + 68, - COUNT ( ALL - 93 ) * + 99 AS col2, - + MIN ( ALL col2 ) col0 FROM tab0 AS cor0 @@ -17445,8 +17720,15 @@ SELECT DISTINCT + - col0 + - 22 AS col2, + col1 * 89 FROM tab2 AS cor0 # Datafusion - Expected - -4422 # Datafusion - Expected - 86 # Datafusion - Expected - -5082 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \- Int64\(\-15\) AS col2" at position 0 and "Int64\(66\) \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 71 - - 15 AS col2, 66 * - col1 AS col2 FROM tab2 AS cor0 +---- +-3366 +-4422 +-5082 +86 +86 +86 query I rowsort label-2844 SELECT DISTINCT 66 - - - COUNT ( * ) col0 FROM tab2 cor0 @@ -17554,8 +17836,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * - 80 AS col0, 34 col0 FROM tab1 AS cor0 +---- +-240 +34 query I rowsort SELECT DISTINCT - - col1 * 88 * - col2 FROM tab1 AS cor0 @@ -17698,8 +17983,15 @@ SELECT ALL MIN ( ALL + 79 ) FROM tab0 # Datafusion - Expected - -87 # Datafusion - Expected - 98 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) / tab0\.col1 \- \(\- tab0\.col2\) AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 / ( col1 ) - - col2 AS col2, - col0 AS col2 FROM tab0 +---- +-15 +-87 +-97 +46 +9 +98 query I rowsort SELECT + 19 * col1 AS col0 FROM tab2 AS cor0 @@ -18498,8 +18790,11 @@ SELECT - col1 + + ( 55 ) AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -119 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-2\) \+ \(\- sum\(\(\- Int64\(\-39\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) + ( + COUNT ( * ) ) AS col0, - 2 + - SUM ( - - 39 ) AS col0 FROM tab0 AS cor0 +---- +-119 +6 query I rowsort label-3023 SELECT DISTINCT - COUNT ( ( + col1 ) ) AS col1 FROM tab1 AS cor0 WHERE col2 IS NULL AND NOT col0 * - col1 IS NOT NULL @@ -18913,8 +19208,15 @@ SELECT DISTINCT + col1, 43 * - col0 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NUL # Datafusion - Expected - 85 # Datafusion - Expected - 0 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- cor0\.col1\) AS Int32\)\) \+ \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( + - col1 AS INTEGER ) + - + col1 AS col2, col0 AS col2 FROM tab1 cor0 +---- +0 +0 +0 +51 +85 +91 query I rowsort label-3092 SELECT - - 14 * ( col0 ) / + ( + col2 ) + 7 * - col2 + col2 * + + 56 AS col1 FROM tab0 AS cor0 @@ -20252,8 +20554,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 97 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col1 AS col2" at position 0 and "Int64\(68\) \+ \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * + ( + col1 ) AS col2, + 68 + - col1 AS col2 FROM tab0 AS cor0 +---- +-13 +1215 +1827 +47 +67 +97 query I rowsort label-3308 SELECT SUM ( - + ( + col0 ) ) FROM tab1 AS cor0 WHERE NOT NULL > 63 @@ -20554,8 +20863,15 @@ SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL # Datafusion - Expected - 47 # Datafusion - Expected - -99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 col0, col2 AS col0 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +10 +47 +99 query I rowsort SELECT col1 FROM tab0 AS cor0 WHERE col0 <> NULL @@ -21027,8 +21343,15 @@ SELECT ALL + 53 + - col2 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - 148 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \+ cor0\.col2 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 90 + + ( + col2 ) col0, col1 AS col0 FROM tab2 AS cor0 +---- +113 +130 +148 +51 +67 +77 query I rowsort label-3439 SELECT - - ( + col1 ) / 42 + + 9 / + col0 FROM tab1 AS cor0 @@ -21278,8 +21601,15 @@ SELECT DISTINCT - + 89 + + col0 FROM tab0 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - -91 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 col1, + 77 AS col1 FROM tab1 cor0 +---- +-51 +-85 +-91 +77 +77 +77 query I rowsort label-3475 SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1, tab1 AS cor0 @@ -21544,8 +21874,15 @@ SELECT DISTINCT - COUNT ( DISTINCT + + col1 ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 11 # Datafusion - Expected - -2480 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \+ \(\- Int64\(\-28\)\) \* \(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col1 \- Int64\(\-6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col2 + - - 28 * - col0 col0, col1 - - 6 AS col0 FROM tab1 AS cor0 +---- +-1332 +-2321 +-2480 +11 +20 +53 query II rowsort SELECT ALL col2, col0 * - 4 AS col0 FROM tab0 AS cor0 @@ -22635,8 +22972,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 16 AS col1, - COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +-16 +-3 query II rowsort label-3690 SELECT ALL COUNT ( * ) AS col1, + 34 AS col0 FROM tab2 AS cor0 @@ -22706,8 +23046,11 @@ 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\(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\. +query II valuesort SELECT ALL + - COUNT ( * ) col2, + COUNT ( * ) * + - 51 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 +---- +-459 +-9 query I rowsort SELECT 24 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -22725,8 +23068,15 @@ SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE col2 >= NULL # Datafusion - Expected - 77 # Datafusion - Expected - 96 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, 77 AS col0 FROM tab1 AS cor0 +---- +59 +68 +77 +77 +77 +96 query I rowsort SELECT ALL - col1 * - col0 + - 75 col0 FROM tab2 AS cor0 @@ -23312,8 +23662,15 @@ SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col0 / - 31 # Datafusion - Expected - 47 # Datafusion - Expected - -98 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 98 AS col2, + col1 AS col2 FROM tab1 +---- +-98 +-98 +-98 +14 +47 +5 query III rowsort SELECT * FROM tab2 WHERE NOT ( - + col1 ) IS NOT NULL @@ -24134,8 +24491,11 @@ SELECT col0 * col2 * + 35 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + 20 col2 FROM tab1 +---- +20 +3 query I rowsort label-3940 SELECT DISTINCT 59 * - 47 * + - col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 @@ -24149,8 +24509,15 @@ NULL # Datafusion - Expected - 83 # Datafusion - Expected - -529 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab2\.col2\)\) \* \(\- tab2\.col2\) AS col2" at position 0 and "tab2\.col1 \+ tab2\.col1 \+ Int64\(\-51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - - col2 ) * - col2 AS col2, col1 + col1 + - 51 AS col2 FROM tab2 +---- +-1600 +-3364 +-529 +103 +51 +83 query I rowsort label-3942 SELECT + 25 * COUNT ( + + 46 ) AS col1 FROM tab0 @@ -24509,8 +24876,11 @@ SELECT 84 / + ( + COUNT ( * ) ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(DISTINCT cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1, COUNT ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0 +---- +3 +NULL query I rowsort label-4000 SELECT + - 62 - - COUNT ( * ) FROM tab0 AS cor0 @@ -25016,8 +25386,15 @@ SELECT 34 * + 78 col2, 5 FROM tab2 # Datafusion - Expected - 69 # Datafusion - Expected - 75 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, 69 AS col2 FROM tab2 +---- +46 +64 +69 +69 +69 +75 query I rowsort SELECT ( col2 ) * + col1 * col0 AS col1 FROM tab1 @@ -27050,8 +27427,15 @@ SELECT + 99 * - ( + - col0 ) AS col2 FROM tab2 # Datafusion - Expected - -4277 # Datafusion - Expected - 95 # Datafusion - Expected - -714 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 0 and "\(\- cor0\.col1\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 95 AS col1, - col1 * + col0 AS col1 FROM tab1 AS cor0 +---- +-425 +-4277 +-714 +95 +95 +95 query I rowsort SELECT + col0 + - col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL @@ -27478,8 +27862,15 @@ NULL # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, col0 col1 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT DISTINCT - 4 * col2 + + ( - col2 ) col0 FROM tab1 cor0 @@ -29380,8 +29771,15 @@ SELECT ALL - MIN ( ALL - + col0 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 705 # Datafusion - Expected - -99 # Datafusion - Expected - 9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col2 \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, col2 * col0 col0 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +705 +870 +9603 query I rowsort label-4803 SELECT DISTINCT SUM ( + - col0 ) FROM tab1 AS cor0 @@ -29458,8 +29856,15 @@ NULL # Datafusion - Expected - -140420 # Datafusion - Expected - 91 # Datafusion - Expected - -173264 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col2" at position 0 and "tab1\.col2 \* Int64\(28\) \* \(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 91 AS col2, col2 * 28 * + - col0 AS col2 FROM tab1 +---- +-137088 +-140420 +-173264 +91 +91 +91 query I rowsort label-4816 SELECT + COUNT ( * ) + - 72 FROM tab1 @@ -29954,8 +30359,15 @@ SELECT + 91 * - - ( COUNT ( * ) ) AS col0, 75 FROM tab1 # Datafusion - Expected - 77 # Datafusion - Expected - -58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 AS col0, + col1 AS col0 FROM tab2 cor0 +---- +-23 +-40 +-58 +51 +67 +77 query I rowsort SELECT - - 96 FROM tab0 cor0 @@ -30079,8 +30491,12 @@ NULL # Datafusion - Expected - -3 # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - COUNT ( * ), COUNT ( * ) col1, - - COUNT ( * ) AS col1 FROM tab0 +---- +-3 +3 +3 query II rowsort SELECT DISTINCT - - 12 * col0, col2 - - 61 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 * col1 * - 94 IS NOT NULL @@ -30513,8 +30929,15 @@ SELECT - - COUNT ( * ) FROM tab0 WHERE NOT col0 * - - col2 * + col2 <= NULL # Datafusion - Expected - 47 # Datafusion - Expected - 21 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 col0, col1 AS col0 FROM tab1 +---- +14 +21 +21 +21 +47 +5 query I rowsort SELECT - ( - + col1 ) / 62 + - col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL < NULL ) @@ -32463,8 +32886,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - + COUNT ( * ) ) AS col0, - COUNT ( * ) AS col0 FROM tab0 +---- +-3 +-3 query I rowsort SELECT ALL + + 58 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -32710,8 +33136,15 @@ SELECT DISTINCT + - 44 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 # Datafusion - Expected - 494508 # Datafusion - Expected - 97 # Datafusion - Expected - 551348 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "tab0\.col0 \* Int64\(98\) \* Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, col0 * 98 * + 58 AS col1 FROM tab0 +---- +15 +494508 +551348 +85260 +87 +97 query I rowsort label-5360 SELECT MAX ( 95 ) FROM tab1 AS cor0 @@ -32992,8 +33425,15 @@ SELECT + MIN ( ALL ( - + 68 ) ) AS col2 FROM tab2, tab2 AS cor0 # Datafusion - Expected - 96 # Datafusion - Expected - NULL # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(62\)\) \* \(\- tab0\.col1\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) * - + 62 * - + col1 AS col0, 96 AS col0 FROM tab0 +---- +96 +96 +96 +NULL +NULL +NULL query II rowsort SELECT ALL + 33 AS col0, - 74 FROM tab2 @@ -33269,8 +33709,15 @@ SELECT ALL 29 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - -4624 # Datafusion - Expected - 5 # Datafusion - Expected - -3481 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "tab1\.col2 \* \(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, + col2 * - col2 AS col0 FROM tab1 +---- +-3481 +-4624 +-9216 +14 +47 +5 query I rowsort SELECT ALL col1 * - 15 AS col0 FROM tab2 @@ -33629,8 +34076,15 @@ SELECT ALL 22 + col0 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -52 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 52 AS col0, - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 +---- +-52 +-52 +-52 +NULL +NULL +NULL query I rowsort label-5516 SELECT + - CAST ( NULL AS INTEGER ) + - + col1 FROM tab2 AS cor0 @@ -34618,8 +35072,11 @@ SELECT DISTINCT * FROM tab2 WHERE + 65 * + - 83 < - 39 * + + col0 + + col1 + + - # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, - 48 AS col2 FROM tab1 +---- +-48 +NULL query III rowsort SELECT * FROM tab1 WHERE NOT 35 + - 29 IS NULL @@ -35242,8 +35699,11 @@ SELECT + 1 * COUNT ( * ) FROM tab1 # 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\(6\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( 6 ) AS col2, + 85 AS col2 FROM tab2 +---- +6 +85 query I rowsort SELECT DISTINCT col1 + 6 FROM tab0 @@ -35799,8 +36259,11 @@ SELECT - col2 AS col2, 64 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 74 col1, 90 AS col1 FROM tab0 AS cor0 +---- +-74 +90 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT + 80 + + col1 IS NULL @@ -36476,8 +36939,15 @@ SELECT ALL 99 - + col2 * - col0 FROM tab0 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - -91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0, - col0 FROM tab1 AS cor0 +---- +-51 +-51 +-85 +-85 +-91 +-91 query II rowsort SELECT DISTINCT + col0 * col1 + col1, 28 AS col0 FROM tab0 AS cor0 @@ -36502,8 +36972,9 @@ SELECT CAST ( 4 AS INTEGER ) AS col0 FROM tab1 AS cor0 4 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND NULL +---- query I rowsort SELECT ALL + col1 * - col0 - col0 - + col1 AS col0 FROM tab2 @@ -37233,8 +37704,9 @@ SELECT ALL - - 73, col1 FROM tab0 AS cor0 81 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 AS col1, - 94 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + col2 +---- query I rowsort SELECT DISTINCT - ( + + 29 ) * 64 AS col0 FROM tab2 @@ -37564,8 +38036,15 @@ SELECT - col0 AS col0, col0 col1 FROM tab0 # Datafusion - Expected - -59 # Datafusion - Expected - 91 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "\(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, - col2 AS col2 FROM tab1 +---- +-59 +-68 +-96 +51 +85 +91 query II rowsort SELECT ALL + 77 AS col0, 52 FROM tab2 @@ -40400,8 +40879,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, 24 AS col0 FROM tab2 +---- +-3 +24 query II rowsort SELECT ALL + + 95, - col2 FROM tab0 WHERE NOT col1 IS NOT NULL @@ -40862,8 +41344,15 @@ SELECT + + col0 + + - 18 FROM tab2 AS cor0 # Datafusion - Expected - -120 # Datafusion - Expected - 5 # Datafusion - Expected - -120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ cor0\.col1 AS col2" at position 0 and "Int64\(\-20\) \* Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + col1 AS col2, - 20 * + 6 AS col2 FROM tab2 AS cor0 +---- +-120 +-120 +-120 +-8 +13 +5 query I rowsort label-6719 SELECT ALL + ( + + COUNT ( ALL + 57 ) ) AS col2 FROM tab2 AS cor0 @@ -41374,8 +41863,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +-3 +3 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN col0 / + col0 AND NULL @@ -42702,8 +43194,11 @@ SELECT ALL col2 * 62 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / tab2\.col1 / \(\- tab2\.col0\) AS col2" at position 0 and "Int64\(\-4\) \+ Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + col1 / - col0 AS col2, - 4 + + 75 AS col2 FROM tab2 +---- +71 +NULL query I rowsort label-7020 SELECT - 54 * COUNT ( * ) FROM tab2 @@ -42970,8 +43465,10 @@ SELECT + 93 + - col2 - col0 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to d3068b7c6fbac2f2b8b19a57ed295939 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 41 AS col0, 27 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 +---- +18 values hashing to 5bd39c761aa4adeb4d75be1d47a63d54 query I rowsort label-7065 SELECT COUNT ( * ) * 79 FROM tab2 @@ -43562,8 +44059,15 @@ SELECT ALL 84 + + col2 + + ( + + col1 ) AS col1 FROM tab2 cor0 # Datafusion - Expected - -870 # Datafusion - Expected - 59 # Datafusion - Expected - -9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "cor0\.col0 \* \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 59 AS col0, col0 * - col2 AS col0 FROM tab0 AS cor0 +---- +-705 +-870 +-9603 +59 +59 +59 query I rowsort SELECT ALL - col0 - + - col2 AS col0 FROM tab0 @@ -43788,8 +44292,15 @@ SELECT - col1 - + col1 + - 98 FROM tab2 # Datafusion - Expected - -47 # Datafusion - Expected - 1 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 AS col0, - col2 AS col0 FROM tab0 +---- +-10 +-47 +-99 +1 +1 +1 query I rowsort SELECT ALL + 74 * col2 FROM tab0 @@ -43863,8 +44374,15 @@ SELECT ALL - col1 / + col2 col1, + col2 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col1, + col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-7212 SELECT 32 * + 13 * + COUNT ( * ) AS col1 FROM tab1 @@ -44410,8 +44928,15 @@ SELECT - col1 AS col1, + 49 AS col2 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + + col1 ) col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 +---- +1 +21 +81 +NULL +NULL +NULL query II rowsort SELECT DISTINCT 90, - col2 AS col0 FROM tab1 @@ -46350,8 +46875,15 @@ SELECT ALL - + col1 + - 99 + - col1 / - - col1 FROM tab1 AS cor0 # Datafusion - Expected - 12 # Datafusion - Expected - 98415 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- cor0\.col1\) \* cor0\.col1 AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * + - col1 * + col1 AS col2, 12 AS col2 FROM tab0 AS cor0 +---- +12 +12 +12 +38367 +97 +98415 query I rowsort label-7624 SELECT col1 * + - col1 * + col1 * ( - + 5 ) - - 3 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 @@ -48139,8 +48671,9 @@ SELECT MIN ( + 17 ) AS col1 FROM tab2 AS cor0 WHERE col2 + col0 * 49 IN ( 40, 17 NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col0 / cor0\.col2 AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 * col0 / + col2 AS col1, 7 col1 FROM tab1 AS cor0 WHERE col2 >= NULL +---- query I rowsort label-7929 SELECT ALL + ( + - COUNT ( * ) ) AS col1 FROM tab1 cor0 @@ -48341,8 +48874,11 @@ SELECT + - ( + 74 ) AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, + 80 col1 FROM tab0 AS cor0 +---- +3 +80 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 * + col2 ) IS NOT NULL @@ -48585,8 +49121,15 @@ SELECT ALL + col2 / col2 AS col1 FROM tab2 cor0 # Datafusion - Expected - 55 # Datafusion - Expected - 58 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "CAST\(Int64\(55\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, CAST ( 55 AS INTEGER ) AS col1 FROM tab2 cor0 +---- +23 +40 +55 +55 +55 +58 query II rowsort label-8001 SELECT MIN ( + 24 ) + + MAX ( ALL - - col0 ), + COUNT ( * ) AS col1 FROM tab0 AS cor0 @@ -48739,8 +49282,15 @@ SELECT + 34 * - col1 + + col1 FROM tab1 cor0 # Datafusion - Expected - -308 # Datafusion - Expected - 928 # Datafusion - Expected - -268 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* cor0\.col2 AS col2" at position 0 and "Int64\(\-4\) \* \(\- \(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 16 * col2 AS col2, - 4 * - - col1 AS col2 FROM tab2 AS cor0 +---- +-204 +-268 +-308 +368 +640 +928 query I rowsort label-8026 SELECT DISTINCT col2 / + - 57 FROM tab0 @@ -49163,8 +49713,11 @@ SELECT ALL col1 - - + CAST ( - 31 AS INTEGER ) + - + col1 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, COUNT ( + col0 ) AS col1 FROM tab1 +---- +3 +3 query II rowsort label-8094 SELECT - 85, SUM ( ALL - - col0 ) AS col1 FROM tab0 AS cor0 @@ -49435,8 +49988,11 @@ SELECT - + ( + 3 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + COUNT ( * ) col1, - ( COUNT ( * ) ) + 1 AS col1 FROM tab2 AS cor0 +---- +-2 +3 query I rowsort label-8140 SELECT DISTINCT - + MAX ( ALL + - ( + 65 ) ) AS col2 FROM tab1 AS cor0 @@ -49796,8 +50352,15 @@ SELECT ALL + SUM ( - + col1 ) AS col2 FROM tab2 # Datafusion - Expected - -76 # Datafusion - Expected - 91 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, - 76 AS col2 FROM tab1 +---- +-76 +-76 +-76 +51 +85 +91 query I rowsort SELECT ALL col0 * + 75 AS col1 FROM tab0 @@ -49986,8 +50549,15 @@ SELECT + MAX ( ALL + + col2 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -59 # Datafusion - Expected - 75 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col2 \- Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, col2 - + 99 col2 FROM tab2 AS cor0 +---- +-41 +-59 +-76 +46 +64 +75 query I rowsort SELECT + - col1 * + + col1 AS col2 FROM tab0 AS cor0 @@ -51858,8 +52428,15 @@ SELECT DISTINCT COUNT ( * ) - COUNT ( * ) * 84 FROM tab2 cor0 WHERE NULL IS NOT # Datafusion - Expected - 0 # Datafusion - Expected - -714 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \* cor0\.col1 AS col1" at position 0 and "Int64\(14\) / Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 34 * + col1 AS col1, + 14 / 83 AS col1 FROM tab0 AS cor0 +---- +-2754 +-34 +-714 +0 +0 +0 query I rowsort label-8527 SELECT ALL MAX ( DISTINCT - + ( ( + - 96 ) ) ) FROM tab1 @@ -52160,8 +52737,15 @@ SELECT DISTINCT * FROM tab0 WHERE NOT col1 < NULL # Datafusion - Expected - -32 # Datafusion - Expected - 3 # Datafusion - Expected - -672 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "cor0\.col1 \* Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 AS col1, + col1 * - 32 AS col1 FROM tab0 AS cor0 +---- +-2592 +-32 +-672 +3 +3 +3 query II rowsort SELECT ALL col0, - col0 - - ( 63 ) FROM tab1 AS cor0 @@ -52218,8 +52802,15 @@ SELECT - 42 / - col2 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - 470 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* cor0\.col1 \+ cor0\.col1 \* Int64\(99\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * col1 + col1 * + 99 AS col2, ( + - col2 ) AS col2 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +1190 +2444 +470 query I rowsort SELECT DISTINCT 56 * - - 83 + 88 AS col2 FROM tab1 AS cor0 @@ -52634,8 +53225,15 @@ SELECT - - MIN ( ALL col2 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 97 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* \(\- tab0\.col1\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * - + col1 AS col0, 64 AS col0 FROM tab0 WHERE NOT - col0 IS NULL +---- +1215 +1827 +64 +64 +64 +97 query I rowsort SELECT + 78 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL @@ -52784,8 +53382,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col2 ) / + col2 <= col1 + - 0 # Datafusion - Expected - 754 # Datafusion - Expected - -231 # Datafusion - Expected - 520 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col2 \* Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 3 * - col1 AS col2, + col2 * + 13 col2 FROM tab2 AS cor0 +---- +-153 +-201 +-231 +299 +520 +754 query I rowsort label-8671 SELECT ALL 53 / 64 AS col2 FROM tab1 @@ -53166,8 +53771,15 @@ SELECT ALL * FROM tab2 WHERE NOT - col1 + - ( col2 ) <= - 78 * col1 # Datafusion - Expected - -68 # Datafusion - Expected - -960 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* Int64\(10\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 * + 10 AS col2, - col2 AS col2 FROM tab1 AS cor0 +---- +-59 +-590 +-68 +-680 +-96 +-960 query II rowsort label-8734 SELECT + COUNT ( * ) * + + COUNT ( col1 ) AS col0, 33 FROM tab0 AS cor0 @@ -53787,8 +54399,11 @@ SELECT col2, - 12 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 AS col1, COUNT ( * ) AS col1 FROM tab1 +---- +2 +3 query I rowsort label-8842 SELECT ALL COUNT ( * ) * 55 FROM tab2 @@ -54036,8 +54651,15 @@ SELECT ALL + col2 * + 4 + + col0 AS col1 FROM tab1 # Datafusion - Expected - 49 # Datafusion - Expected - 77 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, 49 AS col2 FROM tab2 AS cor0 +---- +49 +49 +49 +51 +67 +77 query I rowsort label-8884 SELECT + MAX ( - 85 ) AS col0 FROM tab0 cor0 @@ -54336,8 +54958,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + - CAST ( NULL AS INTEGER ) + ( - + # Datafusion - Expected - -85 # Datafusion - Expected - NULL # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) + + col0 AS col2, ( - col0 ) col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +NULL +NULL +NULL query I rowsort label-8933 SELECT ALL + col1 / - col0 + + ( col2 ) AS col2 FROM tab1 AS cor0 @@ -54996,8 +55625,15 @@ SELECT DISTINCT - 17 FROM tab2 WHERE - col1 NOT IN ( ( - col2 ), + col1 ) # Datafusion - Expected - 2560 # Datafusion - Expected - 75 # Datafusion - Expected - 4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col2 \* tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, col2 * col0 AS col1 FROM tab2 +---- +1058 +2560 +4350 +46 +64 +75 query I rowsort label-9037 SELECT - MIN ( + 68 ) AS col2 FROM tab1 @@ -55634,8 +56270,15 @@ SELECT DISTINCT + - ( + ( - 17 ) ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ cor0\.col1 / Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 AS col2, CAST ( NULL AS INTEGER ) + col1 / + 49 AS col2 FROM tab0 cor0 +---- +10 +47 +99 +NULL +NULL +NULL query I rowsort SELECT + - 31 + ( col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT 79 IS NOT NULL @@ -55655,8 +56298,10 @@ SELECT 62 + + ( 91 ) + + 80 * + 16 FROM tab1, tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to e8c3ace73afc8aede751cf2b387c653b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* \(\- \(\- tab0\.col1\)\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col1 * - - col1 AS col2, col1 AS col2, + - col1 FROM tab0 +---- +9 values hashing to ccffec9173296dabf788a7ee0ab9e226 query I rowsort SELECT DISTINCT col2 * - col1 * - col0 FROM tab0 @@ -55784,8 +56429,15 @@ SELECT + col2 * - 14 + - 91 * + col2 FROM tab0 # Datafusion - Expected - 21 # Datafusion - Expected - 0 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \+ tab0\.col0 AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 + + + col0 AS col2, + col1 AS col2 FROM tab0 +---- +0 +0 +0 +1 +21 +81 query I rowsort label-9167 SELECT + + COUNT ( ALL - 97 ) FROM tab1 cor0 @@ -56728,8 +57380,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, - COUNT ( * ) col2 FROM tab1 +---- +-3 +-3 query I rowsort SELECT 9 * - 49 AS col2 FROM tab1 @@ -56942,8 +57597,15 @@ SELECT SUM ( - 89 ) * - 32 AS col1 FROM tab0 # Datafusion - Expected - -16 # Datafusion - Expected - 735 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* \(\- Int64\(\-49\)\) AS col0" at position 0 and "Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * - - 49 col0, - 16 AS col0 FROM tab0 +---- +-16 +-16 +-16 +4263 +4753 +735 query I rowsort label-9366 SELECT 48 * COUNT ( * ) * 21 AS col1 FROM tab1 @@ -57023,8 +57685,9 @@ SELECT - 14 * - ( + + ( - col0 ) ) FROM tab0 AS cor0 -210 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* Int64\(\-43\) / \(\- cor0\.col1\) AS col0" at position 0 and "Int64\(93\) \* Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + col1 ) * - 43 / - col1 AS col0, + 93 * + 58 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL +---- query I rowsort label-9380 SELECT ALL + - COUNT ( * ) * + 37 * + 50 AS col1 FROM tab0 cor0 @@ -58305,8 +58968,15 @@ SELECT DISTINCT SUM ( DISTINCT + 98 ) + + + 9 + COUNT ( * ) * - COUNT ( * ) col0 # Datafusion - Expected - 64 # Datafusion - Expected - 15 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "\(\- \(\- cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 15 AS col2, - ( - col0 ) AS col2 FROM tab2 AS cor0 +---- +15 +15 +15 +46 +64 +75 query I rowsort SELECT + + 2 * - col0 * - col2 FROM tab2 AS cor0 @@ -59130,8 +59800,15 @@ SELECT ( - col0 ) FROM tab2 AS cor0 WHERE NOT col0 IS NULL # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col2, col2 AS col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT DISTINCT + 66 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 @@ -59145,8 +59822,15 @@ SELECT DISTINCT + 66 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - -34 # 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\)\) AS col0" at position 0 and "cor0\.col0 \+ Int64\(\-80\) \+ \(\- cor0\.col2\) / cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - + CAST ( NULL AS FLOAT8 ) AS col0, col0 + - 80 + - col2 / col0 AS col0 FROM tab2 AS cor0 +---- +-16 +-34 +-5 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN + ( - - col1 ) AND - - col1 @@ -59560,8 +60244,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) / - 81 col2, 25 AS col2 FROM tab2 +---- +0 +25 query I rowsort SELECT - 52 FROM tab1 WHERE NOT - 99 IS NULL diff --git a/data/sqlite/random/aggregates/slt_good_40.slt b/data/sqlite/random/aggregates/slt_good_40.slt index 0c36f99..b5d2f18 100644 --- a/data/sqlite/random/aggregates/slt_good_40.slt +++ b/data/sqlite/random/aggregates/slt_good_40.slt @@ -159,8 +159,11 @@ SELECT + col0, col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "tab0\.col0 \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 38 AS col0, col0 + - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 +---- +38 +NULL query I rowsort SELECT + ( - - col0 ) * + col2 + + col2 + + - 80 * - - 7 * col2 col1 FROM tab1 @@ -412,8 +415,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT 11 * col0 IS NOT NULL # Datafusion - Expected - -47 # Datafusion - Expected - -47 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 47 AS col1, - col1 AS col1 FROM tab1 +---- +-14 +-47 +-47 +-47 +-47 +-5 query I rowsort label-64 SELECT - + ( - 74 ) * - + COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NOT NULL > NULL @@ -1110,8 +1120,15 @@ SELECT + col1 * + + col2 FROM tab0 AS cor0 # Datafusion - Expected - -3981312 # Datafusion - Expected - -48 # Datafusion - Expected - -5467500 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col0" at position 0 and "Int64\(36\) \* Int64\(27\) \* \(\- cor0\.col0\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 48 AS col0, 36 * + 27 * - col0 * col0 AS col0 FROM tab2 AS cor0 +---- +-2056752 +-3981312 +-48 +-48 +-48 +-5467500 query I rowsort label-175 SELECT DISTINCT col0 + + col1 / + col0 + + + col1 AS col0 FROM tab0 cor0 @@ -1373,8 +1390,10 @@ SELECT DISTINCT * FROM tab0 WHERE NOT - ( + 96 ) >= - + col2 * + - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 72c08bd85b7cc04773156d28387764a7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* \(\- tab1\.col0\) \* \(\- tab1\.col0\) AS col1" at position 0 and "Int64\(\-63\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + col1 * - + col0 * - col0 AS col1, col2 - - ( - - col1 ) AS col0, + - 63 AS col1 FROM tab1 +---- +9 values hashing to 960b649e419dfd9a4b851e6766fd1b0b query III rowsort SELECT * FROM tab0 WHERE 23 / + col2 * - - col2 + - col0 IN ( - + 76 ) @@ -1572,8 +1591,15 @@ SELECT DISTINCT + COUNT ( * ) - - 90 - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOI # Datafusion - Expected - 47 # Datafusion - Expected - -27 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 27 AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +-27 +-27 +-27 +10 +47 +99 query I rowsort SELECT ( col1 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL @@ -1833,8 +1859,11 @@ SELECT DISTINCT - col0 AS col0, col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(Int64\(79\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, CAST ( 79 AS INTEGER ) AS col1 FROM tab2 +---- +3 +79 query I rowsort SELECT DISTINCT 34 * + 83 - 88 FROM tab1 @@ -1844,8 +1873,11 @@ SELECT DISTINCT 34 * + 83 - 88 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 44 AS col1, - 76 AS col1 FROM tab0 +---- +-76 +44 query I rowsort SELECT col2 - - + col0 FROM tab2 @@ -2588,8 +2620,15 @@ SELECT ALL 91 AS col2 FROM tab0 cor0 # Datafusion - Expected - 97 # Datafusion - Expected - 81 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col2 \- \(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, + col2 - - + col0 AS col2 FROM tab0 +---- +1 +196 +21 +62 +81 +97 query I rowsort SELECT ALL ( - + 1 ) AS col1 FROM tab1 @@ -4413,8 +4452,15 @@ SELECT 6 * + COUNT ( * ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -22 # Datafusion - Expected - 58 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(\-22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, - 22 AS col1 FROM tab2 AS cor0 +---- +-22 +-22 +-22 +23 +40 +58 query I rowsort label-720 SELECT ALL - - col0 - - col1 FROM tab1 WHERE NOT - - CAST ( NULL AS INTEGER ) * + col2 NOT BETWEEN NULL AND NULL @@ -5141,8 +5187,15 @@ SELECT ALL 17 AS col2 FROM tab0 WHERE + + 69 + + 74 IS NOT NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0, col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-839 SELECT DISTINCT - col2 / 63 AS col2 FROM tab2 AS cor0 @@ -5958,8 +6011,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 * 4 - - col1 + - - 15 * + 74 + - + 5 # Datafusion - Expected - 576 # Datafusion - Expected - 97 # Datafusion - Expected - 576 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col1 AS col1" at position 0 and "Int64\(8\) \* \(\- Int64\(\-72\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 * col1 AS col1, 8 * - - 72 AS col1 FROM tab0 AS cor0 +---- +1215 +1827 +576 +576 +576 +97 query I rowsort SELECT ALL - 92 AS col0 FROM tab2 AS cor0 WHERE NULL >= col1 * + + col2 @@ -6479,8 +6539,11 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * 69 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - 56 IS NULL +---- +0 +0 query II rowsort SELECT ALL - - 44 + + col1, + 84 AS col1 FROM tab0 AS cor0 @@ -6697,8 +6760,9 @@ NULL 9801 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \* tab1\.col1 AS col0" at position 0 and "\(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col2 * col1 col0, - col1 AS col0 FROM tab1 WHERE NOT + col2 IS NOT NULL +---- query I rowsort SELECT ALL - 70 + + - 0 FROM tab1 @@ -6958,8 +7022,15 @@ SELECT ALL - COUNT ( * ) / + 84 + + COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOI # Datafusion - Expected - -47 # Datafusion - Expected - -65 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 65 AS col1, - col1 AS col1 FROM tab1 +---- +-14 +-47 +-5 +-65 +-65 +-65 query I rowsort SELECT ALL col1 FROM tab0 WHERE NOT - + 36 IS NOT NULL @@ -7567,8 +7638,15 @@ SELECT col2 * + col1 * + + col2 + - 62 * - 73 AS col0 FROM tab2 # Datafusion - Expected - -87 # Datafusion - Expected - 51 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col1" at position 0 and "\(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 51 AS col1, - col0 AS col1 FROM tab0 +---- +-15 +-87 +-97 +51 +51 +51 query I rowsort label-1233 SELECT SUM ( - ( - + 35 ) ) AS col1 FROM tab2 @@ -8185,8 +8263,9 @@ SELECT DISTINCT 91 / - + CAST ( NULL AS INTEGER ) FROM tab2 NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "\(\- tab1\.col0\) \* tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 col0, + ( + - col0 ) * + col2 AS col0 FROM tab1 WHERE NOT ( NULL ) >= - col0 +---- query I rowsort label-1344 SELECT ALL MAX ( + 83 ) FROM tab0 WHERE NOT - + col0 * 89 + ( + 2 ) = ( 73 ) * col1 @@ -8311,8 +8390,15 @@ SELECT - MAX ( col2 ) AS col2 FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - 76 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 76 col0, col2 AS col0 FROM tab2 +---- +23 +40 +58 +76 +76 +76 query I rowsort SELECT ALL + 89 * - col2 AS col1 FROM tab1 @@ -8714,8 +8800,15 @@ SELECT DISTINCT + 46 / - + MIN ( ALL - col1 ) col1 FROM tab2 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( col2 ), col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT - 43 AS col0 FROM tab2 WHERE + + col0 - 74 IS NULL @@ -8810,8 +8903,15 @@ SELECT - - MIN ( DISTINCT - + 3 ) col1 FROM tab2 AS cor0 # Datafusion - Expected - 32 # Datafusion - Expected - -85 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col2" at position 0 and "Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 85 AS col2, 32 AS col2 FROM tab0 AS cor0 +---- +-85 +-85 +-85 +32 +32 +32 query III rowsort SELECT * FROM tab0 cor0 WHERE NOT + col0 * - 47 * - 58 <> - + col2 + + 41 @@ -9369,8 +9469,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col1, - COUNT ( DISTINCT - - col2 ) + + 51 AS col1 FROM tab0 AS cor0 +---- +-3 +48 query II rowsort label-1530 SELECT ALL - COUNT ( - 21 ) AS col2, - COUNT ( * ) FROM tab1 @@ -9521,8 +9624,10 @@ SELECT - 41 * MAX ( DISTINCT - col1 ) col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 613701d85427cad0c3e3c6799cc31cc3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 1 and "\(\- tab2\.col1\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 29, col0 col2, ( - col1 ) AS col2 FROM tab2 +---- +9 values hashing to a6289dfd70fa92fb3c930f2e27a741c4 query I rowsort label-1553 SELECT MIN ( - 13 ) * MAX ( col1 ) AS col1 FROM tab0 @@ -9814,8 +9919,15 @@ SELECT ALL - - COUNT ( col2 ) col0 FROM tab0 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - -81 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col1 AS col0, 87 AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +87 +87 +87 query I rowsort SELECT DISTINCT + + col1 FROM tab1 AS cor0 WHERE - 73 <> + - col0 @@ -9858,8 +9970,15 @@ SELECT ALL - + col1 * - - 62 + + col2 + - col2 * - + ( + col0 ), 85 AS col0 FROM # Datafusion - Expected - -73 # Datafusion - Expected - -5542 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \* cor0\.col1 \+ cor0\.col0 \* cor0\.col1 \* \(\- Int64\(59\)\) \+ cor0\.col0 \+ cor0\.col0 \+ Int64\(14\) \* \(\- cor0\.col1\) \* cor0\.col1 AS col2" at position 0 and "\(\- Int64\(73\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - ( - col1 ) * + col1 + + col0 * + col1 * - ( 59 ) + + col0 + + col0 + + 14 * - col1 * + col1 col2, - ( 73 ) col2 FROM tab0 AS cor0 +---- +-113352 +-156948 +-5542 +-73 +-73 +-73 query I rowsort SELECT DISTINCT + + 41 + col1 * - - col0 AS col1 FROM tab2 AS cor0 @@ -10153,8 +10272,11 @@ SELECT DISTINCT 0 - col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + COUNT ( * ) ) col0, - COUNT ( * ) - - 61 AS col0 FROM tab0 +---- +3 +58 query III rowsort SELECT * FROM tab1 WHERE NOT - 20 >= NULL @@ -10328,8 +10450,11 @@ SELECT + 11 + 83 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT tab1\.col0\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MAX ( DISTINCT col0 ) - COUNT ( * ) AS col2, 27 AS col2 FROM tab1 +---- +27 +88 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT 40 * - 64 + - - col0 IS NULL @@ -10364,8 +10489,15 @@ SELECT DISTINCT - SUM ( ALL - col0 ) AS col0 FROM tab1 # Datafusion - Expected - 2379 # Datafusion - Expected - 96 # Datafusion - Expected - 3331 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "Int64\(67\) \+ tab1\.col2 \* Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, 67 + + + col2 * + + 34 col0 FROM tab1 +---- +2073 +2379 +3331 +59 +68 +96 query I rowsort SELECT 74 * + + col1 AS col2 FROM tab0 @@ -10631,8 +10763,15 @@ SELECT ALL - col2 AS col2 FROM tab0 WHERE NULL IS NULL # Datafusion - Expected - -3133 # Datafusion - Expected - -75 # Datafusion - Expected - -3936 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col1" at position 0 and "\(\- tab2\.col1\) \* tab2\.col2 \+ tab2\.col0 \- tab2\.col1 \- \(\- \(\- tab2\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col1, - ( + + col1 ) * + col2 + col0 - col1 - - - col2 AS col1 FROM tab2 +---- +-1201 +-3133 +-3936 +-46 +-64 +-75 query II rowsort SELECT DISTINCT + col1, - col2 FROM tab1 AS cor0 WHERE NOT - col2 > NULL @@ -10858,8 +10997,15 @@ SELECT DISTINCT 42 * + - col2 col2 FROM tab1 # Datafusion - Expected - 48 # Datafusion - Expected - -58 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, 48 AS col0 FROM tab2 +---- +-23 +-40 +-58 +48 +48 +48 query I rowsort SELECT + col1 * - 14 AS col1 FROM tab1 AS cor0 @@ -11615,8 +11761,15 @@ SELECT - COUNT ( * ) + - COUNT ( 19 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( ( - # Datafusion - Expected - 59 # Datafusion - Expected - 7 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(14\) / cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 * 14 / + col2 AS col1, ( + col2 ) col1 FROM tab1 AS cor0 +---- +18 +20 +59 +68 +7 +96 query I rowsort SELECT - + 63 AS col0 FROM tab2 AS cor0 @@ -11720,8 +11873,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT ( + + COUNT ( * ) ), COUNT ( * ) FROM tab0 AS cor0 +---- +3 +3 query I rowsort label-1923 SELECT + + COUNT ( + - col0 ) FROM tab1 AS cor0 @@ -14453,8 +14609,15 @@ SELECT - col2 * + ( + col1 ) FROM tab2 # Datafusion - Expected - -85 # Datafusion - Expected - 91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "\(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 col1, - col0 AS col1 FROM tab1 +---- +-51 +-85 +-91 +51 +85 +91 query I rowsort SELECT DISTINCT 26 * + col1 FROM tab0 @@ -14768,8 +14931,9 @@ SELECT DISTINCT + COUNT ( ALL - col1 ) AS col2 FROM tab2 3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\)" at position 0 and "\(\- tab0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2, - col2 FROM tab0 WHERE NOT ( + 15 ) NOT BETWEEN ( NULL ) AND NULL +---- query II rowsort SELECT 97, col2 FROM tab0 AS cor0 @@ -14873,8 +15037,11 @@ SELECT 93 AS col1, + col1 + col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +3 +NULL query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT 63 * col0 IS NULL @@ -15226,8 +15393,15 @@ SELECT * FROM tab1 WHERE + - 46 IS NOT NULL # Datafusion - Expected - 1 # Datafusion - Expected - 58 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \- \(\- Int64\(\-23\)\) AS col2" at position 0 and "\(\- tab0\.col2\) / \(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 - - - 23 col2, - col2 / - col0 AS col2 FROM tab0 +---- +-2 +-22 +0 +1 +3 +58 query I rowsort SELECT DISTINCT + - col2 FROM tab0 WHERE NOT col2 >= - col0 * + 37 + - col2 @@ -15629,8 +15803,15 @@ SELECT DISTINCT ( + 69 ) AS col0 FROM tab0 # Datafusion - Expected - 21 # Datafusion - Expected - -950697 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- tab0\.col0\) \* tab0\.col2 AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * + - col0 * col2 AS col2, col1 AS col2 FROM tab0 +---- +-33135 +-8700 +-950697 +1 +21 +81 query I rowsort label-2564 SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col2 FROM tab0 WHERE NOT ( NOT 53 * - col2 IS NULL ) @@ -15711,8 +15892,15 @@ SELECT ALL col2 / - + col2 - - - 72 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, col1 FROM tab1 cor0 +---- +14 +14 +47 +47 +5 +5 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL @@ -16481,8 +16669,15 @@ SELECT - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL # Datafusion - Expected - 81 # Datafusion - Expected - 27 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 27 AS col2, 81 col2 FROM tab1 +---- +27 +27 +27 +81 +81 +81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 @@ -16491,8 +16686,15 @@ SELECT ALL 27 AS col2, 81 col2 FROM tab1 # Datafusion - Expected - 81 # Datafusion - Expected - 96 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col0, + 81 AS col0 FROM tab1 +---- +59 +68 +81 +81 +81 +96 query I rowsort SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE ( - ( col2 ) ) BETWEEN 10 / col1 * col1 AND NULL @@ -17186,8 +17388,15 @@ SELECT - col1 * + - col1 AS col2 FROM tab1 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col0, + col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT ( - 86 ) col0 FROM tab2 @@ -18816,8 +19025,11 @@ SELECT DISTINCT + + COUNT ( col2 ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(\-20\)\)\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( ALL - 20 ) AS col2, + 53 AS col2 FROM tab0 +---- +20 +53 query I rowsort SELECT col0 * + + 29 FROM tab0 @@ -20658,8 +20870,15 @@ SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( col2 ) >= 52 # Datafusion - Expected - -67 # Datafusion - Expected - 77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( col1 ) AS col0, - col1 AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +51 +67 +77 query IIIIII rowsort SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL @@ -21742,8 +21961,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 +---- +3 +3 query I rowsort SELECT + col1 * - + 50 * - ( - + col2 ) FROM tab0 AS cor0 @@ -21896,8 +22118,10 @@ SELECT COUNT ( * ) + + - 88 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 4b239c5af1e7c50d69ae72e9b56b02ca -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "Int64\(7\) \* Int64\(82\) \- \(\- tab2\.col0\) \+ \(\- tab2\.col1\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - col0 AS col0, + col2 AS col1, + 7 * 82 - - col0 + + - col1 AS col0 FROM tab2 +---- +9 values hashing to ef1317cc1afb3dce22f4cfab95776e88 query III rowsort SELECT * FROM tab1 WHERE - 95 < 23 + + + 17 @@ -22532,8 +22756,15 @@ SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE + col1 BETWEEN - col2 * - + col0 + # Datafusion - Expected - 81 # Datafusion - Expected - 99 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, + 81 AS col0 FROM tab0 +---- +10 +47 +81 +81 +81 +99 query I rowsort SELECT 60 * col1 + + col0 AS col0 FROM tab1 @@ -25038,8 +25269,15 @@ NULL # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, col1 FROM tab2 cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-4149 SELECT - - col2 col0 FROM tab2 AS cor0 WHERE NOT + 34 * - col1 * - - col1 + + 36 + 86 + col1 / + + col2 - - 37 * + + CAST ( NULL AS FLOAT8 ) IS NULL @@ -26286,8 +26524,15 @@ SELECT DISTINCT + 81 * - 57 AS col1 FROM tab0 cor0 # Datafusion - Expected - 35 # Datafusion - Expected - 65 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 65 AS col0, 35 AS col0 FROM tab2 +---- +35 +35 +35 +65 +65 +65 query I rowsort SELECT DISTINCT col2 * + - col2 + - col0 FROM tab1 cor0 @@ -26491,8 +26736,11 @@ SELECT ALL + col0 / 31 - - col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(45\)\)\) AS col2" at position 0 and "Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( ALL ( 45 ) ) AS col2, + 25 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) +---- +-45 +25 query I rowsort SELECT 40 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 @@ -26621,8 +26869,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( COUNT ( * ) ), COUNT ( * ) FROM tab2 +---- +3 +3 query I rowsort label-4422 SELECT COUNT ( DISTINCT - + 49 ) col1 FROM tab2 AS cor0 @@ -27787,8 +28038,15 @@ SELECT ALL 38 * + + col1 FROM tab1 # Datafusion - Expected - -68 # Datafusion - Expected - -96 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "Int64\(23\) \+ \(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col2, 23 + - col0 AS col2 FROM tab1 +---- +-28 +-59 +-62 +-68 +-68 +-96 query I rowsort SELECT + ( + 74 ) * + + 29 * - col1 FROM tab0 @@ -28270,8 +28528,10 @@ SELECT DISTINCT * FROM tab0 WHERE ( + col2 ) NOT BETWEEN + col2 AND + - 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 085c7a4435b54393584791d66798bea5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col2 AS col0, 10, + 83 AS col0 FROM tab0 +---- +9 values hashing to afcd88df0aeeac5d0b8c03e81af212a8 query II rowsort SELECT DISTINCT 91, col2 FROM tab0 @@ -29023,8 +29283,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT ( + col2 / col0 + - 48 ) <= + col1 + + 8 # Datafusion - Expected - 77 # Datafusion - Expected - -75 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - col0 ) col0, + col1 col0 FROM tab2 +---- +-46 +-64 +-75 +51 +67 +77 query I rowsort SELECT ALL + 66 * - 27 AS col1 FROM tab1 @@ -29794,8 +30061,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-3 +3 query I rowsort label-4946 SELECT ALL COUNT ( * ) * COUNT ( * ) * - MIN ( - col1 ) col0 FROM tab0 @@ -30335,8 +30605,15 @@ SELECT ALL - + 16 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - -96 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col0, col1 AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +14 +47 +5 query II rowsort SELECT - + col0 * - - 40, 57 * - col0 FROM tab2 WHERE + - col0 * - col2 NOT BETWEEN + col0 AND NULL @@ -30585,8 +30862,15 @@ SELECT DISTINCT - col1 * + + 79 * + col2 + - + col1 FROM tab0 # Datafusion - Expected - 144 # Datafusion - Expected - 91 # Datafusion - Expected - 159 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col2 \+ tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 col1, + col2 + col0 AS col1 FROM tab1 +---- +144 +147 +159 +51 +85 +91 query I rowsort SELECT ALL + 17 + + + 92 * - - col0 - - col2 * ( col2 ) FROM tab0 @@ -30770,8 +31054,15 @@ SELECT - 12, 39 col0 FROM tab0 AS cor0 # Datafusion - Expected - 59 # Datafusion - Expected - -91 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 col1, col2 col1 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +59 +68 +96 query I rowsort SELECT + col0 * + + col0 FROM tab0 AS cor0 @@ -31232,8 +31523,11 @@ SELECT * FROM tab2 WHERE NOT + col0 + + col1 < - + 51 * + - ( + - CAST ( NULL AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 AS col2, COUNT ( * ) AS col2 FROM tab1 +---- +3 +48 query II rowsort SELECT col0, - col2 * - col2 AS col2 FROM tab2 @@ -32190,8 +32484,15 @@ SELECT DISTINCT + 5 + col2 col2 FROM tab1 AS cor0 # Datafusion - Expected - 20 # Datafusion - Expected - 77 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, 20 AS col0 FROM tab2 AS cor0 +---- +20 +20 +20 +51 +67 +77 query II rowsort SELECT - + col0, - 48 AS col1 FROM tab0 AS cor0 @@ -32246,8 +32547,15 @@ SELECT - + col0 AS col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + 79 # Datafusion - Expected - 85 # Datafusion - Expected - 32 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \+ Int64\(\-18\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 50 + + - 18 AS col1, col0 AS col1 FROM tab1 +---- +32 +32 +32 +51 +85 +91 query III rowsort SELECT * FROM tab2 WHERE + 56 * 38 NOT BETWEEN NULL AND ( - col2 + - col0 ) @@ -32331,8 +32639,15 @@ SELECT + MAX ( - 16 ) FROM tab0 AS cor0 # Datafusion - Expected - -21 # Datafusion - Expected - -97 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col0 AS col1, - col1 AS col1 FROM tab0 AS cor0 +---- +-1 +-15 +-21 +-81 +-87 +-97 query II rowsort SELECT DISTINCT + - col2, 93 AS col1 FROM tab2 cor0 @@ -33114,8 +33429,15 @@ SELECT DISTINCT - 15 AS col1 FROM tab1 WHERE NOT ( ( NOT + - col1 + - col0 >= - # Datafusion - Expected - 57 # Datafusion - Expected - 0 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) / Int64\(87\) \* Int64\(51\) AS col2" at position 0 and "Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 / 87 * + 51 AS col2, + 57 AS col2 FROM tab2 AS cor0 +---- +0 +0 +0 +57 +57 +57 query II rowsort SELECT DISTINCT + + 88 * 81 + + col1, col1 FROM tab0 AS cor0 @@ -33466,8 +33788,15 @@ SELECT - 52 - - + 27, col1 FROM tab0 # Datafusion - Expected - -99 # Datafusion - Expected - 59 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \+ \(\- Int64\(\-44\)\) AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 + - - 44 AS col0, - col2 AS col0 FROM tab0 +---- +-10 +-47 +-99 +131 +141 +59 query I rowsort SELECT ALL 37 * - - col1 + + - 3 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND col1 @@ -33579,8 +33908,12 @@ SELECT DISTINCT + MIN ( DISTINCT + col2 ) FROM tab2 cor0 # Datafusion - Expected - -3 # Datafusion - Expected - 59 # Datafusion - Expected - 114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- \(\- cor0\.col2\)\)\) AS col2" at position 1 and "sum\(Int64\(38\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 3, MIN ( - ( + - col2 ) ) AS col2, + SUM ( 38 ) col2 FROM tab1 AS cor0 +---- +-3 +114 +59 query I rowsort SELECT ALL - - col1 + - + 18 FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN + + col2 AND NULL @@ -33893,8 +34226,15 @@ SELECT + COUNT ( * ) AS col1, - COUNT ( * ) FROM tab0 # Datafusion - Expected - -70 # Datafusion - Expected - -98 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col2" at position 0 and "tab1\.col2 \+ \(\- tab1\.col1\) \+ \(\- CAST\(tab1\.col0 AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 98 AS col2, + col2 + + - col1 + - CAST ( col0 AS INTEGER ) AS col2 FROM tab1 +---- +-31 +-70 +-98 +-98 +-98 +31 query II rowsort SELECT - 76, + 11 AS col2 FROM tab2 @@ -34487,8 +34827,15 @@ SELECT ALL - - col0 col2, col2 FROM tab2 AS cor0 # Datafusion - Expected - 134 # Datafusion - Expected - -77 # Datafusion - Expected - 154 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col1 \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 col1, col1 + col1 AS col1 FROM tab2 cor0 +---- +-51 +-67 +-77 +102 +134 +154 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 @@ -34497,8 +34844,15 @@ SELECT ALL - col1 col1, col1 + col1 AS col1 FROM tab2 cor0 # Datafusion - Expected - 59 # Datafusion - Expected - -91 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col0, col2 AS col0 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +59 +68 +96 query I rowsort label-5706 SELECT - ( MIN ( DISTINCT - + col1 ) ) AS col0 FROM tab1 cor0 @@ -34934,8 +35288,15 @@ SELECT MAX ( ALL - 74 ) FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, col1 AS col0 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( 15, col0 * - + 53 * col0 / - col1 / - - 91, - col1 ) @@ -35305,8 +35666,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND col2 / + CAST # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( + col2 ), col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-5842 SELECT MAX ( DISTINCT - col0 ) col0 FROM tab0 @@ -36165,8 +36533,11 @@ SELECT + col0 * + col0 * - + col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(21\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( 21 ) AS col0, ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0 +---- +-3 +3 query I rowsort label-5979 SELECT ALL + COUNT ( * ) * - 21 AS col1 FROM tab0 cor0 @@ -36270,8 +36641,11 @@ SELECT ALL + 26 + + - COUNT ( * ) AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + COUNT ( * ) ) AS col1, CAST ( NULL AS INTEGER ) * + - 36 AS col1 FROM tab2 +---- +3 +NULL query I rowsort label-5996 SELECT 52 / + COUNT ( ALL 35 ) AS col0 FROM tab0 @@ -36551,8 +36925,11 @@ SELECT DISTINCT + ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(sum\(cor0\.col0\) AS Float64\)\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - CAST ( + SUM ( + col0 ) AS FLOAT8 ) AS col0, 72 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 64 AND NULL +---- +72 +NULL query I rowsort SELECT + 26 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -37013,8 +37390,11 @@ 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\(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\. +query II valuesort SELECT + SUM ( ALL col0 ) AS col2, COUNT ( * ) * + + 81 + - 24 * - COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +199 +315 query I rowsort label-6120 SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT - - col2 IS NULL @@ -37995,8 +38375,15 @@ SELECT 1 - col2 + + + col2 * - col2 AS col2 FROM tab1 # Datafusion - Expected - -64 # Datafusion - Expected - -5275 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \* tab2\.col1 \- \(\- \(\- tab2\.col0\)\) \+ Int64\(10\) \+ Int64\(\-95\) \+ \(\- Int64\(90\)\) AS col0" at position 0 and "\(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * col1 - - - col0 + + 10 + ( + - 95 ) + - + 90 AS col0, - col0 col0 FROM tab2 +---- +-2567 +-46 +-5167 +-5275 +-64 +-75 query I rowsort SELECT + 82 - + - 45 AS col2 FROM tab0 @@ -38644,8 +39031,15 @@ SELECT DISTINCT col0 AS col1, + 29 + + 96 * - col0 FROM tab1 cor0 # Datafusion - Expected - -21 # Datafusion - Expected - NULL # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1, - col1 AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +NULL +NULL +NULL query II rowsort SELECT ALL col2 AS col0, col0 - + + ( col1 ) * col1 FROM tab2 AS cor0 @@ -38947,8 +39341,15 @@ NULL # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, ( + col0 ) AS col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2110 @@ -38957,8 +39358,15 @@ SELECT ALL + col0, ( + col0 ) AS col0 FROM tab2 # Datafusion - Expected - -51 # Datafusion - Expected - 74 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \* tab1\.col1 \+ Int64\(99\) AS col2" at position 0 and "\(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 * col1 + + 99 AS col2, - col0 AS col2 FROM tab1 +---- +-2110 +-51 +-85 +-91 +-97 +74 query II rowsort SELECT ALL + 2, + col2 AS col0 FROM tab0 @@ -39308,8 +39716,15 @@ SELECT DISTINCT + 33 - - COUNT ( * ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -3443 # Datafusion - Expected - -75 # Datafusion - Expected - -4058 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col2" at position 0 and "cor0\.col1 \+ Int64\(\-56\) \* cor0\.col0 \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 75 AS col2, col1 + - 56 * + ( + col0 ) + + col0 AS col2 FROM tab2 cor0 +---- +-2479 +-3443 +-4058 +-75 +-75 +-75 query I rowsort label-6508 SELECT col1 AS col0 FROM tab2 WHERE NOT + 56 + - CAST ( NULL AS INTEGER ) IS NOT NULL @@ -39325,8 +39740,15 @@ SELECT col1 AS col0 FROM tab2 WHERE NOT + 56 + - CAST ( NULL AS INTEGER ) IS NOT # Datafusion - Expected - 6557 # Datafusion - Expected - 3886 # Datafusion - Expected - 6547 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* tab2\.col1 AS col2" at position 0 and "Int64\(80\) \* Int64\(81\) \+ tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * + col1 AS col2, 80 * + 81 + + + col1 col2 FROM tab2 +---- +1173 +3080 +3886 +6531 +6547 +6557 query II rowsort label-6510 SELECT DISTINCT COUNT ( ALL - + col0 ) AS col2, - 82 * + 89 FROM tab1 @@ -39402,8 +39824,15 @@ SELECT ALL - COUNT ( - col1 ) AS col0 FROM tab1 # Datafusion - Expected - 85 # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col2, col0 AS col2 FROM tab1 +---- +51 +85 +91 +NULL +NULL +NULL query I rowsort SELECT DISTINCT + col1 + - col0 col0 FROM tab1 cor0 @@ -39821,8 +40250,15 @@ NULL # Datafusion - Expected - 91 # Datafusion - Expected - -5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col1 col1, col0 col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +51 +85 +91 query I rowsort SELECT - 30 * + + 88 FROM tab1 cor0 @@ -41166,8 +41602,15 @@ SELECT COUNT ( * ) * + COUNT ( * ) AS col0, COUNT ( * ) FROM tab0 # Datafusion - Expected - -14 # Datafusion - Expected - -2925 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \* \(\- Int64\(\-39\)\) AS col1" at position 0 and "Int64\(\-14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 * - - 39 col1, - 14 AS col1 FROM tab2 +---- +-14 +-14 +-14 +-1794 +-2496 +-2925 query I rowsort SELECT 63 * - 50 FROM tab1 @@ -41809,8 +42252,15 @@ SELECT + + col1 * - - ( - col1 ) FROM tab0 AS cor0 # Datafusion - Expected - 2560 # Datafusion - Expected - 75 # Datafusion - Expected - 4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col0 \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, col0 * + col2 col1 FROM tab2 AS cor0 +---- +1058 +2560 +4350 +46 +64 +75 query II rowsort SELECT DISTINCT + col0, col1 FROM tab1 cor0 @@ -42433,8 +42883,15 @@ SELECT + SUM ( DISTINCT - + col0 ) FROM tab0 # Datafusion - Expected - 164 # Datafusion - Expected - -77 # Datafusion - Expected - 153 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col2" at position 0 and "Int64\(89\) \+ tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col2, + 89 + + col0 AS col2 FROM tab2 +---- +-51 +-67 +-77 +135 +153 +164 query I rowsort SELECT - col2 + - + col1 + 69 FROM tab1 @@ -43691,8 +44148,15 @@ SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ) - - - 39 # Datafusion - Expected - -81 # Datafusion - Expected - -6538 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(65\) \* \(\- cor0\.col2\) \+ \(\- Int64\(30\)\) \+ Int64\(\-73\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * 65 * - col2 + - + 30 + - 73 AS col0, - col1 AS col0 FROM tab0 AS cor0 +---- +-1 +-13753 +-21 +-247558 +-6538 +-81 query I rowsort label-7241 SELECT DISTINCT - col2 * col0 * col1 * - - col0 + col1 FROM tab2 cor0 WHERE - 14 + + CAST ( NULL AS INTEGER ) IS NULL @@ -46053,8 +46517,15 @@ SELECT DISTINCT - col2 * - 2 + + - col0 - - col0 FROM tab1 # Datafusion - Expected - 87 # Datafusion - Expected - 31 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \* \(\- Int64\(37\)\) \+ Int64\(\-31\) \- \(\- \(\- \(\- cor0\.col2\)\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col1 * - + 37 + - 31 - - + ( - - col2 ) AS col1, col0 AS col1 FROM tab0 cor0 +---- +-2981 +-798 +15 +31 +87 +97 query I rowsort label-7619 SELECT DISTINCT col2 * + + col2 + col1 / + col0 * - 35 - - col1 FROM tab1 AS cor0 @@ -47314,8 +47785,9 @@ SELECT ALL - col2, col2 + - 21 AS col0 FROM tab1 75 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col2, + 99 AS col2 FROM tab2 WHERE NOT NULL IS NULL +---- query II rowsort SELECT ALL col2 AS col0, col2 FROM tab2 @@ -47715,8 +48187,15 @@ SELECT * FROM tab0 WHERE NOT - + col0 < NULL # Datafusion - Expected - 1058 # Datafusion - Expected - -252300 # Datafusion - Expected - 4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* tab2\.col2 \* \(\- tab2\.col2\) AS col0" at position 0 and "tab2\.col2 \* tab2\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * + + col2 * - col2 AS col0, col2 * + col0 col0 FROM tab2 +---- +-102400 +-24334 +-252300 +1058 +2560 +4350 query I rowsort label-7896 SELECT + col0 / col0 * + + ( 74 ) * col2 col0 FROM tab2 @@ -47768,8 +48247,15 @@ SELECT DISTINCT COUNT ( * ) * + - COUNT ( DISTINCT col1 ) FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - 81 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, 68 AS col0 FROM tab0 +---- +1 +21 +68 +68 +68 +81 query I rowsort label-7903 SELECT - ( - - 93 ) / col0 + - ( - col2 ) FROM tab1 @@ -48048,8 +48534,15 @@ SELECT - SUM ( ALL - - 20 ) + - 72 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- Int64\(\-7\)\) \+ CAST\(NULL AS Int32\) \+ \(\- cor0\.col2\) \* Int64\(2\) AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + - - 7 + + CAST ( NULL AS INTEGER ) + - ( col2 ) * + 2 AS col1, + 47 AS col1 FROM tab2 AS cor0 +---- +47 +47 +47 +NULL +NULL +NULL query I rowsort SELECT ALL + 89 + ( - col2 ) FROM tab1 AS cor0 @@ -49632,8 +50125,15 @@ SELECT * FROM tab0 WHERE NOT ( - + col2 ) IS NOT NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 AS col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NULL >= + col2 @@ -50304,8 +50804,15 @@ SELECT SUM ( DISTINCT col0 ) FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- \(\- cor0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col0, ( - - col2 ) AS col0 FROM tab2 AS cor0 +---- +23 +40 +58 +NULL +NULL +NULL query II rowsort label-8322 SELECT col0 / col1 AS col2, + col0 FROM tab1 @@ -51404,8 +51911,15 @@ SELECT ALL - MIN ( ALL + - ( col0 ) ) * COUNT ( * ) AS col0 FROM tab2 # Datafusion - Expected - 38210 # Datafusion - Expected - 97 # Datafusion - Expected - 1721 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "\(\- tab0\.col1\) \- tab0\.col2 \- Int64\(\-91\) \* Int64\(\-20\) \* \(\- tab0\.col1\) \+ tab0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, - ( col1 ) - col2 - - 91 * - 20 * + - col1 + + + col1 col1 FROM tab0 +---- +147373 +15 +1721 +38210 +87 +97 query II rowsort SELECT ALL + 72 AS col1, col2 FROM tab2 @@ -51822,8 +52336,15 @@ SELECT DISTINCT - - COUNT ( - col1 ) FROM tab1 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 5 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, col2 AS col0 FROM tab1 +---- +14 +47 +5 +59 +68 +96 query II rowsort label-8570 SELECT - COUNT ( * ) AS col0, 59 / 80 AS col2 FROM tab0 @@ -52629,8 +53150,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + - 37 AS col0, - COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +-3 +-34 query I rowsort label-8709 SELECT ALL - 2 - - COUNT ( * ) AS col2 FROM tab2 AS cor0 @@ -52970,8 +53494,15 @@ SELECT DISTINCT + + ( - col2 ) / col1 FROM tab1 cor0 # Datafusion - Expected - -4136 # Datafusion - Expected - 66 # Datafusion - Expected - -440 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "\(\- cor0\.col1\) \* Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 66 col0, - col1 * 88 AS col0 FROM tab1 AS cor0 +---- +-1232 +-4136 +-440 +66 +66 +66 query III rowsort SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( + 20 + col1 ) @@ -53161,8 +53692,15 @@ SELECT ALL SUM ( DISTINCT 71 ) FROM tab0 # Datafusion - Expected - -87 # Datafusion - Expected - 75 # Datafusion - Expected - -105 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "Int64\(\-47\) \+ \(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, - 47 + - col2 AS col1 FROM tab2 +---- +-105 +-70 +-87 +46 +64 +75 query I rowsort SELECT + col2 FROM tab1 WHERE NOT ( ( NULL ) IS NOT NULL ) @@ -53174,8 +53712,11 @@ SELECT + col2 FROM tab1 WHERE NOT ( ( NULL ) 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\(DISTINCT tab2\.col2\) AS col2" at position 0 and "max\(Int64\(36\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( DISTINCT col2 ) AS col2, + MAX ( ALL + 36 ) AS col2 FROM tab2 WHERE NOT ( NOT NULL BETWEEN NULL AND + 47 ) +---- +0 +NULL query I rowsort SELECT col1 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL @@ -53345,8 +53886,15 @@ SELECT ALL - col1 AS col1 FROM tab0 cor0 WHERE NOT col0 * + - 39 <> ( - col1 - - # Datafusion - Expected - 33 # Datafusion - Expected - -81 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(54\) \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, + 54 + - col1 AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-27 +-81 +33 +53 query I rowsort SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE - col0 + col0 > NULL @@ -53423,8 +53971,15 @@ SELECT DISTINCT 55 / - COUNT ( - 1 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, col1 AS col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query IIIIII rowsort SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( - 3 ) > NULL @@ -53778,8 +54333,15 @@ SELECT ALL - col0 FROM tab0 AS cor0 WHERE ( + + col1 <> NULL ) # Datafusion - Expected - 2520 # Datafusion - Expected - -81 # Datafusion - Expected - 2520 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col1\) AS Int32\) AS col0" at position 0 and "Int64\(45\) \* Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( - col1 AS INTEGER ) AS col0, 45 * 56 col0 FROM tab0 AS cor0 WHERE NULL IS NULL +---- +-1 +-21 +-81 +2520 +2520 +2520 query III rowsort label-8887 SELECT ALL * FROM tab1 WHERE + 74 NOT BETWEEN + CAST ( NULL AS INTEGER ) * - 46 AND NULL @@ -54061,8 +54623,15 @@ SELECT - 84 AS col2, - col1 AS col1 FROM tab2 # Datafusion - Expected - 40 # Datafusion - Expected - -75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +23 +40 +58 query I rowsort label-8932 SELECT DISTINCT + + SUM ( - + col1 ) FROM tab0 AS cor0 @@ -54720,8 +55289,9 @@ SELECT DISTINCT - ( + + 95 ) * + col0 + - - 93 FROM tab0 -9122 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ \(\- cor0\.col2\) \* \(\- cor0\.col0\) \* Int64\(\-74\) \* Int64\(26\) \+ Int64\(\-3\) AS col0" at position 0 and "Int64\(40\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 40 + + - col2 * - col0 * - 74 * + + 26 + - 3 col0, + 40 * col1 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL +---- query I rowsort SELECT ALL - 9 * col2 FROM tab0 @@ -55883,8 +56453,11 @@ SELECT ALL col1 col0, + col0 AS col0 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "min\(\(\- tab0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, + MIN ( ALL - + col2 ) AS col0 FROM tab0 +---- +-99 +3 query I rowsort SELECT - col1 * + - 64 FROM tab1 @@ -55976,8 +56549,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, + 45 AS col0 FROM tab2 +---- +3 +45 query I rowsort SELECT DISTINCT - col0 * + col0 * 88 AS col0 FROM tab2 @@ -56073,8 +56649,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE 66 IS NOT NULL # Datafusion - Expected - 67 # Datafusion - Expected - 67 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 col2, + col1 AS col2 FROM tab2 +---- +51 +67 +67 +67 +67 +77 query I rowsort label-9270 SELECT ALL - SUM ( - 10 ) AS col0 FROM tab2 @@ -56223,8 +56806,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 19 IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, col2 col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-9295 SELECT ALL col0 * + CAST ( + 61 AS INTEGER ) col2 FROM tab1 AS cor0 @@ -56260,8 +56850,15 @@ SELECT DISTINCT 57 + - - 8 AS col2 FROM tab1 # Datafusion - Expected - -94 # Datafusion - Expected - -99 # Datafusion - Expected - -177 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ Int64\(\-18\) AS col0" at position 0 and "\(\- cor0\.col1\) \- \(\- cor0\.col2\) \+ Int64\(\-62\) \+ CAST\(cor0\.col1 AS Int32\) \* \(\- cor0\.col1\) / cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 + - 18 AS col0, ( - col1 ) - - col2 + + - 62 + + CAST ( col1 AS INTEGER ) * - col1 / col1 col0 FROM tab0 cor0 +---- +-177 +-19 +-39 +-94 +-99 +35 query III rowsort SELECT * FROM tab0 AS cor0 WHERE + ( - 94 ) + - 43 / + 99 + + 96 IS NULL @@ -56759,8 +57356,15 @@ SELECT ALL + - MAX ( DISTINCT - col1 ) FROM tab1 AS cor0 # Datafusion - Expected - 174 # Datafusion - Expected - -81 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "tab0\.col0 \+ tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 col0, + ( col0 ) + + col0 AS col0 FROM tab0 +---- +-1 +-21 +-81 +174 +194 +30 query I rowsort label-9376 SELECT DISTINCT + col0 * - col0 / + - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 @@ -56779,8 +57383,15 @@ SELECT + COUNT ( + + col2 ) * 85 AS col2 FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - 7954 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* cor0\.col0 AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 82 * col0 AS col1, 21 AS col1 FROM tab0 AS cor0 +---- +1230 +21 +21 +21 +7134 +7954 query I rowsort SELECT + ( - 43 ) AS col1 FROM tab1 AS cor0 @@ -56895,8 +57506,15 @@ SELECT col1 * - col0 FROM tab0 cor0 WHERE NULL IS NULL # Datafusion - Expected - 21 # Datafusion - Expected - 28 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 28 AS col2, col1 AS col2 FROM tab0 +---- +1 +21 +28 +28 +28 +81 query I rowsort label-9398 SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 @@ -57351,8 +57969,15 @@ NULL # Datafusion - Expected - 5015 # Datafusion - Expected - -8267 # Datafusion - Expected - 6188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \+ \(\- \(\- tab1\.col0\)\) \* \(\- tab1\.col0\) AS col1" at position 0 and "tab1\.col0 \* \(\- \(\- tab1\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 14 + - - col0 * - col0 AS col1, col0 * - - col2 AS col1 FROM tab1 +---- +-2587 +-7211 +-8267 +4896 +5015 +6188 query I rowsort SELECT col2 * + 23 + 30 FROM tab0 @@ -57660,8 +58285,15 @@ SELECT - col1 FROM tab2 WHERE NOT - + 58 * + - col0 + + - col2 IS NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, col0 AS col1 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT DISTINCT + - col2 * - 9 * col2 + col0 FROM tab2 WHERE NOT + + col0 IS NOT NULL @@ -58581,8 +59213,15 @@ SELECT ALL * FROM tab1 WHERE NOT + col0 + + col0 IS NOT NULL # Datafusion - Expected - -15200 # Datafusion - Expected - 97 # Datafusion - Expected - -150480 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col2 \* Int64\(95\) \* Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, ( + col2 ) * + 95 * - 16 AS col2 FROM tab0 +---- +-150480 +-15200 +-71440 +15 +87 +97 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -59576,8 +60215,9 @@ SELECT DISTINCT + col0 + + + 85 col0 FROM tab2 cor0 160 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col2 AS col1, col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 * col0 / ( + + ( + col2 ) ) - + col0 / + col1 - + 74 < NULL +---- query I rowsort SELECT - col0 + + + col0 FROM tab0 AS cor0 @@ -60361,8 +61001,10 @@ SELECT col2 / - col2 + - 98 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 709140e88e3ccd5e710aedd1ff38690d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 1 and "cor0\.col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - col0 AS col0, col2, + col2 FROM tab0 cor0 +---- +9 values hashing to 70244475bae9d9011245abb42c5243c7 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 12 BETWEEN - col2 AND - 27 / - ( ( - - 88 ) ) diff --git a/data/sqlite/random/aggregates/slt_good_41.slt b/data/sqlite/random/aggregates/slt_good_41.slt index 60d18e0..6a9d16a 100644 --- a/data/sqlite/random/aggregates/slt_good_41.slt +++ b/data/sqlite/random/aggregates/slt_good_41.slt @@ -272,8 +272,11 @@ SELECT ALL * FROM tab2 WHERE 31 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -192 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-65\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, + COUNT ( * ) * - 65 - - COUNT ( * ) AS col2 FROM tab1 +---- +-192 +3 query II rowsort label-41 SELECT DISTINCT - 98 col0, COUNT ( + col0 ) AS col2 FROM tab1 @@ -953,8 +956,11 @@ SELECT DISTINCT 82 * + - 92 - + 56 / COUNT ( * ) / - + MAX ( ALL - 89 ) FROM tab # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 4044 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col2" at position 0 and "Int64\(\-72\) \* Int64\(\-56\) \- max\(CAST\(Int64\(\-12\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 72 AS col2, - 72 * - 56 - + MAX ( ALL CAST ( + - 12 AS INTEGER ) ) AS col2 FROM tab2 +---- +4044 +72 query I rowsort label-164 SELECT - CAST ( + + col1 AS INTEGER ) + + col0 AS col0 FROM tab1 @@ -1225,8 +1231,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(98\) \+ Int64\(\-44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 AS col2, - COUNT ( - + 49 ) - COUNT ( * ) + + 98 + - 44 AS col2 FROM tab0 WHERE NOT NULL IS NULL +---- +54 +72 query I rowsort SELECT col1 * + - col0 AS col1 FROM tab1 @@ -1252,8 +1261,15 @@ SELECT DISTINCT * FROM tab0 WHERE NOT + col0 * + col2 IS NULL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col1, col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 ) <> NULL @@ -1481,8 +1497,12 @@ SELECT ALL - + 13 FROM tab0 cor0 # Datafusion - Expected - 88 # Datafusion - Expected - 21 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 88 AS col1, 21, + COUNT ( * ) col1 FROM tab2 AS cor0 +---- +21 +3 +88 query IIIIII rowsort SELECT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 36 IS NOT NULL @@ -3174,8 +3194,15 @@ SELECT DISTINCT ( + 17 ) / - CAST ( - 89 AS INTEGER ) AS col1 FROM tab1 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, + col1 col2 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT ALL - ( - + 27 ) * col1 AS col1 FROM tab1 WHERE + 83 BETWEEN - - col0 AND NULL @@ -3566,8 +3593,15 @@ SELECT ( 62 ) FROM tab0, tab1 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - 39 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "Int64\(29\) \+ \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 39 col1, ( 29 ) + - col0 AS col1 FROM tab0 cor0 +---- +-58 +-68 +14 +39 +39 +39 query I rowsort label-597 SELECT DISTINCT + col0 / - col0 AS col0 FROM tab2 AS cor0 @@ -4459,8 +4493,11 @@ SELECT DISTINCT - col0 AS col2, - col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 6 AS col2, + COUNT ( * ) AS col2 FROM tab2 +---- +3 +6 query I rowsort label-748 SELECT ALL 38 / + + col0 col0 FROM tab0 @@ -4869,8 +4906,15 @@ SELECT DISTINCT + + SUM ( ALL - - 68 ) FROM tab1 AS cor0 # Datafusion - Expected - -26 # Datafusion - Expected - -91 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "Int64\(\-26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, - 26 AS col1 FROM tab1 +---- +-26 +-26 +-26 +-51 +-85 +-91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 @@ -4879,8 +4923,15 @@ SELECT - col0 AS col1, - 26 AS col1 FROM tab1 # Datafusion - Expected - -81 # Datafusion - Expected - 99 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "CAST\(\(\- tab0\.col1\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 +---- +-1 +-21 +-81 +10 +47 +99 query II rowsort SELECT col2, - col1 FROM tab2 @@ -4907,8 +4958,11 @@ SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 141 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(47\)\) \* Int64\(47\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + COUNT ( + 47 ) ) * + 47 col2, COUNT ( * ) col2 FROM tab2 +---- +141 +3 query I rowsort SELECT ALL - col0 * + 7 FROM tab0 @@ -5475,8 +5529,15 @@ SELECT DISTINCT + 24 col1, col2 FROM tab2 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col0, + col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query II rowsort label-908 SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + col0 AS col2, + col2 * - + 61 FROM tab1 AS cor0 @@ -5628,8 +5689,15 @@ SELECT ALL + - col2 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND + + ( + - # Datafusion - Expected - -38 # Datafusion - Expected - 42 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col1 AS col2" at position 0 and "Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + col1 col2, - 38 AS col2 FROM tab0 AS cor0 +---- +-38 +-38 +-38 +162 +2 +42 query I rowsort SELECT ALL 94 * - ( + col2 ) + - 19 AS col1 FROM tab1 AS cor0 @@ -5889,8 +5957,15 @@ SELECT ALL - col0 * + col0 * col2, - 10 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - -68 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 68 AS col1, col0 col1 FROM tab1 cor0 +---- +-68 +-68 +-68 +51 +85 +91 query I rowsort label-971 SELECT + col1 FROM tab0 WHERE NOT + col2 * - - col0 * - col0 / - col0 * + + CAST ( NULL AS INTEGER ) - col0 + - col0 + col0 * - 75 < + + col0 @@ -5953,8 +6028,15 @@ SELECT + + 42 * - + col1 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - -5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, + col1 AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +14 +47 +5 query I rowsort SELECT ALL + - col2 + - - ( col2 ) - - col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL @@ -7005,8 +7087,15 @@ SELECT ALL + col0 * - col2 + col2 * + 6 FROM tab2 cor0 WHERE col0 * - col0 * - 7 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, col2 AS col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT ALL + 26 * 20 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL @@ -8167,8 +8256,15 @@ SELECT 98 AS col2, col0 + col2 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT DISTINCT - + col0 + col1 col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL @@ -9216,8 +9312,15 @@ SELECT ALL + 57 + - 50 AS col1 FROM tab1 # Datafusion - Expected - -68 # Datafusion - Expected - -71 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col2" at position 0 and "\(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 71 AS col2, - col2 AS col2 FROM tab1 +---- +-59 +-68 +-71 +-71 +-71 +-96 query I rowsort SELECT DISTINCT - 98 AS col2 FROM tab1 @@ -10909,8 +11012,15 @@ SELECT * FROM tab1 AS cor0 WHERE - col1 - - + 33 < + 54 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col1, col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT + col1 - - col1 - + ( + 70 ) + + col2 AS col1 FROM tab1 AS cor0 @@ -11185,8 +11295,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, 30 AS col0 FROM tab2 AS cor0 +---- +-3 +30 query III rowsort SELECT * FROM tab0 WHERE NOT + + col2 IS NOT NULL @@ -11948,8 +12061,15 @@ SELECT ALL - col0 / + 94 FROM tab2 # Datafusion - Expected - 40 # Datafusion - Expected - 10 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 10 AS col1, col2 col1 FROM tab2 +---- +10 +10 +10 +23 +40 +58 query II rowsort SELECT - + col1, + col2 FROM tab2 AS cor0 @@ -12060,8 +12180,15 @@ SELECT ALL col2 * + col0 + + 28, - 81 AS col2 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 269786 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* \(\- tab2\.col1\) \- tab2\.col0 \- \(\- Int64\(\-69\)\) \* Int64\(\-53\) \* tab2\.col0 \+ CAST\(tab2\.col0 AS Int32\) AS col0" at position 0 and "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 * - col1 - col0 - - - 69 * - 53 * col0 + + CAST ( + col0 AS INTEGER ) AS col0, + ( - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 +---- +165621 +228119 +269786 +NULL +NULL +NULL query III rowsort SELECT ALL * FROM tab2 WHERE + ( + 63 ) IS NOT NULL @@ -12227,8 +12354,15 @@ SELECT ALL + 81 + - 61 FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query II rowsort SELECT - col1 * col0 * 75 AS col1, - col1 + - ( - - ( + + col2 ) ) + + col0 * - + 28 FROM tab0 @@ -14829,8 +14963,15 @@ SELECT col0 - + 25 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 49 # Datafusion - Expected - 77 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) / \(\- CAST\(\(\- cor0\.col1\) AS Int32\)\) \- \(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col1\) \+ cor0\.col2 \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 36 / - + CAST ( - col1 AS INTEGER ) - - + col1 AS col0, - col1 + + col2 + col2 col0 FROM tab2 AS cor0 +---- +-5 +3 +49 +51 +67 +77 query I rowsort label-2481 SELECT DISTINCT + 81 * - 76 * 31 * 12 + - - COUNT ( * ) FROM tab2 AS cor0 @@ -15149,8 +15290,15 @@ SELECT DISTINCT col1 FROM tab1 WHERE NOT ( NULL <= ( + col2 + - col1 ) ) # Datafusion - Expected - 20 # Datafusion - Expected - -5 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col1 col1, 20 AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +20 +20 +20 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -15311,8 +15459,15 @@ SELECT - col0 AS col2, 80 + - CAST ( - + 80 AS INTEGER ) AS col1 FROM tab0 AS co # Datafusion - Expected - 40 # Datafusion - Expected - 99 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, + ( 40 ) AS col1 FROM tab0 AS cor0 +---- +10 +40 +40 +40 +47 +99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 @@ -15321,8 +15476,15 @@ SELECT + col2 AS col1, + ( 40 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 96 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 96 AS col2, + col0 AS col2 FROM tab0 AS cor0 WHERE - col0 * - + col0 * + 2 NOT BETWEEN col1 AND + + 4 * + col0 +---- +15 +87 +96 +96 +96 +97 query III rowsort SELECT * FROM tab1 WHERE NOT + col0 * - col0 < 0 + + 26 @@ -16201,8 +16363,15 @@ SELECT + COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT 54 IS NOT NULL # Datafusion - Expected - -47 # Datafusion - Expected - -57 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 57 AS col0, - col2 col0 FROM tab0 AS cor0 WHERE NOT col0 * - + col0 BETWEEN col2 AND - col2 + - col1 +---- +-10 +-47 +-57 +-57 +-57 +-99 query I rowsort label-2707 SELECT ALL 14 * + MAX ( DISTINCT + - col1 ) * 22 FROM tab1 @@ -16846,8 +17015,15 @@ SELECT 15 / ( - col2 ) AS col2 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 87 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 AS col1, col0 AS col1 FROM tab0 +---- +15 +87 +87 +87 +87 +97 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT - ( col1 ) IS NOT NULL @@ -16899,8 +17075,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) - - COUNT ( * ) col0, 75 AS col0 FROM tab2 AS cor0 +---- +6 +75 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 3 > ( - 88 * col0 ) @@ -17066,8 +17245,15 @@ SELECT ALL + 51 AS col1 FROM tab0 # Datafusion - Expected - 86 # Datafusion - Expected - 920 # Datafusion - Expected - 103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \* \(\- Int64\(\-23\)\) AS col1" at position 0 and "Int64\(63\) \- \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col2 * - + ( - 23 ) AS col1, 63 - - col2 AS col1 FROM tab2 AS cor0 +---- +103 +121 +1334 +529 +86 +920 query I rowsort SELECT - col1 * col1 + + - 91 FROM tab1 AS cor0 @@ -17310,8 +17496,15 @@ SELECT + - COUNT ( * ), + CAST ( - ( 2 ) AS INTEGER ) + + 67 AS col1 FROM tab1 A # Datafusion - Expected - -40 # Datafusion - Expected - 93 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col0" at position 0 and "Int64\(\-40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 93 col0, - 40 col0 FROM tab0 AS cor0 +---- +-40 +-40 +-40 +93 +93 +93 query I rowsort label-2898 SELECT - + SUM ( DISTINCT + + col0 ) AS col2 FROM tab2 AS cor0 @@ -18409,8 +18602,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( DISTINCT - col1 ) * + MIN ( - col1 ) AS col0, - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +3102 +9 query I rowsort label-3074 SELECT - ( + MAX ( ALL + col0 ) ) * - + COUNT ( * ) FROM tab1 @@ -18448,8 +18644,15 @@ SELECT ALL + col1 / col1, + col1 * - col0 AS col1 FROM tab1 # Datafusion - Expected - 85 # Datafusion - Expected - -1998 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \* Int64\(\-27\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 74 * - 27 AS col2, col0 col2 FROM tab1 +---- +-1998 +-1998 +-1998 +51 +85 +91 query III rowsort SELECT * FROM tab2 AS cor0 WHERE - col0 + - - col0 IS NOT NULL @@ -19378,8 +19581,11 @@ SELECT - 9 + 20 - 56 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 32 col2, COUNT ( * ) AS col2 FROM tab2 +---- +-32 +3 query I rowsort label-3226 SELECT ALL + 55 - ( - COUNT ( * ) ) FROM tab0, tab1 AS cor0 WHERE NULL IS NOT NULL @@ -20537,8 +20743,15 @@ NULL # Datafusion - Expected - 139776 # Datafusion - Expected - -10 # Datafusion - Expected - 139776 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col0" at position 0 and "Int64\(\-64\) \* Int64\(\-91\) \* Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 AS col0, - 64 * - 91 * + 24 AS col0 FROM tab2 AS cor0 +---- +-10 +-10 +-10 +139776 +139776 +139776 query II rowsort SELECT ALL - - col2, col2 FROM tab2 AS cor0 WHERE NOT col0 IN ( - ( + - 3 ) * + + col1, col0 + - col2 ) @@ -20821,8 +21034,15 @@ SELECT DISTINCT ( col1 ) * - col1 FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - 55 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 col2, col0 col2 FROM tab2 +---- +46 +55 +55 +55 +64 +75 query III rowsort SELECT * FROM tab1 cor0 WHERE NOT col0 IS NOT NULL @@ -21001,8 +21221,15 @@ SELECT + 66 * + + COUNT ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 99 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 \+ Int64\(0\) \+ \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, col2 + + 0 + + - col2 AS col0 FROM tab0 AS cor0 +---- +0 +0 +0 +10 +47 +99 query I rowsort SELECT DISTINCT + col0 + + + 98 FROM tab0 AS cor0 WHERE col1 BETWEEN + col1 AND 17 / col0 + + 96 + + 64 * col2 @@ -21417,8 +21644,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + 98 * - + 90 AS col1, 75 + + 55 col1 FROM tab1 AS cor0 +---- +-8817 +130 query I rowsort SELECT ALL + col1 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 <= + - col0 @@ -21808,8 +22038,15 @@ SELECT - col1, + ( - 13 ) col2 FROM tab1 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, ( + + col0 ) FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT - col0 * ( + col1 ) AS col2 FROM tab0 AS cor0 @@ -22332,8 +22569,11 @@ SELECT + 56 AS col1, + 44 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* sum\(\(\- cor0\.col0\)\) AS col1" at position 0 and "Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + CAST ( NULL AS INTEGER ) * + SUM ( ALL + - col0 ) AS col1, + 56 AS col1 FROM tab0 AS cor0 +---- +56 +NULL query III rowsort SELECT * FROM tab2 AS cor0 WHERE - 71 <> + col1 + - col2 @@ -22465,8 +22705,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ), + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 +---- +9 +9 query II rowsort SELECT DISTINCT - 1 AS col0, 90 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 @@ -23356,8 +23599,15 @@ SELECT DISTINCT + + 92 AS col1, - col0 * - - col1 * col1 * - 78 AS col0 FROM tab # Datafusion - Expected - 47 # Datafusion - Expected - -5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, col1 AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +14 +47 +5 query I rowsort label-3892 SELECT DISTINCT COUNT ( * ) + 8 * - COUNT ( * ) FROM tab1 @@ -23792,8 +24042,10 @@ SELECT ALL * FROM tab1 AS cor0 WHERE ( - 54 ) = ( NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 442348b7b0f8e8be13c4ffd0b7ccb047 -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 "\(\- cor0\.col2\) \+ Int64\(64\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query RII valuesort SELECT DISTINCT - CAST ( NULL AS FLOAT8 ) AS col2, - col2 + + 10 + - - 69 AS col1, - col2 + + 64 AS col2 FROM tab2 AS cor0 +---- +9 values hashing to e7910e1a3563c6ce0ad293c2c704b1a9 query II rowsort SELECT DISTINCT + col0 + 19 - col2 AS col0, col1 * - col0 + col1 FROM tab0 AS cor0 @@ -24123,8 +24375,15 @@ SELECT DISTINCT - col2 - + 18 FROM tab2 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - -96 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, ( - 40 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL +---- +-40 +-40 +-40 +-59 +-68 +-96 query III rowsort SELECT * FROM tab1 cor0 WHERE NOT + col1 / + - 90 IS NOT NULL @@ -25031,8 +25290,15 @@ SELECT + 85 - - 75 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -483 # Datafusion - Expected - 49 # Datafusion - Expected - -840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col0" at position 0 and "Int64\(21\) \* \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 49 col0, + 21 * + - col2 AS col0 FROM tab2 AS cor0 +---- +-1218 +-483 +-840 +49 +49 +49 query I rowsort label-4169 SELECT ALL - CAST ( - col1 AS INTEGER ) * + + col1 + col1 AS col0 FROM tab1 AS cor0 @@ -25365,8 +25631,15 @@ SELECT - 93 * 96 FROM tab2 AS cor0 # Datafusion - Expected - 99 # Datafusion - Expected - 570 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* Int64\(38\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * + 38 AS col1, col2 AS col1 FROM tab0 +---- +10 +3306 +3686 +47 +570 +99 query I rowsort SELECT DISTINCT + 67 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -25582,8 +25855,15 @@ SELECT col2 * - + 19 AS col1 FROM tab0 # Datafusion - Expected - 6256 # Datafusion - Expected - -5 # Datafusion - Expected - 5074 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col0" at position 0 and "tab1\.col2 \+ tab1\.col2 \* tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, + col2 + col2 * col0 AS col0 FROM tab1 +---- +-14 +-47 +-5 +4992 +5074 +6256 query I rowsort SELECT DISTINCT - col1 * + + 43 AS col1 FROM tab0 @@ -26429,8 +26709,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 68 AS col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +-3 +68 query II rowsort label-4408 SELECT - 11 AS col0, - 62 / COUNT ( * ) FROM tab1 cor0 @@ -27177,8 +27460,15 @@ SELECT DISTINCT - 85 * - COUNT ( * ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - -98 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 98 col0, col1 AS col0 FROM tab2 AS cor0 +---- +-98 +-98 +-98 +51 +67 +77 query III rowsort label-4535 SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( CAST ( NULL AS INTEGER ), col1, ( + col0 ) + - ( - col1 ) * + 62, - - col2, + - CAST ( NULL AS FLOAT8 ) ) @@ -27467,8 +27757,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * - MAX ( ALL - col1 ) AS col2, MIN ( - - 4 ) + - MIN ( + 48 ) col2 FROM tab0 +---- +-44 +3 query I rowsort label-4583 SELECT DISTINCT 97 / + col0 AS col2 FROM tab1 @@ -27744,8 +28037,15 @@ SELECT ALL col0 * 80 FROM tab2 # Datafusion - Expected - -91 # Datafusion - Expected - 5 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "\(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, - col0 AS col0 FROM tab1 +---- +-51 +-85 +-91 +14 +47 +5 query III rowsort SELECT ALL * FROM tab2 WHERE NOT + 64 * - + ( - col1 ) IS NULL @@ -27970,8 +28270,15 @@ SELECT COUNT ( * ) AS col2 FROM tab1 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 538 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \* \(\- cor0\.col1\) \+ Int64\(97\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 21 * - col1 + 97 AS col0, col2 AS col0 FROM tab0 cor0 +---- +10 +118 +1798 +47 +538 +99 query I rowsort SELECT + ( + - 27 ) FROM tab0 AS cor0 @@ -28166,8 +28473,15 @@ SELECT DISTINCT ( + + col2 ) * + + col2, - col2 AS col2 FROM tab0 cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, col1 AS col1 FROM tab2 cor0 +---- +51 +51 +67 +67 +77 +77 query II rowsort SELECT ALL - col0, + 58 * col0 AS col2 FROM tab0 cor0 @@ -28340,8 +28654,15 @@ SELECT COUNT ( * ) / + ( + CAST ( + COUNT ( - - col0 ) AS INTEGER ) ) col2 FROM # Datafusion - Expected - 4624 # Datafusion - Expected - -5 # Datafusion - Expected - 3481 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col0" at position 0 and "\(\- tab1\.col2\) \* \(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, - col2 * - col2 col0 FROM tab1 +---- +-14 +-47 +-5 +3481 +4624 +9216 query II rowsort SELECT ( - 97 ) AS col1, 34 FROM tab1 @@ -28425,8 +28746,15 @@ SELECT ALL + col2 FROM tab0 AS cor0 WHERE ( CAST ( NULL AS FLOAT8 ) / + 28 + + + # Datafusion - Expected - -21 # Datafusion - Expected - -81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - + col1 ), - col1 FROM tab0 AS cor0 +---- +-1 +-1 +-21 +-21 +-81 +-81 query I rowsort SELECT ALL - + 58 AS col2 FROM tab1 cor0 @@ -30181,8 +30509,15 @@ SELECT + 37 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 8 # Datafusion - Expected - 96 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, 8 AS col1 FROM tab1 +---- +59 +68 +8 +8 +8 +96 query IIIIII rowsort SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE 89 * - 7 IS NULL @@ -31605,8 +31940,15 @@ SELECT DISTINCT + ( - col1 ) * - col0 FROM tab1 # Datafusion - Expected - 522 # Datafusion - Expected - 0 # Datafusion - Expected - 207 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / Int64\(\-53\) AS col2" at position 0 and "cor0\.col2 \* Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 / + - 53 AS col2, + col2 * + 9 AS col2 FROM tab2 AS cor0 +---- +-1 +-1 +0 +207 +360 +522 query I rowsort label-5275 SELECT DISTINCT + 33 * - + COUNT ( * ) FROM tab2 @@ -31616,8 +31958,11 @@ SELECT DISTINCT + 33 * - + COUNT ( * ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 235 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-47\)\) \* 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 II valuesort SELECT DISTINCT + ( - - 47 ) * 5 col1, 14 AS col1 FROM tab2 AS cor0 +---- +14 +235 query I rowsort SELECT ALL - 40 AS col1 FROM tab1 cor0 @@ -31871,8 +32216,15 @@ SELECT DISTINCT col2 * - 36 AS col1 FROM tab1 # Datafusion - Expected - 5 # Datafusion - Expected - 5 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(42\)\) \+ cor0\.col1 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - ( + + 42 ) + col1 AS col0, col1 AS col0 FROM tab1 AS cor0 +---- +-28 +-37 +14 +47 +5 +5 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT 31 * col2 IS NOT NULL @@ -32433,8 +32785,15 @@ SELECT DISTINCT - col1 FROM tab2 WHERE NOT col2 <= NULL # Datafusion - Expected - -85 # Datafusion - Expected - 91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "\(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( col0 ) AS col2, - col0 AS col2 FROM tab1 +---- +-51 +-85 +-91 +51 +85 +91 query I rowsort SELECT ALL - 73 col1 FROM tab2 @@ -32485,8 +32844,15 @@ SELECT col0 + + col2 + + col1 FROM tab0 AS cor0 # Datafusion - Expected - 3807 # Datafusion - Expected - 38 # Datafusion - Expected - 210 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ Int64\(48\) AS col0" at position 0 and "cor0\.col2 \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 + 48 AS col0, col2 * + col1 AS col0 FROM tab0 AS cor0 +---- +-51 +1 +210 +38 +3807 +99 query I rowsort SELECT + col0 + - + col0 FROM tab0 @@ -32684,8 +33050,15 @@ SELECT + col1 * 24 * col2 FROM tab1 cor0 # Datafusion - Expected - -3626 # Datafusion - Expected - 0 # Datafusion - Expected - -4145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) / \(\- cor0\.col0\) AS col0" at position 0 and "Int64\(\-53\) \* cor0\.col1 \+ \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 20 / - col0 AS col0, ( - 53 ) * + col1 + - col0 AS col0 FROM tab2 AS cor0 +---- +-2749 +-3626 +-4145 +0 +0 +0 query III rowsort SELECT ALL * FROM tab2 cor0 WHERE NOT col0 >= - 30 + - + col2 @@ -32974,8 +33347,11 @@ SELECT * FROM tab1 WHERE ( - 91 ) BETWEEN 16 + + - col1 * + + ( - - 68 ) - col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(cor0\.col1\) AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MIN ( col1 ) AS col0, 53 AS col0 FROM tab2 AS cor0 +---- +51 +53 query I rowsort SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE col2 NOT IN ( col1, col2 * + 15, col2 - col0 ) @@ -33240,8 +33616,11 @@ SELECT ALL + col0 + 87 AS col1 FROM tab0 # 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 "\(\- tab2\.col1\) \+ tab2\.col2 \+ \(\- \(\- CAST\(NULL AS Float64\)\)\) \+ Int64\(\-72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT + 78 AS col0, - col1 + + col2 + - ( + - CAST ( NULL AS FLOAT8 ) ) + - 72 AS col0 FROM tab2 +---- +78 +NULL query I rowsort label-5556 SELECT DISTINCT - MAX ( col2 ) AS col2 FROM tab1 AS cor0 @@ -33432,8 +33811,15 @@ SELECT DISTINCT - - col1 AS col1, 65 col0 FROM tab2 cor0 # Datafusion - Expected - 9 # Datafusion - Expected - -99 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(99\)\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 99 col1, + 9 AS col1 FROM tab1 AS cor0 +---- +-99 +-99 +-99 +9 +9 +9 query III rowsort SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL > ( + + col0 ) @@ -33500,14 +33886,24 @@ SELECT ALL + 32 / - - 12 + - 65 AS col0 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 AS col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, + 49 col1 FROM tab0 +---- +3 +49 query II rowsort SELECT DISTINCT col0 AS col0, - col2 + - col2 FROM tab2 AS cor0 @@ -35667,8 +36063,15 @@ SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) IS NULL # Datafusion - Expected - -96 # Datafusion - Expected - 38556 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(54\) \* cor0\.col0 AS col1" at position 0 and "Int64\(\-96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * + 54 * col0 AS col1, - 96 AS col1 FROM tab1 AS cor0 +---- +-96 +-96 +-96 +22950 +230958 +38556 query I rowsort label-5967 SELECT DISTINCT MAX ( col2 ) AS col1 FROM tab1 AS cor0 @@ -35766,8 +36169,15 @@ SELECT - + 32 + col2 FROM tab2 AS cor0 # Datafusion - Expected - 65 # Datafusion - Expected - 159 # Datafusion - Expected - 139 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ tab1\.col0 AS col0" at position 0 and "tab1\.col1 \+ tab1\.col0 \+ \(\- \(\- tab1\.col0\)\) / Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + + col0 col0, + col1 + + col0 + - ( - ( col0 ) ) / 81 AS col0 FROM tab1 +---- +139 +144 +147 +159 +65 +91 query I rowsort SELECT col0 * - - col1 + - 98 * + + col2 FROM tab0 @@ -37149,8 +37559,15 @@ SELECT ALL * FROM tab1 WHERE NOT - + col1 NOT BETWEEN + col1 AND NULL # Datafusion - Expected - 0 # Datafusion - Expected - -315 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* \(\- Int64\(15\)\) AS col1" at position 0 and "tab0\.col1 / tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * - + 15 AS col1, col1 / + col0 AS col1 FROM tab0 +---- +-1215 +-15 +-315 +0 +0 +5 query I rowsort label-6208 SELECT COUNT ( * ) * + + ( - 82 ) AS col1 FROM tab1 @@ -37256,8 +37673,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) + - + SUM ( - - 31 ) col1, - 3 AS col1 FROM tab0 AS cor0 +---- +-3 +-90 query I rowsort SELECT + col2 + 72 AS col2 FROM tab0 cor0 @@ -37519,8 +37939,11 @@ SELECT ALL 29 + col0 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( - CAST ( NULL AS INTEGER ) ) AS col1, 5 AS col1 FROM tab0 AS cor0 +---- +5 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -37808,8 +38231,15 @@ SELECT DISTINCT - ( + - col1 ) AS col0 FROM tab0 # Datafusion - Expected - 3003 # Datafusion - Expected - -36 # Datafusion - Expected - 3819 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \* Int64\(9\) AS col1" at position 0 and "tab2\.col2 \* tab2\.col1 \+ \(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 4 * 9 AS col1, col2 * col1 + - col1 AS col1 FROM tab2 +---- +-36 +-36 +-36 +1122 +3003 +3819 query I rowsort SELECT ALL - 66 col2 FROM tab2 @@ -37862,8 +38292,15 @@ SELECT ALL - 44 * - COUNT ( + col2 ) AS col1 FROM tab0 cor0 # Datafusion - Expected - -72 # Datafusion - Expected - 91 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(\-72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, - 72 AS col1 FROM tab1 AS cor0 +---- +-72 +-72 +-72 +51 +85 +91 query II rowsort SELECT + + col1 col1, 48 AS col2 FROM tab2 AS cor0 @@ -38974,8 +39411,15 @@ SELECT + 51 - 38 + 30, + 99 + 24 + - 36 AS col1 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 6974 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \+ \(\- tab0\.col1\) \* Int64\(\-86\) \+ \(\- \(\- Int64\(23\)\)\) AS col0" at position 0 and "Int64\(55\) \* Int64\(88\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ \(\- tab0\.col0\) \+ Int64\(\-25\) \+ Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 + - + col1 * - 86 + - ( - + 23 ) AS col0, 55 * + 88 + - - CAST ( NULL AS INTEGER ) + - col0 + - 25 + 4 col0 FROM tab0 +---- +12 +1742 +6974 +NULL +NULL +NULL query I rowsort label-6511 SELECT ALL COUNT ( * ) + + COUNT ( * ) col2 FROM tab0 @@ -39024,8 +39468,15 @@ SELECT DISTINCT + - col0 * - ( + 51 ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -59 # Datafusion - Expected - 2073 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* \(\- Int64\(\-36\)\) \+ \(\- cor0\.col0\) AS col0" at position 0 and "Int64\(\-59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 58 * - - 36 + - col0 AS col0, - 59 AS col0 FROM tab0 AS cor0 +---- +-59 +-59 +-59 +1991 +2001 +2073 query I rowsort label-6518 SELECT + 33 * - + COUNT ( col1 ) FROM tab2 cor0 @@ -40112,8 +40563,15 @@ SELECT ALL 15 / col0 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 5625 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \* \(\- tab2\.col0\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * + ( - col0 ) col2, + CAST ( NULL AS INTEGER ) * + - col2 AS col2 FROM tab2 +---- +2116 +4096 +5625 +NULL +NULL +NULL query II rowsort SELECT DISTINCT - 27, 9 AS col0 FROM tab0 AS cor0 @@ -40970,8 +41428,9 @@ SELECT ALL + col2 + - + col1 AS col2 FROM tab2 AS cor0 -9 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ \(\- cor0\.col1\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + - col1 AS col0, + 39 AS col0 FROM tab2 AS cor0 WHERE ( ( - 99 + col2 - + col1 IS NULL ) ) +---- query I rowsort label-6847 SELECT COUNT ( col2 ) FROM tab2 WHERE NOT NULL IS NULL @@ -42125,8 +42584,15 @@ SELECT col0 AS col1 FROM tab1 WHERE + col1 * - col2 NOT IN ( 92 - + 8 + - + col0 # Datafusion - Expected - 435 # Datafusion - Expected - 70 # Datafusion - Expected - 505 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "Int64\(\-34\) \+ tab2\.col1 \+ Int64\(\-6\) \* \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 AS col2, - 34 + col1 + - 6 * - col1 AS col2 FROM tab2 +---- +323 +435 +505 +70 +70 +70 query II rowsort SELECT - col0 AS col1, 35 FROM tab1 @@ -43598,8 +44064,15 @@ SELECT ALL + col1 / + - col0 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, col1 AS col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT ALL - - 17 FROM tab1 AS cor0 @@ -43768,8 +44241,15 @@ SELECT DISTINCT SUM ( + - col0 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "Int64\(98\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 12 AS col0, 98 * - - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0 +---- +12 +12 +12 +NULL +NULL +NULL query I rowsort label-7311 SELECT ALL - COUNT ( - + col2 ) AS col0 FROM tab0 AS cor0 @@ -44187,8 +44667,11 @@ 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\(1\)\) AS count\(\*\) / \(\- Int64\(74\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 33 AS col1, COUNT ( * ) / - ( 74 ) AS col1 FROM tab2 +---- +0 +33 query I rowsort label-7381 SELECT + 48 / col0 * + - 89 col0 FROM tab1 @@ -45261,8 +45744,15 @@ SELECT + + ( col1 ) + - - col2 FROM tab2 AS cor0 WHERE 51 + 1 IS NULL # Datafusion - Expected - -100 # Datafusion - Expected - 935 # Datafusion - Expected - -143 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ \(\- tab1\.col0\) \+ tab1\.col0 \* Int64\(11\) AS col2" at position 0 and "tab1\.col1 \+ \(\- tab1\.col0\) \+ Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + - col0 + + + col0 * + 11 AS col2, + col1 + + - col0 + - 63 AS col2 FROM tab1 +---- +-100 +-107 +-143 +1001 +561 +935 query I rowsort SELECT DISTINCT - 60 + - col0 + + 29 AS col2 FROM tab2 @@ -45401,8 +45891,11 @@ SELECT col2, col1 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -830 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(83\) \* \(\- Int64\(10\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, 83 * - + 10 AS col0 FROM tab1 +---- +-830 +3 query II rowsort SELECT ALL col2, - col0 AS col0 FROM tab0 @@ -45779,8 +46272,15 @@ SELECT ALL col0 - - - 61 AS col1 FROM tab2 cor0 # Datafusion - Expected - 24 # Datafusion - Expected - 96 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, 24 AS col1 FROM tab1 AS cor0 +---- +24 +24 +24 +59 +68 +96 query I rowsort SELECT DISTINCT + + col0 + 73 AS col0 FROM tab1 cor0 @@ -47081,8 +47581,15 @@ SELECT MAX ( DISTINCT + col1 ) AS col2 FROM tab1 # Datafusion - Expected - 97 # Datafusion - Expected - 950 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-95\)\) \* tab0\.col2 AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - - 95 ) * col2 AS col2, col0 AS col2 FROM tab0 +---- +15 +4465 +87 +9405 +950 +97 query IIIIII rowsort SELECT DISTINCT * FROM tab1 AS cor0 LEFT JOIN tab2 AS cor1 ON NOT ( NOT ( NULL ) IS NOT NULL ) @@ -48017,8 +48524,15 @@ SELECT 30 / + - 3 AS col1 FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query II rowsort SELECT - ( - col1 ), col1 AS col1 FROM tab2 @@ -48044,8 +48558,15 @@ SELECT ALL 25 * - col2 FROM tab2 # Datafusion - Expected - -77 # Datafusion - Expected - 75 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, - col1 AS col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +46 +64 +75 query I rowsort label-8040 SELECT ALL SUM ( ALL - col1 ) / 73 AS col2 FROM tab0 AS cor0 WHERE NOT ( + + col0 ) IS NULL OR NOT NULL BETWEEN - 3 AND ( NULL ) @@ -48707,8 +49228,15 @@ SELECT ALL * FROM tab0 WHERE NOT NULL <= + - col2 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, + col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-8150 SELECT ALL MAX ( + 35 ) AS col0 FROM tab1, tab2 AS cor0 @@ -49058,8 +49586,11 @@ SELECT + 88 / + 39 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col2, 54 col2 FROM tab0 AS cor0 +---- +3 +54 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT 92 IS NULL @@ -49304,8 +49835,15 @@ SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + 91 # Datafusion - Expected - -85 # Datafusion - Expected - -91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\)" at position 0 and "\(\- tab1\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0, - ( col0 ) FROM tab1 +---- +-51 +-51 +-85 +-85 +-91 +-91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 @@ -49540,8 +50078,11 @@ SELECT DISTINCT + - col2 * col0 * + col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- Int64\(\-84\)\)\)\) \- Int64\(\-45\) \- Int64\(25\) AS col1" at position 0 and "Int64\(29\) \- \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( ALL + + ( - - 84 ) ) - - 45 - 25 AS col1, 29 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +17 +NULL query I rowsort label-8282 SELECT - + COUNT ( * ) - MIN ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0 @@ -49677,8 +50218,11 @@ 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\(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\. +query II valuesort SELECT 44 + COUNT ( * ) - - 34 AS col0, ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0 +---- +-3 +81 query III rowsort SELECT ALL * FROM tab2 cor0 WHERE NOT col2 + + 59 IS NULL @@ -49732,8 +50276,9 @@ SELECT DISTINCT - 35 * - + 70 AS col2 FROM tab1 2450 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- cor0\.col2 AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 - + col2 AS col2, + 40 AS col2 FROM tab2 AS cor0 WHERE + col0 < NULL +---- query I rowsort SELECT DISTINCT col1 + + - col2 + + - 55 AS col1 FROM tab1 AS cor0 @@ -50026,8 +50571,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) AS col1, 33 + - 23 AS col1 FROM tab1 AS cor0 +---- +-3 +10 query III rowsort SELECT * FROM tab1 cor0 WHERE col1 IS NOT NULL @@ -50315,8 +50863,15 @@ SELECT ( COUNT ( col2 ) ) / - + 13 + + COUNT ( * ) FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "tab0\.col0 \* CAST\(NULL AS Int32\) \- Int64\(\-67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, col0 * CAST ( NULL AS INTEGER ) - - 67 AS col1 FROM tab0 +---- +15 +87 +97 +NULL +NULL +NULL query I rowsort SELECT DISTINCT - 76 col0 FROM tab1 @@ -51252,8 +51807,15 @@ SELECT DISTINCT 46 / + COUNT ( * ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - -95 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 95 col0, col1 AS col0 FROM tab2 cor0 +---- +-95 +-95 +-95 +51 +67 +77 query I rowsort label-8573 SELECT DISTINCT COUNT ( * ) + ( - - COUNT ( * ) ) AS col1 FROM tab1 @@ -51430,8 +51992,15 @@ SELECT ALL 48, - 97 * col0 col0 FROM tab1 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col0, col0 FROM tab0 cor0 +---- +15 +15 +87 +87 +97 +97 query II rowsort label-8602 SELECT - 69 AS col1, COUNT ( * ) FROM tab2 AS cor0 @@ -52310,8 +52879,15 @@ SELECT MAX ( DISTINCT + + col1 ) * + ( 7 ) + 7 + + + ( 71 ) FROM tab2 # Datafusion - Expected - 2679 # Datafusion - Expected - 5 # Datafusion - Expected - 285 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "tab1\.col1 \* Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, col1 * + + 57 AS col2 FROM tab1 +---- +14 +2679 +285 +47 +5 +798 query I rowsort SELECT ALL - 3 * + - col1 FROM tab0 @@ -53103,8 +53679,10 @@ SELECT + col1 + - col2 + + + col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 93fc708e12b65d52c04a0976122bcad7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \- \(\- tab1\.col2\) \+ Int64\(\-33\) AS col1" at position 0 and "Int64\(95\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL col0 - - ( + + ( col2 ) ) + - 33 AS col1, + 69, + + 95 AS col1 FROM tab1 +---- +9 values hashing to ade70323e8031d2ba92b9e4d070f3896 query I rowsort label-8875 SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) FROM tab0 @@ -53197,8 +53775,15 @@ SELECT + + MAX ( DISTINCT - col1 ) FROM tab0 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - 75 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col2, ( + - col2 ) AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +46 +64 +75 query II rowsort SELECT ALL - col1, - col2 * + - 30 AS col0 FROM tab2 AS cor0 @@ -53367,8 +53952,11 @@ SELECT ALL + col1 * col2, 51 AS 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\(cor0\.col1\)\)\) AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - COUNT ( + col1 ) AS col0, 59 AS col0 FROM tab2 AS cor0 +---- +3 +59 query I rowsort label-8915 SELECT DISTINCT - + SUM ( - col2 ) FROM tab1 AS cor0 @@ -53511,8 +54099,15 @@ SELECT ALL - 97 col1 FROM tab1 AS cor0 # Datafusion - Expected - 25 # Datafusion - Expected - 81 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(\-62\) \+ cor0\.col0 \+ cor0\.col2 / \(\- \(\- cor0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, - 62 + ( + col0 ) + + + col2 / - - col1 AS col0 FROM tab0 AS cor0 +---- +-47 +1 +134 +21 +25 +81 query II rowsort SELECT DISTINCT - 32 col0, col2 * + 15 FROM tab1 cor0 @@ -54152,8 +54747,15 @@ SELECT * FROM tab2 WHERE NULL < + col0 # Datafusion - Expected - 77 # Datafusion - Expected - 152 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \+ cor0\.col2 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 94 + + col2 col0, ( col1 ) AS col0 FROM tab2 AS cor0 +---- +117 +134 +152 +51 +67 +77 query I rowsort SELECT DISTINCT - col0 * + col0 + - + col2 + + + col0 FROM tab1 AS cor0 @@ -54280,8 +54882,15 @@ SELECT - 65 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 64 # Datafusion - Expected - -3016 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(52\)\) \* cor0\.col2 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 52 * + col2 AS col2, + col0 AS col2 FROM tab2 AS cor0 +---- +-1196 +-2080 +-3016 +46 +64 +75 query I rowsort SELECT - - 38 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 * + - col1 AND col2 * - 26 @@ -55372,8 +55981,15 @@ SELECT - 82 AS col0, + col2 FROM tab0 # Datafusion - Expected - 14 # Datafusion - Expected - 77 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, 14 AS col0 FROM tab2 +---- +14 +14 +14 +51 +67 +77 query II rowsort SELECT col1, - 47 AS col0 FROM tab2 @@ -57167,8 +57783,15 @@ SELECT ALL + COUNT ( * ) AS col0, ( SUM ( ALL + col2 ) ) FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, + col2 AS col0 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT DISTINCT - ( - col1 ) * 26 FROM tab0 @@ -57909,8 +58532,15 @@ SELECT * FROM tab2 WHERE NOT + ( + 24 ) IS NULL # Datafusion - Expected - 77 # Datafusion - Expected - 75 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, 77 AS col2 FROM tab2 +---- +46 +64 +75 +77 +77 +77 query I rowsort label-9679 SELECT DISTINCT + + SUM ( ALL + + col0 ) AS col1 FROM tab0 AS cor0 @@ -58376,8 +59006,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) FROM tab0 AS cor0 +---- +-3 +-3 query II rowsort SELECT - - col0 col0, col1 FROM tab0 AS cor0 @@ -58463,8 +59096,15 @@ SELECT + col1 + - ( - col0 ) FROM tab0 # Datafusion - Expected - 21298144 # Datafusion - Expected - -96 # Datafusion - Expected - 12644352 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col0" at position 0 and "tab1\.col2 \* \(\- Int64\(98\)\) \* tab1\.col2 \* \(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - + col2 ) AS col0, col2 * - + 98 * col2 * - col1 AS col0 FROM tab1 WHERE - col0 / col1 + + + col2 >= 14 +---- +-59 +-68 +-96 +12644352 +1705690 +21298144 query I rowsort label-9768 SELECT 53 + + - SUM ( DISTINCT col0 ) * MAX ( DISTINCT - col1 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 @@ -58654,8 +59294,15 @@ SELECT + + col1 AS col1, + ( col0 ) col1 FROM tab2 AS cor0 # Datafusion - Expected - -643 # Datafusion - Expected - 81 # Datafusion - Expected - -3416 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col2\) \* Int64\(73\) \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 AS col0, ( - + col2 ) * + + 73 + + col0 AS col0 FROM tab0 cor0 +---- +-3416 +-643 +-7130 +1 +21 +81 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT - 25 + + col1 + 86 IS NULL @@ -58687,8 +59334,15 @@ SELECT ALL col2 AS col0 FROM tab2 cor0 WHERE NOT ( NOT - ( + col0 ) <= + - 64 ) # Datafusion - Expected - -5712 # Datafusion - Expected - 90 # Datafusion - Expected - -8064 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "Int64\(84\) \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 AS col2, + 84 * - + col2 col2 FROM tab1 AS cor0 +---- +-4956 +-5712 +-8064 +90 +90 +90 query I rowsort label-9805 SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + 0 AS col2 FROM tab1 AS cor0 @@ -58872,8 +59526,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) / \(\- sum\(tab2\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 57 AS col2, - COUNT ( * ) / - SUM ( + + col0 ) AS col2 FROM tab2 +---- +0 +57 query I rowsort SELECT 49 * 6 col2 FROM tab0 @@ -59033,8 +59690,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE + 10 IS NOT NULL # Datafusion - Expected - -59 # Datafusion - Expected - 9996 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \* cor0\.col1 \* \(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col1 * col1 * - - col0 col2, - col2 AS col2 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +201019 +2125 +9996 query I rowsort SELECT + col1 * - + col2 col1 FROM tab2 diff --git a/data/sqlite/random/aggregates/slt_good_42.slt b/data/sqlite/random/aggregates/slt_good_42.slt index 2c4c9f9..4f1b5ca 100644 --- a/data/sqlite/random/aggregates/slt_good_42.slt +++ b/data/sqlite/random/aggregates/slt_good_42.slt @@ -301,8 +301,15 @@ SELECT DISTINCT - MIN ( + 43 ) FROM tab0 WHERE + col0 / - col2 + + + col2 IS NOT # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col1, col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-46 SELECT + COUNT ( * ) * + 76 + - MIN ( ALL col2 ) AS col0 FROM tab1 WHERE NOT - col1 * 40 * + col1 - - col0 IS NULL @@ -549,8 +556,15 @@ SELECT ALL - col0 / + 49 + + col2 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 3984 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(83\)\) \* Int64\(\-48\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 83 ) * - 48 AS col1, + col0 AS col1 FROM tab2 +---- +3984 +3984 +3984 +46 +64 +75 query III rowsort SELECT * FROM tab2 WHERE NOT + col0 + - col1 NOT IN ( col1 - - col1 ) @@ -1451,8 +1465,9 @@ SELECT MIN ( ALL - col1 ) FROM tab0 -81 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "\(\- tab0\.col0\) \* tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, - col0 * + col2 col2 FROM tab0 WHERE col1 IS NULL +---- query II rowsort label-237 SELECT + CAST ( 4 AS INTEGER ) col2, + col2 * - col2 FROM tab1 @@ -1597,8 +1612,15 @@ SELECT + col1 * - ( + col2 ) + + 46 AS col2 FROM tab0 AS cor0 WHERE NULL > NULL # Datafusion - Expected - 35 # Datafusion - Expected - 490 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* cor0\.col2 AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 49 * col2 AS col1, 35 AS col1 FROM tab0 AS cor0 +---- +2303 +35 +35 +35 +4851 +490 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NULL @@ -3233,8 +3255,15 @@ SELECT DISTINCT - 19 + - col2 FROM tab1 AS cor0 WHERE - 43 IS NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col0, + col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT DISTINCT + col2 * + col0 - + col2 + + col2 col0 FROM tab0 AS cor0 @@ -3509,8 +3538,15 @@ SELECT + + MIN ( ( 9 ) ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -6 # Datafusion - Expected - 1 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(64\)\) / \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(\-80\) / Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 64 / - col0 AS col2, - 80 / + 12 AS col2 FROM tab1 AS cor0 +---- +-6 +-6 +-6 +0 +0 +1 query I rowsort SELECT - + 12 AS col2 FROM tab2 AS cor0 @@ -4034,8 +4070,15 @@ NULL # Datafusion - Expected - 40 # Datafusion - Expected - -75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 AS col0, + col2 AS col0 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +23 +40 +58 query I rowsort SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL @@ -4084,8 +4127,15 @@ SELECT ALL - col0, col0 FROM tab1 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col1, col1 AS col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query II rowsort SELECT DISTINCT col2 AS col0, - col0 + - col0 + - col0 FROM tab0 @@ -4294,8 +4344,11 @@ SELECT DISTINCT + + col1 AS col1 FROM tab2 AS cor0 WHERE - ( + col2 ) = 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- cor0\.col0\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( - col0 ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +3 +97 query I rowsort label-702 SELECT DISTINCT col1 / - - 13 + 89 + + + col0 AS col2 FROM tab0 AS cor0 @@ -4388,8 +4441,11 @@ SELECT DISTINCT + 26 * + COUNT ( * ) - + 61 AS col0 FROM tab0 AS cor0 CROSS JOIN # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 49 AS col2, COUNT ( * ) AS col2 FROM tab1 +---- +3 +49 query II rowsort label-715 SELECT ALL - 82 AS col0, COUNT ( * ) FROM tab2 @@ -4492,8 +4548,15 @@ SELECT DISTINCT - 34 * + - 5 FROM tab2 # Datafusion - Expected - -40 # Datafusion - Expected - -58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "\(\- cor0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2, - col2 FROM tab2 AS cor0 +---- +-23 +-23 +-40 +-40 +-58 +-58 query I rowsort SELECT ALL - + col1 + + 60 FROM tab0 AS cor0 @@ -4960,8 +5023,15 @@ SELECT * FROM tab1 WHERE NOT - col0 NOT IN ( - 55 - - col0 - 4, col0 / ( + - col # Datafusion - Expected - 2250 # Datafusion - Expected - 96 # Datafusion - Expected - 2250 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "Int64\(25\) \* Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, + 25 * + 90 AS col0 FROM tab1 +---- +2250 +2250 +2250 +59 +68 +96 query I rowsort label-805 SELECT DISTINCT - ( - MIN ( col0 ) ) AS col2 FROM tab0 @@ -5939,8 +6009,15 @@ SELECT DISTINCT + CAST ( NULL AS FLOAT8 ) AS col0 FROM tab1 AS cor0 WHERE NOT NU # Datafusion - Expected - -765 # Datafusion - Expected - 47 # Datafusion - Expected - -4947 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \+ cor0\.col2 AS col1" at position 0 and "Int64\(51\) \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 52 + col2 AS col1, + 51 * - col0 col1 FROM tab0 AS cor0 +---- +-42 +-4437 +-4947 +-5 +-765 +47 query I rowsort SELECT DISTINCT - 94 * 17 * - - col0 FROM tab2 AS cor0 @@ -6428,8 +6505,15 @@ SELECT ALL + + col1 * col1 * col0 FROM tab0 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 1650 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* CAST\(Int64\(30\) AS Int32\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 55 * + CAST ( + + 30 AS INTEGER ) AS col2, col1 AS col2 FROM tab2 AS cor0 +---- +1650 +1650 +1650 +51 +67 +77 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -7189,8 +7273,9 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= 11 + + col0 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 FROM tab0 AS cor0 WHERE NOT ( ( NULL ) IS NULL ) +---- query I rowsort SELECT DISTINCT + 35 * + col2 FROM tab1 AS cor0 @@ -7230,8 +7315,15 @@ SELECT + 7 col0, COUNT ( * ) + + 88 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 61 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-61\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 61 col2, + col1 AS col2 FROM tab2 AS cor0 +---- +51 +61 +61 +61 +67 +77 query III rowsort SELECT DISTINCT * FROM tab0 WHERE + + 66 IS NULL @@ -8113,8 +8205,10 @@ SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 73 * 51 IS NO # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 2172c99356713b6904ed86267ad94cda -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 1 and "tab2\.col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - col2 AS col1, + col2, ( + col2 ) FROM tab2 +---- +9 values hashing to 4218c90502e0d7f91d3c9c416ffb01f8 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 @@ -8184,8 +8278,15 @@ SELECT + - 1 / - + col0 + + 60 FROM tab1 AS cor0 WHERE NOT - 43 < + 0 # Datafusion - Expected - 76 # Datafusion - Expected - 31 # Datafusion - Expected - 148 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ tab0\.col2 AS col0" at position 0 and "Int64\(61\) \- \(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 + col2 AS col0, 61 - - + col0 AS col0 FROM tab0 +---- +100 +128 +148 +158 +31 +76 query I rowsort label-1335 SELECT DISTINCT + COUNT ( - + 82 ) AS col0 FROM tab1 @@ -8565,8 +8666,15 @@ NULL # Datafusion - Expected - -7226 # Datafusion - Expected - 173 # Datafusion - Expected - -8282 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) / cor0\.col2 \+ Int64\(82\) \+ cor0\.col0 AS col1" at position 0 and "cor0\.col2 / \(\- cor0\.col2\) \+ cor0\.col0 \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 14 / + + col2 + 82 + col0 AS col1, + col2 / - col2 + col0 * - col0 AS col1 FROM tab1 AS cor0 +---- +-2602 +-7226 +-8282 +133 +167 +173 query I rowsort label-1396 SELECT ALL - - 75 * COUNT ( * ) FROM tab1 AS cor0 @@ -9716,8 +9824,15 @@ SELECT - COUNT ( + 93 ) col2 FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, col2 AS col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-1597 SELECT DISTINCT MAX ( + - col0 ) + - + COUNT ( * ) AS col0 FROM tab2 @@ -9896,8 +10011,15 @@ SELECT DISTINCT col1 * + + 43 + col0 FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, + ( + col1 ) FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-1626 SELECT ALL - + CAST ( 35 AS INTEGER ) FROM tab0 AS cor0 @@ -10067,8 +10189,11 @@ SELECT DISTINCT - col1 / 88 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col1" at position 0 and "\(\- \(\- \(\- min\(cor0\.col2\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 83 AS col1, - ( - - MIN ( + + col2 ) ) AS col1 FROM tab0 AS cor0 +---- +-10 +83 query I rowsort SELECT - 31 FROM tab2 cor0 WHERE NOT NULL IS NULL @@ -10178,8 +10303,12 @@ 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\(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\. +query III valuesort SELECT + COUNT ( * ), - ( - COUNT ( * ) ), + COUNT ( * ) FROM tab1 +---- +3 +3 +3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 @@ -10559,8 +10688,9 @@ SELECT SUM ( ALL - - col2 ) AS col2 FROM tab1 223 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \+ tab2\.col0 AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 + + col0 AS col2, 1 col2 FROM tab2 WHERE NOT - 40 IS NOT NULL +---- query III rowsort SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 93 + - 98 @@ -11117,8 +11247,15 @@ SELECT ALL + + 49, col2 + + col1 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -77 # Datafusion - Expected - 216075 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- Int64\(\-43\)\) \* cor0\.col0 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 * - ( - 43 ) * col0 AS col0, - col1 AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +100878 +211904 +216075 query I rowsort SELECT DISTINCT col2 - + - col2 AS col0 FROM tab1 cor0 @@ -11448,8 +11585,11 @@ SELECT - + 82 / COUNT ( - + 99 ) + + + SUM ( DISTINCT + col1 ) + + 43 / - ( - - # Datafusion - Datafusion expected results: # Datafusion - Expected - 157 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ \(\- Int64\(\-17\)\) \+ Int64\(55\) AS col0" at position 0 and "Int64\(80\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 85 + - - 17 + + 55 col0, + 80 - + + COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +157 +77 query I rowsort label-1890 SELECT ALL + MAX ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0 @@ -11695,8 +11835,15 @@ SELECT DISTINCT - 68 AS col1, col2 * 76 * - col1 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -98 # Datafusion - Expected - -81 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, - 98 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +-98 +-98 +-98 query I rowsort label-1928 SELECT ALL - COUNT ( * ) - - 3 - - COUNT ( * ) FROM tab2 WHERE + + 28 IS NOT NULL @@ -13289,8 +13436,15 @@ SELECT DISTINCT - + ( MAX ( 79 ) ) AS col0 FROM tab0 cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col1, + col2 AS col1 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT ALL - - col0 FROM tab1 WHERE - col0 * - 42 * 50 IS NULL @@ -16604,8 +16758,15 @@ SELECT ALL + ( - - col2 ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 51 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 51 AS col0, + col2 col0 FROM tab2 +---- +23 +40 +51 +51 +51 +58 query II rowsort SELECT DISTINCT - ( - + col1 ) + + col0 AS col1, 90 FROM tab0 @@ -16624,8 +16785,15 @@ SELECT DISTINCT - ( - + col1 ) + + col0 AS col1, 90 FROM tab0 # Datafusion - Expected - 97 # Datafusion - Expected - -6097 # Datafusion - Expected - 106 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ cor0\.col2 \* \(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col2 \- Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + col2 * - col0 AS col0, + col2 - - 38 AS col0 FROM tab1 AS cor0 +---- +-4845 +-4930 +-6097 +106 +134 +97 query II rowsort label-2757 SELECT col1 + + CAST ( col2 AS INTEGER ) AS col2, 56 * - col1 FROM tab2 AS cor0 @@ -16765,8 +16933,15 @@ NULL # Datafusion - Expected - -6 # Datafusion - Expected - NULL # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- tab1\.col0\) / Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) col2, - col0 / 13 AS col2 FROM tab1 +---- +-3 +-6 +-7 +NULL +NULL +NULL query II rowsort SELECT 8 AS col1, - 0 + - 3 AS col2 FROM tab0 @@ -16785,8 +16960,15 @@ SELECT 8 AS col1, - 0 + - 3 AS col2 FROM tab0 # Datafusion - Expected - 152 # Datafusion - Expected - 58 # Datafusion - Expected - 142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "Int64\(75\) \+ tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, + 75 + + col1 AS col0 FROM tab2 +---- +126 +142 +152 +23 +40 +58 query II rowsort SELECT DISTINCT - col1 AS col0, 55 FROM tab1 @@ -16809,8 +16991,15 @@ SELECT DISTINCT * FROM tab1 WHERE NULL <> + col2 # Datafusion - Expected - 85 # Datafusion - Expected - -77 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 77 col1, col0 AS col1 FROM tab1 +---- +-77 +-77 +-77 +51 +85 +91 query I rowsort label-2784 SELECT DISTINCT ( + SUM ( ALL + col1 ) ) FROM tab1 AS cor0 @@ -17057,8 +17246,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, - SUM ( + - 75 ) AS col0 FROM tab2 AS cor0 +---- +-3 +225 query I rowsort SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL @@ -17673,8 +17865,11 @@ SELECT DISTINCT + - col2, 47 * + - col0 - + ( - 99 ) + - col0 col2 FROM tab1 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col2" at position 0 and "Int64\(56\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 25 AS col2, + ( 56 ) + + + COUNT ( * ) AS col2 FROM tab1 cor0 +---- +25 +59 query I rowsort SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL @@ -17979,8 +18174,15 @@ SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL # Datafusion - Expected - 4606 # Datafusion - Expected - 22 # Datafusion - Expected - 490 -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\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 22 AS col0, 98 * + col1 AS col0 FROM tab1 AS cor0 +---- +1372 +22 +22 +22 +4606 +490 query I rowsort label-2971 SELECT ALL MIN ( + + col2 ) + COUNT ( * ) AS col1 FROM tab1 @@ -18049,8 +18251,15 @@ SELECT ALL SUM ( - col0 ) / - + MAX ( ALL - 17 ) FROM tab1 cor0 # Datafusion - Expected - 15 # Datafusion - Expected - -54 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 54 ) AS col2, 15 col2 FROM tab0 AS cor0 WHERE NOT 11 * + + col2 IS NULL +---- +-54 +-54 +-54 +15 +15 +15 query II rowsort SELECT - 53, col0 FROM tab1 @@ -18069,8 +18278,15 @@ SELECT - 53, col0 FROM tab1 # Datafusion - Expected - -23 # Datafusion - Expected - -73920 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* \(\- tab1\.col2\) \* \(\- Int64\(\-55\)\) AS col1" at position 0 and "Int64\(\-23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * - col2 * - - 55 AS col1, - 23 AS col1 FROM tab1 +---- +-16225 +-175780 +-23 +-23 +-23 +-73920 query I rowsort SELECT + 96 * 2 AS col1 FROM tab2 @@ -18874,8 +19090,11 @@ SELECT ALL * FROM tab2 WHERE NOT col0 NOT BETWEEN col1 + col1 - col2 AND + col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) col2, - 32 col2 FROM tab0 +---- +-32 +3 query III rowsort SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 * col2 IS NOT NULL @@ -19328,8 +19547,15 @@ SELECT ALL + MAX ( - - col0 ) FROM tab0 # Datafusion - Expected - -714 # Datafusion - Expected - -206 # Datafusion - Expected - -4277 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \+ \(\- tab1\.col2\) \+ \(\- tab1\.col0\) AS col0" at position 0 and "\(\- tab1\.col0\) \* tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + + ( + - col1 ) ) + + + ( - + ( ( ( col2 ) ) ) ) + - col0 col0, - col0 * + col1 AS col0 FROM tab1 +---- +-149 +-161 +-206 +-425 +-4277 +-714 query III rowsort SELECT * FROM tab0 WHERE col2 > col2 @@ -19616,8 +19842,15 @@ SELECT ALL + 26 - + 90 + col1 + + + col2 * col2 * + 36 + + 23 FROM tab0 AS cor0 # Datafusion - Expected - -49 # Datafusion - Expected - 38 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \- Int64\(\-89\) AS col2" at position 0 and "Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col1 - - 89 AS col2, - 49 AS col2 FROM tab2 AS cor0 +---- +-49 +-49 +-49 +12 +22 +38 query I rowsort SELECT ALL 22 - + col0 FROM tab2 cor0 @@ -19798,8 +20031,10 @@ SELECT ALL - col0 * + col1 * - col1 + - + 78 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to cf674fa5e6acf341e99973afee830e15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-14\)\)\) AS col0" at position 1 and "tab0\.col1 \- \(\- \(\- tab0\.col2\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col2, - ( + ( - - 14 ) ) AS col0, col1 - - - col2 AS col0 FROM tab0 +---- +9 values hashing to 0e51605e19374e5d383fa011286bb8e9 query I rowsort label-3275 SELECT DISTINCT - - COUNT ( * ) + - 48 FROM tab0 WHERE - - col1 + + col1 <= - + ( + col1 ) @@ -20121,8 +20356,10 @@ SELECT DISTINCT col2 col1, - col2 AS col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 68d0fe511a8aad40db60cc515a19a1cf -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col1 AS col0, + 53, - col0 col0 FROM tab2 AS cor0 +---- +9 values hashing to bd70c8cc913d6c948110592874782dad query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN + 73 AND - col0 / - + 20 @@ -20815,8 +21052,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NOT 15 IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "CAST\(NULL AS Float64\) \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + ( - - col0 ) AS col2, CAST ( NULL AS FLOAT8 ) * - + col1 AS col2 FROM tab0 AS cor0 +---- +15 +87 +97 +NULL +NULL +NULL query II rowsort label-3439 SELECT + SUM ( col0 ), + COUNT ( * ) AS col2 FROM tab1 AS cor0 @@ -21748,8 +21992,15 @@ SELECT ( - - ( + col0 ) ) AS col2 FROM tab1 # Datafusion - Expected - 0 # Datafusion - Expected - 54 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col0" at position 0 and "\(\- tab2\.col2\) / \(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 54 AS col0, - col2 / - col0 AS col0 FROM tab2 +---- +0 +0 +0 +54 +54 +54 query II rowsort SELECT - 70, 79 col2 FROM tab2 @@ -21891,8 +22142,15 @@ SELECT ALL COUNT ( + col1 ) FROM tab2 # Datafusion - Expected - -47 # Datafusion - Expected - 54 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ \(\- Int64\(42\)\) AS col2" at position 0 and "\(\- tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( col2 ) + - + 42 col2, - col1 AS col2 FROM tab1 +---- +-14 +-47 +-5 +17 +26 +54 query I rowsort SELECT - col2 + - + 37 FROM tab0 @@ -22312,8 +22570,11 @@ SELECT - MAX ( + 90 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT tab2\.col2\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( DISTINCT + ( col2 ) ) AS col0, COUNT ( * ) AS col0 FROM tab2 +---- +23 +3 query I rowsort label-3697 SELECT ALL + CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 @@ -23332,8 +23593,15 @@ SELECT - 20 / - COUNT ( + - ( col2 ) ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 48 # Datafusion - Expected - NULL # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col1, + 48 AS col1 FROM tab0 AS cor0 +---- +48 +48 +48 +NULL +NULL +NULL query I rowsort label-3866 SELECT - COUNT ( 94 ) FROM tab1 AS cor0 @@ -24211,8 +24479,15 @@ SELECT ALL 71 AS col2, 93 AS col0 FROM tab1 cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, + col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-4001 SELECT DISTINCT - CAST ( - - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0 @@ -25389,8 +25664,15 @@ SELECT col0 * + 55 * + col0 FROM tab0 # Datafusion - Expected - -1316 # Datafusion - Expected - 8640 # Datafusion - Expected - -392 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* Int64\(90\) AS col2" at position 0 and "Int64\(\-28\) \* tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * + 90 col2, - 28 * col1 AS col2 FROM tab1 +---- +-1316 +-140 +-392 +5310 +6120 +8640 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -25487,8 +25769,15 @@ SELECT + COUNT ( * ) * - 4 + 37 + - COUNT ( * ) FROM tab1 # Datafusion - Expected - -2 # Datafusion - Expected - 9800 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- \(\- tab0\.col2\)\) \+ \(\- tab0\.col1\) AS col2" at position 0 and "tab0\.col1 / \(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * - - col2 + - col1 AS col2, col1 / - col2 AS col2 FROM tab0 +---- +-1 +-2 +0 +2128 +79 +9800 query I rowsort label-4223 SELECT ALL col0 + + - col1 / + col0 * - col2 AS col1 FROM tab1 @@ -26474,8 +26763,15 @@ SELECT - col1, 2 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -2176 # Datafusion - Expected - 96 # Datafusion - Expected - -3072 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "Int64\(32\) \* \(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 col0, 32 * - col2 AS col0 FROM tab1 +---- +-1888 +-2176 +-3072 +59 +68 +96 query I rowsort SELECT 80 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NULL @@ -26955,8 +27251,15 @@ SELECT + - col0 AS col1, - col0 FROM tab0 AS cor0 # Datafusion - Expected - 29 # Datafusion - Expected - 77 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col1 AS col2, 29 AS col2 FROM tab2 AS cor0 +---- +29 +29 +29 +51 +67 +77 query I rowsort SELECT DISTINCT 89 + + + col1 FROM tab0 @@ -27941,8 +28244,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE - col1 * + col1 IN ( + - ( + col0 ) * col1 # Datafusion - Expected - 64 # Datafusion - Expected - -430 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(\-86\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 * - 86 AS col0, 64 AS col0 FROM tab1 AS cor0 +---- +-1204 +-4042 +-430 +64 +64 +64 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND col1 * + 88 @@ -29385,8 +29695,9 @@ NULL NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + ( + col2 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE + - col0 IS NULL +---- query I rowsort SELECT + col0 + - 83 FROM tab1 AS cor0 @@ -30089,8 +30400,11 @@ SELECT ALL col2 * col1 * 71 + + 83 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \+ \(\- CAST\(count\(cor0\.col2\) AS Int32\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 + - CAST ( COUNT ( col2 ) AS INTEGER ) AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +3 +42 query I rowsort SELECT DISTINCT - - 82 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 @@ -30140,8 +30454,15 @@ SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( + col1 ) / col2 * + co # Datafusion - Expected - -59 # Datafusion - Expected - -5551 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(\-61\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * - 61 AS col0, - col2 AS col0 FROM tab1 AS cor0 +---- +-3111 +-5185 +-5551 +-59 +-68 +-96 query III rowsort SELECT ALL * FROM tab1 cor0 WHERE NOT - ( - 33 ) IS NULL @@ -30587,8 +30908,15 @@ SELECT ALL col2 - - col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 47 AND col2 # Datafusion - Expected - -81 # Datafusion - Expected - 99 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col1\) \+ cor0\.col0 / cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, - col1 + + col0 / col1 AS col0 FROM tab0 AS cor0 +---- +-17 +-81 +10 +47 +96 +99 query I rowsort label-5059 SELECT - COUNT ( * ) * + - COUNT ( * ) col1 FROM tab1 AS cor0 @@ -31281,8 +31609,15 @@ NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-5174 SELECT + 63 / + col1 FROM tab2 @@ -31316,8 +31651,15 @@ NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col0, col0 col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query III rowsort SELECT * FROM tab1 cor0 WHERE NOT col1 * - 52 IS NOT NULL @@ -31775,8 +32117,15 @@ SELECT ALL + col0 * + col2 FROM tab1 WHERE NULL < + 50 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 col1, + col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query III rowsort SELECT * FROM tab1 WHERE 92 IS NULL @@ -32363,8 +32712,15 @@ SELECT - col1 + - + col2 + + + col2 - col1 col0, col1 FROM tab2 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col2, col1 AS col2 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT DISTINCT + + 39 col0 FROM tab2 AS cor0 @@ -32920,8 +33276,15 @@ SELECT ALL + col2 * - 21 AS col2, - 95 FROM tab1 # Datafusion - Expected - 68 # Datafusion - Expected - 5 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- cor0\.col1\) AS Int32\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + CAST ( - col1 AS INTEGER ) col1, col2 AS col1 FROM tab1 AS cor0 +---- +14 +47 +5 +59 +68 +96 query I rowsort SELECT - + 65 * + + col0 * + - col2 FROM tab2 AS cor0 @@ -33715,8 +34078,15 @@ SELECT - 18 + + col2 + - - ( 32 ) * - col2 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 98 # Datafusion - Expected - -250 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \* CAST\(Int64\(25\) AS Int32\) AS col1" at position 0 and "tab0\.col2 \- \(\- \(\- tab0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 * CAST ( 25 AS INTEGER ) AS col1, col2 - - - col1 AS col1 FROM tab0 +---- +-11 +-1175 +-2475 +-250 +-34 +98 query I rowsort SELECT DISTINCT - ( - col2 ) - - ( + col1 ) FROM tab1 @@ -34288,8 +34658,15 @@ SELECT DISTINCT COUNT ( * ) - + MAX ( col2 ) FROM tab1 AS cor0 # Datafusion - Expected - -189 # Datafusion - Expected - 97 # Datafusion - Expected - -3116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "Int64\(\-33\) \* cor0\.col2 \+ cor0\.col0 \- Int64\(\-54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col0 col1, - 33 * col2 + + + col0 - - 54 AS col1 FROM tab0 AS cor0 +---- +-1482 +-189 +-3116 +15 +87 +97 query I rowsort SELECT ALL - col2 * + + col0 - + col2 - col1 col1 FROM tab0 AS cor0 @@ -34663,8 +35040,15 @@ SELECT + MAX ( ALL col0 ) col0 FROM tab2 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - -58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "CAST\(cor0\.col1 AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 col1, + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT + 64 <= - col2 +---- +-23 +-40 +-58 +51 +67 +77 query I rowsort SELECT - - ( + 33 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 @@ -35195,8 +35579,15 @@ SELECT + 92 + + - col1 / + + col0 + - + col0 col2 FROM tab0 # Datafusion - Expected - -21 # Datafusion - Expected - 97 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- CAST\(cor0\.col1 AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, - CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +15 +87 +97 query I rowsort SELECT - ( - 99 ) / - col0 + + - col0 + col2 - col0 FROM tab0 AS cor0 WHERE NOT + 20 IS NOT NULL @@ -35686,8 +36077,15 @@ SELECT ALL 75 * col1 + - - col1 AS col2 FROM tab2 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col2, + col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query II rowsort label-5899 SELECT + col0 / - 30 AS col1, - 53 FROM tab1 @@ -36307,8 +36705,15 @@ SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE NULL IN ( 30 ) # Datafusion - Expected - 8 # Datafusion - Expected - -94400 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* cor0\.col2 \* \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 * + col2 * - col2 AS col1, + 8 AS col1 FROM tab2 AS cor0 +---- +-198476 +-31211 +-94400 +8 +8 +8 query III rowsort label-6007 SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 48 BETWEEN - CAST ( NULL AS INTEGER ) AND ( + + 31 - - + col0 ) @@ -36862,8 +37267,15 @@ SELECT DISTINCT col1 * col2 AS col0, + 77 FROM tab1 # Datafusion - Expected - 87 # Datafusion - Expected - 0 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + - col0 col2, + col0 AS col2 FROM tab0 cor0 +---- +0 +0 +0 +15 +87 +97 query II rowsort SELECT + + col0 * + + 35 * + + 87 + - col0 AS col1, col2 AS col2 FROM tab1 AS cor0 @@ -36967,8 +37379,15 @@ SELECT ALL + col2 * - ( + col1 ) FROM tab2 AS cor0 # Datafusion - Expected - 4277 # Datafusion - Expected - 631 # Datafusion - Expected - 714 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* \(\- cor0\.col0\) \+ Int64\(\-83\) AS col0" at position 0 and "cor0\.col0 \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 * - col0 + - 83 col0, + col0 * + col1 AS col0 FROM tab1 AS cor0 +---- +342 +4194 +425 +4277 +631 +714 query I rowsort SELECT ALL 48 * col0 FROM tab1 @@ -37119,8 +37538,15 @@ SELECT - 53 * 77 FROM tab2 # Datafusion - Expected - 46 # Datafusion - Expected - -5 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col2, + 46 AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +46 +46 +46 query I rowsort label-6141 SELECT ALL col1 / - 7 AS col0 FROM tab0 AS cor0 @@ -37577,8 +38003,11 @@ SELECT DISTINCT col2 AS col2, col2 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(77\)\) \+ Int64\(\-17\) AS col2" at position 0 and "max\(Int64\(79\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 77 + - 17 AS col2, MAX ( + + 79 ) AS col2 FROM tab2 WHERE NOT ( - + 6 ) IS NULL +---- +-94 +79 query I rowsort SELECT col1 * + - col2 FROM tab2 cor0 @@ -38031,8 +38460,15 @@ SELECT DISTINCT + col2 + - col0 AS col0 FROM tab0 cor0 # Datafusion - Expected - 56 # Datafusion - Expected - 53 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 53 AS col0, + 56 AS col0 FROM tab0 AS cor0 +---- +53 +53 +53 +56 +56 +56 query I rowsort SELECT DISTINCT - 75 * + 20 - - + col2 + + ( - col2 ) FROM tab1 AS cor0 @@ -38046,8 +38482,15 @@ SELECT DISTINCT - 75 * + 20 - - + col2 + + ( - col2 ) FROM tab1 AS cor0 # Datafusion - Expected - -426275 # Datafusion - Expected - -1 # Datafusion - Expected - -525980 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 / \(\- tab1\.col1\) AS col1" at position 0 and "tab1\.col2 \* Int64\(\-85\) \* \(\- \(\- tab1\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 / - col1 AS col1, col2 * - 85 * - - col0 col1 FROM tab1 +---- +-1 +-1 +-1 +-416160 +-426275 +-525980 query I rowsort SELECT DISTINCT + col2 + + col0 - - + col1 FROM tab0 @@ -38570,8 +39013,15 @@ SELECT + col1 col1, + col0 FROM tab2 AS cor0 # Datafusion - Expected - 43 # Datafusion - Expected - 71 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 col1, 43 AS col1 FROM tab1 AS cor0 +---- +43 +43 +43 +71 +71 +71 query I rowsort SELECT DISTINCT - ( - 71 ) FROM tab1 AS cor0 @@ -38596,8 +39046,15 @@ SELECT DISTINCT ( + 88 ) FROM tab0 AS cor0 # Datafusion - Expected - 3 # Datafusion - Expected - -816 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \* Int64\(12\) AS col1" at position 0 and "\(\- tab1\.col2\) / Int64\(\-17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 * 12 col1, - ( + col2 ) / - 17 AS col1 FROM tab1 +---- +-1152 +-708 +-816 +3 +4 +5 query I rowsort label-6387 SELECT + MAX ( DISTINCT + col0 ) * + + 90 AS col1 FROM tab0 @@ -39416,8 +39873,15 @@ SELECT ALL 86 AS col1, COUNT ( * ) AS col0 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - -75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 +---- +-46 +-64 +-75 +NULL +NULL +NULL query II rowsort label-6526 SELECT + + CAST ( - col2 AS INTEGER ) AS col2, col1 * - + col0 FROM tab2 WHERE NOT NULL IS NOT NULL @@ -40244,8 +40708,10 @@ SELECT * FROM tab0 WHERE + 21 < col1 + + - col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 9630c18fbfce4da237a5bb76024480ae -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col1" at position 0 and "cor0\.col1 \* \(\- cor0\.col0\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 27 AS col1, col1 * + - col0 * + + CAST ( NULL AS INTEGER ) AS col1, + + col1 AS col2 FROM tab2 AS cor0 +---- +9 values hashing to 832b4cbff83af301dfec9edd97448096 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE - col0 * col1 + + col2 <= NULL @@ -40702,8 +41168,15 @@ SELECT * FROM tab1 WHERE NULL < + 14 # Datafusion - Expected - 228 # Datafusion - Expected - 90 # Datafusion - Expected - 228 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "Int64\(6\) \* Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 90 AS col2, 6 * + 38 col2 FROM tab1 WHERE 89 IS NOT NULL +---- +228 +228 +228 +90 +90 +90 query I rowsort label-6728 SELECT - 38 / - ( - + 95 ) AS col2 FROM tab1 @@ -41177,8 +41650,11 @@ SELECT ALL - SUM ( + col1 ) AS col0 FROM tab2 # 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 "Int64\(0\) AS col1" at position 0 and "min\(DISTINCT Int64\(29\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 0 AS col1, MIN ( DISTINCT + 29 ) AS col1 FROM tab1 +---- +0 +29 query I rowsort SELECT - col0 * + col0 AS col0 FROM tab0 WHERE NOT NULL <> col0 @@ -41489,8 +41965,10 @@ SELECT - COUNT ( * ) - MIN ( - col0 ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 7db45cbcff1393c165b7bbcefff366b8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \- Int64\(18\) \* tab2\.col2 \* tab2\.col0 AS col2" at position 0 and "\(\- Int64\(\-73\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 70 - + 18 * + col2 * + col0 AS col2, col1 + - col0 + + - 37, - - 73 AS col2 FROM tab2 +---- +9 values hashing to e690231c04238ebabab6f9b4e7718957 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -41508,8 +41986,9 @@ SELECT + MAX ( + col1 ) - + 35 + - COUNT ( * ) FROM tab1 9 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "Int64\(77\) \+ \(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, + 77 + - col1 AS col1 FROM tab0 WHERE NOT col0 IS NOT NULL +---- query I rowsort label-6861 SELECT col2 / + + 70 AS col1 FROM tab0 @@ -42127,8 +42606,15 @@ SELECT + col0 * 19 + + col0 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -4505 # Datafusion - Expected - -81 # Datafusion - Expected - -4505 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col2" at position 0 and "Int64\(53\) \* \(\- Int64\(85\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, + 53 * - ( + 85 ) col2 FROM tab0 +---- +-1 +-21 +-4505 +-4505 +-4505 +-81 query III rowsort SELECT * FROM tab0 WHERE ( NOT NULL NOT IN ( - col1 * 99 ) ) @@ -42137,8 +42623,11 @@ SELECT * FROM tab0 WHERE ( NOT NULL NOT IN ( - col1 * 99 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 85 AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +3 +85 query I rowsort SELECT + col0 * - col2 - 65 col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col0 AND - 33 + 38 @@ -42408,8 +42897,15 @@ SELECT ALL + ( 90 ) * + col1 FROM tab1 AS cor0 # Datafusion - Expected - 50 # Datafusion - Expected - 630 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* \(\- Int64\(\-7\)\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 90 * - - 7 AS col0, + 50 AS col0 FROM tab0 AS cor0 +---- +50 +50 +50 +630 +630 +630 query I rowsort SELECT DISTINCT col2 * + col0 * 96 AS col2 FROM tab0 AS cor0 @@ -42439,8 +42935,15 @@ SELECT - - 21 + COUNT ( * ) + + + 59 FROM tab0 AS cor0 # Datafusion - Expected - 65 # 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 "tab1\.col0 \+ tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 55 AS col2, col0 + col1 col2 FROM tab1 +---- +138 +55 +55 +55 +65 +90 query I rowsort label-7017 SELECT - MIN ( - + col1 ) AS col1 FROM tab1 @@ -42620,8 +43123,10 @@ SELECT 14 * - col0 + col1 - + + col2 * col0 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 8783bc9846f29f79c917d2e9266cdc64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col2 \+ \(\- CAST\(NULL AS Int32\)\) \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL col1 col0, col2 + - + CAST ( NULL AS INTEGER ) + + col1 AS col0, col2 AS col2 FROM tab2 AS cor0 +---- +9 values hashing to edc38562c5a6fd66cdbbbb4a7e4fc579 query I rowsort SELECT ALL + 69 FROM tab0 WHERE NULL IS NOT NULL @@ -43263,8 +43768,11 @@ SELECT DISTINCT + CAST ( + col1 AS INTEGER ) - col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(min\(Int64\(26\)\) AS Int32\) AS col1" at position 0 and "\(\- min\(cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( + MIN ( ALL 26 ) AS INTEGER ) AS col1, - MIN ( col1 ) AS col1 FROM tab1 AS cor0 +---- +-5 +26 query III rowsort SELECT ALL * FROM tab1 cor0 WHERE NOT - col0 IS NULL @@ -43472,8 +43980,15 @@ SELECT - CAST ( - + col0 AS INTEGER ) * - + col0 + 61 * - col1 * - - ( + col0 ) # Datafusion - Expected - -64 # Datafusion - Expected - 1950 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-26\)\) \* tab2\.col0 AS col2" at position 0 and "\(\- \(\- \(\- tab2\.col0\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - 26 ) * + col0 AS col2, - ( - - col0 ) col2 FROM tab2 +---- +-46 +-64 +-75 +1196 +1664 +1950 query III rowsort label-7184 SELECT ALL * FROM tab2 WHERE NOT + col1 * CAST ( + - col2 AS INTEGER ) BETWEEN NULL AND - col2 @@ -43609,8 +44124,15 @@ SELECT DISTINCT * FROM tab1 WHERE ( ( NOT NULL IS NOT NULL ) ) # Datafusion - Expected - 2074 # Datafusion - Expected - -261 # Datafusion - Expected - 284 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \+ Int64\(\-65\) \- tab0\.col0 AS col2" at position 0 and "tab0\.col0 \+ Int64\(97\) \- \(\- Int64\(90\)\) \* \(\- \(\- \(\- \(\- tab0\.col1\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 + - 65 - + col0 col2, col0 + + + 97 - - + 90 * - - ( - - col1 ) AS col2 FROM tab0 +---- +-127 +-162 +-261 +2074 +284 +7402 query I rowsort SELECT ALL ( - col0 ) + - col2 + + col2 + + 18 col2 FROM tab0 @@ -44228,8 +44750,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 67 * - COUNT ( * ) col2, ( 78 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 +---- +603 +78 query III rowsort SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN - 27 AND NULL @@ -44625,8 +45150,11 @@ SELECT - 42 * - COUNT ( * ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 AS col2, COUNT ( * ) AS col2 FROM tab2 +---- +3 +31 query I rowsort SELECT + col2 * + 8 AS col2 FROM tab0 @@ -44777,8 +45305,15 @@ SELECT 1 FROM tab0 cor0 WHERE NULL IS NULL # Datafusion - Expected - 55 # Datafusion - Expected - 68 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col0 \+ Int64\(\-29\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * + + col0 + - 29 AS col2, 55 AS col2 FROM tab0 AS cor0 +---- +1186 +1798 +55 +55 +55 +68 query I rowsort label-7399 SELECT 45 + col1 * - CAST ( + ( - 64 ) + + col2 AS INTEGER ) FROM tab2 @@ -45386,8 +45921,15 @@ SELECT ALL - 85 * + - 58 + col0 AS col0 FROM tab1 # Datafusion - Expected - -21 # Datafusion - Expected - -90 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \+ \(\- tab0\.col0\) AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 7 + + - col0 AS col0, - col1 AS col0 FROM tab0 +---- +-1 +-21 +-8 +-80 +-81 +-90 query I rowsort label-7510 SELECT COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0 @@ -46678,8 +47220,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + + 30 IS NOT NULL ) # Datafusion - Expected - 47 # Datafusion - Expected - 79 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 AS col0, col1 AS col0 FROM tab1 cor0 +---- +14 +47 +5 +79 +79 +79 query I rowsort SELECT DISTINCT - col1 + 30 + + 3 AS col2 FROM tab2 @@ -46723,8 +47272,10 @@ SELECT COUNT ( * ) * - + 64 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 05d677136bc9f05686465a850627b9a9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 1 and "tab1\.col2 AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 12 * - - col2 * 88 * + ( - col1 ) AS col2, + col2 AS col0, col2 AS col0 FROM tab1 +---- +9 values hashing to aabffce086deff5d5bab5655c0fe3012 query III rowsort label-7731 SELECT ALL * FROM tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NOT NULL @@ -46901,8 +47452,15 @@ NULL # Datafusion - Expected - 6188 # Datafusion - Expected - -96 # Datafusion - Expected - 4896 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 \* \(\- CAST\(\(\- cor0\.col2\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 AS col2, col0 * - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +4896 +5015 +6188 query I rowsort SELECT DISTINCT + + 63 FROM tab0 AS cor0 @@ -47287,8 +47845,10 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col0 AND col0 * + col0 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 2237beba589fcd301fd2d6134e4ee097 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(\-85\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT col1 AS col0, - 44 * col0 * + - col1 + + + col0 + col1 AS col2, - 85 AS col0 FROM tab2 AS cor0 +---- +9 values hashing to 2e3f60bcdf91a6d8063617b5994022ed query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + - 9 AND + + 92 @@ -47561,8 +48121,15 @@ SELECT - 2 * - 60 + - + 50 + - col2 - - col1 + + col0 + + + ( + CAST ( - + col0 # Datafusion - Expected - 2209 # Datafusion - Expected - 99 # Datafusion - Expected - 9801 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, col2 * + col2 AS col0 FROM tab0 AS cor0 +---- +10 +100 +2209 +47 +9801 +99 query I rowsort label-7869 SELECT ALL + COUNT ( * ) - - 83 FROM tab1 AS cor0 @@ -48666,8 +49233,11 @@ SELECT DISTINCT col1 + + 46 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col0" at position 0 and "Int64\(\-41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 57 AS col0, - 41 AS col0 FROM tab0, tab0 cor0 +---- +-41 +-57 query I rowsort label-8058 SELECT COUNT ( * ) + 83 col2 FROM tab2 @@ -49268,8 +49838,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col2, COUNT ( - + col2 ) AS col2 FROM tab0 +---- +-3 +3 query I rowsort label-8159 SELECT DISTINCT + - ( 32 ) - + COUNT ( * ) col2 FROM tab0 cor0 @@ -52072,8 +52645,10 @@ SELECT ( col0 ) / col0 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 6aafb5810c03505ffc47313b8bda0846 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab0\.col0 AS Int32\)\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - CAST ( col0 AS INTEGER ) AS col2, 26 col2, + col1 * + 5 + - + col2 FROM tab0 +---- +9 values hashing to d02b39ddb82a097b9a81ca1362e7932e query I rowsort SELECT + col2 * + - 12 FROM tab0 @@ -52315,8 +52890,11 @@ SELECT ( 16 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "min\(cor0\.col2\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) * + - COUNT ( * ) AS col2, + MIN ( ALL col2 ) / COUNT ( * ) col2 FROM tab1 AS cor0 +---- +-9 +19 query I rowsort label-8659 SELECT - + ( - COUNT ( * ) ) * - 94 + 37 FROM tab0 AS cor0 @@ -52845,8 +53423,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 +---- +3 +3 query III rowsort SELECT * FROM tab0 WHERE - 96 < NULL @@ -52952,8 +53533,15 @@ SELECT DISTINCT 40 * col2 FROM tab2 # Datafusion - Expected - 29 # Datafusion - Expected - 96 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 col1, 29 AS col1 FROM tab1 +---- +29 +29 +29 +59 +68 +96 query III rowsort SELECT * FROM tab0 WHERE NOT NULL < 93 * col0 @@ -53187,8 +53775,15 @@ SELECT ( - 2 ) FROM tab2 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 91 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col1 / \(\- \(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, col1 / - - col2 AS col1 FROM tab1 AS cor0 +---- +0 +0 +0 +51 +85 +91 query II rowsort SELECT col1 AS col1, 10 FROM tab0 AS cor0 @@ -53271,8 +53866,15 @@ SELECT ALL * FROM tab1 WHERE NOT ( + 9 ) IS NULL # Datafusion - Expected - 87 # Datafusion - Expected - 81 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab0\.col1\)\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - - col1 ) AS col2, + col0 AS col2 FROM tab0 +---- +1 +15 +21 +81 +87 +97 query III rowsort SELECT * FROM tab0 WHERE NOT - col0 - - ( col2 ) + - - 34 IS NULL @@ -53514,8 +54116,15 @@ SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT col1 * col2 IS NOT NULL # Datafusion - Expected - -115 # Datafusion - Expected - 5 # Datafusion - Expected - -115 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(\-87\) \+ \(\- Int64\(28\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, - 87 + - + 28 col0 FROM tab1 AS cor0 +---- +-115 +-115 +-115 +14 +47 +5 query I rowsort SELECT ALL - col2 * + 41 + ( - 35 ) + ( 63 ) FROM tab2 @@ -54505,8 +55114,15 @@ SELECT ALL + 33 * - 66 + + ( - + col2 ) * + col1 * col1 col0 FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - -81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, col1 AS col0 FROM tab0 +---- +-1 +-21 +-81 +1 +21 +81 query I rowsort SELECT ( + col2 ) * + col1 * - - col1 - + + col2 - - col2 FROM tab0 AS cor0 @@ -54537,8 +55153,15 @@ NULL # Datafusion - Expected - -68 # Datafusion - Expected - -5 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col1 AS col0, - col2 AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +-59 +-68 +-96 query II rowsort SELECT col2 AS col1, + 22 AS col0 FROM tab1 AS cor0 @@ -54636,8 +55259,15 @@ SELECT DISTINCT 70 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - -83 # Datafusion - Expected - 85 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col1" at position 0 and "Int64\(\-83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 AS col1, - 83 AS col1 FROM tab0 +---- +-83 +-83 +-83 +85 +85 +85 query I rowsort label-9046 SELECT + 90 * + + COUNT ( * ) FROM tab2 @@ -55438,8 +56068,15 @@ SELECT DISTINCT - SUM ( + 0 ) FROM tab2 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - -782 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \* cor0\.col2 \+ \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(41\) / \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 33 * ( col2 ) + + - col2 AS col1, + 41 / - col2 AS col1 FROM tab2 AS cor0 +---- +-1 +-1 +-1360 +-1972 +-782 +0 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * col0 IS NOT NULL @@ -55841,8 +56478,11 @@ 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\(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\. +query II valuesort SELECT + 69 * + + COUNT ( * ) * - COUNT ( * ) AS col0, COUNT ( - - 4 ) AS col0 FROM tab1 +---- +-621 +3 query I rowsort SELECT DISTINCT - col2 + + - 95 FROM tab0 @@ -55983,8 +56623,15 @@ SELECT DISTINCT * FROM tab1 WHERE + col1 + + + col0 IS NOT NULL # Datafusion - Expected - 4277 # Datafusion - Expected - 86 # Datafusion - Expected - 714 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \- Int64\(10\) AS col0" at position 0 and "tab1\.col0 \* tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 - 10 col0, col0 * + col1 AS col0 FROM tab1 +---- +425 +4277 +49 +58 +714 +86 query III rowsort SELECT ALL * FROM tab2 WHERE NOT - + col0 >= + col1 @@ -56078,8 +56725,15 @@ SELECT ALL COUNT ( DISTINCT 63 ) * - 95 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 95 # Datafusion - Expected - -81 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 AS col2, + 95 AS col2 FROM tab1 cor0 +---- +-81 +-81 +-81 +95 +95 +95 query II rowsort SELECT col0, col1 AS col1 FROM tab0 cor0 @@ -56225,8 +56879,15 @@ SELECT + col0, col2 / + + col0 FROM tab2 # Datafusion - Expected - 67 # Datafusion - Expected - -16 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 16 AS col2, col1 AS col2 FROM tab2 +---- +-16 +-16 +-16 +51 +67 +77 query I rowsort SELECT DISTINCT + + ( col0 ) * + - 77 AS col0 FROM tab0 AS cor0 @@ -57144,8 +57805,11 @@ SELECT DISTINCT 16, - col2 * + col0 + - col0 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, - ( - COUNT ( * ) ) AS col0 FROM tab1 cor0 +---- +3 +3 query I rowsort label-9449 SELECT ALL - CAST ( - - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0 @@ -57695,8 +58359,15 @@ SELECT ALL - - col2 - - col1 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - -5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col1 col2, col1 AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +14 +47 +5 query I rowsort SELECT + 10 + - col2 FROM tab2 AS cor0 @@ -57724,8 +58395,15 @@ NULL # Datafusion - Expected - -85 # Datafusion - Expected - 90 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 90 AS col2, - col0 AS col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +90 +90 +90 query II rowsort SELECT ALL - - 94 AS col1, col2 + + col0 + + col2 FROM tab0 cor0 @@ -58016,8 +58694,15 @@ SELECT - 16, + 77 + - col1 AS col1 FROM tab0 # Datafusion - Expected - -2496 # Datafusion - Expected - -58 # Datafusion - Expected - -2925 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col2" at position 0 and "Int64\(\-39\) \* tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 col2, - 39 * + col0 AS col2 FROM tab2 +---- +-1794 +-23 +-2496 +-2925 +-40 +-58 query III rowsort SELECT * FROM tab0 WHERE NOT - - col0 IN ( + col1 * - - 0, + col2 * - col1 - - + col2 ) @@ -60235,8 +60920,15 @@ SELECT DISTINCT COUNT ( * ) * + 69 * - 17 + ( - 67 ) FROM tab1 AS cor0 # Datafusion - Expected - 3912 # Datafusion - Expected - 6505 # Datafusion - Expected - 3096 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(85\) \+ \(\- cor0\.col2\) AS col2" at position 0 and "Int64\(93\) \+ \(\- cor0\.col2\) \* \(\- cor0\.col1\) \+ cor0\.col2 / cor0\.col1 \- cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * + 85 + - col2 AS col2, 93 + - col2 * - + col1 + + col2 / col1 - + + col1 AS col2 FROM tab2 cor0 +---- +1215 +3096 +3912 +4312 +5637 +6505 query III rowsort SELECT * FROM tab2 cor0 WHERE NOT + 0 / + 65 * + + col1 <> - col0 * - col0 @@ -60319,8 +61011,15 @@ SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + ( + - 65 ) IS NUL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, col1 AS col0 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-9968 SELECT + - SUM ( ALL 78 ) * 58 + - 75 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 diff --git a/data/sqlite/random/aggregates/slt_good_43.slt b/data/sqlite/random/aggregates/slt_good_43.slt index d7b12ae..ac903c3 100644 --- a/data/sqlite/random/aggregates/slt_good_43.slt +++ b/data/sqlite/random/aggregates/slt_good_43.slt @@ -926,8 +926,11 @@ SELECT ALL 18 + col0 + + 54 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col0" at position 0 and "sum\(DISTINCT CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 36 AS col0, SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) col0 FROM tab1 AS cor0 +---- +-36 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -1053,8 +1056,9 @@ SELECT - col0 * 91 FROM tab1 -8281 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "Int64\(\-23\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 65 col0, - 23 + CAST ( NULL AS INTEGER ) col0 FROM tab2 WHERE NOT 95 >= NULL +---- query I rowsort label-162 SELECT DISTINCT + 34 * - MAX ( - - 74 ) AS col0 FROM tab2 AS cor0 @@ -1091,8 +1095,11 @@ SELECT * FROM tab0 WHERE - 23 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1210 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \* Int64\(55\) AS col0" at position 0 and "Int64\(66\) \+ \(\- min\(tab0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 * 55 AS col0, 66 + + - MIN ( + col2 ) AS col0 FROM tab0 +---- +1210 +56 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 <> + col1 @@ -2277,8 +2284,11 @@ 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\(\-89\) AS col0" at position 0 and "Int64\(7\) / sum\(\(\- tab1\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 89 AS col0, 7 / SUM ( - + col0 ) AS col0 FROM tab1 +---- +-89 +0 query I rowsort SELECT 51 + + 91 AS col0 FROM tab0, tab2 AS cor0 @@ -2817,8 +2827,15 @@ SELECT * FROM tab1 WHERE NOT + + 62 / - col2 * 79 IN ( - - col0, + 47, + 57 ) # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "Int64\(50\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, 50 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 +---- +51 +85 +91 +NULL +NULL +NULL query I rowsort label-457 SELECT ( + CAST ( NULL AS INTEGER ) ) * + col2 - + 93 + + col1 * - 87 FROM tab2 @@ -4049,8 +4066,15 @@ SELECT DISTINCT - ( + + 86 ) - + + 32 FROM tab0 AS cor0 WHERE col0 * - - 34 IN ( # Datafusion - Expected - -90 # Datafusion - Expected - -220 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(4\)\) \* Int64\(55\) AS col0" at position 0 and "Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 4 * + + 55 AS col0, - 90 AS col0 FROM tab2 AS cor0 +---- +-220 +-220 +-220 +-90 +-90 +-90 query I rowsort label-657 SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 @@ -4490,8 +4514,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT CAST ( NULL AS FLOAT8 ) AS col0, - COUNT ( * ) AS col0 FROM tab0 +---- +-3 +NULL query III rowsort SELECT DISTINCT * FROM tab2 WHERE - col2 * + col2 IS NOT NULL @@ -5364,8 +5391,11 @@ SELECT DISTINCT * FROM tab1 WHERE NOT + 56 - col1 IS NULL # 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\(28\) / \(\- tab1\.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 II valuesort SELECT DISTINCT + 28 / - col0 AS col0, + 31 AS col0 FROM tab1 +---- +0 +31 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -5407,8 +5437,15 @@ SELECT - 19, col1 FROM tab2 AS cor0 # Datafusion - Expected - 19 # Datafusion - Expected - 5 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(\-49\) \- \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col1 AS col0, - 49 - + - col2 AS col0 FROM tab1 AS cor0 +---- +10 +14 +19 +47 +47 +5 query II rowsort label-884 SELECT - + COUNT ( * ), + COUNT ( * ) AS col1 FROM tab0 AS cor0 @@ -5982,8 +6019,15 @@ SELECT ALL - ( - 16 ) * + + 37 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -75 # Datafusion - Expected - 77 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 col1, ( - col0 ) AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +51 +67 +77 query I rowsort label-980 SELECT COUNT ( * ) * - 53 AS col2 FROM tab2 AS cor0 @@ -6323,8 +6367,15 @@ SELECT 27 AS col0, col2 AS col2 FROM tab2 # Datafusion - Expected - 81 # Datafusion - Expected - -97 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, 81 AS col2 FROM tab0 +---- +-15 +-87 +-97 +81 +81 +81 query III rowsort SELECT * FROM tab2 WHERE NOT - 45 <> NULL @@ -6696,8 +6747,15 @@ SELECT ALL col2 + - - 63 FROM tab1 # Datafusion - Expected - -4345 # Datafusion - Expected - -918 # Datafusion - Expected - -810 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* Int64\(\-18\) AS col1" at position 0 and "tab1\.col1 \* \(\- tab1\.col0\) \- tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * - 18 AS col1, col1 * - col0 - + col2 AS col1 FROM tab1 +---- +-1530 +-1638 +-4345 +-484 +-810 +-918 query I rowsort SELECT - col0 FROM tab1 WHERE NULL BETWEEN + ( - 63 ) * 17 + + - col2 AND + + col1 @@ -6783,8 +6841,15 @@ SELECT * FROM tab2 AS cor0 WHERE NULL IS NULL AND NOT ( NULL ) IS NOT NULL # Datafusion - Expected - 91 # Datafusion - Expected - -5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col1 AS col2, + col0 AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +51 +85 +91 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = ( NULL ) @@ -8319,8 +8384,15 @@ SELECT col2 + + + 74 FROM tab2 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, + col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-1367 SELECT col2 / + - col0 + 20 AS col1 FROM tab0 @@ -8399,8 +8471,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) * - ( + ( + COUNT ( * ) ) ) AS col1, 81 + + 39 AS col1 FROM tab1 AS cor0 +---- +120 +9 query II rowsort SELECT col2 AS col1, ( - - col0 ) FROM tab2 AS cor0 @@ -8489,8 +8564,15 @@ NULL # Datafusion - Expected - 51 # Datafusion - Expected - -80 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \+ \(\- tab2\.col2\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 + + ( - col2 ) col0, col1 AS col0 FROM tab2 +---- +-116 +-46 +-80 +51 +67 +77 query I rowsort label-1393 SELECT DISTINCT COUNT ( * ) * 85 AS col1 FROM tab2 @@ -8688,8 +8770,15 @@ SELECT + + col1 + + 1 + col2 * col1 * - - 41 col0 FROM tab0 AS cor0 # Datafusion - Expected - -18270 # Datafusion - Expected - 96 # Datafusion - Expected - -9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col0 AS col0" at position 0 and "\(\- cor0\.col0\) \* cor0\.col1 \* \(\- \(\- cor0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 + + col0 col0, - col0 * + col1 * - - col2 AS col0 FROM tab0 cor0 +---- +-18270 +-57105 +-66 +-9603 +66 +96 query III rowsort SELECT * FROM tab1 AS cor0 WHERE col1 < - ( + 97 ) @@ -9918,8 +10007,15 @@ NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 col0 FROM tab0 WHERE - col2 NOT BETWEEN col1 + col2 AND + - 40 + col1 + - col2 +---- +15 +15 +87 +87 +97 +97 query II rowsort SELECT col1 * + 20, - col1 col2 FROM tab1 @@ -11180,8 +11276,15 @@ SELECT ALL - ( - + 90 ) AS col2 FROM tab2 # Datafusion - Expected - -47 # Datafusion - Expected - -5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\)" at position 0 and "\(\- tab1\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1, - col1 FROM tab1 +---- +-14 +-14 +-47 +-47 +-5 +-5 query I rowsort label-1832 SELECT DISTINCT COUNT ( * ) / - 91 FROM tab2 @@ -11205,8 +11308,15 @@ SELECT + COUNT ( * ), + ( 61 ) AS col0 FROM tab0 # Datafusion - Expected - -67 # Datafusion - Expected - -52 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) AS col2" at position 0 and "\(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 52 AS col2, - ( col1 ) AS col2 FROM tab2 +---- +-51 +-52 +-52 +-52 +-67 +-77 query II rowsort SELECT + + col1 col0, col1 FROM tab2 cor0 @@ -11966,8 +12076,15 @@ SELECT DISTINCT + + CAST ( + 76 AS INTEGER ) FROM tab0 AS cor0 # Datafusion - Expected - -37 # Datafusion - Expected - -60 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(60\)\) AS col0" at position 0 and "\(\- cor0\.col1\) \+ \(\- \(\- cor0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 60 AS col0, - col1 + - - col2 AS col0 FROM tab2 AS cor0 +---- +-28 +-37 +-60 +-60 +-60 +-9 query I rowsort label-1955 SELECT ( + - 95 ) * + + COUNT ( * ) FROM tab1 @@ -12322,8 +12439,15 @@ SELECT - + ( - col1 ) * + + col1 * 25 + col0 + - 12 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 66 # Datafusion - Expected - 55 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- Int64\(22\)\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + - + 22 AS col2, + 66 AS col2 FROM tab2 AS cor0 +---- +29 +45 +55 +66 +66 +66 query I rowsort label-2010 SELECT + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0 @@ -12690,8 +12814,15 @@ SELECT + + col1 * + 68 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - -3797 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col1\) \+ cor0\.col0 \+ Int64\(14\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * - col1 + col0 + + 14 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +-1113 +-3002 +-3797 +23 +40 +58 query I rowsort label-2068 SELECT - col0 / - CAST ( NULL AS INTEGER ) - + col1 FROM tab0 @@ -12731,8 +12862,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 34 AS col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-3 +34 query I rowsort label-2075 SELECT + + COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT 77 IS NULL @@ -12784,8 +12918,15 @@ SELECT ( - + col1 ) AS col0 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col2, + col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-2083 SELECT DISTINCT col1 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) >= + col2 @@ -12804,8 +12945,11 @@ SELECT + + col0, 54 * + + 22 * - 2 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-3 +3 query II rowsort SELECT DISTINCT + + col0 AS col0, 89 FROM tab2 AS cor0 @@ -13265,8 +13409,15 @@ SELECT - 60 - + MIN ( ALL + 33 ) FROM tab2 # Datafusion - Expected - 77 # Datafusion - Expected - 5778 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* tab2\.col1 \- tab2\.col0 / tab2\.col0 \* Int64\(1\) \+ \(\- \(\- tab2\.col2\)\) \* Int64\(13\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * + col1 - col0 / col0 * + 1 + - - col2 * 13 AS col2, + col1 AS col2 FROM tab2 +---- +2644 +51 +5447 +5778 +67 +77 query I rowsort SELECT - col1 FROM tab0 WHERE - col1 IS NULL @@ -14490,8 +14641,11 @@ SELECT DISTINCT - + ( MAX ( ALL col1 ) ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-82\) / count\(DISTINCT Int64\(92\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, - 82 / COUNT ( DISTINCT + 92 ) AS col0 FROM tab0 +---- +-82 +3 query I rowsort label-2371 SELECT CAST ( - 90 AS INTEGER ) / - - col0 + - - 71 AS col2 FROM tab1 @@ -15057,8 +15211,15 @@ SELECT + - MAX ( ALL + 47 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -21 # Datafusion - Expected - -52 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) AS col2" at position 0 and "\(\- cor0\.col1\) \- Int64\(64\) / cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 52 AS col2, - col1 - + 64 / + + col0 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-52 +-52 +-52 +-85 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT - 16 * - col0 * col0 NOT BETWEEN - 85 * - col1 / - col0 + - - col1 - + + col0 + + col0 AND ( 99 ) @@ -15222,8 +15383,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT ( + 66 ) IS NOT NULL # Datafusion - Expected - 23 # Datafusion - Expected - -97 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, 23 AS col2 FROM tab0 +---- +-15 +-87 +-97 +23 +23 +23 query I rowsort SELECT ALL col1 * - + col0 AS col1 FROM tab2 @@ -15399,8 +15567,11 @@ SELECT ALL - col1 - - col1 col2 FROM tab2 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 col1" at position 0 and "\(\- count\(cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 56 AS col1, - COUNT ( ALL col2 ) AS col1 FROM tab2 AS cor0 +---- +-3 +-56 query I rowsort label-2517 SELECT DISTINCT MIN ( DISTINCT - + col1 ) AS col2 FROM tab1 AS cor0 @@ -15542,8 +15713,15 @@ SELECT DISTINCT 68 + + + 24 * + 52 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 2772 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- \(\- Int64\(\-28\)\)\) \+ Int64\(1\) \+ \(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 * - ( - - 28 ) + + 1 + + - col1 AS col0, col1 col0 FROM tab0 cor0 +---- +1 +1236 +21 +260 +2772 +81 query II rowsort SELECT ALL col1, + col1 * + col2 - + col1 AS col2 FROM tab0 @@ -17168,8 +17346,11 @@ SELECT + + MAX ( ALL - col0 ) AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 +---- +3 +NULL query I rowsort SELECT DISTINCT 20 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 @@ -17474,8 +17655,15 @@ SELECT DISTINCT SUM ( col0 ) col1 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col1, + col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-2858 SELECT - + COUNT ( * ) FROM tab0 WHERE col2 IS NULL @@ -17641,8 +17829,15 @@ SELECT ALL + - ( + - 73 ) * - col2 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -96 # Datafusion - Expected - -389069 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col0 \* cor0\.col1 \+ cor0\.col1 \+ cor0\.col0 AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 * + col0 * + + col1 + + col1 + col0 AS col0, - col2 col0 FROM tab1 AS cor0 +---- +-36035 +-36349 +-389069 +-59 +-68 +-96 query I rowsort label-2887 SELECT DISTINCT + ( - MAX ( - + col1 ) ) AS col1 FROM tab0 AS cor0 @@ -17935,8 +18130,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE + 45 IN ( col2 ) # Datafusion - Expected - 3807 # Datafusion - Expected - 59 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-59\)\) AS col1" at position 0 and "cor0\.col2 \* \(\- \(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 59 AS col1, col2 * - - col1 col1 FROM tab0 AS cor0 +---- +210 +3807 +59 +59 +59 +99 query I rowsort SELECT col2 FROM tab0 AS cor0 WHERE NOT - col1 + + ( - col2 ) * col1 IS NOT NULL @@ -18571,8 +18773,15 @@ SELECT + 22 AS col2 FROM tab1 cor0 # Datafusion - Expected - -64 # Datafusion - Expected - 5025 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col0 * - col1 AS col0, - col0 AS col0 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +2346 +4928 +5025 query I rowsort label-3037 SELECT + - COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 @@ -18602,8 +18811,15 @@ SELECT - COUNT ( * ) + + - 55 FROM tab1 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 AS col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT DISTINCT - 88 * + + 85 + 25 * + col2 FROM tab2 AS cor0 @@ -18958,8 +19174,9 @@ SELECT col1 / 96 FROM tab2 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* tab1\.col2 \+ tab1\.col1 AS col0" at position 0 and "\(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * col2 + col1 col0, - col2 AS col0 FROM tab1 WHERE NOT NULL = NULL +---- query I rowsort SELECT DISTINCT col0 * - + 65 AS col0 FROM tab0 @@ -20021,8 +20238,15 @@ SELECT col1 AS col1, + col0 - col1 AS col0 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, + col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-3279 SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 @@ -20047,8 +20271,15 @@ SELECT DISTINCT * FROM tab2 WHERE + + col2 * + - col2 + + + col2 IS NULL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col1, ( col1 ) AS col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT DISTINCT 24 * - + 13 FROM tab2 AS cor0 WHERE - 29 >= - col1 @@ -20275,8 +20506,15 @@ SELECT DISTINCT + col2 * + 24 + - - col2 FROM tab2 AS cor0 # Datafusion - Expected - 53 # Datafusion - Expected - 75 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "cor0\.col0 \* cor0\.col0 / \(\- \(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 AS col2, col0 * col0 / - - col1 AS col2 FROM tab2 AS cor0 +---- +41 +46 +53 +64 +75 +83 query I rowsort label-3320 SELECT ALL - - ( SUM ( - col0 ) ) AS col2 FROM tab1 AS cor0 @@ -20511,8 +20749,15 @@ SELECT + col0, + col2 FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - -94 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 94 AS col1, + col2 AS col1 FROM tab1 AS cor0 +---- +-94 +-94 +-94 +59 +68 +96 query I rowsort SELECT ALL - + 79 AS col2 FROM tab2 AS cor0 @@ -21001,8 +21246,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT ( 54 ) * + + col1 - + col2 * + col0 IS NOT # Datafusion - Expected - -67 # Datafusion - Expected - 85 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 85 AS col2, - col1 AS col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +85 +85 +85 query II rowsort label-3439 SELECT 40 / - col2 * + 23 + + CAST ( NULL AS INTEGER ), col0 FROM tab2 @@ -21139,8 +21391,15 @@ SELECT 98 + - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - -21 # Datafusion - Expected - -81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, - ( col1 ) AS col2 FROM tab0 AS cor0 +---- +-1 +-1 +-21 +-21 +-81 +-81 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 @@ -21149,8 +21408,15 @@ SELECT - col1 AS col2, - ( col1 ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -21 # Datafusion - Expected - -81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 AS col1, - col1 AS col1 FROM tab0 AS cor0 +---- +-1 +-1 +-21 +-21 +-81 +-81 query I rowsort SELECT - 36 AS col0 FROM tab0 cor0 WHERE NOT 98 IS NOT NULL @@ -21386,8 +21652,15 @@ SELECT + + CAST ( + 36 AS INTEGER ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 6593 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* \(\- cor0\.col1\) \+ \(\- cor0\.col0\) \+ cor0\.col2 AS col1" at position 0 and "Int64\(\-87\) / CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - col1 ) * - col1 + + ( - col0 ) + col2 AS col1, - 87 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 +---- +3 +364 +6593 +NULL +NULL +NULL query I rowsort SELECT + - col1 + - col2 - col1 AS col2 FROM tab1 AS cor0 @@ -21449,8 +21722,15 @@ SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NOT 91 IS NOT NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col0, col0 FROM tab0 WHERE NULL IS NULL +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT + 75 FROM tab1 cor0 @@ -21971,8 +22251,15 @@ NULL # Datafusion - Expected - 42 # Datafusion - Expected - 97 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, 42 col1 FROM tab0 AS cor0 +---- +15 +42 +42 +42 +87 +97 query I rowsort SELECT DISTINCT - - 41 AS col2 FROM tab0 AS cor0 @@ -23706,8 +23993,11 @@ SELECT ALL 30 * + 90 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +-3 +3 query I rowsort label-3877 SELECT ALL - + ( - COUNT ( * ) ) * 27 - + COUNT ( * ) + + 28 FROM tab1 AS cor0 @@ -23980,8 +24270,15 @@ SELECT ( - - col2 ) + - col2 FROM tab1 # Datafusion - Expected - 96 # Datafusion - Expected - 58 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, 96 AS col1 FROM tab2 +---- +23 +40 +58 +96 +96 +96 query I rowsort SELECT - + col1 + + 24 FROM tab2 WHERE - col2 = - col2 + - col0 @@ -24224,8 +24521,11 @@ SELECT ALL + col0 FROM tab1 WHERE NOT ( NULL IS NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -6860 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* \(\- Int64\(98\)\) AS col2" at position 0 and "Int64\(25\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 70 * - ( + + 98 ) AS col2, 25 + + COUNT ( * ) AS col2 FROM tab1 +---- +-6860 +28 query II rowsort SELECT + col0 AS col0, + col2 + + ( + 12 ) FROM tab0 WHERE NULL IS NULL @@ -24308,8 +24608,9 @@ SELECT ALL - - col1, + col1 AS col0 FROM tab1 AS cor0 5 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, 42 AS col2 FROM tab1 WHERE NOT - col0 <> - col2 +---- # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 3bf658a3d91b9d1bfd58483f40a27c43 @@ -25948,8 +26249,11 @@ SELECT DISTINCT * FROM tab2 WHERE NOT ( - col0 * - ( + col2 ) ) < NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 86 AS col2, - 88 AS col2 FROM tab2 +---- +-88 +86 query III rowsort SELECT * FROM tab1 WHERE ( + - col2 ) IS NULL @@ -26346,8 +26650,15 @@ SELECT DISTINCT + COUNT ( + col0 ) col1 FROM tab1 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 19 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-19\)\) AS col0" at position 0 and "cor0\.col0 \+ \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + ( + - 19 ) AS col0, col0 + - col0 AS col0 FROM tab2 cor0 +---- +0 +0 +0 +19 +19 +19 query I rowsort SELECT DISTINCT - + 8 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 @@ -26482,8 +26793,11 @@ SELECT - + ( + 78 ) AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL +---- +0 +0 query I rowsort label-4335 SELECT - - col1 / - + col0 FROM tab2 AS cor0 @@ -27319,8 +27633,11 @@ SELECT DISTINCT + col0 AS col0 FROM tab0 AS cor0 WHERE - ( + 49 ) IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 51 AS col2, COUNT ( * ) col2 FROM tab1 AS cor0 +---- +3 +51 query II rowsort SELECT DISTINCT + + col1 AS col0, - 87 * - + col1 + col1 * - ( + - 16 ) * - - col1 + + col0 * col0 - - 5 AS col2 FROM tab0 AS cor0 WHERE + col2 / - col2 * col2 * - - 34 <> NULL @@ -27564,8 +27881,11 @@ SELECT - col1 + + + col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, 32 col2 FROM tab2 AS cor0 WHERE NULL = NULL +---- +0 +32 query II rowsort SELECT 14 * + - col1 AS col2, col2 * 66 FROM tab2 AS cor0 @@ -27797,8 +28117,15 @@ SELECT + - 63 col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 # Datafusion - Expected - 81 # Datafusion - Expected - -99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col2, col1 AS col2 FROM tab0 +---- +-10 +-47 +-99 +1 +21 +81 query I rowsort label-4550 SELECT ALL - col2 / + 14 AS col2 FROM tab0 @@ -28748,8 +29075,15 @@ SELECT col2, 16 AS col0 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -9409 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* tab0\.col0 AS col2" at position 0 and "\(\- tab0\.col0\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 * col0 col2, - col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 +---- +-225 +-7569 +-9409 +NULL +NULL +NULL query III rowsort SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - 54 ) @@ -28898,8 +29232,9 @@ SELECT DISTINCT col0, - col1 * - + col1 FROM tab2 # Postgresql - Postgres error: db error: ERROR: division by zero # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* Int64\(68\) AS col2" at position 0 and "Int64\(\-37\) / Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * + + 68 AS col2, - 37 / - 0 AS col2 FROM tab2 WHERE NOT NULL > + col0 OR NULL = ( NULL ) +---- query I rowsort label-4731 SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT + + col0 > + - 75 + + col1 @@ -29661,8 +29996,15 @@ SELECT DISTINCT + 54 + + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - -99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col2 col2, CAST ( NULL AS INTEGER ) * - 55 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +NULL +NULL +NULL query II rowsort SELECT ALL + + col1 AS col2, + 19 AS col0 FROM tab2 AS cor0 @@ -30095,8 +30437,15 @@ SELECT + MIN ( col1 ) FROM tab1 # Datafusion - Expected - 17 # Datafusion - Expected - 99 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "Int64\(64\) \- tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, + 64 - col2 AS col0 FROM tab0 +---- +-35 +10 +17 +47 +54 +99 query I rowsort label-4923 SELECT + SUM ( - col1 ) AS col1 FROM tab2 @@ -30418,8 +30767,11 @@ SELECT + - col0 AS col0, col2 * - col2 - + - col1 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, 78 AS col2 FROM tab1 cor0 +---- +3 +78 query II rowsort SELECT DISTINCT col1 * + col1, - col0 AS col0 FROM tab0 @@ -31543,8 +31895,15 @@ SELECT DISTINCT col2 + + 87, ( - 46 ) AS col1 FROM tab0 # Datafusion - Expected - 38 # Datafusion - Expected - 94 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \- \(\- tab1\.col1\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 - - col1 col2, 38 AS col2 FROM tab1 +---- +10 +28 +38 +38 +38 +94 query I rowsort SELECT + 68 col1 FROM tab0 @@ -32185,8 +32544,10 @@ SELECT ALL + - col1 * + col2 + + 53 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 05c149f6029fc2fa57706791be2d8635 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(52\) \* cor0\.col1 \* \(\- \(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col2 AS col1, + 52 * + + col1 * - - col2 col1, col0 FROM tab1 cor0 +---- +9 values hashing to e4913631c79b1063320d1fa8f4df2192 query I rowsort SELECT DISTINCT + col2 + - + 78 col1 FROM tab2 AS cor0 @@ -32290,8 +32651,15 @@ SELECT DISTINCT - 57 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 2 # Datafusion - Expected - -145 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \+ Int64\(\-54\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + - 54 AS col2, 2 AS col2 FROM tab1 WHERE NOT - col1 = + + col2 +---- +-105 +-139 +-145 +2 +2 +2 query I rowsort label-5285 SELECT ALL 26 / - 98 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -32709,8 +33077,10 @@ SELECT + + col2 * + 17 + - col0 + - + col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 1477aa70a1796473aa0cb031845373d3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \+ \(\- tab0\.col0\) AS col1" at position 0 and "\(\- tab0\.col0\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col0 + - col0 AS col1, col1 col2, + - col0 col1 FROM tab0 +---- +9 values hashing to b6cb3dd76314ecead37d25d61c7ecce0 query I rowsort SELECT 36 FROM tab1 WHERE NULL <> col0 @@ -32733,8 +33103,15 @@ SELECT 94 + + COUNT ( * ) - - + COUNT ( * ) AS col2 FROM tab1 # Datafusion - Expected - -1 # Datafusion - Expected - -97 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \- \(\- \(\- tab2\.col1\)\) AS col2" at position 0 and "tab2\.col1 / Int64\(\-64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 - - - col1 AS col2, + col1 / - 64 AS col2 FROM tab2 +---- +-1 +-1 +-141 +-142 +-97 +0 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -32767,8 +33144,15 @@ SELECT ALL ( - + 1 ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col0, col2 col0 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query III rowsort SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + + col0 @@ -32805,8 +33189,15 @@ SELECT col0, 35 AS col1 FROM tab2 # Datafusion - Expected - 29 # Datafusion - Expected - 91 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, 29 col1 FROM tab1 AS cor0 +---- +29 +29 +29 +51 +85 +91 query I rowsort label-5368 SELECT ALL SUM ( ( col0 ) ) FROM tab2 AS cor0 WHERE NOT - col1 IS NULL @@ -33280,8 +33671,15 @@ SELECT ALL + 25 + - ( + col1 ) AS col0 FROM tab1 cor0 # Datafusion - Expected - 90 # Datafusion - Expected - 2 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / cor0\.col2 AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col1 / + col2 col2, 90 AS col2 FROM tab0 AS cor0 +---- +0 +1 +2 +90 +90 +90 query I rowsort SELECT DISTINCT - 48 * - col1 * col0 + + ( 2 ) FROM tab1 AS cor0 @@ -34176,8 +34574,10 @@ SELECT col0 * 47 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 1879c104935cd8dc5576630dd4785357 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) / tab2\.col2 AS col2" at position 0 and "tab2\.col0 / \(\- tab2\.col2\) \+ Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - col2 / col2 AS col2, col0 / + - col2 + 78 AS col2, - - col2 AS col1 FROM tab2 +---- +9 values hashing to 46523bad7e9a4c2f47a05a1354aaf9e2 query II rowsort label-5596 SELECT 6 + + ( - + 56 ) * - MIN ( col1 ), + 7 + + MIN ( - col0 ) + 91 * + 77 AS col0 FROM tab1 @@ -34846,8 +35246,15 @@ SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN ( col2 * - col2 ) AND NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col1, col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-5716 SELECT ALL COUNT ( col1 ) AS col0 FROM tab1 @@ -35034,8 +35441,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), + COUNT ( * ) FROM tab0 +---- +3 +3 query I rowsort label-5748 SELECT ALL 36 / - - col2 FROM tab2 @@ -35117,8 +35527,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), + COUNT ( * ) FROM tab2 AS cor0 +---- +3 +3 query I rowsort label-5763 SELECT COUNT ( ALL col1 ) AS col2 FROM tab0 @@ -36108,8 +36521,15 @@ SELECT col2 + + col0 + - 64 AS col2 FROM tab2 # Datafusion - Expected - -2560 # Datafusion - Expected - -75 # Datafusion - Expected - -4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "\(\- tab2\.col2\) \* tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, - col2 * + + col0 col2 FROM tab2 +---- +-1058 +-2560 +-4350 +-46 +-64 +-75 query II rowsort SELECT 61 * - + col0 + + 23 col2, - col2 AS col1 FROM tab1 @@ -36296,8 +36716,15 @@ SELECT col0 * + - 82 col2 FROM tab0 # Datafusion - Expected - -21 # Datafusion - Expected - 90 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \+ tab0\.col2 AS col2" at position 0 and "\(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 43 + col2 AS col2, - col1 AS col2 FROM tab0 +---- +-1 +-21 +-81 +142 +53 +90 query I rowsort SELECT DISTINCT + col2 * + + col0 AS col2 FROM tab2 @@ -36486,8 +36913,15 @@ NULL # Datafusion - Expected - 115 # Datafusion - Expected - -3404 # Datafusion - Expected - 322 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(37\)\) \* Int64\(92\) AS col2" at position 0 and "Int64\(\-23\) \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 37 * + 92 col2, - 23 * - col1 AS col2 FROM tab1 AS cor0 +---- +-3404 +-3404 +-3404 +1081 +115 +322 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL <> + col0 / col1 + - col2 ) @@ -37229,8 +37663,15 @@ SELECT * FROM tab0 WHERE NOT - + col0 / col0 * + col0 NOT BETWEEN + ( 55 ) * + c # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, + col2 AS col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-6111 SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + col1 AS col1 FROM tab2 @@ -37864,8 +38305,15 @@ SELECT DISTINCT + col1 * - col2 + + + col2 + + - col0 - - col1 AS col1 FROM tab2 # Datafusion - Expected - -47 # Datafusion - Expected - 161 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \+ \(\- \(\- cor0\.col2\)\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 65 + - - col2 col1, - col1 AS col1 FROM tab1 cor0 +---- +-14 +-47 +-5 +124 +133 +161 query I rowsort SELECT ALL 83 + 92 * col1 AS col2 FROM tab0 AS cor0 @@ -38964,8 +39412,15 @@ SELECT ALL + COUNT ( * ) - - + MIN ( ALL + 69 ) FROM tab0 # Datafusion - Expected - 31 # Datafusion - Expected - 95 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) / cor0\.col0 \+ \(\- cor0\.col1\) \- \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 / + + col0 + - col1 - - + col0 AS col1, 31 AS col1 FROM tab0 cor0 +---- +-69 +31 +31 +31 +66 +95 query I rowsort label-6401 SELECT ALL - col1 * + - CAST ( + 23 AS INTEGER ) col0 FROM tab0 @@ -39007,8 +39462,11 @@ SELECT DISTINCT + col2 + + col1 * 96 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- cor0\.col0\)\)\) AS col1" at position 0 and "Int64\(29\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( - col0 ) col1, 29 * + COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +-3 +87 query III rowsort SELECT ALL * FROM tab1 WHERE NOT + - col0 IN ( col2, - 71, - col2, - + col0 / - - col2 + + 87 ) @@ -39350,8 +39808,15 @@ SELECT col0 + col0 FROM tab1 WHERE NOT col2 IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - 798 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* Int64\(57\) AS col2" at position 0 and "tab1\.col1 \+ CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT + col1 * 57 col2, col1 + + + CAST ( NULL AS FLOAT8 ) AS col2 FROM tab1 +---- +2679 +285 +798 +NULL +NULL +NULL query I rowsort label-6465 SELECT - COUNT ( - ( + 23 ) ) FROM tab1 @@ -39399,8 +39864,11 @@ SELECT col2 * CAST ( col0 AS INTEGER ) * + + col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, + 22 AS col0 FROM tab0 +---- +22 +3 query I rowsort SELECT DISTINCT + 50 * + 62 + col2 AS col1 FROM tab1 AS cor0 @@ -39617,8 +40085,15 @@ NULL # Datafusion - Expected - 15 # Datafusion - Expected - 99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, col0 AS col1 FROM tab0 +---- +10 +15 +47 +87 +97 +99 query I rowsort SELECT col0 AS col0 FROM tab1 WHERE NOT ( NULL ) <= ( NULL ) @@ -39690,8 +40165,15 @@ SELECT + COUNT ( DISTINCT - 24 ) AS col2, SUM ( + - col2 ) FROM tab2 AS cor0 # Datafusion - Expected - 7 # Datafusion - Expected - NULL # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 1 / + CAST ( NULL AS INTEGER ) AS col1, + 7 col1 FROM tab0 AS cor0 +---- +7 +7 +7 +NULL +NULL +NULL query I rowsort label-6516 SELECT SUM ( - ( col0 ) ) * - 86 AS col1 FROM tab0 AS cor0 @@ -39770,8 +40252,15 @@ SELECT ALL + CAST ( + 18 AS INTEGER ) * - + col1 * + + col1 * - + 69 * CAST ( + # Datafusion - Expected - -33 # Datafusion - Expected - 309375 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col0 \* \(\- Int64\(55\)\) AS col0" at position 0 and "Int64\(31\) \+ \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 * + + col0 * - + 55 col0, 31 + + - col0 AS col0 FROM tab2 AS cor0 +---- +-15 +-33 +-44 +116380 +225280 +309375 query I rowsort SELECT - ( - 74 ) col2 FROM tab0 AS cor0 @@ -39917,8 +40406,11 @@ SELECT ALL - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -195 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-69\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 42 * - COUNT ( * ) + - 69 AS col1, COUNT ( * ) col1 FROM tab0 AS cor0 +---- +-195 +3 query I rowsort SELECT + 87 * - + col1 * col2 * + col1 col0 FROM tab2 @@ -40944,8 +41436,11 @@ SELECT col2 * - - col1 * - col0 * - 65 AS col1 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 "Int64\(69\) 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 II valuesort SELECT 69 AS col2, + COUNT ( + 5 ) AS col2 FROM tab2 +---- +3 +69 query I rowsort label-6729 SELECT ALL + 97 * COUNT ( * ) FROM tab0 @@ -41113,8 +41608,15 @@ SELECT ALL 79 * - col1 FROM tab2 # Datafusion - Expected - -210 # Datafusion - Expected - 97 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col1 \* \(\- cor0\.col1\) / cor0\.col1 \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, col1 * - col1 / ( col1 ) * col2 col1 FROM tab0 AS cor0 +---- +-210 +-3807 +-99 +15 +87 +97 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2 @@ -41439,8 +41941,11 @@ SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 190 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \* Int64\(\-95\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 2 * + - 95 AS col0, COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 +---- +190 +9 query I rowsort SELECT col2 * - 18 - - - 16 + + ( col0 ) * + + col2 FROM tab2 cor0 @@ -41749,8 +42254,15 @@ NULL # Datafusion - Expected - 91 # Datafusion - Expected - -25 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* \(\- tab1\.col1\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * - col1 AS col2, col0 col2 FROM tab1 +---- +-196 +-2209 +-25 +51 +85 +91 query I rowsort SELECT col2 + 28 AS col0 FROM tab1 @@ -42149,8 +42661,15 @@ SELECT + COUNT ( + col1 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - -2592 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(\-27\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * - 27 AS col0, - col2 AS col0 FROM tab1 AS cor0 +---- +-1593 +-1836 +-2592 +-59 +-68 +-96 query I rowsort SELECT ALL 75 * ( - - col1 ) FROM tab2 AS cor0 @@ -43013,8 +43532,15 @@ SELECT col1 / - CAST ( + - ( col0 ) AS INTEGER ) AS col0 FROM tab0 # Datafusion - Expected - 17 # Datafusion - Expected - -97 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, + 17 col2 FROM tab0 +---- +-15 +-87 +-97 +17 +17 +17 query I rowsort label-7066 SELECT - + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL @@ -44644,8 +45170,9 @@ SELECT * FROM tab2 AS cor0 WHERE 4 IS NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* \(\- tab1\.col0\) \* tab1\.col2 AS col2" at position 0 and "Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 * - col0 * + col2 AS col2, 43 AS col2 FROM tab1 WHERE NULL IS NOT NULL +---- query I rowsort label-7345 SELECT ALL ( + SUM ( ALL - col2 ) ) * + - MIN ( DISTINCT - ( - 24 ) ) FROM tab1 @@ -44829,8 +45356,11 @@ SELECT - 90 + - 77 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab2 +---- +3 +3 query II rowsort SELECT col1 AS col1, - ( - col0 ) FROM tab1 AS cor0 @@ -45326,8 +45856,15 @@ SELECT ALL MAX ( 88 ) AS col1 FROM tab1 # Datafusion - Expected - -67 # Datafusion - Expected - -77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col0" at position 0 and "\(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, - col1 AS col0 FROM tab2 +---- +-51 +-51 +-67 +-67 +-77 +-77 query II rowsort SELECT DISTINCT + col2 AS col2, + col1 FROM tab1 @@ -45433,8 +45970,15 @@ SELECT * FROM tab0 WHERE NOT - 12 * 2 IS NOT NULL # Datafusion - Expected - 105 # Datafusion - Expected - 77 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "tab2\.col0 \+ \(\- \(\- Int64\(30\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col2, col0 + - - ( + + 30 ) AS col2 FROM tab2 +---- +105 +51 +67 +76 +77 +94 query I rowsort label-7470 SELECT DISTINCT - CAST ( + AVG ( + - col2 ) AS INTEGER ) AS col1 FROM tab0 AS cor0 @@ -45770,8 +46314,15 @@ NULL # Datafusion - Expected - -37 # Datafusion - Expected - 53 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "Int64\(\-37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 53 AS col1, - 37 AS col1 FROM tab1 +---- +-37 +-37 +-37 +53 +53 +53 query I rowsort label-7525 SELECT - CAST ( + - col1 AS INTEGER ) AS col1 FROM tab0 @@ -46666,8 +47217,15 @@ SELECT - 60 * - 19 + - col0 FROM tab0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - -68 # Datafusion - Expected - 96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + col2 ) AS col1, - ( col2 ) AS col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +59 +68 +96 query I rowsort label-7676 SELECT ALL COUNT ( DISTINCT + col1 ) * + COUNT ( * ) FROM tab0 cor0 @@ -46677,8 +47235,11 @@ SELECT ALL COUNT ( DISTINCT + col1 ) * + COUNT ( * ) FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(26\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + MIN ( 26 ) AS col2, + COUNT ( * ) col2 FROM tab0 AS cor0 +---- +-26 +3 query I rowsort label-7678 SELECT ( + 11 ) / col2 col0 FROM tab2 AS cor0 @@ -47268,8 +47829,11 @@ SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IN ( ( - col0 ), col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- max\(DISTINCT Int64\(50\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, - MAX ( DISTINCT + + 50 ) AS col1 FROM tab0 cor0 +---- +-50 +3 query II rowsort SELECT + col0 col1, 10 * + 82 AS col0 FROM tab2 AS cor0 @@ -47667,8 +48231,15 @@ SELECT DISTINCT + col2 * 36 * + col2 FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 AS col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query II rowsort SELECT DISTINCT - 32 AS col2, + col0 - - col2 FROM tab2 @@ -47864,8 +48435,15 @@ SELECT + ( ( + - COUNT ( * ) ) ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 52 # Datafusion - Expected - -87 # Datafusion - Expected - 52 -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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 87 AS col1, 52 AS col1 FROM tab2 AS cor0 +---- +-87 +-87 +-87 +52 +52 +52 query I rowsort label-7874 SELECT + SUM ( - col1 ) col0 FROM tab1 AS cor0 @@ -47906,8 +48484,9 @@ SELECT DISTINCT - 13 AS col1 FROM tab0 AS cor0 -13 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 94 col2, ( + ( + - col0 ) ) AS col2 FROM tab0 WHERE NOT ( 36 IS NOT NULL ) +---- query I rowsort SELECT DISTINCT col1 * + - col0 AS col1 FROM tab2 @@ -48287,8 +48866,15 @@ SELECT - col2 * 92 AS col0 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - -99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, ( + col2 ) AS col0 FROM tab0 +---- +-10 +-47 +-99 +10 +47 +99 query III rowsort SELECT ALL * FROM tab0 WHERE ( - col1 <= NULL ) @@ -48470,8 +49056,15 @@ SELECT DISTINCT 80 * + - COUNT ( * ) FROM tab2 # Datafusion - Expected - -47 # Datafusion - Expected - -5225 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(95\)\) \* Int64\(55\) AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 95 ) * 55 AS col1, - col1 col1 FROM tab1 +---- +-14 +-47 +-5 +-5225 +-5225 +-5225 query I rowsort label-7975 SELECT ALL - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) AS col0 FROM tab1 @@ -49731,8 +50324,11 @@ SELECT ALL ( + - col0 ) AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 1134 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col1" at position 0 and "Int64\(21\) \* Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 97 AS col1, + 21 * ( + 54 ) AS col1 FROM tab0 AS cor0 +---- +-97 +1134 query III rowsort SELECT ALL * FROM tab2 WHERE + + 46 IS NULL @@ -50855,8 +51451,9 @@ SELECT DISTINCT col1 * + - ( + + ( - 40 ) ) AS col0 FROM tab2 AS cor0 3080 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col0 \- cor0\.col2 AS col2" at position 0 and "\(\- cor0\.col2\) \+ \(\- cor0\.col2\) \+ cor0\.col2 \* cor0\.col1 \* \(\- cor0\.col0\) \- Int64\(\-99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * + + col0 - + col2 AS col2, - col2 + - col2 + + + col2 * + col1 * - col0 - + - 99 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL ) +---- query I rowsort label-8378 SELECT + COUNT ( DISTINCT col2 ) * + ( + 26 ) FROM tab1 AS cor0 @@ -50954,8 +51551,15 @@ SELECT ALL + CAST ( - 90 AS INTEGER ) / + col2 + + 74 + col2 col1 FROM tab1 AS c # Datafusion - Expected - 5015 # Datafusion - Expected - 97 # Datafusion - Expected - 6188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \+ \(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "\(\- cor0\.col2\) \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 6 + + ( + + ( - - col0 ) ) AS col0, - col2 * + - col0 AS col0 FROM tab1 AS cor0 +---- +4896 +5015 +57 +6188 +91 +97 query I rowsort SELECT col0 * - - 65 AS col0 FROM tab1 cor0 @@ -51218,8 +51822,11 @@ SELECT + 69, COUNT ( col0 ) + 5 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 92 AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +-92 +3 query I rowsort label-8438 SELECT - MIN ( DISTINCT - 52 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -52409,8 +53016,11 @@ SELECT CAST ( - ( + 84 ) AS INTEGER ) AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- count\(tab0\.col0\)\)\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - - COUNT ( col0 ) ) / COUNT ( * ) AS col0, 35 AS col0 FROM tab0 +---- +-1 +35 query I rowsort label-8639 SELECT ALL 52 / + 75 FROM tab2 @@ -52908,8 +53518,11 @@ SELECT DISTINCT * FROM tab2 AS cor0 INNER JOIN tab1 AS cor1 ON NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 423 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(47\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) * + 47 AS col2, + COUNT ( * ) + + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1, tab2 AS cor0 +---- +18 +423 query II rowsort label-8723 SELECT - 55 * + COUNT ( * ), CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0 @@ -52968,8 +53581,15 @@ SELECT DISTINCT - COUNT ( 77 ) FROM tab0 # Datafusion - Expected - 3080 # Datafusion - Expected - 75 # Datafusion - Expected - 3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col0 AS Int32\) AS col1" at position 0 and "tab2\.col1 \* tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( + + col0 AS INTEGER ) col1, col1 * col2 AS col1 FROM tab2 +---- +1173 +3080 +3886 +46 +64 +75 query I rowsort SELECT + col2 + + 24 * - - 41 AS col2 FROM tab1 @@ -53544,8 +54164,15 @@ NULL # Datafusion - Expected - 87 # Datafusion - Expected - 1 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) / \(\- tab0\.col1\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 / + ( - col1 ) AS col1, + col0 AS col1 FROM tab0 +---- +1 +1 +1 +15 +87 +97 query I rowsort SELECT DISTINCT - 36 * col1 * - 70 AS col0 FROM tab1 @@ -53604,8 +54231,15 @@ SELECT + 50 * - col2 + + + col1 col1 FROM tab2 AS cor0 # Datafusion - Expected - -3596 # Datafusion - Expected - -36 # Datafusion - Expected - -3845 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col2" at position 0 and "Int64\(43\) \* \(\- cor0\.col0\) \+ \(\- \(\- cor0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 36 col2, 43 * - + col0 + - - col2 col2 FROM tab1 AS cor0 +---- +-2097 +-3596 +-36 +-36 +-36 +-3845 query I rowsort SELECT DISTINCT - col0 * - + col0 col1 FROM tab2 AS cor0 @@ -53734,8 +54368,15 @@ SELECT ALL - col2 * + 5 * + col1 - + 46 + + col1 + - - col2 * col1 * + col1 + - # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, + col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-8850 SELECT ALL + CAST ( - - col1 AS INTEGER ) * - ( + + 63 ) * - - col2 * - col1 * - 41 - - col2 AS col2 FROM tab0 @@ -55545,8 +56186,15 @@ SELECT * FROM tab1 WHERE NULL IS NOT NULL AND NOT NULL < + - CAST ( - col1 AS IN # Datafusion - Expected - -40 # Datafusion - Expected - 75 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, - col2 col1 FROM tab2 +---- +-23 +-40 +-58 +46 +64 +75 query I rowsort label-9154 SELECT ALL + COUNT ( + col2 ) + + MAX ( ALL - - col2 ) AS col0 FROM tab1 @@ -57484,8 +58132,15 @@ NULL # Datafusion - Expected - 68 # Datafusion - Expected - 74 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 74 AS col1, + col2 AS col1 FROM tab1 +---- +59 +68 +74 +74 +74 +96 query II rowsort label-9473 SELECT ALL - + 84, 22 / - col1 AS col0 FROM tab1 AS cor0 @@ -57505,8 +58160,9 @@ SELECT ALL col0 / 51 AS col2 FROM tab0 AS cor0 1 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col0" at position 0 and "Int64\(60\) \* Int64\(54\) \* Int64\(90\) \* tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 17 col0, ( 60 ) * 54 * 90 * + + col2 col0 FROM tab0 WHERE NOT + 57 + - - col1 > NULL +---- query I rowsort SELECT 44 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 @@ -58385,8 +59041,10 @@ SELECT ALL COUNT ( * ) / - 60 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 09a2687d5072e7de5f941834973dfe5b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col2 \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + col2 AS col2, col2 * - col0 AS col2, col1 / - + 4 + + 31 col1 FROM tab0 AS cor0 +---- +9 values hashing to c111b8cf76d769207e489c02af0ef281 query I rowsort label-9630 SELECT DISTINCT - ( - col0 ) FROM tab1 AS cor0 WHERE NOT + col2 * + col2 > col1 * + CAST ( + - 37 AS FLOAT8 ) @@ -58458,8 +59116,15 @@ SELECT col1 AS col0 FROM tab2 WHERE NULL BETWEEN - 9 AND col0 # Datafusion - Expected - 92 # Datafusion - Expected - 81 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab0\.col1\)\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - col1 ) AS col1, ( + + 92 ) AS col1 FROM tab0 +---- +1 +21 +81 +92 +92 +92 query II rowsort SELECT DISTINCT + col1 * - col2 AS col1, - col0 FROM tab2 @@ -59077,8 +59742,9 @@ SELECT 34 AS col2 FROM tab0 WHERE NOT NULL = + + col1 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, col0 col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + CAST ( - - col1 AS INTEGER ) * + + ( 80 ) - + + col0 + - col1 ) +---- query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN NULL AND + col2 @@ -59839,8 +60505,15 @@ SELECT ALL - + 37 + 80 FROM tab1 AS cor0 # Datafusion - Expected - 78 # Datafusion - Expected - 91 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col0 AS Int32\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + CAST ( ( + col0 ) AS INTEGER ) AS col0, 78 AS col0 FROM tab1 cor0 +---- +51 +78 +78 +78 +85 +91 query II rowsort SELECT DISTINCT 94, + 24 * 50 + + 66 + - 96 + - 33 AS col1 FROM tab0 AS cor0 @@ -60366,8 +61039,15 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - -23 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col1" at position 0 and "\(\- \(\- CAST\(NULL AS Int32\)\)\) \* \(\- cor0\.col0\) \+ \(\- Int64\(\-62\)\) \+ \(\- CAST\(NULL AS Int32\)\) \- Int64\(64\) \* Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 23 AS col1, ( - - CAST ( NULL AS INTEGER ) ) * - + col0 + ( - - 62 ) + - CAST ( NULL AS INTEGER ) - + + 64 * 10 AS col1 FROM tab1 AS cor0 +---- +-23 +-23 +-23 +NULL +NULL +NULL query I rowsort label-9947 SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE - 48 NOT BETWEEN - col1 + - - 84 AND NULL diff --git a/data/sqlite/random/aggregates/slt_good_44.slt b/data/sqlite/random/aggregates/slt_good_44.slt index 690d66b..6903c5a 100644 --- a/data/sqlite/random/aggregates/slt_good_44.slt +++ b/data/sqlite/random/aggregates/slt_good_44.slt @@ -919,8 +919,11 @@ SELECT ALL COUNT ( * ) * + ( COUNT ( * ) ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 22 AS col1, COUNT ( * ) col1 FROM tab2 +---- +22 +3 query III rowsort SELECT * FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN NULL AND + - 47 @@ -1052,8 +1055,11 @@ SELECT ALL - - 16, col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - -112 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-59\)\) AS col2" at position 0 and "Int64\(26\) \+ Int64\(\-65\) \+ \(\- min\(Int64\(73\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 59 AS col2, + 26 + + - 65 + - MIN ( + 73 ) AS col2 FROM tab1 AS cor0 +---- +-112 +59 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT ( 76 ) IS NOT NULL @@ -1153,8 +1159,15 @@ NULL # Datafusion - Expected - 85 # Datafusion - Expected - -2167 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(23\) \+ Int64\(\-74\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * 23 + - 74 AS col2, + col0 AS col2 FROM tab1 AS cor0 +---- +-1247 +-2029 +-2167 +51 +85 +91 query I rowsort label-192 SELECT DISTINCT + + 96 / + col1 + + col2 - col2 AS col0 FROM tab1 cor0 @@ -1244,8 +1257,15 @@ SELECT - 34 / + 78 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -46 # Datafusion - Expected - -8 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(85\)\) \+ cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 85 + col1 AS col0, - col0 col0 FROM tab2 AS cor0 +---- +-18 +-34 +-46 +-64 +-75 +-8 query I rowsort label-205 SELECT - + 51 + 44 / + 98 FROM tab0 AS cor0 @@ -1866,8 +1886,11 @@ SELECT col0 - + 98 + - col2 * - col0 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 15 + + - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +-18 +3 query I rowsort SELECT - + col1 + col2 + - 67 * 47 FROM tab1 AS cor0 @@ -2293,8 +2316,15 @@ SELECT ALL + ( 89 ) + - col1 / - col2 + ( - - col1 ) + + col1 * col0 FROM tab0 A # Datafusion - Expected - -64 # Datafusion - Expected - 75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, - col0 AS col2 FROM tab2 cor0 +---- +-46 +-64 +-75 +46 +64 +75 query I rowsort SELECT ALL col1 + + + 73 AS col1 FROM tab1 AS cor0 @@ -3667,8 +3697,15 @@ SELECT - CAST ( - 20 AS INTEGER ) + COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 FROM tab2 AS cor0 WHERE col2 + + col0 IS NOT NULL +---- +46 +46 +64 +64 +75 +75 query I rowsort label-605 SELECT ALL + COUNT ( 66 ) * - CAST ( NULL AS INTEGER ) + + 9 * CAST ( NULL AS INTEGER ) + - ( 69 ) AS col2 FROM tab1 cor0 @@ -4939,8 +4976,15 @@ SELECT * FROM tab2 AS cor0 WHERE ( - col1 ) IS NOT NULL # Datafusion - Expected - 0 # Datafusion - Expected - 3859 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-52\) AS Int32\)\) \+ \(\- cor0\.col1\) \* \(\- CAST\(cor0\.col2 AS Int32\)\) AS col1" at position 0 and "cor0\.col2 / \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( - 52 AS INTEGER ) + - col1 * - CAST ( col2 AS INTEGER ) AS col1, col2 / - col0 AS col1 FROM tab0 AS cor0 +---- +-1 +-3 +0 +151 +262 +3859 query II rowsort label-813 SELECT + 16 + - col0 AS col1, CAST ( - - col2 AS INTEGER ) FROM tab0 AS cor0 @@ -6240,8 +6284,11 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = ( col1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -291 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* \(\- count\(DISTINCT cor0\.col1\)\) AS col2" at position 0 and "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 97 * - COUNT ( DISTINCT + col1 ) AS col2, 70 AS col2 FROM tab2 AS cor0 +---- +-291 +70 query III rowsort label-1029 SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + col1 * + CAST ( ( - ( - ( - 54 ) ) ) AS INTEGER ) > NULL @@ -6682,8 +6729,15 @@ SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 # Datafusion - Expected - 15 # Datafusion - Expected - 2 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 / tab2\.col2 AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 / + col2 AS col1, 15 AS col1 FROM tab2 +---- +1 +1 +15 +15 +15 +2 query I rowsort SELECT ALL 81 + + col2 FROM tab1 @@ -6796,8 +6850,15 @@ SELECT + 35, col2 FROM tab0 # Datafusion - Expected - -384 # Datafusion - Expected - -75 # Datafusion - Expected - -450 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col1" at position 0 and "Int64\(6\) \* \(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col1, 6 * - + col0 AS col1 FROM tab2 +---- +-276 +-384 +-450 +-46 +-64 +-75 query II rowsort label-1119 SELECT DISTINCT col0, CAST ( NULL AS INTEGER ) FROM tab0 @@ -6908,8 +6969,15 @@ SELECT DISTINCT - + CAST ( MIN ( - col0 ) AS INTEGER ) FROM tab0 AS cor0 # Datafusion - Expected - 5929 # Datafusion - Expected - 75 # Datafusion - Expected - 4489 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col1 \* tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, ( col1 ) * col1 AS col1 FROM tab2 +---- +2601 +4489 +46 +5929 +64 +75 query I rowsort SELECT 33 + + - ( + 42 ) FROM tab0 @@ -7262,8 +7330,15 @@ SELECT DISTINCT COUNT ( + - ( - + col1 ) ) * - - COUNT ( * ) + + 15 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - 4704 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \* \(\- Int64\(49\)\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 * - + 49 AS col0, col1 AS col0 FROM tab1 +---- +14 +2891 +3332 +47 +4704 +5 query II rowsort SELECT ALL + 28 AS col0, - 92 FROM tab0, tab1 AS cor0 @@ -7641,8 +7716,15 @@ NULL # Datafusion - Expected - -6693 # Datafusion - Expected - 99 # Datafusion - Expected - -6693 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(\-97\) \* Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, - 97 * + 69 col0 FROM tab0 AS cor0 +---- +-6693 +-6693 +-6693 +10 +47 +99 query I rowsort SELECT col0 col1 FROM tab1 AS cor0 WHERE NOT col1 <> NULL @@ -8342,8 +8424,15 @@ SELECT + 77 * COUNT ( * ) AS col1 FROM tab0 # Datafusion - Expected - -3080 # Datafusion - Expected - NULL # Datafusion - Expected - -3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 / CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- tab2\.col2\) \* tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 / CAST ( NULL AS INTEGER ) col2, - col2 * col1 AS col2 FROM tab2 +---- +-1173 +-3080 +-3886 +NULL +NULL +NULL query I rowsort label-1363 SELECT 46 * + MIN ( + col2 ) AS col2 FROM tab1 @@ -9321,8 +9410,9 @@ SELECT - 39 + - col1 AS col2 FROM tab0 -60 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col0 \+ \(\- \(\- tab2\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, + col0 + - - col2 AS col1 FROM tab2 WHERE NULL <= NULL +---- query I rowsort SELECT DISTINCT col1 - + col2 + + 73 FROM tab2 @@ -9903,8 +9993,15 @@ SELECT MIN ( ALL - col1 ) FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, + col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT DISTINCT + col2 * - col1 + 69 FROM tab2 AS cor0 @@ -10777,8 +10874,15 @@ SELECT * FROM tab0 AS cor0 WHERE ( - CAST ( NULL AS INTEGER ) * 12 ) IS NOT NULL # Datafusion - Expected - 97 # Datafusion - Expected - -27738 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(\-25\) \* \(\- Int64\(\-53\)\) \+ cor0\.col0 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 * + - 25 * - - 53 + + col0 AS col1, col0 AS col1 FROM tab0 AS cor0 +---- +-107310 +-1228 +-27738 +15 +87 +97 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * - col0 < NULL @@ -10849,8 +10953,15 @@ SELECT - 77 AS col0, MIN ( ALL - + col1 ) FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "tab0\.col1 \+ \(\- CAST\(NULL AS Int32\)\) \* tab0\.col0 \+ \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 56 col2, col1 + - CAST ( NULL AS INTEGER ) * ( + col0 ) + - col1 AS col2 FROM tab0 +---- +56 +56 +56 +NULL +NULL +NULL query II rowsort label-1773 SELECT ALL 67, col1 / 46 col0 FROM tab2 @@ -10960,8 +11071,15 @@ SELECT DISTINCT + col2 FROM tab0 WHERE NOT NULL IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - 1 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 col0, col2 AS col0 FROM tab0 +---- +1 +1 +1 +10 +47 +99 query I rowsort label-1791 SELECT DISTINCT MAX ( DISTINCT - 66 ) * + - COUNT ( ( + col2 ) ) AS col2 FROM tab2 @@ -11386,8 +11504,15 @@ SELECT DISTINCT - 1 * 3 AS col2, - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE N # Datafusion - Expected - 67 # Datafusion - Expected - 0 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) / \(\- cor0\.col2\) \* cor0\.col2 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 17 / - col2 * + col2 AS col2, + col1 col2 FROM tab2 AS cor0 +---- +0 +0 +0 +51 +67 +77 query I rowsort SELECT - 98 * + col2 + - 20 AS col2 FROM tab2 AS cor0 @@ -11480,8 +11605,9 @@ SELECT DISTINCT * FROM tab1 WHERE NOT + + 0 * - + col0 + + col0 BETWEEN NULL AND ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, + col1 FROM tab1 AS cor0 WHERE NOT - col2 <= NULL +---- query I rowsort label-1875 SELECT + COUNT ( * ) * - 93 AS col2 FROM tab1 AS cor0 @@ -12826,8 +12952,11 @@ SELECT DISTINCT + col2 * + - col2 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 94 AS col1, 27 AS col1 FROM tab1 +---- +-94 +27 query I rowsort label-2098 SELECT ALL - - 73 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) * - col0 = - col2 @@ -13132,8 +13261,15 @@ SELECT - 65 * col2 FROM tab0 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "CAST\(NULL AS Float64\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + - col1 AS col1, CAST ( NULL AS FLOAT8 ) * col0 AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +NULL +NULL +NULL query I rowsort label-2149 SELECT DISTINCT COUNT ( * ) / + + ( - 65 ) AS col0 FROM tab2 @@ -13403,8 +13539,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 AS col0, - COUNT ( * ) * ( - 15 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 +---- +135 +17 query I rowsort SELECT ALL - col0 * + col2 + - col0 * + col1 + + col1 + col1 AS col1 FROM tab2 cor0 @@ -13738,8 +13877,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 140 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "Int64\(49\) \+ \(\- min\(DISTINCT \(\- tab1\.col0\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 60 AS col0, + 49 + - + MIN ( DISTINCT - col0 ) AS col0 FROM tab1 +---- +140 +60 query I rowsort label-2248 SELECT COUNT ( ALL - col0 ) AS col0 FROM tab1 @@ -13777,8 +13919,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 + - ( + COUNT ( * ) ) AS col1, 7 AS col1 FROM tab1 +---- +7 +75 query I rowsort SELECT + + col0 * + - col0 + 99 AS col1 FROM tab2 AS cor0 @@ -13843,8 +13988,15 @@ SELECT - 5, col0 FROM tab2 AS cor0 # Datafusion - Expected - 72 # Datafusion - Expected - -58 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, 72 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +72 +72 +72 query II rowsort label-2265 SELECT ALL + 23 * 52 AS col1, - COUNT ( * ) FROM tab0 @@ -14660,8 +14812,10 @@ SELECT * FROM tab1 cor0 WHERE - col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to fda466f1a3667aee83702c5849da76d1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL col1, + col1, - col1 AS col0 FROM tab0 +---- +9 values hashing to c9fdedf63db7582964eaa3fd60530eab query I rowsort label-2407 SELECT + ( 42 ) + + MAX ( DISTINCT - - col1 ) FROM tab0 @@ -15010,8 +15164,15 @@ SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 + 86 IS NOT NU # Datafusion - Expected - 4 # Datafusion - Expected - 57 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 57 AS col0, 4 col0 FROM tab2 cor0 +---- +4 +4 +4 +57 +57 +57 query III rowsort label-2464 SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( - col2 AS INTEGER ) * 71 / 89 IS NOT NULL @@ -15700,8 +15861,15 @@ SELECT + 61 * + - 6 + + + col2 FROM tab0 AS cor0 # Datafusion - Expected - -244760 # Datafusion - Expected - -77 # Datafusion - Expected - -194000 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col0" at position 0 and "tab2\.col2 \* \(\- tab2\.col1\) \* Int64\(63\) \- \(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 col0, col2 * - col1 * + 63 - - col2 col0 FROM tab2 +---- +-194000 +-244760 +-51 +-67 +-73876 +-77 query I rowsort SELECT - - col0 * + - ( col1 ) * - + col2 + + col1 AS col1 FROM tab1 WHERE NOT NULL = NULL @@ -16576,8 +16744,11 @@ SELECT DISTINCT + col0 - + 32 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(67\) \+ count\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 27 + + + COUNT ( * ) col1, ( + 67 ) + COUNT ( - - CAST ( NULL AS INTEGER ) ) col1 FROM tab0 +---- +30 +67 query I rowsort label-2718 SELECT + SUM ( - col1 ) FROM tab0 cor0 WHERE - col1 = col2 * + 72 / 77 + - 24 @@ -16626,8 +16797,15 @@ SELECT DISTINCT MIN ( col1 ) AS col2 FROM tab0 # Datafusion - Expected - 464 # Datafusion - Expected - 9 # Datafusion - Expected - 464 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "Int64\(8\) \* Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 9 AS col1, 8 * 58 col1 FROM tab0 +---- +464 +464 +464 +9 +9 +9 query III rowsort SELECT ALL * FROM tab0 WHERE + ( + col2 ) IS NOT NULL @@ -16881,8 +17059,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= col1 # Datafusion - Expected - 21 # Datafusion - Expected - 472872 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* Int64\(\-72\) \* \(\- tab0\.col1\) \+ \(\- Int64\(32\)\) \* \(\- tab0\.col0\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * - 72 * + - col1 + - ( + 32 ) * + - col0 AS col2, col1 AS col2 FROM tab0 +---- +1 +21 +3176 +34536 +472872 +81 query III rowsort SELECT ALL * FROM tab1 WHERE NOT + - col0 < - col1 + - - col2 @@ -16943,8 +17128,10 @@ SELECT DISTINCT + - 13 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 65320c31b41610a06fb3cd04d92c8364 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* \(\- tab1\.col1\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col2 * - col1 AS col2, + 98 AS col2, - + col0 + + - col1 + col1 * - col1 * - 28 * + col1 AS col2 FROM tab1 +---- +9 values hashing to 6891ef6f5db264f757985b278481d7da query II rowsort SELECT DISTINCT - ( + - 45 ) AS col1, col0 FROM tab0 AS cor0 @@ -17637,8 +17824,15 @@ SELECT DISTINCT + col1 + - 92 FROM tab2 WHERE - col2 + 12 IS NULL # Datafusion - Expected - -31 # Datafusion - Expected - 97 # Datafusion - Expected - -100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "\(\- tab0\.col2\) \+ \(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, - col2 + - col1 AS col1 FROM tab0 +---- +-100 +-128 +-31 +15 +87 +97 query III rowsort SELECT * FROM tab1 WHERE NOT ( - + 41 ) <= NULL @@ -18052,8 +18246,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 AS col0, 93 - + COUNT ( - col1 ) - + 26 + - COUNT ( * ) AS col0 FROM tab1 +---- +0 +61 query I rowsort label-2969 SELECT ALL + 93 * + + COUNT ( * ) FROM tab0 cor0 WHERE NOT col2 IS NULL @@ -18067,8 +18264,15 @@ SELECT ALL + 93 * + + COUNT ( * ) FROM tab0 cor0 WHERE NOT col2 IS NULL # Datafusion - Expected - 75 # Datafusion - Expected - 82524 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(\-78\) \* \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * + - 78 * - col0 col1, + 75 AS col1 FROM tab2 cor0 +---- +199680 +339300 +75 +75 +75 +82524 query I rowsort label-2971 SELECT DISTINCT + + col1 / + 61 AS col2 FROM tab1 cor0 @@ -18628,8 +18832,11 @@ SELECT ALL - col0 + - + 55 + 27 * ( - - 11 ) AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, - 5 AS col1 FROM tab0 +---- +-5 +3 query I rowsort label-3066 SELECT - 76 * + - CAST ( NULL AS INTEGER ) - CAST ( 29 AS INTEGER ) - + col2 FROM tab2 @@ -19374,8 +19581,11 @@ SELECT col0 + + - 13 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 123 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(0\)\) \+ min\(cor0\.col0\) AS col1" at position 0 and "Int64\(65\) \+ Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MIN ( - 0 ) + + MIN ( col0 ) col1, 65 + + 58 AS col1 FROM tab0 AS cor0 +---- +123 +15 query I rowsort SELECT DISTINCT - col1 + - col2 * + - col2 FROM tab2 cor0 @@ -19953,8 +20163,15 @@ SELECT - SUM ( - 35 ) col2 FROM tab2 # Datafusion - Expected - -75 # Datafusion - Expected - -5929 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* \(\- tab2\.col1\) AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + - col1 AS col1, ( - + col0 ) col1 FROM tab2 +---- +-2601 +-4489 +-46 +-5929 +-64 +-75 query I rowsort label-3277 SELECT ALL col1 * + ( col2 ) * 63 / - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 @@ -20706,8 +20923,15 @@ SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) * + - COUNT ( * ) * COUNT ( * ) FRO # Datafusion - Expected - 113 # Datafusion - Expected - -49 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col1" at position 0 and "tab1\.col0 \* Int64\(79\) / \(\- \(\- tab1\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 49 AS col1, + col0 * 79 / + ( - ( + - col2 ) ) AS col1 FROM tab1 +---- +-49 +-49 +-49 +105 +113 +41 query I rowsort label-3408 SELECT + SUM ( + col0 ) FROM tab1 @@ -20937,8 +21161,15 @@ SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 71 IS NOT NU # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col2 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-3446 SELECT - 73 * col1 / + + col2 + 21 - + col1 + col0 - col2 - - col1 * + col0 + col0 AS col0 FROM tab2 AS cor0 @@ -21731,8 +21962,11 @@ SELECT - 77, + COUNT ( * ) * + + 74 col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 5 AS col1, 57 AS col1 FROM tab0 +---- +5 +57 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 @@ -21741,8 +21975,15 @@ SELECT DISTINCT 5 AS col1, 57 AS col1 FROM tab0 # Datafusion - Expected - -66 # Datafusion - Expected - -75 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col1" at position 0 and "Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - + col0 ) AS col1, - 66 AS col1 FROM tab2 +---- +-46 +-64 +-66 +-66 +-66 +-75 query I rowsort SELECT ALL - ( - 77 ) FROM tab2 @@ -22309,8 +22550,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + - col2 AND NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, + col0 AS col0 FROM tab0 cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-3671 SELECT ALL 61 * + + SUM ( 82 ) AS col2 FROM tab0 cor0 @@ -22804,8 +23052,15 @@ SELECT col1 * - 32 * - col0 + col2 + - col2 AS col2 FROM tab1 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col1, col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query III rowsort label-3750 SELECT DISTINCT + col0 col0, col2, - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 @@ -23478,8 +23733,15 @@ SELECT DISTINCT ( 73 ) * + 6 FROM tab1 # Datafusion - Expected - -539 # Datafusion - Expected - -33 # Datafusion - Expected - -5543 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col1" at position 0 and "tab0\.col1 \+ \(\- \(\- tab0\.col2\)\) \* \(\- Int64\(56\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 33 AS col1, + col1 + - - col2 * - + 56 AS col1 FROM tab0 +---- +-2551 +-33 +-33 +-33 +-539 +-5543 query III rowsort SELECT * FROM tab2 WHERE NOT + col2 + - 45 IS NULL @@ -24558,8 +24820,11 @@ SELECT + 89 * - 10 AS col2 FROM tab1 WHERE NOT col0 * + - col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(7\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - + 7 ) * ( + COUNT ( * ) ) AS col2, COUNT ( * ) AS col2 FROM tab0 +---- +21 +3 query I rowsort label-4043 SELECT - SUM ( + col0 ) AS col0 FROM tab1 @@ -25502,8 +25767,15 @@ SELECT + + col2 FROM tab1 WHERE NOT - 72 IS NULL # Datafusion - Expected - 180 # Datafusion - Expected - 81 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab0\.col1\)\) AS col0" at position 0 and "tab0\.col2 \+ tab0\.col0 \+ tab0\.col0 \+ \(\- Int64\(\-97\)\) / \(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - col1 ) AS col0, col2 + col0 + col0 + - - 97 / - col1 AS col0 FROM tab0 +---- +1 +180 +196 +21 +76 +81 query I rowsort label-4193 SELECT COUNT ( * ) * COUNT ( ALL + CAST ( - 60 AS FLOAT8 ) ) AS col2 FROM tab0 @@ -25734,8 +26006,15 @@ SELECT + + col2 AS col1 FROM tab2 WHERE NOT col0 + + col2 IS NULL # Datafusion - Expected - 199 # Datafusion - Expected - 91 # Datafusion - Expected - 1384 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col2 \+ tab1\.col1 \* Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, col2 + + col1 * 28 col2 FROM tab1 +---- +1384 +199 +488 +51 +85 +91 query III rowsort SELECT * FROM tab1 WHERE NOT + col0 + ( - col0 ) IS NOT NULL @@ -26550,8 +26829,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \* \(\- min\(tab1\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 32 AS col2, - COUNT ( * ) * + - MIN ( ALL + + col2 ) AS col2 FROM tab1 +---- +-32 +177 query I rowsort label-4365 SELECT DISTINCT MIN ( ALL + 36 ) AS col2 FROM tab2 @@ -26764,8 +27046,15 @@ NULL # Datafusion - Expected - 9 # Datafusion - Expected - -99 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 col2, 9 col2 FROM tab0 +---- +-10 +-47 +-99 +9 +9 +9 query I rowsort SELECT col0 * + 66 FROM tab1 AS cor0 @@ -26841,8 +27130,15 @@ SELECT ALL + + 37 AS col1, - 5 AS col2 FROM tab1 WHERE - - ( + col2 ) / col2 / + # Datafusion - Expected - -4 # Datafusion - Expected - 6916 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* Int64\(76\) AS col1" at position 0 and "tab1\.col1 / tab1\.col1 \+ \(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 * 76 AS col1, col1 / + col1 + - ( col1 ) col1 FROM tab1 +---- +-13 +-4 +-46 +3876 +6460 +6916 query III rowsort SELECT * FROM tab2 WHERE NOT 33 + - col2 - - col1 IS NULL @@ -27007,8 +27303,9 @@ SELECT + 58 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL 58 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 0 and "cor0\.col2 / \(\- CAST\(NULL AS Float64\)\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + 28 AS col0, + col2 / - CAST ( NULL AS FLOAT8 ) * + col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 NOT IN ( + - 85 ) +---- query I rowsort label-4438 SELECT - SUM ( 99 ) FROM tab2 @@ -27433,8 +27730,15 @@ SELECT DISTINCT + - MIN ( DISTINCT - col2 ) FROM tab0 AS cor0 # Datafusion - Expected - 26 # Datafusion - Expected - 96 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, 26 AS col1 FROM tab1 AS cor0 +---- +26 +26 +26 +59 +68 +96 query III rowsort SELECT * FROM tab0 WHERE + 40 > col1 + - - 80 @@ -28062,8 +28366,15 @@ NULL # Datafusion - Expected - 24 # Datafusion - Expected - -34 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col1" at position 0 and "tab1\.col0 \+ Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 34 AS col1, col0 + - 61 col1 FROM tab1 +---- +-10 +-34 +-34 +-34 +24 +30 query III rowsort SELECT * FROM tab1 WHERE NULL = col2 + + col0 @@ -28584,8 +28895,15 @@ SELECT + + 25 FROM tab1 WHERE NULL IS NOT NULL # Datafusion - Expected - -135640 # Datafusion - Expected - -75 # Datafusion - Expected - -230492 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "CAST\(tab2\.col0 AS Int32\) \* Int64\(53\) \* CAST\(\(\- tab2\.col2\) AS Int32\) \+ tab2\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, CAST ( + col0 AS INTEGER ) * 53 * + CAST ( - col2 AS INTEGER ) + col2 AS col2 FROM tab2 +---- +-135640 +-230492 +-46 +-56051 +-64 +-75 query I rowsort label-4692 SELECT ALL - CAST ( - CAST ( + - col2 AS INTEGER ) AS INTEGER ) FROM tab2 @@ -28729,8 +29047,15 @@ SELECT COUNT ( * ) * 65 FROM tab2 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT ( col2 ) FROM tab2 WHERE NOT col0 + - col1 IS NOT NULL @@ -29504,8 +29829,15 @@ SELECT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) NOT BETWEEN + 13 AND # Datafusion - Expected - -75 # Datafusion - Expected - -77 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, - col0 AS col1 FROM tab2 AS cor0 +---- +-46 +-51 +-64 +-67 +-75 +-77 query I rowsort SELECT - col0 FROM tab0 cor0 WHERE NULL <= col0 / - col1 @@ -29742,8 +30074,9 @@ SELECT ALL COUNT ( ALL 99 ) AS col2 FROM tab0 3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 AS col2, + 82 AS col2 FROM tab1 WHERE + - col2 NOT BETWEEN NULL AND NULL +---- query II rowsort label-4891 SELECT + 14 AS col1, CAST ( - + 68 AS INTEGER ) FROM tab2 @@ -30322,8 +30655,15 @@ SELECT ALL col2 * - 66 AS col1 FROM tab2 # Datafusion - Expected - -23 # Datafusion - Expected - 871 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* Int64\(13\) AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * + 13 AS col0, - col2 AS col0 FROM tab2 +---- +-23 +-40 +-58 +1001 +663 +871 query I rowsort SELECT + col2 * - col2 + ( + - col1 ) * + - 96 FROM tab0 cor0 @@ -30724,8 +31064,15 @@ SELECT - COUNT ( * ) AS col0, COUNT ( * ) FROM tab1 # Datafusion - Expected - -3713 # Datafusion - Expected - 37 # Datafusion - Expected - -395 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col1" at position 0 and "Int64\(79\) \* \(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 AS col1, + 79 * - col1 AS col1 FROM tab1 +---- +-1106 +-3713 +-395 +37 +37 +37 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - - 61 * col1 @@ -32349,8 +32696,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE + 3 > - col2 * - col0 # Datafusion - Expected - 40 # Datafusion - Expected - 75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, col2 AS col1 FROM tab2 +---- +23 +40 +46 +58 +64 +75 query I rowsort label-5316 SELECT DISTINCT - SUM ( DISTINCT + 39 ) AS col0 FROM tab0 @@ -32529,8 +32883,11 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - -61074 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col2" at position 0 and "Int64\(87\) \* Int64\(54\) \* \(\- max\(Int64\(13\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 63 AS col2, + 87 * + 54 * - MAX ( ALL 13 ) AS col2 FROM tab0 AS cor0 +---- +-61074 +-63 query I rowsort label-5345 SELECT - + ( - MIN ( DISTINCT - + col1 ) ) FROM tab1 AS cor0 @@ -33266,8 +33623,15 @@ SELECT - col2 + 8 AS col0 FROM tab0 # Datafusion - Expected - 87 # Datafusion - Expected - 3846 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col1 \+ Int64\(39\) AS col1" at position 0 and "Int64\(0\) \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * + + col1 + + 39 AS col1, 0 + col0 AS col1 FROM tab0 AS cor0 +---- +138 +15 +249 +3846 +87 +97 query I rowsort label-5469 SELECT ALL - - COUNT ( * ) / 62 FROM tab0 AS cor0 @@ -33822,8 +34186,15 @@ SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NOT NULL BETWEEN - CAST ( NULL AS FLO # Datafusion - Expected - 8 # Datafusion - Expected - 9988 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ \(\- tab1\.col1\) \+ Int64\(\-30\) \* Int64\(7\) \* \(\- tab1\.col1\) \+ tab1\.col2 AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 97 + - col1 + - 30 * 7 * - + col1 + col2 AS col1, 8 AS col1 FROM tab1 +---- +1201 +3119 +8 +8 +8 +9988 query I rowsort label-5557 SELECT 86 + - MAX ( - 26 ) + + COUNT ( ALL + col2 ) AS col0 FROM tab0 @@ -34336,8 +34707,15 @@ SELECT col1 AS col2, + col2 * - - col1 * + + col1 FROM tab0 # Datafusion - Expected - 7650 # Datafusion - Expected - -3 # Datafusion - Expected - 8190 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) AS col0" at position 0 and "tab1\.col0 \* Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 AS col0, col0 * + 90 AS col0 FROM tab1 +---- +-3 +-3 +-3 +4590 +7650 +8190 query I rowsort SELECT + - 93 AS col2 FROM tab0 cor0 @@ -35103,8 +35481,15 @@ SELECT + col0 * 77 * + col0 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -36 # Datafusion - Expected - 0 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \- \(\- cor0\.col1\) \* \(\- cor0\.col2\) AS col0" at position 0 and "Int64\(\-36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 - - col1 * - col2 AS col0, - 36 AS col0 FROM tab0 AS cor0 +---- +-200 +-36 +-36 +-36 +-3760 +0 query I rowsort SELECT col1 - + 94 AS col1 FROM tab0 @@ -35978,8 +36363,15 @@ SELECT DISTINCT - - col0, col2 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -3081 # Datafusion - Expected - 58 # Datafusion - Expected - -4531 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(41\) \- \(\- cor0\.col1\) \+ \(\- \(\- cor0\.col2\)\) \* \(\- Int64\(80\)\) \+ cor0\.col0 / \(\- \(\- cor0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 col0, + 41 - - col1 + - - col2 * - + 80 + + col0 / + ( - - col0 ) col0 FROM tab2 AS cor0 +---- +-1747 +-3081 +-4531 +23 +40 +58 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < 74 @@ -36167,8 +36559,15 @@ SELECT 83, col2 FROM tab0 # Datafusion - Expected - -47 # Datafusion - Expected - -5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "\(\- tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col2, - col1 AS col2 FROM tab1 +---- +-14 +-14 +-47 +-47 +-5 +-5 query I rowsort label-5949 SELECT ALL - MAX ( ALL col0 ) AS col1 FROM tab1 @@ -36430,8 +36829,15 @@ SELECT col2 FROM tab1 WHERE NOT + col2 IS NOT NULL # Datafusion - Expected - 59 # Datafusion - Expected - 798 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* cor0\.col1 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 57 * + col1 AS col0, col2 AS col0 FROM tab1 cor0 +---- +2679 +285 +59 +68 +798 +96 query I rowsort label-5992 SELECT 41 * - CAST ( - 60 AS INTEGER ) AS col2 FROM tab0 AS cor0 @@ -36623,8 +37029,15 @@ SELECT - col1 * + + col2 FROM tab1 cor0 # Datafusion - Expected - 4680 # Datafusion - Expected - -450604 # Datafusion - Expected - 4680 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* cor0\.col1 \* \(\- cor0\.col1\) AS col1" at position 0 and "Int64\(72\) \* Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 76 * col1 * - col1 AS col1, + 72 * + + 65 col1 FROM tab2 AS cor0 +---- +-197676 +-341164 +-450604 +4680 +4680 +4680 query III rowsort label-6023 SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN - CAST ( col2 AS INTEGER ) * 64 AND NULL @@ -37284,8 +37697,15 @@ SELECT DISTINCT + ( - col1 ) + - - 53 + + 51 - + col2 * + + col0 FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 AS col1, + col0 AS col1 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT ALL + + 27 * + col0 AS col2 FROM tab1 AS cor0 @@ -38366,8 +38786,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( + CAST ( col2 AS INTEGER ) ) = - col1 +---- +10 +10 +47 +47 +99 +99 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 * + 6 * - col0 + + col0 IS NOT NULL @@ -38712,8 +39139,11 @@ SELECT ALL - 33 FROM tab0 WHERE NOT + - col1 NOT BETWEEN NULL AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(\(\- tab1\.col1\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 * + COUNT ( * ) AS col1, ( - + ( COUNT ( ALL - col1 ) ) ) AS col1 FROM tab1 +---- +-3 +36 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT NULL < ( + col2 ) @@ -38753,8 +39183,15 @@ NULL # Datafusion - Expected - 5 # Datafusion - Expected - -38352 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(\-12\) \* cor0\.col2 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + col1 ) * - 12 * col2 AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +-16128 +-3540 +-38352 +14 +47 +5 query II rowsort label-6379 SELECT COUNT ( * ) AS col0, + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL <> 63 + + - 46 @@ -38779,8 +39216,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* sum\(Int64\(66\)\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + CAST ( NULL AS INTEGER ) * SUM ( + + 66 ) AS col1, 62 AS col1 FROM tab0 AS cor0 +---- +62 +NULL query I rowsort SELECT 70 * - 80 AS col0 FROM tab0 @@ -38933,8 +39373,15 @@ SELECT ALL col2, col1 * + col2 * - - col2 FROM tab0 # Datafusion - Expected - 13 # Datafusion - Expected - -91 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col2" at position 0 and "\(\- tab2\.col0\) \+ tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 91 AS col2, - col0 + + col1 AS col2 FROM tab2 +---- +-8 +-91 +-91 +-91 +13 +5 query I rowsort SELECT ALL col2 * col0 * - col1 * + col0 * + - col1 FROM tab0 AS cor0 @@ -39163,8 +39610,15 @@ NULL # Datafusion - Expected - 1732032 # Datafusion - Expected - 63 # Datafusion - Expected - 92002 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "tab0\.col0 \+ Int64\(\-51\) \- \(\- tab0\.col1\) \* \(\- tab0\.col0\) \* Int64\(79\) \* Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 63 AS col1, col0 + - 51 - - + col1 * + + ( - + ( col0 ) ) * + 79 * - 12 col1 FROM tab0 +---- +1151784 +1732032 +63 +63 +63 +92002 query I rowsort label-6443 SELECT ALL + MAX ( - col2 ) * + 72 * - 83 col1 FROM tab2 @@ -39420,8 +39874,15 @@ SELECT ALL - col1 / - col2 + + col1 FROM tab2 # Datafusion - Expected - 1 # Datafusion - Expected - -5 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col1" at position 0 and "tab1\.col0 / tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - col1 ) AS col1, col0 / col2 col1 FROM tab1 +---- +-14 +-47 +-5 +0 +1 +1 query III rowsort SELECT * FROM tab2 cor0 WHERE NOT ( NOT ( ( NULL ) IS NULL ) ) @@ -39485,8 +39946,15 @@ SELECT CAST ( + 75 AS INTEGER ) / col0 - - 57 + + 2 + col1 * - 77 FROM tab0 AS c # Datafusion - Expected - 84 # Datafusion - Expected - -707836 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \* Int64\(46\) \+ Int64\(\-82\) \* Int64\(90\) \* cor0\.col2 AS col0" at position 0 and "Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 * + 46 + + + ( - 82 ) * + 90 * + col2 AS col0, 84 col0 FROM tab1 AS cor0 +---- +-435190 +-499678 +-707836 +84 +84 +84 query I rowsort label-6493 SELECT DISTINCT + 57 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 @@ -39685,8 +40153,15 @@ SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND + col1 # Datafusion - Expected - -91 # Datafusion - Expected - -96 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "\(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, - col0 AS col1 FROM tab1 +---- +-51 +-59 +-68 +-85 +-91 +-96 query I rowsort SELECT ALL - - col0 * + 65 AS col1 FROM tab1 AS cor0 @@ -40069,8 +40544,15 @@ SELECT DISTINCT - col1 / + - col0 FROM tab0 cor0 # Datafusion - Expected - 161 # Datafusion - Expected - 42 # Datafusion - Expected - 206 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col1" at position 0 and "tab1\.col0 \+ tab1\.col2 \+ \(\- \(\- tab1\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 AS col1, col0 + + col2 + - - col1 col1 FROM tab1 +---- +149 +161 +206 +42 +42 +42 query I rowsort SELECT DISTINCT - 50 AS col1 FROM tab1, tab0 AS cor0 @@ -40900,8 +41382,15 @@ SELECT + MAX ( + col0 ) + + COUNT ( * ) * - + MIN ( + - col2 ) AS col0 FROM tab2 # Datafusion - Expected - 15 # Datafusion - Expected - -8147 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* \(\- cor0\.col0\) \+ cor0\.col1 AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 84 * - col0 + col1 AS col1, 15 AS col1 FROM tab0 AS cor0 +---- +-1179 +-7287 +-8147 +15 +15 +15 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -41186,8 +41675,15 @@ SELECT + col1 * ( - + col1 ) / + - col2 FROM tab0 AS cor0 # Datafusion - Expected - 18 # Datafusion - Expected - -91 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col0" at position 0 and "Int64\(93\) / tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col0, + 93 / col1 AS col0 FROM tab1 +---- +-51 +-85 +-91 +1 +18 +6 query III rowsort SELECT DISTINCT * FROM tab1 WHERE 46 * - - col0 < NULL @@ -41938,8 +42434,15 @@ SELECT ALL 42 + + col2 FROM tab2 # Datafusion - Expected - -21 # Datafusion - Expected - 97 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, - col1 AS col1 FROM tab0 +---- +-1 +-21 +-81 +15 +87 +97 query I rowsort SELECT DISTINCT col0 * col2 + 93 AS col2 FROM tab2 @@ -42193,8 +42696,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT ( - ( col0 ) IS NULL ) # Datafusion - Expected - -40 # Datafusion - Expected - -5025 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * - col0 col1, - col2 AS col1 FROM tab2 AS cor0 +---- +-23 +-2346 +-40 +-4928 +-5025 +-58 query III rowsort SELECT * FROM tab1 cor0 WHERE NOT 18 + + col0 - 44 - - 83 + 10 / + + col1 + - col0 * col2 IS NULL @@ -42311,8 +42821,15 @@ SELECT * FROM tab1 AS cor0 WHERE 36 IS NULL # Datafusion - Expected - -14 # Datafusion - Expected - 96 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(\-14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 col1, - 14 AS col1 FROM tab1 AS cor0 +---- +-14 +-14 +-14 +59 +68 +96 query I rowsort label-6964 SELECT CAST ( + + col0 AS INTEGER ) * + col2 - + 68 AS col2 FROM tab2 AS cor0 @@ -42720,8 +43237,15 @@ SELECT - col1 * - 21 AS col1, - 41 * - 28 FROM tab1 AS cor0 # Datafusion - Expected - -81 # Datafusion - Expected - 720 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* cor0\.col1 \- \(\- cor0\.col1\) \+ Int64\(90\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 29 * col1 - - col1 + 90 AS col2, - col1 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +120 +2520 +720 query I rowsort SELECT + 87 col0 FROM tab1 AS cor0 WHERE NOT NULL < NULL @@ -42875,8 +43399,15 @@ SELECT + + 50 FROM tab2 AS cor0 WHERE - ( + col0 ) BETWEEN + - 56 * - - 61 AND + # Datafusion - Expected - 237 # Datafusion - Expected - 0 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \- \(\- tab0\.col2\) AS col2" at position 0 and "tab0\.col2 \+ \(\- Int64\(\-39\)\) \- \(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - col2 ) - - col2 AS col2, col2 + - - 39 - - col2 col2 FROM tab0 +---- +0 +0 +0 +133 +237 +59 query I rowsort SELECT + 21 + + col1 AS col2 FROM tab2 @@ -43528,8 +44059,15 @@ SELECT - col0 FROM tab2 WHERE NOT - 20 - ( - col2 ) BETWEEN - col2 * - col2 AND # Datafusion - Expected - -82 # Datafusion - Expected - 75 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(\-82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, - 82 AS col2 FROM tab2 cor0 +---- +-82 +-82 +-82 +46 +64 +75 query I rowsort label-7164 SELECT 73 / col2 FROM tab1 cor0 @@ -43924,8 +44462,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( NOT ( NOT - + col0 BETWEEN NULL AND # Datafusion - Expected - 140 # Datafusion - Expected - -63 # Datafusion - Expected - 168 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col1" at position 0 and "cor0\.col2 \+ \(\- Int64\(27\)\) \+ Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 63 AS col1, col2 + - + 27 + 99 AS col1 FROM tab1 cor0 +---- +-63 +-63 +-63 +131 +140 +168 query II rowsort SELECT + 1, - 69 + - - col0 AS col0 FROM tab2 @@ -44233,8 +44778,15 @@ SELECT ALL col2 AS col2 FROM tab1 WHERE NOT NULL IN ( + col2 ) # Datafusion - Expected - 25 # Datafusion - Expected - 4408 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* tab2\.col0 \+ tab2\.col2 AS col1" at position 0 and "Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 * + col0 + col2 AS col1, + 25 AS col1 FROM tab2 +---- +1081 +25 +25 +25 +2600 +4408 query I rowsort SELECT + col0 + - 13 FROM tab2 @@ -44661,8 +45213,15 @@ SELECT + 52 * - - col0 + col2 AS col2, col0 + 28 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col1 AS col1, col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-7347 SELECT SUM ( ALL col0 ) + 95 FROM tab0 cor0 WHERE 99 * - col1 * + + col2 / + col1 > 27 @@ -45081,8 +45640,15 @@ SELECT ALL - 98 FROM tab1 AS cor0 WHERE NULL <= NULL # Datafusion - Expected - 21 # Datafusion - Expected - -75 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 75 AS col0, col1 AS col0 FROM tab0 +---- +-75 +-75 +-75 +1 +21 +81 query III rowsort SELECT * FROM tab0 WHERE NOT + col1 / + col2 * + col0 - + - 34 IS NULL @@ -45756,8 +46322,15 @@ SELECT ALL + ( - col1 ) * - - col1 + - - col0 - col0 * col0 FROM tab2 # Datafusion - Expected - 6 # Datafusion - Expected - 152 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ \(\- Int64\(\-77\)\) AS col1" at position 0 and "Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + - - 77 AS col1, + 6 AS col1 FROM tab2 +---- +123 +141 +152 +6 +6 +6 query I rowsort SELECT 76 * - 86 AS col2 FROM tab0 @@ -45891,8 +46464,11 @@ SELECT + + ( - col0 ) + col1 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- count\(tab2\.col0\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) * - COUNT ( * ) + + - COUNT ( + col0 ) AS col0, COUNT ( * ) AS col0 FROM tab2 +---- +3 +9 query I rowsort SELECT ALL + 82 + ( + col2 ) FROM tab1 AS cor0 @@ -47484,8 +48060,15 @@ SELECT SUM ( col1 ) * 47 FROM tab0 AS cor0 # Datafusion - Expected - 65 # Datafusion - Expected - -4320 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* Int64\(45\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 * 45 AS col0, 65 AS col0 FROM tab1 AS cor0 +---- +-2655 +-3060 +-4320 +65 +65 +65 query III rowsort label-7821 SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND CAST ( NULL AS FLOAT8 ) @@ -47983,8 +48566,15 @@ SELECT - ( - - col1 ) col1 FROM tab1 AS cor0 WHERE NOT 99 >= NULL # Datafusion - Expected - 3481 # Datafusion - Expected - -6116 # Datafusion - Expected - 4624 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* \(\- tab1\.col0\) \+ Int64\(72\) AS col2" at position 0 and "\(\- tab1\.col2\) \* \(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 * - col0 + 72 col2, - col2 * + - col2 col2 FROM tab1 +---- +-4824 +-4943 +-6116 +3481 +4624 +9216 query I rowsort SELECT + col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND + col0 * - col2 @@ -48125,8 +48715,15 @@ SELECT DISTINCT - 59 AS col2 FROM tab0 cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, ( + col1 ) FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-7926 SELECT + SUM ( + 55 ) FROM tab2 @@ -48569,8 +49166,11 @@ SELECT 73 + + - col1 col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 276 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(92\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( 92 ) AS col2, COUNT ( * ) AS col2 FROM tab1 +---- +276 +3 query II rowsort SELECT 55 * - col1 + - - 39 * + col1 AS col1, 99 AS col2 FROM tab1 AS cor0 @@ -50258,8 +50858,15 @@ SELECT ALL col2 + 52 AS col1 FROM tab0 # Datafusion - Expected - -10184 # Datafusion - Expected - 2618 # Datafusion - Expected - -11704 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \+ tab2\.col1 \* Int64\(33\) AS col0" at position 0 and "Int64\(4\) \* Int64\(38\) \* \(\- \(\- \(\- tab2\.col1\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 + + col1 * 33 AS col0, 4 * + 38 * - - ( + - col1 ) AS col0 FROM tab2 +---- +-10184 +-11704 +-7752 +1734 +2278 +2618 query I rowsort SELECT DISTINCT + 51 + + col1 AS col0 FROM tab2 @@ -50538,8 +51145,11 @@ SELECT + + col0 / + 89 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 28 AS col2, COUNT ( * ) AS col2 FROM tab0 +---- +-28 +3 query I rowsort SELECT ALL col0 * - col1 + - - col0 FROM tab0 AS cor0 @@ -50604,8 +51214,15 @@ SELECT ALL 78 * + - col1 AS col0 FROM tab0 # Datafusion - Expected - 21 # Datafusion - Expected - 40 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 AS col2, + col1 AS col2 FROM tab0 +---- +1 +21 +40 +40 +40 +81 query I rowsort SELECT + ( - - col0 ) + col0 + + 96 + + col2 AS col0 FROM tab2 WHERE NOT - + col1 IS NOT NULL @@ -50821,8 +51438,15 @@ SELECT DISTINCT - 47 / - + COUNT ( * ) AS col1 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, + col2 AS col1 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-8374 SELECT ALL - col1 / + col1 AS col0 FROM tab1 @@ -50853,8 +51477,15 @@ SELECT col1 + + ( + col2 ) + col0 AS col2 FROM tab1 AS cor0 WHERE col0 * + col0 # Datafusion - Expected - -3196 # Datafusion - Expected - -5 # Datafusion - Expected - -295 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - + col1 ) AS col1, col2 * - col1 col1 FROM tab1 AS cor0 +---- +-1344 +-14 +-295 +-3196 +-47 +-5 query I rowsort SELECT col1 AS col2 FROM tab2 AS cor0 WHERE ( + col1 ) <> NULL @@ -52274,8 +52905,15 @@ SELECT * FROM tab2 WHERE col1 + + - col0 < + CAST ( NULL AS INTEGER ) + - 33 # Datafusion - Expected - 81 # Datafusion - Expected - 99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / cor0\.col1 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 / ( + col1 ) AS col2, col1 AS col2 FROM tab0 AS cor0 +---- +0 +0 +1 +21 +81 +99 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT NULL = ( + col2 ) @@ -52300,8 +52938,15 @@ SELECT + ( - MIN ( ALL col2 ) ) FROM tab0 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col0, col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-8621 SELECT - - col0 / - 98 FROM tab1 AS cor0 @@ -52329,8 +52974,15 @@ SELECT DISTINCT - col2 * col0 AS col0 FROM tab0 cor0 WHERE ( 75 + + - col1 * + c # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col2, + col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query III rowsort SELECT ALL * FROM tab2 WHERE NOT ( + + col1 / col1 ) BETWEEN - col0 + - + col0 AND + col2 - + col2 / - col0 @@ -52597,8 +53249,15 @@ SELECT + col1 / + col2 * - 22 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - -58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) / Int64\(76\) \+ \(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 70 / 76 + ( - col2 ) AS col0, col1 AS col0 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +51 +67 +77 query I rowsort SELECT ALL - 88 col1 FROM tab1 AS cor0 @@ -52673,8 +53332,15 @@ SELECT + COUNT ( * ) * 41 FROM tab1 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, col1 AS col0 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-8683 SELECT - ( col2 ) / CAST ( NULL AS INTEGER ) * col2 + col0 + col1 / - 80 + + col0 - col2 - + col1 AS col1 FROM tab2 AS cor0 @@ -53927,8 +54593,15 @@ SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT + ( - col2 ) <= + + col1 # Datafusion - Expected - 20 # Datafusion - Expected - -57 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col2" at position 0 and "cor0\.col2 \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 57 AS col2, col2 + + col2 AS col2 FROM tab0 cor0 +---- +-57 +-57 +-57 +198 +20 +94 query I rowsort label-8890 SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE - 22 / - col0 + - col1 IS NULL @@ -54200,8 +54873,15 @@ SELECT - col0 + - CAST ( col2 AS INTEGER ) AS col2 FROM tab1 # Datafusion - Expected - 3144 # Datafusion - Expected - 0 # Datafusion - Expected - 3961 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \+ tab2\.col2 AS col0" at position 0 and "tab2\.col1 \* tab2\.col2 \+ tab2\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 + ( col2 ) col0, + col1 * + col2 + + + col0 AS col0 FROM tab2 +---- +0 +0 +0 +1219 +3144 +3961 query II rowsort SELECT + 86 + + + col0 + + 93 + + + col0 AS col0, - col0 AS col2 FROM tab0 cor0 @@ -54659,8 +55339,15 @@ SELECT - col1 + + - col2 AS col1, col2 * 14 FROM tab2 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 26 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 26 AS col2, col0 col2 FROM tab1 +---- +26 +26 +26 +51 +85 +91 query III rowsort SELECT DISTINCT * FROM tab0 WHERE - col2 * - 31 IS NOT NULL @@ -55324,8 +56011,15 @@ NULL # Datafusion - Expected - 1867 # Datafusion - Expected - -99 # Datafusion - Expected - 3763 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 \- Int64\(\-38\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, + col1 - - 38 * + col2 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +1867 +3763 +401 query I rowsort label-9121 SELECT SUM ( ALL col1 ) AS col0 FROM tab0 AS cor0 @@ -55797,8 +56491,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT col2 / - + 40 + + col0 * - col2 + - - 39 I # Datafusion - Expected - 47 # Datafusion - Expected - -96 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(94\) \+ \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, + 94 + - + col1 AS col2 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +47 +80 +89 query I rowsort SELECT ALL + + ( + col0 ) col0 FROM tab2 AS cor0 @@ -57101,8 +57802,15 @@ SELECT - + ( + - col0 ) * col2 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -58 # Datafusion - Expected - 77 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "CAST\(cor0\.col2 AS Int32\) \* cor0\.col2 / \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col0, CAST ( + col2 AS INTEGER ) * + col2 / - col2 AS col0 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +51 +67 +77 query II rowsort SELECT DISTINCT - + col1 AS col0, col0 + - 6 AS col2 FROM tab0 AS cor0 @@ -57397,8 +58105,15 @@ SELECT DISTINCT - CAST ( - col1 AS INTEGER ) + col1 col0 FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, + col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query III rowsort SELECT ALL * FROM tab2 WHERE - + col2 + - + 48 + - 49 BETWEEN NULL AND ( 22 ) @@ -57534,8 +58249,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \+ sum\(cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +50 +NULL query I rowsort label-9479 SELECT DISTINCT + SUM ( 95 ) AS col0 FROM tab2 @@ -58049,8 +58767,11 @@ SELECT + ( ( col2 ) ) AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "max\(DISTINCT Int64\(\-82\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 23 AS col2, MAX ( DISTINCT + - 82 ) col2 FROM tab2 +---- +-82 +23 query I rowsort SELECT + 13 * + 67 FROM tab1 @@ -58268,8 +58989,15 @@ SELECT ALL * FROM tab0 WHERE NOT NULL <= - col0 * + col0 # Datafusion - Expected - 18 # Datafusion - Expected - -99 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, + 18 AS col0 FROM tab0 +---- +-10 +-47 +-99 +18 +18 +18 query III rowsort SELECT ALL * FROM tab1 WHERE NOT + col0 NOT BETWEEN NULL AND ( NULL ) @@ -58357,8 +59085,15 @@ SELECT ALL - 13 + col0 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 17 # Datafusion - Expected - 83 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-83\)\) AS col2" at position 0 and "Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 83 AS col2, 17 AS col2 FROM tab2 AS cor0 +---- +17 +17 +17 +83 +83 +83 query I rowsort label-9624 SELECT col0 + + CAST ( NULL AS INTEGER ) + - col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL @@ -59220,8 +59955,11 @@ SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE NOT - + 65 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, + 85 AS col0 FROM tab1 +---- +3 +85 query I rowsort label-9766 SELECT col0 / 24 AS col0 FROM tab0 @@ -59760,8 +60498,15 @@ SELECT DISTINCT - - col2 * 55 / - col2 FROM tab1 cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, + col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT 4 col2 FROM tab2 @@ -59995,8 +60740,11 @@ SELECT DISTINCT - - 31 + - col0 * 17 FROM tab1 WHERE NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab2 +---- +3 +3 query I rowsort label-9886 SELECT ALL - + col0 AS col1 FROM tab1 WHERE - col0 + col1 + + - 88 * + ( - ( - - 61 ) ) / + + CAST ( NULL AS INTEGER ) - + col1 + - + col2 IS NULL @@ -60360,8 +61108,15 @@ SELECT + col1 AS col0, + ( + - 1 ) FROM tab1 # Datafusion - Expected - -6144 # Datafusion - Expected - 58 # Datafusion - Expected - -7200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 0 and "Int64\(\-96\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 58 AS col1, - 96 * col0 col1 FROM tab2 AS cor0 +---- +-4416 +-6144 +-7200 +58 +58 +58 query I rowsort SELECT ALL 54 col2 FROM tab1 cor0 diff --git a/data/sqlite/random/aggregates/slt_good_45.slt b/data/sqlite/random/aggregates/slt_good_45.slt index e5bf89e..dc62a9e 100644 --- a/data/sqlite/random/aggregates/slt_good_45.slt +++ b/data/sqlite/random/aggregates/slt_good_45.slt @@ -1543,8 +1543,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, - 32 AS col1 FROM tab1 +---- +-32 +3 query III rowsort SELECT * FROM tab1 WHERE NOT + 83 >= NULL @@ -1848,8 +1851,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN - col2 AND NULL # Datafusion - Expected - -21 # Datafusion - Expected - -81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, - col1 AS col0 FROM tab0 +---- +-1 +-1 +-21 +-21 +-81 +-81 query I rowsort SELECT ALL + col0 + - col1 * + + col1 FROM tab1 @@ -2256,8 +2266,15 @@ SELECT ALL 91 + - col1 FROM tab2 WHERE NOT NULL > NULL # Datafusion - Expected - -4897 # Datafusion - Expected - -91 # Datafusion - Expected - -5644 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col2" at position 0 and "\(\- tab1\.col2\) \* Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, - col2 * 83 AS col2 FROM tab1 +---- +-4897 +-51 +-5644 +-7968 +-85 +-91 query I rowsort SELECT + ( 14 ) FROM tab1 @@ -2421,8 +2438,15 @@ SELECT DISTINCT CAST ( - col0 AS INTEGER ) * - 58 * - 50 AS col2 FROM tab2 AS co # Datafusion - Expected - -97 # Datafusion - Expected - 5 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "Int64\(\-97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, - 97 AS col0 FROM tab1 +---- +-97 +-97 +-97 +14 +47 +5 query I rowsort SELECT DISTINCT - ( + - col0 ) FROM tab2 @@ -2737,8 +2761,11 @@ SELECT - 93 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col0" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 11 AS col0, + CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 +---- +-11 +-3 query I rowsort SELECT DISTINCT + 44 - - col0 + - - col0 AS col2 FROM tab0 AS cor0 @@ -2761,8 +2788,15 @@ SELECT DISTINCT + 4 + - col0 + - 10 col1 FROM tab0 cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 0 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(43\)\) \- Int64\(\-43\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 43 - - 43 AS col0, col2 AS col0 FROM tab1 AS cor0 +---- +0 +0 +0 +59 +68 +96 query II rowsort SELECT DISTINCT - + ( - + col1 ), col0 - col2 AS col2 FROM tab0 AS cor0 @@ -3484,8 +3518,11 @@ SELECT col0 / - 17 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, 26 AS col1 FROM tab2 cor0 +---- +26 +3 query I rowsort label-582 SELECT ALL COUNT ( - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT - 6 + + 41 IS NULL @@ -3904,8 +3941,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT 36 BETWEEN NULL AND - col2 # Datafusion - Expected - 74 # Datafusion - Expected - 4 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col0" at position 0 and "Int64\(\-11\) \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4 col0, - 11 + + col0 AS col0 FROM tab1 AS cor0 +---- +4 +4 +4 +40 +74 +80 query I rowsort SELECT DISTINCT + 23 * - + col1 + 69 FROM tab0 AS cor0 @@ -4723,8 +4767,15 @@ SELECT ALL + col0 AS col1, col2 FROM tab2 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 31 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 AS col1, col0 AS col1 FROM tab2 AS cor0 +---- +31 +31 +31 +46 +64 +75 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 - + col2 AND col0 @@ -5319,8 +5370,15 @@ NULL # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, col1 AS col2 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT + 10 NOT IN ( + + ( + 39 ) + ( col1 ) ) @@ -6474,8 +6532,15 @@ SELECT col2 / + - col0 AS col1 FROM tab1 # Datafusion - Expected - 15 # Datafusion - Expected - -99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, col0 AS col1 FROM tab0 +---- +-10 +-47 +-99 +15 +87 +97 query I rowsort label-1075 SELECT 18 * + 38 + + + MAX ( - - 17 ) * 78 FROM tab2, tab2 AS cor0 @@ -6737,8 +6802,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ), - COUNT ( * ) FROM tab2 AS cor0 +---- +-3 +-3 query I rowsort SELECT - + col0 * - ( + col2 ) col0 FROM tab2 AS cor0 @@ -6780,8 +6848,15 @@ SELECT DISTINCT 20 * - + col0 * col2 FROM tab2 # Datafusion - Expected - 4 # Datafusion - Expected - 9801 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* tab0\.col2 AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * col2 AS col2, 4 col2 FROM tab0 +---- +100 +2209 +4 +4 +4 +9801 query I rowsort SELECT - - col0 + - col1 AS col0 FROM tab0 WHERE NOT - + 44 IS NULL @@ -8535,8 +8610,15 @@ SELECT + col2 * - 36, - 26 * + 40 + - col0 + - 73 col2 FROM tab0 # Datafusion - Expected - -15 # Datafusion - Expected - -31 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) \- tab0\.col2 AS col1" at position 0 and "\(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 - col2 AS col1, - col0 AS col1 FROM tab0 +---- +-100 +-128 +-15 +-31 +-87 +-97 query I rowsort SELECT 36 - col0 AS col0 FROM tab1 @@ -9388,8 +9470,15 @@ SELECT ALL + 10 AS col2, COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Expected - 2 # Datafusion - Expected - -5 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, 2 AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +2 +2 +2 query II rowsort label-1545 SELECT ALL - - COUNT ( * ) AS col2, - ( 69 ) AS col0 FROM tab0 AS cor0 @@ -9667,8 +9756,11 @@ SELECT ALL + CAST ( col0 AS INTEGER ) + + - 81 * 12 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 199 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(tab0\.col0\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( + + col0 ) col2, 49 AS col2 FROM tab0 +---- +199 +49 query I rowsort SELECT DISTINCT col2 + + 75 - - col1 col2 FROM tab0 @@ -10178,8 +10270,11 @@ SELECT MIN ( + col0 ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) + + COUNT ( * ) AS col1, 33 AS col1 FROM tab1 cor0 +---- +33 +6 query I rowsort SELECT col2 + + - col0 AS col2 FROM tab2 AS cor0 @@ -10848,8 +10943,15 @@ NULL # Datafusion - Expected - 87 # Datafusion - Expected - 12 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 12 AS col2, + col0 AS col2 FROM tab0 AS cor0 +---- +12 +12 +12 +15 +87 +97 query II rowsort SELECT DISTINCT + + col1, + 62 * + col2 * + col2 + - col1 FROM tab2 AS cor0 @@ -11119,8 +11221,15 @@ SELECT DISTINCT 21 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 10 # Datafusion - Expected - -81 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col1, col2 AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +10 +47 +99 query I rowsort label-1821 SELECT + COUNT ( + - 17 ) FROM tab0 AS cor0 @@ -11350,8 +11459,15 @@ SELECT ALL * FROM tab2 WHERE NOT - col2 <= NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-1857 SELECT DISTINCT - CAST ( NULL AS INTEGER ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL @@ -11650,8 +11766,15 @@ SELECT DISTINCT COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS # Datafusion - Expected - 59 # Datafusion - Expected - -91 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col0" at position 0 and "\(\- \(\- tab1\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col0, ( - - col2 ) col0 FROM tab1 +---- +-51 +-85 +-91 +59 +68 +96 query I rowsort SELECT - col0 - 25 AS col0 FROM tab2 @@ -13355,8 +13478,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 + + col0 BETWEEN ( + - col2 # Datafusion - Expected - 10 # Datafusion - Expected - 81 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + col1 ) AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +1 +10 +21 +47 +81 +99 query I rowsort label-2194 SELECT DISTINCT SUM ( ALL - ( - 63 ) ) FROM tab2 AS cor0 @@ -13373,8 +13503,11 @@ SELECT 72 + 25 + - + col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-91\)\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 91 AS col1, 54 AS col1 FROM tab0 WHERE NOT 33 * col1 IS NULL +---- +54 +91 query I rowsort SELECT col1 * col2 + col0 + - - ( - ( - col1 ) ) + 27 * - - col0 AS col0 FROM tab0 @@ -13880,8 +14013,15 @@ SELECT - COUNT ( * ) FROM tab2, tab2 cor0 # Datafusion - Expected - -64 # Datafusion - Expected - 91 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-91\)\) AS col0" at position 0 and "Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 91 AS col0, - 64 col0 FROM tab1 AS cor0 +---- +-64 +-64 +-64 +91 +91 +91 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT ( - 92 ) > + col0 @@ -14089,8 +14229,15 @@ SELECT - col1 + - 98 AS col1 FROM tab1 # Datafusion - Expected - 0 # Datafusion - Expected - 31 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col0" at position 0 and "tab1\.col2 \* Int64\(0\) \* tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 31 AS col0, col2 * + 0 * + col0 AS col0 FROM tab1 +---- +0 +0 +0 +31 +31 +31 query I rowsort SELECT DISTINCT + 84 FROM tab0, tab1 AS cor0 @@ -14372,8 +14519,12 @@ SELECT DISTINCT - MAX ( 78 ) FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 6984 # 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 "Int64\(72\) \* max\(cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RII valuesort SELECT - CAST ( NULL AS FLOAT8 ) AS col2, 72 * + MAX ( col0 ) AS col2, + + COUNT ( * ) FROM tab0 AS cor0 +---- +3 +6984 +NULL query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN + - col1 AND + col2 * - - col1 * - - 62 + + 12 - - col2 + + col2 * + col2 / ( - col2 ) * col0 @@ -15305,8 +15456,15 @@ SELECT ( MAX ( DISTINCT - + col0 ) ) AS col1 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - -59 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 59 AS col2, 47 AS col2 FROM tab0 +---- +-59 +-59 +-59 +47 +47 +47 query I rowsort label-2523 SELECT ALL col0 AS col2 FROM tab2 WHERE + col0 BETWEEN - col1 + 72 + - col2 + - col2 * + CAST ( - CAST ( col2 AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS INTEGER ) AND NULL @@ -16451,8 +16609,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) AS col0" at position 0 and "Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 67 col0, - 73 AS col0 FROM tab2 AS cor0 +---- +-67 +-73 query I rowsort SELECT - + 87 * + 29 AS col0 FROM tab2 AS cor0 @@ -16765,8 +16926,15 @@ NULL # Datafusion - Expected - -40 # Datafusion - Expected - 49 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 49 AS col1, - col2 col1 FROM tab2 WHERE NOT col1 <= - col1 +---- +-23 +-40 +-58 +49 +49 +49 query I rowsort label-2765 SELECT DISTINCT MAX ( + col2 ) * - CAST ( + + 40 AS INTEGER ) AS col2 FROM tab1 @@ -16776,8 +16944,11 @@ SELECT DISTINCT MAX ( + col2 ) * - CAST ( + + 40 AS INTEGER ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(tab0\.col0\)\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MAX ( + col0 ) AS col1, 16 AS col1 FROM tab0 +---- +-97 +16 query III rowsort SELECT DISTINCT * FROM tab1 cor0 WHERE 65 IS NULL @@ -16874,8 +17045,15 @@ SELECT MAX ( DISTINCT - + ( + + col0 ) ) FROM tab1 # Datafusion - Expected - 59 # Datafusion - Expected - 156 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ Int64\(65\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 + + 65 AS col0, col2 AS col0 FROM tab1 +---- +116 +150 +156 +59 +68 +96 query III rowsort SELECT ALL * FROM tab1 WHERE NOT - col2 * 27 NOT BETWEEN NULL AND - + col2 AND NOT NULL <= 22 @@ -17547,8 +17725,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), ( COUNT ( * ) ) FROM tab2 +---- +3 +3 query I rowsort SELECT + col0 * 39 AS col2 FROM tab2 @@ -17564,8 +17745,15 @@ SELECT + col0 * 39 AS col2 FROM tab2 # Datafusion - Expected - -4624 # Datafusion - Expected - NULL # Datafusion - Expected - -9216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "tab1\.col2 \* \(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, col2 * - col2 AS col0 FROM tab1 +---- +-3481 +-4624 +-9216 +NULL +NULL +NULL query I rowsort label-2888 SELECT ALL - col0 + - + col1 + col1 - col2 / - col1 + - + col1 col2 FROM tab0 @@ -18906,8 +19094,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 AS col0, - ( + + COUNT ( * ) ) col0 FROM tab0 AS cor0 +---- +-3 +-92 query I rowsort SELECT + + 59 + - col2 + - col0 + - 92 - + col1 + + col1 * col2 col2 FROM tab0 AS cor0 @@ -18978,8 +19169,15 @@ SELECT + + 68 * - - 0 / - + 21 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 15 # Datafusion - Expected - -97 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \- cor0\.col0 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 - col0 AS col2, col0 col2 FROM tab0 AS cor0 +---- +-196 +-62 +-97 +15 +87 +97 query I rowsort SELECT - col1 + col2 FROM tab0 AS cor0 WHERE col1 * col0 IS NOT NULL @@ -19138,8 +19336,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(52\)\)\) AS col2" at position 0 and "Int64\(\-99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MIN ( + 52 ) col2, - 99 AS col2 FROM tab2 +---- +-52 +-99 query I rowsort SELECT - col0 * col2 * ( + 67 ) + - col2 AS col1 FROM tab2 @@ -19233,8 +19434,15 @@ SELECT ALL + - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - -33 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 33 AS col1, + col0 AS col1 FROM tab1 AS cor0 +---- +-33 +-33 +-33 +51 +85 +91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 @@ -19243,8 +19451,15 @@ SELECT - 33 AS col1, + col0 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 81 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, col0 AS col2 FROM tab0 +---- +1 +15 +21 +81 +87 +97 query I rowsort label-3167 SELECT DISTINCT col2 / - 86 - - ( - col2 ) * + + col2 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 @@ -19552,8 +19767,15 @@ SELECT - COUNT ( ALL - 73 ) FROM tab1 # Datafusion - Expected - 0 # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* tab2\.col2 / Int64\(8\) \* \(\- Int64\(\-29\)\) \* Int64\(\-95\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) * col2 / + 8 * - - 29 * + - 95 AS col0, 0 AS col0 FROM tab2 +---- +0 +0 +0 +NULL +NULL +NULL query I rowsort SELECT DISTINCT - col2 * + 94 AS col1 FROM tab0 @@ -19919,8 +20141,15 @@ SELECT ALL - MAX ( col1 ) FROM tab0 # Datafusion - Expected - 315392 # Datafusion - Expected - 58 # Datafusion - Expected - 376875 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 0 and "cor0\.col1 \* \(\- cor0\.col0\) \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 58 AS col1, col1 * - + col0 * - col0 AS col1 FROM tab2 AS cor0 +---- +107916 +315392 +376875 +58 +58 +58 query I rowsort SELECT ALL + 18 col2 FROM tab1 AS cor0 WHERE NOT ( 64 * 53 ) IS NULL @@ -20252,8 +20481,15 @@ SELECT DISTINCT * FROM tab2 cor0 WHERE col1 = 78 + - + col2 # Datafusion - Expected - 23 # Datafusion - Expected - -24 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col0" at position 0 and "tab1\.col0 \- tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 24 AS col0, + col0 - col2 col0 FROM tab1 +---- +-24 +-24 +-24 +-45 +23 +26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3588 @@ -20262,8 +20498,15 @@ SELECT - 24 AS col0, + col0 - col2 col0 FROM tab1 # Datafusion - Expected - 8 # Datafusion - Expected - 5850 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* \(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 * - ( - col0 ) col0, 8 col0 FROM tab2 AS cor0 +---- +3588 +4992 +5850 +8 +8 +8 query I rowsort SELECT ALL col0 * 54 FROM tab0 AS cor0 @@ -20490,8 +20733,15 @@ SELECT DISTINCT - - 36 / + COUNT ( * ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 7820 # Datafusion - Expected - 0 # Datafusion - Expected - 8372 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \+ \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(92\) \* \(\- \(\- cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 + - + col0 col1, 92 * - - col0 AS col1 FROM tab1 AS cor0 +---- +0 +0 +0 +4692 +7820 +8372 query I rowsort label-3371 SELECT + COUNT ( * ) * - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 @@ -20911,8 +21161,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT col1 - + col0 + + col1 IS NULL # Datafusion - Expected - 68 # Datafusion - Expected - NULL # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, + col2 AS col0 FROM tab1 AS cor0 +---- +59 +68 +96 +NULL +NULL +NULL query I rowsort label-3448 SELECT DISTINCT - CAST ( + 23 AS INTEGER ) FROM tab1 AS cor0 @@ -21572,8 +21829,15 @@ SELECT ALL col1, + col0 FROM tab1 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-3560 SELECT DISTINCT + + SUM ( ALL - col2 ) AS col0 FROM tab1 AS cor0 @@ -21799,8 +22063,15 @@ SELECT DISTINCT - CAST ( - MAX ( 37 ) AS INTEGER ) col1 FROM tab0 # Datafusion - Expected - 66 # Datafusion - Expected - 99 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "tab0\.col1 \+ Int64\(\-15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, + col1 + + ( - 15 ) AS col1 FROM tab0 +---- +-14 +10 +47 +6 +66 +99 query I rowsort label-3598 SELECT MIN ( ALL + - col0 ) AS col2 FROM tab0 @@ -21835,8 +22106,15 @@ SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 NOT BETWEEN - 73 + + col2 AND + 24 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col2, + col1 AS col2 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-3603 SELECT + + COUNT ( 70 ) FROM tab0 cor0 @@ -22014,8 +22292,15 @@ SELECT DISTINCT - + col2 AS col1, - CAST ( - + col0 AS INTEGER ) * col0 * - - co # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col2, col2 col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-3633 SELECT - 63 * + MAX ( col1 ) * COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab1 AS cor0 @@ -22883,8 +23168,15 @@ SELECT ALL - - 72 col1 FROM tab0 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, + col2 AS col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-3773 SELECT DISTINCT + CAST ( + - col0 AS INTEGER ) * - + col1 FROM tab1 @@ -23523,8 +23815,13 @@ NULL # Datafusion - Expected - 0 # Datafusion - Expected - -81 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-81\) AS Int32\) AS col0" at position 0 and "cor0\.col0 / Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( - 81 AS INTEGER ) AS col0, + col0 / + 21 AS col0 FROM tab0 AS cor0 +---- +-81 +-81 +0 +4 query II rowsort SELECT - col1 + - col2 * + + 94 col2, - col0 AS col1 FROM tab1 @@ -24197,8 +24494,11 @@ SELECT MAX ( ALL col1 ) AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -288 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col1" at position 0 and "\(\- Int64\(96\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 0 AS col1, ( - + 96 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +-288 +0 query I rowsort SELECT DISTINCT - col0 * - 14 + - 83 - - + col0 + 91 FROM tab0 AS cor0 @@ -24349,8 +24649,15 @@ SELECT DISTINCT - col0 * 36 FROM tab2 cor0 # Datafusion - Expected - -115 # Datafusion - Expected - 77 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "\(\- cor0\.col1\) \+ \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 77 AS col0, - col1 + + - col2 AS col0 FROM tab1 AS cor0 +---- +-110 +-115 +-64 +77 +77 +77 query III rowsort SELECT ALL * FROM tab0 cor0 WHERE 53 NOT BETWEEN + - col2 AND NULL @@ -25268,8 +25575,15 @@ SELECT ALL 58 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 61 # Datafusion - Expected - -7656 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \* Int64\(87\) AS col1" at position 0 and "Int64\(60\) \+ tab0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 88 * + 87 AS col1, + 60 + + + col1 AS col1 FROM tab0 +---- +-7656 +-7656 +-7656 +141 +61 +81 query I rowsort label-4162 SELECT ALL + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + + col2 * + col2 * - ( - 1 ) + 72, 35 * 21, + col1 * - col2 ) @@ -25297,8 +25611,15 @@ SELECT col1 * 23 + + - col2 AS col0 FROM tab0 # Datafusion - Expected - 870 # Datafusion - Expected - 79 # Datafusion - Expected - 705 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ \(\- Int64\(\-32\)\) AS col1" at position 0 and "\(\- tab0\.col2\) \* \(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( col2 ) + - ( - 32 ) AS col1, - col2 * - col0 col1 FROM tab0 +---- +131 +42 +705 +79 +870 +9603 query I rowsort SELECT col2 + - - 46 FROM tab0 @@ -26453,8 +26774,15 @@ SELECT 86 - ( col2 ) + + 12 FROM tab2 AS cor0 # Datafusion - Expected - -86 # Datafusion - Expected - -420 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* Int64\(30\) AS col0" at position 0 and "Int64\(0\) \+ Int64\(\-86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 * 30 AS col0, 0 + - 86 AS col0 FROM tab1 AS cor0 +---- +-1410 +-150 +-420 +-86 +-86 +-86 query I rowsort label-4353 SELECT DISTINCT 23 / + COUNT ( * ) FROM tab0 @@ -26834,8 +27162,11 @@ SELECT DISTINCT - 61 FROM tab2 WHERE NULL NOT IN ( - - CAST ( NULL AS INTEGER ) # 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 "tab0\.col2 / tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 14 AS col1, col2 / + ( col2 ) AS col1 FROM tab0 +---- +-14 +1 query I rowsort SELECT 76 - 96 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) = NULL @@ -27143,8 +27474,11 @@ SELECT col2 * + 44 col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 80 AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 +---- +80 +9 query I rowsort SELECT DISTINCT - 29 * 24 FROM tab2 @@ -27703,8 +28037,9 @@ SELECT * FROM tab1 WHERE ( - - col2 ) IS NOT NULL 9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( + ( col0 ) ) AS col0, + col0 FROM tab0 WHERE - col2 < NULL +---- query I rowsort label-4565 SELECT ALL + col0 * col0 * + col1 - + CAST ( + - col0 AS INTEGER ) * col0 FROM tab1 AS cor0 @@ -28167,8 +28502,15 @@ SELECT + 40 * COUNT ( * ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-4640 SELECT DISTINCT - ( - 78 ) / COUNT ( * ) AS col0 FROM tab0 @@ -28376,8 +28718,15 @@ SELECT - col2 AS col0, col2 FROM tab0 # Datafusion - Expected - 66 # Datafusion - Expected - -99 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col1 \+ \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col1, col1 + - col0 AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-66 +-96 +-99 +66 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= col2 / + col0 @@ -28612,8 +28961,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 121 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) 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 II valuesort SELECT 66 AS col1, - SUM ( - col2 ) AS col1 FROM tab2 AS cor0 +---- +121 +66 query II rowsort SELECT - col1 AS col0, 80 AS col2 FROM tab0 AS cor0 @@ -29046,8 +29398,15 @@ SELECT ALL - - 51 AS col1, + 56 FROM tab0 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -21 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 21 AS col2, - col1 AS col2 FROM tab1 AS cor0 +---- +-14 +-21 +-21 +-21 +-47 +-5 query III rowsort SELECT * FROM tab0 AS cor0 WHERE 67 IS NOT NULL @@ -30000,8 +30359,15 @@ SELECT col2 - + - 74 FROM tab2 AS cor0 # Datafusion - Expected - -2316 # Datafusion - Expected - 34 # Datafusion - Expected - 4083 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- \(\- \(\- cor0\.col2\)\) AS col2" at position 0 and "cor0\.col0 \* Int64\(\-38\) \+ Int64\(99\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 - - - col2 AS col2, col0 * - 38 + + ( ( + 99 ) ) * col2 AS col2 FROM tab0 AS cor0 +---- +-2316 +-98 +11 +34 +4083 +6115 query I rowsort SELECT - ( + col0 ) + - ( - col0 ) FROM tab0 AS cor0 @@ -30051,8 +30417,11 @@ SELECT col1 * col2, + col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90 col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL +---- +3 +90 query I rowsort label-4951 SELECT ALL + 92 * - COUNT ( * ) FROM tab0 @@ -30531,8 +30900,11 @@ SELECT 88 * - 66 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- tab2\.col1\)\)\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( + - col1 ) AS col1, 65 AS col1 FROM tab2 +---- +51 +65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 @@ -30848,8 +31220,11 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( col2 + - col1 * + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) / cor0\.col1 AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 47 / col1 AS col2, 38 AS col2 FROM tab2 AS cor0 +---- +0 +38 query I rowsort SELECT DISTINCT - col1 + + - 76 - + 49 * - 85 - 4 FROM tab1 cor0 @@ -31077,8 +31452,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT 32 IS NULL # Datafusion - Expected - 1 # Datafusion - Expected - 5 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, 1 AS col2 FROM tab1 AS cor0 +---- +1 +1 +1 +14 +47 +5 query I rowsort label-5120 SELECT - COUNT ( * ) + MIN ( ALL + 33 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) @@ -33081,8 +33463,10 @@ SELECT col1 * + ( + + col0 ) col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to bbd6e5f82cf56318cc3093411374528b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "\(\- Int64\(\-24\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - col0 AS col1, 43 AS col0, - - 24 AS col1 FROM tab2 cor0 +---- +9 values hashing to 7739fb41c618cd173f9659a8df0c0905 query I rowsort label-5454 SELECT + 20 + - - MAX ( - col0 ) FROM tab1 AS cor0 @@ -33412,8 +33796,9 @@ SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + ( + col1 ) BETWEEN NULL AND NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 / col0 AS col1, - col2 AS col1 FROM tab2 cor0 WHERE - col2 >= - + CAST ( NULL AS INTEGER ) * + col1 +---- query I rowsort label-5509 SELECT ALL + col2 / 43 FROM tab2 AS cor0 @@ -33503,8 +33888,15 @@ SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - -14 # Datafusion - Expected - 70 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ tab1\.col1 AS col0" at position 0 and "\(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 23 + col1 AS col0, - col1 col0 FROM tab1 +---- +-14 +-47 +-5 +28 +37 +70 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL @@ -33513,8 +33905,15 @@ SELECT DISTINCT 23 + col1 AS col0, - col1 col0 FROM tab1 # Datafusion - Expected - 8 # Datafusion - Expected - NULL # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(51\) \+ tab2\.col2 \* Int64\(53\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) * 51 + + col2 * 53 AS col0, 8 AS col0 FROM tab2 +---- +8 +8 +8 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( + - ( col2 ) ) - + - col2 IS NULL ) @@ -34235,8 +34634,15 @@ SELECT * FROM tab0 WHERE NOT NULL < - 48 * col2 # Datafusion - Expected - 67 # Datafusion - Expected - 6776 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* \(\- Int64\(\-88\)\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 * - - 88 col0, col1 col0 FROM tab2 +---- +4488 +51 +5896 +67 +6776 +77 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT - 0 NOT IN ( - 56, - col1 ) @@ -34459,8 +34865,15 @@ NULL # Datafusion - Expected - -58 # Datafusion - Expected - 5929 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* tab2\.col1 AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 * + col1 AS col0, - col2 AS col0 FROM tab2 WHERE + - col0 IS NOT NULL +---- +-23 +-40 +-58 +2601 +4489 +5929 query IIIIII rowsort SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL @@ -34581,8 +34994,15 @@ SELECT col1, - col0 col2 FROM tab0 AS cor0 # Datafusion - Expected - -91 # Datafusion - Expected - -714 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col2\) \- \(\- \(\- cor0\.col0\)\) \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 * col1 AS col2, - col2 - - ( - + col0 ) + + col2 AS col2 FROM tab1 AS cor0 +---- +-425 +-4277 +-51 +-714 +-85 +-91 query I rowsort SELECT + col2 * - + 28 + + 55 FROM tab1 AS cor0 @@ -35037,8 +35457,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, 21 col1 FROM tab0 AS cor0 +---- +-3 +21 query I rowsort label-5773 SELECT 25 FROM tab2 AS cor0 WHERE NOT CAST ( + + 93 AS INTEGER ) IS NOT NULL @@ -35851,8 +36274,11 @@ SELECT DISTINCT SUM ( ALL + + 84 ) FROM tab2 AS cor0 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- tab1\.col1\)\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( - col1 ) + - + CAST ( NULL AS INTEGER ) AS col1, + 74 col1 FROM tab1 +---- +74 +NULL query I rowsort SELECT DISTINCT - 14 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 @@ -36279,8 +36705,15 @@ SELECT + MAX ( + 97 ) AS col1 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - -87 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(87\)\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + 87 ) AS col1, + col2 col1 FROM tab0 +---- +-87 +-87 +-87 +10 +47 +99 query III rowsort SELECT ALL * FROM tab2 WHERE + col1 < col2 @@ -36824,8 +37257,15 @@ SELECT DISTINCT - col2, col0 FROM tab2 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 969 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-19\)\) \* \(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "\(\- cor0\.col0\) \+ \(\- \(\- cor0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - - 19 ) * - - col1 AS col0, - col0 + + - ( + - col0 ) AS col0 FROM tab2 AS cor0 +---- +0 +0 +0 +1273 +1463 +969 query I rowsort label-6078 SELECT - SUM ( DISTINCT col2 ) FROM tab1 AS cor0 @@ -37008,8 +37448,15 @@ SELECT * FROM tab0 cor0 WHERE NOT col2 > NULL # Datafusion - Expected - 54 # Datafusion - Expected - -97 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, 54 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL +---- +-15 +-87 +-97 +54 +54 +54 query I rowsort SELECT col2 * - 43 AS col2 FROM tab2 AS cor0 @@ -37067,8 +37514,15 @@ SELECT ALL + + col2 / - col2 + - col1 FROM tab1 WHERE NULL IS NOT NULL # Datafusion - Expected - -47 # Datafusion - Expected - -96 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col0" at position 0 and "tab1\.col2 / \(\- Int64\(83\)\) \- \(\- \(\- tab1\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, col2 / - + 83 - - - col1 AS col0 FROM tab1 +---- +-15 +-47 +-5 +-59 +-68 +-96 query I rowsort SELECT + col0 * + - col0 * + 12 AS col2 FROM tab0 @@ -37532,8 +37986,15 @@ SELECT ALL + 6 AS col1, - COUNT ( * ) FROM tab1 WHERE NOT - col0 IN ( + col1 * - # Datafusion - Expected - -54 # Datafusion - Expected - 7 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col1" at position 0 and "tab1\.col1 \+ \(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 7 AS col1, col1 + - col2 AS col1 FROM tab1 +---- +-21 +-54 +-82 +7 +7 +7 query I rowsort SELECT ALL - 97 + - ( - col0 ) AS col2 FROM tab0 AS cor0 @@ -38088,8 +38549,9 @@ SELECT DISTINCT 7 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 7 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col0 AS Int32\) AS col2" at position 0 and "cor0\.col2 \* Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( + col0 AS INTEGER ) AS col2, col2 * 96 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL AND NOT + col2 / + col2 IN ( + 13 ) +---- query I rowsort SELECT ALL + col2 * - col2 + + - col2 + + - col1 FROM tab1 AS cor0 @@ -39158,8 +39620,15 @@ SELECT - 47 * - - col0 * col0 FROM tab2 # Datafusion - Expected - 0 # Datafusion - Expected - 99 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* \(\- \(\- tab0\.col2\)\) AS col2" at position 0 and "tab0\.col1 \* Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * - - col2 AS col2, col1 * + 0 AS col2 FROM tab0 +---- +0 +0 +0 +210 +3807 +99 query I rowsort label-6463 SELECT + - 81 * + col2 + - - CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 cor0 @@ -39363,8 +39832,9 @@ SELECT ALL 70 * COUNT ( 62 ) * - MAX ( 70 ) FROM tab2 -14700 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "tab0\.col0 \+ tab0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, col0 + col1 AS col1 FROM tab0 WHERE NULL IS NOT NULL +---- query I rowsort SELECT DISTINCT ( - + col0 ) FROM tab1 @@ -39616,8 +40086,15 @@ SELECT DISTINCT 67 col0 FROM tab1 WHERE NOT ( ( NULL ) IS NULL ) # Datafusion - Expected - -99 # Datafusion - Expected - 10 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ \(\- tab0\.col0\) AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 25 + + - col0 AS col0, - col2 AS col0 FROM tab0 +---- +-10 +-47 +-62 +-72 +-99 +10 query II rowsort label-6539 SELECT + 4 - + col1 col1, - col1 * - - ( col1 ) * col2 / - + col2 + - + 20 + col0 + - col0 * + col0 AS col2 FROM tab2 @@ -40492,8 +40969,15 @@ SELECT + 67 - + COUNT ( * ) AS col1 FROM tab1, tab0 cor0 # Datafusion - Expected - -376 # Datafusion - Expected - 89 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "Int64\(8\) \* \(\- tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 AS col2, + 8 * - col1 AS col2 FROM tab1 +---- +-112 +-376 +-40 +89 +89 +89 query I rowsort SELECT ALL - col0 * + - 39 FROM tab1 AS cor0 @@ -41457,8 +41941,11 @@ SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( - + col0 AS FLOAT8 ) * col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(68\)\) AS col2" at position 0 and "Int64\(\-73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 68 AS col2, - 73 col2 FROM tab1 AS cor0 +---- +-68 +-73 query I rowsort label-6844 SELECT ALL - SUM ( DISTINCT + col1 ) col0 FROM tab1 AS cor0 WHERE NOT ( + col2 ) IN ( - col2 ) @@ -41929,8 +42416,15 @@ SELECT 17 AS col0, - col0 FROM tab1 AS cor0 # Datafusion - Expected - 8 # Datafusion - Expected - -75 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(85\) \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, 85 + + - col1 AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +18 +34 +8 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -42320,8 +42814,15 @@ SELECT DISTINCT 56 + col0 * col2 FROM tab0 # Datafusion - Expected - 42 # Datafusion - Expected - -65 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 65 AS col1, 42 AS col1 FROM tab2 +---- +-65 +-65 +-65 +42 +42 +42 query II rowsort label-6984 SELECT col1 - - col0 * - CAST ( NULL AS INTEGER ) AS col1, + col0 FROM tab2 @@ -43116,8 +43617,15 @@ SELECT ALL + col0 * + 75 + col2 * - col1 + col2 + - ( + CAST ( col2 AS INTEGER ) # Datafusion - Expected - 56 # Datafusion - Expected - 70 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 AS col2, + 56 AS col2 FROM tab0 AS cor0 +---- +56 +56 +56 +70 +70 +70 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * + - 38 / col2 IS NOT NULL @@ -43240,8 +43748,15 @@ SELECT DISTINCT + col2 * - CAST ( - - col2 AS INTEGER ) + + col1 + + 54 + + 31 A # Datafusion - Expected - 64 # Datafusion - Expected - 70 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 AS col1, + col0 col1 FROM tab2 AS cor0 +---- +46 +64 +70 +70 +70 +75 query I rowsort SELECT ALL + col0 * ( - col2 ) + - - ( + + 54 ) col2 FROM tab1 AS cor0 @@ -43584,8 +44099,15 @@ SELECT DISTINCT + 42 * 43 FROM tab1 AS cor0 # Datafusion - Expected - 53 # Datafusion - Expected - 154 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \+ Int64\(77\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + 77 AS col2, 53 AS col2 FROM tab2 +---- +128 +144 +154 +53 +53 +53 query I rowsort SELECT 24 + 78 AS col1 FROM tab2 @@ -45702,8 +46224,11 @@ SELECT ( - COUNT ( ( - col1 ) ) ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, + 75 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 +---- +75 +9 query I rowsort label-7538 SELECT - + 96 / - + 43 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 @@ -45743,8 +46268,15 @@ SELECT col2 * + 69 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col1, + col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT ALL + col0 + 58 FROM tab1 @@ -46407,8 +46939,9 @@ SELECT CAST ( + ( + col2 ) AS INTEGER ) * 43 AS col1 FROM tab1 4128 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col2" at position 0 and "Int64\(21\) \* tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 24 AS col2, 21 * col0 col2 FROM tab2 WHERE NOT col0 >= NULL +---- query I rowsort label-7650 SELECT ALL - col1 / - + col1 FROM tab1 cor0 @@ -47068,8 +47601,15 @@ SELECT DISTINCT + 41 AS col2, COUNT ( ALL + + col1 ) FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 +---- +15 +87 +97 +NULL +NULL +NULL query I rowsort SELECT col0 FROM tab2 WHERE NOT + + 70 IS NULL @@ -48300,8 +48840,15 @@ NULL # Datafusion - Expected - -54 # Datafusion - Expected - -96 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "Int64\(\-54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, - 54 AS col1 FROM tab1 +---- +-54 +-54 +-54 +-59 +-68 +-96 query I rowsort label-7970 SELECT MIN ( ALL + - col0 ) FROM tab2 @@ -48421,8 +48968,15 @@ SELECT - ( + - ( - col2 ) ) * - - 54 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 80 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(80\) AS Int32\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( 80 AS INTEGER ) AS col2, + col1 AS col2 FROM tab0 AS cor0 +---- +1 +21 +80 +80 +80 +81 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT 97 * + col1 * - + ( + - col1 ) IS NULL @@ -48577,8 +49131,9 @@ SELECT - COUNT ( * ) + - 4 FROM tab1 -7 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ Int64\(50\) AS col1" at position 0 and "tab1\.col0 \* \(\- \(\- tab1\.col2\)\) / tab1\.col1 \* Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + + 50 AS col1, col0 * - - col2 / + col1 * 97 col1 FROM tab1 WHERE NULL = - + col2 +---- query I rowsort label-8015 SELECT 41 + - COUNT ( * ) AS col2 FROM tab2 @@ -48933,8 +49488,11 @@ SELECT * FROM tab1 WHERE NOT 75 + col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "max\(tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 16 AS col2, MAX ( col0 ) AS col2 FROM tab1 +---- +16 +91 query I rowsort SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE NOT + 1 * + + 95 IN ( - 93 ) @@ -49204,8 +49762,15 @@ SELECT ALL - 72 + - col2 FROM tab1 AS cor0 # Datafusion - Expected - 31 # Datafusion - Expected - 77 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, + 31 AS col2 FROM tab2 cor0 +---- +31 +31 +31 +51 +67 +77 query II rowsort label-8116 SELECT 3 * 73 AS col1, - SUM ( ALL + col0 ) + - COUNT ( * ) AS col0 FROM tab1 @@ -49391,8 +49956,15 @@ SELECT DISTINCT - 3 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 62 # Datafusion - Expected - 0 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \- \(\- cor0\.col2\) AS col0" at position 0 and "Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 - - + col2 AS col0, 62 AS col0 FROM tab2 AS cor0 +---- +0 +0 +0 +62 +62 +62 query III rowsort SELECT * FROM tab1 AS cor0 WHERE - 5 * col2 = - 12 * + + col2 + - 72 @@ -49410,8 +49982,15 @@ SELECT ALL ( - SUM ( ALL - 7 ) ) - + 45 FROM tab2 cor0 # Datafusion - Expected - 59 # Datafusion - Expected - 3 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / cor0\.col0 AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 / col0 AS col0, + 59 AS col0 FROM tab0 AS cor0 +---- +0 +1 +3 +59 +59 +59 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 12 <= NULL @@ -51113,8 +51692,15 @@ SELECT col1 * + 33 AS col2 FROM tab2 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -51500,8 +52086,11 @@ SELECT + ( - 14 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 5 AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +3 +5 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN col2 * - col2 + + - col0 + - col0 AND ( - 41 ) @@ -51742,8 +52331,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, - COUNT ( * ) * MAX ( - col0 ) AS col0 FROM tab1 +---- +-3 +153 query I rowsort label-8535 SELECT DISTINCT CAST ( - 13 AS INTEGER ) + COUNT ( * ) FROM tab0 @@ -52633,8 +53225,15 @@ SELECT DISTINCT + 18 / + COUNT ( * ) FROM tab0 AS cor0 # Datafusion - Expected - -3773 # Datafusion - Expected - 75 # Datafusion - Expected - -3283 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(\-49\) \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, - 49 * col1 AS col1 FROM tab2 AS cor0 +---- +-2499 +-3283 +-3773 +46 +64 +75 query II rowsort SELECT + - 7, col2 FROM tab0 AS cor0 @@ -53836,8 +54435,10 @@ SELECT ALL col0 * + 86 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c38aae9f379b860029e0985dddbe3c24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\)" at position 0 and "\(\- tab1\.col1\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col1, + col1 col2, - col1 FROM tab1 +---- +9 values hashing to 5919b38426bf37e89d4171622617af42 query I rowsort label-8888 SELECT + - SUM ( ALL - col2 ) col0 FROM tab0 AS cor0 @@ -54451,8 +55052,10 @@ SELECT * FROM tab1 WHERE NOT + col0 <> - col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 78c3847c5db25f4c9adc60e0419412d5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "\(\- tab1\.col2\) \* tab1\.col2 \+ \(\- \(\- tab1\.col0\)\) \- \(\- tab1\.col2\) \+ tab1\.col0 \+ CAST\(tab1\.col0 AS Int32\) \* \(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col2 AS col0, - col2 * + col2 + - - col0 - - col2 + + + col0 + + CAST ( + col0 AS INTEGER ) * - col1 col0, ( + - col0 ) AS col0 FROM tab1 +---- +9 values hashing to 83e3aab8f1a013d6e916cdd829d8bc4d query III rowsort label-8986 SELECT DISTINCT * FROM tab0 WHERE NOT - 5 + col2 + - + col0 NOT BETWEEN col0 - - CAST ( NULL AS INTEGER ) - + - col2 AND - col2 @@ -54976,8 +55579,15 @@ SELECT * FROM tab1 AS cor0 WHERE ( NOT + + 55 * CAST ( + col0 AS INTEGER ) > NUL # Datafusion - Expected - 21 # Datafusion - Expected - -9409 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * - col0 AS col0, col1 AS col0 FROM tab0 AS cor0 +---- +-225 +-7569 +-9409 +1 +21 +81 query I rowsort label-9067 SELECT - 20 * + COUNT ( * ) FROM tab1 AS cor0 @@ -55005,8 +55615,15 @@ SELECT ALL + 18 * + 94 AS col0 FROM tab1 # Datafusion - Expected - 155 # Datafusion - Expected - 563108 # Datafusion - Expected - 160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* tab1\.col2 \* tab1\.col0 AS col0" at position 0 and "tab1\.col0 \+ tab1\.col2 / tab1\.col1 \+ tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * + + col2 * + col0 AS col0, + col0 + + col2 / col1 + + col2 AS col0 FROM tab1 +---- +153 +155 +160 +249696 +426275 +563108 query III rowsort label-9071 SELECT * FROM tab0 WHERE NOT + ( + CAST ( + col1 AS INTEGER ) ) + + 71 IS NOT NULL @@ -56705,8 +57322,15 @@ SELECT ALL + col0 * 94 + + col2 FROM tab0 WHERE - col0 NOT IN ( ( 94 ), + col0 / # Datafusion - Expected - 36 # Datafusion - Expected - -77 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, + 36 col1 FROM tab2 +---- +-51 +-67 +-77 +36 +36 +36 query I rowsort SELECT DISTINCT + col2 + - 1 AS col0 FROM tab0 @@ -59046,8 +59670,11 @@ SELECT ALL - SUM ( 3 ) FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 184 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "sum\(DISTINCT cor0\.col0\) \+ Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 42 AS col0, SUM ( DISTINCT col0 ) + ( - 1 ) col0 FROM tab2 AS cor0 +---- +184 +42 query I rowsort SELECT col1 * + + col0 AS col0 FROM tab1 AS cor0 @@ -59425,8 +60052,15 @@ SELECT 38 - MIN ( + col1 ) + - + MIN ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - 75 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, + ( - col2 ) AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +46 +64 +75 query I rowsort SELECT - - ( + col2 ) AS col0 FROM tab2 WHERE NOT NULL IN ( col1 * - col1, + col2, + + col1 ) @@ -60598,8 +61232,9 @@ SELECT ALL + 48 * - - col1 + + col1 * - col2 + col1 - + + col1 * - + 26 AS col2 2268 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\)" at position 0 and "\(\- tab2\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2, - col2 FROM tab2 WHERE NOT + col0 * + + col1 - 77 * ( + 73 ) < NULL +---- query I rowsort label-9993 SELECT COUNT ( * ) / COUNT ( ALL - col1 ) AS col1 FROM tab2 diff --git a/data/sqlite/random/aggregates/slt_good_46.slt b/data/sqlite/random/aggregates/slt_good_46.slt index fcf252f..0181bed 100644 --- a/data/sqlite/random/aggregates/slt_good_46.slt +++ b/data/sqlite/random/aggregates/slt_good_46.slt @@ -413,8 +413,15 @@ SELECT DISTINCT - 66 + - 38 FROM tab0 # Datafusion - Expected - 67 # Datafusion - Expected - 8 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 8 AS col2, col1 AS col2 FROM tab2 +---- +51 +67 +77 +8 +8 +8 query III rowsort SELECT * FROM tab2 WHERE + + 64 IS NOT NULL @@ -486,8 +493,11 @@ SELECT - col1 + - 53 + 29 + - - col0 FROM tab1 AS cor0 # 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 "tab2\.col1 \+ \(\- tab2\.col1\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 + - col1 AS col1, + 55 AS col1 FROM tab2 +---- +0 +55 query IIIIII rowsort label-71 SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - ( + CAST ( NULL AS FLOAT8 ) ) IS NOT NULL @@ -2329,8 +2339,15 @@ SELECT - 11 * - col0 + + - col0 FROM tab2 AS cor0 # Datafusion - Expected - 75 # Datafusion - Expected - 2079 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \* \(\- cor0\.col1\) \+ cor0\.col1 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 26 * + - col1 + col1 AS col1, col0 AS col1 FROM tab2 AS cor0 +---- +1377 +1809 +2079 +46 +64 +75 query I rowsort SELECT ALL - 23 + + + col1 AS col2 FROM tab2 @@ -2750,8 +2767,10 @@ SELECT col0 + - + ( + - 43 ) AS col1 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 89cb35d18eb39316f92af145714eab91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ \(\- cor0\.col0\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - col2 + - col0 AS col2, + CAST ( - col0 AS INTEGER ), - col1 AS col2 FROM tab1 AS cor0 +---- +9 values hashing to f104e93cc0f4ffc2abd7157d2054aa8f query I rowsort SELECT DISTINCT col1 * + col0 col0 FROM tab1 AS cor0 @@ -3124,8 +3143,15 @@ SELECT - - 91 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + - ( + 30 ), col2 ) # Datafusion - Expected - -38 # Datafusion - Expected - -5 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(5\)\) AS col1" at position 0 and "Int64\(\-38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - + 5 ) AS col1, - 38 col1 FROM tab0 AS cor0 +---- +-38 +-38 +-38 +-5 +-5 +-5 query I rowsort SELECT DISTINCT + 76 col0 FROM tab2 AS cor0 @@ -3306,8 +3332,11 @@ SELECT COUNT ( ALL col2 ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 AS col2, COUNT ( * ) AS col2 FROM tab0 +---- +3 +6 query I rowsort label-535 SELECT + COUNT ( ALL col0 ) / 4 FROM tab0 AS cor0 WHERE NOT + 91 IS NULL @@ -3482,8 +3511,15 @@ SELECT ALL col1 * - col1 * + col2 AS col1 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - -7 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(7\)\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 7 ) AS col0, + col1 AS col0 FROM tab1 AS cor0 +---- +-7 +-7 +-7 +14 +47 +5 query I rowsort label-565 SELECT ALL + + 26 * - - COUNT ( * ) AS col2 FROM tab2 AS cor0 @@ -4590,8 +4626,9 @@ SELECT ALL * FROM tab0 AS cor0 WHERE 51 * col0 <= + + 77 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = NULL +---- query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 33 @@ -4821,8 +4858,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( - 24 ) AS col2, COUNT ( * ) * 99 col2 FROM tab1 +---- +-72 +297 query I rowsort label-797 SELECT ALL MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab2 @@ -5238,8 +5278,13 @@ SELECT ALL * FROM tab1 WHERE NULL >= NULL AND + col1 / col0 BETWEEN col1 + + col # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 FROM tab2 WHERE + 60 < + col0 +---- +67 +67 +77 +77 query I rowsort label-868 SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL BETWEEN col2 * col2 AND + col0 * - + 79 ) ) @@ -5393,8 +5438,15 @@ SELECT ALL col1 * - col2 FROM tab0 cor0 WHERE NULL IS NOT NULL # Datafusion - Expected - -5 # Datafusion - Expected - -91 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col0 AS col0, - ( + col1 ) AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +-51 +-85 +-91 query I rowsort SELECT DISTINCT col2 + - col1 AS col0 FROM tab2 AS cor0 WHERE col2 - + col0 IS NULL @@ -5777,8 +5829,15 @@ SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - + 93 * - - col0 AND NULL # Datafusion - Expected - -87 # Datafusion - Expected - -9722 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* \(\- \(\- tab0\.col2\)\) \+ tab0\.col1 \+ Int64\(\-49\) \- Int64\(71\) AS col0" at position 0 and "\(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - col0 ) * - ( - col2 ) + + col1 + - 49 - 71 AS col0, ( - col0 ) AS col0 FROM tab0 +---- +-15 +-744 +-87 +-969 +-97 +-9722 query III rowsort SELECT * FROM tab0 WHERE NOT + 43 IS NULL @@ -5823,8 +5882,15 @@ SELECT ALL col2 + + col1 + + col1 + + col2 * col0 * + + col1 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, + col2 AS col0 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query II rowsort SELECT ALL 74 + + - 76 AS col2, 48 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 @@ -6215,8 +6281,15 @@ SELECT + - col1 col1 FROM tab2 cor0 WHERE col1 IS NOT NULL # Datafusion - Expected - 47 # Datafusion - Expected - -96 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 col0, + col1 AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +14 +47 +5 query I rowsort label-1024 SELECT ALL - MAX ( ALL + - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL @@ -6249,8 +6322,11 @@ SELECT - SUM ( DISTINCT - col0 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* min\(CAST\(NULL AS Float64\)\) \* \(\- Int64\(72\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT COUNT ( * ) AS col0, + COUNT ( * ) * + + MIN ( CAST ( NULL AS FLOAT8 ) ) * - + 72 * - COUNT ( * ) AS col0 FROM tab0, tab0 AS cor0 +---- +9 +NULL query I rowsort SELECT ALL - col2 * + + ( - - col2 ) AS col0 FROM tab0 @@ -6942,8 +7018,15 @@ SELECT ALL col2, - ( + col1 ) FROM tab2 # Datafusion - Expected - 133 # Datafusion - Expected - -99 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col2" at position 0 and "cor0\.col0 \- \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 99 AS col2, + col0 - - col2 AS col2 FROM tab2 AS cor0 +---- +-99 +-99 +-99 +104 +133 +69 query III rowsort label-1143 SELECT ALL * FROM tab1 AS cor0 WHERE - col1 - + - ( - CAST ( NULL AS INTEGER ) ) + + col1 NOT BETWEEN ( NULL ) AND + 24 / - col0 @@ -8403,8 +8486,15 @@ SELECT + 40 + - + ( + col1 ) + - col0 * - - col1 AS col2, + col0 FROM tab2 AS co # Datafusion - Expected - 40 # Datafusion - Expected - 7058 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ Int64\(95\) \* cor0\.col0 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 + + 95 * + col0 AS col0, + col2 col0 FROM tab2 AS cor0 +---- +23 +40 +4319 +58 +6003 +7058 query I rowsort label-1386 SELECT + col1 + 94 / col0 AS col1 FROM tab2 cor0 @@ -8484,8 +8574,15 @@ SELECT DISTINCT + - 40 * - - col1 AS col0 FROM tab1 WHERE NOT 49 IS NOT NULL # Datafusion - Expected - -3807 # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- \(\- CAST\(NULL AS Int32\)\) / cor0\.col0 AS col1" at position 0 and "cor0\.col1 \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 - - CAST ( NULL AS INTEGER ) / + col0 col1, col1 * - col2 AS col1 FROM tab0 AS cor0 +---- +-210 +-3807 +-99 +NULL +NULL +NULL query I rowsort label-1400 SELECT - CAST ( NULL AS INTEGER ) - + + col1 FROM tab1 cor0 @@ -8894,8 +8991,9 @@ SELECT * FROM tab2 WHERE NULL NOT IN ( + col2 + - - col0 ) ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col2, 78 AS col2 FROM tab1 WHERE + + 66 - - 4 * + col1 IS NULL +---- query I rowsort SELECT 25 * 60 * - 94 FROM tab0 WHERE NULL IS NOT NULL @@ -9562,8 +9660,11 @@ SELECT + col1 * 85 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 291 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "Int64\(97\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 48 AS col2, 97 * + ( + COUNT ( * ) ) AS col2 FROM tab1 +---- +-48 +291 query I rowsort label-1573 SELECT MIN ( ALL + col0 ) * 77 AS col2 FROM tab2 @@ -10178,8 +10279,15 @@ SELECT ALL * FROM tab0 WHERE NOT col0 * - 45 + + - 73 BETWEEN 10 AND col2 # Datafusion - Expected - 27 # Datafusion - Expected - 77 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, + 27 AS col0 FROM tab2 cor0 +---- +27 +27 +27 +51 +67 +77 query I rowsort SELECT col0 + 21 * 3 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) <> 82 / + + col2 + col2 + - col1 @@ -10742,8 +10850,15 @@ SELECT ALL + col1 * 28 FROM tab1 # Datafusion - Expected - 0 # Datafusion - Expected - 6 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) / \(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col2\) \- \(\- CAST\(cor0\.col2 AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 97 / - col0 col1, - col2 - - CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0 +---- +0 +0 +0 +1 +1 +6 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 22 * + col0 / col2 <= col2 * + 38 - - col2 - + - col1 @@ -10801,8 +10916,11 @@ SELECT ALL + col2 + col0 AS col2 FROM tab0 WHERE NOT 61 <> 20 - + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 14 AS col2, 44 AS col2 FROM tab0 AS cor0 +---- +14 +44 query I rowsort SELECT - col1 / + - 22 + - col1 col2 FROM tab1 cor0 WHERE col1 < - 21 * - - 11 @@ -12081,8 +12199,15 @@ SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= + col0 * + + col0 # Datafusion - Expected - 134 # Datafusion - Expected - 55 # Datafusion - Expected - 154 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col1" at position 0 and "cor0\.col1 \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 55 AS col1, col1 + + col1 AS col1 FROM tab2 AS cor0 +---- +102 +134 +154 +55 +55 +55 query II rowsort SELECT - col0 AS col2, + 9 FROM tab0 cor0 @@ -12381,8 +12506,10 @@ SELECT col2 / + - col0 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 6372c1d50a26a7341c879efe00e7ba05 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \- \(\- tab2\.col0\) \+ \(\- tab2\.col2\) AS col0" at position 1 and "\(\- tab2\.col1\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 34, 52 - - col0 + - col2 AS col0, - col1 AS col0 FROM tab2 +---- +9 values hashing to 852d370c48aeb4d608a6313036c5d224 query I rowsort label-2031 SELECT DISTINCT - col0 / + + col1 AS col0 FROM tab1 cor0 @@ -12792,8 +12919,15 @@ SELECT DISTINCT - - MAX ( + - col2 ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 4697 # Datafusion - Expected - 75 # Datafusion - Expected - 4087 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(61\) \* \(\- \(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 col1, 61 * - ( - col1 ) AS col1 FROM tab2 AS cor0 +---- +3111 +4087 +46 +4697 +64 +75 query I rowsort SELECT ALL - col2 * col0 + - col1 FROM tab0 cor0 WHERE 13 + - - col0 <= ( col0 + 66 ) @@ -12938,8 +13072,15 @@ SELECT ALL + - 63 FROM tab2 cor0 # Datafusion - Expected - -5 # Datafusion - Expected - 989 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- Int64\(\-67\) \* cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 - + - 67 * + + col1 AS col0, - col1 AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +3240 +420 +989 query I rowsort label-2124 SELECT - - col1 - - 42 / - ( + col0 ) FROM tab1 cor0 @@ -13875,8 +14016,15 @@ SELECT DISTINCT + 26 FROM tab1 cor0 # Datafusion - Expected - -91 # Datafusion - Expected - 96 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, - col0 AS col1 FROM tab1 cor0 +---- +-51 +-85 +-91 +59 +68 +96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 3a7f3e18431179abd36f50ab3569d970 @@ -14085,8 +14233,15 @@ SELECT + col1 * + - 56 + - col1 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 83 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col0" at position 0 and "Int64\(80\) / Int64\(91\) \- cor0\.col1 \+ \(\- CAST\(NULL AS Float64\)\) \+ CAST\(cor0\.col0 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + ( + ( 83 ) ) AS col0, 80 / + 91 - + + col1 + - CAST ( NULL AS FLOAT8 ) + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0 +---- +83 +83 +83 +NULL +NULL +NULL query I rowsort SELECT DISTINCT - - ( + 72 ) * 5 FROM tab2 AS cor0 @@ -14315,8 +14470,11 @@ SELECT DISTINCT ( + + col2 ) * - col2 + + 82 + + + 68 * + 72 + - 37 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 6 * - + COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT col2 / col0 IS NULL +---- +-18 +NULL query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + + + col2 IS NULL @@ -16209,8 +16367,9 @@ SELECT DISTINCT + ( - MAX ( CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0 NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "Int64\(76\) \+ \(\- Int64\(1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, 76 + - + 1 col2 FROM tab0 WHERE NOT NULL NOT IN ( - + col1 * + - col1, col0 ) +---- query I rowsort label-2671 SELECT ALL + COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 @@ -17309,8 +17468,15 @@ SELECT ALL + - col1 FROM tab0 WHERE NULL IS NOT NULL # Datafusion - Expected - -67 # Datafusion - Expected - -77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\)" at position 0 and "\(\- tab2\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( col1 ), - col1 FROM tab2 +---- +-51 +-51 +-67 +-67 +-77 +-77 query I rowsort SELECT ALL - ( + ( col1 ) ) FROM tab0 @@ -17728,8 +17894,15 @@ SELECT DISTINCT - col1 AS col0, - 46 FROM tab1 cor0 WHERE col0 = + 30 # Datafusion - Expected - 68 # Datafusion - Expected - NULL # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ \(\- CAST\(NULL AS Int32\)\) \+ tab1\.col0 AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 29 + + - CAST ( NULL AS INTEGER ) + + + col0 AS col1, col2 AS col1 FROM tab1 +---- +59 +68 +96 +NULL +NULL +NULL query I rowsort SELECT ALL col2 + - + col0 AS col1 FROM tab0 @@ -18105,8 +18278,15 @@ SELECT ( + + col1 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 172 # Datafusion - Expected - 55 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "Int64\(31\) \- \(\- cor0\.col0\) \- \(\- cor0\.col2\) \+ \(\- cor0\.col1\) \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 55 AS col2, + 31 - - ( col0 ) - + - col2 + - col1 + + ( + col0 ) AS col2 FROM tab2 AS cor0 +---- +122 +172 +55 +55 +55 +95 query II rowsort SELECT - 90 AS col1, col2 FROM tab0 AS cor0 @@ -19471,8 +19651,15 @@ SELECT DISTINCT - col1 / - col2 - - + 58 * + col1 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 0 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \- cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 - + col2 AS col1, col2 col1 FROM tab0 AS cor0 +---- +0 +0 +0 +10 +47 +99 query III rowsort SELECT * FROM tab0 AS cor0 WHERE col2 / + 73 IS NULL @@ -19667,8 +19854,10 @@ SELECT + + col1 + - col0, col1 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f7ed2962e94c9d01c709313dbd3e1b6b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col2 AS col2" at position 0 and "Int64\(85\) \* CAST\(cor0\.col1 AS Int32\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + col1 * + col2 AS col2, ( + - ( - - col2 ) ) * - + col1 - + col0, 85 * CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0 +---- +9 values hashing to 58a655e43d4bf06c13e4be5582de4b9d query I rowsort SELECT + 72 * col1 AS col0 FROM tab0 AS cor0 @@ -19706,8 +19895,15 @@ NULL # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, + col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query III rowsort SELECT DISTINCT * FROM tab2 WHERE + 84 + 50 * + ( - col1 ) NOT IN ( + 14 * - col2, + col2 ) @@ -19762,8 +19958,15 @@ SELECT DISTINCT - - 2 AS col1 FROM tab1 cor0 WHERE NULL > + col2 # Datafusion - Expected - 87 # Datafusion - Expected - 92 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + 92 ) AS col2, col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 < + col2 * - 31 * - 54 * - 98 + - 39 + - - CAST ( - 30 AS INTEGER ) +---- +15 +87 +92 +92 +92 +97 query I rowsort label-3255 SELECT ALL ( + col2 ) / + 86 + - + 49 * + + col1 FROM tab0 AS cor0 @@ -19927,8 +20130,15 @@ SELECT - col0 * + + col1 FROM tab2 WHERE + col1 <= ( + col0 ) # Datafusion - Expected - 21 # Datafusion - Expected - -650606 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \- tab0\.col0 \* Int64\(86\) \* Int64\(78\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 70 - + col0 * + 86 * + 78 AS col0, col1 AS col0 FROM tab0 +---- +-100550 +-583526 +-650606 +1 +21 +81 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -20688,8 +20898,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ), + COUNT ( * ) FROM tab2 AS cor0 +---- +3 +3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 @@ -20698,8 +20911,15 @@ SELECT ALL COUNT ( * ), + COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Expected - 253 # Datafusion - Expected - 74 # Datafusion - Expected - 264 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / Int64\(\-61\) \- \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(82\) \+ Int64\(56\) \- Int64\(\-51\) \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 / - 61 - - col0 AS col2, 82 + + 56 - + - 51 + + col0 AS col2 FROM tab2 AS cor0 +---- +235 +253 +264 +46 +63 +74 query I rowsort label-3407 SELECT + COUNT ( * ) * - 99 FROM tab0 cor0 @@ -22405,8 +22625,15 @@ SELECT ALL col1 / 49 FROM tab0 # Datafusion - Expected - 85 # Datafusion - Expected - 19 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 19 AS col2, col0 AS col2 FROM tab1 +---- +19 +19 +19 +51 +85 +91 query II rowsort SELECT - 98 AS col1, - col1 FROM tab2 @@ -23083,8 +23310,11 @@ SELECT - 62 / + COUNT ( * ) col0 FROM tab2 # 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 "\(\- min\(\(\- tab0\.col2\)\)\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + MIN ( - ( + col2 ) ) AS col2, 45 AS col2 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL +---- +45 +NULL query I rowsort SELECT - 60 * col0 FROM tab0 @@ -24241,8 +24471,15 @@ SELECT DISTINCT - col1 * - 36 * CAST ( + col0 AS INTEGER ) * + + col0 + - + 15 A # Datafusion - Expected - -79 # Datafusion - Expected - 498 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \+ \(\- cor0\.col2\) \* \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 31 + - col2 * - col2 AS col1, - 79 col1 FROM tab2 AS cor0 +---- +-79 +-79 +-79 +1569 +3333 +498 query I rowsort SELECT ALL - col1 * - col2 + - + 25 FROM tab1 AS cor0 @@ -24671,8 +24908,15 @@ SELECT ALL + 16 * COUNT ( + col2 * col0 ) FROM tab2 AS cor0 WHERE NULL IS NOT NU # Datafusion - Expected - 21 # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col2, ( col1 ) AS col2 FROM tab0 AS cor0 +---- +1 +21 +81 +NULL +NULL +NULL query II rowsort SELECT - col1 AS col2, ( + 68 ) FROM tab0 AS cor0 @@ -24869,8 +25113,15 @@ SELECT col2 * + 1 FROM tab0 # Datafusion - Expected - 3807 # Datafusion - Expected - -99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, col1 * ( + col2 ) AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +210 +3807 +99 query I rowsort SELECT col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col0 - + col1 + col1 * - - col1 - - col1 ) @@ -25142,16 +25393,26 @@ SELECT ALL ( + COUNT ( * ) ) * 13 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 0 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) / \(\- tab0\.col0\) AS col1" at position 0 and "Int64\(35\) \+ Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 68 / - col0 col1, 35 + 12 AS col1 FROM tab0 +---- +-4 +0 +47 +47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 93 # Datafusion - Expected - 1 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) / tab2\.col1 AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 62 / + col1 AS col1, 93 AS col1 FROM tab2 +---- +0 +1 +93 +93 query I rowsort SELECT + 34 + col2 FROM tab2 @@ -25482,8 +25743,10 @@ SELECT ALL + - SUM ( DISTINCT + col0 ) col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 266cfdba9716c43aff16e41532945c49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col2" at position 1 and "cor0\.col0 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col1 * - ( + + col0 ), - 22 AS col2, + col0 col2 FROM tab2 AS cor0 +---- +9 values hashing to cf95705db2dd59e4a819594e86344949 query III rowsort label-4211 SELECT ALL * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL @@ -25787,8 +26050,15 @@ SELECT ALL - - col2 + - 13 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 400 # Datafusion - Expected - 1 # Datafusion - Expected - 400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col0" at position 0 and "\(\- Int64\(\-16\)\) \* Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 1 ) AS col0, - ( - 16 ) * + + 25 AS col0 FROM tab2 +---- +1 +1 +1 +400 +400 +400 query I rowsort SELECT ALL + 19 + - - col0 - - 4 AS col1 FROM tab2 @@ -26312,8 +26582,15 @@ SELECT + 12 * - - col2 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, + col2 AS col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-4348 SELECT DISTINCT + + 7 - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1 @@ -26854,8 +27131,15 @@ SELECT col2 FROM tab1 AS cor0 WHERE NOT - col2 < col0 * col2 / + - 5 # Datafusion - Expected - 40 # Datafusion - Expected - 21 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 AS col0, + col2 AS col0 FROM tab2 AS cor0 +---- +21 +21 +21 +23 +40 +58 query I rowsort SELECT DISTINCT - 37 + 91 * + - col2 AS col0 FROM tab2 AS cor0 @@ -28147,8 +28431,13 @@ SELECT DISTINCT - SUM ( ALL + + 0 ) * - MIN ( - 7 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 1 # Datafusion - Expected - 99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) / \(\- cor0\.col1\) AS col0" at position 0 and "\(\- \(\- \(\- cor0\.col1\)\)\) / \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 / - + col1 AS col0, - ( ( - - col1 ) ) / - col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL +---- +0 +1 +1 +99 query I rowsort SELECT ALL col2 * + col1 + - col2 * + - ( + - 59 ) AS col1 FROM tab0 AS cor0 @@ -28503,8 +28792,15 @@ SELECT ALL * FROM tab2 WHERE NOT 91 IS NOT NULL # Datafusion - Expected - 4096 # Datafusion - Expected - NULL # Datafusion - Expected - 5625 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- tab2\.col0\) \* \(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, - col0 * - + ( + col0 ) AS col1 FROM tab2 +---- +2116 +4096 +5625 +NULL +NULL +NULL query I rowsort label-4707 SELECT ALL COUNT ( DISTINCT - 83 ) FROM tab2 @@ -28524,8 +28820,11 @@ SELECT ALL MAX ( DISTINCT - col0 ) AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, - 71 col1 FROM tab2 AS cor0 +---- +-71 +3 query I rowsort SELECT + 12 AS col1 FROM tab2 cor0 @@ -28551,8 +28850,11 @@ SELECT ALL 60 * - 42 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "sum\(DISTINCT tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, SUM ( DISTINCT col1 ) AS col0 FROM tab0 +---- +103 +3 query I rowsort SELECT + - ( + 51 ) AS col0 FROM tab0 AS cor0 @@ -29290,8 +29592,15 @@ SELECT + + col0 AS col2, CAST ( 70 AS INTEGER ) * + col2 FROM tab0 AS cor0 WHERE # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col2, + col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query II rowsort label-4830 SELECT ALL + - col0, + CAST ( 37 AS INTEGER ) AS col0 FROM tab0 AS cor0 @@ -29437,8 +29746,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) col2, MIN ( - + col1 ) AS col2 FROM tab0 cor0 +---- +-3 +-81 query I rowsort label-4851 SELECT ALL COUNT ( * ) * - 4 + - + 11 FROM tab2 AS cor0 @@ -29617,8 +29929,15 @@ SELECT ALL col0 AS col1, col2 FROM tab1 # Datafusion - Expected - 970299 # Datafusion - Expected - 66 # Datafusion - Expected - 103823 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ cor0\.col1 AS col1" at position 0 and "cor0\.col2 \* cor0\.col2 \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + + col1 AS col1, + col2 * + col2 * col2 AS col1 FROM tab0 AS cor0 +---- +-66 +-96 +1000 +103823 +66 +970299 query I rowsort label-4879 SELECT DISTINCT ( + ( - + COUNT ( DISTINCT + + 16 ) ) ) FROM tab1 AS cor0 @@ -31514,8 +31833,10 @@ SELECT 68 / - col1 + - - col0 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c94623914a14e5e87add009623202f2d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "\(\- \(\- cor0\.col1\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - col2 col2, 53 * col1, - - col1 col2 FROM tab2 AS cor0 +---- +9 values hashing to 4913085a0c626bd0552bdd47d54c89c7 query I rowsort label-5196 SELECT DISTINCT - col0 / + col1 + + - 47 AS col1 FROM tab1 AS cor0 @@ -31692,8 +32013,15 @@ SELECT + 23 + + 58 + + + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS c # Datafusion - Expected - -45 # Datafusion - Expected - 90 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col0 AS col0" at position 0 and "\(\- cor0\.col2\) \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + col0 AS col0, ( - col2 ) + col0 AS col0 FROM tab1 cor0 +---- +-45 +138 +23 +26 +65 +90 query I rowsort SELECT DISTINCT - + col2 * + 64 - col0 + + col0 AS col1 FROM tab0 AS cor0 @@ -32594,8 +32922,15 @@ SELECT 58 / + COUNT ( DISTINCT - - col2 ) FROM tab0 # Datafusion - Expected - 22 # Datafusion - Expected - 0 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 / \(\- tab0\.col2\) AS col2" at position 0 and "Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 / - + col2 col2, 22 AS col2 FROM tab0 +---- +-8 +0 +0 +22 +22 +22 query II rowsort label-5368 SELECT 99 AS col1, + COUNT ( - - 30 ) FROM tab1 WHERE NOT + col1 BETWEEN NULL AND NULL @@ -32866,8 +33201,15 @@ SELECT DISTINCT * FROM tab0 WHERE NOT - ( + - col1 ) + + 7 + - - col2 + + col0 * # Datafusion - Expected - 17 # Datafusion - Expected - 91 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, 17 AS col2 FROM tab1 +---- +17 +17 +17 +51 +85 +91 query I rowsort SELECT DISTINCT + + 70 * + col1 + 87 * + - ( - - 24 ) AS col1 FROM tab1 AS cor0 @@ -32977,8 +33319,15 @@ SELECT ALL + + COUNT ( * ) FROM tab2 WHERE col2 IS NOT NULL # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, col0 AS col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query III rowsort SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + 84 @@ -33203,8 +33552,15 @@ SELECT SUM ( + + col2 ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 5168 # Datafusion - Expected - 2343 # Datafusion - Expected - 7296 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) \* Int64\(\-33\) AS col2" at position 0 and "Int64\(76\) \* \(\- \(\- cor0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 71 * + - 33 AS col2, 76 * - + ( - + col2 ) AS col2 FROM tab1 AS cor0 +---- +2343 +2343 +2343 +4484 +5168 +7296 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT col1 = NULL @@ -33954,8 +34310,15 @@ SELECT ALL - col2 + col2 FROM tab0 WHERE NOT NULL <= col2 + - - CAST ( - 70 AS I # Datafusion - Expected - 46 # Datafusion - Expected - 97 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* tab0\.col1 AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * + col1 AS col0, 46 AS col0 FROM tab0 +---- +1215 +1827 +46 +46 +46 +97 query I rowsort label-5597 SELECT + ( SUM ( DISTINCT - col1 ) ) FROM tab0 @@ -34080,8 +34443,11 @@ SELECT DISTINCT - COUNT ( + 48 ) AS col2 FROM tab1 WHERE ( - col2 * - - col0 - c # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- avg\(CAST\(NULL AS Float64\)\)\) AS Int32\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( - AVG ( ALL + CAST ( NULL AS FLOAT8 ) ) AS INTEGER ) AS col0, + 77 col0 FROM tab2 +---- +77 +NULL query I rowsort SELECT col0 FROM tab1 cor0 WHERE ( NOT - 51 IN ( - + ( + 82 ) ) ) @@ -34344,15 +34710,22 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ), COUNT ( * ) FROM tab2 cor0 +---- +3 +3 # 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\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + COUNT ( * ) col1, - COUNT ( * ) AS col1, - 29 FROM tab0, tab2 AS cor0 +---- +-29 +-9 +9 query I rowsort SELECT col2 * col1 * + col2 AS col0 FROM tab1 WHERE ( - col0 ) IS NULL @@ -34633,8 +35006,15 @@ SELECT + col0 * col2 * + col0 * - col0 FROM tab0 cor0 # Datafusion - Expected - 7 # Datafusion - Expected - -58 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 AS col2, 7 AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +7 +7 +7 query I rowsort label-5708 SELECT DISTINCT COUNT ( DISTINCT + ( + col2 ) ) * + MIN ( DISTINCT + col0 ) AS col1 FROM tab1 @@ -35889,8 +36269,11 @@ SELECT - + ( + + 11 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(52\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, 52 - COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +-3 +49 query II rowsort SELECT + - col2 AS col1, col2 AS col2 FROM tab1 AS cor0 @@ -36085,8 +36468,11 @@ SELECT col0 * - ( + col0 ) * + col0 - + - col0 FROM tab0 AS cor0 # 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 "min\(\(\- cor0\.col1\)\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( - + col1 ) AS col2, 68 col2 FROM tab0 AS cor0 +---- +-81 +68 query I rowsort SELECT DISTINCT + col1 + + ( col2 ) AS col1 FROM tab0 AS cor0 @@ -36174,8 +36560,15 @@ SELECT + + MIN ( ALL - col1 ) AS col0 FROM tab2 cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -5369 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- Int64\(59\)\) AS col1" at position 0 and "Int64\(\-98\) \- \(\- Int64\(51\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 * + ( - + 59 ) col1, - 98 - - ( + + 51 ) AS col1 FROM tab1 AS cor0 +---- +-3009 +-47 +-47 +-47 +-5015 +-5369 query I rowsort SELECT + col1 * - - col2 FROM tab2 @@ -36646,8 +37039,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 44 < + col2 # Datafusion - Expected - 46 # Datafusion - Expected - 48 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "tab2\.col2 \+ tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 AS col1, col2 + col2 AS col1 FROM tab2 +---- +116 +46 +48 +48 +48 +80 query III rowsort SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND + 98 @@ -36683,8 +37083,15 @@ SELECT ALL - COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - 61 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 61 AS col0, - col0 AS col0 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +61 +61 +61 query I rowsort label-6041 SELECT SUM ( col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL @@ -37662,8 +38069,15 @@ SELECT + ( - 39 ) * 6 + - col2 - - col0 + col1 * - + col0 * - 93 * - ( + col1 ) # Datafusion - Expected - -67 # Datafusion - Expected - 77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col0, - col1 col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +51 +67 +77 query I rowsort label-6206 SELECT + + 98 / - 27 AS col2 FROM tab0 AS cor0 @@ -37936,14 +38350,24 @@ SELECT ALL SUM ( - col2 ) AS col2 FROM tab0 WHERE + col0 IS NOT NULL # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, + col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1168 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(cor0\.col2\) \* Int64\(\-19\) \* Int64\(17\) \+ sum\(\(\- cor0\.col0\)\) AS col0" at position 0 and "Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( + col2 ) * - 19 * + + 17 + + SUM ( - col0 ) AS col0, 45 col0 FROM tab0 AS cor0 +---- +-1168 +45 query I rowsort SELECT DISTINCT col0 + + - col0 + - - col1 FROM tab2 cor0 @@ -37975,8 +38399,11 @@ SELECT + 56 * col2 + + - col1 + col1 + - 24 / + 30 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( * ) + - 32 AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +-29 +3 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -39092,8 +39519,15 @@ SELECT - col2 + + 92 AS col0 FROM tab0 # Datafusion - Expected - -47 # Datafusion - Expected - 93 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 93 AS col0, - col2 AS col0 FROM tab0 +---- +-10 +-47 +-99 +93 +93 +93 query II rowsort SELECT ALL + col1, col2 AS col0 FROM tab2 cor0 @@ -40924,8 +41358,15 @@ NULL # Datafusion - Expected - -12 # Datafusion - Expected - 5025 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( col1 ) * - col0 AS col2, - 12 AS col2 FROM tab2 cor0 +---- +-12 +-12 +-12 +2346 +4928 +5025 query II rowsort SELECT ALL 5, + col1 - 11 AS col2 FROM tab1 AS cor0 @@ -40963,8 +41404,15 @@ SELECT COUNT ( * ) / ( + COUNT ( * ) ) FROM tab2 # Datafusion - Expected - 89 # Datafusion - Expected - 5850 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \* \(\- tab2\.col0\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 78 * + - col0 AS col2, 89 AS col2 FROM tab2 +---- +3588 +4992 +5850 +89 +89 +89 query I rowsort label-6748 SELECT ALL - SUM ( ALL + 19 ) AS col2 FROM tab1 cor0 WHERE 69 IN ( + 75, 68 * col1 / col0, + CAST ( NULL AS FLOAT8 ) ) @@ -41000,8 +41448,15 @@ SELECT ALL COUNT ( * ) / + 86 FROM tab0 # Datafusion - Expected - -68 # Datafusion - Expected - 96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col0, - col2 AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +59 +68 +96 query I rowsort SELECT - col2 * - - col2 FROM tab0 AS cor0 WHERE NULL = NULL @@ -41250,8 +41705,15 @@ SELECT DISTINCT 26, CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 20 # Datafusion - Expected - 61446 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* Int64\(77\) \* Int64\(38\) AS col0" at position 0 and "Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( col1 ) * + + 77 * 38 AS col0, + 20 AS col0 FROM tab0 +---- +20 +20 +20 +237006 +2926 +61446 query I rowsort label-6792 SELECT + + 92 * - + 27 + 63 / col0 FROM tab0 AS cor0 @@ -41361,8 +41823,11 @@ SELECT ( - 27 ) + + col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 56 AS col2, COUNT ( * ) AS col2 FROM tab0 +---- +-56 +3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 @@ -41371,8 +41836,15 @@ SELECT - 56 AS col2, COUNT ( * ) AS col2 FROM tab0 # Datafusion - Expected - -29 # Datafusion - Expected - 29 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col2" at position 0 and "Int64\(29\) \+ \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 29 AS col2, ( 29 ) + - col2 col2 FROM tab2 +---- +-11 +-29 +29 +29 +29 +6 query I rowsort label-6811 SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - col2 * col2 + 49 FROM tab0 WHERE NOT NULL BETWEEN + - 96 AND NULL @@ -42029,8 +42501,15 @@ SELECT DISTINCT - COUNT ( + 10 ) FROM tab0 # Datafusion - Expected - -87 # 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 "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 21 AS col0, - col0 AS col0 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +21 +21 +21 query I rowsort label-6918 SELECT - + COUNT ( ALL - - col1 ) AS col2 FROM tab1 AS cor0 @@ -42434,8 +42913,15 @@ SELECT ALL - col0 AS col2, - ( + col1 ) * - col2 + + 32 + col2 FROM tab0 # Datafusion - Expected - 73 # Datafusion - Expected - 5 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ Int64\(52\) / Int64\(83\) AS col0" at position 0 and "tab1\.col2 \+ \(\- Int64\(\-5\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + + 52 / 83 AS col0, col2 + - - 5 AS col0 FROM tab1 +---- +101 +14 +47 +5 +64 +73 query I rowsort SELECT DISTINCT + col0 * - + col1 AS col1 FROM tab2 @@ -42901,8 +43387,15 @@ SELECT + col2 * - - 89 AS col1 FROM tab2 # Datafusion - Expected - 85 # Datafusion - Expected - -96 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(96\)\) AS Int32\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - + 96 AS INTEGER ) col2, col0 AS col2 FROM tab1 +---- +-96 +-96 +-96 +51 +85 +91 query II rowsort label-7056 SELECT + CAST ( - + 36 AS INTEGER ), + ( + col1 ) AS col1 FROM tab1 @@ -44217,8 +44710,15 @@ SELECT - - col1, CAST ( + 49 AS INTEGER ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 90 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90 AS col2, col1 col2 FROM tab0 WHERE col0 >= - 37 +---- +1 +21 +81 +90 +90 +90 query I rowsort SELECT - - 81 + - col2 AS col0 FROM tab2 WHERE + + 56 + - - 27 IS NULL @@ -44572,8 +45072,15 @@ SELECT ALL - ( + COUNT ( * ) ) - - 23 FROM tab0 AS cor0 # Datafusion - Expected - -5762 # Datafusion - Expected - -53912 # Datafusion - Expected - -4386 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \* tab2\.col2 \* \(\- \(\- tab2\.col0\)\) \+ tab2\.col0 AS col2" at position 0 and "Int64\(\-86\) \* tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * col2 * - - col0 + + col0 col2, - 86 * col1 AS col2 FROM tab2 +---- +-197056 +-291375 +-4386 +-53912 +-5762 +-6622 query I rowsort SELECT 38 + - + col1 FROM tab2 @@ -45081,8 +45588,15 @@ SELECT DISTINCT + + ( + col0 ) * + 33 col0, + 43 FROM tab2 AS cor0 # Datafusion - Expected - 51 # Datafusion - Expected - -458 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col0 \+ cor0\.col1 \+ \(\- Int64\(\-25\)\) \* Int64\(65\) \* Int64\(\-3\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 * col0 + + + col1 + - - 25 * + + 65 * - 3 AS col0, + ( + col1 ) AS col0 FROM tab2 AS cor0 +---- +-2238 +-3766 +-458 +51 +67 +77 query I rowsort label-7404 SELECT CAST ( - - 60 AS INTEGER ) AS col0 FROM tab1 @@ -45793,8 +46307,11 @@ SELECT + - 38 / + col2 + + + 2 - col0 + col0 AS col2 FROM tab2 WHERE NOT NULL IS # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "max\(Int64\(\-19\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 11 AS col1, + MAX ( ALL - 19 ) AS col1 FROM tab1 +---- +-19 +11 query I rowsort label-7526 SELECT SUM ( + - 49 ) AS col1 FROM tab0 @@ -46188,8 +46705,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) - + 44 AS col2, 19 AS col2 FROM tab0 +---- +-47 +19 query III rowsort SELECT * FROM tab2 cor0 WHERE NOT - 46 + - + ( + + col2 ) IS NULL @@ -46438,8 +46958,15 @@ SELECT col1 + - col1 * - - col2 AS col0 FROM tab1 # Datafusion - Expected - -64 # Datafusion - Expected - NULL # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* tab2\.col0 \+ tab2\.col1 \+ tab2\.col2 \- CAST\(NULL AS Float64\) AS col2" at position 0 and "\(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) * + col0 + col1 + col2 - + CAST ( NULL AS FLOAT8 ) col2, - col0 col2 FROM tab2 +---- +-46 +-64 +-75 +NULL +NULL +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 @@ -46448,8 +46975,15 @@ SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) * + col0 + col1 + col2 - + CAST ( # Datafusion - Expected - -5042 # Datafusion - Expected - 97 # Datafusion - Expected - -6224 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col1" at position 0 and "Int64\(19\) \+ \(\- tab1\.col2\) \+ Int64\(13\) \- tab1\.col2 \* tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 97 AS col1, 19 + - col2 + 13 - col2 * + + col0 AS col1 FROM tab1 +---- +-4960 +-5042 +-6224 +97 +97 +97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 @@ -46458,8 +46992,15 @@ SELECT ALL 97 AS col1, 19 + - col2 + 13 - col2 * + + col0 AS col1 FROM tab1 # Datafusion - Expected - -44 # Datafusion - Expected - 5 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "\(\- tab1\.col0\) \+ tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, - col0 + col1 col2 FROM tab1 +---- +-37 +-44 +-80 +14 +47 +5 query I rowsort label-7636 SELECT ALL - MIN ( DISTINCT + + col0 ) - + + 46 FROM tab1 @@ -46685,8 +47226,11 @@ SELECT DISTINCT 66 * COUNT ( * ) AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3427 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \* \(\- Int64\(\-88\)\) \+ Int64\(5\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 39 * - - 88 + + 5 AS col0, COUNT ( * ) AS col0 FROM tab2 cor0 +---- +-3427 +3 query I rowsort label-7677 SELECT ALL + MAX ( - 48 ) FROM tab1 cor0 @@ -47585,8 +48129,15 @@ SELECT DISTINCT + col1 * + 12 * col1 FROM tab2 # Datafusion - Expected - 0 # 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 "tab0\.col2 / Int64\(\-78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 40 AS col0, + col2 / - 78 AS col0 FROM tab0 +---- +-1 +-40 +-40 +-40 +0 +0 query II rowsort SELECT + 13 AS col0, - 88 FROM tab2 @@ -48067,8 +48618,15 @@ SELECT ALL 53 * + - col1 * + 40 FROM tab1 # Datafusion - Expected - -87 # Datafusion - Expected - 3886 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* tab2\.col2 AS col1" at position 0 and "Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 * + col2 AS col1, - 87 AS col1 FROM tab2 +---- +-87 +-87 +-87 +1173 +3080 +3886 query II rowsort SELECT DISTINCT ( + col1 ) AS col2, - col2 + col2 * col2 * + + col1 FROM tab1 @@ -48783,8 +49341,15 @@ SELECT ( + col2 ) FROM tab2 WHERE NOT col0 = ( - - 7 * - 48 + - 9 ) # Datafusion - Expected - 75 # Datafusion - Expected - -77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col2, col0 AS col2 FROM tab2 +---- +-51 +-67 +-77 +46 +64 +75 query I rowsort SELECT - 34 + - 33 + - 16 AS col1 FROM tab2 cor0 @@ -49553,8 +50118,15 @@ SELECT DISTINCT - - 49 + + col0 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col1, col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT + - col2 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN 40 * - - col0 * col1 AND + - 53 + 98 @@ -50294,8 +50866,15 @@ SELECT DISTINCT col0 * + + col1 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query II rowsort label-8265 SELECT col2 * - CAST ( col2 AS INTEGER ) AS col0, + 12 FROM tab1 @@ -50496,8 +51075,15 @@ SELECT DISTINCT + - 87 col2 FROM tab2 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - NULL # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, - col2 col2 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +NULL +NULL +NULL query I rowsort SELECT ALL 95 col2 FROM tab1 AS cor0 @@ -50518,8 +51104,15 @@ SELECT + SUM ( 32 ) FROM tab0 AS cor0 # Datafusion - Expected - -53 # Datafusion - Expected - 18 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "cor0\.col1 \+ Int64\(\-67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 AS col1, + col1 + - 67 AS col1 FROM tab1 AS cor0 +---- +-20 +-53 +-62 +18 +18 +18 query I rowsort label-8300 SELECT ALL + CAST ( + + 77 AS INTEGER ) FROM tab2 AS cor0 @@ -50700,8 +51293,9 @@ SELECT DISTINCT - - 41 + 53 * + - 89 col1 FROM tab2 cor0 WHERE ( NULL ) NOT BETW ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 FROM tab0 AS cor0 WHERE NOT col1 + col2 NOT BETWEEN NULL AND col2 +---- query I rowsort label-8333 SELECT - col1 / - - CAST ( + - col1 AS INTEGER ) AS col2 FROM tab2 @@ -51886,8 +52480,15 @@ SELECT + + col2 * - 86 + - col2 FROM tab1 AS cor0 # Datafusion - Expected - 55 # Datafusion - Expected - -81 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 AS col1, 55 AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +55 +55 +55 query II rowsort label-8536 SELECT + col0, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 @@ -52044,8 +52645,15 @@ SELECT 91 col2, 53 FROM tab2 AS cor0 WHERE NOT ( NOT NULL BETWEEN - ( - - col1 ) # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 col1, + col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query II rowsort label-8563 SELECT DISTINCT 96 * - ( - 79 ) AS col0, + 20 * COUNT ( * ) AS col1 FROM tab1 @@ -52383,8 +52991,15 @@ SELECT DISTINCT + - col1 AS col0 FROM tab2 WHERE NOT NULL IS NULL # Datafusion - Expected - 296 # Datafusion - Expected - -826 # Datafusion - Expected - 1344 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* Int64\(\-59\) AS col1" at position 0 and "tab1\.col0 / Int64\(61\) \+ tab1\.col1 \* tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 * - 59 AS col1, col0 / + 61 + + col1 * col2 AS col1 FROM tab1 +---- +-2773 +-295 +-826 +1344 +296 +3197 query I rowsort SELECT col1 * + 94 * col2 * col1 * + - 12 FROM tab2 WHERE NULL IS NULL @@ -52520,8 +53135,11 @@ SELECT 23 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 9 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, - COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +-3 +3 query I rowsort SELECT ALL - + 62 AS col2 FROM tab0 cor0 @@ -52748,8 +53366,15 @@ SELECT - - col2 AS col2 FROM tab0 AS cor0 WHERE - col2 IS NULL # Datafusion - Expected - -425 # Datafusion - Expected - 4139 # Datafusion - Expected - -37553 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* Int64\(90\) \+ \(\- tab1\.col0\) AS col2" at position 0 and "\(\- tab1\.col1\) \* Int64\(17\) \* tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * + 90 + + - col0 col2, ( - ( col1 ) ) * 17 * + col1 AS col2 FROM tab1 +---- +-3332 +-37553 +-425 +1209 +365 +4139 query II rowsort label-8673 SELECT COUNT ( + - col0 ) AS col0, - 7 AS col2 FROM tab0 WHERE - 57 IS NOT NULL @@ -53179,8 +53804,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, - 33 col0 FROM tab0 AS cor0 +---- +-3 +-33 query I rowsort SELECT DISTINCT col2 * + - col1 AS col1 FROM tab2 @@ -53267,8 +53895,11 @@ SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= 57 - + col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 89 AS col0, + 96 AS col0 FROM tab0 AS cor0 +---- +89 +96 query I rowsort SELECT 53 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 @@ -53666,8 +54297,15 @@ SELECT DISTINCT - col0 AS col0, + col1 * + col0 AS col1 FROM tab2 # Datafusion - Expected - 40 # Datafusion - Expected - -44 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 44 col1, col2 AS col1 FROM tab2 +---- +-44 +-44 +-44 +23 +40 +58 query II rowsort SELECT DISTINCT 56, 30 AS col1 FROM tab0 @@ -54414,8 +55052,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - -308 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-66\) AS Int32\) AS col0" at position 0 and "Int64\(\-11\) \* Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( - 66 AS INTEGER ) AS col0, - 11 * + 28 AS col0 FROM tab1 +---- +-308 +-66 query III rowsort label-8951 SELECT DISTINCT * FROM tab2 WHERE ( + CAST ( NULL AS FLOAT8 ) ) - + - col2 IS NULL @@ -55026,8 +55667,15 @@ SELECT DISTINCT + 13 * - 80 FROM tab0 AS cor0 # Datafusion - Expected - 354051 # Datafusion - Expected - -22 # Datafusion - Expected - 9207 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col1" at position 0 and "Int64\(93\) \* cor0\.col2 \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 22 AS col1, 93 * col2 * + col1 col1 FROM tab0 AS cor0 +---- +-22 +-22 +-22 +19530 +354051 +9207 query I rowsort label-9055 SELECT DISTINCT + 89 * + COUNT ( * ) * + COUNT ( * ) FROM tab2 @@ -55076,8 +55724,15 @@ SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT + 46 IS NOT NULL # Datafusion - Expected - 40 # Datafusion - Expected - -5025 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * - col1 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +-2346 +-4928 +-5025 +23 +40 +58 query I rowsort SELECT + 11 + + - col0 col0 FROM tab0 @@ -55229,8 +55884,11 @@ 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 "Int64\(\-11\) AS col2" at position 0 and "Int64\(\-73\) \* min\(tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 11 AS col2, - 73 * + MIN ( + col1 ) col2 FROM tab0 WHERE NOT + 5 NOT BETWEEN - col2 AND NULL +---- +-11 +NULL query I rowsort label-9089 SELECT + COUNT ( * ) * - - COUNT ( * ) FROM tab2 @@ -55296,8 +55954,15 @@ SELECT DISTINCT - col0 + + ( 86 ) * - col0 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 2950 # Datafusion - Expected - 91 # Datafusion - Expected - 3400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col2 \* Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 AS col2, col2 * 50 AS col2 FROM tab1 AS cor0 +---- +2950 +3400 +4800 +51 +85 +91 query I rowsort label-9100 SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> + CAST ( - col1 AS INTEGER ) + CAST ( NULL AS INTEGER ) @@ -55785,8 +56450,11 @@ SELECT ALL ( + - 73 ) * + + COUNT ( * ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(29\)\)\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - COUNT ( + ( 29 ) ) AS col2, 7 AS col2 FROM tab1 AS cor0 +---- +-3 +7 query I rowsort label-9182 SELECT - + COUNT ( * ) * 77 AS col1 FROM tab1 AS cor0 @@ -57188,8 +57856,12 @@ SELECT + - 42 * COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Expected - -2 # Datafusion - Expected - 28 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(2\)\) AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - + 2 AS col1, 28 AS col1, + 33 FROM tab0 cor0 +---- +-2 +28 +33 query I rowsort SELECT DISTINCT - + 85 * - col2 FROM tab0 AS cor0 WHERE NOT + col1 + + col1 * + - col2 >= - col0 @@ -57554,8 +58226,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( - 21 AS INTEGER ) / + + 68 * col1 * # Datafusion - Expected - 15249 # Datafusion - Expected - 24 # Datafusion - Expected - 40040 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(13\) \* cor0\.col1 \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + - + col2 AS col1, 13 * + + col1 * + col2 AS col1 FROM tab2 cor0 +---- +15249 +17 +23 +24 +40040 +50518 query I rowsort SELECT DISTINCT - - col1 * - col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL @@ -57573,8 +58252,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( DISTINCT col2 ) * - COUNT ( * ) AS col2, 13 AS col2 FROM tab2 cor0 +---- +-69 +13 query I rowsort label-9492 SELECT ALL + ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0 @@ -57660,8 +58342,15 @@ SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + - col2, + col2 ) # Datafusion - Expected - 94 # Datafusion - Expected - 65 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ \(\- \(\- tab1\.col1\)\) \+ tab1\.col1 \+ CAST\(Int64\(8\) AS Int32\) \* tab1\.col1 \- Int64\(70\) AS col2" at position 0 and "tab1\.col1 \+ tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 + - - col1 + + ( col1 ) + ( CAST ( 8 AS INTEGER ) ) * col1 - 70 AS col2, + col1 + + col1 AS col2 FROM tab1 +---- +10 +121 +28 +491 +65 +94 query II rowsort label-9507 SELECT ALL COUNT ( + 59 ) AS col2, 13 FROM tab0 @@ -58630,8 +59319,15 @@ SELECT - ( + 50 ) FROM tab0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-9660 SELECT + COUNT ( + col0 ) - + 72 / + 30 FROM tab0 AS cor0 WHERE col1 IS NULL @@ -59051,8 +59747,15 @@ SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL NOT IN ( ( # Datafusion - Expected - 0 # Datafusion - Expected - 54 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ Int64\(\-45\) AS col1" at position 0 and "Int64\(\-1\) / cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 + - 45 AS col1, - 1 / + col2 AS col1 FROM tab0 AS cor0 +---- +-35 +0 +0 +0 +2 +54 query I rowsort SELECT - - 19 * - + col1 * col0 + + col0 + + col0 FROM tab2 AS cor0 @@ -59120,8 +59823,11 @@ SELECT * FROM tab2 AS cor0 WHERE 43 / + + 28 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-67\) AS col1" at position 0 and "min\(\(\- tab2\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 67 AS col1, MIN ( + - col1 ) AS col1 FROM tab2 +---- +-77 +NULL query I rowsort SELECT DISTINCT - col1 * + + 3 FROM tab2 @@ -59474,8 +60180,15 @@ SELECT ALL ( - 60 ) FROM tab1 # Datafusion - Expected - -21 # Datafusion - Expected - 81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "\(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, - col1 AS col2 FROM tab0 +---- +-1 +-21 +-81 +1 +21 +81 query I rowsort label-9798 SELECT DISTINCT - ( + SUM ( ALL + + col0 ) ) AS col0 FROM tab1 WHERE NULL <= + col2 @@ -60231,8 +60944,15 @@ SELECT DISTINCT 73 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - -67 # Datafusion - Expected - NULL # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col0\) \+ CAST\(NULL AS Int32\) \+ cor0\.col0 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 * - col0 + CAST ( NULL AS INTEGER ) + + col0 AS col0, - col1 AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +NULL +NULL +NULL query I rowsort SELECT DISTINCT 34 + + 72 AS col1 FROM tab0 AS cor0 @@ -60551,8 +61271,15 @@ SELECT ALL + 4 * - 13 FROM tab1 # Datafusion - Expected - 46 # Datafusion - Expected - 2579 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* Int64\(62\) \- \(\- cor0\.col2\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 40 * + 62 - - + col2 AS col0, 46 col0 FROM tab0 AS cor0 +---- +2490 +2527 +2579 +46 +46 +46 query I rowsort label-9985 SELECT ALL + - ( + MIN ( col1 ) ) col1 FROM tab1 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_47.slt b/data/sqlite/random/aggregates/slt_good_47.slt index cb2368e..f111dc7 100644 --- a/data/sqlite/random/aggregates/slt_good_47.slt +++ b/data/sqlite/random/aggregates/slt_good_47.slt @@ -48,8 +48,15 @@ SELECT - + col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL # Datafusion - Expected - -1974 # Datafusion - Expected - -171 # Datafusion - Expected - -588 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ Int64\(\-75\) AS col0" at position 0 and "Int64\(42\) \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 + - 75 AS col0, + 42 * - col1 AS col0 FROM tab1 cor0 +---- +-134 +-143 +-171 +-1974 +-210 +-588 query I rowsort SELECT ALL col2 - - - 3 FROM tab2 AS cor0 @@ -789,8 +796,10 @@ SELECT 28 AS col0 FROM tab1 cor0 WHERE NULL BETWEEN + col1 AND - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 78cdd629d87f38c72a142d486cd105c5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* \(\- tab1\.col2\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT col1 * + - col2 AS col2, 75 AS col2, + ( - + CAST ( - - col1 AS INTEGER ) ) AS col2 FROM tab1 +---- +9 values hashing to 49a9781b9baa09ba36d2d95ffe0c1d6d query II rowsort SELECT + col2 * + 84 AS col0, - 42 + - 16 FROM tab2 @@ -3467,8 +3476,15 @@ SELECT DISTINCT COUNT ( * ) / + + MAX ( DISTINCT - col2 ) AS col1, - SUM ( ALL - # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col1, col1 col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query II rowsort SELECT ALL - col2 AS col2, 95 col1 FROM tab0 AS cor0 @@ -3709,8 +3725,11 @@ SELECT ALL - 8 * + col1 * - + 8 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -227 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(cor0\.col0\)\) AS col2" at position 0 and "Int64\(\-99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( ALL + col0 ) AS col2, + ( - 99 ) col2 FROM tab1 AS cor0 +---- +-227 +-99 query I rowsort SELECT ALL - col0 FROM tab1 WHERE + - 63 IS NOT NULL @@ -5201,8 +5220,11 @@ SELECT - col1 * + + 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 col2" at position 0 and "count\(\(\- tab2\.col0\)\) \* Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 1 AS col2, COUNT ( ALL - + col0 ) * + 0 AS col2 FROM tab2 WHERE + col1 IS NULL +---- +0 +1 query I rowsort label-846 SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT + col1 NOT IN ( col0 ) @@ -5376,8 +5398,15 @@ SELECT 2 + - col2 AS col1 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\)" at position 0 and "\(\- CAST\(NULL AS Float64\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - CAST ( NULL AS INTEGER ), - CAST ( NULL AS FLOAT8 ) FROM tab2 cor0 +---- +NULL +NULL +NULL +NULL +NULL +NULL query III rowsort SELECT * FROM tab0 WHERE + 18 >= - + col0 @@ -6190,8 +6219,15 @@ SELECT * FROM tab2 WHERE NOT NULL IN ( col0, - ( + CAST ( - col1 AS INTEGER ) ), # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, col0 AS col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-1006 SELECT - CAST ( 8 AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 @@ -6417,8 +6453,15 @@ SELECT ALL - col0 / CAST ( + 82 AS INTEGER ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 291450 # Datafusion - Expected - 72 # Datafusion - Expected - 53958 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col2" at position 0 and "tab2\.col2 \* tab2\.col0 \* tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 72 col2, col2 * col0 * col1 AS col2 FROM tab2 +---- +197120 +291450 +53958 +72 +72 +72 query I rowsort SELECT - 68 FROM tab2 WHERE NOT NULL = NULL @@ -6476,8 +6519,15 @@ SELECT - COUNT ( * ) * - COUNT ( * ) FROM tab1 # Datafusion - Expected - -59 # Datafusion - Expected - -8918 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(98\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col0 * 98 AS col2, - col2 AS col2 FROM tab1 AS cor0 +---- +-4998 +-59 +-68 +-8330 +-8918 +-96 query I rowsort label-1053 SELECT DISTINCT 85 * + COUNT ( * ) FROM tab1 AS cor0 @@ -6543,8 +6593,15 @@ SELECT * FROM tab0 WHERE + 69 < 55 # Datafusion - Expected - -4437 # Datafusion - Expected - 98 # Datafusion - Expected - -4437 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "Int64\(\-87\) \* Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 col0, - 87 * + 51 AS col0 FROM tab1 +---- +-4437 +-4437 +-4437 +98 +98 +98 query III rowsort SELECT * FROM tab2 WHERE ( + col2 - - col0 ) > NULL @@ -6577,8 +6634,15 @@ SELECT col2 AS col0, - ( - 47 ) col1 FROM tab2 # Datafusion - Expected - -395 # Datafusion - Expected - 91 # Datafusion - Expected - -3713 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "\(\- tab1\.col1\) \* Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, - col1 * 79 AS col1 FROM tab1 WHERE NOT - col1 IS NULL +---- +-1106 +-3713 +-395 +51 +85 +91 query III rowsort SELECT * FROM tab2 WHERE NULL NOT BETWEEN col2 / + col2 + - col1 AND ( - + col1 ) @@ -6982,8 +7046,15 @@ SELECT ALL ( - 47 ) AS col1 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - -96 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, col1 col0 FROM tab1 +---- +-59 +-68 +-96 +14 +47 +5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 @@ -6992,8 +7063,15 @@ SELECT ALL - col2 AS col0, col1 col0 FROM tab1 # Datafusion - Expected - 10 # Datafusion - Expected - -81 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + col1 ) AS col0, + col2 AS col0 FROM tab0 +---- +-1 +-21 +-81 +10 +47 +99 query I rowsort label-1137 SELECT COUNT ( * ) * + MIN ( ALL col0 ) - + COUNT ( ALL + 50 ) AS col2 FROM tab1 @@ -7348,8 +7426,15 @@ SELECT + + col0 * + 57 FROM tab1 AS cor0 # Datafusion - Expected - -5695 # Datafusion - Expected - 4914 # Datafusion - Expected - -6097 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) \* \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(67\) \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 54 * + - col0 AS col1, 67 * - col0 AS col1 FROM tab1 AS cor0 +---- +-3417 +-5695 +-6097 +2754 +4590 +4914 query I rowsort SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL = + col1 * - - col0 + - 76 @@ -7376,8 +7461,15 @@ SELECT ALL + col2 * - 7 col1 FROM tab1 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 22 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 22 AS col2, col0 AS col2 FROM tab0 AS cor0 +---- +15 +22 +22 +22 +87 +97 query II rowsort SELECT - ( + col2 ) AS col0, - col2 FROM tab2 AS cor0 @@ -7425,8 +7517,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \* count\(tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MIN ( - col1 ) AS col2, - COUNT ( * ) * + COUNT ( ALL col0 ) col2 FROM tab0 +---- +-81 +-9 query I rowsort SELECT ALL col0 * + + 72 FROM tab2 @@ -8592,8 +8687,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( SUM ( DISTINCT + - 53 ) ) AS col2, + COUNT ( * ) * + + ( - COUNT ( * ) ) AS col2 FROM tab1 +---- +-9 +53 query I rowsort label-1398 SELECT MIN ( ALL - - col2 ) FROM tab0 @@ -9277,8 +9375,15 @@ NULL # Datafusion - Expected - 4928 # Datafusion - Expected - -40 # Datafusion - Expected - 5025 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col0" at position 0 and "cor0\.col1 \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 40 AS col0, + ( col1 ) * col0 AS col0 FROM tab2 AS cor0 +---- +-40 +-40 +-40 +2346 +4928 +5025 query II rowsort SELECT + col2 AS col0, col2 + + col0 FROM tab2 AS cor0 @@ -9669,8 +9774,15 @@ SELECT - + MIN ( DISTINCT + + col2 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - 732 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(12\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 * 12 AS col0, - col1 AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +732 +732 +732 query I rowsort label-1570 SELECT + - SUM ( - col0 ) FROM tab0 AS cor0 @@ -9684,8 +9796,15 @@ SELECT + - SUM ( - col0 ) FROM tab0 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - -42 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 42 AS col0, col1 AS col0 FROM tab0 +---- +-42 +-42 +-42 +1 +21 +81 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) >= col1 + ( + col0 ) @@ -10543,8 +10662,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 / + + 72 BETWEEN - col1 * - - ( + # Datafusion - Expected - 50 # Datafusion - Expected - 77 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, + 50 AS col2 FROM tab2 +---- +50 +50 +50 +51 +67 +77 query I rowsort SELECT + ( + 79 ) FROM tab0 @@ -11317,8 +11443,11 @@ 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\(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\. +query II valuesort SELECT - ( COUNT ( * ) ) * 93 AS col0, - COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +-279 +-3 query I rowsort SELECT ALL 27 * col1 - - - 99 * - + 65 FROM tab1 AS cor0 @@ -12162,8 +12291,15 @@ SELECT - 86 / - + col1 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -435 # Datafusion - Expected - 99 # Datafusion - Expected - -2813 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* tab0\.col2 AS col0" at position 0 and "Int64\(29\) \* \(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 * + col2 AS col0, + 29 * - ( col0 ) AS col0 FROM tab0 +---- +-2523 +-2813 +-435 +210 +3807 +99 query I rowsort SELECT 31 * + col0 AS col1 FROM tab1 AS cor0 @@ -12536,8 +12672,11 @@ SELECT + col0 * + 20 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -121 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT \(\- tab2\.col2\)\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( DISTINCT - col2 ) AS col0, + 73 AS col0 FROM tab2 +---- +-121 +73 query II rowsort SELECT - col2, - col0 AS col0 FROM tab2 @@ -13134,8 +13273,15 @@ SELECT DISTINCT ( 90 ) * - COUNT ( * ) col1 FROM tab0 # Datafusion - Expected - 5224 # Datafusion - Expected - 75 # Datafusion - Expected - 6133 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "tab2\.col2 \+ Int64\(81\) \* tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col2, col2 + 81 * + col0 AS col2 FROM tab2 +---- +3749 +46 +5224 +6133 +64 +75 query II rowsort SELECT + - col1 AS col0, + col2 FROM tab2 WHERE NOT NULL IS NULL @@ -13335,8 +13481,10 @@ SELECT + col1, ( + 29 ) AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to af2fa0e2b4afe8f7ec86045eaf543314 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col2" at position 0 and "cor0\.col0 \+ Int64\(96\) \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - 17 col2, + col0 + + 96 * + col0 AS col2, - col0 AS col2 FROM tab0 cor0 +---- +9 values hashing to 28abbc3454f55b439b7b419b80cc90f0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 @@ -14501,8 +14649,15 @@ SELECT + col2 FROM tab1 WHERE NOT + 34 + + col1 IS NOT NULL # Datafusion - Expected - -37 # Datafusion - Expected - 98098 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* \(\- tab2\.col1\) \* Int64\(\-26\) AS col0" at position 0 and "Int64\(\-37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 49 * - col1 * - 26 AS col0, - 37 col0 FROM tab2 +---- +-37 +-37 +-37 +64974 +85358 +98098 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE + 21 IS NOT NULL @@ -14709,8 +14864,15 @@ SELECT ALL col1 col2, ( - col1 ) * - col1 AS col0 FROM tab2 # Datafusion - Expected - -6716 # Datafusion - Expected - 733708 # Datafusion - Expected - -6716 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \* \(\- CAST\(\(\- tab0\.col0\) AS Int32\)\) \* Int64\(85\) \+ \(\- tab0\.col0\) AS col0" at position 0 and "Int64\(92\) \* Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 89 * - + CAST ( + - ( col0 ) AS INTEGER ) * + + ( + + 85 ) + - col0 AS col0, 92 * + - 73 AS col0 FROM tab0 +---- +-6716 +-6716 +-6716 +113460 +658068 +733708 query I rowsort SELECT - col2 + + 89 FROM tab2 AS cor0 @@ -15331,8 +15493,11 @@ SELECT + col2 * - - col0 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -5742 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "sum\(\(\- cor0\.col1\)\) \* \(\- Int64\(\-29\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col2, SUM ( - col1 ) * - - 29 * + COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +-3 +-5742 query I rowsort label-2492 SELECT ALL - 15 * - 19 * - COUNT ( * ) FROM tab0 AS cor0 @@ -15728,8 +15893,15 @@ SELECT ALL - ( + col1 ) * - col2 - col1 + - col1 FROM tab1 WHERE NOT - + 19 + - # Datafusion - Expected - -14 # Datafusion - Expected - -46 # Datafusion - Expected - -145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col1" at position 0 and "cor0\.col0 / Int64\(40\) \* \(\- cor0\.col0\) \- \(\- Int64\(37\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 46 AS col1, + col0 / 40 * - + col0 - - + 37 AS col1 FROM tab1 AS cor0 +---- +-133 +-14 +-145 +-46 +-46 +-46 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 @@ -15738,8 +15910,15 @@ SELECT DISTINCT - 46 AS col1, + col0 / 40 * - + col0 - - + 37 AS col1 FROM tab1 # Datafusion - Expected - -94 # Datafusion - Expected - -5 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "\(\- cor0\.col1\) \+ \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, ( - col1 ) + - col1 AS col2 FROM tab1 AS cor0 +---- +-10 +-14 +-28 +-47 +-5 +-94 query II rowsort SELECT ALL col2 AS col2, - 86 + col0 FROM tab0 AS cor0 @@ -16262,8 +16441,15 @@ SELECT ALL col1 + + - col0 FROM tab0 # Datafusion - Expected - -78 # Datafusion - Expected - 96 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "Int64\(\-78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, - 78 AS col1 FROM tab1 +---- +-78 +-78 +-78 +59 +68 +96 query I rowsort label-2651 SELECT ALL - - COUNT ( * ) - + 15 FROM tab0 AS cor0 @@ -17520,8 +17706,15 @@ SELECT + 7 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 # Datafusion - Expected - 122 # Datafusion - Expected - 38 # Datafusion - Expected - 132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-38\)\) AS col2" at position 0 and "cor0\.col1 \+ CAST\(Int64\(55\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + ( + - 38 ) AS col2, col1 + + + CAST ( + 55 AS INTEGER ) col2 FROM tab2 AS cor0 +---- +106 +122 +132 +38 +38 +38 query I rowsort label-2861 SELECT ALL - 99 + COUNT ( * ) - 81 AS col1 FROM tab1 AS cor0 @@ -17955,8 +18148,15 @@ SELECT col2 * + 26 AS col0 FROM tab2 cor0 # Datafusion - Expected - 5 # Datafusion - Expected - 91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, col1 AS col2 FROM tab1 cor0 +---- +14 +47 +5 +51 +85 +91 query I rowsort SELECT DISTINCT + + col2 + + 43 FROM tab0 AS cor0 @@ -18754,8 +18954,15 @@ SELECT + 7 * - + col2 AS col0 FROM tab1 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, + col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query III rowsort SELECT ALL * FROM tab2 WHERE NOT + - 37 IS NULL @@ -18897,8 +19104,15 @@ SELECT 3, 23 FROM tab0 WHERE NULL IS NOT NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col0, col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query III rowsort SELECT DISTINCT * FROM tab0 WHERE + col0 + + col1 + 95 IS NULL @@ -19017,8 +19231,11 @@ SELECT col0 AS col2, col0 * - col2 * - col0 * - 49 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col0" at position 0 and "Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 35 AS col0, 62 AS col0 FROM tab2 +---- +35 +62 query III rowsort label-3096 SELECT DISTINCT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) = + + col1 * + ( + 15 ) * col0 / ( - + col1 ) - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * col1 - col2 @@ -19582,8 +19799,15 @@ SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 53 * - + 7 < NULL # Datafusion - Expected - 118 # Datafusion - Expected - -91 # Datafusion - Expected - 136 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 \+ \(\- \(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, col2 + - - col2 AS col1 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +118 +136 +192 query II rowsort SELECT ALL col1 AS col1, - 15 AS col2 FROM tab2 AS cor0 @@ -19916,8 +20140,15 @@ SELECT ALL + 52 * - col2 * - col2 FROM tab1 # Datafusion - Expected - -48 # Datafusion - Expected - 64 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ tab1\.col2 AS col1" at position 0 and "Int64\(\-48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + col2 AS col1, - 48 AS col1 FROM tab1 +---- +-48 +-48 +-48 +110 +115 +64 query I rowsort label-3238 SELECT + SUM ( ALL - CAST ( col0 AS INTEGER ) ) AS col1 FROM tab0 @@ -19952,8 +20183,15 @@ SELECT SUM ( + 20 ) AS col0, CAST ( - CAST ( - 33 AS INTEGER ) AS INTEGER ) * - # Datafusion - Expected - -260362 # Datafusion - Expected - 45 # Datafusion - Expected - -59823 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) \* Int64\(\-15\) AS col2" at position 0 and "tab2\.col2 \* \(\- tab2\.col1\) \* tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 * + - 15 AS col2, col2 * + - ( col1 ) * + col1 AS col2 FROM tab2 +---- +-237160 +-260362 +-59823 +45 +45 +45 query I rowsort label-3244 SELECT ALL - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 @@ -19997,8 +20235,15 @@ SELECT DISTINCT col1 * + col2 - + col1 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "\(\- tab1\.col2\) / CAST\(NULL AS Int32\) \+ Int64\(\-3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, + ( - col2 ) / + + ( + ( CAST ( NULL AS INTEGER ) ) ) + - 3 AS col1 FROM tab1 +---- +51 +85 +91 +NULL +NULL +NULL query I rowsort SELECT ALL col0 * + - col2 - col1 FROM tab1 @@ -20620,8 +20865,15 @@ SELECT ALL + 70 + - + 21 * + COUNT ( * ) + - - SUM ( + col1 ) FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 +---- +15 +87 +97 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 / - ( col0 ) IS NULL @@ -21465,8 +21717,9 @@ SELECT DISTINCT SUM ( 3 ) AS col1 FROM tab0 9 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "tab1\.col2 \* \(\- Int64\(\-80\)\) \- \(\- Int64\(\-41\)\) \+ \(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, + col2 * ( - ( - 80 ) ) - - - 41 + - + col2 AS col0 FROM tab1 WHERE col1 BETWEEN NULL AND ( - 63 ) +---- query I rowsort SELECT + col2 * + col1 / + - col0 + - + col1 FROM tab1 AS cor0 WHERE ( - col2 ) > ( NULL ) @@ -21524,8 +21777,15 @@ SELECT + 2 * - 35 * - col0 * + col1 FROM tab2 # Datafusion - Expected - 150 # Datafusion - Expected - 90 # Datafusion - Expected - 420 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "Int64\(30\) \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90 AS col1, 30 * + col1 AS col1 FROM tab1 AS cor0 +---- +1410 +150 +420 +90 +90 +90 query I rowsort SELECT ALL 4 + 45 FROM tab0 AS cor0 @@ -21822,8 +22082,11 @@ SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + col0 - - + ( - col0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col0" at position 0 and "\(\- min\(DISTINCT \(\- tab0\.col2\)\)\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 col0, - MIN ( DISTINCT - col2 ) * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NULL IS NULL +---- +29 +NULL query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT - 94 IS NULL @@ -22234,8 +22497,15 @@ SELECT - 37 FROM tab2 WHERE col0 + - 94 >= - col1 * + - col2 # Datafusion - Expected - 870 # Datafusion - Expected - 652905 # Datafusion - Expected - 9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* Int64\(\-69\) \* \(\- \(\- tab0\.col2\)\) \+ tab0\.col2 \+ \(\- \(\- tab0\.col2\)\) \* \(\- tab0\.col2\) AS col1" at position 0 and "tab0\.col0 \* tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 * - 69 * ( - - col2 ) + + col2 + - - col2 * - + col2 col1, col0 * col2 AS col1 FROM tab0 +---- +46483 +59940 +652905 +705 +870 +9603 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE col0 - - + 47 IS NOT NULL @@ -22362,8 +22632,15 @@ SELECT DISTINCT - 21 / - 34 AS col0 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - -4 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 4 col0, + col2 AS col0 FROM tab0 +---- +-4 +-4 +-4 +10 +47 +99 query I rowsort SELECT ALL 55 + + 88 FROM tab0, tab0 AS cor0 @@ -22827,8 +23104,15 @@ SELECT ALL * FROM tab2 WHERE - col1 NOT BETWEEN 27 AND - - 43 # Datafusion - Expected - 5251 # Datafusion - Expected - -3196 # Datafusion - Expected - 6052 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \* tab1\.col2 AS col2" at position 0 and "tab1\.col2 \* Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 * col2 AS col2, col2 * + 89 AS col2 FROM tab1 +---- +-1344 +-295 +-3196 +5251 +6052 +8544 query I rowsort SELECT DISTINCT 63 * + col2 FROM tab1 @@ -23036,8 +23320,15 @@ SELECT - + 36 / col1 * + col1 + + col1 FROM tab2 AS cor0 # Datafusion - Expected - -22 # Datafusion - Expected - -714 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(\-22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + - col0 AS col2, - 22 AS col2 FROM tab1 cor0 +---- +-22 +-22 +-22 +-425 +-4277 +-714 query III rowsort SELECT * FROM tab1 cor0 WHERE NOT ( - - 45 ) - col2 = NULL @@ -23539,8 +23830,15 @@ SELECT * FROM tab1 cor0 WHERE ( col0 ) NOT IN ( - col0 ) # Datafusion - Expected - -59 # Datafusion - Expected - 392 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* Int64\(28\) AS col1" at position 0 and "\(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 * 28 AS col1, - col2 AS col1 FROM tab1 +---- +-59 +-68 +-96 +1316 +140 +392 query I rowsort SELECT - - col0 FROM tab2 WHERE NOT col2 IS NOT NULL @@ -24238,8 +24536,15 @@ SELECT - SUM ( + ( col2 ) ) FROM tab1 AS cor0 # Datafusion - Expected - -42 # Datafusion - Expected - -5 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, - 42 AS col0 FROM tab1 AS cor0 +---- +-14 +-42 +-42 +-42 +-47 +-5 query I rowsort SELECT DISTINCT - ( + + col0 ) AS col0 FROM tab0 @@ -25470,8 +25775,15 @@ SELECT + ( - COUNT ( * ) ) * 8 * + 64 FROM tab2 AS cor0 # Datafusion - Expected - 168 # Datafusion - Expected - 59 # Datafusion - Expected - 174 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) / Int64\(81\) \+ Int64\(59\) AS col2" at position 0 and "Int64\(83\) \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 / 81 + + + 59 AS col2, + 83 + col0 AS col2 FROM tab1 AS cor0 +---- +134 +168 +174 +59 +59 +59 query I rowsort label-4164 SELECT ALL + MIN ( ALL - 39 ) / + COUNT ( * ) FROM tab0 AS cor0 @@ -25731,8 +26043,15 @@ SELECT - ( - 83 ), + col1 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 48 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* Int64\(48\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + 48 AS col0, + col2 AS col0 FROM tab0 +---- +10 +1008 +3888 +47 +48 +99 query II rowsort label-4205 SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) AS col2, - 64 AS col1 FROM tab1 @@ -26087,8 +26406,11 @@ SELECT ALL - col0 + - 27 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) >= col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -199 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- cor0\.col0\)\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( ALL - col0 ) AS col2, 87 AS col2 FROM tab0 AS cor0 +---- +-199 +87 query I rowsort SELECT - 41 * - col0 FROM tab0 AS cor0 @@ -26569,8 +26891,15 @@ NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col0, col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-4346 SELECT - MAX ( ALL col2 ) FROM tab0 WHERE + 72 IS NULL @@ -27251,8 +27580,9 @@ SELECT + 14, col0 + col2 AS col0 FROM tab0 97 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab0\.col2 AS Int32\)\) \+ \(\- Int64\(30\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( + col2 AS INTEGER ) + - ( + ( + + 30 ) ) * + ( - + CAST ( NULL AS INTEGER ) ) AS col1, col2 AS col1 FROM tab0 WHERE - col2 - col0 IS NULL +---- query I rowsort label-4459 SELECT DISTINCT + CAST ( - + col1 AS INTEGER ) + + col2 AS col0 FROM tab0 @@ -27312,8 +27642,15 @@ SELECT DISTINCT + + MIN ( col2 ) FROM tab0 AS cor0 # Datafusion - Expected - -18 # Datafusion - Expected - NULL # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* cor0\.col0 AS col2" at position 0 and "Int64\(\-18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) * + col0 AS col2, + ( - 18 ) AS col2 FROM tab2 AS cor0 +---- +-18 +-18 +-18 +NULL +NULL +NULL query I rowsort SELECT - col1 * - - 98 FROM tab1 AS cor0 @@ -27777,8 +28114,15 @@ SELECT 57 / - col2 AS col1 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col0, col0 AS col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query II rowsort label-4543 SELECT DISTINCT col1, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 @@ -27891,8 +28235,11 @@ SELECT DISTINCT - col0, + col2 * 50 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 AS col0, + COUNT ( * ) AS col0 FROM tab2 +---- +3 +40 query II rowsort label-4560 SELECT col2 AS col1, 31 / col0 + col2 AS col0 FROM tab0 @@ -27989,8 +28336,15 @@ SELECT DISTINCT + col1 / + + 33 FROM tab2 # Datafusion - Expected - -40 # Datafusion - Expected - 58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col0, - col2 AS col0 FROM tab2 +---- +-23 +-40 +-58 +23 +40 +58 query I rowsort SELECT DISTINCT 13 col1 FROM tab1 @@ -28501,8 +28855,15 @@ SELECT ALL + COUNT ( + 81 ) FROM tab1 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, col0 AS col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT ALL + 55 FROM tab0 WHERE NOT + col1 IS NOT NULL @@ -28669,8 +29030,15 @@ NULL # Datafusion - Expected - 83 # Datafusion - Expected - -22099 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* Int64\(41\) \* Int64\(7\) AS col2" at position 0 and "Int64\(25\) \- \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * + 41 * + 7 AS col2, 25 - - col2 AS col2 FROM tab2 cor0 +---- +-14637 +-19229 +-22099 +48 +65 +83 query I rowsort label-4685 SELECT ALL + + col1 / 52 FROM tab2 cor0 @@ -28906,8 +29274,15 @@ SELECT DISTINCT - ( col1 ) + col0 * + col1 + 93 + - 26 - - + col2 + + col2 + - ( # Datafusion - Expected - 11 # Datafusion - Expected - 97 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "tab0\.col1 \+ \(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, col1 + - col2 col1 FROM tab0 +---- +-98 +11 +15 +34 +87 +97 query I rowsort SELECT ALL + col0 * - + col0 AS col2 FROM tab0 WHERE - 19 * - col0 IS NOT NULL @@ -29538,8 +29913,11 @@ SELECT ALL - col0 + + 11 + col1 * - 59 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col0" at position 0 and "Int64\(63\) \- Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 22 AS col0, + 63 - + 30 AS col0 FROM tab1 +---- +22 +33 query I rowsort label-4841 SELECT ALL + ( + + ( + COUNT ( * ) ) ) AS col0 FROM tab0 @@ -29679,8 +30057,15 @@ SELECT + col0, - col1 + - 86 FROM tab2 # Datafusion - Expected - 1 # Datafusion - Expected - 7008 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- tab1\.col2\) AS Int32\)\) \* Int64\(73\) AS col2" at position 0 and "tab1\.col0 / tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( - col2 AS INTEGER ) * + 73 AS col2, col0 / col1 AS col2 FROM tab1 +---- +1 +17 +3 +4307 +4964 +7008 query I rowsort label-4863 SELECT DISTINCT - SUM ( col1 ) AS col0 FROM tab2 @@ -30188,8 +30573,15 @@ SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 / - col2 * + 63 IS NULL # Datafusion - Expected - -336675 # Datafusion - Expected - 64 # Datafusion - Expected - -379456 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col2" at position 0 and "\(\- cor0\.col0\) \* cor0\.col1 \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 AS col2, - col0 * col1 * + col1 AS col2 FROM tab2 cor0 +---- +-119646 +-336675 +-379456 +64 +64 +64 query I rowsort SELECT + col0 * - - col1 + - + col2 FROM tab2 AS cor0 @@ -30647,8 +31039,15 @@ SELECT ALL - - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Expected - 56550 # Datafusion - Expected - 81 # Datafusion - Expected - 45825 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "\(\- tab0\.col0\) \* Int64\(\-65\) \* tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col2, - ( col0 ) * - 65 * + + col2 col2 FROM tab0 +---- +1 +21 +45825 +56550 +624195 +81 query I rowsort SELECT DISTINCT + 51 - + col0 AS col0 FROM tab2 @@ -30674,8 +31073,15 @@ SELECT ALL - col1 AS col2, 38 + col0 AS col0 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT - col2 - - 8 FROM tab1 @@ -30769,8 +31175,15 @@ SELECT ALL - 54, 98 FROM tab2 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - 97 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 97 AS col0, + col1 AS col0 FROM tab1 +---- +14 +47 +5 +97 +97 +97 query I rowsort label-5041 SELECT + MIN ( + - col1 ) AS col0 FROM tab2 @@ -31646,8 +32059,15 @@ SELECT - 65 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - -77 # Datafusion - Expected - -96 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col0" at position 0 and "Int64\(\-77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, - 77 AS col0 FROM tab1 +---- +-59 +-68 +-77 +-77 +-77 +-96 query II rowsort label-5187 SELECT ALL + 18 AS col1, COUNT ( * ) col2 FROM tab0 @@ -32621,8 +33041,15 @@ SELECT DISTINCT * FROM tab0 WHERE NOT - + col2 - + 1 IS NULL # Datafusion - Expected - -81 # Datafusion - Expected - 99 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 col0, - col1 AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +10 +47 +99 query I rowsort label-5352 SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 * col1 IS NOT NULL @@ -32784,8 +33211,15 @@ SELECT + col1 * - col0 col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL # Datafusion - Expected - -53 # Datafusion - Expected - -97 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(\-53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, - 53 AS col0 FROM tab0 AS cor0 +---- +-15 +-53 +-53 +-53 +-87 +-97 query I rowsort SELECT ALL - + 57 FROM tab2 cor0 WHERE NOT NULL <> col0 @@ -33228,8 +33662,15 @@ SELECT DISTINCT CAST ( col1 AS INTEGER ) * - col1 AS col2 FROM tab1 # Datafusion - Expected - 89 # Datafusion - Expected - 81 # Datafusion - Expected - 126 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "Int64\(79\) \+ tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, 79 + col2 AS col2 FROM tab0 +---- +1 +126 +178 +21 +81 +89 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < 53 @@ -33366,8 +33807,15 @@ SELECT DISTINCT * FROM tab0 WHERE - 72 / + 97 - - 40 IS NULL # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, + col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT ALL - - col2 + + 88 FROM tab2 AS cor0 @@ -33648,8 +34096,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, + COUNT ( + col1 ) AS col1 FROM tab1 +---- +-3 +3 query I rowsort SELECT - col1 * + + col0 AS col2 FROM tab0 @@ -33669,8 +34120,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT + col2 <= - + CAST ( NULL AS INTEGER ) # Datafusion - Expected - 1 # Datafusion - Expected - -58 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 col2, 1 AS col2 FROM tab2 +---- +-23 +-40 +-58 +1 +1 +1 query I rowsort SELECT col0 * + - col2 AS col1 FROM tab1 @@ -34181,8 +34639,11 @@ SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) col0, - COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +-3 +3 query I rowsort SELECT + + 70 - + - 55 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 @@ -34730,8 +35191,15 @@ SELECT ALL + col2 AS col0 FROM tab0 WHERE NULL < - CAST ( NULL AS INTEGER ) # Datafusion - Expected - 20 # Datafusion - Expected - -94 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 94 AS col2, 20 AS col2 FROM tab2 +---- +-94 +-94 +-94 +20 +20 +20 query I rowsort label-5694 SELECT - 55 * - COUNT ( * ) AS col0 FROM tab1 @@ -35582,8 +36050,15 @@ SELECT + + MAX ( DISTINCT + col1 ) FROM tab1 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - -97 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col2 \- cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, + col2 - + col2 AS col2 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +0 +0 +0 query I rowsort SELECT DISTINCT - - ( 18 ) FROM tab1 AS cor0 @@ -36326,8 +36801,9 @@ SELECT DISTINCT - + MAX ( DISTINCT - col2 ) AS col2 FROM tab0 cor0 10 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, + col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL +---- query I rowsort label-5954 SELECT DISTINCT - CAST ( + - 25 AS INTEGER ) col0 FROM tab2 cor0 @@ -36511,8 +36987,15 @@ SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE + col2 * - 62 + - col0 + - - col2 # Datafusion - Expected - 24 # Datafusion - Expected - -58 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col1" at position 0 and "tab2\.col0 \+ \(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, col0 + - col2 col1 FROM tab2 +---- +-23 +-40 +-58 +17 +23 +24 query I rowsort label-5984 SELECT + MIN ( DISTINCT + col2 ) FROM tab1 @@ -36562,8 +37045,15 @@ SELECT DISTINCT - 77 + - col0 AS col2, + 4 AS col1 FROM tab0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col0 AS Int32\)" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( col0 AS INTEGER ), col0 col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT ALL + - 72 + + col2 FROM tab2 cor0 @@ -36612,8 +37102,15 @@ SELECT + col2 - + col0 col2 FROM tab2 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - 33 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 33 AS col2, - col0 AS col2 FROM tab0 WHERE NULL IS NULL +---- +-15 +-87 +-97 +33 +33 +33 query I rowsort SELECT DISTINCT + 99 - + col2 FROM tab2 @@ -37227,8 +37724,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) AS col1, + 31 * - 73 AS col1 FROM tab2 AS cor0 +---- +-2263 +-3 query I rowsort label-6095 SELECT + COUNT ( * ) * 37 AS col1 FROM tab2 AS cor0 @@ -37471,8 +37971,15 @@ SELECT - 46 col0 FROM tab2 # Datafusion - Expected - -99 # Datafusion - Expected - 8 # Datafusion - Expected - -210 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 / tab0\.col2 AS col0" at position 0 and "\(\- \(\- tab0\.col2\)\) \* \(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 / + + col2 AS col0, ( - - col2 ) * - col1 AS col0 FROM tab0 +---- +-210 +-3807 +-99 +0 +0 +8 query I rowsort SELECT DISTINCT ( + ( 43 ) ) * - 17 + - col2 * col2 FROM tab0 @@ -38809,8 +39316,10 @@ SELECT DISTINCT + col2, col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 895dfffdb2fb9ba1650e5974d95272d1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 14 AS col1, - col1, - col1 AS col1 FROM tab1 +---- +9 values hashing to 39f91860194450a09b437e3b94ca0850 query III rowsort SELECT * FROM tab2 AS cor0 WHERE - col0 <> + ( 72 ) @@ -39235,8 +39744,15 @@ NULL # Datafusion - Expected - 77 # Datafusion - Expected - -3886 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* \(\- tab2\.col1\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 * - col1 col2, col1 AS col2 FROM tab2 +---- +-1173 +-3080 +-3886 +51 +67 +77 query I rowsort label-6428 SELECT ALL - CAST ( + MIN ( - col1 ) AS INTEGER ) AS col2 FROM tab0 cor0 @@ -39288,8 +39804,9 @@ SELECT DISTINCT + 19 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- CAST\(\(\- cor0\.col0\) AS Int32\)\) AS Int32\)\) \- \(\- cor0\.col2\) AS col0" at position 0 and "Int64\(81\) \* Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( + ( + - CAST ( - col0 AS INTEGER ) ) AS INTEGER ) - - + col2 AS col0, 81 * - 16 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL +---- query I rowsort label-6438 SELECT ALL - - col1 / - + col0 * col0 FROM tab1 AS cor0 @@ -39768,8 +40285,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) * + + 13 AS col2, - 28 + - 37 + + - COUNT ( * ) * 48 AS col2 FROM tab1 cor0 +---- +-209 +39 query II rowsort SELECT + 0 AS col2, col2 * 41 FROM tab1 @@ -39934,8 +40454,10 @@ SELECT * FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN + 29 AND col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f0f92a2c0af3ceb1b1f0fd6c1a642034 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col0 \* Int64\(67\) \* \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - ( + col2 ) * col0 * + 67 * - col1 AS col2, col0 * col0 + - - 90, + col0 AS col2 FROM tab1 AS cor0 +---- +9 values hashing to 2d881f5c8bc1ac7944cf0e77ed0e71bd query I rowsort SELECT DISTINCT - + ( + + 94 ) FROM tab0 AS cor0 @@ -40446,8 +40968,15 @@ SELECT 38 * + - 48 * + - col2 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col2 \+ \(\- cor0\.col1\) \+ Int64\(58\) \+ Int64\(56\) / \(\- CAST\(NULL AS Int32\)\) \* \(\- cor0\.col0\) \+ Int64\(50\) \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, col2 + - col1 + 58 + + 56 / + - CAST ( NULL AS INTEGER ) * - ( col0 ) + + 50 * - col0 AS col0 FROM tab1 AS cor0 +---- +14 +47 +5 +NULL +NULL +NULL query I rowsort SELECT + ( + col0 ) * - col2 AS col2 FROM tab2 AS cor0 @@ -42048,8 +42577,15 @@ SELECT ALL + MIN ( DISTINCT - + col2 ) / 76 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 6256 # Datafusion - Expected - 0 # Datafusion - Expected - 8832 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(92\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 / - col0 AS col1, + 92 * + + col2 AS col1 FROM tab1 AS cor0 +---- +0 +0 +0 +5428 +6256 +8832 query III rowsort SELECT DISTINCT * FROM tab0 WHERE - col0 <= - ( + col0 ) + - 81 - 62 @@ -42322,8 +42858,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT - col0 BETWEEN NULL AND + 29 # Datafusion - Expected - 85 # Datafusion - Expected - 17 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 17 AS col2, col0 AS col2 FROM tab1 +---- +17 +17 +17 +51 +85 +91 query I rowsort label-6947 SELECT ALL + 59 + COUNT ( * ) FROM tab0 @@ -43190,8 +43733,15 @@ NULL # Datafusion - Expected - 75 # Datafusion - Expected - -77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab2\.col1\) AS Int32\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( - col1 AS INTEGER ) AS col2, col0 AS col2 FROM tab2 +---- +-51 +-67 +-77 +46 +64 +75 query I rowsort SELECT - col0 FROM tab0 WHERE NOT NULL = NULL @@ -43432,8 +43982,15 @@ SELECT 39 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - 64 # Datafusion - Expected - -3782 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* Int64\(62\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 61 * + + 62 AS col1, col0 AS col1 FROM tab2 AS cor0 +---- +-3782 +-3782 +-3782 +46 +64 +75 query I rowsort SELECT col0 * col1 + - - 60 FROM tab1 @@ -43965,8 +44522,15 @@ SELECT ALL * FROM tab1 WHERE - 68 IN ( - col0 ) # Datafusion - Expected - -49 # Datafusion - Expected - 81 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab0\.col1\)\) AS col2" at position 0 and "tab0\.col1 \+ Int64\(\-70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - + col1 ) col2, + col1 + + - 70 AS col2 FROM tab0 +---- +-49 +-69 +1 +11 +21 +81 query I rowsort label-7222 SELECT DISTINCT + MAX ( + col0 ) * + - COUNT ( * ) + + CAST ( - 27 AS INTEGER ) / COUNT ( * ) AS col2 FROM tab0 @@ -44097,8 +44661,15 @@ SELECT ALL 49 - - - col0 FROM tab2 # Datafusion - Expected - -87 # Datafusion - Expected - 97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 col2, - col0 AS col2 FROM tab0 +---- +-15 +-87 +-97 +15 +87 +97 query I rowsort SELECT col0 * - + 28 col2 FROM tab2 @@ -44177,8 +44748,15 @@ SELECT ALL + col2 col1, + 75 FROM tab1 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 5856 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \* Int64\(\-61\) AS col0" at position 0 and "\(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 * + - 61 AS col0, - ( + col1 ) AS col0 FROM tab1 +---- +-14 +-47 +-5 +3599 +4148 +5856 query I rowsort label-7254 SELECT - col1 FROM tab0 WHERE NOT - - col0 < - - CAST ( NULL AS INTEGER ) + - 15 @@ -44484,8 +45062,15 @@ SELECT 56 + + - 36 AS col0 FROM tab0 # Datafusion - Expected - 77 # Datafusion - Expected - -3819 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* \(\- tab2\.col2\) \+ tab2\.col1 AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * - col2 + + col1 AS col2, col1 col2 FROM tab2 +---- +-1122 +-3003 +-3819 +51 +67 +77 query I rowsort SELECT ALL - col0 - - + col0 AS col2 FROM tab0 AS cor0 @@ -44738,8 +45323,11 @@ SELECT DISTINCT + 90 AS col0, 6 FROM tab0 # 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\(\(\- cor0\.col1\)\)\) AS col2" at position 0 and "Int64\(\-42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( ALL ( - + col1 ) ) col2, - 42 col2 FROM tab2 AS cor0 +---- +-3 +-42 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN NULL AND - + col1 @@ -44907,8 +45495,11 @@ SELECT ALL + - col0 * ( - col0 ) * col2 + - col0 AS col2 FROM tab2 cor0 # 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 "\(\- max\(\(\- tab2\.col1\)\)\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + MAX ( - col1 ) AS col1, 87 AS col1 FROM tab2 WHERE - col0 = + - col1 * - + col0 +---- +87 +NULL query I rowsort label-7373 SELECT - 96 + - - COUNT ( * ) AS col0 FROM tab1 @@ -44983,8 +45574,15 @@ SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 # Datafusion - Expected - 20 # Datafusion - Expected - 14 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col2" at position 0 and "Int64\(20\) \+ Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 14 AS col2, 20 + + 0 AS col2 FROM tab0 AS cor0 +---- +14 +14 +14 +20 +20 +20 query I rowsort label-7386 SELECT - + col0 + + col0 / - - col2 FROM tab0 AS cor0 @@ -45701,8 +46299,15 @@ SELECT + ( - 44 ) * - ( + col2 ) * col1 - + + col1 + + col0 * - 48 * - col0 + + # Datafusion - Expected - 40 # Datafusion - Expected - 1995 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* Int64\(63\) \- \(\- Int64\(\-84\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 33 * + 63 - - - 84 AS col1, col2 col1 FROM tab2 AS cor0 +---- +1995 +1995 +1995 +23 +40 +58 query I rowsort SELECT + - col2 - - + col0 FROM tab1 AS cor0 @@ -45805,8 +46410,11 @@ SELECT ALL + + 15 / 58 / + - CAST ( - col2 AS INTEGER ) + - 58 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 243 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "min\(\(\- cor0\.col1\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, + MIN ( - col1 ) * ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0 +---- +243 +3 query I rowsort SELECT - col1 * col1 FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND - col2 @@ -46027,8 +46635,11 @@ SELECT col0, col2 * - col1 FROM tab2 AS cor0 WHERE ( + 30 ) NOT IN ( CAST ( + + # 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 col0" at position 0 and "count\(Int64\(82\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 77 AS col0, + COUNT ( ALL ( 82 ) ) AS col0 FROM tab1 AS cor0 WHERE CAST ( NULL AS FLOAT8 ) * + 50 NOT IN ( + + col1 + - - col0 ) +---- +-77 +0 query I rowsort SELECT ALL + ( - - col2 ) - 82 FROM tab0 AS cor0 @@ -46811,8 +47422,15 @@ SELECT DISTINCT 93, COUNT ( * ) AS col1 FROM tab0 # Datafusion - Expected - -10 # Datafusion - Expected - -97 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "\(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, - col2 AS col2 FROM tab0 +---- +-10 +-15 +-47 +-87 +-97 +-99 query III rowsort SELECT * FROM tab1 WHERE NOT - 69 IS NOT NULL @@ -46832,8 +47450,15 @@ SELECT - 71 * + col2 AS col1 FROM tab1 # Datafusion - Expected - 1 # Datafusion - Expected - 83 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col2" at position 0 and "tab0\.col1 / tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 83 AS col2, col1 / + col2 AS col2 FROM tab0 +---- +0 +1 +2 +83 +83 +83 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 89 IS NULL @@ -46957,8 +47582,15 @@ SELECT + - ( - + 42 ) col2 FROM tab0 AS cor0 # Datafusion - Expected - -96 # Datafusion - Expected - 501 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* cor0\.col2 \+ CAST\(cor0\.col1 AS Int32\) AS col1" at position 0 and "cor0\.col1 \+ \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 48 * col2 + + + CAST ( + col1 AS INTEGER ) AS col1, + col1 + + - col0 AS col1 FROM tab0 AS cor0 +---- +-66 +-96 +2337 +4753 +501 +66 query I rowsort label-7717 SELECT - 87 + - MIN ( ALL - + col1 ) + + 14 AS col1 FROM tab1 AS cor0 WHERE - 3 * col2 IS NULL @@ -47922,8 +48554,15 @@ SELECT + - ( + ( 45 ) ) col2 FROM tab1 AS cor0 # Datafusion - Expected - -77 # Datafusion - Expected - -58 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, - col1 AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-51 +-58 +-67 +-77 query IIIIII rowsort SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL > NULL @@ -48136,8 +48775,15 @@ SELECT ALL * FROM tab1 WHERE - 85 * col0 <= - col1 * + + col1 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col1, col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NULL <> + + 94 * + + ( + 25 ) @@ -48649,8 +49295,15 @@ SELECT 8 col1 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "Int64\(\-87\) \* CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT col1 AS col2, - 87 * CAST ( NULL AS FLOAT8 ) AS col2 FROM tab2 +---- +51 +67 +77 +NULL +NULL +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -48809,8 +49462,15 @@ SELECT ALL 70 - - - col2 * 30 col0, 68 FROM tab0 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - 1 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 / \(\- \(\- tab2\.col2\)\) AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 / - - col2 AS col0, - col2 AS col0 FROM tab2 +---- +-23 +-40 +-58 +1 +1 +1 query I rowsort SELECT 61 + col1 + col1 + col1 FROM tab2 @@ -48835,8 +49495,15 @@ SELECT ALL - 92 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - -40 # Datafusion - Expected - -58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "\(\- cor0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + col2 ), - col2 FROM tab2 AS cor0 +---- +-23 +-23 +-40 +-40 +-58 +-58 query II rowsort label-8010 SELECT - + col1 / - col0 AS col1, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 @@ -49776,8 +50443,15 @@ SELECT ( + - col1 ) * - col1 AS col0 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "tab2\.col1 \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, col1 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 +---- +-51 +-67 +-77 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE 37 IS NULL @@ -50337,8 +51011,15 @@ SELECT 55 * + ( + SUM ( + - col2 ) ) FROM tab1 AS cor0 # Datafusion - Expected - 37 # Datafusion - Expected - -99 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col1, + 37 AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +37 +37 +37 query I rowsort SELECT + col1 FROM tab0 AS cor0 WHERE - col0 + col1 IS NOT NULL @@ -50354,8 +51035,15 @@ SELECT + col1 FROM tab0 AS cor0 WHERE - col0 + col1 IS NOT NULL # Datafusion - Expected - 3160 # Datafusion - Expected - 200 # Datafusion - Expected - 3966 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ \(\- \(\- tab2\.col2\)\) \+ tab2\.col1 AS col1" at position 0 and "tab2\.col2 \* tab2\.col1 \+ Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + - ( - col2 ) + col1 AS col1, col2 * col1 + + + 80 col1 FROM tab2 +---- +120 +1253 +181 +200 +3160 +3966 query I rowsort label-8262 SELECT ALL - col2 / col2 * + 82 + - 39 AS col2 FROM tab0 @@ -50537,8 +51225,15 @@ SELECT ALL - ( col0 ) + + col2 + col1 * - 14 AS col1 FROM tab0 # Datafusion - Expected - -5589 # Datafusion - Expected - 0 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \+ tab0\.col2 AS col0" at position 0 and "Int64\(69\) \* CAST\(\(\- tab0\.col1\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 + + col2 AS col0, + 69 * + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 +---- +-1449 +-5589 +-69 +0 +0 +0 query I rowsort label-8293 SELECT DISTINCT - + 62 * 15 + - 45 FROM tab2 WHERE + CAST ( - col2 AS INTEGER ) - - - CAST ( 5 AS INTEGER ) NOT BETWEEN - col1 AND ( + + col2 ) @@ -50621,8 +51316,15 @@ SELECT DISTINCT + col1 / + + 75 FROM tab0 # Datafusion - Expected - 5015 # Datafusion - Expected - 4459 # Datafusion - Expected - 6188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* cor0\.col0 \+ \(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col0 \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 50 * + col0 + - col0 AS col0, + col0 * + col2 AS col0 FROM tab1 AS cor0 +---- +2499 +4165 +4459 +4896 +5015 +6188 query I rowsort SELECT - ( + col0 ) - col2 * + + 47 AS col2 FROM tab2 cor0 @@ -50649,8 +51351,10 @@ SELECT col0 + - + col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 1d75dfceb554d7f5fe6e418f0bbbd55a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "\(\- tab1\.col2\) \+ \(\- CAST\(Int64\(50\) AS Int32\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 20 AS col1, - col1 AS col2, - col2 + - CAST ( + 50 AS INTEGER ) AS col1 FROM tab1 +---- +9 values hashing to 9f2f5d5b22cb4635c1abac47a4b07938 query I rowsort label-8312 SELECT DISTINCT + + MIN ( ALL col1 ) * 33 AS col2 FROM tab0 cor0 @@ -50811,8 +51515,15 @@ SELECT - - MAX ( ALL - + col0 ) AS col0 FROM tab0 cor0 # Datafusion - Expected - 59 # Datafusion - Expected - 9 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ \(\- tab1\.col2\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 + - ( + + ( col2 ) ) AS col1, col2 AS col1 FROM tab1 +---- +-19 +18 +59 +68 +9 +96 query I rowsort label-8339 SELECT ALL 98 * - + COUNT ( * ) + - 77 AS col2 FROM tab1 @@ -51464,8 +52175,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN + 47 AND + ( + co # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0, col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT ALL 17 FROM tab0 cor0 WHERE col1 * + col2 IS NOT NULL @@ -53629,8 +54347,15 @@ SELECT - ( + ( + + col2 ) ) AS col2, + 33 FROM tab2 AS cor0 # Datafusion - Expected - -5341 # Datafusion - Expected - -75 # Datafusion - Expected - -5864 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(\-63\) \* cor0\.col0 \+ \(\- Int64\(\-17\)\) \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col0, - 63 * col0 + - - 17 * - col1 AS col0 FROM tab2 AS cor0 +---- +-3765 +-46 +-5341 +-5864 +-64 +-75 query II rowsort label-8805 SELECT - 99 AS col2, + col0 + - col0 + - - 23 * + + CAST ( + 18 AS INTEGER ) FROM tab0 AS cor0 @@ -54630,8 +55355,15 @@ SELECT + 83 / + col1 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 62 # Datafusion - Expected - 2400 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* tab1\.col2 AS col0" at position 0 and "\(\- \(\- Int64\(62\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 25 * + + col2 col0, - ( - ( + 62 ) ) AS col0 FROM tab1 +---- +1475 +1700 +2400 +62 +62 +62 query I rowsort label-8962 SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 @@ -55814,8 +56546,15 @@ SELECT DISTINCT COUNT ( * ) / COUNT ( * ) + + - COUNT ( * ) FROM tab2 # Datafusion - Expected - 10 # Datafusion - Expected - 81 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, col2 AS col0 FROM tab0 +---- +1 +10 +21 +47 +81 +99 query II rowsort SELECT col2 AS col1, 0 FROM tab1 @@ -55915,8 +56654,15 @@ SELECT DISTINCT - COUNT ( * ), + MAX ( - 61 ) AS col1 FROM tab1 # Datafusion - Expected - 142 # Datafusion - Expected - 9 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "cor0\.col1 \+ \(\- \(\- cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 9 AS col2, + col1 + - + ( - col0 ) AS col2 FROM tab2 AS cor0 +---- +141 +142 +9 +9 +9 +97 query I rowsort SELECT DISTINCT - col0 * ( col0 ) * - 58 * + - col2 FROM tab2 @@ -56219,8 +56965,15 @@ SELECT - + COUNT ( - - ( ( - 82 ) ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 # Datafusion - Expected - -83 # Datafusion - Expected - 6097 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ \(\- cor0\.col2\) \* \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(\-83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 + + - col2 * - col0 col2, - 83 col2 FROM tab1 AS cor0 +---- +-83 +-83 +-83 +4845 +4930 +6097 query I rowsort SELECT + 90 + - col1 FROM tab0 AS cor0 @@ -56352,8 +57105,11 @@ SELECT - 13 - + col2 * 39 + col2 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(cor0\.col1\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( ALL ( + col1 ) ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - + col2 ) +---- +0 +NULL query I rowsort label-9252 SELECT + COUNT ( 25 ) - ( - MIN ( DISTINCT + + 36 ) ) * + SUM ( - + 15 ) - + 78 + 81 AS col0 FROM tab1 AS cor0 @@ -56485,8 +57241,15 @@ SELECT DISTINCT col1 * + col0 * + + 20 * - + col0 + + 62 AS col1 FROM tab2 AS co # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - col1 ) AS col2, + col1 AS col2 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT + + 98 AS col1 FROM tab0 AS cor0 @@ -56837,8 +57600,15 @@ SELECT ( + - 27 ) FROM tab1 # Datafusion - Expected - 87 # Datafusion - Expected - -81 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 col2, col0 col2 FROM tab0 +---- +-1 +-21 +-81 +15 +87 +97 query III rowsort SELECT ALL * FROM tab2 WHERE - - col1 >= NULL @@ -57031,8 +57801,15 @@ SELECT ALL * FROM tab2 WHERE NOT + 64 + 48 < col0 # Datafusion - Expected - 19 # Datafusion - Expected - -3822 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* \(\- tab0\.col2\) \+ \(\- tab0\.col0\) AS col2" at position 0 and "tab0\.col2 \+ Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * - col2 + - col0 AS col2, col2 + + + 9 AS col2 FROM tab0 +---- +-196 +-297 +-3822 +108 +19 +56 query I rowsort SELECT + ( - ( ( - 27 ) ) ) col0 FROM tab0 @@ -57068,8 +57845,15 @@ SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = col0 + # Datafusion - Expected - 78 # Datafusion - Expected - -950697 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* tab0\.col1 \* \(\- \(\- tab0\.col2\)\) \* tab0\.col2 AS col0" at position 0 and "Int64\(13\) \* Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 * col1 * - - col2 * + col2 AS col0, 13 * 6 AS col0 FROM tab0 +---- +-182700 +-2683935 +-950697 +78 +78 +78 query I rowsort label-9366 SELECT DISTINCT col2 / 99 AS col2 FROM tab0 @@ -57255,8 +58039,11 @@ SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE - 33 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 +---- +-9 +9 query I rowsort SELECT ALL col1 * - 90 * - col0 * + + col1 AS col1 FROM tab1 AS cor0 @@ -57578,8 +58365,15 @@ SELECT - + ( + col2 ) FROM tab0 AS cor0 WHERE col0 * - col0 + + col1 / + 13 * + # Datafusion - Expected - 39 # Datafusion - Expected - -4349 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col0\) \+ Int64\(\-76\) / \(\- cor0\.col2\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * - + col0 + - 76 / - col2 col0, 39 AS col0 FROM tab2 AS cor0 +---- +-1055 +-2559 +-4349 +39 +39 +39 query I rowsort label-9446 SELECT + - col2 + + + col1 / - col0 + - + col2 + - col1 AS col0 FROM tab0 AS cor0 @@ -57979,8 +58773,9 @@ SELECT - COUNT ( + ( + 73 ) ) AS col2 FROM tab0 -3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, col1 FROM tab2 WHERE + col2 IS NOT NULL AND NOT NULL IS NULL +---- query I rowsort SELECT ALL + col0 + col0 - ( - ( col1 ) ) FROM tab0 @@ -59074,8 +59869,15 @@ SELECT - + CAST ( NULL AS INTEGER ) * + 21 FROM tab1 cor0 CROSS JOIN tab1 AS cor # Datafusion - Expected - 644 # Datafusion - Expected - -75 # Datafusion - Expected - 644 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(46\) \* Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col1, 46 * + 14 AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +644 +644 +644 query I rowsort SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 88 @@ -59297,8 +60099,15 @@ SELECT + col1 FROM tab0 WHERE NOT NULL IS NULL # Datafusion - Expected - 4277 # Datafusion - Expected - 19 # Datafusion - Expected - 714 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "\(\- tab1\.col0\) \* \(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 19 AS col1, - col0 * - col1 AS col1 FROM tab1 +---- +19 +19 +19 +425 +4277 +714 query I rowsort SELECT ALL - 50 FROM tab1 WHERE - col1 * - + col0 BETWEEN - col2 - + col0 AND NULL @@ -59440,8 +60249,15 @@ NULL # Datafusion - Expected - 753571 # Datafusion - Expected - -96 # Datafusion - Expected - 132651 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col0 \* cor0\.col0 \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 col0, col0 * col0 * col0 AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +132651 +614125 +753571 query I rowsort SELECT + 12 + + col0 + ( + + col1 ) + col0 + + 68 FROM tab0 @@ -59529,8 +60345,15 @@ SELECT - + ( 56 ) FROM tab0 AS cor0 WHERE NOT - ( 29 ) IS NULL # Datafusion - Expected - 65 # Datafusion - Expected - 47 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 AS col2, 65 col2 FROM tab1 +---- +47 +47 +47 +65 +65 +65 query I rowsort SELECT DISTINCT + col2 FROM tab0 WHERE + col0 IS NULL @@ -59809,8 +60632,15 @@ SELECT DISTINCT + col1 + - col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL # Datafusion - Expected - -68 # Datafusion - Expected - -96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "\(\- cor0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2, - col2 FROM tab1 AS cor0 +---- +-59 +-59 +-68 +-68 +-96 +-96 query III rowsort SELECT * FROM tab1 cor0 WHERE ( 63 * + + col0 ) IS NULL @@ -60090,8 +60920,10 @@ SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 66be6e57c90d75d9b4fd29e2335ca4f9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - - col0 AS col0, + 36 AS col2, + + col2 AS col0 FROM tab0 AS cor0 +---- +9 values hashing to ffee4093047406af38cc1091285f04e7 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT 6 < - - col1 / - col1 * 54 * + 47 diff --git a/data/sqlite/random/aggregates/slt_good_48.slt b/data/sqlite/random/aggregates/slt_good_48.slt index 3cd2d12..6671890 100644 --- a/data/sqlite/random/aggregates/slt_good_48.slt +++ b/data/sqlite/random/aggregates/slt_good_48.slt @@ -437,8 +437,15 @@ SELECT 44 + 1 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL # Datafusion - Expected - -90 # Datafusion - Expected - -91 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, - 90 AS col1 FROM tab1 +---- +-51 +-85 +-90 +-90 +-90 +-91 query IIIIII rowsort SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE NULL = ( 52 ) @@ -1786,8 +1793,15 @@ SELECT DISTINCT + 98 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 87 # Datafusion - Expected - -35 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 35 AS col1, + col0 AS col1 FROM tab0 +---- +-35 +-35 +-35 +15 +87 +97 query I rowsort SELECT ALL - 16 * + - 2 AS col1 FROM tab0 AS cor0 @@ -2595,8 +2609,10 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + - + col1 <= + 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 5c1ffc5367ed271b30dd2eb282ff5445 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col0" at position 0 and "\(\- cor0\.col2\) \* \(\- \(\- cor0\.col1\)\) \* Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 10 AS col0, - col2 * - - col1 * + - 85 AS col0, - col0 + - 51 FROM tab0 AS cor0 +---- +9 values hashing to 9a39884852c2da2232702763a291b076 query I rowsort label-419 SELECT DISTINCT - col2 / + col0 * - 22 AS col2 FROM tab2 AS cor0 @@ -4612,8 +4628,15 @@ SELECT 75 / - - 79 * col2 col1 FROM tab0 # Datafusion - Expected - 22 # Datafusion - Expected - 58 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, 22 AS col0 FROM tab2 +---- +22 +22 +22 +23 +40 +58 query I rowsort SELECT DISTINCT col2 col1 FROM tab1 AS cor0 WHERE NULL IS NULL @@ -4651,8 +4674,15 @@ SELECT DISTINCT ( col2 ) AS col2 FROM tab1 AS cor0 WHERE col2 * - col2 IS NOT NU # Datafusion - Expected - -5547 # Datafusion - Expected - 97 # Datafusion - Expected - -6207 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col1 \+ \(\- Int64\(\-64\)\) \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, col1 + - - 64 * - col0 AS col2 FROM tab0 AS cor0 +---- +-5547 +-6207 +-879 +15 +87 +97 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND ( + 71 ) @@ -4932,8 +4962,15 @@ SELECT ALL - col0 * + col2 FROM tab2 WHERE NOT ( col2 ) BETWEEN - - col1 AND col # Datafusion - Expected - -19 # Datafusion - Expected - 96 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \+ Int64\(73\) AS col2" at position 0 and "Int64\(48\) \- tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 + + 73 AS col2, + 48 - + col1 AS col2 FROM tab2 +---- +-19 +-29 +-3 +113 +131 +96 query III rowsort SELECT * FROM tab2 WHERE + 65 * + col0 BETWEEN col0 * - - 94 AND NULL @@ -5130,8 +5167,15 @@ SELECT ALL * FROM tab0 WHERE NOT + col1 * col0 - col1 > - ( - - col2 ) * col0 * # Datafusion - Expected - 47 # Datafusion - Expected - 96 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 col0, + col1 AS col0 FROM tab1 +---- +14 +47 +5 +96 +96 +96 query III rowsort SELECT * FROM tab1 WHERE - 31 IS NOT NULL @@ -5256,8 +5300,9 @@ SELECT - col1 AS col2, 92 AS col1 FROM tab1 92 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 AS col0 FROM tab1 WHERE NOT + col1 * 51 - + col0 / - col2 * - CAST ( + 19 AS FLOAT8 ) IS NOT NULL +---- query II rowsort SELECT DISTINCT + col0, col2 + col2 FROM tab0 @@ -6119,8 +6164,15 @@ SELECT + col2 col0, - col1 + col1 + - col0 * + col0 FROM tab1 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - -81 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, - col0 AS col1 FROM tab0 AS cor0 +---- +-1 +-15 +-21 +-81 +-87 +-97 query I rowsort SELECT ALL + ( + - col0 ) FROM tab2 AS cor0 @@ -6244,8 +6296,15 @@ SELECT - 74 * + col2 / - + 29 AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL # Datafusion - Expected - 108 # Datafusion - Expected - -195 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \- cor0\.col0 \+ \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 \+ cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col0 - col0 + + - col1 col2, col0 + ( + col1 ) col2 FROM tab0 AS cor0 +---- +-111 +-195 +-195 +108 +96 +98 query I rowsort label-1035 SELECT - COUNT ( * ) * + COUNT ( * ) + MAX ( DISTINCT + - col0 ) + - 13 * + COUNT ( * ) FROM tab2 AS cor0 @@ -6579,8 +6638,12 @@ SELECT ALL - 55 * + + col0 FROM tab0 AS cor0 # Datafusion - Expected - 42 # Datafusion - Expected - -42 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 42 AS col0, 14 * - ( COUNT ( * ) ), + 29 AS col0 FROM tab1 +---- +-42 +29 +42 query I rowsort SELECT + 16 * - col0 AS col0 FROM tab1 @@ -7186,8 +7249,15 @@ SELECT - col1 * - + col1, col1 col2 FROM tab2 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, col0 AS col0 FROM tab1 WHERE col0 > - col0 +---- +51 +51 +85 +85 +91 +91 query III rowsort label-1187 SELECT * FROM tab2 WHERE NOT + + col1 NOT BETWEEN - CAST ( - CAST ( + col2 AS INTEGER ) AS INTEGER ) * 90 + - + col2 AND + col1 @@ -7877,8 +7947,15 @@ SELECT ALL + COUNT ( * ) * 38 FROM tab2 AS cor0 # Datafusion - Expected - 46 # Datafusion - Expected - 252300 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col2 \* \(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * col2 * ( - ( - col0 ) ) AS col1, col0 AS col1 FROM tab2 AS cor0 +---- +102400 +24334 +252300 +46 +64 +75 query I rowsort SELECT - col1 + + - col0 FROM tab1 AS cor0 @@ -8220,8 +8297,15 @@ SELECT ALL col1 * col0 + + 44 + + - 55 AS col1, - col2 AS col2 FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - 16 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "CAST\(tab2\.col0 AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 16 AS col1, CAST ( col0 AS INTEGER ) AS col1 FROM tab2 +---- +16 +16 +16 +46 +64 +75 query II rowsort SELECT col0 AS col1, - col2 AS col2 FROM tab1 AS cor0 @@ -8643,8 +8727,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) col1, COUNT ( * ) AS col1 FROM tab0 +---- +3 +NULL query I rowsort SELECT ALL col1 AS col0 FROM tab0 WHERE NOT NULL >= - col1 + + 25 + - + ( - ( + - col1 ) ) @@ -9203,7 +9290,7 @@ SELECT ALL col0 * col1 * + col1 - col1 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c45cfc52eac4c2fa6be51b3e9c919a69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 1 and "\(\- \(\- tab0\.col0\)\) \+ \(\- \(\- tab0\.col1\)\) \+ Int64\(\-37\) \- tab0\.col1 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Schema error: Schema contains qualified field name tab0\.col1 and unqualified field name col1 which would be ambiguous SELECT col1, col0 AS col1, - - col0 + - - col1 + - 37 - + col1 AS col1 FROM tab0 query II rowsort label-1522 @@ -11249,8 +11336,10 @@ SELECT + col0 * + - col0 * col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 9bff8eb8efa1bad9df4d78f093ecc1b7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col0\) AS col0" at position 1 and "Int64\(\-40\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL col0 + - 11 + col1 AS col2, col2 * + - ( + col0 ) col0, - 40 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL +---- +9 values hashing to d0dcf76366189571dc527e5aee82062d query I rowsort SELECT DISTINCT - col1 * - ( - 96 ) col2 FROM tab0 AS cor0 @@ -12523,8 +12612,15 @@ SELECT DISTINCT + - col0, - col1 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -21 # Datafusion - Expected - -5005 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ \(\- cor0\.col1\) \* Int64\(65\) AS col0" at position 0 and "Int64\(\-21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 0 + - col1 * 65 AS col0, - 21 AS col0 FROM tab2 AS cor0 +---- +-21 +-21 +-21 +-3315 +-4355 +-5005 query I rowsort label-2081 SELECT ( 75 ) * - COUNT ( * ) AS col0 FROM tab1 @@ -12969,8 +13065,9 @@ SELECT - + COUNT ( 43 ) AS col0 FROM tab1 AS cor0 -3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "\(\- CAST\(Int64\(32\) AS Int32\)\) \* Int64\(59\) \* Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + col0 ) col0, - CAST ( ( + 32 ) AS INTEGER ) * + 59 * + 36 AS col0 FROM tab1 AS cor0 WHERE NOT 36 IS NOT NULL +---- query II rowsort SELECT DISTINCT + col0 AS col0, - 38 * + - col0 FROM tab0 AS cor0 @@ -13456,8 +13553,11 @@ SELECT DISTINCT + MIN ( DISTINCT col2 ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 387 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(43\)\) AS col0" at position 0 and "sum\(DISTINCT \(\- Int64\(20\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( + 43 ) AS col0, SUM ( DISTINCT - + 20 ) AS col0 FROM tab1, tab2 AS cor0 +---- +-20 +387 query III rowsort label-2233 SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - ( + 16 ) IS NOT NULL @@ -13832,8 +13932,15 @@ SELECT DISTINCT - COUNT ( * ) * + - 46 AS col1 FROM tab1 # Datafusion - Expected - -85 # Datafusion - Expected - -61 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(61\)\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 61 AS col0, ( - col0 ) AS col0 FROM tab1 AS cor0 +---- +-51 +-61 +-61 +-61 +-85 +-91 query I rowsort SELECT + col1 * - 18 FROM tab2 AS cor0 @@ -13935,8 +14042,15 @@ SELECT * FROM tab2 WHERE - 32 BETWEEN col1 + + col2 - + 4 AND 20 # Datafusion - Expected - 5 # Datafusion - Expected - 71 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 71 AS col0, + 5 AS col0 FROM tab0 +---- +5 +5 +5 +71 +71 +71 query II rowsort SELECT + - col1 col1, - 33 FROM tab2 AS cor0 @@ -14421,8 +14535,15 @@ SELECT ALL - - 85 * 33 + + + col1 + 20 FROM tab1 AS cor0 # Datafusion - Expected - 10 # Datafusion - Expected - 9601 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- cor0\.col2 \+ \(\- \(\- cor0\.col2\)\) \* cor0\.col0 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 - ( + col2 ) + - - col2 * ( + + col0 ) AS col0, + col2 AS col0 FROM tab0 AS cor0 +---- +10 +47 +673 +947 +9601 +99 query I rowsort SELECT DISTINCT col2 * - - col2 + col0 AS col2 FROM tab2 @@ -15968,8 +16089,15 @@ SELECT ALL + 85 * - col2 AS col2 FROM tab1 # Datafusion - Expected - 230192 # Datafusion - Expected - -7094 # Datafusion - Expected - 35836 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(\-87\) \+ \(\- cor0\.col2\) AS col2" at position 0 and "Int64\(4\) \* \(\- \(\- cor0\.col2\)\) \+ cor0\.col1 \+ Int64\(0\) \+ cor0\.col2 \- \(\- cor0\.col0\) \* Int64\(32\) \* \(\- Int64\(\-74\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 * - 87 + - col2 AS col2, ( + 4 ) * - ( - col2 ) + + col1 + - 0 + + col2 - - col0 * 32 * - - 74 AS col2 FROM tab0 AS cor0 +---- +-1837 +-186 +-7094 +206087 +230192 +35836 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 <> - 45 @@ -16228,8 +16356,15 @@ SELECT ALL - - SUM ( + 17 ) FROM tab1 AS cor0 # Datafusion - Expected - -441 # Datafusion - Expected - 81 # Datafusion - Expected - -6561 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col1 \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, + col1 * + - col1 AS col0 FROM tab0 AS cor0 +---- +-1 +-441 +-6561 +1 +21 +81 query II rowsort label-2689 SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) FROM tab2 cor0 @@ -17467,8 +17602,15 @@ SELECT - - ( - 23 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 12 # Datafusion - Expected - 97 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, 12 AS col2 FROM tab0 +---- +12 +12 +12 +15 +87 +97 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT col1 + 18 = NULL ) @@ -17555,8 +17697,15 @@ SELECT ALL + 34 FROM tab2 WHERE NOT + - 91 * + + col1 * - col0 NOT IN ( 21 + 94 # Datafusion - Expected - 64 # Datafusion - Expected - -407066 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* Int64\(59\) \* \(\- tab2\.col0\) \+ Int64\(34\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 92 * + 59 * + - col0 + 34 AS col1, col0 AS col1 FROM tab2 +---- +-249654 +-347358 +-407066 +46 +64 +75 query I rowsort label-2902 SELECT DISTINCT + COUNT ( * ) + + - 46 FROM tab2 @@ -18083,8 +18232,15 @@ SELECT + ( COUNT ( * ) ) + COUNT ( * ) AS col0 FROM tab2 # Datafusion - Expected - 2209 # Datafusion - Expected - 94 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "\(\- tab1\.col1\) \* \(\- tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 94 AS col2, - col1 * - col1 AS col2 FROM tab1 +---- +196 +2209 +25 +94 +94 +94 query I rowsort label-2989 SELECT DISTINCT COUNT ( * ) FROM tab0, tab2 AS cor0 @@ -18152,8 +18308,15 @@ SELECT DISTINCT - col2 AS col2, 75 / col1 FROM tab1 cor0 # Datafusion - Expected - 89 # Datafusion - Expected - 63 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 63 AS col0, + 89 AS col0 FROM tab1 AS cor0 +---- +63 +63 +63 +89 +89 +89 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( 92 ) @@ -18758,8 +18921,9 @@ SELECT + 39 * COUNT ( * ) FROM tab1 AS cor0 117 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 52 AS col1, - col0 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL ) +---- query II rowsort label-3101 SELECT ALL ( + - COUNT ( + col2 ) ) AS col1, COUNT ( * ) AS col2 FROM tab0 AS cor0 @@ -19792,8 +19956,15 @@ SELECT DISTINCT SUM ( DISTINCT 3 ) FROM tab2 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, ( + - col1 ) AS col0 FROM tab1 cor0 +---- +-14 +-14 +-47 +-47 +-5 +-5 query I rowsort label-3267 SELECT DISTINCT MAX ( - col1 ) AS col2 FROM tab0 cor0 @@ -20005,8 +20176,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE 45 + + 39 > NULL # Datafusion - Expected - 5 # Datafusion - Expected - -8282 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) / cor0\.col1 \+ \(\- cor0\.col0\) \* cor0\.col0 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 84 / col1 + - col0 * col0 AS col2, col1 col2 FROM tab1 cor0 +---- +-2607 +-7241 +-8282 +14 +47 +5 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + - col2 * - 70 + - - col0 = NULL @@ -20103,8 +20281,15 @@ SELECT * FROM tab2 AS cor0 WHERE col2 * - + 85 IS NULL # Datafusion - Expected - 68 # Datafusion - Expected - 12 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "\(\- cor0\.col1\) / \(\- cor0\.col0\) \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 12 AS col2, ( + - col1 ) / - + col0 + + col2 AS col2 FROM tab1 cor0 +---- +12 +12 +12 +59 +68 +96 query I rowsort label-3315 SELECT DISTINCT + 6 * + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL = 23 @@ -21626,8 +21811,11 @@ SELECT DISTINCT + - 1 * 57 + + 39 * - col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) 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 II valuesort SELECT ALL + 40 AS col2, - MAX ( DISTINCT - col1 ) AS col2 FROM tab1 cor0 +---- +40 +5 query I rowsort label-3568 SELECT + - 48 + + COUNT ( * ) col0 FROM tab1 AS cor0 @@ -22226,8 +22414,11 @@ SELECT ALL col1 AS col2, + 73 * - 66 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col0" at position 0 and "Int64\(45\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 43 col0, 45 + COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +43 +48 query I rowsort label-3663 SELECT ALL 57 * + COUNT ( * ) AS col2 FROM tab2 AS cor0 @@ -22844,8 +23035,11 @@ SELECT - col2 + + - 2 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- avg\(DISTINCT tab0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0, - AVG ( DISTINCT ( + col1 ) ) AS col0 FROM tab0 WHERE NOT - - col0 NOT BETWEEN 4 * 53 / + col1 - - col2 AND - col2 +---- +NULL +NULL query III rowsort SELECT * FROM tab2 WHERE - + col0 NOT BETWEEN NULL AND + 89 @@ -23053,8 +23247,15 @@ SELECT DISTINCT - col1 + + 54 FROM tab0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, + col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT - col1 * col0 AS col1 FROM tab1 AS cor0 WHERE NOT col1 + - - col0 * - - 62 <> - - col0 / col1 @@ -23260,8 +23461,9 @@ SELECT DISTINCT COUNT ( * ) AS col1, + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN 9 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(69\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * ( + 69 ) col2, + 13 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> NULL +---- query I rowsort SELECT - + col1 + + - col0 FROM tab2 AS cor0 @@ -23933,8 +24135,15 @@ SELECT - - col2 AS col2 FROM tab0 AS cor0 WHERE NOT + 6 IS NOT NULL # Datafusion - Expected - 37410 # Datafusion - Expected - 97 # Datafusion - Expected - 412929 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "cor0\.col0 \* Int64\(43\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 AS col2, col0 * 43 * + col2 AS col2 FROM tab0 AS cor0 +---- +15 +30315 +37410 +412929 +87 +97 query I rowsort label-3958 SELECT + - COUNT ( * ) / + 15 / + - COUNT ( * ) AS col0 FROM tab0 AS cor0 @@ -24381,8 +24590,15 @@ SELECT ALL * FROM tab2 cor0 WHERE NOT col0 / - col2 = NULL # Datafusion - Expected - 83 # Datafusion - Expected - -96 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(72\) \- \(\- \(\- \(\- \(\- Int64\(\-11\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 AS col2, 72 - + - ( - - ( - - 11 ) ) col2 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +83 +83 +83 query I rowsort SELECT + + 10 col1 FROM tab0 cor0 @@ -26017,8 +26233,15 @@ SELECT - 71, 28 + COUNT ( * ) col2 FROM tab2 AS cor0 # Datafusion - Expected - 870 # Datafusion - Expected - -97 # Datafusion - Expected - 9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col2 \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, + col2 * + col0 col2 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +705 +870 +9603 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - col1 IS NOT NULL ) @@ -26931,8 +27154,15 @@ SELECT ALL - ( + 37 ) FROM tab1 cor0 # Datafusion - Expected - 48 # Datafusion - Expected - 81 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- Int64\(\-69\)\) \- cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, - ( - 69 ) - + col1 AS col0 FROM tab0 AS cor0 +---- +-12 +1 +21 +48 +68 +81 query I rowsort label-4442 SELECT SUM ( - + 97 ) AS col2 FROM tab0 AS cor0 @@ -27050,8 +27280,15 @@ SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 12 NOT BETWEEN NULL AND NULL # Datafusion - Expected - 88 # Datafusion - Expected - 81 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ tab0\.col0 AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 + + + ( col0 ) AS col2, 88 AS col2 FROM tab0 +---- +153 +163 +81 +88 +88 +88 query I rowsort SELECT DISTINCT col1 + + + 38 FROM tab1 @@ -27399,8 +27636,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 0 + - COUNT ( * ) AS col1, - COUNT ( DISTINCT 13 ) AS col1 FROM tab1 AS cor0 +---- +-1 +-3 query I rowsort label-4517 SELECT DISTINCT + + 71 / + - 92 * - col1 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 @@ -27708,8 +27948,11 @@ SELECT DISTINCT ( 15 ) * - - col1 - - col2 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -375 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* \(\- Int64\(\-5\)\) \* \(\- count\(cor0\.col2\)\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 25 * - - 5 * + - COUNT ( col2 ) AS col0, + 39 AS col0 FROM tab1 cor0 +---- +-375 +39 query I rowsort SELECT + + 58 AS col0 FROM tab1 AS cor0 @@ -27807,8 +28050,15 @@ SELECT col1 * - ( - 15 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - -5 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, 21 AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +21 +21 +21 query I rowsort label-4581 SELECT + ( + - SUM ( - 86 ) ) FROM tab1 AS cor0 @@ -27923,8 +28173,11 @@ SELECT DISTINCT + col0 * - - 96 FROM tab0 AS cor0 # 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 "min\(tab0\.col1\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MIN ( col1 ) AS col2, 90 AS col2 FROM tab0 +---- +1 +90 query I rowsort SELECT - col1 * - 5 * + col0 AS col2 FROM tab0 @@ -28326,8 +28579,15 @@ SELECT * FROM tab0 WHERE NOT col1 + + 5 = 7 * + 63 * + col1 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 AS col2 FROM tab2 cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-4667 SELECT DISTINCT - col1 / 61 + - 97 + - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL @@ -28557,8 +28817,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-4703 SELECT DISTINCT + - col1 * - col2 * 38 - + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 @@ -28819,8 +29086,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( ( - + COUNT ( * ) ) ) AS col1, ( + + 26 ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) +---- +-9 +26 query III rowsort SELECT ALL * FROM tab2 WHERE NOT ( ( - col1 ) <= 46 + + + col2 ) @@ -29039,8 +29309,15 @@ SELECT + - col1 AS col0, col2 FROM tab0 cor0 # Datafusion - Expected - -85 # Datafusion - Expected - 45 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-45\)\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 45 AS col2, ( - col0 ) AS col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +45 +45 +45 query II rowsort SELECT DISTINCT - 33 AS col1, + 78 FROM tab0 AS cor0 @@ -29097,8 +29374,15 @@ SELECT DISTINCT - col1 + 55 + - ( col0 ) FROM tab1 # Datafusion - Expected - 87 # Datafusion - Expected - 0 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \+ tab0\.col0 AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 + col0 AS col2, col0 AS col2 FROM tab0 +---- +0 +0 +0 +15 +87 +97 query I rowsort label-4789 SELECT - col0 * - col1 * col0 - col0 / - CAST ( - 36 AS INTEGER ) AS col0 FROM tab2 AS cor0 @@ -29186,8 +29470,15 @@ SELECT * FROM tab1 WHERE NOT - + ( + - ( + col2 ) ) IS NOT NULL # Datafusion - Expected - 0 # Datafusion - Expected - 97 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "tab0\.col1 \+ \(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, col1 + - col1 AS col1 FROM tab0 +---- +0 +0 +0 +15 +87 +97 query I rowsort label-4803 SELECT ALL - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 @@ -29227,8 +29518,11 @@ SELECT ALL - 34 * + + ( - + SUM ( ALL - CAST ( - col1 AS INTEGER ) ) ) AS col0 F # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col2, + 35 col2 FROM tab0 AS cor0 +---- +3 +35 query I rowsort SELECT ALL - col0 FROM tab2 AS cor0 WHERE ( col1 + 2 ) NOT BETWEEN 1 AND NULL @@ -30346,8 +30640,9 @@ SELECT ALL - COUNT ( DISTINCT - col1 ) * + COUNT ( * ) FROM tab0 -9 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "Int64\(\-12\) \* \(\- Int64\(\-19\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - col1 AS col1, - 12 * - - 19 AS col1, + - col2 + col1 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) = - - col2 +---- query III rowsort label-4992 SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 61 < + - CAST ( NULL AS INTEGER ) * + + 85 + - col2 @@ -30765,8 +31060,9 @@ SELECT col2 * - + 59 * - 42 AS col0, - col1 FROM tab0 -21 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ \(\- tab0\.col0\) \* Int64\(0\) AS col2" at position 0 and "Int64\(9\) / \(\- \(\- tab0\.col2\)\) \* tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 60 + + ( - col0 ) * + - 0 AS col2, 9 / - - col2 * + col0 AS col2 FROM tab0 WHERE NOT NULL < col1 +---- query III rowsort SELECT ALL * FROM tab0 WHERE NOT - col0 <> + col0 @@ -31007,8 +31303,15 @@ SELECT DISTINCT + 72 AS col1 FROM tab0 WHERE NOT col1 * + col1 + - 99 >= NULL # Datafusion - Expected - 11 # Datafusion - Expected - 61 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "tab0\.col1 \+ \(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 61 AS col0, col1 + - col2 AS col0 FROM tab0 +---- +-98 +11 +34 +61 +61 +61 query I rowsort SELECT ( ( + col1 ) ) + - + col2 AS col0 FROM tab1 @@ -31153,8 +31456,15 @@ SELECT DISTINCT * FROM tab2 WHERE - + col2 / + col2 IS NOT NULL # Datafusion - Expected - -68 # Datafusion - Expected - 59 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "\(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 59 AS col1, - col2 AS col1 FROM tab1 +---- +-59 +-68 +-96 +59 +59 +59 query I rowsort label-5127 SELECT COUNT ( ALL CAST ( NULL AS INTEGER ) ) * + 55 * + - 63 + + 63 FROM tab1 @@ -31922,8 +32232,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 AS col0, - COUNT ( * ) AS col0 FROM tab0 +---- +-3 +25 query I rowsort SELECT DISTINCT col2 * - col2 + - + col0 AS col0 FROM tab0 @@ -32464,8 +32777,15 @@ SELECT DISTINCT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) * - 53 IS NOT NULL # Datafusion - Expected - -1 # Datafusion - Expected - -77 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab2\.col1\) AS Int32\) AS col2" at position 0 and "\(\- tab2\.col1\) / tab2\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - col1 AS INTEGER ) AS col2, - col1 / + col2 AS col2 FROM tab2 +---- +-1 +-1 +-2 +-51 +-67 +-77 query I rowsort SELECT DISTINCT - 81 - - col2 AS col0 FROM tab0 AS cor0 @@ -32764,8 +33084,15 @@ SELECT ALL + ( MIN ( - + col1 ) ) FROM tab1 # Datafusion - Expected - -21 # Datafusion - Expected - 97 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, - col1 AS col1 FROM tab0 +---- +-1 +-21 +-81 +15 +87 +97 query I rowsort SELECT ALL col1 FROM tab0 WHERE NOT + col2 IS NULL @@ -33840,8 +34167,15 @@ SELECT ALL SUM ( - + col0 ) FROM tab2 # Datafusion - Expected - 59 # Datafusion - Expected - 546546 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* \(\- Int64\(66\)\) \* \(\- tab1\.col0\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * - + 66 * - col0 AS col0, col2 col0 FROM tab1 +---- +171666 +476850 +546546 +59 +68 +96 query II rowsort SELECT ALL 94 AS col0, + col2 col2 FROM tab0 @@ -34006,8 +34340,15 @@ SELECT ALL * FROM tab2 WHERE NOT - CAST ( - - col1 AS INTEGER ) IS NOT NULL # Datafusion - Expected - 0 # Datafusion - Expected - 5 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "Int64\(46\) / \(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col0, 46 / - col0 AS col0 FROM tab1 +---- +0 +0 +0 +14 +47 +5 query I rowsort SELECT - col1 AS col1 FROM tab1 WHERE NOT - col2 IS NOT NULL @@ -34896,8 +35237,15 @@ SELECT ALL + col2 + + col0 * col1 + col0 AS col2 FROM tab2 # Datafusion - Expected - -2131 # Datafusion - Expected - -13 # Datafusion - Expected - -3075 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) AS col2" at position 0 and "Int64\(11\) \* Int64\(6\) \+ \(\- tab2\.col1\) \+ \(\- Int64\(\-53\)\) \* \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 13 AS col2, 11 * 6 + - + col1 + - - 53 * - col2 AS col2 FROM tab2 +---- +-1204 +-13 +-13 +-13 +-2131 +-3075 query I rowsort label-5740 SELECT ALL - 39 + - - 32 + - COUNT ( * ) FROM tab0 @@ -35362,8 +35710,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 82 + - col2 # Datafusion - Expected - 27 # Datafusion - Expected - -75 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, + 27 AS col2 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +27 +27 +27 query I rowsort SELECT DISTINCT + + 54 col1 FROM tab1 WHERE NOT NULL IS NOT NULL @@ -35490,8 +35845,15 @@ SELECT col1 FROM tab2 WHERE NULL = NULL # Datafusion - Expected - 47 # Datafusion - Expected - 31 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 AS col0, + col2 AS col0 FROM tab0 +---- +10 +31 +31 +31 +47 +99 query I rowsort SELECT DISTINCT - col2 + + 27 FROM tab1 @@ -35593,8 +35955,15 @@ SELECT DISTINCT - 95 AS col2, + col2 AS col1 FROM tab0 # Datafusion - Expected - 36 # Datafusion - Expected - 99 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "Int64\(18\) \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, 18 * + 2 AS col1 FROM tab0 +---- +10 +36 +36 +36 +47 +99 query I rowsort SELECT ALL - 55 * - 47 AS col2 FROM tab1 @@ -35930,8 +36299,15 @@ SELECT + SUM ( DISTINCT col1 ) FROM tab2 # Datafusion - Expected - -64 # Datafusion - Expected - -75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col0\) AS Int32\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + CAST ( - col0 AS INTEGER ), - col0 FROM tab2 AS cor0 +---- +-46 +-46 +-64 +-64 +-75 +-75 query I rowsort SELECT DISTINCT - - 38 col0 FROM tab1 AS cor0 @@ -36004,8 +36380,15 @@ SELECT ALL COUNT ( + - col1 ) AS col0 FROM tab1 cor0 # Datafusion - Expected - 81 # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col2, + 81 AS col2 FROM tab2 AS cor0 +---- +81 +81 +81 +NULL +NULL +NULL query I rowsort label-5931 SELECT + + MAX ( DISTINCT + col0 ) FROM tab1 WHERE NOT + + col2 NOT BETWEEN + 1 AND + - col2 * + CAST ( NULL AS INTEGER ) * col2 @@ -36256,8 +36639,15 @@ SELECT 86 + col2 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, ( + col0 ) FROM tab0 cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-5971 SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE 54 IS NOT NULL @@ -37154,8 +37544,15 @@ NULL # Datafusion - Expected - 11 # Datafusion - Expected - 15 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \+ tab0\.col2 AS col0" at position 0 and "Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 84 + + ( col2 ) col0, 11 col0 FROM tab0 +---- +-37 +-74 +11 +11 +11 +15 query I rowsort SELECT ALL 48 col0 FROM tab2 @@ -37293,8 +37690,15 @@ SELECT - 18 / - - col2 FROM tab0 AS cor0 # Datafusion - Expected - 58 # Datafusion - Expected - -77 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, + 58 AS col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +58 +58 +58 query I rowsort label-6142 SELECT ALL - col1 / 3 FROM tab2 AS cor0 @@ -37322,8 +37726,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 1 AS col2, COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2, tab2 AS cor0 +---- +-81 +1 query I rowsort label-6147 SELECT + + col1 * 84 * CAST ( - col1 AS INTEGER ) * + col0 FROM tab0 WHERE + + 4 * 69 > - col0 @@ -37370,8 +37777,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ), - COUNT ( * ) FROM tab1 AS cor0 +---- +-3 +-3 query I rowsort label-6154 SELECT DISTINCT - + 71 - - COUNT ( DISTINCT + 8 ) FROM tab2 AS cor0 @@ -38070,8 +38480,11 @@ SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL > NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( * ) + 82 AS col0 FROM tab2 +---- +3 +85 query III rowsort label-6274 SELECT ALL * FROM tab2 WHERE NOT ( - - col1 + + CAST ( 33 AS INTEGER ) * + col2 ) = NULL @@ -38104,8 +38517,11 @@ SELECT * FROM tab1 AS cor0 WHERE + 83 <= col0 + - 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col2" at position 0 and "Int64\(17\) \* \(\- count\(cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 51 AS col2, 17 * + - COUNT ( col0 ) col2 FROM tab0 AS cor0 +---- +-51 +-51 query I rowsort SELECT ALL 63 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL @@ -38568,8 +38984,15 @@ SELECT * FROM tab2 WHERE NOT - col1 = col1 + - col0 # Datafusion - Expected - 50 # Datafusion - Expected - -77 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, + 50 AS col1 FROM tab2 +---- +-51 +-67 +-77 +50 +50 +50 query I rowsort label-6352 SELECT ALL + MIN ( + + col1 ) FROM tab0 @@ -39263,8 +39686,9 @@ SELECT ALL + col0 + - col2 AS col2, col1 col0 FROM tab2 77 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, col1 AS col0 FROM tab2 AS cor0 WHERE 89 * + col2 BETWEEN NULL AND col2 +---- query III rowsort label-6461 SELECT * FROM tab0 AS cor0 WHERE col0 * + + CAST ( - + ( + col0 ) AS INTEGER ) IS NOT NULL @@ -40025,8 +40449,10 @@ SELECT * FROM tab2 WHERE NOT ( NOT 69 IS NOT NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a9f85df45f6f188dbe8b70cf8da9cc9c -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col1" at position 1 and "\(\- tab0\.col0\) \+ \(\- Int64\(\-4\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 35, 5 AS col1, + - col0 + - - 4 AS col1 FROM tab0 +---- +9 values hashing to abe7dcbc64af6949527bf0a4388d9717 query I rowsort label-6588 SELECT DISTINCT SUM ( + 86 ) AS col2 FROM tab0 AS cor0 @@ -40549,8 +40975,11 @@ SELECT ALL MAX ( + col2 ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 31 AS col0, + COUNT ( * ) col0 FROM tab0 +---- +3 +31 query I rowsort SELECT 37 * - + col1 * + + col1 FROM tab0 @@ -40577,8 +41006,11 @@ SELECT DISTINCT 37 * COUNT ( * ) + ( - 54 ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -121 # Datafusion - Expected - -195 -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 "sum\(\(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( DISTINCT + - col2 ) AS col2, SUM ( ALL - col1 ) AS col2 FROM tab2 AS cor0 +---- +-121 +-195 query III rowsort SELECT DISTINCT * FROM tab2 WHERE + 82 < NULL @@ -41542,8 +41974,15 @@ SELECT ALL - - 3 * COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL # Datafusion - Expected - -62 # Datafusion - Expected - 26 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 AS col1, - 62 col1 FROM tab0 +---- +-62 +-62 +-62 +26 +26 +26 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT 9 - - - col1 <= + ( col2 ) @@ -41687,8 +42126,11 @@ SELECT DISTINCT - col2 - + 44 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, ( - COUNT ( * ) ) col2 FROM tab0 AS cor0 +---- +-3 +3 query I rowsort label-6866 SELECT DISTINCT + - CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0 @@ -41790,8 +42232,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, - SUM ( - col0 ) AS col1 FROM tab2 WHERE NOT ( - col1 IS NOT NULL ) +---- +0 +NULL query I rowsort label-6882 SELECT + COUNT ( * ) * 88 - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 @@ -43333,8 +43778,15 @@ SELECT DISTINCT - MIN ( - - col1 ) / + + MAX ( ALL - - col2 ) AS col0 FROM tab0 # Datafusion - Expected - 0 # Datafusion - Expected - -58 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, 0 AS col2 FROM tab2 +---- +-23 +-40 +-58 +0 +0 +0 query I rowsort SELECT + 38 * - 0 AS col0 FROM tab0 @@ -44056,8 +44508,15 @@ NULL # Datafusion - Expected - 10 # Datafusion - Expected - -81 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, col2 AS col1 FROM tab0 cor0 +---- +-1 +-21 +-81 +10 +47 +99 query III rowsort SELECT - 76 col1, col0 + + - col0, col2 + + - col2 FROM tab2 AS cor0 @@ -44352,8 +44811,15 @@ SELECT - 46 / col1 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 10 # Datafusion - Expected - -97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, col2 AS col1 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +10 +47 +99 query II rowsort label-7312 SELECT ALL + - 59 + + + CAST ( NULL AS INTEGER ) * + 6, 64 - + COUNT ( * ) AS col2 FROM tab2 AS cor0 @@ -44688,8 +45154,15 @@ SELECT - CAST ( - 8 AS INTEGER ) + + col0 + + 95 * + col2 col2 FROM tab1 # Datafusion - Expected - 29 # Datafusion - Expected - 93 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 AS col1, + 29 AS col1 FROM tab1 +---- +29 +29 +29 +93 +93 +93 query I rowsort SELECT DISTINCT ( - col1 ) + + col0 + + - col1 FROM tab2 @@ -45359,8 +45832,15 @@ SELECT DISTINCT 77 * - + 78 + - 46 * + + col0 + col2 * - + ( + 87 ), col2 / col0 # Datafusion - Expected - 68 # Datafusion - Expected - -8281 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 * - col0 AS col1, 68 AS col1 FROM tab1 AS cor0 +---- +-2601 +-7225 +-8281 +68 +68 +68 query I rowsort label-7475 SELECT DISTINCT - MIN ( ALL - col0 ) FROM tab1 AS cor0 @@ -45557,8 +46037,15 @@ SELECT ALL - 80 * + - 72, 0 AS col1 FROM tab0 # Datafusion - Expected - 21 # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* tab0\.col1 AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) * col1 AS col2, col1 AS col2 FROM tab0 +---- +1 +21 +81 +NULL +NULL +NULL query I rowsort SELECT DISTINCT 60 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 @@ -45626,8 +46113,15 @@ SELECT DISTINCT + ( - col1 ) + - col2 + - col0 FROM tab2 AS cor0 # Datafusion - Expected - -3229393 # Datafusion - Expected - 67 # Datafusion - Expected - -507822 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col1" at position 0 and "cor0\.col0 \+ Int64\(\-28\) \- cor0\.col2 \* Int64\(20\) \* \(\- cor0\.col2\) \* Int64\(\-48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 67 AS col1, + col0 + - 28 - + col2 * + 20 * + - col2 * - 48 AS col1 FROM tab2 AS cor0 +---- +-1535964 +-3229393 +-507822 +67 +67 +67 query I rowsort SELECT ALL - 24 * - - 2 + + 12 AS col1 FROM tab2 @@ -46000,8 +46494,15 @@ SELECT ALL MAX ( - + col0 ) FROM tab2 # Datafusion - Expected - -25 # Datafusion - Expected - 563108 # Datafusion - Expected - -2209 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \* \(\- tab1\.col0\) \* tab1\.col0 AS col0" at position 0 and "\(\- tab1\.col1\) \* tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 * - col0 * + col0 AS col0, - col1 * col1 AS col0 FROM tab1 +---- +-196 +-2209 +-25 +249696 +426275 +563108 query I rowsort label-7573 SELECT ALL - MAX ( ALL - 64 ) AS col1 FROM tab0 @@ -46344,8 +46845,15 @@ NULL # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col2, col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query II rowsort label-7625 SELECT DISTINCT + 64 col0, MIN ( - 47 ) AS col1 FROM tab1 @@ -47127,8 +47635,15 @@ SELECT ALL - COUNT ( ALL + 22 ) * - 55 FROM tab1 # Datafusion - Expected - 7590 # Datafusion - Expected - -84 # Datafusion - Expected - 9410 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col1" at position 0 and "tab0\.col0 \* tab0\.col0 \- \(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 84 AS col1, col0 * + col0 - + - col1 AS col1 FROM tab0 +---- +-84 +-84 +-84 +306 +7590 +9410 query II rowsort label-7759 SELECT ALL + 25 AS col2, MAX ( DISTINCT + col2 ) FROM tab2 @@ -47524,8 +48039,11 @@ SELECT + 25 * - col2 AS col0 FROM tab0 # 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 "\(\- Int64\(\-2\)\) AS col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 2 AS col2, + 9 AS col2 FROM tab2 AS cor0 +---- +2 +9 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE 84 IS NULL @@ -47838,8 +48356,15 @@ SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) > col2 * col2 # Datafusion - Expected - 22 # Datafusion - Expected - -99 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col1, 22 AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +22 +22 +22 query I rowsort label-7876 SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NULL = NULL @@ -48012,8 +48537,11 @@ SELECT DISTINCT + COUNT ( * ), COUNT ( * ) AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +3 +99 query II rowsort SELECT ALL + col1 AS col0, col0 AS col1 FROM tab0 AS cor0 @@ -48235,8 +48763,15 @@ SELECT CAST ( + col1 AS INTEGER ) col1 FROM tab0 AS cor0 # Datafusion - Expected - -17 # Datafusion - Expected - -99 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(\-17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 AS col2, - 17 AS col2 FROM tab0 AS cor0 +---- +-10 +-17 +-17 +-17 +-47 +-99 query I rowsort SELECT DISTINCT col1 * + + col2 + + - col0 + - 65 * - 87 FROM tab1 @@ -48274,8 +48809,15 @@ SELECT ALL + ( - + col2 ) FROM tab0 cor0 # Datafusion - Expected - 57 # Datafusion - Expected - 99 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, 57 AS col0 FROM tab0 AS cor0 +---- +10 +47 +57 +57 +57 +99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to da0300228958b83adb21d46811b8340e @@ -48798,8 +49340,11 @@ SELECT ALL + + 93 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, 15 AS col2 FROM tab0 AS cor0 +---- +15 +3 query I rowsort SELECT - 58 col2 FROM tab0 cor0 @@ -49669,8 +50214,15 @@ SELECT - MAX ( - col0 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 2040 # Datafusion - Expected - 70 # Datafusion - Expected - 2880 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "\(\- tab1\.col2\) \* \(\- Int64\(30\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 AS col2, - col2 * - + 30 AS col2 FROM tab1 +---- +1770 +2040 +2880 +70 +70 +70 query I rowsort SELECT ALL + 71 AS col2 FROM tab1 WHERE NULL NOT IN ( - col2 ) @@ -50606,8 +51158,15 @@ SELECT ALL 5 - + ( COUNT ( * ) ) FROM tab0 AS cor0 # Datafusion - Expected - 2560 # Datafusion - Expected - -12 # Datafusion - Expected - 4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col0" at position 0 and "cor0\.col0 \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 12 AS col0, col0 * + col2 AS col0 FROM tab2 AS cor0 +---- +-12 +-12 +-12 +1058 +2560 +4350 query III rowsort SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) >= - col0 @@ -51746,8 +52305,11 @@ SELECT - 89 * - col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17784 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* Int64\(\-13\) \* Int64\(76\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 18 * - 13 * + + 76 AS col0, + COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +-17784 +3 query I rowsort SELECT DISTINCT 64 - 52 + - ( - col0 ) FROM tab0 AS cor0 @@ -52297,8 +52859,15 @@ SELECT - + COUNT ( ALL + 61 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - 96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 AS col2, - col2 AS col2 FROM tab1 cor0 +---- +-59 +-68 +-96 +59 +68 +96 query I rowsort SELECT + col1 + 17 col0 FROM tab1 AS cor0 WHERE NOT - col2 IN ( col0 ) @@ -52647,8 +53216,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN 98 AND - col2 # Datafusion - Expected - -201019 # Datafusion - Expected - 5 # Datafusion - Expected - -2125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "\(\- cor0\.col1\) \* \(\- cor0\.col1\) \* \(\- CAST\(cor0\.col0 AS Int32\)\) \+ cor0\.col2 \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col1 AS col1, - col1 * + ( + - col1 ) * - CAST ( + col0 AS INTEGER ) + + + col2 + - + col2 AS col1 FROM tab1 AS cor0 +---- +-201019 +-2125 +-9996 +14 +47 +5 query I rowsort label-8675 SELECT + + COUNT ( ALL + - 1 ) AS col2 FROM tab0 cor0 @@ -52789,8 +53365,11 @@ SELECT col1 + + - col2 * + - col0 AS col2, - col1 * - + 82 AS col0 FROM tab0 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col0" at position 0 and "tab2\.col2 \* CAST\(NULL AS Int32\) \* tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 6 col0, col2 * + + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab2 +---- +6 +NULL query I rowsort SELECT DISTINCT - ( col2 ) AS col2 FROM tab1 WHERE NOT - - col1 * + 36 < NULL @@ -53122,8 +53701,15 @@ SELECT ALL col2 * col1 / + col2 FROM tab0 AS cor0 # Datafusion - Expected - 123264 # Datafusion - Expected - 78 # Datafusion - Expected - 225463 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-20\)\) \+ cor0\.col2 AS col2" at position 0 and "cor0\.col0 \+ cor0\.col2 \* \(\- CAST\(\(\- cor0\.col1\) AS Int32\)\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 20 + col2 AS col2, + col0 + col2 * + - CAST ( - col1 AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0 +---- +123264 +225463 +27025 +43 +60 +78 query I rowsort SELECT - - col2 - col2 + 18 * - col2 FROM tab0 AS cor0 @@ -53445,8 +54031,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 45 AS col1, - COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +-3 +45 query I rowsort SELECT DISTINCT - 63 * - 17 AS col1 FROM tab1 AS cor0 @@ -53516,8 +54105,15 @@ SELECT + col1 AS col1, 96 AS col2 FROM tab0 # Datafusion - Expected - 87 # Datafusion - Expected - -85 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 85 AS col2, ( col0 ) AS col2 FROM tab0 +---- +-85 +-85 +-85 +15 +87 +97 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -53695,8 +54291,15 @@ SELECT + ( - col1 ) FROM tab2 WHERE NOT col1 BETWEEN - 35 AND + col1 # Datafusion - Expected - NULL # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "Int64\(\-69\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col2, - 69 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 +---- +46 +64 +75 +NULL +NULL +NULL query II rowsort label-8842 SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) FROM tab1 @@ -54112,8 +54715,11 @@ SELECT MAX ( + - col0 ) FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "Int64\(\-79\) \+ sum\(tab0\.col0\) \- Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 40 AS col0, - 79 + SUM ( ALL + + col0 ) - + + 22 AS col0 FROM tab0 +---- +40 +98 query I rowsort SELECT ALL 77 * + + col0 FROM tab1 @@ -54644,8 +55250,15 @@ NULL # Datafusion - Expected - 5025 # Datafusion - Expected - 69 # Datafusion - Expected - 2346 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ tab2\.col2 AS col1" at position 0 and "tab2\.col0 \* \(\- \(\- tab2\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + + col2 AS col1, col0 * - - col1 AS col1 FROM tab2 +---- +104 +133 +2346 +4928 +5025 +69 query I rowsort label-8990 SELECT 83 + + 34 / 88 FROM tab0 @@ -54784,8 +55397,11 @@ 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\(Int64\(1\)\) AS count\(\*\) / count\(\(\- cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 18 AS col1, COUNT ( * ) / COUNT ( - col0 ) AS col1 FROM tab1 AS cor0 +---- +1 +18 query I rowsort label-9013 SELECT + CAST ( + + MIN ( DISTINCT + ( - 61 ) ) AS INTEGER ) FROM tab2 AS cor0 @@ -56260,8 +56876,11 @@ SELECT 99 col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 291 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col1" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* max\(DISTINCT tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 69 AS col1, CAST ( + COUNT ( * ) AS INTEGER ) * MAX ( DISTINCT col0 ) AS col1 FROM tab0 +---- +-69 +291 query III rowsort label-9268 SELECT * FROM tab2 WHERE NOT - CAST ( + + col2 AS INTEGER ) IS NOT NULL @@ -57121,8 +57740,11 @@ SELECT ALL * FROM tab2 cor0 WHERE ( col0 ) = NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col2, + 90 AS col2 FROM tab2 AS cor0 +---- +3 +90 query I rowsort label-9404 SELECT + MIN ( DISTINCT + 50 ) FROM tab1 AS cor0 @@ -57163,8 +57785,15 @@ SELECT ALL 67 * - col1 FROM tab0 # Datafusion - Expected - 10 # Datafusion - Expected - -97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, + col2 col0 FROM tab0 +---- +-15 +-87 +-97 +10 +47 +99 query III rowsort SELECT * FROM tab0 WHERE NOT col1 + - - col0 IS NULL @@ -57285,8 +57914,15 @@ SELECT ALL MAX ( + ( - + 15 ) ) AS col1 FROM tab2 # Datafusion - Expected - -81 # Datafusion - Expected - 79 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \+ \(\- tab0\.col2\) \+ \(\- tab0\.col2\) AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 99 + - col2 + - + col2 col0, - ( + col1 ) AS col0 FROM tab0 +---- +-1 +-21 +-81 +-99 +5 +79 query I rowsort SELECT 57 * - - 95 + col0 * 40 / + 33 / + + col1 AS col2 FROM tab0 WHERE 15 + + - 91 + ( col1 ) / - 19 IS NULL @@ -57355,8 +57991,11 @@ SELECT ALL + - 44 * - col2 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4544 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* Int64\(\-64\) AS col2" at position 0 and "Int64\(65\) \- Int64\(\-5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 71 * - 64 AS col2, 65 - - 5 AS col2 FROM tab2 cor0 +---- +-4544 +70 query I rowsort SELECT - col1 / + 62 col0 FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND ( - col0 ) @@ -58325,8 +58964,15 @@ SELECT COUNT ( * ) * 35 + 59 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - NULL # Datafusion - Expected - -3886 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* \(\- tab2\.col2\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / \(\- \(\- tab2\.col2\)\) \+ \(\- Int64\(\-16\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 * - col2 AS col1, CAST ( NULL AS INTEGER ) / - - col2 + - ( - 16 ) AS col1 FROM tab2 +---- +-1173 +-3080 +-3886 +NULL +NULL +NULL query II rowsort label-9611 SELECT - CAST ( - 74 AS INTEGER ), + col0 FROM tab2 AS cor0 @@ -58376,8 +59022,15 @@ SELECT DISTINCT - MIN ( DISTINCT - col2 ) FROM tab2 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 82 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 82 ) AS col2, col0 AS col2 FROM tab0 AS cor0 +---- +15 +82 +82 +82 +87 +97 query II rowsort label-9618 SELECT + + ( + COUNT ( * ) ), + 52 AS col1 FROM tab1 AS cor0 @@ -58602,8 +59255,15 @@ SELECT + col0 * - - col0 * + - 2 AS col2 FROM tab2 # Datafusion - Expected - 1 # Datafusion - Expected - 425 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \* Int64\(\-85\) AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 * - 85 col2, 1 AS col2 FROM tab1 +---- +1 +1 +1 +1190 +3995 +425 query I rowsort label-9657 SELECT - ( - col0 ) / - CAST ( NULL AS INTEGER ) * + 3 AS col0 FROM tab2 @@ -58786,8 +59446,15 @@ SELECT ALL + COUNT ( + 41 ) FROM tab1 AS cor0 WHERE col2 IS NULL # Datafusion - Expected - 45 # Datafusion - Expected - -77 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 77 AS col1, + 45 AS col1 FROM tab2 AS cor0 WHERE 50 IS NOT NULL +---- +-77 +-77 +-77 +45 +45 +45 query III rowsort label-9688 SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS FLOAT8 ) * - col0 IS NULL @@ -59019,8 +59686,11 @@ SELECT * FROM tab0 AS cor0 WHERE NOT NULL < ( col2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( 95 ) AS col0, + ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0 +---- +3 +95 query I rowsort SELECT DISTINCT - 64 * 24 * + col2 FROM tab2 @@ -59232,8 +59902,15 @@ SELECT DISTINCT 51 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 56 # Datafusion - Expected - -81 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.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 II valuesort SELECT ALL - col1 AS col1, 56 AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +56 +56 +56 query I rowsort label-9762 SELECT DISTINCT CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 cor0 @@ -59482,8 +60159,11 @@ SELECT DISTINCT * FROM tab2 WHERE + col1 * - 3 IS NOT NULL # 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\(\(\- tab2\.col2\)\) AS col1" at position 0 and "Int64\(\-96\) \* \(\- count\(tab2\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( COUNT ( - col2 ) ) col1, - 96 * - + COUNT ( + col0 ) AS col1 FROM tab2 +---- +288 +3 query II rowsort SELECT DISTINCT col2 + - ( - - 71 ) AS col2, 71 FROM tab0 @@ -59926,8 +60606,15 @@ SELECT ALL + 15 - - col2 FROM tab1 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 AS col0 FROM tab1 cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-9875 SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_49.slt b/data/sqlite/random/aggregates/slt_good_49.slt index 96d1a86..ac45f29 100644 --- a/data/sqlite/random/aggregates/slt_good_49.slt +++ b/data/sqlite/random/aggregates/slt_good_49.slt @@ -349,8 +349,11 @@ SELECT col2 FROM tab1 WHERE NOT ( + CAST ( NULL AS INTEGER ) * + col1 ) IS NOT N # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 19 col2, - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1 +---- +-19 +0 query II rowsort SELECT DISTINCT + ( + 30 ) AS col2, + 17 FROM tab0 @@ -416,8 +419,15 @@ SELECT DISTINCT MIN ( 12 ) * - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor # Datafusion - Expected - 47 # Datafusion - Expected - 62 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 62 ) col0, + col1 AS col0 FROM tab1 AS cor0 +---- +14 +47 +5 +62 +62 +62 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> ( col0 + - + col1 ) @@ -705,8 +715,15 @@ SELECT * FROM tab1 AS cor0 WHERE col2 - + col2 IS NOT NULL # Datafusion - Expected - -51 # Datafusion - Expected - 99 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ tab1\.col1 AS col1" at position 0 and "\(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 52 + col1 col1, - col0 AS col1 FROM tab1 +---- +-51 +-85 +-91 +57 +66 +99 query III rowsort SELECT * FROM tab0 WHERE NULL < - col0 @@ -1103,8 +1120,11 @@ SELECT + col1 * + + col2 * - 82, - col0 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 44 AS col0, + COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +3 +44 query I rowsort label-180 SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - ( - col1 ) > ( - + 35 + col2 ) @@ -1292,8 +1312,15 @@ SELECT - 78 AS col1, + col0 FROM tab0 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -93 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 93 AS col0, - col1 AS col0 FROM tab1 cor0 +---- +-14 +-47 +-5 +-93 +-93 +-93 query II rowsort SELECT ALL - col2 AS col0, 90 * - col1 * + col1 - - col0 AS col1 FROM tab1 AS cor0 @@ -1321,8 +1348,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + COUNT ( * ) AS col0, + 57 AS col0 FROM tab1 AS cor0 +---- +-3 +57 query II rowsort label-214 SELECT 77 AS col0, + COUNT ( * ) * - 21 FROM tab1 AS cor0 @@ -2532,8 +2562,15 @@ SELECT DISTINCT + 43 / + + col1 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 60 # Datafusion - Expected - -77 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col1, + 60 AS col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +60 +60 +60 query I rowsort SELECT ALL + 5 + + + col2 + col0 AS col0 FROM tab2 @@ -2736,8 +2773,15 @@ SELECT DISTINCT 38 + - MIN ( + col0 ) FROM tab1 # Datafusion - Expected - 41 # Datafusion - Expected - -96 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col2, 41 AS col2 FROM tab1 +---- +-59 +-68 +-96 +41 +41 +41 query I rowsort SELECT ALL 57 + + 98 AS col0 FROM tab0 @@ -4110,8 +4154,15 @@ SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL > - ( 4 ) # Datafusion - Expected - 97 # Datafusion - Expected - -714 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* \(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * - - col0 AS col0, 97 AS col0 FROM tab1 AS cor0 +---- +-425 +-4277 +-714 +97 +97 +97 query III rowsort label-673 SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NOT NULL @@ -4689,8 +4740,15 @@ SELECT * FROM tab0 WHERE + 20 IS NULL # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, + col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-766 SELECT MIN ( ALL + + col0 ) FROM tab2 @@ -4855,8 +4913,15 @@ SELECT + ( 75 ) AS col1, - 40 FROM tab0 AS cor0 # Datafusion - Expected - -125 # Datafusion - Expected - 83 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-83\)\) AS col1" at position 0 and "\(\- cor0\.col2\) \+ Int64\(\-67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 83 AS col1, - col2 + - 67 AS col1 FROM tab2 AS cor0 +---- +-107 +-125 +-90 +83 +83 +83 query I rowsort label-791 SELECT ALL - MIN ( + + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 @@ -5053,8 +5118,15 @@ SELECT + col1 FROM tab2 WHERE ( NULL <= + col0 ) # Datafusion - Expected - -1 # Datafusion - Expected - 99 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col2 AS Int32\) AS col0" at position 0 and "tab0\.col0 \+ \(\- tab0\.col0\) \+ \(\- tab0\.col2\) / tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + + col2 AS INTEGER ) col0, col0 + - col0 + + - col2 / col2 AS col0 FROM tab0 +---- +-1 +-1 +-1 +10 +47 +99 query II rowsort label-824 SELECT COUNT ( * ), + COUNT ( * ) col1 FROM tab1 @@ -5773,8 +5845,15 @@ SELECT COUNT ( * ) * 40 FROM tab1 # Datafusion - Expected - -67 # Datafusion - Expected - 58 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "Int64\(\-67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 col1, - 67 AS col1 FROM tab2 +---- +-67 +-67 +-67 +23 +40 +58 query III rowsort SELECT DISTINCT * FROM tab1 WHERE + ( 46 ) BETWEEN col1 AND - col2 @@ -6394,8 +6473,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - -96 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 col2, col1 AS col2 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +14 +47 +5 query I rowsort SELECT DISTINCT - - col1 + - col2 AS col2 FROM tab1 AS cor0 @@ -6840,8 +6926,15 @@ SELECT DISTINCT - - CAST ( col0 AS INTEGER ) FROM tab1 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +NULL +NULL +NULL query II rowsort SELECT DISTINCT - 47 * - 99 * - col1 AS col2, - 41 * + - col0 * + col2 + col1 + + col1 FROM tab0 AS cor0 @@ -7204,8 +7297,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= - col1 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, col1 AS col0 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT DISTINCT - + 48 * col1 + - 74 + + - col1 + col2 FROM tab1 AS cor0 @@ -7345,8 +7445,15 @@ SELECT col2, col1 * - - 40 FROM tab1 AS cor0 # Datafusion - Expected - 31 # Datafusion - Expected - 97 # Datafusion - Expected - 100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col2 \+ cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, + col2 + + col1 AS col2 FROM tab0 AS cor0 +---- +100 +128 +15 +31 +87 +97 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT col1 + col2 IS NULL @@ -7612,8 +7719,11 @@ SELECT ALL - 42 + + - col1 * - 51 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(tab2\.col0\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( + col0 ) AS col0, + 81 AS col0 FROM tab2 +---- +75 +81 query III rowsort SELECT DISTINCT * FROM tab0 WHERE + + 91 IS NOT NULL @@ -7943,8 +8053,15 @@ SELECT DISTINCT col2 * 5 FROM tab2 # Datafusion - Expected - 67 # Datafusion - Expected - 29 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 29 AS col0, + col1 AS col0 FROM tab2 WHERE NOT - col1 = col2 +---- +29 +29 +29 +51 +67 +77 query I rowsort label-1287 SELECT ALL col2 / 55 FROM tab0 cor0 @@ -8660,8 +8777,15 @@ SELECT - col2 * - 74 - - + 63 AS col2 FROM tab2 # Datafusion - Expected - -87 # Datafusion - Expected - -97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col2, - col0 AS col2 FROM tab0 +---- +-15 +-15 +-87 +-87 +-97 +-97 query II rowsort SELECT DISTINCT 27, 90 AS col2 FROM tab0 @@ -10983,8 +11107,15 @@ SELECT col0 AS col1 FROM tab1 cor0 WHERE NOT 4 * + col0 * - 79 IS NOT NULL # Datafusion - Expected - 28 # Datafusion - Expected - 1760 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* Int64\(24\) \+ cor0\.col2 \+ Int64\(\-19\) AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 70 * + 24 + + + col2 + + - 19 AS col1, 28 AS col1 FROM tab0 AS cor0 +---- +1671 +1708 +1760 +28 +28 +28 query I rowsort label-1799 SELECT DISTINCT + SUM ( DISTINCT + col0 ) / - 63 FROM tab2 @@ -11789,8 +11920,15 @@ SELECT COUNT ( * ) * - 96 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, + col1 AS col0 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT ALL 61 + + col1 / - col2 * - ( col1 ) FROM tab0 AS cor0 WHERE NULL = - 22 @@ -12054,8 +12192,11 @@ SELECT * FROM tab2 WHERE NOT - col2 BETWEEN - col2 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col1" at position 0 and "Int64\(56\) \* count\(DISTINCT Int64\(36\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 47 AS col1, + 56 * COUNT ( DISTINCT + 36 ) AS col1 FROM tab1 +---- +47 +56 query I rowsort SELECT + 2 + + col2 FROM tab2 @@ -12305,8 +12446,15 @@ SELECT - col2 * - 71 col1 FROM tab1 # Datafusion - Expected - 0 # Datafusion - Expected - 97 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "\(\- \(\- Int64\(13\)\)\) / tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col2, - ( + - ( + 13 ) ) / + col0 AS col2 FROM tab0 +---- +0 +0 +0 +15 +87 +97 query I rowsort label-2023 SELECT CAST ( + 64 AS INTEGER ) AS col1 FROM tab2 @@ -12980,8 +13128,15 @@ SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 33 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 33 AS col0, + col2 AS col0 FROM tab1 AS cor0 +---- +33 +33 +33 +59 +68 +96 query I rowsort SELECT DISTINCT 95 + + col0 col2 FROM tab0 @@ -13164,8 +13319,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(78\) \+ Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + 74 ) AS col2, - COUNT ( * ) * + 78 + + 43 AS col2 FROM tab2 +---- +-191 +74 query I rowsort label-2166 SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 40 AS col2 FROM tab0 WHERE NULL IS NOT NULL @@ -13446,8 +13604,15 @@ SELECT + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - -32 # Datafusion - Expected - -8 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(8\)\) AS col0" at position 0 and "Int64\(55\) \- Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + 8 ) AS col0, + 55 - 87 AS col0 FROM tab1 +---- +-32 +-32 +-32 +-8 +-8 +-8 query I rowsort label-2211 SELECT DISTINCT 42 col2 FROM tab1 cor0 WHERE col2 / - col1 * + 19 < col1 * - ( - + 62 ) + + CAST ( NULL AS INTEGER ) @@ -13535,8 +13700,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 +---- +3 +3 query I rowsort SELECT DISTINCT + col1 * - - 31 + + col1 / - - 92 AS col0 FROM tab1 AS cor0 WHERE NULL > col1 @@ -13630,8 +13798,9 @@ SELECT ALL + + ( - - 98 ) AS col2 FROM tab1 AS cor0 98 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col2\) / cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, - col2 / col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL +---- query II rowsort SELECT ALL - col2 AS col2, + 81 FROM tab2 AS cor0 @@ -13997,8 +14166,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \- min\(Int64\(0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 95 * + 7 AS col1, COUNT ( * ) - + MIN ( - 0 ) AS col1 FROM tab1 +---- +3 +665 query III rowsort SELECT * FROM tab1 WHERE NOT NULL <> + 83 * col0 * + ( - col2 ) + + 50 * + col1 @@ -14100,8 +14272,15 @@ SELECT + col1 / col2 + - 46 AS col2, col0 * + 73 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2, col2 FROM tab0 WHERE NULL IS NULL +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT DISTINCT - 79 + - col1 FROM tab2 @@ -15070,8 +15249,15 @@ SELECT * FROM tab1 WHERE NOT ( - - 57 + + 7 ) = - col0 # Datafusion - Expected - 77 # Datafusion - Expected - 75 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab2\.col0\)\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - col0 ) AS col2, col1 col2 FROM tab2 +---- +46 +51 +64 +67 +75 +77 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - + 11 >= NULL @@ -15150,8 +15336,15 @@ SELECT DISTINCT ( + + CAST ( + 84 AS INTEGER ) ) + COUNT ( * ) FROM tab0 AS cor0 # Datafusion - Expected - 41 # Datafusion - Expected - 58 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 AS col0, 41 AS col0 FROM tab2 AS cor0 +---- +23 +40 +41 +41 +41 +58 query I rowsort label-2490 SELECT - - ( - COUNT ( 1 ) ) FROM tab0 AS cor0 @@ -15613,8 +15806,15 @@ SELECT col0, - ( - col0 ) AS col1 FROM tab2 cor0 WHERE ( ( NOT + col1 * - col1 = # Datafusion - Expected - 68 # Datafusion - Expected - 8 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 8 AS col1, + col2 col1 FROM tab1 AS cor0 +---- +59 +68 +8 +8 +8 +96 # Datafusion - Datafusion expected results: # Datafusion - Expected - -107811 @@ -15623,8 +15823,15 @@ SELECT ALL 8 AS col1, + col2 col1 FROM tab1 AS cor0 # Datafusion - Expected - 36 # Datafusion - Expected - -24299 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(\-11\) \* cor0\.col2 AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * + - 11 * + col2 AS col1, + 36 AS col1 FROM tab0 cor0 +---- +-107811 +-1100 +-24299 +36 +36 +36 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 / + col0 IS NOT NULL @@ -15833,8 +16040,11 @@ SELECT ALL ( + col0 ) col0 FROM tab2 WHERE NOT col0 >= - 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +-9 +3 query I rowsort label-2601 SELECT ALL + + ( - COUNT ( * ) ) FROM tab0 cor0 @@ -16346,8 +16556,15 @@ SELECT + ( + - 16 ) FROM tab1 cor0 # Datafusion - Expected - -230450 # Datafusion - Expected - 75 # Datafusion - Expected - -391561 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(14\) \+ \(\- cor0\.col0\) \+ cor0\.col0 \* \(\- cor0\.col2\) \* Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 col1, 14 + - col0 + + + col0 * - + col2 * 90 AS col1 FROM tab2 AS cor0 +---- +-230450 +-391561 +-95252 +46 +64 +75 query I rowsort SELECT col1 col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL @@ -16820,8 +17037,15 @@ SELECT ALL + 94 - + col0 AS col0 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - 75 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 75 AS col0, + col1 AS col0 FROM tab0 AS cor0 +---- +1 +21 +75 +75 +75 +81 query I rowsort label-2755 SELECT MAX ( + + 30 ) * + + ( - 15 ) FROM tab2 cor0 @@ -17421,14 +17645,24 @@ SELECT ALL + SUM ( + + CAST ( - + col0 AS INTEGER ) ) FROM tab0 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - -96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 col0, - col2 AS col0 FROM tab1 AS cor0 +---- +-59 +-59 +-68 +-68 +-96 +-96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 15 AS col1, + 99 AS col1 FROM tab2 +---- +15 +99 query I rowsort label-2860 SELECT ALL - MIN ( ALL - col1 ) AS col2 FROM tab0 @@ -18540,8 +18774,15 @@ NULL # Datafusion - Expected - -47 # Datafusion - Expected - -99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "\(\- cor0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2, - col2 FROM tab0 AS cor0 +---- +-10 +-10 +-47 +-47 +-99 +-99 query I rowsort SELECT - col1 * + + col1 + - + ( col2 ) + col0 FROM tab0 AS cor0 @@ -20041,8 +20282,15 @@ SELECT ALL 64 col0 FROM tab2 # Datafusion - Expected - 10 # Datafusion - Expected - -97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, col2 AS col1 FROM tab0 +---- +-15 +-87 +-97 +10 +47 +99 query I rowsort label-3298 SELECT COUNT ( * ) / - - COUNT ( * ) FROM tab1 AS cor0 @@ -21211,8 +21459,15 @@ SELECT COUNT ( * ) * - 49 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, + col0 AS col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT col0 * + - 13 AS col1 FROM tab1 @@ -21417,8 +21672,15 @@ SELECT + + 61 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 # Datafusion - Expected - 10 # Datafusion - Expected - 97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 AS col1, col2 AS col1 FROM tab0 AS cor0 +---- +10 +15 +47 +87 +97 +99 query I rowsort SELECT ALL - ( - + col0 ) * - 94 AS col1 FROM tab0 AS cor0 @@ -21920,8 +22182,15 @@ SELECT ALL 58 * + col2 AS col1 FROM tab0 # Datafusion - Expected - 0 # Datafusion - Expected - 5576 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \* \(\- CAST\(\(\- Int64\(16\)\) AS Int32\)\) \* Int64\(\-25\) \+ Int64\(\-24\) AS col1" at position 0 and "Int64\(17\) / \(\- Int64\(68\)\) \* tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * - + CAST ( - + 16 AS INTEGER ) * - 25 + - 24 AS col1, + 17 / - + 68 * + ( col1 ) AS col1 FROM tab1 +---- +0 +0 +0 +18776 +1976 +5576 query II rowsort SELECT ALL - col2 AS col2, col0 FROM tab1 AS cor0 @@ -22581,8 +22850,15 @@ SELECT 34 / + col0 FROM tab1 AS cor0 # Datafusion - Expected - -136 # Datafusion - Expected - 96 # Datafusion - Expected - -192 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col2\) \+ \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, - col2 + - + ( col2 ) AS col0 FROM tab1 AS cor0 +---- +-118 +-136 +-192 +59 +68 +96 query I rowsort label-3712 SELECT ALL + - CAST ( NULL AS INTEGER ) / + + col1 FROM tab1 AS cor0 @@ -23061,8 +23337,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 AS col2, 83 + - + COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +80 +87 query I rowsort SELECT DISTINCT - 94 * - col0 AS col0 FROM tab0 AS cor0 @@ -23342,8 +23621,15 @@ SELECT ALL + col1 * + 5 AS col1 FROM tab1 # Datafusion - Expected - -53 # Datafusion - Expected - 81 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(\-53\) \- cor0\.col2 / Int64\(\-21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col0, - 53 - col2 / - 21 AS col0 FROM tab0 AS cor0 +---- +-49 +-51 +-53 +1 +21 +81 query I rowsort SELECT + - 98 + + + col0 AS col0 FROM tab2 AS cor0 @@ -24123,8 +24409,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 87 * + 19 * + 75 * - COUNT ( * ) AS col2, ( COUNT ( + col2 ) ) + 81 AS col2 FROM tab0 AS cor0 +---- +371925 +84 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT 5 IN ( + - col1 ) @@ -24138,8 +24427,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT 5 IN ( + - col1 ) # Datafusion - Expected - 81 # Datafusion - Expected - -2 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) / Int64\(40\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 / 40 AS col1, 81 AS col1 FROM tab1 AS cor0 +---- +-1 +-2 +-2 +81 +81 +81 query I rowsort label-3969 SELECT ALL - col2 / - 77 FROM tab1 AS cor0 @@ -24968,8 +25264,11 @@ SELECT * FROM tab2 WHERE NOT - - 54 + + col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col2, 14 AS col2 FROM tab0 +---- +14 +3 query I rowsort label-4105 SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NULL IS NULL @@ -25109,8 +25408,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MIN ( ALL + col2 ) AS col1, + ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 +---- +-3 +10 query I rowsort SELECT + col0 + + + col2 FROM tab2 AS cor0 @@ -25239,8 +25541,15 @@ SELECT ALL + col0 * 87 FROM tab2 AS cor0 # Datafusion - Expected - 18 # Datafusion - Expected - 81 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, 18 col0 FROM tab0 AS cor0 +---- +1 +18 +18 +18 +21 +81 query III rowsort label-4148 SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN col2 AND col1 @@ -25910,8 +26219,15 @@ SELECT + + col0, - col2 / - 85 FROM tab1 AS cor0 # Datafusion - Expected - 81 # Datafusion - Expected - -84 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* \(\- Int64\(\-84\)\) \* cor0\.col1 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * - - 84 * ( + + col1 ) AS col0, col1 AS col0 FROM tab0 AS cor0 +---- +-37044 +-551124 +-84 +1 +21 +81 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= - col0 * - col0 @@ -26569,8 +26885,15 @@ NULL # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, col2 AS col1 FROM tab2 cor0 +---- +23 +23 +40 +40 +58 +58 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 4 - - + 54 IS NOT NULL @@ -27001,8 +27324,11 @@ SELECT SUM ( ALL - 53 ) AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 col2, COUNT ( * ) AS col2 FROM tab2 +---- +3 +98 query II rowsort SELECT + col1, col0 AS col2 FROM tab1 AS cor0 @@ -27948,8 +28274,15 @@ SELECT DISTINCT - 23 / ( - + col0 ) FROM tab1 # Datafusion - Expected - -17 # Datafusion - Expected - -97 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col0" at position 0 and "Int64\(\-17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 col0, - 17 AS col0 FROM tab0 +---- +-15 +-17 +-17 +-17 +-87 +-97 query II rowsort label-4582 SELECT col2 AS col0, CAST ( NULL AS INTEGER ) * + 51 + + ( + + col0 ) AS col2 FROM tab0 @@ -28267,8 +28600,15 @@ SELECT ALL - 29 + - + 26 * - 34 FROM tab2 # Datafusion - Expected - 4624 # Datafusion - Expected - -5 # Datafusion - Expected - 3481 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "tab1\.col2 \* tab1\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - col1 ) AS col2, col2 * col2 AS col2 FROM tab1 +---- +-14 +-47 +-5 +3481 +4624 +9216 query I rowsort label-4632 SELECT CAST ( - - ( COUNT ( * ) ) AS INTEGER ) * - MIN ( DISTINCT + + col1 ) FROM tab0 @@ -28709,8 +29049,15 @@ SELECT ALL * FROM tab0 WHERE NULL > - ( + 83 ) # Datafusion - Expected - -1974 # Datafusion - Expected - 5 # Datafusion - Expected - -210 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "Int64\(42\) \* \(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col0, 42 * - col1 AS col0 FROM tab1 +---- +-1974 +-210 +-588 +14 +47 +5 query I rowsort label-4704 SELECT DISTINCT - ( - MAX ( + - col1 ) ) * - 17 FROM tab0 @@ -28724,8 +29071,15 @@ SELECT DISTINCT - ( - MAX ( + - col1 ) ) * - 17 FROM tab0 # Datafusion - Expected - -66 # Datafusion - Expected - -99 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "\(\- cor0\.col1\) \+ \(\- \(\- cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 col2, - col1 + - - col0 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-66 +-99 +66 +96 query I rowsort SELECT ALL + 75 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL @@ -29000,8 +29354,11 @@ SELECT - col2 * col1 / - + col2 AS col1, col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 80 AS col1, + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 +---- +-80 +9 query I rowsort label-4750 SELECT - MIN ( - col2 ) AS col2 FROM tab0 cor0 @@ -29709,8 +30066,10 @@ SELECT ALL + + ( - ( - col1 ) ) FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 2123f4f7b8a8a91ffbe5700229fb978b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / Int64\(89\) AS col1" at position 1 and "cor0\.col0 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 45 AS col2, col0 / + 89 AS col1, col0 AS col1 FROM tab2 AS cor0 +---- +9 values hashing to f2c4495b125464d0840aee214dcc9d83 query I rowsort label-4873 SELECT - 6 / 11 * + 89 / COUNT ( * ) / 67 * - COUNT ( * ) + + MAX ( + col2 + - col1 ) FROM tab2 AS cor0 @@ -29761,8 +30120,15 @@ SELECT DISTINCT + ( + 62 ) * + 67 * + col1 FROM tab2 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - -77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 AS col2, ( + + col1 ) AS col2 FROM tab2 cor0 +---- +-51 +-67 +-77 +51 +67 +77 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 > ( - 93 * - - 78 ) @@ -30129,8 +30495,15 @@ SELECT COUNT ( ALL + ( + + 9 ) ) AS col1 FROM tab0 # Datafusion - Expected - 44352 # Datafusion - Expected - 3886 # Datafusion - Expected - 45225 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* tab2\.col2 AS col0" at position 0 and "tab2\.col1 \* \(\- Int64\(9\)\) \* \(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + col2 AS col0, + col1 * - ( + 9 ) * - ( + col0 ) AS col0 FROM tab2 +---- +1173 +21114 +3080 +3886 +44352 +45225 query I rowsort SELECT ALL - 78 * + col2 col2 FROM tab1 WHERE NOT col1 / - col0 IS NULL @@ -30833,8 +31206,15 @@ SELECT col1 + + 55 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 4928 # Datafusion - Expected - 9 # Datafusion - Expected - 5025 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \+ \(\- tab2\.col2\) AS col0" at position 0 and "tab2\.col0 \* tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 + - col2 AS col0, col0 * col1 AS col0 FROM tab2 +---- +2346 +28 +37 +4928 +5025 +9 query I rowsort SELECT DISTINCT + col0 - - col1 * - 92 AS col2 FROM tab0 @@ -31057,8 +31437,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 AS col1, - COUNT ( * ) col1 FROM tab0 +---- +-3 +47 query I rowsort label-5095 SELECT ALL 13 + + COUNT ( ALL ( - - col2 ) ) * - 52 AS col0 FROM tab2 WHERE NULL >= NULL @@ -31372,8 +31755,11 @@ SELECT ALL + ( + - ( - col2 ) ) AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1934 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ Int64\(1\) \+ Int64\(\-28\) \* Int64\(71\) 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 II valuesort SELECT DISTINCT 53 + 1 + + - 28 * + + 71 AS col2, MIN ( DISTINCT col2 ) AS col2 FROM tab2 +---- +-1934 +23 query II rowsort SELECT + col0 * + col2, + col0 FROM tab0 @@ -31531,8 +31917,15 @@ SELECT DISTINCT + MAX ( ALL + - col1 ) FROM tab2 # Datafusion - Expected - 0 # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \* CAST\(NULL AS Float64\) AS col2" at position 0 and "tab1\.col1 \+ \(\- tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + 53 * + CAST ( NULL AS FLOAT8 ) col2, col1 + - col1 AS col2 FROM tab1 +---- +0 +0 +0 +NULL +NULL +NULL query I rowsort SELECT DISTINCT + 14 * + col0 FROM tab0 AS cor0 @@ -33264,8 +33657,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT + col1 < NULL # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2, col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT + col1 * 70 * 85 AS col1 FROM tab1 @@ -33493,8 +33893,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + COUNT ( * ) AS col0, 90 AS col0 FROM tab2 AS cor0 WHERE col1 < + 37 +---- +0 +90 query II rowsort SELECT DISTINCT - col1, + col0 AS col1 FROM tab0 AS cor0 @@ -33849,8 +34252,15 @@ SELECT * FROM tab1 WHERE - - CAST ( col1 AS INTEGER ) / + 82 + - col1 / + col2 * # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, col0 AS col2 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT + ( 51 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL @@ -36582,8 +36992,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 25 AS col1, COUNT ( * ) * 16 col1 FROM tab0 AS cor0 +---- +-25 +48 query I rowsort label-6012 SELECT - CAST ( + 41 AS INTEGER ) FROM tab2 @@ -36936,8 +37349,9 @@ SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab1 cor0 -3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col0\) / \(\- cor0\.col0\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( col2 ) * - col0 / + - col0 + - ( + CAST ( NULL AS INTEGER ) ) AS col0, col2 AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL +---- query I rowsort label-6069 SELECT + MIN ( + col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT 66 IS NOT NULL @@ -36955,8 +37369,10 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 * + - 40 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 67c22a4ddb16f7f3ed172737ff1c8772 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col1\) \* \(\- cor0\.col1\) \+ cor0\.col2 \* Int64\(\-44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + col1 AS col1, - col1 * + ( - + col1 ) + + + col2 * - 44 AS col1, - - 76 FROM tab0 AS cor0 +---- +9 values hashing to 56096229045c485300679f7c1af905e6 query I rowsort SELECT ALL + ( + + ( col2 ) ) + 66 FROM tab2 cor0 @@ -36972,8 +37388,15 @@ SELECT ALL + ( + + ( col2 ) ) + 66 FROM tab2 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - -16 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 16 AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +-16 +-16 +-16 +14 +47 +5 query I rowsort SELECT + col0 FROM tab1 AS cor0 WHERE NULL <> NULL @@ -37642,8 +38065,15 @@ SELECT DISTINCT + 84 * 82 FROM tab0 AS cor0 # Datafusion - Expected - 12 # Datafusion - Expected - 91 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(80\) \- Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( col0 ) AS col1, 80 - + + 68 AS col1 FROM tab1 cor0 +---- +12 +12 +12 +51 +85 +91 query I rowsort label-6184 SELECT DISTINCT COUNT ( DISTINCT + 58 ) FROM tab0 AS cor0 @@ -38479,8 +38909,15 @@ SELECT DISTINCT - CAST ( 78 AS INTEGER ) + - col0 AS col2, 17 * + col2 AS col0 F # Datafusion - Expected - 10 # Datafusion - Expected - 44 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ \(\- tab0\.col1\) \+ Int64\(80\) \+ Int64\(\-49\) \+ tab0\.col2 AS col1" at position 0 and "\(\- tab0\.col2\) \* tab0\.col1 / \(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 + ( ( - ( + col1 ) ) ) + 80 + + - 49 + col2 AS col1, - col2 * + col1 / - col1 AS col1 FROM tab0 +---- +10 +228 +30 +44 +47 +99 query I rowsort SELECT DISTINCT 55 + - 77 - col2 * - - col0 AS col1 FROM tab0 @@ -39250,8 +39687,15 @@ NULL # Datafusion - Expected - 144 # Datafusion - Expected - 0 # Datafusion - Expected - 196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) / Int64\(82\) AS col1" at position 0 and "Int64\(97\) \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 73 / ( + 82 ) col1, ( + 97 ) + + col2 AS col1 FROM tab0 AS cor0 +---- +0 +0 +0 +107 +144 +196 query II rowsort label-6448 SELECT + + 45 * + SUM ( - 29 ) AS col1, 22 AS col0 FROM tab1 AS cor0 @@ -39423,8 +39867,15 @@ SELECT - SUM ( + - 89 ) FROM tab0 # Datafusion - Expected - 77 # Datafusion - Expected - 4408 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* cor0\.col2 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 76 * col2 col2, col1 col2 FROM tab2 AS cor0 +---- +1748 +3040 +4408 +51 +67 +77 query I rowsort label-6477 SELECT ALL + - 36 / - col0 AS col0 FROM tab1 AS cor0 @@ -39481,8 +39932,15 @@ SELECT DISTINCT + col2 AS col2, - 18 AS col2 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - -23 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 23 AS col0, col1 AS col0 FROM tab1 +---- +-23 +-23 +-23 +14 +47 +5 query I rowsort label-6485 SELECT + COUNT ( * ) * - 96 + + COUNT ( * ) * + 77 FROM tab2 @@ -39496,8 +39954,15 @@ SELECT + COUNT ( * ) * - 96 + + COUNT ( * ) * + 77 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, col0 AS col1 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT DISTINCT ( - 26 ) AS col1 FROM tab0 WHERE NOT + + col1 NOT BETWEEN - - col0 AND + col1 * + col2 @@ -39644,8 +40109,11 @@ NULL # 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 col1" at position 0 and "count\(DISTINCT tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 AS col1, COUNT ( DISTINCT + col0 ) AS col1 FROM tab2 +---- +3 +62 query I rowsort label-6514 SELECT - col2 + - - CAST ( NULL AS INTEGER ) + - col2 FROM tab0 @@ -39935,8 +40403,15 @@ SELECT - col0 + - col2 * - col2 FROM tab0 # Datafusion - Expected - -5 # Datafusion - Expected - 91 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col1, - ( col1 ) AS col1 FROM tab1 +---- +-14 +-47 +-5 +51 +85 +91 query I rowsort SELECT - col2 + + - col1 FROM tab0 @@ -40141,8 +40616,11 @@ SELECT - - 63 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 72 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "min\(\(\- tab1\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, MIN ( + - col1 ) AS col0 FROM tab1 +---- +-47 +3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 @@ -40151,8 +40629,15 @@ SELECT ALL COUNT ( * ) AS col0, MIN ( + - col1 ) AS col0 FROM tab1 # Datafusion - Expected - -1118 # Datafusion - Expected - 58 # Datafusion - Expected - -1118 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "Int64\(13\) \* Int64\(\-86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, + 13 * + - 86 AS col0 FROM tab2 +---- +-1118 +-1118 +-1118 +23 +40 +58 query II rowsort SELECT ALL + col2 * col1, + col0 AS col2 FROM tab1 AS cor0 @@ -41415,8 +41900,15 @@ SELECT 54 FROM tab1 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Expected - 64 # Datafusion - Expected - 1950 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* Int64\(26\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * + 26 AS col1, col0 AS col1 FROM tab2 +---- +1196 +1664 +1950 +46 +64 +75 query II rowsort SELECT ALL - - col0, - 57 + - col0 col2 FROM tab0 WHERE NOT - ( col1 ) IS NOT NULL @@ -41502,8 +41994,15 @@ SELECT ALL col0 / + 43 FROM tab1 AS cor0 WHERE NOT - col0 * - col1 * - + 71 = + # Datafusion - Expected - -74 # Datafusion - Expected - 77 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col1 AS col2, ( + - 74 ) AS col2 FROM tab2 AS cor0 +---- +-74 +-74 +-74 +51 +67 +77 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT 23 IN ( - 66 * - + col0, col0 / + ( 6 ) ) @@ -41783,8 +42282,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND col2 # Datafusion - Expected - 21 # Datafusion - Expected - -82 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col0 \+ Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 + + - col2 AS col0, col0 + - 64 col0 FROM tab1 cor0 +---- +-13 +-21 +-54 +-82 +21 +27 query I rowsort SELECT DISTINCT - + col0 + - col0 * col1 AS col2 FROM tab0 AS cor0 @@ -42170,8 +42676,15 @@ SELECT ALL 77 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 40 # Datafusion - Expected - -9 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \+ \(\- tab2\.col1\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 + - col1 AS col0, col2 col0 FROM tab2 +---- +-28 +-37 +-9 +23 +40 +58 query I rowsort label-6946 SELECT - SUM ( col1 ) * 16 FROM tab0 AS cor0 @@ -42185,8 +42698,15 @@ SELECT - SUM ( col1 ) * 16 FROM tab0 AS cor0 # Datafusion - Expected - 112 # Datafusion - Expected - 170 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ Int64\(93\) AS col2" at position 0 and "Int64\(54\) \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 + + 93 col2, 54 + + col2 AS col2 FROM tab2 AS cor0 +---- +112 +144 +160 +170 +77 +94 query I rowsort SELECT DISTINCT + 91 AS col2 FROM tab0 AS cor0 @@ -42530,8 +43050,10 @@ SELECT ALL * FROM tab0 WHERE + - col2 <= + col1 - col1 * 2 * - col2 * + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 6bec6125ceb0e847218b5fdb3a35f1ba -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* \(\- tab2\.col2\) \* \(\- tab2\.col1\) AS col0" at position 1 and "tab2\.col2 \* \(\- \(\- Int64\(68\)\)\) \+ \(\- Int64\(\-83\)\) \+ Int64\(78\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + col2 AS col1, 43 * - col2 * - col1 AS col0, col2 * - - ( + + 68 ) + - - 83 + + 78 AS col0 FROM tab2 +---- +9 values hashing to 33cf1566f2d2de7384e02bbe268c8da9 query I rowsort label-7006 SELECT col1 * - CAST ( - - col0 AS INTEGER ) AS col1 FROM tab1 @@ -45025,8 +45547,15 @@ NULL # Datafusion - Expected - 1330 # Datafusion - Expected - 2744 # Datafusion - Expected - 2280 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* \(\- cor0\.col1\) \* cor0\.col1 AS col0" at position 0 and "cor0\.col2 / Int64\(4\) \* Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 * - col1 * col1 AS col0, col2 / 4 * 95 AS col0 FROM tab1 AS cor0 +---- +103823 +125 +1330 +1615 +2280 +2744 query II rowsort label-7429 SELECT ALL 25, + 72 * COUNT ( DISTINCT + + col0 ) col2 FROM tab1 @@ -45119,8 +45648,15 @@ SELECT + + ( - COUNT ( * ) ) FROM tab2 WHERE NOT - col2 IS NOT NULL # Datafusion - Expected - -8099 # Datafusion - Expected - -5 # Datafusion - Expected - -7565 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col1" at position 0 and "\(\- tab1\.col0\) \* Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 col1, - col0 * + 89 col1 FROM tab1 +---- +-14 +-4539 +-47 +-5 +-7565 +-8099 query I rowsort SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT 76 = NULL @@ -45167,8 +45703,10 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 27cc7709f86b808da63f62d5e8c8d10e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 1 and "tab0\.col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col0, col1, col1 FROM tab0 +---- +9 values hashing to 85b091ff10547e953bc6714d7e07504f query II rowsort SELECT ALL 28, 11 AS col2 FROM tab2 @@ -45408,8 +45946,15 @@ SELECT + + col1 * + col0 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -168 # Datafusion - Expected - -2842 # Datafusion - Expected - -208 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(\-49\) AS col2" at position 0 and "\(\- Int64\(\-2\)\) \* \(\- cor0\.col0\) \+ \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 * - 49 AS col2, - ( - 2 ) * - + col0 + - + col2 AS col2 FROM tab2 AS cor0 +---- +-1127 +-115 +-168 +-1960 +-208 +-2842 query I rowsort label-7488 SELECT - + 35 * - CAST ( - + 49 AS INTEGER ) FROM tab0 cor0 @@ -47110,8 +47655,15 @@ SELECT ALL + col0 / - 45 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, + col1 AS col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT DISTINCT + - ( - + col2 ) FROM tab2 WHERE NULL >= - col1 @@ -47452,8 +48004,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 24 AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +24 +3 query I rowsort SELECT ALL - + 15 FROM tab2 AS cor0 @@ -47503,8 +48058,15 @@ SELECT * FROM tab0 WHERE + + 84 IS NULL # Datafusion - Expected - -17 # Datafusion - Expected - 77 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "tab2\.col2 \+ \(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, col2 + + - ( + col0 ) col2 FROM tab2 +---- +-17 +-23 +-24 +51 +67 +77 query I rowsort SELECT ALL ( + + col0 ) + - 84 AS col2 FROM tab1 @@ -47564,8 +48126,15 @@ SELECT - col2 + - + 71 * - ( - + ( - col2 ) ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -66 # Datafusion - Expected - 33 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 33 AS col1, - 66 AS col1 FROM tab0 AS cor0 +---- +-66 +-66 +-66 +33 +33 +33 query I rowsort SELECT 85 AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL @@ -47843,8 +48412,15 @@ SELECT ALL + CAST ( + - COUNT ( - + 14 ) AS INTEGER ) * - 98 AS col1 FROM tab0 c # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0, col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT ALL - + 99 FROM tab1 AS cor0 @@ -47941,8 +48517,10 @@ SELECT + + col2 FROM tab1 AS cor0 WHERE + col2 / + 61 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 3fd2fb789ba759593fde4ae25f029d3a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ cor0\.col0 AS col2" at position 1 and "\(\- Int64\(49\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL col2 + col0 * + - col1 * - col2 AS col0, 2 + col0 col2, - + 49 AS col2 FROM tab0 AS cor0 +---- +9 values hashing to a16e7f914694feffb6bcfa35e6e2764f query I rowsort SELECT DISTINCT - col1 + - 79 FROM tab2 AS cor0 @@ -48009,8 +48587,11 @@ SELECT + 50 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -103 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- sum\(tab0\.col1\)\) AS Int32\) AS col1" at position 0 and "\(\- count\(\(\- tab0\.col0\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - SUM ( ALL col1 ) AS INTEGER ) col1, - COUNT ( - + col0 ) AS col1 FROM tab0 +---- +-103 +-3 query I rowsort SELECT + + 16 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 @@ -48343,8 +48924,10 @@ SELECT DISTINCT * FROM tab1 WHERE NOT - 37 / + 18 + + col1 + - CAST ( NULL AS IN # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 7d92cfb427c0e7d730f7179e300329a0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT col1, 59 + 63 AS col2, + + col1 AS col1 FROM tab0 +---- +9 values hashing to 2b5c58e0d45bcfd164fe01d626e683c8 query I rowsort SELECT DISTINCT - - col2 + + col1 * - col1 - - col0 * + - col0 FROM tab0 AS cor0 @@ -48453,8 +49036,15 @@ SELECT col2 * + col2 + col1 - - col2 FROM tab2 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - 96 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 96 AS col0, - col0 AS col0 FROM tab2 cor0 +---- +-46 +-64 +-75 +96 +96 +96 query I rowsort label-7989 SELECT DISTINCT + col1 * 30 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 @@ -48841,8 +49431,15 @@ SELECT ALL - 65, - 25 * - col0 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 15 # Datafusion - Expected - -99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 AS col2, col0 AS col2 FROM tab0 cor0 +---- +-10 +-47 +-99 +15 +87 +97 query I rowsort SELECT ALL - 72 + + col2 col0 FROM tab1 @@ -48923,8 +49520,11 @@ SELECT ALL - col1 AS col2, - 18 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, - 39 AS col0 FROM tab1 +---- +-39 +3 query III rowsort SELECT ALL * FROM tab1 WHERE NULL IN ( col2, + col2 * ( + - col0 ) ) @@ -49921,8 +50521,15 @@ SELECT * FROM tab2 cor0 WHERE + 45 / - col0 NOT IN ( - 48 * + 43 ) # Datafusion - Expected - -9 # Datafusion - Expected - -80869 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ \(\- cor0\.col1\) \* \(\- cor0\.col1\) \* Int64\(\-18\) AS col2" at position 0 and "\(\- cor0\.col2\) \+ Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 + - + col1 * + - ( + col1 ) * - 18 AS col2, - col2 + 14 AS col2 FROM tab2 AS cor0 +---- +-106799 +-26 +-44 +-46869 +-80869 +-9 query I rowsort SELECT DISTINCT 14 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL ) @@ -50622,8 +51229,15 @@ SELECT ALL - 61 FROM tab1 AS cor0 WHERE NOT ( ( col0 * - 2 * col0 ) BETWEEN NULL # Datafusion - Expected - 87 # Datafusion - Expected - -97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) / tab0\.col1 \* tab0\.col1 AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 97 / col1 * col1 AS col1, col0 AS col1 FROM tab0 +---- +-81 +-84 +-97 +15 +87 +97 query I rowsort SELECT DISTINCT - 40 col0 FROM tab2 @@ -50862,8 +51476,15 @@ SELECT DISTINCT COUNT ( * ) * + - 25 FROM tab2 # Datafusion - Expected - -67 # Datafusion - Expected - -5929 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \* tab2\.col1 AS col1" at position 0 and "\(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 * + col1 AS col1, - col1 AS col1 FROM tab2 +---- +-2601 +-4489 +-51 +-5929 +-67 +-77 query I rowsort SELECT + - 79 + - ( - 62 ) col1 FROM tab0 AS cor0 @@ -52097,8 +52718,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, 42 * - 14 * + - 30 + - + COUNT ( * ) + + 79 AS col1 FROM tab0 +---- +-3 +17716 query II rowsort SELECT DISTINCT col2 AS col1, - 6 FROM tab0 @@ -52698,8 +53322,15 @@ SELECT - 9 + COUNT ( * ) AS col2 FROM tab2 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 48 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(48\)\)\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - ( + 48 ) AS col0, col1 AS col0 FROM tab1 AS cor0 +---- +14 +47 +48 +48 +48 +5 query I rowsort label-8691 SELECT DISTINCT col1 / + col2 + + 5 AS col2 FROM tab0 AS cor0 @@ -52883,8 +53514,9 @@ SELECT DISTINCT ( + - col0 ) AS col1 FROM tab0 AS cor0 -97 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, 91 col1 FROM tab1 AS cor0 WHERE NOT NULL >= NULL +---- query III rowsort SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( col0, col1 - - 81 ) @@ -53712,8 +54344,15 @@ SELECT DISTINCT + + col1 AS col2, - col0 FROM tab0 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col2, col2 FROM tab1 cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT ALL - 88 * - 64 * 93 AS col2 FROM tab2 AS cor0 @@ -53773,8 +54412,9 @@ SELECT DISTINCT - 21 col1 FROM tab1 AS cor0 WHERE 15 * - col2 - + col0 <> - + co -21 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 \+ cor0\.col1 \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL col1 AS col2, col1 + + col1 * col0 col2, - col0 * - col2 * - + 26 FROM tab2 AS cor0 WHERE ( NOT - + col1 NOT BETWEEN - 94 * + col2 AND NULL ) +---- query I rowsort label-8868 SELECT col2 / + - 19 AS col1 FROM tab0 @@ -53958,8 +54598,11 @@ SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE NOT + - col0 >= + + col0 - 47 + c # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col0" at position 0 and "min\(DISTINCT tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 2 col0, + MIN ( DISTINCT col2 ) col0 FROM tab0 +---- +-2 +10 query I rowsort SELECT col2 + - 9 AS col0 FROM tab1 AS cor0 @@ -54903,8 +55546,15 @@ SELECT col0 * + + col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Expected - 22 # Datafusion - Expected - 95 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 col0, + 22 AS col0 FROM tab2 AS cor0 +---- +22 +22 +22 +95 +95 +95 query I rowsort label-9050 SELECT ALL + 79 + + COUNT ( * ) AS col2 FROM tab1 AS cor0 @@ -56990,8 +57640,15 @@ SELECT + col2 * - + col1 - col2 FROM tab0 # Datafusion - Expected - -87 # Datafusion - Expected - 81 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col0, - ( + + col0 ) AS col0 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +1 +21 +81 query I rowsort label-9405 SELECT ALL - MIN ( DISTINCT + + col0 ) * CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0 @@ -57069,8 +57726,11 @@ SELECT * FROM tab0 WHERE NOT NULL <= + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(18\) \- Int64\(\-24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, 18 - + - 24 AS col2 FROM tab0 +---- +3 +42 query I rowsort SELECT col0 AS col2 FROM tab2 WHERE NOT NULL = 20 @@ -57632,8 +58292,15 @@ NULL # Datafusion - Expected - 23 # Datafusion - Expected - 96 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 col1, + 23 AS col1 FROM tab1 +---- +23 +23 +23 +59 +68 +96 query I rowsort SELECT col0 * + + col1 col1 FROM tab2 @@ -57919,8 +58586,15 @@ SELECT - SUM ( - + col1 ) FROM tab1 # Datafusion - Expected - 2900 # Datafusion - Expected - -77 # Datafusion - Expected - 2000 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col0" at position 0 and "\(\- tab2\.col2\) \* Int64\(\-50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, - col2 * - 50 AS col0 FROM tab2 +---- +-51 +-67 +-77 +1150 +2000 +2900 query II rowsort label-9556 SELECT - col2 / + col0 AS col0, col2 AS col1 FROM tab2 @@ -59034,8 +59708,15 @@ SELECT ALL MAX ( DISTINCT - - col1 ) AS col0 FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - -5625 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \* tab2\.col0 AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 * col0 AS col1, + col0 AS col1 FROM tab2 +---- +-2116 +-4096 +-5625 +46 +64 +75 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 17 * 82 ) @@ -59078,8 +59759,15 @@ SELECT ALL + 7 AS col0 FROM tab1 # Datafusion - Expected - -75 # Datafusion - Expected - 77 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "\(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( col1 ) AS col0, - col0 col0 FROM tab2 +---- +-46 +-64 +-75 +51 +67 +77 query III rowsort SELECT * FROM tab1 WHERE NOT 75 < NULL @@ -59096,8 +59784,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT 39 + col1 IS NOT NULL # Datafusion - Expected - 98415 # Datafusion - Expected - -99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "\(\- cor0\.col1\) \* cor0\.col1 \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - col2 ) AS col1, - col1 * col1 * - + col0 AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +38367 +97 +98415 query I rowsort label-9751 SELECT + + MAX ( + col1 ) FROM tab0 cor0 @@ -60298,8 +60993,15 @@ SELECT * FROM tab1 AS cor0 WHERE + col2 + - col2 NOT IN ( + + col2 + - 37 ) # Datafusion - Expected - -8 # Datafusion - Expected - -1291 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \* Int64\(22\) \- \(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "Int64\(\-82\) / cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 * 22 - - - col1 AS col2, - 82 / + col2 AS col2 FROM tab0 AS cor0 +---- +-1 +-1211 +-1231 +-1291 +-8 +0 query I rowsort SELECT DISTINCT - ( + + col0 ) - - col1 FROM tab1 AS cor0 @@ -60343,8 +61045,15 @@ SELECT DISTINCT + 57 + + + col0 AS col0 FROM tab1 WHERE ( ( NULL ) >= + 41 ) # Datafusion - Expected - -87 # Datafusion - Expected - -81 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col2, - ( + col0 ) AS col2 FROM tab0 +---- +-1 +-15 +-21 +-81 +-87 +-97 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT col2 * col1 IS NULL @@ -60614,8 +61323,15 @@ SELECT ALL + - ( ( - 88 ) ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 69 # Datafusion - Expected - 0 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col1 AS col1" at position 0 and "Int64\(\-12\) \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 + + + col1 AS col1, - 12 + + col1 AS col1 FROM tab0 AS cor0 +---- +-11 +0 +0 +0 +69 +9 query I rowsort SELECT ALL 10 + + 78 AS col0 FROM tab2 cor0 diff --git a/data/sqlite/random/aggregates/slt_good_5.slt b/data/sqlite/random/aggregates/slt_good_5.slt index 3fe65df..cb0532c 100644 --- a/data/sqlite/random/aggregates/slt_good_5.slt +++ b/data/sqlite/random/aggregates/slt_good_5.slt @@ -1478,8 +1478,11 @@ SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( + 65 ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col0" at position 0 and "sum\(Int64\(\-49\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 22 AS col0, + SUM ( ALL ( - 49 ) ) col0 FROM tab1 cor0 +---- +-147 +22 query I rowsort SELECT - 38 * + + 89 AS col2 FROM tab2 AS cor0 @@ -1534,8 +1537,15 @@ SELECT ALL - + ( - COUNT ( * ) ) - COUNT ( * ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 115 # Datafusion - Expected - -7280 # Datafusion - Expected - 124 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* cor0\.col0 AS col1" at position 0 and "Int64\(56\) \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 80 * col0 AS col1, + 56 + + + col2 AS col1 FROM tab1 AS cor0 +---- +-4080 +-6800 +-7280 +115 +124 +152 query II rowsort SELECT DISTINCT - col2 AS col0, - ( - 45 ) FROM tab2 @@ -1891,8 +1901,15 @@ SELECT + col0 AS col2, col2 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 14 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 AS col1, col0 AS col1 FROM tab0 AS cor0 +---- +14 +14 +14 +15 +87 +97 query III rowsort SELECT * FROM tab1 AS cor0 WHERE 44 / - + 37 BETWEEN NULL AND NULL @@ -2007,8 +2024,13 @@ SELECT * FROM tab2 AS cor0 WHERE NOT ( - col1 > NULL ) # Datafusion - Expected - 10 # Datafusion - Expected - -93 # Datafusion - Expected - 100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col2" at position 0 and "cor0\.col2 / Int64\(90\) \+ \(\- \(\- cor0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 93 AS col2, + col2 / ( 90 ) + - - col2 col2 FROM tab0 AS cor0 WHERE NOT + ( - 70 ) BETWEEN - col1 AND - col0 + 62 +---- +-93 +-93 +10 +100 query III rowsort SELECT * FROM tab1 cor0 WHERE NOT col2 < ( NULL ) @@ -2329,8 +2351,10 @@ SELECT DISTINCT ( + - col1 ) AS col1 FROM tab1 WHERE NOT - + col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to b2406d08169fd0ced1328ec222cc73fc -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* \(\- tab2\.col2\) \* Int64\(90\) AS col2" at position 1 and "\(\- tab2\.col1\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col0 * - + 59 * - - col1 col1, col0 * - col2 * 90 AS col2, ( - col1 ) AS col2 FROM tab2 +---- +9 values hashing to f743447699ee08fc0d20b42b01f9c23d query I rowsort label-373 SELECT ALL 40 * + MIN ( CAST ( + 46 AS INTEGER ) ) col2 FROM tab0 @@ -2604,8 +2628,10 @@ SELECT + col2 * col2 + col2 * + col1 * col2 AS col1, - col2 * col1 * - + 6 * - c # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 48b39c5e2f448b1e45127d533c863680 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(97\) AS Int32\)\)\) AS col2" at position 0 and "Int64\(29\) \+ \(\- cor0\.col2\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - - CAST ( 97 AS INTEGER ) AS col2, + col1 AS col1, 29 + - col2 AS col2 FROM tab2 AS cor0 +---- +9 values hashing to 53b62e1845911d59ebef31c531d2c011 query I rowsort SELECT DISTINCT - 87 / + - col0 + - 70 FROM tab2 AS cor0 WHERE col1 BETWEEN - col1 AND NULL @@ -2641,8 +2667,11 @@ SELECT + 3 / + 14 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -156 # Datafusion - Expected - 97 -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\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( ALL + ( - 52 ) ) AS col1, 97 col1 FROM tab2 AS cor0 +---- +-156 +97 query III rowsort label-426 SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * col1 IS NULL @@ -2757,8 +2786,15 @@ SELECT + col0 * - + col2 * - - 25 - + + 21 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -52 # Datafusion - Expected - 97 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(\-52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, - 52 AS col1 FROM tab0 AS cor0 +---- +-52 +-52 +-52 +15 +87 +97 query II rowsort SELECT 99, col1 + col0 col1 FROM tab2 @@ -4129,8 +4165,15 @@ SELECT DISTINCT MIN ( DISTINCT + 56 ) FROM tab0 AS cor0 # Datafusion - Expected - 7 # Datafusion - Expected - 74 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 74 AS col1, 7 AS col1 FROM tab2 AS cor0 +---- +7 +7 +7 +74 +74 +74 query I rowsort SELECT 10 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -4355,8 +4398,11 @@ SELECT DISTINCT * FROM tab2 WHERE NOT ( ( NOT NULL >= + 99 / col0 + + - col1 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -225 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* \(\- min\(CAST\(NULL AS Float64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT - 75 * COUNT ( * ) col0, - CAST ( NULL AS INTEGER ) * - MIN ( CAST ( NULL AS FLOAT8 ) ) AS col0 FROM tab0 +---- +-225 +NULL query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT - - ( 79 ) * + col1 >= - col0 @@ -4699,8 +4745,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ), + COUNT ( * ) FROM tab2 WHERE NOT 25 NOT IN ( + col0 ) +---- +0 +0 query II rowsort SELECT DISTINCT ( + col1 ) * + col2, + col1 AS col1 FROM tab0 @@ -4901,8 +4950,15 @@ SELECT + COUNT ( * ) + - - 30 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - 78 # Datafusion - Expected - 98 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ tab0\.col0 AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + col1 ) + + col0 AS col0, 78 AS col0 FROM tab0 +---- +108 +78 +78 +78 +96 +98 query I rowsort label-798 SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab1 AS cor0 @@ -6437,8 +6493,15 @@ SELECT ALL * FROM tab0 WHERE NOT + col1 IN ( + - 31, + col1 ) # Datafusion - Expected - 67 # Datafusion - Expected - -77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 col2, col1 AS col2 FROM tab2 +---- +-51 +-67 +-77 +51 +67 +77 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT ( + col2 ) < - col1 * - col0 * col0 @@ -7171,8 +7234,11 @@ SELECT - - 15 * + + col0 + + ( + - 74 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, 70 AS col1 FROM tab1 +---- +3 +70 query I rowsort SELECT ALL - 51 FROM tab0 WHERE NOT + - col0 IS NOT NULL @@ -7565,8 +7631,11 @@ SELECT + COUNT ( * ) * + MAX ( DISTINCT - - col1 ) * - + 58 * + 33 AS col0 FROM # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -5961 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(Int64\(\-40\) AS Int32\) \+ min\(Int64\(\-59\)\) \* Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) col2, COUNT ( * ) * CAST ( - 40 AS INTEGER ) + + MIN ( - 59 ) * ( 99 ) AS col2 FROM tab0 +---- +-5961 +NULL query I rowsort SELECT - ( - - 1 ) FROM tab2 @@ -7681,8 +7750,10 @@ SELECT DISTINCT col1 / + col2 + - 39 * + + 8 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to ee11314634d2bb33b74aa3367e266f55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 / tab0\.col1 \+ tab0\.col0 AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col2 / + + col1 + + col0 AS col1, + 60 AS col1, + - col1 AS col1 FROM tab0 +---- +9 values hashing to ca587b45ec165c000de62c37075a0e4b query I rowsort label-1259 SELECT DISTINCT + COUNT ( * ) * - 64 + - 30 AS col2 FROM tab0 AS cor0 @@ -7729,8 +7800,15 @@ SELECT DISTINCT 13 col1 FROM tab2 cor0 # Datafusion - Expected - 2 # Datafusion - Expected - 9216 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col2 AS col0" at position 0 and "Int64\(60\) / Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 * + col2 AS col0, + 60 / 28 col0 FROM tab1 AS cor0 +---- +2 +2 +2 +3481 +4624 +9216 query I rowsort SELECT ALL - col1 * col0 * + 93 FROM tab2 AS cor0 @@ -7817,8 +7895,9 @@ SELECT + + 26 AS col0 FROM tab0 AS cor0 26 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(\-59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, - 59 AS col0 FROM tab1 AS cor0 WHERE 96 * - ( - - 85 ) IS NULL +---- query I rowsort SELECT ALL 47 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 @@ -8359,8 +8438,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + - COUNT ( * ) AS col1, COUNT ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0 +---- +-3 +3 query I rowsort label-1370 SELECT - SUM ( + 96 ) * - COUNT ( * ) + + - COUNT ( * ) FROM tab0 AS cor0 @@ -9390,8 +9472,15 @@ SELECT DISTINCT * FROM tab0 WHERE ( col1 >= NULL ) # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-99\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 99 AS col0, + col2 AS col0 FROM tab0 AS cor0 +---- +10 +47 +99 +99 +99 +99 query I rowsort SELECT 92 * - col2 + + + 16 AS col1 FROM tab0 AS cor0 @@ -9730,8 +9819,15 @@ SELECT ALL - + col2 AS col2, - 10 AS col1 FROM tab0 cor0 # Datafusion - Expected - 74 # Datafusion - Expected - -58 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - col2 ) AS col1, + 74 AS col1 FROM tab2 +---- +-23 +-40 +-58 +74 +74 +74 query III rowsort SELECT ALL * FROM tab2 WHERE ( NOT ( 64 IS NULL ) ) @@ -9745,8 +9841,15 @@ SELECT ALL * FROM tab2 WHERE ( NOT ( 64 IS NULL ) ) # Datafusion - Expected - 40 # Datafusion - Expected - -99 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \* tab0\.col1 AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( col2 ) * col1 AS col1, 40 AS col1 FROM tab0 +---- +-210 +-3807 +-99 +40 +40 +40 query II rowsort label-1604 SELECT ALL + + MAX ( ALL col0 ) AS col2, + MIN ( DISTINCT + - col0 ) AS col1 FROM tab0 AS cor0 @@ -9755,8 +9858,9 @@ SELECT ALL + + MAX ( ALL col0 ) AS col2, + MIN ( DISTINCT + - col0 ) AS col1 FRO -97 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) / Int64\(40\) \+ \(\- cor0\.col2\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col0 / + 40 + + - col2 AS col2, + 89 AS col2 FROM tab2 AS cor0 WHERE 92 + - 60 * - col1 IS NULL +---- query I rowsort label-1606 SELECT + + 81 / - - COUNT ( * ) FROM tab1 AS cor0 @@ -9766,8 +9870,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - COUNT ( * ) AS col2, - 22 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 +---- +-22 +-9 query I rowsort label-1608 SELECT DISTINCT + 45 * - - COUNT ( * ) FROM tab2 AS cor0 @@ -9851,8 +9958,15 @@ SELECT ALL + 24 * - COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab1 # Datafusion - Expected - 12 # Datafusion - Expected - 98 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ \(\- \(\- tab0\.col0\)\) AS col1" at position 0 and "Int64\(59\) \+ \(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 + - - col0 col1, ( + 59 ) + + - ( col2 ) AS col1 FROM tab0 +---- +-40 +108 +12 +49 +96 +98 query III rowsort SELECT * FROM tab0 WHERE 11 * - 42 * col1 - + col0 IS NULL @@ -10129,8 +10243,12 @@ SELECT DISTINCT + col0 * + - col1 AS col2 FROM tab0 # Datafusion - Expected - 9317 # Datafusion - Expected - 98 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col1" at position 1 and "Int64\(71\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + SUM ( ALL col2 ) * - MIN ( ( - col1 ) ), 98 AS col1, + 71 AS col1 FROM tab2 +---- +71 +9317 +98 query I rowsort label-1668 SELECT ALL - 29 / col0 FROM tab2 @@ -11520,8 +11638,15 @@ SELECT - col0 + + + 11 + + col0 * - + 19 + 84 * 68 * + col2 AS col0 FROM tab2 WH # Datafusion - Expected - -68 # Datafusion - Expected - -96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab1\.col2 AS Int32\)\)" at position 0 and "\(\- tab1\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + CAST ( col2 AS INTEGER ), - col2 FROM tab1 WHERE NULL IS NULL +---- +-59 +-59 +-68 +-68 +-96 +-96 query I rowsort SELECT DISTINCT ( - col1 ) + - col0 FROM tab2 @@ -12216,8 +12341,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) * - 78 AS col2, 93 + 77 AS col2 FROM tab0 AS cor0 +---- +170 +234 query I rowsort label-2005 SELECT ALL + col0 / 20 * - col2 FROM tab0 AS cor0 @@ -12502,8 +12630,15 @@ NULL # Datafusion - Expected - -47 # Datafusion - Expected - NULL # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 + CAST ( NULL AS INTEGER ) AS col0, - col1 AS col0 FROM tab1 +---- +-14 +-47 +-5 +NULL +NULL +NULL query I rowsort label-2051 SELECT ALL - col2 / + 86 + - + col1 FROM tab0 @@ -14260,8 +14395,11 @@ SELECT DISTINCT + ( + COUNT ( * ) ) * + 98 AS col2 FROM tab2 WHERE + 68 + - - co # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, 28 AS col2 FROM tab1 +---- +28 +3 query II rowsort SELECT DISTINCT col0, col1 AS col2 FROM tab1 @@ -15046,8 +15184,15 @@ SELECT ALL - 9, ( + col0 ) FROM tab0 cor0 # Datafusion - Expected - 22 # Datafusion - Expected - 97 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col2" at position 0 and "Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 97 AS col2, 22 AS col2 FROM tab0 AS cor0 +---- +22 +22 +22 +97 +97 +97 query I rowsort label-2476 SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( - + col1 * + 22 ) @@ -15296,8 +15441,15 @@ SELECT + COUNT ( * ) * + 34 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 44 # Datafusion - Expected - 97 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- cor0\.col1\) AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col0 * - + col1 AS col2, 44 AS col2 FROM tab0 AS cor0 +---- +1215 +1827 +44 +44 +44 +97 query I rowsort label-2515 SELECT + MIN ( DISTINCT 75 ) FROM tab0 AS cor0 WHERE NOT NULL > + 96 @@ -15897,8 +16049,15 @@ SELECT ALL + 39 * - + SUM ( ALL + - col1 ) FROM tab0 # Datafusion - Expected - 21 # Datafusion - Expected - -27 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(27\) AS Int32\)\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( 27 AS INTEGER ) AS col0, + col1 AS col0 FROM tab0 +---- +-27 +-27 +-27 +1 +21 +81 query I rowsort SELECT 65 FROM tab0 WHERE NOT + col1 <= 82 @@ -16401,8 +16560,11 @@ SELECT * FROM tab2 WHERE + col1 NOT BETWEEN NULL AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) / Int64\(12\) AS col2" at position 0 and "Int64\(\-87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 67 / 12 AS col2, - 87 col2 FROM tab2 +---- +-87 +5 query I rowsort SELECT DISTINCT + col1 + - 27 AS col1 FROM tab1 @@ -16572,8 +16734,15 @@ SELECT DISTINCT - col0 - col1 + + col2 + 43 * - col1 * + 98 AS col2 FROM tab0 AS # Datafusion - Expected - 97 # Datafusion - Expected - 1903 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ Int64\(13\) \+ cor0\.col1 \+ \(\- cor0\.col1\) \* \(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 42 + + + 13 + + col1 + - + col1 * - col0 col1, col0 AS col1 FROM tab0 AS cor0 +---- +1351 +15 +153 +1903 +87 +97 query I rowsort SELECT ALL + 35 FROM tab0 AS cor0 WHERE col1 IS NOT NULL @@ -16944,8 +17113,15 @@ SELECT ALL - 15 AS col0 FROM tab0 AS cor0 WHERE 37 BETWEEN NULL AND NULL # Datafusion - Expected - -64 # Datafusion - Expected - -9 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 9 AS col1, - col0 AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +-9 +-9 +-9 query I rowsort label-2778 SELECT - ( MIN ( col1 ) ) AS col1 FROM tab2 AS cor0 @@ -17074,8 +17250,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 + 1 AS col2, ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0 +---- +-3 +71 query I rowsort SELECT ALL - + col0 AS col2 FROM tab2 WHERE - col2 IS NULL @@ -17809,8 +17988,15 @@ SELECT ALL ( + 32 ) FROM tab0 # Datafusion - Expected - 58 # Datafusion - Expected - -77 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, + col2 AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +23 +40 +58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 @@ -17819,8 +18005,15 @@ SELECT - col1 AS col0, + col2 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 88 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col0" at position 0 and "Int64\(11\) / Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 88 AS col0, 11 / + + 61 AS col0 FROM tab2 AS cor0 +---- +0 +0 +0 +88 +88 +88 query I rowsort label-2928 SELECT - ( + SUM ( DISTINCT + - 73 ) ) FROM tab1 AS cor0 @@ -19122,8 +19315,15 @@ SELECT - col1 AS col1, col2 * + 42 AS col0 FROM tab2 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col1, col1 col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT + ( + col0 ) * - 51 + - col1 AS col0 FROM tab2 WHERE NOT - col2 - - 10 IS NULL @@ -21621,8 +21821,15 @@ SELECT 24 * - 27 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2, + col2 AS col2 FROM tab0 cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT ALL - + col2 * + ( - col1 ) FROM tab2 AS cor0 @@ -21984,8 +22191,15 @@ SELECT DISTINCT + - MAX ( col2 ) FROM tab1 AS cor0 # Datafusion - Expected - 33 # Datafusion - Expected - -57834 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(81\) \* cor0\.col1 AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 * + 81 * + col1 AS col1, 33 AS col1 FROM tab1 AS cor0 +---- +-34425 +-346437 +-57834 +33 +33 +33 query III rowsort SELECT * FROM tab2 AS cor0 WHERE ( + + col2 / + col0 * - col2 * + 37 * - col0 + - col2 IS NOT NULL ) @@ -22098,8 +22312,15 @@ SELECT DISTINCT + MIN ( DISTINCT + + col2 ) FROM tab2 AS cor0 # Datafusion - Expected - -33 # Datafusion - Expected - 75 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 \- Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 col2, + col0 - + 97 col2 FROM tab2 AS cor0 +---- +-22 +-33 +-51 +46 +64 +75 query I rowsort label-3629 SELECT - 17 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IN ( - + col2, CAST ( + col2 AS INTEGER ), - - ( + 72 ) ) @@ -23778,8 +23999,9 @@ SELECT ALL col2 * 55 + + - col2 FROM tab1 5184 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \+ \(\- tab1\.col1\) AS col0" at position 0 and "tab1\.col1 \+ tab1\.col2 \* tab1\.col1 \+ \(\- tab1\.col0\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 80 + - ( ( col1 ) ) AS col0, - 4, + + col1 + col2 * col1 + - col0 AS col0 FROM tab1 WHERE col2 + - col1 * 70 IS NULL +---- query I rowsort SELECT ALL col2 + 15 * col2 * col2 FROM tab2 @@ -24216,8 +24438,10 @@ SELECT * FROM tab1 cor0 WHERE ( + col2 ) IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 3f58009e297b66156c76a690aab1822a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + col2 AS col2, + 1, + col2 FROM tab0 AS cor0 +---- +9 values hashing to dc8cd9d2f96101c1540c78898669ac8b query I rowsort label-3984 SELECT ALL 69 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 WHERE NOT - col0 < col2 / - ( + col1 ) @@ -24403,8 +24627,15 @@ SELECT * FROM tab2 WHERE + col1 - + col2 <= + col1 # Datafusion - Expected - -4350 # Datafusion - Expected - -77 # Datafusion - Expected - -2560 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col2" at position 0 and "tab2\.col2 \* \(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col2, col2 * - col0 AS col2 FROM tab2 +---- +-1058 +-2560 +-4350 +-51 +-67 +-77 query I rowsort SELECT ALL - col2 * - col1 * + - col0 FROM tab1 @@ -25069,8 +25300,15 @@ SELECT ALL * FROM tab2 WHERE NOT ( col1 * - 8 + - ( - 93 ) * - col0 IS NULL ) # Datafusion - Expected - 128 # Datafusion - Expected - -63 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col0" at position 0 and "cor0\.col2 \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 63 AS col0, col2 + col1 AS col0 FROM tab0 AS cor0 +---- +-63 +-63 +-63 +100 +128 +31 query III rowsort SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL >= 8 @@ -26072,8 +26310,15 @@ SELECT DISTINCT + col2 / - col2 + + col2 FROM tab0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col2, col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT - + 66 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -26794,8 +27039,11 @@ SELECT - 18 col2 FROM tab2 AS cor0 # 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 "Int64\(88\) 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 II valuesort SELECT DISTINCT + 88 AS col2, MIN ( ALL - col0 ) AS col2 FROM tab1 AS cor0 +---- +-91 +88 query I rowsort label-4405 SELECT - + col0 * + 16 / - CAST ( NULL AS INTEGER ) / - 36 AS col2 FROM tab1 cor0 @@ -27726,8 +27974,11 @@ SELECT ALL + col1 + - col2 FROM tab0 AS cor0 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + COUNT ( * ) AS col2, 93 AS col2 FROM tab0 AS cor0 +---- +3 +93 query I rowsort SELECT col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL @@ -28582,8 +28833,15 @@ SELECT ALL 40 AS col0, 7 * + col2 AS col1 FROM tab2 # Datafusion - Expected - 3807 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "\(\- tab0\.col1\) \* \(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, - col1 * - col2 AS col0 FROM tab0 +---- +10 +210 +3807 +47 +99 +99 query I rowsort SELECT - - col1 FROM tab0 WHERE NOT - ( - col2 ) * col0 IS NOT NULL @@ -28695,8 +28953,15 @@ SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE col1 / + - 67 * col1 + - 19 IS NU # Datafusion - Expected - -529 # Datafusion - Expected - -252233 # Datafusion - Expected - -3364 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col2 \* cor0\.col0 \+ cor0\.col1 AS col1" at position 0 and "cor0\.col2 \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 * + col2 * col0 + col1 AS col1, col2 * + - col2 AS col1 FROM tab2 AS cor0 +---- +-102323 +-1600 +-24283 +-252233 +-3364 +-529 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN NULL AND col1 * + col1 @@ -28832,8 +29097,11 @@ SELECT DISTINCT + col0 - - col1 AS col2 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col2, 9 col2 FROM tab1 AS cor0 +---- +3 +9 query I rowsort SELECT + + col2 + - ( + col2 ) AS col1 FROM tab2 AS cor0 @@ -28897,8 +29165,15 @@ SELECT - MIN ( + 37 ) AS col1 FROM tab0 # Datafusion - Expected - 0 # Datafusion - Expected - -81 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "\(\- tab0\.col2\) \+ tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - col1 ) AS col0, - col2 + col2 col0 FROM tab0 +---- +-1 +-21 +-81 +0 +0 +0 query I rowsort SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL @@ -29166,8 +29441,9 @@ SELECT ALL + MIN ( - + col1 ) + + 92 FROM tab2 AS cor0 15 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 col0, col0 FROM tab2 WHERE NOT NULL IS NULL +---- query II rowsort label-4788 SELECT ALL - col1 * CAST ( + col0 AS INTEGER ) + - 20 / ( col0 ) col2, + col1 AS col0 FROM tab1 @@ -29292,8 +29568,15 @@ SELECT DISTINCT - col0 FROM tab1 WHERE NOT + - col0 IS NOT NULL # Datafusion - Expected - 2805 # Datafusion - Expected - 795 # Datafusion - Expected - 1683 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \+ cor0\.col0 \* cor0\.col1 AS col1" at position 0 and "Int64\(33\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 + col0 * + col1 AS col1, 33 * col0 AS col1 FROM tab1 AS cor0 +---- +1683 +2805 +3003 +4358 +506 +795 query I rowsort label-4808 SELECT col0 / col0 + CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab2 AS cor0 @@ -29400,8 +29683,15 @@ SELECT DISTINCT col1 * + CAST ( + 81 AS INTEGER ) AS col0 FROM tab2 # Datafusion - Expected - 99 # Datafusion - Expected - 60 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \* tab0\.col0 AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 4 * col0 AS col0, ( + col2 ) AS col0 FROM tab0 +---- +10 +348 +388 +47 +60 +99 query III rowsort label-4826 SELECT ALL * FROM tab1 WHERE NOT - + CAST ( - - col1 AS INTEGER ) IS NULL @@ -30428,8 +30718,15 @@ SELECT * FROM tab1 AS cor0 WHERE + ( + 95 ) <> - col0 # Datafusion - Expected - -67 # Datafusion - Expected - 1 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) / Int64\(\-42\) AS col2" at position 0 and "\(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 / - 42 AS col2, - col1 AS col2 FROM tab2 +---- +-51 +-67 +-77 +1 +1 +1 query I rowsort SELECT DISTINCT + + col0 * col1 col0 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL @@ -30917,8 +31214,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - - col0 IS NULL # Datafusion - Expected - 58 # Datafusion - Expected - 77 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(cor0\.col1 AS Int32\) AS Int32\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( + + CAST ( col1 AS INTEGER ) AS INTEGER ) AS col1, col2 AS col1 FROM tab2 cor0 +---- +23 +40 +51 +58 +67 +77 query I rowsort label-5080 SELECT DISTINCT ( + + CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0 @@ -31327,8 +31631,15 @@ SELECT ALL - 68, - 74 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -69 # Datafusion - Expected - -81 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(\-69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 AS col1, - 69 AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-69 +-69 +-69 +-81 query I rowsort SELECT col1 * + 49 AS col0 FROM tab1 AS cor0 @@ -32037,8 +32348,15 @@ SELECT + - 92 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 + 33 * 92 IS NOT NULL # Datafusion - Expected - -54 # Datafusion - Expected - -38 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col2" at position 0 and "\(\- cor0\.col2\) \+ cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 38 AS col2, - col2 + + col1 AS col2 FROM tab1 AS cor0 +---- +-21 +-38 +-38 +-38 +-54 +-82 query I rowsort SELECT ALL ( - ( col0 ) ) FROM tab1 AS cor0 @@ -32070,8 +32388,15 @@ SELECT * FROM tab0 WHERE NOT ( ( NULL IS NULL ) ) # Datafusion - Expected - 0 # Datafusion - Expected - -146 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \+ Int64\(\-99\) AS col2" at position 0 and "cor0\.col2 \- \(\- \(\- cor0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 47 + + - 99 col2, col2 - - + ( - col2 ) AS col2 FROM tab1 cor0 +---- +-146 +-146 +-146 +0 +0 +0 query II rowsort label-5264 SELECT DISTINCT + CAST ( col2 AS INTEGER ) AS col1, col0 AS col0 FROM tab2 AS cor0 @@ -32165,8 +32490,15 @@ SELECT DISTINCT col1 + - - ( col1 ) AS col2 FROM tab0 # Datafusion - Expected - 30 # Datafusion - Expected - -90 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \- Int64\(95\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 - + 95 AS col0, 30 col0 FROM tab1 +---- +-48 +-81 +-90 +30 +30 +30 query I rowsort SELECT + 7 * + 84 + - col2 * - 39 + col1 AS col2 FROM tab1 @@ -32327,8 +32659,15 @@ SELECT DISTINCT 49, 8 AS col2 FROM tab0 AS cor0 WHERE ( - 60 ) IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - -99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / \(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - col2 ) AS col1, + CAST ( NULL AS INTEGER ) / - col1 AS col1 FROM tab0 +---- +-10 +-47 +-99 +NULL +NULL +NULL query I rowsort SELECT DISTINCT 80 * 72 + + - col1 FROM tab2 @@ -32567,8 +32906,15 @@ SELECT - col2 AS col0, col1 AS col2 FROM tab1 # Datafusion - Expected - -47 # Datafusion - Expected - -39 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 39 AS col0, - col1 col0 FROM tab1 AS cor0 +---- +-14 +-39 +-39 +-39 +-47 +-5 query I rowsort SELECT ALL + col0 * + col1 + + + col2 + + - col2 + + 56 + - ( + + col1 ) AS col2 FROM tab2 AS cor0 @@ -34252,8 +34598,15 @@ SELECT + + ( - 86 ) FROM tab1 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - 58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, - col2 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +23 +40 +58 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 < + + col0 @@ -34318,8 +34671,15 @@ SELECT 18 / col1 FROM tab1 # Datafusion - Expected - -97 # Datafusion - Expected - 0 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 / Int64\(\-25\) AS col0" at position 0 and "\(\- \(\- \(\- tab0\.col0\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 / + - 25 col0, - ( - - col0 ) AS col0 FROM tab0 +---- +-1 +-15 +-3 +-87 +-97 +0 query III rowsort SELECT * FROM tab1 WHERE NOT - + 69 IS NOT NULL @@ -34365,8 +34725,15 @@ SELECT ALL + COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab0 # Datafusion - Expected - 260361 # Datafusion - Expected - NULL # Datafusion - Expected - 59821 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- Int64\(43\)\) \* CAST\(NULL AS Float64\) AS col0" at position 0 and "cor0\.col2 \* cor0\.col1 \* cor0\.col1 \+ cor0\.col1 / \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + col1 * - + 43 * + CAST ( NULL AS FLOAT8 ) AS col0, col2 * ( col1 ) * + col1 + + col1 / - col2 AS col0 FROM tab2 AS cor0 +---- +237159 +260361 +59821 +NULL +NULL +NULL query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT 33 > - col2 @@ -37351,8 +37718,15 @@ SELECT - ( - col1 ) + - + col0 AS col1, + ( col2 ) AS col0 FROM tab0 # Datafusion - Expected - -15 # Datafusion - Expected - -99 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "\(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col1, - col0 AS col1 FROM tab0 WHERE ( NOT NULL IS NOT NULL ) +---- +-10 +-15 +-47 +-87 +-97 +-99 query I rowsort label-6132 SELECT MAX ( ALL - + col2 ) FROM tab1 @@ -38125,8 +38499,15 @@ SELECT - 31 + + col1 + + + col0 FROM tab1 # Datafusion - Expected - -73 # Datafusion - Expected - 74 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \+ Int64\(1\) \+ tab0\.col2 AS col0" at position 0 and "tab0\.col1 \+ Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 26 + + + 1 + col2 AS col0, + col1 + - 94 AS col0 FROM tab0 +---- +-13 +-73 +-93 +126 +37 +74 query II rowsort SELECT ALL col1, 55 AS col0 FROM tab1 @@ -38295,8 +38676,11 @@ SELECT 95, col1 - + col1 col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 50 AS col1 FROM tab1 +---- +3 +50 query I rowsort label-6282 SELECT DISTINCT col2 * 13 / col1 FROM tab1 @@ -38373,8 +38757,11 @@ SELECT ALL - col2 FROM tab1 AS cor0 WHERE + col2 = - - col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-53\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) - - 53 AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +3 +56 query III rowsort SELECT ALL * FROM tab0 cor0 WHERE NOT 98 * col1 * - col2 - + 54 IS NOT NULL @@ -38914,8 +39301,15 @@ SELECT * FROM tab2 WHERE 93 IS NULL # Datafusion - Expected - 87 # Datafusion - Expected - -27 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 27 AS col1, col0 AS col1 FROM tab0 +---- +-27 +-27 +-27 +15 +87 +97 query I rowsort SELECT ALL - 59 - - 66 FROM tab2 @@ -40058,8 +40452,10 @@ SELECT ALL COUNT ( * ) * 83 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to c713be5750e69e15e498aacfc97f1a1b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 15 AS col0, 72 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 +---- +18 values hashing to 6ca00fdbf1e14f255d186b3c1ac35bab query I rowsort label-6579 SELECT DISTINCT + + COUNT ( * ) / 48 FROM tab1 AS cor0 @@ -40409,8 +40805,15 @@ SELECT DISTINCT col0 * + 52 * + col0 * + col0 FROM tab0 # Datafusion - Expected - -1536 # Datafusion - Expected - -86265 # Datafusion - Expected - -3289 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col1 \* Int64\(20\) \+ Int64\(\-70\) \- Int64\(46\) \* cor0\.col0 \+ \(\- cor0\.col0\) \* cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col2\) \* cor0\.col2 \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 * + + col1 * + 20 + - 70 - 46 * col0 + + - col0 * col1 AS col0, - col2 * + col2 + + + col0 AS col0 FROM tab2 AS cor0 +---- +-1536 +-27992 +-3289 +-483 +-69542 +-86265 query I rowsort SELECT + - col2 * + col0 + - col2 AS col1 FROM tab0 AS cor0 @@ -40800,8 +41203,15 @@ SELECT DISTINCT + MIN ( ALL CAST ( + 50 AS INTEGER ) ) col0 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 35 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-44\)\)\) \+ Int64\(79\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - - 44 ) + + + 79 AS col2, + col1 AS col2 FROM tab0 AS cor0 +---- +1 +21 +35 +35 +35 +81 query I rowsort label-6705 SELECT + col1 * - - 14 - 70 + + - CAST ( NULL AS INTEGER ) - ( + col1 ) / + - col0 FROM tab2 AS cor0 @@ -41074,8 +41484,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col1 col1, col1 AS col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE + col1 >= ( - col1 ) * - + 81 @@ -41241,8 +41658,15 @@ SELECT + 17 * COUNT ( * ) + + 23 FROM tab2 cor0 # Datafusion - Expected - -3551 # Datafusion - Expected - 77 # Datafusion - Expected - -4081 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col1\) \* Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + col1 ) AS col2, - col1 * ( 53 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL +---- +-2703 +-3551 +-4081 +51 +67 +77 query I rowsort label-6781 SELECT + col0 / + 54 AS col2 FROM tab2 @@ -41323,8 +41747,15 @@ SELECT ALL - SUM ( - col1 ) * - MIN ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor # Datafusion - Expected - -23 # Datafusion - Expected - 96 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ tab2\.col1 AS col2" at position 0 and "\(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 29 + col1 AS col2, - col2 col2 FROM tab2 +---- +-23 +-40 +-58 +106 +80 +96 query I rowsort SELECT ALL 27 + + col0 + + col2 FROM tab1 @@ -42779,8 +43210,15 @@ SELECT ALL + col0 + + CAST ( col0 AS INTEGER ) FROM tab2 WHERE + col0 > col0 # Datafusion - Expected - 45 # Datafusion - Expected - -43 # Datafusion - Expected - 45 -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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 43 AS col0, 45 AS col0 FROM tab2 +---- +-43 +-43 +-43 +45 +45 +45 query III rowsort SELECT * FROM tab0 WHERE NULL BETWEEN + 47 AND ( NULL ) @@ -43957,8 +44395,11 @@ SELECT ALL - col1 * + 11 * 30 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- Int64\(23\)\)\)\) AS col1" at position 0 and "Int64\(6\) / \(\- \(\- max\(cor0\.col0\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( ALL - + 23 ) AS col1, 6 / ( - - MAX ( col0 ) ) col1 FROM tab1 AS cor0 +---- +-3 +0 query II rowsort SELECT - 52 * - - col2 AS col2, 57 col1 FROM tab2 AS cor0 @@ -44299,8 +44740,11 @@ SELECT - col1 / + + 8 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "min\(\(\- tab0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 58 AS col2, MIN ( + - col0 ) AS col2 FROM tab0 +---- +-97 +58 query I rowsort label-7283 SELECT ALL - CAST ( 46 AS INTEGER ) col2 FROM tab0 @@ -44332,8 +44776,15 @@ SELECT DISTINCT + MAX ( - - 88 ) FROM tab1 # Datafusion - Expected - -87 # Datafusion - Expected - 11 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 11 AS col2, - col0 AS col2 FROM tab0 +---- +-15 +-87 +-97 +11 +11 +11 query III rowsort label-7288 SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * - col0 + ( - - CAST ( NULL AS INTEGER ) ) <= NULL @@ -44758,8 +45209,11 @@ SELECT ALL + 90 / col1 * + 77 * col2 + - col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 666 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(74\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 75 AS col1, COUNT ( * ) * + 74 * + COUNT ( * ) AS col1 FROM tab0 cor0 +---- +-75 +666 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NULL < ( 65 ) @@ -45932,8 +46386,15 @@ SELECT COUNT ( * ) * - - 90 FROM tab1 # Datafusion - Expected - 38880 # Datafusion - Expected - 99 # Datafusion - Expected - 251424 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "Int64\(96\) \* \(\- tab0\.col0\) \* Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col1, ( + 96 ) * - col0 * - 27 AS col1 FROM tab0 +---- +10 +225504 +251424 +38880 +47 +99 query III rowsort SELECT * FROM tab0 WHERE NOT col2 * 55 <> NULL @@ -46255,8 +46716,15 @@ SELECT ALL ( + 47 ) AS col1 FROM tab0 AS cor0 WHERE + 80 / + - col1 IS NOT NULL # Datafusion - Expected - 40 # Datafusion - Expected - 14688 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(17\)\) \* \(\- Int64\(\-16\)\) \* Int64\(\-54\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 17 * - - 16 * - 54 AS col0, + col2 col0 FROM tab2 AS cor0 +---- +14688 +14688 +14688 +23 +40 +58 query I rowsort SELECT ALL - - ( col2 ) * - + 49 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 - + ( - col0 ) + - col2 AND NULL @@ -46548,8 +47016,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 15 AS col2, 97 AS col2 FROM tab1 AS cor0 +---- +15 +97 query III rowsort SELECT * FROM tab1 WHERE NOT + - 49 + + + 11 * + col0 IS NULL @@ -47005,8 +47476,15 @@ SELECT * FROM tab1 WHERE + + ( + + 84 ) IS NOT NULL # Datafusion - Expected - 85 # Datafusion - Expected - -81 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 81 AS col2, + col0 AS col2 FROM tab1 +---- +-81 +-81 +-81 +51 +85 +91 query III rowsort SELECT * FROM tab0 cor0 WHERE ( - 82 * col0 * + - 0 + col0 < NULL ) @@ -47773,8 +48251,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 / - CAST ( NULL AS INTEGER ) NO # Datafusion - Expected - 27 # Datafusion - Expected - -81 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 81 AS col2, 27 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL +---- +-81 +-81 +-81 +27 +27 +27 query I rowsort label-7864 SELECT + MAX ( - 44 ) FROM tab0 AS cor0 @@ -48217,8 +48702,15 @@ SELECT + 19 + COUNT ( * ) / - 67 AS col2 FROM tab2 cor0 # Datafusion - Expected - -3150 # Datafusion - Expected - 84 # Datafusion - Expected - -2688 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ Int64\(7\) AS col0" at position 0 and "cor0\.col0 \* Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + + 7 AS col0, col0 * - 42 AS col0 FROM tab2 AS cor0 +---- +-1932 +-2688 +-3150 +58 +74 +84 query II rowsort SELECT DISTINCT + ( - col1 ) col2, 59 * col2 * 69 AS col1 FROM tab2 AS cor0 @@ -49383,8 +49875,15 @@ SELECT ALL + - 21 * - + col1 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 10 # Datafusion - Expected - 0 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 / \(\- tab0\.col1\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 / + - col1 AS col1, + col2 AS col1 FROM tab0 +---- +-99 +0 +0 +10 +47 +99 query I rowsort label-8125 SELECT 9 * - MIN ( DISTINCT col1 ) + - - 28 FROM tab0 AS cor0 @@ -49570,8 +50069,15 @@ SELECT ALL SUM ( ALL - 8 ) * + 73 FROM tab2 # Datafusion - Expected - -675 # Datafusion - Expected - -99 # Datafusion - Expected - -4365 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "\(\- cor0\.col0\) \* Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 col1, - col0 * + 45 AS col1 FROM tab0 AS cor0 +---- +-10 +-3915 +-4365 +-47 +-675 +-99 query I rowsort label-8156 SELECT DISTINCT - MAX ( ALL + col2 ) FROM tab2 AS cor0 @@ -50242,8 +50748,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 * - 35 * + col0 ) IS NOT NULL # Datafusion - Expected - 141 # Datafusion - Expected - 58 # Datafusion - Expected - 142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col1 \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, col1 + col0 AS col1 FROM tab2 AS cor0 +---- +141 +142 +23 +40 +58 +97 query I rowsort SELECT DISTINCT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL @@ -50595,8 +51108,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 87 col1, - COUNT ( * ) col1 FROM tab0 AS cor0 +---- +-3 +87 query I rowsort label-8323 SELECT DISTINCT - 17 * COUNT ( * ) FROM tab0 @@ -51048,8 +51564,15 @@ NULL # Datafusion - Expected - 4774 # Datafusion - Expected - -6525 # Datafusion - Expected - 4154 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(87\) AS col1" at position 0 and "cor0\.col1 \* Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col0 * 87 col1, ( + col1 ) * 62 AS col1 FROM tab2 AS cor0 WHERE 92 + - col2 * + 30 / - ( + col1 ) + + 61 IS NOT NULL +---- +-4002 +-5568 +-6525 +3162 +4154 +4774 query I rowsort SELECT - - 74 * - 0 FROM tab1 AS cor0 @@ -52531,8 +53054,15 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - -99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(83\) \+ cor0\.col2 \+ \(\- Int64\(68\)\) \* CAST\(NULL AS Float64\) \* cor0\.col0 \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - col2 col2, 83 + + col2 + - + 68 * + + CAST ( NULL AS FLOAT8 ) * + col0 * - col0 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +NULL +NULL +NULL query I rowsort label-8631 SELECT + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE col1 + - col1 * + col2 < + col1 @@ -54225,8 +54755,15 @@ SELECT DISTINCT - COUNT ( * ) + + 45 FROM tab1 AS cor0 # Datafusion - Expected - 22 # Datafusion - Expected - 150 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / cor0\.col0 \+ cor0\.col0 \- Int64\(\-74\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 / + col0 + + col0 - - 74 col1, 22 col1 FROM tab2 AS cor0 +---- +121 +139 +150 +22 +22 +22 query II rowsort label-8906 SELECT + CAST ( - + col2 AS INTEGER ), + col0 AS col1 FROM tab2 AS cor0 @@ -54822,8 +55359,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \* min\(DISTINCT Int64\(\-1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 22 AS col2, - COUNT ( * ) * MIN ( DISTINCT + - 1 ) AS col2 FROM tab2 AS cor0 +---- +-22 +3 query II rowsort SELECT + - col0 AS col1, 33 + - + col0 AS col2 FROM tab1 AS cor0 @@ -55626,8 +56166,11 @@ SELECT * FROM tab1 WHERE col0 NOT BETWEEN - 20 + col1 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 97 AS col1, COUNT ( * ) AS col1 FROM tab2 +---- +3 +97 query I rowsort SELECT - + 22 - 37 AS col0 FROM tab0 AS cor0 @@ -56732,8 +57275,11 @@ SELECT DISTINCT 53 / COUNT ( ALL + col2 ) AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- \(\- cor0\.col2\)\)\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MIN ( - - col2 ) AS col1, 15 AS col1 FROM tab2 AS cor0 +---- +15 +23 query I rowsort SELECT - 66 col2 FROM tab2 AS cor0 @@ -56867,8 +57413,15 @@ SELECT ALL col0, col0 + + col2 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -48 # Datafusion - Expected - -48 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\)" at position 0 and "Int64\(\-48\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 48, - 48 FROM tab0 AS cor0 +---- +-48 +-48 +-48 +-48 +-48 +-48 query I rowsort SELECT + 57 AS col2 FROM tab1 cor0 @@ -57782,8 +58335,15 @@ SELECT 13 * + col2 AS col2, 14 FROM tab0 WHERE + - 47 NOT BETWEEN + - col2 AND + # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col0, col0 AS col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT col1 + - col0 + + col2 FROM tab2 @@ -59234,8 +59794,15 @@ SELECT ALL - col1 * + ( - 91 ) FROM tab2 # Datafusion - Expected - -57 # Datafusion - Expected - -18 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col1" at position 0 and "Int64\(\-57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 18 AS col1, - 57 AS col1 FROM tab0 +---- +-18 +-18 +-18 +-57 +-57 +-57 query II rowsort SELECT DISTINCT col0, col0 * 51 FROM tab0 @@ -59315,8 +59882,9 @@ SELECT - + ( + col1 ) + - - col1 AS col0 FROM tab1 AS cor0 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col0, 0 AS col0 FROM tab0 AS cor0 WHERE NULL IN ( + col2, col2 + col1 * + col2 * - 89, 81, - col1 * col0 / + + col2 * - col2 ) +---- query III rowsort SELECT * FROM tab1 WHERE NULL <> ( - col1 ) AND NOT NULL IS NOT NULL @@ -59607,8 +60175,11 @@ SELECT - + 51 * - 9 * 60, 43 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, + ( 34 ) col0 FROM tab0 +---- +3 +34 query I rowsort label-9805 SELECT col0 / - + 46 AS col2 FROM tab0 @@ -59813,8 +60384,15 @@ SELECT DISTINCT + col2 AS col2 FROM tab2 AS cor0 WHERE NULL > NULL # Datafusion - Expected - 47 # Datafusion - Expected - 81 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 col0, col1 AS col0 FROM tab1 AS cor0 +---- +14 +47 +5 +81 +81 +81 query I rowsort SELECT - col2 * col2 * - + 45 FROM tab0 @@ -60128,8 +60706,11 @@ SELECT COUNT ( * ) * - 63 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 363 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(sum\(cor0\.col2\) AS Int32\) AS col1" at position 0 and "Int64\(\-21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) * CAST ( + SUM ( + col2 ) AS INTEGER ) AS col1, - 21 AS col1 FROM tab2 AS cor0 +---- +-21 +363 query I rowsort SELECT DISTINCT 75 FROM tab2 WHERE NULL IS NOT NULL diff --git a/data/sqlite/random/aggregates/slt_good_50.slt b/data/sqlite/random/aggregates/slt_good_50.slt index bddc0a0..2b840b8 100644 --- a/data/sqlite/random/aggregates/slt_good_50.slt +++ b/data/sqlite/random/aggregates/slt_good_50.slt @@ -931,8 +931,15 @@ SELECT + 15 AS col0, - col0 AS col1, 64 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query II rowsort SELECT ALL - 64 AS col0, - 33 * + - col0 AS col2 FROM tab1 AS cor0 @@ -1066,8 +1073,15 @@ SELECT CAST ( + + 37 AS INTEGER ) col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL # Datafusion - Expected - 9 # Datafusion - Expected - 77 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, 9 col0 FROM tab2 +---- +51 +67 +77 +9 +9 +9 query IIIIII rowsort label-175 SELECT * FROM tab2, tab0 AS cor0 WHERE NULL IN ( - CAST ( NULL AS INTEGER ) ) @@ -1367,8 +1381,11 @@ SELECT * FROM tab2 AS cor0 WHERE - 0 NOT IN ( - + col1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(70\) AS col1" at position 0 and "\(\- count\(CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 27 * - ( - COUNT ( * ) ) + 70 AS col1, - COUNT ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 +---- +-11 +0 query III rowsort label-228 SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - - col2 ) >= + CAST ( - ( - + col0 ) AS INTEGER ) @@ -1739,8 +1756,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 63 * + 23 AS col1, COUNT ( * ) * 50 AS col1 FROM tab0 AS cor0 +---- +-1449 +150 query I rowsort SELECT col1 * 34 * - + col1 FROM tab0 AS cor0 @@ -2211,8 +2231,15 @@ SELECT - 77 - - 30 FROM tab1 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - 5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- Int64\(80\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 - 80 AS col2, col0 col2 FROM tab1 AS cor0 +---- +-29 +11 +5 +51 +85 +91 query I rowsort label-364 SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL @@ -2567,8 +2594,15 @@ SELECT - col1 * + col1 + - col0 + col0 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -43 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ \(\- cor0\.col0\) AS col0" at position 0 and "Int64\(\-83\) \+ cor0\.col1 \+ \(\- CAST\(NULL AS Float64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL 32 + - col0 AS col0, - 83 + col1 + - CAST ( NULL AS FLOAT8 ) AS col0 FROM tab2 AS cor0 +---- +-14 +-32 +-43 +NULL +NULL +NULL query I rowsort label-422 SELECT - CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab0 cor0 @@ -2836,8 +2870,11 @@ SELECT col2 AS col2, col1 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col2, - 9 AS col2 FROM tab0 +---- +-9 +3 query II rowsort SELECT - 25 AS col0, + col2 AS col1 FROM tab2 WHERE NOT NULL IN ( 59 + - 14 * + col0, 31, + col2 ) @@ -2903,8 +2940,11 @@ SELECT ALL - 6 + - - 68 col1 FROM tab1 AS cor0 # 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 "\(\- min\(Int64\(54\)\)\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( + 54 ) AS col0, 1 AS col0 FROM tab0 AS cor0 +---- +-54 +1 query II rowsort label-477 SELECT ALL + COUNT ( * ) + - 74 AS col2, 81 / COUNT ( * ) col1 FROM tab1 AS cor0 @@ -3240,8 +3280,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE ( + 46 NOT BETWEEN col2 / + + 71 - 6 + + - # Datafusion - Expected - 133 # Datafusion - Expected - 34 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "cor0\.col0 \- \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 34 AS col0, col0 - - + col2 AS col0 FROM tab2 AS cor0 +---- +104 +133 +34 +34 +34 +69 query I rowsort label-532 SELECT + - 42 / - + MAX ( + 10 ) AS col0 FROM tab0 cor0 @@ -3869,8 +3916,15 @@ SELECT col0 * - ( + ( - ( + col0 ) ) ) FROM tab1 # Datafusion - Expected - -261013 # Datafusion - Expected - -77 # Datafusion - Expected - -153624 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "tab2\.col0 \- Int64\(88\) \+ tab2\.col2 \* tab2\.col0 \* Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, col0 - + + 88 + + + col2 * + + col0 * - 60 AS col1 FROM tab2 +---- +-153624 +-261013 +-51 +-63522 +-67 +-77 query I rowsort label-643 SELECT ALL - + col2 / + col0 FROM tab0 AS cor0 @@ -5140,8 +5194,15 @@ SELECT DISTINCT MAX ( DISTINCT col1 ) AS col1, + 97 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - 0 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 / \(\- tab1\.col2\) \* tab1\.col2 AS col1" at position 0 and "Int64\(54\) \+ \(\- tab1\.col1\) \+ tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 / - col2 * + col2 AS col1, 54 + - col1 + + col0 col1 FROM tab1 +---- +0 +0 +0 +134 +91 +98 query I rowsort label-853 SELECT ALL - MAX ( - col0 ) FROM tab2 @@ -5354,8 +5415,15 @@ SELECT + COUNT ( * ) * + COUNT ( * ) FROM tab0 cor0 # Datafusion - Expected - -59 # Datafusion - Expected - -3196 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col1 AS Int32\)\) \* cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( + col1 AS INTEGER ) * col2 col1, - col2 AS col1 FROM tab1 AS cor0 +---- +-1344 +-295 +-3196 +-59 +-68 +-96 query I rowsort SELECT DISTINCT + col1 * - + 34 FROM tab0 AS cor0 @@ -5825,8 +5893,15 @@ SELECT 81 * + 72 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT ALL - + ( ( - col2 ) ) * - col0 * col2 * + - col0 FROM tab0 cor0 @@ -6032,8 +6107,15 @@ SELECT + col2 / 53 - - + 93 + + + col2 - - 82 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, + col2 col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE 52 > - ( + col2 ) @@ -7100,8 +7182,15 @@ SELECT + col0 * + + 23 FROM tab1 # Datafusion - Expected - -40 # Datafusion - Expected - 75 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, - col2 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +46 +64 +75 query II rowsort SELECT ALL 40 + + 35 + - ( - - 68 ) AS col2, - col0 AS col1 FROM tab1 cor0 WHERE ( + col2 ) BETWEEN ( NULL ) AND + 14 / - + col2 @@ -7992,8 +8081,15 @@ SELECT + COUNT ( ALL - - 27 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -79 # Datafusion - Expected - -26 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) AS col2" at position 0 and "Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 26 AS col2, - 79 AS col2 FROM tab2 AS cor0 +---- +-26 +-26 +-26 +-79 +-79 +-79 query I rowsort SELECT DISTINCT 64 * col1 AS col2 FROM tab1 @@ -8190,8 +8286,15 @@ SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE + col1 * col0 * 54 NOT BETWEEN NUL # Datafusion - Expected - -40 # Datafusion - Expected - -187 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ Int64\(41\) \* Int64\(\-6\) AS col2" at position 0 and "\(\- Int64\(40\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 + 41 * - 6 AS col2, ( - + 40 ) AS col2 FROM tab1 AS cor0 +---- +-150 +-178 +-187 +-40 +-40 +-40 query I rowsort SELECT DISTINCT - 3 + - + 47 FROM tab1 AS cor0 @@ -8383,8 +8486,11 @@ SELECT ALL + 55 + + + col1 + - - 68 AS col1 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) / Int64\(\-79\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 10 / - 79 AS col2, COUNT ( * ) AS col2 FROM tab1 cor0 +---- +0 +3 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE + 76 IS NOT NULL @@ -8767,8 +8873,11 @@ SELECT 19 + - + COUNT ( * ) AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3320 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* Int64\(\-40\) AS col1" at position 0 and "Int64\(\-5\) \- Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 83 * ( + - 40 ) AS col1, - 5 - - 73 AS col1 FROM tab1 AS cor0 +---- +3320 +68 query III rowsort SELECT * FROM tab2 WHERE + 1 * - + 26 + + col1 <> NULL @@ -9676,8 +9785,15 @@ SELECT DISTINCT + 2, col2 / - + 83 AS col1 FROM tab0 cor0 # Datafusion - Expected - 26 # Datafusion - Expected - 76 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 76 AS col1, 26 col1 FROM tab1 AS cor0 +---- +26 +26 +26 +76 +76 +76 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE 60 * + + 59 <> NULL @@ -10440,8 +10556,15 @@ SELECT ALL - + col1 col2, ( - 3 ) / - CAST ( - 55 AS INTEGER ) AS col1 FROM tab0 # Datafusion - Expected - -752623 # Datafusion - Expected - 990 # Datafusion - Expected - -605433 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(99\) AS col1" at position 0 and "cor0\.col0 \* Int64\(80\) \* \(\- cor0\.col0\) \- \(\- \(\- \(\- cor0\.col0\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 * + 99 AS col1, col0 * 80 * ( - col0 ) - - ( - ( + - col0 ) ) AS col1 FROM tab0 AS cor0 +---- +-17985 +-605433 +-752623 +4653 +9801 +990 query II rowsort SELECT - col1 * - - col2 AS col1, + col0 * - 13 AS col0 FROM tab0 @@ -10468,8 +10591,11 @@ SELECT SUM ( ALL - + col2 ) col0 FROM tab2 # 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\(22\) / Int64\(53\) 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 II valuesort SELECT 22 / + 53 AS col2, + MAX ( DISTINCT - col0 ) col2 FROM tab1 +---- +-51 +0 query I rowsort SELECT + col0 * + 12 col2 FROM tab1 @@ -10565,8 +10691,15 @@ SELECT ALL - ( - 28 ) FROM tab2, tab0 AS cor0 # Datafusion - Expected - -31 # Datafusion - Expected - 97 # Datafusion - Expected - -100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \- \(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "\(\- cor0\.col1\) \+ \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 98 - - - col1 AS col0, - col1 + - + col2 AS col0 FROM tab0 cor0 +---- +-100 +-128 +-31 +17 +77 +97 query I rowsort SELECT + col0 - - + 44 FROM tab1 AS cor0 @@ -10996,8 +11129,15 @@ SELECT 78 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 53 # Datafusion - Expected - 76 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 76 AS col0, 53 AS col0 FROM tab1 cor0 +---- +53 +53 +53 +76 +76 +76 query I rowsort SELECT - 24 col0 FROM tab2 AS cor0 @@ -12275,8 +12415,15 @@ SELECT * FROM tab0 WHERE NOT - 60 IS NOT NULL # Datafusion - Expected - 91 # Datafusion - Expected - -96 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, col0 AS col1 FROM tab1 +---- +-59 +-68 +-96 +51 +85 +91 query I rowsort label-2034 SELECT ( + COUNT ( ALL + 90 ) ) AS col0 FROM tab1 @@ -12520,8 +12667,11 @@ SELECT + 87 * - 93 + - 2 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \+ avg\(tab0\.col1\) \+ \(\- max\(CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT 20 + AVG ( + col1 ) + - MAX ( CAST ( NULL AS INTEGER ) ) col2, 27 col2 FROM tab0 +---- +27 +NULL query II rowsort SELECT ALL + col0, col1 FROM tab2 @@ -12648,8 +12798,15 @@ SELECT ALL + col1 + + - col2 * ( - - col1 ) FROM tab1 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - -79 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(79\)\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 79 col0, - col2 AS col0 FROM tab2 cor0 +---- +-23 +-40 +-58 +-79 +-79 +-79 query I rowsort label-2092 SELECT DISTINCT - col0 - + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0 @@ -12879,8 +13036,10 @@ SELECT * FROM tab0 cor0 WHERE NOT NULL = ( + 62 + + col2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c91deaf1f91d0c1632ee9209e2448621 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(27\) \* Int64\(52\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col0 AS col2, CAST ( - + 97 AS INTEGER ), 27 * + 52 AS col2 FROM tab0 AS cor0 +---- +9 values hashing to 898588cb851ef7409285e879f2be7e6a query I rowsort SELECT DISTINCT + col2 * - - col1 * - + col1 AS col0 FROM tab0 AS cor0 @@ -13021,8 +13180,15 @@ SELECT ( - + COUNT ( * ) ) * 63 AS col1 FROM tab0 # Datafusion - Expected - 59 # Datafusion - Expected - 9 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "CAST\(Int64\(59\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 9 AS col1, + CAST ( + 59 AS INTEGER ) AS col1 FROM tab0 +---- +59 +59 +59 +9 +9 +9 query I rowsort SELECT ALL col0 * + + col0 * 94 + col1 * 52 FROM tab0 AS cor0 @@ -13564,8 +13730,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 +---- +3 +3 query I rowsort SELECT DISTINCT - 62 * + + col0 FROM tab2 AS cor0 @@ -13604,8 +13773,11 @@ SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE + 45 NOT BETWEEN - 69 AND # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(89\)\) / Int64\(11\) AS col1" at position 0 and "\(\- cor0\.col0\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 89 / + 11 AS col1, + ( - col0 ) + - + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 +---- +-8 +NULL query I rowsort label-2246 SELECT DISTINCT + col2 / - + col2 + + + CAST ( + 30 AS INTEGER ) FROM tab2 AS cor0 @@ -14561,8 +14733,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, - 63 col1 FROM tab1 +---- +-3 +-63 query I rowsort label-2399 SELECT DISTINCT + 44 / + col0 AS col0 FROM tab1 @@ -15169,8 +15344,15 @@ SELECT * FROM tab0 AS cor0 WHERE ( col1 + col2 ) < ( NULL ) # Datafusion - Expected - -66 # Datafusion - Expected - NULL # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-17\) \- Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) col0, - 17 - + 49 AS col0 FROM tab0 AS cor0 +---- +-66 +-66 +-66 +NULL +NULL +NULL query I rowsort label-2507 SELECT - MIN ( ALL + - col0 ) AS col2 FROM tab1 cor0 @@ -15243,8 +15425,15 @@ SELECT - col0 - + col1, + col1 * - ( + col1 ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - 1 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 / col2 AS col1, - col1 AS col1 FROM tab2 cor0 +---- +-51 +-67 +-77 +1 +1 +1 query I rowsort SELECT - col2 * 58 + + ( + col1 ) FROM tab1 AS cor0 @@ -15325,8 +15514,11 @@ SELECT + 7 + + - col0 AS col1 FROM tab1 cor0 WHERE NOT NULL = NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 72 -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\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( - col0 ) AS col1, 72 AS col1 FROM tab1 AS cor0 +---- +-51 +72 query I rowsort SELECT DISTINCT - 48 * 60 FROM tab2 @@ -15934,8 +16126,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * - - 18 = + 93 + - 51 * - - col2 # Datafusion - Expected - -5 # Datafusion - Expected - 91 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, + ( - col1 ) AS col1 FROM tab1 +---- +-14 +-47 +-5 +51 +85 +91 query II rowsort SELECT col0, - 0 + + ( + - 15 ) FROM tab0 @@ -15967,8 +16166,15 @@ SELECT DISTINCT + col0 AS col2 FROM tab2 WHERE ( 45 IS NOT NULL ) # Datafusion - Expected - 163 # Datafusion - Expected - 5 # Datafusion - Expected - 157 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(72\) \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col1 AS col0, 72 + + col0 AS col0 FROM tab1 AS cor0 +---- +123 +14 +157 +163 +47 +5 query II rowsort SELECT DISTINCT + col1 AS col1, col0 FROM tab1 AS cor0 @@ -17124,8 +17330,15 @@ SELECT - MAX ( + col1 ) * - MAX ( + + CAST ( + 16 AS INTEGER ) ) + + ( - 58 ) FR # Datafusion - Expected - 99 # Datafusion - Expected - 160 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ cor0\.col0 \+ cor0\.col1 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 52 + col0 + col1 AS col1, col2 col1 FROM tab0 AS cor0 +---- +10 +148 +150 +160 +47 +99 query II rowsort label-2825 SELECT col0 / + 97 + - col1 col2, 24 FROM tab1 AS cor0 @@ -17195,8 +17408,15 @@ SELECT ALL 65 * - 12 AS col0 FROM tab1 # Datafusion - Expected - 40 # 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 "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 17 AS col1, + col2 AS col1 FROM tab2 +---- +17 +17 +17 +23 +40 +58 query II rowsort SELECT col1 AS col1, col1 - col0 FROM tab2 @@ -17365,8 +17585,15 @@ SELECT + col1 * - col1 * - + 95 AS col1 FROM tab2 WHERE NULL IS NULL # Datafusion - Expected - -1820 # Datafusion - Expected - -96 # Datafusion - Expected - -1020 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col0 \* \(\- Int64\(20\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 col1, + col0 * - + 20 AS col1 FROM tab1 AS cor0 +---- +-1020 +-1700 +-1820 +-59 +-68 +-96 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * + - 56 + + + ( col1 ) + - - col0 * - col0 + + col0 * + ( - 18 ) <> - - col2 @@ -17647,8 +17874,15 @@ SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, col1 FROM tab1 # Datafusion - Expected - 17 # Datafusion - Expected - -77 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "\(\- tab2\.col2\) \- \(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, - col2 - - + col0 AS col1 FROM tab2 +---- +-51 +-67 +-77 +17 +23 +24 query I rowsort SELECT DISTINCT - 2 * + col2 * + + col2 FROM tab1 @@ -18229,8 +18463,15 @@ SELECT ALL + 83 AS col2 FROM tab2 WHERE NOT - 91 > NULL # Datafusion - Expected - -48 # Datafusion - Expected - 77 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "Int64\(\-48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col2, - 48 AS col2 FROM tab2 +---- +-48 +-48 +-48 +51 +67 +77 query II rowsort label-3010 SELECT COUNT ( * ), + COUNT ( * ) AS col1 FROM tab2 @@ -19341,8 +19582,15 @@ SELECT * FROM tab2 cor0 WHERE 37 + + col1 < NULL # Datafusion - Expected - -64 # Datafusion - Expected - 58 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col2 \* Int64\(0\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 + col2 * 0 col2, - col0 col2 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +23 +40 +58 query I rowsort SELECT ALL + col1 + 84 AS col1 FROM tab0 @@ -19372,8 +19620,11 @@ SELECT col0 * - col0 + + 78 * + - col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 3392 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col0" at position 0 and "Int64\(\-64\) \* Int64\(\-53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 72 AS col0, - 64 * + - 53 AS col0 FROM tab0 +---- +-72 +3392 query I rowsort SELECT col0 + - col2 FROM tab0 WHERE 38 * - col1 + col0 + - 98 + - - 63 + + col1 IS NOT NULL @@ -19665,8 +19916,11 @@ SELECT ALL col2 AS col2, col1 * 30 * - col1 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(cor0\.col1\) / Int64\(35\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(28\) AS col1" at position 0 and "max\(\(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( ALL + col1 ) / 35 + - + CAST ( NULL AS INTEGER ) * + 28 AS col1, MAX ( - col2 ) col1 FROM tab2 AS cor0 +---- +-23 +NULL query I rowsort label-3238 SELECT - + 82 * - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 @@ -20565,8 +20819,11 @@ SELECT + + 90 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ min\(Int64\(\-51\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 66 + MIN ( - 51 ) AS col0, + COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +15 +3 query II rowsort SELECT ALL + col2, + col1 * + 67 col0 FROM tab2 cor0 WHERE NULL IS NULL @@ -21190,8 +21447,15 @@ SELECT - + 38 + 96 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 79 # Datafusion - Expected - 0 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col1\) AS col2" at position 0 and "Int64\(39\) \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 + - col1 AS col2, 39 + + col2 AS col2 FROM tab2 AS cor0 +---- +0 +0 +0 +62 +79 +97 query I rowsort label-3494 SELECT DISTINCT COUNT ( * ) + MAX ( - 9 ) FROM tab1 AS cor0 @@ -22491,8 +22755,15 @@ SELECT DISTINCT + 57 AS col1, 4 + - - col2 FROM tab0 # Datafusion - Expected - 68 # Datafusion - Expected - 5 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col0, col2 AS col0 FROM tab1 +---- +14 +47 +5 +59 +68 +96 query III rowsort SELECT ALL * FROM tab1 WHERE + 37 + col0 IS NULL @@ -22760,8 +23031,15 @@ NULL # Datafusion - Expected - 128 # Datafusion - Expected - 99 # Datafusion - Expected - 100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "tab0\.col2 \+ tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 col0, col2 + col1 AS col0 FROM tab0 +---- +10 +100 +128 +31 +47 +99 query II rowsort SELECT DISTINCT col1, 91 FROM tab2 @@ -23485,8 +23763,11 @@ SELECT CAST ( col0 AS INTEGER ) * + col0 AS col2 FROM tab0 # 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 "Int64\(1\) AS col2" at position 0 and "min\(tab1\.col2\) \* count\(Int64\(97\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 1 AS col2, MIN ( ALL col2 ) * COUNT ( + 97 ) AS col2 FROM tab1 +---- +1 +177 query I rowsort SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE NOT col0 + col2 IS NULL @@ -24326,8 +24607,15 @@ SELECT ALL + 41 / - COUNT ( * ), - 23 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 14 # Datafusion - Expected - -8 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- \(\- Int64\(\-99\)\) AS col1" at position 0 and "\(\- \(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 - - - 99 col1, - ( - col1 ) AS col1 FROM tab1 AS cor0 +---- +-14 +-48 +-8 +14 +47 +5 query III rowsort SELECT ALL * FROM tab0 cor0 WHERE + 80 + - col1 * - col2 + - + 13 IS NULL @@ -24497,8 +24785,9 @@ SELECT * FROM tab1 WHERE NOT + col1 / - 43 >= NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \+ tab1\.col2 AS col2" at position 0 and "tab1\.col0 \- Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 89 + + col2 AS col2, + col0 - - 49 AS col2 FROM tab1 WHERE - 98 IS NULL +---- query I rowsort SELECT + - 48 * - 93 AS col0 FROM tab2 WHERE NOT - col1 NOT IN ( - col0, - col2 ) @@ -24860,8 +25149,15 @@ SELECT ALL + ( + - col2 ) AS col2 FROM tab2 # Datafusion - Expected - 40 # Datafusion - Expected - 3000 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ \(\- Int64\(\-39\)\) \* tab2\.col0 AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 + - - 39 * col0 AS col1, col2 AS col1 FROM tab2 +---- +1840 +23 +2560 +3000 +40 +58 query I rowsort label-4087 SELECT ALL COUNT ( ALL + 71 ) + ( - 25 ) FROM tab2 @@ -25745,8 +26041,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + COUNT ( * ) ), ( + + COUNT ( * ) ) FROM tab1 +---- +3 +3 query I rowsort SELECT + - col0 * - 75 - col1 + - 60 col2 FROM tab0 WHERE NOT NULL IS NULL @@ -25796,8 +26095,9 @@ SELECT ALL + - col2, col0 AS col0 FROM tab0 AS cor0 97 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col1 AS col1" at position 0 and "cor0\.col1 \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * col1 AS col1, ( col1 ) * col1 AS col1 FROM tab1 AS cor0 WHERE - col0 * col2 > col2 +---- query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 <= - ( col2 ) @@ -26200,8 +26500,10 @@ SELECT DISTINCT - - col1 + 77 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 24732b978728d96c2eca22629352f6e0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \+ \(\- tab2\.col1\) AS col1" at position 0 and "Int64\(\-41\) / Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 43 + - col1 col1, - 41 / + 84 AS col1, - + col2 * - + 52 + col2 FROM tab2 +---- +9 values hashing to d9a63db037aaf350035029e9f4b52905 query I rowsort SELECT DISTINCT col0 * - 70 FROM tab2 @@ -26330,8 +26632,15 @@ SELECT ALL - - MAX ( + 38 ) + + + 89 AS col2, COUNT ( * ) AS col0 FROM tab0 AS c # Datafusion - Expected - -64 # Datafusion - Expected - -75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col0 col1, - col0 AS col1 FROM tab2 AS cor0 +---- +-46 +-46 +-64 +-64 +-75 +-75 query I rowsort label-4332 SELECT DISTINCT MIN ( + 20 ) FROM tab1 AS cor0 @@ -26346,8 +26655,11 @@ SELECT ALL - SUM ( col2 ) FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 69 AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +3 +69 query I rowsort label-4335 SELECT ALL - 52 * COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab0 @@ -27276,8 +27588,15 @@ SELECT DISTINCT col2 col2, 50 AS col0 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - -4087 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \+ Int64\(82\) \* Int64\(\-50\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 + + 82 * + - 50 col0, + col2 AS col0 FROM tab0 +---- +-4087 +-4087 +-4087 +10 +47 +99 query I rowsort SELECT col2 AS col0 FROM tab1 AS cor0 WHERE - col1 / 13 IS NOT NULL @@ -28026,8 +28345,9 @@ SELECT ALL - + CAST ( - 84 AS INTEGER ) / - col0 AS col2 FROM tab2 AS cor0 -1 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \- cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col0, + CAST ( NULL AS INTEGER ) - col2 AS col0 FROM tab2 AS cor0 WHERE + col1 * col2 IS NULL +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -28059,8 +28379,15 @@ SELECT DISTINCT + + COUNT ( * ) FROM tab1 AS cor0 WHERE ( + + ( + col0 ) ) IS NU # Datafusion - Expected - 3842 # Datafusion - Expected - -58 # Datafusion - Expected - 3342 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ Int64\(2\) / \(\- cor0\.col1\) AS col0" at position 0 and "CAST\(Int64\(\-50\) AS Int32\) \* \(\- cor0\.col1\) \- \(\- \(\- Int64\(8\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col2 + + 2 / - col1 col0, CAST ( + - 50 AS INTEGER ) * - col1 - - - ( 8 ) AS col0 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +2542 +3342 +3842 query III rowsort label-4620 SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = + col0 + col1 AND NOT + 17 / + col2 * col2 NOT BETWEEN + CAST ( + - 23 AS INTEGER ) + - 82 + + col0 AND NULL @@ -29070,8 +29397,9 @@ SELECT * FROM tab2 AS cor0 WHERE 12 IN ( + col1, - col2, col2 / - col0 + - col0, ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, 46 AS col0 FROM tab0 AS cor0 WHERE 63 IS NULL +---- query I rowsort label-4792 SELECT DISTINCT + MIN ( + col2 ) AS col1 FROM tab1 AS cor0 @@ -29097,8 +29425,15 @@ SELECT - COUNT ( ALL + col0 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -3240 # Datafusion - Expected - 7 # Datafusion - Expected - -4698 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "\(\- cor0\.col2\) \* Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 7 AS col2, - col2 * 81 col2 FROM tab2 AS cor0 +---- +-1863 +-3240 +-4698 +7 +7 +7 query I rowsort label-4796 SELECT ALL CAST ( - col0 AS INTEGER ) * - col0 AS col0 FROM tab0 @@ -29907,8 +30242,15 @@ SELECT + COUNT ( - + col2 ) AS col2 FROM tab2 # Datafusion - Expected - 40 # Datafusion - Expected - 19 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + + 19 ) AS col0, col2 AS col0 FROM tab2 +---- +19 +19 +19 +23 +40 +58 query II rowsort label-4938 SELECT - col0 col1, + CAST ( NULL AS INTEGER ) FROM tab0 @@ -30008,8 +30350,9 @@ SELECT ALL * FROM tab2 AS cor0 WHERE ( - col2 NOT BETWEEN NULL AND + + 2 * 40 + 9 values hashing to 75c998aa53ac83218cbf2feb962d0a49 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 AS col1, - col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL +---- query II rowsort label-4953 SELECT 66 * + + CAST ( NULL AS INTEGER ) - col0 AS col2, col1 * + - col0 * - + col1 AS col0 FROM tab2 @@ -30346,8 +30689,11 @@ 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\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-41\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 31 AS col1, - COUNT ( * ) * - - 41 AS col1 FROM tab2 +---- +-123 +31 query II rowsort SELECT col2, col1 + - 6 FROM tab0 @@ -30397,8 +30743,15 @@ SELECT DISTINCT col2, ( - - ( ( col2 ) ) ) FROM tab0 cor0 # Datafusion - Expected - 4 # Datafusion - Expected - -77 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col2 / Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col1 col2, + col2 / 12 AS col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +1 +3 +4 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT ( ( + col1 ) IS NOT NULL ) @@ -30582,8 +30935,15 @@ SELECT ALL * FROM tab0 WHERE NULL <= + + col2 - - col2 * + col1 - + col1 # Datafusion - Expected - -35 # Datafusion - Expected - -91 # Datafusion - Expected - -329 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(7\) \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col0 col0, 7 * - col1 AS col0 FROM tab1 AS cor0 +---- +-329 +-35 +-51 +-85 +-91 +-98 query I rowsort SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN NULL AND 47 * + - col1 * + 22 * - ( + + col1 ) + col1 @@ -30791,8 +31151,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * + + SUM ( DISTINCT - col0 ) AS col0, 52 AS col0 FROM tab1 AS cor0 +---- +-681 +52 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = 68 * col2 @@ -32154,8 +32517,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - COUNT ( * ) AS col2, 94 col2 FROM tab0 AS cor0 +---- +3 +94 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT 70 >= - col0 @@ -32307,8 +32673,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 81 * + 66 AS col0, ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0 +---- +-3 +5346 query I rowsort label-5323 SELECT DISTINCT - - MIN ( + col2 ) AS col2 FROM tab0 AS cor0 @@ -33967,8 +34336,11 @@ SELECT ALL - ( + ( - 46 ) ) AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(\-77\)\) AS col1" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \+ Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( DISTINCT - 77 ) AS col1, CAST ( COUNT ( * ) AS INTEGER ) + + + 68 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL +---- +68 +NULL query II rowsort SELECT - col1 AS col0, col1 AS col1 FROM tab2 AS cor0 @@ -34239,8 +34611,10 @@ SELECT ALL 23 + - col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to fe17bd074b8f4cdf56d18c49169143a9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ Int64\(\-7\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col1 + - 7 col2, col1, + col1 AS col2 FROM tab2 AS cor0 +---- +9 values hashing to fe17bd074b8f4cdf56d18c49169143a9 query II rowsort SELECT DISTINCT - 86 + 91 AS col2, + 95 AS col0 FROM tab2 AS cor0 @@ -35036,8 +35410,15 @@ SELECT ALL MIN ( + 6 ) FROM tab2 # Datafusion - Expected - -85 # Datafusion - Expected - -8281 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * - + col0 AS col1, + ( - col0 ) AS col1 FROM tab1 AS cor0 +---- +-2601 +-51 +-7225 +-8281 +-85 +-91 query I rowsort label-5776 SELECT - - ( COUNT ( * ) ) * COUNT ( * ) AS col1 FROM tab1 cor0 @@ -35144,8 +35525,15 @@ SELECT - + ( col0 ) / - col1 + - 3 FROM tab1 AS cor0 # Datafusion - Expected - -16 # Datafusion - Expected - -753662 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ \(\- cor0\.col0\) \* Int64\(\-91\) \* \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 + - col0 * - 91 * - col0 col2, - 16 AS col2 FROM tab1 AS cor0 +---- +-16 +-16 +-16 +-236742 +-657560 +-753662 query II rowsort label-5794 SELECT ALL - - 91 + col2 + - col2 + + 43, ( - CAST ( - ( + col1 ) AS INTEGER ) ) col1 FROM tab1 AS cor0 @@ -35268,8 +35656,15 @@ SELECT * FROM tab2 WHERE NULL NOT IN ( col2, col0, - col2 ) # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 AS col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-5814 SELECT 74 / + 71 FROM tab0 @@ -36567,8 +36962,15 @@ SELECT ALL SUM ( ALL - - col2 ) AS col0 FROM tab0 # Datafusion - Expected - -47 # Datafusion - Expected - -32 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col1" at position 0 and "\(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 32 AS col1, - col2 AS col1 FROM tab0 +---- +-10 +-32 +-32 +-32 +-47 +-99 query II rowsort SELECT DISTINCT - + col1, col0 FROM tab1 AS cor0 @@ -36661,8 +37063,15 @@ SELECT MIN ( 86 ) AS col2 FROM tab2 # Datafusion - Expected - 78 # Datafusion - Expected - 23 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 AS col1, 78 AS col1 FROM tab2 +---- +23 +23 +23 +78 +78 +78 query I rowsort SELECT ( + 5 ) FROM tab0 @@ -36818,8 +37227,15 @@ SELECT + + col0 * ( - - col0 ) * + col0 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col0, col0 AS col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-6074 SELECT ALL - CAST ( - col1 AS INTEGER ) * - 85 FROM tab0 AS cor0 @@ -37307,8 +37723,15 @@ SELECT ALL + 5 * + ( ( - col2 ) ) AS col2 FROM tab1 # Datafusion - Expected - 63 # Datafusion - Expected - 75 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 col1, + 63 AS col1 FROM tab2 +---- +46 +63 +63 +63 +64 +75 query I rowsort label-6154 SELECT - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) * - - MAX ( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0 @@ -39639,8 +40062,15 @@ SELECT DISTINCT - - 82 * 44 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- cor0\.col2\) / CAST\(NULL AS Int32\) \+ cor0\.col0 AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col2 * - col2 / ( CAST ( NULL AS INTEGER ) ) + col0 AS col1, CAST ( NULL AS INTEGER ) * - 34 AS col1 FROM tab1 cor0 +---- +NULL +NULL +NULL +NULL +NULL +NULL query I rowsort label-6534 SELECT ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 @@ -40987,8 +41417,15 @@ SELECT ALL + col2 * + 82 FROM tab2 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - 77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "\(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, - col1 AS col0 FROM tab2 +---- +-51 +-67 +-77 +51 +67 +77 query I rowsort SELECT DISTINCT - 40 - + - 99 FROM tab1 @@ -41309,8 +41746,15 @@ SELECT * FROM tab2 WHERE NOT - 90 IS NOT NULL AND - col2 IS NOT NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col0, col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query II rowsort label-6800 SELECT DISTINCT - col2 col2, - col1 * col2 / col2 * col1 FROM tab1 @@ -42283,8 +42727,11 @@ SELECT ALL 12 * - 17 + col0 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 92 AS col0, 64 col0 FROM tab0 AS cor0 +---- +64 +92 query I rowsort SELECT DISTINCT - col2 * + ( - + 4 ) AS col1 FROM tab2 AS cor0 @@ -42640,8 +43087,15 @@ SELECT col1, + 86 + 29 FROM tab0 cor0 # Datafusion - Expected - -1550 # Datafusion - Expected - 35 # Datafusion - Expected - -238 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col1" at position 0 and "Int64\(2\) \+ Int64\(\-16\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 AS col1, 2 + - 16 * col0 col1 FROM tab0 AS cor0 +---- +-1390 +-1550 +-238 +35 +35 +35 query I rowsort SELECT ALL - col0 + + 85 - + - col0 FROM tab1 AS cor0 @@ -43871,14 +44325,24 @@ SELECT + col1 AS col1, + col2 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 19 # Datafusion - Expected - -77 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(85\) \+ Int64\(\-66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col2, 85 + + - 66 AS col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +19 +19 +19 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(tab1\.col2\)\) AS col2" at position 0 and "\(\- min\(tab1\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( ALL + col2 ) AS col2, - MIN ( col1 ) AS col2 FROM tab1 +---- +-5 +-59 query II rowsort SELECT - 11 * - col1 AS col0, - 97 + - 38 FROM tab0 @@ -44067,8 +44531,10 @@ SELECT ALL - - 0 - + + col2 + col2 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to e5aa09e7f25fdd8e494cc6fafb47ca41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \- cor0\.col0 AS col2" at position 0 and "\(\- Int64\(4\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - col1 - col0 col2, ( - 72 ) AS col0, - + 4 AS col2 FROM tab0 AS cor0 +---- +9 values hashing to e444901dcc2d93a7306f4dda333dd883 query I rowsort SELECT - - ( - + col1 ) col1 FROM tab2 cor0 @@ -44305,8 +44771,11 @@ SELECT DISTINCT COUNT ( col2 ) * 3 + 64 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, COUNT ( * ) * + COUNT ( * ) col2 FROM tab1 +---- +-3 +9 query I rowsort SELECT ALL - col1 * + + col2 col1 FROM tab1 @@ -44388,8 +44857,15 @@ NULL # Datafusion - Expected - -69 # Datafusion - Expected - 40 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "Int64\(\-69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 AS col0, - 69 col0 FROM tab1 +---- +-69 +-69 +-69 +40 +40 +40 query I rowsort label-7306 SELECT ALL - COUNT ( * ) + + 62 AS col0 FROM tab1 @@ -45094,8 +45570,15 @@ SELECT DISTINCT + ( - CAST ( + 47 AS INTEGER ) ) col1 FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - -13 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 13 AS col2, + col1 AS col2 FROM tab0 +---- +-13 +-13 +-13 +1 +21 +81 query I rowsort SELECT ALL - + col1 AS col0 FROM tab0 WHERE - 7 * - 52 IS NULL @@ -45108,8 +45591,15 @@ SELECT ALL - + col1 AS col0 FROM tab0 WHERE - 7 * - 52 IS NULL # Datafusion - Expected - -87 # Datafusion - Expected - 53 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 col1, - col0 AS col1 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +53 +53 +53 query I rowsort SELECT DISTINCT + ( + 44 ) FROM tab0 cor0 @@ -45309,8 +45799,15 @@ SELECT - + 72 col2 FROM tab2 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - -91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0, - col0 FROM tab1 cor0 +---- +-51 +-51 +-85 +-85 +-91 +-91 query III rowsort SELECT * FROM tab2 WHERE NOT - col1 NOT BETWEEN NULL AND - col0 @@ -45653,8 +46150,15 @@ SELECT + + 43 FROM tab0 WHERE NULL IS NULL # Datafusion - Expected - 27 # Datafusion - Expected - -99 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col0" at position 0 and "tab0\.col2 / tab0\.col0 \- \(\- Int64\(24\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col0, col2 / col0 - + + ( - + 24 ) AS col0 FROM tab0 +---- +-10 +-47 +-99 +24 +25 +27 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE + 57 - + 53 IS NOT NULL @@ -45995,8 +46499,15 @@ SELECT ALL col2 * - - col1 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - 48 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 48 AS col0, col1 AS col0 FROM tab0 +---- +1 +21 +48 +48 +48 +81 query I rowsort SELECT - 40 + - col2 FROM tab0 AS cor0 @@ -46093,8 +46604,15 @@ SELECT COUNT ( * ), COUNT ( * ) AS col1 FROM tab2 # Datafusion - Expected - -57105 # Datafusion - Expected - 99 # Datafusion - Expected - -9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "tab0\.col1 \* \(\- tab0\.col0\) \* tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 col1, col1 * - col0 * + col2 AS col1 FROM tab0 +---- +-18270 +-57105 +-9603 +10 +47 +99 query II rowsort SELECT DISTINCT - - col2 AS col1, - col0 * - 56 FROM tab2 cor0 @@ -46796,8 +47314,10 @@ SELECT - col1 + + col2 / - col2 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 32ac8091526fd8992725ddc86f22283c -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / cor0\.col2 / \(\- \(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + + col0 AS col2, - CAST ( NULL AS INTEGER ) / col2 / - - col1 AS col2, - - ( - + col2 ) AS col0 FROM tab2 AS cor0 +---- +9 values hashing to b95fa996ff2c861384abb97027e64d9e query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 62 * + + col1 = NULL @@ -48306,8 +48826,9 @@ SELECT COUNT ( * ) / + SUM ( - col2 ) + + ( - - 23 ) col1 FROM tab0 AS cor0 WHER 23 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 AS col0, col1 AS col0 FROM tab1 AS cor0 WHERE + col1 * + - 62 > + + col2 +---- query I rowsort label-7970 SELECT ( ( - COUNT ( col0 ) ) ) FROM tab2 AS cor0 WHERE NULL < ( NULL ) @@ -48578,8 +49099,15 @@ SELECT ALL + 4 * + - col1 + - col0 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 29 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 AS col0, col2 AS col0 FROM tab0 +---- +10 +29 +29 +29 +47 +99 query I rowsort SELECT DISTINCT - 55 AS col1 FROM tab2 @@ -49113,8 +49641,11 @@ SELECT MIN ( ALL + 38 ) col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "max\(\(\- tab2\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, + MAX ( - col0 ) AS col0 FROM tab2 +---- +-46 +3 query III rowsort SELECT * FROM tab2 cor0 WHERE NOT 27 IS NULL @@ -49315,8 +49846,11 @@ SELECT DISTINCT MAX ( ALL + - 81 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 12 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 +---- +-12 +NULL query I rowsort label-8135 SELECT - - MAX ( DISTINCT col1 ) col2 FROM tab2 AS cor0 @@ -49946,8 +50480,15 @@ SELECT DISTINCT - col2 + - col2 + - col0 * + - col2 / col2 * + col1 + col1 * - - # Datafusion - Expected - 2175 # Datafusion - Expected - -97 # Datafusion - Expected - 2425 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(\-25\) \* \(\- CAST\(cor0\.col0 AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col0 AS col1, - 25 * - CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 cor0 +---- +-15 +-87 +-97 +2175 +2425 +375 query I rowsort SELECT + col2 * - - 11 FROM tab0 AS cor0 @@ -50092,8 +50633,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 51 >= - col1 ) # Datafusion - Expected - 40 # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, col2 AS col0 FROM tab2 AS cor0 +---- +23 +40 +58 +NULL +NULL +NULL query I rowsort SELECT DISTINCT + 52 col1 FROM tab1 @@ -50223,8 +50771,15 @@ SELECT DISTINCT - 80 * + col2 FROM tab2 # Datafusion - Expected - 44 # Datafusion - Expected - 14 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 14 AS col1, 44 AS col1 FROM tab1 +---- +14 +14 +14 +44 +44 +44 query II rowsort SELECT ALL - col1 AS col1, + col0 AS col2 FROM tab0 @@ -50706,8 +51261,15 @@ SELECT ALL - col0 - - col1 AS col0 FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - 58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, col0 col1 FROM tab2 +---- +23 +40 +46 +58 +64 +75 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT ( ( - col1 ) NOT IN ( 46 ) ) @@ -50754,8 +51316,15 @@ SELECT ( MIN ( 17 ) ) / 42 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 31 # Datafusion - Expected - -99 # Datafusion - Expected - 113 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col0 \+ Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 col0, + col0 + 16 AS col0 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +103 +113 +31 query I rowsort SELECT - + col0 * + col2 * col2 FROM tab2 cor0 @@ -51106,8 +51675,15 @@ NULL # Datafusion - Expected - 64 # Datafusion - Expected - 150 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \* Int64\(\-6\) AS col0" at position 0 and "\(\- \(\- cor0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 25 * - 6 AS col0, - ( - col0 ) AS col0 FROM tab2 AS cor0 +---- +150 +150 +150 +46 +64 +75 query I rowsort SELECT col2 FROM tab1 AS cor0 WHERE col1 + - + 82 * 88 / + col1 * col2 IS NOT NULL @@ -51352,8 +51928,15 @@ SELECT COUNT ( + col0 ) FROM tab1 WHERE NULL <= col2 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, + col0 AS col2 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT DISTINCT col1 * - + col1 - + + col2 FROM tab1 AS cor0 @@ -51765,8 +52348,15 @@ SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor # Datafusion - Expected - -47 # Datafusion - Expected - -44 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \+ \(\- cor0\.col0\) \+ Int64\(\-1\) / cor0\.col2 \* Int64\(\-38\) AS col2" at position 0 and "Int64\(\-47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 47 + ( - col0 ) + - 1 / col2 * - 38 AS col2, - 47 AS col2 FROM tab1 AS cor0 +---- +-38 +-4 +-44 +-47 +-47 +-47 query I rowsort label-8536 SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL @@ -52034,8 +52624,15 @@ SELECT ALL + 77 * + 51 FROM tab2 # Datafusion - Expected - 128 # Datafusion - Expected - -75 # Datafusion - Expected - 150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "tab2\.col0 \+ tab2\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, col0 + + col0 AS col0 FROM tab2 +---- +-46 +-64 +-75 +128 +150 +92 query II rowsort SELECT col1, col0 + + 92 FROM tab0 @@ -52988,8 +53585,11 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NULL > + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -220 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \* Int64\(\-55\) \* count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 4 * - 55 * + COUNT ( * ) / + COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab0 +---- +-220 +3 query III rowsort label-8733 SELECT DISTINCT * FROM tab0 WHERE NOT NULL = + + col0 + CAST ( - 57 AS INTEGER ) @@ -53075,8 +53675,11 @@ SELECT 25 * + col2 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -1005 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col0" at position 0 and "\(\- max\(\(\- tab0\.col0\)\)\) \* \(\- CAST\(Int64\(67\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 43 col0, - MAX ( + - col0 ) * - CAST ( + 67 AS INTEGER ) AS col0 FROM tab0 +---- +-1005 +43 query I rowsort SELECT DISTINCT + 91 FROM tab0 WHERE NULL = 78 @@ -54286,8 +54889,15 @@ SELECT DISTINCT + 81 FROM tab1 WHERE + 42 + + - col2 IS NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, + col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query III rowsort label-8954 SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) < - 36 @@ -54341,8 +54951,10 @@ SELECT ALL * FROM tab1 WHERE NOT - - col2 IN ( col1 - + col0 + + + 25, - col2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 52db58add4a6e06d06715f113d23531d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col0 AS col1" at position 1 and "cor0\.col2 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + col0 * - ( 93 ), - col1 + + col0 AS col1, + col2 AS col1 FROM tab0 AS cor0 +---- +9 values hashing to 3d8b256342ff5a52143b8f6a8e798300 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 @@ -54351,8 +54963,15 @@ SELECT ALL + col0 * - ( 93 ), - col1 + + col0 AS col1, + col2 AS col1 FROM tab0 # Datafusion - Expected - 44 # Datafusion - Expected - 1 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / \(\- Int64\(\-75\)\) AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 / - - 75 AS col2, + 44 AS col2 FROM tab0 AS cor0 +---- +0 +0 +1 +44 +44 +44 query I rowsort label-8965 SELECT + 65 * col1 * - col2 + ( + col2 ) + - col2 / col2 * + col2 FROM tab1 AS cor0 @@ -54513,8 +55132,15 @@ SELECT + - col0, - col1 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 144 # Datafusion - Expected - 51 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ Int64\(72\) \+ \(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col0 \+ \(\- \(\- cor0\.col2\)\) \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( 25 ) + 72 + - col0 col1, + col0 + - - col2 + + + ( + col2 ) AS col1 FROM tab2 AS cor0 +---- +144 +191 +22 +33 +51 +92 query I rowsort SELECT DISTINCT - 54 + - + 34 + + col2 FROM tab1 AS cor0 @@ -54892,8 +55518,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * - 99 * - col1 >= + col0 # Datafusion - Expected - -15 # Datafusion - Expected - -70 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col2" at position 0 and "tab1\.col1 / Int64\(\-3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 AS col2, col1 / - 3 AS col2 FROM tab1 +---- +-1 +-15 +-4 +-70 +-70 +-70 query I rowsort SELECT DISTINCT ( - col2 ) col2 FROM tab2 @@ -54933,8 +55566,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 / - + col2 IS NOT NULL # Datafusion - Expected - -16 # Datafusion - Expected - 0 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) / \(\- cor0\.col0\) \* \(\- cor0\.col2\) \* \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 38 / - col0 * - col2 * + - col0 AS col1, - 16 col1 FROM tab2 AS cor0 +---- +-16 +-16 +-16 +0 +0 +0 query I rowsort label-9059 SELECT + - COUNT ( * ) * + ( - - 34 ) AS col2 FROM tab0 AS cor0 @@ -55104,8 +55744,15 @@ SELECT ALL 94 * + 90 * + COUNT ( * ) FROM tab2 cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 62 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 62 AS col0, + col1 AS col0 FROM tab0 cor0 +---- +1 +21 +62 +62 +62 +81 query II rowsort SELECT - 5 AS col0, + 50 col1 FROM tab0 cor0 @@ -55710,8 +56357,15 @@ SELECT - - col2 * - + 68 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 5 # Datafusion - Expected - 75 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, 5 AS col1 FROM tab2 AS cor0 +---- +46 +5 +5 +5 +64 +75 query I rowsort label-9183 SELECT ALL - - CAST ( NULL AS INTEGER ) + + col2 * 35 AS col2 FROM tab2 cor0 WHERE NOT - 18 IS NOT NULL @@ -56867,8 +57521,11 @@ SELECT ALL * FROM tab1 WHERE NOT + 24 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "CAST\(Int64\(79\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 10 AS col2, CAST ( 79 AS INTEGER ) AS col2 FROM tab1 AS cor0 +---- +10 +79 query III rowsort SELECT * FROM tab1 cor0 WHERE NOT ( + col0 ) IS NOT NULL @@ -57380,8 +58037,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 AS col0, COUNT ( * ) * 97 AS col0 FROM tab2 +---- +291 +47 query II rowsort label-9463 SELECT + COUNT ( * ), COUNT ( * ) / 83 AS col2 FROM tab1 AS cor0 @@ -57777,8 +58437,9 @@ SELECT DISTINCT MAX ( ALL - col0 ) + + + MIN ( - + col1 ), COUNT ( * ) col1 FROM 3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col2, - col2 AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL +---- query II rowsort SELECT DISTINCT col2 + - col0 col0, 0 * - col1 + col0 FROM tab1 AS cor0 @@ -58172,8 +58833,11 @@ SELECT COUNT ( 81 ) * + COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-27\)\) AS col2" at position 0 and "Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 27 AS col2, - 38 AS col2 FROM tab2 AS cor0 +---- +-38 +27 query I rowsort label-9598 SELECT - + COUNT ( * ) FROM tab0 WHERE NOT - - 32 + CAST ( NULL AS INTEGER ) IS NULL @@ -59353,8 +60017,15 @@ SELECT ALL - col1 AS col2 FROM tab2 WHERE col1 / col1 <= 5 # Datafusion - Expected - -4350 # Datafusion - Expected - 5929 # Datafusion - Expected - -2560 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* tab2\.col1 AS col0" at position 0 and "tab2\.col0 \* \(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * col1 AS col0, col0 * - col2 AS col0 FROM tab2 +---- +-1058 +-2560 +-4350 +2601 +4489 +5929 query I rowsort SELECT DISTINCT 0 * 4 FROM tab1 @@ -59457,8 +60128,10 @@ SELECT * FROM tab0 WHERE NOT + - col1 + - 93 <> ( - + col2 * - + CAST ( NULL AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to dc5c61f956d3b4789327b88befcf1a8d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + col1, + col1, + + col0 FROM tab2 +---- +9 values hashing to f0b451db18cc904521b3055bd0122d6d query III rowsort SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( col1 ) AND ( NULL ) @@ -59632,8 +60305,15 @@ SELECT - - 88 * + - 79 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -6235 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col2 \+ \(\- cor0\.col1\) \+ Int64\(18\) / Int64\(45\) 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 IR valuesort SELECT ALL - col0 * + col2 + - col1 + 18 / + 45 AS col0, - CAST ( NULL AS FLOAT8 ) AS col0 FROM tab1 AS cor0 +---- +-4910 +-5020 +-6235 +NULL +NULL +NULL query I rowsort SELECT 34 col1 FROM tab1 AS cor0 WHERE NOT ( col0 ) = NULL @@ -59731,8 +60411,15 @@ SELECT + col0 / - col0 + + + 14 AS col2 FROM tab2 cor0 # Datafusion - Expected - 45 # Datafusion - Expected - 66 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ cor0\.col1 AS col0" at position 0 and "Int64\(90\) \* Int64\(50\) / cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + col1 AS col0, + 90 * 50 / + col2 AS col0 FROM tab0 cor0 +---- +-66 +-96 +45 +450 +66 +95 query I rowsort label-9856 SELECT DISTINCT + 90 * COUNT ( * ) * - MIN ( ALL - col2 ) AS col1 FROM tab2 AS cor0 @@ -60040,8 +60727,15 @@ SELECT - col0 - - 77 col1 FROM tab1 AS cor0 # Datafusion - Expected - -43 # Datafusion - Expected - 14 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 14 AS col0, - 43 col0 FROM tab2 AS cor0 +---- +-43 +-43 +-43 +14 +14 +14 query I rowsort SELECT 61 * col2 + + col2 col1 FROM tab1 @@ -60080,8 +60774,15 @@ SELECT DISTINCT - 62 AS col1, + SUM ( + + col2 ) FROM tab2 # Datafusion - Expected - 59 # Datafusion - Expected - -249265 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* tab1\.col1 \* tab1\.col2 \* Int64\(\-39\) \+ tab1\.col0 \+ \(\- tab1\.col2\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 2 * col1 * col2 * + - 39 + + col0 + - col2 AS col0, + col2 AS col0 FROM tab1 +---- +-104877 +-22984 +-249265 +59 +68 +96 query I rowsort label-9911 SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col2 * - - col0 FROM tab1 @@ -60353,8 +61054,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), COUNT ( * ) FROM tab0 +---- +3 +3 query I rowsort label-9956 SELECT DISTINCT - + MAX ( DISTINCT + 85 ) col0 FROM tab2 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_51.slt b/data/sqlite/random/aggregates/slt_good_51.slt index b0a3be9..fee806e 100644 --- a/data/sqlite/random/aggregates/slt_good_51.slt +++ b/data/sqlite/random/aggregates/slt_good_51.slt @@ -1587,8 +1587,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - 54 # Datafusion - Expected - -21 # Datafusion - Expected - -96 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col1 \- \(\- \(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col1, col1 - - - col2 AS col1 FROM tab1 AS cor0 +---- +-21 +-54 +-59 +-68 +-82 +-96 query I rowsort SELECT col1 * col1 + col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL @@ -1643,8 +1650,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * - + 55 + - col2 * - col0 IS NOT NU # Datafusion - Expected - -3969 # Datafusion - Expected - -99 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(49\) \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 AS col2, 49 * - col1 AS col2 FROM tab0 AS cor0 +---- +-10 +-1029 +-3969 +-47 +-49 +-99 query I rowsort SELECT DISTINCT + 95 + 66 FROM tab1 WHERE NULL < + col2 @@ -2050,8 +2064,11 @@ SELECT + col1 * col2 AS col2 FROM tab2 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -240 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "max\(\(\- Int64\(\-55\)\)\) \+ min\(DISTINCT tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 80 * + ( COUNT ( * ) ) col2, MAX ( ALL - - 55 ) + MIN ( DISTINCT col0 ) AS col2 FROM tab0 +---- +-240 +70 query II rowsort label-332 SELECT - CAST ( + col0 AS INTEGER ) + + col2, + col1 FROM tab2 @@ -2215,8 +2232,11 @@ SELECT DISTINCT + ( + MIN ( - 44 ) ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 76 AS col1, COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL +---- +0 +76 query I rowsort SELECT ALL - 38 * 71 FROM tab2 AS cor0 @@ -2388,8 +2408,15 @@ SELECT - col0 AS col2, + 93 FROM tab2 # Datafusion - Expected - 52 # Datafusion - Expected - -99 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, + 52 col1 FROM tab0 +---- +-10 +-47 +-99 +52 +52 +52 query I rowsort SELECT ALL - col2 + 42 FROM tab2 @@ -2523,8 +2550,15 @@ SELECT ALL + col2 - 55 col0 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 82 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ Int64\(81\) \* tab0\.col1 AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + + 81 * col1 col0, + col2 AS col0 FROM tab0 +---- +10 +1722 +47 +6642 +82 +99 query I rowsort SELECT DISTINCT 42 FROM tab2 WHERE NOT - col1 > NULL @@ -2732,8 +2766,11 @@ SELECT DISTINCT ( - col1 ) - - - 94 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "max\(tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 64 AS col1, + MAX ( col1 ) AS col1 FROM tab2 WHERE col0 * col2 IS NOT NULL +---- +64 +77 query I rowsort label-441 SELECT col2 - + 73 * + col2 / - col2 FROM tab1 @@ -5794,8 +5831,15 @@ SELECT DISTINCT + 61 + - - col2 AS col0 FROM tab2 # Datafusion - Expected - -9021 # Datafusion - Expected - 66 # Datafusion - Expected - -112995 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ \(\- tab0\.col0\) AS col0" at position 0 and "\(\- tab0\.col0\) \* \(\- tab0\.col1\) \* Int64\(\-93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + - col0 AS col0, - col0 * - col1 * - 93 AS col0 FROM tab0 +---- +-112995 +-169911 +-66 +-9021 +-96 +66 query II rowsort SELECT + 8 + + 82 AS col0, + col2 * + 54 AS col1 FROM tab0 @@ -6728,8 +6772,15 @@ SELECT ALL + + ( - + COUNT ( * ) ) FROM tab0 cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 @@ -6738,8 +6789,15 @@ SELECT + col1, col1 FROM tab0 # Datafusion - Expected - 1211105280 # Datafusion - Expected - -75 # Datafusion - Expected - 2098440000 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "\(\- tab2\.col0\) \* tab2\.col2 \* \(\- tab2\.col0\) \* \(\- tab2\.col1\) \* \(\- Int64\(96\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col0, - col0 * + col2 * - col0 * + - col1 * + + ( - + 96 ) col0 FROM tab2 +---- +-46 +-64 +-75 +1211105280 +2098440000 +238278528 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -7395,8 +7453,15 @@ SELECT col2 AS col2 FROM tab0 AS cor0 WHERE + 74 / col1 + + col0 <> col2 # Datafusion - Expected - 3917 # Datafusion - Expected - 95 # Datafusion - Expected - 5635 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "CAST\(cor0\.col2 AS Int32\) \* Int64\(96\) \+ cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 AS col2, CAST ( + ( col2 ) AS INTEGER ) * 96 + col1 AS col2 FROM tab2 AS cor0 +---- +2259 +3917 +5635 +95 +95 +95 query I rowsort label-1207 SELECT ALL + 43 * + - CAST ( NULL AS INTEGER ) * - - col2 AS col1 FROM tab2 AS cor0 @@ -7459,8 +7524,15 @@ SELECT - 96 FROM tab2 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + col2 ) AS col1, col2 AS col1 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT ALL col1 AS col0 FROM tab0 WHERE NOT + + 30 IN ( + 32 ) @@ -7562,8 +7634,15 @@ SELECT ALL * FROM tab0 WHERE 49 IS NULL # Datafusion - Expected - 4 # Datafusion - Expected - 5083 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \* cor0\.col1 \- \(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col2 / Int64\(\-31\) \+ Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col0 * col1 - - col2 col0, col2 / + - 31 + 5 AS col0 FROM tab2 cor0 +---- +2369 +4 +4 +4968 +5 +5083 query I rowsort label-1235 SELECT DISTINCT - - 4 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col2 IS NULL @@ -7581,8 +7660,15 @@ SELECT ALL + 61 * ( - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 33 # Datafusion - Expected - 67 # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- CAST\(NULL AS Int32\)\) \* cor0\.col1 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * - CAST ( NULL AS INTEGER ) * col1 AS col0, col1 AS col0 FROM tab2 AS cor0 +---- +51 +67 +77 +NULL +NULL +NULL query I rowsort SELECT ALL - + 97 * + ( - col2 ) AS col2 FROM tab0 AS cor0 @@ -7868,8 +7954,15 @@ SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE NOT ( NULL ) >= ( NULL ) # Datafusion - Expected - 58 # Datafusion - Expected - 7038 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(69\)\) / cor0\.col2 \* \(\- cor0\.col0\) \* cor0\.col1 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 69 / col2 * - col0 * col1 col0, col2 AS col0 FROM tab2 AS cor0 +---- +23 +40 +4928 +5025 +58 +7038 query I rowsort label-1285 SELECT MAX ( DISTINCT - + col2 ) / + - 27 AS col0 FROM tab0 AS cor0 @@ -8652,8 +8745,15 @@ SELECT ALL - col0 AS col2, 39 + + + ( + col0 ) col0 FROM tab0 # Datafusion - Expected - 870 # Datafusion - Expected - -81 # Datafusion - Expected - 705 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "tab0\.col2 \* tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, + col2 * col0 AS col0 FROM tab0 +---- +-1 +-21 +-81 +705 +870 +9603 query II rowsort SELECT + ( - col1 ), 44 AS col2 FROM tab2 @@ -8769,8 +8869,15 @@ SELECT DISTINCT + COUNT ( * ) + - 49 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 6 # Datafusion - Expected - -99 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, 6 AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +6 +6 +6 query I rowsort label-1431 SELECT 31 - + MAX ( col2 ) AS col2 FROM tab1 @@ -9501,8 +9608,15 @@ SELECT * FROM tab1 WHERE NOT col0 <= - col2 # Datafusion - Expected - 51 # Datafusion - Expected - 6 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ \(\- tab1\.col0\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + + 97 ) + + ( + - col0 ) col1, + col0 AS col1 FROM tab1 +---- +12 +46 +51 +6 +85 +91 query I rowsort label-1549 SELECT - col0 FROM tab1 WHERE - col1 + 65 > + ( + CAST ( + + col0 AS INTEGER ) ) @@ -9532,8 +9646,15 @@ SELECT DISTINCT + + SUM ( ALL - ( - 56 ) ) col2 FROM tab0 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - 97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col2, - col0 col2 FROM tab0 cor0 +---- +-15 +-87 +-97 +15 +87 +97 query II rowsort SELECT ALL - + col0 AS col2, - col0 FROM tab2 AS cor0 @@ -10227,8 +10348,15 @@ SELECT col1 * + col2 AS col2, - col0 FROM tab2 # Datafusion - Expected - 77 # Datafusion - Expected - -81 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "\(\- tab0\.col2\) \+ tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 col0, - col2 + col0 col0 FROM tab0 +---- +-1 +-2 +-21 +-32 +-81 +77 query I rowsort label-1673 SELECT COUNT ( * ) * - SUM ( - + col1 ) FROM tab2 @@ -10387,8 +10515,15 @@ SELECT col1 + + - col2 FROM tab2 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0, col0 AS col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-1698 SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE + col1 / col1 IS NOT NULL @@ -10727,8 +10862,11 @@ SELECT + ( 3 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \+ \(\- min\(tab2\.col0\)\) AS col0" at position 0 and "Int64\(52\) \+ \(\- Int64\(58\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 80 + + - MIN ( ALL + col0 ) AS col0, 52 + - + 58 AS col0 FROM tab2 +---- +-6 +34 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE + col2 = ( + - ( + col1 ) - + col1 ) @@ -11861,8 +11999,15 @@ SELECT + 74, - 38 - col0 AS col1 FROM tab0 WHERE - col1 NOT BETWEEN 11 AND - col # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT - 25 * col2 * + + 45 * 16 FROM tab1 @@ -12555,8 +12700,11 @@ SELECT - col0 + + - 76 * + 88 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, 40 AS col1 FROM tab1 +---- +3 +40 query I rowsort label-2045 SELECT CAST ( NULL AS INTEGER ) * + MAX ( ALL + col1 ) AS col0 FROM tab0 @@ -13319,8 +13467,9 @@ SELECT ALL 41 + + - ( - - col2 ) * - 86 col0 FROM tab2 5029 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "\(\- cor0\.col0\) \* \(\- \(\- cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, - col0 * - - col0 AS col1 FROM tab1 AS cor0 WHERE ( NOT ( col2 ) IS NOT NULL ) +---- query II rowsort label-2174 SELECT ALL - SUM ( col2 ) AS col0, 53 AS col2 FROM tab2 AS cor0 @@ -14617,8 +14766,15 @@ SELECT - + COUNT ( * ) * - - COUNT ( - - CAST ( + - 55 AS INTEGER ) ) FROM tab0 # Datafusion - Expected - 70 # Datafusion - Expected - 77 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, + 70 AS col0 FROM tab2 AS cor0 +---- +51 +67 +70 +70 +70 +77 query I rowsort label-2383 SELECT - col1 + - col0 / + + ( - 74 ) col2 FROM tab1 @@ -15604,8 +15760,11 @@ SELECT ALL + MAX ( DISTINCT + 18 ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "Int64\(\-17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 41 AS col2, - 17 AS col2 FROM tab1 AS cor0 +---- +-17 +41 query I rowsort SELECT ALL - col2 * col1 FROM tab1 WHERE NOT + col1 BETWEEN ( + 90 ) AND ( + col1 ) @@ -16205,8 +16364,15 @@ SELECT DISTINCT * FROM tab1 WHERE - 52 IS NOT NULL # Datafusion - Expected - -2262 # Datafusion - Expected - 50 # Datafusion - Expected - -897 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col2" at position 0 and "\(\- Int64\(39\)\) \* tab2\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 50 AS col2, - ( + 39 ) * + + col2 AS col2 FROM tab2 +---- +-1560 +-2262 +-897 +50 +50 +50 query I rowsort SELECT DISTINCT + col0 + - 8 AS col0 FROM tab0 @@ -16752,8 +16918,9 @@ SELECT * FROM tab2 AS cor0 WHERE NOT col1 / + col2 IS NOT NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(75\)\) AS col2" at position 0 and "Int64\(24\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 75 ) AS col2, + 24 * + col2 AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL +---- query I rowsort SELECT - col0 * col0 col0 FROM tab0 AS cor0 WHERE + col1 - - 70 NOT IN ( - - 78, col2, - col2 + - col2 ) @@ -17639,8 +17806,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(28\) \* Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 89 col0, COUNT ( * ) * + 28 * + - 91 AS col0 FROM tab0 cor0 +---- +-7644 +89 query II rowsort SELECT - 32 AS col0, 16 * + - 53 FROM tab1 AS cor0 @@ -17669,8 +17839,9 @@ SELECT DISTINCT - col1 + + col1 AS col1, + col2 FROM tab2 58 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab1\.col1 AS Int32\)\) AS col2" at position 0 and "\(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - CAST ( + col1 AS INTEGER ) AS col2, - col0 AS col2 FROM tab1 WHERE 55 IS NULL +---- query III rowsort SELECT * FROM tab0 cor0 WHERE NULL NOT IN ( 48 * - 3 ) @@ -18114,8 +18285,15 @@ SELECT ALL * FROM tab2 WHERE NOT + col2 / 40 + + + col2 IS NOT NULL # Datafusion - Expected - -14280 # Datafusion - Expected - 25 # Datafusion - Expected - -12390 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col2\) \* Int64\(70\) \* Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * col1 AS col0, - col2 * 70 * + 3 AS col0 FROM tab1 AS cor0 +---- +-12390 +-14280 +-20160 +196 +2209 +25 query I rowsort SELECT ALL + - 98 FROM tab2 AS cor0 @@ -19315,8 +19493,15 @@ SELECT 89 + - CAST ( 8 AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, col0 AS col2 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query III rowsort SELECT * FROM tab2 WHERE NOT ( ( - col2 * - 23 / + 75 ) < ( NULL ) ) @@ -19343,8 +19528,9 @@ SELECT ALL - col1 * - + col1 AS col2 FROM tab0 cor0 6561 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1, col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL +---- query I rowsort SELECT DISTINCT + 18 * - - 46 + - col0 FROM tab0 AS cor0 @@ -20159,8 +20345,15 @@ SELECT + col0 * - CAST ( col0 AS INTEGER ) AS col2 FROM tab0 # Datafusion - Expected - 39 # Datafusion - Expected - -77 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - col1 ) AS col1, + 39 AS col1 FROM tab2 +---- +-51 +-67 +-77 +39 +39 +39 query I rowsort label-3306 SELECT ALL COUNT ( * ) * + - COUNT ( * ) + + - 53 AS col1 FROM tab0 @@ -20239,8 +20432,15 @@ SELECT - - col0 - + 77 col2 FROM tab0 AS cor0 # Datafusion - Expected - 2546 # Datafusion - Expected - 55 # Datafusion - Expected - 2926 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "cor0\.col1 \* Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 AS col2, + col1 * + 38 AS col2 FROM tab2 AS cor0 +---- +1938 +2546 +2926 +55 +55 +55 query I rowsort label-3319 SELECT ALL 57 + - ( - - MIN ( - - col2 ) ) FROM tab0 AS cor0 WHERE NOT + 46 IS NOT NULL @@ -21372,8 +21572,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( - 61 AS INTEGER ) + col2 * 1 IS NU # Datafusion - Expected - -295 # Datafusion - Expected - 58 # Datafusion - Expected - -3196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-58\)\) AS col2" at position 0 and "\(\- cor0\.col1\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 58 col2, - col1 * col2 col2 FROM tab1 AS cor0 +---- +-1344 +-295 +-3196 +58 +58 +58 query I rowsort label-3511 SELECT DISTINCT + SUM ( - 19 ) / COUNT ( * ) AS col1 FROM tab0 AS cor0 @@ -21616,8 +21823,11 @@ SELECT col0, col0 col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 AS col1, + COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +3 +93 query I rowsort SELECT - - ( - col0 ) FROM tab2 AS cor0 WHERE NOT + 4 IS NULL @@ -21742,8 +21952,11 @@ SELECT ALL - col1 - + 11 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 84 col2, COUNT ( * ) AS col2 FROM tab0 cor0 +---- +-84 +3 query I rowsort SELECT 20 * - col0 * col0 AS col1 FROM tab1 AS cor0 @@ -21956,8 +22169,10 @@ SELECT - col0 AS col0 FROM tab0 WHERE 18 < - + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a5ef6e39bb1ea9d200080d35f59e7b6f -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 1 and "\(\- Int64\(\-78\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 57 + + col0 AS col0, col0 AS col1, - - 78 AS col1 FROM tab0 AS cor0 +---- +9 values hashing to 8604109c398cfd57587a54c5bde8ea75 query I rowsort label-3603 SELECT + - COUNT ( * ) + + COUNT ( * ) / + 46 AS col2 FROM tab0 AS cor0 @@ -22542,8 +22757,11 @@ SELECT ( - + col1 ) AS col1, - col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 156 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- tab0\.col2\)\)\) 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 II valuesort SELECT - SUM ( - + col2 ) AS col0, MIN ( + - ( + col0 ) ) AS col0 FROM tab0 +---- +-97 +156 query II rowsort label-3698 SELECT - col1 - + CAST ( + CAST ( 33 AS INTEGER ) AS INTEGER ) + - + col0 / - col0 + + 73 AS col1, col1 * col0 * col2 AS col2 FROM tab2 @@ -22569,8 +22787,15 @@ SELECT - ( + + col2 ) - - col0 AS col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - -92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* Int64\(\-2\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* \(\- \(\- tab2\.col2\)\) \+ Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * - 2 AS col2, - CAST ( NULL AS INTEGER ) * - - col2 + 93 AS col2 FROM tab2 +---- +-128 +-150 +-92 +NULL +NULL +NULL query I rowsort label-3701 SELECT DISTINCT SUM ( DISTINCT + - col2 ) / + - CAST ( - 12 AS INTEGER ) FROM tab0 @@ -22653,8 +22878,15 @@ SELECT ALL * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN 40 AND + - col0 # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 AS col1, 0 AS col1 FROM tab0 AS cor0 +---- +0 +0 +0 +1 +21 +81 query III rowsort SELECT + col0 col1, col2 AS col2, - 53 AS col0 FROM tab0 @@ -22703,8 +22935,15 @@ SELECT ALL - COUNT ( DISTINCT - 75 ) FROM tab0 AS cor0 # Datafusion - Expected - -29 # Datafusion - Expected - -90 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(64\)\) \+ cor0\.col2 \- Int64\(84\) AS col2" at position 0 and "\(\- \(\- \(\- cor0\.col2\)\)\) \+ Int64\(\-29\) \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - ( + + 64 ) + col2 - + 84 AS col2, + ( - - ( + - col2 ) ) + - 29 + col2 col2 FROM tab2 AS cor0 +---- +-108 +-125 +-29 +-29 +-29 +-90 query I rowsort label-3723 SELECT + COUNT ( * ) + + + 91 FROM tab1 AS cor0 @@ -23180,8 +23419,15 @@ SELECT ALL - col1 * + - col0 + 62 FROM tab0 AS cor0 # Datafusion - Expected - 25 # Datafusion - Expected - -529 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col2 AS col2" at position 0 and "CAST\(Int64\(25\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 * col2 AS col2, CAST ( + 25 AS INTEGER ) AS col2 FROM tab2 cor0 +---- +-1600 +-3364 +-529 +25 +25 +25 query II rowsort label-3801 SELECT ( CAST ( 14 AS INTEGER ) ), 1 AS col0 FROM tab1 AS cor0 @@ -23305,8 +23551,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT - 91 IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - 69 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 69 col0, CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab2 AS cor0 +---- +69 +69 +69 +NULL +NULL +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 @@ -23315,8 +23568,15 @@ SELECT + 69 col0, CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -180 # Datafusion - Expected - 58 # Datafusion - Expected - -180 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(30\) \* Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, 30 * + - 6 AS col1 FROM tab2 AS cor0 +---- +-180 +-180 +-180 +23 +40 +58 query II rowsort SELECT + 32 AS col2, - 8 FROM tab2 AS cor0 @@ -23707,8 +23967,11 @@ SELECT + - MAX ( + 74 ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "sum\(cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) col2, SUM ( + + col1 ) col2 FROM tab0 AS cor0 +---- +103 +NULL query II rowsort label-3884 SELECT + col1, col1 * CAST ( NULL AS INTEGER ) * - + col1 * - col2 + - + col2 FROM tab2 AS cor0 @@ -23912,8 +24175,15 @@ SELECT ALL col2 * 4 + + 92 FROM tab2 # Datafusion - Expected - -14 # Datafusion - Expected - 3146 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* Int64\(\-15\) \- Int64\(\-32\) \* Int64\(98\) \+ tab1\.col0 AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * - 15 - ( - 32 ) * + 98 + col0 AS col1, - col1 AS col1 FROM tab1 +---- +-14 +-47 +-5 +2522 +2977 +3146 query I rowsort label-3916 SELECT DISTINCT 78 + COUNT ( * ) FROM tab0 @@ -23991,8 +24261,15 @@ SELECT - - col0 + - col2 AS col2 FROM tab2 WHERE NOT NULL IS NULL # Datafusion - Expected - -58 # Datafusion - Expected - 77 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, - col2 AS col0 FROM tab2 +---- +-23 +-40 +-58 +51 +67 +77 query I rowsort SELECT + col1 * - - col0 + col2 + - + col2 FROM tab1 AS cor0 @@ -24289,8 +24566,15 @@ SELECT DISTINCT - 84 * + + 41 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 69 # Datafusion - Expected - 73 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col1" at position 0 and "Int64\(90\) \- tab1\.col2 \+ tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 73 AS col1, 90 - col2 + col1 AS col1 FROM tab1 +---- +36 +69 +73 +73 +73 +8 query I rowsort SELECT + 51 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 @@ -24391,8 +24675,15 @@ SELECT + col2 * + col2 - + - col1 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 265 # Datafusion - Expected - 91 # Datafusion - Expected - 2491 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- tab1\.col0\) AS Int32\)\) AS col0" at position 0 and "tab1\.col1 \* Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( - col0 AS INTEGER ) AS col0, col1 * 53 AS col0 FROM tab1 +---- +2491 +265 +51 +742 +85 +91 query I rowsort SELECT + 34 * - ( 96 ) FROM tab0 WHERE NOT ( NULL ) IS NULL @@ -24416,8 +24707,15 @@ SELECT + col0 / - 32 AS col1 FROM tab0 # Datafusion - Expected - 21 # Datafusion - Expected - 1960 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \* Int64\(35\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 * + 35 AS col0, + col1 AS col0 FROM tab0 +---- +1 +1960 +1960 +1960 +21 +81 query I rowsort SELECT col1 / + col2 col0 FROM tab0 WHERE NOT ( NULL ) IS NULL @@ -24757,8 +25055,15 @@ SELECT ALL 58 * col2 - + col1 AS col1 FROM tab1 # Datafusion - Expected - -47 # Datafusion - Expected - -99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \- Int64\(0\) \* Int64\(63\) \* cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + - col2 ) - + 0 * + 63 * + ( + col1 ) AS col2, - col2 AS col2 FROM tab0 AS cor0 +---- +-10 +-10 +-47 +-47 +-99 +-99 query I rowsort SELECT + 54 + col2 + + - 38 AS col1 FROM tab1 @@ -24999,8 +25304,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) AS col2, 15 col2 FROM tab0 AS cor0 +---- +-3 +15 query II rowsort SELECT + col1, 50 * - col0 FROM tab1 AS cor0 @@ -25378,8 +25686,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(70\) \* \(\- \(\- count\(\(\- cor0\.col2\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 78 AS col0, 14 + - COUNT ( * ) * + 70 * - ( + - COUNT ( - col2 ) ) AS col0 FROM tab0 AS cor0 +---- +-616 +78 query I rowsort SELECT 14 * + 30 FROM tab0 cor0 @@ -25818,8 +26129,15 @@ SELECT DISTINCT + 71 + + + 41 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL # Datafusion - Expected - 817 # Datafusion - Expected - -81 # Datafusion - Expected - 3888 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(\-83\) \* \(\- cor0\.col2\) \- \(\- Int64\(\-13\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, - 83 * - col2 - - - 13 AS col1 FROM tab0 cor0 +---- +-1 +-21 +-81 +3888 +817 +8204 query III rowsort SELECT * FROM tab2 WHERE NOT ( + - 0 * - col1 ) IS NOT NULL @@ -25832,8 +26150,15 @@ SELECT * FROM tab2 WHERE NOT ( + - 0 * - col1 ) IS NOT NULL # Datafusion - Expected - 71 # Datafusion - Expected - -1924 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* Int64\(\-74\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 26 * - 74 AS col2, ( + 71 ) AS col2 FROM tab2 AS cor0 +---- +-1924 +-1924 +-1924 +71 +71 +71 query I rowsort SELECT ( + - col0 ) col2 FROM tab2 AS cor0 @@ -25845,8 +26170,11 @@ SELECT ( + - col0 ) col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) 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 II valuesort SELECT DISTINCT + 57 AS col2, MAX ( col0 ) AS col2 FROM tab1 AS cor0 +---- +57 +91 query I rowsort label-4229 SELECT - SUM ( ALL - col0 ) + + + MAX ( ALL col0 ) FROM tab2 AS cor0 @@ -26602,8 +26930,11 @@ SELECT DISTINCT + - COUNT ( * ) * - - SUM ( DISTINCT 31 ) + + 37 * - ( - 85 ) FR # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - COUNT ( * ) AS col2, + ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 +---- +3 +3 query IIIIII rowsort SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT - 27 BETWEEN NULL AND NULL @@ -27081,8 +27412,15 @@ SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NULL IN ( + + 71 ) # Datafusion - Expected - 87 # Datafusion - Expected - -80 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \+ \(\- Int64\(33\)\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 + - + 33 col2, col0 AS col2 FROM tab0 +---- +-132 +-43 +-80 +15 +87 +97 query III rowsort SELECT DISTINCT * FROM tab0 WHERE - + 41 + - col1 * + col2 NOT BETWEEN ( NULL ) AND NULL @@ -27289,8 +27627,15 @@ SELECT ALL 83 + + COUNT ( * ) AS col2 FROM tab0 # Datafusion - Expected - 91 # Datafusion - Expected - -25 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* cor0\.col1 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 * col1 AS col2, col0 col2 FROM tab1 AS cor0 +---- +-196 +-2209 +-25 +51 +85 +91 query I rowsort label-4474 SELECT DISTINCT + SUM ( DISTINCT col1 ) FROM tab1 cor0 @@ -27486,8 +27831,15 @@ SELECT DISTINCT + - col1 FROM tab0 cor0 WHERE col0 * - 98 * - ( 72 ) IS NULL # Datafusion - Expected - 66 # Datafusion - Expected - -99 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "tab0\.col1 \+ \(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, col1 + - col0 AS col1 FROM tab0 +---- +-10 +-47 +-66 +-96 +-99 +66 query III rowsort SELECT * FROM tab1 WHERE NOT 22 >= NULL @@ -27937,8 +28289,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ), + COUNT ( * ) FROM tab0 +---- +3 +3 query I rowsort SELECT + col2 + + + col0 AS col1 FROM tab1 WHERE NOT + col0 - col2 - - col0 IS NULL @@ -28015,8 +28370,11 @@ SELECT + ( + - col2 ) + - ( + 38 ) FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 199 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(cor0\.col0\) AS col0" at position 0 and "Int64\(36\) / \(\- count\(DISTINCT Int64\(\-30\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( col0 ) AS col0, 36 / - COUNT ( DISTINCT - 30 ) AS col0 FROM tab0 AS cor0 +---- +-36 +199 query I rowsort label-4593 SELECT ALL - + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 @@ -28590,8 +28948,15 @@ SELECT + col2, - 54 + - col0 FROM tab0 # Datafusion - Expected - -21 # Datafusion - Expected - 46 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "\(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 AS col2, - col1 AS col2 FROM tab0 +---- +-1 +-21 +-81 +46 +46 +46 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT - ( + col0 ) BETWEEN ( + + col0 ) AND NULL @@ -28868,8 +29233,11 @@ SELECT - ( + ( 83 ) ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 267 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 0 and "Int64\(89\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + CAST ( - COUNT ( * ) AS INTEGER ) AS col1, 89 * COUNT ( * ) col1 FROM tab1 cor0 +---- +-3 +267 query III rowsort SELECT DISTINCT * FROM tab2 WHERE + 93 NOT IN ( + col0, 53 / 90, col1 ) @@ -30366,8 +30734,15 @@ SELECT * FROM tab1 WHERE NOT + col2 - - - 34 IS NULL # Datafusion - Expected - 50 # Datafusion - Expected - -99 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col2, 50 AS col2 FROM tab0 +---- +-10 +-47 +-99 +50 +50 +50 query I rowsort label-4994 SELECT + COUNT ( 59 ) FROM tab1 @@ -30381,8 +30756,15 @@ SELECT + COUNT ( 59 ) FROM tab1 # Datafusion - Expected - -104 # Datafusion - Expected - -75 # Datafusion - Expected - -133 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col1" at position 0 and "\(\- tab2\.col0\) \- tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col1, - col0 - col2 AS col1 FROM tab2 +---- +-104 +-133 +-46 +-64 +-69 +-75 query III rowsort SELECT * FROM tab1 WHERE NOT + 29 IN ( col0 * - col2 * + 22 * + + col1 ) @@ -30399,8 +30781,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * COUNT ( ALL + col0 ) AS col0, + COUNT ( - col1 ) AS col0 FROM tab0 +---- +3 +9 query I rowsort label-4999 SELECT DISTINCT + MIN ( - 0 ) col2 FROM tab0 AS cor0 @@ -30426,8 +30811,15 @@ SELECT - col0 col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - col0 AND ( + + col # Datafusion - Expected - 1 # Datafusion - Expected - 483 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-23\)\) \* \(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 23 * - - col1 AS col0, + col1 col0 FROM tab0 AS cor0 +---- +1 +1863 +21 +23 +483 +81 query I rowsort SELECT DISTINCT 42 * col0 AS col0 FROM tab0 AS cor0 @@ -31044,8 +31436,15 @@ SELECT ALL + 55 + + 28 col1 FROM tab2 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, + col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-5102 SELECT col1 / + + 91 FROM tab1 @@ -31115,8 +31514,11 @@ SELECT ALL col1 * 66 + + CAST ( - - col0 AS INTEGER ) * + ( + 99 ) FROM tab1 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, 40 AS col1 FROM tab2 AS cor0 +---- +3 +40 query I rowsort SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT - 11 - - 11 BETWEEN - - col2 / + col2 + 74 AND NULL @@ -31478,8 +31880,15 @@ SELECT ALL - + col0 / + col2 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - 166 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \+ Int64\(90\) AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 + + 90 AS col1, - col2 AS col1 FROM tab2 +---- +-23 +-40 +-58 +166 +166 +166 query I rowsort label-5174 SELECT ALL - + 91 - - col2 + ( + + CAST ( col1 AS INTEGER ) ) / 84 + CAST ( NULL AS INTEGER ) * - 24 FROM tab0 AS cor0 @@ -31603,8 +32012,12 @@ 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\(Int64\(1\)\) AS count\(\*\) \* count\(\(\- tab1\.col1\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 45 AS col0, + 56, COUNT ( * ) * + COUNT ( - col1 ) AS col0 FROM tab1 +---- +45 +56 +9 query I rowsort SELECT + ( 5 ) FROM tab0 @@ -32248,8 +32661,10 @@ SELECT ALL + ( + + col2 ) AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 55ca67142f09f4339df3eed9716dddab -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 1 and "cor0\.col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 50, col2, col2 FROM tab0 AS cor0 +---- +9 values hashing to d947b98195015480938dd179546eeac5 query I rowsort SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) >= col0 * - col1 @@ -33385,8 +33800,15 @@ NULL # Datafusion - Expected - -936 # Datafusion - Expected - 24 # Datafusion - Expected - -936 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ cor0\.col0 AS col2" at position 0 and "Int64\(26\) \* Int64\(\-36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 + + col0 col2, + 26 * - 36 AS col2 FROM tab2 cor0 +---- +-936 +-936 +-936 +17 +23 +24 query I rowsort label-5487 SELECT ALL + ( + - COUNT ( * ) ) AS col2 FROM tab0 AS cor0 @@ -33523,8 +33945,10 @@ SELECT - 79 * - 1 col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to d2ee58b0af26e93410f180b0d729877b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "Int64\(89\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col0 col1, - col0 / - + col1, + + 89 AS col1 FROM tab1 +---- +9 values hashing to 43432ee7cab1b1df07ddd72a4a91e788 query II rowsort SELECT DISTINCT col0, 57 AS col1 FROM tab0 @@ -33815,8 +34239,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND - col0 # Datafusion - Expected - 75 # Datafusion - Expected - 52 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- \(\- cor0\.col0\)\) \+ \(\- Int64\(49\)\) \+ \(\- \(\- \(\- cor0\.col2\)\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 + - - col0 + - + 49 + - ( - - col2 ) AS col1, col0 AS col1 FROM tab2 AS cor0 +---- +25 +35 +46 +52 +64 +75 query I rowsort label-5555 SELECT - + COUNT ( * ) + + 3 FROM tab0 AS cor0 @@ -34206,8 +34637,15 @@ SELECT col0 * - 10 + - 19 AS col2 FROM tab2 # Datafusion - Expected - 6188 # Datafusion - Expected - -5 # Datafusion - Expected - 5015 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col0" at position 0 and "tab1\.col0 \* tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, col0 * col2 AS col0 FROM tab1 +---- +-14 +-47 +-5 +4896 +5015 +6188 query I rowsort label-5624 SELECT + 31 + MAX ( DISTINCT - col1 ) FROM tab0 AS cor0 @@ -34442,8 +34880,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 * + col2 < - + col2 # Datafusion - Expected - 17 # Datafusion - Expected - 7 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \- cor0\.col0 AS col2" at position 0 and "Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 22 - + col0 AS col2, + 17 AS col2 FROM tab0 AS cor0 +---- +-65 +-75 +17 +17 +17 +7 query I rowsort label-5662 SELECT DISTINCT + 72 * + + col2 + + CAST ( + 90 AS INTEGER ) - - col2 * - ( - CAST ( col2 AS INTEGER ) ) FROM tab2 AS cor0 @@ -34557,8 +35002,11 @@ SELECT ALL + COUNT ( * ) + + ( MIN ( DISTINCT col0 ) ) AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 9 AS col0, + COUNT ( * ) col0 FROM tab2 AS cor0 +---- +-9 +3 query I rowsort label-5683 SELECT ALL + + col1 / - ( + col2 ) AS col0 FROM tab0 AS cor0 @@ -34966,8 +35414,15 @@ NULL # Datafusion - Expected - -64 # Datafusion - Expected - 55 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 55 AS col1, - col0 col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +55 +55 +55 query I rowsort label-5750 SELECT DISTINCT + SUM ( ALL + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 47 IS NULL @@ -35398,8 +35853,15 @@ SELECT + col2 * - + col2 + - 4 FROM tab1 AS cor0 WHERE NOT ( - col0 <> NULL ) # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col1, col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-5820 SELECT + MAX ( + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL < - ( + 37 ) @@ -35561,8 +36023,11 @@ SELECT - col1 - - 7 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, COUNT ( * ) col0 FROM tab1 +---- +3 +3 query I rowsort SELECT ALL col2 + + col0 + - col1 * + col2 AS col1 FROM tab2 @@ -35634,8 +36099,9 @@ SELECT + CAST ( - + 84 AS INTEGER ) AS col2 FROM tab1 AS cor0 -84 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* tab2\.col0 \* tab2\.col1 AS col0" at position 0 and "\(\- Int64\(\-81\)\) \* tab2\.col1 \* \(\- Int64\(33\)\) \+ \(\- Int64\(29\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 31 * + + col0 * col1 AS col0, + ( - - 81 ) * col1 * - + 33 + - ( 29 ) AS col0 FROM tab2 WHERE NOT - ( - - 5 ) * - 66 IS NOT NULL +---- query I rowsort SELECT ALL - 43 * 41 AS col1 FROM tab2, tab2 AS cor0 @@ -36472,8 +36938,15 @@ SELECT DISTINCT - - 63 * + - ( - + COUNT ( DISTINCT - ( + col1 ) ) ) - - MIN ( - # Datafusion - Expected - -53 # Datafusion - Expected - 23 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "Int64\(\-53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 23 AS col2, - 53 AS col2 FROM tab1 AS cor0 +---- +-53 +-53 +-53 +23 +23 +23 query II rowsort SELECT ALL col0 AS col1, - 16 * - - col0 * 34 FROM tab2 AS cor0 @@ -36705,8 +37178,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - COUNT ( * ) col1, - 36 col1 FROM tab2 AS cor0 +---- +-3 +-36 query I rowsort label-6029 SELECT + SUM ( - + 58 ) AS col1 FROM tab2 @@ -37056,8 +37532,15 @@ SELECT + col2 * col1 + + - col0 - 9 + - - 50 FROM tab0 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 6188 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* tab1\.col2 AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 * + col2 AS col0, 21 AS col0 FROM tab1 +---- +21 +21 +21 +4896 +5015 +6188 query I rowsort label-6087 SELECT ( col1 ) + CAST ( NULL AS INTEGER ) FROM tab1 @@ -38373,8 +38856,15 @@ SELECT ALL ( - COUNT ( + - col0 ) ) AS col0 FROM tab1 # Datafusion - Expected - 212 # Datafusion - Expected - -94 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col1" at position 0 and "cor0\.col2 \- cor0\.col2 \+ cor0\.col2 \+ cor0\.col2 \+ Int64\(40\) \+ Int64\(\-26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 94 AS col1, col2 - + col2 + + col2 + + + col2 + + 40 + - 26 AS col1 FROM tab0 cor0 +---- +-94 +-94 +-94 +108 +212 +34 query I rowsort SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE 59 + + 68 NOT BETWEEN NULL AND - 6 @@ -38410,8 +38900,15 @@ SELECT - - MIN ( DISTINCT + col2 ) col2 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) \* cor0\.col1 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - CAST ( NULL AS FLOAT8 ) * col1 AS col1, + col2 AS col1 FROM tab0 AS cor0 +---- +10 +47 +99 +NULL +NULL +NULL query I rowsort SELECT + 58 * - 20 FROM tab0 cor0 @@ -38855,8 +39352,15 @@ SELECT ALL col0 AS col0 FROM tab0 cor0 WHERE + col1 * + + col2 NOT BETWEEN ( 66 # Datafusion - Expected - -5352 # Datafusion - Expected - 10 # Datafusion - Expected - -6173 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col0" at position 0 and "cor0\.col0 \+ \(\- cor0\.col1\) \* Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 10 AS col0, + col0 + - + col1 * + 81 AS col0 FROM tab2 AS cor0 +---- +-4085 +-5352 +-6173 +10 +10 +10 query I rowsort SELECT ALL - - 24 AS col0 FROM tab2 cor0 @@ -41082,8 +41586,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT ( - + col0 ) IS NULL # Datafusion - Expected - -2040 # Datafusion - Expected - -5 # Datafusion - Expected - -2958 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(5\)\) AS col1" at position 0 and "\(\- cor0\.col2\) \* Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( 5 ) AS col1, - col2 * + + 51 col1 FROM tab2 AS cor0 +---- +-1173 +-2040 +-2958 +-5 +-5 +-5 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 98 ) IS NOT NULL @@ -42231,8 +42742,15 @@ SELECT DISTINCT + + col0 + + col0 + col0 FROM tab0 WHERE - CAST ( NULL AS INTEGE # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col0, col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query II rowsort label-6949 SELECT COUNT ( * ), - 56 AS col1 FROM tab2 @@ -42711,8 +43229,15 @@ SELECT ALL - 14 * - col2 * - col0 * + + CAST ( + ( + col0 ) AS INTEGER ) FROM ta # Datafusion - Expected - 30 # Datafusion - Expected - 99 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, 30 AS col1 FROM tab0 +---- +10 +30 +30 +30 +47 +99 query I rowsort label-7028 SELECT 20 / + COUNT ( * ) FROM tab1 @@ -42997,8 +43522,11 @@ SELECT ALL + col0 col2, col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "cor0\.col1 \* \(\- CAST\(NULL AS Float64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT 58 AS col2, col1 * - CAST ( NULL AS FLOAT8 ) AS col2 FROM tab1 AS cor0 +---- +58 +NULL query I rowsort SELECT DISTINCT - + col1 * - - col2 + + col1 + + col0 FROM tab0 AS cor0 @@ -43072,8 +43600,10 @@ SELECT DISTINCT col2 + - 18 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 7f7cddec838d4fd9afef2a1f9a3b8420 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "Int64\(92\) \+ \(\- tab1\.col2\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col2 AS col1, CAST ( NULL AS INTEGER ) * ( + col0 ) * - col0 * + - 38, 92 + - col2 AS col1 FROM tab1 +---- +9 values hashing to 109312e54ea4585c9a615a1f7749226a query III rowsort SELECT ALL * FROM tab2 WHERE + - 90 IS NULL @@ -43188,8 +43718,15 @@ SELECT * FROM tab2 AS cor0 WHERE + 70 IS NULL # Datafusion - Expected - -33 # Datafusion - Expected - 6936 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* cor0\.col2 \+ \(\- cor0\.col0\) \+ \(\- cor0\.col0\) \+ Int64\(2\) AS col2" at position 0 and "Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 72 * col2 + - col0 + - col0 + 2 col2, - 33 AS col2 FROM tab0 AS cor0 +---- +-33 +-33 +-33 +3356 +548 +6936 query II rowsort SELECT col0, col1 col2 FROM tab2 @@ -44076,8 +44613,15 @@ SELECT ALL - - MIN ( DISTINCT 84 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - -75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col0 col1, + col2 AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +23 +40 +58 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 @@ -44086,8 +44630,15 @@ SELECT DISTINCT - + col0 col1, + col2 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - -77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1, - col1 FROM tab2 AS cor0 +---- +-51 +-51 +-67 +-67 +-77 +-77 query III rowsort SELECT * FROM tab2 WHERE NULL > + - col0 @@ -44245,8 +44796,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 67 col0, + COUNT ( * ) AS col0 FROM tab1 +---- +3 +67 query I rowsort SELECT DISTINCT + ( + col2 ) * - 43 FROM tab0 @@ -44861,8 +45415,15 @@ SELECT + 35 * + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 28, col1 ) # Datafusion - Expected - 77 # Datafusion - Expected - 58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + - col2 ) AS col0, col1 AS col0 FROM tab2 cor0 +---- +23 +40 +51 +58 +67 +77 query I rowsort label-7389 SELECT MIN ( DISTINCT ( + col2 ) ) AS col0 FROM tab2 AS cor0 @@ -45429,8 +45990,15 @@ SELECT - ( 2 ) col2, - 41 FROM tab0 AS cor0 # Datafusion - Expected - 90 # Datafusion - Expected - -7315 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* 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 II valuesort SELECT ALL + 95 * + - 77 AS col2, 90 AS col2 FROM tab0 cor0 +---- +-7315 +-7315 +-7315 +90 +90 +90 query I rowsort SELECT DISTINCT col1 * + + 49 + + col2 AS col0 FROM tab2 AS cor0 @@ -45946,8 +46514,15 @@ SELECT DISTINCT MIN ( + + col0 ) AS col0 FROM tab0 # Datafusion - Expected - 57 # Datafusion - Expected - -4408 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* \(\- tab2\.col2\) \+ \(\- tab2\.col2\) AS col2" at position 0 and "Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + + col0 ) * - col2 + + - col2 AS col2, + 57 col2 FROM tab2 +---- +-1081 +-2600 +-4408 +57 +57 +57 query III rowsort SELECT * FROM tab0 WHERE NOT 43 * - 86 * + col2 - + + col1 / - col0 + 80 <= - - 29 @@ -46137,8 +46712,9 @@ SELECT col0 - + + 46 + - - 90 * - + 23 * col0 AS col0 FROM tab2 -95220 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\)" at position 0 and "\(\- tab1\.col2\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col2, - col0 AS col2, + - col2 FROM tab1 WHERE ( NULL ) > NULL AND NOT col2 * col1 * + + ( - col2 ) IS NULL +---- query I rowsort SELECT 94 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL @@ -46929,8 +47505,15 @@ SELECT DISTINCT + col1 - + ( + - ( col1 ) ) FROM tab2 # Datafusion - Expected - 2 # Datafusion - Expected - 103 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \+ Int64\(35\) AS col0" at position 0 and "tab0\.col2 \- tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 68 + 35 AS col0, col2 - + col0 AS col0 FROM tab0 +---- +-77 +103 +103 +103 +2 +32 query I rowsort label-7723 SELECT ( + + MIN ( ALL + - 34 ) ) FROM tab1 @@ -47046,8 +47629,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col1, 5 + 62 col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 +---- +-9 +67 query I rowsort label-7742 SELECT DISTINCT + ( - + MAX ( - 33 ) ) * + 29 + 22 + COUNT ( * ) AS col0 FROM tab1 AS cor0 @@ -47250,8 +47836,15 @@ SELECT DISTINCT + 36 * - 66 col0 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col2, + col2 AS col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-7777 SELECT - - 11 * - - COUNT ( * ) FROM tab2 cor0 @@ -47742,8 +48335,15 @@ SELECT * FROM tab2 cor0 WHERE NULL <= + CAST ( NULL AS INTEGER ) # Datafusion - Expected - -68 # Datafusion - Expected - 7 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 7 AS col2, - col2 col2 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +7 +7 +7 query I rowsort label-7864 SELECT DISTINCT + + COUNT ( DISTINCT - col1 ) FROM tab0 cor0 @@ -48022,8 +48622,15 @@ SELECT * FROM tab2 AS cor0 WHERE + col1 < NULL # Datafusion - Expected - 69948 # Datafusion - Expected - -77 # Datafusion - Expected - 55440 -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 \* Int64\(18\) \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + col1 ) AS col0, + col1 * 18 * col2 AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +21114 +55440 +69948 query I rowsort label-7910 SELECT + MIN ( ALL - - col0 ) FROM tab0 AS cor0 @@ -48113,8 +48720,15 @@ SELECT DISTINCT - 4 * - COUNT ( * ) FROM tab1 # Datafusion - Expected - 90 # Datafusion - Expected - -6048 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 63 * - col2 AS col1, 90 AS col1 FROM tab1 AS cor0 +---- +-3717 +-4284 +-6048 +90 +90 +90 query I rowsort SELECT + col1 * - col2 FROM tab0 cor0 WHERE NOT - ( ( col1 ) ) = NULL @@ -48315,8 +48929,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2842 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* max\(Int64\(49\)\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 58 * MAX ( 49 ) col2, + 68 AS col2 FROM tab0 AS cor0 +---- +2842 +68 query II rowsort SELECT - ( - + col2 ), 18 FROM tab1 cor0 WHERE NULL IN ( col1 ) @@ -49175,8 +49792,11 @@ SELECT ALL - col2 - + + col0 col1 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\(\(\- cor0\.col0\)\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( ALL - col0 ) col2, 60 AS col2 FROM tab2 AS cor0 +---- +3 +60 query I rowsort SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL @@ -49488,8 +50108,15 @@ SELECT ALL + col0, - CAST ( + 88 AS INTEGER ) FROM tab2 # Datafusion - Expected - -47 # Datafusion - Expected - -99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, - col2 AS col0 FROM tab0 AS cor0 +---- +-10 +-10 +-47 +-47 +-99 +-99 query I rowsort SELECT DISTINCT + ( 70 ) AS col1 FROM tab2 cor0 @@ -50077,8 +50704,15 @@ SELECT + + col0 col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL # Datafusion - Expected - -51 # Datafusion - Expected - -159 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \+ \(\- tab1\.col2\) AS col1" at position 0 and "\(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 + - col2 AS col1, - col0 AS col1 FROM tab1 +---- +-144 +-147 +-159 +-51 +-85 +-91 query I rowsort SELECT - col0 * + 78 + - - 21 AS col0 FROM tab2 AS cor0 @@ -51288,8 +51922,11 @@ SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NOT - ( + col1 ) < NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- Int64\(73\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( - + 73 ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 +---- +3 +NULL query I rowsort label-8447 SELECT col0 / - ( + 56 ) AS col2 FROM tab1 @@ -51750,8 +52387,15 @@ SELECT ALL 27 * + col0 AS col1, 8 - - + 96 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -6180 # Datafusion - Expected - 0 # Datafusion - Expected - -8756 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ \(\- tab1\.col2\) AS col0" at position 0 and "Int64\(76\) \+ Int64\(93\) \* \(\- tab1\.col2\) \+ tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 + - ( + col2 ) AS col0, 76 + + + 93 * + - col2 + col2 col0 FROM tab1 +---- +-5352 +-6180 +-8756 +0 +0 +0 query III rowsort SELECT DISTINCT * FROM tab1 WHERE - ( + + col0 ) + - - col1 + col2 + col1 > 16 / - 9 @@ -52325,8 +52969,15 @@ SELECT ALL - 14 - 49 - - CAST ( + ( + + 65 ) AS INTEGER ) * COUNT ( * ) AS col2 # Datafusion - Expected - 134 # Datafusion - Expected - 93 # Datafusion - Expected - 102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \+ tab2\.col0 AS col1" at position 0 and "tab2\.col1 \+ \(\- \(\- tab2\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 47 + col0 AS col1, col1 + - - col1 col1 FROM tab2 +---- +102 +111 +122 +134 +154 +93 query I rowsort label-8616 SELECT DISTINCT 74 * - ( + COUNT ( * ) ) col1 FROM tab1 @@ -54084,8 +54735,15 @@ SELECT DISTINCT * FROM tab0 WHERE - 82 * - col0 + - col2 IS NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + + col0 ) col2, col0 AS col2 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT ALL 32 / col1 col2 FROM tab1 AS cor0 WHERE NOT NULL >= NULL @@ -54398,8 +55056,15 @@ SELECT * FROM tab1 WHERE col2 NOT BETWEEN ( col0 ) AND + 46 * col0 # Datafusion - Expected - 405 # Datafusion - Expected - 26 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "Int64\(5\) \* tab0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 AS col1, + 5 * ( col1 ) AS col1 FROM tab0 +---- +105 +26 +26 +26 +405 +5 query I rowsort label-8965 SELECT ALL col1 - - - 87 / + col2 AS col2 FROM tab2 @@ -54689,8 +55354,15 @@ SELECT * FROM tab0 WHERE NOT 61 NOT BETWEEN - - col1 AND + + col0 # Datafusion - Expected - 4 # Datafusion - Expected - 77 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab2\.col1\)\) AS col1" at position 0 and "Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - - col1 ) AS col1, + 4 AS col1 FROM tab2 +---- +4 +4 +4 +51 +67 +77 query I rowsort SELECT col2 * - - 64 FROM tab2 AS cor0 @@ -54846,8 +55518,15 @@ SELECT 31 - - col2 FROM tab0 # Datafusion - Expected - -71 # Datafusion - Expected - 98 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(1\)\) \+ tab0\.col1 \* tab0\.col2 \* tab0\.col1 AS col1" at position 0 and "tab0\.col1 / \(\- \(\- tab0\.col0\)\) \+ Int64\(\-71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + 1 ) + + + col1 * col2 * + + ( col1 ) AS col1, col1 / - - col0 + + - 71 AS col1 FROM tab0 +---- +-66 +-71 +-71 +308366 +4409 +98 query II rowsort SELECT ALL - 53 - col2 + + 48, col2 AS col2 FROM tab2 WHERE - col0 IS NULL @@ -55310,8 +55989,9 @@ SELECT ALL * FROM tab0 AS cor0 WHERE ( 81 ) <= col1 * col2 9 values hashing to c4b42765dff94eaaa46040e537fb43b7 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col2" at position 0 and "Int64\(\-10\) \* Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 AS col2, - 10 * 88 AS col2 FROM tab2 AS cor0 WHERE NOT NULL > NULL +---- query I rowsort SELECT + 8 col2 FROM tab2 cor0 @@ -55435,8 +56115,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - ( 12 ) - + MIN ( DISTINCT 7 ) AS col2, - COUNT ( * ) AS col2, 25 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL +---- +-19 +-3 +25 query I rowsort SELECT 36 - - + col1 AS col2 FROM tab1 @@ -55736,8 +56420,15 @@ SELECT 95 * + col2 * + col1 * - col1 col2 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - 9409 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* tab0\.col0 AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * col0 AS col2, col1 AS col2 FROM tab0 +---- +1 +21 +225 +7569 +81 +9409 query I rowsort SELECT + col2 AS col2 FROM tab1 WHERE NOT - - col2 < - 39 @@ -57020,8 +57711,11 @@ SELECT + COUNT ( * ) * - 81 * - COUNT ( * ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(40\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + + MAX ( 40 ) ) + + + COUNT ( * ) AS col1, - COUNT ( * ) + 39 AS col1 FROM tab1 AS cor0 +---- +-37 +36 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN col1 AND + ( 0 ) @@ -57868,8 +58562,15 @@ SELECT DISTINCT - col0 * + + 70 AS col0 FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, col0 AS col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query II rowsort label-9537 SELECT COUNT ( * ), + COUNT ( * ) AS col0 FROM tab1 @@ -57938,8 +58639,15 @@ SELECT ALL * FROM tab1 WHERE NOT ( - 85 + + + 45 ) IS NOT NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) / \(\- Int64\(16\)\) \+ tab1\.col1 AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 / - + 16 + + col1 AS col0, col1 AS col0 FROM tab1 WHERE NULL IS NULL +---- +14 +14 +47 +49 +5 +5 query I rowsort label-9547 SELECT 10 + - col0 + - + 33 + + - 4 / + - 28 FROM tab1 @@ -57996,8 +58704,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 56 col2, COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 +---- +-9 +56 query I rowsort label-9556 SELECT - COUNT ( * ) - 21 FROM tab0 @@ -58396,8 +59107,15 @@ SELECT DISTINCT COUNT ( * ) * ( + 8 ) col0 FROM tab1 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 616 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(44\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 * + 44 AS col1, col0 AS col1 FROM tab1 AS cor0 +---- +2068 +220 +51 +616 +85 +91 query I rowsort label-9620 SELECT DISTINCT - COUNT ( * ) * + 69 FROM tab0 cor0 @@ -58535,8 +59253,15 @@ NULL # Datafusion - Expected - 8 # Datafusion - Expected - 18 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 18 AS col1, 8 col1 FROM tab0 AS cor0 +---- +18 +18 +18 +8 +8 +8 query I rowsort label-9642 SELECT - SUM ( 11 ) AS col1 FROM tab0 AS cor0 @@ -58778,8 +59503,11 @@ SELECT col2 / - 72 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(\(\- tab0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, COUNT ( - col1 ) AS col1 FROM tab0 +---- +3 +3 query II rowsort SELECT col1, 35 col2 FROM tab2 @@ -58853,8 +59581,15 @@ SELECT DISTINCT + ( COUNT ( ALL - col0 ) ) FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \- Int64\(33\) \+ \(\- tab0\.col1\) AS col1" at position 0 and "\(\- tab0\.col1\) / \(\- CAST\(NULL AS Int32\)\) \+ tab0\.col2 / tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 - + 33 + - col1 AS col1, - col1 / - + CAST ( NULL AS INTEGER ) + col2 / + col2 AS col1 FROM tab0 +---- +-68 +-8 +12 +NULL +NULL +NULL query I rowsort SELECT ALL - 5 FROM tab1 WHERE ( NOT col2 <> NULL ) diff --git a/data/sqlite/random/aggregates/slt_good_52.slt b/data/sqlite/random/aggregates/slt_good_52.slt index 17edf9a..d2f5175 100644 --- a/data/sqlite/random/aggregates/slt_good_52.slt +++ b/data/sqlite/random/aggregates/slt_good_52.slt @@ -289,8 +289,11 @@ 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\(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\. +query II valuesort SELECT ALL - 8 col2, COUNT ( * ) * - + COUNT ( * ) + 42 AS col2 FROM tab1 cor0 +---- +-8 +33 query IIIIII rowsort SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NOT NULL @@ -748,8 +751,15 @@ SELECT ALL - col2 FROM tab0 WHERE NOT - + CAST ( NULL AS INTEGER ) IS NOT NULL # Datafusion - Expected - 96 # Datafusion - Expected - 66 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- \(\- \(\- cor0\.col0\)\)\) AS col2" at position 0 and "cor0\.col0 \+ \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + - - ( - col0 ) AS col2, col0 + - col1 AS col2 FROM tab0 AS cor0 +---- +-66 +-66 +-96 +66 +66 +96 query I rowsort label-115 SELECT + + col1 / col2 * 46 * + 0 + - ( 17 ) + - - col2 + + - col0 + - 32 AS col2 FROM tab1 AS cor0 @@ -2129,8 +2139,15 @@ SELECT DISTINCT * FROM tab0 cor0 WHERE NULL IN ( - 85 ) # Datafusion - Expected - 26 # Datafusion - Expected - 99 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, 26 AS col0 FROM tab0 AS cor0 +---- +10 +26 +26 +26 +47 +99 query I rowsort SELECT DISTINCT - ( - 92 ) AS col0 FROM tab0 AS cor0 @@ -2388,8 +2405,11 @@ SELECT ALL * FROM tab1 AS cor0 WHERE + col2 < + + 23 - + col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 47 AS col2, + 42 col2 FROM tab0 AS cor0 +---- +42 +47 query I rowsort label-397 SELECT - - COUNT ( * ) * + SUM ( ALL + col2 ) + COUNT ( * ) + 98 AS col2 FROM tab0 cor0 @@ -2532,8 +2552,15 @@ SELECT + 43 * 8 FROM tab2 AS cor0 # Datafusion - Expected - 34 # Datafusion - Expected - -13 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(13\)\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 13 AS col1, 34 AS col1 FROM tab1 AS cor0 +---- +-13 +-13 +-13 +34 +34 +34 query I rowsort label-420 SELECT + + COUNT ( ALL + 74 ) AS col1 FROM tab0 AS cor0 @@ -3230,8 +3257,11 @@ 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\(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\. +query II valuesort SELECT - - COUNT ( * ) AS col2, COUNT ( * ) + + 62 * + 55 col2 FROM tab0 cor0 +---- +3 +3413 query II rowsort SELECT ALL - col0 AS col0, col0 AS col2 FROM tab0 AS cor0 @@ -4116,8 +4146,15 @@ SELECT DISTINCT 78 + + col2 FROM tab2 # Datafusion - Expected - -8 # Datafusion - Expected - -64 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ Int64\(\-24\) \+ Int64\(56\) AS col1" at position 0 and "\(\- Int64\(8\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 + - 24 + 56 AS col1, - ( 8 ) AS col1 FROM tab1 AS cor0 +---- +-27 +-36 +-64 +-8 +-8 +-8 query I rowsort label-678 SELECT DISTINCT + - 15 / - + COUNT ( * ) - + - MIN ( col2 ) - 12 AS col0 FROM tab0 AS cor0 @@ -4939,8 +4976,15 @@ SELECT DISTINCT - col0 * 39 + - + col2 FROM tab0 # Datafusion - Expected - 77 # Datafusion - Expected - 58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \+ Int64\(0\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 + 0 AS col2, col1 AS col2 FROM tab2 +---- +23 +40 +51 +58 +67 +77 query I rowsort SELECT + col0 AS col0 FROM tab2 cor0 WHERE ( NULL ) <> + 35 * col2 @@ -5079,8 +5123,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) col1, 17 AS col1 FROM tab1 cor0 +---- +-3 +17 query I rowsort SELECT DISTINCT - col1 + - ( 56 ) FROM tab0 AS cor0 @@ -5339,8 +5386,15 @@ SELECT DISTINCT * FROM tab2 WHERE col2 + - - col1 * col0 IS NOT NULL # Datafusion - Expected - 21 # Datafusion - Expected - 70 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 AS col2, + col1 AS col2 FROM tab0 +---- +1 +21 +70 +70 +70 +81 query I rowsort SELECT ALL 36 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 @@ -5578,8 +5632,15 @@ SELECT DISTINCT - COUNT ( * ) + + - 68 AS col1 FROM tab2 # Datafusion - Expected - -1 # Datafusion - Expected - 82 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \+ tab0\.col2 AS col2" at position 0 and "\(\- tab0\.col0\) / tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 + col2 AS col2, - col0 / col0 AS col2 FROM tab0 +---- +-1 +-1 +-1 +134 +45 +82 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -5710,8 +5771,15 @@ SELECT + + col2 AS col2, 15 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -6348 # Datafusion - Expected - -99 # Datafusion - Expected - -6348 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(92\) \* Int64\(\-69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 AS col1, + 92 * - 69 AS col1 FROM tab0 cor0 +---- +-10 +-47 +-6348 +-6348 +-6348 +-99 query II rowsort SELECT DISTINCT + 10 AS col1, col1 + + col1 AS col2 FROM tab0 AS cor0 @@ -5780,8 +5848,15 @@ SELECT DISTINCT 83 * - 87 * SUM ( col1 ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - -70 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 AS col0, col2 AS col0 FROM tab1 WHERE ( NULL IS NULL ) +---- +-70 +-70 +-70 +59 +68 +96 query I rowsort SELECT - col0 FROM tab0 WHERE - col1 >= NULL @@ -6332,8 +6407,11 @@ SELECT DISTINCT + 21 * col0 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col2" at position 0 and "Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 48 col2, + 92 AS col2 FROM tab0 AS cor0 +---- +48 +92 query II rowsort label-1038 SELECT - + col1 AS col2, CAST ( + - ( - + col1 ) AS INTEGER ) FROM tab1 AS cor0 @@ -6490,8 +6568,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 3 AS col2, ( - 47 ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +-3 +-50 query I rowsort SELECT - + ( + 36 ) * + col2 + - col1 AS col0 FROM tab2 AS cor0 @@ -6795,8 +6876,15 @@ SELECT DISTINCT - ( - - col0 ) - col1 / + col1 + col0 * - col2 * 31 FROM tab1 # Datafusion - Expected - 77 # Datafusion - Expected - 6 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 AS col2, 77 AS col2 FROM tab2 +---- +6 +6 +6 +77 +77 +77 query I rowsort label-1115 SELECT DISTINCT CAST ( - - 57 AS INTEGER ) * 69 AS col2 FROM tab0 AS cor0 @@ -7144,8 +7232,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 +---- +3 +3 query II rowsort SELECT DISTINCT 85, + col2 AS col0 FROM tab0 AS cor0 @@ -7270,8 +7361,15 @@ SELECT * FROM tab2 AS cor0 WHERE - 86 + + col0 IS NOT NULL # Datafusion - Expected - 21 # Datafusion - Expected - -9310 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \- cor0\.col0 \* cor0\.col0 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 - + col0 * col0 AS col2, col1 AS col2 FROM tab0 cor0 +---- +-178 +-7559 +-9310 +1 +21 +81 query I rowsort SELECT ALL + + col2 * + + 39 AS col1 FROM tab0 AS cor0 @@ -7375,8 +7473,11 @@ SELECT MIN ( DISTINCT + 32 ) * - 41 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT \(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +3 +NULL query I rowsort label-1208 SELECT DISTINCT MAX ( - col0 ) * + COUNT ( * ) - 83 AS col1 FROM tab1 @@ -7627,8 +7728,15 @@ SELECT 58 AS col1, 46 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 9801 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* tab0\.col2 AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( col2 ) * + + col2 AS col1, CAST ( NULL AS INTEGER ) * - 59 col1 FROM tab0 +---- +100 +2209 +9801 +NULL +NULL +NULL query I rowsort SELECT DISTINCT 22 * + + col2 FROM tab0 @@ -8106,8 +8214,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, 18 AS col0 FROM tab0 +---- +-3 +18 query I rowsort label-1324 SELECT + COUNT ( * ) / + MIN ( + 7 ) AS col2 FROM tab0 @@ -9564,8 +9675,15 @@ SELECT - 22 * + - ( - - 88 ) FROM tab2 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 99 AS col1, + col0 AS col1 FROM tab0 AS cor0 +---- +15 +87 +97 +99 +99 +99 query I rowsort SELECT - 28 * - col2 + + col1 AS col2 FROM tab2 AS cor0 @@ -10581,8 +10699,11 @@ SELECT * FROM tab1 WHERE NOT NULL >= 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 15272 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(2\) \* CAST\(Int64\(83\) AS Int32\) \* Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, 2 * CAST ( 83 AS INTEGER ) * + 92 AS col1 FROM tab1 +---- +15272 +3 query I rowsort label-1750 SELECT ALL + COUNT ( * ) * MAX ( - col1 ) AS col1 FROM tab0 @@ -10627,8 +10748,15 @@ SELECT ALL col0 * + ( 99 ) * - 83 AS col2 FROM tab1 # Datafusion - Expected - 100 # Datafusion - Expected - 97 # Datafusion - Expected - 9801 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "\(\- tab0\.col2\) \* \(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, - col2 * + - col2 AS col1 FROM tab0 +---- +100 +15 +2209 +87 +97 +9801 query I rowsort SELECT DISTINCT + 54 FROM tab0 WHERE NOT NULL IS NULL @@ -10779,8 +10907,10 @@ SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to bc08b0220b0e32bfad0ac61652631546 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 col2, + 58 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 +---- +18 values hashing to e8ef8b8452c21f82c9b24c01ab6329fa query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT + - col2 IS NOT NULL @@ -11476,8 +11606,15 @@ SELECT ALL - 73 + + col2 + + col0 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 3080 # Datafusion - Expected - 3931 # Datafusion - Expected - 3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \+ Int64\(11\) \+ cor0\.col2 \* cor0\.col1 \+ cor0\.col1 AS col1" at position 0 and "cor0\.col2 \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 33 + 11 + + + col2 * + ( + col1 ) + + col1 AS col1, col2 * col1 AS col1 FROM tab2 cor0 +---- +1173 +1202 +3080 +3135 +3886 +3931 query I rowsort label-1895 SELECT DISTINCT - 20 * + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 @@ -12769,8 +12906,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Float64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - 80 + + MAX ( DISTINCT col0 ) AS col0, COUNT ( * ) + + + CAST ( NULL AS FLOAT8 ) col0 FROM tab0 AS cor0 +---- +17 +NULL query I rowsort label-2115 SELECT - COUNT ( * ) + 65 FROM tab1 AS cor0 @@ -13208,8 +13348,15 @@ SELECT ALL - CAST ( + 39 AS INTEGER ) col1 FROM tab2 cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, col1 AS col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-2185 SELECT DISTINCT - MIN ( DISTINCT - 45 ) AS col1 FROM tab0 AS cor0 @@ -13235,8 +13382,15 @@ SELECT ALL CAST ( + 11 AS INTEGER ) AS col1 FROM tab2 # Datafusion - Expected - 0 # Datafusion - Expected - 5 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "\(\- tab1\.col2\) / tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, ( - col2 ) / + col0 col0 FROM tab1 WHERE NOT NULL IS NOT NULL +---- +-1 +0 +0 +14 +47 +5 query I rowsort SELECT - col0 * - + col2 * + ( ( - - 20 ) ) AS col0 FROM tab1 @@ -13468,8 +13622,15 @@ SELECT DISTINCT 33 * - + 26, col1 * - col1 AS col1 FROM tab1 # Datafusion - Expected - 75 # Datafusion - Expected - 77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 col2, + col0 col2 FROM tab2 +---- +46 +51 +64 +67 +75 +77 query I rowsort SELECT - 35 + col2 * col2 AS col1 FROM tab2 @@ -14126,8 +14287,15 @@ SELECT DISTINCT - MAX ( + - col1 ) - + - 6 - + + COUNT ( * ) + - 57 col1 FROM ta # Datafusion - Expected - 14 # Datafusion - Expected - -75 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, 14 AS col2 FROM tab2 +---- +-46 +-64 +-75 +14 +14 +14 query I rowsort label-2333 SELECT + + COUNT ( * ) FROM tab2 WHERE + col2 IS NOT NULL @@ -14279,8 +14447,15 @@ SELECT col0 * - + 96 FROM tab1 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col2, + col2 FROM tab1 WHERE NOT + ( 37 ) IS NULL +---- +59 +59 +68 +68 +96 +96 query I rowsort label-2358 SELECT - col0 / + + CAST ( NULL AS INTEGER ) * - - col1 AS col2 FROM tab1 @@ -14412,8 +14587,12 @@ SELECT DISTINCT * FROM tab1 WHERE NOT 72 > - col1 # Datafusion - Expected - 360 # Datafusion - Expected - 21 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 and "sum\(DISTINCT \(\- Int64\(\-12\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - ( - 4 ) * + 90 AS col0, 7 * COUNT ( * ) col1, + SUM ( DISTINCT - ( + - 12 ) ) AS col1 FROM tab1 +---- +12 +21 +360 query II rowsort label-2379 SELECT MIN ( - - ( + + 76 ) ), + CAST ( - MAX ( DISTINCT col1 ) AS INTEGER ) col1 FROM tab0 AS cor0 @@ -14462,8 +14641,11 @@ SELECT ALL + 14 AS col1, + 29 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "min\(Int64\(\-40\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 AS col1, MIN ( - 40 ) AS col1 FROM tab1 AS cor0 +---- +-40 +45 query I rowsort SELECT ALL 44 * - + col1 FROM tab2 AS cor0 @@ -15893,8 +16075,15 @@ SELECT * FROM tab1 AS cor0 WHERE 4 * + CAST ( NULL AS INTEGER ) IS NULL # Datafusion - Expected - -142 # Datafusion - Expected - -97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ \(\- cor0\.col1\) AS col1" at position 0 and "CAST\(\(\- cor0\.col0\) AS Int32\) \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + - col0 ) + - col1 AS col1, CAST ( - ( col0 ) AS INTEGER ) + - col1 AS col1 FROM tab2 AS cor0 +---- +-141 +-141 +-142 +-142 +-97 +-97 query I rowsort label-2632 SELECT DISTINCT + SUM ( DISTINCT - ( - + 58 ) ) FROM tab1 AS cor0 @@ -16526,8 +16715,15 @@ SELECT ALL + CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - 58 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col1, - col0 AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +23 +40 +58 query I rowsort label-2733 SELECT MAX ( + ( ( + col0 ) ) ) FROM tab1 AS cor0 @@ -16560,8 +16756,15 @@ SELECT * FROM tab0 WHERE NOT ( col0 NOT BETWEEN NULL AND NULL ) # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- tab2\.col2\) AS col1" at position 0 and "tab2\.col1 \+ \(\- CAST\(NULL AS Int32\)\) \+ tab2\.col0 \* tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) * - col2 AS col1, col1 + - ( + CAST ( NULL AS INTEGER ) ) + col0 * + + ( + col1 ) col1 FROM tab2 +---- +NULL +NULL +NULL +NULL +NULL +NULL query II rowsort label-2738 SELECT CAST ( NULL AS INTEGER ), col2 * - col0 FROM tab0 WHERE ( NOT col2 / + CAST ( NULL AS FLOAT8 ) * - 30 > NULL ) @@ -16955,8 +17158,15 @@ SELECT - - COUNT ( * ) / - 76 + 7 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 97 # Datafusion - Expected - 255 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* tab0\.col0 AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 17 * + col0 AS col2, + col0 AS col2 FROM tab0 +---- +1479 +15 +1649 +255 +87 +97 query I rowsort SELECT ALL + 37 * - col0 AS col1 FROM tab1 @@ -17229,8 +17439,15 @@ SELECT ( - - 99 ) FROM tab0 # Datafusion - Expected - -1722 # Datafusion - Expected - -9603 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* \(\- tab0\.col2\) AS col0" at position 0 and "Int64\(82\) \* \(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * - col2 col0, 82 * - col1 AS col0 FROM tab0 +---- +-1722 +-6642 +-705 +-82 +-870 +-9603 query I rowsort SELECT + 95 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL @@ -17796,8 +18013,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= col2 + + - col2 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, + col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT DISTINCT + 39 FROM tab2 WHERE NOT NULL IS NOT NULL @@ -18673,8 +18897,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 + - + ( + 26 ) AS col2, - COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 +---- +-9 +55 query I rowsort label-3089 SELECT + MIN ( ALL - 89 ) * + MIN ( + col2 ) AS col0 FROM tab0 @@ -18882,7 +19109,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c6b369564649f9e1af73d83ae9d5439b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Schema error: Schema contains qualified field name tab2\.col2 and unqualified field name col2 which would be ambiguous SELECT DISTINCT + col2, - col0 + col2 AS col2, col2 FROM tab2 query III rowsort @@ -18958,8 +19185,11 @@ SELECT 0, - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col1 * - col1 <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 50 AS col0, + 54 AS col0 FROM tab0 AS cor0 +---- +50 +54 query I rowsort SELECT - ( + + col0 ) * - 17 AS col1 FROM tab0 AS cor0 @@ -18978,8 +19208,11 @@ SELECT DISTINCT - - col0 + - - col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 AS col0, COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 +---- +47 +NULL query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE - 63 + + - 21 + + 47 + + - col2 * - col2 * + col2 BETWEEN NULL AND NULL @@ -19048,8 +19281,15 @@ SELECT DISTINCT + col0 * + + col2 FROM tab2 # Datafusion - Expected - 0 # Datafusion - Expected - 54 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \- Int64\(36\) AS col0" at position 0 and "\(\- tab0\.col1\) / Int64\(\-53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 - + 36 AS col0, - col1 / - 53 AS col0 FROM tab0 +---- +0 +0 +1 +54 +54 +54 query III rowsort SELECT * FROM tab1 WHERE 16 NOT BETWEEN 10 AND NULL @@ -19194,8 +19434,9 @@ SELECT ( - - 69 ) FROM tab1 69 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col1, col2 AS col1 FROM tab0 WHERE NOT col2 / + - col0 = NULL +---- query I rowsort SELECT ALL + col2 + col1 FROM tab1 WHERE NOT + col2 IS NOT NULL @@ -19628,8 +19869,11 @@ SELECT ALL ( + + COUNT ( * ) ) FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- min\(\(\- cor0\.col1\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + COUNT ( * ) * - MIN ( - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL +---- +0 +NULL query I rowsort SELECT ALL + 95 * + 45 col2 FROM tab0 @@ -20035,8 +20279,9 @@ SELECT COUNT ( * ) AS col0, + COUNT ( * ) + - 63 FROM tab1 -60 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, + col2 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL +---- query I rowsort label-3310 SELECT DISTINCT MIN ( col0 ) + - - COUNT ( + 57 ) + 10 * - + ( + ( SUM ( ALL + 8 ) ) ) FROM tab0 AS cor0 @@ -20463,8 +20708,15 @@ SELECT DISTINCT COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 0 # Datafusion - Expected - -46 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 46 AS col2, + 0 AS col2 FROM tab2 cor0 +---- +-46 +-46 +-46 +0 +0 +0 query I rowsort label-3381 SELECT - - COUNT ( * ) * + 57 + - 99 FROM tab1 AS cor0 @@ -20715,8 +20967,10 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 79 + 71 IS NULL AND ( NULL ) IS NO # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 1fce30417cb36f922191749ea6ce2f1f -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \- tab2\.col2 / tab2\.col0 AS col1" at position 0 and "Int64\(37\) \+ Int64\(\-9\) \- \(\- Int64\(36\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - col1 - + col2 / ( col0 ) col1, 37 + - 9 - - + 36 AS col1, - 1 FROM tab2 +---- +9 values hashing to 59b7d63aaf47a7a0405599f2843706f4 query I rowsort label-3420 SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 @@ -21338,8 +21592,15 @@ SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Expected - 18 # Datafusion - Expected - 17 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-17\)\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 17 AS col0, + 18 AS col0 FROM tab2 AS cor0 +---- +17 +17 +17 +18 +18 +18 query I rowsort SELECT - col0 * 66 + + col2 AS col0 FROM tab1 AS cor0 @@ -21814,8 +22075,15 @@ NULL # Datafusion - Expected - -375 # Datafusion - Expected - -99 # Datafusion - Expected - -2425 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col0 \* Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 AS col1, col0 * - 25 AS col1 FROM tab0 AS cor0 +---- +-10 +-2175 +-2425 +-375 +-47 +-99 query I rowsort label-3611 SELECT DISTINCT + COUNT ( * ) + - COUNT ( 54 ) FROM tab2 AS cor0 @@ -22079,8 +22347,15 @@ SELECT ALL + + col2 * + col2 * - 10 * + col1 + - 34 * + - 57 col1 FROM tab1 AS c # Datafusion - Expected - -68 # Datafusion - Expected - NULL # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \* cor0\.col1 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + + CAST ( NULL AS FLOAT8 ) * + + col1 col1, - col2 AS col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 < - + col0 + - col2 @@ -22090,8 +22365,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - + COUNT ( * ) AS col2, 74 / + 74 + + 38 * + 8 col2 FROM tab1 AS cor0 WHERE NOT col1 + 1 * - col1 IS NOT NULL +---- +0 +305 query I rowsort label-3656 SELECT + + COUNT ( + col1 ) AS col0 FROM tab0 AS cor0 @@ -22202,8 +22480,15 @@ SELECT DISTINCT col0 + - - col0 / - - col2 FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - -177 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \+ Int64\(\-99\) AS col0" at position 0 and "CAST\(cor0\.col2 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 78 + - 99 AS col0, CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0 +---- +-177 +-177 +-177 +23 +40 +58 query I rowsort SELECT - col0 + + + 91 * - col2 * - col1 FROM tab1 AS cor0 @@ -22418,8 +22703,15 @@ SELECT - SUM ( + + col1 ) col0 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, + col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> 66 @@ -22567,8 +22859,11 @@ SELECT + ( - col2 ) * col0 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, + CAST ( NULL AS INTEGER ) col0 FROM tab2 +---- +NULL +NULL query I rowsort SELECT - col1 * - col1 * col2 + + col1 AS col0 FROM tab0 @@ -22785,8 +23080,15 @@ SELECT ALL - 33 FROM tab1 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - 64 # Datafusion - Expected - 2 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 2 col1, + col0 AS col1 FROM tab2 +---- +2 +2 +2 +46 +64 +75 query II rowsort label-3773 SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) FROM tab0 @@ -22884,8 +23186,15 @@ SELECT - - COUNT ( * ) * + + MAX ( + 13 ) FROM tab1 AS cor0 # Datafusion - Expected - 1 # 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 "\(\- \(\- cor0\.col0\)\) / Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 92 AS col0, ( - - col0 ) / 57 AS col0 FROM tab2 AS cor0 +---- +-92 +-92 +-92 +0 +1 +1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 @@ -24227,8 +24536,15 @@ SELECT ALL CAST ( - 62 AS INTEGER ) + - ( + 69 ) AS col0 FROM tab0 # Datafusion - Expected - -459 # Datafusion - Expected - 80 # Datafusion - Expected - -693 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \+ Int64\(\-14\) / tab2\.col0 \+ tab2\.col2 AS col2" at position 0 and "Int64\(9\) \* \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 + - 14 / + col0 + + col2 AS col2, 9 * - col1 AS col2 FROM tab2 +---- +-459 +-603 +-693 +116 +46 +80 query I rowsort label-4010 SELECT COUNT ( * ) - 38 col0 FROM tab1 @@ -24343,8 +24659,15 @@ SELECT 94 + + col0 col1 FROM tab1 # Datafusion - Expected - 150 # Datafusion - Expected - -12 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col1" at position 0 and "tab2\.col0 \- \(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 12 col1, col0 - + - col0 AS col1 FROM tab2 +---- +-12 +-12 +-12 +128 +150 +92 query I rowsort SELECT col1 * + col0 * ( + 43 ) + + col0 FROM tab0 @@ -24846,8 +25169,11 @@ SELECT + - ( - SUM ( DISTINCT 69 ) ) / 8 FROM tab0 AS cor0 CROSS JOIN tab1 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 89 AS col0, 12 AS col0 FROM tab0 +---- +-89 +12 query I rowsort label-4114 SELECT MAX ( ALL - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( ( 33 ) ) IS NOT NULL @@ -25202,8 +25528,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + COUNT ( * ) AS col1, + 88 col1 FROM tab0 AS cor0 +---- +3 +88 query I rowsort label-4176 SELECT DISTINCT COUNT ( * ) + + MAX ( DISTINCT + - col1 ) FROM tab2 AS cor0 @@ -25384,8 +25713,15 @@ SELECT + col1 + ( + col2 ) * col1 * - 80 * - col2 FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - -60 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \- tab2\.col0 AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 15 - + col0 AS col1, col0 AS col1 FROM tab2 +---- +-31 +-49 +-60 +46 +64 +75 query II rowsort label-4207 SELECT ALL + COUNT ( ALL + - 6 ) AS col1, MAX ( col2 ) AS col0 FROM tab1 @@ -26273,8 +26609,15 @@ SELECT DISTINCT + 26 + - col1 * + - col1 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -295 # Datafusion - Expected - 48 # Datafusion - Expected - -3196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col2" at position 0 and "cor0\.col2 \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 AS col2, col2 * - col1 AS col2 FROM tab1 AS cor0 +---- +-1344 +-295 +-3196 +48 +48 +48 query I rowsort SELECT + 45 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 @@ -27550,8 +27893,15 @@ SELECT ALL 23 AS col1, - col0 AS col2 FROM tab1 # Datafusion - Expected - 12 # Datafusion - Expected - 90 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \+ tab2\.col0 \+ Int64\(21\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 + + col0 + + ( 21 ) AS col0, + 12 AS col0 FROM tab2 +---- +12 +12 +12 +125 +154 +90 query I rowsort SELECT - col1 FROM tab0 AS cor0 WHERE ( NULL ) >= ( + + 33 ) @@ -28365,8 +28715,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( 16 AS INTEGER ) IS NULL # Datafusion - Expected - -47 # Datafusion - Expected - -5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col1, - col1 FROM tab1 AS cor0 +---- +-14 +-14 +-47 +-47 +-5 +-5 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -28453,8 +28810,15 @@ SELECT * FROM tab2 AS cor0 WHERE NULL <= ( NULL ) # Datafusion - Expected - -45414 # Datafusion - Expected - -912673 # Datafusion - Expected - -56454 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* \(\- tab0\.col0\) \* tab0\.col0 AS col1" at position 0 and "tab0\.col0 \* \(\- Int64\(6\)\) \* tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 * - + col0 * + + col0 col1, col0 * - + 6 * col0 AS col1 FROM tab0 +---- +-1350 +-3375 +-45414 +-56454 +-658503 +-912673 query III rowsort SELECT ALL * FROM tab0 WHERE + col2 IS NOT NULL AND col1 BETWEEN ( - col0 ) AND ( NULL ) @@ -28992,8 +29356,15 @@ SELECT ALL + SUM ( DISTINCT - col2 ) FROM tab1 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-4803 SELECT - SUM ( + col0 ) AS col1 FROM tab1 WHERE NOT NULL = + 14 - + col1 @@ -29150,8 +29521,15 @@ SELECT col1 * - 45 FROM tab0 AS cor0 WHERE NOT ( col1 + - CAST ( NULL AS FLOAT8 # Datafusion - Expected - -40 # Datafusion - Expected - -58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "\(\- cor0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - col2 ), - col2 FROM tab2 AS cor0 +---- +-23 +-23 +-40 +-40 +-58 +-58 query I rowsort SELECT ALL 20 * - + col0 AS col2 FROM tab1 @@ -29681,8 +30059,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT 23 >= - ( 86 ) # Datafusion - Expected - 2112 # Datafusion - Expected - 75 # Datafusion - Expected - 2475 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 \* Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, + col0 * + + 33 AS col2 FROM tab2 AS cor0 +---- +1518 +2112 +2475 +46 +64 +75 query I rowsort label-4917 SELECT DISTINCT + COUNT ( * ) + - - ( 31 ) FROM tab2 AS cor0 @@ -29865,8 +30250,15 @@ SELECT col0 * - 6 * - - col0 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col2, col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query II rowsort SELECT ALL col1 AS col1, ( col2 ) * 31 AS col0 FROM tab1 cor0 @@ -30615,8 +31007,11 @@ SELECT col2 + - + col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col1, ( - - COUNT ( * ) ) AS col1 FROM tab1 +---- +3 +3 query I rowsort label-5069 SELECT COUNT ( * ) * + + 26 FROM tab0 @@ -31531,8 +31926,11 @@ SELECT ALL - - 83 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "max\(DISTINCT \(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col1, MAX ( DISTINCT - col1 ) col1 FROM tab1 AS cor0 +---- +-5 +NULL query II rowsort SELECT - col2, col1 AS col0 FROM tab0 AS cor0 @@ -32072,8 +32470,11 @@ SELECT ALL 67 / - col0 + 17 AS col2, col1 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ \(\- count\(cor0\.col0\)\) AS col1" at position 0 and "Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 32 + - COUNT ( ALL + col0 ) AS col1, - 62 AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL +---- +-62 +32 query I rowsort label-5319 SELECT DISTINCT + CAST ( + - ( + + ( - col1 ) ) AS INTEGER ) FROM tab1 @@ -32471,8 +32872,11 @@ SELECT + 53 + + col0, + col0 col1 FROM tab2 AS cor0 # 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 col0" at position 0 and "tab1\.col1 / Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 35 AS col0, + col1 / 70 AS col0 FROM tab1 +---- +0 +35 query I rowsort SELECT ALL col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL @@ -32484,8 +32888,11 @@ SELECT ALL col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -153 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, - COUNT ( * ) * 51 col0 FROM tab2 +---- +-153 +3 query I rowsort label-5388 SELECT ( - SUM ( ALL + col1 ) ) AS col0 FROM tab2 @@ -32900,8 +33307,13 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - 88 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col0" at position 0 and "Int64\(69\) / cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 88 AS col0, + 69 / col2 col0 FROM tab2 AS cor0 +---- +1 +3 +88 +88 query I rowsort label-5461 SELECT ( - col1 ) + + - col0 + + col2 col1 FROM tab2 AS cor0 WHERE NOT + col2 <> - + ( 65 ) + 36 * - CAST ( NULL AS INTEGER ) - - 53 @@ -33625,8 +34037,15 @@ SELECT + 58 * - + 66 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 81 # Datafusion - Expected - -9409 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col0\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * - + col0 AS col0, 81 col0 FROM tab0 cor0 +---- +-225 +-7569 +-9409 +81 +81 +81 query II rowsort SELECT 98 * + col0 AS col1, col2 AS col2 FROM tab2 AS cor0 @@ -34695,8 +35114,15 @@ SELECT ALL - col0 * - + 81 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, col2 AS col1 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query III rowsort SELECT * FROM tab2 cor0 WHERE 27 IS NOT NULL @@ -35194,8 +35620,15 @@ SELECT ALL + + SUM ( + + col0 ) * + MIN ( + + col2 ) FROM tab1 AS cor0 WHERE NOT # Datafusion - Expected - 1215 # Datafusion - Expected - -99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col2" at position 0 and "tab0\.col0 \* tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 col2, col0 * + col1 AS col2 FROM tab0 +---- +-10 +-47 +-99 +1215 +1827 +97 query I rowsort label-5846 SELECT ALL - + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 @@ -35209,8 +35642,15 @@ SELECT ALL - + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 86 # Datafusion - Expected - 58 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 58 col2, 86 AS col2 FROM tab1 AS cor0 +---- +58 +58 +58 +86 +86 +86 query I rowsort SELECT col2 / + + col0 + - ( col1 ) AS col1 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL @@ -35435,8 +35875,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 15 AS col2, - COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +-15 +-3 query I rowsort SELECT - col2 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL @@ -35709,8 +36152,15 @@ SELECT - 75 * - 73 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 # Datafusion - Expected - 94 # Datafusion - Expected - 89 # Datafusion - Expected - 198 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ Int64\(11\) \+ Int64\(77\) AS col2" at position 0 and "tab0\.col2 \+ tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + + 11 + 77 AS col2, col2 + + col2 AS col2 FROM tab0 +---- +109 +169 +198 +20 +89 +94 query II rowsort label-5929 SELECT - COUNT ( * ) + + ( 80 ) AS col0, COUNT ( * ) / 17 + - 12 * + CAST ( NULL AS INTEGER ) FROM tab1 @@ -36479,8 +36929,11 @@ SELECT ALL 48 / + col0 + - col0 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) * + COUNT ( * ) AS col0, + 21 AS col0 FROM tab2 WHERE + ( + - col1 ) >= NULL +---- +0 +21 query I rowsort label-6054 SELECT DISTINCT + COUNT ( * ) - - MIN ( DISTINCT + col2 ) AS col2 FROM tab2 @@ -36551,8 +37004,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) col2, SUM ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL +---- +0 +NULL query I rowsort SELECT col1 + - 57 FROM tab0 @@ -37262,8 +37718,15 @@ NULL # Datafusion - Expected - 87 # Datafusion - Expected - 81 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 col2, + col0 AS col2 FROM tab0 +---- +1 +15 +21 +81 +87 +97 query II rowsort label-6191 SELECT - + CAST ( CAST ( + - 48 AS INTEGER ) AS INTEGER ) + + col0, col1 FROM tab2 AS cor0 @@ -37803,8 +38266,15 @@ SELECT DISTINCT + COUNT ( * ) / + - COUNT ( * ) AS col2 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, col2 AS col1 FROM tab0 cor0 +---- +10 +10 +47 +47 +99 +99 query II rowsort label-6284 SELECT + - 60 AS col1, COUNT ( * ) AS col2 FROM tab2 AS cor0 @@ -38024,8 +38494,15 @@ SELECT col1 AS col0, 57 * col2 FROM tab1 AS cor0 # Datafusion - Expected - -2566 # Datafusion - Expected - 47 # Datafusion - Expected - -4356 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(\-6\) \- \(\- cor0\.col2\) \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 47 col2, - 6 - + - col2 * - col0 AS col2 FROM tab2 AS cor0 +---- +-1064 +-2566 +-4356 +47 +47 +47 query I rowsort SELECT DISTINCT ( col2 ) col0 FROM tab2 cor0 @@ -38142,8 +38619,15 @@ NULL # Datafusion - Expected - 5015 # Datafusion - Expected - 1955 # Datafusion - Expected - 6188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \* Int64\(\-23\) AS col2" at position 0 and "cor0\.col0 \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 85 * - 23 AS col2, col0 * ( col2 ) AS col2 FROM tab1 AS cor0 +---- +1955 +1955 +1955 +4896 +5015 +6188 query I rowsort SELECT ( - - 39 ) FROM tab2 AS cor0 @@ -38750,8 +39234,15 @@ SELECT DISTINCT col0 FROM tab0 WHERE NULL IS NULL # Datafusion - Expected - 40 # Datafusion - Expected - 5025 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* tab2\.col0 AS col1" at position 0 and "\(\- \(\- tab2\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + col0 AS col1, ( - - col2 ) AS col1 FROM tab2 +---- +23 +2346 +40 +4928 +5025 +58 query II rowsort SELECT - ( + 13 ) * col0, col1 FROM tab2 AS cor0 @@ -38828,8 +39319,11 @@ SELECT DISTINCT - 98 * - - col0 AS col0 FROM tab1 AS cor0 WHERE col2 BETWEEN NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-57\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(\(\- cor0\.col2\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) * + - 57 / COUNT ( * ) AS col0, - COUNT ( ALL - col2 ) col0 FROM tab2 AS cor0 +---- +-3 +57 query I rowsort SELECT ALL + col1 + - + col2 FROM tab0 AS cor0 @@ -39130,8 +39624,15 @@ NULL # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, + col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query II rowsort SELECT ALL col1, - col0 * 5 AS col2 FROM tab0 @@ -39691,8 +40192,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 AS col0, ( - 64 ) + + MAX ( + 89 ) * COUNT ( * ) * - 44 AS col0 FROM tab2 AS cor0 +---- +-11812 +67 query I rowsort label-6587 SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE ( NOT ( ( NOT NULL IS NULL ) ) ) @@ -39861,8 +40365,9 @@ SELECT - 82 * COUNT ( - col2 ) * - COUNT ( * ) col0 FROM tab2 AS cor0 738 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2, + col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL <= NULL ) OR - col1 IS NULL +---- query I rowsort label-6613 SELECT ALL MIN ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0 @@ -40452,8 +40957,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ), + COUNT ( * ) FROM tab2 +---- +3 +3 query I rowsort label-6717 SELECT + MAX ( ALL + + 49 ) AS col2 FROM tab0 @@ -40859,8 +41367,15 @@ SELECT MAX ( DISTINCT + 56 ) AS col0 FROM tab1 # Datafusion - Expected - -95 # Datafusion - Expected - -97 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* cor0\.col0 AS col2" at position 0 and "Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 * + + col0 AS col2, - 95 AS col2 FROM tab0 AS cor0 +---- +-1215 +-1827 +-95 +-95 +-95 +-97 query I rowsort SELECT ( - 7 ) + + 59 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL @@ -40898,8 +41413,15 @@ SELECT - 17 / + col2 * col0 col0 FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - 64 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 64 col1, col2 AS col1 FROM tab2 +---- +23 +40 +58 +64 +64 +64 query IIIIII rowsort SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL @@ -41382,8 +41904,15 @@ SELECT + col0 * - - col2 + ( + col2 ) + - col0 + - 28 + - 37 FROM tab2 WHERE NOT # Datafusion - Expected - 227 # Datafusion - Expected - 5 # Datafusion - Expected - 203 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "tab1\.col2 \+ tab1\.col0 \+ tab1\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, + col2 + col0 + + col2 AS col2 FROM tab1 +---- +14 +203 +227 +243 +47 +5 query I rowsort SELECT DISTINCT 71 * + - ( + col2 ) AS col2 FROM tab0 @@ -42573,8 +43102,15 @@ SELECT COUNT ( * ) + + 16 + - 73 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 82 # Datafusion - Expected - 99 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "Int64\(97\) \+ \(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, 97 + - col0 AS col0 FROM tab0 +---- +0 +10 +10 +47 +82 +99 query II rowsort SELECT col0 AS col0, + 10 + col0 FROM tab1 @@ -42864,8 +43400,15 @@ SELECT - 5 / - col2 FROM tab1 AS cor0 # Datafusion - Expected - 7 # Datafusion - Expected - 5 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, 7 AS col2 FROM tab1 +---- +14 +47 +5 +7 +7 +7 query I rowsort label-7108 SELECT DISTINCT COUNT ( DISTINCT - col1 ) FROM tab1 @@ -42943,8 +43486,11 @@ SELECT ALL COUNT ( - col2 ) / - 67 col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 60 AS col1, COUNT ( * ) AS col1 FROM tab2 +---- +-60 +3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c66d5e8ee201a45e8f326321a7d39527 @@ -43476,8 +44022,15 @@ SELECT COUNT ( * ) * + ( + - 19 ) - + 12 FROM tab1 AS cor0 # Datafusion - Expected - 13 # Datafusion - Expected - 77 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, 13 AS col2 FROM tab2 cor0 +---- +13 +13 +13 +51 +67 +77 query I rowsort label-7215 SELECT ALL - col1 * 53 / + - 43 FROM tab1 AS cor0 @@ -44395,8 +44948,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL # Datafusion - Expected - 77 # Datafusion - Expected - 58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 col0, + col1 AS col0 FROM tab2 AS cor0 +---- +23 +40 +51 +58 +67 +77 query I rowsort SELECT ALL + + col0 + - 7 FROM tab2 cor0 @@ -44508,8 +45068,11 @@ SELECT col1 FROM tab2 WHERE NOT NULL IN ( - col2, col2 + + col0 + 90 ) # 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\(20\) / Int64\(35\) 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 II valuesort SELECT DISTINCT 20 / 35 col1, MAX ( ALL - + col0 ) AS col1 FROM tab0 AS cor0 +---- +-15 +0 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 89 NOT IN ( - 42, col0 * + 15 + + - col1 * + col2, + 18 / ( + - ( + ( - col0 ) ) ) ) @@ -45063,8 +45626,15 @@ SELECT DISTINCT - + col2 * + col1 * - col1 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-7469 SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - ( + col1 ) FROM tab1 AS cor0 @@ -45223,8 +45793,9 @@ query error DataFusion error: Schema error: Schema contains qualified field name SELECT DISTINCT + col2, CAST ( col2 AS INTEGER ) col2, + col0 / - col0 FROM tab0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "\(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col2, - col1 AS col2 FROM tab0 WHERE ( NOT NULL NOT BETWEEN col1 AND ( - col0 ) ) +---- query III rowsort SELECT ALL * FROM tab1 WHERE NULL >= ( - col1 ) @@ -48048,8 +48619,15 @@ SELECT ALL - col0 * - - col0 * - 17 AS col2 FROM tab0 # Datafusion - Expected - -2142 # Datafusion - Expected - 10 # Datafusion - Expected - -2814 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ Int64\(\-65\) AS col2" at position 0 and "Int64\(42\) \* \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 + - 65 AS col2, + 42 * - col1 AS col2 FROM tab2 +---- +-1 +-19 +-2142 +-2814 +-3234 +10 query I rowsort label-7967 SELECT ( - MIN ( - - col2 ) ) FROM tab0 @@ -48390,8 +48968,15 @@ SELECT - + 19 * COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Expected - 1827 # Datafusion - Expected - -94 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col0" at position 0 and "tab0\.col0 \* tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 94 AS col0, col0 * + + col1 AS col0 FROM tab0 +---- +-94 +-94 +-94 +1215 +1827 +97 query I rowsort label-8025 SELECT - ( + ( + COUNT ( * ) ) ) col1 FROM tab1 @@ -48445,8 +49030,11 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 94 AS col2, COUNT ( * ) col2 FROM tab0 AS cor0 +---- +-94 +3 query I rowsort label-8034 SELECT 47 * 24 FROM tab1 AS cor0 WHERE NOT NULL = - CAST ( NULL AS INTEGER ) * col2 @@ -48600,8 +49188,15 @@ SELECT ALL 6 AS col1, col2 FROM tab2 AS cor0 # Datafusion - Expected - 43 # Datafusion - Expected - -49 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 49 AS col1, + 43 AS col1 FROM tab1 AS cor0 +---- +-49 +-49 +-49 +43 +43 +43 query I rowsort SELECT col2 * 29 AS col0 FROM tab2 AS cor0 WHERE NOT + 11 IS NOT NULL @@ -50402,8 +50997,15 @@ SELECT DISTINCT + col0 * - - col2 FROM tab2 AS cor0 # Datafusion - Expected - 2045 # Datafusion - Expected - -91 # Datafusion - Expected - 2231 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col1 \+ Int64\(24\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 AS col1, col1 + 24 * col0 AS col1 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +1238 +2045 +2231 query I rowsort SELECT DISTINCT + - 9 + - - ( + + col0 ) AS col1 FROM tab0 AS cor0 @@ -50419,8 +51021,15 @@ SELECT DISTINCT + - 9 + - - ( + + col0 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -188 # Datafusion - Expected - -315360 # Datafusion - Expected - -148 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col2 AS Int32\) \* Int64\(73\) \* Int64\(\-45\) AS col1" at position 0 and "Int64\(\-97\) \- cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + + col2 AS INTEGER ) * 73 * + - 45 AS col1, - 97 - col0 AS col1 FROM tab1 AS cor0 +---- +-148 +-182 +-188 +-193815 +-223380 +-315360 query I rowsort label-8363 SELECT ALL + col0 * + col2 / - + col2 col0 FROM tab1 AS cor0 @@ -50459,8 +51068,11 @@ SELECT DISTINCT * FROM tab2 WHERE NOT NULL > + col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 29 ) AS col0, COUNT ( * ) AS col0 FROM tab2 +---- +29 +3 query I rowsort SELECT ALL col1 + + + col1 + ( + col1 ) col1 FROM tab0 WHERE 55 NOT BETWEEN + - col1 AND ( - - 72 + 61 ) @@ -50966,8 +51578,15 @@ SELECT col0 + - 9 FROM tab1 # Datafusion - Expected - -2016 # Datafusion - Expected - 75 # Datafusion - Expected - -2016 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "Int64\(48\) \* \(\- Int64\(42\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, 48 * - + 42 AS col2 FROM tab2 +---- +-2016 +-2016 +-2016 +46 +64 +75 query III rowsort SELECT * FROM tab1 AS cor0 WHERE + col2 / - col0 <> col2 @@ -50994,8 +51613,11 @@ SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -48 -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\(28\)\) \- min\(tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 20 col0, COUNT ( 28 ) - + MIN ( col0 ) AS col0 FROM tab1 +---- +-48 +20 query II rowsort SELECT + col2 AS col1, col1 + + + col0 AS col0 FROM tab1 @@ -51051,8 +51673,11 @@ SELECT + - COUNT ( col2 ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(55\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 55 AS col0, + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 +---- +-55 +NULL query I rowsort label-8466 SELECT ALL + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab0 AS cor0 @@ -51820,8 +52445,15 @@ SELECT DISTINCT * FROM tab1 WHERE ( NOT NULL IS NOT NULL ) # Datafusion - Expected - -87 # Datafusion - Expected - -87 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col1" at position 0 and "\(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 87 AS col1, - col0 AS col1 FROM tab0 +---- +-15 +-87 +-87 +-87 +-87 +-97 query I rowsort SELECT - - col0 AS col0 FROM tab1 WHERE NOT - 45 IS NOT NULL @@ -51977,8 +52609,15 @@ SELECT ( + col2 ) * + col0 + col1 / + + 55 FROM tab0 # Datafusion - Expected - 31 # Datafusion - Expected - 34 # Datafusion - Expected - 100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \+ Int64\(0\) \+ \(\- tab0\.col1\) AS col0" at position 0 and "tab0\.col1 \+ tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 35 + + 0 + - col1 AS col0, col1 + + col2 AS col0 FROM tab0 +---- +-46 +100 +128 +14 +31 +34 query I rowsort SELECT ALL ( 14 ) + + - col1 * 33 + col1 AS col0 FROM tab2 @@ -52405,8 +53044,15 @@ SELECT col0 + + 61 FROM tab0 # Datafusion - Expected - 67 # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \* CAST\(NULL AS Float64\) \* Int64\(99\) \* \(\- tab2\.col1\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + 66 * + CAST ( NULL AS FLOAT8 ) * + 99 * - col1 AS col0, + col1 AS col0 FROM tab2 +---- +51 +67 +77 +NULL +NULL +NULL query I rowsort SELECT col1 * 33 FROM tab1 @@ -52460,8 +53106,15 @@ SELECT + - ( - 90 ) - 51 * col1 * - 72 FROM tab1 AS cor0 # Datafusion - Expected - 7 # Datafusion - Expected - 17 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 col2, + 7 AS col2 FROM tab2 AS cor0 +---- +17 +17 +17 +7 +7 +7 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL @@ -53118,8 +53771,15 @@ SELECT ALL + + 62 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -870 # Datafusion - Expected - 51 # Datafusion - Expected - -9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "\(\- cor0\.col0\) \* cor0\.col2 \+ \(\- Int64\(0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 AS col0, - col0 * + col2 + - + 0 AS col0 FROM tab0 AS cor0 +---- +-705 +-870 +-9603 +51 +51 +51 query III rowsort label-8812 SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + col0 * + CAST ( NULL AS INTEGER ) + col0 AND col1 / - col2 @@ -53613,8 +54273,15 @@ SELECT ALL MAX ( + col0 ) * + + 76 + + COUNT ( * ) AS col0, COUNT ( * ) FROM tab # Datafusion - Expected - 6188 # Datafusion - Expected - 2688 # Datafusion - Expected - 4896 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* Int64\(28\) AS col1" at position 0 and "\(\- tab1\.col2\) \* \(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 * 28 AS col1, - col2 * - col0 AS col1 FROM tab1 +---- +1652 +1904 +2688 +4896 +5015 +6188 query II rowsort SELECT ALL col0 + - col0 AS col0, col1 FROM tab0 @@ -53841,8 +54508,15 @@ SELECT * FROM tab1 WHERE + col1 / - col2 - 88 <= - ( + - col2 ) # Datafusion - Expected - 61 # Datafusion - Expected - 9702 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* \(\- tab0\.col2\) \+ tab0\.col2 AS col1" at position 0 and "CAST\(Int64\(61\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * - col2 + + col2 AS col1, + CAST ( + 61 AS INTEGER ) AS col1 FROM tab0 +---- +61 +61 +61 +752 +880 +9702 query I rowsort SELECT ALL col1 * + + col0 FROM tab0 @@ -54348,8 +55022,15 @@ SELECT ALL - SUM ( DISTINCT + - col2 ) col1 FROM tab1 # Datafusion - Expected - 51 # Datafusion - Expected - -99 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, 51 AS col1 FROM tab0 +---- +-10 +-47 +-99 +51 +51 +51 query I rowsort label-9023 SELECT DISTINCT - col1 - 21 / + col1 FROM tab1 @@ -54972,8 +55653,15 @@ SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 # Datafusion - Expected - 147 # Datafusion - Expected - -85 # Datafusion - Expected - 159 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col1" at position 0 and "tab1\.col0 \+ tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 85 AS col1, + col0 + + + col2 AS col1 FROM tab1 +---- +-85 +-85 +-85 +144 +147 +159 query II rowsort SELECT ALL - col2, - col2 AS col0 FROM tab2 @@ -55548,8 +56236,11 @@ SELECT - 1 * - col2 AS col1 FROM tab1 WHERE ( NOT NULL <= ( NULL ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-66\)\) AS col1" at position 0 and "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 66 AS col1, - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +-3 +66 query III rowsort SELECT * FROM tab1 WHERE NOT + col2 + + ( + col1 ) BETWEEN NULL AND col1 @@ -56108,8 +56799,15 @@ SELECT DISTINCT - 3 * 61 FROM tab0 AS cor0 # Datafusion - Expected - -7569 # Datafusion - Expected - 81 # Datafusion - Expected - -225 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, + col0 * - col0 AS col2 FROM tab0 AS cor0 +---- +-225 +-7569 +-9409 +1 +21 +81 query I rowsort label-9316 SELECT + 22 / - - col0 * col2 FROM tab2 AS cor0 @@ -56153,8 +56851,11 @@ SELECT * FROM tab2 cor0 WHERE NOT NULL = NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- cor0\.col0\)\) AS col2" at position 0 and "CAST\(\(\- max\(DISTINCT \(\- cor0\.col0\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( - + col0 ) AS col2, CAST ( - MAX ( DISTINCT - col0 ) AS INTEGER ) AS col2 FROM tab2 AS cor0 +---- +3 +46 query I rowsort label-9324 SELECT + + MAX ( col0 ) FROM tab1 AS cor0 @@ -56183,8 +56884,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 20 AS col2, + COUNT ( * ) * 36 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col0 +---- +0 +20 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN col0 / - col0 * col1 + + 98 AND NULL @@ -56235,8 +56939,11 @@ SELECT ALL MIN ( DISTINCT col0 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(64\) \+ Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 3 col2, + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + 64 + 25 AS col2 FROM tab1 +---- +-3 +NULL query I rowsort label-9339 SELECT ALL col1 * col0 / 77 + - col1 FROM tab0 @@ -56855,8 +57562,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 >= + col1 # Datafusion - Expected - 2 # Datafusion - Expected - -48 # Datafusion - Expected - 2592 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(48\)\) AS col1" at position 0 and "\(\- cor0\.col1\) \* \(\- cor0\.col2\) \+ \(\- cor0\.col0\) \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + ( 48 ) AS col1, - col1 * - col2 + - + col0 * + col1 AS col1 FROM tab0 AS cor0 +---- +-1617 +-48 +-48 +-48 +2 +2592 query I rowsort SELECT DISTINCT - ( - + 52 ) * - col1 FROM tab2 cor0 @@ -57439,8 +58153,15 @@ SELECT ALL col2 col0, col2 AS col2 FROM tab0 # Datafusion - Expected - -173 # Datafusion - Expected - NULL # Datafusion - Expected - -84 -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\(74\)\) \- tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT CAST ( NULL AS FLOAT8 ) AS col1, - ( + 74 ) - + col2 AS col1 FROM tab0 +---- +-121 +-173 +-84 +NULL +NULL +NULL query I rowsort SELECT + col1 + 32 * col1 col0 FROM tab0 @@ -57511,8 +58232,15 @@ SELECT * FROM tab1 AS cor0 WHERE CAST ( ( 29 ) AS INTEGER ) BETWEEN ( + 63 + - c # Datafusion - Expected - 99 # Datafusion - Expected - -59 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ Int64\(\-38\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col1 + - 38 AS col1, + col2 AS col1 FROM tab0 cor0 +---- +-119 +-39 +-59 +10 +47 +99 query I rowsort SELECT + 38 + + col0 AS col1 FROM tab0 AS cor0 @@ -57556,8 +58284,15 @@ SELECT + ( + ( MAX ( ALL + + col0 ) ) ) FROM tab2 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1, + ( + + col1 ) FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT col2 * + col1 AS col0 FROM tab1 WHERE NULL IS NULL @@ -58360,8 +59095,10 @@ SELECT - COUNT ( * ) + + SUM ( ALL - 75 ) AS col0, 31 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a47b0f826caccc65261d0dd01c2c615e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 59 AS col1, col2 AS col0, + col0 AS col1 FROM tab0 WHERE NULL IS NULL +---- +9 values hashing to 83f9a641216a4147aa081a130de63430 query II rowsort label-9683 SELECT - - COUNT ( * ), COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL @@ -59972,8 +60709,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) + - - COUNT ( ALL + col2 ) AS col0, - MIN ( + + 74 ) AS col0 FROM tab2 +---- +-74 +0 query I rowsort SELECT DISTINCT + + col1 FROM tab0 WHERE NOT NULL NOT IN ( + col1, - col0 * + - col2 / 29, + col0 + - col1 - + col2 ) diff --git a/data/sqlite/random/aggregates/slt_good_53.slt b/data/sqlite/random/aggregates/slt_good_53.slt index 10fd2a4..e08dd03 100644 --- a/data/sqlite/random/aggregates/slt_good_53.slt +++ b/data/sqlite/random/aggregates/slt_good_53.slt @@ -44,8 +44,15 @@ INSERT INTO tab2 VALUES(46,51,23) # Datafusion - Expected - -47 # Datafusion - Expected - 99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col0, - col2 AS col0 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +10 +47 +99 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + col1 @@ -1050,8 +1057,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 20 * + 8 * - col0 ) NOT BETWEEN NUL # Datafusion - Expected - 97 # Datafusion - Expected - 570 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* Int64\(57\) AS col1" at position 0 and "tab0\.col0 \+ Int64\(41\) / Int64\(\-89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * 57 AS col1, + col0 + 41 / - 89 AS col1 FROM tab0 +---- +15 +2679 +5643 +570 +87 +97 query I rowsort label-168 SELECT DISTINCT SUM ( ALL + 34 ) AS col2 FROM tab1 @@ -1175,8 +1189,15 @@ SELECT + + col2 col2, - col1 FROM tab2 AS cor0 # Datafusion - Expected - -15 # Datafusion - Expected - 99 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, - col0 AS col0 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +10 +47 +99 query I rowsort label-188 SELECT - ( + SUM ( DISTINCT + col0 ) ) FROM tab2 AS cor0 @@ -2420,8 +2441,15 @@ SELECT ALL - SUM ( - 72 ) FROM tab2 WHERE col0 < + col2 + + 86 # Datafusion - Expected - 2 # Datafusion - Expected - -3196 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* \(\- tab1\.col1\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * - + col1 AS col0, 2 AS col0 FROM tab1 +---- +-1344 +-295 +-3196 +2 +2 +2 query I rowsort label-399 SELECT + col1 * - col2 / - 61 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 @@ -2539,8 +2567,15 @@ SELECT 43 * - + col2 col1 FROM tab2 # Datafusion - Expected - -4094 # Datafusion - Expected - 58 # Datafusion - Expected - -4809 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "Int64\(66\) \+ Int64\(65\) \* \(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, 66 + + 65 * - col0 col0 FROM tab2 +---- +-2924 +-4094 +-4809 +23 +40 +58 query I rowsort label-419 SELECT 22 * CAST ( 42 AS INTEGER ) AS col2 FROM tab0 @@ -2697,8 +2732,10 @@ SELECT ALL 27 * - col2 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to e735c3d1c0fb6e15136fd16009fcccf2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 1 and "tab1\.col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - col1 * + ( - col2 ) AS col0, col1 col1, + + col1 FROM tab1 +---- +9 values hashing to d1f489c975ed0eb969b27bf14de064ef query II rowsort SELECT col0 AS col0, 55 * - + col1 FROM tab0 AS cor0 @@ -2724,8 +2761,15 @@ SELECT + col1 + + + col1 * - + col1 * + col0 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, + col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-447 SELECT DISTINCT - MIN ( col0 ) FROM tab1 @@ -3128,8 +3172,10 @@ SELECT DISTINCT - 15 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f1de5e4d5eb1a5aafbdc74daee84dd4d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ \(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 66 + - + col0 AS col1, 70 + + - 37 AS col0, - col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL +---- +9 values hashing to 3dc796e3bba0aa7574f5d5c2a590ae78 query I rowsort label-518 SELECT + - CAST ( NULL AS INTEGER ) * + MAX ( DISTINCT - col2 ) - + 0 AS col1 FROM tab1 AS cor0 @@ -3381,8 +3427,15 @@ SELECT ALL col0 + + 63 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, + col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT ALL + col0 * + col1 - col0 + - col1 + + col0 AS col1 FROM tab0 cor0 @@ -4164,8 +4217,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND NULL # Datafusion - Expected - -87 # Datafusion - Expected - -97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\)" at position 0 and "\(\- tab0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + + col0 ), - col0 FROM tab0 +---- +-15 +-15 +-87 +-87 +-97 +-97 query I rowsort label-686 SELECT DISTINCT + MAX ( ALL - col0 ) FROM tab0 @@ -4185,8 +4245,15 @@ SELECT - COUNT ( * ) * - - 23, 36 AS col1 FROM tab1 # Datafusion - Expected - 68 # Datafusion - Expected - 25 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* tab1\.col1 AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * + col1 AS col1, col2 AS col1 FROM tab1 +---- +196 +2209 +25 +59 +68 +96 query I rowsort label-689 SELECT + col0 * CAST ( NULL AS INTEGER ) col1 FROM tab2 @@ -4878,8 +4945,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) AS col2, 79 AS col2 FROM tab0 AS cor0 +---- +-3 +79 query I rowsort SELECT - col1 FROM tab0 AS cor0 WHERE 51 NOT IN ( + col2 ) @@ -4983,8 +5053,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 +---- +9 +9 query I rowsort label-831 SELECT DISTINCT CAST ( NULL AS INTEGER ) / + col0 * - col2 FROM tab1 @@ -5480,8 +5553,11 @@ SELECT * FROM tab1 WHERE NOT + col0 + + 86 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 col2" at position 0 and "\(\- count\(DISTINCT tab1\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 22 AS col2, - COUNT ( DISTINCT col0 ) AS col2 FROM tab1 +---- +-22 +-3 query I rowsort SELECT DISTINCT 98 * - col2 + col1 - - col1 col0 FROM tab2 AS cor0 @@ -5535,8 +5611,15 @@ SELECT DISTINCT + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab2 # Datafusion - Expected - -100878 # Datafusion - Expected - 80 # Datafusion - Expected - -264880 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \+ \(\- \(\- tab2\.col2\)\) AS col1" at position 0 and "Int64\(86\) \* \(\- \(\- tab2\.col2\)\) \* \(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + - - col2 AS col1, 86 * - - col2 * - col1 AS col1 FROM tab2 +---- +-100878 +-264880 +-334196 +116 +46 +80 query III rowsort SELECT * FROM tab2 WHERE + + col2 * 77 IS NOT NULL @@ -6453,8 +6536,10 @@ SELECT ALL 79, COUNT ( * ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f49995e1fcdeaad5f8b8c4560e9f5018 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ cor0\.col0 AS col1" at position 1 and "\(\- Int64\(48\)\) \* Int64\(11\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - col2 AS col0, - col2 + ( + col0 ) AS col1, - + 48 * + 11 AS col1 FROM tab0 AS cor0 +---- +9 values hashing to 02cf9501494e651979016cdbd933879e query I rowsort SELECT col2 + col1 + - ( + col1 ) * + 71 AS col1 FROM tab2 AS cor0 WHERE NOT - ( col0 ) NOT IN ( - 22, + col2, col1, 63 ) @@ -7059,8 +7144,11 @@ SELECT DISTINCT - 63 AS col1, ( + 44 ) / - + MAX ( DISTINCT + + 70 ) * - + COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 72 AS col0, 33 AS col0 FROM tab0 +---- +33 +72 query I rowsort label-1171 SELECT - - COUNT ( * ) / - COUNT ( * ) FROM tab1 AS cor0 @@ -8798,8 +8886,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= + col1 + col0 * + CAST ( NULL AS FL # Datafusion - Expected - 77 # Datafusion - Expected - 75 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, + col1 AS col2 FROM tab2 cor0 +---- +46 +51 +64 +67 +75 +77 query I rowsort label-1465 SELECT ALL + + MAX ( col0 ) * + MIN ( ALL + - col2 ) FROM tab0 AS cor0 @@ -9594,15 +9689,26 @@ SELECT DISTINCT 53 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - 96 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col2 AS col0, col1 AS col0 FROM tab1 AS cor0 +---- +14 +47 +5 +59 +68 +96 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 81 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \+ Int64\(\-10\) \+ Int64\(78\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 and "\(\- count\(DISTINCT \(\- \(\- cor0\.col1\)\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - 42 AS col1, + 10 + - 10 + 78 + + ( ( + COUNT ( * ) ) ) AS col0, + - COUNT ( DISTINCT - - col1 ) AS col0 FROM tab2 AS cor0 +---- +-3 +-42 +81 query I rowsort label-1597 SELECT SUM ( + - ( - col1 ) ) AS col2 FROM tab2 AS cor0 @@ -9697,8 +9803,15 @@ SELECT ALL + col2 + - - 80 AS col1 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col0, col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE ( NOT + col2 IS NULL ) @@ -9912,8 +10025,15 @@ SELECT - COUNT ( * ) - - 68 FROM tab2 AS cor0 # Datafusion - Expected - 66 # Datafusion - Expected - 99 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, 66 AS col0 FROM tab0 AS cor0 +---- +10 +47 +66 +66 +66 +99 query I rowsort label-1645 SELECT DISTINCT COUNT ( - ( - 5 ) ) FROM tab2 @@ -10506,8 +10626,15 @@ SELECT + 90 AS col1, col1 AS col1 FROM tab0 # Datafusion - Expected - -90 # Datafusion - Expected - -77 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col0" at position 0 and "Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, - 90 AS col0 FROM tab2 +---- +-51 +-67 +-77 +-90 +-90 +-90 query III rowsort SELECT * FROM tab2 WHERE NOT NULL IN ( + + col0, - col2, - 37 ) @@ -11341,8 +11468,11 @@ SELECT DISTINCT + + ( - 23 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "min\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, MIN ( ALL - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 +---- +-3 +NULL query I rowsort label-1891 SELECT CAST ( col0 AS INTEGER ) + - 87 - + 74 * 26 AS col2 FROM tab0 AS cor0 WHERE ( - col0 ) IS NULL @@ -11545,8 +11675,11 @@ SELECT MIN ( ALL + col0 ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "max\(\(\- tab1\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, MAX ( - col1 ) AS col2 FROM tab1 +---- +-5 +3 query III rowsort SELECT * FROM tab0 WHERE + + 36 NOT BETWEEN - col0 AND col1 @@ -11582,8 +11715,15 @@ SELECT DISTINCT 94 * + col2 + - - col1 FROM tab0 # Datafusion - Expected - 81 # Datafusion - Expected - 98 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \+ tab0\.col0 \+ tab0\.col1 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 + + ( + col0 ) + + col1 AS col0, col1 AS col0 FROM tab0 +---- +-1 +1 +21 +49 +81 +98 query I rowsort SELECT ALL col1 + + col0 + col1 * - 25 + + - col1 FROM tab0 @@ -11811,8 +11951,11 @@ SELECT DISTINCT - - ( - col0 ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 71 AS col0, CAST ( NULL AS INTEGER ) + + + col0 AS col0 FROM tab0 cor0 +---- +-71 +NULL query I rowsort SELECT ALL - col0 * + col2 + 74 + + - col0 AS col0 FROM tab2 cor0 @@ -12338,8 +12481,15 @@ SELECT DISTINCT + col2 - - + col1 + col1 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 59 # Datafusion - Expected - -25 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(25\)\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 25 AS col1, + 59 AS col1 FROM tab2 AS cor0 +---- +-25 +-25 +-25 +59 +59 +59 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 + 7 IN ( col1, col0, + col1, - + 72 * - 8, - 95 ) @@ -12381,8 +12531,15 @@ SELECT * FROM tab2 WHERE NOT ( NOT col2 * - + col0 * - - 29 IS NULL ) # Datafusion - Expected - NULL # Datafusion - Expected - 8281 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* tab1\.col0 AS col0" at position 0 and "tab1\.col2 \- CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( col0 ) * col0 AS col0, + col2 - CAST ( NULL AS INTEGER ) col0 FROM tab1 +---- +2601 +7225 +8281 +NULL +NULL +NULL query I rowsort SELECT DISTINCT col2 * + ( + + col1 ) * col1 col1 FROM tab2 @@ -12644,8 +12801,15 @@ SELECT + col0 * + + 55 FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - -12 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 12 AS col0, col1 AS col0 FROM tab0 +---- +-12 +-12 +-12 +1 +21 +81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 @@ -12704,8 +12868,15 @@ SELECT ALL - 66, - 57 - - 56 + + 84 - col1 AS col2 FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - -96 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "tab1\.col2 \+ \(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, col2 + - col1 AS col1 FROM tab1 +---- +-59 +-68 +-96 +21 +54 +82 query III rowsort label-2110 SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + - col0 * - - col1 BETWEEN + - col2 AND NULL @@ -13836,8 +14007,15 @@ SELECT DISTINCT + 88 + + + CAST ( 59 AS INTEGER ) - + col0 col2 FROM tab2 # Datafusion - Expected - -23 # Datafusion - Expected - 91 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \+ Int64\(24\) AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + + + 24 AS col1, - col2 AS col1 FROM tab2 +---- +-23 +-40 +-58 +101 +75 +91 query III rowsort SELECT ALL * FROM tab2 WHERE ( NOT - col2 IS NULL ) @@ -14333,8 +14511,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 >= NULL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 AS col1, col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-2383 SELECT + COUNT ( ALL col2 ) FROM tab2 AS cor0 @@ -14362,8 +14547,13 @@ SELECT * FROM tab2 WHERE NOT - 18 NOT BETWEEN col0 AND + - ( col0 ) # Datafusion - Expected - 42 # Datafusion - Expected - 2 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 / tab2\.col2 AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 / + col2 AS col1, + 42 col1 FROM tab2 +---- +1 +2 +42 +42 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT + 74 IS NULL @@ -14856,8 +15046,15 @@ SELECT ALL + 40 + + - col1 * - - ( - col0 ) AS col2 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 65 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ \(\- tab2\.col2\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 88 + - col2 col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 +---- +30 +48 +65 +NULL +NULL +NULL query I rowsort SELECT DISTINCT 67 + 20 FROM tab2 @@ -14897,8 +15094,15 @@ SELECT ALL + 19 * col0 * + + 47 FROM tab2 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 1 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / Int64\(54\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 / + + 54 AS col0, col2 AS col0 FROM tab2 AS cor0 +---- +0 +0 +1 +23 +40 +58 query II rowsort label-2472 SELECT ALL - COUNT ( * ) AS col0, + 68 FROM tab1 @@ -15368,8 +15572,12 @@ NULL # Datafusion - Expected - 61 # Datafusion - Expected - 58 # Datafusion - Expected - 1232 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 61 AS col2, + 58 AS col2, + - 88 * - + MIN ( ALL + 14 ) AS col1 FROM tab2 +---- +1232 +58 +61 query II rowsort label-2547 SELECT ALL + SUM ( - - 68 ) AS col1, - SUM ( ALL - 14 ) FROM tab2 WHERE NOT - col0 * - col2 + - - col2 IS NULL @@ -15399,8 +15607,15 @@ SELECT DISTINCT + + ( + 44 ) FROM tab2 AS cor0 # Datafusion - Expected - 39 # Datafusion - Expected - 5 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col1 AS col2, + 39 AS col2 FROM tab1 AS cor0 +---- +14 +39 +39 +39 +47 +5 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * col1 IS NULL @@ -15433,8 +15648,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - COUNT ( * ) AS col2, 91 AS col2 FROM tab0 cor0 +---- +3 +91 query II rowsort SELECT DISTINCT col0 AS col1, + 0 FROM tab0 AS cor0 @@ -16782,8 +17000,15 @@ SELECT ALL - + MAX ( DISTINCT 46 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - -99 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(99\)\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 99 col0, col1 AS col0 FROM tab0 AS cor0 +---- +-99 +-99 +-99 +1 +21 +81 query I rowsort SELECT ALL col2 AS col0 FROM tab2 AS cor0 WHERE - col0 * + - col0 >= 1 @@ -17148,8 +17373,11 @@ SELECT ALL + 46 FROM tab2, tab1 cor0 # 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\(\-59\) \* count\(tab1\.col2\) AS col2" at position 0 and "Int64\(\-10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 59 * + COUNT ( + col2 ) AS col2, - 10 AS col2 FROM tab1 WHERE + + CAST ( + col1 AS INTEGER ) > col0 * + col1 +---- +-10 +0 query I rowsort SELECT - col1 + + - col2 * + - col1 AS col2 FROM tab1 @@ -17820,8 +18048,15 @@ SELECT + + col1, - col0 - - col1 * - col0 * col1 + + - 55 FROM tab1 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - -58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +23 +40 +58 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE + 44 + col0 IS NOT NULL @@ -18039,8 +18274,9 @@ SELECT DISTINCT - + 21 * + 75 - + col2 * col1 AS col1 FROM tab1 AS cor0 WHERE ( ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col2 / cor0\.col2 \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0 AS col2, ( + col2 ) / col2 * col1 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 + 91 IS NOT NULL +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -18267,8 +18503,15 @@ SELECT DISTINCT 49, + col1 AS col2 FROM tab0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, + col0 AS col2 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT 16 * - 59 FROM tab1 @@ -18566,8 +18809,11 @@ SELECT 79 * + 58 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 7 ) AS col2, + COUNT ( * ) AS col2 FROM tab1 +---- +3 +7 query I rowsort label-3064 SELECT ALL + COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL @@ -19324,8 +19570,11 @@ SELECT DISTINCT + 95 * + 66 * + + ( - + col0 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4320 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-45\)\)\) \* Int64\(\-96\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - - 45 ) * - 96 AS col1, - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +-9 +4320 query III rowsort SELECT * FROM tab2 AS cor0 WHERE - ( + + col0 ) * - col0 NOT IN ( - col0 ) @@ -19375,8 +19624,15 @@ SELECT 38 + CAST ( + AVG ( DISTINCT + col2 ) AS INTEGER ) * - SUM ( ALL + col0 ) # Datafusion - Expected - 91 # Datafusion - Expected - 26 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \+ \(\- cor0\.col0\) / cor0\.col2 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 26 + - col0 / + col2 AS col1, col0 AS col1 FROM tab1 AS cor0 +---- +25 +25 +26 +51 +85 +91 query I rowsort SELECT ALL + + col2 * col1 FROM tab0 WHERE - col1 IS NOT NULL @@ -19555,8 +19811,15 @@ SELECT DISTINCT col2, 13 col1 FROM tab1 AS cor0 # Datafusion - Expected - -21 # Datafusion - Expected - 56 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \+ cor0\.col0 AS col2" at position 0 and "\(\- Int64\(2\)\) \* cor0\.col1 \+ cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 41 + + ( + col0 ) col2, - ( + + 2 ) * col1 + + col1 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-26 +-81 +46 +56 query I rowsort SELECT ALL col1 + - col0 + col1 AS col1 FROM tab0 @@ -19780,8 +20043,15 @@ SELECT ALL + SUM ( DISTINCT - 29 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - -58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "\(\- cor0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2, - col2 FROM tab2 AS cor0 +---- +-23 +-23 +-40 +-40 +-58 +-58 query I rowsort label-3264 SELECT - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) - 98 * - SUM ( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE NULL > - col1 @@ -19830,8 +20100,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT col0 * + col2 < NULL # Datafusion - Expected - 97 # Datafusion - Expected - -320 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* \(\- tab0\.col2\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 * - col2 AS col1, col0 AS col1 FROM tab0 +---- +-1504 +-3168 +-320 +15 +87 +97 query I rowsort label-3272 SELECT DISTINCT - SUM ( DISTINCT + 70 ) AS col0 FROM tab2 @@ -21111,8 +21388,10 @@ SELECT - col2 AS col0, 88 + - col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to dd17867fe5614e459c32d14ff67a3d3c -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ Int64\(\-33\) \* Int64\(30\) AS col2" at position 1 and "cor0\.col2 \+ cor0\.col2 \+ \(\- cor0\.col2\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col2 AS col1, 53 + - 33 * + 30 AS col2, + col2 + col2 + - col2 AS col2 FROM tab2 cor0 +---- +9 values hashing to 206f78b2b3fb71f16cd4a77e307401cb query I rowsort SELECT ALL col1 * - col0 / - + col0 * - + 58 FROM tab2 cor0 WHERE NULL IS NOT NULL @@ -21166,8 +21445,11 @@ SELECT DISTINCT - 10 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN - 56 * - col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 50 AS col0, COUNT ( * ) AS col0 FROM tab2 +---- +-50 +3 query II rowsort SELECT - col2 AS col2, - 88 AS col0 FROM tab0 @@ -21285,8 +21567,15 @@ SELECT * FROM tab2 WHERE NOT - 28 IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col1, col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT DISTINCT ( 94 ) FROM tab1 @@ -22367,8 +22656,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 69 col2, - COUNT ( * ) AS col2, - 27 AS col2 FROM tab1 +---- +-27 +-3 +-69 query III rowsort SELECT ALL * FROM tab0 WHERE ( NOT 46 * - + col0 + + - 95 IS NOT NULL ) @@ -22377,8 +22670,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + COUNT ( * ) col2, 64 AS col2 FROM tab0 AS cor0 +---- +-3 +64 query I rowsort SELECT 43 + + col1 + - + col1 FROM tab2 AS cor0 @@ -22427,8 +22723,11 @@ SELECT + - col2 - - - col0 + + + 60 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - -84249 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- cor0\.col1\)\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(33\) \* Int64\(\-69\) \* Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - SUM ( ALL - col1 ) / COUNT ( * ) AS col0, + 33 * - 69 * 37 AS col0 FROM tab0 AS cor0 +---- +-84249 +34 query I rowsort label-3698 SELECT ALL + + MIN ( + col0 ) FROM tab0 AS cor0 @@ -23444,8 +23743,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) + + + 41 AS col0, ( + - 33 ) col0 FROM tab1 AS cor0 +---- +-33 +38 query I rowsort SELECT DISTINCT - col1 * + 41 + col0 AS col2 FROM tab1 AS cor0 @@ -23619,8 +23921,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, + col2 AS col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query II rowsort SELECT ALL 57, + col2 AS col1 FROM tab2 @@ -24169,8 +24478,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE 4 / + - col0 IS NOT NULL # Datafusion - Expected - 29095 # Datafusion - Expected - -26 # Datafusion - Expected - 88000 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) AS col1" at position 0 and "cor0\.col2 \* \(\- Int64\(\-55\)\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 26 col1, + col2 * - - 55 * + ( + col2 ) col1 FROM tab2 AS cor0 +---- +-26 +-26 +-26 +185020 +29095 +88000 query I rowsort SELECT 76 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) @@ -26294,8 +26610,15 @@ SELECT DISTINCT - ( - + 17 ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 34 # Datafusion - Expected - 67 # Datafusion - Expected - 714 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col1" at position 0 and "cor0\.col1 \* Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 67 col1, col1 * 34 AS col1 FROM tab0 cor0 +---- +2754 +34 +67 +67 +67 +714 query I rowsort SELECT DISTINCT col2 * + col2 * + ( col1 ) FROM tab0 @@ -26441,8 +26764,15 @@ SELECT DISTINCT - + col0 + - 44 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -17 # Datafusion - Expected - 65 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- Int64\(\-13\)\) AS col1" at position 0 and "Int64\(30\) \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 * - ( - 13 ) AS col1, + 30 + - col1 AS col1 FROM tab1 AS cor0 +---- +-17 +16 +182 +25 +611 +65 query I rowsort label-4349 SELECT DISTINCT col1 * - col0 + - col1 + - CAST ( NULL AS INTEGER ) + + col2 * + - col0 - col1 * - col0 col1 FROM tab2 @@ -27751,8 +28081,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND + 76 # Datafusion - Expected - -58 # Datafusion - Expected - -41791 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* \(\- \(\- tab2\.col2\)\) \* \(\- CAST\(tab2\.col2 AS Int32\)\) AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 79 * - - col2 * - CAST ( col2 AS INTEGER ) AS col0, - col2 AS col0 FROM tab2 +---- +-126400 +-23 +-265756 +-40 +-41791 +-58 query I rowsort label-4565 SELECT COUNT ( ALL 91 ) AS col2 FROM tab0 @@ -28520,8 +28857,15 @@ SELECT DISTINCT + MIN ( ALL + 24 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 79 # Datafusion - Expected - -887 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(56\) \+ \(\- cor0\.col2\) AS col2" at position 0 and "Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * 56 + - ( + col2 ) AS col2, 79 AS col2 FROM tab0 AS cor0 +---- +-4882 +-5531 +-887 +79 +79 +79 query I rowsort SELECT col2 * - 94 FROM tab0 @@ -29156,8 +29500,15 @@ SELECT * FROM tab1 AS cor0 WHERE NULL <> + col2 # Datafusion - Expected - 106 # Datafusion - Expected - 48 # Datafusion - Expected - 106 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col0" at position 0 and "Int64\(32\) \+ Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 AS col0, + 32 + + 74 AS col0 FROM tab2 cor0 +---- +106 +106 +106 +48 +48 +48 query I rowsort SELECT ALL + col1 + - + 12 FROM tab2 @@ -29203,8 +29554,15 @@ SELECT - + ( 4 ) * col1 * - 68 - + col0 * + + col1 * - col1 * + ( - col0 ) + - 2 # Datafusion - Expected - NULL # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "\(\- tab0\.col0\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 +---- +10 +47 +99 +NULL +NULL +NULL query III rowsort label-4809 SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + CAST ( - + ( + col0 ) AS FLOAT8 ) ) * - col0 / col2 + + col1 * + - 1 NOT IN ( - - ( ( + col0 ) ), + col0, - col0 + + - col0, - col0, - 75 ) @@ -29468,8 +29826,9 @@ SELECT + SUM ( + col2 ) AS col0 FROM tab1 AS cor0 223 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 \+ \(\- cor0\.col2\) \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, ( col0 ) + - col2 * + col1 AS col2 FROM tab0 AS cor0 WHERE NOT col2 > NULL +---- query II rowsort label-4850 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col0, 67 col1 FROM tab2 AS cor0 @@ -29514,8 +29873,9 @@ SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL <> col2 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col1" at position 0 and "Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 97 AS col1, 68 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL +---- query I rowsort label-4858 SELECT DISTINCT ( - - col1 ) + + - col1 / - + 43 col0 FROM tab0 AS cor0 @@ -30119,8 +30479,15 @@ SELECT 71 * - col1 FROM tab1 AS cor0 WHERE NULL = NULL # Datafusion - Expected - 87 # Datafusion - Expected - 27 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "\(\- \(\- cor0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 27 AS col0, ( - - ( + col0 ) ) AS col0 FROM tab0 AS cor0 +---- +15 +27 +27 +27 +87 +97 query II rowsort SELECT + ( + 14 ) * + col0 + + col0, - col1 AS col1 FROM tab1 AS cor0 @@ -31036,8 +31403,15 @@ SELECT ALL + - col1 * - col0 + - col1 * + col2 / - - col2 FROM tab1 AS cor0 # Datafusion - Expected - -4500 # Datafusion - Expected - 77 # Datafusion - Expected - -3840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(60\) \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, 60 * - col0 col0 FROM tab2 AS cor0 +---- +-2760 +-3840 +-4500 +51 +67 +77 query I rowsort label-5113 SELECT DISTINCT CAST ( + 13 AS INTEGER ) AS col1 FROM tab2 AS cor0 @@ -31572,8 +31946,15 @@ SELECT DISTINCT + col1 * + 14 * 64 FROM tab0 AS cor0 WHERE + 58 = ( NULL ) # Datafusion - Expected - 6465 # Datafusion - Expected - 480345 # Datafusion - Expected - 6963 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col0 \* \(\- Int64\(58\)\) \+ \(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "cor0\.col0 \* Int64\(76\) \- \(\- CAST\(cor0\.col1 AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 * col0 * + - ( + 58 ) + - - col1 AS col1, col0 * + 76 - + - CAST ( + col1 AS INTEGER ) col1 FROM tab1 cor0 +---- +150872 +3890 +419055 +480345 +6465 +6963 query I rowsort label-5202 SELECT DISTINCT + ( - col2 ) + col1 / - col1 FROM tab2 AS cor0 @@ -31727,8 +32108,15 @@ SELECT ALL COUNT ( * ) * 24 AS col2 FROM tab1 WHERE NOT NULL IS NULL # Datafusion - Expected - -85 # Datafusion - Expected - -91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col2" at position 0 and "\(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, - col0 AS col2 FROM tab1 +---- +-51 +-51 +-85 +-85 +-91 +-91 query III rowsort SELECT ALL * FROM tab1 WHERE col1 + + ( col0 ) * - col0 IS NOT NULL @@ -32961,8 +33349,15 @@ SELECT col0 * 38 / + col2 + - col2 * + 1 AS col0, 38 FROM tab0 # Datafusion - Expected - 258 # Datafusion - Expected - 182 # Datafusion - Expected - 3159 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ tab1\.col0 AS col0" at position 0 and "tab1\.col1 \* tab1\.col2 \- Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 + + col0 AS col0, col1 * col2 - + 37 AS col0 FROM tab1 +---- +102 +1307 +170 +182 +258 +3159 query I rowsort SELECT ( col0 ) + - 77 + - + col2 FROM tab0 @@ -33246,8 +33641,15 @@ SELECT ALL - col0 AS col0, 58 FROM tab1 # Datafusion - Expected - 7569 # Datafusion - Expected - 97 # Datafusion - Expected - 8439 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(\-87\) \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, - 87 * - col0 AS col2 FROM tab0 cor0 +---- +1305 +15 +7569 +8439 +87 +97 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT + 54 < + col2 @@ -33786,8 +34188,15 @@ SELECT ALL * FROM tab1 WHERE NOT + + col2 + - col2 - - col2 + + 34 * col0 * + co # Datafusion - Expected - -99 # Datafusion - Expected - 90 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "Int64\(\-99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 AS col2, - 99 AS col2 FROM tab1 +---- +-99 +-99 +-99 +90 +90 +90 query I rowsort label-5568 SELECT ALL COUNT ( * ) * + MIN ( - col2 ) AS col2 FROM tab1 @@ -34425,8 +34834,15 @@ SELECT DISTINCT col1, col1 - - 61 * + col1 FROM tab1 # Datafusion - Expected - 89 # Datafusion - Expected - -97 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col1" at position 0 and "Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col1, 89 AS col1 FROM tab0 +---- +-15 +-87 +-97 +89 +89 +89 query I rowsort SELECT ALL + 13 AS col0 FROM tab1 @@ -35325,8 +35741,15 @@ SELECT ALL - + ( + COUNT ( * ) ) FROM tab1 cor0 WHERE NOT ( NOT NULL >= NULL ) # Datafusion - Expected - -1 # 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 "Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 27 AS col1, - 1 AS col1 FROM tab0 AS cor0 +---- +-1 +-1 +-1 +27 +27 +27 query I rowsort label-5819 SELECT ALL - CAST ( NULL AS INTEGER ) / col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL @@ -35339,8 +35762,15 @@ SELECT ALL - CAST ( NULL AS INTEGER ) / col0 FROM tab0 AS cor0 WHERE NOT NULL IS # Datafusion - Expected - -39 # Datafusion - Expected - -660 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- Int64\(66\)\) AS col2" at position 0 and "Int64\(58\) \+ \(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * - + 66 col2, + 58 + - col0 AS col2 FROM tab0 +---- +-29 +-3102 +-39 +-6534 +-660 +43 query III rowsort label-5821 SELECT DISTINCT * FROM tab1 WHERE NOT + col1 - - CAST ( NULL AS INTEGER ) + + + col0 < NULL @@ -37141,8 +37571,11 @@ SELECT - CAST ( NULL AS FLOAT8 ) col2 FROM tab2 cor0 WHERE ( ( ( + + 54 ) + + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + + 38 ) AS col1, COUNT ( * ) AS col1 FROM tab0 +---- +3 +38 query I rowsort label-6122 SELECT + col1 + - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 @@ -37313,8 +37746,11 @@ SELECT DISTINCT + col2 col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, + 9 col0 FROM tab1 cor0 +---- +3 +9 query I rowsort label-6149 SELECT DISTINCT - MAX ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab1 AS cor0 @@ -37419,8 +37855,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), + COUNT ( * ) FROM tab0 cor0 +---- +3 +3 query I rowsort SELECT 38 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 @@ -37500,8 +37939,9 @@ SELECT ALL - CAST ( - + col1 AS INTEGER ) AS col0 FROM tab0 81 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 73 AS col0, + col1 AS col0 FROM tab1 WHERE + ( 8 ) / + - col1 - - 29 >= + 51 +---- query I rowsort SELECT DISTINCT + col2 * + col1 * - 23 FROM tab0 @@ -38697,8 +39137,15 @@ SELECT - 88 AS col1, - col0 * + - 31 * + - 2 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN + col2 + - col0 AND + col0 @@ -38795,8 +39242,15 @@ SELECT 10, - col2 AS col1 FROM tab2 # Datafusion - Expected - 2697 # Datafusion - Expected - 97 # Datafusion - Expected - 9700 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col1 \* tab0\.col0 \+ tab0\.col0 \* tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, col1 * + col0 + + ( + col0 ) * col2 AS col2 FROM tab0 +---- +15 +1920 +2697 +87 +97 +9700 query II rowsort label-6385 SELECT 16 AS col2, - col1 / - col1 AS col0 FROM tab1 @@ -39982,8 +40436,11 @@ SELECT DISTINCT 77 - + COUNT ( * ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9801 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \* \(\- max\(cor0\.col2\)\) AS col2" at position 0 and "Int64\(\-92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 99 * - + MAX ( col2 ) AS col2, - 92 AS col2 FROM tab0 AS cor0 +---- +-92 +9801 query II rowsort SELECT DISTINCT - - 73 * + col2 col0, - 5 AS col2 FROM tab0 AS cor0 @@ -41041,8 +41498,15 @@ SELECT COUNT ( - + col1 ) FROM tab0 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col0, col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT col2 / + col0 < - col0 @@ -41653,8 +42117,11 @@ 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\(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\. +query II valuesort SELECT ALL - - COUNT ( * ) AS col2, ( + 73 ) AS col2 FROM tab0 WHERE NOT col2 IS NULL +---- +3 +73 query I rowsort label-6853 SELECT DISTINCT + COUNT ( * ) * - - ( + 85 ) AS col1 FROM tab1 @@ -42598,8 +43065,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( + 43 ) # Datafusion - Expected - 40 # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(68\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) * 68 col1, col2 AS col1 FROM tab2 AS cor0 +---- +23 +40 +58 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = + col0 @@ -42752,8 +43226,15 @@ NULL # Datafusion - Expected - -40 # Datafusion - Expected - NULL # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col1, - col2 AS col1 FROM tab2 +---- +-23 +-40 +-58 +NULL +NULL +NULL query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + - 40 IS NOT NULL @@ -42827,8 +43308,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 IN ( + ( CAST ( NULL AS INTEGER # Datafusion - Expected - 2209 # Datafusion - Expected - -9 # Datafusion - Expected - 9801 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col2" at position 0 and "cor0\.col2 \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 9 AS col2, col2 * + col2 AS col2 FROM tab0 AS cor0 +---- +-9 +-9 +-9 +100 +2209 +9801 query I rowsort SELECT + 22 FROM tab2 WHERE NOT ( NULL IS NULL ) @@ -44692,8 +45180,15 @@ NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "CAST\(tab0\.col0 AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, + CAST ( + col0 AS INTEGER ) FROM tab0 +---- +15 +15 +87 +87 +97 +97 query II rowsort label-7346 SELECT + col0 + - col0 * + ( - CAST ( NULL AS INTEGER ) ) col1, 92 AS col0 FROM tab1 @@ -44832,8 +45327,15 @@ SELECT - - col0 FROM tab0 WHERE NOT ( NOT col2 IS NOT NULL ) # Datafusion - Expected - 69 # Datafusion - Expected - 62 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "Int64\(68\) \+ tab0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 AS col1, + 68 + + + col1 AS col1 FROM tab0 +---- +149 +62 +62 +62 +69 +89 query I rowsort SELECT ALL col2 * + - ( col1 ) FROM tab0 @@ -45414,8 +45916,15 @@ SELECT - col0, - col2 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 19 # Datafusion - Expected - 96 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, + 19 col1 FROM tab1 AS cor0 +---- +19 +19 +19 +59 +68 +96 query I rowsort SELECT ALL - col2 + + + col0 + + + col1 AS col0 FROM tab1 AS cor0 @@ -45690,8 +46199,15 @@ SELECT + col1 + + 64 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 54 # Datafusion - Expected - 5 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, 54 AS col2 FROM tab1 +---- +14 +47 +5 +54 +54 +54 query IIIIII rowsort SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL IS NOT NULL OR ( NULL ) IS NULL @@ -45819,8 +46335,9 @@ SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 + - col1 ) <> - 89 9 values hashing to 75c998aa53ac83218cbf2feb962d0a49 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "\(\- cor0\.col2\) \+ cor0\.col2 \+ \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, - col2 + col2 + - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL +---- query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT ( - + 11 ) IS NULL @@ -45863,8 +46380,11 @@ SELECT ( - - col1 ) / - 28 col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) + + COUNT ( * ) AS col1, 60 col1 FROM tab1 AS cor0 +---- +6 +60 query I rowsort label-7543 SELECT ALL 87 + + CAST ( + SUM ( ALL + col0 ) AS INTEGER ) FROM tab1 @@ -46579,8 +47099,15 @@ SELECT ALL col2 AS col1, 49 * col2 + + + col0 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 92 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col0" at position 0 and "Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 92 AS col0, 87 AS col0 FROM tab2 +---- +87 +87 +87 +92 +92 +92 query II rowsort label-7661 SELECT + 54 AS col1, + col2 / col0 FROM tab2 @@ -46613,8 +47140,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT + 66 NOT BETWEEN - col1 AND NULL # Datafusion - Expected - 1550 # Datafusion - Expected - -77 # Datafusion - Expected - 1808 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(24\) \* cor0\.col1 \+ \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, 24 * col1 + + - col2 AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +1201 +1550 +1808 query I rowsort label-7665 SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1 @@ -48375,8 +48909,15 @@ SELECT ALL - col1 * 71 + + + 71 col2 FROM tab2 AS cor0 # Datafusion - Expected - 199 # Datafusion - Expected - 15 # Datafusion - Expected - 209 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col1" at position 0 and "Int64\(83\) \+ Int64\(29\) \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 15 col1, + 83 + + + 29 + + col0 AS col1 FROM tab0 AS cor0 +---- +127 +15 +15 +15 +199 +209 query II rowsort label-7956 SELECT DISTINCT + col2 / col0 AS col2, + CAST ( NULL AS INTEGER ) FROM tab2 @@ -48561,8 +49102,15 @@ SELECT DISTINCT - 60, - col2 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 89 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 89 AS col2, + col1 AS col2 FROM tab1 AS cor0 +---- +14 +47 +5 +89 +89 +89 query I rowsort SELECT - 25 * + col0 AS col0 FROM tab0 AS cor0 @@ -49236,8 +49784,11 @@ SELECT DISTINCT MIN ( - col0 ) + + + COUNT ( DISTINCT + 87 ) - 98 AS col2 FROM t # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 35 AS col0, + COUNT ( * ) AS col0 FROM tab0, tab1 AS cor0 +---- +-35 +9 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 ) @@ -49425,8 +49976,15 @@ SELECT DISTINCT col2 / 96 + 9 AS col2 FROM tab0 # Datafusion - Expected - 75 # Datafusion - Expected - -77 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, 75 AS col0 FROM tab2 +---- +-51 +-67 +-77 +75 +75 +75 query III rowsort SELECT * FROM tab0 WHERE + + col2 + col2 + 21 * + 31 * 18 * + + col2 IS NULL @@ -49536,8 +50094,15 @@ SELECT DISTINCT - ( 73 ) AS col0 FROM tab1 # Datafusion - Expected - 14 # Datafusion - Expected - 81 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col0, 14 AS col0 FROM tab0 +---- +1 +14 +14 +14 +21 +81 query II rowsort label-8146 SELECT + COUNT ( * ) col0, + MAX ( DISTINCT 74 ) col2 FROM tab1 @@ -49566,8 +50131,15 @@ SELECT + 40 + MIN ( - col1 ) AS col0 FROM tab0 # Datafusion - Expected - 48 # Datafusion - Expected - 75 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + col0 ) AS col2, 48 AS col2 FROM tab2 +---- +46 +48 +48 +48 +64 +75 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE - col2 - + 24 * + col0 * + - col2 + 95 <= col0 @@ -51656,8 +52228,15 @@ SELECT DISTINCT col1 * - + 74 AS col1 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / Int64\(41\) AS col1" at position 0 and "CAST\(NULL AS Float64\) \* \(\- \(\- cor0\.col1\)\) \* \(\- cor0\.col2\) / cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT col0 / ( + 41 ) col1, CAST ( NULL AS FLOAT8 ) * - - col1 * + - col2 / + col0 AS col1 FROM tab1 AS cor0 +---- +1 +2 +2 +NULL +NULL +NULL query I rowsort SELECT DISTINCT col0 * col2 * - - 61 * + col1 FROM tab1 AS cor0 @@ -52055,8 +52634,15 @@ SELECT * FROM tab2 AS cor0 WHERE col2 * - col2 < - 30 + ( + 22 ) # Datafusion - Expected - -79 # Datafusion - Expected - 7238 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* tab2\.col1 AS col1" at position 0 and "Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 * col1 AS col1, - 79 AS col1 FROM tab2 +---- +-79 +-79 +-79 +4794 +6298 +7238 query I rowsort label-8565 SELECT ALL + 28 / - + col0 AS col0 FROM tab1 @@ -52440,8 +53026,11 @@ SELECT + col0 / + 96 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- \(\- \(\- CAST\(\(\- tab2\.col1\) AS Int32\)\)\)\)\) AS col1" at position 0 and "Int64\(56\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( - - ( + ( - CAST ( - col1 AS INTEGER ) ) ) ) AS col1, 56 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 +---- +51 +NULL query I rowsort label-8624 SELECT COUNT ( * ) * COUNT ( DISTINCT - + col0 ) FROM tab1 @@ -52581,8 +53170,15 @@ SELECT + col2 * + col1 * col0 - + col2 FROM tab1 # Datafusion - Expected - 144 # Datafusion - Expected - 82 # Datafusion - Expected - 147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \+ tab1\.col2 AS col0" at position 0 and "tab1\.col2 \+ tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( ( - col1 ) ) + + + col2 AS col0, + col2 + + + col0 AS col0 FROM tab1 +---- +144 +147 +159 +21 +54 +82 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT 72 * - - col1 <= - col2 AND NOT ( NULL ) IS NULL @@ -52600,8 +53196,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT ( NULL ) IS NOT NULL ) # Datafusion - Expected - -21 # Datafusion - Expected - -1020 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* Int64\(\-12\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 85 * + - 12 AS col2, - col1 AS col2 FROM tab0 AS cor0 +---- +-1 +-1020 +-1020 +-1020 +-21 +-81 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - ( col0 ) NOT BETWEEN NULL AND ( col2 ) ) @@ -52688,8 +53291,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ), + COUNT ( * ) FROM tab2 +---- +3 +3 query I rowsort SELECT DISTINCT 56 + + - col1 * + col1 * + + col0 FROM tab2 AS cor0 @@ -52860,8 +53466,15 @@ SELECT DISTINCT * FROM tab1 WHERE - ( - col0 ) IS NOT NULL # Datafusion - Expected - 64 # Datafusion - Expected - 87 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 AS col2, + col0 col2 FROM tab2 +---- +46 +64 +75 +87 +87 +87 query I rowsort SELECT 14 - - ( - col1 ) AS col2 FROM tab2 @@ -54451,8 +55064,15 @@ SELECT DISTINCT + 22 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col1 col0, + col1 AS col0 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT ALL col2 * 27 + col2 FROM tab2 AS cor0 @@ -54518,8 +55138,15 @@ NULL # Datafusion - Expected - 77 # Datafusion - Expected - 3940 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \+ tab2\.col2 \+ tab2\.col2 \* tab2\.col1 AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 4 + col2 + + col2 * col1 col2, col1 AS col2 FROM tab2 +---- +1192 +3116 +3940 +51 +67 +77 query I rowsort label-8968 SELECT DISTINCT 4 - COUNT ( * ) * 95 FROM tab0 @@ -54615,8 +55242,15 @@ SELECT DISTINCT - 63 * 25 FROM tab1 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - 43 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 43 col2, - col2 col2 FROM tab1 cor0 +---- +-59 +-68 +-96 +43 +43 +43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 @@ -54625,8 +55259,15 @@ SELECT + 43 col2, - col2 col2 FROM tab1 cor0 # Datafusion - Expected - 91 # Datafusion - Expected - 5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col1 AS col2, col0 AS col2 FROM tab1 AS cor0 +---- +14 +47 +5 +51 +85 +91 query I rowsort label-8983 SELECT DISTINCT - SUM ( DISTINCT - 88 ) AS col0 FROM tab0 AS cor0 @@ -55114,8 +55755,11 @@ SELECT col2 / - + col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(cor0\.col2\) AS col2" at position 0 and "Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( + col2 ) AS col2, - 41 AS col2 FROM tab0 AS cor0 +---- +-41 +99 query I rowsort SELECT DISTINCT - col0 + 13 * col2 FROM tab0 cor0 @@ -55259,8 +55903,15 @@ SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <> NULL # Datafusion - Expected - 97 # Datafusion - Expected - 1 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) / tab0\.col0 AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 20 / col0 AS col2, col0 col2 FROM tab0 +---- +0 +0 +1 +15 +87 +97 query I rowsort SELECT + col2 FROM tab0 WHERE NOT - col1 IS NOT NULL @@ -55854,8 +56505,15 @@ SELECT - ( col0 ) + col0 * + - 5 FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col2, + col0 AS col2 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 @@ -55864,8 +56522,15 @@ SELECT DISTINCT + col0 AS col2, + col0 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - -77 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col1 AS col1, + 87 AS col1 FROM tab2 cor0 +---- +-51 +-67 +-77 +87 +87 +87 query I rowsort SELECT DISTINCT 57 * 88 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 @@ -56444,8 +57109,15 @@ SELECT * FROM tab0 AS cor0 WHERE ( NOT + + 38 * + 6 + - col1 IS NOT NULL ) # Datafusion - Expected - 54 # Datafusion - Expected - 2 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) \+ Int64\(3\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + + 3 AS col1, + 54 col1 FROM tab0 +---- +-18 +-78 +2 +54 +54 +54 query I rowsort label-9272 SELECT - + SUM ( - - col2 ) AS col1 FROM tab2 AS cor0 WHERE NULL IN ( 88, 72, - col0, + col0 * 74 ) @@ -57001,8 +57673,15 @@ SELECT * FROM tab0 WHERE NOT - + col2 * + col1 <> + col0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, + col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query II rowsort label-9373 SELECT ALL MIN ( - + 86 ) AS col2, + SUM ( ALL 35 ) FROM tab0 @@ -57297,8 +57976,15 @@ SELECT + 31 col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 # Datafusion - Expected - 1 # Datafusion - Expected - -5 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) 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 II valuesort SELECT DISTINCT + - col1 AS col1, col0 / col2 AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +0 +1 +1 query I rowsort label-9421 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * ( + col2 ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 @@ -58024,8 +58710,11 @@ SELECT - 27 AS col1 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) / - COUNT ( * ) + - COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-2 +3 query I rowsort label-9538 SELECT DISTINCT - 43 / + col2 FROM tab2 AS cor0 @@ -58743,8 +59432,11 @@ SELECT * FROM tab0 AS cor0 WHERE - col1 * - - col0 NOT IN ( ( - + col2 ) - + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(DISTINCT \(\- cor0\.col0\)\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - ( + + AVG ( DISTINCT - ( + col0 ) ) ) + - CAST ( NULL AS INTEGER ) col1, + COUNT ( * ) col1 FROM tab2 AS cor0 +---- +3 +NULL query I rowsort label-9653 SELECT DISTINCT + SUM ( - - col2 ) FROM tab0 @@ -59687,8 +60379,11 @@ SELECT DISTINCT SUM ( + col0 ) + + 53 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 86 AS col0, COUNT ( * ) col0 FROM tab0 cor0 +---- +-86 +3 query I rowsort SELECT - + 48 - - col1 * + 48 * + col0 FROM tab2 AS cor0 @@ -59842,8 +60537,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 1 col2, COUNT ( * ) * + + 4 AS col2 FROM tab2 AS cor0 +---- +1 +12 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 + - col0 ) IN ( + col1, - col2 ) diff --git a/data/sqlite/random/aggregates/slt_good_54.slt b/data/sqlite/random/aggregates/slt_good_54.slt index 77173b9..f5c65f1 100644 --- a/data/sqlite/random/aggregates/slt_good_54.slt +++ b/data/sqlite/random/aggregates/slt_good_54.slt @@ -640,8 +640,15 @@ SELECT + 3 * - COUNT ( * ) col1 FROM tab2 # Datafusion - Expected - -40 # Datafusion - Expected - -58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col2" at position 0 and "\(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, - col2 col2 FROM tab2 +---- +-23 +-23 +-40 +-40 +-58 +-58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 @@ -650,8 +657,15 @@ SELECT - col2 AS col2, - col2 col2 FROM tab2 # Datafusion - Expected - 91 # Datafusion - Expected - 5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, col0 AS col2 FROM tab1 +---- +14 +47 +5 +51 +85 +91 query I rowsort SELECT DISTINCT col0 + col2 + + + col2 - - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL @@ -976,8 +990,15 @@ SELECT DISTINCT + col2 * - - col1 FROM tab0 # Datafusion - Expected - -47 # Datafusion - Expected - 29 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col2" at position 0 and "\(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + + 29 ) AS col2, - col2 AS col2 FROM tab0 +---- +-10 +-47 +-99 +29 +29 +29 query I rowsort label-162 SELECT DISTINCT - 71 / - col0 AS col2 FROM tab2 AS cor0 @@ -2319,8 +2340,15 @@ NULL # Datafusion - Expected - 68 # Datafusion - Expected - -5 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, col2 AS col0 FROM tab1 +---- +-14 +-47 +-5 +59 +68 +96 query I rowsort SELECT ALL + ( + + 67 ) FROM tab2 @@ -3645,8 +3673,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, 77 AS col0 FROM tab2 AS cor0 +---- +-3 +77 query I rowsort SELECT 77 * + + col2 FROM tab1 AS cor0 @@ -5443,8 +5474,15 @@ SELECT - MIN ( - + col2 ) AS col2 FROM tab2 # Datafusion - Expected - -10 # Datafusion - Expected - 97 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "\(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 col1, - col2 AS col1 FROM tab0 WHERE NOT - + col1 IS NULL +---- +-10 +-47 +-99 +15 +87 +97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 @@ -5483,8 +5521,15 @@ SELECT ALL - MAX ( ALL 95 ) FROM tab2 # Datafusion - Expected - 236325 # Datafusion - Expected - -77 # Datafusion - Expected - 271595 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col2" at position 0 and "\(\- tab2\.col1\) \- Int64\(\-16\) \- \(\- tab2\.col1\) \* Int64\(63\) \* Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col2, - col1 - - 16 - - col1 * + 63 * + 56 col2 FROM tab2 +---- +-51 +-67 +-77 +179893 +236325 +271595 query I rowsort SELECT DISTINCT ( 11 ) AS col0 FROM tab0 @@ -5602,8 +5647,9 @@ SELECT ALL - 18 * + col2 - - - col0 AS col1 FROM tab1 -1779 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 col2, + 68 col2 FROM tab0 WHERE + col1 * + col0 BETWEEN + + col2 / + - 11 AND 60 +---- query I rowsort SELECT DISTINCT - 38 AS col1 FROM tab1, tab2 AS cor0 @@ -6080,8 +6126,15 @@ SELECT col1 * - 57 FROM tab1 # Datafusion - Expected - -149803 # Datafusion - Expected - 73 # Datafusion - Expected - -3219 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col2" at position 0 and "Int64\(50\) \+ \(\- cor0\.col2\) \* Int64\(34\) \* cor0\.col1 \* \(\- \(\- cor0\.col1\)\) \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 73 AS col2, 50 + + - col2 * + + 34 * + col1 * - - col1 + + ( col0 ) AS col2 FROM tab0 AS cor0 +---- +-10484413 +-149803 +-3219 +73 +73 +73 query I rowsort label-1005 SELECT ALL 51 * COUNT ( * ) FROM tab1 AS cor0 @@ -6366,8 +6419,15 @@ SELECT + - col2 + + + 16 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - -8 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 8 col1, + col0 AS col1 FROM tab2 AS cor0 +---- +-8 +-8 +-8 +46 +64 +75 query I rowsort SELECT col2 + - 47 - + - 74 FROM tab1 AS cor0 @@ -6919,8 +6979,11 @@ SELECT ALL + COUNT ( * ) * SUM ( - col1 ) * - + ( + + 39 ) FROM tab1 # 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\(tab0\.col1\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( ALL col1 ) AS col2, + 26 AS col2 FROM tab0 +---- +26 +3 query I rowsort label-1142 SELECT - MAX ( + - 71 ) AS col1 FROM tab2 @@ -7092,8 +7155,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \- Int64\(64\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - + col0 ) - 64 / + CAST ( NULL AS INTEGER ) AS col1, + col2 AS col1 FROM tab0 +---- +10 +47 +99 +NULL +NULL +NULL query I rowsort SELECT - 51 col2 FROM tab1 @@ -8138,8 +8208,15 @@ SELECT + MIN ( ALL - - col1 ) FROM tab2 AS cor0 # Datafusion - Expected - -3 # Datafusion - Expected - -97 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(\-90\) \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, - 90 + + + col0 AS col0 FROM tab0 AS cor0 +---- +-15 +-3 +-75 +-87 +-97 +7 query III rowsort SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( - col1, 80 ) @@ -8534,8 +8611,15 @@ SELECT * FROM tab2 WHERE NOT NULL > + 66 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col1, col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query III rowsort SELECT ALL * FROM tab1 cor0 WHERE col2 BETWEEN NULL AND NULL @@ -8689,8 +8773,15 @@ SELECT DISTINCT 49, col2 FROM tab2 AS cor0 # Datafusion - Expected - 120 # Datafusion - Expected - 89 # Datafusion - Expected - 131 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 0 and "Int64\(56\) \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( + 89 ) AS col1, 56 + + + col0 AS col1 FROM tab2 AS cor0 +---- +102 +120 +131 +89 +89 +89 query II rowsort SELECT DISTINCT - col0 AS col2, col1 FROM tab1 cor0 @@ -9106,8 +9197,11 @@ 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 "\(\- sum\(Int64\(95\)\)\) \+ sum\(Int64\(83\)\) AS col2" at position 0 and "count\(tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - SUM ( ALL ( 95 ) ) + SUM ( + 83 ) AS col2, COUNT ( ALL col0 ) AS col2 FROM tab2 +---- +-36 +3 query I rowsort label-1508 SELECT + COUNT ( * ) FROM tab0 WHERE ( NULL ) <> NULL @@ -9301,8 +9395,15 @@ SELECT ( + col0 ) FROM tab1 AS cor0 WHERE - col0 + - + 46 NOT BETWEEN + col2 AND # Datafusion - Expected - -21 # Datafusion - Expected - 81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, - col1 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +1 +21 +81 query I rowsort label-1540 SELECT DISTINCT - COUNT ( * ) + MAX ( - col1 ) FROM tab2 AS cor0 @@ -9454,8 +9555,10 @@ SELECT + 88 * - ( 96 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a8fc5e3e19acbb4ca184fda05dbae34e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + col0 AS col0, + col0 AS col0, col0 col2 FROM tab2 +---- +9 values hashing to a8fc5e3e19acbb4ca184fda05dbae34e query I rowsort label-1566 SELECT ALL MIN ( DISTINCT - 46 ) FROM tab2 @@ -9628,8 +9731,15 @@ SELECT ALL COUNT ( + - col0 ) * - - 89 col1 FROM tab1 # Datafusion - Expected - 67 # Datafusion - Expected - 93 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(93\) AS Int32\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( + 93 AS INTEGER ) AS col2, col1 AS col2 FROM tab2 AS cor0 +---- +51 +67 +77 +93 +93 +93 query I rowsort label-1596 SELECT ALL 28 * + MIN ( DISTINCT + col2 ) FROM tab2 AS cor0 @@ -10773,8 +10883,15 @@ SELECT DISTINCT ( col1 ) + col1 FROM tab0 AS cor0 # Datafusion - Expected - -8168 # Datafusion - Expected - 96 # Datafusion - Expected - -9019 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col0 AS col1" at position 0 and "\(\- Int64\(94\)\) \* cor0\.col0 \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 + + col0 AS col1, - ( + 94 ) * + ( col0 ) + + col2 AS col1 FROM tab0 cor0 +---- +-1363 +-66 +-8168 +-9019 +66 +96 query I rowsort label-1781 SELECT - - CAST ( + col2 AS INTEGER ) * - + col0 * - CAST ( NULL AS INTEGER ) + - + col0 + - + CAST ( - col0 AS INTEGER ) + + col2 * 31 FROM tab1 AS cor0 @@ -11382,8 +11499,15 @@ SELECT ALL col0, - ( + col1 ) FROM tab2 # Datafusion - Expected - 40 # Datafusion - Expected - -32 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col1" at position 0 and "Int64\(26\) \+ tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 32 col1, 26 + col1 AS col1 FROM tab1 +---- +-32 +-32 +-32 +31 +40 +73 query I rowsort label-1878 SELECT + 85 * + ( 20 ) + - COUNT ( * ) col0 FROM tab0 @@ -12034,8 +12158,15 @@ SELECT DISTINCT col2 * + ( - + 9 ) FROM tab0 # Datafusion - Expected - -48 # Datafusion - Expected - 5 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "tab1\.col1 \+ Int64\(\-95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, col1 + + - 95 AS col0 FROM tab1 +---- +-48 +-81 +-90 +14 +47 +5 query II rowsort SELECT col1, - 46 + ( + - 11 ) FROM tab0 @@ -12448,8 +12579,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) + + + 41 col0, - 37 AS col0 FROM tab1 AS cor0 +---- +-37 +44 query I rowsort SELECT + ( col2 ) + 47 + 50 - + col1 * - 36 FROM tab1 @@ -12530,8 +12664,15 @@ SELECT DISTINCT COUNT ( + 81 ) FROM tab2 # Datafusion - Expected - -96 # Datafusion - Expected - -192 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \- \(\- tab1\.col1\) / \(\- tab1\.col2\) \+ \(\- tab1\.col2\) AS col0" at position 0 and "Int64\(\-96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 - - col1 / - col2 + - col2 AS col0, - 96 AS col0 FROM tab1 +---- +-118 +-136 +-192 +-96 +-96 +-96 query I rowsort label-2063 SELECT + COUNT ( * ) + + ( + - 34 ) AS col1 FROM tab0 @@ -12575,8 +12716,15 @@ SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - col1 AND NULL # Datafusion - Expected - -1888 # Datafusion - Expected - -734 # Datafusion - Expected - -3072 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(34\)\) \+ cor0\.col1 \* \(\- cor0\.col0\) \+ \(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "Int64\(\-32\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 34 ) + col1 * - col0 + - + ( + - col1 ) col2, - 32 * + col2 AS col2 FROM tab1 cor0 +---- +-1888 +-2176 +-3072 +-4264 +-454 +-734 query II rowsort SELECT ALL - col2 AS col1, 64 FROM tab2 WHERE - 64 / + + col2 IS NOT NULL @@ -13503,8 +13651,15 @@ SELECT DISTINCT + + 83 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - -37 # Datafusion - Expected - 86 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col1" at position 0 and "tab2\.col2 \- \(\- \(\- tab2\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 86 AS col1, col2 - - - col1 AS col1 FROM tab2 +---- +-28 +-37 +-9 +86 +86 +86 query I rowsort label-2223 SELECT ( + + COUNT ( - CAST ( NULL AS FLOAT8 ) ) ) AS col1 FROM tab0 @@ -14653,8 +14808,15 @@ SELECT DISTINCT + col2 + - + col0 FROM tab0 AS cor0 # Datafusion - Expected - -60 # Datafusion - Expected - -470016 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col2\) \* cor0\.col2 AS col2" at position 0 and "Int64\(\-60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * - col2 * + + col2 AS col2, - 60 AS col2 FROM tab1 AS cor0 +---- +-295885 +-420784 +-470016 +-60 +-60 +-60 query I rowsort label-2418 SELECT col1 / - 80 + + col1 AS col0 FROM tab0 AS cor0 @@ -15168,8 +15330,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \- max\(DISTINCT Int64\(\-22\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 76 * - MAX ( ALL + - col0 ) col1, COUNT ( * ) - MAX ( DISTINCT - 22 ) AS col1 FROM tab0 +---- +1140 +25 query I rowsort label-2499 SELECT DISTINCT - col0 + CAST ( - - ( - 58 ) AS INTEGER ) FROM tab2 AS cor0 @@ -15319,8 +15484,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col1, - 84 col1 FROM tab2 AS cor0 +---- +-3 +-84 query II rowsort SELECT DISTINCT ( + ( + 70 ) ), - 15 + col1 + - col2 AS col1 FROM tab0 AS cor0 @@ -17466,8 +17634,15 @@ SELECT - col2 / 94 col0 FROM tab2 # Datafusion - Expected - -5 # Datafusion - Expected - 6 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 / tab1\.col1 AS col2" at position 0 and "\(\- tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 / + col1 col2, - col1 col2 FROM tab1 +---- +-14 +-47 +-5 +1 +11 +6 query I rowsort SELECT ALL col1 * - ( - col0 ) AS col0 FROM tab1 @@ -18836,8 +19011,10 @@ SELECT 77 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to d425d2ed754d2105397d6d1a83b37020 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col2" at position 0 and "cor0\.col2 \+ cor0\.col0 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + - 98 col2, 70 AS col0, col2 + + col0 AS col2 FROM tab1 AS cor0 +---- +9 values hashing to 687334a625700ee25e1b5e32e9dbda5f query II rowsort SELECT - 93, col1 * + col1 AS col0 FROM tab1 AS cor0 @@ -19080,8 +19257,15 @@ SELECT * FROM tab1 WHERE NOT - 52 > NULL # Datafusion - Expected - 64 # Datafusion - Expected - 31 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 AS col2, col0 AS col2 FROM tab2 +---- +31 +31 +31 +46 +64 +75 query I rowsort label-3156 SELECT DISTINCT + MIN ( DISTINCT + 82 ) FROM tab2 @@ -19663,8 +19847,15 @@ SELECT ALL col2 + - col2 + + 16 FROM tab0 AS cor0 # Datafusion - Expected - 98 # Datafusion - Expected - -77 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ Int64\(\-82\) AS col1" at position 0 and "Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + - 82 col1, + 98 AS col1 FROM tab1 AS cor0 +---- +-35 +-68 +-77 +98 +98 +98 query I rowsort SELECT - + col1 + - + col1 AS col2 FROM tab2 AS cor0 @@ -19791,8 +19982,15 @@ SELECT DISTINCT + ( - col1 ) * - CAST ( col1 AS INTEGER ) AS col2 FROM tab1 WHER # Datafusion - Expected - -92 # Datafusion - Expected - 77 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "CAST\(Int64\(\-92\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( col1 ) AS col0, CAST ( - 92 AS INTEGER ) AS col0 FROM tab2 cor0 +---- +-92 +-92 +-92 +51 +67 +77 query I rowsort SELECT - 60 col2 FROM tab0 AS cor0 @@ -20736,8 +20934,15 @@ SELECT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND - - 6 / CAST ( NULL A # Datafusion - Expected - 1 # Datafusion - Expected - -462 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* Int64\(\-23\) \+ tab0\.col1 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * - 23 + + col1 AS col0, + col1 AS col0 FROM tab0 +---- +-1782 +-22 +-462 +1 +21 +81 query I rowsort label-3429 SELECT ALL COUNT ( + ( - 66 ) ) * CAST ( - + SUM ( - + col1 ) AS INTEGER ) FROM tab2 AS cor0 @@ -21400,8 +21605,15 @@ SELECT DISTINCT col0 * + + ( - 30 ) FROM tab2 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 12 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 12 AS col2, col0 AS col2 FROM tab1 +---- +12 +12 +12 +51 +85 +91 query I rowsort SELECT ALL - col2 + - + ( + - 59 ) AS col2 FROM tab0 WHERE NULL = NULL @@ -22036,8 +22248,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ), + COUNT ( * ) FROM tab1 +---- +3 +3 query II rowsort label-3637 SELECT ALL 66, + col2 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NULL <> 76 @@ -22084,8 +22299,15 @@ SELECT - col0 + CAST ( col0 AS INTEGER ) AS col1, col2 AS col2 FROM tab0 cor0 # Datafusion - Expected - -5 # Datafusion - Expected - 81 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(\-15\) \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, - 15 + + col2 AS col2 FROM tab0 AS cor0 +---- +-5 +1 +21 +32 +81 +84 query I rowsort SELECT ALL - col0 FROM tab1 WHERE NULL BETWEEN col0 * + 85 AND + 95 @@ -22419,8 +22641,15 @@ NULL # Datafusion - Expected - 81 # Datafusion - Expected - -99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, col1 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +1 +21 +81 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE ( + ( - + col0 ) ) IS NOT NULL @@ -22868,8 +23097,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 8 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 AS col1, col2 AS col1 FROM tab0 +---- +10 +47 +8 +8 +8 +99 query II rowsort SELECT col0, 56 * 57 + col0 AS col1 FROM tab2 @@ -23180,8 +23416,15 @@ SELECT COUNT ( * ) + - 43 FROM tab0 # Datafusion - Expected - 80 # Datafusion - Expected - 2026 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ tab1\.col0 \* Int64\(22\) \+ \(\- tab1\.col2\) AS col2" at position 0 and "Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 + col0 * 22 + + ( + - col2 ) AS col2, 80 AS col2 FROM tab1 +---- +1118 +1903 +2026 +80 +80 +80 query I rowsort SELECT ALL - col2 + + + col1 + + - col1 - + col2 FROM tab2 @@ -24242,8 +24485,15 @@ SELECT col2 + ( - col1 ) AS col0 FROM tab0 # Datafusion - Expected - 29 # Datafusion - Expected - 10 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 10 AS col2, + 29 col2 FROM tab2 +---- +10 +10 +10 +29 +29 +29 query I rowsort SELECT ALL 77 + + 68 FROM tab1 @@ -24268,8 +24518,10 @@ SELECT ALL - 45 + - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a0362250d6de1a287d4ffc0df8aa6723 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col0 AS col2, CAST ( col1 AS INTEGER ), - + col1 AS col2 FROM tab0 cor0 +---- +9 values hashing to ee72b5b5992ef6ccf61d84d77c0f2a7a query I rowsort label-4006 SELECT DISTINCT + COUNT ( * ) + + + COUNT ( * ) FROM tab2 AS cor0 @@ -24339,8 +24591,10 @@ SELECT 92 + - + col0 + + col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 2e82fb3e671fb52799e8230b636edcf9 -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 "tab1\.col0 \* \(\- tab1\.col0\) \* \(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RII valuesort SELECT DISTINCT CAST ( NULL AS FLOAT8 ) AS col2, col0 * - col0 * - col2 AS col2, + - col0 FROM tab1 +---- +9 values hashing to 544faea466057ee99c25d70e584768b4 query III rowsort label-4017 SELECT DISTINCT * FROM tab1 WHERE CAST ( - col1 AS INTEGER ) IS NOT NULL @@ -24941,8 +25195,9 @@ SELECT 94 * col0 AS col1 FROM tab2 7050 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \- \(\- tab1\.col0\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 - - col0 AS col0, + col1 AS col0 FROM tab1 WHERE NOT ( - col2 IS NOT NULL ) +---- query I rowsort SELECT ALL + col1 * col1 * col2 AS col2 FROM tab2 AS cor0 @@ -25955,8 +26210,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 97 AS col1, - COUNT ( * ) AS col1 FROM tab1 +---- +-3 +97 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT - col0 > col1 @@ -26149,8 +26407,15 @@ SELECT DISTINCT * FROM tab0 WHERE - 40 * - col1 <= NULL # Datafusion - Expected - 230 # Datafusion - Expected - NULL # Datafusion - Expected - 644 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(46\) \* \(\- \(\- tab1\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, 46 * - - col1 AS col2 FROM tab1 +---- +2162 +230 +644 +NULL +NULL +NULL query I rowsort label-4322 SELECT DISTINCT - MAX ( + 16 ) FROM tab0 @@ -26213,8 +26478,9 @@ SELECT * FROM tab2 AS cor0 WHERE ( col0 IS NULL ) ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(55\)\) AS col2" at position 0 and "Int64\(0\) \* cor0\.col1 \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 55 AS col2, 0 * col1 + col2 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 < col2 +---- query I rowsort SELECT DISTINCT 94 + - 14 FROM tab2 cor0 @@ -26339,8 +26605,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) / + 29 col2, COUNT ( * ) * - 92 AS col2 FROM tab0 +---- +-276 +0 query II rowsort SELECT - col0, ( + 48 ) FROM tab1 WHERE NOT NULL <> NULL @@ -26736,8 +27005,15 @@ SELECT 18 * + - ( + col0 ) AS col1 FROM tab1 # Datafusion - Expected - -10 # Datafusion - Expected - 81 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, - ( col2 ) col0 FROM tab0 +---- +-10 +-47 +-99 +1 +21 +81 query I rowsort label-4417 SELECT - CAST ( - - col1 AS INTEGER ) AS col2 FROM tab0 @@ -26935,8 +27211,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, 5 AS col2 FROM tab0 cor0 +---- +-3 +5 query II rowsort SELECT - 18 AS col2, 1 FROM tab0 AS cor0 @@ -27122,8 +27401,15 @@ SELECT - ( 86 ) AS col2 FROM tab0 # Datafusion - Expected - -3080 # Datafusion - Expected - 58 # Datafusion - Expected - -3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "tab2\.col2 \* \(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 col1, col2 * - col1 AS col1 FROM tab2 +---- +-1173 +-3080 +-3886 +23 +40 +58 query I rowsort label-4477 SELECT + 44 - - SUM ( - col2 ) FROM tab0 WHERE NOT + col0 * col1 > + col2 @@ -27324,8 +27610,15 @@ SELECT DISTINCT 88 * + - col2 FROM tab0 # Datafusion - Expected - -10 # Datafusion - Expected - -81 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col2" at position 0 and "\(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, - col2 AS col2 FROM tab0 +---- +-1 +-10 +-21 +-47 +-81 +-99 query II rowsort label-4508 SELECT 7, - COUNT ( * ) col1 FROM tab1 @@ -28942,8 +29235,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT + 76 IS NOT NULL # Datafusion - Expected - 8245 # Datafusion - Expected - 91 # Datafusion - Expected - 8827 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 \* Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, col0 * + 97 AS col2 FROM tab1 AS cor0 +---- +4947 +51 +8245 +85 +8827 +91 query III rowsort SELECT * FROM tab0 WHERE NOT - 7 - + 2 * - col1 IS NULL @@ -29403,8 +29703,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= - col0 * col2 / + CAST ( NULL AS I # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( col1 ), + col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT + col2 * + + 44 FROM tab1 WHERE NOT ( NOT NULL IS NULL ) @@ -30642,8 +30949,11 @@ 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\(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\. +query II valuesort SELECT ALL + 43 AS col2, - COUNT ( * ) + + ( + + COUNT ( * ) ) + + MAX ( col1 ) AS col2 FROM tab0 +---- +43 +81 query I rowsort label-5049 SELECT + 10 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL @@ -30688,8 +30998,15 @@ SELECT ALL - ( 4 ) + - col0 * - + 71 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -69 # Datafusion - Expected - -78 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ Int64\(\-83\) AS col1" at position 0 and "\(\- cor0\.col2\) \+ Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + - 83 AS col1, - col2 + 27 AS col1 FROM tab1 AS cor0 +---- +-32 +-36 +-41 +-69 +-69 +-78 query I rowsort label-5056 SELECT + MAX ( ALL col0 ) col1 FROM tab2 AS cor0 @@ -31708,8 +32025,15 @@ SELECT * FROM tab0 WHERE NOT col1 + - - 15 < + 0 # Datafusion - Expected - NULL # Datafusion - Expected - -93 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col2" at position 0 and "tab2\.col2 \+ CAST\(NULL AS Int32\) \+ \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 93 ) AS col2, col2 + CAST ( NULL AS INTEGER ) + - + col1 AS col2 FROM tab2 +---- +-93 +-93 +-93 +NULL +NULL +NULL query I rowsort label-5230 SELECT ALL + COUNT ( 36 ) FROM tab1 @@ -32009,8 +32333,15 @@ SELECT DISTINCT - col1 col2, ( + col2 ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 5310 # Datafusion - Expected - -826 # Datafusion - Expected - 8640 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* \(\- tab1\.col1\) AS col0" at position 0 and "tab1\.col2 \* Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 59 * + - col1 AS col0, + col2 * + + 90 AS col0 FROM tab1 +---- +-2773 +-295 +-826 +5310 +6120 +8640 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2754 @@ -32697,8 +33028,15 @@ SELECT ALL + col1 - - - col0 AS col0 FROM tab2 WHERE NOT ( NOT - col0 IS NULL ) # Datafusion - Expected - 85 # Datafusion - Expected - 59 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 AS col1, col0 AS col1 FROM tab1 +---- +51 +59 +59 +59 +85 +91 query I rowsort SELECT ALL ( + 92 ) AS col2 FROM tab1 @@ -32754,8 +33092,9 @@ SELECT ALL + col1 * - + col0 * - 23 + - 77 FROM tab1 AS cor0 98294 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Float64\)\)\) \+ \(\- cor0\.col2\) \* \(\- cor0\.col0\) \* Int64\(\-90\) AS col1" at position 0 and "\(\- \(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - - CAST ( NULL AS FLOAT8 ) + - col2 * - col0 * + - 90 AS col1, - ( - col1 ) col1 FROM tab0 AS cor0 WHERE - CAST ( 72 AS INTEGER ) / - col1 IS NULL +---- query I rowsort label-5400 SELECT col2 + + col1 + - - col2 / + col0 AS col0 FROM tab0 @@ -33247,8 +33586,15 @@ SELECT - col2 * + 65 * + + ( - col0 ) FROM tab1 # Datafusion - Expected - -40 # Datafusion - Expected - 81 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 81 AS col0, - col2 AS col0 FROM tab2 +---- +-23 +-40 +-58 +81 +81 +81 query I rowsort label-5481 SELECT COUNT ( CAST ( - 63 AS INTEGER ) ) AS col0 FROM tab2 @@ -34122,8 +34468,15 @@ SELECT DISTINCT - col1 + 82 AS col1 FROM tab0 cor0 # Datafusion - Expected - -93 # Datafusion - Expected - 590 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* \(\- \(\- CAST\(cor0\.col2 AS Int32\)\)\) AS col2" at position 0 and "cor0\.col1 \+ \(\- Int64\(94\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 59 * - - CAST ( col2 AS INTEGER ) AS col2, col1 + - + 94 AS col2 FROM tab0 AS cor0 +---- +-13 +-73 +-93 +2773 +5841 +590 query I rowsort SELECT - + col1 * 2 * col2 AS col1 FROM tab2 AS cor0 @@ -34736,8 +35089,11 @@ SELECT ALL - SUM ( ALL + - 89 ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19680 # Datafusion - Expected - -206 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-80\)\) \* \(\- sum\(Int64\(82\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-73\) \- Int64\(\-16\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 80 * - SUM ( + 82 ) AS col0, COUNT ( * ) * + - 73 - - 16 - COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +-19680 +-206 query I rowsort label-5733 SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( - 41, + col1, + - 86 / + + CAST ( 80 AS INTEGER ) * + col2 ) @@ -35135,8 +35491,15 @@ SELECT DISTINCT + MAX ( ALL - 37 ) AS col2 FROM tab0 # Datafusion - Expected - 71 # Datafusion - Expected - -99 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col0" at position 0 and "Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - col2 ) AS col0, + 71 AS col0 FROM tab0 +---- +-10 +-47 +-99 +71 +71 +71 query III rowsort SELECT DISTINCT * FROM tab2 WHERE 92 IS NULL @@ -35196,8 +35559,15 @@ SELECT COUNT ( * ) / - 73 FROM tab0 # Datafusion - Expected - 3 # Datafusion - Expected - -92 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* tab2\.col1 / Int64\(\-41\) AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 49 * col1 / - 41 AS col1, 3 AS col1 FROM tab2 +---- +-60 +-80 +-92 +3 +3 +3 query II rowsort label-5806 SELECT COUNT ( * ) AS col0, + COUNT ( * ) AS col2 FROM tab1 AS cor0 @@ -35780,8 +36150,9 @@ SELECT 57 * 58 * - 32 AS col2 FROM tab2 cor0 -105792 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(\-74\) AS col1" at position 0 and "Int64\(\-4\) \+ cor0\.col1 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col0 * - 74 AS col1, + col1 AS col2, + - 4 + + col1 AS col1 FROM tab1 cor0 WHERE NOT NULL <> NULL +---- query I rowsort SELECT + - col2 * + + col0 - - 20 AS col2 FROM tab2 AS cor0 @@ -35846,8 +36217,15 @@ SELECT - ( - + col1 ) AS col0 FROM tab0 # Datafusion - Expected - 57 # Datafusion - Expected - 64 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \+ \(\- \(\- cor0\.col2\)\) AS col2" at position 0 and "Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + - col1 ) + - - col2 AS col2, 57 AS col2 FROM tab1 AS cor0 +---- +110 +115 +57 +57 +57 +64 query I rowsort SELECT ALL + col0 FROM tab1 AS cor0 WHERE ( + 80 * ( - ( 86 ) ) ) IN ( - 38 ) @@ -36548,8 +36926,15 @@ SELECT ALL COUNT ( ALL - + col2 ) AS col0 FROM tab0 cor0 # Datafusion - Expected - 67 # Datafusion - Expected - -92 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ \(\- cor0\.col2\) \- cor0\.col2 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 + - col2 - + col2 AS col2, + col1 AS col2 FROM tab2 AS cor0 +---- +-144 +-191 +-92 +51 +67 +77 query I rowsort SELECT DISTINCT + - 35 + 50 col0 FROM tab1 AS cor0 @@ -36994,8 +37379,11 @@ SELECT + 61 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 97 AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +3 +97 query I rowsort label-6097 SELECT - COUNT ( 13 ) FROM tab0 AS cor0 @@ -37408,8 +37796,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) * col2 + - # Datafusion - Expected - 10 # Datafusion - Expected - 81 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col2 \+ \(\- cor0\.col2\) / cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, col2 + - col2 / + col0 AS col2 FROM tab0 cor0 +---- +1 +10 +21 +44 +81 +98 query II rowsort SELECT + + 6 AS col0, + ( + 47 ) col1 FROM tab1 AS cor0 @@ -38485,8 +38880,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT 54 IS NOT NULL # Datafusion - Expected - 55 # Datafusion - Expected - 58 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( col2 ) AS col0, 55 AS col0 FROM tab2 +---- +23 +40 +55 +55 +55 +58 query I rowsort SELECT ALL col1 * + col0 * - col2 AS col2 FROM tab1 @@ -40509,8 +40911,11 @@ SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 53 IN ( + - col2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col2, + COUNT ( * ) col2 FROM tab1 AS cor0 +---- +3 +3 query I rowsort SELECT - + col0 AS col1 FROM tab2 WHERE - 98 IS NULL @@ -41051,8 +41456,9 @@ SELECT ALL * FROM tab0 AS cor0 WHERE - ( - 33 ) <> NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, 12 AS col2 FROM tab1 AS cor0 WHERE 55 * + col0 + + 56 <= NULL +---- query I rowsort SELECT - ( + col0 ) + + - col0 AS col1 FROM tab2 AS cor0 @@ -41068,8 +41474,15 @@ SELECT - ( + col0 ) + + - col0 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -15 # Datafusion - Expected - NULL # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- tab2\.col0\) / \(\- Int64\(13\)\) \* Int64\(99\) AS col2" at position 0 and "Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) * - + col0 / - + 13 * + + 99 AS col2, - 15 AS col2 FROM tab2 +---- +-15 +-15 +-15 +NULL +NULL +NULL query III rowsort SELECT * FROM tab0 WHERE - 11 IS NOT NULL @@ -41260,8 +41673,15 @@ NULL # Datafusion - Expected - -195 # Datafusion - Expected - 116 # Datafusion - Expected - -1181 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ Int64\(50\) \- cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col1\) \* cor0\.col0 \+ \(\- cor0\.col2\) \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 + + 50 - + col0 AS col1, - col1 * + col0 + - + col2 + + col1 AS col1 FROM tab0 AS cor0 +---- +-1181 +-16 +-1816 +-195 +-46 +116 query I rowsort SELECT DISTINCT + 69 * + + col1 + - col1 col1 FROM tab0 AS cor0 @@ -41723,8 +42143,11 @@ SELECT + col0 - CAST ( + - col2 AS INTEGER ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 21 AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL +---- +21 +3 query I rowsort SELECT - col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL ) @@ -42313,8 +42736,15 @@ SELECT DISTINCT - col0 + + + 29 AS col1 FROM tab1 WHERE NOT + col1 IS NULL # Datafusion - Expected - 460 # Datafusion - Expected - 81 # Datafusion - Expected - 2162 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "\(\- tab0\.col2\) \* Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col2, ( - col2 ) * + - 46 AS col2 FROM tab0 +---- +1 +21 +2162 +4554 +460 +81 query I rowsort label-6964 SELECT SUM ( col1 ) FROM tab1 WHERE - - col1 NOT BETWEEN + col2 AND col2 * - col0 @@ -42902,8 +43332,11 @@ SELECT DISTINCT 40 col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) col1, COUNT ( * ) AS col1 FROM tab1 +---- +3 +NULL query I rowsort SELECT DISTINCT - - col1 AS col2 FROM tab1 WHERE NULL IS NOT NULL @@ -42950,8 +43383,15 @@ SELECT + + 92 AS col2 FROM tab1 WHERE NOT - col2 IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, col2 AS col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-7076 SELECT - SUM ( col1 ) col2 FROM tab1 cor0 @@ -43188,8 +43628,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT \(\- cor0\.col1\)\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( DISTINCT - + col1 ) col2, + ( + 48 ) AS col2 FROM tab1 AS cor0 +---- +-66 +48 query II rowsort label-7114 SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( * ) FROM tab0 cor0 @@ -43257,8 +43700,15 @@ SELECT DISTINCT MAX ( DISTINCT - col1 ) col1 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 529 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* tab2\.col2 AS col2" at position 0 and "\(\- tab2\.col2\) \* CAST\(NULL AS Int32\) \+ tab2\.col0 / Int64\(\-94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * col2 AS col2, - col2 * + CAST ( NULL AS INTEGER ) + col0 / - 94 AS col2 FROM tab2 +---- +1600 +3364 +529 +NULL +NULL +NULL query I rowsort SELECT 70 + + col0 FROM tab0 @@ -43625,8 +44075,9 @@ SELECT + - col1 + + + 4 FROM tab0 AS cor0 WHERE NOT 96 IS NOT NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col1" at position 0 and "cor0\.col2 \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 18 AS col1, col2 * + - col1 col1 FROM tab2 AS cor0 WHERE 45 - + col2 IS NULL +---- query I rowsort label-7181 SELECT 51 + + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL @@ -43700,8 +44151,11 @@ SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) col1, 52 AS col1 FROM tab1 +---- +3 +52 query I rowsort label-7194 SELECT - - COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0 @@ -44535,8 +44989,15 @@ SELECT 42, + 11 * + 24 + + COUNT ( * ) AS col1 FROM tab2 # Datafusion - Expected - 67 # Datafusion - Expected - 11 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "\(\- \(\- tab2\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 col1, + ( - - col1 ) AS col1 FROM tab2 +---- +11 +11 +11 +51 +67 +77 query I rowsort label-7324 SELECT ( + ( COUNT ( * ) ) ) AS col0 FROM tab2 @@ -44670,8 +45131,15 @@ SELECT - 19, 6 AS col0 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - 3 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 AS col1, + ( col2 ) col1 FROM tab1 +---- +3 +3 +3 +59 +68 +96 query II rowsort SELECT DISTINCT col2, - 65 + - col2 + + col1 + + col1 AS col1 FROM tab1 @@ -46713,8 +47181,15 @@ SELECT - COUNT ( ALL - - 37 ) FROM tab1 AS cor0 # Datafusion - Expected - -1305 # Datafusion - Expected - 58 # Datafusion - Expected - -1514 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(\-89\) \+ Int64\(19\) \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, - 89 + 19 * + - col0 AS col1 FROM tab2 AS cor0 +---- +-1305 +-1514 +-963 +23 +40 +58 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - - col0 ) @@ -46874,8 +47349,15 @@ SELECT ALL + 34 - - - col0 AS col2 FROM tab1 # Datafusion - Expected - 55 # Datafusion - Expected - 0 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \+ tab2\.col2 AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 + col2 AS col2, 55 AS col2 FROM tab2 +---- +0 +0 +0 +55 +55 +55 query II rowsort SELECT DISTINCT 82, - col1 AS col1 FROM tab0 @@ -47338,8 +47820,11 @@ SELECT ALL - - col0 / col2 + - 35 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(85\)\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 85 + CAST ( - COUNT ( * ) AS INTEGER ) AS col0, 13 AS col0 FROM tab0 AS cor0 +---- +-88 +13 query I rowsort SELECT DISTINCT + col0 + - - 28 AS col2 FROM tab2 AS cor0 @@ -47500,8 +47985,15 @@ SELECT ( 21 ) FROM tab2 # Datafusion - Expected - 59 # Datafusion - Expected - -91 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, col2 col1 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +59 +68 +96 query I rowsort SELECT - col1 * + - col2 + - - col2 AS col0 FROM tab1 AS cor0 WHERE 96 * col2 * + - 60 + 61 * + 24 / - 23 + + 92 NOT BETWEEN NULL AND NULL @@ -48037,8 +48529,15 @@ SELECT ALL + COUNT ( * ) col2 FROM tab1 WHERE NOT NULL = NULL # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + col2 ), col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query III rowsort SELECT * FROM tab1 WHERE NOT + + col1 IS NULL @@ -48720,8 +49219,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - COUNT ( * ) ) AS col2, 6 AS col2 FROM tab2 +---- +-3 +6 query I rowsort label-8022 SELECT + ( - + MIN ( ALL - col0 ) ) FROM tab0 AS cor0 @@ -49460,8 +49962,15 @@ SELECT ALL SUM ( DISTINCT - col0 ) AS col2 FROM tab0 # Datafusion - Expected - 40 # Datafusion - Expected - 75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, + col2 AS col1 FROM tab2 +---- +23 +40 +46 +58 +64 +75 query I rowsort label-8144 SELECT - SUM ( DISTINCT - + 97 ) FROM tab2 @@ -49589,8 +50098,15 @@ SELECT + + MAX ( + 47 ) FROM tab0 AS cor0 # Datafusion - Expected - 15 # Datafusion - Expected - 99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- cor0\.col2\) AS Int32\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( - + col2 AS INTEGER ) col1, + col0 col1 FROM tab0 AS cor0 +---- +10 +15 +47 +87 +97 +99 query I rowsort label-8165 SELECT DISTINCT + SUM ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0 WHERE ( NOT NULL <= - col2 + + 72 ) @@ -49690,8 +50206,15 @@ SELECT ALL col2 * - ( - ( + + col1 ) ) * + col1 + - 88 FROM tab1 # Datafusion - Expected - 522 # Datafusion - Expected - 4851 # Datafusion - Expected - 360 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* Int64\(63\) AS col1" at position 0 and "Int64\(9\) \* tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 * + + 63 AS col1, + 9 * + + col2 AS col1 FROM tab2 +---- +207 +3213 +360 +4221 +4851 +522 query I rowsort label-8180 SELECT 44 * - + SUM ( DISTINCT + 81 ) FROM tab0 @@ -50205,8 +50728,15 @@ SELECT - col1 * + - col1 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 55 # Datafusion - Expected - -2208 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 * + - col2 col1, 55 AS col1 FROM tab1 AS cor0 +---- +-1357 +-1564 +-2208 +55 +55 +55 query IIIIII rowsort SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE ( NULL > NULL ) @@ -50501,8 +51031,15 @@ SELECT DISTINCT 20 + - + col0 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -133 # Datafusion - Expected - 69 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ cor0\.col2 AS col2" at position 0 and "\(\- cor0\.col0\) \+ \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 + + col2 col2, - col0 + + - col2 AS col2 FROM tab2 AS cor0 +---- +-104 +-133 +-69 +104 +133 +69 query I rowsort label-8307 SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL = col0 @@ -50526,8 +51063,15 @@ SELECT ALL - col1 AS col2, col2 * 43 AS col0 FROM tab1 # Datafusion - Expected - 23 # Datafusion - Expected - 2760 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(60\)\) \* Int64\(\-46\) AS col0" at position 0 and "tab1\.col0 \+ \(\- CAST\(tab1\.col2 AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 60 ) * - 46 AS col0, + ( col0 ) + - CAST ( col2 AS INTEGER ) AS col0 FROM tab1 +---- +-45 +23 +26 +2760 +2760 +2760 query I rowsort label-8310 SELECT MAX ( ALL + - col1 ) AS col0 FROM tab0 @@ -50689,8 +51233,15 @@ SELECT DISTINCT - col1 / - + col0 col0 FROM tab0 AS cor0 # Datafusion - Expected - 273 # Datafusion - Expected - -714 # Datafusion - Expected - 153 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) \* cor0\.col0 AS col2" at position 0 and "cor0\.col0 \* Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 14 * + + ( col0 ) AS col2, col0 * 3 AS col2 FROM tab1 cor0 +---- +-1190 +-1274 +-714 +153 +255 +273 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 @@ -50699,8 +51250,15 @@ SELECT ALL - 14 * + + ( col0 ) AS col2, col0 * 3 AS col2 FROM tab1 cor0 # Datafusion - Expected - 3364 # Datafusion - Expected - 65 # Datafusion - Expected - 529 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col2" at position 0 and "cor0\.col2 \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 65 col2, col2 * col2 col2 FROM tab2 AS cor0 +---- +1600 +3364 +529 +65 +65 +65 query I rowsort SELECT - + col0 + + 47 FROM tab1 AS cor0 @@ -52333,8 +52891,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 71 AS col0, + 26 + - + COUNT ( * ) col0 FROM tab1 +---- +-71 +23 query II rowsort SELECT DISTINCT col1, + 35 + + col0 - - 38 FROM tab1 @@ -54645,8 +55206,13 @@ SELECT MIN ( - col1 ) - + + 33 FROM tab1 # Datafusion - Expected - 93 # Datafusion - Expected - -98 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \- tab0\.col1 / Int64\(\-58\) \+ Int64\(\-50\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 48 - col1 / - 58 + - 50 AS col2, ( 93 ) AS col2 FROM tab0 +---- +-97 +-98 +93 +93 query I rowsort SELECT 76 * - - col1 col0 FROM tab0 @@ -54883,8 +55449,15 @@ SELECT + col1 * col2 + - ( + col1 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 26 # Datafusion - Expected - 42 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col1 AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 + + + col1 AS col0, 26 col0 FROM tab0 cor0 +---- +162 +2 +26 +26 +26 +42 query I rowsort SELECT - ( - 5 ) + - + col0 + + col2 FROM tab2 AS cor0 WHERE NULL IS NULL @@ -55087,8 +55660,9 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + + + col0 NOT BETWEEN NULL AND - 9 values hashing to c4b42765dff94eaaa46040e537fb43b7 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 98 AS col2, + col1 col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL +---- query I rowsort label-9060 SELECT DISTINCT + MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 @@ -55666,8 +56240,15 @@ SELECT DISTINCT - 51 / + col2 FROM tab2 AS cor0 # Datafusion - Expected - 4165 # Datafusion - Expected - 110 # Datafusion - Expected - -1089 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- Int64\(52\)\) \+ cor0\.col1 AS col1" at position 0 and "Int64\(9\) \* cor0\.col1 \+ \(\- cor0\.col2\) \* cor0\.col1 \+ cor0\.col0 \+ Int64\(\-42\) \* \(\- \(\- \(\- cor0\.col2\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + - ( + 52 ) + col1 col1, 9 * + col1 + - col2 * + col1 + + col0 + - 42 * - - ( - col2 ) AS col1 FROM tab0 AS cor0 +---- +-10 +-1089 +-50 +110 +4165 +486 query III rowsort SELECT * FROM tab0 WHERE + col0 + col0 + - col0 * ( - col0 ) * - col0 + + - col2 IS NOT NULL @@ -55722,8 +56303,11 @@ SELECT + SUM ( - col2 ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col2, COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 +---- +9 +9 query I rowsort SELECT - col1 * - - 87 FROM tab0 @@ -56070,8 +56654,9 @@ SELECT ALL + + 77 + col2 FROM tab0 cor0 87 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- cor0\.col0\) \+ Int64\(69\) \* \(\- \(\- cor0\.col2\)\) \+ cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 + + ( - col0 ) + 69 * - - col2 + + col1 AS col2, - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= + col0 +---- query III rowsort label-9216 SELECT * FROM tab2 AS cor0 WHERE CAST ( + 76 AS INTEGER ) IS NOT NULL @@ -56330,8 +56915,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 +---- +-9 +-9 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 >= NULL @@ -56612,8 +57200,15 @@ SELECT DISTINCT + - 3 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - 67 # Datafusion - Expected - 76 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 76 col0, col1 AS col0 FROM tab2 +---- +51 +67 +76 +76 +76 +77 query I rowsort SELECT DISTINCT + col0 + col2 * + - col0 + ( + col1 ) FROM tab0 @@ -58405,8 +59000,15 @@ SELECT ALL - - 41 col0 FROM tab2 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, + col0 AS col0 FROM tab1 WHERE ( + 14 * + 41 / + + ( + 9 ) IS NOT NULL ) +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT 15 + 74 + - 9 FROM tab1 @@ -58543,8 +59145,11 @@ SELECT - 93 * - - col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4272 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \* Int64\(48\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- cor0\.col0\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 89 * + 48 AS col0, CAST ( NULL AS INTEGER ) + - col0 * col0 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL +---- +4272 +NULL query I rowsort SELECT 93 / - col1 AS col0 FROM tab2 AS cor0 WHERE NOT col0 > NULL @@ -58805,8 +59410,15 @@ SELECT ALL + col1 AS col1, + 69 * + col0 + - + col2 FROM tab0 # Datafusion - Expected - 49 # Datafusion - Expected - -72680 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \* \(\- tab2\.col0\) \* \(\- tab2\.col1\) \+ tab2\.col0 AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 * - col0 * - + col1 + col0 AS col0, 49 AS col0 FROM tab2 +---- +-152704 +-155700 +-72680 +49 +49 +49 query I rowsort SELECT ALL + col0 - - col0 AS col0 FROM tab0 @@ -59415,8 +60027,15 @@ SELECT ALL col1 AS col0, 72 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) * 67 AS col1 FROM tab2 +---- +NULL +NULL +NULL +NULL +NULL +NULL query I rowsort label-9757 SELECT SUM ( ALL 44 ) col0 FROM tab2 @@ -59667,8 +60286,11 @@ SELECT DISTINCT * FROM tab1 WHERE NOT - ( col0 ) / - col2 * - col2 <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1, 22 AS col1 FROM tab1 +---- +22 +NULL query I rowsort SELECT DISTINCT - 1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) > + + col2 @@ -59863,8 +60485,15 @@ SELECT - col2, col2 * - col1 col0 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - -96 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, col1 col0 FROM tab1 +---- +-59 +-68 +-96 +14 +47 +5 query II rowsort label-9829 SELECT - ( + + COUNT ( * ) ) col2, - CAST ( NULL AS INTEGER ) FROM tab1 @@ -60342,8 +60971,11 @@ SELECT DISTINCT COUNT ( * ) FROM tab0 cor0 WHERE col0 <= ( + col2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +3 +3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 @@ -60352,8 +60984,15 @@ SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 3886 # Datafusion - Expected - -77 # Datafusion - Expected - 3080 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "\(\- cor0\.col1\) \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 col2, - col1 * - col2 AS col2 FROM tab2 cor0 +---- +-51 +-67 +-77 +1173 +3080 +3886 query I rowsort SELECT + - 12 FROM tab0 AS cor0 WHERE NOT 39 IS NULL diff --git a/data/sqlite/random/aggregates/slt_good_55.slt b/data/sqlite/random/aggregates/slt_good_55.slt index 988975d..83ef6d4 100644 --- a/data/sqlite/random/aggregates/slt_good_55.slt +++ b/data/sqlite/random/aggregates/slt_good_55.slt @@ -586,8 +586,11 @@ SELECT * FROM tab0 WHERE NOT - + col1 + col0 + - col0 * + - col2 * + + col0 / co # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \* \(\- tab1\.col0\) AS col2" at position 0 and "Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT CAST ( NULL AS FLOAT8 ) * - col0 AS col2, - 49 AS col2 FROM tab1 +---- +-49 +NULL query I rowsort SELECT DISTINCT - col1 * + 43 FROM tab1 @@ -1609,8 +1612,11 @@ SELECT DISTINCT - 27 * - 99 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 15 / COUNT ( * ) AS col2, - COUNT ( * ) AS col2 FROM tab2 +---- +-3 +5 query III rowsort SELECT * FROM tab2 WHERE + + col1 / - col2 IS NOT NULL @@ -2294,8 +2300,15 @@ SELECT - 51 / CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS # Datafusion - Expected - -64 # Datafusion - Expected - 58 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "\(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, - col0 AS col0 FROM tab2 +---- +-46 +-64 +-75 +23 +40 +58 query IIIIII rowsort SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT - ( + 65 ) IS NULL @@ -2461,8 +2474,15 @@ SELECT DISTINCT * FROM tab1 WHERE - + 17 <= NULL # Datafusion - Expected - 64 # Datafusion - Expected - 99 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, 64 AS col0 FROM tab0 +---- +10 +47 +64 +64 +64 +99 query III rowsort SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + - ( + 59 ) / col0 ) @@ -3465,8 +3485,15 @@ SELECT 92 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 ) # Datafusion - Expected - -47 # Datafusion - Expected - -99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "\(\- cor0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2, - col2 FROM tab0 AS cor0 +---- +-10 +-10 +-47 +-47 +-99 +-99 query I rowsort label-575 SELECT DISTINCT - 38 * - - COUNT ( * ) FROM tab0 AS cor0 @@ -4826,8 +4853,15 @@ SELECT 2 * - 18 * - col0 + ( + col2 ) FROM tab0 AS cor0 # Datafusion - Expected - -1227 # Datafusion - Expected - 918 # Datafusion - Expected - -700 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(93\) \+ \(\- cor0\.col0\) \* Int64\(75\) AS col0" at position 0 and "cor0\.col0 \* Int64\(\-14\) \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * + 93 + - + col0 * + + 75 AS col0, col0 * - 14 + + col1 AS col0 FROM tab1 AS cor0 +---- +-1185 +-1227 +-700 +1530 +1638 +918 query I rowsort SELECT ALL - 72 AS col0 FROM tab0 cor0 WHERE NOT 92 - + col2 * - 1 * - col1 > NULL @@ -5325,8 +5359,15 @@ SELECT col1 AS col2 FROM tab2 WHERE - col1 * - 89 <= col0 + col2 # Datafusion - Expected - 87 # Datafusion - Expected - 94 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ tab0\.col2 AS col0" at position 0 and "tab0\.col0 \- \(\- \(\- tab0\.col2\)\) / tab0\.col1 / Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + + col2 AS col0, col0 - - - col2 / col1 / 85 AS col0 FROM tab0 +---- +15 +198 +20 +87 +94 +96 query III rowsort SELECT ALL * FROM tab2 WHERE NOT ( ( - col0 ) IN ( - ( + 18 ) ) ) @@ -5438,8 +5479,15 @@ SELECT DISTINCT MAX ( 19 ) FROM tab0 AS cor0 # Datafusion - Expected - -38 # Datafusion - Expected - -238 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(19\) \+ cor0\.col2 AS col0" at position 0 and "Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 * 19 + col2 AS col0, - 38 AS col0 FROM tab0 AS cor0 +---- +-1643 +-1744 +-238 +-38 +-38 +-38 query II rowsort SELECT ( col2 ) AS col1, - 40 FROM tab0 @@ -5989,8 +6037,15 @@ SELECT + col2 * + + 70 FROM tab0 AS cor0 # Datafusion - Expected - 14 # Datafusion - Expected - -94 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ \(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col1 + - + col1 col0, + col1 AS col0 FROM tab1 AS cor0 +---- +-10 +-28 +-94 +14 +47 +5 query I rowsort SELECT + col0 - + 63 FROM tab1 @@ -6043,8 +6098,15 @@ SELECT ALL + 10 * - - col0 FROM tab1 WHERE NULL IS NULL # Datafusion - Expected - 40 # Datafusion - Expected - -3744 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ tab2\.col1 \- tab2\.col2 \* tab2\.col1 AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 + ( col1 ) - + col2 * + col1 AS col1, col2 AS col1 FROM tab2 +---- +-1076 +-2939 +-3744 +23 +40 +58 query I rowsort SELECT ALL + 27 + col0 AS col0 FROM tab0 @@ -6371,8 +6433,11 @@ SELECT + - MIN ( - col1 ) * + + 51 AS col1 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -121 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- cor0\.col2\)\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( - col2 ) AS col1, 19 AS col1 FROM tab2 AS cor0 +---- +-121 +19 query III rowsort SELECT * FROM tab1 AS cor0 WHERE col1 < + 34 @@ -6992,8 +7057,15 @@ SELECT - ( 49 ) AS col1 FROM tab1 # Datafusion - Expected - -67 # Datafusion - Expected - 65 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col1" at position 0 and "\(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 AS col1, - col1 col1 FROM tab2 +---- +-51 +-67 +-77 +65 +65 +65 query I rowsort SELECT ALL ( 6 ) * + col1 FROM tab0 @@ -7192,8 +7264,11 @@ SELECT DISTINCT + col2 AS col1, - col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, - 32 col0 FROM tab1 cor0 +---- +-32 +3 query I rowsort SELECT DISTINCT 93 col0 FROM tab0 AS cor0 @@ -7287,8 +7362,11 @@ SELECT DISTINCT col0 / col1 + + 28 + - col1 AS col1 FROM tab1 # 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 col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 60 AS col1, 0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 +---- +0 +60 query I rowsort SELECT - 24 + + col2 + + ( + ( 17 ) ) AS col0 FROM tab2 cor0 WHERE + 5 <= + col1 @@ -7977,8 +8055,15 @@ SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL # Datafusion - Expected - 64 # Datafusion - Expected - 58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 col1, col0 col1 FROM tab2 +---- +23 +40 +46 +58 +64 +75 query I rowsort label-1325 SELECT ALL COUNT ( * ) + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 @@ -8301,8 +8386,15 @@ SELECT 63 * + - 29 FROM tab0 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT ALL + ( - 87 ) + - 20 AS col1 FROM tab0 cor0 @@ -8428,8 +8520,15 @@ SELECT + ( - COUNT ( * ) ) * - 44 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, CAST ( NULL AS INTEGER ) * - 48 AS col2 FROM tab2 AS cor0 +---- +46 +64 +75 +NULL +NULL +NULL query II rowsort SELECT - 90, - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL @@ -8606,8 +8705,15 @@ SELECT col1 * + + 39 * + - 68 * 18 FROM tab1 # Datafusion - Expected - 79 # Datafusion - Expected - 81 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, 79 AS col2 FROM tab0 +---- +1 +21 +79 +79 +79 +81 query I rowsort SELECT + col2 * - col1 * col2 + - col1 + - - col1 AS col2 FROM tab0 WHERE NOT - col1 IS NOT NULL @@ -10190,8 +10296,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 351 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col1" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \+ Int64\(34\) \+ \(\- sum\(\(\- tab1\.col0\)\)\) \+ Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 66 col1, CAST ( + COUNT ( * ) AS INTEGER ) + 34 + - SUM ( - + col0 ) + + 87 col1 FROM tab1 +---- +-66 +351 query I rowsort label-1690 SELECT - COUNT ( * ) + + + 38 AS col1 FROM tab1 cor0 @@ -10951,8 +11060,15 @@ SELECT ALL - col2 * - + col2 AS col2 FROM tab2 # Datafusion - Expected - -85 # Datafusion - Expected - 6825 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(75\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * 75 col0, - col0 AS col0 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +3825 +6375 +6825 query I rowsort SELECT - col1 AS col0 FROM tab2 cor0 WHERE NOT - col1 + col2 * + - 34 NOT IN ( col2 - - col0 ) @@ -11297,8 +11413,11 @@ SELECT ALL - 28 FROM tab2 AS cor0 WHERE NOT - col0 / + col2 + + col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(67\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MAX ( 67 ) AS col0, COUNT ( * ) AS col0 FROM tab2 +---- +3 +67 query I rowsort label-1878 SELECT DISTINCT - COUNT ( * ) col1 FROM tab1 WHERE NOT NULL IS NULL @@ -11515,8 +11634,15 @@ SELECT col1 * + + col1 FROM tab1 AS cor0 WHERE NULL < NULL # Datafusion - Expected - 67 # Datafusion - Expected - 141 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \+ Int64\(51\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 90 + 51 AS col2, + col1 AS col2 FROM tab2 AS cor0 +---- +141 +141 +141 +51 +67 +77 query I rowsort SELECT DISTINCT + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL @@ -12084,8 +12210,15 @@ SELECT DISTINCT - col1 + + - col2 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col0, col0 AS col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT - + 32 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 @@ -12475,8 +12608,15 @@ SELECT ALL 31 FROM tab2 AS cor0 WHERE col2 < NULL # Datafusion - Expected - 85 # Datafusion - Expected - -91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col1, col0 AS col1 FROM tab1 +---- +-51 +-85 +-91 +51 +85 +91 query I rowsort SELECT DISTINCT + col1 - - 24 AS col2 FROM tab1 @@ -12945,8 +13085,12 @@ SELECT ALL - - ( + 55 ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - 3 # Datafusion - Expected - -199 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- sum\(tab0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT COUNT ( * ) AS col2, - SUM ( + + col0 ) AS col2, - COUNT ( * ) + - COUNT ( DISTINCT - + col2 ) col1 FROM tab0 +---- +-199 +-6 +3 query I rowsort label-2148 SELECT 51 * - CAST ( 68 AS INTEGER ) * COUNT ( * ) FROM tab0 AS cor0 @@ -13645,8 +13789,10 @@ SELECT DISTINCT - COUNT ( + 39 ) + + 25 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 507048ad0c9e1f9a4d6951cb35a64264 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 1 and "tab2\.col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 97 AS col2, + col1, col1 AS col1 FROM tab2 +---- +9 values hashing to 33f8429e99a04ca97a27fe806f85ff40 query I rowsort SELECT ALL - col2 + + + 53 AS col0 FROM tab0 @@ -13752,8 +13898,15 @@ SELECT col2 * + col1 * + col1, col1 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 43 # Datafusion - Expected - 99 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, 43 AS col0 FROM tab0 +---- +10 +43 +43 +43 +47 +99 query I rowsort SELECT - col0 * - - col2 AS col2 FROM tab1 @@ -13998,8 +14151,15 @@ SELECT DISTINCT + + col0, - col2 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, + col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT ALL + col1 - + col1 - + 14 AS col2 FROM tab1 @@ -15506,8 +15666,15 @@ SELECT DISTINCT MIN ( - col1 ) / - - 91 * COUNT ( * ) FROM tab0 # Datafusion - Expected - -2560 # Datafusion - Expected - 3 # Datafusion - Expected - -4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col0" at position 0 and "tab2\.col0 \* \(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 3 AS col0, col0 * - col2 col0 FROM tab2 +---- +-1058 +-2560 +-4350 +3 +3 +3 query II rowsort label-2569 SELECT ALL ( COUNT ( * ) ) - - 6 AS col2, - 55 FROM tab0 WHERE col0 * + col2 + col0 IS NOT NULL @@ -15801,8 +15968,11 @@ SELECT col2 / + - 63 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(tab1\.col1\) / Int64\(4\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( ( + col1 ) ) / + + 4 AS col1, + 10 AS col1 FROM tab1 +---- +10 +11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 705 @@ -16058,8 +16228,15 @@ SELECT ALL 56 AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL # Datafusion - Expected - 81 # Datafusion - Expected - -99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 AS col2, col1 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +1 +21 +81 query I rowsort SELECT ( + col1 ) * - 20 FROM tab2 WHERE ( NULL ) NOT IN ( - col2 ) @@ -16511,8 +16688,15 @@ SELECT COUNT ( * ) FROM tab1 WHERE NOT ( - 34 ) IN ( 52 ) # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( col2 ) AS col1, col2 col1 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query III rowsort SELECT * FROM tab0 WHERE NOT + 59 - - - col1 IS NOT NULL @@ -17513,8 +17697,15 @@ SELECT ALL + + 65 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -39 # Datafusion - Expected - 99 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(\-39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, - 39 AS col0 FROM tab0 AS cor0 +---- +-39 +-39 +-39 +10 +47 +99 query I rowsort SELECT - 87 * - col1 FROM tab1 AS cor0 WHERE NOT + col1 - 44 - col0 NOT IN ( + + col1 ) @@ -17552,8 +17743,15 @@ SELECT DISTINCT + 77 FROM tab1 AS cor0 WHERE col1 IS NULL # Datafusion - Expected - 2 # Datafusion - Expected - -48 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "tab1\.col0 / Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 AS col2, col0 / + 31 AS col2 FROM tab1 +---- +-48 +-48 +-48 +1 +2 +2 query II rowsort SELECT DISTINCT - col2 AS col2, - 6 FROM tab2 @@ -17612,8 +17810,15 @@ SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 38 * col0 = NULL # Datafusion - Expected - 95 # Datafusion - Expected - -71 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ Int64\(\-24\) AS col0" at position 0 and "CAST\(Int64\(95\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + - 24 AS col0, CAST ( + 95 AS INTEGER ) AS col0 FROM tab1 cor0 +---- +-29 +-38 +-71 +95 +95 +95 query II rowsort SELECT DISTINCT - col1 col1, col2 col0 FROM tab2 @@ -17708,8 +17913,9 @@ SELECT * FROM tab1 AS cor0 WHERE + col1 = col0 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - col1 AS col1, col2 + + ( - col2 ) col1, - col0 FROM tab0 AS cor0 WHERE ( - 36 ) BETWEEN col1 + - col0 AND NULL +---- query I rowsort SELECT ALL col1 * + + col1 FROM tab1 cor0 WHERE ( NULL ) <= NULL @@ -17817,8 +18023,15 @@ SELECT ALL + col1 + + - 44 * - col0 AS col0 FROM tab2 # Datafusion - Expected - 1187 # Datafusion - Expected - -2 # Datafusion - Expected - 4570 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col2" at position 0 and "Int64\(57\) \* tab0\.col1 \+ \(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 2 AS col2, 57 * + col1 + - col2 col2 FROM tab0 +---- +-2 +-2 +-2 +-42 +1187 +4570 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -17847,8 +18060,15 @@ SELECT - col2 + - - col2 FROM tab2 # Datafusion - Expected - -147 # Datafusion - Expected - 93 # Datafusion - Expected - -184 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ Int64\(79\) AS col1" at position 0 and "Int64\(\-62\) \+ \(\- CAST\(Int64\(26\) AS Int32\)\) \+ \(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 + 79 AS col1, - 62 + + ( - CAST ( + 26 AS INTEGER ) ) + - col2 col1 FROM tab1 +---- +-147 +-156 +-184 +126 +84 +93 query I rowsort SELECT + col0 + - - ( - - 25 ) FROM tab0 @@ -18429,8 +18649,15 @@ SELECT ALL + 82 AS col0, + 12 + + col1 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -58 # Datafusion - Expected - 24 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 24 AS col1, - 58 col1 FROM tab2 AS cor0 +---- +-58 +-58 +-58 +24 +24 +24 query I rowsort SELECT DISTINCT - col2 * + + 17 * + col0 col0 FROM tab2 AS cor0 @@ -18826,8 +19053,15 @@ SELECT - col0 * + 21 FROM tab0 AS cor0 # Datafusion - Expected - 295 # Datafusion - Expected - 91 # Datafusion - Expected - 3196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col2 \* tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 col2, col2 * col1 AS col2 FROM tab1 +---- +1344 +295 +3196 +51 +85 +91 query I rowsort label-3102 SELECT ALL - MIN ( DISTINCT 47 ) FROM tab2 @@ -19367,8 +19601,15 @@ SELECT + ( - col2 ) + 72 FROM tab2 WHERE NOT NULL NOT IN ( + col2 ) # Datafusion - Expected - 97 # Datafusion - Expected - 570 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* Int64\(57\) AS col1" at position 0 and "tab0\.col0 \+ Int64\(41\) / Int64\(\-89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 * 57 AS col1, + col0 + 41 / - 89 AS col1 FROM tab0 +---- +15 +2679 +5643 +570 +87 +97 query I rowsort label-3194 SELECT ALL SUM ( DISTINCT 75 ) AS col1 FROM tab2 @@ -20192,8 +20433,15 @@ SELECT ALL 0 col1 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -70 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab1\.col1\) AS Int32\) \* Int64\(14\) AS col0" at position 0 and "tab1\.col0 \* tab1\.col2 \- Int64\(18\) \- Int64\(\-82\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - col1 AS INTEGER ) * 14 AS col0, col0 * + col2 - 18 - - 82 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 +---- +-196 +-658 +-70 +NULL +NULL +NULL query I rowsort label-3329 SELECT DISTINCT col2 * - CAST ( col0 AS INTEGER ) FROM tab2 @@ -21258,8 +21506,15 @@ SELECT DISTINCT * FROM tab0 WHERE + + col0 / col2 BETWEEN NULL AND - - CAST ( NU # Datafusion - Expected - 27 # Datafusion - Expected - 81 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, + 27 AS col2 FROM tab0 +---- +1 +21 +27 +27 +27 +81 query I rowsort label-3513 SELECT DISTINCT - 92 * - + CAST ( NULL AS INTEGER ) FROM tab0 @@ -21419,8 +21674,15 @@ SELECT DISTINCT 53 col2 FROM tab0 # Datafusion - Expected - 83 # Datafusion - Expected - 58 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, 83 AS col1 FROM tab2 AS cor0 +---- +23 +40 +58 +83 +83 +83 query I rowsort SELECT - 33 * col0 FROM tab0 AS cor0 @@ -22362,8 +22624,9 @@ SELECT DISTINCT - CAST ( col2 AS INTEGER ) + - + 12 AS col2 FROM tab0 -59 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "\(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col2, - col2 AS col2 FROM tab1 WHERE NOT NULL BETWEEN + - 70 AND NULL +---- query I rowsort SELECT DISTINCT + 65 col1 FROM tab0 @@ -23036,8 +23299,15 @@ SELECT DISTINCT + - MIN ( ALL - + col2 ) col2 FROM tab0 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \* cor0\.col0 \+ \(\- cor0\.col0\) \+ \(\- cor0\.col0\) \+ cor0\.col0 \+ cor0\.col1 \+ cor0\.col0 \* \(\- CAST\(NULL AS Int32\)\) \* \(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 85 * + col0 + - col0 + - col0 + + col0 + + col1 + + + col0 * - CAST ( NULL AS INTEGER ) * - - col0 AS col1, ( col0 ) AS col1 FROM tab1 AS cor0 +---- +51 +85 +91 +NULL +NULL +NULL query I rowsort SELECT ALL - col2 AS col0 FROM tab2 cor0 WHERE NOT - 19 IS NULL @@ -23307,8 +23577,11 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + + + 88 * - 92 / col2 + + 57 * + # Datafusion - Datafusion expected results: # Datafusion - Expected - 4015 # Datafusion - Expected - 105 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT cor0\.col1\) \* Int64\(11\) \+ \(\- \(\- Int64\(44\)\)\) \* Int64\(72\) AS col0" at position 0 and "Int64\(35\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( DISTINCT + col1 ) * + 11 + - - ( 44 ) * + 72 AS col0, + 35 * COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +105 +4015 query I rowsort label-3855 SELECT ALL MIN ( + + col1 ) FROM tab1 AS cor0 @@ -23521,8 +23794,15 @@ SELECT + col0 * + + 36 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col1, col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-3889 SELECT DISTINCT + COUNT ( - - 72 ) AS col0 FROM tab1 @@ -23552,8 +23832,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 21 AS col0, - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 +---- +-21 +-9 query I rowsort label-3895 SELECT - 30 * + + 2 + - COUNT ( * ) FROM tab0 WHERE ( col1 + 74 IS NOT NULL ) @@ -24184,8 +24467,9 @@ SELECT ALL - col2 * + - 8 + - - col0 AS col1, col0 FROM tab2 75 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* \(\- Int64\(\-2\)\) AS col1" at position 0 and "\(\- \(\- Int64\(47\)\)\) \* Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * - - 2 AS col1, - ( - + 47 ) * + 65 AS col1 FROM tab2 WHERE - ( col0 ) IS NULL +---- query I rowsort SELECT DISTINCT col2 + + + col2 * + - 3 FROM tab0 @@ -24336,8 +24620,15 @@ SELECT ALL - + 52 col1 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "\(\- CAST\(NULL AS Float64\)\) \* Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - + col1 col1, - CAST ( NULL AS FLOAT8 ) * - 84 AS col1 FROM tab0 cor0 +---- +-1 +-21 +-81 +NULL +NULL +NULL query II rowsort SELECT DISTINCT + 67, + ( ( col1 ) ) AS col2 FROM tab2 AS cor0 @@ -24535,8 +24826,15 @@ SELECT ( - - col0 ) col0 FROM tab2 # Datafusion - Expected - 71 # Datafusion - Expected - -563108 # Datafusion - Expected - 122 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* CAST\(\(\- tab1\.col0\) AS Int32\) \* tab1\.col2 AS col2" at position 0 and "Int64\(7\) \+ tab1\.col1 \- \(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * + CAST ( - + col0 AS INTEGER ) * col2 AS col2, 7 + + col1 - - + col2 col2 FROM tab1 +---- +-249696 +-426275 +-563108 +117 +122 +71 query I rowsort SELECT ALL + col2 * col1 * - 63 col2 FROM tab0 @@ -24737,8 +25035,15 @@ SELECT + ( + - COUNT ( * ) ) FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, + col1 AS col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-4085 SELECT DISTINCT SUM ( col0 ) AS col2 FROM tab2 AS cor0 @@ -25386,8 +25691,11 @@ SELECT + COUNT ( ALL + 99 ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +3 +3 query II rowsort SELECT + col1 AS col0, + col2 FROM tab0 cor0 @@ -25857,8 +26165,15 @@ SELECT DISTINCT + 69 col2 FROM tab0 # Datafusion - Expected - 68 # Datafusion - Expected - -2494 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \* Int64\(29\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 86 * + 29 AS col1, col2 AS col1 FROM tab1 +---- +-2494 +-2494 +-2494 +59 +68 +96 query III rowsort label-4275 SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( CAST ( - col1 AS INTEGER ) ) IS NOT NULL @@ -26566,8 +26881,15 @@ SELECT 62 AS col2, + COUNT ( * ) / + 48 FROM tab0 # Datafusion - Expected - 81 # Datafusion - Expected - 99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, + col1 AS col0 FROM tab0 +---- +1 +10 +21 +47 +81 +99 query I rowsort SELECT col2 * - - 79 col1 FROM tab2 @@ -26600,8 +26922,15 @@ SELECT - col2 FROM tab1 AS cor0 WHERE NOT 51 IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - -75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* cor0\.col1 \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col0 AS col0, CAST ( NULL AS INTEGER ) * col1 * + + col0 AS col0 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +NULL +NULL +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -27498,8 +27827,15 @@ SELECT ALL - SUM ( + col2 ) FROM tab1 cor0 # Datafusion - Expected - -53 # Datafusion - Expected - -97 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "\(\- Int64\(53\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, - ( + 53 ) AS col2 FROM tab0 AS cor0 +---- +-15 +-53 +-53 +-53 +-87 +-97 query I rowsort SELECT ALL - + 14 col0 FROM tab1 AS cor0 @@ -27511,8 +27847,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + COUNT ( ALL - 33 ) * - - COUNT ( * ) AS col0, - COUNT ( * ) AS col0 FROM tab2 cor0 +---- +-3 +9 query I rowsort SELECT - col1 * - + ( + - 95 ) AS col1 FROM tab2 @@ -27542,8 +27881,15 @@ SELECT DISTINCT - MIN ( - col2 ) FROM tab2 # Datafusion - Expected - -3128 # Datafusion - Expected - -5 # Datafusion - Expected - -236 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col0" at position 0 and "tab1\.col2 \+ tab1\.col1 \* CAST\(\(\- tab1\.col2\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, + col2 + + col1 * CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 +---- +-1248 +-14 +-236 +-3128 +-47 +-5 query I rowsort SELECT - 28 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL @@ -28465,8 +28811,15 @@ SELECT DISTINCT * FROM tab0 WHERE + 16 * + 49 <= NULL # Datafusion - Expected - 8783 # Datafusion - Expected - 5 # Datafusion - Expected - 8165 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "\(\- \(\- cor0\.col1\)\) \+ \(\- Int64\(\-96\)\) \* \(\- \(\- cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col1 AS col2, - ( - col1 ) + - - 96 * - ( + - col0 ) AS col2 FROM tab1 AS cor0 +---- +14 +47 +4910 +5 +8165 +8783 query I rowsort SELECT col0 * - col1 + + + col0 FROM tab2 cor0 WHERE NOT col2 + + - col2 + - col1 IS NULL @@ -29204,8 +29557,15 @@ SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 88 <= NULL # Datafusion - Expected - -30 # Datafusion - Expected - 64 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "Int64\(\-30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 AS col0, - 30 AS col0 FROM tab0 AS cor0 +---- +-30 +-30 +-30 +64 +64 +64 query III rowsort SELECT * FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + col2 + col0 * + col2 @@ -29560,8 +29920,15 @@ NULL # Datafusion - Expected - -91 # Datafusion - Expected - 850 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* cor0\.col2 \- cor0\.col1 AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 * + + col2 - + col1 AS col1, ( - col0 ) AS col1 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +526 +565 +850 query I rowsort SELECT + col0 - + - 8 AS col0 FROM tab0 AS cor0 @@ -30474,8 +30841,10 @@ SELECT ALL * FROM tab1 cor0 WHERE col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 3d652f3d466d81f04bf14e3700b045e0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 1 and "cor0\.col1 \+ cor0\.col2 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + ( - + col2 ) / + col1 + col2 AS col0, col0 col1, col1 + col2 AS col1 FROM tab2 AS cor0 +---- +9 values hashing to be285272fe476c9664520fd0eeb2d788 query I rowsort label-5016 SELECT - 54 / COUNT ( * ) * - - MAX ( ALL + - col2 ) FROM tab0 AS cor0 @@ -31149,8 +31518,15 @@ SELECT ALL - MIN ( ALL + col2 ) FROM tab1 AS cor0 # Datafusion - Expected - -3995 # Datafusion - Expected - 29 # Datafusion - Expected - -425 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "cor0\.col1 \* Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 AS col1, col1 * + - 85 AS col1 FROM tab1 AS cor0 +---- +-1190 +-3995 +-425 +29 +29 +29 query II rowsort SELECT ALL - col0 AS col1, 93 AS col2 FROM tab0 AS cor0 @@ -31324,8 +31700,15 @@ SELECT * FROM tab2 cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) / + 74 IS NOT NUL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col1 AS Int32\)" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( + col1 AS INTEGER ), + col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query II rowsort SELECT ALL col0 * - - col2, - col1 AS col1 FROM tab2 @@ -32331,8 +32714,15 @@ SELECT ALL - - col1 * + - col0 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 1 # Datafusion - Expected - 628 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) / cor0\.col2 \* \(\- Int64\(\-59\)\) \* \(\- \(\- cor0\.col0\)\) / \(\- cor0\.col0\) \+ cor0\.col0 \+ \(\- \(\- cor0\.col2\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 91 / col2 * ( - - 59 ) * + ( - - col0 ) / - col0 + + + col0 + - - col2 AS col2, col1 AS col2 FROM tab0 AS cor0 +---- +1 +121 +196 +21 +628 +81 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NULL = ( - col0 ) + + col0 @@ -32345,8 +32735,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NULL = ( - col0 ) + + col0 # Datafusion - Expected - 95 # Datafusion - Expected - 58 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col1, 95 AS col1 FROM tab2 AS cor0 +---- +23 +40 +58 +95 +95 +95 query I rowsort SELECT - + ( + 96 ) FROM tab1 AS cor0 @@ -32548,8 +32945,15 @@ SELECT DISTINCT * FROM tab1 WHERE ( col2 ) <= col2 / - 93 # Datafusion - Expected - 77 # Datafusion - Expected - -75 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, col1 AS col0 FROM tab2 +---- +-46 +-64 +-75 +51 +67 +77 query I rowsort label-5361 SELECT ALL MIN ( - 88 ) * MAX ( DISTINCT + + col2 ) AS col1 FROM tab0 @@ -32677,8 +33081,10 @@ SELECT - 39 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a6e2bd97c6c29b41597e96e53086bec0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col2" at position 1 and "tab1\.col1 \+ \(\- tab1\.col2\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IRI valuesort SELECT 34, CAST ( NULL AS FLOAT8 ) AS col2, + + col1 + - col2 col2 FROM tab1 +---- +9 values hashing to f6e10da42ba849215f69e1da09c67449 query II rowsort SELECT ALL - col2 AS col1, + ( + 72 ) FROM tab0 AS cor0 @@ -32978,8 +33384,11 @@ SELECT ALL CAST ( - col2 AS INTEGER ) + - col2 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(\-62\)\) AS col2" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( DISTINCT - 62 ) AS col2, CAST ( COUNT ( * ) AS INTEGER ) * - - COUNT ( * ) AS col2 FROM tab1 +---- +-62 +9 query IIIIII rowsort SELECT * FROM tab1, tab2 AS cor0 WHERE NOT + 0 = - + 8 @@ -33099,8 +33508,15 @@ SELECT MAX ( ALL + - 44 ) FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 AS col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-5450 SELECT ALL ( CAST ( + col1 AS INTEGER ) ) col2 FROM tab2 WHERE NOT NULL IS NOT NULL @@ -33562,8 +33978,11 @@ SELECT * FROM tab1 AS cor0 WHERE NULL > 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) col0, + 92 AS col0 FROM tab2 +---- +3 +92 query I rowsort SELECT - col1 FROM tab0 WHERE + - col2 + - col1 < + - col0 @@ -34318,8 +34737,15 @@ SELECT - col0 col1, 93 AS col2 FROM tab1 WHERE NOT NULL IS NULL # Datafusion - Expected - -21 # Datafusion - Expected - 97 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "\(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, - col1 AS col2 FROM tab0 +---- +-1 +-21 +-81 +15 +87 +97 query I rowsort SELECT ALL + col1 + + ( - col0 ) + - ( + 8 ) * + 3 FROM tab1 @@ -35034,8 +35460,11 @@ 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\(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\. +query II valuesort SELECT - - COUNT ( * ) AS col2, MIN ( - col2 ) AS col2 FROM tab0 AS cor0 +---- +-99 +3 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + col1 - - + col1 - - col0 + col0 * + + 94 + - col2 - - + col0 = + col2 @@ -35596,8 +36025,15 @@ SELECT col2 + - col1 / col0 AS col1 FROM tab2 # Datafusion - Expected - 201 # Datafusion - Expected - 5005 # Datafusion - Expected - 231 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* Int64\(66\) \+ \(\- tab2\.col1\) AS col2" at position 0 and "tab2\.col1 \* Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * 66 + - + col1 AS col2, col1 * + + 3 col2 FROM tab2 +---- +153 +201 +231 +3315 +4355 +5005 query I rowsort SELECT ALL - 45 FROM tab0 WHERE NOT NULL IS NULL AND NULL IS NULL @@ -35788,8 +36224,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - COUNT ( * ) ) col2, + 57 AS col2 FROM tab1 +---- +3 +57 query III rowsort SELECT ALL * FROM tab0 WHERE NOT - + 90 - + col0 IS NULL @@ -36109,8 +36548,15 @@ SELECT COUNT ( DISTINCT + col2 ) AS col2 FROM tab2 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, col0 AS col2 FROM tab1 WHERE + col2 IS NOT NULL +---- +51 +51 +85 +85 +91 +91 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * + - col1 >= NULL @@ -37460,8 +37906,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 +---- +3 +3 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT 93 NOT BETWEEN NULL AND NULL @@ -37941,8 +38390,11 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 157 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "Int64\(29\) \+ Int64\(68\) \+ Int64\(20\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 78 AS col2, + 29 + 68 + + 20 * + COUNT ( * ) col2 FROM tab1 AS cor0 +---- +157 +78 query I rowsort SELECT DISTINCT ( 80 ) + + + col2 FROM tab0 cor0 @@ -39213,8 +39665,15 @@ SELECT 47 AS col1, 9 * + + COUNT ( * ) * - 67 FROM tab2 AS cor0 # Datafusion - Expected - 174 # Datafusion - Expected - 3809 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- cor0\.col1\) \+ Int64\(2\) AS col2" at position 0 and "cor0\.col0 \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 * - col1 + + 2 AS col2, col0 + + col0 AS col2 FROM tab0 AS cor0 +---- +101 +174 +194 +212 +30 +3809 query I rowsort SELECT ALL + + ( + - ( + 75 ) ) FROM tab2 AS cor0 @@ -40131,8 +40590,15 @@ SELECT ALL + col2 * 97 * + - 1, + col1 AS col1 FROM tab2 # Datafusion - Expected - -88 # Datafusion - Expected - -55144 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* Int64\(\-25\) \* \(\- cor0\.col2\) \+ cor0\.col1 AS col2" at position 0 and "Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 * - 25 * - col2 + + + col1 AS col2, - 88 AS col2 FROM tab0 AS cor0 +---- +-245024 +-2479 +-55144 +-88 +-88 +-88 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * + col2 <> ( NULL ) @@ -40403,8 +40869,15 @@ SELECT ALL * FROM tab2 WHERE NOT col0 * - col2 IS NULL # Datafusion - Expected - 58 # Datafusion - Expected - 74 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \+ tab2\.col2 \+ tab2\.col0 / Int64\(76\) \* tab2\.col0 AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 + + col2 + + col0 / 76 * + col0 AS col1, col2 AS col1 FROM tab2 +---- +117 +125 +23 +40 +58 +74 query I rowsort SELECT DISTINCT - + ( + col0 ) AS col0 FROM tab0 cor0 @@ -40745,8 +41218,15 @@ SELECT DISTINCT - + col2 col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL # Datafusion - Expected - 44 # Datafusion - Expected - 5 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 \- \(\- \(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, + col0 - + - ( - col1 ) col2 FROM tab1 AS cor0 +---- +14 +37 +44 +47 +5 +80 query I rowsort SELECT ALL - 56 * col0 * - - ( - col1 ) * + + col2 - + + 75 FROM tab0 AS cor0 @@ -41118,8 +41598,15 @@ SELECT * FROM tab2 cor0 WHERE + col0 + 70 IS NOT NULL # Datafusion - Expected - 90 # Datafusion - Expected - -884736 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \* cor0\.col2 \* \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 * + col2 * - ( + col2 ) AS col1, 90 AS col1 FROM tab1 AS cor0 +---- +-205379 +-314432 +-884736 +90 +90 +90 query I rowsort label-6794 SELECT ALL + COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab2 AS cor0 @@ -41732,8 +42219,10 @@ SELECT col2 * + - col1 + + - col1, col2 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to e186930d90eb348073959b42f425a097 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + col1, + 83 * 77, + col1 FROM tab0 +---- +9 values hashing to 9ef49489a90ac23ea47bba5b4f342311 query I rowsort label-6894 SELECT ALL - col0 / - ( 29 ) + - - 11 + + - col1 + - CAST ( + + col2 AS INTEGER ) FROM tab0 AS cor0 @@ -41790,8 +42279,15 @@ SELECT COUNT ( * ) - + 60 AS col2 FROM tab1 # Datafusion - Expected - 23 # Datafusion - Expected - 96 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 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 II valuesort SELECT + col2 AS col1, col0 - + col2 AS col1 FROM tab1 cor0 +---- +-45 +23 +26 +59 +68 +96 query I rowsort label-6902 SELECT DISTINCT - MIN ( + - ( - col0 ) ) * - - 1 FROM tab0 AS cor0 @@ -41814,8 +42310,15 @@ SELECT DISTINCT + MIN ( + ( + 66 ) ) * - 69 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 182 # Datafusion - Expected - 96 # Datafusion - Expected - 109 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(44\) \+ \(\- \(\- cor0\.col0\)\) \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, ( 44 ) + - - col0 + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL +---- +109 +134 +182 +59 +68 +96 query I rowsort label-6906 SELECT + - SUM ( - + col0 ) FROM tab1 AS cor0 @@ -41829,8 +42332,15 @@ SELECT + - SUM ( - + col0 ) FROM tab1 AS cor0 # Datafusion - Expected - 157035 # Datafusion - Expected - 90 # Datafusion - Expected - 8245 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "cor0\.col1 \* cor0\.col0 \* \(\- Int64\(\-86\)\) \+ \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( 90 ) AS col2, col1 * + + col0 * - - 86 + - col0 AS col2 FROM tab0 AS cor0 +---- +104475 +157035 +8245 +90 +90 +90 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 @@ -41839,8 +42349,15 @@ SELECT + + ( 90 ) AS col2, col1 * + + col0 * - - 86 + - col0 AS col2 FROM tab0 A # Datafusion - Expected - 62 # Datafusion - Expected - -99 # Datafusion - Expected - 196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col0" at position 0 and "tab0\.col2 \+ tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, + col2 + col0 AS col0 FROM tab0 +---- +-10 +-47 +-99 +196 +62 +97 query II rowsort label-6909 SELECT ALL 51 / + CAST ( + - col0 AS INTEGER ), col0 FROM tab2 @@ -42080,8 +42597,15 @@ SELECT col1 * - + 41 * 1 AS col2 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - -82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ \(\- tab1\.col2\) AS col0" at position 0 and "CAST\(NULL AS Float64\) \* Int64\(\-77\) \* \(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL col1 + - + col2 AS col0, + CAST ( NULL AS FLOAT8 ) * + - 77 * - + col0 AS col0 FROM tab1 +---- +-21 +-54 +-82 +NULL +NULL +NULL query II rowsort label-6946 SELECT - COUNT ( ALL col0 ) AS col2, - COUNT ( + + col1 ) * + 90 FROM tab1 @@ -43118,8 +43642,9 @@ SELECT - COUNT ( * ) FROM tab1 WHERE NOT 65 IS NOT NULL 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ cor0\.col0 \* \(\- cor0\.col1\) AS col0" at position 0 and "CAST\(\(\- cor0\.col2\) AS Float64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL + 60 + + + col0 * - col1 col0, + CAST ( - + col2 AS FLOAT8 ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL +---- query I rowsort SELECT ALL - 7 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL @@ -43468,8 +43993,15 @@ SELECT - 83 - - - MIN ( ALL - - col2 ) AS col1 FROM tab0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0, col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query III rowsort SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 AND ( + + 30 ) @@ -43882,8 +44414,15 @@ SELECT DISTINCT - COUNT ( * ) - + - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM # Datafusion - Expected - NULL # Datafusion - Expected - 637 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* Int64\(\-11\) \- cor0\.col0 \+ Int64\(74\) AS col1" at position 0 and "cor0\.col2 \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(43\) \* cor0\.col2 \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 * - 11 - + col0 + + ( + + 74 ) AS col1, col2 * - CAST ( NULL AS INTEGER ) * + + 43 * col2 + + col2 AS col1 FROM tab2 cor0 +---- +281 +450 +637 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN col0 * - 7 AND - col1 + col0 @@ -44975,8 +45514,15 @@ SELECT - + col1 * + + col2 - + col0 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 32 # Datafusion - Expected - 26 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-26\)\) AS col2" at position 0 and "Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 26 AS col2, 32 AS col2 FROM tab2 AS cor0 +---- +26 +26 +26 +32 +32 +32 query I rowsort SELECT DISTINCT - 2 FROM tab2 cor0 WHERE NOT 36 + - 89 IS NOT NULL @@ -45720,8 +46266,15 @@ SELECT DISTINCT 81 * - 56 FROM tab0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 AS col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-7546 SELECT ALL CAST ( NULL AS INTEGER ) / + COUNT ( * ) / - ( 61 ) FROM tab1 @@ -46075,8 +46628,15 @@ NULL # Datafusion - Expected - 40 # Datafusion - Expected - 5492 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ Int64\(74\) \* cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 + + + 74 * + col0 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +23 +3381 +40 +4696 +5492 +58 query I rowsort SELECT ALL - col0 * - + col1 * - col2 FROM tab0 cor0 @@ -46193,8 +46753,15 @@ SELECT col0, ( + ( + - col2 ) ) AS col1 FROM tab0 # Datafusion - Expected - -64 # Datafusion - Expected - 10 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col0" at position 0 and "\(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 10 AS col0, + ( - col0 ) AS col0 FROM tab2 +---- +-46 +-64 +-75 +10 +10 +10 query I rowsort SELECT DISTINCT - col1 + + 31 AS col1 FROM tab0 @@ -46341,8 +46908,9 @@ SELECT - - MIN ( - col1 ) AS col1 FROM tab0 AS cor0 -81 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col0 AS col0, ( - ( - + col1 ) ) AS col2, + 4 AS col0 FROM tab0 WHERE NOT NULL <= - - 6 +---- query I rowsort label-7649 SELECT COUNT ( DISTINCT + col2 ) FROM tab2 AS cor0 @@ -46457,8 +47025,11 @@ SELECT DISTINCT col2 + - 37 + - col1 * - 80 + 10 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, - 58 AS col1 FROM tab0 +---- +-58 +3 query I rowsort SELECT - col1 * + - col2 - - col1 FROM tab1 @@ -46916,8 +47487,15 @@ SELECT ALL * FROM tab0 WHERE NOT - + 44 > + 93 # Datafusion - Expected - -20 # Datafusion - Expected - 81 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "Int64\(\-20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col0, - 20 AS col0 FROM tab0 +---- +-20 +-20 +-20 +1 +21 +81 query I rowsort SELECT - 63 * - 46 FROM tab0 @@ -48414,8 +48992,15 @@ SELECT - col1 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col0, + col0 AS col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query II rowsort SELECT + col1 AS col2, - col2 + 57 + + 89 FROM tab2 @@ -48680,8 +49265,15 @@ SELECT + + col1 FROM tab1 AS cor0 WHERE NOT col1 IS NULL # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col0 AS Int32\)" at position 0 and "CAST\(cor0\.col0 AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + CAST ( + + col0 AS INTEGER ), + CAST ( + col0 AS INTEGER ) FROM tab2 cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-8034 SELECT ALL SUM ( + 87 ) FROM tab2 @@ -48764,8 +49356,15 @@ SELECT + col2, + 92 * 42 FROM tab1 AS cor0 # Datafusion - Expected - -4585 # Datafusion - Expected - NULL # Datafusion - Expected - -4909 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "cor0\.col0 \* Int64\(\-55\) \+ cor0\.col0 \- \(\- Int64\(5\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 70 + - - CAST ( NULL AS INTEGER ) col0, col0 * - 55 + col0 - - + 5 col0 FROM tab1 AS cor0 +---- +-2749 +-4585 +-4909 +NULL +NULL +NULL query I rowsort label-8047 SELECT - MIN ( ALL - 50 ) FROM tab1 cor0 @@ -49976,8 +50575,15 @@ SELECT ALL col2 * + ( 4 ) AS col2 FROM tab0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col2, + col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-8248 SELECT ALL - MIN ( DISTINCT col1 ) * - COUNT ( * ) FROM tab2 AS cor0 @@ -50033,8 +50639,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT - 15 * + + col0 IS NOT NULL # Datafusion - Expected - -67 # Datafusion - Expected - 0 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) / \(\- tab2\.col1\) AS col0" at position 0 and "\(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 / - col1 AS col0, - col1 AS col0 FROM tab2 +---- +-51 +-67 +-77 +0 +0 +0 query I rowsort SELECT DISTINCT + col2 + + - col1 FROM tab1 @@ -50749,8 +51362,15 @@ SELECT ALL * FROM tab2 WHERE NOT - - 78 = NULL # Datafusion - Expected - 23 # Datafusion - Expected - -96 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "tab1\.col0 \- tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, col0 - + col2 AS col1 FROM tab1 +---- +-45 +-59 +-68 +-96 +23 +26 query I rowsort label-8370 SELECT - + 43 / + col0 - + 37 col1 FROM tab2 cor0 @@ -52205,8 +52825,9 @@ SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) * + - 71 AS col1 FROM tab0 -639 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 AS col1, ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 WHERE NOT ( NOT NULL = + col0 ) +---- query I rowsort SELECT ALL + col2 * col2 + - 45 * + ( + col1 ) FROM tab0 cor0 @@ -52256,8 +52877,11 @@ SELECT ( col0 ), 0 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \* Int64\(\-14\) AS col0" at position 0 and "Int64\(\-39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 4 * - 14 AS col0, - 39 col0 FROM tab1 +---- +-39 +56 query I rowsort label-8621 SELECT - 5 + + COUNT ( * ) + 54 FROM tab0 @@ -52452,8 +53076,11 @@ SELECT ALL * FROM tab2 WHERE ( + - col2 ) = col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 18 AS col2, + COUNT ( * ) AS col2 FROM tab2 +---- +-18 +3 query III rowsort SELECT DISTINCT * FROM tab1 WHERE - 97 + - col1 < + col1 @@ -52964,8 +53591,15 @@ SELECT ALL + COUNT ( DISTINCT col2 ) * + 45 + - - 54 col2 FROM tab0 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - -75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\)" at position 0 and "\(\- tab2\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0, - col0 FROM tab2 +---- +-46 +-46 +-64 +-64 +-75 +-75 query III rowsort SELECT * FROM tab1 WHERE 70 IS NULL @@ -53671,8 +54305,15 @@ SELECT col2 * 63 * - col1 col0 FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE 40 * col0 IS NOT NULL @@ -54845,8 +55486,15 @@ NULL # Datafusion - Expected - 552 # Datafusion - Expected - 55 # Datafusion - Expected - 960 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "tab2\.col2 \* \(\- Int64\(\-24\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 55 col2, + col2 * - ( - 24 ) AS col2 FROM tab2 +---- +1392 +55 +55 +55 +552 +960 query I rowsort SELECT - - 36 * + col0 AS col0 FROM tab2 AS cor0 @@ -55163,8 +55811,15 @@ SELECT DISTINCT col1, 92 FROM tab2 # Datafusion - Expected - -15309 # Datafusion - Expected - 58 # Datafusion - Expected - -15309 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "Int64\(\-9\) \* Int64\(21\) \* Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, - 9 * + 21 * + 81 col0 FROM tab2 +---- +-15309 +-15309 +-15309 +23 +40 +58 query II rowsort SELECT + col0 + col0 AS col1, + col2 col0 FROM tab1 @@ -56300,8 +56955,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + COUNT ( * ) AS col1, - 15 AS col1 FROM tab1 cor0 +---- +-15 +-3 query II rowsort label-9282 SELECT - 24, ( + + COUNT ( ALL + col2 ) ) - - 28 AS col0 FROM tab0 AS cor0 @@ -56667,8 +57325,11 @@ SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= - + col1 * + 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 AS col1, COUNT ( * ) col1 FROM tab1 AS cor0 +---- +3 +68 query II rowsort SELECT DISTINCT + - col1 AS col2, + 72 AS col1 FROM tab2 AS cor0 @@ -56712,8 +57373,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN col2 AND + + col0 # Datafusion - Expected - -64 # Datafusion - Expected - -1 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) / Int64\(55\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 74 / + 55 AS col0, - col0 AS col0 FROM tab2 AS cor0 +---- +-1 +-1 +-1 +-46 +-64 +-75 query I rowsort SELECT DISTINCT - ( - + 75 ) FROM tab0 AS cor0 @@ -56727,8 +57395,11 @@ SELECT ALL - 38 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(33\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "max\(DISTINCT \(\- tab2\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) * 33 + + COUNT ( * ) AS col2, MAX ( DISTINCT - + col2 ) AS col2 FROM tab2 +---- +-23 +NULL query I rowsort SELECT ALL 58 + - col0 AS col2 FROM tab2 @@ -57204,8 +57875,15 @@ SELECT DISTINCT col1 * + + col0 * - col1 col2 FROM tab1 # Datafusion - Expected - 73 # Datafusion - Expected - NULL # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* \(\- CAST\(NULL AS Float64\)\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + col1 * - + CAST ( NULL AS FLOAT8 ) AS col2, + 73 AS col2 FROM tab1 +---- +73 +73 +73 +NULL +NULL +NULL query I rowsort label-9432 SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT NULL BETWEEN NULL AND + - ( + col0 ) @@ -57522,8 +58200,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ), - COUNT ( * ) FROM tab2 AS cor0 +---- +-3 +-3 query I rowsort label-9486 SELECT DISTINCT + MIN ( ALL + + 30 ) + + COUNT ( * ) FROM tab0 @@ -57836,8 +58517,15 @@ SELECT ALL - ( + 60 ) FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col1, col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT ( - + 64 ) FROM tab0 AS cor0 @@ -58251,8 +58939,15 @@ SELECT * FROM tab1 WHERE NOT ( + - 45 / + col1 + + col2 ) IS NULL # Datafusion - Expected - 66 # Datafusion - Expected - 37 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 AS col2, 66 AS col2 FROM tab2 +---- +37 +37 +37 +66 +66 +66 query I rowsort SELECT - 72 * col0 + - - col0 FROM tab2 AS cor0 @@ -58280,8 +58975,15 @@ SELECT - MAX ( DISTINCT + 94 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 104 # Datafusion - Expected - -75 # Datafusion - Expected - 133 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col0 \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, + col0 + + + col2 AS col0 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +104 +133 +69 query I rowsort SELECT DISTINCT 67 * col2 AS col1 FROM tab0 cor0 @@ -58570,8 +59272,15 @@ SELECT DISTINCT + col2 + + 60 - + col0 * 53 + + - col2 - + col1 + - 16 * + col0 # Datafusion - Expected - -14 # Datafusion - Expected - 54 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ Int64\(\-42\) AS col0" at position 0 and "Int64\(\-14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + + col2 ) + - 42 AS col0, - 14 col0 FROM tab1 +---- +-14 +-14 +-14 +17 +26 +54 query II rowsort SELECT - col2 * - - 66 * + - col1, + 58 AS col1 FROM tab1 @@ -59440,8 +60149,15 @@ SELECT - + 94 * + 94 + - - 57 AS col0, - 93 + + col0 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 5 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - + ( - col1 ) ) AS col1, + ( + + col2 ) AS col1 FROM tab1 AS cor0 +---- +14 +47 +5 +59 +68 +96 query II rowsort SELECT ALL + col2, 93 AS col1 FROM tab0 AS cor0 @@ -59604,8 +60320,15 @@ SELECT DISTINCT - ( - 35 ) * col1 + col0, + col0 AS col2 FROM tab0 # Datafusion - Expected - 40 # Datafusion - Expected - -57 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 57 AS col1, col2 col1 FROM tab2 +---- +-57 +-57 +-57 +23 +40 +58 query I rowsort SELECT + + col1 AS col1 FROM tab0 WHERE + col2 IS NULL diff --git a/data/sqlite/random/aggregates/slt_good_56.slt b/data/sqlite/random/aggregates/slt_good_56.slt index 95d9089..b80b579 100644 --- a/data/sqlite/random/aggregates/slt_good_56.slt +++ b/data/sqlite/random/aggregates/slt_good_56.slt @@ -58,8 +58,15 @@ NULL # Datafusion - Expected - -3240 # Datafusion - Expected - 99 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(40\) \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, 40 * - + col1 col1 FROM tab0 AS cor0 +---- +-3240 +-40 +-840 +10 +47 +99 query I rowsort SELECT ALL + 67 * - + 75 * 2 FROM tab1 AS cor0 @@ -80,8 +87,15 @@ SELECT ALL + - 58 / + + MAX ( + + 40 ) FROM tab0 AS cor0 # Datafusion - Expected - 94 # Datafusion - Expected - -97 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, + 94 AS col2 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +94 +94 +94 query II rowsort SELECT - col2 AS col2, + col1 FROM tab2 AS cor0 @@ -894,8 +908,15 @@ SELECT - 99 * - - col0 AS col2 FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 col1, + col1 AS col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-139 SELECT - ( + MIN ( ALL - + 72 ) ) / SUM ( ALL - + 30 ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0 @@ -1996,8 +2017,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * - COUNT ( * ) AS col2, 32 / + - 46 AS col2 FROM tab2 +---- +-9 +0 query I rowsort SELECT - + col0 * - col0 - 87 AS col0 FROM tab2 AS cor0 @@ -2637,8 +2661,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ), ( COUNT ( * ) ) FROM tab1 AS cor0 +---- +3 +3 query I rowsort label-424 SELECT ( - SUM ( + col0 ) ) FROM tab2 @@ -3124,8 +3151,11 @@ 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\(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\. +query II valuesort SELECT ( + - ( + COUNT ( * ) ) ) AS col1, - 22 * + - 1 col1 FROM tab2 AS cor0 +---- +-3 +22 query I rowsort label-501 SELECT + ( MAX ( + - col2 ) ) AS col0 FROM tab2 AS cor0 @@ -3163,8 +3193,12 @@ SELECT DISTINCT - 9 AS col2 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) AS col1, + COUNT ( * ) AS col2 FROM tab1 +---- +3 +3 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 @@ -3332,8 +3366,15 @@ SELECT + + col2 FROM tab0 AS cor0 WHERE NOT col1 + + - col1 IS NOT NULL # Datafusion - Expected - -99 # Datafusion - Expected - 94 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ Int64\(19\) AS col2" at position 0 and "Int64\(\-99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 + + + 19 AS col2, - 99 col2 FROM tab2 AS cor0 +---- +-99 +-99 +-99 +65 +83 +94 query I rowsort SELECT DISTINCT + 37 * + - col0 + + - 17 + - col2 FROM tab0 AS cor0 WHERE - 69 + - - col2 NOT IN ( - - col2 / + col2 + - 80 * col0 + - - col0 ) @@ -3560,8 +3601,15 @@ SELECT ( - col0 ) FROM tab2 WHERE col0 BETWEEN - col2 * + col1 AND NULL # Datafusion - Expected - 54 # Datafusion - Expected - 1 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) / tab2\.col0 AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 57 / col0 col2, + 54 AS col2 FROM tab2 +---- +0 +0 +1 +54 +54 +54 query I rowsort label-570 SELECT ALL + COUNT ( * ) / - 19 AS col1 FROM tab2 cor0 @@ -3983,8 +4031,15 @@ SELECT - col0 AS col1, + ( - + col1 ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -4096 # Datafusion - Expected - 84 # Datafusion - Expected - -5625 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col2" at position 0 and "cor0\.col0 \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 84 AS col2, ( + col0 ) * - col0 AS col2 FROM tab2 cor0 +---- +-2116 +-4096 +-5625 +84 +84 +84 query I rowsort SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE NULL <= - col2 * + col2 @@ -4002,8 +4057,15 @@ SELECT * FROM tab0 WHERE NOT 94 * - CAST ( NULL AS INTEGER ) IS NOT NULL # Datafusion - Expected - 45 # Datafusion - Expected - 90 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* \(\- \(\- tab0\.col0\)\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 * - - col0 col1, 45 AS col1 FROM tab0 +---- +45 +45 +45 +522 +582 +90 query II rowsort label-641 SELECT ALL + CAST ( - 52 AS INTEGER ), + col1 AS col0 FROM tab2 @@ -5483,8 +5545,11 @@ SELECT DISTINCT col2, + 43 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(tab1\.col1\)\) AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( + col1 ) AS col2, + 91 AS col2 FROM tab1 +---- +-5 +91 query II rowsort SELECT ALL - col2 AS col0, - col0 col1 FROM tab0 @@ -5787,8 +5852,15 @@ SELECT ALL col0 + + 57 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - -5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col1 AS col0, col1 AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +14 +47 +5 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> col2 * + col1 @@ -5822,8 +5894,15 @@ SELECT + - 43 + - + col2 FROM tab1 AS cor0 # Datafusion - Expected - 15 # Datafusion - Expected - -75 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, 15 AS col2 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +15 +15 +15 query I rowsort label-940 SELECT - col0 / 73 FROM tab0 AS cor0 @@ -6324,8 +6403,15 @@ SELECT col2 / - 21 + + col1 * - col1 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 86 # Datafusion - Expected - 4350 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 * - col0 AS col1, + 86 AS col1 FROM tab2 AS cor0 +---- +1058 +2560 +4350 +86 +86 +86 query I rowsort label-1022 SELECT + COUNT ( * ) - + + 76 FROM tab0 @@ -6524,8 +6610,15 @@ SELECT DISTINCT + MIN ( - 23 ) FROM tab2 # Datafusion - Expected - -84 # Datafusion - Expected - 3196 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \* \(\- tab1\.col2\) AS col2" at position 0 and "Int64\(\-84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * - col2 AS col2, - 84 AS col2 FROM tab1 +---- +-84 +-84 +-84 +1344 +295 +3196 query I rowsort SELECT ALL + col0 * + 75 col1 FROM tab1 @@ -6837,8 +6930,15 @@ SELECT DISTINCT + ( + + COUNT ( * ) ) col0 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col0 \+ \(\- cor0\.col1\) \* cor0\.col2 \+ cor0\.col1 \* \(\- cor0\.col1\) \* \(\- CAST\(NULL AS Float64\)\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL - col2 col0, col0 + - col1 * + ( + col2 ) + col1 * - + col1 * - CAST ( NULL AS FLOAT8 ) * col0 AS col0 FROM tab2 cor0 +---- +-23 +-40 +-58 +NULL +NULL +NULL query I rowsort SELECT - col1 * + + 60 FROM tab0 AS cor0 @@ -7153,8 +7253,15 @@ SELECT DISTINCT 35 col1 FROM tab2, tab0 AS cor0 # Datafusion - Expected - -168 # Datafusion - Expected - 71 # Datafusion - Expected - -168 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "Int64\(41\) / tab2\.col0 \+ \(\- Int64\(85\)\) \+ Int64\(\-83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 71 AS col2, 41 / + col0 + - + 85 + - 83 AS col2 FROM tab2 +---- +-168 +-168 +-168 +71 +71 +71 query II rowsort SELECT ALL + col1 AS col0, + 62 AS col2 FROM tab1 @@ -8439,8 +8546,15 @@ SELECT ALL 83 * - + col1 + col2 + + 75 AS col1 FROM tab1 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col2, + col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT + 8 col1 FROM tab2 AS cor0 @@ -8524,8 +8638,15 @@ SELECT - col0 AS col2, - 19 + col1 FROM tab0 cor0 # Datafusion - Expected - -4277 # Datafusion - Expected - 4 # Datafusion - Expected - -714 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "cor0\.col0 \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 4 AS col2, col0 * - + col1 AS col2 FROM tab1 AS cor0 +---- +-425 +-4277 +-714 +4 +4 +4 query I rowsort SELECT - col0 * - 61 FROM tab2 @@ -10372,8 +10493,9 @@ SELECT ALL - 98 FROM tab0 AS cor0 WHERE NULL IS NOT NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col1" at position 0 and "Int64\(21\) \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 47 AS col1, + 21 * + + 2 AS col1 FROM tab2 AS cor0 WHERE + CAST ( - + col1 AS INTEGER ) IS NULL +---- query I rowsort SELECT ALL + + 38 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -11709,8 +11831,9 @@ SELECT + col0 * + 9 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + col0 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab1\.col2\)\) AS col1" at position 0 and "\(\- tab1\.col0\) / Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col2 AS col1, - col0 / - 56 col1 FROM tab1 WHERE - col2 / + col1 * - CAST ( NULL AS INTEGER ) * col1 + - CAST ( NULL AS INTEGER ) NOT BETWEEN ( NULL ) AND - 70 +---- query I rowsort label-1932 SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab0, tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - 61 OR NOT + 24 = NULL @@ -11879,8 +12002,10 @@ SELECT ALL + 25 col1, 64 * + col0 * - col2 + + + col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a9b0dc3bf17bde7a32306ad6d6751014 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 41 AS col2, + col1 + + col0 + + col2, + col1 col2 FROM tab2 AS cor0 +---- +9 values hashing to 0a9ce54b8f896a6021426eea79ab5ab3 query II rowsort SELECT col2 AS col2, col1 FROM tab1 AS cor0 @@ -12064,8 +12189,15 @@ SELECT - 42 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - 16 # Datafusion - Expected - 91 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, 16 AS col1 FROM tab1 +---- +16 +16 +16 +51 +85 +91 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + col1 IS NOT NULL ) @@ -12217,8 +12349,15 @@ SELECT + col1 * + 51 + + col1 FROM tab1 AS cor0 # Datafusion - Expected - 28 # Datafusion - Expected - -7008 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) \* cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col2\) \+ Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 73 * + col2 AS col1, - col2 + + 96 AS col1 FROM tab1 AS cor0 +---- +-4307 +-4964 +-7008 +0 +28 +37 query I rowsort SELECT col2 FROM tab1 cor0 WHERE NULL IS NOT NULL @@ -12422,8 +12561,11 @@ SELECT - + col1 + col0 * - col1 + + 61 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 22 col2 FROM tab2 +---- +22 +3 query I rowsort SELECT DISTINCT + 24 * - - col0 AS col1 FROM tab1 cor0 @@ -12565,8 +12707,15 @@ SELECT + 91 * COUNT ( * ) AS col2 FROM tab2 # Datafusion - Expected - -2584 # Datafusion - Expected - 5 # Datafusion - Expected - -2242 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "\(\- tab1\.col2\) \+ \(\- tab1\.col2\) \* Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, - col2 + - col2 * 37 AS col2 FROM tab1 +---- +-2242 +-2584 +-3648 +14 +47 +5 query I rowsort SELECT + 84 * - 0 FROM tab2 AS cor0 @@ -12895,8 +13044,15 @@ SELECT * FROM tab2 WHERE ( + - CAST ( NULL AS INTEGER ) ) * - 8 = NULL # Datafusion - Expected - 5 # Datafusion - Expected - 51 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col1" at position 0 and "\(\- Int64\(\-5\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 AS col1, - ( - 5 ) AS col1 FROM tab1 +---- +5 +5 +5 +51 +51 +51 query III rowsort SELECT DISTINCT * FROM tab2 WHERE + + ( - col2 ) IS NULL @@ -12963,8 +13119,15 @@ SELECT - 88 + 97 / + + 76 AS col0, COUNT ( * ) + + 56 FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col1, + col1 AS col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-2133 SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND col0 + + + col2 @@ -13048,8 +13211,15 @@ SELECT 18, col2 + 41 * + col0 AS col0 FROM tab2 # Datafusion - Expected - 70 # Datafusion - Expected - -9 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col2" at position 0 and "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 9 AS col2, 70 AS col2 FROM tab2 +---- +-9 +-9 +-9 +70 +70 +70 query II rowsort SELECT DISTINCT 88 col1, col1 - - + 93 FROM tab2 @@ -13350,8 +13520,11 @@ SELECT DISTINCT COUNT ( DISTINCT + 72 ) - - MIN ( ALL - col0 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) / \(\- max\(\(\- tab0\.col1\)\)\) \- Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 19 AS col1, CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) / + ( - MAX ( - col1 ) ) - 9 AS col1 FROM tab0 +---- +19 +NULL query I rowsort SELECT + col2 AS col0 FROM tab1 WHERE NOT + 94 <= NULL @@ -13395,8 +13568,9 @@ SELECT DISTINCT - 61 / ( + - COUNT ( * ) ) FROM tab2 AS cor0 20 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \- Int64\(94\) / \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 - + 94 / - CAST ( NULL AS INTEGER ) AS col2, + 78 col2 FROM tab0 AS cor0 WHERE NOT NULL = - CAST ( NULL AS FLOAT8 ) +---- query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 / + col1 + - ( col0 ) * 2 / ( - 48 ) / + - col1 AND + col0 @@ -14332,8 +14506,15 @@ SELECT ALL + 95 * - col0 * col0 FROM tab1 # Datafusion - Expected - 96 # Datafusion - Expected - 75 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \+ Int64\(\-92\) / \(\- Int64\(\-94\)\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 + - 92 / - - 94 AS col1, 96 AS col1 FROM tab2 AS cor0 +---- +46 +64 +75 +96 +96 +96 query I rowsort label-2366 SELECT DISTINCT + 34 / col0 - + col2 + - + col2 FROM tab0 AS cor0 @@ -14356,8 +14537,15 @@ SELECT DISTINCT col0 * + - col0 * + 97 FROM tab0 # Datafusion - Expected - 91 # Datafusion - Expected - 79 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 AS col0, + 91 AS col0 FROM tab0 +---- +79 +79 +79 +91 +91 +91 query I rowsort label-2369 SELECT ALL - - CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab2 cor0 @@ -14552,8 +14740,15 @@ SELECT - + col0 + col2 - 59 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL # Datafusion - Expected - 23 # Datafusion - Expected - 32 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "\(\- tab1\.col2\) \+ tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 AS col2, - col2 + + col0 AS col2 FROM tab1 +---- +-45 +23 +26 +32 +32 +32 query III rowsort SELECT ALL * FROM tab2 WHERE NOT - - 0 < + col0 @@ -15415,8 +15610,11 @@ SELECT DISTINCT + CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "\(\- count\(Int64\(61\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 92 AS col1, - COUNT ( + 61 ) * + COUNT ( * ) / COUNT ( * ) AS col1 FROM tab1 cor0 +---- +-3 +92 query I rowsort label-2543 SELECT DISTINCT COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0 WHERE ( NOT ( NOT NULL IS NULL ) ) @@ -15435,8 +15633,10 @@ SELECT DISTINCT + - 92 AS col2, col1 * + col1 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to d0f158eccf29918b16a2cd2ad94f83be -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + col2 AS col0, + CAST ( NULL AS INTEGER ) AS col0, + 81 * 5 + - + 58 AS col0 FROM tab0 AS cor0 +---- +9 values hashing to 6fd5104c2a93ca28af71fb02a570c752 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE 95 + col1 >= + 42 * 76 @@ -15456,8 +15656,15 @@ SELECT ALL - ( col0 ) * + col2 * - + col0 + + 53 / col1 + + 56 AS col0 FROM tab2 # Datafusion - Expected - 75 # Datafusion - Expected - 5 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, 75 AS col0 FROM tab1 AS cor0 +---- +14 +47 +5 +75 +75 +75 query I rowsort label-2549 SELECT 50 * + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL @@ -15574,8 +15781,15 @@ SELECT DISTINCT col0 * - col2 * + 96 AS col1, + 28 FROM tab2 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - -22 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 22 AS col1, + col0 AS col1 FROM tab1 AS cor0 +---- +-22 +-22 +-22 +51 +85 +91 query II rowsort SELECT + ( + + ( + col2 ) ) col0, + col0 * col1 FROM tab1 AS cor0 WHERE NOT + col0 * - - col2 IS NULL @@ -15811,8 +16025,11 @@ SELECT * FROM tab0 AS cor0 WHERE NOT ( 39 ) IS NULL # 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\(cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( DISTINCT + ( - - col2 ) ) AS col2, COUNT ( ALL + col1 ) AS col2 FROM tab1 AS cor0 +---- +223 +3 query III rowsort label-2607 SELECT * FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL @@ -15825,8 +16042,15 @@ SELECT * FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-2609 SELECT DISTINCT + 52 * 59 / + COUNT ( * ) FROM tab0 @@ -16263,8 +16487,9 @@ SELECT + - 79 + + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 -76 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, col2 FROM tab2 AS cor0 WHERE NOT + ( col0 ) * - 88 + col2 NOT IN ( 76, + col1 + + col0 ) +---- query I rowsort label-2680 SELECT CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab1 @@ -16936,8 +17161,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT + 90 / - - 71 IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col1 AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 +---- +14 +47 +5 +NULL +NULL +NULL query I rowsort SELECT DISTINCT col2 * - col0 / col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL @@ -17149,8 +17381,15 @@ SELECT 42 * - col1 AS col2 FROM tab0 # Datafusion - Expected - -1215 # Datafusion - Expected - 99 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "tab0\.col0 \* \(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, col0 * - col1 AS col0 FROM tab0 +---- +-1215 +-1827 +-97 +10 +47 +99 query I rowsort SELECT ALL col2 * + col1 AS col1 FROM tab1 WHERE + - col2 IS NOT NULL @@ -17808,8 +18047,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col2, + 8 AS col2 FROM tab2 AS cor0 +---- +-3 +8 query II rowsort label-2943 SELECT + ( + col1 ), col1 / 59 FROM tab0 AS cor0 @@ -18061,8 +18303,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) FROM tab1 AS cor0 +---- +-3 +-3 query I rowsort label-2987 SELECT ALL - COUNT ( - 26 ) * + + MIN ( DISTINCT - 57 ) FROM tab1 AS cor0 @@ -18432,8 +18677,15 @@ SELECT ALL + 97, col1 FROM tab1 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 36 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( 36 ) AS col2, col0 AS col2 FROM tab1 +---- +36 +36 +36 +51 +85 +91 query I rowsort SELECT DISTINCT - 71 FROM tab0 WHERE NOT - 58 IS NULL @@ -18598,8 +18850,11 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 23 + - col2 + - + col0 <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 85 AS col2, COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 +---- +85 +9 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 60 * col0 IS NOT NULL @@ -18784,8 +19039,15 @@ SELECT ALL + - ( - + COUNT ( * ) ) AS col2 FROM tab2 cor0 # Datafusion - Expected - 38 # Datafusion - Expected - 2 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 AS col0, + 38 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL +---- +2 +2 +2 +38 +38 +38 query I rowsort SELECT col1 * - 26 * - 97 AS col2 FROM tab2 AS cor0 @@ -19772,8 +20034,15 @@ SELECT - SUM ( - - 16 ) FROM tab2 AS cor0 # Datafusion - Expected - 59 # Datafusion - Expected - -91 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col1, col2 AS col1 FROM tab1 +---- +-51 +-85 +-91 +59 +68 +96 query II rowsort label-3270 SELECT + col1 AS col0, col0 / - col1 - ( + col2 ) * 75 - + col1 * col0 FROM tab2 @@ -19823,8 +20092,12 @@ 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\(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\. +query III valuesort SELECT ALL - 3 AS col2, + COUNT ( * ), COUNT ( * ) FROM tab1 +---- +-3 +3 +3 query I rowsort label-3278 SELECT ALL - + col0 / + - col0 AS col1 FROM tab1 AS cor0 @@ -19888,8 +20161,11 @@ SELECT DISTINCT + + col0 * - - col0 * - - col0 - + - 30 * - 82 * - col0 - + - ( # 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 "max\(\(\- cor0\.col2\)\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MAX ( - col2 ) AS col2, + 0 AS col2 FROM tab2 AS cor0 +---- +-23 +0 query II rowsort SELECT - 46, col1 - + 2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL @@ -20027,8 +20303,15 @@ SELECT DISTINCT col2 * - - 56 + 63 FROM tab2 # Datafusion - Expected - 13 # Datafusion - Expected - 7 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 col0, 13 AS col0 FROM tab1 +---- +13 +13 +13 +7 +7 +7 query I rowsort SELECT DISTINCT 74 + + col2 AS col1 FROM tab1 @@ -20708,8 +20991,15 @@ SELECT col1 * - + col2 col1 FROM tab1 # Datafusion - Expected - 51 # Datafusion - Expected - -58 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col0" at position 0 and "Int64\(11\) \+ tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 col0, 11 + + + col2 AS col0 FROM tab2 +---- +-23 +-40 +-58 +34 +51 +69 query II rowsort SELECT ALL - 30 AS col2, 68 FROM tab2 @@ -20957,8 +21247,15 @@ SELECT + 55 col1, 7 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col1, + col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query III rowsort SELECT * FROM tab2 cor0 WHERE NOT - col1 * - col2 + col2 IS NULL @@ -21561,8 +21858,15 @@ SELECT + + col0 * + + col2 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -41 # Datafusion - Expected - -972 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \* cor0\.col1 AS col1" at position 0 and "Int64\(\-41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 12 * + col1 col1, - 41 AS col1 FROM tab0 cor0 +---- +-12 +-252 +-41 +-41 +-41 +-972 query I rowsort SELECT - 21 * - + ( - + 9 ) + col2 FROM tab1 AS cor0 @@ -21882,8 +22186,15 @@ SELECT col0 - - + col2 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - -5 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \+ \(\- tab1\.col0\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 46 + + - col0 AS col1, col0 AS col1 FROM tab1 +---- +-39 +-45 +-5 +51 +85 +91 query I rowsort label-3611 SELECT ALL 94 + + + col1 * + CAST ( NULL AS INTEGER ) FROM tab1 @@ -21955,8 +22266,15 @@ SELECT ALL - ( - 37 ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - -97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col0 AS col0, col1 AS col0 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +1 +21 +81 query II rowsort SELECT + col0 AS col1, + 28 FROM tab2 AS cor0 @@ -23119,8 +23437,10 @@ SELECT COUNT ( * ) FROM tab0 WHERE NOT NULL IN ( - - col0 * - + 5 * - col1 / - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 4ef6952a3d0d47dff3023af0d6829b81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- \(\- tab2\.col1\)\) \+ \(\- tab2\.col2\) AS col0" at position 1 and "Int64\(46\) \+ \(\- \(\- tab2\.col2\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col1 * + - 47, + CAST ( NULL AS INTEGER ) + - - col1 + - col2 AS col0, 46 + + - ( - + col2 ) AS col0 FROM tab2 +---- +9 values hashing to cf1d1a31a753d722fdf3b4017c4f7d67 query I rowsort SELECT DISTINCT ( + + 5 ) AS col0 FROM tab1 @@ -23191,8 +23511,15 @@ SELECT + col2 * 74 + - col0 FROM tab2 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - NULL # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(CAST\(NULL AS Int32\) AS Int32\)\) \* \(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - col2 AS col0, ( - col2 ) AS col0 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +NULL +NULL +NULL query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( 66 ) IN ( 83, - col0 + 17, - col0 ) @@ -23217,8 +23544,11 @@ SELECT - 56 + + 88 * + col0 AS col0, col2 * - col2 AS col1 FROM tab2 AS cor0 # 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 "tab1\.col2 \+ \(\- tab1\.col2\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 + - col2 AS col1, 65 AS col1 FROM tab1 +---- +0 +65 query I rowsort label-3841 SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 @@ -24299,8 +24629,15 @@ SELECT col0 + + col0 + + - col1 + col2 + col0 * - + ( - - ( - 14 ) ) + 31 + 97 F # Datafusion - Expected - 54 # Datafusion - Expected - NULL # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- Int64\(\-33\)\) \+ tab1\.col0 \* tab1\.col2 AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) * - - 33 + + + col0 * + col2 AS col0, 54 AS col0 FROM tab1 +---- +54 +54 +54 +NULL +NULL +NULL query I rowsort SELECT - col2 + + 54 + col1 + - col2 AS col1 FROM tab2 @@ -24487,8 +24824,15 @@ SELECT ALL SUM ( + 14 ) FROM tab2 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 AS col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 @@ -24562,8 +24906,10 @@ SELECT 34 + COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to b5ffe65dbea6cb75a4a2ce9d6d395570 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + col1, col1 col1, + 20 AS col2 FROM tab2 cor0 +---- +9 values hashing to b74497cfaa2d1b82f0caff3cf4423446 query I rowsort SELECT DISTINCT - - col1 + - ( - 21 ) FROM tab2 AS cor0 @@ -24692,8 +25038,15 @@ SELECT DISTINCT MIN ( ALL + + ( col0 ) ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -4350 # Datafusion - Expected - -53958 # Datafusion - Expected - -1058 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col1 \* \(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col0 \* \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 * col1 * - col0 AS col0, col0 * - + col2 AS col0 FROM tab2 AS cor0 +---- +-1058 +-197120 +-2560 +-291450 +-4350 +-53958 query I rowsort SELECT 46 * + - col2 * - 25 - - 89 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL @@ -25474,8 +25827,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT + 39 NOT IN ( + col2, 85 ) # Datafusion - Expected - 50 # Datafusion - Expected - 31 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 31 AS col0, 50 AS col0 FROM tab2 +---- +31 +31 +31 +50 +50 +50 query I rowsort SELECT + col0 FROM tab0 WHERE NOT + col2 IS NOT NULL @@ -25653,8 +26013,15 @@ SELECT * FROM tab1 WHERE ( NULL ) IN ( - ( + col0 ) * - col0 ) # Datafusion - Expected - 81 # Datafusion - Expected - -99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col0, col1 AS col0 FROM tab0 +---- +-10 +-47 +-99 +1 +21 +81 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 42 * - - col2 - - col1 BETWEEN 52 * col0 + col1 + - - col0 AND NULL ) @@ -25751,8 +26118,15 @@ SELECT * FROM tab2 cor0 WHERE NOT 58 IS NULL # Datafusion - Expected - -1 # Datafusion - Expected - 60 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "Int64\(92\) / \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 60 AS col0, 92 / - col0 AS col0 FROM tab2 AS cor0 +---- +-1 +-1 +-2 +60 +60 +60 query II rowsort label-4260 SELECT ALL + ( - col2 ) AS col2, + CAST ( + + col0 AS INTEGER ) + - + col0 AS col1 FROM tab2 AS cor0 @@ -25846,8 +26220,15 @@ SELECT col0 + col2 * + col0, - 75 AS col0 FROM tab2 WHERE NOT - 17 * + CAST ( NU # Datafusion - Expected - 5 # Datafusion - Expected - 91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, col1 AS col2 FROM tab1 +---- +14 +47 +5 +51 +85 +91 query I rowsort SELECT ALL + 16 * + ( + 27 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 @@ -25942,8 +26323,11 @@ SELECT col2 * + col1 * + col1 + 6 / + col2 AS col0 FROM tab2 AS cor0 WHERE + 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- CAST\(tab0\.col1 AS Int32\)\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MIN ( - CAST ( + + col1 AS INTEGER ) ) AS col0, CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col0 FROM tab0 +---- +81 +NULL query I rowsort SELECT 44 * col1 FROM tab0 @@ -26046,8 +26430,15 @@ SELECT 69 * + 54 * + ( - 14 ) AS col0 FROM tab2 # Datafusion - Expected - -91 # Datafusion - Expected - 96 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "\(\- \(\- \(\- tab1\.col0\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, - ( - - col0 ) AS col0 FROM tab1 +---- +-51 +-85 +-91 +59 +68 +96 query I rowsort SELECT ALL col0 * + col0 FROM tab2 AS cor0 WHERE col1 + ( 27 ) > + col1 * - col1 @@ -26073,8 +26464,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + - MIN ( DISTINCT - + 44 ) ) col1, - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 +---- +-9 +44 query I rowsort SELECT ALL - - col1 FROM tab0 WHERE + 94 IS NOT NULL @@ -26651,8 +27045,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 70 * + - COUNT ( * ) col0, 7 AS col0 FROM tab1 AS cor0 +---- +-210 +7 query I rowsort SELECT + - col0 + + col2 * + - 42 FROM tab1 AS cor0 @@ -27673,8 +28070,15 @@ SELECT DISTINCT - 8 FROM tab2 WHERE NULL IS NULL # Datafusion - Expected - -85 # Datafusion - Expected - NULL # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(52\)\) \+ tab1\.col2 \* Int64\(77\) AS col0" at position 0 and "\(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 32 * - CAST ( NULL AS INTEGER ) * - + 52 + col2 * + 77 AS col0, - col0 AS col0 FROM tab1 +---- +-51 +-85 +-91 +NULL +NULL +NULL query I rowsort label-4572 SELECT col2 - + col1 - + col2 / + + col2 FROM tab2 AS cor0 @@ -28682,8 +29086,15 @@ SELECT DISTINCT - 49 col0 FROM tab2 cor0 # Datafusion - Expected - 1 # 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 "cor0\.col2 / cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 AS col0, col2 / + col2 AS col0 FROM tab0 AS cor0 +---- +1 +1 +1 +18 +18 +18 query II rowsort SELECT ALL + col1, - col1 FROM tab0 AS cor0 WHERE - 46 > NULL @@ -29145,8 +29556,12 @@ 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\(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\. +query III valuesort SELECT ALL + COUNT ( * ), COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 +---- +3 +3 +3 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT + 18 NOT IN ( 14, + col2 * + col2 ) @@ -29954,8 +30369,9 @@ SELECT - col1 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 AND NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col2" at position 0 and "Int64\(49\) \* \(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 92 AS col2, 49 * - col0 AS col2 FROM tab1 WHERE + - col0 BETWEEN + ( - 14 ) AND NULL +---- query I rowsort label-4956 SELECT + + MAX ( ( + - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab0 AS cor0 @@ -30377,8 +30793,15 @@ SELECT ALL - ( + + 46 ) FROM tab1 AS cor0 # Datafusion - Expected - 54 # Datafusion - Expected - 91 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col2, + 54 AS col2 FROM tab1 AS cor0 +---- +51 +54 +54 +54 +85 +91 query II rowsort label-5021 SELECT - MIN ( DISTINCT 89 ) AS col2, - 71 / - 58 AS col0 FROM tab2 @@ -30415,8 +30838,10 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to 2f5331d0e34fdb4268e8b777257f5de2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 82 AS col1, + 36 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 +---- +18 values hashing to b78add02b51245cf682c2f520e726def query III rowsort SELECT * FROM tab0 AS cor0 WHERE NULL <> 37 @@ -31165,8 +31590,12 @@ SELECT col1 + - 59 AS col0 FROM tab1 # Datafusion - Expected - 58 # Datafusion - Expected - 3 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 58 AS col2, COUNT ( * ) AS col2, - + 85 FROM tab2 +---- +-85 +3 +58 query I rowsort label-5151 SELECT COUNT ( * ) + + + 62 AS col1 FROM tab1 @@ -31421,8 +31850,15 @@ SELECT col0 + - + col2 + - col1 * - + CAST ( - col0 AS INTEGER ) FROM tab0 AS co # Datafusion - Expected - 0 # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \+ cor0\.col1 AS col0" at position 0 and "Int64\(\-58\) / Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 77 + + col1 AS col0, - 58 / + 59 AS col0 FROM tab2 AS cor0 +---- +-10 +-26 +0 +0 +0 +0 query III rowsort SELECT DISTINCT * FROM tab0 cor0 WHERE - 95 + + - col1 + - 55 * ( + 20 ) + - 4 >= + 1 @@ -32385,8 +32821,15 @@ SELECT + col2 AS col2, - col1 / + - 56 AS col2 FROM tab2 # Datafusion - Expected - 61 # Datafusion - Expected - 5025 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* tab2\.col0 AS col1" at position 0 and "Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 * col0 AS col1, 61 AS col1 FROM tab2 +---- +2346 +4928 +5025 +61 +61 +61 query II rowsort SELECT + col1, 70 FROM tab0 AS cor0 @@ -32574,8 +33017,15 @@ SELECT col2 / - col0 + + 60 FROM tab2 # Datafusion - Expected - -81 # Datafusion - Expected - -99 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col2" at position 0 and "\(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 col2, - col1 AS col2 FROM tab0 +---- +-1 +-10 +-21 +-47 +-81 +-99 query I rowsort SELECT ALL - col1 col1 FROM tab2 WHERE NOT ( + + col0 ) * - + 12 IS NOT NULL @@ -32633,8 +33083,11 @@ SELECT ALL MIN ( DISTINCT - col2 ) + + 62 col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) col2, COUNT ( col0 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL +---- +3 +NULL query II rowsort label-5388 SELECT ALL + - 45 / + + col0, + 60 * + 69 AS col1 FROM tab0 AS cor0 @@ -32986,8 +33439,15 @@ SELECT + 44 + + col2 + + + col2 - - - 13 AS col1 FROM tab0 # Datafusion - Expected - 3 # Datafusion - Expected - 97 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab0\.col0\)\) AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - - col0 ) AS col1, 3 AS col1 FROM tab0 +---- +15 +3 +3 +3 +87 +97 query I rowsort label-5448 SELECT ALL COUNT ( + - col2 ) FROM tab2 @@ -33935,8 +34395,15 @@ SELECT - 98 * - + col0 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - -77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col2, col1 AS col2 FROM tab2 cor0 +---- +-51 +-67 +-77 +51 +67 +77 query I rowsort SELECT 55 FROM tab2 AS cor0 WHERE NULL IS NULL @@ -34602,8 +35069,15 @@ SELECT ALL + ( col2 ) * 3 + + + col1 + - col1 * + 56 FROM tab2 # Datafusion - Expected - 69 # Datafusion - Expected - 58 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, 69 AS col1 FROM tab2 +---- +23 +40 +58 +69 +69 +69 query II rowsort SELECT ALL - + 9 AS col0, ( - col0 ) * - col0 + - + 66 AS col1 FROM tab1 AS cor0 @@ -35863,8 +36337,9 @@ SELECT * FROM tab0 WHERE - col1 - + CAST ( NULL AS INTEGER ) IS NULL 9 values hashing to c4b42765dff94eaaa46040e537fb43b7 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col0" at position 0 and "cor0\.col1 \+ \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 31 AS col0, col1 + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( + col0 ) >= ( NULL ) +---- query I rowsort label-5930 SELECT 52 / - - 57 AS col0 FROM tab0 AS cor0 @@ -35940,8 +36415,15 @@ SELECT ALL + COUNT ( ALL - 11 ) FROM tab0 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-5942 SELECT DISTINCT MIN ( DISTINCT col2 ) FROM tab1 cor0 WHERE NOT + 77 <> NULL @@ -36056,8 +36538,10 @@ SELECT + col1 + + 53 * + col2 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 1b8e607ae51acce8b40aaf3e3f16bb9d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ \(\- tab2\.col0\) \+ \(\- tab2\.col1\) AS col0" at position 0 and "\(\- Int64\(\-5\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 2 + - col0 + + + ( + - col1 ) AS col0, + col2 + + col0 * + + col2 * + 13 + + col2, - - 5 AS col0 FROM tab2 +---- +9 values hashing to adc528e79935dc9aae872f9c0a53802d query I rowsort label-5961 SELECT ALL - 56 * + 47 + + COUNT ( * ) FROM tab0 @@ -37438,8 +37922,15 @@ SELECT DISTINCT 62 - + 30 AS col2 FROM tab0 # Datafusion - Expected - 6351 # Datafusion - Expected - 81 # Datafusion - Expected - 1095 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col0 \* Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, + col0 * 73 AS col2 FROM tab0 +---- +1 +1095 +21 +6351 +7081 +81 query I rowsort label-6200 SELECT ALL COUNT ( * ) - + 76 col0 FROM tab2 @@ -38023,8 +38514,15 @@ SELECT + col2 AS col2, col0 + ( + 39 ) AS col2 FROM tab1 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col2, + col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT DISTINCT + 91 * - + 24 FROM tab1 @@ -38049,8 +38547,15 @@ SELECT + ( col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT 96 <> NULL # Datafusion - Expected - 89 # Datafusion - Expected - 1 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / Int64\(41\) AS col1" at position 0 and "Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 / 41 col1, 89 AS col1 FROM tab0 AS cor0 +---- +0 +0 +1 +89 +89 +89 query I rowsort label-6297 SELECT ALL MIN ( DISTINCT + + 81 ) FROM tab1 WHERE + CAST ( - 21 AS INTEGER ) IS NULL @@ -38269,8 +38774,15 @@ SELECT - 53 * - col0 AS col0 FROM tab0 # Datafusion - Expected - 57 # Datafusion - Expected - -96 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "tab1\.col2 \+ Int64\(\-11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( col2 ) AS col1, col2 + - 11 AS col1 FROM tab1 +---- +-59 +-68 +-96 +48 +57 +85 query II rowsort SELECT col2 AS col0, - 20 FROM tab2 AS cor0 @@ -38813,8 +39325,9 @@ SELECT ALL * FROM tab2 WHERE ( + + col0 ) * - + CAST ( - - col2 AS INTEGER ) + + ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col0" at position 0 and "cor0\.col1 \+ Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 AS col0, col1 + + 54 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL +---- query II rowsort SELECT ALL + col1 col2, - col1 * + 28 AS col0 FROM tab0 AS cor0 @@ -39039,8 +39552,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, ( + COUNT ( - 58 ) ) + - 77 + - 68 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 +---- +-136 +-9 query I rowsort SELECT - col2 FROM tab2 WHERE NOT col2 IS NULL @@ -39615,8 +40131,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 78 * - col1 * - col1 ) IS NULL # Datafusion - Expected - -96 # 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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 91 AS col2, - 96 AS col2 FROM tab0 AS cor0 +---- +-96 +-96 +-96 +91 +91 +91 query I rowsort SELECT DISTINCT - col0 * - col2 - - col1 + col2 AS col1 FROM tab1 AS cor0 @@ -40047,8 +40570,15 @@ SELECT DISTINCT - MAX ( + 72 ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -1232 # Datafusion - Expected - 78 # Datafusion - Expected - -114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* cor0\.col1 AS col1" at position 0 and "Int64\(\-17\) \+ cor0\.col0 \* CAST\(\(\- cor0\.col1\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 78 * col1 AS col1, - 17 + + + col0 * + CAST ( - + col1 AS INTEGER ) col1 FROM tab0 AS cor0 +---- +-114 +-1232 +-1844 +1638 +6318 +78 query I rowsort SELECT DISTINCT + + 46 col2 FROM tab2 AS cor0 @@ -40496,8 +41026,15 @@ SELECT DISTINCT col0 + + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( col1 ) + - 3 # Datafusion - Expected - 58 # Datafusion - Expected - 77 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, col2 AS col0 FROM tab2 +---- +23 +40 +51 +58 +67 +77 query I rowsort label-6702 SELECT 93 * - - SUM ( col1 ) FROM tab2 @@ -40580,8 +41117,15 @@ SELECT - 11 + ( - + col1 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 15 # Datafusion - Expected - 97 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- \(\- cor0\.col2\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 + - - col2 AS col1, + col0 col1 FROM tab0 AS cor0 +---- +15 +196 +62 +87 +97 +97 query I rowsort SELECT DISTINCT + 71 AS col1 FROM tab1 cor0 @@ -40746,8 +41290,11 @@ SELECT DISTINCT * FROM tab2 WHERE NOT - col1 >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(43\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) * + 43 AS col1, - COUNT ( * ) AS col1 FROM tab2 +---- +-3 +NULL query I rowsort label-6744 SELECT DISTINCT 78 * + MAX ( - col0 ) AS col1 FROM tab2 @@ -40877,8 +41424,15 @@ SELECT DISTINCT - col2 - 32 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 6720 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-70\)\) \* cor0\.col2 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 70 * + col2 col0, col1 col0 FROM tab1 AS cor0 +---- +14 +4130 +47 +4760 +5 +6720 query I rowsort SELECT ALL - 64 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL @@ -41780,8 +42334,15 @@ SELECT ALL 60 * - col0 * + col1 * - - col1 + - 60 AS col2 FROM tab2 # Datafusion - Expected - 2209 # Datafusion - Expected - 78 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-78\)\) AS col1" at position 0 and "tab1\.col1 \* CAST\(tab1\.col1 AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - - 78 ) AS col1, col1 * CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 +---- +196 +2209 +25 +78 +78 +78 query I rowsort label-6912 SELECT CAST ( NULL AS INTEGER ) * 93 * + col0 FROM tab0 @@ -42901,8 +43462,15 @@ SELECT COUNT ( DISTINCT 54 ) AS col0 FROM tab0 # Datafusion - Expected - 67 # Datafusion - Expected - 96 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "\(\- tab1\.col0\) / tab1\.col0 \+ tab1\.col1 \+ tab1\.col2 \+ \(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, ( - col0 ) / + ( + col0 ) + + col1 + + col2 + - col1 AS col0 FROM tab1 +---- +58 +59 +67 +68 +95 +96 query I rowsort label-7101 SELECT COUNT ( * ) * 22 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 @@ -43509,8 +44077,15 @@ SELECT ALL * FROM tab2 WHERE ( - + col0 ) = NULL # Datafusion - Expected - 51 # Datafusion - Expected - -135 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \- tab2\.col2 AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 77 - col2 AS col0, 51 AS col0 FROM tab2 +---- +-100 +-117 +-135 +51 +51 +51 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND NULL @@ -43527,8 +44102,15 @@ SELECT col0 + - + col2 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - 55 # Datafusion - Expected - 75 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, 55 AS col2 FROM tab2 +---- +46 +55 +55 +55 +64 +75 query III rowsort SELECT * FROM tab0 WHERE NOT NULL IN ( col2, + 67 * - ( col0 ) + - 63 + col2, 19 + 38 ) @@ -43596,8 +44178,15 @@ SELECT ALL ( + - 95 ) * - 51 + - - col0 FROM tab1 AS cor0 # Datafusion - Expected - 98 # Datafusion - Expected - 345 # Datafusion - Expected - -6514 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* tab0\.col0 AS col0" at position 0 and "tab0\.col1 \* \(\- tab0\.col1\) \+ tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 * col0 AS col0, col1 * + - col1 + ( col2 ) col0 FROM tab0 +---- +-431 +-6514 +2001 +2231 +345 +98 query I rowsort label-7218 SELECT + COUNT ( * ) * - + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 @@ -44085,8 +44674,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ), COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1 +---- +9 +9 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * + 8 = NULL @@ -45699,8 +46291,15 @@ SELECT + col1 AS col0 FROM tab2 cor0 WHERE + col0 IS NULL OR + col2 IS NULL # Datafusion - Expected - 42 # Datafusion - Expected - NULL # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col0, + 42 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL +---- +42 +42 +42 +NULL +NULL +NULL query II rowsort SELECT DISTINCT - col1 * + col1 AS col1, col0 FROM tab0 AS cor0 @@ -46351,8 +46950,11 @@ 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\(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\. +query RI valuesort SELECT - + COUNT ( * ) * CAST ( NULL AS FLOAT8 ) AS col2, - ( 56 ) AS col2 FROM tab0 AS cor0 +---- +-56 +NULL query I rowsort label-7677 SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0 WHERE NULL <> + col0 @@ -46474,8 +47076,15 @@ SELECT + + 32 FROM tab0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 67 # Datafusion - Expected - 62 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 62 AS col0, col1 AS col0 FROM tab2 AS cor0 +---- +51 +62 +62 +62 +67 +77 query I rowsort label-7697 SELECT + MAX ( DISTINCT - - 7 ) FROM tab1 AS cor0 @@ -46933,8 +47542,15 @@ SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( - col1, - col0 ) # Datafusion - Expected - 20 # Datafusion - Expected - 42 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \+ cor0\.col1 \+ \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(10\) \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 24 + + col1 + + ( + - col0 ) AS col1, 10 + + + col2 AS col1 FROM tab0 AS cor0 +---- +-120 +-90 +109 +20 +42 +57 query I rowsort SELECT DISTINCT + col0 + + 80 FROM tab1 cor0 @@ -47274,8 +47890,15 @@ SELECT DISTINCT + ( + - CAST ( col2 AS INTEGER ) ) AS col0 FROM tab1 # Datafusion - Expected - 19 # Datafusion - Expected - NULL # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(66\) \+ \(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, 66 + - col2 AS col1 FROM tab0 +---- +-33 +19 +56 +NULL +NULL +NULL query II rowsort SELECT ALL 53, ( + col0 ) FROM tab0 @@ -48681,8 +49304,15 @@ SELECT ALL - col1 + - ( - col0 ) FROM tab1 WHERE NULL < ( + 70 ) # Datafusion - Expected - -3366 # Datafusion - Expected - 60 # Datafusion - Expected - -340 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "\(\- tab0\.col2\) \* Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 60 AS col0, - col2 * + 34 AS col0 FROM tab0 +---- +-1598 +-3366 +-340 +60 +60 +60 query III rowsort SELECT * FROM tab1 WHERE NOT - - 1 / - + col2 IS NOT NULL @@ -48695,8 +49325,15 @@ SELECT * FROM tab1 WHERE NOT - - 1 / - + col2 IS NOT NULL # Datafusion - Expected - -4230 # Datafusion - Expected - -33 # Datafusion - Expected - -450 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col0" at position 0 and "Int64\(\-90\) \* tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 33 AS col0, - 90 * col1 col0 FROM tab1 +---- +-1260 +-33 +-33 +-33 +-4230 +-450 query III rowsort SELECT DISTINCT * FROM tab2 WHERE 25 IS NULL @@ -48833,8 +49470,15 @@ SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= + + col1 # Datafusion - Expected - -87 # Datafusion - Expected - 16 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 16 AS col2, - col0 AS col2 FROM tab0 +---- +-15 +-87 +-97 +16 +16 +16 query I rowsort label-8081 SELECT ALL COUNT ( + - col1 ) FROM tab1 @@ -49209,8 +49853,15 @@ SELECT + 40 * - 7 AS col2 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - 96 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, + col1 AS col0 FROM tab1 +---- +14 +47 +5 +59 +68 +96 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> + + col0 @@ -49674,14 +50325,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab0 +---- +-3 +3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(DISTINCT tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 7 + + COUNT ( * ) AS col0, COUNT ( DISTINCT ( col1 ) ) AS col0 FROM tab2 +---- +10 +3 query I rowsort SELECT - 60 - - col2 AS col0 FROM tab1 @@ -49855,8 +50512,15 @@ SELECT col1 + - + col1 - - 38 FROM tab2 # Datafusion - Expected - -1 # 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 "\(\- tab2\.col1\) / Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 77 AS col1, - col1 / + + 54 AS col1 FROM tab2 +---- +-1 +-1 +-77 +-77 +-77 +0 query II rowsort SELECT DISTINCT - col0 AS col2, 43 FROM tab1 AS cor0 @@ -50330,8 +50994,15 @@ SELECT DISTINCT * FROM tab0 WHERE + col2 NOT BETWEEN col0 AND NULL # Datafusion - Expected - -31 # Datafusion - Expected - 81 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(\-31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col1 AS col2, + ( - 31 ) AS col2 FROM tab0 AS cor0 +---- +-31 +-31 +-31 +1 +21 +81 query I rowsort label-8328 SELECT ALL + + MAX ( col1 ) FROM tab0 AS cor0 @@ -50674,8 +51345,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- Int64\(84\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - COUNT ( * ) AS col0, ( - + 84 ) AS col0 FROM tab1 AS cor0 WHERE NOT - 77 IS NULL +---- +-3 +-84 query I rowsort SELECT ALL col1 * + - col0 AS col2 FROM tab0 @@ -50710,8 +51384,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT 31 < - col1 # Datafusion - Expected - -5625 # Datafusion - Expected - 77 # Datafusion - Expected - -4096 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col0 \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, col0 * + - col0 col0 FROM tab2 cor0 +---- +-2116 +-4096 +-5625 +51 +67 +77 query I rowsort SELECT ALL - - 85 col1 FROM tab2 AS cor0 @@ -50800,8 +51481,15 @@ SELECT DISTINCT col2 - col2 col2 FROM tab0 # Datafusion - Expected - 5 # Datafusion - Expected - -75 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, 5 AS col1 FROM tab2 +---- +-46 +-64 +-75 +5 +5 +5 query I rowsort SELECT col2 - + - 36 FROM tab1 @@ -51119,8 +51807,11 @@ SELECT ALL * FROM tab2 AS cor0 WHERE - col0 > ( NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 12 col2, + COUNT ( * ) col2 FROM tab2 AS cor0 +---- +12 +3 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN col0 / col2 AND ( col2 ) @@ -51836,8 +52527,9 @@ SELECT DISTINCT col2 * - col1 / - col1 FROM tab0 99 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ Int64\(71\) \* \(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 + + 71 * - - col0 col1, - col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL +---- query I rowsort SELECT ALL + col2 * + + 33 AS col0 FROM tab1 AS cor0 @@ -51909,8 +52601,11 @@ SELECT DISTINCT - 27 + + 25 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "min\(Int64\(\-36\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, ( MIN ( - 36 ) ) AS col0 FROM tab1 cor0 +---- +-36 +3 query III rowsort SELECT * FROM tab0 AS cor0 WHERE col1 * + 73 IS NOT NULL @@ -51955,8 +52650,15 @@ SELECT - col2 + - + 79 AS col1 FROM tab0 # Datafusion - Expected - 87 # Datafusion - Expected - 68 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 68 AS col2, col0 AS col2 FROM tab0 +---- +15 +68 +68 +68 +87 +97 query I rowsort SELECT col1 + + - 46 AS col0 FROM tab1 @@ -52041,8 +52743,11 @@ SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1881 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* max\(Int64\(57\)\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 * + + MAX ( + 57 ) col1, 91 AS col1 FROM tab1 +---- +1881 +91 query I rowsort SELECT ALL + col2 * - 52 AS col2 FROM tab2 @@ -52527,8 +53232,15 @@ SELECT DISTINCT col2 + + col0 * - 93 - 11 + col1 FROM tab0 WHERE NOT NULL <> NUL # Datafusion - Expected - -1088 # Datafusion - Expected - 96 # Datafusion - Expected - -1536 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "tab1\.col2 \* Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, col2 * - 16 AS col1 FROM tab1 +---- +-1088 +-1536 +-944 +59 +68 +96 query I rowsort SELECT 28 * + ( + - col0 ) AS col2 FROM tab0 AS cor0 @@ -53030,8 +53742,15 @@ NULL # Datafusion - Expected - -172 # Datafusion - Expected - 97 # Datafusion - Expected - -182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "\(\- tab0\.col0\) \+ Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, - col0 + - 85 AS col1 FROM tab0 +---- +-100 +-172 +-182 +15 +87 +97 query II rowsort SELECT 60 AS col2, - 65 * 65 FROM tab2 @@ -53061,8 +53780,15 @@ SELECT ALL + + ( col2 ) * + + col1 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -5 # Datafusion - Expected - 96 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* tab1\.col2 AS col0" at position 0 and "Int64\(\-5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 1 * + col2 AS col0, - 5 AS col0 FROM tab1 +---- +-5 +-5 +-5 +59 +68 +96 query I rowsort label-8775 SELECT + col2 / col1 + - col2 FROM tab1 AS cor0 @@ -53341,8 +54067,15 @@ SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > 83 + col2 # Datafusion - Expected - -68 # Datafusion - Expected - 186 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ Int64\(90\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 + + 90 col0, - ( + + col2 ) AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +149 +158 +186 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT 45 + col0 <= - col1 @@ -54274,8 +55007,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT - 76 IS NOT NULL # Datafusion - Expected - 64 # Datafusion - Expected - -278980 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(65\) \* Int64\(\-74\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 * 65 * - 74 AS col2, + col0 AS col2 FROM tab2 AS cor0 +---- +-110630 +-192400 +-278980 +46 +64 +75 query I rowsort SELECT + 51 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL @@ -54421,8 +55161,11 @@ SELECT DISTINCT * FROM tab1 WHERE - col0 - + col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 +---- +-3 +3 query II rowsort label-9005 SELECT ALL - COUNT ( * ), - ( - COUNT ( * ) ) AS col0 FROM tab2 @@ -54914,8 +55657,15 @@ SELECT * FROM tab1 AS cor0 WHERE NULL <= + col0 # Datafusion - Expected - 23 # Datafusion - Expected - 97 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col1 / \(\- cor0\.col1\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * col1 / - + col1 AS col0, 23 AS col0 FROM tab0 AS cor0 +---- +15 +23 +23 +23 +87 +97 query I rowsort SELECT ALL - - col2 * 56 col0 FROM tab2 AS cor0 @@ -55291,8 +56041,10 @@ SELECT DISTINCT - 62 - + col1 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to bbe90c507ac52db1065091020c6a86aa -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(31\) AS Int32\) \* \(\- \(\- tab2\.col2\)\) AS col1" at position 1 and "tab2\.col1 \* \(\- \(\- CAST\(\(\- tab2\.col1\) AS Int32\)\)\) \* \(\- tab2\.col0\) \+ \(\- Int64\(58\)\) \* \(\- tab2\.col2\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - CAST ( + 42 AS INTEGER ) * - col1 * + 30 col2, CAST ( 31 AS INTEGER ) * - - col2 AS col1, + col1 * - - CAST ( - col1 AS INTEGER ) * - col0 + + - ( 58 ) * - col2 AS col1 FROM tab2 +---- +9 values hashing to a56f89a93674123322ae9467a44493ee query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT col0 BETWEEN + col2 * + + 3 AND NULL @@ -56596,8 +57348,9 @@ SELECT + 1 + + col2 AS col2, - col1 * + + col0 / - col0 AS col1 FROM tab1 AS cor 14 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) 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 II valuesort SELECT DISTINCT - col1 AS col0, 83 * + 17 AS col0 FROM tab2 WHERE NULL NOT BETWEEN + + 67 AND - col1 * CAST ( NULL AS INTEGER ) +---- query I rowsort SELECT ( - - 98 ) + - col2 - + ( + + col1 ) + ( + col1 ) + + - col2 + + col1 AS col1 FROM tab2 @@ -57022,8 +57775,15 @@ SELECT ALL ( - 27 ) + - - col1 - - - col0 / + col2 AS col1 FROM tab1 # Datafusion - Expected - -47 # Datafusion - Expected - 171 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \+ Int64\(89\) AS col1" at position 0 and "\(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 82 + 89 col1, - col2 col1 FROM tab0 +---- +-10 +-47 +-99 +171 +171 +171 query I rowsort label-9430 SELECT + ( - COUNT ( * ) ) * + + 17 FROM tab2 @@ -57166,8 +57926,15 @@ SELECT 1 + + col1 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -1 # Datafusion - Expected - 51 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + + 30 ) + + col1 AS col2, - col1 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +111 +31 +51 query I rowsort SELECT DISTINCT - col1 * - col0 + col2 FROM tab2 AS cor0 WHERE ( - col0 ) NOT BETWEEN NULL AND - col2 * col2 @@ -57612,8 +58379,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, + 95 AS col0 FROM tab2 WHERE - col2 IS NULL AND ( + ( col2 ) ) IS NULL +---- +0 +95 query I rowsort SELECT col0 - + - col1 - - - col1 + + col0 AS col1 FROM tab0 @@ -57741,8 +58511,15 @@ SELECT ( COUNT ( * ) ) + + + MAX ( ALL + - 47 ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -58 # Datafusion - Expected - 83 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ Int64\(90\) \+ Int64\(57\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col0 + + 90 + 57 AS col1, - col2 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +101 +72 +83 query I rowsort label-9551 SELECT DISTINCT + 69 / + COUNT ( * ) + COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab2 AS cor0 @@ -58165,8 +58942,15 @@ SELECT + - 17, + col2 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 177 # Datafusion - Expected - -99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 \+ cor0\.col1 \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 col2, col1 + + + col1 + + col0 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +129 +177 +99 query III rowsort SELECT * FROM tab1 AS cor0 WHERE + 80 + col1 IS NULL @@ -58480,8 +59264,9 @@ SELECT - COUNT ( * ) / 28 AS col2 FROM tab2 WHERE NULL IS NULL 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, + col1 AS col2 FROM tab0 WHERE NOT - + 50 * - col1 IS NOT NULL +---- query II rowsort SELECT - col1, col0 + + ( col1 ) * col2 AS col2 FROM tab2 @@ -59415,8 +60200,15 @@ SELECT + - ( col1 ) * + col2 FROM tab2 AS cor0 # Datafusion - Expected - 92 # Datafusion - Expected - 1632 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* cor0\.col2 \+ \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 * + col2 + - + col2 AS col1, 92 AS col1 FROM tab1 cor0 +---- +1003 +1156 +1632 +92 +92 +92 query I rowsort SELECT ALL + + col1 + - 75 FROM tab0 AS cor0 @@ -59449,8 +60241,10 @@ SELECT - 31 + - ( + + 4 ) + - COUNT ( * ) col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 256a5d01659c13778208a2ccefa08e89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(79\) \+ Int64\(5\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + col2 AS col0, + 79 AS col2, + 79 + + ( + 5 ) AS col0 FROM tab2 AS cor0 +---- +9 values hashing to 89ff52bebd564eca5795a6e3d1ac961a query I rowsort SELECT DISTINCT - col2 + - - col1 * + col1 + + col2 AS col1 FROM tab0 AS cor0 WHERE ( + + 67 ) < NULL @@ -59916,8 +60710,15 @@ SELECT ALL 71 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 # Datafusion - Expected - 0 # Datafusion - Expected - -91 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col2" at position 0 and "tab1\.col1 / \(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, + col1 / - col0 col2 FROM tab1 +---- +-51 +-85 +-91 +0 +0 +0 query I rowsort label-9907 SELECT - 95 * COUNT ( * ) AS col2 FROM tab0 @@ -60496,5 +61297,13 @@ SELECT ALL 54 - + - 31 + + + col0 AS col0 FROM tab0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, + col1 col0 FROM tab0 +---- +1 +1 +21 +21 +81 +81 + diff --git a/data/sqlite/random/aggregates/slt_good_57.slt b/data/sqlite/random/aggregates/slt_good_57.slt index b2d8519..ac17f7d 100644 --- a/data/sqlite/random/aggregates/slt_good_57.slt +++ b/data/sqlite/random/aggregates/slt_good_57.slt @@ -776,8 +776,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 * + MIN ( - col0 ) AS col1, - COUNT ( * ) col1 FROM tab2 AS cor0 +---- +-3 +-4500 query I rowsort label-122 SELECT - + MIN ( ALL col2 ) AS col2 FROM tab0 AS cor0 @@ -1465,8 +1468,15 @@ SELECT - col0 * - col1 * + + col1 * + ( col1 ) FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 29 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col0" at position 0 and "tab0\.col1 \+ \(\- Int64\(11\)\) \+ tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 29 AS col0, + col1 + - + 11 + col0 AS col0 FROM tab0 +---- +29 +29 +29 +85 +87 +97 query I rowsort SELECT DISTINCT ( + + col0 ) col1 FROM tab0 @@ -2962,8 +2972,15 @@ SELECT ALL * FROM tab0 cor0 WHERE ( NOT ( - + col0 ) <= ( + 35 + - - col2 ) ) # Datafusion - Expected - 82 # Datafusion - Expected - NULL # Datafusion - Expected - 82 -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\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + + CAST ( NULL AS FLOAT8 ) AS col1, 82 AS col1 FROM tab2 AS cor0 +---- +82 +82 +82 +NULL +NULL +NULL query I rowsort SELECT ALL + ( 21 ) AS col1 FROM tab2 AS cor0 @@ -4377,8 +4394,15 @@ SELECT ALL 38 / col2 + - - col1 col2 FROM tab2 cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 99 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 99 AS col1, col0 AS col1 FROM tab1 AS cor0 +---- +51 +85 +91 +99 +99 +99 query I rowsort SELECT DISTINCT + + 41 + + col2 AS col2 FROM tab1 AS cor0 @@ -4660,8 +4684,15 @@ SELECT DISTINCT - col2 * col1 * + - col0 * - - col0 + 86 AS col0 FROM tab1 AS co # Datafusion - Expected - -10 # Datafusion - Expected - -9603 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col0 AS Int32\)\) \* cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - CAST ( col0 AS INTEGER ) * + col2 AS col0, - col2 col0 FROM tab0 cor0 +---- +-10 +-47 +-705 +-870 +-9603 +-99 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT col2 * + - col2 + - - 7 IS NULL ) @@ -5425,8 +5456,15 @@ NULL # Datafusion - Expected - -87 # Datafusion - Expected - 21 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 21 AS col2, - col0 AS col2 FROM tab0 +---- +-15 +-87 +-97 +21 +21 +21 query I rowsort label-891 SELECT 32 / - 67 AS col1 FROM tab1 WHERE NOT - col2 NOT IN ( - CAST ( NULL AS FLOAT8 ) * + - ( - CAST ( NULL AS INTEGER ) ) * col1 + - 10 * col0 ) @@ -5768,8 +5806,11 @@ SELECT ALL + 29 * - + 42 * col0 col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -10 -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\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( ALL + col2 ) AS col0, - 10 AS col0 FROM tab2 +---- +-10 +58 query I rowsort SELECT DISTINCT ( - + col1 ) * 50 FROM tab2 @@ -5833,8 +5874,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col2, 84 AS col2 FROM tab1 AS cor0 +---- +3 +84 query III rowsort SELECT * FROM tab0 AS cor0 WHERE ( 90 * col1 ) IS NULL @@ -7568,8 +7612,11 @@ SELECT col1 * - + col0 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "max\(\(\- tab2\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col1, MAX ( ALL - + col2 ) AS col1 FROM tab2 +---- +-23 +NULL query I rowsort label-1243 SELECT COUNT ( * ) * + MAX ( col2 ) FROM tab0 @@ -8715,8 +8762,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col0 NOT BETWEEN NULL AND - col1 ) # Datafusion - Expected - 47 # Datafusion - Expected - 16 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 16 AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +10 +16 +16 +16 +47 +99 query II rowsort label-1434 SELECT ALL - COUNT ( ALL + 11 ) AS col1, + 5 FROM tab2 @@ -8835,8 +8889,15 @@ SELECT - + col2 AS col1, + col0 FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 AS col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query II rowsort SELECT DISTINCT + col0 AS col2, + col1 + + 65 col1 FROM tab1 AS cor0 @@ -9348,8 +9409,15 @@ SELECT + 21 AS col2 FROM tab0, tab1 AS cor0 # Datafusion - Expected - -14 # Datafusion - Expected - 94 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ tab1\.col1 AS col0" at position 0 and "\(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 + col1 AS col0, - col1 col0 FROM tab1 +---- +-14 +-47 +-5 +10 +28 +94 query III rowsort SELECT * FROM tab1 WHERE - col2 + - 36 IS NOT NULL @@ -10793,8 +10861,15 @@ SELECT - col2 / + 82 FROM tab1 # Datafusion - Expected - 35 # Datafusion - Expected - 81 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col2, 35 AS col2 FROM tab0 +---- +1 +21 +35 +35 +35 +81 query II rowsort label-1767 SELECT MAX ( + ( + + 43 ) ) AS col0, - 97 - + - MIN ( DISTINCT 40 ) FROM tab0 @@ -11251,8 +11326,15 @@ SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( + col1 ) IN ( - col1 # Datafusion - Expected - 352716 # Datafusion - Expected - -5 # Datafusion - Expected - 285855 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col0 \* \(\- Int64\(57\)\) \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, col0 * - + 57 * - col2 AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +279072 +285855 +352716 query I rowsort SELECT - col2 * + col2 - + col2 + + 62 * 51 AS col1 FROM tab0 AS cor0 @@ -11688,8 +11770,15 @@ SELECT + ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 17 # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "tab1\.col0 / tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col0, col0 / + col1 AS col0 FROM tab1 +---- +1 +17 +3 +NULL +NULL +NULL query I rowsort label-1924 SELECT DISTINCT - 12 * + CAST ( + 82 AS INTEGER ) FROM tab2 @@ -12645,8 +12734,15 @@ SELECT DISTINCT CAST ( - 24 AS INTEGER ) FROM tab2 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-2081 SELECT DISTINCT - + COUNT ( * ) + + + 2 * + 26 FROM tab0 AS cor0 @@ -13014,8 +13110,15 @@ SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN + col2 + col2 AND NULL # Datafusion - Expected - 44 # Datafusion - Expected - -99 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- tab0\.col1\) AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 * + - col1 AS col2, 44 AS col2 FROM tab0 +---- +-210 +-3807 +-99 +44 +44 +44 query I rowsort SELECT + 32 * - - col2 FROM tab2 @@ -13664,8 +13767,15 @@ SELECT - SUM ( DISTINCT + col0 ) FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0, col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT NULL > 30 * - - col2 @@ -13724,8 +13834,11 @@ SELECT - 14 * + COUNT ( * ), - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "max\(Int64\(61\)\) \+ Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 62 AS col1, + MAX ( + 61 ) + + 28 AS col1 FROM tab0 +---- +62 +89 query II rowsort SELECT ALL - col2 AS col0, 58 FROM tab0 cor0 @@ -14988,8 +15101,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 * - + COUNT ( * ) AS col2, 64 AS col2 FROM tab0 +---- +-93 +64 query I rowsort SELECT col1 * 81 AS col0 FROM tab1 @@ -15643,8 +15759,11 @@ SELECT ALL - + CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - -103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(cor0\.col2\) AS col2" at position 0 and "sum\(\(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + MIN ( + col2 ) col2, SUM ( ALL - col1 ) AS col2 FROM tab0 AS cor0 +---- +-103 +10 query II rowsort label-2575 SELECT ALL + - 57 AS col1, COUNT ( * ) AS col0 FROM tab1 cor0 WHERE - 53 - - col2 IS NOT NULL @@ -15989,8 +16108,15 @@ SELECT col2 + - - col0 FROM tab2 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 75 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(25\) / cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, 25 / + col2 AS col2 FROM tab2 AS cor0 +---- +0 +0 +1 +46 +64 +75 query I rowsort label-2629 SELECT DISTINCT + 29 * COUNT ( * ) + - - 62 FROM tab1 AS cor0 @@ -16004,8 +16130,15 @@ SELECT DISTINCT + 29 * COUNT ( * ) + - - 62 FROM tab1 AS cor0 # Datafusion - Expected - -72 # Datafusion - Expected - -89 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- Int64\(11\) \* cor0\.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 II valuesort SELECT DISTINCT col1 - 11 * + col2 col0, - 72 AS col0 FROM tab0 AS cor0 +---- +-1088 +-436 +-72 +-72 +-72 +-89 query I rowsort SELECT + 64 * + col2 + - - col2 - + 20 FROM tab2 @@ -16143,8 +16276,15 @@ SELECT - 47 * + + 38 FROM tab0 # Datafusion - Expected - -127 # Datafusion - Expected - 197 # Datafusion - Expected - -127 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ tab0\.col0 \+ tab0\.col1 AS col2" at position 0 and "Int64\(\-54\) \+ Int64\(\-73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 + col0 + col1 AS col2, - 54 + - 73 AS col2 FROM tab0 +---- +-127 +-127 +-127 +118 +143 +197 query I rowsort SELECT DISTINCT col2 + + + 85 AS col1 FROM tab0 AS cor0 @@ -16457,8 +16597,15 @@ SELECT - ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - -3 # Datafusion - Expected - 99 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 / \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, col2 / - col0 AS col0 FROM tab0 AS cor0 +---- +-1 +-3 +0 +10 +47 +99 query III rowsort SELECT ALL * FROM tab1 WHERE 20 IS NULL @@ -16609,8 +16756,15 @@ SELECT - col0 AS col0, 23 FROM tab2 # Datafusion - Expected - -2 # Datafusion - Expected - -74 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ \(\- cor0\.col2\) AS col2" at position 0 and "Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 + - col2 AS col2, - 2 AS col2 FROM tab2 AS cor0 +---- +-117 +-125 +-2 +-2 +-2 +-74 query I rowsort SELECT DISTINCT - col0 + - - col1 * col1 AS col1 FROM tab1 cor0 @@ -17405,8 +17559,15 @@ SELECT ALL - COUNT ( * ) / COUNT ( * ) FROM tab1 WHERE NOT col1 / - 84 * col2 = # Datafusion - Expected - 40 # Datafusion - Expected - 0 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / \(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 / - col1 AS col0, + col2 AS col0 FROM tab2 AS cor0 +---- +0 +0 +0 +23 +40 +58 query II rowsort SELECT - col1 - col0 col1, ( + 9 ) FROM tab2 AS cor0 @@ -17632,8 +17793,9 @@ SELECT MIN ( CAST ( NULL AS INTEGER ) ) FROM tab0 NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* Int64\(52\) \* Int64\(4\) \* Int64\(\-20\) \+ Int64\(78\) AS col0" at position 1 and "\(\- tab1\.col0\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + col1 AS col2, col0 * + 52 * 4 * - 20 + + 78 AS col0, - col0 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NULL +---- query I rowsort label-2901 SELECT DISTINCT 9 * + COUNT ( * ) AS col0 FROM tab1 @@ -18813,8 +18975,15 @@ SELECT ( + col2 ) AS col0 FROM tab0 WHERE NOT ( + 14 ) IS NULL # Datafusion - Expected - 58 # Datafusion - Expected - 77 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col1 AS col0, col2 AS col0 FROM tab2 AS cor0 +---- +23 +40 +51 +58 +67 +77 query I rowsort label-3091 SELECT + + MAX ( + 89 ) FROM tab1 AS cor0 @@ -19322,8 +19491,15 @@ SELECT - col2 / - col2 col1 FROM tab2 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, col2 AS col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-3167 SELECT + ( + CAST ( + COUNT ( * ) AS INTEGER ) ) FROM tab0 @@ -19646,8 +19822,11 @@ SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN - - col1 + - + col0 AND + - 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1295 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(81\) \+ \(\- sum\(DISTINCT \(\- tab1\.col0\)\)\) \* \(\- Int64\(6\)\) \- Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col1, + 81 + - SUM ( DISTINCT - col0 ) * - + 6 - 14 AS col1 FROM tab1 +---- +-1295 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 @@ -21384,8 +21563,11 @@ SELECT + SUM ( - - 68 ) AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 76 AS col1, 43 AS col1 FROM tab2 +---- +43 +76 query II rowsort SELECT ALL - 56 AS col1, - col2 * + col0 AS col2 FROM tab1 @@ -21692,8 +21874,15 @@ SELECT ALL - COUNT ( * ) + - + COUNT ( * ) FROM tab2 # Datafusion - Expected - -85 # Datafusion - Expected - -91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col0\) AS Int32\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( - ( + col0 ) AS INTEGER ), - col0 FROM tab1 AS cor0 +---- +-51 +-51 +-85 +-85 +-91 +-91 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -21759,8 +21948,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab2 WHERE NULL < NULL +---- +0 +0 query I rowsort label-3576 SELECT - col2 / - + col0 + - col0 + - col2 AS col1 FROM tab2 @@ -22087,8 +22279,15 @@ NULL # Datafusion - Expected - 82 # Datafusion - Expected - 58 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(18\) \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, 18 + col0 AS col0 FROM tab2 AS cor0 +---- +23 +40 +58 +64 +82 +93 query I rowsort label-3626 SELECT ALL + ( - MIN ( - col2 ) ) FROM tab1 AS cor0 WHERE + CAST ( + col2 AS FLOAT8 ) IS NOT NULL @@ -22527,8 +22726,15 @@ SELECT ALL - col0 + 81 + - - 9 / col2 * + + col1 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - 73 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 73 AS col2, - ( + col2 ) AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +73 +73 +73 query I rowsort label-3701 SELECT DISTINCT - 31 / col1 * + 26 FROM tab1 AS cor0 @@ -23473,8 +23679,15 @@ SELECT DISTINCT 71 + - + 10 / + 52 * - - MAX ( DISTINCT - col1 ) AS col2 FROM ta # Datafusion - Expected - 66 # Datafusion - Expected - 97 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "tab0\.col0 \+ \(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col1, + col0 + - col1 AS col1 FROM tab0 +---- +-66 +15 +66 +87 +96 +97 query I rowsort SELECT - 83 AS col0 FROM tab1 cor0 WHERE NULL BETWEEN + 78 AND + + col0 @@ -23569,8 +23782,11 @@ SELECT - 66 / 28 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col1, 13 AS col1 FROM tab2 AS cor0 +---- +13 +NULL query I rowsort label-3874 SELECT + MIN ( ALL col2 ) AS col0 FROM tab0 WHERE NOT + + 27 < - col2 * ( + + ( - + 86 ) ) @@ -23589,8 +23805,15 @@ SELECT * FROM tab2 WHERE NOT + col0 * - + 58 > - col1 + - 71 + + 9 # Datafusion - Expected - NULL # Datafusion - Expected - 78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "tab0\.col2 \- \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 78 AS col0, col2 - - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 +---- +78 +78 +78 +NULL +NULL +NULL query I rowsort label-3877 SELECT ALL - COUNT ( * ) * - + 52 FROM tab0 @@ -23801,8 +24024,15 @@ SELECT DISTINCT MIN ( - 79 ) AS col0 FROM tab2 # Datafusion - Expected - 31 # Datafusion - Expected - -9 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 9 AS col1, 31 col1 FROM tab1 +---- +-9 +-9 +-9 +31 +31 +31 query I rowsort label-3911 SELECT DISTINCT - - 72 + + 21 + + + COUNT ( col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT 84 / - col2 IS NOT NULL @@ -25046,8 +25276,15 @@ NULL # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col1, + col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-4111 SELECT + col0 / + ( - 5 ) AS col1 FROM tab0 @@ -27071,8 +27308,15 @@ NULL # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col2, col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-4453 SELECT DISTINCT - - 24 * COUNT ( * ) + - 97 col2 FROM tab1 AS cor0 @@ -27914,8 +28158,15 @@ SELECT - - col0 * 98 col1 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * - - col1 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 +---- +196 +2209 +25 +NULL +NULL +NULL query I rowsort SELECT col2 + + 95 + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL @@ -28248,8 +28499,15 @@ SELECT DISTINCT - SUM ( DISTINCT - col0 ) FROM tab0 # Datafusion - Expected - -19 # Datafusion - Expected - 0 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) / tab1\.col0 AS col1" at position 0 and "Int64\(49\) \+ \(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 / + + col0 AS col1, + 49 + - col2 AS col1 FROM tab1 +---- +-10 +-19 +-47 +0 +0 +0 query I rowsort SELECT DISTINCT + - 90 AS col1 FROM tab2 WHERE - - col0 * - + col2 * - col0 + - 26 NOT BETWEEN NULL AND 50 - col0 @@ -28399,8 +28657,15 @@ NULL # Datafusion - Expected - 68 # Datafusion - Expected - -2976 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* \(\- cor0\.col2\) \+ cor0\.col1 \+ \(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 31 * - col2 + + ( + col1 ) + - col1 AS col0, + col2 col0 FROM tab1 AS cor0 +---- +-1829 +-2108 +-2976 +59 +68 +96 query I rowsort label-4675 SELECT DISTINCT - - 94 - CAST ( - 68 AS INTEGER ) / + col2 FROM tab0 AS cor0 WHERE col0 IS NULL @@ -29084,8 +29349,15 @@ SELECT - 10 + + col0 AS col2 FROM tab0 WHERE ( + - 53 ) >= + col1 - 52 / col1 * # Datafusion - Expected - 4508 # Datafusion - Expected - 0 # Datafusion - Expected - 5948 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) / Int64\(\-50\) \* \(\- tab2\.col0\) AS col2" at position 0 and "Int64\(19\) \+ \(\- tab2\.col1\) \* \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 8 / - 50 * - + col0 AS col2, 19 + - ( + col1 ) * - col1 AS col2 FROM tab2 +---- +0 +0 +0 +2620 +4508 +5948 query I rowsort label-4790 SELECT CAST ( 58 AS INTEGER ) col1 FROM tab2 @@ -29263,8 +29535,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE + - 3 + - col1 NOT BETWEEN col1 AND + col1 # Datafusion - Expected - 1437 # Datafusion - Expected - -33022320 # Datafusion - Expected - 1238 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) / cor0\.col1 \+ \(\- cor0\.col0\) \- Int64\(12\) \* cor0\.col1 \* \(\- \(\- cor0\.col1\)\) \* cor0\.col0 \* cor0\.col2 \+ cor0\.col2 AS col2" at position 0 and "Int64\(36\) \* cor0\.col1 \+ cor0\.col0 \* Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 / col1 + - col0 - 12 * col1 * - - col1 * col0 * col2 + col2 AS col2, 36 * + col1 + + col0 * - 13 col2 FROM tab2 AS cor0 +---- +-182138905 +-234325818 +-33022320 +1238 +1437 +1940 query I rowsort SELECT DISTINCT - - 42 + - col2 AS col0 FROM tab2 AS cor0 @@ -29364,8 +29643,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col1, + MAX ( + col0 ) * - MAX ( - - col1 ) AS col1 FROM tab2 +---- +-3 +-5775 query II rowsort label-4835 SELECT ( + - CAST ( col2 AS INTEGER ) ), col0 FROM tab0 @@ -29732,8 +30014,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT col2 - + col1 IS NOT NULL # Datafusion - Expected - 64 # Datafusion - Expected - 78 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 78 AS col1, col0 AS col1 FROM tab2 +---- +46 +64 +75 +78 +78 +78 query I rowsort SELECT ALL col2 * - - col2 AS col2 FROM tab1 @@ -30105,8 +30394,15 @@ SELECT - col0 col1 FROM tab2 AS cor0 WHERE NOT NULL < NULL # Datafusion - Expected - 0 # Datafusion - Expected - -8352 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* Int64\(87\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 * + 87 AS col2, - 0 AS col2 FROM tab1 AS cor0 +---- +-5133 +-5916 +-8352 +0 +0 +0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 @@ -30115,8 +30411,15 @@ SELECT DISTINCT - + col2 * + 87 AS col2, - 0 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 54 # Datafusion - Expected - 77 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 col0, + 54 AS col0 FROM tab2 +---- +51 +54 +54 +54 +67 +77 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( + 85 ) @@ -30667,8 +30970,15 @@ SELECT + + COUNT ( DISTINCT - 65 ) FROM tab2 AS cor0 WHERE col2 * - 96 * - col0 # Datafusion - Expected - -10 # Datafusion - Expected - 97 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 AS col2, - col2 col2 FROM tab0 AS cor0 WHERE col0 / 50 NOT BETWEEN + col2 AND NULL +---- +-10 +-47 +-99 +15 +87 +97 query I rowsort SELECT DISTINCT - + ( + + col2 ) FROM tab1 AS cor0 @@ -31835,8 +32145,15 @@ SELECT ALL - 53 * - + col2 * + col2 AS col0, CAST ( - col0 AS INTEGER ) + col1 A # Datafusion - Expected - 119 # Datafusion - Expected - 78 # Datafusion - Expected - 101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) / \(\- Int64\(\-35\)\) \- \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col2 \+ Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 43 / - - 35 - - + col1 col2, col2 + 61 AS col2 FROM tab2 AS cor0 +---- +101 +119 +52 +68 +78 +84 query II rowsort label-5234 SELECT 9 AS col0, - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0 AS cor0 @@ -31901,8 +32218,15 @@ SELECT 68 + - + 64 FROM tab2 # Datafusion - Expected - -79 # Datafusion - Expected - -91 # Datafusion - Expected - -121 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col2" at position 0 and "\(\- tab1\.col1\) \+ Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, - col1 + - 74 AS col2 FROM tab1 +---- +-121 +-51 +-79 +-85 +-88 +-91 query I rowsort label-5245 SELECT + CAST ( NULL AS INTEGER ) * + col1 / - - 49 + CAST ( NULL AS INTEGER ) FROM tab1 @@ -31957,8 +32281,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) / + 36 AS col2, 10 AS col2 FROM tab0 AS cor0 +---- +0 +10 query I rowsort SELECT ALL - + ( - 86 ) AS col0 FROM tab1 AS cor0 @@ -32055,8 +32382,9 @@ SELECT ALL - 81 * - + 59 * - col0 FROM tab0 -71685 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col1" at position 0 and "tab0\.col2 / \(\- tab0\.col0\) \- \(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, col2 / - + ( + col0 ) - - col0 AS col1 FROM tab0 WHERE NOT col0 >= NULL +---- query II rowsort label-5271 SELECT ALL + COUNT ( * ), - 51 col0 FROM tab1, tab2 cor0 @@ -32157,8 +32485,15 @@ SELECT ALL - - col1 FROM tab0 AS cor0 WHERE - 40 = NULL # Datafusion - Expected - 2726 # Datafusion - Expected - -5 # Datafusion - Expected - 290 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 \* Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col1 AS col2, col1 * 58 AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +2726 +290 +812 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 @@ -32167,8 +32502,15 @@ SELECT ALL + - col1 AS col2, col1 * 58 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 57 # Datafusion - Expected - 47 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 47 AS col1, 57 AS col1 FROM tab0 AS cor0 +---- +47 +47 +47 +57 +57 +57 query I rowsort label-5289 SELECT + ( + + COUNT ( * ) ) * - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 cor0 @@ -32373,8 +32715,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, - 16 col0 FROM tab2 +---- +-16 +-3 query I rowsort label-5323 SELECT ALL + MAX ( + 28 ) AS col2 FROM tab1 @@ -32458,8 +32803,15 @@ SELECT DISTINCT + col2 * 77 AS col1 FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - 26 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "tab2\.col0 \+ Int64\(34\) / Int64\(\-90\) \* \(\- CAST\(tab2\.col0 AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 26 AS col1, col0 + + 34 / + - 90 * + - CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 +---- +26 +26 +26 +46 +64 +75 query I rowsort label-5338 SELECT - SUM ( DISTINCT + - col0 ) * + 13 * 5 - - SUM ( ALL - col2 ) FROM tab0 AS cor0 @@ -33025,8 +33377,15 @@ NULL # Datafusion - Expected - 67 # Datafusion - Expected - 0 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) / cor0\.col1 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 50 / col1 AS col0, col1 AS col0 FROM tab2 AS cor0 +---- +0 +0 +0 +51 +67 +77 query I rowsort SELECT col1 * + 58 FROM tab2 @@ -34069,8 +34428,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + 96 IS NOT NULL # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col2, col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -34087,8 +34453,15 @@ NULL # Datafusion - Expected - 10 # Datafusion - Expected - -99 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, + ( 10 ) AS col1 FROM tab0 +---- +-10 +-47 +-99 +10 +10 +10 query II rowsort label-5604 SELECT ALL CAST ( NULL AS INTEGER ) AS col0, - col0 FROM tab0 @@ -34135,8 +34508,15 @@ SELECT DISTINCT + col1 * - col1 + - - col0 FROM tab0 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - -91 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(\-1\) / \(\- Int64\(\-99\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col0, - 1 / - ( - 99 ) col0 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +0 +0 +0 query II rowsort SELECT 53 AS col1, + ( - col0 ) * col0 FROM tab0 AS cor0 @@ -35194,8 +35574,15 @@ SELECT ALL col2 * + - col1 * col0 FROM tab0 # Datafusion - Expected - -8 # Datafusion - Expected - 77 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "tab2\.col1 \+ \(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, col1 + - col0 col2 FROM tab2 +---- +-8 +13 +5 +51 +67 +77 query II rowsort SELECT - 32 AS col0, col2 FROM tab0 @@ -35492,8 +35879,15 @@ NULL # Datafusion - Expected - 68 # Datafusion - Expected - -8 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 8 AS col1, col2 AS col1 FROM tab1 +---- +-8 +-8 +-8 +59 +68 +96 query I rowsort SELECT DISTINCT 3 * 59 FROM tab1 @@ -36163,8 +36557,15 @@ SELECT ALL ( - 84 ) * + 55 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - -81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 col0, col1 AS col0 FROM tab0 +---- +-1 +-21 +-81 +1 +21 +81 query I rowsort SELECT DISTINCT + + ( 3 ) FROM tab2 AS cor0 @@ -36385,8 +36786,15 @@ SELECT + 10 col1 FROM tab2 AS cor0 # Datafusion - Expected - -11 # Datafusion - Expected - 875 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- Int64\(8\)\) \- \(\- cor0\.col2\) AS col2" at position 0 and "Int64\(\-11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * ( - + 8 ) - + ( - + col2 ) AS col2, - 11 col2 FROM tab0 AS cor0 +---- +-11 +-11 +-11 +167 +706 +875 query I rowsort SELECT DISTINCT col2 * + + col1 AS col2 FROM tab2 AS cor0 @@ -37787,8 +38195,11 @@ SELECT DISTINCT COUNT ( - col0 ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 AS col1, COUNT ( * ) AS col1 FROM tab2 +---- +3 +93 query I rowsort label-6217 SELECT ALL + 46 * - COUNT ( * ) * + 45 + + MIN ( ALL - 77 ) FROM tab0 AS cor0 @@ -38180,8 +38591,11 @@ SELECT - ( - 76 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "max\(tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, + MAX ( + col0 ) col1 FROM tab1 +---- +3 +91 query I rowsort SELECT DISTINCT + col0 * + col0 * - + 44 AS col2 FROM tab0 @@ -38690,8 +39104,11 @@ SELECT ALL - - 20 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -264 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-88\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, - 88 * + COUNT ( * ) col0 FROM tab0 +---- +-264 +3 query I rowsort label-6361 SELECT ALL - MIN ( - + 61 ) * - 19 AS col2 FROM tab2 @@ -38814,8 +39231,11 @@ SELECT col2 * + + 24 col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, 3 AS col0 FROM tab0 +---- +3 +3 query III rowsort SELECT ALL * FROM tab1 WHERE NOT - - 98 + - col1 + + 61 IS NULL @@ -38926,8 +39346,15 @@ SELECT DISTINCT + col1 + + ( - col2 ) + + - col0 + + col1 * - 38 col1 FROM tab0 # Datafusion - Expected - 68 # Datafusion - Expected - 53 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 53 ) AS col1, + col2 AS col1 FROM tab1 cor0 +---- +53 +53 +53 +59 +68 +96 query I rowsort SELECT DISTINCT + - 93 AS col1 FROM tab1 AS cor0 @@ -40862,8 +41289,15 @@ SELECT ( + 98 ) FROM tab1 # Datafusion - Expected - -194 # Datafusion - Expected - 75 # Datafusion - Expected - -192 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "\(\- tab2\.col2\) \+ \(\- tab2\.col1\) \- tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, ( ( + - col2 ) ) + - col1 - col1 AS col2 FROM tab2 +---- +-125 +-192 +-194 +46 +64 +75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 @@ -41085,8 +41519,15 @@ SELECT DISTINCT + - col0, col1 - + - col0 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 133 # Datafusion - Expected - -90 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col0" at position 0 and "cor0\.col0 \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 90 AS col0, col0 + col2 AS col0 FROM tab2 AS cor0 +---- +-90 +-90 +-90 +104 +133 +69 query I rowsort label-6751 SELECT ( 45 ) * - - 46 * - COUNT ( DISTINCT + col2 ) AS col0 FROM tab0 @@ -41267,8 +41708,15 @@ SELECT ALL + COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NOT NULL # Datafusion - Expected - -59 # Datafusion - Expected - -91 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "\(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col1, - col2 AS col1 FROM tab1 +---- +-51 +-59 +-68 +-85 +-91 +-96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 @@ -41277,8 +41725,15 @@ SELECT ALL - col0 AS col1, - col2 AS col1 FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col0, col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query II rowsort SELECT DISTINCT - col2 AS col2, + ( + col0 ) + + 58 AS col1 FROM tab2 AS cor0 @@ -41832,8 +42287,15 @@ SELECT ( + - 45 ) AS col2 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - -74 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) \* Int64\(30\) / tab2\.col2 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 57 * 30 / + col2 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 +---- +-29 +-42 +-74 +NULL +NULL +NULL query II rowsort SELECT col0, - col1 + - col0 FROM tab1 @@ -42657,8 +43119,15 @@ SELECT ALL * FROM tab2 WHERE NOT col0 > - + 22 / + col1 # Datafusion - Expected - -28 # Datafusion - Expected - 2 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 / tab2\.col2 AS col1" at position 0 and "Int64\(\-28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 / col2 AS col1, - 28 AS col1 FROM tab2 +---- +-28 +-28 +-28 +1 +1 +2 query I rowsort label-7004 SELECT ALL - MIN ( ALL + col0 ) FROM tab2 @@ -44414,8 +44883,11 @@ 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\(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\. +query II valuesort SELECT ALL 78 * - + COUNT ( * ) col1, + MIN ( 8 ) AS col1 FROM tab2 +---- +-234 +8 query I rowsort SELECT DISTINCT - col2 col0 FROM tab2 WHERE ( NULL ) <> + col0 @@ -44496,8 +44968,15 @@ SELECT DISTINCT 43 AS col1, + 88 FROM tab1 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 4350 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* tab2\.col2 AS col0" at position 0 and "Int64\(34\) \+ \(\- Int64\(\-13\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * + col2 AS col0, 34 + - - 13 AS col0 FROM tab2 +---- +1058 +2560 +4350 +47 +47 +47 query I rowsort label-7309 SELECT ALL - MIN ( + 9 ) FROM tab0 @@ -44632,8 +45111,10 @@ SELECT col1 AS col2 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to bb4fbaea507df190f2dc22f073bc5d30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col1 AS col0, 53 AS col0, - col2 FROM tab1 AS cor0 +---- +9 values hashing to adcdd508b85931973bd79d09df4ce632 query I rowsort SELECT + 40 * + col0 AS col0 FROM tab0 AS cor0 @@ -44763,8 +45244,9 @@ SELECT - col1 * + + 18 + + 16 AS col2 FROM tab1 AS cor0 -830 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(50\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT col0 * + 50 AS col0, CAST ( NULL AS INTEGER ) AS col0, col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL +---- query I rowsort SELECT DISTINCT - - 92 FROM tab2 cor0 @@ -45054,8 +45536,15 @@ SELECT ALL - ( col1 ) * + 85 FROM tab2 WHERE NOT ( NOT ( NULL NOT BETWEEN NULL A # Datafusion - Expected - NULL # Datafusion - Expected - -74 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \+ \(\- tab2\.col1\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 + - col1 AS col0, CAST ( NULL AS INTEGER ) + + 7 AS col0 FROM tab2 +---- +-117 +-125 +-74 +NULL +NULL +NULL query I rowsort label-7403 SELECT + ( - + col0 ) * - col2 + CAST ( + 96 AS INTEGER ) FROM tab0 @@ -45085,8 +45574,11 @@ SELECT ALL + 19 - - col2 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 0 and "sum\(\(\- tab1\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER ) AS col1, SUM ( ALL - col1 ) AS col1 FROM tab1 +---- +-3 +-66 query III rowsort SELECT * FROM tab0 WHERE - 88 - + 66 * - - col2 + + 27 - - - col0 IS NULL @@ -47307,8 +47799,11 @@ SELECT * FROM tab0 WHERE NOT - - col0 * - + col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "Int64\(\-71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 87 AS col0, - 71 AS col0 FROM tab2 cor0 +---- +-71 +87 query I rowsort SELECT ALL - ( + col2 ) FROM tab0 AS cor0 WHERE col1 IS NULL @@ -47699,8 +48194,15 @@ SELECT ALL COUNT ( * ) * - 36 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +23 +40 +46 +58 +64 +75 query I rowsort label-7853 SELECT DISTINCT MIN ( - + 82 ) * COUNT ( * ) FROM tab2 AS cor0 @@ -47849,8 +48351,11 @@ SELECT - + ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1196 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-26\)\) \* \(\- \(\- max\(DISTINCT \(\- cor0\.col0\)\)\)\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 26 * - - MAX ( DISTINCT + - col0 ) AS col0, + 36 AS col0 FROM tab2 AS cor0 +---- +-1196 +36 query II rowsort SELECT ALL col1 - col0 - + 83 AS col2, + col2 AS col0 FROM tab0 AS cor0 @@ -47968,8 +48473,11 @@ SELECT + - COUNT ( * ) * 89 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 94 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-94 +3 query II rowsort SELECT DISTINCT + col0, - col0 FROM tab2 AS cor0 @@ -48610,8 +49118,10 @@ SELECT ALL * FROM tab0 WHERE NOT 93 * + 91 = NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f4c2d045b47d133f3978384ca1abe7bc -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ( + ( + col1 ) ) col1, col1, - - col1 FROM tab0 +---- +9 values hashing to f4c2d045b47d133f3978384ca1abe7bc query II rowsort SELECT col0, col1 * col1 * + col0 FROM tab0 @@ -48946,8 +49456,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 60 AS col1, COUNT ( * ) col1 FROM tab0 AS cor0 +---- +-60 +3 query I rowsort SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( col2 ) NOT IN ( + col2 ) @@ -49035,8 +49548,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE + 92 + - 45 IS NOT NULL # Datafusion - Expected - 34 # Datafusion - Expected - 96 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - col2 ) AS col2, 34 AS col2 FROM tab1 AS cor0 +---- +34 +34 +34 +59 +68 +96 query I rowsort SELECT DISTINCT + 17 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 ) @@ -49127,8 +49647,15 @@ NULL # Datafusion - Expected - 0 # Datafusion - Expected - -9216 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \* tab1\.col2 AS col0" at position 0 and "\(\- tab1\.col1\) \+ tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 * + col2 AS col0, - col1 + + col1 col0 FROM tab1 +---- +-3481 +-4624 +-9216 +0 +0 +0 query I rowsort label-8097 SELECT DISTINCT - 66 + - - COUNT ( + - 84 ) FROM tab0 @@ -49724,8 +50251,10 @@ SELECT ALL + 29 + - 48 - + 82 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 6b11e525e0c12b55c06ee92b41478dce -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL ( 23 ) AS col2, col0 AS col2, - col0 / + 36 FROM tab1 AS cor0 +---- +9 values hashing to 060579c6c9502765cf6d60131b539dcb query I rowsort label-8192 SELECT + ( - - MIN ( - + col1 ) ) FROM tab2 @@ -50955,8 +51484,15 @@ SELECT ALL - 30 + COUNT ( DISTINCT + 63 ) + MIN ( ALL + 14 ) AS col1 FROM tab0 A # Datafusion - Expected - 85 # Datafusion - Expected - 88 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 88 col2, + col0 AS col2 FROM tab1 +---- +51 +85 +88 +88 +88 +91 query I rowsort SELECT ALL col0 * - col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL @@ -51698,8 +52234,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "min\(cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) AS col0, + MIN ( ALL + col0 ) AS col0 FROM tab1 AS cor0 +---- +-3 +51 query I rowsort label-8520 SELECT col0 / - + 74 col1 FROM tab1 AS cor0 @@ -52471,8 +53010,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 AS col2, - COUNT ( * ) AS col2 FROM tab1 +---- +-3 +56 query I rowsort SELECT + col1 * 69 AS col2 FROM tab0 @@ -53444,8 +53986,15 @@ SELECT - col2 * + 68 + + + col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - -324 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* Int64\(\-36\) AS col2" at position 0 and "tab1\.col0 \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 9 * - 36 col2, col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE 33 <> - CAST ( - - col2 AS INTEGER ) +---- +-324 +-324 +-324 +NULL +NULL +NULL query I rowsort SELECT DISTINCT - 75 * col0 + + - 52 FROM tab2 AS cor0 @@ -55039,8 +55588,15 @@ SELECT + 31 * - + SUM ( ALL 64 ) FROM tab0, tab0 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - -81 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(\-64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 col1, - 64 AS col1 FROM tab0 cor0 +---- +-1 +-21 +-64 +-64 +-64 +-81 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NULL IS NOT NULL OR NULL NOT IN ( + col0, - col2 ) @@ -55119,8 +55675,9 @@ SELECT DISTINCT + SUM ( + col0 ) FROM tab1 227 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 91 AS col2, col0 AS col2 FROM tab2 WHERE + 2 IS NULL +---- query II rowsort SELECT DISTINCT + col1 AS col2, + 5 FROM tab0 AS cor0 @@ -55329,8 +55886,15 @@ SELECT * FROM tab1 AS cor0 WHERE - 68 NOT BETWEEN NULL AND + CAST ( NULL AS INTE # Datafusion - Expected - -86 # Datafusion - Expected - -36 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col1" at position 0 and "Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 36 col1, - 86 AS col1 FROM tab2 AS cor0 +---- +-36 +-36 +-36 +-86 +-86 +-86 query I rowsort label-9123 SELECT ( - + col2 ) * - CAST ( NULL AS INTEGER ) * ( - 63 ) AS col1 FROM tab2 AS cor0 WHERE 60 NOT BETWEEN ( NULL ) AND NULL @@ -55684,8 +56248,15 @@ SELECT ALL + - MIN ( ALL - ( ( + 99 ) ) ) col0 FROM tab2 AS cor0 # Datafusion - Expected - 92 # Datafusion - Expected - 19 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 19 col0, 92 AS col0 FROM tab1 +---- +19 +19 +19 +92 +92 +92 query II rowsort label-9181 SELECT - 30, MAX ( ALL + col2 ) AS col0 FROM tab1 @@ -55705,8 +56276,15 @@ NULL # Datafusion - Expected - -85 # Datafusion - Expected - 91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "\(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col2, - col0 AS col2 FROM tab1 +---- +-51 +-85 +-91 +51 +85 +91 query II rowsort SELECT DISTINCT 9, - col0 - - 80 * - col1 + col0 + - + col2 AS col0 FROM tab0 @@ -56855,8 +57433,11 @@ SELECT ALL + col2 AS col1, + col1 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab2 +---- +3 +3 query II rowsort label-9367 SELECT COUNT ( * ) AS col2, 43 + MIN ( - 29 ) FROM tab2 @@ -57446,8 +58027,15 @@ SELECT col1 AS col2 FROM tab1 WHERE NOT - col0 * - col2 + - col0 <= + - col0 # Datafusion - Expected - 11 # Datafusion - Expected - 91 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, 11 AS col2 FROM tab1 +---- +11 +11 +11 +51 +85 +91 query II rowsort SELECT col2, + 85 FROM tab0 @@ -57604,8 +58192,11 @@ SELECT DISTINCT * FROM tab2 WHERE NOT + col2 <= - col2 * - col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 86 AS col2, COUNT ( * ) AS col2 FROM tab0 +---- +-86 +3 query I rowsort SELECT - 50 FROM tab2 WHERE - col0 * + col1 NOT BETWEEN - col1 * - col1 * - 34 * - col1 AND - col1 @@ -58213,8 +58804,15 @@ SELECT - col1 * col0 - - col1 + - + col0 AS col2 FROM tab1 cor0 # Datafusion - Expected - 85 # Datafusion - Expected - -91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "\(\- CAST\(\(\- tab1\.col0\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col1, + ( - CAST ( - + col0 AS INTEGER ) ) AS col1 FROM tab1 +---- +-51 +-85 +-91 +51 +85 +91 query II rowsort SELECT DISTINCT + 75 AS col1, col1 AS col2 FROM tab1 WHERE - + col0 <> 38 * - col0 @@ -58669,8 +59267,15 @@ SELECT - 58 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL # Datafusion - Expected - 77 # Datafusion - Expected - 58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, + col1 AS col0 FROM tab2 +---- +23 +40 +51 +58 +67 +77 query II rowsort label-9669 SELECT 93 / - col1 + - - col0 * - col2 AS col1, col0 FROM tab2 @@ -59255,8 +59860,11 @@ SELECT - col2 FROM tab1 AS cor0 WHERE NOT - col2 >= col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -270 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(CAST\(Int64\(\-90\) AS Int32\)\) AS col0" at position 0 and "\(\- min\(cor0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + SUM ( + CAST ( + - 90 AS INTEGER ) ) AS col0, - MIN ( + + col0 ) AS col0 FROM tab1 cor0 +---- +-270 +-51 query I rowsort SELECT DISTINCT - 19 * + + col0 + col0 FROM tab0 AS cor0 @@ -60562,8 +61170,11 @@ SELECT + col2 FROM tab0 WHERE NOT NULL = - col0 # 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\(\(\- cor0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 67 AS col2, COUNT ( - col2 ) AS col2 FROM tab1 cor0 +---- +-67 +3 query I rowsort SELECT + col2 FROM tab2 AS cor0 WHERE NOT col2 <> ( - col0 * col2 * - ( + - col1 ) * + 73 ) diff --git a/data/sqlite/random/aggregates/slt_good_58.slt b/data/sqlite/random/aggregates/slt_good_58.slt index 1d18b2d..511c557 100644 --- a/data/sqlite/random/aggregates/slt_good_58.slt +++ b/data/sqlite/random/aggregates/slt_good_58.slt @@ -262,13 +262,22 @@ SELECT - - 31, + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN CAST ( # Datafusion - Expected - 48 # Datafusion - Expected - -77 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- cor0\.col1\)\)\) AS col0" at position 0 and "\(\- Int64\(\-48\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - ( - + col1 ) col0, ( - - 48 ) col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +48 +48 +48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c36736d82649e383332070b2b892d542 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 86 AS col0, col1 + + + 34 AS col2, col2 AS col0 FROM tab1 +---- +9 values hashing to a738ec756e669afd31d8ebfcc3a607c9 query II rowsort SELECT ALL - col2 col1, + col2 * 27 FROM tab2 AS cor0 @@ -430,8 +439,10 @@ SELECT - MAX ( + col2 ) * + 47 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to faf5486ea7b8066be547839901c43951 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / Int64\(82\) AS col0" at position 0 and "\(\- cor0\.col1\) \+ \(\- Int64\(\-95\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col2 / + 82 AS col0, 72 * - + col1 * - col1, - col1 + - - 95 AS col0 FROM tab2 AS cor0 +---- +9 values hashing to 7722f038da0856186f6f49a455b31190 query I rowsort label-64 SELECT col0 * - col1 * + CAST ( + 33 AS INTEGER ) AS col2 FROM tab0 AS cor0 @@ -984,8 +995,15 @@ SELECT col1, + col0 / + col2 FROM tab0 # Datafusion - Expected - 7425 # Datafusion - Expected - NULL # Datafusion - Expected - 750 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(75\) \* tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) col2, 75 * + col2 AS col2 FROM tab0 +---- +3525 +7425 +750 +NULL +NULL +NULL query III rowsort SELECT ALL col0, + ( + col0 ) AS col1, - col2 * col2 FROM tab0 @@ -1194,8 +1212,15 @@ SELECT - col2 + - 10 + + - col2 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 AS col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-185 SELECT CAST ( - + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0 @@ -1368,8 +1393,15 @@ SELECT ALL MIN ( col1 ) / COUNT ( col2 ) AS col1 FROM tab2 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, + col1 AS col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-214 SELECT - COUNT ( - col2 ) AS col1 FROM tab1 @@ -1557,8 +1589,15 @@ SELECT 10 * col0 col0 FROM tab2 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - -91 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col0 / cor0\.col1 \+ \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, col0 / col1 + - col0 AS col0 FROM tab1 cor0 +---- +-48 +-51 +-68 +-85 +-90 +-91 query I rowsort SELECT DISTINCT + col0 * 99 + + col0 FROM tab2 AS cor0 @@ -1594,8 +1633,10 @@ SELECT ALL col0 AS col0, - 99 * - - col0 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 36ee894a009a45345497305e7ecfee80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col0, + col0 AS col0, - ( + col1 ) AS col2 FROM tab0 AS cor0 +---- +9 values hashing to b03b6d7ea6429ab6b2beba25e72580ce query I rowsort label-251 SELECT - COUNT ( DISTINCT 8 ) * 76 - + COUNT ( * ) FROM tab0 AS cor0 @@ -2574,8 +2615,15 @@ SELECT DISTINCT - col2 AS col1, - col2 FROM tab0 # Datafusion - Expected - 532 # Datafusion - Expected - 77 # Datafusion - Expected - 532 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(76\) \* Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col2, 76 * 7 AS col2 FROM tab2 AS cor0 +---- +51 +532 +532 +532 +67 +77 query I rowsort label-417 SELECT - - 31 / - col1 - - col2 * + + col0 col2 FROM tab1 cor0 @@ -4270,8 +4318,15 @@ SELECT DISTINCT + 51 * + 3 FROM tab1 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - -77 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 77 AS col0, + ( + col2 ) AS col0 FROM tab1 AS cor0 +---- +-77 +-77 +-77 +59 +68 +96 query I rowsort SELECT 39 + 56 + col1 AS col0 FROM tab0 AS cor0 @@ -4599,8 +4654,11 @@ SELECT - 40 / - + COUNT ( * ) col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(89\)\) AS col2" at position 0 and "Int64\(\-30\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MAX ( DISTINCT + 89 ) AS col2, - 30 * + COUNT ( * ) AS col2 FROM tab1 +---- +-90 +89 query III rowsort SELECT * FROM tab2 WHERE NOT + 41 IS NULL @@ -4746,8 +4804,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 AS col1, ( - COUNT ( * ) ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 +---- +-9 +5 query I rowsort SELECT DISTINCT + 45 * 3 FROM tab2 @@ -5425,8 +5486,15 @@ SELECT ( - COUNT ( - CAST ( + col1 AS INTEGER ) ) ) FROM tab1 # Datafusion - Expected - 99 # Datafusion - Expected - 980 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \* Int64\(\-98\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 * - 98 col1, col2 AS col1 FROM tab0 +---- +10 +4606 +47 +9702 +980 +99 query I rowsort label-898 SELECT CAST ( NULL AS INTEGER ) * - + col2 * col0 AS col0 FROM tab0 @@ -6472,8 +6540,15 @@ SELECT - col0 / - + 25 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -376 # Datafusion - Expected - -99 # Datafusion - Expected - -792 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(\-8\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + ( + col2 ) ) col2, - 8 * col2 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL +---- +-10 +-376 +-47 +-792 +-80 +-99 query I rowsort SELECT DISTINCT ( - - 38 ) FROM tab2 AS cor0 @@ -7616,8 +7691,15 @@ SELECT + 28 AS col1, - 81 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 41 # Datafusion - Expected - -80 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) / \(\- cor0\.col2\) \+ \(\- cor0\.col1\) AS col1" at position 0 and "Int64\(62\) \+ CAST\(\(\- cor0\.col1\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + col1 ) / - + col2 + - col1 AS col1, + 62 + + CAST ( - + col1 AS INTEGER ) AS col1 FROM tab0 cor0 +---- +-1 +-19 +-19 +-80 +41 +61 query II rowsort SELECT + - 85 AS col0, + col0 AS col2 FROM tab2 AS cor0 @@ -8073,8 +8155,15 @@ SELECT DISTINCT - - col0 * - col0 + ( ( - ( - col2 ) ) ) + - 2 - - 10 FROM tab1 # Datafusion - Expected - 75 # Datafusion - Expected - 379456 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \* tab2\.col0 \* \(\- tab2\.col1\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 * + col0 * - col1 col1, col0 col1 FROM tab2 +---- +119646 +336675 +379456 +46 +64 +75 query I rowsort SELECT col1 - - + col1 AS col2 FROM tab2 @@ -8225,8 +8314,15 @@ SELECT - col0 col1 FROM tab1 cor0 WHERE + 69 IS NOT NULL # Datafusion - Expected - 97 # Datafusion - Expected - 70 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \+ \(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 49 + - - col1 col2, col0 AS col2 FROM tab0 AS cor0 +---- +130 +15 +50 +70 +87 +97 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 NOT IN ( + col0 ) @@ -9072,8 +9168,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( * ) AS col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +-3 +3 query I rowsort label-1494 SELECT COUNT ( * ) - 29 FROM tab1 AS cor0 @@ -9130,8 +9229,11 @@ SELECT DISTINCT + 72 - col1 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER ), - COUNT ( * ) FROM tab1 +---- +-3 +-3 query I rowsort SELECT 34 AS col0 FROM tab0 WHERE NOT - col1 * col1 NOT BETWEEN - 64 AND - ( - col2 ) @@ -11201,8 +11303,15 @@ SELECT - + col1 * - col2 + - col0 * + + col2 * + col2 FROM tab0 AS cor0 # Datafusion - Expected - 96 # Datafusion - Expected - 81 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 col2, + 96 AS col2 FROM tab0 cor0 +---- +1 +21 +81 +96 +96 +96 query I rowsort SELECT - + ( - col0 ) * + - col0 col2 FROM tab0 AS cor0 @@ -11643,8 +11752,15 @@ SELECT - col0 * 67 FROM tab2 # Datafusion - Expected - 3381 # Datafusion - Expected - 9 # Datafusion - Expected - 552 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "tab2\.col0 \+ tab2\.col2 \* tab2\.col2 \+ \(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 9 AS col1, col0 + + col2 * col2 + + - col2 AS col1 FROM tab2 +---- +1624 +3381 +552 +9 +9 +9 query I rowsort label-1924 SELECT + SUM ( ALL + 1 ) + - + 77 FROM tab2 @@ -12329,8 +12445,15 @@ SELECT + CAST ( + 85 AS INTEGER ) col0 FROM tab1 WHERE NOT NULL IS NULL # Datafusion - Expected - 5015 # Datafusion - Expected - 3143 # Datafusion - Expected - 6188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \* cor0\.col1 \+ Int64\(\-53\) AS col2" at position 0 and "cor0\.col0 \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col2 * + col1 + + - 53 AS col2, + col0 * col2 AS col2 FROM tab1 AS cor0 +---- +1291 +242 +3143 +4896 +5015 +6188 query II rowsort SELECT - col0, col0 AS col2 FROM tab0 AS cor0 @@ -12502,8 +12625,15 @@ SELECT - col2 + 24 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -53 # Datafusion - Expected - -77 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ Int64\(37\) / \(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "Int64\(\-53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 + 37 / - - col0 col1, - 53 AS col1 FROM tab2 AS cor0 +---- +-51 +-53 +-53 +-53 +-67 +-77 query I rowsort label-2062 SELECT ALL + 76 / + 49 FROM tab1 AS cor0 @@ -12651,8 +12781,15 @@ SELECT DISTINCT + + 47 FROM tab1 cor0 # Datafusion - Expected - -253 # Datafusion - Expected - -99 # Datafusion - Expected - -422433 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col0" at position 0 and "Int64\(99\) \+ \(\- tab0\.col2\) \* tab0\.col0 / tab0\.col1 \* \(\- Int64\(\-44\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, + 99 + - + col2 * col0 / col1 * + ( - + ( - 44 ) ) AS col0 FROM tab0 +---- +-10 +-1705 +-253 +-422433 +-47 +-99 query II rowsort SELECT - col2 AS col2, col1 * + 93 FROM tab1 @@ -13799,8 +13936,15 @@ SELECT ALL - col0 * + 49 FROM tab0 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - -75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0, - col0 FROM tab2 AS cor0 +---- +-46 +-46 +-64 +-64 +-75 +-75 query II rowsort SELECT - col2 * - col2, col1 col0 FROM tab0 @@ -14144,8 +14288,15 @@ SELECT ALL + col0 * - col2 AS col0, + 33 AS col2 FROM tab0 # Datafusion - Expected - 77 # Datafusion - Expected - 45 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ Int64\(\-30\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 + - 30 AS col0, + col1 AS col0 FROM tab2 +---- +16 +34 +45 +51 +67 +77 query I rowsort SELECT 72 FROM tab0 WHERE ( NOT col0 <= - col1 ) @@ -15035,8 +15186,15 @@ SELECT DISTINCT col0, - col1 / col1 FROM tab2 # Datafusion - Expected - -64 # Datafusion - Expected - 75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "\(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col2, - col0 AS col2 FROM tab2 +---- +-46 +-64 +-75 +46 +64 +75 query III rowsort label-2485 SELECT DISTINCT * FROM tab0 WHERE NOT + ( + col2 ) <> - CAST ( - + col2 AS INTEGER ) @@ -15108,8 +15266,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \* count\(cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 20 ) col2, - COUNT ( * ) * + COUNT ( col1 ) AS col2 FROM tab1 AS cor0 +---- +-9 +20 query I rowsort SELECT - col2 * ( + col0 ) + - + col1 * - col2 * + col1 * col2 * - col1 + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL @@ -15772,8 +15933,15 @@ SELECT + COUNT ( DISTINCT + - 53 ) AS col0 FROM tab2 # Datafusion - Expected - -87 # Datafusion - Expected - 81 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "\(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, - col0 AS col0 FROM tab0 WHERE NULL IS NULL +---- +-15 +-87 +-97 +1 +21 +81 query I rowsort SELECT - col1 FROM tab2 WHERE NOT ( - - col0 ) IS NULL @@ -16148,8 +16316,15 @@ SELECT ALL - + col1 / col2 + + col2 FROM tab2 AS cor0 # Datafusion - Expected - -672 # Datafusion - Expected - 34 # Datafusion - Expected - -2592 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ \(\- CAST\(\(\- cor0\.col1\) AS Int32\)\) AS col0" at position 0 and "Int64\(\-32\) \* \(\- \(\- cor0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 + + - CAST ( - ( + ( col1 ) ) AS INTEGER ) AS col0, - 32 * - - col1 col0 FROM tab0 AS cor0 +---- +-2592 +-32 +-672 +-98 +11 +34 query I rowsort label-2660 SELECT + 6 - - + ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL @@ -17274,8 +17449,15 @@ SELECT ALL - 34 * - - MIN ( DISTINCT - col2 ) AS col1 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 987 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* Int64\(21\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * + 21 AS col2, CAST ( NULL AS INTEGER ) col2 FROM tab0 +---- +2079 +210 +987 +NULL +NULL +NULL query III rowsort SELECT * FROM tab1 WHERE NOT - col0 * col1 * + col2 + col2 + - 7 / - + col0 NOT BETWEEN ( NULL ) AND 58 * - col2 @@ -17284,8 +17466,11 @@ SELECT * FROM tab1 WHERE NOT - col0 * col1 * + col2 + col2 + - 7 / - + col0 NOT # 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\(DISTINCT \(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + 96 ) AS col1, + COUNT ( DISTINCT - + col2 ) AS col1 FROM tab1 AS cor0 +---- +3 +96 query I rowsort label-2855 SELECT ALL - ( - 21 ) * + - CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0 @@ -17855,8 +18040,9 @@ SELECT + col1 * 23 + + + col2 FROM tab2 1811 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col1, col1 FROM tab2 WHERE NOT + 74 >= + - col1 +---- query I rowsort SELECT ALL - 78 * + 17 FROM tab2 cor0 @@ -18438,8 +18624,15 @@ SELECT ALL + 61 * COUNT ( * ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -89 # Datafusion - Expected - -91 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(\-89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col1, - 89 col1 FROM tab1 AS cor0 +---- +-51 +-85 +-89 +-89 +-89 +-91 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - - col1 IS NOT NULL @@ -18613,8 +18806,11 @@ SELECT ALL + col0 AS col1 FROM tab2 AS cor0 WHERE ( 22 ) <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -107 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 0 and "Int64\(\-73\) \+ Int64\(\-34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 95 AS col1, - 73 + - 34 AS col1 FROM tab2 +---- +-107 +95 query I rowsort SELECT DISTINCT - col2 * + 18 AS col1 FROM tab2 @@ -19948,8 +20144,9 @@ SELECT ALL - 40 FROM tab2 AS cor0 WHERE CAST ( - col2 AS FLOAT8 ) + - ( - col1 ) -40 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 36 AS col0, 59 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL +---- query I rowsort label-3306 SELECT ALL + col2 * - col1 FROM tab1 AS cor0 WHERE NOT - col0 + 66 NOT IN ( - - col2, + col0, CAST ( + col0 AS INTEGER ) ) @@ -19972,8 +20169,9 @@ SELECT COUNT ( * ) / - COUNT ( * ) FROM tab0 AS cor0 -1 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* \(\- tab1\.col0\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 * + ( - col0 ) AS col1, 81 AS col1 FROM tab1 WHERE col0 IS NULL +---- query II rowsort SELECT + 65, 73 AS col0 FROM tab1 @@ -21384,8 +21582,15 @@ SELECT * FROM tab2 WHERE NOT col1 * col0 IS NULL # Datafusion - Expected - 139 # Datafusion - Expected - -5 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col0" at position 0 and "tab1\.col1 \+ Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 col0, col1 + ( + 92 ) AS col0 FROM tab1 +---- +-14 +-47 +-5 +106 +139 +97 query I rowsort SELECT DISTINCT - 49 col1 FROM tab2 @@ -21648,8 +21853,10 @@ SELECT DISTINCT * FROM tab2 WHERE NOT NULL = + + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f1caddbf9860290a4f3bb800dc13bbe1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + + col1, col2 * - col2 AS col2, col1 FROM tab1 AS cor0 +---- +9 values hashing to 4a0bde4ed892b08d846c8aa9931be5db query I rowsort SELECT + 2 * + col1 col0 FROM tab1 cor0 @@ -23795,8 +24002,15 @@ SELECT ( - col0 ) * - 77 AS col1 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - -81 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 81 AS col2, col1 col2 FROM tab1 +---- +-81 +-81 +-81 +14 +47 +5 query I rowsort label-3947 SELECT + 51 * COUNT ( * ) FROM tab0 @@ -23945,8 +24159,15 @@ NULL # Datafusion - Expected - -326117 # Datafusion - Expected - 23 # Datafusion - Expected - -48599 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "tab2\.col0 \+ tab2\.col2 \+ \(\- tab2\.col2\) \* tab2\.col0 \* tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 AS col2, col0 + col2 + - col2 * + col0 * + col0 AS col2 FROM tab2 +---- +-163736 +-326117 +-48599 +23 +23 +23 query I rowsort label-3968 SELECT ALL col1 + + col1 + + - 22 / - col2 * 81 * - col2 AS col1 FROM tab1 @@ -23966,8 +24187,15 @@ SELECT ALL col2 FROM tab1 WHERE NOT + 63 IS NOT NULL # Datafusion - Expected - 138 # Datafusion - Expected - -5 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col1" at position 0 and "tab1\.col0 \+ tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, + col0 + + col1 AS col1 FROM tab1 +---- +-14 +-47 +-5 +138 +65 +90 query I rowsort SELECT DISTINCT + + col1 AS col0 FROM tab0 WHERE - + col0 * ( col0 ) / + + 36 IS NULL @@ -23988,8 +24216,9 @@ SELECT - CAST ( - - col2 AS INTEGER ) AS col1 FROM tab2 -58 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col0, col0 FROM tab1 WHERE NULL > + col2 +---- query I rowsort SELECT DISTINCT col0 + 24 + - + col1 - - + ( - col2 ) + 26 * + col0 FROM tab2 @@ -24020,8 +24249,15 @@ SELECT + ( col2 ) - col0 AS col2, + 49 * + ( ( col2 ) ) AS col1 FROM tab0 AS cor # Datafusion - Expected - 21 # Datafusion - Expected - 37 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 37 AS col2, col1 AS col2 FROM tab0 AS cor0 +---- +1 +21 +37 +37 +37 +81 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT + col0 + - ( - col1 ) IS NULL @@ -24242,8 +24478,11 @@ SELECT DISTINCT - + ( col1 ) FROM tab0 AS cor0 WHERE NOT + col2 * - 49 IS NOT NU # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, COUNT ( * ) + + 27 AS col2 FROM tab1 AS cor0 +---- +3 +30 query I rowsort label-4015 SELECT DISTINCT + + MIN ( ALL col1 ) col2 FROM tab1 AS cor0 @@ -26316,8 +26555,11 @@ SELECT - col1 FROM tab0 WHERE NOT NULL = - col0 + - - 37 + - col0 + - - col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(tab1\.col0\) AS col0" at position 0 and "Int64\(44\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MAX ( ALL + col0 ) AS col0, 44 * + ( + COUNT ( * ) ) AS col0 FROM tab1 +---- +132 +91 query I rowsort SELECT DISTINCT - 46 + col2 FROM tab0 @@ -26518,8 +26760,15 @@ SELECT DISTINCT - - ( + + col0 ) FROM tab0 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - 58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col2 AS col1, - col2 AS col1 FROM tab2 AS cor0 WHERE ( + ( - col1 ) ) IS NOT NULL +---- +-23 +-40 +-58 +23 +40 +58 query I rowsort SELECT + + col1 FROM tab2 WHERE NOT 77 * - - col0 + col1 + - col2 BETWEEN NULL AND NULL @@ -26567,8 +26816,11 @@ NULL # 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 "Int64\(82\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 82 AS col2, 59 AS col2 FROM tab2 AS cor0 +---- +59 +82 query II rowsort label-4399 SELECT ALL MIN ( col2 ) AS col0, + MIN ( DISTINCT - col2 ) AS col1 FROM tab2 @@ -26785,8 +27037,11 @@ SELECT - 13 AS col2, + col0 / - col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- tab2\.col0\)\)\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - + MAX ( ALL - + col0 ) ) AS col1, 96 AS col1 FROM tab2 +---- +46 +96 query I rowsort label-4432 SELECT - 46 - COUNT ( * ) FROM tab2 AS cor0 @@ -28683,8 +28938,15 @@ SELECT - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Expected - 50 # Datafusion - Expected - 714 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0 * + - ( - col1 ) AS col1, + 50 col1 FROM tab1 AS cor0 +---- +425 +4277 +50 +50 +50 +714 query I rowsort SELECT DISTINCT + col1 col0 FROM tab0 WHERE NOT NULL IS NULL @@ -28833,8 +29095,11 @@ SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- min\(Int64\(\-35\)\)\) / Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, + COUNT ( * ) + COUNT ( * ) + - MIN ( ( - 35 ) ) / 54 col2 FROM tab0 +---- +3 +6 query I rowsort label-4775 SELECT ALL + col2 * - CAST ( col2 AS INTEGER ) FROM tab0 @@ -29468,8 +29733,15 @@ SELECT DISTINCT + 77 - COUNT ( * ) AS col2 FROM tab1 # Datafusion - Expected - 710 # Datafusion - Expected - 97 # Datafusion - Expected - 7029 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(71\) \* tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, 71 * + col2 AS col2 FROM tab0 +---- +15 +3337 +7029 +710 +87 +97 query I rowsort label-4879 SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) col0 FROM tab2 @@ -31549,8 +31821,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE 66 * - col2 * col0 * + col2 IS NULL # Datafusion - Expected - 55 # Datafusion - Expected - -5 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col1 AS col1, + ( + 55 ) AS col1 FROM tab1 cor0 +---- +-14 +-47 +-5 +55 +55 +55 query I rowsort SELECT col0 + - col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL @@ -33441,8 +33720,15 @@ SELECT 67, col2 AS col2 FROM tab0 # Datafusion - Expected - 85 # Datafusion - Expected - 71 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 71 AS col2, col0 AS col2 FROM tab1 +---- +51 +71 +71 +71 +85 +91 query I rowsort SELECT ALL 62 + col2 + + ( - ( col2 ) ) FROM tab1 @@ -33912,8 +34198,11 @@ SELECT 98 * + 24 AS col0, + col0 * - + 78 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 185 # Datafusion - Expected - 765 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT tab2\.col0\) AS col0" at position 0 and "Int64\(15\) \* Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( DISTINCT col0 ) AS col0, 15 * 51 AS col0 FROM tab2 +---- +185 +765 query II rowsort label-5612 SELECT - 23 / - col1 AS col1, 88 / - col2 + ( + 75 ) FROM tab0 @@ -33932,8 +34221,15 @@ SELECT - 23 / - col1 AS col1, 88 / - col2 + ( + 75 ) FROM tab0 # Datafusion - Expected - -87 # Datafusion - Expected - -7161 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(\-93\) AS col0" at position 0 and "\(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 * - 93 AS col0, - col0 AS col0 FROM tab0 +---- +-15 +-7161 +-7161 +-7161 +-87 +-97 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( col0 + - - col1 ) @@ -34697,8 +34993,10 @@ SELECT * FROM tab0 AS cor0 WHERE - col2 NOT IN ( - + col0 * + col1, - 83, - - co # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 59bcb6ed798e7556c4abe609e7af64da -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 1 and "\(\- tab1\.col1\) \+ \(\- tab1\.col2\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 22 / + 69 + + col0, - col2 AS col2, - col1 + - + col2 col2 FROM tab1 +---- +9 values hashing to 35f2199fa4bbb124cf9fe5d29174a9da query I rowsort SELECT col2 * + 79 col0 FROM tab0 @@ -36456,8 +36754,15 @@ SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL # Datafusion - Expected - 15 # Datafusion - Expected - 34 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \+ \(\- cor0\.col2\) AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - col1 ) + + - col2 AS col2, + 15 AS col2 FROM tab0 AS cor0 WHERE NOT 94 + - + col0 IS NULL +---- +-98 +11 +15 +15 +15 +34 query II rowsort label-6025 SELECT DISTINCT 3 col2, COUNT ( * ) AS col0 FROM tab2 AS cor0 @@ -37222,8 +37527,11 @@ SELECT ALL + ( + + col0 ), col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- \(\- cor0\.col1\)\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - MIN ( - - col1 ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-1 +3 query I rowsort label-6157 SELECT + MIN ( + + col0 ) * - 97 AS col1 FROM tab1 AS cor0 @@ -37263,8 +37571,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 AS col1, - COUNT ( * ) + + + 80 AS col1 FROM tab1 +---- +32 +77 query I rowsort SELECT col2 col2 FROM tab0 WHERE ( NULL ) <> NULL @@ -37964,8 +38275,9 @@ SELECT ALL col2 + + ( - col2 ) * - col0 AS col0 FROM tab2 AS cor0 4408 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, + col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL +---- query I rowsort SELECT DISTINCT - 80 - - - col0 AS col0 FROM tab2 AS cor0 @@ -38324,8 +38636,15 @@ SELECT col2 * + 58 + + + col0 * + 95 * + col1 AS col0 FROM tab0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + col2 ), + col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query II rowsort label-6338 SELECT 63 / + 13 + - + col0 + col0, col0 FROM tab1 @@ -38688,8 +39007,12 @@ 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\(1\)\) AS count\(\*\) \- \(\- Int64\(\-73\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-14 +-61 +NULL query I rowsort SELECT DISTINCT 67 + - - 22 AS col1 FROM tab0 @@ -38717,8 +39040,15 @@ SELECT COUNT ( ALL - col2 ) FROM tab1 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-6403 SELECT DISTINCT MIN ( + - col2 ) AS col1 FROM tab0 cor0 @@ -39347,8 +39677,11 @@ SELECT * FROM tab0 WHERE ( NOT ( NOT NULL BETWEEN + + col1 AND NULL ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 22 col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +22 +3 query I rowsort SELECT + col2 col1 FROM tab0 AS cor0 WHERE col0 IS NULL @@ -40014,8 +40347,15 @@ SELECT DISTINCT - col0, + col0 FROM tab1 AS cor0 # Datafusion - Expected - 2 # Datafusion - Expected - 11 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "tab0\.col1 \+ \(\- \(\- tab0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 11 AS col2, + col1 + - - col1 AS col2 FROM tab0 +---- +11 +11 +11 +162 +2 +42 query III rowsort SELECT * FROM tab1 WHERE - col0 NOT IN ( col2 ) @@ -40617,8 +40957,15 @@ SELECT ALL 14 * - + 11 FROM tab0 # Datafusion - Expected - -87 # Datafusion - Expected - 19 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 19 AS col2, - col0 AS col2 FROM tab0 +---- +-15 +-87 +-97 +19 +19 +19 query II rowsort label-6722 SELECT DISTINCT + 26 AS col1, COUNT ( * ) * - COUNT ( * ) * - + CAST ( - - MIN ( ALL - col2 ) AS INTEGER ) + - - COUNT ( ALL col0 ) FROM tab2 @@ -40697,8 +41044,15 @@ SELECT DISTINCT + + MAX ( + 69 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 0 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) / \(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 21 / - col2 col1, + col0 AS col1 FROM tab1 AS cor0 +---- +0 +0 +0 +51 +85 +91 query II rowsort SELECT ALL - 96 * - ( col1 ), + col1 AS col0 FROM tab0 @@ -40713,8 +41067,11 @@ 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\(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\. +query II valuesort SELECT + 57 - + ( - COUNT ( * ) ) * - COUNT ( * ) AS col0, - ( - COUNT ( ALL - col1 ) ) - - 68 AS col0 FROM tab0 +---- +48 +71 query I rowsort SELECT DISTINCT + 52 * - 45 AS col0 FROM tab0 @@ -41016,8 +41373,15 @@ NULL # Datafusion - Expected - 5 # Datafusion - Expected - -1605 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* Int64\(\-72\) \+ cor0\.col0 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 23 * + - 72 + col0 AS col2, + col1 AS col2 FROM tab1 AS cor0 +---- +-1565 +-1571 +-1605 +14 +47 +5 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * - col0 * col2 <= NULL @@ -41389,8 +41753,15 @@ SELECT ALL - 69 * + col2 FROM tab1 AS cor0 WHERE NOT + 61 NOT BETWEEN NULL AND - # Datafusion - Expected - 91 # Datafusion - Expected - 96 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, col0 AS col1 FROM tab1 +---- +51 +59 +68 +85 +91 +96 query I rowsort SELECT 16 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL @@ -41524,8 +41895,15 @@ SELECT - 41 col0 FROM tab0 # Datafusion - Expected - -67 # Datafusion - Expected - 75 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ \(\- Int64\(11\)\) AS col1" at position 0 and "\(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 86 + - + 11 col1, - col1 AS col1 FROM tab2 +---- +-51 +-67 +-77 +75 +75 +75 query I rowsort label-6869 SELECT DISTINCT - 6 + 81 - + + col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 @@ -41906,8 +42284,11 @@ SELECT * FROM tab2 AS cor0 WHERE NOT - col0 < - col0 - + col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(41\)\) / Int64\(7\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 41 / + 7 col2, col1 AS col2 FROM tab0 WHERE - + col1 <= 8 + + 61 * + - col2 / + col0 +---- +-5 +21 query IIIIII rowsort SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL BETWEEN NULL AND NULL @@ -42032,8 +42413,11 @@ SELECT ALL - ( MAX ( - + col2 ) ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2652 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(52\) \* max\(DISTINCT \(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, + 52 * + MAX ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0 +---- +-2652 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 @@ -42042,8 +42426,15 @@ SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, + 52 * + MAX ( DISTINCT - co # Datafusion - Expected - -5025 # Datafusion - Expected - 72 # Datafusion - Expected - -5775 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col1" at position 0 and "cor0\.col1 \* Int64\(\-75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 72 col1, + col1 * - 75 AS col1 FROM tab2 AS cor0 +---- +-3825 +-5025 +-5775 +72 +72 +72 query I rowsort label-6953 SELECT - + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL @@ -42075,8 +42466,15 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - 58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col1 \- \(\- CAST\(NULL AS Int32\)\) \* Int64\(96\) \* Int64\(\-19\) \* Int64\(\-45\) \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, + col1 - - CAST ( NULL AS INTEGER ) * + + 96 * - 19 * + - 45 * - + col0 AS col1 FROM tab2 AS cor0 +---- +23 +40 +58 +NULL +NULL +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 @@ -42085,8 +42483,15 @@ SELECT col2 AS col1, + col1 - - CAST ( NULL AS INTEGER ) * + + 96 * - 19 * + - 4 # Datafusion - Expected - -87 # Datafusion - Expected - -85 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 85 AS col1, - col0 AS col1 FROM tab0 AS cor0 +---- +-15 +-85 +-85 +-85 +-87 +-97 query I rowsort label-6959 SELECT DISTINCT - 29 * - COUNT ( * ) AS col0 FROM tab1 @@ -42885,8 +43290,10 @@ SELECT ALL + 5 AS col0, 81 + - col2 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 673c14b44c91f63019593138713be298 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "Int64\(65\) \* tab2\.col2 \- Int64\(\-9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col2 AS col1, 65 * + col2 - - 9 col1, + col2 AS col2 FROM tab2 +---- +9 values hashing to a3fc6c00fe2325050ba7839f4c07cdaa query I rowsort SELECT ALL - - 5 AS col1 FROM tab2 WHERE NULL IS NOT NULL @@ -42980,8 +43387,15 @@ SELECT - col1 * col0 - + col0 + - - ( col2 ) - - ( + col1 ) + + col1 * + 27 FROM # Datafusion - Expected - 19 # Datafusion - Expected - 2496 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(26\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * + + 26 AS col1, 19 AS col1 FROM tab1 AS cor0 +---- +1534 +1768 +19 +19 +19 +2496 query I rowsort SELECT DISTINCT - ( - 64 ) col2 FROM tab0 AS cor0 @@ -43148,8 +43562,15 @@ SELECT + - 6 col0, + col2 AS col1 FROM tab2 WHERE NOT 45 * col2 IS NOT NULL # Datafusion - Expected - 91 # Datafusion - Expected - -5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, col0 AS col2 FROM tab1 +---- +-14 +-47 +-5 +51 +85 +91 query I rowsort SELECT DISTINCT - 41 * - - col2 AS col2 FROM tab2 cor0 @@ -43299,8 +43720,11 @@ SELECT * FROM tab0 WHERE NULL = ( - ( + + 98 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 +---- +3 +NULL query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND - - col2 @@ -43346,8 +43770,15 @@ SELECT - 75 * - 91 + - COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, ( + col2 ) AS col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query II rowsort SELECT DISTINCT - 94 * + ( col2 ), + col1 FROM tab1 AS cor0 @@ -43451,8 +43882,9 @@ SELECT DISTINCT - SUM ( DISTINCT + col0 ) col0 FROM tab1 -227 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 / Int64\(57\) \- \(\- \(\- tab0\.col2\)\) AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 / + 57 - - - col2 AS col1, - col1 AS col1 FROM tab0 WHERE NULL >= - col0 +---- query I rowsort label-7192 SELECT CAST ( - + col0 AS INTEGER ) FROM tab0 @@ -43697,8 +44129,15 @@ SELECT ALL - ( - + 5 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 547 # Datafusion - Expected - NULL # Datafusion - Expected - 557 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(48\) \* Int64\(10\) \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 48 * 10 + col1 AS col0 FROM tab2 AS cor0 +---- +531 +547 +557 +NULL +NULL +NULL query I rowsort label-7231 SELECT + + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL @@ -43981,8 +44420,15 @@ SELECT DISTINCT col2 / - + col0 FROM tab0 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 FROM tab1 cor0 +---- +51 +51 +85 +85 +91 +91 query II rowsort SELECT DISTINCT col1 AS col1, 36 FROM tab0 @@ -47264,8 +47710,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( + + col0 ) AS col1, ( - COUNT ( * ) ) AS col1 FROM tab1 +---- +-3 +227 query I rowsort label-7826 SELECT DISTINCT - col0 * - + 57 * col2 - + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 @@ -48435,8 +48884,11 @@ SELECT + - col2 * + + 58 AS col2 FROM tab1 WHERE NOT ( - col1 ) < col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(90\) AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* min\(DISTINCT Int64\(73\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( + 90 AS INTEGER ) AS col2, - COUNT ( * ) * + MIN ( DISTINCT + 73 ) + COUNT ( * ) AS col2 FROM tab1 +---- +-216 +90 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( + 83 ) NOT BETWEEN ( NULL ) AND col2 * 58 - + 47 ) @@ -48484,8 +48936,11 @@ SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( - col2 ) IS NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col0" at position 0 and "Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 83 AS col0, - 27 AS col0 FROM tab1 +---- +-27 +83 query II rowsort SELECT ALL - col0, col0 FROM tab0 @@ -48542,8 +48997,11 @@ SELECT + col2 AS col1 FROM tab1 WHERE NULL <= col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 14 AS col1, + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +-14 +9 query I rowsort SELECT 31 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) @@ -48687,8 +49145,15 @@ SELECT DISTINCT 11, col2 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 90 # Datafusion - Expected - 85 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \+ cor0\.col1 AS col1" at position 0 and "cor0\.col0 \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 71 + col1 AS col1, + col0 + col1 col1 FROM tab1 AS cor0 +---- +118 +138 +65 +76 +85 +90 query I rowsort SELECT ALL + + col1 AS col0 FROM tab2 WHERE NOT col0 IS NULL @@ -49026,8 +49491,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT 37 NOT IN ( - + CAST ( col1 AS INTEGER ) ) # Datafusion - Expected - 931491 # Datafusion - Expected - 820 # Datafusion - Expected - 1589490 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(82\) AS col2" at position 0 and "cor0\.col1 \* \(\- cor0\.col0\) \* cor0\.col2 \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * + 82 AS col2, col1 * - col0 * col2 * - col0 AS col2 FROM tab0 AS cor0 +---- +1589490 +3854 +8118 +820 +856575 +931491 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( col2 ) NOT BETWEEN + + 78 AND NULL @@ -49192,8 +49664,15 @@ SELECT DISTINCT 88 + + COUNT ( ALL - col0 ) AS col0 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 25 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- Int64\(\-62\) \+ \(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 - - 62 + - col0 AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +-18 +14 +18 +25 +47 +5 query I rowsort SELECT DISTINCT + 12 - - - 22 * col0 * col2 col1 FROM tab1 AS cor0 @@ -50356,8 +50835,10 @@ SELECT col1 + 32 FROM tab0 AS cor0 WHERE NOT col1 <= - + 20 + - - 29 + col2 * CA # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to aa6462462f107813f90505ab081b761d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* Int64\(\-53\) AS col2" at position 0 and "tab0\.col1 / \(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col1 * - 53 AS col2, col1 / - ( col0 ) AS col2, - - col1 AS col0 FROM tab0 +---- +9 values hashing to 36575d53dbc729867b7a8b8aeeda7b89 query I rowsort SELECT DISTINCT 21 * + 42 * - col1 FROM tab1 @@ -50390,8 +50871,15 @@ SELECT * FROM tab2 WHERE - col0 + + - 30 + col0 - 39 NOT BETWEEN NULL AND NULL O # Datafusion - Expected - 68 # Datafusion - Expected - 714 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* tab1\.col0 AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * col0 AS col1, col2 AS col1 FROM tab1 +---- +425 +4277 +59 +68 +714 +96 query I rowsort SELECT col0 * - 69 * - col1 FROM tab2 @@ -50438,8 +50926,15 @@ SELECT - + 6 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS c # Datafusion - Expected - 56 # Datafusion - Expected - 97 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, + ( + 56 ) col2 FROM tab0 +---- +15 +56 +56 +56 +87 +97 query III rowsort SELECT * FROM tab0 AS cor0 WHERE 92 IS NOT NULL @@ -51060,8 +51555,15 @@ SELECT ALL - 28 / + 4 AS col0 FROM tab1 WHERE NOT + 45 IS NOT NULL # Datafusion - Expected - -68 # Datafusion - Expected - 15 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ \(\- tab1\.col0\) AS col1" at position 0 and "\(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 66 + + - col0 AS col1, - col2 AS col1 FROM tab1 +---- +-19 +-25 +-59 +-68 +-96 +15 query I rowsort SELECT ALL - col0 + 57 + - + col0 AS col1 FROM tab0 @@ -51507,8 +52009,11 @@ 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\(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\. +query II valuesort SELECT - + ( - COUNT ( * ) ) col1, 57 * + 65 col1 FROM tab1 AS cor0 +---- +3 +3705 query I rowsort label-8532 SELECT - 1 * + - COUNT ( + 37 ) FROM tab1 AS cor0 @@ -51894,8 +52399,11 @@ SELECT + 41 * col0 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "min\(cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, + MIN ( ALL col0 ) AS col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL +---- +0 +NULL query I rowsort SELECT DISTINCT col1 + - 13 + + 2 FROM tab2 AS cor0 WHERE - 64 * col1 NOT BETWEEN ( col2 * - 96 ) AND NULL @@ -52205,8 +52713,15 @@ SELECT DISTINCT col0, - 36 FROM tab0 AS cor0 WHERE NOT ( NOT + col0 IS NOT NULL # Datafusion - Expected - -40 # Datafusion - Expected - 75 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "\(\- \(\- \(\- tab2\.col2\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col2, - ( - - col2 ) AS col2 FROM tab2 +---- +-23 +-40 +-58 +46 +64 +75 query II rowsort SELECT DISTINCT + 81, + ( + 12 ) AS col0 FROM tab1 @@ -52405,8 +52920,11 @@ SELECT col2 * + - 75 * + + col2 + + + col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( COUNT ( * ) AS INTEGER ), + COUNT ( * ) FROM tab2 AS cor0 +---- +3 +3 query I rowsort label-8680 SELECT ALL - + 11 FROM tab2 WHERE NOT 30 * - + CAST ( - 49 AS INTEGER ) - col0 <> NULL @@ -52663,8 +53181,15 @@ SELECT * FROM tab2 AS cor0 WHERE 56 * - col1 IS NULL # Datafusion - Expected - 65 # Datafusion - Expected - -81 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, 65 AS col0 FROM tab0 +---- +-1 +-21 +-81 +65 +65 +65 query I rowsort SELECT - - col0 AS col1 FROM tab1 WHERE NULL IS NULL @@ -52792,8 +53317,15 @@ SELECT + 10 * + - 71 FROM tab0 # Datafusion - Expected - -87 # Datafusion - Expected - 97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, - col0 AS col2 FROM tab0 +---- +-15 +-87 +-97 +15 +87 +97 query I rowsort label-8744 SELECT MIN ( ALL + col1 ) * + + COUNT ( * ) * + + ( - 25 ) AS col0 FROM tab1 @@ -52944,8 +53476,15 @@ SELECT + 27 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - -94 # Datafusion - Expected - 77 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col0, + ( - 94 ) AS col0 FROM tab2 +---- +-94 +-94 +-94 +51 +67 +77 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE + col1 + - 17 IS NULL @@ -53128,8 +53667,15 @@ SELECT + 19 AS col0 FROM tab0 cor0 # Datafusion - Expected - 5015 # Datafusion - Expected - 91 # Datafusion - Expected - 6188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "cor0\.col0 \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 AS col1, col0 * + + col2 AS col1 FROM tab1 cor0 +---- +4896 +5015 +51 +6188 +85 +91 query I rowsort label-8798 SELECT ALL col1 + + 39 FROM tab2 AS cor0 WHERE NULL > CAST ( - col1 AS INTEGER ) @@ -53162,8 +53708,10 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to e9c5e0d8cfce19cc41cce8e96ccdf0e5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \+ \(\- \(\- tab2\.col1\)\) AS col0" at position 0 and "\(\- tab2\.col1\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL col1 + - - col1 AS col0, col0 - col0 / - + 41 AS col2, + - col1 AS col0 FROM tab2 +---- +9 values hashing to 6979c3131ee7f1827992f9f26d08aee1 query I rowsort SELECT - ( - + col1 ) - - 4 AS col1 FROM tab1 @@ -53251,8 +53799,10 @@ SELECT - - col2 - - - 24 AS col2 FROM tab0 WHERE NOT - - col0 >= - - col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a1cfda2a62e92a52defdd161c37ce50d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "\(\- tab1\.col1\) \* \(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 40 AS col1, ( - col1 ) * + - col1 AS col1, col2 AS col0 FROM tab1 +---- +9 values hashing to 83d28ef59d7dd5470be76dab388e2bb4 query III rowsort label-8817 SELECT * FROM tab2 WHERE NOT col1 * col1 + - CAST ( - - 42 AS FLOAT8 ) >= NULL @@ -53891,8 +54441,15 @@ SELECT ALL SUM ( ALL - + col2 ) col0 FROM tab1 # Datafusion - Expected - 5 # Datafusion - Expected - 91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, + col1 col2 FROM tab1 +---- +14 +47 +5 +51 +85 +91 query I rowsort label-8930 SELECT ALL - 57 * + COUNT ( * ) AS col1 FROM tab1, tab0 AS cor0 @@ -54321,8 +54878,15 @@ SELECT + 90 col1, col0 * + 33 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, col1 FROM tab0 cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT - 31 * - col0 FROM tab1 AS cor0 @@ -54372,8 +54936,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ), + COUNT ( * ) FROM tab2, tab0 AS cor0 +---- +9 +9 query I rowsort SELECT ALL 50 + 6 - + col2 FROM tab2 @@ -54626,8 +55193,15 @@ SELECT DISTINCT + 26 + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 61 # Datafusion - Expected - 24 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ \(\- tab2\.col2\) AS col1" at position 0 and "Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 + - col2 col1, 61 AS col1 FROM tab2 +---- +17 +23 +24 +61 +61 +61 query II rowsort SELECT DISTINCT 71, + ( col1 ) / - col2 + - col0 - 96 FROM tab0 AS cor0 WHERE NOT NULL <= NULL @@ -54679,8 +55253,15 @@ SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT - 59 IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, col1 AS col0 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-9055 SELECT MIN ( + CAST ( + ( 32 ) AS INTEGER ) ) * - 95 AS col2 FROM tab0 @@ -54896,8 +55477,15 @@ SELECT + MIN ( DISTINCT + - col2 ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query III rowsort SELECT * FROM tab2 cor0 WHERE NOT col1 * col0 = NULL @@ -54955,8 +55543,11 @@ SELECT - col1 / - 93 col0 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\(cor0\.col2\)\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - COUNT ( + col2 ) AS col0, + 73 AS col0 FROM tab1 AS cor0 +---- +-3 +73 query I rowsort SELECT + 36 col0 FROM tab0 AS cor0 @@ -55304,8 +55895,11 @@ SELECT DISTINCT + 31 AS col0, 21 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- cor0\.col2\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MIN ( - col2 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE ( - 2 ) < - ( + col1 ) +---- +99 +NULL query III rowsort label-9162 SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + CAST ( NULL AS FLOAT8 ) - + 30 IS NULL @@ -55589,8 +56183,15 @@ SELECT 21 * 93 FROM tab0 # Datafusion - Expected - 97 # Datafusion - Expected - -45 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* Int64\(3\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 * 3 AS col2, + col0 AS col2 FROM tab0 +---- +-261 +-291 +-45 +15 +87 +97 query III rowsort SELECT * FROM tab2 WHERE NOT NULL BETWEEN + 16 AND NULL @@ -55612,8 +56213,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - col2 IS NULL # Datafusion - Expected - -47 # Datafusion - Expected - 42 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 AS col1, - col2 AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +42 +42 +42 query III rowsort SELECT * FROM tab1 WHERE NOT 42 * + col0 * + 7 / col2 IS NOT NULL @@ -55775,8 +56383,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + + COUNT ( * ) * + 60 AS col1, + 80 AS col1 FROM tab2 AS cor0 +---- +180 +80 query I rowsort SELECT ALL + - col1 FROM tab2 AS cor0 WHERE NOT 24 BETWEEN NULL AND - ( - - col2 ) @@ -55980,8 +56591,11 @@ SELECT col2 AS col2, col0 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +3 +NULL query I rowsort label-9275 SELECT - CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 cor0 @@ -56111,8 +56725,15 @@ SELECT + + ( - 47 ) FROM tab0 AS cor0 # Datafusion - Expected - 46 # Datafusion - Expected - 9 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 9 AS col2, 46 col2 FROM tab1 +---- +46 +46 +46 +9 +9 +9 query III rowsort SELECT DISTINCT * FROM tab0 WHERE col1 + - col0 > NULL @@ -56671,8 +57292,15 @@ SELECT ALL 32 AS col1 FROM tab1 AS cor0 WHERE ( col1 * + - col0 ) NOT BETWEEN ( # Datafusion - Expected - -85 # Datafusion - Expected - -91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col0, - col0 FROM tab1 cor0 +---- +-51 +-51 +-85 +-85 +-91 +-91 query I rowsort label-9391 SELECT DISTINCT - ( - COUNT ( * ) ) col0 FROM tab1 AS cor0 @@ -57234,8 +57862,15 @@ SELECT - - col1 * + 7 FROM tab1 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - 96 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, + col0 AS col1 FROM tab1 +---- +51 +59 +68 +85 +91 +96 query III rowsort SELECT * FROM tab1 WHERE NOT - - col1 NOT IN ( + + 98 / - 1, + col1 / + col0 ) @@ -57625,8 +58260,15 @@ SELECT ALL - col1 AS col1, - 24 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 82 # Datafusion - Expected - 99 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, 82 AS col0 FROM tab0 AS cor0 +---- +10 +47 +82 +82 +82 +99 query II rowsort label-9549 SELECT DISTINCT + col0 AS col2, CAST ( - + col2 AS INTEGER ) / + + col1 + - col1 + + - col1 * + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0 @@ -57702,8 +58344,15 @@ SELECT * FROM tab0 AS cor0 WHERE - 59 <> NULL # Datafusion - Expected - -68 # Datafusion - Expected - 5 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col2, - col2 AS col2 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +14 +47 +5 query I rowsort SELECT DISTINCT col0 col2 FROM tab1 AS cor0 WHERE NOT ( NULL = - col0 * + + 42 * + + 11 ) @@ -57825,8 +58474,15 @@ SELECT ALL - - 78 * + 42 FROM tab2 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 col0, col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT DISTINCT + 48 + + col1 FROM tab1 @@ -57980,8 +58636,15 @@ SELECT - - 77 AS col1, + col0 FROM tab0 AS cor0 # Datafusion - Expected - -45 # Datafusion - Expected - 77 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(13\) \+ \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, 13 + - col2 AS col2 FROM tab2 AS cor0 +---- +-10 +-27 +-45 +51 +67 +77 query I rowsort label-9607 SELECT ALL - - COUNT ( * ) * - - 86 FROM tab1 AS cor0 @@ -58430,8 +59093,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(6\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + COUNT ( * ) AS col1, 6 * - COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +-18 +-3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 @@ -58440,8 +59106,15 @@ SELECT DISTINCT - + COUNT ( * ) AS col1, 6 * - COUNT ( * ) AS col1 FROM tab0 AS # Datafusion - Expected - -3680 # Datafusion - Expected - -84 # Datafusion - Expected - -5336 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col1" at position 0 and "Int64\(\-92\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 84 AS col1, + ( - 92 ) * col2 AS col1 FROM tab2 AS cor0 +---- +-2116 +-3680 +-5336 +-84 +-84 +-84 query II rowsort label-9678 SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) col0, 55 AS col1 FROM tab0 AS cor0 @@ -58877,8 +59550,15 @@ SELECT DISTINCT - + col2 / col1 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 55 # Datafusion - Expected - 55 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\)" at position 0 and "Int64\(55\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 55, 55 FROM tab2 AS cor0 +---- +55 +55 +55 +55 +55 +55 query I rowsort label-9747 SELECT - COUNT ( * ) * + 4 + - 32 FROM tab0 @@ -59582,8 +60262,15 @@ SELECT DISTINCT + 71 + - col1 col2 FROM tab1 # Datafusion - Expected - 75 # Datafusion - Expected - 872 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* Int64\(20\) \+ \(\- tab1\.col2\) AS col1" at position 0 and "Int64\(84\) \+ Int64\(\-9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * 20 + - col2 AS col1, 84 + - 9 AS col1 FROM tab1 +---- +184 +41 +75 +75 +75 +872 query I rowsort SELECT col2 + + col1 - + 0 * col0 FROM tab0 @@ -60349,8 +61036,15 @@ SELECT + MIN ( - col0 ) AS col1 FROM tab0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, + col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - col1 + - 9 + - ( - - col2 ) * + + 94 IS NOT NULL diff --git a/data/sqlite/random/aggregates/slt_good_59.slt b/data/sqlite/random/aggregates/slt_good_59.slt index 45b744d..2f93803 100644 --- a/data/sqlite/random/aggregates/slt_good_59.slt +++ b/data/sqlite/random/aggregates/slt_good_59.slt @@ -183,8 +183,15 @@ SELECT DISTINCT + col1, + 98 FROM tab0 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col1, col1 AS col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT ALL 62 * - + col1 AS col2 FROM tab2 AS cor0 @@ -316,8 +323,10 @@ SELECT DISTINCT 90 / 82 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 011ac9924fd92ecf353dfcc8fcdc43f3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col1, col1, + col2 FROM tab1 +---- +9 values hashing to 85d6e437b524c34757cfcaa51bebd239 query II rowsort SELECT col1 col1, ( + - 85 ) FROM tab0 @@ -786,8 +795,11 @@ 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\(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\. +query II valuesort SELECT + 23 + + - COUNT ( * ) * - + MAX ( - + col2 ) AS col2, + 56 AS col2 FROM tab0 AS cor0 +---- +-7 +56 query II rowsort label-120 SELECT DISTINCT - - 64 + - col2, CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0 @@ -2023,8 +2035,11 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( - col0 ) > + col2 * col0 + - col0 # 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 "\(\- sum\(Int64\(7\)\)\) 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 IR valuesort SELECT - SUM ( + 7 ) AS col2, + CAST ( NULL AS FLOAT8 ) AS col2 FROM tab1 +---- +-21 +NULL query I rowsort SELECT col1 FROM tab0 WHERE NULL BETWEEN - 70 * - + col2 AND NULL @@ -2168,8 +2183,11 @@ SELECT ALL * FROM tab2 WHERE NOT ( ( NOT NULL IS NOT NULL ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( - + CAST ( NULL AS INTEGER ) ) AS col1, + COUNT ( * ) AS col1 FROM tab2 +---- +0 +3 query III rowsort SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( + col2 ) @@ -2227,8 +2245,13 @@ NULL # Datafusion - Expected - -46 # Datafusion - Expected - 2378 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* Int64\(58\) AS col1" at position 0 and "Int64\(\-46\) \+ tab2\.col1 / Int64\(\-69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 41 * + 58 AS col1, - 46 + + col1 / - 69 AS col1 FROM tab2 +---- +-46 +-47 +2378 +2378 query II rowsort SELECT col2 + - col2, + col1 AS col0 FROM tab2 @@ -2742,8 +2765,12 @@ 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\(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\. +query III valuesort SELECT DISTINCT + COUNT ( * ), COUNT ( * ), + - 72 AS col2 FROM tab2 +---- +-72 +3 +3 query II rowsort SELECT col0, 72 FROM tab2 @@ -2970,8 +2997,10 @@ SELECT - col2, 59 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 1d66d54ec95208e60a593c47869b97fc -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "tab1\.col1 \+ Int64\(3\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 17 AS col2, + col2 * + col1, + col1 + 3 AS col2 FROM tab1 +---- +9 values hashing to be81d223e52d6a08d593e1f23c64fa1e query I rowsort SELECT DISTINCT + 90 FROM tab1 AS cor0 WHERE 62 BETWEEN NULL AND 36 @@ -3117,8 +3146,15 @@ NULL # Datafusion - Expected - 19992 # Datafusion - Expected - 50 # Datafusion - Expected - 28224 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ Int64\(\-46\) AS col1" at position 0 and "cor0\.col2 \* Int64\(3\) \* Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 + + - 46 AS col1, col2 * 3 * 98 AS col1 FROM tab1 AS cor0 +---- +13 +17346 +19992 +22 +28224 +50 query I rowsort SELECT DISTINCT - - col2 * + col0 - ( - 2 ) FROM tab2 AS cor0 @@ -4041,8 +4077,15 @@ SELECT DISTINCT - col2 * 57 - col0 FROM tab2 AS cor0 # Datafusion - Expected - -21 # Datafusion - Expected - -81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 AS col0, ( - col1 ) AS col0 FROM tab0 AS cor0 +---- +-1 +-1 +-21 +-21 +-81 +-81 query II rowsort SELECT + col1 AS col0, + col1 AS col2 FROM tab0 AS cor0 @@ -4167,8 +4210,11 @@ SELECT * FROM tab1 AS cor0 WHERE NULL = CAST ( + - 2 AS INTEGER ) - + CAST ( col # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -2652 -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\) \* min\(DISTINCT Int64\(\-52\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 95 AS col0, 51 * + MIN ( DISTINCT - 52 ) AS col0 FROM tab2 AS cor0 +---- +-2652 +95 query II rowsort SELECT - 4 AS col1, col2 FROM tab2 AS cor0 @@ -4233,8 +4279,15 @@ SELECT + col0 + - - col2 * + + col0 FROM tab2 AS cor0 # Datafusion - Expected - -96 # Datafusion - Expected - 81 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ cor0\.col1 AS col1" at position 0 and "\(\- cor0\.col0\) \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 60 + col1 col1, - col0 + ( + col1 ) col1 FROM tab0 AS cor0 +---- +-66 +-96 +141 +61 +66 +81 query I rowsort label-678 SELECT ALL - MIN ( col1 ) FROM tab2 @@ -5251,8 +5304,15 @@ NULL # Datafusion - Expected - 58 # Datafusion - Expected - -58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 col1, 58 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +58 +58 +58 query I rowsort label-850 SELECT - - col2 * 82 * ( + 66 ) / + col0 + + col0 FROM tab1 AS cor0 @@ -6016,8 +6076,15 @@ SELECT ALL * FROM tab2 WHERE NOT NULL <= 16 * col0 / + + col2 # Datafusion - Expected - -24 # Datafusion - Expected - 58 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "\(\- tab2\.col0\) \+ tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, - col0 + col2 col0 FROM tab2 +---- +-17 +-23 +-24 +23 +40 +58 query I rowsort label-980 SELECT ALL MIN ( - 46 ) FROM tab2 @@ -6787,8 +6854,11 @@ SELECT - col2 * - + col2 + - - col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, + 52 AS col2 FROM tab2 AS cor0 +---- +3 +52 query II rowsort SELECT ALL col1, + col2 AS col2 FROM tab1 AS cor0 @@ -6898,8 +6968,11 @@ SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 5 - - col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(88\) / Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + COUNT ( * ) AS col2, + 88 / + 62 AS col2 FROM tab1 AS cor0 +---- +1 +3 query I rowsort label-1123 SELECT + MAX ( - col0 ) + 40 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL @@ -8653,8 +8726,15 @@ SELECT DISTINCT - 39 / - COUNT ( DISTINCT - 14 ) AS col1 FROM tab2 # Datafusion - Expected - -50 # Datafusion - Expected - -5700 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* \(\- tab2\.col0\) AS col0" at position 0 and "\(\- Int64\(50\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 * - col0 col0, - ( 50 ) AS col0 FROM tab2 +---- +-3496 +-4864 +-50 +-50 +-50 +-5700 query I rowsort SELECT ALL - + col0 + - col0 + + + col2 - ( + col1 ) FROM tab0 AS cor0 @@ -9301,8 +9381,15 @@ SELECT + COUNT ( * ) + - 32 * - COUNT ( DISTINCT - col1 ) AS col1 FROM tab1 # Datafusion - Expected - -79 # Datafusion - Expected - -5 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col1" at position 0 and "Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, - 79 col1 FROM tab1 +---- +-14 +-47 +-5 +-79 +-79 +-79 query II rowsort SELECT col2 * - col2 / + col0 + - 95, - 57 * + - ( col0 ) FROM tab0 WHERE - + col0 IS NULL @@ -9315,8 +9402,15 @@ SELECT col2 * - col2 / + col0 + - 95, - 57 * + - ( col0 ) FROM tab0 WHERE - + co # Datafusion - Expected - 4981 # Datafusion - Expected - -20 # Datafusion - Expected - 6154 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col0" at position 0 and "tab1\.col0 \* tab1\.col2 \+ Int64\(\-34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 AS col0, col0 * + col2 + + - 34 AS col0 FROM tab1 +---- +-20 +-20 +-20 +4862 +4981 +6154 query I rowsort SELECT ALL ( col2 ) * + ( - col1 ) AS col2 FROM tab2 @@ -9649,8 +9743,11 @@ SELECT ALL - 24 col1 FROM tab1 WHERE col0 < NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 59 AS col1, COUNT ( * ) AS col1 FROM tab2 +---- +3 +59 query I rowsort SELECT - 36 + + - 78 FROM tab0 AS cor0 @@ -9889,8 +9986,10 @@ SELECT ALL COUNT ( ALL + ( - + 43 ) ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 91f95fa293efd44062f1087307955849 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "cor0\.col1 \+ Int64\(\-60\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col2, + col0 * + 25 * - 69, col1 + - 60 col2 FROM tab1 cor0 +---- +9 values hashing to 4924c94112885da07255f05117bf4b10 query I rowsort label-1618 SELECT ALL + MIN ( - - col2 ) FROM tab0 AS cor0 @@ -11231,8 +11330,15 @@ SELECT DISTINCT col0 FROM tab2 WHERE - 24 * + col2 >= + col0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1, col1 col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query III rowsort SELECT ALL * FROM tab0 WHERE NOT + 63 IN ( - col0 * - 18, col0, + col2, + 88 ) @@ -11246,8 +11352,15 @@ SELECT ALL * FROM tab0 WHERE NOT + 63 IN ( - col0 * - 18, col0, + col2, + 88 ) # Datafusion - Expected - -139 # Datafusion - Expected - -81 # Datafusion - Expected - -150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col0" at position 0 and "\(\- tab2\.col0\) \+ Int64\(\-75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 81 AS col0, - col0 + - 75 AS col0 FROM tab2 +---- +-121 +-139 +-150 +-81 +-81 +-81 query II rowsort SELECT DISTINCT + - 1, col1 AS col2 FROM tab1 cor0 @@ -12808,8 +12921,15 @@ SELECT CAST ( - - col2 AS INTEGER ) + - + col1 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 73 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 73 AS col2, col0 AS col2 FROM tab1 cor0 +---- +51 +73 +73 +73 +85 +91 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 <> + col1 @@ -12837,8 +12957,11 @@ SELECT COUNT ( ALL - + 51 ) AS col1 FROM tab2 cor0 # 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 "\(\- max\(cor0\.col1\)\) 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 II valuesort SELECT ALL - MAX ( + col1 ) AS col0, MAX ( - col2 ) AS col0 FROM tab2 AS cor0 +---- +-23 +-77 query I rowsort label-2099 SELECT DISTINCT - COUNT ( CAST ( col1 AS FLOAT8 ) ) FROM tab0 @@ -13779,8 +13902,15 @@ SELECT ALL + 43 col0, - 63 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0, + col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-2262 SELECT - 64 * - + COUNT ( * ) * + - 0 AS col2 FROM tab1 @@ -15174,8 +15304,15 @@ SELECT ALL + col2, + col2 col0 FROM tab2 # Datafusion - Expected - -1 # Datafusion - Expected - -97 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col2 / \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, ( + col2 ) / - col2 AS col2 FROM tab0 AS cor0 +---- +-1 +-1 +-1 +-15 +-87 +-97 query II rowsort SELECT ALL - col1 * + col2 - - 58 AS col1, + 57 FROM tab0 AS cor0 @@ -15396,8 +15533,15 @@ SELECT DISTINCT - 41 col0 FROM tab1 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 66 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 66 ) AS col0, + CAST ( NULL AS INTEGER ) * - col0 col0 FROM tab2 AS cor0 +---- +66 +66 +66 +NULL +NULL +NULL query III rowsort label-2529 SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( + + ( + col1 ) AS INTEGER ) + + col0 NOT BETWEEN 66 AND NULL @@ -15575,8 +15719,15 @@ SELECT 8 * 29 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 39 # Datafusion - Expected - -96 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, 39 AS col1 FROM tab1 +---- +-59 +-68 +-96 +39 +39 +39 query I rowsort SELECT DISTINCT ( - 50 ) FROM tab2 @@ -16182,8 +16333,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT - ( col2 ) >= + col0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( col0 ), + col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query III rowsort SELECT * FROM tab1 WHERE NOT ( col0 + + col0 ) NOT BETWEEN 87 AND ( NULL ) @@ -16451,8 +16609,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 95 - - COUNT ( * ) AS col1, 66 AS col1 FROM tab0 +---- +66 +98 query I rowsort label-2708 SELECT ALL - ( + + 2 ) - - MAX ( ALL + 98 ) / + 41 FROM tab1 AS cor0 @@ -16551,8 +16712,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, 72 * MAX ( DISTINCT - 97 ) AS col0 FROM tab1 +---- +-3 +-6984 query I rowsort label-2724 SELECT + col0 + + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL @@ -16824,8 +16988,15 @@ SELECT ALL + - 52 + col0 FROM tab2 AS cor0 # Datafusion - Expected - -10 # Datafusion - Expected - 81 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, - col2 AS col0 FROM tab0 +---- +-10 +-47 +-99 +1 +21 +81 query I rowsort label-2767 SELECT ALL - COUNT ( * ) + + + 26 * MAX ( CAST ( - 50 AS INTEGER ) ) + + 82 FROM tab1 @@ -16839,8 +17010,15 @@ SELECT ALL - COUNT ( * ) + + + 26 * MAX ( CAST ( - 50 AS INTEGER ) ) + + 82 FROM # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 col1, + col2 AS col1 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT DISTINCT col2 * + - 58 AS col1 FROM tab2 @@ -17825,8 +18003,15 @@ SELECT - - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - 85 # Datafusion - Expected - 28 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 28 AS col2, col0 AS col2 FROM tab1 +---- +28 +28 +28 +51 +85 +91 query III rowsort label-2929 SELECT DISTINCT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) * + col2 IS NOT NULL @@ -18022,8 +18207,10 @@ SELECT - col2 * - - 10 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 761e6edb23644417bfcbf9372e586bda -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\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 75 col1, + ( + - col0 ) * + col2 AS col2, + + 53 col1 FROM tab0 +---- +9 values hashing to 9dd706f107521cb75d8fffbf9e49d904 query I rowsort label-2962 SELECT DISTINCT + col2 / - col0 AS col1 FROM tab1 @@ -18141,8 +18328,15 @@ SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE 53 / 21 * + - col2 IS N # Datafusion - Expected - 0 # Datafusion - Expected - 77 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "\(\- tab2\.col2\) / Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col2, - col2 / + - 74 AS col2 FROM tab2 +---- +0 +0 +0 +51 +67 +77 query I rowsort SELECT - ( - - col1 ) AS col0 FROM tab1 @@ -19156,8 +19350,11 @@ SELECT - MIN ( DISTINCT + 66 ) / + COUNT ( - - ( + col0 ) ) AS col2 FROM tab2 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 13 AS col2, + 75 AS col2 FROM tab0 AS cor0 +---- +13 +75 query I rowsort SELECT ALL + - 26 col0 FROM tab2 AS cor0 @@ -19211,8 +19408,15 @@ SELECT DISTINCT + col1 AS col2 FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND NUL # Datafusion - Expected - 136 # Datafusion - Expected - -96 # Datafusion - Expected - 192 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "tab1\.col2 \+ tab1\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, col2 + + col2 col2 FROM tab1 +---- +-59 +-68 +-96 +118 +136 +192 query I rowsort label-3162 SELECT + COUNT ( * ) * + 48 * - - 7 FROM tab0 AS cor0 @@ -19673,8 +19877,15 @@ SELECT DISTINCT * FROM tab0 WHERE NOT + 10 IS NULL # Datafusion - Expected - -60 # Datafusion - Expected - 2175 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* Int64\(29\) AS col1" at position 0 and "\(\- tab2\.col0\) \+ Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * + 29 col1, - col0 + + 4 AS col1 FROM tab2 +---- +-42 +-60 +-71 +1334 +1856 +2175 query I rowsort SELECT - ( + 17 ) * + 99 + col0 FROM tab1 WHERE + 47 <= - ( - - 17 ) / + - ( - col1 ) + + - ( + + col2 ) @@ -19750,8 +19961,13 @@ SELECT ALL - col1 AS col0, - col2 * col2 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 0 # 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 "tab1\.col0 / \(\- Int64\(\-61\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 49 col2, + col0 / - - 61 AS col2 FROM tab1 +---- +0 +1 +49 +49 query I rowsort label-3248 SELECT ALL ( col1 ) / + 5 FROM tab1 WHERE NOT NULL IS NOT NULL @@ -20535,8 +20751,15 @@ SELECT DISTINCT ( + MAX ( 90 ) ) AS col0 FROM tab2 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 59 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 AS col0, + col2 AS col0 FROM tab0 +---- +10 +47 +59 +59 +59 +99 query I rowsort SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col2 + 62 @@ -20691,8 +20914,15 @@ SELECT DISTINCT * FROM tab0 WHERE - - ( 84 ) = - + col2 # Datafusion - Expected - -142 # Datafusion - Expected - 143 # Datafusion - Expected - -141 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ tab2\.col1 AS col0" at position 0 and "\(\- tab2\.col1\) \+ \(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 66 + col1 AS col0, - col1 + - + col0 AS col0 FROM tab2 +---- +-141 +-142 +-97 +117 +133 +143 query I rowsort label-3398 SELECT ALL + SUM ( ALL - - 26 ) * + 58 AS col2 FROM tab0 AS cor0 @@ -20820,8 +21050,10 @@ SELECT + 68 * - + col1 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c21554c220ec8a2558919ef535dcd087 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \* \(\- \(\- cor0\.col1\)\) AS col0" at position 1 and "Int64\(66\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col2, - 19 * - ( - col1 ) AS col0, 66 AS col0 FROM tab1 AS cor0 +---- +9 values hashing to 9f0e0ec87cb0606a8a2bc01bb64a2be0 query III rowsort SELECT * FROM tab0 AS cor0 WHERE col1 + col0 IS NULL @@ -22226,8 +22458,15 @@ SELECT + - col0 - col0 * - 97 FROM tab2 WHERE NOT NULL BETWEEN NULL AND - col1 * # Datafusion - Expected - 21 # Datafusion - Expected - -777 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \* tab1\.col1 \+ Int64\(\-63\) AS col0" at position 0 and "\(\- tab1\.col1\) \+ \(\- tab1\.col2\) \+ tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 * col1 + - 63 AS col0, - col1 + + - ( col2 ) + col0 AS col0 FROM tab1 +---- +-24 +-4340 +-488 +-59 +-777 +21 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT 90 * - 96 = 9 @@ -22615,8 +22854,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 210 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(86\)\)\)\) \* count\(\(\- tab0\.col2\)\) \+ Int64\(\-48\) AS col1" at position 0 and "Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - MAX ( 86 ) * COUNT ( + - col2 ) + - 48 col1, - 40 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL +---- +-40 +210 query I rowsort SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE ( - col2 + + col2 ) IN ( - 38, + col0 ) @@ -23606,8 +23848,15 @@ SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND CAST ( NULL AS INTEGER ) # Datafusion - Expected - 59 # Datafusion - Expected - 82 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ \(\- tab1\.col1\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 + - col1 AS col1, col2 AS col1 FROM tab1 +---- +21 +54 +59 +68 +82 +96 query I rowsort SELECT ALL col2 + - ( + - col1 ) FROM tab1 @@ -23723,8 +23972,15 @@ SELECT DISTINCT + col0 / - col0 col0 FROM tab1 AS cor0 # Datafusion - Expected - 16 # Datafusion - Expected - -213 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \+ \(\- \(\- Int64\(\-59\)\)\) \- tab2\.col1 AS col0" at position 0 and "Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + - - ( - 59 ) - col1 AS col0, + 16 AS col0 FROM tab2 +---- +-161 +-193 +-213 +16 +16 +16 query I rowsort label-3894 SELECT DISTINCT 94 / + + col2 + - 58 FROM tab1 AS cor0 @@ -23767,8 +24023,10 @@ SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) + col1 <> - col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f8254197716abbb9fbe8b4782f615f46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \* cor0\.col2 \+ \(\- cor0\.col0\) \- Int64\(\-99\) AS col0" at position 0 and "\(\- cor0\.col2\) / Int64\(84\) \+ \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 56 * col2 + - ( col0 ) - - 99 AS col0, - col2 / + 84 + - + col1 col0, CAST ( - - col2 AS INTEGER ) - - 4 FROM tab1 AS cor0 +---- +9 values hashing to 2628d2a49bcd7985e9cf59753c71dd65 query I rowsort SELECT - - 87 + + + col0 FROM tab1 AS cor0 @@ -23896,8 +24154,15 @@ SELECT ALL + + CAST ( - col1 AS FLOAT8 ) FROM tab0 WHERE NOT - 67 * + + 79 IS NO # Datafusion - Expected - 40 # Datafusion - Expected - -58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, col2 col1 FROM tab2 +---- +-23 +-40 +-58 +23 +40 +58 query I rowsort SELECT DISTINCT col2 + - col2 * + col0 - + - ( + 72 ) FROM tab2 @@ -24295,8 +24560,15 @@ SELECT ALL - + col0 * + 67 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( + + col1 ) AS col0, col1 AS col0 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-3989 SELECT DISTINCT 68 / - 74 FROM tab0 @@ -24954,8 +25226,15 @@ SELECT DISTINCT - 7 * col1 AS col2 FROM tab1 cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 76 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "cor0\.col2 \+ \(\- \(\- \(\- cor0\.col2\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 76 AS col0, + col2 + - - ( - col2 ) AS col0 FROM tab0 AS cor0 +---- +0 +0 +0 +76 +76 +76 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + col0 IS NULL @@ -25283,8 +25562,15 @@ SELECT DISTINCT + col1 * - - 21 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \- \(\- Int64\(1\)\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + CAST ( NULL AS FLOAT8 ) - - ( + 1 ) AS col1, + col0 AS col1 FROM tab0 +---- +15 +87 +97 +NULL +NULL +NULL query I rowsort SELECT ALL 15 * - + col1 FROM tab1 @@ -25531,8 +25817,15 @@ SELECT ALL * FROM tab2 WHERE + col1 * + col0 IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - -16 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 16 AS col1, + col2 AS col1 FROM tab0 +---- +-16 +-16 +-16 +10 +47 +99 query III rowsort label-4202 SELECT ALL * FROM tab2 WHERE NULL NOT IN ( col2 * + + CAST ( - - 96 AS INTEGER ) ) @@ -25837,8 +26130,11 @@ SELECT ALL col0 * + 22 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 199 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) 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 II valuesort SELECT + 75 col0, SUM ( col0 ) AS col0 FROM tab0 AS cor0 +---- +199 +75 query I rowsort SELECT DISTINCT + 27 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 @@ -26211,8 +26507,15 @@ SELECT ALL - col2 / - + col0 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -380653 # Datafusion - Expected - 52 # Datafusion - Expected - -63546 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col2" at position 0 and "\(\- cor0\.col0\) \* Int64\(\-89\) \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 52 AS col2, - col0 * - 89 * - col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL +---- +-37825 +-380653 +-63546 +52 +52 +52 query I rowsort SELECT DISTINCT - - 76 AS col0 FROM tab2 AS cor0 @@ -26713,8 +27016,15 @@ SELECT + col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - - 29 AND + + col0 / # Datafusion - Expected - -1191 # Datafusion - Expected - -457 # Datafusion - Expected - -1182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ \(\- cor0\.col1\) \* Int64\(29\) AS col1" at position 0 and "Int64\(\-23\) \* Int64\(52\) \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + + - col1 * + 29 AS col1, - 23 * 52 + + col1 AS col1 FROM tab1 AS cor0 +---- +-1149 +-1182 +-1191 +-1454 +-230 +-457 query I rowsort label-4391 SELECT + ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE ( NOT ( NULL IS NOT NULL ) ) @@ -26788,8 +27098,15 @@ SELECT ALL + 57 AS col0, col0 + - + col0 FROM tab0 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - -75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, + col0 AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +46 +64 +75 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) = - + col2 @@ -28305,8 +28622,15 @@ SELECT ALL + 54 + - 43 AS col0 FROM tab0 # Datafusion - Expected - -40 # Datafusion - Expected - 78 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 78 AS col0, - col2 AS col0 FROM tab2 +---- +-23 +-40 +-58 +78 +78 +78 query I rowsort SELECT + col0 + - col0 + + - 94 * - col0 * + col2 FROM tab1 @@ -28503,8 +28827,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - COUNT ( * ) ) AS col2, 82 AS col2 FROM tab1 AS cor0 +---- +-3 +82 query I rowsort SELECT ALL - col1 + - + 65 col2 FROM tab2 AS cor0 @@ -29104,8 +29431,11 @@ SELECT 87 * + COUNT ( * ) AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) col1, - COUNT ( * ) AS col1 FROM tab2 +---- +-3 +3 query I rowsort SELECT ALL col1 * - col0 AS col1 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL @@ -29130,8 +29460,15 @@ SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Expected - -86 # Datafusion - Expected - 81 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "Int64\(\-86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 81 AS col0, - 86 AS col0 FROM tab2 AS cor0 +---- +-86 +-86 +-86 +81 +81 +81 query I rowsort label-4790 SELECT + - 55 / + - COUNT ( * ) + + + COUNT ( DISTINCT + 73 ) AS col1 FROM tab2 AS cor0 @@ -29352,8 +29689,9 @@ SELECT - + 82 AS col1, - col1 AS col0 FROM tab1 AS cor0 -5 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(\-50\) AS col1" at position 0 and "Int64\(78\) \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 * - 50 AS col1, + 78 * - col0 AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - col1 NOT BETWEEN NULL AND col0 +---- query I rowsort SELECT ALL + ( 24 ) FROM tab0 cor0 @@ -29376,8 +29714,10 @@ SELECT * FROM tab1 WHERE NOT + col1 * + col1 = - + 51 / 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 0a1d692e4fab2e976e0c0e9c745d4e4f -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* cor0\.col2 AS col2" at position 0 and "cor0\.col1 \* \(\- cor0\.col1\) \+ Int64\(14\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + + 99 * + col2 AS col2, - col1 + 76 * + 61, col1 * - col1 + 14 AS col2 FROM tab2 AS cor0 +---- +9 values hashing to 0fdbb5d0ebb43d7073da73072dd019c7 query II rowsort label-4831 SELECT ALL + CAST ( NULL AS INTEGER ) * + col1 col2, col1 AS col1 FROM tab2 AS cor0 @@ -29993,8 +30333,15 @@ SELECT DISTINCT + + col0 FROM tab0 AS cor0 WHERE NOT NULL < 70 # Datafusion - Expected - -76 # Datafusion - Expected - 91 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "Int64\(9\) \+ \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( - - col0 ) AS col2, 9 + + - col0 AS col2 FROM tab1 AS cor0 +---- +-42 +-76 +-82 +51 +85 +91 query I rowsort SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NOT - 75 > + col2 + + col0 * - 39 + - col1 @@ -30496,8 +30843,15 @@ SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL BETWEEN - - 27 # Datafusion - Expected - -197 # Datafusion - Expected - 42 # Datafusion - Expected - -318 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col0\) \+ \(\- cor0\.col1\) \+ cor0\.col1 \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + + col1 AS col2, - col0 + - col1 + col1 * - col2 AS col2 FROM tab0 AS cor0 +---- +-197 +-318 +-3903 +162 +2 +42 query III rowsort SELECT * FROM tab2 cor0 WHERE NOT + 75 - col1 IS NOT NULL @@ -30550,8 +30904,15 @@ SELECT ALL COUNT ( * ) * - - ( 45 ) FROM tab0 # Datafusion - Expected - 8455 # Datafusion - Expected - -91 # Datafusion - Expected - 8455 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col0" at position 0 and "Int64\(\-89\) \* Int64\(\-94\) \+ Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col0, - 89 * + - 94 + + 89 AS col0 FROM tab1 +---- +-51 +-85 +-91 +8455 +8455 +8455 query I rowsort label-5025 SELECT DISTINCT - col0 / - - col0 FROM tab2 @@ -31304,8 +31665,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 ) > col0 # Datafusion - Expected - NULL # Datafusion - Expected - -6975 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* CAST\(Int64\(\-93\) AS Int32\) AS col2" at position 0 and "\(\- tab2\.col2\) \* tab2\.col2 \* \(\- \(\- tab2\.col1\)\) \* tab2\.col1 \- CAST\(NULL AS Int32\) \- tab2\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 * + CAST ( - 93 AS INTEGER ) AS col2, - col2 * + col2 * - - col1 * col1 - CAST ( NULL AS INTEGER ) - col2 AS col2 FROM tab2 +---- +-4278 +-5952 +-6975 +NULL +NULL +NULL query I rowsort SELECT + col1 AS col1 FROM tab2 WHERE NOT + + 87 * - 94 * col0 - + 17 BETWEEN NULL AND col1 + + col2 @@ -31916,8 +32284,15 @@ SELECT + col0 AS col2 FROM tab1 cor0 WHERE NOT col2 NOT BETWEEN 36 AND 1 # Datafusion - Expected - -82 # Datafusion - Expected - -77 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(\-15\) \+ \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col2, - 15 + - col1 AS col2 FROM tab2 AS cor0 +---- +-51 +-66 +-67 +-77 +-82 +-92 query I rowsort label-5253 SELECT + MAX ( + 36 ) FROM tab0 cor0 @@ -32695,8 +33070,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 14 AS col0, ( COUNT ( * ) ) + - 43 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 +---- +-34 +14 query I rowsort SELECT DISTINCT + col0 - - col2 col2 FROM tab0 @@ -32813,8 +33191,15 @@ SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 cor0 WHERE col1 NOT BETWEEN NULL A # Datafusion - Expected - -67 # Datafusion - Expected - -77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + col1 ) AS col0, - col1 AS col0 FROM tab2 AS cor0 +---- +-51 +-51 +-67 +-67 +-77 +-77 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE col2 + col2 NOT BETWEEN - 10 AND NULL @@ -33708,8 +34093,10 @@ SELECT + col2, - col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to b8d518d18122ed1581e778c9dcaaae0a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - col0 AS col0, + 45 AS col0, + - col2 FROM tab0 AS cor0 +---- +9 values hashing to 654eeb095f38c6fb98c6f6b39bb69d4f query I rowsort label-5552 SELECT COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT ( - col2 ) <= NULL @@ -33849,8 +34236,15 @@ NULL # Datafusion - Expected - 5 # Datafusion - Expected - 563108 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col0 \* cor0\.col0 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * + + col0 * + col0 AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +14 +249696 +426275 +47 +5 +563108 query I rowsort label-5575 SELECT DISTINCT + 31 + - - MIN ( ALL + + col2 ) FROM tab2 @@ -34790,8 +35184,15 @@ SELECT + COUNT ( DISTINCT + 32 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -91 # Datafusion - Expected - 529 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* tab2\.col2 AS col1" at position 0 and "Int64\(\-91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * + col2 col1, - 91 AS col1 FROM tab2 +---- +-91 +-91 +-91 +1600 +3364 +529 query I rowsort SELECT 60 col1 FROM tab1 WHERE NOT NULL < - - 99 / - 98 + + col1 @@ -35231,8 +35632,15 @@ SELECT col2 + + 76 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - 6 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ CAST\(Int64\(\-9\) AS Int32\) \* tab0\.col0 \+ tab0\.col2 \- \(\- tab0\.col2\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 + + CAST ( - 9 AS INTEGER ) * + ( + col0 ) + + col2 - - col2 AS col0, col1 AS col0 FROM tab0 +---- +-576 +-753 +1 +21 +6 +81 query II rowsort label-5802 SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1, COUNT ( - col2 ) FROM tab2 @@ -35998,8 +36406,15 @@ SELECT * FROM tab0 WHERE NULL NOT IN ( - - col2 + col2 ) # Datafusion - Expected - 41 # Datafusion - Expected - 29 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \- Int64\(70\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 99 - + 70 col2, 41 AS col2 FROM tab1 +---- +29 +29 +29 +41 +41 +41 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -36484,8 +36899,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + + + 91 BETWEEN - 65 AND NULL # Datafusion - Expected - 72 # Datafusion - Expected - 3196 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \* cor0\.col1 AS col2" at position 0 and "Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 * + + col1 AS col2, 72 AS col2 FROM tab1 AS cor0 +---- +1344 +295 +3196 +72 +72 +72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 @@ -36494,8 +36916,15 @@ SELECT - - col2 * + + col1 AS col2, 72 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 10 # Datafusion - Expected - 91 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col1 \+ \(\- \(\- tab1\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, + col1 + - ( - + col1 ) AS col1 FROM tab1 +---- +10 +28 +51 +85 +91 +94 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT ( - - col0 ) BETWEEN + col2 AND - - col0 @@ -36786,8 +37215,15 @@ SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN + col2 * col2 * - - 10 + + 53 AND # Datafusion - Expected - 42 # Datafusion - Expected - -58 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col2\) AS Int32\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( + - col2 AS INTEGER ) AS col0, 42 AS col0 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +42 +42 +42 query I rowsort label-6061 SELECT DISTINCT - - col0 * - + col0 + - CAST ( 30 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL ) @@ -36973,8 +37409,15 @@ SELECT 75 AS col0, + COUNT ( * ) FROM tab2 # Datafusion - Expected - 10 # Datafusion - Expected - 97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 col1, col2 AS col1 FROM tab0 +---- +10 +15 +47 +87 +97 +99 query II rowsort SELECT DISTINCT - col1 AS col1, 40 FROM tab2 AS cor0 @@ -37263,8 +37706,15 @@ SELECT col2 / - 88 * + + col1 + - + 53 AS col2 FROM tab0 # Datafusion - Expected - 13 # Datafusion - Expected - 76 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "tab2\.col1 \+ \(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 76 AS col1, col1 + - col0 AS col1 FROM tab2 +---- +-8 +13 +5 +76 +76 +76 query I rowsort SELECT - col2 * - col1 + - - ( - 28 ) + - + 58 * - col0 * + + col1 * col1 FROM tab0 AS cor0 @@ -38109,8 +38559,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \+ min\(cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 87 col0, + 62 * + 55 + - COUNT ( * ) + MIN ( ALL + col0 ) AS col0 FROM tab0 AS cor0 +---- +3422 +87 query I rowsort SELECT ALL + 5 + + + col1 col2 FROM tab1 cor0 @@ -38284,8 +38737,15 @@ SELECT DISTINCT + 52 * - - col1 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -2079 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \* Int64\(\-27\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 * - 27 AS col1, - CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0 +---- +-1377 +-1809 +-2079 +NULL +NULL +NULL query I rowsort label-6311 SELECT ALL col0 / - - 14 AS col0 FROM tab1 AS cor0 @@ -39206,8 +39666,15 @@ SELECT + COUNT ( * ) / - 21 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 45 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 AS col0, col2 AS col0 FROM tab2 +---- +23 +40 +45 +45 +45 +58 query I rowsort SELECT DISTINCT 58 + - col0 AS col2 FROM tab1 @@ -39294,8 +39761,15 @@ SELECT DISTINCT - - 72 * + 0 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 5 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 col0, col2 AS col0 FROM tab1 AS cor0 +---- +14 +47 +5 +59 +68 +96 query I rowsort label-6486 SELECT DISTINCT + CAST ( + - SUM ( + col0 ) AS INTEGER ) * + - 30 AS col2 FROM tab1 AS cor0 @@ -39334,8 +39808,15 @@ SELECT DISTINCT - 48 * col1 FROM tab2 AS cor0 # Datafusion - Expected - -4 # Datafusion - Expected - -96 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, - 4 AS col2 FROM tab1 cor0 +---- +-4 +-4 +-4 +-59 +-68 +-96 query I rowsort SELECT ALL - + 46 + - col2 AS col0 FROM tab1 AS cor0 @@ -39391,8 +39872,10 @@ SELECT ALL SUM ( - ( col2 ) ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 2bdbe169ee8a5070238270a41f2e329d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / \(\- Int64\(\-36\)\) \* cor0\.col1 AS col2" at position 1 and "\(\- cor0\.col2\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT col2 * + col1, CAST ( NULL AS INTEGER ) / - - 36 * + col1 AS col2, + + ( - col2 ) col2 FROM tab2 AS cor0 +---- +9 values hashing to 2e5d61154f84de8bb71c745c926a89c7 query I rowsort label-6502 SELECT - COUNT ( * ) * + 88 + - 8 + - + COUNT ( * ) + + 68 AS col2 FROM tab1 AS cor0 @@ -39921,8 +40404,10 @@ SELECT ALL 6 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 8ca97dbce400a9a29661ea099c363aa9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\)" at position 1 and "\(\- tab2\.col2\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - col0 - + col2 AS col0, ( - col2 ), - col2 FROM tab2 +---- +9 values hashing to 6e2c22a8b664c0804cf205a9c2c1c307 query I rowsort label-6587 SELECT ALL + + COUNT ( * ) AS col1 FROM tab0 WHERE - col2 BETWEEN NULL AND col2 / + ( 18 ) + col1 + - 37 * - + col0 / 18 + + 21 @@ -40543,8 +41028,15 @@ SELECT DISTINCT + + col1 + - - col2 + col1 FROM tab0 cor0 # Datafusion - Expected - -26 # Datafusion - Expected - -96 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "CAST\(Int64\(\-26\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col2 AS col1, CAST ( - 26 AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +-26 +-26 +-26 +-59 +-68 +-96 query II rowsort SELECT col0, 78 FROM tab0 @@ -40971,8 +41463,9 @@ SELECT ALL - - COUNT ( ALL - + 84 ) FROM tab1 AS cor0 3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col0" at position 0 and "CAST\(NULL AS Float64\) \+ \(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - col1 AS col0, CAST ( NULL AS FLOAT8 ) + + - col2 AS col0 FROM tab2 WHERE NOT NULL < NULL +---- query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 + + 69 NOT BETWEEN ( col2 - + col2 ) AND ( NULL ) @@ -41053,8 +41546,15 @@ SELECT DISTINCT col1 col1, 26 AS col1 FROM tab2 # Datafusion - Expected - 58 # Datafusion - Expected - -53958 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* \(\- tab2\.col0\) \* tab2\.col2 AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * - col0 * col2 AS col1, col2 AS col1 FROM tab2 +---- +-197120 +-291450 +-53958 +23 +40 +58 query I rowsort label-6765 SELECT + ( - 99 ) * MAX ( ALL - 57 ) col2 FROM tab1 @@ -41284,8 +41784,9 @@ SELECT DISTINCT + 82 * + col1 AS col1 FROM tab0 AS cor0 WHERE col1 < NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 10 AS col2, + ( col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL +---- query I rowsort label-6803 SELECT COUNT ( * ) / 96 FROM tab0 @@ -42211,8 +42712,15 @@ NULL # Datafusion - Expected - -77 # Datafusion - Expected - 58 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "\(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, - col1 AS col1 FROM tab2 +---- +-51 +-67 +-77 +23 +40 +58 query III rowsort SELECT DISTINCT * FROM tab1 WHERE ( ( ( NULL ) IS NOT NULL ) ) @@ -42552,8 +43060,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT + 69 > + 55 # Datafusion - Expected - 40 # Datafusion - Expected - 2325 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) \* \(\- cor0\.col0\) \+ cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 30 * - col0 + + col0 AS col1, + col2 AS col1 FROM tab2 AS cor0 +---- +1426 +1984 +23 +2325 +40 +58 query II rowsort SELECT ALL - col0 AS col0, - col0 FROM tab2 cor0 WHERE NULL <= col2 @@ -42574,8 +43089,11 @@ SELECT + - CAST ( - col1 AS INTEGER ) AS col0 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\(\(\- \(\- cor0\.col1\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 92 AS col0, + COUNT ( - - ( col1 ) ) AS col0 FROM tab1 AS cor0 +---- +3 +92 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN NULL AND col0 @@ -43006,8 +43524,15 @@ SELECT DISTINCT - col1 * + CAST ( col0 AS INTEGER ) + - col0 FROM tab1 AS cor0 # Datafusion - Expected - 97 # Datafusion - Expected - -84 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 84 AS col1, 97 AS col1 FROM tab0 cor0 +---- +-84 +-84 +-84 +97 +97 +97 query I rowsort SELECT + ( + + 1 ) col1 FROM tab1 AS cor0 @@ -44204,8 +44729,11 @@ SELECT ALL COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT ( NOT ( + + col0 + col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16240 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* \(\- Int64\(58\)\) \* Int64\(\-20\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 14 * - + 58 * - 20 AS col0, COUNT ( * ) AS col0 FROM tab1 cor0 +---- +16240 +3 query I rowsort SELECT ALL - 54 * col2 * - col1 AS col2 FROM tab1 AS cor0 @@ -45380,8 +45908,15 @@ SELECT ALL - 34 AS col2 FROM tab2 WHERE NOT - - col1 + - + col1 <> + - col2 # Datafusion - Expected - -17 # Datafusion - Expected - 77 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "Int64\(\-17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col0, - 17 AS col0 FROM tab2 +---- +-17 +-17 +-17 +51 +67 +77 query I rowsort label-7468 SELECT + ( COUNT ( * ) ) AS col1 FROM tab2 WHERE NOT + col1 * - col0 * + 93 + - col0 NOT BETWEEN NULL AND - 79 @@ -45620,8 +46155,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 94 * 37 > ( NULL ) # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col1, + col1 AS col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT ALL + 21 col2 FROM tab0 AS cor0 @@ -45649,8 +46191,15 @@ SELECT DISTINCT MIN ( - col2 ) FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, col1 AS col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1692 @@ -45659,8 +46208,15 @@ SELECT + col1, col1 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 360 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(36\) AS col2" at position 0 and "Int64\(68\) \+ CAST\(CAST\(NULL AS Int32\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 * + + 36 AS col2, 68 + ( + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab0 AS cor0 +---- +1692 +3564 +360 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * + - col2 / + col0 * 88 / - - 86 IS NOT NULL @@ -45683,8 +46239,11 @@ SELECT * FROM tab1 WHERE NOT ( NOT NULL < NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 15 / + COUNT ( * ) AS col1, - 22 AS col1 FROM tab2 +---- +-22 +5 query I rowsort SELECT + ( + 22 ) col1 FROM tab2 @@ -45728,8 +46287,15 @@ SELECT + 2 * - col0 * CAST ( + - 39 AS INTEGER ) + 92 FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - 4 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 4 AS col0, col2 col0 FROM tab2 +---- +23 +4 +4 +4 +40 +58 query I rowsort SELECT DISTINCT 88 col0 FROM tab1 AS cor0 @@ -46166,8 +46732,15 @@ SELECT - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL # Datafusion - Expected - 67 # Datafusion - Expected - -77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 AS col0, col1 AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +51 +67 +77 query III rowsort SELECT - - col1 AS col2, - col1 * ( 42 ) AS col0, - 79 AS col1 FROM tab1 AS cor0 @@ -47043,8 +47616,15 @@ SELECT 0 * + + col0 * - col0 FROM tab1 # Datafusion - Expected - 84 # Datafusion - Expected - 30 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 30 ) col1, 84 AS col1 FROM tab2 +---- +30 +30 +30 +84 +84 +84 query I rowsort SELECT ( - col0 ) * - - 16 FROM tab1 @@ -47209,8 +47789,11 @@ SELECT DISTINCT col2 - - 88 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, 37 AS col0 FROM tab2 AS cor0 +---- +3 +37 query II rowsort SELECT - col0, + col2 + + 95 AS col1 FROM tab0 cor0 @@ -47260,8 +47843,15 @@ SELECT ALL COUNT ( * ) * 88 AS col0 FROM tab2 # Datafusion - Expected - -6 # Datafusion - Expected - -376875 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* \(\- tab2\.col0\) \* tab2\.col1 AS col0" at position 0 and "Int64\(\-6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * - col0 * col1 AS col0, - 6 AS col0 FROM tab2 +---- +-107916 +-315392 +-376875 +-6 +-6 +-6 query I rowsort SELECT DISTINCT - 2 + - - col0 FROM tab1 @@ -49326,8 +49916,15 @@ SELECT DISTINCT + col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Expected - -10 # Datafusion - Expected - 1 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 / tab2\.col0 AS col2" at position 0 and "\(\- Int64\(10\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 / + col0 AS col2, ( + - ( 10 ) ) AS col2 FROM tab2 +---- +-10 +-10 +-10 +1 +1 +1 query I rowsort label-8110 SELECT DISTINCT - MAX ( 75 ) AS col1 FROM tab1 @@ -50039,8 +50636,9 @@ SELECT DISTINCT col2 + col0, col1 AS col0 FROM tab0 21 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(59\)\) AS col0" at position 0 and "Int64\(\-47\) \+ \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 59 AS col0, - 47 + - col0 AS col0 FROM tab0 AS cor0 WHERE col2 IS NULL +---- query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 < col0 @@ -50558,8 +51156,15 @@ SELECT + 42 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + col2 ) AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = - col0 @@ -52438,8 +53043,11 @@ SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 ) ) +---- +-72 +0 query I rowsort label-8626 SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + 60 FROM tab0 @@ -54000,8 +54608,15 @@ SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( 32 + - - col2 ) # Datafusion - Expected - 182 # Datafusion - Expected - 5 # Datafusion - Expected - 170 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col0 \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, + col0 + ( col0 ) AS col0 FROM tab1 AS cor0 +---- +102 +14 +170 +182 +47 +5 query I rowsort SELECT + + 18 * - col1 col2 FROM tab0 AS cor0 WHERE NOT NULL < - 89 @@ -54556,8 +55171,15 @@ SELECT - - COUNT ( * ) * + + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 # Datafusion - Expected - 81 # Datafusion - Expected - 9498 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(95\) \+ Int64\(93\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * + 95 + + + 93 AS col0, col1 AS col0 FROM tab0 cor0 +---- +1 +1043 +21 +4558 +81 +9498 query I rowsort label-8974 SELECT COUNT ( * ) AS col0 FROM tab2 cor0 WHERE ( col0 + + + 86 ) IS NULL @@ -54920,8 +55542,15 @@ SELECT + - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL # Datafusion - Expected - -23 # Datafusion - Expected - 77 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(\-41\) \+ Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col0, - 41 + + 18 AS col0 FROM tab2 AS cor0 +---- +-23 +-23 +-23 +51 +67 +77 query I rowsort SELECT DISTINCT 38 FROM tab1 cor0 @@ -54944,8 +55573,15 @@ SELECT COUNT ( * ) / - 71 FROM tab2 # Datafusion - Expected - -3933 # Datafusion - Expected - 99 # Datafusion - Expected - -225 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "\(\- tab0\.col2\) \* tab0\.col1 \+ Int64\(\-58\) \+ \(\- Int64\(68\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 col1, - col2 * + col1 + - 58 + - + 68 AS col1 FROM tab0 +---- +-225 +-336 +-3933 +10 +47 +99 query III rowsort SELECT * FROM tab0 WHERE NOT - col0 + + 47 IS NULL @@ -55532,8 +56168,11 @@ SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 84 AS col1, COUNT ( * ) col1 FROM tab2 AS cor0 +---- +3 +84 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT + 34 NOT BETWEEN NULL AND ( - col1 ) @@ -55807,8 +56446,11 @@ SELECT ALL col1 FROM tab1 cor0 WHERE NOT NULL BETWEEN col2 AND - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + 82 AS col2 FROM tab1 +---- +3 +82 query I rowsort SELECT DISTINCT col2 FROM tab2 WHERE NULL = - col0 @@ -56184,8 +56826,15 @@ SELECT CAST ( - COUNT ( + - col2 ) AS INTEGER ) - + COUNT ( * ) FROM tab0 AS cor # Datafusion - Expected - 14 # Datafusion - Expected - -74 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(74\)\) AS col2" at position 0 and "Int64\(\-59\) \+ Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - ( 74 ) AS col2, + ( - 59 ) + 73 AS col2 FROM tab2 AS cor0 +---- +-74 +-74 +-74 +14 +14 +14 query I rowsort label-9239 SELECT DISTINCT 13 / - 10 + + 94 + COUNT ( * ) + 0 FROM tab2 cor0 @@ -57409,8 +58058,15 @@ NULL # Datafusion - Expected - 67 # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* cor0\.col0 \+ \(\- cor0\.col1\) / \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ \(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 \+ \(\- cor0\.col2\) \- \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 2 * + col0 + - col1 / - - CAST ( NULL AS INTEGER ) + - col1 AS col0, + col2 + - col2 - - col1 AS col0 FROM tab2 AS cor0 +---- +51 +67 +77 +NULL +NULL +NULL query I rowsort SELECT ALL + col0 + - + col1 AS col2 FROM tab0 @@ -57553,12 +58209,20 @@ SELECT DISTINCT + 70 + - 43 FROM tab2, tab0 cor0 # Datafusion - Expected - 79 # Datafusion - Expected - -91 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 91 AS col0, ( + 79 ) AS col0 FROM tab2 +---- +-91 +-91 +-91 +79 +79 +79 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 AS col1, col0 AS col1 FROM tab1 WHERE NOT NULL = NULL +---- query I rowsort SELECT DISTINCT ( - + 24 ) * + 89 AS col0 FROM tab2 AS cor0 @@ -57987,8 +58651,15 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- tab1\.col2\) / Int64\(\-42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 * - CAST ( NULL AS INTEGER ) AS col1, - col2 / - 42 AS col1 FROM tab1 +---- +1 +1 +2 +NULL +NULL +NULL query III rowsort SELECT * FROM tab2 WHERE NOT - col1 + - col1 * col0 * - 51 NOT IN ( - col0, + col2 / col1, + col2 ) @@ -58459,8 +59130,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 89 * - COUNT ( * ) AS col0, 16 AS col0 FROM tab0 AS cor0 +---- +16 +267 query I rowsort label-9620 SELECT ALL COUNT ( 8 ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL @@ -58488,8 +59162,15 @@ SELECT DISTINCT col1 + - + col1 + col2 - - 60 FROM tab2 AS cor0 # Datafusion - Expected - -51 # Datafusion - Expected - 94 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-9\)\) \+ cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 9 + + + col0 AS col2, - col0 col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +100 +60 +94 query I rowsort label-9624 SELECT + - col2 FROM tab1 AS cor0 WHERE - ( 36 ) + + - CAST ( + col2 AS INTEGER ) NOT BETWEEN 98 AND NULL @@ -58645,8 +59326,15 @@ SELECT ALL col1 AS col2, col0 FROM tab1 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col2, col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT - 16 col0 FROM tab0 WHERE NOT NULL IS NOT NULL @@ -59946,8 +60634,15 @@ SELECT - col1 AS col2, + 94 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 43 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "cor0\.col0 \+ cor0\.col1 \- cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 43 AS col1, col0 + col1 - + col0 AS col1 FROM tab1 AS cor0 +---- +14 +43 +43 +43 +47 +5 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 / + 73 IS NULL @@ -60088,8 +60783,15 @@ SELECT col2 + + col0 + 71 * - col0 FROM tab1 # Datafusion - Expected - 50 # Datafusion - Expected - 77 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, 50 AS col0 FROM tab2 AS cor0 +---- +50 +50 +50 +51 +67 +77 query I rowsort SELECT ( - 60 ) AS col1 FROM tab2 @@ -60159,8 +60861,15 @@ SELECT ALL - 93 AS col0 FROM tab0 WHERE NOT NULL IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - 75 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 75 AS col0, + col1 AS col0 FROM tab1 +---- +14 +47 +5 +75 +75 +75 query I rowsort label-9909 SELECT ALL - MAX ( col0 ) FROM tab2 @@ -60196,8 +60905,15 @@ SELECT ALL + 20 FROM tab1 AS cor0 WHERE NOT 26 <> - ( col1 ) + - col2 * - + col2 # Datafusion - Expected - -3784 # Datafusion - Expected - 75 # Datafusion - Expected - -3784 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "Int64\(86\) \* \(\- Int64\(44\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, 86 * - + 44 AS col2 FROM tab2 +---- +-3784 +-3784 +-3784 +46 +64 +75 query I rowsort SELECT col0 * - - 16 + - col1 + + + col0 - col1 FROM tab1 diff --git a/data/sqlite/random/aggregates/slt_good_6.slt b/data/sqlite/random/aggregates/slt_good_6.slt index 07a0c83..b84a8b0 100644 --- a/data/sqlite/random/aggregates/slt_good_6.slt +++ b/data/sqlite/random/aggregates/slt_good_6.slt @@ -372,8 +372,15 @@ SELECT * FROM tab0 WHERE ( NOT ( + col0 ) NOT IN ( col1 ) ) # Datafusion - Expected - 71 # Datafusion - Expected - -96 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col2, 71 AS col2 FROM tab1 +---- +-59 +-68 +-96 +71 +71 +71 query I rowsort SELECT col2 FROM tab1 WHERE - - 55 IS NOT NULL @@ -2069,8 +2076,15 @@ SELECT - MAX ( - col0 ) + - 40 AS col2 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - -58 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 58 AS col0, col1 AS col0 FROM tab1 AS cor0 +---- +-58 +-58 +-58 +14 +47 +5 query I rowsort SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE 81 IS NOT NULL @@ -2086,8 +2100,15 @@ SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE 81 IS NOT NULL # Datafusion - Expected - 40 # Datafusion - Expected - 35 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 AS col0, col2 AS col0 FROM tab2 AS cor0 +---- +23 +35 +35 +35 +40 +58 query II rowsort SELECT ALL col0 AS col0, ( + col2 ) col2 FROM tab2 cor0 @@ -2423,8 +2444,15 @@ SELECT DISTINCT col0 + - + col0 FROM tab2 AS cor0 # Datafusion - Expected - -1 # Datafusion - Expected - 5 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col1" at position 0 and "Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 col1, - 1 AS col1 FROM tab1 +---- +-1 +-1 +-1 +5 +5 +5 query I rowsort SELECT ALL + col1 - - - col2 FROM tab1 @@ -4661,8 +4689,15 @@ SELECT ALL 41 / + 50 FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 4210 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(44\) \- cor0\.col1 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * + 44 - + col1 AS col1, + col2 AS col1 FROM tab1 AS cor0 +---- +2591 +2945 +4210 +59 +68 +96 query I rowsort label-765 SELECT ALL COUNT ( - - col0 ) FROM tab2 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) * + + col1 + 20 * - ( 87 ) ) >= NULL @@ -5211,8 +5246,11 @@ SELECT + col2 + - col1 * col2 AS 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\(DISTINCT tab2\.col2\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( DISTINCT + col2 ) AS col0, 38 col0 FROM tab2 +---- +3 +38 query I rowsort label-855 SELECT ALL + - 90 + + COUNT ( * ) FROM tab0 WHERE NOT col1 IS NOT NULL @@ -5302,8 +5340,15 @@ SELECT - 11 / - col1 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - -97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* \(\- tab0\.col0\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 * - + col0 AS col0, col1 AS col0 FROM tab0 +---- +-1215 +-1827 +-97 +1 +21 +81 query I rowsort label-869 SELECT ALL COUNT ( * ) * 97 FROM tab2 @@ -5965,8 +6010,10 @@ SELECT DISTINCT - col1 + - 23 - col0 + - 15 / + + col1 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a41e9ecb9f560b67d39e9696cfca338b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \+ \(\- \(\- tab2\.col2\)\) \+ tab2\.col0 AS col1" at position 1 and "\(\- tab2\.col1\) \* Int64\(\-93\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col0 AS col0, - col1 + - - col2 + + + col0 AS col1, - col1 * - 93 AS col1 FROM tab2 +---- +9 values hashing to 5265b48da7f7cbdbbf5fcc09cd209a88 query III rowsort SELECT * FROM tab2 WHERE NULL <> + 45 @@ -6134,8 +6181,15 @@ SELECT + 67 + - col2 FROM tab0 cor0 # Datafusion - Expected - 68 # Datafusion - Expected - -28 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 28 col1, col2 AS col1 FROM tab1 cor0 +---- +-28 +-28 +-28 +59 +68 +96 query II rowsort label-1014 SELECT + + col1 / + - col1, col2 AS col2 FROM tab1 AS cor0 @@ -6262,8 +6316,15 @@ NULL # Datafusion - Expected - 3640 # Datafusion - Expected - -66 # Datafusion - Expected - 3640 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col0" at position 0 and "Int64\(70\) \* Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 66 AS col0, 70 * + + 52 AS col0 FROM tab1 +---- +-66 +-66 +-66 +3640 +3640 +3640 query I rowsort SELECT DISTINCT - ( - + 20 ) * + - col2 AS col2 FROM tab2 @@ -6293,8 +6354,15 @@ NULL # Datafusion - Expected - -91 # Datafusion - Expected - 96 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, - col0 AS col1 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +59 +68 +96 query II rowsort label-1037 SELECT ALL 80 AS col1, COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab0 cor0 @@ -6712,8 +6780,15 @@ SELECT ALL - + MAX ( - - 33 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - -77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col1 AS col0, 77 AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +77 +77 +77 query I rowsort label-1103 SELECT ALL COUNT ( ALL + + 82 ) AS col1 FROM tab2 @@ -6945,8 +7020,15 @@ SELECT - SUM ( col0 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - 3886 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- cor0\.col1\) AS col1" at position 0 and "Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 * - col1 AS col1, 77 AS col1 FROM tab2 AS cor0 +---- +1173 +3080 +3886 +77 +77 +77 query I rowsort label-1141 SELECT COUNT ( * ) / + 84 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 @@ -9543,8 +9625,15 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - -9801 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- tab0\.col2\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * - + col2 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 +---- +-100 +-2209 +-9801 +NULL +NULL +NULL query I rowsort SELECT DISTINCT 19 * + 53 * - + col2 - 10 AS col1 FROM tab1 @@ -9907,8 +9996,15 @@ SELECT col1 FROM tab1 WHERE - + 55 IS NULL # Datafusion - Expected - -35 # Datafusion - Expected - 21 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \+ \(\- tab1\.col0\) AS col1" at position 0 and "Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 72 ) + - col0 AS col1, - 35 AS col1 FROM tab1 +---- +-13 +-19 +-35 +-35 +-35 +21 query III rowsort SELECT * FROM tab0 WHERE - - 42 IS NOT NULL @@ -10178,8 +10274,11 @@ SELECT - ( col0 ) AS col1, col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -223 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT \(\- cor0\.col2\)\) AS col1" at position 0 and "Int64\(\-11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + SUM ( DISTINCT - col2 ) col1, - 11 AS col1 FROM tab1 AS cor0 +---- +-11 +-223 query I rowsort label-1668 SELECT ALL - - 98 * + COUNT ( * ) col0 FROM tab0 AS cor0 @@ -10292,8 +10391,11 @@ 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\(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\. +query II valuesort SELECT 62 + 88 + - COUNT ( * ) AS col0, COUNT ( * ) * + COUNT ( * ) * COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +147 +24 query I rowsort SELECT col0 + + col0 * + col1 + 72 + - col1 * 50 * - col2 * - - col2 FROM tab0 @@ -10335,8 +10437,15 @@ SELECT DISTINCT * FROM tab0 WHERE NOT + 3 IS NULL # Datafusion - Expected - 603 # Datafusion - Expected - -77 # Datafusion - Expected - 693 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col0" at position 0 and "tab2\.col1 \* Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col0, col1 * + + 9 AS col0 FROM tab2 +---- +-51 +-67 +-77 +459 +603 +693 query II rowsort label-1692 SELECT - CAST ( + CAST ( 81 AS INTEGER ) AS INTEGER ), SUM ( + col2 ) AS col0 FROM tab0 @@ -10467,8 +10576,15 @@ SELECT ( + + CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab2 # Datafusion - Expected - 54 # Datafusion - Expected - 43 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "tab1\.col2 \+ \(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 43 AS col1, + col2 + - col1 col1 FROM tab1 +---- +21 +43 +43 +43 +54 +82 query I rowsort SELECT DISTINCT - col0 + - 75 + + col2 * - col1 * col2 + - col0 * + col0 FROM tab2 @@ -10885,8 +11001,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ), COUNT ( * ) FROM tab2 WHERE - col0 <> - col2 AND NOT col1 IS NULL +---- +3 +3 query II rowsort label-1781 SELECT DISTINCT + col1 AS col0, - 73 * col0 / col2 FROM tab1 @@ -11073,8 +11192,15 @@ SELECT + - 87 FROM tab2 cor0 WHERE ( NULL ) >= NULL # Datafusion - Expected - 58 # Datafusion - Expected - -77441 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* cor0\.col2 \* Int64\(\-37\) AS col2" at position 0 and "CAST\(\(\- \(\- cor0\.col2\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 * + col2 * - 37 col2, + CAST ( - - col2 AS INTEGER ) col2 FROM tab2 cor0 +---- +-134680 +-195286 +-77441 +23 +40 +58 query I rowsort SELECT ( + 66 ) + col2 * 37 FROM tab2 @@ -11995,8 +12121,15 @@ NULL # Datafusion - Expected - -47 # Datafusion - Expected - -5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + col1 ) AS col1, - col1 AS col1 FROM tab1 +---- +-14 +-14 +-47 +-47 +-5 +-5 query II rowsort SELECT ALL 70 * - col2, 82 * + 89 AS col0 FROM tab0 @@ -12072,8 +12205,15 @@ SELECT DISTINCT 87 AS col1 FROM tab2 WHERE NOT - 78 IS NULL # Datafusion - Expected - -470 # Datafusion - Expected - -91 # Datafusion - Expected - -4418 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(94\) \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, + 94 * + - col1 AS col2 FROM tab1 AS cor0 +---- +-1316 +-4418 +-470 +-51 +-85 +-91 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 27 IS NOT NULL ) @@ -12410,8 +12550,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( col1, - ( - + col0 ) + + + col1 # Datafusion - Expected - 66 # Datafusion - Expected - -9120 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* \(\- Int64\(95\)\) AS col1" at position 0 and "Int64\(68\) \+ Int64\(45\) \+ \(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 * - ( + 95 ) AS col1, 68 + 45 + - col1 col1 FROM tab1 +---- +-5605 +-6460 +-9120 +108 +66 +99 query I rowsort SELECT ALL - col2 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( - + 10 ) @@ -13029,8 +13176,10 @@ SELECT ALL + col2 + - ( - col0 ) + - 72 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f5f6eb4ad402f7adf8ae051ea9a08734 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 1 and "\(\- tab0\.col0\) \+ tab0\.col0 \- \(\- tab0\.col1\) / tab0\.col0 AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 37 + - col0, col2 AS col0, - col0 + col0 - - col1 / + col0 AS col0 FROM tab0 +---- +9 values hashing to ca98f921ee79f61c95639e5fd46f64f1 query I rowsort SELECT ALL + col1 * + col0 + + col0 AS col0 FROM tab0 @@ -13164,8 +13313,11 @@ SELECT DISTINCT + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT 2 = ( col2 ) * - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* min\(CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) / - COUNT ( * ) * + MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col1, + COUNT ( ALL + col1 ) AS col1 FROM tab1 +---- +3 +NULL query I rowsort label-2152 SELECT COUNT ( * ) FROM tab1 WHERE NOT NULL BETWEEN ( - + col2 ) AND - 27 - ( 76 ) @@ -13789,8 +13941,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 18 AS col0, 9 * 7 + + + COUNT ( * ) + - 75 AS col0 FROM tab1 AS cor0 +---- +-18 +-9 query I rowsort label-2257 SELECT DISTINCT - MAX ( ALL + col0 ) AS col0 FROM tab1 AS cor0 @@ -14444,8 +14599,15 @@ SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) NOT BETWEE # Datafusion - Expected - 222 # Datafusion - Expected - -43638 # Datafusion - Expected - 125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col2 \+ cor0\.col1 \* cor0\.col0 \* Int64\(\-24\) AS col2" at position 0 and "cor0\.col1 \- Int64\(\-94\) \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 * col2 + + col1 * + col0 * - 24 AS col2, col1 - + - 94 + + col2 AS col2 FROM tab0 AS cor0 +---- +-2229 +-25353 +-43638 +125 +194 +222 query I rowsort SELECT DISTINCT 80 + + - col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL @@ -15217,8 +15379,15 @@ SELECT DISTINCT SUM ( DISTINCT + - col0 ) AS col2 FROM tab2 AS cor0 WHERE NULL I # Datafusion - Expected - 0 # Datafusion - Expected - 4 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "cor0\.col0 / \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 4 AS col2, col0 / - col1 AS col2 FROM tab2 AS cor0 +---- +-1 +0 +0 +4 +4 +4 query II rowsort SELECT DISTINCT + 47, + 63 col1 FROM tab2 AS cor0 @@ -15833,8 +16002,15 @@ SELECT DISTINCT COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS co # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col1, col1 FROM tab2 cor0 +---- +51 +51 +67 +67 +77 +77 query II rowsort label-2591 SELECT - + COUNT ( * ) AS col0, - 44 * + 54 AS col2 FROM tab2 cor0 @@ -16450,8 +16626,15 @@ SELECT - 72 + + - col1 AS col1, 42 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS N # Datafusion - Expected - -77 # Datafusion - Expected - 58 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, - col1 AS col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +23 +40 +58 query I rowsort label-2690 SELECT DISTINCT col0 / + 98 AS col0 FROM tab2 AS cor0 @@ -16960,8 +17143,15 @@ SELECT * FROM tab1 WHERE - col1 IS NOT NULL AND NOT NULL IS NOT NULL # Datafusion - Expected - 470 # Datafusion - Expected - -560 # Datafusion - Expected - 1316 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \* tab1\.col1 AS col1" at position 0 and "Int64\(94\) \* tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 40 * col1 AS col1, 94 * + col1 AS col1 FROM tab1 +---- +-1880 +-200 +-560 +1316 +4418 +470 query III rowsort SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN 58 AND + + col2 @@ -17056,8 +17246,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col2, - 83 col2 FROM tab0 +---- +-83 +0 query I rowsort SELECT col2 + col0 FROM tab0 WHERE col1 + 29 + - + ( - 79 ) IS NULL @@ -17258,8 +17451,15 @@ SELECT DISTINCT + col0 * - col0 + 38 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 870 # Datafusion - Expected - -9603 # Datafusion - Expected - 9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col2 AS col2" at position 0 and "cor0\.col0 \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 * + col2 AS col2, col0 * + + ( col2 ) AS col2 FROM tab0 AS cor0 +---- +-705 +-870 +-9603 +705 +870 +9603 query III rowsort SELECT * FROM tab1 AS cor0 WHERE ( - 90 ) NOT BETWEEN ( NULL ) AND ( + col1 ) @@ -17544,8 +17744,15 @@ SELECT + 27 * COUNT ( * ) / COUNT ( * ), COUNT ( DISTINCT - 5 ) AS col0 FROM tab # Datafusion - Expected - 51 # Datafusion - Expected - -3 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(3\)\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 3 col0, 51 AS col0 FROM tab1 cor0 +---- +-3 +-3 +-3 +51 +51 +51 query III rowsort SELECT ALL * FROM tab0 cor0 WHERE NULL <= + 80 @@ -18327,8 +18534,15 @@ SELECT + COUNT ( * ) * + 74 * + + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM # Datafusion - Expected - -16 # Datafusion - Expected - 58 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "CAST\(Int64\(\-16\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, + ( CAST ( - 16 AS INTEGER ) ) AS col1 FROM tab2 WHERE NOT + 35 BETWEEN + col2 + + + col2 AND - + col0 +---- +-16 +-16 +-16 +23 +40 +58 query I rowsort label-3005 SELECT ALL - COUNT ( DISTINCT - + col0 ) FROM tab2 @@ -18504,8 +18718,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, - COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +-3 +-3 query I rowsort SELECT - - ( - - ( + - 34 ) ) FROM tab1 AS cor0 @@ -18702,8 +18919,9 @@ SELECT * FROM tab1 WHERE NOT + + col0 + + - col0 <> NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) \+ tab2\.col0 AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 38 + col0 AS col1, col0 AS col1 FROM tab2 WHERE NOT - + col2 < NULL +---- query III rowsort label-3068 SELECT DISTINCT * FROM tab1 WHERE NOT ( + + CAST ( - col2 AS INTEGER ) + - ( + col2 ) * + col2 ) = NULL @@ -20360,8 +20578,15 @@ SELECT - - col1 + - col0 - col2 FROM tab1 AS cor0 # Datafusion - Expected - 2480 # Datafusion - Expected - -60833 # Datafusion - Expected - 3596 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- cor0\.col0\) \* Int64\(\-14\) \+ \(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "Int64\(62\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 * - col0 * - 14 + - - col1 AS col1, 62 * ( + + col2 ) AS col1 FROM tab2 cor0 +---- +-14761 +-35763 +-60833 +1426 +2480 +3596 query I rowsort label-3343 SELECT + ( + 2 ) * 4 / 16 + - col0 + 55 FROM tab1 AS cor0 @@ -20551,8 +20776,15 @@ SELECT ALL + 60 AS col0, - COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Expected - 2556 # Datafusion - Expected - -58 # Datafusion - Expected - 4357 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col0 \- Int64\(68\) \+ cor0\.col2 \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, col0 - + 68 + + col2 * + col0 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +1036 +2556 +4357 query I rowsort label-3373 SELECT col1 - + CAST ( CAST ( + - col1 AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0 WHERE ( + 94 ) < + col1 @@ -21255,8 +21487,15 @@ SELECT * FROM tab0 WHERE NOT + 12 >= - - col1 # Datafusion - Expected - 4324 # Datafusion - Expected - 80 # Datafusion - Expected - 460 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col2" at position 0 and "Int64\(92\) \* tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 AS col2, 92 * + col1 AS col2 FROM tab1 +---- +1288 +4324 +460 +80 +80 +80 query I rowsort label-3481 SELECT DISTINCT - col0 / + col2 + + + col1 FROM tab1 AS cor0 @@ -21531,8 +21770,11 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT 43 + - 89 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 col0" at position 0 and "count\(cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 56 AS col0, COUNT ( col1 ) AS col0 FROM tab2 AS cor0 +---- +-56 +3 query I rowsort SELECT + - ( + + col2 ) AS col1 FROM tab1 AS cor0 @@ -22454,8 +22696,15 @@ SELECT * FROM tab2 WHERE NOT NULL IN ( - 25 ) # Datafusion - Expected - 85 # Datafusion - Expected - 97 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col1, + ( + 85 ) AS col1 FROM tab0 +---- +15 +85 +85 +85 +87 +97 query III rowsort SELECT ALL * FROM tab2 WHERE NOT + 11 IS NOT NULL @@ -22745,8 +22994,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE + - col0 * + col1 * - 70 - - + col0 >= # Datafusion - Expected - -68 # Datafusion - Expected - 115 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-69\)\) \+ Int64\(46\) AS col2" at position 0 and "\(\- \(\- \(\- cor0\.col2\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 69 + 46 AS col2, ( - ( - + ( - + col2 ) ) ) AS col2 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +115 +115 +115 query I rowsort label-3735 SELECT - COUNT ( * ) + - - SUM ( + 53 ) col0 FROM tab1 cor0 @@ -23064,8 +23320,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 > ( NULL ) # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, col1 AS col2 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT DISTINCT + 6 AS col0 FROM tab0 WHERE NOT - 86 BETWEEN NULL AND + col1 @@ -23502,8 +23765,11 @@ SELECT + col1 + ( 45 ) + - col0 FROM tab2 WHERE col1 BETWEEN - 18 + + 15 AND - c # Datafusion - Datafusion expected results: # Datafusion - Expected - 201 # Datafusion - Expected - 48 -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\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - SUM ( - ( + 67 ) ) AS col2, 48 AS col2 FROM tab2 +---- +201 +48 query III rowsort SELECT * FROM tab0 WHERE - + col2 IN ( col2 + - - col1 + - col1 / - - 95, 39 * + ( col0 ) ) @@ -24188,8 +24454,15 @@ SELECT + col2 * + 53 + ( col2 ) FROM tab2 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, col0 AS col1 FROM tab2 AS cor0 +---- +23 +40 +46 +58 +64 +75 query I rowsort SELECT - col2 * - col2 + 86 + + col0 AS col2 FROM tab2 AS cor0 @@ -25371,8 +25644,15 @@ SELECT ALL col1, 91 col2 FROM tab1 # Datafusion - Expected - -10 # Datafusion - Expected - 60 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "Int64\(\-10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 60 AS col1, - 10 AS col1 FROM tab2 +---- +-10 +-10 +-10 +60 +60 +60 query I rowsort label-4170 SELECT DISTINCT + MAX ( - + col2 ) FROM tab1 AS cor0 @@ -25793,8 +26073,11 @@ SELECT DISTINCT * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) > - col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(71\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) / + + 71 AS col2, COUNT ( * ) AS col2 FROM tab2 +---- +0 +3 query I rowsort label-4242 SELECT DISTINCT 62 + + - COUNT ( * ) FROM tab1 @@ -26376,8 +26659,11 @@ SELECT - - 74 AS col2, - col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 88 AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +3 +88 query II rowsort SELECT + col0, col2 AS col2 FROM tab1 AS cor0 @@ -26401,8 +26687,15 @@ SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 6715 # Datafusion - Expected - 91 # Datafusion - Expected - 7189 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- \(\- \(\- cor0\.col0\)\)\) \* Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col2, - ( - ( - col0 ) ) * - 79 AS col2 FROM tab1 cor0 +---- +4029 +51 +6715 +7189 +85 +91 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT - 85 IS NOT NULL @@ -26663,8 +26956,15 @@ SELECT DISTINCT ( + 18 ) + - col1 FROM tab2 # Datafusion - Expected - -56 # Datafusion - Expected - 9604 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* tab0\.col0 \+ tab0\.col1 AS col0" at position 0 and "Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 * + col0 + + col1 AS col0, - 56 AS col0 FROM tab0 +---- +-56 +-56 +-56 +786 +891 +9604 query I rowsort SELECT ALL 64 * + + col0 AS col1 FROM tab1 @@ -26966,8 +27266,15 @@ SELECT ALL - col1 * - col2 * - - col2 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 57 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* tab0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 * col1 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 +---- +1197 +4617 +57 +NULL +NULL +NULL query II rowsort label-4431 SELECT ALL - col1 - ( + 68 ) + - 5 / - col2 AS col2, 76 + - + 9 FROM tab1 @@ -26999,8 +27306,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) + + 79 AS col2, - 27 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 +---- +-27 +70 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT - 27 IS NULL @@ -27033,8 +27343,15 @@ SELECT DISTINCT - 40, - col1 * + col2 col0 FROM tab0 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col1, col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-4440 SELECT + CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0 @@ -27066,8 +27383,15 @@ SELECT DISTINCT + ( - + 23 ) * - ( col0 ) - + - col0 * - col0 * - col0 FROM tab2 # Datafusion - Expected - 3 # Datafusion - Expected - -98 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col0" at position 0 and "Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 98 AS col0, + 3 AS col0 FROM tab2 WHERE NOT - col1 IN ( - col1 / + + col2 + - 39 ) +---- +-98 +-98 +-98 +3 +3 +3 query I rowsort SELECT - col1 * 79 FROM tab1 @@ -27837,8 +28161,11 @@ SELECT - col0 FROM tab1 WHERE NOT col0 = col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 80 AS col2, 45 AS col2 FROM tab1 +---- +-80 +45 query I rowsort label-4579 SELECT DISTINCT MAX ( - 4 ) col1 FROM tab1 AS cor0 @@ -29330,8 +29657,15 @@ SELECT ALL col1 AS col2, 71 * + col0 FROM tab2 AS cor0 # Datafusion - Expected - -756 # Datafusion - Expected - 5 # Datafusion - Expected - -756 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(9\) \* Int64\(\-84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, + 9 * - 84 AS col2 FROM tab1 AS cor0 +---- +-756 +-756 +-756 +14 +47 +5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 @@ -29340,8 +29674,15 @@ SELECT + col1 AS col2, + 9 * - 84 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 46 # Datafusion - Expected - -84 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col1" at position 0 and "cor0\.col2 \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 84 col1, + col2 + col2 AS col1 FROM tab2 AS cor0 +---- +-84 +-84 +-84 +116 +46 +80 query II rowsort label-4829 SELECT DISTINCT + - ( - COUNT ( * ) ) AS col0, SUM ( ALL col0 ) * - ( - CAST ( NULL AS INTEGER ) ) / COUNT ( * ) FROM tab2 AS cor0 @@ -30146,8 +30487,15 @@ SELECT ALL col2 * - 3 col0 FROM tab2 cor0 WHERE NOT - ( - ( - CAST ( + 39 AS INT # Datafusion - Expected - -67 # Datafusion - Expected - -77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col0" at position 0 and "\(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, - col1 col0 FROM tab2 +---- +-51 +-51 +-67 +-67 +-77 +-77 query III rowsort SELECT * FROM tab0 WHERE NOT ( + + col1 * col0 * col0 ) IS NULL @@ -30186,8 +30534,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * - col1 + col2 IS NOT NULL # Datafusion - Expected - -94 # Datafusion - Expected - -58 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, - 94 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +-94 +-94 +-94 query IIIIII rowsort SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 32 IS NULL @@ -30380,8 +30735,10 @@ SELECT DISTINCT - 84 col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 34e85a6e76ecb84dd36d534a3d8371b6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + col0, col0 AS col0, + - col1 * + ( col1 ) + - 95 FROM tab2 cor0 +---- +9 values hashing to 6a94f351458a80a3ae809d17ddbc12fe query I rowsort label-5009 SELECT MAX ( + col2 ) AS col0 FROM tab1 AS cor0 WHERE ( + 48 ) NOT BETWEEN col0 AND 21 / - col1 * + col0 * - col0 @@ -30709,8 +31066,15 @@ SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + - ( + col1 ) * + co # Datafusion - Expected - -118 # Datafusion - Expected - -97 # Datafusion - Expected - -197 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col0\) \+ \(\- cor0\.col2\) \- cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col1, - col0 + - + col2 - + col1 AS col1 FROM tab0 AS cor0 +---- +-118 +-143 +-15 +-197 +-87 +-97 query III rowsort SELECT * FROM tab2 WHERE NOT - + 33 IS NULL @@ -30731,8 +31095,15 @@ SELECT DISTINCT col2 * - + ( + ( + - col1 ) ) FROM tab2 AS cor0 WHERE NOT col0 + # Datafusion - Expected - -59 # Datafusion - Expected - -90636 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* \(\- cor0\.col1\) \* Int64\(78\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 83 * - col1 * + + 78 col1, - col2 AS col1 FROM tab1 AS cor0 +---- +-304278 +-32370 +-59 +-68 +-90636 +-96 query I rowsort SELECT ALL + 46 * col1 FROM tab0 @@ -31038,8 +31409,15 @@ SELECT 42 + col1 + - col0 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 AS col1, + col1 FROM tab1 WHERE + col1 / + 50 * - + col2 + + col1 * + col0 - - + 88 IS NOT NULL +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT DISTINCT col2 * col1 + - 26 + + 83 FROM tab1 @@ -31203,8 +31581,10 @@ SELECT DISTINCT - SUM ( ALL col1 ) * + COUNT ( * ) AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 1fd8d3bc7c7bdd10dc02019a8f57bc27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 1 and "tab1\.col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 79 AS col2, col1, + col1 FROM tab1 +---- +9 values hashing to cbe6976f140f737c1c63e92db713fd41 query I rowsort SELECT DISTINCT - col0 * col1 * 84 + - 16 AS col2 FROM tab0 AS cor0 @@ -31323,8 +31703,15 @@ NULL # Datafusion - Expected - -10 # Datafusion - Expected - 5568 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) / \(\- \(\- tab2\.col2\)\) \- tab2\.col2 \+ \(\- tab2\.col0\) \* \(\- tab2\.col0\) AS col1" at position 0 and "Int64\(\-10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 77 ) / - - col2 - + col2 + - col0 * - col0 AS col1, - 10 AS col1 FROM tab2 +---- +-10 +-10 +-10 +2096 +4057 +5568 query I rowsort SELECT ALL - - col0 * + col2 * - ( + 90 ) + - col0 AS col0 FROM tab1 WHERE NULL IS NULL @@ -31681,8 +32068,15 @@ SELECT DISTINCT col2 * 30 * - col1 FROM tab2 # Datafusion - Expected - -83 # Datafusion - Expected - 91 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "Int64\(\-83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, - 83 AS col1 FROM tab1 +---- +-83 +-83 +-83 +51 +85 +91 query III rowsort SELECT * FROM tab2 WHERE NOT + col1 * ( col2 ) IS NULL @@ -31746,8 +32140,15 @@ SELECT 74 + + COUNT ( * ) AS col2 FROM tab0 # Datafusion - Expected - -87 # Datafusion - Expected - 7 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 7 AS col2, - col0 AS col2 FROM tab0 +---- +-15 +-87 +-97 +7 +7 +7 query I rowsort SELECT - col2 * - col2 * col2 AS col2 FROM tab0 AS cor0 @@ -31774,8 +32175,12 @@ SELECT - + col0 AS col2, - col0 FROM tab2 AS cor0 # Datafusion - Expected - 51 # Datafusion - Expected - -26 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \- Int64\(96\) AS col0" at position 1 and "\(\- max\(\(\- CAST\(cor0\.col1 AS Int32\)\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 51, + 70 - + ( + 96 ) AS col0, + - MAX ( - + CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab1 AS cor0 +---- +-26 +5 +51 query I rowsort label-5231 SELECT DISTINCT + 16 * - CAST ( - 49 AS INTEGER ) + - col0 AS col0 FROM tab0 cor0 @@ -31926,8 +32331,15 @@ SELECT ALL COUNT ( * ) * + 28 FROM tab0 cor0 # Datafusion - Expected - 91 # Datafusion - Expected - -96 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( col2 ) AS col2, col0 AS col2 FROM tab1 cor0 +---- +-59 +-68 +-96 +51 +85 +91 query III rowsort SELECT * FROM tab1 AS cor0 WHERE col1 * - ( + col1 ) + col1 < - - col0 * + - ( 49 ) + + + col1 * - + col2 @@ -31952,8 +32364,15 @@ SELECT DISTINCT + 35 + - col1 + 50 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 2 # Datafusion - Expected - -5 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, + 2 col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +2 +2 +2 query I rowsort label-5259 SELECT SUM ( + 0 ) col1 FROM tab2 cor0 @@ -32099,8 +32518,11 @@ SELECT COUNT ( - col0 ) col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "Int64\(\-24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 77 AS col0, - 24 AS col0 FROM tab2 AS cor0 +---- +-24 +77 query I rowsort label-5281 SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab0 WHERE NOT - CAST ( - col2 AS INTEGER ) + 95 BETWEEN - - col0 AND + col2 @@ -33325,8 +33747,15 @@ NULL # Datafusion - Expected - -40 # Datafusion - Expected - 26 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 26 AS col1, - col2 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +26 +26 +26 query I rowsort label-5492 SELECT COUNT ( * ) * SUM ( - col2 ) FROM tab1 AS cor0 @@ -33523,8 +33952,9 @@ SELECT - + COUNT ( * ) * + MAX ( + col0 ) FROM tab0 AS cor0 -291 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ Int64\(\-23\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + - 23 AS col0, - col1 AS col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL +---- query I rowsort label-5526 SELECT ALL - - COUNT ( ALL - 23 ) AS col1 FROM tab2 AS cor0 @@ -33826,8 +34256,15 @@ SELECT + + col1 + + 61 FROM tab1 AS cor0 # Datafusion - Expected - 37 # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "tab2\.col1 \- tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col0, + col1 - + col2 AS col0 FROM tab2 +---- +28 +37 +9 +NULL +NULL +NULL query I rowsort SELECT ALL ( - + 19 ) + - 55 AS col0 FROM tab1 @@ -35569,8 +36006,15 @@ SELECT - 23 - - + 75 - ( + ( + col1 ) ) FROM tab1 WHERE NOT NULL NOT BETWEEN NUL # Datafusion - Expected - -210 # Datafusion - Expected - -97 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "\(\- tab0\.col2\) \* tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, - col2 * + col1 col2 FROM tab0 +---- +-15 +-210 +-3807 +-87 +-97 +-99 query I rowsort label-5860 SELECT - col1 / + col0 + - col1 FROM tab1 AS cor0 WHERE NOT col1 / + col1 * 31 = + - col1 @@ -35660,8 +36104,11 @@ SELECT - col1 * col2 * - 7 AS col1, + ( + col2 ) / 82 * - 95 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -585 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(tab2\.col1\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( + col1 ) * + COUNT ( * ) col0, - 66 AS col0 FROM tab2 +---- +-585 +-66 query I rowsort label-5875 SELECT MAX ( 2 ) FROM tab0 @@ -35834,8 +36281,15 @@ SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 84 IS NULL # Datafusion - Expected - 6231 # Datafusion - Expected - -61 # Datafusion - Expected - 6231 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col2" at position 0 and "Int64\(67\) \* Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 61 AS col2, 67 * 93 AS col2 FROM tab2 +---- +-61 +-61 +-61 +6231 +6231 +6231 query I rowsort SELECT ALL - 70 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 @@ -36322,8 +36776,15 @@ SELECT ALL 38, + col1 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \+ Int64\(\-19\) / Int64\(68\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + - 19 / + 68 col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 +---- +-14 +-47 +-5 +NULL +NULL +NULL query II rowsort SELECT + col2 AS col0, + col0 + + 23 AS col2 FROM tab2 AS cor0 @@ -36827,8 +37288,15 @@ SELECT - 54 * + - COUNT ( * ) AS col0 FROM tab0 # Datafusion - Expected - 170 # Datafusion - Expected - 79 # Datafusion - Expected - 182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col1" at position 0 and "tab1\.col0 \+ tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 79 AS col1, col0 + + col0 AS col1 FROM tab1 +---- +102 +170 +182 +79 +79 +79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 @@ -36837,8 +37305,15 @@ SELECT ALL 79 AS col1, col0 + + col0 AS col1 FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, + col0 AS col1 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT DISTINCT + + 12 FROM tab2 AS cor0 WHERE col1 * + 8 / + - col0 + - col0 + + ( + 16 ) IS NOT NULL @@ -38913,8 +39388,15 @@ SELECT - 88 col1 FROM tab0, tab1 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - 96 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, col0 AS col1 FROM tab1 +---- +51 +59 +68 +85 +91 +96 query I rowsort label-6406 SELECT DISTINCT - + 57 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 @@ -39072,8 +39554,15 @@ SELECT - ( + + 30 ) AS col2 FROM tab1 # Datafusion - Expected - -21 # Datafusion - Expected - 8394 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* Int64\(98\) \+ cor0\.col1 \- \(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 84 * + 98 + col1 - + - col1 col1, - col1 AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +8234 +8274 +8394 query I rowsort SELECT + + ( - - 72 ) * + col1 FROM tab1 AS cor0 @@ -39419,8 +39908,15 @@ SELECT ALL + 96 + - col0 + 74 FROM tab0 # Datafusion - Expected - 40 # Datafusion - Expected - 75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, col2 col1 FROM tab2 +---- +23 +40 +46 +58 +64 +75 query I rowsort SELECT + col0 * - col1 + col1 FROM tab0 WHERE NOT NULL IS NOT NULL @@ -39539,8 +40035,15 @@ SELECT COUNT ( ALL ( col2 ) ) AS col1 FROM tab2 # Datafusion - Expected - -10 # Datafusion - Expected - 97 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, - col2 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +15 +87 +97 query I rowsort label-6507 SELECT col1 / + col0 - + + col1 FROM tab1 AS cor0 @@ -39744,8 +40247,11 @@ 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\(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\. +query II valuesort SELECT ALL + 86 * - ( + + COUNT ( * ) ) AS col1, 12 + + - 89 col1 FROM tab1 AS cor0 +---- +-258 +-77 query II rowsort SELECT DISTINCT + + col2 * col2 * - col0 AS col0, col1 FROM tab2 AS cor0 @@ -39822,8 +40328,15 @@ SELECT ALL MIN ( ALL - CAST ( + + 62 AS INTEGER ) ) FROM tab2 cor0 # Datafusion - Expected - 5128 # Datafusion - Expected - -91 # Datafusion - Expected - 5916 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "\(\- tab1\.col2\) \* Int64\(\-87\) \+ tab1\.col1 \+ \(\- tab1\.col1\) \- Int64\(27\) / tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col1, - col2 * - 87 + + col1 + + - col1 - + 27 / + col1 AS col1 FROM tab1 +---- +-51 +-85 +-91 +5128 +5916 +8351 query I rowsort SELECT ALL + ( 3 ) AS col1 FROM tab1 @@ -40141,8 +40654,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - + CAST ( NULL AS FLOAT8 ) AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +3 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 @@ -40561,8 +41077,15 @@ SELECT + - COUNT ( * ) col0 FROM tab2 WHERE col2 IS NULL # Datafusion - Expected - 89 # Datafusion - Expected - -81 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col2" at position 0 and "Int64\(2\) \+ tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - ( col1 ) ) AS col2, 2 + col0 col2 FROM tab0 +---- +-1 +-21 +-81 +17 +89 +99 query III rowsort SELECT * FROM tab1 WHERE + col2 + - 53 * + 60 = - col1 @@ -41128,8 +41651,12 @@ SELECT DISTINCT + MIN ( - col1 ), - ( - 7 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - -195 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 and "Int64\(\-98\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + + ( COUNT ( * ) ) * - - 7 AS col2, - 65 * + COUNT ( * ) AS col1, - 98 AS col1 FROM tab0 AS cor0 +---- +-195 +-98 +21 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT - col2 NOT IN ( + - 74 ) @@ -41219,8 +41746,11 @@ SELECT ALL + col1, + 76 col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col1" at position 0 and "min\(Int64\(\-80\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 AS col1, MIN ( ALL - 80 ) AS col1 FROM tab2 +---- +-80 +77 query I rowsort SELECT ALL col1 + - 40 AS col1 FROM tab2 AS cor0 @@ -41236,8 +41766,15 @@ SELECT ALL col1 + - 40 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - 73 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 73 AS col2, - col0 AS col2 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +73 +73 +73 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -41681,8 +42218,15 @@ NULL # Datafusion - Expected - 64 # Datafusion - Expected - -59 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 59 AS col1, + col0 AS col1 FROM tab2 +---- +-59 +-59 +-59 +46 +64 +75 query I rowsort SELECT DISTINCT + + 19 AS col2 FROM tab2 WHERE NOT + 66 * + col0 IS NULL @@ -42345,8 +42889,15 @@ NULL # Datafusion - Expected - -28 # Datafusion - Expected - 56 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col1" at position 0 and "Int64\(\-28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 56 AS col1, - 28 AS col1 FROM tab2 AS cor0 +---- +-28 +-28 +-28 +56 +56 +56 query I rowsort SELECT ALL col0 AS col0 FROM tab2 AS cor0 WHERE - col2 IS NULL @@ -42588,8 +43139,15 @@ SELECT - col2 + ( - 61 ) FROM tab1 # Datafusion - Expected - 11 # Datafusion - Expected - -91 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col2" at position 0 and "Int64\(66\) / tab1\.col2 \+ tab1\.col1 \+ tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, 66 / + + col2 + + col1 + col1 AS col2 FROM tab1 +---- +-51 +-85 +-91 +11 +28 +94 query I rowsort SELECT - 44 * - - col2 AS col0 FROM tab0 @@ -42983,8 +43541,15 @@ SELECT 42 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 0 # Datafusion - Expected - 6006 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \+ tab2\.col1 \* tab2\.col1 AS col2" at position 0 and "Int64\(42\) / Int64\(66\) \* \(\- Int64\(\-36\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 + col1 * + col1 AS col2, + 42 / 66 * - - 36 AS col2 FROM tab2 +---- +0 +0 +0 +2652 +4556 +6006 query I rowsort label-7076 SELECT DISTINCT - + 14 + - 79 + + - COUNT ( * ) * - 97 + - COUNT ( * ) * - ( + 76 ) * + + 86 AS col2 FROM tab1 AS cor0 @@ -43151,8 +43716,15 @@ SELECT ALL + col1 AS col0 FROM tab1 AS cor0 WHERE NOT 1 + 65 IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, col1 AS col0 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT DISTINCT - 46 * ( 43 ) + col0 + - col2 AS col2 FROM tab2 AS cor0 @@ -43714,8 +44286,15 @@ SELECT ( - - 14 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 75 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col2 \- tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, col2 - col2 AS col1 FROM tab2 +---- +0 +0 +0 +46 +64 +75 query I rowsort label-7200 SELECT - CAST ( NULL AS INTEGER ) / col1 FROM tab0 @@ -44057,8 +44636,11 @@ 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\(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\. +query RI valuesort SELECT AVG ( + + col2 ) * - - COUNT ( * ) / - 55 AS col0, 25 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL +---- +25 +NULL query I rowsort SELECT - - 35 col0 FROM tab2 AS cor0 @@ -44188,8 +44770,11 @@ SELECT 68 * col1 * + col2 + - - 0 AS col2, - ( col1 ) AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 156 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* CAST\(Int64\(52\) AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - + COUNT ( * ) ) * CAST ( 52 AS INTEGER ) AS col2, COUNT ( * ) col2 FROM tab1 +---- +156 +3 query I rowsort SELECT - col1 * - 36 AS col1 FROM tab1 @@ -44345,8 +44930,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 col1, + 52 + + COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +-3 +58 query I rowsort SELECT + - 18 * + + col1 FROM tab1 AS cor0 @@ -44461,8 +45049,9 @@ SELECT DISTINCT + ( col0 ) AS col2, col0 FROM tab1 AS cor0 91 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL +---- query I rowsort SELECT - col0 + + - 17 AS col1 FROM tab1 cor0 @@ -44637,8 +45226,15 @@ SELECT MAX ( 17 ) AS col0 FROM tab0 # Datafusion - Expected - 83 # Datafusion - Expected - 96 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- tab1\.col2\) AS Int32\)\) AS col2" at position 0 and "Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( + ( - col2 ) AS INTEGER ) AS col2, 83 col2 FROM tab1 +---- +59 +68 +83 +83 +83 +96 query I rowsort label-7343 SELECT DISTINCT COUNT ( ALL col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL @@ -44728,8 +45324,15 @@ SELECT ALL 56 - - - col0 AS col2, + 86 FROM tab0 # Datafusion - Expected - 67 # Datafusion - Expected - 92 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ tab2\.col0 AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 + col0 AS col2, col1 col2 FROM tab2 +---- +128 +150 +51 +67 +77 +92 query I rowsort SELECT DISTINCT + 6 - 28 AS col1 FROM tab2 @@ -45106,8 +45709,15 @@ SELECT DISTINCT col2 * - CAST ( - + 12 AS INTEGER ) + - ( col2 ) AS col1 FROM ta # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, ( + col0 ) AS col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT DISTINCT + ( + + col1 ) * col0 AS col2 FROM tab2 @@ -46510,8 +47120,15 @@ SELECT - col0, - col1 * - col1 AS col0 FROM tab0 # Datafusion - Expected - -12925 # Datafusion - Expected - 38 # Datafusion - Expected - -36190 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "tab1\.col1 \* Int64\(47\) \* CAST\(Int64\(\-55\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 38 col1, col1 * 47 * CAST ( - 55 AS INTEGER ) col1 FROM tab1 +---- +-121495 +-12925 +-36190 +38 +38 +38 query II rowsort SELECT + col2 AS col0, 90 FROM tab0 cor0 @@ -47310,8 +47927,15 @@ SELECT 82 / + COUNT ( * ) AS col0 FROM tab2 # Datafusion - Expected - -68 # Datafusion - Expected - -96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\)" at position 0 and "\(\- tab1\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - col2 ), - col2 FROM tab1 +---- +-59 +-59 +-68 +-68 +-96 +-96 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT + ( ( - 56 ) ) + + - col1 <> NULL @@ -47437,8 +48061,15 @@ SELECT ALL - col0 * - col1 AS col2, col2 * - 9 * + col2 FROM tab0 # Datafusion - Expected - -81 # Datafusion - Expected - -78 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \* \(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 78 * - - col1 AS col1, - col1 AS col1 FROM tab0 AS cor0 +---- +-1 +-1638 +-21 +-6318 +-78 +-81 query I rowsort SELECT ALL - + col1 * - 72 FROM tab1 AS cor0 @@ -48087,8 +48718,15 @@ SELECT DISTINCT 14 AS col0, - col1 FROM tab0 # Datafusion - Expected - -64 # Datafusion - Expected - 58 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "\(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, - col0 AS col0 FROM tab2 +---- +-46 +-64 +-75 +23 +40 +58 query II rowsort SELECT - 93 AS col2, col1 FROM tab2 @@ -48144,8 +48782,11 @@ SELECT DISTINCT + 38 * + CAST ( AVG ( + col2 ) AS INTEGER ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \* Int64\(23\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 4 * + + 23 AS col0, COUNT ( * ) col0 FROM tab1 +---- +-92 +3 query I rowsort SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE NULL <= NULL @@ -48380,8 +49021,15 @@ SELECT + 96 + + + col0 * + col1 + - col1, + CAST ( + col0 AS INTEGER ) + - 70 AS # Datafusion - Expected - -1893 # Datafusion - Expected - 185 # Datafusion - Expected - -183 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- Int64\(\-88\)\) AS col1" at position 0 and "Int64\(\-86\) \* \(\- \(\- cor0\.col1\)\) \- cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + - - 88 AS col1, - 86 * - - ( col1 ) - + col0 AS col1 FROM tab0 AS cor0 +---- +-183 +-1893 +-6981 +103 +175 +185 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 @@ -48390,8 +49038,15 @@ SELECT col0 + - - 88 AS col1, - 86 * - - ( col1 ) - + col0 AS col1 FROM tab0 AS # Datafusion - Expected - 22 # Datafusion - Expected - 75 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, + 22 AS col2 FROM tab2 cor0 WHERE col1 + + + col0 IS NOT NULL +---- +22 +22 +22 +46 +64 +75 query I rowsort SELECT ALL + + col2 AS col0 FROM tab0 AS cor0 WHERE col0 * ( + 46 ) <= + col0 @@ -48699,8 +49354,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) * - - ( COUNT ( * ) ) AS col1, COUNT ( * ) - - 73 AS col1 FROM tab1 +---- +76 +9 query III rowsort label-8004 SELECT DISTINCT * FROM tab1 WHERE ( NOT col2 * 57 + - col2 * - - ( + + CAST ( NULL AS INTEGER ) ) IS NOT NULL ) @@ -49376,8 +50034,15 @@ SELECT DISTINCT + CAST ( col1 AS INTEGER ) * + ( 97 ) * - - col1 * ( col2 ) AS c # Datafusion - Expected - 80 # Datafusion - Expected - 0 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) / cor0\.col1 / Int64\(\-47\) AS col1" at position 0 and "Int64\(31\) \+ Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 25 / col1 / - 47 AS col1, + 31 + + + 49 col1 FROM tab2 AS cor0 +---- +0 +0 +0 +80 +80 +80 query I rowsort SELECT ALL - + 10 + col1 AS col0 FROM tab1 AS cor0 @@ -49578,8 +50243,15 @@ SELECT DISTINCT - col2 * + col1 * - col0 * - - ( - - col2 ) FROM tab0 AS cor0 # Datafusion - Expected - 62 # Datafusion - Expected - -92 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(92\)\) 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 II valuesort SELECT - + 92 AS col1, col0 + - - col2 AS col1 FROM tab0 AS cor0 +---- +-92 +-92 +-92 +196 +62 +97 query II rowsort label-8152 SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, col2 * + ( + col2 ) AS col1 FROM tab0 @@ -49853,8 +50525,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) + + - 26 AS col1, COUNT ( DISTINCT - col1 ) / + 72 AS col1 FROM tab0 AS cor0 +---- +-23 +0 query I rowsort SELECT DISTINCT + col0 + + 30 + 80 AS col0 FROM tab0 AS cor0 @@ -50239,8 +50914,9 @@ SELECT + 93 / + col0 FROM tab2 2 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ tab2\.col1 AS col1" at position 0 and "\(\- tab2\.col1\) / Int64\(66\) \+ tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( col0 ) + + col1 AS col1, - col1 / 66 + + + col1 col1 FROM tab2 WHERE NULL IS NOT NULL +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -50783,8 +51459,11 @@ SELECT DISTINCT + 70 * col2 + - col0 + - 68 + - - col2 + - col0 * - 0 AS col0 FR # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - -900 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(\-1\)\)\) \+ Int64\(71\) AS col0" at position 0 and "Int64\(15\) \* sum\(\(\- Int64\(20\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( ALL - - 1 ) + + 71 AS col0, 15 * SUM ( ALL - ( 20 ) ) AS col0 FROM tab2 AS cor0 +---- +-900 +72 query I rowsort label-8354 SELECT ALL - 5 + col0 + - - col2 + + col0 + 1 * - CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0 @@ -50800,8 +51479,15 @@ SELECT ALL - 5 + col0 + - - col2 + + col0 + 1 * - CAST ( - col1 AS INTEGER ) FRO # Datafusion - Expected - -73 # Datafusion - Expected - 97 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(\-27\) \- \(\- tab0\.col2\) \+ \(\- \(\- tab0\.col1\)\) \- tab0\.col0 \+ tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col2, - 27 - - col2 + - - col1 - col0 + col2 AS col2 FROM tab0 +---- +-73 +133 +15 +75 +87 +97 query I rowsort SELECT ALL ( + 63 ) * col1 col0 FROM tab1 @@ -50927,8 +51613,12 @@ SELECT ALL - - col1, - col1 / - CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS # Datafusion - Expected - 9 # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "avg\(DISTINCT cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IRI valuesort SELECT DISTINCT 9 + COUNT ( * ) AS col2, AVG ( DISTINCT + + col2 ) col2, - MAX ( col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT 13 IS NOT NULL +---- +9 +NULL +NULL query IIIIII rowsort SELECT * FROM ( tab2 AS cor0 JOIN tab0 AS cor1 ON NOT NULL NOT BETWEEN NULL AND 19 ) @@ -50970,8 +51660,15 @@ SELECT ALL - - ( + - ( + + col2 ) ) / - + 32 + - - col0 - - col1 / - + col2 AS c # Datafusion - Expected - 33 # Datafusion - Expected - 0 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col1\) \+ \(\- Int64\(\-47\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 + - col0 AS col1, ( + - col1 ) + - - 47 AS col1 FROM tab1 AS cor0 +---- +0 +0 +0 +0 +33 +42 query I rowsort SELECT DISTINCT - - col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL @@ -51260,8 +51957,9 @@ SELECT - COUNT ( + + 40 ) AS col0 FROM tab2 AS cor0 -3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 \+ \(\- cor0\.col1\) \* cor0\.col1 \- \(\- Int64\(27\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 AS col1, col2 + - col1 * col1 - - + 27 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL +---- query I rowsort SELECT DISTINCT + + 53 col2 FROM tab0 AS cor0 @@ -51426,8 +52124,15 @@ SELECT - col2 + - 91 FROM tab1 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Expected - -4779 # Datafusion - Expected - 1 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / \(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "Int64\(59\) \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 / + - ( - col0 ) AS col1, + 59 * - col1 AS col1 FROM tab0 AS cor0 +---- +-1239 +-4779 +-59 +1 +1 +1 query I rowsort label-8457 SELECT ALL + SUM ( col0 ) AS col1 FROM tab2 @@ -51924,8 +52629,15 @@ SELECT + COUNT ( - 38 ) FROM tab2 # Datafusion - Expected - 15 # Datafusion - Expected - -58 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col1" at position 0 and "Int64\(92\) \+ \(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 col1, + 92 + ( + - col1 ) AS col1 FROM tab2 +---- +-23 +-40 +-58 +15 +25 +41 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IS NOT NULL OR ( NULL ) NOT IN ( 9 / col0 ) @@ -51943,8 +52655,15 @@ NULL # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 FROM tab2 cor0 +---- +51 +51 +67 +67 +77 +77 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 51 / col0 > NULL @@ -52555,8 +53274,15 @@ SELECT DISTINCT + col1 * + 76 FROM tab0 # Datafusion - Expected - 85 # Datafusion - Expected - 65 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 AS col1, col0 AS col1 FROM tab1 +---- +51 +65 +65 +65 +85 +91 query I rowsort SELECT - 23 * - 46 FROM tab1 @@ -54722,8 +55448,11 @@ SELECT col1 FROM tab2 WHERE NOT + 31 / col2 IN ( + col2 - col2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) AS col0 FROM tab2 +---- +3 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -55038,8 +55767,15 @@ SELECT DISTINCT + COUNT ( * ), 46 AS col1 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - -97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col0" at position 0 and "CAST\(\(\- \(\- tab0\.col1\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, CAST ( - - ( + col1 ) AS INTEGER ) AS col0 FROM tab0 +---- +-15 +-87 +-97 +1 +21 +81 query I rowsort label-9061 SELECT + MIN ( ALL - 76 ) AS col1 FROM tab2 @@ -57996,8 +58732,15 @@ NULL # Datafusion - Expected - 295885 # Datafusion - Expected - -448 # Datafusion - Expected - 470016 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* \(\- cor0\.col1\) AS col1" at position 0 and "\(\- \(\- cor0\.col0\)\) \* cor0\.col2 \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 32 * - col1 AS col1, - ( - col0 ) * + col2 * + col2 AS col1 FROM tab1 AS cor0 +---- +-1504 +-160 +-448 +295885 +420784 +470016 query I rowsort SELECT ALL - col1 * + + ( col2 ) AS col2 FROM tab2 AS cor0 @@ -60058,8 +60801,15 @@ SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab1 WHERE col1 - + 54 + 57 * - 58 # Datafusion - Expected - -67 # Datafusion - Expected - 77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "\(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + col1 ) AS col0, - col1 AS col0 FROM tab2 +---- +-51 +-67 +-77 +51 +67 +77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1508 @@ -60460,8 +61210,15 @@ SELECT SUM ( ALL col0 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ \(\- cor0\.col0\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - ( + col2 ) + - + col0 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 +---- +-196 +-62 +-97 +NULL +NULL +NULL query I rowsort label-9960 SELECT DISTINCT COUNT ( * ) + + 97 FROM tab0 cor0 diff --git a/data/sqlite/random/aggregates/slt_good_60.slt b/data/sqlite/random/aggregates/slt_good_60.slt index f6a9685..6c178ed 100644 --- a/data/sqlite/random/aggregates/slt_good_60.slt +++ b/data/sqlite/random/aggregates/slt_good_60.slt @@ -248,8 +248,10 @@ SELECT + + ( col2 ) - + col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 811ab9350a61f6711480bb170069120b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 1 and "Int64\(40\) / \(\- cor0\.col1\) \+ Int64\(44\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col0 * - col1 + + 99, col2 AS col1, + 40 / - col1 + 44 AS col1 FROM tab0 cor0 +---- +9 values hashing to 9be495bebc7bf1ae6fafd2d7850aaf9e query I rowsort SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL @@ -410,8 +412,15 @@ SELECT DISTINCT 86 + - col0 AS col1 FROM tab1 # Datafusion - Expected - 5015 # Datafusion - Expected - 91 # Datafusion - Expected - 6188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col0 \* tab1\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, col0 * + + col2 col2 FROM tab1 +---- +4896 +5015 +51 +6188 +85 +91 query I rowsort SELECT ALL + 89 col2 FROM tab2 @@ -700,8 +709,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - -95 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 95 AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +-95 +-95 +-95 +10 +47 +99 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 < - col2 @@ -831,8 +847,15 @@ SELECT + COUNT ( * ) + SUM ( DISTINCT - 18 ) * - COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - -97 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / \(\- cor0\.col0\) \+ \(\- Int64\(\-1\)\) \+ \(\- cor0\.col2\) \- \(\- \(\- cor0\.col0\)\) \+ Int64\(35\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 / - col0 + - - 1 + - col2 - - - col0 + + 35 AS col1, - col2 AS col1 FROM tab2 cor0 +---- +-23 +-33 +-40 +-58 +-68 +-97 query I rowsort SELECT DISTINCT col0 * + - 60 * - 28 AS col2 FROM tab0 AS cor0 @@ -860,8 +883,15 @@ SELECT ALL - + MAX ( - + col2 ) * + 65 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 23 # Datafusion - Expected - -369 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ Int64\(\-17\) \* Int64\(16\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 + - 17 * + + 16 AS col2, 23 AS col2 FROM tab0 AS cor0 +---- +-287 +-359 +-369 +23 +23 +23 query I rowsort label-134 SELECT + COUNT ( ALL CAST ( NULL AS FLOAT8 ) ) AS col0 FROM tab0 cor0 @@ -2124,8 +2154,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, MAX ( - - 6 ) + 30 AS col0 FROM tab2 AS cor0 +---- +-3 +36 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT 36 NOT BETWEEN NULL AND + - 94 + col1 @@ -2576,8 +2609,15 @@ SELECT - 11 col2 FROM tab2 WHERE NOT - 74 <> 80 OR NULL IS NULL # Datafusion - Expected - 16 # Datafusion - Expected - 97 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col2, 16 AS col2 FROM tab0 AS cor0 +---- +15 +16 +16 +16 +87 +97 query I rowsort SELECT + ( 94 ) col1 FROM tab2 AS cor0 @@ -3128,8 +3168,10 @@ SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL IS NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to bfc498f9dbd6e0e80d703bf7c3062af0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col1 / cor0\.col2 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col0 col1, - CAST ( NULL AS INTEGER ) AS col2, col1 / col2 AS col1 FROM tab2 cor0 +---- +9 values hashing to 0714a070aa973b8d23928f3f36a82ed4 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 83 IS NULL @@ -3476,8 +3518,15 @@ SELECT * FROM tab2 WHERE + + col0 + - col2 IS NULL # Datafusion - Expected - 16 # Datafusion - Expected - 32 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "tab1\.col2 \+ Int64\(39\) \+ \(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 AS col0, col2 + + 39 + - + col0 AS col0 FROM tab1 WHERE NULL IS NULL +---- +13 +16 +32 +32 +32 +84 query I rowsort SELECT + col1 / - col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL @@ -3695,8 +3744,11 @@ SELECT ALL - - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(8\)\)\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + ( SUM ( DISTINCT + 8 ) ) col2, + 7 AS col2 FROM tab1 AS cor0 +---- +-8 +7 query I rowsort SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT + col2 NOT IN ( - 35 ) @@ -4076,8 +4128,15 @@ SELECT col1 + + col0 + + col0, 16 + + 93 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 17405 # Datafusion - Expected - 49 # Datafusion - Expected - 217328 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col0" at position 0 and "cor0\.col2 \* \(\- cor0\.col2\) \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 49 col0, + col2 * - col2 * - + col1 AS col0 FROM tab1 cor0 +---- +129024 +17405 +217328 +49 +49 +49 query II rowsort SELECT ALL - 27 * - + col0 + + + col1 + col0 AS col1, col0 FROM tab1 AS cor0 @@ -5063,8 +5122,15 @@ NULL # Datafusion - Expected - 70 # Datafusion - Expected - 97 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 col2, 70 AS col2 FROM tab0 +---- +15 +70 +70 +70 +87 +97 query I rowsort SELECT 16 * + col0 FROM tab0 @@ -6105,8 +6171,15 @@ SELECT + SUM ( - 8 ) FROM tab1 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - -48714 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- cor0\.col0\) \* \(\- cor0\.col2\) \+ \(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * - + col0 * - col2 + + - col0 col2, + col1 AS col2 FROM tab2 AS cor0 +---- +-163904 +-326325 +-48714 +51 +67 +77 query I rowsort label-1004 SELECT - ( col2 ) * - col2 + - 41 / col2 FROM tab2 AS cor0 @@ -6262,8 +6335,15 @@ SELECT * FROM tab1 WHERE NOT - col1 <= NULL # Datafusion - Expected - 3315 # Datafusion - Expected - -13020744 # Datafusion - Expected - 3549 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \* Int64\(86\) \* \(\- Int64\(37\)\) \* Int64\(93\) AS col1" at position 0 and "\(\- tab1\.col0\) \* Int64\(\-39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 44 * + + 86 * - + 37 * + 93 AS col1, - col0 * - 39 AS col1 FROM tab1 +---- +-13020744 +-13020744 +-13020744 +1989 +3315 +3549 query I rowsort label-1029 SELECT ALL - col0 / + 66 FROM tab0 @@ -7139,8 +7219,15 @@ SELECT ALL - + 99, col0 * + + col0 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 28 # Datafusion - Expected - -96 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, 28 col2 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +28 +28 +28 query I rowsort SELECT DISTINCT + - col1 AS col1 FROM tab2 cor0 WHERE col0 IS NOT NULL @@ -7971,8 +8058,15 @@ SELECT * FROM tab1 AS cor0 WHERE ( + - col0 ) + + + 70 < + 83 * 41 # Datafusion - Expected - -91 # Datafusion - Expected - 96 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- cor0\.col1\) \+ cor0\.col1 AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 + - col1 + + + col1 AS col1, - col0 col1 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +59 +68 +96 query I rowsort label-1309 SELECT - 97 + - COUNT ( * ) AS col2 FROM tab1 AS cor0 @@ -8039,8 +8133,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) + COUNT ( * ) + + 52 * + ( - 0 ) AS col2, - COUNT ( * ) AS col2 FROM tab0 +---- +-3 +6 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT col2 = ( - + col0 ) @@ -8111,8 +8208,15 @@ SELECT ALL 31 * + - 33 AS col2 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 90 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "Int64\(\-56\) / CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 90 AS col0, - 56 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 +---- +90 +90 +90 +NULL +NULL +NULL query I rowsort label-1331 SELECT ( MAX ( DISTINCT + ( + col1 ) ) ) AS col1 FROM tab1 @@ -9077,8 +9181,15 @@ SELECT - + 79 * - col2 AS col2 FROM tab2 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 53 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 53 AS col0, col2 col0 FROM tab0 AS cor0 +---- +10 +47 +53 +53 +53 +99 query I rowsort label-1491 SELECT ALL col2 / + + col0 FROM tab0 AS cor0 @@ -9648,8 +9759,15 @@ SELECT - col2 - + 27 * - ( + + ( + col0 ) ) AS col2 FROM tab0 # Datafusion - Expected - -75 # Datafusion - Expected - -529 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* \(\- tab2\.col2\) AS col2" at position 0 and "\(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * - col2 AS col2, - col0 AS col2 FROM tab2 +---- +-1600 +-3364 +-46 +-529 +-64 +-75 query I rowsort label-1584 SELECT ALL - - SUM ( col0 ) FROM tab0 AS cor0 @@ -10067,8 +10185,9 @@ SELECT DISTINCT + SUM ( ALL - + col0 ) AS col0 FROM tab1 -227 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(53\) \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 col1, 53 * - col1 AS col1 FROM tab0 AS cor0 WHERE NULL > + 54 +---- query II rowsort label-1652 SELECT ALL - - CAST ( - ( col0 ) AS INTEGER ), col1 AS col1 FROM tab1 AS cor0 @@ -10267,8 +10386,10 @@ SELECT DISTINCT - col0 * - + col2 * + + col0 + 38 * col0 AS col2 FROM tab2 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to d981f20d8a3297e0c07b84c595e30dc1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 86 AS col1, - 30, 36 AS col1 FROM tab1 AS cor0 +---- +9 values hashing to aabe09b3bd9993ab7b25e8ba35bce458 query I rowsort label-1683 SELECT DISTINCT - SUM ( ALL + col2 ) AS col1 FROM tab1 AS cor0 @@ -10338,8 +10459,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 28 * COUNT ( * ) AS col2, 57 AS col2 FROM tab1 AS cor0 +---- +57 +84 query I rowsort SELECT DISTINCT + + 57 + + col0 FROM tab2 AS cor0 @@ -11261,8 +11385,15 @@ SELECT DISTINCT - col0 * - - 57 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 85 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 85 AS col2, ( - col2 ) AS col2 FROM tab0 cor0 +---- +-10 +-47 +-99 +85 +85 +85 query I rowsort label-1852 SELECT + SUM ( DISTINCT - 13 ) col1 FROM tab2 AS cor0 @@ -11290,8 +11421,11 @@ SELECT 33 col1 FROM tab0 AS cor0 WHERE NULL BETWEEN + col2 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(9\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + 9 AS col0, 69 AS col0 FROM tab1 AS cor0 +---- +69 +NULL query I rowsort SELECT DISTINCT - col2 FROM tab0 cor0 WHERE ( ( NULL <> NULL ) ) @@ -12341,8 +12475,15 @@ SELECT ALL + 1 + - SUM ( - 12 ) FROM tab2 AS cor0 # Datafusion - Expected - 59 # Datafusion - Expected - 5 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col0, + 59 AS col0 FROM tab1 AS cor0 +---- +14 +47 +5 +59 +59 +59 query I rowsort SELECT ALL + 92 + col0 AS col2 FROM tab0 cor0 @@ -12488,8 +12629,15 @@ SELECT ALL + MAX ( - - col2 ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -158949 # Datafusion - Expected - 97 # Datafusion - Expected - -9409 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col0\) \* cor0\.col1 \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, - ( col0 ) * col1 * + col0 AS col2 FROM tab0 AS cor0 WHERE - col2 * + 91 - 54 IS NOT NULL OR NOT NULL >= NULL +---- +-158949 +-18225 +-9409 +15 +87 +97 query I rowsort SELECT - - 14 AS col0 FROM tab0 AS cor0 @@ -12690,8 +12838,15 @@ SELECT * FROM tab0 WHERE NULL NOT IN ( col1 + + ( + col1 ) ) # Datafusion - Expected - 10 # Datafusion - Expected - 73 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \+ Int64\(15\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + 15 AS col1, 10 AS col1 FROM tab2 +---- +10 +10 +10 +38 +55 +73 query III rowsort SELECT DISTINCT * FROM tab0 cor0 WHERE - col1 * + col0 IS NULL @@ -14320,8 +14475,11 @@ SELECT ALL 0 + - - 68 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, - 63 AS col1 FROM tab2 cor0 +---- +-63 +3 query I rowsort label-2366 SELECT ALL + + 37 + - 77 / + + MAX ( DISTINCT + col1 ) FROM tab1 AS cor0 @@ -14737,8 +14895,11 @@ SELECT ALL + + col2 + 80 AS col0 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(55\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- min\(Int64\(\-19\)\)\) / Int64\(\-66\) \- \(\- Int64\(26\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +0 +NULL query I rowsort SELECT ALL col0 * 5 AS col2 FROM tab1 @@ -14768,8 +14929,9 @@ SELECT DISTINCT + - ( 76 ) FROM tab2 cor0 -76 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, 20 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IN ( + col2, - col0, - col0 * - col0 * - + 57, + + col2 ) +---- query I rowsort label-2436 SELECT ALL - 25 col2 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) = NULL @@ -16229,8 +16391,11 @@ SELECT 54 AS col1, COUNT ( DISTINCT + 3 ) FROM tab2 # 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 "\(\- cor0\.col2\) \+ cor0\.col2 AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 + + col2 AS col2, 85 AS col2 FROM tab0 AS cor0 +---- +0 +85 query I rowsort SELECT ALL - + 76 * - - col2 AS col2 FROM tab1 AS cor0 WHERE + 80 BETWEEN NULL AND col1 @@ -18448,8 +18613,15 @@ SELECT ALL col1 AS col1, + col0 / - 5 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -28 # Datafusion - Expected - 91 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "Int64\(\-28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, - 28 AS col1 FROM tab1 +---- +-28 +-28 +-28 +51 +85 +91 query I rowsort SELECT - - 72 AS col2 FROM tab2 WHERE NOT 85 IS NOT NULL @@ -18496,8 +18668,15 @@ SELECT ALL * FROM tab2 cor0 WHERE - col1 IS NOT NULL # Datafusion - Expected - 41 # Datafusion - Expected - -81 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col1, + 41 AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +41 +41 +41 query III rowsort SELECT col2, ( - 71 ) + + 71 AS col0, 7 AS col1 FROM tab1 cor0 @@ -18774,8 +18953,15 @@ SELECT - col0 + 23 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 6 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 6 AS col1, col0 AS col1 FROM tab1 AS cor0 +---- +51 +6 +6 +6 +85 +91 query I rowsort SELECT ALL ( - - 69 ) + + col2 AS col1 FROM tab0 AS cor0 @@ -19064,8 +19250,15 @@ SELECT ALL col0 - 10 AS col0 FROM tab0 # Datafusion - Expected - 335 # Datafusion - Expected - -40 # Datafusion - Expected - 938 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col2" at position 0 and "tab1\.col1 \* Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 40 AS col2, + col1 * + 67 AS col2 FROM tab1 +---- +-40 +-40 +-40 +3149 +335 +938 query II rowsort SELECT DISTINCT col1 AS col2, + col0 + + 39 FROM tab2 @@ -19916,8 +20109,9 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 - + - ( - + col2 ) + + + 55 + 9 values hashing to c4b42765dff94eaaa46040e537fb43b7 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ Int64\(70\) AS col2" at position 0 and "Int64\(75\) \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 + + + 70 AS col2, + 75 + col2 AS col2 FROM tab1 cor0 WHERE ( NULL ) > + - col0 +---- query I rowsort label-3286 SELECT ALL - COUNT ( ALL col2 ) + 79 FROM tab1 cor0 @@ -20050,8 +20244,15 @@ SELECT ALL 67 AS col2, + ( - MAX ( DISTINCT col0 ) ) * - 23 AS col0 FROM tab2 AS # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2, col2 FROM tab1 cor0 +---- +59 +59 +68 +68 +96 +96 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT + col1 / + 19 IS NULL @@ -20381,8 +20582,15 @@ NULL # Datafusion - Expected - 57 # Datafusion - Expected - -58 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, 57 AS col0 FROM tab2 +---- +-23 +-40 +-58 +57 +57 +57 query I rowsort SELECT ALL 23 FROM tab0 AS cor0 WHERE NOT ( - col1 IS NULL ) @@ -20744,8 +20952,15 @@ SELECT DISTINCT MIN ( - 21 ) AS col1 FROM tab0 # Datafusion - Expected - 90 # Datafusion - Expected - -217328 # Datafusion - Expected - 138 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* tab1\.col2 \* \(\- tab1\.col2\) AS col2" at position 0 and "tab1\.col1 \+ tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + col2 * - col2 AS col2, col1 + + + col0 AS col2 FROM tab1 +---- +-129024 +-17405 +-217328 +138 +65 +90 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT ( - 79 * 59 + + col2 ) NOT BETWEEN 23 * + col0 - + col2 AND NULL @@ -20815,8 +21030,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT 67 <> - + 8 # Datafusion - Expected - 89 # Datafusion - Expected - 206 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \- \(\- tab1\.col2\) \+ tab1\.col0 AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 - + - col2 + col0 AS col2, 89 AS col2 FROM tab1 +---- +149 +161 +206 +89 +89 +89 query I rowsort SELECT - + 44 - col2 + - + col2 AS col2 FROM tab2 AS cor0 @@ -20875,8 +21097,11 @@ SELECT DISTINCT + 68 * + 29 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 62 AS col1 FROM tab2 +---- +3 +62 query I rowsort SELECT col2 * - - 42 * - col2 FROM tab0 @@ -21146,8 +21371,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE ( - col2 IS NULL ) # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col1, col0 AS col1 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT ALL + col0 + - 90 FROM tab1 AS cor0 @@ -21399,8 +21631,11 @@ SELECT + + COUNT ( * ) FROM tab0 AS cor0 WHERE 11 * - 88 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 25 AS col0, ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0 +---- +-25 +3 query II rowsort SELECT - ( - col0 ), + col2 AS col2 FROM tab0 @@ -22507,8 +22742,15 @@ SELECT - 17 AS col1, col2 * + - col1 * col0 FROM tab0 # Datafusion - Expected - 0 # Datafusion - Expected - -5 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "tab1\.col1 / Int64\(\-75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col2, col1 / - 75 AS col2 FROM tab1 +---- +-14 +-47 +-5 +0 +0 +0 query I rowsort label-3708 SELECT DISTINCT + 75 * + - ( - COUNT ( * ) ) FROM tab0 @@ -23071,8 +23313,15 @@ SELECT ALL - 55 - ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 43 # Datafusion - Expected - 59 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT 59 AS col2, + 43 col2 FROM tab2 cor0 +---- +43 +43 +43 +59 +59 +59 query II rowsort label-3801 SELECT ALL - 15 + - - SUM ( DISTINCT - - col1 ), + 72 AS col0 FROM tab1 AS cor0 @@ -23197,8 +23446,15 @@ SELECT ALL - 73 AS col1 FROM tab0 # Datafusion - Expected - 63050 # Datafusion - Expected - -3 # Datafusion - Expected - 9750 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) AS col2" at position 0 and "Int64\(26\) \* Int64\(\-25\) \* \(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 3 AS col2, 26 * - 25 * - + col0 AS col2 FROM tab0 +---- +-3 +-3 +-3 +56550 +63050 +9750 query II rowsort SELECT + 48 AS col2, - ( + - col2 ) FROM tab1 @@ -23809,8 +24065,15 @@ SELECT ALL SUM ( - + ( + col1 ) ) FROM tab2 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 3225 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* Int64\(34\) \+ cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col2\) / cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 92 * + 34 + col0 col2, - col2 / col0 AS col2 FROM tab0 AS cor0 +---- +-1 +-3 +0 +3143 +3215 +3225 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT ( - - 41 IS NOT NULL ) @@ -23929,8 +24192,15 @@ SELECT ALL - col1 * + col0 + - 99 + - + 39 * - - 67 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 8349 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* cor0\.col0 \+ cor0\.col2 AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 91 * col0 + + col2 AS col1, + 67 AS col1 FROM tab1 AS cor0 +---- +4737 +67 +67 +67 +7794 +8349 query I rowsort SELECT DISTINCT - 76 - + col2 AS col2 FROM tab1 WHERE NOT NULL > + col2 - + col0 @@ -23989,8 +24259,15 @@ SELECT + - 61 * COUNT ( - col1 ) FROM tab2 AS cor0 # Datafusion - Expected - -77 # Datafusion - Expected - 4350 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col0 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * col0 AS col0, - col1 AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +1058 +2560 +4350 query I rowsort label-3955 SELECT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0 @@ -25502,8 +25779,15 @@ SELECT - + col0 * - col0 * col0 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - -91 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 AS col0, 77 AS col0 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +77 +77 +77 query I rowsort label-4207 SELECT + 32 * ( - col0 ) * 32 / + ( - 73 ) + + 96 FROM tab0 @@ -25668,8 +25952,15 @@ SELECT ALL + 65 FROM tab2 WHERE NULL < 36 + - col2 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + col2 ), + col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= - 79 @@ -25738,8 +26029,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE - col1 * 97 IS NULL # Datafusion - Expected - 51 # Datafusion - Expected - -757 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ Int64\(19\) \- cor0\.col2 \+ \(\- cor0\.col2\) \* Int64\(20\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 + 19 - + ( + + col2 ) + - col2 * 20 AS col0, col1 AS col0 FROM tab2 AS cor0 +---- +-1124 +-418 +-757 +51 +67 +77 query I rowsort SELECT ALL + + 26 - col1 FROM tab1 AS cor0 @@ -25755,8 +26053,15 @@ SELECT ALL + + 26 - col1 FROM tab1 AS cor0 # Datafusion - Expected - 72 # Datafusion - Expected - 38 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ \(\- tab0\.col2\) AS col2" at position 0 and "Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 + - col2 AS col2, 72 AS col2 FROM tab0 +---- +-51 +1 +38 +72 +72 +72 query I rowsort SELECT - 28 + + col2 col2 FROM tab0 @@ -26420,8 +26725,15 @@ SELECT ALL - - ( + COUNT ( * ) ) col2 FROM tab0 AS cor0 # Datafusion - Expected - 62 # Datafusion - Expected - 44 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "cor0\.col0 \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 44 AS col2, col0 + + col2 AS col2 FROM tab0 cor0 +---- +196 +44 +44 +44 +62 +97 query I rowsort SELECT ALL - col2 * - - col1 AS col0 FROM tab1 AS cor0 @@ -27023,8 +27335,11 @@ SELECT ALL CAST ( + 0 AS INTEGER ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) * + 36 AS col2 FROM tab0 +---- +108 +3 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN + col2 AND NULL @@ -27093,8 +27408,15 @@ SELECT + - MIN ( 47 ) FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col2 AS Int32\) AS col2" at position 0 and "CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT + CAST ( + col2 AS INTEGER ) AS col2, CAST ( NULL AS FLOAT8 ) AS col2 FROM tab2 AS cor0 +---- +23 +40 +58 +NULL +NULL +NULL query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 <> col0 @@ -27409,8 +27731,9 @@ SELECT ALL + COUNT ( * ) + + 63 FROM tab0 66 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(16\) AS col1" at position 0 and "cor0\.col2 / cor0\.col0 \* cor0\.col2 \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * 16 AS col1, + col2 / col0 * + col2 * - + col1 col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( - 79 ) +---- query II rowsort SELECT + col0, col1 * - - 83 AS col2 FROM tab2 AS cor0 @@ -29311,8 +29634,15 @@ SELECT + COUNT ( * ) * + 75 FROM tab0 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - -75 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 col2, col1 col2 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +51 +67 +77 query I rowsort label-4832 SELECT ALL + CAST ( - COUNT ( - col0 ) AS INTEGER ) AS col2 FROM tab2 WHERE NOT + col0 + col1 * 13 + 98 * + CAST ( + 63 AS INTEGER ) + + col1 + - 48 >= NULL @@ -29428,8 +29758,15 @@ SELECT + + SUM ( ALL + col2 ) AS col2, - 69 FROM tab0 AS cor0 # Datafusion - Expected - 58 # Datafusion - Expected - 97 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0 + + - ( + - col1 ) col0, col2 col0 FROM tab2 AS cor0 +---- +141 +142 +23 +40 +58 +97 query I rowsort SELECT DISTINCT col1 - - + 13 FROM tab1 AS cor0 @@ -29445,8 +29782,15 @@ SELECT DISTINCT col1 - - + 13 FROM tab1 AS cor0 # Datafusion - Expected - 99 # Datafusion - Expected - -917 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(58\) \- cor0\.col2 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * + 58 - + col2 AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +-5056 +-5725 +-917 +10 +47 +99 query I rowsort label-4854 SELECT ALL col2 / + + 71 - - + 58 + - ( - + col1 ) * + 97 FROM tab0 @@ -29493,8 +29837,15 @@ SELECT DISTINCT - + 79 + - + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NUL # Datafusion - Expected - 67 # Datafusion - Expected - 58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, + 67 AS col1 FROM tab2 +---- +23 +40 +58 +67 +67 +67 query II rowsort SELECT DISTINCT + 21, col0 AS col0 FROM tab0 @@ -30116,8 +30467,15 @@ SELECT + + ( 76 ) + CAST ( col1 AS INTEGER ) FROM tab1 cor0 WHERE col0 IS NOT NU # Datafusion - Expected - 160 # Datafusion - Expected - -58 # Datafusion - Expected - 232 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(4\) \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, 4 * + col2 AS col0 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +160 +232 +92 query I rowsort SELECT + + col0 FROM tab2 WHERE col0 IS NULL @@ -30451,8 +30809,15 @@ SELECT DISTINCT * FROM tab2 WHERE NULL >= + col2 # Datafusion - Expected - -47 # Datafusion - Expected - -96 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( col2 ) AS col0, - col1 AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +-59 +-68 +-96 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -31476,8 +31841,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(89\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 56 col1, COUNT ( * ) * - ( 89 ) AS col1 FROM tab0 AS cor0 +---- +-267 +56 query I rowsort SELECT - + 49 AS col1 FROM tab1 AS cor0 @@ -31584,8 +31952,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 78 AS col2, - 51 * COUNT ( DISTINCT + ( - - col1 ) ) - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + 65 = NULL +---- +-78 +0 query I rowsort SELECT col1 * - 55 AS col1 FROM tab0 AS cor0 @@ -32341,8 +32712,9 @@ SELECT ALL col0 + - + col0 AS col2 FROM tab1 AS cor0 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 FROM tab2 AS cor0 WHERE 27 BETWEEN NULL AND NULL +---- query I rowsort label-5324 SELECT + col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 @@ -32528,8 +32900,15 @@ SELECT ALL * FROM tab1 cor0 WHERE CAST ( - 11 AS INTEGER ) IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, + ( + col1 ) AS col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query II rowsort label-5353 SELECT - - MIN ( + 75 ) AS col1, - 34 FROM tab1 cor0 @@ -34111,8 +34490,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - ( - 60 ) AS col1, + COUNT ( * ) * - 64 AS col1 FROM tab2 AS cor0 +---- +-192 +60 query I rowsort SELECT ALL + col0 * + col1 * col1 * + 36 FROM tab2 AS cor0 @@ -34309,8 +34691,15 @@ SELECT ALL + col0 * - col2 + + col1 AS col2 FROM tab1 cor0 # Datafusion - Expected - -87 # Datafusion - Expected - 81 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 AS col0, - col0 AS col0 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +1 +21 +81 query I rowsort label-5654 SELECT - CAST ( + - 17 AS INTEGER ) AS col1 FROM tab2 @@ -34388,8 +34777,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE 29 IS NOT NULL # Datafusion - Expected - 28 # Datafusion - Expected - 4 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col0\) \+ Int64\(48\) AS col1" at position 0 and "cor0\.col1 \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 + - col0 + + 48 AS col1, col1 * + 2 AS col1 FROM tab1 AS cor0 +---- +-32 +10 +11 +28 +4 +94 query III rowsort SELECT * FROM tab1 AS cor0 WHERE ( - 35 ) NOT BETWEEN col2 AND ( NULL ) @@ -34536,8 +34932,15 @@ SELECT ALL - ( - + 87 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 61 # Datafusion - Expected - -75 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col1" at position 0 and "Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, 61 AS col1 FROM tab2 +---- +-46 +-64 +-75 +61 +61 +61 query I rowsort SELECT + ( - - 4 ) AS col0 FROM tab1 WHERE NOT ( NOT ( NULL ) >= NULL ) @@ -34668,8 +35071,15 @@ SELECT + col0, + 27 AS col1 FROM tab0 # Datafusion - Expected - 8526 # Datafusion - Expected - 81 # Datafusion - Expected - 1470 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "\(\- tab0\.col0\) \+ tab0\.col0 \* Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, - col0 + + col0 * 99 col2 FROM tab0 +---- +1 +1470 +21 +81 +8526 +9506 query I rowsort SELECT ALL col1 * - - col2 FROM tab0 @@ -34821,8 +35231,15 @@ SELECT 80 / + col2 FROM tab0 # Datafusion - Expected - 115 # Datafusion - Expected - 714 # Datafusion - Expected - 110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* \(\- \(\- tab1\.col0\)\) AS col2" at position 0 and "tab1\.col1 \- \(\- CAST\(tab1\.col2 AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 * - - col0 AS col2, + col1 - - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 +---- +110 +115 +425 +4277 +64 +714 query I rowsort label-5734 SELECT DISTINCT col0 / col0 * col1 AS col2 FROM tab2 @@ -34939,8 +35356,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT N # Datafusion - Expected - -75 # Datafusion - Expected - -78561 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* Int64\(43\) \* \(\- tab0\.col0\) AS col1" at position 0 and "Int64\(\-75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + 43 * - + col0 AS col1, - 75 AS col1 FROM tab0 +---- +-4171 +-52245 +-75 +-75 +-75 +-78561 query I rowsort SELECT + 94 FROM tab2 WHERE NOT - - col2 IS NULL @@ -35235,8 +35659,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, + COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +3 +3 query I rowsort SELECT DISTINCT - col1 * 72 + col1 + + col2 FROM tab2 AS cor0 @@ -36837,8 +37264,15 @@ SELECT - col0 * + + ( - col1 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 26 # Datafusion - Expected - 5 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 col2, 26 AS col2 FROM tab1 AS cor0 +---- +14 +26 +26 +26 +47 +5 query I rowsort SELECT DISTINCT - + col2 * - + ( 70 ) AS col2 FROM tab2 AS cor0 @@ -37744,8 +38178,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT + - col2 IS NOT NULL # Datafusion - Expected - -704 # Datafusion - Expected - 52 # Datafusion - Expected - -825 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col1" at position 0 and "tab2\.col0 \* Int64\(\-11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 52 col1, col0 * + ( - 11 ) AS col1 FROM tab2 +---- +-506 +-704 +-825 +52 +52 +52 query I rowsort label-6212 SELECT DISTINCT 58 + - + COUNT ( * ) AS col1 FROM tab2 cor0 @@ -37833,8 +38274,11 @@ SELECT ( + - col1 ) * col0 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab0 +---- +3 +3 query I rowsort SELECT 80 * + + col1 FROM tab1 @@ -38077,8 +38521,15 @@ SELECT ALL COUNT ( ALL - + 58 ) col1 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col2, col1 col2 FROM tab0 AS cor0 +---- +1 +21 +81 +NULL +NULL +NULL query I rowsort SELECT DISTINCT + - 66 AS col1 FROM tab2 cor0 WHERE - col0 IS NULL @@ -38423,8 +38874,15 @@ SELECT DISTINCT 81 + + + col1 FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2, ( col2 ) AS col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-6322 SELECT + + CAST ( col0 AS INTEGER ) FROM tab0 cor0 @@ -39377,8 +39835,11 @@ SELECT DISTINCT - col1 * + - col0 / col0 AS col1 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\(3\) AS col0" at position 0 and "count\(DISTINCT Int64\(16\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 3 AS col0, COUNT ( DISTINCT + 16 ) col0 FROM tab0 +---- +1 +3 query I rowsort SELECT DISTINCT col0 * + - 53 AS col1 FROM tab0 @@ -40193,8 +40654,15 @@ SELECT ALL + col2 FROM tab2 AS cor0 WHERE + 79 * col1 < + - 79 # Datafusion - Expected - -21 # Datafusion - Expected - 81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col0, - col1 AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +1 +21 +81 query I rowsort SELECT 78 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL @@ -40207,8 +40675,15 @@ SELECT 78 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL # Datafusion - Expected - 68 # Datafusion - Expected - 58 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(58\) AS Int32\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( + 58 AS INTEGER ) AS col0, + col2 AS col0 FROM tab1 +---- +58 +58 +58 +59 +68 +96 query I rowsort label-6626 SELECT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 @@ -40846,8 +41321,15 @@ SELECT - - col0 * + col2 + - + 36 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 210 # Datafusion - Expected - 5 # Datafusion - Expected - 1358 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ Int64\(\-92\) AS col1" at position 0 and "cor0\.col0 \* Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0 + - 92 AS col1, + col0 * + + 14 AS col1 FROM tab0 AS cor0 +---- +-5 +-77 +1218 +1358 +210 +5 query I rowsort SELECT ALL + col2 + + col1 + + + col0 + + col1 FROM tab2 AS cor0 @@ -41136,8 +41618,15 @@ SELECT + 44 / - 7 + + 35 AS col1 FROM tab1 cor0 # Datafusion - Expected - -26 # Datafusion - Expected - NULL # Datafusion - Expected - -546 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(\-82\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(26\) \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * - 82 * - CAST ( NULL AS INTEGER ) AS col2, 26 * + - col1 col2 FROM tab0 cor0 +---- +-2106 +-26 +-546 +NULL +NULL +NULL query I rowsort label-6770 SELECT + 49 / col0 * + col0 AS col0 FROM tab0 AS cor0 @@ -41165,8 +41654,15 @@ SELECT - MAX ( ALL + 89 ) AS col1 FROM tab0 # Datafusion - Expected - 380160 # Datafusion - Expected - 53 # Datafusion - Expected - 806400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "Int64\(64\) \* CAST\(\(\- tab0\.col1\) AS Int32\) \* Int64\(\-60\) \* tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 col2, 64 * + CAST ( - col1 AS INTEGER ) * - 60 * + col2 AS col2 FROM tab0 +---- +14618880 +380160 +53 +53 +53 +806400 query I rowsort label-6774 SELECT ALL - 14 / 52 FROM tab0, tab0 AS cor0 @@ -42274,8 +42770,11 @@ SELECT ALL - col1 + - + ( - 82 ) AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, + 45 AS col2 FROM tab1 AS cor0 +---- +3 +45 query I rowsort SELECT ALL - 12 * + 77 FROM tab2 AS cor0 @@ -43161,8 +43660,15 @@ SELECT + 44 / + + col0 FROM tab0 # Datafusion - Expected - -49 # Datafusion - Expected - 75 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col0" at position 0 and "Int64\(\-39\) \- tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 75 AS col0, - 39 - + col2 AS col0 FROM tab0 +---- +-138 +-49 +-86 +75 +75 +75 query I rowsort SELECT ALL - col2 + - col1 * - - col2 FROM tab0 AS cor0 @@ -43673,8 +44179,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 261 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(87\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 75 + - + COUNT ( * ) col0, + 87 * COUNT ( * ) col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL +---- +261 +72 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -43793,8 +44302,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 IN ( - - 52 ) AND NOT NULL IS N # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 col1, col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE + 71 <= 76 @@ -44163,8 +44679,15 @@ NULL # Datafusion - Expected - -72 # Datafusion - Expected - 64 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "Int64\(\-72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 64 AS col1, - 72 AS col1 FROM tab1 AS cor0 +---- +-72 +-72 +-72 +64 +64 +64 query I rowsort SELECT + - 86 * + + col0 + 62 FROM tab2 AS cor0 @@ -45373,8 +45896,15 @@ SELECT + col1 * + ( - col1 ) + - - ( + col1 ) * - col1 + + + 87 * + CAST ( NULL # Datafusion - Expected - -37 # Datafusion - Expected - -9 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \+ Int64\(10\) AS col1" at position 0 and "tab2\.col2 \+ \(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 19 + 10 AS col1, col2 + - + col1 AS col1 FROM tab2 +---- +-28 +-37 +-9 +-9 +-9 +-9 query II rowsort label-7468 SELECT DISTINCT - SUM ( ALL + + col0 ), - 67 AS col0 FROM tab2 @@ -45894,8 +46424,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 18 col1, - COUNT ( * ) AS col1 FROM tab0 +---- +-3 +18 query I rowsort label-7554 SELECT DISTINCT - - SUM ( - 60 ) col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) @@ -46262,8 +46795,15 @@ SELECT + - MIN ( DISTINCT 50 ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 cor1 # Datafusion - Expected - 47 # Datafusion - Expected - -64 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col2 + + - col1 AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +-110 +-115 +-64 +14 +47 +5 query I rowsort SELECT - - ( ( col1 ) ) + - + col1 AS col0 FROM tab2 AS cor0 @@ -46519,8 +47059,11 @@ SELECT 69 + + - 30 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 AS col1, + COUNT ( * ) AS col1 FROM tab1 +---- +25 +3 query I rowsort label-7656 SELECT - COUNT ( + 26 ) FROM tab1 AS cor0 @@ -46646,8 +47189,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + - 98 IS NOT NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 col0, col1 AS col0 FROM tab1 cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT + + col2 * - col0 + - + col0 * 75 FROM tab1 AS cor0 @@ -47933,8 +48483,15 @@ SELECT + 97 / - 58 col1, 81 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -16 # Datafusion - Expected - 37 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \+ cor0\.col0 AS col2" at position 0 and "Int64\(\-37\) \+ cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 60 + + col0 AS col2, - 37 + + col1 col2 FROM tab0 AS cor0 +---- +-16 +-36 +-45 +27 +37 +44 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col2 * + 48 * - + 44 + + col0 / col0 IS NULL ) @@ -48428,8 +48985,15 @@ SELECT DISTINCT + col1 AS col1, + 40 FROM tab1 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT DISTINCT + - col1 * + col0 + + col2 FROM tab1 AS cor0 @@ -49352,8 +49916,15 @@ SELECT ALL - ( + SUM ( DISTINCT col1 ) ) * + 51 AS col1 FROM tab2 # Datafusion - Expected - 67 # Datafusion - Expected - 7315 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \* Int64\(\-95\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 * - 95 AS col0, col1 AS col0 FROM tab2 +---- +4845 +51 +6365 +67 +7315 +77 query I rowsort SELECT DISTINCT + 25 / + 72 col0 FROM tab1 WHERE NOT ( NULL ) <= NULL @@ -50161,8 +50732,11 @@ SELECT DISTINCT - col0 - 68 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5720 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(65\) AS Int32\) \* Int64\(88\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( + + 65 AS INTEGER ) * + 88 AS col2, COUNT ( * ) AS col2 FROM tab1 +---- +3 +5720 query I rowsort SELECT DISTINCT - 57 + + col0 FROM tab0 @@ -50902,8 +51476,10 @@ SELECT + - MIN ( col0 ) + - MIN ( ALL - col0 ) AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to de1afc8058152963cbd7ec829460e130 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / Int64\(9\) / \(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT col2 / 9 / - col1 col1, col2 AS col1, - col1 * + + ( + - col0 ) FROM tab0 AS cor0 +---- +9 values hashing to b57b16b1d3974a2ad014ab729f67da65 query I rowsort label-8382 SELECT ALL + CAST ( NULL AS INTEGER ) * + - 93 col0 FROM tab2, tab0 cor0 @@ -51105,8 +51681,15 @@ SELECT ALL + MAX ( + - 27 ) col0 FROM tab1 # Datafusion - Expected - -98 # Datafusion - Expected - 48 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 / \(\- \(\- tab1\.col1\)\) \+ tab1\.col1 AS col0" at position 0 and "Int64\(\-98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 / - - col1 + col1 AS col0, - 98 AS col0 FROM tab1 +---- +-98 +-98 +-98 +16 +20 +48 query I rowsort label-8417 SELECT - 79 * - 1 + + COUNT ( * ) * - + 42 FROM tab0 @@ -51400,8 +51983,15 @@ NULL # Datafusion - Expected - -64 # Datafusion - Expected - 75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col1, - ( + col0 ) AS col1 FROM tab2 +---- +-46 +-64 +-75 +46 +64 +75 query III rowsort SELECT * FROM tab2 WHERE NOT NULL < + ( ( + col2 ) ) @@ -51613,8 +52203,15 @@ SELECT DISTINCT - 78 AS col1, + ( - - col2 ) FROM tab0 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - -18 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 18 AS col2, 85 AS col2 FROM tab1 AS cor0 +---- +-18 +-18 +-18 +85 +85 +85 query I rowsort SELECT 31 col0 FROM tab1 AS cor0 @@ -51867,8 +52464,15 @@ SELECT MIN ( DISTINCT + col1 ) + + SUM ( col2 ) * + 16 FROM tab1 # Datafusion - Expected - 77 # Datafusion - Expected - 58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col0, + col1 AS col0 FROM tab2 +---- +23 +40 +51 +58 +67 +77 query I rowsort SELECT DISTINCT + col2 * - - 71 FROM tab0 AS cor0 @@ -54333,8 +54937,11 @@ SELECT + 61 * + + col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(tab0\.col2\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( + col2 ) AS col0, COUNT ( * ) AS col0 FROM tab0 +---- +3 +3 query III rowsort SELECT ALL * FROM tab2 WHERE NOT NULL > + - col1 @@ -54497,8 +55104,15 @@ SELECT - col2 / ( - 30 ) AS col1 FROM tab1 # Datafusion - Expected - -81 # Datafusion - Expected - 99 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* \(\- \(\- tab0\.col2\)\) AS col2" at position 0 and "\(\- tab0\.col1\) \* Int64\(2\) \+ \(\- \(\- tab0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * - - col2 col2, - col1 * 2 + - - col1 AS col2 FROM tab0 +---- +-1 +-21 +-81 +210 +3807 +99 query I rowsort SELECT + + ( - col2 ) * 95 AS col1 FROM tab1 AS cor0 @@ -55100,8 +55714,9 @@ SELECT + + col2 FROM tab0 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) IS NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 AS col1 FROM tab2 AS cor0 WHERE NOT - 83 IS NOT NULL +---- query I rowsort label-9072 SELECT ALL MIN ( ALL - col0 ) FROM tab2 AS cor0 @@ -55249,8 +55864,11 @@ SELECT COUNT ( * ) * - 27 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 39 col1, COUNT ( * ) AS col1 FROM tab2 +---- +3 +39 query I rowsort label-9098 SELECT DISTINCT + + COUNT ( col0 ) AS col0 FROM tab2 AS cor0 @@ -55291,8 +55909,15 @@ SELECT col2 / - - col2 FROM tab2 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, + ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0 +---- +59 +68 +96 +NULL +NULL +NULL query I rowsort SELECT ALL + 66 FROM tab0 AS cor0 WHERE NOT + col2 * - col2 <= + 11 @@ -55429,8 +56054,15 @@ SELECT DISTINCT 37 + + - 37 FROM tab0 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - -34 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \- Int64\(99\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 - + 99 AS col1, - col0 AS col1 FROM tab0 AS cor0 +---- +-15 +-34 +-34 +-34 +-87 +-97 query I rowsort label-9127 SELECT col1 / - + col2 AS col0 FROM tab2 WHERE NOT ( + - 93 ) IS NULL @@ -56973,7 +57605,7 @@ SELECT DISTINCT - - 67 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 58138cfe2b62229f041bda1767bd5ba5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col1" at position 1 and "cor0\.col2 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Schema error: Schema contains qualified field name cor0\.col1 and unqualified field name col1 which would be ambiguous SELECT ALL + + col1 AS col1, 46 col1, + col2 AS col1 FROM tab2 AS cor0 query I rowsort label-9383 @@ -58097,8 +58729,10 @@ SELECT - + 82 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to ff64f3b4d1169090500057d367cc4331 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 1 and "\(\- Int64\(22\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - col2 AS col0, + col2 AS col1, - + 22 AS col1 FROM tab2 AS cor0 +---- +9 values hashing to 43f85d479457d9336b740258b7be8d4b # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 @@ -58126,8 +58760,11 @@ SELECT + SUM ( - col0 ), 22 AS col1 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col2, + ( - - COUNT ( * ) ) AS col2 FROM tab1 AS cor0 +---- +3 +3 query II rowsort SELECT + - 99, + col1 FROM tab2 AS cor0 @@ -59057,8 +59694,15 @@ SELECT + 71 * + col1 * - col0 * - 42 * 94 AS col0 FROM tab1 # Datafusion - Expected - 15 # Datafusion - Expected - 5 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \- Int64\(\-90\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 85 - - 90 AS col1, 15 AS col1 FROM tab1 +---- +15 +15 +15 +5 +5 +5 query I rowsort label-9728 SELECT - col0 / - 29 AS col1 FROM tab0 @@ -59299,8 +59943,15 @@ SELECT ALL + + 69 - - col0 * + col1 + + col0 * - - col1 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- Int64\(62\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 - + 62 AS col0, CAST ( NULL AS INTEGER ) * + - 65 AS col0 FROM tab2 AS cor0 +---- +-11 +15 +5 +NULL +NULL +NULL query I rowsort SELECT + col0 - - col1 + - + col2 + col2 FROM tab0 AS cor0 @@ -59742,8 +60393,15 @@ SELECT ( col1 ) col0, 10 * + col2 FROM tab0 # Datafusion - Expected - 91 # Datafusion - Expected - 66 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ Int64\(\-30\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 + + - 30 col2, col0 col2 FROM tab1 +---- +29 +38 +51 +66 +85 +91 query I rowsort SELECT - 17 * - - col2 + col0 FROM tab1 @@ -60538,8 +61196,15 @@ SELECT + 60 * - + ( - ( - col1 ) ) AS col0 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - -97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 col2, col0 AS col2 FROM tab0 +---- +-15 +-87 +-97 +15 +87 +97 query I rowsort SELECT ALL 20 FROM tab2 WHERE - col0 * + - 10 BETWEEN + col2 AND NULL diff --git a/data/sqlite/random/aggregates/slt_good_61.slt b/data/sqlite/random/aggregates/slt_good_61.slt index 6eec8b8..e82f97d 100644 --- a/data/sqlite/random/aggregates/slt_good_61.slt +++ b/data/sqlite/random/aggregates/slt_good_61.slt @@ -272,8 +272,15 @@ SELECT DISTINCT - 13 col1 FROM tab2 AS cor0 # Datafusion - Expected - 7395 # Datafusion - Expected - -44 # Datafusion - Expected - 8245 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \- Int64\(72\) AS col2" at position 0 and "cor0\.col0 \* Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 - 72 AS col2, col0 * 85 AS col2 FROM tab0 AS cor0 +---- +-44 +-44 +-44 +1275 +7395 +8245 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT NULL > + 59 @@ -457,8 +464,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, 78 AS col0 FROM tab0 AS cor0 +---- +-3 +78 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 91 IS NOT NULL @@ -884,8 +894,10 @@ SELECT DISTINCT col2 + 35 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to ee4ffd7a77f445a3e0f74301b3803b3e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \* cor0\.col1 \* cor0\.col1 AS col1" at position 0 and "cor0\.col2 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 18 * + col1 * + col1 AS col1, 99 AS col0, col2 AS col1 FROM tab2 cor0 +---- +9 values hashing to 787a8de3c762b302e969d06ba35b5ad1 query III rowsort label-139 SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN NULL AND + 57 * + CAST ( NULL AS INTEGER ) @@ -1572,8 +1584,15 @@ SELECT COUNT ( * ) * - - 54 FROM tab1 # Datafusion - Expected - -5625 # Datafusion - Expected - 77 # Datafusion - Expected - -4096 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "tab2\.col0 \* \(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, col0 * + - col0 AS col0 FROM tab2 +---- +-2116 +-4096 +-5625 +51 +67 +77 query III rowsort label-262 SELECT * FROM tab0 WHERE NOT - col1 + - col2 * + CAST ( - - 24 AS INTEGER ) = ( - col2 * - 77 + col0 + - col0 * - col1 ) @@ -2398,8 +2417,15 @@ SELECT DISTINCT + MIN ( DISTINCT - - col0 ) AS col2 FROM tab0 # Datafusion - Expected - 54 # Datafusion - Expected - -77 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col2, 54 AS col2 FROM tab2 +---- +-51 +-67 +-77 +54 +54 +54 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE ( + + col0 ) IS NOT NULL @@ -3047,8 +3073,15 @@ SELECT DISTINCT - col1 * - 65 AS col0 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - -43 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 43 AS col2, + col1 AS col2 FROM tab1 AS cor0 +---- +-43 +-43 +-43 +14 +47 +5 query I rowsort SELECT + 35 * - col0 FROM tab0 AS cor0 @@ -3530,8 +3563,11 @@ SELECT DISTINCT - ( col0 ) + - col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-52\)\) AS col2" at position 0 and "Int64\(46\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( - 52 ) AS col2, 46 + + + COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +-52 +49 query I rowsort SELECT DISTINCT 25 + - + col1 AS col1 FROM tab1 AS cor0 @@ -3612,8 +3648,15 @@ SELECT + + 7 - + + 39 AS col2 FROM tab1 AS cor0 WHERE NOT 50 IS NULL # Datafusion - Expected - 328 # Datafusion - Expected - -19 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) / \(\- cor0\.col1\) \+ Int64\(\-20\) AS col0" at position 0 and "Int64\(30\) \* cor0\.col1 \+ Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col1 / + - col1 + - 20 col0, 30 * + col1 + + - 92 AS col0 FROM tab1 AS cor0 +---- +-19 +-19 +-19 +1318 +328 +58 query I rowsort SELECT ALL - - 44 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL @@ -3931,8 +3974,11 @@ SELECT * FROM tab0 WHERE NOT - - col1 + - + col2 * - + col0 < - - ( col2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +-3 +3 query I rowsort label-633 SELECT ALL + 35 + + - COUNT ( * ) FROM tab1 AS cor0 @@ -4491,8 +4537,15 @@ SELECT DISTINCT - - 68 AS col2 FROM tab0 WHERE NULL IS NOT NULL # Datafusion - Expected - -139 # Datafusion - Expected - -58 # Datafusion - Expected - -157 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col0" at position 0 and "\(\- tab2\.col2\) \+ \(\- Int64\(99\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, - col2 + - + 99 col0 FROM tab2 +---- +-122 +-139 +-157 +-23 +-40 +-58 query II rowsort SELECT + 49, col1 * + col1 AS col1 FROM tab0 @@ -4998,8 +5051,15 @@ SELECT ALL + 66 col1 FROM tab2 AS cor0 # Datafusion - Expected - -3807 # Datafusion - Expected - -1 # Datafusion - Expected - -405 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / \(\- cor0\.col2\) AS col2" at position 0 and "Int64\(\-81\) \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 / + - ( col2 ) col2, - 81 * + col1 col2 FROM tab1 AS cor0 +---- +-1 +-1 +-1 +-1134 +-3807 +-405 query I rowsort label-812 SELECT - + SUM ( ALL + 28 ) FROM tab1 AS cor0 @@ -5408,8 +5468,11 @@ SELECT * FROM tab2 WHERE NOT - col1 + + 40 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "max\(Int64\(\-12\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, + MAX ( - 12 ) AS col2 FROM tab1 +---- +-12 +3 query I rowsort label-882 SELECT ALL - - COUNT ( + col0 ) AS col2 FROM tab0 AS cor0 @@ -5552,8 +5615,15 @@ SELECT ALL + col1 - - col1 + 66 * col1 * - col1 col0 FROM tab2 AS cor0 # Datafusion - Expected - 110 # Datafusion - Expected - -206 # Datafusion - Expected - 115 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \- cor0\.col1 \+ \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col2 \+ cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 - + col1 + - col2 AS col2, col2 + + + col1 AS col2 FROM tab1 AS cor0 +---- +-149 +-161 +-206 +110 +115 +64 query I rowsort SELECT col1 - - 83 AS col0 FROM tab2 AS cor0 @@ -6044,8 +6114,15 @@ SELECT ALL col1 / + ( + 95 ) + col2 * - 40 * - - col0 * + col0 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, ( + col1 ) FROM tab1 +---- +14 +14 +47 +47 +5 +5 query II rowsort SELECT col1 AS col0, + 5 FROM tab1 @@ -6138,8 +6215,15 @@ SELECT ALL ( 11 ) * - col0 + + 77 / - 78 FROM tab1 # Datafusion - Expected - 3080 # Datafusion - Expected - 58 # Datafusion - Expected - 3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "tab2\.col2 \* tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col0, col2 * col1 AS col0 FROM tab2 +---- +1173 +23 +3080 +3886 +40 +58 query I rowsort SELECT ALL 9 * - 79 * + col0 * + - 30 AS col1 FROM tab0 @@ -7243,8 +7327,15 @@ SELECT ALL ( - - col0 ), col1 AS col1 FROM tab1 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( col2 ), ( + col2 ) FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT - 72 * - 28 * + + col0 FROM tab1 @@ -8048,8 +8139,15 @@ SELECT - + col2 col1, 73 FROM tab0 AS cor0 # Datafusion - Expected - -149 # Datafusion - Expected - 39 # Datafusion - Expected - -160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col0" at position 0 and "\(\- cor0\.col0\) \+ Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 AS col0, - col0 + + - 85 AS col0 FROM tab2 AS cor0 +---- +-131 +-149 +-160 +39 +39 +39 query I rowsort SELECT DISTINCT + - 58 AS col2 FROM tab2 AS cor0 @@ -8063,8 +8161,15 @@ SELECT DISTINCT + - 58 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 81 # Datafusion - Expected - 7 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-79\) AS Int32\) / \(\- tab0\.col2\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - 79 AS INTEGER ) / - col2 AS col0, + col1 AS col0 FROM tab0 +---- +0 +1 +1 +21 +7 +81 query I rowsort SELECT DISTINCT - col1 * 11 col1 FROM tab1 @@ -8385,8 +8490,15 @@ SELECT DISTINCT - col2 - + + 55 * col1 col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 80 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) \+ \(\- \(\- tab0\.col1\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 1 ) + - - col1 AS col2, - CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab0 +---- +0 +20 +80 +NULL +NULL +NULL query III rowsort SELECT ALL * FROM tab0 WHERE col1 + 35 IS NULL @@ -8453,8 +8565,11 @@ SELECT col1 + - 63 - + 79 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL +---- +0 +0 query I rowsort label-1377 SELECT DISTINCT + COUNT ( * ) * COUNT ( DISTINCT - col0 ) + - - MAX ( col1 ) * - ( + + COUNT ( * ) ) FROM tab1 @@ -8533,8 +8648,11 @@ SELECT ALL 36 * - - 78 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(CAST\(Int64\(90\) AS Int32\)\)\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) + - COUNT ( + CAST ( 90 AS INTEGER ) ) AS col0, + 23 AS col0 FROM tab2 AS cor0 +---- +0 +23 query I rowsort SELECT ALL + 31 + - col1 AS col2 FROM tab1 AS cor0 @@ -9317,8 +9435,15 @@ SELECT ALL + col1 col2 FROM tab0 AS cor0 WHERE - ( + col1 ) >= NULL # Datafusion - Expected - -10 # Datafusion - Expected - -81 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col1" at position 0 and "\(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - col1 ) col1, - col2 AS col1 FROM tab0 +---- +-1 +-10 +-21 +-47 +-81 +-99 query III rowsort SELECT * FROM tab2 WHERE NOT ( - col1 * + - col0 + - - 64 + - + col2 / + - col0 * + 35 ) IS NOT NULL @@ -10228,8 +10353,15 @@ SELECT DISTINCT + - ( + - ( 44 ) ) * - 14 * + 99 * COUNT ( * ) FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col1 \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 * + col1 + + + CAST ( NULL AS INTEGER ) col1, + col2 AS col1 FROM tab0 AS cor0 +---- +10 +47 +99 +NULL +NULL +NULL query I rowsort SELECT DISTINCT col1 - - 89 FROM tab2 AS cor0 @@ -10518,8 +10650,15 @@ SELECT DISTINCT + col1 - - col0 / col1 + - - col0 AS col1, + col2 FROM tab1 AS c # Datafusion - Expected - 85 # Datafusion - Expected - 8281 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \* \(\- tab1\.col0\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * - col0 AS col2, col0 col2 FROM tab1 +---- +2601 +51 +7225 +8281 +85 +91 query II rowsort label-1714 SELECT DISTINCT + ( - + COUNT ( * ) ), + ( + 55 ) AS col0 FROM tab2 AS cor0 @@ -10732,8 +10871,15 @@ SELECT DISTINCT ( + + 86 ) FROM tab1 # Datafusion - Expected - -64 # Datafusion - Expected - -75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\)" at position 0 and "\(\- tab2\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0, ( + - col0 ) FROM tab2 +---- +-46 +-46 +-64 +-64 +-75 +-75 query I rowsort SELECT ALL + 90 FROM tab0 WHERE - + ( col2 ) * - col2 + - col0 + ( col0 ) IN ( 38 ) @@ -11743,8 +11889,9 @@ SELECT DISTINCT col1, CAST ( NULL AS INTEGER ) * 30 AS col0 FROM tab1 AS cor0 WH ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, col2 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 - - col2 IS NOT NULL +---- query I rowsort SELECT DISTINCT + 55 col0 FROM tab0 cor0 @@ -11877,8 +12024,15 @@ SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - col2 * 5 + + - col2 / + col2 ) # Datafusion - Expected - 67 # Datafusion - Expected - -69 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 + - col2 AS col2, col1 AS col2 FROM tab2 AS cor0 +---- +-104 +-133 +-69 +51 +67 +77 query I rowsort SELECT ALL + + 96 - + col1 FROM tab1 AS cor0 @@ -11894,8 +12048,15 @@ SELECT ALL + + 96 - + col1 FROM tab1 AS cor0 # Datafusion - Expected - 2613 # Datafusion - Expected - -77 # Datafusion - Expected - 3003 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col0" at position 0 and "tab2\.col1 \* Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, col1 * + + 39 AS col0 FROM tab2 +---- +-51 +-67 +-77 +1989 +2613 +3003 query I rowsort label-1939 SELECT + MAX ( 13 ) AS col2 FROM tab1 @@ -13976,8 +14137,15 @@ SELECT - 33 col2 FROM tab1 cor0 # Datafusion - Expected - 9 # Datafusion - Expected - 97 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "\(\- tab0\.col2\) \+ Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, - col2 + + + 19 AS col2 FROM tab0 +---- +-28 +-80 +15 +87 +9 +97 query II rowsort SELECT ALL 69, - col2 AS col0 FROM tab0 @@ -14041,8 +14209,15 @@ SELECT DISTINCT col0 * col2 FROM tab0 AS cor0 WHERE - col1 IS NULL # Datafusion - Expected - 91 # Datafusion - Expected - -96 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( col2 ) AS col1, col0 AS col1 FROM tab1 +---- +-59 +-68 +-96 +51 +85 +91 query I rowsort SELECT ALL col2 * - 37 AS col2 FROM tab2 @@ -14702,8 +14877,15 @@ SELECT * FROM tab2 WHERE NOT 27 IS NULL # Datafusion - Expected - -64 # Datafusion - Expected - 5220 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* tab2\.col2 AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 90 * col2 AS col1, - col0 AS col1 FROM tab2 +---- +-46 +-64 +-75 +2070 +3600 +5220 query I rowsort SELECT ALL + col0 + + + col0 + + col0 FROM tab0 @@ -17323,8 +17505,15 @@ SELECT DISTINCT 20 * - col0 AS col1 FROM tab2 # Datafusion - Expected - 5 # Datafusion - Expected - 62 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col0" at position 0 and "\(\- tab0\.col0\) \+ Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 62 AS col0, - col0 + 92 AS col0 FROM tab0 +---- +-5 +5 +62 +62 +62 +77 query I rowsort label-2837 SELECT ALL + 44 / - col1 col2 FROM tab1 @@ -18000,8 +18189,15 @@ SELECT * FROM tab1 WHERE col1 BETWEEN + col0 + - + 65 * + col1 AND - col0 * + ( # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col2, + col2 AS col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-2946 SELECT col0 * ( col1 ) / - col0 + + col0 * col1 AS col0 FROM tab0 @@ -18937,8 +19133,10 @@ SELECT 23 * - col2 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to eda68eb5e8b5dd60990e0122f6bcadfb -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 1 and "tab0\.col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 20, col2, col2 AS col2 FROM tab0 +---- +9 values hashing to 01dcc066a24f6d2a9a1d7a233a7f9b06 query III rowsort SELECT * FROM tab1 WHERE ( - 44 + - col2 IS NULL ) @@ -19177,8 +19375,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 37 > NULL # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col2, col2 FROM tab1 cor0 +---- +59 +59 +68 +68 +96 +96 query III rowsort SELECT - col1 AS col0, col2, - col2 FROM tab1 @@ -19366,8 +19571,11 @@ SELECT + col1 * - CAST ( col0 AS INTEGER ) FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 195 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT tab2\.col1\) AS col2" at position 0 and "\(\- sum\(\(\- tab2\.col1\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( DISTINCT + + col1 ) AS col2, - SUM ( - col1 ) AS col2 FROM tab2 +---- +195 +51 query I rowsort label-3179 SELECT DISTINCT - MAX ( ALL - 54 ) FROM tab2 @@ -19937,8 +20145,15 @@ SELECT ALL - - 15 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 84 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 AS col0, + col2 AS col0 FROM tab0 AS cor0 +---- +10 +47 +84 +84 +84 +99 query I rowsort SELECT DISTINCT + ( col2 ) col1 FROM tab2 cor0 @@ -21803,8 +22018,15 @@ SELECT + + MIN ( ALL col2 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -3807 # Datafusion - Expected - 87 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-87\)\) AS col2" at position 0 and "cor0\.col2 \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 87 col2, col2 * - col1 AS col2 FROM tab0 AS cor0 +---- +-210 +-3807 +-99 +87 +87 +87 query I rowsort label-3576 SELECT + MAX ( DISTINCT - 19 ) FROM tab0 @@ -22210,8 +22432,15 @@ SELECT ALL col2 FROM tab1 WHERE NOT ( + CAST ( - col0 AS FLOAT8 ) ) NOT BETWEEN # Datafusion - Expected - 47 # Datafusion - Expected - 96 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, + col1 AS col0 FROM tab1 +---- +14 +47 +5 +59 +68 +96 query I rowsort SELECT ALL 8 * 5 * - col0 AS col0 FROM tab0 @@ -23666,8 +23895,15 @@ SELECT col2 - + 69 FROM tab1 AS cor0 # Datafusion - Expected - -59 # Datafusion - Expected - 82 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 + + col2 AS col1, - col2 AS col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +21 +54 +82 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 + + col1 BETWEEN NULL AND - 37 @@ -24757,8 +24993,15 @@ SELECT ALL ( + 20 ) AS col0 FROM tab1 cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col2, - col1 AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +14 +47 +5 query I rowsort label-4065 SELECT DISTINCT 7 * 46 * - 19 * COUNT ( * ) FROM tab0 AS cor0 @@ -24982,8 +25225,15 @@ SELECT DISTINCT - MAX ( ALL + + 97 ) + COUNT ( * ) AS col2 FROM tab0 # Datafusion - Expected - 30 # Datafusion - Expected - 97 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, + 30 AS col1 FROM tab0 +---- +15 +30 +30 +30 +87 +97 query III rowsort SELECT * FROM tab2 AS cor0 WHERE ( + 77 + - col2 ) IS NOT NULL @@ -25129,8 +25379,15 @@ SELECT ALL + + col0 / - + col2 + col1 - + col2 FROM tab0 cor0 # Datafusion - Expected - 70 # Datafusion - Expected - 99 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col2 AS col1" at position 0 and "Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * col2 AS col1, 70 AS col1 FROM tab0 AS cor0 +---- +210 +3807 +70 +70 +70 +99 query I rowsort SELECT DISTINCT + col1 * - + col2 AS col2 FROM tab2 AS cor0 @@ -25510,8 +25767,9 @@ SELECT DISTINCT + COUNT ( * ) * - 32 + + ( - - 76 ) AS col2 FROM tab1 AS cor0 -20 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, + col1 FROM tab2 AS cor0 WHERE NOT - 70 <> + col0 +---- query I rowsort label-4188 SELECT COUNT ( * ) + + 72 * 83 FROM tab2 cor0 @@ -25854,8 +26112,15 @@ SELECT * FROM tab2 AS cor0 WHERE 12 * col2 IS NOT NULL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 col1, col1 AS col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query II rowsort SELECT DISTINCT - + col0, + col2 AS col2 FROM tab2 AS cor0 @@ -25955,8 +26220,15 @@ SELECT ALL + ( + 28 ) / + 63 * + SUM ( + col0 ) FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - -4599 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- Int64\(\-78\)\) \+ \(\- cor0\.col0\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 * - - 78 + - col0 AS col0, + CAST ( NULL AS INTEGER ) * + + col2 AS col0 FROM tab2 AS cor0 +---- +-1840 +-3184 +-4599 +NULL +NULL +NULL query I rowsort label-4259 SELECT - - ( MAX ( ALL + col0 ) ) AS col0 FROM tab0 AS cor0 @@ -27210,8 +27482,15 @@ SELECT - SUM ( + - 74 ) FROM tab0 AS cor0 # Datafusion - Expected - 32 # Datafusion - Expected - 4950 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \* cor0\.col0 AS col2" at position 0 and "Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 66 * col0 AS col2, 32 AS col2 FROM tab2 AS cor0 +---- +3036 +32 +32 +32 +4224 +4950 query I rowsort label-4473 SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) * 51 * + COUNT ( 3 ) AS col1 FROM tab1 @@ -27310,8 +27589,15 @@ SELECT - 70 * + + 83 AS col1 FROM tab1 cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-4489 SELECT DISTINCT - + SUM ( DISTINCT - + col0 ) AS col0 FROM tab2 AS cor0 @@ -27567,8 +27853,15 @@ SELECT ALL - col1, 10 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, + col1 AS col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT ALL 29 - + + ( - - col1 ) + + 19 * + col2 FROM tab0 @@ -28572,8 +28865,11 @@ SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 4 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) * COUNT ( * ) AS col0, - COUNT ( * ) AS col0 FROM tab1 +---- +-3 +9 query I rowsort label-4700 SELECT DISTINCT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col1 FROM tab2 @@ -29172,8 +29468,15 @@ SELECT DISTINCT COUNT ( + - col0 ) FROM tab1 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) \* tab0\.col2 AS col1" at position 0 and "tab0\.col1 \+ tab0\.col0 \+ CAST\(NULL AS Float64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL - col1 * col2 AS col1, col1 + + col0 + + CAST ( NULL AS FLOAT8 ) AS col1 FROM tab0 +---- +-210 +-3807 +-99 +NULL +NULL +NULL query I rowsort label-4797 SELECT ALL COUNT ( * ) * - + MAX ( ALL 36 ) * - + 81 col2 FROM tab0 @@ -30063,8 +30366,15 @@ SELECT ( - 14 ) * - - 58 col1 FROM tab0 # Datafusion - Expected - 78 # Datafusion - Expected - -182 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \- tab1\.col0 AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 - + col0 AS col1, 78 AS col1 FROM tab1 WHERE NULL IS NULL +---- +-102 +-170 +-182 +78 +78 +78 query III rowsort SELECT ALL * FROM tab0 WHERE NOT ( 68 = + col2 + 62 ) @@ -30580,8 +30890,15 @@ SELECT 58 AS col1, + 86 * + ( + COUNT ( * ) ) FROM tab0 AS cor0 # Datafusion - Expected - -870 # Datafusion - Expected - 6 # Datafusion - Expected - -705 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \- cor0\.col0 \- Int64\(\-68\) AS col2" at position 0 and "cor0\.col0 \* CAST\(\(\- cor0\.col2\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 - col0 - - 68 AS col2, + col0 * + CAST ( - col2 AS INTEGER ) col2 FROM tab0 AS cor0 +---- +-128 +-29 +-705 +-870 +-9603 +6 query I rowsort label-5033 SELECT DISTINCT - COUNT ( * ) / + - 57 FROM tab2 @@ -31033,8 +31350,15 @@ SELECT + MAX ( ALL + col0 ) FROM tab0 AS cor0 # Datafusion - Expected - -3080 # Datafusion - Expected - -64 # Datafusion - Expected - -3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col2" at position 0 and "tab2\.col2 \* \(\- CAST\(tab2\.col1 AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 64 ) AS col2, + col2 * - CAST ( + + col1 AS INTEGER ) col2 FROM tab2 +---- +-1173 +-3080 +-3886 +-64 +-64 +-64 query II rowsort SELECT - 80 * - + 55 AS col2, - col0 FROM tab2 @@ -31126,8 +31450,15 @@ SELECT ALL ( - 40 ) FROM tab0 AS cor0 # Datafusion - Expected - 3080 # Datafusion - Expected - 58 # Datafusion - Expected - 3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col1 \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, col1 * + col2 AS col0 FROM tab2 AS cor0 +---- +1173 +23 +3080 +3886 +40 +58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 @@ -31136,8 +31467,15 @@ SELECT + col2 AS col0, col1 * + col2 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 5 # Datafusion - Expected - 91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col2, + col1 AS col2 FROM tab1 AS cor0 +---- +14 +47 +5 +51 +85 +91 query I rowsort label-5121 SELECT - 84 + + - MAX ( DISTINCT 22 ) FROM tab2 @@ -31151,8 +31489,15 @@ SELECT - 84 + + - MAX ( DISTINCT 22 ) FROM tab2 # Datafusion - Expected - 196 # Datafusion - Expected - -52 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \+ \(\- Int64\(4\)\) \- \(\- \(\- tab0\.col0\)\) AS col0" at position 0 and "tab0\.col0 \+ tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 33 + - ( + 4 ) - - - col0 col0, + col0 + + + col2 AS col0 FROM tab0 +---- +-124 +-134 +-52 +196 +62 +97 query II rowsort SELECT DISTINCT - ( + + col1 ) col1, - 63 FROM tab0 @@ -31337,8 +31682,15 @@ NULL # Datafusion - Expected - 85 # Datafusion - Expected - 8008 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* cor0\.col0 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 88 * col0 AS col1, + col0 AS col1 FROM tab1 AS cor0 +---- +4488 +51 +7480 +8008 +85 +91 query I rowsort label-5150 SELECT DISTINCT - col0 + - + CAST ( - - ( + 71 ) AS INTEGER ) FROM tab2 cor0 @@ -31812,8 +32164,15 @@ SELECT - 56 / MIN ( + col0 ) - - 83 * + 11 AS col1 FROM tab1 cor0 # Datafusion - Expected - -1 # Datafusion - Expected - -77 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / cor0\.col0 \* \(\- cor0\.col2\) \+ \(\- cor0\.col0\) \+ \(\- cor0\.col0\) AS col2" at position 0 and "\(\- cor0\.col2\) / cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 / col0 * - col2 + + - col0 + - col0 AS col2, - col2 / + col0 AS col2 FROM tab0 cor0 +---- +-1 +-184 +-293 +-3 +-77 +0 query I rowsort label-5229 SELECT DISTINCT + + SUM ( ALL + ( - 1 ) ) FROM tab2 AS cor0 @@ -31944,8 +32303,15 @@ SELECT - - col0 - - col2 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 79 # Datafusion - Expected - 64 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- \(\- cor0\.col2\) AS col2" at position 0 and "Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 - - col2 AS col2, 79 AS col2 FROM tab1 AS cor0 +---- +110 +115 +64 +79 +79 +79 query I rowsort label-5250 SELECT ALL - - CAST ( + col2 AS INTEGER ) - - + ( - col2 ) AS col2 FROM tab1 AS cor0 @@ -33193,8 +33559,11 @@ SELECT - 69 * + + 18 + - - COUNT ( * ) AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- cor0\.col2\)\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MIN ( ALL - col2 ) AS col1, 80 AS col1 FROM tab0 cor0 +---- +-99 +80 query I rowsort SELECT - col2 * - + 32 FROM tab0 @@ -33243,8 +33612,15 @@ SELECT ALL - SUM ( col1 ) + - - SUM ( ALL - ( + + col1 ) ) FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - -406 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \* \(\- \(\- tab2\.col2\)\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 7 * - + ( - col2 ) AS col2, col0 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL +---- +-161 +-280 +-406 +46 +64 +75 query I rowsort label-5476 SELECT DISTINCT - COUNT ( * ) + - 2 FROM tab1 AS cor0 @@ -33596,8 +33972,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - col2 IS NULL ) # Datafusion - Expected - -441 # Datafusion - Expected - 0 # Datafusion - Expected - -6561 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col2" at position 0 and "cor0\.col1 \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 0 AS col2, col1 * - col1 AS col2 FROM tab0 AS cor0 +---- +-1 +-441 +-6561 +0 +0 +0 query I rowsort SELECT DISTINCT - col0 * - + 8 * - + col2 FROM tab0 @@ -33692,8 +34075,15 @@ SELECT 89 + col1 AS col1 FROM tab2 # Datafusion - Expected - 99 # Datafusion - Expected - 54 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ Int64\(24\) \+ cor0\.col0 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + + 24 + col0 AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +10 +198 +218 +47 +54 +99 query I rowsort label-5549 SELECT ALL 73 / - - col2 FROM tab1 AS cor0 @@ -34589,8 +34979,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - SUM ( col0 ) AS col0, - COUNT ( * ) + - 19 AS col0 FROM tab1 AS cor0 +---- +-22 +-227 query I rowsort label-5690 SELECT MIN ( ALL - + 68 ) FROM tab2 @@ -35160,8 +35553,15 @@ SELECT MIN ( DISTINCT + 63 ) AS col2 FROM tab0 # Datafusion - Expected - -59 # Datafusion - Expected - 91 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "\(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col1, - col2 col1 FROM tab1 +---- +-59 +-68 +-96 +51 +85 +91 query I rowsort SELECT ALL - - 44 AS col2 FROM tab0 WHERE NOT ( + col1 ) IS NULL @@ -35772,8 +36172,11 @@ SELECT ALL col0 + + col2 - + col2 + + col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- Int64\(32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, - ( + 32 ) AS col2 FROM tab1 AS cor0 +---- +-32 +3 query I rowsort SELECT DISTINCT + - 98 + 4 + - col1 * - + 28 AS col0 FROM tab1 AS cor0 @@ -36075,8 +36478,15 @@ SELECT DISTINCT + + 0 * col1 FROM tab0 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col0, + col0 col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query III rowsort SELECT * FROM tab0 WHERE NOT + - 19 <> NULL @@ -37167,8 +37577,15 @@ SELECT ALL - + MAX ( DISTINCT ( - col0 ) ) + - + SUM ( - 17 ) FROM tab2 AS cor0 # Datafusion - Expected - -56 # Datafusion - Expected - NULL # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col0\) \* cor0\.col1 \+ \(\- \(\- cor0\.col0\)\) \* Int64\(55\) \+ \(\- cor0\.col2\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- Int64\(56\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * + - col0 * + col1 + - - col0 * + 55 + - col2 + + - CAST ( NULL AS INTEGER ) col0, ( - ( + 56 ) ) AS col0 FROM tab0 AS cor0 +---- +-56 +-56 +-56 +NULL +NULL +NULL query II rowsort label-6116 SELECT + + 93 + + COUNT ( * ), + 95 col0 FROM tab2 cor0 @@ -37787,8 +38204,11 @@ SELECT DISTINCT - col0 + - 91 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-92\) AS Int32\)\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( CAST ( - 92 AS INTEGER ) ) AS col1, 91 AS col1 FROM tab2 +---- +91 +92 query I rowsort SELECT - - 55 * - - 52 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 @@ -38796,8 +39216,11 @@ SELECT DISTINCT col1 FROM tab0 cor0 WHERE NOT NULL <> col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT cor0\.col1\) AS col2" at position 0 and "Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( DISTINCT + col1 ) AS col2, 8 AS col2 FROM tab0 AS cor0 +---- +8 +81 query I rowsort label-6394 SELECT + + MAX ( - col0 ) FROM tab0 AS cor0 @@ -38842,8 +39265,15 @@ SELECT DISTINCT - ( + - 66 ) FROM tab0 # Datafusion - Expected - -63 # Datafusion - Expected - 96 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) \+ \(\- tab0\.col0\) \* \(\- tab0\.col1\) AS col0" at position 0 and "Int64\(\-63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 + - + col0 * + - col1 AS col0, - 63 AS col0 FROM tab0 +---- +-63 +-63 +-63 +1134 +1806 +96 query I rowsort SELECT DISTINCT - 46 * col2 FROM tab2 @@ -39261,8 +39691,15 @@ SELECT * FROM tab1 WHERE NOT + 11 IS NULL # Datafusion - Expected - -21 # Datafusion - Expected - 5445 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* Int64\(99\) AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 55 * + 99 col0, - col1 AS col0 FROM tab0 +---- +-1 +-21 +-81 +5445 +5445 +5445 query I rowsort SELECT + 28 * col0 + + + 5 * + col0 FROM tab1 AS cor0 @@ -39741,8 +40178,15 @@ SELECT col0, + col1 AS col0 FROM tab1 cor0 # Datafusion - Expected - 2209 # Datafusion - Expected - 6 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "\(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 6 AS col2, - col1 * - + col1 AS col2 FROM tab1 AS cor0 +---- +196 +2209 +25 +6 +6 +6 query I rowsort SELECT DISTINCT 33 col0 FROM tab0 AS cor0 @@ -39956,8 +40400,15 @@ SELECT col2 FROM tab1 AS cor0 WHERE NOT - 58 + - + 63 IS NULL # Datafusion - Expected - 67 # Datafusion - Expected - 55 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 55 AS col0, 67 col0 FROM tab1 WHERE NOT - CAST ( - col0 AS INTEGER ) - - CAST ( + + col0 AS INTEGER ) * - col0 = - 52 * + 58 + + 66 +---- +55 +55 +55 +67 +67 +67 query I rowsort label-6574 SELECT + SUM ( + col1 ) AS col0 FROM tab0 @@ -40006,8 +40457,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 85 - col1 + - col0 - # Datafusion - Expected - 65 # Datafusion - Expected - NULL # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "cor0\.col0 \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col1, col0 + + col1 AS col1 FROM tab1 AS cor0 +---- +138 +65 +90 +NULL +NULL +NULL query I rowsort label-6582 SELECT DISTINCT + SUM ( - - 8 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 @@ -40781,8 +41239,15 @@ SELECT DISTINCT + col0 * - col1 + col2 FROM tab2 AS cor0 # Datafusion - Expected - -4355 # Datafusion - Expected - 77 # Datafusion - Expected - -5005 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(\-65\) \* \(\- \(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, - 65 * - - col1 AS col2 FROM tab2 AS cor0 +---- +-3315 +-4355 +-5005 +51 +67 +77 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + 36, col2 * - + col1, + + col2 ) @@ -41497,8 +41962,9 @@ SELECT * FROM tab0 WHERE ( 54 - + + 44 NOT BETWEEN NULL AND - - 34 * col0 ) ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 col2, col1 AS col2 FROM tab2 WHERE ( - col0 ) IS NULL +---- query I rowsort SELECT - ( - col2 ) * 61 col2 FROM tab2 @@ -42204,8 +42670,15 @@ SELECT + MIN ( DISTINCT + + col1 ) FROM tab1 # Datafusion - Expected - 67 # Datafusion - Expected - 66 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 AS col0, + col1 AS col0 FROM tab2 +---- +51 +66 +66 +66 +67 +77 query I rowsort SELECT col1 + + - col0 AS col0 FROM tab2 AS cor0 @@ -42325,8 +42798,9 @@ SELECT DISTINCT + + ( + 72 ) AS col0 FROM tab0 AS cor0 72 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* Int64\(\-77\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 68 * - 77 AS col0, - col2 col0 FROM tab2 AS cor0 WHERE NULL < NULL +---- query I rowsort label-6968 SELECT DISTINCT - MAX ( ALL 62 ) FROM tab0 AS cor0 @@ -44862,8 +45336,15 @@ NULL # Datafusion - Expected - NULL # 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 "\(\- CAST\(NULL AS Float64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL 26 AS col0, - CAST ( NULL AS FLOAT8 ) col0 FROM tab1 +---- +26 +26 +26 +NULL +NULL +NULL query I rowsort SELECT DISTINCT - 52 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 @@ -45922,8 +46403,15 @@ SELECT DISTINCT + 34 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - 6808 # Datafusion - Expected - 36 # Datafusion - Expected - 7139 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col0" at position 0 and "cor0\.col0 \* Int64\(67\) \+ \(\- cor0\.col2\) \* Int64\(\-89\) \+ \(\- cor0\.col1\) \* Int64\(\-20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( ( + 36 ) ) AS col0, col0 * + + 67 + - col2 * - 89 + - + col1 * - 20 AS col0 FROM tab0 AS cor0 +---- +15330 +36 +36 +36 +6808 +7139 query I rowsort label-7568 SELECT ALL MAX ( - col0 ) AS col0 FROM tab2 AS cor0 @@ -46271,8 +46759,15 @@ SELECT DISTINCT + col2 + + + 25 + + col0 FROM tab0 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col1" at position 0 and "cor0\.col0 \- Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 col1, col0 - - 0 AS col1 FROM tab2 AS cor0 +---- +23 +40 +46 +58 +64 +75 query I rowsort SELECT ALL - + ( + col0 ) AS col2 FROM tab1 AS cor0 @@ -46643,8 +47138,10 @@ SELECT DISTINCT + ( + col0 ) * + col2 + - 64 / col0 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to bf6b4eb19b89f95712d970af06b12fc7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 1 and "\(\- cor0\.col0\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - - ( + + col0 ), col0 AS col2, - + col0 col2 FROM tab1 cor0 +---- +9 values hashing to f1cf9d7d23b8f9471392ebd51162927f query II rowsort SELECT ALL - 71 - col0, - col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 * - - col2 <> + + 82 * + 99 @@ -47164,8 +47661,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 9 IS NOT NULL # Datafusion - Expected - 3036 # Datafusion - Expected - 96 # Datafusion - Expected - 4261 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col2" at position 0 and "cor0\.col0 \+ \(\- cor0\.col1\) \+ cor0\.col2 \* Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col2 AS col2, col0 + - col1 + col2 * + 44 AS col2 FROM tab1 cor0 +---- +2676 +3036 +4261 +59 +68 +96 query I rowsort label-7773 SELECT ALL - MAX ( - col1 ) AS col1 FROM tab1 cor0 @@ -47263,8 +47767,15 @@ SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL # Datafusion - Expected - -75 # Datafusion - Expected - -77 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col0" at position 0 and "\(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col0, - col0 AS col0 FROM tab2 +---- +-46 +-51 +-64 +-67 +-75 +-77 query IIIIII rowsort SELECT ALL * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NOT NULL IS NULL @@ -47786,8 +48297,15 @@ SELECT - - 88 * - 26 + col0, col1 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 5 # Datafusion - Expected - 4468 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* \(\- \(\- cor0\.col1\)\) \+ \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 97 * - ( + - col1 ) + - col0 AS col1, + 5 AS col1 FROM tab1 AS cor0 +---- +1307 +400 +4468 +5 +5 +5 query I rowsort SELECT 28 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL @@ -48282,8 +48800,11 @@ SELECT - CAST ( 83 AS INTEGER ) AS col1, + 81 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- \(\- tab1\.col1\)\)\)\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MIN ( ALL - - col1 ) AS col0, 48 AS col0 FROM tab1 +---- +-5 +48 query I rowsort SELECT ALL - col0 * + ( + col0 ) FROM tab0 @@ -48532,8 +49053,15 @@ SELECT - 0 col1 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, col1 AS col1 FROM tab1 cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT ALL + 50 * col2 FROM tab1 AS cor0 WHERE col0 > NULL @@ -48608,8 +49136,15 @@ SELECT * FROM tab0 WHERE NOT + 5 IS NOT NULL # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col0, col0 AS col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT DISTINCT - 2 * - + 24 * - - col2 AS col2 FROM tab2 @@ -49340,8 +49875,15 @@ SELECT + + col0, 32 AS col2 FROM tab0 cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, col1 col2 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT ALL - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < - col1 @@ -49859,8 +50401,11 @@ SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - + 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(\(\- Int64\(\-61\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, - COUNT ( - - 61 ) AS col0 FROM tab0 +---- +-3 +3 query I rowsort label-8206 SELECT - CAST ( + - ( COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab0 @@ -51189,8 +51734,15 @@ SELECT ALL - - 25 AS col1 FROM tab1 cor0 # Datafusion - Expected - 17 # 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\(7\) \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 58 ) AS col1, 7 + + col2 AS col1 FROM tab0 cor0 +---- +106 +17 +54 +58 +58 +58 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN NULL AND + - 28 @@ -52017,8 +52569,15 @@ SELECT ( - COUNT ( ALL - + 69 ) ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, col0 AS col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query II rowsort SELECT + - col2 * - - col2 * - 97 * + 35, col1 AS col2 FROM tab1 AS cor0 @@ -53755,8 +54314,15 @@ SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE ( NOT ( col2 ) * + CAST ( NULL AS I # Datafusion - Expected - -87 # Datafusion - Expected - -90 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col0" at position 0 and "CAST\(\(\- tab0\.col0\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 90 AS col0, CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 +---- +-15 +-87 +-90 +-90 +-90 +-97 query I rowsort SELECT ALL col0 FROM tab1 WHERE ( ( + ( - col0 ) IN ( - col2 ) ) ) @@ -54059,8 +54625,15 @@ SELECT ALL + 40 * + + CAST ( + - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-8901 SELECT ALL + CAST ( AVG ( ALL - 53 ) AS INTEGER ) FROM tab1 AS cor0 @@ -55367,8 +55940,11 @@ SELECT ALL + col2 - - col1 * - col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, + ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0 +---- +-3 +3 query I rowsort SELECT + ( - + col0 ) FROM tab2 AS cor0 WHERE NOT - col1 IS NULL @@ -55418,8 +55994,15 @@ SELECT ALL * FROM tab1 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL # Datafusion - Expected - 85 # Datafusion - Expected - 27 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 AS col2, + col0 AS col2 FROM tab1 cor0 WHERE NOT - col2 BETWEEN + col1 AND + + col2 +---- +27 +27 +27 +51 +85 +91 query I rowsort label-9129 SELECT col0 * col2 / + 3 FROM tab2 cor0 @@ -56976,8 +57559,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT + col2 IS NOT NULL ) # Datafusion - Expected - 1013 # Datafusion - Expected - -97 # Datafusion - Expected - 993 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "CAST\(Int64\(62\) AS Int32\) \* Int64\(16\) \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, CAST ( 62 AS INTEGER ) * 16 + col1 AS col1 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +1013 +1073 +993 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * + 97 < - col2 * col1 @@ -57145,8 +57735,15 @@ SELECT + COUNT ( * ) + - COUNT ( ALL - col1 ) * - + COUNT ( + 20 ) - - 6 AS col0 # Datafusion - Expected - 2209 # Datafusion - Expected - -66 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col1" at position 0 and "tab1\.col1 \* tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 66 AS col1, col1 * + + col1 AS col1 FROM tab1 +---- +-66 +-66 +-66 +196 +2209 +25 query I rowsort label-9420 SELECT DISTINCT col1 + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 @@ -58535,8 +59132,15 @@ SELECT ALL - col0 + - 79 FROM tab2 # Datafusion - Expected - -63 # Datafusion - Expected - -91 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(91\)\) AS col2" at position 0 and "\(\- cor0\.col2\) \+ Int64\(\-23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 91 ) AS col2, + ( - col2 ) + + - 23 AS col2 FROM tab2 AS cor0 +---- +-46 +-63 +-81 +-91 +-91 +-91 query I rowsort SELECT ALL - ( + 0 ) FROM tab1 AS cor0 WHERE + col2 IS NULL @@ -59787,8 +60391,15 @@ SELECT DISTINCT - col2 AS col2, + 2 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -58 # Datafusion - Expected - -575 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col2 AS Int32\)\) \* cor0\.col2 \- cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( + + col2 AS INTEGER ) * col2 - + col0 AS col1, - col2 AS col1 FROM tab2 AS cor0 +---- +-1664 +-23 +-3439 +-40 +-575 +-58 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - 41 IS NULL @@ -60039,8 +60650,11 @@ SELECT col1 * + - col1 AS col2 FROM tab0 WHERE NULL IS NULL # 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 "Int64\(3\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 3 AS col2, 42 AS col2 FROM tab0 AS cor0 +---- +3 +42 query I rowsort SELECT DISTINCT + col1 * 79 FROM tab1 AS cor0 @@ -60352,8 +60966,9 @@ SELECT DISTINCT col1 - + + col2 AS col0 FROM tab0 cor0 34 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* CAST\(Int64\(53\) AS Int32\) AS col1" at position 0 and "\(\- cor0\.col0\) \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * + CAST ( + 53 AS INTEGER ) col1, - col0 * - col2 AS col1 FROM tab1 AS cor0 WHERE CAST ( col1 AS INTEGER ) = + col1 + + col0 + - col1 +---- query I rowsort SELECT ALL + 22 - + 96 * - col1 AS col1 FROM tab2 AS cor0 @@ -60582,8 +61197,15 @@ SELECT ALL - col0, - col2 col1 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col2, col2 FROM tab0 cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-9975 SELECT ALL + CAST ( + CAST ( + - col0 AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_62.slt b/data/sqlite/random/aggregates/slt_good_62.slt index 6081c4f..6b4511b 100644 --- a/data/sqlite/random/aggregates/slt_good_62.slt +++ b/data/sqlite/random/aggregates/slt_good_62.slt @@ -145,8 +145,15 @@ SELECT DISTINCT - 8 + 78 FROM tab2 AS cor0 # Datafusion - Expected - 1800 # Datafusion - Expected - 51 # Datafusion - Expected - 1800 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col0\) \+ \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(45\) \* Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 + - col0 + - col0 AS col1, + 45 * + 40 AS col1 FROM tab0 AS cor0 WHERE - 69 * - col2 IS NOT NULL +---- +-153 +-193 +1800 +1800 +1800 +51 query II rowsort SELECT ALL - 98, + 13 AS col2 FROM tab1 AS cor0 @@ -847,8 +854,11 @@ SELECT DISTINCT - col2 + - - col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +3 +3 query I rowsort label-132 SELECT DISTINCT - 47 / - + MIN ( ALL - - col0 ) AS col2 FROM tab1 AS cor0 @@ -1173,8 +1183,15 @@ SELECT DISTINCT col0 * ( - 76 ) * + col0 AS col1 FROM tab2 # Datafusion - Expected - 94 # Datafusion - Expected - 99 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col0, + 94 AS col0 FROM tab0 AS cor0 +---- +10 +47 +94 +94 +94 +99 query I rowsort label-183 SELECT ALL SUM ( col0 ) col2 FROM tab0 AS cor0 @@ -2319,8 +2336,15 @@ SELECT 67 / + 23 - - col1 FROM tab2 # Datafusion - Expected - 33 # Datafusion - Expected - 47 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) / cor0\.col1 \- \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 \+ \(\- Int64\(54\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 / col1 - - col2 AS col2, + col0 + - + 54 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL +---- +-39 +0 +10 +33 +43 +47 query I rowsort SELECT ALL + + 60 AS col2 FROM tab0 AS cor0 @@ -2541,8 +2565,15 @@ SELECT DISTINCT + 73 + - col0 - - ( - + col0 ) col0 FROM tab0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col2, + col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-406 SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab0 WHERE NOT col1 + + 48 <> 24 @@ -2684,8 +2715,15 @@ SELECT * FROM tab1 WHERE + col1 + + 41 IN ( col1 + col1 - - col2 / - col2 ) # Datafusion - Expected - 91 # Datafusion - Expected - 8928 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \* cor0\.col2 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 93 * col2 col1, col0 AS col1 FROM tab1 cor0 +---- +51 +5487 +6324 +85 +8928 +91 query I rowsort label-430 SELECT CAST ( NULL AS INTEGER ) + + col2 / - + col2 + + 90 FROM tab0 cor0 @@ -3177,8 +3215,9 @@ SELECT - COUNT ( * ) + SUM ( ALL - + ( + col1 ) ) AS col0 FROM tab1 AS cor0 -69 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col2 \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col2, + col2 * - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL +---- query I rowsort SELECT ALL - col2 * ( + col1 ) AS col2 FROM tab0 AS cor0 @@ -3321,8 +3360,15 @@ SELECT ALL col2, 88 AS col1 FROM tab2 # Datafusion - Expected - -67 # Datafusion - Expected - 77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, + ( + - col1 ) AS col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +51 +67 +77 query I rowsort SELECT ( + 87 ) + + + col2 + - col0 col1 FROM tab0 @@ -3448,8 +3494,9 @@ SELECT DISTINCT - col2 + - col0 * + ( + 34 ) * 7 + - 30 col2 FROM tab2 -17938 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, col2 FROM tab1 WHERE + 81 - - col1 * - - col0 IS NULL +---- query I rowsort SELECT DISTINCT - 99 - - - col0 FROM tab0 cor0 @@ -3806,8 +3853,15 @@ SELECT + 13 AS col1 FROM tab2 cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( col1 ), col1 AS col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query II rowsort label-615 SELECT + + ( 10 ), COUNT ( * ) AS col0 FROM tab0 AS cor0 @@ -4808,8 +4862,15 @@ SELECT ALL - + col1 col2, col0 FROM tab0 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - -75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0, - col0 FROM tab2 cor0 +---- +-46 +-46 +-64 +-64 +-75 +-75 query II rowsort SELECT - col0 col2, + 30 * - 14 * 36 + col2 FROM tab1 AS cor0 @@ -5017,8 +5078,12 @@ SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( - + col1 AS FLOAT8 ) IS NOT NULL # Datafusion - Expected - 3 # Datafusion - Expected - 3 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- Int64\(1\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( 4 ), + - ( + 1 ) AS col1 FROM tab1 +---- +-1 +3 +3 query I rowsort SELECT 65 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 @@ -6553,8 +6618,13 @@ SELECT col0 * + col0 * + col2 FROM tab1 # Datafusion - Expected - 43 # Datafusion - Expected - 2 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) / tab2\.col0 AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 93 / col0 AS col1, 43 AS col1 FROM tab2 +---- +1 +2 +43 +43 query I rowsort label-1062 SELECT ALL COUNT ( + 63 ) AS col0 FROM tab0 @@ -7884,8 +7954,15 @@ SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE + - col0 * - col2 <= # Datafusion - Expected - -67 # Datafusion - Expected - 99 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- \(\- tab0\.col1\)\) AS col1" at position 0 and "Int64\(\-67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * - - col1 AS col1, - 67 col1 FROM tab0 +---- +-67 +-67 +-67 +210 +3807 +99 query I rowsort label-1290 SELECT + ( COUNT ( + 19 ) ) - - 25 FROM tab0 @@ -8118,8 +8195,9 @@ SELECT DISTINCT CAST ( + - col1 AS INTEGER ) * - + ( + - col1 ) + 70 + - + CAST 104 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab0\.col0\)\) \+ tab0\.col1 / Int64\(80\) AS col2" at position 0 and "\(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + - col0 ) + + col1 / + 80 col2, - col2 AS col2 FROM tab0 WHERE NULL IN ( col2 * + col1 * - col1, + col0 + 6 ) +---- query I rowsort label-1330 SELECT - MIN ( - col2 ) AS col2 FROM tab1 @@ -9087,8 +9165,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT 53 NOT BETWEEN - col1 - - - col0 AND + 40 # Datafusion - Expected - 5015 # Datafusion - Expected - -88 # Datafusion - Expected - 6188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col0" at position 0 and "cor0\.col0 \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 88 AS col0, col0 * col2 AS col0 FROM tab1 AS cor0 +---- +-88 +-88 +-88 +4896 +5015 +6188 query I rowsort SELECT col0 * + ( + 66 ) col0 FROM tab2 AS cor0 @@ -9171,8 +9256,15 @@ SELECT DISTINCT - 37 * - 94 * 81 FROM tab1 AS cor0 # Datafusion - Expected - 12 # Datafusion - Expected - 91 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / Int64\(86\) \+ cor0\.col0 AS col1" at position 0 and "cor0\.col1 \+ Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 / 86 + col0 AS col1, col1 + + 7 AS col1 FROM tab1 cor0 +---- +12 +21 +51 +54 +85 +91 query II rowsort SELECT col1 * col1 * - 38, col1 AS col1 FROM tab0 AS cor0 @@ -9969,8 +10061,15 @@ SELECT DISTINCT - col1 FROM tab1 WHERE col1 NOT BETWEEN col2 - col1 - - - ( + 48 # Datafusion - Expected - -68 # Datafusion - Expected - 22 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "\(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 col2, - col2 AS col2 FROM tab1 +---- +-59 +-68 +-96 +22 +22 +22 query I rowsort SELECT col2 * - 22 AS col1 FROM tab1 @@ -10547,8 +10646,12 @@ SELECT - + ( + COUNT ( - col1 ) ) * ( - 7 ) AS col0 FROM tab2 AS cor0 WHERE NOT # Datafusion - Expected - -65 # Datafusion - Expected - -42 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 65 col1, SUM ( ALL - + 14 ), + COUNT ( * ) AS col1 FROM tab0 cor0 +---- +-42 +-65 +3 query I rowsort label-1730 SELECT 17 * - SUM ( - ( + - col1 ) ) FROM tab0 AS cor0 @@ -10666,8 +10769,11 @@ SELECT ALL + ( + 75 ) AS col2, COUNT ( col0 ) + - + 87 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(\-83\)\)\) 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 II valuesort SELECT ALL + - MAX ( DISTINCT - 83 ) AS col0, MIN ( - + 93 ) AS col0 FROM tab1 AS cor0 +---- +-93 +83 query I rowsort SELECT DISTINCT ( - col1 ) + + + 27 FROM tab0 AS cor0 WHERE - col0 IS NULL @@ -10801,8 +10907,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 51 + + + MIN ( DISTINCT - 26 ) AS col0, COUNT ( * ) + 13 AS col0 FROM tab2 +---- +16 +25 query I rowsort SELECT DISTINCT + col2 * 89 + + col1 * col1 FROM tab1 @@ -10951,8 +11060,11 @@ SELECT + - col2, + col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-66\) AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( - 66 AS INTEGER ) AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +-66 +3 query I rowsort SELECT DISTINCT - ( - ( - 5 ) ) AS col1 FROM tab2 AS cor0 @@ -11189,8 +11301,15 @@ SELECT SUM ( DISTINCT 95 ) AS col1 FROM tab0 # Datafusion - Expected - -40 # Datafusion - Expected - 58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, - col2 AS col0 FROM tab2 +---- +-23 +-40 +-58 +23 +40 +58 query I rowsort SELECT 12 + + col0 + + col0 AS col0 FROM tab0 @@ -11861,8 +11980,11 @@ SELECT DISTINCT + col1 + - col1 + + + col1 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 2 AS col0, + COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +-2 +3 query I rowsort SELECT - ( - 24 ) + - 13 AS col1 FROM tab1 AS cor0 @@ -12872,8 +12994,10 @@ SELECT + col1 AS col2, 78 / col1 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 270ee25b9f217164976e262fc49f7304 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - col2 AS col1, ( - col0 ) col1, - - col1 * + col0 FROM tab1 AS cor0 +---- +9 values hashing to a9beefbc3dd2af17c0c74a26b3814203 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 <= - col2 @@ -13009,8 +13133,10 @@ SELECT - + col1 + + 55 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a40be6a9872bfee6f35093cfdb5fb3d2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \- \(\- \(\- cor0\.col2\)\) \- cor0\.col2 AS col2" at position 0 and "\(\- cor0\.col1\) \+ \(\- \(\- cor0\.col0\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 77 - - - col2 - + col2 AS col2, 46 * - - col2 AS col0, - + col1 + - - ( + col0 ) AS col2 FROM tab2 AS cor0 +---- +9 values hashing to 2a0a0f42e7bd2187808417258533dd9e query I rowsort SELECT + + col0 + col1 - + + 69 FROM tab2 AS cor0 @@ -13405,8 +13531,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND - col1 + 91 # Datafusion - Expected - 4215 # Datafusion - Expected - 41 # Datafusion - Expected - 5744 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "Int64\(37\) \+ Int64\(82\) \+ cor0\.col0 \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 41 AS col1, 37 + + 82 + + col0 * + col0 AS col1 FROM tab2 cor0 +---- +2235 +41 +41 +41 +4215 +5744 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 + + - col2 * 58 IS NULL @@ -14392,8 +14525,9 @@ SELECT DISTINCT col2 + + - ( + col2 ) + col2 + - 60 - - col1 * - + ( - + col1 ) 5909 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col1, col1 FROM tab2 WHERE NULL IS NOT NULL +---- query I rowsort SELECT DISTINCT - 9 + - - 44 + col0 * col2 + col2 + col1 + + col1 * - - col2 AS col0 FROM tab1 @@ -14900,8 +15034,11 @@ SELECT ALL MAX ( col2 ) col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 24 AS col1, + COUNT ( * ) col1 FROM tab2 AS cor0 +---- +24 +3 query I rowsort SELECT DISTINCT - + 34 AS col2 FROM tab1 AS cor0 @@ -16504,8 +16641,15 @@ SELECT + COUNT ( - + col1 ) FROM tab0 AS cor0 # Datafusion - Expected - -5296 # Datafusion - Expected - 40 # Datafusion - Expected - -6068 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col2" at position 0 and "Int64\(\-79\) \* cor0\.col1 \- cor0\.col2 \+ Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 col2, - 79 * col1 - col2 + 55 AS col2 FROM tab2 AS cor0 +---- +-3997 +-5296 +-6068 +40 +40 +40 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col1 ) >= + 62 + + col2 * + - col0 * 1 @@ -16563,8 +16707,11 @@ SELECT * FROM tab0 AS cor0 WHERE - col2 * 56 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-21\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) + - 21 AS col2, + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 +---- +-24 +NULL query I rowsort label-2730 SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE 44 IS NULL @@ -17459,8 +17606,15 @@ NULL # Datafusion - Expected - 12 # Datafusion - Expected - -77 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col0" at position 0 and "tab2\.col0 \+ Int64\(\-63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, col0 + + - 63 AS col0 FROM tab2 +---- +-17 +-51 +-67 +-77 +1 +12 query I rowsort label-2876 SELECT DISTINCT col0 / - - col2 AS col0 FROM tab1 cor0 @@ -17499,8 +17653,15 @@ SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 80 > NULL # Datafusion - Expected - -95 # Datafusion - Expected - 3196 # Datafusion - Expected - -101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* tab1\.col1 AS col2" at position 0 and "Int64\(\-10\) \- \(\- \(\- tab1\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * + col1 AS col2, - 10 - - - col0 AS col2 FROM tab1 +---- +-101 +-61 +-95 +1344 +295 +3196 query I rowsort SELECT DISTINCT - ( + - col0 ) FROM tab1 AS cor0 @@ -18349,8 +18510,15 @@ NULL # Datafusion - Expected - -1 # Datafusion - Expected - 77 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col2" at position 0 and "cor0\.col2 / \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 77 AS col2, + col2 / - col2 AS col2 FROM tab0 AS cor0 +---- +-1 +-1 +-1 +77 +77 +77 query I rowsort label-3018 SELECT + 93 / - + col1 FROM tab2 AS cor0 @@ -18362,8 +18530,11 @@ SELECT + 93 / - + col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) / Int64\(32\) \+ Int64\(93\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 90 / 32 + + 93 AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +3 +95 query I rowsort label-3020 SELECT + COUNT ( * ) * - 14 FROM tab1 AS cor0 @@ -18462,8 +18633,11 @@ SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col1" at position 0 and "Int64\(51\) \* CAST\(NULL AS Int32\) \+ min\(CAST\(\(\- Int64\(18\)\) AS Int32\)\) \- count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 AS col1, 51 * CAST ( NULL AS INTEGER ) + MIN ( + CAST ( - + 18 AS INTEGER ) ) - + COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +-90 +NULL query I rowsort label-3038 SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 @@ -18496,8 +18670,11 @@ SELECT DISTINCT + - COUNT ( * ) / 15 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 27 AS col2, COUNT ( * ) AS col2 FROM tab0 +---- +27 +3 query I rowsort SELECT DISTINCT - col1 * - col0 + - 18 AS col2 FROM tab0 @@ -19582,8 +19759,15 @@ SELECT DISTINCT col0 * + + col2 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 81 # Datafusion - Expected - 80 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col2 AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 + col2 col0, 81 AS col0 FROM tab2 AS cor0 +---- +116 +46 +80 +81 +81 +81 query I rowsort SELECT DISTINCT - 31 + - col1 + + col1 FROM tab1 @@ -19883,8 +20067,15 @@ SELECT ALL - col0 + col1 AS col2, + 38 AS col1 FROM tab2 # Datafusion - Expected - -87 # Datafusion - Expected - 55 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col0" at position 0 and "CAST\(\(\- tab0\.col0\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 AS col0, CAST ( - + col0 AS INTEGER ) col0 FROM tab0 +---- +-15 +-87 +-97 +55 +55 +55 query III rowsort SELECT ALL * FROM tab0 WHERE 89 + col1 IS NULL @@ -20242,8 +20433,15 @@ SELECT 25 + - ( + MIN ( - 60 ) ) FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 177 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ Int64\(4\) \- Int64\(\-77\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 + + 4 - - 77 col0, col1 col0 FROM tab1 +---- +14 +140 +149 +177 +47 +5 query I rowsort label-3331 SELECT 96 * - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 @@ -21307,8 +21505,15 @@ SELECT DISTINCT - + SUM ( - - 43 ) FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col2, col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query II rowsort label-3505 SELECT 14, COUNT ( * ) AS col2 FROM tab2 AS cor0 @@ -21477,8 +21682,15 @@ SELECT DISTINCT 31 + + col2 FROM tab0 # Datafusion - Expected - -8265 # Datafusion - Expected - -81 # Datafusion - Expected - -1425 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "tab0\.col0 \* Int64\(\-95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, col0 * - 95 AS col0 FROM tab0 +---- +-1 +-1425 +-21 +-81 +-8265 +-9215 query I rowsort SELECT col1 - + + ( - col0 ) AS col2 FROM tab0 @@ -21986,8 +22198,15 @@ SELECT * FROM tab1 cor0 WHERE 85 / 55 + 88 IS NULL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col1, + col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-3623 SELECT ALL + 13 - COUNT ( * ) * - 80 * COUNT ( * ) + 63 FROM tab0 AS cor0 @@ -22729,8 +22948,15 @@ SELECT DISTINCT 60, + 24 AS col2 FROM tab0 # Datafusion - Expected - -77 # Datafusion - Expected - -58 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col1" at position 0 and "\(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, - col1 AS col1 FROM tab2 +---- +-23 +-40 +-51 +-58 +-67 +-77 query II rowsort label-3745 SELECT - COUNT ( * ), + COUNT ( * ) AS col2 FROM tab2 @@ -23239,8 +23465,15 @@ SELECT - - 32 AS col0, - COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - -33 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 33 AS col2, col1 AS col2 FROM tab0 AS cor0 +---- +-33 +-33 +-33 +1 +21 +81 query II rowsort label-3829 SELECT ALL - + CAST ( NULL AS INTEGER ) col2, - col2 FROM tab2 AS cor0 @@ -23493,8 +23726,11 @@ SELECT + 73 + MAX ( + 16 ) col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col2, 86 col2 FROM tab1 AS cor0 +---- +3 +86 query I rowsort SELECT - 35 + + col1 AS col0 FROM tab1 AS cor0 @@ -23519,8 +23755,10 @@ SELECT DISTINCT col0 + 82 + 65 / + - col1 + col2 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 4cc901afca68f43b1f19aa7c09ac896a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- tab0\.col1\) AS Int32\)\) AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - CAST ( - col1 AS INTEGER ) AS col1, col2, ( - + col1 ) col1 FROM tab0 +---- +9 values hashing to af58f940086d1252d592554614503cd4 query I rowsort SELECT DISTINCT col2 + + 95 FROM tab0 @@ -24038,8 +24276,15 @@ SELECT ALL - COUNT ( * ) - + - 88 FROM tab2 AS cor0 # Datafusion - Expected - 53958 # Datafusion - Expected - 85 # Datafusion - Expected - 197120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \+ cor0\.col2 \- \(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col2\) \* cor0\.col0 \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 5 + + col2 - - col2 col0, - col2 * + col0 * + + ( - + col1 ) AS col0 FROM tab2 AS cor0 +---- +121 +197120 +291450 +51 +53958 +85 query II rowsort SELECT DISTINCT - + col1 - - col1 + - + col0, + col0 AS col0 FROM tab1 AS cor0 @@ -24080,8 +24325,15 @@ SELECT * FROM tab1 WHERE NOT - 38 IS NULL # Datafusion - Expected - 64 # Datafusion - Expected - -34 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(34\)\) AS Int32\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( - + 34 AS INTEGER ) AS col2, + col0 AS col2 FROM tab2 AS cor0 +---- +-34 +-34 +-34 +46 +64 +75 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -24145,8 +24397,15 @@ SELECT - 91 * col1 + - - ( col0 ) * - 24 * - col1 * + + col0 AS col2, + col0 * - # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, col1 AS col0 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-3975 SELECT DISTINCT COUNT ( + ( col1 ) ) AS col1 FROM tab2 AS cor0 @@ -24196,8 +24455,15 @@ SELECT ALL 95 / col0 AS col2, + 11 FROM tab1 # Datafusion - Expected - -87 # Datafusion - Expected - 1 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 / tab0\.col1 AS col0" at position 0 and "\(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 / + col1 col0, - col0 AS col0 FROM tab0 +---- +-15 +-87 +-97 +1 +1 +1 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -24544,8 +24810,15 @@ SELECT - 6 AS col2, + col0 * - + col0 * + - 32 FROM tab0 AS cor0 # Datafusion - Expected - 20 # Datafusion - Expected - -41 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col1" at position 0 and "cor0\.col2 \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 41 AS col1, col2 + + col2 AS col1 FROM tab0 cor0 +---- +-41 +-41 +-41 +198 +20 +94 query III rowsort SELECT ALL 31 + 7, - 95 + col2 AS col1, + col2 AS col0 FROM tab1 AS cor0 WHERE NULL < 81 @@ -25002,8 +25275,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 195 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col1" at position 0 and "sum\(cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( 73 ) AS col1, + SUM ( ALL + col1 ) col1 FROM tab2 AS cor0 +---- +195 +73 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE 13 IS NULL @@ -25220,8 +25496,15 @@ SELECT DISTINCT + col1 * + - 25 - + ( + + col2 ) + + + 75 AS col1 FROM tab2 AS c # Datafusion - Expected - 12 # Datafusion - Expected - 90 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \+ Int64\(\-45\) \+ cor0\.col0 AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 89 + + - 45 + + col0 col2, + 12 col2 FROM tab2 AS cor0 +---- +108 +119 +12 +12 +12 +90 query I rowsort SELECT DISTINCT + 46 * - col0 FROM tab2 @@ -25270,8 +25553,15 @@ SELECT ALL col2 + 48 col1 FROM tab0 # Datafusion - Expected - 17 # Datafusion - Expected - 5 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, + 17 AS col0 FROM tab1 +---- +14 +17 +17 +17 +47 +5 query III rowsort SELECT * FROM tab1 WHERE + col2 * col0 IS NULL @@ -25541,8 +25831,15 @@ SELECT ALL - MIN ( DISTINCT + col0 ) col1 FROM tab1 # Datafusion - Expected - 10 # Datafusion - Expected - 81 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col0, + col2 AS col0 FROM tab0 +---- +1 +10 +21 +47 +81 +99 query I rowsort SELECT DISTINCT + + col0 * + + col2 AS col2 FROM tab0 cor0 @@ -25604,8 +25901,15 @@ SELECT - 21 AS col0 FROM tab1 AS cor0 WHERE NOT 88 BETWEEN ( - CAST ( + - 91 AS # Datafusion - Expected - 77 # Datafusion - Expected - 58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col0, col1 AS col0 FROM tab2 AS cor0 +---- +23 +40 +51 +58 +67 +77 query II rowsort SELECT - 39, + ( col2 ) FROM tab1 AS cor0 @@ -25880,8 +26184,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) + - COUNT ( * ) AS col0, 90 + ( - ( + 80 ) ) + - - 69 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 +---- +-18 +79 query III rowsort SELECT ALL * FROM tab1 WHERE NOT - col2 * + 93 + col0 * + + col0 * - 73 + - 31 IS NULL @@ -27271,8 +27578,15 @@ SELECT ALL MIN ( 57 ) FROM tab1 # Datafusion - Expected - 2560 # Datafusion - Expected - 5850 # Datafusion - Expected - 4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(65\) 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 II valuesort SELECT + + 90 * 65 col1, col0 * col2 col1 FROM tab2 AS cor0 +---- +1058 +2560 +4350 +5850 +5850 +5850 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT 60 / - + col1 >= - col2 @@ -27312,8 +27626,15 @@ SELECT ALL COUNT ( * ) + - COUNT ( + - col1 ) AS col0 FROM tab0 # Datafusion - Expected - -295 # Datafusion - Expected - 95 # Datafusion - Expected - -3196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "tab1\.col1 \* \(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 95 AS col0, + col1 * - col2 col0 FROM tab1 +---- +-1344 +-295 +-3196 +95 +95 +95 query I rowsort SELECT - col2 * 43 AS col1 FROM tab1 @@ -27956,8 +28277,11 @@ SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - CAST ( + col0 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "max\(\(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, + MAX ( - col1 ) AS col2 FROM tab1 AS cor0 +---- +-5 +NULL query I rowsort SELECT - 27 + col1 FROM tab2 AS cor0 @@ -28442,8 +28766,15 @@ SELECT DISTINCT - + 54 + - MAX ( ALL 51 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 1800 # Datafusion - Expected - 3 # Datafusion - Expected - 1536 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) \+ tab2\.col2 AS col1" at position 0 and "tab2\.col0 \* Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 37 + col2 AS col1, + col0 * + 24 col1 FROM tab2 +---- +-14 +1104 +1536 +1800 +21 +3 query III rowsort SELECT DISTINCT * FROM tab1 WHERE + 70 + + col2 IS NULL @@ -29450,8 +29781,15 @@ SELECT + MIN ( DISTINCT - 61 ) FROM tab2 AS cor0 # Datafusion - Expected - -75 # Datafusion - Expected - 58 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- Int64\(75\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, - ( 75 ) AS col0 FROM tab2 cor0 +---- +-75 +-75 +-75 +23 +40 +58 query I rowsort label-4832 SELECT - MIN ( ALL - - col2 ) * + 27 * + + SUM ( - col1 ) AS col1 FROM tab0 cor0 @@ -29672,8 +30010,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= - CAST ( col0 AS INTEGER ) # Datafusion - Expected - 71 # Datafusion - Expected - 68 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 68 AS col2, 71 AS col2 FROM tab0 +---- +68 +68 +68 +71 +71 +71 query I rowsort label-4868 SELECT CAST ( NULL AS INTEGER ) / + col0 FROM tab0 @@ -29713,8 +30058,15 @@ SELECT DISTINCT - col1 col2, col0 * - 21 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - 91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, - col0 AS col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +51 +85 +91 query I rowsort label-4873 SELECT DISTINCT + 42 * + - 30 + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1 @@ -30061,8 +30413,15 @@ SELECT ALL - 67 * - + col0 / + + col0 AS col2 FROM tab0 cor0 # Datafusion - Expected - -5 # Datafusion - Expected - -83 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col1" at position 0 and "\(\- tab1\.col1\) \+ Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 83 AS col1, - col1 + 9 AS col1 FROM tab1 +---- +-38 +-5 +-83 +-83 +-83 +4 query I rowsort SELECT DISTINCT + ( ( + col1 ) ) FROM tab0 @@ -31105,8 +31464,15 @@ NULL # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, + ( + ( + + col1 ) ) AS col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-5097 SELECT + SUM ( + col2 ) / + - SUM ( DISTINCT + 75 ) AS col0 FROM tab2 @@ -32275,8 +32641,15 @@ SELECT col0 * 94 / col1 col0 FROM tab0 AS cor0 # Datafusion - Expected - 66 # Datafusion - Expected - 96 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, 66 AS col0 FROM tab1 AS cor0 +---- +59 +66 +66 +66 +68 +96 query I rowsort SELECT ALL - col1 * + col1 AS col0 FROM tab0 @@ -32345,8 +32718,15 @@ SELECT * FROM tab0 cor0 WHERE col2 <= - + 39 # Datafusion - Expected - 132 # Datafusion - Expected - 87 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ cor0\.col2 AS col1" at position 0 and "cor0\.col2 \+ cor0\.col0 \- \(\- cor0\.col2\) / \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 64 ) + + col2 AS col1, col2 + col0 - - + col2 / - + col2 AS col1 FROM tab2 cor0 +---- +103 +104 +122 +132 +68 +87 query I rowsort label-5303 SELECT - col1 + + col1 / - - col0 AS col2 FROM tab1 AS cor0 @@ -32942,8 +33322,15 @@ SELECT ALL col2 + + col0 + 90 / 82 * + col1 * col2 AS col2 FROM tab0 # Datafusion - Expected - 26 # Datafusion - Expected - 81 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 AS col1, 26 AS col1 FROM tab0 AS cor0 +---- +1 +21 +26 +26 +26 +81 query I rowsort label-5400 SELECT - 89 / + SUM ( DISTINCT - 34 ) FROM tab1 AS cor0 @@ -33946,8 +34333,15 @@ SELECT ALL + 1 col2 FROM tab0 AS cor0 # Datafusion - Expected - -3800 # Datafusion - Expected - 75 # Datafusion - Expected - -5510 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col2\) \* Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, - col2 * + 95 AS col1 FROM tab2 AS cor0 +---- +-2185 +-3800 +-5510 +46 +64 +75 query I rowsort label-5566 SELECT - + SUM ( + col1 ) AS col2 FROM tab0 cor0 @@ -34001,8 +34395,15 @@ SELECT ALL - 20 * + MAX ( ALL col0 ) col1 FROM tab2 # Datafusion - Expected - 59 # Datafusion - Expected - 3094 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(34\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * + 34 AS col1, + col2 AS col1 FROM tab1 AS cor0 +---- +1734 +2890 +3094 +59 +68 +96 query I rowsort SELECT DISTINCT + 16 + + + col2 FROM tab2 AS cor0 @@ -34670,8 +35071,15 @@ SELECT DISTINCT + ( + + ( + - col0 ) ) col0 FROM tab0 AS cor0 # Datafusion - Expected - -63 # Datafusion - Expected - 4350 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col0 AS col0" at position 0 and "\(\- Int64\(63\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 * col0 AS col0, ( - + 63 ) col0 FROM tab2 AS cor0 +---- +-63 +-63 +-63 +1058 +2560 +4350 query I rowsort label-5688 SELECT DISTINCT ( - MAX ( + ( - 14 ) ) ) AS col1 FROM tab1 AS cor0 @@ -36499,8 +36907,11 @@ SELECT DISTINCT + col1 + + 30 col0 FROM tab1 WHERE - col1 IN ( + 92 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 79 AS col0, - CAST ( NULL AS INTEGER ) + 71 AS col0 FROM tab2 +---- +79 +NULL query II rowsort label-5993 SELECT + 57, col1 / - col2 AS col0 FROM tab0 AS cor0 @@ -36848,8 +37259,15 @@ SELECT ALL - + col1 + + + 66 * - col1 FROM tab2 AS cor0 # Datafusion - Expected - -27 # Datafusion - Expected - 5 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 AS col1, - 27 AS col1 FROM tab1 AS cor0 +---- +-27 +-27 +-27 +14 +47 +5 query I rowsort SELECT - - col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL @@ -36954,8 +37372,15 @@ SELECT - 13 * - col0 FROM tab1 # Datafusion - Expected - 76 # Datafusion - Expected - -62 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col0" at position 0 and "Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 62 AS col0, 76 AS col0 FROM tab2 +---- +-62 +-62 +-62 +76 +76 +76 query II rowsort label-6065 SELECT ALL + MIN ( ALL 52 ) * + COUNT ( * ) - + + COUNT ( * ) col1, + 74 FROM tab2 AS cor0 @@ -37055,8 +37480,15 @@ SELECT COUNT ( * ) FROM tab2 WHERE NOT + 69 <> + - 52 + + ( - col0 ) # Datafusion - Expected - 100 # Datafusion - Expected - 97 # Datafusion - Expected - 9801 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* tab0\.col1 AS col2" at position 0 and "tab0\.col2 \* tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * col1 AS col2, col2 * col2 AS col2 FROM tab0 +---- +100 +1215 +1827 +2209 +97 +9801 query I rowsort SELECT + + ( + + col2 ) AS col0 FROM tab2 AS cor0 @@ -37310,8 +37742,15 @@ SELECT - + col1 AS col1, - col0 / col2 FROM tab1 WHERE NULL NOT IN ( + - 3 / - ( # Datafusion - Expected - 1827 # Datafusion - Expected - 978 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* tab0\.col2 \+ Int64\(\-12\) AS col0" at position 0 and "tab0\.col1 \* tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 10 * col2 + - 12 AS col0, + col1 * + + col0 AS col0 FROM tab0 +---- +1215 +1827 +458 +88 +97 +978 query I rowsort label-6119 SELECT CAST ( NULL AS INTEGER ) - - col2 AS col2 FROM tab1 @@ -37486,8 +37925,15 @@ SELECT + col1 / + ( + + col1 ) AS col2 FROM tab2 cor0 # Datafusion - Expected - 4796 # Datafusion - Expected - -74 # Datafusion - Expected - 5486 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-74\)\)\) AS col2" at position 0 and "Int64\(79\) \+ cor0\.col1 \* Int64\(69\) \+ Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - - 74 ) AS col2, 79 + + col1 * + 69 + + 94 col2 FROM tab2 AS cor0 +---- +-74 +-74 +-74 +3692 +4796 +5486 query I rowsort SELECT + col0 + + col2 - + col2 + + + col0 AS col0 FROM tab1 AS cor0 WHERE + ( + + 37 ) * - + col0 * + - col2 + - col1 * - + 96 NOT IN ( + col2 * - col0 + - + 33, + col2 + 17 ) @@ -38078,8 +38524,11 @@ SELECT + col0 / - + 41 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +3 +3 query I rowsort SELECT - ( + col1 ) * + - col1 AS col2 FROM tab2 AS cor0 @@ -38517,8 +38966,15 @@ SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL # Datafusion - Expected - 5 # Datafusion - Expected - 91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- cor0\.col1\) \+ cor0\.col1 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 + + - col1 + col1 col2, col1 AS col2 FROM tab1 AS cor0 +---- +14 +47 +5 +51 +85 +91 query I rowsort SELECT - - col2 * + 98 + - - col0 * col1 AS col2 FROM tab1 cor0 @@ -39191,8 +39647,11 @@ SELECT DISTINCT COUNT ( * ) + 39 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -161170 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(tab1\.col0\) \* \(\- Int64\(71\)\) \* Int64\(10\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( ALL col0 ) * - + 71 * + 10 AS col1, + COUNT ( * ) col1 FROM tab1 +---- +-161170 +3 query I rowsort SELECT + col2 + ( + - col1 ) AS col0 FROM tab1 @@ -39347,8 +39806,15 @@ NULL # Datafusion - Expected - 21 # Datafusion - Expected - 26 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 26 col0, col1 AS col0 FROM tab0 +---- +1 +21 +26 +26 +26 +81 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT - col1 + - col1 NOT IN ( + - col2 * - + col1 + - 7 ) @@ -40522,8 +40988,15 @@ SELECT + col1 / ( col2 ) AS col2 FROM tab1 # Datafusion - Expected - 55 # Datafusion - Expected - -98 # Datafusion - Expected - 875 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col2" at position 0 and "Int64\(14\) \+ Int64\(41\) \* tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 98 col2, 14 + + 41 * col1 AS col2 FROM tab0 +---- +-98 +-98 +-98 +3335 +55 +875 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT 45 IS NOT NULL @@ -41485,8 +41958,15 @@ SELECT - col1 + 15 FROM tab2 cor0 # Datafusion - Expected - -686 # Datafusion - Expected - -53 # Datafusion - Expected - 757 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col1\) \+ \(\- Int64\(54\)\) \- cor0\.col0 / \(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col0 \* cor0\.col0 \+ cor0\.col0 \- \(\- \(\- cor0\.col1\)\) \* cor0\.col0 \- Int64\(\-82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + + - col1 + - + 54 - + col0 / - + col0 AS col0, + col0 * + + col0 + + ( + col0 ) - - - col1 * + col0 - - 82 AS col0 FROM tab2 AS cor0 +---- +-102 +-53 +-53 +-53 +-686 +757 query I rowsort label-6796 SELECT - COUNT ( ALL + col0 ) + - + 77 FROM tab0 AS cor0 @@ -42099,8 +42579,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(11\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 11 AS col0, COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NULL > ( NULL ) +---- +-11 +0 query I rowsort SELECT - 24 * - col2 AS col0 FROM tab0 @@ -42323,8 +42806,15 @@ SELECT ALL - + 28 * - col2 - + - col0 FROM tab2 AS cor0 # Datafusion - Expected - 17 # Datafusion - Expected - 777 # Datafusion - Expected - -1593 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* cor0\.col1 AS col0" at position 0 and "cor0\.col1 \+ cor0\.col0 \- Int64\(81\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 * + col1 AS col0, col1 + col0 - + 81 * + + col1 AS col0 FROM tab0 AS cor0 +---- +-1593 +-6465 +17 +2997 +37 +777 query I rowsort SELECT - - 97 * col2 + - col2 FROM tab0 AS cor0 @@ -42534,8 +43024,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> 5 # Datafusion - Expected - 81 # Datafusion - Expected - -99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col2, col1 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +1 +21 +81 query I rowsort label-6974 SELECT DISTINCT - + COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0 @@ -42603,8 +43100,15 @@ SELECT ALL - col1 / + 30 FROM tab0 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - -75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col0, - col0 FROM tab2 AS cor0 +---- +-46 +-46 +-64 +-64 +-75 +-75 query I rowsort SELECT 42 * - col2 AS col2 FROM tab2 @@ -43334,8 +43838,15 @@ SELECT + col1 + 7 * + col1 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 5 # Datafusion - Expected - 560 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* Int64\(\-40\) AS col2" at position 0 and "cor0\.col1 \+ Int64\(75\) / cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * - 40 AS col2, + col1 + + 75 / + col0 AS col2 FROM tab1 AS cor0 +---- +15 +1880 +200 +47 +5 +560 query I rowsort label-7101 SELECT DISTINCT + - 15 * 12 / 72 / col0 FROM tab1 AS cor0 @@ -43826,8 +44337,15 @@ SELECT DISTINCT + - 37 AS col0, COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Expected - 910 # Datafusion - Expected - -97 # Datafusion - Expected - 9009 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col2\) \* Int64\(\-91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col0 AS col1, - col2 * - 91 col1 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +4277 +9009 +910 query I rowsort label-7184 SELECT ALL - MIN ( ALL col1 ) AS col1 FROM tab0 cor0 @@ -43933,8 +44451,15 @@ SELECT col1 + - + col0 + - + col2 * - col1 + col1 / - 61 - - + col0 * col1 AS co # Datafusion - Expected - 196 # Datafusion - Expected - 92 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \+ Int64\(15\) \+ \(\- tab0\.col2\) AS col1" at position 0 and "tab0\.col0 \+ tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + 15 + - col2 AS col1, col0 + + col2 AS col1 FROM tab0 +---- +-17 +13 +196 +62 +92 +97 query I rowsort SELECT col1 + + col0 + + - col0 + - 85 - + col0 AS col0 FROM tab2 @@ -44460,8 +44985,11 @@ SELECT * FROM tab1 AS cor0 WHERE NULL <= + col2 * - 29 + - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- CAST\(Int64\(0\) AS Int32\)\) \- Int64\(13\) \+ Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, - CAST ( - 0 AS INTEGER ) - + 13 + - 49 AS col2 FROM tab2 AS cor0 +---- +-62 +NULL query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT 39 <> col1 @@ -44470,8 +44998,11 @@ SELECT * FROM tab0 AS cor0 WHERE NOT 39 <> col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) col2, COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab0 cor0 +---- +-9 +3 query I rowsort SELECT DISTINCT col1 FROM tab2 WHERE NOT + + col1 IS NULL @@ -45345,8 +45876,11 @@ SELECT - col0 * - - col1 * - 81 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(tab2\.col0\)\) AS col1" at position 0 and "Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( col0 ) AS col1, + 4 AS col1 FROM tab2 +---- +-75 +4 query III rowsort SELECT * FROM tab1 WHERE NOT - 52 IS NULL @@ -45510,8 +46044,11 @@ SELECT col2 * + 83 col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -296 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(80\)\) \- CAST\(Int64\(56\) AS Int32\) AS col0" at position 0 and "Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) * - ( 80 ) - + CAST ( + + 56 AS INTEGER ) AS col0, - 26 AS col0 FROM tab2 +---- +-26 +-296 query I rowsort label-7471 SELECT DISTINCT + + COUNT ( * ) * - - ( + 42 ) FROM tab0 cor0 @@ -46898,8 +47435,11 @@ SELECT col0 * - + 29 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -189 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-63\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - ( - 63 ) * COUNT ( * ) AS col1, - 71 AS col1 FROM tab2 AS cor0 +---- +-189 +-71 query I rowsort label-7698 SELECT ALL - + col0 + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0 WHERE col0 IS NULL @@ -47112,8 +47652,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - col2 + - col0 IS NOT NULL # Datafusion - Expected - 96 # Datafusion - Expected - -75 # Datafusion - Expected - 107 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "\(\- \(\- cor0\.col0\)\) \+ Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, - ( - col0 ) + + 32 AS col2 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +107 +78 +96 query II rowsort label-7731 SELECT ALL + 42 * 97 col1, + COUNT ( * ) FROM tab0 @@ -47415,8 +47962,15 @@ SELECT DISTINCT + COUNT ( * ) * - + 61 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 # Datafusion - Expected - -10 # Datafusion - Expected - 96 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 + + + col0 AS col2, - col2 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-66 +-99 +66 +96 query I rowsort SELECT - ( 38 ) FROM tab1 AS cor0 WHERE - col0 >= + col1 @@ -48810,8 +49364,10 @@ SELECT DISTINCT + col2 / - col0 - col2 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 1eb32c01d5b992b1c63ba960ec4de607 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col1" at position 1 and "Int64\(0\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - col2, 13 AS col1, + 0 AS col1 FROM tab0 AS cor0 +---- +9 values hashing to 96ac09ee5d5b2a2407630e1c33821f02 query I rowsort label-8020 SELECT ALL COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + col1 * + 2 ) IS NULL @@ -49181,8 +49737,15 @@ SELECT + ( + col2 ) * - col0 AS col2, col1 * - + col2 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 23 # Datafusion - Expected - -96 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col0 \+ \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 col0, + col0 + - col2 col0 FROM tab1 AS cor0 +---- +-45 +-59 +-68 +-96 +23 +26 query II rowsort SELECT ALL - - col2 col0, col2 FROM tab1 AS cor0 @@ -50027,8 +50590,15 @@ SELECT + + COUNT ( * ) * + + 91 FROM tab0 cor0 # Datafusion - Expected - 66 # Datafusion - Expected - 6499 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* tab0\.col0 AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 67 * + col0 AS col1, + 66 AS col1 FROM tab0 +---- +1005 +5829 +6499 +66 +66 +66 query I rowsort SELECT - col0 * col0 * 57 FROM tab0 @@ -50565,8 +51135,15 @@ SELECT + col0 * + col0 FROM tab2 AS cor0 WHERE col0 < + col2 # Datafusion - Expected - 3 # Datafusion - Expected - -77 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 / Int64\(19\) \+ cor0\.col1 / cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, col2 / 19 + col1 / + col0 col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +2 +3 +3 query I rowsort label-8303 SELECT - col2 / + + 8 + - 44 FROM tab0 AS cor0 @@ -51474,8 +52051,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(\(\- tab1\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, + COUNT ( - col2 ) AS col1 FROM tab1 WHERE NULL IS NULL +---- +-3 +3 query I rowsort SELECT DISTINCT + 4 - - col1 * + col2 AS col0 FROM tab1 @@ -51623,8 +52203,15 @@ SELECT - 64 + + - col1 * col1 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col0, + col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT DISTINCT - col0 * + + ( col0 ) AS col0 FROM tab1 AS cor0 @@ -51706,8 +52293,15 @@ SELECT + + 43 * - 14 + - 70 AS col0 FROM tab2 WHERE - - col2 * + col2 + + 52 IS # Datafusion - Expected - 128 # Datafusion - Expected - NULL # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \- \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "tab0\.col2 \+ tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 30 - - CAST ( NULL AS INTEGER ) AS col0, col2 + col1 AS col0 FROM tab0 +---- +100 +128 +31 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT - 79 <> - ( + col0 ) @@ -51732,8 +52326,15 @@ SELECT ALL + + ( + + ( 27 ) ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, + col1 col2 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT + col1 FROM tab0 AS cor0 WHERE NOT col0 <= ( col1 ) @@ -52063,8 +52664,11 @@ SELECT col0 * - - 75 + - col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(98\)\) \+ \(\- min\(\(\- cor0\.col2\)\)\) AS col1" at position 0 and "Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 98 + + - MIN ( - col2 ) AS col1, ( + 4 ) AS col1 FROM tab1 AS cor0 +---- +-2 +4 query I rowsort SELECT + 38 + - + col0 FROM tab2 cor0 @@ -52245,8 +52849,15 @@ SELECT COUNT ( * ) AS col1, 77 FROM tab0 # Datafusion - Expected - 0 # Datafusion - Expected - 54 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col0" at position 0 and "\(\- tab0\.col0\) \+ \(\- \(\- tab0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 col0, - col0 + - - col0 AS col0 FROM tab0 +---- +0 +0 +0 +54 +54 +54 query III rowsort SELECT DISTINCT - col0 AS col2, - 4 col0, + col1 AS col1 FROM tab0 AS cor0 @@ -52477,8 +53088,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 56 col1, - COUNT ( * ) AS col1, + - COUNT ( * ) col2 FROM tab2 +---- +-3 +-3 +56 query II rowsort SELECT 77 * col2 * + col1 + col0 * - - col1 * - - col0, - 60 * + col2 AS col0 FROM tab0 @@ -52597,8 +53212,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 11 IS NOT NULL # Datafusion - Expected - 29 # Datafusion - Expected - 97 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, 29 AS col2 FROM tab0 +---- +15 +29 +29 +29 +87 +97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 @@ -52607,8 +53229,15 @@ SELECT DISTINCT col0 AS col2, 29 AS col2 FROM tab0 # Datafusion - Expected - 73 # Datafusion - Expected - 99 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, + ( 73 ) AS col0 FROM tab0 +---- +10 +47 +73 +73 +73 +99 query I rowsort label-8630 SELECT COUNT ( + 86 ) FROM tab0 @@ -53956,8 +54585,15 @@ SELECT ALL + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NOT - 8 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0, + col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 80 - - ( + 2 ) AND + 14 @@ -54744,8 +55380,15 @@ SELECT ALL - col2 AS col2, + col0 FROM tab2 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0 AS col0, col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT + + 20 * + col1 FROM tab0 cor0 @@ -54857,8 +55500,10 @@ SELECT ALL + - 70 + - COUNT ( * ) AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to b687f271a72bc8aca8a3209386071967 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "Int64\(50\) \* Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 19 AS col2, 50 * + 0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 +---- +18 values hashing to f652ad446bd9b3c783b3ea01fdcb28ce query I rowsort label-9001 SELECT DISTINCT - MAX ( - 14 ) * 86 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 @@ -55027,8 +55672,15 @@ SELECT + col0 * col0 * col0 AS col0 FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - 11 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 11 AS col1, col0 col1 FROM tab2 +---- +11 +11 +11 +46 +64 +75 query I rowsort label-9028 SELECT DISTINCT + + col2 / + col0 AS col0 FROM tab1 AS cor0 @@ -55137,8 +55789,15 @@ SELECT ALL 40 AS col2 FROM tab0 cor0 # Datafusion - Expected - -87 # Datafusion - Expected - 81 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, - col0 AS col0 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +1 +21 +81 query I rowsort label-9045 SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 ) @@ -55874,8 +56533,15 @@ SELECT ALL + - ( + 79 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT DISTINCT 93 + + col2 + + col1 AS col0 FROM tab1 @@ -55890,8 +56556,10 @@ SELECT * FROM tab0 WHERE NOT col2 * - 0 - - - col0 + + - 4 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to e62b0b4519d315d27c3f46f42eec2970 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 68 AS col2, 48 * + 19 + - col2, + + col0 AS col2 FROM tab0 +---- +9 values hashing to 63ac31c18c078ec0598707537f79e802 query I rowsort label-9168 SELECT + CAST ( 98 AS INTEGER ) FROM tab1 @@ -55937,8 +56605,15 @@ SELECT col1 * 99 FROM tab1 AS cor0 WHERE NULL >= col1 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col0, + col0 AS col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -58232,8 +58907,11 @@ SELECT ALL col2, col1 - + - 9 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col1" at position 0 and "min\(\(\- tab0\.col0\)\) \+ Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 43 AS col1, + MIN ( + - col0 ) + + 84 AS col1 FROM tab0 WHERE NOT - + col2 * 84 + 67 IS NULL +---- +-13 +-43 query I rowsort label-9555 SELECT DISTINCT + 77 + COUNT ( * ) AS col2 FROM tab2 AS cor0 @@ -59909,8 +60587,15 @@ SELECT ALL MIN ( + - 53 ) * + 39 AS col1 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + col1 ) AS col1, col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT 9 * - 52 >= + 47 @@ -60147,8 +60832,15 @@ NULL # Datafusion - Expected - -3178 # Datafusion - Expected - 69 # Datafusion - Expected - 1368 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "\(\- cor0\.col1\) \* Int64\(\-23\) \+ \(\- cor0\.col0\) \* Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 AS col0, - col1 * + - 23 + + - col0 * 33 AS col0 FROM tab0 AS cor0 +---- +-2388 +-3178 +1368 +69 +69 +69 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 IN ( + 17 ) @@ -60313,8 +61005,11 @@ SELECT col2 * + - col2 + - 32 + 97 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 1692 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col2" at position 0 and "sum\(DISTINCT \(\- Int64\(94\)\)\) \* \(\- Int64\(18\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 AS col2, SUM ( DISTINCT - ( + 94 ) ) * - + 18 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 +---- +1692 +39 query I rowsort label-9900 SELECT + MAX ( - ( + col2 ) ) AS col0 FROM tab1 AS cor0 WHERE - col0 IS NULL @@ -60373,8 +61068,15 @@ SELECT ALL MIN ( DISTINCT + col0 ) AS col1 FROM tab1 # Datafusion - Expected - 10 # Datafusion - Expected - 97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col1, + col2 AS col1 FROM tab0 +---- +10 +15 +47 +87 +97 +99 query III rowsort SELECT * FROM tab1 WHERE NULL >= col2 + + col0 + - + col2 / col0 @@ -60625,8 +61327,15 @@ SELECT ALL col1 + + col2 / + 34 FROM tab0 cor0 # Datafusion - Expected - 1932 # Datafusion - Expected - 96 # Datafusion - Expected - 1932 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(69\) \* Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, 69 * 28 AS col1 FROM tab1 cor0 +---- +1932 +1932 +1932 +59 +68 +96 query II rowsort SELECT DISTINCT col2 * + + col0 + + col0 - + 3, col1 FROM tab1 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_63.slt b/data/sqlite/random/aggregates/slt_good_63.slt index e3c8d3f..5898ddb 100644 --- a/data/sqlite/random/aggregates/slt_good_63.slt +++ b/data/sqlite/random/aggregates/slt_good_63.slt @@ -65,8 +65,15 @@ SELECT + SUM ( DISTINCT + 95 ) col0 FROM tab1 # Datafusion - Expected - 10 # Datafusion - Expected - -81 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 col0, col2 col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +10 +47 +99 query I rowsort SELECT DISTINCT - + col1 + - 47 + col2 col1 FROM tab1 AS cor0 @@ -265,8 +272,11 @@ SELECT DISTINCT - col2 * col0 + - + 48 / 76 FROM tab1 AS cor0 WHERE NULL > NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 16 AS col0, + COUNT ( * ) AS col0 FROM tab2 +---- +16 +3 query I rowsort SELECT DISTINCT - 41 + - col2 AS col0 FROM tab2 @@ -318,8 +328,15 @@ SELECT col1 + + - 31 - - - 43 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 16 # Datafusion - Expected - 15 # Datafusion - Expected - 1746 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(15\) AS Int32\) AS col0" at position 0 and "\(\- cor0\.col0\) \* \(\- cor0\.col1\) \- Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + + 15 AS INTEGER ) AS col0, - col0 * - col1 - 81 AS col0 FROM tab0 AS cor0 +---- +1134 +15 +15 +15 +16 +1746 query I rowsort SELECT DISTINCT 48 * 29 FROM tab1 AS cor0 @@ -636,8 +653,15 @@ SELECT DISTINCT + ( + + 82 ) * + - col2 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, + col2 AS col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT DISTINCT 1 * - col1 AS col0 FROM tab1 @@ -1124,8 +1148,12 @@ NULL # Datafusion - Expected - -765 # Datafusion - Expected - -54 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-18\)\) AS col2" at position 1 and "Int64\(\-34\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 51 * - MIN ( + col0 ), SUM ( - 18 ) AS col2, - 34 AS col2 FROM tab0 AS cor0 +---- +-34 +-54 +-765 query I rowsort SELECT 52 * - + col0 FROM tab1 AS cor0 @@ -1182,8 +1210,15 @@ SELECT DISTINCT CAST ( + 2 AS INTEGER ) FROM tab0 # Datafusion - Expected - 4250 # Datafusion - Expected - -91 # Datafusion - Expected - 4550 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col2" at position 0 and "\(\- Int64\(\-50\)\) \* tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, + ( - - 50 ) * + col0 AS col2 FROM tab1 +---- +-51 +-85 +-91 +2550 +4250 +4550 query I rowsort label-183 SELECT COUNT ( * ) FROM tab2 WHERE NOT - col1 > + 90 @@ -1845,8 +1880,15 @@ SELECT col2 + + - col2 + 35 AS col1 FROM tab2 WHERE NULL NOT IN ( - + col1 * - + # Datafusion - Expected - 441 # Datafusion - Expected - 97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col1 \* CAST\(tab0\.col1 AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col2, col1 * + CAST ( col1 AS INTEGER ) AS col2 FROM tab0 +---- +1 +15 +441 +6561 +87 +97 query I rowsort label-297 SELECT ALL col2 * - CAST ( - col0 AS INTEGER ) FROM tab0 WHERE NULL NOT IN ( col1 + + col2 ) @@ -2109,8 +2151,15 @@ NULL # Datafusion - Expected - 4441 # Datafusion - Expected - -5 # Datafusion - Expected - 583 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "Int64\(73\) \+ tab1\.col0 \+ tab1\.col0 \* tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - col1 ) AS col2, 73 + col0 + col0 * + + col1 AS col2 FROM tab1 +---- +-14 +-47 +-5 +4441 +583 +838 query III rowsort SELECT DISTINCT * FROM tab0 WHERE + ( - 17 ) IS NOT NULL @@ -2150,8 +2199,15 @@ NULL # Datafusion - Expected - 63 # Datafusion - Expected - -58 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 AS col0, + 63 AS col0 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL +---- +-23 +-40 +-58 +63 +63 +63 query I rowsort label-348 SELECT ALL + SUM ( ALL - - col2 ) AS col0 FROM tab2 AS cor0 @@ -2438,8 +2494,15 @@ SELECT col1 / - - col0 AS col1, + col0 + col0 FROM tab0 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - -97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( col0 ), - col0 FROM tab0 AS cor0 +---- +-15 +-15 +-87 +-87 +-97 +-97 query I rowsort label-398 SELECT ALL - + 29 / - ( col2 ) + + + col0 AS col0 FROM tab1 AS cor0 @@ -2966,8 +3029,15 @@ NULL # Datafusion - Expected - 68 # Datafusion - Expected - NULL # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* CAST\(NULL AS Int32\) \* cor0\.col1 \+ Int64\(17\) \* cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + CAST ( NULL AS INTEGER ) * col1 + + 17 * col2 col1, + col2 AS col1 FROM tab1 cor0 +---- +59 +68 +96 +NULL +NULL +NULL query I rowsort SELECT col2 * + col2 * 80 * + + col0 AS col1 FROM tab1 AS cor0 @@ -3416,8 +3486,15 @@ SELECT DISTINCT - + ( 86 ) - - col2 FROM tab1 WHERE NOT - col0 / - col1 + col2 B # Datafusion - Expected - 714 # Datafusion - Expected - 6 # Datafusion - Expected - 425 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \+ \(\- Int64\(\-65\)\) AS col2" at position 0 and "tab1\.col0 \* \(\- \(\- tab1\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 + - - 65 AS col2, + col0 * - - col1 col2 FROM tab1 +---- +-3 +-31 +425 +4277 +6 +714 query I rowsort label-552 SELECT COUNT ( + + col0 ) AS col2 FROM tab2 @@ -5206,8 +5283,15 @@ SELECT ALL MAX ( DISTINCT - 83 ) * - - COUNT ( * ) - COUNT ( * ) col1 FROM tab0, # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 col2, + col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query III rowsort SELECT * FROM tab1 WHERE NOT + col1 / - col2 IS NOT NULL @@ -5803,8 +5887,15 @@ SELECT ALL + 81 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL # Datafusion - Expected - 7314 # Datafusion - Expected - -77 # Datafusion - Expected - 6247 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(96\) \* \(\- \(\- cor0\.col0\)\) \+ cor0\.col0 \+ \(\- \(\- CAST\(Int64\(30\) AS Int32\)\)\) \+ Int64\(36\) / \(\- Int64\(\-4\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 AS col2, 96 * - - col0 + col0 + - - CAST ( + 30 AS INTEGER ) + 36 / - ( - 4 ) AS col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +4501 +6247 +7314 query III rowsort SELECT ALL * FROM tab1 cor0 WHERE NOT - col0 * + 86 BETWEEN - col1 + + ( - col2 ) + col2 * - col0 / + col0 AND + ( 94 ) + + 8 @@ -6193,8 +6284,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE - 38 <= - + col2 * col1 # Datafusion - Expected - 315565 # Datafusion - Expected - 75 # Datafusion - Expected - 377059 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col0 \+ cor0\.col1 \* \(\- cor0\.col0\) \* \(\- cor0\.col0\) \+ Int64\(38\) \+ Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, col0 + col1 * - col0 * + - col0 + + 38 + + 71 AS col1 FROM tab2 cor0 +---- +108071 +315565 +377059 +46 +64 +75 query II rowsort SELECT 66, col2 FROM tab1 cor0 @@ -6557,8 +6655,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 - + - ( CAST ( - col2 AS INTEGER # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT 50 + col0 FROM tab1 @@ -6945,8 +7050,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - SUM ( ALL + 72 ) AS col1, 91 + + - COUNT ( * ) AS col1 FROM tab2 +---- +-216 +88 query I rowsort SELECT ALL - col0 AS col0 FROM tab2 WHERE NOT + col1 = NULL @@ -7013,8 +7121,11 @@ SELECT DISTINCT col2 * col1 + + col0 * 10 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1121 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* \(\- \(\- max\(\(\- tab1\.col2\)\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 19 * - - MAX ( ALL - + col2 ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 +---- +-1121 +NULL query II rowsort label-1146 SELECT + 6 AS col2, - ( + ( + - COUNT ( * ) ) ) * + + 6 + - ( - + COUNT ( * ) ) - COUNT ( * ) AS col0 FROM tab2 cor0 @@ -7157,8 +7268,15 @@ SELECT - + CAST ( - 88 AS INTEGER ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - 58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, - col2 AS col1 FROM tab2 cor0 +---- +-23 +-40 +-58 +23 +40 +58 query I rowsort SELECT DISTINCT - 23 + - - col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL @@ -8014,8 +8132,9 @@ SELECT ( - 42 ) * col1 FROM tab0 AS cor0 -882 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, 20 col2 FROM tab0 AS cor0 WHERE NOT - 65 * + 74 / + col1 BETWEEN NULL AND NULL +---- query I rowsort SELECT DISTINCT col2 * + col2 AS col1 FROM tab2 cor0 @@ -8316,8 +8435,15 @@ SELECT 61 * 56 * col1 * + 61 FROM tab2 WHERE + - ( + col0 ) IS NOT NULL # Datafusion - Expected - 100 # Datafusion - Expected - 65 # Datafusion - Expected - 128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \+ Int64\(50\) AS col0" at position 0 and "tab0\.col1 \+ tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 + 50 AS col0, ( + col1 ) + + col2 AS col0 FROM tab0 +---- +100 +128 +137 +147 +31 +65 query III rowsort label-1366 SELECT * FROM tab0 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NULL @@ -8407,8 +8533,15 @@ SELECT DISTINCT 63 / + - col0 col1 FROM tab0 AS cor0 # Datafusion - Expected - -4957 # Datafusion - Expected - -71 # Datafusion - Expected - -5054 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(71\)\) AS col0" at position 0 and "Int64\(\-29\) \+ \(\- cor0\.col0\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 71 AS col0, - 29 + - col0 * + + col1 col0 FROM tab2 AS cor0 +---- +-2375 +-4957 +-5054 +-71 +-71 +-71 query III rowsort SELECT * FROM tab0 WHERE NOT - - 66 / col2 * + 99 NOT BETWEEN + 41 AND NULL @@ -8653,8 +8786,11 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 BETWEEN NULL AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab0 +---- +3 +3 query I rowsort label-1423 SELECT - COUNT ( ALL + - col0 ) * + 75 FROM tab1 @@ -9162,8 +9298,15 @@ SELECT ALL col1 * + 84 * 99 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 0 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ \(\- tab1\.col0\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 + + - col0 col2, col1 AS col2 FROM tab1 +---- +0 +0 +0 +14 +47 +5 query I rowsort SELECT ALL + 35 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 @@ -10534,8 +10677,15 @@ NULL # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, col1 col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query II rowsort SELECT 31 col1, col2 + + 87 + - col0 col0 FROM tab1 @@ -11732,8 +11882,15 @@ SELECT ALL COUNT ( * ) FROM tab0 WHERE NULL IS NULL # Datafusion - Expected - 0 # Datafusion - Expected - 6816 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* Int64\(71\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 * 71 AS col0, 0 AS col0 FROM tab1 +---- +0 +0 +0 +4189 +4828 +6816 query I rowsort label-1942 SELECT ALL + MAX ( - + 48 ) + + 56 AS col0 FROM tab0 @@ -13497,8 +13654,11 @@ SELECT col2 AS col0, - 70 * + 0 / col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 5 AS col1, + COUNT ( * ) AS col1 FROM tab0 cor0 +---- +3 +5 query I rowsort SELECT DISTINCT - col1 + 40 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL @@ -13708,8 +13868,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), + COUNT ( * ) FROM tab0 AS cor0 +---- +3 +3 query I rowsort label-2264 SELECT ALL - COUNT ( DISTINCT col0 ) FROM tab1 AS cor0 @@ -14503,8 +14666,15 @@ SELECT ALL col1 AS col2 FROM tab2 cor0 WHERE NOT NULL <> ( NULL ) # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 FROM tab2 cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-2400 SELECT ALL + + col1 * - col0 + - ( + CAST ( NULL AS INTEGER ) ) + + - CAST ( CAST ( - col0 AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0 @@ -14932,8 +15102,15 @@ SELECT ALL - COUNT ( - col2 ) FROM tab2 # Datafusion - Expected - -64 # Datafusion - Expected - 57 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "\(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 57 AS col0, - col0 col0 FROM tab2 WHERE + col2 IS NOT NULL +---- +-46 +-64 +-75 +57 +57 +57 query I rowsort label-2467 SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT - col2 - - ( col0 ) = + col2 @@ -15124,8 +15301,9 @@ SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col1 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col1, + col1 FROM tab2 AS cor0 WHERE col0 = - col1 + - 52 +---- query I rowsort label-2499 SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 cor0 @@ -15253,8 +15431,15 @@ SELECT DISTINCT ( + 51 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL # Datafusion - Expected - 89 # Datafusion - Expected - 4814 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(83\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 * + 83 AS col0, 89 col0 FROM tab2 AS cor0 +---- +1909 +3320 +4814 +89 +89 +89 query II rowsort SELECT 97 + - col1 AS col1, col2 FROM tab0 AS cor0 @@ -16486,8 +16671,15 @@ NULL # Datafusion - Expected - 64 # Datafusion - Expected - 58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "\(\- \(\- tab2\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, - ( - + col0 ) AS col0 FROM tab2 +---- +23 +40 +46 +58 +64 +75 query II rowsort SELECT - col2 AS col2, ( + + ( col0 ) ) FROM tab2 @@ -16907,8 +17099,11 @@ SELECT DISTINCT - - col2 AS col1, col1 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +3 +3 query I rowsort SELECT + col1 * + + col2 * + 59 AS col1 FROM tab1 @@ -17460,8 +17655,15 @@ SELECT - 54 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( 84 * 70 ) IS NOT N # Datafusion - Expected - 4927 # Datafusion - Expected - 44 # Datafusion - Expected - 5024 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-44\)\) AS col2" at position 0 and "\(\- cor0\.col0\) \* \(\- cor0\.col1\) \- Int64\(50\) / Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 44 AS col2, - col0 * + - col1 - + 50 / + 48 AS col2 FROM tab2 cor0 +---- +2345 +44 +44 +44 +4927 +5024 query I rowsort SELECT DISTINCT + - 16 + ( + col0 ) FROM tab1 AS cor0 @@ -17632,8 +17834,11 @@ SELECT - col0 / - 96 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 223 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "sum\(DISTINCT tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 AS col0, SUM ( DISTINCT col2 ) AS col0 FROM tab1 +---- +2 +223 query I rowsort label-2912 SELECT DISTINCT MIN ( DISTINCT - - col0 ) AS col1 FROM tab0 @@ -18220,8 +18425,15 @@ SELECT ALL - SUM ( DISTINCT - - 39 ) FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, + col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT 47 * - 73 AS col2 FROM tab0 @@ -18317,8 +18529,15 @@ SELECT col2 AS col1, col2 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 96 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "CAST\(cor0\.col1 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - ( col2 ) AS col0, CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0 +---- +14 +47 +5 +59 +68 +96 query I rowsort SELECT DISTINCT + + col0 + - 49 * - 27 FROM tab1 cor0 @@ -18577,8 +18796,15 @@ SELECT col1 + + + col1 AS col0, col0 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 192 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + col2 AS col1, col2 AS col1 FROM tab1 AS cor0 +---- +118 +136 +192 +59 +68 +96 query I rowsort SELECT ALL col2 + ( - - col0 ) * 76 FROM tab1 @@ -18939,8 +19165,15 @@ SELECT + 33 * - col0 FROM tab0 # Datafusion - Expected - 13130277 # Datafusion - Expected - -77 # Datafusion - Expected - 14798736 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col0" at position 0 and "\(\- tab2\.col1\) \* tab2\.col1 \* Int64\(\-39\) \* CAST\(tab2\.col0 AS Int32\) \+ Int64\(\-48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, - col1 * col1 * - 39 * CAST ( + col0 AS INTEGER ) + + - 48 col0 FROM tab2 +---- +-51 +-67 +-77 +13130277 +14798736 +4666146 query I rowsort SELECT DISTINCT ( - - col2 ) FROM tab2 @@ -19211,8 +19444,15 @@ SELECT DISTINCT - + col1 + + 71 FROM tab1 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 76 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \+ Int64\(11\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 + + 11 AS col2, - col2 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +76 +76 +76 query IIIIII rowsort SELECT * FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE NULL NOT BETWEEN NULL AND 34 @@ -19425,8 +19665,15 @@ SELECT ALL + + ( + 17 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 681 # Datafusion - Expected - -97 # Datafusion - Expected - 6535 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "CAST\(Int64\(66\) AS Int32\) \* cor0\.col2 \- \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 col0, CAST ( 66 AS INTEGER ) * col2 - - col1 AS col0 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +3183 +6535 +681 query I rowsort SELECT col0 + - + 69 AS col0 FROM tab2 @@ -20817,8 +21064,10 @@ SELECT + 2 + - col2 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 571ceb966bb67f7313d37b7ac1bed20d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(10\) AS col0" at position 0 and "tab0\.col2 \* tab0\.col1 \+ tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 81 + - CAST ( NULL AS INTEGER ) + + + 10 AS col0, col2 * + col1 + col1 AS col0, - col1 / 30 - - 28 AS col1 FROM tab0 +---- +9 values hashing to 93aff9feed29af0ea0aedfc7739d9702 query III rowsort SELECT DISTINCT * FROM tab2 WHERE 42 <> NULL @@ -21063,8 +21312,15 @@ SELECT + ( col0 ) * - 23 * + col2 * col2 AS col0 FROM tab1 # Datafusion - Expected - 25075 # Datafusion - Expected - 91 # Datafusion - Expected - 290836 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col0 \* tab1\.col2 \* tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + col0 ) AS col1, + col0 * + col2 * + + col1 AS col1 FROM tab1 +---- +25075 +290836 +51 +68544 +85 +91 query I rowsort SELECT DISTINCT 6 + + 49 FROM tab2 @@ -21109,8 +21365,11 @@ SELECT * FROM tab2 WHERE col1 <> ( + 68 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(97\)\)\) AS col1" at position 0 and "\(\- Int64\(\-89\)\) \+ max\(\(\- Int64\(\-27\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MAX ( ( + 97 ) ) AS col1, ( - - 89 ) + + + MAX ( ALL - - 27 ) AS col1 FROM tab2 AS cor0 +---- +-97 +116 query I rowsort label-3498 SELECT - 75 - + col1 / + col2 + - + col1 col1 FROM tab2 AS cor0 @@ -21277,8 +21536,15 @@ SELECT DISTINCT - col1 / col1 + - 38 - - ( col2 ) / - CAST ( + ( + 46 ) AS INTEG # Datafusion - Expected - -21 # Datafusion - Expected - -81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\)" at position 0 and "\(\- tab0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1, - col1 FROM tab0 +---- +-1 +-1 +-21 +-21 +-81 +-81 query III rowsort SELECT ALL * FROM tab2 WHERE NOT NULL <> ( - - col0 * - col2 ) @@ -21709,8 +21975,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +3 +3 query I rowsort label-3601 SELECT DISTINCT + + MAX ( - ( + - col0 ) ) * COUNT ( * ) AS col1 FROM tab2 AS cor0 @@ -21768,8 +22037,10 @@ SELECT ALL 8 + + col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 1402a6c1ecd2dd88d5c50583683a0102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col0\) AS Int32\) \- \(\- \(\- \(\- cor0\.col0\)\)\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + CAST ( - col0 AS INTEGER ) - - - ( - col0 ) AS col1, - col1 AS col1, - ( - 23 ) FROM tab0 cor0 +---- +9 values hashing to 856e87d667e749e80727d33d47283aeb query I rowsort SELECT ALL - col0 - - col1 + + col2 / - col2 col1 FROM tab0 AS cor0 WHERE col0 IS NULL @@ -22393,8 +22664,15 @@ SELECT ALL col0 AS col0, + col1 FROM tab2 # Datafusion - Expected - 88 # Datafusion - Expected - 233 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ CAST\(Int64\(89\) AS Int32\) \+ Int64\(45\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + + CAST ( + 89 AS INTEGER ) + + 45 AS col0, + 88 AS col0 FROM tab0 +---- +144 +181 +233 +88 +88 +88 query I rowsort SELECT + col2 * - - col0 col0 FROM tab0 @@ -23925,8 +24203,15 @@ SELECT col0 * - col1 + 9 col0, col0 + - + 33 - + col0 FROM tab1 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col1, + col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query II rowsort SELECT DISTINCT - col2 AS col1, col2 AS col0 FROM tab0 AS cor0 @@ -24674,8 +24959,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- Int64\(71\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - + COUNT ( * ) ) AS col1, + ( - + 71 ) AS col1 FROM tab1 AS cor0 +---- +-3 +-71 query II rowsort SELECT + + 89 col0, + 1 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 + - + 48 IS NOT NULL @@ -24766,8 +25054,11 @@ SELECT - COUNT ( * ) / - 57 col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -261 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) col1, - COUNT ( * ) * 87 AS col1 FROM tab1 +---- +-261 +3 query I rowsort label-4116 SELECT SUM ( ALL - 8 ) AS col2 FROM tab2 @@ -24808,8 +25099,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 81 ) + + MAX ( DISTINCT + 0 ) AS col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +-3 +81 query I rowsort label-4122 SELECT ALL + 65 * COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 @@ -25312,8 +25606,11 @@ SELECT DISTINCT 93 / + 82 col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) \* CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-57\)\) AS col1" at position 0 and "Int64\(25\) \+ Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 37 * + + CAST ( NULL AS INTEGER ) * COUNT ( * ) + - - 57 AS col1, + 25 + - 56 AS col1 FROM tab0 +---- +-31 +NULL query I rowsort SELECT - col2 + - col1 col1 FROM tab2 @@ -25684,8 +25981,15 @@ SELECT - MIN ( DISTINCT - - col1 ) FROM tab2 AS cor0 # Datafusion - Expected - 315 # Datafusion - Expected - 91 # Datafusion - Expected - 2961 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(63\) \* \(\- \(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, + 63 * - - col1 AS col2 FROM tab1 AS cor0 +---- +2961 +315 +51 +85 +882 +91 query I rowsort label-4271 SELECT + + 2 - - 73 FROM tab1 WHERE NOT - 45 = - col2 * + CAST ( NULL AS INTEGER ) * + col0 @@ -26476,8 +26780,11 @@ SELECT ALL 10 * + COUNT ( * ) FROM tab2 WHERE NOT ( + + col1 ) NOT IN ( 63 * + c # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(22\) AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + CAST ( + 22 AS INTEGER ) AS col0, + COUNT ( * ) * + 13 AS col0 FROM tab1 AS cor0 +---- +22 +39 query I rowsort label-4411 SELECT DISTINCT - SUM ( ALL + 18 ) + - 36 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 AND - 63 @@ -27312,8 +27619,11 @@ SELECT - 98 AS col2, + ( + col0 ) AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\)" at position 0 and "CAST\(NULL AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) FROM tab1 +---- +NULL +NULL query II rowsort label-4554 SELECT ALL 26, + COUNT ( * ) AS col1 FROM tab1 @@ -27571,8 +27881,15 @@ SELECT MIN ( - col1 ) AS col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col0 AS col2, ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 +---- +15 +87 +97 +NULL +NULL +NULL query I rowsort SELECT ( + - 70 ) * 38 FROM tab2 AS cor0 @@ -27986,8 +28303,15 @@ SELECT * FROM tab2 AS cor0 WHERE ( NULL ) = + col1 # Datafusion - Expected - 87 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, col0 AS col1 FROM tab0 AS cor0 +---- +15 +87 +97 +NULL +NULL +NULL query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col2 * 95 / col2 + + + col2 AND NULL @@ -29154,8 +29478,15 @@ SELECT ALL col2 AS col2 FROM tab1 WHERE ( NULL >= col0 ) # Datafusion - Expected - 20 # Datafusion - Expected - NULL # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "tab0\.col2 \- \(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + col2 - - col2 AS col0 FROM tab0 +---- +198 +20 +94 +NULL +NULL +NULL query II rowsort SELECT col1 col2, - 8 + - col2 - - 81 * + col2 col0 FROM tab2 @@ -29860,8 +30191,11 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= col2 / 12 * + 90 * + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- cor0\.col0\)\)\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MAX ( - col0 ) AS col0, + 12 AS col0 FROM tab2 AS cor0 +---- +12 +46 query I rowsort label-4969 SELECT - MIN ( - + 45 ) FROM tab0 AS cor0 @@ -30787,8 +31121,15 @@ SELECT DISTINCT + 18 * + ( ( + - 65 ) ) FROM tab1 # Datafusion - Expected - 728 # Datafusion - Expected - -475 # Datafusion - Expected - 680 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* \(\- tab1\.col1\) AS col1" at position 0 and "tab1\.col0 \* \(\- Int64\(\-8\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 95 * - + col1 AS col1, + col0 * ( - - 8 ) AS col1 FROM tab1 +---- +-1330 +-4465 +-475 +408 +680 +728 query I rowsort label-5118 SELECT ALL - ( + 31 ) / col0 + - CAST ( + + 63 AS INTEGER ) AS col0 FROM tab0 @@ -31144,8 +31485,15 @@ SELECT ALL + + 66 + col2 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - -319 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \+ \(\- cor0\.col0\) \+ Int64\(\-70\) \+ \(\- cor0\.col0\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 55 + + - col0 + - 70 + - col0 AS col0, - col0 AS col0 FROM tab0 cor0 +---- +-15 +-155 +-299 +-319 +-87 +-97 query I rowsort label-5175 SELECT ALL SUM ( DISTINCT + 11 ) col2 FROM tab2 AS cor0 @@ -32042,8 +32390,15 @@ SELECT - SUM ( ALL - col0 ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col1 col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 +---- +51 +67 +77 +NULL +NULL +NULL query III rowsort label-5320 SELECT DISTINCT * FROM tab1 WHERE col1 BETWEEN 16 * 30 * - col1 + CAST ( NULL AS INTEGER ) + - col2 + + - 86 + + col2 AND NULL @@ -32858,8 +33213,15 @@ NULL # Datafusion - Expected - 44 # Datafusion - Expected - 2295 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* Int64\(45\) AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 51 * 45 AS col2, 44 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 + - + col1 IS NULL +---- +2295 +2295 +2295 +44 +44 +44 query II rowsort label-5465 SELECT + 41, - COUNT ( * ) AS col1 FROM tab2 @@ -33449,8 +33811,9 @@ SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col0 + - - 25 - - col2 > 91 + - col2 +---- query II rowsort SELECT ALL + 87, col2 FROM tab1 @@ -33732,8 +34095,15 @@ SELECT ALL - - 87 * - + 97 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 69 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 69 col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 +---- +69 +69 +69 +NULL +NULL +NULL query I rowsort SELECT ALL + ( - ( + 49 ) ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 cor1 @@ -35140,8 +35510,15 @@ SELECT DISTINCT COUNT ( - CAST ( col2 AS INTEGER ) ) AS col1 FROM tab1 # Datafusion - Expected - -66 # Datafusion - Expected - NULL # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* tab2\.col0 \+ tab2\.col1 \+ tab2\.col0 \* \(\- Int64\(79\)\) \* tab2\.col2 \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(0\) \+ tab2\.col0 \+ Int64\(59\) AS col1" at position 0 and "Int64\(62\) / tab2\.col2 \+ \(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 * col0 + col1 + col0 * - ( + + 79 ) * + col2 * + - CAST ( NULL AS INTEGER ) * + - 0 + + col0 + + 59 AS col1, 62 / col2 + - col1 AS col1 FROM tab2 +---- +-49 +-66 +-76 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT + - 50 + - 33 IS NOT NULL @@ -36051,8 +36428,15 @@ SELECT DISTINCT col1 + 11 / + col1 AS col0, - col2 FROM tab2 # Datafusion - Expected - 71 # Datafusion - Expected - -36 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col2" at position 0 and "Int64\(7\) \+ tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 36 AS col2, + 7 + col0 AS col2 FROM tab2 +---- +-36 +-36 +-36 +53 +71 +82 query II rowsort SELECT ALL 47, 25 * + 13 AS col1 FROM tab0 @@ -37336,8 +37720,15 @@ SELECT * FROM tab1 WHERE - 3 IS NULL # Datafusion - Expected - 68 # Datafusion - Expected - 8 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 8 AS col0, col2 AS col0 FROM tab1 +---- +59 +68 +8 +8 +8 +96 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 @@ -37579,8 +37970,15 @@ SELECT ALL - + col0, col1 FROM tab1 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 76 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 +---- +76 +76 +76 +NULL +NULL +NULL query I rowsort label-6245 SELECT - SUM ( + col0 ) FROM tab1 AS cor0 @@ -38073,8 +38471,15 @@ SELECT ALL - COUNT ( ALL - + 48 ) - - 14 col2 FROM tab2 AS cor0 # Datafusion - Expected - -64 # 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 "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 85 AS col2, - col0 col2 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +-85 +-85 +-85 query II rowsort SELECT - col1 AS col1, col2 * + col2 FROM tab0 AS cor0 @@ -38276,8 +38681,11 @@ SELECT col0 + - - ( + col2 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, - ( - + CAST ( NULL AS INTEGER ) ) col2 FROM tab0 WHERE - - CAST ( + 58 AS INTEGER ) NOT BETWEEN - + 35 / + col0 + 68 AND - col0 +---- +3 +NULL query I rowsort SELECT DISTINCT col0 * col2 + - + 57 + 91 FROM tab2 @@ -38430,8 +38838,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 +---- +3 +3 query I rowsort label-6386 SELECT - CAST ( NULL AS INTEGER ) + + + 77 AS col2 FROM tab2 @@ -39703,8 +40114,15 @@ SELECT DISTINCT - MAX ( ALL - 68 ) * 30 * 58 FROM tab0 # Datafusion - Expected - 40 # Datafusion - Expected - -754 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \* Int64\(13\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 * + 13 AS col1, col2 AS col1 FROM tab2 +---- +-299 +-520 +-754 +23 +40 +58 query I rowsort SELECT + 12 + + col2 FROM tab1 AS cor0 @@ -40914,8 +41332,15 @@ SELECT - ( + + 12 ) AS col2 FROM tab1 # Datafusion - Expected - 128 # Datafusion - Expected - 58 # Datafusion - Expected - 150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "tab2\.col0 \+ tab2\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, + col0 + + col0 AS col0 FROM tab2 +---- +128 +150 +23 +40 +58 +92 query I rowsort label-6809 SELECT DISTINCT - MIN ( col1 ) FROM tab1 AS cor0 WHERE + col2 + + - CAST ( - 79 AS INTEGER ) / - col0 BETWEEN + col0 * + 80 AND NULL @@ -42215,8 +42640,11 @@ SELECT * FROM tab1 WHERE NOT NULL IN ( + col1 - + 34, - col0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "max\(tab1\.col0\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, MAX ( col0 ) + + + COUNT ( * ) col1 FROM tab1 +---- +3 +94 query I rowsort SELECT + col0 + + 26 FROM tab1 @@ -42904,8 +43332,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL # Datafusion - Expected - 236 # Datafusion - Expected - 27 # Datafusion - Expected - 236 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col2" at position 0 and "Int64\(4\) \* \(\- Int64\(\-59\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 27 AS col2, 4 * - - 59 AS col2 FROM tab0 AS cor0 +---- +236 +236 +236 +27 +27 +27 query I rowsort SELECT DISTINCT + col1 * 65 AS col0 FROM tab0 AS cor0 @@ -43360,8 +43795,15 @@ SELECT ALL + CAST ( + 85 AS INTEGER ) * + 36 + - col0 FROM tab0 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - -9700 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- tab0\.col0\) \- tab0\.col0 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * - col0 - + col0 col0, col1 AS col0 FROM tab0 +---- +-720 +-957 +-9700 +1 +21 +81 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT - col0 / + col0 = NULL @@ -43875,8 +44317,15 @@ SELECT col2 * + col0, - col1 + ( - col1 ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 4350 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col0 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 * col0 AS col1, col0 AS col1 FROM tab2 AS cor0 +---- +1058 +2560 +4350 +46 +64 +75 query I rowsort SELECT + + col0 * - - 37 + + 69 AS col2 FROM tab1 AS cor0 @@ -45141,8 +45590,15 @@ SELECT ALL + col0 AS col2, 67 + + + col1 AS col0 FROM tab0 # Datafusion - Expected - 10 # Datafusion - Expected - 97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, col2 AS col1 FROM tab0 +---- +10 +15 +47 +87 +97 +99 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NULL > col2 @@ -45649,8 +46105,11 @@ 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\(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\. +query II valuesort SELECT + ( + COUNT ( * ) ), ( COUNT ( * ) ) FROM tab0 +---- +3 +3 query I rowsort label-7590 SELECT - COUNT ( - col1 ) AS col2 FROM tab2 @@ -46132,8 +46591,15 @@ SELECT ALL - ( - - COUNT ( * ) ) * - COUNT ( * ) * - 53 FROM tab1 # Datafusion - Expected - -15 # Datafusion - Expected - 99 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "\(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 col1, - col0 AS col1 FROM tab0 +---- +-15 +-87 +-97 +10 +47 +99 query I rowsort label-7667 SELECT DISTINCT 27 * - - CAST ( NULL AS INTEGER ) * + col1 * col1 / - col1 * + + 5 + col0 AS col2 FROM tab2 @@ -47281,8 +47747,15 @@ SELECT DISTINCT col1 * + col2 - + col2 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -91 # Datafusion - Expected - 5 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, - col0 AS col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +14 +47 +5 query II rowsort SELECT col0 AS col0, - col0 AS col1 FROM tab2 AS cor0 @@ -47587,8 +48060,11 @@ SELECT COUNT ( * ) * + 23 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col2" at position 0 and "max\(tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 52 AS col2, MAX ( ALL + col2 ) AS col2 FROM tab2 +---- +52 +58 query I rowsort SELECT 41 * - - col2 * col2 AS col2 FROM tab0 AS cor0 @@ -48102,8 +48578,11 @@ SELECT * FROM tab0 AS cor0 WHERE col2 * + 24 IN ( + - 80 * 62 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-29\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( ALL - 29 ) AS col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +-29 +3 query I rowsort SELECT ALL + col1 FROM tab1 WHERE NOT ( - col1 ) NOT IN ( - col2 ) @@ -48764,8 +49243,10 @@ SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE NOT ( NOT ( + 63 IS NOT NULL ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to 81cd2d7d07b61b829769a656534ce72b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col2" at position 0 and "Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 69 AS col2, 79 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 +---- +18 values hashing to 1f8393b9f287ff712775e7fede92deca query III rowsort SELECT ALL * FROM tab2 WHERE col0 IN ( ( ( - + col2 ) ), + 85 / - - 67 ) @@ -49025,8 +49506,9 @@ SELECT MAX ( - - col0 ) FROM tab0 97 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) \* \(\- tab0\.col1\) \+ tab0\.col1 \* \(\- \(\- tab0\.col0\)\) \+ tab0\.col2 AS col1" at position 0 and "Int64\(30\) \* \(\- tab0\.col2\) \* \(\- Int64\(13\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 * - col1 + col1 * - - col0 + col2 AS col1, 30 * + - col2 * ( - + 13 ) AS col1 FROM tab0 WHERE NOT col2 + col2 IS NOT NULL +---- query I rowsort SELECT + ( + 23 ) * + col1 FROM tab1 @@ -49094,8 +49576,15 @@ SELECT ALL + col1 * - + col2 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 89 # Datafusion - Expected - 200 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ cor0\.col2 \+ \(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + + col2 + - - ( + col1 ) AS col2, 89 AS col2 FROM tab2 cor0 +---- +120 +181 +200 +89 +89 +89 query I rowsort label-8168 SELECT ALL + - CAST ( + 29 AS INTEGER ) - col0 AS col2 FROM tab0 AS cor0 @@ -49206,8 +49695,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( + + col2, + col1 ) # Datafusion - Expected - 65 # Datafusion - Expected - 86 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "\(\- Int64\(\-65\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 86 AS col0, - ( - 65 ) col0 FROM tab0 cor0 +---- +65 +65 +65 +86 +86 +86 query I rowsort label-8188 SELECT - 70 + - COUNT ( * ) FROM tab1 AS cor0 @@ -49673,8 +50169,15 @@ SELECT ALL + 95 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 \- CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - + col1 ) AS col1, + col2 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 84 NOT IN ( - ( + ( col2 ) ) * 63, - col1 * 37 ) @@ -49896,8 +50399,10 @@ SELECT - ( col0 ) + - - col2 + + 67 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 490883e33c1f779fd794a6617b2a4219 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 1 and "\(\- tab1\.col2\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - ( + + CAST ( NULL AS INTEGER ) ), col1 AS col0, + - col2 AS col0 FROM tab1 +---- +9 values hashing to 8207d43e8aef5b71a32a258c90afaf87 query I rowsort label-8298 SELECT DISTINCT + 36 + + COUNT ( * ) + 44 + COUNT ( * ) FROM tab0 @@ -50406,8 +50911,15 @@ SELECT ALL col2, + 73 col0 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 31158 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \+ \(\- tab0\.col0\) \* tab0\.col1 \* \(\- Int64\(17\)\) \+ Int64\(32\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 67 + - col0 * + col1 * - + 17 + 32 AS col0, + col2 AS col0 FROM tab0 +---- +10 +1748 +20754 +31158 +47 +99 query I rowsort SELECT ALL - + col0 + - 66 AS col0 FROM tab1 AS cor0 @@ -50682,8 +51194,15 @@ SELECT + 45 AS col0 FROM tab1 cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col0 AS col0, col2 AS col0 FROM tab2 AS cor0 +---- +23 +40 +46 +58 +64 +75 query I rowsort label-8424 SELECT ALL + ( + + COUNT ( * ) ) AS col2 FROM tab1 @@ -50711,8 +51230,15 @@ SELECT - COUNT ( * ) * + 87 AS col2 FROM tab0 # Datafusion - Expected - 74 # Datafusion - Expected - -75 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "\(\- Int64\(3\)\) \- \(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col0, - ( + 3 ) - - col1 AS col0 FROM tab2 +---- +-46 +-64 +-75 +48 +64 +74 query I rowsort SELECT - 89 * 0 * - - 8 AS col1 FROM tab0 @@ -50856,8 +51382,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 IS NULL # Datafusion - Expected - 1 # Datafusion - Expected - 441 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-42\)\) \* cor0\.col2 \+ cor0\.col1 AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 42 * + col2 + + col1 col2, 1 AS col2 FROM tab0 AS cor0 +---- +1 +1 +1 +2055 +4159 +441 query I rowsort label-8453 SELECT ALL ( COUNT ( * ) ) AS col2 FROM tab1 @@ -51943,8 +52476,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - 47 ) col1, - COUNT ( * ) AS col1 FROM tab1 +---- +-3 +-47 query I rowsort label-8644 SELECT 82 / - COUNT ( * ) AS col1 FROM tab0 @@ -52218,8 +52754,15 @@ SELECT - 39 / - + ( col2 ) FROM tab1 # Datafusion - Expected - 68 # Datafusion - Expected - 5 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, + ( ( + col2 ) ) AS col0 FROM tab1 +---- +14 +47 +5 +59 +68 +96 query II rowsort SELECT DISTINCT col0, - col0 * + 28 AS col1 FROM tab0 @@ -52884,8 +53427,15 @@ SELECT DISTINCT * FROM tab1 cor0 WHERE + col2 > 79 # Datafusion - Expected - 4851 # Datafusion - Expected - -5625 # Datafusion - Expected - 4958 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \* \(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col0 \* cor0\.col1 \+ \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 * - + col0 AS col0, col0 * + + col1 + - col1 col0 FROM tab2 cor0 +---- +-2116 +-4096 +-5625 +2295 +4851 +4958 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -52932,8 +53482,10 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to e6d47d47d8929c3a3e0aa75bfe0d9e70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* tab1\.col0 \* \(\- tab1\.col2\) \+ Int64\(13\) \* Int64\(\-98\) \- \(\- tab1\.col2\) AS col1" at position 0 and "\(\- tab1\.col0\) \+ \(\- tab1\.col0\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + col1 * + col0 * - + col2 + + + 13 * - 98 - - col2 AS col1, + 32, - col0 + - + col0 AS col1 FROM tab1 +---- +9 values hashing to d35c0b125eb673fb6299b0229f17fd81 query I rowsort SELECT - + 86 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) @@ -53136,8 +53688,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab2 WHERE NOT NULL > - - col2 +---- +0 +0 query I rowsort SELECT DISTINCT col0 + col2 + col1 FROM tab2 @@ -53186,8 +53741,15 @@ SELECT ALL * FROM tab1 WHERE NOT ( NOT 7 >= NULL ) # Datafusion - Expected - -81 # Datafusion - Expected - 115 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ Int64\(90\) AS col1" at position 0 and "Int64\(3\) \+ Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 25 + + 90 AS col1, + 3 + - 84 AS col1 FROM tab0 +---- +-81 +-81 +-81 +115 +115 +115 query I rowsort label-8849 SELECT 98 + - + col1 - - col2 * - + ( - + 26 ) - - col1 / col2 FROM tab2 @@ -53447,8 +54009,11 @@ SELECT ALL 60, + col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, COUNT ( * ) * + + 23 col1 FROM tab2 +---- +3 +69 query I rowsort label-8895 SELECT 85 / col1 - + col2 FROM tab0 AS cor0 @@ -53904,8 +54469,15 @@ SELECT * FROM tab2 WHERE NOT ( NOT col1 IS NOT NULL ) # Datafusion - Expected - 17 # Datafusion - Expected - -81 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, 17 AS col1 FROM tab0 +---- +-1 +-21 +-81 +17 +17 +17 query II rowsort SELECT DISTINCT + col2, + col1 AS col1 FROM tab1 @@ -55134,8 +55706,15 @@ SELECT DISTINCT + 7 + + + COUNT ( * ) FROM tab2 AS cor0 WHERE - col1 IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - -99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 AS col1, + col2 AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +10 +47 +99 query III rowsort SELECT DISTINCT * FROM tab1 cor0 WHERE + col2 IS NULL @@ -55196,8 +55775,15 @@ SELECT ALL + ( - 26 ), col1 + - - col2 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 37 # Datafusion - Expected - 0 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col1 AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + + + col1 AS col2, 37 AS col2 FROM tab0 AS cor0 +---- +0 +0 +0 +37 +37 +37 query I rowsort label-9191 SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab2 AS cor0 @@ -55792,8 +56378,15 @@ SELECT DISTINCT col0 AS col1, 9 FROM tab2 # Datafusion - Expected - 194 # Datafusion - Expected - 660 # Datafusion - Expected - 174 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(66\) AS Int32\) \* tab0\.col2 AS col1" at position 0 and "CAST\(tab0\.col0 AS Int32\) \+ tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + 66 AS INTEGER ) * col2 col1, CAST ( + + col0 AS INTEGER ) + + col0 col1 FROM tab0 +---- +174 +194 +30 +3102 +6534 +660 query I rowsort SELECT col0 * + 44 AS col1 FROM tab2 @@ -57677,8 +58270,15 @@ SELECT ALL - MIN ( ALL + 3 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 11 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 11 AS col1, - col1 AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +11 +11 +11 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT + 48 + 49 IS NOT NULL @@ -58410,8 +59010,15 @@ SELECT + CAST ( - 62 AS INTEGER ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 81 # Datafusion - Expected - -99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 AS col0, + col1 AS col0 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +1 +21 +81 query I rowsort SELECT ALL 60 col2 FROM tab2 cor0 @@ -58582,8 +59189,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ), + COUNT ( * ) FROM tab1 +---- +3 +3 query I rowsort label-9757 SELECT COUNT ( col2 ) / 6 * + 16 AS col0 FROM tab2 @@ -58644,8 +59254,15 @@ SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Expected - 47 # Datafusion - Expected - 96 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 col0, col1 AS col0 FROM tab1 AS cor0 +---- +14 +47 +5 +59 +68 +96 query I rowsort SELECT ALL ( - + 79 ) col2 FROM tab2 AS cor0 @@ -59469,8 +60086,15 @@ SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL # Datafusion - Expected - 21 # Datafusion - Expected - 96 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 \- cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, + col2 - col1 AS col0 FROM tab1 AS cor0 +---- +21 +54 +59 +68 +82 +96 query I rowsort label-9906 SELECT DISTINCT + MIN ( col2 ) FROM tab0 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_64.slt b/data/sqlite/random/aggregates/slt_good_64.slt index 83866f2..8eabc38 100644 --- a/data/sqlite/random/aggregates/slt_good_64.slt +++ b/data/sqlite/random/aggregates/slt_good_64.slt @@ -328,8 +328,15 @@ SELECT 25 AS col0 FROM tab2 WHERE - + ( - col1 ) IN ( + col0 ) # Datafusion - Expected - 3 # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 + CAST ( NULL AS INTEGER ) AS col1, 3 AS col1 FROM tab2 +---- +3 +3 +3 +NULL +NULL +NULL query I rowsort label-52 SELECT + COUNT ( * ) * - 18 + + 68 AS col1 FROM tab1 @@ -455,8 +462,15 @@ SELECT ALL - col1 AS col1, col1 FROM tab0 AS cor0 # Datafusion - Expected - -52 # Datafusion - Expected - -91 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(\-52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col0 AS col1, - 52 AS col1 FROM tab1 cor0 +---- +-51 +-52 +-52 +-52 +-85 +-91 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL @@ -465,8 +479,15 @@ SELECT DISTINCT + - col0 AS col1, - 52 AS col1 FROM tab1 cor0 # Datafusion - Expected - -48 # Datafusion - Expected - NULL # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col2, - 48 AS col2 FROM tab1 AS cor0 +---- +-48 +-48 +-48 +NULL +NULL +NULL query II rowsort SELECT col0 AS col1, + 73 AS col2 FROM tab1 @@ -953,8 +974,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( * ) col2, - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 +---- +-9 +9 query I rowsort label-158 SELECT ALL - MIN ( - + col1 ) + + 8 + - 98 FROM tab1 WHERE + col2 * + - col1 = NULL @@ -1358,8 +1382,11 @@ SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * - - CAST ( + - 39 AS INTEGER ) / - # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-75\)\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 75 AS col2, 23 AS col2 FROM tab2 AS cor0 +---- +23 +75 query III rowsort SELECT * FROM tab2 WHERE NOT + - col0 NOT BETWEEN + col0 AND NULL @@ -1810,8 +1837,11 @@ SELECT DISTINCT - SUM ( - col0 ) AS col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(DISTINCT Int64\(\-64\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - MAX ( DISTINCT - 64 ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +-64 +3 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 IS NULL @@ -1990,8 +2020,15 @@ SELECT ALL col1 AS col0, ( + 34 ) * col1 AS col1 FROM tab1 # Datafusion - Expected - 15 # Datafusion - Expected - 77 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \+ \(\- tab0\.col2\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 + - ( col2 ) AS col1, + col0 AS col1 FROM tab0 +---- +-2 +-32 +15 +77 +87 +97 query I rowsort label-329 SELECT - 86 + - - COUNT ( * ) AS col1 FROM tab1 @@ -3756,8 +3793,15 @@ SELECT - ( - + col1 ) AS col1 FROM tab0 WHERE NOT col2 NOT IN ( - 43, col1 ) # Datafusion - Expected - 68 # Datafusion - Expected - 5 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, + col2 col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL +---- +14 +47 +5 +59 +68 +96 query I rowsort label-623 SELECT - ( - COUNT ( - col1 ) ) FROM tab0 AS cor0 @@ -4829,8 +4873,15 @@ SELECT - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - -6205 # Datafusion - Expected - 29 # Datafusion - Expected - -6643 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col2" at position 0 and "cor0\.col0 \* \(\- Int64\(73\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 29 AS col2, + col0 * - + 73 AS col2 FROM tab1 AS cor0 +---- +-3723 +-6205 +-6643 +29 +29 +29 query I rowsort label-804 SELECT ALL + COUNT ( + col1 ) AS col2 FROM tab1 AS cor0 @@ -5308,8 +5359,15 @@ SELECT col0 * col0 + 15 FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - -75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, col0 col2 FROM tab2 +---- +-46 +-64 +-75 +46 +64 +75 query III rowsort SELECT * FROM tab1 WHERE ( NOT NULL IS NULL ) @@ -5773,8 +5831,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) * - 79 AS col2, 52 AS col2 FROM tab1 +---- +-237 +52 query I rowsort label-958 SELECT - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL @@ -6371,8 +6432,15 @@ NULL # Datafusion - Expected - -68 # Datafusion - Expected - -96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 AS col2, - col2 col2 FROM tab1 AS cor0 +---- +-59 +-59 +-68 +-68 +-96 +-96 query I rowsort label-1059 SELECT - CAST ( NULL AS INTEGER ) * 9 + + - 35 col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL ) @@ -6533,8 +6601,15 @@ SELECT 85 AS col1, + 50 AS col2 FROM tab0 # Datafusion - Expected - -24334 # Datafusion - Expected - 16 # Datafusion - Expected - -252300 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "\(\- tab2\.col0\) \* \(\- tab2\.col2\) \* \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 16 AS col2, - col0 * - + col2 * - col2 col2 FROM tab2 +---- +-102400 +-24334 +-252300 +16 +16 +16 query I rowsort SELECT DISTINCT + col0 FROM tab1 WHERE NOT + col0 * - 81 IS NULL @@ -7312,8 +7387,15 @@ SELECT MIN ( DISTINCT + 57 ) + + COUNT ( * ) FROM tab0 AS cor0 # Datafusion - Expected - 65 # Datafusion - Expected - 102 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ \(\- Int64\(\-10\)\) AS col0" at position 0 and "cor0\.col0 \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 92 + - - 10 AS col0, col0 + + + col1 AS col0 FROM tab1 AS cor0 +---- +102 +102 +102 +138 +65 +90 query I rowsort SELECT DISTINCT 95 + + col0 - - 89 AS col1 FROM tab0 AS cor0 @@ -7388,8 +7470,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 IN ( col2 ) # Datafusion - Expected - 110 # Datafusion - Expected - 672 # Datafusion - Expected - 1840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* Int64\(32\) AS col0" at position 0 and "Int64\(13\) \+ tab0\.col1 \* tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * + 32 AS col0, 13 + + col1 * + col0 AS col0 FROM tab0 +---- +110 +1228 +1840 +2592 +32 +672 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN + col0 + - col1 AND ( NULL ) @@ -7608,8 +7697,9 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col2 + - 49 AND - ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(\-81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 AS col1, - 81 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL +---- query I rowsort SELECT DISTINCT col1 * - - col0 + + + ( col2 ) AS col2 FROM tab2 AS cor0 @@ -7785,8 +7875,9 @@ SELECT + SUM ( + ( + 66 ) ) FROM tab1 AS cor0 198 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(cor0\.col1 AS Float64\)\)\) AS col0" at position 0 and "\(\- cor0\.col0\) \- cor0\.col1 \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - - ( CAST ( col1 AS FLOAT8 ) ) AS col0, ( - col0 ) - col1 * + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL ) +---- query I rowsort label-1297 SELECT CAST ( - - col1 AS INTEGER ) FROM tab0 AS cor0 @@ -8280,8 +8371,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( - - col2 AS INTEGER ) / ( col0 ) + # Datafusion - Expected - -1920 # Datafusion - Expected - -75 # Datafusion - Expected - -2784 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab2\.col0 AS Int32\)\) AS col2" at position 0 and "Int64\(48\) \* \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( + col0 AS INTEGER ) col2, + 48 * + - col2 AS col2 FROM tab2 +---- +-1104 +-1920 +-2784 +-46 +-64 +-75 query I rowsort SELECT ( + + 30 ) AS col1 FROM tab0 @@ -8480,8 +8578,9 @@ NULL NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) / Int64\(\-47\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - col0 ) / ( - 47 ) AS col0, col2 col0 FROM tab0 WHERE NULL <> NULL +---- query II rowsort label-1412 SELECT + + col0, + 82 * col1 + col2 / + col2 AS col2 FROM tab1 AS cor0 @@ -8515,8 +8614,10 @@ SELECT ALL * FROM tab1 AS cor0 WHERE 5 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to d39ea345da2723e2dc8ec3669532fcf0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - 35 AS col2, + 65 AS col2, 1 FROM tab0 AS cor0 +---- +9 values hashing to adfaf13b966c7ed60cdbb22571e1bccd query I rowsort label-1417 SELECT - 32 + - + COUNT ( * ) * + - 48 / - 24 col0 FROM tab2 cor0 @@ -8814,8 +8915,15 @@ SELECT + COUNT ( ALL - 56 ) col1 FROM tab0 # Datafusion - Expected - -74 # Datafusion - Expected - 10 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \+ \(\- tab1\.col0\) \+ tab1\.col2 AS col1" at position 0 and "Int64\(\-74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 35 + - col0 + col2 AS col1, - 74 AS col1 FROM tab1 +---- +-58 +-61 +-74 +-74 +-74 +10 query I rowsort label-1464 SELECT ALL + ( - + CAST ( + 19 AS INTEGER ) ) - + col1 * + ( col1 ) FROM tab1 @@ -8862,8 +8970,15 @@ SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - -59 # Datafusion - Expected - 94 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \+ cor0\.col0 AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 + col0 AS col0, - col2 AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +54 +88 +94 query I rowsort SELECT 41 FROM tab1 AS cor0 WHERE + col2 BETWEEN NULL AND NULL @@ -9186,8 +9301,15 @@ SELECT MIN ( ALL - 12 ) AS col2 FROM tab2 # Datafusion - Expected - -59 # Datafusion - Expected - 3196 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* tab1\.col1 AS col1" at position 0 and "\(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * col1 AS col1, ( - col2 ) col1 FROM tab1 +---- +-59 +-68 +-96 +1344 +295 +3196 query I rowsort SELECT ALL - 15 FROM tab0 cor0 @@ -10237,8 +10359,15 @@ SELECT + 21 / 31 AS col1 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, + ( col2 ) AS col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query III rowsort SELECT ALL * FROM tab1 WHERE NOT - col1 NOT BETWEEN + + col0 AND ( + - col2 * - ( - 95 ) ) @@ -11014,8 +11143,15 @@ SELECT DISTINCT + col2 AS col1, - col2 * - col0 FROM tab0 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - 5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 AS col2, col0 col2 FROM tab1 AS cor0 +---- +14 +47 +5 +51 +85 +91 query II rowsort label-1828 SELECT - - SUM ( + - col2 ) AS col1, + 16 col2 FROM tab0 AS cor0 @@ -12177,8 +12313,11 @@ SELECT ALL + col0 * - col0 * - col1 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(\-6\)\) / \(\- Int64\(84\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MAX ( DISTINCT - 6 ) / + - ( + 84 ) AS col0, COUNT ( * ) AS col0 FROM tab0 +---- +0 +3 query I rowsort SELECT ALL - col0 * 81 FROM tab2 AS cor0 @@ -12985,8 +13124,10 @@ SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( 70 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 436a4f2dd45881739fd232d297fe6116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col2" at position 1 and "Int64\(43\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col1 AS col1, - 43 AS col2, 43 AS col2 FROM tab1 AS cor0 +---- +9 values hashing to 7f4fff237511247c3cfdd6a3abd76e8b query I rowsort label-2146 SELECT ALL + COUNT ( - col0 ) AS col1 FROM tab0 cor0 @@ -13781,8 +13922,15 @@ SELECT DISTINCT 36 * - col0 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -326250 # Datafusion - Expected - NULL # Datafusion - Expected - -48668 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(37\) \* CAST\(NULL AS Int32\) / Int64\(\-77\) \* cor0\.col2 AS col1" at position 0 and "cor0\.col2 \* cor0\.col0 \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 * 37 * + CAST ( NULL AS INTEGER ) / - 77 * col2 AS col1, ( + col2 ) * + col0 * - + col0 col1 FROM tab2 AS cor0 +---- +-163840 +-326250 +-48668 +NULL +NULL +NULL query II rowsort SELECT - 39 AS col0, - ( - - 32 ) FROM tab2 AS cor0 @@ -14828,8 +14976,15 @@ SELECT 54 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - 43 # Datafusion - Expected - 81 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(33\) \- \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col1 AS col2, 33 - - col2 AS col2 FROM tab0 AS cor0 WHERE 85 * 72 / col2 * - col1 * + 21 IS NOT NULL +---- +1 +132 +21 +43 +80 +81 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE 8 >= NULL @@ -15265,8 +15420,11 @@ SELECT ALL col0, + col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, 47 AS col2 FROM tab0 +---- +3 +47 query I rowsort label-2513 SELECT CAST ( - MIN ( + 47 ) AS INTEGER ) AS col1 FROM tab2 @@ -15763,8 +15921,15 @@ SELECT ALL - CAST ( - - ( + - ( COUNT ( * ) ) ) AS INTEGER ) FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - -25 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 25 AS col1, + col2 AS col1 FROM tab1 AS cor0 +---- +-25 +-25 +-25 +59 +68 +96 query I rowsort SELECT DISTINCT ( + + 75 ) FROM tab1 AS cor0 @@ -16745,8 +16910,15 @@ SELECT 64 * + 59 - col2 col0 FROM tab2 # Datafusion - Expected - -1 # Datafusion - Expected - 42 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ tab0\.col1 AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + col1 AS col0, - col1 AS col0 FROM tab0 +---- +-1 +-21 +-81 +162 +2 +42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 102 @@ -16755,8 +16927,15 @@ SELECT col1 + col1 AS col0, - col1 AS col0 FROM tab0 # Datafusion - Expected - 2116 # Datafusion - Expected - 91 # Datafusion - Expected - 3680 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \+ \(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "\(\- cor0\.col2\) \* Int64\(\-92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 27 + - - col0 AS col2, - col2 * - 92 AS col2 FROM tab2 AS cor0 +---- +102 +2116 +3680 +5336 +73 +91 query I rowsort SELECT - col2 + 10 * col2 FROM tab0 AS cor0 @@ -18713,8 +18892,15 @@ SELECT ALL col0 * - - col2 * + + 64 AS col2 FROM tab2 # Datafusion - Expected - 88 # Datafusion - Expected - 48 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 48 AS col2, 88 AS col2 FROM tab1 +---- +48 +48 +48 +88 +88 +88 query I rowsort label-3088 SELECT DISTINCT - 45 / + col2 AS col1 FROM tab1 @@ -18905,8 +19091,15 @@ SELECT DISTINCT * FROM tab0 WHERE - - col2 NOT IN ( + col2, + col1, - 75 + 93 ) # Datafusion - Expected - 13 # Datafusion - Expected - -58 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col0, 13 AS col0 FROM tab2 +---- +-23 +-40 +-58 +13 +13 +13 query II rowsort SELECT - col2 col2, + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= col0 * + col0 @@ -18924,8 +19117,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT + col0 - + 27 BETWEEN - col0 AND - 99 - + 3 # Datafusion - Expected - 0 # 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 0 and "cor0\.col2 / Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 70 AS col2, col2 / + 45 AS col2 FROM tab2 AS cor0 +---- +0 +0 +1 +70 +70 +70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 @@ -18934,8 +19134,15 @@ SELECT + 70 AS col2, col2 / + 45 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 2720 # Datafusion - Expected - 96 # Datafusion - Expected - 3840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(40\) \* \(\- \(\- cor0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, + 40 * - - col2 AS col0 FROM tab1 cor0 +---- +2360 +2720 +3840 +59 +68 +96 query III rowsort label-3123 SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + CAST ( 71 AS INTEGER ) - - + 42 IS NULL ) @@ -19227,8 +19434,15 @@ SELECT * FROM tab1 WHERE ( NOT NULL NOT IN ( 99, col1, - col1 ) ) # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, col2 AS col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT 19 + - col1 * col1 + + 5 + + - col0 FROM tab0 AS cor0 @@ -19699,8 +19913,15 @@ SELECT DISTINCT - col2 * 43 + - 70 * + - col0 / - - ( - col1 ) FROM tab0 AS cor0 # Datafusion - Expected - -59 # Datafusion - Expected - 91 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, - col2 AS col2 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +51 +85 +91 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -20084,8 +20305,15 @@ SELECT DISTINCT + col0 AS col1 FROM tab2 WHERE 25 * + + col2 + - 44 <= NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + col0 ) AS col0, + col0 AS col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT - 50 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN + col0 AND + + col2 @@ -20703,8 +20931,15 @@ SELECT DISTINCT + 51 AS col0 FROM tab0 # Datafusion - Expected - 10 # Datafusion - Expected - 97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col0 AS Int32\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( + + col0 AS INTEGER ) AS col1, col2 AS col1 FROM tab0 +---- +10 +15 +47 +87 +97 +99 query II rowsort SELECT ALL - - col2 + - col2 AS col0, + 22 * - col2 + - + col1 FROM tab2 AS cor0 @@ -20854,8 +21089,15 @@ SELECT - ( - col0 ) * 44 FROM tab2 WHERE NOT - 90 IS NOT NULL # Datafusion - Expected - 93 # Datafusion - Expected - 3132 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* tab2\.col2 AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 * + + col2 AS col1, 93 AS col1 FROM tab2 +---- +1242 +2160 +3132 +93 +93 +93 query III rowsort label-3429 SELECT * FROM tab0 cor0 WHERE - CAST ( NULL AS INTEGER ) < NULL @@ -21464,8 +21706,15 @@ SELECT + 29 * - col1 * - + col1 AS col1 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - 97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* tab0\.col1 AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * + + ( + col1 ) AS col2, + col1 AS col2 FROM tab0 +---- +1 +1215 +1827 +21 +81 +97 query II rowsort SELECT ALL + ( col0 ) * col2, + col1 FROM tab0 @@ -22703,8 +22952,15 @@ SELECT - ( col0 ) + - + 77 * col0 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\)" at position 0 and "CAST\(NULL AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 +---- +NULL +NULL +NULL +NULL +NULL +NULL query I rowsort SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE + col2 + - ( ( - col1 ) ) * 47 IS NOT NULL @@ -22739,8 +22995,15 @@ SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) / SUM ( ALL + col1 ) FROM tab2 # Datafusion - Expected - 5938 # Datafusion - Expected - NULL # Datafusion - Expected - 6358 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "CAST\(\(\- Int64\(12\)\) AS Int32\) \+ tab1\.col0 \* \(\- Int64\(\-70\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + + CAST ( NULL AS INTEGER ) ) col1, CAST ( - + 12 AS INTEGER ) + + + col0 * - - 70 AS col1 FROM tab1 +---- +3558 +5938 +6358 +NULL +NULL +NULL query I rowsort SELECT ALL - col1 - - - ( + + ( - 43 ) ) FROM tab2 @@ -24399,8 +24662,15 @@ SELECT * FROM tab2 AS cor0 WHERE + col2 / - - col1 > + col1 # Datafusion - Expected - 48 # Datafusion - Expected - 97 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(69\) \+ \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, 69 + - col1 AS col2 FROM tab0 cor0 +---- +-12 +15 +48 +68 +87 +97 query III rowsort SELECT * FROM tab0 WHERE ( NOT + 71 <= + 22 ) @@ -24749,8 +25019,15 @@ SELECT ALL col2 / - - col1 FROM tab0 # Datafusion - Expected - -77 # Datafusion - Expected - 58 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "\(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, - col1 AS col1 FROM tab2 +---- +-51 +-67 +-77 +23 +40 +58 query I rowsort SELECT col2 AS col2 FROM tab0 WHERE NOT + + 44 IS NULL @@ -24782,8 +25059,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 62 col0, + COUNT ( * ) + + 95 AS col0 FROM tab2 +---- +-62 +98 query II rowsort SELECT DISTINCT 73 AS col0, 0 AS col2 FROM tab1 @@ -24816,8 +25096,15 @@ SELECT + col2 * + + 89 + + ( + col2 ) - - - 40 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - -72 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(72\)\) AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + + 72 ) AS col1, 47 AS col1 FROM tab1 +---- +-72 +-72 +-72 +47 +47 +47 query I rowsort SELECT DISTINCT - + col1 + + col1 * - - col1 AS col0 FROM tab0 AS cor0 @@ -25856,8 +26143,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), COUNT ( * ) FROM tab2 +---- +3 +3 query I rowsort SELECT DISTINCT - - col2 AS col0 FROM tab0 WHERE col1 IS NULL @@ -26374,8 +26664,15 @@ SELECT + col1, - 12 + + + 11 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 60 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 60 AS col1, + col2 AS col1 FROM tab0 AS cor0 +---- +10 +47 +60 +60 +60 +99 query III rowsort SELECT DISTINCT * FROM tab2 WHERE 49 + + 89 IS NULL @@ -26866,8 +27163,11 @@ SELECT col2 * + CAST ( ( - col1 ) AS INTEGER ) AS col1 FROM tab1 # 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\(\-42\) \+ Int64\(73\) 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 IR valuesort SELECT DISTINCT + - 42 + 73 AS col2, - CAST ( NULL AS FLOAT8 ) AS col2 FROM tab2 AS cor0 +---- +31 +NULL query I rowsort SELECT DISTINCT - col1 AS col0 FROM tab1 AS cor0 WHERE ( NOT - 73 <= ( - col0 ) ) @@ -27103,8 +27403,15 @@ SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - -42 # Datafusion - Expected - -97 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "Int64\(\-42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 col2, - 42 AS col2 FROM tab0 +---- +-15 +-42 +-42 +-42 +-87 +-97 query I rowsort label-4454 SELECT DISTINCT + COUNT ( ALL + - col1 ) col1 FROM tab2 @@ -27462,8 +27769,15 @@ SELECT + col2 * - col0 col0 FROM tab1 WHERE NOT ( NOT CAST ( - + CAST ( col1 AS # Datafusion - Expected - -315 # Datafusion - Expected - NULL # Datafusion - Expected - -882 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-63\) \* tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - 63 * + + col1 AS col2 FROM tab1 +---- +-2961 +-315 +-882 +NULL +NULL +NULL query I rowsort label-4516 SELECT CAST ( + 27 AS INTEGER ) FROM tab0 @@ -27871,8 +28185,11 @@ SELECT DISTINCT - col0 * col2 / col1 / + col2 AS 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\(DISTINCT tab2\.col1\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( DISTINCT col1 ) AS col1, + 44 AS col1 FROM tab2 +---- +3 +44 query I rowsort SELECT DISTINCT - 52 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL < ( NULL ) ) @@ -27881,8 +28198,11 @@ SELECT DISTINCT - 52 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL < ( NULL ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- Int64\(\-34\)\)\) AS col2" at position 0 and "Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( ALL - - 34 ) AS col2, - 38 AS col2 FROM tab1 AS cor0 +---- +-38 +34 query I rowsort label-4586 SELECT + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL @@ -27918,8 +28238,15 @@ NULL # Datafusion - Expected - 85 # Datafusion - Expected - -30 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 30 AS col1, col0 AS col1 FROM tab1 AS cor0 +---- +-30 +-30 +-30 +51 +85 +91 query I rowsort label-4591 SELECT ALL 61 + + + MAX ( + col2 ) AS col0 FROM tab0 AS cor0 @@ -28076,8 +28403,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 18 col2, - COUNT ( * ) AS col2 FROM tab2 +---- +-18 +-3 query II rowsort SELECT - col2 AS col2, ( - 68 ) FROM tab1 @@ -28277,8 +28607,11 @@ SELECT ( - ( - ( - col2 ) ) ) * + 47 * + + col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, + 68 AS col1 FROM tab2 +---- +3 +68 query I rowsort label-4647 SELECT COUNT ( * ) col2 FROM tab1, tab0 AS cor0 @@ -28322,8 +28655,11 @@ SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 195 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- cor0\.col1\)\)\) AS col2" at position 0 and "Int64\(77\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( ALL - col1 ) AS col2, 77 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 +---- +195 +NULL query III rowsort SELECT DISTINCT * FROM tab2 cor0 WHERE NULL BETWEEN col2 AND NULL @@ -28524,8 +28860,11 @@ SELECT + - MAX ( ALL + + col2 ) col1 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -103 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- cor0\.col1\)\) AS col2" at position 0 and "Int64\(\-83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( - col1 ) AS col2, - 83 AS col2 FROM tab0 AS cor0 +---- +-103 +-83 query I rowsort SELECT ALL - + 43 AS col1 FROM tab1 AS cor0 WHERE 88 <> - ( col0 ) - - col1 - - col2 @@ -29718,8 +30057,15 @@ SELECT ALL + SUM ( DISTINCT 4 ) AS col0 FROM tab1 # Datafusion - Expected - -21 # Datafusion - Expected - -61 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 61 AS col0, - col1 AS col0 FROM tab0 +---- +-1 +-21 +-61 +-61 +-61 +-81 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) = ( NULL ) @@ -30025,8 +30371,11 @@ SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE 14 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col1" at position 0 and "Int64\(77\) \- CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 47 col1, + 77 - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +47 +NULL query I rowsort label-4950 SELECT ( - COUNT ( * ) ) - - - MIN ( ALL + col2 ) FROM tab2 AS cor0 @@ -30236,8 +30585,11 @@ SELECT DISTINCT - col0 AS col1, - col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 860 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* \(\- max\(\(\- tab0\.col2\)\)\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( 86 ) * + - MAX ( + - col2 ) AS col2, 71 AS col2 FROM tab0 +---- +71 +860 query II rowsort SELECT col2, - col0 + + 48 FROM tab1 @@ -30632,8 +30984,15 @@ NULL # Datafusion - Expected - 85 # Datafusion - Expected - 4 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 4 AS col1, col0 AS col1 FROM tab1 AS cor0 +---- +4 +4 +4 +51 +85 +91 query I rowsort label-5048 SELECT - COUNT ( - - col2 ) FROM tab1 AS cor0 @@ -30780,8 +31139,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - COUNT ( * ) AS col0, - COUNT ( * ) col0 FROM tab1 AS cor0 +---- +-3 +-3 query I rowsort label-5074 SELECT COUNT ( * ) / - MAX ( DISTINCT + col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL @@ -31323,8 +31685,15 @@ SELECT DISTINCT 45 + + - col2 * + 33 AS col1 FROM tab1 WHERE NOT ( NOT ( NULL ) # Datafusion - Expected - 99 # Datafusion - Expected - 85 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 AS col1, 99 col1 FROM tab2 +---- +85 +85 +85 +99 +99 +99 query I rowsort SELECT DISTINCT 4 * - - col2 AS col1 FROM tab1 @@ -31363,8 +31732,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * - 35 AS col0, - 47 AS col0 FROM tab2 +---- +-105 +-47 query I rowsort SELECT DISTINCT + 77 AS col0 FROM tab2 WHERE NOT ( ( NULL ) IS NOT NULL ) @@ -32609,8 +32981,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * - 49 AS col0, 64 AS col0 FROM tab1 +---- +-147 +64 query I rowsort SELECT - + col1 + 55 AS col2 FROM tab2 AS cor0 WHERE NOT 18 IS NULL @@ -33090,8 +33465,11 @@ SELECT * FROM tab1 WHERE NOT ( + col0 ) = col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab1 +---- +3 +NULL query I rowsort label-5453 SELECT ALL - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 @@ -33369,8 +33747,11 @@ SELECT ALL - 28 * col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) / tab2\.col0 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 / + col0 col2, ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 +---- +0 +NULL query I rowsort label-5496 SELECT + CAST ( + ( col1 ) AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL @@ -33634,8 +34015,11 @@ SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE + - 22 < NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(tab1\.col2\) AS col2" at position 0 and "CAST\(Int64\(61\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( + + col2 ) AS col2, + CAST ( + 61 AS INTEGER ) AS col2 FROM tab1 +---- +59 +61 query I rowsort label-5538 SELECT + + COUNT ( * ) * - 98 FROM tab2 cor0 @@ -33744,8 +34128,15 @@ SELECT 0 * col1 / + col0 AS col0 FROM tab0 # Datafusion - Expected - -10 # Datafusion - Expected - 26508 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- Int64\(12\)\) \* \(\- tab0\.col2\) AS col2" at position 0 and "\(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * - + 12 * - + ( + col2 ) AS col2, - col2 AS col2 FROM tab0 +---- +-10 +-47 +-99 +117612 +1200 +26508 query I rowsort SELECT DISTINCT + ( - col0 ) + - col1 col1 FROM tab0 AS cor0 @@ -34213,8 +34604,11 @@ SELECT + 82 + + 71 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-91\)\) AS col1" at position 0 and "CAST\(Int64\(\-64\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 91 col1, CAST ( + ( - 64 ) AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +-64 +91 query II rowsort label-5625 SELECT 2 AS col0, MIN ( DISTINCT - col2 ) FROM tab2 cor0 @@ -34269,8 +34663,15 @@ SELECT - 54 AS col2 FROM tab1 # Datafusion - Expected - 0 # Datafusion - Expected - 77 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \- \(\- tab1\.col1\) AS col2" at position 0 and "\(\- tab1\.col1\) / \(\- Int64\(\-76\)\) \* \(\- tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 - - + col1 AS col2, - col1 / - - 76 * + - col1 AS col2 FROM tab1 +---- +0 +0 +0 +35 +44 +77 query I rowsort SELECT 23 - + col2 * - + col2 - - col1 FROM tab1 @@ -34451,8 +34852,15 @@ SELECT DISTINCT - 2 AS col0, ( col2 ) FROM tab2 # Datafusion - Expected - 2992 # Datafusion - Expected - 96 # Datafusion - Expected - 4224 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(\-44\) \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, - 44 * - col2 AS col1 FROM tab1 cor0 +---- +2596 +2992 +4224 +59 +68 +96 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 58 + + 4 = col2 @@ -35075,8 +35483,15 @@ SELECT ALL col0 / 67 FROM tab2 WHERE - col0 IS NULL # Datafusion - Expected - 97 # Datafusion - Expected - 25 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 AS col2, 97 AS col2 FROM tab1 AS cor0 +---- +25 +25 +25 +97 +97 +97 query II rowsort SELECT ALL - col1 AS col2, 46 + + col1 FROM tab0 AS cor0 @@ -36504,8 +36919,11 @@ SELECT ALL * FROM tab2 cor0 WHERE ( col2 * - col1 + CAST ( NULL AS INTEGER ) ) I # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT \(\- Int64\(2\)\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + SUM ( DISTINCT - + 2 ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 +---- +-2 +NULL query I rowsort label-6003 SELECT ALL MIN ( ALL - + col2 ) AS col2 FROM tab2 @@ -36680,8 +37098,15 @@ SELECT 47 - SUM ( col1 ) FROM tab0 # Datafusion - Expected - 23 # Datafusion - Expected - -96 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 AS col0, 23 AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +23 +23 +23 query I rowsort SELECT + + col0 * + col2 + + 61 - - col1 + 35 FROM tab2 AS cor0 @@ -37878,8 +38303,15 @@ SELECT ALL + 73 + - col2 * - col1 FROM tab1 AS cor0 # Datafusion - Expected - 4096 # Datafusion - Expected - -58 # Datafusion - Expected - 5625 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col2\) AS Int32\) AS col1" at position 0 and "cor0\.col0 \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - col2 AS INTEGER ) AS col1, col0 * + col0 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +2116 +4096 +5625 query II rowsort SELECT + col1, 30 FROM tab2 @@ -39362,8 +39794,15 @@ SELECT - 41 * + col0 AS col0 FROM tab1 cor0 WHERE NULL IS NULL # Datafusion - Expected - 67 # Datafusion - Expected - -77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 col2, col1 AS col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +51 +67 +77 query I rowsort SELECT DISTINCT + + col0 / - 35 * + 65 + - ( - 50 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + - col2 + + col1 - - col2 * - + col1 @@ -39402,8 +39841,15 @@ SELECT ALL ( - - 20 ) * 21 * - 64 AS col1 FROM tab1 # Datafusion - Expected - 96 # Datafusion - Expected - 987 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \* \(\- tab1\.col1\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 21 * - col1 AS col0, + col2 col0 FROM tab1 +---- +105 +294 +59 +68 +96 +987 query III rowsort SELECT * FROM tab1 WHERE NOT NULL <= + + col1 - + 80 @@ -39644,8 +40090,15 @@ SELECT DISTINCT ( - - COUNT ( * ) ) AS col0 FROM tab1 cor0 # Datafusion - Expected - 6336 # Datafusion - Expected - 10 # Datafusion - Expected - 6336 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col0" at position 0 and "Int64\(72\) \* Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 10 col0, 72 * 88 col0 FROM tab0 cor0 +---- +10 +10 +10 +6336 +6336 +6336 query I rowsort SELECT col1 * - ( + 13 ) AS col0 FROM tab1 AS cor0 @@ -39855,8 +40308,11 @@ SELECT - + ( + 14 ) col1 FROM tab2 WHERE NOT ( NOT - col2 BETWEEN + 77 / + 17 AN # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, 22 col2 FROM tab2 WHERE - ( + ( 47 ) ) IS NOT NULL +---- +22 +3 query I rowsort label-6551 SELECT ALL - MIN ( col2 ) FROM tab1 @@ -40739,8 +41195,11 @@ SELECT DISTINCT + 41 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, 91 AS col1 FROM tab0 AS cor0 +---- +91 +NULL query II rowsort label-6696 SELECT - COUNT ( * ), COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0 @@ -41655,8 +42114,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) col1, 20 AS col1 FROM tab1 AS cor0 +---- +-3 +20 query I rowsort label-6846 SELECT ALL - MIN ( col2 ) AS col2 FROM tab2 AS cor0 @@ -41943,8 +42405,15 @@ SELECT DISTINCT - 69 AS col0, 12 + + col1 AS col1 FROM tab2 # Datafusion - Expected - -4489 # Datafusion - Expected - NULL # Datafusion - Expected - -5929 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col1" at position 0 and "cor0\.col1 \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL CAST ( NULL AS FLOAT8 ) AS col1, + col1 * - col1 AS col1 FROM tab2 AS cor0 +---- +-2601 +-4489 +-5929 +NULL +NULL +NULL query I rowsort SELECT DISTINCT - col2 + + + col1 AS col1 FROM tab0 AS cor0 @@ -42108,8 +42577,15 @@ SELECT ALL ( + 49 ) AS col2 FROM tab1 # Datafusion - Expected - -38 # Datafusion - Expected - -99 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "Int64\(43\) \- tab0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, 43 - + col1 AS col1 FROM tab0 WHERE + + col1 - col1 + - - col1 = - - col1 +---- +-10 +-38 +-47 +-99 +22 +42 query I rowsort label-6916 SELECT ALL SUM ( + 13 ) FROM tab0 @@ -43312,8 +43788,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 44 AS col1, - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 +---- +-44 +-9 query I rowsort label-7111 SELECT DISTINCT + 81 * + + CAST ( NULL AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL @@ -44374,8 +44853,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 94 AS col2, 56 + - COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +53 +94 query I rowsort label-7299 SELECT DISTINCT + 87 * COUNT ( * ) AS col2 FROM tab0 AS cor0 @@ -44621,8 +45103,9 @@ SELECT - + ( + - col0 ) col2 FROM tab1 cor0 91 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, + col2 col1 FROM tab0 AS cor0 WHERE NOT NULL = ( - + col2 ) + - col0 +---- query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col2, col0, - - col2 ) @@ -45112,8 +45595,15 @@ SELECT COUNT ( * ), 53 AS col1 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "Int64\(40\) \+ tab2\.col1 \+ tab2\.col2 / Int64\(44\) \* \(\- tab2\.col0\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 AS col2, + 40 + col1 + + + ( col2 ) / + + 44 * - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 +---- +82 +82 +82 +NULL +NULL +NULL query I rowsort label-7420 SELECT DISTINCT 95 * COUNT ( * ) FROM tab2 @@ -45787,8 +46277,15 @@ NULL # Datafusion - Expected - -42 # Datafusion - Expected - -76 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col1" at position 0 and "\(\- tab1\.col2\) \+ \(\- tab1\.col1\) \+ \(\- tab1\.col1\) \+ Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 76 AS col1, ( + - col2 ) + - col1 + - col1 + + 27 AS col1 FROM tab1 +---- +-135 +-42 +-76 +-76 +-76 +-97 query III rowsort SELECT DISTINCT * FROM tab0 WHERE - - 26 IS NULL @@ -46061,8 +46558,15 @@ SELECT col0 + + 81 + + - 16 * col1 * + 48 + + col1 AS col2, 66 FROM tab2 AS cor0 # Datafusion - Expected - 130 # Datafusion - Expected - 91 # Datafusion - Expected - 124 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- \(\- Int64\(86\)\) \+ cor0\.col0 \- cor0\.col0 AS col2" at position 0 and "Int64\(12\) \- Int64\(\-27\) \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 - - + 86 + + col0 - col0 AS col2, ( 12 ) - - 27 + col0 AS col2 FROM tab1 AS cor0 +---- +100 +124 +130 +133 +90 +91 query I rowsort label-7573 SELECT + CAST ( NULL AS INTEGER ) + + SUM ( DISTINCT 23 ) AS col0 FROM tab0 AS cor0 @@ -46904,8 +47408,15 @@ SELECT ALL 11 col2 FROM tab1 # Datafusion - Expected - -1743 # Datafusion - Expected - 7348 # Datafusion - Expected - -6723 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ Int64\(90\) \* cor0\.col1 AS col1" at position 0 and "\(\- CAST\(\(\- cor0\.col1\) AS Int32\)\) \* Int64\(\-82\) \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 58 + 90 * + col1 col1, - CAST ( + - ( + col1 ) AS INTEGER ) * - 82 + - + ( + col1 ) AS col1 FROM tab0 AS cor0 +---- +-1743 +-6723 +-83 +148 +1948 +7348 query I rowsort SELECT - - 98 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL @@ -47089,8 +47600,15 @@ SELECT + + 64 * - 9 * + + 88 * - - 17 * + 29 AS col0 FROM tab2 WHERE NULL BETWEE # Datafusion - Expected - -229880 # Datafusion - Expected - 63 # Datafusion - Expected - -391964 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \+ tab2\.col2 AS col2" at position 0 and "tab2\.col2 \* \(\- Int64\(91\)\) \* tab2\.col0 \- \(\- tab2\.col2\) \* tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 + col2 AS col2, + col2 * - + 91 * + col0 - - col2 * + + col1 AS col2 FROM tab2 +---- +-229880 +-391964 +-95105 +28 +45 +63 query I rowsort label-7750 SELECT DISTINCT - - CAST ( + col2 AS INTEGER ) * 16 - - 58 FROM tab1 AS cor0 @@ -47702,8 +48220,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * + 10 AS col2, 62 AS col2 FROM tab2 AS cor0 +---- +-30 +62 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 19 <= NULL @@ -48263,8 +48784,15 @@ SELECT 70 + - - col1 AS col2 FROM tab1 # Datafusion - Expected - 99 # Datafusion - Expected - 66 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \- \(\- \(\- tab0\.col0\)\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 - - - col0 AS col1, col2 AS col1 FROM tab0 +---- +-66 +-96 +10 +47 +66 +99 query I rowsort label-7942 SELECT DISTINCT - CAST ( - - col2 AS INTEGER ) AS col1 FROM tab2 @@ -48376,8 +48904,15 @@ SELECT + 44 + col1 + 55 * - col2 col2 FROM tab1 # Datafusion - Expected - -68 # Datafusion - Expected - 43 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "\(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 43 AS col1, - col2 col1 FROM tab1 +---- +-59 +-68 +-96 +43 +43 +43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 @@ -48386,8 +48921,15 @@ SELECT DISTINCT + 43 AS col1, - col2 col1 FROM tab1 # Datafusion - Expected - -142 # Datafusion - Expected - 60 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "tab0\.col1 \- \(\- Int64\(\-44\)\) \+ \(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 60 AS col0, + col1 - - - 44 + - col2 col0 FROM tab0 +---- +-10 +-142 +-33 +60 +60 +60 query II rowsort label-7960 SELECT - COUNT ( * ), + 25 AS col1 FROM tab2 @@ -48407,8 +48949,15 @@ SELECT ALL col2 AS col1, col1 AS col1, + 18 col0 FROM tab2 AS cor0 # Datafusion - Expected - 3080 # Datafusion - Expected - 4350 # Datafusion - Expected - 3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col0 AS col1" at position 0 and "cor0\.col1 \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * col0 AS col1, col1 * + + col2 AS col1 FROM tab2 cor0 +---- +1058 +1173 +2560 +3080 +3886 +4350 query I rowsort label-7963 SELECT + COUNT ( * ) * + + 90 col1 FROM tab0 AS cor0 @@ -48463,8 +49012,11 @@ SELECT DISTINCT - 96 + - col2 AS col2, col0 * - 45 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 106 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT \(\- \(\- tab0\.col1\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(CAST\(NULL AS Int32\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + SUM ( DISTINCT - - col1 ) + COUNT ( * ) AS col2, + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 +---- +106 +NULL query I rowsort label-7972 SELECT + COUNT ( * ) FROM tab2 WHERE + + CAST ( NULL AS INTEGER ) IS NULL @@ -48629,8 +49181,15 @@ SELECT ALL col1 + + + 81 FROM tab1 # Datafusion - Expected - 66 # Datafusion - Expected - -97 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, 66 AS col1 FROM tab0 +---- +-15 +-87 +-97 +66 +66 +66 query I rowsort SELECT ALL + col0 + - + col0 FROM tab2 AS cor0 @@ -48759,8 +49318,15 @@ SELECT ALL 85 * + MIN ( + + 2 ) * COUNT ( * ) + - 32 + + COUNT ( * ) FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - 9 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 9 AS col2, col0 AS col2 FROM tab2 +---- +46 +64 +75 +9 +9 +9 query I rowsort SELECT ALL - 99 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL @@ -48827,8 +49393,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - -99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, col2 AS col1 FROM tab0 WHERE col0 > - col1 +---- +-10 +-47 +-99 +10 +47 +99 query I rowsort label-8029 SELECT col0 * + col1 + + + col2 / + 65 FROM tab0 @@ -50108,8 +50681,15 @@ SELECT + 55 + - - col1 AS col2 FROM tab2 # Datafusion - Expected - 10 # Datafusion - Expected - 6561 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* tab0\.col1 AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 * + col1 AS col1, + col2 AS col1 FROM tab0 +---- +1 +10 +441 +47 +6561 +99 query I rowsort SELECT ALL - 13 * + col2 col0 FROM tab1 @@ -50161,8 +50741,15 @@ SELECT DISTINCT + 33 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 46 # Datafusion - Expected - 90 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ Int64\(26\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + + 26 AS col2, col0 col2 FROM tab2 +---- +101 +46 +64 +72 +75 +90 query I rowsort SELECT ALL ( + + 77 ) * - + 93 + - 85 AS col2 FROM tab1 @@ -51052,8 +51639,11 @@ SELECT MIN ( 42 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(tab2\.col2\)\) AS col2" at position 0 and "Int64\(\-35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MIN ( + col2 ) AS col2, - 35 AS col2 FROM tab2 +---- +-23 +-35 query I rowsort label-8400 SELECT DISTINCT + MIN ( 82 ) FROM tab1 WHERE NULL >= NULL @@ -51169,8 +51759,15 @@ SELECT + + 14 AS col1 FROM tab0 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - -94 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 94 AS col0, + col1 AS col0 FROM tab1 AS cor0 +---- +-94 +-94 +-94 +14 +47 +5 query I rowsort SELECT 24 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) @@ -52772,8 +53369,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 83 * + + MIN ( ALL + col1 ) AS col2, - COUNT ( * ) AS col2 FROM tab0 +---- +-3 +83 query I rowsort SELECT ALL col1 * + + 41 * 87 AS col0 FROM tab2 AS cor0 @@ -53089,8 +53689,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 74 AS col2, + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 +---- +0 +74 query I rowsort label-8736 SELECT ALL + 97 + - 41 + ( - - col0 ) - - + col2 / + + col0 * - + col1 AS col0 FROM tab2 @@ -53514,8 +54117,15 @@ SELECT ALL - 76 * + 95 col0 FROM tab0 # Datafusion - Expected - -64 # Datafusion - Expected - -75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\)" at position 0 and "\(\- tab2\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0, - col0 FROM tab2 +---- +-46 +-46 +-64 +-64 +-75 +-75 query II rowsort SELECT ALL col1 AS col0, + col1 * - ( + col0 ) * - col2 FROM tab2 @@ -53873,8 +54483,11 @@ SELECT - - 18 AS col2, - col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT Int64\(79\)\)\) AS col0" at position 0 and "Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( DISTINCT + + 79 ) AS col0, 62 AS col0 FROM tab2 +---- +-79 +62 query II rowsort SELECT DISTINCT 21 * + + col0, + col0 AS col0 FROM tab2 @@ -54142,8 +54755,15 @@ SELECT ALL 83 * - MAX ( + - col0 ) AS col1 FROM tab0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col0, col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query II rowsort label-8903 SELECT col0, - col2 / col0 FROM tab0 AS cor0 @@ -54426,8 +55046,10 @@ SELECT - col0 + col1 + - col2 + + 86 + 40 / + - col2 * + col1 * - ( + + col1 ) * # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to ca6e4dd940ccce810e279b5818a37d30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* cor0\.col0 \* Int64\(\-7\) AS col1" at position 1 and "Int64\(15\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT col2, 87 * + + col0 * - 7 AS col1, + 15 AS col1 FROM tab0 AS cor0 +---- +9 values hashing to 5bc5121a3b510fa5333b56ad62478d50 query III rowsort label-8948 SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 - + - 57 <= CAST ( - col1 AS INTEGER ) @@ -54489,8 +55111,15 @@ SELECT DISTINCT - col0 - + col1 AS col2, 44 FROM tab2 # Datafusion - Expected - 42 # Datafusion - Expected - -5 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - col1 ) AS col1, 42 col1 FROM tab1 +---- +-14 +-47 +-5 +42 +42 +42 query I rowsort SELECT - col0 - + 81 FROM tab2 @@ -54765,8 +55394,11 @@ SELECT - col2 - + col1 col0, + col0 FROM tab2 WHERE NOT - 98 <= - - CAST ( NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 76 AS col2, COUNT ( * ) AS col2 FROM tab1 +---- +3 +76 query II rowsort SELECT - - col1, col0 AS col0 FROM tab2 AS cor0 @@ -55567,8 +56199,11 @@ SELECT + - col2 + - - col0 * - col2 - - - ( - 64 ) FROM tab2 WHERE NOT NULL >= N # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 25 AS col1 FROM tab0 +---- +25 +3 query I rowsort label-9137 SELECT ALL - COUNT ( - + col0 ) AS col0 FROM tab1 @@ -56020,8 +56655,15 @@ SELECT + 39 * + col0 FROM tab1 # Datafusion - Expected - -64 # Datafusion - Expected - 75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, - col0 AS col1 FROM tab2 +---- +-46 +-64 +-75 +46 +64 +75 query I rowsort SELECT ALL col0 + - + col0 FROM tab2 AS cor0 @@ -56123,8 +56765,11 @@ SELECT 76 * - col1 * + + col2, col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 66 AS col0, + ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab0 +---- +-66 +NULL query I rowsort label-9224 SELECT + 49 / + 39 FROM tab1 @@ -56140,8 +56785,15 @@ SELECT + 49 / + 39 FROM tab1 # Datafusion - Expected - 68 # Datafusion - Expected - 68 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\)" at position 0 and "Int64\(68\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68, 68 FROM tab2 AS cor0 +---- +68 +68 +68 +68 +68 +68 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col1 ) NOT BETWEEN - col0 + - - col0 AND NULL @@ -56451,8 +57103,9 @@ SELECT ALL - 7 / - - col2 AS col0 FROM tab1 AS cor0 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col2, col2 FROM tab1 AS cor0 WHERE - col2 IS NULL +---- query I rowsort label-9276 SELECT DISTINCT MAX ( + col2 ) * SUM ( + col0 ) FROM tab2 @@ -57499,8 +58152,11 @@ SELECT DISTINCT ( - 69 ) col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 0 and "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 89 col1, - CAST ( + ( COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +-3 +89 query I rowsort label-9448 SELECT MAX ( - col1 ) AS col1 FROM tab1 AS cor0 @@ -58730,8 +59386,15 @@ SELECT DISTINCT - + 28 + + 47 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 40 # Datafusion - Expected - 4750267 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ Int64\(52\) \* Int64\(21\) \* cor0\.col0 \* cor0\.col2 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + + 52 * + + 21 * col0 * col2 AS col0, col2 AS col0 FROM tab2 AS cor0 +---- +1155387 +23 +2795597 +40 +4750267 +58 query I rowsort SELECT DISTINCT - 22 AS col0 FROM tab1 AS cor0 WHERE 0 < - + 52 * - - 81 @@ -58778,8 +59441,15 @@ SELECT ALL + + col0 - - + col1 FROM tab1 AS cor0 # Datafusion - Expected - 22 # Datafusion - Expected - -91 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(17\) \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col0, 17 + + col1 col0 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +22 +31 +64 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 / col1 - - - 22 + + + col0 BETWEEN NULL AND - - col1 @@ -59024,8 +59694,15 @@ SELECT DISTINCT ( + + COUNT ( * ) ) AS col0 FROM tab0 # Datafusion - Expected - 87 # Datafusion - Expected - -29 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 29 AS col1, col0 AS col1 FROM tab0 +---- +-29 +-29 +-29 +15 +87 +97 query I rowsort label-9701 SELECT ALL - COUNT ( * ) + 74 + - COUNT ( * ) FROM tab2 @@ -59099,8 +59776,15 @@ SELECT - COUNT ( ALL - - 98 ) AS col1 FROM tab2 WHERE NULL <> - CAST ( NULL AS I # Datafusion - Expected - NULL # Datafusion - Expected - 303555 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* \(\- Int64\(\-95\)\) \* tab1\.col2 \+ Int64\(\-65\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * - ( - 95 ) * col2 + - 65 AS col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 +---- +127615 +27960 +303555 +NULL +NULL +NULL query I rowsort SELECT - + ( + 99 ) * - 2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL @@ -60114,8 +60798,10 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 49 IS NULL AND + col0 = - + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 707f860dfc4fe7764dbb5046cf75caa1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(86\) AS Int32\) AS col0" at position 1 and "Int64\(72\) / \(\- cor0\.col2\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col0 + + 57, CAST ( 86 AS INTEGER ) AS col0, 72 / - + col2 AS col0 FROM tab2 cor0 +---- +9 values hashing to 76bd9e991d20ab340466e4772d520325 query I rowsort SELECT - + 70 + + col0 AS col1 FROM tab0 AS cor0 @@ -60484,8 +61170,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * - col1 + - + col2 = NULL # Datafusion - Expected - 64 # Datafusion - Expected - -1738 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \* Int64\(\-79\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 22 * - 79 AS col2, + col0 AS col2 FROM tab2 cor0 +---- +-1738 +-1738 +-1738 +46 +64 +75 query I rowsort SELECT ALL - 44 * + - col0 AS col1 FROM tab0 diff --git a/data/sqlite/random/aggregates/slt_good_65.slt b/data/sqlite/random/aggregates/slt_good_65.slt index d18f8f0..6d4dbdb 100644 --- a/data/sqlite/random/aggregates/slt_good_65.slt +++ b/data/sqlite/random/aggregates/slt_good_65.slt @@ -248,8 +248,15 @@ SELECT ALL - 8 AS col0, - col1 AS col1 FROM tab0 # Datafusion - Expected - 137 # Datafusion - Expected - 65 # Datafusion - Expected - 165 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "Int64\(\-9\) \+ cor0\.col2 \+ Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 col0, - 9 + col2 + + 78 AS col0 FROM tab1 cor0 +---- +128 +137 +165 +65 +65 +65 query III rowsort SELECT * FROM tab1 cor0 WHERE + col1 / - col2 * 37 IS NULL @@ -461,8 +468,11 @@ 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\(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\. +query II valuesort SELECT ALL 96 - - COUNT ( * ) + 39 AS col0, + 40 col0 FROM tab0 +---- +138 +40 query I rowsort label-75 SELECT DISTINCT CAST ( + col1 AS INTEGER ) / + col0 + - 43 AS col2 FROM tab1 @@ -729,8 +739,15 @@ SELECT DISTINCT - + 55 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 83 # Datafusion - Expected - -77 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col0" at position 0 and "tab2\.col0 \* tab2\.col0 / tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, col0 * col0 / + + col1 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL +---- +-51 +-67 +-77 +41 +53 +83 query I rowsort label-119 SELECT DISTINCT SUM ( col1 ) AS col1 FROM tab2 @@ -812,8 +829,15 @@ SELECT ALL * FROM tab2 WHERE - 85 / - 27 IS NULL # Datafusion - Expected - -85 # Datafusion - Expected - 74 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col0" at position 0 and "\(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 74 AS col0, - col0 AS col0 FROM tab1 +---- +-51 +-85 +-91 +74 +74 +74 query I rowsort SELECT ALL ( - - col0 ) AS col2 FROM tab1 @@ -1145,8 +1169,9 @@ SELECT ALL 13 - - - COUNT ( * ), ( + - 36 ) AS col0 FROM tab1 -36 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, col1 FROM tab0 WHERE NOT - col0 <> + + 29 +---- query I rowsort SELECT ALL col0 * + - 92 * + col2 AS col1 FROM tab1 @@ -1172,8 +1197,15 @@ SELECT DISTINCT * FROM tab1 WHERE 68 * - + col0 IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col2, CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 +---- +14 +47 +5 +NULL +NULL +NULL query I rowsort SELECT ALL - 91 * 70 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 @@ -1313,8 +1345,15 @@ SELECT DISTINCT + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL BETWEEN # Datafusion - Expected - -64 # Datafusion - Expected - 4983 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \- Int64\(67\) \* \(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 42 - + 67 * - col0 AS col1, - col0 AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +3040 +4246 +4983 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * + 11 * + + col0 / + col0 IS NULL @@ -3268,8 +3307,15 @@ SELECT * FROM tab0 WHERE NULL NOT BETWEEN + 58 AND NULL # Datafusion - Expected - -64 # Datafusion - Expected - 1209 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(31\) AS col0" at position 0 and "\(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 39 * + 31 AS col0, - col0 col0 FROM tab2 +---- +-46 +-64 +-75 +1209 +1209 +1209 query III rowsort label-545 SELECT * FROM tab2 WHERE ( ( ( NOT NULL NOT IN ( + col0 + + col2 * + + CAST ( NULL AS FLOAT8 ) * col2, ( 19 ) ) ) ) ) @@ -3321,8 +3367,15 @@ SELECT col0 AS col0, CAST ( col1 AS INTEGER ) FROM tab2 AS cor0 # Datafusion - Expected - 84 # Datafusion - Expected - -82 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col0" at position 0 and "Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 col0, + 84 col0 FROM tab1 AS cor0 +---- +-82 +-82 +-82 +84 +84 +84 query I rowsort SELECT DISTINCT col0 * col0 + - 18 AS col0 FROM tab0 AS cor0 @@ -3388,8 +3441,11 @@ SELECT ALL + MAX ( 69 ) - 7 * + COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 90 AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +-90 +3 query I rowsort label-564 SELECT - COUNT ( ALL + col1 ) + COUNT ( * ) / - 49 FROM tab0 AS cor0 @@ -3507,8 +3563,15 @@ SELECT - col2 + 59 AS col0 FROM tab0 cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 99180 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-45\)\) \* Int64\(38\) \* cor0\.col2 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 45 * + 38 * col2 AS col2, col0 AS col2 FROM tab2 AS cor0 +---- +39330 +46 +64 +68400 +75 +99180 query I rowsort SELECT + + col1 / - + ( + 70 ) + + 22 - 18 + - 31 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN - 25 AND - col0 @@ -3593,8 +3656,15 @@ SELECT - col2 - - 93 AS col0 FROM tab2 # Datafusion - Expected - -4928 # Datafusion - Expected - -4276 # Datafusion - Expected - -5025 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \- \(\- tab2\.col2\) \* \(\- tab2\.col0\) \+ tab2\.col1 AS col2" at position 0 and "\(\- tab2\.col1\) \* tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 7 - - col2 * + ( - col0 ) + col1 AS col2, + ( - col1 ) * + col0 col2 FROM tab2 +---- +-1000 +-2346 +-2476 +-4276 +-4928 +-5025 query I rowsort SELECT DISTINCT + col0 - + + col0 FROM tab1 @@ -3870,8 +3940,15 @@ SELECT + col2 * col2 + - col2 AS col0 FROM tab2 AS cor0 WHERE NOT 97 * - CAST ( # Datafusion - Expected - -10 # Datafusion - Expected - -81 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, - col2 AS col0 FROM tab0 AS cor0 WHERE + 46 NOT BETWEEN 60 AND 99 +---- +-1 +-10 +-21 +-47 +-81 +-99 query I rowsort label-644 SELECT 41 + - - MAX ( 31 ) FROM tab0 AS cor0 WHERE NOT ( col0 * + CAST ( NULL AS INTEGER ) + 72 IS NULL ) @@ -4195,8 +4272,11 @@ SELECT DISTINCT COUNT ( * ) - + + MAX ( - col2 ) * - COUNT ( * ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 +---- +3 +3 query III rowsort SELECT * FROM tab1 WHERE - 34 NOT BETWEEN + col2 * - - 89 * - 4 AND ( NULL ) @@ -4488,8 +4568,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 AS col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query II rowsort SELECT ALL 19, col0 + - col2 AS col2 FROM tab0 @@ -4986,8 +5073,15 @@ SELECT DISTINCT - - 86 + - 12 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - -5 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "tab1\.col1 / Int64\(\-75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, col1 / - 75 AS col2 FROM tab1 +---- +-14 +-47 +-5 +0 +0 +0 query I rowsort label-820 SELECT + 67 * - ( + + COUNT ( * ) ) * - 14 AS col0 FROM tab0 @@ -5642,8 +5736,15 @@ SELECT ALL 41 * + col0 col2 FROM tab1 AS cor0 # Datafusion - Expected - -97 # Datafusion - Expected - -240 # Datafusion - Expected - -1827 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* \(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col1 \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 24 * - col2 col0, col1 * - col0 AS col0 FROM tab0 AS cor0 +---- +-1128 +-1215 +-1827 +-2376 +-240 +-97 query III rowsort SELECT ALL * FROM tab1 cor0 WHERE NULL NOT BETWEEN col1 + + col1 * - 26 AND - col0 / - col2 @@ -5696,8 +5797,11 @@ SELECT DISTINCT col0 * - 97 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab1 +---- +3 +3 query I rowsort label-946 SELECT ( - 56 ) * COUNT ( * ) FROM tab0 WHERE ( NOT NULL IS NOT NULL ) @@ -5886,8 +5990,15 @@ SELECT ALL - 64 * - 31 AS col0 FROM tab2 # Datafusion - Expected - 0 # Datafusion - Expected - 12 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "cor0\.col0 \+ \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 col2, col0 + - col0 AS col2 FROM tab0 cor0 +---- +0 +0 +0 +12 +12 +12 query I rowsort label-976 SELECT - 4 / + 93 AS col0 FROM tab1 AS cor0 @@ -6224,8 +6335,15 @@ SELECT ALL - ( + 63 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - -5889 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \- tab2\.col1 \* CAST\(tab2\.col1 AS Int32\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 - + col1 * + + CAST ( col1 AS INTEGER ) AS col0, col1 col0 FROM tab2 +---- +-2578 +-4431 +-5889 +51 +67 +77 query I rowsort SELECT + col0 - + col0 + + - col0 FROM tab0 @@ -6893,8 +7011,15 @@ SELECT DISTINCT col0 / - 45 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -57105 # Datafusion - Expected - 76 # Datafusion - Expected - -9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "cor0\.col1 \* cor0\.col2 \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 col0, col1 * col2 * - col0 AS col0 FROM tab0 AS cor0 +---- +-18270 +-57105 +-9603 +76 +76 +76 query II rowsort label-1134 SELECT DISTINCT - COUNT ( * ), MAX ( + - ( + + col0 ) ) AS col0 FROM tab1 AS cor0 @@ -7115,8 +7240,15 @@ SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL # Datafusion - Expected - -85 # Datafusion - Expected - -91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( col0 ) AS col1, - col0 AS col1 FROM tab1 AS cor0 +---- +-51 +-51 +-85 +-85 +-91 +-91 query I rowsort SELECT DISTINCT + col2 * col2 * - 97 AS col2 FROM tab1 AS cor0 @@ -7606,8 +7738,15 @@ SELECT * FROM tab0 WHERE + col1 * 88 IS NULL # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0, col0 FROM tab2 WHERE NOT - col2 * + 21 IS NULL +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT ( + ( - col1 ) ) AS col1 FROM tab0 AS cor0 @@ -8430,8 +8569,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab0 +---- +3 +3 query I rowsort label-1392 SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 91 AS col0 FROM tab1 @@ -9471,8 +9613,15 @@ SELECT 34, - 67 * + col0 * col1 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -9 # Datafusion - Expected - -21 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) AS col1" at position 0 and "\(\- \(\- cor0\.col2\)\) \- Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 21 col1, - ( - col2 ) - + 56 AS col1 FROM tab0 cor0 +---- +-21 +-21 +-21 +-46 +-9 +43 query I rowsort label-1567 SELECT ALL + MAX ( DISTINCT + - 88 ) * 50 FROM tab2 @@ -9641,8 +9790,15 @@ SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND + col0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + col1 ), + col1 AS col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE col1 / + - 33 < + - 24 + col1 @@ -10174,8 +10330,15 @@ SELECT DISTINCT col2 * col2 * - 67 FROM tab1 # Datafusion - Expected - 58 # Datafusion - Expected - 5 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, 58 AS col0 FROM tab1 +---- +14 +47 +5 +58 +58 +58 query I rowsort label-1679 SELECT DISTINCT + 47 / - - col1 FROM tab2 @@ -10819,8 +10982,11 @@ SELECT 52 col0, + ( + - col0 ) FROM tab2 WHERE NOT col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- min\(DISTINCT \(\- tab1\.col2\)\)\) AS Int32\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( - MIN ( DISTINCT - col2 ) AS INTEGER ) AS col1, - COUNT ( * ) col1 FROM tab1 +---- +-3 +96 query I rowsort SELECT DISTINCT + ( 27 ) FROM tab0 @@ -11450,8 +11616,15 @@ SELECT * FROM tab1 WHERE NOT + - 0 IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col2, + col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-1897 SELECT - - 63 AS col2 FROM tab0 AS cor0 WHERE NOT + CAST ( + col1 AS FLOAT8 ) IS NOT NULL @@ -11971,8 +12144,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), + COUNT ( * ) FROM tab2 +---- +3 +3 query I rowsort label-1985 SELECT + + COUNT ( * ) + - COUNT ( * ) + + 85 + + + 77 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 NOT IN ( + + col1, + 50 ) @@ -12439,8 +12615,15 @@ SELECT - + col1 - + - col2 FROM tab0 AS cor0 # Datafusion - Expected - 826 # Datafusion - Expected - 49 # Datafusion - Expected - 952 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ Int64\(\-96\) / \(\- cor0\.col1\) AS col1" at position 0 and "Int64\(14\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 + - 96 / - col1 AS col1, + 14 * + col2 AS col1 FROM tab1 AS cor0 +---- +1344 +20 +24 +49 +826 +952 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL >= col0 ) @@ -12535,8 +12718,15 @@ SELECT ALL ( + 51 ) FROM tab2 # Datafusion - Expected - -47 # Datafusion - Expected - -5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\)" at position 0 and "\(\- tab1\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1, - col1 FROM tab1 +---- +-14 +-14 +-47 +-47 +-5 +-5 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -12838,8 +13028,15 @@ SELECT + - col0 + + + 97 / + + col2 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 +---- +51 +85 +91 +NULL +NULL +NULL query I rowsort SELECT + col1 - - 87 * + ( + + col2 ) FROM tab0 @@ -14042,8 +14239,15 @@ SELECT DISTINCT + col0 / col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, + col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -14085,8 +14289,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 42 / 58 IS NOT NULL # Datafusion - Expected - 46 # Datafusion - Expected - -91 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col0 AS col2, + 46 AS col2 FROM tab1 cor0 +---- +-51 +-85 +-91 +46 +46 +46 query I rowsort label-2340 SELECT COUNT ( ALL - 65 ) * COUNT ( * ) FROM tab1 AS cor0 @@ -14388,8 +14599,15 @@ SELECT ALL - col1 + - + col1 FROM tab0 AS cor0 # Datafusion - Expected - 18 # Datafusion - Expected - -35 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 35 AS col0, 18 AS col0 FROM tab2 AS cor0 +---- +-35 +-35 +-35 +18 +18 +18 query I rowsort label-2392 SELECT ALL 7 + COUNT ( * ) FROM tab2 AS cor0 @@ -14479,8 +14697,15 @@ SELECT - - col2 + 8 * - ( 2 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 3240 # Datafusion - Expected - 97 # Datafusion - Expected - 3240 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(\-40\) \* Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col2, - 40 * - 81 AS col2 FROM tab0 +---- +15 +3240 +3240 +3240 +87 +97 query II rowsort label-2405 SELECT ALL - 91 AS col1, - MAX ( - + col1 ) AS col2 FROM tab0 @@ -14644,8 +14869,15 @@ SELECT ALL + col1 + + 59 AS col2 FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, col1 AS col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-2429 SELECT col2 / col0 * + ( - - col0 ) AS col2 FROM tab1 @@ -14885,8 +15117,15 @@ SELECT ALL - - COUNT ( DISTINCT - + 3 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - -97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col1" at position 0 and "\(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, - col0 AS col1 FROM tab0 +---- +-15 +-15 +-87 +-87 +-97 +-97 query III rowsort SELECT ALL * FROM tab2 WHERE NULL < - col1 @@ -14906,8 +15145,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 78, + 2 AS col0, - - COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +-78 +2 +3 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 93 IS NOT NULL @@ -14916,8 +15159,11 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 93 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - -1950 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col0" at position 0 and "Int64\(75\) \* \(\- Int64\(26\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 55 col0, + 75 * - + 26 AS col0 FROM tab2 AS cor0 +---- +-1950 +55 query I rowsort label-2477 SELECT - COUNT ( * ) * + + 74 + - COUNT ( * ) FROM tab0 AS cor0 @@ -15076,8 +15322,15 @@ SELECT + + ( - COUNT ( * ) ) FROM tab2 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col1 \- \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, + col1 - - + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 +---- +46 +64 +75 +NULL +NULL +NULL query I rowsort SELECT ALL + + 56 - - col0 AS col2 FROM tab0 AS cor0 @@ -15649,8 +15902,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 * + + 4 AS col2, 99 + - COUNT ( * ) col2 FROM tab0 +---- +68 +96 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> - col2 * + col1 @@ -15912,8 +16168,11 @@ SELECT - + 82 + - - 71 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) * + COUNT ( * ) AS col0, - COUNT ( * ) AS col0 FROM tab2 +---- +-3 +9 query I rowsort label-2640 SELECT DISTINCT - 90 * - 34 * - - COUNT ( * ) FROM tab1 @@ -16159,14 +16418,24 @@ NULL # Datafusion - Expected - -38 # Datafusion - Expected - 75 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "CAST\(\(\- tab2\.col0\) AS Int32\) \+ \(\- Int64\(\-26\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, CAST ( - col0 AS INTEGER ) + - - 26 AS col2 FROM tab2 +---- +-20 +-38 +-49 +46 +64 +75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -223 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(tab1\.col2\)\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - ( + SUM ( + col2 ) ) col0, 85 AS col0 FROM tab1 WHERE NOT col1 IS NULL +---- +-223 +85 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 1 <> NULL @@ -17715,8 +17984,15 @@ SELECT * FROM tab0 WHERE NOT 54 NOT BETWEEN NULL AND - + 22 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, + col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-2944 SELECT COUNT ( - ( - col1 ) ) FROM tab1 @@ -17733,8 +18009,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \+ sum\(tab1\.col0\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - COUNT ( * ), MAX ( - col1 ) * - + 94 AS col2, - COUNT ( * ) + + SUM ( + col0 ) AS col2 FROM tab1 +---- +-3 +224 +470 query I rowsort SELECT ( - ( col2 ) ) * + 10 + - 37 - + + col1 * - + col2 FROM tab0 @@ -18377,8 +18657,15 @@ SELECT - + 95 FROM tab0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 64 # Datafusion - Expected - -56 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT - 56 AS col1, + 64 AS col1 FROM tab0 +---- +-56 +-56 +-56 +64 +64 +64 query I rowsort SELECT DISTINCT - col1 * - 20 FROM tab2 @@ -18756,8 +19043,15 @@ SELECT DISTINCT ( 1 ) * + 74 * 24 FROM tab0 # Datafusion - Expected - -71 # Datafusion - Expected - 4 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \+ Int64\(\-54\) AS col0" at position 0 and "Int64\(\-71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 + - 54 AS col0, - 71 AS col0 FROM tab2 +---- +-14 +-31 +-71 +-71 +-71 +4 query I rowsort SELECT ALL - - 30 + - - 15 * - col0 FROM tab1 AS cor0 @@ -19278,8 +19572,15 @@ SELECT ALL * FROM tab1 WHERE col0 <> col0 # Datafusion - Expected - -129 # Datafusion - Expected - -58 # Datafusion - Expected - -119 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col0" at position 0 and "\(\- tab2\.col1\) \+ Int64\(\-52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, - col1 + - 52 AS col0 FROM tab2 +---- +-103 +-119 +-129 +-23 +-40 +-58 query IIIIII rowsort SELECT ALL * FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL @@ -19875,8 +20176,15 @@ SELECT + - 34 + - col2 * - col2 * - col2 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 95 # Datafusion - Expected - 91 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, + 95 AS col1 FROM tab1 +---- +51 +85 +91 +95 +95 +95 query I rowsort label-3303 SELECT + - CAST ( - + col1 AS INTEGER ) * + col2 + + - col2 AS col0 FROM tab2 AS cor0 @@ -20551,8 +20859,15 @@ SELECT DISTINCT * FROM tab0 WHERE NOT + 0 >= NULL # Datafusion - Expected - 91 # Datafusion - Expected - 1838 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* Int64\(19\) \+ tab1\.col1 AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * 19 + col1 AS col2, + col0 AS col2 FROM tab1 +---- +1126 +1339 +1838 +51 +85 +91 query I rowsort SELECT ALL + + ( + col1 ) + - + col1 AS col2 FROM tab2 AS cor0 @@ -20630,8 +20945,15 @@ SELECT ALL + MIN ( 90 ) FROM tab1 AS cor0 # Datafusion - Expected - 26 # Datafusion - Expected - -5 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 AS col1, + 26 AS col1 FROM tab1 cor0 +---- +-14 +-47 +-5 +26 +26 +26 query I rowsort SELECT ALL col2 + + 38 AS col0 FROM tab0 @@ -20832,8 +21154,11 @@ SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(77\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( ALL + 77 ) col2, COUNT ( * ) - COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +-3 +0 query I rowsort SELECT DISTINCT - 68 col1 FROM tab0 @@ -20852,8 +21177,15 @@ SELECT ALL + 83 + COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - -5 # Datafusion - Expected - 0 -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 / Int64\(\-67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, col1 / - 67 AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +0 +0 +0 query I rowsort SELECT ALL + col2 * + - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL @@ -21177,8 +21509,15 @@ SELECT ALL - COUNT ( ALL - - col0 ) + COUNT ( - 8 ) AS col2 FROM tab2 # Datafusion - Expected - 9352 # Datafusion - Expected - 66 # Datafusion - Expected - 6728 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \- tab0\.col0 AS col2" at position 0 and "tab0\.col0 \* tab0\.col0 \+ Int64\(\-58\) \+ tab0\.col1 \* tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 - + col0 AS col2, col0 * + + col0 + + - 58 + col1 * + col1 AS col2 FROM tab0 +---- +-66 +-96 +66 +6728 +7952 +9352 query I rowsort label-3513 SELECT CAST ( NULL AS INTEGER ) * - - 48 AS col0 FROM tab0, tab2 AS cor0 @@ -21266,8 +21605,9 @@ SELECT DISTINCT + col0 * CAST ( 87 AS INTEGER ) AS col2 FROM tab1 7917 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, col2 AS col0 FROM tab1 WHERE col2 > NULL +---- query I rowsort SELECT ALL - col2 * col2 + + + col0 * + 41 AS col2 FROM tab0 @@ -21407,8 +21747,15 @@ SELECT - 5 / + 75 AS col2 FROM tab2 # Datafusion - Expected - -59 # Datafusion - Expected - 91 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "\(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col2, - col2 AS col2 FROM tab1 +---- +-59 +-68 +-96 +51 +85 +91 query I rowsort label-3554 SELECT ALL + + COUNT ( * ) AS col0 FROM tab1 WHERE NOT - 47 * 30 + + col1 IS NULL @@ -22144,8 +22491,15 @@ SELECT DISTINCT col2, col2 col1 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 69 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 AS col0, col2 AS col0 FROM tab0 +---- +10 +47 +69 +69 +69 +99 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -22317,8 +22671,15 @@ SELECT DISTINCT * FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) * col1 IS NOT NU # Datafusion - Expected - -67 # Datafusion - Expected - 99 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col1 \+ Int64\(4\) / \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(14\) \- \(\- \(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * + col1 + 4 / - col2 AS col1, 14 - - - col1 col1 FROM tab0 AS cor0 +---- +-67 +-7 +13 +210 +3807 +99 query I rowsort label-3708 SELECT DISTINCT - MIN ( DISTINCT - + 78 ) col2 FROM tab1 @@ -22445,8 +22806,11 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + + - col1 NOT BETWEEN + + 91 AND # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(61\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 61 * - + COUNT ( * ) / - COUNT ( * ) AS col0, COUNT ( * ) col0 FROM tab0 AS cor0 +---- +-61 +3 query I rowsort SELECT ALL + 10 - + + 50 FROM tab1 AS cor0 @@ -22913,8 +23277,15 @@ SELECT ALL + ( + 20 ) + COUNT ( * ) / - - COUNT ( * ) FROM tab0 AS cor0 # Datafusion - Expected - -8 # Datafusion - Expected - 94 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col2 AS col0" at position 0 and "Int64\(\-95\) \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 + + col2 AS col0, - 95 + col0 AS col0 FROM tab0 AS cor0 +---- +-8 +-80 +198 +2 +20 +94 query I rowsort label-3807 SELECT - 73 * + COUNT ( * ) FROM tab1 AS cor0 @@ -24043,8 +24414,11 @@ SELECT * FROM tab0 WHERE NOT NULL = col0 / col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, 93 AS col2 FROM tab0 WHERE NOT + col0 < NULL +---- +0 +93 query I rowsort SELECT ALL ( + 26 ) * - 5 + + col1 FROM tab0 @@ -25490,8 +25864,15 @@ SELECT DISTINCT + - 46 AS col1, - ( - col2 ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -34 # Datafusion - Expected - -75 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "\(\- Int64\(34\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col0 AS col1, - ( 34 ) AS col1 FROM tab2 AS cor0 +---- +-34 +-34 +-34 +-46 +-64 +-75 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE + col2 <= NULL @@ -26004,8 +26385,15 @@ SELECT DISTINCT - MIN ( DISTINCT - - ( - col0 ) ) FROM tab1 # Datafusion - Expected - 85 # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* CAST\(NULL AS Int32\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * + + CAST ( NULL AS INTEGER ) AS col1, col0 AS col1 FROM tab1 +---- +51 +85 +91 +NULL +NULL +NULL query I rowsort SELECT - ( + 62 ) FROM tab0 @@ -27737,8 +28125,15 @@ SELECT 17 col1, - 0 * + col2 FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - -3 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 AS col1, col0 AS col1 FROM tab2 +---- +-3 +-3 +-3 +46 +64 +75 query II rowsort SELECT ALL col2, col1 AS col1 FROM tab0 WHERE NOT ( + 64 * - - col1 ) < col0 @@ -28103,8 +28498,15 @@ SELECT col1, - 4 AS col0 FROM tab2 # Datafusion - Expected - 67 # Datafusion - Expected - 86 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 86 AS col2, col1 AS col2 FROM tab2 +---- +51 +67 +77 +86 +86 +86 query I rowsort label-4668 SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( NULL ) < NULL @@ -28395,8 +28797,11 @@ 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\(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\. +query II valuesort SELECT ALL - 19 * - COUNT ( * ) AS col1, - 18 - - COUNT ( * ) AS col1 FROM tab2 WHERE NOT - col1 / 86 + - col2 IS NOT NULL +---- +-18 +0 query I rowsort SELECT - 72 + - col0 + + 32 + + 84 * + + col2 * col2 AS col1 FROM tab2 AS cor0 @@ -28575,8 +28980,15 @@ SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - 39 # Datafusion - Expected - -196 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \+ cor0\.col1 \* \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 99 + + col1 * - col0 AS col1, 39 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL +---- +-1314 +-1926 +-196 +39 +39 +39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 @@ -28842,8 +29254,15 @@ SELECT ALL - + COUNT ( - - col1 ) * - - COUNT ( * ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + ( - col0 ) AS col0, + col1 AS col0 FROM tab0 AS cor0 +---- +1 +15 +21 +81 +87 +97 query I rowsort label-4793 SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col2 IS NULL @@ -28862,8 +29281,15 @@ SELECT DISTINCT SUM ( DISTINCT - + col1 ) FROM tab0 AS cor0 # Datafusion - Expected - -55 # Datafusion - Expected - -77 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "Int64\(\-55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col1, - 55 AS col1 FROM tab2 +---- +-51 +-55 +-55 +-55 +-67 +-77 query II rowsort SELECT DISTINCT col0 * + col2 * + col2 * col2, + col0 FROM tab0 @@ -29155,8 +29581,15 @@ SELECT * FROM tab0 WHERE 18 IS NULL # Datafusion - Expected - -87 # Datafusion - Expected - 81 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "\(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, - col0 AS col0 FROM tab0 +---- +-15 +-87 +-97 +1 +21 +81 query I rowsort SELECT 25 + - col1 FROM tab0 AS cor0 @@ -29536,8 +29969,15 @@ SELECT ALL * FROM tab2 WHERE NOT NULL = - - 43 + col2 * + - col0 * - CAST ( NULL # Datafusion - Expected - 0 # Datafusion - Expected - 75 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 / \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, + col0 / - col1 col2 FROM tab2 AS cor0 +---- +-1 +0 +0 +46 +64 +75 query I rowsort label-4903 SELECT - SUM ( ALL - col1 ) * + 31 FROM tab2 AS cor0 @@ -30152,8 +30592,11 @@ SELECT ALL + - 25 / col1 + + - col1 col0 FROM tab1 WHERE - 58 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + 11 AS col2 FROM tab2 +---- +11 +3 query III rowsort label-5016 SELECT * FROM tab0 WHERE NOT col2 NOT IN ( - col0 + + CAST ( NULL AS INTEGER ) ) @@ -30434,8 +30877,9 @@ SELECT DISTINCT + + 81 / - - 82 + + col0 + + col2 + - 81 col0 FROM tab2 AS cor0 52 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, + col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN - 62 + + 43 * col1 AND - 79 +---- query I rowsort SELECT ( + col2 ) AS col2 FROM tab1 cor0 WHERE col1 * + 59 * + col2 - 88 * + col1 + + + 82 + + 50 * - - col0 <= col1 @@ -31197,8 +31641,11 @@ SELECT CAST ( col1 AS INTEGER ) + + - 73 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 100 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 97 + COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab2 +---- +-3 +100 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NULL >= 88 @@ -31343,8 +31790,15 @@ SELECT - 15 FROM tab0 WHERE - + col2 IS NULL # Datafusion - Expected - 73 # Datafusion - Expected - -5 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col2, ( + 73 ) AS col2 FROM tab1 +---- +-14 +-47 +-5 +73 +73 +73 query I rowsort label-5225 SELECT + + COUNT ( * ) AS col0 FROM tab0 WHERE + + col1 IS NULL @@ -31689,8 +32143,15 @@ SELECT ALL - col1 AS col0 FROM tab2 WHERE - - col0 BETWEEN NULL AND NULL # Datafusion - Expected - 22 # Datafusion - Expected - -54 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 54 AS col1, 22 AS col1 FROM tab1 +---- +-54 +-54 +-54 +22 +22 +22 query III rowsort SELECT ALL * FROM tab2 WHERE NULL <= ( + 23 ) @@ -33201,8 +33662,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) col1, 22 AS col1 FROM tab2 AS cor0 +---- +-3 +22 query III rowsort label-5536 SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> ( 45 / - CAST ( NULL AS FLOAT8 ) / - col1 ) @@ -33252,8 +33716,15 @@ SELECT + COUNT ( * ) * + + 40 AS col0, - SUM ( DISTINCT - + 98 ) FROM tab2 # Datafusion - Expected - -1097 # Datafusion - Expected - -4350 # Datafusion - Expected - -1086 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \* tab2\.col0 AS col0" at position 0 and "Int64\(27\) \* Int64\(\-43\) \+ tab2\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 * + col0 AS col0, 27 * - 43 + + col0 AS col0 FROM tab2 +---- +-1058 +-1086 +-1097 +-1115 +-2560 +-4350 query I rowsort label-5544 SELECT - ( - SUM ( DISTINCT col0 ) ) FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL @@ -34289,8 +34760,11 @@ SELECT DISTINCT + + ( - + COUNT ( ALL ( col1 ) ) ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( ( COUNT ( * ) ) ) AS col2, 78 col2 FROM tab0 AS cor0 +---- +3 +78 query I rowsort label-5712 SELECT ALL + ( + COUNT ( * ) ) - - 51 * - 61 FROM tab2 AS cor0 @@ -34384,8 +34858,15 @@ SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL # Datafusion - Expected - -4550 # Datafusion - Expected - 96 # Datafusion - Expected - -2550 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col0 \* Int64\(\-50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 col0, col0 * - 50 AS col0 FROM tab1 AS cor0 +---- +-2550 +-4250 +-4550 +59 +68 +96 query I rowsort label-5728 SELECT 29 * COUNT ( * ) AS col2 FROM tab1 @@ -35537,8 +36018,15 @@ SELECT DISTINCT + + 43 * 90 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 5 # Datafusion - Expected - 91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, col1 AS col2 FROM tab1 +---- +14 +47 +5 +51 +85 +91 query I rowsort SELECT col1 * + ( - col0 ) col2 FROM tab0 WHERE NOT - - col2 >= ( col2 * - col1 ) @@ -35817,8 +36305,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 + + - col0 + - col2 IS NULL # Datafusion - Expected - 4489 # Datafusion - Expected - 36 # Datafusion - Expected - 5929 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col2" at position 0 and "tab2\.col1 \* tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 36 AS col2, col1 * col1 AS col2 FROM tab2 +---- +2601 +36 +36 +36 +4489 +5929 query I rowsort label-5972 SELECT COUNT ( * ) / + 24 * + - 76 AS col2 FROM tab1 @@ -36010,8 +36505,15 @@ SELECT 23 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NO # Datafusion - Expected - 12 # Datafusion - Expected - 58 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, + 12 AS col0 FROM tab2 +---- +12 +12 +12 +23 +40 +58 query I rowsort SELECT 41 + - + col0 + col0 AS col2 FROM tab1 cor0 @@ -36753,8 +37255,11 @@ SELECT DISTINCT - + col0 * - col2 * + + 5 * + col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab2 cor0 +---- +-3 +3 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT - 4 * - - ( + - 4 ) + + 88 + 48 * + - col2 IS NOT NULL @@ -36891,8 +37396,11 @@ SELECT + - col2 FROM tab1 WHERE NOT + - col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col0 FROM tab2 +---- +3 +NULL query II rowsort SELECT + 41 AS col0, + col1 FROM tab0 @@ -36918,8 +37426,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, + 6 AS col2 FROM tab0 cor0 +---- +-3 +6 query III rowsort SELECT DISTINCT * FROM tab2 WHERE 77 BETWEEN NULL AND ( + - ( - 43 ) - col0 ) @@ -37678,8 +38189,15 @@ SELECT + 70 + - - COUNT ( * ) FROM tab0 AS cor0 # Datafusion - Expected - 18 # Datafusion - Expected - 505073 # Datafusion - Expected - 2202 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(61\) \* \(\- \(\- cor0\.col0\)\) \+ \(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col1 \* cor0\.col1 \- Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * 61 * - - col0 + - + col2 AS col0, + col1 * col1 - + 7 AS col0 FROM tab1 AS cor0 +---- +158565 +18 +189 +2202 +440666 +505073 query I rowsort SELECT col1 + - - col2 * - 96 FROM tab1 AS cor0 @@ -37980,8 +38498,11 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * - CAST ( NULL AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MAX ( + CAST ( NULL AS INTEGER ) ) AS col0, 66 AS col0 FROM tab2 AS cor0 +---- +66 +NULL query I rowsort SELECT ALL - + ( - 79 ) FROM tab2 AS cor0 @@ -38530,8 +39051,15 @@ SELECT ALL col0 FROM tab1 AS cor0 WHERE + col0 * col1 <= col1 + - 62 * - col1 # Datafusion - Expected - -4684 # Datafusion - Expected - -4095 # Datafusion - Expected - -5020 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \* cor0\.col0 AS col1" at position 0 and "Int64\(76\) \+ cor0\.col0 \* \(\- Int64\(56\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 45 * + col0 col1, 76 + col0 * - ( + 56 ) AS col1 FROM tab1 AS cor0 +---- +-2295 +-2780 +-3825 +-4095 +-4684 +-5020 query I rowsort label-6421 SELECT DISTINCT ( - 89 ) * col0 - + ( col0 ) + + 54 * - CAST ( NULL AS INTEGER ) FROM tab1 cor0 @@ -38725,8 +39253,11 @@ SELECT + 76 * col0 * col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "max\(tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, MAX ( + col0 ) AS col0 FROM tab0 +---- +3 +97 query II rowsort label-6453 SELECT DISTINCT - col0, - CAST ( NULL AS INTEGER ) * + 39 + + 64 * + + 40 AS col1 FROM tab1 @@ -39163,8 +39694,15 @@ SELECT ALL - + SUM ( - col2 ) FROM tab0 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col0, + col0 AS col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-6526 SELECT DISTINCT + COUNT ( * ) + - 93 AS col1 FROM tab1 WHERE + - 0 * + + col2 BETWEEN - col0 AND - + col1 @@ -39395,8 +39933,11 @@ SELECT ALL + + 4 AS col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(cor0\.col2\) AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( ALL + + col2 ) AS col2, + 64 AS col2 FROM tab2 cor0 +---- +23 +64 query I rowsort SELECT 42 FROM tab1 WHERE NOT + - col0 IS NULL @@ -40908,8 +41449,10 @@ SELECT DISTINCT col0 * - + 42 + + col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 925748a119f098f88d36026adf77d418 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col1" at position 0 and "\(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 27 AS col1, - col2 AS col1, + ( + col2 ) AS col1 FROM tab0 +---- +9 values hashing to 8b0ad9fb48c832bbfafd4f89ff0c6966 query I rowsort label-6808 SELECT ALL SUM ( DISTINCT 22 ) FROM tab1 @@ -41653,8 +42196,10 @@ SELECT ALL - 84 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f72d1781ad185652a46eca80b3c19e18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* tab1\.col2 AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT col0 * + col2 AS col2, col0 AS col2, + 88 AS col1 FROM tab1 +---- +9 values hashing to 99dff9dcda97abad8da5a15e0db5cab7 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 AND + col0 + + 39 @@ -41931,8 +42476,15 @@ SELECT DISTINCT CAST ( - 99 AS INTEGER ) * + - 36 AS col2 FROM tab2 WHERE NOT NU # Datafusion - Expected - 72 # Datafusion - Expected - NULL # Datafusion - Expected - 72 -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\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + CAST ( NULL AS FLOAT8 ) AS col0, + 72 col0 FROM tab0 AS cor0 +---- +72 +72 +72 +NULL +NULL +NULL query I rowsort SELECT DISTINCT - 62 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL @@ -43297,8 +43849,15 @@ SELECT DISTINCT + - col1 FROM tab2 AS cor0 WHERE NULL = ( NULL ) # Datafusion - Expected - 1254 # Datafusion - Expected - 13 # Datafusion - Expected - 188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "cor0\.col0 \* Int64\(13\) \+ Int64\(\-7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 13 AS col2, + col0 * + 13 + - 7 col2 FROM tab0 AS cor0 +---- +1124 +1254 +13 +13 +13 +188 query I rowsort SELECT ALL + col2 * col1 + + col0 col2 FROM tab1 WHERE NULL IS NOT NULL @@ -43327,8 +43886,15 @@ SELECT DISTINCT ( - SUM ( ALL 49 ) ) + + - COUNT ( - 97 ) + SUM ( + CAST ( + 47 # Datafusion - Expected - 133 # Datafusion - Expected - -9603 # Datafusion - Expected - 143 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(46\) \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 * + - col0 AS col1, 46 + col0 AS col1 FROM tab0 cor0 +---- +-705 +-870 +-9603 +133 +143 +61 query I rowsort SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL > - col2 ) @@ -43834,8 +44400,15 @@ SELECT ALL + COUNT ( ALL + col1 ) FROM tab1 # Datafusion - Expected - 87 # Datafusion - Expected - 81 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, + col0 AS col2 FROM tab0 +---- +1 +15 +21 +81 +87 +97 query I rowsort SELECT ALL + 22 + 26 FROM tab2 @@ -44632,8 +45205,15 @@ SELECT DISTINCT CAST ( - + 36 AS INTEGER ) AS col0 FROM tab2 # Datafusion - Expected - -20 # Datafusion - Expected - 91 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, - 20 AS col2 FROM tab1 +---- +-20 +-20 +-20 +51 +85 +91 query III rowsort SELECT ALL * FROM tab1 WHERE NOT - ( + - col2 ) + - 17 IS NOT NULL @@ -44775,8 +45355,15 @@ NULL # Datafusion - Expected - 60 # Datafusion - Expected - 81 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 81 AS col2, 60 col2 FROM tab0 AS cor0 +---- +60 +60 +60 +81 +81 +81 query III rowsort SELECT * FROM tab2 AS cor0 WHERE + col1 BETWEEN - 45 AND ( 19 ) @@ -46277,8 +46864,10 @@ SELECT DISTINCT - - 34 * - + col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 30ee4ed698fac26bb8ec62268532ceb3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(6\) \* cor0\.col1 AS col1" at position 1 and "\(\- cor0\.col2\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 42, - col0 * 6 * + col1 AS col1, - col2 col1 FROM tab2 AS cor0 +---- +9 values hashing to 5377b1cd233df482408177fb5cfac592 query II rowsort SELECT ALL + 90 AS col2, - col2 FROM tab2 AS cor0 @@ -46505,8 +47094,11 @@ SELECT + 95 AS col0, + 55 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, COUNT ( * ) col1 FROM tab2 +---- +3 +3 query I rowsort SELECT - col2 FROM tab0 WHERE NOT col1 IS NULL @@ -46604,8 +47196,15 @@ SELECT + 5 * + + col1 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -135405 # Datafusion - Expected - 103 # Datafusion - Expected - -167076 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \- Int64\(\-8\) AS col0" at position 0 and "cor0\.col2 \* \(\- cor0\.col0\) \* Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 95 - + - 8 AS col0, col2 * - + col0 * + 27 AS col0 FROM tab1 AS cor0 +---- +-132192 +-135405 +-167076 +103 +103 +103 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -47251,8 +47850,15 @@ SELECT - + ( - - col1 ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -11248 # Datafusion - Expected - -5 # Datafusion - Expected - -11248 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(38\) \* Int64\(\-8\) \* Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, 38 * - 8 * 37 col0 FROM tab1 cor0 +---- +-11248 +-11248 +-11248 +-14 +-47 +-5 query I rowsort SELECT DISTINCT + - 32 - - col1 FROM tab0 AS cor0 @@ -48145,8 +48751,15 @@ NULL # Datafusion - Expected - 4624 # Datafusion - Expected - -40 # Datafusion - Expected - 9216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col0" at position 0 and "cor0\.col2 \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 40 AS col0, col2 * col2 AS col0 FROM tab1 AS cor0 +---- +-40 +-40 +-40 +3481 +4624 +9216 query I rowsort label-8013 SELECT - MAX ( + col0 ) FROM tab1 cor0 @@ -48256,8 +48869,15 @@ SELECT + - 56 col0 FROM tab0 WHERE ( ( NULL ) IS NOT NULL ) # Datafusion - Expected - 67 # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Float64\) AS Int32\) \* \(\- \(\- tab2\.col1\)\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + CAST ( NULL AS FLOAT8 ) AS INTEGER ) * - ( - col1 ) AS col2, + col1 AS col2 FROM tab2 +---- +51 +67 +77 +NULL +NULL +NULL query II rowsort label-8032 SELECT - CAST ( NULL AS INTEGER ) / - COUNT ( * ) col2, + 20 AS col0 FROM tab2 @@ -48282,8 +48902,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) + - + COUNT ( * ) AS col2, - 60 AS col2 FROM tab2 +---- +-60 +0 query I rowsort SELECT + col0 AS col1 FROM tab0 WHERE + - 80 IS NOT NULL @@ -48379,8 +49002,15 @@ SELECT ALL - 61 * + - COUNT ( * ) FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col2, col2 AS col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query II rowsort SELECT 85, ( + col0 ) FROM tab1 @@ -48774,8 +49404,11 @@ SELECT DISTINCT + 85 * - 69 FROM tab1 AS cor0 WHERE NOT col2 IS NOT 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 "\(\- sum\(Int64\(\-14\)\)\) AS col2" at position 0 and "sum\(DISTINCT \(\- cor0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - SUM ( ALL + - 14 ) AS col2, + SUM ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT + 3 > NULL +---- +NULL +NULL query I rowsort SELECT - 6 * + + col1 + col1 AS col0 FROM tab1 AS cor0 @@ -48918,8 +49551,15 @@ SELECT DISTINCT 69 col1 FROM tab2 cor0 WHERE + 20 IS NOT NULL # Datafusion - Expected - -71 # Datafusion - Expected - 1925 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* cor0\.col1 AS col1" at position 0 and "Int64\(\-71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 * + col1 AS col1, - 71 AS col1 FROM tab2 AS cor0 +---- +-71 +-71 +-71 +1275 +1675 +1925 query I rowsort label-8139 SELECT + + COUNT ( * ) FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN + col0 + - + col2 AND 15 * + col0 * col2 / col0 * + + col2 @@ -48939,8 +49579,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) * - COUNT ( - col0 ) AS col0, 43 / + ( 27 ) col0 FROM tab2 AS cor0 +---- +-9 +1 query I rowsort SELECT DISTINCT + 88 AS col2 FROM tab1 cor0 @@ -49076,8 +49719,11 @@ SELECT + - MIN ( ALL - col1 ) * - + 56 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, + ( + - COUNT ( * ) ) AS col1 FROM tab2 +---- +-3 +3 query II rowsort SELECT DISTINCT 78, - col2 AS col2 FROM tab1 WHERE NULL IS NOT NULL @@ -49235,8 +49881,15 @@ SELECT DISTINCT col0 * 11 FROM tab0 AS cor0 # Datafusion - Expected - 75 # Datafusion - Expected - 495 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* Int64\(33\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * + + 33 col1, 75 AS col1 FROM tab0 +---- +2871 +3201 +495 +75 +75 +75 query I rowsort label-8189 SELECT col2 / - + 43 FROM tab0 @@ -49544,8 +50197,15 @@ SELECT DISTINCT - + col0 * - - col1 col1 FROM tab0 AS cor0 # Datafusion - Expected - 1 # Datafusion - Expected - 2 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / cor0\.col2 AS col2" at position 0 and "cor0\.col1 / cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 / col2 col2, col1 / col2 AS col2 FROM tab2 AS cor0 +---- +1 +1 +1 +1 +2 +2 query I rowsort label-8239 SELECT ALL MAX ( + - col0 ) AS col2 FROM tab1 AS cor0 @@ -51319,8 +51979,15 @@ SELECT col1 AS col0 FROM tab2 WHERE - col2 + + + 78 * - 15 IN ( col1 ) # Datafusion - Expected - 1 # Datafusion - Expected - -9 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(90\)\) \- \(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 90 - - col1 AS col0, col1 AS col0 FROM tab0 cor0 +---- +-69 +-89 +-9 +1 +21 +81 query I rowsort SELECT ALL col0 * 14 FROM tab2 cor0 @@ -51887,8 +52554,15 @@ SELECT DISTINCT col0 + ( - col0 ) + - 5 AS col0, 35 FROM tab2 # Datafusion - Expected - 3560 # Datafusion - Expected - NULL # Datafusion - Expected - 5162 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-89\) \* \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col2, - 89 * + - col2 AS col2 FROM tab2 +---- +2047 +3560 +5162 +NULL +NULL +NULL query I rowsort label-8628 SELECT COUNT ( * ) + - - 25 FROM tab2 WHERE - 96 IS NULL @@ -52481,8 +53155,15 @@ SELECT - + COUNT ( * ) + + 90 FROM tab0 cor0 # Datafusion - Expected - -104 # Datafusion - Expected - 54 # Datafusion - Expected - -208 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) \+ cor0\.col2 \+ Int64\(11\) AS col2" at position 0 and "cor0\.col2 / cor0\.col2 \- \(\- Int64\(\-11\)\) \+ \(\- cor0\.col2\) \+ \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 56 + col2 + + 11 AS col2, col2 / col2 - - - 11 + - ( col2 ) + - col2 AS col2 FROM tab0 AS cor0 +---- +-104 +-208 +-30 +-35 +2 +54 query I rowsort SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE NOT - 86 IS NOT NULL AND NULL = ( NULL ) @@ -53184,8 +53865,15 @@ SELECT * FROM tab1 AS cor0 WHERE NULL > 3 # Datafusion - Expected - 85 # Datafusion - Expected - 368 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \* Int64\(\-16\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 23 * - 16 AS col1, col0 col1 FROM tab1 AS cor0 +---- +368 +368 +368 +51 +85 +91 query I rowsort label-8847 SELECT DISTINCT - SUM ( - 95 ) col2 FROM tab0 @@ -53578,8 +54266,15 @@ SELECT + 32 + - col1 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - 0 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 / Int64\(98\) AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 / 98 AS col2, - col0 AS col2 FROM tab0 +---- +-15 +-87 +-97 +0 +0 +0 query I rowsort label-8910 SELECT DISTINCT - 65 * + + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 @@ -53962,8 +54657,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) * col # Datafusion - Expected - 23 # Datafusion - Expected - 81 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 \+ Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, col1 + 2 AS col2 FROM tab0 AS cor0 +---- +1 +21 +23 +3 +81 +83 query I rowsort SELECT + 52 * - + col0 AS col1 FROM tab0 cor0 @@ -54421,8 +55123,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( MAX ( + + 54 ) ) col1, + COUNT ( * ) * + - 36 col1 FROM tab1 AS cor0 +---- +-108 +54 query I rowsort SELECT ALL + col1 FROM tab1 AS cor0 WHERE 32 + - ( + + col0 ) - + - 15 NOT BETWEEN + 34 + + - col1 AND + col0 @@ -55178,8 +55883,15 @@ SELECT DISTINCT ( - col1 ) + col1 AS col2 FROM tab2 # Datafusion - Expected - -4928 # Datafusion - Expected - -74 # Datafusion - Expected - -5025 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \+ \(\- tab2\.col0\) AS col0" at position 0 and "tab2\.col0 \* \(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 1 + - col0 col0, col0 * - + col1 AS col0 FROM tab2 +---- +-2346 +-45 +-4928 +-5025 +-63 +-74 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT ( + + 25 ) IS NULL AND NOT NULL < NULL @@ -55898,8 +56610,11 @@ SELECT DISTINCT - col2 * - col1 * + col0 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, ( + + COUNT ( * ) ) + - 56 col1 FROM tab2 AS cor0 +---- +-53 +3 query I rowsort SELECT + - ( - - col0 ) AS col0 FROM tab1 AS cor0 @@ -56193,8 +56908,9 @@ SELECT DISTINCT col2 + + ( + 75 ) AS col0 FROM tab2 98 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "Int64\(8\) \* \(\- Int64\(9\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 29 AS col1, 8 * + - ( + 9 ) AS col1 FROM tab1 WHERE NOT + + col1 IN ( - col1 + - 74, col1 ) +---- query I rowsort label-9346 SELECT DISTINCT + 15 * 74 * COUNT ( * ) * - 97 - - + 17 FROM tab0 AS cor0 @@ -56248,8 +56964,15 @@ SELECT ALL - + col1 FROM tab1 WHERE - col0 * + col0 * + col2 >= - col1 + CAST ( # Datafusion - Expected - 12 # Datafusion - Expected - 96 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "Int64\(97\) \- Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, 97 - + + 85 AS col0 FROM tab1 +---- +12 +12 +12 +59 +68 +96 query I rowsort SELECT col1 / + 11 AS col2 FROM tab1 WHERE NOT col1 NOT IN ( + + 8 - 47 ) @@ -56292,8 +57015,15 @@ SELECT - 12 * - COUNT ( * ) AS col1 FROM tab2 # Datafusion - Expected - 32 # Datafusion - Expected - 81 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col0 \+ Int64\(\-55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, + col0 + + - 55 AS col2 FROM tab0 +---- +-40 +1 +21 +32 +42 +81 query III rowsort SELECT * FROM tab0 WHERE NOT - 73 IS NULL @@ -56494,8 +57224,15 @@ SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) + + + COUNT ( + 0 ) FROM tab2 AS c # Datafusion - Expected - 15 # Datafusion - Expected - -99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - + col2 ) AS col1, col0 AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +15 +87 +97 query I rowsort SELECT DISTINCT + col1 * 59 AS col0 FROM tab2 AS cor0 @@ -56761,8 +57498,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 33 + - 41 AS col0, - COUNT ( * ) col0 FROM tab1 +---- +-3 +-74 query I rowsort label-9444 SELECT - COUNT ( + col0 ) + - - MAX ( + 38 ) FROM tab1 AS cor0 @@ -56958,8 +57698,15 @@ NULL # Datafusion - Expected - -91 # Datafusion - Expected - 96 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "\(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 col1, - col0 AS col1 FROM tab1 +---- +-51 +-85 +-91 +59 +68 +96 query I rowsort SELECT DISTINCT - 61 * - + col0 AS col2 FROM tab0 @@ -57138,8 +57885,15 @@ SELECT ALL + 11 * - col1 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 18 AS col0, CAST ( NULL AS INTEGER ) * 4 AS col0 FROM tab0 cor0 +---- +18 +18 +18 +NULL +NULL +NULL query I rowsort SELECT col2 * - 28 + col0 FROM tab2 AS cor0 @@ -57864,8 +58618,11 @@ SELECT ALL + - ( - col1 ) - + col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) +---- +-9 +9 query I rowsort SELECT + 30 + - 58 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 @@ -58982,8 +59739,10 @@ SELECT DISTINCT 20 * COUNT ( * ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 1661866edde3404251e32358f47d7e8b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col2" at position 1 and "Int64\(5\) \+ \(\- tab0\.col2\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col0 / + + ( + 69 ), - col1 col2, + 5 + - col2 AS col2 FROM tab0 +---- +9 values hashing to fd6a51c2889a4e397828ba2ff84c6f08 query I rowsort SELECT col2 - 97 - + 12 * - - col1 + 58 AS col1 FROM tab0 @@ -59303,8 +60062,15 @@ SELECT ALL 46 * + col2 AS col2 FROM tab1 WHERE NOT + + 79 > + col2 # Datafusion - Expected - -40 # Datafusion - Expected - -96 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(\-40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, - 40 AS col0 FROM tab1 cor0 +---- +-40 +-40 +-40 +-59 +-68 +-96 query I rowsort SELECT DISTINCT - + col2 * - col0 + - 21 - col2 + - - 85 * col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL diff --git a/data/sqlite/random/aggregates/slt_good_66.slt b/data/sqlite/random/aggregates/slt_good_66.slt index 9ed1508..3cfc437 100644 --- a/data/sqlite/random/aggregates/slt_good_66.slt +++ b/data/sqlite/random/aggregates/slt_good_66.slt @@ -396,8 +396,11 @@ 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\(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\. +query II valuesort SELECT ALL + - COUNT ( * ), - COUNT ( * ) FROM tab1 AS cor0 +---- +-3 +-3 query II rowsort SELECT DISTINCT - 36 + col0 AS col2, + col2 + + 51 FROM tab0 AS cor0 WHERE NULL < + 23 - - col0 * - - 49 @@ -1088,8 +1091,15 @@ SELECT + COUNT ( * ) + + 61 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = + col2 * # Datafusion - Expected - -47 # Datafusion - Expected - 99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "\(\- \(\- \(\- tab0\.col2\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, - ( - - col2 ) AS col1 FROM tab0 +---- +-10 +-47 +-99 +10 +47 +99 query I rowsort label-176 SELECT ALL + 8 + - CAST ( NULL AS INTEGER ) FROM tab2 @@ -1252,8 +1262,10 @@ SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE NOT + 53 + 54 <= ( + col0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to cf2d55422921ea7ee1bd8db46d3cc133 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* \(\- tab2\.col1\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + col2 * - ( + col1 ) AS col2, + col1 AS col2, - col2 + - - 78 - + col1 * - - 64 col2 FROM tab2 +---- +9 values hashing to 83ed59a5b437865d7317a8c372eadc9d query I rowsort label-204 SELECT - CAST ( NULL AS INTEGER ) / - 49 AS col0 FROM tab0 @@ -1488,8 +1500,10 @@ SELECT 79 / + COUNT ( ALL + col0 ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f39d76dfe9d44d48ef3e30819e93b042 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* tab0\.col2 AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + col0 * + col2 col0, - col1 AS col0, + + col0 col1 FROM tab0 +---- +9 values hashing to b273e38e605e5ec11de1a06e38c756d7 query I rowsort label-242 SELECT DISTINCT COUNT ( * ) * + 44 + + COUNT ( * ) * + + CAST ( 6 AS INTEGER ) col0 FROM tab2 AS cor0 @@ -2266,8 +2280,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + + col0 IS NULL # Datafusion - Expected - 1 # Datafusion - Expected - -260 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(26\)\) \* CAST\(cor0\.col2 AS Int32\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 26 * CAST ( + + col2 AS INTEGER ) col2, + ( + ( + ( col1 ) ) ) AS col2 FROM tab0 AS cor0 +---- +-1222 +-2574 +-260 +1 +21 +81 query I rowsort label-364 SELECT + SUM ( DISTINCT + 2 ) FROM tab2 AS cor0 WHERE + col1 = NULL @@ -2671,8 +2692,11 @@ SELECT DISTINCT - - COUNT ( * ) FROM tab0 AS cor0 WHERE - col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 51 AS col0, + ( + COUNT ( * ) ) col0 FROM tab1 AS cor0 +---- +-51 +3 query I rowsort SELECT ALL + + col2 * 65 FROM tab1 AS cor0 WHERE col0 + - 96 IN ( - 2, + col2, - 92 ) @@ -3431,8 +3455,15 @@ SELECT DISTINCT 44 * 86 * - CAST ( + COUNT ( DISTINCT col2 ) AS INTEGER ) AS col # Datafusion - Expected - 47 # Datafusion - Expected - 70 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 70 AS col1, + col2 AS col1 FROM tab0 AS cor0 +---- +10 +47 +70 +70 +70 +99 query I rowsort SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NULL > - col0 @@ -3912,8 +3943,15 @@ SELECT + col0 AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) < - + 40 # Datafusion - Expected - 3298 # Datafusion - Expected - 19 # Datafusion - Expected - 510 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "cor0\.col0 \* Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 19 AS col2, + ( col0 ) * 34 AS col2 FROM tab0 AS cor0 +---- +19 +19 +19 +2958 +3298 +510 query II rowsort SELECT ALL col2 col2, 84 FROM tab0 AS cor0 @@ -4641,8 +4679,11 @@ SELECT 41 * - - COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -252 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-84\)\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( - 84 ) AS col2, + 12 AS col2 FROM tab1 +---- +-252 +12 query I rowsort label-749 SELECT + col1 + - + 48 / 72 + + col2 * + col2 * + col0 FROM tab0 @@ -4759,8 +4800,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 AS col1, - COUNT ( * ) AS col1 FROM tab0 +---- +-3 +0 query I rowsort label-769 SELECT + 41 / + - 46 * + + COUNT ( * ) AS col2 FROM tab1 @@ -4937,8 +4981,15 @@ SELECT + - ( + MIN ( col1 ) ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - -5 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, col2 AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +59 +68 +96 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 @@ -4947,8 +4998,15 @@ SELECT - col1 AS col0, col2 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 73178 # Datafusion - Expected - -5 # Datafusion - Expected - 56024 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(\-90\) \+ Int64\(\-73\) \- \(\- cor0\.col2\) \+ Int64\(\-43\) \* Int64\(\-91\) \+ \(\- cor0\.col2\) \* Int64\(\-15\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, ( - 90 ) + + - 73 - - col2 + - 43 * + - 91 + - col2 * - 15 * ( + col2 ) AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +142086 +56024 +73178 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 @@ -5719,8 +5777,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \+ \(\- min\(cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 83 AS col1, COUNT ( * ) + - + MIN ( + col0 ) AS col1 FROM tab1 cor0 WHERE NULL IS NULL +---- +-48 +-83 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 @@ -5932,8 +5993,11 @@ SELECT ALL + 59 * + - 15 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, - 88 AS col0 FROM tab2 AS cor0 +---- +-88 +3 query I rowsort SELECT - + ( + + 47 ) FROM tab1 AS cor0 @@ -6361,8 +6425,15 @@ SELECT DISTINCT + COUNT ( * ) * + 46 FROM tab0 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - -58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col2 AS col1, col0 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +46 +64 +75 query I rowsort label-1035 SELECT - col1 / + - 48 + col0 FROM tab1 AS cor0 @@ -6788,8 +6859,15 @@ SELECT 18 * - + 81 + 11 + + col2 FROM tab0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + col0 ), col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-1112 SELECT col1 + 91 - - col0 / + + ( col1 ) + col1 AS col0 FROM tab0 @@ -7510,8 +7588,15 @@ SELECT 92 * - 64 AS col2 FROM tab1 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 AS col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT ALL + 53 * ( col1 ) * - col1 * 39 FROM tab0 @@ -7564,8 +7649,11 @@ SELECT ALL + col2 AS col1 FROM tab0 WHERE NOT NULL > - + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- \(\- tab2\.col0\)\)\) \* \(\- avg\(DISTINCT CAST\(NULL AS Int32\)\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT MAX ( - - col0 ) * - + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) AS col0, - 38 AS col0 FROM tab2 +---- +-38 +NULL query I rowsort label-1239 SELECT + + 11 / - 91 AS col1 FROM tab2 AS cor0 @@ -7915,8 +8003,15 @@ SELECT + + col2 / + 50 + col1 + + ( ( - col0 ) ) FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, + col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT - 27 * - + 48 + + ( - 77 ) AS col0 FROM tab2 cor0 WHERE NOT + col1 IS NULL @@ -8161,8 +8256,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab0 +---- +3 +3 query I rowsort SELECT - ( + + col0 ) * - 99 AS col2 FROM tab0 AS cor0 WHERE NULL < 98 @@ -8222,8 +8320,15 @@ SELECT + - col2 * - col1 - + col0 FROM tab1 cor0 # Datafusion - Expected - 110 # Datafusion - Expected - -259 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) \* Int64\(7\) AS col1" at position 0 and "\(\- cor0\.col1\) \+ Int64\(13\) \+ cor0\.col1 \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 37 * + 7 AS col1, - col1 + 13 + + + col1 + col0 col1 FROM tab0 AS cor0 +---- +-259 +-259 +-259 +100 +110 +28 query I rowsort label-1346 SELECT DISTINCT MIN ( DISTINCT - ( - 29 ) ) + COUNT ( 23 ) * + - 86 FROM tab1 @@ -8267,8 +8372,10 @@ SELECT + - 57 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a0274f500ab3a5808bb3ca9fcb5ed600 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col1 AS col2, + col1 AS col2, - + col0 + + 46 + + 33 FROM tab1 AS cor0 +---- +9 values hashing to d6d4a7a79910069ffd527164a2f2f48c query I rowsort SELECT ALL col0 * - ( + - 15 ) + - ( + - 52 ) + + col1 + + col2 FROM tab2 AS cor0 @@ -8814,8 +8921,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + 30 # Datafusion - Expected - 64 # Datafusion - Expected - -3944 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* cor0\.col2 \+ \(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 * col2 + - col2 AS col1, col0 col1 FROM tab2 cor0 +---- +-1196 +-3120 +-3944 +46 +64 +75 query III rowsort SELECT ALL * FROM tab1 WHERE NOT + 90 IS NULL @@ -10661,8 +10775,15 @@ SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - 79 AND NULL # Datafusion - Expected - 87 # Datafusion - Expected - 78 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-78\)\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - - 78 ) AS col2, + col0 col2 FROM tab0 +---- +15 +78 +78 +78 +87 +97 query I rowsort label-1754 SELECT ALL 47 FROM tab1 WHERE NOT + col2 * - col2 * - col0 + + CAST ( NULL AS INTEGER ) >= NULL @@ -10705,8 +10826,15 @@ SELECT ALL CAST ( - - 54 AS INTEGER ) / col2 + + + col2 AS col2 FROM tab1 # Datafusion - Expected - 84 # Datafusion - Expected - 77 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "Int64\(26\) \+ tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col0, 26 + + col2 col0 FROM tab2 +---- +49 +51 +66 +67 +77 +84 query I rowsort SELECT + col0 + - - 43 * + col0 FROM tab0 @@ -11306,8 +11434,15 @@ SELECT SUM ( col2 ) + + 67 AS col2 FROM tab1 # Datafusion - Expected - -96 # Datafusion - Expected - 6 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \+ Int64\(91\) AS col1" at position 0 and "\(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + + 91 AS col1, - col2 AS col1 FROM tab1 +---- +-59 +-68 +-96 +0 +40 +6 query I rowsort SELECT col0 + + + col0 + 48 FROM tab2 @@ -11814,8 +11949,11 @@ SELECT - + col1, - col0 + - + col1 / + + 41 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +-3 +3 query I rowsort SELECT + 59 * - ( col2 ) AS col1 FROM tab1 @@ -13122,8 +13260,11 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( - - 71 ) < - + 67 * + + ( - col2 ) # 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\) AS col1" at position 0 and "\(\- min\(tab1\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 13 AS col1, - MIN ( + col2 ) col1 FROM tab1 +---- +-13 +-59 query III rowsort SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN + col0 * + + col1 AND - ( - - 51 ) @@ -13600,8 +13741,15 @@ SELECT ALL col0 / - - col0 + - - col2 - - - col1 FROM tab2 # Datafusion - Expected - -261 # Datafusion - Expected - -97 # Datafusion - Expected - -291 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "Int64\(3\) \* \(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, 3 * - col0 AS col2 FROM tab0 +---- +-15 +-261 +-291 +-45 +-87 +-97 query II rowsort SELECT ALL 15 AS col1, col0 FROM tab2 @@ -14204,8 +14352,11 @@ SELECT - COUNT ( * ) * 16 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) 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 II valuesort SELECT ALL + 55 AS col1, MIN ( - - col2 ) AS col1 FROM tab1 AS cor0 +---- +55 +59 query I rowsort label-2344 SELECT + CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0 @@ -14954,8 +15105,15 @@ SELECT ALL * FROM tab1 WHERE ( NOT col1 IS NOT NULL ) # Datafusion - Expected - -49 # Datafusion - Expected - 3552 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* tab1\.col2 \+ \(\- tab1\.col2\) AS col2" at position 0 and "Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 38 * col2 + - col2 AS col2, - 49 AS col2 FROM tab1 +---- +-49 +-49 +-49 +2183 +2516 +3552 query I rowsort SELECT - 94 + col2 FROM tab0 cor0 @@ -18383,8 +18541,15 @@ SELECT ALL 5 + - + 53 * COUNT ( - col1 ) FROM tab0 # Datafusion - Expected - 17940 # Datafusion - Expected - -84 # Datafusion - Expected - 29250 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) \+ \(\- tab2\.col2\) \+ tab2\.col1 AS col1" at position 0 and "\(\- tab2\.col0\) \* Int64\(30\) \* \(\- Int64\(13\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 93 + - + col2 + col1 AS col1, - col0 * + + 30 * - + 13 AS col1 FROM tab2 +---- +-56 +-65 +-84 +17940 +24960 +29250 query II rowsort SELECT + col2 col2, col1 FROM tab2 AS cor0 WHERE NOT + col1 >= col0 @@ -18449,8 +18614,15 @@ NULL # Datafusion - Expected - 2 # Datafusion - Expected - 714 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* cor0\.col1 AS col2" at position 0 and "cor0\.col1 \+ cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 34 * col1 col2, col1 + col1 AS col2 FROM tab0 AS cor0 +---- +162 +2 +2754 +34 +42 +714 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE - col0 < + 1 @@ -19078,8 +19250,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MIN ( col1 ) * + + COUNT ( ALL 47 ) AS col1, - COUNT ( * ) col1 FROM tab0 AS cor0 +---- +-3 +3 query I rowsort label-3153 SELECT DISTINCT ( - ( - + COUNT ( * ) ) ) AS col2 FROM tab2 @@ -19326,8 +19501,11 @@ SELECT COUNT ( - - col1 ) AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, - COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +-3 +3 query I rowsort label-3196 SELECT ALL - 13 - MIN ( - col0 ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0 @@ -19824,8 +20002,15 @@ SELECT ALL - COUNT ( * ) + + 73 AS col0 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 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 IR valuesort SELECT col2 AS col1, CAST ( NULL AS FLOAT8 ) col1 FROM tab1 +---- +59 +68 +96 +NULL +NULL +NULL query II rowsort SELECT col2, + 35 * - + col1 + + 42 FROM tab0 @@ -19917,8 +20102,10 @@ SELECT + 15 - 66 - + 34 * - - col1 + - 55 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 6f25ae07739ef764cfbc373b1dfda5ec -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - col1 * + - CAST ( NULL AS INTEGER ) AS col2, + col1 AS col2, - 69 FROM tab0 AS cor0 +---- +9 values hashing to 8b65dbcdd268b4a6dcdbfadf43fea9db query I rowsort SELECT - 19 - col0 FROM tab2 AS cor0 @@ -20417,8 +20604,10 @@ SELECT DISTINCT - - col0 FROM tab1 WHERE NOT + 46 + col2 BETWEEN NULL AND + + co # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to cab274f6910f0989b8e21ed8f2765415 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col2, + col2 AS col2, + col0 col1 FROM tab2 +---- +9 values hashing to e08c6a707e620075b02d2f4399f35dae query I rowsort SELECT ( col2 ) AS col0 FROM tab0 WHERE NOT - col0 + + + 32 > + ( 22 ) @@ -20462,8 +20651,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 42 IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col1, + col2 AS col1 FROM tab0 AS cor0 +---- +10 +47 +99 +NULL +NULL +NULL query I rowsort label-3383 SELECT ALL + col2 / - col0 * + col0 col2 FROM tab2 AS cor0 @@ -20508,8 +20704,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 * - ( 70 ) < + + 56 / - 80 # Datafusion - Expected - 9816 # Datafusion - Expected - 0 # Datafusion - Expected - 2224 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col2 \* cor0\.col2 \+ Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0 / ( - col1 ) col2, col2 * col2 + 15 AS col2 FROM tab0 AS cor0 +---- +-4 +-97 +0 +115 +2224 +9816 query I rowsort SELECT DISTINCT + - 37 AS col1 FROM tab2 cor0 @@ -20911,8 +21114,15 @@ SELECT DISTINCT - SUM ( DISTINCT - - col0 ) FROM tab2 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - 96 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 96 AS col1, - col0 AS col1 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +96 +96 +96 query I rowsort label-3461 SELECT - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 AS cor0 @@ -20943,8 +21153,15 @@ SELECT - 17 col0, + ( + 77 ) FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 60 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 60 AS col0, + col2 AS col0 FROM tab1 AS cor0 +---- +59 +60 +60 +60 +68 +96 query I rowsort label-3465 SELECT + 1 * + SUM ( ALL - + col1 ) * ( - 22 ) AS col0 FROM tab1 AS cor0 @@ -21033,8 +21250,9 @@ SELECT - 3 + - col2 FROM tab2 AS cor0 -61 # Datafusion - Datafusion expected results: -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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 48 AS col1, + 82 AS col1 FROM tab1 AS cor0 WHERE col0 IS NULL +---- query I rowsort SELECT DISTINCT 13 - col2 AS col1 FROM tab1 cor0 @@ -21312,8 +21530,15 @@ SELECT DISTINCT + 80 + + col2 AS col1 FROM tab0 # Datafusion - Expected - -32 # Datafusion - Expected - -58 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col2" at position 0 and "tab0\.col0 \+ \(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 58 AS col2, col0 + - col2 AS col2 FROM tab0 +---- +-2 +-32 +-58 +-58 +-58 +77 query I rowsort label-3528 SELECT ALL - 12 - + ( - + MIN ( DISTINCT 95 ) ) FROM tab2 @@ -23298,8 +23523,11 @@ SELECT ALL + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN # Datafusion - Datafusion expected results: # Datafusion - Expected - 103 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(cor0\.col1\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( ALL + + col1 ) AS col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 +---- +103 +NULL query I rowsort label-3849 SELECT MAX ( DISTINCT - + 99 ) AS col2 FROM tab0 AS cor0 @@ -24122,8 +24350,15 @@ SELECT ALL COUNT ( - 1 ) col1 FROM tab0 cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col1, col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query III rowsort SELECT ALL * FROM tab2 WHERE + col2 + + + 88 NOT BETWEEN NULL AND - 58 @@ -24665,8 +24900,15 @@ SELECT ALL + ( - - col2 ) * - 2 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -77 # Datafusion - Expected - 75 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, - col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 + - 54 IS NULL +---- +-51 +-67 +-77 +46 +64 +75 query III rowsort SELECT * FROM tab2 WHERE NOT NULL IN ( - 38 ) @@ -25011,8 +25253,15 @@ SELECT 35 + col1 AS col0 FROM tab2 # Datafusion - Expected - -115 # Datafusion - Expected - 96 # Datafusion - Expected - -110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "\(\- tab1\.col2\) \+ \(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 col1, - col2 + + - col1 col1 FROM tab1 +---- +-110 +-115 +-64 +59 +68 +96 query I rowsort label-4132 SELECT - 72 * - + col0 * - 78 FROM tab0 cor0 WHERE CAST ( - CAST ( + col2 AS INTEGER ) AS INTEGER ) + - col0 * col0 IS NOT NULL @@ -26198,8 +26447,15 @@ SELECT + col2 AS col2, + col0 / + col2 AS col0 FROM tab2 # Datafusion - Expected - 81 # Datafusion - Expected - 99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, col1 AS col0 FROM tab0 +---- +1 +10 +21 +47 +81 +99 query II rowsort SELECT DISTINCT col2 + + col1 + - + col1 AS col0, - col2 FROM tab2 @@ -26957,8 +27213,15 @@ NULL # Datafusion - Expected - 68 # Datafusion - Expected - -80 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \+ tab1\.col1 AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + + + col1 AS col1, col2 AS col1 FROM tab1 +---- +-37 +-44 +-80 +59 +68 +96 query I rowsort label-4459 SELECT DISTINCT - CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col2 FROM tab2, tab2 AS cor0 @@ -28486,8 +28749,9 @@ SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN NULL AN ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col0\) AS Int32\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - + col0 AS INTEGER ) AS col0, 68 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL +---- query I rowsort SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL @@ -29072,8 +29336,15 @@ SELECT - COUNT ( * ) * + - 87 AS col2 FROM tab2 # Datafusion - Expected - -55 # Datafusion - Expected - 8 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "Int64\(\-55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 8 AS col0, - 55 AS col0 FROM tab0 +---- +-55 +-55 +-55 +8 +8 +8 query I rowsort label-4813 SELECT + CAST ( - 20 AS INTEGER ) col0 FROM tab0 @@ -30258,8 +30529,15 @@ SELECT ALL - + col0 * - - col2, col1 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -34 # Datafusion - Expected - 35 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col1" at position 0 and "Int64\(\-48\) \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 AS col1, - 48 + + col1 AS col1 FROM tab1 AS cor0 +---- +-1 +-34 +-43 +35 +35 +35 query II rowsort SELECT col0, ( - col0 ) FROM tab0 AS cor0 @@ -30846,8 +31124,15 @@ SELECT DISTINCT col2 - + 46 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - 24 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( 24 ) AS col1, - col2 AS col1 FROM tab2 +---- +-23 +-40 +-58 +24 +24 +24 query II rowsort SELECT ALL - 66 col2, + ( - - 98 ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) @@ -31016,8 +31301,11 @@ SELECT DISTINCT 3 / - col1 * - col2 * - + 21 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT cor0\.col1\)\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - MAX ( DISTINCT + col1 ) col0, + 95 AS col0 FROM tab2 AS cor0 +---- +-77 +95 query I rowsort SELECT DISTINCT - - col1 * + - col1 col1 FROM tab1 AS cor0 @@ -31411,8 +31699,15 @@ SELECT ALL + col1 + + col1 col2 FROM tab1 # Datafusion - Expected - 75 # Datafusion - Expected - 77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 col2, col0 AS col2 FROM tab2 +---- +46 +51 +64 +67 +75 +77 query III rowsort SELECT * FROM tab2 WHERE NOT col0 < - 82 * - + col2 * + + col0 * - + 43 - + col0 @@ -31503,8 +31798,10 @@ SELECT DISTINCT + - ( + - col2 ) * - - 58 * - col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 2e4f09a6f5f8770ddb62d6c0008714f4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col1 / \(\- cor0\.col1\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col1 + - col2 AS col1, - col0 * + 11 * + + col0 AS col0, col1 / - col1 AS col1 FROM tab1 AS cor0 +---- +9 values hashing to e4cb7a4d910c0296329a0a6d00a2a5e2 query I rowsort label-5219 SELECT 9 * CAST ( NULL AS INTEGER ) + + col1 + + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0 @@ -31869,8 +32166,15 @@ SELECT ALL - ( + - 92 ) FROM tab0 AS cor0 # Datafusion - Expected - 441 # Datafusion - Expected - 861510 # Datafusion - Expected - 6561 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* Int64\(6\) \* Int64\(\-65\) \* cor0\.col2 AS col1" at position 0 and "cor0\.col1 \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 * + 6 * + - 65 * + ( col2 ) AS col1, col1 * col1 col1 FROM tab0 AS cor0 +---- +1 +3822390 +39000 +441 +6561 +861510 query I rowsort SELECT DISTINCT - 14 * col2 * + col2 + - - col2 FROM tab2 AS cor0 @@ -31935,8 +32239,13 @@ SELECT ALL ( 88 ) + - + MAX ( + - 77 ) FROM tab2 # Datafusion - Expected - -21 # Datafusion - Expected - 99 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, - col1 AS col1 FROM tab0 WHERE NOT + col2 BETWEEN NULL AND - col2 * - col1 + - col2 * + + 77 +---- +-1 +-21 +10 +99 query I rowsort SELECT ALL col2 * - - 69 AS col1 FROM tab2 cor0 @@ -33297,8 +33606,15 @@ SELECT ALL 87 * - col1 FROM tab2 AS cor0 # Datafusion - Expected - -14 # Datafusion - Expected - -59 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ Int64\(\-64\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 + - 64 AS col1, - col1 AS col1 FROM tab1 AS cor0 +---- +-14 +-17 +-47 +-5 +-50 +-59 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT ( 31 ) NOT BETWEEN - col0 / - - col0 AND col0 @@ -33462,8 +33778,11 @@ SELECT DISTINCT 98 * ( + + col2 ) FROM tab1 WHERE NOT 95 IN ( + col0 + 16 * 20 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(tab1\.col1\) AS col1" at position 0 and "Int64\(\-41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( + col1 ) AS col1, - 41 AS col1 FROM tab1 +---- +-41 +5 query I rowsort SELECT ALL - col0 FROM tab0 cor0 WHERE ( - col2 ) IS NOT NULL @@ -33722,8 +34041,15 @@ SELECT + col2 AS col1, col2 - + + 94 AS col0 FROM tab2 # Datafusion - Expected - 96 # Datafusion - Expected - -75 # Datafusion - Expected - 107 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "tab2\.col0 \+ Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col0, col0 + + 32 AS col0 FROM tab2 +---- +-46 +-64 +-75 +107 +78 +96 query II rowsort label-5586 SELECT + ( + - ( - - COUNT ( col0 ) ) ) AS col0, + CAST ( NULL AS INTEGER ) FROM tab0 @@ -33963,8 +34289,9 @@ SELECT DISTINCT - + MIN ( - + col0 ) col2, - 6 AS col1 FROM tab0 AS cor0 -6 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, col2 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - ( + - col0 ) ) +---- query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 < NULL @@ -34714,8 +35041,15 @@ SELECT + COUNT ( ALL col2 ) AS col0 FROM tab0 # Datafusion - Expected - 40 # Datafusion - Expected - -2440 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* Int64\(\-61\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 40 * - 61 AS col1, col2 AS col1 FROM tab2 +---- +-2440 +-2440 +-2440 +23 +40 +58 query I rowsort label-5749 SELECT DISTINCT + MAX ( DISTINCT col1 ) AS col0 FROM tab1 AS cor0 @@ -35481,8 +35815,15 @@ SELECT ALL SUM ( DISTINCT 59 ) * - - MIN ( - col0 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 62 # Datafusion - Expected - 96 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col1" at position 0 and "\(\- \(\- tab0\.col0\)\) \+ tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 96 AS col1, - ( - col0 ) + + col2 AS col1 FROM tab0 +---- +196 +62 +96 +96 +96 +97 query I rowsort SELECT DISTINCT - 58 col1 FROM tab0 @@ -35894,8 +36235,11 @@ SELECT 15 + col2 + + 18 FROM tab0 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 "\(\- max\(\(\- cor0\.col0\)\)\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( ALL - col0 ) col2, 11 AS col2 FROM tab0 cor0 WHERE 88 BETWEEN 20 AND - col0 + + col2 +---- +11 +NULL query I rowsort SELECT + 22 + + + 43 FROM tab1 AS cor0 @@ -37602,8 +37946,11 @@ SELECT col2 * + + 13 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(23\) / Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 23 / + 3 AS col2 FROM tab1 +---- +3 +7 query I rowsort label-6231 SELECT ALL - COUNT ( DISTINCT + col1 ) FROM tab0 @@ -38084,8 +38431,11 @@ SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( - col1 ) < NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, + 54 col1 FROM tab0 cor0 +---- +3 +54 query I rowsort SELECT DISTINCT - 6 * col2 + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + col1 @@ -39450,8 +39800,15 @@ SELECT ALL col0 / col0 * 50 * - 76 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - -94 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 94 col1, 64 AS col1 FROM tab2 AS cor0 +---- +-94 +-94 +-94 +64 +64 +64 query I rowsort label-6546 SELECT ALL - COUNT ( * ) + - SUM ( ALL + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0 @@ -40228,8 +40585,15 @@ SELECT ALL - col0 + - col1 * col0 AS col0 FROM tab2 AS cor0 WHERE + col1 + col2 # Datafusion - Expected - 240 # Datafusion - Expected - NULL # Datafusion - Expected - 348 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "Int64\(6\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - CAST ( NULL AS INTEGER ) AS col1, 6 * col2 AS col1 FROM tab2 AS cor0 +---- +138 +240 +348 +NULL +NULL +NULL query II rowsort SELECT DISTINCT - col2 AS col0, - col0 FROM tab1 AS cor0 @@ -40470,8 +40834,15 @@ SELECT DISTINCT + 71 * + - 73 * - + ( col2 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-6709 SELECT ALL - 2 + - + 83 * - - COUNT ( ALL + CAST ( NULL AS FLOAT8 ) ) + - COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 @@ -41102,8 +41473,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col1, 73 * - + 59 * 31 AS col1 FROM tab2 AS cor0 +---- +-133517 +-3 query III rowsort SELECT DISTINCT * FROM tab2 cor0 WHERE NULL IN ( - 50 + - col1, col1 * + + col2 * + 88 ) @@ -41589,8 +41963,15 @@ SELECT DISTINCT - COUNT ( * ) * - - 2 * + 39 AS col2 FROM tab1 # Datafusion - Expected - 23567411 # Datafusion - Expected - 92 # Datafusion - Expected - 8375352 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ tab2\.col0 AS col2" at position 0 and "Int64\(3\) \+ tab2\.col1 \* \(\- tab2\.col0\) \* Int64\(70\) \* \(\- tab2\.col1\) \- \(\- tab2\.col0\) \+ Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + + col0 AS col2, + 3 + + col1 * + - col0 * 70 * + - col1 - + - col0 + + 83 AS col2 FROM tab2 +---- +128 +150 +23567411 +26562070 +8375352 +92 query I rowsort label-6894 SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) col2 FROM tab0 @@ -41752,8 +42133,11 @@ SELECT ALL + + 90 col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -103 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT \(\- cor0\.col1\)\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( DISTINCT - col1 ) col0, 56 AS col0 FROM tab0 AS cor0 +---- +-103 +56 query I rowsort SELECT + - ( + 32 ) FROM tab1 AS cor0 @@ -42061,8 +42445,11 @@ SELECT + ( - + COUNT ( * ) ) AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +-3 +3 query I rowsort SELECT DISTINCT - + col1 * - 4 col2 FROM tab0 AS cor0 @@ -42153,8 +42540,15 @@ SELECT ALL + + ( + col1 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 128 # Datafusion - Expected - -5692 # Datafusion - Expected - 150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- cor0\.col0\)\)\) \* Int64\(75\) \+ \(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col0 \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - ( + - col0 ) ) * 75 + - col1 AS col1, col0 + col0 AS col1 FROM tab2 AS cor0 +---- +-3501 +-4877 +-5692 +128 +150 +92 query I rowsort label-6986 SELECT ALL SUM ( DISTINCT - - col2 ) AS col0 FROM tab2 AS cor0 @@ -42985,8 +43379,15 @@ SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, col1 FROM tab2 cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-7123 SELECT - + col2 * + + col2 + + CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0 @@ -43002,8 +43403,15 @@ NULL # Datafusion - Expected - 64 # Datafusion - Expected - 58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, + col0 AS col1 FROM tab2 AS cor0 +---- +23 +40 +46 +58 +64 +75 query I rowsort label-7125 SELECT ALL COUNT ( + CAST ( NULL AS INTEGER ) ) - + COUNT ( * ) AS col2 FROM tab2 AS cor0 @@ -43078,8 +43486,11 @@ SELECT - 77 col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +-3 +9 query II rowsort SELECT - + col0 AS col2, col1 FROM tab2 AS cor0 @@ -43293,8 +43704,15 @@ SELECT - ( MIN ( + 30 ) ) col1 FROM tab2 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - -75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col0 AS Int32\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( col0 AS INTEGER ) AS col1, col0 AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +46 +64 +75 query II rowsort SELECT DISTINCT + 25 + col2, + col1 FROM tab0 AS cor0 @@ -45053,8 +45471,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= 68 # Datafusion - Expected - 13 # Datafusion - Expected - 96 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ cor0\.col2 AS col2" at position 0 and "Int64\(36\) \- \(\- cor0\.col2\) \+ \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 0 + col2 AS col2, 36 - - + col2 + - col0 AS col2 FROM tab1 AS cor0 +---- +10 +13 +59 +68 +81 +96 query I rowsort SELECT 89 * + col0 + + 46 * - 98 FROM tab2 @@ -45464,8 +45889,15 @@ SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col1 + col1 IS N # Datafusion - Expected - -5 # Datafusion - Expected - -3276 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- Int64\(36\)\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * - ( 36 ) AS col2, - col1 AS col2 FROM tab1 AS cor0 +---- +-14 +-1836 +-3060 +-3276 +-47 +-5 query I rowsort label-7540 SELECT + MAX ( 99 ) AS col1 FROM tab2 AS cor0 @@ -48477,8 +48909,12 @@ 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\(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\. +query III valuesort SELECT DISTINCT - COUNT ( * ) AS col2, + ( + 74 ) + + 26 AS col2, 12 FROM tab0 +---- +-3 +100 +12 query III rowsort label-8039 SELECT ALL * FROM tab2 WHERE + 97 * CAST ( NULL AS INTEGER ) * - col1 IS NULL @@ -48903,8 +49339,11 @@ SELECT - - 49 * - - 23 * + col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - -258 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col0" at position 0 and "Int64\(6\) \* Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 71 AS col0, 6 * + - 43 col0 FROM tab1 +---- +-258 +-71 query I rowsort label-8109 SELECT DISTINCT MIN ( - 8 ) AS col2 FROM tab0 @@ -49072,8 +49511,10 @@ SELECT DISTINCT + + col1 FROM tab0 WHERE 58 / + 38 + 8 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 1ae2f8967b5a1060ae78b1abe43ad3bf -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col1 \+ Int64\(74\) \+ Int64\(64\) \* tab2\.col1 \+ tab2\.col0 \- tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col0 AS col1, col1 + 74 + 64 * + + col1 + col0 - + + col1 col1, + + col2 AS col1 FROM tab2 +---- +9 values hashing to 181b155738075b3dac1fc6c88697ebba query I rowsort SELECT DISTINCT + + col0 AS col1 FROM tab0 WHERE NULL IS NOT NULL @@ -49082,8 +49523,11 @@ SELECT DISTINCT + + col0 AS col1 FROM tab0 WHERE NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT \(\- tab2\.col1\)\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( DISTINCT - + col1 ) AS col1, 87 AS col1 FROM tab2 +---- +-51 +87 query II rowsort SELECT - col2, - col1 col1 FROM tab1 @@ -49102,8 +49546,15 @@ SELECT - col2, - col1 col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col0 \* \(\- CAST\(CAST\(NULL AS Float64\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, col0 * - CAST ( + CAST ( NULL AS FLOAT8 ) AS INTEGER ) AS col2 FROM tab0 +---- +1 +21 +81 +NULL +NULL +NULL query I rowsort label-8145 SELECT DISTINCT + CAST ( + 8 AS INTEGER ) FROM tab0 AS cor0 @@ -50012,8 +50463,15 @@ SELECT DISTINCT - 72 + + - ( + ( - 91 ) ) AS col0 FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - 76 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) / \(\- \(\- tab2\.col0\)\) \- \(\- tab2\.col0\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 92 / - - col0 - - col0 AS col1, + col2 AS col1 FROM tab2 +---- +23 +40 +48 +58 +65 +76 query II rowsort SELECT ALL + col1 * 56 + - - col1 AS col1, - 57 FROM tab2 @@ -50612,8 +51070,10 @@ SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE ( NULL ) IN ( + 70 + - col1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 5b41ace4572e9be4775153719d3ea5db -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* CAST\(NULL AS Int32\) AS col0" at position 0 and "CAST\(NULL AS Float64\) \- \(\- cor0\.col0\) / cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IRI valuesort SELECT ALL col1 * CAST ( NULL AS INTEGER ) AS col0, + CAST ( NULL AS FLOAT8 ) - - col0 / + col0 AS col0, + - col1 FROM tab2 AS cor0 +---- +9 values hashing to d46d2974a78245fe3b1c8fb190b0e869 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE + 11 IS NULL @@ -50857,8 +51317,15 @@ SELECT - COUNT ( * ) - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 62 IS NOT NUL # Datafusion - Expected - 125 # Datafusion - Expected - -77 # Datafusion - Expected - 117 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 \- \(\- CAST\(cor0\.col2 AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 col2, + col1 - - CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +117 +125 +74 query I rowsort SELECT ALL + col1 * - col0 + + col0 * - col2 * - + col1 FROM tab0 @@ -51435,8 +51902,11 @@ SELECT 75 * + + 5 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "min\(tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, MIN ( col0 ) AS col2 FROM tab1 +---- +3 +51 query III rowsort SELECT DISTINCT * FROM tab2 WHERE - col0 / + col2 BETWEEN NULL AND - col2 * - 18 @@ -51799,8 +52269,15 @@ SELECT ALL + + 87 + - 38 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -1102 # Datafusion - Expected - -77 # Datafusion - Expected - -760 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(19\) \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col2, + 19 * - + col2 AS col2 FROM tab2 cor0 +---- +-1102 +-437 +-51 +-67 +-760 +-77 query I rowsort SELECT ALL + - 74 col0 FROM tab0 AS cor0 @@ -51945,8 +52422,15 @@ SELECT DISTINCT ( - + col0 ) col2 FROM tab1 # Datafusion - Expected - 7225 # Datafusion - Expected - 91 # Datafusion - Expected - 8281 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col0 \* tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 col2, col0 * + col0 AS col2 FROM tab1 +---- +2601 +51 +7225 +8281 +85 +91 query III rowsort SELECT ALL * FROM tab0 WHERE 26 * + 34 - + 19 + col0 IS NULL @@ -51959,13 +52443,22 @@ SELECT ALL * FROM tab0 WHERE 26 * + 34 - + 19 + col0 IS NULL # Datafusion - Expected - 40 # Datafusion - Expected - -85 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 85 AS col0, col2 AS col0 FROM tab2 AS cor0 +---- +-85 +-85 +-85 +23 +40 +58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 99042f548f9273e6b8057368e4e6383a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 28 AS col0, + col0 * - col2 + + col0, + 41 AS col0 FROM tab1 AS cor0 +---- +9 values hashing to 3962dffffb6a1c48dd8eb46627eb9cb9 query I rowsort label-8624 SELECT + + COUNT ( ALL col0 ) FROM tab2 AS cor0 @@ -52414,8 +52907,15 @@ SELECT + - 18 * + - COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - -34 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 34 AS col1, col0 AS col1 FROM tab1 AS cor0 +---- +-34 +-34 +-34 +51 +85 +91 query I rowsort label-8703 SELECT COUNT ( * ) * - COUNT ( * ) - + 67 FROM tab2 AS cor0 WHERE NOT ( - col2 ) <= NULL @@ -53302,8 +53802,15 @@ SELECT ALL - col2 * + ( - col0 ) AS col0, 48 col2 FROM tab1 cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col2, + col0 AS col2 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT DISTINCT - 9 * + + col1 AS col2 FROM tab2 AS cor0 @@ -53333,8 +53840,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 40 * - + COUNT ( * ) * - - SUM ( DISTINCT - col1 ) AS col1, + 28 + - - COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +-23400 +31 query I rowsort SELECT - - 90 + col0 * - col1 FROM tab2 AS cor0 @@ -53353,8 +53863,11 @@ SELECT ALL col2 + + col0 + col1 * + col0 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(49\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, 49 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 +---- +3 +NULL query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> col1 @@ -54012,8 +54525,15 @@ SELECT DISTINCT + col2 * - - col0 - col2 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 12024320 # Datafusion - Expected - 58 # Datafusion - Expected - 17778450 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 \* Int64\(\-61\) \* \(\- cor0\.col1\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, col2 * - 61 * - + col1 * col0 AS col0 FROM tab2 AS cor0 WHERE - col2 * + 21 IS NOT NULL +---- +12024320 +17778450 +23 +3291438 +40 +58 query I rowsort label-8957 SELECT - col0 / - - 51 AS col2 FROM tab0 cor0 @@ -54769,8 +55289,15 @@ SELECT - 92 / - - col2 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col2 \* CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + col0 col2, + col2 * CAST ( NULL AS FLOAT8 ) AS col2 FROM tab2 AS cor0 +---- +46 +64 +75 +NULL +NULL +NULL query I rowsort label-9081 SELECT - 32 + - COUNT ( * ) AS col0 FROM tab1 @@ -55774,8 +56301,13 @@ SELECT ALL + 77 * - col0 * - - col1 * - col1 * - - col0 AS col1 FROM tab2 # Datafusion - Expected - 0 # Datafusion - Expected - -57 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(57\)\) AS col2" at position 0 and "Int64\(73\) / \(\- \(\- cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 57 AS col2, + 73 / - - col0 AS col2 FROM tab0 cor0 +---- +-57 +-57 +0 +4 query I rowsort label-9254 SELECT - - col0 - + col2 / + 41 col2 FROM tab0 cor0 @@ -56210,8 +56742,15 @@ SELECT ALL + + col0 AS col1 FROM tab0 cor0 WHERE NOT col0 < NULL # Datafusion - Expected - 68 # Datafusion - Expected - 91 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ Int64\(\-5\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 + - 5 AS col0, col2 AS col0 FROM tab1 AS cor0 +---- +54 +59 +63 +68 +91 +96 query II rowsort SELECT DISTINCT - + 15 * - + col1 * + col2 * col0 AS col0, col2 FROM tab0 cor0 @@ -57142,8 +57681,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT CAST ( NULL AS INTEGER ) * + col0 IS # Datafusion - Expected - 5 # Datafusion - Expected - 21057748 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(\-83\) \* cor0\.col0 \* Int64\(\-41\) \+ Int64\(76\) \- Int64\(92\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * - 83 * col0 * - 41 + 76 - 92 AS col2, + col1 AS col2 FROM tab1 AS cor0 +---- +14 +16661072 +17066029 +21057748 +47 +5 query I rowsort label-9475 SELECT + MAX ( ALL + col0 ) FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND NULL @@ -57226,8 +57772,11 @@ SELECT ALL + 26 AS col1 FROM tab1 WHERE NOT NULL BETWEEN + 7 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- tab2\.col1\)\) AS col2" at position 0 and "count\(DISTINCT \(\- tab2\.col0\)\) \* Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( ALL - col1 ) AS col2, COUNT ( DISTINCT - + col0 ) * + 20 AS col2 FROM tab2 +---- +-77 +60 query I rowsort SELECT - 47 + - ( - col1 ) AS col2 FROM tab0 @@ -58501,8 +59050,11 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col1 ) <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) / \(\- \(\- Int64\(13\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 / - ( - + 13 ) AS col2, COUNT ( * ) AS col2 FROM tab0 +---- +3 +4 query I rowsort SELECT ALL + - 88 AS col0 FROM tab1 WHERE + + 28 IS NOT NULL @@ -58599,8 +59151,15 @@ SELECT col2 * - col1 * 39 * + col2 FROM tab0 # Datafusion - Expected - 92 # Datafusion - Expected - 1 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) / Int64\(41\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 / 41 col1, 92 AS col1 FROM tab0 +---- +1 +1 +1 +92 +92 +92 query I rowsort label-9718 SELECT MAX ( DISTINCT + - col0 ) FROM tab0 @@ -59335,8 +59894,15 @@ SELECT ALL + + col2 - + col0 FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 96 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- cor0\.col1 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 - col1 AS col2, + col1 AS col2 FROM tab0 cor0 +---- +-66 +1 +21 +66 +81 +96 query I rowsort label-9839 SELECT + MIN ( ALL - + col2 ) FROM tab0 cor0 @@ -59652,8 +60218,15 @@ SELECT * FROM tab2 cor0 WHERE col1 + - col2 + - 65 <= NULL # Datafusion - Expected - -85 # Datafusion - Expected - -91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 col2, - col0 AS col2 FROM tab1 AS cor0 +---- +-51 +-51 +-85 +-85 +-91 +-91 query I rowsort label-9888 SELECT - ( + - ( + - COUNT ( * ) ) ) FROM tab2 AS cor0 @@ -59749,8 +60322,10 @@ SELECT + COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to faa460adad4d9b997facd24ee4fccdd9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col2" at position 0 and "\(\- tab2\.col1\) \* Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 59 col2, - col1 * - 0 AS col2, - + col1 AS col2 FROM tab2 +---- +9 values hashing to f21330c474934de43ef03a73a53cbc78 query II rowsort SELECT - col2 AS col1, + col2 FROM tab0 AS cor0 @@ -59813,8 +60388,15 @@ SELECT + COUNT ( * ) * - COUNT ( - col2 ) FROM tab1 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col0, col0 AS col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT DISTINCT + ( + ( - + col0 ) ) FROM tab1 diff --git a/data/sqlite/random/aggregates/slt_good_67.slt b/data/sqlite/random/aggregates/slt_good_67.slt index 4ab1e5a..2c910c0 100644 --- a/data/sqlite/random/aggregates/slt_good_67.slt +++ b/data/sqlite/random/aggregates/slt_good_67.slt @@ -1410,8 +1410,15 @@ SELECT col2 * col0, - col0 / ( col1 ) AS col1 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 31 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ tab0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 + + col1 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 +---- +100 +128 +31 +NULL +NULL +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -1428,8 +1435,15 @@ NULL # Datafusion - Expected - 76 # Datafusion - Expected - 225 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) \* \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 15 * - col0 AS col2, 76 AS col2 FROM tab0 AS cor0 +---- +1305 +1455 +225 +76 +76 +76 query II rowsort SELECT + 59 + + col0 * - + col2 AS col0, + col0 AS col1 FROM tab2 AS cor0 @@ -1950,8 +1964,11 @@ SELECT DISTINCT - 28 FROM tab1 AS cor0 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - -132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "\(\- sum\(Int64\(44\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 AS col0, - SUM ( + 44 ) AS col0 FROM tab1 AS cor0 +---- +-132 +19 query I rowsort label-318 SELECT - 51 / + 65 + + col1 AS col1 FROM tab2 @@ -1999,8 +2016,15 @@ SELECT + - MIN ( - - col2 ) / - 28 + + 89 AS col0 FROM tab2 cor0 # Datafusion - Expected - -536 # Datafusion - Expected - NULL # Datafusion - Expected - -795 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* cor0\.col2 AS col1" at position 0 and "cor0\.col0 \+ Int64\(\-14\) \* cor0\.col2 \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) * col2 AS col1, col0 + - 14 * col2 + - col2 AS col1 FROM tab2 AS cor0 +---- +-299 +-536 +-795 +NULL +NULL +NULL query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE col2 = col2 + - + 62 @@ -2613,8 +2637,15 @@ SELECT DISTINCT + 83 / - - col2 FROM tab2 # Datafusion - Expected - -1836 # Datafusion - Expected - 5 # Datafusion - Expected - -1593 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "Int64\(27\) \* \(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, + 27 * + - col2 AS col0 FROM tab1 +---- +-1593 +-1836 +-2592 +14 +47 +5 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -2832,8 +2863,9 @@ SELECT 43 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 9 values hashing to 199105619049271147956de52e7f5ed4 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \- Int64\(\-60\) \* Int64\(47\) \* Int64\(6\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + 12 ) - - 60 * 47 * ( 6 ) AS col1, col2 AS col1 FROM tab2 WHERE NOT + col2 * 50 IS NOT NULL +---- query I rowsort label-455 SELECT + COUNT ( * ) + - + 56 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 @@ -2862,8 +2894,15 @@ NULL # Datafusion - Expected - -85 # Datafusion - Expected - 98 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 98 AS col1, - col0 col1 FROM tab1 AS cor0 WHERE 60 IS NOT NULL +---- +-51 +-85 +-91 +98 +98 +98 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( + - col0 ) IS NULL @@ -3528,8 +3567,15 @@ SELECT - - col2, + 93 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -276 # Datafusion - Expected - 96 # Datafusion - Expected - -130 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "\(\- tab1\.col0\) \+ \(\- tab1\.col1\) \+ \(\- tab1\.col1\) \+ \(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, - col0 + - col1 + - col1 + - col0 AS col0 FROM tab1 +---- +-130 +-180 +-276 +59 +68 +96 query III rowsort SELECT ALL * FROM tab0 WHERE ( NOT ( NOT NULL NOT BETWEEN + + col2 * + 68 + col0 AND col1 * - col2 ) ) @@ -3872,8 +3918,15 @@ SELECT DISTINCT col1, 34 FROM tab2 cor0 # Datafusion - Expected - 0 # Datafusion - Expected - -19 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(19\)\) AS col0" at position 0 and "cor0\.col1 / cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + 19 ) AS col0, + col1 / col0 AS col0 FROM tab0 cor0 +---- +-19 +-19 +-19 +0 +0 +5 query I rowsort label-628 SELECT ALL SUM ( 47 ) AS col2 FROM tab1 AS cor0 @@ -4715,8 +4768,15 @@ SELECT * FROM tab2 AS cor0 WHERE col2 / + + ( - - 35 ) * + col0 IS NULL # Datafusion - Expected - -6032 # Datafusion - Expected - -75 # Datafusion - Expected - -4582 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(\-26\) \+ \(\- cor0\.col1\) \+ \(\- cor0\.col1\) \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 AS col2, - 26 + - col1 + - col1 * + col1 AS col2 FROM tab2 AS cor0 +---- +-2678 +-4582 +-46 +-6032 +-64 +-75 query I rowsort label-763 SELECT ALL COUNT ( ALL - 98 ) + COUNT ( * ) * - 35 * - + 32 FROM tab2 AS cor0 @@ -5005,8 +5065,15 @@ SELECT DISTINCT - ( - + CAST ( + + 77 AS INTEGER ) ) + col1 + - col1, col1 AS co # Datafusion - Expected - 87 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col2, + col0 AS col2 FROM tab0 +---- +15 +87 +97 +NULL +NULL +NULL query I rowsort label-808 SELECT DISTINCT COUNT ( - 64 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 @@ -5489,8 +5556,9 @@ SELECT ALL SUM ( + 56 ) AS col0 FROM tab1, tab0 AS cor0 504 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* CAST\(Int64\(38\) AS Int32\) AS col0" at position 0 and "Int64\(31\) \* Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * CAST ( + + 38 AS INTEGER ) AS col0, 31 * + 97 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL +---- query I rowsort label-890 SELECT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 @@ -5554,8 +5622,10 @@ SELECT - 84 * - col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f3c7279959419d7da689d3aa3d10b1ed -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(46\) AS Int32\) AS col1" at position 1 and "\(\- tab0\.col1\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - col1, + CAST ( 46 AS INTEGER ) AS col1, - col1 AS col1 FROM tab0 +---- +9 values hashing to 48a7270b51a2647c288349c7e09c3194 query I rowsort SELECT - 30 + - 41 AS col2 FROM tab0 @@ -5973,8 +6043,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \+ max\(cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( + 0 ) AS col0, - COUNT ( * ) + MAX ( col1 ) AS col0 FROM tab1 cor0 +---- +0 +44 query I rowsort SELECT ALL - - 83 * col1 + - col0 FROM tab1 cor0 @@ -6537,8 +6610,15 @@ SELECT ALL SUM ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1, col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT ( - col2 ) * 33 AS col0 FROM tab1 @@ -6589,8 +6669,15 @@ SELECT DISTINCT 62 + - col1 AS col0 FROM tab0 WHERE NOT ( + col0 + + col2 ) <= N # Datafusion - Expected - NULL # Datafusion - Expected - -6992 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- Int64\(87\)\) \- \(\- Int64\(55\)\) AS col2" at position 0 and "cor0\.col1 \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 * - + 87 - - + 55 AS col2, + col1 + - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 +---- +-1772 +-32 +-6992 +NULL +NULL +NULL query I rowsort label-1077 SELECT DISTINCT + col0 / - 98 + + col2 AS col0 FROM tab2 cor0 @@ -6699,8 +6786,15 @@ SELECT DISTINCT + MAX ( - + col2 ), COUNT ( * ) + - 78 * - COUNT ( * ) col0 FROM # Datafusion - Expected - -77 # Datafusion - Expected - 4350 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col2 AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 * + col2 AS col2, - col1 AS col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +1058 +2560 +4350 query I rowsort label-1095 SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 ) @@ -6749,8 +6843,15 @@ SELECT - col1 / - + 82 col2 FROM tab1 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2, col2 AS col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-1103 SELECT DISTINCT MAX ( ALL - - 79 ) AS col0 FROM tab2 @@ -7078,8 +7179,15 @@ SELECT col1 FROM tab1 WHERE 71 * + - 1 + col2 IS NOT NULL # Datafusion - Expected - -4950 # Datafusion - Expected - 40 # Datafusion - Expected - -4224 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \- Int64\(37\) AS col0" at position 0 and "Int64\(66\) \* \(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 - 37 col0, 66 * + - col0 AS col0 FROM tab2 +---- +-3036 +-4224 +-4950 +14 +30 +40 query I rowsort label-1157 SELECT ALL MIN ( + 91 ) FROM tab1 @@ -7397,8 +7505,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT 44 * - - col0 BETWEEN + col0 / - col1 + - c # Datafusion - Expected - 56 # Datafusion - Expected - 99 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col1 AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * col1 AS col0, 56 AS col0 FROM tab0 cor0 +---- +210 +3807 +56 +56 +56 +99 query II rowsort SELECT col2 + 88 * 43 - col1 - - 74 AS col2, + col0 FROM tab2 @@ -7643,8 +7758,15 @@ NULL # Datafusion - Expected - -71148 # Datafusion - Expected - 4350 # Datafusion - Expected - -61908 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \* \(\- tab2\.col0\) AS col2" at position 0 and "tab2\.col1 \* Int64\(66\) \* Int64\(\-14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 * - col0 AS col2, col1 * 66 * - 14 col2 FROM tab2 +---- +-47124 +-61908 +-71148 +1058 +2560 +4350 query III rowsort SELECT * FROM tab1 WHERE col0 > + + col2 + + ( + 62 ) * - col1 @@ -7783,8 +7905,15 @@ SELECT DISTINCT ( + col1 ) * + + 13 FROM tab0 # Datafusion - Expected - 7 # Datafusion - Expected - 68 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 col2, 7 AS col2 FROM tab1 +---- +68 +68 +68 +7 +7 +7 query II rowsort SELECT 43, - 25 AS col1 FROM tab0 @@ -8798,8 +8927,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) AS col2, 20 * 58 AS col2 FROM tab0 AS cor0 +---- +-3 +1160 query II rowsort SELECT + col2 AS col1, 89 AS col0 FROM tab1 AS cor0 @@ -8948,8 +9080,15 @@ SELECT ALL CAST ( col0 AS INTEGER ) / + - col0 - - + 61 AS col2 FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - 97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col2, col1 AS col2 FROM tab0 +---- +1 +15 +21 +81 +87 +97 query I rowsort label-1461 SELECT ALL - MIN ( + col0 ) / - - COUNT ( * ) - + COUNT ( * ) col2 FROM tab1 @@ -9575,8 +9714,11 @@ SELECT DISTINCT - ( col1 ) * + - 6 * + - col2 * + ( 72 ) + + 43 FROM tab1 AS cor # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 95 AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +3 +95 query III rowsort label-1570 SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST ( - + 0 AS INTEGER ) ) BETWEEN CAST ( - 94 AS INTEGER ) AND ( 90 + + col1 ) @@ -10276,8 +10418,15 @@ SELECT ALL ( - 60 ) FROM tab2 AS cor0 # Datafusion - Expected - 80 # Datafusion - Expected - 4350 # Datafusion - Expected - 116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col2 AS col2" at position 0 and "cor0\.col2 \- \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * + col2 AS col2, col2 - - col2 AS col2 FROM tab2 AS cor0 +---- +1058 +116 +2560 +4350 +46 +80 query I rowsort label-1686 SELECT - + MIN ( ALL 56 ) FROM tab2 AS cor0 @@ -10635,8 +10784,15 @@ SELECT ALL - col1 FROM tab0 cor0 WHERE NOT col1 * - col0 * 68 * - 12 + 85 / + - # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "CAST\(NULL AS Int32\) \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, CAST ( NULL AS INTEGER ) * + - col0 AS col1 FROM tab0 cor0 +---- +15 +87 +97 +NULL +NULL +NULL query I rowsort SELECT ALL 74 + - + 72 + + col2 - col0 FROM tab2 AS cor0 @@ -10869,8 +11025,15 @@ SELECT DISTINCT - col1 * - - 97 FROM tab1 # Datafusion - Expected - -180 # Datafusion - Expected - 61 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col2" at position 0 and "Int64\(\-81\) \+ \(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 61 AS col2, - 81 + + - col2 col2 FROM tab0 +---- +-128 +-180 +-91 +61 +61 +61 query II rowsort SELECT 46 col0, + ( col1 ) col1 FROM tab1 @@ -11138,8 +11301,15 @@ SELECT 96 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 87 # Datafusion - Expected - 81 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, ( col0 ) AS col2 FROM tab0 +---- +1 +15 +21 +81 +87 +97 query II rowsort SELECT ALL + 5 AS col1, col2 col2 FROM tab2 cor0 @@ -11266,8 +11436,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 79 AS col1, - COUNT ( * ) AS col1 FROM tab0 +---- +-3 +79 query II rowsort SELECT + 67 * - 89, - 15 AS col2 FROM tab2 WHERE NOT ( + 42 * 65 IS NULL ) @@ -11642,8 +11815,15 @@ SELECT DISTINCT - + col1 FROM tab0 WHERE - + col0 IS NOT NULL # Datafusion - Expected - -23 # Datafusion - Expected - 99 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(\-38\) \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, - 38 + + col0 AS col0 FROM tab0 AS cor0 +---- +-23 +10 +47 +49 +59 +99 query II rowsort SELECT + col0, - col2 + + + col1 FROM tab1 AS cor0 @@ -11779,8 +11959,15 @@ SELECT * FROM tab2 AS cor0 WHERE 73 * col0 IS NOT NULL # Datafusion - Expected - -2040 # Datafusion - Expected - 9600 # Datafusion - Expected - -1770 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-60\)\) \* cor0\.col1 \* Int64\(32\) AS col1" at position 0 and "Int64\(\-30\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 60 * + col1 * + 32 AS col1, - 30 * + col2 AS col1 FROM tab1 AS cor0 +---- +-1770 +-2040 +-2880 +26880 +90240 +9600 query I rowsort label-1928 SELECT ALL MIN ( - col1 ) FROM tab1 AS cor0 @@ -12824,8 +13011,15 @@ SELECT DISTINCT + 13 * + COUNT ( * ) AS col0 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, + col2 AS col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-2107 SELECT DISTINCT + CAST ( + 25 AS INTEGER ) AS col2 FROM tab2 @@ -12909,8 +13103,15 @@ SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL <= ( col1 ) # Datafusion - Expected - 40 # Datafusion - Expected - -75 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 AS col0, 40 AS col0 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +40 +40 +40 query II rowsort SELECT DISTINCT - - col1 AS col2, - 30 FROM tab0 AS cor0 @@ -13109,8 +13310,15 @@ SELECT + col1 * 13 AS col1 FROM tab1 # Datafusion - Expected - -47 # Datafusion - Expected - -99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col2" at position 0 and "\(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, - col2 AS col2 FROM tab0 +---- +-10 +-10 +-47 +-47 +-99 +-99 query I rowsort SELECT ALL 1 * + col2 * - col2 FROM tab2 @@ -13269,8 +13477,11 @@ SELECT ALL col0 * - + col1, col2 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - ( COUNT ( * ) ) AS col1, COUNT ( * ) col1 FROM tab0 AS cor0 +---- +-3 +3 query I rowsort label-2176 SELECT ALL + + COUNT ( * ) * - 32 AS col2 FROM tab2 cor0 @@ -13460,8 +13671,11 @@ SELECT DISTINCT - col0 * col0 - + CAST ( - 40 AS INTEGER ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- tab1\.col1\)\)\) AS col0" at position 0 and "count\(\(\- Int64\(78\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MIN ( ALL - + col1 ) AS col0, COUNT ( ALL - + 78 ) * COUNT ( * ) - COUNT ( * ) AS col0 FROM tab1 +---- +47 +6 query I rowsort label-2206 SELECT DISTINCT + ( 53 ) * CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 @@ -13702,8 +13916,10 @@ SELECT ALL + - 82 * col2 / col2 col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 4a7b7862f832682555969600c3d67d77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 1 and "\(\- Int64\(\-12\)\) \* Int64\(\-66\) \* cor0\.col1 \+ \(\- cor0\.col2\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - + 97 AS col1, 90 AS col0, - - 12 * - 66 * + col1 + - col2 AS col0 FROM tab0 AS cor0 +---- +9 values hashing to 8686b46c4dc85f39c33358b4f71a4c06 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 @@ -13712,8 +13928,15 @@ SELECT ALL - + 97 AS col1, 90 AS col0, - - 12 * - 66 * + col1 + - col2 AS col0 F # Datafusion - Expected - -150 # Datafusion - Expected - -83 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col2" at position 0 and "\(\- cor0\.col0\) \- \(\- \(\- cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 83 AS col2, - col0 - - - col0 AS col2 FROM tab2 AS cor0 +---- +-128 +-150 +-83 +-83 +-83 +-92 query II rowsort SELECT + col0, 81 FROM tab2 AS cor0 @@ -14122,8 +14345,15 @@ SELECT CAST ( + + col0 AS INTEGER ) FROM tab0 # Datafusion - Expected - -1659 # Datafusion - Expected - 96 # Datafusion - Expected - -537 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "Int64\(34\) \* \(\- tab1\.col1\) \+ Int64\(\-61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + col2 ) AS col0, + 34 * - col1 + + - 61 AS col0 FROM tab1 +---- +-1659 +-231 +-537 +59 +68 +96 query I rowsort label-2311 SELECT ALL MIN ( + col2 ) col0 FROM tab2 @@ -14133,8 +14363,11 @@ SELECT ALL MIN ( + col2 ) col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( 4 ) AS col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +3 +4 query I rowsort SELECT + - 76 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL @@ -14392,8 +14625,11 @@ SELECT 1 * + 51 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \+ \(\- CAST\(Int64\(45\) AS Int32\)\) AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 18 + - CAST ( + 45 AS INTEGER ) AS col1, 28 AS col1 FROM tab1 AS cor0 +---- +-27 +28 query I rowsort label-2356 SELECT DISTINCT - SUM ( DISTINCT - col0 ) FROM tab0 cor0 @@ -14799,8 +15035,11 @@ SELECT DISTINCT - 88 AS col2, - 10 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(36\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) + + 36 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 +---- +39 +NULL query I rowsort SELECT col0 * 36 AS col2 FROM tab0 @@ -16003,8 +16242,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 61 / + + COUNT ( * ) AS col2, COUNT ( * ) col2 FROM tab2 AS cor0 +---- +-20 +3 query I rowsort label-2627 SELECT ALL + + COUNT ( ALL + - col1 ) FROM tab1 AS cor0 @@ -16268,8 +16510,15 @@ SELECT + + 56 col2, 32 * col2 * - + 87 + + ( 71 ) / + 21 FROM tab1 AS cor0 # Datafusion - Expected - 46 # Datafusion - Expected - -98 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 98 col1, 46 AS col1 FROM tab0 AS cor0 +---- +-98 +-98 +-98 +46 +46 +46 query I rowsort label-2668 SELECT DISTINCT + MIN ( ALL - col1 ) AS col0 FROM tab1 AS cor0 @@ -16318,8 +16567,15 @@ SELECT DISTINCT + SUM ( ALL - + 94 ) col2 FROM tab1 cor0 # Datafusion - Expected - 68 # Datafusion - Expected - -81 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-66\) AS Int32\) \+ \(\- cor0\.col0\) \+ Int64\(36\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( + ( - 66 ) AS INTEGER ) + - col0 + 36 col0, col2 AS col0 FROM tab1 AS cor0 +---- +-115 +-121 +-81 +59 +68 +96 query I rowsort label-2675 SELECT DISTINCT + COUNT ( * ) + + 11 * 65 FROM tab2 AS cor0 @@ -17439,8 +17695,10 @@ SELECT 47 * + + 47 * - - 35 * - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 8a54ca501da48bdc66239671d6eb3e00 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 1 and "\(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 9 * - + col2, 41 AS col1, - col1 * - col1 AS col1 FROM tab2 AS cor0 +---- +9 values hashing to 93692babe29db6d7b3550dc356f43ca3 query I rowsort SELECT DISTINCT + 22 * 70 FROM tab0 AS cor0 @@ -17735,8 +17993,15 @@ SELECT DISTINCT + - ( + + 96 ) AS col0 FROM tab2, tab0 AS cor0 WHERE - 31 >= + 6 # Datafusion - Expected - 97 # Datafusion - Expected - -441 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* CAST\(Int64\(\-21\) AS Int32\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * + CAST ( - 21 AS INTEGER ) AS col2, col0 AS col2 FROM tab0 +---- +-1701 +-21 +-441 +15 +87 +97 query I rowsort SELECT + col0 * 99 col0 FROM tab0 @@ -18231,8 +18496,15 @@ SELECT + col2 * CAST ( - 32 * - 2 AS INTEGER ) FROM tab0 cor0 WHERE NOT col2 + - # Datafusion - Expected - 47 # Datafusion - Expected - -1824 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \* cor0\.col2 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 19 * + col2 AS col0, + col1 col0 FROM tab1 AS cor0 +---- +-1121 +-1292 +-1824 +14 +47 +5 query I rowsort label-2987 SELECT + 59 FROM tab2 AS cor0 WHERE NOT ( NOT + 7 + + CAST ( NULL AS INTEGER ) IS NOT NULL ) @@ -18298,8 +18570,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col1, - 9 + + + COUNT ( - col0 ) AS col1 FROM tab2 +---- +-3 +-6 query III rowsort SELECT * FROM tab2 WHERE ( NOT col0 + - 88 >= + - col1 ) @@ -18420,8 +18695,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 75 col0, - COUNT ( * ) AS col0 FROM tab0 +---- +-3 +75 query I rowsort SELECT DISTINCT + col2 * - + col0 AS col2 FROM tab1 cor0 @@ -18462,8 +18740,15 @@ SELECT ALL 53 + + col2 - - 27 + + col0 * - - 11 * + + 10 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 16 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 16 AS col2, col1 AS col2 FROM tab1 AS cor0 WHERE 46 > - 9 +---- +14 +16 +16 +16 +47 +5 query I rowsort label-3028 SELECT ALL COUNT ( - - col1 ) FROM tab0 AS cor0 WHERE + 9 - + col2 IS NULL @@ -18563,8 +18848,15 @@ SELECT + col0 / - + 66 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -8281 # Datafusion - Expected - -96 # Datafusion - Expected - -2601 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 AS col2, + col0 * - col0 AS col2 FROM tab1 AS cor0 +---- +-2601 +-59 +-68 +-7225 +-8281 +-96 query I rowsort label-3045 SELECT ALL ( + COUNT ( DISTINCT - - col0 ) ) FROM tab2 AS cor0 @@ -18621,8 +18913,15 @@ SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col0 IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col0, col1 AS col0 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT DISTINCT + col2 * + ( + col0 ) col0 FROM tab2 cor0 @@ -18907,8 +19206,15 @@ SELECT + MIN ( ALL - 56 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - 5 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, 77 AS col2 FROM tab1 +---- +14 +47 +5 +77 +77 +77 query I rowsort label-3096 SELECT 73 / - + 59 FROM tab2 @@ -18948,8 +19254,15 @@ SELECT DISTINCT ( col2 ) + - col1 * - 51 * + col2 FROM tab2 # Datafusion - Expected - 99 # Datafusion - Expected - 2 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) / \(\- tab0\.col0\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 30 / - col0 col1, + ( col2 ) col1 FROM tab0 +---- +0 +0 +10 +2 +47 +99 query I rowsort label-3102 SELECT ALL 93 * - SUM ( + col0 ) col2 FROM tab1 @@ -20317,8 +20630,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE 7 > NULL # Datafusion - Expected - -1792 # Datafusion - Expected - 7 # Datafusion - Expected - -2100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "Int64\(28\) \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 7 AS col2, + 28 * - col0 col2 FROM tab2 AS cor0 +---- +-1288 +-1792 +-2100 +7 +7 +7 query I rowsort SELECT DISTINCT + ( + col0 ) * + + col2 FROM tab2 cor0 @@ -20753,8 +21073,15 @@ SELECT ALL - ( - 74 ) FROM tab2 # Datafusion - Expected - -1500 # Datafusion - Expected - 3 # Datafusion - Expected - -920 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col2" at position 0 and "Int64\(20\) \* \(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 AS col2, + 20 * + ( + - col0 ) AS col2 FROM tab2 +---- +-1280 +-1500 +-920 +3 +3 +3 query I rowsort SELECT ALL - 66 * ( - + col0 ) * + col1 AS col1 FROM tab0 cor0 @@ -21486,8 +21813,11 @@ SELECT ALL 29 / + - 79 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - -279 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-74\)\) AS col0" at position 0 and "sum\(\(\- Int64\(93\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( - 74 ) AS col0, SUM ( - + 93 ) AS col0 FROM tab0 cor0 +---- +-279 +-74 query I rowsort label-3525 SELECT DISTINCT + COUNT ( DISTINCT + - col0 ) AS col2 FROM tab1 AS cor0 @@ -21786,8 +22116,9 @@ SELECT ALL - SUM ( ALL 51 ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1, ( + col1 ) FROM tab0 AS cor0 WHERE NOT ( col2 ) >= - col2 * - - 87 +---- query I rowsort SELECT DISTINCT 46 + + 7 + + col0 col1 FROM tab0 AS cor0 @@ -22055,8 +22386,15 @@ SELECT ALL + + 77 * + col2 + + col0 AS col2 FROM tab1 cor0 # Datafusion - Expected - -20 # Datafusion - Expected - NULL # Datafusion - Expected - -420 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \- Int64\(6\) AS col0" at position 0 and "Int64\(20\) \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT CAST ( NULL AS FLOAT8 ) - 6 AS col0, + 20 * - col1 AS col0 FROM tab0 AS cor0 +---- +-1620 +-20 +-420 +NULL +NULL +NULL query I rowsort SELECT + 70 + + + col2 - - - col0 * col0 FROM tab2 AS cor0 @@ -22228,8 +22566,11 @@ SELECT - col2 * col0 / 90 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- tab1\.col1\)\) AS col2" at position 0 and "min\(Int64\(\-12\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( ALL - col1 ) AS col2, + MIN ( ALL - 12 ) AS col2 FROM tab1 +---- +-12 +-47 query II rowsort label-3645 SELECT ALL + CAST ( NULL AS INTEGER ) + col0 col1, - col1 / - ( - 52 ) FROM tab1 AS cor0 @@ -22298,8 +22639,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 61 + + + ( 41 ) AS col0, - 86 * - COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +102 +258 query I rowsort label-3656 SELECT DISTINCT + col1 / + CAST ( - col1 AS INTEGER ) + col1 + col0 + 61 * col1 FROM tab0 AS cor0 @@ -22613,8 +22957,15 @@ SELECT DISTINCT + 89 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - -240 # Datafusion - Expected - 65 # Datafusion - Expected - -2376 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) / \(\- tab0\.col1\) AS col2" at position 0 and "Int64\(\-24\) \* tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 65 / - col1 AS col2, - 24 * col2 col2 FROM tab0 +---- +-1128 +-2376 +-240 +0 +3 +65 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -22782,8 +23133,15 @@ SELECT DISTINCT + 5 * - - col0 * + - col1 FROM tab0 AS cor0 # Datafusion - Expected - -3080 # Datafusion - Expected - -75 # Datafusion - Expected - -3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col2 \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 AS col2, col2 * - col1 AS col2 FROM tab2 AS cor0 +---- +-1173 +-3080 +-3886 +-46 +-64 +-75 query I rowsort label-3731 SELECT - + 86 * + - COUNT ( * ) + + MIN ( ALL 49 ) AS col0 FROM tab0 AS cor0 @@ -23016,8 +23374,15 @@ SELECT * FROM tab2 WHERE NOT - col0 > + + 24 # Datafusion - Expected - NULL # Datafusion - Expected - -5751 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* Int64\(\-81\) AS col1" at position 0 and "CAST\(NULL AS Float64\) \+ Int64\(85\) \- tab2\.col2 \- \(\- tab2\.col1\) \* tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 71 * - 81 AS col1, CAST ( NULL AS FLOAT8 ) + + 85 - col2 - - col1 * col2 AS col1 FROM tab2 +---- +-5751 +-5751 +-5751 +NULL +NULL +NULL query I rowsort SELECT DISTINCT col0 * - col0 * + - col0 FROM tab2 @@ -23353,8 +23718,15 @@ NULL # Datafusion - Expected - 77 # Datafusion - Expected - 6750 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(90\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * 90 col0, col1 AS col0 FROM tab2 AS cor0 +---- +4140 +51 +5760 +67 +6750 +77 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -23376,8 +23748,15 @@ SELECT ALL + 27 * COUNT ( * ) AS col1 FROM tab0 # Datafusion - Expected - -1827 # Datafusion - Expected - 81 # Datafusion - Expected - -1215 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "tab0\.col0 \* \(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, + col0 * - col1 AS col0 FROM tab0 +---- +-1215 +-1827 +-97 +1 +21 +81 query III rowsort SELECT DISTINCT * FROM tab0 WHERE + - col1 IS NULL @@ -25556,8 +25935,15 @@ SELECT DISTINCT - 13 col0 FROM tab0 # Datafusion - Expected - 64 # Datafusion - Expected - -58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col2, + col0 AS col2 FROM tab2 +---- +-23 +-40 +-58 +46 +64 +75 query I rowsort label-4188 SELECT col1 + CAST ( col2 AS INTEGER ) FROM tab1 @@ -25614,8 +26000,15 @@ SELECT * FROM tab1 WHERE - 46 / + col1 IS NULL # Datafusion - Expected - 34 # Datafusion - Expected - 9409 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* \(\- tab0\.col0\) AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * - col0 AS col0, + 34 AS col0 FROM tab0 +---- +225 +34 +34 +34 +7569 +9409 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NULL < + col2 * col1 * - col2 @@ -25944,8 +26337,15 @@ SELECT ALL + + CAST ( + - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -196 # Datafusion - Expected - 74 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) / cor0\.col1 \+ CAST\(Int64\(67\) AS Int32\) AS col0" at position 0 and "\(\- cor0\.col1\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 / + col1 + CAST ( + 67 AS INTEGER ) AS col0, - col1 * + col1 AS col0 FROM tab1 cor0 WHERE NOT ( NOT col0 < + col0 - + + 5 + + - col1 + col0 ) +---- +-196 +-2209 +-25 +67 +69 +74 query III rowsort label-4254 SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col0 + - col0 * - - col2 BETWEEN NULL AND + + CAST ( col2 AS INTEGER ) + + + col2 ) @@ -26018,8 +26418,9 @@ SELECT * FROM tab1 WHERE NOT NULL <> + col0 + + - col0 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 / cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col2 AS col2, + col1 / col2 AS col2 FROM tab1 cor0 WHERE ( NULL ) <> - col1 +---- query I rowsort SELECT + 17 AS col2 FROM tab2 cor0 WHERE NOT + ( ( + col1 ) ) / ( - 78 ) < + col0 @@ -26940,8 +27341,11 @@ SELECT ALL + col0 + - 95 + - col1 * + 17 AS col0 FROM tab2 WHERE NOT NULL > NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- \(\- CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, - ( + - COUNT ( * ) ) * - - CAST ( - - COUNT ( * ) AS INTEGER ) col1 FROM tab1 +---- +9 +NULL query I rowsort label-4419 SELECT + COUNT ( * ) / - 92 AS col2 FROM tab1 @@ -27356,8 +27760,15 @@ SELECT * FROM tab2 cor0 WHERE ( + 70 ) IS NULL # Datafusion - Expected - 164 # Datafusion - Expected - -99 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) / cor0\.col0 \+ cor0\.col1 \+ cor0\.col2 \* \(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 \+ Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 / + col0 + col1 + + + col2 * - + col1 AS col0, + col1 + 83 AS col0 FROM tab0 AS cor0 +---- +-189 +-3729 +-99 +104 +164 +84 query I rowsort label-4488 SELECT DISTINCT + + COUNT ( DISTINCT + 58 ) + + + COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0 @@ -27798,8 +28209,15 @@ SELECT col2 * + col1 + - 48 col2 FROM tab2 # Datafusion - Expected - 86 # Datafusion - Expected - -23 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 23 col2, 86 AS col2 FROM tab2 +---- +-23 +-23 +-23 +86 +86 +86 query I rowsort SELECT DISTINCT col0 - - 32 FROM tab0 @@ -28575,8 +28993,15 @@ NULL # Datafusion - Expected - 38 # 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 "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 AS col0, 38 AS col0 FROM tab2 +---- +38 +38 +38 +44 +44 +44 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -28690,8 +29115,15 @@ SELECT - COUNT ( * ) + - - 91 FROM tab0 # Datafusion - Expected - -134 # Datafusion - Expected - 82 # Datafusion - Expected - -102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) \+ tab2\.col1 \+ tab2\.col0 AS col0" at position 0 and "\(\- tab2\.col1\) \- tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 15 + col1 + + + col0 col0, - col1 - + col1 AS col0 FROM tab2 +---- +-102 +-134 +-154 +126 +127 +82 query I rowsort label-4699 SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * col1 + 62 FROM tab2 WHERE NOT col1 >= + 53 @@ -28732,8 +29164,15 @@ SELECT DISTINCT + col0 * + - 53 + + col2 FROM tab0 AS cor0 # Datafusion - Expected - -78204 # Datafusion - Expected - 81 # Datafusion - Expected - -301644 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "Int64\(98\) \* cor0\.col1 \* \(\- Int64\(38\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col1 AS col0, 98 * + col1 * - + 38 col0 FROM tab0 AS cor0 +---- +-301644 +-3724 +-78204 +1 +21 +81 query I rowsort label-4705 SELECT DISTINCT - - COUNT ( * ) + 88 AS col0 FROM tab2 AS cor0 @@ -29076,8 +29515,15 @@ SELECT DISTINCT ( CAST ( + ( + col1 ) AS INTEGER ) ), - 2 AS col1 FROM tab2 cor0 # Datafusion - Expected - -67 # Datafusion - Expected - 77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col0, - col1 AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +51 +67 +77 query I rowsort label-4759 SELECT DISTINCT + MIN ( ALL - 64 ) FROM tab0 AS cor0 WHERE NOT - 76 / 69 IS NULL @@ -29299,8 +29745,15 @@ SELECT ALL * FROM tab1 WHERE NOT - - col2 * + col0 - - col1 IS NULL # Datafusion - Expected - -81 # Datafusion - Expected - NULL # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col2, - 81 AS col2 FROM tab0 +---- +-81 +-81 +-81 +NULL +NULL +NULL query I rowsort label-4795 SELECT ALL - COUNT ( * ) * - + COUNT ( * ) FROM tab1 @@ -29797,8 +30250,15 @@ SELECT ( + col1 ) AS col0 FROM tab1 WHERE ( - col1 ) IS NOT NULL # Datafusion - Expected - -1175 # Datafusion - Expected - 99 # Datafusion - Expected - -2475 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "Int64\(\-25\) \* tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, - 25 * + col2 AS col1 FROM tab0 +---- +-1175 +-2475 +-250 +10 +47 +99 query I rowsort SELECT DISTINCT col2 + - 30 * col0 FROM tab2 @@ -29887,8 +30347,15 @@ SELECT DISTINCT + + 21 * - COUNT ( * ) FROM tab0 AS cor0 # Datafusion - Expected - 2 # Datafusion - Expected - 58 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, 2 col1 FROM tab2 +---- +2 +2 +2 +23 +40 +58 query I rowsort SELECT + 99 col2 FROM tab2 @@ -29946,8 +30413,11 @@ SELECT ALL 50 * - ( col0 ) AS col2, + col2 AS col1, - col2 * + + col0 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 col2" at position 0 and "count\(\(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 93 AS col2, COUNT ( + - col1 ) AS col2 FROM tab2 AS cor0 +---- +3 +93 query II rowsort SELECT DISTINCT - 58 AS col1, col2 FROM tab1 AS cor0 @@ -30390,8 +30860,15 @@ SELECT DISTINCT col0, col2 AS col0 FROM tab0 cor0 # Datafusion - Expected - 4505 # Datafusion - Expected - 91 # Datafusion - Expected - 4823 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(53\) \* \(\- \(\- cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 AS col1, + 53 * - - ( col0 ) col1 FROM tab1 AS cor0 +---- +2703 +4505 +4823 +51 +85 +91 query I rowsort SELECT DISTINCT - 64 + - ( - col2 ) col1 FROM tab1 AS cor0 @@ -31396,8 +31873,15 @@ SELECT ALL + col1, + 96 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 / CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 col1, + col2 / + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +NULL +NULL +NULL query I rowsort SELECT DISTINCT - 32 + - - 92 * - col1 + + col1 FROM tab2 AS cor0 @@ -31630,8 +32114,15 @@ SELECT + col1 col1 FROM tab2 WHERE - col1 IS NULL # Datafusion - Expected - 57 # Datafusion - Expected - 97 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, + 57 col2 FROM tab0 +---- +15 +57 +57 +57 +87 +97 query I rowsort SELECT DISTINCT 15 - + col0 AS col1 FROM tab1 @@ -31710,8 +32201,15 @@ NULL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col1, col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query II rowsort SELECT + col0, - 1 * - + col2 * + col0 FROM tab1 AS cor0 @@ -31876,8 +32374,15 @@ SELECT ALL + - COUNT ( * ) * - 11 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 # Datafusion - Expected - 61 # Datafusion - Expected - 17 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 AS col2, 61 AS col2 FROM tab1 +---- +17 +17 +17 +61 +61 +61 query I rowsort SELECT - 80 - + col2 FROM tab0 WHERE NOT + col0 * + - col1 + - col0 + 49 * + col1 > + + 60 @@ -31919,8 +32424,15 @@ SELECT ALL - ( - - ( - col1 ) ) AS col2 FROM tab2 cor0 # Datafusion - Expected - 5 # Datafusion - Expected - 91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 col2, col1 AS col2 FROM tab1 AS cor0 +---- +14 +47 +5 +51 +85 +91 query I rowsort label-5225 SELECT DISTINCT MIN ( DISTINCT col1 ) AS col0 FROM tab1 AS cor0 @@ -33061,8 +33573,11 @@ SELECT COUNT ( * ) / COUNT ( DISTINCT + + 47 ) * + COUNT ( ( + col0 ) ) + - 39 * # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ max\(\(\- tab0\.col1\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) + ( MAX ( + - ( col1 ) ) ) AS col1, COUNT ( * ) AS col1 FROM tab0 +---- +-4 +3 query I rowsort SELECT col2 + - + col0 + - - col1 FROM tab2 @@ -34258,8 +34773,11 @@ SELECT col1 FROM tab0 WHERE - 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 "Int64\(33\) / \(\- max\(Int64\(81\)\)\) AS col1" at position 0 and "\(\- min\(DISTINCT Int64\(0\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 33 / - MAX ( + + 81 ) col1, - MIN ( DISTINCT + 0 ) AS col1 FROM tab1 +---- +0 +0 query I rowsort SELECT - 73 + - col0 + - col1 + + - col1 + + col0 * col2 AS col2 FROM tab2 @@ -34947,8 +35465,15 @@ SELECT ALL 52 / - col0 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 32 # Datafusion - Expected - -5 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-32\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, - CAST ( - 32 AS INTEGER ) AS col1 FROM tab1 cor0 +---- +-14 +-47 +-5 +32 +32 +32 query I rowsort label-5725 SELECT DISTINCT CAST ( - + col2 AS INTEGER ) FROM tab0 AS cor0 @@ -36091,8 +36616,15 @@ SELECT + 88 FROM tab1 AS cor0 WHERE NULL IS NULL # Datafusion - Expected - -7569 # Datafusion - Expected - 0 # Datafusion - Expected - -9409 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \+ \(\- tab0\.col0\) AS col0" at position 0 and "\(\- tab0\.col0\) \* tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 + + - col0 AS col0, - col0 * + col0 AS col0 FROM tab0 +---- +-225 +-7569 +-9409 +0 +0 +0 query III rowsort SELECT DISTINCT * FROM tab0 WHERE - ( - + 25 ) NOT IN ( - 16 + + 93 + col2 ) @@ -36468,8 +37000,11 @@ SELECT ALL col0 * 63 + - - 19 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-41\)\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MAX ( + - 41 ) AS col2, 49 AS col2 FROM tab2 AS cor0 WHERE col1 IN ( + + col1 ) +---- +-41 +49 query III rowsort SELECT DISTINCT * FROM tab1 WHERE + col1 <> - - 56 @@ -36631,8 +37166,15 @@ SELECT + COUNT ( DISTINCT - - 96 ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -22 # Datafusion - Expected - 14 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col2" at position 0 and "Int64\(69\) \- cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 14 AS col2, 69 - + col0 AS col2 FROM tab1 AS cor0 +---- +-16 +-22 +14 +14 +14 +18 query III rowsort SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND + col2 @@ -37713,8 +38255,9 @@ SELECT * FROM tab1 WHERE 5 / - col0 + CAST ( NULL AS INTEGER ) >= NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, - col1 col0 FROM tab0 AS cor0 WHERE NULL <> NULL +---- query I rowsort SELECT ALL + col0 + - - col1 + 67 AS col0 FROM tab2 AS cor0 @@ -38448,8 +38991,15 @@ SELECT COUNT ( ALL + col1 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -30 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* \(\- cor0\.col0\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 2 * - col0 AS col0, CAST ( NULL AS INTEGER ) * + + col1 AS col0 FROM tab0 AS cor0 +---- +-174 +-194 +-30 +NULL +NULL +NULL query I rowsort label-6313 SELECT + MIN ( ALL + col1 ) FROM tab1 AS cor0 @@ -38868,8 +39418,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 +---- +9 +9 query I rowsort label-6387 SELECT - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) @@ -39318,8 +39871,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 31 AS col1, - COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +-3 +31 query I rowsort label-6460 SELECT DISTINCT + 93 + - COUNT ( * ) FROM tab2 AS cor0 @@ -40703,8 +41259,15 @@ SELECT - 12 col1, 13 FROM tab0 # Datafusion - Expected - 75 # Datafusion - Expected - -77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col2, col0 AS col2 FROM tab2 +---- +-51 +-67 +-77 +46 +64 +75 query I rowsort label-6684 SELECT ALL MIN ( DISTINCT col2 ) FROM tab0 @@ -41417,8 +41980,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, 17 AS col2 FROM tab0 AS cor0 +---- +-3 +17 query I rowsort SELECT ALL - - 20 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) <= NULL @@ -41871,8 +42437,11 @@ SELECT ALL col2 / + - col2 + - + col0 * - 75 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 34 col0, CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab1 +---- +34 +NULL query II rowsort SELECT - col0, col1 AS col2 FROM tab2 @@ -42254,8 +42823,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 + + col2 * - CAST ( + - col2 AS # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, + col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-6949 SELECT ALL - CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 cor0 @@ -42275,8 +42851,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 < - col2 * - + 77 # Datafusion - Expected - 56 # Datafusion - Expected - -77 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 \- Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 col0, col2 - + 2 AS col0 FROM tab2 cor0 +---- +-51 +-67 +-77 +21 +38 +56 query II rowsort label-6952 SELECT + - COUNT ( * ) AS col0, 70 AS col2 FROM tab1 AS cor0 @@ -42516,8 +43099,15 @@ SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 # Datafusion - Expected - 7776 # Datafusion - Expected - -62 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(62\) AS Int32\)\) AS col2" at position 0 and "tab0\.col1 \* Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( 62 AS INTEGER ) AS col2, col1 * 96 AS col2 FROM tab0 +---- +-62 +-62 +-62 +2016 +7776 +96 query I rowsort SELECT 84 - + col2 FROM tab2 @@ -43062,8 +43652,15 @@ SELECT + 1 + + COUNT ( * ) FROM tab2 # Datafusion - Expected - 332 # Datafusion - Expected - NULL # Datafusion - Expected - 6392 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- cor0\.col1\) \+ Int64\(\-88\) \+ \(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 89 + + CAST ( NULL AS INTEGER ) col1, - col1 + - 88 + - col1 * - col1 AS col1 FROM tab0 AS cor0 +---- +-88 +332 +6392 +NULL +NULL +NULL query I rowsort label-7077 SELECT ALL COUNT ( col1 ) AS col1 FROM tab1 AS cor0 @@ -43104,8 +43701,15 @@ SELECT DISTINCT 53 / COUNT ( * ) * - - COUNT ( * ) FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 +---- +14 +47 +5 +NULL +NULL +NULL query I rowsort SELECT - col2 - 81 AS col1 FROM tab1 AS cor0 @@ -43130,8 +43734,15 @@ SELECT ALL + COUNT ( * ) / + MAX ( DISTINCT + 50 ) FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 9120 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ cor0\.col2 \* cor0\.col2 AS col2" at position 0 and "cor0\.col2 / \(\- cor0\.col0\) \- \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 + col2 * + col2 col2, col2 / - col0 - - + col2 AS col2 FROM tab1 AS cor0 +---- +3422 +4556 +59 +68 +9120 +95 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < ( - col1 ) * + col0 @@ -44395,8 +45006,11 @@ SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 * + - 39 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "\(\- sum\(Int64\(20\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 2 AS col2, - SUM ( + 20 ) col2 FROM tab2 AS cor0 +---- +-60 +2 query I rowsort SELECT DISTINCT + - 38 col1 FROM tab0 WHERE NOT NULL IS NOT NULL @@ -44925,8 +45539,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 69 AS col0, + COUNT ( * ) AS col0 FROM tab2 cor0 +---- +-69 +3 query I rowsort SELECT DISTINCT + + 26 * + + col1 AS col0 FROM tab1 cor0 @@ -45267,8 +45884,15 @@ SELECT - 52 col1, col0 * + - 72 AS col2 FROM tab0 # Datafusion - Expected - -295 # Datafusion - Expected - 13 # Datafusion - Expected - -3196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col1" at position 0 and "tab1\.col2 \* \(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 13 AS col1, col2 * - col1 col1 FROM tab1 +---- +-1344 +-295 +-3196 +13 +13 +13 query I rowsort label-7442 SELECT ALL MIN ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 @@ -45777,8 +46401,10 @@ SELECT + 13 * + + COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 77c103e697eb21b5ec7c77bbb42ab419 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 1 and "cor0\.col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + ( - CAST ( NULL AS INTEGER ) ) AS col1, col0, col0 FROM tab2 AS cor0 +---- +9 values hashing to 9f9400dc4b7003cde19dd0e0f11818ca query I rowsort SELECT ALL col2 + - col0 * - 76 FROM tab1 AS cor0 @@ -46006,8 +46632,15 @@ SELECT * FROM tab1 AS cor0 WHERE + 47 * col1 * - 73 IS NULL # Datafusion - Expected - 14 # Datafusion - Expected - 57 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 57 AS col2, + 14 AS col2 FROM tab1 AS cor0 +---- +14 +14 +14 +57 +57 +57 query I rowsort SELECT DISTINCT + - col1 + - 19 FROM tab2 cor0 @@ -46407,8 +47040,11 @@ SELECT ( 28 ) FROM tab0 # 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\(\(\- tab2\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 18 AS col2, COUNT ( - col1 ) AS col2 FROM tab2 +---- +-18 +3 query I rowsort label-7634 SELECT DISTINCT - - ( - + COUNT ( * ) ) FROM tab2 cor0 @@ -47163,8 +47799,15 @@ SELECT DISTINCT - + CAST ( 6 AS INTEGER ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -22 # Datafusion - Expected - -36 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / \(\- cor0\.col1\) \+ Int64\(\-35\) AS col2" at position 0 and "Int64\(\-22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 / - + col1 + - 35 AS col2, - 22 AS col2 FROM tab1 AS cor0 +---- +-22 +-22 +-22 +-36 +-36 +-36 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 * - - col2 - 10 - col2 AND + col1 @@ -47611,8 +48254,9 @@ SELECT DISTINCT * FROM tab1 WHERE + ( - - 23 ) * - ( - - 29 ) IS NOT NULL 9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "Int64\(70\) \+ tab2\.col1 \+ Int64\(\-9\) \+ \(\- \(\- tab2\.col1\)\) \* tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 AS col1, 70 + + + col1 + - 9 + - - col1 * col1 AS col1 FROM tab2 WHERE NOT - col1 IN ( - - CAST ( NULL AS INTEGER ) * + col0 * - + col1 ) +---- query I rowsort label-7847 SELECT - MIN ( - 0 ) AS col0 FROM tab2 @@ -47845,8 +48489,9 @@ SELECT + COUNT ( * ) AS col2, 65 AS col1 FROM tab0 65 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, col1 AS col0 FROM tab2 WHERE NOT + + col2 >= - 80 +---- query I rowsort SELECT DISTINCT - + 23 + col1 AS col0 FROM tab0 AS cor0 @@ -48450,8 +49095,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - COUNT ( * ) AS col0, + 25 AS col0 FROM tab0 AS cor0 +---- +-3 +25 query I rowsort label-7980 SELECT - COUNT ( - - col0 ) FROM tab2 WHERE col0 BETWEEN + 3 + col0 * + col2 + + + col2 AND NULL @@ -49236,8 +49884,15 @@ SELECT 38 AS col0 FROM tab1 cor0 CROSS JOIN tab2 cor1 # Datafusion - Expected - -129024 # Datafusion - Expected - -9453 # Datafusion - Expected - -151200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col1\) \+ \(\- \(\- cor0\.col2\)\) \+ cor0\.col0 \* \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(42\) \* \(\- cor0\.col0\) \* Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * - col1 + - - col2 + + col0 * - col0 AS col2, 42 * - col0 * + 48 AS col2 FROM tab2 AS cor0 +---- +-129024 +-151200 +-3266 +-7136 +-92736 +-9453 query I rowsort SELECT col2 + + ( - 58 ) + 91 FROM tab1 cor0 @@ -49801,8 +50456,15 @@ SELECT + - 5 * - + 84 + + + col2 * col1 * col0 FROM tab0 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, col2 AS col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT DISTINCT - + 90 + + col2 * 29 AS col2 FROM tab0 AS cor0 @@ -49900,8 +50562,11 @@ SELECT + col1 col0, col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col2" at position 0 and "Int64\(19\) \+ min\(Int64\(\-39\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 40 AS col2, + 19 + + + MIN ( - 39 ) AS col2 FROM tab1 AS cor0 +---- +-20 +40 query I rowsort label-8224 SELECT ALL - MIN ( ALL + col0 ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 @@ -50254,8 +50919,10 @@ SELECT ALL - MAX ( - - col0 ) + - 10 - - MIN ( ALL - col0 ) AS col0 FROM tab1 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 9178d88c16b357e714e85c7dff471eb2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(\-64\) \* \(\- \(\- cor0\.col0\)\) AS col0" at position 1 and "Int64\(70\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 69 AS col2, + col2 * - 64 * - - col0 AS col0, + 70 AS col0 FROM tab2 AS cor0 +---- +9 values hashing to 0e37c53a619000c446c918077eb2368c query I rowsort label-8283 SELECT ALL - col1 + - col2 + 91 + 62 / - CAST ( + 90 AS INTEGER ) AS col2 FROM tab2 AS cor0 @@ -50539,8 +51206,15 @@ SELECT DISTINCT * FROM tab2 WHERE ( col0 / - CAST ( NULL AS INTEGER ) + - - 69 - # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, + ( col1 ) FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT DISTINCT ( + 26 ) AS col0 FROM tab1 @@ -50866,8 +51540,11 @@ SELECT DISTINCT + 22 / + - col1 * + 47 * 19 + + col2 AS col2 FROM tab2 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\(cor0\.col1\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( ALL + col1 ) col1, + 54 col1 FROM tab0 AS cor0 +---- +3 +54 query I rowsort label-8387 SELECT - col2 / ( + - CAST ( - col2 AS INTEGER ) ) AS col0 FROM tab2 @@ -50942,8 +51619,15 @@ SELECT ALL + ( - + col2 ) AS col2 FROM tab0 # Datafusion - Expected - -47 # Datafusion - Expected - 94 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "\(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 94 AS col2, - col2 col2 FROM tab0 +---- +-10 +-47 +-99 +94 +94 +94 query III rowsort SELECT ALL * FROM tab2 WHERE - col2 NOT IN ( col2, col2, + col2 ) @@ -50973,8 +51657,15 @@ SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE - col2 <> ( - col2 ) # Datafusion - Expected - -333 # Datafusion - Expected - 91 # Datafusion - Expected - -4356 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col2 \+ Int64\(88\) \+ Int64\(\-96\) \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, + col2 + 88 + - 96 * col1 AS col2 FROM tab1 AS cor0 +---- +-1160 +-333 +-4356 +51 +85 +91 query I rowsort SELECT 56 + - 18 FROM tab0 @@ -51794,8 +52485,15 @@ SELECT 61 + - 24 AS col0 FROM tab1 cor0 # Datafusion - Expected - -51 # Datafusion - Expected - 5 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(\-51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, - 51 AS col2 FROM tab1 cor0 +---- +-51 +-51 +-51 +14 +47 +5 query III rowsort SELECT ALL * FROM tab1 WHERE ( NULL < ( NULL ) ) @@ -51814,8 +52512,11 @@ SELECT ALL + MIN ( - 26 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 1862 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-19\) \* Int64\(\-98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, - 19 * + - 98 AS col0 FROM tab2, tab0 AS cor0 +---- +1862 +9 query I rowsort SELECT + 55 * + col2 FROM tab0 @@ -52761,8 +53462,9 @@ SELECT ALL + 50 FROM tab2 WHERE + col2 IS NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \* tab1\.col0 AS col2" at position 0 and "tab1\.col2 \* \(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 * + col0 AS col2, col2 * - col2 AS col2 FROM tab1 WHERE NULL IS NOT NULL +---- query II rowsort SELECT ALL 38 AS col0, + col2 + - 12 AS col1 FROM tab1 @@ -52805,8 +53507,15 @@ SELECT col0 * col0 * - 69 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, col1 col0 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT DISTINCT 8 * - + col2 FROM tab1 AS cor0 @@ -53926,8 +54635,15 @@ SELECT ALL 13 * - COUNT ( * ) AS col1 FROM tab1 # Datafusion - Expected - 87 # Datafusion - Expected - 651 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* tab0\.col1 AS col0" at position 0 and "tab0\.col2 \+ Int64\(\-12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 31 * + col1 col0, col2 + + - 12 AS col0 FROM tab0 +---- +-2 +2511 +31 +35 +651 +87 query I rowsort SELECT col1 * + 91 + col1 AS col1 FROM tab1 @@ -54501,8 +55217,15 @@ SELECT * FROM tab1 WHERE NOT - 35 BETWEEN NULL AND 31 + + + col0 # Datafusion - Expected - 21 # Datafusion - Expected - 34 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 34 AS col0, + col1 AS col0 FROM tab0 +---- +1 +21 +34 +34 +34 +81 query I rowsort label-8985 SELECT MAX ( ALL - col2 ) FROM tab1 @@ -54604,8 +55327,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT - 17 <= NULL # Datafusion - Expected - -68 # Datafusion - Expected - 96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "\(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 col0, - col2 AS col0 FROM tab1 +---- +-59 +-68 +-96 +59 +68 +96 query II rowsort label-9003 SELECT DISTINCT CAST ( NULL AS INTEGER ), + 9 * - - col2 * + col1 * - col2 AS col1 FROM tab1 @@ -54833,8 +55563,15 @@ SELECT ALL 93 - col1 FROM tab0 # Datafusion - Expected - 62 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(28\) AS col2" at position 0 and "tab0\.col2 \+ tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) * 28 AS col2, + col2 + col0 col2 FROM tab0 +---- +196 +62 +97 +NULL +NULL +NULL query I rowsort SELECT + ( - 55 ) / col2 * col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - - 35 + + col1 AND + col2 @@ -54990,8 +55727,11 @@ SELECT DISTINCT + col1 AS col0, - col1 FROM tab0 # 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\(tab0\.col2\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( ALL + col2 ) AS col0, + 82 AS col0 FROM tab0 +---- +3 +82 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 @@ -55000,8 +55740,15 @@ SELECT ALL + COUNT ( ALL + col2 ) AS col0, + 82 AS col0 FROM tab0 # Datafusion - Expected - 67 # Datafusion - Expected - -77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col2" at position 0 and "\(\- \(\- tab2\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, - ( - + col1 ) AS col2 FROM tab2 +---- +-51 +-67 +-77 +51 +67 +77 query I rowsort label-9064 SELECT ALL - SUM ( - col1 ) AS col1 FROM tab1 cor0 @@ -55053,8 +55800,15 @@ SELECT ( + 42 ) FROM tab0 AS cor0 WHERE NULL IS NULL # Datafusion - Expected - 28 # Datafusion - Expected - NULL # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(21\) AS col1" at position 0 and "tab1\.col1 \+ tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) * ( 21 ) AS col1, col1 + col1 AS col1 FROM tab1 +---- +10 +28 +94 +NULL +NULL +NULL query I rowsort label-9072 SELECT ALL + col2 / col1 - + col1 col0 FROM tab2 @@ -55477,8 +56231,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 - - col0 + col1 * - col2 > ( # Datafusion - Expected - 81 # Datafusion - Expected - -82 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* \(\- tab0\.col1\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 * - col1 AS col2, col1 AS col2 FROM tab0 +---- +-1722 +-6642 +-82 +1 +21 +81 query I rowsort label-9148 SELECT col1 * + - 45 * CAST ( NULL AS INTEGER ) col2 FROM tab2 @@ -56700,8 +57461,15 @@ SELECT + 33 AS col1, CAST ( - col2 AS INTEGER ) * - 91 FROM tab0 # Datafusion - Expected - -1275 # Datafusion - Expected - 91 # Datafusion - Expected - -1365 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "Int64\(\-15\) \* \(\- \(\- tab1\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 col2, - 15 * - - col0 AS col2 FROM tab1 +---- +-1275 +-1365 +-765 +51 +85 +91 query III rowsort SELECT * FROM tab2 WHERE NOT 55 + - + col0 IS NULL @@ -56751,8 +57519,11 @@ SELECT DISTINCT col1 + - - 18 + + ( - col1 ) - - 57 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) + - COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +0 +3 query I rowsort SELECT ALL 73 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 @@ -57160,8 +57931,11 @@ SELECT DISTINCT + col2 / - - col0 + - 51 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 9 + + + ( COUNT ( * ) ) AS col0, - 15 AS col0 FROM tab0 AS cor0 +---- +-15 +12 query I rowsort SELECT ALL 79 + - col1 + + col1 - + 75 * - col2 col2 FROM tab0 AS cor0 @@ -57202,8 +57976,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 AS col0, - COUNT ( * ) AS col0 FROM tab1 +---- +-3 +18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 @@ -57911,8 +58688,11 @@ SELECT DISTINCT - 14 AS col2, col1 + - + col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(\-49\)\)\) \+ Int64\(17\) 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 II valuesort SELECT ALL - MAX ( + - 49 ) + + 17 col2, + MIN ( + col0 ) AS col2 FROM tab2 AS cor0 +---- +46 +66 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 IN ( + + col1 + col0 ) @@ -58321,8 +59101,15 @@ SELECT SUM ( + col0 ) * - COUNT ( * ) FROM tab0 # Datafusion - Expected - -99 # Datafusion - Expected - 510 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(34\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 * + 34 AS col0, - col2 AS col0 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +2958 +3298 +510 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT - 87 + - - ( + col0 ) * + col2 IS NULL @@ -58788,8 +59575,11 @@ SELECT - 28 / + - 67 AS col1, col2 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-56\) AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( + - 56 AS INTEGER ) AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +-56 +3 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -58872,8 +59662,15 @@ SELECT DISTINCT 15 * COUNT ( col1 ) FROM tab2 # Datafusion - Expected - -52 # Datafusion - Expected - 81 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "Int64\(\-94\) \+ \(\- \(\- tab0\.col1\)\) \- \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, - 94 + - - col1 - - col1 AS col2 FROM tab0 +---- +-52 +-92 +1 +21 +68 +81 query I rowsort SELECT ALL + col0 * col2 + + col0 + 75 AS col1 FROM tab1 AS cor0 @@ -58921,8 +59718,15 @@ SELECT - col0 FROM tab0 AS cor0 WHERE ( NOT + - col0 - col0 BETWEEN NULL AND NUL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, + col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-9719 SELECT 92 * - 46 + + + CAST ( NULL AS INTEGER ) * 89 + - 63 - - CAST ( - col0 AS INTEGER ) + + - 8 * col0 + + + 34 + - col1 * + - ( col1 ) * - 61 * 30 FROM tab1 @@ -60210,8 +61014,15 @@ SELECT DISTINCT 18, + 98 AS col0 FROM tab2 # Datafusion - Expected - -444 # Datafusion - Expected - 35 # Datafusion - Expected - -444 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 0 and "Int64\(37\) \* Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 AS col2, 37 * + - 12 AS col2 FROM tab2 +---- +-444 +-444 +-444 +35 +35 +35 query I rowsort SELECT DISTINCT 66 FROM tab1 WHERE NULL NOT BETWEEN + - col2 + - ( + 11 ) AND - - 38 + - col1 * + col0 diff --git a/data/sqlite/random/aggregates/slt_good_68.slt b/data/sqlite/random/aggregates/slt_good_68.slt index b011449..51d85d9 100644 --- a/data/sqlite/random/aggregates/slt_good_68.slt +++ b/data/sqlite/random/aggregates/slt_good_68.slt @@ -97,8 +97,15 @@ SELECT ALL - + COUNT ( * ) AS col1, + COUNT ( DISTINCT col2 ) AS col2 FROM tab1 # Datafusion - Expected - 68 # Datafusion - Expected - -5 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 col1, col2 col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +59 +68 +96 query I rowsort SELECT ALL 46 AS col2 FROM tab2 cor0 @@ -163,8 +170,15 @@ SELECT DISTINCT - 18 / + 50 AS col1 FROM tab0 # Datafusion - Expected - 91 # Datafusion - Expected - 5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, col0 AS col2 FROM tab1 +---- +14 +47 +5 +51 +85 +91 query II rowsort SELECT ALL - col1, col2 FROM tab2 @@ -300,8 +314,15 @@ SELECT col0 / + col0 + + col1 AS col2, col2 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 92 # Datafusion - Expected - 16 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \+ Int64\(96\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( - 80 ) + + 96 AS col0, 92 AS col0 FROM tab1 AS cor0 +---- +16 +16 +16 +92 +92 +92 query I rowsort label-38 SELECT DISTINCT + 84 / - ( + 87 ) + - 76 + + - COUNT ( * ) col0 FROM tab2 AS cor0 @@ -1240,8 +1261,15 @@ SELECT + col0, 76 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -10 # Datafusion - Expected - 97 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col1, - col2 AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +15 +87 +97 query II rowsort label-204 SELECT ALL ( - col1 ) + col2 AS col0, ( col1 ) / + 54 AS col2 FROM tab1 AS cor0 @@ -1736,8 +1764,10 @@ SELECT ALL + col1 * - col1 * + col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 81893c5a270faf429c63f494dcfbdc99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col1, 15, col1 AS col1 FROM tab0 AS cor0 +---- +9 values hashing to 012f7554f8ade2893a4b9a0d74c53cba query II rowsort label-282 SELECT COUNT ( * ) AS col1, + 38 FROM tab2 AS cor0 @@ -1838,8 +1868,15 @@ SELECT col1, 58 + - + col1 + 39 FROM tab0 # Datafusion - Expected - -97 # Datafusion - Expected - 40950 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) \* Int64\(\-25\) \* Int64\(78\) AS col1" at position 0 and "\(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * + - 25 * + + 78 AS col1, - col0 AS col1 FROM tab0 +---- +-15 +-87 +-97 +157950 +1950 +40950 query I rowsort label-297 SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL @@ -2137,8 +2174,15 @@ SELECT ALL - 21 - + col2 / col1 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -51 # Datafusion - Expected - -57 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col1" at position 0 and "tab2\.col2 \+ Int64\(\-91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 57 AS col1, + col2 + - 91 AS col1 FROM tab2 +---- +-33 +-51 +-57 +-57 +-57 +-68 query I rowsort SELECT ALL 17 + - 81 AS col0 FROM tab0 @@ -2319,8 +2363,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - COUNT ( * ) ) AS col0, - 91 AS col0 FROM tab1 +---- +-3 +-91 query I rowsort SELECT DISTINCT + col1 * + - col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL @@ -2541,8 +2588,15 @@ SELECT * FROM tab1 WHERE + + 79 IS NOT NULL # Datafusion - Expected - -81 # Datafusion - Expected - -84 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) / \(\- tab0\.col1\) \+ \(\- tab0\.col1\) AS col2" at position 0 and "\(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 83 / - col1 + + - col1 AS col2, - col1 AS col2 FROM tab0 +---- +-1 +-21 +-24 +-81 +-82 +-84 query I rowsort SELECT + 15 * + - col1 + - col1 AS col1 FROM tab1 @@ -2712,8 +2766,15 @@ SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 * - col0 / - col0 * col0 <> + col0 # Datafusion - Expected - 21 # Datafusion - Expected - -81 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, + ( 21 ) AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +21 +21 +21 query I rowsort SELECT col1 * - col1 * + + col0 AS col1 FROM tab0 @@ -4410,8 +4471,15 @@ SELECT * FROM tab1 WHERE NOT + + col0 / col1 NOT IN ( + col1 ) # Datafusion - Expected - -87 # Datafusion - Expected - 73 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col1" at position 0 and "\(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 73 AS col1, - col0 AS col1 FROM tab0 +---- +-15 +-87 +-97 +73 +73 +73 query I rowsort label-725 SELECT ALL - COUNT ( * ) * + 8 AS col2 FROM tab1 @@ -4446,8 +4514,11 @@ SELECT DISTINCT 84, - COUNT ( * ) / + 11 + COUNT ( * ) col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "min\(Int64\(68\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 74 col2, MIN ( ( + 68 ) ) AS col2 FROM tab0 +---- +68 +74 query I rowsort label-731 SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL @@ -4708,7 +4779,7 @@ SELECT ALL - - COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to e7eac5da675577c17cdd4bcec7409442 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(14\) \* \(\- cor0\.col2\) / cor0\.col2 \+ cor0\.col0 \+ cor0\.col1 \* cor0\.col2 \* \(\- cor0\.col1\) \+ Int64\(26\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(\-73\) \* \(\- Int64\(\-41\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Schema error: Schema contains qualified field name cor0\.col2 and unqualified field name col2 which would be ambiguous SELECT DISTINCT - col0 * 14 * - col2 / + col2 + col0 + col1 * + col2 * - col1 + + 26 * - - CAST ( NULL AS INTEGER ) AS col2, col2 AS col2, + - 73 * - - 41 AS col2 FROM tab1 AS cor0 query III rowsort @@ -5250,8 +5321,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE - col2 * + col2 > NULL # Datafusion - Expected - 91 # Datafusion - Expected - -192 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \- tab1\.col2 AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 - + col2 AS col1, col0 AS col1 FROM tab1 +---- +-118 +-136 +-192 +51 +85 +91 query III rowsort SELECT * FROM tab2 WHERE - 97 / ( - 70 ) - + + 54 NOT BETWEEN + col0 AND NULL @@ -5916,8 +5994,15 @@ SELECT - + col1, - col0 * col2 AS col2, - + ( - col1 ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 5 # Datafusion - Expected - -91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, col1 AS col2 FROM tab1 +---- +-51 +-85 +-91 +14 +47 +5 query I rowsort label-967 SELECT DISTINCT + 98 * col0 / - col0 FROM tab1 @@ -5988,8 +6073,15 @@ SELECT col0 * col2 + - 32 FROM tab0 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - 96 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, col0 AS col1 FROM tab1 AS cor0 +---- +51 +59 +68 +85 +91 +96 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT ( - col1 > NULL ) @@ -6737,8 +6829,15 @@ SELECT + col2 AS col1 FROM tab2 WHERE ( + col2 ) * col1 * + - col2 <= col1 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 col0, col2 AS col0 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT ALL + ( + col1 ) * - 3 + + - col1 AS col0 FROM tab0 @@ -7733,8 +7832,15 @@ SELECT + COUNT ( + + col1 ) AS col2 FROM tab0 # Datafusion - Expected - -47 # Datafusion - Expected - -99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, - col2 AS col0 FROM tab0 +---- +-10 +-10 +-47 +-47 +-99 +-99 query II rowsort SELECT DISTINCT - col0 + + col0 * + 44 AS col2, + 77 FROM tab2 WHERE NULL NOT IN ( - col2 * + - col0, + col2 + + 87 * 6 - + - col0, col0 ) @@ -8054,8 +8160,13 @@ SELECT DISTINCT CAST ( + col2 AS INTEGER ) * - 66 + + ( 55 ) * + 53 + - 78 * - + # Datafusion - Expected - 85 # Datafusion - Expected - 68 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 AS col1, col0 col1 FROM tab1 WHERE col2 <= + col0 +---- +59 +68 +85 +91 query I rowsort SELECT DISTINCT + col0 * - + 45 * - 2 - + - 46 AS col0 FROM tab1 @@ -8236,8 +8347,15 @@ NULL # Datafusion - Expected - 95 # Datafusion - Expected - 89 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- cor0\.col1\) \+ cor0\.col2 AS col0" at position 0 and "cor0\.col2 \+ Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 + - col1 + col2 AS col0, col2 + - 1 AS col0 FROM tab1 cor0 +---- +113 +178 +58 +67 +89 +95 query I rowsort SELECT ALL + 10 * + - col0 + + col1 AS col1 FROM tab1 AS cor0 @@ -9283,8 +9401,15 @@ SELECT MAX ( - - col2 ) FROM tab1 AS cor0 # Datafusion - Expected - 97 # Datafusion - Expected - -99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col1\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 * - col1 AS col0, 97 AS col0 FROM tab0 AS cor0 +---- +-210 +-3807 +-99 +97 +97 +97 query I rowsort label-1532 SELECT DISTINCT 86 * + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 @@ -9860,8 +9985,11 @@ SELECT ALL + SUM ( + 46 ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \+ \(\- cor0\.col2\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col0 + + - col2 + CAST ( NULL AS INTEGER ) AS col0, + 9 col0 FROM tab2 AS cor0 +---- +9 +NULL query II rowsort SELECT DISTINCT + 22 AS col1, ( 36 ) FROM tab1 AS cor0 @@ -9991,8 +10119,15 @@ SELECT + ( + ( - + ( - + MAX ( + col0 ) ) ) ) + - COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Expected - 81 # Datafusion - Expected - -99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, col1 AS col0 FROM tab0 cor0 +---- +-10 +-47 +-99 +1 +21 +81 query I rowsort label-1650 SELECT col0 / col0 / col0 AS col2 FROM tab1 @@ -10164,8 +10299,15 @@ NULL # Datafusion - Expected - 40 # Datafusion - Expected - 5025 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ cor0\.col1 \* cor0\.col0 \+ Int64\(\-75\) AS col2" at position 0 and "cor0\.col2 \+ cor0\.col1 / Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 + col1 * + col0 + + - 75 AS col2, + col2 + col1 / + 92 AS col2 FROM tab2 AS cor0 +---- +23 +2317 +40 +4917 +5025 +58 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 74 + + col1 IS NULL @@ -10268,8 +10410,15 @@ SELECT DISTINCT 1 * 87 AS col1 FROM tab1 # Datafusion - Expected - 870 # Datafusion - Expected - NULL # Datafusion - Expected - 9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- tab0\.col0\) \* \(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col0, - col0 * - col2 col0 FROM tab0 +---- +705 +870 +9603 +NULL +NULL +NULL query I rowsort label-1692 SELECT ALL - 90 * + COUNT ( * ) FROM tab0 @@ -10449,8 +10598,11 @@ SELECT col0 * 52 * + + 15 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(92\) \+ \(\- Int64\(16\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col2, 92 + - ( + + 16 ) AS col2 FROM tab1 +---- +76 +NULL query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT + + col1 >= - + col0 * - col1 @@ -10484,8 +10636,11 @@ SELECT ALL + COUNT ( * ) * 11 * - 3 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, 12 AS col1 FROM tab2 AS cor0 +---- +12 +3 query III rowsort SELECT * FROM tab0 cor0 WHERE NOT + 67 * col0 + + 34 <> NULL @@ -11218,8 +11373,15 @@ SELECT DISTINCT + ( + + 92 ) * + col1 FROM tab0 # Datafusion - Expected - 25 # Datafusion - Expected - 1 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 / tab2\.col1 AS col1" at position 0 and "Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 / + + ( + col1 ) AS col1, ( + + 25 ) col1 FROM tab2 +---- +0 +0 +1 +25 +25 +25 query III rowsort SELECT * FROM tab2 WHERE NOT - 60 IS NULL @@ -11519,8 +11681,11 @@ SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- tab2\.col0\)\) AS col2" at position 0 and "Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( ALL - col0 ) AS col2, - 12 AS col2 FROM tab2 +---- +-12 +-46 query I rowsort SELECT + col2 + - + 12 col1 FROM tab1 @@ -12653,8 +12818,12 @@ SELECT - 17 + - + col1 + - col0 / - - 4 * - ( - col2 ) col0 FROM tab1 AS cor0 WH # Datafusion - Expected - 17 # Datafusion - Expected - 3 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 17 AS col0, COUNT ( * ) AS col1, 0 AS col0 FROM tab1 cor0 WHERE 79 + - - 19 + - col0 IS NOT NULL +---- +0 +17 +3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 @@ -12663,8 +12832,15 @@ SELECT DISTINCT 17 AS col0, COUNT ( * ) AS col1, 0 AS col0 FROM tab1 cor0 WHERE # Datafusion - Expected - -21 # Datafusion - Expected - -30 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col0" at position 0 and "Int64\(\-21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 30 AS col0, - 21 AS col0 FROM tab1 AS cor0 +---- +-21 +-21 +-21 +-30 +-30 +-30 query II rowsort SELECT 44, col0 * 83 AS col1 FROM tab0 AS cor0 @@ -13438,8 +13614,15 @@ SELECT - col1 / - 97 * - 85 FROM tab1 AS cor0 WHERE NOT - 67 NOT BETWEEN + 50 * # Datafusion - Expected - 64 # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- Int64\(\-92\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) * - - 92 AS col1, col0 AS col1 FROM tab2 AS cor0 +---- +46 +64 +75 +NULL +NULL +NULL query I rowsort label-2220 SELECT ALL COUNT ( * ) * + 4 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL @@ -14179,8 +14362,11 @@ SELECT ALL - col0, + 78 * - col1 AS col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "min\(Int64\(\-10\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, MIN ( + - 10 ) AS col2 FROM tab2 AS cor0 +---- +-10 +3 query II rowsort SELECT + col0 AS col2, 26 + - - col2 FROM tab2 cor0 @@ -15589,8 +15775,15 @@ SELECT - 64, col0 FROM tab2 # Datafusion - Expected - 1927 # Datafusion - Expected - -99 # Datafusion - Expected - 4059 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "tab0\.col2 \* Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, col2 * + 41 col1 FROM tab0 +---- +-10 +-47 +-99 +1927 +4059 +410 query I rowsort label-2569 SELECT - MAX ( ALL + col2 ) AS col2 FROM tab1 @@ -16791,8 +16984,11 @@ SELECT - col0 * ( - + 6 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "\(\- max\(Int64\(87\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 col2, - MAX ( + ( + 87 ) ) AS col2 FROM tab0 +---- +-87 +44 query I rowsort SELECT ALL + ( + - col0 ) AS col0 FROM tab2 cor0 @@ -17219,8 +17415,15 @@ SELECT + 73 * COUNT ( * ) FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( col1 ), col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-2837 SELECT ALL + SUM ( ALL + col1 ) FROM tab0 @@ -17282,8 +17485,15 @@ SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 5 # Datafusion - Expected - -4417 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* \(\- tab2\.col2\) \- tab2\.col1 AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 * - col2 - + col1 AS col1, + 5 AS col1 FROM tab2 +---- +-1776 +-3077 +-4417 +5 +5 +5 query I rowsort label-2848 SELECT COUNT ( * ) * + COUNT ( * ) * 80 * + 36 AS col0 FROM tab2 AS cor0 @@ -17328,8 +17538,15 @@ SELECT ALL col0 FROM tab0 WHERE NULL IS NOT NULL # Datafusion - Expected - 5 # Datafusion - Expected - 91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, col1 AS col2 FROM tab1 +---- +14 +47 +5 +51 +85 +91 query I rowsort label-2855 SELECT + MIN ( DISTINCT + 85 ) AS col0 FROM tab0 @@ -18146,8 +18363,15 @@ SELECT ALL + COUNT ( DISTINCT 49 ) AS col2 FROM tab0 # Datafusion - Expected - 64 # Datafusion - Expected - 58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, col0 AS col1 FROM tab2 +---- +23 +40 +46 +58 +64 +75 query I rowsort SELECT ALL col2 FROM tab2 WHERE NULL <> NULL @@ -18156,8 +18380,11 @@ SELECT ALL col2 FROM tab2 WHERE NULL <> NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(DISTINCT tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, + COUNT ( DISTINCT + + col2 ) AS col2 FROM tab2 +---- +3 +3 query II rowsort SELECT + + col0, + 14 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL @@ -18342,8 +18569,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 12 AS col0, COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +-9 +12 query I rowsort SELECT + ( + + col2 ) * - + 29 FROM tab2 AS cor0 @@ -18548,8 +18778,15 @@ SELECT DISTINCT + col1 * + 23 FROM tab1 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - NULL # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- \(\- \(\- tab1\.col0\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, - ( - - col0 ) AS col1 FROM tab1 +---- +-51 +-85 +-91 +NULL +NULL +NULL query I rowsort SELECT ALL + 58 + - 89 * - col1 + + col1 AS col0 FROM tab0 @@ -18691,8 +18928,11 @@ 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\(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\. +query RI valuesort SELECT DISTINCT + CAST ( NULL AS FLOAT8 ) + - - COUNT ( * ) AS col1, 70 + + MIN ( DISTINCT + ( - col1 ) ) AS col1 FROM tab0 cor0 +---- +-11 +NULL query I rowsort SELECT + 20 * col1 + - 24 AS col0 FROM tab2 AS cor0 @@ -19855,8 +20095,15 @@ SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL # Datafusion - Expected - -75 # Datafusion - Expected - -75 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ \(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 2 + - col1 col1, - col0 col1 FROM tab2 AS cor0 +---- +-46 +-49 +-64 +-65 +-75 +-75 query II rowsort label-3280 SELECT - CAST ( NULL AS INTEGER ) + + 50, 47 + + - col2 AS col1 FROM tab1 AS cor0 @@ -20732,8 +20979,11 @@ SELECT * FROM tab1 cor0 WHERE 12 <> + col1 + col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 49 AS col1 FROM tab1 AS cor0 +---- +3 +49 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT 80 * col1 * - 24 IS NULL @@ -20754,8 +21004,11 @@ SELECT - CAST ( - - 41 AS INTEGER ) * - CAST ( + col0 AS INTEGER ) FROM tab0 cor # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(3\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) * - + 3 AS col0 FROM tab1 AS cor0 +---- +-9 +NULL query I rowsort label-3437 SELECT + MAX ( ALL col1 ) - - + 34 + SUM ( col1 ) / 60 FROM tab1 AS cor0 @@ -20862,8 +21115,10 @@ SELECT - col0 col1, col2 * + col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to ded417f0ca98cfd6c0fab66743d7ebb8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(59\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - + 59 AS col0, col2 AS col0, + col0 * + + col0 AS col0 FROM tab2 AS cor0 +---- +9 values hashing to c9ca30f04dbd9d60ffdaea01b4a064fd query I rowsort SELECT DISTINCT + 1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 @@ -21991,8 +22246,15 @@ SELECT + + 74 + - + COUNT ( + col2 ) + + - 69 + - 55 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 13 # Datafusion - Expected - 2724 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* cor0\.col2 \+ Int64\(\-2\) \- cor0\.col2 AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 48 * col2 + - 2 - + + col2 AS col1, + 13 AS col1 FROM tab2 AS cor0 +---- +1079 +13 +13 +13 +1878 +2724 query II rowsort SELECT DISTINCT 7 + + - col1 AS col0, col0 AS col2 FROM tab1 cor0 WHERE 41 BETWEEN NULL AND NULL @@ -22792,8 +23054,9 @@ SELECT + 93 + - COUNT ( * ) FROM tab0 cor0 90 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, col2 FROM tab1 WHERE ( + col1 ) <= col1 - col1 * + col0 +---- query I rowsort SELECT ALL - 74 * - - col1 * + - col1 AS col2 FROM tab1 @@ -22931,8 +23194,11 @@ 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\(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\. +query II valuesort SELECT ALL - 39 / - - COUNT ( * ) AS col2, MAX ( DISTINCT - - col0 ) AS col2 FROM tab1 +---- +-13 +91 query I rowsort SELECT DISTINCT 35 AS col0 FROM tab2 WHERE col0 IN ( - col2 * + 2, + 65 * 0 * + 13, col2 ) @@ -23387,8 +23653,15 @@ SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col0 - col0 + + col2 > NULL # Datafusion - Expected - -429 # Datafusion - Expected - 75 # Datafusion - Expected - -627 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(11\) \+ cor0\.col2 \* Int64\(\-11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col1, 11 + + col2 * - 11 AS col1 FROM tab2 AS cor0 +---- +-242 +-429 +-627 +46 +64 +75 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 82 * col2 - col0 <= NULL @@ -23718,8 +23991,15 @@ SELECT DISTINCT - 34 + col0 FROM tab2 # Datafusion - Expected - -68 # Datafusion - Expected - 82 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 82 AS col2, - col2 AS col2 FROM tab1 cor0 +---- +-59 +-68 +-96 +82 +82 +82 query I rowsort label-3936 SELECT DISTINCT - + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0 @@ -24355,8 +24635,15 @@ SELECT - ( - SUM ( ALL + col0 ) ) FROM tab0 # Datafusion - Expected - -21 # Datafusion - Expected - NULL # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \+ CAST\(tab2\.col2 AS Int32\) \* tab2\.col2 \+ Int64\(94\) AS col0" at position 0 and "tab2\.col1 \+ \(\- Int64\(88\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + CAST ( NULL AS FLOAT8 ) + CAST ( col2 AS INTEGER ) * col2 + 94 AS col0, col1 + - ( + 88 ) AS col0 FROM tab2 +---- +-11 +-21 +-37 +NULL +NULL +NULL query I rowsort SELECT col0 + col2 + - 56 col0 FROM tab0 @@ -24672,8 +24959,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), COUNT ( * ) FROM tab1 +---- +3 +3 query I rowsort SELECT ALL col2 AS col1 FROM tab0 WHERE + + col0 IS NULL @@ -25087,8 +25377,11 @@ SELECT ALL MAX ( CAST ( col1 AS INTEGER ) ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + - 47 ) AS col2, COUNT ( * ) AS col2 FROM tab0 +---- +-47 +3 query I rowsort SELECT ALL 99 + ( + 69 ) col2 FROM tab0 @@ -25235,8 +25528,11 @@ SELECT DISTINCT - 48 + - 96 AS col2 FROM tab1 WHERE NOT + col1 + col1 IS NOT NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -2880 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "max\(cor0\.col2\) \* Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, ( + MAX ( col2 ) ) * - 30 AS col2 FROM tab1 cor0 +---- +-2880 +3 query I rowsort label-4186 SELECT - ( - COUNT ( * ) ) * - 71 FROM tab2 AS cor0 @@ -25815,8 +26111,15 @@ SELECT ALL SUM ( ALL + + 3 ) FROM tab1 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 84 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 84 AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +10 +47 +84 +84 +84 +99 query I rowsort label-4280 SELECT ALL - + MAX ( + col0 ) FROM tab1 cor0 @@ -26523,8 +26826,15 @@ SELECT CAST ( - ( 92 ) AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL # Datafusion - Expected - 99 # Datafusion - Expected - 86 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ Int64\(65\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + + 65 AS col0, + col2 AS col0 FROM tab0 cor0 +---- +10 +146 +47 +66 +86 +99 query II rowsort SELECT ALL col1 AS col1, - col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL @@ -26776,8 +27086,11 @@ SELECT ALL 88 / - col1 AS col1 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 "\(\- Int64\(3\)\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + 3 ) AS col1, 83 AS col1 FROM tab0 +---- +-3 +83 query I rowsort label-4441 SELECT ALL ( + ( COUNT ( * ) ) ) col0 FROM tab2 @@ -27896,8 +28209,15 @@ SELECT + - 40 * + col0 FROM tab1 cor0 # Datafusion - Expected - 3364 # Datafusion - Expected - 77 # Datafusion - Expected - 1600 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col2 \* \(\- \(\- cor0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col2, col2 * - - col2 AS col2 FROM tab2 AS cor0 +---- +1600 +3364 +51 +529 +67 +77 query II rowsort SELECT - col1 * + col0 + + col1 * - col2, col1 AS col2 FROM tab1 AS cor0 @@ -28650,8 +28970,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) > 69 # Datafusion - Expected - -47 # Datafusion - Expected - -99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "\(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col1, - col2 AS col1 FROM tab0 +---- +-10 +-10 +-47 +-47 +-99 +-99 query I rowsort label-4752 SELECT ALL col0 * - CAST ( NULL AS INTEGER ) / - 6 / - ( + col0 ) AS col0 FROM tab2 @@ -29549,8 +29876,15 @@ SELECT + SUM ( - 54 ) * 32 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL # Datafusion - Expected - -190 # Datafusion - Expected - -50 # Datafusion - Expected - -1920 -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\) \+ cor0\.col1 \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 50 AS col1, - 93 + col1 * - + col0 AS col1 FROM tab0 AS cor0 +---- +-1308 +-190 +-1920 +-50 +-50 +-50 query I rowsort label-4906 SELECT ALL COUNT ( * ) + MIN ( col1 ) * 88 AS col1 FROM tab0 @@ -29624,8 +29958,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) - - + 62 AS col1, - 63 col1 FROM tab0 +---- +-63 +59 query I rowsort SELECT ALL col2 - - + 63 FROM tab2 @@ -29746,8 +30083,15 @@ SELECT - col0 / 21 AS col1, - col2 * col2 AS col2 FROM tab1 # Datafusion - Expected - -5015 # Datafusion - Expected - 91 # Datafusion - Expected - -6188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "\(\- tab1\.col0\) \* tab1\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col2, - col0 * + col2 col2 FROM tab1 +---- +-4896 +-5015 +-6188 +51 +85 +91 query I rowsort SELECT - 32 + - 14 AS col0 FROM tab2 @@ -30046,8 +30390,15 @@ NULL # Datafusion - Expected - 15 # Datafusion - Expected - 1 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) / Int64\(93\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 / + 93 col1, 15 AS col1 FROM tab0 AS cor0 +---- +0 +0 +1 +15 +15 +15 query II rowsort SELECT ALL + col1 AS col1, + col2 + col2 FROM tab1 AS cor0 @@ -30937,8 +31288,15 @@ SELECT DISTINCT + - 91 FROM tab0 AS cor0 WHERE NULL > + col1 # Datafusion - Expected - -10 # Datafusion - Expected - 7626 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ cor0\.col1 \+ cor0\.col2 \* Int64\(78\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col0 + + col1 + + + col2 * + + 78 AS col0, - col2 AS col0 FROM tab0 cor0 +---- +-10 +-47 +-99 +3732 +714 +7626 query I rowsort label-5133 SELECT ALL - CAST ( NULL AS INTEGER ) + - col0 FROM tab2 AS cor0 @@ -31036,8 +31394,11 @@ SELECT ALL col0 / + + col1, + ( col2 ) AS col2, + + col0 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 76 col0, 16 AS col0 FROM tab1 +---- +16 +76 query I rowsort SELECT DISTINCT 50 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 @@ -31772,8 +32133,15 @@ SELECT ALL * FROM tab0 WHERE NOT + 32 NOT IN ( 66 ) # Datafusion - Expected - -680 # Datafusion - Expected - 97 # Datafusion - Expected - -6732 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "tab0\.col2 \* Int64\(\-68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, + col2 * - 68 AS col1 FROM tab0 +---- +-3196 +-6732 +-680 +15 +87 +97 query I rowsort label-5275 SELECT + COUNT ( * ) - 44 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 @@ -31940,8 +32308,15 @@ SELECT 86 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - 2002 # Datafusion - Expected - 96 # Datafusion - Expected - 1122 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "CAST\(\(\- cor0\.col0\) AS Int32\) \* Int64\(\-22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 col1, + CAST ( - col0 AS INTEGER ) * + - 22 AS col1 FROM tab1 AS cor0 +---- +1122 +1870 +2002 +59 +68 +96 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * + - col1 - - + 75 IS NOT NULL @@ -32946,8 +33321,15 @@ SELECT SUM ( - col1 ) * - 55 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col2, col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-5470 SELECT - MIN ( ALL - - 76 ) AS col2 FROM tab1 AS cor0 @@ -33006,8 +33388,15 @@ SELECT DISTINCT COUNT ( * ) * - + MIN ( ALL col0 ) AS col1 FROM tab0 # Datafusion - Expected - 45 # Datafusion - Expected - 0 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 / Int64\(86\) AS col0" at position 0 and "Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 / 86 AS col0, 45 AS col0 FROM tab2 +---- +0 +0 +0 +45 +45 +45 query II rowsort SELECT col0 * - + 21 AS col2, - col1 FROM tab1 @@ -33644,8 +34033,12 @@ SELECT ALL + 98 AS col0, col2 FROM tab1 # Datafusion - Expected - 63 # Datafusion - Expected - 0 # Datafusion - Expected - 1003 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(63\)\) AS col1" at position 0 and "Int64\(0\) \* Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL MAX ( DISTINCT 63 ) AS col1, + 0 * + 47 AS col1, - + 17 * - MIN ( ALL col2 ) col0 FROM tab1 +---- +0 +1003 +63 query I rowsort label-5578 SELECT ALL - MIN ( + col2 ) AS col1 FROM tab2 WHERE NULL IN ( + - 98, col2 - + + ( col0 ), - col0, - col2 ) @@ -34982,8 +35375,15 @@ SELECT + + MIN ( ALL - ( + - col1 ) ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - 1 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / cor0\.col2 AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 / + + col2 col2, + ( - + ( col0 ) ) AS col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +0 +1 +1 query I rowsort label-5796 SELECT - MAX ( ALL - 91 ) FROM tab0 AS cor0 @@ -36242,8 +36642,15 @@ SELECT + 91 + + - col1 * + 62 FROM tab2 WHERE NULL IS NOT NULL # Datafusion - Expected - -68 # Datafusion - Expected - 96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab1\.col2 AS Int32\) AS col2" at position 0 and "\(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( col2 AS INTEGER ) AS col2, - col2 AS col2 FROM tab1 +---- +-59 +-68 +-96 +59 +68 +96 query I rowsort SELECT ALL ( + + col1 ) + col2 FROM tab0 @@ -36696,8 +37103,15 @@ SELECT col2 * ( + + 48 ) * 96 FROM tab0 AS cor0 # Datafusion - Expected - 23 # Datafusion - Expected - -96 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col1, 23 AS col1 FROM tab1 +---- +-59 +-68 +-96 +23 +23 +23 query I rowsort label-6077 SELECT ALL - MIN ( ALL 29 ) FROM tab0 @@ -36711,8 +37125,15 @@ SELECT ALL - MIN ( ALL 29 ) FROM tab0 # Datafusion - Expected - 67 # Datafusion - Expected - -58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, 67 AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +67 +67 +67 query II rowsort SELECT + 95, + ( + - 39 ) AS col1 FROM tab0 cor0 @@ -37955,8 +38376,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ), - COUNT ( * ) FROM tab0 +---- +-3 +-3 query I rowsort SELECT DISTINCT ( 42 ) / - col2 FROM tab0 WHERE NULL IS NOT NULL @@ -38097,8 +38521,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * + + col0 IS NULL # Datafusion - Expected - -5 # Datafusion - Expected - -6188 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 * col2 AS col0, - col1 AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-4896 +-5 +-5015 +-6188 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT - 40 NOT BETWEEN NULL AND + 82 @@ -38250,8 +38681,15 @@ SELECT DISTINCT - ( - + 97 ) AS col0 FROM tab2 cor0 # Datafusion - Expected - -76 # Datafusion - Expected - -618 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \- cor0\.col0 \* cor0\.col1 AS col2" at position 0 and "Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 - col0 * col1 AS col2, - 76 AS col2 FROM tab1 AS cor0 +---- +-366 +-4209 +-618 +-76 +-76 +-76 query I rowsort SELECT ALL - 48 - - - col1 AS col2 FROM tab1 AS cor0 @@ -38267,8 +38705,15 @@ SELECT ALL - 48 - - - col1 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -59 # Datafusion - Expected - 91 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "\(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, - col2 col1 FROM tab1 +---- +-59 +-68 +-96 +51 +85 +91 query I rowsort SELECT col0 * ( + - 21 ) AS col2 FROM tab1 @@ -38666,8 +39111,12 @@ SELECT * FROM tab1 AS cor0 WHERE - col2 IN ( + col2 + + + col1 ) # Datafusion - Expected - -63 # Datafusion - Expected - 99 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(63\)\) AS col1" at position 0 and "Int64\(41\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - + 63 AS col1, 99, + 41 col1 FROM tab1 AS cor0 +---- +-63 +41 +99 query I rowsort label-6400 SELECT DISTINCT - - MAX ( DISTINCT - 19 ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 + - 68 + + col0 * - col1 + col1 NOT BETWEEN 91 AND + col0 @@ -38704,8 +39153,15 @@ SELECT ALL ( - col0 ) + - col1 - - - 95 FROM tab1 # Datafusion - Expected - 18 # Datafusion - Expected - 99 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ tab0\.col2 AS col1" at position 0 and "Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 + + col2 AS col1, 18 AS col1 FROM tab0 +---- +151 +18 +18 +18 +62 +99 query I rowsort SELECT ALL - col0 * + col0 + col2 AS col1 FROM tab0 @@ -38831,8 +39287,11 @@ SELECT ALL col0 FROM tab2 WHERE NOT ( NOT col1 >= NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) * COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +3 +9 query I rowsort label-6425 SELECT - - ( - COUNT ( * ) ) col2 FROM tab2 AS cor0 @@ -39210,8 +39669,15 @@ SELECT ALL - CAST ( col0 AS INTEGER ) * + col1 col0 FROM tab1 # Datafusion - Expected - 85 # Datafusion - Expected - 96 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 96 col1, col0 AS col1 FROM tab1 +---- +51 +85 +91 +96 +96 +96 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + + 30 NOT BETWEEN ( - col2 ) AND - 11 ) @@ -39709,8 +40175,15 @@ SELECT + col1 FROM tab0 AS cor0 WHERE NOT + col2 - + 44 IS NULL # Datafusion - Expected - 22 # Datafusion - Expected - 6499 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* \(\- Int64\(\-97\)\) AS col0" at position 0 and "\(\- cor0\.col2\) \+ Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 * - - 97 AS col0, - col2 + + 45 AS col0 FROM tab2 AS cor0 +---- +-13 +22 +5 +6499 +6499 +6499 query I rowsort SELECT DISTINCT col0 + + - 99 AS col1 FROM tab2 @@ -40895,8 +41368,11 @@ 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\(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\. +query II valuesort SELECT - + ( - COUNT ( * ) ) AS col1, - 25 * - - COUNT ( ALL - 44 ) AS col1 FROM tab1 cor0 +---- +-75 +3 query I rowsort label-6762 SELECT DISTINCT COUNT ( * ) / - - COUNT ( * ) AS col0 FROM tab1 AS cor0 @@ -40936,8 +41412,15 @@ NULL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col1, + col1 FROM tab0 cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT - col1 * - 71 AS col2 FROM tab1 AS cor0 @@ -41172,8 +41655,9 @@ SELECT ALL - + col2 + - - col0 FROM tab1 cor0 26 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \+ Int64\(\-76\) AS col2" at position 0 and "cor0\.col2 \* cor0\.col1 \+ Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 + + - 76 AS col2, col2 * col1 + + 33 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL +---- query II rowsort label-6807 SELECT + - col2 col0, ( - 89 ) / - col0 AS col1 FROM tab2 AS cor0 @@ -41263,8 +41747,15 @@ SELECT + 53 - - col2 AS col1 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS FLOAT8 # Datafusion - Expected - 42 # Datafusion - Expected - 97 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "cor0\.col0 \+ \(\- Int64\(45\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( - - col0 ) col1, + col0 + - + 45 AS col1 FROM tab0 cor0 +---- +-30 +15 +42 +52 +87 +97 query I rowsort label-6821 SELECT ALL + 94 * + - MAX ( col2 ) FROM tab0 AS cor0 @@ -41939,8 +42430,15 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - 76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "cor0\.col1 \+ Int64\(27\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 76 AS col2, col1 + + 27 * CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 +---- +76 +76 +76 +NULL +NULL +NULL query I rowsort label-6926 SELECT - + 57 / - CAST ( NULL AS INTEGER ) + + col0 col1 FROM tab0 AS cor0 @@ -43604,8 +44102,11 @@ SELECT DISTINCT - col0 + + ( + ( - col2 ) ) * - col1 AS col2 FROM tab1 AS cor0 W # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - 48 -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\(37\)\) \* Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + ( - 85 ) ) AS col0, COUNT ( 37 ) * 16 AS col0 FROM tab2 cor0 +---- +-85 +48 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE 58 IS NULL @@ -45586,8 +46087,15 @@ SELECT DISTINCT + - 6 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) / tab1\.col1 \+ CAST\(NULL AS Float64\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - 96 / + col1 + CAST ( NULL AS FLOAT8 ) AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 +---- +NULL +NULL +NULL +NULL +NULL +NULL query I rowsort SELECT DISTINCT 64 AS col1 FROM tab2 AS cor0 WHERE + 9 BETWEEN + col0 + 32 AND NULL @@ -46356,8 +46864,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab0 +---- +3 +3 query I rowsort SELECT DISTINCT 84 * 89 - - col1 FROM tab0 WHERE NOT ( + ( - 70 ) BETWEEN NULL AND + col1 * col2 ) @@ -47424,8 +47935,15 @@ SELECT + 39 / + - COUNT ( * ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2, col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT DISTINCT 66 col1 FROM tab0 @@ -47861,8 +48379,15 @@ SELECT DISTINCT + COUNT ( ALL + - col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NUL # Datafusion - Expected - 87 # Datafusion - Expected - -97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * - + col0 AS col1, col0 AS col1 FROM tab0 AS cor0 +---- +-1215 +-1827 +-97 +15 +87 +97 query I rowsort label-7901 SELECT - - 43 * + COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0 @@ -48145,8 +48670,15 @@ SELECT ALL col1 + + col2 - ( 86 ) + - ( - - 82 ) + col1 - col2 * col2 * - + col2 # Datafusion - Expected - -4928 # Datafusion - Expected - 2 # Datafusion - Expected - -5025 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "\(\- tab2\.col1\) \* tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 AS col2, - col1 * col0 col2 FROM tab2 +---- +-2346 +-4928 +-5025 +2 +2 +2 query I rowsort SELECT 27 AS col0 FROM tab2 WHERE ( NOT + col0 IS NOT NULL ) @@ -48242,8 +48774,15 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - -9603 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* \(\- \(\- tab0\.col1\)\) \* \(\- tab0\.col2\) AS col2" at position 0 and "tab0\.col2 \* \(\- CAST\(NULL AS Int32\)\) \+ \(\- \(\- tab0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 * - - col1 * - col2 col2, col2 * - CAST ( NULL AS INTEGER ) + - - col0 AS col2 FROM tab0 +---- +-18270 +-57105 +-9603 +NULL +NULL +NULL query III rowsort SELECT ALL * FROM tab2 WHERE + col0 <> + col2 @@ -48416,8 +48955,15 @@ SELECT col0 col0, col2 - 91 FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - -75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, col0 AS col2 FROM tab2 +---- +-46 +-64 +-75 +46 +64 +75 query I rowsort label-7988 SELECT ALL 5 / - SUM ( DISTINCT + 65 ) FROM tab0 @@ -49244,8 +49790,15 @@ SELECT col1 * + - 22 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 69 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 69 AS col0, col1 AS col0 FROM tab0 AS cor0 +---- +1 +21 +69 +69 +69 +81 query I rowsort label-8126 SELECT MIN ( DISTINCT + col0 ) + + 23 + COUNT ( ALL + col0 - + col0 ) FROM tab2 AS cor0 @@ -50397,8 +50950,15 @@ SELECT 70 * - MIN ( ALL - - col0 ) FROM tab2 # Datafusion - Expected - 72 # Datafusion - Expected - -3626 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* Int64\(\-37\) AS col2" at position 0 and "Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 98 * - 37 AS col2, 72 col2 FROM tab2 AS cor0 +---- +-3626 +-3626 +-3626 +72 +72 +72 query I rowsort label-8319 SELECT CAST ( + 72 AS INTEGER ) * COUNT ( * ) FROM tab1 @@ -53150,8 +53710,15 @@ SELECT - + 26 + + col2 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - 81 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col0\) \- \(\- cor0\.col0\) \+ \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, - col0 - - ( + col0 ) + + - col0 AS col2 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +1 +21 +81 query III rowsort SELECT * FROM tab2 WHERE + col1 - - col2 >= col2 @@ -53378,8 +53945,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 65 AS col1, - COUNT ( * ) AS col1 FROM tab0 cor0 +---- +-3 +-65 query I rowsort SELECT DISTINCT - col1 col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL @@ -53850,8 +54420,15 @@ SELECT col1 / col0 + + col2 col2 FROM tab0 # Datafusion - Expected - 60 # Datafusion - Expected - -96 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, + 60 AS col0 FROM tab1 +---- +-59 +-68 +-96 +60 +60 +60 query I rowsort SELECT ALL - 13 + - + col2 - - - 55 FROM tab2 @@ -53896,8 +54473,15 @@ SELECT col0 * col0 * col1 * + col1 + - col1 col2 FROM tab1 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - 0 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) / cor0\.col2 AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 / + col2 AS col2, - col0 AS col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +0 +0 +0 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -54289,8 +54873,15 @@ SELECT col1 / - col1 + - col2 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 28 # Datafusion - Expected - NULL # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(54\)\) \* CAST\(NULL AS Int32\) AS col2" at position 0 and "cor0\.col1 \+ \(\- Int64\(82\)\) \- \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 54 * + CAST ( NULL AS INTEGER ) AS col2, + col1 + - + 82 - - col2 col2 FROM tab1 AS cor0 +---- +-18 +28 +33 +NULL +NULL +NULL query I rowsort SELECT - col1 * + + 4 col1 FROM tab2 @@ -54572,8 +55163,15 @@ SELECT - + ( - 90 ), col0 FROM tab1 cor0 # Datafusion - Expected - -87 # Datafusion - Expected - -81 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- \(\- cor0\.col1\)\) AS Int32\)\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( - - col1 AS INTEGER ) AS col2, ( - col0 ) AS col2 FROM tab0 cor0 +---- +-1 +-15 +-21 +-81 +-87 +-97 query I rowsort SELECT ALL + + 96 * - ( + col1 ) FROM tab0 cor0 WHERE - col1 - 36 = + 74 @@ -55212,8 +55810,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 66 * + + col2 ) = NULL # Datafusion - Expected - 75 # Datafusion - Expected - 77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 AS col1, col0 AS col1 FROM tab2 AS cor0 +---- +46 +51 +64 +67 +75 +77 query I rowsort label-9114 SELECT ALL + col2 * + CAST ( - 73 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL @@ -55519,8 +56124,15 @@ SELECT 78 * col0 AS col1, + 84 FROM tab2 # Datafusion - Expected - 1 # Datafusion - Expected - -99630 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* \(\- Int64\(82\)\) \* \(\- \(\- tab0\.col1\)\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 * - + ( + 82 ) * - - col1 AS col0, col1 AS col0 FROM tab0 +---- +-149814 +-7954 +-99630 +1 +21 +81 query III rowsort SELECT * FROM tab0 WHERE NOT + 93 * col1 BETWEEN - col2 AND NULL @@ -55546,8 +56158,9 @@ SELECT DISTINCT 58 col0 FROM tab1 AS cor0 58 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 10 AS col2, col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL +---- query I rowsort SELECT DISTINCT - - col1 * + - 41 FROM tab2 AS cor0 @@ -56184,8 +56797,15 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - 94 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ tab1\.col1 AS col0" at position 0 and "tab1\.col1 / tab1\.col0 \* Int64\(1\) \* CAST\(NULL AS Int32\) \- tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 + + + col1 AS col0, + col1 / + ( col0 ) * + 1 * + CAST ( NULL AS INTEGER ) - + col0 col0 FROM tab1 +---- +10 +28 +94 +NULL +NULL +NULL query I rowsort SELECT col2 + 56 AS col0 FROM tab1 @@ -56386,8 +57006,15 @@ SELECT DISTINCT COUNT ( * ) + - SUM ( DISTINCT col1 ) FROM tab1 # Datafusion - Expected - 7225 # Datafusion - Expected - 26 # Datafusion - Expected - 8281 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "CAST\(tab1\.col0 AS Int32\) \* CAST\(\(\- \(\- tab1\.col0\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 col0, CAST ( + col0 AS INTEGER ) * + CAST ( - - col0 AS INTEGER ) col0 FROM tab1 +---- +26 +26 +26 +2601 +7225 +8281 query I rowsort label-9298 SELECT ALL col1 / + 72 + 77 AS col1 FROM tab1 @@ -56678,8 +57305,15 @@ SELECT ALL + MAX ( ALL + col1 ) * + - 53 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 2128 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* \(\- Int64\(\-56\)\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 38 * - - 56 AS col0, + ( + col1 ) AS col0 FROM tab1 +---- +14 +2128 +2128 +2128 +47 +5 query I rowsort label-9344 SELECT DISTINCT - - SUM ( - 93 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL @@ -56800,8 +57434,15 @@ NULL # Datafusion - Expected - 563584 # Datafusion - Expected - NULL # Datafusion - Expected - 645952 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 / \(\- tab1\.col1\) \* CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\) \- tab1\.col1 AS col0" at position 0 and "Int64\(34\) \+ tab1\.col0 \* Int64\(\-78\) \* \(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 / + - col1 * CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) - col1 AS col0, 34 + col0 * + - 78 * + - col0 AS col0 FROM tab1 +---- +202912 +563584 +645952 +NULL +NULL +NULL query I rowsort SELECT - col0 + - col2 + 84 + col1 FROM tab1 WHERE NULL IS NOT NULL @@ -58096,8 +58737,11 @@ SELECT DISTINCT - COUNT ( * ) + + MIN ( + col0 ) AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -198 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-2\)\)\) \* \(\- Int64\(33\)\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - SUM ( + - 2 ) * - + 33 AS col2, 49 AS col2 FROM tab2 AS cor0 +---- +-198 +49 query I rowsort SELECT ALL + col0 * - - 65 FROM tab2 AS cor0 @@ -58737,8 +59381,15 @@ SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + + col0 ) # Datafusion - Expected - 25 # Datafusion - Expected - NULL # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* cor0\.col1 \+ cor0\.col2 \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(36\) \+ Int64\(\-11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) * col1 + col2 * CAST ( NULL AS INTEGER ) AS col1, 36 + - 11 AS col1 FROM tab2 AS cor0 +---- +25 +25 +25 +NULL +NULL +NULL query I rowsort SELECT DISTINCT + ( + 82 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 @@ -59027,8 +59678,15 @@ SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE NULL = NULL # Datafusion - Expected - -58 # Datafusion - Expected - -3773 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* Int64\(49\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * + 49 AS col1, - col2 AS col1 FROM tab2 AS cor0 +---- +-23 +-2499 +-3283 +-3773 +-40 +-58 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 = + - col1 @@ -59349,8 +60007,15 @@ SELECT DISTINCT 4 + + COUNT ( * ) + 84 FROM tab2 # Datafusion - Expected - 81 # Datafusion - Expected - -9801 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \+ \(\- cor0\.col1\) \+ cor0\.col2 \* \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 + - col1 + col2 * - col2 col2, col1 AS col2 FROM tab0 AS cor0 +---- +-100 +-2209 +-9801 +1 +21 +81 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 21 IS NOT NULL @@ -59599,8 +60264,15 @@ SELECT DISTINCT COUNT ( * ) * + - 67 * - 56 + COUNT ( * ) + - - ( 84 ) - + COUNT # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col1, col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-9819 SELECT DISTINCT MIN ( DISTINCT col1 ) col0 FROM tab0 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_69.slt b/data/sqlite/random/aggregates/slt_good_69.slt index b7a6173..986da1b 100644 --- a/data/sqlite/random/aggregates/slt_good_69.slt +++ b/data/sqlite/random/aggregates/slt_good_69.slt @@ -361,8 +361,15 @@ SELECT ALL + col1 AS col1 FROM tab2 WHERE NULL IS NULL # Datafusion - Expected - 64 # Datafusion - Expected - 89 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 89 col1, col0 AS col1 FROM tab2 +---- +46 +64 +75 +89 +89 +89 query I rowsort label-56 SELECT ALL + COUNT ( * ) * - + COUNT ( * ) FROM tab2 @@ -889,8 +896,15 @@ NULL # Datafusion - Expected - 9 # Datafusion - Expected - 68 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- cor0\.col1\) \- cor0\.col1 AS col2" at position 0 and "Int64\(9\) \* cor0\.col0 / cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 + - col1 - + col1 AS col2, 9 * + ( col0 ) / + col0 AS col2 FROM tab1 AS cor0 +---- +-26 +49 +68 +9 +9 +9 query I rowsort SELECT DISTINCT - + 46 - + + col1 - + col1 AS col0 FROM tab0 AS cor0 @@ -981,8 +995,15 @@ SELECT ALL col1 - + col1 AS col1 FROM tab0 WHERE NOT NULL IS NULL # Datafusion - Expected - 63450 # Datafusion - Expected - 99 # Datafusion - Expected - 864270 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "Int64\(\-90\) \* \(\- tab0\.col0\) \* tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( col2 ) AS col0, - 90 * - col0 * col2 col0 FROM tab0 +---- +10 +47 +63450 +78300 +864270 +99 query I rowsort label-156 SELECT DISTINCT - ( + MAX ( + + 32 ) ) FROM tab2 AS cor0 @@ -1438,8 +1459,15 @@ SELECT col2 * + + 10 + - + col0 FROM tab2 # Datafusion - Expected - 163 # Datafusion - Expected - 0 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) \+ \(\- \(\- tab0\.col1\)\) AS col0" at position 0 and "Int64\(64\) \+ tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + - - col1 AS col0, 64 + + col2 AS col0 FROM tab0 +---- +0 +0 +0 +111 +163 +74 query I rowsort SELECT col2 + - 15 FROM tab1 @@ -1744,14 +1772,20 @@ SELECT DISTINCT 83 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) 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 II valuesort SELECT + 20 col2, MIN ( ( - col2 ) ) AS col2 FROM tab1 AS cor0 +---- +-96 +20 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 1340 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-20\) \* Int64\(\-67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, - 20 * - 67 AS col0 FROM tab2 AS cor0 +---- +1340 +3 query I rowsort SELECT DISTINCT - - ( + 50 ) * + - 79 FROM tab0 AS cor0 @@ -1870,8 +1904,11 @@ SELECT col0 + - 68 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -133 -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\(\-90\) \+ Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( col2 ) AS col0, - 90 + - 43 AS col0 FROM tab1 +---- +-133 +96 query I rowsort SELECT col1 + - col0 + + col1 FROM tab1 @@ -2363,8 +2400,15 @@ SELECT + COUNT ( + col0 ) AS col0 FROM tab0 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2, col2 AS col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT col2 * - - col0 AS col2 FROM tab2 AS cor0 @@ -3645,8 +3689,15 @@ SELECT ALL + MIN ( DISTINCT - col1 ) FROM tab2 # Datafusion - Expected - 90 # Datafusion - Expected - 6734 # Datafusion - Expected - 138 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* Int64\(74\) AS col2" at position 0 and "tab1\.col1 \+ tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * + 74 AS col2, col1 + + col0 AS col2 FROM tab1 +---- +138 +3774 +6290 +65 +6734 +90 query I rowsort SELECT + col2 * - - ( - col0 ) FROM tab2 @@ -3717,8 +3768,9 @@ SELECT * FROM tab0 AS cor0 WHERE ( NOT 92 IS NULL ) 9 values hashing to c4b42765dff94eaaa46040e537fb43b7 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 + + - col0 AS col1, 61 AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL +---- query III rowsort SELECT * FROM tab0 AS cor0 WHERE + 20 IS NOT NULL @@ -4002,8 +4054,15 @@ SELECT DISTINCT + ( - + 0 ) FROM tab2 AS cor0 # Datafusion - Expected - 81 # Datafusion - Expected - 5355 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-15\)\) \* \(\- \(\- \(\- \(\- cor0\.col1\)\)\)\) \- cor0\.col2 \* \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 15 * - - ( - - col1 ) - col2 * - col0 AS col1, 81 AS col1 FROM tab2 AS cor0 +---- +1823 +3715 +5355 +81 +81 +81 query I rowsort label-657 SELECT ALL + + CAST ( NULL AS INTEGER ) - + col0 AS col0 FROM tab2 AS cor0 @@ -4492,8 +4551,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 76 AS col1, - COUNT ( * ) * - 40 AS col1 FROM tab2 +---- +-76 +120 query I rowsort SELECT 84 * + 29 col2 FROM tab2 @@ -4701,8 +4763,15 @@ SELECT DISTINCT * FROM tab1 WHERE + 91 IS NULL # Datafusion - Expected - 194 # Datafusion - Expected - 96 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "tab0\.col1 \* tab0\.col0 / tab0\.col1 \+ tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 96 ) AS col2, + col1 * col0 / col1 + + col0 AS col2 FROM tab0 +---- +174 +194 +30 +96 +96 +96 query I rowsort SELECT ALL col2 / + col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( + col0 ) @@ -4835,8 +4904,15 @@ SELECT CAST ( + ( + COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE N # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, col0 FROM tab1 cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT col2 * + 62 * 4 AS col1 FROM tab2 AS cor0 @@ -5180,8 +5256,11 @@ SELECT ALL + col2 / - ( + - col0 ) - - col1 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 64 AS col2, COUNT ( * ) AS col2 FROM tab2 cor0 WHERE ( NULL ) < + + col1 * - - col2 +---- +-64 +0 query I rowsort SELECT DISTINCT + + 24 * - - col1 FROM tab1 AS cor0 @@ -5531,8 +5610,15 @@ SELECT col1, 23 AS col0 FROM tab2 # Datafusion - Expected - 85 # Datafusion - Expected - -91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col1, + col0 col1 FROM tab1 +---- +-51 +-85 +-91 +51 +85 +91 query I rowsort SELECT - col2 - + col1 col0 FROM tab1 @@ -6363,8 +6449,13 @@ SELECT - MAX ( - col1 ) * + + 87 AS col0 FROM tab1 # Datafusion - Expected - -47 # Datafusion - Expected - -35 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 35 AS col2, - col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 + + - 0 <= + col0 +---- +-35 +-35 +-47 +-99 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * - 27 * + - 6 + col2 < - - col2 + + col1 * - + col0 @@ -7096,8 +7187,9 @@ SELECT 33 + col2 AS col2 FROM tab1 92 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* Int64\(96\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * 96 col1, + col0 AS col1 FROM tab2 WHERE NOT - 23 IS NOT NULL +---- query I rowsort SELECT ( - + col2 ) + col0 * 99 AS col0 FROM tab2 @@ -7842,8 +7934,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 <> - + ( + col0 ) # Datafusion - Expected - -64 # Datafusion - Expected - 35 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 0 and "\(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 AS col2, - col0 AS col2 FROM tab2 +---- +-46 +-64 +-75 +35 +35 +35 query II rowsort label-1291 SELECT - CAST ( NULL AS INTEGER ), + col0 AS col0 FROM tab1 @@ -8909,8 +9008,15 @@ SELECT - COUNT ( * ) / + + 39 FROM tab1 WHERE col1 * 17 IS NOT NULL # Datafusion - Expected - 40 # Datafusion - Expected - -9586 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \* tab2\.col2 \+ Int64\(\-77\) \* Int64\(68\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * col2 + + - 77 * + 68 AS col1, col2 AS col1 FROM tab2 +---- +-6294 +-7796 +-9586 +23 +40 +58 query I rowsort SELECT DISTINCT ( col0 ) - + col0 + + 40 * + - col0 + + 21 + 94 * col2 AS col1 FROM tab2 AS cor0 @@ -8986,8 +9092,15 @@ SELECT DISTINCT - + 40 AS col2 FROM tab2 AS cor0 WHERE NULL IN ( - 88 + + 9, + ( # Datafusion - Expected - 389207 # Datafusion - Expected - -5 # Datafusion - Expected - 36125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col0\) \* cor0\.col0 \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - col1 ) col1, - col0 * + col0 * + - col1 AS col1 FROM tab1 cor0 +---- +-14 +-47 +-5 +36125 +36414 +389207 query III rowsort SELECT * FROM tab2 WHERE NOT - col0 + col1 BETWEEN NULL AND 90 @@ -9201,8 +9314,11 @@ SELECT COUNT ( - 68 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -249 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) * + 83 col2 FROM tab0 AS cor0 +---- +-249 +NULL query I rowsort SELECT ( + ( 54 ) ) FROM tab1, tab0 AS cor0 @@ -13491,8 +13607,15 @@ SELECT DISTINCT + MAX ( 31 ) AS col0 FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, col2 AS col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT col0 FROM tab0 WHERE NOT - col2 * - + col0 > - + col2 @@ -13633,8 +13756,15 @@ SELECT - ( - 85 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col2 \+ CAST\(NULL AS Int32\) \* cor0\.col1 \+ Int64\(99\) \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 AS col0, col2 + + + CAST ( NULL AS INTEGER ) * + col1 + + + 99 * + col2 AS col0 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +NULL +NULL +NULL query I rowsort label-2250 SELECT - + col0 * 82 / col2 - - col1 AS col0 FROM tab1 cor0 @@ -13703,8 +13833,15 @@ NULL # Datafusion - Expected - -29 # Datafusion - Expected - -810 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* Int64\(\-81\) AS col1" at position 0 and "tab0\.col1 \+ Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * - 81 AS col1, + col1 + - 30 AS col1 FROM tab0 +---- +-29 +-3807 +-8019 +-810 +-9 +51 query I rowsort label-2259 SELECT ALL - COUNT ( * ) + + MIN ( DISTINCT - col0 ) FROM tab2 @@ -14483,8 +14620,15 @@ SELECT * FROM tab0 WHERE NULL >= ( + col2 * 90 ) # Datafusion - Expected - 80 # Datafusion - Expected - 96 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, 80 AS col1 FROM tab1 +---- +59 +68 +80 +80 +80 +96 query I rowsort SELECT 85 - col1 FROM tab1 AS cor0 WHERE ( - col0 / col1 + 79 ) NOT IN ( col0 ) @@ -14627,8 +14771,15 @@ SELECT + col1 AS col0 FROM tab2 WHERE NOT NULL IN ( + col0 * - - col0 ) # Datafusion - Expected - -87 # Datafusion - Expected - -672210 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* tab0\.col2 \* \(\- tab0\.col0\) AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 70 * + col2 * - + col0 AS col2, - col0 AS col2 FROM tab0 +---- +-15 +-49350 +-60900 +-672210 +-87 +-97 query II rowsort label-2417 SELECT ALL - 62 col2, CAST ( NULL AS INTEGER ) FROM tab2 @@ -14670,8 +14821,11 @@ SELECT DISTINCT + 15 AS col2 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- Int64\(\-64\)\)\) AS col0" at position 0 and "Int64\(\-55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( - - 64 ) AS col0, - 55 AS col0 FROM tab0 AS cor0 +---- +-55 +3 query I rowsort label-2423 SELECT ALL - col1 * - col2 / - col2 FROM tab0 AS cor0 @@ -17214,8 +17368,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> - col2 # Datafusion - Expected - -660 # Datafusion - Expected - 21 # Datafusion - Expected - -6534 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(21\)\)\) / cor0\.col1 AS col0" at position 0 and "cor0\.col2 \* \(\- Int64\(66\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - + 21 ) / + col1 AS col0, col2 * - + 66 AS col0 FROM tab0 AS cor0 +---- +-3102 +-6534 +-660 +0 +1 +21 query I rowsort label-2839 SELECT DISTINCT - MIN ( DISTINCT col2 ) AS col2 FROM tab1 WHERE NULL < col0 @@ -17537,8 +17698,15 @@ SELECT ALL * FROM tab0 WHERE NOT NULL = - - 41 # Datafusion - Expected - 93 # Datafusion - Expected - NULL # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* tab1\.col2 AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) * col2 AS col2, 93 AS col2 FROM tab1 +---- +93 +93 +93 +NULL +NULL +NULL query I rowsort label-2892 SELECT SUM ( ALL - + 85 ) AS col2 FROM tab2 @@ -17752,8 +17920,15 @@ SELECT DISTINCT * FROM tab1 WHERE ( ( NULL ) >= NULL ) # Datafusion - Expected - -24 # Datafusion - Expected - -96 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "Int64\(\-24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, - 24 AS col1 FROM tab1 +---- +-24 +-24 +-24 +-59 +-68 +-96 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT col1 / - col0 NOT BETWEEN col2 + + + 12 AND + col1 + 78 + + - col1 @@ -18338,8 +18513,15 @@ SELECT ALL - COUNT ( * ), - MIN ( col2 ) + - - 17 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col2, ( + col2 ) FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-3021 SELECT ALL - CAST ( - + MIN ( - col1 ) AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + 65 IS NOT NULL ) @@ -18487,8 +18669,15 @@ SELECT * FROM tab0 AS cor0 WHERE - 8 IS NULL # Datafusion - Expected - -81 # Datafusion - Expected - 91 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, - 81 AS col2 FROM tab1 AS cor0 +---- +-81 +-81 +-81 +51 +85 +91 query II rowsort SELECT ALL - 70, + col2 AS col2 FROM tab1 cor0 @@ -19274,8 +19463,15 @@ SELECT * FROM tab2 AS cor0 WHERE - 18 IS NULL # Datafusion - Expected - -40 # Datafusion - Expected - 75 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 col1, - col2 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +46 +64 +75 query II rowsort SELECT - + col0 AS col2, + col1 AS col0 FROM tab2 AS cor0 @@ -19390,8 +19586,11 @@ SELECT + + col2, col1 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col0, ( - COUNT ( * ) ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 ) +---- +-9 +9 query III rowsort SELECT + col1 * + col0 AS col2, 24 AS col0, - - col0 AS col1 FROM tab1 @@ -20398,8 +20597,11 @@ SELECT + 3 * + 93 - - 8 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 414 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- sum\(Int64\(\-46\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * + - SUM ( - 46 ) AS col1 FROM tab2 +---- +414 +NULL query I rowsort label-3355 SELECT ALL + CAST ( NULL AS INTEGER ) * + col1 * col1 * + 4 FROM tab1 @@ -21111,8 +21313,15 @@ SELECT - + col0 + - 26 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 570 # Datafusion - Expected - -75 # Datafusion - Expected - 3686 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* \(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col0 \* Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 * - col1 AS col0, col0 * + 38 AS col0 FROM tab0 AS cor0 +---- +-1575 +-6075 +-75 +3306 +3686 +570 query I rowsort label-3477 SELECT ALL col1 * col1 * - + ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab0 AS cor0 @@ -21258,8 +21467,15 @@ SELECT 77 - - col1 FROM tab0 # Datafusion - Expected - -75 # Datafusion - Expected - -500 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* Int64\(51\) \+ \(\- \(\- cor0\.col2\)\) AS col2" at position 0 and "Int64\(\-75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 * + + 51 + - - col2 AS col2, - 75 col2 FROM tab0 cor0 +---- +-2350 +-4950 +-500 +-75 +-75 +-75 query I rowsort SELECT 41 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 @@ -21535,8 +21751,15 @@ SELECT + SUM ( - col2 ) * COUNT ( + - col2 ) FROM tab2 # Datafusion - Expected - 59 # Datafusion - Expected - 91 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, col2 AS col1 FROM tab1 AS cor0 +---- +51 +59 +68 +85 +91 +96 query I rowsort SELECT DISTINCT + - col1 * + + col1 + + + col1 + - ( - + col2 ) + + col2 + - col0 - col1 FROM tab2 AS cor0 @@ -21569,8 +21792,15 @@ SELECT DISTINCT + + col1 / col2 + - col1 FROM tab1 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 2162 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- \(\- cor0\.col1\)\) \- cor0\.col1 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 * - - col1 - + + col1 AS col1, + col0 AS col1 FROM tab1 AS cor0 +---- +182 +20 +2162 +51 +85 +91 query I rowsort label-3551 SELECT DISTINCT 49 / COUNT ( * ) FROM tab1 @@ -22540,8 +22770,15 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - 99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "tab0\.col0 / tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 col0, col0 / + col0 col0 FROM tab0 +---- +1 +1 +1 +10 +47 +99 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT - 92 * col0 * - - 31 >= NULL @@ -22955,8 +23192,15 @@ SELECT + col1 - + + ( - - 86 ) FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 0 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \+ \(\- \(\- tab1\.col0\)\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 + - - col0 AS col0, col1 AS col0 FROM tab1 +---- +0 +0 +0 +14 +47 +5 query I rowsort SELECT - col2 * - + col1 - col2 FROM tab2 @@ -23632,8 +23876,15 @@ SELECT ALL 21 + + + COUNT ( * ) AS col0 FROM tab0 # Datafusion - Expected - -39 # Datafusion - Expected - 5 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(\-39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col0, - 39 col0 FROM tab1 AS cor0 +---- +-39 +-39 +-39 +14 +47 +5 query I rowsort label-3886 SELECT ALL col0 + + + 14 + - 16 / ( + 96 ) AS col0 FROM tab1 AS cor0 @@ -23712,8 +23963,15 @@ SELECT DISTINCT ( ( ( - col2 ) ) ) * 76 * - + col2 AS col0 FROM tab0 # Datafusion - Expected - -59 # Datafusion - Expected - 91 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col2, - col2 AS col2 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +51 +85 +91 query II rowsort SELECT - col2 col0, col1 + col1 col2 FROM tab1 AS cor0 @@ -23776,8 +24034,15 @@ SELECT ALL 29 / + + col2 + col2 + - col2 * - col0 * col1 FROM tab1 # Datafusion - Expected - -1 # 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 "tab1\.col2 / \(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 60 col0, + col2 / ( - col2 ) AS col0 FROM tab1 +---- +-1 +-1 +-1 +60 +60 +60 query I rowsort SELECT ALL + ( 99 ) + + 35 * - 66 FROM tab0 @@ -24508,8 +24773,15 @@ SELECT SUM ( ALL - col2 ) col2 FROM tab2 AS cor0 # Datafusion - Expected - 7 # Datafusion - Expected - -890 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(\-89\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + ( + col2 ) * ( - 89 ) AS col0, + 7 AS col0 FROM tab0 AS cor0 +---- +-4183 +-8811 +-890 +7 +7 +7 query I rowsort label-4025 SELECT ALL + COUNT ( * ) * - + 92 FROM tab2 @@ -24527,8 +24799,15 @@ SELECT DISTINCT * FROM tab0 WHERE NOT - 19 IS NOT NULL # Datafusion - Expected - 33 # Datafusion - Expected - NULL # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col2, + 33 col2 FROM tab0 +---- +33 +33 +33 +NULL +NULL +NULL query III rowsort SELECT * FROM tab1 WHERE NOT + 58 * col1 IS NOT NULL @@ -25915,8 +26194,15 @@ SELECT ALL + 98, - col0 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 58 # Datafusion - Expected - -77 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col1, col2 AS col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +23 +40 +58 query I rowsort label-4261 SELECT + CAST ( - - 62 AS INTEGER ) FROM tab0 AS cor0 @@ -26095,8 +26381,15 @@ SELECT 50 * + COUNT ( ALL col2 ) AS col1 FROM tab2 # Datafusion - Expected - -64 # Datafusion - Expected - 58 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, - col0 AS col1 FROM tab2 +---- +-46 +-64 +-75 +23 +40 +58 query I rowsort SELECT ALL - 40 * - col0 FROM tab0 @@ -26840,8 +27133,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT + + col1 IN ( + ( + + col2 ), - 92 * + + c # Datafusion - Expected - 303242 # Datafusion - Expected - -20 # Datafusion - Expected - 348502 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col0" at position 0 and "Int64\(62\) \* tab2\.col1 \* Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 20 col0, 62 * + col1 * 73 AS col0 FROM tab2 +---- +-20 +-20 +-20 +230826 +303242 +348502 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1739 @@ -26850,8 +27150,15 @@ SELECT DISTINCT - 20 col0, 62 * + col1 * 73 AS col0 FROM tab2 # Datafusion - Expected - -85 # Datafusion - Expected - 518 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* Int64\(37\) AS col1" at position 0 and "\(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + 37 AS col1, - col0 AS col1 FROM tab1 +---- +-51 +-85 +-91 +1739 +185 +518 query III rowsort SELECT * FROM tab2 WHERE NOT col2 + - col1 IS NOT NULL @@ -27834,8 +28141,15 @@ SELECT ALL + - col0 * col1 * + col0 FROM tab0 AS cor0 # Datafusion - Expected - -105 # Datafusion - Expected - -58 # Datafusion - Expected - -134 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col1" at position 0 and "tab2\.col0 / \(\- tab2\.col0\) \- tab2\.col0 \- tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, col0 / - col0 - + + col0 - col2 AS col1 FROM tab2 +---- +-105 +-134 +-23 +-40 +-58 +-70 query I rowsort SELECT ALL col2 * + 50 + col0 + - - col2 col2 FROM tab1 @@ -28182,8 +28496,15 @@ SELECT * FROM tab0 cor0 WHERE NOT ( + col2 ) IS NULL # Datafusion - Expected - 91 # Datafusion - Expected - -96 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(44\) \- \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, 44 - - col1 AS col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +49 +58 +91 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 - 60 IS NULL @@ -28788,8 +29109,15 @@ SELECT DISTINCT + col1 FROM tab2 cor0 WHERE ( NOT + - col2 <> col2 - - col1 ) # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 col2, col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query II rowsort SELECT ALL - col2, col0 AS col1 FROM tab0 AS cor0 @@ -29834,8 +30162,15 @@ SELECT ALL + ( - ( - COUNT ( * ) ) ) FROM tab0 AS cor0 # Datafusion - Expected - -134 # Datafusion - Expected - -5634 # Datafusion - Expected - -154 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- cor0\.col1 \* CAST\(Int64\(74\) AS Int32\) AS col1" at position 0 and "\(\- cor0\.col1\) \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 - col1 * ( + ( CAST ( + 74 AS INTEGER ) ) ) AS col1, - col1 + - col1 AS col1 FROM tab2 AS cor0 +---- +-102 +-134 +-154 +-3728 +-4883 +-5634 query I rowsort label-4914 SELECT ALL CAST ( - 37 AS INTEGER ) AS col2 FROM tab1 AS cor0 @@ -31175,8 +31510,11 @@ SELECT DISTINCT 11 + + col1 - + col2 * + col2 * 1 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col1" at position 0 and "CAST\(Int64\(98\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 15 col1, CAST ( 98 AS INTEGER ) AS col1 FROM tab2 +---- +-15 +98 query III rowsort SELECT * FROM tab2 WHERE - col1 + col1 >= - + 88 @@ -32014,8 +32352,15 @@ SELECT ALL 61, - ( - + COUNT ( * ) ) AS col0 FROM tab1 # Datafusion - Expected - 71 # Datafusion - Expected - 99 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, 71 AS col0 FROM tab0 +---- +10 +47 +71 +71 +71 +99 query I rowsort label-5272 SELECT DISTINCT CAST ( - MIN ( - - col1 ) AS INTEGER ) col2 FROM tab0 AS cor0 @@ -32180,8 +32525,15 @@ SELECT DISTINCT MIN ( ALL - + col2 ) col0 FROM tab2 # Datafusion - Expected - 67 # Datafusion - Expected - -3886 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* \(\- tab2\.col2\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * - col2 AS col2, 67 AS col2 FROM tab2 +---- +-1173 +-3080 +-3886 +67 +67 +67 query I rowsort label-5297 SELECT + 83 * + col1 / + col1 + col0 * + 34 + - 36 + - col1 * - ( + 17 ) FROM tab2 AS cor0 @@ -32946,8 +33298,11 @@ SELECT ALL - ( + col2 ) / - + col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -227 # Datafusion - Expected - 4466 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(cor0\.col0\)\) AS col2" at position 0 and "Int64\(77\) \* Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - SUM ( col0 ) ) AS col2, 77 * 58 col2 FROM tab1 AS cor0 +---- +-227 +4466 query I rowsort label-5420 SELECT + SUM ( - - col2 ) FROM tab0 cor0 @@ -33536,8 +33891,15 @@ SELECT ALL - SUM ( DISTINCT - col2 ) AS col0, 6 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - -66 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \- cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 - + col0 AS col1, - col0 AS col1 FROM tab1 AS cor0 +---- +-26 +-51 +-60 +-66 +-85 +-91 query I rowsort SELECT DISTINCT col2 * - - col2 + + 38 + + col1 FROM tab1 AS cor0 @@ -34422,8 +34784,15 @@ SELECT ALL + MIN ( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 29 # Datafusion - Expected - 98 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 98 AS col0, 29 AS col0 FROM tab1 cor0 +---- +29 +29 +29 +98 +98 +98 query I rowsort label-5661 SELECT - 26 / - - ( - col2 ) FROM tab2 AS cor0 @@ -34570,8 +34939,15 @@ SELECT ALL MAX ( - col0 ) col0 FROM tab1 AS cor0 # Datafusion - Expected - -90 # Datafusion - Expected - 99 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 AS col0, - 90 col0 FROM tab0 AS cor0 +---- +-90 +-90 +-90 +10 +47 +99 query II rowsort label-5687 SELECT - + 77, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 @@ -35062,8 +35438,15 @@ SELECT + MIN ( - col2 ) col0 FROM tab2 AS cor0 # Datafusion - Expected - 81 # Datafusion - Expected - -99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, + col1 AS col2 FROM tab0 cor0 +---- +-10 +-47 +-99 +1 +21 +81 query I rowsort SELECT DISTINCT 29 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL @@ -35231,8 +35614,11 @@ SELECT DISTINCT + 36 - col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7029 # Datafusion - Expected - -348 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* Int64\(99\) AS col0" at position 0 and "\(\- min\(cor0\.col0\)\) \+ \(\- Int64\(99\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 71 * + 99 AS col0, - MIN ( + col0 ) + - + 99 * + + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL +---- +-348 +7029 query I rowsort SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE + col2 + col2 * + col0 + - col0 IS NULL @@ -35272,8 +35658,15 @@ SELECT col2 * - + 12 AS col1, - col1 + 3 * + 45 FROM tab2 AS cor0 WHERE NOT NULL # Datafusion - Expected - 47 # Datafusion - Expected - -47 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 47 AS col0, col1 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NULL +---- +-47 +-47 +-47 +14 +47 +5 query I rowsort label-5797 SELECT ALL - + SUM ( DISTINCT col0 ) FROM tab2 AS cor0 @@ -36324,8 +36717,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> - - 46 * col0 # Datafusion - Expected - 80 # Datafusion - Expected - 0 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 / \(\- tab2\.col1\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 / - col1 AS col1, 80 AS col1 FROM tab2 +---- +0 +0 +0 +80 +80 +80 query I rowsort label-5968 SELECT COUNT ( * ) col1 FROM tab2 WHERE NOT 46 IS NOT NULL @@ -37066,8 +37466,15 @@ SELECT col2 + - 97 AS col0 FROM tab0 cor0 # Datafusion - Expected - 87 # Datafusion - Expected - -4582 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \- Int64\(\-96\) \* Int64\(\-48\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 26 - - 96 * + - 48 AS col2, col0 AS col2 FROM tab0 cor0 +---- +-4582 +-4582 +-4582 +15 +87 +97 query I rowsort label-6097 SELECT ALL - 39 / + col2 FROM tab2 AS cor0 @@ -37124,8 +37531,11 @@ SELECT + CAST ( + + 29 AS INTEGER ) AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + ( COUNT ( * ) ) AS col2 FROM tab1 +---- +3 +3 query II rowsort SELECT col1 AS col1, + col0 * + + col0 * - col1 col0 FROM tab2 @@ -38133,8 +38543,15 @@ SELECT 40 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL # Datafusion - Expected - 88 # Datafusion - Expected - -53 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(53\)\) AS col2" at position 0 and "cor0\.col2 \- \(\- Int64\(29\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 53 AS col2, col2 - - + 29 AS col2 FROM tab1 AS cor0 +---- +-53 +-53 +-53 +125 +88 +97 query I rowsort label-6269 SELECT ALL - - ( - - COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -38354,8 +38771,15 @@ SELECT + - MAX ( - - col0 ) FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, + col1 FROM tab1 cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-6307 SELECT ALL + MIN ( DISTINCT - col2 ) FROM tab2 AS cor0 @@ -38734,8 +39158,15 @@ SELECT - col0 + + col1 col0 FROM tab0 cor0 WHERE NOT + 24 - col0 <> 69 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 FROM tab2 WHERE NOT NULL IS NOT NULL +---- +46 +46 +64 +64 +75 +75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 @@ -38939,8 +39370,15 @@ SELECT DISTINCT + SUM ( DISTINCT - 41 ) FROM tab1 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - -91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0, - col0 FROM tab1 AS cor0 +---- +-51 +-51 +-85 +-85 +-91 +-91 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT col2 < + + 60 * col1 + + col2 + - - 70 @@ -39203,8 +39641,15 @@ SELECT DISTINCT - ( + 91 ) / - + col2 AS col1 FROM tab1 # Datafusion - Expected - 1 # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) / Int64\(74\) AS col2" at position 0 and "tab0\.col0 / tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 / + 74 AS col2, col0 / + col0 AS col2 FROM tab0 +---- +-1 +0 +0 +1 +1 +1 query I rowsort label-6447 SELECT ALL 4 * ( CAST ( NULL AS INTEGER ) ) FROM tab2 @@ -40149,8 +40594,15 @@ SELECT ALL - MIN ( + - col0 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col0, col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT - 23 + + - col0 AS col1 FROM tab1 AS cor0 @@ -40295,8 +40747,15 @@ SELECT - - col0 * - 46 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - -5 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col1, col2 AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +59 +68 +96 query I rowsort SELECT + - 41 AS col0 FROM tab2 AS cor0 @@ -40644,8 +41103,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col2, + 78 - + 71 AS col2 FROM tab0 cor0 +---- +-3 +7 query I rowsort SELECT + + 40 * + + col2 FROM tab1 AS cor0 @@ -40748,8 +41210,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col2, + col2 AS col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query II rowsort SELECT ALL + 63, + 49 AS col2 FROM tab1 AS cor0 @@ -40838,8 +41307,15 @@ SELECT ALL - 73 + 98 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - -68 # Datafusion - Expected - 31 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "\(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 31 col2, - col2 AS col2 FROM tab1 WHERE ( NULL ) IS NULL +---- +-59 +-68 +-96 +31 +31 +31 query I rowsort SELECT DISTINCT - - ( - 78 ) AS col2 FROM tab0 AS cor0 @@ -40857,8 +41333,15 @@ SELECT - col1 FROM tab2 AS cor0 WHERE NOT NULL < NULL # Datafusion - Expected - NULL # Datafusion - Expected - -9 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col1" at position 0 and "cor0\.col2 \+ \(\- CAST\(NULL AS Int32\)\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 9 AS col1, col2 + - ( + CAST ( NULL AS INTEGER ) ) * - + ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 +---- +-9 +-9 +-9 +NULL +NULL +NULL query I rowsort SELECT DISTINCT - + 27 AS col2 FROM tab1 cor0 @@ -40920,8 +41403,15 @@ SELECT - col2 * col1 * col1 col2 FROM tab2 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, col0 AS col1 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query II rowsort label-6739 SELECT ALL + 3 AS col2, + COUNT ( ALL + 9 ) FROM tab2 @@ -41013,8 +41503,15 @@ SELECT DISTINCT ( + - COUNT ( * ) ) AS col2 FROM tab1 # Datafusion - Expected - 46080 # Datafusion - Expected - -4913 # Datafusion - Expected - 78300 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \* tab2\.col2 \- \(\- tab2\.col0\) AS col0" at position 0 and "tab2\.col2 \* tab2\.col0 \* Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 86 * + col2 - - col0 AS col0, + col2 * col0 * 18 AS col0 FROM tab2 +---- +-1932 +-3376 +-4913 +19044 +46080 +78300 query I rowsort label-6755 SELECT col0 / - 5 FROM tab1 @@ -41064,8 +41561,9 @@ SELECT DISTINCT + 99 FROM tab1 AS cor0 WHERE ( NULL ) < NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 AS col2, col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL +---- query I rowsort label-6763 SELECT SUM ( DISTINCT - 82 ) FROM tab1 AS cor0 @@ -41491,8 +41989,15 @@ SELECT ALL - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 WH # Datafusion - Expected - -1 # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- tab1\.col1\) \+ \(\- Int64\(57\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "tab1\.col2 / \(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) + - col1 + - + 57 * - + CAST ( NULL AS INTEGER ) AS col2, col2 / - col2 AS col2 FROM tab1 +---- +-1 +-1 +-1 +NULL +NULL +NULL query I rowsort label-6835 SELECT ALL COUNT ( * ) + 26 AS col0 FROM tab0 @@ -42448,8 +42953,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NOT 4 IS NULL # Datafusion - Expected - -67 # Datafusion - Expected - -77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col1 col2, - col1 AS col2 FROM tab2 AS cor0 +---- +-51 +-51 +-67 +-67 +-77 +-77 query I rowsort label-6997 SELECT ALL SUM ( ALL + 30 ) AS col2 FROM tab2 AS cor0 @@ -42786,8 +43298,11 @@ SELECT * FROM tab0 WHERE NOT + + 83 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) col0, ( - 92 ) AS col0 FROM tab1 +---- +-92 +3 query I rowsort SELECT ALL - - col2 FROM tab1 AS cor0 WHERE ( - col2 * col0 ) <> + col2 @@ -42983,8 +43498,15 @@ SELECT - COUNT ( * ) + - + 82 - 20 * - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHE # Datafusion - Expected - -74 # Datafusion - Expected - -81 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(\-74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, - 74 AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-74 +-74 +-74 +-81 query I rowsort SELECT DISTINCT ( + + ( col0 ) ) FROM tab2 AS cor0 @@ -43284,8 +43806,15 @@ SELECT - 14 * 75 FROM tab2 # Datafusion - Expected - 420784 # Datafusion - Expected - 3 # Datafusion - Expected - 470016 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col2" at position 0 and "tab1\.col2 \* tab1\.col0 \* tab1\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 3 col2, col2 * + col0 * col2 AS col2 FROM tab1 +---- +295885 +3 +3 +3 +420784 +470016 query I rowsort label-7136 SELECT COUNT ( * ) * + - ( - + 84 ) FROM tab0 @@ -43570,8 +44099,15 @@ SELECT CAST ( col1 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT - ( - + 57 ) FROM tab0 AS cor0 @@ -43817,8 +44353,11 @@ SELECT - 7 + - + COUNT ( * ) AS col0 FROM tab2 AS cor0 # 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 "\(\- min\(tab2\.col0\)\) AS col2" at position 0 and "Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MIN ( ALL col0 ) AS col2, + 80 AS col2 FROM tab2 WHERE NULL <> NULL +---- +80 +NULL query I rowsort label-7223 SELECT DISTINCT SUM ( ALL col0 ) AS col2 FROM tab0 @@ -44119,8 +44658,10 @@ SELECT + 33 + + col0 * - col1 col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to dc39d5a4104e2cb6a36367dae6efcedb -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* tab1\.col1 AS col0" at position 0 and "\(\- tab1\.col2\) \* Int64\(45\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 81 * col1 AS col0, col2, - col2 * + 45 AS col0 FROM tab1 +---- +9 values hashing to 293b39ba740433eea83e50e1387e6237 query I rowsort label-7271 SELECT ALL + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN col2 AND NULL @@ -44675,8 +45216,11 @@ SELECT ALL * FROM tab0 WHERE NOT ( NOT NULL = NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 +---- +9 +9 query I rowsort label-7362 SELECT 30 * + MIN ( DISTINCT - CAST ( + - col1 AS INTEGER ) ) + + 79 FROM tab1 AS cor0 @@ -44951,8 +45495,11 @@ SELECT ALL - CAST ( ( + 79 ) AS INTEGER ) / + col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 91 / + - COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-30 +3 query I rowsort label-7406 SELECT + 63 + + COUNT ( * ) * + ( - MAX ( ALL - ( col2 ) ) ) AS col2 FROM tab2 AS cor0 @@ -46009,8 +46556,11 @@ SELECT DISTINCT + ( + - 89 ) AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(1\) AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + CAST ( + 1 AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +1 +3 query I rowsort label-7588 SELECT DISTINCT + MIN ( + - col0 ) AS col2 FROM tab2 AS cor0 @@ -46733,8 +47283,15 @@ SELECT ALL + 15 + - ( + + COUNT ( * ) ) FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, col1 AS col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query III rowsort SELECT * FROM tab1 WHERE NOT 46 IS NULL @@ -47150,8 +47707,9 @@ SELECT - col2 * + ( - 97 ) + col2 AS col0 FROM tab1 9408 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, col0 AS col1 FROM tab2 WHERE col0 < NULL +---- query I rowsort SELECT DISTINCT 91 * - + 65 AS col1 FROM tab1 @@ -47323,8 +47881,15 @@ SELECT * FROM tab0 WHERE NOT - ( - col1 ) > NULL # Datafusion - Expected - 10 # Datafusion - Expected - -97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, + col2 AS col1 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +10 +47 +99 query I rowsort SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE NULL = + 36 @@ -49842,8 +50407,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( 87 ) AS col2, - COUNT ( * ) col2 FROM tab0 AS cor0 +---- +-3 +261 query I rowsort label-8216 SELECT ALL - MIN ( ALL - col0 ) FROM tab0 AS cor0 @@ -51497,8 +52065,15 @@ SELECT DISTINCT - 97 / - + col0 FROM tab1 # Datafusion - Expected - -64 # Datafusion - Expected - -75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0, - col0 FROM tab2 AS cor0 +---- +-46 +-46 +-64 +-64 +-75 +-75 query I rowsort label-8497 SELECT ALL - col2 - 2 FROM tab1 AS cor0 WHERE NOT CAST ( + col0 AS INTEGER ) NOT IN ( + - col0 ) @@ -51730,8 +52305,15 @@ SELECT + - col0 AS col2, - 81 / - col2 FROM tab0 WHERE NOT + col0 * - CAST ( - c # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, col2 AS col1 FROM tab0 +---- +10 +10 +47 +47 +99 +99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 @@ -51775,8 +52357,15 @@ SELECT ALL - col0 * 69 AS col1 FROM tab1 # Datafusion - Expected - 68 # Datafusion - Expected - -68 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 68 AS col1, col2 AS col1 FROM tab1 AS cor0 +---- +-68 +-68 +-68 +59 +68 +96 query II rowsort SELECT + - 69 AS col0, 49 FROM tab0 AS cor0 @@ -52290,8 +52879,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( DISTINCT + 89 ) AS col0, + ( - COUNT ( * ) ) AS col0 FROM tab2 cor0 +---- +-3 +-89 query III rowsort label-8626 SELECT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) NOT BETWEEN - col2 / - col2 - + col1 AND col0 @@ -52736,8 +53328,9 @@ SELECT ALL 37 AS col0 FROM tab1 cor0 WHERE + ( col1 ) IN ( - + col2 ) ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col0\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * - col0 + - - CAST ( NULL AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL +---- query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT - col2 = col1 @@ -52807,8 +53400,15 @@ SELECT - ( - col1 ) * - 21 FROM tab0 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col0, + col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT + 11 + - + col2 FROM tab2 @@ -54552,8 +55152,15 @@ SELECT + + ( - CAST ( - - 82 AS INTEGER ) ) * + col0 + col0 * - - ( - col0 ) * + # Datafusion - Expected - 1920 # Datafusion - Expected - 58 # Datafusion - Expected - 2250 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col0 \* Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, col0 * + + 30 AS col1 FROM tab2 AS cor0 +---- +1380 +1920 +2250 +23 +40 +58 query III rowsort SELECT ALL * FROM tab2 WHERE NOT + 82 BETWEEN 54 * + - 23 * - col0 AND 46 @@ -54798,8 +55405,15 @@ SELECT - COUNT ( * ) * + ( - + COUNT ( * ) ) + 29 FROM tab0 cor0 # Datafusion - Expected - 61 # Datafusion - Expected - 5 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(16\) \+ \(\- Int64\(\-45\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, 16 + - - 45 AS col0 FROM tab1 AS cor0 +---- +14 +47 +5 +61 +61 +61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 @@ -57422,8 +58036,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE ( - col2 ) = col1 + - ( + col1 ) # Datafusion - Expected - 65 # Datafusion - Expected - 0 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "Int64\(51\) \+ tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 AS col0, + 51 + col1 AS col0 FROM tab1 +---- +0 +0 +0 +56 +65 +98 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT - + 68 NOT IN ( col0 * col1 ) @@ -57652,8 +58273,15 @@ SELECT ALL + SUM ( DISTINCT + 59 ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, + col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT ALL 2 AS col0 FROM tab2 cor0 @@ -58056,8 +58684,11 @@ SELECT ALL COUNT ( * ) * 23 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 1405 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(tab1\.col2\) AS col0" at position 0 and "Int64\(\-22\) \* Int64\(\-64\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MAX ( ALL + col2 ) col0, - 22 * - 64 - + + COUNT ( * ) AS col0 FROM tab1 +---- +1405 +96 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE ( + 0 IS NULL ) @@ -58157,8 +58788,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "Int64\(84\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 AS col2, 84 - + COUNT ( * ) col2 FROM tab0, tab1 AS cor0 +---- +75 +85 query I rowsort SELECT col0 + + 33 * col1 AS col2 FROM tab0 @@ -58635,8 +59269,15 @@ SELECT DISTINCT - ( + + ( + col2 ) ) * - 46 * + - col2 - - col0 AS col0 FROM tab # Datafusion - Expected - -85 # Datafusion - Expected - -91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0, - col0 FROM tab1 cor0 +---- +-51 +-51 +-85 +-85 +-91 +-91 query I rowsort label-9682 SELECT ALL 52 / 68 * + col2 * col0 FROM tab2 cor0 @@ -58926,8 +59567,11 @@ SELECT + + 58 + - 9 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -5760 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col2" at position 0 and "sum\(Int64\(\-80\)\) \* Int64\(8\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 80 col2, SUM ( + - 80 ) * + + ( 8 ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +-5760 +80 query I rowsort SELECT + + col0 + + 70 FROM tab1 AS cor0 @@ -58955,8 +59599,15 @@ SELECT DISTINCT 30 + - MIN ( DISTINCT + col1 ) FROM tab0 AS cor0 # Datafusion - Expected - 182 # Datafusion - Expected - -96 # Datafusion - Expected - 149 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(46\) \+ Int64\(70\) \+ cor0\.col1 \- Int64\(\-19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, + 46 + 70 + col1 - - 19 AS col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +140 +149 +182 query I rowsort SELECT 59 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) @@ -59192,8 +59843,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * col2 / + ( - - 71 ) IS NULL # Datafusion - Expected - 62 # Datafusion - Expected - 77 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \- Int64\(\-59\) AS col0" at position 0 and "cor0\.col2 \+ \(\- \(\- cor0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 18 - - 59 AS col0, col2 + - - col0 AS col0 FROM tab0 AS cor0 +---- +196 +62 +77 +77 +77 +97 query I rowsort label-9772 SELECT ALL + + 76 / COUNT ( * ) FROM tab0 AS cor0 @@ -60390,8 +61048,15 @@ SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab2 WHERE NOT - col1 IS NULL # Datafusion - Expected - -64 # Datafusion - Expected - -75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(tab2\.col0 AS Int32\)\) AS col0" at position 0 and "\(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( + col0 AS INTEGER ) AS col0, - col0 col0 FROM tab2 +---- +-46 +-46 +-64 +-64 +-75 +-75 query I rowsort SELECT DISTINCT + 42 * col0 AS col2 FROM tab0 diff --git a/data/sqlite/random/aggregates/slt_good_7.slt b/data/sqlite/random/aggregates/slt_good_7.slt index 32722be..5b843b5 100644 --- a/data/sqlite/random/aggregates/slt_good_7.slt +++ b/data/sqlite/random/aggregates/slt_good_7.slt @@ -143,8 +143,10 @@ SELECT * FROM tab2 WHERE + col1 NOT BETWEEN NULL AND ( NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 12c365984b3e016b0a85eec2f8f4f0ea -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col1, - col0 + - - ( - + 25 ) AS col0, col1 FROM tab0 +---- +9 values hashing to dbcb8b73c22620e030563f5fcb539b71 query I rowsort label-18 SELECT + CAST ( NULL AS INTEGER ) * + 41 FROM tab2 @@ -1058,8 +1060,15 @@ SELECT * FROM tab2 WHERE NOT - - 99 / - col0 + - + col1 < NULL # Datafusion - Expected - 68 # Datafusion - Expected - 4800 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \* \(\- Int64\(50\)\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 * - ( 50 ) AS col0, col2 col0 FROM tab1 +---- +2950 +3400 +4800 +59 +68 +96 query I rowsort label-160 SELECT DISTINCT - col1 * + - col1 / - ( - + col1 ) FROM tab1 @@ -2279,8 +2288,15 @@ SELECT DISTINCT - col1 + 31 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 144 # Datafusion - Expected - 45 # Datafusion - Expected - 147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ \(\- tab1\.col0\) AS col1" at position 0 and "tab1\.col0 \+ tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + - ( col0 ) AS col1, col0 + col2 AS col1 FROM tab1 +---- +-23 +-26 +144 +147 +159 +45 query I rowsort label-367 SELECT DISTINCT COUNT ( * ) * ( 71 ) FROM tab2 @@ -2332,8 +2348,15 @@ SELECT ALL + MIN ( - 12 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col0, + col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT 74 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL @@ -2630,8 +2653,15 @@ SELECT DISTINCT ( 26 ) * + + col0 col0 FROM tab0 AS cor0 # Datafusion - Expected - 15 # Datafusion - Expected - 91 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, 15 AS col1 FROM tab1 AS cor0 +---- +15 +15 +15 +51 +85 +91 query I rowsort label-421 SELECT ALL + - CAST ( NULL AS INTEGER ) + + - 43 AS col2 FROM tab0 AS cor0 @@ -2767,8 +2797,15 @@ SELECT col0 FROM tab1 AS cor0 WHERE NULL >= ( - col2 ) # Datafusion - Expected - 75 # Datafusion - Expected - 8 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \- tab2\.col0 AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 54 - + + col0 AS col1, + col0 AS col1 FROM tab2 +---- +-10 +-21 +46 +64 +75 +8 query I rowsort SELECT - col2 * - 75 - ( - col2 ) * col2 FROM tab0 @@ -3452,8 +3489,11 @@ SELECT + 36 / + + ( col2 ) AS col2 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "max\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + COUNT ( * ) AS col0, MAX ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 +---- +-3 +NULL query I rowsort label-547 SELECT - 38 / col0 - col0 - + 30 * - - col1 col1 FROM tab0 AS cor0 @@ -3545,8 +3585,11 @@ SELECT ( + + 63 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) 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 II valuesort SELECT + - 48 col0, MAX ( + - col2 ) AS col0 FROM tab2 AS cor0 +---- +-23 +-48 query I rowsort label-561 SELECT - + COUNT ( + + 11 ) FROM tab0 AS cor0 @@ -5100,8 +5143,15 @@ SELECT DISTINCT + col2 + - col0 * + col1 FROM tab1 AS cor0 # Datafusion - Expected - -9 # Datafusion - Expected - -40 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \- cor0\.col1 / cor0\.col1 AS col2" at position 0 and "Int64\(\-9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 39 - ( + col1 ) / col1 col2, - 9 AS col2 FROM tab1 cor0 +---- +-40 +-40 +-40 +-9 +-9 +-9 query I rowsort label-820 SELECT + 26 * - col2 + + col2 / - 36 FROM tab1 AS cor0 @@ -6318,8 +6368,15 @@ SELECT ALL + 81 * - - 77 AS col1 FROM tab2 # Datafusion - Expected - -47 # Datafusion - Expected - 8 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "CAST\(\(\- tab0\.col2\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 AS col0, CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 WHERE ( NOT NULL IS NOT NULL ) +---- +-10 +-47 +-99 +8 +8 +8 query I rowsort label-1016 SELECT DISTINCT - MIN ( + col2 ) FROM tab0 WHERE NOT ( NOT - col2 * - 26 = col2 ) @@ -6340,8 +6397,15 @@ SELECT DISTINCT col0 * - 36 FROM tab2 # Datafusion - Expected - 69 # Datafusion - Expected - -77 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col0" at position 0 and "Int64\(2\) \+ tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, 2 + col1 AS col0 FROM tab2 +---- +-51 +-67 +-77 +53 +69 +79 query I rowsort SELECT DISTINCT + col0 * - - col0 * col0 * 35 + - 94 - + col0 FROM tab1 AS cor0 @@ -7437,8 +7501,15 @@ SELECT + col1 * + col2 * + col0 * - 11 + - col1 + - col2 col0 FROM tab2 AS cor0 # Datafusion - Expected - -100 # Datafusion - Expected - 82 # Datafusion - Expected - -137 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \+ tab1\.col2 AS col2" at position 0 and "Int64\(\-41\) \- tab1\.col2 \- \(\- tab1\.col1\) / Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + + col2 col2, ( - 41 ) - + col2 - - col1 / 84 AS col2 FROM tab1 +---- +-100 +-109 +-137 +21 +54 +82 query I rowsort label-1206 SELECT DISTINCT - MIN ( ALL + + col1 ) AS col2 FROM tab0 @@ -7453,8 +7524,9 @@ SELECT - col1 AS col2 FROM tab1 WHERE - col1 / col0 * - - 95 * + col0 IS NOT NUL -5 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab1\.col2\)\) \* \(\- tab1\.col2\) AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col2 * - col2 AS col0, + 33 AS col0 FROM tab1 WHERE NOT NULL IS NULL +---- query II rowsort SELECT DISTINCT + 14 AS col0, 62 AS col1 FROM tab1 @@ -7572,8 +7644,15 @@ SELECT COUNT ( * ) * + 47 * - 1, + COUNT ( * ) col2 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 col0, col1 AS col0 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query II rowsort SELECT col0, - 50 AS col2 FROM tab1 @@ -7913,8 +7992,15 @@ SELECT + - 13 * + col0 - - 96 + - 54 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - -52365 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* cor0\.col2 \* Int64\(39\) \+ \(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * + col2 * + 39 + - - col0 AS col2, col0 AS col2 FROM tab1 AS cor0 +---- +-11420 +-124553 +-52365 +51 +85 +91 query I rowsort SELECT ALL 54 * - - col1 AS col0 FROM tab2 @@ -8758,8 +8844,15 @@ SELECT 40 + COUNT ( DISTINCT - col2 ) FROM tab1 cor0 # Datafusion - Expected - 2 # 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 "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 94 AS col1, + 2 AS col1 FROM tab0 AS cor0 +---- +2 +2 +2 +94 +94 +94 query I rowsort SELECT ALL 7 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL @@ -8781,8 +8874,15 @@ SELECT - ( + MIN ( - col2 ) ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - -58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ \(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 0 + - col2 AS col0, col1 AS col0 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +51 +67 +77 query I rowsort SELECT col2 * + ( - col2 ) AS col1 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL @@ -9538,8 +9638,15 @@ SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( + col1 IS NOT NULL ) # Datafusion - Expected - -7084 # Datafusion - Expected - -58 # Datafusion - Expected - -6164 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col0" at position 0 and "tab2\.col1 \* \(\- Int64\(92\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, col1 * - + 92 AS col0 FROM tab2 WHERE NOT - 0 IS NULL +---- +-23 +-40 +-4692 +-58 +-6164 +-7084 query I rowsort label-1549 SELECT + col2 + - - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL <= 62 * - + col2 @@ -10405,8 +10512,15 @@ SELECT DISTINCT - COUNT ( * ) + - 37 AS col0, COUNT ( * ) col2 FROM tab0 AS cor0 # Datafusion - Expected - 58 # Datafusion - Expected - -154 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \- cor0\.col1 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col1 - col1 col1, col2 AS col1 FROM tab2 AS cor0 +---- +-102 +-134 +-154 +23 +40 +58 query I rowsort label-1698 SELECT DISTINCT - - 25 / col1 FROM tab0 AS cor0 @@ -10828,8 +10942,15 @@ SELECT + + SUM ( ALL col1 ) FROM tab2 AS cor0 # Datafusion - Expected - -36 # Datafusion - Expected - -97 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col1" at position 0 and "Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col1, - 36 AS col1 FROM tab0 +---- +-15 +-36 +-36 +-36 +-87 +-97 query I rowsort SELECT ALL col0 AS col2 FROM tab2 WHERE + 49 * - col1 + - + col0 * - + 82 IN ( - col0 ) @@ -11083,8 +11204,15 @@ SELECT 92, + col1 FROM tab0 # Datafusion - Expected - 69 # Datafusion - Expected - 79 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col1" at position 0 and "Int64\(87\) \+ Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 79 AS col1, 87 + - 18 AS col1 FROM tab1 +---- +69 +69 +69 +79 +79 +79 query III rowsort SELECT * FROM tab2 WHERE NOT ( + col2 * col1 + - col0 + - - 64 / + col1 / - - col2 ) <= NULL @@ -11260,8 +11388,15 @@ SELECT + + col2 * - + 12 - col1 FROM tab0 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - NULL # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- CAST\(NULL AS Int32\)\) \* cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * - CAST ( NULL AS INTEGER ) * + col2 AS col1, - col0 AS col1 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +NULL +NULL +NULL query I rowsort label-1836 SELECT ALL + COUNT ( - col2 ) col1 FROM tab0 AS cor0 @@ -12113,8 +12248,15 @@ SELECT ALL + + 96 + + COUNT ( * ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 9692 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \* cor0\.col0 \+ Int64\(89\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col2 * + col0 + 89 AS col1, col0 AS col1 FROM tab0 AS cor0 +---- +15 +794 +87 +959 +9692 +97 query I rowsort label-1968 SELECT + 36 + - CAST ( - + COUNT ( * ) AS INTEGER ) + COUNT ( ALL + - 2 ) col0 FROM tab2 AS cor0 @@ -12202,8 +12344,9 @@ SELECT - - col2 AS col0, 25 * col0 FROM tab2 AS cor0 1875 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col2, ( + col2 ) FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL ) +---- query I rowsort label-1982 SELECT + 15 / + + col0 AS col1 FROM tab1 AS cor0 @@ -13617,8 +13760,15 @@ SELECT - ( + + 28 ) * + + col2 + + + col0 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 col1, + col1 FROM tab0 AS cor0 WHERE ( NOT + - col0 IN ( col2, col2 * + 89 ) ) +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT - col1 + - 39 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN + - 60 AND NULL @@ -13631,8 +13781,15 @@ SELECT - col1 + - 39 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN + - 60 AND NUL # Datafusion - Expected - -96 # Datafusion - Expected - 159 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ tab1\.col0 AS col0" at position 0 and "\(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 + col0 AS col0, - col2 col0 FROM tab1 WHERE NULL IS NULL +---- +-59 +-68 +-96 +144 +147 +159 query I rowsort SELECT + - col1 FROM tab2 WHERE NOT NULL IS NOT NULL @@ -13743,8 +13900,10 @@ SELECT ALL col0, 18 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 8c55d9dee334dd2348f43860ce3181c4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) \+ \(\- \(\- tab1\.col2\)\) AS col1" at position 1 and "Int64\(65\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - col0 AS col0, - 44 + - ( - col2 ) AS col1, 65 AS col1 FROM tab1 +---- +9 values hashing to d6c575d496c50b8d406323b193d2842f query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT 20 IS NOT NULL @@ -13829,8 +13988,11 @@ SELECT 47 FROM tab0 WHERE NOT NULL > NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 3 AS col1, COUNT ( * ) AS col1 FROM tab1 cor0 +---- +3 +3 query II rowsort label-2253 SELECT + + ( 65 ) / + 77 AS col1, COUNT ( ALL - col1 ) + - SUM ( - col2 ) FROM tab2 AS cor0 @@ -13903,8 +14065,15 @@ SELECT + + 88 + + - col1 / - col1 FROM tab0 AS cor0 # Datafusion - Expected - 120 # Datafusion - Expected - 159 # Datafusion - Expected - 186 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- \(\- cor0\.col2\)\) AS col1" at position 0 and "Int64\(92\) \- \(\- cor0\.col1\) \- \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + - - col2 AS col1, 92 - - ( + col1 ) - - col1 AS col1 FROM tab1 cor0 +---- +102 +120 +144 +147 +159 +186 query I rowsort SELECT ALL + + 50 * 49 * col2 FROM tab2 AS cor0 @@ -14178,8 +14347,15 @@ SELECT DISTINCT - 56 AS col2 FROM tab1 WHERE NULL < col2 / - col1 # Datafusion - Expected - 50 # Datafusion - Expected - 91 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, 50 AS col1 FROM tab1 +---- +50 +50 +50 +51 +85 +91 query I rowsort SELECT ALL - 13 * col1 FROM tab1 AS cor0 @@ -16315,8 +16491,15 @@ SELECT ALL - 35 col0 FROM tab2 # Datafusion - Expected - 18 # Datafusion - Expected - 50 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 AS col2, 18 AS col2 FROM tab1 +---- +18 +18 +18 +50 +50 +50 query I rowsort label-2658 SELECT - ( MIN ( - 47 ) ) * + - 70 FROM tab0 AS cor0 @@ -17136,8 +17319,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- CAST\(Int64\(\-90\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col0, - CAST ( - 90 AS INTEGER ) AS col0 FROM tab2 +---- +3 +90 query II rowsort SELECT 31, 14 AS col2 FROM tab2 @@ -17657,8 +17843,15 @@ SELECT ALL - col2 + - + 82 * - - 13 AS col2 FROM tab1 # Datafusion - Expected - 0 # Datafusion - Expected - 77 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "\(\- tab2\.col2\) \+ tab2\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, - col2 + + col2 AS col2 FROM tab2 +---- +0 +0 +0 +51 +67 +77 query I rowsort SELECT DISTINCT + col1 + - 37 AS col1 FROM tab1 @@ -17734,8 +17927,11 @@ SELECT DISTINCT + COUNT ( * ) + 0 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 95 AS col2, COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +6 +95 query I rowsort SELECT DISTINCT + col2 * + + col2 AS col2 FROM tab0 AS cor0 @@ -18083,8 +18279,15 @@ SELECT DISTINCT - 95 / 75 col1 FROM tab0 # Datafusion - Expected - 101 # Datafusion - Expected - 95 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "tab2\.col0 \+ Int64\(\-41\) \- \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 95 AS col2, col0 + + - 41 - + - col1 AS col2 FROM tab2 +---- +100 +101 +56 +95 +95 +95 query I rowsort label-2937 SELECT ALL - COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 @@ -18852,8 +19055,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, + 64 AS col2 FROM tab0 AS cor0 +---- +-3 +64 query I rowsort SELECT ALL + col2 * - - col0 AS col1 FROM tab1 cor0 @@ -19023,8 +19229,15 @@ SELECT col0 + + + col0 * + col1 * - + col1 FROM tab2 AS cor0 # Datafusion - Expected - 870 # Datafusion - Expected - 88 # Datafusion - Expected - 9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col0" at position 0 and "tab0\.col0 \* tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 88 AS col0, ( col0 ) * col2 AS col0 FROM tab0 WHERE NOT - - 83 * 34 / + + 1 + - col0 IN ( + col0 + - + col2 / - - ( - 69 ) * 46 ) +---- +705 +870 +88 +88 +88 +9603 query III rowsort label-3098 SELECT * FROM tab1 WHERE NOT + 43 * + CAST ( NULL AS INTEGER ) + + ( + col0 ) + + - col1 * - - 62 IS NOT NULL @@ -19104,8 +19317,11 @@ 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\(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\. +query II valuesort SELECT - 34 + + COUNT ( * ) * 2 - - COUNT ( * ) AS col1, MAX ( + 82 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL +---- +-34 +NULL query I rowsort label-3113 SELECT col0 / col2 + col0 - + + 35 + + - col2 AS col2 FROM tab0 AS cor0 @@ -20627,8 +20843,11 @@ SELECT - + SUM ( + col0 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) * - COUNT ( * ) col2 FROM tab2 cor0 +---- +-3 +NULL query I rowsort SELECT - ( + 34 ) FROM tab1 @@ -21430,8 +21649,15 @@ SELECT - col1 FROM tab0 WHERE NOT ( - - CAST ( NULL AS INTEGER ) - + - 80 - - + # Datafusion - Expected - 113 # Datafusion - Expected - -58 # Datafusion - Expected - 103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col1" at position 0 and "tab2\.col1 \+ \(\- Int64\(\-36\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 col1, col1 + - - 36 AS col1 FROM tab2 +---- +-23 +-40 +-58 +103 +113 +87 query I rowsort label-3490 SELECT + COUNT ( * ) + - + 33 AS col1 FROM tab0 @@ -21769,8 +21995,15 @@ SELECT DISTINCT * FROM tab1 WHERE NULL >= NULL OR NULL IS NOT NULL # Datafusion - Expected - 387187 # Datafusion - Expected - NULL # Datafusion - Expected - 94170 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* tab2\.col1 AS col0" at position 0 and "Int64\(89\) \* tab2\.col2 \* tab2\.col0 \+ tab2\.col0 \- Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 AS col0, 89 * + col2 * + col0 + col0 - 38 AS col0 FROM tab2 +---- +227866 +387187 +94170 +NULL +NULL +NULL query I rowsort SELECT DISTINCT 64 + - + col1 FROM tab1 @@ -21868,8 +22101,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT + col1 / + - col2 + - col1 - - 32 * + + col # Datafusion - Expected - 2270 # Datafusion - Expected - 5 # Datafusion - Expected - 9862 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col0" at position 0 and "Int64\(61\) \+ tab0\.col2 \* tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 col0, 61 + + + col2 * + + col2 col0 FROM tab0 +---- +161 +2270 +5 +5 +5 +9862 query I rowsort label-3563 SELECT + MAX ( ALL 8 ) AS col1 FROM tab2 @@ -22438,8 +22678,15 @@ SELECT + - ( col0 ) + + + 91 + 44 FROM tab2 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, + col2 AS col2 FROM tab2 AS cor0 WHERE col2 * 21 IS NOT NULL +---- +23 +23 +40 +40 +58 +58 query II rowsort SELECT - ( - 3 ) AS col1, + 20 + 30 col2 FROM tab0 @@ -22485,8 +22732,15 @@ SELECT + - 37 * - ( + col1 ) FROM tab2 AS cor0 # Datafusion - Expected - 142 # Datafusion - Expected - 77 # Datafusion - Expected - 131 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "Int64\(67\) \+ tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, + 67 + + + col0 col2 FROM tab2 +---- +113 +131 +142 +51 +67 +77 query III rowsort label-3661 SELECT DISTINCT * FROM tab2 WHERE NOT + 42 * + - ( + 84 ) * 71 + col1 * + CAST ( NULL AS INTEGER ) IS NOT NULL @@ -24149,8 +24403,15 @@ SELECT + MAX ( ALL + + col2 ) + COUNT ( * ) FROM tab0 # Datafusion - Expected - -441 # Datafusion - Expected - 81 # Datafusion - Expected - -6561 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col1 \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col1 col0, col1 * + - col1 AS col0 FROM tab0 AS cor0 +---- +-1 +-441 +-6561 +1 +21 +81 query I rowsort label-3939 SELECT CAST ( NULL AS INTEGER ) / + + col2 + + col1 - col2 * - - ( + - col2 ) + 20 FROM tab0 AS cor0 @@ -25365,8 +25626,11 @@ SELECT * FROM tab0 WHERE NOT ( + col0 ) < NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* CAST\(NULL AS Int32\) / sum\(DISTINCT \(\- cor0\.col1\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 3 * + CAST ( NULL AS INTEGER ) / SUM ( DISTINCT - col1 ) AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +3 +NULL query II rowsort SELECT - + 0 * - - col0, 2 AS col2 FROM tab1 AS cor0 @@ -26034,8 +26298,15 @@ SELECT - col1 * col0 * - 91 FROM tab0 cor0 # Datafusion - Expected - -5015 # Datafusion - Expected - 21 # Datafusion - Expected - -6188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-21\)\) AS col2" at position 0 and "cor0\.col0 \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 21 AS col2, col0 * - col2 AS col2 FROM tab1 cor0 +---- +-4896 +-5015 +-6188 +21 +21 +21 query I rowsort SELECT DISTINCT + col1 * 18 AS col2 FROM tab0 AS cor0 @@ -26096,8 +26367,11 @@ SELECT DISTINCT COUNT ( 41 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "sum\(Int64\(2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + SUM ( + 2 ) col2 FROM tab2, tab1 AS cor0 +---- +18 +9 query I rowsort label-4250 SELECT ALL + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab1 WHERE NOT ( - 15 IS NOT NULL ) @@ -26319,8 +26593,15 @@ SELECT DISTINCT col0 - + 51 col2 FROM tab2 AS cor0 # Datafusion - Expected - 97 # Datafusion - Expected - -42 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) \+ \(\- tab0\.col1\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + - col1 AS col2, col0 AS col2 FROM tab0 +---- +-162 +-2 +-42 +15 +87 +97 query I rowsort SELECT - col2 + + + 82 FROM tab1 @@ -26374,8 +26655,15 @@ NULL # Datafusion - Expected - 94 # Datafusion - Expected - -99 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col0" at position 0 and "tab0\.col1 \+ Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col0, col1 + 13 AS col0 FROM tab0 +---- +-10 +-47 +-99 +14 +34 +94 query I rowsort label-4295 SELECT - col1 * + - col0 / - + col0 AS col1 FROM tab2 @@ -26437,8 +26725,11 @@ SELECT - col0 * + col2 * col2 AS col0 FROM tab2 AS cor0 # 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\(DISTINCT \(\- cor0\.col0\)\) / \(\- Int64\(\-23\)\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( DISTINCT + - col0 ) / - - 23 AS col2, 55 AS col2 FROM tab0 AS cor0 +---- +0 +55 query I rowsort SELECT + 17 * - col2 AS col1 FROM tab0 cor0 @@ -26937,8 +27228,15 @@ SELECT DISTINCT + 94 AS col1, MAX ( DISTINCT col0 ) FROM tab0 # 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 col0" at position 0 and "Int64\(7\) / tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 79 AS col0, 7 / + ( + col1 ) col0 FROM tab2 +---- +-79 +-79 +-79 +0 +0 +0 query I rowsort SELECT - col0 * - - 15 FROM tab1 @@ -27722,8 +28020,15 @@ SELECT DISTINCT col0 + - col2 AS col0, + 79 * + col1 * - 91, col0 FROM tab1 # Datafusion - Expected - 5015 # Datafusion - Expected - -75 # Datafusion - Expected - 6188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \+ tab1\.col1 / tab1\.col0 AS col1" at position 0 and "\(\- tab1\.col2\) \* \(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 75 + col1 / + col0 AS col1, - col2 * - + col0 col1 FROM tab1 +---- +-75 +-75 +-75 +4896 +5015 +6188 query I rowsort SELECT - - ( 62 ) FROM tab1 AS cor0 @@ -27973,8 +28278,11 @@ SELECT + 69 * - 31 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 231 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 * COUNT ( * ) AS col0, - COUNT ( * ) AS col0 FROM tab0 cor0 +---- +-3 +231 query I rowsort SELECT + 42 col2 FROM tab1 AS cor0 @@ -28317,8 +28625,15 @@ SELECT ALL col0 AS col1, col2 + - col0 FROM tab1 AS cor0 # Datafusion - Expected - -1 # Datafusion - Expected - 5074 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col0 \- Int64\(\-49\) AS col2" at position 0 and "cor0\.col0 / \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + + col0 - + - 49 AS col2, + col0 / - + col2 AS col2 FROM tab2 AS cor0 +---- +-1 +-1 +-2 +2395 +4977 +5074 query I rowsort SELECT DISTINCT - + col1 * - + col0 AS col0 FROM tab2 AS cor0 @@ -29343,8 +29658,15 @@ SELECT ALL + - col2 * col1 FROM tab0 WHERE NOT + + col2 <> col0 + - col2 # Datafusion - Expected - 21 # Datafusion - Expected - 54 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 54 AS col2, col1 col2 FROM tab0 +---- +1 +21 +54 +54 +54 +81 query I rowsort label-4787 SELECT ( + 0 ) / + 67 col1 FROM tab0 @@ -29586,8 +29908,15 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - 7019 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* tab2\.col0 \- tab2\.col1 \* \(\- tab2\.col0\) \+ tab2\.col1 \+ \(\- Int64\(23\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 26 * col0 - + col1 * - col0 + col1 + - + 23 AS col0, - CAST ( NULL AS INTEGER ) col0 FROM tab2 +---- +3570 +6646 +7019 +NULL +NULL +NULL query I rowsort label-4825 SELECT + ( + CAST ( - col1 AS INTEGER ) ) FROM tab0 @@ -29866,8 +30195,15 @@ SELECT ALL - - 58 + - col2 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -295 # Datafusion - Expected - NULL # Datafusion - Expected - -3196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(31\) AS col2" at position 0 and "\(\- cor0\.col1\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) + 31 AS col2, - col1 * + col2 AS col2 FROM tab1 AS cor0 +---- +-1344 +-295 +-3196 +NULL +NULL +NULL query I rowsort SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL @@ -30129,8 +30465,11 @@ SELECT ALL + 71 / - - col2 + 70 + + ( + - col1 ) FROM tab1 # 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 "\(\- Int64\(12\)\) AS col1" at position 0 and "Int64\(\-83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + ( 12 ) ) AS col1, - 83 AS col1 FROM tab2 +---- +-12 +-83 query I rowsort label-4908 SELECT DISTINCT - 79 + + - COUNT ( * ) * + + 30 / - + 70 FROM tab1 WHERE NOT - - 75 >= NULL @@ -30153,8 +30492,15 @@ SELECT ALL - COUNT ( * ) * - - COUNT ( * ) FROM tab0 WHERE NULL < - col0 # Datafusion - Expected - -47 # Datafusion - Expected - 89 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 AS col0, - col2 AS col0 FROM tab0 +---- +-10 +-47 +-99 +89 +89 +89 query II rowsort SELECT - + 51 AS col0, - col0 / + col1 col2 FROM tab1 AS cor0 WHERE + 4 IS NULL @@ -30317,8 +30663,15 @@ SELECT ALL - col2 * - col0 + + 4 + + - col0 + + - col1 FROM tab2 AS cor0 # Datafusion - Expected - 62 # Datafusion - Expected - -5 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 AS col2, 62 AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +62 +62 +62 query I rowsort SELECT + + col0 * - - col0 AS col2 FROM tab2 cor0 @@ -30431,8 +30784,15 @@ SELECT DISTINCT - 23 * + + MIN ( + col1 ) FROM tab0 # Datafusion - Expected - 40 # Datafusion - Expected - -30 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 30 AS col0, + col2 AS col0 FROM tab2 +---- +-30 +-30 +-30 +23 +40 +58 query II rowsort SELECT + col0 AS col1, 27 FROM tab1 @@ -30768,8 +31128,9 @@ SELECT DISTINCT * FROM tab0 cor0 WHERE NULL = + col2 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(\-8\) \* Int64\(22\) \- cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - col1 AS col2, - 8 * + + 22 - + col0 AS col2, col0 * + + 90 + - + col0 AS col2 FROM tab2 AS cor0 WHERE ( NOT NULL IS NULL ) +---- query I rowsort SELECT + 40 - - col2 FROM tab0 AS cor0 @@ -32133,8 +32494,9 @@ SELECT * FROM tab1 WHERE NOT ( NULL NOT BETWEEN NULL AND - ( + col1 ) ) ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col1 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + col1 AS col1, - col2 AS col1 FROM tab0 AS cor0 WHERE NOT + 35 IS NOT NULL +---- query I rowsort SELECT DISTINCT 6 AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL @@ -32703,8 +33065,15 @@ SELECT COUNT ( * ) / - + 78 AS col2 FROM tab1 # Datafusion - Expected - 1748 # Datafusion - Expected - 96 # Datafusion - Expected - 1748 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "Int64\(19\) \* Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col0, 19 * ( + 92 ) col0 FROM tab1 +---- +1748 +1748 +1748 +59 +68 +96 query I rowsort SELECT + col0 * - col2 * - + 58 AS col2 FROM tab2 cor0 @@ -33480,8 +33849,9 @@ SELECT DISTINCT + 43 / 16 FROM tab0 AS cor0 2 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col1\) AS Int32\) AS col2" at position 0 and "Int64\(77\) \+ Int64\(\-62\) \- \(\- CAST\(NULL AS Float64\)\) \- \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + CAST ( - + col1 AS INTEGER ) col2, + 77 + - 62 - - CAST ( NULL AS FLOAT8 ) - - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> + col0 + 28 +---- query I rowsort label-5449 SELECT COUNT ( * ) * + COUNT ( * ) + - ( COUNT ( * ) ) col1 FROM tab1 AS cor0 @@ -34926,8 +35296,15 @@ NULL # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT ALL + 8 * + col0 FROM tab1 cor0 @@ -35262,8 +35639,15 @@ SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE NOT + 76 IS NOT NULL # Datafusion - Expected - -66 # Datafusion - Expected - 98 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col2" at position 0 and "Int64\(\-66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 98 AS col2, - 66 AS col2 FROM tab0 +---- +-66 +-66 +-66 +98 +98 +98 query III rowsort SELECT * FROM tab1 WHERE NOT NULL > 46 @@ -36204,8 +36588,11 @@ SELECT + + MAX ( 42 ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "\(\- max\(DISTINCT cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 AS col1, - MAX ( DISTINCT col2 ) AS col1 FROM tab2 AS cor0 +---- +-58 +99 query I rowsort label-5904 SELECT + ( - 66 ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 + col2 IS NOT NULL @@ -37343,8 +37730,15 @@ SELECT ALL + ( + 60 ) * - col0 AS col2 FROM tab2 # Datafusion - Expected - 83 # Datafusion - Expected - NULL # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) col1, 83 AS col1 FROM tab1 +---- +83 +83 +83 +NULL +NULL +NULL query I rowsort label-6100 SELECT MAX ( - - ( - + col2 ) ) AS col2 FROM tab0 @@ -37428,8 +37822,15 @@ SELECT + - 7 * + col0 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 102 # Datafusion - Expected - -6188 # Datafusion - Expected - 144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* \(\- tab1\.col0\) AS col0" at position 0 and "tab1\.col1 \+ Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * + - col0 AS col0, + col1 + 97 AS col0 FROM tab1 +---- +-4896 +-5015 +-6188 +102 +111 +144 query I rowsort label-6115 SELECT ALL + - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1 @@ -37832,8 +38233,11 @@ SELECT DISTINCT + col0 col0, + 80 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col1" at position 0 and "Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 46 AS col1, + ( - 43 ) AS col1 FROM tab2 AS cor0 +---- +-43 +46 query I rowsort SELECT + + col0 * - col0 + - + 65 AS col1 FROM tab0 AS cor0 @@ -38180,8 +38584,15 @@ NULL # Datafusion - Expected - -3680 # Datafusion - Expected - -58 # Datafusion - Expected - -5336 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col0" at position 0 and "Int64\(\-92\) \* tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, - 92 * col2 col0 FROM tab2 +---- +-2116 +-23 +-3680 +-40 +-5336 +-58 query III rowsort SELECT * FROM tab2 WHERE col2 * - + col2 - col0 + col2 IS NOT NULL @@ -38333,8 +38744,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 * - CAST ( - 61 AS # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col0, + col1 col0 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT col2 / + + col0 NOT BETWEEN NULL AND NULL @@ -38391,8 +38809,11 @@ SELECT - col1 + + col1 + 91 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) + + 33 AS col0 FROM tab0 WHERE NOT + col0 IS NULL +---- +-9 +NULL query I rowsort SELECT col0 * - + 53 + - col2 col1 FROM tab2 @@ -38571,8 +38992,15 @@ SELECT DISTINCT - 56 + col0 FROM tab0 # Datafusion - Expected - -87 # Datafusion - Expected - 83 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col1" at position 0 and "\(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 83 AS col1, - col0 AS col1 FROM tab0 +---- +-15 +-87 +-97 +83 +83 +83 query I rowsort label-6301 SELECT DISTINCT COUNT ( - col2 ) + - COUNT ( * ) FROM tab1 @@ -38601,8 +39029,15 @@ SELECT + col1 + + 81 * - col1 FROM tab0 AS cor0 # Datafusion - Expected - 15 # Datafusion - Expected - 5025 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* tab2\.col0 AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + col0 AS col2, 15 AS col2 FROM tab2 +---- +15 +15 +15 +2346 +4928 +5025 query I rowsort label-6305 SELECT ALL + + 94 / - + CAST ( - 26 AS INTEGER ) + COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 @@ -39109,8 +39544,15 @@ SELECT ALL + ( + + 60 ) AS col0 FROM tab1 # Datafusion - Expected - 67 # Datafusion - Expected - 70 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 70 AS col2, + col1 AS col2 FROM tab2 +---- +51 +67 +70 +70 +70 +77 query II rowsort SELECT col1 + + 56 AS col0, col0 * col0 + + col2 AS col1 FROM tab1 @@ -39232,8 +39674,15 @@ SELECT - 49 * 57 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -2656 # Datafusion - Expected - 75 # Datafusion - Expected - -4446 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "\(\- Int64\(96\)\) \+ cor0\.col2 \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, - ( 96 ) + col2 * - col0 AS col1 FROM tab2 AS cor0 +---- +-1154 +-2656 +-4446 +46 +64 +75 query I rowsort label-6406 SELECT ALL + - 41 * COUNT ( * ) * 27 FROM tab2 AS cor0 @@ -39523,8 +39972,9 @@ SELECT DISTINCT - ( + - 99 ) - + col0 col1 FROM tab2 AS cor0 53 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* \(\- \(\- \(\- cor0\.col0\)\)\) AS col0" at position 0 and "\(\- cor0\.col2\) \* CAST\(NULL AS Float64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 45 * - - ( - + col0 ) AS col0, - col2 * + + CAST ( NULL AS FLOAT8 ) col0 FROM tab2 AS cor0 WHERE col2 IS NULL +---- query I rowsort label-6454 SELECT CAST ( NULL AS INTEGER ) + + 3 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 @@ -40460,8 +40910,15 @@ SELECT - 82, + ( - - 47 ) AS col0 FROM tab0 WHERE NOT + col2 BETWEEN NULL AND + # Datafusion - Expected - 1344 # Datafusion - Expected - -389207 # Datafusion - Expected - 3196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \* tab1\.col0 \* tab1\.col1 AS col1" at position 0 and "\(\- tab1\.col2\) \* \(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * + col0 * col1 AS col1, - col2 * - col1 AS col1 FROM tab1 +---- +-36125 +-36414 +-389207 +1344 +295 +3196 query I rowsort label-6615 SELECT CAST ( - 52 AS INTEGER ) col1 FROM tab1 @@ -40798,8 +41255,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) * - + 68 - + SUM ( DISTINCT col0 ) col2, + MAX ( DISTINCT col2 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL +---- +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT NULL = + - col1 - - col1 @@ -40990,8 +41450,11 @@ SELECT ALL + MAX ( ALL + ( + col2 ) ) AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12870 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) \* sum\(DISTINCT cor0\.col1\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 66 * + SUM ( DISTINCT col1 ) AS col0, + 69 AS col0 FROM tab2 cor0 +---- +-12870 +69 query I rowsort SELECT - - 2 col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) @@ -41668,8 +42131,15 @@ SELECT DISTINCT 59 - + col0 * 50 col2 FROM tab1 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, col0 AS col2 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL >= - col1 - 92 ) @@ -41866,8 +42336,15 @@ SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE ( + + col0 ) BETWEEN NULL AND - + col # Datafusion - Expected - -2600 # Datafusion - Expected - 0 # Datafusion - Expected - -4408 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col2\) \* cor0\.col0 \- cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 + col1 AS col2, - col2 * col0 - col2 AS col2 FROM tab2 AS cor0 +---- +-1081 +-2600 +-4408 +0 +0 +0 query I rowsort label-6842 SELECT + - col2 + + col1 + + col1 + 41 * CAST ( NULL AS INTEGER ) * + 56 AS col2 FROM tab1 AS cor0 @@ -41958,8 +42435,15 @@ SELECT ALL - + 99 / col2 col1 FROM tab2 AS cor0 # Datafusion - Expected - 19 # Datafusion - Expected - 9603 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col2 \* cor0\.col1 AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col0 * + col2 * col1 AS col1, 19 AS col1 FROM tab0 AS cor0 +---- +18270 +19 +19 +19 +57105 +9603 query I rowsort label-6856 SELECT DISTINCT - col1 / - col2 * + col0 * - col0 + 86 FROM tab1 AS cor0 @@ -42860,8 +43344,15 @@ NULL # Datafusion - Expected - 40 # Datafusion - Expected - 44 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 44 col1, ( col2 ) AS col1 FROM tab2 +---- +23 +40 +44 +44 +44 +58 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT - col2 + col1 * + ( ( col1 ) ) NOT IN ( col0 + 51 ) @@ -42902,8 +43393,15 @@ SELECT - + col1, + col0 * + col1 + + - col1 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 29 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 29 AS col1, + col0 AS col1 FROM tab0 AS cor0 +---- +15 +29 +29 +29 +87 +97 query I rowsort SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 ) @@ -43428,8 +43926,15 @@ SELECT - - 54 FROM tab0 AS cor0 WHERE col2 + col2 IS NOT NULL # Datafusion - Expected - 91 # Datafusion - Expected - -99 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \+ Int64\(\-3\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 + + - 3 AS col1, col0 AS col1 FROM tab1 +---- +-62 +-71 +-99 +51 +85 +91 query I rowsort SELECT 32 + + + 68 AS col2 FROM tab2 @@ -43751,8 +44256,11 @@ SELECT 25 + - - 45 * col1 + - 79 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 72 + + COUNT ( * ) AS col0, 92 col0 FROM tab1 +---- +-69 +92 query I rowsort label-7148 SELECT DISTINCT + 11 + - COUNT ( * ) FROM tab2 AS cor0 @@ -43807,8 +44315,15 @@ SELECT ALL - + 35 FROM tab0 AS cor0 WHERE + col2 * - col2 <= NULL # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col2 AS col1, col2 AS col1 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-7157 SELECT MAX ( - + 93 ) FROM tab0 AS cor0 @@ -44263,8 +44778,15 @@ SELECT ALL 81 + + 31 AS col0 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "CAST\(tab1\.col1 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, CAST ( col1 AS INTEGER ) AS col0 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT - - 18 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 @@ -44333,8 +44855,15 @@ SELECT DISTINCT + - ( - - col1 ) FROM tab0 AS cor0 # Datafusion - Expected - 174 # Datafusion - Expected - -97 # Datafusion - Expected - 174 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / Int64\(\-81\) \+ \(\- cor0\.col2\) AS col0" at position 0 and "Int64\(86\) \+ Int64\(74\) \+ CAST\(\(\- Int64\(\-14\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 / - 81 + - col2 col0, + 86 + + 74 + + CAST ( - - 14 AS INTEGER ) AS col0 FROM tab1 cor0 +---- +-59 +-68 +-97 +174 +174 +174 query I rowsort label-7245 SELECT ALL - - 74 - - MAX ( ALL - col0 ) AS col0 FROM tab1 AS cor0 @@ -44438,8 +44967,9 @@ SELECT ALL + + col0 FROM tab1 WHERE + + col0 = + ( - col2 ) ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \+ Int64\(15\) AS col2" at position 0 and "tab1\.col2 \+ \(\- tab1\.col2\) \* \(\- \(\- tab1\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 62 + + 15 col2, + col2 + + - ( + col2 ) * - - col2 col2 FROM tab1 WHERE NOT + CAST ( + col1 AS INTEGER ) * - - ( - col1 ) + - col0 + + col0 * + 96 IS NOT NULL +---- query I rowsort SELECT ALL + - 37 AS col2 FROM tab0 WHERE + 36 + - col0 IS NULL @@ -44447,8 +44977,10 @@ SELECT ALL + - 37 AS col2 FROM tab0 WHERE + 36 + - col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 954b110161ea1df2afa9554fc52d19da -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 1 and "tab2\.col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col0, + col2, + col2 col2 FROM tab2 +---- +9 values hashing to e08c6a707e620075b02d2f4399f35dae query I rowsort SELECT 16 * + - 2 AS col2 FROM tab1 @@ -45080,8 +45612,15 @@ SELECT DISTINCT 62 + col1 col2 FROM tab2 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col2, col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-7371 SELECT ALL - - COUNT ( * ) FROM tab2 AS cor0 WHERE + col2 + col1 IS NULL @@ -45975,8 +46514,15 @@ SELECT COUNT ( - col0 ) FROM tab0 AS cor0 WHERE ( NOT NULL NOT IN ( - 67 ) ) # Datafusion - Expected - -85 # Datafusion - Expected - 165 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ Int64\(41\) \+ cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 33 + + 41 + col0 AS col2, - col0 AS col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +125 +159 +165 query I rowsort label-7526 SELECT - col2 * - col0 + - col2 / - col0 FROM tab2 AS cor0 @@ -46683,8 +47229,15 @@ SELECT + - col2 * - + col0 FROM tab1 cor0 # Datafusion - Expected - -87 # Datafusion - Expected - 97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, - col0 AS col2 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +15 +87 +97 query I rowsort label-7641 SELECT ALL - 7 * - COUNT ( * ) * - ( + 57 ) AS col1 FROM tab1 @@ -47340,8 +47893,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 60 AS col1, - COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +-3 +60 query I rowsort label-7744 SELECT ALL - ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL @@ -47624,8 +48180,10 @@ SELECT * FROM tab0 cor0 WHERE NOT col0 <> - 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 46101a8d3974f3576a600ad99eec3bef -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- Int64\(\-72\)\) AS col1" at position 1 and "cor0\.col2 \* cor0\.col0 \+ \(\- cor0\.col2\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + - 76, - col2 * + ( - - 72 ) AS col1, + + col2 * + col0 + + - col2 AS col1 FROM tab1 AS cor0 +---- +9 values hashing to 808809097b07e4818fed024ac289f4c4 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -48466,8 +49024,15 @@ SELECT * FROM tab1 WHERE + col1 <= CAST ( - + col1 AS INTEGER ) # Datafusion - Expected - -2 # Datafusion - Expected - -33 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \- Int64\(18\) AS col0" at position 0 and "tab0\.col0 \+ \(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - col0 ) - + 18 AS col0, col0 + - col2 AS col0 FROM tab0 +---- +-105 +-115 +-2 +-32 +-33 +77 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 ) + + col2 IS NOT NULL @@ -49567,8 +50132,15 @@ SELECT + 89 + + col1 AS col2 FROM tab2 cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 41 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 41 AS col2, col1 AS col2 FROM tab2 AS cor0 +---- +41 +41 +41 +51 +67 +77 query I rowsort label-8117 SELECT - COUNT ( DISTINCT - - 9 ) FROM tab0 AS cor0 @@ -51180,8 +51752,15 @@ SELECT ALL CAST ( col2 AS INTEGER ) FROM tab1 cor0 WHERE + ( col2 ) * - col2 + C # Datafusion - Expected - -10 # Datafusion - Expected - 81 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 col2, CAST ( + ( - col2 ) AS INTEGER ) AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +1 +21 +81 query I rowsort label-8382 SELECT ALL SUM ( - - 1 ) AS col0 FROM tab0 @@ -51597,8 +52176,15 @@ SELECT 6, col2 FROM tab1 cor0 # Datafusion - Expected - 67 # Datafusion - Expected - -17 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(17\)\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 17 AS col2, 67 AS col2 FROM tab1 AS cor0 +---- +-17 +-17 +-17 +67 +67 +67 query I rowsort label-8447 SELECT MIN ( + - col2 ) FROM tab2 AS cor0 @@ -52880,8 +53466,15 @@ SELECT DISTINCT col1 * ( - col2 ) + col0 FROM tab0 AS cor0 # Datafusion - Expected - -90 # Datafusion - Expected - -94 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(53\)\) \- Int64\(41\) AS col0" at position 0 and "Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 53 - + ( 41 ) AS col0, - 90 col0 FROM tab0 AS cor0 +---- +-90 +-90 +-90 +-94 +-94 +-94 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( ( - col1 ) ) @@ -53109,8 +53702,10 @@ SELECT - COUNT ( * ) * - 81 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 15251c9d124d546807eb662a510cc609 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col1 AS col1, + col1, - + 50 FROM tab1 AS cor0 +---- +9 values hashing to fa409f65834879d2b8c81109428dc75a query I rowsort SELECT - 45 * col1 + - + col1 + + - col2 FROM tab0 AS cor0 @@ -54682,8 +55277,15 @@ SELECT - ( + 35 ) + - col0 FROM tab0 # Datafusion - Expected - -64 # Datafusion - Expected - -75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "\(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - col0 ) AS col2, - col0 AS col2 FROM tab2 +---- +-46 +-46 +-64 +-64 +-75 +-75 query I rowsort SELECT + 40 FROM tab2 WHERE NULL IN ( 0 ) @@ -54936,8 +55538,15 @@ SELECT + - 10 FROM tab1 cor0 # Datafusion - Expected - 11 # Datafusion - Expected - -46 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 46 AS col2, 11 AS col2 FROM tab2 +---- +-46 +-46 +-46 +11 +11 +11 query I rowsort label-9000 SELECT ALL col0 / - 59 AS col1 FROM tab2 @@ -55165,8 +55774,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 80 AND NULL # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, + col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-9035 SELECT ALL MIN ( + col1 ) col0 FROM tab1 AS cor0 WHERE NOT 10 * col0 * col2 / + - col2 IS NULL @@ -55465,8 +56081,15 @@ SELECT DISTINCT 24 * col1 * - 72 + 57 FROM tab1 # Datafusion - Expected - 11 # Datafusion - Expected - 76 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ Int64\(33\) \- Int64\(38\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 + + + 33 - 38 AS col2, + 11 AS col2 FROM tab0 +---- +-4 +11 +11 +11 +16 +76 query II rowsort label-9083 SELECT - CAST ( NULL AS INTEGER ), col1 FROM tab0 AS cor0 @@ -55680,8 +56303,15 @@ SELECT ALL * FROM tab2 WHERE + CAST ( - col0 AS INTEGER ) IS NOT NULL # Datafusion - Expected - 1 # Datafusion - Expected - 0 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 / \(\- tab0\.col1\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 / - + col1 AS col0, + col1 AS col0 FROM tab0 +---- +-4 +-97 +0 +1 +21 +81 query I rowsort SELECT DISTINCT col1 + + 92 * col2 FROM tab1 @@ -55697,8 +56327,15 @@ SELECT DISTINCT col1 + + 92 * col2 FROM tab1 # Datafusion - Expected - 3886 # Datafusion - Expected - 6 # Datafusion - Expected - 1173 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \+ Int64\(52\) AS col1" at position 0 and "tab2\.col1 \* tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 + 52 AS col1, col1 * + col2 AS col1 FROM tab2 +---- +-12 +-23 +1173 +3080 +3886 +6 query I rowsort SELECT + ( col0 ) * - col2 - col0 * + - 7 AS col2 FROM tab0 AS cor0 @@ -57348,8 +57985,15 @@ SELECT * FROM tab1 WHERE - - col2 * - - col1 IS NULL # Datafusion - Expected - -64 # Datafusion - Expected - NULL # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col2, - col0 AS col2 FROM tab2 +---- +-46 +-64 +-75 +NULL +NULL +NULL query I rowsort label-9396 SELECT + + 65 / + COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 @@ -57885,8 +58529,15 @@ SELECT * FROM tab2 AS cor0 WHERE + col1 + col2 * - 96 * - col1 >= NULL # Datafusion - Expected - 25 # Datafusion - Expected - NULL # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ Int64\(50\) \+ \(\- cor0\.col2\) \* \(\- \(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 + 50 + - col2 * - - ( - CAST ( NULL AS INTEGER ) ) AS col1, 25 AS col1 FROM tab0 AS cor0 +---- +25 +25 +25 +NULL +NULL +NULL query I rowsort label-9487 SELECT ALL + - COUNT ( * ) AS col0 FROM tab0 cor0 WHERE 32 IS NULL @@ -57933,8 +58584,15 @@ SELECT ALL col2 * + 23 FROM tab2 # Datafusion - Expected - -67 # Datafusion - Expected - NULL # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / CAST\(NULL AS Float64\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL col2 / CAST ( NULL AS FLOAT8 ) AS col2, - col1 AS col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +NULL +NULL +NULL query II rowsort SELECT DISTINCT 26 AS col0, col1 * col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL @@ -58282,8 +58940,11 @@ SELECT - 94 / 78 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 63 AS col2, 23 AS col2 FROM tab1 AS cor0 +---- +-63 +23 query I rowsort label-9546 SELECT + - MAX ( ALL col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + - 11 @@ -58829,8 +59490,15 @@ SELECT - col0 * + + col0 AS col2 FROM tab1 cor0 # Datafusion - Expected - 4928 # Datafusion - Expected - -202 # Datafusion - Expected - 5025 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* \(\- Int64\(3\)\) \- Int64\(\-59\) AS col0" at position 0 and "cor0\.col0 \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 * - + 3 - - 59 AS col0, col0 * + col1 AS col0 FROM tab2 AS cor0 +---- +-202 +-202 +-202 +2346 +4928 +5025 query I rowsort SELECT DISTINCT ( col1 ) - - col0 + + - 50 AS col2 FROM tab1 @@ -59820,8 +60488,11 @@ SELECT DISTINCT + + col2 + 75 FROM tab0 AS cor0 WHERE NULL < ( NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col2" at position 0 and "min\(\(\- Int64\(50\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 69 AS col2, + MIN ( - + 50 ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 + - 34 IS NULL +---- +-50 +-69 query II rowsort label-9800 SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col0, COUNT ( * ) FROM tab1 cor0 @@ -60054,8 +60725,15 @@ SELECT DISTINCT col2 FROM tab2 WHERE - col1 > + 24 # Datafusion - Expected - 77 # Datafusion - Expected - 75 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + col0 ) col2, col1 AS col2 FROM tab2 +---- +46 +51 +64 +67 +75 +77 query I rowsort SELECT ( col2 ) * + 59 FROM tab2 @@ -60081,8 +60759,11 @@ SELECT + col2 / - 32 - - col0 + col0 / - col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 217 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) \+ sum\(\(\- Int64\(\-87\)\)\) AS col2" at position 0 and "count\(\(\- tab0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 44 + ( + SUM ( - ( - 87 ) ) ) AS col2, COUNT ( ALL - col0 ) AS col2 FROM tab0 +---- +217 +3 query I rowsort SELECT 22 + 82 FROM tab2 @@ -60209,8 +60890,15 @@ SELECT DISTINCT + col1 AS col2, 26 FROM tab2 AS cor0 # Datafusion - Expected - 148 # Datafusion - Expected - 96 # Datafusion - Expected - 176 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(80\) \- CAST\(\(\- cor0\.col2\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 col1, + 80 - + CAST ( + - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +139 +148 +176 +59 +68 +96 query I rowsort label-9862 SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT 28 - ( col0 ) <= NULL @@ -60428,8 +61116,15 @@ SELECT col2 AS col2, + 26 * + - col0 * + - 12 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - -96 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "tab1\.col2 \- tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col2, col2 - + col1 AS col2 FROM tab1 +---- +-59 +-68 +-96 +21 +54 +82 query II rowsort label-9896 SELECT + SUM ( - - col2 ) AS col0, + CAST ( + 53 AS INTEGER ) + - + ( + + 29 ) AS col1 FROM tab0 @@ -61020,8 +61715,10 @@ SELECT DISTINCT SUM ( - + col2 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 43bf04386a02ca7de8d96bdcbc8ff32a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col1" at position 0 and "\(\- cor0\.col1\) \+ Int64\(\-45\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 88 col1, 8 * - col2 + 78, - col1 + - 45 AS col1 FROM tab0 AS cor0 +---- +9 values hashing to 256c4fee1b068588118a3845077c300c query III rowsort SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND col1 * col1 diff --git a/data/sqlite/random/aggregates/slt_good_70.slt b/data/sqlite/random/aggregates/slt_good_70.slt index 14c8ece..dc180cd 100644 --- a/data/sqlite/random/aggregates/slt_good_70.slt +++ b/data/sqlite/random/aggregates/slt_good_70.slt @@ -266,8 +266,11 @@ SELECT - 97 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(CAST\(cor0\.col2 AS Int32\)\) AS col0" at position 0 and "Int64\(53\) \+ Int64\(\-77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( CAST ( + col2 AS INTEGER ) ) AS col0, + 53 + - 77 AS col0 FROM tab0 AS cor0 +---- +-24 +3 query I rowsort SELECT + 62 * + + 45 AS col1 FROM tab0 AS cor0 @@ -421,8 +424,15 @@ SELECT 92 + - + 99 + - + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 c # Datafusion - Expected - -47 # Datafusion - Expected - 96 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 AS col2, - col1 AS col2 FROM tab1 cor0 +---- +-14 +-47 +-5 +59 +68 +96 query I rowsort SELECT + + ( - col1 ) AS col2 FROM tab1 cor0 @@ -537,8 +547,11 @@ SELECT + COUNT ( * ) / + - 61 AS col2 FROM tab2 AS cor0 # 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\(DISTINCT cor0\.col2\)\) AS col1" at position 0 and "Int64\(\-11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - COUNT ( DISTINCT col2 ) ) AS col1, - 11 col1 FROM tab0 AS cor0 +---- +-11 +-3 query I rowsort label-82 SELECT ALL COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL @@ -723,8 +736,15 @@ SELECT DISTINCT col1, col0 * - - col1 AS col0 FROM tab2 # Datafusion - Expected - 55 # Datafusion - Expected - -96 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col2, 55 col2 FROM tab1 +---- +-59 +-68 +-96 +55 +55 +55 query III rowsort SELECT ALL * FROM tab1 WHERE NOT - + 94 IS NOT NULL @@ -1238,8 +1258,11 @@ SELECT ALL col2 - 31 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-55\)\) AS col1" at position 0 and "count\(\(\- \(\- cor0\.col0\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) \+ Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + ( - 55 ) col1, + COUNT ( ALL - - col0 ) * + + COUNT ( * ) * CAST ( NULL AS INTEGER ) + - 33 AS col1 FROM tab1 AS cor0 +---- +55 +NULL query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 2 IS NOT NULL @@ -1272,8 +1295,15 @@ SELECT DISTINCT - 0 * - COUNT ( * ) AS col0 FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - -52 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) AS col0" at position 0 and "\(\- tab2\.col1\) \+ tab2\.col1 \+ tab2\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 52 AS col0, - col1 + col1 + + col0 AS col0 FROM tab2 +---- +-52 +-52 +-52 +46 +64 +75 query II rowsort label-200 SELECT ALL - - COUNT ( * ) AS col1, + 56 FROM tab1 AS cor0 @@ -1663,8 +1693,15 @@ SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT 59 IN ( col2 ) # Datafusion - Expected - 3876 # Datafusion - Expected - 30 # Datafusion - Expected - 5472 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "tab1\.col2 \* Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 30 AS col2, + col2 * 57 AS col2 FROM tab1 +---- +30 +30 +30 +3363 +3876 +5472 query II rowsort SELECT DISTINCT - col1 AS col0, col1 FROM tab1 @@ -2172,8 +2209,15 @@ SELECT * FROM tab2 cor0 WHERE NOT 76 * + ( + 36 ) IS NULL # Datafusion - Expected - 37 # Datafusion - Expected - -98 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col0" at position 0 and "\(\- cor0\.col2\) \+ \(\- \(\- cor0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 98 AS col0, - col2 + - - col1 AS col0 FROM tab2 AS cor0 +---- +-98 +-98 +-98 +28 +37 +9 query I rowsort label-349 SELECT + - MIN ( ALL + CAST ( + 49 AS INTEGER ) ) AS col0 FROM tab1 AS cor0 @@ -2288,8 +2332,15 @@ SELECT DISTINCT - + 59 + - col0 FROM tab2 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - -57 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 57 AS col1, - col2 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-57 +-57 +-57 +-58 query I rowsort SELECT DISTINCT + + 77 col0 FROM tab1 AS cor0 @@ -2370,8 +2421,10 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 77bc547df8c04d2065d4de7989bbc933 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 1 and "tab0\.col1 \* tab0\.col0 \+ tab0\.col2 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col1 * 31, col0 AS col2, + col1 * + col0 + col2 AS col2 FROM tab0 +---- +9 values hashing to c72789ed3d14722d96b78b22033070e5 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col2 * - col1 ) @@ -3240,8 +3293,15 @@ SELECT col1 col0, 18 AS col1 FROM tab0 # Datafusion - Expected - 36 # Datafusion - Expected - 48668 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* \(\- tab2\.col0\) \* \(\- tab2\.col2\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * - + col0 * - col2 AS col0, + 36 AS col0 FROM tab2 +---- +163840 +326250 +36 +36 +36 +48668 query II rowsort SELECT DISTINCT + 95 * 26 * - col0 AS col0, col1 * + 32 FROM tab2 @@ -4454,8 +4514,11 @@ SELECT DISTINCT * FROM tab1 WHERE NOT - 24 IN ( + + col0 * + + ( - - 52 ), 58 + # Datafusion - Datafusion expected results: # Datafusion - Expected - 720 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-80\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 80 * + ( + COUNT ( * ) ) AS col0, + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 +---- +720 +9 query III rowsort SELECT * FROM tab1 WHERE NOT + + 56 IS NOT NULL @@ -5126,8 +5189,15 @@ SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + 37 * - col0 IN ( - col2 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 FROM tab0 cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT + 10 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL @@ -5217,8 +5287,15 @@ SELECT * FROM tab2, tab0 AS cor0 WHERE NOT - + 23 <> NULL # Datafusion - Expected - 65 # Datafusion - Expected - 81 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "\(\- Int64\(\-65\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, ( - - 65 ) AS col0 FROM tab0 +---- +1 +21 +65 +65 +65 +81 query I rowsort label-849 SELECT + COUNT ( * ) + + MIN ( ALL - col1 ) col2 FROM tab0 @@ -5749,8 +5826,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(\-20\) \* Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 60 AS col2, COUNT ( * ) / - 20 * 60 AS col2 FROM tab2 +---- +-60 +0 query II rowsort SELECT + col1, - 8 AS col2 FROM tab1 @@ -5784,8 +5864,15 @@ SELECT ALL + SUM ( DISTINCT + - 62 ) FROM tab1 # Datafusion - Expected - 28 # Datafusion - Expected - 5 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, ( 28 ) AS col0 FROM tab1 AS cor0 +---- +14 +28 +28 +28 +47 +5 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT ( - 7 ) <> ( - 59 ) @@ -6277,8 +6364,11 @@ SELECT DISTINCT 26 + 51 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col1" at position 0 and "tab0\.col2 \* \(\- tab0\.col2\) \* CAST\(NULL AS Int32\) \* tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 46 AS col1, col2 * + - col2 * CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab0 +---- +46 +NULL query III rowsort SELECT DISTINCT * FROM tab0 WHERE 50 * + + col1 + col2 IS NULL OR NOT - - col2 IS NULL @@ -6593,8 +6683,10 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 9b35add462e7504d0f65197d3fdb5210 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 1 and "Int64\(\-22\) / Int64\(24\) \- Int64\(\-69\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + col0 AS col1, 94 col2, - 22 / ( 24 ) - - 69 AS col2 FROM tab1 AS cor0 +---- +9 values hashing to ad15a6d4c84b9feb159ecf463de80dae query I rowsort SELECT + col0 FROM tab1 AS cor0 WHERE NOT - col1 <= col1 @@ -6976,8 +7068,15 @@ SELECT ALL * FROM tab0 WHERE NOT - - col2 * + col0 + col1 IS NULL # Datafusion - Expected - 86 # Datafusion - Expected - 97 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, + 86 AS col2 FROM tab0 +---- +15 +86 +86 +86 +87 +97 query II rowsort SELECT 83 col2, - col1 FROM tab0 @@ -8248,8 +8347,11 @@ SELECT ALL ( - + 64 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( 53 ) IS # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, 24 AS col0 FROM tab0, tab0 AS cor0 +---- +24 +9 query I rowsort SELECT + col1 * - col0 + - col2 FROM tab2 AS cor0 @@ -8748,8 +8850,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE col1 = ( NULL ) # Datafusion - Expected - 4118 # Datafusion - Expected - 308 # Datafusion - Expected - 2840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \* cor0\.col1 AS col1" at position 0 and "Int64\(71\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 4 * + + col1 AS col1, 71 * + + col2 AS col1 FROM tab2 AS cor0 +---- +1633 +204 +268 +2840 +308 +4118 query I rowsort label-1441 SELECT DISTINCT - 49 / - + ( + col0 ) AS col2 FROM tab0 AS cor0 @@ -9103,8 +9212,15 @@ NULL # Datafusion - Expected - -22 # Datafusion - Expected - 45 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \- tab1\.col0 AS col1" at position 0 and "Int64\(\-22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 - col0 AS col1, - 22 AS col1 FROM tab1 +---- +-22 +-22 +-22 +-23 +-26 +45 query I rowsort label-1500 SELECT DISTINCT - - SUM ( ALL 51 ) * COUNT ( + + 88 ) AS col0 FROM tab0 AS cor0 @@ -9365,8 +9481,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- min\(\(\- cor0\.col0\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + SUM ( ALL + + col2 ) AS col1, - COUNT ( * ) + + ( - MIN ( ALL + - col0 ) ) AS col1 FROM tab1 AS cor0 +---- +223 +88 query I rowsort SELECT + + 37 col1 FROM tab1 AS cor0 @@ -9596,8 +9715,15 @@ SELECT ALL - ( 7 ) FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, ( + col1 ) FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-1584 SELECT DISTINCT - + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 cor0 @@ -9929,8 +10055,15 @@ SELECT col0 + - col0 + + + 40 * + + col0 * - col2 * + 52 AS col2 FROM tab1 # Datafusion - Expected - 10 # Datafusion - Expected - 81 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, + col2 AS col0 FROM tab0 AS cor0 +---- +1 +10 +21 +47 +81 +99 query I rowsort label-1640 SELECT DISTINCT - 35 + COUNT ( * ) col0 FROM tab0 AS cor0 @@ -11069,8 +11202,11 @@ SELECT DISTINCT - col1 * + 7 col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, + COUNT ( * ) AS col0 FROM tab0 WHERE NULL < NULL +---- +0 +0 query III rowsort SELECT * FROM tab0 WHERE NOT NULL >= col0 @@ -11225,8 +11361,11 @@ SELECT - col1 * ( col0 ) FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "min\(\(\- \(\- CAST\(CAST\(NULL AS Int32\) AS Int32\)\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 col1, MIN ( - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) + - ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0 +---- +63 +NULL query I rowsort SELECT + - 88 col1 FROM tab1 AS cor0 @@ -11808,8 +11947,15 @@ SELECT DISTINCT + - col0 AS col2 FROM tab0 WHERE 29 IS NULL # Datafusion - Expected - 12 # Datafusion - Expected - -5 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col1, 12 AS col1 FROM tab1 +---- +-14 +-47 +-5 +12 +12 +12 query I rowsort label-1952 SELECT col2 / col0 col0 FROM tab2 @@ -11923,8 +12069,15 @@ SELECT - - col2, col1 col0 FROM tab0 AS cor0 # Datafusion - Expected - 19 # Datafusion - Expected - -75 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col2, 19 AS col2 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +19 +19 +19 query I rowsort SELECT col0 * - - col1 AS col1 FROM tab1 @@ -12331,8 +12484,15 @@ SELECT DISTINCT + - SUM ( - 57 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 43 # Datafusion - Expected - 97 # Datafusion - Expected - 132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col0 AS col0" at position 0 and "cor0\.col2 \- \(\- Int64\(33\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * + col0 AS col0, col2 - - + 33 AS col0 FROM tab0 AS cor0 +---- +1215 +132 +1827 +43 +80 +97 query I rowsort SELECT DISTINCT - col0 * + 89 FROM tab0 @@ -12487,8 +12647,15 @@ SELECT ALL - + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \- \(\- tab0\.col0\) \+ \(\- tab0\.col0\) AS col1" at position 0 and "\(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) - - col0 + - col0 AS col1, - col2 AS col1 FROM tab0 +---- +-10 +-47 +-99 +NULL +NULL +NULL query I rowsort label-2059 SELECT - MIN ( - col2 ) AS col0 FROM tab1 WHERE - - col1 >= - - col2 * + + col0 @@ -12592,8 +12759,15 @@ SELECT DISTINCT + + 55 FROM tab0 WHERE NOT NULL IS NULL # Datafusion - Expected - 1271 # Datafusion - Expected - 0 # Datafusion - Expected - 4894 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 / Int64\(\-90\) AS col0" at position 0 and "Int64\(\-61\) \* \(\- tab0\.col1\) \+ \(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 / - 90 AS col0, - 61 * - col1 + - + col2 AS col0 FROM tab0 +---- +-1 +-38 +0 +0 +1271 +4894 query I rowsort label-2075 SELECT + 11 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 @@ -13068,8 +13242,15 @@ SELECT ALL - - 92 * - 57 FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, + col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query II rowsort label-2155 SELECT ALL COUNT ( * ) AS col2, - 60 AS col1 FROM tab0, tab1 AS cor0 @@ -14077,8 +14258,15 @@ SELECT DISTINCT MIN ( + 38 ) + + 42 FROM tab1 # Datafusion - Expected - -41 # Datafusion - Expected - -64 # Datafusion - Expected - -41 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 AS col2, - 41 AS col2 FROM tab1 +---- +-41 +-41 +-41 +-64 +-64 +-64 query I rowsort SELECT DISTINCT col1 + + col2 + + col2 FROM tab0 WHERE NOT - col1 = NULL @@ -14802,8 +14990,15 @@ SELECT - 42 * 54 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - -15 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 15 AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +-15 +-15 +-15 +14 +47 +5 query I rowsort label-2448 SELECT + COUNT ( * ) AS col2 FROM tab0, tab0 AS cor0 @@ -15088,8 +15283,11 @@ SELECT ALL * FROM tab0 WHERE NOT + col2 > + - 10 # 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 col2" at position 0 and "min\(tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 65 AS col2, MIN ( + col1 ) AS col2 FROM tab0 +---- +-65 +1 query III rowsort SELECT DISTINCT * FROM tab2 WHERE + - ( 80 ) * + - 87 + - - 15 + col0 BETWEEN NULL AND NULL @@ -15111,8 +15309,12 @@ SELECT ALL 11 + + 96 FROM tab2 AS cor0 # Datafusion - Expected - 3 # Datafusion - Expected - -24 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(24\)\)\) AS col0" at position 1 and "Int64\(\-96\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT COUNT ( * ) AS col2, + MAX ( - + ( + 24 ) ) AS col0, - 96 col0 FROM tab0 AS cor0 +---- +-24 +-96 +3 query I rowsort SELECT + 90 * + + col1 FROM tab1 AS cor0 @@ -15666,8 +15868,15 @@ SELECT ALL - 18 + - col0 AS col0 FROM tab2 # Datafusion - Expected - -5950 # Datafusion - Expected - -79 # Datafusion - Expected - -6370 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col0" at position 0 and "Int64\(70\) \* \(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 79 AS col0, + 70 * - col0 AS col0 FROM tab1 +---- +-3570 +-5950 +-6370 +-79 +-79 +-79 query II rowsort SELECT 75 AS col0, + 68 FROM tab0 @@ -15763,8 +15972,15 @@ SELECT + col1 FROM tab0 AS cor0 WHERE NOT NULL >= NULL # Datafusion - Expected - 85 # Datafusion - Expected - 99 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, 85 AS col0 FROM tab0 +---- +10 +47 +85 +85 +85 +99 query I rowsort label-2610 SELECT ALL SUM ( ALL - - 48 ) FROM tab2 @@ -16668,8 +16884,15 @@ SELECT ( + - COUNT ( * ) ) - - COUNT ( * ) FROM tab2 # Datafusion - Expected - 7 # Datafusion - Expected - -61 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \- Int64\(75\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 14 - 75 AS col0, 7 AS col0 FROM tab2 +---- +-61 +-61 +-61 +7 +7 +7 query I rowsort label-2766 SELECT 92 + - - col2 / col2 + - 1 + + col0 AS col0 FROM tab1 @@ -16798,8 +17021,10 @@ SELECT DISTINCT - - 5 FROM tab2 AS cor0 WHERE NOT NULL < - 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 313979a032d0e46b40335cd98e525d09 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col1 \* Int64\(\-3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col2 AS col1, + col1 * - 3 AS col1, col0 FROM tab0 AS cor0 +---- +9 values hashing to a7ff10eeee25b9b553002d3223d73e33 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE + 28 NOT IN ( col1, - col2 / - - col0 ) @@ -17600,8 +17825,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * + - col0 >= - col2 + + ( + # Datafusion - Expected - -15 # Datafusion - Expected - -79 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ cor0\.col2 \+ \(\- \(\- \(\- cor0\.col2\)\)\) \* Int64\(81\) / cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col0 + + col2 + - - ( - col2 ) * 81 / + col2 AS col1, - col0 col1 FROM tab0 cor0 +---- +-15 +-158 +-49 +-79 +-87 +-97 query I rowsort SELECT DISTINCT 22 + + col1 col1 FROM tab0 AS cor0 @@ -17851,8 +18083,15 @@ SELECT - col2 * col2 + + col0 FROM tab0 AS cor0 WHERE NULL <= NULL # Datafusion - Expected - -97 # Datafusion - Expected - -99 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \- Int64\(78\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 - 78 AS col2, - col0 AS col2 FROM tab0 AS cor0 +---- +-15 +-159 +-79 +-87 +-97 +-99 query I rowsort SELECT DISTINCT col1 * - 35 + col0 - + 45 AS col2 FROM tab2 @@ -18061,8 +18300,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col2 AND ( NULL ) # Datafusion - Expected - NULL # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) / cor0\.col0 AS col1" at position 0 and "Int64\(96\) \* CAST\(NULL AS Int32\) \+ \(\- \(\- Int64\(\-35\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 / + col0 AS col1, 96 * + CAST ( NULL AS INTEGER ) + - ( - - 35 ) AS col1 FROM tab0 cor0 +---- +-5 +0 +0 +NULL +NULL +NULL query I rowsort label-2994 SELECT - - col0 * - CAST ( 93 AS INTEGER ) col1 FROM tab1 AS cor0 @@ -18248,8 +18494,15 @@ SELECT DISTINCT + ( - + col0 ) * + 58 FROM tab0 AS cor0 # Datafusion - Expected - -3 # Datafusion - Expected - 99 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(\-3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, - 3 AS col1 FROM tab0 AS cor0 +---- +-3 +-3 +-3 +10 +47 +99 query I rowsort SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL @@ -18648,8 +18901,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 +---- +NULL +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 @@ -18658,8 +18914,15 @@ SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, - CAST ( NULL AS INTEGER ) AS # Datafusion - Expected - 75 # Datafusion - Expected - 58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "Int64\(19\) \+ Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, + 19 + + 56 AS col1 FROM tab2 +---- +23 +40 +58 +75 +75 +75 query II rowsort label-3089 SELECT ALL + COUNT ( * ) AS col2, 43 AS col1 FROM tab1 @@ -18707,8 +18970,15 @@ SELECT col0 / - + col1 AS col0 FROM tab0 # Datafusion - Expected - -64 # Datafusion - Expected - NULL # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* CAST\(NULL AS Int32\) \* Int64\(\-43\) \+ cor0\.col2 \* cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) * - 43 + + col2 * + col2 AS col0, - col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL +---- +-46 +-64 +-75 +NULL +NULL +NULL query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT 69 / - 95 * + - 82 <> NULL @@ -18739,8 +19009,15 @@ SELECT ( + ( + col0 ) ) AS col2 FROM tab1 # Datafusion - Expected - 25 # Datafusion - Expected - 20 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col2" at position 0 and "Int64\(49\) \+ Int64\(\-24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 20 AS col2, + 49 + + - 24 col2 FROM tab1 +---- +20 +20 +20 +25 +25 +25 query I rowsort SELECT DISTINCT 24 + + ( col1 ) AS col1 FROM tab0 @@ -19030,8 +19307,11 @@ SELECT - col0, + col1 + + col0 col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 246 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(DISTINCT Int64\(\-65\)\)\) AS col2" at position 0 and "Int64\(\-3\) \* Int64\(\-82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( DISTINCT - 65 ) AS col2, - 3 * + - 82 AS col2 FROM tab1 +---- +-1 +246 query II rowsort SELECT DISTINCT + + 47 col1, col0 FROM tab0 AS cor0 @@ -19834,8 +20114,15 @@ SELECT * FROM tab1 WHERE NOT ( + - 8 * col0 ) NOT BETWEEN NULL AND NULL # Datafusion - Expected - 0 # Datafusion - Expected - -77 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 AS col1, + 0 AS col1 FROM tab2 WHERE NOT col1 IS NULL +---- +-51 +-67 +-77 +0 +0 +0 query II rowsort SELECT ALL col0 AS col2, 44 AS col0 FROM tab1 @@ -19909,8 +20196,15 @@ SELECT ALL * FROM tab0 cor0 WHERE NOT NULL >= - 3 * col1 # Datafusion - Expected - 40 # Datafusion - Expected - -136 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ Int64\(\-78\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 + - 78 col0, col2 AS col0 FROM tab2 AS cor0 +---- +-101 +-118 +-136 +23 +40 +58 query III rowsort SELECT * FROM tab1 AS cor0 WHERE 74 / - - col1 NOT BETWEEN NULL AND NULL @@ -20373,8 +20667,15 @@ SELECT col0 * ( + col1 ) + - 91 + + 29 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 67 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 AS col0, + col1 AS col0 FROM tab0 +---- +1 +21 +67 +67 +67 +81 query I rowsort SELECT ALL - col1 * - - ( 99 ) FROM tab2 @@ -20862,8 +21163,15 @@ SELECT * FROM tab0 cor0 WHERE NOT col0 BETWEEN NULL AND NULL # Datafusion - Expected - 21 # Datafusion - Expected - -25 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(25\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 25 AS col2, col1 col2 FROM tab0 AS cor0 +---- +-25 +-25 +-25 +1 +21 +81 query I rowsort SELECT ALL - - 38 * - 17 AS col1 FROM tab2 AS cor0 @@ -20894,8 +21202,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 +---- +-3 +NULL query I rowsort label-3446 SELECT + CAST ( + col2 AS INTEGER ) col0 FROM tab2 @@ -21667,8 +21978,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 82 / 22 AS col0, ( + SUM ( ALL + col1 ) ) * - COUNT ( * ) AS col0 FROM tab0 +---- +-3 +-309 query I rowsort SELECT DISTINCT - + col0 + - - col1 - - ( - 72 ) + - + col0 + ( - + ( + 86 ) ) * ( + - 30 ) FROM tab1 AS cor0 @@ -22106,8 +22420,15 @@ SELECT MIN ( DISTINCT 20 ) * MIN ( ALL - - col0 ) + - 87 AS col2 FROM tab0 AS co # Datafusion - Expected - 85 # Datafusion - Expected - -8281 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 * + - col0 AS col2, col0 AS col2 FROM tab1 AS cor0 +---- +-2601 +-7225 +-8281 +51 +85 +91 query I rowsort label-3640 SELECT DISTINCT + - col1 / - col0 * + col0 / - + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0 @@ -23266,8 +23587,15 @@ SELECT - col1 * - - col2 * + col0 + col0 FROM tab2 # Datafusion - Expected - 65 # Datafusion - Expected - 81 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ Int64\(13\) AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + 13 AS col2, 65 AS col2 FROM tab1 +---- +109 +65 +65 +65 +72 +81 query I rowsort SELECT + col1 + col2 + + - 72 FROM tab0 @@ -24033,8 +24361,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + SUM ( + + 60 ) AS col2, COUNT ( * ) * + 31 AS col2 FROM tab1 AS cor0 +---- +180 +93 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + col2 * - col1 @@ -24456,8 +24787,15 @@ SELECT 65, col0 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - 41 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 41 AS col2, col1 AS col2 FROM tab1 +---- +14 +41 +41 +41 +47 +5 query I rowsort SELECT DISTINCT + col0 * - 20 FROM tab1 @@ -25567,8 +25905,15 @@ SELECT * FROM tab0 AS cor0 WHERE CAST ( + col0 AS INTEGER ) IS NOT NULL # Datafusion - Expected - -1215 # Datafusion - Expected - 77 # Datafusion - Expected - -1827 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \+ \(\- tab0\.col2\) AS col2" at position 0 and "tab0\.col0 \* \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 + - col2 col2, + col0 * - col1 AS col2 FROM tab0 +---- +-1215 +-1827 +-2 +-32 +-97 +77 query I rowsort SELECT - col1 * - col0 * - + 1 FROM tab0 WHERE NULL <> NULL @@ -25625,8 +25970,15 @@ SELECT col1 * + + col0 FROM tab1 cor0 # Datafusion - Expected - 39 # Datafusion - Expected - 96 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, 39 AS col1 FROM tab1 AS cor0 +---- +39 +39 +39 +59 +68 +96 query I rowsort label-4227 SELECT ALL ( + 44 ) * - - SUM ( ALL - 30 ) FROM tab0 AS cor0 @@ -26660,8 +27012,15 @@ NULL # Datafusion - Expected - -34 # Datafusion - Expected - 45 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "\(\- cor0\.col1\) \- CAST\(\(\- cor0\.col2\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 45 AS col1, - col1 - + + CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 cor0 +---- +-11 +-34 +45 +45 +45 +98 query I rowsort SELECT + + 77 FROM tab2 cor0 @@ -26883,8 +27242,11 @@ SELECT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN - + col0 + + 60 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, COUNT ( * ) col1 FROM tab1 +---- +3 +3 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -27100,8 +27462,15 @@ SELECT DISTINCT - - MIN ( col2 ) FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - -22 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 22 AS col0, col2 AS col0 FROM tab0 +---- +-22 +-22 +-22 +10 +47 +99 query I rowsort SELECT DISTINCT + col1 * 38 AS col0 FROM tab0 AS cor0 @@ -28484,8 +28853,11 @@ SELECT + CAST ( + 26 AS INTEGER ) FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col1" at position 0 and "Int64\(44\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 85 AS col1, 44 * + COUNT ( * ) col1 FROM tab2 AS cor0 +---- +132 +85 query I rowsort label-4698 SELECT + col2 + - - col1 + + CAST ( NULL AS INTEGER ) col1 FROM tab0 @@ -28950,8 +29322,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, 33 AS col1 FROM tab0 +---- +-3 +33 query I rowsort label-4777 SELECT + COUNT ( DISTINCT - + col1 ) AS col2 FROM tab1 @@ -28974,8 +29349,9 @@ SELECT + MAX ( + col2 ) AS col2 FROM tab1 96 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col2 AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 * col2 AS col0, 34 AS col0 FROM tab1 cor0 WHERE 58 IS NULL +---- query II rowsort SELECT ALL - - col1 AS col0, - ( + col2 ) + - + col2 + - 22 + + col2 AS col1 FROM tab1 AS cor0 @@ -29183,8 +29559,9 @@ SELECT ALL - col1 + ( - 8 ) AS col0 FROM tab2 AS cor0 -85 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col1 AS col2" at position 0 and "Int64\(19\) \* Int64\(68\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + + col1 AS col2, + 19 * + 68 * + col2 col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL ) +---- query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE col0 < 78 @@ -29207,8 +29584,15 @@ SELECT DISTINCT col1 + col1 + - + 25 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -210 # Datafusion - Expected - 81 # Datafusion - Expected - -3807 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col2 \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, col2 * - + col1 AS col2 FROM tab0 AS cor0 +---- +-210 +-3807 +-99 +1 +21 +81 query III rowsort label-4818 SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( col2, CAST ( 72 AS INTEGER ) ) @@ -29944,8 +30328,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 ) > NULL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-4935 SELECT - COUNT ( ALL - col1 ) FROM tab1 cor0 @@ -30403,8 +30794,15 @@ NULL # Datafusion - Expected - 295 # Datafusion - Expected - 18867 # Datafusion - Expected - 1344 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- cor0\.col1\) \* \(\- cor0\.col2\) \* cor0\.col1 AS col0" at position 0 and "cor0\.col1 \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 + - + col1 * - col2 * + col1 AS col0, col1 * + col2 col0 FROM tab1 AS cor0 +---- +1344 +150303 +1560 +18867 +295 +3196 query I rowsort SELECT - - col1 + + + col1 AS col2 FROM tab2 AS cor0 @@ -31478,8 +31876,11 @@ SELECT ALL + 90 / + SUM ( + + col2 ) col1 FROM tab2 AS cor0 # 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\(80\) \+ \(\- avg\(DISTINCT \(\- cor0\.col0\)\)\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT 80 + + ( - AVG ( DISTINCT + - col0 ) ) AS col2, 48 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL +---- +48 +NULL query I rowsort SELECT ALL 12 AS col2 FROM tab2 AS cor0 WHERE 66 = - 74 @@ -31786,8 +32187,15 @@ SELECT DISTINCT - col2 + + col0 AS col1, + col2 AS col0 FROM tab2 # Datafusion - Expected - -64 # Datafusion - Expected - -75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0, - col0 FROM tab2 AS cor0 +---- +-46 +-46 +-64 +-64 +-75 +-75 query I rowsort SELECT col2 FROM tab2 AS cor0 WHERE ( + col1 ) + + + col1 IS NOT NULL @@ -34262,8 +34670,15 @@ SELECT COUNT ( DISTINCT + - 73 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-5641 SELECT + 49 * + + COUNT ( DISTINCT - 51 ) FROM tab0 AS cor0 @@ -34389,8 +34804,11 @@ SELECT 64 * - col0 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 81 AS col1 FROM tab2 AS cor0 WHERE CAST ( - ( - - col2 ) AS INTEGER ) BETWEEN - col0 AND NULL +---- +0 +81 query I rowsort SELECT ALL col1 * - col1 + + col1 AS col2 FROM tab0 AS cor0 @@ -34740,8 +35158,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ), + COUNT ( * ) FROM tab1 +---- +3 +3 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -35334,8 +35755,15 @@ SELECT ALL COUNT ( ALL col0 ) AS col0 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - -97 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 97 AS col0, col1 col0 FROM tab1 +---- +-97 +-97 +-97 +14 +47 +5 query I rowsort SELECT + - col1 * + 21 + 93 * - - 5 + - col0 FROM tab2 WHERE NOT - - col0 <> col2 * + col1 + + + ( col1 ) @@ -36064,8 +36492,15 @@ SELECT DISTINCT + col2 + + - col1 FROM tab2 AS cor0 WHERE 81 IS NULL # Datafusion - Expected - -68 # Datafusion - Expected - 0 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) / \(\- cor0\.col0\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( col1 ) / - col0 AS col2, - ( col2 ) AS col2 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +0 +0 +0 query III rowsort SELECT * FROM tab0 WHERE NOT 60 - - col2 * - - col2 * + col2 + - 42 IS NOT NULL @@ -36882,8 +37317,15 @@ SELECT - col0 + - col0 * col2 FROM tab0 # Datafusion - Expected - -2471 # Datafusion - Expected - 4350 # Datafusion - Expected - -4261 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* tab2\.col2 AS col0" at position 0 and "tab2\.col2 \* \(\- tab2\.col0\) \+ Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 * col2 AS col0, ( col2 ) * - col0 + 89 col0 FROM tab2 +---- +-2471 +-4261 +-969 +1058 +2560 +4350 query I rowsort label-6086 SELECT SUM ( + col0 ) + + 88 + - COUNT ( * ) * + + 12 AS col1 FROM tab1 @@ -37017,8 +37459,15 @@ SELECT + col0 col1, + 2 AS col0 FROM tab0 cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 / cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, + col1 / + col0 AS col2 FROM tab0 AS cor0 +---- +0 +0 +1 +21 +5 +81 query I rowsort label-6109 SELECT COUNT ( - ( + col0 ) ) AS col0 FROM tab0 AS cor0 @@ -37073,8 +37522,11 @@ 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\(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\. +query II valuesort SELECT + - COUNT ( * ), - COUNT ( * ) FROM tab2 AS cor0 +---- +-3 +-3 query III rowsort SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - 60 AND NULL @@ -37295,8 +37747,15 @@ SELECT ALL * FROM tab1 WHERE + + col1 IS NOT NULL # Datafusion - Expected - 11 # Datafusion - Expected - 975 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* Int64\(13\) AS col1" at position 0 and "Int64\(51\) \+ \(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 * + 13 AS col1, 51 + - col2 AS col1 FROM tab2 +---- +-7 +11 +28 +598 +832 +975 query I rowsort SELECT + 64 + - 53 FROM tab1 AS cor0 @@ -37517,8 +37976,15 @@ SELECT + + 90 * + col1 * + col0 - - col1 FROM tab0 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - 99 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(\-67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, - 67 AS col1 FROM tab0 AS cor0 +---- +-67 +-67 +-67 +10 +47 +99 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0, col2 + col2 ) @@ -38484,8 +38950,9 @@ SELECT * FROM tab0 WHERE NULL IN ( - - col1 / - col1, - col2 ) ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "\(\- Int64\(62\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 36 col1, - ( + 62 ) AS col1 FROM tab1 WHERE + col1 * 16 IS NULL +---- query I rowsort label-6345 SELECT ALL + COUNT ( * ) AS col2 FROM tab2 WHERE NOT col0 IS NULL @@ -38590,8 +39057,15 @@ SELECT + SUM ( + col2 ) AS col2 FROM tab2 # Datafusion - Expected - -39 # Datafusion - Expected - -58 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col2" at position 0 and "Int64\(\-39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col2, - 39 col2 FROM tab2 +---- +-23 +-39 +-39 +-39 +-40 +-58 query I rowsort SELECT ALL 6 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL @@ -39542,8 +40016,11 @@ SELECT - + CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(29\) AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( 29 AS INTEGER ) AS col2, - COUNT ( * ) AS col2 FROM tab1 cor0 +---- +-3 +29 query I rowsort SELECT DISTINCT - 28 * - 7 / + 15 AS col1 FROM tab1 AS cor0 WHERE NULL <= 70 + - col2 * + col0 @@ -40599,8 +41076,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * - 42 * - COUNT ( + 43 ) AS col0, - COUNT ( * ) AS col0 FROM tab1 +---- +-3 +378 query I rowsort label-6697 SELECT COUNT ( DISTINCT + col1 ) FROM tab2 @@ -40932,8 +41412,15 @@ SELECT - col2 + + + col2 FROM tab0 cor0 # Datafusion - Expected - 1 # Datafusion - Expected - 700 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ Int64\(\-54\) \* \(\- cor0\.col2\) \+ Int64\(73\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 + - 54 * - col2 + 73 col0, col1 col0 FROM tab0 AS cor0 +---- +1 +21 +2626 +5516 +700 +81 query I rowsort label-6750 SELECT ALL + + ( + COUNT ( * ) ) + - COUNT ( * ) * + - 11 - + - COUNT ( * ) FROM tab2 AS cor0 @@ -41589,8 +42076,15 @@ SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE + col0 IS NULL # Datafusion - Expected - 159 # Datafusion - Expected - 5 # Datafusion - Expected - 144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col2 \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, col2 + col0 AS col2 FROM tab1 AS cor0 +---- +14 +144 +147 +159 +47 +5 query I rowsort SELECT DISTINCT 40 col0 FROM tab1 AS cor0 @@ -41600,8 +42094,11 @@ SELECT DISTINCT 40 col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + COUNT ( * ) AS INTEGER ), COUNT ( * ) FROM tab2 AS cor0 +---- +3 +3 query I rowsort label-6859 SELECT DISTINCT SUM ( - + col0 ) * COUNT ( * ) FROM tab2 AS cor0 @@ -42517,8 +43014,11 @@ SELECT * FROM tab2 AS cor0 WHERE NOT + 41 < ( - - 31 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, 42 AS col0 FROM tab0 AS cor0 +---- +3 +42 query I rowsort SELECT + + col2 * - 67 AS col0 FROM tab1 AS cor0 @@ -42634,8 +43134,10 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE 42 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 8436f2e769c2d49807ca3fce93d4e61d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-86\)\) AS col0" at position 0 and "Int64\(11\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - ( - 86 ) AS col0, + col2 + - + 47 * - - col1 col1, 11 AS col0 FROM tab0 AS cor0 +---- +9 values hashing to 84fc1293c135df7095b56d808d093d17 query I rowsort SELECT ALL - + col2 * - + ( + col2 ) + col2 AS col2 FROM tab2 AS cor0 @@ -42646,8 +43148,10 @@ SELECT ALL - + col2 * - + ( + col2 ) + col2 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 6bfbd1a8d5b27785f14b8718ab2da4ab -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col2" at position 0 and "Int64\(18\) \+ \(\- \(\- Int64\(\-56\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - col0 col2, 18 + - ( - - 56 ) col2, col1 * - 5 FROM tab1 +---- +9 values hashing to 2f1f1a8c55199a78532b04d5c04cec91 query I rowsort SELECT col1 + + 18 + + 75 * + + 56 col0 FROM tab0 @@ -42950,8 +43454,11 @@ SELECT ALL 39 * + 78 * + + col0 col0, col1 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 64 AS col0, COUNT ( * ) AS col0 FROM tab2 +---- +-64 +3 query III rowsort SELECT * FROM tab2 WHERE NOT - 51 <> - col2 * + col2 * + 59 @@ -43684,8 +44191,15 @@ SELECT + col2 * + 75 * col0 AS col2 FROM tab1 # Datafusion - Expected - 203 # Datafusion - Expected - -97 # Datafusion - Expected - 223 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col1" at position 0 and "Int64\(56\) \* Int64\(4\) \+ \(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, + 56 * + 4 + + - col1 AS col1 FROM tab0 +---- +-15 +-87 +-97 +143 +203 +223 query I rowsort SELECT + col0 col2 FROM tab0 WHERE NOT ( NOT col2 IS NULL ) @@ -43830,8 +44344,9 @@ SELECT ALL + 71 - + col0 AS col1, col2 * - col1 * - col1 AS col2 FROM tab1 18816 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) / tab1\.col1 AS col0" at position 0 and "\(\- tab1\.col0\) \+ Int64\(\-58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 / + col1 AS col0, - col0 + - 58 AS col0 FROM tab1 WHERE NULL IS NOT NULL +---- query I rowsort label-7236 SELECT DISTINCT + col2 * - col1 - + CAST ( 73 AS INTEGER ) AS col2 FROM tab0 @@ -44442,8 +44957,15 @@ SELECT + 97 * + + col0 FROM tab1 # Datafusion - Expected - 91 # Datafusion - Expected - -96 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 col2, + col0 AS col2 FROM tab1 +---- +-59 +-68 +-96 +51 +85 +91 query I rowsort label-7335 SELECT DISTINCT + COUNT ( ALL - - ( + ( col0 ) ) ) AS col0 FROM tab1 @@ -45186,8 +45708,15 @@ SELECT * FROM tab1 WHERE NOT NULL >= col0 # Datafusion - Expected - -3465 # Datafusion - Expected - -1650 # Datafusion - Expected - -3015 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \* Int64\(22\) AS col0" at position 0 and "tab2\.col1 \* Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 * 22 AS col0, col1 * + - 45 col0 FROM tab2 +---- +-1012 +-1408 +-1650 +-2295 +-3015 +-3465 query I rowsort label-7464 SELECT ALL col2 * + - 59 * CAST ( NULL AS INTEGER ) * + col1 * + - 28 * 92 / col2 * + 14 FROM tab2 cor0 @@ -46616,8 +47145,11 @@ SELECT col1 + CAST ( - col0 AS INTEGER ) FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col1 + + - 67 IS NOT NULL +---- +3 +3 query I rowsort label-7697 SELECT + 6 + MIN ( - 82 ) AS col1 FROM tab1 @@ -46698,8 +47230,15 @@ SELECT + 29 col0 FROM tab0 # Datafusion - Expected - 40 # Datafusion - Expected - 30 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 30 AS col1, col2 AS col1 FROM tab2 +---- +23 +30 +30 +30 +40 +58 query III rowsort SELECT ALL * FROM tab1 WHERE NOT ( - - col2 ) BETWEEN ( NULL ) AND + col0 @@ -47689,8 +48228,15 @@ NULL # Datafusion - Expected - 163 # Datafusion - Expected - 75 # Datafusion - Expected - 153 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(86\) \+ cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, 86 + col1 AS col2 FROM tab2 AS cor0 +---- +137 +153 +163 +46 +64 +75 query I rowsort SELECT ALL + col2 * - 66 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL @@ -48039,8 +48585,15 @@ NULL # Datafusion - Expected - 70 # Datafusion - Expected - 96 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, + 70 AS col0 FROM tab1 cor0 +---- +59 +68 +70 +70 +70 +96 query I rowsort SELECT ALL 59 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 @@ -48348,8 +48901,15 @@ SELECT ALL + - 31 + - col0 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 92 # Datafusion - Expected - -903264 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* \(\- tab0\.col0\) \* \(\- \(\- tab0\.col0\)\) AS col0" at position 0 and "Int64\(31\) \+ Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 96 * - col0 * + - ( - col0 ) AS col0, + 31 + 61 col0 FROM tab0 +---- +-21600 +-726624 +-903264 +92 +92 +92 query I rowsort SELECT + col0 + col0 * + - col2 + + 74 col1 FROM tab1 cor0 @@ -48465,8 +49025,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN - col2 * - col1 AND NULL # Datafusion - Expected - 67 # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) col0, col1 AS col0 FROM tab2 AS cor0 +---- +51 +67 +77 +NULL +NULL +NULL query I rowsort SELECT DISTINCT 28 * + - col2 FROM tab1 AS cor0 @@ -48938,8 +49505,11 @@ SELECT DISTINCT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 44 AS col0, 14 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 +---- +14 +44 query III rowsort SELECT * FROM tab2 WHERE NOT + 99 * - col2 IS NULL @@ -49067,8 +49637,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ), - COUNT ( * ) FROM tab2 +---- +-3 +-3 query III rowsort SELECT * FROM tab2 WHERE NOT NULL = - col1 @@ -49182,8 +49755,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 24 + + SUM ( ALL + 35 ) col1, - COUNT ( * ) AS col1 FROM tab2 +---- +-3 +81 query I rowsort SELECT + col2 * 45 * + 54 FROM tab2 AS cor0 @@ -49614,8 +50190,15 @@ SELECT ALL CAST ( - SUM ( col1 ) AS INTEGER ) AS col0 FROM tab0 # Datafusion - Expected - -91 # Datafusion - Expected - 96 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "\(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 col1, - col0 AS col1 FROM tab1 +---- +-51 +-85 +-91 +59 +68 +96 query I rowsort label-8192 SELECT ALL + col1 * - + 0 / + col0 + - + col1 + + col0 + - col2 + 71 * - - col0 + + col1 * + col0 AS col2 FROM tab1 cor0 @@ -49782,8 +50365,15 @@ SELECT DISTINCT + col2 + + col1 AS col2, 29 FROM tab1 AS cor0 # Datafusion - Expected - -2820 # Datafusion - Expected - 80 # Datafusion - Expected - -300 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col0 AS col1" at position 0 and "Int64\(60\) \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 + col0 AS col1, 60 * - col1 AS col1 FROM tab1 AS cor0 +---- +-2820 +-300 +-840 +37 +44 +80 query I rowsort SELECT - - col1 * - - 31 * - 47 - 44 AS col0 FROM tab2 cor0 WHERE ( NULL ) IS NULL @@ -49890,8 +50480,15 @@ SELECT ALL + + 87 * + COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Expected - 1 # Datafusion - Expected - 9 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / cor0\.col0 \+ \(\- Int64\(24\)\) \+ cor0\.col1 \* Int64\(32\) AS col2" at position 0 and "cor0\.col1 / cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 / + + ( + col0 ) + - + 24 + col1 * + + 32 AS col2, col1 / + + col1 AS col2 FROM tab0 AS cor0 +---- +1 +1 +1 +2569 +649 +9 query I rowsort label-8237 SELECT ALL - col1 / - 83 FROM tab2 AS cor0 @@ -50190,8 +50787,11 @@ 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\(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\. +query II valuesort SELECT + + COUNT ( * ), COUNT ( * ) FROM tab2 cor0 +---- +3 +3 query I rowsort SELECT ALL + 67 * - col2 + - col2 AS col1 FROM tab1 AS cor0 @@ -51188,8 +51788,15 @@ SELECT + - 41 AS col2, col0 FROM tab0 AS cor0 # Datafusion - Expected - 11 # Datafusion - Expected - 28 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 0 and "CAST\(Int64\(11\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 28 AS col0, CAST ( 11 AS INTEGER ) AS col0 FROM tab0 AS cor0 +---- +11 +11 +11 +28 +28 +28 query I rowsort label-8455 SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 70 FROM tab1 AS cor0 @@ -51822,8 +52429,15 @@ SELECT - 83, - col0 AS col2 FROM tab1 # Datafusion - Expected - 67 # 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 "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 84 AS col2, col1 AS col2 FROM tab2 +---- +-84 +-84 +-84 +51 +67 +77 query II rowsort SELECT + 85, + col0 col2 FROM tab1 AS cor0 @@ -51853,8 +52467,15 @@ SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) <= + 75 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 AS col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-8558 SELECT ALL COUNT ( * ) + 19 FROM tab0 AS cor0 WHERE NULL IS NULL @@ -52597,8 +53218,15 @@ SELECT - - col1 + col0 * + + ( + 20 ) + 62 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-29\)\) AS col0" at position 0 and "CAST\(NULL AS Float64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - - 29 AS col0, CAST ( NULL AS FLOAT8 ) AS col0 FROM tab0 WHERE 62 IS NOT NULL +---- +29 +29 +29 +NULL +NULL +NULL query I rowsort SELECT - 55 - col0 / 41 * col1 AS col2 FROM tab1 WHERE NULL NOT BETWEEN col1 AND NULL @@ -52711,8 +53339,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( 62 ) + - col1 AND - # Datafusion - Expected - -9 # Datafusion - Expected - 74 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \+ \(\- \(\- cor0\.col2\)\) AS col2" at position 0 and "cor0\.col2 \+ \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col1 + - - ( col2 ) col2, + col2 + - + ( col1 ) AS col2 FROM tab2 AS cor0 +---- +-28 +-37 +-9 +117 +125 +74 query I rowsort label-8697 SELECT - COUNT ( * ) AS col1 FROM tab2 cor0 WHERE - col0 >= - ( + - col1 ) @@ -52813,8 +53448,15 @@ NULL # Datafusion - Expected - -305 # Datafusion - Expected - 6 # Datafusion - Expected - -667 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col0" at position 0 and "Int64\(44\) \* \(\- cor0\.col1\) \+ \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 AS col0, + ( 44 ) * - + col1 + + ( - + col0 ) AS col0 FROM tab1 AS cor0 +---- +-2159 +-305 +-667 +6 +6 +6 query I rowsort label-8712 SELECT DISTINCT - - COUNT ( * ) - + - 2 * + 51 FROM tab0 AS cor0 @@ -53056,8 +53698,15 @@ SELECT - col0, ( - + col2 ) + + col2 AS col2 FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - 97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col2, col1 AS col2 FROM tab0 WHERE - col1 IS NOT NULL +---- +1 +15 +21 +81 +87 +97 query I rowsort label-8751 SELECT COUNT ( ( + + 74 ) ) AS col1 FROM tab2 @@ -53779,8 +54428,15 @@ SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE NOT - - 53 * + col2 * + + col2 IS # Datafusion - Expected - 49 # Datafusion - Expected - 5 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 \+ \(\- Int64\(\-2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, + col1 + - - 2 AS col2 FROM tab1 AS cor0 +---- +14 +16 +47 +49 +5 +7 query I rowsort SELECT - 27 + 60 AS col2 FROM tab0 cor0 @@ -54173,8 +54829,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) - + - COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab1 +---- +-3 +6 query I rowsort label-8943 SELECT ALL - - col0 AS col2 FROM tab0 WHERE CAST ( NULL AS INTEGER ) + - 6 IS NULL @@ -54318,8 +54977,15 @@ SELECT ALL col0 + - + col1 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -54 # Datafusion - Expected - -91 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col2\) \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col1, - col2 + + col1 AS col1 FROM tab1 AS cor0 WHERE - col0 * + CAST ( NULL AS INTEGER ) IS NULL +---- +-21 +-51 +-54 +-82 +-85 +-91 query I rowsort SELECT DISTINCT 52 + col2 - + 84 * - 94 FROM tab0 AS cor0 @@ -54371,8 +55037,15 @@ SELECT ALL 17 + - - COUNT ( * ) AS col2 FROM tab0 # Datafusion - Expected - 7776 # Datafusion - Expected - 99 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "tab0\.col1 \* Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, col1 * 96 AS col1 FROM tab0 +---- +10 +2016 +47 +7776 +96 +99 query I rowsort label-8972 SELECT DISTINCT - + COUNT ( * ) / + 41 * 36 / + COUNT ( * ) * + SUM ( + col2 ) FROM tab2 WHERE NOT - ( + col2 ) IS NULL @@ -54407,8 +55080,15 @@ SELECT DISTINCT - col1 AS col2, + col2 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 96 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- \(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col1, - ( - col1 ) AS col1 FROM tab1 cor0 +---- +14 +47 +5 +59 +68 +96 query I rowsort label-8977 SELECT ALL + ( COUNT ( * ) ) * + 50 * ( 93 ) AS col1 FROM tab0 @@ -54805,8 +55485,15 @@ SELECT col0 / col1 / + 20 FROM tab1 # Datafusion - Expected - 3080 # Datafusion - Expected - -75 # Datafusion - Expected - 3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "tab2\.col1 \* tab2\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col2, col1 * col2 AS col2 FROM tab2 +---- +-46 +-64 +-75 +1173 +3080 +3886 query II rowsort label-9042 SELECT DISTINCT + COUNT ( * ) AS col0, 77 FROM tab1 @@ -54821,8 +55508,15 @@ SELECT DISTINCT + COUNT ( * ) AS col0, 77 FROM tab1 # Datafusion - Expected - 85 # Datafusion - Expected - -94 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 94 AS col1, col0 AS col1 FROM tab1 +---- +-94 +-94 +-94 +51 +85 +91 query I rowsort SELECT DISTINCT 47 - + col1 AS col2 FROM tab1 WHERE NOT NULL IS NULL @@ -54858,8 +55552,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT + 29 > NULL # Datafusion - Expected - -47 # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col2 \- Int64\(15\) \* \(\- Int64\(39\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * + + col2 - + 15 * - ( + 39 ) * - CAST ( NULL AS INTEGER ) AS col0, ( - col2 ) AS col0 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +NULL +NULL +NULL query I rowsort SELECT ALL - 12 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 @@ -55673,8 +56374,15 @@ SELECT CAST ( NULL AS FLOAT8 ) / 51 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS # Datafusion - Expected - 495 # Datafusion - Expected - 89 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col0" at position 0 and "Int64\(5\) \* tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 89 AS col0, + 5 * col2 AS col0 FROM tab0 +---- +235 +495 +50 +89 +89 +89 query I rowsort label-9178 SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT + 71 + 42 + - col1 / - - col0 * + CAST ( NULL AS FLOAT8 ) * - - ( - + 6 ) IS NULL @@ -55921,8 +56629,15 @@ SELECT - - ( MIN ( - - col1 ) ) * - COUNT ( * ), - 99 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, col2 AS col1 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT ALL + col2 + - - 57 FROM tab1 AS cor0 @@ -56909,8 +57624,15 @@ SELECT 48 * - + col0 + - col0 + + col2 AS col1 FROM tab2 # Datafusion - Expected - -3807 # Datafusion - Expected - 77 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \+ Int64\(62\) AS col2" at position 0 and "\(\- tab0\.col2\) \* tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 15 + + 62 AS col2, - col2 * col1 AS col2 FROM tab0 +---- +-210 +-3807 +-99 +77 +77 +77 query I rowsort label-9387 SELECT - col1 + + + col0 / - col1 AS col1 FROM tab2 @@ -56972,8 +57694,15 @@ SELECT * FROM tab1 WHERE NOT + ( + 72 ) < NULL # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "CAST\(tab2\.col1 AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT ALL 4 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL @@ -57370,8 +58099,15 @@ SELECT ALL 22 * MIN ( + col0 ) AS col2 FROM tab2 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col1, col1 FROM tab2 WHERE NOT NULL IS NOT NULL +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT DISTINCT + 38 * - col1 * - col2 AS col2 FROM tab2 @@ -57688,14 +58424,24 @@ SELECT 58 / MAX ( + + col1 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -57 # Datafusion - Expected - -1950 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(26\) AS col0" at position 0 and "Int64\(\-57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 * 26 AS col0, - 57 AS col0 FROM tab2 AS cor0 +---- +-1196 +-1664 +-1950 +-57 +-57 +-57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 78 AS col2, COUNT ( * ) AS col2 FROM tab0 +---- +3 +78 query I rowsort SELECT - 29 * col2 AS col0 FROM tab0 WHERE NOT - - 25 IS NULL @@ -58049,8 +58795,15 @@ SELECT ALL - col2 + + 90 FROM tab2 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 85 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ cor0\.col0 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 39 + col0 AS col0, + col1 AS col0 FROM tab2 AS cor0 +---- +103 +114 +51 +67 +77 +85 query I rowsort SELECT - 87 * - + col1 * + + 91 + 49 - - - col0 AS col2 FROM tab0 AS cor0 @@ -58722,8 +59475,15 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - -96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 +---- +-59 +-68 +-96 +NULL +NULL +NULL query I rowsort SELECT + col0 * + col1 FROM tab1 AS cor0 WHERE NOT NULL <= NULL @@ -58833,8 +59593,15 @@ SELECT 6 + - col1 AS col0 FROM tab1 # Datafusion - Expected - 54 # Datafusion - Expected - 77 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col0, 54 AS col0 FROM tab2 +---- +51 +54 +54 +54 +67 +77 query I rowsort label-9696 SELECT ALL MAX ( ALL 75 ) AS col0 FROM tab1 @@ -59301,8 +60068,15 @@ SELECT * FROM tab2 AS cor0 WHERE - col1 NOT IN ( 9 ) # Datafusion - Expected - -47 # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + CAST ( NULL AS INTEGER ) AS col1, - col2 AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +NULL +NULL +NULL query I rowsort label-9779 SELECT ALL - - MIN ( DISTINCT col2 ) + COUNT ( * ) / - + COUNT ( * ) FROM tab0 cor0 diff --git a/data/sqlite/random/aggregates/slt_good_71.slt b/data/sqlite/random/aggregates/slt_good_71.slt index 19ddf87..beb9b65 100644 --- a/data/sqlite/random/aggregates/slt_good_71.slt +++ b/data/sqlite/random/aggregates/slt_good_71.slt @@ -540,8 +540,15 @@ SELECT ALL - 42 / + - col2, - col0 AS col2 FROM tab2 # Datafusion - Expected - 51 # Datafusion - Expected - 159 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ tab1\.col2 AS col2" at position 0 and "\(\- \(\- tab1\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 + + col2 AS col2, - ( - + col0 ) AS col2 FROM tab1 +---- +144 +147 +159 +51 +85 +91 query I rowsort label-81 SELECT ALL - col0 + + col0 + - 65 * + - CAST ( col0 AS INTEGER ) FROM tab0 @@ -691,8 +698,12 @@ SELECT ALL + 11, col1 AS col0 FROM tab1 # Datafusion - Expected - 19 # Datafusion - Expected - 103 # 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 "sum\(cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - - 19 AS col1, SUM ( col1 ) AS col1, - - COUNT ( * ) FROM tab0 AS cor0 +---- +103 +19 +3 query I rowsort label-105 SELECT MAX ( - - 45 ) col1 FROM tab1 AS cor0 @@ -1243,8 +1254,15 @@ SELECT + 98 AS col1, - 10 + col1 FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NOT NUL # Datafusion - Expected - NULL # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / \(\- CAST\(\(\- Int64\(\-41\)\) AS Int32\)\) AS col0" at position 0 and "cor0\.col2 \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 / - CAST ( - - 41 AS INTEGER ) AS col0, + col2 * + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 +---- +-1 +0 +0 +NULL +NULL +NULL query I rowsort label-199 SELECT ALL + 24 / SUM ( - col0 ) FROM tab0 AS cor0 @@ -1417,8 +1435,15 @@ NULL # Datafusion - Expected - 0 # Datafusion - Expected - -5 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col2" at position 0 and "\(\- Int64\(63\)\) \+ tab2\.col2 \+ Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 5 AS col2, - ( 63 ) + + col2 + + + 23 AS col2 FROM tab2 +---- +-17 +-5 +-5 +-5 +0 +18 query I rowsort SELECT + col2 + - - 24 AS col1 FROM tab1 WHERE - ( + col2 ) NOT BETWEEN NULL AND - col1 @@ -2608,8 +2633,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 20 * + col0 IS NULL # Datafusion - Expected - -93 # Datafusion - Expected - 99 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(\-93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col1, - 93 AS col1 FROM tab0 cor0 +---- +-93 +-93 +-93 +10 +47 +99 query I rowsort label-427 SELECT DISTINCT ( + COUNT ( + 74 ) ) AS col0 FROM tab2 AS cor0 @@ -2739,8 +2771,11 @@ SELECT * FROM tab1 WHERE NOT - + 45 + - - col0 * + col1 * - + col1 IS NOT NULL # 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 "max\(\(\- \(\- Int64\(8\)\)\)\) AS col1" at position 0 and "Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( ALL - - ( + + 8 ) ) AS col1, 61 col1 FROM tab1 AS cor0 +---- +61 +8 query I rowsort label-449 SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + ( 44 ) + - 59 < NULL @@ -3312,8 +3347,15 @@ SELECT - ( - + col0 ) * + + col2 * - col1 * - - 1 col0 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - -21 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 21 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 +---- +-21 +-21 +-21 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 88 * + col0 >= - col0 + 75 * 53 + + col0 @@ -3333,8 +3375,15 @@ SELECT - 25, + 53 + - + COUNT ( * ) AS col2 FROM tab0 cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col2, col2 AS col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT ( - + col2 ) * - col2 * - 31 * + + 17 FROM tab2 WHERE NOT - - col2 = + - 92 * + + col2 + col1 @@ -5486,8 +5535,15 @@ NULL # Datafusion - Expected - 6 # Datafusion - Expected - 93 # Datafusion - Expected - 220 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ \(\- CAST\(\(\- cor0\.col1\) AS Int32\)\) AS col1" at position 0 and "cor0\.col0 \- cor0\.col1 \+ cor0\.col2 \+ \(\- Int64\(\-25\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 92 + - CAST ( - col1 AS INTEGER ) AS col1, + col0 - + col1 + + col2 + - - 25 col1 FROM tab0 cor0 +---- +101 +113 +173 +220 +6 +93 query I rowsort label-902 SELECT + - COUNT ( * ) + - ( - COUNT ( * ) ) + + 31 AS col1 FROM tab0 AS cor0 @@ -6496,8 +6552,15 @@ SELECT ALL col1, + col2 FROM tab0 # Datafusion - Expected - -58 # Datafusion - Expected - 74 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \+ tab2\.col2 AS col2" at position 0 and "\(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + + col2 col2, - col2 AS col2 FROM tab2 +---- +-23 +-40 +-58 +117 +125 +74 query I rowsort label-1065 SELECT DISTINCT + 56 / - + col1 FROM tab1 @@ -6536,8 +6599,11 @@ SELECT DISTINCT * FROM tab0 WHERE + 69 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- min\(\(\- tab1\.col2\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, - MIN ( + - col2 ) AS col2 FROM tab1 +---- +3 +96 query I rowsort label-1071 SELECT ALL - + COUNT ( * ) + + 98 FROM tab2 AS cor0 @@ -7461,8 +7527,15 @@ SELECT - + col0 AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND 17 # Datafusion - Expected - 47 # Datafusion - Expected - -1 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 / \(\- tab0\.col1\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 / - col1 AS col1, + col2 AS col1 FROM tab0 +---- +-1 +-1 +-1 +10 +47 +99 query I rowsort SELECT 53 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL @@ -8079,8 +8152,15 @@ SELECT SUM ( DISTINCT - ( - 74 ) ) FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col1, col1 AS col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT col1 * - + 68 + - 30 FROM tab0 AS cor0 @@ -8649,8 +8729,15 @@ SELECT * FROM tab2 AS cor0 WHERE NULL > - + col0 OR - 19 IS NULL # Datafusion - Expected - 21 # Datafusion - Expected - 922961 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* cor0\.col1 \+ Int64\(47\) \+ \(\- \(\- cor0\.col0\)\) \* Int64\(51\) \* cor0\.col0 \* cor0\.col1 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 * + + col1 + 47 + - - col0 * 51 * + col0 * + ( col1 ) AS col2, col1 AS col2 FROM tab0 cor0 +---- +1 +21 +479905 +81 +8106005 +922961 query I rowsort label-1429 SELECT DISTINCT 28 + - COUNT ( * ) FROM tab1 cor0 WHERE NULL IS NULL @@ -8938,8 +9025,15 @@ SELECT ALL + - CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 cor0 # Datafusion - Expected - -58 # Datafusion - Expected - -77 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 col1, - col2 AS col1 FROM tab2 +---- +-23 +-40 +-51 +-58 +-67 +-77 query III rowsort SELECT ALL * FROM tab2 WHERE NOT ( 73 IS NOT NULL ) @@ -9199,8 +9293,15 @@ SELECT - col1 AS col2, - 88 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - -97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col0" at position 0 and "\(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col0, - col0 col0 FROM tab0 +---- +-15 +-15 +-87 +-87 +-97 +-97 query I rowsort label-1516 SELECT COUNT ( * ) * 62 + 12 / COUNT ( * ) AS col1 FROM tab2 @@ -10093,8 +10194,15 @@ SELECT - col2 - + col2 AS col2 FROM tab2 cor0 # Datafusion - Expected - -50 # Datafusion - Expected - -99 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(31\) \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, 31 + - col1 AS col1 FROM tab0 cor0 +---- +-10 +-47 +-50 +-99 +10 +30 query I rowsort SELECT + + 11 + - ( - 39 ) FROM tab0 cor0 @@ -10440,8 +10548,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ), + COUNT ( * ) FROM tab1 +---- +3 +3 query II rowsort SELECT + 4 AS col0, col2 + col0 FROM tab2 @@ -11251,8 +11362,15 @@ SELECT * FROM tab0 WHERE NOT + col2 + col1 BETWEEN + col1 AND + col2 * - + 3 # Datafusion - Expected - 6 # Datafusion - Expected - 97 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, 6 AS col2 FROM tab0 +---- +15 +6 +6 +6 +87 +97 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 @@ -11763,8 +11881,15 @@ SELECT DISTINCT + - 63 AS col0, col1 FROM tab0 AS cor0 # Datafusion - Expected - 41 # Datafusion - Expected - 27 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 AS col0, 41 AS col0 FROM tab1 cor0 +---- +27 +27 +27 +41 +41 +41 query II rowsort SELECT - 56 AS col1, col2 FROM tab1 AS cor0 @@ -12284,8 +12409,15 @@ SELECT 49 - COUNT ( * ) AS col1 FROM tab2 # Datafusion - Expected - -66 # Datafusion - Expected - 46 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \+ Int64\(\-51\) AS col1" at position 0 and "tab0\.col1 \+ \(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + + - 51 AS col1, col1 + - col0 col1 FROM tab0 +---- +-36 +-66 +-96 +36 +46 +66 query I rowsort SELECT DISTINCT - col0 + - - col0 + col2 FROM tab0 cor0 WHERE 76 IS NOT NULL @@ -12372,8 +12504,15 @@ SELECT DISTINCT * FROM tab2 WHERE NULL >= - ( + col1 ) # Datafusion - Expected - 64 # Datafusion - Expected - 58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, col0 AS col1 FROM tab2 +---- +23 +40 +46 +58 +64 +75 query I rowsort label-2037 SELECT ALL CAST ( NULL AS INTEGER ) + + - col2 AS col0 FROM tab1 @@ -12876,8 +13015,15 @@ SELECT DISTINCT + col1 * - ( + col0 ) + 23 * - col0 FROM tab1 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 61 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 61 AS col1, + col2 AS col1 FROM tab2 AS cor0 +---- +23 +40 +58 +61 +61 +61 query I rowsort SELECT DISTINCT + 69 * 20 FROM tab1 AS cor0 @@ -14109,8 +14255,15 @@ SELECT - MAX ( ALL - + CAST ( + col2 AS INTEGER ) ) / + SUM ( DISTINCT - 25 ) FR # Datafusion - Expected - -85 # Datafusion - Expected - 2 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "\(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 AS col2, - col0 AS col2 FROM tab1 +---- +-51 +-85 +-91 +2 +2 +2 query I rowsort SELECT - ( 2 ) FROM tab2 @@ -16002,8 +16155,15 @@ SELECT DISTINCT - 93 col1 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - -96 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +14 +47 +5 query I rowsort label-2644 SELECT col0 * - 58 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 @@ -17231,8 +17391,11 @@ SELECT - + col2 + + + col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 30 AS col2, 31 AS col2 FROM tab1 +---- +30 +31 query I rowsort label-2847 SELECT DISTINCT - MIN ( DISTINCT + 37 ) AS col1 FROM tab0 @@ -17555,8 +17718,15 @@ SELECT DISTINCT + - 39 AS col0 FROM tab0 cor0 # Datafusion - Expected - 18 # Datafusion - Expected - 23 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 23 AS col2, 18 col2 FROM tab0 +---- +18 +18 +18 +23 +23 +23 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> ( col1 + - - col1 + - - 29 ) @@ -18862,8 +19032,15 @@ NULL # Datafusion - Expected - 58 # Datafusion - Expected - 3 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \+ tab2\.col0 AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 61 + col0 AS col1, + col2 AS col1 FROM tab2 +---- +-15 +14 +23 +3 +40 +58 query I rowsort SELECT DISTINCT + 29 * - col2 * - - col2 + ( - col2 ) AS col1 FROM tab0 AS cor0 @@ -19527,8 +19704,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * - + MIN ( DISTINCT + 33 ) AS col2, - COUNT ( DISTINCT col1 ) col2 FROM tab1 cor0 WHERE NULL IS NULL +---- +-3 +-99 query I rowsort SELECT - - 50 + - 23 AS col0 FROM tab2 AS cor0 @@ -19620,8 +19800,15 @@ SELECT - col1 * + ( - + col2 ) * + 53 + col0 FROM tab2 WHERE NOT NULL IS NOT NUL # Datafusion - Expected - 28 # Datafusion - Expected - -58 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, + 28 AS col0 FROM tab2 +---- +-23 +-40 +-58 +28 +28 +28 query III rowsort SELECT ALL * FROM tab1 WHERE - 23 IN ( - ( 78 ) + - col1 + - col2, - col2, - + col0 ) @@ -20811,8 +20998,15 @@ SELECT DISTINCT + + col2 - ( + + col1 ) AS col2, + col0 FROM tab2 WHERE NULL = c # Datafusion - Expected - -1 # Datafusion - Expected - -5 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col1" at position 0 and "\(\- \(\- Int64\(\-86\)\)\) / Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, - ( - - 86 ) / + + 83 AS col1 FROM tab1 +---- +-1 +-1 +-1 +-14 +-47 +-5 query I rowsort SELECT ALL + 9 * + 54 * + col2 + - 38 FROM tab1 cor0 @@ -21431,8 +21625,11 @@ SELECT DISTINCT - ( - + COUNT ( ALL col2 ) ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 5828 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(DISTINCT Int64\(\-62\)\)\)\) AS col1" at position 0 and "Int64\(94\) \* Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - MAX ( DISTINCT - 62 ) AS col1, 94 * 62 AS col1 FROM tab0 cor0 +---- +-62 +5828 query I rowsort SELECT ALL + col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL @@ -21676,8 +21873,15 @@ SELECT ALL COUNT ( * ) AS col1, 33 * 36 * - COUNT ( * ) AS col0 FROM tab1 AS cor # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, col1 AS col0 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT - 69 * - 86 * - 16 AS col2 FROM tab1 AS cor0 @@ -22194,8 +22398,15 @@ SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE ( 90 ) NOT BETWEEN NULL AN # Datafusion - Expected - 67 # Datafusion - Expected - 97 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \+ cor0\.col0 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col1 + + col0 col2, col1 col2 FROM tab2 AS cor0 +---- +141 +142 +51 +67 +77 +97 query II rowsort SELECT col0, + 48 AS col1 FROM tab2 AS cor0 @@ -22243,8 +22454,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 330 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \+ \(\- sum\(Int64\(\-77\)\)\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 + - SUM ( - 77 ) AS col1, 73 AS col1 FROM tab1 +---- +330 +73 query II rowsort SELECT DISTINCT - col1 * - + col1 col2, ( + 21 ) FROM tab0 @@ -22356,8 +22570,15 @@ SELECT ALL - col2, col0 * - + col0 AS col0 FROM tab0 cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 4640 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* cor0\.col2 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 80 * + col2 AS col0, col2 AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS FLOAT8 ) IS NOT NULL +---- +1840 +23 +3200 +40 +4640 +58 query I rowsort label-3686 SELECT + MIN ( ALL - col1 ) FROM tab1 AS cor0 @@ -22840,8 +23061,15 @@ SELECT DISTINCT - col1, col2 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 58 # Datafusion - Expected - -77 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col1, + col2 col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +23 +40 +58 query I rowsort label-3762 SELECT DISTINCT - SUM ( DISTINCT + 74 ) col2 FROM tab1 AS cor0 @@ -22880,8 +23108,15 @@ SELECT + 75 * + - col0 FROM tab0 AS cor0 # Datafusion - Expected - 5168 # Datafusion - Expected - 5292 # Datafusion - Expected - 5168 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* Int64\(98\) AS col0" at position 0 and "\(\- \(\- Int64\(\-76\)\)\) \* Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 54 * + 98 AS col0, - ( + - ( + - 76 ) ) * - 68 AS col0 FROM tab1 cor0 +---- +5168 +5168 +5168 +5292 +5292 +5292 query III rowsort label-3769 SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT + 32 * + CAST ( NULL AS INTEGER ) * + 28 * + col2 = NULL ) @@ -23916,8 +24151,15 @@ SELECT DISTINCT - col0 * col1 - + 93 FROM tab2 WHERE + + ( + col0 ) IS NULL # Datafusion - Expected - -15 # Datafusion - Expected - 99 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "\(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, - col0 col0 FROM tab0 +---- +-15 +-87 +-97 +10 +47 +99 query I rowsort label-3942 SELECT 63 * 98 / - 70 col1 FROM tab0, tab2 AS cor0 @@ -24183,8 +24425,11 @@ SELECT DISTINCT - COUNT ( * ) * + + MIN ( - + 34 ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +3 +77 query I rowsort SELECT col0 + ( - + col2 ) - col1 AS col0 FROM tab1 @@ -24637,8 +24882,15 @@ SELECT col1 AS col2, 14 - CAST ( ( + - col2 ) AS INTEGER ) AS col1 FROM tab2 WHE # Datafusion - Expected - 85 # Datafusion - Expected - 71 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 71 col1, col0 AS col1 FROM tab1 +---- +51 +71 +71 +71 +85 +91 query I rowsort label-4064 SELECT + col1 / - 48 + - col2 AS col1 FROM tab1 @@ -24944,8 +25196,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +3 +94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 @@ -24954,8 +25209,15 @@ SELECT 94 col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 128 # Datafusion - Expected - 99 # Datafusion - Expected - 100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col1" at position 0 and "cor0\.col2 \- \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 AS col1, col2 - - col1 AS col1 FROM tab0 AS cor0 +---- +10 +100 +128 +31 +47 +99 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 @@ -25407,8 +25669,15 @@ SELECT DISTINCT + ( - ( - col0 ) ) * - ( + + col1 ) FROM tab0 # Datafusion - Expected - -67 # Datafusion - Expected - -77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\)" at position 0 and "\(\- tab2\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1, - ( ( + col1 ) ) FROM tab2 +---- +-51 +-51 +-67 +-67 +-77 +-77 query I rowsort label-4186 SELECT ALL - COUNT ( * ) * - ( ( 39 ) ) * + + 81 AS col1 FROM tab0 @@ -25892,8 +26161,15 @@ SELECT - MAX ( DISTINCT + col1 ) AS col1, + CAST ( COUNT ( * ) AS INTEGER ) FROM # Datafusion - Expected - -91 # Datafusion - Expected - 1920 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \* cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 20 * + col2 col1, - col0 col1 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +1180 +1360 +1920 query I rowsort label-4267 SELECT ALL - CAST ( NULL AS INTEGER ) + + - ( col1 ) AS col1 FROM tab0 AS cor0 @@ -27490,8 +27766,9 @@ SELECT + 76 * COUNT ( * ) FROM tab0 228 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "tab0\.col2 \* tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col2, col2 * col2 AS col2 FROM tab0 WHERE NOT ( col1 * + - col0 ) IS NOT NULL +---- query II rowsort label-4539 SELECT - COUNT ( * ) * + COUNT ( * ), COUNT ( * ) col2 FROM tab1 @@ -27954,8 +28231,15 @@ SELECT CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWE # Datafusion - Expected - 77 # Datafusion - Expected - -288057 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col1\) \* Int64\(56\) \+ \(\- Int64\(91\)\) \+ Int64\(\-98\) \* cor0\.col1 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * - col1 * 56 + - + 91 + - 98 * col1 AS col0, + col1 AS col0 FROM tab2 AS cor0 +---- +-136465 +-283605 +-288057 +51 +67 +77 query I rowsort label-4615 SELECT + 84 * - COUNT ( * ) * - - MAX ( - 22 ) AS col0 FROM tab2 @@ -30487,8 +30771,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT - col1 / + col0 IS NOT NULL # Datafusion - Expected - 87 # Datafusion - Expected - -97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col1, col0 AS col1 FROM tab0 +---- +-15 +-87 +-97 +15 +87 +97 query II rowsort SELECT ALL - 50 AS col0, 94 AS col2 FROM tab2 @@ -31073,8 +31364,15 @@ SELECT + 58 * 74 / + col2 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -154 # Datafusion - Expected - -58 # Datafusion - Expected - -134 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "\(\- cor0\.col1\) \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 AS col1, - col1 + - col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL +---- +-102 +-134 +-154 +-23 +-40 +-58 query I rowsort label-5129 SELECT MAX ( - col0 ) AS col1 FROM tab2 @@ -31122,8 +31420,15 @@ SELECT - SUM ( - + 91 ) * + + 92 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 56 # Datafusion - Expected - 59 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "Int64\(\-29\) \- \(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( 59 ) AS col0, - 29 - - col0 AS col0 FROM tab1 +---- +22 +56 +59 +59 +59 +62 query I rowsort SELECT col2 - + - 45 + - - 84 FROM tab1 AS cor0 @@ -32763,8 +33068,15 @@ SELECT ALL - ( - + 33 ) + + col2 FROM tab2 AS cor0 # Datafusion - Expected - -96 # Datafusion - Expected - 8 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(60\)\) \- \(\- cor0\.col2\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 60 - - col2 AS col2, - col2 AS col2 FROM tab1 AS cor0 +---- +-1 +-59 +-68 +-96 +36 +8 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE ( + col0 / col1 ) IS NOT NULL @@ -33295,8 +33607,11 @@ SELECT DISTINCT + SUM ( - + col0 ) AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, 66 col1 FROM tab0 +---- +3 +66 query I rowsort SELECT 94 * col0 FROM tab1 @@ -33360,8 +33675,15 @@ SELECT 81 + + + ( - - 31 ) AS col0, col2 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "CAST\(NULL AS Int32\) \* \(\- tab0\.col2\) \* Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( col0 ) AS col1, CAST ( NULL AS INTEGER ) * - + col2 * + 43 AS col1 FROM tab0 +---- +15 +87 +97 +NULL +NULL +NULL query I rowsort label-5512 SELECT CAST ( NULL AS INTEGER ) + - - col0 * col2 * CAST ( NULL AS INTEGER ) FROM tab0 @@ -33630,8 +33952,15 @@ SELECT * FROM tab2 WHERE - - 11 IS NULL # Datafusion - Expected - 58 # Datafusion - Expected - -64 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ Int64\(13\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 + + 13 AS col0, + col2 col0 FROM tab2 AS cor0 WHERE 19 < col1 +---- +-38 +-54 +-64 +23 +40 +58 query I rowsort SELECT DISTINCT + col0 + - col0 + col0 FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN col2 AND NULL @@ -33677,8 +34006,15 @@ NULL # Datafusion - Expected - -52 # Datafusion - Expected - 99 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(\-52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, - 52 AS col0 FROM tab0 AS cor0 +---- +-52 +-52 +-52 +10 +47 +99 query I rowsort SELECT ALL ( - 40 ) FROM tab2 AS cor0 @@ -34690,8 +35026,15 @@ SELECT + col0, col2 * col0 + - col1 AS col2 FROM tab2 cor0 # Datafusion - Expected - 17 # Datafusion - Expected - 58 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 col1, 17 col1 FROM tab2 AS cor0 +---- +17 +17 +17 +23 +40 +58 query II rowsort SELECT ALL - col1 col2, - col1 AS col0 FROM tab0 AS cor0 @@ -35932,8 +36275,15 @@ SELECT ALL - ( - 21 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 58 # Datafusion - Expected - -77 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, + col2 AS col0 FROM tab2 cor0 +---- +-51 +-67 +-77 +23 +40 +58 query I rowsort SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT - col0 <> - ( - 0 ) @@ -36310,8 +36660,15 @@ SELECT ALL - + col2 + + 53 FROM tab0 WHERE NULL IS NOT NULL # Datafusion - Expected - 9 # Datafusion - Expected - -81 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col1" at position 0 and "\(\- \(\- tab0\.col2\)\) \+ tab0\.col0 / Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, - ( - col2 ) + col0 / - 82 AS col1 FROM tab0 +---- +-1 +-21 +-81 +47 +9 +98 query I rowsort SELECT col1 * - + 2 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL @@ -36808,8 +37165,15 @@ SELECT COUNT ( * ), - 93 AS col0 FROM tab1 # Datafusion - Expected - -10 # Datafusion - Expected - 81 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "\(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col2, - col2 col2 FROM tab0 WHERE - 6 * ( + col2 ) IS NOT NULL +---- +-10 +-47 +-99 +1 +21 +81 query I rowsort label-6080 SELECT DISTINCT 50 / - - col0 AS col1 FROM tab0 @@ -36824,8 +37188,15 @@ SELECT DISTINCT 50 / - - col0 AS col1 FROM tab0 # Datafusion - Expected - -67 # Datafusion - Expected - -77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\)" at position 0 and "\(\- tab2\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1, - col1 FROM tab2 +---- +-51 +-51 +-67 +-67 +-77 +-77 query II rowsort SELECT + 21 AS col1, col0 FROM tab2 @@ -38652,8 +39023,11 @@ SELECT * FROM tab2 WHERE col2 >= + 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) col2, COUNT ( * ) AS col2 FROM tab0 +---- +3 +NULL query I rowsort SELECT - 91 * + 80 + - col1 AS col2 FROM tab1 AS cor0 @@ -39682,8 +40056,15 @@ SELECT - + col2 / 50 / - CAST ( - 70 AS INTEGER ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +14 +47 +5 +NULL +NULL +NULL query I rowsort SELECT - ( - 28 ) FROM tab1 AS cor0 @@ -39738,8 +40119,15 @@ SELECT DISTINCT + + col1 AS col2, col0 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - 2842 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 49 * col2 AS col1, - col2 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +1127 +1960 +2842 query II rowsort SELECT + col0 AS col2, 23 - 54 AS col1 FROM tab1 AS cor0 @@ -39986,8 +40374,15 @@ SELECT ALL * FROM tab2 WHERE NOT - 9 IS NOT NULL # Datafusion - Expected - 29 # Datafusion - Expected - 91 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 91 AS col2, + 29 AS col2 FROM tab0 +---- +29 +29 +29 +91 +91 +91 query I rowsort SELECT + + col0 FROM tab0 WHERE NULL IS NULL @@ -41525,8 +41920,15 @@ SELECT ALL + - 76 * - - col0 + + col1 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-6866 SELECT ALL + MIN ( DISTINCT col1 ) FROM tab0 AS cor0 @@ -41911,8 +42313,9 @@ SELECT + col0 AS col1, + col2 AS col0 FROM tab1 cor0 68 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col1" at position 0 and "Int64\(\-96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 28 AS col1, - 96 AS col1 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NOT NULL +---- query I rowsort SELECT + - 18 AS col2 FROM tab1 cor0 @@ -42788,8 +43191,15 @@ SELECT + col2 AS col1 FROM tab0 WHERE ( NOT 59 > - - col1 ) # Datafusion - Expected - 15 # Datafusion - Expected - -99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ \(\- tab0\.col2\) \+ \(\- tab0\.col2\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 + + - col2 + - col2 AS col1, + col0 col1 FROM tab0 +---- +-10 +-47 +-99 +15 +87 +97 query I rowsort SELECT + - col2 FROM tab1 WHERE NULL IS NULL @@ -42870,8 +43280,10 @@ SELECT - 27 - - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f4c2d045b47d133f3978384ca1abe7bc -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col1, + col1, col1 col1 FROM tab0 +---- +9 values hashing to f4c2d045b47d133f3978384ca1abe7bc # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -42977,8 +43389,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + + COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1 +---- +9 +9 query II rowsort SELECT DISTINCT + 52 AS col1, + 98 * + col0 FROM tab1 cor0 @@ -43622,8 +44037,15 @@ SELECT - 69 + COUNT ( * ) AS col1 FROM tab0 cor0 WHERE + col1 * + col2 IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) \+ cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - ( CAST ( NULL AS INTEGER ) ) + + + col2 col1, col2 AS col1 FROM tab0 AS cor0 +---- +10 +47 +99 +NULL +NULL +NULL query III rowsort SELECT * FROM tab1 AS cor0 WHERE - col0 * + + 18 IS NULL @@ -44639,8 +45061,15 @@ SELECT ALL SUM ( ALL - ( + + col0 ) ) AS col2 FROM tab1 # Datafusion - Expected - 99 # Datafusion - Expected - 57 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ \(\- \(\- tab0\.col0\)\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 42 + - - col0 AS col0, col2 AS col0 FROM tab0 +---- +10 +129 +139 +47 +57 +99 query II rowsort SELECT ALL col1 + - 53 AS col2, + 7 - col2 FROM tab0 AS cor0 @@ -44874,8 +45303,15 @@ SELECT ALL 24 * + 60 FROM tab0 # Datafusion - Expected - -8 # Datafusion - Expected - 42 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ \(\- tab1\.col0\) \+ tab1\.col0 / \(\- tab1\.col1\) AS col2" at position 0 and "Int64\(\-8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 + + - col0 + col0 / - col1 AS col2, - 8 col2 FROM tab1 +---- +-24 +-43 +-8 +-8 +-8 +42 query III rowsort SELECT ALL * FROM tab2 WHERE NOT + 78 IS NULL @@ -44932,8 +45368,15 @@ SELECT + ( + col2 ) - + 58 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - -64 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \- tab1\.col2 AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 - + ( col2 ) AS col2, col0 AS col2 FROM tab1 +---- +-110 +-115 +-64 +51 +85 +91 query IIIIII rowsort SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NULL @@ -45221,8 +45664,15 @@ SELECT col2 * - - col2 col2 FROM tab2 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - 77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col1\) \+ Int64\(\-6\) / \(\- \(\- cor0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, - col1 + - 6 / - - ( col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT 79 < + + 20 +---- +-51 +-67 +-77 +51 +67 +77 query I rowsort SELECT - 51 AS col0 FROM tab1 cor0 @@ -45404,8 +45854,9 @@ SELECT ALL * FROM tab1 AS cor0 WHERE ( + 34 ) + + - col1 IS NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col2" at position 0 and "Int64\(\-11\) \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 AS col2, - 11 * + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL +---- query I rowsort SELECT DISTINCT - ( - col0 ) * col2 AS col2 FROM tab1 AS cor0 @@ -45894,8 +46345,11 @@ SELECT - 47 * MIN ( - + col2 ) FROM tab2 # 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\(DISTINCT cor0\.col0\)\) AS col0" at position 0 and "Int64\(59\) \+ \(\- Int64\(93\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( DISTINCT + col0 ) AS col0, 59 + - + 93 col0 FROM tab1 AS cor0 +---- +-3 +-34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 @@ -45904,8 +46358,15 @@ SELECT ALL - COUNT ( DISTINCT + col0 ) AS col0, 59 + - + 93 col0 FROM tab1 AS co # Datafusion - Expected - -52 # 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 "Int64\(\-38\) \* tab1\.col0 / tab1\.col0 \+ \(\- tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 15 AS col2, - 38 * col0 / col0 + - col1 AS col2 FROM tab1 +---- +-43 +-52 +-85 +15 +15 +15 query I rowsort SELECT ALL col0 * + 19 FROM tab2 @@ -47486,8 +47947,15 @@ SELECT 24 - - 33 AS col1 FROM tab2 # Datafusion - Expected - 1 # Datafusion - Expected - -97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col1" at position 0 and "Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col1, 1 AS col1 FROM tab0 +---- +-15 +-87 +-97 +1 +1 +1 query I rowsort SELECT + col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND 1 @@ -48266,8 +48734,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(11\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( DISTINCT 11 ) + + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab1 +---- +14 +3 query I rowsort SELECT DISTINCT + 5 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL @@ -48681,8 +49152,15 @@ SELECT COUNT ( * ) + 97 FROM tab0, tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, + col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT col2 + 41 * - + col0 AS col2 FROM tab1 WHERE NOT ( ( ( col1 IS NOT NULL ) ) ) @@ -49285,8 +49763,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT \(\- cor0\.col1\)\) AS col2" at position 0 and "Int64\(\-54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MIN ( DISTINCT - col1 ) col2, - 54 AS col2 FROM tab2 AS cor0 +---- +-54 +-77 query I rowsort label-8152 SELECT MAX ( 98 ) FROM tab2 AS cor0 @@ -49380,8 +49861,15 @@ SELECT ALL - col0 AS col1, + col0 FROM tab2 cor0 # Datafusion - Expected - -39 # Datafusion - Expected - 91 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "Int64\(\-39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col0 AS col0, - 39 AS col0 FROM tab1 AS cor0 +---- +-39 +-39 +-39 +51 +85 +91 query III rowsort SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( - 22 ) AND NULL @@ -50756,8 +51244,15 @@ SELECT + MIN ( + col2 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 4250 # Datafusion - Expected - 77 # Datafusion - Expected - 4250 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "Int64\(85\) \* Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 AS col0, + 85 * 50 AS col0 FROM tab2 AS cor0 +---- +4250 +4250 +4250 +51 +67 +77 query I rowsort SELECT + col1 - 97 * col2 FROM tab0 @@ -50807,8 +51302,15 @@ NULL # Datafusion - Expected - -84 # Datafusion - Expected - 89 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \+ \(\- cor0\.col1\) AS col0" at position 0 and "Int64\(\-84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 94 + + - col1 AS col0, - 84 AS col0 FROM tab1 AS cor0 +---- +-84 +-84 +-84 +47 +80 +89 query I rowsort SELECT - 20 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL @@ -51091,8 +51593,15 @@ SELECT DISTINCT * FROM tab0 WHERE - col1 * - 22 IS NOT NULL # Datafusion - Expected - -68 # Datafusion - Expected - -48 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col1" at position 0 and "\(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 48 col1, - col2 AS col1 FROM tab1 +---- +-48 +-48 +-48 +-59 +-68 +-96 query I rowsort label-8450 SELECT ALL - MIN ( DISTINCT - col2 ) FROM tab0 @@ -51271,8 +51780,15 @@ SELECT ALL + SUM ( + + 15 ) FROM tab2 # Datafusion - Expected - 9603 # Datafusion - Expected - -85200 # Datafusion - Expected - 705 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* \(\- \(\- tab0\.col0\)\) \* Int64\(71\) AS col1" at position 0 and "tab0\.col1 \- tab0\.col0 \* \(\- CAST\(tab0\.col2 AS Int32\)\) \+ \(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 80 * - - col0 * 71 AS col1, col1 - col0 * + - CAST ( col2 AS INTEGER ) + - + col1 AS col1 FROM tab0 +---- +-494160 +-550960 +-85200 +705 +870 +9603 query I rowsort SELECT ( - - col1 ) * - 60 * col2 col0 FROM tab1 @@ -51713,8 +52229,11 @@ SELECT col0 * 55 * - - col2 AS col1, + 82 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, 18 AS col2 FROM tab1 cor0 +---- +18 +3 query I rowsort label-8551 SELECT DISTINCT + + COUNT ( ALL + col0 ) FROM tab2 AS cor0 @@ -51982,14 +52501,24 @@ SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NULL > NULL # Datafusion - Expected - 528 # Datafusion - Expected - -91 # Datafusion - Expected - 528 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(32\) \+ Int64\(8\) \* Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 AS col2, 32 + 8 * 62 AS col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +528 +528 +528 # 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 "cor0\.col2 \+ CAST\(NULL AS Float64\) \* Int64\(\-40\) \- Int64\(4\) AS col0" at position 0 and "Int64\(\-74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT + col2 + + CAST ( NULL AS FLOAT8 ) * - 40 - 4 col0, - 74 AS col0 FROM tab0 AS cor0 +---- +-74 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1764 @@ -51998,8 +52527,15 @@ SELECT DISTINCT + col2 + + CAST ( NULL AS FLOAT8 ) * - 40 - 4 col0, - 74 AS col0 # Datafusion - Expected - -1827 # Datafusion - Expected - 1764 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(63\)\) \* \(\- Int64\(28\)\) AS col0" at position 0 and "\(\- cor0\.col1\) \* \(\- \(\- cor0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + ( 63 ) * - + 28 AS col0, - col1 * - - col0 AS col0 FROM tab0 AS cor0 +---- +-1215 +-1827 +-97 +1764 +1764 +1764 query III rowsort SELECT * FROM tab0 cor0 WHERE ( + 59 / + + col1 IS NULL ) @@ -52129,8 +52665,15 @@ SELECT - ( + - COUNT ( * ) ) col1 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - -97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, col0 AS col1 FROM tab0 +---- +-15 +-87 +-97 +15 +87 +97 query II rowsort SELECT ALL - col2 AS col2, - col0 * - 87 FROM tab0 @@ -52164,8 +52707,11 @@ SELECT DISTINCT * FROM tab1 WHERE NOT ( - col0 ) - + - col0 - col0 * + - col1 <= # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(10\)\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( 10 ) AS col2, 47 col2 FROM tab0 AS cor0 +---- +10 +47 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -53948,8 +54494,15 @@ SELECT ALL + 1, - col1 AS col2 FROM tab0 # Datafusion - Expected - 6468 # Datafusion - Expected - 75 # Datafusion - Expected - 5628 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "Int64\(\-84\) \* \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, - 84 * - col1 AS col2 FROM tab2 +---- +4284 +46 +5628 +64 +6468 +75 query I rowsort SELECT + col2 AS col0 FROM tab0 WHERE NOT + - col1 IS NOT NULL @@ -54456,8 +55009,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) < + - col0 + col1 + col2 # Datafusion - Expected - -11 # Datafusion - Expected - -77 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(\-11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, - 11 col0 FROM tab2 cor0 +---- +-11 +-11 +-11 +-51 +-67 +-77 query I rowsort SELECT ALL 58 * + - col1 AS col0 FROM tab0 AS cor0 WHERE - 43 BETWEEN NULL AND NULL @@ -54961,8 +55521,15 @@ SELECT ALL - ( - 17 ) * COUNT ( * ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - 4283 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ \(\- cor0\.col0\) \* \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 + - col0 * - col2 AS col2, col1 col2 FROM tab2 AS cor0 +---- +1007 +2483 +4283 +51 +67 +77 query I rowsort SELECT col2 * + - col2 FROM tab2 cor0 @@ -55083,8 +55650,15 @@ SELECT DISTINCT - COUNT ( * ) AS col2, COUNT ( * ) * - COUNT ( * ) FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - -84 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 84 AS col1, col2 AS col1 FROM tab0 +---- +-84 +-84 +-84 +10 +47 +99 query I rowsort label-9097 SELECT - COUNT ( * ) * - 44 AS col0 FROM tab2 @@ -55988,8 +56562,15 @@ SELECT DISTINCT + col2 AS col0, + col1 AS col2 FROM tab2 cor0 # Datafusion - Expected - 30 # Datafusion - Expected - 5 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col0, ( 30 ) AS col0 FROM tab1 AS cor0 +---- +14 +30 +30 +30 +47 +5 query I rowsort label-9256 SELECT DISTINCT - COUNT ( * ) * 43 FROM tab0 cor0 @@ -57269,8 +57850,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ), - COUNT ( * ) FROM tab1 +---- +-3 +-3 query I rowsort label-9467 SELECT ALL + 74 + + - CAST ( NULL AS INTEGER ) FROM tab1 @@ -57346,8 +57930,15 @@ SELECT DISTINCT - col1 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - -64 # Datafusion - Expected - 58 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "\(\- CAST\(tab2\.col0 AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, - CAST ( col0 AS INTEGER ) AS col1 FROM tab2 +---- +-46 +-64 +-75 +23 +40 +58 query I rowsort SELECT + col2 * + + col2 AS col0 FROM tab0 @@ -57412,8 +58003,15 @@ SELECT col0 * + 14 FROM tab2 # Datafusion - Expected - -51 # Datafusion - Expected - 8536 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* cor0\.col0 AS col0" at position 0 and "cor0\.col1 \+ Int64\(\-72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 * col0 AS col0, col1 + - 72 AS col0 FROM tab0 cor0 +---- +-51 +-71 +1320 +7656 +8536 +9 query I rowsort label-9489 SELECT + ( 65 ) / - 49 AS col2 FROM tab1 AS cor0 @@ -57835,8 +58433,15 @@ SELECT * FROM tab2 WHERE NOT + 78 * + col1 IS NOT NULL # Datafusion - Expected - -5 # Datafusion - Expected - -91 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, - col1 AS col1 FROM tab1 +---- +-14 +-47 +-5 +-51 +-85 +-91 query I rowsort SELECT + col0 * 92 AS col0 FROM tab0 AS cor0 @@ -58624,8 +59229,15 @@ SELECT ALL - col0 AS col0, - 87 FROM tab2 # Datafusion - Expected - -64 # Datafusion - Expected - 3886 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \* \(\- tab2\.col1\) AS col2" at position 0 and "\(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - + col2 ) * - + col1 AS col2, - col0 AS col2 FROM tab2 +---- +-46 +-64 +-75 +1173 +3080 +3886 query III rowsort SELECT ALL * FROM tab1 WHERE - - 72 IN ( + col1 + - + 90 * + col0 * - 51 * - col2 / + 18 ) @@ -59554,8 +60166,9 @@ SELECT DISTINCT 4 * - - COUNT ( * ) FROM tab2 12 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "Int64\(\-32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, - 32 col2 FROM tab0 WHERE NOT - + col2 = NULL +---- query I rowsort label-9844 SELECT DISTINCT - COUNT ( * ) * 90 FROM tab0 @@ -59632,8 +60245,9 @@ SELECT ALL + 96 - - - col1 + 25 + col1 AS col2 FROM tab1 AS cor0 121 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- CAST\(Int64\(79\) AS Float64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL col0 AS col2, - CAST ( + 79 AS FLOAT8 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL +---- query III rowsort SELECT * FROM tab1 AS cor0 WHERE ( + col0 ) <= col0 @@ -59898,8 +60512,11 @@ SELECT col2 * + col2 + 80, col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "Int64\(60\) / Int64\(\-98\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 46 col0, 60 / - 98 + + COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +3 +46 query I rowsort SELECT + col2 * - col1 / - col1 - - col2 FROM tab2 cor0 WHERE NOT 5 NOT BETWEEN NULL AND NULL @@ -60035,8 +60652,15 @@ SELECT ALL - col0 * 39 col1 FROM tab1 # Datafusion - Expected - 81 # Datafusion - Expected - 5 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, + ( + 81 ) AS col0 FROM tab1 +---- +14 +47 +5 +81 +81 +81 query II rowsort SELECT ALL + 34, + 52 + - + 48 + + col1 col2 FROM tab2 @@ -60145,8 +60769,15 @@ SELECT - + col1 + - - col2 - - 34 - + col0 FROM tab1 AS cor0 # Datafusion - Expected - -107 # Datafusion - Expected - 3196 # Datafusion - Expected - -113 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* \(\- \(\- tab1\.col1\)\) AS col2" at position 0 and "Int64\(\-22\) \- tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * - - ( + + col1 ) AS col2, - 22 - + + col0 AS col2 FROM tab1 +---- +-107 +-113 +-73 +1344 +295 +3196 query I rowsort SELECT col1 * 94 * col1 FROM tab1 @@ -60299,8 +60930,11 @@ SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL <= col0 * + col0 / - 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) 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 II valuesort SELECT DISTINCT + 41 AS col0, + MIN ( - - col2 ) AS col0 FROM tab0 +---- +10 +41 query I rowsort label-9969 SELECT ALL + col0 + - + col0 / + + 63 AS col2 FROM tab2 @@ -60347,8 +60981,15 @@ SELECT DISTINCT + col0 * + col2 + + col2 col0 FROM tab0 AS cor0 # Datafusion - Expected - -19 # Datafusion - Expected - -60 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col1" at position 0 and "\(\- Int64\(19\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 60 AS col1, - ( + 19 ) AS col1 FROM tab0 cor0 +---- +-19 +-19 +-19 +-60 +-60 +-60 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - col2 ) diff --git a/data/sqlite/random/aggregates/slt_good_72.slt b/data/sqlite/random/aggregates/slt_good_72.slt index 9c28fc2..09377a5 100644 --- a/data/sqlite/random/aggregates/slt_good_72.slt +++ b/data/sqlite/random/aggregates/slt_good_72.slt @@ -126,8 +126,15 @@ SELECT DISTINCT * FROM tab0 WHERE NOT - col1 + col0 < NULL # Datafusion - Expected - -75 # Datafusion - Expected - 77 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "\(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, - ( col0 ) AS col0 FROM tab2 +---- +-46 +-64 +-75 +51 +67 +77 query I rowsort SELECT DISTINCT + ( + 49 ) col2 FROM tab2 @@ -1330,8 +1337,10 @@ SELECT ALL - CAST ( NULL AS INTEGER ) * - col1 + col2 FROM tab1 WHERE NOT NULL < # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 01ca8b47e5dfdc54a4d76d243adb94b0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "Int64\(93\) \+ tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 23 AS col2, ( + 93 ) + col1 AS col2, + 22 FROM tab1 +---- +9 values hashing to 7cd3c51772fa978d141bf53634f0be7b query II rowsort SELECT - col1, - col2 + - 11 + 0 AS col1 FROM tab0 @@ -1602,8 +1611,15 @@ SELECT ALL + col1 + - + col1 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 62 # Datafusion - Expected - 35 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 col2, 62 AS col2 FROM tab1 AS cor0 +---- +35 +35 +35 +62 +62 +62 query III rowsort SELECT * FROM tab0 cor0 WHERE NULL > col0 @@ -1732,8 +1748,10 @@ SELECT ALL 87 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 9a7cdde86b9ff8824e15ce3d5ee023df -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* Int64\(\-3\) \* \(\- tab0\.col1\) AS col2" at position 1 and "tab0\.col1 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) * - ( - + 46 ), 71 * - 3 * - col1 AS col2, + col1 AS col2 FROM tab0 +---- +9 values hashing to 4f97060edd59e3ed1d7b5c9a4ec15df2 query I rowsort SELECT DISTINCT - ( + 25 ) * - col0 FROM tab0 @@ -2229,8 +2247,15 @@ SELECT ALL + 33 * - + 21 AS col2, SUM ( + 15 ) FROM tab2 # Datafusion - Expected - 85 # Datafusion - Expected - 86 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \+ \(\- \(\- \(\- Int64\(\-3\)\)\)\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 83 + - - ( - - 3 ) col2, + col0 AS col2 FROM tab1 +---- +51 +85 +86 +86 +86 +91 query III rowsort SELECT * FROM tab1 WHERE - + 15 * 68 IS NOT NULL @@ -2275,8 +2300,15 @@ SELECT ALL + 21 - COUNT ( * ) col0 FROM tab2 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -96 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col2 AS col1, - col1 AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +-59 +-68 +-96 query I rowsort label-376 SELECT ALL COUNT ( * ) - - + COUNT ( DISTINCT - col2 ) FROM tab0 @@ -2683,8 +2715,15 @@ SELECT + 50 * col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL AND NULL < col2 - - # Datafusion - Expected - -23 # Datafusion - Expected - 75 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "\(\- cor0\.col0\) \- Int64\(\-41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col0 AS col0, - col0 - + - 41 col0 FROM tab2 AS cor0 +---- +-23 +-34 +-5 +46 +64 +75 query I rowsort SELECT DISTINCT + 68 * + + col1 col0 FROM tab0 @@ -2911,8 +2950,10 @@ SELECT ALL col0 * 38 / col0 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 80a071ba5d7f4c1edd80d7fae8011b53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col0, - 89, col0 FROM tab0 +---- +9 values hashing to 82678bc2e3bed7b20495382498679975 query II rowsort label-479 SELECT DISTINCT MAX ( + + 38 ) AS col2, 0 FROM tab1 AS cor0 @@ -3585,8 +3626,15 @@ SELECT + + SUM ( ALL + 93 ) AS col2, 90 + - - 6 FROM tab2 AS cor0 # Datafusion - Expected - 194 # Datafusion - Expected - 375 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* cor0\.col0 AS col0" at position 0 and "Int64\(2\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 * + col0 col0, + 2 * + col0 AS col0 FROM tab0 AS cor0 +---- +174 +194 +2175 +2425 +30 +375 query I rowsort label-597 SELECT col2 AS col2 FROM tab0 cor0 WHERE NOT col1 + - 73 + CAST ( NULL AS INTEGER ) + - col0 * col2 IS NOT NULL @@ -4066,8 +4114,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE 11 - - + col0 IS NOT NULL # Datafusion - Expected - 57 # Datafusion - Expected - 78 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 col1, 57 AS col1 FROM tab2 cor0 +---- +57 +57 +57 +78 +78 +78 query I rowsort label-675 SELECT ALL - col1 + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 @@ -4205,8 +4260,15 @@ SELECT - ( + - 58 ) FROM tab0 AS cor0 # Datafusion - Expected - 11 # Datafusion - Expected - 60 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 60 AS col2, 11 AS col2 FROM tab0 AS cor0 +---- +11 +11 +11 +60 +60 +60 query I rowsort SELECT DISTINCT ( + ( - col2 ) ) AS col1 FROM tab0 @@ -4405,8 +4467,15 @@ NULL # Datafusion - Expected - -47 # Datafusion - Expected - -94 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \+ Int64\(\-26\) AS col0" at position 0 and "\(\- tab1\.col2\) \+ Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 + - 26 AS col0, - col2 + 12 AS col0 FROM tab1 +---- +-122 +-47 +-56 +-84 +-85 +-94 query I rowsort label-728 SELECT - + COUNT ( - 19 ) FROM tab2 AS cor0 @@ -4479,8 +4548,15 @@ SELECT col0, + 47 FROM tab0 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Expected - 5 # Datafusion - Expected - 7303 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \* Int64\(\-81\) \- tab1\.col2 AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * - 81 - col2 AS col2, col1 AS col2 FROM tab1 +---- +14 +4035 +47 +5 +6826 +7303 query I rowsort label-741 SELECT col1 / - + col2 - 72 / - 81 * - - col1 + col1 AS col1 FROM tab0 @@ -4528,8 +4604,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( - + 72 ) # Datafusion - Expected - -21 # Datafusion - Expected - NULL # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, - col1 AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +NULL +NULL +NULL query II rowsort SELECT DISTINCT 29 AS col2, + 47 FROM tab2 AS cor0 @@ -6307,8 +6390,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3332 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* Int64\(34\) AS col0" at position 0 and "Int64\(\-24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 98 * 34 AS col0, - 24 AS col0 FROM tab2 AS cor0 +---- +-24 +3332 query I rowsort label-1053 SELECT ALL + + MAX ( - 15 ) - - 16 FROM tab0 cor0 @@ -7407,8 +7493,11 @@ SELECT - - 26 AS col0, + col0 AS col0, - + col1 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(27\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 27 AS col2, COUNT ( * ) AS col2 FROM tab1 cor0 +---- +-27 +3 query I rowsort SELECT + + col2 * + + col0 + - col2 FROM tab0 AS cor0 @@ -7636,8 +7725,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) AS col2, - 2 + - COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-3 +-5 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( NULL ) @@ -8455,8 +8547,15 @@ SELECT DISTINCT - - col2 + 63 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 205 # Datafusion - Expected - 82 # Datafusion - Expected - 574 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col2 AS col0" at position 0 and "Int64\(41\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 + col2 AS col0, 41 * col1 AS col0 FROM tab1 AS cor0 +---- +1927 +205 +21 +54 +574 +82 query I rowsort SELECT - 53 * + + col2 + + + 69 AS col2 FROM tab0 AS cor0 @@ -9711,8 +9810,15 @@ SELECT + COUNT ( * ) * - + COUNT ( * ) * + SUM ( ALL 90 ) FROM tab2 AS cor0 # Datafusion - Expected - -21373 # Datafusion - Expected - -67 # Datafusion - Expected - -23177 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(67\)\) AS col1" at position 0 and "\(\- cor0\.col2\) \* cor0\.col1 \+ \(\- cor0\.col0\) \- \(\- cor0\.col0\) \- Int64\(\-3\) \* Int64\(\-87\) \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 67 AS col1, - col2 * col1 + - + col0 - ( - col0 ) - + - 3 * + - 87 * + col1 AS col1 FROM tab2 AS cor0 +---- +-14484 +-21373 +-23177 +-67 +-67 +-67 query II rowsort label-1613 SELECT - + ( + MIN ( DISTINCT + 56 ) ) / + 98 AS col1, - 12 FROM tab0 cor0 @@ -10349,8 +10455,15 @@ SELECT ALL + + 54 * - col2 * + col0 FROM tab2 AS cor0 # Datafusion - Expected - -72 # Datafusion - Expected - 97 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + ( - col0 ) col2, - 72 AS col2 FROM tab0 AS cor0 +---- +-72 +-72 +-72 +15 +87 +97 query I rowsort SELECT - - col0 * + + col0 - + col2 col0 FROM tab0 cor0 @@ -10961,8 +11074,15 @@ SELECT * FROM tab2 WHERE NOT + col2 * 44 IS NOT NULL # Datafusion - Expected - 40 # Datafusion - Expected - -527 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) \* Int64\(31\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 17 * + 31 AS col1, col2 AS col1 FROM tab2 +---- +-527 +-527 +-527 +23 +40 +58 query I rowsort SELECT DISTINCT - + col0 * - - col1 FROM tab1 cor0 @@ -11022,8 +11142,11 @@ SELECT DISTINCT + col1 * 1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 195 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \- Int64\(56\) AS col2" at position 0 and "sum\(tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 - + + 56 AS col2, + SUM ( ALL + col1 ) AS col2 FROM tab2 +---- +-16 +195 query I rowsort SELECT 49 * - + col2 - + - col1 AS col1 FROM tab0 @@ -11620,8 +11743,15 @@ SELECT + + 71 - col2 FROM tab0 AS cor0 # Datafusion - Expected - 75 # Datafusion - Expected - 77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \- Int64\(0\) AS col0" at position 0 and "CAST\(tab2\.col0 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 - - 0 AS col0, + CAST ( + col0 AS INTEGER ) col0 FROM tab2 +---- +46 +51 +64 +67 +75 +77 query I rowsort label-1929 SELECT + SUM ( ALL + + col0 ) + - COUNT ( * ) AS col0 FROM tab0 @@ -11635,8 +11765,15 @@ SELECT + SUM ( ALL + + col0 ) + - COUNT ( * ) AS col0 FROM tab0 # Datafusion - Expected - -4624 # Datafusion - Expected - 87 # Datafusion - Expected - -9216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \+ tab1\.col2 AS col1" at position 0 and "\(\- tab1\.col2\) \* \(\- \(\- tab1\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 9 + col2 AS col1, - col2 * - - col2 AS col1 FROM tab1 +---- +-3481 +-4624 +-9216 +50 +59 +87 query I rowsort SELECT + col1 + col0 + 98 FROM tab2 @@ -12174,8 +12311,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT ( - - col1 ) > NULL # Datafusion - Expected - -11 # Datafusion - Expected - 75 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(\-11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col2, - 11 AS col2 FROM tab2 AS cor0 +---- +-11 +-11 +-11 +46 +64 +75 query I rowsort SELECT ALL 57 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL @@ -12635,8 +12779,11 @@ SELECT 50 + 43 + MAX ( DISTINCT - col0 ), + MAX ( + col2 ) col1 FROM tab2 AS cor # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- min\(cor0\.col1\)\)\) AS col1" at position 0 and "max\(DISTINCT \(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - MIN ( ALL + col1 ) AS col1, MAX ( DISTINCT - ( + col1 ) ) AS col1 FROM tab2 AS cor0 +---- +-51 +51 query I rowsort label-2101 SELECT - MAX ( 89 ) + - CAST ( NULL AS INTEGER ) + + 73 FROM tab0 @@ -12747,8 +12894,15 @@ SELECT + + 49 / + - col1 AS col1 FROM tab2 cor0 # Datafusion - Expected - -40 # Datafusion - Expected - 58 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(cor0\.col2 AS Int32\)\)\) AS col2" at position 0 and "\(\- CAST\(\(\- Int64\(\-40\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - CAST ( col2 AS INTEGER ) ) AS col2, - CAST ( - - 40 AS INTEGER ) AS col2 FROM tab2 AS cor0 +---- +-40 +-40 +-40 +23 +40 +58 query III rowsort SELECT * FROM tab2 AS cor0 WHERE + - col2 * + col2 + + col2 IS NULL AND NULL IS NULL @@ -14046,8 +14200,15 @@ SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN + - 62 AND + 86 - + col0 # Datafusion - Expected - 40 # Datafusion - Expected - 2475 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 33 * + + col0 AS col1, + ( + + col2 ) AS col1 FROM tab2 AS cor0 +---- +1518 +2112 +23 +2475 +40 +58 query III rowsort SELECT * FROM tab0 WHERE NULL >= col2 + 4 + col0 @@ -14830,8 +14991,11 @@ SELECT DISTINCT * FROM tab2 WHERE 51 IS NOT NULL # 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\(CAST\(Int64\(5\) AS Float64\)\) AS col0" at position 0 and "Int64\(1\) \* Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( + CAST ( + + 5 AS FLOAT8 ) ) AS col0, + 1 * - 19 AS col0 FROM tab2 +---- +-19 +3 query I rowsort label-2461 SELECT DISTINCT 31 / + col2 FROM tab1 @@ -15465,8 +15629,15 @@ NULL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, col1 FROM tab0 cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-2566 SELECT ALL + + COUNT ( + 28 ) FROM tab0 AS cor0 @@ -15736,8 +15907,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + col1 IS NULL # Datafusion - Expected - 91 # Datafusion - Expected - -5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, col0 AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +51 +85 +91 query I rowsort label-2611 SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL <> + col2 * col1 - + col1 * + col0 * - col0 + 46 + + 18 @@ -15867,8 +16045,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL +---- +3 +3 query I rowsort SELECT - - col2 * + col1 - - col2 * - col1 AS col1 FROM tab1 cor0 @@ -16430,8 +16611,11 @@ SELECT ALL - MAX ( - - col1 ) FROM tab2 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 "min\(DISTINCT Int64\(21\)\) AS col2" at position 0 and "count\(Int64\(\-62\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( DISTINCT 21 ) AS col2, + COUNT ( - 62 ) AS col2 FROM tab2 cor0 +---- +21 +3 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT col0 + - col2 IS NOT NULL @@ -16728,8 +16912,15 @@ SELECT - - col0 / - + col1 + 92 FROM tab2 AS cor0 # Datafusion - Expected - 58 # Datafusion - Expected - -77 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +23 +40 +58 query I rowsort SELECT DISTINCT - col2 * + - col1 FROM tab1 cor0 WHERE NOT + 93 <> - 17 @@ -17734,8 +17925,15 @@ SELECT - - COUNT ( * ) * - 8 + - - 25 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 162 # Datafusion - Expected - 34 # Datafusion - Expected - 173 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "tab2\.col0 \+ Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 34 AS col2, col0 + 98 AS col2 FROM tab2 +---- +144 +162 +173 +34 +34 +34 query I rowsort SELECT - col1 + - - 72 AS col0 FROM tab2 @@ -18015,8 +18213,15 @@ SELECT - col2 + 37 / + + 67 + col1 * - col2 FROM tab2 AS cor0 WHERE ( NULL ) <= # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col0, col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query III rowsort SELECT * FROM tab0 WHERE NOT - ( 41 ) * - col2 * - col2 + - - col1 / - col0 * + - col2 NOT IN ( + ( - 52 ) + + col1 ) @@ -18600,8 +18805,15 @@ SELECT DISTINCT ( + + col2 ) * - - col1 + + col2 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* CAST\(NULL AS Float64\) \+ Int64\(34\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT col1 * CAST ( NULL AS FLOAT8 ) + + + 34 AS col0, col1 AS col0 FROM tab1 AS cor0 +---- +14 +47 +5 +NULL +NULL +NULL query I rowsort SELECT - + 34 * 94 * 40 AS col2 FROM tab2 cor0 @@ -21384,8 +21596,15 @@ SELECT DISTINCT - - 10 / - col1 + + ( + + 77 ) FROM tab0 AS cor0 # Datafusion - Expected - -2280 # Datafusion - Expected - 20 # Datafusion - Expected - -2280 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \+ \(\- cor0\.col1\) AS col0" at position 0 and "Int64\(30\) \* \(\- Int64\(76\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 + - col1 col0, + 30 * - ( 76 ) AS col0 FROM tab0 AS cor0 +---- +-2280 +-2280 +-2280 +-60 +0 +20 query I rowsort label-3544 SELECT - 11 * - - MIN ( DISTINCT col1 ) + + COUNT ( ALL + - col0 ) AS col0 FROM tab1 AS cor0 @@ -21792,8 +22011,15 @@ SELECT + col1 col0, col0 FROM tab0 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 97 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col0\) \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, - col0 + + col0 AS col2 FROM tab0 AS cor0 +---- +0 +0 +0 +15 +87 +97 query I rowsort label-3608 SELECT ALL COUNT ( * ) * + + 2 FROM tab2 @@ -21930,8 +22156,15 @@ SELECT DISTINCT col2, 38 FROM tab2 # Datafusion - Expected - 10 # Datafusion - Expected - 81 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +1 +10 +21 +47 +81 +99 query I rowsort SELECT ALL - - col0 * - col1 + col2 - - 5 AS col2 FROM tab2 AS cor0 @@ -22183,8 +22416,11 @@ SELECT ALL ( + - col2 ) AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / sum\(cor0\.col2\) \+ Int64\(26\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) / + SUM ( col2 ) + 26 AS col0, + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL > + CAST ( NULL AS FLOAT8 ) +---- +0 +NULL query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 13 * + col2 * - 98 + + - col0 @@ -22471,8 +22707,15 @@ SELECT DISTINCT + + 2 * + col2 + col1 + col0 FROM tab1 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 + - + CAST ( NULL AS INTEGER ) AS col1, col2 AS col1 FROM tab2 +---- +23 +40 +58 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 - + col0 NOT BETWEEN NULL AND + - 63 @@ -22526,8 +22769,15 @@ SELECT - col0 * + 18 AS col2 FROM tab1 # Datafusion - Expected - 81 # 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 "Int64\(75\) \+ Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 AS col2, 75 + + 6 AS col2 FROM tab0 +---- +19 +19 +19 +81 +81 +81 query I rowsort SELECT 2 * + ( - col0 ) AS col1 FROM tab2 @@ -23305,8 +23555,15 @@ SELECT - 10 - - 80 FROM tab0 # Datafusion - Expected - 7129 # Datafusion - Expected - 60 # Datafusion - Expected - 741 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "tab0\.col2 \* Int64\(72\) \+ tab0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 60 AS col1, + col2 * + 72 + + col1 col1 FROM tab0 +---- +3465 +60 +60 +60 +7129 +741 query I rowsort label-3859 SELECT ALL - col1 - + - CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab0 @@ -23684,8 +23941,15 @@ NULL # Datafusion - Expected - -47 # Datafusion - Expected - 75 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 AS col0, - col1 AS col0 FROM tab1 cor0 +---- +-14 +-47 +-5 +75 +75 +75 query II rowsort label-3923 SELECT DISTINCT - 13 - - COUNT ( - - 66 ) col1, + 36 AS col0 FROM tab0 AS cor0 @@ -23981,8 +24245,15 @@ SELECT ALL - 53 FROM tab1 AS cor0 WHERE NOT - col0 * - col1 + - + col1 IS NULL O # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col2, col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL +---- +10 +10 +47 +47 +99 +99 query III rowsort label-3971 SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( + ( - col2 ) AS INTEGER ) IS NOT NULL @@ -24296,8 +24567,15 @@ SELECT * FROM tab2 AS cor0 WHERE - 65 * - col0 IS NOT NULL # Datafusion - Expected - -171738 # Datafusion - Expected - 60 # Datafusion - Expected - -9118 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col2" at position 0 and "cor0\.col1 \* Int64\(94\) \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 60 AS col2, col1 * + + 94 * - col0 col2 FROM tab0 AS cor0 +---- +-114210 +-171738 +-9118 +60 +60 +60 query I rowsort SELECT ALL - 22 * - col1 AS col2 FROM tab2 AS cor0 @@ -25274,8 +25552,15 @@ SELECT - COUNT ( DISTINCT + - col2 ) FROM tab2 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - -81 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 col0, - col0 AS col0 FROM tab0 AS cor0 +---- +-1 +-15 +-21 +-81 +-87 +-97 query I rowsort label-4182 SELECT + COUNT ( DISTINCT - col2 ) AS col2 FROM tab2 @@ -27314,8 +27599,15 @@ SELECT ALL * FROM tab0 WHERE - col1 - 67 + col1 + - col0 IS NULL # Datafusion - Expected - 14 # Datafusion - Expected - 91 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 91 AS col2, + 14 AS col2 FROM tab0 +---- +14 +14 +14 +91 +91 +91 query I rowsort label-4521 SELECT DISTINCT MIN ( ( col2 ) ) - - 2 AS col0 FROM tab0 @@ -27411,8 +27703,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) + + MIN ( - - ( col1 ) ) AS col1, + 56 AS col1 FROM tab0 +---- +4 +56 query III rowsort label-4536 SELECT * FROM tab1 WHERE ( col0 ) IS NOT NULL AND NULL <= CAST ( NULL AS INTEGER ) @@ -28317,8 +28612,11 @@ SELECT + ( + 67 ) AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 36 AS col1, COUNT ( * ) AS col1 FROM tab1 +---- +3 +36 query II rowsort SELECT DISTINCT 52 * col2 + - col1 + + 42, + col0 AS col1 FROM tab0 @@ -29690,8 +29988,15 @@ SELECT 72 * COUNT ( * ) * + 53 FROM tab1 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - 5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, col0 col2 FROM tab1 AS cor0 +---- +14 +47 +5 +51 +85 +91 query I rowsort SELECT 6 * - 34 AS col0 FROM tab1 AS cor0 @@ -29802,8 +30107,15 @@ SELECT + COUNT ( * ) / - ( - ( - ( 24 ) ) ) FROM tab1 AS cor0 # Datafusion - Expected - 36 # Datafusion - Expected - -97 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col0, + 36 col0 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +36 +36 +36 query II rowsort SELECT DISTINCT - - col0 AS col2, 62 FROM tab0 cor0 @@ -30557,8 +30869,15 @@ SELECT ALL - col1 / 4 FROM tab2 cor0 # Datafusion - Expected - -1677 # Datafusion - Expected - 91 # Datafusion - Expected - -1668 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col2 \+ Int64\(\-31\) \* Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 col2, + col2 + - 31 * 56 AS col2 FROM tab1 AS cor0 +---- +-1640 +-1668 +-1677 +51 +85 +91 query II rowsort label-5052 SELECT + 30, + col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col0 * + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) ) @@ -30880,8 +31199,15 @@ SELECT - col0 * - 25 * col1 FROM tab0 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 47 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 47 AS col1, col0 AS col1 FROM tab1 AS cor0 +---- +47 +47 +47 +51 +85 +91 query III rowsort SELECT * FROM tab0 AS cor0 WHERE ( - ( - col2 ) ) IS NOT NULL @@ -31989,8 +32315,15 @@ SELECT - MAX ( ALL + + 95 ) AS col2 FROM tab2 # Datafusion - Expected - -29 # Datafusion - Expected - 9603 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* tab0\.col0 \* tab0\.col2 AS col0" at position 0 and "Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + col0 * col2 AS col0, - 29 AS col0 FROM tab0 +---- +-29 +-29 +-29 +18270 +57105 +9603 query I rowsort SELECT DISTINCT col2 - 21 FROM tab2 AS cor0 @@ -32105,8 +32438,11 @@ SELECT ALL col2 + + - col2 * + - col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(90\) \- CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 90 * 90 - + CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) col0 FROM tab1 +---- +3 +NULL query I rowsort label-5313 SELECT ALL 16 + + col0 / col0 * - 17 AS col0 FROM tab1 @@ -32891,8 +33227,15 @@ SELECT DISTINCT + COUNT ( * ) - + 85 FROM tab2 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, + col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT ALL - col1 + - - col0 AS col1 FROM tab2 @@ -33511,8 +33854,10 @@ SELECT DISTINCT + col0 AS col0, col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 417c288921895f31abb4f3fceeaa6fe1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ tab1\.col0 AS col1" at position 0 and "CAST\(Int64\(0\) AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL col1 + + col0 AS col1, col1 * + col0 * - col2, + CAST ( + - 0 AS INTEGER ) AS col1 FROM tab1 +---- +9 values hashing to 7a009c648cebc54c6d0faffb6ce7e586 query I rowsort label-5549 SELECT DISTINCT 5 * - 2 / ( 35 ) col1 FROM tab0 @@ -33543,8 +33888,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 WHERE - ( - col1 ) * - col0 * col1 / - col2 IS NULL +---- +0 +0 query I rowsort SELECT DISTINCT - - 88 * + 48 AS col2 FROM tab1 AS cor0 @@ -33758,8 +34106,15 @@ SELECT ALL COUNT ( * ) + - 16 AS col1 FROM tab2 # Datafusion - Expected - 150124 # Datafusion - Expected - -96 # Datafusion - Expected - 18728 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col2 \* cor0\.col1 \* \(\- \(\- cor0\.col1\)\) \+ Int64\(\-88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, col2 * col1 * - - col1 + - 88 col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +1387 +150124 +18728 query I rowsort SELECT DISTINCT + 74 * - 72 - 72 FROM tab2 AS cor0 @@ -35254,8 +35609,15 @@ NULL # Datafusion - Expected - -441 # Datafusion - Expected - -24 # Datafusion - Expected - -6561 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col1" at position 0 and "tab0\.col1 \* \(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 24 AS col1, col1 * - col1 col1 FROM tab0 +---- +-1 +-24 +-24 +-24 +-441 +-6561 query III rowsort label-5837 SELECT * FROM tab0 WHERE CAST ( - 73 AS INTEGER ) IS NOT NULL @@ -35489,8 +35851,15 @@ SELECT - + COUNT ( - 9 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 43 # Datafusion - Expected - 99 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, + 43 AS col1 FROM tab0 cor0 +---- +10 +43 +43 +43 +47 +99 query I rowsort SELECT - col2 + + 61 AS col2 FROM tab1 @@ -35501,8 +35870,10 @@ SELECT - col2 + + 61 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 4e49151efa9914237bd468f51dd8d24d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 1 and "Int64\(14\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 69 + 46, 92 AS col1, + 14 AS col1 FROM tab2 +---- +9 values hashing to 68880f8b0863f99edc83c18a282e920e query I rowsort label-5876 SELECT + ( + - 55 ) + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( col1 * - col1 ) IS NULL @@ -37170,8 +37541,15 @@ SELECT 91 AS col2, + 68 col0 FROM tab0 # Datafusion - Expected - 21 # Datafusion - Expected - 9603 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- \(\- tab0\.col0\)\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * - ( - col0 ) AS col0, + ( col1 ) AS col0 FROM tab0 +---- +1 +21 +705 +81 +870 +9603 query I rowsort label-6146 SELECT CAST ( + + 99 AS INTEGER ) AS col1 FROM tab0 @@ -37644,8 +38022,15 @@ SELECT col2 + + + 44 FROM tab2 AS cor0 # Datafusion - Expected - 4277 # Datafusion - Expected - 5 # Datafusion - Expected - 425 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col0 \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col0, + col0 * + + col1 AS col0 FROM tab1 AS cor0 +---- +14 +425 +4277 +47 +5 +714 query I rowsort SELECT ALL col1 + + 64 FROM tab1 AS cor0 WHERE NOT 59 * + col2 * - ( - col0 ) IS NULL @@ -37794,8 +38179,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) + - - COUNT ( * ) AS col2, 51 AS col2 FROM tab1 +---- +0 +51 query I rowsort label-6243 SELECT DISTINCT 45 * - 3 * + SUM ( + - ( + col1 ) ) AS col1 FROM tab0 AS cor0 @@ -38287,8 +38675,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "max\(\(\- Int64\(\-46\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, + MAX ( - - 46 ) col0 FROM tab2 +---- +3 +46 query I rowsort SELECT + 11 AS col2 FROM tab0 WHERE NOT NULL <= NULL @@ -38356,8 +38747,11 @@ SELECT DISTINCT - COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS 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 IR valuesort SELECT DISTINCT ( + 30 ) AS col2, - CAST ( NULL AS FLOAT8 ) AS col2 FROM tab0 AS cor0 +---- +30 +NULL query I rowsort SELECT + 2 + col2 * + + col0 - - ( - ( + - col0 ) ) FROM tab0 AS cor0 @@ -38637,8 +39031,11 @@ SELECT ALL - col0 AS col2, col0 * + col2 * col0 FROM tab0 WHERE - 75 BETWEEN 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4599 # Datafusion - Expected - -185 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \* \(\- Int64\(\-52\)\) \+ Int64\(29\) AS col2" at position 0 and "\(\- sum\(tab2\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 89 * - - 52 + 29 AS col2, - SUM ( col0 ) AS col2 FROM tab2 +---- +-185 +-4599 query I rowsort label-6380 SELECT - - CAST ( + 55 AS INTEGER ) FROM tab2 AS cor0 @@ -39186,8 +39583,15 @@ SELECT + ( 36 ) * + 63 + - col1 + - - col2 + + + col2 / + - 14 FROM tab0 # Datafusion - Expected - 49 # Datafusion - Expected - 6188 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* tab1\.col2 AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * + col2 AS col2, 49 AS col2 FROM tab1 +---- +4896 +49 +49 +49 +5015 +6188 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > + 44 @@ -39259,8 +39663,11 @@ SELECT + col1 * 50 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- tab0\.col0\)\) AS col1" at position 0 and "min\(Int64\(71\)\) \+ \(\- Int64\(17\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( ALL - col0 ) col1, MIN ( + + 71 ) + - + 17 AS col1 FROM tab0 +---- +-97 +54 query III rowsort SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col2 AND NULL @@ -39290,8 +39697,9 @@ SELECT DISTINCT + + COUNT ( * ) col2 FROM tab0 AS cor0 3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, col1 AS col2 FROM tab0 WHERE NOT NULL IS NULL +---- query I rowsort label-6485 SELECT ALL COUNT ( * ) / - - 68 AS col2 FROM tab1 @@ -39351,8 +39759,15 @@ SELECT ALL - col2 / + col2 + - 56 AS col1 FROM tab0 # Datafusion - Expected - 3264 # Datafusion - Expected - 39 # Datafusion - Expected - 354 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col2" at position 0 and "\(\- tab1\.col1\) \* \(\- tab1\.col2\) \+ tab1\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 39 AS col2, - col1 * - col2 + col2 AS col2 FROM tab1 +---- +1440 +3264 +354 +39 +39 +39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 @@ -39361,8 +39776,15 @@ SELECT ALL 39 AS col2, - col1 * - col2 + col2 AS col2 FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, col2 AS col1 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT DISTINCT + 41 + + + col2 AS col2 FROM tab2 @@ -40465,8 +40887,9 @@ SELECT DISTINCT - col1 - + col1 - + 81 AS col2 FROM tab0 -83 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, 45 AS col2 FROM tab2 AS cor0 WHERE NOT + ( - 72 ) IS NOT NULL +---- query I rowsort label-6685 SELECT ALL - col1 / + 75 FROM tab2 AS cor0 @@ -40803,8 +41226,15 @@ SELECT DISTINCT + 10 FROM tab0 WHERE NOT 36 <> + 11 # Datafusion - Expected - 75 # Datafusion - Expected - -77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, col0 AS col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +46 +64 +75 query I rowsort label-6740 SELECT col1 * + col1 + + col0 / + col0 AS col1 FROM tab1 cor0 @@ -41457,8 +41887,12 @@ SELECT ALL - 30 * - col0 * - 13 + + col1 FROM tab2 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - NULL # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(94\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / avg\(\(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IRI valuesort SELECT DISTINCT COUNT ( * ) / + 94 AS col1, - CAST ( NULL AS INTEGER ) / + AVG ( - + col1 ) AS col1, + 23 FROM tab1 AS cor0 +---- +0 +23 +NULL query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + - - ( - 34 ) - + + col1 = 43 @@ -41613,8 +42047,15 @@ SELECT + MAX ( DISTINCT - + col2 ) FROM tab0 # Datafusion - Expected - 2585 # Datafusion - Expected - 98 # Datafusion - Expected - 5445 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \- \(\- CAST\(tab0\.col1 AS Int32\)\) AS col0" at position 0 and "\(\- tab0\.col2\) \* Int64\(\-50\) \+ tab0\.col2 \* Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 - - CAST ( + col1 AS INTEGER ) AS col0, - col2 * - 50 + + col2 * 5 AS col0 FROM tab0 +---- +108 +2585 +5445 +550 +96 +98 query I rowsort label-6876 SELECT DISTINCT CAST ( + col1 AS INTEGER ) - - col0 + + CAST ( - 29 AS INTEGER ) + + col2 + col2 * col1 * + 79 * + ( + 1 ) FROM tab2 @@ -42292,8 +42733,15 @@ SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE - col0 * col1 IS NOT NULL # Datafusion - Expected - 64 # Datafusion - Expected - 5025 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col0 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 * col0 col2, col0 AS col2 FROM tab2 AS cor0 +---- +2346 +46 +4928 +5025 +64 +75 query I rowsort label-6993 SELECT ALL + col2 * CAST ( col2 AS INTEGER ) * - 76 * - - col2 col2 FROM tab0 AS cor0 @@ -42587,8 +43035,11 @@ SELECT DISTINCT col1 / + 41 AS col1, ( 70 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -1953 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(63\) \* \(\- Int64\(31\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, 63 * - + 31 AS col2 FROM tab2 AS cor0 +---- +-1953 +3 query I rowsort label-7041 SELECT ALL COUNT ( * ) * - COUNT ( * ) FROM tab1 cor0 @@ -43429,8 +43880,15 @@ SELECT DISTINCT + ( + col0 ) / + 72 * col1 + - ( - + 22 ) col1 FROM tab2 WHERE N # Datafusion - Expected - 0 # Datafusion - Expected - 32 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "\(\- tab0\.col2\) \+ \(\- \(\- tab0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 32 AS col2, - col2 + - ( - col2 ) AS col2 FROM tab0 +---- +0 +0 +0 +32 +32 +32 query III rowsort SELECT * FROM tab2 WHERE NOT - 66 <= - col2 @@ -44074,8 +44532,15 @@ SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 < + - 56 # Datafusion - Expected - -96 # Datafusion - Expected - 84 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* \(\- \(\- tab1\.col1\)\) \+ tab1\.col2 AS col2" at position 0 and "\(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * - - col1 + + col2 AS col2, - col2 AS col2 FROM tab1 +---- +-59 +-68 +-96 +2277 +292 +84 query I rowsort label-7288 SELECT CAST ( - 96 AS INTEGER ) * COUNT ( * ) + + 83 AS col0 FROM tab2 @@ -44531,8 +44996,11 @@ SELECT DISTINCT - MIN ( - ( + - 75 ) ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 +---- +3 +NULL query I rowsort SELECT ALL - col1 - + 26 AS col0 FROM tab0 AS cor0 @@ -45802,8 +46270,11 @@ SELECT 51 AS col1, + col1 + + col0 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* count\(tab0\.col0\) AS col2" at position 0 and "\(\- sum\(\(\- tab0\.col1\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 3 * + ( + COUNT ( ALL + col0 ) ) AS col2, - SUM ( - + col1 ) AS col2 FROM tab0 +---- +103 +9 query I rowsort label-7582 SELECT 96 * SUM ( col2 ) AS col1 FROM tab0 WHERE NOT + 24 * - 52 IS NULL @@ -46031,8 +46502,11 @@ SELECT * FROM tab0 AS cor0 WHERE col1 NOT IN ( + 41 - + col1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) col1, COUNT ( * ) AS col1 FROM tab0 +---- +3 +3 query I rowsort label-7623 SELECT ALL + MIN ( ALL + CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab2 @@ -46200,8 +46674,15 @@ SELECT + CAST ( - 23 AS INTEGER ) * + - COUNT ( * ) col0 FROM tab2 # Datafusion - Expected - 7225 # Datafusion - Expected - 0 # Datafusion - Expected - 8281 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) / Int64\(\-69\) AS col2" at position 0 and "tab1\.col0 \* tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 45 / - 69 AS col2, col0 * + col0 AS col2 FROM tab1 +---- +0 +0 +0 +2601 +7225 +8281 query I rowsort SELECT ALL + 17 + - - col0 FROM tab1 @@ -46769,12 +47250,20 @@ SELECT DISTINCT - COUNT ( * ) * - 81 col0 FROM tab1 AS cor0 WHERE NOT col1 >= + # Datafusion - Expected - 40 # Datafusion - Expected - -75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, + col2 AS col0 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +23 +40 +58 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 AS col1, col0 AS col1 FROM tab1 cor0 WHERE NOT + col1 > NULL +---- query I rowsort label-7744 SELECT DISTINCT + - MAX ( - col0 ) col0 FROM tab1 AS cor0 @@ -47037,8 +47526,11 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT - - 13 IS NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, 34 AS col2 FROM tab1 cor0 +---- +3 +34 query II rowsort SELECT DISTINCT - + col0 AS col0, + 64 FROM tab1 AS cor0 @@ -47329,8 +47821,15 @@ SELECT DISTINCT - ( 84 ) FROM tab1 AS cor0 WHERE NOT 74 + col1 < + + CAST ( NULL # Datafusion - Expected - 152317 # Datafusion - Expected - 154 # Datafusion - Expected - 89677 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col1 AS col2" at position 0 and "cor0\.col2 \* Int64\(35\) \* cor0\.col0 \+ cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + col1 AS col2, + col2 * + 35 * + col0 + + col1 AS col2 FROM tab2 cor0 +---- +102 +134 +152317 +154 +37081 +89677 query II rowsort label-7836 SELECT - COUNT ( * ) AS col2, + COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) @@ -47534,8 +48033,15 @@ SELECT DISTINCT col1 - - 18 FROM tab2 # Datafusion - Expected - 100 # Datafusion - Expected - 81 # Datafusion - Expected - 2209 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col2 \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col2, col2 * col2 col2 FROM tab0 AS cor0 +---- +1 +100 +21 +2209 +81 +9801 query II rowsort SELECT DISTINCT col0 AS col1, 31 + col1 FROM tab0 AS cor0 @@ -47760,8 +48266,11 @@ SELECT + - col2 AS col2, col2 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) 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 II valuesort SELECT DISTINCT - 88 AS col2, 93 / - - 17 AS col2 FROM tab0 AS cor0 WHERE ( - col2 ) IS NOT NULL +---- +-88 +5 query III rowsort SELECT DISTINCT * FROM tab2 WHERE 19 * + col2 IS NULL @@ -47965,8 +48474,11 @@ SELECT ALL + COUNT ( * ) + - 52 col0 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\(DISTINCT \(\- Int64\(12\)\)\)\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( DISTINCT - ( + 12 ) ) AS col0, 14 AS col0 FROM tab0 +---- +-1 +14 query I rowsort SELECT DISTINCT col2 + - - col1 col1 FROM tab2 @@ -48948,8 +49460,15 @@ SELECT - col2 / + + col0 FROM tab0 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - -616 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* \(\- tab2\.col1\) AS col1" at position 0 and "Int64\(59\) / \(\- \(\- tab2\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 8 * - col1 AS col1, + 59 / - - col0 AS col1 FROM tab2 +---- +-408 +-536 +-616 +0 +0 +1 query I rowsort SELECT ALL - col1 col1 FROM tab0 WHERE NULL IS NOT NULL @@ -48976,8 +49495,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( 25, - 13, + - col2 / + col2, # Datafusion - Expected - 27 # Datafusion - Expected - 0 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) / cor0\.col1 AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 / + col1 AS col2, 27 AS col2 FROM tab0 AS cor0 +---- +-99 +0 +0 +27 +27 +27 query I rowsort SELECT DISTINCT + 4 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 @@ -49350,8 +49876,15 @@ SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT - 21 IS NOT NULL # Datafusion - Expected - -2560 # Datafusion - Expected - 69 # Datafusion - Expected - -4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "\(\- tab2\.col0\) \* tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 col0, - col0 * + + col2 AS col0 FROM tab2 +---- +-1058 +-2560 +-4350 +69 +69 +69 query I rowsort label-8177 SELECT ALL - CAST ( MAX ( - col1 ) AS INTEGER ) FROM tab2 @@ -50190,8 +50723,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - -72 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 72 AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +-72 +-72 +-72 +10 +47 +99 query II rowsort SELECT - - col2 AS col1, 69 FROM tab1 AS cor0 @@ -50283,8 +50823,11 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 + + col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 900 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(75\) \* CAST\(Int64\(12\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) + - ( - COUNT ( * ) ) AS col1, 75 * + CAST ( 12 AS INTEGER ) AS col1 FROM tab2 AS cor0 +---- +6 +900 query I rowsort SELECT DISTINCT + 77 + - - col2 AS col2 FROM tab1 @@ -51282,8 +51825,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 53 AS col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-3 +53 query III rowsort SELECT ALL * FROM tab1 WHERE - col0 >= ( NULL ) @@ -52381,8 +52927,11 @@ SELECT ALL SUM ( + 92 ) FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 84 col0, COUNT ( * ) col0 FROM tab2 +---- +3 +84 query III rowsort label-8670 SELECT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) * 4 < NULL @@ -52401,8 +52950,11 @@ SELECT col2, col1 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "CAST\(Int64\(80\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 49 AS col2, CAST ( 80 AS INTEGER ) AS col2 FROM tab1 +---- +49 +80 query I rowsort label-8673 SELECT col2 / - + 26 AS col1 FROM tab0 @@ -53353,8 +53905,15 @@ SELECT - 29 * + col1 AS col1 FROM tab0 # Datafusion - Expected - 92 # Datafusion - Expected - -91 # Datafusion - Expected - 140 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "tab1\.col1 \+ Int64\(2\) \- \(\- CAST\(tab1\.col0 AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col1, col1 + + + 2 - - ( CAST ( + col0 AS INTEGER ) ) AS col1 FROM tab1 +---- +-51 +-85 +-91 +140 +67 +92 query I rowsort label-8823 SELECT ALL - SUM ( - 30 ) FROM tab0 AS cor0 @@ -53372,8 +53931,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 18 # Datafusion - Expected - -24 # Datafusion - Expected - 77 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(\-24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, - 24 AS col0 FROM tab2 AS cor0 +---- +-24 +-24 +-24 +51 +67 +77 query I rowsort SELECT + 27 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 @@ -53801,8 +54367,15 @@ SELECT DISTINCT - + col1 * + ( col2 ) + col0 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -5248 # Datafusion - Expected - 75 # Datafusion - Expected - -6150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col0 \* Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, col0 * - 82 col1 FROM tab2 cor0 +---- +-3772 +-5248 +-6150 +46 +64 +75 query I rowsort label-8899 SELECT ALL + 78 * + COUNT ( * ) + + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0 @@ -53963,8 +54536,11 @@ SELECT * FROM tab1 WHERE + 65 = NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 130 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ Int64\(39\) AS col0" at position 0 and "max\(tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 91 + + + 39 AS col0, + MAX ( col1 ) AS col0 FROM tab0 +---- +130 +81 query III rowsort SELECT * FROM tab2 WHERE NOT + col0 > ( - ( ( - col1 ) ) ) @@ -55588,8 +56164,15 @@ SELECT ALL - COUNT ( * ) AS col2 FROM tab1, tab2 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, col2 col0 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > 32 @@ -56566,8 +57149,9 @@ SELECT ALL col0 * - col2 * - col0 * col0 AS col0 FROM tab1 AS cor0 51242828 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, col1 FROM tab0 cor0 WHERE NOT col1 IS NOT NULL +---- query II rowsort SELECT col1 AS col1, + 78 + + + 11 + + col2 + - ( - col2 ) + 78 col2 FROM tab1 AS cor0 @@ -56899,8 +57483,11 @@ SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND + # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 +---- +-9 +9 query I rowsort label-9407 SELECT MIN ( - ( col2 ) ) FROM tab2 @@ -57047,8 +57634,15 @@ SELECT DISTINCT - col0 + - 98 + - + 60 FROM tab2 # Datafusion - Expected - 4656 # Datafusion - Expected - 92 # Datafusion - Expected - 720 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col0" at position 0 and "tab0\.col0 \+ \(\- tab0\.col2\) \+ Int64\(\-48\) \* \(\- tab0\.col0\) \+ tab0\.col2 \- \(\- \(\- tab0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 AS col0, col0 + - col2 + - 48 * - col0 + col2 - + - ( - col0 ) AS col0 FROM tab0 +---- +4176 +4656 +720 +92 +92 +92 query I rowsort label-9432 SELECT MAX ( - CAST ( + col1 AS INTEGER ) ) col0 FROM tab0 @@ -57340,8 +57934,15 @@ SELECT + MAX ( - col2 ) * 28 + - 12 col1 FROM tab2 # Datafusion - Expected - 52 # Datafusion - Expected - 25 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 25 AS col2, 52 AS col2 FROM tab1 +---- +25 +25 +25 +52 +52 +52 query II rowsort SELECT ALL + col0, + col0 * col1 FROM tab1 @@ -58654,8 +59255,15 @@ SELECT - col2, + col0 + col0 col0 FROM tab2 # Datafusion - Expected - 130 # Datafusion - Expected - -48 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "tab1\.col2 \+ \(\- Int64\(\-34\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 col2, col2 + - - 34 AS col2 FROM tab1 +---- +-48 +-48 +-48 +102 +130 +93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 @@ -58664,8 +59272,15 @@ SELECT - 48 col2, col2 + - - 34 AS col2 FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col0, + col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT ALL + - 5 FROM tab2 WHERE NULL BETWEEN col0 AND col1 @@ -59072,8 +59687,11 @@ SELECT ALL - - col1 - - 29 - + 42 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, 42 AS col2 FROM tab0 AS cor0 +---- +3 +42 query I rowsort label-9772 SELECT DISTINCT + + SUM ( ALL + col1 ) AS col0 FROM tab0 AS cor0 @@ -59263,8 +59881,9 @@ SELECT 41 / col0 FROM tab1 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "Int64\(91\) \+ Int64\(\-93\) \+ \(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, 91 + - 93 + - col1 AS col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL AND NOT NULL NOT IN ( - + col1 ) +---- query I rowsort SELECT ALL + 56 col2 FROM tab0 @@ -59348,8 +59967,11 @@ SELECT ALL ( ( + 59 ) ) * col2 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 174 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 59 * + COUNT ( * ) - + COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +174 +3 query I rowsort SELECT ALL - - col2 + + 33 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL @@ -59641,8 +60263,15 @@ SELECT + + ( - col0 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - 96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 AS col1, CAST ( - + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +59 +68 +96 query I rowsort label-9866 SELECT DISTINCT - COUNT ( * ) + COUNT ( DISTINCT - col0 ) FROM tab2 diff --git a/data/sqlite/random/aggregates/slt_good_73.slt b/data/sqlite/random/aggregates/slt_good_73.slt index 7024d21..71583b7 100644 --- a/data/sqlite/random/aggregates/slt_good_73.slt +++ b/data/sqlite/random/aggregates/slt_good_73.slt @@ -292,8 +292,15 @@ SELECT DISTINCT - 79 * + col0 + + - col0 * - 33 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 7225 # Datafusion - Expected - 45 # Datafusion - Expected - 2601 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \- \(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "cor0\.col0 \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 - - ( - col0 ) AS col0, + col0 * + col0 AS col0 FROM tab1 AS cor0 +---- +-23 +-26 +2601 +45 +7225 +8281 query III rowsort SELECT * FROM tab0 WHERE ( 61 NOT BETWEEN 68 + - col0 AND - 10 - + col1 ) @@ -629,8 +636,15 @@ SELECT - col1 * + + 41 AS col2 FROM tab0 # Datafusion - Expected - -68 # Datafusion - Expected - -48 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "\(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 AS col2, - ( col2 ) AS col2 FROM tab1 +---- +-48 +-48 +-48 +-59 +-68 +-96 query I rowsort label-101 SELECT ALL - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1 @@ -1048,8 +1062,15 @@ SELECT ALL - 30 * + col2 AS col0 FROM tab2 # Datafusion - Expected - 0 # Datafusion - Expected - 26 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "tab2\.col2 \+ \(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 AS col0, col2 + - col2 AS col0 FROM tab2 +---- +0 +0 +0 +26 +26 +26 query I rowsort label-168 SELECT COUNT ( * ) * + + 88 AS col2 FROM tab0 @@ -2595,8 +2616,15 @@ SELECT DISTINCT + col1 + + col1 * + 25 FROM tab1 AS cor0 # Datafusion - Expected - -61 # Datafusion - Expected - 3542 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \* tab2\.col1 AS col1" at position 0 and "\(\- tab2\.col0\) \+ Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 46 * + col1 col1, - ( col0 ) + 14 col1 FROM tab2 +---- +-32 +-50 +-61 +2346 +3082 +3542 query I rowsort SELECT ALL col2 + + 46 FROM tab0 @@ -4824,8 +4852,15 @@ SELECT ALL + col1 / + col0 + - 79 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 7 # Datafusion - Expected - -5 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col1 / Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, col1 / 6 AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +0 +2 +7 query I rowsort SELECT DISTINCT ( - + 75 ) FROM tab2 @@ -4943,8 +4978,15 @@ SELECT col2 - + ( - col0 ) AS col1 FROM tab0 cor0 # Datafusion - Expected - -95 # Datafusion - Expected - 3944 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(68\) AS col0" at position 0 and "Int64\(\-95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 * 68 col0, - 95 AS col0 FROM tab2 cor0 +---- +-95 +-95 +-95 +1564 +2720 +3944 query I rowsort SELECT DISTINCT col1 * - - 1 AS col2 FROM tab1 AS cor0 @@ -5091,8 +5133,15 @@ SELECT + ( - COUNT ( * ) ) + - MIN ( - - col0 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 30 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 30 AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +14 +30 +30 +30 +47 +5 query I rowsort SELECT + - 21 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 @@ -5207,8 +5256,15 @@ SELECT DISTINCT 93 * COUNT ( * ) col2 FROM tab1 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 74 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 74 ) AS col2, - col2 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +74 +74 +74 query III rowsort SELECT * FROM tab1 cor0 WHERE NOT 93 IS NULL @@ -5600,8 +5656,11 @@ SELECT + + 30 * ( COUNT ( * ) ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "Int64\(20\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 AS col1, 20 * COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +60 +93 query I rowsort label-921 SELECT - 47 * COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 @@ -5671,8 +5730,15 @@ SELECT ALL - 4, col2 col2 FROM tab1 # Datafusion - Expected - 67 # Datafusion - Expected - 88 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 AS col0, col1 AS col0 FROM tab2 +---- +51 +67 +77 +88 +88 +88 query I rowsort SELECT col0 * - 1 FROM tab2 @@ -5839,8 +5905,11 @@ SELECT + - 63 * - col2, + col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 2 AS col2, 20 col2 FROM tab1 AS cor0 +---- +2 +20 query I rowsort SELECT DISTINCT - col1 + - 74 AS col1 FROM tab1 cor0 @@ -5866,8 +5935,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 105 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ max\(tab2\.col0\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 30 + + MAX ( col0 ) col1, COUNT ( * ) AS col1 FROM tab2 +---- +105 +3 query I rowsort SELECT - col2 * - + col1 + - col1 + - col0 FROM tab2 @@ -5954,8 +6026,15 @@ SELECT * FROM tab1 cor0 WHERE 76 IS NULL # Datafusion - Expected - 85 # Datafusion - Expected - -2639 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) \* cor0\.col0 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 29 * col0 AS col2, + col0 AS col2 FROM tab1 cor0 +---- +-1479 +-2465 +-2639 +51 +85 +91 query I rowsort SELECT ALL + 15 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col1 AND NULL @@ -6234,8 +6313,11 @@ SELECT ALL col1 * - 35 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) / \(\- \(\- Int64\(\-5\)\)\) AS col0" at position 0 and "Int64\(20\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 85 / - ( - - 5 ) AS col0, + 20 - COUNT ( * ) AS col0 FROM tab1 +---- +17 +17 query I rowsort SELECT col2 * 11 AS col1 FROM tab1 @@ -7820,8 +7902,11 @@ SELECT ALL - + col1 * + ( col1 ) FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 45 AS col0, COUNT ( * ) AS col0 FROM tab0 +---- +3 +45 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -8278,8 +8363,15 @@ SELECT DISTINCT COUNT ( * ) - + - COUNT ( * ) AS col2 FROM tab1 # Datafusion - Expected - -1 # Datafusion - Expected - 32 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \- tab0\.col0 AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 - col0 AS col0, - col1 AS col0 FROM tab0 +---- +-1 +-21 +-77 +-81 +2 +32 query I rowsort label-1372 SELECT DISTINCT - + ( - - COUNT ( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 @@ -8699,8 +8791,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "count\(Int64\(\-29\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 25 AS col0, COUNT ( + - 29 ) AS col0 FROM tab0 +---- +25 +3 query I rowsort label-1444 SELECT ALL - 14 / - col2 AS col0 FROM tab1 @@ -8973,8 +9068,15 @@ NULL # Datafusion - Expected - -10 # Datafusion - Expected - -984 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* Int64\(\-74\) \+ cor0\.col1 / cor0\.col1 \- cor0\.col0 AS col0" at position 0 and "\(\- \(\- \(\- cor0\.col2\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 * - 74 + + ( col1 ) / + col1 - + col0 AS col0, + ( - - ( - col2 ) ) AS col0 FROM tab0 AS cor0 +---- +-10 +-47 +-902 +-974 +-984 +-99 query I rowsort SELECT DISTINCT + ( - col1 ) + - col2 * - + 58 FROM tab0 @@ -9266,8 +9368,15 @@ SELECT + 72 - 19 AS col0 FROM tab0 # Datafusion - Expected - -75 # Datafusion - Expected - -77 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, - col0 col1 FROM tab2 +---- +-46 +-51 +-64 +-67 +-75 +-77 query I rowsort SELECT ALL + - col2 AS col0 FROM tab2 WHERE - + 8 + + col1 = + - col0 @@ -10247,8 +10356,9 @@ SELECT DISTINCT + + col2 col1, col1 + + col1 - + 16 * - + col1 FROM tab1 cor0 252 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) / cor0\.col2 / Int64\(\-57\) \+ \(\- cor0\.col2\) AS col1" at position 0 and "\(\- cor0\.col0\) \* Int64\(\-85\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 51 / col2 / - 57 + - ( col2 ) AS col1, - col0 * - 85 * + col0 col1 FROM tab0 AS cor0 WHERE NOT NULL >= CAST ( NULL AS INTEGER ) + 39 + 60 +---- query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT ( - - col1 * + 29 * - + col0 ) IN ( + col2, col2, + 83 ) @@ -10477,8 +10587,11 @@ SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT cor0\.col1\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- Int64\(\-64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( DISTINCT + + col1 ) * + COUNT ( * ) AS col0, - ( - 64 ) AS col0 FROM tab1 AS cor0 +---- +-15 +64 query I rowsort SELECT col2 AS col1 FROM tab0 cor0 WHERE NOT + col1 <> + - col0 @@ -10573,8 +10686,15 @@ SELECT - 55 FROM tab1 AS cor0 WHERE CAST ( col1 AS INTEGER ) - + ( col0 ) > - + # Datafusion - Expected - NULL # Datafusion - Expected - 133 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- Int64\(\-58\)\) AS col0" at position 0 and "\(\- cor0\.col0\) \* CAST\(NULL AS Float64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + col0 + - - 58 AS col0, - col0 * CAST ( NULL AS FLOAT8 ) AS col0 FROM tab2 AS cor0 +---- +104 +122 +133 +NULL +NULL +NULL query I rowsort label-1750 SELECT - CAST ( NULL AS INTEGER ) + + col2 + - col2 AS col0 FROM tab0 cor0 @@ -10651,8 +10771,11 @@ SELECT col0, col1 * - - 8 FROM tab1 AS cor0 # 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 "max\(DISTINCT \(\- cor0\.col0\)\) \- CAST\(NULL AS Float64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 10 col1, + MAX ( DISTINCT - col0 ) - CAST ( NULL AS FLOAT8 ) AS col1 FROM tab2 AS cor0 +---- +10 +NULL query II rowsort label-1762 SELECT DISTINCT - - 51 / + 98 - 75 * + - col2 + + CAST ( NULL AS INTEGER ) / - - col1 col0, + col2 + + col2 FROM tab0 AS cor0 @@ -10985,8 +11108,11 @@ SELECT DISTINCT - 5 * + 1 + 45 AS col2 FROM tab0 # 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\(DISTINCT tab1\.col0\) / Int64\(26\) 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 II valuesort SELECT + COUNT ( DISTINCT + col0 ) / + ( + 26 ) AS col2, MIN ( - col0 ) AS col2 FROM tab1 +---- +-91 +0 query I rowsort SELECT ALL - - 81 FROM tab1 WHERE NOT ( NOT ( NULL ) = - - col2 ) @@ -11202,8 +11328,15 @@ SELECT DISTINCT col0 / col1 * - col0 AS col2 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - -98 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* tab0\.col1 \- tab0\.col1 \+ \(\- \(\- tab0\.col2\)\) \+ \(\- tab0\.col2\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 * + col1 - + col1 + - ( - col2 ) + - col2 AS col2, col1 AS col2 FROM tab0 WHERE + col2 IS NOT NULL +---- +-1296 +-1848 +-98 +1 +21 +81 query I rowsort SELECT DISTINCT + - col2 * + 38 * + 5 FROM tab1 AS cor0 @@ -11515,8 +11648,15 @@ NULL # Datafusion - Expected - 44 # Datafusion - Expected - 77 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, + 44 AS col0 FROM tab2 AS cor0 +---- +44 +44 +44 +51 +67 +77 query I rowsort SELECT + 60 * + - col1 AS col2 FROM tab2 @@ -11699,8 +11839,11 @@ SELECT - ( + SUM ( ALL col0 ) ) col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(48\)\) AS col2" at position 0 and "Int64\(75\) \- CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( DISTINCT + 48 ) AS col2, + 75 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 +---- +48 +NULL query I rowsort label-1929 SELECT - 70 * - ( COUNT ( * ) ) col0 FROM tab0 AS cor0 @@ -11767,8 +11910,15 @@ SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) = NULL OR NOT NULL IS NOT NULL # Datafusion - Expected - -2 # Datafusion - Expected - 58 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "Int64\(\-94\) / tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, - 94 / + + col2 AS col1 FROM tab2 +---- +-1 +-2 +-4 +23 +40 +58 query I rowsort SELECT DISTINCT + ( + col2 ) + - - 36 - - col1 FROM tab1 AS cor0 @@ -12900,8 +13050,9 @@ SELECT + col1 * - + col0 FROM tab1 AS cor0 WHERE NOT + 34 = + 26 -714 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col2 \+ Int64\(\-26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col0 col2, + col2 + - 26 AS col2, col1 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL +---- query I rowsort SELECT + ( + + col1 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL @@ -13517,8 +13668,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) FROM tab0 AS cor0 +---- +3 +3 query III rowsort SELECT * FROM tab2 AS cor0 WHERE - 26 < - + col0 @@ -13583,8 +13737,15 @@ SELECT + CAST ( + col0 AS INTEGER ) FROM tab1 cor0 # Datafusion - Expected - 77 # Datafusion - Expected - 3886 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 * - col1 AS col2, col1 AS col2 FROM tab2 AS cor0 +---- +1173 +3080 +3886 +51 +67 +77 query III rowsort SELECT * FROM tab2 AS cor0 WHERE + 10 <= NULL @@ -13697,8 +13858,15 @@ SELECT ALL - ( - - col0 ) FROM tab1 # Datafusion - Expected - 7246 # Datafusion - Expected - 85 # Datafusion - Expected - 8303 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col0" at position 0 and "tab1\.col0 \* tab1\.col0 \+ tab1\.col0 / \(\- Int64\(\-4\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 85 AS col0, + col0 * col0 + + col0 / - - 4 AS col0 FROM tab1 +---- +2613 +7246 +8303 +85 +85 +85 query I rowsort label-2270 SELECT + col0 * - - ( + CAST ( NULL AS INTEGER ) ) + col1 FROM tab0 AS cor0 WHERE NOT col0 + + - col1 = NULL @@ -13762,8 +13930,15 @@ SELECT col2 * - col1 + + col2 FROM tab1 # Datafusion - Expected - -67 # Datafusion - Expected - 0 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \+ tab2\.col1 AS col1" at position 0 and "\(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + + col1 col1, - col1 AS col1 FROM tab2 +---- +-51 +-67 +-77 +0 +0 +0 query I rowsort SELECT DISTINCT + + 24 + 97 FROM tab0 AS cor0 @@ -13792,8 +13967,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + + COUNT ( * ), + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 +---- +9 +9 query I rowsort SELECT DISTINCT + 65 col0 FROM tab2 cor0 CROSS JOIN tab2 cor1 @@ -14736,8 +14914,11 @@ NULL # 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 "min\(DISTINCT \(\- cor0\.col1\)\) \+ max\(Int64\(59\)\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + + MIN ( DISTINCT - col1 ) ) + + MAX ( + + 59 ) AS col0, 28 AS col0 FROM tab0 AS cor0 +---- +-22 +28 query I rowsort SELECT DISTINCT - col2 - col0 / + col0 AS col0 FROM tab0 AS cor0 WHERE NULL <> NULL @@ -16314,8 +16495,15 @@ SELECT * FROM tab1 AS cor0 WHERE + 23 IS NOT NULL # Datafusion - Expected - -91 # Datafusion - Expected - -772 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col1\) \+ Int64\(6\) \* Int64\(\-72\) \+ cor0\.col0 AS col1" at position 0 and "Int64\(\-91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * - + col1 + + 6 * + - 72 + col0 col1, - 91 AS col1 FROM tab1 AS cor0 +---- +-1095 +-4618 +-772 +-91 +-91 +-91 query I rowsort label-2706 SELECT + col0 / - col0 + + 80 AS col1 FROM tab2 AS cor0 @@ -16505,8 +16693,15 @@ SELECT + MIN ( DISTINCT - + col1 ) AS col2 FROM tab2 # Datafusion - Expected - 67 # Datafusion - Expected - -59 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 59 AS col0, col1 AS col0 FROM tab2 AS cor0 +---- +-59 +-59 +-59 +51 +67 +77 query I rowsort SELECT ALL 60 + + col2 AS col1 FROM tab2 AS cor0 @@ -16747,8 +16942,15 @@ SELECT - ( 28 ) AS col1 FROM tab2 # Datafusion - Expected - -4371 # Datafusion - Expected - 64 # Datafusion - Expected - -465 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "Int64\(\-93\) \* tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 64 AS col0, - 93 * col1 col0 FROM tab1 +---- +-1302 +-4371 +-465 +64 +64 +64 query II rowsort label-2775 SELECT COUNT ( * ) AS col1, COUNT ( * ) * - 52 FROM tab1 @@ -17553,8 +17755,15 @@ SELECT ALL - - 67 AS col0 FROM tab1 WHERE NULL IS NULL # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col1, + col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT 8 + - col0 FROM tab1 AS cor0 WHERE NOT NULL < NULL @@ -17658,8 +17867,11 @@ SELECT DISTINCT - 36 AS col1, + col0 AS col0 FROM tab2 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 "Int64\(3\) 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 II valuesort SELECT ALL + 3 AS col1, MAX ( col2 ) col1 FROM tab2 cor0 +---- +3 +58 query I rowsort label-2925 SELECT COUNT ( - col2 ) FROM tab0 cor0 @@ -17751,8 +17963,15 @@ SELECT ALL 10 * col2 AS col0 FROM tab2 # Datafusion - Expected - 96 # Datafusion - Expected - 176 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ tab2\.col0 \+ \(\- Int64\(\-26\)\) AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + + col0 + - ( - 26 ) AS col2, 96 col2 FROM tab2 +---- +118 +154 +176 +96 +96 +96 query I rowsort label-2939 SELECT ALL - ( 91 ) - COUNT ( * ) FROM tab1 @@ -18280,8 +18499,15 @@ SELECT DISTINCT + col0 + + + col2 + - + col1 FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - -75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab2\.col0\) AS Int32\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( - col0 AS INTEGER ) col1, col2 AS col1 FROM tab2 +---- +-46 +-64 +-75 +23 +40 +58 query I rowsort SELECT DISTINCT - 43 * - col2 * - col2 FROM tab2 @@ -18417,8 +18643,15 @@ SELECT DISTINCT - col0 * + + col0 AS col0 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - -99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 col1, + col2 AS col1 FROM tab0 +---- +-10 +-47 +-99 +10 +47 +99 query II rowsort label-3053 SELECT 47 / + col1 col0, col2 FROM tab1 @@ -19552,8 +19785,11 @@ SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + COUNT ( * ) * COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 +---- +81 +NULL query I rowsort label-3237 SELECT - COUNT ( * ) * - 14 AS col1 FROM tab0 @@ -19993,8 +20229,15 @@ SELECT + col1 * - 53 + + 40 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "Int64\(0\) \+ \(\- CAST\(NULL AS Float64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL col1 AS col2, 0 + - CAST ( NULL AS FLOAT8 ) AS col2 FROM tab0 +---- +1 +21 +81 +NULL +NULL +NULL query I rowsort label-3307 SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT ( NOT + col2 BETWEEN + - col1 + - col0 AND ( + + 44 ) ) @@ -21270,8 +21513,15 @@ SELECT SUM ( - col2 ) + - - 46 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - -182 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ \(\- \(\- tab1\.col0\)\) \* Int64\(\-3\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 + - - col0 * + ( - 3 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 +---- +-102 +-170 +-182 +NULL +NULL +NULL query I rowsort label-3525 SELECT ALL + SUM ( 98 ) AS col1 FROM tab2 @@ -22851,8 +23101,11 @@ SELECT - col0 * - - col2 AS col1, 23 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- tab0\.col2\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( - + col2 ) AS col1, COUNT ( * ) AS col1 FROM tab0 +---- +-3 +3 query I rowsort SELECT ( + 2 ) AS col0 FROM tab1 @@ -23468,8 +23721,15 @@ SELECT col2 * - - 30 FROM tab1 AS cor0 # Datafusion - Expected - -12 # Datafusion - Expected - NULL # Datafusion - Expected - -12 -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\(\-12\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT CAST ( NULL AS FLOAT8 ) AS col0, - ( - + ( + - 12 ) ) AS col0 FROM tab0 +---- +-12 +-12 +-12 +NULL +NULL +NULL query I rowsort SELECT ALL + 2 * - 61 FROM tab1 @@ -24149,8 +24409,15 @@ SELECT DISTINCT - col0 AS col0, + col2 * col0 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col2, + col2 AS col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query III rowsort SELECT DISTINCT * FROM tab2 WHERE ( NOT ( NOT ( NOT ( col0 ) > ( + ( - col2 ) * - 59 ) ) ) ) @@ -24401,8 +24668,10 @@ SELECT COUNT ( * ) * + COUNT ( * ) + - 53 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a69a1c25366f2e5dbc2b64a2b141dde4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 1 and "cor0\.col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col0 AS col1, col0, + ( + + col0 ) AS col0 FROM tab1 AS cor0 +---- +9 values hashing to a69a1c25366f2e5dbc2b64a2b141dde4 query I rowsort SELECT ALL + col2 + - + 54 AS col0 FROM tab1 AS cor0 @@ -24568,8 +24837,15 @@ SELECT - col2 FROM tab2 WHERE NOT - 51 IN ( - 9, - col0 ) # Datafusion - Expected - -85 # Datafusion - Expected - 2 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 / Int64\(45\) AS col2" at position 0 and "\(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 / + 45 AS col2, - col0 AS col2 FROM tab1 +---- +-51 +-85 +-91 +1 +1 +2 query I rowsort label-4075 SELECT DISTINCT COUNT ( ALL col2 ) FROM tab2 WHERE + + col0 > ( NULL ) @@ -24792,8 +25068,15 @@ SELECT ALL + + 36 * - ( + + 55 ) * COUNT ( * ) + - - COUNT ( * ) FROM tab1 AS co # Datafusion - Expected - 55 # Datafusion - Expected - 71 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* cor0\.col1 AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 * col1 AS col1, 55 AS col1 FROM tab0 AS cor0 +---- +1491 +55 +55 +55 +5751 +71 query I rowsort label-4110 SELECT DISTINCT - 98 * ( + COUNT ( * ) ) FROM tab1 AS cor0 @@ -25183,8 +25466,9 @@ SELECT DISTINCT + + 68 col1 FROM tab2 cor0 WHERE NOT - col2 IS NULL 68 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \- Int64\(49\) \- cor0\.col2 \+ cor0\.col2 \+ Int64\(78\) AS col0" at position 0 and "Int64\(77\) \+ Int64\(\-79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 27 - + 49 - + col2 + + + col2 + + 78 AS col0, 77 + - 79 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1 +---- query I rowsort SELECT ALL - col2 FROM tab1 WHERE NOT ( col2 ) NOT BETWEEN - 10 AND NULL @@ -25267,8 +25551,15 @@ SELECT DISTINCT 62, + 7 AS col1 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 280 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \* Int64\(5\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 56 * 5 AS col0, col2 AS col0 FROM tab0 +---- +10 +280 +280 +280 +47 +99 query I rowsort SELECT - 0 FROM tab1 WHERE + - col0 + col2 IS NOT NULL @@ -25726,8 +26017,15 @@ SELECT * FROM tab2 WHERE NOT NULL > - - col1 # Datafusion - Expected - -80 # Datafusion - Expected - 96 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, - 80 col0 FROM tab1 +---- +-80 +-80 +-80 +59 +68 +96 query II rowsort SELECT 71 AS col2, col0 * + col2 * + 82 AS col0 FROM tab0 @@ -25777,8 +26075,11 @@ 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\(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\. +query II valuesort SELECT 50 * - - COUNT ( * ) AS col2, + 36 AS col2 FROM tab2 +---- +150 +36 query I rowsort SELECT DISTINCT col0 * col0 * 72 AS col0 FROM tab2 @@ -25823,8 +26124,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= - col0 # Datafusion - Expected - 64 # Datafusion - Expected - -1 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 / - col2 AS col2, + col0 col2 FROM tab2 AS cor0 +---- +-1 +-1 +-1 +46 +64 +75 query I rowsort SELECT 75 * + - 78 col1 FROM tab2 cor0 WHERE - col1 IS NULL @@ -25901,8 +26209,15 @@ SELECT ALL - 54 / COUNT ( * ) * COUNT ( * ) * COUNT ( * ) FROM tab2 # Datafusion - Expected - 8119 # Datafusion - Expected - 56 # Datafusion - Expected - 81307 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "\(\- tab1\.col1\) \* tab1\.col0 \* Int64\(\-19\) \- \(\- Int64\(44\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 56 AS col0, - col1 * + col0 * + - 19 - - + 44 col0 FROM tab1 +---- +13610 +56 +56 +56 +8119 +81307 query I rowsort label-4291 SELECT DISTINCT - COUNT ( - - 77 ) AS col2 FROM tab2 @@ -26153,8 +26468,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col0" at position 0 and "Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 29 AS col0, + 52 AS col0 FROM tab0 +---- +-29 +52 query I rowsort label-4333 SELECT ALL - SUM ( - 26 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 @@ -27172,8 +27490,15 @@ SELECT col2 + col2 AS col2, - 27 * - 43 FROM tab0 AS cor0 # Datafusion - Expected - 2119921942 # Datafusion - Expected - 46 # Datafusion - Expected - 372310251 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col1" at position 0 and "tab2\.col1 \+ \(\- \(\- tab2\.col1\)\) \* Int64\(75\) \* \(\- tab2\.col0\) \* tab2\.col0 \* \(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 46 AS col1, col1 + - - col1 * + 75 * + - col0 * col0 * - + col0 AS col1 FROM tab2 +---- +1513881677 +2119921942 +372310251 +46 +46 +46 query I rowsort label-4507 SELECT + + col2 / + + 21 AS col2 FROM tab0 AS cor0 @@ -27396,8 +27721,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MAX ( DISTINCT col2 ) AS col0, 49 - - COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +52 +58 query I rowsort SELECT - - 80 * col0 FROM tab1 AS cor0 WHERE 78 > 97 @@ -27418,8 +27746,11 @@ 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\(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\. +query II valuesort SELECT ALL - + COUNT ( * ) + - 73 AS col1, - COUNT ( * ) col1 FROM tab2 AS cor0 +---- +-3 +-76 query I rowsort SELECT ALL 61 * col0 * + 73 - - - col2 col0 FROM tab2 @@ -27476,8 +27807,15 @@ SELECT - col0 FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN CAST ( col1 AS INTEGER # Datafusion - Expected - -58 # Datafusion - Expected - 97 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- CAST\(\(\- cor0\.col1\) AS Int32\)\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( col0 ) + - CAST ( - col1 AS INTEGER ) AS col2, - col2 AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +141 +142 +97 query III rowsort SELECT * FROM tab2 cor0 WHERE - ( + + 46 ) >= NULL @@ -28032,8 +28370,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, - 26 AS col0 FROM tab1 +---- +-26 +-3 query I rowsort label-4647 SELECT ALL 86 + - 0 + - + 40 + - - COUNT ( * ) col2 FROM tab0 @@ -28555,14 +28896,24 @@ SELECT DISTINCT + col1, + col0 / - 18 FROM tab0 # Datafusion - Expected - 18 # Datafusion - Expected - 92 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 AS col1, 18 AS col1 FROM tab0 +---- +18 +18 +18 +92 +92 +92 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- Int64\(31\)\)\) AS col1" at position 0 and "Int64\(\-88\) \+ Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( ALL - ( + 31 ) ) AS col1, - 88 + + 8 col1 FROM tab2 AS cor0 +---- +-80 +-93 query I rowsort label-4734 SELECT col2 / col1 + + col1 + col2 AS col0 FROM tab1 @@ -28739,8 +29090,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * 71 AS col1, 86 col1 FROM tab1 +---- +213 +86 query III rowsort SELECT * FROM tab0 WHERE NOT ( NULL BETWEEN NULL AND col0 - col0 ) @@ -29082,8 +29436,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) 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 II valuesort SELECT 47 AS col0, + MAX ( ALL + col1 ) AS col0 FROM tab0 AS cor0 +---- +47 +81 query I rowsort SELECT DISTINCT col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL @@ -30011,8 +30368,11 @@ SELECT + col2 * + + 15 col1, col1 col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(7\)\) AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( ALL 7 ) AS col0, 86 AS col0 FROM tab2 +---- +3 +86 query III rowsort label-4977 SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( + col1 AS INTEGER ) + + CAST ( NULL AS INTEGER ) + - col0 * - ( 5 ) IS NULL @@ -31085,8 +31445,15 @@ SELECT DISTINCT - + col2 FROM tab1 WHERE NOT col2 IS NOT NULL # Datafusion - Expected - 340 # Datafusion - Expected - 980 # Datafusion - Expected - 663 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* Int64\(70\) AS col0" at position 0 and "tab1\.col0 \* tab1\.col1 \- tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 * + 70 col0, col0 * col1 - col0 AS col0 FROM tab1 +---- +3290 +340 +350 +4186 +663 +980 query I rowsort label-5154 SELECT 76 / - 66 AS col0 FROM tab2 @@ -31149,14 +31516,24 @@ SELECT ALL + + ( - MAX ( col0 ) ) FROM tab1 cor0 # Datafusion - Expected - -900 # Datafusion - Expected - -81 # Datafusion - Expected - -4230 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col1" at position 0 and "tab0\.col2 \* Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, col2 * + ( - 90 ) AS col1 FROM tab0 +---- +-1 +-21 +-4230 +-81 +-8910 +-900 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 44 AS col0, COUNT ( * ) col0 FROM tab2 +---- +3 +44 query III rowsort SELECT * FROM tab0 WHERE NOT col0 + + col0 IS NULL @@ -31191,8 +31568,11 @@ SELECT - 78 AS col0, 13 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\(\(\- cor0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 AS col0, COUNT ( ALL - + col1 ) AS col0 FROM tab2 AS cor0 +---- +3 +37 query I rowsort label-5171 SELECT ALL COUNT ( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) @@ -31679,8 +32059,15 @@ SELECT + col1 + - 74 + 34 col2 FROM tab1 # Datafusion - Expected - -40 # Datafusion - Expected - -3886 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* \(\- tab2\.col1\) AS col2" at position 0 and "\(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * - + col1 AS col2, - col2 AS col2 FROM tab2 WHERE NULL IS NULL +---- +-1173 +-23 +-3080 +-3886 +-40 +-58 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 @@ -31689,8 +32076,15 @@ SELECT col2 * - + col1 AS col2, - col2 AS col2 FROM tab2 WHERE NULL IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - -2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) / Int64\(20\) AS col2" at position 0 and "tab2\.col1 \* tab2\.col2 \+ CAST\(NULL AS Int32\) \+ Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 58 / 20 col2, col1 * + col2 + + CAST ( NULL AS INTEGER ) + + 83 AS col2 FROM tab2 +---- +-2 +-2 +-2 +NULL +NULL +NULL query I rowsort label-5251 SELECT ALL CAST ( NULL AS INTEGER ) / + 14 AS col1 FROM tab2 AS cor0 @@ -32541,8 +32935,15 @@ SELECT DISTINCT - + ( + + 45 ) AS col2 FROM tab2 AS cor0 WHERE NOT + 48 IS NOT N # Datafusion - Expected - 87 # Datafusion - Expected - -93 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(29\)\) \+ \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 29 + - col0 AS col2, + 87 AS col2 FROM tab2 AS cor0 +---- +-104 +-75 +-93 +87 +87 +87 query III rowsort label-5393 SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 + col0 + - + col2 * + + 26 IN ( + - col1 + CAST ( NULL AS INTEGER ) * + col0 ) @@ -32775,8 +33176,11 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 / ( + col0 ) NOT BETWEEN NULL AND # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* \(\- max\(Int64\(40\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, - CAST ( NULL AS INTEGER ) * - MAX ( ALL + + 40 ) AS col1 FROM tab0 AS cor0 +---- +NULL +NULL query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 + + col1 IS NOT NULL @@ -33870,8 +34274,15 @@ SELECT 81 col1 FROM tab2 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "\(\- \(\- cor0\.col2\)\) \* Int64\(\-9\) / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 AS col2, - ( + - col2 ) * - 9 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +NULL +NULL +NULL query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NULL = - col2 / - 63 @@ -34034,8 +34445,15 @@ SELECT * FROM tab1 WHERE NOT - col1 NOT IN ( - + col1, + col0 * - col1 + 3, - co # Datafusion - Expected - -3 # Datafusion - Expected - 58 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col2 AS Int32\) AS col1" at position 0 and "Int64\(\-3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + + col2 AS INTEGER ) col1, - 3 AS col1 FROM tab2 +---- +-3 +-3 +-3 +23 +40 +58 query I rowsort SELECT DISTINCT 53 * - + 73 FROM tab1 @@ -34124,8 +34542,15 @@ SELECT CAST ( - - 86 AS INTEGER ) FROM tab2 # Datafusion - Expected - 113 # Datafusion - Expected - 29 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \+ \(\- tab0\.col0\) AS col2" at position 0 and "\(\- tab0\.col1\) \+ Int64\(83\) \+ Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 44 + - col0 AS col2, - col1 + + 83 + 31 AS col2 FROM tab0 +---- +-43 +-53 +113 +29 +33 +93 query II rowsort SELECT DISTINCT + col0, - col0 col1 FROM tab2 @@ -34287,8 +34712,15 @@ SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 # Datafusion - Expected - 87 # Datafusion - Expected - -28 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 28 AS col2, + col0 AS col2 FROM tab0 +---- +-28 +-28 +-28 +15 +87 +97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 @@ -34345,8 +34777,11 @@ 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\(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\. +query II valuesort SELECT ALL + ( COUNT ( * ) ), ( + COUNT ( * ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1 +---- +9 +9 query I rowsort label-5681 SELECT ALL - 96 * COUNT ( * ) * + 65 FROM tab1 @@ -34607,8 +35042,11 @@ SELECT ALL ( COUNT ( * ) ) * + 43 AS col1 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col2" at position 0 and "Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 73 AS col2, + 92 col2 FROM tab0 AS cor0 +---- +73 +92 query I rowsort SELECT ALL - 17 * - col1 FROM tab2 AS cor0 @@ -34656,8 +35094,11 @@ SELECT col0 * 81 * col1 / - col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col1" at position 0 and "Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 27 AS col1, ( + 95 ) AS col1 FROM tab2 +---- +27 +95 query I rowsort SELECT ALL - + col0 - - - col1 FROM tab1 WHERE + 94 IS NOT NULL @@ -34758,8 +35199,15 @@ SELECT + MIN ( DISTINCT 45 ) * - MAX ( + - 92 ) AS col1 FROM tab1 AS cor0 CROSS # Datafusion - Expected - 1875 # Datafusion - Expected - -7275 # Datafusion - Expected - 1875 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(75\)\) \* cor0\.col0 AS col2" at position 0 and "Int64\(75\) \* Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 75 * + col0 AS col2, 75 * 25 AS col2 FROM tab0 AS cor0 +---- +-1125 +-6525 +-7275 +1875 +1875 +1875 query I rowsort SELECT col2 + + - col0 + + col1 FROM tab2 AS cor0 @@ -35612,8 +36060,11 @@ SELECT 31 / + + col1 + 49 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - 3264 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT \(\- tab1\.col2\)\) AS col1" at position 0 and "Int64\(68\) \* \(\- sum\(DISTINCT Int64\(\-48\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( DISTINCT - col2 ) AS col1, 68 * - SUM ( DISTINCT - 48 ) AS col1 FROM tab1 +---- +-96 +3264 query I rowsort SELECT ALL + + col1 - + - col0 * col2 * - col2 AS col2 FROM tab1 AS cor0 @@ -35673,8 +36124,15 @@ NULL # Datafusion - Expected - -2323 # Datafusion - Expected - 87 # Datafusion - Expected - -385 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col2" at position 0 and "\(\- tab0\.col2\) \+ tab0\.col0 \+ Int64\(7\) \- tab0\.col0 \* \(\- Int64\(\-24\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 col2, - col2 + col0 + 7 - + col0 * - ( - 24 ) AS col2 FROM tab0 +---- +-2004 +-2323 +-385 +87 +87 +87 query I rowsort label-5898 SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE - col2 IS NOT NULL @@ -36102,8 +36560,15 @@ SELECT + + col2 * - 56 - ( + col0 ) * + - col1 + - - col2 - + col0 AS col0, + co # Datafusion - Expected - 112 # Datafusion - Expected - 31 # Datafusion - Expected - 184 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col2 AS col0" at position 0 and "cor0\.col0 \+ Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 + col2 AS col0, col0 + + 97 AS col0 FROM tab0 AS cor0 +---- +100 +112 +128 +184 +194 +31 query I rowsort label-5967 SELECT col0 / col0 + + - 10 + + 31 - - + col1 * - col2 + - 73 AS col1 FROM tab2 AS cor0 @@ -36119,8 +36584,15 @@ SELECT col0 / col0 + + - 10 + + 31 - - + col1 * - col2 + - 73 AS col1 FROM tab2 # Datafusion - Expected - 26 # Datafusion - Expected - 277 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \* cor0\.col1 \+ Int64\(83\) \+ cor0\.col0 AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 * col1 + + 83 + col0 AS col0, + 26 AS col0 FROM tab0 AS cor0 +---- +1313 +1997 +26 +26 +26 +277 query I rowsort SELECT + + col2 + 1 FROM tab1 cor0 @@ -36569,14 +37041,20 @@ SELECT 52 * + col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- max\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, - MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 +---- +-3 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 90 AS col1, 96 AS col1 FROM tab0 +---- +-90 +96 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 @@ -36585,8 +37063,15 @@ SELECT DISTINCT - 90 AS col1, 96 AS col1 FROM tab0 # Datafusion - Expected - 67 # Datafusion - Expected - -4 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 4 AS col2, col1 AS col2 FROM tab2 WHERE - 91 IS NOT NULL +---- +-4 +-4 +-4 +51 +67 +77 query I rowsort label-6040 SELECT 61 / col0 + - - ( 16 ) FROM tab1 @@ -36741,8 +37226,15 @@ SELECT ALL 18 * - col0 FROM tab1 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - -5 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col2, 67 AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +67 +67 +67 query I rowsort SELECT DISTINCT 96 AS col1 FROM tab1 cor0 WHERE NOT col2 * - - col1 IS NOT NULL @@ -37684,8 +38176,11 @@ SELECT + 79 * + 82 - - + col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab1 +---- +-3 +3 query I rowsort label-6219 SELECT - col0 / + 92 - col2 FROM tab2 @@ -37757,8 +38252,15 @@ SELECT DISTINCT MAX ( col1 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 3430 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \* Int64\(\-35\) AS col2" at position 0 and "cor0\.col1 / cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 98 * - 35 AS col2, + col1 / col0 AS col2 FROM tab0 AS cor0 +---- +0 +0 +3430 +3430 +3430 +5 query I rowsort SELECT DISTINCT + col1 + + + 78 * + col0 + + 8 FROM tab0 AS cor0 WHERE NOT NULL IS NULL @@ -38323,8 +38825,10 @@ SELECT + 55 AS col0, col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 5a7e224c2ff290b14d862f2a8dbfbd38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL col1 AS col1, + col1, - col0 + col1 FROM tab1 +---- +9 values hashing to 2503e1e3832dd7fd9381899f5d863f32 query I rowsort SELECT DISTINCT - col2 * + - col2 AS col0 FROM tab0 @@ -39511,8 +40015,15 @@ SELECT DISTINCT ( - + 10 ) * col1 * - col2 * col1 AS col1 FROM tab1 # Datafusion - Expected - -91 # Datafusion - Expected - 5 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "\(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col2, - col0 col2 FROM tab1 +---- +-51 +-85 +-91 +14 +47 +5 query II rowsort SELECT + 48 AS col1, + 42 + - 52 * - col0 AS col0 FROM tab1 AS cor0 @@ -40194,8 +40705,15 @@ SELECT ALL ( + col1 ) / - ( + col2 ) + 13 + + col1 AS col0 FROM tab1 # Datafusion - Expected - 39 # Datafusion - Expected - 42 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col1 AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 + + + col1 AS col0, 39 AS col0 FROM tab0 AS cor0 +---- +162 +2 +39 +39 +39 +42 query I rowsort SELECT ALL + col1 + 95 col1 FROM tab1 AS cor0 @@ -42647,8 +43165,15 @@ SELECT DISTINCT + col1 * - col1 AS col0, + col2 FROM tab1 cor0 # Datafusion - Expected - -59 # Datafusion - Expected - 99 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(\-89\) \+ \(\- Int64\(\-30\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col2 AS col1, - 89 + - - 30 AS col1 FROM tab0 AS cor0 +---- +-59 +-59 +-59 +10 +47 +99 query I rowsort label-7040 SELECT ALL - - COUNT ( * ) AS col2 FROM tab2 cor0 @@ -42911,8 +43436,11 @@ SELECT ALL - col1 + - - col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-14\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col0, ( - 14 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +-11 +-9 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * + 79 IS NOT NULL @@ -43008,8 +43536,15 @@ SELECT col2 col2, col1 FROM tab0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, + col2 AS col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT ( col0 ) * - col1 * col1 FROM tab0 AS cor0 @@ -44152,8 +44687,15 @@ SELECT + MIN ( DISTINCT + col1 ) AS col0 FROM tab0 # Datafusion - Expected - 64 # Datafusion - Expected - -7418 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \+ \(\- cor0\.col0\) \* Int64\(99\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 7 + + - col0 * 99 AS col2, + col0 AS col2 FROM tab2 AS cor0 +---- +-4547 +-6329 +-7418 +46 +64 +75 query II rowsort SELECT ALL col1 AS col1, + 13 + + col1 FROM tab0 AS cor0 @@ -44379,8 +44921,11 @@ 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\(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\. +query II valuesort SELECT + + COUNT ( * ) + - + 85 AS col1, MIN ( - + 13 ) AS col1 FROM tab2 AS cor0 +---- +-13 +-82 query II rowsort SELECT + col0 + - - col2 AS col1, col0 FROM tab2 AS cor0 @@ -44879,8 +45424,10 @@ SELECT ALL 76 - + + col1 * - + 19 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 55313f78c29de19761448dce0a1ac60b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 27 AS col1, 87 AS col1, col2 AS col1 FROM tab2 +---- +9 values hashing to c6ba727f2b0f06195cf995b53e8089e1 query I rowsort SELECT ALL + 36 - + col1 + - - col1 FROM tab0 @@ -45367,8 +45914,15 @@ SELECT ALL + 81 * - col2 FROM tab0 # Datafusion - Expected - 4089 # Datafusion - Expected - -6 # Datafusion - Expected - 1218 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \+ \(\- cor0\.col0\) \- Int64\(\-98\) AS col1" at position 0 and "cor0\.col1 \* Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 53 + - col0 - + - 98 col1, col1 * 87 AS col1 FROM tab1 AS cor0 +---- +-40 +-46 +-6 +1218 +4089 +435 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE - col1 + - col0 IS NOT NULL @@ -45408,8 +45962,15 @@ SELECT + col1 * + + col0 * 57 * CAST ( NULL AS INTEGER ) - - 79 FROM tab1 WHERE # Datafusion - Expected - 84 # Datafusion - Expected - -97 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(97\)\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - + 97 ) AS col1, 84 AS col1 FROM tab2 +---- +-97 +-97 +-97 +84 +84 +84 query I rowsort SELECT 85 + + - 44 AS col2 FROM tab2 @@ -45766,8 +46327,15 @@ SELECT - MIN ( ALL - col0 ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col1, + col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-7561 SELECT DISTINCT - 25 * + 30 * + COUNT ( * ) FROM tab2 @@ -45903,8 +46471,15 @@ SELECT DISTINCT - + col0 + 26 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 41 # Datafusion - Expected - 15 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 15 AS col2, + 41 col2 FROM tab0 AS cor0 +---- +15 +15 +15 +41 +41 +41 query I rowsort SELECT ALL - + col0 + - col2 + 62 AS col0 FROM tab2 AS cor0 @@ -47127,8 +47702,10 @@ SELECT ALL + col2 + - col2 * col2 AS col1, col0 col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f5d6893f51c07f8aab4bf9182c89d89f -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* Int64\(\-90\) AS col1" at position 1 and "\(\- tab0\.col1\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col2 + - - 46, col0 * - 90 AS col1, + - col1 AS col1 FROM tab0 +---- +9 values hashing to 79aad1f759e1afe9006cad3831337155 query III rowsort SELECT * FROM tab2 WHERE - 13 IS NOT NULL @@ -47315,8 +47892,15 @@ SELECT col0 + - + col1 + - col2 col1 FROM tab0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, 87 col1 FROM tab0 +---- +15 +87 +87 +87 +87 +97 query II rowsort SELECT col1 AS col0, - 28 FROM tab1 @@ -47387,8 +47971,15 @@ SELECT - MAX ( ALL + - 90 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 FROM tab2 cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-7825 SELECT + MAX ( DISTINCT + col2 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1 @@ -47412,8 +48003,15 @@ SELECT ALL ( 73 ) * - 47 + + 98 * + ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 10 # Datafusion - Expected - 97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, col2 AS col1 FROM tab0 AS cor0 +---- +10 +15 +47 +87 +97 +99 query I rowsort SELECT DISTINCT + 55 * + + col0 * col0 FROM tab1 AS cor0 @@ -47467,8 +48065,15 @@ SELECT ALL - 46 col2 FROM tab2 AS cor0 # Datafusion - Expected - -79 # Datafusion - Expected - -58 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 AS col2, - 79 AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +-79 +-79 +-79 query I rowsort label-7837 SELECT 18 / ( - + 28 ) AS col1 FROM tab0 @@ -47508,8 +48113,15 @@ SELECT * FROM tab2 cor0 WHERE NOT 8 > + 46 # Datafusion - Expected - 59 # Datafusion - Expected - -550 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 55 * + - col2 AS col1, 59 AS col1 FROM tab0 AS cor0 +---- +-2585 +-5445 +-550 +59 +59 +59 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT + + col2 NOT IN ( - col2 + + 90, + col1, ( + 91 ), + col0, + + col1 ) @@ -47975,8 +48587,15 @@ SELECT DISTINCT + 22 + + COUNT ( + - 3 ) col0 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 270 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \- \(\- cor0\.col1\) \+ Int64\(99\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90 - ( - col1 ) + + + 99 AS col1, CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 +---- +190 +210 +270 +NULL +NULL +NULL query I rowsort label-7921 SELECT ALL col1 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0 @@ -48250,8 +48869,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + col1 ), col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-7966 SELECT ALL + - ( - CAST ( col2 AS INTEGER ) ) AS col0 FROM tab0 AS cor0 @@ -48737,8 +49363,15 @@ SELECT + 72 + + CAST ( - COUNT ( * ) AS INTEGER ) * COUNT ( DISTINCT + 79 ) * ( # Datafusion - Expected - 41 # Datafusion - Expected - -75 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col1" at position 0 and "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col1, 41 AS col1 FROM tab2 +---- +-46 +-64 +-75 +41 +41 +41 query I rowsort SELECT - ( + col0 ) + - col0 col0 FROM tab2 @@ -48761,8 +49394,15 @@ SELECT DISTINCT + 3 + + col0 FROM tab2 cor0 # Datafusion - Expected - -27 # Datafusion - Expected - -81 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, - 27 AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-27 +-27 +-27 +-81 query I rowsort label-8049 SELECT ALL - 78 / 47 * + ( + col0 ) col0 FROM tab1 @@ -49534,8 +50174,15 @@ SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN NULL AND + - col2 / - + 97 # Datafusion - Expected - 58 # Datafusion - Expected - -4697 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* \(\- tab2\.col1\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 * - + col1 AS col1, ( + + col2 ) AS col1 FROM tab2 +---- +-3111 +-4087 +-4697 +23 +40 +58 query I rowsort label-8181 SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col2 * - col1 AS col2 FROM tab0 @@ -50928,8 +51575,15 @@ SELECT DISTINCT - SUM ( 57 ) AS col0 FROM tab2 # Datafusion - Expected - 45 # Datafusion - Expected - 21 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(21\) AS Int32\) AS col0" at position 0 and "Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( 21 AS INTEGER ) col0, 45 AS col0 FROM tab0 +---- +21 +21 +21 +45 +45 +45 query III rowsort SELECT * FROM tab1 WHERE NOT + col0 BETWEEN NULL AND + col1 * + col2 @@ -51937,8 +52591,15 @@ SELECT ALL + col2 AS col0 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) / - # Datafusion - Expected - -36 # Datafusion - Expected - -54 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(54\)\) AS col1" at position 0 and "\(\- cor0\.col1\) \+ \(\- cor0\.col1\) \+ Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 54 AS col1, - col1 + + - col1 + 6 AS col1 FROM tab0 AS cor0 +---- +-156 +-36 +-54 +-54 +-54 +4 query I rowsort SELECT - - 60 * 83 FROM tab1 AS cor0 @@ -52151,8 +52812,15 @@ SELECT - ( SUM ( DISTINCT - - 98 ) ) FROM tab1 # Datafusion - Expected - 77 # Datafusion - Expected - 5625 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col0 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 * + col0 col0, col1 AS col0 FROM tab2 AS cor0 +---- +2116 +4096 +51 +5625 +67 +77 query I rowsort label-8611 SELECT ALL 44 / + - col0 FROM tab0 cor0 @@ -52605,8 +53273,9 @@ SELECT col2, 12 col0 FROM tab1 12 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "tab2\.col2 / \(\- \(\- \(\- tab2\.col0\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, col2 / - ( + ( - - col0 ) ) AS col2 FROM tab2 WHERE - 93 BETWEEN - CAST ( NULL AS INTEGER ) * col1 AND NULL +---- query III rowsort label-8683 SELECT * FROM tab2 cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL @@ -53078,8 +53747,15 @@ SELECT + col0 * + + 60 AS col2 FROM tab0 # Datafusion - Expected - 63 # Datafusion - Expected - 58 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "Int64\(51\) \+ Int64\(3\) \* Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col0, 51 + 3 * ( 4 ) AS col0 FROM tab2 +---- +23 +40 +58 +63 +63 +63 query I rowsort label-8761 SELECT DISTINCT - COUNT ( - + CAST ( NULL AS INTEGER ) ) FROM tab2 @@ -55132,8 +55808,15 @@ SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE NOT NULL <> CAST ( NULL AS INTEGE # Datafusion - Expected - 87 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - CAST ( NULL AS INTEGER ) col2, col0 AS col2 FROM tab0 cor0 +---- +15 +87 +97 +NULL +NULL +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -55248,8 +55931,15 @@ SELECT DISTINCT col0 * - - 26 + - + col0 * col1 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 69 # Datafusion - Expected - -25 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 25 AS col0, + 69 AS col0 FROM tab0 AS cor0 +---- +-25 +-25 +-25 +69 +69 +69 query I rowsort label-9119 SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 @@ -55717,8 +56407,11 @@ SELECT DISTINCT + MIN ( ALL - - col0 ) AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -234 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-78\)\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + SUM ( ALL - 78 ) AS col0, 90 AS col0 FROM tab1 +---- +-234 +90 query I rowsort SELECT DISTINCT - ( + + col0 ) + + col2 FROM tab1 AS cor0 @@ -56097,8 +56790,11 @@ SELECT 21 + COUNT ( * ) - COUNT ( - + col0 ) FROM tab1 WHERE NOT NULL IS NOT NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(32\) AS Int32\) AS col2" at position 0 and "min\(tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( + 32 AS INTEGER ) AS col2, MIN ( ALL + col2 ) AS col2 FROM tab1 +---- +32 +59 query III rowsort SELECT * FROM tab2 WHERE NOT - col1 = NULL @@ -56279,8 +56975,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - COUNT ( * ) AS col1, + 22 col1 FROM tab1 AS cor0 +---- +-3 +22 query I rowsort SELECT - 59 * + - 22 * - - col0 AS col1 FROM tab1 AS cor0 @@ -56608,8 +57307,15 @@ SELECT ALL + COUNT ( * ) - - + 71 FROM tab0 # Datafusion - Expected - -4540 # Datafusion - Expected - 14 # Datafusion - Expected - -5980 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "CAST\(\(\- \(\- tab2\.col1\)\) AS Int32\) \* \(\- tab2\.col1\) \- Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 14 AS col0, CAST ( - - col1 AS INTEGER ) * + - col1 - 51 col0 FROM tab2 +---- +-2652 +-4540 +-5980 +14 +14 +14 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT - col2 <> ( NULL ) @@ -57686,8 +58392,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -722 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \* Int64\(38\) 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 II valuesort SELECT - 19 * 38 AS col2, COUNT ( col1 ) AS col2 FROM tab2 +---- +-722 +3 query I rowsort SELECT 23 + col1 FROM tab2 WHERE NOT + col0 + - - 90 * - col2 > - col0 @@ -58355,8 +59064,15 @@ SELECT - 53 col0 FROM tab1 cor0 # Datafusion - Expected - 112 # Datafusion - Expected - 99 # Datafusion - Expected - 117 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(44\) \- cor0\.col1 / cor0\.col0 \+ Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, + 44 - + col1 / + col0 + + 73 AS col0 FROM tab0 AS cor0 +---- +10 +112 +117 +117 +47 +99 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT col1 > NULL @@ -58597,8 +59313,11 @@ SELECT DISTINCT * FROM tab0 WHERE - col0 * + + 90 * - - col1 = + CAST ( NULL AS # 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\(\(\- tab0\.col1\)\)\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( ALL - col1 ) col2, 69 col2 FROM tab0 +---- +-3 +69 query I rowsort label-9681 SELECT - col0 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS FLOAT8 ) * - - col0 IS NULL @@ -59841,8 +60560,15 @@ SELECT col0 FROM tab0 WHERE - col0 IS NULL # Datafusion - Expected - 44 # Datafusion - Expected - 26 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 col1, 44 AS col1 FROM tab0 +---- +26 +26 +26 +44 +44 +44 query I rowsort SELECT + 66 * col1 + - col1 * + + col1 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN col0 AND NULL @@ -59902,8 +60628,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) + + 28 col2, 99 - + 20 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL +---- +31 +79 query I rowsort SELECT - col0 * - ( + + 76 ) AS col2 FROM tab0 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_74.slt b/data/sqlite/random/aggregates/slt_good_74.slt index 8c5d1d5..af67af2 100644 --- a/data/sqlite/random/aggregates/slt_good_74.slt +++ b/data/sqlite/random/aggregates/slt_good_74.slt @@ -121,8 +121,10 @@ SELECT DISTINCT COUNT ( + 99 ) * - + COUNT ( * ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 8cd35670126a70f07d4e760cc612419b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col0 AS col2, 31 AS col2, 50 / - col2 * - col1 - + ( + 27 ) FROM tab1 +---- +9 values hashing to 0bf150fb0d662f175109ea360dbe86af query II rowsort SELECT col0, - col2 * col2 * + 18 * + + col0 FROM tab1 @@ -470,8 +472,15 @@ SELECT ALL * FROM tab0 WHERE NOT 49 IS NULL # Datafusion - Expected - 98 # Datafusion - Expected - 44 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \- \(\- tab0\.col0\) \+ Int64\(14\) AS col0" at position 0 and "tab0\.col1 \+ tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 - + - col0 + ( + 14 ) AS col0, col1 + col0 AS col0 FROM tab0 +---- +108 +188 +208 +44 +96 +98 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT - 36 + col0 IS NULL @@ -700,8 +709,11 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( col0, 92, col0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT \(\- Int64\(52\)\)\)\) AS col2" at position 0 and "Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - SUM ( DISTINCT - + ( + 52 ) ) col2, 79 AS col2 FROM tab1 AS cor0 +---- +52 +79 query I rowsort label-109 SELECT 93 / + col1 AS col1 FROM tab1 @@ -1753,8 +1765,15 @@ SELECT DISTINCT + CAST ( + + col0 AS INTEGER ) / + 16 col0 FROM tab0 AS cor0 # Datafusion - Expected - 1 # Datafusion - Expected - -25 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col1" at position 0 and "cor0\.col1 / cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 25 AS col1, col1 / + col2 AS col1 FROM tab2 AS cor0 +---- +-25 +-25 +-25 +1 +1 +2 query I rowsort SELECT ( + - col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL @@ -1990,8 +2009,15 @@ SELECT MIN ( - + col1 ) / COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - 81 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 AS col2, - col0 AS col2 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +1 +21 +81 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * + col0 + + col1 = + col0 @@ -2832,8 +2858,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 22 AS col2, - COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +-3 +22 query I rowsort SELECT col2 + 91 FROM tab2 AS cor0 WHERE NOT NULL IS NULL @@ -3236,8 +3265,15 @@ SELECT ALL 36 * col2 col2 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - -99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab0\.col1\)\) \* \(\- tab0\.col2\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - - col1 ) * - col2 AS col1, col2 AS col1 FROM tab0 +---- +-210 +-3807 +-99 +10 +47 +99 query I rowsort SELECT + + col0 * 72 AS col1 FROM tab1 cor0 @@ -4332,8 +4368,15 @@ SELECT + COUNT ( * ) - + 33 AS col0 FROM tab0 cor0 # Datafusion - Expected - 95 # Datafusion - Expected - 0 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(tab2\.col0 AS Int32\)\)\) \- \(\- \(\- tab2\.col0\)\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - - CAST ( + col0 AS INTEGER ) ) - + - ( - col0 ) col2, 95 AS col2 FROM tab2 +---- +0 +0 +0 +95 +95 +95 query I rowsort SELECT ALL 32 - + col1 FROM tab2 @@ -4393,8 +4436,15 @@ SELECT 24 + 54 col0 FROM tab2 # Datafusion - Expected - 870 # Datafusion - Expected - -92 # Datafusion - Expected - 9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \- \(\- Int64\(5\)\) AS col0" at position 0 and "tab0\.col2 \* tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 - - + 5 AS col0, + col2 * col0 AS col0 FROM tab0 +---- +-10 +-82 +-92 +705 +870 +9603 query I rowsort label-718 SELECT ALL col2 * - CAST ( NULL AS INTEGER ) * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 @@ -5066,8 +5116,15 @@ SELECT DISTINCT COUNT ( * ) * + - 2 + - COUNT ( DISTINCT - 64 ) + + 79 + + 15 + # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col1, + col1 FROM tab0 cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT ALL + + col1 * + 91 + - + col0 AS col1 FROM tab0 AS cor0 @@ -5158,8 +5215,15 @@ SELECT ALL - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL BETWEEN col # Datafusion - Expected - 48 # Datafusion - Expected - 42 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \- \(\- cor0\.col0\) \+ \(\- Int64\(60\)\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + 5 ) - - col0 + - + 60 AS col2, 48 AS col2 FROM tab0 AS cor0 +---- +-40 +32 +42 +48 +48 +48 query I rowsort SELECT DISTINCT - col2 - col0 * col0 FROM tab0 @@ -6549,8 +6613,15 @@ SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( 35 * CAST ( NULL AS FLOAT8 ) ) O # Datafusion - Expected - 10 # Datafusion - Expected - 77 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \+ \(\- tab0\.col2\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + col0 ) + - col2 AS col0, 10 AS col0 FROM tab0 +---- +-2 +-32 +10 +10 +10 +77 query I rowsort SELECT + 35 + + col0 AS col2 FROM tab2 @@ -6732,8 +6803,15 @@ SELECT DISTINCT ( - - 32 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + col2 ), col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT + 69 * col2 * col0 + col1 AS col1 FROM tab0 AS cor0 @@ -6898,8 +6976,15 @@ SELECT * FROM tab2 cor0 WHERE NOT ( + + 61 ) * col1 * + + CAST ( col1 AS INTEGER # Datafusion - Expected - 77 # Datafusion - Expected - -5 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, + 77 AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +77 +77 +77 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT 6 <> - col2 * col0 / - + 12 + + col0 @@ -6939,8 +7024,15 @@ SELECT - 41, col1 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, + col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT DISTINCT col1 col0 FROM tab0 AS cor0 WHERE NULL IS NULL @@ -7287,8 +7379,11 @@ SELECT 62 - - COUNT ( * ) AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) - + + COUNT ( * ) AS col0, - 39 col0 FROM tab2 AS cor0 +---- +-39 +0 query I rowsort SELECT - col1 - + col0 AS col0 FROM tab0 cor0 @@ -8069,8 +8164,15 @@ SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -5 # Datafusion - Expected - 91 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 col1, - col1 AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +51 +85 +91 query I rowsort SELECT DISTINCT + ( - - 46 ) FROM tab1 cor0 @@ -8172,8 +8274,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, col1 AS col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query II rowsort SELECT DISTINCT - + col1 AS col0, col2 AS col2 FROM tab1 WHERE NULL IS NULL @@ -8712,8 +8821,15 @@ SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "CAST\(NULL AS Int32\) \- CAST\(\(\- CAST\(cor0\.col1 AS Int32\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, + CAST ( NULL AS INTEGER ) - + + CAST ( + - CAST ( col1 AS INTEGER ) AS INTEGER ) col0 FROM tab0 AS cor0 +---- +1 +21 +81 +NULL +NULL +NULL query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE - col2 NOT IN ( + col2, col1 * - 28 ) @@ -11863,8 +11979,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab1 +---- +3 +3 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * - 87 + 75 * - ( + col2 ) NOT BETWEEN NULL AND + col0 @@ -12848,8 +12967,15 @@ SELECT DISTINCT + - 22 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, - CAST ( NULL AS INTEGER ) * - + col2 AS col1 FROM tab1 AS cor0 +---- +51 +85 +91 +NULL +NULL +NULL query I rowsort label-2141 SELECT ALL - + COUNT ( ALL + + 15 ) AS col0 FROM tab1 AS cor0 @@ -13534,8 +13660,11 @@ SELECT - COUNT ( ALL 37 ) FROM tab1 AS cor0 WHERE ( NULL ) > NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) + - + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 cor0 +---- +-6 +3 query I rowsort label-2254 SELECT DISTINCT + 32 + - - SUM ( 79 ) AS col1 FROM tab2 @@ -13617,8 +13746,11 @@ 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\(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\. +query IR valuesort SELECT DISTINCT - COUNT ( * ) AS col2, + CAST ( NULL AS FLOAT8 ) AS col2 FROM tab2, tab2 AS cor0 +---- +-9 +NULL query I rowsort label-2268 SELECT COUNT ( * ) / + + MIN ( + + 71 ) FROM tab1 @@ -13740,8 +13872,15 @@ SELECT * FROM tab0 WHERE + 79 IS NULL OR - + 62 IN ( ( col2 ) ) # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col0, col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT ( + - 11 ) * + col2 * 74 AS col2 FROM tab0 @@ -13964,8 +14103,10 @@ SELECT - COUNT ( * ) + + COUNT ( + col0 ), - 27 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 981c90a1b8834e4ccd4b164f847aa592 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "\(\- tab1\.col0\) / tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 93 AS col1, - col0 / col0 col1, - col0 FROM tab1 +---- +9 values hashing to 06df78db2cca862e27e8dec55703a015 query I rowsort SELECT col0 FROM tab2 WHERE - 25 NOT BETWEEN 10 AND NULL @@ -13992,8 +14133,12 @@ SELECT + - 23 + 14 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 8 # Datafusion - Expected - -9 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(\(\- cor0\.col2\)\)\) AS col1" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 8, COUNT ( * ) * - COUNT ( - col2 ) col1, COUNT ( * ) col1 FROM tab1 AS cor0 +---- +-9 +3 +8 query I rowsort label-2330 SELECT + - ( - col1 ) AS col0 FROM tab0 cor0 WHERE NOT + CAST ( + col2 AS INTEGER ) IS NOT NULL @@ -14181,8 +14326,15 @@ SELECT * FROM tab2 WHERE - col2 * CAST ( NULL AS FLOAT8 ) NOT IN ( - col2 ) # Datafusion - Expected - -67 # Datafusion - Expected - 934 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* tab2\.col0 \- tab2\.col1 \+ Int64\(\-73\) AS col2" at position 0 and "\(\- tab2\.col1\) \+ tab2\.col2 / \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * col0 - col1 + - 73 AS col2, - col1 + + col2 / + ( + - col1 ) col2 FROM tab2 +---- +-51 +-67 +-77 +2410 +4210 +934 query I rowsort SELECT DISTINCT - 99 + + col0 + - col2 AS col0 FROM tab2 @@ -16214,8 +16366,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT tab0\.col0\)\) AS col2" at position 0 and "CAST\(min\(DISTINCT tab0\.col1\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MAX ( DISTINCT + col0 ) AS col2, CAST ( + + MIN ( DISTINCT + col1 ) AS INTEGER ) col2 FROM tab0 +---- +-97 +1 query I rowsort label-2710 SELECT DISTINCT + + 7 * - - CAST ( - - 38 AS INTEGER ) * - col0 - + + 39 AS col2 FROM tab2 AS cor0 @@ -16687,8 +16842,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + COUNT ( * ) AS col1, + 4 AS col1 FROM tab2 AS cor0 +---- +-3 +4 query I rowsort SELECT - 91 + 86 AS col1 FROM tab1 AS cor0 @@ -16785,8 +16943,15 @@ SELECT DISTINCT - 86 * 18 - + 32 col0 FROM tab1 AS cor0 WHERE NULL <> col1 * + c # Datafusion - Expected - 1 # Datafusion - Expected - 3243 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col2 \+ cor0\.col1 AS col1" at position 0 and "cor0\.col0 / cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( col1 ) * col2 + + + col1 AS col1, + col0 / col0 AS col1 FROM tab1 AS cor0 +---- +1 +1 +1 +1358 +300 +3243 query I rowsort label-2803 SELECT DISTINCT + col2 / + col0 + + + 99 FROM tab0 AS cor0 @@ -17206,8 +17371,15 @@ SELECT - ( + - 35 ) FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL ) # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 AS col0 FROM tab0 cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT DISTINCT + + ( - 67 ) AS col2 FROM tab0 AS cor0 @@ -17226,8 +17398,9 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ Int64\(\-28\) AS col1" at position 0 and "\(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + + - 28 AS col1, - col0 AS col1 FROM tab0 WHERE NOT col1 * + col2 * + col0 BETWEEN NULL AND NULL +---- query I rowsort SELECT ALL + - 3 FROM tab2 WHERE NOT - - col2 * + col0 * + - col1 IS NOT NULL @@ -17607,8 +17780,15 @@ SELECT * FROM tab1 WHERE NOT - - 52 IS NOT NULL # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col2, + col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT DISTINCT - ( + - col0 ) * col2 FROM tab2 @@ -17670,8 +17850,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / avg\(DISTINCT tab0\.col2\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - COUNT ( * ) / + AVG ( DISTINCT ( col2 ) ) AS col1, COUNT ( * ) AS col1 FROM tab0 WHERE NOT - + col1 IS NOT NULL +---- +0 +NULL query I rowsort label-2947 SELECT ALL SUM ( DISTINCT 31 ) FROM tab2, tab1 cor0 @@ -17685,8 +17868,15 @@ SELECT ALL SUM ( DISTINCT 31 ) FROM tab2, tab1 cor0 # Datafusion - Expected - 90 # Datafusion - Expected - 529 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col2 AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * + col2 AS col1, 90 AS col1 FROM tab2 AS cor0 +---- +1600 +3364 +529 +90 +90 +90 query I rowsort label-2949 SELECT 32 / MIN ( ALL - col2 ) AS col1 FROM tab1 AS cor0 @@ -17834,8 +18024,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE col2 <> - - col0 # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) / \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col0 / + - CAST ( NULL AS INTEGER ) AS col1, col2 AS col1 FROM tab0 AS cor0 +---- +10 +47 +99 +NULL +NULL +NULL query I rowsort label-2973 SELECT - 10 + - CAST ( NULL AS INTEGER ) * COUNT ( + 66 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -17850,8 +18047,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 73 AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 +---- +73 +9 query I rowsort SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE + col1 = NULL @@ -18744,8 +18944,15 @@ SELECT ALL * FROM tab2 cor0 WHERE col0 >= + - 67 * 49 # Datafusion - Expected - 142 # Datafusion - Expected - 1 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) / \(\- cor0\.col2\) \+ cor0\.col2 / cor0\.col2 AS col0" at position 0 and "cor0\.col0 \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 11 / - col2 + col2 / + col2 AS col0, + col0 + + col1 AS col0 FROM tab2 AS cor0 +---- +1 +1 +1 +141 +142 +97 query I rowsort SELECT + col0 * - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 + + col2 NOT BETWEEN + 57 * + 87 AND NULL @@ -19012,8 +19219,15 @@ NULL # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2, + col2 AS col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query II rowsort label-3173 SELECT - 84 AS col1, COUNT ( * ) col0 FROM tab0 AS cor0 @@ -19938,8 +20152,11 @@ SELECT DISTINCT - col1, CAST ( 44 AS INTEGER ) + - col1 AS col2 FROM tab1 AS cor # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +3 +3 query II rowsort label-3326 SELECT + 34 AS col1, ( CAST ( - col2 AS INTEGER ) ) + 99 FROM tab2 cor0 @@ -20055,8 +20272,15 @@ SELECT DISTINCT ( - ( col0 ) ) FROM tab0 # Datafusion - Expected - -5 # Datafusion - Expected - 51 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ \(\- tab0\.col1\) AS col2" at position 0 and "\(\- Int64\(5\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 52 + - col1 col2, - ( 5 ) AS col2 FROM tab0 +---- +-29 +-5 +-5 +-5 +31 +51 query I rowsort SELECT ALL 62 * - 55 - col1 FROM tab0 @@ -20477,8 +20701,11 @@ SELECT DISTINCT - col2 * col0 + + 10 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +3 +NULL query I rowsort SELECT - 79 - col2 AS col0 FROM tab1 AS cor0 @@ -20815,8 +21042,15 @@ SELECT DISTINCT + 32 * - - 10 * - ( + 46 ) * - + col2 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1, + col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query II rowsort label-3462 SELECT 21 * - 1 AS col1, MAX ( + col1 ) AS col2 FROM tab0 @@ -20915,8 +21149,15 @@ SELECT ALL col0 + - 14 FROM tab1 # Datafusion - Expected - 90 # Datafusion - Expected - 28160 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* Int64\(88\) \* Int64\(32\) AS col2" at position 0 and "Int64\(40\) / \(\- Int64\(\-26\)\) \+ Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * 88 * + 32 AS col2, 40 / - - 26 + 89 AS col2 FROM tab0 +---- +132352 +278784 +28160 +90 +90 +90 query III rowsort SELECT * FROM tab0 WHERE ( ( NULL ) IS NULL ) @@ -21382,8 +21623,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + - + col1 + + - col2 / + 2 * # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, + col1 AS col2 FROM tab1 cor0 +---- +14 +47 +5 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 > NULL @@ -22084,8 +22332,15 @@ SELECT col2 * + 1 + col0 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col2, col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT 67 * + col0 * - col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( + col1, - col1 ) @@ -23524,8 +23779,15 @@ SELECT ALL + COUNT ( ALL + - col2 ) col2 FROM tab2 # Datafusion - Expected - -4258 # Datafusion - Expected - 27 # Datafusion - Expected - -9051 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-27\)\) AS col1" at position 0 and "\(\- cor0\.col1\) \- \(\- \(\- cor0\.col1\)\) \* Int64\(43\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 27 AS col1, - col1 - + ( - - col1 ) * 43 * col2 AS col1 FROM tab0 AS cor0 +---- +-163782 +-4258 +-9051 +27 +27 +27 query I rowsort SELECT - - col2 * - 96 col2 FROM tab0 AS cor0 @@ -23690,8 +23952,11 @@ SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + col0, + 13, - + 99 + + col1 * - - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 79 AS col0, 54 AS col0 FROM tab2 +---- +54 +79 query II rowsort SELECT + - col1 AS col2, col0 + + 8 FROM tab1 AS cor0 @@ -23748,8 +24013,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + COUNT ( * ), - ( COUNT ( * ) ) FROM tab1 cor0 +---- +-3 +-3 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 27 AND NULL @@ -23762,8 +24030,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 27 AND NULL # Datafusion - Expected - -85 # Datafusion - Expected - -91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0, - col0 FROM tab1 AS cor0 +---- +-51 +-51 +-85 +-85 +-91 +-91 query I rowsort label-3956 SELECT + col2 AS col1 FROM tab1 WHERE NOT CAST ( 78 AS INTEGER ) < NULL @@ -25100,8 +25375,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 43 AS col2, 36 + - COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +33 +43 query II rowsort SELECT - col2 AS col2, col1 + - 64 FROM tab0 AS cor0 @@ -26324,8 +26602,15 @@ SELECT - ( + col0 ) AS col0 FROM tab2 cor0 # Datafusion - Expected - 59 # Datafusion - Expected - -91 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, + col2 AS col1 FROM tab1 cor0 +---- +-51 +-85 +-91 +59 +68 +96 query I rowsort SELECT ALL - col2 * + col2 * + col2 * + 28 AS col2 FROM tab0 AS cor0 @@ -26460,8 +26745,15 @@ SELECT DISTINCT 37 AS col1 FROM tab1 AS cor0 WHERE NOT 97 * - col0 * - col1 > + # Datafusion - Expected - 21 # Datafusion - Expected - 15 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(84\)\) \+ cor0\.col2 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 84 + + col2 col0, + col1 AS col0 FROM tab0 AS cor0 +---- +-37 +-74 +1 +15 +21 +81 query I rowsort SELECT ALL col0 + - 2 * - - 71 FROM tab0 AS cor0 @@ -26996,8 +27288,15 @@ SELECT ALL col2 / - col1 * - col0 AS col2 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - 94 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 94 col2, col1 col2 FROM tab0 +---- +1 +21 +81 +94 +94 +94 query I rowsort SELECT DISTINCT - col1 * + + col1 * - col1 * + + col0 FROM tab1 AS cor0 @@ -27091,8 +27390,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 44 AS col0, + COUNT ( * ) + + + 35 AS col0 FROM tab2 +---- +38 +44 query I rowsort label-4508 SELECT DISTINCT 64 + - - ( - MIN ( DISTINCT + ( + 74 ) ) ) col2 FROM tab0 AS cor0 @@ -29727,8 +30029,15 @@ SELECT col0 + + col1 + - 25 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 4425 # Datafusion - Expected - 77 # Datafusion - Expected - 2624 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "tab2\.col0 \+ \(\- tab2\.col0\) \* \(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col0, ( + col0 ) + ( - col0 ) * - col2 AS col0 FROM tab2 +---- +1104 +2624 +4425 +51 +67 +77 query III rowsort SELECT DISTINCT * FROM tab1 WHERE - ( + 50 ) IS NULL @@ -29919,8 +30228,15 @@ SELECT ALL - 5 + - COUNT ( * ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -45 # Datafusion - Expected - NULL # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- cor0\.col1 / CAST\(NULL AS Int32\) \* \(\- cor0\.col0\) / \(\- cor0\.col0\) \+ \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(\-45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 - + col1 / CAST ( NULL AS INTEGER ) * + - col0 / + - col0 + - col2 col1, - 45 AS col1 FROM tab1 cor0 +---- +-45 +-45 +-45 +NULL +NULL +NULL query I rowsort SELECT ALL + - col0 + + col1 col1 FROM tab0 AS cor0 @@ -31454,8 +31770,15 @@ SELECT 22 FROM tab2 AS cor0 WHERE NOT NULL >= NULL # Datafusion - Expected - -291 # Datafusion - Expected - NULL # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- tab0\.col0\) \* \(\- Int64\(\-3\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col1, - col0 * ( - - 3 ) AS col1 FROM tab0 +---- +-261 +-291 +-45 +NULL +NULL +NULL query I rowsort label-5247 SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL @@ -32659,8 +32982,15 @@ SELECT DISTINCT 77 - col2 FROM tab1 # Datafusion - Expected - 145435 # Datafusion - Expected - 964 # Datafusion - Expected - 141984 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* tab1\.col1 \+ \(\- \(\- tab1\.col2\)\) AS col2" at position 0 and "tab1\.col2 \* tab1\.col0 \* Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 62 * col1 + - - col2 AS col2, + col2 * col0 * + 29 AS col2 FROM tab1 +---- +141984 +145435 +179452 +2982 +369 +964 query I rowsort label-5443 SELECT DISTINCT - COUNT ( DISTINCT 82 ) AS col1 FROM tab2 @@ -32741,8 +33071,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 48 / + 1 AS col0, COUNT ( * ) + 49 AS col0 FROM tab0 AS cor0 +---- +48 +52 query I rowsort label-5456 SELECT + SUM ( + col2 ) FROM tab0 @@ -32861,8 +33194,15 @@ SELECT ALL 43 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL # Datafusion - Expected - -47 # Datafusion - Expected - 21 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col0" at position 0 and "\(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + 21 ) AS col0, - col1 AS col0 FROM tab1 +---- +-14 +-47 +-5 +21 +21 +21 query I rowsort SELECT - ( - ( - col0 ) ) FROM tab0 @@ -33925,8 +34265,15 @@ SELECT DISTINCT + COUNT ( * ) AS col0, MIN ( + col1 ) AS col2 FROM tab0 # Datafusion - Expected - -64 # Datafusion - Expected - 986 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* Int64\(17\) AS col2" at position 0 and "\(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * + 17 col2, - col0 col2 FROM tab2 +---- +-46 +-64 +-75 +391 +680 +986 query I rowsort SELECT col1 * 32 FROM tab2 cor0 WHERE 94 + col2 + - col1 + - col2 * - 47 * - 52 BETWEEN NULL AND NULL @@ -34350,8 +34697,15 @@ SELECT ALL col2 * - - col2 * + col2 FROM tab1 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 64 # Datafusion - Expected - -58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \+ \(\- tab2\.col2\) / \(\- tab2\.col0\) AS col1" at position 0 and "tab2\.col0 \+ Int64\(58\) / Int64\(\-99\) \* tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - col2 ) + - col2 / - + col0 AS col1, + col0 + + + 58 / - 99 * + col2 AS col1 FROM tab2 +---- +-23 +-40 +-58 +46 +64 +75 query I rowsort label-5727 SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 37 NOT BETWEEN NULL AND ( + - col1 ) @@ -35631,8 +35985,15 @@ NULL # Datafusion - Expected - -85 # Datafusion - Expected - -563171 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ Int64\(\-16\) \+ cor0\.col0 \* cor0\.col0 \* \(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 + - 16 + col0 * col0 * - col2 AS col0, - col0 AS col0 FROM tab1 AS cor0 +---- +-249726 +-426296 +-51 +-563171 +-85 +-91 query II rowsort label-5946 SELECT ALL + MAX ( - - col1 ) + - 19 AS col2, + COUNT ( * ) AS col1 FROM tab2 AS cor0 @@ -35703,8 +36064,15 @@ SELECT DISTINCT col2 - + 65, ( + col1 ) AS col2 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT ALL 30 - - 8 AS col0 FROM tab0 AS cor0 @@ -36770,8 +37138,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 99 ) IS NOT NULL # Datafusion - Expected - 1 # Datafusion - Expected - 77 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, + 1 AS col2 FROM tab2 AS cor0 +---- +1 +1 +1 +51 +67 +77 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE + col0 IS NULL @@ -37303,8 +37678,15 @@ SELECT DISTINCT - ( + - col2 ), col2 AS col2 FROM tab0 # Datafusion - Expected - -10 # Datafusion - Expected - -81 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, - col2 col0 FROM tab0 +---- +-1 +-10 +-21 +-47 +-81 +-99 query I rowsort label-6229 SELECT + + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 @@ -37674,8 +38056,11 @@ SELECT DISTINCT 44 col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 219 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-73\)\)\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( - 73 ) AS col0, 64 AS col0 FROM tab0 AS cor0 +---- +219 +64 query I rowsort SELECT - 32 * + ( - col1 ) AS col1 FROM tab2 @@ -38141,8 +38526,9 @@ SELECT * FROM tab0 WHERE col2 + col0 * 3 IS NOT NULL 9 values hashing to c4b42765dff94eaaa46040e537fb43b7 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 98 col2, + col0 AS col2 FROM tab1 WHERE - - col1 = 36 * + col2 +---- query II rowsort label-6370 SELECT ALL + - COUNT ( * ) AS col1, + 50 AS col0 FROM tab1 AS cor0 @@ -38645,8 +39031,9 @@ SELECT ALL - 66 + + - col0 FROM tab2 AS cor0 -141 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(9\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * + 9 col1, - col0 AS col1 FROM tab0 AS cor0 WHERE ( NOT - 8 <> - - 62 ) +---- query I rowsort SELECT col2 * + + col1 AS col0 FROM tab1 @@ -39152,8 +39539,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT + 7 IS NOT NULL # Datafusion - Expected - -1 # Datafusion - Expected - 82 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "\(\- tab0\.col0\) / Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 82 AS col2, - col0 / 65 AS col2 FROM tab0 +---- +-1 +-1 +0 +82 +82 +82 query I rowsort SELECT 96 * + - col0 FROM tab1 cor0 @@ -40786,8 +41180,15 @@ SELECT - col2 FROM tab0 AS cor0 WHERE col2 + - col2 IS NOT NULL # Datafusion - Expected - 68 # Datafusion - Expected - 8 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-43\) AS Int32\) \- \(\- tab1\.col0\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + - 43 AS INTEGER ) - + - col0 AS col1, + col2 AS col1 FROM tab1 WHERE ( NOT NULL IS NOT NULL ) +---- +42 +48 +59 +68 +8 +96 query I rowsort SELECT + - col1 AS col1 FROM tab0 WHERE NULL > NULL @@ -40867,8 +41268,15 @@ SELECT DISTINCT col1 * 43 - col2 AS col2 FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, + col0 AS col0 FROM tab2 cor0 +---- +46 +46 +64 +64 +75 +75 query II rowsort SELECT DISTINCT - 48, col1 col2 FROM tab1 AS cor0 @@ -41295,8 +41703,15 @@ SELECT ALL col1 * - col2 FROM tab0 AS cor0 WHERE + col2 <= - 10 # Datafusion - Expected - 4418 # Datafusion - Expected - 99 # Datafusion - Expected - 9306 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 \* Int64\(93\) \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col2 AS col1, + col2 * + 93 + + col2 AS col1 FROM tab0 AS cor0 +---- +10 +4418 +47 +9306 +940 +99 query I rowsort SELECT + ( - 73 ) * + col1 AS col2 FROM tab2 @@ -43261,8 +43676,10 @@ SELECT DISTINCT col1 * + - col0 + + 32 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 59a6176133b6aed5c2e4973d243ec782 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "cor0\.col0 \- Int64\(\-14\) / \(\- Int64\(\-80\)\) \+ cor0\.col0 \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 4 * + + CAST ( NULL AS INTEGER ) AS col1, + col0 - - 14 / - - 80 + + + col0 + - col2 AS col1, - - col2 * - 20 FROM tab1 AS cor0 +---- +9 values hashing to 4b37c7a39446e51c0efa646be5307af2 query I rowsort label-7219 SELECT DISTINCT + COUNT ( * ) * - - SUM ( col1 ) FROM tab1 AS cor0 @@ -43427,8 +43844,15 @@ SELECT + col1 * + + col0 col2 FROM tab1 # Datafusion - Expected - -37 # Datafusion - Expected - 597 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* Int64\(24\) \- Int64\(\-50\) \+ Int64\(\-5\) AS col0" at position 0 and "Int64\(\-37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * + 24 - ( - 50 ) + - 5 AS col0, - 37 AS col0 FROM tab2 +---- +-37 +-37 +-37 +1005 +1437 +597 query I rowsort SELECT - col2 FROM tab1 WHERE col1 IS NOT NULL @@ -43475,8 +43899,15 @@ SELECT ALL - col1 + - 37 FROM tab2 # Datafusion - Expected - -1344 # Datafusion - Expected - 887601 # Datafusion - Expected - -295 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \- \(\- tab1\.col2\) \* \(\- tab1\.col0\) \* tab1\.col2 \* Int64\(\-3\) \+ \(\- tab1\.col2\) AS col0" at position 0 and "tab1\.col2 \* \(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 - - col2 * - col0 * + + col2 * - 3 + - col2 AS col0, col2 * - col1 AS col0 FROM tab1 +---- +-1344 +-295 +-3196 +1262331 +1409966 +887601 query I rowsort SELECT + col1 * - + col0 + - + col0 AS col1 FROM tab1 @@ -43637,8 +44068,15 @@ SELECT DISTINCT + col2 + - + col0 FROM tab1 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 59 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \+ tab0\.col0 AS col0" at position 0 and "tab0\.col2 \+ \(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 44 + + col0 col0, + col2 + - + col2 AS col0 FROM tab0 +---- +0 +0 +0 +131 +141 +59 query I rowsort label-7283 SELECT - CAST ( NULL AS INTEGER ) / - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab0 @@ -43736,8 +44174,15 @@ SELECT DISTINCT - - COUNT ( * ) * - - 7 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 100 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* Int64\(2\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 50 * 2 AS col1, + col2 AS col1 FROM tab1 AS cor0 +---- +100 +100 +100 +59 +68 +96 query III rowsort label-7299 SELECT * FROM tab0 WHERE NOT + CAST ( 35 AS INTEGER ) IS NOT NULL @@ -43847,8 +44292,15 @@ SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS FLOAT8 ) + - col2 IS NOT NULL # Datafusion - Expected - 1035 # Datafusion - Expected - 6 # Datafusion - Expected - 6003 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) / tab0\.col1 \+ tab0\.col2 AS col0" at position 0 and "Int64\(69\) \* tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 / col1 + col2 AS col0, 69 * col0 AS col0 FROM tab0 +---- +1035 +2 +47 +6 +6003 +6693 query I rowsort SELECT ALL - ( col1 ) - - + col0 FROM tab1 @@ -43876,8 +44328,15 @@ SELECT + - ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 41 # Datafusion - Expected - 91 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, + 41 AS col2 FROM tab1 +---- +41 +41 +41 +51 +85 +91 query III rowsort SELECT * FROM tab2 WHERE NOT NULL < + col2 @@ -43927,8 +44386,15 @@ SELECT + + ( 1 ) FROM tab0 AS cor0 # Datafusion - Expected - 3364 # Datafusion - Expected - -42 # Datafusion - Expected - 529 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col1" at position 0 and "cor0\.col2 \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 42 AS col1, + col2 * col2 AS col1 FROM tab2 AS cor0 +---- +-42 +-42 +-42 +1600 +3364 +529 query II rowsort label-7331 SELECT + ( + COUNT ( * ) ) AS col1, + ( CAST ( + - 59 AS INTEGER ) ) FROM tab2 @@ -44050,8 +44516,9 @@ SELECT DISTINCT - 94 / COUNT ( * ) * + COUNT ( + col2 ) FROM tab0 AS cor0 -93 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 FROM tab2 AS cor0 WHERE + col1 + col1 IS NULL AND NOT NULL BETWEEN col1 AND ( NULL ) +---- query I rowsort SELECT 32 FROM tab2 AS cor0 WHERE NULL IS NOT NULL @@ -44219,8 +44686,15 @@ SELECT ALL 61 * - col1 AS col2 FROM tab2 WHERE NOT 76 < ( NULL ) # Datafusion - Expected - -680 # Datafusion - Expected - 31 # Datafusion - Expected - -728 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col0" at position 0 and "tab1\.col0 \* Int64\(\-4\) \* Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 31 AS col0, + col0 * - 4 * 2 AS col0 FROM tab1 +---- +-408 +-680 +-728 +31 +31 +31 query III rowsort SELECT ALL * FROM tab0 WHERE NOT - + 72 NOT BETWEEN ( - col2 ) + - col0 AND NULL @@ -44800,8 +45274,15 @@ SELECT col1, 44 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 615 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* Int64\(41\) AS col1" at position 0 and "\(\- CAST\(NULL AS Float64\)\) / \(\- \(\- tab0\.col1\)\) \+ \(\- tab0\.col0\) \+ \(\- tab0\.col0\) \- \(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL col0 * 41 AS col1, - CAST ( NULL AS FLOAT8 ) / - - col1 + - + col0 + - col0 - - col0 col1 FROM tab0 +---- +3567 +3977 +615 +NULL +NULL +NULL query I rowsort SELECT DISTINCT - 65 * - 13 * + + col2 AS col0 FROM tab0 AS cor0 @@ -44943,8 +45424,15 @@ SELECT COUNT ( - col1 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -21 # Datafusion - Expected - 81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col1 AS col0, ( - + col1 ) AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +1 +21 +81 query I rowsort label-7496 SELECT DISTINCT - - MAX ( ALL + + col1 ) FROM tab1 AS cor0 @@ -45391,8 +45879,15 @@ SELECT * FROM tab0 WHERE NULL IN ( - col2, - ( - - col0 ), ( - + 18 ), + col1, C # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query II rowsort SELECT + col0, col1 * + 83 FROM tab0 @@ -46624,8 +47119,15 @@ SELECT * FROM tab0 cor0 WHERE col1 * + col0 = + col0 # Datafusion - Expected - 77 # Datafusion - Expected - 58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 col0, col1 AS col0 FROM tab2 AS cor0 +---- +23 +40 +51 +58 +67 +77 query I rowsort label-7773 SELECT DISTINCT CAST ( 65 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL @@ -46638,8 +47140,15 @@ SELECT DISTINCT CAST ( 65 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NULL IS N # Datafusion - Expected - -97 # Datafusion - Expected - -6642 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col1 \* \(\- cor0\.col1\) AS col2" at position 0 and "Int64\(\-97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 + + col1 * - col1 AS col2, ( - 97 ) AS col2 FROM tab0 AS cor0 +---- +-2 +-462 +-6642 +-97 +-97 +-97 query I rowsort SELECT + col1 + col2 + - + col0 FROM tab2 AS cor0 @@ -46744,8 +47253,15 @@ SELECT ALL + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col0, col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query II rowsort SELECT ALL col1 AS col1, col1 * + col2 FROM tab1 cor0 @@ -47062,8 +47578,15 @@ SELECT * FROM tab1 AS cor0 WHERE NULL > col0 + - - ( + 87 ) / - col0 # Datafusion - Expected - -21 # Datafusion - Expected - -81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1, - col1 FROM tab0 AS cor0 +---- +-1 +-1 +-21 +-21 +-81 +-81 query I rowsort SELECT + 61 - - col2 FROM tab0 AS cor0 WHERE 58 IS NOT NULL @@ -47203,8 +47726,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 68 IS NOT NULL # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col2, col2 FROM tab0 cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT ALL - col2 * col0 * + 30 FROM tab2 AS cor0 WHERE + col0 NOT IN ( 20, 0 ) @@ -47325,8 +47855,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ), + COUNT ( * ) FROM tab0 +---- +3 +3 query III rowsort SELECT * FROM tab0 WHERE NOT NULL IN ( + + 67, - col0, col2 ) @@ -47387,8 +47920,15 @@ SELECT DISTINCT COUNT ( - + col2 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 51 # Datafusion - Expected - 372 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* cor0\.col1 \+ cor0\.col0 \+ cor0\.col1 \* Int64\(81\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * + col1 + col0 + + col1 * + 81 AS col2, + col1 AS col2 FROM tab2 AS cor0 +---- +1013 +1576 +372 +51 +67 +77 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -47801,8 +48341,15 @@ SELECT col0 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL # Datafusion - Expected - 1275 # Datafusion - Expected - 77 # Datafusion - Expected - 1088 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "tab2\.col0 \* Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, col0 * 17 AS col0 FROM tab2 +---- +1088 +1275 +51 +67 +77 +782 query I rowsort SELECT ALL col0 + + - col0 + + col1 * - 97 AS col0 FROM tab2 @@ -48529,8 +49076,15 @@ SELECT ( + - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 = NULL # Datafusion - Expected - 68 # Datafusion - Expected - -98 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(98\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 98 AS col1, col2 AS col1 FROM tab1 AS cor0 +---- +-98 +-98 +-98 +59 +68 +96 query III rowsort SELECT - col2 AS col2, col2 AS col1, + col0 FROM tab1 AS cor0 @@ -49980,8 +50534,15 @@ SELECT DISTINCT - col0 * - 66 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 9409 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- cor0\.col0\) AS Int32\)\) \* cor0\.col0 AS col0" at position 0 and "CAST\(\(\- \(\- cor0\.col1\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + CAST ( - col0 AS INTEGER ) * col0 AS col0, + CAST ( - - col1 AS INTEGER ) col0 FROM tab0 AS cor0 +---- +1 +21 +225 +7569 +81 +9409 query II rowsort SELECT - col2 AS col2, 33 AS col1 FROM tab0 @@ -50718,8 +51279,15 @@ SELECT DISTINCT + col1 - 2 col1 FROM tab2 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - 71 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 71 AS col2, - col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 * + + ( + - 91 ) * - 5 IS NULL +---- +-15 +-87 +-97 +71 +71 +71 query I rowsort label-8449 SELECT COUNT ( - + ( + col0 ) ) / - 74 AS col2 FROM tab1 AS cor0 @@ -50828,8 +51396,11 @@ SELECT ALL - 78 + 50 + 85 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + - col1 # 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\(cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 31 AS col1, - COUNT ( + + col0 ) AS col1 FROM tab0 cor0 +---- +-3 +31 query I rowsort label-8466 SELECT ALL COUNT ( * ) + CAST ( + COUNT ( * ) AS INTEGER ) + + - 13 + - COUNT ( * ) AS col2 FROM tab2 AS cor0 @@ -50965,8 +51536,15 @@ SELECT 61 * - + CAST ( - 80 AS INTEGER ) AS col2 FROM tab0 # Datafusion - Expected - -79 # Datafusion - Expected - 97 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "tab0\.col2 \- Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, col2 - 89 AS col1 FROM tab0 +---- +-42 +-79 +10 +15 +87 +97 query III rowsort SELECT ALL * FROM tab0 WHERE - + col2 = - 38 * - + col1 + + col1 @@ -52366,8 +52944,15 @@ SELECT + COUNT ( * ) AS col0, SUM ( + col0 ) FROM tab2 # Datafusion - Expected - -4928 # Datafusion - Expected - 75 # Datafusion - Expected - -5025 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "\(\- tab2\.col0\) \* tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 col2, - col0 * col1 AS col2 FROM tab2 +---- +-2346 +-4928 +-5025 +46 +64 +75 query III rowsort SELECT * FROM tab1 WHERE NOT col0 / + col2 + col0 IS NULL @@ -52861,8 +53446,9 @@ SELECT col2 AS col1, col2 FROM tab1 96 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) / Int64\(20\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 / 20 AS col0, col2 col0 FROM tab2 cor0 WHERE NOT col1 <= NULL +---- query III rowsort label-8810 SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL @@ -52983,8 +53569,11 @@ SELECT DISTINCT - MAX ( - + 57 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(40\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) / 40 * COUNT ( * ) AS col1, - 12 AS col1 FROM tab1 +---- +-12 +0 query I rowsort SELECT ALL + ( - + 2 ) FROM tab0 @@ -53025,8 +53614,15 @@ SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 cor1 WHERE ( ( NULL IS NOT NULL # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col2, col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query IIIIII rowsort SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 63 IS NOT NULL @@ -53489,8 +54085,15 @@ SELECT ALL - col2 + + - 34 col1 FROM tab2 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT ALL - col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL ) @@ -54387,8 +54990,15 @@ SELECT ALL 44 * + + col2 FROM tab1 # Datafusion - Expected - -21 # Datafusion - Expected - 14 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 AS col1, - col1 AS col1 FROM tab0 +---- +-1 +-21 +-81 +14 +14 +14 query III rowsort SELECT ALL * FROM tab2 WHERE NOT - + 57 + - col1 IS NOT NULL @@ -54908,8 +55518,15 @@ SELECT ALL - + col2 AS col0, col1 FROM tab2 AS cor0 # Datafusion - Expected - 1200 # Datafusion - Expected - 77 # Datafusion - Expected - 1024 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 \* Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col2, + col0 * + 16 AS col2 FROM tab2 AS cor0 +---- +1024 +1200 +51 +67 +736 +77 query I rowsort SELECT ALL - 66 + + + col0 AS col2 FROM tab1 AS cor0 @@ -55158,8 +55775,15 @@ SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE 83 <= ( NULL ) # Datafusion - Expected - -47 # Datafusion - Expected - -68544 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col1 \* cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 * col1 * col0 col2, - col1 col2 FROM tab1 AS cor0 +---- +-14 +-25075 +-290836 +-47 +-5 +-68544 query III rowsort SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) = - col2 @@ -55775,8 +56399,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ), + COUNT ( * ) FROM tab2 AS cor0 +---- +3 +3 query II rowsort SELECT + + col1 AS col1, ( - - col1 ) AS col0 FROM tab1 AS cor0 @@ -56581,8 +57208,11 @@ SELECT DISTINCT - CAST ( + 8 AS INTEGER ), col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - COUNT ( * ) ) AS col2, COUNT ( * ) AS col2 FROM tab0 cor0 +---- +-3 +3 query II rowsort label-9423 SELECT - - COUNT ( * ), + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 @@ -56936,8 +57566,15 @@ SELECT ALL + 7 + + COUNT ( * ) + 52 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, col2 AS col0 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query II rowsort label-9483 SELECT ALL - + col2 + - col2 - - + col1 + - 30 + - + 69 * - col2 col0, CAST ( + 93 AS INTEGER ) FROM tab1 cor0 @@ -57379,8 +58016,15 @@ SELECT ALL * FROM tab2 WHERE NOT - col1 * 85 IS NULL # Datafusion - Expected - 117 # Datafusion - Expected - 75 # Datafusion - Expected - 125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col1 \+ tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, col1 + + col2 AS col1 FROM tab2 +---- +117 +125 +46 +64 +74 +75 query I rowsort label-9556 SELECT DISTINCT 84 - COUNT ( ALL + - 69 ) AS col1 FROM tab0 @@ -57965,8 +58609,15 @@ SELECT COUNT ( - 16 ) FROM tab2 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, + col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query III rowsort label-9656 SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 * + CAST ( NULL AS INTEGER ) / 73 IS NULL @@ -58442,8 +59093,11 @@ SELECT - col2 * - col0 AS col2, + 59 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-52\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 52 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 +---- +52 +NULL query I rowsort label-9735 SELECT DISTINCT + - COUNT ( * ) * SUM ( col0 ) col0 FROM tab2 AS cor0 @@ -58575,8 +59229,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE 60 * - - col0 < NULL # Datafusion - Expected - 21 # Datafusion - Expected - 72 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 72 col2, col1 col2 FROM tab0 AS cor0 +---- +1 +21 +72 +72 +72 +81 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NULL >= - + col2 @@ -58697,8 +59358,15 @@ SELECT + col1 * + + 99 AS col1 FROM tab1 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, + col0 AS col2 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query II rowsort SELECT col2 AS col2, col0 AS col0 FROM tab2 @@ -59029,8 +59697,15 @@ SELECT ALL ( col2 ) - + + col2 + 91 + + - col1 AS col0 FROM tab1 # Datafusion - Expected - 0 # Datafusion - Expected - 30 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \- \(\- tab0\.col0\) AS col2" at position 0 and "Int64\(73\) / tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 - - col0 col2, 73 / + col2 AS col2 FROM tab0 +---- +0 +1 +174 +194 +30 +7 query I rowsort SELECT - col0 + - 95 - + col2 FROM tab1 @@ -59499,8 +60174,9 @@ SELECT ALL + 89 AS col2 FROM tab0 89 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab1\.col1\)\) AS col0" at position 0 and "Int64\(\-90\) \* tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 AS col0, - 90 * + col0 AS col0 FROM tab1 WHERE NOT NULL <> - ( + 21 ) +---- query I rowsort SELECT DISTINCT - - 54 / + col0 + 6 + + col1 FROM tab0 cor0 WHERE NOT - col2 = NULL @@ -59751,8 +60427,15 @@ SELECT DISTINCT * FROM tab1 WHERE col1 / + + col1 <= + col0 # Datafusion - Expected - 47 # Datafusion - Expected - -36 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 36 ) col0, + col1 col0 FROM tab1 AS cor0 +---- +-36 +-36 +-36 +14 +47 +5 query I rowsort label-9947 SELECT - COUNT ( + + 83 ) AS col1 FROM tab2 cor0 @@ -59914,8 +60597,10 @@ SELECT - 31, 2 * - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to e88696f43bff966dbd0c9c9a6371969f -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \- tab0\.col1 \* \(\- tab0\.col1\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 13 - col1 * - col1 AS col1, col0 AS col0, col0 AS col1 FROM tab0 WHERE NOT - + 42 - - + col1 IS NULL +---- +9 values hashing to 07334ddef98ec4cfc99c4d5bdcfb527d query I rowsort SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL diff --git a/data/sqlite/random/aggregates/slt_good_75.slt b/data/sqlite/random/aggregates/slt_good_75.slt index a8f515a..788ac58 100644 --- a/data/sqlite/random/aggregates/slt_good_75.slt +++ b/data/sqlite/random/aggregates/slt_good_75.slt @@ -303,8 +303,15 @@ SELECT + - col2 - col0 + + col1 FROM tab2 WHERE NULL IS NOT NULL # Datafusion - Expected - 54 # Datafusion - Expected - -281201 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ tab1\.col2 \* Int64\(\-88\) \* tab1\.col1 AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + col2 * - 88 * + col1 AS col2, 54 AS col2 FROM tab1 +---- +-118258 +-25955 +-281201 +54 +54 +54 query I rowsort SELECT - ( - + col1 ) + col0 FROM tab0 @@ -441,8 +448,15 @@ SELECT - MIN ( ALL 76 ) FROM tab0 # Datafusion - Expected - 67 # Datafusion - Expected - 81 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 col0, + col1 AS col0 FROM tab2 +---- +51 +67 +77 +81 +81 +81 query I rowsort label-63 SELECT DISTINCT col2 * + 53 + - + CAST ( 79 AS INTEGER ) + + col1 AS col0 FROM tab2 AS cor0 @@ -494,8 +508,15 @@ SELECT COUNT ( * ) + + 49 FROM tab2 cor0 # Datafusion - Expected - 102 # Datafusion - Expected - 58 # Datafusion - Expected - 113 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "Int64\(38\) \+ tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, 38 + col0 AS col1 FROM tab2 +---- +102 +113 +23 +40 +58 +84 query I rowsort label-71 SELECT - SUM ( + 63 ) AS col0 FROM tab2 @@ -538,8 +559,15 @@ SELECT ALL - col2 * - - col2 * - + col1 + + + 69 + - - 59 FROM tab0 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col0, + col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 <> + + 74 @@ -1321,8 +1349,15 @@ SELECT DISTINCT + COUNT ( * ) col2 FROM tab0 AS cor0 # Datafusion - Expected - -77 # Datafusion - Expected - -75 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col0 AS col1, - col1 col1 FROM tab2 cor0 +---- +-46 +-51 +-64 +-67 +-75 +-77 query I rowsort label-218 SELECT DISTINCT + + ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0 WHERE + col2 + + col0 IS NOT NULL @@ -1430,8 +1465,15 @@ SELECT ALL + col1 * - - col0 AS col1 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - 73 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 73 AS col0, col1 AS col0 FROM tab1 AS cor0 +---- +14 +47 +5 +73 +73 +73 query II rowsort SELECT DISTINCT col1, ( + 68 ) FROM tab1 cor0 @@ -2026,8 +2068,15 @@ SELECT + col0 FROM tab0 WHERE NOT + 57 IS NOT NULL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, col1 AS col2 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query III rowsort SELECT DISTINCT - col0 AS col0, col0 AS col2, - col0 FROM tab0 cor0 @@ -2898,8 +2947,15 @@ SELECT - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL # Datafusion - Expected - 20 # Datafusion - Expected - 9692 # Datafusion - Expected - 198 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col1 \+ \(\- Int64\(\-87\)\) \+ cor0\.col2 \+ cor0\.col0 \* cor0\.col0 AS col0" at position 0 and "cor0\.col2 \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col0 * col1 + - - 87 + col2 + + col0 * + + col0 AS col0, + col2 + + col2 AS col0 FROM tab0 AS cor0 +---- +1574 +198 +20 +94 +9493 +9692 query I rowsort label-482 SELECT DISTINCT - - col0 - + col2 / 46 FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN NULL AND + - 66 * col0 + CAST ( NULL AS INTEGER ) @@ -3218,8 +3274,15 @@ SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT col2 + + + ( CAST ( + # Datafusion - Expected - 224 # Datafusion - Expected - 58 # Datafusion - Expected - 195 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col1\) \* Int64\(58\) / \(\- Int64\(20\)\) \+ cor0\.col2 / cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, - col1 * 58 / - ( 20 ) + + col2 / + col2 AS col0 FROM tab2 AS cor0 +---- +148 +195 +224 +23 +40 +58 query I rowsort SELECT + col0 * + 7 AS col1 FROM tab2 AS cor0 @@ -3747,8 +3810,15 @@ SELECT + col0 * + 90 * - 56 - - 46 * ( - col2 ) col0 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +NULL +NULL +NULL query I rowsort SELECT - col0 - ( - ( + 52 ) ) * + col2 AS col1 FROM tab0 AS cor0 @@ -4066,8 +4136,15 @@ SELECT DISTINCT - col1 / + + col2 FROM tab1 # Datafusion - Expected - 203391 # Datafusion - Expected - 35 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-35\) AS Int32\)\) AS col1" at position 0 and "tab0\.col1 \* \(\- Int64\(\-31\)\) \* \(\- \(\- tab0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - CAST ( - 35 AS INTEGER ) ) AS col1, col1 * - - 31 * - - col1 AS col1 FROM tab0 +---- +13671 +203391 +31 +35 +35 +35 query I rowsort SELECT DISTINCT + + 38 AS col1 FROM tab0 cor0 @@ -5609,8 +5686,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col1, - 70 AS col1 FROM tab0 +---- +-3 +-70 query I rowsort label-936 SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 @@ -5620,8 +5700,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab2 +---- +3 +3 query I rowsort label-938 SELECT ALL + SUM ( ( - + col0 ) ) FROM tab2 @@ -5786,8 +5869,15 @@ SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NOT - - col0 * - + col1 * # Datafusion - Expected - 81 # Datafusion - Expected - 88 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \- Int64\(\-89\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 - + - 89 AS col0, col1 AS col0 FROM tab0 AS cor0 +---- +1 +21 +68 +8 +81 +88 query II rowsort label-965 SELECT ( - - 36 ) AS col0, + COUNT ( * ) - + - 85 FROM tab2 AS cor0 @@ -5990,8 +6080,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0 WHERE ( col0 ) IS NOT NULL +---- +3 +3 query I rowsort SELECT + 70 + - 40 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 @@ -6141,8 +6234,9 @@ SELECT ALL col2 + + + col2 - + col2 FROM tab2 AS cor0 WHERE NOT col2 >= - + col1 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 / - col0, - col2 ) +---- query I rowsort label-1024 SELECT + COUNT ( * ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL @@ -6859,8 +6953,10 @@ SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * + + col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 3aae3359ad1f616edc4fd16b745e2f5e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 1 and "\(\- \(\- cor0\.col2\)\) \+ Int64\(61\) \* Int64\(\-16\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 5, col1 AS col0, - - col2 + 61 * - 16 AS col0 FROM tab1 AS cor0 +---- +9 values hashing to 60578f0eb5d8160151942c02c202d0b6 query I rowsort SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE + ( - + col1 ) <> + col2 @@ -6902,8 +6998,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 / + CAST ( CAST ( - col2 AS I # Datafusion - Expected - 31 # Datafusion - Expected - -4998 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* \(\- Int64\(98\)\) AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 * - + 98 AS col1, + 31 AS col1 FROM tab2 cor0 +---- +-4998 +-4998 +-4998 +31 +31 +31 query I rowsort SELECT - col0 * + 9 FROM tab2 AS cor0 @@ -7308,8 +7411,15 @@ SELECT + + col0 + 13 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col0 AS Int32\)\) \+ \(\- Int64\(45\)\) \- \(\- cor0\.col0\) \- Int64\(\-21\) \* \(\- cor0\.col1\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( + col0 AS INTEGER ) + - + 45 - - col0 - - 21 * ( - + col1 ) * - CAST ( NULL AS INTEGER ) AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +10 +47 +99 +NULL +NULL +NULL query I rowsort SELECT - col1 + - + col2 FROM tab1 @@ -7492,8 +7602,15 @@ SELECT ALL * FROM tab1 WHERE NOT col2 + col0 <> + + 39 + - 93 # Datafusion - Expected - 123200 # Datafusion - Expected - -75 # Datafusion - Expected - 225388 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col1" at position 0 and "\(\- tab2\.col1\) \* \(\- tab2\.col2\) \* tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, - col1 * + - col2 * col2 AS col1 FROM tab2 +---- +-46 +-64 +-75 +123200 +225388 +26979 query I rowsort label-1243 SELECT + 50 / 61 AS col0 FROM tab0 @@ -8842,8 +8959,15 @@ SELECT DISTINCT + + ( - col1 ) + + 43 FROM tab2 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, + col0 FROM tab0 AS cor0 WHERE ( - col0 ) IS NOT NULL +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT DISTINCT col1 - + 91 * + col2 * + + 35 AS col2 FROM tab1 @@ -9045,8 +9169,11 @@ SELECT ALL + col1 / + - col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, 68 col2 FROM tab0 AS cor0 +---- +3 +68 query I rowsort SELECT ALL + ( + + col2 ) FROM tab2 AS cor0 @@ -9191,8 +9318,15 @@ SELECT DISTINCT col0 AS col1, - 57 FROM tab0 cor0 # Datafusion - Expected - -33 # Datafusion - Expected - -97 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, - 33 AS col2 FROM tab0 AS cor0 +---- +-15 +-33 +-33 +-33 +-87 +-97 query I rowsort label-1530 SELECT COUNT ( * ) / COUNT ( * ) AS col2 FROM tab0 AS cor0 @@ -9556,8 +9690,15 @@ SELECT ALL + COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab2 # Datafusion - Expected - -1783 # Datafusion - Expected - 81 # Datafusion - Expected - -1171 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "Int64\(44\) \+ \(\- tab0\.col1\) \* tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, 44 + - + col1 * col0 AS col2 FROM tab0 +---- +-1171 +-1783 +-53 +1 +21 +81 query III rowsort SELECT * FROM tab0 WHERE NOT - col2 + + 7 < NULL @@ -9654,8 +9795,15 @@ SELECT ALL - col1 + ( + - col1 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 57 # Datafusion - Expected - 58 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + col2 ) AS col0, + 57 AS col0 FROM tab2 AS cor0 +---- +23 +40 +57 +57 +57 +58 query I rowsort SELECT DISTINCT - col0 - 31 * - + 4 col0 FROM tab1 AS cor0 @@ -9760,8 +9908,11 @@ SELECT ALL - - 60, COUNT ( * ) AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 col2, COUNT ( * ) col2 FROM tab0 AS cor0 +---- +-58 +3 query I rowsort label-1627 SELECT + col0 / + 80 AS col0 FROM tab2 AS cor0 @@ -10083,8 +10234,15 @@ SELECT ALL + - 90 + ( - - 66 ) FROM tab2 AS cor0 # Datafusion - Expected - -14 # Datafusion - Expected - -159 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \- cor0\.col0 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col2 - col0 AS col0, ( - + col1 ) AS col0 FROM tab1 AS cor0 +---- +-14 +-144 +-147 +-159 +-47 +-5 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 92 @@ -11370,8 +11528,15 @@ SELECT - CAST ( + 68 AS INTEGER ) FROM tab0 AS cor0 # Datafusion - Expected - 45 # Datafusion - Expected - 49 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 49 AS col2, 45 AS col2 FROM tab2 AS cor0 +---- +45 +45 +45 +49 +49 +49 query I rowsort label-1898 SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col0 * + col1, col2, - 59 ) @@ -11582,8 +11747,15 @@ SELECT ALL 30 + 44 - - SUM ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 81 # Datafusion - Expected - 7820 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ cor0\.col2 \* \(\- Int64\(\-78\)\) \* cor0\.col1 \+ cor0\.col1 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 + + col2 * - - 78 * + col1 + + col1 AS col0, + col1 AS col0 FROM tab0 AS cor0 +---- +1 +16488 +21 +297042 +7820 +81 query I rowsort label-1934 SELECT + MAX ( DISTINCT 10 ) + + - 39 - - COUNT ( * ) FROM tab2 AS cor0 @@ -11772,8 +11944,15 @@ SELECT + 82 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 11 # Datafusion - Expected - 99 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col0, 11 AS col0 FROM tab0 +---- +10 +11 +11 +11 +47 +99 query I rowsort SELECT + col2 * - col1 * + 9 FROM tab1 WHERE NOT col0 IN ( + - col1, - 32 ) @@ -11908,8 +12087,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ), + COUNT ( * ) FROM tab1 AS cor0 +---- +3 +3 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( - col1 - - col2 ) @@ -12515,8 +12697,15 @@ SELECT DISTINCT + 29 * - col0 * - ( + - 54 ) + + col0 * col0 AS col2 FROM tab2 # Datafusion - Expected - -136 # Datafusion - Expected - 87 # Datafusion - Expected - -192 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "CAST\(\(\- tab1\.col2\) AS Int32\) \+ \(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 AS col0, + CAST ( - col2 AS INTEGER ) + - col2 AS col0 FROM tab1 +---- +-118 +-136 +-192 +87 +87 +87 query I rowsort label-2083 SELECT ALL CAST ( NULL AS INTEGER ) * col2 * col1 FROM tab0 @@ -13677,8 +13866,15 @@ SELECT DISTINCT - + 77 FROM tab2 AS cor0 WHERE NOT 57 IS NOT NULL # Datafusion - Expected - -87 # Datafusion - Expected - 64000 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col2 \* cor0\.col2 AS col1" at position 0 and "Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 * + col2 * col2 AS col1, - 87 col1 FROM tab2 AS cor0 +---- +-87 +-87 +-87 +12167 +195112 +64000 query I rowsort SELECT ALL + 65 - + col0 AS col2 FROM tab2 @@ -14069,8 +14265,15 @@ SELECT DISTINCT SUM ( col1 ) FROM tab2 AS cor0 # Datafusion - Expected - -51 # Datafusion - Expected - 97 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ Int64\(50\) AS col2" at position 0 and "\(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + + 50 AS col2, - col0 AS col2 FROM tab1 +---- +-51 +-85 +-91 +55 +64 +97 query I rowsort label-2351 SELECT ALL - CAST ( NULL AS INTEGER ) / + col2 * - + 47 AS col0 FROM tab2 @@ -14787,8 +14990,15 @@ SELECT * FROM tab2 WHERE - - ( + 92 ) IS NULL # Datafusion - Expected - -68 # Datafusion - Expected - 164 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \+ tab1\.col2 AS col0" at position 0 and "\(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 68 + + col2 AS col0, - col2 AS col0 FROM tab1 +---- +-59 +-68 +-96 +127 +136 +164 query I rowsort label-2473 SELECT ALL COUNT ( * ) + ( - COUNT ( * ) ) + - + 8 FROM tab1 @@ -15858,8 +16068,11 @@ SELECT ALL MAX ( DISTINCT + + col0 ) col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2775 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* Int64\(37\) AS col1" at position 0 and "Int64\(\-20\) \+ \(\- count\(\(\- cor0\.col0\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 75 * 37 AS col1, - 20 + - COUNT ( - col0 ) col1 FROM tab0 AS cor0 +---- +-23 +2775 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1392 @@ -15868,8 +16081,15 @@ SELECT ALL + + 75 * 37 AS col1, - 20 + - COUNT ( - col0 ) col1 FROM tab0 AS cor0 # Datafusion - Expected - -19 # Datafusion - Expected - -960 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \* \(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 24 * - - col2 AS col0, - 19 col0 FROM tab2 AS cor0 +---- +-1392 +-19 +-19 +-19 +-552 +-960 query I rowsort label-2648 SELECT 12 / + + MAX ( ALL + + 66 ) AS col0 FROM tab0 AS cor0 @@ -17247,8 +17467,15 @@ SELECT + SUM ( - - 25 ) * + 71 FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1, col1 AS col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-2883 SELECT - + SUM ( col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 73 * + + col1 AND - col2 @@ -18226,8 +18453,10 @@ SELECT DISTINCT 87 - 7 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 84d781af7ff66ed7bd69995e7745e1f9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- cor0\.col0\) \* Int64\(13\) \- \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(\-77\) \+ \(\- cor0\.col2\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col1 * - col0 * + 13 - + - ( + col0 ) AS col1, - 66 + + - col2 + col0, - 77 + - col2 AS col1 FROM tab2 AS cor0 +---- +9 values hashing to db7efed77c28199076444b3e3c8cc407 query I rowsort SELECT col2 * - col0 * + col1 AS col1 FROM tab0 @@ -18260,8 +18489,15 @@ SELECT ALL + col0 AS col2, ( + col1 ) + + + col2 FROM tab2 # Datafusion - Expected - -12376 # Datafusion - Expected - 41 # Datafusion - Expected - -9792 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "tab1\.col2 \* Int64\(\-2\) \* tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 AS col1, + col2 * + - 2 * + col0 AS col1 FROM tab1 +---- +-10030 +-12376 +-9792 +41 +41 +41 query I rowsort label-3050 SELECT ALL - COUNT ( ALL - col0 ) * COUNT ( * ) AS col1 FROM tab1 @@ -18370,8 +18606,11 @@ SELECT - col0 AS col2, ( + 83 ) FROM tab1 WHERE NOT NULL >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, - 30 col0 FROM tab2 +---- +-30 +3 query I rowsort SELECT DISTINCT - ( - 24 ) AS col2 FROM tab0 @@ -18548,8 +18787,15 @@ SELECT + 5 - + 14 FROM tab0 # Datafusion - Expected - -18 # Datafusion - Expected - -91 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col1, - 18 col1 FROM tab1 AS cor0 +---- +-18 +-18 +-18 +-51 +-85 +-91 query I rowsort SELECT + + 49 + - 72 AS col1 FROM tab1 AS cor0 @@ -18806,8 +19052,9 @@ SELECT * FROM tab0 WHERE + + 21 IS NOT NULL 9 values hashing to c4b42765dff94eaaa46040e537fb43b7 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 FROM tab2 WHERE ( NULL IS NOT NULL ) +---- query I rowsort label-3141 SELECT ALL CAST ( + 72 AS INTEGER ) FROM tab1 @@ -18848,8 +19095,15 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "CAST\(NULL AS Float64\) / Int64\(54\) \* Int64\(\-78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + col0 AS col1, + CAST ( NULL AS FLOAT8 ) / + 54 * - 78 col1 FROM tab1 AS cor0 +---- +51 +85 +91 +NULL +NULL +NULL query I rowsort label-3147 SELECT COUNT ( * ) / - 92 AS col0 FROM tab1 @@ -19641,8 +19895,11 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < + 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, + COUNT ( * ) * + 17 AS col1 FROM tab2 AS cor0 +---- +3 +51 query I rowsort SELECT DISTINCT col0 * + 12 AS col1 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL @@ -19676,8 +19933,15 @@ SELECT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL = NULL # Datafusion - Expected - 67 # Datafusion - Expected - 19 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 AS col2, col1 AS col2 FROM tab2 +---- +19 +19 +19 +51 +67 +77 query I rowsort SELECT + + 52 * + + col1 + - col2 FROM tab0 AS cor0 @@ -19878,8 +20142,11 @@ SELECT + 37 col2, col1 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 98 col2, COUNT ( * ) AS col2 FROM tab0 +---- +3 +98 query I rowsort SELECT DISTINCT + col1 + - col1 AS col2 FROM tab2 cor0 @@ -20034,8 +20301,15 @@ SELECT - COUNT ( - + 31 ) FROM tab0 AS cor0 # Datafusion - Expected - -77 # Datafusion - Expected - 1875 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \* \(\- tab2\.col0\) AS col2" at position 0 and "\(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 25 * - ( col0 ) AS col2, - col1 AS col2 FROM tab2 +---- +-51 +-67 +-77 +1150 +1600 +1875 query I rowsort label-3352 SELECT ALL COUNT ( * ) * 85 FROM tab1 WHERE NOT NULL IN ( - col1 ) @@ -20251,8 +20525,15 @@ SELECT ALL - 54 AS col2 FROM tab2 WHERE NOT + col2 / col2 IS NULL # Datafusion - Expected - 0 # Datafusion - Expected - -760 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \* Int64\(\-38\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 20 * - 38 AS col2, + 0 AS col2 FROM tab1 AS cor0 +---- +-760 +-760 +-760 +0 +0 +0 query I rowsort label-3385 SELECT + MAX ( ALL - 85 ) FROM tab0 cor0 @@ -20806,8 +21087,15 @@ SELECT + col1 AS col2 FROM tab2 WHERE - col1 * - - col0 <> NULL # Datafusion - Expected - NULL # Datafusion - Expected - 19 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) \+ cor0\.col0 AS col2" at position 0 and "CAST\(NULL AS Int32\) \* \(\- cor0\.col2\) \- Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 72 + col0 AS col2, ( + CAST ( NULL AS INTEGER ) ) * + - col2 - + - 74 AS col2 FROM tab1 cor0 +---- +-21 +13 +19 +NULL +NULL +NULL query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT + ( 59 ) < - 57 * + + col0 @@ -21050,8 +21338,11 @@ SELECT 4 * - 5 * - col2 col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 9 AS col1, CAST ( NULL AS INTEGER ) * - + ( + col2 ) AS col1 FROM tab2 AS cor0 +---- +9 +NULL query I rowsort label-3508 SELECT DISTINCT + COUNT ( * ) * + - SUM ( DISTINCT - - ( + 28 ) ) * - SUM ( + + col2 ) AS col0 FROM tab0 cor0 @@ -21241,8 +21532,15 @@ SELECT ALL ( COUNT ( ALL - ( col1 ) ) ) FROM tab0 # Datafusion - Expected - 91 # Datafusion - Expected - -5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col2, + col0 AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +51 +85 +91 query III rowsort SELECT * FROM tab2 cor0 WHERE NOT + 44 IS NOT NULL @@ -21414,8 +21712,10 @@ SELECT col0 / - - ( + - col0 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c7c44b431936bd6db992659474dcea8c -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "tab2\.col0 \* \(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col0 AS col0, col0 * + - col1 AS col0, + col0 AS col2 FROM tab2 +---- +9 values hashing to e6e1c2ca48afa2c6ba455962dc4b8143 query I rowsort label-3567 SELECT CAST ( + + 32 AS INTEGER ) FROM tab0 @@ -22322,8 +22622,15 @@ SELECT * FROM tab0 WHERE - col1 * - - col0 - - + col2 IS NULL # Datafusion - Expected - 103 # Datafusion - Expected - 91 # Datafusion - Expected - 109 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col0 \+ Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, + col0 + 18 col1 FROM tab1 +---- +103 +109 +51 +69 +85 +91 query I rowsort SELECT ALL - col1 - 93 FROM tab1 @@ -22513,8 +22820,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 9 / + 59 * col0 IN ( 79, col0 ) # Datafusion - Expected - 1215 # Datafusion - Expected - 31 # Datafusion - Expected - 1827 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \+ cor0\.col1 AS col1" at position 0 and "cor0\.col0 \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col2 + col1 AS col1, col0 * col1 AS col1 FROM tab0 cor0 +---- +100 +1215 +128 +1827 +31 +97 query I rowsort label-3751 SELECT + CAST ( - MAX ( - - col2 ) AS INTEGER ) AS col2 FROM tab0 AS cor0 @@ -22561,8 +22875,15 @@ SELECT ALL - 60 + - COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Expected - 3560 # Datafusion - Expected - -155 # Datafusion - Expected - 3560 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \- Int64\(75\) AS col1" at position 0 and "CAST\(Int64\(89\) AS Int32\) \* Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 80 - 75 AS col1, CAST ( + 89 AS INTEGER ) * 40 AS col1 FROM tab0 AS cor0 +---- +-155 +-155 +-155 +3560 +3560 +3560 query I rowsort SELECT DISTINCT - - col1 * + col1 + + col0 + + 68 FROM tab1 AS cor0 @@ -22608,8 +22929,15 @@ SELECT ALL 7 * + col0 * + - 56 AS col2 FROM tab2 # Datafusion - Expected - 27 # Datafusion - Expected - -30 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \- Int64\(30\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 - + 30 AS col1, 27 AS col1 FROM tab2 +---- +-30 +-30 +-30 +27 +27 +27 query I rowsort SELECT + col1 AS col2 FROM tab0 WHERE NOT ( + col1 IS NULL ) @@ -23167,8 +23495,15 @@ SELECT ALL + col0 AS col1, + col2 AS col2 FROM tab2 # Datafusion - Expected - -85 # Datafusion - Expected - -2 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 2 AS col2, - col0 AS col2 FROM tab1 AS cor0 +---- +-2 +-2 +-2 +-51 +-85 +-91 query I rowsort label-3856 SELECT SUM ( 59 ) col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL @@ -23417,8 +23752,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT col0 * + 70 IS NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "CAST\(cor0\.col0 AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 * - - col1 AS col1, CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0 +---- +1215 +15 +1827 +87 +97 +97 query I rowsort label-3899 SELECT col0 / + col2 + + + col2 * 99 AS col1 FROM tab2 cor0 @@ -24150,8 +24492,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) * - MAX ( - - col2 ) AS col1, SUM ( - col1 ) AS col1 FROM tab2 +---- +-195 +174 query I rowsort SELECT + 86 + 38 AS col2 FROM tab1 @@ -24237,8 +24582,15 @@ SELECT ALL SUM ( ALL - ( col1 ) ) AS col1 FROM tab0 # Datafusion - Expected - -10 # Datafusion - Expected - 97 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "\(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col2, - col2 AS col2 FROM tab0 +---- +-10 +-47 +-99 +15 +87 +97 query I rowsort SELECT 95 * + - 86 FROM tab1 @@ -24254,8 +24606,15 @@ SELECT 95 * + - 86 FROM tab1 # Datafusion - Expected - 38 # Datafusion - Expected - -97 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col0 AS col2, + 38 AS col2 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +38 +38 +38 query I rowsort SELECT ALL - ( - - 63 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 @@ -25071,8 +25430,15 @@ SELECT + - col0 + 19 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 81 # Datafusion - Expected - 99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, + col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL +---- +1 +10 +21 +47 +81 +99 query I rowsort SELECT ALL - 23 * - col1 AS col2 FROM tab1 @@ -26438,8 +26804,15 @@ SELECT - 0 / + col2 FROM tab0 AS cor0 # Datafusion - Expected - -5100 # Datafusion - Expected - 77 # Datafusion - Expected - -4992 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 \* \(\- cor0\.col0\) \- cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, col1 * - col0 - + + col0 AS col2 FROM tab2 AS cor0 +---- +-2392 +-4992 +-5100 +51 +67 +77 query I rowsort label-4397 SELECT + - 46 * - - CAST ( NULL AS INTEGER ) + + + col2 AS col0 FROM tab1 AS cor0 @@ -26688,8 +27061,9 @@ SELECT + col2 * - ( + + col2 ) * - col2 FROM tab0 AS cor0 970299 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 1 and "\(\- cor0\.col0\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 28 * col0 + col1 + + col2 / - col0, - col0, + - col0 FROM tab0 cor0 WHERE NOT NULL BETWEEN col1 * + col0 AND - col1 + - col0 * + col0 * + - 14 +---- query I rowsort label-4439 SELECT + + col2 / 28 * - 18 AS col1 FROM tab2 AS cor0 @@ -26922,8 +27296,15 @@ SELECT ALL - MAX ( - 88 ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 63 # Datafusion - Expected - 5 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- tab1\.col1\) AS Int32\)\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( + - col1 AS INTEGER ) AS col2, 63 AS col2 FROM tab1 +---- +14 +47 +5 +63 +63 +63 query I rowsort label-4476 SELECT DISTINCT - col1 / - + 29 FROM tab1 @@ -27343,8 +27724,15 @@ SELECT + ( - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL # Datafusion - Expected - 58 # Datafusion - Expected - 81 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 col0, 58 AS col0 FROM tab0 AS cor0 +---- +1 +21 +58 +58 +58 +81 query I rowsort SELECT ALL col2 + - col1 * + 26 FROM tab1 @@ -27863,8 +28251,11 @@ SELECT - SUM ( DISTINCT - 16 ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -3960 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col0" at position 0 and "Int64\(66\) \* min\(\(\- Int64\(60\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 AS col0, 66 * + MIN ( - + 60 ) col0 FROM tab2 +---- +-3960 +35 query I rowsort SELECT ( - col0 ) AS col0 FROM tab2 WHERE NOT - + ( - + col1 ) - - - 3 IS NOT NULL @@ -27880,8 +28271,11 @@ SELECT col1 * + - ( - 54 ) AS col2 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 col1" at position 0 and "Int64\(\-35\) / \(\- Int64\(\-39\)\) \* sum\(DISTINCT \(\- tab1\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 9 AS col1, + ( - 35 ) / - - 39 * SUM ( DISTINCT + - col1 ) AS col1 FROM tab1 +---- +0 +9 query I rowsort label-4642 SELECT + COUNT ( * ) FROM tab0 WHERE NOT - ( - 9 ) * - - col1 + - - col1 <= NULL @@ -27965,8 +28359,12 @@ NULL # Datafusion - Expected - -88 # Datafusion - Expected - 5916 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(68\) AS col1" at position 1 and "min\(\(\- cor0\.col1\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - 88 col0, + 87 * + 68 col1, + MIN ( - col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL ) +---- +-88 +5916 +NULL query I rowsort label-4655 SELECT ALL - SUM ( + - col0 ) FROM tab0 @@ -28355,8 +28753,15 @@ SELECT - 45 * + 24 + - 47 AS col2 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 42 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col1" at position 0 and "tab1\.col1 \+ Int64\(\-38\) \+ tab1\.col2 \* CAST\(NULL AS Int32\) \+ tab1\.col2 / \(\- \(\- tab1\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 42 AS col1, + col1 + - 38 + + + col2 * + CAST ( NULL AS INTEGER ) + col2 / - - col1 col1 FROM tab1 +---- +42 +42 +42 +NULL +NULL +NULL query I rowsort SELECT + col2 - + 57 AS col1 FROM tab2 WHERE NOT + 35 = NULL @@ -28397,8 +28802,15 @@ SELECT + 66 / col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - -58 # Datafusion - Expected - -77 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, - col2 col0 FROM tab2 AS cor0 +---- +-23 +-40 +-51 +-58 +-67 +-77 query I rowsort SELECT 92 * col1 * col0 col2 FROM tab1 @@ -28520,8 +28932,15 @@ SELECT + - MIN ( - 81 ) * + 54 FROM tab0 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - -97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0, - col0 FROM tab0 AS cor0 +---- +-15 +-15 +-87 +-87 +-97 +-97 query I rowsort label-4747 SELECT + + COUNT ( * ) * - + 93 FROM tab1 AS cor0 WHERE ( NULL ) >= + 30 * - + col2 - - CAST ( - + col1 AS INTEGER ) @@ -28820,8 +29239,15 @@ SELECT DISTINCT - - 98 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, col1 AS col0 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT ALL + 20 + - + col2 AS col2 FROM tab0 @@ -28857,8 +29283,15 @@ SELECT COUNT ( * ) / - SUM ( 41 ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -54 # Datafusion - Expected - -21888 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \* Int64\(\-96\) \* Int64\(57\) AS col2" at position 0 and "cor0\.col1 \+ \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 4 * - 96 * + 57 col2, col1 + - col2 col2 FROM tab1 AS cor0 +---- +-21 +-21888 +-21888 +-21888 +-54 +-82 query I rowsort label-4799 SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) * 67 FROM tab0 @@ -29289,8 +29722,15 @@ SELECT ALL + - col1 AS col1, + col2 FROM tab2 AS cor0 # Datafusion - Expected - -3712 # Datafusion - Expected - 54 # Datafusion - Expected - -4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "Int64\(57\) \* \(\- cor0\.col0\) \- cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 54 AS col1, + 57 * - col0 - + col0 AS col1 FROM tab2 AS cor0 +---- +-2668 +-3712 +-4350 +54 +54 +54 query III rowsort SELECT * FROM tab2 WHERE NOT + + 41 > NULL @@ -30790,8 +31230,15 @@ SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 / + - col0 * col # Datafusion - Expected - 75 # Datafusion - Expected - 77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, col0 AS col2 FROM tab2 +---- +46 +51 +64 +67 +75 +77 query I rowsort label-5120 SELECT DISTINCT + col2 / - 46 AS col1 FROM tab2 @@ -31363,8 +31810,15 @@ SELECT - + COUNT ( - - ( ( col1 ) ) ) col1 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - -84 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ Int64\(\-85\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 + - 85 AS col0, col1 AS col0 FROM tab0 +---- +-4 +-64 +-84 +1 +21 +81 query I rowsort label-5215 SELECT MIN ( + - col2 ) AS col0 FROM tab2 @@ -32421,8 +32875,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - 17 ) col2, - COUNT ( * ) AS col2 FROM tab1 cor0 +---- +-17 +-3 query II rowsort SELECT ALL - col2 col2, 9 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL @@ -32631,8 +33088,15 @@ SELECT col2, col1 + - + col1 / + + col1 col2, + - 9 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -8 # Datafusion - Expected - 5 # Datafusion - Expected - 34 -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\) \+ Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 col0, - col1 + + 39 AS col0 FROM tab1 AS cor0 +---- +-8 +14 +25 +34 +47 +5 query II rowsort label-5421 SELECT + 29, COUNT ( * ) AS col2 FROM tab2 AS cor0 @@ -32784,8 +33248,15 @@ SELECT + 91 * - SUM ( ALL + col0 ) * 44 AS col2 FROM tab0 # Datafusion - Expected - -1650 # Datafusion - Expected - -77 # Datafusion - Expected - -1408 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "Int64\(\-22\) \* tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - + col1 ) AS col1, - 22 * + col0 col1 FROM tab2 +---- +-1012 +-1408 +-1650 +-51 +-67 +-77 query I rowsort label-5445 SELECT - COUNT ( * ) * + + COUNT ( * ) FROM tab2 @@ -32900,8 +33371,9 @@ SELECT DISTINCT - ( + ( - col0 ) ) FROM tab0 97 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \+ tab0\.col0 AS col2" at position 0 and "tab0\.col0 \- \(\- tab0\.col2\) \* tab0\.col0 \+ \(\- tab0\.col2\) / tab0\.col2 \* \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 46 + + col0 AS col2, col0 - + - col2 * col0 + - col2 / + + col2 * + - col1 AS col2 FROM tab0 WHERE NOT NULL > NULL +---- query III rowsort label-5464 SELECT * FROM tab0 WHERE - col1 IN ( - + CAST ( NULL AS INTEGER ), - col1 * - + col1 ) @@ -32959,8 +33431,15 @@ SELECT + 62 + col1 + col1 FROM tab2 # Datafusion - Expected - -85 # Datafusion - Expected - 91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "\(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, ( - col0 ) AS col1 FROM tab1 +---- +-51 +-85 +-91 +51 +85 +91 query II rowsort label-5472 SELECT ALL - - 68 AS col2, COUNT ( * ) FROM tab2 cor0 @@ -33578,8 +34057,15 @@ SELECT ALL + - col2 FROM tab0 WHERE + col0 / + 68 IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "\(\- CAST\(NULL AS Float64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT col0 AS col1, - CAST ( NULL AS FLOAT8 ) AS col1 FROM tab1 +---- +51 +85 +91 +NULL +NULL +NULL query II rowsort SELECT DISTINCT col0, + 3 AS col1 FROM tab1 @@ -35162,8 +35648,15 @@ SELECT DISTINCT - SUM ( DISTINCT - 57 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab # Datafusion - Expected - -363312 # Datafusion - Expected - -99 # Datafusion - Expected - -451632 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* \(\- tab0\.col2\) \* tab0\.col1 AS col2" at position 0 and "\(\- tab0\.col0\) \* tab0\.col0 \* Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 * - col2 * + col1 AS col2, - col0 * + col0 * + + 48 AS col2 FROM tab0 +---- +-10800 +-308367 +-363312 +-4410 +-451632 +-99 query I rowsort SELECT DISTINCT col1 + + - col0 + col1 AS col2 FROM tab2 @@ -35477,8 +35970,15 @@ SELECT DISTINCT + col2 AS col0, + 26 * - - 10 + - col2 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 +---- +1 +21 +81 +NULL +NULL +NULL query I rowsort label-5887 SELECT - 41 * + - COUNT ( * ) AS col1 FROM tab0 AS cor0 @@ -35675,8 +36175,15 @@ SELECT DISTINCT + col1 AS col0, col1 FROM tab1 # Datafusion - Expected - 84 # Datafusion - Expected - 4350 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* tab2\.col0 AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * col0 AS col2, + 84 AS col2 FROM tab2 +---- +1058 +2560 +4350 +84 +84 +84 query II rowsort SELECT DISTINCT - col0, 39 AS col1 FROM tab0 AS cor0 @@ -36554,8 +37061,15 @@ SELECT * FROM tab1 WHERE - 16 IS NOT NULL # Datafusion - Expected - -67 # 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 "\(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 AS col1, - col1 AS col1 FROM tab2 +---- +-51 +-67 +-77 +37 +37 +37 query I rowsort label-6076 SELECT ALL - 20 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 @@ -37085,8 +37599,11 @@ SELECT - col2 * + + col1 + + - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = N # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(cor0\.col0\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( col0 ) AS col0, 46 AS col0 FROM tab1 AS cor0 +---- +46 +51 query III rowsort SELECT * FROM tab2 cor0 WHERE NOT ( NOT NULL <= - col0 / col1 ) @@ -37332,8 +37849,15 @@ SELECT col2 * - - col1 * - ( CAST ( 67 AS INTEGER ) ) FROM tab0 # Datafusion - Expected - -85 # Datafusion - Expected - -91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0, - col0 FROM tab1 AS cor0 +---- +-51 +-51 +-85 +-85 +-91 +-91 query I rowsort label-6203 SELECT + MAX ( - 12 ) AS col1 FROM tab0 AS cor0 @@ -37578,8 +38102,11 @@ SELECT 15 * - col0 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(tab0\.col2\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( + col2 ) AS col0, + COUNT ( * ) AS col0 FROM tab0 +---- +-10 +3 query III rowsort SELECT ALL * FROM tab0 WHERE NOT 88 <> NULL @@ -38148,8 +38675,10 @@ SELECT ALL + col2 * + ( col2 ) + col1 + - + 59 + ( - ( - col2 ) ) + + 53 + - ( c # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 4db7e40f31038b56f4bd7f1a45a18073 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 1 and "\(\- cor0\.col2\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL col1 AS col0, col1 AS col2, - col2 AS col2 FROM tab0 AS cor0 +---- +9 values hashing to d5efad01e83e3ae70ad0f5be27b07fd5 query II rowsort SELECT DISTINCT col2, + 39 * + col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( + col0 ) = ( NULL ) @@ -38447,8 +38976,15 @@ SELECT DISTINCT + 23 + 81 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + col1 ) AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-6382 SELECT - 4 / - 41 + - - col0 - col2 FROM tab0 AS cor0 @@ -39092,8 +39628,11 @@ SELECT * FROM tab2 cor0 WHERE NOT col1 IN ( - col0 * + + ( col1 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL +---- +3 +NULL query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 ) >= - col0 * + + col0 @@ -39709,8 +40248,11 @@ SELECT DISTINCT - - col0 / + col1 FROM tab2 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 79488 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* Int64\(48\) \* Int64\(92\) AS col2" at position 0 and "Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 18 * + 48 * + 92 AS col2, + ( + - 79 ) col2 FROM tab1 +---- +-79 +79488 query II rowsort label-6599 SELECT ALL 48, - col2 FROM tab0 AS cor0 WHERE NOT - 72 * col1 * - + CAST ( - - col1 AS INTEGER ) * - col2 + - + col0 IS NOT NULL @@ -40189,8 +40731,15 @@ SELECT ALL * FROM tab2 WHERE NOT - 99 BETWEEN col0 AND 14 * + 27 # Datafusion - Expected - 133 # Datafusion - Expected - 52 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col1" at position 0 and "tab2\.col0 \+ tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 52 AS col1, + ( col0 ) + + col2 AS col1 FROM tab2 +---- +104 +133 +52 +52 +52 +69 query I rowsort label-6679 SELECT DISTINCT + ( - SUM ( ALL - col2 ) ) * 54 * 66 FROM tab1 @@ -40487,8 +41036,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 97 col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-3 +97 query I rowsort label-6727 SELECT - MIN ( + col1 ) FROM tab0 AS cor0 WHERE NOT col1 > col1 @@ -41666,8 +42218,11 @@ SELECT + + col0 FROM tab0 AS cor0 WHERE NOT 11 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "cor0\.col1 \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 23 AS col1, + col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 +---- +23 +NULL query II rowsort SELECT + col1, - col1 + col2 FROM tab2 AS cor0 @@ -42887,8 +43442,11 @@ SELECT col2, + col1 / + 84 FROM tab2 # 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 col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 94 AS col1, 3 AS col1 FROM tab0 +---- +-94 +3 query I rowsort label-7139 SELECT DISTINCT - + MAX ( ALL col0 ) FROM tab0 AS cor0 @@ -44388,8 +44946,15 @@ SELECT col1 * col0 - + col1 FROM tab1 WHERE NOT ( NULL ) IS NULL # Datafusion - Expected - 81 # Datafusion - Expected - 99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, col1 AS col0 FROM tab0 +---- +1 +10 +21 +47 +81 +99 query I rowsort label-7388 SELECT - + 75 / 58 + - 19 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 @@ -44665,8 +45230,15 @@ SELECT - ( + col0 ), CAST ( + 25 AS INTEGER ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col2, col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT ALL col0 / col2 + col1 AS col1 FROM tab2 WHERE NOT + 36 * col0 > - 68 * - col1 / col0 + - col1 @@ -45440,8 +46012,15 @@ SELECT ALL * FROM tab1 WHERE + 99 IS NOT NULL # Datafusion - Expected - 68 # Datafusion - Expected - -97 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ Int64\(\-46\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 + + - 46 AS col0, col2 AS col0 FROM tab1 AS cor0 +---- +-131 +-137 +-97 +59 +68 +96 query I rowsort label-7556 SELECT CAST ( NULL AS INTEGER ) * - col1 * + col1 AS col0 FROM tab1 AS cor0 WHERE NULL <= ( NULL ) @@ -46168,8 +46747,11 @@ SELECT ALL - - col2 - + - col2 AS col0 FROM tab1 WHERE NULL > NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 AS col2, COUNT ( * ) AS col2 FROM tab0 +---- +3 +46 query I rowsort label-7672 SELECT CAST ( 62 AS INTEGER ) AS col2 FROM tab0 @@ -46728,8 +47310,9 @@ SELECT DISTINCT - SUM ( ALL - - 71 ) FROM tab2 -213 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* tab1\.col2 AS col1" at position 0 and "Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 * + col2 AS col1, 61 AS col1 FROM tab1 WHERE NOT col0 * - 25 = NULL +---- query I rowsort label-7766 SELECT DISTINCT + MIN ( ALL - + col0 ) FROM tab0 @@ -46856,8 +47439,15 @@ SELECT + 65 + - - 26 FROM tab2 # Datafusion - Expected - -45 # Datafusion - Expected - 90 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ tab1\.col0 AS col0" at position 0 and "tab1\.col0 \- tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( col1 ) + + col0 AS col0, col0 - + col2 AS col0 FROM tab1 +---- +-45 +138 +23 +26 +65 +90 query III rowsort SELECT * FROM tab1 WHERE + 46 <> NULL @@ -47324,8 +47914,11 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 75 * - 52 ) BETWEEN + col2 AND + c # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +3 +3 query I rowsort SELECT - col0 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL ) @@ -47622,8 +48215,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ), ( + COUNT ( * ) ) FROM tab1 AS cor0 +---- +3 +3 query I rowsort label-7919 SELECT ALL COUNT ( * ) + 57 * - COUNT ( * ) col2 FROM tab2 cor0 WHERE NOT ( + 15 / ( + - col1 ) / - col2 * col2 ) NOT BETWEEN ( 93 ) AND + col1 @@ -47817,8 +48413,11 @@ SELECT DISTINCT 19 * - - col1 col0, + col0 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-52\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MIN ( ALL + - 52 ) AS col0, COUNT ( * ) AS col0 FROM tab2 +---- +-52 +3 query I rowsort label-7952 SELECT - COUNT ( * ) + + ( + 82 ) FROM tab1 @@ -48005,8 +48604,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, col1 AS col2 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query II rowsort SELECT ALL - col1, col2 AS col1 FROM tab0 WHERE NULL = + col1 @@ -48650,8 +49256,12 @@ SELECT col2 / - + 29 + - col2 AS col0 FROM tab2 # Datafusion - Expected - 3 # Datafusion - Expected - -891 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-67\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + COUNT ( * ) AS col2, 11 * SUM ( DISTINCT - 81 ) col0, + - 67 AS col2 FROM tab1 +---- +-67 +-891 +3 query I rowsort SELECT + col0 + - + col1 AS col0 FROM tab2 @@ -48930,8 +49540,15 @@ SELECT + 37 * 85 FROM tab1 AS cor0 # Datafusion - Expected - -4096 # Datafusion - Expected - -57 # Datafusion - Expected - -5625 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col0" at position 0 and "cor0\.col0 \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 57 AS col0, col0 * - ( + col0 ) AS col0 FROM tab2 AS cor0 +---- +-2116 +-4096 +-5625 +-57 +-57 +-57 query I rowsort SELECT DISTINCT - 35 * - ( + ( - col2 ) ) + + col2 AS col2 FROM tab2 @@ -49194,8 +49811,15 @@ NULL # Datafusion - Expected - -68 # Datafusion - Expected - -2262 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(58\) AS Int32\)\) \* Int64\(39\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( + 58 AS INTEGER ) * + 39 AS col1, - col2 AS col1 FROM tab1 cor0 +---- +-2262 +-2262 +-2262 +-59 +-68 +-96 query I rowsort SELECT + col1 + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( + col1 + + - col0 IS NOT NULL ) @@ -50549,8 +51173,15 @@ SELECT ALL col1 * + 88 col0 FROM tab0 # Datafusion - Expected - -82 # Datafusion - Expected - 5 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "Int64\(3\) \+ Int64\(\-85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, 3 + - 85 col2 FROM tab1 +---- +-82 +-82 +-82 +14 +47 +5 query I rowsort label-8401 SELECT 52 * - COUNT ( ALL - col2 ) FROM tab0 @@ -50576,8 +51207,15 @@ SELECT * FROM tab1 WHERE NOT ( + - col0 / + 44 ) IS NULL # Datafusion - Expected - -77 # Datafusion - Expected - -75 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "\(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, - col1 AS col2 FROM tab2 +---- +-46 +-51 +-64 +-67 +-75 +-77 query I rowsort SELECT ALL - 57 + + 92 FROM tab2 WHERE - + col2 * + col0 = NULL @@ -50856,8 +51494,11 @@ SELECT DISTINCT 17 * - 29, col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) \+ Int64\(55\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 58 + 55 col1, COUNT ( * ) col1 FROM tab2 cor0 +---- +-3 +3 query I rowsort label-8451 SELECT ALL - + CAST ( NULL AS INTEGER ) + - col1 FROM tab0 AS cor0 @@ -50964,8 +51605,15 @@ SELECT + COUNT ( * ), 78 col0 FROM tab0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col0, + col1 AS col0 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-8469 SELECT + col2 / + + 32 AS col0 FROM tab1 @@ -51230,8 +51878,10 @@ SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NULL IS NULL OR NULL < ( NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 7815ff3342e4c337b960fd493944fbeb -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col0 \* tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col1 AS col2, ( + + col0 ) * + col1 AS col2, 75 col2 FROM tab0 +---- +9 values hashing to 3fb90995976148dc91d627f178ccd7ab query III rowsort SELECT ALL * FROM tab2 WHERE NOT ( NOT - 23 IS NOT NULL ) @@ -51560,8 +52210,15 @@ SELECT DISTINCT - ( - COUNT ( * ) ) AS col0 FROM tab0 WHERE NOT - + 62 <> + - ( # Datafusion - Expected - -81 # Datafusion - Expected - 99 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, - col1 AS col1 FROM tab0 +---- +-1 +-21 +-81 +10 +47 +99 query I rowsort label-8567 SELECT DISTINCT - col0 + col0 col2 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL @@ -51858,8 +52515,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 cor1 +---- +9 +9 query I rowsort label-8619 SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) FROM tab0 @@ -53067,8 +53727,15 @@ SELECT DISTINCT + col2 AS col1, + 46 * + + col0 AS col0 FROM tab1 # Datafusion - Expected - 90 # Datafusion - Expected - 99 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* tab0\.col2 AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 * + col2 AS col2, 90 AS col2 FROM tab0 +---- +210 +3807 +90 +90 +90 +99 query I rowsort SELECT ALL col0 + col1 * + col0 AS col0 FROM tab2 @@ -53149,8 +53816,15 @@ SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE 83 * - col0 * + col2 * - 40 + - 19 # Datafusion - Expected - 28 # Datafusion - Expected - 5025 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \* cor0\.col1 AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col0 * + + col1 AS col1, 28 AS col1 FROM tab2 AS cor0 +---- +2346 +28 +28 +28 +4928 +5025 query I rowsort SELECT DISTINCT 28 - - 96 + - 15 AS col2 FROM tab0 @@ -53439,8 +54113,9 @@ SELECT ALL - 92 - - 28 AS col1 FROM tab0 AS cor0 -64 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2, + col2 FROM tab1 AS cor0 WHERE col1 * - col1 + + col0 >= NULL +---- query I rowsort SELECT - ( + - col2 ) * - - col0 * + 33 FROM tab0 @@ -53572,8 +54247,11 @@ SELECT DISTINCT - SUM ( DISTINCT - 65 ) + + COUNT ( * ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) +---- +9 +9 query I rowsort SELECT 34 AS col2 FROM tab0 cor0 @@ -53691,8 +54369,15 @@ SELECT DISTINCT col1, - col2 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 10 # Datafusion - Expected - -4610410 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col0\) AS Int32\) \* Int64\(7\) \* cor0\.col0 \* Int64\(70\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( + - col0 AS INTEGER ) * + 7 * col0 * 70 AS col0, + ( col2 ) AS col0 FROM tab0 AS cor0 +---- +-110250 +-3708810 +-4610410 +10 +47 +99 query I rowsort SELECT + 47 * - col0 FROM tab0 AS cor0 @@ -54946,8 +55631,11 @@ SELECT DISTINCT + - 34 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, + 34 AS col1 FROM tab1 AS cor0 +---- +3 +34 query I rowsort label-9129 SELECT DISTINCT - COUNT ( - 74 ) col2 FROM tab2 AS cor0 @@ -56211,8 +56899,15 @@ SELECT ALL - 25 + - 18 FROM tab0 # Datafusion - Expected - 77 # Datafusion - Expected - 893 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \* Int64\(\-19\) AS col1" at position 0 and "tab0\.col0 \- tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 * + - 19 AS col1, + col0 - col2 col1 FROM tab0 +---- +-2 +-32 +1881 +190 +77 +893 query I rowsort label-9345 SELECT + MIN ( DISTINCT + + col2 ) AS col2 FROM tab0 @@ -56402,8 +57097,11 @@ SELECT ( - - col0 ) + - + col2 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 +---- +3 +NULL query III rowsort SELECT * FROM tab2 WHERE + - 36 + + col1 IS NULL @@ -56738,8 +57436,11 @@ SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL > col2 * col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 22 AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +22 +3 query I rowsort SELECT DISTINCT - col0 * + col0 + - col0 AS col0 FROM tab0 AS cor0 @@ -56950,8 +57651,15 @@ SELECT - - col0 + + col1 AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS FLOA # Datafusion - Expected - 64 # Datafusion - Expected - -2209 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) \* Int64\(31\) \+ cor0\.col2 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 72 * 31 + col2 AS col1, + col0 AS col1 FROM tab2 cor0 +---- +-2174 +-2192 +-2209 +46 +64 +75 query I rowsort label-9468 SELECT MAX ( ALL 58 ) - - - COUNT ( + + col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL = 30 + - col2 @@ -57085,8 +57793,15 @@ SELECT DISTINCT + COUNT ( DISTINCT - + col0 ) FROM tab1 # Datafusion - Expected - 10080 # Datafusion - Expected - 97 # Datafusion - Expected - 4752 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col1 \* Int64\(48\) \* \(\- CAST\(\(\- tab0\.col2\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col2, + col1 * + 48 * + - CAST ( - + col2 AS INTEGER ) col2 FROM tab0 +---- +10080 +15 +182736 +4752 +87 +97 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT - + 45 NOT BETWEEN NULL AND col1 @@ -58757,8 +59472,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 AS col1, COUNT ( * ) AS col1 FROM tab1 +---- +3 +33 query I rowsort SELECT DISTINCT + col1 + + col1 FROM tab1 cor0 WHERE NULL NOT BETWEEN - 48 AND + + 12 * - 0 + + col2 @@ -58924,8 +59642,15 @@ SELECT DISTINCT + SUM ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 51 # Datafusion - Expected - 94 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ \(\- tab1\.col2\) \- \(\- tab1\.col1\) \+ tab1\.col1 AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 + - col2 - - col1 + col1 AS col1, col0 AS col1 FROM tab1 +---- +10 +28 +51 +85 +91 +94 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE col0 * - - 18 >= + col1 @@ -58988,8 +59713,15 @@ NULL # Datafusion - Expected - 21 # Datafusion - Expected - 72 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ \(\- Int64\(\-25\)\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + col2 ) + - - 25 AS col0, + col1 AS col0 FROM tab0 +---- +1 +124 +21 +35 +72 +81 query III rowsort SELECT ALL * FROM tab1 WHERE NULL <= 76 @@ -59272,8 +60004,15 @@ SELECT DISTINCT + COUNT ( * ) * - - 78 * + 31 AS col0 FROM tab2 cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, + ( col2 ) FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-9856 SELECT ALL + col1 / col2 / + + col0 AS col0 FROM tab0 @@ -59986,8 +60725,15 @@ SELECT * FROM tab1 AS cor0 WHERE + 77 IS NULL # Datafusion - Expected - 4132 # Datafusion - Expected - 64 # Datafusion - Expected - 5661 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col2" at position 0 and "\(\- cor0\.col2\) / \(\- cor0\.col1\) \* \(\- cor0\.col2\) \+ cor0\.col0 \* cor0\.col0 \+ Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 64 AS col2, - col2 / - col1 * + - col2 + col0 * + + col0 + + 36 AS col2 FROM tab2 AS cor0 +---- +2152 +4132 +5661 +64 +64 +64 query I rowsort SELECT + 96 * 37 FROM tab2 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_76.slt b/data/sqlite/random/aggregates/slt_good_76.slt index 7246856..e4ba05d 100644 --- a/data/sqlite/random/aggregates/slt_good_76.slt +++ b/data/sqlite/random/aggregates/slt_good_76.slt @@ -351,8 +351,11 @@ SELECT - ( 5 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(3\) \* count\(Int64\(1\)\) AS count\(\*\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 3 * + COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-3 +3 query II rowsort label-52 SELECT + 80 / + col0 col2, col2 * - - 88 + - col2 / - col1 AS col0 FROM tab1 @@ -1756,8 +1759,15 @@ SELECT ALL col0 FROM tab1 AS cor0 WHERE - col2 + - + col1 + + col2 * - + CAST ( # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 +---- +NULL +NULL +NULL +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT col0 * col1 IS NULL @@ -2302,8 +2312,15 @@ SELECT DISTINCT col1 / + - 79, - col1 / col0 AS col2 FROM tab1 # Datafusion - Expected - 0 # Datafusion - Expected - 88 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ tab1\.col0 AS col2" at position 0 and "\(\- tab1\.col2\) / tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 37 + + col0 AS col2, + ( - ( + col2 ) ) / + col0 AS col2 FROM tab1 +---- +-1 +0 +0 +122 +128 +88 query III rowsort SELECT * FROM tab2 WHERE - 51 * + + col0 IS NOT NULL @@ -2365,8 +2382,15 @@ SELECT ALL col2 AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL # Datafusion - Expected - 85 # Datafusion - Expected - 77 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col0, + 85 col0 FROM tab2 AS cor0 +---- +51 +67 +77 +85 +85 +85 query II rowsort SELECT ALL + col2 * - col2 AS col1, col2 / + + ( col2 ) FROM tab1 cor0 WHERE NULL NOT BETWEEN - col1 AND NULL @@ -2736,8 +2760,15 @@ SELECT ALL - 5 AS col0 FROM tab0 WHERE NOT - 51 IS NULL # Datafusion - Expected - 4096 # Datafusion - Expected - 101 # Datafusion - Expected - 5625 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \+ Int64\(36\) AS col1" at position 0 and "tab2\.col0 \* tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + 65 ) + + 36 AS col1, + col0 * + col0 AS col1 FROM tab2 +---- +101 +101 +101 +2116 +4096 +5625 query I rowsort SELECT DISTINCT + col1 * + - col2 + col1 AS col1 FROM tab2 @@ -2900,8 +2931,15 @@ SELECT DISTINCT + COUNT ( * ) + - ( + - 99 ) FROM tab2 cor0 # Datafusion - Expected - 118 # Datafusion - Expected - 91 # Datafusion - Expected - 136 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, + col2 + + col2 AS col1 FROM tab1 AS cor0 +---- +118 +136 +192 +51 +85 +91 query I rowsort label-477 SELECT - - COUNT ( DISTINCT col2 ) AS col1 FROM tab1 cor0 @@ -3612,8 +3650,15 @@ SELECT - col0 * - 86 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "tab0\.col0 \* tab0\.col1 \* CAST\(NULL AS Float64\) \+ tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT col1 AS col0, col0 * + col1 * CAST ( NULL AS FLOAT8 ) + + col1 AS col0 FROM tab0 +---- +1 +21 +81 +NULL +NULL +NULL query II rowsort SELECT 4 AS col1, + col2 FROM tab1 @@ -4272,8 +4317,11 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * + 43 / - col1 BETWEEN NULL AND # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 19 col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +-19 +3 query I rowsort label-706 SELECT ALL 13 - 76 / - 29 + + SUM ( + 25 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 @@ -4453,8 +4501,15 @@ SELECT ALL * FROM tab2 cor0 WHERE ( NOT ( NULL ) IS NOT NULL ) # Datafusion - Expected - 40 # Datafusion - Expected - 4 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4 AS col1, col2 AS col1 FROM tab2 +---- +23 +4 +4 +4 +40 +58 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE 3 IS NOT NULL @@ -5653,8 +5708,15 @@ SELECT - COUNT ( - - 28 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 AS col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT DISTINCT - + ( 36 ) AS col1 FROM tab2 AS cor0 @@ -7259,8 +7321,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-3 +-3 query I rowsort label-1195 SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 col2 FROM tab1 @@ -7506,8 +7571,15 @@ SELECT + col0 * + - col0 * col0 - - col2 AS col1 FROM tab2 # Datafusion - Expected - 3 # Datafusion - Expected - -70 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) \+ cor0\.col2 AS col1" at position 0 and "cor0\.col1 / Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 93 + + col2 AS col1, col1 / ( 20 ) col1 FROM tab2 AS cor0 +---- +-35 +-53 +-70 +2 +3 +3 query I rowsort label-1234 SELECT DISTINCT col0 + - - 91 / + 18 FROM tab0 AS cor0 @@ -7855,8 +7927,15 @@ NULL # Datafusion - Expected - -40 # Datafusion - Expected - 52 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 52 AS col0, - col2 AS col0 FROM tab2 +---- +-23 +-40 +-58 +52 +52 +52 query I rowsort SELECT DISTINCT 67 + - + col0 FROM tab0 @@ -8291,8 +8370,15 @@ SELECT + - col1 / col0 + - - col1 / - col0 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -99 # Datafusion - Expected - -9 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) / cor0\.col1 \+ \(\- cor0\.col2\) AS col2" at position 0 and "\(\- cor0\.col2\) \* Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 39 / col1 + + - col2 AS col2, - col2 * 1 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-47 +-60 +-9 +-99 query I rowsort SELECT 44 + - col2 FROM tab0 AS cor0 @@ -8506,8 +8592,9 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 ) * - col0 + col2 - - col1 9 values hashing to c4b42765dff94eaaa46040e537fb43b7 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 12 AS col0, col2 AS col0 FROM tab1 AS cor0 WHERE NOT col2 * - 79 NOT BETWEEN NULL AND NULL +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -9074,8 +9161,15 @@ SELECT + + col0, col1 + - CAST ( 63 AS INTEGER ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - -77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 AS col0, + col1 AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +51 +67 +77 query I rowsort SELECT - 47 * + + col2 FROM tab2 AS cor0 @@ -9807,8 +9901,11 @@ SELECT ALL - 73 / + col2 + + + 61 - + col2 col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 97 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 +---- +9 +97 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + col1 IS NOT NULL @@ -9910,8 +10007,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ), ( COUNT ( * ) ) FROM tab1 cor0 CROSS JOIN tab0 cor1 +---- +9 +9 query I rowsort label-1632 SELECT - - COUNT ( * ) + - 92 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL @@ -10003,8 +10103,15 @@ SELECT MAX ( 49 ) FROM tab1 # Datafusion - Expected - 27 # 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 "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 80 AS col2, + ( + 27 ) col2 FROM tab1 +---- +27 +27 +27 +80 +80 +80 query I rowsort label-1648 SELECT DISTINCT - SUM ( DISTINCT - 54 ) FROM tab2 AS cor0 @@ -10284,8 +10391,15 @@ SELECT DISTINCT + col1 + + col1 * 5 - + col0 col2 FROM tab0 # Datafusion - Expected - 4032 # Datafusion - Expected - -4043 # Datafusion - Expected - 5550 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- Int64\(\-71\)\) \* \(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col0 \* \(\- \(\- cor0\.col0\)\) \+ \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 + - - 71 * - + col2 AS col1, col0 * ( - - col0 ) + - col0 col1 FROM tab2 AS cor0 +---- +-1587 +-2776 +-4043 +2070 +4032 +5550 query I rowsort SELECT - col2 + col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL @@ -10959,8 +11073,11 @@ SELECT + col2 AS col0, 93 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 70 AS col2, 51 AS col2 FROM tab1 +---- +51 +70 query I rowsort SELECT ALL col0 * + ( 81 ) FROM tab1 AS cor0 @@ -11606,8 +11723,15 @@ SELECT col1 + + - col0 * - - col0 FROM tab1 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - 75 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, + col1 AS col2 FROM tab2 +---- +46 +51 +64 +67 +75 +77 query I rowsort label-1907 SELECT ALL + 13 * 95 * col2 + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 @@ -11740,8 +11864,15 @@ NULL # Datafusion - Expected - -21 # Datafusion - Expected - 69 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 AS col2, - col1 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +69 +69 +69 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT ( ( NULL ) IS NOT NULL ) ) @@ -12583,8 +12714,15 @@ NULL # Datafusion - Expected - 85 # Datafusion - Expected - 29 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 29 ) col1, col0 AS col1 FROM tab1 AS cor0 +---- +29 +29 +29 +51 +85 +91 query I rowsort SELECT - - col1 * + - 72 * - col2 FROM tab1 AS cor0 @@ -13094,8 +13232,15 @@ SELECT 50 * 9 FROM tab0 # Datafusion - Expected - 30 # Datafusion - Expected - -903 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \* cor0\.col1 AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 43 * + + col1 AS col2, + 30 AS col2 FROM tab0 AS cor0 +---- +-3483 +-43 +-903 +30 +30 +30 query I rowsort label-2164 SELECT ALL SUM ( + + col0 ) AS col0 FROM tab1 cor0 @@ -13825,8 +13970,15 @@ SELECT DISTINCT + 41 / + COUNT ( * ) AS col1 FROM tab2 # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col2 / Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, col2 / + 22 AS col2 FROM tab0 +---- +0 +1 +2 +21 +4 +81 query III rowsort SELECT * FROM tab1 WHERE NOT - col2 / col2 * + col0 - col0 + - col2 * - + col2 * + col1 + col1 IS NOT NULL @@ -14592,8 +14744,15 @@ SELECT ALL + col1 + + 5 - col1 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 +---- +23 +40 +58 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab1 WHERE ( + ( - 45 ) = - 72 * col1 * + ( + 18 ) ) @@ -14602,8 +14761,11 @@ SELECT DISTINCT * FROM tab1 WHERE ( + ( - 45 ) = - 72 * col1 * + ( + 18 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "sum\(DISTINCT tab2\.col0\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) * - + COUNT ( * ) AS col0, + SUM ( DISTINCT + ( + + ( + col0 ) ) ) + - + CAST ( NULL AS INTEGER ) col0 FROM tab2 +---- +-9 +NULL query I rowsort SELECT DISTINCT + col0 + col1 * + col0 * col1 AS col1 FROM tab2 @@ -14692,8 +14854,11 @@ SELECT DISTINCT + col2 AS col1, + 51 + + col2 AS col2 FROM tab0 AS cor0 # 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 "Int64\(57\) / sum\(DISTINCT cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 60 AS col2, 57 / SUM ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0 +---- +-60 +0 query I rowsort SELECT - + 95 FROM tab0 cor0 @@ -14888,8 +15053,15 @@ SELECT ALL - MIN ( DISTINCT - 90 ) FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1, col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-2450 SELECT ALL + COUNT ( * ) * 24 * 12 * 5 FROM tab2 @@ -14979,8 +15151,15 @@ SELECT ALL * FROM tab0 WHERE - + 59 BETWEEN NULL AND NULL # Datafusion - Expected - -21 # Datafusion - Expected - 81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "tab0\.col1 / Int64\(\-97\) \* \(\- tab0\.col1\) \+ Int64\(0\) \- tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, col1 / + - 97 * - col1 + 0 - + col1 AS col0 FROM tab0 +---- +-1 +-21 +-81 +1 +21 +81 query I rowsort label-2466 SELECT ALL COUNT ( ALL - col2 ) AS col2 FROM tab0 @@ -15863,8 +16042,15 @@ SELECT - col2 col1, 71 FROM tab0 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-2615 SELECT DISTINCT - + CAST ( + 68 AS INTEGER ) AS col1 FROM tab2 AS cor0 @@ -17419,8 +17605,15 @@ SELECT DISTINCT + col2 + + 18 FROM tab2 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Expected - -68 # Datafusion - Expected - 54 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 54 AS col2, - col2 AS col2 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +54 +54 +54 query I rowsort SELECT - + 27 FROM tab2 AS cor0 WHERE col0 / + col0 IS NOT NULL @@ -18504,8 +18697,11 @@ SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - 33 + + + col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5452 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(\-94\) AS Int32\)\)\) \* max\(cor0\.col2\) AS col1" at position 0 and "Int64\(\-52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - CAST ( - 94 AS INTEGER ) * MAX ( + col2 ) col1, - 52 AS col1 FROM tab2 cor0 +---- +-52 +-5452 query I rowsort SELECT ALL + - col2 FROM tab1 WHERE NOT - - 7 IS NULL @@ -18708,8 +18904,15 @@ SELECT - 47 col0 FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - -75 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 75 AS col0, + col2 AS col0 FROM tab1 AS cor0 +---- +-75 +-75 +-75 +59 +68 +96 query II rowsort label-3098 SELECT - COUNT ( * ), + 31 AS col2 FROM tab0 cor0 @@ -18896,8 +19099,15 @@ SELECT ALL 39 * + + col0 * - + col0 FROM tab2 # Datafusion - Expected - -10 # Datafusion - Expected - -97 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + - col0 ) col0, - col2 AS col0 FROM tab0 +---- +-10 +-15 +-47 +-87 +-97 +-99 query III rowsort label-3128 SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 * + CAST ( NULL AS INTEGER ) + ( + - 3 ) * - col0 IS NULL @@ -19219,8 +19429,12 @@ NULL # Datafusion - Expected - 9 # Datafusion - Expected - -3 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- Int64\(\-28\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) col0, - COUNT ( * ), - - 28 AS col0 FROM tab2 +---- +-3 +28 +9 query I rowsort SELECT - col2 + col2 FROM tab0 WHERE NOT col2 IS NULL @@ -19283,8 +19497,15 @@ SELECT ALL + - col2 + - col2 AS col2, col2 FROM tab0 AS cor0 # Datafusion - Expected - -21 # Datafusion - Expected - 1 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) / tab0\.col0 AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( 23 ) / col0 AS col1, - col1 AS col1 FROM tab0 +---- +-1 +-21 +-81 +0 +0 +1 query III rowsort SELECT * FROM tab2 WHERE + 16 / col0 IS NOT NULL @@ -19725,8 +19946,15 @@ SELECT - - SUM ( + - 93 ) FROM tab0 AS cor0 # Datafusion - Expected - 13 # Datafusion - Expected - -97 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col0 AS col0, 13 AS col0 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +13 +13 +13 query III rowsort SELECT * FROM tab0 WHERE NOT + col0 <> NULL @@ -20004,8 +20232,11 @@ SELECT ALL + 44 AS col2 FROM tab2, tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) col0, COUNT ( * ) AS col0 FROM tab0 +---- +3 +3 query I rowsort label-3309 SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE - 97 IS NOT NULL @@ -20162,8 +20393,15 @@ SELECT + col2 * + - col0 AS col2 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 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 IR valuesort SELECT + col0 AS col2, CAST ( NULL AS FLOAT8 ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL +---- +15 +87 +97 +NULL +NULL +NULL query I rowsort label-3335 SELECT DISTINCT 15 / + ( + ( + COUNT ( * ) ) ) FROM tab2 @@ -22877,8 +23115,11 @@ SELECT - 7 * + 3 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab0 +---- +3 +3 query I rowsort label-3786 SELECT ( 15 ) * MAX ( ALL - col0 ) + - SUM ( col2 ) * 1 * + ( + SUM ( DISTINCT - 30 ) ) AS col1 FROM tab2 @@ -23380,8 +23621,15 @@ SELECT * FROM tab0 WHERE + - 3 IS NULL # Datafusion - Expected - 19 # Datafusion - Expected - -54 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \+ \(\- tab2\.col0\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 21 + - col0 AS col2, 19 AS col2 FROM tab2 +---- +-25 +-43 +-54 +19 +19 +19 query I rowsort label-3866 SELECT - MIN ( col1 ) * + COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN - col1 - - col0 * + col0 AND + col1 * - 49 @@ -23854,8 +24102,15 @@ NULL # Datafusion - Expected - 85 # Datafusion - Expected - 66 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 66 AS col1, col0 col1 FROM tab1 AS cor0 +---- +51 +66 +66 +66 +85 +91 query I rowsort SELECT + 50 * + col2 + - col2 FROM tab2 AS cor0 WHERE NOT col2 > NULL @@ -26474,8 +26729,15 @@ SELECT DISTINCT - col0 * 4 FROM tab1 cor0 WHERE NOT ( + col1 + col2 * + 18 ) > N # Datafusion - Expected - 21 # Datafusion - Expected - -97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col0 AS col0, col1 AS col0 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +1 +21 +81 query I rowsort label-4394 SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE + col1 > - + col0 * col1 @@ -26945,8 +27207,15 @@ SELECT ALL + ( + MIN ( + 77 ) ) * - CAST ( - 19 AS INTEGER ) FROM tab1 cor0 # Datafusion - Expected - 99 # Datafusion - Expected - -96385 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) / Int64\(2\) \+ cor0\.col1 \+ cor0\.col1 \+ \(\- Int64\(28\)\) \* Int64\(\-42\) \* \(\- Int64\(82\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col2 / + 2 + col1 + + col1 + - + 28 * - 42 * - + 82 AS col1, col2 AS col1 FROM tab0 AS cor0 +---- +-96247 +-96381 +-96385 +10 +47 +99 query I rowsort label-4476 SELECT DISTINCT + COUNT ( * ) * + - COUNT ( * ) col1 FROM tab2 @@ -27287,8 +27556,11 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT + CAST ( col1 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3266 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) / \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(71\) \* min\(DISTINCT \(\- \(\- cor0\.col0\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 57 / - + CAST ( NULL AS INTEGER ) col0, + 71 * + MIN ( DISTINCT - - col0 ) AS col0 FROM tab2 AS cor0 +---- +3266 +NULL query II rowsort label-4530 SELECT - MIN ( + + 75 ), 39 AS col0 FROM tab1 AS cor0 @@ -27683,8 +27955,11 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN col1 AND + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(\-75\)\)\) AS col2" at position 0 and "Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MAX ( - 75 ) AS col2, 8 AS col2 FROM tab0 AS cor0 +---- +75 +8 query I rowsort SELECT + 98 + + - col0 col2 FROM tab0 AS cor0 @@ -27775,8 +28050,15 @@ SELECT ALL + - col0 * - + col1 - - + col2 + + col1 * + 70 FROM tab1 AS cor0 # Datafusion - Expected - 4019 # Datafusion - Expected - 58 # Datafusion - Expected - 5558 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col0 \* cor0\.col0 \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, col0 * + col0 + - + col1 AS col1 FROM tab2 cor0 +---- +2065 +23 +40 +4019 +5558 +58 query I rowsort label-4610 SELECT - MIN ( + + col0 ) AS col0 FROM tab1 AS cor0 WHERE col0 - - col0 < NULL @@ -28327,8 +28609,15 @@ SELECT + 71 * - - col1 AS col0 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, + col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-4700 SELECT + col0 / + 53 - + 39 + + + col2 FROM tab1 AS cor0 @@ -29187,8 +29476,11 @@ SELECT ALL + col1 FROM tab1 WHERE NOT col1 = + 72 * - 70 + - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -639 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- sum\(Int64\(71\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, + ( - SUM ( + 71 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 +---- +-639 +9 query I rowsort SELECT + 72 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 @@ -29745,8 +30037,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( * ) AS col1, 21 AS col1 FROM tab2 cor0 +---- +21 +3 query I rowsort SELECT ALL - col1 * + - ( - + col0 ) AS col0 FROM tab0 @@ -29932,8 +30227,10 @@ SELECT + ( col1 ) FROM tab0 AS cor0 WHERE NULL < NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 278b80043e3ee7231bfe19e950193056 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - col1 AS col1, + col2 col1, + col2 * + col2 AS col2 FROM tab0 AS cor0 +---- +9 values hashing to 5d885d2b55ab6a167fb26d443418c996 query I rowsort label-4965 SELECT ALL - 29 / 60 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 @@ -29979,8 +30276,15 @@ SELECT 3 FROM tab0 WHERE NOT + col2 IS NOT NULL # Datafusion - Expected - 194 # Datafusion - Expected - 76 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "tab0\.col0 \+ tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 76 AS col1, col0 + col0 AS col1 FROM tab0 +---- +174 +194 +30 +76 +76 +76 query I rowsort label-4973 SELECT + SUM ( ALL + col1 ) col0 FROM tab1 @@ -30252,8 +30556,15 @@ NULL # Datafusion - Expected - 2176 # Datafusion - Expected - 714 # Datafusion - Expected - 3072 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* tab1\.col0 AS col1" at position 0 and "Int64\(32\) \* tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + col0 col1, 32 * + col2 AS col1 FROM tab1 +---- +1888 +2176 +3072 +425 +4277 +714 query I rowsort SELECT col1 + + col2 FROM tab0 WHERE NOT NULL IN ( - - col2 * - + col0 + col1 ) @@ -30302,8 +30613,11 @@ SELECT * FROM tab2 WHERE - + col0 = - - col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- tab0\.col2\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( ALL - ( col2 ) ) col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 +---- +3 +NULL query I rowsort SELECT DISTINCT + + ( 51 ) FROM tab2 AS cor0 @@ -30778,8 +31092,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -648 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(72\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) * COUNT ( * ) * - + 72 AS col0, - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +-648 +-9 query I rowsort SELECT ALL col2 + + 35 AS col1 FROM tab1 AS cor0 @@ -31206,8 +31523,15 @@ SELECT - + 46 col0 FROM tab1 AS cor0 WHERE - 35 IN ( col1, col2, 72 ) # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col1, + col1 FROM tab0 cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-5172 SELECT col2 + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 @@ -32121,8 +32445,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(58\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 * 92 + - MIN ( ALL - col0 ) AS col1, 37 - + 93 + - ( COUNT ( * ) + 58 ) AS col1 FROM tab0 +---- +-117 +7549 query II rowsort SELECT col0 + - - 4, - 58 AS col1 FROM tab1 @@ -32256,8 +32583,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 33 col1, COUNT ( * ) * - 89 AS col1 FROM tab1 +---- +-267 +33 query III rowsort SELECT ALL * FROM tab0 WHERE NOT + + col1 + - col2 NOT BETWEEN - + col0 + - - 54 AND NULL @@ -32453,8 +32783,15 @@ SELECT 64 AS col1 FROM tab2, tab2 cor0 # Datafusion - Expected - -64 # Datafusion - Expected - 1 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) / \(\- tab2\.col1\) AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 / - col1 AS col1, - col0 col1 FROM tab2 +---- +-46 +-64 +-75 +0 +0 +1 query I rowsort label-5383 SELECT + MAX ( DISTINCT - 59 ) AS col0 FROM tab0 @@ -32471,8 +32808,11 @@ SELECT + 3 * - - 32 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, COUNT ( * ) col2 FROM tab0 WHERE NOT NULL IS NULL +---- +0 +0 query I rowsort SELECT - col0 * col1 * col1 AS col1 FROM tab0 cor0 @@ -32487,8 +32827,9 @@ SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0 NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 22 AS col1, + 34 AS col1 FROM tab0 AS cor0 WHERE NULL <= + 37 +---- query I rowsort label-5389 SELECT - CAST ( + col2 AS INTEGER ) * + + col1 + col0 / + + col1 FROM tab1 AS cor0 @@ -32825,8 +33166,9 @@ SELECT + col2 * + - col1 AS col2 FROM tab1 -3196 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "Int64\(61\) \* Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, 61 * + 48 AS col0 FROM tab1 WHERE NOT + 45 * - 28 = NULL +---- query I rowsort SELECT ALL + ( - 82 ) FROM tab1 @@ -33687,8 +34029,15 @@ SELECT ALL + ( col1 ) / + 53 AS col2 FROM tab1 # Datafusion - Expected - 18 # Datafusion - Expected - 83 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT + 83 col0, 18 AS col0 FROM tab0 AS cor0 +---- +18 +18 +18 +83 +83 +83 query I rowsort SELECT ALL col1 * + - col2 FROM tab1 AS cor0 @@ -34927,8 +35276,15 @@ SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 # Datafusion - Expected - -119 # Datafusion - Expected - -5 # Datafusion - Expected - -110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col2\) \- Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 col1, - col2 - 51 AS col1 FROM tab1 AS cor0 +---- +-110 +-119 +-14 +-147 +-47 +-5 query I rowsort label-5788 SELECT + MAX ( DISTINCT col0 ) AS col1 FROM tab2 cor0 @@ -35375,8 +35731,15 @@ SELECT - + 13 AS col0, - col2 FROM tab0 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, col0 AS col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT DISTINCT - + 5 + + + ( + col0 ) AS col0 FROM tab1 AS cor0 @@ -35860,8 +36223,15 @@ SELECT - ( - COUNT ( * ) ) * COUNT ( * ) + - - 30 AS col2 FROM tab1 # Datafusion - Expected - -67 # Datafusion - Expected - -12 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ \(\- CAST\(Int64\(76\) AS Int32\)\) AS col0" at position 0 and "\(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 64 + - CAST ( 76 AS INTEGER ) AS col0, ( - + col1 ) AS col0 FROM tab2 +---- +-12 +-12 +-12 +-51 +-67 +-77 query II rowsort label-5940 SELECT + COUNT ( * ) + - - COUNT ( ALL + 71 ), + 7 AS col2 FROM tab2 cor0 @@ -36006,8 +36376,15 @@ SELECT - MIN ( + - col0 ) FROM tab0 # Datafusion - Expected - -99 # Datafusion - Expected - -924 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* \(\- Int64\(45\)\) \+ tab0\.col1 AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * - + 45 + col1 col0, - col2 AS col0 FROM tab0 +---- +-10 +-3564 +-44 +-47 +-924 +-99 query I rowsort label-5966 SELECT DISTINCT - COUNT ( * ) / - 10 col1 FROM tab1 @@ -36890,8 +37267,11 @@ SELECT + - 77 col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(5\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MIN ( 5 ) AS col2, COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +5 +9 query I rowsort label-6116 SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 15 IS NULL @@ -36901,8 +37281,11 @@ 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\(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\. +query II valuesort SELECT 46 * - + COUNT ( * ) AS col2, - COUNT ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0 +---- +-138 +-3 query I rowsort SELECT ALL + 87 * + col2 * 2 FROM tab2 AS cor0 WHERE NOT + 39 IS NOT NULL @@ -37055,8 +37438,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ), - COUNT ( * ) FROM tab0 cor0 +---- +-3 +-3 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -37225,8 +37611,15 @@ SELECT - 2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT CAST ( NULL A # Datafusion - Expected - 47 # Datafusion - Expected - 83 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 83 AS col0, col2 AS col0 FROM tab0 WHERE + 73 IS NOT NULL OR NULL IS NULL +---- +10 +47 +83 +83 +83 +99 query I rowsort label-6172 SELECT DISTINCT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 @@ -38827,8 +39220,15 @@ SELECT + 75 * col2 AS col0 FROM tab1 # Datafusion - Expected - 10 # Datafusion - Expected - 52 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ \(\- tab0\.col1\) AS col0" at position 0 and "\(\- tab0\.col1\) \+ Int64\(52\) \+ \(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 53 + - col1 AS col0, - col1 + + 52 + - col1 col0 FROM tab0 +---- +-110 +-28 +10 +32 +50 +52 query I rowsort label-6440 SELECT 69 / - COUNT ( * ) + - 32 FROM tab2 @@ -39000,8 +39400,15 @@ SELECT DISTINCT ( - col0 ) + - col1 AS col0 FROM tab1 # Datafusion - Expected - -2950 # Datafusion - Expected - 91 # Datafusion - Expected - -3400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "Int64\(50\) \* \(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, + 50 * - col2 col1 FROM tab1 +---- +-2950 +-3400 +-4800 +51 +85 +91 query II rowsort SELECT col2, col2 col1 FROM tab0 @@ -39199,8 +39606,15 @@ SELECT - COUNT ( * ) - 85 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - -99 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 99 col0, + col1 AS col0 FROM tab0 WHERE NULL IS NULL +---- +-99 +-99 +-99 +1 +21 +81 query I rowsort label-6500 SELECT + COUNT ( * ) + - + 35 FROM tab2 @@ -39947,8 +40361,11 @@ SELECT - + 60 * + MIN ( DISTINCT + 29 ) * + + 75 + COUNT ( * ) AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- Int64\(\-25\)\) \+ max\(\(\- cor0\.col0\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) / - - 25 + + MAX ( ALL - col0 ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-15 +3 query I rowsort label-6623 SELECT + - ( - ( CAST ( NULL AS INTEGER ) ) ) * + - COUNT ( * ) AS col1 FROM tab1 AS cor0 @@ -41175,8 +41592,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * - 20 AS col2, - COUNT ( ALL + col2 ) / - 9 AS col2 FROM tab0 AS cor0 +---- +0 +60 query I rowsort label-6837 SELECT DISTINCT SUM ( - + 86 ) AS col2 FROM tab1 cor0 @@ -41988,8 +42408,15 @@ SELECT ALL + COUNT ( * ) + - + ( - 45 ) col1 FROM tab0 # Datafusion - Expected - 64 # Datafusion - Expected - 23 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 AS col2, + col0 AS col2 FROM tab2 +---- +23 +23 +23 +46 +64 +75 query I rowsort label-6965 SELECT DISTINCT + CAST ( + col1 AS INTEGER ) - 46 AS col0 FROM tab2 AS cor0 @@ -42627,8 +43054,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) AS col1, COUNT ( - - 16 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 > + - col0 * col1 + + ( 32 ) - - + ( + col2 ) +---- +0 +0 query I rowsort label-7073 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - ( col0 ) FROM tab2 AS cor0 @@ -43959,8 +44389,15 @@ SELECT - + col1 AS col1, - 56 FROM tab2 AS cor0 # Datafusion - Expected - -2400 # Datafusion - Expected - 75 # Datafusion - Expected - -3480 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "Int64\(60\) \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col0 AS col1, + 60 * + + ( + - ( col2 ) ) col1 FROM tab2 AS cor0 +---- +-1380 +-2400 +-3480 +46 +64 +75 query I rowsort label-7290 SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE col1 / + col2 <= - CAST ( - col1 AS INTEGER ) + + col2 @@ -44089,8 +44526,9 @@ SELECT ALL col1 * - + col0 AS col2 FROM tab1 AS cor0 -714 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, col1 AS col0 FROM tab0 WHERE NOT - col1 <= col1 +---- query I rowsort SELECT DISTINCT col1 * + col1 * + - 28 AS col1 FROM tab2 @@ -44229,8 +44667,11 @@ SELECT DISTINCT * FROM tab0 WHERE + col0 + + col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 56 -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\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( + 17 ) AS col2, ( 56 ) AS col2 FROM tab1 +---- +3 +56 query I rowsort SELECT DISTINCT - + ( 60 ) AS col1 FROM tab0 AS cor0 @@ -45039,8 +45480,15 @@ SELECT DISTINCT + + ( + - 6 ) FROM tab0 WHERE NOT + 42 * + 42 IS NULL # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, col1 AS col2 FROM tab2 +---- +51 +51 +67 +67 +77 +77 # Datafusion - Datafusion expected results: query error DataFusion error: Schema error: Schema contains qualified field name tab1\.col2 and unqualified field name col2 which would be ambiguous @@ -45921,8 +46369,15 @@ SELECT DISTINCT + col0 / + + col1 FROM tab0 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - -86 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(86\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 86 col2, col1 AS col2 FROM tab0 AS cor0 +---- +-86 +-86 +-86 +1 +21 +81 query I rowsort label-7612 SELECT ALL - + COUNT ( DISTINCT - - 17 ) FROM tab2 cor0 @@ -46125,8 +46580,11 @@ SELECT - col1 FROM tab1 WHERE NOT ( + 66 * + - ( - col1 ) * - - col0 ) <> + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 +---- +3 +NULL query I rowsort label-7648 SELECT DISTINCT - 16 / - - 42 FROM tab1 @@ -46958,8 +47416,15 @@ SELECT ALL - 72 + + col0 AS col0 FROM tab1 # Datafusion - Expected - -87 # Datafusion - Expected - -876 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \* Int64\(78\) \+ \(\- tab0\.col0\) \* \(\- tab0\.col1\) \+ tab0\.col0 AS col0" at position 0 and "\(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 27 * + 78 + - + col0 * - col1 + + col0 AS col0, - col0 AS col0 FROM tab0 +---- +-15 +-1912 +-192 +-87 +-876 +-97 query I rowsort label-7789 SELECT DISTINCT SUM ( DISTINCT + - col2 ) AS col2 FROM tab2 WHERE NULL IS NULL @@ -47961,8 +48426,15 @@ SELECT col0 AS col2, col2 * - - ( - 35 ) FROM tab1 # Datafusion - Expected - 26 # Datafusion - Expected - 68 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 68 AS col1, 26 AS col1 FROM tab2 +---- +26 +26 +26 +68 +68 +68 query I rowsort SELECT DISTINCT ( - - 45 ) FROM tab0 @@ -48218,8 +48690,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) + + COUNT ( * ) / 18 AS col0, 14 AS col0 FROM tab0 +---- +14 +3 query I rowsort SELECT ALL col2 * - col1 * - + col0 + - 80 FROM tab0 @@ -49101,8 +49576,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT cor0\.col1\)\) AS col2" at position 0 and "Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MAX ( DISTINCT col1 ) AS col2, ( - 41 ) AS col2 FROM tab2 AS cor0 +---- +-41 +-77 query I rowsort label-8141 SELECT - CAST ( NULL AS INTEGER ) + - col2 - + 97 * + 58 - - - 59 AS col1 FROM tab2 @@ -49700,8 +50178,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 AS col2, - COUNT ( * ) AS col2 FROM tab0 +---- +-3 +-58 query III rowsort SELECT DISTINCT * FROM tab2 WHERE 44 < NULL @@ -49878,8 +50359,15 @@ SELECT - 86 - col0 + + col2 FROM tab1 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 5026 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / \(\- \(\- cor0\.col1\)\) \+ cor0\.col0 \* \(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 / - - col1 + col0 * - - col1 AS col1, + col2 AS col1 FROM tab2 AS cor0 +---- +23 +2347 +40 +4929 +5026 +58 query II rowsort SELECT + 6 * - - col0 * - col2 + + col1, col0 FROM tab1 AS cor0 @@ -51208,8 +51696,15 @@ SELECT ALL - 3 * + col0 AS col2 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab0\.col2\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \- Int64\(57\) \* Int64\(\-52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - col2 ) AS col2, - ( + + CAST ( NULL AS INTEGER ) ) - + 57 * - 52 AS col2 FROM tab0 +---- +10 +47 +99 +NULL +NULL +NULL query II rowsort SELECT ALL - 58 AS col1, col0 FROM tab0 @@ -51972,8 +52467,15 @@ SELECT ALL + + 20 FROM tab0 WHERE NULL IS NOT NULL # Datafusion - Expected - 3807 # Datafusion - Expected - 42 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col1" at position 0 and "tab0\.col1 \* tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 42 AS col1, col1 * + col2 AS col1 FROM tab0 +---- +210 +3807 +42 +42 +42 +99 query I rowsort SELECT ALL - col2 * + + col2 FROM tab2 @@ -52069,8 +52571,11 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 48 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 156 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- Int64\(85\) AS col1" at position 0 and "sum\(cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) - + 85 AS col1, SUM ( ALL + col2 ) AS col1 FROM tab0 AS cor0 +---- +156 +NULL query I rowsort label-8633 SELECT ALL + COUNT ( ALL - col1 ) AS col2 FROM tab2 AS cor0 @@ -52568,8 +53073,15 @@ NULL # Datafusion - Expected - 96 # Datafusion - Expected - -247 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- cor0\.col1\) \+ \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 * - col1 + + - col0 col2, 96 AS col2 FROM tab1 AS cor0 +---- +-110 +-2300 +-247 +96 +96 +96 query III rowsort SELECT DISTINCT * FROM tab0 cor0 WHERE col2 BETWEEN NULL AND NULL @@ -53128,8 +53640,10 @@ SELECT col2 FROM tab1 AS cor0 WHERE 75 < NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to d7121d8c6db18d86efb5b2132aea8312 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "tab2\.col1 \* \(\- Int64\(50\)\) \+ \(\- Int64\(69\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col0 col2, - col1 AS col0, col1 * - + 50 + - + 69 AS col2 FROM tab2 +---- +9 values hashing to e088ef59afed9c2fedbe94468733f1d6 query III rowsort SELECT * FROM tab2 AS cor0 WHERE 61 * - col0 * 1 * - col0 + + col2 IS NOT NULL @@ -53840,8 +54354,15 @@ SELECT DISTINCT - col1 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IN ( col2, - # Datafusion - Expected - 60 # Datafusion - Expected - -9801 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- tab0\.col2\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * + - col2 AS col1, + ( + 60 ) AS col1 FROM tab0 +---- +-100 +-2209 +-9801 +60 +60 +60 query I rowsort label-8928 SELECT DISTINCT MAX ( 6 ) col2 FROM tab2 @@ -55235,8 +55756,15 @@ SELECT 85 + + - COUNT ( * ) FROM tab0 # Datafusion - Expected - 15 # Datafusion - Expected - 99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, col0 col1 FROM tab0 cor0 +---- +10 +15 +47 +87 +97 +99 query I rowsort SELECT col0 * 87 * + col2 AS col2 FROM tab0 AS cor0 @@ -55777,8 +56305,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * - - ( + MAX ( DISTINCT - col2 ) ) AS col0, 72 AS col0 FROM tab1 +---- +-177 +72 query I rowsort label-9258 SELECT DISTINCT + col1 / ( + + 92 ) - + 29 AS col2 FROM tab0 @@ -55862,8 +56393,11 @@ SELECT - col1 AS col2, col1 AS col1 FROM tab1 cor0 # 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 col2" at position 0 and "Int64\(26\) \- Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 3 AS col2, 26 - + 64 AS col2 FROM tab1 AS cor0 +---- +-38 +3 query I rowsort SELECT + 93 * - 86 AS col2 FROM tab0 @@ -56213,8 +56747,15 @@ SELECT DISTINCT * FROM tab1 WHERE + + col2 < 83 # Datafusion - Expected - -47 # Datafusion - Expected - 97 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col1" at position 0 and "\(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + ( 97 ) ) AS col1, - col2 AS col1 FROM tab0 +---- +-10 +-47 +-99 +97 +97 +97 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( - col2, - col2, + + col2, - 30, - - col2 + - + 47, + ( + + 47 ) ) @@ -56639,8 +57180,11 @@ SELECT - ( - - col2 ) / 90 col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "min\(tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, + MIN ( + col0 ) AS col2 FROM tab0 +---- +15 +NULL query I rowsort SELECT + col0 * + 17 AS col1 FROM tab1 @@ -57872,8 +58416,15 @@ SELECT + col2 FROM tab0 WHERE NULL > NULL # Datafusion - Expected - 67 # Datafusion - Expected - 0 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \+ tab1\.col2 AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 96 + col2 AS col0, + 67 AS col0 FROM tab1 +---- +-28 +-37 +0 +67 +67 +67 query I rowsort label-9607 SELECT ALL + MAX ( - col0 ) + + COUNT ( * ) + ( 86 ) FROM tab0 @@ -58046,8 +58597,9 @@ SELECT + + ( - - COUNT ( * ) ) col0 FROM tab1 AS cor0 3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col1 \+ \(\- Int64\(76\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col0, col1 + - + 76 col0 FROM tab2 AS cor0 WHERE NOT - 9 / - col0 BETWEEN NULL AND NULL +---- query III rowsort label-9637 SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col2 = - + col2 / - + col1 * - CAST ( NULL AS INTEGER ) - - - 6 + + col1 ) @@ -58288,8 +58840,15 @@ NULL # Datafusion - Expected - -64 # Datafusion - Expected - 81 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 81 AS col2, - col0 AS col2 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +81 +81 +81 query II rowsort SELECT ALL + - col1 AS col2, col2 + - - col2 FROM tab1 AS cor0 WHERE NOT - 82 IS NULL @@ -58719,8 +59278,9 @@ SELECT col1, col1 * + col0 * - 55 AS col0 FROM tab1 -23375 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 49 AS col2, - 13 col2 FROM tab2 WHERE + 54 / - - col0 IS NULL +---- query I rowsort label-9747 SELECT - 55 * + MAX ( ALL 12 ) FROM tab0 @@ -59581,8 +60141,15 @@ NULL # Datafusion - Expected - 2560 # Datafusion - Expected - 75 # Datafusion - Expected - 4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col2, col0 * + col2 AS col2 FROM tab2 AS cor0 +---- +1058 +2560 +4350 +46 +64 +75 query I rowsort SELECT DISTINCT col0 / - col2 FROM tab1 AS cor0 WHERE NOT col1 <= - - col0 / + 97 + + 83 @@ -59699,8 +60266,15 @@ SELECT - - col2 * + + col0 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 39 # Datafusion - Expected - 4294 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- cor0\.col0\) \+ Int64\(\-56\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col2 * - col0 + - 56 col0, ( 39 ) AS col0 FROM tab2 AS cor0 +---- +1002 +2504 +39 +39 +39 +4294 query I rowsort SELECT ALL 24 * - col0 + 90 col0 FROM tab2 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_77.slt b/data/sqlite/random/aggregates/slt_good_77.slt index 053483f..b5d14f6 100644 --- a/data/sqlite/random/aggregates/slt_good_77.slt +++ b/data/sqlite/random/aggregates/slt_good_77.slt @@ -231,8 +231,15 @@ SELECT + - col2 AS col2 FROM tab0 AS cor0 WHERE ( NOT + col0 IS NULL ) # Datafusion - Expected - 64 # Datafusion - Expected - -46 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \+ Int64\(\-59\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 + - 59 AS col2, + col0 col2 FROM tab2 AS cor0 +---- +-46 +-46 +-46 +46 +64 +75 query III rowsort label-33 SELECT * FROM tab0 cor0 WHERE ( NOT - CAST ( NULL AS INTEGER ) IS NOT NULL ) @@ -327,8 +334,15 @@ SELECT + 59 + - + CAST ( NULL AS INTEGER ) + + col2 FROM tab2 AS cor0 WHERE NOT # Datafusion - Expected - 2330 # Datafusion - Expected - NULL # Datafusion - Expected - 345 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* cor0\.col0 \* cor0\.col2 \* \(\- cor0\.col1\) \* Int64\(3\) AS col1" at position 0 and "Int64\(53\) \+ cor0\.col2 \+ \(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col0 * + col2 * - + col1 * + 3 AS col1, + 53 + + col2 + - col1 * - ( col1 ) AS col1 FROM tab1 AS cor0 +---- +137 +2330 +345 +NULL +NULL +NULL query I rowsort SELECT ALL 35 + col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL @@ -834,8 +848,15 @@ SELECT ALL * FROM tab2 WHERE ( NOT ( col0 ) IS NULL ) # Datafusion - Expected - 98 # Datafusion - Expected - 77 # Datafusion - Expected - 108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ Int64\(67\) AS col1" at position 0 and "tab0\.col0 \+ tab0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + + ( 67 ) col1, + col0 + col1 col1 FROM tab0 +---- +108 +114 +166 +77 +96 +98 query I rowsort SELECT ALL 25 * + col2 FROM tab1 @@ -1498,8 +1519,15 @@ SELECT MIN ( DISTINCT + - col1 ) FROM tab1 AS cor0 # Datafusion - Expected - 8352 # Datafusion - Expected - NULL # Datafusion - Expected - 9312 -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\(96\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + CAST ( NULL AS FLOAT8 ) col0, 96 * col0 AS col0 FROM tab0 AS cor0 +---- +1440 +8352 +9312 +NULL +NULL +NULL query I rowsort SELECT DISTINCT ( 85 ) FROM tab2 AS cor0 @@ -1544,8 +1572,15 @@ SELECT ( ( + + 29 ) ) FROM tab1 AS cor0 # Datafusion - Expected - 58 # Datafusion - Expected - 77 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, col2 AS col0 FROM tab2 AS cor0 +---- +23 +40 +51 +58 +67 +77 query I rowsort SELECT DISTINCT + - col1 + + + ( - col1 ) * + + col1 + col2 AS col2 FROM tab1 AS cor0 @@ -1858,8 +1893,15 @@ SELECT - - COUNT ( * ) * + COUNT ( * ) + 15 FROM tab1 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 26979 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col1 \* cor0\.col2 AS col1" at position 0 and "Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * col1 * col2 AS col1, 68 AS col1 FROM tab2 AS cor0 +---- +123200 +225388 +26979 +68 +68 +68 query I rowsort SELECT DISTINCT col1 * col1 * col1 * 42 FROM tab1 AS cor0 @@ -1999,8 +2041,15 @@ SELECT DISTINCT col0 * 66 + - col0 FROM tab1 # Datafusion - Expected - 678 # Datafusion - Expected - -54 # Datafusion - Expected - 688824 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) AS col1" at position 0 and "Int64\(7\) \* \(\- tab0\.col0\) \* tab0\.col1 \* \(\- tab0\.col1\) \+ \(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 54 col1, 7 * - col0 * + col1 * - col1 + - col1 AS col1 FROM tab0 +---- +-54 +-54 +-54 +268548 +678 +688824 query I rowsort label-322 SELECT DISTINCT 41 + COUNT ( * ) FROM tab0 @@ -3067,8 +3116,11 @@ SELECT + 58 * + col1 * col2 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT tab1\.col2\) AS col1" at position 0 and "max\(CAST\(NULL AS Int32\)\) \+ count\(DISTINCT tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( DISTINCT + col2 ) AS col1, MAX ( ALL CAST ( NULL AS INTEGER ) ) + + COUNT ( DISTINCT + col0 ) AS col1 FROM tab1 +---- +96 +NULL query I rowsort label-503 SELECT DISTINCT COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 ) @@ -3167,8 +3219,15 @@ SELECT DISTINCT ( - col0 ) col0 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - -96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +NULL +NULL +NULL query I rowsort label-519 SELECT - + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL < + col2 @@ -3205,8 +3264,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + MIN ( DISTINCT 75 ) col1, - COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +-3 +-75 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( + 59 ) ) IS NULL @@ -3336,8 +3398,15 @@ SELECT MIN ( DISTINCT + 25 ) FROM tab1 AS cor0 # Datafusion - Expected - -2 # Datafusion - Expected - 97 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, - 2 AS col2 FROM tab0 AS cor0 +---- +-2 +-2 +-2 +15 +87 +97 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT - 13 * - + col2 - + + ( + col2 ) NOT IN ( - col1 * 67 + col2 + + ( - col2 ) * col2 + col1 ) @@ -3453,8 +3522,15 @@ SELECT ALL - col1 / + col1 FROM tab2 cor0 # Datafusion - Expected - 68 # Datafusion - Expected - -5 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, col2 AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +59 +68 +96 query I rowsort SELECT + + ( - + 54 ) AS col2 FROM tab0 AS cor0 @@ -3697,8 +3773,15 @@ SELECT 15 * col2 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -10 # Datafusion - Expected - 0 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) / Int64\(64\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 / + 64 AS col2, - col2 AS col2 FROM tab0 AS cor0 +---- +-1 +-10 +-47 +-99 +0 +0 query II rowsort SELECT DISTINCT + 93 - col0 AS col1, 20 * + 9 * - - col0 / - - col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL < ( + col2 * - - 59 ) @@ -3966,8 +4049,15 @@ SELECT + ( + 9 ) - + 42 * + col1 FROM tab0 # Datafusion - Expected - -1 # Datafusion - Expected - -11 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col2" at position 0 and "cor0\.col0 / \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 11 col2, + col0 / ( - col0 ) AS col2 FROM tab0 AS cor0 +---- +-1 +-1 +-1 +-11 +-11 +-11 query I rowsort SELECT ALL + + col2 * + + col1 - col1 + + col0 + col1 FROM tab1 AS cor0 @@ -4027,8 +4117,15 @@ SELECT - col2 * + 7 * + 85 col2 FROM tab2 # Datafusion - Expected - 67 # Datafusion - Expected - 330 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* Int64\(10\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 33 * 10 AS col2, + col1 AS col2 FROM tab2 +---- +330 +330 +330 +51 +67 +77 query I rowsort label-654 SELECT DISTINCT ( COUNT ( * ) ) * + ( + COUNT ( * ) ) AS col0 FROM tab1 @@ -4098,8 +4195,11 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 + - - col2 + - 53 * + + CAST ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 +---- +3 +NULL query I rowsort label-667 SELECT DISTINCT SUM ( ALL + col1 ) AS col2 FROM tab0 AS cor0 @@ -4717,8 +4817,9 @@ SELECT COUNT ( * ) / + + 60 FROM tab2 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, + col0 col1 FROM tab0 WHERE NOT ( NOT ( NOT ( NOT NULL >= - col2 + - col0 ) ) ) +---- query I rowsort label-770 SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE + col0 * + ( + col2 ) IS NULL @@ -4994,8 +5095,15 @@ SELECT DISTINCT col0 + - 88 col0 FROM tab0 # Datafusion - Expected - 187 # Datafusion - Expected - 5 # Datafusion - Expected - 187 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \+ \(\- tab2\.col0\) 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 II valuesort SELECT + col1 + - col0 col2, 11 * 17 AS col2 FROM tab2 +---- +-8 +13 +187 +187 +187 +5 query I rowsort SELECT ALL + 25 - + - col2 * - + 38 * - col0 * + col1 - + 16 FROM tab2 @@ -6203,8 +6311,11 @@ SELECT ALL - ( - + CAST ( + 40 AS INTEGER ) ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, 82 AS col2 FROM tab2 AS cor0 +---- +3 +82 query III rowsort SELECT * FROM tab2 WHERE ( NOT NULL = col2 ) @@ -6449,8 +6560,15 @@ SELECT + SUM ( DISTINCT + col1 ) FROM tab2 # Datafusion - Expected - -100 # Datafusion - Expected - -81 # Datafusion - Expected - -2209 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "\(\- tab0\.col2\) \* tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, - col2 * col2 AS col0 FROM tab0 +---- +-1 +-100 +-21 +-2209 +-81 +-9801 query I rowsort label-1065 SELECT MAX ( col2 ) AS col1 FROM tab2 WHERE NOT + col2 <= col2 + - col2 + 92 @@ -6495,8 +6613,15 @@ SELECT ALL + - SUM ( col1 ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 13 # Datafusion - Expected - 90 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* cor0\.col2 AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 9 * col2 AS col1, 13 AS col1 FROM tab0 AS cor0 +---- +13 +13 +13 +423 +891 +90 query I rowsort SELECT DISTINCT - 45 * 38 FROM tab2 AS cor0 @@ -8731,8 +8856,15 @@ SELECT ALL - col0, - 10 AS col0 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - -30 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 30 AS col0, col1 AS col0 FROM tab0 +---- +-30 +-30 +-30 +1 +21 +81 query I rowsort label-1443 SELECT - 2 - ( + COUNT ( * ) ) FROM tab0 WHERE NOT NULL BETWEEN + - CAST ( NULL AS INTEGER ) * + 72 + + col2 AND + col0 * - CAST ( NULL AS INTEGER ) @@ -8971,8 +9103,12 @@ 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\(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\. +query III valuesort SELECT COUNT ( * ) AS col2, COUNT ( * ), COUNT ( * ) FROM tab2 +---- +3 +3 +3 query I rowsort SELECT ALL - - 21 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 @@ -9121,8 +9257,9 @@ SELECT DISTINCT - 50 AS col1 FROM tab1 AS cor0 WHERE col2 = 65 * - 90 * + 53 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL +---- query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + - col0 BETWEEN col0 - + 36 AND + 94 * + col0 * 60 @@ -9390,8 +9527,15 @@ SELECT + 60 AS col0, + col0 * - + col1 FROM tab0 # Datafusion - Expected - 4556 # Datafusion - Expected - 525 # Datafusion - Expected - 3953 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ Int64\(88\) \* tab1\.col1 AS col1" at position 0 and "Int64\(67\) \* tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 + + + 88 * col1 AS col1, + 67 * col2 col1 FROM tab1 +---- +1283 +3953 +4227 +4556 +525 +6432 query II rowsort SELECT + + col1, col1 + - - 68 FROM tab2 WHERE NULL IS NULL @@ -9991,8 +10135,9 @@ SELECT ALL + + COUNT ( - 67 ) FROM tab2 cor0 3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, 94 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL ) +---- query I rowsort SELECT ALL + 2 * - col2 AS col2 FROM tab0 AS cor0 @@ -10150,8 +10295,15 @@ SELECT DISTINCT - col2 AS col0, col0 AS col0 FROM tab0 # Datafusion - Expected - 674 # Datafusion - Expected - 81 # Datafusion - Expected - 2451 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "tab0\.col2 \+ Int64\(55\) \+ Int64\(29\) \* tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col0, col2 + 55 + + + 29 * + + col1 AS col0 FROM tab0 +---- +1 +183 +21 +2451 +674 +81 query I rowsort label-1677 SELECT ALL + + MAX ( ALL + col1 ) FROM tab2 cor0 @@ -10182,8 +10334,15 @@ SELECT ( 64 ) FROM tab0 cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col0, col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT col2 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL @@ -10749,8 +10908,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 210 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- min\(Int64\(77\)\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-7\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) * - + MIN ( + 77 ) - - COUNT ( * ) * - 7 AS col1, COUNT ( * ) col1 FROM tab0 +---- +210 +3 query II rowsort label-1778 SELECT DISTINCT MAX ( ALL + 50 ) AS col2, ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0 @@ -11248,8 +11410,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * - COUNT ( * ) AS col2, 33 AS col2 FROM tab1 AS cor0 +---- +33 +9 query III rowsort SELECT ALL * FROM tab2 WHERE + col2 + + col0 IS NULL @@ -11978,8 +12143,15 @@ SELECT + COUNT ( * ), + ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - -931195 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col0 \+ cor0\.col2 \+ cor0\.col1 \+ cor0\.col2 \+ cor0\.col0 \* cor0\.col2 \* \(\- cor0\.col0\) \+ Int64\(40\) / \(\- Int64\(\-41\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + ( col0 ) + + col2 + + col1 + + col2 + col0 * + col2 * + ( - col0 ) + 40 / - - 41 AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +-73822 +-9185 +-931195 +10 +47 +99 query I rowsort label-1983 SELECT + + CAST ( - 81 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - 49 + col2 + col2 < NULL @@ -12269,8 +12441,15 @@ SELECT ALL - 97 / - col1 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -5929 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col2\) \+ \(\- cor0\.col2\) \* Int64\(\-80\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * + ( + + col1 ) AS col2, - ( + + col2 ) + - col2 * - 80 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 +---- +-2601 +-4489 +-5929 +NULL +NULL +NULL query I rowsort SELECT DISTINCT 22 col2 FROM tab1 @@ -12994,8 +13173,11 @@ SELECT + col0 - - col0 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + + col1 AND # 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\(93\) \+ tab2\.col2 \+ Int64\(63\) \* \(\- CAST\(NULL AS Float64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT 92 AS col2, 93 + + col2 + + + 63 * - CAST ( NULL AS FLOAT8 ) AS col2 FROM tab2 +---- +92 +NULL query I rowsort SELECT + col1 * col1 * + - 17 col2 FROM tab1 @@ -13281,8 +13463,15 @@ SELECT ALL * FROM tab2 WHERE ( NOT - ( - + col0 ) * + - 76 + 56 IS NOT NULL ) # Datafusion - Expected - 47 # Datafusion - Expected - 75 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col1" at position 0 and "CAST\(tab0\.col2 AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 75 AS col1, CAST ( + + col2 AS INTEGER ) col1 FROM tab0 +---- +10 +47 +75 +75 +75 +99 query II rowsort SELECT - 21 * 36 * + col1 AS col2, col1 FROM tab0 @@ -14812,8 +15001,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * - 15 AS col1, 51 AS col1 FROM tab1 AS cor0 +---- +-45 +51 query I rowsort SELECT ALL + ( + - 60 ) AS col2 FROM tab1 @@ -15630,8 +15822,11 @@ SELECT - ( + COUNT ( * ) ) col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "min\(Int64\(\-73\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, MIN ( ALL - 73 ) AS col1 FROM tab1 AS cor0 +---- +-73 +3 query II rowsort SELECT 73 AS col1, - col1 FROM tab2 AS cor0 @@ -15709,8 +15904,15 @@ SELECT - + ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -5222 # Datafusion - Expected - -46 # Datafusion - Expected - -6124 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col1" at position 0 and "Int64\(26\) \+ cor0\.col0 \* Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 46 AS col1, + 26 + col0 * - 82 AS col1 FROM tab2 AS cor0 +---- +-3746 +-46 +-46 +-46 +-5222 +-6124 query I rowsort SELECT col1 * col1 * - - col1 FROM tab1 AS cor0 @@ -15977,8 +16179,15 @@ SELECT MAX ( + - col2 ) FROM tab1 cor0 # Datafusion - Expected - -77 # Datafusion - Expected - 3919 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \- \(\- cor0\.col2\) \+ Int64\(\-37\) \+ Int64\(\-77\) \* Int64\(\-37\) \+ Int64\(96\) \* Int64\(10\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 - + - col2 + + - 37 + - 77 * + - 37 + + + 96 * + 10 AS col1, - col1 AS col1 FROM tab2 cor0 +---- +-51 +-67 +-77 +3884 +3901 +3919 query I rowsort label-2629 SELECT - COUNT ( - 80 ) - + 17 FROM tab1 AS cor0 @@ -17765,8 +17974,15 @@ SELECT ALL - ( + + col1 ) + - + 67 * + col2 FROM tab1 # Datafusion - Expected - -75 # Datafusion - Expected - 74 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \+ tab2\.col2 AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + + col2 AS col1, - col0 AS col1 FROM tab2 +---- +-46 +-64 +-75 +117 +125 +74 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 @@ -18105,8 +18321,15 @@ SELECT col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 + + col2, - 21 * + 46 # Datafusion - Expected - 52 # Datafusion - Expected - 4350 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 * - col0 col2, 52 AS col2 FROM tab2 AS cor0 +---- +1058 +2560 +4350 +52 +52 +52 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 * 42 AND col2 @@ -20018,8 +20241,11 @@ SELECT + SUM ( col2 ) FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, - 31 col0 FROM tab1 cor0 +---- +-31 +3 query I rowsort SELECT ALL - - col0 * col0 * + - 87 * col2 - - col2 AS col0 FROM tab0 AS cor0 @@ -20244,8 +20470,15 @@ SELECT DISTINCT - col2 + - col2 + + col0 + + col1 col1 FROM tab1 AS cor0 # Datafusion - Expected - -77 # Datafusion - Expected - 909 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* tab2\.col1 \- Int64\(87\) \- Int64\(\-58\) \+ \(\- \(\- tab2\.col1\)\) \* Int64\(\-54\) \+ tab2\.col1 AS col0" at position 0 and "\(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 * col1 - 87 - + - 58 + - ( - + col1 ) * - 54 + + + col1 AS col0, - col1 AS col0 FROM tab2 +---- +-131 +-51 +-67 +-77 +1819 +909 query III rowsort SELECT ALL * FROM tab2 WHERE - - ( 11 ) * - 83 + + 68 IS NULL @@ -20531,8 +20764,15 @@ SELECT DISTINCT - 91 * + MIN ( + + col0 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 28 # Datafusion - Expected - 960 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* Int64\(15\) AS col2" at position 0 and "tab2\.col1 \+ \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 * + + 15 AS col2, + col1 + - col2 AS col2 FROM tab2 +---- +1125 +28 +37 +690 +9 +960 query I rowsort label-3391 SELECT DISTINCT COUNT ( * ) / - 62 AS col1 FROM tab1 @@ -21093,8 +21333,15 @@ SELECT + 23 col2 FROM tab1 # Datafusion - Expected - 75 # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(7\) AS col1" at position 0 and "cor0\.col2 / Int64\(39\) \+ \(\- \(\- Int64\(74\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) * 7 AS col1, + col2 / + 39 + - ( - + 74 ) AS col1 FROM tab2 AS cor0 +---- +74 +75 +75 +NULL +NULL +NULL query I rowsort SELECT - 4 - - - col1 AS col2 FROM tab2 AS cor0 @@ -22818,8 +23065,15 @@ SELECT * FROM tab0 WHERE - ( + col1 ) IS NULL # Datafusion - Expected - 94 # Datafusion - Expected - 77 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \+ \(\- \(\- tab0\.col0\)\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 + - - col0 AS col2, 94 AS col2 FROM tab0 +---- +-2 +-32 +77 +94 +94 +94 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 @@ -22828,14 +23082,24 @@ SELECT ALL - col2 + - - col0 AS col2, 94 AS col2 FROM tab0 # Datafusion - Expected - 36 # Datafusion - Expected - -97 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- tab0\.col0\) AS Int32\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - col0 AS INTEGER ) AS col2, + 36 AS col2 FROM tab0 +---- +-15 +-87 +-97 +36 +36 +36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 55 AS col1, 67 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL +---- +55 +67 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 12 * + col0 < + col0 @@ -23812,8 +24076,11 @@ SELECT - col0 / + ( + 63 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "CAST\(max\(tab0\.col2\) AS Int32\) / Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 80 AS col1, + CAST ( + + MAX ( ALL col2 ) AS INTEGER ) / + + 79 AS col1 FROM tab0 +---- +1 +80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 @@ -24225,8 +24492,15 @@ SELECT ALL + COUNT ( + 5 ) FROM tab0 AS cor0 # Datafusion - Expected - -59 # Datafusion - Expected - -91 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "\(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col1, - col2 AS col1 FROM tab1 +---- +-51 +-59 +-68 +-85 +-91 +-96 query III rowsort SELECT * FROM tab1 WHERE NOT + col0 <= NULL @@ -25719,8 +25993,11 @@ SELECT + col0 AS col2, col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, 88 AS col1 FROM tab2 cor0 +---- +3 +88 query I rowsort label-4259 SELECT DISTINCT + COUNT ( * ) * + MIN ( - ( col0 ) ) FROM tab1 AS cor0 @@ -25981,8 +26258,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( - 27 ) + col0 IS NULL # Datafusion - Expected - 9 # Datafusion - Expected - 0 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) / \(\- cor0\.col0\) \* \(\- cor0\.col2\) AS col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 / - + col0 * - + col2 AS col2, + 9 AS col2 FROM tab2 AS cor0 +---- +0 +0 +0 +9 +9 +9 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < 35 @@ -26276,8 +26560,15 @@ SELECT * FROM tab2 WHERE NOT col0 + + CAST ( NULL AS INTEGER ) / + 50 IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col1, ( col1 ) FROM tab1 +---- +14 +14 +47 +47 +5 +5 query II rowsort SELECT - + col1 col2, + col1 / - 63 FROM tab0 WHERE NOT - + col0 < NULL @@ -26779,8 +27070,15 @@ SELECT ALL - 80 + + + 74 * - col2 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 106 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \- \(\- Int64\(61\)\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 45 - - + 61 AS col2, col1 AS col2 FROM tab1 +---- +106 +106 +106 +14 +47 +5 query II rowsort SELECT ALL 85 + - col0 AS col1, - col0 FROM tab1 @@ -26813,8 +27111,15 @@ SELECT + col2 + + 72 / - - col1 - col0 FROM tab1 # Datafusion - Expected - 260362 # Datafusion - Expected - -28 # Datafusion - Expected - 78591 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \+ Int64\(71\) AS col1" at position 0 and "Int64\(67\) \* tab2\.col1 \* tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 99 + + 71 AS col1, 67 * + + col1 * col2 AS col1 FROM tab2 +---- +-28 +-28 +-28 +206360 +260362 +78591 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL @@ -26823,8 +27128,15 @@ SELECT - 99 + + 71 AS col1, 67 * + + col1 * col2 AS col1 FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col2, col0 AS col2 FROM tab2 AS cor0 +---- +46 +64 +75 +NULL +NULL +NULL query I rowsort SELECT ALL 67 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL @@ -27430,8 +27742,15 @@ SELECT ALL * FROM tab1 cor0 WHERE NOT + 25 IS NOT NULL # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2, + col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT ALL + + 89 + - col0 FROM tab2 AS cor0 @@ -27529,8 +27848,15 @@ SELECT ( + 57 ) FROM tab1 # Datafusion - Expected - 98 # Datafusion - Expected - 75 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 col2, + 98 AS col2 FROM tab2 +---- +46 +64 +75 +98 +98 +98 query I rowsort label-4551 SELECT COUNT ( * ) / 37 * COUNT ( * ) AS col1 FROM tab2 @@ -27667,8 +27993,15 @@ SELECT ALL + 38 * - col2 AS col2 FROM tab2 # Datafusion - Expected - -87 # Datafusion - Expected - -81 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "\(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, - col0 col0 FROM tab0 +---- +-1 +-15 +-21 +-81 +-87 +-97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 @@ -28011,8 +28344,11 @@ SELECT col0 AS col1, col2 + + - CAST ( 84 AS INTEGER ) + 78 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col1" at position 0 and "min\(DISTINCT \(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 38 col1, MIN ( DISTINCT - + col1 ) AS col1 FROM tab1 AS cor0 +---- +-38 +-47 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 - + 78 - + col0 NOT IN ( + 63 ) @@ -28214,8 +28550,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(1\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, 1 + + COUNT ( * ) AS col1 FROM tab2 +---- +3 +4 query I rowsort SELECT DISTINCT + 41 * + - 46 AS col1 FROM tab1 AS cor0 @@ -28962,8 +29301,15 @@ SELECT COUNT ( col1 ) * - COUNT ( * ) AS col2 FROM tab0 # Datafusion - Expected - 7245 # Datafusion - Expected - 91 # Datafusion - Expected - 8259 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col0 \* tab1\.col0 \+ \(\- tab1\.col1\) \+ Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, col0 * col0 + - col1 + 25 AS col1 FROM tab1 +---- +2612 +51 +7245 +8259 +85 +91 query I rowsort label-4787 SELECT DISTINCT - - 15 + - + COUNT ( * ) / + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 @@ -29136,8 +29482,15 @@ SELECT * FROM tab1 cor0 WHERE NOT ( - 78 ) IS NOT NULL # Datafusion - Expected - 22 # Datafusion - Expected - 41 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 41 AS col1, 22 AS col1 FROM tab1 cor0 +---- +22 +22 +22 +41 +41 +41 query I rowsort SELECT DISTINCT ( - 78 ) col1 FROM tab2, tab1 AS cor0 @@ -30252,8 +30605,15 @@ SELECT DISTINCT + - ( col1 ) + - + col2 FROM tab1 AS cor0 # Datafusion - Expected - 62 # Datafusion - Expected - -3108 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col1 \+ Int64\(88\) AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 * + + col1 + 88 col2, 62 AS col2 FROM tab1 AS cor0 +---- +-1256 +-207 +-3108 +62 +62 +62 query I rowsort SELECT ALL + col0 AS col0 FROM tab1 AS cor0 WHERE + col2 + col2 > 58 @@ -31466,8 +31826,15 @@ SELECT - - 73 * + col1 * - + col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND col2 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 AS col1, col1 FROM tab2 cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT ALL - ( + + col1 ) FROM tab1 AS cor0 @@ -31828,8 +32195,15 @@ SELECT * FROM tab0 WHERE NOT + + CAST ( 96 AS INTEGER ) IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - -56 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 56 AS col0, + col1 AS col0 FROM tab1 +---- +-56 +-56 +-56 +14 +47 +5 query I rowsort label-5259 SELECT MAX ( ALL + - 3 ) AS col1 FROM tab1 AS cor0 @@ -31843,8 +32217,10 @@ SELECT + - COUNT ( * ) * - + 47 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 50f394c3d095dedae90fa7a3554cf1db -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* CAST\(\(\- CAST\(NULL AS Int32\)\) AS Float64\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RII valuesort SELECT - col2 * + + CAST ( - CAST ( NULL AS INTEGER ) AS FLOAT8 ) AS col1, col0 col1, + - col1 col2 FROM tab1 cor0 +---- +9 values hashing to 788cd2557f596b66e4ff9304645d0ba7 query I rowsort label-5262 SELECT - + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0 @@ -31969,8 +32345,9 @@ SELECT - 81 * - col0 + + col1 AS col0 FROM tab2 AS cor0 6142 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 \+ \(\- cor0\.col0\) \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 col1, col2 + - col0 * col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 <> + 12 +---- query II rowsort SELECT ALL 58 AS col2, - 29 AS col0 FROM tab2 cor0 @@ -32056,8 +32433,9 @@ SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE ( col0 IS NULL ) 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col2 AS col0, - col2 col0 FROM tab2 WHERE NOT col2 NOT BETWEEN NULL AND NULL +---- query I rowsort label-5299 SELECT - COUNT ( * ) * 1 FROM tab0 @@ -32803,8 +33181,15 @@ SELECT SUM ( - col0 ) + + COUNT ( * ) FROM tab1 # Datafusion - Expected - 17 # Datafusion - Expected - 75 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, 17 AS col1 FROM tab2 +---- +17 +17 +17 +46 +64 +75 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT + col1 > NULL @@ -32828,8 +33213,10 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN 24 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 682fb54da05ebe359a0b92461f3d0365 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(\-11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col1 * - + col2 AS col1, - 11 AS col1, ( + + 9 ) FROM tab0 AS cor0 +---- +9 values hashing to c91b4432d961cd501cafd06151ebe13f query I rowsort SELECT col2 col1 FROM tab2 AS cor0 WHERE NOT ( + - 91 ) / - 37 <> - + ( col1 ) @@ -35432,8 +35819,15 @@ SELECT + MAX ( + ( - - 18 ) ) AS col2 FROM tab1 cor0 # Datafusion - Expected - 136 # Datafusion - Expected - -2 # Datafusion - Expected - 192 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col2" at position 0 and "Int64\(2\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 2 ) col2, 2 * + col2 AS col2 FROM tab1 AS cor0 +---- +-2 +-2 +-2 +118 +136 +192 query I rowsort SELECT ALL + 60 * + col1 FROM tab2 @@ -36033,8 +36427,15 @@ SELECT ALL + - 9 col0 FROM tab2 AS cor0 # Datafusion - Expected - 3825 # Datafusion - Expected - 74 # Datafusion - Expected - 2346 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- cor0\.col2\) AS Int32\)\) \+ cor0\.col1 AS col0" at position 0 and "cor0\.col0 \+ \(\- Int64\(\-50\)\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + CAST ( - col2 AS INTEGER ) + + col1 AS col0, col0 + - - 50 * col0 AS col0 FROM tab2 AS cor0 +---- +117 +125 +2346 +3264 +3825 +74 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( + 25, col0, - + col0 ) @@ -36322,8 +36723,15 @@ SELECT + col2, ( col1 ) + + col2 - - + col2 * + - col2 AS col1 FROM tab0 # Datafusion - Expected - 68 # Datafusion - Expected - -28 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 28 col1, col2 AS col1 FROM tab1 +---- +-28 +-28 +-28 +59 +68 +96 query I rowsort label-6000 SELECT DISTINCT MIN ( DISTINCT + 7 ) FROM tab2 @@ -36359,8 +36767,15 @@ SELECT ALL + col0 AS col2 FROM tab2 WHERE + - 70 IS NOT NULL # Datafusion - Expected - -67 # Datafusion - Expected - -35 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col2" at position 0 and "\(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 35 col2, - col1 AS col2 FROM tab2 +---- +-35 +-35 +-35 +-51 +-67 +-77 query I rowsort SELECT ALL ( 40 ) FROM tab2 @@ -36401,8 +36816,11 @@ SELECT ALL - - 97 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( COUNT ( * ) ) col1, + 8 AS col1 FROM tab2 +---- +3 +8 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE + 43 < col2 * col0 @@ -37455,8 +37873,9 @@ SELECT ALL col2 * - - col1 + col1 + col2 * + 29 FROM tab2 AS cor0 5635 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0, - col0 FROM tab1 AS cor0 WHERE NOT 83 <> NULL +---- query I rowsort label-6197 SELECT + COUNT ( ALL - 15 ) FROM tab2 AS cor0 @@ -37897,8 +38316,15 @@ SELECT col0 + col0 + + + CAST ( + 69 AS INTEGER ) * + 22 AS col1 FROM tab0 AS co # Datafusion - Expected - NULL # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "CAST\(NULL AS Float64\) \+ Int64\(63\) \* Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT col1 AS col0, CAST ( NULL AS FLOAT8 ) + + 63 * 6 AS col0 FROM tab1 +---- +14 +47 +5 +NULL +NULL +NULL query I rowsort SELECT + 29 * - 26 * col0 / + - col0 FROM tab2 WHERE - 88 >= + col1 @@ -38010,8 +38436,15 @@ SELECT DISTINCT ( + ( - - col2 ) ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - -75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, col0 AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +46 +64 +75 query I rowsort SELECT DISTINCT 56 * + col1 FROM tab2 @@ -38236,8 +38669,15 @@ SELECT - col2 col1 FROM tab2 WHERE NOT - ( col1 ) IS NULL # Datafusion - Expected - 5626 # Datafusion - Expected - 77 # Datafusion - Expected - 4097 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "tab2\.col0 \* tab2\.col0 \- \(\- Int64\(1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, col0 * + ( + ( col0 ) ) - - + 1 AS col0 FROM tab2 +---- +2117 +4097 +51 +5626 +67 +77 query III rowsort SELECT DISTINCT * FROM tab2 WHERE col2 NOT IN ( - col2, col0, col1 ) @@ -38382,8 +38822,15 @@ SELECT - col1 - - 53 + + col1 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 2 # Datafusion - Expected - 96 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(97\) / cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col1, 97 / + col1 AS col1 FROM tab1 AS cor0 +---- +19 +2 +59 +6 +68 +96 query I rowsort SELECT - 98 * + col0 FROM tab2 cor0 WHERE NULL IS NOT NULL @@ -38451,8 +38898,15 @@ SELECT DISTINCT + 6 col1 FROM tab1, tab0 AS cor0 # Datafusion - Expected - -53 # Datafusion - Expected - -99 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "Int64\(28\) \+ \(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col1, 28 + - col1 AS col1 FROM tab0 +---- +-10 +-47 +-53 +-99 +27 +7 query I rowsort label-6359 SELECT COUNT ( - + col0 ) * 95 AS col1 FROM tab2 @@ -38583,8 +39037,15 @@ SELECT + - col0 FROM tab0 AS cor0 WHERE NOT + 87 IS NOT NULL # Datafusion - Expected - -21 # Datafusion - Expected - 97 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 col1, - col1 AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +15 +87 +97 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT + 4 / + col2 IS NULL @@ -38603,8 +39064,15 @@ SELECT + 19 * - - MIN ( - + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 86 / + # Datafusion - Expected - -6 # Datafusion - Expected - NULL # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(\-6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + CAST ( NULL AS INTEGER ) AS col0, - 6 AS col0 FROM tab2 cor0 +---- +-6 +-6 +-6 +NULL +NULL +NULL query I rowsort label-6381 SELECT 67 / - col2 FROM tab1 @@ -38627,8 +39095,15 @@ SELECT + col1 * - - 48 * - 97 FROM tab2 # Datafusion - Expected - -2134 # Datafusion - Expected - -518 # Datafusion - Expected - -330 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) \* Int64\(37\) AS col1" at position 0 and "tab0\.col0 \* Int64\(\-22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 14 * + 37 col1, col0 * + - 22 col1 FROM tab0 +---- +-1914 +-2134 +-330 +-518 +-518 +-518 query I rowsort label-6384 SELECT SUM ( col0 ) AS col1 FROM tab2 @@ -38799,8 +39274,15 @@ SELECT col0 col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL # Datafusion - Expected - 40 # Datafusion - Expected - -7081 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- Int64\(\-73\)\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - + col0 ) * - - 73 AS col0, + 40 AS col0 FROM tab0 AS cor0 +---- +-1095 +-6351 +-7081 +40 +40 +40 query I rowsort SELECT ALL col1 + 59 + col2 + 48 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + - 65 ) @@ -39443,8 +39925,15 @@ SELECT - MIN ( - 60 ) AS col1 FROM tab0 # Datafusion - Expected - 68 # Datafusion - Expected - 89 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 89 col0, col2 col0 FROM tab1 +---- +59 +68 +89 +89 +89 +96 query II rowsort label-6522 SELECT col0 AS col2, col2 + - 91 / + + col2 AS col1 FROM tab1 @@ -40289,8 +40778,15 @@ SELECT DISTINCT 78 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query II rowsort label-6664 SELECT ALL + col0 + + - col0 AS col2, + col2 / - - 21 FROM tab0 AS cor0 @@ -41282,8 +41778,15 @@ SELECT - 61 FROM tab0 WHERE - 9 * - col2 + col2 IS NOT NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col0, + col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-6826 SELECT DISTINCT + ( - col2 ) + - - col2 / - col1 AS col2 FROM tab1 @@ -42012,8 +42515,15 @@ SELECT COUNT ( DISTINCT col0 ) + - + 64 AS col0 FROM tab2 WHERE - CAST ( col2 AS # Datafusion - Expected - 13 # Datafusion - Expected - 5 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(1\) \+ \(\- Int64\(\-12\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 col2, + 1 + - - 12 AS col2 FROM tab1 AS cor0 +---- +13 +13 +13 +14 +47 +5 query I rowsort SELECT DISTINCT + 0 + + col2 FROM tab0 AS cor0 @@ -42596,8 +43106,15 @@ SELECT DISTINCT - col1 * + + ( + col2 ) * ( + col0 + col2 ) AS col0 FROM tab0 AS # Datafusion - Expected - 4812 # Datafusion - Expected - -68 # Datafusion - Expected - 4898 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(68\)\) AS col1" at position 0 and "\(\- cor0\.col0\) \+ Int64\(\-52\) \+ cor0\.col0 \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 68 AS col1, - col0 + - 52 + col0 * col1 AS col1 FROM tab2 AS cor0 +---- +-68 +-68 +-68 +2248 +4812 +4898 query II rowsort SELECT ALL col1 col2, + 25 + - - col1 FROM tab2 AS cor0 @@ -42764,8 +43281,9 @@ SELECT + ( - col0 ) + - col0 * 51, + col2 FROM tab0 47 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(86\) AS col1" at position 0 and "tab2\.col1 \+ tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 6 * 86 AS col1, col1 + col0 AS col1 FROM tab2 WHERE NOT NULL IS NULL +---- query I rowsort label-7077 SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE - col1 + 37 IS NULL @@ -43223,8 +43741,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 101 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \+ min\(cor0\.col0\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 50 + + MIN ( col0 ) AS col0, + COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +101 +3 query I rowsort label-7151 SELECT ALL COUNT ( * ) + + - 30 FROM tab1 @@ -43366,8 +43887,15 @@ SELECT - 33 + - - COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Expected - 75 # Datafusion - Expected - 74 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col2 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 + col2 AS col2, + col0 col2 FROM tab2 AS cor0 +---- +117 +125 +46 +64 +74 +75 query I rowsort SELECT - col1 FROM tab0 AS cor0 WHERE - col1 IS NULL @@ -43698,8 +44226,11 @@ SELECT - 61 AS col2 FROM tab1 AS cor0 WHERE NOT NULL 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 "Int64\(\-3\) AS col2" at position 0 and "Int64\(71\) \+ Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 3 AS col2, 71 + + ( 19 ) AS col2 FROM tab2 +---- +-3 +90 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 32 IS NULL @@ -43739,8 +44270,15 @@ SELECT - - col1 AS col1, - 23 + 71 * + col2 + 81 + - - col2 * - col1 * + col1 AS # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 col2, + col0 AS col2 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT DISTINCT + + col2 + + - 39 FROM tab0 AS cor0 @@ -43840,8 +44378,15 @@ SELECT col0 FROM tab0 WHERE NOT - - col0 BETWEEN NULL AND col0 # Datafusion - Expected - -91 # Datafusion - Expected - 96 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "\(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, - col0 AS col0 FROM tab1 +---- +-51 +-85 +-91 +59 +68 +96 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -44142,8 +44687,11 @@ SELECT DISTINCT 40 / + + 90 * - SUM ( ALL + - col2 ) AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 77 + ( - COUNT ( * ) ) * CAST ( NULL AS INTEGER ) AS col0, 90 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 +---- +90 +NULL query I rowsort label-7301 SELECT ALL - ( + ( + COUNT ( * ) ) ) FROM tab0 @@ -44521,8 +45069,15 @@ SELECT DISTINCT + + col0 * + col0 - - + col1 * col2 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 65 # Datafusion - Expected - -1 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / \(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col0 \+ Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 / - + col1 AS col0, col0 + 1 AS col0 FROM tab2 cor0 +---- +-1 +-1 +-1 +47 +65 +76 query I rowsort label-7359 SELECT ALL + SUM ( DISTINCT - col2 ) * 29 FROM tab1 AS cor0 WHERE NOT ( + 59 + - 26 + + + 64 BETWEEN NULL AND - col1 ) @@ -44577,8 +45132,15 @@ SELECT DISTINCT * FROM tab1 WHERE - CAST ( + col2 AS INTEGER ) * + + col1 * - co # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, + col1 col2 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT ALL - col2 + + + col1 * + 43 FROM tab2 AS cor0 @@ -44727,8 +45289,15 @@ SELECT - - 94 AS col2, col0 FROM tab2 AS cor0 # Datafusion - Expected - -184049 # Datafusion - Expected - -27 # Datafusion - Expected - -243089 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col1" at position 0 and "Int64\(\-41\) \* \(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 27 AS col1, - 41 * - col1 * ( + - col1 ) AS col1 FROM tab2 AS cor0 +---- +-106641 +-184049 +-243089 +-27 +-27 +-27 query II rowsort SELECT ALL col1 AS col2, ( - - 76 ) AS col0 FROM tab1 AS cor0 @@ -45651,8 +46220,11 @@ SELECT ALL + CAST ( - MAX ( + col1 ) AS INTEGER ) / 43 FROM tab0 AS cor0 WHERE N # 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\(DISTINCT Int64\(\-28\)\) AS col2" at position 0 and "Int64\(\-6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( DISTINCT - 28 ) col2, - 6 col2 FROM tab2 cor0 +---- +-6 +1 query I rowsort SELECT col2 * 23 AS col0 FROM tab1 cor0 @@ -45742,8 +46314,10 @@ SELECT DISTINCT + MAX ( ALL 98 ) / + COUNT ( * ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 3a6bbf051c5f732a4f70401cc6f3a707 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "CAST\(\(\- \(\- CAST\(NULL AS Int32\)\)\) AS Int32\) \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + col2 AS col1, + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + - col2 AS col1, - - col0 / 85 FROM tab0 AS cor0 +---- +9 values hashing to 258664d4f3200271cb4003d998642e38 query I rowsort SELECT ALL + col2 - - 91 AS col2 FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NULL @@ -46017,8 +46591,11 @@ SELECT ALL - 90 - - - 56, 30 + + + col0 + + 70 col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, - 38 AS col1 FROM tab2 +---- +-38 +3 query I rowsort label-7612 SELECT + ( COUNT ( DISTINCT - col1 ) ) FROM tab1 @@ -46332,8 +46909,15 @@ SELECT MIN ( ALL - 40 ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 99 # 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 "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 99 AS col2, + col1 AS col2 FROM tab0 AS cor0 +---- +1 +21 +81 +99 +99 +99 query I rowsort label-7663 SELECT ALL + col1 + - + ( - CAST ( 47 AS INTEGER ) ) + + + 87 AS col2 FROM tab2 AS cor0 @@ -46997,8 +47581,15 @@ SELECT + + 92 FROM tab0 WHERE NOT - col1 / + col1 BETWEEN NULL AND + + col2 + 55 # Datafusion - Expected - -1680 # Datafusion - Expected - 58 # Datafusion - Expected - -2472 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "Int64\(44\) \* \(\- tab2\.col2\) \+ Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 col0, 44 * - col2 + 80 AS col0 FROM tab2 +---- +-1680 +-2472 +-932 +23 +40 +58 query I rowsort SELECT 43 * col0 + + + col0 AS col2 FROM tab2 @@ -47073,8 +47664,15 @@ SELECT ALL 41 * - col0 * col2 FROM tab0 # Datafusion - Expected - 96 # Datafusion - Expected - -159 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \+ \(\- tab1\.col2\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + + - col2 AS col1, col2 AS col1 FROM tab1 +---- +-144 +-147 +-159 +59 +68 +96 query I rowsort label-7783 SELECT + ( + 81 ) / col2 + 53 * col0 AS col1 FROM tab1 AS cor0 @@ -47345,8 +47943,15 @@ SELECT + col0 FROM tab2 AS cor0 WHERE col0 * + 10 IS NOT NULL # Datafusion - Expected - 3400 # Datafusion - Expected - -81 # Datafusion - Expected - 3400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(\-85\) \* Int64\(\-40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 AS col0, - 85 * - 40 AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +3400 +3400 +3400 query I rowsort SELECT + col0 - - - col1 FROM tab0 AS cor0 @@ -48639,8 +49244,15 @@ SELECT - 65 FROM tab2 AS cor0 WHERE NOT ( - 71 - + col0 + + col1 ) BETWEEN NULL # Datafusion - Expected - 10 # Datafusion - Expected - 16 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ Int64\(\-83\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 + - 83 AS col1, col2 AS col1 FROM tab0 cor0 +---- +-36 +-73 +10 +16 +47 +99 query II rowsort SELECT DISTINCT - col1 + + 94, - 82 * - col2 AS col0 FROM tab0 AS cor0 @@ -48983,8 +49595,11 @@ SELECT DISTINCT 28 * + - 21 + + COUNT ( * ) AS col2, - MAX ( + 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 "\(\- min\(\(\- \(\- cor0\.col0\)\)\)\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( ALL - - col0 ) AS col1, - 0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 61 / + 56 * col1 AND - ( + - col1 ) +---- +0 +NULL query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE col0 * 92 * - col0 + ( + ( - col2 ) ) IS NULL @@ -50356,8 +50971,15 @@ SELECT DISTINCT + SUM ( - 6 ) AS col2 FROM tab1 # Datafusion - Expected - 136 # Datafusion - Expected - 96 # Datafusion - Expected - 192 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "tab1\.col2 \+ tab1\.col0 \+ tab1\.col2 \+ \(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, col2 + + col0 + col2 + - col0 AS col0 FROM tab1 +---- +118 +136 +192 +59 +68 +96 query I rowsort label-8333 SELECT DISTINCT + COUNT ( col1 ) AS col1 FROM tab2 @@ -50411,8 +51033,15 @@ SELECT ALL CAST ( - + col1 AS INTEGER ) AS col0 FROM tab1 # Datafusion - Expected - 5264 # Datafusion - Expected - 86 # Datafusion - Expected - 6177 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "tab2\.col0 \* Int64\(83\) \- Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 AS col0, + col0 * + 83 - 48 AS col0 FROM tab2 +---- +3770 +5264 +6177 +86 +86 +86 query I rowsort SELECT - col0 FROM tab2 WHERE NOT + ( + 1 ) NOT IN ( - 70 + - col0 + col0 + - col0 / + 64, col2 + - - col0 - col2, - col1 ) @@ -51035,8 +51664,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 + + col1 + - + 24 IS NOT NU # Datafusion - Expected - 59 # Datafusion - Expected - 7204 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \+ \(\- tab1\.col2\) \+ tab1\.col0 \* Int64\(79\) \+ tab1\.col2 AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 15 + - + col2 + + col0 * + + 79 + + col2 col0, col2 AS col0 FROM tab1 +---- +4044 +59 +6730 +68 +7204 +96 query III rowsort SELECT * FROM tab2 WHERE NULL <= + col0 * + - col2 @@ -51645,8 +52281,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ), + COUNT ( * ) FROM tab0 +---- +3 +3 query I rowsort label-8546 SELECT DISTINCT - + MAX ( ALL + col1 ) - + COUNT ( 31 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL @@ -51954,8 +52593,11 @@ SELECT + + 30 / + 42 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 0 -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\(\-8\) / Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MAX ( + col0 ) AS col1, - 8 / 39 col1 FROM tab1 AS cor0 +---- +-91 +0 query I rowsort SELECT + 81 * ( + col1 ) col1 FROM tab0 AS cor0 @@ -52624,8 +53266,15 @@ SELECT - col0 + + 37 AS col1 FROM tab0 # Datafusion - Expected - -28 # Datafusion - Expected - 93 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ tab0\.col1 \+ \(\- \(\- CAST\(\(\- tab0\.col2\) AS Int32\)\)\) \+ Int64\(\-69\) \+ tab0\.col1 AS col2" at position 0 and "CAST\(Int64\(\-28\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 + col1 + - - CAST ( - col2 AS INTEGER ) + - 69 + + col1 col2, CAST ( - 28 AS INTEGER ) AS col2 FROM tab0 +---- +-27 +-28 +-28 +-28 +-67 +93 query III rowsort SELECT ALL * FROM tab1 WHERE - + col2 <> NULL @@ -52815,8 +53464,15 @@ SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN 57 * CAST ( 84 AS INTEGER ) AND + # Datafusion - Expected - -29 # Datafusion - Expected - NULL # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) / \(\- cor0\.col1\) \+ CAST\(NULL AS Int32\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 58 / - col1 + + + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col2, - 29 col2 FROM tab1 AS cor0 +---- +-29 +-29 +-29 +NULL +NULL +NULL query III rowsort SELECT * FROM tab0 AS cor0 WHERE - 5 BETWEEN NULL AND NULL @@ -54718,8 +55374,10 @@ SELECT DISTINCT col0 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 91177381a0601a1f3ecbea8b6219c789 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 1 and "cor0\.col2 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 23 AS col2, - col1 AS col1, + col2 AS col1 FROM tab2 AS cor0 +---- +9 values hashing to a4e6e459a6e5853d5d33ca3865e81660 query I rowsort SELECT ALL + ( - col0 ) + + - col2 col0 FROM tab0 AS cor0 @@ -54742,8 +55400,15 @@ SELECT ALL - + 83 + + col0 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 73 # Datafusion - Expected - -99 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- tab0\.col1\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 * - col1 AS col1, 73 AS col1 FROM tab0 +---- +-210 +-3807 +-99 +73 +73 +73 query I rowsort SELECT DISTINCT + col1 * ( - + col1 ) AS col2 FROM tab0 @@ -55002,8 +55667,15 @@ SELECT ALL col1, - col1 * col1 + 3 FROM tab1 # Datafusion - Expected - -1 # Datafusion - Expected - -5 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col0" at position 0 and "tab1\.col2 / \(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, col2 / - col1 AS col0 FROM tab1 +---- +-1 +-11 +-14 +-47 +-5 +-6 query III rowsort SELECT * FROM tab0 WHERE NOT + col2 * col0 + + col0 IS NULL @@ -56181,8 +56853,15 @@ SELECT DISTINCT 17, + 9 AS col2 FROM tab1 # Datafusion - Expected - 81 # Datafusion - Expected - -99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col2, + col1 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +1 +21 +81 query I rowsort label-9290 SELECT ALL + 49 / - COUNT ( DISTINCT col2 ) FROM tab2 AS cor0 @@ -56807,8 +57486,15 @@ SELECT ALL * FROM tab1 WHERE + col0 + 74 + + 29 * + col2 * + 73 IS NOT NULL # Datafusion - Expected - -2150 # Datafusion - Expected - 75 # Datafusion - Expected - -2150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "Int64\(\-43\) \* Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, - 43 * 50 AS col1 FROM tab2 WHERE + col0 IS NOT NULL +---- +-2150 +-2150 +-2150 +46 +64 +75 query I rowsort label-9402 SELECT ALL + COUNT ( + - 11 ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) @@ -57309,8 +57995,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, + 42 AS col2 FROM tab0 +---- +-3 +42 query I rowsort label-9487 SELECT ( COUNT ( * ) ) col0 FROM tab1 @@ -57413,8 +58102,15 @@ SELECT - - ( 58 ) * + 62 AS col2 FROM tab2 cor0 # Datafusion - Expected - 77 # Datafusion - Expected - 207 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) / cor0\.col0 \+ cor0\.col1 \- \(\- cor0\.col2\) \+ cor0\.col2 AS col1" at position 0 and "Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 93 / col0 + + col1 - + - col2 + col2 AS col1, 77 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN + col2 * 30 * - col0 AND - 35 +---- +124 +184 +207 +77 +77 +77 query I rowsort SELECT ALL - - 28 * - + 92 AS col1 FROM tab2 AS cor0 @@ -57437,8 +58133,15 @@ SELECT + col0 * + + col1 FROM tab0 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 6648 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* cor0\.col1 \+ cor0\.col1 \+ Int64\(26\) \+ \(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 86 * col1 + col1 + + + 26 + - + col1 col0, col1 AS col0 FROM tab2 AS cor0 +---- +4412 +51 +5788 +6648 +67 +77 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -58362,8 +59065,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, 97 AS col0 FROM tab0 +---- +3 +97 query II rowsort label-9661 SELECT DISTINCT ( - + CAST ( NULL AS INTEGER ) ) / col0 * col0 * - col2, col0 FROM tab0 @@ -58419,8 +59125,11 @@ 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\(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\. +query II valuesort SELECT + + COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 +---- +3 +3 query I rowsort SELECT ALL + + col1 + + - col0 AS col2 FROM tab2 AS cor0 @@ -59442,8 +60151,15 @@ SELECT 0 * + - COUNT ( * ) FROM tab2 # Datafusion - Expected - -61 # Datafusion - Expected - 91 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, - 61 col1 FROM tab1 +---- +-61 +-61 +-61 +51 +85 +91 query I rowsort SELECT ALL 13 * 88 AS col2 FROM tab0 @@ -59660,8 +60376,15 @@ SELECT - + col0 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 38 # Datafusion - Expected - 97 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col2, 38 AS col2 FROM tab0 +---- +15 +38 +38 +38 +87 +97 query II rowsort label-9877 SELECT DISTINCT - 6 AS col1, COUNT ( * ) AS col2 FROM tab0 @@ -59717,8 +60440,15 @@ SELECT - col2 / + - col0 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, + col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT DISTINCT - col2 * + col0 + + col1 AS col2 FROM tab2 AS cor0 @@ -59787,8 +60517,10 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 9bcba279894805172e644eeb93a32cd3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(80\) \+ tab0\.col0 AS col2" at position 1 and "Int64\(31\) \+ Int64\(\-60\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + col2 AS col1, ( + ( 42 ) ) * + 80 + col0 AS col2, + ( + 31 ) + - 60 AS col2 FROM tab0 +---- +9 values hashing to edaea8fe8395ab11fcfb81cec12f1c02 query I rowsort label-9897 SELECT CAST ( col1 AS INTEGER ) * - 47 + - col1 AS col2 FROM tab1 @@ -60220,8 +60952,11 @@ SELECT * FROM tab2 WHERE NOT NULL = - 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 AS col2, COUNT ( * ) col2 FROM tab2 +---- +25 +3 query III rowsort SELECT * FROM tab2 WHERE NOT - col2 <> - 74 diff --git a/data/sqlite/random/aggregates/slt_good_78.slt b/data/sqlite/random/aggregates/slt_good_78.slt index e81eb53..fd20d0b 100644 --- a/data/sqlite/random/aggregates/slt_good_78.slt +++ b/data/sqlite/random/aggregates/slt_good_78.slt @@ -1374,8 +1374,15 @@ SELECT + + col0 AS col2, col1 FROM tab2 AS cor0 WHERE - 21 < + col1 + + + col2 # Datafusion - Expected - -47 # Datafusion - Expected - 42 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-42\)\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + - 42 ) AS col1, - col1 AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +42 +42 +42 query I rowsort SELECT - col1 * + col2 * + col1 AS col1 FROM tab2 AS cor0 @@ -3011,8 +3018,9 @@ SELECT ALL + MAX ( ALL col2 ) FROM tab2 58 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(\-59\) / cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col0, - 59 / + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col0 + + col1 * + col1 NOT IN ( - 33 ) +---- query I rowsort SELECT DISTINCT 38 col0 FROM tab1 cor0 @@ -3558,8 +3566,11 @@ SELECT ALL ( + - col2 ) AS col0 FROM tab1 WHERE NOT + col1 + + col1 + - col0 >= # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 54 AS col0 FROM tab1 +---- +54 +NULL query I rowsort label-598 SELECT - - COUNT ( * ) * + - 17 col0 FROM tab1 cor0 @@ -4988,8 +4999,11 @@ SELECT - 73 AS col0, MAX ( DISTINCT - 35 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 51 AS col1, COUNT ( * ) col1 FROM tab1 AS cor0 +---- +3 +51 query I rowsort label-840 SELECT 63 - - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 * - + ( + - col2 ) IS NOT NULL @@ -5106,8 +5120,9 @@ SELECT ALL COUNT ( * ) * 12 FROM tab0 36 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(80\) / cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 16 AS col0, 80 / col0 AS col0 FROM tab0 AS cor0 WHERE ( + 90 IS NULL ) +---- query I rowsort label-860 SELECT ALL SUM ( - + 18 ) + - - MIN ( - 74 ) AS col1 FROM tab0 AS cor0 @@ -5989,8 +6004,15 @@ SELECT ALL * FROM tab2 WHERE NULL <= + 48 * 44 # Datafusion - Expected - -2210 # Datafusion - Expected - 91 # Datafusion - Expected - -2366 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "\(\- tab1\.col0\) \* Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, - col0 * 26 col2 FROM tab1 +---- +-1326 +-2210 +-2366 +51 +85 +91 query III rowsort SELECT * FROM tab1 WHERE NULL NOT IN ( col0 + + col0 ) @@ -6092,8 +6114,11 @@ SELECT - MIN ( ALL - col1 ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- sum\(DISTINCT \(\- cor0\.col1\)\)\)\) / sum\(Int64\(\-50\)\) \- Int64\(71\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - SUM ( DISTINCT - col1 ) / SUM ( - 50 ) - + 71 AS col2, + 29 AS col2 FROM tab0 AS cor0 +---- +-71 +29 query I rowsort SELECT ALL 21 * 97 FROM tab1 @@ -6225,8 +6250,15 @@ SELECT DISTINCT - - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col2, col1 col2 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-1038 SELECT ALL COUNT ( ALL - - col2 ) FROM tab2 AS cor0 @@ -6481,8 +6513,15 @@ SELECT 78 AS col0 FROM tab0 cor0 WHERE NOT + 75 IN ( + - col0, 29 + + 39, - 50 ) # Datafusion - Expected - 0 # Datafusion - Expected - 960 # Datafusion - Expected - 1200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(64\)\) \* \(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col0 \* \(\- \(\- cor0\.col1\)\) \- cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 64 * - col0 AS col2, col0 * - - col1 - + + col0 col2 FROM tab0 AS cor0 +---- +0 +1200 +1740 +5568 +6208 +960 query I rowsort SELECT DISTINCT - ( + - 61 ) AS col0 FROM tab2 @@ -7623,8 +7662,15 @@ SELECT ALL + + COUNT ( - col2 ) AS col1 FROM tab0 AS cor0 # 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\(\-72\) AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 72 ) AS col2, 1 AS col2 FROM tab0 AS cor0 +---- +-72 +-72 +-72 +1 +1 +1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 @@ -7997,8 +8043,11 @@ SELECT - - ( + - SUM ( ALL + - col2 ) ) FROM tab2 AS cor0 # 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 "\(\- max\(DISTINCT \(\- cor0\.col2\)\)\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MAX ( DISTINCT - col2 ) AS col2, 36 AS col2 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN NULL AND NULL +---- +36 +NULL query I rowsort label-1330 SELECT + - CAST ( COUNT ( * ) AS INTEGER ) * + - COUNT ( * ) / SUM ( ALL + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 cor0 @@ -8181,8 +8230,11 @@ SELECT col1 + - + col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40392 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \* sum\(DISTINCT tab1\.col1\) \* Int64\(\-17\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 36 * SUM ( DISTINCT + col1 ) * + - 17 AS col2, COUNT ( * ) AS col2 FROM tab1 +---- +-40392 +3 query I rowsort label-1361 SELECT ALL - 91 / + col1 AS col1 FROM tab0 @@ -8466,8 +8518,15 @@ SELECT - 12 * ( + 66 ) * - + col2 * + col0 + + 97 FROM tab1 # Datafusion - Expected - -4260 # Datafusion - Expected - 14 # Datafusion - Expected - -697 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(Int64\(14\) AS Int32\) AS Int32\) AS col1" at position 0 and "Int64\(17\) \+ tab1\.col1 \* \(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( + CAST ( 14 AS INTEGER ) AS INTEGER ) col1, 17 + col1 * - + col0 col1 FROM tab1 +---- +-408 +-4260 +-697 +14 +14 +14 query II rowsort label-1406 SELECT - CAST ( - + 99 AS INTEGER ) AS col2, + ( - col1 ) * + col1 AS col1 FROM tab0 AS cor0 @@ -9123,8 +9182,11 @@ SELECT * FROM tab0 AS cor0 WHERE NOT - col2 <> col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 AS col1, COUNT ( * ) AS col1 FROM tab0 +---- +3 +80 query I rowsort label-1511 SELECT ALL + ( - MAX ( - col1 ) ) FROM tab1 @@ -9423,8 +9485,10 @@ SELECT ALL - 11 + - - col1 col2, col1 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to 351cad50d7de4bfbe1f1eb91a244209a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 21 AS col0, 29 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 +---- +18 values hashing to 1018b4f80ea6ab9eb355933b1a20ca19 query I rowsort SELECT ALL - 49 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL @@ -9654,8 +9718,11 @@ SELECT ALL * FROM tab1 WHERE NOT + col1 * + - col1 + + 2 <> NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 800 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* \(\- \(\- Int64\(32\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 25 * - ( - + 32 ) AS col1, COUNT ( * ) * - CAST ( NULL AS INTEGER ) col1 FROM tab2 +---- +800 +NULL query I rowsort label-1597 SELECT + 78 + - + SUM ( + - col2 ) AS col0 FROM tab1 @@ -10173,8 +10240,11 @@ SELECT DISTINCT 24 - 39 AS col0 FROM tab2 AS cor0 WHERE NOT + ( + - col1 ) IS 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\(DISTINCT tab1\.col0\)\)\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + - COUNT ( DISTINCT col0 ) ) AS col0, 51 AS col0 FROM tab1 +---- +3 +51 query I rowsort label-1689 SELECT ALL - COUNT ( * ) + - 63 AS col1 FROM tab1 @@ -10267,8 +10337,11 @@ 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\(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\. +query II valuesort SELECT ALL - + COUNT ( * ) AS col0, 80 col0 FROM tab0 AS cor0 +---- +-3 +80 query I rowsort SELECT ALL + - col1 * - col2 AS col2 FROM tab1 cor0 @@ -10426,8 +10499,15 @@ SELECT col0 * + 91 * + ( col0 ) AS col2 FROM tab1 # Datafusion - Expected - 71 # Datafusion - Expected - 58 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, + 71 AS col0 FROM tab2 +---- +23 +40 +58 +71 +71 +71 query I rowsort label-1727 SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * - + col2 NOT IN ( col2 * + col0 + + col2 * CAST ( NULL AS INTEGER ) ) @@ -10455,8 +10535,15 @@ NULL # Datafusion - Expected - 4624 # Datafusion - Expected - NULL # Datafusion - Expected - 9216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- \(\- cor0\.col2\)\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, - ( - col2 ) * col2 AS col2 FROM tab1 AS cor0 +---- +3481 +4624 +9216 +NULL +NULL +NULL query I rowsort label-1732 SELECT ALL - + MIN ( DISTINCT + col0 ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - 26 @@ -10663,8 +10750,15 @@ NULL # Datafusion - Expected - 91 # Datafusion - Expected - -480 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* \(\- tab1\.col2\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 5 * - + col2 col1, col0 AS col1 FROM tab1 +---- +-295 +-340 +-480 +51 +85 +91 query I rowsort label-1766 SELECT CAST ( - - 70 AS INTEGER ) * + - col2 AS col2 FROM tab1 @@ -11092,8 +11186,15 @@ SELECT ALL - 2 + col1 + col1 + - ( - 92 ) FROM tab2 AS cor0 # Datafusion - Expected - 61 # Datafusion - Expected - 81 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col2, 61 AS col2 FROM tab0 +---- +1 +21 +61 +61 +61 +81 query I rowsort label-1837 SELECT + 80 * COUNT ( * ) FROM tab0 @@ -12004,8 +12105,15 @@ SELECT ALL ( + + col2 ) + col1 AS col1 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - -96 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 col0, col1 AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +14 +47 +5 query I rowsort label-1982 SELECT ALL - COUNT ( * ) * 80 + + COUNT ( ALL CAST ( NULL AS INTEGER ) ) + + CAST ( COUNT ( * ) AS INTEGER ) col0 FROM tab2 cor0 @@ -13301,8 +13409,11 @@ SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int32\) AS Int32\) AS col1" at position 0 and "Int64\(\-49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, - 49 col1 FROM tab1 AS cor0 +---- +-49 +NULL query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 <> 91 * - col2 @@ -13851,8 +13962,10 @@ SELECT ALL 28 * - + 87 FROM tab1 AS cor0 WHERE NOT col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 13382bf971ba1f96710837a0c8f9775e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ Int64\(90\) AS col2" at position 1 and "cor0\.col0 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + - 68 AS col1, + 95 + 90 AS col2, col0 AS col2 FROM tab1 AS cor0 +---- +9 values hashing to a469cc8ece519d4129e077bf5fc85d8d query II rowsort SELECT + + 9, + 37 * + 73 AS col2 FROM tab1 cor0 @@ -15050,8 +15163,15 @@ SELECT DISTINCT + SUM ( + 47 ) FROM tab2 # Datafusion - Expected - 23 # Datafusion - Expected - 58 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 col0, 23 AS col0 FROM tab2 cor0 +---- +23 +23 +23 +23 +40 +58 query I rowsort SELECT - - 85 * - + 90 col0 FROM tab2 AS cor0 @@ -15963,8 +16083,15 @@ SELECT * FROM tab0 WHERE - + col2 * col2 + - col0 IS NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col0, col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-2646 SELECT - ( COUNT ( * ) ) * - MIN ( col2 ) + + + COUNT ( * ) FROM tab1 @@ -16420,8 +16547,11 @@ SELECT ALL + 61 AS col2 FROM tab2 AS cor0 WHERE col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- cor0\.col0\)\) AS col1" at position 0 and "CAST\(Int64\(96\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( ALL - + col0 ) AS col1, + CAST ( + 96 AS INTEGER ) col1 FROM tab2 cor0 +---- +-46 +96 query I rowsort label-2722 SELECT DISTINCT MIN ( ALL - col0 ) AS col1 FROM tab1 AS cor0 @@ -16816,8 +16946,12 @@ 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\(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\. +query III valuesort SELECT ALL COUNT ( * ), ( - COUNT ( * ) ) / + 26 AS col0, + COUNT ( * ) FROM tab1 +---- +0 +3 +3 query I rowsort SELECT + ( - 54 ) AS col1 FROM tab0 WHERE NOT - + col0 IS NULL @@ -17441,8 +17575,15 @@ NULL # Datafusion - Expected - 129 # Datafusion - Expected - 96 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "Int64\(38\) \+ tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, 38 + + col0 AS col0 FROM tab1 +---- +123 +129 +59 +68 +89 +96 query I rowsort SELECT DISTINCT 4 * - col0 FROM tab0 @@ -17798,8 +17939,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) FROM tab0 +---- +3 +3 query I rowsort SELECT + col0 * - 76 FROM tab0 WHERE NULL IS NOT NULL @@ -18102,8 +18246,15 @@ NULL # Datafusion - Expected - 66 # Datafusion - Expected - -379520 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \- tab2\.col1 \* tab2\.col0 \* tab2\.col1 AS col1" at position 0 and "tab2\.col0 / \(\- tab2\.col1\) \+ \(\- \(\- tab2\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 - col1 * col0 * col1 AS col1, col0 / - col1 + - - col1 AS col1 FROM tab2 +---- +-119692 +-336750 +-379520 +51 +66 +77 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -19215,8 +19366,15 @@ SELECT DISTINCT * FROM tab0 WHERE NOT - + 36 * + 88 BETWEEN - - col2 AND NULL # Datafusion - Expected - -47 # Datafusion - Expected - -8 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col1" at position 0 and "\(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 8 col1, - col2 AS col1 FROM tab0 +---- +-10 +-47 +-8 +-8 +-8 +-99 query I rowsort SELECT ALL - 86 * 60 FROM tab2 AS cor0 @@ -19470,8 +19628,15 @@ SELECT DISTINCT + col2 / - col0 * + - col0 FROM tab2 cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, col0 AS col2 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT - 78 * + col0 AS col2 FROM tab2 AS cor0 @@ -20064,8 +20229,15 @@ SELECT + 18 AS col0 FROM tab1 cor0 WHERE col1 - - + col2 * + + col0 / 7 IS NULL # Datafusion - Expected - 97 # Datafusion - Expected - -81 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, col2 + col0 AS col0 FROM tab0 AS cor0 WHERE NOT - 34 IS NULL +---- +-1 +-21 +-81 +196 +62 +97 query I rowsort SELECT - col1 + - col2 AS col2 FROM tab1 cor0 @@ -20188,8 +20360,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 65 col2, + 30 * - COUNT ( * ) AS col2 FROM tab1 +---- +-90 +65 query I rowsort SELECT - col1 + - col0 + + - col1 col2 FROM tab2 WHERE NOT ( col0 ) IS NULL @@ -20312,8 +20487,15 @@ SELECT * FROM tab2 WHERE - 63 >= col1 # Datafusion - Expected - -64 # Datafusion - Expected - 7 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "\(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 7 AS col0, - col0 AS col0 FROM tab2 +---- +-46 +-64 +-75 +7 +7 +7 query I rowsort SELECT ALL ( + - 93 ) + + - col0 AS col1 FROM tab1 @@ -20693,8 +20875,15 @@ SELECT 79 / COUNT ( * ) AS col2 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col0 \+ Int64\(\-79\) / Int64\(27\) \* CAST\(cor0\.col0 AS Int32\) \* CAST\(NULL AS Int32\) \* Int64\(\-41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 col0, + col0 + - 79 / + 27 * + CAST ( + col0 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) * + ( - 41 ) AS col0 FROM tab2 cor0 +---- +23 +40 +58 +NULL +NULL +NULL query I rowsort SELECT DISTINCT + - col2 + + ( - col1 ) * - + col1 FROM tab0 cor0 @@ -20770,8 +20959,11 @@ SELECT DISTINCT + col1, + 66 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 135 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "Int64\(61\) \+ \(\- max\(Int64\(\-74\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 32 AS col0, 61 + - MAX ( ALL - 74 ) AS col0 FROM tab0 AS cor0 +---- +135 +32 query II rowsort label-3445 SELECT - 30, - col1 / + col1 col0 FROM tab1 AS cor0 @@ -21435,8 +21627,11 @@ SELECT ALL - col1 + + CAST ( - 1 AS INTEGER ) + - col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- cor0\.col2\)\)\) \+ \(\- count\(cor0\.col2\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MIN ( - col2 ) + - + COUNT ( col2 ) AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +3 +55 query I rowsort SELECT - col0 + + - col1 AS col2 FROM tab0 @@ -21778,8 +21973,15 @@ SELECT ALL - 55 * + ( + col0 ) * col1 + + 90 / + + col0 + - - col2 FROM tab1 AS # Datafusion - Expected - 91 # Datafusion - Expected - -159 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ \(\- cor0\.col2\) AS col0" at position 0 and "Int64\(3\) \- Int64\(\-88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - + col0 ) + - col2 AS col0, 3 - - 88 AS col0 FROM tab1 AS cor0 +---- +-144 +-147 +-159 +91 +91 +91 query I rowsort label-3615 SELECT - + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1 cor0 @@ -21943,8 +22145,15 @@ SELECT DISTINCT col1, 34 AS col2 FROM tab0 # Datafusion - Expected - -32 # Datafusion - Expected - -99 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col0" at position 0 and "\(\- tab0\.col2\) \+ tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, - col2 + col0 col0 FROM tab0 +---- +-10 +-2 +-32 +-47 +-99 +77 query I rowsort SELECT ALL - 8 * - - 8 FROM tab2 @@ -22415,8 +22624,15 @@ SELECT col1 + + + col0 + + + ( col2 ) - - 17 * col1 + + 88 AS col1 FROM tab0 AS # Datafusion - Expected - 5605 # Datafusion - Expected - -3006 # Datafusion - Expected - 6460 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col1 \- \(\- cor0\.col2\) \+ Int64\(90\) \+ Int64\(32\) AS col0" at position 0 and "\(\- cor0\.col2\) \* Int64\(5\) \* Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 * + col1 - - col2 + 90 + 32 AS col0, - col2 * + 5 * - 19 col0 FROM tab1 AS cor0 +---- +-1126 +-114 +-3006 +5605 +6460 +9120 query I rowsort label-3715 SELECT - col0 / + col0 - - col2 FROM tab0 cor0 @@ -23137,8 +23353,10 @@ SELECT + 11 AS col1, + 99 * - + COUNT ( * ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a251fa60b91743102e2fd1f4291d72a9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \- \(\- cor0\.col1\) AS col2" at position 1 and "\(\- cor0\.col2\) \* cor0\.col0 \* cor0\.col2 / cor0\.col0 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + + col2 + col1 AS col1, 24 - - col1 col2, + - col2 * + col0 * col2 / col0 col2 FROM tab0 AS cor0 +---- +9 values hashing to 080f97bfb5766ee6e5d33b1d07b767a4 query III rowsort SELECT * FROM tab1 AS cor0 WHERE + 7 IS NOT NULL @@ -23362,8 +23580,15 @@ SELECT 26 / + col1 FROM tab0 AS cor0 # Datafusion - Expected - 108 # Datafusion - Expected - 58 # Datafusion - Expected - 126 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 \- Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 col0, col2 - - 68 AS col0 FROM tab2 AS cor0 +---- +108 +126 +23 +40 +58 +91 query I rowsort label-3873 SELECT - + 1 / + + COUNT ( * ) * - + 9 + + 88 FROM tab2 AS cor0 @@ -23386,8 +23611,15 @@ SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 24 IS NOT NULL # Datafusion - Expected - 33 # Datafusion - Expected - 96 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col2 col0, 33 col0 FROM tab1 AS cor0 +---- +33 +33 +33 +59 +68 +96 query I rowsort label-3877 SELECT ALL - CAST ( - 7 AS INTEGER ) AS col0 FROM tab1 AS cor0 @@ -24396,8 +24628,15 @@ SELECT + 15 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) < ( - + 23 ) # Datafusion - Expected - -47 # Datafusion - Expected - NULL # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, - col1 AS col1 FROM tab1 +---- +-14 +-47 +-5 +NULL +NULL +NULL query I rowsort SELECT DISTINCT + col1 col1 FROM tab2 WHERE NOT ( - col0 + ( + + ( - - ( 68 ) ) ) ) IS NOT NULL @@ -24970,8 +25209,15 @@ SELECT DISTINCT 34 / + col1 + 75 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 4624 # Datafusion - Expected - 85884 # Datafusion - Expected - 9216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(33\) \* \(\- cor0\.col0\) \+ cor0\.col0 AS col2" at position 0 and "cor0\.col2 \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col0 * 33 * - col0 + col0 AS col2, + col2 * + col2 AS col2 FROM tab1 AS cor0 +---- +238510 +273364 +3481 +4624 +85884 +9216 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE - 53 > - + col1 + + 33 @@ -25465,8 +25711,15 @@ SELECT * FROM tab0 WHERE NOT 63 IS NOT NULL # Datafusion - Expected - -10 # Datafusion - Expected - 81 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, - col2 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +1 +21 +81 query I rowsort SELECT ALL + 69 * + - col1 - - - col0 FROM tab0 AS cor0 WHERE - col0 * - col2 NOT BETWEEN + + col0 AND NULL @@ -25560,8 +25813,11 @@ SELECT ALL 64 + CAST ( + col2 AS INTEGER ) * + + col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, 46 AS col1 FROM tab2 AS cor0 +---- +3 +46 query I rowsort SELECT DISTINCT - col1 - - col1 AS col2 FROM tab0 AS cor0 WHERE + 44 * col1 * ( - - 62 ) IS NOT NULL @@ -26335,8 +26591,15 @@ SELECT ALL - col2 - - + col2 + + + 10 AS col2 FROM tab2 # Datafusion - Expected - 97 # Datafusion - Expected - 81 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col2 \+ tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 col2, col2 + col0 AS col2 FROM tab0 +---- +1 +196 +21 +62 +81 +97 query I rowsort SELECT - ( - 53 ) AS col0 FROM tab0 @@ -27128,8 +27391,15 @@ SELECT * FROM tab0 AS cor0 WHERE ( NULL = col2 ) # Datafusion - Expected - -77 # Datafusion - Expected - 82 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \+ cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 24 + col2 AS col0, + ( - col1 ) AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +47 +64 +82 query II rowsort label-4502 SELECT DISTINCT - COUNT ( * ), 29 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + 70 * + col1 AND NULL @@ -28617,8 +28887,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col0, COUNT ( * ) * + ( + COUNT ( * ) ) * 83 * + - COUNT ( * ) col0 FROM tab0 AS cor0 +---- +-2241 +-3 query I rowsort SELECT DISTINCT col1 - + 34 FROM tab1 @@ -28853,8 +29126,11 @@ SELECT - ( 56 ) FROM tab0 WHERE NOT + col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "max\(tab2\.col1\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) col2, MAX ( ALL col1 ) * - CAST ( NULL AS INTEGER ) col2 FROM tab2 +---- +-3 +NULL query II rowsort label-4780 SELECT ALL ( + - 51 ) AS col2, - COUNT ( * ) FROM tab1 @@ -28879,8 +29155,15 @@ SELECT + 51 * 68 AS col2, 54 col1 FROM tab2 # Datafusion - Expected - -1833 # Datafusion - Expected - 99 # Datafusion - Expected - -3861 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 \* Int64\(\-39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, col2 * - 39 AS col1 FROM tab0 AS cor0 +---- +-1833 +-3861 +-390 +10 +47 +99 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - - col2 ) = col0 @@ -30864,8 +31147,15 @@ SELECT ALL + 79 + - col1 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 2048 # Datafusion - Expected - NULL # Datafusion - Expected - 2048 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \+ \(\- cor0\.col0\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(64\) \* Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 62 ) + - col0 / CAST ( NULL AS INTEGER ) AS col1, 64 * 32 AS col1 FROM tab0 AS cor0 +---- +2048 +2048 +2048 +NULL +NULL +NULL query I rowsort label-5122 SELECT DISTINCT - - col0 / 86 FROM tab2 AS cor0 @@ -30938,8 +31228,11 @@ SELECT - col0 * + col2 * + - col1 AS col1 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 col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 87 AS col1, 3 col1 FROM tab2 +---- +3 +87 query I rowsort SELECT - 15 * - col1 AS col0 FROM tab0 @@ -31256,8 +31549,11 @@ SELECT ALL 18, + col0 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -176 # Datafusion - Expected - 828 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* min\(Int64\(16\)\) AS col1" at position 0 and "Int64\(92\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 11 * MIN ( + 16 ) AS col1, + 92 * + COUNT ( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) +---- +-176 +828 query I rowsort label-5185 SELECT + MIN ( ALL ( - 12 ) ) AS col0 FROM tab1 @@ -31349,8 +31645,15 @@ SELECT ALL col2 * - - col1 col0 FROM tab1 cor0 # Datafusion - Expected - 1 # Datafusion - Expected - -91 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 col1, 1 AS col1 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +1 +1 +1 query I rowsort SELECT DISTINCT ( + + 21 ) AS col1 FROM tab1 @@ -31676,8 +31979,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT ( - 59 ) NOT BETWEEN - col0 * - col0 AND - # Datafusion - Expected - -3886 # Datafusion - Expected - 77 # Datafusion - Expected - -3080 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col2, ( col1 ) * - + col2 AS col2 FROM tab2 AS cor0 +---- +-1173 +-3080 +-3886 +51 +67 +77 query II rowsort SELECT DISTINCT + + col2 AS col1, - col1 FROM tab2 AS cor0 @@ -31703,8 +32013,11 @@ SELECT ALL + col2 * col2 AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL # 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\(DISTINCT \(\- \(\- cor0\.col2\)\)\) / Int64\(47\) AS col1" at position 0 and "Int64\(\-4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( DISTINCT - - col2 ) / + 47 AS col1, - 4 AS col1 FROM tab0 AS cor0 +---- +-4 +0 query I rowsort SELECT DISTINCT + - col2 FROM tab0 WHERE NOT NULL IS NOT NULL @@ -32944,8 +33257,11 @@ SELECT ALL * FROM tab2 WHERE - col1 / + - CAST ( NULL AS INTEGER ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col2, + 69 AS col2 FROM tab0 cor0 +---- +3 +69 query I rowsort SELECT - 96 * - - col0 FROM tab1 AS cor0 @@ -33405,8 +33721,15 @@ SELECT * FROM tab2 WHERE NOT - 17 NOT BETWEEN NULL AND - + 8 # Datafusion - Expected - -75 # Datafusion - Expected - -77 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col2" at position 0 and "\(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 col2, - col0 col2 FROM tab2 +---- +-46 +-51 +-64 +-67 +-75 +-77 query I rowsort label-5536 SELECT + COUNT ( * ) FROM tab2 WHERE NOT + - 14 * + + col1 IS NULL @@ -34028,8 +34351,11 @@ SELECT + col0, col2 AS col1 FROM tab1 AS cor0 # 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 "\(\- Int64\(\-34\)\) 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 II valuesort SELECT - - 34 AS col0, + MAX ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0 +---- +34 +81 query I rowsort SELECT ALL - 27 * col1 AS col1 FROM tab1 @@ -34406,8 +34732,11 @@ SELECT - col1 + + 17 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - -121 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) 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 II valuesort SELECT DISTINCT + - 54 col1, + SUM ( - col2 ) AS col1 FROM tab2 AS cor0 +---- +-121 +-54 query II rowsort SELECT DISTINCT + 15 * - - col1, + col2 FROM tab0 AS cor0 @@ -35875,8 +36204,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 74 AS col0, COUNT ( * ) / 53 col0 FROM tab0 +---- +-74 +0 query I rowsort SELECT 94 col2 FROM tab2 WHERE NOT + - col2 + - col0 <= NULL @@ -36155,8 +36487,15 @@ SELECT ALL * FROM tab2 WHERE NOT col0 - + + col2 * - col2 IS NOT NULL # Datafusion - Expected - -77 # Datafusion - Expected - 5220 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \* Int64\(90\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 * + 90 AS col1, - col1 AS col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +2070 +3600 +5220 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT - 78 BETWEEN ( + col2 ) * + 91 * + ( + col0 ) - 50 AND + ( - col1 ) @@ -36298,8 +36637,15 @@ SELECT ALL + COUNT ( * ) * - ( - + ( MIN ( DISTINCT + col2 ) ) ) AS col1, 95 AS # Datafusion - Expected - -76 # Datafusion - Expected - 77 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, - 76 AS col2 FROM tab2 +---- +-76 +-76 +-76 +51 +67 +77 query I rowsort SELECT 77 * 98 FROM tab0 AS cor0 @@ -37944,8 +38290,15 @@ SELECT CAST ( - - 79 AS INTEGER ) * - CAST ( + - col1 AS INTEGER ) FROM tab0 # Datafusion - Expected - -5852 # Datafusion - Expected - -1875 # Datafusion - Expected - -5092 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \* tab2\.col0 AS col2" at position 0 and "Int64\(76\) \* CAST\(\(\- tab2\.col1\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 25 * + col0 AS col2, 76 * + CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 +---- +-1150 +-1600 +-1875 +-3876 +-5092 +-5852 query I rowsort label-6273 SELECT 62 / SUM ( + ( col0 ) ) AS col1 FROM tab0 AS cor0 @@ -38150,8 +38503,15 @@ SELECT * FROM tab0 WHERE NOT - + col1 + + col0 > NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col2, col0 AS col2 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT DISTINCT 37 * col2 + col1 FROM tab0 WHERE ( - 15 * - - col0 * ( col1 ) ) <= 27 + - + col1 / + col1 @@ -38388,8 +38748,15 @@ SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 28 < + 41 # Datafusion - Expected - 278487 # Datafusion - Expected - 52 # Datafusion - Expected - 529830 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col0" at position 0 and "Int64\(29\) \* \(\- tab0\.col1\) \* tab0\.col2 \* \(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 AS col0, 29 * - col1 * col2 * - + col0 AS col0 FROM tab0 +---- +1656045 +278487 +52 +52 +52 +529830 query I rowsort SELECT DISTINCT col0 * - + 78 AS col1 FROM tab0 @@ -39110,8 +39477,15 @@ SELECT DISTINCT - 16 + + 95 - - + ( 61 ) FROM tab2 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 92 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \+ \(\- cor0\.col0\) / \(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col0 + + - col0 / - col2 AS col1, + ( + col0 ) AS col1 FROM tab1 AS cor0 +---- +51 +51 +85 +86 +91 +92 query I rowsort SELECT ALL + 27 - - col1 - - + col2 AS col2 FROM tab0 AS cor0 @@ -39280,8 +39654,15 @@ SELECT ( + 26 ) + + MAX ( + col0 ) AS col2 FROM tab0 # Datafusion - Expected - 151 # Datafusion - Expected - NULL # Datafusion - Expected - 162 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(87\) \- \(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col1, + 87 - - col0 col1 FROM tab2 WHERE NOT NULL IS NOT NULL +---- +133 +151 +162 +NULL +NULL +NULL query II rowsort SELECT 90 col2, + col0 + col0 FROM tab0 @@ -39914,8 +40295,15 @@ SELECT - - col0 AS col0 FROM tab0 AS cor0 WHERE - 83 IS NULL # Datafusion - Expected - 68 # Datafusion - Expected - -46 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col2" at position 0 and "CAST\(cor0\.col2 AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 46 AS col2, CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0 +---- +-46 +-46 +-46 +59 +68 +96 query I rowsort SELECT DISTINCT - col1 FROM tab2 WHERE - - col0 >= + col2 * col0 + - col2 @@ -41695,8 +42083,15 @@ SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS # Datafusion - Expected - -21 # Datafusion - Expected - 61 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 AS col2, - col1 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +61 +61 +61 query I rowsort label-6888 SELECT - - 70 / + - 28 FROM tab0 AS cor0 @@ -42220,8 +42615,15 @@ NULL # Datafusion - Expected - -8 # Datafusion - Expected - -966 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \* Int64\(21\) AS col2" at position 0 and "\(\- tab2\.col0\) \+ \(\- \(\- tab2\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * + 21 AS col2, - col0 + - - col1 AS col2 FROM tab2 +---- +-1344 +-1575 +-8 +-966 +13 +5 query I rowsort SELECT col0 * - 24 FROM tab0 @@ -42472,8 +42874,9 @@ SELECT DISTINCT col0, col2 + + + col2 FROM tab1 AS cor0 136 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \+ cor0\.col0 \+ Int64\(34\) \* cor0\.col0 \* Int64\(11\) \+ CAST\(NULL AS Int32\) \+ \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(\-35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 36 + + col0 + + + 34 * col0 * 11 + + + CAST ( NULL AS INTEGER ) + - col0 AS col2, - 35 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - ( - col1 ), col0, - ( col2 ) * - col0, col2, + 27 ) +---- query I rowsort SELECT ALL col0 + - ( col0 ) FROM tab0 @@ -42553,8 +42956,11 @@ SELECT DISTINCT ( 97 ) col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 342 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) * 38 AS col0 FROM tab2, tab2 AS cor0 +---- +342 +9 query I rowsort SELECT - col0 + + + col2 - col0 FROM tab2 @@ -43704,8 +44110,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT - 19 <> ( - col2 ) # Datafusion - Expected - 40 # Datafusion - Expected - -75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col1, + col2 AS col1 FROM tab2 cor0 +---- +-46 +-64 +-75 +23 +40 +58 query I rowsort label-7214 SELECT + col0 / - - col0 FROM tab1 AS cor0 @@ -44734,8 +45147,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 16 * + col2 * + col2 * + col1 IN ( # Datafusion - Expected - -14 # Datafusion - Expected - 99 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(\-14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, - 14 AS col1 FROM tab0 AS cor0 +---- +-14 +-14 +-14 +10 +47 +99 query I rowsort SELECT ALL - ( + 20 ) AS col1 FROM tab0 AS cor0 @@ -44791,8 +45211,11 @@ SELECT - col0 * - 69 - - col2 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1872 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \* Int64\(\-48\) AS col1" at position 0 and "Int64\(75\) / \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 39 * - 48 AS col1, 75 / - col0 AS col1 FROM tab2 AS cor0 +---- +-1 +1872 query I rowsort label-7396 SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE 53 * - col1 / + 56 IS NOT NULL @@ -44957,8 +45380,15 @@ SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - 0 # Datafusion - Expected - 75 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col0 AS Int32\) AS col2" at position 0 and "\(\- \(\- cor0\.col0\)\) \- cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( + col0 AS INTEGER ) AS col2, ( - + ( - col0 ) ) - + col0 AS col2 FROM tab2 AS cor0 +---- +0 +0 +0 +46 +64 +75 query I rowsort label-7423 SELECT ALL + MIN ( DISTINCT 73 ) AS col0 FROM tab0 AS cor0 @@ -45034,8 +45464,11 @@ SELECT + ( + col0 ) - + col1 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \- \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 63 - - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab0 cor0 +---- +3 +NULL query II rowsort SELECT ALL - - col1 - - col0, col0 FROM tab2 AS cor0 @@ -45079,8 +45512,15 @@ SELECT - + col2 * + - col2 + - - col1 + 23 * - 31 AS col2 FROM tab0 cor0 # Datafusion - Expected - 67 # Datafusion - Expected - -166 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- cor0\.col1\) AS Int32\) \+ Int64\(\-89\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + CAST ( - col1 AS INTEGER ) ) + - 89 AS col0, col1 AS col0 FROM tab2 AS cor0 +---- +-140 +-156 +-166 +51 +67 +77 query I rowsort label-7442 SELECT ALL - SUM ( - - 5 ) AS col1 FROM tab0 AS cor0 @@ -45645,8 +46085,15 @@ SELECT * FROM tab2 AS cor0 WHERE col2 * + col0 <= NULL # Datafusion - Expected - -1 # Datafusion - Expected - 77 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "Int64\(47\) / Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col2, 47 / - 25 AS col2 FROM tab2 +---- +-1 +-1 +-1 +51 +67 +77 query I rowsort label-7535 SELECT 59 * + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL ) @@ -47113,8 +47560,15 @@ SELECT ( - col2 ) + + col1 * + ( + 87 ) FROM tab2 # Datafusion - Expected - 78 # Datafusion - Expected - -58 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 col1, + 78 AS col1 FROM tab2 +---- +-23 +-40 +-58 +78 +78 +78 query I rowsort label-7780 SELECT DISTINCT - COUNT ( * ) * 1 + - 51 AS col0 FROM tab0 @@ -47154,8 +47608,15 @@ SELECT DISTINCT - - COUNT ( * ) + - - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab # Datafusion - Expected - -80 # Datafusion - Expected - 5 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, - 80 AS col0 FROM tab1 AS cor0 +---- +-80 +-80 +-80 +14 +47 +5 query I rowsort SELECT + col2 AS col1 FROM tab0 WHERE - 20 <> + 26 @@ -47654,8 +48115,11 @@ SELECT col1 AS col2 FROM tab2 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab2 +---- +3 +3 query I rowsort SELECT ALL - col0 AS col2 FROM tab2 WHERE NULL IS NULL @@ -47747,8 +48211,15 @@ SELECT - COUNT ( - + CAST ( NULL AS INTEGER ) ) AS col1, - 88 AS col0 FROM tab0 # Datafusion - Expected - 58 # Datafusion - Expected - 88 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ Int64\(65\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 + 65 AS col1, ( col2 ) AS col1 FROM tab2 AS cor0 +---- +105 +123 +23 +40 +58 +88 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE ( + col0 ) NOT BETWEEN NULL AND col1 @@ -48145,8 +48616,15 @@ SELECT DISTINCT + + 3 + + + 9 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -518 # Datafusion - Expected - 81 # Datafusion - Expected - -6529 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "cor0\.col2 \+ \(\- cor0\.col0\) \- \(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - + col1 ) AS col2, col2 + - col0 - - + col1 * - col1 AS col2 FROM tab0 AS cor0 +---- +-518 +-6529 +1 +1 +21 +81 query II rowsort SELECT ALL col2 AS col1, 49 * col1 FROM tab2 @@ -48358,8 +48836,15 @@ SELECT - - COUNT ( * ) + - 16 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -91 # Datafusion - Expected - 96 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, - col0 AS col1 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +59 +68 +96 query I rowsort SELECT + 8 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 @@ -48626,8 +49111,15 @@ SELECT 69 * - 42 FROM tab0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0, col0 FROM tab1 cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-8025 SELECT + COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab0 cor0 @@ -48818,8 +49310,11 @@ SELECT DISTINCT - col0 + - + col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +3 +NULL query III rowsort SELECT ALL * FROM tab2 WHERE NOT + 94 <> - 31 @@ -50561,8 +51056,15 @@ SELECT + MIN ( DISTINCT - 28 ) * + + 87 col2 FROM tab2 AS cor0 # Datafusion - Expected - 4300 # Datafusion - Expected - -81 # Datafusion - Expected - 94987 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 \* Int64\(43\) \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, col2 * 43 * + col2 AS col0 FROM tab0 cor0 +---- +-1 +-21 +-81 +421443 +4300 +94987 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT 45 <> col2 @@ -51217,8 +51719,15 @@ SELECT - SUM ( DISTINCT - + col0 ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 42 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 AS col1, col0 AS col1 FROM tab0 AS cor0 +---- +15 +42 +42 +42 +87 +97 query I rowsort SELECT DISTINCT ( + col2 ) - + col0 FROM tab2 AS cor0 @@ -51361,8 +51870,15 @@ SELECT - + 0 * CAST ( - + col1 AS INTEGER ) FROM tab1 AS cor0 # Datafusion - Expected - 4736 # Datafusion - Expected - -58 # Datafusion - Expected - 5550 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(74\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 AS col0, + 74 * + + col0 AS col0 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +3404 +4736 +5550 query I rowsort label-8474 SELECT ALL - 91 * CAST ( + col1 AS INTEGER ) * col0 AS col1 FROM tab1 cor0 @@ -51605,8 +52121,11 @@ SELECT - - col0 + + col2 * - + col2 col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab1 +---- +3 +3 query II rowsort SELECT ALL 25 AS col1, + ( + col0 ) FROM tab1 @@ -52504,8 +53023,15 @@ SELECT - - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 WHERE ( col0 * col2 ) # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 col0, col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-8664 SELECT COUNT ( DISTINCT col2 ) col0 FROM tab1 @@ -52817,8 +53343,11 @@ SELECT + - col1 / - col0 * + + col1 - - + 69 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(cor0\.col1\)\)\) \* Int64\(2\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( col1 ) * 2 AS col1, CAST ( - + COUNT ( * ) AS INTEGER ) col1 FROM tab2 AS cor0 +---- +-3 +6 query I rowsort SELECT DISTINCT 27 * + + col0 FROM tab0 AS cor0 @@ -52865,8 +53394,15 @@ SELECT ALL MAX ( ALL 52 ) FROM tab1 # Datafusion - Expected - -10 # Datafusion - Expected - -5 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col1" at position 0 and "CAST\(Int64\(\-10\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 5 col1, CAST ( + - 10 AS INTEGER ) AS col1 FROM tab1 +---- +-10 +-10 +-10 +-5 +-5 +-5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1036 @@ -52875,8 +53411,15 @@ SELECT - 5 col1, CAST ( + - 10 AS INTEGER ) AS col1 FROM tab1 # Datafusion - Expected - 57 # Datafusion - Expected - -2611 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \* Int64\(45\) \- \(\- tab2\.col0\) / \(\- tab2\.col0\) AS col0" at position 0 and "tab2\.col1 \+ Int64\(44\) \+ \(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 * 45 - - col0 / - col0 AS col0, ( + col1 ) + + + 44 + + - col0 AS col0 FROM tab2 +---- +-1036 +-1801 +-2611 +36 +49 +57 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NULL < col1 AND col0 IS NOT NULL @@ -53404,8 +53947,10 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 0d574e98af0157d073ae90b65783c793 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 1 and "\(\- tab1\.col2\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 9 + + col0 AS col1, + ( + + 98 ) AS col0, + - col2 AS col0 FROM tab1 +---- +9 values hashing to ba1d776dfb4e4f98c669b4fb83d5385f query I rowsort label-8816 SELECT ALL COUNT ( 42 ) FROM tab0 @@ -53530,8 +54075,11 @@ SELECT + 30 / - ( + 70 ), col1 FROM tab2 cor0 # 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\(cor0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 44 AS col0, - COUNT ( ALL col0 ) AS col0 FROM tab0 AS cor0 +---- +-3 +-44 query II rowsort SELECT ALL + col2, - 93 AS col1 FROM tab2 AS cor0 @@ -53696,8 +54244,15 @@ SELECT + col2, col2 * - col0 FROM tab0 # Datafusion - Expected - 169911 # Datafusion - Expected - 32 # Datafusion - Expected - 9021 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "cor0\.col0 \* Int64\(93\) \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 AS col2, col0 * 93 * + col1 AS col2 FROM tab0 AS cor0 +---- +112995 +169911 +32 +32 +32 +9021 query III rowsort SELECT * FROM tab0 AS cor0 WHERE ( NULL IN ( + col1, - col1, - 8 + - ( col2 ), 25 * + col2 * + col1 ) ) @@ -54506,8 +55061,9 @@ SELECT ALL - 76 * - 43 * - col2 * col2 col1 FROM tab2 -5228800 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col2" at position 0 and "tab2\.col2 \* \(\- tab2\.col0\) / Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - col2 ) AS col2, col2 * - + col0 / + 57 AS col2 FROM tab2 WHERE col1 BETWEEN NULL AND col0 +---- query I rowsort SELECT ALL col1 + - 92 AS col2 FROM tab1 @@ -55027,8 +55583,15 @@ SELECT ALL + ( - MAX ( DISTINCT + - col0 ) ) FROM tab0 cor0 # Datafusion - Expected - 1001 # Datafusion - Expected - 75 # Datafusion - Expected - 871 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(13\) \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, + 13 * col1 AS col1 FROM tab2 cor0 +---- +1001 +46 +64 +663 +75 +871 query I rowsort SELECT ALL + ( 47 ) FROM tab0 @@ -55163,8 +55726,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, + 2 AS col0 FROM tab1 +---- +-3 +2 query I rowsort label-9115 SELECT COUNT ( * ) / 22 AS col1 FROM tab0 @@ -55287,8 +55853,15 @@ SELECT * FROM tab2 WHERE 78 * + - ( + 20 ) IS NULL # Datafusion - Expected - 64 # Datafusion - Expected - 5171 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \+ \(\- cor0\.col2\) \* Int64\(\-88\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col1 + - col2 * - 88 AS col2, col0 AS col2 FROM tab2 AS cor0 +---- +2075 +3597 +46 +5171 +64 +75 query I rowsort label-9136 SELECT + CAST ( NULL AS INTEGER ) * col2 / col0 AS col2 FROM tab0 AS cor0 @@ -55545,8 +56118,15 @@ SELECT ALL + col2 / - + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -23 # Datafusion - Expected - 8 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \+ tab2\.col0 AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( col1 ) + + + col0 AS col1, - col2 AS col1 FROM tab2 +---- +-13 +-23 +-40 +-5 +-58 +8 query III rowsort SELECT * FROM tab2 WHERE 18 IS NOT NULL @@ -55789,8 +56369,15 @@ SELECT ALL + SUM ( DISTINCT col1 ) FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 +---- +51 +67 +77 +NULL +NULL +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -56323,8 +56910,15 @@ SELECT ALL + col1 * + + col1 AS col1 FROM tab1 # Datafusion - Expected - 9 # Datafusion - Expected - 97 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, 9 AS col1 FROM tab0 +---- +15 +87 +9 +9 +9 +97 query I rowsort label-9306 SELECT DISTINCT - col0 / CAST ( 90 AS INTEGER ) FROM tab1 WHERE + 16 * + - ( + CAST ( NULL AS INTEGER ) ) NOT IN ( - - 5 ) @@ -56473,8 +57067,11 @@ SELECT ALL + 30 AS col2, COUNT ( * ) FROM tab2 WHERE NOT + - 82 NOT IN ( 62, col # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +3 +3 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT ( - 33 IS NULL ) @@ -57372,8 +57969,11 @@ SELECT DISTINCT col2 - - 4 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) - - COUNT ( * ) col0 FROM tab1 cor0 +---- +3 +NULL query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 * + - col0 IS NULL OR col2 <= - + 65 @@ -57779,8 +58379,15 @@ SELECT col0 - + 20 FROM tab1 AS cor0 WHERE NOT ( + col1 ) IS NULL # Datafusion - Expected - 23 # Datafusion - Expected - 96 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab1\.col2 AS Int32\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( col2 AS INTEGER ) AS col2, + 23 AS col2 FROM tab1 +---- +23 +23 +23 +59 +68 +96 query II rowsort label-9545 SELECT ALL + 31 + col0, CAST ( + 14 AS INTEGER ) AS col2 FROM tab0 @@ -58244,8 +58851,15 @@ SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NOT + ( 66 ) IS NOT NULL # Datafusion - Expected - 56 # Datafusion - Expected - 4530 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* tab2\.col1 \+ tab2\.col0 AS col1" at position 0 and "Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 * col1 + col0 AS col1, 56 AS col1 FROM tab2 +---- +3004 +3961 +4530 +56 +56 +56 query I rowsort label-9624 SELECT DISTINCT COUNT ( * ) + - 62 AS col1 FROM tab1 @@ -58428,8 +59042,11 @@ 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\(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\. +query IR valuesort SELECT - COUNT ( * ) AS col1, AVG ( ALL + col1 ) col1 FROM tab2 AS cor0 WHERE 62 > col1 * + col1 +---- +0 +NULL query I rowsort label-9655 SELECT ALL - - 63 * + 24 * ( COUNT ( * ) ) FROM tab2 AS cor0 @@ -58841,8 +59458,15 @@ SELECT ALL - + col1 AS col0 FROM tab2 AS cor0 WHERE 58 BETWEEN ( - + 1 ) AND ( N # Datafusion - Expected - -91 # Datafusion - Expected - -96 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col2, - col0 AS col2 FROM tab1 AS cor0 +---- +-51 +-59 +-68 +-85 +-91 +-96 query II rowsort SELECT - col2 AS col0, + 9 FROM tab0 AS cor0 @@ -59172,8 +59796,15 @@ SELECT ALL + col0 * 69 * - 10 * - col2 / - - 1 AS col0 FROM tab0 WHERE col0 BETW # Datafusion - Expected - 87 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ \(\- Int64\(11\)\) AS col0" at position 0 and "Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 98 + - ( + 11 ) AS col0, 87 AS col0 FROM tab1 +---- +87 +87 +87 +87 +87 +87 query I rowsort label-9778 SELECT ALL SUM ( DISTINCT + ( + col0 ) ) AS col0 FROM tab2 @@ -59677,8 +60308,15 @@ SELECT 66 * - col1 * col0 AS col0 FROM tab0 # Datafusion - Expected - -68 # Datafusion - Expected - 96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "\(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, - col2 AS col1 FROM tab1 +---- +-59 +-68 +-96 +59 +68 +96 query I rowsort SELECT ALL - col1 * + 42 AS col2 FROM tab2 @@ -60176,8 +60814,15 @@ SELECT DISTINCT + 49 + + ( - col2 ) FROM tab1 # Datafusion - Expected - 4012 # Datafusion - Expected - -67 # Datafusion - Expected - 5664 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) AS col2" at position 0 and "tab1\.col2 \* Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 67 AS col2, + col2 * 59 AS col2 FROM tab1 WHERE + 17 IS NOT NULL +---- +-67 +-67 +-67 +3481 +4012 +5664 query I rowsort label-9939 SELECT CAST ( NULL AS INTEGER ) * - - col1 * - col0 - col0 FROM tab0 WHERE + col0 IS NOT NULL diff --git a/data/sqlite/random/aggregates/slt_good_79.slt b/data/sqlite/random/aggregates/slt_good_79.slt index 5279375..16248f9 100644 --- a/data/sqlite/random/aggregates/slt_good_79.slt +++ b/data/sqlite/random/aggregates/slt_good_79.slt @@ -285,8 +285,15 @@ SELECT DISTINCT * FROM tab2 WHERE + 8 IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "cor0\.col0 / \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 col0, col0 / - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 +---- +82 +82 +82 +NULL +NULL +NULL query I rowsort label-46 SELECT - + CAST ( NULL AS INTEGER ) / - MAX ( - + col2 ) + 83 FROM tab1 AS cor0 @@ -445,8 +452,15 @@ SELECT ALL col2 AS col0, - col0 * + + 42 FROM tab2 # Datafusion - Expected - -355 # Datafusion - Expected - -61 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col1" at position 0 and "tab1\.col2 \+ Int64\(\-9\) \* tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 61 AS col1, col2 + - 9 * col1 col1 FROM tab1 +---- +-30 +-355 +-61 +-61 +-61 +14 query III rowsort SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( + - 60 ) @@ -784,8 +798,15 @@ SELECT DISTINCT + 64 * - 47 - col1 + 8 - + col0 FROM tab1 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - 170 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \- \(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 95 - - col0 col1, - col0 AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +141 +159 +170 query I rowsort SELECT - - ( 72 ) + + 59 col2 FROM tab1 cor0 @@ -1345,8 +1366,11 @@ SELECT ALL + col0 + + + 75 col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) col2, 65 AS col2 FROM tab1 WHERE col0 IS NOT NULL +---- +3 +65 query I rowsort label-213 SELECT ALL - 49 * - COUNT ( ALL - 36 ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 @@ -1360,8 +1384,15 @@ NULL # Datafusion - Expected - -47 # Datafusion - Expected - 70 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 70 AS col0, - col1 col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +70 +70 +70 query I rowsort SELECT ALL - - 63 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 @@ -2459,8 +2490,15 @@ SELECT DISTINCT SUM ( - - col1 ) * - COUNT ( * ) FROM tab0 # Datafusion - Expected - 14 # Datafusion - Expected - 75 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, + 14 AS col1 FROM tab2 +---- +14 +14 +14 +46 +64 +75 query I rowsort SELECT DISTINCT ( + ( - 14 ) ) col1 FROM tab1 @@ -2547,16 +2585,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "\(\- min\(CAST\(Int64\(0\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 45 AS col0, - MIN ( + CAST ( + 0 AS INTEGER ) ) AS col0 FROM tab1 +---- +0 +45 query III rowsort SELECT * FROM tab0 WHERE - col0 / col2 * - + ( col0 ) + + + 25 = NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 67 col1, + col2 AS col1 FROM tab1 WHERE - + col1 IS NULL +---- query I rowsort SELECT DISTINCT col0 + + 89 FROM tab0 @@ -3102,8 +3144,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( - - col2 AS INTEGER ) * + 40 IS # Datafusion - Expected - -47 # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, - col2 AS col0 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +NULL +NULL +NULL query I rowsort label-509 SELECT ALL + 20 * - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1 @@ -4207,8 +4256,15 @@ SELECT + 4, + col2 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, ( ( col1 ) ) FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT ALL ( - 30 ) AS col2 FROM tab0 @@ -5290,8 +5346,15 @@ SELECT COUNT ( + col1 ) + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ cor0\.col2 AS col1" at position 0 and "cor0\.col2 \* CAST\(NULL AS Int32\) / Int64\(\-65\) \* \(\- \(\- cor0\.col1\)\) \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - CAST ( NULL AS INTEGER ) + col2 AS col1, col2 * CAST ( NULL AS INTEGER ) / - 65 * - - col1 * + + ( - col1 ) AS col1 FROM tab1 AS cor0 +---- +NULL +NULL +NULL +NULL +NULL +NULL query I rowsort SELECT ALL + + col1 + - - 73 AS col0 FROM tab1 AS cor0 @@ -5354,8 +5417,15 @@ SELECT 79 * - - col0 FROM tab2 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, + ( col2 ) col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query II rowsort label-878 SELECT DISTINCT + COUNT ( * ) col0, ( COUNT ( * ) ) FROM tab2 @@ -5410,8 +5480,9 @@ SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 \* Int64\(1\) \* cor0\.col2 \+ cor0\.col2 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + col1 * + - col0 AS col1, 16 AS col2, + + col2 * 1 * + col2 + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL +---- query I rowsort SELECT - ( 95 ) FROM tab0 WHERE NOT col1 IN ( col1 ) @@ -6601,8 +6672,11 @@ SELECT col0 * - - col0 * + CAST ( - 79 AS INTEGER ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(cor0\.col1\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( + col1 ) AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +3 +3 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN - ( col1 ) AND NULL @@ -7187,8 +7261,15 @@ SELECT ALL - + 40 col2 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 66 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 66 AS col2, col1 AS col2 FROM tab0 +---- +1 +21 +66 +66 +66 +81 query III rowsort SELECT ALL * FROM tab1 WHERE NOT 19 IS NOT NULL @@ -7535,8 +7616,15 @@ SELECT ALL + col0 / + col1 AS col0 FROM tab1 cor0 # Datafusion - Expected - 8 # Datafusion - Expected - -99 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col2, 8 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +8 +8 +8 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( - col0, + col1 ) @@ -7843,8 +7931,9 @@ SELECT - 39 * + 16 AS col1 FROM tab1 AS cor0 -624 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) \+ \(\- tab0\.col0\) AS col0" at position 0 and "Int64\(\-35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 17 + - + col0 col0, - 35 AS col0 FROM tab0 WHERE NOT NULL BETWEEN - col2 AND col1 - - - col2 +---- query I rowsort label-1290 SELECT DISTINCT COUNT ( DISTINCT col1 ) AS col0 FROM tab1 @@ -8228,8 +8317,15 @@ SELECT - col2 FROM tab0 WHERE + 43 >= col2 # Datafusion - Expected - 13 # Datafusion - Expected - 3895 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ \(\- \(\- cor0\.col2\)\) \* cor0\.col1 AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 88 + - - col2 * col1 AS col0, 13 AS col0 FROM tab0 AS cor0 +---- +13 +13 +13 +187 +298 +3895 query I rowsort SELECT + ( - - col1 ) col0 FROM tab2 AS cor0 @@ -9273,8 +9369,11 @@ SELECT ALL - 63 AS col1 FROM tab1 AS cor0 WHERE - col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 40 AS col1, + COUNT ( * ) AS col1 FROM tab0 cor0 +---- +3 +40 query I rowsort label-1532 SELECT col2 + col0 / - - col2 - + - col1 + + + col0 AS col2 FROM tab0 AS cor0 @@ -10066,8 +10165,15 @@ SELECT ALL col1 + + 10 FROM tab2 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col1\) / Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, - col1 / 33 AS col2 FROM tab0 cor0 +---- +-2 +0 +0 +1 +21 +81 query I rowsort SELECT DISTINCT - col0 * - - col2 FROM tab0 AS cor0 @@ -10392,8 +10498,15 @@ SELECT + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 14 IS NULL # Datafusion - Expected - -3807 # Datafusion - Expected - 37 # Datafusion - Expected - -405 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "Int64\(\-81\) \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 col2, - 81 * col1 col2 FROM tab1 cor0 +---- +-1134 +-3807 +-405 +37 +37 +37 query I rowsort SELECT DISTINCT - 28 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) @@ -10491,8 +10604,15 @@ SELECT ALL - 51 - - col1 * 85 FROM tab2 cor0 # Datafusion - Expected - -85 # Datafusion - Expected - 45 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \- cor0\.col0 AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col2 - col0 AS col0, - col0 AS col0 FROM tab1 AS cor0 +---- +-23 +-26 +-51 +-85 +-91 +45 query I rowsort label-1729 SELECT + - COUNT ( * ) - - - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0 @@ -10829,13 +10949,18 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ), - ( + + COUNT ( * ) ) FROM tab1 WHERE + col2 IS NOT NULL +---- +-3 +-3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 153d607fdcf017ec38a4e98b02950ceb -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col2" at position 0 and "\(\- CAST\(tab2\.col1 AS Int32\)\) \* \(\- Int64\(\-33\)\) \+ tab2\.col0 \+ Int64\(37\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col2 col2, + CAST ( NULL AS INTEGER ) * - - col0 - - - col2, - CAST ( col1 AS INTEGER ) * - - 33 + col0 + + 37 AS col2 FROM tab2 +---- +9 values hashing to 4cbad174a1b01702a40264e1b73bdf6e query I rowsort label-1785 SELECT col0 / - CAST ( + col0 AS INTEGER ) FROM tab0 @@ -10975,8 +11100,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 AS col2, COUNT ( * ) * - COUNT ( * ) col2 FROM tab2 AS cor0 +---- +-9 +6 query I rowsort SELECT - ( - + 7 ) FROM tab1 AS cor0 @@ -11471,8 +11599,15 @@ SELECT + col2 * + - col2 AS col1, - 32 AS col2 FROM tab1 # Datafusion - Expected - 58 # Datafusion - Expected - 77 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, col2 col0 FROM tab2 +---- +23 +40 +51 +58 +67 +77 query III rowsort SELECT * FROM tab1 WHERE NOT - col1 + - col0 + + 45 BETWEEN NULL AND col0 @@ -11507,8 +11642,15 @@ SELECT ALL col2 AS col1, 72 AS col0 FROM tab1 cor0 # Datafusion - Expected - 73 # Datafusion - Expected - -8 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 8 AS col0, + 73 AS col0 FROM tab1 AS cor0 +---- +-8 +-8 +-8 +73 +73 +73 query I rowsort label-1901 SELECT col0 / 15 + - col1 * - + col0 + - col2 + col2 FROM tab0 cor0 @@ -12084,8 +12226,15 @@ SELECT * FROM tab1 WHERE ( + CAST ( + ( 51 ) AS FLOAT8 ) IS NULL ) # Datafusion - Expected - -159 # Datafusion - Expected - -96 # Datafusion - Expected - -147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "\(\- tab1\.col2\) \- tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, - col2 - + col0 AS col2 FROM tab1 +---- +-144 +-147 +-159 +-59 +-68 +-96 query II rowsort SELECT DISTINCT + col2 - col2 * + col2 AS col0, + 14 FROM tab1 cor0 @@ -12404,8 +12553,10 @@ SELECT COUNT ( * ) * 50 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 98853f0b93dee834ac65c19c18c8ab11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col1" at position 0 and "\(\- \(\- tab2\.col0\)\) \+ Int64\(41\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 94 AS col1, + col2 * - col1, - - col0 + + 41 AS col1 FROM tab2 +---- +9 values hashing to 0a780f9de36401645e951948d660570f query I rowsort SELECT col2 + + 23 FROM tab0 @@ -12789,8 +12940,15 @@ SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - 17 * + col # Datafusion - Expected - -209 # Datafusion - Expected - 16 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-16\)\) AS col1" at position 0 and "\(\- cor0\.col1\) \+ \(\- cor0\.col1\) \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 16 col1, - col1 + + - col1 + + - col2 AS col1 FROM tab0 AS cor0 +---- +-101 +-209 +-52 +16 +16 +16 query II rowsort SELECT DISTINCT col2 col2, + ( + + col0 ) AS col1 FROM tab0 cor0 @@ -12844,8 +13002,15 @@ SELECT - MIN ( ALL - + col0 ) FROM tab0 # Datafusion - Expected - -71 # Datafusion - Expected - 58 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* Int64\(1\) AS col0" at position 0 and "Int64\(\-71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * 1 AS col0, - 71 AS col0 FROM tab2 +---- +-71 +-71 +-71 +23 +40 +58 query I rowsort SELECT ALL - col0 FROM tab1 WHERE NOT - col1 IS NULL @@ -14187,8 +14352,15 @@ SELECT - COUNT ( * ) + - 59 FROM tab0 cor0 WHERE ( + col0 ) IS NOT NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col1, col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col1 - - col0 ) = 9 / - col0 + - col0 * - col2 @@ -14340,8 +14512,15 @@ NULL # Datafusion - Expected - 7 # Datafusion - Expected - -15 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 15 col2, 7 AS col2 FROM tab1 +---- +-15 +-15 +-15 +7 +7 +7 query II rowsort SELECT DISTINCT 16 AS col1, - col1 AS col0 FROM tab0 @@ -14409,8 +14588,15 @@ SELECT ALL + COUNT ( * ) * - 9 * COUNT ( * ) AS col2 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - -192 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \- cor0\.col2 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - col2 ) - + + ( + col2 ) AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +-118 +-136 +-192 +14 +47 +5 query I rowsort SELECT DISTINCT + 76 + + col0 FROM tab0 AS cor0 @@ -14715,8 +14901,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - CAST ( - - col0 AS INTEGER ) ) # Datafusion - Expected - -96 # Datafusion - Expected - 198 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ Int64\(83\) \+ cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 + + + 83 + col2 AS col1, - col2 AS col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +147 +193 +198 query I rowsort SELECT + - col1 - + + col2 AS col0 FROM tab0 AS cor0 @@ -15198,8 +15391,15 @@ SELECT + - ( + + col2 ) FROM tab1 AS cor0 # Datafusion - Expected - -73 # Datafusion - Expected - 759 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* Int64\(69\) AS col2" at position 0 and "cor0\.col0 \+ Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 11 * + + 69 AS col2, col0 + - 88 col2 FROM tab0 AS cor0 +---- +-1 +-73 +759 +759 +759 +9 query I rowsort SELECT ALL ( + 34 ) AS col1 FROM tab0 AS cor0 @@ -15451,7 +15651,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 2d11f29796760a8cb2621699c46cb9f2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ Int64\(\-28\) AS col2" at position 0 and "Int64\(31\) \* tab2\.col0 \* tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Schema error: Schema contains qualified field name tab2\.col2 and unqualified field name col2 which would be ambiguous SELECT 23 + + - 28 AS col2, 31 * + col0 * col0 AS col2, + + col2 AS col2 FROM tab2 query I rowsort @@ -16012,8 +16212,15 @@ SELECT * FROM tab2 WHERE - 19 IS NOT NULL # Datafusion - Expected - 0 # Datafusion - Expected - 66 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-66\)\) AS col1" at position 0 and "tab2\.col0 \+ \(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 66 ) AS col1, + col0 + + - col0 AS col1 FROM tab2 +---- +0 +0 +0 +66 +66 +66 query III rowsort SELECT * FROM tab1 WHERE NOT - col0 * - 4 + - col1 * - - col0 BETWEEN - col1 * ( col0 ) / col0 + - col2 * - - col0 AND NULL @@ -16227,8 +16434,15 @@ SELECT ALL ( col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= 37 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col2, col2 AS col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT + 24 * + col0 FROM tab2 @@ -16961,8 +17175,11 @@ SELECT - COUNT ( * ) + - 48 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "Int64\(\-51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 33 AS col1, - 51 AS col1 FROM tab0 AS cor0 +---- +-51 +33 query I rowsort label-2800 SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT NULL <> ( col1 ) @@ -17340,8 +17557,9 @@ SELECT - MAX ( + - CAST ( NULL AS FLOAT8 ) ) AS col0 FROM tab1 NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* \(\- \(\- tab0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col2, - CAST ( NULL AS INTEGER ) * - - col0 AS col2 FROM tab0 WHERE NOT NULL > NULL +---- query I rowsort label-2865 SELECT DISTINCT MIN ( ALL + ( col0 ) ) + - 12 AS col2 FROM tab0 AS cor0 @@ -17467,8 +17685,15 @@ SELECT ALL - 43 * - col2 FROM tab0 WHERE NOT - 64 - col1 IS NULL # Datafusion - Expected - -68 # Datafusion - Expected - 490 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* Int64\(98\) AS col0" at position 0 and "\(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + 98 AS col0, - col2 col0 FROM tab1 +---- +-59 +-68 +-96 +1372 +4606 +490 query I rowsort SELECT ALL - col2 * col0 * + - 99 * - col2 FROM tab1 AS cor0 @@ -17939,8 +18164,15 @@ SELECT - col1 * + col0 * - col0 + 42 AS col2 FROM tab1 AS cor0 WHERE NOT CAST ( # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab2\.col1\)\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col1 AS col2, col1 AS col2 FROM tab2 WHERE - col0 <= - + col2 +---- +51 +51 +67 +67 +77 +77 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT NULL IS NOT NULL OR NOT 85 + - 88 IS NOT NULL @@ -18151,8 +18383,15 @@ SELECT - col0 * - + col0 * + + col0 FROM tab1 # Datafusion - Expected - -7 # Datafusion - Expected - -890 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \* tab0\.col2 AS col1" at position 0 and "Int64\(\-7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 89 * col2 AS col1, - 7 AS col1 FROM tab0 +---- +-4183 +-7 +-7 +-7 +-8811 +-890 query I rowsort label-2996 SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 * 32 FROM tab0 @@ -18236,8 +18475,11 @@ SELECT DISTINCT 38 AS col1, ( - 87 ) * col1 FROM tab2 AS cor0 # 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\) AS col0" at position 0 and "\(\- min\(DISTINCT tab1\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 96 col0, - MIN ( DISTINCT + col0 ) AS col0 FROM tab1 +---- +-51 +96 query I rowsort label-3012 SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NULL >= ( + 40 ) @@ -18345,8 +18587,15 @@ SELECT * FROM tab1 WHERE 17 * ( - 74 ) - col1 / - - 26 IS NULL AND NULL BETWEEN # Datafusion - Expected - 870 # Datafusion - Expected - -44 # Datafusion - Expected - 9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col0" at position 0 and "tab0\.col0 \* tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 44 col0, col0 * + col2 AS col0 FROM tab0 +---- +-44 +-44 +-44 +705 +870 +9603 query I rowsort label-3028 SELECT ( + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 @@ -18965,8 +19214,15 @@ SELECT DISTINCT - COUNT ( * ) AS col1, 95 FROM tab0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, + col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-3123 SELECT ALL - col1 + + - col2 / CAST ( NULL AS INTEGER ) FROM tab2 @@ -20805,8 +21061,11 @@ SELECT DISTINCT + ( - ( 37 ) ) * - col2 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 16 AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +-16 +3 query I rowsort label-3431 SELECT - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 cor0 @@ -21129,8 +21388,15 @@ SELECT ALL ( - 30 ) / + col0 - - col2 + col1 / col1 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 55 # Datafusion - Expected - -77 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col1 AS col1, 55 AS col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +55 +55 +55 query I rowsort label-3482 SELECT + MIN ( - 4 ) AS col2 FROM tab0 AS cor0 @@ -21432,8 +21698,15 @@ SELECT * FROM tab1 WHERE NOT - - 9 IS NULL # Datafusion - Expected - 85 # 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 "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 50 AS col1, col0 AS col1 FROM tab1 AS cor0 +---- +-50 +-50 +-50 +51 +85 +91 query I rowsort label-3533 SELECT + COUNT ( - CAST ( - + ( - + col1 ) AS INTEGER ) ) AS col0 FROM tab2 AS cor0 @@ -21847,8 +22120,11 @@ SELECT DISTINCT col2, - col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +3 +3 query I rowsort SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 10 AND - col0 @@ -22238,8 +22514,15 @@ SELECT DISTINCT + col0 * - + col1, + 25 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -30 # Datafusion - Expected - 1 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / Int64\(75\) AS col0" at position 0 and "Int64\(\-30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 / + 75 AS col0, - 30 AS col0 FROM tab1 cor0 +---- +-30 +-30 +-30 +0 +0 +1 query I rowsort SELECT DISTINCT ( + + 32 ) FROM tab1 AS cor0 @@ -22649,8 +22932,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + - 95 # Datafusion - Expected - -36 # Datafusion - Expected - 26 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "Int64\(\-36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 26 AS col0, - 36 AS col0 FROM tab1 cor0 +---- +-36 +-36 +-36 +26 +26 +26 query I rowsort SELECT + col2 - + 65 * - - col0 * - + col1 - col0 FROM tab1 @@ -22730,8 +23020,15 @@ SELECT * FROM tab1 WHERE NOT + col2 / - 73 + - 94 < NULL # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 AS col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query III rowsort SELECT ALL * FROM tab1 WHERE NOT ( - + col2 ) IN ( - col2 + - + col2 ) @@ -22792,8 +23089,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE - col2 IN ( col0 ) # Datafusion - Expected - 70 # Datafusion - Expected - 75 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, 70 AS col1 FROM tab2 AS cor0 +---- +46 +64 +70 +70 +70 +75 query I rowsort SELECT DISTINCT + 89 * - 98 + col0 AS col2 FROM tab0 AS cor0 @@ -23488,8 +23792,15 @@ SELECT 20 * - col2 * - 29 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(92\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \- \(\- cor0\.col2\) \+ \(\- cor0\.col2\) \- \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 92 AS col2, - CAST ( NULL AS INTEGER ) - - col2 + - ( + col2 ) - - col0 col2 FROM tab0 AS cor0 +---- +-92 +-92 +-92 +NULL +NULL +NULL query I rowsort SELECT DISTINCT + + 46 * - - col2 AS col0 FROM tab0 AS cor0 @@ -23623,8 +23934,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT ( col1 IS NOT NULL ) ) # Datafusion - Expected - 47 # Datafusion - Expected - -96 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - col2 ) AS col0, + ( col1 ) AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +14 +47 +5 query I rowsort SELECT col0 * + 15 AS col1 FROM tab0 AS cor0 @@ -23659,8 +23977,15 @@ SELECT + 71 * + - col0 AS col2 FROM tab2 # Datafusion - Expected - 85 # Datafusion - Expected - 2482068 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \* tab2\.col0 \* tab2\.col0 \* \(\- tab2\.col2\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * + col0 * col0 * + ( - col2 ) AS col2, + 85 AS col2 FROM tab2 +---- +12615680 +21858750 +2482068 +85 +85 +85 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -24729,8 +25054,15 @@ SELECT + col2 * - 26 FROM tab0 # Datafusion - Expected - 27 # Datafusion - Expected - 9701 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* tab0\.col2 \+ tab0\.col0 \+ \(\- tab0\.col0\) / \(\- tab0\.col0\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * col2 + + ( col0 ) + - col0 / - col0 AS col1, + 27 AS col1 FROM tab0 WHERE NULL IS NULL +---- +27 +27 +27 +721 +958 +9701 query I rowsort label-4075 SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab2 @@ -25859,8 +26191,15 @@ SELECT MAX ( + - 85 ) FROM tab0 # Datafusion - Expected - -68 # Datafusion - Expected - 36 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col0" at position 0 and "\(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 36 AS col0, - col2 AS col0 FROM tab1 +---- +-59 +-68 +-96 +36 +36 +36 query I rowsort label-4266 SELECT DISTINCT - COUNT ( * ) * - - 22 FROM tab1 @@ -26576,8 +26915,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + - COUNT ( * ) ) AS col1, - COUNT ( * ) AS col1 FROM tab1 +---- +-3 +-3 query I rowsort label-4383 SELECT + MIN ( col2 ) / - 2 FROM tab2 @@ -28504,8 +28846,15 @@ SELECT ALL col1 / + col2 + + + col1 AS col2 FROM tab0 WHERE NOT - - col2 IS NOT # Datafusion - Expected - 87 # Datafusion - Expected - 54 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 54 AS col2, + col0 AS col2 FROM tab0 +---- +15 +54 +54 +54 +87 +97 query I rowsort SELECT ALL col1 * - + ( + col0 ) FROM tab0 @@ -29141,8 +29490,11 @@ SELECT ( 72 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 67 AS col0, 86 AS col0 FROM tab0 AS cor0 +---- +67 +86 query I rowsort label-4802 SELECT ALL - col1 + - CAST ( NULL AS INTEGER ) * - 3 FROM tab1 AS cor0 WHERE - 10 - - CAST ( + 90 AS INTEGER ) * + + 35 * ( + col1 ) IS NOT NULL @@ -30095,8 +30447,15 @@ SELECT - col2 AS col2, - 22 FROM tab0 WHERE NULL = - col0 * - + ( col1 ) # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col2, + col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query II rowsort SELECT - 36 col1, - 79 * col2 * - ( + col0 ) * - 15 + + col1 * - + col2 FROM tab0 @@ -30674,8 +31033,15 @@ SELECT + col1 FROM tab2 WHERE + col0 + 64 IS NULL # Datafusion - Expected - -23 # Datafusion - Expected - -5871 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ \(\- tab2\.col1\) \* tab2\.col1 AS col1" at position 0 and "Int64\(\-23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 58 + - col1 * + col1 col1, - 23 AS col1 FROM tab2 +---- +-23 +-23 +-23 +-2543 +-4431 +-5871 query I rowsort label-5051 SELECT - ( + - 87 ) / - + COUNT ( * ) FROM tab2 @@ -32033,8 +32399,15 @@ SELECT + + col2, + col1 + - - ( + 87 ) * - col0 * + col1 AS col0 FROM tab0 AS co # Datafusion - Expected - 60 # Datafusion - Expected - -99 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, 60 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +60 +60 +60 query I rowsort SELECT DISTINCT ( + + col2 ) col0 FROM tab2 @@ -32627,8 +33000,15 @@ SELECT ALL 4 * - col2 FROM tab1 # Datafusion - Expected - 80 # Datafusion - Expected - 99 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, + ( + 80 ) AS col1 FROM tab0 cor0 +---- +10 +47 +80 +80 +80 +99 query I rowsort SELECT - 1 FROM tab2 AS cor0 WHERE NOT col1 = col1 @@ -34299,8 +34679,15 @@ NULL # Datafusion - Expected - -134 # Datafusion - Expected - -77 # Datafusion - Expected - -154 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "\(\- cor0\.col1\) \+ \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col2, ( - ( + col1 ) ) + - ( col1 ) AS col2 FROM tab2 AS cor0 +---- +-102 +-134 +-154 +-51 +-67 +-77 query I rowsort SELECT - 31 * col1 * col1 AS col2 FROM tab1 @@ -34410,8 +34797,15 @@ SELECT ALL - COUNT ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -3080 # Datafusion - Expected - -95 # Datafusion - Expected - -3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col2" at position 0 and "cor0\.col1 \* \(\- CAST\(\(\- \(\- cor0\.col2\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 95 AS col2, col1 * - CAST ( - - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0 +---- +-1173 +-3080 +-3886 +-95 +-95 +-95 query I rowsort label-5664 SELECT MAX ( - - col1 ) / COUNT ( * ) AS col2 FROM tab2 AS cor0 @@ -34744,8 +35138,15 @@ SELECT 85, ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 55 # Datafusion - Expected - -84 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 84 AS col0, 55 AS col0 FROM tab0 cor0 +---- +-84 +-84 +-84 +55 +55 +55 query I rowsort SELECT DISTINCT - 98 AS col2 FROM tab1 AS cor0 WHERE NULL = - 97 @@ -34938,8 +35339,15 @@ SELECT DISTINCT * FROM tab0 WHERE ( ( NULL ) IS NOT NULL ) # Datafusion - Expected - -97 # Datafusion - Expected - -8148 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \* Int64\(84\) AS col2" at position 0 and "\(\- tab0\.col0\) / tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 97 * 84 col2, - col0 / + col1 AS col2 FROM tab0 +---- +-4 +-8148 +-8148 +-8148 +-97 +0 query I rowsort label-5751 SELECT DISTINCT - + COUNT ( * ) + COUNT ( CAST ( NULL AS FLOAT8 ) ) FROM tab1 WHERE + col1 IS NULL @@ -35068,8 +35476,15 @@ SELECT - 33 + + 41 AS col1 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + col2 ) AS col1, + col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT DISTINCT col0 * col1 col0 FROM tab0 AS cor0 WHERE col2 + + ( col2 ) <> ( - 53 * + + col2 / + col2 + + - 74 ) @@ -35215,8 +35630,15 @@ SELECT DISTINCT col0 + - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - -75690 # Datafusion - Expected - NULL # Datafusion - Expected - -931491 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* cor0\.col1 \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "cor0\.col2 \* cor0\.col0 \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + ( + + col1 ) * + col1 + CAST ( NULL AS INTEGER ) AS col0, col2 * col0 * + - col0 AS col0 FROM tab0 AS cor0 +---- +-10575 +-75690 +-931491 +NULL +NULL +NULL query I rowsort SELECT - col2 * - + col1 AS col0 FROM tab2 cor0 @@ -35917,8 +36339,11 @@ SELECT ALL ( + + col2 ) * - + col2 + - col0 * - col0 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -464 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(49\) AS Int32\) / count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(29\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( 49 AS INTEGER ) / COUNT ( * ) * - + 29 AS col2, - COUNT ( * ) AS col2 FROM tab0 +---- +-3 +-464 query I rowsort SELECT ALL col1 - - col0 * + col0 AS col1 FROM tab2 @@ -35962,8 +36387,15 @@ SELECT + 89 + - CAST ( - col1 AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 61 # Datafusion - Expected - -6833 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(70\)\) \* CAST\(cor0\.col2 AS Int32\) \+ cor0\.col0 AS col0" at position 0 and "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 70 * CAST ( col2 AS INTEGER ) + + col0 AS col0, 61 AS col0 FROM tab0 cor0 +---- +-3275 +-613 +-6833 +61 +61 +61 query I rowsort label-5911 SELECT + ( + COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 @@ -35983,8 +36415,15 @@ SELECT ALL + - 54, COUNT ( ALL + 22 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 46 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 46 AS col2, + col1 AS col2 FROM tab0 cor0 +---- +1 +21 +46 +46 +46 +81 query I rowsort label-5914 SELECT ALL SUM ( ALL - + 63 ) AS col2 FROM tab2 @@ -36083,8 +36522,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) + - 11 col2, 7 AS col2 FROM tab0 +---- +-14 +7 query I rowsort SELECT + ( col2 ) * 27 FROM tab1 @@ -36127,8 +36569,11 @@ SELECT - COUNT ( * ) * + + 76 + 54 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 35 AS col1, + COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL < - 16 +---- +0 +35 query I rowsort SELECT - 28 AS col0 FROM tab2, tab2 AS cor0 @@ -37022,8 +37467,11 @@ SELECT DISTINCT + ( - COUNT ( * ) ) col0 FROM tab0 WHERE NOT ( col2 * col2 ) <= # Datafusion - Datafusion expected results: # Datafusion - Expected - -201 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(DISTINCT \(\- tab1\.col0\)\)\) \* Int64\(67\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( DISTINCT + - col0 ) * + 67 AS col2, COUNT ( * ) + COUNT ( * ) col2 FROM tab1 +---- +-201 +6 query III rowsort SELECT ALL * FROM tab1 WHERE NOT col1 < - col1 @@ -37640,8 +38088,15 @@ SELECT DISTINCT + ( + col2 ) * + 32, - 44 * + col0 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 1170 # Datafusion - Expected - 189 # Datafusion - Expected - 1170 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \- Int64\(\-33\) \+ cor0\.col0 \+ cor0\.col0 / Int64\(\-27\) AS col1" at position 0 and "Int64\(39\) \* \(\- Int64\(\-30\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 - - 33 + + col0 + + + col0 / + - 27 AS col1, 39 * - - 30 AS col1 FROM tab1 AS cor0 +---- +1170 +1170 +1170 +174 +179 +189 query I rowsort SELECT - col1 - - - 39 AS col1 FROM tab0 AS cor0 @@ -38003,8 +38458,15 @@ SELECT + + col0 AS col0, + 86 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - 0 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 / + col0 col2, + ( - col2 ) AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +0 +0 +0 query II rowsort SELECT ALL + - col2, - col2 * col1 AS col2 FROM tab1 AS cor0 WHERE col1 * col2 IS NOT NULL @@ -38121,8 +38583,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col2, - COUNT ( DISTINCT col0 ) AS col2 FROM tab0 AS cor0 +---- +-3 +-3 query I rowsort SELECT ALL - col1 + - col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL @@ -38217,8 +38682,15 @@ SELECT ALL + + COUNT ( * ) FROM tab1 cor0 WHERE ( NULL ) BETWEEN - 23 AND + col1 # Datafusion - Expected - -10 # Datafusion - Expected - -58 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col0, - 10 col0 FROM tab2 AS cor0 +---- +-10 +-10 +-10 +-23 +-40 +-58 query I rowsort label-6280 SELECT ALL + MIN ( - 38 ) / - 21 FROM tab0 @@ -38548,8 +39020,15 @@ NULL # Datafusion - Expected - 54 # Datafusion - Expected - 77 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col0, 54 AS col0 FROM tab2 AS cor0 +---- +51 +54 +54 +54 +67 +77 query II rowsort SELECT ALL + - 55, col2 AS col0 FROM tab0 cor0 @@ -38614,8 +39093,15 @@ SELECT col2 * + CAST ( + + 30 AS INTEGER ) FROM tab1 # Datafusion - Expected - 97 # Datafusion - Expected - -58 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, 97 AS col0 FROM tab2 +---- +-23 +-40 +-58 +97 +97 +97 query I rowsort SELECT DISTINCT - col1 col1 FROM tab2 WHERE NOT - - col2 IS NULL @@ -38725,8 +39211,15 @@ SELECT 67 - + - col0 * - col2 * - col0 AS col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) \- \(\- tab0\.col0\) \+ tab0\.col2 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 - - col0 + + col2 AS col2, CAST ( NULL AS INTEGER ) col2 FROM tab0 +---- +-19 +195 +76 +NULL +NULL +NULL query I rowsort label-6359 SELECT + 8 - + - COUNT ( ALL - col1 ) + + + COUNT ( * ) AS col2 FROM tab1 @@ -39176,8 +39669,15 @@ SELECT DISTINCT + + 13 FROM tab1 cor0 WHERE NOT + ( 49 ) * - col1 IS NOT NULL # Datafusion - Expected - 87 # Datafusion - Expected - 6 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 6 AS col2, col0 AS col2 FROM tab0 +---- +15 +6 +6 +6 +87 +97 query III rowsort SELECT * FROM tab1 WHERE NOT NULL <> - - 82 @@ -39226,8 +39726,15 @@ SELECT - MIN ( - - col0 ) col2 FROM tab0 cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 32 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-32\)\) AS col1" at position 0 and "\(\- \(\- cor0\.col0\)\) / \(\- Int64\(73\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 32 AS col1, - ( - col0 ) / - + 73 AS col1 FROM tab2 AS cor0 +---- +-1 +0 +0 +32 +32 +32 query I rowsort label-6441 SELECT DISTINCT CAST ( + col1 AS INTEGER ) col2 FROM tab0 AS cor0 @@ -40528,8 +41035,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT col2 * ( - 45 ) IS NOT NULL # Datafusion - Expected - 2 # Datafusion - Expected - 77 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, 2 AS col2 FROM tab2 +---- +2 +2 +2 +51 +67 +77 query III rowsort SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + + col2 * - 6 * + col0 + - ( + + 66 ) * + col0, - 69 + + col2, - col0 ) @@ -40727,8 +41241,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) + + COUNT ( * ) - SUM ( ALL + col0 ) AS col2, + 23 / - - 46 AS col2 FROM tab1 cor0 +---- +-221 +0 query III rowsort SELECT ALL * FROM tab2 cor0 WHERE ( + col2 ) <> - 30 @@ -41262,8 +41779,15 @@ SELECT + + 90 AS col1 FROM tab1 AS cor0 WHERE NULL = col1 * + col1 * - col2 * co # Datafusion - Expected - -59 # Datafusion - Expected - 38 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "Int64\(5\) \+ \(\- cor0\.col0\) \* Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 38 AS col1, 5 + - col0 * + 1 AS col1 FROM tab2 AS cor0 +---- +-41 +-59 +-70 +38 +38 +38 query I rowsort SELECT + ( 14 ) AS col1 FROM tab2 @@ -43056,8 +43580,11 @@ SELECT - col2 FROM tab0 WHERE col2 < + col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab2 +---- +-3 +3 query I rowsort label-7085 SELECT - CAST ( NULL AS INTEGER ) * 61 FROM tab0 @@ -43077,8 +43604,15 @@ SELECT DISTINCT * FROM tab1 WHERE ( - 71 + + - 40 ) > - 55 # Datafusion - Expected - 0 # Datafusion - Expected - 91 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "Int64\(35\) / \(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, 35 / - col2 AS col1 FROM tab1 +---- +0 +0 +0 +51 +85 +91 query III rowsort SELECT ALL * FROM tab2 WHERE - col0 * - 0 * col2 - - col1 <= - - col0 @@ -43317,8 +43851,11 @@ SELECT + col2 * + 96 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(42\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - + 42 ) AS col0, + COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +3 +42 query I rowsort SELECT - 68 col2 FROM tab1 cor0 @@ -43528,8 +44065,15 @@ SELECT + col1 * + - col1 AS col1, col1 AS col1 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col2, + col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query II rowsort SELECT - - col0 AS col1, - col2 FROM tab2 AS cor0 @@ -43895,8 +44439,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ), - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 43 IS NULL +---- +-3 +-3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 @@ -43905,8 +44452,15 @@ SELECT - + COUNT ( * ), - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 43 IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - 13 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 13 AS col1, col2 AS col1 FROM tab0 AS cor0 +---- +10 +13 +13 +13 +47 +99 query I rowsort SELECT - col0 * - + 65 FROM tab0 @@ -46104,8 +46658,15 @@ SELECT ( - SUM ( + 82 ) ) AS col2 FROM tab2 # Datafusion - Expected - 75 # Datafusion - Expected - 97 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ tab2\.col1 AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 + + + col1 AS col1, + col0 AS col1 FROM tab2 +---- +141 +142 +46 +64 +75 +97 query I rowsort label-7601 SELECT ALL - 41 + + COUNT ( + ( col1 ) ) FROM tab2 @@ -47893,8 +48454,15 @@ SELECT DISTINCT - 20 col2 FROM tab0 AS cor0 WHERE NOT 19 IS NULL # Datafusion - Expected - 40 # Datafusion - Expected - -58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 col1, col2 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +23 +40 +58 query I rowsort SELECT - + col1 * + 34 FROM tab2 AS cor0 @@ -48306,8 +48874,15 @@ SELECT ALL + + col2 * 92 AS col2, - 1 * + + col2 / 54 FROM tab1 AS cor0 WHERE NU # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, + col0 FROM tab2 cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT ALL - col0 + + col0 FROM tab1 AS cor0 WHERE ( NULL ) <> - col0 @@ -48793,8 +49368,11 @@ SELECT ALL + - 60 col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 62 AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +-62 +3 query I rowsort SELECT + col1 AS col0 FROM tab2 WHERE + col1 + + col0 * 19 IS NULL AND NULL IS NULL @@ -49045,8 +49623,15 @@ SELECT * FROM tab2 WHERE NOT - 47 IS NULL # Datafusion - Expected - 15 # Datafusion - Expected - 99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "CAST\(cor0\.col0 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0 +---- +10 +15 +47 +87 +97 +99 query I rowsort SELECT 72 + 74 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 @@ -50500,8 +51085,15 @@ SELECT DISTINCT + 89 - - - ( MIN ( - col1 ) ) FROM tab2 # Datafusion - Expected - 96 # Datafusion - Expected - 94 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ tab1\.col1 AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + col1 AS col0, col2 AS col0 FROM tab1 +---- +10 +28 +59 +68 +94 +96 query I rowsort label-8325 SELECT ALL - CAST ( - 55 AS INTEGER ) * - - col1 FROM tab1 @@ -51466,8 +52058,15 @@ SELECT ( + + col0 ) / 49 * col1 * - - col1 + 84 AS col2 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -7722 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \* \(\- tab0\.col1\) \* \(\- \(\- tab0\.col1\)\) \* Int64\(\-78\) AS col1" at position 0 and "\(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\)\) \+ \(\- \(\- tab0\.col2\)\) \+ \(\- tab0\.col0\) \+ Int64\(56\) \* \(\- \(\- tab0\.col0\)\) \* \(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 * + ( - col1 ) * - - col1 * + - 78 AS col1, - CAST ( + ( + - CAST ( NULL AS INTEGER ) ) AS INTEGER ) + - - col2 + - col0 + 56 * - - col0 * + - col0 AS col1 FROM tab0 +---- +-24052626 +-343980 +-7722 +NULL +NULL +NULL query I rowsort SELECT DISTINCT + col1 * + col0 * + col2 FROM tab2 AS cor0 @@ -52515,8 +53114,11 @@ SELECT DISTINCT - MAX ( ALL + 27 ) AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( * ) col0 FROM tab0 +---- +3 +3 query I rowsort label-8651 SELECT - 56 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 @@ -53723,8 +54325,15 @@ SELECT DISTINCT + + 17 AS col0, col0 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -5967 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- cor0\.col1\) \+ Int64\(\-38\) 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 IR valuesort SELECT col1 * + - col1 + + + ( + - 38 ) AS col0, CAST ( NULL AS FLOAT8 ) AS col0 FROM tab2 AS cor0 +---- +-2639 +-4527 +-5967 +NULL +NULL +NULL query II rowsort SELECT DISTINCT col1 / - col1 + + col0 AS col2, + col1 FROM tab1 WHERE NOT ( + col1 ) IS NOT NULL @@ -53904,8 +54513,11 @@ SELECT ALL MAX ( DISTINCT col0 ) AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(88\)\) AS col2" at position 0 and "Int64\(\-57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( 88 ) AS col2, + ( - 57 ) AS col2 FROM tab2 +---- +-57 +88 query I rowsort SELECT DISTINCT - 12 * + - ( - + col2 ) FROM tab2 @@ -55508,8 +56120,15 @@ SELECT ALL + + 10 + - 63 * - 96 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -94 # Datafusion - Expected - 91 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, - 94 col1 FROM tab1 +---- +-94 +-94 +-94 +51 +85 +91 query I rowsort SELECT DISTINCT - 2 * - col2 FROM tab0 @@ -56903,8 +57522,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +-3 +3 query I rowsort SELECT - col0 FROM tab0 AS cor0 WHERE NOT - col1 = NULL @@ -56917,8 +57539,15 @@ SELECT - col0 FROM tab0 AS cor0 WHERE NOT - col1 = NULL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 AS col1, + col1 FROM tab0 cor0 +---- +1 +1 +21 +21 +81 +81 query II rowsort label-9374 SELECT DISTINCT - COUNT ( * ) * ( + - 49 ) AS col0, - 8 FROM tab1 @@ -57893,8 +58522,11 @@ SELECT + col2 AS col2, col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 291 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-97\)\)\) AS col2" at position 0 and "Int64\(\-73\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( - 97 ) AS col2, - 73 + - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +-73 +291 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 / + 28 / - 0 <> NULL @@ -58285,8 +58917,15 @@ SELECT ALL 57 + + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 88 # Datafusion - Expected - -5321 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ Int64\(\-56\) \* cor0\.col2 AS col0" at position 0 and "cor0\.col1 \+ Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 55 + + - 56 * + col2 AS col0, col1 + 41 AS col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL +---- +-3249 +-3753 +-5321 +46 +55 +88 query I rowsort label-9600 SELECT 91 + ( - + CAST ( NULL AS INTEGER ) ) * col2 * + ( 63 ) FROM tab1 AS cor0 @@ -58870,8 +59509,15 @@ SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE NOT + 24 < - 11 + + ( 30 ) # Datafusion - Expected - 77 # Datafusion - Expected - -75 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col0 AS col0, col1 AS col0 FROM tab2 cor0 +---- +-46 +-64 +-75 +51 +67 +77 query I rowsort SELECT ALL + ( - 90 ) FROM tab2 AS cor0 @@ -60071,8 +60717,10 @@ SELECT DISTINCT - col2 / - 93 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to e38fae73af3f0555c70a232365aa1bda -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ Int64\(\-21\) AS col2" at position 1 and "Int64\(\-4\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT CAST ( - col0 AS INTEGER ), col0 + - 21 AS col2, + - 4 AS col2 FROM tab1 +---- +9 values hashing to 763b34e034b2573afac59669030ce368 query I rowsort SELECT + 0 * - - 41 * col2 FROM tab0 @@ -60342,8 +60990,15 @@ SELECT ALL col0 * 60 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 22 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 AS col1, col0 col1 FROM tab0 AS cor0 +---- +15 +22 +22 +22 +87 +97 query I rowsort label-9940 SELECT DISTINCT + 47 * - COUNT ( * ) AS col0 FROM tab2 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_8.slt b/data/sqlite/random/aggregates/slt_good_8.slt index 0112937..0056345 100644 --- a/data/sqlite/random/aggregates/slt_good_8.slt +++ b/data/sqlite/random/aggregates/slt_good_8.slt @@ -246,8 +246,15 @@ SELECT + SUM ( DISTINCT col0 ) * SUM ( 9 ) / 32 AS col2 FROM tab1 # Datafusion - Expected - 71 # Datafusion - Expected - -5 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, 71 AS col2 FROM tab1 +---- +-14 +-47 +-5 +71 +71 +71 query I rowsort SELECT ALL - ( + + ( + col1 ) ) AS col0 FROM tab0 @@ -1725,8 +1732,15 @@ SELECT - 94 + - - 2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Expected - 72 # Datafusion - Expected - 58 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "tab2\.col2 \+ Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, col2 + 32 AS col0 FROM tab2 +---- +23 +40 +55 +58 +72 +90 query II rowsort SELECT DISTINCT col1 * + ( - ( - col0 ) ) AS col1, + col2 FROM tab2 AS cor0 @@ -2049,8 +2063,15 @@ SELECT + col0 * + col1 - - 51 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 99 # Datafusion - Expected - -81 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + - col1 ) AS col1, 99 AS col1 FROM tab0 +---- +-1 +-21 +-81 +99 +99 +99 query II rowsort SELECT ALL - col2 col0, col2 * - + col2 AS col1 FROM tab1 @@ -2094,8 +2115,15 @@ SELECT ALL + - 21 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 41 # Datafusion - Expected - -1 # Datafusion - Expected - 96 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col0 / \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, col0 / - col0 col0 FROM tab1 AS cor0 +---- +-1 +-1 +-1 +59 +68 +96 query I rowsort label-340 SELECT DISTINCT + + COUNT ( - 16 ) col0 FROM tab0 AS cor0 @@ -2566,8 +2594,15 @@ SELECT ALL col2 * - - 73 FROM tab1 AS cor0 # Datafusion - Expected - -10 # Datafusion - Expected - -97 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col1" at position 0 and "\(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, - col2 AS col1 FROM tab0 +---- +-10 +-15 +-47 +-87 +-97 +-99 query II rowsort label-415 SELECT DISTINCT - 26 / - col0, col1 AS col1 FROM tab0 @@ -3335,8 +3370,15 @@ SELECT DISTINCT - - ( - COUNT ( * ) ) AS col1 FROM tab0 cor0 # Datafusion - Expected - -1 # Datafusion - Expected - -5 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(\-71\) / cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, - 71 / + col2 AS col0 FROM tab1 AS cor0 +---- +-1 +-1 +-14 +-47 +-5 +0 query I rowsort label-540 SELECT - COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL > col1 @@ -3671,8 +3713,15 @@ SELECT + 73 AS col2 FROM tab0, tab0 AS cor0 WHERE + 21 > NULL # Datafusion - Expected - 115 # Datafusion - Expected - 58 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "tab1\.col2 \+ tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 AS col0, col2 + + col1 AS col0 FROM tab1 +---- +110 +115 +58 +58 +58 +64 query I rowsort SELECT + + col0 FROM tab1 AS cor0 WHERE NOT NULL >= col1 + 49 @@ -4267,8 +4316,15 @@ SELECT * FROM tab1 WHERE NULL IN ( - CAST ( NULL AS INTEGER ) - + col0 / - col2, # Datafusion - Expected - -47 # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col1, CAST ( - col2 AS INTEGER ) col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +NULL +NULL +NULL query I rowsort SELECT DISTINCT col0 - - + col0 AS col1 FROM tab1 AS cor0 @@ -4347,8 +4403,15 @@ SELECT - col0 AS col1 FROM tab0 WHERE NOT + col1 IS NULL # Datafusion - Expected - 87 # Datafusion - Expected - 59 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 59 col2, col0 AS col2 FROM tab0 +---- +15 +59 +59 +59 +87 +97 query I rowsort SELECT ALL col2 AS col1 FROM tab0 WHERE NOT ( - 55 + - col2 + + ( - - ( + - 39 ) ) / - 72 * col1 ) IS NOT NULL @@ -4389,8 +4452,15 @@ SELECT ALL - 20 * - + col1 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 6237 # Datafusion - Expected - 60 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "Int64\(\-76\) \* \(\- cor0\.col1\) \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 60 ) AS col0, - 76 * - col1 + col1 AS col0 FROM tab0 cor0 +---- +1617 +60 +60 +60 +6237 +77 query II rowsort label-720 SELECT + + col2, col2 / + + col0 col1 FROM tab2 AS cor0 @@ -5737,8 +5807,11 @@ SELECT COUNT ( - 49 ) AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col2, 88 AS col2 FROM tab2 AS cor0 +---- +88 +NULL query I rowsort SELECT DISTINCT col1 + + col1 col2 FROM tab2 @@ -5782,8 +5855,15 @@ SELECT - 62 + + col1 + - col0 / ( - + col1 ) + + 36 + - col1 * - - col2 AS col0 # Datafusion - Expected - NULL # Datafusion - Expected - 45 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ cor0\.col0 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 IR valuesort SELECT + 30 + col0 col0, - CAST ( NULL AS FLOAT8 ) AS col0 FROM tab0 AS cor0 +---- +117 +127 +45 +NULL +NULL +NULL query I rowsort SELECT ALL 70 AS col2 FROM tab1 cor0 @@ -5991,8 +6071,15 @@ SELECT DISTINCT + ( - + 25 ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 59 # Datafusion - Expected - 91 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, col2 AS col1 FROM tab1 cor0 +---- +51 +59 +68 +85 +91 +96 query II rowsort SELECT DISTINCT - col2, - ( col2 ) * + 79 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL @@ -6044,8 +6131,15 @@ SELECT 72 - + col2 col2 FROM tab0 # Datafusion - Expected - -49 # Datafusion - Expected - 63 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \* tab0\.col1 \+ tab0\.col0 AS col1" at position 0 and "Int64\(\-49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 34 * + col1 + + col0 AS col1, - 49 AS col1 FROM tab0 +---- +-2739 +-49 +-49 +-49 +-627 +63 query I rowsort label-982 SELECT + COUNT ( * ) + - 9 AS col1 FROM tab2 @@ -7096,8 +7190,15 @@ SELECT + 87, col2 FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "CAST\(cor0\.col2 AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, CAST ( col2 AS INTEGER ) FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 2cc3bfbdc64143cfeeb4e086f858888c @@ -7302,8 +7403,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * 47 * - + 84 + 96 AS col2, 16 AS col2 FROM tab0 +---- +-11748 +16 query I rowsort label-1195 SELECT col1 / col0 + + 4 AS col1 FROM tab1 @@ -7363,8 +7467,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE col0 * + 88 * - 35 <= NULL # Datafusion - Expected - -3 # Datafusion - Expected - -81 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(68\) \- Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col2, 68 - + 71 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-3 +-3 +-3 +-81 query II rowsort label-1205 SELECT ALL - - 57, - 68 * - + SUM ( - col0 ) AS col2 FROM tab1 AS cor0 @@ -7684,8 +7795,11 @@ SELECT * FROM tab1 WHERE NOT col1 + - col2 NOT BETWEEN - 7 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 288 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 * COUNT ( * ) AS col0, - COUNT ( * ) AS col0 FROM tab1 +---- +-3 +288 query I rowsort label-1260 SELECT DISTINCT - COUNT ( * ) * MAX ( + CAST ( 21 AS INTEGER ) ) + - MIN ( + - 93 ) FROM tab1 cor0 @@ -7705,8 +7819,9 @@ SELECT + - MIN ( - col0 ) col2 FROM tab1 AS cor0 91 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / \(\- cor0\.col2\) AS col0" at position 1 and "cor0\.col2 \* \(\- cor0\.col2\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - col1 * - col2 - col0 - - - col1, col1 / - col2 AS col0, col2 * - col2 AS col0 FROM tab0 cor0 WHERE col1 IN ( + - 81 * + 38 ) +---- query I rowsort label-1264 SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col0 IS NULL @@ -8065,8 +8180,15 @@ SELECT - ( 34 ) + + + 77 * - ( col0 ) FROM tab0 # Datafusion - Expected - 3712 # Datafusion - Expected - 77 # Datafusion - Expected - 2560 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(64\) \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, 64 * + col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL +---- +1472 +2560 +3712 +51 +67 +77 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE 87 <= - - col2 @@ -9653,8 +9775,15 @@ SELECT DISTINCT + col2 * + + col0 col0 FROM tab1 # Datafusion - Expected - -47 # Datafusion - Expected - -84 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 84 AS col1, - col1 AS col1 FROM tab1 +---- +-14 +-47 +-5 +-84 +-84 +-84 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( NOT col0 * col2 BETWEEN col1 AND NULL ) ) @@ -9781,8 +9910,13 @@ SELECT + col1 * + - col0 FROM tab2 WHERE 59 <= ( - + col2 ) # Datafusion - Expected - -93 # Datafusion - Expected - 51 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col1 AS Int32\) \+ \(\- tab2\.col2\) / Int64\(38\) \* tab2\.col1 AS col2" at position 0 and "\(\- Int64\(93\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( + col1 AS INTEGER ) + - ( col2 ) / 38 * col1 AS col2, + ( - + 93 ) AS col2 FROM tab2 +---- +-93 +-93 +0 +51 query II rowsort label-1610 SELECT DISTINCT COUNT ( * ) AS col2, + 23 AS col0 FROM tab0 @@ -10256,13 +10390,18 @@ 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\(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\. +query RI valuesort SELECT COUNT ( * ) + - - AVG ( ALL - col0 ) AS col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= - 49 +---- +0 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 4e70851f41149a7b86652e75e38cd784 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 1 and "\(\- cor0\.col1\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col2 * - col1 col0, - col1, - col1 FROM tab2 AS cor0 +---- +9 values hashing to e043b6d98d5742a03fdc979f00f71086 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE + 38 + + 76 * + col1 / col2 <> NULL @@ -10550,8 +10689,15 @@ SELECT DISTINCT ( + 22 ) AS col1, + 34 * 27 + - col2 FROM tab2 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - -80 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ cor0\.col1 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + + col1 AS col2, col0 col2 FROM tab1 AS cor0 +---- +-37 +-44 +-80 +51 +85 +91 query I rowsort label-1744 SELECT ALL - - MAX ( col2 ) AS col1 FROM tab2 AS cor0 @@ -10763,8 +10909,15 @@ SELECT DISTINCT col1 + - 75 FROM tab1 AS cor0 # Datafusion - Expected - -52 # Datafusion - Expected - 5 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "Int64\(\-52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 AS col0, - 52 AS col0 FROM tab1 AS cor0 +---- +-52 +-52 +-52 +14 +47 +5 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < col2 / - 59 @@ -11457,8 +11610,15 @@ SELECT DISTINCT - col1 / col0 col0 FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - -75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, col0 AS col1 FROM tab2 +---- +-46 +-64 +-75 +46 +64 +75 query III rowsort SELECT ALL * FROM tab0 WHERE NOT + + col2 >= - + 83 + 10 @@ -11795,8 +11955,15 @@ SELECT + col0 + 61 * - col0 AS col0 FROM tab2 # Datafusion - Expected - 295 # Datafusion - Expected - 75 # Datafusion - Expected - 3196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col2" at position 0 and "tab1\.col2 \* tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 AS col2, + col2 * + col1 AS col2 FROM tab1 +---- +1344 +295 +3196 +75 +75 +75 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -12853,8 +13020,11 @@ SELECT * FROM tab1 WHERE NOT + - col1 = + 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 28 AS col0, 60 AS col0 FROM tab2 +---- +28 +60 query I rowsort SELECT ( 33 ) AS col1 FROM tab2 @@ -14421,8 +14591,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 81 AS col0, COUNT ( * ) * + - 97 AS col0 FROM tab1 cor0 +---- +-291 +-81 query III rowsort SELECT DISTINCT * FROM tab0 WHERE ( col0 / col2 ) IS NULL @@ -15193,8 +15366,15 @@ SELECT - CAST ( - - col1 AS INTEGER ) * col0 FROM tab2 AS cor0 # Datafusion - Expected - 63 # Datafusion - Expected - 23 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "\(\- cor0\.col1\) \- Int64\(\-19\) \+ CAST\(Int64\(58\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 23 AS col1, - col1 - - 19 + ( + ( CAST ( + 58 AS INTEGER ) ) ) AS col1 FROM tab1 AS cor0 +---- +23 +23 +23 +30 +63 +72 query I rowsort label-2526 SELECT 68 * + COUNT ( * ) FROM tab1 AS cor0 @@ -15378,8 +15558,15 @@ SELECT 16 * - - col0 AS col1 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - 94119003 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- tab0\.col2\) \* \(\- tab0\.col0\) \* tab0\.col2 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * - col2 * - col0 * col2 AS col0, col1 AS col0 FROM tab0 +---- +1 +1557345 +21 +81 +87000 +94119003 query I rowsort SELECT DISTINCT 71 * - + col1 FROM tab0 cor0 @@ -16010,8 +16197,15 @@ SELECT + - 61 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - -64 # Datafusion - Expected - 32 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 AS col1, ( - col0 ) AS col1 FROM tab2 cor0 +---- +-46 +-64 +-75 +32 +32 +32 query I rowsort label-2655 SELECT + SUM ( - col1 ) / + ( - 48 ) FROM tab2 AS cor0 @@ -16785,8 +16979,15 @@ SELECT + 19 / - - col1 * + col0 col0, 88 * + 62 AS col1 FROM tab2 # Datafusion - Expected - -40 # Datafusion - Expected - 0 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) / tab2\.col0 \* tab2\.col0 AS col2" at position 0 and "\(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 / col0 * col0 col2, - col2 AS col2 FROM tab2 +---- +-23 +-40 +-46 +-58 +-64 +0 query III rowsort SELECT * FROM tab2 WHERE + + 0 IS NULL @@ -18715,8 +18916,15 @@ NULL # Datafusion - Expected - 4656 # Datafusion - Expected - 4 # Datafusion - Expected - 4176 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-14\) AS Int32\)\) \+ \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 \* Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( - 14 AS INTEGER ) + - col2 AS col2, + col0 * 48 AS col2 FROM tab0 AS cor0 +---- +-33 +-85 +4 +4176 +4656 +720 query I rowsort label-3104 SELECT ALL + SUM ( col1 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL @@ -18791,8 +18999,15 @@ SELECT 88 + + col1 + + + 54 AS col1 FROM tab0 # Datafusion - Expected - -80 # Datafusion - Expected - 34 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ \(\- tab0\.col2\) AS col1" at position 0 and "Int64\(\-91\) \+ tab0\.col2 \+ tab0\.col2 / tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + - + col2 AS col1, ( - 91 ) + + col2 + col2 / col2 AS col1 FROM tab0 +---- +-43 +-80 +-98 +11 +34 +9 query II rowsort label-3117 SELECT - col1 / - col2 * + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * col0, + ( col0 ) FROM tab2 @@ -18893,8 +19108,12 @@ SELECT DISTINCT - col1 * + ( + col1 ) AS col0 FROM tab1 # Datafusion - Expected - 37 # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 37 AS col2, - COUNT ( DISTINCT col0 ) * CAST ( NULL AS INTEGER ), + 3 AS col2 FROM tab2 WHERE NOT - col2 IS NULL +---- +3 +37 +NULL query I rowsort label-3131 SELECT - CAST ( - COUNT ( 91 ) AS INTEGER ) AS col0 FROM tab1 WHERE NOT - col2 IS NULL @@ -19047,8 +19266,9 @@ SELECT + 75 * - 3 AS col1 FROM tab0 -225 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) / Int64\(58\) / \(\- tab2\.col1\) AS col1" at position 0 and "Int64\(5\) \* Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 43 / 58 / - col1 AS col1, + 5 * + 50 AS col1 FROM tab2 WHERE NOT - + col2 <= NULL +---- query II rowsort SELECT 71 AS col2, + 63 FROM tab0 AS cor0 @@ -19081,8 +19301,15 @@ SELECT DISTINCT col2 * - CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, + col0 AS col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query III rowsort label-3158 SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( - 88 AS INTEGER ) IS NOT NULL @@ -19337,8 +19564,11 @@ SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * - col0 <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1822 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \- Int64\(27\) \* Int64\(71\) AS col0" at position 0 and "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 95 - 27 * + 71 AS col0, - CAST ( + ( COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT 40 NOT BETWEEN + col0 AND NULL +---- +-1822 +0 query II rowsort SELECT ALL + col2, + col2 * + ( 26 ) FROM tab1 AS cor0 @@ -19688,8 +19918,15 @@ SELECT - ( 31 ) AS col1 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 49 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 49 AS col1, col2 AS col1 FROM tab0 +---- +10 +47 +49 +49 +49 +99 query I rowsort label-3256 SELECT DISTINCT 59 * - COUNT ( * ) col0 FROM tab0 @@ -22044,8 +22281,15 @@ SELECT + 44 col2 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - -181 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(\-31\) \+ cor0\.col1 AS col1" at position 0 and "Int64\(34\) / \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 6 * - 31 + col1 AS col1, + 34 / - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 +---- +-139 +-172 +-181 +NULL +NULL +NULL query II rowsort SELECT DISTINCT - col1, - 18 col1 FROM tab2 AS cor0 @@ -22416,8 +22660,11 @@ SELECT - ( + COUNT ( * ) ) + - - COUNT ( * ) - MIN ( col0 ) * COUNT ( col0 ) * 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "max\(DISTINCT \(\- tab0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, MAX ( DISTINCT - col0 ) AS col0 FROM tab0 +---- +-15 +3 query I rowsort label-3706 SELECT + SUM ( ALL + 21 ) AS col1 FROM tab2 @@ -22628,8 +22875,15 @@ SELECT - col1 * - 61 * - col0 * - - col0 AS col1 FROM tab1 cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1, col1 FROM tab0 cor0 +---- +1 +1 +21 +21 +81 +81 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE - 51 > - + 93 @@ -23481,8 +23735,15 @@ SELECT DISTINCT + 25 - + + ( col2 ) FROM tab2 AS cor0 # Datafusion - Expected - 396633 # Datafusion - Expected - -5 # Datafusion - Expected - 42195 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(87\) \* cor0\.col1 \* Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col2, 87 * col1 * 97 AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +118146 +396633 +42195 query I rowsort label-3885 SELECT ALL - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 @@ -23724,8 +23985,11 @@ SELECT DISTINCT ( col0 ) + col0 * + col0 AS col0 FROM tab2 AS cor0 WHERE ( 34 * # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(cor0\.col2\)\) AS col1" at position 0 and "CAST\(Int64\(\-85\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( ALL + col2 ) AS col1, CAST ( - 85 AS INTEGER ) AS col1 FROM tab2 AS cor0 +---- +-3 +-85 query I rowsort SELECT ALL 66 * - + 16 AS col0 FROM tab1 AS cor0 @@ -24510,8 +24774,12 @@ SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE col0 < + 41 # Datafusion - Expected - 89 # Datafusion - Expected - 9 # Datafusion - Expected - -846 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(95\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - 89, COUNT ( * ) AS col2, + COUNT ( * ) + + - COUNT ( * ) * 95 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) +---- +-846 +89 +9 query II rowsort SELECT ALL 62 * - ( + 53 ), col0 AS col2 FROM tab1 @@ -24551,8 +24819,11 @@ SELECT + 40 AS col0, + 16 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 103 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(CAST\(cor0\.col1 AS Int32\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( + + CAST ( + col1 AS INTEGER ) ) AS col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +-3 +103 query II rowsort SELECT ALL - col2, 55 AS col2 FROM tab0 AS cor0 @@ -25470,8 +25741,11 @@ SELECT + - COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-80\)\) AS col0" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int32\) \+ cor0\.col0 / cor0\.col1 \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 80 AS col0, + CAST ( - col2 AS INTEGER ) + col0 / + col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 +---- +80 +NULL query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE + 8 BETWEEN NULL AND NULL @@ -26353,8 +26627,15 @@ SELECT - COUNT ( * ) + - 32 AS col2 FROM tab2 WHERE NOT col0 IS NULL # Datafusion - Expected - 40 # Datafusion - Expected - -87 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 87 AS col1, col2 AS col1 FROM tab2 +---- +-87 +-87 +-87 +23 +40 +58 query II rowsort SELECT + col2 AS col0, - 22 AS col1 FROM tab0 @@ -27228,8 +27509,15 @@ SELECT 5 - + col0 + - col1 AS col0 FROM tab2 cor0 # Datafusion - Expected - -39 # Datafusion - Expected - 32 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "Int64\(\-39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( 32 ) AS col0, - 39 AS col0 FROM tab0 +---- +-39 +-39 +-39 +32 +32 +32 query I rowsort SELECT ALL - ( + 4 ) + + 3 AS col0 FROM tab2 @@ -27375,8 +27663,15 @@ SELECT + col0 AS col1, - col1 col0 FROM tab2 # Datafusion - Expected - -68 # Datafusion - Expected - 9 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "\(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 9 col2, - col2 col2 FROM tab1 +---- +-59 +-68 +-96 +9 +9 +9 query I rowsort label-4522 SELECT ALL - COUNT ( * ) * 12 - MIN ( ALL 7 ) FROM tab0 WHERE NOT ( - - 54 ) IS NOT NULL @@ -28563,8 +28858,15 @@ SELECT - + 18 / - ( + + col0 ), col0 - 19 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - 69 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-69\)\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 69 AS col2, - col0 AS col2 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +69 +69 +69 query II rowsort label-4709 SELECT DISTINCT 56, COUNT ( * ) AS col1 FROM tab1 AS cor0 @@ -29094,8 +29396,15 @@ SELECT DISTINCT col1 * - + 49 + + 98 AS col0 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col0\) \* \(\- cor0\.col2\) \+ CAST\(NULL AS Int32\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, - col0 * - + col2 + + CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab1 AS cor0 +---- +51 +85 +91 +NULL +NULL +NULL query II rowsort label-4801 SELECT - COUNT ( * ) AS col0, - COUNT ( * ) AS col1 FROM tab1 cor0 @@ -29523,8 +29832,15 @@ SELECT DISTINCT + COUNT ( * ) - SUM ( 50 ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col1, + col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query II rowsort SELECT - col2 AS col2, - col2 + + ( col1 ) FROM tab1 AS cor0 @@ -29766,8 +30082,15 @@ SELECT - ( + 29 ), - col1 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 2360 # Datafusion - Expected - -58 # Datafusion - Expected - 3422 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(59\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col2, + 59 * + col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL +---- +-23 +-40 +-58 +1357 +2360 +3422 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE ( + col2 + + + col1 BETWEEN col2 AND NULL ) @@ -30175,8 +30498,15 @@ SELECT - CAST ( + 12 AS INTEGER ) AS col1 FROM tab2 WHERE + + col1 + - col2 > 90 # Datafusion - Expected - 21 # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \+ CAST\(NULL AS Float64\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT 46 + + CAST ( NULL AS FLOAT8 ) AS col2, col1 col2 FROM tab0 +---- +1 +21 +81 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > + + col1 @@ -30343,8 +30673,15 @@ SELECT ALL + 71 * - col0 * - - 99 FROM tab1 AS cor0 WHERE NOT col2 * + col0 * ( # Datafusion - Expected - -21 # Datafusion - Expected - -81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1, - ( + col1 ) FROM tab0 cor0 +---- +-1 +-1 +-21 +-21 +-81 +-81 query I rowsort SELECT DISTINCT - - col0 * 9 FROM tab0 AS cor0 @@ -31507,8 +31844,11 @@ SELECT ALL ( + + 10 ) AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 87 AS col2, COUNT ( * ) col2 FROM tab1 +---- +-87 +3 query III rowsort SELECT ALL * FROM tab2 WHERE NOT + 91 IS NULL @@ -31803,8 +32143,15 @@ SELECT 45 * - col0 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - 6237 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* Int64\(81\) AS col1" at position 0 and "\(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + 81 col1, - col1 AS col1 FROM tab2 +---- +-51 +-67 +-77 +4131 +5427 +6237 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT - - col0 > - col0 @@ -32506,8 +32853,15 @@ SELECT ALL col2 * 23 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -17 # Datafusion - Expected - -99 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(\-17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, - 17 AS col1 FROM tab0 AS cor0 +---- +-10 +-17 +-17 +-17 +-47 +-99 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - 84 @@ -33026,8 +33380,15 @@ SELECT DISTINCT - col1 col0 FROM tab2 AS cor0 WHERE col0 / + 16 IS NOT NULL # Datafusion - Expected - 663 # Datafusion - Expected - -43 # Datafusion - Expected - 1105 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \+ tab1\.col1 AS col1" at position 0 and "Int64\(13\) \* tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 + col1 AS col1, 13 * col0 AS col1 FROM tab1 +---- +-1 +-34 +-43 +1105 +1183 +663 query I rowsort SELECT + col0 + - 87 FROM tab0 @@ -33098,8 +33459,15 @@ SELECT DISTINCT - 85 - COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Expected - -72 # Datafusion - Expected - -99 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col2" at position 0 and "Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 99 AS col2, - 72 AS col2 FROM tab1 AS cor0 +---- +-72 +-72 +-72 +-99 +-99 +-99 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT NULL > 66 @@ -33365,8 +33733,15 @@ NULL # Datafusion - Expected - 40 # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - + CAST ( NULL AS INTEGER ) ) AS col1, col2 col1 FROM tab2 +---- +23 +40 +58 +NULL +NULL +NULL query III rowsort SELECT * FROM tab2 WHERE NOT - col2 * + col1 * col0 * col2 + 20 IS NULL @@ -34720,8 +35095,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( ALL col0 ) - + - COUNT ( * ) AS col2, 81 AS col2 FROM tab0 AS cor0 +---- +100 +81 query III rowsort label-5727 SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT - - col2 NOT BETWEEN NULL AND - col1 / + - CAST ( NULL AS INTEGER ) * + col1 + + col1 ) @@ -34960,8 +35338,15 @@ SELECT DISTINCT - 23 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 14 # Datafusion - Expected - -87 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \- tab1\.col1 AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 40 - + col1 AS col2, col1 col2 FROM tab1 +---- +-45 +-54 +-87 +14 +47 +5 query I rowsort SELECT ALL + col2 + - - ( 41 ) * - - 88 + + - 37 AS col0 FROM tab2 AS cor0 @@ -35272,8 +35657,11 @@ SELECT ALL * FROM tab1 WHERE NOT - - ( + 19 ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 35 AS col1 FROM tab0 +---- +3 +35 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT ( - - 97 ) IS NOT NULL @@ -35522,8 +35910,15 @@ SELECT - 0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, + col1 AS col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-5853 SELECT DISTINCT - - COUNT ( * ) col2 FROM tab0 WHERE NOT + - 44 NOT BETWEEN NULL AND - col1 @@ -35876,8 +36271,15 @@ SELECT DISTINCT col0 * - col0 + + 77 * + - col1 AS col0 FROM tab1 # Datafusion - Expected - 29 # Datafusion - Expected - -99 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, 29 AS col0 FROM tab0 +---- +-10 +-47 +-99 +29 +29 +29 query II rowsort label-5908 SELECT - 44, - col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 @@ -35927,8 +36329,11 @@ SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 58 + 67 - - col0 + + + ( 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- min\(\(\- cor0\.col1\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, - MIN ( - col1 ) AS col0 FROM tab1 AS cor0 +---- +47 +NULL query I rowsort SELECT ALL + 30 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 @@ -36074,8 +36479,11 @@ SELECT 52 / + 56 AS col1, - 98 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 82 AS col0, + COUNT ( * ) col0 FROM tab2 AS cor0 +---- +3 +82 query I rowsort SELECT ALL ( - + col1 ) + - col2 AS col1 FROM tab1 AS cor0 @@ -36346,8 +36754,15 @@ SELECT DISTINCT + 7 col1 FROM tab2 AS cor0 # Datafusion - Expected - 136 # Datafusion - Expected - -31 # Datafusion - Expected - 192 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col0" at position 0 and "cor0\.col2 \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 col0, col2 + + col2 AS col0 FROM tab1 AS cor0 +---- +-31 +-31 +-31 +118 +136 +192 query I rowsort SELECT ALL + - col0 FROM tab1 WHERE NULL IS NOT NULL @@ -36702,8 +37117,10 @@ SELECT + col1 AS col1 FROM tab0 WHERE NOT 84 IN ( - - CAST ( NULL AS INTEGER ), # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 16ba75327f46202fb9e87cc0b2fad43c -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 1 and "Int64\(72\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 77 * + 8 AS col0, col2 AS col1, + 72 AS col1 FROM tab1 +---- +9 values hashing to d2758be07e8bc24750fca47a0c7fa8a4 query I rowsort label-6037 SELECT + 17 * - + COUNT ( * ) AS col2 FROM tab0 @@ -36796,8 +37213,15 @@ SELECT ALL - CAST ( 83 AS INTEGER ) * col0 FROM tab1 AS cor0 WHERE NOT ( - + 17 # Datafusion - Expected - 81 # Datafusion - Expected - 87 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) / \(\- \(\- cor0\.col1\)\) \+ cor0\.col0 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( col2 ) / - - col1 + + col0 AS col2, col1 AS col2 FROM tab0 AS cor0 +---- +-2 +1 +15 +21 +81 +87 query I rowsort SELECT + col0 + + ( - col2 ) AS col2 FROM tab0 @@ -37634,8 +38058,15 @@ SELECT DISTINCT + MAX ( + 51 ) AS col0 FROM tab2 WHERE NOT + 50 IS NULL # Datafusion - Expected - -75 # Datafusion - Expected - 58 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "tab2\.col0 \* \(\- tab2\.col2\) / tab2\.col2 \- \(\- Int64\(\-11\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 col1, + col0 * + - ( + + col2 ) / + col2 - - - 11 AS col1 FROM tab2 +---- +-57 +-75 +-86 +23 +40 +58 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 @@ -37644,8 +38075,15 @@ SELECT + col2 col1, + col0 * + - ( + + col2 ) / + col2 - - - 11 AS col1 FROM tab # Datafusion - Expected - -705 # Datafusion - Expected - -99 # Datafusion - Expected - -9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col2" at position 0 and "tab0\.col2 \* \(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, + col2 * - col0 col2 FROM tab0 +---- +-10 +-47 +-705 +-870 +-9603 +-99 query I rowsort SELECT + ( - + 87 ) FROM tab0 @@ -37661,8 +38099,15 @@ SELECT + ( - + 87 ) FROM tab0 # Datafusion - Expected - -40 # Datafusion - Expected - -58 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "\(\- cor0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2, - ( + + col2 ) FROM tab2 AS cor0 +---- +-23 +-23 +-40 +-40 +-58 +-58 query I rowsort label-6195 SELECT DISTINCT + + MIN ( ALL - - col0 ) FROM tab2 AS cor0 @@ -38155,8 +38600,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 19 AS col2, 73 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 +---- +19 +73 query I rowsort SELECT ALL - 3 + + 34 FROM tab0 @@ -38539,8 +38987,15 @@ SELECT - 0 / - col0 AS col0 FROM tab0 # Datafusion - Expected - -5074 # Datafusion - Expected - 6188 # Datafusion - Expected - -5848 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* tab1\.col0 AS col0" at position 0 and "tab1\.col2 \* Int64\(\-86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * + col0 AS col0, col2 * - 86 col0 FROM tab1 +---- +-5074 +-5848 +-8256 +4896 +5015 +6188 query II rowsort SELECT - 68 AS col2, col2 - + col0 * - col0 + 83 FROM tab0 cor0 @@ -38576,8 +39031,15 @@ SELECT + col2 * + + CAST ( - - col2 AS INTEGER ) + + col2 AS col2 FROM tab1 AS c # Datafusion - Expected - 47 # Datafusion - Expected - -98 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(98\)\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 98 AS col0, col1 AS col0 FROM tab1 AS cor0 +---- +-98 +-98 +-98 +14 +47 +5 query III rowsort SELECT ALL * FROM tab2 cor0 WHERE col2 + - 30 IN ( + + 49, 78 ) @@ -38767,8 +39229,15 @@ SELECT ALL 75, COUNT ( * ) col0 FROM tab2 # Datafusion - Expected - 66 # Datafusion - Expected - NULL # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "cor0\.col0 \- cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col0, col0 - col1 AS col0 FROM tab0 AS cor0 +---- +-66 +66 +96 +NULL +NULL +NULL query I rowsort SELECT - - col0 * + col2 + 42 FROM tab0 cor0 @@ -38791,8 +39260,15 @@ SELECT DISTINCT + + ( + - col0 ) + - + col1 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 97 # Datafusion - Expected - -345 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* \(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 23 * - col0 AS col2, col0 col2 FROM tab0 AS cor0 +---- +-2001 +-2231 +-345 +15 +87 +97 query I rowsort label-6379 SELECT DISTINCT + COUNT ( * ) * SUM ( col1 ) AS col1 FROM tab2 AS cor0 @@ -39056,8 +39532,15 @@ NULL # Datafusion - Expected - 4185 # Datafusion - Expected - -2 # Datafusion - Expected - 594 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col2" at position 0 and "tab1\.col1 \* tab1\.col0 \- Int64\(24\) \+ \(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 2 ) col2, col1 * col0 - + 24 + - col2 AS col2 FROM tab1 +---- +-2 +-2 +-2 +342 +4185 +594 query I rowsort SELECT ( - 67 ) * - col1 FROM tab2 @@ -39213,8 +39696,15 @@ SELECT ALL + 80 * 65 - - + col0 * + - 44 col0 FROM tab1 AS cor0 # Datafusion - Expected - -5100 # Datafusion - Expected - 5 # Datafusion - Expected - -4425 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "Int64\(75\) \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 AS col2, 75 * - col2 col2 FROM tab1 AS cor0 +---- +-4425 +-5100 +-7200 +14 +47 +5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 @@ -39250,8 +39740,11 @@ SELECT * FROM tab0 WHERE NOT ( NOT 48 * - - col2 + col0 <= 25 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, 85 AS col1 FROM tab1 +---- +3 +85 query I rowsort SELECT + col2 * - col0 FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND NULL @@ -39398,8 +39891,15 @@ SELECT ALL col2 + + ( - 36 ) AS col0 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "CAST\(NULL AS Float64\) \+ Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT col0 AS col2, CAST ( NULL AS FLOAT8 ) + + + 29 AS col2 FROM tab0 cor0 +---- +15 +87 +97 +NULL +NULL +NULL query I rowsort label-6474 SELECT - - 80 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 @@ -39487,8 +39987,15 @@ SELECT ALL SUM ( 53 ) AS col2 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - -97 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(97\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 97 AS col1, col2 AS col1 FROM tab1 AS cor0 +---- +-97 +-97 +-97 +59 +68 +96 query I rowsort label-6489 SELECT DISTINCT + + SUM ( + - col2 ) AS col1 FROM tab2 AS cor0 @@ -39517,8 +40024,10 @@ SELECT * FROM tab2 WHERE col2 IN ( + - CAST ( NULL AS INTEGER ), col2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ \(\- tab1\.col2\) \+ \(\- \(\- tab1\.col1\)\) AS col0" at position 1 and "tab1\.col2 AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL col0 AS col2, + col2 + - col2 + - - col1 AS col0, + col2 col0 FROM tab1 +---- +9 values hashing to b00d6783c2bca4fcdd252f1280cc76cb query I rowsort label-6494 SELECT COUNT ( * ) + 96 FROM tab2 AS cor0 @@ -39654,8 +40163,15 @@ SELECT ALL MAX ( - col2 ) * - + 96 FROM tab2 AS cor0 WHERE NOT ( NOT + - col2 IS # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col1 AS col0, col1 col0 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-6514 SELECT + + col0 * + 62 + col1 / - + 29 FROM tab1 cor0 @@ -39695,8 +40211,15 @@ SELECT + COUNT ( - col1 ) * - COUNT ( * ) AS col0 FROM tab0 # Datafusion - Expected - -67 # Datafusion - Expected - 60 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "\(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 60 AS col0, - ( + + col1 ) AS col0 FROM tab2 +---- +-51 +-67 +-77 +60 +60 +60 query I rowsort SELECT ( + 55 ) FROM tab0 @@ -39818,8 +40341,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) col0, + 13 AS col0 FROM tab0 +---- +13 +3 query I rowsort SELECT ALL - col1 * - - col1 col1 FROM tab2 @@ -40558,8 +41084,15 @@ SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL # Datafusion - Expected - 52 # Datafusion - Expected - -1 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(1\)\) AS col2" at position 0 and "Int64\(99\) \- cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + 1 ) col2, 99 - + col2 AS col2 FROM tab0 AS cor0 +---- +-1 +-1 +-1 +0 +52 +89 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE 75 > + col2 @@ -40778,8 +41311,15 @@ SELECT col2 + - + col2 col1 FROM tab2 AS cor0 # Datafusion - Expected - 5 # Datafusion - Expected - -91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col0 AS col2, + col1 AS col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +14 +47 +5 query I rowsort SELECT col0 FROM tab1 cor0 WHERE NULL <> ( + 23 ) @@ -41682,8 +42222,15 @@ SELECT ALL + col1 col2, col1 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, col2 AS col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-6849 SELECT + COUNT ( * ) * - - 14 AS col0 FROM tab1 @@ -41786,8 +42333,11 @@ SELECT ALL - 49 * + col1 + + 95 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(cor0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, - COUNT ( ALL col2 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL +---- +-3 +3 query I rowsort SELECT DISTINCT - col0 + - col2 + - + col1 FROM tab1 AS cor0 @@ -41834,8 +42384,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) / + col1 IS NULL # Datafusion - Expected - 1 # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- tab0\.col2\) \* tab0\.col2 AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) * - + col2 * ( + col2 ) AS col2, 1 AS col2 FROM tab0 +---- +1 +1 +1 +NULL +NULL +NULL query III rowsort SELECT * FROM tab0 WHERE NOT - ( - col0 ) * ( + col1 ) IS NOT NULL @@ -42184,8 +42741,15 @@ NULL # Datafusion - Expected - -21 # Datafusion - Expected - -48807 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(33\) \* Int64\(\-17\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 87 * + 33 * - 17 AS col2, - col1 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-48807 +-48807 +-48807 +-81 query I rowsort SELECT DISTINCT ( 26 ) + col1 * + - col0 FROM tab2 AS cor0 @@ -43577,8 +44141,11 @@ SELECT ALL * FROM tab2 AS cor0 WHERE + col1 + + - col2 / - - col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(\-39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1, - 39 AS col1 FROM tab2 AS cor0 +---- +-39 +NULL query I rowsort SELECT DISTINCT - ( - col1 ) * + col0 col0 FROM tab2 AS cor0 @@ -43912,8 +44479,15 @@ SELECT + ( + 80 ) * + + 84 * - - COUNT ( * ) - ( + COUNT ( * ) ) FROM tab2 cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 col1, + col0 AS col1 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT - col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL @@ -44362,8 +44936,15 @@ SELECT ALL 5 * + COUNT ( * ) + - COUNT ( - + col2 ) * + ( + COUNT ( * ) ) AS col # Datafusion - Expected - 219 # Datafusion - Expected - 570 # Datafusion - Expected - 1029 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* tab0\.col2 AS col2" at position 0 and "\(\- tab0\.col1\) \* Int64\(\-41\) \+ Int64\(81\) \+ tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 57 * col2 AS col2, - col1 * + - 41 + + 81 + + ( + col0 ) AS col2 FROM tab0 +---- +1029 +219 +2679 +3417 +5643 +570 query II rowsort SELECT col0 * col0, - col1 * - col0 * - 80 * - col2 AS col2 FROM tab2 WHERE NOT + - col0 * + - col2 * col2 IS NULL @@ -44926,8 +45507,15 @@ SELECT DISTINCT - col1 AS col1, 71 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 344960 # Datafusion - Expected - -58 # Datafusion - Expected - 351750 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 \* Int64\(70\) \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 col2, col1 * 70 * + col0 AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +164220 +344960 +351750 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 78 IS NULL AND - col0 + - + col0 IS NULL @@ -46280,8 +46868,15 @@ SELECT DISTINCT + col0 + + - col1 AS col2 FROM tab0 cor0 WHERE 21 IN ( + 12 * - # Datafusion - Expected - NULL # Datafusion - Expected - -81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +NULL +NULL +NULL query I rowsort SELECT ALL - 62 * col1 * col1 * + col2 + + col1 AS col1 FROM tab2 AS cor0 @@ -46433,8 +47028,15 @@ SELECT + COUNT ( + 99 ) FROM tab1 AS cor0 # Datafusion - Expected - 72 # Datafusion - Expected - 91 # Datafusion - Expected - 114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col1 \+ Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, col1 + 67 AS col2 FROM tab1 cor0 +---- +114 +51 +72 +81 +85 +91 query I rowsort label-7628 SELECT + + MAX ( - col2 ) * - + COUNT ( * ) AS col1 FROM tab2 AS cor0 @@ -46670,8 +47272,15 @@ SELECT DISTINCT - col1 / - 15 col0 FROM tab1 # Datafusion - Expected - 30 # Datafusion - Expected - 7 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "tab1\.col2 \+ \(\- Int64\(80\)\) \+ tab1\.col2 / tab1\.col2 \* CAST\(tab1\.col1 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 7 AS col0, col2 + - + 80 + + + col2 / col2 * CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 +---- +-16 +30 +35 +7 +7 +7 query I rowsort SELECT ALL - - ( + col1 ) FROM tab0 WHERE NOT 98 IS NULL @@ -47017,8 +47626,15 @@ SELECT * FROM tab0 cor0 WHERE NOT - ( + - 97 ) IN ( 59, - col1 / - col1 * + + co # Datafusion - Expected - 3850 # Datafusion - Expected - -58 # Datafusion - Expected - 3350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(50\) \* \(\- \(\- cor0\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col2 AS col1, + 50 * - - col1 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +2550 +3350 +3850 query I rowsort label-7724 SELECT - + 87 / 46 AS col0 FROM tab1 AS cor0 @@ -47611,8 +48227,15 @@ SELECT DISTINCT + + 16 AS col2 FROM tab1 WHERE NOT NULL > NULL # Datafusion - Expected - 392490 # Datafusion - Expected - 81 # Datafusion - Expected - 27444663 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col1 \* tab0\.col1 \* Int64\(89\) \* tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, col1 * col1 * + + 89 * col2 AS col2 FROM tab0 +---- +1 +21 +27444663 +392490 +81 +8811 query II rowsort label-7822 SELECT DISTINCT ( - ( + + 97 ) ) col0, + COUNT ( * ) + + - 4 + SUM ( - - 23 ) AS col2 FROM tab0 @@ -47762,8 +48385,9 @@ SELECT ALL col2, 4 AS col1 FROM tab0 4 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, - 25 AS col1 FROM tab1 WHERE NULL > + col1 +---- query I rowsort SELECT ALL - 68 * + - col2 FROM tab1 @@ -47863,8 +48487,15 @@ SELECT + 92 * CAST ( + COUNT ( DISTINCT ( - + 28 ) ) AS INTEGER ) * + 36 * + COU # Datafusion - Expected - -1 # Datafusion - Expected - -3886 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col1 / \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 * + - col1 AS col1, + col1 / - col2 AS col1 FROM tab2 AS cor0 +---- +-1 +-1 +-1173 +-2 +-3080 +-3886 query I rowsort label-7863 SELECT - - MAX ( DISTINCT ( col0 ) ) FROM tab0 AS cor0 @@ -48800,8 +49431,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT + 73 NOT IN ( col2 * + col0 ) # Datafusion - Expected - 47 # Datafusion - Expected - -92 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(92\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + ( 92 ) AS col1, col2 AS col1 FROM tab0 cor0 +---- +-92 +-92 +-92 +10 +47 +99 query III rowsort SELECT * FROM tab0 WHERE NOT - + col0 + + col2 IS NULL @@ -48967,8 +49605,15 @@ SELECT DISTINCT * FROM tab0 WHERE 43 * + - 22 = ( NULL ) # Datafusion - Expected - NULL # Datafusion - Expected - -908 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* \(\- cor0\.col1\) \+ \(\- cor0\.col2\) AS col2" at position 0 and "\(\- cor0\.col1\) / \(\- cor0\.col1\) \+ \(\- cor0\.col0\) \- CAST\(NULL AS Int32\) / cor0\.col2 \- \(\- cor0\.col0\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 58 * - col1 + - col2 AS col2, - col1 / - + col1 + - + col0 - + CAST ( NULL AS INTEGER ) / + col2 - - col0 * col2 AS col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL +---- +-2794 +-349 +-908 +NULL +NULL +NULL query II rowsort SELECT DISTINCT - 42 AS col1, col2 AS col2 FROM tab0 AS cor0 @@ -49539,8 +50184,15 @@ SELECT * FROM tab2 WHERE NOT - col2 + + 38 * - col1 IS NOT NULL # Datafusion - Expected - 53 # Datafusion - Expected - 0 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) / Int64\(30\) AS col1" at position 0 and "Int64\(\-6\) \+ tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 / + 30 AS col1, - 6 + + col2 AS col1 FROM tab1 +---- +-1 +0 +0 +53 +62 +90 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT + + 8 IS NULL @@ -49594,8 +50246,15 @@ SELECT col2 AS col1, 3 / - 72 FROM tab2 # Datafusion - Expected - 58 # Datafusion - Expected - 77 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col0, col2 AS col0 FROM tab2 +---- +23 +40 +51 +58 +67 +77 query I rowsort SELECT - col1 * + + col1 AS col1 FROM tab0 @@ -50579,8 +51238,15 @@ SELECT + COUNT ( 97 ) col0 FROM tab1 # Datafusion - Expected - 13 # Datafusion - Expected - 58 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "tab2\.col1 \+ \(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, col1 + - ( col0 ) AS col0 FROM tab2 +---- +-8 +13 +23 +40 +5 +58 query II rowsort SELECT DISTINCT - col0 AS col0, col0 AS col2 FROM tab1 @@ -52201,8 +52867,9 @@ SELECT 74 * col1 * ( + + 2 ) AS col0 FROM tab2 9916 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* \(\- tab2\.col2\) AS col0" at position 0 and "Int64\(\-97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( col1 ) * - + col2 AS col0, - 97 AS col0 FROM tab2 WHERE NOT NULL IS NULL +---- query II rowsort SELECT DISTINCT - col2 AS col0, - col1 FROM tab0 cor0 @@ -52275,8 +52942,15 @@ SELECT MIN ( ALL ( col2 ) ) AS col1 FROM tab2 cor0 # Datafusion - Expected - -210 # Datafusion - Expected - 97 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col2 \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, col2 * - col1 AS col2 FROM tab0 cor0 +---- +-210 +-3807 +-99 +15 +87 +97 query I rowsort label-8595 SELECT - + MAX ( ALL + col0 ) col0 FROM tab2 AS cor0 WHERE NULL >= col2 + - col1 @@ -52410,8 +53084,15 @@ SELECT ALL col2 * + col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL # Datafusion - Expected - -24 # Datafusion - Expected - 97 # Datafusion - Expected - 154 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 \+ cor0\.col2 \+ Int64\(\-44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, col2 + col2 + + - 44 col1 FROM tab0 AS cor0 +---- +-24 +15 +154 +50 +87 +97 query III rowsort label-8617 SELECT ALL * FROM tab2 WHERE NOT CAST ( + - 74 AS FLOAT8 ) > - col2 + + col2 @@ -53032,8 +53713,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) > - + col2 # Datafusion - Expected - 98 # Datafusion - Expected - 98 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \+ tab0\.col1 AS col1" at position 0 and "Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 + col1 col1, 98 AS col1 FROM tab0 +---- +108 +96 +98 +98 +98 +98 query I rowsort label-8722 SELECT ALL + col0 / - CAST ( col1 AS INTEGER ) + + col1 FROM tab1 @@ -54144,8 +54832,10 @@ SELECT ALL - COUNT ( DISTINCT ( + col2 ) ) * + COUNT ( col1 ) * + COUNT ( * ) AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to cb6a6ba5755f92071bf8a8a82b944fe1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + col1, + col1, col2 AS col2 FROM tab2 AS cor0 +---- +9 values hashing to d44e2aba212feaa301cc7f66fe45c70c query I rowsort label-8907 SELECT ALL 35 / + - COUNT ( * ) + 41 + - - 81 FROM tab2 AS cor0 @@ -54532,8 +55222,15 @@ SELECT ALL + + COUNT ( * ) AS col0, + MAX ( ALL col1 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) 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 IR valuesort SELECT ALL 0 AS col1, - CAST ( NULL AS FLOAT8 ) AS col1 FROM tab1 AS cor0 +---- +0 +0 +0 +NULL +NULL +NULL query I rowsort label-8972 SELECT ALL + COUNT ( ALL - 92 ) AS col2 FROM tab2 @@ -54719,8 +55416,15 @@ SELECT - + 33, 36 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 17 # Datafusion - Expected - -96 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, + 17 col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +17 +17 +17 query I rowsort label-9001 SELECT ALL + col0 * + - CAST ( - - 70 AS INTEGER ) AS col0 FROM tab0 @@ -55805,8 +56509,15 @@ SELECT - 28 * SUM ( + col2 ) FROM tab2 # Datafusion - Expected - -24 # Datafusion - Expected - NULL # Datafusion - Expected - -504 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(24\) \* \(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) col1, + 24 * - col1 AS col1 FROM tab0 +---- +-1944 +-24 +-504 +NULL +NULL +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 @@ -56889,8 +57600,15 @@ SELECT * FROM tab1 WHERE NOT NULL <= - col1 - - 70 # Datafusion - Expected - 77 # Datafusion - Expected - 75 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col2, + col1 AS col2 FROM tab2 +---- +46 +51 +64 +67 +75 +77 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT 34 NOT IN ( - col1 / 55 ) @@ -57164,8 +57882,10 @@ SELECT DISTINCT - ( - MAX ( + col1 ) ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to ef30c747f418106f0623224499d61ef5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col2\) AS col1" at position 1 and "Int64\(75\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - col2 + - + col2 + - 45 * + col1 + col2, col1 + - col2 AS col1, 75 AS col1 FROM tab2 AS cor0 +---- +9 values hashing to c419963b951db36dd3583d45192f192f query I rowsort label-9413 SELECT ( - COUNT ( * ) ) AS col0 FROM tab2 WHERE + ( col1 ) - - 81 IS NOT NULL @@ -58498,8 +59218,15 @@ SELECT ALL col2 - + - 98 AS col1 FROM tab0 cor0 # Datafusion - Expected - -77 # Datafusion - Expected - -58 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 AS col0, - col1 col0 FROM tab2 AS cor0 +---- +-23 +-40 +-51 +-58 +-67 +-77 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -59999,8 +60726,15 @@ SELECT DISTINCT + - col2, 16 + - col2 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0, col0 AS col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT DISTINCT - + col1 / 33 / col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <> + 44 * - col2 @@ -60138,8 +60872,15 @@ SELECT ALL - 88 FROM tab2 WHERE 1 NOT IN ( col1 ) # Datafusion - Expected - 65 # Datafusion - Expected - 1 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 / tab0\.col0 AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 / col0 AS col1, + 65 col1 FROM tab0 +---- +1 +1 +1 +65 +65 +65 query I rowsort label-9894 SELECT DISTINCT - ( - 68 ) / 83 + + col1 - + + col2 * col1 AS col1 FROM tab0 @@ -60570,8 +61311,10 @@ SELECT - 37 + + + 52 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 11186099a276d1b6a312b2e0a59572fe -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- CAST\(\(\- cor0\.col0\) AS Int32\)\) AS Int32\)\) \* cor0\.col0 \+ Int64\(91\) \* Int64\(\-39\) AS col1" at position 0 and "cor0\.col2 \* \(\- cor0\.col0\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - CAST ( - + CAST ( - col0 AS INTEGER ) AS INTEGER ) * + col0 + + 91 * - 39 col1, + col1 + + + ( - 93 ) AS col2, col2 * - col0 AS col1 FROM tab0 AS cor0 +---- +9 values hashing to 561589f47707e578c8d77c1620efdc7f query III rowsort SELECT * FROM tab2 cor0 WHERE NOT col2 NOT BETWEEN - col0 * + 32 AND - col0 diff --git a/data/sqlite/random/aggregates/slt_good_80.slt b/data/sqlite/random/aggregates/slt_good_80.slt index b259ad1..a8dd816 100644 --- a/data/sqlite/random/aggregates/slt_good_80.slt +++ b/data/sqlite/random/aggregates/slt_good_80.slt @@ -1198,8 +1198,15 @@ SELECT DISTINCT - + ( + col1 ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 1 # Datafusion - Expected - 600 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(60\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * 60 AS col2, + col1 AS col2 FROM tab0 AS cor0 +---- +1 +21 +2820 +5940 +600 +81 query I rowsort label-191 SELECT DISTINCT - COUNT ( ALL col1 ) FROM tab0 AS cor0 @@ -1512,8 +1519,15 @@ NULL # Datafusion - Expected - 306 # Datafusion - Expected - 9409 # Datafusion - Expected - 2887 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* \(\- \(\- tab0\.col0\)\) AS col2" at position 0 and "Int64\(16\) \+ tab0\.col2 \* Int64\(30\) \- tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * - - col0 AS col2, + ( + 16 ) + + col2 * + 30 - col2 AS col2 FROM tab0 +---- +1379 +225 +2887 +306 +7569 +9409 query III rowsort SELECT * FROM tab0 WHERE NOT col2 > - col1 - + - 58 @@ -1979,8 +1993,15 @@ SELECT ( - 74 ) FROM tab1 AS cor0 # Datafusion - Expected - 70015 # Datafusion - Expected - 146 # Datafusion - Expected - 80465 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ tab2\.col1 AS col2" at position 0 and "tab2\.col1 \* Int64\(\-19\) \* Int64\(\-55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 + + + col1 AS col2, + col1 * + - 19 * - 55 AS col2 FROM tab2 +---- +120 +136 +146 +53295 +70015 +80465 query I rowsort label-310 SELECT ALL col1 / CAST ( NULL AS INTEGER ) * - 45 FROM tab1 @@ -2566,8 +2587,15 @@ SELECT DISTINCT ( + 20 ) col1 FROM tab2 AS cor0 # Datafusion - Expected - 3080 # Datafusion - Expected - 74 # Datafusion - Expected - 3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "cor0\.col1 \* \(\- \(\- cor0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 74 col2, + col1 * - - col2 col2 FROM tab2 AS cor0 +---- +1173 +3080 +3886 +74 +74 +74 query I rowsort label-408 SELECT DISTINCT - col0 / - col1 + col2 AS col0 FROM tab2 AS cor0 @@ -2610,8 +2638,9 @@ SELECT * FROM tab0 WHERE - 14 IS NOT NULL 9 values hashing to c4b42765dff94eaaa46040e537fb43b7 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + 26 ) AS col0, - 25 AS col0 FROM tab0 WHERE NULL IS NOT NULL +---- query I rowsort SELECT DISTINCT col1 + 57 AS col2 FROM tab2 @@ -2876,8 +2905,15 @@ SELECT ALL + col0 * - 21 FROM tab0 # Datafusion - Expected - 60 # Datafusion - Expected - 96 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, 60 AS col0 FROM tab1 +---- +59 +60 +60 +60 +68 +96 query I rowsort SELECT DISTINCT - col0 col0 FROM tab2 WHERE NOT - - col1 IS NULL @@ -3083,8 +3119,15 @@ SELECT DISTINCT col1 AS col0, col0 FROM tab2 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - -54 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(54\)\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + + 54 ) AS col1, col2 col1 FROM tab0 +---- +-54 +-54 +-54 +10 +47 +99 query I rowsort SELECT 92 * + + ( + + col0 ) FROM tab0 @@ -4600,8 +4643,15 @@ SELECT 95 * col1 - - + 97 FROM tab2 # Datafusion - Expected - 96 # Datafusion - Expected - 14 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ \(\- Int64\(67\)\) AS col2" at position 0 and "tab0\.col0 \+ \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 + - ( + 67 ) AS col2, + col0 + - col1 AS col2 FROM tab0 +---- +-46 +-66 +-66 +14 +66 +96 query I rowsort SELECT - - col0 col1 FROM tab2 WHERE NULL >= col2 @@ -5294,8 +5344,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MIN ( ALL - col1 ) col1, + MIN ( col2 ) * ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE - 44 + col2 * - CAST ( - 90 AS INTEGER ) IS NULL +---- +NULL +NULL query I rowsort label-854 SELECT ALL - MIN ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0 @@ -5515,8 +5568,15 @@ SELECT DISTINCT CAST ( - + 96 AS INTEGER ), + 6 AS col1 FROM tab2 # Datafusion - Expected - -87 # Datafusion - Expected - 9409 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* tab0\.col0 AS col1" at position 0 and "\(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 * + col0 col1, - col0 AS col1 FROM tab0 +---- +-15 +-87 +-97 +225 +7569 +9409 query I rowsort label-886 SELECT DISTINCT - SUM ( ALL + 22 ) FROM tab0 @@ -5639,8 +5699,11 @@ SELECT - ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(count\(tab0\.col1\) AS Int32\) AS col1" at position 0 and "Int64\(\-81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) + + CAST ( + COUNT ( ALL + col1 ) AS INTEGER ) AS col1, - 81 AS col1 FROM tab0 +---- +-81 +0 query I rowsort SELECT - ( + + 27 ) col2 FROM tab1 WHERE ( 59 ) IS NULL @@ -5659,8 +5722,11 @@ SELECT ALL - COUNT ( * ) * 78 * + + 31 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +3 +3 query I rowsort SELECT - ( 2 ) + - col2 * + col2 AS col1 FROM tab0 @@ -6757,8 +6823,15 @@ SELECT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( col2 + + 13 ) # Datafusion - Expected - 40 # Datafusion - Expected - 75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, col2 col1 FROM tab2 AS cor0 +---- +23 +40 +46 +58 +64 +75 query II rowsort label-1098 SELECT + CAST ( NULL AS INTEGER ) / 18 AS col0, + 87 * + 42 AS col2 FROM tab1 @@ -7856,8 +7929,15 @@ SELECT DISTINCT + COUNT ( * ) + - + 16 + - 46 * 84 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 79 # Datafusion - Expected - -604989 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* \(\- cor0\.col2\) \* cor0\.col0 AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 * - col2 * + + col0 col1, 79 col1 FROM tab0 AS cor0 +---- +-44415 +-54810 +-604989 +79 +79 +79 query I rowsort label-1278 SELECT MAX ( DISTINCT + ( - col1 ) ) col1 FROM tab2 AS cor0 @@ -10576,8 +10656,15 @@ SELECT DISTINCT 18 / - CAST ( + col0 AS INTEGER ) FROM tab1 # Datafusion - Expected - 2560 # Datafusion - Expected - -75 # Datafusion - Expected - 4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - col0 ) AS col1, col2 * + col0 AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +1058 +2560 +4350 query I rowsort SELECT + - col2 + - 97 FROM tab2 AS cor0 @@ -10671,8 +10758,10 @@ SELECT ALL MIN ( + col1 ) * - + 56 col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to 22a9358c6fd8e78a192df628d687790e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) \- Int64\(\-42\) \- Int64\(52\) AS col0" at position 0 and "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 - - 42 - + + 52 AS col0, 61 col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 +---- +18 values hashing to a313d79b2ccc9c24df2c8f3a3487b8f3 query I rowsort SELECT + 78 * + - ( - ( + ( + 58 ) ) ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1 @@ -10886,8 +10975,11 @@ SELECT + 75 * 94 - col0 - + 56 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # 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 "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 45 AS col0, 96 AS col0 FROM tab2 AS cor0 +---- +45 +96 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= col1 @@ -11117,8 +11209,15 @@ SELECT - 17 * col1, col2 FROM tab0 # Datafusion - Expected - -81 # Datafusion - Expected - -99 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( col2 ) AS col1, - col1 AS col1 FROM tab0 +---- +-1 +-10 +-21 +-47 +-81 +-99 query I rowsort SELECT DISTINCT + - col2 - - col1 FROM tab1 AS cor0 WHERE + ( - col0 ) BETWEEN ( + col2 ) AND 17 * - + 14 * col2 * + 65 + + col1 @@ -12658,8 +12757,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \- max\(DISTINCT \(\- tab1\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 71 AS col1, - 19 * COUNT ( * ) - + MAX ( DISTINCT - col2 ) AS col1 FROM tab1 +---- +-71 +2 query II rowsort SELECT - col1, + col2 + - - col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN 25 AND ( NULL ) @@ -13718,8 +13820,15 @@ SELECT 13 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - 82 # Datafusion - Expected - 79 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ tab2\.col1 AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 + col1 AS col2, 82 AS col2 FROM tab2 +---- +53 +69 +79 +82 +82 +82 query I rowsort SELECT + 82 + + 68 col1 FROM tab1 @@ -14149,8 +14258,9 @@ SELECT - - MIN ( 51 ) FROM tab1 AS cor0 51 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 col2, - col1 AS col2 FROM tab0 AS cor0 WHERE 9 <= NULL +---- query I rowsort SELECT - - col1 * + + 60 FROM tab1 AS cor0 @@ -14187,8 +14297,15 @@ SELECT col1 * - 33 * - - ( - col2 ) * - col2 FROM tab1 # Datafusion - Expected - -99 # Datafusion - Expected - 81 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, - 99 AS col0 FROM tab0 +---- +-99 +-99 +-99 +1 +21 +81 query II rowsort SELECT DISTINCT col1 AS col0, - col2 * col2 AS col2 FROM tab0 @@ -14285,8 +14402,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 / col1 > CAST ( + col2 AS FLOAT # Datafusion - Expected - 4312 # Datafusion - Expected - -928 # Datafusion - Expected - 3752 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* Int64\(16\) AS col0" at position 0 and "\(\- cor0\.col2\) / Int64\(64\) \+ \(\- cor0\.col1\) \* Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 * + 16 AS col0, - col2 / + 64 + - + col1 * - 56 AS col0 FROM tab2 AS cor0 +---- +-368 +-640 +-928 +2856 +3752 +4312 query I rowsort SELECT DISTINCT + 43 * + col1 + - col0 FROM tab1 cor0 @@ -15719,8 +15843,15 @@ SELECT DISTINCT + 55 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE # Datafusion - Expected - 870 # Datafusion - Expected - 15 # Datafusion - Expected - 9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col1" at position 0 and "cor0\.col2 \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 15 AS col1, + col2 * + col0 col1 FROM tab0 AS cor0 +---- +15 +15 +15 +705 +870 +9603 query I rowsort label-2576 SELECT ALL + COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 79 AND + ( - col2 ) @@ -15771,8 +15902,15 @@ NULL # Datafusion - Expected - -74 # Datafusion - Expected - 94 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col1 AS col2" at position 0 and "Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 + + col1 AS col2, - 74 AS col2 FROM tab1 AS cor0 +---- +-74 +-74 +-74 +10 +28 +94 query III rowsort SELECT ALL * FROM tab0 WHERE NOT - - col1 NOT BETWEEN + + col0 AND NULL @@ -16091,8 +16229,11 @@ SELECT DISTINCT - 80 + col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 66 + + + COUNT ( * ) AS col2, + 89 AS col2 FROM tab1 AS cor0 +---- +-63 +89 query I rowsort SELECT col2 * - col0 - + col0 * + 52 FROM tab0 cor0 @@ -16381,8 +16522,15 @@ SELECT + - SUM ( DISTINCT - col2 ) AS col0 FROM tab1 cor0 # Datafusion - Expected - -87 # Datafusion - Expected - -912673 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col0 \* \(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 * + + col0 * - - col0 AS col1, - col0 AS col1 FROM tab0 AS cor0 +---- +-15 +-3375 +-658503 +-87 +-912673 +-97 query I rowsort SELECT ALL + col2 FROM tab0 AS cor0 WHERE 77 * - + col0 NOT BETWEEN - 75 AND NULL @@ -16606,8 +16754,11 @@ SELECT ALL - col0 / - + col0 FROM tab0 # 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 "\(\- min\(Int64\(2\)\)\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MIN ( 2 ) AS col2, 27 AS col2 FROM tab1 +---- +-2 +27 query III rowsort SELECT * FROM tab1 WHERE NOT col2 BETWEEN - ( ( + col1 ) ) AND NULL @@ -16693,8 +16844,15 @@ SELECT - ( - 79 ) AS col1 FROM tab1 # Datafusion - Expected - 2024 # Datafusion - Expected - 48 # Datafusion - Expected - 579 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col2" at position 0 and "Int64\(45\) \* \(\- \(\- tab1\.col1\)\) \+ \(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 AS col2, + 45 * - - col1 + - col0 AS col2 FROM tab1 +---- +140 +2024 +48 +48 +48 +579 query III rowsort SELECT ALL * FROM tab0 WHERE NOT 45 IS NOT NULL @@ -17001,8 +17159,15 @@ SELECT - col0 FROM tab0 WHERE NOT NULL IN ( + - col2 * - 7 + col1, - col2 - - + # Datafusion - Expected - -22 # Datafusion - Expected - 23 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col0" at position 0 and "Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 23 AS col0, - 22 AS col0 FROM tab1 AS cor0 +---- +-22 +-22 +-22 +23 +23 +23 query I rowsort label-2785 SELECT - 2 + - COUNT ( * ) AS col2 FROM tab0 AS cor0 @@ -17514,8 +17679,11 @@ SELECT DISTINCT + col2, + col1 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 29 AS col1, + COUNT ( * ) AS col1 FROM tab2 +---- +29 +3 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - 38 / + col1 - - col2 AND NULL @@ -17528,8 +17696,15 @@ SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - 38 / + col1 - - col2 AND NU # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, col2 col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-2875 SELECT DISTINCT - - col1 / + + 85 + 20 AS col2 FROM tab0 AS cor0 @@ -18408,8 +18583,15 @@ SELECT DISTINCT col1, 70 FROM tab0 # Datafusion - Expected - -20 # Datafusion - Expected - -99 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col0" at position 0 and "\(\- Int64\(20\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, - ( 20 ) AS col0 FROM tab0 +---- +-10 +-20 +-20 +-20 +-47 +-99 query I rowsort label-3019 SELECT DISTINCT - - MAX ( col1 ) + + 24 * - + CAST ( + - 22 AS INTEGER ) col2 FROM tab1 WHERE NOT - col1 NOT BETWEEN - - 8 AND - col1 @@ -18878,8 +19060,15 @@ SELECT DISTINCT 58 + + 8 AS col2 FROM tab1 # Datafusion - Expected - 82 # Datafusion - Expected - NULL # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(58\) \* tab0\.col0 \* \(\- tab0\.col0\) \- CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 25 * + 58 * + col0 * - col0 - + + CAST ( NULL AS INTEGER ) AS col2, + 82 AS col2 FROM tab0 +---- +82 +82 +82 +NULL +NULL +NULL query I rowsort label-3096 SELECT ALL - COUNT ( * ) - COUNT ( - col1 ) col1 FROM tab0 @@ -21694,8 +21883,15 @@ SELECT - 74 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 85 # Datafusion - Expected - 92 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 col2, col0 AS col2 FROM tab1 +---- +51 +85 +91 +92 +92 +92 query II rowsort label-3569 SELECT - COUNT ( * ) AS col2, + ( + + 76 ) AS col0 FROM tab0 @@ -22396,8 +22592,15 @@ SELECT 12 + + + 47 FROM tab1 AS cor0 # Datafusion - Expected - -11 # Datafusion - Expected - 3847 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* tab0\.col2 \+ \(\- Int64\(\-40\)\) AS col1" at position 0 and "Int64\(\-32\) \+ tab0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + + col2 + - - 40 AS col1, - 32 + col1 AS col1 FROM tab0 +---- +-11 +-31 +139 +250 +3847 +49 query I rowsort label-3685 SELECT DISTINCT + col1 * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 @@ -23682,8 +23885,15 @@ NULL # Datafusion - Expected - 756 # Datafusion - Expected - 97 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(55\) / \(\- cor0\.col0\) \+ Int64\(36\) \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 col2, 55 / - col0 + 36 * col1 AS col2 FROM tab0 AS cor0 +---- +15 +2913 +36 +756 +87 +97 query II rowsort SELECT DISTINCT - col0 + - 62, 50 AS col2 FROM tab2 @@ -24048,8 +24258,11 @@ SELECT 51 / + - col2 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - -298 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col2" at position 0 and "\(\- Int64\(99\)\) \+ \(\- sum\(tab0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 57 AS col2, - ( 99 ) + ( + - SUM ( ALL + col0 ) ) AS col2 FROM tab0 +---- +-298 +-57 query I rowsort SELECT ALL 19 * + 12 FROM tab2 @@ -24100,8 +24313,10 @@ SELECT - ( + - col1 ) + + 80 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 171e9b799c550fed11f4bf85d20e9ca5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL col0, col0, + + CAST ( NULL AS INTEGER ) * col0 + - + col0 * + ( + - col1 ) * + 72 FROM tab0 AS cor0 +---- +9 values hashing to 2ec372976a7f5fe318ee6ed3f166cfe1 query I rowsort SELECT ( - 43 ) FROM tab1 AS cor0 @@ -24146,8 +24361,10 @@ SELECT DISTINCT * FROM tab1 WHERE col2 + col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to ff6902972393b5e5b85d3a76fd8e356c -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\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + CAST ( NULL AS FLOAT8 ) AS col1, + 16 AS col1 FROM tab1, tab2 AS cor0 +---- +18 values hashing to 1dc74b7b576727ce76ca8a77fcbe7b99 query I rowsort label-3980 SELECT + MIN ( DISTINCT + - col0 ) * 84 + - 3 + - 85 AS col1 FROM tab2 AS cor0 @@ -24244,8 +24461,9 @@ SELECT DISTINCT - col2, col0 FROM tab1 AS cor0 51 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(83\)\) \+ Int64\(81\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 83 + + + 81 AS col0, + col1 AS col0 FROM tab2 WHERE NOT - 63 + - 42 NOT IN ( - col1, - col0 + - col1 ) +---- query III rowsort SELECT * FROM tab1 WHERE NOT - 15 + 45 + - 1 IS NULL @@ -24357,8 +24575,15 @@ SELECT DISTINCT col0 + + 81 FROM tab1 # Datafusion - Expected - 51 # Datafusion - Expected - 5 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, ( + 51 ) col0 FROM tab1 +---- +14 +47 +5 +51 +51 +51 query I rowsort SELECT DISTINCT + 31 * col1 FROM tab1 @@ -24624,8 +24849,15 @@ SELECT + MAX ( + col2 ) + - - 84 FROM tab2 # Datafusion - Expected - 22 # Datafusion - Expected - -6989 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \+ Int64\(49\) / \(\- tab2\.col1\) \+ tab2\.col1 \- tab2\.col2 \* tab2\.col2 \+ Int64\(50\) \* \(\- tab2\.col0\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 + + 49 / - col1 + + col1 - col2 * + col2 + + 50 * - col0 AS col0, 22 AS col0 FROM tab2 +---- +-2755 +-4683 +-6989 +22 +22 +22 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1173 @@ -24634,8 +24866,15 @@ SELECT + col2 + + 49 / - col1 + + col1 - col2 * + col2 + + 50 * - col0 AS col0, # Datafusion - Expected - 38 # Datafusion - Expected - -3886 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* \(\- tab2\.col1\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * - col1 AS col2, 38 col2 FROM tab2 +---- +-1173 +-3080 +-3886 +38 +38 +38 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT - 7 = NULL @@ -25257,8 +25496,15 @@ SELECT + 27 + - 22 AS col0, - col0 FROM tab0 AS cor0 # Datafusion - Expected - 2560 # Datafusion - Expected - 75 # Datafusion - Expected - 4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "cor0\.col2 \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - ( col0 ) AS col2, col2 * + col0 col2 FROM tab2 cor0 +---- +1058 +2560 +4350 +46 +64 +75 query II rowsort label-4169 SELECT col2 + - - col1 + - + col0 / col1 AS col2, - 77 FROM tab1 cor0 @@ -25686,8 +25932,15 @@ SELECT + col0, col1 FROM tab1 cor0 # Datafusion - Expected - 75 # Datafusion - Expected - 5 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 AS col0, 75 col0 FROM tab1 cor0 +---- +14 +47 +5 +75 +75 +75 query II rowsort label-4241 SELECT ALL + + 61, - CAST ( - 61 AS INTEGER ) AS col1 FROM tab1 AS cor0 @@ -26649,8 +26902,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) * + 38 AS col0, + 22 AS col0 FROM tab1 AS cor0 +---- +-114 +22 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( 44 + + + col1, col0 * + col0, + col0, + col1 ) @@ -27033,8 +27289,15 @@ SELECT - col2 AS col1, - ( - 48 ) FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - 99 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 99 AS col0, col2 AS col0 FROM tab2 +---- +23 +40 +58 +99 +99 +99 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT - + col1 NOT IN ( - + col1, ( - 9 ) * + col0 ) @@ -27462,8 +27725,15 @@ SELECT ALL + col2 * - 35 * - - col0 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 705 # Datafusion - Expected - 99 # Datafusion - Expected - 9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, col2 * + col0 AS col1 FROM tab0 cor0 +---- +10 +47 +705 +870 +9603 +99 query I rowsort SELECT + - 48 * + col1 + + + col2 AS col2 FROM tab1 WHERE NOT - col2 * col2 * 8 IS NOT NULL @@ -28424,8 +28694,15 @@ SELECT * FROM tab2 AS cor0 WHERE + col0 + 97 IS NULL # Datafusion - Expected - -60 # Datafusion - Expected - -58 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, - 60 AS col0 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +-60 +-60 +-60 query I rowsort label-4686 SELECT col1 / - 99 AS col1 FROM tab0 AS cor0 @@ -29541,8 +29818,11 @@ SELECT + ( - - 77 ), col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 121 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(55\)\) 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 II valuesort SELECT DISTINCT - + 55 AS col2, SUM ( col2 ) AS col2 FROM tab2 AS cor0 +---- +-55 +121 query I rowsort label-4877 SELECT DISTINCT + + COUNT ( * ) + + + COUNT ( * ) FROM tab2 AS cor0 @@ -30135,8 +30415,15 @@ SELECT 26 + - 63 FROM tab1 WHERE NOT - col1 / + 78 >= + + ( col1 ) # Datafusion - Expected - 3080 # Datafusion - Expected - 4350 # Datafusion - Expected - 3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* tab2\.col2 AS col0" at position 0 and "tab2\.col2 \* tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * col2 col0, + col2 * col1 AS col0 FROM tab2 +---- +1058 +1173 +2560 +3080 +3886 +4350 query II rowsort label-4968 SELECT ALL COUNT ( ALL - - 3 ) AS col2, + SUM ( DISTINCT + col1 ) FROM tab1 cor0 @@ -30369,8 +30656,15 @@ SELECT col2 FROM tab2 AS cor0 WHERE 30 IS NOT NULL # Datafusion - Expected - -47 # Datafusion - Expected - 5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col0, - col1 AS col0 FROM tab1 cor0 +---- +-14 +-47 +-5 +14 +47 +5 query I rowsort SELECT col0 - - + 58 col0 FROM tab0 @@ -30441,8 +30735,15 @@ SELECT - 95 * + COUNT ( * ) AS col1 FROM tab1 # Datafusion - Expected - -47 # Datafusion - Expected - 15 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 15 AS col0, - col2 AS col0 FROM tab0 +---- +-10 +-47 +-99 +15 +15 +15 query I rowsort label-5015 SELECT ( - + COUNT ( * ) ) AS col2 FROM tab2 @@ -30456,8 +30757,15 @@ SELECT ( - + COUNT ( * ) ) AS col2 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - 94 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 94 AS col2, col1 col2 FROM tab1 +---- +14 +47 +5 +94 +94 +94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 @@ -30466,8 +30774,15 @@ SELECT ALL 94 AS col2, col1 col2 FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - 71 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 AS col1, col2 AS col1 FROM tab2 +---- +23 +40 +58 +71 +71 +71 query I rowsort SELECT ALL col1 AS col1 FROM tab0 WHERE - + ( + ( - 15 ) ) IS NOT NULL @@ -30627,8 +30942,15 @@ SELECT * FROM tab0 WHERE + + 61 * - + col2 + + - col0 + + + 13 IS NOT NULL # Datafusion - Expected - -6675 # Datafusion - Expected - -77 # Datafusion - Expected - -5696 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(89\) \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col1 AS col0, 89 * - col0 AS col0 FROM tab2 cor0 +---- +-4094 +-51 +-5696 +-6675 +-67 +-77 query I rowsort label-5043 SELECT + - CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab0 AS cor0 @@ -31468,8 +31790,12 @@ SELECT DISTINCT + col0 - + col2 AS col1 FROM tab1 # Datafusion - Expected - 74 # Datafusion - Expected - -85 # Datafusion - Expected - -103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col2" at position 1 and "\(\- sum\(\(\- \(\- tab0\.col1\)\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 74 AS col0, - 85 AS col2, + - SUM ( - - col1 ) AS col2 FROM tab0 +---- +-103 +-85 +74 query I rowsort SELECT ALL col0 - + col0 * - col1 AS col0 FROM tab0 @@ -32097,8 +32423,11 @@ SELECT DISTINCT + col1 + + col1 FROM tab0 AS cor0 WHERE + 8 BETWEEN NULL AND NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, + 44 col0 FROM tab2 cor0 +---- +3 +44 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 79 / - col1 ) IS NULL @@ -32978,8 +33307,11 @@ SELECT DISTINCT 26 * - col0 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) + + COUNT ( * ) AS col2, 5 AS col2 FROM tab0 AS cor0 +---- +5 +6 query I rowsort label-5433 SELECT ( + - MAX ( DISTINCT + + col1 ) ) + + 46 - + ( + - ( - 3 ) ) + + - MIN ( ALL + col0 ) + 21 * - - 81 * COUNT ( * ) AS col1 FROM tab1 AS cor0 @@ -33268,8 +33600,15 @@ SELECT - CAST ( - 48 AS INTEGER ) AS col2 FROM tab2 # Datafusion - Expected - 152 # Datafusion - Expected - -5551 # Datafusion - Expected - 164 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(61\) AS col2" at position 0 and "cor0\.col0 \+ Int64\(\-18\) \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 * 61 AS col2, + ( + col0 ) + - 18 + col0 col2 FROM tab1 AS cor0 +---- +-3111 +-5185 +-5551 +152 +164 +84 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 50 ) IS NULL @@ -33563,8 +33902,11 @@ SELECT DISTINCT + COUNT ( * ) + MAX ( ALL + 67 ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 13 AS col0, COUNT ( * ) col0 FROM tab2 AS cor0 +---- +13 +3 query I rowsort label-5532 SELECT ALL + ( - COUNT ( + ( + col0 ) ) ) FROM tab1 @@ -33933,8 +34275,15 @@ SELECT 53 AS col2, 71 AS col1 FROM tab0 # Datafusion - Expected - 85 # Datafusion - Expected - -11 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 11 AS col0, + 85 AS col0 FROM tab0 +---- +-11 +-11 +-11 +85 +85 +85 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT 10 NOT BETWEEN 83 AND - col2 @@ -34975,8 +35324,11 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col0 ) < NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT \(\- Int64\(8\)\)\) AS col0" at position 0 and "\(\- min\(Int64\(32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( DISTINCT - + 8 ) AS col0, - MIN ( + ( 32 ) ) AS col0 FROM tab2 AS cor0 +---- +-32 +-8 query I rowsort label-5763 SELECT DISTINCT 43 + - MIN ( DISTINCT col0 ) AS col2 FROM tab0 AS cor0 @@ -35389,8 +35741,15 @@ SELECT DISTINCT + 86 - MIN ( - col0 ) + - 51 AS col2 FROM tab2 # Datafusion - Expected - 19 # Datafusion - Expected - -97 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col0" at position 0 and "Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col0, 19 AS col0 FROM tab0 +---- +-15 +-87 +-97 +19 +19 +19 query II rowsort SELECT DISTINCT col1 AS col2, col0 * + - col0 FROM tab0 @@ -35715,8 +36074,15 @@ SELECT + ( + SUM ( ALL 20 ) ) AS col2 FROM tab0 # Datafusion - Expected - 80 # Datafusion - Expected - 6188 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \* \(\- tab1\.col2\) AS col2" at position 0 and "tab1\.col0 \- tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * - col2 AS col2, col0 - col1 AS col2 FROM tab1 +---- +37 +44 +4896 +5015 +6188 +80 query III rowsort SELECT ALL * FROM tab0 WHERE 18 IS NOT NULL @@ -36759,8 +37125,15 @@ SELECT DISTINCT 63 * - + col0 FROM tab1 AS cor0 WHERE NOT NULL <> + col0 # Datafusion - Expected - -4 # Datafusion - Expected - -28 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- cor0\.col2\) \- Int64\(28\) AS col2" at position 0 and "\(\- cor0\.col1\) \- \(\- cor0\.col0\) \+ cor0\.col1 / Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 + - col2 - 28 AS col2, - ( col1 ) - - col0 + + + col1 / + 26 AS col2 FROM tab2 AS cor0 +---- +-11 +-28 +-28 +-28 +-4 +10 query I rowsort label-6053 SELECT DISTINCT - MIN ( + + 28 ) FROM tab2 AS cor0 @@ -36863,8 +37236,15 @@ SELECT + 31 * - + col2 - + ( + col2 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -2037 # Datafusion - Expected - NULL # Datafusion - Expected - -315 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) / cor0\.col0 \* CAST\(NULL AS Int32\) \* cor0\.col1 AS col1" at position 0 and "Int64\(\-21\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 4 / col0 * CAST ( NULL AS INTEGER ) * + col1 AS col1, - 21 * + + col0 AS col1 FROM tab0 AS cor0 +---- +-1827 +-2037 +-315 +NULL +NULL +NULL query I rowsort SELECT - - 39 * - 19 FROM tab0 AS cor0 @@ -37542,8 +37922,15 @@ SELECT ( col0 ) + - 72 + - 13 AS col1 FROM tab0 # Datafusion - Expected - 3460 # Datafusion - Expected - 77 # Datafusion - Expected - 1696 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(10\) \+ \(\- Int64\(\-86\)\) \+ cor0\.col2 \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col2, + 10 + - - 86 + col2 * + col2 AS col2 FROM tab2 AS cor0 +---- +1696 +3460 +51 +625 +67 +77 query I rowsort SELECT ALL + 64 + + col2 AS col1 FROM tab0 AS cor0 @@ -37766,8 +38153,15 @@ SELECT + 78 * - ( + 97 ) + - - MAX ( col0 ) FROM tab1 cor0 # Datafusion - Expected - -21 # Datafusion - Expected - -94 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \+ \(\- tab0\.col2\) AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 + - col2 col1, - col1 AS col1 FROM tab0 +---- +-1 +-198 +-20 +-21 +-81 +-94 query III rowsort SELECT * FROM tab2 WHERE ( - + 78 ) IN ( - col1 * + - 6 ) @@ -38666,8 +39060,15 @@ SELECT + 96 * + col1 FROM tab0 # Datafusion - Expected - 21 # Datafusion - Expected - 2 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 col2, col1 AS col2 FROM tab0 +---- +1 +2 +2 +2 +21 +81 query III rowsort label-6370 SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + - col2 <> NULL @@ -39587,8 +39988,15 @@ SELECT * FROM tab2 WHERE + - col1 <> + 25 # Datafusion - Expected - -10 # Datafusion - Expected - 97 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "\(\- CAST\(tab0\.col2 AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, - CAST ( col2 AS INTEGER ) AS col1 FROM tab0 +---- +-10 +-47 +-99 +15 +87 +97 query III rowsort SELECT ALL * FROM tab2 WHERE NOT col1 + + col0 + + + 53 * + - col1 + ( + 41 ) IS NOT NULL @@ -39917,8 +40325,11 @@ SELECT ALL + - 7 * col0 FROM tab0 cor0 # 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\(\-5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 10 AS col0, - 5 AS col0 FROM tab2 AS cor0 +---- +-5 +10 query I rowsort label-6572 SELECT ALL + SUM ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 @@ -40577,8 +40988,15 @@ SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 86 NOT BETWEEN ( col0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col0, col0 AS col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query III rowsort SELECT ALL * FROM tab1 WHERE ( + - col2 ) NOT IN ( + col1 + col1 ) @@ -41710,8 +42128,10 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to d12ccd25d32a2e2066dceb5df89bece3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + col2 AS col0, + 76 AS col0, col2 col1 FROM tab0 AS cor0 +---- +9 values hashing to 4faca42442a0e2e16822ada1b24556ee query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 < 12 @@ -41756,8 +42176,15 @@ SELECT DISTINCT SUM ( ALL col0 ) AS col0 FROM tab0 # Datafusion - Expected - 10 # Datafusion - Expected - -6561 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* \(\- tab0\.col1\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * - col1 AS col0, col2 AS col0 FROM tab0 +---- +-1 +-441 +-6561 +10 +47 +99 query II rowsort label-6873 SELECT DISTINCT - col0, - CAST ( NULL AS INTEGER ) FROM tab2 WHERE col1 BETWEEN ( - col0 * - + col0 ) AND ( NULL ) @@ -41981,8 +42408,11 @@ SELECT DISTINCT col0 * + 49 * + col0 * + 24 col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 23 AS col2, - 33 AS col2 FROM tab0 +---- +-33 +23 query I rowsort SELECT ALL + 85 FROM tab0 WHERE NOT - col0 IS NOT NULL @@ -44916,8 +45346,15 @@ SELECT + 75 * + col2 * - col1 FROM tab0 AS cor0 # Datafusion - Expected - 62 # Datafusion - Expected - -91 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col0 AS col1, 62 AS col1 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +62 +62 +62 query I rowsort SELECT - col2 * + + col1 * col0 AS col2 FROM tab1 cor0 @@ -45369,8 +45806,15 @@ SELECT ALL - COUNT ( - ( - col1 ) ) FROM tab2 # Datafusion - Expected - 67 # Datafusion - Expected - -63 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \- \(\- Int64\(\-78\)\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 15 - - - 78 AS col0, + col1 col0 FROM tab2 WHERE NULL IS NULL +---- +-63 +-63 +-63 +51 +67 +77 query II rowsort label-7467 SELECT + ( - COUNT ( * ) ) col1, 73 col2 FROM tab0 @@ -47509,8 +47953,11 @@ SELECT col0 AS col1, 90 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -66 -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\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( DISTINCT + ( col2 ) ) AS col0, - 66 AS col0 FROM tab2 AS cor0 +---- +-66 +58 query III rowsort SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL IN ( + 97, + col0 + - - col1 ) @@ -47610,8 +48057,15 @@ SELECT - ( - + SUM ( ALL - + col2 ) ) + - 88 AS col1 FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - -3886 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \* tab2\.col2 AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 * + + col2 col0, col2 AS col0 FROM tab2 +---- +-1173 +-3080 +-3886 +23 +40 +58 query I rowsort label-7852 SELECT col1 / + col0 + 22 AS col0 FROM tab2 @@ -47849,8 +48303,9 @@ SELECT + COUNT ( - col2 ) col1 FROM tab0 3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col0 AS Int32\)" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( + col0 AS INTEGER ), + col0 FROM tab0 WHERE + + col1 IN ( + 77 ) +---- query III rowsort SELECT * FROM tab0 WHERE - + 3 NOT IN ( - 95 ) @@ -47940,8 +48395,15 @@ SELECT ALL - col1 * - ( col2 ) col0 FROM tab2 AS cor0 # Datafusion - Expected - 70 # Datafusion - Expected - -389207 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* \(\- tab1\.col0\) \* tab1\.col1 AS col2" at position 0 and "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * - col0 * + col1 AS col2, + 70 AS col2 FROM tab1 +---- +-36125 +-36414 +-389207 +70 +70 +70 query I rowsort SELECT - - col1 col1 FROM tab1 WHERE 5 * col0 IS NULL @@ -48373,8 +48835,15 @@ SELECT + SUM ( DISTINCT col0 ) * - COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 W # Datafusion - Expected - -52 # Datafusion - Expected - 32 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "Int64\(\-52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 32 AS col2, - 52 AS col2 FROM tab1 +---- +-52 +-52 +-52 +32 +32 +32 query I rowsort label-7976 SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab1 @@ -49045,8 +49514,11 @@ SELECT ALL - COUNT ( * ) AS col1, 45 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3315 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(65\) \* Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, 65 * - 51 AS col0 FROM tab2 +---- +-3315 +3 query I rowsort SELECT DISTINCT + ( - + col0 ) FROM tab0 cor0 @@ -49720,8 +50192,15 @@ SELECT - COUNT ( * ) * - + 95 AS col0 FROM tab2 cor0 # Datafusion - Expected - 74 # Datafusion - Expected - 9 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / \(\- Int64\(\-8\)\) AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 / ( - - 8 ) AS col2, 74 AS col2 FROM tab2 AS cor0 +---- +6 +74 +74 +74 +8 +9 query III rowsort label-8197 SELECT ALL * FROM tab1 WHERE - col0 BETWEEN CAST ( + 99 AS FLOAT8 ) AND + - col0 + - col1 @@ -50481,8 +50960,10 @@ SELECT + 66 - - col2 AS col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 9d1361462d31cc08378df4c6c4b33723 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(\-25\) \* Int64\(13\) AS col0" at position 1 and "cor0\.col2 \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ \(\- cor0\.col2\) \+ cor0\.col0 \+ \(\- cor0\.col1\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col2 - - - col0, + col1 * - 25 * + 13 col0, + + col2 + - - CAST ( NULL AS INTEGER ) + - col2 + + col0 + - col1 AS col0 FROM tab1 AS cor0 +---- +9 values hashing to 96c5a07d8d68b122954e02e6f3491851 query I rowsort label-8322 SELECT DISTINCT + 69 / col0 * - col1 * + col0 col0 FROM tab2 @@ -50900,8 +51381,15 @@ SELECT - 36 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col0, + col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT DISTINCT + 86 * - 27 FROM tab1 @@ -51137,8 +51625,15 @@ SELECT * FROM tab0 AS cor0 WHERE col1 * - col1 = 59 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 AS col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT ALL - 54 * + 84 + - col0 AS col0 FROM tab1 @@ -52807,8 +53302,15 @@ NULL # Datafusion - Expected - 40 # Datafusion - Expected - 32 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 32 AS col1, col2 AS col1 FROM tab2 +---- +23 +32 +32 +32 +40 +58 query I rowsort SELECT - col0 * 44 FROM tab0 WHERE NOT NULL IS NOT NULL @@ -53154,8 +53656,15 @@ SELECT ALL * FROM tab2 WHERE + col2 <> ( + col0 ) # Datafusion - Expected - -40 # Datafusion - Expected - -75 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "\(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, - col2 col2 FROM tab2 +---- +-23 +-40 +-46 +-58 +-64 +-75 query I rowsort SELECT DISTINCT + - 16 FROM tab0 WHERE - 4 - - col1 BETWEEN NULL AND - col1 * - col1 * - col0 @@ -53424,8 +53933,15 @@ SELECT + CAST ( col1 AS INTEGER ) col0 FROM tab2 AS cor0 # Datafusion - Expected - 228 # 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\) \* tab0\.col0 AS col1" at position 0 and "tab0\.col1 \+ tab0\.col1 \+ Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT CAST ( NULL AS FLOAT8 ) * + col0 AS col1, col1 + col1 + 66 AS col1 FROM tab0 +---- +108 +228 +68 +NULL +NULL +NULL query I rowsort label-8819 SELECT DISTINCT + COUNT ( 10 ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 cor1 @@ -53778,8 +54294,15 @@ SELECT DISTINCT col0 col2 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - co # Datafusion - Expected - 0 # Datafusion - Expected - -19488 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* Int64\(\-7\) \* Int64\(\-29\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 * - 7 * - 29 AS col2, + 0 col2 FROM tab1 AS cor0 WHERE col0 + col2 IS NOT NULL +---- +-11977 +-13804 +-19488 +0 +0 +0 query II rowsort SELECT - col0 - + 0 AS col0, col1 FROM tab0 @@ -53946,8 +54469,10 @@ SELECT ALL - 6 + + - col2 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to bdaa2b3f9ee0ca70033ea0c690fae8ae -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 1 and "tab1\.col1 AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 70 + + - col2 AS col1, + col2 AS col0, col1 AS col0 FROM tab1 +---- +9 values hashing to 05fcb91b7bcacb1ce34a7d80add5bf41 query I rowsort SELECT ALL ( + + ( col1 ) ) AS col0 FROM tab2 AS cor0 @@ -54896,8 +55421,15 @@ SELECT * FROM tab1 WHERE NOT ( NULL >= 66 ) # Datafusion - Expected - 67 # Datafusion - Expected - 14 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 14 AS col0, col1 AS col0 FROM tab2 +---- +14 +14 +14 +51 +67 +77 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -55298,8 +55830,15 @@ SELECT col0 / - 72 AS col2, - 5 FROM tab2 AS cor0 # Datafusion - Expected - -52 # Datafusion - Expected - 99 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "Int64\(\-52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col1, ( - 52 ) AS col1 FROM tab0 +---- +-52 +-52 +-52 +10 +47 +99 query I rowsort SELECT DISTINCT 34 * + col2 FROM tab1 @@ -55542,8 +56081,15 @@ SELECT col2 - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 75 # Datafusion - Expected - 97 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ tab2\.col1 AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + col1 AS col2, col0 AS col2 FROM tab2 +---- +141 +142 +46 +64 +75 +97 query I rowsort label-9177 SELECT MAX ( ALL + col0 ) + + - 29 + + - 10 AS col2 FROM tab1 @@ -55631,8 +56177,15 @@ SELECT DISTINCT - - col0 AS col2 FROM tab1 WHERE + + col0 IS NOT NULL # Datafusion - Expected - -630 # Datafusion - Expected - -81 # Datafusion - Expected - -2961 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col2 \* Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 AS col2, + col2 * - 63 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-2961 +-6237 +-630 +-81 query I rowsort SELECT ALL + ( + 45 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 @@ -55946,8 +56499,10 @@ SELECT ( col0 ) AS col2, col2 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 0a529484b669441f053d1f17cdd21cf0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 1 and "Int64\(\-32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col1 AS col0, col2 AS col1, - 32 AS col1 FROM tab2 +---- +9 values hashing to 35bbd47ccfa1ec2efaa7053bb44b134d query I rowsort label-9235 SELECT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL IS NULL @@ -56087,8 +56642,15 @@ SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < + 75 * + - CAST ( - + col2 AS INTEGE # Datafusion - Expected - 68 # Datafusion - Expected - -707 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) / Int64\(8\) \+ cor0\.col1 \* \(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 62 / + 8 + col1 * - + col0 col1, col2 col1 FROM tab1 AS cor0 +---- +-418 +-4270 +-707 +59 +68 +96 query I rowsort SELECT ALL - 21 * + col2 + + col1 + + + 11 AS col1 FROM tab0 AS cor0 @@ -56286,8 +56848,9 @@ SELECT DISTINCT + 12 * - - col2 FROM tab0 564 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 col1, + col2 AS col1 FROM tab0 WHERE NOT NULL IS NULL +---- query I rowsort label-9287 SELECT - COUNT ( - col1 ) AS col0 FROM tab1 cor0 @@ -56555,8 +57118,11 @@ SELECT - + col2 - + col0 + + + 27 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 "\(\- cor0\.col2\) \+ cor0\.col2 AS col2" at position 0 and "Int64\(\-3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - col2 ) + + col2 AS col2, - 3 AS col2 FROM tab1 AS cor0 +---- +-3 +0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 129 @@ -56643,8 +57209,15 @@ SELECT MIN ( - col2 ) col2 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 67 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(36\) \* CAST\(Int64\(29\) AS Int32\) / \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 67 AS col1, CAST ( NULL AS INTEGER ) * + 36 * + CAST ( + 29 AS INTEGER ) / - + col2 AS col1 FROM tab0 AS cor0 +---- +67 +67 +67 +NULL +NULL +NULL query I rowsort SELECT ( - 18 ) AS col1 FROM tab2 @@ -57023,8 +57596,15 @@ SELECT DISTINCT - 14 / + SUM ( ALL + + col2 ) AS col2 FROM tab1 cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + col2 ), col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-9400 SELECT - 84 * - COUNT ( * ) FROM tab1 AS cor0 @@ -57114,8 +57694,11 @@ SELECT + col0 * - + col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(8\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, - COUNT ( ALL 8 ) AS col0 FROM tab1 +---- +-3 +3 query I rowsort SELECT DISTINCT - ( 18 ) AS col2 FROM tab1 @@ -57537,8 +58120,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 + col1 + + col2 IS NOT NULL # Datafusion - Expected - 87 # Datafusion - Expected - -77 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col1, 87 AS col1 FROM tab2 cor0 +---- +-51 +-67 +-77 +87 +87 +87 query I rowsort label-9493 SELECT DISTINCT + SUM ( ALL col2 ) FROM tab1 @@ -57739,8 +58329,15 @@ SELECT ALL * FROM tab1 WHERE NOT 92 NOT BETWEEN 47 AND - col0 # Datafusion - Expected - -870 # Datafusion - Expected - NULL # Datafusion - Expected - -9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- tab0\.col2\) \* tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) col0, - col2 * col0 AS col0 FROM tab0 +---- +-705 +-870 +-9603 +NULL +NULL +NULL query I rowsort SELECT DISTINCT ( 17 ) FROM tab2 WHERE NOT col2 IN ( - 69 * + col2 - + col0 ) @@ -58269,8 +58866,15 @@ SELECT + + 10 * col0 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 3079 # Datafusion - Expected - 0 # Datafusion - Expected - 4367 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* cor0\.col2 \* Int64\(0\) AS col2" at position 0 and "Int64\(\-49\) \+ Int64\(46\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 * col2 * - 0 AS col2, - 49 + ( + 46 ) * + col2 AS col2 FROM tab1 AS cor0 +---- +0 +0 +0 +2665 +3079 +4367 query I rowsort label-9618 SELECT DISTINCT + - col0 / - 52 + + col0 FROM tab1 AS cor0 @@ -59077,8 +59681,15 @@ SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0, col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT + ( - - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL @@ -59656,8 +60267,15 @@ SELECT ALL + col2 / - 78 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -58 # Datafusion - Expected - -77 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 col2, ( - col2 ) AS col2 FROM tab2 cor0 WHERE NOT + ( - col1 ) IS NULL +---- +-23 +-40 +-51 +-58 +-67 +-77 query I rowsort label-9848 SELECT ALL + ( ( - COUNT ( * ) ) ) FROM tab1 AS cor0 @@ -59910,8 +60528,9 @@ SELECT col0 * + + 26 AS col0 FROM tab2 AS cor0 1950 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col1 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 + col1 AS col0, col2 col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 + 40 AND - - col0 +---- query I rowsort SELECT DISTINCT - 79 AS col0 FROM tab2 diff --git a/data/sqlite/random/aggregates/slt_good_81.slt b/data/sqlite/random/aggregates/slt_good_81.slt index a9f8917..d2f059e 100644 --- a/data/sqlite/random/aggregates/slt_good_81.slt +++ b/data/sqlite/random/aggregates/slt_good_81.slt @@ -1112,8 +1112,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) FROM tab2 AS cor0 +---- +3 +3 query I rowsort SELECT + 24 * - col0 + + + col1 * + col1 AS col2 FROM tab0 AS cor0 @@ -2127,8 +2130,15 @@ NULL # Datafusion - Expected - -5034 # Datafusion - Expected - 77 # Datafusion - Expected - -4948 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "tab2\.col0 \+ Int64\(\-84\) \+ tab2\.col0 \* \(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, col0 + ( - 84 ) + col0 * - + col1 AS col0 FROM tab2 +---- +-2384 +-4948 +-5034 +51 +67 +77 query I rowsort label-341 SELECT + col2 / 4 * - 43 FROM tab0 @@ -3106,8 +3116,15 @@ SELECT DISTINCT * FROM tab1 WHERE - CAST ( - - 49 AS INTEGER ) NOT BETWEEN + - c # Datafusion - Expected - -1600 # Datafusion - Expected - 46 # Datafusion - Expected - -7520 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "tab0\.col2 \* Int64\(\-10\) \* Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 46 AS col2, col2 * - 10 * + 16 AS col2 FROM tab0 +---- +-15840 +-1600 +-7520 +46 +46 +46 query I rowsort label-518 SELECT - COUNT ( * ) FROM tab2 WHERE NOT 21 IS NULL @@ -3475,8 +3492,15 @@ SELECT DISTINCT MIN ( + - col0 ) col1 FROM tab1 AS cor0 # Datafusion - Expected - -97 # Datafusion - Expected - -99 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(\-97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col2 AS col0, - 97 AS col0 FROM tab0 cor0 +---- +-10 +-47 +-97 +-97 +-97 +-99 query I rowsort label-578 SELECT - + 32 + + SUM ( - ( col1 ) ) AS col1 FROM tab2 AS cor0 @@ -3573,8 +3597,15 @@ SELECT ALL col0 col0, 82 * + col1 * - 36 AS col0 FROM tab0 # Datafusion - Expected - -10 # Datafusion - Expected - -97 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col0, - col2 AS col0 FROM tab0 +---- +-10 +-15 +-47 +-87 +-97 +-99 query II rowsort label-592 SELECT DISTINCT 51 col0, + SUM ( - col2 ) * + + COUNT ( * ) FROM tab2 @@ -3769,8 +3800,15 @@ SELECT DISTINCT + - col2 * + col2 + + col1 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - 75 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col0 AS col0, - col0 AS col0 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +46 +64 +75 query II rowsort SELECT ALL col0 * col0 + + - 59 + - col2 + ( + 91 ), col2 AS col1 FROM tab1 cor0 @@ -4221,8 +4259,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 16 col1, - COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) +---- +-9 +16 query I rowsort label-695 SELECT DISTINCT 64 * COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 @@ -4382,8 +4423,15 @@ SELECT DISTINCT - 17 + + ( col0 ) FROM tab1 cor0 WHERE NOT - col2 IN ( + - ( + 1 # Datafusion - Expected - 2 # Datafusion - Expected - 27 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col1" at position 0 and "cor0\.col1 \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 27 AS col1, + col1 + + col1 AS col1 FROM tab0 AS cor0 +---- +162 +2 +27 +27 +27 +42 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 @@ -4392,8 +4440,15 @@ SELECT DISTINCT + 27 AS col1, + col1 + + col1 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 66 # Datafusion - Expected - -44 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col1" at position 0 and "\(\- cor0\.col1\) \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 44 AS col1, - col1 + col0 AS col1 FROM tab0 AS cor0 +---- +-44 +-44 +-44 +-66 +66 +96 query I rowsort SELECT DISTINCT - - 75 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 @@ -4462,8 +4517,15 @@ NULL # Datafusion - Expected - -85 # Datafusion - Expected - -91 # Datafusion - Expected - -133 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col2" at position 0 and "\(\- tab1\.col0\) \+ \(\- tab1\.col1\) \- Int64\(\-5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, - col0 + - col1 - - 5 AS col2 FROM tab1 +---- +-133 +-51 +-60 +-85 +-85 +-91 query I rowsort SELECT DISTINCT - 97 + 70 FROM tab2 AS cor0 @@ -4593,8 +4655,15 @@ SELECT ALL col0 col0, col1 AS col0 FROM tab1 # Datafusion - Expected - 36 # Datafusion - Expected - -97 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, 36 col0 FROM tab0 +---- +-15 +-87 +-97 +36 +36 +36 query I rowsort SELECT ALL 21 * + 87 FROM tab1 @@ -4605,8 +4674,10 @@ SELECT ALL 21 * + 87 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a8027d4c2666fb274d03f218d9ca209b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - ( - + col0 ) AS col1, - ( + col2 ), col2 AS col1 FROM tab0 AS cor0 +---- +9 values hashing to c66aa4efc1b77dfcf43b5d6cfba385b9 query II rowsort SELECT DISTINCT + col2, - col2 + + col0 FROM tab2 cor0 WHERE col1 <> col2 @@ -4925,8 +4996,11 @@ SELECT ALL - col2 * - 37 * + 10 * + - col2 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 12 AS col1, 67 AS col1 FROM tab2 +---- +12 +67 query I rowsort label-805 SELECT COUNT ( * ) col0 FROM tab2 WHERE NOT NULL IS NOT NULL @@ -5415,8 +5489,15 @@ SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN col0 AND + # Datafusion - Expected - -87 # Datafusion - Expected - 97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- cor0\.col0\)\) AS Int32\) AS col1" at position 0 and "cor0\.col2 \+ \(\- cor0\.col2\) \- cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - + ( - col0 ) AS INTEGER ) AS col1, + col2 + - col2 - + col0 AS col1 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +15 +87 +97 query I rowsort SELECT DISTINCT + ( col2 ) * + col1 * col1 * - col0 AS col2 FROM tab2 AS cor0 @@ -5854,8 +5935,11 @@ SELECT - - 24 AS col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(Int64\(97\) AS Int32\) AS col1" at position 0 and "Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) + CAST ( + 97 AS INTEGER ) AS col1, 82 AS col1 FROM tab0 AS cor0 +---- +82 +94 query I rowsort label-964 SELECT ALL + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0 @@ -5890,8 +5974,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * + col1 IS NOT NULL # Datafusion - Expected - 99 # Datafusion - Expected - -345 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* \(\- tab0\.col0\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 23 * - col0 AS col0, col2 AS col0 FROM tab0 +---- +-2001 +-2231 +-345 +10 +47 +99 query I rowsort SELECT ALL 54 * + + col1 FROM tab1 @@ -5975,8 +6066,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 18 AS col1, + COUNT ( * ) / + + 46 AS col1 FROM tab0 +---- +0 +18 query I rowsort SELECT DISTINCT - col0 * - 50 FROM tab2 @@ -6140,8 +6234,11 @@ SELECT DISTINCT + ( + CAST ( - - 33 AS INTEGER ) ) - + + col2 * col2 * - col2 FR # 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 "avg\(tab0\.col1\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT + + AVG ( + col1 ) AS col2, 53 AS col2 FROM tab0 WHERE NOT NULL = col2 +---- +53 +NULL query II rowsort SELECT DISTINCT + + col1 + + + col1, col0 FROM tab1 AS cor0 WHERE NOT col0 <= - col1 @@ -6213,8 +6310,15 @@ SELECT ALL CAST ( + 44 AS INTEGER ) * - + col2 col2 FROM tab1 AS cor0 # Datafusion - Expected - 170 # Datafusion - Expected - 91 # Datafusion - Expected - 182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 \+ \(\- \(\- cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, + col0 + - - col0 AS col2 FROM tab1 AS cor0 +---- +102 +170 +182 +51 +85 +91 query I rowsort SELECT DISTINCT - - col1 + 97 FROM tab0 cor0 @@ -6815,8 +6919,15 @@ SELECT ALL 74 * + + col1 * - col2 FROM tab2 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( col0 ), + col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 @@ -7267,8 +7378,10 @@ SELECT * FROM tab0 WHERE + 89 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to bf199469a25b3fb9edcbcde43ee241b3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) \+ tab0\.col2 AS col1" at position 0 and "tab0\.col2 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col1 + + col2 AS col1, - ( - col1 ) AS col0, + col2 AS col1 FROM tab0 +---- +9 values hashing to 6045b07beda005553feb3f2943e23aeb query I rowsort SELECT - 54 + + - col2 FROM tab2 @@ -7587,8 +7700,15 @@ SELECT ALL col0 AS col2, + col2 AS col2 FROM tab1 # Datafusion - Expected - 22 # Datafusion - Expected - 5 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, + 22 AS col0 FROM tab1 +---- +14 +22 +22 +22 +47 +5 query I rowsort label-1245 SELECT - ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL @@ -7621,8 +7741,15 @@ SELECT ALL - 45 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL # Datafusion - Expected - 76 # Datafusion - Expected - 3885 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ \(\- tab1\.col1\) \+ tab1\.col0 \* Int64\(42\) \+ Int64\(19\) AS col0" at position 0 and "Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + + - col1 + col0 * 42 + 19 col0, 76 AS col0 FROM tab1 +---- +2198 +3669 +3885 +76 +76 +76 query I rowsort SELECT - col0 * col2 + ( col1 ) FROM tab1 @@ -7679,8 +7806,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 35 ) IS NULL # Datafusion - Expected - 0 # Datafusion - Expected - 58 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "Int64\(55\) / tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, + 55 / col1 AS col0 FROM tab2 +---- +0 +0 +1 +23 +40 +58 query I rowsort label-1259 SELECT DISTINCT 74 * - ( COUNT ( * ) ) FROM tab1 @@ -8167,8 +8301,15 @@ SELECT + 87 * + - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - 52 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col1" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 52 col1, CAST ( - + col2 AS INTEGER ) col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +52 +52 +52 query I rowsort label-1343 SELECT DISTINCT - MAX ( - 76 ) FROM tab0 cor0 @@ -8458,8 +8599,15 @@ SELECT * FROM tab2 AS cor0 WHERE ( 87 ) IS NULL # Datafusion - Expected - 14 # Datafusion - Expected - 159 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col0 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col2 + + col0 col0, col1 AS col0 FROM tab1 AS cor0 +---- +14 +144 +147 +159 +47 +5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -147 @@ -9275,8 +9423,11 @@ SELECT DISTINCT + 94 * - - 93 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + COUNT ( * ) AS col0, - 37 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 +---- +-37 +9 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE - col2 / - col2 IS NULL @@ -9728,8 +9879,15 @@ SELECT DISTINCT + col2 + + - 41 FROM tab0 AS cor0 # Datafusion - Expected - 20 # Datafusion - Expected - 96 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col2 AS col1, 20 AS col1 FROM tab1 AS cor0 +---- +20 +20 +20 +59 +68 +96 query I rowsort label-1602 SELECT DISTINCT + 28 / - 53 FROM tab0 @@ -9977,8 +10135,9 @@ SELECT col2, col1 AS col0 FROM tab0 1 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(4\) / \(\- Int64\(\-99\)\) \* \(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT col0 * + 4 / - - 99 * - col1 col0, + 63, col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( + 99 ) IS NOT NULL +---- query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN - - 50 / + col2 AND NULL @@ -11167,8 +11326,11 @@ SELECT + col0 AS col0, - col0 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 249 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col2" at position 0 and "Int64\(83\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 22 AS col2, 83 * + COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +-22 +249 query I rowsort label-1842 SELECT + - CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab2 cor0 @@ -12037,8 +12199,15 @@ SELECT DISTINCT - COUNT ( * ) * - + COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Expected - 260 # Datafusion - Expected - 2205 # Datafusion - Expected - 2444 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col1 \+ Int64\(\-4\) AS col1" at position 0 and "cor0\.col1 \* Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 * col1 + + - 4 AS col1, + col1 * + 52 AS col1 FROM tab1 cor0 +---- +192 +21 +2205 +2444 +260 +728 query I rowsort label-1987 SELECT ALL - col1 / - - col0 FROM tab0 AS cor0 @@ -12059,8 +12228,15 @@ SELECT DISTINCT - COUNT ( + - col1 ) * - + 89 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - -89 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(89\)\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 89 ) AS col1, + col0 AS col1 FROM tab1 +---- +-89 +-89 +-89 +51 +85 +91 query I rowsort label-1990 SELECT + col2 / - + col0 AS col2 FROM tab2 AS cor0 @@ -12424,8 +12600,11 @@ SELECT + col1 AS col0, + col2 / - col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- min\(CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 73 + - COUNT ( * ) AS col1, - MIN ( + ( CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 +---- +64 +NULL query I rowsort label-2049 SELECT - 95 - - CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 WHERE NOT 64 = col0 @@ -12914,8 +13093,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 54 > + + col0 * - - 75 # Datafusion - Expected - 87 # Datafusion - Expected - -81 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 col1, ( + col0 ) AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +15 +87 +97 query II rowsort label-2128 SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) AS col2, - ( + MAX ( ALL - col0 ) ) FROM tab1 AS cor0 @@ -13156,8 +13342,10 @@ SELECT * FROM tab1 WHERE NOT - 33 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to b8b74a5508a6131373b06eecfcd80ad2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* \(\- Int64\(\-30\)\) \+ Int64\(39\) AS col1" at position 1 and "\(\- tab1\.col0\) \+ \(\- tab1\.col1\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 81 AS col0, + col0 * - - 30 + 39 AS col1, - col0 + - + col1 AS col1 FROM tab1 +---- +9 values hashing to d540fa04c0ca2bcb8e75f5ed60098c18 query I rowsort label-2166 SELECT ALL - COUNT ( * ) * - 81 AS col2 FROM tab1 @@ -13763,8 +13951,11 @@ NULL # 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 col0" at position 0 and "count\(Int64\(\-70\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 88 ) col0, COUNT ( - 70 ) AS col0 FROM tab0 +---- +3 +88 query I rowsort SELECT DISTINCT + 42 AS col1 FROM tab2 WHERE NOT - - col2 NOT BETWEEN col0 * 24 AND 31 @@ -13989,8 +14180,15 @@ SELECT ALL 7 + + ( - - col2 ) FROM tab1 WHERE NOT - CAST ( 84 AS INTEGER ) IS NO # Datafusion - Expected - 67 # Datafusion - Expected - 23 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 23 AS col2, + col1 AS col2 FROM tab2 +---- +23 +23 +23 +51 +67 +77 query I rowsort label-2316 SELECT DISTINCT + 0 * 82 * + SUM ( - 18 ) FROM tab1 @@ -14171,8 +14369,15 @@ SELECT DISTINCT + 50 * + col2 * - - col0 FROM tab0 WHERE NOT - 76 * - - 14 IS NU # Datafusion - Expected - -87 # Datafusion - Expected - -97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\)" at position 0 and "\(\- tab0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0, - col0 FROM tab0 +---- +-15 +-15 +-87 +-87 +-97 +-97 query I rowsort label-2343 SELECT ALL 91 / + 20 - + + COUNT ( * ) FROM tab2 AS cor0 @@ -14398,8 +14603,15 @@ SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NOT ( + + col1 * + 28 ) IS NOT NULL # Datafusion - Expected - 85 # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(98\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 98 col1, col0 AS col1 FROM tab1 +---- +51 +85 +91 +NULL +NULL +NULL query I rowsort label-2381 SELECT + 78 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 * + 0 - + 8 AND ( 72 - + CAST ( - col1 AS INTEGER ) ) @@ -14901,8 +15113,15 @@ SELECT ALL - col1 * 98 AS col1 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, col1 FROM tab1 cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-2464 SELECT 30 * - - COUNT ( * ) AS col2 FROM tab2 AS cor0 @@ -15074,8 +15293,9 @@ SELECT DISTINCT COUNT ( * ) / - 36 AS col0 FROM tab1 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, col2 AS col0 FROM tab2 WHERE ( + col1 ) IS NULL +---- query II rowsort SELECT ALL col2, - col0 AS col1 FROM tab0 @@ -15884,8 +16104,15 @@ SELECT 34 / + - 96 + + 74 FROM tab2 # Datafusion - Expected - 42 # Datafusion - Expected - 94 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \+ \(\- \(\- tab1\.col2\)\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 + - - col2 AS col2, 42 AS col2 FROM tab1 +---- +122 +42 +42 +42 +85 +94 query II rowsort label-2623 SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col0, 10 AS col1 FROM tab1 @@ -16821,8 +17048,15 @@ SELECT col0 FROM tab1 cor0 WHERE NOT + CAST ( - 75 AS INTEGER ) < ( + 4 ) # Datafusion - Expected - 88 # Datafusion - Expected - -55 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 55 col2, 88 col2 FROM tab1 AS cor0 +---- +-55 +-55 +-55 +88 +88 +88 query I rowsort label-2779 SELECT ALL col0 * + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 @@ -17160,8 +17394,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 AS col1, - COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) > NULL +---- +0 +36 query I rowsort label-2837 SELECT DISTINCT + COUNT ( * ) / CAST ( NULL AS INTEGER ) / COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT + 1 - - col0 IS NULL ) @@ -18460,8 +18697,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 / ( + 38 ) ) IS NULL # Datafusion - Expected - 87 # Datafusion - Expected - 70 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 70 AS col2, + col0 AS col2 FROM tab0 +---- +15 +70 +70 +70 +87 +97 query II rowsort SELECT ( + 59 ) * col2 + + - 35 AS col0, - col2 FROM tab2 @@ -18566,8 +18810,15 @@ SELECT col2 + 65 * col1 * + + col2 col1 FROM tab2 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 4408 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- \(\- cor0\.col2\)\) \* cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 + - - col2 * col0 AS col1, + col2 AS col1 FROM tab2 AS cor0 +---- +1081 +23 +2600 +40 +4408 +58 query I rowsort SELECT ALL + col0 - + 71 FROM tab1 AS cor0 @@ -20310,8 +20561,11 @@ SELECT COUNT ( * ) FROM tab2 WHERE + col1 * + - col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- min\(tab1\.col0\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + ( COUNT ( * ) ) col1, - MIN ( + + col0 ) + - COUNT ( * ) AS col1 FROM tab1 WHERE NOT - col2 + col2 IN ( - + 72, col0 * - col0 ) +---- +-54 +3 query I rowsort label-3349 SELECT ALL - MAX ( ALL 66 ) AS col0 FROM tab2 @@ -20532,8 +20786,15 @@ SELECT DISTINCT - CAST ( col0 AS FLOAT8 ) FROM tab2 cor0 WHERE NOT - ( - + col0 # Datafusion - Expected - 85 # 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 "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 67 AS col1, + col0 AS col1 FROM tab1 +---- +-67 +-67 +-67 +51 +85 +91 query I rowsort SELECT DISTINCT 16 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 @@ -20868,8 +21129,15 @@ SELECT DISTINCT + - 53 * + + col2 col0 FROM tab0 AS cor0 # Datafusion - Expected - 5285 # Datafusion - Expected - -91 # Datafusion - Expected - 9434 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col0 \* cor0\.col2 \+ \(\- cor0\.col0\) \+ \(\- Int64\(71\)\) \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col0 AS col0, col0 * + col2 + - col0 + - ( 71 ) * - col1 col0 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +5285 +5839 +9434 query II rowsort label-3441 SELECT ALL - COUNT ( * ) AS col1, SUM ( DISTINCT + 66 ) FROM tab2 AS cor0 @@ -21641,8 +21909,11 @@ SELECT + ( - - 82 ) + col0 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) +---- +-9 +9 query I rowsort label-3562 SELECT ALL + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * - 51 AS col2 FROM tab1 @@ -21761,8 +22032,15 @@ SELECT + + col0 + - col1 * + + col2 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - -1 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 1 AS col0, col2 AS col0 FROM tab0 +---- +-1 +-1 +-1 +10 +47 +99 query I rowsort SELECT 80 + + - 58 FROM tab1 @@ -23461,8 +23739,15 @@ SELECT - - COUNT ( * ) + - 84 FROM tab1 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - 8299 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \+ \(\- \(\- cor0\.col0\)\) \* cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 18 + - - col0 * col0 AS col1, - col0 AS col1 FROM tab1 cor0 +---- +-51 +-85 +-91 +2619 +7243 +8299 query I rowsort label-3866 SELECT DISTINCT + - COUNT ( DISTINCT - 17 ) FROM tab0 AS cor0 @@ -23601,8 +23886,15 @@ SELECT ALL - ( col0 ), + col2 FROM tab0 AS cor0 # Datafusion - Expected - -641 # Datafusion - Expected - 9409 # Datafusion - Expected - -6139 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(97\) AS col1" at position 0 and "\(\- cor0\.col1\) \+ \(\- cor0\.col2\) \* \(\- Int64\(\-62\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * + 97 AS col1, - col1 + - col2 * - - 62 col1 FROM tab0 AS cor0 +---- +-2995 +-6139 +-641 +1455 +8439 +9409 query I rowsort SELECT - 45 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL @@ -23631,8 +23923,15 @@ SELECT - - 8 AS col0 FROM tab1 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 5025 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \* cor0\.col1 AS col1" at position 0 and "CAST\(\(\- \(\- CAST\(NULL AS Int32\)\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 * + col1 AS col1, CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) col1 FROM tab2 AS cor0 +---- +2346 +4928 +5025 +NULL +NULL +NULL query I rowsort label-3894 SELECT - CAST ( SUM ( + 6 ) AS INTEGER ) AS col2 FROM tab0 @@ -24246,8 +24545,15 @@ SELECT col2 * + 41 + + 67 * col0 FROM tab2 # Datafusion - Expected - 6 # Datafusion - Expected - 931588 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* tab0\.col2 \* tab0\.col0 \+ tab0\.col0 AS col1" at position 0 and "Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * + col2 * + + col0 + col0 AS col1, + 6 AS col1 FROM tab0 +---- +10590 +6 +6 +6 +75777 +931588 query I rowsort label-3994 SELECT - ( + 63 ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0 @@ -25057,8 +25363,11 @@ SELECT + ( 99 ) FROM tab1 AS cor0 # 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 "min\(cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 41 AS col2, MIN ( col1 ) col2 FROM tab0 AS cor0 +---- +-41 +1 query I rowsort SELECT ALL 11 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 11 @@ -25253,8 +25562,11 @@ SELECT DISTINCT col2 * - 97 + + 89 AS col0 FROM tab2 WHERE NOT + col2 * col0 = ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(\(\- cor0\.col0\)\)\) AS Int32\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( - COUNT ( - col0 ) AS INTEGER ) + - - COUNT ( * ) AS col1, - 16 AS col1 FROM tab0 AS cor0 +---- +-16 +6 query I rowsort SELECT ALL - 86 * + col0 + col0 AS col0 FROM tab2 AS cor0 WHERE ( - col0 + ( - col1 ) * + 59 ) <> col2 + col0 @@ -26332,8 +26644,15 @@ SELECT ALL 72 * - COUNT ( * ) * - - COUNT ( * ) col1 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, + col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query II rowsort SELECT col2 AS col1, + 47 FROM tab0 @@ -26876,8 +27195,15 @@ SELECT ALL - col1 - - + col2 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\)" at position 0 and "CAST\(NULL AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) FROM tab0 +---- +NULL +NULL +NULL +NULL +NULL +NULL query I rowsort SELECT DISTINCT + 14 * 97 FROM tab1 @@ -28650,8 +28976,15 @@ SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) > - 89 + col0 # Datafusion - Expected - 100 # Datafusion - Expected - 97 # Datafusion - Expected - 9801 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col2\) \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, - col2 * + ( - col2 ) AS col1 FROM tab0 AS cor0 +---- +100 +15 +2209 +87 +97 +9801 query I rowsort label-4724 SELECT DISTINCT - COUNT ( ALL + col1 ) AS col1 FROM tab1 AS cor0 @@ -29171,8 +29504,15 @@ SELECT ALL col2 / - col0 + + 73 + + 10, - col1 AS col1 FROM tab1 # Datafusion - Expected - 4263 # Datafusion - Expected - 97 # Datafusion - Expected - 4753 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 \* Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, + col0 * + 49 col2 FROM tab0 AS cor0 +---- +15 +4263 +4753 +735 +87 +97 query I rowsort label-4805 SELECT ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND col0 @@ -29207,8 +29547,15 @@ SELECT ALL - 80 + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= - col0 # Datafusion - Expected - -54 # Datafusion - Expected - 27 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col1" at position 0 and "Int64\(\-94\) \- \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 col1, - 94 - - col2 AS col1 FROM tab2 AS cor0 +---- +-36 +-54 +-71 +27 +27 +27 query I rowsort SELECT DISTINCT col1 - + - col2 AS col0 FROM tab1 @@ -31319,8 +31666,10 @@ SELECT DISTINCT - 47 * 78 * - - COUNT ( * ) + - MAX ( ALL - - col0 ) AS col0 FRO # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f4e779c971865624ffe17453faf91d27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "\(\- tab2\.col1\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col1 AS col2, - ( + col1 ) + + col1 AS col0, - col1 col2 FROM tab2 +---- +9 values hashing to 7260a35309880748ac4a387cd93e610b query I rowsort SELECT DISTINCT - col0 + - + col1 AS col0 FROM tab0 AS cor0 @@ -31835,8 +32184,15 @@ SELECT + - col1 * - 46 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - col2 * + 59 + - # Datafusion - Expected - 47 # Datafusion - Expected - -470016 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col2\) \* cor0\.col2 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * - col2 * + col2 AS col2, col1 AS col2 FROM tab1 cor0 +---- +-295885 +-420784 +-470016 +14 +47 +5 query I rowsort label-5250 SELECT DISTINCT + - 89 * col0 + col2 * + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = - CAST ( - col0 AS INTEGER ) + - 64 + - 65 * + 24 @@ -32151,8 +32507,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 / + + col2 * + + col2 + - - col2 # Datafusion - Expected - 1 # Datafusion - Expected - 81 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "Int64\(29\) / tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, 29 / + col1 AS col0 FROM tab0 +---- +0 +1 +1 +21 +29 +81 query I rowsort SELECT col2 + + col0 + + + 34 AS col0 FROM tab0 @@ -32800,8 +33163,15 @@ SELECT - + col0 FROM tab1 AS cor0 WHERE NOT - 92 IS NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, + col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query II rowsort SELECT + - 98, col0 + + ( col1 ) AS col2 FROM tab1 cor0 @@ -35228,8 +35598,15 @@ SELECT + 19 / - ( + 27 ) FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, col2 AS col0 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query IIIIII rowsort SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE + 3 IS NULL @@ -35903,8 +36280,11 @@ SELECT DISTINCT MIN ( ALL - col0 ) AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) / Int64\(57\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 66 / + 57 AS col1, COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 +---- +-1 +9 query I rowsort SELECT ALL - ( 66 ) FROM tab1 @@ -36697,8 +37077,15 @@ SELECT ALL - col0 * - 83 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - -47918 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* cor0\.col2 \* cor0\.col0 \+ \(\- Int64\(68\)\) AS col2" at position 0 and "\(\- cor0\.col0\) \- Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 11 * col2 * col0 + - + 68 AS col2, - col0 - 0 AS col2 FROM tab2 AS cor0 +---- +-11706 +-28228 +-46 +-47918 +-64 +-75 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE col2 + - 30 IS NULL @@ -36783,8 +37170,11 @@ SELECT ALL COUNT ( col2 ) AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 88 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +3 +88 query I rowsort label-6064 SELECT + COUNT ( - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT 78 BETWEEN col1 AND - col1 @@ -37664,8 +38054,15 @@ SELECT ALL + COUNT ( * ) * + 14 AS col1 FROM tab1 # Datafusion - Expected - -40 # Datafusion - Expected - 0 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 / \(\- tab2\.col1\) / tab2\.col1 \* Int64\(81\) \+ \(\- tab2\.col2\) \+ tab2\.col2 AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 / - col1 / col1 * 81 + - col2 + col2 AS col1, - col2 AS col1 FROM tab2 +---- +-23 +-40 +-58 +0 +0 +0 query I rowsort SELECT DISTINCT col0 * - + 0 + col2 AS col1 FROM tab2 @@ -38490,8 +38887,11 @@ SELECT - 67 * col2 col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + 52 ) AS col2, + COUNT ( * ) col2 FROM tab1 AS cor0 +---- +3 +52 query I rowsort label-6344 SELECT DISTINCT CAST ( - - 69 AS INTEGER ) AS col1 FROM tab1 AS cor0 @@ -38727,8 +39127,15 @@ SELECT + MAX ( DISTINCT col2 ) * + 63 * - 43 FROM tab2 # Datafusion - Expected - -3570 # Datafusion - Expected - 25 # Datafusion - Expected - -64719 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "\(\- cor0\.col1\) \* cor0\.col2 \* Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 25 col1, - col1 * col2 * + 17 AS col1 FROM tab0 AS cor0 +---- +-1683 +-3570 +-64719 +25 +25 +25 query II rowsort SELECT col1, - col2 FROM tab1 AS cor0 @@ -39621,8 +40028,15 @@ SELECT DISTINCT ( 27 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -76 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 76 AS col1, - col2 AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-76 +-76 +-76 +-99 query I rowsort label-6536 SELECT - 42 / + col0 * - + col1 * - col1 FROM tab1 AS cor0 @@ -39698,8 +40112,9 @@ SELECT col1 + - col1 AS col0 FROM tab0 cor0 WHERE col1 <> NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col1 AS col0" at position 0 and "cor0\.col1 \+ \(\- Int64\(95\)\) \- cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * col1 AS col0, col1 + - ( + ( 95 ) ) - col1 AS col0 FROM tab2 cor0 WHERE NULL NOT BETWEEN - 48 AND - col2 +---- query I rowsort label-6550 SELECT col0 - - - col0 + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0 @@ -40708,8 +41123,15 @@ SELECT col2 + 85 * + + col0 AS col0 FROM tab1 cor0 # Datafusion - Expected - -27 # Datafusion - Expected - -8982 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \- cor0\.col0 \- cor0\.col2 \* cor0\.col2 \- \(\- Int64\(\-24\)\) \* \(\- cor0\.col1\) AS col2" at position 0 and "\(\- cor0\.col1\) \+ Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 - + col0 - + col2 * + + col2 - - - 24 * + - col1 AS col2, - col1 + 20 AS col2 FROM tab1 AS cor0 +---- +-27 +-3531 +-3678 +-8982 +15 +6 query II rowsort SELECT DISTINCT - 91 * + + col1 + + + col1, - col0 AS col2 FROM tab0 AS cor0 @@ -41917,8 +42339,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( 75 ) NOT IN # Datafusion - Expected - -58 # Datafusion - Expected - -77 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, ( - col2 ) col0 FROM tab2 +---- +-23 +-40 +-51 +-58 +-67 +-77 query I rowsort SELECT 74 / - 49 + - col2 * - 67 FROM tab0 AS cor0 WHERE NOT + col1 = ( NULL ) @@ -43289,8 +43718,15 @@ SELECT 66 AS col0, - COUNT ( * ) FROM tab1 # Datafusion - Expected - -85 # Datafusion - Expected - 91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "\(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, - col0 AS col1 FROM tab1 +---- +-51 +-85 +-91 +51 +85 +91 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN + 62 AND 57 + - col1 @@ -44217,8 +44653,15 @@ SELECT + col1 FROM tab0 AS cor0 WHERE ( NOT + + col0 IS NOT NULL ) # Datafusion - Expected - 42 # Datafusion - Expected - 56 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ cor0\.col0 \- cor0\.col1 AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 + + col0 - + col1 AS col0, 42 AS col0 FROM tab0 cor0 +---- +-113 +-3 +42 +42 +42 +56 query I rowsort label-7294 SELECT DISTINCT 69 - - 23 * + COUNT ( * ) FROM tab1 AS cor0 @@ -44471,8 +44914,11 @@ SELECT DISTINCT 28 AS col0, - COUNT ( * ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, - 73 AS col1 FROM tab0 +---- +-73 +3 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN + + 59 AND NULL @@ -44905,8 +45351,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - + COUNT ( * ) ) AS col0, + 55 AS col0 FROM tab0 +---- +3 +55 query I rowsort SELECT DISTINCT col1 + col0 FROM tab2 WHERE NOT ( col0 ) IS NULL @@ -45107,8 +45556,15 @@ SELECT col2, + col0 + - - 67 AS col0 FROM tab2 cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0, col0 AS col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -45658,8 +46114,15 @@ SELECT - + MIN ( col1 ) AS col1 FROM tab2 cor0 # Datafusion - Expected - -419608 # Datafusion - Expected - 75 # Datafusion - Expected - -491717 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "Int64\(83\) \* Int64\(\-79\) \* cor0\.col0 \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 AS col1, + 83 * - 79 * col0 + col2 AS col1 FROM tab2 AS cor0 +---- +-301599 +-419608 +-491717 +46 +64 +75 query III rowsort SELECT DISTINCT * FROM tab0 WHERE ( col0 ) = - 30 @@ -45887,8 +46350,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 AS col1, + COUNT ( * ) col1 FROM tab0 AS cor0 +---- +-70 +3 query I rowsort SELECT - - col0 + + ( - + col1 ) FROM tab2 AS cor0 @@ -46086,8 +46552,10 @@ SELECT + 57 / - COUNT ( * ) AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 4f7a1076af834345e33c3fada57fe521 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "tab1\.col1 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IRI valuesort SELECT ALL col1 col2, + CAST ( NULL AS FLOAT8 ), + + col1 AS col2 FROM tab1 +---- +9 values hashing to ebc6d493c3ead69b50f5c776bb99c2f4 query I rowsort label-7617 SELECT ALL CAST ( NULL AS INTEGER ) + + + SUM ( col1 ) FROM tab1 @@ -46105,8 +46573,12 @@ SELECT col0 + + 15 FROM tab0 # Datafusion - Expected - 3 # Datafusion - Expected - 3956 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-77\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL COUNT ( * ) AS col2, 86 * + + ( + + 46 ) AS col1, - 77 AS col2 FROM tab2 +---- +-77 +3 +3956 query II rowsort SELECT ALL + col2 + + - col1 AS col2, - col2 FROM tab2 @@ -47309,8 +47781,11 @@ SELECT ALL 67 - 31 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -127 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col2" at position 0 and "Int64\(38\) \+ \(\- count\(\(\- Int64\(73\)\)\)\) \* Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 73 AS col2, 38 + - COUNT ( - + 73 ) * + 55 AS col2 FROM tab2 cor0 +---- +-127 +73 query I rowsort label-7814 SELECT + ( MIN ( - 31 ) ) AS col2 FROM tab2 @@ -47842,8 +48317,15 @@ SELECT + + COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NULL # Datafusion - Expected - 68 # Datafusion - Expected - 25 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* tab1\.col1 AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 * + col1 AS col1, col2 AS col1 FROM tab1 +---- +196 +2209 +25 +59 +68 +96 query I rowsort SELECT ALL 47 + 22 + col0 + - col0 FROM tab2 @@ -48204,8 +48686,15 @@ SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( + col2, + ( col2 ) ) # Datafusion - Expected - 97 # Datafusion - Expected - 3 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / Int64\(27\) AS col1" at position 0 and "cor0\.col2 \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 / + 27 AS col1, col2 + col0 col1 FROM tab0 AS cor0 +---- +0 +0 +196 +3 +62 +97 query I rowsort label-7969 SELECT DISTINCT + MIN ( + - 90 ) AS col0 FROM tab2 @@ -48472,8 +48961,15 @@ SELECT SUM ( DISTINCT - - 19 ) FROM tab2 # Datafusion - Expected - -41 # Datafusion - Expected - 15 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "Int64\(7\) \+ Int64\(\-48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 15 AS col2, + 7 + + - 48 col2 FROM tab2 +---- +-41 +-41 +-41 +15 +15 +15 query I rowsort SELECT DISTINCT ( + - 55 ) + + col0 FROM tab1 @@ -48485,8 +48981,11 @@ SELECT DISTINCT ( + - 55 ) + + col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1197 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col1" at position 0 and "Int64\(\-21\) \* \(\- Int64\(57\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 0 AS col1, - 21 * - + 57 col1 FROM tab2 +---- +0 +1197 query I rowsort SELECT DISTINCT - 15 + + + ( + - col2 ) AS col1 FROM tab2 AS cor0 @@ -48873,8 +49372,15 @@ SELECT + col0 AS col2, - 88 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 142 # Datafusion - Expected - 70 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col1" at position 0 and "cor0\.col0 \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 70 AS col1, + col0 + + col1 col1 FROM tab2 AS cor0 +---- +141 +142 +70 +70 +70 +97 query I rowsort SELECT ( - + col2 ) FROM tab1 AS cor0 @@ -50037,8 +50543,9 @@ SELECT DISTINCT CAST ( - 90 AS INTEGER ) AS col0, 77 AS col2 FROM tab1 77 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* Int64\(6\) \- \(\- \(\- tab0\.col0\)\) AS col1" at position 0 and "\(\- \(\- tab0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 * 6 - - - col0 AS col1, - ( + + ( + ( - col0 ) ) ) AS col1 FROM tab0 WHERE NOT col0 IS NOT NULL +---- query II rowsort label-8266 SELECT ALL col1, 65 / col1 FROM tab0 @@ -51177,8 +51684,11 @@ SELECT - ( + - COUNT ( * ) ) / - + MIN ( ALL - col1 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 9 AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL BETWEEN col0 * - col1 AND NULL ) +---- +-9 +0 query II rowsort SELECT + 27 AS col2, + ( + col1 ) FROM tab0 AS cor0 @@ -51318,8 +51828,15 @@ SELECT 39, col1 FROM tab1 AS cor0 # Datafusion - Expected - 1882 # Datafusion - Expected - 1730 # Datafusion - Expected - 343 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \* Int64\(\-29\) \+ Int64\(\-97\) AS col2" at position 0 and "Int64\(\-69\) \+ \(\- cor0\.col2\) \+ Int64\(\-99\) \+ \(\- cor0\.col0\) \- Int64\(47\) \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 63 * - 29 + - 97 col2, - 69 + + - col2 + + - 99 + - col0 - + 47 * - col1 AS col2 FROM tab1 AS cor0 +---- +-77 +1730 +1730 +1730 +1882 +343 query I rowsort SELECT DISTINCT + col1 FROM tab2 WHERE ( col0 ) IS NULL @@ -51455,8 +51972,15 @@ SELECT DISTINCT - 68 AS col0 FROM tab2 WHERE NOT NULL BETWEEN col2 * + - col1 * # Datafusion - Expected - 40 # Datafusion - Expected - 48 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 col1, + col2 AS col1 FROM tab2 AS cor0 +---- +23 +40 +48 +48 +48 +58 query I rowsort SELECT + ( - col0 ) AS col2 FROM tab1 cor0 @@ -52726,8 +53250,15 @@ SELECT + SUM ( ALL + + 3 ) FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - -5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col2, col1 AS col2 FROM tab1 +---- +-14 +-47 +-5 +14 +47 +5 query III rowsort SELECT * FROM tab1 AS cor0 WHERE 31 * 30 < + - col2 @@ -53758,8 +54289,15 @@ SELECT DISTINCT + - 47 * + - col0 + + col2 + col1 FROM tab0 AS cor0 # Datafusion - Expected - 1876 # Datafusion - Expected - -20 # Datafusion - Expected - 2156 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col0" at position 0 and "Int64\(28\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 20 AS col0, + 28 * + col1 AS col0 FROM tab2 AS cor0 +---- +-20 +-20 +-20 +1428 +1876 +2156 query I rowsort label-8898 SELECT + 98 * + - COUNT ( * ) col1 FROM tab2 AS cor0 @@ -53794,8 +54332,15 @@ SELECT - - 24 AS col1 FROM tab2 WHERE NOT NULL IS NULL # Datafusion - Expected - 14 # Datafusion - Expected - -85255 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(17\)\) \* cor0\.col2 \* cor0\.col0 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 17 * col2 * col0 AS col2, col1 col2 FROM tab1 cor0 WHERE col1 * col1 IS NOT NULL +---- +-105196 +-83232 +-85255 +14 +47 +5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 @@ -53804,8 +54349,15 @@ SELECT ALL - + 17 * col2 * col0 AS col2, col1 col2 FROM tab1 cor0 WHERE col1 * c # Datafusion - Expected - 3187 # Datafusion - Expected - -58 # Datafusion - Expected - 3197 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(51\) \* \(\- Int64\(\-64\)\) \- cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col1, ( + 51 ) * + ( ( - - 64 ) ) - + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT + + 43 - - ( + + col2 ) * + col1 > col1 ) +---- +-23 +-40 +-58 +3187 +3197 +3213 query I rowsort SELECT DISTINCT 97 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 @@ -54021,8 +54573,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-94\) \+ Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, - 94 + + 49 AS col2 FROM tab0 +---- +-45 +3 query III rowsort SELECT * FROM tab2 AS cor0 WHERE 20 IS NULL @@ -54457,8 +55012,15 @@ SELECT DISTINCT + MAX ( - col1 ) + + COUNT ( * ) + 53 FROM tab1 AS cor0 # Datafusion - Expected - 20 # Datafusion - Expected - 81 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col1 AS col0, 20 AS col0 FROM tab0 AS cor0 +---- +1 +20 +20 +20 +21 +81 query I rowsort label-9009 SELECT - + SUM ( - - col2 ) FROM tab0 AS cor0 @@ -54573,8 +55135,15 @@ SELECT - COUNT ( * ) + + 61 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NUL # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, col2 FROM tab1 cor0 +---- +59 +59 +68 +68 +96 +96 query II rowsort SELECT + - col2 AS col2, 75 FROM tab2 AS cor0 @@ -55114,8 +55683,11 @@ SELECT - col1 * - ( - col2 ) * - col2 / - - col2 + + col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- Int64\(\-9\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col2, - ( - 9 ) AS col2 FROM tab2 +---- +3 +9 query I rowsort label-9115 SELECT DISTINCT COUNT ( * ) + 35 col1 FROM tab0 @@ -55126,8 +55698,12 @@ SELECT DISTINCT COUNT ( * ) + 35 col1 FROM tab0 # Datafusion - Expected - 3 # Datafusion - Expected - 25 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL COUNT ( * ) col0, + 25 AS col0, + 91 FROM tab1 +---- +25 +3 +91 query I rowsort SELECT - 21 + - ( + col2 ) * - 17 + + - 29 FROM tab1 @@ -56130,8 +56706,11 @@ SELECT ALL 85 col2, ( 83 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "Int64\(\-53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 76 AS col0, - 53 AS col0 FROM tab0 AS cor0 +---- +-53 +76 query I rowsort SELECT ALL - - 8 AS col0 FROM tab0 AS cor0 @@ -56157,8 +56736,15 @@ NULL # Datafusion - Expected - -47 # Datafusion - Expected - 96 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col2 AS col0, - col1 AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +59 +68 +96 query I rowsort SELECT DISTINCT - + 94 * col1 AS col0 FROM tab0 AS cor0 @@ -57171,8 +57757,11 @@ SELECT ALL col1 * + 46 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) * + + COUNT ( * ) AS col0, COUNT ( * ) col0 FROM tab1 +---- +-9 +3 query I rowsort label-9460 SELECT - col0 / - col2 + - - 89 * + col2 FROM tab0 AS cor0 @@ -57379,8 +57968,11 @@ SELECT ALL + + COUNT ( * ) + + 65 * + 68 AS col0 FROM tab1 WHERE NOT - - 16 * + # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-46\)\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( ALL + - 46 ) AS col2, 49 AS col2 FROM tab1 +---- +-46 +49 query II rowsort SELECT DISTINCT 44, - col2 AS col0 FROM tab1 WHERE NOT NULL >= - - col0 / - - col0 + + + 76 @@ -58346,8 +58938,11 @@ SELECT DISTINCT * FROM tab1 WHERE NOT + col0 <= - col0 / col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(51\)\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + MIN ( 51 ) AS col1, + 45 AS col1 FROM tab1 cor0 +---- +45 +51 query I rowsort label-9657 SELECT ALL col1 / - col0 + - col0 AS col2 FROM tab2 AS cor0 @@ -58458,8 +59053,15 @@ SELECT ALL * FROM tab1 WHERE NOT 63 IS NULL # Datafusion - Expected - 25 # Datafusion - Expected - 17 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 17 AS col2, 25 AS col2 FROM tab0 +---- +17 +17 +17 +25 +25 +25 query I rowsort SELECT ALL col1 + - - col2 FROM tab0 @@ -58563,8 +59165,9 @@ SELECT DISTINCT 73 FROM tab0 AS cor0 WHERE 41 - 3 IS NOT NULL 73 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col0 AS col1, + col0 AS col1 FROM tab2 WHERE NULL IS NOT NULL +---- query I rowsort label-9695 SELECT + COUNT ( + - ( - 4 ) ) * + - COUNT ( - 56 ) AS col1 FROM tab2 diff --git a/data/sqlite/random/aggregates/slt_good_82.slt b/data/sqlite/random/aggregates/slt_good_82.slt index 022c281..99013df 100644 --- a/data/sqlite/random/aggregates/slt_good_82.slt +++ b/data/sqlite/random/aggregates/slt_good_82.slt @@ -332,8 +332,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, + 4 AS col2 FROM tab2 +---- +-3 +4 query I rowsort SELECT ALL + col1 AS col1 FROM tab2 WHERE NULL <> + + 37 * - + 88 * 66 @@ -1467,8 +1470,11 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE 96 / + + col2 * - - 85 IN ( - col2 * C # 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\(\(\- cor0\.col0\)\)\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( ( - col0 ) ) AS col1, + 15 AS col1 FROM tab0 AS cor0 +---- +-3 +15 query I rowsort SELECT DISTINCT 37 * + + 5 * - col2 * col0 AS col1 FROM tab2 @@ -1600,8 +1606,15 @@ SELECT * FROM tab2 WHERE 78 * - 16 < NULL # Datafusion - Expected - 95 # Datafusion - Expected - 77 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, 95 AS col0 FROM tab2 +---- +51 +67 +77 +95 +95 +95 query I rowsort label-263 SELECT 30 / + 31 FROM tab0 @@ -1897,8 +1910,11 @@ SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) IN ( - col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, COUNT ( * ) col0 FROM tab0 AS cor0 +---- +-3 +3 query I rowsort label-309 SELECT DISTINCT COUNT ( * ) / + - COUNT ( * ) FROM tab2 @@ -2597,8 +2613,15 @@ SELECT DISTINCT + - col1 FROM tab1 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col1, col1 AS col1 FROM tab2 cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT + - 42 * - col2 FROM tab0 AS cor0 @@ -3330,8 +3353,15 @@ SELECT - SUM ( + 88 ) AS col0 FROM tab0 # Datafusion - Expected - -77 # Datafusion - Expected - 75 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "\(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, - col1 AS col1 FROM tab2 +---- +-51 +-67 +-77 +46 +64 +75 query III rowsort SELECT ALL * FROM tab2 WHERE NOT - col0 * + col0 + - 25 >= - ( + 1 ) + + + 60 + + col1 * - + 18 / + - 38 @@ -3762,8 +3792,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE ( 55 ) NOT IN ( 83 / 48 ) # Datafusion - Expected - 21 # Datafusion - Expected - -4480 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \* Int64\(64\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 70 * + 64 col0, col1 col0 FROM tab0 +---- +-4480 +-4480 +-4480 +1 +21 +81 query III rowsort SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( + 39 ) AND NULL @@ -4194,8 +4231,15 @@ SELECT - col0, - col0 - + + col0 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 1 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 / + + col1 AS col2, - col2 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +1 +1 +1 query I rowsort label-684 SELECT - SUM ( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0 @@ -4290,8 +4334,11 @@ SELECT 73 + + col0 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "CAST\(CAST\(CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS Int32\) AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ), CAST ( CAST ( CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1 +---- +-9 +-9 query I rowsort label-699 SELECT DISTINCT COUNT ( * ) / 41 col0 FROM tab0 @@ -4815,8 +4862,11 @@ SELECT DISTINCT 24 - - + col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 264 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 88 * COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 +---- +264 +3 query II rowsort SELECT DISTINCT 51 * + col1 AS col0, - 98 * - col1 FROM tab2 @@ -5241,8 +5291,11 @@ SELECT DISTINCT - CAST ( - CAST ( + + COUNT ( * ) AS INTEGER ) AS INTEGER ) * + # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(34\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( DISTINCT + + 34 ) AS col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 +---- +-34 +NULL query I rowsort SELECT + - 24 * - col0 FROM tab1 AS cor0 @@ -5805,8 +5858,15 @@ SELECT DISTINCT - MIN ( ALL - 16 ) * + ( COUNT ( ALL 45 ) ) + + COUNT ( * ) FROM # Datafusion - Expected - 38 # Datafusion - Expected - 96 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, + 38 AS col0 FROM tab1 +---- +38 +38 +38 +59 +68 +96 query I rowsort SELECT - col1 * - - 50 AS col0 FROM tab1 AS cor0 @@ -6584,8 +6644,11 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= + col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 2904 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(33\) \* Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) col1, + 33 * 88 AS col1 FROM tab0 +---- +2904 +3 query I rowsort SELECT + col2 + + col1 AS col1 FROM tab1 WHERE NOT ( 89 ) IS NOT NULL @@ -6783,8 +6846,11 @@ SELECT ALL 14 col1 FROM tab1 AS cor0 WHERE 21 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, - COUNT ( * ) AS col2 FROM tab0, tab1 AS cor0 +---- +-9 +9 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT 59 IS NOT NULL @@ -7067,8 +7133,15 @@ NULL # Datafusion - Expected - 44 # Datafusion - Expected - NULL # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- \(\- cor0\.col1\)\) / \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 + - - col1 / + ( - - CAST ( NULL AS INTEGER ) ) AS col2, + 44 AS col2 FROM tab0 AS cor0 +---- +44 +44 +44 +NULL +NULL +NULL query I rowsort label-1161 SELECT 17 + + MIN ( DISTINCT - col2 ) AS col1 FROM tab1 cor0 @@ -7919,8 +7992,15 @@ SELECT 28 * + SUM ( col1 ) FROM tab1 # Datafusion - Expected - -15 # Datafusion - Expected - 99 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "\(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col0, - col0 AS col0 FROM tab0 +---- +-15 +-87 +-97 +10 +47 +99 query II rowsort SELECT ALL + 51 AS col1, - col2 + + 56 AS col0 FROM tab1 @@ -8198,8 +8278,15 @@ SELECT DISTINCT - 8 FROM tab2 AS cor0 WHERE col1 * + - col2 > NULL # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query III rowsort SELECT ALL * FROM tab0 WHERE NOT ( 78 * + col0 IS NULL ) @@ -8232,8 +8319,15 @@ SELECT + + SUM ( ALL + - CAST ( + 76 AS INTEGER ) ) * + + 26 AS col2 FROM tab2 A # Datafusion - Expected - 30 # Datafusion - Expected - 99 # Datafusion - Expected - 194 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col0 \- \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, col0 - - col0 AS col1 FROM tab0 AS cor0 +---- +10 +174 +194 +30 +47 +99 query I rowsort SELECT col0 + + - col1 FROM tab2 AS cor0 @@ -8448,8 +8542,15 @@ SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT - col2 * 99 IS NOT NULL # Datafusion - Expected - 145 # Datafusion - Expected - -91 # Datafusion - Expected - 145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(64\) \+ Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + ( + col0 ) col0, + 64 + 81 AS col0 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +145 +145 +145 query I rowsort SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE ( NOT - col2 < + - col2 ) @@ -8516,8 +8617,11 @@ SELECT DISTINCT - MAX ( DISTINCT + + col1 ) + - COUNT ( * ) AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +3 +NULL query I rowsort SELECT 4 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 @@ -8682,8 +8786,15 @@ SELECT ALL + col2 * 29 * - 13 * + + 11 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 49 # Datafusion - Expected - 5 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 \+ \(\- Int64\(\-2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, + col1 + - - 2 AS col2 FROM tab1 AS cor0 +---- +14 +16 +47 +49 +5 +7 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= 39 @@ -9532,8 +9643,15 @@ SELECT - MAX ( DISTINCT - 58 ) + - + 53 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 3953 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col2 \* cor0\.col1 AS col1" at position 0 and "cor0\.col1 / Int64\(\-96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + col2 * col1 AS col1, + col1 / - 96 col1 FROM tab2 AS cor0 +---- +0 +0 +0 +1224 +3157 +3953 query I rowsort SELECT col1 + + col0 * + + col0 FROM tab1 AS cor0 @@ -10659,8 +10777,15 @@ SELECT DISTINCT - 22 / - ( + 80 ) + + col2 AS col1 FROM tab2 # Datafusion - Expected - 91 # Datafusion - Expected - 470481 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* \(\- tab1\.col2\) \* \(\- tab1\.col2\) \+ Int64\(17\) \+ tab1\.col1 \* Int64\(32\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 * + - col2 * - col2 + + 17 + + col1 * + 32 AS col1, + col0 AS col1 FROM tab1 +---- +296062 +422305 +470481 +51 +85 +91 query I rowsort SELECT - col2 * + - 20 AS col0 FROM tab0 cor0 @@ -10904,8 +11029,15 @@ SELECT ALL col2 * + 11 + + - 75 - + col0 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 67 # 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 "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 83 AS col2, col1 AS col2 FROM tab2 cor0 +---- +-83 +-83 +-83 +51 +67 +77 query I rowsort SELECT DISTINCT + - col0 * + - 11 * - 56 FROM tab1 AS cor0 @@ -11329,8 +11461,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 74 col0, - COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +-3 +74 query II rowsort label-1867 SELECT + COUNT ( * ) AS col1, + MIN ( DISTINCT - col0 ) * + MIN ( ALL + col0 ) FROM tab0 AS cor0 @@ -11552,8 +11687,15 @@ SELECT + COUNT ( * ), 98 AS col0 FROM tab0 # Datafusion - Expected - 135 # Datafusion - Expected - NULL # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "tab2\.col1 \+ tab2\.col0 \- Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, col1 + + col0 - 7 AS col1 FROM tab2 WHERE NOT - 21 > 13 +---- +134 +135 +90 +NULL +NULL +NULL query I rowsort SELECT - col1 * + col0 * - col0 FROM tab2 @@ -12131,8 +12273,15 @@ SELECT col2 * ( col0 ) FROM tab2 WHERE NOT ( + + 92 + 21 ) IS NULL # Datafusion - Expected - 91 # Datafusion - Expected - -96 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col1, col0 AS col1 FROM tab1 +---- +-59 +-68 +-96 +51 +85 +91 query I rowsort SELECT DISTINCT - 6 * + col0 FROM tab0 @@ -13670,8 +13819,15 @@ SELECT - + COUNT ( - - col1 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, + col2 col1 FROM tab2 AS cor0 +---- +23 +40 +46 +58 +64 +75 query II rowsort SELECT ALL - ( col0 ) AS col1, - 56 + - 6 * - col2 AS col0 FROM tab2 @@ -15566,8 +15722,15 @@ SELECT ALL ( 29 ) * - col0 FROM tab2 cor0 # Datafusion - Expected - -5 # Datafusion - Expected - 32 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \+ Int64\(80\) \* Int64\(26\) / cor0\.col0 \+ Int64\(42\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 50 ) + + + 80 * 26 / + col0 + + 42 AS col0, - col1 col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +14 +16 +32 query I rowsort SELECT col2 + + - 73 AS col2 FROM tab1 @@ -16435,8 +16598,15 @@ SELECT COUNT ( + - col0 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -60 # Datafusion - Expected - -99 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col2 AS col0, - 60 col0 FROM tab0 AS cor0 +---- +-10 +-47 +-60 +-60 +-60 +-99 query I rowsort SELECT ALL 31 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 @@ -16844,8 +17014,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-26\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 74 / + - COUNT ( * ) - - - 26 AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +-50 +3 query I rowsort SELECT DISTINCT + ( ( ( - col1 ) ) ) FROM tab0 AS cor0 @@ -18257,8 +18430,15 @@ SELECT ALL - 38 - 5 col0, + SUM ( - + 79 ) AS col1 FROM tab1 AS cor0 CROSS JOIN # Datafusion - Expected - -40 # Datafusion - Expected - -29 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 29 AS col1, - col2 AS col1 FROM tab2 +---- +-23 +-29 +-29 +-29 +-40 +-58 query I rowsort label-3002 SELECT DISTINCT - col0 * - CAST ( - col1 AS INTEGER ) * - col2 FROM tab0 @@ -18405,8 +18585,11 @@ SELECT col0 AS col0 FROM tab2 cor0 WHERE NOT col2 IS NOT NULL # 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\(68\) AS col1" at position 0 and "\(\- min\(Int64\(45\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 68 AS col1, - MIN ( + 45 ) col1 FROM tab0 AS cor0 +---- +-45 +68 query I rowsort label-3026 SELECT col2 / - col0 * 13 + + col1 FROM tab2 AS cor0 WHERE NOT col0 * + + 87 + - CAST ( + 68 AS INTEGER ) IS NULL @@ -18423,8 +18606,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(\-54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - COUNT ( * ) AS col2, - 54 AS col2 FROM tab2 AS cor0 +---- +-54 +3 query I rowsort label-3029 SELECT - ( + - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 @@ -18606,8 +18792,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE + 82 IS NOT NULL # Datafusion - Expected - -77 # Datafusion - Expected - 75 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "\(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, - col1 AS col1 FROM tab2 +---- +-51 +-67 +-77 +46 +64 +75 query III rowsort SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( + 89, + 67, + 24 ) @@ -20175,8 +20368,15 @@ NULL # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 FROM tab1 cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-3310 SELECT - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 @@ -20842,8 +21042,15 @@ SELECT + ( + - col0 ) + col2 FROM tab1 AS cor0 # Datafusion - Expected - 753571 # Datafusion - Expected - -96 # Datafusion - Expected - 132651 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "\(\- cor0\.col0\) \* \(\- cor0\.col0\) \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col2, - col0 * - col0 * + + col0 col2 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +132651 +614125 +753571 query I rowsort SELECT ALL + 33 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 @@ -21151,8 +21358,10 @@ SELECT col2 / + col0, + col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 42b4016665836f115dc8c7dfa494df23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\)" at position 0 and "\(\- tab1\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - ( col1 ), - col1, + + 50 AS col1 FROM tab1 +---- +9 values hashing to 76d04df7fcffa28678705e683d96ad3e query I rowsort label-3475 SELECT 72 * - COUNT ( * ) * - COUNT ( * ) col1 FROM tab1 @@ -21977,8 +22186,15 @@ SELECT + CAST ( + + col2 AS INTEGER ) FROM tab2 # Datafusion - Expected - -32 # Datafusion - Expected - 5025 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* tab2\.col0 AS col0" at position 0 and "Int64\(\-40\) \+ \(\- Int64\(\-8\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * col0 col0, - 40 + - - 8 AS col0 FROM tab2 +---- +-32 +-32 +-32 +2346 +4928 +5025 query I rowsort SELECT DISTINCT - col2 * + + col2 * - 36 AS col2 FROM tab1 AS cor0 WHERE col1 > NULL @@ -22057,8 +22273,15 @@ SELECT + COUNT ( col2 ) AS col2, - COUNT ( * ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 17 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "\(\- \(\- tab1\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 AS col1, - ( + - col1 ) AS col1 FROM tab1 +---- +14 +17 +17 +17 +47 +5 query II rowsort label-3628 SELECT ALL CAST ( NULL AS INTEGER ) + - - COUNT ( col0 ), COUNT ( * ) col1 FROM tab2 @@ -22410,8 +22633,15 @@ SELECT DISTINCT COUNT ( * ) + - 34 FROM tab0 # Datafusion - Expected - 64 # Datafusion - Expected - 3961 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ tab2\.col2 \* \(\- \(\- tab2\.col1\)\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 + + ( + + col2 ) * - ( - col1 ) AS col2, col0 AS col2 FROM tab2 +---- +1219 +3144 +3961 +46 +64 +75 query I rowsort SELECT + col0 FROM tab1 cor0 WHERE NOT - col2 IS NULL @@ -24197,8 +24427,15 @@ SELECT - - 93 * + + col2 AS col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND # Datafusion - Expected - 28 # Datafusion - Expected - -50 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col2" at position 0 and "cor0\.col0 \+ Int64\(\-36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 50 AS col2, col0 + - 36 AS col2 FROM tab2 AS cor0 +---- +-50 +-50 +-50 +10 +28 +39 query I rowsort label-3966 SELECT ALL + - ( + ( + SUM ( + col1 ) ) ) AS col1 FROM tab1 AS cor0 @@ -24222,8 +24459,11 @@ SELECT DISTINCT - col2 col2 FROM tab1 WHERE NOT NULL IS NOT NULL OR NULL <= + co # Datafusion - Datafusion expected results: # Datafusion - Expected - -279 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- Int64\(93\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + SUM ( - + 93 ) AS col0, COUNT ( * ) AS col0 FROM tab2 +---- +-279 +3 query III rowsort SELECT * FROM tab0 WHERE NOT - - col1 NOT BETWEEN ( - ( + - ( + - col1 ) ) ) + + col2 AND + + col0 @@ -24443,8 +24683,15 @@ SELECT DISTINCT + MAX ( col2 ) FROM tab2 # Datafusion - Expected - -87 # Datafusion - Expected - -97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, - col0 AS col2 FROM tab0 +---- +-15 +-15 +-87 +-87 +-97 +-97 query I rowsort label-4004 SELECT COUNT ( * ) * + 33 AS col0 FROM tab0 @@ -24479,8 +24726,15 @@ SELECT DISTINCT + COUNT ( * ), COUNT ( * ) AS col0 FROM tab1 # Datafusion - Expected - -3723 # Datafusion - Expected - 96 # Datafusion - Expected - -2083 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(8\) \+ Int64\(41\) \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, 8 + 41 * + - ( col0 ) col0 FROM tab1 AS cor0 +---- +-2083 +-3477 +-3723 +59 +68 +96 query I rowsort label-4009 SELECT MAX ( - 35 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 @@ -24585,8 +24839,15 @@ SELECT - MIN ( DISTINCT - 80 ) FROM tab0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 col1, col0 AS col1 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -25190,8 +25451,11 @@ SELECT DISTINCT + COUNT ( * ) + + - 33 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "sum\(cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + COUNT ( * ) AS col0, + SUM ( + col1 ) AS col0 FROM tab1 AS cor0 +---- +3 +66 query III rowsort SELECT * FROM tab2 AS cor0 WHERE col0 <= - 32 * - 73 * col1 * - + ( - col2 ) + col0 + - col0 @@ -25337,8 +25601,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(82\) \- Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 col0, COUNT ( * ) / + 82 - 92 AS col0 FROM tab2 AS cor0 +---- +-92 +64 query I rowsort SELECT - 48 * col0 AS col2 FROM tab2 cor0 @@ -25518,8 +25785,15 @@ NULL # Datafusion - Expected - -47 # Datafusion - Expected - 96 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "\(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, - col1 AS col0 FROM tab1 WHERE NOT + + col1 IS NULL +---- +-14 +-47 +-5 +59 +68 +96 query III rowsort SELECT * FROM tab1 WHERE NOT ( NOT col1 IS NULL ) @@ -25747,8 +26021,15 @@ SELECT DISTINCT + 35, col1 FROM tab2 # Datafusion - Expected - -4450 # Datafusion - Expected - -77 # Datafusion - Expected - -5890 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(39\) \- cor0\.col1 \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, 39 - + col1 * col1 AS col0 FROM tab2 cor0 +---- +-2562 +-4450 +-51 +-5890 +-67 +-77 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col0 - + col1 AND col0 @@ -25789,8 +26070,15 @@ NULL # Datafusion - Expected - 0 # Datafusion - Expected - 3003 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* Int64\(39\) AS col2" at position 0 and "tab2\.col1 \+ \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 * + 39 AS col2, + col1 + - col1 AS col2 FROM tab2 +---- +0 +0 +0 +1989 +2613 +3003 query I rowsort label-4223 SELECT ALL - ( + + COUNT ( * ) ) * + 26 + MIN ( DISTINCT - 87 ) FROM tab1 @@ -26101,8 +26389,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) FROM tab2 AS cor0 +---- +-3 +-3 query I rowsort SELECT ( + ( - col2 ) ) AS col0 FROM tab2 @@ -26468,8 +26759,15 @@ SELECT ALL col2 AS col0 FROM tab0 WHERE + ( - CAST ( NULL AS INTEGER ) ) * - 21 # Datafusion - Expected - 136 # Datafusion - Expected - 44 # Datafusion - Expected - 192 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col0" at position 0 and "cor0\.col2 \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 AS col0, + col2 + + + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL +---- +118 +136 +192 +44 +44 +44 query I rowsort label-4337 SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) >= col0 * + ( - col1 ) @@ -26832,8 +27130,15 @@ SELECT 39, + col1 col1 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, + ( + col2 ) FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query II rowsort label-4399 SELECT - col0 AS col0, col2 * + + col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 @@ -26925,8 +27230,15 @@ SELECT ALL col1 / 3 AS col2 FROM tab0 cor0 WHERE NOT - col1 * - 34 <> + 36 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col1, + col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-4413 SELECT + 47 * - COUNT ( * ) AS col1 FROM tab2 AS cor0 @@ -27136,8 +27448,15 @@ SELECT ALL - 98 / - col2 FROM tab0 AS cor0 WHERE NOT - 86 IS NOT NULL # Datafusion - Expected - -4950 # Datafusion - Expected - 77 # Datafusion - Expected - -4864 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "cor0\.col0 \+ cor0\.col0 \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 AS col1, + col0 + + col0 * - col1 AS col1 FROM tab2 AS cor0 +---- +-2300 +-4864 +-4950 +51 +67 +77 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT 16 + - 59 IS NOT NULL @@ -27653,8 +27972,15 @@ SELECT ALL + - col2 - - ( + + col1 ) - + 74 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 61 # Datafusion - Expected - -58 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 col2, + 61 AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +61 +61 +61 query I rowsort label-4532 SELECT + - col0 / 34 + + 87 - + 45 FROM tab0 AS cor0 @@ -27730,8 +28056,10 @@ SELECT col2 + 9 AS col0, - col0 * col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 4b8c73c5182e1ea8577779e7de825dc7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 1 and "\(\- tab2\.col2\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col1 AS col1, 13 AS col2, - + col2 col2 FROM tab2 +---- +9 values hashing to 5d0b6a99467015336c774c93a615ecb5 query II rowsort SELECT col0 * + col0 AS col1, 67 FROM tab2 AS cor0 @@ -28271,8 +28599,15 @@ NULL # Datafusion - Expected - -15 # Datafusion - Expected - -99 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - col2 ) AS col0, - col0 AS col0 FROM tab0 AS cor0 +---- +-10 +-15 +-47 +-87 +-97 +-99 query III rowsort SELECT * FROM tab0 AS cor0 WHERE ( + 52 ) / + col1 + col1 IS NULL @@ -28354,8 +28689,15 @@ SELECT ALL - 43, col0 AS col2 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, + col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT ( + 94 ) col1 FROM tab1 @@ -28672,8 +29014,15 @@ SELECT * FROM tab2 AS cor0 WHERE - col2 > col1 # Datafusion - Expected - 548 # Datafusion - Expected - 87 # Datafusion - Expected - 576 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col2" at position 0 and "Int64\(12\) \* Int64\(40\) \+ \(\- \(\- tab1\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 col2, 12 * + + 40 + - - col2 AS col2 FROM tab1 +---- +539 +548 +576 +87 +87 +87 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -28704,8 +29053,11 @@ SELECT ALL + 79 * - col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) / Int64\(43\) \+ Int64\(\-1\) \* Int64\(68\) \- 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 II valuesort SELECT DISTINCT - 70 / 43 + - 1 * 68 - + 7 AS col1, - 24 AS col1 FROM tab2 AS cor0 +---- +-24 +-76 query I rowsort label-4698 SELECT DISTINCT + - 24 * + - ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0 @@ -29527,8 +29879,15 @@ NULL # Datafusion - Expected - -68 # Datafusion - Expected - -96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col0" at position 0 and "\(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, - col2 AS col0 FROM tab1 +---- +-59 +-59 +-68 +-68 +-96 +-96 query I rowsort label-4837 SELECT ALL COUNT ( * ) * - - COUNT ( * ) * + + ( - - COUNT ( * ) ) + COUNT ( * ) + - 93 * CAST ( NULL AS INTEGER ) FROM tab0 @@ -29585,8 +29944,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 <> + 29 # Datafusion - Expected - 91 # Datafusion - Expected - 8300 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \+ \(\- tab1\.col0\) \* \(\- \(\- \(\- tab1\.col0\)\)\) AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 19 + - col0 * - - ( + - col0 ) col2, 91 AS col2 FROM tab1 +---- +2620 +7244 +8300 +91 +91 +91 query II rowsort SELECT + col2 + + 19, col0 FROM tab1 @@ -29910,8 +30276,15 @@ NULL # Datafusion - Expected - 43 # Datafusion - Expected - 6123 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \* cor0\.col0 \- Int64\(65\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 * + col0 - + 65 AS col0, + 43 col0 FROM tab1 AS cor0 +---- +43 +43 +43 +4831 +4950 +6123 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT ( - 11 ) IN ( 96 ) ) @@ -30392,8 +30765,11 @@ SELECT ALL col1, 48 FROM tab1 cor0 WHERE NOT + 15 > + col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(63\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) + + + 63 * + - COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +-3 +NULL query II rowsort label-4975 SELECT ALL + + 71 * - - COUNT ( + 26 ) AS col1, 36 AS col0 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) >= + + 74 @@ -30529,8 +30905,15 @@ NULL # Datafusion - Expected - -47 # Datafusion - Expected - 5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, - col1 AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +14 +47 +5 query I rowsort SELECT DISTINCT - + 96 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 @@ -31144,8 +31527,11 @@ SELECT MAX ( - col1 ) + - COUNT ( * ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -103 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- cor0\.col1\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( SUM ( + ( - col1 ) ) ) AS col1, CAST ( NULL AS INTEGER ) * - 47 AS col1 FROM tab0 AS cor0 +---- +-103 +NULL query II rowsort SELECT ALL ( - 74 ) col1, + col2 + + col2 col0 FROM tab1 AS cor0 @@ -32991,8 +33377,11 @@ SELECT ALL SUM ( - + 78 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ \(\- \(\- max\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\)\)\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 4 + - - MAX ( - - CAST ( NULL AS INTEGER ) ) AS col0, + 41 AS col0 FROM tab0, tab0 AS cor0 +---- +41 +NULL query III rowsort SELECT * FROM tab0 WHERE NOT 51 <= col0 * - col0 @@ -33476,8 +33865,11 @@ SELECT DISTINCT + 45 * - + col1 * + 84 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -104 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \* Int64\(4\) AS col2" at position 0 and "min\(tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 26 * 4 AS col2, MIN ( ( + col1 ) ) AS col2 FROM tab1 +---- +-104 +5 query I rowsort label-5488 SELECT ALL - CAST ( NULL AS INTEGER ) / - col1 / + 53 AS col1 FROM tab1 @@ -33593,8 +33985,15 @@ SELECT col0 * + col2 AS col0, col0 FROM tab0 AS cor0 # Datafusion - Expected - 120 # Datafusion - Expected - 58 # Datafusion - Expected - 110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col1 \+ Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, ( col1 ) + 43 col0 FROM tab2 cor0 +---- +110 +120 +23 +40 +58 +94 query I rowsort SELECT + ( + ( 74 ) ) AS col2 FROM tab2 @@ -34073,8 +34472,15 @@ SELECT ALL col0, col1 - - - 71 FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col0, col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-5583 SELECT DISTINCT - CAST ( - + ( + 30 ) AS INTEGER ) FROM tab0 @@ -34100,8 +34506,15 @@ NULL # Datafusion - Expected - -47 # Datafusion - Expected - -5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1, - col1 FROM tab1 cor0 +---- +-14 +-14 +-47 +-47 +-5 +-5 query I rowsort label-5587 SELECT + 79 * - col0 * CAST ( - col0 AS INTEGER ) + 87 * col0 FROM tab0 AS cor0 @@ -34864,8 +35277,15 @@ SELECT DISTINCT CAST ( + 52 AS INTEGER ) FROM tab0 # Datafusion - Expected - 65 # Datafusion - Expected - -99 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, + 65 AS col1 FROM tab0 +---- +-10 +-47 +-99 +65 +65 +65 query I rowsort SELECT - ( - - col1 ) col2 FROM tab0 @@ -35074,8 +35494,11 @@ SELECT ALL - CAST ( NULL AS INTEGER ) col0 FROM tab2 WHERE - - col2 NOT IN ( + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(DISTINCT tab0\.col1\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, + ( - + COUNT ( DISTINCT col1 ) ) + + + COUNT ( * ) + + 9 col0 FROM tab0 +---- +3 +9 query I rowsort SELECT ALL - ( col2 ) AS col0 FROM tab1 WHERE NOT ( + - 59 * 32 ) IS NOT NULL @@ -36001,8 +36424,15 @@ SELECT + ( - 14 ) FROM tab0 # Datafusion - Expected - -87 # Datafusion - Expected - -97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0, - col0 FROM tab0 cor0 +---- +-15 +-15 +-87 +-87 +-97 +-97 query III rowsort SELECT * FROM tab2 WHERE NOT col1 + col0 <= - 68 @@ -36185,8 +36615,11 @@ SELECT + 79 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) / Int64\(\-10\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT AVG ( ALL - - CAST ( NULL AS INTEGER ) ) / + - 10 AS col1, + 93 AS col1 FROM tab0 +---- +93 +NULL query II rowsort SELECT + 67, col1 AS col0 FROM tab0 cor0 @@ -36887,8 +37320,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 + - COUNT ( * ) col0, - 49 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL +---- +-49 +66 query II rowsort SELECT + col0 * + col1 AS col2, col0 + col2 * col2 FROM tab1 @@ -36936,8 +37372,11 @@ SELECT 73 FROM tab2, tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 67 AS col2 FROM tab1 +---- +3 +67 query I rowsort SELECT ALL - col2 + + ( + ( - col1 ) ) FROM tab1 AS cor0 @@ -37191,8 +37630,15 @@ SELECT - col2 * + + 71 / 1 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -3712 # Datafusion - Expected - -75 # Datafusion - Expected - -4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "\(\- cor0\.col0\) \* Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col0, - col0 * + + 58 AS col0 FROM tab2 cor0 +---- +-2668 +-3712 +-4350 +-46 +-64 +-75 query I rowsort SELECT ALL + 22 + col2 * - 56 FROM tab1 AS cor0 @@ -37956,8 +38402,15 @@ SELECT ALL + 81, col1 col1 FROM tab0 WHERE NULL IS NULL # Datafusion - Expected - 1 # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / Int64\(6\) \* \(\- tab1\.col1\) AS col2" at position 0 and "Int64\(87\) / tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) / + + 6 * + - col1 col2, + 87 / + col0 AS col2 FROM tab1 +---- +0 +1 +1 +NULL +NULL +NULL query I rowsort label-6201 SELECT + 31 / - + ( + CAST ( + CAST ( + - SUM ( + col1 ) AS INTEGER ) AS INTEGER ) ) col0 FROM tab2 @@ -38041,8 +38494,9 @@ SELECT + CAST ( NULL AS INTEGER ) + col0 FROM tab1 AS cor0 WHERE NOT - col2 * - ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, col1 FROM tab1 AS cor0 WHERE NULL = NULL +---- query I rowsort label-6214 SELECT DISTINCT - - col0 / col0 / 25 FROM tab1 AS cor0 @@ -38685,8 +39139,11 @@ SELECT DISTINCT * FROM tab0 WHERE ( NULL ) >= 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 56700 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(tab2\.col2\)\) \* Int64\(\-6\) \* Int64\(70\) \* \(\- \(\- Int64\(15\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 84 AS col1, COUNT ( * ) + - COUNT ( col2 ) * - 6 * 70 * - - ( + 15 ) * + COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab2 +---- +56700 +84 query I rowsort label-6319 SELECT ALL + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL < - ( - col1 ) @@ -38731,8 +39188,11 @@ SELECT - SUM ( - 72 ) / + 81 + - 39 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1, - 47 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 +---- +-47 +NULL query I rowsort SELECT ALL + 51 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 @@ -39445,8 +39905,15 @@ SELECT DISTINCT - 87 + col0 * + col0 FROM tab0 # Datafusion - Expected - -1 # Datafusion - Expected - -75 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "\(\- tab2\.col0\) / tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col0, - col0 / + col2 AS col0 FROM tab2 +---- +-1 +-1 +-2 +-46 +-64 +-75 query I rowsort SELECT - ( + ( 81 ) ) FROM tab1 @@ -39558,8 +40025,9 @@ SELECT ALL * FROM tab2 WHERE NOT + + col0 + col0 <> 95 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col1" at position 0 and "CAST\(NULL AS Float64\) \* \(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - + col1 AS col1, CAST ( NULL AS FLOAT8 ) * - col0 AS col1 FROM tab1 WHERE NOT NULL IS NULL +---- query I rowsort label-6463 SELECT - - col2 + CAST ( - 45 AS INTEGER ) FROM tab2 WHERE NOT + 72 IS NULL @@ -39943,8 +40411,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) - - 61 col1, - COUNT ( * ) AS col1 FROM tab0 +---- +-3 +58 query I rowsort SELECT + col1 - + - 41 FROM tab0 @@ -40667,8 +41138,15 @@ SELECT + col0, + ( + - 14 ) col1 FROM tab2 AS cor0 # Datafusion - Expected - 18 # Datafusion - Expected - 0 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 / tab2\.col1 AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 / + col1 AS col0, 18 AS col0 FROM tab2 +---- +0 +0 +0 +18 +18 +18 query III rowsort SELECT ALL * FROM tab1 WHERE NOT ( + col2 - + col1 ) IS NOT NULL @@ -41319,8 +41797,15 @@ SELECT - col2 + - col0 + - 80 * + 36 + + - col0 FROM tab0 AS cor0 # Datafusion - Expected - 5 # Datafusion - Expected - 70 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ cor0\.col1 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 56 + + + col1 col2, col1 AS col2 FROM tab1 AS cor0 +---- +103 +14 +47 +5 +61 +70 query I rowsort SELECT DISTINCT - col1 + + + 8 FROM tab1 @@ -41348,8 +41833,9 @@ SELECT ALL col1 + + ( - col2 ) + - col0 FROM tab0 19 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 1 and "tab1\.col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + col1 * - 12 AS col2, col0, + + col0 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN - 56 + + col2 - 21 * - - col1 AND ( + 33 ) +---- query I rowsort SELECT col0 + - - 51 * - col0 FROM tab2 @@ -41778,8 +42264,15 @@ SELECT DISTINCT + 51 FROM tab0 AS cor0 WHERE NOT col2 > - CAST ( - + 61 AS INTEG # Datafusion - Expected - 40 # Datafusion - Expected - 51 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 51 AS col0, col2 AS col0 FROM tab2 AS cor0 +---- +23 +40 +51 +51 +51 +58 query III rowsort SELECT * FROM tab2 WHERE NOT col0 * + col2 * + col2 IS NOT NULL @@ -42263,8 +42756,11 @@ SELECT ALL MAX ( - - col1 ) AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab1 +---- +3 +3 query II rowsort SELECT + 58 * + ( 43 ) + - col1, col1 AS col2 FROM tab1 AS cor0 @@ -42522,8 +43018,15 @@ SELECT DISTINCT ( - + 7 ) FROM tab0 # Datafusion - Expected - -43 # Datafusion - Expected - -58 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col0" at position 0 and "Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - + col2 ) col0, - 43 col0 FROM tab2 +---- +-23 +-40 +-43 +-43 +-43 +-58 query I rowsort SELECT ALL - + ( + 95 ) * - 79 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL @@ -42690,8 +43193,15 @@ SELECT - CAST ( NULL AS INTEGER ) + + + col1 FROM tab0 AS cor0 WHERE NULL IS NOT # Datafusion - Expected - 1600 # Datafusion - Expected - -5025 # Datafusion - Expected - 3364 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \* tab2\.col0 AS col0" at position 0 and "tab2\.col2 \* tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * + col0 AS col0, col2 * col2 AS col0 FROM tab2 +---- +-2346 +-4928 +-5025 +1600 +3364 +529 query I rowsort SELECT ALL - 8 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 @@ -43592,8 +44102,15 @@ SELECT - col2 - - - 81 * + col2 * - col1 * - + col2 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 75 # Datafusion - Expected - -83582 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col2\) \* Int64\(79\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * - + col2 * + ( 79 ) AS col2, col0 AS col2 FROM tab2 AS cor0 +---- +-202240 +-343650 +-83582 +46 +64 +75 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 * col1 IS NOT NULL @@ -44644,8 +45161,15 @@ NULL # Datafusion - Expected - 0 # Datafusion - Expected - 96 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "Int64\(25\) / \(\- tab1\.col0\) \* tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, 25 / - col0 * + col2 AS col1 FROM tab1 +---- +0 +0 +0 +59 +68 +96 query I rowsort SELECT DISTINCT + 30 + - 84 AS col0 FROM tab0 @@ -45397,8 +45921,11 @@ SELECT DISTINCT COUNT ( * ) + CAST ( COUNT ( * ) AS INTEGER ) - - 72 col0 FROM t # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / sum\(Int64\(66\)\) AS col0" at position 0 and "count\(Int64\(22\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) + - COUNT ( * ) / + SUM ( ALL + 66 ) AS col0, + COUNT ( 22 ) col0 FROM tab1 +---- +3 +NULL query I rowsort SELECT DISTINCT + 91 + + col2 FROM tab0 @@ -45456,8 +45983,15 @@ SELECT - ( + - 85 ) FROM tab0 AS cor0 # Datafusion - Expected - -13 # Datafusion - Expected - 6 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) / tab1\.col1 AS col1" at position 0 and "tab1\.col0 \+ Int64\(\-64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 32 / + col1 AS col1, col0 + - 64 AS col1 FROM tab1 +---- +-13 +0 +2 +21 +27 +6 query I rowsort SELECT - col1 FROM tab1 WHERE NOT - - 13 * + 17 * + 27 IS NULL @@ -45494,8 +46028,11 @@ SELECT ALL * FROM tab2 WHERE NOT + col1 * - 18 BETWEEN - col2 AND 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, 79 col1 FROM tab2 +---- +3 +79 query III rowsort SELECT * FROM tab1 WHERE NOT col2 <= - col1 @@ -47436,8 +47973,15 @@ SELECT ALL + - col0 / - 15 FROM tab2 AS cor0 # Datafusion - Expected - -21 # Datafusion - Expected - -81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1, ( - + col1 ) FROM tab0 AS cor0 +---- +-1 +-1 +-21 +-21 +-81 +-81 query I rowsort SELECT ALL 66 * + - col2 FROM tab1 @@ -48104,8 +48648,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ), ( + COUNT ( * ) ) FROM tab2 cor0 +---- +3 +3 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( + col0 ) ) * 40 IS NULL @@ -48203,8 +48750,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* max\(tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( - - ( - - col1 ) ) AS col2, ( + + COUNT ( * ) ) * MAX ( + col1 ) col2 FROM tab1 +---- +-3 +141 query I rowsort SELECT DISTINCT + - 70 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -50704,8 +51254,10 @@ SELECT - 73 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 7a0523b95c9c867a4dd8e11ea5632df8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-43\)\) AS col0" at position 0 and "cor0\.col0 \* Int64\(4\) \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - 43 AS col0, col0 * 4 + col1 AS col0, - col2 FROM tab0 AS cor0 +---- +9 values hashing to 5d6cee1a8e5e7aacfe0b33cddc614c7e query I rowsort SELECT DISTINCT + ( 30 ) FROM tab2 AS cor0 @@ -51472,8 +52024,15 @@ SELECT ALL * FROM tab0 WHERE NOT ( - - col0 ) IS NULL # Datafusion - Expected - 88 # Datafusion - Expected - 0 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ \(\- tab0\.col1\) AS col1" at position 0 and "tab0\.col0 \+ \(\- Int64\(\-96\)\) / tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + - + col1 AS col1, col0 + - - 96 / col0 AS col1 FROM tab0 +---- +0 +0 +0 +21 +88 +97 query I rowsort SELECT ALL + col0 * - - col1 * - col0 col2 FROM tab2 @@ -52232,8 +52791,15 @@ SELECT + CAST ( - 91 AS INTEGER ) AS col1 FROM tab2 # Datafusion - Expected - 2 # Datafusion - Expected - 58 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(92\) / cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, 92 / + col2 AS col1 FROM tab2 AS cor0 +---- +1 +2 +23 +4 +40 +58 query I rowsort SELECT ALL - 26 * col2 FROM tab1 AS cor0 @@ -52407,8 +52973,15 @@ SELECT ALL COUNT ( 52 ) FROM tab2 cor0 CROSS JOIN tab0 cor1 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col2, col2 FROM tab0 cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT - ( + + col1 ) * col2 AS col1 FROM tab2 cor0 @@ -52905,8 +53478,11 @@ 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\(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\. +query II valuesort SELECT ALL 66 AS col0, ( + COUNT ( * ) ) + 61 + - COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +61 +66 query I rowsort SELECT DISTINCT + + 30 col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL @@ -53609,8 +54185,15 @@ SELECT - + ( + + 25 ) FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 \- \(\- CAST\(NULL AS Int32\)\) \+ cor0\.col0 \+ \(\- Int64\(72\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col2, + col1 - - CAST ( NULL AS INTEGER ) + + col0 + - + 72 AS col2 FROM tab0 AS cor0 +---- +1 +21 +81 +NULL +NULL +NULL query I rowsort SELECT ALL - col2 + - - 84 col1 FROM tab2 @@ -54282,8 +54865,15 @@ SELECT + ( + + 59 ) / - 64 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, + col1 AS col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT DISTINCT col0 - 43 AS col0 FROM tab1 cor0 WHERE + 7 - + ( 43 ) * + + col1 NOT IN ( ( col0 ) + + 27 ) @@ -54658,8 +55248,15 @@ SELECT ALL - 47 * COUNT ( * ) + ( + 39 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 80 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 80 col1, col2 AS col1 FROM tab2 AS cor0 +---- +23 +40 +58 +80 +80 +80 query I rowsort SELECT ALL - col0 * ( col2 ) AS col1 FROM tab1 @@ -54849,8 +55446,15 @@ SELECT - 38 * - + col1 AS col1 FROM tab0 # Datafusion - Expected - 23 # Datafusion - Expected - 5025 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* tab2\.col0 AS col1" at position 0 and "CAST\(CAST\(\(\- Int64\(17\)\) AS Int32\) AS Int32\) \+ tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * col0 AS col1, + CAST ( + CAST ( - + 17 AS INTEGER ) AS INTEGER ) + col2 col1 FROM tab2 +---- +23 +2346 +41 +4928 +5025 +6 query I rowsort SELECT col1 * + - col0 AS col2 FROM tab1 @@ -54880,8 +55484,15 @@ SELECT ALL + 94 AS col0 FROM tab1 AS cor0 WHERE ( - - ( + - ( + col1 ) ) ) BETWE # Datafusion - Expected - 74 # Datafusion - Expected - -160 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \* Int64\(\-40\) AS col1" at position 0 and "Int64\(23\) \+ tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 4 * + - 40 AS col1, + 23 + col1 AS col1 FROM tab2 +---- +-160 +-160 +-160 +100 +74 +90 query I rowsort SELECT ALL + 44 FROM tab0 WHERE NOT NULL >= - + col1 @@ -55110,8 +55721,15 @@ SELECT DISTINCT SUM ( ALL + - 7 ) AS col2 FROM tab0 # Datafusion - Expected - -26 # Datafusion - Expected - 4430 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \+ tab2\.col2 \* tab2\.col0 AS col0" at position 0 and "Int64\(1\) \+ \(\- Int64\(27\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 80 + col2 * col0 AS col0, 1 + - + 27 AS col0 FROM tab2 +---- +-26 +-26 +-26 +1138 +2640 +4430 query I rowsort label-9061 SELECT + COUNT ( - - col1 ) FROM tab2 @@ -56500,8 +57118,11 @@ SELECT * FROM tab0 WHERE + - col2 / - ( - + 64 ) > col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6863 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* Int64\(98\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(5\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 70 * 98 + COUNT ( * ) AS col1, - COUNT ( + 5 ) AS col1 FROM tab2 +---- +-3 +6863 query I rowsort SELECT ALL - ( + 56 ) + + 73 AS col1 FROM tab0 @@ -56994,8 +57615,15 @@ SELECT col0 - 7 + - col0, - 39 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 57 # Datafusion - Expected - 99 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, + 57 col1 FROM tab0 AS cor0 +---- +10 +47 +57 +57 +57 +99 query I rowsort SELECT 51 - - col2 - + 91 + 62 FROM tab0 AS cor0 @@ -57220,8 +57848,11 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 89, col1 + + col0 * col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- \(\- CAST\(NULL AS Int32\)\)\) AS Int32\)\) AS col0" at position 0 and "Int64\(41\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, + 41 + - COUNT ( * ) + 41 col0 FROM tab2 cor0 +---- +79 +NULL query I rowsort SELECT + 17 * + 84 + 92 + - - col0 + - - ( - col2 ) * col2 FROM tab2 AS cor0 @@ -58348,8 +58979,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT ( - ( - 17 ) ) IS NOT NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0, + col0 AS col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query II rowsort SELECT DISTINCT - col0, + col2 * - + col1 AS col2 FROM tab2 AS cor0 @@ -58551,8 +59189,15 @@ SELECT DISTINCT - 25 / + COUNT ( * ) AS col1 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, + col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query II rowsort SELECT - - 80 AS col2, 10 - + 71 AS col1 FROM tab0 AS cor0 @@ -58872,8 +59517,15 @@ SELECT DISTINCT - COUNT ( * ) + 58 / + + 61 AS col1 FROM tab1 # Datafusion - Expected - -9306 # Datafusion - Expected - 0 # Datafusion - Expected - -940 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \+ tab0\.col2 AS col1" at position 0 and "tab0\.col2 \* \(\- Int64\(94\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 + col2 AS col1, + col2 * + - ( + 94 ) AS col1 FROM tab0 +---- +-4418 +-9306 +-940 +0 +0 +0 query III rowsort label-9673 SELECT DISTINCT * FROM tab0 WHERE NOT 87 * - 68 * + CAST ( col0 AS INTEGER ) IS NULL @@ -58998,8 +59650,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1600 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \* Int64\(\-32\) AS col1" at position 0 and "count\(DISTINCT Int64\(97\)\) \+ count\(DISTINCT \(\- \(\- cor0\.col2\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 50 * - 32 col1, + COUNT ( DISTINCT + 97 ) + + + COUNT ( DISTINCT - - col2 ) col1 FROM tab1 AS cor0 +---- +1600 +4 query I rowsort SELECT DISTINCT - - 81 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 @@ -59726,8 +60381,15 @@ SELECT ALL + col0 + + ( - ( col2 ) ) FROM tab2 # Datafusion - Expected - -64 # Datafusion - Expected - 95 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 0 and "\(\- CAST\(tab2\.col0 AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 95 AS col1, - CAST ( col0 AS INTEGER ) AS col1 FROM tab2 WHERE NULL IS NULL +---- +-46 +-64 +-75 +95 +95 +95 query III rowsort SELECT ALL * FROM tab0 cor0 WHERE NOT NULL <= 54 @@ -60216,8 +60878,10 @@ SELECT ALL 70 AS col2, COUNT ( * ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 2ea1a7f2cbad584be80a2aefd0458019 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* \(\- tab2\.col0\) \* Int64\(31\) AS col0" at position 1 and "Int64\(\-68\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col1 AS col2, col2 * - col0 * 31 AS col0, - 68 AS col0 FROM tab2 +---- +9 values hashing to 7af8ffa61a41c3dbabddf626c70a3edf query II rowsort SELECT DISTINCT col1, ( - - col1 ) * - col0 AS col0 FROM tab0 @@ -60275,8 +60939,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT + col2 - - - col0 - - - col1 <= NULL # Datafusion - Expected - 97 # Datafusion - Expected - 75 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ Int64\(60\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + 60 AS col1, col0 AS col1 FROM tab0 AS cor0 +---- +147 +15 +157 +75 +87 +97 query II rowsort SELECT + 67 + + - 80, - 55 + + col2 AS col2 FROM tab0 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_83.slt b/data/sqlite/random/aggregates/slt_good_83.slt index 102f631..59c6a77 100644 --- a/data/sqlite/random/aggregates/slt_good_83.slt +++ b/data/sqlite/random/aggregates/slt_good_83.slt @@ -853,8 +853,15 @@ SELECT ALL + COUNT ( * ) + + 21 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor # Datafusion - Expected - NULL # Datafusion - Expected - 18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \- Int64\(20\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( 38 ) - + 20 AS col2, + CAST ( NULL AS INTEGER ) col2 FROM tab0 +---- +18 +18 +18 +NULL +NULL +NULL query I rowsort SELECT + ( + 39 ) FROM tab2 AS cor0 @@ -1036,8 +1043,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT + 30 + 59 IS NOT NULL # Datafusion - Expected - 13 # Datafusion - Expected - -3886 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \* tab2\.col1 AS col1" at position 0 and "tab2\.col1 \+ \(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 * col1 AS col1, col1 + - + col0 col1 FROM tab2 +---- +-1173 +-3080 +-3886 +-8 +13 +5 query I rowsort label-167 SELECT - ( - col2 ) * - col2 + - col2 / + - 54 AS col0 FROM tab1 AS cor0 @@ -1071,8 +1085,15 @@ SELECT - 68 + col2 - col0 * - + col1 FROM tab2 AS cor0 # Datafusion - Expected - 1523 # Datafusion - Expected - 96 # Datafusion - Expected - 15774 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col0 \* cor0\.col2 \+ Int64\(33\) \+ Int64\(\-62\) \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 + - col1 AS col1, + col0 * + col2 + 33 + - 62 * - + col2 AS col1 FROM tab0 AS cor0 +---- +-66 +1523 +15774 +3652 +66 +96 query I rowsort SELECT - col0 + - ( + 90 ) FROM tab0 AS cor0 @@ -1171,8 +1192,15 @@ SELECT - col0 FROM tab1 AS cor0 WHERE ( - col1 ) IS NOT NULL # Datafusion - Expected - 64 # Datafusion - Expected - 0 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / \(\- cor0\.col0\) \* Int64\(94\) AS col0" at position 0 and "CAST\(cor0\.col0 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 / - col0 * 94 AS col0, CAST ( col0 AS INTEGER ) AS col0 FROM tab2 cor0 +---- +0 +0 +0 +46 +64 +75 query I rowsort label-188 SELECT DISTINCT - ( + 47 ) FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) > ( ( col1 ) ) @@ -1475,8 +1503,15 @@ SELECT col1 * + - 62 FROM tab0 cor0 # Datafusion - Expected - 1 # 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 "cor0\.col2 / cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 AS col2, + col2 / ( + col2 ) AS col2 FROM tab2 AS cor0 +---- +-10 +-10 +-10 +1 +1 +1 query II rowsort SELECT - 38, - 80 AS col2 FROM tab2 AS cor0 @@ -1724,8 +1759,15 @@ SELECT ALL col1 * col1 + + - 33, col1 - + col0 + + + 36 + - col0 AS col2 FROM ta # Datafusion - Expected - 5525 # Datafusion - Expected - -290768 # Datafusion - Expected - 5915 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) \* tab1\.col1 \* tab1\.col2 \+ tab1\.col2 AS col1" at position 0 and "tab1\.col0 \* Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 91 * col1 * col2 + col2 AS col1, col0 * + 65 AS col1 FROM tab1 +---- +-122208 +-26786 +-290768 +3315 +5525 +5915 query III rowsort SELECT * FROM tab2 WHERE NOT col0 >= + col0 @@ -2812,8 +2854,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 col2, + ( - COUNT ( * ) ) AS col2 FROM tab2 +---- +-3 +53 query I rowsort label-458 SELECT - 39 / - COUNT ( * ) AS col1 FROM tab1 @@ -3359,8 +3404,15 @@ NULL # Datafusion - Expected - -2560 # Datafusion - Expected - -5612 # Datafusion - Expected - -4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) / \(\- tab2\.col0\) \+ Int64\(12\) \+ tab2\.col0 \* \(\- tab2\.col0\) AS col0" at position 0 and "tab2\.col0 \* \(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 / + - col0 + + 12 + + col0 * - col0 AS col0, col0 * - col2 AS col0 FROM tab2 +---- +-1058 +-2103 +-2560 +-4083 +-4350 +-5612 query I rowsort label-544 SELECT ALL - - col1 / + col2 AS col0 FROM tab1 AS cor0 @@ -3445,8 +3497,15 @@ SELECT + col0 FROM tab2 cor0 WHERE NOT col0 IS NULL # Datafusion - Expected - 44 # Datafusion - Expected - 87 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "cor0\.col0 \+ \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 87 AS col0, col0 + - + col1 AS col0 FROM tab1 AS cor0 +---- +37 +44 +80 +87 +87 +87 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 @@ -3455,8 +3514,15 @@ SELECT ALL 87 AS col0, col0 + - + col1 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -1156 # Datafusion - Expected - -50 # Datafusion - Expected - -1632 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col0" at position 0 and "\(\- cor0\.col2\) \* Int64\(16\) \+ \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 50 AS col0, - col2 * + 16 + - col2 AS col0 FROM tab1 AS cor0 +---- +-1003 +-1156 +-1632 +-50 +-50 +-50 query I rowsort label-557 SELECT ( - + 57 ) / + + col0 * + 4 AS col0 FROM tab0 WHERE NOT + col0 - - 13 < 89 @@ -3989,8 +4055,15 @@ SELECT DISTINCT + col2 / 89 + + + 0 FROM tab0 # Datafusion - Expected - 14 # Datafusion - Expected - 92 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( + 92 ) AS col1, 14 AS col1 FROM tab0 AS cor0 +---- +14 +14 +14 +92 +92 +92 query I rowsort SELECT DISTINCT + 74 col1 FROM tab1 AS cor0 @@ -4626,8 +4699,11 @@ SELECT ALL - + col0 * - + 79 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 160480 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "max\(DISTINCT \(\- cor0\.col2\)\) \* Int64\(32\) \* Int64\(\-85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 4 AS col2, MAX ( DISTINCT - col2 ) * + 32 * - 85 AS col2 FROM tab1 AS cor0 +---- +160480 +4 query II rowsort SELECT DISTINCT col0 AS col0, - col0 * - col0 FROM tab0 @@ -4679,8 +4755,11 @@ SELECT - 17 * + 25 * + COUNT ( * ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + 10 AS col2 FROM tab0 AS cor0 +---- +10 +3 query I rowsort SELECT DISTINCT ( + - col0 ) AS col0 FROM tab0 AS cor0 @@ -4711,8 +4790,15 @@ SELECT col1 * + - col0 + + + col2 AS col2 FROM tab2 # Datafusion - Expected - 39 # Datafusion - Expected - 434 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* Int64\(31\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 * + 31 AS col0, + 39 AS col0 FROM tab1 +---- +1457 +155 +39 +39 +39 +434 query I rowsort SELECT ALL - - 15 / col2 - col2 AS col1 FROM tab0 WHERE NOT 12 / - - ( - - col1 ) + + 20 IS NOT NULL @@ -5650,8 +5736,9 @@ SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col2 * + - col2 IS N 3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col0" at position 1 and "Int64\(55\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + ( ( + CAST ( - - 55 AS INTEGER ) ) ) * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - 98, - 78 AS col0, + 55 AS col0 FROM tab1 AS cor0 WHERE - col2 IS NULL +---- query II rowsort label-927 SELECT col1 * + col0, col1 + + col0 + 90 + - 67 / + CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL = + col1 * col2 @@ -7365,8 +7452,15 @@ SELECT CAST ( 0 AS INTEGER ) AS col1 FROM tab2 # Datafusion - Expected - 0 # Datafusion - Expected - 714 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* \(\- \(\- tab1\.col0\)\) AS col1" at position 0 and "tab1\.col1 \- tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * - - col0 AS col1, col1 - + col1 AS col1 FROM tab1 +---- +0 +0 +0 +425 +4277 +714 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT + + 86 IS NOT NULL @@ -7396,8 +7490,15 @@ SELECT col2 + 25 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - 193 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \+ \(\- Int64\(\-96\)\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + - - 96 col2, ( col1 ) AS col2 FROM tab0 +---- +1 +111 +183 +193 +21 +81 query I rowsort SELECT DISTINCT 81 FROM tab2 AS cor0 WHERE ( + col1 IS NULL ) @@ -8443,8 +8544,15 @@ SELECT DISTINCT - col2 - - col1 + + - 58 FROM tab2 AS cor0 WHERE NULL IS NOT NUL # Datafusion - Expected - -85 # Datafusion - Expected - 6188 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 * col0 AS col2, - col0 AS col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +4896 +5015 +6188 query I rowsort SELECT ALL 33 * + 89 col1 FROM tab0 @@ -8730,8 +8838,11 @@ SELECT DISTINCT - 86 * - + 47 + - 49 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(DISTINCT CAST\(NULL AS Float64\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, COUNT ( DISTINCT + CAST ( NULL AS FLOAT8 ) ) + COUNT ( * ) AS col0 FROM tab0, tab2 AS cor0 +---- +9 +9 query II rowsort SELECT ( + - 14 ) AS col0, 97 FROM tab1 @@ -8930,8 +9041,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 55 AS col0, 90 * - + COUNT ( * ) col0 FROM tab2 AS cor0 +---- +-270 +-55 query II rowsort SELECT DISTINCT + col1 AS col1, col1 * col0 FROM tab1 AS cor0 @@ -9061,8 +9175,9 @@ SELECT ALL + MAX ( ALL + - col2 ) + + COUNT ( * ) * + MIN ( + 49 ) FROM tab2 AS NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col2\) \* \(\- cor0\.col0\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 * - col2 AS col0, ( - col2 ) * - col0 * col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( col0 ) * col0 * + col0 + 18 <> NULL +---- query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NULL > col1 @@ -9199,8 +9314,15 @@ SELECT DISTINCT * FROM tab1 WHERE + 8 / + col0 IS NOT NULL # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, + col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT ALL + ( + + ( col1 ) ) AS col2 FROM tab0 AS cor0 @@ -9451,8 +9573,15 @@ SELECT ALL COUNT ( DISTINCT - + col0 ) col0 FROM tab1 # Datafusion - Expected - -108 # Datafusion - Expected - 97 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "\(\- tab0\.col1\) \+ \(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, - col1 + - + col0 col1 FROM tab0 +---- +-108 +-96 +-98 +15 +87 +97 query I rowsort label-1544 SELECT + 55 / col0 AS col1 FROM tab2 @@ -9799,8 +9928,11 @@ SELECT + col2 * + col1, 3 * - col0 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 43 -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\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MAX ( - col0 ) AS col1, + 43 AS col1 FROM tab2 AS cor0 +---- +43 +46 query I rowsort SELECT DISTINCT - col0 * + + 88 AS col2 FROM tab0 AS cor0 @@ -10923,8 +11055,15 @@ SELECT + col0 AS col1, - col0 + col2 AS col0 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 96 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "Int64\(1\) \* tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, 1 * + + col1 AS col1 FROM tab1 +---- +14 +47 +5 +59 +68 +96 query II rowsort label-1784 SELECT DISTINCT + + 94 AS col0, col2 / + + col0 FROM tab1 AS cor0 @@ -12086,8 +12225,15 @@ SELECT DISTINCT - 35 / + col1 FROM tab2 AS cor0 # Datafusion - Expected - 10 # Datafusion - Expected - 97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, + col2 AS col1 FROM tab0 AS cor0 +---- +10 +15 +47 +87 +97 +99 query II rowsort label-1982 SELECT - 47 / - col1 AS col1, col0 AS col2 FROM tab2 @@ -13150,8 +13296,15 @@ SELECT ALL - 75, + ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col1, col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT col1 AS col2 FROM tab1 WHERE col2 IN ( - + 17, - col1, + + 56 ) AND NOT 78 + - col2 IS NOT NULL @@ -14615,8 +14768,15 @@ SELECT DISTINCT COUNT ( * ) * SUM ( col0 ) col2 FROM tab1 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 0 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 0 * + col0 AS col1, col2 AS col1 FROM tab0 AS cor0 +---- +0 +0 +0 +10 +47 +99 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -14979,8 +15139,15 @@ SELECT ALL + CAST ( + MAX ( + 98 ) AS INTEGER ) AS col0 FROM tab0 # Datafusion - Expected - 389389 # Datafusion - Expected - 714 # Datafusion - Expected - 36516 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* tab1\.col1 AS col1" at position 0 and "tab1\.col0 \* tab1\.col1 \* tab1\.col0 \+ tab1\.col0 \+ \(\- \(\- tab1\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * + col1 col1, col0 * + + col1 * + col0 + + col0 + - - col0 AS col1 FROM tab1 +---- +36295 +36516 +389389 +425 +4277 +714 query I rowsort label-2456 SELECT ALL + 99 * - + COUNT ( * ) FROM tab2 AS cor0 @@ -15888,8 +16055,15 @@ SELECT DISTINCT + ( - 87 ) + 26 * + col1 AS col0 FROM tab0 # Datafusion - Expected - -79 # Datafusion - Expected - 4961 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \* Int64\(\-54\) \- \(\- tab1\.col1\) AS col2" at position 0 and "Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 * - 54 - - col1 AS col2, - 79 AS col2 FROM tab1 +---- +-79 +-79 +-79 +2768 +4595 +4961 query I rowsort label-2605 SELECT ( + 25 ) * - COUNT ( - + col1 ) FROM tab0 WHERE ( NULL ) IS NULL @@ -15903,8 +16077,15 @@ SELECT ( + 25 ) * - COUNT ( - + col1 ) FROM tab0 WHERE ( NULL ) IS NULL # Datafusion - Expected - -15 # Datafusion - Expected - 9858 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \- \(\- tab0\.col2\) \* tab0\.col2 AS col1" at position 0 and "\(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 57 - - col2 * col2 AS col1, - col0 AS col1 FROM tab0 +---- +-15 +-87 +-97 +157 +2266 +9858 query I rowsort label-2607 SELECT + MIN ( DISTINCT col0 ) + - 8 col1 FROM tab1 @@ -16433,8 +16614,11 @@ SELECT DISTINCT 92 AS col2, col0 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \- Int64\(\-51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, + COUNT ( * ) + CAST ( NULL AS INTEGER ) - + + ( - 51 ) col1 FROM tab1 AS cor0 +---- +3 +NULL query III rowsort SELECT ALL * FROM tab1 WHERE + 34 IS NOT NULL @@ -16471,8 +16655,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( + - 49 ) AS col2, - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * col0 IS NOT NULL +---- +0 +0 query I rowsort SELECT 39 + - - col1 AS col0 FROM tab1 AS cor0 @@ -16653,8 +16840,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab1 cor0 +---- +3 +3 query I rowsort SELECT ALL 12 + + col2 + + 83 * - col2 AS col1 FROM tab0 AS cor0 @@ -17541,8 +17731,15 @@ SELECT - - 82, + col2 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -77 # Datafusion - Expected - 75 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col0 col2, - col1 AS col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +46 +64 +75 query II rowsort label-2878 SELECT ALL + col2, CAST ( NULL AS INTEGER ) FROM tab1 cor0 @@ -17615,8 +17812,11 @@ SELECT + ( - + col0 ) * - col2 AS col0, + 95 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 227 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(tab1\.col0\) AS col2" at position 0 and "Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + SUM ( ( col0 ) ) AS col2, - 15 AS col2 FROM tab1 +---- +-15 +227 query III rowsort SELECT * FROM tab2 WHERE - 9 + + col0 IS NULL @@ -18872,8 +19072,11 @@ SELECT ALL * FROM tab1 cor0 WHERE NOT ( - col2 ) IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* CAST\(NULL AS Float64\) \+ min\(Int64\(77\)\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL 52 * CAST ( NULL AS FLOAT8 ) + + MIN ( 77 ) AS col2, 21 AS col2 FROM tab2 AS cor0 +---- +21 +NULL query I rowsort label-3102 SELECT DISTINCT - SUM ( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE ( NULL ) > + col1 @@ -18936,8 +19139,15 @@ SELECT + COUNT ( - col0 ), + COUNT ( * ) AS col0 FROM tab0 # Datafusion - Expected - 75 # Datafusion - Expected - -714 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col1 AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 * col1 AS col2, + 75 AS col2 FROM tab1 AS cor0 +---- +-425 +-4277 +-714 +75 +75 +75 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NULL > - col2 @@ -18955,8 +19165,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(tab0\.col0\) \+ \(\- Int64\(64\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( MIN ( col0 ) ) + - + 64 col0, + COUNT ( * ) AS col0 FROM tab0 +---- +-49 +3 query I rowsort SELECT 63 * - col1 + + - col2 + - col1 AS col2 FROM tab2 @@ -19967,8 +20180,15 @@ NULL # Datafusion - Expected - -250 # Datafusion - Expected - -25 # Datafusion - Expected - -229 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col0\) \+ \(\- cor0\.col0\) \+ \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * + + col1 AS col2, - col0 + - + col0 + - + ( + col2 ) AS col2 FROM tab1 AS cor0 +---- +-196 +-198 +-2209 +-229 +-25 +-250 query I rowsort SELECT + 79 * col0 * - 73 FROM tab2 @@ -20156,8 +20376,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \* \(\- \(\- min\(tab0\.col0\)\)\) \+ Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 90 ) AS col0, - COUNT ( * ) * - - MIN ( + col0 ) + - 15 col0 FROM tab0 +---- +-60 +90 query I rowsort label-3306 SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE 34 <= CAST ( NULL AS FLOAT8 ) @@ -20186,14 +20409,20 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ), COUNT ( * ) FROM tab2 +---- +3 +3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 288 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- sum\(Int64\(\-96\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + COUNT ( * ) AS col1, - SUM ( + - 96 ) AS col1 FROM tab2 AS cor0 +---- +288 +3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 @@ -20202,8 +20431,15 @@ SELECT ALL + + COUNT ( * ) AS col1, - SUM ( + - 96 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 28 # Datafusion - Expected - -79 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 79 AS col2, + 28 AS col2 FROM tab1 AS cor0 +---- +-79 +-79 +-79 +28 +28 +28 query I rowsort label-3313 SELECT + MAX ( DISTINCT - + col2 ) FROM tab2 AS cor0 @@ -22380,8 +22616,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col2, col0 ) # Datafusion - Expected - 62 # Datafusion - Expected - 46 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 AS col1, + 62 col1 FROM tab1 AS cor0 +---- +46 +46 +46 +62 +62 +62 query I rowsort label-3681 SELECT - 63 / + - 24 - col1 FROM tab2 WHERE NOT ( NOT ( - 11 ) * + 4 * + 22 IS NOT NULL ) @@ -22428,8 +22671,10 @@ SELECT DISTINCT - 33 FROM tab0 WHERE NULL IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to e499d5add5be80f469c721b7772e08a4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 1 and "Int64\(86\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 84 + - 29 AS col2, - col0 AS col0, + 86 AS col0 FROM tab2 +---- +9 values hashing to 9c054f943518ace1e4f08070091aac42 query II rowsort SELECT col0 * - + col0, col2 FROM tab2 @@ -22596,8 +22841,11 @@ SELECT DISTINCT * FROM tab0 WHERE ( CAST ( - 90 AS INTEGER ) IS NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -227 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT \(\- tab1\.col0\)\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + SUM ( DISTINCT + - col0 ) AS col0, + 68 AS col0 FROM tab1 +---- +-227 +68 query I rowsort SELECT + col2 AS col2 FROM tab0 WHERE NOT NULL IS NULL @@ -22824,8 +23072,15 @@ SELECT - 91, + col1 + col2 AS col1 FROM tab0 WHERE NOT col0 NOT BETWEEN + col1 A # Datafusion - Expected - -124 # Datafusion - Expected - NULL # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- tab2\.col2\) \+ \(\- \(\- Int64\(\-66\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col1, - col2 + - - ( - 66 ) AS col1 FROM tab2 +---- +-106 +-124 +-89 +NULL +NULL +NULL query I rowsort SELECT - col1 * + + 67 AS col2 FROM tab2 @@ -22859,8 +23114,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT - 39 * + ( + col2 ) * + col2 + + + 44 - + 8 # Datafusion - Expected - 47 # Datafusion - Expected - -99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 AS col0, + col2 AS col0 FROM tab0 cor0 +---- +-10 +-47 +-99 +10 +47 +99 query I rowsort SELECT + 80 * + col1 FROM tab2 @@ -22930,8 +23192,15 @@ SELECT + - col2 - + - col0 FROM tab1 WHERE NULL IS NULL # Datafusion - Expected - -82 # Datafusion - Expected - 99 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "Int64\(\-59\) / tab0\.col2 \+ \(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col0, - 59 / + col2 + - col1 AS col0 FROM tab0 +---- +-1 +-26 +-82 +10 +47 +99 query I rowsort label-3770 SELECT CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 @@ -23547,8 +23816,15 @@ SELECT DISTINCT col1, col2 * - 67 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - -97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, col1 AS col2 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +1 +21 +81 query II rowsort SELECT ALL col2 AS col0, - col0 * + col0 AS col1 FROM tab2 AS cor0 @@ -25167,8 +25443,11 @@ SELECT DISTINCT + 57 + - col2 * + - col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 81 - + + COUNT ( * ) AS col0, - 91 AS col0 FROM tab0 cor0 +---- +-91 +78 query I rowsort label-4132 SELECT DISTINCT col2 + + ( col2 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 @@ -25402,8 +25681,15 @@ SELECT * FROM tab2 WHERE NOT - col0 = ( NULL ) # Datafusion - Expected - 37 # Datafusion - Expected - 67 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 67 AS col0, 37 col0 FROM tab0 +---- +37 +37 +37 +67 +67 +67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 @@ -25527,8 +25813,15 @@ SELECT ALL + - col2 AS col0 FROM tab2 WHERE NOT col0 + + col2 - + - 77 / + ( 93 # Datafusion - Expected - 94 # Datafusion - Expected - -58 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col1, ( 94 ) AS col1 FROM tab2 +---- +-23 +-40 +-58 +94 +94 +94 query I rowsort SELECT col2 * - 27 * + col0 FROM tab0 @@ -25544,8 +25837,15 @@ SELECT col2 * - 27 * + col0 FROM tab0 # Datafusion - Expected - -15 # Datafusion - Expected - 99 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col2 AS Int32\) AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + + col2 AS INTEGER ) AS col2, - col0 col2 FROM tab0 +---- +-15 +-87 +-97 +10 +47 +99 query I rowsort label-4192 SELECT col0 / - 91 FROM tab0 @@ -25809,8 +26109,15 @@ SELECT COUNT ( * ) FROM tab2 WHERE + ( + 81 ) IS NOT NULL # Datafusion - Expected - 35 # Datafusion - Expected - 75 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "\(\- \(\- Int64\(35\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, - ( - + 35 ) AS col2 FROM tab2 +---- +35 +35 +35 +46 +64 +75 query I rowsort label-4235 SELECT DISTINCT + MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 @@ -26024,8 +26331,11 @@ SELECT * FROM tab1 WHERE NOT - col0 <> + + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(cor0\.col2\) AS col2" at position 0 and "\(\- min\(cor0\.col1\)\) \+ Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MAX ( ALL col2 ) AS col2, - MIN ( ALL col1 ) + 42 AS col2 FROM tab1 AS cor0 +---- +37 +96 query I rowsort SELECT ALL col1 + - + col0 * + - col0 AS col2 FROM tab1 AS cor0 @@ -26646,8 +26956,11 @@ SELECT DISTINCT SUM ( DISTINCT - 41 ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 50 col1, COUNT ( * ) col1 FROM tab2 +---- +-50 +3 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -26813,8 +27126,15 @@ SELECT ALL - 99 * COUNT ( * ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - -77 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 77 AS col1, - col2 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +-77 +-77 +-77 query I rowsort label-4396 SELECT - + ( - COUNT ( * ) ) AS col1 FROM tab0 cor0 @@ -27574,8 +27894,11 @@ SELECT + - ( + - MIN ( - - 51 ) ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 +---- +3 +NULL query I rowsort SELECT - ( + 39 ) * - 67 FROM tab0 @@ -28038,8 +28361,15 @@ SELECT * FROM tab2 WHERE - col2 * + - col2 * + col0 - 23 + - - col2 + + 60 * + c # Datafusion - Expected - 47 # Datafusion - Expected - -5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col0" at position 0 and "\(\- \(\- tab1\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, - ( - ( col1 ) ) AS col0 FROM tab1 +---- +-14 +-47 +-5 +14 +47 +5 query I rowsort SELECT DISTINCT + col0 * col2 + + col2 AS col2 FROM tab2 AS cor0 @@ -28227,8 +28557,15 @@ SELECT ALL 67 + + col2 FROM tab0 AS cor0 # Datafusion - Expected - -99 # Datafusion - Expected - 66 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 AS col0, - 99 AS col0 FROM tab1 AS cor0 +---- +-99 +-99 +-99 +66 +66 +66 query I rowsort label-4638 SELECT + CAST ( NULL AS INTEGER ) / + + 30 + - + col1 FROM tab1 @@ -28366,8 +28703,15 @@ SELECT DISTINCT + + col2 / - col2 col2 FROM tab0 AS cor0 # Datafusion - Expected - 83 # Datafusion - Expected - 490 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- \(\- Int64\(35\)\)\) AS col2" at position 0 and "Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 * - - ( + + 35 ) col2, 83 AS col2 FROM tab1 AS cor0 +---- +1645 +175 +490 +83 +83 +83 query II rowsort SELECT DISTINCT + col1 AS col2, col1 FROM tab0 AS cor0 @@ -30668,8 +31012,15 @@ SELECT ALL 83 - - ( - col2 ) - + ( - col0 ) AS col0, 50 FROM tab2 # Datafusion - Expected - -40 # Datafusion - Expected - 45 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \- Int64\(\-4\) AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 - - 4 col0, - col2 AS col0 FROM tab2 +---- +-23 +-40 +-58 +45 +45 +45 query I rowsort label-5043 SELECT DISTINCT - 64 / - 39 + + + 7 AS col0 FROM tab2 @@ -31257,8 +31608,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 20 + - COUNT ( * ) AS col0, ( - 49 ) * 53 AS col0 FROM tab1 +---- +-2597 +17 query I rowsort label-5139 SELECT DISTINCT + MIN ( + 48 ) * + - COUNT ( * ) col0 FROM tab1 @@ -31346,8 +31700,15 @@ SELECT DISTINCT - ( - + col0 ) col2 FROM tab2 # Datafusion - Expected - NULL # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "Int64\(0\) \+ CAST\(NULL AS Float64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT col1 AS col0, + 0 + + CAST ( NULL AS FLOAT8 ) AS col0 FROM tab2 +---- +51 +67 +77 +NULL +NULL +NULL query I rowsort label-5153 SELECT - MAX ( - 50 ) FROM tab0 @@ -31511,8 +31872,15 @@ SELECT - 77 + + - 21 FROM tab1 # Datafusion - Expected - -64 # Datafusion - Expected - NULL # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ \(\- \(\- tab2\.col0\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "tab2\.col2 \- tab2\.col2 \- tab2\.col0 \+ \(\- Int64\(0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + - - col0 + + ( - CAST ( NULL AS INTEGER ) ) AS col1, col2 - + col2 - + col0 + - ( + - 0 ) AS col1 FROM tab2 +---- +-46 +-64 +-75 +NULL +NULL +NULL query IIIIII rowsort SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 21 IS NULL @@ -31657,8 +32025,15 @@ SELECT COUNT ( * ) * - - COUNT ( ALL - 72 ) AS col2 FROM tab2 # Datafusion - Expected - 250 # Datafusion - Expected - NULL # Datafusion - Expected - 513 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / Int64\(\-27\) \- \(\- tab1\.col2\) AS col0" at position 0 and "tab1\.col0 \+ Int64\(\-33\) \* \(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) / - 27 - - col2 AS col0, + col0 + + - 33 * + - col1 AS col0 FROM tab1 +---- +1642 +250 +513 +NULL +NULL +NULL query I rowsort label-5201 SELECT DISTINCT + + ( CAST ( ( + 40 ) AS INTEGER ) ) FROM tab2 WHERE NOT - col2 IS NULL @@ -32499,8 +32874,15 @@ SELECT + + col0 AS col0 FROM tab0 WHERE NOT + col2 = - + 16 * col1 + - 2 # Datafusion - Expected - 47 # Datafusion - Expected - -5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col0" at position 0 and "\(\- \(\- tab1\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, ( - - col1 ) col0 FROM tab1 WHERE NOT NULL IS NOT NULL +---- +-14 +-47 +-5 +14 +47 +5 query I rowsort label-5338 SELECT ALL col1 * col0 / col0 * col1 FROM tab1 @@ -32853,8 +33235,11 @@ SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + CAST ( NULL AS INTEGE # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- min\(\(\- tab1\.col1\)\)\)\) / sum\(Int64\(46\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) + - - MIN ( ALL - col1 ) / SUM ( 46 ) AS col0 FROM tab1 +---- +3 +NULL query I rowsort SELECT - - ( + ( + 78 ) ) * + col1 FROM tab0 AS cor0 @@ -33420,8 +33805,15 @@ SELECT ALL col1 * - - 77, col1 FROM tab2 # Datafusion - Expected - 13 # Datafusion - Expected - -81 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - + col1 ) AS col1, 13 AS col1 FROM tab0 +---- +-1 +-21 +-81 +13 +13 +13 query I rowsort SELECT + col2 - + - col0 AS col2 FROM tab1 AS cor0 @@ -33460,8 +33852,11 @@ SELECT * FROM tab1 AS cor0 WHERE NOT col0 - - col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) * COUNT ( * ) AS col1, - 36 AS col1 FROM tab2 AS cor0 +---- +-36 +9 query IIIIII rowsort SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <> NULL @@ -33836,8 +34231,15 @@ SELECT ALL - col1 * + 41 FROM tab1 # Datafusion - Expected - 0 # 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 "tab0\.col2 / Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 88 AS col2, + col2 / 77 col2 FROM tab0 +---- +-88 +-88 +-88 +0 +0 +1 query I rowsort label-5565 SELECT ALL - + SUM ( DISTINCT + col2 ) FROM tab2 AS cor0 @@ -34649,8 +35051,11 @@ SELECT - 77 * + 22 + - col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(47\)\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( 47 ) AS col2, 28 AS col2 FROM tab1 +---- +28 +3 query I rowsort label-5689 SELECT ALL + col2 + - CAST ( + + ( + col0 ) AS INTEGER ) * - ( col1 ) AS col0 FROM tab2 @@ -35001,8 +35406,15 @@ SELECT DISTINCT * FROM tab0 WHERE NOT + 87 * 24 * - col1 NOT IN ( col2 * - col2 # Datafusion - Expected - 368640 # Datafusion - Expected - -4029149 # Datafusion - Expected - 506250 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* Int64\(68\) \* \(\- cor0\.col0\) \* Int64\(79\) \+ \(\- cor0\.col1\) \+ Int64\(\-82\) AS col0" at position 0 and "cor0\.col0 \* cor0\.col0 \* Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 10 * 68 * - + col0 * 79 + - col1 + + - 82 col0, + col0 * col0 * 90 AS col0 FROM tab2 AS cor0 +---- +-2471253 +-3438239 +-4029149 +190440 +368640 +506250 query I rowsort SELECT - - 86 + + 67 * - col1 * - 96 * - col1 FROM tab1 AS cor0 @@ -35104,8 +35516,15 @@ SELECT + MIN ( ALL - col0 ) col2 FROM tab2 AS cor0 # Datafusion - Expected - 12 # Datafusion - Expected - 82 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 82 AS col0, 12 AS col0 FROM tab1 AS cor0 +---- +12 +12 +12 +82 +82 +82 query I rowsort label-5766 SELECT ALL col0 / col2 + col1 FROM tab0 AS cor0 @@ -35255,8 +35674,10 @@ SELECT ALL 53, col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 216b7e398e93838be0a6094282210d7a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col2" at position 0 and "cor0\.col1 / cor0\.col2 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - 11 AS col2, - 80, ( col1 ) / col2 AS col2 FROM tab0 AS cor0 +---- +9 values hashing to e57e75755d224b51aa16490ec85fa47e query I rowsort SELECT col2 * - - 31 * - col2 * + col1 AS col2 FROM tab1 @@ -35867,8 +36288,15 @@ SELECT DISTINCT + col0 * - - 13 + + - col1 + + col2 FROM tab1 # Datafusion - Expected - 54 # Datafusion - Expected - 91 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col2 \- tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, col2 - + col1 AS col1 FROM tab1 +---- +21 +51 +54 +82 +85 +91 query I rowsort SELECT col0 * + col0 - - col1 AS col0 FROM tab1 AS cor0 @@ -36162,8 +36590,15 @@ SELECT * FROM tab2 WHERE NOT - col1 < - - 13 # Datafusion - Expected - -77 # Datafusion - Expected - -75 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, - col1 AS col2 FROM tab2 AS cor0 +---- +-46 +-51 +-64 +-67 +-75 +-77 query II rowsort SELECT DISTINCT - 21 * + 13 AS col0, 56 FROM tab2 AS cor0 @@ -36618,8 +37053,15 @@ SELECT DISTINCT * FROM tab0 cor0 WHERE col0 * col1 IS NOT NULL # Datafusion - Expected - 87 # Datafusion - Expected - 403326 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* \(\- Int64\(42\)\) \* \(\- tab0\.col2\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 * - ( + 42 ) * - col2 AS col1, col0 col1 FROM tab0 +---- +15 +29610 +36540 +403326 +87 +97 query I rowsort SELECT - ( + 64 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 @@ -36663,8 +37105,15 @@ SELECT ALL MAX ( + + col1 ) FROM tab1 AS cor0 # Datafusion - Expected - 7480 # Datafusion - Expected - -91 # Datafusion - Expected - 8008 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col0 \* Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col1, col0 * + 88 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL +---- +-51 +-85 +-91 +4488 +7480 +8008 query I rowsort SELECT + col0 * + 83 + + 64 + col0 * col1 AS col2 FROM tab1 AS cor0 @@ -36770,8 +37219,15 @@ SELECT DISTINCT + col2 * + + 42 + 5 + + 89 - + - col2 FROM tab2 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 75 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 \+ \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col0 col2, col0 + - col0 AS col2 FROM tab2 AS cor0 +---- +0 +0 +0 +46 +64 +75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 @@ -36780,8 +37236,15 @@ SELECT ALL + + col0 col2, col0 + - col0 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -890 # Datafusion - Expected - 81 # Datafusion - Expected - -4183 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(89\) \* \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, 89 * - + col2 AS col0 FROM tab0 cor0 +---- +-4183 +-8811 +-890 +1 +21 +81 query I rowsort SELECT ALL col2 col1 FROM tab0 cor0 WHERE NULL IS NULL @@ -37440,8 +37903,13 @@ SELECT - 51 + + COUNT ( * ) AS col0 FROM tab2 cor0 # Datafusion - Expected - 56 # Datafusion - Expected - 35 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col0" at position 0 and "cor0\.col1 \- \(\- Int64\(\-11\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 AS col0, col1 - - - 11 AS col0 FROM tab2 AS cor0 WHERE - 81 + 44 >= - + col2 +---- +35 +35 +56 +66 query I rowsort SELECT ALL 41 + + col2 AS col2 FROM tab2 @@ -37488,8 +37956,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - + CAS # Datafusion - Expected - -21 # Datafusion - Expected - -81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "CAST\(\(\- cor0\.col1\) AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1, + CAST ( - col1 AS INTEGER ) FROM tab0 cor0 +---- +-1 +-1 +-21 +-21 +-81 +-81 query I rowsort SELECT col0 * + col2 - 41 AS col0 FROM tab2 AS cor0 @@ -37749,8 +38224,15 @@ SELECT ALL 47 * - - col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( + 38 + - CAST ( N # Datafusion - Expected - 134 # Datafusion - Expected - 0 # Datafusion - Expected - 154 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) / \(\- \(\- tab2\.col2\)\) AS col2" at position 0 and "tab2\.col1 \+ tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 1 / - - col2 AS col2, col1 + + + col1 col2 FROM tab2 +---- +0 +0 +0 +102 +134 +154 query I rowsort label-6196 SELECT - 58 + + col1 * + col1 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 @@ -38023,8 +38505,15 @@ SELECT + ( 78 ) col1 FROM tab0 # Datafusion - Expected - 28 # Datafusion - Expected - -17 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col2" at position 0 and "tab1\.col1 \+ tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 17 AS col2, + col1 + col1 AS col2 FROM tab1 +---- +-17 +-17 +-17 +10 +28 +94 query II rowsort SELECT DISTINCT 62, + col1 FROM tab0 @@ -38686,8 +39175,11 @@ SELECT DISTINCT + 2 - 10 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col0, 18 AS col0 FROM tab1 +---- +18 +3 query III rowsort label-6355 SELECT ALL * FROM tab0 AS cor0 WHERE + + col0 * - 26 - + col2 / - CAST ( + col0 AS INTEGER ) = col2 AND ( - col1 - + col0 ) IS NOT NULL @@ -39423,8 +39915,15 @@ SELECT ALL + - 51, + SUM ( + + 40 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -77 # Datafusion - Expected - -58 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 col1, - col1 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-51 +-58 +-67 +-77 query I rowsort label-6474 SELECT DISTINCT + + MAX ( DISTINCT + CAST ( - col0 AS INTEGER ) ) FROM tab1 cor0 @@ -39501,8 +40000,15 @@ SELECT + + 92 * + 51 - col0 / - - 53 - + - 86 + + col1 FROM tab0 cor0 # Datafusion - Expected - -7371 # Datafusion - Expected - -31 # Datafusion - Expected - -1911 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ \(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col1\) \* Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 + - col1 AS col1, - col1 * 91 AS col1 FROM tab0 AS cor0 +---- +-100 +-128 +-1911 +-31 +-7371 +-91 query I rowsort SELECT DISTINCT 29 * - - col2 FROM tab1 AS cor0 WHERE NULL IS NULL @@ -39521,8 +40027,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + + COUNT ( * ) + - ( - 79 ) AS col2, - 59 AS col2 FROM tab1 AS cor0 +---- +-59 +82 query III rowsort SELECT DISTINCT * FROM tab0 cor0 WHERE - 42 * + - 87 IS NULL @@ -39708,8 +40217,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - + COUNT ( * ) ) AS col1, 59 AS col1 FROM tab1 +---- +-3 +59 query I rowsort SELECT ( 56 ) * - col2 AS col0 FROM tab0 @@ -40576,8 +41088,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT + col2 NOT IN ( - + 2 / + - col2, 6 + + co # Datafusion - Expected - -367822 # Datafusion - Expected - 2976 # Datafusion - Expected - -61404 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \* Int64\(\-31\) AS col0" at position 0 and "tab1\.col1 \* \(\- tab1\.col0\) \* Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 * - 31 AS col0, col1 * - col0 * + 86 col0 FROM tab1 +---- +-36550 +-367822 +-61404 +1829 +2108 +2976 query II rowsort label-6656 SELECT ( - 96 ) / - + col0 + - 50 * ( col0 ) - + - col2 col2, - 4 FROM tab1 @@ -40592,8 +41111,11 @@ SELECT ( - 96 ) / - + col0 + - 50 * ( col0 ) - + - col2 col2, - 4 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) / \(\- Int64\(\-43\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 / - - 43 AS col1, COUNT ( * ) col1 FROM tab1 +---- +0 +3 query I rowsort SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE col1 / + + 59 = - - col2 @@ -40718,8 +41240,15 @@ SELECT - + col2, + col1 * + col2 + - 75 col1 FROM tab1 AS cor0 # Datafusion - Expected - -3807 # Datafusion - Expected - -53 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col2" at position 0 and "\(\- cor0\.col1\) \* \(\- \(\- cor0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 53 col2, - col1 * - - col2 AS col2 FROM tab0 cor0 +---- +-210 +-3807 +-53 +-53 +-53 +-99 query I rowsort label-6677 SELECT + - 85 / - col0 AS col1 FROM tab2 AS cor0 @@ -42056,8 +42585,11 @@ SELECT DISTINCT - 28 * + col0 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 252 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-84\)\)\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + SUM ( - 84 ) AS col2, + 12 AS col2 FROM tab1 AS cor0 +---- +12 +252 query I rowsort label-6902 SELECT DISTINCT 44 + + COUNT ( * ) FROM tab1 AS cor0 @@ -42097,8 +42629,15 @@ SELECT DISTINCT + CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 21 # 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 "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 43 col0, col1 AS col0 FROM tab0 cor0 +---- +-43 +-43 +-43 +1 +21 +81 query II rowsort SELECT + - col0 AS col0, 18 * + col2 + - + col1 AS col2 FROM tab0 AS cor0 @@ -42844,8 +43383,15 @@ SELECT * FROM tab1 AS cor0 WHERE NULL IN ( 40 + - 36 ) # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- Int64\(\-75\)\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col2 \+ \(\- Int64\(\-37\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 + - - 75 * ( - CAST ( NULL AS INTEGER ) ) * - col2 AS col2, col2 + - - 37 col2 FROM tab0 AS cor0 +---- +136 +47 +84 +NULL +NULL +NULL query II rowsort label-7035 SELECT ALL 59 / - col2 + - + col2 AS col2, - col1 FROM tab2 AS cor0 @@ -43394,8 +43940,11 @@ SELECT 5, col2 col1 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\(Int64\(96\)\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( + 96 ) AS col2, 45 col2 FROM tab0 +---- +3 +45 query I rowsort label-7125 SELECT DISTINCT - ( + 99 ) / 44 / + 22 + col0 AS col2 FROM tab0 @@ -44309,8 +44858,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab2 cor0 +---- +3 +3 query III rowsort SELECT * FROM tab2 WHERE - 69 BETWEEN NULL AND ( - col0 / + ( - 59 ) * + + 3 ) @@ -44323,8 +44875,15 @@ SELECT * FROM tab2 WHERE - 69 BETWEEN NULL AND ( - col0 / + ( - 59 ) * + + 3 ) # Datafusion - Expected - -77 # Datafusion - Expected - 58 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "\(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, - col1 AS col0 FROM tab2 +---- +-51 +-67 +-77 +23 +40 +58 query I rowsort SELECT 71 * - 97 AS col2 FROM tab0 @@ -44345,8 +44904,15 @@ SELECT * FROM tab0 WHERE + + 31 IS NOT NULL # Datafusion - Expected - 47 # Datafusion - Expected - 94 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-94\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 94 col2, col1 AS col2 FROM tab1 AS cor0 +---- +14 +47 +5 +94 +94 +94 query I rowsort SELECT - col1 * - col1 + 2 FROM tab0 AS cor0 @@ -44362,8 +44928,15 @@ SELECT - col1 * - col1 + 2 FROM tab0 AS cor0 # Datafusion - Expected - 70 # Datafusion - Expected - 99 # Datafusion - Expected - 151 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col0\) / Int64\(56\) \+ cor0\.col0 \+ Int64\(55\) \* cor0\.col1 / cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, - col0 / 56 + col0 + + + 55 * + col1 / + col1 AS col1 FROM tab0 AS cor0 +---- +10 +141 +151 +47 +70 +99 query I rowsort SELECT col0 + 70 * - 59 AS col0 FROM tab1 AS cor0 @@ -44491,8 +45064,15 @@ SELECT DISTINCT + col0 AS col0, 95 / - 84 FROM tab1 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(76\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col1, + 76 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +NULL +NULL +NULL query I rowsort SELECT - - col1 * - col0 * - 33 FROM tab0 AS cor0 @@ -44914,8 +45494,11 @@ SELECT + 80 - + + col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "Int64\(\-57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 30 AS col2, - 57 AS col2 FROM tab0 +---- +-57 +30 query II rowsort SELECT ALL col2, 44 FROM tab0 @@ -45119,8 +45702,9 @@ SELECT - col1 * 76 + - col0, + col1 FROM tab2 cor0 77 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 FROM tab0 AS cor0 WHERE - col1 IS NULL +---- query I rowsort label-7405 SELECT DISTINCT + COUNT ( DISTINCT - col0 ) AS col1 FROM tab1 @@ -45550,8 +46134,11 @@ SELECT + 62 * - col0 AS col2 FROM tab0 WHERE + + col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, - ( + COUNT ( * ) ) AS col1 FROM tab0 cor0 +---- +-3 +3 query I rowsort SELECT + col2 * + 3 AS col2 FROM tab0 AS cor0 WHERE + ( - 28 ) <= - + col1 @@ -45776,8 +46363,9 @@ SELECT DISTINCT + ( + MAX ( DISTINCT CAST ( NULL AS FLOAT8 ) ) ) + + + COUNT ( * NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* Int64\(\-4\) \- \(\- cor0\.col0\) \+ Int64\(87\) \+ \(\- \(\- cor0\.col2\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 * + - 4 - - col0 + + + 87 + - - col2 AS col1, col0 col1 FROM tab1 AS cor0 WHERE + col1 < NULL +---- query I rowsort label-7509 SELECT - col0 + - - ( col0 ) + + col0 + col2 * 87 * + 82 * - + CAST ( - + ( 58 ) AS INTEGER ) FROM tab2 cor0 @@ -47441,8 +48029,15 @@ SELECT COUNT ( * ) + + 34 AS col2 FROM tab0 # Datafusion - Expected - -205379 # Datafusion - Expected - 91 # Datafusion - Expected - -314432 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col2 \* \(\- cor0\.col2\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, col2 * - col2 * + + ( col2 ) AS col2 FROM tab1 AS cor0 +---- +-205379 +-314432 +-884736 +51 +85 +91 query I rowsort SELECT - + 15 + + 53 AS col0 FROM tab1 AS cor0 @@ -48423,8 +49018,15 @@ SELECT MIN ( ALL + + 9 ) AS col2 FROM tab1 cor0 # Datafusion - Expected - 91 # Datafusion - Expected - 96 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- cor0\.col1\) / Int64\(\-63\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 + - col1 / - 63 AS col2, col0 AS col2 FROM tab1 cor0 +---- +51 +59 +68 +85 +91 +96 query I rowsort label-7944 SELECT DISTINCT 41 + + COUNT ( * ) FROM tab0 AS cor0 @@ -50017,8 +50619,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT - 76 IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - -5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col2, + col1 AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +14 +47 +5 query I rowsort SELECT + col1 * col0 + col2 * + - col0 / + - 4 - col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL ) @@ -50431,8 +51040,15 @@ SELECT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 * - 49 # Datafusion - Expected - -58 # Datafusion - Expected - 5775 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* tab2\.col1 AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 * + col1 AS col1, - col2 AS col1 FROM tab2 +---- +-23 +-40 +-58 +3825 +5025 +5775 query II rowsort label-8274 SELECT DISTINCT - CAST ( + - 36 AS INTEGER ) AS col2, col0 AS col1 FROM tab2 @@ -50564,8 +51180,11 @@ SELECT ALL + COUNT ( ALL + + col1 ) AS col0 FROM tab0 # 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 "cor0\.col0 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, col1 col2 FROM tab0 cor0 WHERE - col0 NOT BETWEEN + - col2 AND NULL +---- +21 +87 query II rowsort SELECT - 30 * - + col0, - col0 + + 56 + + col1 AS col0 FROM tab2 AS cor0 @@ -50585,8 +51204,11 @@ SELECT SUM ( ALL - 89 ) * - 97 - 42 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(14\) \+ Int64\(\-57\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, 14 + - 57 + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 +---- +-43 +3 query II rowsort SELECT DISTINCT + 6, col1 FROM tab1 AS cor0 @@ -50809,8 +51431,9 @@ SELECT DISTINCT - CAST ( + 87 AS INTEGER ) AS col0 FROM tab1 -87 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 4 ) AS col0, col2 col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 * - col0 AND NULL +---- query III rowsort label-8337 SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL @@ -53018,8 +53641,15 @@ SELECT - MAX ( ALL + + col1 ) FROM tab2 # Datafusion - Expected - -47 # Datafusion - Expected - 55 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 AS col0, - col2 AS col0 FROM tab0 +---- +-10 +-47 +-99 +55 +55 +55 query III rowsort SELECT * FROM tab0 WHERE NOT - 16 <> col1 + - col2 @@ -53224,8 +53854,9 @@ SELECT DISTINCT + col0 + col2 + + 21 FROM tab2 AS cor0 90 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \* Int64\(43\) AS col2" at position 0 and "tab0\.col0 \- tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 75 * + 43 AS col2, + col0 - col2 AS col2 FROM tab0 WHERE NOT - 86 = ( NULL ) +---- query I rowsort label-8742 SELECT ALL + CAST ( - 85 AS INTEGER ) FROM tab0 @@ -53600,8 +54231,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 + - + col2 AND NULL # Datafusion - Expected - -81 # Datafusion - Expected - 31 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 + col1 AS col2, - col1 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +100 +128 +31 query I rowsort SELECT ALL + + 37 + - - col2 FROM tab0 AS cor0 @@ -53624,8 +54262,15 @@ SELECT ALL + 1 + - 35 FROM tab2 AS cor0 # Datafusion - Expected - 23 # Datafusion - Expected - 51259 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ CAST\(cor0\.col2 AS Int32\) \* Int64\(32\) \* cor0\.col2 \- \(\- \(\- cor0\.col1\)\) / cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 60 + + CAST ( + col2 AS INTEGER ) * + 32 * col2 - - - col1 / col2 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +107707 +16986 +23 +40 +51259 +58 query I rowsort label-8806 SELECT CAST ( - MIN ( 30 ) AS INTEGER ) * - + COUNT ( * ) * + 85 + - 38 FROM tab2 @@ -55201,8 +55846,15 @@ SELECT - - ( - ( COUNT ( * ) ) ), 41 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -98 # Datafusion - Expected - 104 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \+ \(\- Int64\(\-31\)\) AS col1" at position 0 and "Int64\(\-98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 73 + - ( - 31 ) AS col1, + ( - 98 ) AS col1 FROM tab1 AS cor0 +---- +-98 +-98 +-98 +104 +104 +104 query I rowsort SELECT DISTINCT 81 + col0 col2 FROM tab0 AS cor0 @@ -56022,8 +56674,15 @@ SELECT ALL * FROM tab1 WHERE NOT - + col1 - ( col2 ) * 12 IS NULL # Datafusion - Expected - -3843 # Datafusion - Expected - 26 # Datafusion - Expected - -3585 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \+ tab1\.col0 AS col1" at position 0 and "\(\- tab1\.col0\) \* Int64\(43\) \- \(\- Int64\(70\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - col2 ) + + + col0 AS col1, - col0 * + 43 - - + 70 AS col1 FROM tab1 +---- +-2123 +-3585 +-3843 +-45 +23 +26 query I rowsort label-9205 SELECT ALL SUM ( ALL + 18 ) FROM tab1 @@ -56334,8 +56993,9 @@ SELECT ( + + col1 ) - + col2 FROM tab1 AS cor0 -82 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 3 AS col2, + col0 AS col2 FROM tab1 AS cor0 WHERE - col2 = NULL +---- query II rowsort SELECT ( col0 ) AS col1, + col0 + + col2 FROM tab2 AS cor0 @@ -57175,8 +57835,15 @@ SELECT + + col0 * + 64 * + 69 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 1 # 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 "tab0\.col0 / Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 AS col0, + col0 / + 49 col0 FROM tab0 +---- +0 +1 +1 +60 +60 +60 query I rowsort label-9392 SELECT CAST ( + col2 AS INTEGER ) * + col1 * - 42 FROM tab0 cor0 WHERE NOT NULL IS NULL @@ -57257,8 +57924,15 @@ SELECT ALL - CAST ( MAX ( ALL - 23 ) AS INTEGER ) AS col2 FROM tab0 # Datafusion - Expected - 91 # Datafusion - Expected - -68493 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* \(\- tab1\.col2\) \* tab1\.col0 \+ tab1\.col0 AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * - col2 * + col0 + + col0 AS col1, col0 AS col1 FROM tab1 +---- +-24990 +-290745 +-68493 +51 +85 +91 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NULL > + ( - col0 ) @@ -57394,8 +58068,15 @@ SELECT 91 * col0 AS col2 FROM tab0 # Datafusion - Expected - -23 # Datafusion - Expected - 96 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "tab1\.col2 \+ \(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 col0, col2 + - col0 AS col0 FROM tab1 +---- +-23 +-26 +45 +59 +68 +96 query I rowsort SELECT + - 82 AS col1 FROM tab0 cor0 @@ -57922,8 +58603,15 @@ SELECT + col0 * - ( + - col0 ) AS col1 FROM tab2 # Datafusion - Expected - -94 # Datafusion - Expected - 19 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "Int64\(\-5\) \+ Int64\(\-89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 AS col0, - 5 + ( - 89 ) col0 FROM tab2 +---- +-94 +-94 +-94 +19 +19 +19 query I rowsort SELECT - col1 * 13 FROM tab1 @@ -58343,8 +59031,15 @@ SELECT * FROM tab2 WHERE NOT + + ( + - col1 ) IS NULL # Datafusion - Expected - 75 # Datafusion - Expected - -97 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - col0 ) AS col1, + 75 AS col1 FROM tab0 +---- +-15 +-87 +-97 +75 +75 +75 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -58523,8 +59218,15 @@ SELECT - col1 * + + col1 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -40 # Datafusion - Expected - 75 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "\(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, - ( + col2 ) AS col2 FROM tab2 +---- +-23 +-40 +-58 +46 +64 +75 query I rowsort SELECT + col1 AS col1 FROM tab2 WHERE NOT - - col0 IS NOT NULL @@ -58656,8 +59358,15 @@ SELECT * FROM tab1 WHERE ( + 61 ) IS NOT NULL # Datafusion - Expected - 315707392 # Datafusion - Expected - 58 # Datafusion - Expected - 328258125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "\(\- tab2\.col0\) \* tab2\.col0 \* tab2\.col1 \* \(\- tab2\.col1\) \* Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, - col0 * + col0 * + + col1 * - col1 * 13 AS col1 FROM tab2 +---- +23 +315707392 +328258125 +40 +58 +71548308 query I rowsort SELECT col1 - + ( + - col1 ) + + - 46 AS col1 FROM tab1 @@ -59375,8 +60084,15 @@ NULL # Datafusion - Expected - 40 # Datafusion - Expected - -3886 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* \(\- tab2\.col2\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * ( - col2 ) AS col0, + col2 AS col0 FROM tab2 WHERE NOT + col2 IS NULL +---- +-1173 +-3080 +-3886 +23 +40 +58 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= + 14 @@ -59521,8 +60237,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT MAX ( - col1 ) AS col1, + COUNT ( * ) * + COUNT ( * ) * + - 67 AS col1 FROM tab2 +---- +-51 +-603 query I rowsort SELECT - 53 + - col2 * - col2 FROM tab0 @@ -59829,8 +60548,15 @@ SELECT COUNT ( DISTINCT + 1 ) AS col0 FROM tab0 # Datafusion - Expected - 6786 # Datafusion - Expected - 97 # Datafusion - Expected - 7566 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(78\) \* tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, + 78 * + + col0 AS col2 FROM tab0 +---- +1170 +15 +6786 +7566 +87 +97 query II rowsort label-9832 SELECT - COUNT ( * ) * + COUNT ( * ) AS col1, 23 * - COUNT ( - - 63 ) AS col0 FROM tab1 @@ -60541,8 +61267,15 @@ SELECT ALL - col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - -74 # Datafusion - Expected - 64 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "Int64\(\-74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 64 AS col1, - 74 AS col1 FROM tab0 +---- +-74 +-74 +-74 +64 +64 +64 query IIIIII rowsort SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 22 IS NOT NULL diff --git a/data/sqlite/random/aggregates/slt_good_84.slt b/data/sqlite/random/aggregates/slt_good_84.slt index 775050e..c5fd03f 100644 --- a/data/sqlite/random/aggregates/slt_good_84.slt +++ b/data/sqlite/random/aggregates/slt_good_84.slt @@ -1609,8 +1609,11 @@ SELECT + 63 * col2 * - ( - - col0 ) - - + col1 + + 98 AS col1 FROM tab2 WHERE NO # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, 19 AS col1 FROM tab0 +---- +19 +3 query II rowsort SELECT - col1 AS col1, col1 * col2 AS col2 FROM tab2 @@ -1661,8 +1664,15 @@ SELECT ALL col0 FROM tab2 cor0 WHERE + col2 IS NOT NULL # Datafusion - Expected - -21 # Datafusion - Expected - -18 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 18 AS col2, - col1 AS col2 FROM tab0 cor0 +---- +-1 +-18 +-18 +-18 +-21 +-81 query III rowsort SELECT * FROM tab0 WHERE NOT - + col0 / - 15 - - col0 IS NULL @@ -2185,8 +2195,15 @@ SELECT ALL COUNT ( * ) / COUNT ( * ) AS col0 FROM tab0 # Datafusion - Expected - 2209 # Datafusion - Expected - -1983 # Datafusion - Expected - 196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(\-57\) \* \(\- tab1\.col0\) / \(\- tab1\.col0\) \- \(\- \(\- tab1\.col2\)\) \+ tab1\.col0 AS col1" at position 0 and "tab1\.col1 \* tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 34 * + - 57 * - col0 / - col0 - - - col2 + col0 AS col1, + col1 * + col1 AS col1 FROM tab1 +---- +-1912 +-1915 +-1983 +196 +2209 +25 query II rowsort SELECT DISTINCT col1 AS col1, - ( - col1 ) FROM tab1 @@ -2296,8 +2313,15 @@ SELECT - 55 * COUNT ( * ) * + + 20 - + COUNT ( * ) AS col0, 94 col1 FROM tab0 WH # Datafusion - Expected - 4039 # Datafusion - Expected - 0 # Datafusion - Expected - 5568 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) / tab2\.col0 AS col1" at position 0 and "tab2\.col0 \* tab2\.col0 \+ Int64\(\-57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - col2 ) / col0 AS col1, col0 * col0 + + - 57 AS col1 FROM tab2 +---- +0 +0 +0 +2059 +4039 +5568 query I rowsort label-373 SELECT DISTINCT - 37 + + - 67 * + + COUNT ( * ) + - 39 AS col2 FROM tab1 @@ -2999,8 +3023,11 @@ SELECT ALL - col0 * 68 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 AS col0, + COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +1 +3 query II rowsort SELECT + col0 col2, col1 * col0 FROM tab1 @@ -3056,8 +3083,15 @@ SELECT + + ( + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 20 # Datafusion - Expected - 81 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "CAST\(Int64\(20\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col1 AS col0, CAST ( 20 AS INTEGER ) AS col0 FROM tab0 AS cor0 +---- +1 +20 +20 +20 +21 +81 query II rowsort SELECT DISTINCT + col1 AS col1, - col0 FROM tab2 AS cor0 @@ -3090,8 +3124,15 @@ SELECT + - 51 * - 19 FROM tab0 cor0 # Datafusion - Expected - 28 # Datafusion - Expected - -9603 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- tab0\.col0\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * - col0 AS col0, 28 AS col0 FROM tab0 +---- +-705 +-870 +-9603 +28 +28 +28 query III rowsort SELECT * FROM tab2 WHERE NOT - col0 > 84 * - col0 @@ -3646,8 +3687,15 @@ SELECT MIN ( col2 ) AS col1 FROM tab2 cor0 # Datafusion - Expected - 57 # Datafusion - Expected - 15 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 15 col1, 57 AS col1 FROM tab2 AS cor0 +---- +15 +15 +15 +57 +57 +57 query I rowsort SELECT ALL + + col1 + - - col1 AS col2 FROM tab0 AS cor0 @@ -4334,8 +4382,15 @@ SELECT DISTINCT col1 AS col2, col1 FROM tab2 AS cor0 # Datafusion - Expected - 139 # Datafusion - Expected - -5 # Datafusion - Expected - 238 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(5\)\) AS col0" at position 0 and "\(\- cor0\.col0\) \+ cor0\.col0 \+ Int64\(42\) \+ cor0\.col0 \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 5 AS col0, - col0 + col0 + + 42 + ( col0 ) + + col2 AS col0 FROM tab0 AS cor0 +---- +-5 +-5 +-5 +104 +139 +238 query I rowsort SELECT + + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - - col0 * + + col2 @@ -4473,8 +4528,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col2, col2 AS col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query III rowsort SELECT * FROM tab0 WHERE 92 IS NULL @@ -4928,8 +4990,15 @@ SELECT col2 * + + col1 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 150 # Datafusion - Expected - 2 # Datafusion - Expected - 150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) / Int64\(27\) AS col0" at position 0 and "Int64\(74\) \- Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 / 27 AS col0, 74 - - 76 AS col0 FROM tab0 AS cor0 +---- +150 +150 +150 +2 +2 +2 query I rowsort label-810 SELECT DISTINCT - MIN ( 19 ) FROM tab2 cor0 @@ -5124,8 +5193,11 @@ SELECT ALL - col1 * + col1 + + col0 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-40\)\) \+ CAST\(Int64\(\-49\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 7 ) + COUNT ( * ) col2, - COUNT ( * ) - - - 40 + + CAST ( - 49 AS INTEGER ) col2 FROM tab0 +---- +-92 +10 query II rowsort label-843 SELECT DISTINCT + CAST ( - col0 AS INTEGER ) - - col0 * 55 AS col1, - col1 AS col0 FROM tab0 @@ -5633,8 +5705,15 @@ SELECT ALL MIN ( DISTINCT - + 12 ) col1 FROM tab0 # Datafusion - Expected - 2 # Datafusion - Expected - -92 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \+ Int64\(\-15\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + - 15 AS col1, + 2 AS col1 FROM tab2 +---- +-66 +-82 +-92 +2 +2 +2 query I rowsort SELECT + 57 + col2 FROM tab1 WHERE NOT ( 23 + - col0 + - col0 ) IS NOT NULL AND ( 78 ) <> ( NULL ) @@ -7223,8 +7302,15 @@ SELECT col1 + - - col2 + + ( col0 ) FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -74 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \+ \(\- tab0\.col1\) AS col1" at position 0 and "tab0\.col0 \* \(\- tab0\.col1\) \* CAST\(Int64\(\-34\) AS Int32\) \* \(\- tab0\.col1\) \+ CAST\(NULL AS Int32\) \* Int64\(62\) \* Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 53 + + - col1 AS col1, col0 * - col1 * CAST ( - 34 AS INTEGER ) * - col1 + CAST ( NULL AS INTEGER ) * + 62 * ( + + 93 ) AS col1 FROM tab0 +---- +-134 +-54 +-74 +NULL +NULL +NULL query I rowsort label-1188 SELECT - col0 + + CAST ( + col1 AS INTEGER ) + - - 36 + - - 59 * - - col0 FROM tab1 @@ -7240,8 +7326,11 @@ SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= + + 24 * + col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-79\)\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 79 + - - CAST ( NULL AS INTEGER ) AS col0, 10 AS col0 FROM tab2 cor0 +---- +10 +NULL query I rowsort label-1191 SELECT DISTINCT + - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0 WHERE - 21 / - + 79 NOT IN ( col2, - col2, - + col2 * - + col0 + 53 + 55 * - col1 * - col0 / + - CAST ( col1 AS INTEGER ) ) @@ -7534,8 +7623,15 @@ SELECT + col2 * - - 34 FROM tab0 # Datafusion - Expected - 52 # Datafusion - Expected - 58 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 col1, 52 AS col1 FROM tab2 +---- +23 +40 +52 +52 +52 +58 query III rowsort label-1239 SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= 38 / - - 20 - - col1 * - - 66 * - CAST ( - col1 AS INTEGER ) @@ -8569,8 +8665,15 @@ SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL <> - col1 ) # Datafusion - Expected - 54 # Datafusion - Expected - -2314 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(26\) AS Int32\) \* \(\- CAST\(Int64\(89\) AS Int32\)\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( 26 AS INTEGER ) * + ( - CAST ( 89 AS INTEGER ) ) AS col2, 54 col2 FROM tab0 AS cor0 +---- +-2314 +-2314 +-2314 +54 +54 +54 query I rowsort SELECT ALL 61 * + 29 FROM tab0 @@ -8892,8 +8995,15 @@ SELECT DISTINCT col2 + col2 + - col1 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 4081 # Datafusion - Expected - 58 # Datafusion - Expected - 3551 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(53\) \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, + 53 * col1 AS col1 FROM tab2 cor0 +---- +23 +2703 +3551 +40 +4081 +58 query I rowsort SELECT ALL - col1 * + col0 * + 9 + ( - 73 ) FROM tab0 AS cor0 @@ -9043,8 +9153,15 @@ SELECT DISTINCT + MAX ( ALL + - col0 ) FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 44 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-44\)\) AS col2" at position 0 and "\(\- cor0\.col0\) / \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 44 AS col2, - col0 / + ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 cor0 +---- +44 +44 +44 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN 85 AND - 21 @@ -9542,8 +9659,15 @@ SELECT - col2 FROM tab0 AS cor0 WHERE NOT - 29 IS NULL # Datafusion - Expected - 85 # Datafusion - Expected - -7189 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(\-79\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * ( - 79 ) AS col2, col0 AS col2 FROM tab1 cor0 +---- +-4029 +-6715 +-7189 +51 +85 +91 query I rowsort label-1584 SELECT + + MIN ( - 38 ) * + + ( + 76 ) + - + COUNT ( * ) AS col0 FROM tab2 AS cor0 @@ -10040,8 +10164,11 @@ SELECT ALL - - 82 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-43\)\) AS col0" at position 0 and "Int64\(\-4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + MIN ( + - 43 ) AS col0, - 4 AS col0 FROM tab0 AS cor0 +---- +-4 +-43 query I rowsort SELECT ALL - + col0 * col2 + - - 54 AS col2 FROM tab2 AS cor0 @@ -12166,8 +12293,15 @@ SELECT DISTINCT - col2, - CAST ( NULL AS INTEGER ) + - - 30 FROM tab2 AS cor0 WH # Datafusion - Expected - 5576 # Datafusion - Expected - NULL # Datafusion - Expected - 7872 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) / tab1\.col2 \- \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-59\) AS col2" at position 0 and "Int64\(82\) \* tab1\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 34 / + col2 - - CAST ( NULL AS INTEGER ) * - 59 AS col2, 82 * col2 AS col2 FROM tab1 +---- +4838 +5576 +7872 +NULL +NULL +NULL query I rowsort SELECT - 0 + 53 AS col1 FROM tab0 @@ -12843,8 +12977,15 @@ SELECT DISTINCT - 53 + + ( + COUNT ( * ) ) FROM tab1 # Datafusion - Expected - 20 # Datafusion - Expected - 97 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, 20 AS col2 FROM tab0 +---- +15 +20 +20 +20 +87 +97 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT - col1 + col1 + + 10 * col2 NOT BETWEEN - - col0 AND + col0 / - - col2 @@ -13012,8 +13153,15 @@ SELECT ALL + - 20 * + + ( + - 70 ) + + col1 FROM tab1 cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 0 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) / \(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + + col1 ) / - - col0 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +-1 +-1 +0 +23 +40 +58 query I rowsort label-2165 SELECT DISTINCT col2 / - - ( - col0 ) / - col2 / - col2 FROM tab2 AS cor0 @@ -13308,8 +13456,15 @@ SELECT + col1 AS col0, ( col1 ) FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - -5424975 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* Int64\(\-25\) \* Int64\(\-57\) \* \(\- tab0\.col2\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * - 25 * - 57 * + - col2 AS col2, + col1 AS col2 FROM tab0 +---- +-141075 +-299250 +-5424975 +1 +21 +81 query II rowsort SELECT - 73 col0, col2 FROM tab1 @@ -13413,8 +13568,15 @@ SELECT - col2, + ( col1 ) + - 29 AS col1 FROM tab0 # Datafusion - Expected - -8554 # Datafusion - Expected - 714 # Datafusion - Expected - -4794 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* \(\- \(\- tab1\.col1\)\) AS col0" at position 0 and "Int64\(94\) \* \(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * + + ( - - col1 ) AS col0, 94 * - col0 AS col0 FROM tab1 +---- +-4794 +-7990 +-8554 +425 +4277 +714 query I rowsort SELECT ALL + col2 * + 57 FROM tab0 @@ -14692,8 +14854,15 @@ SELECT DISTINCT * FROM tab0 WHERE NOT ( - CAST ( - - col0 AS INTEGER ) ) + - col # Datafusion - Expected - 96 # Datafusion - Expected - 97 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, + 96 AS col2 FROM tab0 +---- +15 +87 +96 +96 +96 +97 query I rowsort label-2444 SELECT + + COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab1 AS cor0 @@ -14740,8 +14909,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <> - 37 + + + 23 + + col0 # Datafusion - Expected - 10 # Datafusion - Expected - 81 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 col0, col2 AS col0 FROM tab0 AS cor0 +---- +1 +10 +21 +47 +81 +99 query I rowsort label-2451 SELECT ALL - 97 - 76 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 @@ -14841,8 +15017,11 @@ SELECT * FROM tab0 WHERE NOT - col2 * - 90 >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -6692 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ sum\(tab0\.col1\) \* Int64\(\-65\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) + + SUM ( ALL + col1 ) * - 65 col2, COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 +---- +-6692 +NULL query I rowsort SELECT - col2 * + col0 * + + 58 + - col2 AS col1 FROM tab1 @@ -15086,8 +15265,15 @@ SELECT DISTINCT + col1 * + - CAST ( - + col0 AS INTEGER ) + - col1 AS col2 FROM # Datafusion - Expected - -40 # Datafusion - Expected - -197 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ \(\- cor0\.col2\) \- cor0\.col0 AS col0" at position 0 and "Int64\(\-40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 + - ( + col2 ) - col0 AS col0, - 40 AS col0 FROM tab0 AS cor0 +---- +-118 +-143 +-197 +-40 +-40 +-40 query I rowsort SELECT - 50 + - 27 col1 FROM tab1 AS cor0 @@ -16536,8 +16722,15 @@ SELECT ALL - col0 FROM tab0 WHERE 1 + 40 NOT IN ( 56 ) # Datafusion - Expected - 64 # Datafusion - Expected - -66 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 66 AS col2, + col0 col2 FROM tab2 +---- +-66 +-66 +-66 +46 +64 +75 query I rowsort label-2756 SELECT DISTINCT COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL @@ -16907,8 +17100,15 @@ SELECT ALL + 68 + + + 18 * - + col0 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -21 # Datafusion - Expected - 77 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* Int64\(77\) / \(\- cor0\.col2\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 * 77 / + ( - col2 ) AS col2, - col1 AS col2 FROM tab0 cor0 +---- +-1 +-21 +-81 +77 +77 +77 query I rowsort SELECT + 18 * - - col1 * col0 AS col0 FROM tab2 AS cor0 @@ -17002,8 +17202,15 @@ SELECT ALL 4 + - col0 * + col0 FROM tab0 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 AS col2, col1 AS col2 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT 88 + col1 AS col1 FROM tab2 AS cor0 @@ -20274,8 +20481,15 @@ SELECT ALL * FROM tab2 WHERE + 95 IS NOT NULL # Datafusion - Expected - 7 # Datafusion - Expected - -58 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( col2 ) AS col2, + 7 AS col2 FROM tab2 +---- +-23 +-40 +-58 +7 +7 +7 query I rowsort SELECT - + col2 * - 45 + 35 AS col1 FROM tab1 cor0 @@ -20526,8 +20740,15 @@ SELECT * FROM tab0 WHERE NOT ( + col0 ) >= + col2 # Datafusion - Expected - -7 # Datafusion - Expected - -5 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* Int64\(\-1\) AS col0" at position 0 and "Int64\(84\) \+ \(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + - 1 AS col0, + ( + 84 ) + - col0 AS col0 FROM tab1 +---- +-1 +-14 +-47 +-5 +-7 +33 query I rowsort label-3412 SELECT + COUNT ( * ) * + + 19 AS col0 FROM tab2 WHERE NOT NULL <> NULL @@ -21506,8 +21727,15 @@ SELECT DISTINCT 86 FROM tab2 cor0 # Datafusion - Expected - 373977 # Datafusion - Expected - -86 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col0" at position 0 and "cor0\.col1 \* \(\- Int64\(57\)\) \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 86 AS col0, + col1 * - ( + 57 ) * - col1 col0 FROM tab0 AS cor0 +---- +-86 +-86 +-86 +25137 +373977 +57 query III rowsort SELECT * FROM tab2 cor0 WHERE NOT col2 * 2 IN ( - col2, col1 * col1, - col0 * - 92, - + col0, - col1 ) @@ -21516,8 +21744,10 @@ SELECT * FROM tab2 cor0 WHERE NOT col2 * 2 IN ( - col2, col1 * col1, - col0 * - # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 14fc2d4e8380d44933dc3b8bf8b12575 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col0" at position 0 and "Int64\(71\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - 66 AS col0, col1 AS col2, 71 AS col0 FROM tab2 AS cor0 +---- +9 values hashing to c0506c6abfe6e95750340f251beaf917 query II rowsort SELECT ALL - col0 AS col1, - ( - 47 ) + + col0 AS col2 FROM tab2 AS cor0 @@ -21669,8 +21899,15 @@ SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 63 / CAST ( NULL AS INT # Datafusion - Expected - -47 # Datafusion - Expected - 40 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 40 AS col1, - col1 AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +40 +40 +40 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 55 = 98 @@ -21764,8 +22001,15 @@ SELECT DISTINCT - ( - ( - ( + 82 ) ) ), - col0 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 870 # Datafusion - Expected - -27 # Datafusion - Expected - 9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(27\)\) AS col1" at position 0 and "cor0\.col2 \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 27 col1, col2 * + + col0 AS col1 FROM tab0 AS cor0 +---- +-27 +-27 +-27 +705 +870 +9603 query I rowsort SELECT - 39 + - 76 FROM tab1 @@ -21835,8 +22079,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT + 59 + - 37 IS NOT NULL # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, col2 AS col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-3625 SELECT ALL CAST ( col0 AS INTEGER ) FROM tab1 WHERE NOT ( + col1 ) IS NOT NULL @@ -23082,8 +23333,15 @@ SELECT DISTINCT - CAST ( - COUNT ( ALL 28 ) AS INTEGER ) * - 10 FROM tab2 # Datafusion - Expected - 76 # Datafusion - Expected - 91 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "Int64\(\-9\) \+ tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, - 9 + col0 AS col1 FROM tab1 +---- +42 +51 +76 +82 +85 +91 query I rowsort SELECT DISTINCT 82 FROM tab0 WHERE - col2 + + col2 IS NOT NULL @@ -23494,8 +23752,15 @@ NULL # Datafusion - Expected - 87 # Datafusion - Expected - 4 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 / Int64\(23\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 / + + 23 AS col1, col0 AS col1 FROM tab0 +---- +0 +15 +3 +4 +87 +97 query III rowsort label-3900 SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) BETWEEN NULL AND - 25 @@ -23978,8 +24243,15 @@ SELECT DISTINCT + col0 + - 3 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Expected - -16 # Datafusion - Expected - 7469 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* \(\- \(\- CAST\(cor0\.col0 AS Int32\)\)\) AS col2" at position 0 and "\(\- cor0\.col0\) \+ cor0\.col1 \- Int64\(\-29\) \- \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 * - ( - CAST ( col0 AS INTEGER ) ) AS col2, - col0 + + col1 - - 29 - - col1 AS col2 FROM tab0 AS cor0 +---- +-16 +-66 +1155 +176 +6699 +7469 query I rowsort label-3977 SELECT ALL - - ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL @@ -24221,8 +24493,15 @@ SELECT - 71 AS col2 FROM tab0 cor0 WHERE NOT ( col1 * + 25 / + 9 + + col0 IS NUL # Datafusion - Expected - 0 # Datafusion - Expected - 3886 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* CAST\(\(\- cor0\.col1\) AS Int32\) AS col1" at position 0 and "cor0\.col2 \- \(\- \(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 * + + CAST ( - col1 AS INTEGER ) AS col1, col2 - - - col2 AS col1 FROM tab2 AS cor0 +---- +0 +0 +0 +1173 +3080 +3886 query I rowsort SELECT ALL + - ( + col0 ) AS col2 FROM tab1 AS cor0 @@ -25613,8 +25892,11 @@ SELECT ALL - - CAST ( NULL AS INTEGER ) col0 FROM tab2 WHERE + + 20 BETWEEN NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(6\) \- min\(tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, + 6 - MIN ( ALL col0 ) AS col1 FROM tab1 +---- +-45 +3 query III rowsort SELECT DISTINCT * FROM tab1 WHERE + col1 + + col2 BETWEEN + col2 + col2 * ( - col1 ) AND + ( + col2 ) + + col0 @@ -25659,8 +25941,15 @@ NULL # Datafusion - Expected - 59 # Datafusion - Expected - -91 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col0, 59 AS col0 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +59 +59 +59 query I rowsort SELECT + 63 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -26034,8 +26323,11 @@ 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 "\(\- sum\(DISTINCT cor0\.col0\)\) AS col1" at position 0 and "\(\- avg\(Int64\(44\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - + SUM ( DISTINCT col0 ) AS col1, - AVG ( ALL 44 ) AS col1 FROM tab1 AS cor0 WHERE NOT - 1 / - ( - 11 ) IS NOT NULL +---- +NULL +NULL query I rowsort SELECT ALL + + col0 * + col1 AS col2 FROM tab2 AS cor0 @@ -26599,8 +26891,15 @@ SELECT * FROM tab2 cor0 WHERE NOT + col1 + + col0 >= - col1 # Datafusion - Expected - 99 # Datafusion - Expected - 0 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab0\.col0\)\) / Int64\(\-64\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + ( - - col0 ) ) / + ( - 64 ) AS col0, + col2 AS col0 FROM tab0 +---- +-1 +-1 +0 +10 +47 +99 query I rowsort label-4419 SELECT ALL + - col2 + col2 / 98 AS col0 FROM tab2 AS cor0 @@ -26706,8 +27005,15 @@ SELECT - 6 AS col1 FROM tab1 cor0 # Datafusion - Expected - -17 # Datafusion - Expected - 96 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(\-17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, - 17 AS col1 FROM tab1 cor0 +---- +-17 +-17 +-17 +59 +68 +96 query I rowsort label-4435 SELECT ALL SUM ( DISTINCT col0 ) * + COUNT ( * ) + + COUNT ( * ) col1 FROM tab0 @@ -27212,8 +27518,15 @@ SELECT ALL - col0 AS col2, col0 FROM tab1 AS cor0 # Datafusion - Expected - 89 # Datafusion - Expected - 99 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * - + col2 AS col1, 89 AS col1 FROM tab0 AS cor0 +---- +210 +3807 +89 +89 +89 +99 query II rowsort SELECT ALL col1 AS col0, - col0 AS col2 FROM tab0 AS cor0 @@ -27833,8 +28146,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(50\) \+ \(\- Int64\(0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 64 AS col2, - COUNT ( * ) * + 50 + - + 0 AS col2 FROM tab1 cor0 +---- +-150 +64 query III rowsort SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN + - col1 AND ( + 22 ) @@ -27929,8 +28245,15 @@ SELECT ALL - - 33 / + col2 FROM tab2 AS cor0 # Datafusion - Expected - 26 # Datafusion - Expected - 91 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "cor0\.col0 \+ \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col0 AS col0, col0 + - col2 AS col0 FROM tab1 AS cor0 +---- +-45 +23 +26 +51 +85 +91 query IIIIII rowsort SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 81 IS NULL @@ -29594,8 +29917,15 @@ SELECT * FROM tab0 WHERE NOT + ( - col0 ) IS NULL # Datafusion - Expected - -54332 # Datafusion - Expected - 5 # Datafusion - Expected - -5015 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "Int64\(\-17\) \* tab1\.col2 \* \(\- \(\- tab1\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col0, - 17 * + col2 * + - ( - col1 ) AS col0 FROM tab1 +---- +-22848 +-5015 +-54332 +14 +47 +5 query I rowsort label-4909 SELECT DISTINCT - + COUNT ( * ) col1 FROM tab0 WHERE NOT - + 57 BETWEEN + + col0 * - - col2 AND NULL @@ -29826,8 +30156,9 @@ SELECT 92 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col1" at position 0 and "cor0\.col2 \+ \(\- Int64\(36\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 87 AS col1, col2 + - + 36 AS col1 FROM tab2 AS cor0 WHERE col1 NOT IN ( + + col1, 73 ) +---- query I rowsort SELECT ALL 93 + 30 * + 56 FROM tab1 AS cor0 WHERE NULL IS NOT NULL @@ -29920,8 +30251,15 @@ SELECT DISTINCT ( + 43 ) * + CAST ( - - COUNT ( * ) AS INTEGER ) - 71 FROM tab1 # Datafusion - Expected - 470 # Datafusion - Expected - 42 # Datafusion - Expected - 736 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "tab1\.col0 \* \(\- tab1\.col1\) \+ \(\- Int64\(\-10\)\) \+ Int64\(15\) \* CAST\(tab1\.col2 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 42 AS col0, col0 * + - ( col1 ) + - - 10 + 15 * CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 +---- +-3247 +42 +42 +42 +470 +736 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -30863,8 +31201,15 @@ SELECT - + col2 col1 FROM tab2 WHERE - + col1 BETWEEN ( - ( + 68 ) ) AND - col1 # Datafusion - Expected - 77 # Datafusion - Expected - 90 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 AS col0, 77 AS col0 FROM tab0 +---- +77 +77 +77 +90 +90 +90 query I rowsort SELECT col1 - 47 + + ( col2 ) col0 FROM tab2 @@ -31187,8 +31532,15 @@ SELECT DISTINCT ( 88 ) AS col0 FROM tab2 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2, + col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT 19 * - col0 * + ( + col2 ) AS col1 FROM tab2 @@ -31608,8 +31960,11 @@ 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\(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\. +query II valuesort SELECT ( + ( + + COUNT ( * ) ) ), COUNT ( * ) FROM tab0 +---- +3 +3 query I rowsort SELECT - - 14 * + col1 FROM tab0 cor0 @@ -31639,8 +31994,15 @@ SELECT - ( - 96 ) * - 0 + - + ( + col1 ) * - + col0 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 22 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 22 AS col2, 85 AS col2 FROM tab0 AS cor0 +---- +22 +22 +22 +85 +85 +85 query I rowsort SELECT ALL col2 + - - col1 FROM tab2 AS cor0 WHERE NOT NULL < col0 @@ -32187,8 +32549,15 @@ SELECT - COUNT ( * ) + - + ( + MAX ( DISTINCT - col1 ) ) + + COUNT ( * ) + - - C # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col1, col1 AS col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-5335 SELECT + MIN ( - 11 ) AS col0 FROM tab1 @@ -32223,8 +32592,11 @@ SELECT ALL - 71 / - + col2 AS col1, 53 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -162 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \* max\(Int64\(18\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 27 * MAX ( ALL + 18 ) / + COUNT ( * ) AS col0, + 51 AS col0 FROM tab0 +---- +-162 +51 query II rowsort SELECT DISTINCT + 58 * - - 28, col2 * - - col0 FROM tab1 AS cor0 WHERE NOT ( - col1 * + col0 IS NOT NULL ) @@ -33626,8 +33998,15 @@ SELECT 56 FROM tab0 AS cor0 WHERE NULL IS NULL # Datafusion - Expected - 87 # Datafusion - Expected - -81 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, col0 AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +15 +87 +97 query I rowsort SELECT DISTINCT + col0 + + + col1 AS col1 FROM tab2 AS cor0 @@ -33652,8 +34031,15 @@ SELECT - 39 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 # Datafusion - Expected - -22 # Datafusion - Expected - 9409 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col0 AS col2" at position 0 and "Int64\(\-22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * col0 AS col2, - 22 AS col2 FROM tab0 AS cor0 +---- +-22 +-22 +-22 +225 +7569 +9409 query I rowsort SELECT DISTINCT 82 * - 76 FROM tab1 AS cor0 @@ -34083,8 +34469,15 @@ SELECT * FROM tab2 AS cor0 WHERE CAST ( - col0 AS INTEGER ) + col0 - col0 IS NUL # Datafusion - Expected - -92 # Datafusion - Expected - 97 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "Int64\(\-92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col1, - 92 AS col1 FROM tab0 +---- +-92 +-92 +-92 +15 +87 +97 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * col2 < NULL @@ -34549,8 +34942,15 @@ SELECT ALL + - col1 * + col0 + - - col1 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -2992 # Datafusion - Expected - 0 # Datafusion - Expected - -4224 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- cor0\.col2\) AS col2" at position 0 and "Int64\(44\) \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 + - + col2 AS col2, + 44 * - col2 AS col2 FROM tab1 AS cor0 +---- +-2596 +-2992 +-4224 +0 +0 +0 query III rowsort SELECT * FROM tab1 AS cor0 WHERE + 60 IS NULL @@ -34961,8 +35361,15 @@ SELECT - MAX ( - col1 ) + + 2 FROM tab1 WHERE NULL IS NULL # Datafusion - Expected - -91 # Datafusion - Expected - -5 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col0" at position 0 and "\(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, - col0 AS col0 FROM tab1 +---- +-14 +-47 +-5 +-51 +-85 +-91 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NULL IS NULL OR NOT - col1 * - + 60 <> NULL @@ -35055,8 +35462,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 29 * col1 * - 21 / + + 84 + 27 * + - # Datafusion - Expected - 98 # Datafusion - Expected - 45 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 45 AS col0, 98 col0 FROM tab0 cor0 +---- +45 +45 +45 +98 +98 +98 query II rowsort SELECT ALL 73 + - - col0 AS col1, 83 FROM tab0 WHERE NOT - col2 IS NULL @@ -36213,8 +36627,11 @@ SELECT DISTINCT * FROM tab1 WHERE 87 + col2 NOT BETWEEN NULL AND ( + 70 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 81 AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +3 +81 query I rowsort label-6003 SELECT COUNT ( DISTINCT + col2 ) FROM tab0 AS cor0 @@ -36564,8 +36981,15 @@ NULL # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ \(\- cor0\.col0\) \+ cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col2\) / \(\- \(\- cor0\.col1\)\) \* \(\- Int64\(\-47\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 98 + - col0 + + col2 AS col1, - col2 / - - col1 * - - 47 AS col1 FROM tab2 AS cor0 +---- +0 +0 +0 +74 +75 +81 query I rowsort SELECT + + col1 + - ( - + 7 ) AS col1 FROM tab1 AS cor0 @@ -36605,8 +37029,15 @@ SELECT col0 * - 41 AS col0 FROM tab0 # Datafusion - Expected - 4 # Datafusion - Expected - NULL # Datafusion - Expected - 4 -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\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - CAST ( NULL AS FLOAT8 ) AS col1, + 4 AS col1 FROM tab0 AS cor0 +---- +4 +4 +4 +NULL +NULL +NULL query II rowsort SELECT + - col0 col0, 23 FROM tab2 cor0 WHERE col1 + col2 IS NULL @@ -36735,8 +37166,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(34\) \* min\(cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + - 84 ) / COUNT ( ALL col2 ) AS col2, - COUNT ( * ) + + 34 * + MIN ( ALL col0 ) AS col2 FROM tab2 cor0 +---- +-28 +1561 query I rowsort SELECT + 50 + - 76 FROM tab0 AS cor0 @@ -37093,8 +37527,15 @@ SELECT DISTINCT - - col2 * - - 81 * + - ( - + 97 ) FROM tab1 cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, + col1 col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-6144 SELECT ALL CAST ( - 18 AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0 @@ -37400,8 +37841,15 @@ NULL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col1, + col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-6198 SELECT ALL SUM ( 27 ) FROM tab0 @@ -37474,8 +37922,15 @@ SELECT + COUNT ( * ) - - - MAX ( DISTINCT col2 ) - + COUNT ( ALL - col1 ) FROM t # Datafusion - Expected - 15 # Datafusion - Expected - 9801 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- cor0\.col2\) \+ cor0\.col0 \+ \(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 * + - col2 + + col0 + - col0 AS col2, col0 AS col2 FROM tab0 AS cor0 +---- +100 +15 +2209 +87 +97 +9801 query I rowsort label-6211 SELECT ALL + col0 / + - 97 + - + col1 FROM tab1 AS cor0 @@ -37602,8 +38057,15 @@ SELECT DISTINCT + - 94 FROM tab1 cor0 WHERE NOT 76 < col0 # Datafusion - Expected - 98 # Datafusion - Expected - 5 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 col0, 98 AS col0 FROM tab1 AS cor0 +---- +14 +47 +5 +98 +98 +98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 @@ -37612,8 +38074,15 @@ SELECT + + col1 col0, 98 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - 0 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 / Int64\(98\) AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 / 98 AS col2, 91 AS col2 FROM tab2 +---- +0 +0 +0 +91 +91 +91 query I rowsort label-6233 SELECT DISTINCT - COUNT ( * ) * + + 57 * - + 94 AS col0 FROM tab2 @@ -38328,8 +38797,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- sum\(DISTINCT Int64\(52\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, - SUM ( DISTINCT 52 ) AS col1 FROM tab1 AS cor0 +---- +-52 +3 query I rowsort SELECT ALL col0 + + 46 FROM tab1 AS cor0 @@ -39167,8 +39639,15 @@ SELECT 41 AS col0 FROM tab1 WHERE ( + col2 + col2 ) IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - 9748 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* tab0\.col2 \+ \(\- tab0\.col1\) \+ Int64\(\-52\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * col2 + + - col1 + - 52 AS col0, CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab0 +---- +2076 +27 +9748 +NULL +NULL +NULL query I rowsort label-6496 SELECT DISTINCT SUM ( - 49 ) FROM tab1 @@ -39379,8 +39858,15 @@ SELECT ALL - col1 * - 63 + 91 FROM tab0 AS cor0 # Datafusion - Expected - -25 # Datafusion - Expected - 55 # Datafusion - Expected - -2209 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \- Int64\(36\) AS col2" at position 0 and "cor0\.col1 \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col0 - + 36 AS col2, + col1 * - col1 AS col2 FROM tab1 cor0 +---- +-196 +-2209 +-25 +15 +49 +55 query I rowsort SELECT ALL col1 - - 45 FROM tab2 cor0 @@ -40729,8 +41215,11 @@ 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\(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\. +query II valuesort SELECT + + COUNT ( * ) * + + COUNT ( * ) * ( - COUNT ( * ) ) - + 26 AS col2, SUM ( - + col2 ) AS col2 FROM tab0 cor0 +---- +-156 +-53 query I rowsort SELECT ALL + col1 * - col1 - - 59 FROM tab0 AS cor0 @@ -40770,8 +41259,15 @@ SELECT - + col0 FROM tab0 WHERE NOT col1 IS NULL # Datafusion - Expected - -87 # Datafusion - Expected - 97 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col1, - 87 AS col1 FROM tab0 +---- +-87 +-87 +-87 +15 +87 +97 query I rowsort label-6743 SELECT col1 * + CAST ( NULL AS INTEGER ) FROM tab0 @@ -40979,8 +41475,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col1, 38 / + 38 AS col1 FROM tab1 +---- +-3 +1 query III rowsort SELECT ALL * FROM tab0 WHERE NOT NULL > ( + - col0 ) @@ -42018,8 +42517,15 @@ SELECT ALL - col0 FROM tab0 WHERE NOT col2 + col0 - col2 <> ( col0 * 89 ) # Datafusion - Expected - -67 # Datafusion - Expected - 77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "\(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, - col1 AS col2 FROM tab2 +---- +-51 +-67 +-77 +51 +67 +77 query I rowsort label-6959 SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT + col0 IS NOT NULL @@ -42182,8 +42688,15 @@ SELECT + 70 AS col1, - col0 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 69 # Datafusion - Expected - 75 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col0 AS col0, 69 col0 FROM tab2 AS cor0 +---- +46 +64 +69 +69 +69 +75 query I rowsort label-6983 SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 @@ -42807,8 +43320,15 @@ SELECT ALL - 65 / - MIN ( ALL - + 1 ) + + 9 FROM tab1 AS cor0 # Datafusion - Expected - -10 # Datafusion - Expected - 5 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) / tab0\.col0 AS col1" at position 0 and "\(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 87 / col0 AS col1, - col2 AS col1 FROM tab0 +---- +-10 +-47 +-99 +0 +1 +5 query I rowsort SELECT ( - + ( - ( + + col1 ) ) ) * col1 + + - col1 AS col0 FROM tab2 @@ -42958,8 +43478,15 @@ SELECT ALL * FROM tab0 cor0 WHERE NOT - 51 * - - CAST ( NULL AS INTEGER ) * + co # Datafusion - Expected - -6075 # Datafusion - Expected - 77 # Datafusion - Expected - -5184 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(\-81\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, - 81 * col0 AS col0 FROM tab2 AS cor0 +---- +-3726 +-5184 +-6075 +51 +67 +77 query I rowsort SELECT DISTINCT - col2 * - + 73 FROM tab2 AS cor0 WHERE 96 * + + col1 BETWEEN col2 / - 23 AND NULL @@ -43035,8 +43562,15 @@ SELECT DISTINCT col2 + - col0 + col0 AS col0 FROM tab1 # Datafusion - Expected - 6 # Datafusion - Expected - -1917 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \+ \(\- \(\- cor0\.col0\)\) \* \(\- cor0\.col1\) AS col2" at position 0 and "Int64\(\-6\) / \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 + - - col0 * - col1 col2, - 6 / - col1 col2 FROM tab0 cor0 +---- +-1305 +-187 +-1917 +0 +0 +6 query II rowsort SELECT col1 + + + 91 * + + 18 AS col1, 48 FROM tab0 AS cor0 @@ -43122,8 +43656,9 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 87 ) IS NULL 9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL +---- query I rowsort SELECT ALL 73 AS col1 FROM tab1 cor0 @@ -43266,8 +43801,15 @@ SELECT col1 - - - 89 * - + 82 AS col0 FROM tab0 # Datafusion - Expected - -88 # Datafusion - Expected - NULL # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \- \(\- CAST\(NULL AS Int32\)\) \* \(\- \(\- tab1\.col1\)\) AS col0" at position 0 and "Int64\(\-88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 - - + CAST ( NULL AS INTEGER ) * - - col1 AS col0, - 88 AS col0 FROM tab1 +---- +-88 +-88 +-88 +NULL +NULL +NULL query I rowsort label-7162 SELECT DISTINCT - MIN ( 0 ) * + + 13 AS col2 FROM tab0 @@ -43567,8 +44109,11 @@ SELECT DISTINCT + MAX ( + col2 ) * + - ( - COUNT ( * ) ) * + COUNT ( * ) FROM ta # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "max\(Int64\(\-76\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, + MAX ( ALL - 76 ) AS col1 FROM tab1 AS cor0 +---- +-76 +3 query I rowsort label-7209 SELECT MAX ( ALL - col1 ) AS col0 FROM tab1 @@ -44790,8 +45335,15 @@ SELECT ( COUNT ( - - 44 ) ) AS col2 FROM tab2 # Datafusion - Expected - 4928 # Datafusion - Expected - 75 # Datafusion - Expected - 5025 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col0 \* \(\- \(\- tab2\.col1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, col0 * - - col1 col1 FROM tab2 +---- +2346 +46 +4928 +5025 +64 +75 query III rowsort SELECT ALL * FROM tab0 WHERE 32 * + 40 <= - + 94 @@ -44915,8 +45467,11 @@ SELECT - col0 col0 FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN ( NULL ) AND col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -121 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- cor0\.col2\)\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( - col2 ) AS col1, 99 AS col1 FROM tab2 AS cor0 +---- +-121 +99 query I rowsort SELECT - col2 * + + col0 * + + 94 FROM tab1 AS cor0 @@ -45429,8 +45984,15 @@ NULL # Datafusion - Expected - -2560 # Datafusion - Expected - 0 # Datafusion - Expected - -4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \+ tab2\.col2 AS col0" at position 0 and "\(\- tab2\.col0\) \* tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 + col2 AS col0, - col0 * col2 col0 FROM tab2 +---- +-1058 +-2560 +-4350 +0 +0 +0 query I rowsort SELECT 38 AS col2 FROM tab1 WHERE NULL IS NOT NULL @@ -46118,8 +46680,15 @@ SELECT DISTINCT COUNT ( * ) + - 93 FROM tab2 # Datafusion - Expected - -1 # Datafusion - Expected - 84 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ Int64\(37\) \+ \(\- cor0\.col0\) \+ cor0\.col1 AS col2" at position 0 and "cor0\.col2 / Int64\(\-94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( col0 ) + + 37 + - col0 + + col1 AS col2, col2 / - 94 col2 FROM tab1 AS cor0 +---- +-1 +0 +0 +42 +51 +84 query I rowsort label-7638 SELECT DISTINCT + ( - + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE col0 + col2 + - col1 <> NULL @@ -47918,8 +48487,15 @@ NULL # Datafusion - Expected - 4845 # Datafusion - Expected - -16 # Datafusion - Expected - 5187 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col0" at position 0 and "\(\- tab1\.col0\) \* Int64\(\-57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 16 AS col0, - col0 * + - 57 AS col0 FROM tab1 +---- +-16 +-16 +-16 +2907 +4845 +5187 query I rowsort SELECT col0 * + - col1 + ( - + col2 ) + - col1 + - 79 AS col0 FROM tab0 WHERE ( NULL ) >= NULL @@ -48224,8 +48800,15 @@ SELECT col0 + + 62 AS col0 FROM tab0 # Datafusion - Expected - 97 # Datafusion - Expected - 32 # Datafusion - Expected - 1215 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col0\) \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 + - col0 AS col1, - col0 * - col1 AS col1 FROM tab0 AS cor0 +---- +-77 +1215 +1827 +2 +32 +97 query I rowsort label-7975 SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + col2 * + + col0 AS col2 FROM tab2 cor0 @@ -48515,8 +49098,15 @@ SELECT ALL - 8 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - -47 # Datafusion - Expected - -5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1, - col1 FROM tab1 AS cor0 +---- +-14 +-14 +-47 +-47 +-5 +-5 query I rowsort label-8023 SELECT + MAX ( + + col1 ) FROM tab1 AS cor0 @@ -48608,8 +49198,10 @@ SELECT ALL - COUNT ( * ) + 49 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 32da034709828b6bb31136e99ad9ddc6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 89 AS col2, - col0 + + col2 + + ( + 8 ) * + col2, col0 AS col2 FROM tab1 AS cor0 +---- +9 values hashing to 36afc1554eaaa883bd98ce2efa19069f query I rowsort label-8039 SELECT + COUNT ( * ) - + 44 + + + 43 * COUNT ( * ) col2 FROM tab1 AS cor0 @@ -48860,8 +49452,15 @@ SELECT ( + col2 ) * - col0 AS col2 FROM tab2 # Datafusion - Expected - 29 # Datafusion - Expected - 97 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, + 29 AS col2 FROM tab0 +---- +15 +29 +29 +29 +87 +97 query II rowsort SELECT 21 AS col0, - col0 FROM tab2 AS cor0 @@ -49330,8 +49929,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 AS col1, - COUNT ( * ) AS col1 FROM tab2 +---- +-3 +55 query I rowsort label-8159 SELECT DISTINCT COUNT ( * ) + - 83 FROM tab1 @@ -49545,8 +50147,15 @@ SELECT ALL + + 13 FROM tab0 AS cor0 WHERE NOT 94 NOT IN ( - col2 + - col0, + 14 # Datafusion - Expected - 14651 # Datafusion - Expected - 0 # Datafusion - Expected - 9639 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) / tab1\.col2 AS col1" at position 0 and "tab1\.col0 \* tab1\.col2 \+ Int64\(93\) \* tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 / col2 AS col1, + col0 * + col2 + + 93 * col0 AS col1 FROM tab1 +---- +0 +0 +0 +12920 +14651 +9639 query I rowsort SELECT DISTINCT col1 + 36 - + col2 col2 FROM tab2 @@ -50149,8 +50758,15 @@ NULL # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col1, col1 col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-8298 SELECT - SUM ( ALL - 94 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 @@ -50612,8 +51228,11 @@ SELECT 39 * + + 61 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, - COUNT ( * ) AS col0 FROM tab1 +---- +-3 +3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 @@ -50632,8 +51251,15 @@ SELECT DISTINCT col2, col0 AS col2 FROM tab1 # Datafusion - Expected - -29 # Datafusion - Expected - 75 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, - 29 AS col2 FROM tab2 +---- +-29 +-29 +-29 +46 +64 +75 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -54157,8 +54783,11 @@ SELECT col0 + - - 92 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -138 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-79\)\) \* \(\- count\(Int64\(16\)\)\) \+ Int64\(98\) \+ count\(DISTINCT Int64\(19\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 79 * - COUNT ( 16 ) + 98 + COUNT ( DISTINCT 19 ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 +---- +-138 +NULL query II rowsort label-8948 SELECT DISTINCT - + COUNT ( * ) AS col2, + 69 col1 FROM tab1 AS cor0 @@ -54599,8 +55228,15 @@ SELECT col2 + - 21 * - col2 + - + col1 FROM tab1 # Datafusion - Expected - 1827 # Datafusion - Expected - -97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col0 \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 AS col2, + col0 * + col1 AS col2 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +1215 +1827 +97 query I rowsort label-9018 SELECT - ( - col1 ) / + + ( + col0 ) FROM tab0 cor0 @@ -54663,8 +55299,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT 81 NOT BETWEEN 29 AND - col2 # Datafusion - Expected - 47 # Datafusion - Expected - 77 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 AS col1, + col2 AS col1 FROM tab0 cor0 +---- +10 +47 +77 +77 +77 +99 query I rowsort label-9028 SELECT ALL + MIN ( DISTINCT 91 ) * 67 FROM tab0 AS cor0 @@ -55038,8 +55681,15 @@ NULL # Datafusion - Expected - 8281 # Datafusion - Expected - 5 # Datafusion - Expected - 7225 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col0 \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, col0 * col0 AS col0 FROM tab1 AS cor0 +---- +14 +2601 +47 +5 +7225 +8281 query I rowsort label-9088 SELECT DISTINCT - - ( ( + + ( MIN ( + + ( + 11 ) ) ) ) ) AS col2 FROM tab1 AS cor0 @@ -55144,8 +55794,15 @@ SELECT DISTINCT col2 + - 82 FROM tab2 # Datafusion - Expected - 0 # Datafusion - Expected - 97 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, - 0 AS col1 FROM tab0 +---- +0 +0 +0 +15 +87 +97 query I rowsort label-9105 SELECT ALL col1 + + col2 * 6 / - 72 FROM tab1 @@ -55253,8 +55910,11 @@ SELECT - + 67 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(86\) \+ \(\- CAST\(NULL AS Float64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + COUNT ( * ) AS col2, + 86 + - CAST ( NULL AS FLOAT8 ) AS col2 FROM tab0 +---- +3 +NULL query III rowsort label-9124 SELECT DISTINCT 17 + - - CAST ( - - 71 AS INTEGER ) AS col2, + COUNT ( * ) * - - MIN ( DISTINCT - - col1 ) AS col1, - 25 FROM tab2 @@ -56085,8 +56745,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ), + COUNT ( * ) FROM tab1 AS cor0 +---- +3 +3 query I rowsort label-9260 SELECT ALL + col1 * ( + col2 ) - + ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0 @@ -56526,8 +57189,15 @@ SELECT ALL 28 * - 42 * - col1 AS col0 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - -49 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(49\)\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - + 49 ) AS col2, col0 AS col2 FROM tab0 +---- +-49 +-49 +-49 +15 +87 +97 query I rowsort label-9333 SELECT COUNT ( * ) * + + MIN ( ALL - col1 ) AS col2 FROM tab1 @@ -57740,8 +58410,15 @@ SELECT DISTINCT ( + 73 ) AS col2 FROM tab0 # Datafusion - Expected - 87 # Datafusion - Expected - -44 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 44 col1, + ( col0 ) AS col1 FROM tab0 AS cor0 +---- +-44 +-44 +-44 +15 +87 +97 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT - col1 = col0 @@ -58060,8 +58737,15 @@ SELECT ALL - col2 + - 34, col2 FROM tab0 # Datafusion - Expected - -68 # Datafusion - Expected - -41 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col2" at position 0 and "\(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 41 AS col2, - col2 AS col2 FROM tab1 +---- +-41 +-41 +-41 +-59 +-68 +-96 query I rowsort label-9582 SELECT - MIN ( ALL - col2 ) AS col1 FROM tab1 @@ -58958,8 +59642,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 8 ) col0, + 32 * COUNT ( * ) + - 24 AS col0 FROM tab1 cor0 +---- +72 +8 query III rowsort SELECT * FROM tab0 cor0 WHERE + 28 + + col1 IS NULL @@ -59104,8 +59791,15 @@ SELECT DISTINCT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT + 26 IS NOT NULL # Datafusion - Expected - 68 # Datafusion - Expected - 53 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 53 AS col0, + col2 col0 FROM tab1 AS cor0 +---- +53 +53 +53 +59 +68 +96 query III rowsort SELECT * FROM tab1 WHERE + 65 <= + ( col2 ) @@ -59398,8 +60092,15 @@ NULL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 AS col0, col1 AS col0 FROM tab0 +---- +1 +21 +81 +81 +81 +81 query II rowsort SELECT DISTINCT col2, - col0 * + - 34 * + col2 + col0 FROM tab0 @@ -59955,8 +60656,15 @@ SELECT - + ( + - col2 ) / + + 72 col2 FROM tab2 AS cor0 # Datafusion - Expected - -16 # Datafusion - Expected - -58 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(48\) \- cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col2, + 48 - col0 col2 FROM tab2 AS cor0 +---- +-16 +-23 +-27 +-40 +-58 +2 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -60132,8 +60840,10 @@ SELECT ALL col0 / + col0 + + ( - col2 ) + - 9 * col0 FROM tab0 WHERE + - col0 IS # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 8f0b9eeb092dc48275b22185307d79a3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col0" at position 1 and "\(\- tab2\.col2\) / Int64\(55\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 31 * + - CAST ( NULL AS INTEGER ) * 85, + 50 AS col0, ( - + col2 ) / + + 55 AS col0 FROM tab2 +---- +9 values hashing to 66d74585a55231b07cc46a304782e023 query I rowsort SELECT - - 70 / col0 FROM tab1 WHERE NOT NULL IN ( col1, col1 * - 75 / - ( + 11 ) ) @@ -60391,8 +61101,15 @@ SELECT ALL 52 + COUNT ( * ) + COUNT ( * ) FROM tab0 # Datafusion - Expected - -23 # Datafusion - Expected - 8 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ \(\- tab2\.col1\) AS col2" at position 0 and "\(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 + - col1 AS col2, - col2 AS col2 FROM tab2 +---- +-13 +-23 +-40 +-5 +-58 +8 query I rowsort SELECT + + col0 + 32 AS col0 FROM tab0 cor0 diff --git a/data/sqlite/random/aggregates/slt_good_85.slt b/data/sqlite/random/aggregates/slt_good_85.slt index c0f85a8..acfc8bd 100644 --- a/data/sqlite/random/aggregates/slt_good_85.slt +++ b/data/sqlite/random/aggregates/slt_good_85.slt @@ -105,8 +105,11 @@ SELECT ALL + SUM ( col2 ) 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\(\-60\) 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 II valuesort SELECT - 60 AS col0, COUNT ( - - 95 ) AS col0 FROM tab0 +---- +-60 +3 query I rowsort label-11 SELECT 1 * + COUNT ( * ) FROM tab1 @@ -339,8 +342,15 @@ SELECT 54 + - col0 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -21 # Datafusion - Expected - 9 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 9 AS col1, - col1 AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +9 +9 +9 query I rowsort label-51 SELECT ALL - + MAX ( ALL - col1 ) FROM tab2 AS cor0 @@ -588,8 +598,15 @@ SELECT 67 + col1 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - -81 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 col0, col2 AS col0 FROM tab0 AS cor0 +---- +-81 +-81 +-81 +10 +47 +99 query III rowsort SELECT ALL * FROM tab0 WHERE 88 NOT IN ( + col1 ) @@ -1078,8 +1095,15 @@ SELECT + COUNT ( col0 ) FROM tab2 AS cor0 WHERE NOT 36 >= + col1 # Datafusion - Expected - -7225 # Datafusion - Expected - 0 # Datafusion - Expected - -8281 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) / Int64\(56\) AS col0" at position 0 and "CAST\(\(\- cor0\.col0\) AS Int32\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 / + 56 AS col0, CAST ( + - col0 AS INTEGER ) * + col0 AS col0 FROM tab1 AS cor0 +---- +-2601 +-7225 +-8281 +0 +0 +0 query I rowsort SELECT col2 FROM tab1 AS cor0 WHERE ( 40 * 14 ) > - ( - 40 ) @@ -2094,8 +2118,9 @@ SELECT DISTINCT + col1 / col1 col0 FROM tab1 AS cor0 1 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ Int64\(\-96\) \- tab1\.col2 AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col0 + + - 96 - + col2 AS col1, 40 AS col1 FROM tab1 WHERE NOT NULL = - 40 * + - col0 +---- query I rowsort label-345 SELECT ALL COUNT ( DISTINCT - 78 ) FROM tab0, tab2 AS cor0 @@ -2896,8 +2921,15 @@ SELECT ALL col0 - - ( - - 26 ) FROM tab2 AS cor0 # Datafusion - Expected - -18291 # Datafusion - Expected - 79 # Datafusion - Expected - -57186 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \- Int64\(\-32\) AS col1" at position 0 and "cor0\.col1 \* cor0\.col0 \* \(\- cor0\.col2\) \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 - + - 32 AS col1, + col1 * col0 * - col2 + - col1 AS col1 FROM tab0 AS cor0 +---- +-18291 +-57186 +-9604 +131 +42 +79 query I rowsort label-469 SELECT ALL - SUM ( col1 ) FROM tab0 AS cor0 @@ -4985,8 +5017,11 @@ SELECT DISTINCT + + MAX ( - ( - + col1 ) ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col0" at position 0 and "Int64\(\-36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 98 col0, - 36 AS col0 FROM tab2 AS cor0 WHERE ( + col0 * - + 77 ) NOT BETWEEN 19 AND NULL +---- +-36 +-98 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = 89 @@ -5093,8 +5128,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) + + 18 AS col2, 61 - + - 26 AS col2 FROM tab0 cor0 +---- +21 +87 query I rowsort SELECT - - col0 + + 30 FROM tab2 AS cor0 @@ -5191,8 +5229,11 @@ SELECT 36 AS col0, - col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col2" at position 0 and "Int64\(67\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 50 AS col2, 67 - + + COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +-50 +64 query II rowsort SELECT + col2 col2, col0 FROM tab2 AS cor0 @@ -5364,8 +5405,15 @@ SELECT ALL - 44 + COUNT ( * ) col0, 82 AS col2 FROM tab1 WHERE NOT NULL NOT BETW # Datafusion - Expected - 809 # Datafusion - Expected - -97 # Datafusion - Expected - 8216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(83\) \* cor0\.col2 \- cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 col1, 83 * + ( col2 ) - col1 AS col1 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +3820 +809 +8216 query I rowsort label-876 SELECT DISTINCT + - CAST ( + - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0 @@ -5566,8 +5614,11 @@ SELECT col1 * + - ( - - 18 ) AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 111 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( 37 ) * + COUNT ( * ) AS col1, 93 AS col1 FROM tab0 +---- +111 +93 query III rowsort SELECT ALL * FROM tab0 WHERE NOT col1 * + col0 > NULL @@ -6519,8 +6570,11 @@ SELECT ALL + + col1 / + + col1 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(74\) \+ Int64\(\-19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col2, + 74 + + - 19 AS col2 FROM tab2 AS cor0 +---- +55 +NULL query II rowsort label-1070 SELECT 32, COUNT ( * ) col2 FROM tab0 AS cor0 @@ -6963,8 +7017,15 @@ SELECT DISTINCT - col0, + col1 AS col0 FROM tab0 # Datafusion - Expected - 21 # Datafusion - Expected - 1 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 / \(\- \(\- tab2\.col2\)\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 / + ( - - col2 ) col0, 21 AS col0 FROM tab2 +---- +1 +1 +1 +21 +21 +21 query I rowsort label-1139 SELECT DISTINCT 15 / + COUNT ( * ) col0 FROM tab1 @@ -6973,8 +7034,10 @@ SELECT DISTINCT 15 / + COUNT ( * ) col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 543eee3438d1c875db7efdf026a1f0b8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "Int64\(8\) \+ tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT col0 AS col2, + 8 + col0 col2, - col2 AS col1 FROM tab1 +---- +9 values hashing to c29751c3d1df936f5e031a00a4b5cb3e query I rowsort SELECT + col0 * + 82 FROM tab1 WHERE NOT - 59 IN ( - col2 * - - ( col1 ) + + col2, - ( col2 ) * - - col2 + col0 ) @@ -7552,8 +7615,15 @@ SELECT 57 AS col1 FROM tab0 cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col0, col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query III rowsort SELECT * FROM tab1 WHERE NOT ( + col2 IS NULL ) @@ -7747,8 +7817,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) / - 63 AS col2, 31 AS col2 FROM tab1 AS cor0 WHERE NOT + 49 NOT BETWEEN ( NULL ) AND col2 * - col0 +---- +0 +31 query I rowsort label-1267 SELECT DISTINCT + - MAX ( + col0 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0 @@ -7987,8 +8060,10 @@ SELECT ALL COUNT ( col1 ) AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 3400d03f54de437d969b196a153efad0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ Int64\(\-85\) AS col0" at position 1 and "\(\- CAST\(Int64\(\-71\) AS Int32\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 59, col1 + - 85 AS col0, - CAST ( - 71 AS INTEGER ) AS col0 FROM tab2 AS cor0 +---- +9 values hashing to 78e3013c355fc3a7f2a12ecdffcf1aa7 query I rowsort label-1310 SELECT + COUNT ( * ) * + 13 * - 23 + COUNT ( * ) AS col1 FROM tab0 cor0 @@ -8023,8 +8098,11 @@ SELECT * FROM tab1 WHERE NOT 88 >= + 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT CAST ( NULL AS FLOAT8 ) AS col2, 21 AS col2 FROM tab1 +---- +21 +NULL query I rowsort label-1316 SELECT MIN ( DISTINCT - col1 ) AS col2 FROM tab1 @@ -8354,8 +8432,15 @@ SELECT + 45 - col0 + + col0 * + col2 * + col1 * col0 FROM tab1 # Datafusion - Expected - 142 # Datafusion - Expected - 155 # Datafusion - Expected - 153 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ Int64\(80\) AS col2" at position 0 and "Int64\(78\) \+ \(\- \(\- tab2\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 + 80 AS col2, 78 + - - col0 AS col2 FROM tab2 +---- +124 +126 +142 +144 +153 +155 query I rowsort SELECT + 63 - col1 FROM tab0 @@ -9662,8 +9747,15 @@ SELECT ( + col2 ) FROM tab1 AS cor0 WHERE NOT ( NOT ( - col0 ) IN ( + col1 ) ) # Datafusion - Expected - NULL # Datafusion - Expected - 540000 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* Int64\(96\) \* tab2\.col0 AS col1" at position 0 and "CAST\(NULL AS Int32\) / tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * + 96 * + col0 AS col1, CAST ( NULL AS INTEGER ) / + + col1 AS col1 FROM tab2 +---- +203136 +393216 +540000 +NULL +NULL +NULL query I rowsort SELECT ALL ( 60 ) FROM tab2 @@ -9904,8 +9996,15 @@ SELECT ALL - col2 col1 FROM tab0 WHERE CAST ( col1 AS INTEGER ) IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, + col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query II rowsort SELECT ALL - col2, col0 FROM tab2 @@ -10079,8 +10178,15 @@ SELECT DISTINCT - col1 * - col1 - + - col1 AS col0 FROM tab1 cor0 # Datafusion - Expected - 21 # Datafusion - Expected - -81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, col1 AS col0 FROM tab0 cor0 +---- +-1 +-21 +-81 +1 +21 +81 query II rowsort SELECT ALL + col2, + 4 AS col0 FROM tab0 AS cor0 @@ -10136,8 +10242,15 @@ SELECT DISTINCT + COUNT ( - 71 ) FROM tab0 AS cor0 # Datafusion - Expected - 75 # Datafusion - Expected - 5929 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* tab2\.col1 AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 * + ( + col1 ) AS col2, col0 AS col2 FROM tab2 +---- +2601 +4489 +46 +5929 +64 +75 query II rowsort label-1672 SELECT ALL - 33 * col1 AS col1, + CAST ( 78 AS INTEGER ) * - CAST ( col1 AS INTEGER ) AS col2 FROM tab0 @@ -10305,8 +10418,15 @@ SELECT + + ( - col0 ) * col0 + - col1 FROM tab0 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 col2, col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-1700 SELECT col2 * CAST ( - 2 AS INTEGER ) FROM tab1 AS cor0 @@ -10478,8 +10598,11 @@ SELECT + 30 * 61 - + + col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) + + COUNT ( * ) AS col1, + 87 AS col1 FROM tab1 +---- +6 +87 query III rowsort SELECT * FROM tab1 WHERE NOT + col2 * 79 IS NULL @@ -10837,8 +10960,11 @@ SELECT + 8 col0 FROM tab2 AS cor0 WHERE col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 +---- +9 +9 query I rowsort SELECT + 76 + - 63 FROM tab2 @@ -11229,8 +11355,15 @@ SELECT CAST ( + - 87 AS INTEGER ) FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, + col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-1855 SELECT ALL + MAX ( DISTINCT - - ( col1 ) ) FROM tab1 @@ -11257,8 +11390,10 @@ SELECT + - COUNT ( * ) AS col1 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 81156f75f11c08a58c7936f4f08c9a78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col1\) \- cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT col1 AS col0, - ( col1 ) - + col0 AS col0, + ( + - 13 ) FROM tab2 AS cor0 +---- +9 values hashing to 87877a5ee1dc2955622e27887dac6803 query I rowsort SELECT - + 1 AS col2 FROM tab1 cor0 WHERE NOT - col1 * - col0 <> - col2 @@ -11375,8 +11510,11 @@ SELECT - + 90 * + 26 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "max\(DISTINCT cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 17 AS col1, MAX ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0 +---- +17 +99 query I rowsort SELECT col1 - - col0 * 19 * + col0 * + + col2 FROM tab2 AS cor0 @@ -11457,8 +11595,11 @@ SELECT DISTINCT + col0 / - - col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col0, COUNT ( * ) col0 FROM tab1 +---- +3 +3 query II rowsort SELECT + 20 col1, - col1 + 45 FROM tab0 AS cor0 @@ -11572,8 +11713,11 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE 16 + + + col1 NOT BETWEEN col2 AND - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 207 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- sum\(\(\- tab1\.col1\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 * + COUNT ( * ) AS col0, - SUM ( + - col1 ) AS col0 FROM tab1 +---- +207 +66 query I rowsort SELECT DISTINCT - col2 + - col2 + - 48 + - - col0 AS col2 FROM tab1 @@ -12182,8 +12326,15 @@ SELECT ALL + col1 AS col0, col1 * - + col0 FROM tab2 WHERE - + col2 IS NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, + col0 AS col2 FROM tab0 +---- +15 +15 +87 +87 +97 +97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 @@ -12192,8 +12343,15 @@ SELECT col0 AS col2, + col0 AS col2 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 +---- +59 +68 +96 +NULL +NULL +NULL query I rowsort SELECT - col0 + + - 35 FROM tab0 WHERE NOT col0 IS NULL @@ -12305,8 +12463,15 @@ SELECT DISTINCT 11 / + MIN ( - col2 ) * + COUNT ( * ) col1 FROM tab2 # Datafusion - Expected - 11 # Datafusion - Expected - -663 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \- \(\- tab1\.col0\) \* \(\- tab1\.col1\) AS col1" at position 0 and "\(\- Int64\(\-11\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 - - col0 * + - col1 AS col1, - ( - 11 ) col1 FROM tab1 +---- +-340 +-4186 +-663 +11 +11 +11 query I rowsort SELECT + col2 - 41 col1 FROM tab1 @@ -12607,8 +12772,11 @@ SELECT - col1 / + ( col1 ) + + 49 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +3 +3 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -12815,8 +12983,15 @@ NULL # Datafusion - Expected - 4 # Datafusion - Expected - 54 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \- Int64\(43\) AS col0" at position 0 and "Int64\(46\) / tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 - + 43 AS col0, 46 / + + col2 AS col0 FROM tab0 +---- +-28 +0 +0 +4 +44 +54 query I rowsort label-2121 SELECT DISTINCT - + 7 * + col2 * - col1 FROM tab0 WHERE + + CAST ( + col1 AS INTEGER ) IS NOT NULL @@ -12896,8 +13071,15 @@ SELECT col1 * - - 59 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 AS col2, - col1 AS col2 FROM tab1 AS cor0 +---- +-14 +-14 +-47 +-47 +-5 +-5 query I rowsort label-2133 SELECT COUNT ( * ) col0 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 ) @@ -13744,8 +13926,15 @@ SELECT ALL 11 / - MAX ( DISTINCT col0 ) FROM tab2 # Datafusion - Expected - -12474 # Datafusion - Expected - 61 # Datafusion - Expected - -8262 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col1" at position 0 and "Int64\(\-3\) \* Int64\(\-54\) \* \(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 col1, - 3 * + - 54 * - col1 AS col1 FROM tab2 +---- +-10854 +-12474 +-8262 +61 +61 +61 query I rowsort SELECT 96 FROM tab2 WHERE NOT - - col2 IS NOT NULL @@ -13763,8 +13952,15 @@ SELECT DISTINCT 89 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 13 # Datafusion - Expected - 58 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, 13 AS col1 FROM tab2 +---- +13 +13 +13 +23 +40 +58 query I rowsort SELECT DISTINCT + 44 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 @@ -14240,8 +14436,15 @@ SELECT ALL - col0 * 41 AS col1 FROM tab2 # Datafusion - Expected - 91 # Datafusion - Expected - -96 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + - col2 ) AS col1, col0 AS col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +51 +85 +91 query I rowsort SELECT ( 90 ) AS col0 FROM tab1 cor0 @@ -14823,8 +15026,15 @@ SELECT ALL col0 * - - col0 AS col2 FROM tab2 # Datafusion - Expected - 37 # Datafusion - Expected - -83 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col0" at position 0 and "Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 83 col0, + 37 col0 FROM tab1 +---- +-83 +-83 +-83 +37 +37 +37 query II rowsort SELECT 41 AS col2, - ( - ( - col2 ) ) + + + 32 AS col0 FROM tab0 @@ -14882,8 +15092,15 @@ SELECT + col1 * col1 / + + CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - -672 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* \(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 * - col2 col1, col0 AS col1 FROM tab1 AS cor0 +---- +-413 +-476 +-672 +51 +85 +91 query I rowsort label-2448 SELECT - - col0 AS col1 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + - 20 + - col1 NOT BETWEEN - 16 / 4 AND + - 29 @@ -15485,8 +15702,15 @@ SELECT col0 AS col2, - 22 AS col0 FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, col1 AS col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-2544 SELECT - ( MAX ( - + 55 ) ) / + + COUNT ( * ) AS col2 FROM tab0 cor0 @@ -16527,8 +16751,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL # Datafusion - Expected - NULL # Datafusion - Expected - -81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col1 col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +NULL +NULL +NULL query II rowsort label-2724 SELECT ALL + COUNT ( * ) AS col1, 8 FROM tab2 @@ -16575,8 +16806,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 28 AS col0, - COUNT ( * ) AS col0 FROM tab0 cor0 +---- +-28 +-3 query I rowsort SELECT DISTINCT + + 32 AS col2 FROM tab1 cor0 WHERE col0 IS NULL @@ -16627,8 +16861,15 @@ SELECT DISTINCT - ( COUNT ( * ) ) + - 33 FROM tab0 AS cor0 # Datafusion - Expected - 5 # Datafusion - Expected - -748 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* Int64\(12\) \+ cor0\.col2 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 * 12 + col2 AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +-1056 +-649 +-748 +14 +47 +5 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -17446,8 +17687,11 @@ SELECT - 45 col1, + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL 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\(tab0\.col0\) AS col0" at position 0 and "min\(\(\- tab0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( col0 ) AS col0, MIN ( - col0 ) AS col0 FROM tab0 +---- +-97 +3 query I rowsort SELECT ( col0 ) * + + 5 AS col1 FROM tab0 @@ -18293,8 +18537,15 @@ SELECT DISTINCT 28 * - col1 * - col0 FROM tab0 # Datafusion - Expected - 4950 # Datafusion - Expected - 77 # Datafusion - Expected - 4224 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "tab2\.col0 \* Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, col0 * + + 66 AS col0 FROM tab2 +---- +3036 +4224 +4950 +51 +67 +77 query IIIIII rowsort SELECT * FROM tab2, tab0 AS cor0 WHERE 31 IS NOT NULL @@ -19107,8 +19358,10 @@ SELECT * FROM tab0 WHERE ( NOT ( NOT + - col2 / + - col0 NOT BETWEEN NULL AND co # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 742540774cb8bed15aae891153323c96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 1 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + ( - - col1 ), - col1 AS col2, - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 +---- +9 values hashing to 651a2dc689923daa6781d12e1bbf79cf query III rowsort SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col0 IS NULL @@ -20109,8 +20362,15 @@ SELECT DISTINCT * FROM tab1 WHERE col0 * col1 * CAST ( NULL AS INTEGER ) + - - c # Datafusion - Expected - NULL # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \+ tab0\.col2 AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 99 + col2 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 +---- +-52 +-89 +0 +NULL +NULL +NULL query I rowsort SELECT + col0 + 81 - 24 * + 21 + - - col0 FROM tab1 @@ -20734,8 +20994,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab2 WHERE NOT ( NOT col1 NOT BETWEEN col1 AND + col2 ) +---- +3 +3 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT + 84 <> + 67 @@ -22115,8 +22378,15 @@ SELECT col2, - col0 + + - 28 FROM tab2 # Datafusion - Expected - -40 # Datafusion - Expected - NULL # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- tab2\.col2\) \+ tab2\.col2 \+ \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) col2, - col2 + col2 + - col2 AS col2 FROM tab2 +---- +-23 +-40 +-58 +NULL +NULL +NULL query I rowsort SELECT DISTINCT + 43 AS col0 FROM tab2 @@ -22358,8 +22628,11 @@ SELECT COUNT ( * ) AS col2, 0 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-22\)\) AS col1" at position 0 and "Int64\(79\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + MIN ( ALL - 22 ) ) AS col1, + 79 + + COUNT ( * ) AS col1 FROM tab0 +---- +-22 +82 query III rowsort SELECT DISTINCT * FROM tab1 WHERE + + 58 <= NULL @@ -22766,8 +23039,11 @@ SELECT ALL col2 - col0 - - - 29 * - col1 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 4284 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(51\) \* Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col2, + 51 * 84 AS col2 FROM tab0 +---- +3 +4284 query I rowsort SELECT DISTINCT ( - - 58 ) AS col0 FROM tab0 @@ -22842,8 +23118,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab2 +---- +3 +3 query II rowsort SELECT col0, col2 FROM tab0 @@ -23112,8 +23391,15 @@ SELECT ALL - + col0 + - + col2 * + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT # Datafusion - Expected - 4489 # Datafusion - Expected - -77 # Datafusion - Expected - 5929 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col1 \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col1, + col1 * + col1 AS col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +2601 +4489 +5929 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 @@ -23122,8 +23408,15 @@ SELECT - col1 col1, + col1 * + col1 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -62 # Datafusion - Expected - -99 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ cor0\.col2 \+ \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col2 + col2 + - col2 AS col1, - 62 AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-62 +-62 +-62 +-99 query II rowsort label-3829 SELECT DISTINCT 13, + COUNT ( * ) AS col2 FROM tab0 AS cor0 @@ -23302,8 +23595,15 @@ SELECT - 30 + - + 63 / ( 8 ) + + col2 + 21 * 26 - - - 80 + - + col2 FROM tab0 # Datafusion - Expected - -3128 # Datafusion - Expected - -96 # Datafusion - Expected - -4416 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(\-46\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col2 AS col2, - 46 * col2 AS col2 FROM tab1 AS cor0 +---- +-2714 +-3128 +-4416 +-59 +-68 +-96 query I rowsort label-3858 SELECT + COUNT ( * ) + + 26 FROM tab2 AS cor0 @@ -23950,8 +24250,15 @@ SELECT col2 + - 10 * - - col1 AS col2 FROM tab0 # Datafusion - Expected - 29413 # Datafusion - Expected - 83 # Datafusion - Expected - 34455 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col0" at position 0 and "Int64\(13\) \+ \(\- tab2\.col2\) \- tab2\.col2 / \(\- tab2\.col0\) \+ \(\- \(\- tab2\.col0\)\) \* Int64\(5\) \* Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 83 AS col0, 13 + - + col2 - col2 / ( - ( col0 ) ) + - - col0 * + 5 * + + 92 col0 FROM tab2 +---- +21150 +29413 +34455 +83 +83 +83 query I rowsort label-3964 SELECT 81 + + + col2 + + CAST ( NULL AS INTEGER ) / + col1 FROM tab2 @@ -24650,8 +24957,15 @@ SELECT ALL - 9 * + 34 * - 90 + - COUNT ( * ) * + 98 + ( 26 ) * + - COUNT ( * ) F # Datafusion - Expected - 47 # Datafusion - Expected - 38 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 38 AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +10 +38 +38 +38 +47 +99 query I rowsort SELECT - + 39 col2 FROM tab2 AS cor0 @@ -25180,8 +25494,11 @@ SELECT DISTINCT * FROM tab0 WHERE NOT - col1 - - + col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 51 col1, 23 AS col1 FROM tab2 +---- +23 +51 query I rowsort label-4179 SELECT ( ( - COUNT ( * ) ) ) AS col2 FROM tab2 AS cor0 @@ -25286,8 +25603,15 @@ SELECT ALL + - col2 * - - 20 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 870 # Datafusion - Expected - 97 # Datafusion - Expected - 9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col0 \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0 AS col1, col0 * col2 AS col1 FROM tab0 AS cor0 +---- +15 +705 +87 +870 +9603 +97 query I rowsort label-4196 SELECT DISTINCT - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 @@ -25531,8 +25855,15 @@ SELECT ALL - col2 + - col2 AS col1, col2 - + ( + - col0 ) FROM tab2 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-4235 SELECT + COUNT ( * ) * - - 84 AS col0 FROM tab0 @@ -26305,8 +26636,15 @@ SELECT 5 AS col2 FROM tab0, tab0 cor0 # Datafusion - Expected - -4 # Datafusion - Expected - -4 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-4\) AS Int32\)" at position 0 and "Int64\(\-4\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - 4 AS INTEGER ), - 4 FROM tab2 +---- +-4 +-4 +-4 +-4 +-4 +-4 query II rowsort SELECT ALL - 20 col0, + col0 AS col2 FROM tab0 @@ -26325,8 +26663,15 @@ SELECT ALL - 20 col0, + col0 AS col2 FROM tab0 # Datafusion - Expected - 36 # Datafusion - Expected - 760 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(20\) AS col0" at position 0 and "tab2\.col0 \- Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 * 20 AS col0, + col0 - + 39 AS col0 FROM tab2 +---- +25 +36 +7 +760 +760 +760 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -26350,8 +26695,15 @@ SELECT ALL col0 * - ( + 12 ) FROM tab0 AS cor0 # Datafusion - Expected - 97 # Datafusion - Expected - 945 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* cor0\.col0 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 63 * + col0 AS col2, ( col0 ) AS col2 FROM tab0 AS cor0 +---- +15 +5481 +6111 +87 +945 +97 query I rowsort label-4367 SELECT DISTINCT SUM ( - - 46 ) FROM tab0 @@ -27055,8 +27407,15 @@ SELECT DISTINCT - ( + 46 ) AS col2 FROM tab0 # Datafusion - Expected - -33 # Datafusion - Expected - 96 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "Int64\(46\) \+ Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, + 46 + + - 79 col1 FROM tab1 +---- +-33 +-33 +-33 +59 +68 +96 query III rowsort SELECT * FROM tab1 WHERE NOT 11 IN ( - col2, col1 + + - col0 ) @@ -28661,8 +29020,15 @@ SELECT DISTINCT 19 + - - 30 FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - -86 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \+ \(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 11 + - + ( + col0 ) AS col2, + col1 AS col2 FROM tab0 AS cor0 +---- +-4 +-76 +-86 +1 +21 +81 query I rowsort SELECT ALL 47 * + 73 - + col2 * - - 8 AS col1 FROM tab0 AS cor0 @@ -29014,8 +29380,15 @@ SELECT DISTINCT + col2 AS col1, + 31 * - + 9 FROM tab2 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - -97 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(\-5\) / Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 col1, - 5 / 82 AS col1 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +0 +0 +0 query I rowsort SELECT DISTINCT - 37 * + 24 + - - 76 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL @@ -29790,8 +30163,15 @@ SELECT DISTINCT SUM ( + ( - col1 ) ) AS col1 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - 26 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 AS col0, col2 AS col0 FROM tab0 +---- +10 +26 +26 +26 +47 +99 query I rowsort label-4939 SELECT ALL + MAX ( DISTINCT - col0 ) FROM tab2 @@ -30466,8 +30846,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) = - 68 * 23 / + col0 * col2 # Datafusion - Expected - 87 # Datafusion - Expected - 77 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ Int64\(75\) / cor0\.col1 AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 + 75 / + col1 AS col2, + 87 AS col2 FROM tab2 AS cor0 +---- +52 +68 +77 +87 +87 +87 query I rowsort SELECT DISTINCT + col0 - + - col1 FROM tab0 AS cor0 @@ -30668,8 +31055,15 @@ SELECT - SUM ( ALL + - col1 ) AS col1 FROM tab0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col1, col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-5089 SELECT + CAST ( - - col0 AS INTEGER ) AS col2 FROM tab0 @@ -31712,8 +32106,11 @@ SELECT + col1 / + - 81 col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(44\) \* \(\- \(\- count\(Int64\(\-63\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, + 44 * - - COUNT ( - 63 ) AS col1 FROM tab0 +---- +132 +3 query I rowsort label-5260 SELECT DISTINCT - SUM ( 34 ) AS col1 FROM tab0 @@ -31820,8 +32217,15 @@ SELECT - col0 * - 77 * - - col1, + col2 FROM tab0 # Datafusion - Expected - -6030 # Datafusion - Expected - 26 # Datafusion - Expected - -6930 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "\(\- tab2\.col1\) \* Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 26 AS col0, - col1 * + 90 AS col0 FROM tab2 +---- +-4590 +-6030 +-6930 +26 +26 +26 query III rowsort SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT IN ( col2 ) AND + - col0 IS NOT NULL @@ -32650,8 +33054,9 @@ SELECT ALL 36 + + COUNT ( * ), COUNT ( * ) AS col0 FROM tab0 3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col2" at position 0 and "\(\- tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 66 AS col2, - col1 AS col2 FROM tab1 WHERE col2 <= + - 60 +---- query III rowsort SELECT * FROM tab2 WHERE NULL NOT BETWEEN - 56 AND NULL @@ -32912,8 +33317,15 @@ SELECT ALL - 79 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 59 # Datafusion - Expected - 10 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \- Int64\(37\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 - + 37 AS col0, + col2 AS col0 FROM tab1 +---- +-23 +-32 +10 +59 +68 +96 query II rowsort SELECT ALL - ( - + col0 ), col1 col1 FROM tab2 AS cor0 @@ -34288,8 +34700,15 @@ SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col2 / + 22 * + col1 IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - -31 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ \(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 + - col2 AS col0, + col2 AS col0 FROM tab0 AS cor0 +---- +-100 +-128 +-31 +10 +47 +99 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + + col2 * - col1 * col0 NOT BETWEEN NULL AND - col0 @@ -34637,8 +35056,15 @@ SELECT + - 77 * - col0 col0 FROM tab2 cor0 # Datafusion - Expected - 91 # Datafusion - Expected - 96 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, + col0 AS col1 FROM tab1 AS cor0 +---- +51 +59 +68 +85 +91 +96 query I rowsort label-5752 SELECT DISTINCT - + CAST ( AVG ( + + 51 ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( - 38 * - 18 ) NOT IN ( 49, 54 / - + 82, - - col2 ) @@ -34815,8 +35241,15 @@ SELECT DISTINCT + 31 - - + col0 * col0 * + 50 * 41 * col2 FROM tab1 # Datafusion - Expected - 81 # Datafusion - Expected - 99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col0, col1 AS col0 FROM tab0 +---- +1 +10 +21 +47 +81 +99 query I rowsort label-5783 SELECT + SUM ( DISTINCT 25 ) FROM tab2 @@ -35070,8 +35503,9 @@ query error DataFusion error: Schema error: Schema contains qualified field name SELECT + + col2 AS col2, + col0 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* \(\- Int64\(67\)\) \* Int64\(\-21\) \+ Int64\(\-91\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * - + 67 * - 21 + - 91 AS col1, - col2 AS col1 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL +---- query I rowsort label-5824 SELECT ( + - 50 ) * COUNT ( * ) FROM tab2 AS cor0 @@ -35361,8 +35795,15 @@ SELECT DISTINCT 70 col2 FROM tab1 # Datafusion - Expected - 25 # Datafusion - Expected - NULL # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col0, 25 AS col0 FROM tab1 +---- +25 +25 +25 +NULL +NULL +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -35899,8 +36340,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * + - COUNT ( * ) AS col0, - 93 AS col0 FROM tab0 +---- +-9 +-93 query I rowsort label-5960 SELECT col0 * col0 / col0 AS col2 FROM tab1 @@ -37591,8 +38035,15 @@ SELECT * FROM tab0 WHERE - 20 IS NULL # Datafusion - Expected - 295 # Datafusion - Expected - -868 # Datafusion - Expected - 1344 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* \(\- tab1\.col1\) AS col0" at position 0 and "tab1\.col2 \* \(\- \(\- tab1\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( 62 ) * - col1 col0, col2 * - - col1 AS col0 FROM tab1 +---- +-2914 +-310 +-868 +1344 +295 +3196 query I rowsort label-6243 SELECT ALL 11 * COUNT ( * ) FROM tab0 @@ -38629,8 +39080,15 @@ SELECT DISTINCT - COUNT ( * ) * - + COUNT ( * ) FROM tab2 # Datafusion - Expected - -124 # Datafusion - Expected - -1 # Datafusion - Expected - -142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) AS col0" at position 0 and "\(\- cor0\.col2\) \- Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 1 AS col0, - col2 - + + 84 AS col0 FROM tab2 cor0 +---- +-1 +-1 +-1 +-107 +-124 +-142 query II rowsort SELECT ALL col2, + 21 AS col1 FROM tab1 AS cor0 @@ -38685,8 +39143,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT col0 <= col0 # Datafusion - Expected - 8004 # Datafusion - Expected - -69 # Datafusion - Expected - 8924 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col2" at position 0 and "tab0\.col0 \* \(\- Int64\(\-92\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 69 AS col2, + col0 * - - 92 AS col2 FROM tab0 +---- +-69 +-69 +-69 +1380 +8004 +8924 query II rowsort label-6420 SELECT 43, - MIN ( DISTINCT + ( - 37 ) ) AS col2 FROM tab0 @@ -38702,8 +39167,11 @@ SELECT DISTINCT - COUNT ( * ) * + - 54 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) col2, COUNT ( * ) + - + ( COUNT ( * ) ) AS col2 FROM tab1 WHERE NOT NULL <= ( NULL ) +---- +0 +NULL query I rowsort SELECT col1 * - + col0 FROM tab1 @@ -38829,8 +39297,15 @@ SELECT ALL - MAX ( col0 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -441 # Datafusion - Expected - 81 # Datafusion - Expected - -6561 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, col1 * - col1 col2 FROM tab0 AS cor0 +---- +-1 +-441 +-6561 +1 +21 +81 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE col2 <> NULL @@ -39628,8 +40103,15 @@ SELECT ALL * FROM tab2 WHERE col1 + - col1 / ( + col2 ) IS NULL # Datafusion - Expected - -68 # Datafusion - Expected - 3168 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \* \(\- tab1\.col2\) AS col0" at position 0 and "\(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 33 * + - col2 AS col0, - col2 AS col0 FROM tab1 +---- +-59 +-68 +-96 +1947 +2244 +3168 query I rowsort label-6579 SELECT MAX ( DISTINCT - - 14 ) FROM tab0 @@ -39743,8 +40225,15 @@ SELECT COUNT ( - col0 ) * + 72 + 71 AS col0 FROM tab2 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, + col2 AS col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query III rowsort label-6600 SELECT * FROM tab0 WHERE NOT + col2 + + 95 NOT BETWEEN - + CAST ( NULL AS INTEGER ) * - col0 AND NULL @@ -39936,8 +40425,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - SUM ( + ( + col1 ) ) col1, - COUNT ( * ) AS col1 FROM tab1 +---- +-3 +-66 query I rowsort SELECT ALL 27 - - 94 AS col2 FROM tab1 @@ -40469,8 +40961,9 @@ SELECT ALL - COUNT ( * ) + - 96 + - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col0 \* \(\- cor0\.col1\) \+ Int64\(\-69\) AS col1" at position 0 and "Int64\(7\) \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * + col0 * - col1 + - 69 col1, + 7 * - col2 col1 FROM tab2 AS cor0 WHERE NOT NULL = NULL +---- query III rowsort label-6720 SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( ( + + col1 ), 93, - CAST ( NULL AS INTEGER ) ) @@ -41059,8 +41552,15 @@ SELECT - - 37 * + - 27 + 9 + + COUNT ( * ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 col2, + col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT - col0 + + + col1 FROM tab2 AS cor0 @@ -41512,8 +42012,15 @@ SELECT * FROM tab1 cor0 WHERE NOT + 74 * - - col1 * - 74 + - col1 IS NOT NULL # Datafusion - Expected - -37 # Datafusion - Expected - NULL # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(55\) \+ cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col1\) \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) * 55 + col1 col0, - col1 + + + col2 AS col0 FROM tab2 AS cor0 +---- +-28 +-37 +-9 +NULL +NULL +NULL query II rowsort SELECT DISTINCT col0, col2 + + 42 FROM tab2 AS cor0 @@ -41858,8 +42365,15 @@ SELECT + + col2 FROM tab2 AS cor0 WHERE + 27 IS NOT NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0, + col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT ALL + + 83 * - 13 AS col2 FROM tab0 AS cor0 @@ -41940,8 +42454,15 @@ SELECT DISTINCT - - col0 * + col2 AS col0 FROM tab2 WHERE - col1 <> + - col1 + - # Datafusion - Expected - 91 # Datafusion - Expected - -8918 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \+ cor0\.col2 \* Int64\(\-93\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 10 + col2 * + - 93 AS col1, + col0 AS col1 FROM tab1 AS cor0 +---- +-5477 +-6314 +-8918 +51 +85 +91 query I rowsort label-6959 SELECT + SUM ( + col1 ) FROM tab0 AS cor0 @@ -42072,8 +42593,11 @@ SELECT col0 * ( + + col0 ) AS col0 FROM tab0 # 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 "max\(Int64\(68\)\) \+ Int64\(\-4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 48 AS col1, + MAX ( + 68 ) + - 4 AS col1 FROM tab0 +---- +48 +64 query I rowsort SELECT DISTINCT col1 * + + col0 * + 68 FROM tab2 @@ -42563,8 +43087,15 @@ SELECT DISTINCT - ( - 32 ) * + + col0 + + col1 + + col1 AS col0 FROM tab0 # Datafusion - Expected - 0 # Datafusion - Expected - 529 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* tab2\.col2 AS col1" at position 0 and "Int64\(49\) / tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 * + + col2 AS col1, 49 / + col1 AS col1 FROM tab2 +---- +0 +0 +0 +1600 +3364 +529 query I rowsort label-7070 SELECT ALL col0 * - CAST ( NULL AS INTEGER ) col0 FROM tab2 @@ -42735,8 +43266,11 @@ SELECT ALL + + 54 * - ( + COUNT ( + col2 ) ) FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +3 +NULL query I rowsort SELECT - - 77 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -43395,8 +43929,11 @@ SELECT col0 + + - ( col1 ) AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col1, COUNT ( * ) AS col1 FROM tab2 +---- +3 +3 query II rowsort label-7208 SELECT - COUNT ( * ), CAST ( 12 AS INTEGER ) AS col1 FROM tab1 AS cor0 @@ -44029,8 +44566,11 @@ SELECT DISTINCT 32 / - col0 * col0 col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col1, + 63 AS col1 FROM tab2 +---- +3 +63 query II rowsort SELECT - col2, 51 AS col0 FROM tab0 AS cor0 @@ -44476,8 +45016,9 @@ SELECT ALL col0 * - 74, - col1 AS col2 FROM tab0 -1 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col0, col0 FROM tab1 WHERE NOT + col0 IS NOT NULL +---- query I rowsort label-7383 SELECT 73 * SUM ( ALL - col1 ) FROM tab1 @@ -45790,8 +46331,15 @@ SELECT ALL * FROM tab2 cor0 WHERE + col0 + 20 + + col0 > - col0 # Datafusion - Expected - 85 # Datafusion - Expected - 75 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + col0 ) AS col2, ( 85 ) AS col2 FROM tab2 AS cor0 +---- +46 +64 +75 +85 +85 +85 query I rowsort SELECT DISTINCT - 45 + col2 * + 77 FROM tab2 cor0 @@ -46722,8 +47270,15 @@ SELECT ALL + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - 37 # Datafusion - Expected - 91 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, 37 AS col1 FROM tab1 +---- +37 +37 +37 +51 +85 +91 query IIIIII rowsort SELECT * FROM tab2 AS cor0 JOIN tab1 AS cor1 ON NOT NULL IS NULL @@ -47106,8 +47661,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab0 +---- +3 +3 query II rowsort SELECT col2, + col1 FROM tab0 @@ -47538,8 +48096,15 @@ SELECT ALL * FROM tab1 WHERE col2 + + + 2 - col2 IS NOT NULL # Datafusion - Expected - 21 # Datafusion - Expected - -97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, ( + col1 ) AS col2 FROM tab0 +---- +-15 +-87 +-97 +1 +21 +81 query I rowsort label-7894 SELECT SUM ( 91 ) FROM tab0 @@ -47663,8 +48228,15 @@ SELECT - ( + - ( - + col2 ) ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 1454180 # Datafusion - Expected - 5 # Datafusion - Expected - 144500 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 \* Int64\(\-5\) \* cor0\.col1 \* Int64\(\-68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col2, col0 * - 5 * + col1 * - 68 AS col2 FROM tab1 AS cor0 +---- +14 +144500 +1454180 +242760 +47 +5 query I rowsort label-7915 SELECT CAST ( NULL AS INTEGER ) * - - col2 FROM tab0 AS cor0 @@ -48221,8 +48793,15 @@ SELECT + col1 + + + col2 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 5432 # Datafusion - Expected - 92 # Datafusion - Expected - 840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "tab0\.col0 \* Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 92 AS col1, col0 * + 56 AS col1 FROM tab0 +---- +4872 +5432 +840 +92 +92 +92 query III rowsort SELECT * FROM tab0 WHERE col1 * - col1 * col0 NOT IN ( + 21, ( - + 93 ) ) @@ -48851,8 +49430,15 @@ SELECT ALL + 12 * - + col0 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -17 # Datafusion - Expected - 900 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \* \(\- cor0\.col2\) AS col2" at position 0 and "Int64\(\-17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 90 * - + col2 AS col2, - 17 AS col2 FROM tab0 AS cor0 +---- +-17 +-17 +-17 +4230 +8910 +900 query III rowsort SELECT DISTINCT * FROM tab0 cor0 WHERE 3 IS NULL @@ -49327,8 +49913,15 @@ SELECT DISTINCT MAX ( - col1 ) * - - MIN ( - + 61 ), - COUNT ( * ) AS col2 FROM # Datafusion - Expected - 162 # Datafusion - Expected - -23 # Datafusion - Expected - 173 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(23\) AS Int32\)\) AS col2" at position 0 and "tab2\.col0 \+ \(\- Int64\(\-98\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( + + 23 AS INTEGER ) AS col2, + col0 + - - 98 AS col2 FROM tab2 +---- +-23 +-23 +-23 +144 +162 +173 query I rowsort SELECT 92 * + + col2 AS col0 FROM tab0 @@ -49950,8 +50543,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 ) IN ( + 0 ) # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col1, + col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-8293 SELECT ALL MAX ( DISTINCT - col2 ) FROM tab1 AS cor0 @@ -50141,8 +50741,11 @@ SELECT 29 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-85\)\) AS col2" at position 0 and "Int64\(32\) / min\(\(\- cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MIN ( + - 85 ) AS col2, 32 / MIN ( - col0 ) AS col2 FROM tab1 AS cor0 +---- +-85 +0 query I rowsort SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL @@ -50333,8 +50936,15 @@ SELECT - ( - 41 ) col1 FROM tab0 cor0 # Datafusion - Expected - -67 # Datafusion - Expected - -77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1, - col1 FROM tab2 AS cor0 +---- +-51 +-51 +-67 +-67 +-77 +-77 query I rowsort label-8355 SELECT SUM ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0 @@ -50778,8 +51388,15 @@ SELECT MIN ( 0 ) FROM tab1 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - -9 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col1" at position 0 and "Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 9 AS col1, 68 AS col1 FROM tab0 AS cor0 +---- +-9 +-9 +-9 +68 +68 +68 query I rowsort label-8430 SELECT ALL SUM ( - col1 ) FROM tab1 AS cor0 @@ -50979,8 +51596,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE - col0 < NULL # Datafusion - Expected - 0 # Datafusion - Expected - -5100 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ \(\- cor0\.col0\) \* \(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "Int64\(12\) / \(\- Int64\(\-58\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col0 + - col0 * - - col1 col2, 12 / - - 58 AS col2 FROM tab2 AS cor0 +---- +-2392 +-4992 +-5100 +0 +0 +0 query I rowsort SELECT DISTINCT - - 24 AS col0 FROM tab2 AS cor0 WHERE - col1 IS NULL @@ -51847,8 +52471,15 @@ SELECT MAX ( ALL + col2 ) AS col0 FROM tab0 cor0 # Datafusion - Expected - 96 # Datafusion - Expected - 3 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col0" at position 0 and "cor0\.col1 \+ \(\- \(\- cor0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 AS col0, col1 + - - col0 AS col0 FROM tab0 AS cor0 +---- +108 +3 +3 +3 +96 +98 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col0 / + 21 ) < ( NULL ) @@ -52434,14 +53065,24 @@ SELECT ALL + 64 AS col2 FROM tab2 cor0 # Datafusion - Expected - -68 # Datafusion - Expected - -35 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(35\)\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 35 AS col0, - col2 AS col0 FROM tab1 AS cor0 WHERE NOT - 79 IS NULL +---- +-35 +-35 +-35 +-59 +-68 +-96 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9504 # Datafusion - Expected - 1150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(48\)\) \* Int64\(\-66\) AS col0" at position 0 and "Int64\(25\) \* Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( ALL 48 ) * - 66 AS col0, 25 * 46 AS col0 FROM tab1 +---- +-9504 +1150 query I rowsort SELECT col1 * + - col1 * - + col1 AS col1 FROM tab0 @@ -53072,8 +53713,15 @@ SELECT ALL * FROM tab2 WHERE NOT 40 <> NULL # Datafusion - Expected - 85 # Datafusion - Expected - 0 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) / tab1\.col0 \* Int64\(85\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 / ( col0 ) * + 85 AS col2, col0 col2 FROM tab1 +---- +0 +0 +0 +51 +85 +91 query I rowsort SELECT DISTINCT ( 34 ) AS col2 FROM tab1 @@ -53337,8 +53985,11 @@ SELECT ALL + COUNT ( ALL - col1 ) / 42 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 Float64\) \+ avg\(Int64\(\-19\)\) AS col0" at position 0 and "Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT + CAST ( NULL AS FLOAT8 ) + + + AVG ( ALL - 19 ) col0, 3 AS col0 FROM tab2 AS cor0 +---- +3 +NULL query I rowsort SELECT col0 - + + col1 AS col1 FROM tab0 AS cor0 @@ -53962,8 +54613,15 @@ SELECT DISTINCT ( - col2 ) + col2 AS col2, + col2 AS col1 FROM tab2 AS cor0 WHER # Datafusion - Expected - 1 # Datafusion - Expected - -4746 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) / \(\- Int64\(50\)\) \+ cor0\.col1 \* Int64\(\-59\) \- Int64\(\-32\) AS col2" at position 0 and "\(\- \(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col1 / - ( 50 ) + col1 * - 59 - - 32 AS col2, + ( - - col1 ) AS col2 FROM tab0 AS cor0 +---- +-1207 +-27 +-4746 +1 +21 +81 query I rowsort SELECT ALL 92 FROM tab2 AS cor0 WHERE NOT - col1 IN ( col1 + - 57 / 78 / - - ( col1 ) + 48, + 85 ) @@ -56341,8 +56999,11 @@ SELECT + ( - col0 ) + + - col2 + + + col0 * 30 * col0 + ( col2 ) col2, col2 FROM # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab0 +---- +3 +3 query I rowsort SELECT - col1 FROM tab2 WHERE NOT NULL NOT BETWEEN + 43 AND - ( + + col0 ) @@ -56373,8 +57034,11 @@ SELECT * FROM tab2 AS cor0 WHERE NOT 97 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(5\) \+ Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + 5 + 92 AS col2 FROM tab1 cor0 +---- +3 +97 query I rowsort SELECT DISTINCT - 65 AS col0 FROM tab2 AS cor0 @@ -56397,8 +57061,15 @@ SELECT + col0 + - 86 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL # Datafusion - Expected - -40 # Datafusion - Expected - -58 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "CAST\(Int64\(\-40\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 AS col2, + CAST ( - 40 AS INTEGER ) AS col2 FROM tab2 cor0 +---- +-23 +-40 +-40 +-40 +-40 +-58 query I rowsort label-9370 SELECT SUM ( DISTINCT 7 ) AS col0 FROM tab2 @@ -57021,8 +57692,15 @@ SELECT + + col1 / + + 27 FROM tab2 AS cor0 # Datafusion - Expected - -1215 # Datafusion - Expected - -931491 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col1 \* \(\- cor0\.col0\) \* cor0\.col0 AS col1" at position 0 and "cor0\.col0 \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 * + col1 * - col0 * col0 AS col1, col0 * - col1 AS col1 FROM tab0 AS cor0 +---- +-1215 +-1589490 +-1827 +-856575 +-931491 +-97 query I rowsort label-9473 SELECT ALL - col1 / - 8 + 24 AS col2 FROM tab2 AS cor0 @@ -58576,8 +59254,15 @@ SELECT - 98 + - - col1 + col0 FROM tab0 # Datafusion - Expected - -197 # Datafusion - Expected - 79 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ tab0\.col0 AS col1" at position 0 and "\(\- tab0\.col2\) \+ tab0\.col1 \+ \(\- tab0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 64 + col0 AS col1, - col2 + col1 + - col2 AS col1 FROM tab0 +---- +-13 +-197 +1 +151 +161 +79 query II rowsort SELECT col2 + - 98, col2 * + - 14 AS col2 FROM tab2 @@ -58606,8 +59291,15 @@ SELECT + col1 + - col0 AS col1, + 59 / + col0 FROM tab1 # Datafusion - Expected - 58 # Datafusion - Expected - -851 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* \(\- tab2\.col2\) \+ \(\- tab2\.col0\) AS col2" at position 0 and "CAST\(tab2\.col2 AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 35 * - col2 + - col0 col2, CAST ( + + col2 AS INTEGER ) AS col2 FROM tab2 +---- +-1464 +-2105 +-851 +23 +40 +58 query III rowsort SELECT ALL * FROM tab0 WHERE NOT - + col1 > - col2 @@ -58793,8 +59485,15 @@ SELECT col2, - 2 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 36 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 36 AS col1, + col0 col1 FROM tab0 +---- +15 +36 +36 +36 +87 +97 query II rowsort label-9766 SELECT DISTINCT 47, COUNT ( col1 ) AS col0 FROM tab2 @@ -58857,8 +59556,11 @@ 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\(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\. +query II valuesort SELECT ALL + 52 * COUNT ( * ) + + + 52 + + + 87 AS col1, - 61 AS col1 FROM tab0 AS cor0 +---- +-61 +295 query I rowsort label-9777 SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL >= CAST ( NULL AS INTEGER ) / - 11 @@ -59159,8 +59861,15 @@ SELECT DISTINCT * FROM tab1 WHERE NULL = + 53 * + - 64 # Datafusion - Expected - 3 # Datafusion - Expected - 22 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ \(\- tab0\.col1\) AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 23 + + - col1 AS col1, + 3 AS col1 FROM tab0 +---- +-58 +2 +22 +3 +3 +3 query III rowsort label-9830 SELECT ALL * FROM tab2 WHERE NOT 9 * CAST ( NULL AS FLOAT8 ) BETWEEN NULL AND ( - col1 ) @@ -60172,8 +60881,15 @@ SELECT * FROM tab2 cor0 WHERE ( NULL ) BETWEEN NULL AND - col2 + col0 # Datafusion - Expected - -8 # Datafusion - Expected - 3083 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* Int64\(43\) \+ 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 II valuesort SELECT + 70 * + + 43 + + 73 AS col1, - 8 AS col1 FROM tab0 AS cor0 +---- +-8 +-8 +-8 +3083 +3083 +3083 query I rowsort SELECT ALL - col0 - + 76 AS col1 FROM tab2 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_86.slt b/data/sqlite/random/aggregates/slt_good_86.slt index a3cf070..1ebfce7 100644 --- a/data/sqlite/random/aggregates/slt_good_86.slt +++ b/data/sqlite/random/aggregates/slt_good_86.slt @@ -851,8 +851,15 @@ SELECT ALL MIN ( ALL - - col0 ) + + + SUM ( DISTINCT - + col2 ) FROM tab1 AS cor # Datafusion - Expected - -21 # Datafusion - Expected - -4259 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- cor0\.col2\) \* Int64\(44\) AS col2" at position 0 and "Int64\(\-21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 + - col2 * 44 AS col2, - 21 AS col2 FROM tab0 AS cor0 +---- +-2053 +-21 +-21 +-21 +-353 +-4259 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN - 98 + col0 AND - 79 ) @@ -1212,8 +1219,15 @@ SELECT DISTINCT - col1 + + 92 + 38 + + 49, + 5 AS col2 FROM tab2 # Datafusion - Expected - -59 # Datafusion - Expected - 5 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) / tab1\.col1 \+ Int64\(\-52\) / \(\- tab1\.col1\) AS col2" at position 0 and "\(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 36 / + col1 + - 52 / - + col1 AS col2, - col2 AS col2 FROM tab1 +---- +-59 +-68 +-96 +1 +17 +5 query II rowsort SELECT + 75 + - - col2, 28 AS col1 FROM tab1 AS cor0 @@ -1613,8 +1627,11 @@ SELECT COUNT ( * ) + + ( - + 80 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(80\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) + 80 AS col0, + COUNT ( * ) col0 FROM tab1 +---- +3 +77 query II rowsort label-268 SELECT - - COUNT ( * ) AS col1, 6 FROM tab2 WHERE col0 IS NULL @@ -1672,8 +1689,9 @@ SELECT ALL - 8 * + 11 + - - col1 AS col0, - CAST ( + - 32 AS INTEGER ) FROM tab2 32 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 FROM tab1 AS cor0 WHERE NOT NULL <> 74 +---- query II rowsort SELECT DISTINCT + col0, 53 FROM tab1 AS cor0 @@ -1805,8 +1823,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT + 52 * 40 <= + 35 # Datafusion - Expected - 34 # Datafusion - Expected - 49 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-49\)\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 49 AS col1, 34 AS col1 FROM tab1 AS cor0 +---- +34 +34 +34 +49 +49 +49 query III rowsort SELECT * FROM tab0 WHERE NOT - - 6 < NULL @@ -3498,8 +3523,9 @@ SELECT * FROM tab0 cor0 WHERE + col0 IS NOT NULL 9 values hashing to c4b42765dff94eaaa46040e537fb43b7 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, 32 AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL +---- query I rowsort SELECT DISTINCT + col1 + - + col2 FROM tab2 AS cor0 @@ -5030,8 +5056,15 @@ SELECT - - col0 AS col2, col2 col0 FROM tab1 cor0 WHERE NOT NULL > ( NULL ) # Datafusion - Expected - 20 # Datafusion - Expected - -62 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(62\)\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 62 AS col2, + 20 AS col2 FROM tab1 AS cor0 +---- +-62 +-62 +-62 +20 +20 +20 query I rowsort SELECT - ( 62 ) FROM tab2 @@ -7103,8 +7136,9 @@ SELECT - col2 * + CAST ( - - col2 AS INTEGER ) col0 FROM tab2 cor0 -529 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-70\)\) / Int64\(48\) AS col1" at position 0 and "cor0\.col0 \+ Int64\(80\) \+ Int64\(93\) \+ Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 70 / 48 AS col1, col0 + 80 + 93 + + 42 AS col1 FROM tab0 AS cor0 WHERE NOT col2 * ( col2 ) IS NOT NULL +---- query I rowsort label-1193 SELECT + COUNT ( * ) * + - ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0 @@ -7261,8 +7295,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) * - MAX ( + - col0 ) AS col0, - 90 + 79 AS col0 FROM tab1 +---- +-11 +153 query I rowsort SELECT col0 * - + 47 FROM tab0 AS cor0 @@ -7518,8 +7555,15 @@ SELECT DISTINCT ( col0 ) AS col1, col1 AS col0 FROM tab2 # Datafusion - Expected - 14 # Datafusion - Expected - -826 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* \(\- tab1\.col1\) AS col2" at position 0 and "Int64\(9\) \+ tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 * - col1 AS col2, 9 + + col1 AS col2 FROM tab1 +---- +-2773 +-295 +-826 +14 +23 +56 query I rowsort SELECT + + 60 * - - col1 FROM tab0 AS cor0 @@ -7797,8 +7841,15 @@ SELECT - CAST ( - 49 AS INTEGER ) + + 85 AS col1 FROM tab1 WHERE - + col0 < + co # Datafusion - Expected - -94 # Datafusion - Expected - -96 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col1\) \+ \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, - col1 + - col1 col0 FROM tab1 AS cor0 +---- +-10 +-28 +-59 +-68 +-94 +-96 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -7886,8 +7937,15 @@ SELECT DISTINCT - ( - 53 ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 38291308 # Datafusion - Expected - 96 # Datafusion - Expected - 23970820 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "Int64\(55\) \- \(\- \(\- tab1\.col0\)\) \- tab1\.col2 \* tab1\.col0 \* tab1\.col2 \* \(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, 55 - - - col0 - + col2 * col0 * col2 * - col0 AS col1 FROM tab1 +---- +23970820 +25150195 +38291308 +59 +68 +96 query I rowsort label-1320 SELECT - COUNT ( ALL - 94 ) + COUNT ( * ) AS col1 FROM tab1 @@ -8037,8 +8095,15 @@ SELECT DISTINCT COUNT ( ALL col0 ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 4277 # Datafusion - Expected - 0 # Datafusion - Expected - 714 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) / \(\- tab1\.col2\) AS col0" at position 0 and "tab1\.col0 \* tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 / - col2 AS col0, col0 * + + col1 AS col0 FROM tab1 +---- +0 +0 +0 +425 +4277 +714 query I rowsort SELECT ALL col0 + ( - col2 ) AS col2 FROM tab2 @@ -8629,8 +8694,13 @@ SELECT - col1 - - + col2 + - col0 / - + 51 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -1 # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ \(\- \(\- \(\- \(\- cor0\.col0\)\)\)\) AS col2" at position 0 and "\(\- cor0\.col1\) / Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 + - - ( - - col0 ) AS col2, - col1 / 47 AS col2 FROM tab0 AS cor0 +---- +-1 +0 +0 +0 query I rowsort SELECT DISTINCT + 12 * col2 + + - col2 - - - col2 * + 53 AS col0 FROM tab1 AS cor0 @@ -9639,8 +9709,15 @@ SELECT - + CAST ( + + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - -96 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 AS col1, col0 AS col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +51 +85 +91 query I rowsort SELECT + 6 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 @@ -10525,8 +10602,15 @@ SELECT - - ( - col1 ) + - 92 FROM tab1 AS cor0 # Datafusion - Expected - 13 # Datafusion - Expected - 95 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- cor0\.col1\) \+ \(\- cor0\.col1\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + - col1 + - col1 AS col1, 13 AS col1 FROM tab0 AS cor0 +---- +-147 +13 +13 +13 +45 +95 query I rowsort SELECT DISTINCT 39 * 20 + + 95 - - - col0 FROM tab1 @@ -11343,8 +11427,11 @@ SELECT ALL + 1 AS col1 FROM tab1 WHERE - col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 122 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(91\) \+ Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, 91 + + 31 AS col0 FROM tab1 +---- +122 +3 query I rowsort SELECT col2 * - - col0 AS col1 FROM tab0 @@ -11483,8 +11570,9 @@ SELECT col2 AS col2 FROM tab1 WHERE NOT - + col2 IS NULL 96 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 1 and "\(\- cor0\.col1\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col1 AS col1, - col0 col2, - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL +---- query I rowsort SELECT 33 col1 FROM tab1 AS cor0 @@ -11698,8 +11786,11 @@ SELECT + col2 * + col0 AS col2, col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, + 63 AS col1 FROM tab2 AS cor0 +---- +3 +63 query III rowsort label-1946 SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) AND + 30 @@ -12950,8 +13041,15 @@ SELECT * FROM tab0 WHERE NOT ( - col2 IS NULL ) # Datafusion - Expected - 47 # Datafusion - Expected - 9 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 9 AS col2, col1 AS col2 FROM tab1 +---- +14 +47 +5 +9 +9 +9 query I rowsort label-2157 SELECT ALL + COUNT ( * ) AS col2 FROM tab0 WHERE NOT - col2 < NULL @@ -13116,8 +13214,15 @@ SELECT col0 FROM tab2 AS cor0 WHERE ( NULL ) >= NULL # Datafusion - Expected - 88 # 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\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 75 AS col2, + 88 AS col2 FROM tab1 AS cor0 +---- +75 +75 +75 +88 +88 +88 query II rowsort SELECT - ( + + col0 ) col0, - col0 * col0 FROM tab2 @@ -13926,8 +14031,15 @@ SELECT 13, - ( + ( col2 ) ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 5220 # Datafusion - Expected - 81 # Datafusion - Expected - 900 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(60\) \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, + 60 * + col0 AS col2 FROM tab0 AS cor0 +---- +1 +21 +5220 +5820 +81 +900 query II rowsort label-2311 SELECT COUNT ( * ), + 25 + - COUNT ( * ) AS col2 FROM tab2 AS cor0 @@ -14378,8 +14490,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) / + SUM ( ALL + 62 ) AS col1, SUM ( ALL - col2 ) AS col1 FROM tab0 AS cor0 +---- +-156 +0 query I rowsort SELECT - col2 * + - col0 AS col2 FROM tab1 @@ -14917,8 +15032,15 @@ SELECT + ( + COUNT ( * ) ) col2 FROM tab0 cor0 # Datafusion - Expected - 67 # Datafusion - Expected - -77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, col1 AS col0 FROM tab2 cor0 +---- +-51 +-67 +-77 +51 +67 +77 query I rowsort label-2475 SELECT - MAX ( ALL - 22 ) col1 FROM tab1 AS cor0 WHERE 72 IN ( ( ( 98 ) ) ) @@ -15121,8 +15243,15 @@ NULL # Datafusion - Expected - -26 # Datafusion - Expected - -97 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col1" at position 0 and "Int64\(\-26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, - 26 AS col1 FROM tab0 +---- +-15 +-26 +-26 +-26 +-87 +-97 query I rowsort SELECT - col1 * + 31 * - 80 * - - col1 * + col0 AS col0 FROM tab1 @@ -15449,8 +15578,11 @@ SELECT 7 + - 57 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +3 +3 query I rowsort SELECT DISTINCT col0 - - col1 * + - col0 * - col1 AS col1 FROM tab1 AS cor0 @@ -15471,8 +15603,15 @@ SELECT ALL * FROM tab1 WHERE NOT col2 + - 95 IS NULL # Datafusion - Expected - 81 # Datafusion - Expected - 98 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ tab0\.col0 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 + col0 col0, + col1 AS col0 FROM tab0 +---- +1 +108 +21 +81 +96 +98 query I rowsort SELECT ALL - col1 col0 FROM tab0 WHERE + col1 = ( NULL ) @@ -15658,8 +15797,11 @@ SELECT DISTINCT - 0 - col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -120 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(40\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) * 40 AS col1, COUNT ( * ) AS col1 FROM tab1 +---- +-120 +3 query II rowsort SELECT 6 - - + col1, 69 * - 59 + - col0 AS col0 FROM tab2 @@ -16558,8 +16700,15 @@ SELECT + + COUNT ( + + col2 ) FROM tab2 AS cor0 # Datafusion - Expected - 7050 # Datafusion - Expected - 77 # Datafusion - Expected - 6016 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 \* Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col1 AS col2, col0 * + ( 94 ) AS col2 FROM tab2 AS cor0 +---- +4324 +51 +6016 +67 +7050 +77 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE 83 * + col0 IS NULL @@ -17177,8 +17326,15 @@ SELECT * FROM tab2 cor0 WHERE NOT ( NOT NULL >= NULL ) # Datafusion - Expected - 1725 # Datafusion - Expected - 194 # Datafusion - Expected - 1472 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col1 \- \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 \* \(\- Int64\(\-23\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 + + col1 - - col1 AS col2, ( + col0 ) * - - 23 AS col2 FROM tab2 AS cor0 +---- +1058 +125 +1472 +1725 +192 +194 query I rowsort SELECT + col2 + + col0 * - col0 + - + 51 * - col2 FROM tab0 AS cor0 @@ -17785,8 +17941,11 @@ SELECT * FROM tab2 cor0 WHERE NOT col1 / col0 NOT IN ( - 43 + col0 ) OR NULL IS # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 98 AS col1, ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0 +---- +-98 +3 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -18386,8 +18545,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - - COUNT ( * ) AS col2, + SUM ( ALL + - 41 ) + + 6 AS col2 FROM tab1 AS cor0 +---- +-117 +3 query I rowsort SELECT DISTINCT 57 + - + ( + ( - + col1 ) ) FROM tab2 AS cor0 @@ -18605,8 +18767,11 @@ SELECT DISTINCT - col2 * - - col2 - - col0 + + 84 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 4607 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-61\) \* Int64\(\-75\) \+ Int64\(97\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, ( - 61 ) * - 75 + + 97 / + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL +---- +3 +4607 query I rowsort label-3084 SELECT + MAX ( CAST ( col2 AS INTEGER ) ) col1 FROM tab1 cor0 @@ -19005,8 +19170,15 @@ SELECT DISTINCT + 9 FROM tab1 AS cor0 WHERE NOT ( NULL ) < 15 # Datafusion - Expected - -21 # Datafusion - Expected - 3854 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- cor0\.col1\) \* \(\- CAST\(\(\- \(\- cor0\.col2\)\) AS Int32\)\) AS col2" at position 0 and "\(\- CAST\(cor0\.col1 AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + - col1 * - CAST ( - - col2 AS INTEGER ) AS col2, - CAST ( col1 AS INTEGER ) AS col2 FROM tab0 cor0 +---- +-1 +-21 +-81 +198 +220 +3854 query I rowsort SELECT ALL + + col1 * 87 AS col0 FROM tab0 AS cor0 @@ -19158,8 +19330,15 @@ SELECT + - 84 + + 72 + - 12 * - - 3 FROM tab1 AS cor0 # Datafusion - Expected - 14 # Datafusion - Expected - 58 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 58 AS col2, 14 col2 FROM tab2 AS cor0 +---- +14 +14 +14 +58 +58 +58 query I rowsort SELECT DISTINCT + 65 * - + col0 FROM tab2 AS cor0 @@ -19240,8 +19419,10 @@ SELECT DISTINCT - col1 - - col2 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to d783851ed21e890000eab614c3310a75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col0 \- cor0\.col1 AS col2" at position 0 and "cor0\.col0 \- cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - col2 * + + ( col0 ) - + col1 AS col2, col0 - + col1 AS col2, 12 FROM tab0 AS cor0 +---- +9 values hashing to 719cf609fd377079e2837a464857d891 query II rowsort SELECT 64, 61 AS col1 FROM tab1 AS cor0 @@ -19869,8 +20050,15 @@ SELECT * FROM tab1 AS cor0 WHERE ( + col2 ) = NULL # Datafusion - Expected - -85 # Datafusion - Expected - -91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- tab1\.col0\)\)\) AS col1" at position 0 and "\(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - ( - - col0 ) ) AS col1, - col0 AS col1 FROM tab1 +---- +-51 +-51 +-85 +-85 +-91 +-91 query III rowsort SELECT ALL * FROM tab2 WHERE NOT + - col0 IS NULL @@ -20843,7 +21031,7 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to df282ae1b2eac65deadec77411c4d29b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 and "\(\- \(\- tab2\.col2\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Schema error: Schema contains qualified field name tab2\.col2 and unqualified field name col2 which would be ambiguous SELECT DISTINCT col2, - CAST ( NULL AS INTEGER ) AS col2, - ( - col2 ) AS col2 FROM tab2 query I rowsort label-3450 @@ -21206,8 +21394,11 @@ SELECT DISTINCT - col0 + 91 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-66\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) - - 66 AS col2, COUNT ( * ) AS col2 FROM tab2 +---- +3 +69 query I rowsort SELECT + col2 - - + 44 AS col0 FROM tab1 @@ -21452,8 +21643,15 @@ SELECT + ( - col2 ) col1 FROM tab2 WHERE NOT + col0 * + 0 + + + col0 * - col0 * # Datafusion - Expected - 58 # Datafusion - Expected - 1 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 1 AS col0, 58 col0 FROM tab1 AS cor0 +---- +1 +1 +1 +58 +58 +58 query II rowsort SELECT DISTINCT - col1 AS col2, col0 FROM tab0 AS cor0 @@ -21684,8 +21882,11 @@ SELECT DISTINCT + 41 * - - col2 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1472 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(cor0\.col0\) \* Int64\(\-32\) AS col2" at position 0 and "Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( + col0 ) * + - 32 AS col2, 51 AS col2 FROM tab2 AS cor0 +---- +-1472 +51 query I rowsort label-3593 SELECT MAX ( + ( col0 ) ) FROM tab2 @@ -22543,8 +22744,15 @@ SELECT ( - 76 ) FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, + col2 col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT DISTINCT - ( - col2 ) * - 37 AS col2 FROM tab1 @@ -23882,8 +24090,15 @@ SELECT - col1 * - col0 + 85 * - col2 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col0, + col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT ALL + 38 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 @@ -24171,8 +24386,15 @@ SELECT DISTINCT + col2 * + ( + - ( + + col0 ) ) + - col0 * + + col0 + - col1 col # Datafusion - Expected - 150 # Datafusion - Expected - 58 # Datafusion - Expected - 161 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "cor0\.col0 \+ Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 AS col0, col0 + + 86 AS col0 FROM tab2 AS cor0 +---- +132 +150 +161 +23 +40 +58 query I rowsort SELECT + + 96 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2 - ( + 88 ) + col0 + + col0 * - + col2 * - col1 @@ -24279,8 +24501,15 @@ SELECT ALL - col0 + - + col0 + + col1 * + - col1 + col0 - 67 * 93 FROM tab1 AS c # Datafusion - Expected - 1726 # Datafusion - Expected - -91 # Datafusion - Expected - 1843 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col0 \* Int64\(21\) \+ \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col0 AS col2, + col0 * 21 + - col2 AS col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +1726 +1843 +975 query I rowsort SELECT + + ( - 61 ) FROM tab2 AS cor0 @@ -24755,8 +24984,15 @@ SELECT + 89 * - col2 FROM tab1 AS cor0 # Datafusion - Expected - -10 # Datafusion - Expected - 81 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 col0, + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 cor0 +---- +-10 +-47 +-99 +1 +21 +81 query I rowsort SELECT + - ( + 88 ) * + 44 FROM tab0 cor0 @@ -24803,8 +25039,15 @@ SELECT - COUNT ( * ) + - 58 col2 FROM tab1 AS cor0 # Datafusion - Expected - -154 # Datafusion - Expected - -4537 # Datafusion - Expected - -134 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \+ Int64\(79\) \* \(\- cor0\.col2\) AS col1" at position 0 and "\(\- cor0\.col1\) \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 45 + + + 79 * - + col2 AS col1, - col1 + - col1 AS col1 FROM tab2 AS cor0 +---- +-102 +-134 +-154 +-1772 +-3115 +-4537 query I rowsort SELECT DISTINCT 57 + - col1 AS col2 FROM tab1 @@ -24893,8 +25136,15 @@ SELECT + - col1 + - col0 + + col1 * - + 44 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 71 # Datafusion - Expected - -50 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col2" at position 0 and "cor0\.col2 \+ Int64\(21\) \+ Int64\(\-18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 50 AS col2, col2 + + 21 + + - 18 AS col2 FROM tab1 AS cor0 +---- +-50 +-50 +-50 +62 +71 +99 query II rowsort SELECT ALL - + 80, col2 col2 FROM tab1 AS cor0 @@ -25604,8 +25854,15 @@ SELECT ALL - MIN ( - col1 ) AS col0, 11 FROM tab2 AS cor0 # Datafusion - Expected - -262144 # Datafusion - Expected - 58 # Datafusion - Expected - -421875 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col0 \* cor0\.col0 \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, + ( col0 ) * col0 * + - col0 AS col1 FROM tab2 AS cor0 +---- +-262144 +-421875 +-97336 +23 +40 +58 query I rowsort SELECT DISTINCT + 34 * - - 18 * - col1 + col2 AS col2 FROM tab1 AS cor0 WHERE NOT 73 <= col2 @@ -26497,8 +26754,15 @@ SELECT - col0 AS col2, 85 FROM tab1 cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 46 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "CAST\(cor0\.col1 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 46 AS col0, CAST ( + + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0 +---- +1 +21 +46 +46 +46 +81 query I rowsort label-4391 SELECT ALL - SUM ( col2 ) AS col0 FROM tab2 AS cor0 WHERE col1 NOT IN ( + 11 * col2 * - col0 * 25 ) @@ -26934,8 +27198,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( - + 27 ) AS col1, - 40 + - COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND col1 * + col1 +---- +-40 +0 query I rowsort label-4462 SELECT DISTINCT - MIN ( ALL 9 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 @@ -27520,8 +27787,11 @@ SELECT ALL - MAX ( - 24 ) AS col0 FROM tab1 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 "CAST\(NULL AS Float64\) \* \(\- min\(Int64\(0\)\)\) AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + CAST ( NULL AS FLOAT8 ) * - MIN ( 0 ) col2, 15 AS col2 FROM tab0 AS cor0 +---- +15 +NULL query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col2 * - 73 / - col2 ) IS NULL @@ -28643,8 +28913,15 @@ SELECT ALL - 26 AS col2, - 19 AS col1 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT ALL 6 FROM tab1 WHERE NOT NULL = NULL @@ -29195,8 +29472,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 IN ( col2 * - 19 + col2 ) # Datafusion - Expected - -68 # Datafusion - Expected - 71 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 71 AS col0, - col2 AS col0 FROM tab1 cor0 +---- +-59 +-68 +-96 +71 +71 +71 query II rowsort label-4829 SELECT + COUNT ( * ) AS col0, - SUM ( ALL + + 9 ) AS col2 FROM tab1 AS cor0 @@ -30732,8 +31016,15 @@ SELECT + 2 * + - 21 * 70 FROM tab0 # Datafusion - Expected - 4 # Datafusion - Expected - 81 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col2 \+ Int64\(\-6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col1 col2, col2 + - 6 AS col2 FROM tab0 cor0 +---- +1 +21 +4 +41 +81 +93 query I rowsort label-5088 SELECT DISTINCT - 57 * + MAX ( - + 2 ) + 17 FROM tab2 AS cor0 @@ -30754,8 +31045,15 @@ SELECT + - 53 * col0 + + - 9 - + col2 * + + col1 / - + col1 FROM tab1 AS cor0 # Datafusion - Expected - 11 # Datafusion - Expected - 91 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 / cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, col2 / + col1 col1 FROM tab1 AS cor0 +---- +1 +11 +51 +6 +85 +91 query I rowsort SELECT DISTINCT 10 * + 0 AS col0 FROM tab0 cor0 @@ -31219,8 +31517,15 @@ SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> 78 - - col1 - - + # Datafusion - Expected - 21 # Datafusion - Expected - -81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col2, col1 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +1 +21 +81 query I rowsort SELECT 66 AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL @@ -31518,8 +31823,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab1 +---- +3 +3 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -32086,8 +32394,11 @@ SELECT DISTINCT SUM ( DISTINCT col1 ) AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, ( + 64 ) AS col1 FROM tab1 +---- +3 +64 query II rowsort SELECT ALL - 23 AS col0, + col1 AS col2 FROM tab2 @@ -32747,8 +33058,15 @@ SELECT DISTINCT 48 FROM tab1 cor0 WHERE NOT + col0 IS NULL # Datafusion - Expected - 71 # Datafusion - Expected - 174 # Datafusion - Expected - 113 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \+ tab1\.col0 AS col0" at position 0 and "Int64\(66\) \+ tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 83 + col0 col0, 66 + + col1 AS col0 FROM tab1 +---- +113 +134 +168 +174 +71 +80 query I rowsort label-5415 SELECT - MIN ( DISTINCT - - col1 ) FROM tab0 @@ -33429,8 +33747,15 @@ SELECT + - col2 AS col1, col2 - + - col2 FROM tab0 AS cor0 # Datafusion - Expected - -3364 # Datafusion - Expected - 77 # Datafusion - Expected - -1600 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col2\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 col2, + ( - col2 ) * col2 AS col2 FROM tab2 AS cor0 +---- +-1600 +-3364 +-529 +51 +67 +77 query I rowsort label-5526 SELECT + MAX ( ALL - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 @@ -33820,8 +34145,15 @@ SELECT * FROM tab1 WHERE - 37 IS NOT NULL # Datafusion - Expected - 77 # Datafusion - Expected - -75 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col0, + col1 AS col0 FROM tab2 +---- +-46 +-64 +-75 +51 +67 +77 query I rowsort SELECT ALL - - 4 AS col0 FROM tab1 WHERE NOT NULL < NULL @@ -34382,8 +34714,15 @@ SELECT ALL - - col2 + - - 61 * 52 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col2 col2, col2 FROM tab0 cor0 +---- +10 +10 +47 +47 +99 +99 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 @@ -34392,8 +34731,15 @@ SELECT DISTINCT + + col2 col2, col2 FROM tab0 cor0 # Datafusion - Expected - -21 # Datafusion - Expected - -81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1, - col1 FROM tab0 AS cor0 +---- +-1 +-1 +-21 +-21 +-81 +-81 query I rowsort label-5683 SELECT - 59 / - col2 AS col0 FROM tab1 AS cor0 @@ -36867,8 +37213,15 @@ SELECT DISTINCT 38 AS col1, + COUNT ( * ) AS col0 FROM tab0 # Datafusion - Expected - 229 # Datafusion - Expected - 96 # Datafusion - Expected - 116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "tab1\.col0 \+ tab1\.col0 \- \(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, col0 + + col0 - - col1 AS col1 FROM tab1 +---- +116 +175 +229 +59 +68 +96 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -37238,8 +37591,9 @@ SELECT DISTINCT + col0 * + - 69 FROM tab0 -6693 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- CAST\(cor0\.col0 AS Int32\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + - CAST ( col0 AS INTEGER ) AS col2, + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND + col1 - + col0 +---- query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE col0 < + col1 @@ -37248,8 +37602,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - COUNT ( * ) ) AS col1, + 8 AS col1 FROM tab0 AS cor0 +---- +3 +8 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT 85 IS NOT NULL @@ -37774,8 +38131,15 @@ SELECT ALL + 2 + - col2 FROM tab1 AS cor0 # Datafusion - Expected - 41 # Datafusion - Expected - -1716 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \* Int64\(22\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 78 * 22 AS col2, 41 AS col2 FROM tab2 +---- +-1716 +-1716 +-1716 +41 +41 +41 query I rowsort label-6228 SELECT + MIN ( col2 ) AS col0 FROM tab2 WHERE - col0 * 31 + - col0 IN ( + col1 * col1 + 30 ) @@ -38146,8 +38510,11 @@ SELECT - col1, col2 / + + col2 AS col0 FROM tab1 cor0 WHERE ( + 76 ) IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 5742 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(66\) \* min\(DISTINCT Int64\(87\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col1, 66 * + MIN ( DISTINCT + 87 ) AS col1 FROM tab2 AS cor0 +---- +3 +5742 query I rowsort SELECT ALL - col2 + - col2 - - 47 + ( + + col2 ) * + - 44 * - col0 FROM tab1 @@ -38473,8 +38840,11 @@ 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\(1\)\) AS count\(\*\)\) \+ \(\- \(\- Int64\(\-29\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 / - - 14 AS col1, - COUNT ( * ) + - - ( - 29 ) AS col1 FROM tab2 +---- +-32 +1 query I rowsort label-6347 SELECT COUNT ( * ) * - - CAST ( + 69 AS INTEGER ) AS col1 FROM tab1 AS cor0 @@ -38543,8 +38913,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 24 AS col2, COUNT ( * ) + 78 AS col2 FROM tab2 +---- +-24 +81 query I rowsort label-6360 SELECT + MAX ( + + ( + 67 ) ) AS col2 FROM tab0 AS cor0 @@ -38855,8 +39228,15 @@ SELECT DISTINCT 94 AS col0 FROM tab2 AS cor0 WHERE NOT col2 * - col1 IS NULL # Datafusion - Expected - -2277 # Datafusion - Expected - 34 # Datafusion - Expected - -230 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "\(\- tab0\.col2\) \* Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + 34 ) col2, - col2 * + 23 AS col2 FROM tab0 +---- +-1081 +-2277 +-230 +34 +34 +34 query I rowsort SELECT + col0 * 47 AS col1 FROM tab1 @@ -39133,8 +39513,15 @@ SELECT DISTINCT - 36 AS col2, + 84 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, + col2 AS col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-6454 SELECT ALL COUNT ( * ) FROM tab2 cor0 WHERE NULL IN ( - col2 + ( - - col0 ), - col0 ) @@ -39900,8 +40287,15 @@ SELECT + 24 - - + 11 FROM tab2 # Datafusion - Expected - 134 # Datafusion - Expected - 92 # Datafusion - Expected - 102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \- \(\- tab2\.col0\) AS col0" at position 0 and "tab2\.col1 \+ tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 - - col0 AS col0, col1 + + + col1 AS col0 FROM tab2 +---- +102 +128 +134 +150 +154 +92 query I rowsort label-6580 SELECT - 79 * - col2 - + 84 + - 13 / + + ( - - 76 ) * 90 FROM tab1 @@ -40111,8 +40505,15 @@ SELECT ( - ( - - col1 ) ) * + 26 FROM tab0 AS cor0 WHERE + col2 NOT IN ( - 45 + # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col0, + col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT + ( - 77 ) IS NULL @@ -40175,8 +40576,15 @@ SELECT ALL + ( + 38 ) AS col1, + 18 + 76 FROM tab0 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 33 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 33 AS col1, col0 AS col1 FROM tab1 cor0 +---- +33 +33 +33 +51 +85 +91 query II rowsort SELECT ALL + col2, + col2 AS col1 FROM tab1 WHERE NULL IN ( + col0 + - - col1, 76, + - col2, - + 87 ) @@ -40204,8 +40612,15 @@ NULL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col1 AS Int32\)" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( col1 AS INTEGER ), col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query II rowsort SELECT - col2 + - col2 col1, + 94 FROM tab0 AS cor0 @@ -40646,8 +41061,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT 50 * - col1 IS NOT NULL # Datafusion - Expected - 85 # Datafusion - Expected - -91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col0 AS col2, col0 AS col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +51 +85 +91 query II rowsort SELECT ALL + 74 AS col1, + col1 AS col2 FROM tab2 AS cor0 @@ -41544,8 +41966,10 @@ SELECT ALL ( - col2 ) * 54 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 20cbb1f6baf5b16a0b767e594e60b17d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col0 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col0 AS col1, 42 * 66 * - - col2 * - col0 * 13 AS col0, col0 AS col1 FROM tab1 +---- +9 values hashing to daf5299382e589b94ddaeb237cf95c94 query II rowsort SELECT DISTINCT 86 AS col0, + col0 AS col1 FROM tab1 AS cor0 @@ -42148,8 +42572,11 @@ SELECT ALL + col2 * - - col0 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(61\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 61 + - COUNT ( * ) AS col0 FROM tab0 +---- +58 +NULL query I rowsort SELECT + col0 * 89 AS col1 FROM tab1 @@ -42935,8 +43362,11 @@ SELECT - col1 FROM tab2 WHERE + 36 = - col1 * - 27 + + + CAST ( col1 AS INTEGER # Datafusion - Datafusion expected results: # Datafusion - Expected - 114 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \- Int64\(\-96\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 - + - 96 AS col0, COUNT ( * ) col0 FROM tab2 +---- +114 +3 query I rowsort label-7084 SELECT - + 18 - - - MAX ( col2 ) * COUNT ( * ) * + 31 FROM tab1 AS cor0 @@ -43869,8 +44299,15 @@ NULL # Datafusion - Expected - -77 # Datafusion - Expected - 75 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col2, - col1 AS col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +46 +64 +75 query III rowsort SELECT * FROM tab2 AS cor0 WHERE - 56 * + col0 >= ( + 31 ) @@ -44059,8 +44496,9 @@ SELECT DISTINCT 64 + - COUNT ( * ) AS col0 FROM tab2 61 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 51 AS col1, 54 AS col1 FROM tab0 WHERE NULL IS NOT NULL +---- query IIIIII rowsort SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT - - 30 < + 25 ) @@ -44694,8 +45132,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) + + ( ( - - 73 ) ) AS col0, 1 AS col0 FROM tab2 +---- +1 +76 query I rowsort SELECT ALL - col0 * + + col0 + + 41 AS col1 FROM tab1 @@ -44792,8 +45233,15 @@ SELECT ALL + - 87 col1 FROM tab1 cor0 # Datafusion - Expected - 81 # Datafusion - Expected - 58 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, + 81 AS col0 FROM tab2 +---- +23 +40 +58 +81 +81 +81 query I rowsort SELECT + ( ( + + 43 ) ) FROM tab0 @@ -44839,8 +45287,15 @@ SELECT ALL - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - ( # Datafusion - Expected - -85 # Datafusion - Expected - NULL # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ cor0\.col2 AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) + + col2 col2, - ( + col0 ) AS col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +NULL +NULL +NULL query I rowsort SELECT ALL - 17 FROM tab2 AS cor0 WHERE NOT - col1 <= - + col0 + + 4 @@ -45009,8 +45464,15 @@ SELECT DISTINCT - SUM ( + col2 ) * - COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - -99 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( - col2 ) AS col0, 68 AS col0 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +68 +68 +68 query I rowsort label-7427 SELECT - COUNT ( ALL - col0 ) AS col2 FROM tab0 AS cor0 @@ -45138,8 +45600,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 AS col0, - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <> NULL +---- +0 +6 query I rowsort SELECT + col2 * 69 + 71 * 27 FROM tab2 AS cor0 @@ -45203,8 +45668,15 @@ SELECT DISTINCT ( - ( COUNT ( * ) ) ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -295 # Datafusion - Expected - NULL # Datafusion - Expected - -3196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- tab1\.col2\) \* tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 * + + CAST ( NULL AS INTEGER ) AS col1, - col2 * + col1 col1 FROM tab1 +---- +-1344 +-295 +-3196 +NULL +NULL +NULL query I rowsort label-7460 SELECT col0 * - + col2 * - CAST ( NULL AS INTEGER ) FROM tab2 @@ -45502,8 +45974,15 @@ SELECT * FROM tab1 WHERE NOT + - col0 < col1 # Datafusion - Expected - 53 # Datafusion - Expected - 243 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ tab1\.col2 \+ tab1\.col0 AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 + col2 + + col0 AS col0, + 53 AS col0 FROM tab1 +---- +203 +227 +243 +53 +53 +53 query III rowsort SELECT DISTINCT - col1 * + 0 + col0 AS col1, 59, + + col0 + + + col1 AS col0 FROM tab0 cor0 WHERE NULL <= + col0 @@ -46510,8 +46989,15 @@ SELECT ALL + 25 * + + 9 AS col1 FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 col2, + col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT ALL - 36 FROM tab2 cor0 WHERE NOT ( + 61 - - col2 ) = + 58 + + - ( + - ( + col1 ) ) @@ -46695,8 +47181,15 @@ NULL # Datafusion - Expected - 87 # Datafusion - Expected - -9409 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* \(\- tab0\.col0\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * - col0 AS col1, col0 col1 FROM tab0 +---- +-225 +-7569 +-9409 +15 +87 +97 query I rowsort SELECT DISTINCT 88 * + col1 FROM tab1 WHERE NOT + 67 * + col1 >= NULL @@ -47258,8 +47751,15 @@ SELECT DISTINCT + ( + - col0 ) * - col0 AS col0 FROM tab0 # Datafusion - Expected - 62 # Datafusion - Expected - 99 # Datafusion - Expected - 196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* tab0\.col2 AS col0" at position 0 and "tab0\.col0 \+ \(\- \(\- tab0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * + + col2 AS col0, col0 + + ( - - col2 ) AS col0 FROM tab0 +---- +196 +210 +3807 +62 +97 +99 query I rowsort SELECT - col0 * 39 AS col2 FROM tab1 @@ -47399,8 +47899,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 / col1 >= NULL # Datafusion - Expected - 89 # Datafusion - Expected - 91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(94\) \+ \(\- CAST\(cor0\.col1 AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, 94 + - CAST ( + + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0 +---- +47 +51 +80 +85 +89 +91 query I rowsort SELECT DISTINCT + ( + 14 ) - + 9 AS col1 FROM tab1 AS cor0 @@ -47493,8 +48000,11 @@ SELECT ALL 44 / + 53 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- \(\- cor0\.col1\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( - - col1 ) AS col0, + COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +3 +66 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE - 43 * - + 79 IS NOT NULL @@ -47824,8 +48334,15 @@ SELECT + COUNT ( DISTINCT - - col0 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 99 # Datafusion - Expected - 30 # Datafusion - Expected - 3807 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \+ \(\- \(\- tab0\.col0\)\) AS col1" at position 0 and "tab0\.col2 \* tab0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 + - - ( + col0 ) col1, col2 * + ( col1 ) AS col1 FROM tab0 +---- +174 +194 +210 +30 +3807 +99 query II rowsort SELECT - 28 AS col2, col1 AS col1 FROM tab2 @@ -49001,8 +49518,15 @@ SELECT - 64 + - 82 * - col2 FROM tab0 # Datafusion - Expected - 39 # Datafusion - Expected - -5025 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \* tab2\.col0 AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 * + col0 col1, 39 AS col1 FROM tab2 +---- +-2346 +-4928 +-5025 +39 +39 +39 query I rowsort SELECT DISTINCT - + col1 * ( - - col1 ) FROM tab2 cor0 @@ -49885,8 +50409,15 @@ SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT NULL BETWEEN NULL AND - + ( - - col0 # Datafusion - Expected - 43 # Datafusion - Expected - 96 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col2 AS col1, 43 AS col1 FROM tab1 AS cor0 +---- +43 +43 +43 +59 +68 +96 query I rowsort label-8240 SELECT ALL + COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE 63 IS NULL @@ -51348,8 +51879,9 @@ SELECT - SUM ( col0 ) AS col0, - 91 FROM tab0 -91 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col0" at position 0 and "cor0\.col1 \* \(\- cor0\.col1\) \* Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 97 AS col0, col1 * - col1 * + 16 AS col0 FROM tab1 AS cor0 WHERE col1 + col2 + - col1 = + + col1 +---- query II rowsort SELECT + + col2, + 23 * + col0 FROM tab2 AS cor0 @@ -51420,8 +51952,15 @@ SELECT ALL * FROM tab1 cor0 WHERE NOT col2 + + 25 = - col0 # Datafusion - Expected - 1 # Datafusion - Expected - -3 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / Int64\(\-5\) AS col1" at position 0 and "cor0\.col1 \+ cor0\.col1 \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 / - 5 AS col1, + col1 + + col1 + + - col1 AS col1 FROM tab0 cor0 +---- +-17 +-19 +-3 +1 +21 +81 query I rowsort label-8491 SELECT DISTINCT - + col1 * - CAST ( NULL AS INTEGER ) * + 3 * 81 FROM tab2 AS cor0 @@ -52472,8 +53011,15 @@ SELECT ALL - - col1 / 57 + + - col0 FROM tab0 AS cor0 WHERE NOT ( NOT - col0 IS # Datafusion - Expected - 40 # Datafusion - Expected - -75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col0, + col2 AS col0 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +23 +40 +58 query II rowsort SELECT col2 + + + col1, - 18 AS col0 FROM tab2 AS cor0 WHERE - 61 IS NOT NULL @@ -52726,8 +53272,15 @@ SELECT - - COUNT ( ALL CAST ( - col0 AS INTEGER ) ) + - 40 FROM tab0 AS cor0 # Datafusion - Expected - -24 # Datafusion - Expected - -9 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(48\)\)\) / \(\- cor0\.col0\) \- cor0\.col1 \+ Int64\(\-4\) AS col1" at position 0 and "Int64\(\-24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - + 48 ) / - col0 - col1 + + - 4 AS col1, - 24 AS col1 FROM tab1 AS cor0 +---- +-18 +-24 +-24 +-24 +-51 +-9 query I rowsort label-8708 SELECT - 99 / - - col1 + col1 + + + 15 + - col1 * CAST ( NULL AS INTEGER ) + col2 + + col1 + - + col2 col2 FROM tab2 cor0 @@ -53478,8 +54031,11 @@ SELECT ALL + 18 * col2 + - - 89 + - col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 60 ) col0, + COUNT ( * ) AS col0 FROM tab1 +---- +-60 +3 query I rowsort label-8832 SELECT DISTINCT ( + col1 ) * CAST ( NULL AS INTEGER ) + - + col1 * col1 FROM tab1 @@ -55681,8 +56237,11 @@ SELECT 31 / + ( 85 ) AS col0, col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) col1, 42 AS col1 FROM tab2 AS cor0 +---- +42 +NULL query II rowsort label-9197 SELECT DISTINCT - - COUNT ( * ) - + + 19 AS col2, COUNT ( * ) FROM tab2 AS cor0 @@ -56542,8 +57101,11 @@ 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\(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\. +query II valuesort SELECT ALL 27 + + - COUNT ( * ) * 54 AS col2, - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0 +---- +-135 +9 query I rowsort SELECT - 39 FROM tab0 cor0 WHERE NULL IS NOT NULL @@ -56738,8 +57300,15 @@ SELECT - ( - - col0 ) * 43 * 3 AS col1 FROM tab0 # Datafusion - Expected - 40 # Datafusion - Expected - 75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col0 AS col1, + col2 AS col1 FROM tab2 AS cor0 +---- +23 +40 +46 +58 +64 +75 query I rowsort SELECT ALL 77 * - - col2 * col0 FROM tab2 AS cor0 @@ -57134,8 +57703,11 @@ SELECT DISTINCT + ( + 79 ) / ( - - COUNT ( * ) ) / + MAX ( ALL + col0 ) FROM tab # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 1638 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-26\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, - 26 * - COUNT ( * ) * + + 21 AS col0 FROM tab1 cor0 WHERE NOT col2 * + col0 IS NULL +---- +1638 +3 query I rowsort label-9430 SELECT DISTINCT + SUM ( + + col2 ) AS col1 FROM tab0 @@ -58816,8 +59388,15 @@ SELECT ALL 37, 37 AS col1 FROM tab0 # Datafusion - Expected - -75 # Datafusion - Expected - -77 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col2" at position 0 and "\(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, - col0 AS col2 FROM tab2 +---- +-46 +-51 +-64 +-67 +-75 +-77 query III rowsort label-9717 SELECT * FROM tab1 WHERE NOT CAST ( - col1 AS INTEGER ) = NULL @@ -59138,8 +59717,10 @@ SELECT ALL col0 / + + col2 + 95 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 4ce8477d291571995dcf4d1839c243c8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \- cor0\.col0 AS col0" at position 0 and "cor0\.col2 \* \(\- \(\- cor0\.col1\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - col0 - + col0 AS col0, - col0 AS col1, + col2 * - - col1 AS col0 FROM tab0 AS cor0 +---- +9 values hashing to c83d16433c9ed18c72b86cd68bd8b497 query III rowsort SELECT * FROM tab2 AS cor0 WHERE - 0 * - col2 IS NULL @@ -59456,12 +60037,16 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * ( ( - 68 ) ) AS col2, 18 AS col2 FROM tab1 +---- +-204 +18 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col1 AS col0, col2 AS col0 FROM tab1 AS cor0 WHERE NOT + ( + col1 ) IS NOT NULL +---- query I rowsort SELECT - + col2 AS col1 FROM tab0 AS cor0 WHERE 56 + + col0 * col0 IS NOT NULL @@ -59656,8 +60241,15 @@ SELECT DISTINCT COUNT ( * ) * - 61 AS col2 FROM tab1 # Datafusion - Expected - 6561 # Datafusion - Expected - 99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* tab0\.col2 AS col0" at position 0 and "tab0\.col1 \* tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * + col2 col0, col1 * + col1 AS col0 FROM tab0 +---- +1 +210 +3807 +441 +6561 +99 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 > + + 13 * + 75 diff --git a/data/sqlite/random/aggregates/slt_good_87.slt b/data/sqlite/random/aggregates/slt_good_87.slt index 0fbae24..8c3e9d5 100644 --- a/data/sqlite/random/aggregates/slt_good_87.slt +++ b/data/sqlite/random/aggregates/slt_good_87.slt @@ -78,8 +78,15 @@ SELECT ALL 91 * - col2 AS col2, + col2 AS col2 FROM tab1 cor0 # Datafusion - Expected - 99 # Datafusion - Expected - -42 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- Int64\(2\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * - + 2 AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +-162 +-2 +-42 +10 +47 +99 query III rowsort label-6 SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - CAST ( + 60 AS FLOAT8 ) * - col2 ) IS NOT NULL @@ -304,8 +311,15 @@ SELECT DISTINCT + COUNT ( col1 ) col1 FROM tab1 # Datafusion - Expected - 68 # Datafusion - Expected - 63 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 63 AS col0, col2 AS col0 FROM tab1 +---- +59 +63 +63 +63 +68 +96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 @@ -314,8 +328,15 @@ SELECT DISTINCT 63 AS col0, col2 AS col0 FROM tab1 # Datafusion - Expected - 1215 # Datafusion - Expected - 99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col1 \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + col2 ) AS col1, col1 * col0 AS col1 FROM tab0 AS cor0 +---- +10 +1215 +1827 +47 +97 +99 query I rowsort SELECT - col2 * 4 FROM tab0 cor0 @@ -667,8 +688,13 @@ SELECT COUNT ( DISTINCT - ( + - col2 ) ) / - - SUM ( ALL - 58 ) FROM tab2 AS cor # Datafusion - Expected - NULL # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) / cor0\.col0 AS col2" at position 0 and "Int64\(46\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 46 / + + col0 AS col2, 46 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 +---- +0 +1 +NULL +NULL query I rowsort label-102 SELECT + SUM ( ALL + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL @@ -713,8 +739,15 @@ SELECT DISTINCT 63 * - COUNT ( * ) FROM tab1 # Datafusion - Expected - 4095 # Datafusion - Expected - 5 # Datafusion - Expected - 3825 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "Int64\(45\) \* tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col0, 45 * col0 AS col0 FROM tab1 +---- +14 +2295 +3825 +4095 +47 +5 query II rowsort SELECT DISTINCT + 39 + - col1 * col0 * - ( + 55 ) + - 36, col1 + 59 + col1 * 83 + + 21 / 65 AS col1 FROM tab0 WHERE NOT ( NOT ( NOT ( - 68 + - - 16 ) <= NULL ) ) @@ -1368,8 +1401,10 @@ SELECT - - col0 col0, + col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c08089bb66556052e49e3f9d7cd578e7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 1 and "cor0\.col1 \+ Int64\(\-51\) \+ Int64\(\-87\) \* \(\- cor0\.col2\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 81 AS col2, + col0 AS col1, col1 + - 51 + - 87 * - + col2 AS col1 FROM tab2 AS cor0 +---- +9 values hashing to f1c9ccdff92f77034af69df4e05be8d5 query I rowsort SELECT - ( + 8 ) FROM tab0 AS cor0 @@ -1657,8 +1692,15 @@ SELECT - col1 * + 57 * + col2 AS col2 FROM tab1 # Datafusion - Expected - 55 # Datafusion - Expected - NULL # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, 55 AS col2 FROM tab1 +---- +55 +55 +55 +NULL +NULL +NULL query I rowsort label-266 SELECT ALL ( col1 ) * - CAST ( col2 AS INTEGER ) FROM tab0 @@ -1679,8 +1721,15 @@ SELECT DISTINCT - 71 * + 62 FROM tab1 # Datafusion - Expected - 59 # Datafusion - Expected - 0 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 / \(\- tab1\.col0\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 / - + col0 AS col1, + col2 AS col1 FROM tab1 +---- +-1 +0 +0 +59 +68 +96 query II rowsort SELECT ALL + 5, + col1 FROM tab1 AS cor0 @@ -1911,8 +1960,15 @@ SELECT ALL - - 71 * col1 AS col0 FROM tab0 cor0 # Datafusion - Expected - -40 # Datafusion - Expected - -75 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, - col2 AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-46 +-58 +-64 +-75 query II rowsort SELECT + 46 col2, col0 FROM tab0 AS cor0 @@ -2045,8 +2101,15 @@ SELECT ALL ( + ( + 66 ) ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - 56 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 56 AS col2, - col0 AS col2 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +56 +56 +56 query II rowsort SELECT - 0 AS col2, - ( + + 90 ) FROM tab0 AS cor0 WHERE NOT NULL >= + 53 @@ -2239,8 +2302,10 @@ SELECT 99, col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 42b835a5ed0af58fcf3e11f65cbc936e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(42\)\) \* cor0\.col2 AS col2" at position 0 and "Int64\(38\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + 42 * col2 AS col2, + 5 / col2 AS col0, + + 38 col2 FROM tab2 AS cor0 +---- +9 values hashing to 92bc8e7745cefdcb039a1571533cd97b query I rowsort SELECT - col1 FROM tab1 WHERE NOT + - 83 IS NULL @@ -3111,8 +3176,15 @@ SELECT col0 * - col2 * col1 * col0 + + 69 FROM tab0 WHERE ( 94 ) NOT IN ( - CAST # Datafusion - Expected - 3551 # Datafusion - Expected - -77 # Datafusion - Expected - 4081 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "Int64\(53\) \* tab2\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col1, 53 * + col1 AS col1 FROM tab2 +---- +-51 +-67 +-77 +2703 +3551 +4081 query I rowsort SELECT ALL - col0 - + ( + 80 ) FROM tab2 AS cor0 @@ -3246,8 +3318,9 @@ SELECT + ( - 57 ) * - - col1 FROM tab0 -57 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col2" at position 0 and "cor0\.col1 \* Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 16 AS col2, + col1 * + 45 AS col2 FROM tab2 AS cor0 WHERE NOT NULL > col0 +---- query I rowsort label-525 SELECT DISTINCT + ( - 93 ) * - - COUNT ( * ) FROM tab1 AS cor0 @@ -3397,8 +3470,11 @@ SELECT DISTINCT + 29, + 89 / - col0 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- CAST\(Int64\(97\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, ( - - COUNT ( * ) ) + - CAST ( 97 AS INTEGER ) AS col1 FROM tab2 +---- +-3 +-94 query I rowsort SELECT - 76 * + 98 * col0 AS col0 FROM tab2 @@ -3733,8 +3809,10 @@ SELECT ALL 18 * + 13 + 80 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 12fd0fb0a550e4cdb8a5f5b1a9900675 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col1" at position 0 and "cor0\.col2 \* cor0\.col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT col2 * col1, col0 AS col0, + + col2 * + col1 FROM tab2 AS cor0 +---- +9 values hashing to 14fd72c571f459dfee4f65479e749595 query I rowsort SELECT ALL - 31 * + ( 11 ) FROM tab1 AS cor0 @@ -3754,8 +3832,15 @@ SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE NOT - - col1 IS NOT NULL # Datafusion - Expected - 68 # Datafusion - Expected - -96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 col1, col2 AS col1 FROM tab1 +---- +-59 +-68 +-96 +59 +68 +96 query I rowsort label-608 SELECT 50 * - 60 * + 92 * - COUNT ( * ) FROM tab1 @@ -3849,8 +3934,15 @@ SELECT ALL + MAX ( DISTINCT - 87 ) FROM tab0 AS cor0 # Datafusion - Expected - 2881 # Datafusion - Expected - 77 # Datafusion - Expected - 3311 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(43\) \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, 43 * + col1 AS col2 FROM tab2 AS cor0 +---- +2193 +2881 +3311 +51 +67 +77 query II rowsort SELECT + col2 - + 39 * ( col1 ), 89 AS col0 FROM tab0 @@ -4289,8 +4381,11 @@ SELECT DISTINCT - + SUM ( - + col1 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, + 65 AS col1 FROM tab0 AS cor0 +---- +3 +65 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( + col2 ) / + col1 + col2 IS NULL @@ -4723,8 +4818,10 @@ SELECT DISTINCT - 94 * + ( - col2 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 25834b1803e24a88af6e035dfed340d8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "cor0\.col1 \* \(\- cor0\.col1\) \- Int64\(\-63\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 70 AS col2, 51 * + col2, col1 * - col1 - - 63 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL +---- +9 values hashing to 4a5e8b26919604856945f9461d206250 query I rowsort label-762 SELECT DISTINCT - + SUM ( + 48 ) FROM tab0 AS cor0 @@ -5344,8 +5441,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE ( - col2 * - - col2 ) IS NULL # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, + col1 AS col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT DISTINCT + col1 + - 67 - - 87 + col2 FROM tab0 @@ -6436,8 +6540,15 @@ SELECT ALL - col1 / - + col1 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -4096 # Datafusion - Expected - 58 # Datafusion - Expected - -5625 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col0 \* \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, + col0 * - col0 AS col0 FROM tab2 AS cor0 +---- +-2116 +-4096 +-5625 +23 +40 +58 query I rowsort label-1045 SELECT SUM ( + col2 ) AS col0 FROM tab2 AS cor0 @@ -7547,8 +7658,9 @@ SELECT ALL col1 * - 31 * col1 FROM tab1 -775 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "\(\- cor0\.col1\) \+ Int64\(\-28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 AS col2, - col1 + - 28 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col1 ) +---- query II rowsort SELECT ALL + - col1, col1 FROM tab1 AS cor0 WHERE NOT - col2 * + 45 + - + col2 IS NOT NULL @@ -11517,8 +11629,15 @@ SELECT - + 20 AS col2 FROM tab1 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 24 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + 24 ) AS col2, col1 AS col2 FROM tab1 AS cor0 +---- +14 +24 +24 +24 +47 +5 query I rowsort SELECT - col1 * + + 67 FROM tab0 @@ -12156,8 +12275,9 @@ SELECT ALL + col1 + - - 93 AS col1 FROM tab1 98 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col1, col1 FROM tab0 WHERE - col1 + + + col0 IN ( + + col1, + col2 ) +---- query I rowsort SELECT DISTINCT + 58 * + col0 + + col1 FROM tab0 @@ -12242,8 +12362,15 @@ SELECT * FROM tab0 cor0 WHERE NOT NULL < + col2 # Datafusion - Expected - -1 # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "cor0\.col1 / \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) col2, col1 / + - col0 AS col2 FROM tab2 AS cor0 +---- +-1 +-1 +0 +NULL +NULL +NULL query I rowsort SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT - 8 < 18 @@ -12618,8 +12745,15 @@ SELECT ( 10 ) FROM tab1 # Datafusion - Expected - 39 # Datafusion - Expected - 61 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 AS col1, 39 AS col1 FROM tab2 +---- +39 +39 +39 +61 +61 +61 query III rowsort SELECT * FROM tab0 WHERE NOT + col2 * - ( - + 91 ) < NULL @@ -12753,8 +12887,15 @@ SELECT col2, ( + CAST ( - 66 AS INTEGER ) ) FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 23 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 AS col2, col1 AS col2 FROM tab1 +---- +14 +23 +23 +23 +47 +5 query I rowsort label-2078 SELECT MAX ( DISTINCT - + col1 ) col2 FROM tab1 WHERE 69 IS NULL @@ -13603,8 +13744,15 @@ SELECT ALL - - col1 AS col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL # Datafusion - Expected - 305 # Datafusion - Expected - -80 # Datafusion - Expected - 3248 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-80\) AS Int32\) AS col2" at position 0 and "cor0\.col1 \- \(\- cor0\.col2\) \* cor0\.col1 \+ Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( + - 80 AS INTEGER ) AS col2, + col1 - - col2 * + col1 + + 5 AS col2 FROM tab1 AS cor0 +---- +-80 +-80 +-80 +1363 +305 +3248 query III rowsort label-2216 SELECT * FROM tab2 cor0 WHERE NOT ( col0 ) * 39 * - - col2 - col1 * - col1 + ( + - col2 ) + CAST ( NULL AS INTEGER ) IS NULL @@ -14023,8 +14171,15 @@ SELECT 31 col0 FROM tab0, tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, + col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query III rowsort SELECT * FROM tab1 AS cor0 WHERE - col1 * + col1 IS NOT NULL @@ -14506,8 +14661,11 @@ SELECT ALL + - col0 / + 21 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +-3 +3 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -15605,8 +15763,15 @@ NULL # Datafusion - Expected - -85 # Datafusion - Expected - 7 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) / cor0\.col1 AS col1" at position 0 and "Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 36 / col1 AS col1, - 85 AS col1 FROM tab1 cor0 +---- +-85 +-85 +-85 +0 +2 +7 query III rowsort SELECT * FROM tab0 AS cor0 WHERE + col1 * + col0 IS NOT NULL @@ -15680,8 +15845,15 @@ NULL # Datafusion - Expected - -1410 # Datafusion - Expected - 5 # Datafusion - Expected - -150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 \* Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, + col1 * - 30 AS col2 FROM tab1 AS cor0 +---- +-1410 +-150 +-420 +14 +47 +5 query I rowsort SELECT + col1 * - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL @@ -15873,8 +16045,15 @@ NULL # Datafusion - Expected - 68 # Datafusion - Expected - 0 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-56\)\) / tab1\.col2 AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - 56 ) / col2 AS col0, col2 AS col0 FROM tab1 +---- +0 +0 +0 +59 +68 +96 query I rowsort SELECT col2 * + 19 AS col1 FROM tab0 @@ -16059,8 +16238,11 @@ SELECT ALL COUNT ( * ) AS col0 FROM tab1, tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-30\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - - 30 ) AS col1, COUNT ( * ) AS col1 FROM tab1 +---- +3 +30 query I rowsort label-2617 SELECT DISTINCT + + COUNT ( * ) FROM tab0 cor0 WHERE NOT - col2 * col0 IS NULL @@ -16230,8 +16412,15 @@ SELECT ALL - COUNT ( * ), ( - 9 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - -58 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col2 \+ \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, col2 + - + col2 AS col1 FROM tab2 cor0 +---- +-23 +-40 +-58 +0 +0 +0 query I rowsort SELECT DISTINCT - - col0 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 * + col0 IS NOT NULL @@ -17058,8 +17247,11 @@ SELECT DISTINCT - 73 AS col0 FROM tab0 WHERE NOT - col2 / + col0 + col0 IN ( - ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, - 71 AS col2 FROM tab0 +---- +-71 +3 query I rowsort SELECT DISTINCT - col1 * - - 4 FROM tab1 @@ -17309,8 +17501,9 @@ SELECT ALL + ( + + col1 ) * col0 FROM tab1 AS cor0 714 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \+ \(\- Int64\(50\)\) AS col1" at position 0 and "Int64\(75\) / Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 + - + 50 AS col1, + 75 / 33 AS col1 FROM tab1 WHERE NOT ( + + col0 + + col0 ) IS NOT NULL +---- query II rowsort SELECT DISTINCT 66 AS col0, + col0 * - + 19 col2 FROM tab2 @@ -17351,8 +17544,15 @@ SELECT * FROM tab1 cor0 WHERE 36 BETWEEN NULL AND - col2 * - - col2 # Datafusion - Expected - -34592 # Datafusion - Expected - -5 # Datafusion - Expected - -3680 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(\-46\) \* \(\- \(\- cor0\.col1\)\) \* Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, - 46 * - ( - col1 ) * 16 AS col2 FROM tab1 AS cor0 +---- +-10304 +-14 +-34592 +-3680 +-47 +-5 query I rowsort SELECT DISTINCT + col1 * - col2 * + - col1 FROM tab2 AS cor0 @@ -17527,8 +17727,15 @@ SELECT - col1 AS col0, - col1 + + + 41 AS col1 FROM tab1 cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, + col2 AS col1 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query II rowsort label-2859 SELECT ALL - 7 / + ( - - col0 ) * + col0 + col2 + - 13 AS col0, col1 + col1 - + + col2 AS col1 FROM tab1 AS cor0 @@ -18164,8 +18371,11 @@ SELECT DISTINCT * FROM tab0 WHERE ( col1 * - col2 = NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) * + COUNT ( * ) col1, - COUNT ( * ) AS col1 FROM tab0 +---- +-3 +9 query I rowsort label-2966 SELECT ALL + MAX ( - - col0 ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 31 IS NULL @@ -18245,8 +18455,15 @@ NULL # Datafusion - Expected - -21 # Datafusion - Expected - -81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\)" at position 0 and "\(\- tab0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1, - col1 FROM tab0 +---- +-1 +-1 +-21 +-21 +-81 +-81 query I rowsort SELECT - 2 col1 FROM tab1 @@ -18280,8 +18497,11 @@ SELECT - 62 / col0 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-98\)\) \+ \(\- max\(DISTINCT cor0\.col1\)\) AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 98 + + - ( MAX ( DISTINCT col1 ) ) AS col2, 64 AS col2 FROM tab0 AS cor0 +---- +17 +64 query I rowsort SELECT DISTINCT - 13 + + + 97 AS col0 FROM tab0 AS cor0 @@ -18586,8 +18806,11 @@ SELECT + + col1 * - + 9 + + col0 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +3 +3 query I rowsort label-3035 SELECT - ( + COUNT ( * ) ) * - 41 FROM tab1 @@ -18915,8 +19138,11 @@ SELECT ALL + col0, + col0 * + - col1 * - col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) col2 FROM tab2 AS cor0 +---- +3 +3 query I rowsort SELECT DISTINCT - + 53 AS col0 FROM tab1 cor0 @@ -19067,8 +19293,15 @@ SELECT - col0, - col1 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort label-3109 SELECT DISTINCT MIN ( ALL + 38 ) FROM tab2 AS cor0 @@ -20317,8 +20550,15 @@ SELECT ALL 21 + - col0 - col0 * + 45 * ( - - col0 ) FROM tab1 # Datafusion - Expected - -68 # Datafusion - Expected - 25 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* tab1\.col1 AS col0" at position 0 and "\(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + + col1 AS col0, - col2 AS col0 FROM tab1 +---- +-59 +-68 +-96 +196 +2209 +25 query I rowsort SELECT - col2 - - 31 AS col1 FROM tab0 @@ -20595,8 +20835,15 @@ SELECT * FROM tab0 cor0 WHERE + CAST ( NULL AS INTEGER ) * - 85 IN ( + col2 + - # Datafusion - Expected - 85 # Datafusion - Expected - -9857 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- tab0\.col2\) \- Int64\(\-28\) \* Int64\(\-2\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * - col2 - - 28 * - 2 AS col2, + 85 col2 FROM tab0 WHERE NULL IS NULL +---- +-156 +-2265 +-9857 +85 +85 +85 query I rowsort label-3373 SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE - col0 * + col1 + + + col1 IS NULL @@ -20669,8 +20916,15 @@ SELECT + COUNT ( * ) * 10 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL # Datafusion - Expected - 112 # Datafusion - Expected - 97 # Datafusion - Expected - 122 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) / cor0\.col2 \+ cor0\.col0 AS col0" at position 0 and "cor0\.col0 \+ Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - 9 ) / col2 + + col0 col0, col0 + + 25 AS col0 FROM tab0 AS cor0 +---- +112 +122 +15 +40 +87 +97 query I rowsort SELECT ALL + 70 * - + col2 FROM tab1 AS cor0 WHERE NOT ( col1 ) < NULL @@ -20892,8 +21146,15 @@ SELECT DISTINCT + col2 FROM tab1 WHERE NOT - col0 + - col2 IS NULL # Datafusion - Expected - 10 # Datafusion - Expected - 2 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 / tab0\.col2 AS col0" at position 0 and "\(\- tab0\.col2\) \+ \(\- Int64\(\-57\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 / + col2 AS col0, - col2 + - + ( - 57 ) AS col0 FROM tab0 +---- +-42 +0 +1 +10 +2 +47 query I rowsort SELECT DISTINCT + 47 * 89 FROM tab1 @@ -20975,8 +21236,15 @@ SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 AND NULL # Datafusion - Expected - 32 # Datafusion - Expected - -94 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col2" at position 0 and "Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 94 AS col2, + 32 AS col2 FROM tab1 +---- +-94 +-94 +-94 +32 +32 +32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 @@ -20985,8 +21253,15 @@ SELECT - 94 AS col2, + 32 AS col2 FROM tab1 # Datafusion - Expected - -67 # Datafusion - Expected - -77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1, + ( + - col1 ) FROM tab2 cor0 +---- +-51 +-51 +-67 +-67 +-77 +-77 query II rowsort label-3434 SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, + col2 - + + col2 FROM tab2 AS cor0 @@ -21100,8 +21375,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 51 AS col2, COUNT ( * ) AS col2 FROM tab2 +---- +3 +51 query I rowsort label-3453 SELECT DISTINCT + - MIN ( - 90 ) AS col1 FROM tab2 AS cor0 @@ -21491,8 +21769,11 @@ SELECT MAX ( ALL col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- Int64\(14\)\) \+ \(\- sum\(CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( COUNT ( * ) ) AS col1, - ( 14 ) + - SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 +---- +3 +NULL query I rowsort SELECT - 61 * + - col0 FROM tab2 cor0 @@ -21591,8 +21872,15 @@ SELECT ALL + COUNT ( * ) AS col0, + 12 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 AS col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-3531 SELECT ALL + SUM ( DISTINCT + - col1 ) * - 3 AS col0 FROM tab1 @@ -22961,8 +23249,10 @@ SELECT DISTINCT * FROM tab2 WHERE NOT - col1 <> NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 358e17b82b464cd79cb01435722057d8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ \(\- tab2\.col1\) \- \(\- tab2\.col0\) AS col2" at position 1 and "tab2\.col1 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + ( 80 ) AS col0, col0 + - col1 - - col0 col2, + + col1 AS col2 FROM tab2 +---- +9 values hashing to 756ebe6d1178911cb9433e4858f32454 query I rowsort SELECT DISTINCT - ( col0 ) FROM tab2 WHERE NOT - - 70 < ( 15 ) @@ -22978,8 +23268,10 @@ SELECT - ( + MIN ( + col1 ) ) AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 6f25b2833fd95395b29adacac3c9edd6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \- \(\- cor0\.col1\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - col0 - - + col1 AS col2, + col1 + + col2 + - col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 +---- +9 values hashing to 0537f15aef99067fb8839c820be2a420 query I rowsort label-3764 SELECT col2 - - 66 + col2 + + col0 / + + 48 FROM tab1 AS cor0 @@ -23087,8 +23379,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -253 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(cor0\.col2\)\) \+ \(\- max\(cor0\.col0\)\) 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 II valuesort SELECT - SUM ( col2 ) + + - MAX ( ALL col0 ) AS col2, COUNT ( + ( - ( - col0 ) ) ) col2 FROM tab0 AS cor0 +---- +-253 +3 query I rowsort SELECT DISTINCT + 4 * - 92 FROM tab1 @@ -23130,8 +23425,15 @@ SELECT DISTINCT + - 21 * 88 * + + 31 * + col0 + - 71 * 85 + col1 + 62 * + col0 + # Datafusion - Expected - -5700 # Datafusion - Expected - -68 # Datafusion - Expected - -4864 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \* cor0\.col1 / Int64\(\-86\) AS col0" at position 0 and "Int64\(\-76\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( ( col1 ) ) * col1 / - 86 AS col0, - 76 * + col0 AS col0 FROM tab2 AS cor0 +---- +-30 +-3496 +-4864 +-52 +-5700 +-68 query I rowsort label-3786 SELECT ALL - CAST ( - 6 AS INTEGER ) + + SUM ( DISTINCT col1 ) FROM tab1 AS cor0 @@ -24268,8 +24570,15 @@ NULL # Datafusion - Expected - 2209 # Datafusion - Expected - -99 # Datafusion - Expected - 9801 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col0" at position 0 and "\(\- tab0\.col2\) \+ tab0\.col2 \+ \(\- tab0\.col2\) \* \(\- tab0\.col2\) \+ Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, - col2 + col2 + - + col2 * - col2 + + 0 AS col0 FROM tab0 +---- +-10 +-47 +-99 +100 +2209 +9801 query II rowsort SELECT - col2 AS col2, + 25 FROM tab0 @@ -24760,8 +25069,15 @@ SELECT - 29 / - col2 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +NULL +NULL +NULL query II rowsort SELECT ALL - col2 AS col0, - 45 FROM tab1 AS cor0 @@ -25893,8 +26209,15 @@ SELECT - - MAX ( - 50 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 60 # Datafusion - Expected - -81 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, 60 col1 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +60 +60 +60 query II rowsort SELECT ALL col1 AS col0, col1 AS col2 FROM tab2 @@ -26111,8 +26434,15 @@ SELECT - col2 * - - col1 AS col1 FROM tab1 # Datafusion - Expected - 1827 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "cor0\.col1 \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col0, + col1 * + col0 col0 FROM tab0 AS cor0 +---- +1215 +1827 +97 +NULL +NULL +NULL query I rowsort SELECT ALL - - 10 + col0 FROM tab2 AS cor0 @@ -26128,8 +26458,11 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 IN ( - + col0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -8313 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- min\(DISTINCT \(\- cor0\.col2\)\)\) \* Int64\(\-84\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, - MIN ( DISTINCT ( + - col2 ) ) * - 84 - - COUNT ( * ) AS col2 FROM tab0 cor0 +---- +-8313 +3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 117 @@ -26138,8 +26471,15 @@ SELECT COUNT ( * ) AS col2, - MIN ( DISTINCT ( + - col2 ) ) * - 84 - - COUNT ( * # Datafusion - Expected - -75 # Datafusion - Expected - 74 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \+ \(\- \(\- tab2\.col1\)\) AS col0" at position 0 and "\(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + - - col1 AS col0, ( - col0 ) AS col0 FROM tab2 +---- +-46 +-64 +-75 +117 +125 +74 query III rowsort SELECT ALL * FROM tab0 WHERE NOT - - col0 BETWEEN NULL AND col1 @@ -26282,8 +26622,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT col2 <= - col2 * + + col2 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col2, col2 AS col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query II rowsort label-4304 SELECT - COUNT ( * ), - 13 * + CAST ( - - 36 AS INTEGER ) AS col0 FROM tab1 AS cor0 @@ -26350,8 +26697,15 @@ SELECT + ( 69 ) * - col1 * + - ( + + 44 ) AS col0 FROM tab2 # Datafusion - Expected - 83 # Datafusion - Expected - 31 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \+ cor0\.col1 AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 + + col1 col0, 83 AS col0 FROM tab0 AS cor0 +---- +100 +128 +31 +83 +83 +83 query I rowsort label-4314 SELECT ALL col2 * - col2 + - ( 60 ) + - 89 + + CAST ( NULL AS INTEGER ) - - col0 - + + 22 * + 89 * - ( + 8 ) * - 98 AS col0 FROM tab1 @@ -26448,8 +26802,10 @@ SELECT ALL + + col2 * col2 AS col2 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to be14e2a0150ed60bb599e6ff40437214 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "cor0\.col1 \* cor0\.col1 \- cor0\.col2 AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + + 11 AS col2, col1 col1, col1 * col1 - + + col2 AS col2 FROM tab1 AS cor0 +---- +9 values hashing to b92aa84331d2d47cd4c37c3af206d004 query I rowsort SELECT - col2 * + col2 + - + 84 * + + col2 FROM tab1 AS cor0 @@ -26639,8 +26995,11 @@ SELECT + + ( MIN ( ALL + + col1 ) ) AS col0, + COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-40\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 40 col0, COUNT ( * ) col0 FROM tab2 AS cor0 +---- +3 +40 query I rowsort SELECT DISTINCT - - col1 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL @@ -26810,8 +27169,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) col1, + SUM ( 50 ) AS col1 FROM tab2 +---- +-3 +150 query I rowsort SELECT ALL + col1 + - col1 FROM tab0 WHERE - col0 / - - col1 BETWEEN - col1 / - col0 AND NULL @@ -27392,8 +27754,11 @@ SELECT - COUNT ( * ), + 56 * - - 72 AS col0 FROM tab2, tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(20\) AS col0" at position 0 and "Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 20 col0, + 62 AS col0 FROM tab0 +---- +62 +NULL query III rowsort label-4480 SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 10 + + CAST ( NULL AS INTEGER ) AND NULL @@ -27636,8 +28001,11 @@ SELECT ALL * FROM tab2 WHERE NOT + 11 <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 76 AS col2 FROM tab1 +---- +3 +76 query I rowsort SELECT ALL - 64 + - + col2 AS col2 FROM tab0 AS cor0 @@ -28085,8 +28453,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 +---- +3 +3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 @@ -28095,8 +28466,15 @@ SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 +---- +12 +12 +12 +NULL +NULL +NULL query I rowsort label-4601 SELECT ALL - ( - MAX ( + col1 ) ) FROM tab1 AS cor0 @@ -29433,8 +29811,15 @@ SELECT - col1 + + - 46 FROM tab0 # Datafusion - Expected - 85 # Datafusion - Expected - -21 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 21 AS col1, col0 AS col1 FROM tab1 +---- +-21 +-21 +-21 +51 +85 +91 query I rowsort label-4817 SELECT DISTINCT ( MIN ( ALL - - 94 ) ) col2 FROM tab2 AS cor0 @@ -29621,8 +30006,11 @@ SELECT * FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN - + col2 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / cor0\.col1 AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) / col1 AS col2, 71 AS col2 FROM tab0 AS cor0 +---- +71 +NULL query I rowsort label-4846 SELECT DISTINCT + + COUNT ( * ) + + 35 col1 FROM tab2 AS cor0 @@ -30294,8 +30682,11 @@ SELECT SUM ( DISTINCT - - col2 ) AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - - COUNT ( * ) ) col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +3 +3 query I rowsort label-4955 SELECT + - 36 / COUNT ( * ) FROM tab1 cor0 @@ -30566,8 +30957,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 63 col2, + COUNT ( * ) + ( + 56 ) AS col2 FROM tab2 AS cor0 +---- +59 +63 query I rowsort SELECT ALL + - col1 + - 2 FROM tab2 AS cor0 @@ -31248,8 +31642,11 @@ SELECT ALL + - 24 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -7611 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "\(\- count\(cor0\.col0\)\) \* Int64\(\-94\) \* \(\- Int64\(27\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 AS col2, - COUNT ( + col0 ) * + - 94 * - + 27 + COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-7611 +31 query I rowsort label-5114 SELECT DISTINCT + + MAX ( + 38 ) FROM tab2 cor0 @@ -32473,8 +32870,15 @@ SELECT DISTINCT + col2 * col2 + - 42 FROM tab1 AS cor0 # Datafusion - Expected - 3050 # Datafusion - Expected - 3234 # Datafusion - Expected - 3050 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* tab2\.col1 AS col0" at position 0 and "Int64\(\-50\) \* \(\- Int64\(61\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 42 * col1 col0, - 50 * - + 61 AS col0 FROM tab2 WHERE NULL IS NULL +---- +2142 +2814 +3050 +3050 +3050 +3234 query I rowsort SELECT + 18 - + 49 AS col2 FROM tab0 @@ -32878,8 +33282,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= - col1 + + + col1 + + col1 + + CAS # Datafusion - Expected - -44 # Datafusion - Expected - -7 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) \+ Int64\(51\) AS col2" at position 0 and "Int64\(\-44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 + 51 AS col2, - 44 AS col2 FROM tab0 +---- +-44 +-44 +-44 +-7 +-7 +-7 query I rowsort SELECT DISTINCT col0 + + + ( + col1 ) AS col1 FROM tab0 @@ -32955,8 +33366,11 @@ SELECT + 97 / COUNT ( * ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(tab2\.col1\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( col1 ) col1, COUNT ( * ) AS col1 FROM tab2 +---- +3 +51 query I rowsort label-5383 SELECT + CAST ( NULL AS INTEGER ) - - + col0 FROM tab0 @@ -33107,8 +33521,9 @@ SELECT ALL 69 + 39 AS col0 FROM tab0 108 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col2 \+ \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 col2, + col2 + + - col2 AS col2 FROM tab0 AS cor0 WHERE col2 >= NULL +---- query III rowsort SELECT * FROM tab2 AS cor0 WHERE - col0 + + col2 + + 74 * - 81 <= + - col0 @@ -33296,8 +33711,15 @@ SELECT ALL - col0 + + - col2 col1 FROM tab0 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 5 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col0, col2 AS col0 FROM tab1 cor0 +---- +14 +47 +5 +59 +68 +96 query I rowsort SELECT ALL - - 22 * + 76 + - - 56 * + + col2 - + - ( 68 ) * col2 AS col0 FROM tab0 AS cor0 @@ -33591,8 +34013,15 @@ SELECT + 41 - + ( - + col1 ) AS col1, - col0 FROM tab0 # Datafusion - Expected - 21000 # Datafusion - Expected - 81 # Datafusion - Expected - 81000 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ tab0\.col1 \+ \(\- tab0\.col2\) AS col0" at position 0 and "Int64\(25\) \* Int64\(40\) \* \(\- \(\- tab0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + + col1 + - col2 AS col0, 25 * 40 * - + ( - col1 ) AS col0 FROM tab0 +---- +1 +1000 +21 +21000 +81 +81000 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT 79 NOT IN ( col2 - 52 ) @@ -33940,8 +34369,11 @@ SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN 8 AND - - col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 153 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 51 * COUNT ( * ) col0, 24 AS col0 FROM tab0 +---- +153 +24 query I rowsort SELECT 71 + - ( - col1 ) FROM tab0 WHERE NOT - col2 NOT BETWEEN ( NULL ) AND ( + 86 ) @@ -34056,8 +34488,15 @@ SELECT MIN ( ALL - col2 ) FROM tab2 AS cor0 # Datafusion - Expected - 38 # Datafusion - Expected - -58 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 AS col1, 38 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +38 +38 +38 query III rowsort SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( - col0 + + col0 - - col2 ) @@ -34299,8 +34738,15 @@ SELECT - COUNT ( + + 99 ) FROM tab1 # Datafusion - Expected - 85 # Datafusion - Expected - -91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, col0 AS col1 FROM tab1 +---- +-51 +-85 +-91 +51 +85 +91 query I rowsort label-5605 SELECT DISTINCT + ( + col0 ) / CAST ( CAST ( 89 AS INTEGER ) AS INTEGER ) * col2 + - - col0 AS col1 FROM tab2 AS cor0 @@ -34580,8 +35026,10 @@ SELECT ALL + col2 + - 58 + - - col0 + + - ( - col2 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c7514611822ccdec6cd005c4974d0ddd -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 1 and "\(\- cor0\.col1\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 41 AS col1, + col1 AS col2, - col1 AS col2 FROM tab1 AS cor0 +---- +9 values hashing to 8cc980a43af2461fb18d0bb2ec540803 query I rowsort label-5653 SELECT DISTINCT + col2 / - + col2 - CAST ( - col1 AS INTEGER ) + + col2 AS col1 FROM tab2 AS cor0 @@ -35451,8 +35899,15 @@ SELECT DISTINCT - col1 / + - col2 FROM tab1 AS cor0 # Datafusion - Expected - 163840 # Datafusion - Expected - 58 # Datafusion - Expected - 326250 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "\(\- tab2\.col0\) \* \(\- tab2\.col0\) \* \(\- \(\- tab2\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col1, - col0 * + - col0 * - - col2 col1 FROM tab2 +---- +163840 +23 +326250 +40 +48668 +58 query I rowsort label-5796 SELECT DISTINCT 33 * COUNT ( * ) col1 FROM tab0 @@ -35658,8 +36113,11 @@ SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT + 84 * - 89 = - col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, - 65 AS col2 FROM tab0 +---- +-65 +3 query I rowsort label-5831 SELECT - ( COUNT ( * ) ) / 30 FROM tab2 @@ -36341,8 +36799,15 @@ SELECT + SUM ( - - col2 ) AS col2 FROM tab1 # Datafusion - Expected - -3290 # Datafusion - Expected - 5 # Datafusion - Expected - -350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "tab1\.col1 \* Int64\(\-70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 col0, col1 * - 70 AS col0 FROM tab1 +---- +-3290 +-350 +-980 +14 +47 +5 query I rowsort SELECT + col2 FROM tab2 WHERE NOT - col0 * 46 * 37 IS NOT NULL @@ -37864,8 +38329,15 @@ SELECT DISTINCT - 19, - 75 FROM tab2 AS cor0 WHERE NOT ( - - col2 ) * 97 + + + 6 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, + col1 AS col2 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-6199 SELECT + CAST ( NULL AS INTEGER ) + + col1 + + 58 * - + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= col1 + + - col2 + col2 * 88 @@ -38288,8 +38760,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * + + SUM ( DISTINCT - + col2 ) AS col2, 65 * + - COUNT ( * ) col2 FROM tab1 AS cor0 +---- +-195 +-669 query I rowsort SELECT - 10 * + - 52 AS col2 FROM tab2 AS cor0 @@ -39146,8 +39621,15 @@ SELECT ALL + + 72 AS col0, 58 FROM tab1 WHERE + - col2 * + col1 * + - col1 >= - # Datafusion - Expected - -5 # Datafusion - Expected - -91 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col1, - col1 AS col1 FROM tab1 +---- +-14 +-47 +-5 +-51 +-85 +-91 query III rowsort SELECT * FROM tab2 WHERE NOT col0 + 93 IS NULL @@ -40028,8 +40510,11 @@ SELECT CAST ( + + 7 AS INTEGER ) AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 185 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- sum\(cor0\.col0\)\)\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - SUM ( + col0 ) ) AS col2, ( + 24 ) AS col2 FROM tab2 AS cor0 +---- +185 +24 query III rowsort SELECT * FROM tab1 WHERE NOT + + ( + ( + + col2 ) ) IS NOT NULL @@ -40045,8 +40530,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 AS col1, COUNT ( * ) * + 94 AS col1 FROM tab1 AS cor0 +---- +-90 +282 query II rowsort SELECT - ( - col0 ) AS col2, + 53 * - col0 FROM tab2 AS cor0 @@ -40603,8 +41091,15 @@ SELECT ALL 19 FROM tab0 AS cor0 WHERE - col2 * col1 > + col0 * col1 # Datafusion - Expected - 12 # Datafusion - Expected - 77 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - ( + - col1 ) ) AS col2, + 12 col2 FROM tab2 AS cor0 +---- +12 +12 +12 +51 +67 +77 query I rowsort SELECT DISTINCT - - col1 + - 14 FROM tab0 AS cor0 @@ -40675,8 +41170,15 @@ SELECT DISTINCT + + ( + - 28 ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 81 # Datafusion - Expected - -99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 AS col0, + col1 AS col0 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +1 +21 +81 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= col2 * + col0 @@ -41495,8 +41997,15 @@ NULL # Datafusion - Expected - -87 # Datafusion - Expected - -97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 * col1 AS col0, - col0 AS col0 FROM tab0 cor0 +---- +-1215 +-15 +-1827 +-87 +-97 +-97 query I rowsort SELECT ALL - 15 * - - 65 - + col2 AS col1 FROM tab2 AS cor0 @@ -41596,8 +42105,11 @@ SELECT + 31 * + + col2 + - 28 + - + 21 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +-3 +3 query I rowsort SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NULL < 84 @@ -42633,8 +43145,15 @@ SELECT 83 * - 26 * - 93 FROM tab0 # Datafusion - Expected - 75 # Datafusion - Expected - 506 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* tab2\.col2 \+ \(\- tab2\.col2\) AS col1" at position 0 and "\(\- \(\- tab2\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * + col2 + - col2 AS col1, ( - - col0 ) AS col1 FROM tab2 +---- +1560 +3306 +46 +506 +64 +75 query I rowsort SELECT DISTINCT + col0 * - - col2 col2 FROM tab1 @@ -42692,8 +43211,15 @@ SELECT - col2 + - - col0 AS col2 FROM tab1 cor0 # Datafusion - Expected - -5929 # Datafusion - Expected - 58 # Datafusion - Expected - -4489 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "tab2\.col1 \* \(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, col1 * + - col1 AS col0 FROM tab2 +---- +-2601 +-4489 +-5929 +23 +40 +58 query I rowsort label-6989 SELECT ALL + COUNT ( * ) + 73 + 48 AS col2 FROM tab1 @@ -43071,8 +43597,15 @@ SELECT * FROM tab0 WHERE + col2 / - + col0 IS NULL # Datafusion - Expected - 48 # Datafusion - Expected - 6048 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \* \(\- tab1\.col2\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 63 * - + col2 AS col0, 48 col0 FROM tab1 +---- +3717 +4284 +48 +48 +48 +6048 query I rowsort label-7055 SELECT - 22 * CAST ( NULL AS INTEGER ) / - col2 + + 40 / - col0 * + 17 FROM tab1 AS cor0 @@ -43523,8 +44056,9 @@ SELECT ALL + + 91 AS col2 FROM tab0 AS cor0 91 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL +---- query I rowsort SELECT - col0 FROM tab1 cor0 WHERE NOT + 33 >= NULL @@ -43584,8 +44118,15 @@ SELECT - 74 AS col0, MAX ( DISTINCT + col0 ) FROM tab2 # Datafusion - Expected - 10 # Datafusion - Expected - 97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 col1, col2 col1 FROM tab0 AS cor0 +---- +10 +15 +47 +87 +97 +99 query I rowsort SELECT DISTINCT + col1 + - + 11 FROM tab1 AS cor0 @@ -43774,8 +44315,15 @@ SELECT * FROM tab0 WHERE NOT NULL BETWEEN - - col2 / - + 85 AND + col2 # Datafusion - Expected - -27 # Datafusion - Expected - 2550 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \* Int64\(\-34\) AS col1" at position 0 and "\(\- tab2\.col1\) \+ CAST\(Int64\(50\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 * - 34 AS col1, - col1 + CAST ( + 50 AS INTEGER ) col1 FROM tab2 +---- +-1 +-17 +-27 +1564 +2176 +2550 query II rowsort label-7166 SELECT DISTINCT - + COUNT ( * ) AS col0, - 83 AS col2 FROM tab1 AS cor0 @@ -43891,8 +44439,15 @@ SELECT DISTINCT COUNT ( * ) * COUNT ( ALL - 25 ) * - MIN ( ALL - 65 ) FROM tab1 # Datafusion - Expected - -47 # Datafusion - Expected - -96 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col2, - col1 AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +-59 +-68 +-96 query I rowsort SELECT DISTINCT + - 37 * - col0 AS col2 FROM tab1 AS cor0 @@ -43969,8 +44524,11 @@ SELECT DISTINCT - ( 93 ) AS col1, - col2 * - + col1 * col1 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2993 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* Int64\(41\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(cor0\.col1\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 73 * + 41 AS col2, - COUNT ( * ) * + + COUNT ( ALL + col1 ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +-27 +2993 query I rowsort label-7196 SELECT MAX ( DISTINCT 31 ) FROM tab0 AS cor0 @@ -44452,8 +45010,15 @@ SELECT DISTINCT * FROM tab2 WHERE + col0 NOT BETWEEN col1 AND NULL # Datafusion - Expected - -91 # Datafusion - Expected - -19 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col2" at position 0 and "Int64\(\-91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 19 AS col2, - 91 AS col2 FROM tab1 +---- +-19 +-19 +-19 +-91 +-91 +-91 query II rowsort SELECT + col2, - 35 FROM tab0 @@ -44495,8 +45060,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) + 22 AS col0, 74 AS col0 FROM tab0 +---- +19 +74 query IIIIII rowsort SELECT * FROM tab1 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON NULL IS NULL @@ -45846,8 +46414,15 @@ SELECT ALL + col0, col1 col2 FROM tab2 WHERE NULL IS NOT NULL # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col2, + col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-7503 SELECT - COUNT ( DISTINCT - ( - col0 ) ) FROM tab1 @@ -46648,8 +47223,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 AS col0, - COUNT ( * ) AS col0 FROM tab2 +---- +-3 +25 query I rowsort label-7633 SELECT + SUM ( - 74 ) FROM tab0 @@ -46887,8 +47465,15 @@ SELECT - + col0 + + col1 + col1 FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 76 + - CAST ( NULL AS INTEGER ) AS col0, col2 AS col0 FROM tab2 AS cor0 +---- +23 +40 +58 +NULL +NULL +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to ff8ce4a531b5881b7d0bfbeb9544d3d0 @@ -46915,8 +47500,15 @@ SELECT ALL + MAX ( ( col2 ) ) + - - 59 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - -5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col2, col0 AS col2 FROM tab1 +---- +-14 +-47 +-5 +51 +85 +91 query I rowsort SELECT - + col2 AS col1 FROM tab0 WHERE NULL IS NULL @@ -47066,8 +47658,15 @@ SELECT * FROM tab0 WHERE NOT - col0 + col1 IS NOT NULL # Datafusion - Expected - 54 # Datafusion - Expected - 0 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 / \(\- tab0\.col1\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 / - col1 col2, 54 AS col2 FROM tab0 +---- +-4 +-97 +0 +54 +54 +54 query I rowsort label-7697 SELECT - + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN + + col2 AND + ( + col1 ) @@ -47304,8 +47903,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, 96 AS col2 FROM tab2 +---- +-3 +96 query I rowsort label-7733 SELECT DISTINCT + col0 - col0 / - col2 FROM tab2 @@ -48014,8 +48616,15 @@ SELECT ALL * FROM tab1 WHERE NOT + CAST ( NULL AS FLOAT8 ) <> NULL # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 64 -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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 75 col0, + 64 AS col0 FROM tab0 +---- +64 +64 +64 +75 +75 +75 query I rowsort SELECT DISTINCT 38 + - 26 AS col2 FROM tab2 WHERE ( ( NULL >= NULL ) ) @@ -48200,8 +48809,15 @@ NULL # Datafusion - Expected - 90 # Datafusion - Expected - -6 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \+ cor0\.col1 AS col1" at position 0 and "Int64\(5\) \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 53 + + col1 AS col1, 5 + col0 AS col1 FROM tab1 AS cor0 +---- +-39 +-48 +-6 +56 +90 +96 query I rowsort label-7889 SELECT DISTINCT - col0 - col0 AS col0 FROM tab0 WHERE NOT + 72 IN ( + CAST ( NULL AS INTEGER ) * + col2 ) @@ -50964,8 +51580,15 @@ SELECT + COUNT ( * ) + - + 7 * 77 AS col2 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - -52 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(52\)\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + 52 ) AS col1, col2 AS col1 FROM tab0 +---- +-52 +-52 +-52 +10 +47 +99 query II rowsort SELECT DISTINCT col0, col1 FROM tab0 @@ -51986,8 +52609,15 @@ SELECT - + col0, col0 FROM tab1 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, col0 FROM tab0 cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-8515 SELECT DISTINCT + COUNT ( * ) + + 82 FROM tab2 AS cor0 @@ -52048,8 +52678,11 @@ SELECT ALL COUNT ( DISTINCT - + 31 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col2" at position 0 and "Int64\(32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 57 AS col2, 32 * COUNT ( * ) col2 FROM tab1 +---- +-57 +96 query II rowsort SELECT col2, col2 AS col0 FROM tab2 @@ -52078,8 +52711,15 @@ SELECT ALL - col2, col2 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 91 # Datafusion - Expected - 5 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 col2, col0 AS col2 FROM tab1 AS cor0 +---- +14 +47 +5 +51 +85 +91 query I rowsort label-8527 SELECT - col1 / + + ( col0 ) AS col0 FROM tab1 @@ -52434,8 +53074,15 @@ SELECT ALL + col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE col2 BETW # Datafusion - Expected - 3211 # Datafusion - Expected - 96 # Datafusion - Expected - 1331 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- tab1\.col2\) AS Int32\)\) AS col2" at position 0 and "\(\- tab1\.col2\) \+ \(\- tab1\.col2\) \* \(\- tab1\.col1\) \+ Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( - col2 AS INTEGER ) AS col2, - col2 + - col2 * - + col1 + + 83 AS col2 FROM tab1 +---- +1331 +319 +3211 +59 +68 +96 query III rowsort SELECT ALL * FROM tab1 WHERE col0 * - 94 IS NOT NULL @@ -53677,8 +54324,15 @@ SELECT - 42 + + col1 col2 FROM tab2 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1, col1 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT + - col0 * col1 + - 79 * + 30 * col2 + + col1 AS col0 FROM tab1 AS cor0 @@ -54246,8 +54900,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 27 AS col2, - COUNT ( * ) col2 FROM tab0, tab0 cor0 +---- +-9 +27 query I rowsort SELECT DISTINCT - ( 42 ) AS col0 FROM tab0 AS cor0 @@ -54615,8 +55272,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) < + col1 # Datafusion - Expected - 97 # Datafusion - Expected - -99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, + 97 col0 FROM tab0 cor0 +---- +-10 +-47 +-99 +97 +97 +97 query I rowsort label-8945 SELECT ALL + col2 / + + col0 + + 72 + + ( - col0 ) AS col1 FROM tab0 AS cor0 @@ -54772,8 +55436,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE - col2 < NULL # Datafusion - Expected - -51 # Datafusion - Expected - 90 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \+ cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col0 + + ( + col1 ) AS col2, - ( col0 ) AS col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +138 +65 +90 query III rowsort SELECT * FROM tab1 cor0 WHERE - 82 + - col0 IS NOT NULL @@ -55119,8 +55790,15 @@ SELECT * FROM tab0 cor0 WHERE NOT 13 >= + CAST ( NULL AS INTEGER ) # Datafusion - Expected - 46 # Datafusion - Expected - 8660960 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* \(\- Int64\(37\)\) \* cor0\.col2 \* \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 * - + 37 * col2 * + - col1 AS col2, + col0 AS col2 FROM tab2 AS cor0 +---- +10927432 +3298476 +46 +64 +75 +8660960 query I rowsort SELECT ALL col0 FROM tab1 AS cor0 WHERE - col2 IS NULL @@ -55179,8 +55857,15 @@ SELECT DISTINCT + + ( + - col0 ) FROM tab2 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - -91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col0, - col0 FROM tab1 AS cor0 +---- +-51 +-51 +-85 +-85 +-91 +-91 query I rowsort SELECT - 39 + - 44 AS col1 FROM tab2 cor0 @@ -55332,8 +56017,15 @@ SELECT ALL + COUNT ( * ) + - 59 * - 45 FROM tab0 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - -96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "\(\- cor0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2, - col2 FROM tab1 AS cor0 WHERE col2 * col1 IS NOT NULL +---- +-59 +-59 +-68 +-68 +-96 +-96 query I rowsort SELECT col1 * + + 77 FROM tab0 AS cor0 @@ -56339,8 +57031,15 @@ SELECT COUNT ( - + 42 ) FROM tab2 # Datafusion - Expected - -426275 # Datafusion - Expected - 95 # Datafusion - Expected - -563108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "tab1\.col2 \* tab1\.col0 \* \(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 95 AS col0, + col2 * col0 * + - col0 AS col0 FROM tab1 +---- +-249696 +-426275 +-563108 +95 +95 +95 query I rowsort label-9235 SELECT ALL - + SUM ( + ( + + 30 ) ) FROM tab2 AS cor0 @@ -56740,8 +57439,15 @@ SELECT 88, + COUNT ( * ) AS col2 FROM tab2 # Datafusion - Expected - -11303 # Datafusion - Expected - 81 # Datafusion - Expected - -287 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col0 \* Int64\(75\) \* tab0\.col0 / Int64\(\-50\) \+ Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, col0 * 75 * col0 / - 50 + + 50 AS col2 FROM tab0 +---- +-11303 +-14063 +-287 +1 +21 +81 query I rowsort label-9303 SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1 @@ -56758,8 +57464,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MIN ( - col0 ) col2, ( - 34 ) * + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL +---- +0 +NULL query I rowsort SELECT DISTINCT 1 FROM tab1 cor0 @@ -56939,8 +57648,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( * ) AS col1, 87 AS col1 FROM tab0 AS cor0 +---- +3 +87 query I rowsort SELECT DISTINCT + col1 + 22 AS col1 FROM tab2 AS cor0 @@ -57097,8 +57809,15 @@ SELECT col0, - 93 FROM tab1 # Datafusion - Expected - 85 # Datafusion - Expected - 29 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 29 AS col2, + col0 AS col2 FROM tab1 +---- +29 +29 +29 +51 +85 +91 query I rowsort SELECT col1 * col1 * col2 * + 80 + - - col2 * - + col2 AS col2 FROM tab1 @@ -57390,8 +58109,15 @@ NULL # Datafusion - Expected - 40 # Datafusion - Expected - 75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, + col2 AS col1 FROM tab2 AS cor0 +---- +23 +40 +46 +58 +64 +75 query III rowsort SELECT * FROM tab0 AS cor0 WHERE ( col2 ) * + col1 - + - col2 IS NULL @@ -57790,8 +58516,11 @@ SELECT DISTINCT + col0 + + 44 + ( - 28 ) AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 140 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(57\) \+ Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) AS col0, 57 + 83 col0 FROM tab2 AS cor0 +---- +140 +NULL query I rowsort SELECT - 97 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL @@ -58753,8 +59482,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) col1, 19 AS col1 FROM tab2 AS cor0 +---- +-3 +19 query I rowsort SELECT 8 * col0 + + - col2 FROM tab2 AS cor0 @@ -59006,8 +59738,15 @@ SELECT DISTINCT + 60 * col2 FROM tab2 WHERE col1 BETWEEN NULL AND col1 + + + col # Datafusion - Expected - 172 # Datafusion - Expected - -77 # Datafusion - Expected - 164 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col2 \+ cor0\.col1 \+ Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, col2 + col1 + 47 AS col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +121 +164 +172 query I rowsort label-9681 SELECT DISTINCT COUNT ( + 8 ) AS col1 FROM tab2 AS cor0 @@ -60401,8 +61140,15 @@ SELECT DISTINCT + col1 * + + col0, ( col1 ) col0 FROM tab0 # Datafusion - Expected - -87 # Datafusion - Expected - -97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\)" at position 0 and "\(\- tab0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - col0 ), - col0 FROM tab0 +---- +-15 +-15 +-87 +-87 +-97 +-97 query I rowsort SELECT col2 * + 99 + + col0 FROM tab1 AS cor0 @@ -60671,8 +61417,15 @@ SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT + 51 IS NOT NULL # Datafusion - Expected - -87 # Datafusion - Expected - 9156024 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* cor0\.col0 \* Int64\(\-27\) \* Int64\(\-38\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 * + ( col0 ) * - 27 * - 38 AS col1, ( - col0 ) col1 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +1415880 +8212104 +9156024 query I rowsort SELECT ALL + col0 * + col1 * + 84 FROM tab0 diff --git a/data/sqlite/random/aggregates/slt_good_88.slt b/data/sqlite/random/aggregates/slt_good_88.slt index 133c5cb..5a3b011 100644 --- a/data/sqlite/random/aggregates/slt_good_88.slt +++ b/data/sqlite/random/aggregates/slt_good_88.slt @@ -891,8 +891,15 @@ SELECT - + 16 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - -3431 # Datafusion - Expected - 77 # Datafusion - Expected - -1667 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col2\) \* cor0\.col2 \+ Int64\(\-67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col1 AS col0, - col2 * + col2 + + - 67 col0 FROM tab2 AS cor0 +---- +-1667 +-3431 +-596 +51 +67 +77 query I rowsort label-146 SELECT ALL - ( - - SUM ( DISTINCT col2 ) ) FROM tab2 AS cor0 WHERE NOT + col0 IS NULL @@ -1029,8 +1036,15 @@ SELECT * FROM tab0 AS cor0 WHERE ( NOT ( col0 + - 96 IS NOT NULL ) ) # Datafusion - Expected - -1275 # Datafusion - Expected - 0 # Datafusion - Expected - -782 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / cor0\.col1 \* Int64\(\-99\) AS col0" at position 0 and "Int64\(\-17\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 / + + col1 * + - 99 AS col0, - 17 * + + col0 AS col0 FROM tab2 AS cor0 +---- +-1088 +-1275 +-782 +0 +0 +0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 @@ -1077,8 +1091,15 @@ SELECT DISTINCT - col1 / - ( - - 43 ) FROM tab0 # Datafusion - Expected - -64 # Datafusion - Expected - 3886 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* tab2\.col1 AS col0" at position 0 and "\(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * col1 AS col0, ( + - col0 ) AS col0 FROM tab2 +---- +-46 +-64 +-75 +1173 +3080 +3886 query I rowsort SELECT ( - col2 ) * 53 AS col2 FROM tab2 @@ -1396,8 +1417,9 @@ SELECT + + col1 AS col1 FROM tab0 WHERE NULL IS NOT NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 1 and "\(\- cor0\.col2\) \+ cor0\.col2 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + + col0 / CAST ( - 99 AS INTEGER ) + + col1 AS col2, col0 AS col1, - ( + col2 ) + col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL +---- query I rowsort label-222 SELECT ALL - COUNT ( * ) * + MAX ( ALL + + 34 ) AS col1 FROM tab1 AS cor0 @@ -1839,8 +1861,15 @@ SELECT - col1 col2 FROM tab0 WHERE NOT ( 3 * + ( + col1 ) IS NOT NULL ) # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, + col2 AS col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT DISTINCT - col2 * col1 * + 77 * + col1 * + - 7 FROM tab1 @@ -1890,8 +1919,9 @@ SELECT * FROM tab0 AS cor0 WHERE 73 / + 81 * - - 9 NOT BETWEEN col2 AND + col2 9 values hashing to c4b42765dff94eaaa46040e537fb43b7 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + col2 ) AS col0, ( ( + - col2 ) ) AS col0 FROM tab0 WHERE ( + col2 ) <> col2 +---- query III rowsort label-303 SELECT ALL * FROM tab2 WHERE NOT - col1 IN ( + ( - CAST ( NULL AS INTEGER ) ), - 23 ) @@ -1998,8 +2028,15 @@ SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT BETWEEN + col2 AND + col1 # Datafusion - Expected - 40 # Datafusion - Expected - 55 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-55\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 55 AS col0, col2 AS col0 FROM tab2 AS cor0 +---- +23 +40 +55 +55 +55 +58 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN NULL AND NULL @@ -2540,8 +2577,15 @@ SELECT * FROM tab0 WHERE - col2 / + col1 IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, + col1 AS col2 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query II rowsort SELECT + 95, col0 AS col2 FROM tab2 cor0 @@ -3189,8 +3233,15 @@ SELECT + 38 / - col1 AS col0 FROM tab1 # Datafusion - Expected - -24334 # Datafusion - Expected - 35 # Datafusion - Expected - -252300 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col0" at position 0 and "tab2\.col0 \* tab2\.col2 \* \(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 35 AS col0, + col0 * + col2 * - col2 AS col0 FROM tab2 +---- +-102400 +-24334 +-252300 +35 +35 +35 query I rowsort SELECT - col0 + - 77 AS col1 FROM tab2 AS cor0 WHERE col2 >= - col2 @@ -4352,8 +4403,15 @@ SELECT DISTINCT - col1 + - col1 * + col0 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - -286425 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* cor0\.col0 \* \(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 57 * + col0 * - col1 AS col1, + col2 col1 FROM tab2 cor0 +---- +-133722 +-280896 +-286425 +23 +40 +58 query I rowsort SELECT - col1 + 16 AS col0 FROM tab1 cor0 @@ -4562,8 +4620,11 @@ SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN - col1 AND + col2 * - co # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, + 81 AS col2 FROM tab2 +---- +81 +NULL query II rowsort SELECT col0, - col2 col1 FROM tab0 @@ -4994,8 +5055,15 @@ NULL # Datafusion - Expected - 87 # Datafusion - Expected - 81 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- \(\- cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, - ( - col0 ) col2 FROM tab0 AS cor0 +---- +1 +15 +21 +81 +87 +97 query I rowsort label-818 SELECT - col2 - + 15 AS col0 FROM tab0 AS cor0 WHERE col1 NOT IN ( + 22, CAST ( NULL AS INTEGER ), - col2, - + 19, col1, + + col2 * + col1 + col1 + col2, 2, - - col0 * - 67 - + - 36, + 34, + col1 ) @@ -5072,8 +5140,11 @@ SELECT - 21 col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(9\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( 9 ) AS col0, + COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +3 +9 query I rowsort SELECT DISTINCT - - 38 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 @@ -5176,8 +5247,15 @@ SELECT col0 + - - col2 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 5998 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(62\) \+ Int64\(5\) \+ Int64\(41\) AS col1" at position 0 and "CAST\(\(\- cor0\.col1\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 * + + 62 + 5 + + 41 AS col1, CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +3704 +4262 +5998 query I rowsort SELECT 55 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL @@ -5232,8 +5310,11 @@ SELECT - 45 * + col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / tab1\.col1 AS col0" at position 0 and "Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) / col1 AS col0, 19 AS col0 FROM tab1 +---- +19 +NULL query III rowsort SELECT DISTINCT * FROM tab1 WHERE 88 * - col2 IS NULL @@ -5788,8 +5869,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab0 cor0 +---- +3 +3 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -6225,8 +6309,15 @@ SELECT + + MIN ( + + col1 ) AS col0 FROM tab1 cor0 # Datafusion - Expected - 62 # Datafusion - Expected - 99 # Datafusion - Expected - 196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 \- \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 AS col1, ( col2 ) - - col0 AS col1 FROM tab0 cor0 +---- +10 +196 +47 +62 +97 +99 query I rowsort SELECT DISTINCT 92 * col2 * - col2 AS col1 FROM tab2 AS cor0 @@ -6953,8 +7044,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col2, 94 + 43 * - 55 AS col2 FROM tab2 +---- +-2271 +-3 query I rowsort label-1135 SELECT ALL COUNT ( ( 44 ) ) AS col1 FROM tab2 @@ -7911,8 +8005,15 @@ SELECT * FROM tab2 AS cor0 WHERE col1 * col0 + col2 IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - 78 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 78 AS col1, col2 AS col1 FROM tab0 cor0 +---- +10 +47 +78 +78 +78 +99 query I rowsort label-1295 SELECT DISTINCT + + ( + + col1 ) * + col1 AS col2 FROM tab2 AS cor0 WHERE NOT 4 BETWEEN + col0 AND - col1 * - - col1 - - CAST ( NULL AS INTEGER ) @@ -8614,8 +8715,15 @@ SELECT col1 + - + col0 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -6 # Datafusion - Expected - -31 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(97\)\) \+ Int64\(66\) AS col1" at position 0 and "Int64\(\-4\) \+ \(\- Int64\(2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 97 + + + 66 AS col1, ( - 4 ) + - + 2 AS col1 FROM tab0 AS cor0 +---- +-31 +-31 +-31 +-6 +-6 +-6 query I rowsort SELECT + col2 * col0 + ( 41 ) + + ( + col0 ) FROM tab1 AS cor0 @@ -8726,8 +8834,11 @@ SELECT ALL + col0 * + + col2 FROM tab1 WHERE NOT - col2 / + col0 NOT BETWEEN - - # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) + - + COUNT ( * ) col2 FROM tab1 +---- +-3 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -9118,8 +9229,15 @@ SELECT + COUNT ( * ) * + SUM ( ALL + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS # Datafusion - Expected - 21 # Datafusion - Expected - 7200 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* cor0\.col2 AS col1" at position 0 and "cor0\.col2 \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 75 * + + col2 AS col1, col2 + - col1 AS col1 FROM tab1 AS cor0 +---- +21 +4425 +5100 +54 +7200 +82 query I rowsort label-1499 SELECT + - CAST ( - AVG ( ALL - + 2 ) AS INTEGER ) FROM tab1 cor0 @@ -10686,8 +10804,9 @@ SELECT DISTINCT - col2 * - 15 AS col2 FROM tab1 AS cor0 885 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col2" at position 0 and "Int64\(74\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 AS col2, 74 * + col2 AS col2 FROM tab1 AS cor0 WHERE NOT 50 IS NOT NULL +---- query I rowsort SELECT DISTINCT col0 * + 2 AS col2 FROM tab0 AS cor0 @@ -11375,8 +11494,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( col2 ) AND col2 # Datafusion - Expected - -178503851 # Datafusion - Expected - 6188 # Datafusion - Expected - -220255604 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(\-37\) \* Int64\(37\) \* Int64\(\-26\) \* cor0\.col0 \* \(\- cor0\.col2\) \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * - col2 AS col1, - 37 * + 37 * ( - 26 ) * col0 * - col2 + + col2 AS col1 FROM tab1 AS cor0 +---- +-174268128 +-178503851 +-220255604 +4896 +5015 +6188 query II rowsort label-1877 SELECT DISTINCT + 53 * 69 AS col0, SUM ( ALL + + col0 ) FROM tab0 AS cor0 @@ -11814,8 +11940,15 @@ SELECT DISTINCT - col2 + - 67 FROM tab0 AS cor0 # Datafusion - Expected - 97 # Datafusion - Expected - 12 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / \(\- CAST\(\(\- \(\- cor0\.col2\)\) AS Int32\)\) \+ Int64\(\-84\) \+ cor0\.col0 \- \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 / - CAST ( - - col2 AS INTEGER ) + - 84 + col0 - - col2 col2, + col0 AS col2 FROM tab0 AS cor0 +---- +-23 +111 +12 +15 +87 +97 query II rowsort label-1949 SELECT ALL + + MAX ( + col0 ) col2, - 15 FROM tab2 WHERE NOT - col0 IS NULL @@ -12076,8 +12209,15 @@ SELECT DISTINCT ( + + col0 ), col0 + col1 * + col0 + + col0 / + col0 AS col1 FRO # Datafusion - Expected - 71 # Datafusion - Expected - 5510 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \* Int64\(\-95\) AS col1" at position 0 and "Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 * - 95 AS col1, 71 AS col1 FROM tab2 +---- +2185 +3800 +5510 +71 +71 +71 query I rowsort label-1990 SELECT - 73 / 11 * col2 FROM tab0 AS cor0 @@ -12238,8 +12378,10 @@ SELECT col1, col2 * + col1 * + - col0 - + 18 col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 04182262f5ca40c5741e434b03005208 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* Int64\(\-13\) AS col1" at position 1 and "\(\- tab0\.col1\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 45 * + col1 + + col0 * - col1 AS col0, col0 * - 13 AS col1, - + col1 AS col1 FROM tab0 WHERE NOT - col1 IS NULL +---- +9 values hashing to 068124186cb41777209f478118ccc3f1 query I rowsort SELECT + - 55 AS col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL @@ -12295,8 +12437,15 @@ SELECT 78 + + 87 FROM tab0 cor0 # Datafusion - Expected - 31 # Datafusion - Expected - 38352 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \* \(\- tab1\.col2\) \* tab1\.col1 AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 12 * - col2 * + col1 AS col0, 31 AS col0 FROM tab1 +---- +16128 +31 +31 +31 +3540 +38352 query I rowsort label-2024 SELECT ( - + 85 ) * + 75 AS col2 FROM tab0, tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL @@ -12807,8 +12956,15 @@ SELECT DISTINCT 37 - + ( - col1 ) col0 FROM tab0 # Datafusion - Expected - -21 # Datafusion - Expected - 81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "\(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, - col1 AS col2 FROM tab0 +---- +-1 +-21 +-81 +1 +21 +81 query I rowsort SELECT ALL - 41 * - - 94 * + 11 + - col2 AS col1 FROM tab2 WHERE NOT ( NOT col0 IS NULL ) @@ -13082,8 +13238,15 @@ SELECT - 88 * + - ( + col1 ) FROM tab1 AS cor0 # Datafusion - Expected - 460 # Datafusion - Expected - 81 # Datafusion - Expected - 2162 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(46\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, + 46 * + + col2 AS col2 FROM tab0 AS cor0 +---- +1 +21 +2162 +4554 +460 +81 query I rowsort SELECT + col0 * + 8 FROM tab2 cor0 @@ -14177,8 +14340,15 @@ SELECT - ( - - 7 ) col0 FROM tab1 cor0 # Datafusion - Expected - 20 # Datafusion - Expected - -742 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \* \(\- cor0\.col1\) AS col2" at position 0 and "Int64\(4\) \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 53 * - col1 AS col2, 4 * col1 AS col2 FROM tab1 AS cor0 +---- +-2491 +-265 +-742 +188 +20 +56 query I rowsort SELECT - 81 * + + 49 AS col2 FROM tab2 AS cor0 @@ -14839,8 +15009,15 @@ SELECT DISTINCT 42 * + col2 FROM tab2 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, col1 AS col2 FROM tab1 cor0 +---- +14 +14 +47 +47 +5 +5 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + + - ( 72 ) IS NOT NULL @@ -16242,8 +16419,15 @@ SELECT - COUNT ( * ), 24 AS col1 FROM tab2 cor0 # Datafusion - Expected - -68 # Datafusion - Expected - -5 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col2, - col2 AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +-59 +-68 +-96 query I rowsort label-2660 SELECT CAST ( col2 AS INTEGER ) * - col2 FROM tab2 AS cor0 @@ -17096,8 +17280,9 @@ SELECT + COUNT ( * ), + 78 col0 FROM tab1 78 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, 92 AS col0 FROM tab0 WHERE - - col2 < NULL +---- query I rowsort label-2804 SELECT ALL - MAX ( col2 ) * + - SUM ( DISTINCT 67 ) AS col1 FROM tab2 @@ -17642,8 +17827,15 @@ SELECT DISTINCT + col0, - col0 AS col1 FROM tab2 # Datafusion - Expected - -21 # Datafusion - Expected - -81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1, - col1 FROM tab0 AS cor0 +---- +-1 +-1 +-21 +-21 +-81 +-81 query I rowsort label-2890 SELECT ALL 86 * - 70 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT 27 IN ( + col2 * 31 + + + 90 ) @@ -17994,8 +18186,11 @@ SELECT DISTINCT + COUNT ( * ) * 83 + - ( + SUM ( ALL + col2 ) ) * + 98 col0 FROM # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "max\(cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, + MAX ( ( + col2 ) ) AS col2 FROM tab1 AS cor0 +---- +3 +96 query I rowsort SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE - 62 IS NULL @@ -18783,8 +18978,15 @@ SELECT ALL + 32 + - col2 + - 65 AS col0 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "tab2\.col2 \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 15 AS col2, col2 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 +---- +15 +15 +15 +NULL +NULL +NULL query I rowsort SELECT ALL col1 AS col0 FROM tab1 WHERE NOT + + ( - col2 ) IS NULL @@ -18817,8 +19019,15 @@ SELECT + + col2 * - - col2 FROM tab0 AS cor0 # Datafusion - Expected - -21 # Datafusion - Expected - -54 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 54 AS col2, - col1 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-54 +-54 +-54 +-81 query I rowsort SELECT col1 * + col1 * col0 FROM tab2 cor0 @@ -20493,8 +20702,11 @@ SELECT ALL + col0 col1, col2 - - + 83 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + ( + 57 ) AS col2 FROM tab2 +---- +3 +57 query I rowsort SELECT - - 47 FROM tab1 WHERE NOT NULL IS NULL @@ -20522,8 +20734,15 @@ SELECT ALL COUNT ( - 24 ) AS col2 FROM tab1 # Datafusion - Expected - 6612 # Datafusion - Expected - 81 # Datafusion - Expected - 1140 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col0 \* Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col2, + col0 * + 76 AS col2 FROM tab0 +---- +1 +1140 +21 +6612 +7372 +81 query II rowsort SELECT 14 AS col0, + col0 AS col1 FROM tab0 AS cor0 @@ -21343,8 +21562,15 @@ SELECT - 3 AS col0, col2 + - - ( 58 ) / + col1 FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - 12 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + 12 ) AS col2, + col1 AS col2 FROM tab0 +---- +1 +12 +12 +12 +21 +81 query I rowsort label-3489 SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) col0 FROM tab1 AS cor0 @@ -21625,8 +21851,15 @@ SELECT ALL - + 44 / ( col2 ) FROM tab0 WHERE + col1 * + col0 NOT BETWEEN NULL AN # Datafusion - Expected - -62 # Datafusion - Expected - 51 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col1" at position 0 and "\(\- tab0\.col2\) \- tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 51 AS col1, - col2 - + col0 AS col1 FROM tab0 +---- +-196 +-62 +-97 +51 +51 +51 query I rowsort label-3534 SELECT + MAX ( ALL + + col1 ) AS col2 FROM tab0 cor0 @@ -21857,8 +22090,12 @@ SELECT ALL - 8 - col0 FROM tab0 # Datafusion - Expected - -2208 # Datafusion - Expected - -47 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* Int64\(\-24\) AS col1" at position 0 and "Int64\(\-22\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 92 * - 24 AS col1, - 47 AS col2, - 22 AS col1 FROM tab0 +---- +-22 +-2208 +-47 query I rowsort SELECT ALL + ( + 62 ) * 43 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL @@ -22965,8 +23202,15 @@ SELECT COUNT ( * ) * 85 AS col2 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -76986 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* \(\- Int64\(\-18\)\) \* \(\- tab1\.col1\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * - - 18 * - col1 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 +---- +-12852 +-7650 +-76986 +NULL +NULL +NULL query I rowsort SELECT col2 + - col2 + + col2 AS col2 FROM tab1 @@ -23126,8 +23370,10 @@ SELECT + 27 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to fff755553b80bc51eec85c1d33ff8463 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col2, - col1 * col0 AS col1, + col2 FROM tab0 AS cor0 +---- +9 values hashing to ca0fb0c0e81696479a185e60d05de30d query I rowsort SELECT 49 FROM tab1 AS cor0 WHERE NOT ( + 53 ) IS NOT NULL @@ -23554,8 +23800,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 94 AS col2, + COUNT ( * ) * + - ( + - COUNT ( * ) ) * + MAX ( ALL - + 64 ) AS col2 FROM tab0 AS cor0 +---- +-576 +-94 query I rowsort label-3868 SELECT - COUNT ( + col1 ) col2 FROM tab2 AS cor0 @@ -24065,8 +24314,15 @@ SELECT COUNT ( DISTINCT - 72 ) + - COUNT ( * ) * + - 10 FROM tab2 # Datafusion - Expected - 86 # Datafusion - Expected - 69 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ Int64\(55\) AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + 55 AS col2, + 86 AS col2 FROM tab1 +---- +102 +60 +69 +86 +86 +86 query I rowsort label-3952 SELECT + ( COUNT ( * ) ) + - - 25 FROM tab0 @@ -24607,8 +24863,15 @@ SELECT - col1 + + - col0 + + + col0 * + CAST ( col1 AS INTEGER ) AS col0 FROM ta # Datafusion - Expected - 55 # Datafusion - Expected - -53 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \+ Int64\(24\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 77 + + + 24 AS col2, 55 AS col2 FROM tab1 +---- +-53 +-53 +-53 +55 +55 +55 query I rowsort SELECT col2 * col2 + - - col2 + col2 * - + 14 AS col0 FROM tab1 @@ -25503,8 +25766,11 @@ SELECT * FROM tab1 WHERE NOT + - 19 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, - 10 AS col2 FROM tab1 +---- +-10 +3 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 22 + ( - col0 ) + col2 < NULL @@ -25680,8 +25946,11 @@ SELECT DISTINCT + 36 AS col0, 51 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) col1 FROM tab0 +---- +3 +NULL query I rowsort label-4228 SELECT CAST ( NULL AS INTEGER ) * + col2 / - col1 FROM tab0 @@ -25928,8 +26197,11 @@ SELECT * FROM tab2 cor0 WHERE NOT - 62 BETWEEN NULL AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 12 col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +-12 +3 query I rowsort label-4271 SELECT + - ( + + COUNT ( DISTINCT + 67 ) ) FROM tab0 cor0 @@ -26071,8 +26343,11 @@ SELECT ALL - col1 AS col1 FROM tab1 WHERE NOT + col0 <= - 50 + + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +3 +3 query I rowsort SELECT col1 * - col1 * - - col0 FROM tab1 cor0 @@ -26297,8 +26572,15 @@ SELECT DISTINCT - col0 * + col2 FROM tab1 WHERE NOT col0 IS NULL # Datafusion - Expected - -40 # Datafusion - Expected - 145 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \+ tab2\.col0 AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 + col0 col0, - col2 AS col0 FROM tab2 +---- +-23 +-40 +-58 +116 +134 +145 query II rowsort label-4330 SELECT ALL col0 / col1 AS col2, col0 FROM tab1 @@ -26416,8 +26698,15 @@ SELECT DISTINCT + col2 / + + 64 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 75 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(70\) / \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, + 70 / - col1 AS col1 FROM tab2 AS cor0 +---- +-1 +-1 +0 +46 +64 +75 query I rowsort label-4349 SELECT ALL MAX ( DISTINCT 89 ) * MIN ( - + 21 ) / - 98 FROM tab2 AS cor0 @@ -26495,8 +26784,9 @@ SELECT COUNT ( ALL col2 ) / + + COUNT ( * ) FROM tab1 AS cor0 1 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) \* \(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "CAST\(NULL AS Float64\) \* Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RR valuesort SELECT - CAST ( NULL AS FLOAT8 ) * - - col0 AS col2, CAST ( NULL AS FLOAT8 ) * + + 3 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 <> NULL +---- query I rowsort SELECT - + ( + + 52 ) * - - col1 + - col2 FROM tab0 AS cor0 @@ -26764,8 +27054,15 @@ SELECT * FROM tab1 AS cor0 WHERE - 24 - col0 IS NOT NULL # Datafusion - Expected - -85 # Datafusion - Expected - -91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0, - col0 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL +---- +-51 +-51 +-85 +-85 +-91 +-91 query I rowsort label-4405 SELECT ( col0 ) + CAST ( - - 45 AS INTEGER ) AS col0 FROM tab0 AS cor0 @@ -27406,8 +27703,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col1, COUNT ( * ) + - - 6 AS col1 FROM tab2 +---- +-3 +9 query I rowsort SELECT ALL + 43 FROM tab0 AS cor0 WHERE NOT + col0 <= + col2 + - + col0 * + col0 * + 78 @@ -27456,8 +27756,11 @@ SELECT 43 + - col2, col0 + + 51 col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3081 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-54\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(19\) AS col2" at position 0 and "Int64\(51\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) + + - 54 * COUNT ( * ) * + 19 AS col2, 51 + + COUNT ( * ) AS col2 FROM tab1 +---- +-3081 +54 query III rowsort SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN + + col0 AND + col2 @@ -27560,8 +27863,12 @@ SELECT + col1 AS col0, 92 AS col1 FROM tab0 # Datafusion - Expected - 3 # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 and "count\(DISTINCT \(\- \(\- tab1\.col1\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + COUNT ( * ) AS col2, COUNT ( * ) col0, COUNT ( DISTINCT - - col1 ) col0 FROM tab1 +---- +3 +3 +3 query I rowsort SELECT DISTINCT col1 * + + col2 AS col2 FROM tab0 @@ -28235,8 +28542,15 @@ SELECT DISTINCT - col0 / - 21 FROM tab0 # Datafusion - Expected - -15 # Datafusion - Expected - 30 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \- Int64\(67\) AS col0" at position 0 and "Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 - + 67 AS col0, - 15 AS col0 FROM tab0 +---- +-15 +-15 +-15 +-52 +20 +30 query III rowsort SELECT * FROM tab0 WHERE + + 38 <> + - 21 @@ -28567,8 +28881,15 @@ SELECT DISTINCT + col1 / - - col1 + + 60 + + 61 * 10 FROM tab2 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, - col1 AS col2 FROM tab1 AS cor0 +---- +-14 +-14 +-47 +-47 +-5 +-5 query I rowsort SELECT - 31 col2 FROM tab2 @@ -28798,8 +29119,15 @@ SELECT DISTINCT + COUNT ( + 21 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -31 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 31 AS col0, - col2 col0 FROM tab0 AS cor0 +---- +-10 +-31 +-31 +-31 +-47 +-99 query I rowsort label-4735 SELECT CAST ( NULL AS INTEGER ) + 67 FROM tab2 AS cor0 @@ -28922,8 +29250,15 @@ SELECT ALL - col2 - - 89 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -62 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 62 AS col2, CAST ( NULL AS INTEGER ) col2 FROM tab1 +---- +-62 +-62 +-62 +NULL +NULL +NULL query I rowsort SELECT col1 - - - col2 AS col1 FROM tab2 @@ -29921,8 +30256,11 @@ SELECT DISTINCT * FROM tab1 WHERE - 16 + col1 IN ( + 12 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 156 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(tab0\.col2\) AS col2" at position 0 and "\(\- min\(tab0\.col1\)\) / min\(Int64\(63\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( ALL col2 ) AS col2, - MIN ( col1 ) / + MIN ( + 63 ) AS col2 FROM tab0 +---- +0 +156 query I rowsort label-4914 SELECT ALL - MIN ( + col1 ) * - + COUNT ( * ) FROM tab2 @@ -30456,8 +30794,15 @@ SELECT ALL - ( - col1 ) + - col0 FROM tab2 WHERE - - ( + ( - - col2 ) ) IS NULL # Datafusion - Expected - -4770 # Datafusion - Expected - 58 # Datafusion - Expected - -4770 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "Int64\(\-90\) \* Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, - 90 * + 53 col1 FROM tab2 +---- +-4770 +-4770 +-4770 +23 +40 +58 query I rowsort SELECT + col0 + - 58 + - col0 * - - 15 FROM tab1 @@ -31168,8 +31513,15 @@ NULL # Datafusion - Expected - 10 # Datafusion - Expected - 81 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +1 +10 +21 +47 +81 +99 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + col1 <> + + col0 + + col0 @@ -31569,8 +31921,15 @@ SELECT + col0 * 97 AS col1 FROM tab1 # Datafusion - Expected - -68 # Datafusion - Expected - 0 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 / Int64\(\-79\) AS col0" at position 0 and "\(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 / - 79 AS col0, ( - col2 ) AS col0 FROM tab1 +---- +-1 +-1 +-59 +-68 +-96 +0 query I rowsort label-5180 SELECT ALL SUM ( - ( - col0 ) ) FROM tab0 @@ -31609,8 +31968,15 @@ SELECT ALL + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL # Datafusion - Expected - 972 # Datafusion - Expected - 66 # Datafusion - Expected - 972 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ cor0\.col1 AS col2" at position 0 and "Int64\(12\) \* Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 + + col1 AS col2, 12 * + 81 col2 FROM tab0 cor0 +---- +-66 +-96 +66 +972 +972 +972 query I rowsort label-5186 SELECT CAST ( NULL AS INTEGER ) + - col1 + - col0 + + 44 / - col2 AS col0 FROM tab2 cor0 @@ -31770,8 +32136,15 @@ SELECT DISTINCT + - 63 AS col2 FROM tab1 cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 3196 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \* \(\- tab1\.col1\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 * - col1 AS col1, + col0 AS col1 FROM tab1 +---- +1344 +295 +3196 +51 +85 +91 query I rowsort SELECT ALL col1 + col1 FROM tab0 WHERE NOT ( + - 84 ) NOT BETWEEN NULL AND NULL @@ -31857,8 +32230,15 @@ SELECT ALL - col0 * + col2 * + - col0 + + + col0 col1, - 10 FROM tab1 # Datafusion - Expected - -40 # Datafusion - Expected - 90 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "\(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 AS col2, - col2 AS col2 FROM tab2 +---- +-23 +-40 +-58 +90 +90 +90 query I rowsort label-5223 SELECT ALL + col1 + - - CAST ( - 93 AS INTEGER ) col1 FROM tab0 AS cor0 @@ -32555,8 +32935,15 @@ SELECT ALL 8 / + COUNT ( * ) FROM tab2 cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 col0, col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 @@ -32565,8 +32952,15 @@ SELECT DISTINCT + col0 col0, col0 FROM tab1 AS cor0 # Datafusion - Expected - 98 # Datafusion - Expected - 99 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + col2 ) AS col1, 98 AS col1 FROM tab0 +---- +10 +47 +98 +98 +98 +99 query I rowsort SELECT + - col2 / - 3 AS col2 FROM tab1 WHERE NOT NULL IS NULL @@ -32752,8 +33146,11 @@ SELECT 44 / + col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 270 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-90\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, - 90 * - COUNT ( * ) col0 FROM tab2 +---- +270 +3 query I rowsort label-5366 SELECT ALL - CAST ( - + col1 AS INTEGER ) FROM tab0 @@ -32859,8 +33256,15 @@ SELECT ALL 0, - 56 AS col2 FROM tab1 # Datafusion - Expected - -68 # Datafusion - Expected - 96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "\(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, - col2 col0 FROM tab1 +---- +-59 +-68 +-96 +59 +68 +96 query III rowsort label-5382 SELECT DISTINCT * FROM tab0 WHERE + ( - ( - + 73 ) ) * col2 * - + 89 / - CAST ( NULL AS INTEGER ) / + + col2 IS NULL @@ -32992,8 +33396,11 @@ SELECT ALL col2 + col2 * - + 55 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 15 AS col2, - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0 +---- +15 +3 query I rowsort SELECT ALL 43 AS col2 FROM tab2 cor0 @@ -33043,8 +33450,15 @@ SELECT * FROM tab0 AS cor0 WHERE + 9 * + 26 * + col2 <> - col1 # Datafusion - Expected - 85 # Datafusion - Expected - 48 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-48\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 48 AS col1, + col0 col1 FROM tab1 AS cor0 +---- +48 +48 +48 +51 +85 +91 query II rowsort label-5411 SELECT ( 57 ), - COUNT ( * ) AS col2 FROM tab0 @@ -33421,8 +33835,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 AS col1, 97 * - COUNT ( * ) col1 FROM tab1 +---- +-291 +85 query II rowsort SELECT - col1, col2 col1 FROM tab1 @@ -34255,8 +34672,15 @@ SELECT DISTINCT MIN ( - ( + - col1 ) ) FROM tab2 # Datafusion - Expected - 5307 # Datafusion - Expected - NULL # Datafusion - Expected - 5307 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int32\) AS Int32\) AS col0" at position 0 and "Int64\(93\) \+ Int64\(79\) \* Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, 93 + 79 * + 66 col0 FROM tab2 +---- +5307 +5307 +5307 +NULL +NULL +NULL query I rowsort SELECT ALL col0 + + - col2 + col0 AS col0 FROM tab1 AS cor0 @@ -34418,8 +34842,15 @@ SELECT - ( + 88 ) FROM tab2 cor0 # Datafusion - Expected - 3 # Datafusion - Expected - 58 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, 3 col0 FROM tab2 +---- +23 +3 +3 +3 +40 +58 query I rowsort SELECT 80 * - 90 FROM tab0 @@ -34476,8 +34907,15 @@ SELECT + col0 - - 93 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 79 # Datafusion - Expected - -12 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \- Int64\(26\) AS col2" at position 0 and "Int64\(\-8\) \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 14 - + + 26 AS col2, - 8 + + col0 AS col2 FROM tab0 AS cor0 +---- +-12 +-12 +-12 +7 +79 +89 query I rowsort SELECT + - col2 - + 89 * col1 FROM tab2 AS cor0 @@ -34695,8 +35133,11 @@ SELECT DISTINCT - col2 + - 71 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) \- \(\- Int64\(51\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - CAST ( NULL AS INTEGER ) - - + 51 AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +3 +NULL query I rowsort SELECT - col2 * - col0 - 65 AS col0 FROM tab2 AS cor0 @@ -35428,8 +35869,15 @@ SELECT DISTINCT - COUNT ( * ) - ( - 65 ) col2 FROM tab0 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col1, + col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-5812 SELECT col1 / + 16 AS col1 FROM tab2 @@ -35943,8 +36391,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, 56 - - - COUNT ( * ) * + - COUNT ( * ) * + SUM ( ALL - - 16 ) AS col1 FROM tab0 AS cor0 +---- +-3 +488 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - 61 IS NULL @@ -36308,8 +36759,11 @@ SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 WHERE + col1 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-89\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 89 AS col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0 +---- +3 +89 query I rowsort SELECT col1 - + 74 FROM tab0 AS cor0 WHERE 0 IN ( + col0 ) @@ -36467,8 +36921,9 @@ SELECT DISTINCT + + col1 * - - col2 AS col2 FROM tab2 AS cor0 3886 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 + + - col0 AS col2, col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL +---- query I rowsort label-5990 SELECT ALL + 36 / + 59 AS col1 FROM tab1 AS cor0 @@ -36645,8 +37100,15 @@ SELECT ALL + 46 - - col1 AS col0 FROM tab1 AS cor0 WHERE ( ( NOT ( ( + - 93 * co # Datafusion - Expected - 13835 # Datafusion - Expected - -3196 # Datafusion - Expected - 129713 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* \(\- cor0\.col2\) AS col2" at position 0 and "Int64\(31\) \* cor0\.col1 \* Int64\(89\) \+ Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 * + - col2 AS col2, + 31 * + col1 * + 89 + + + 40 AS col2 FROM tab1 AS cor0 +---- +-1344 +-295 +-3196 +129713 +13835 +38666 query I rowsort SELECT ALL col0 FROM tab0 WHERE NOT ( col2 / - 13 - + ( - - col1 ) ) = + col0 + + col2 - - 72 * - col1 @@ -36694,8 +37156,15 @@ SELECT - ( COUNT ( * ) ) / - + 4 AS col2 FROM tab2 # Datafusion - Expected - -40 # Datafusion - Expected - 45 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 45 col1, - col2 col1 FROM tab2 +---- +-23 +-40 +-58 +45 +45 +45 query I rowsort label-6025 SELECT - col1 / 80 * + col2 col0 FROM tab0 @@ -37249,8 +37718,11 @@ SELECT + 49 + - MAX ( col1 ) col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ Int64\(65\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 8 + 65 AS col2, COUNT ( * ) col2 FROM tab1 +---- +3 +73 query I rowsort label-6118 SELECT COUNT ( ALL + - 38 ) - + 83 FROM tab0 cor0 @@ -40600,8 +41072,15 @@ SELECT DISTINCT ( MAX ( DISTINCT + - col2 ) ) FROM tab0 AS cor0 # Datafusion - Expected - 5 # Datafusion - Expected - -75 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, 5 AS col2 FROM tab2 +---- +-46 +-64 +-75 +5 +5 +5 query I rowsort label-6664 SELECT - COUNT ( DISTINCT + + col1 ) FROM tab0 @@ -41127,8 +41606,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL <= - + ( - col2 ) ) # Datafusion - Expected - 68 # Datafusion - Expected - 20 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 20 AS col0, + col2 AS col0 FROM tab1 +---- +20 +20 +20 +59 +68 +96 query I rowsort label-6758 SELECT ALL SUM ( ALL - - col1 ) + - COUNT ( * ) / - + 19 FROM tab2 @@ -41724,8 +42210,11 @@ SELECT ALL + MAX ( ALL + 55 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Float64\)\)\) 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 RI valuesort SELECT - - CAST ( NULL AS FLOAT8 ) AS col1, MAX ( ALL col2 ) AS col1 FROM tab0 AS cor0 +---- +99 +NULL query II rowsort label-6855 SELECT + - CAST ( NULL AS INTEGER ), COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 AS cor0 @@ -42426,8 +42915,15 @@ SELECT + col2 FROM tab0 AS cor0 WHERE NOT col0 = NULL # Datafusion - Expected - 2 # Datafusion - Expected - -96 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- cor0\.col2\)\)\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - - col2 ) col2, 2 AS col2 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +2 +2 +2 query I rowsort SELECT DISTINCT + + ( 63 ) * - 38 AS col1 FROM tab1 AS cor0 @@ -42828,8 +43324,15 @@ SELECT ALL * FROM tab1 WHERE NOT + col2 * - col1 * col1 + + + col2 + col2 * - co # Datafusion - Expected - 4368 # Datafusion - Expected - -5 # Datafusion - Expected - 510 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col0" at position 0 and "tab1\.col0 \* tab1\.col1 \- \(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, + col0 * + col1 - - col0 AS col0 FROM tab1 +---- +-14 +-47 +-5 +4368 +510 +765 query I rowsort SELECT DISTINCT - + ( - col0 ) + - 50 - - 8 + - + col0 FROM tab0 AS cor0 @@ -43051,8 +43554,15 @@ SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - + 66 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL +---- +46 +46 +64 +64 +75 +75 query II rowsort SELECT ALL col2 * - col1, col1 * + + 82 AS col0 FROM tab2 WHERE NOT ( ( + col1 ) + col0 ) <= + col0 @@ -44267,8 +44777,15 @@ SELECT - + 71 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 75 # Datafusion - Expected - 77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, col0 col2 FROM tab2 +---- +46 +51 +64 +67 +75 +77 query III rowsort SELECT ALL * FROM tab1 WHERE NOT + col2 * col0 IS NULL @@ -44350,8 +44867,9 @@ SELECT ALL + - 57 AS col0 FROM tab2 AS cor0 -57 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90 AS col1, col2 AS col1 FROM tab0 WHERE ( ( NULL ) IS NOT NULL ) +---- query I rowsort SELECT - col1 * + col2 * - col2 * + col2 AS col0 FROM tab2 @@ -46687,8 +47205,15 @@ SELECT DISTINCT - ( + + col0 ) AS col1 FROM tab0 # Datafusion - Expected - -47 # Datafusion - Expected - 34 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(34\) AS Int32\) AS col1" at position 0 and "Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( + + 34 AS INTEGER ) AS col1, - 47 AS col1 FROM tab2 +---- +-47 +-47 +-47 +34 +34 +34 query III rowsort SELECT ALL * FROM tab0 WHERE NOT - col1 < + + 86 @@ -47005,8 +47530,15 @@ SELECT - + COUNT ( * ), + 62 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 23 # Datafusion - Expected - -35 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 35 AS col1, 23 col1 FROM tab2 AS cor0 +---- +-35 +-35 +-35 +23 +23 +23 query II rowsort SELECT ALL - - 16 AS col1, - ( + + col1 ) FROM tab2 cor0 @@ -47814,8 +48346,15 @@ SELECT ALL COUNT ( * ) * + ( - COUNT ( * ) ) * - + MIN ( DISTINCT - col1 ) AS co # Datafusion - Expected - -162 # Datafusion - Expected - 77 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* Int64\(77\) AS col0" at position 0 and "\(\- tab0\.col1\) \* Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * + 77 AS col0, - col1 * + + 2 AS col0 FROM tab0 +---- +-162 +-2 +-42 +1617 +6237 +77 query I rowsort label-7871 SELECT ALL - COUNT ( * ) * + COUNT ( * ) FROM tab1 WHERE NULL IS NULL @@ -47891,8 +48430,15 @@ SELECT + SUM ( + - 92 ) FROM tab0 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col0, + col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL +---- +51 +51 +85 +85 +91 +91 query III rowsort SELECT DISTINCT * FROM tab1 WHERE - 99 IS NOT NULL @@ -48002,8 +48548,11 @@ SELECT ALL col1 * - + 44 AS col1 FROM tab0 AS cor0 # 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\(tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 AS col2, + COUNT ( + col1 ) AS col2 FROM tab1 +---- +25 +3 query III rowsort SELECT * FROM tab0 WHERE - 98 IS NOT NULL @@ -48416,8 +48965,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 57 AS col2, + COUNT ( * ) + + 48 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 +---- +-57 +57 query I rowsort SELECT ALL + + col2 * col1 + + - col2 * - col2 FROM tab2 AS cor0 @@ -48483,8 +49035,11 @@ SELECT - col2 + - - col2 * - - 43 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \+ \(\- count\(DISTINCT Int64\(94\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 83 ) + - + COUNT ( DISTINCT + + 94 ) AS col1, COUNT ( * ) col1 FROM tab1 +---- +3 +82 query I rowsort SELECT + col0 + + col1 - - col0 FROM tab0 @@ -48831,8 +49386,15 @@ SELECT - col0 / + - col1 FROM tab1 WHERE ( col1 ) <> - 10 + + + col2 # Datafusion - Expected - 77 # Datafusion - Expected - -75 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + - col0 ) AS col2, + col1 AS col2 FROM tab2 +---- +-46 +-64 +-75 +51 +67 +77 query II rowsort SELECT ALL - col1 + + col2 AS col0, - 21 FROM tab2 @@ -48851,8 +49413,15 @@ SELECT ALL - col1 + + col2 AS col0, - 21 FROM tab2 # Datafusion - Expected - -75 # Datafusion - Expected - 1789 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* Int64\(23\) \+ Int64\(18\) AS col2" at position 0 and "\(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * 23 + 18 AS col2, - col0 AS col2 FROM tab2 +---- +-46 +-64 +-75 +1191 +1559 +1789 query I rowsort label-8042 SELECT ALL + col1 / col1 + + col2 FROM tab2 @@ -49042,8 +49611,15 @@ SELECT DISTINCT + col0 * - col1 + - 25 col1 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 +---- +23 +40 +58 +NULL +NULL +NULL query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 IS NULL ) @@ -49182,8 +49758,15 @@ SELECT DISTINCT - 49 AS col1, col2 / - + 85 FROM tab0 # Datafusion - Expected - 861 # Datafusion - Expected - NULL # Datafusion - Expected - 861 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(41\) \* Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col2, 41 * + 21 col2 FROM tab2 +---- +861 +861 +861 +NULL +NULL +NULL query I rowsort label-8093 SELECT - 45 * - col1 - 31 + - 94 + + CAST ( NULL AS INTEGER ) + 14 + 27 * + col1 col1 FROM tab0 AS cor0 @@ -49658,8 +50241,15 @@ SELECT * FROM tab1 WHERE - col2 * + + col2 * + col0 + - + col0 IN ( - col1 ) # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, col0 AS col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-8169 SELECT + COUNT ( * ) + 37 col2 FROM tab2 @@ -50226,8 +50816,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) col0, - COUNT ( * ) AS col0 FROM tab1, tab1 AS cor0 +---- +-9 +NULL query I rowsort SELECT ALL + col2 * - - col0 * + + ( - - col1 ) + col0 + + + col1 col2 FROM tab0 @@ -50840,8 +51433,11 @@ SELECT ALL - + MIN ( DISTINCT col1 ) FROM tab1 AS cor0 # 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 "\(\- \(\- \(\- max\(\(\- \(\- cor0\.col1\)\)\)\)\)\) AS col0" at position 0 and "\(\- Int64\(68\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - ( - MAX ( - - col1 ) ) AS col0, - ( 68 ) col0 FROM tab0 AS cor0 +---- +-68 +-81 query II rowsort SELECT ALL - col1, + col2 FROM tab0 AS cor0 @@ -51134,8 +51730,15 @@ SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * + col1 IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - -80 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(80\)\) AS col1" at position 0 and "tab1\.col0 \* \(\- CAST\(NULL AS Int32\)\) \+ \(\- Int64\(\-67\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 80 ) AS col1, + col0 * + - CAST ( NULL AS INTEGER ) + - - 67 AS col1 FROM tab1 +---- +-80 +-80 +-80 +NULL +NULL +NULL query III rowsort label-8416 SELECT ALL * FROM tab2 WHERE NULL IS NOT NULL OR NOT CAST ( NULL AS INTEGER ) IS NOT NULL @@ -51631,8 +52234,15 @@ SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - ( 74 ) IS NOT NULL # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1, + col1 AS col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT DISTINCT - col0 / + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL @@ -51815,8 +52425,11 @@ SELECT + 27 * COUNT ( * ) + COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab0 AS cor # 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 "cor0\.col0 \+ \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 + - + col0 AS col1, + 39 AS col1 FROM tab0 cor0 +---- +0 +39 query II rowsort SELECT + col2 + - col1 AS col1, - col2 AS col2 FROM tab1 cor0 @@ -52048,8 +52661,15 @@ SELECT ALL - COUNT ( DISTINCT - 73 ) FROM tab0 AS cor0 WHERE NOT + col1 IN ( + c # Datafusion - Expected - -93 # Datafusion - Expected - -81 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(\-93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, - 93 AS col1 FROM tab0 cor0 +---- +-1 +-21 +-81 +-93 +-93 +-93 query I rowsort label-8563 SELECT DISTINCT - + COUNT ( ALL col2 ) FROM tab0 AS cor0 @@ -53337,8 +53957,15 @@ SELECT DISTINCT + - col2 + 49 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 1 # Datafusion - Expected - 5 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col2 / cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, col2 / + + col1 AS col2 FROM tab1 AS cor0 +---- +1 +11 +14 +47 +5 +6 query III rowsort SELECT * FROM tab0 cor0 WHERE NOT ( col1 * 61 * 86 ) IS NOT NULL @@ -53406,8 +54033,15 @@ SELECT - 38 + + - COUNT ( * ) * + 95 AS col2 FROM tab2 # Datafusion - Expected - -60 # Datafusion - Expected - -59 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ Int64\(\-12\) AS col0" at position 0 and "Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 + + - 12 AS col0, - 60 col0 FROM tab1 AS cor0 +---- +-17 +-26 +-59 +-60 +-60 +-60 query I rowsort SELECT ALL - col1 * + col0 + - col1 + - + 57 + + col0 * col0 AS col2 FROM tab2 AS cor0 @@ -53515,8 +54149,15 @@ SELECT ALL col1 FROM tab1 WHERE ( col0 ) IS NULL # Datafusion - Expected - 10700 # Datafusion - Expected - -91 # Datafusion - Expected - 115145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col0" at position 0 and "tab1\.col1 \* Int64\(36\) \* tab1\.col2 \- Int64\(\-21\) \+ tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col0, + col1 * + 36 * col2 - - 21 + + ( col2 ) col0 FROM tab1 +---- +-51 +-85 +-91 +10700 +115145 +48501 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 @@ -54129,8 +54770,15 @@ SELECT + COUNT ( DISTINCT col1 ) - + 1 + + - 18 FROM tab0 AS cor0 # Datafusion - Expected - 96 # Datafusion - Expected - -159 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ \(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col0 + + - col2 AS col1, col2 AS col1 FROM tab1 AS cor0 +---- +-144 +-147 +-159 +59 +68 +96 query I rowsort label-8910 SELECT DISTINCT + COUNT ( * ) * - 55 FROM tab1 AS cor0 @@ -55297,8 +55945,15 @@ SELECT + + COUNT ( ALL + col0 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 2618 # Datafusion - Expected - -58 # Datafusion - Expected - 2278 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col1" at position 0 and "tab2\.col1 \* Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, + col1 * + + 34 col1 FROM tab2 +---- +-23 +-40 +-58 +1734 +2278 +2618 query I rowsort label-9106 SELECT DISTINCT - COUNT ( * ) * 30 AS col2 FROM tab2 @@ -56519,8 +57174,15 @@ SELECT ALL - col2 AS col1, 3 * - - col1 FROM tab0 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 77 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, + ( - 0 ) AS col0 FROM tab2 AS cor0 +---- +0 +0 +0 +51 +67 +77 query I rowsort SELECT DISTINCT + col2 AS col1 FROM tab0 cor0 WHERE NULL IS NULL @@ -56831,8 +57493,11 @@ 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\(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\. +query II valuesort SELECT ( COUNT ( * ) ), COUNT ( * ) FROM tab0 +---- +3 +3 query III rowsort SELECT ALL * FROM tab1 WHERE NOT + 20 <> + col0 @@ -56930,8 +57595,15 @@ SELECT + col0 FROM tab1 AS cor0 WHERE NOT - col2 * - 99 < + - 35 # Datafusion - Expected - -87 # Datafusion - Expected - 62 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 62 AS col2, - col0 AS col2 FROM tab0 cor0 +---- +-15 +-87 +-97 +62 +62 +62 query I rowsort label-9379 SELECT ALL + SUM ( col1 ) col1 FROM tab0 AS cor0 @@ -56957,8 +57629,15 @@ SELECT col1 * + 43 FROM tab2 # Datafusion - Expected - 96 # Datafusion - Expected - 1 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) / \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 / - col2 AS col1, 96 AS col1 FROM tab0 AS cor0 +---- +1 +1 +1 +96 +96 +96 query I rowsort SELECT 24 FROM tab1 AS cor0 WHERE NOT 99 >= NULL @@ -57853,8 +58532,15 @@ SELECT + + col0 AS col0 FROM tab2 cor0 WHERE NOT ( - - col1 + col0 IS NULL ) # Datafusion - Expected - -87 # Datafusion - Expected - 75 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \+ \(\- Int64\(8\)\) AS col1" at position 0 and "CAST\(\(\- cor0\.col0\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 83 + - + 8 AS col1, CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +75 +75 +75 query IIIIII rowsort SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 58 < NULL @@ -58408,8 +59094,15 @@ SELECT DISTINCT MIN ( - + 35 ) FROM tab0 cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col0, + col0 AS col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT ALL ( + 65 ) FROM tab1 AS cor0 @@ -59139,8 +59832,15 @@ SELECT DISTINCT - 37 + - MAX ( + col0 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - 135 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ Int64\(60\) AS col2" at position 0 and "Int64\(27\) / cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 + + 60 AS col2, 27 / col0 AS col2 FROM tab2 AS cor0 +---- +0 +0 +0 +106 +124 +135 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN - + 59 AND NULL ) @@ -59325,8 +60025,10 @@ SELECT DISTINCT col0 AS col1, col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 6f34e1d0ad332d9fcc9e00bb1eefa584 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col1, - col2 - 54 * + 10 * 42 + - - 49, + col1 FROM tab2 +---- +9 values hashing to 73b11ab917d9dddba5771ed92ce09881 query I rowsort label-9768 SELECT COUNT ( * ) * 73 FROM tab1 @@ -59377,8 +60079,15 @@ SELECT - 52 col1 FROM tab0 # Datafusion - Expected - 19 # Datafusion - Expected - 96 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col1, 19 AS col1 FROM tab1 +---- +19 +19 +19 +59 +68 +96 query I rowsort label-9777 SELECT + CAST ( - + 36 AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 @@ -59744,8 +60453,15 @@ SELECT ALL * FROM tab1 WHERE NOT + + 42 NOT BETWEEN - - col2 AND col1 # Datafusion - Expected - NULL # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col2 \+ tab1\.col1 \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + col0 ) AS col2, + col2 + col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 +---- +51 +85 +91 +NULL +NULL +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 @@ -59754,8 +60470,15 @@ SELECT DISTINCT ( + col0 ) AS col2, + col2 + col1 + - CAST ( NULL AS INTEGER ) A # Datafusion - Expected - -87 # Datafusion - Expected - -81 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( col1 ) col1, - col0 AS col1 FROM tab0 AS cor0 +---- +-1 +-15 +-21 +-81 +-87 +-97 query I rowsort label-9836 SELECT ALL - MAX ( DISTINCT + + 14 ) FROM tab1 cor0 @@ -60381,8 +61104,15 @@ SELECT ( + MIN ( DISTINCT - + 69 ) ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -78 # Datafusion - Expected - 91 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(\-78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, - 78 AS col2 FROM tab1 AS cor0 +---- +-78 +-78 +-78 +51 +85 +91 query I rowsort SELECT ALL col1 * - - 45 AS col0 FROM tab0 diff --git a/data/sqlite/random/aggregates/slt_good_89.slt b/data/sqlite/random/aggregates/slt_good_89.slt index 09b987d..1ae9c5f 100644 --- a/data/sqlite/random/aggregates/slt_good_89.slt +++ b/data/sqlite/random/aggregates/slt_good_89.slt @@ -141,8 +141,15 @@ SELECT ALL - col2 * - - 33 + + col1 FROM tab1 AS cor0 # Datafusion - Expected - -84 # Datafusion - Expected - -9603 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col0 AS col2" at position 0 and "CAST\(\(\- Int64\(84\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col2 * + col0 AS col2, CAST ( - + 84 AS INTEGER ) col2 FROM tab0 AS cor0 +---- +-705 +-84 +-84 +-84 +-870 +-9603 query I rowsort label-17 SELECT + COUNT ( - - col1 ) FROM tab2 AS cor0 WHERE NOT col1 = NULL @@ -1307,8 +1314,15 @@ SELECT col0 FROM tab1 WHERE - col1 NOT IN ( + col1 ) # Datafusion - Expected - -40 # Datafusion - Expected - 40 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 AS col0, - col2 AS col0 FROM tab2 +---- +-23 +-40 +-58 +40 +40 +40 query I rowsort label-212 SELECT DISTINCT 12 FROM tab0 WHERE ( - + CAST ( NULL AS INTEGER ) / + col0 + - col0 ) IS NULL @@ -3557,8 +3571,15 @@ SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col2 * col1 * 18 * - 74 AND - 41 # Datafusion - Expected - 5015 # Datafusion - Expected - 91 # Datafusion - Expected - 6188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col0 \* tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, + col0 * + col2 AS col1 FROM tab1 +---- +4896 +5015 +51 +6188 +85 +91 query I rowsort label-571 SELECT ALL + + SUM ( - + col2 ) FROM tab1 AS cor0 @@ -4202,8 +4223,15 @@ SELECT DISTINCT - 55 AS col1 FROM tab1 cor0 # Datafusion - Expected - -2209 # Datafusion - Expected - 96 # Datafusion - Expected - -196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "\(\- tab1\.col1\) \* tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, - col1 * + col1 col0 FROM tab1 +---- +-196 +-2209 +-25 +59 +68 +96 query I rowsort label-679 SELECT - COUNT ( DISTINCT - + col0 ) AS col2 FROM tab2 @@ -4248,8 +4276,15 @@ NULL # Datafusion - Expected - 213536 # Datafusion - Expected - -99 # Datafusion - Expected - 449854 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col2" at position 0 and "tab0\.col0 \- Int64\(77\) \* Int64\(59\) \* \(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, + col0 - + 77 * 59 * + - col2 col2 FROM tab0 +---- +-10 +-47 +-99 +213536 +449854 +45517 query I rowsort label-685 SELECT DISTINCT - COUNT ( * ) - + 6 AS col0 FROM tab1 AS cor0 @@ -4503,8 +4538,15 @@ SELECT DISTINCT - 15 FROM tab0 AS cor0 WHERE NOT + 63 IS NOT NULL # Datafusion - Expected - 60 # Datafusion - Expected - 91 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, 60 AS col1 FROM tab1 AS cor0 +---- +51 +60 +60 +60 +85 +91 query I rowsort label-726 SELECT + COUNT ( * ) / + MAX ( + col1 ) FROM tab2 cor0 @@ -4616,8 +4658,11 @@ SELECT DISTINCT - MIN ( DISTINCT + col0 ) col1, - 30 + - - 42 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 92 AS col1, CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 +---- +-92 +NULL query I rowsort label-744 SELECT ( COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 @@ -5257,8 +5302,15 @@ SELECT DISTINCT + 66 col2 FROM tab2 cor0 WHERE NOT + ( col0 ) NOT BETWEEN - + co # Datafusion - Expected - 40 # Datafusion - Expected - 3525 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* tab2\.col0 AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + 47 ) * col0 AS col1, + col2 AS col1 FROM tab2 +---- +2162 +23 +3008 +3525 +40 +58 query II rowsort SELECT DISTINCT col1 AS col1, + col2 FROM tab0 @@ -5816,8 +5868,13 @@ SELECT ALL - + 75 - + col0 FROM tab0 AS cor0 # Datafusion - Expected - -84 # Datafusion - Expected - 1 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) / cor0\.col2 AS col1" at position 0 and "Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 79 / + col2 AS col1, - 84 AS col1 FROM tab1 AS cor0 +---- +-84 +-84 +0 +1 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT + + 5 IS NULL @@ -5895,8 +5952,11 @@ SELECT ALL - col0 * - - col0 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col1" at position 0 and "Int64\(\-59\) \* CAST\(NULL AS Int32\) \* cor0\.col1 \+ Int64\(19\) \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 82 AS col1, - 59 * + CAST ( NULL AS INTEGER ) * + col1 + + 19 + + col2 AS col1 FROM tab1 AS cor0 +---- +-82 +NULL query I rowsort label-962 SELECT - col1 * - col1 + col0 / + col2 AS col0 FROM tab1 cor0 @@ -6223,8 +6283,15 @@ SELECT ALL - SUM ( - - col2 ) FROM tab2 AS cor0 # Datafusion - Expected - 99 # Datafusion - Expected - -48580119 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col1 \+ Int64\(79\) \- Int64\(79\) \+ cor0\.col1 \* Int64\(\-27\) \* \(\- Int64\(84\)\) \* Int64\(\-68\) \* Int64\(15\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + col1 + + 79 - 79 + col1 * + - 27 * - + 84 * + - 68 * 15 AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +-187375599 +-2313359 +-48580119 +10 +47 +99 query I rowsort SELECT ALL - 89 FROM tab1 WHERE NOT NULL IS NULL @@ -7321,8 +7388,15 @@ SELECT ALL 34 AS col2, - MIN ( ALL + 99 ) FROM tab1 # Datafusion - Expected - 90 # Datafusion - Expected - 81 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, + 90 AS col2 FROM tab0 +---- +1 +21 +81 +90 +90 +90 query I rowsort label-1197 SELECT + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 @@ -8012,8 +8086,15 @@ SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN - + col0 - + col1 AND NULL # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(cor0\.col2 AS Int32\)" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + CAST ( + col2 AS INTEGER ), col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-1312 SELECT DISTINCT + COUNT ( * ) / + + SUM ( DISTINCT - + 1 ) FROM tab1 @@ -8704,8 +8785,11 @@ SELECT ALL - 74 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +3 +3 query II rowsort label-1423 SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) * CAST ( NULL AS INTEGER ) * - - MIN ( ALL + col0 ) FROM tab1 AS cor0 @@ -8720,8 +8804,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col0, + SUM ( - 6 ) + + 91 AS col0 FROM tab2 cor0 +---- +-3 +73 query I rowsort SELECT DISTINCT col0 - + col0 + - col0 + - col2 AS col1 FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND NULL @@ -8739,8 +8826,15 @@ SELECT - - COUNT ( + - col1 ) FROM tab1 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 81 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, + col0 AS col2 FROM tab0 AS cor0 +---- +1 +15 +21 +81 +87 +97 query I rowsort SELECT DISTINCT ( - 72 ) * - - col1 col2 FROM tab2 @@ -8779,8 +8873,15 @@ SELECT ALL 79 + + col2 AS col1 FROM tab2 cor0 WHERE NOT NULL < NULL # Datafusion - Expected - 87 # Datafusion - Expected - 54 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 54 AS col1, col0 AS col1 FROM tab0 WHERE col2 IS NOT NULL +---- +15 +54 +54 +54 +87 +97 query I rowsort SELECT col1 + col0 AS col2 FROM tab0 WHERE NULL IS NULL @@ -8912,8 +9013,15 @@ SELECT ALL + + 66 col1 FROM tab1 AS cor0 # Datafusion - Expected - 74 # Datafusion - Expected - 32 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 32 AS col1, 74 AS col1 FROM tab0 AS cor0 +---- +32 +32 +32 +74 +74 +74 query II rowsort SELECT 78, col2 AS col1 FROM tab2 @@ -9610,8 +9718,15 @@ SELECT * FROM tab1 WHERE NOT ( NOT - col1 <= NULL ) # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, col0 AS col1 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT ( - 18 ) NOT IN ( col2 ) @@ -10140,8 +10255,11 @@ SELECT 91 / + + col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- Int64\(\-76\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, - ( - 76 ) col0 FROM tab1 AS cor0 +---- +3 +76 query I rowsort SELECT ALL - + col0 + - - col1 FROM tab1 AS cor0 @@ -10290,8 +10408,15 @@ SELECT - col1 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) = + 33 - + col0 * - col2 # Datafusion - Expected - -277530 # Datafusion - Expected - 91 # Datafusion - Expected - -186006 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(\-59\) \* Int64\(58\) \* cor0\.col0 \+ cor0\.col1 \* Int64\(58\) \* Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col1, - 59 * + 58 * + col0 + col1 * + 58 * + 46 AS col1 FROM tab1 AS cor0 +---- +-137170 +-186006 +-277530 +51 +85 +91 query I rowsort label-1689 SELECT DISTINCT - col0 / col2 + + 42 + + col1 col1 FROM tab2 AS cor0 @@ -11040,8 +11165,15 @@ SELECT - col2 / col1 AS col0 FROM tab0 cor0 # Datafusion - Expected - 87 # Datafusion - Expected - -81 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col1, col0 AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +15 +87 +97 query I rowsort SELECT ALL + 18 * 7 + + col2 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN ( - col1 ) AND NULL @@ -11059,8 +11191,15 @@ SELECT DISTINCT - + COUNT ( - col1 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - 1 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 1 AS col1, - col2 AS col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +1 +1 +1 query I rowsort label-1809 SELECT COUNT ( * ) * - - 86 AS col0 FROM tab2 @@ -12135,8 +12274,11 @@ SELECT ALL * FROM tab1 AS cor0 WHERE ( ( 73 ) ) NOT BETWEEN - col2 * 60 AND + 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(cor0\.col2\) \+ Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, + COUNT ( + + col2 ) + + 26 AS col1 FROM tab2 AS cor0 +---- +29 +3 query I rowsort label-1988 SELECT DISTINCT SUM ( - - col1 ) FROM tab0 AS cor0 @@ -12229,8 +12371,11 @@ SELECT * FROM tab2 cor0 WHERE NOT + col0 = ( - 71 * + col0 + - + col1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) / \(\- min\(DISTINCT Int64\(35\)\)\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 77 / - MIN ( DISTINCT 35 ) col0, 50 AS col0 FROM tab2 AS cor0 +---- +-2 +50 query I rowsort label-2004 SELECT - - COUNT ( * ) * + - 9 + - + 42 * + 51 FROM tab0 AS cor0 @@ -12322,8 +12467,15 @@ SELECT ALL 67 * + col1 + 40 AS col0 FROM tab1 # Datafusion - Expected - 87 # Datafusion - Expected - 5 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 5 AS col1, 87 AS col1 FROM tab0 +---- +5 +5 +5 +87 +87 +87 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -12493,8 +12645,15 @@ SELECT ALL col1 AS col0, ( + col2 ) * - 83 + + col1 FROM tab2 # Datafusion - Expected - 210 # Datafusion - Expected - -97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col0" at position 0 and "tab0\.col2 \* tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col0, col2 * col1 AS col0 FROM tab0 +---- +-15 +-87 +-97 +210 +3807 +99 query III rowsort label-2044 SELECT * FROM tab1 WHERE NOT - + col0 * + - CAST ( - col2 AS INTEGER ) > - col2 @@ -12712,8 +12871,15 @@ SELECT + + col0, + col2 FROM tab0 AS cor0 # Datafusion - Expected - -43 # Datafusion - Expected - 15 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col1" at position 0 and "Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 15 AS col1, - 43 AS col1 FROM tab1 AS cor0 +---- +-43 +-43 +-43 +15 +15 +15 query I rowsort label-2080 SELECT MAX ( 83 ) FROM tab2 AS cor0 @@ -12792,8 +12958,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 AS col2, COUNT ( * ) AS col2 FROM tab0 +---- +3 +54 query I rowsort SELECT + col1 * + col1 * + - 30 FROM tab1 AS cor0 @@ -12913,8 +13082,15 @@ SELECT + col2 * - 51, col0 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 500864 # Datafusion - Expected - -11 # Datafusion - Expected - 586950 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col1" at position 0 and "Int64\(14\) \* tab2\.col0 \* Int64\(\-13\) \* Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 11 AS col1, + 14 * + col0 * + ( + - 13 ) * - 43 col1 FROM tab2 WHERE NOT NULL IS NOT NULL +---- +-11 +-11 +-11 +359996 +500864 +586950 query I rowsort label-2112 SELECT + - CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 @@ -12977,8 +13153,10 @@ SELECT DISTINCT * FROM tab0 WHERE NOT - col1 > + - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 566949e9266f7ac727c99ab7d4b96a6f -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL col2, col2, - col1 FROM tab0 +---- +9 values hashing to 76f25ea5b6d750d3290fed9acaea0824 query II rowsort SELECT + + col0 AS col2, - col2 AS col0 FROM tab2 AS cor0 @@ -13004,8 +13182,15 @@ SELECT + 91 / + + col2 AS col1 FROM tab0 cor0 # Datafusion - Expected - 15 # Datafusion - Expected - -97 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col2, + 15 AS col2 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +15 +15 +15 query I rowsort SELECT ALL - 89 * col0 + - - col2 FROM tab0 AS cor0 @@ -13648,8 +13833,10 @@ SELECT 13 col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 7cc9c0585e427277873bf963a4d353a9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col1 \+ \(\- Int64\(\-62\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ( - col2 ) AS col0, col1 + + ( - - 62 ) AS col0, + + col1 * col1 - + col2 col2 FROM tab0 AS cor0 +---- +9 values hashing to 0b91c92a35ae1d072188238e3420d0d3 query I rowsort label-2226 SELECT ALL + col0 / col1 + + 92 AS col1 FROM tab0 cor0 @@ -14126,8 +14313,9 @@ SELECT ALL + - 12 * + + ( 77 ) FROM tab0 cor0 -924 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* Int64\(35\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 59 * + 35 AS col2, 47 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL +---- query I rowsort SELECT ALL col0 + + 61 - - - col0 col1 FROM tab2 AS cor0 @@ -14564,8 +14752,15 @@ SELECT + ( - COUNT ( DISTINCT - ( col0 ) ) ) col0 FROM tab0 AS cor0 # Datafusion - Expected - 3080 # Datafusion - Expected - -58 # Datafusion - Expected - 3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 AS col2, col1 * + col2 AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +1173 +3080 +3886 query I rowsort label-2376 SELECT - MIN ( + - col2 ) AS col0 FROM tab2 @@ -16015,8 +16210,15 @@ SELECT DISTINCT - col0 * + - col0 + - col0 + - + col2 * - + col1 + + col0 FROM t # Datafusion - Expected - 1829 # Datafusion - Expected - 91 # Datafusion - Expected - 2108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \- cor0\.col1 \+ cor0\.col0 AS col1" at position 0 and "Int64\(31\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 - col1 + col0 AS col1, + 31 * col2 AS col1 FROM tab1 AS cor0 +---- +1829 +2108 +2976 +51 +85 +91 query I rowsort label-2622 SELECT ALL - 91 / CAST ( - col1 AS INTEGER ) + - 14 - + 74 * 60 FROM tab2 AS cor0 @@ -16074,8 +16276,11 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= - col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 68 AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +-68 +3 query I rowsort SELECT DISTINCT + col1 * 98 * - 52 FROM tab0 cor0 WHERE 68 - - col2 < NULL @@ -16084,8 +16289,11 @@ SELECT DISTINCT + col1 * 98 * - 52 FROM tab0 cor0 WHERE 68 - - col2 < NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(cor0\.col1\) \+ CAST\(NULL AS Int32\) \+ Int64\(54\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MAX ( + col1 ) + CAST ( NULL AS INTEGER ) + 54 col2, COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col0 NOT IN ( + ( - col2 ) * 4 ) +---- +9 +NULL query II rowsort label-2634 SELECT - ( - + 40 ), COUNT ( * ) AS col1 FROM tab2 AS cor0 @@ -16169,8 +16377,15 @@ SELECT - ( col0 ) + + col1 + + col0 * + col0 * + - col2 FROM tab1 # Datafusion - Expected - 88 # Datafusion - Expected - -20 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \+ Int64\(8\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 28 + 8 col1, 88 col1 FROM tab1 +---- +-20 +-20 +-20 +88 +88 +88 query II rowsort SELECT DISTINCT col2 + col1 AS col2, 86 + - 33 FROM tab0 @@ -16332,8 +16547,15 @@ SELECT ALL MIN ( ALL + col1 ) AS col2 FROM tab2 # Datafusion - Expected - -94 # Datafusion - Expected - -72003 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \+ Int64\(89\) \* Int64\(81\) \* \(\- tab0\.col2\) AS col2" at position 0 and "Int64\(\-94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 + + 89 * + + 81 * - col2 AS col2, - 94 AS col2 FROM tab0 +---- +-338808 +-713594 +-72003 +-94 +-94 +-94 query I rowsort SELECT DISTINCT col1 * - - col2 AS col2 FROM tab1 @@ -16486,8 +16708,15 @@ SELECT 9 AS col2, - CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -117 # Datafusion - Expected - -434 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) \* \(\- Int64\(\-32\)\) \+ cor0\.col0 AS col0" at position 0 and "\(\- cor0\.col2\) \+ \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 15 * - - 32 + col0 AS col0, - col2 + - + col1 AS col0 FROM tab2 AS cor0 +---- +-117 +-125 +-405 +-416 +-434 +-74 query II rowsort SELECT + col1 col0, col1 * + col1 AS col2 FROM tab1 AS cor0 @@ -16657,8 +16886,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * - col2 + - col2 / - - col2 * col1 # Datafusion - Expected - 4575 # Datafusion - Expected - -529 # Datafusion - Expected - 2806 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* \(\- tab2\.col2\) AS col2" at position 0 and "Int64\(\-61\) \* \(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 * - col2 AS col2, - 61 * + - col0 AS col2 FROM tab2 +---- +-1600 +-3364 +-529 +2806 +3904 +4575 query I rowsort label-2722 SELECT col1 * - - CAST ( + 87 AS INTEGER ) * - col1 AS col2 FROM tab0 @@ -17968,8 +18204,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* \(\- sum\(tab1\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 79 AS col1, + COUNT ( * ) * - SUM ( ALL + col2 ) AS col1 FROM tab1 +---- +-669 +79 query III rowsort SELECT ALL * FROM tab1 WHERE ( col2 / ( + col2 ) + - col0 ) < - col0 @@ -19259,8 +19498,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-84\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 84 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +3 +84 query II rowsort SELECT col2, 72 FROM tab2 cor0 WHERE NOT col2 IS NULL @@ -19504,8 +19746,15 @@ SELECT ( - ( col0 ) ) * - col2 * + col2 * - col0 AS col0 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - NULL # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 24 * + CAST ( NULL AS INTEGER ) AS col0, col2 AS col0 FROM tab1 +---- +59 +68 +96 +NULL +NULL +NULL query III rowsort SELECT + col1 * col2, + col0 + + 22 * + + col0 col2, 31 AS col1 FROM tab0 WHERE NOT NULL IS NULL @@ -19620,8 +19869,15 @@ SELECT + 1 * - col2 AS col2 FROM tab0 cor0 # Datafusion - Expected - 21 # Datafusion - Expected - -81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col2, col1 AS col2 FROM tab0 cor0 WHERE NULL IS NULL +---- +-1 +-21 +-81 +1 +21 +81 query I rowsort SELECT ALL + - 84 col2 FROM tab2 AS cor0 @@ -19703,8 +19959,11 @@ SELECT + MIN ( DISTINCT + 17 ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 +---- +3 +NULL query I rowsort label-3229 SELECT + - 96 * + COUNT ( - 51 ) AS col2 FROM tab0 AS cor0 @@ -19719,8 +19978,9 @@ SELECT ALL - col0 * - 43 FROM tab2 AS cor0 3225 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col0, + col0 FROM tab1 AS cor0 WHERE NULL < NULL +---- query I rowsort SELECT ALL - 92 + - col2 AS col0 FROM tab1 @@ -20076,8 +20336,15 @@ SELECT DISTINCT - COUNT ( * ) * - - ( + - COUNT ( * ) ) AS col0 FROM tab2 AS cor # Datafusion - Expected - 40 # Datafusion - Expected - 75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, + col2 AS col1 FROM tab2 AS cor0 +---- +23 +40 +46 +58 +64 +75 query I rowsort SELECT col1 FROM tab1 cor0 WHERE NOT NULL IS NULL @@ -20097,8 +20364,15 @@ SELECT DISTINCT + - 82 * - + col1 + - 53 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col1, col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query II rowsort SELECT + col2 AS col2, - col2 * - col2 AS col0 FROM tab2 AS cor0 @@ -21121,8 +21395,15 @@ SELECT DISTINCT - - col2 FROM tab1 AS cor0 WHERE NOT - CAST ( - col2 AS INTEGER # Datafusion - Expected - -53 # Datafusion - Expected - -96 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col0" at position 0 and "Int64\(3\) \+ Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col0, 3 + + - 56 AS col0 FROM tab1 +---- +-53 +-53 +-53 +-59 +-68 +-96 query I rowsort SELECT ALL + 21 col1 FROM tab0 @@ -21290,8 +21571,11 @@ SELECT + - 89 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, + ( + ( - COUNT ( * ) ) ) col1 FROM tab2 AS cor0 +---- +-3 +3 query I rowsort label-3485 SELECT 14 / + col2 AS col0 FROM tab1 @@ -21594,8 +21878,11 @@ SELECT col0 / - + col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -4512 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(48\) \* Int64\(\-94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, + ( + 48 ) * - 94 AS col2 FROM tab1 AS cor0 +---- +-4512 +3 query II rowsort label-3536 SELECT COUNT ( * ) col0, + CAST ( + 50 AS INTEGER ) FROM tab1 AS cor0 @@ -21652,8 +21939,11 @@ SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + 12 AND + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 96 AS col2, 27 AS col2 FROM tab1 AS cor0 WHERE + col0 + + 75 + + col0 + + 78 * 27 IS NOT NULL +---- +27 +96 query I rowsort SELECT ALL ( - - col2 ) * - ( - col2 ) AS col2 FROM tab0 cor0 @@ -21816,8 +22106,15 @@ SELECT ALL - 9 * + - 21 FROM tab0 # Datafusion - Expected - 295 # Datafusion - Expected - 3 # Datafusion - Expected - 1344 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) / \(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col1 \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - + col0 ) / + - col1 AS col1, col1 * col2 col1 FROM tab1 cor0 +---- +1 +1344 +17 +295 +3 +3196 query I rowsort SELECT + + col2 * - + 74 FROM tab0 AS cor0 @@ -21848,8 +22145,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 98 AS col1, + AVG ( DISTINCT 53 ) + - - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL +---- +98 +NULL query II rowsort SELECT - 71 AS col1, col1 * - + 7 + - - col1 FROM tab2 @@ -22183,8 +22483,15 @@ SELECT DISTINCT + MAX ( DISTINCT - + col0 ) * - COUNT ( * ) + + - ( - MAX ( col2 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col0, + col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-3632 SELECT DISTINCT + COUNT ( * ) - - ( - + COUNT ( DISTINCT col2 ) ) FROM tab2 AS cor0 @@ -24318,8 +24625,15 @@ SELECT ALL 14 AS col0, col2 + col0 FROM tab1 AS cor0 # Datafusion - Expected - 62 # Datafusion - Expected - -3150 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* Int64\(10\) \* Int64\(\-15\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 * + 10 * - 15 AS col1, 62 AS col1 FROM tab0 +---- +-12150 +-150 +-3150 +62 +62 +62 query II rowsort SELECT col1 + + col1 + - col1, col1 FROM tab2 @@ -24351,8 +24665,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 75 * - COUNT ( * ) AS col0, 77 AS col0 FROM tab1 cor0 +---- +-225 +77 query II rowsort SELECT ALL - 72, col2 FROM tab1 @@ -24699,8 +25016,15 @@ SELECT ( - 37 ) * + col0 + + + col1 AS col0 FROM tab2 # Datafusion - Expected - -64 # Datafusion - Expected - 58 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab2\.col2\)\) AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - + col2 ) AS col1, - col0 AS col1 FROM tab2 WHERE ( NOT ( NULL IS NOT NULL ) ) +---- +-46 +-64 +-75 +23 +40 +58 query IIIIII rowsort SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE - 81 = - + 73 @@ -25424,8 +25748,11 @@ 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\(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\. +query II valuesort SELECT + + ( - - COUNT ( * ) ) * + COUNT ( * ) + + 97 * + 49 * - 68 + 83 AS col2, 44 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 +---- +-323040 +44 query I rowsort label-4151 SELECT + + CAST ( col2 AS INTEGER ) + + col1 - col2 col2 FROM tab1 AS cor0 @@ -25623,8 +25950,15 @@ SELECT - CAST ( + - 55 AS INTEGER ) FROM tab2 AS cor0 # Datafusion - Expected - 11 # Datafusion - Expected - -81 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col0 \+ \(\- cor0\.col0\) \+ \(\- cor0\.col2\) \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 AS col0, col0 + - col0 + - col2 + col1 AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +-98 +11 +34 query II rowsort SELECT DISTINCT + 44 col1, - col2 FROM tab1 AS cor0 @@ -26375,8 +26709,15 @@ SELECT DISTINCT + col1 * - 98 - - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL # Datafusion - Expected - -2693 # Datafusion - Expected - -81 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col0" at position 0 and "cor0\.col1 \* \(\- cor0\.col1\) \* cor0\.col1 \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 AS col0, + col1 * + - col1 * col1 + + col0 AS col0 FROM tab1 AS cor0 +---- +-103732 +-2693 +-40 +-81 +-81 +-81 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -27137,8 +27478,15 @@ SELECT ALL CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 26 # Datafusion - Expected - 91 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + col0 ) AS col2, + 26 AS col2 FROM tab1 AS cor0 +---- +26 +26 +26 +51 +85 +91 query I rowsort label-4425 SELECT ALL + MIN ( CAST ( + ( - + col0 ) AS INTEGER ) ) FROM tab0 AS cor0 @@ -27790,8 +28138,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE 34 IS NOT NULL # Datafusion - Expected - 59 # Datafusion - Expected - 91 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, col2 AS col1 FROM tab1 +---- +51 +59 +68 +85 +91 +96 query I rowsort label-4529 SELECT ALL ( + - COUNT ( ALL ( col2 ) ) ) AS col0 FROM tab0 @@ -29615,8 +29970,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT - 56 IN ( + - col2 - + col0 ) # Datafusion - Expected - 53 # Datafusion - Expected - -45 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \* tab2\.col1 / tab2\.col1 AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 45 * col1 / col1 AS col1, + 53 col1 FROM tab2 +---- +-45 +-45 +-45 +53 +53 +53 query I rowsort label-4831 SELECT DISTINCT 33 * + + col1 * + CAST ( + 68 AS INTEGER ) AS col0 FROM tab1 @@ -30530,8 +30892,15 @@ NULL # Datafusion - Expected - -23 # Datafusion - Expected - 96 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(\-23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( col2 ) AS col1, - 23 AS col1 FROM tab1 AS cor0 +---- +-23 +-23 +-23 +59 +68 +96 query I rowsort label-4980 SELECT DISTINCT COUNT ( * ) + - 37 AS col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( col0, + 36 ) @@ -31745,8 +32114,15 @@ SELECT DISTINCT + + CAST ( - col0 AS INTEGER ) FROM tab1 WHERE + - 99 > + - col0 # Datafusion - Expected - 64 # Datafusion - Expected - -75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, + col0 col2 FROM tab2 +---- +-46 +-64 +-75 +46 +64 +75 query I rowsort SELECT ALL 99 * - - col2 FROM tab2 @@ -32483,8 +32859,15 @@ SELECT + MAX ( + - CAST ( 62 AS INTEGER ) ), - COUNT ( - CAST ( NULL AS INTEGER # Datafusion - Expected - 80 # Datafusion - Expected - 58 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "Int64\(66\) \+ Int64\(72\) \+ \(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 58 AS col0, 66 + 72 + - col2 AS col0 FROM tab2 +---- +115 +58 +58 +58 +80 +98 query I rowsort SELECT - col0 FROM tab0 WHERE NOT - col1 - 93 IS NULL @@ -33541,8 +33924,15 @@ SELECT DISTINCT MIN ( ALL - col1 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 26 # Datafusion - Expected - -9996 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col1 \* cor0\.col1 AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 * + col1 * col1 AS col2, 26 AS col2 FROM tab1 AS cor0 +---- +-201019 +-2125 +-9996 +26 +26 +26 query I rowsort SELECT DISTINCT col2 + col1 FROM tab0 AS cor0 WHERE NOT ( - col0 / - + col1 ) IS NULL @@ -34150,8 +34540,11 @@ SELECT DISTINCT - MIN ( 5 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 AS col1, + ( COUNT ( * ) ) col1 FROM tab1 +---- +3 +39 query II rowsort SELECT DISTINCT + col0 AS col1, col0 AS col2 FROM tab2 @@ -34426,8 +34819,15 @@ SELECT + + col2, + 31 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -13 # Datafusion - Expected - 58 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "\(\- tab2\.col1\) \+ \(\- \(\- tab2\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col1, - col1 + - - col0 col1 FROM tab2 +---- +-13 +-5 +23 +40 +58 +8 query I rowsort label-5627 SELECT ALL 24 + - + SUM ( + col1 ) FROM tab0 @@ -35051,8 +35451,15 @@ SELECT ALL + 83 * - - col0 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 5 # Datafusion - Expected - -91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + col0 ) AS col0, col1 AS col0 FROM tab1 cor0 +---- +-51 +-85 +-91 +14 +47 +5 query I rowsort SELECT ( col1 ) * + + ( col1 ) col0 FROM tab0 AS cor0 @@ -35092,8 +35499,11 @@ SELECT - CAST ( MIN ( DISTINCT - 53 ) AS INTEGER ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 24 AS col2, COUNT ( * ) col2 FROM tab1 AS cor0 +---- +24 +3 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 67 ) >= + col2 @@ -35608,8 +36018,15 @@ SELECT COUNT ( ALL col0 ) AS col2 FROM tab0 # Datafusion - Expected - 40204 # Datafusion - Expected - 58 # Datafusion - Expected - 69920 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "Int64\(92\) \* Int64\(19\) \* tab2\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 58 AS col2, + 92 * 19 * col2 AS col2 FROM tab2 +---- +101384 +40204 +58 +58 +58 +69920 query II rowsort SELECT 1, col2 AS col2 FROM tab1 @@ -35728,8 +36145,9 @@ SELECT * FROM tab0 WHERE + 37 * - + 91 + col2 IS NOT NULL 9 values hashing to c4b42765dff94eaaa46040e537fb43b7 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col1 \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, col1 * + - col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL +---- query II rowsort SELECT DISTINCT - - col0, 59 + + col2 * + + col0 * 42 AS col2 FROM tab1 AS cor0 WHERE col2 >= NULL @@ -36340,8 +36758,15 @@ SELECT DISTINCT COUNT ( * ) + + - ( - COUNT ( * ) ) FROM tab1 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-5945 SELECT - COUNT ( * ) + + 96 AS col1 FROM tab0, tab1 AS cor0 @@ -36883,8 +37308,15 @@ SELECT DISTINCT - ( + col0 ) + - col2 FROM tab0 AS cor0 # Datafusion - Expected - 1 # Datafusion - Expected - -77 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "\(\- cor0\.col1\) / \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, - col1 / - col2 AS col2 FROM tab2 cor0 +---- +-51 +-67 +-77 +1 +1 +2 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + + ( - col1 ) <> col0 @@ -39010,8 +39442,15 @@ SELECT DISTINCT - 53 * + 70 + + + col1 AS col1 FROM tab0 WHERE col2 IS NULL # Datafusion - Expected - 0 # Datafusion - Expected - 792 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \- Int64\(9\) \* tab0\.col1 \* \(\- tab0\.col2\) AS col1" at position 0 and "Int64\(\-55\) / tab0\.col2 / Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 - 9 * col1 * - + col2 AS col1, - 55 / col2 / 9 AS col1 FROM tab0 +---- +0 +0 +0 +1880 +34216 +792 query I rowsort SELECT DISTINCT col1 + + + 62 * col2 + - col0 + + - 45 FROM tab1 cor0 @@ -39044,8 +39483,9 @@ SELECT + ( col2 ) AS col0 FROM tab2 WHERE NOT + col2 >= + col2 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, + col2 FROM tab2 AS cor0 WHERE NOT col2 >= + CAST ( NULL AS INTEGER ) +---- query I rowsort SELECT DISTINCT - - 83 AS col1 FROM tab1 AS cor0 @@ -39250,8 +39690,15 @@ SELECT 88 * - ( SUM ( DISTINCT + col1 ) ) AS col1 FROM tab1 # Datafusion - Expected - 11 # Datafusion - Expected - -2 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 / \(\- tab2\.col2\) AS col0" at position 0 and "Int64\(71\) \+ Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 / - col2 AS col0, 71 + + - 60 AS col0 FROM tab2 +---- +-1 +-1 +-2 +11 +11 +11 query I rowsort SELECT - ( + 24 ) FROM tab2 AS cor0 @@ -39334,8 +39781,15 @@ SELECT ALL + ( - 46 ) + + 41 FROM tab1 # Datafusion - Expected - -1190 # Datafusion - Expected - -9603 # Datafusion - Expected - -1190 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* \(\- tab0\.col2\) AS col1" at position 0 and "Int64\(\-34\) \* Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 * - + col2 AS col1, - 34 * 35 AS col1 FROM tab0 +---- +-1190 +-1190 +-1190 +-705 +-870 +-9603 query I rowsort label-6432 SELECT - SUM ( + 61 ) AS col2 FROM tab0 @@ -39450,8 +39904,15 @@ SELECT DISTINCT - + 85 * + + 88 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - 3 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col0" at position 0 and "\(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 3 AS col0, - col0 AS col0 FROM tab1 +---- +-51 +-85 +-91 +3 +3 +3 query I rowsort label-6449 SELECT CAST ( + - CAST ( + col0 AS INTEGER ) AS INTEGER ) FROM tab1 @@ -40759,8 +41220,15 @@ SELECT DISTINCT - 74 * - 56 + + col0 * - col0 + + col1 col1 FROM tab1 # Datafusion - Expected - -2912 # Datafusion - Expected - 5 # Datafusion - Expected - -2720 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "tab1\.col0 \* Int64\(\-32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, + col0 * - 32 AS col2 FROM tab1 +---- +-1632 +-2720 +-2912 +14 +47 +5 query I rowsort SELECT col0 * - col1 * - col1 AS col0 FROM tab0 @@ -42303,8 +42771,15 @@ SELECT ALL - COUNT ( * ) + - 92 AS col2 FROM tab1 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 AS col1, CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +NULL +NULL +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 @@ -42313,8 +42788,15 @@ SELECT DISTINCT - + col2 AS col1, CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor # Datafusion - Expected - 78 # Datafusion - Expected - 5 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, + 78 AS col0 FROM tab1 +---- +14 +47 +5 +78 +78 +78 query I rowsort label-6927 SELECT DISTINCT 76 + - 13 - COUNT ( * ) AS col1 FROM tab0 @@ -43507,8 +43989,11 @@ SELECT col2 - col1 FROM tab1 AS cor0 WHERE NOT 5 + + col2 NOT IN ( + col0 + CAST # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col2" at position 0 and "Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 14 AS col2, 39 AS col2 FROM tab2 AS cor0 +---- +-14 +39 query II rowsort SELECT - 66, ( col1 ) - - 26 AS col1 FROM tab1 AS cor0 @@ -43879,8 +44364,15 @@ SELECT * FROM tab1 WHERE NOT + ( + 5 ) IS NULL # Datafusion - Expected - -85 # Datafusion - Expected - 4 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col1" at position 0 and "\(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4 AS col1, - col0 AS col1 FROM tab1 +---- +-51 +-85 +-91 +4 +4 +4 query I rowsort label-7185 SELECT DISTINCT col2 / + - col1 FROM tab0 @@ -44588,8 +45080,15 @@ SELECT ALL 55 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 1386 # Datafusion - Expected - NULL # Datafusion - Expected - 918 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(19\) \* tab2\.col1 \+ \(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 19 * + + col1 + - col1 col0 FROM tab2 +---- +1206 +1386 +918 +NULL +NULL +NULL query III rowsort SELECT * FROM tab0 WHERE NOT - - 21 IS NOT NULL @@ -44784,8 +45283,15 @@ SELECT MIN ( - 32 ) FROM tab0 # Datafusion - Expected - 40 # Datafusion - Expected - 75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col1, col2 AS col1 FROM tab2 +---- +23 +40 +46 +58 +64 +75 query I rowsort SELECT ALL + col1 * - 89 AS col2 FROM tab1 @@ -45088,8 +45594,9 @@ SELECT col2 * 49 AS col1 FROM tab2 2842 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col2" at position 0 and "Int64\(39\) \* tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col2, 39 * col0 AS col2 FROM tab2 WHERE NULL < - + col2 +---- query I rowsort label-7380 SELECT ALL 67 + + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 @@ -45915,8 +46422,11 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 - - 69 / + - col0 <> NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, + COUNT ( * ) col0 FROM tab1 AS cor0 +---- +3 +3 query I rowsort label-7508 SELECT DISTINCT 70 * - SUM ( - - 38 ) AS col0 FROM tab1 @@ -47157,8 +47667,11 @@ SELECT ALL ( + 15 ) col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -945 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(\-99\) \* count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(18\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) col0, - 99 * COUNT ( * ) * + + COUNT ( * ) + - - COUNT ( * ) * ( - + 18 ) AS col0 FROM tab0 cor0 +---- +-945 +NULL query I rowsort SELECT + col1 FROM tab2 cor0 WHERE NOT col1 NOT BETWEEN NULL AND - col2 @@ -47439,8 +47952,15 @@ SELECT DISTINCT COUNT ( * ) + + 57 FROM tab1 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col0, col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT DISTINCT 51 * 71 * - ( - col0 ) + col0 FROM tab0 AS cor0 @@ -48286,8 +48806,15 @@ SELECT + MAX ( + col2 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -76 # Datafusion - Expected - 21 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col1" at position 0 and "Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 col1, - 76 col1 FROM tab0 +---- +-76 +-76 +-76 +21 +21 +21 query I rowsort SELECT ALL - col1 * + + 17 + + col0 FROM tab1 @@ -48476,8 +49003,11 @@ SELECT ALL - CAST ( + col2 AS INTEGER ) / - - 72 AS col2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) / \(\- \(\- count\(\(\- cor0\.col1\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - CAST ( NULL AS INTEGER ) / ( - - COUNT ( ALL + - col1 ) ) col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +3 +NULL query I rowsort label-7927 SELECT 34 * + - MIN ( ALL col1 ) + - COUNT ( * ) * + 96 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL @@ -48705,8 +49235,15 @@ SELECT + col1 + + col2 + - col1 FROM tab1 AS cor0 # Datafusion - Expected - 0 # Datafusion - Expected - -99 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, 0 AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +0 +0 +0 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 * col0 / - col0 + + 7 NOT BETWEEN NULL AND + col2 @@ -49278,8 +49815,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 89 AS col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-3 +-89 query I rowsort SELECT ALL + - col2 * - - col1 AS col1 FROM tab0 AS cor0 @@ -49432,8 +49972,15 @@ SELECT ALL + col2 + 94 FROM tab0 AS cor0 # Datafusion - Expected - -71 # Datafusion - Expected - -45 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col2" at position 0 and "Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 45 AS col2, - 71 AS col2 FROM tab2 AS cor0 +---- +-45 +-45 +-45 +-71 +-71 +-71 query I rowsort SELECT + col0 + - col2 - 80 AS col0 FROM tab1 AS cor0 @@ -49747,8 +50294,11 @@ SELECT - 70 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 62 AS col0, + COUNT ( * ) AS col0 FROM tab2 +---- +3 +62 query I rowsort label-8144 SELECT + col2 * - CAST ( - + 16 AS INTEGER ) * + CAST ( NULL AS INTEGER ) - + col2 * col2 * - col2 FROM tab2 AS cor0 @@ -49768,8 +50318,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - col1 NOT BETWEEN ( + - 83 ) * + - # Datafusion - Expected - NULL # Datafusion - Expected - -96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "CAST\(NULL AS Float64\) \+ \(\- Int64\(\-74\)\) \+ Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - + col2 AS col1, + CAST ( NULL AS FLOAT8 ) + - + ( + - 74 ) + + 60 AS col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +NULL +NULL +NULL query II rowsort SELECT ALL - - 61, + col1 FROM tab1 AS cor0 @@ -50169,8 +50726,15 @@ SELECT ALL col1 FROM tab2 WHERE NOT + 79 NOT BETWEEN - col0 + - 71 AND NULL # Datafusion - Expected - 77 # Datafusion - Expected - -58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, + col1 AS col2 FROM tab2 +---- +-23 +-40 +-58 +51 +67 +77 query II rowsort label-8212 SELECT ALL + 58 col2, COUNT ( * ) FROM tab1 @@ -50252,8 +50816,15 @@ SELECT ALL + col1 + + - col2 + + col2 + ( + 81 ) AS col2 FROM tab0 # Datafusion - Expected - 16 # Datafusion - Expected - 77 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \+ tab0\.col0 AS col1" at position 0 and "\(\- tab0\.col1\) / \(\- tab0\.col1\) \+ tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - col2 ) + + col0 AS col1, - col1 / + + ( - + col1 ) + + col0 AS col1 FROM tab0 +---- +-2 +-32 +16 +77 +88 +98 query I rowsort label-8225 SELECT + 1 + + - COUNT ( * ) FROM tab1 @@ -50940,8 +51511,15 @@ SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 <= + - 72 + - col2 # Datafusion - Expected - 32 # Datafusion - Expected - 98 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \- cor0\.col1 \+ cor0\.col1 \+ Int64\(40\) AS col0" at position 0 and "Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 - + col1 + + + col1 + + 40 AS col0, + 32 AS col0 FROM tab2 AS cor0 +---- +32 +32 +32 +63 +80 +98 query I rowsort label-8337 SELECT - - COUNT ( + + col0 ) FROM tab0 AS cor0 @@ -51027,8 +51605,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), COUNT ( * ) FROM tab1 cor0 +---- +3 +3 query I rowsort SELECT + - col1 * + + ( - col0 ) AS col2 FROM tab2 cor0 @@ -52548,8 +53129,11 @@ SELECT col1 AS col1, col0 * col0 * - 32 AS col2 FROM tab0 # 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 "count\(Int64\(\-35\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 23 AS col2, + COUNT ( ALL + + ( - 35 ) ) AS col2 FROM tab1 +---- +-23 +3 query I rowsort SELECT - 54 * + col1 FROM tab2 @@ -52611,8 +53195,15 @@ SELECT 57 AS col1, - col1 * + col2 + 39 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 81 # Datafusion - Expected - -42 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 42 AS col2, 81 AS col2 FROM tab2 AS cor0 +---- +-42 +-42 +-42 +81 +81 +81 query I rowsort label-8614 SELECT + ( + - SUM ( 52 ) ) AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL @@ -53060,8 +53651,15 @@ NULL # Datafusion - Expected - -68 # Datafusion - Expected - 1 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) / cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 / + + col0 AS col1, - col2 AS col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +0 +0 +1 query III rowsort label-8686 SELECT DISTINCT + + col2 + - + col1, col1, - - col0 * col1 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 @@ -53276,8 +53874,11 @@ SELECT - 17 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 # 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\(cor0\.col1\) AS col0" at position 0 and "sum\(DISTINCT cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( col1 ) AS col0, SUM ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0 +---- +195 +3 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 ) = + col2 @@ -53808,8 +54409,15 @@ SELECT + SUM ( ALL - 62 ) FROM tab2 cor0 # Datafusion - Expected - 85 # Datafusion - Expected - -91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, + col0 AS col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +51 +85 +91 query I rowsort SELECT ALL - 41 * ( + col1 ) AS col2 FROM tab1 @@ -54564,8 +55172,15 @@ SELECT ALL col1 + 41 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 col1, ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 +---- +10 +47 +99 +NULL +NULL +NULL query I rowsort label-8929 SELECT CAST ( - - 81 AS INTEGER ) AS col2 FROM tab0 @@ -55855,8 +56470,15 @@ SELECT ALL 48 * - col2 AS col2 FROM tab2 # Datafusion - Expected - 77 # Datafusion - Expected - -3520 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* \(\- tab2\.col0\) \+ tab2\.col2 \+ Int64\(\-41\) \* CAST\(tab2\.col2 AS Int32\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 16 ) * - col0 + + col2 + - 41 * + CAST ( col2 AS INTEGER ) col2, + col1 AS col2 FROM tab2 +---- +-1656 +-2624 +-3520 +51 +67 +77 query III rowsort SELECT * FROM tab1 WHERE NULL BETWEEN - + col1 AND col2 @@ -56027,8 +56649,15 @@ NULL # Datafusion - Expected - -87 # Datafusion - Expected - 950683 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col2 \* Int64\(1\) \* cor0\.col2 \- Int64\(14\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 * + col2 * + 1 * + col2 - + + 14 AS col0, - col0 AS col0 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +33121 +8686 +950683 query I rowsort label-9178 SELECT + CAST ( - COUNT ( col1 ) AS INTEGER ) + - 21 + + MIN ( - col1 ) FROM tab2 AS cor0 @@ -56498,8 +57127,11 @@ SELECT + 97 * + - COUNT ( * ) AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ \(\- CAST\(NULL AS Int32\)\) \+ \(\- cor0\.col0\) / cor0\.col2 AS col1" at position 0 and "Int64\(\-68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 + - CAST ( NULL AS INTEGER ) + - col0 / col2 col1, - 68 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL +---- +-68 +NULL query I rowsort SELECT DISTINCT - ( + + 95 ) FROM tab1 @@ -57002,8 +57634,15 @@ SELECT * FROM tab1 AS cor0 WHERE 36 >= col2 / + + col0 # Datafusion - Expected - 75680 # Datafusion - Expected - NULL # Datafusion - Expected - 931293 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* cor0\.col1 AS col2" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int32\) / cor0\.col1 \+ \(\- cor0\.col2\) \+ cor0\.col0 \* cor0\.col0 \* cor0\.col2 \+ \(\- cor0\.col1\) \+ cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) * + col1 AS col2, + CAST ( - col2 AS INTEGER ) / col1 + - col2 + + col0 * + col0 * + col2 + - col1 + col1 AS col2 FROM tab0 AS cor0 +---- +10528 +75680 +931293 +NULL +NULL +NULL query III rowsort SELECT * FROM tab0 WHERE NOT 35 + - 78 * - 32 IS NULL @@ -57066,8 +57705,11 @@ SELECT ALL + 79 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 38 col2, 78 AS col2 FROM tab2 AS cor0 +---- +38 +78 query I rowsort label-9344 SELECT ALL + MIN ( DISTINCT + - col0 ) AS col1 FROM tab1 cor0 @@ -57119,8 +57761,15 @@ SELECT - 82 * - 44 FROM tab0 AS cor0 # Datafusion - Expected - 72 # Datafusion - Expected - -81 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( col1 ) AS col2, + 72 AS col2 FROM tab0 cor0 +---- +-1 +-21 +-81 +72 +72 +72 query II rowsort label-9351 SELECT ALL + 37 col0, + COUNT ( * ) AS col2 FROM tab2 AS cor0 @@ -58924,8 +59573,11 @@ 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\(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\. +query II valuesort SELECT ALL SUM ( 84 ) AS col1, 87 / + + COUNT ( * ) + - 28 + - COUNT ( * ) * + + COUNT ( * ) + - + 71 col1 FROM tab0 +---- +-79 +252 query II rowsort SELECT ALL + col1 AS col0, - col1 AS col2 FROM tab0 WHERE NOT - col1 + - col1 IS NULL @@ -59309,8 +59961,11 @@ SELECT DISTINCT + 31 * - - ( + 64 ) AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, + COUNT ( * ) col1 FROM tab0 AS cor0 +---- +3 +3 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -59721,8 +60376,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col2, 52 AS col2 FROM tab2 +---- +-3 +52 query I rowsort label-9789 SELECT - ( MIN ( ALL - col1 ) ) + - 64 AS col0 FROM tab0 @@ -59772,8 +60430,11 @@ 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 "Int64\(10\) AS col2" at position 0 and "count\(DISTINCT tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 10 AS col2, COUNT ( DISTINCT + col0 ) AS col2 FROM tab1 +---- +10 +3 query I rowsort label-9797 SELECT DISTINCT CAST ( - 22 AS INTEGER ) AS col1 FROM tab1 @@ -59849,8 +60510,15 @@ SELECT + + ( - + 61 ) * + 9 + + col2 FROM tab0 AS cor0 # Datafusion - Expected - 97 # Datafusion - Expected - 5 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 / tab0\.col0 AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 / col0 AS col2, + col0 col2 FROM tab0 +---- +0 +0 +15 +5 +87 +97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 @@ -59859,8 +60527,15 @@ SELECT ALL col1 / col0 AS col2, + col0 col2 FROM tab0 # Datafusion - Expected - 0 # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) / Int64\(40\) AS col1" at position 0 and "\(\- tab2\.col2\) / tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 49 / 40 AS col1, - col2 / + col0 AS col1 FROM tab2 +---- +0 +0 +0 +1 +1 +1 query I rowsort SELECT DISTINCT + 49 * - col2 AS col2 FROM tab0 @@ -60873,8 +61548,15 @@ SELECT col0 * - + 9 FROM tab0 # Datafusion - Expected - 0 # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "tab2\.col2 / \(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col0, col2 / - col0 AS col0 FROM tab2 +---- +0 +0 +0 +NULL +NULL +NULL query I rowsort label-9978 SELECT col1 / - + 19 AS col2 FROM tab2 diff --git a/data/sqlite/random/aggregates/slt_good_9.slt b/data/sqlite/random/aggregates/slt_good_9.slt index 7f6006b..bb0fbb4 100644 --- a/data/sqlite/random/aggregates/slt_good_9.slt +++ b/data/sqlite/random/aggregates/slt_good_9.slt @@ -785,8 +785,15 @@ SELECT DISTINCT + col2 * + + 45 FROM tab1 AS cor0 # Datafusion - Expected - 1 # Datafusion - Expected - 32 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ cor0\.col2 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 + col2 col0, col1 col0 FROM tab0 AS cor0 +---- +-77 +1 +2 +21 +32 +81 query II rowsort label-119 SELECT DISTINCT - + 6 / col2 * 93 AS col0, - 80 FROM tab0 AS cor0 @@ -2230,8 +2237,11 @@ SELECT - ( - 81 ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) / COUNT ( * ) AS col0, - 21 AS col0 FROM tab2 +---- +-21 +1 query I rowsort SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT NULL < col2 @@ -2414,8 +2424,9 @@ SELECT ALL col1 * + - 18 + + col0 - + ( + col2 ) + col1 FROM tab1 WHERE - col1 / -776 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ \(\- tab1\.col1\) AS col2" at position 0 and "\(\- tab1\.col1\) \* tab1\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 + + - col1 col2, - col1 * + col2 AS col2 FROM tab1 WHERE NOT NULL IN ( 75 + + col0 ) +---- query I rowsort SELECT DISTINCT - + col1 FROM tab0 WHERE NULL IS NULL @@ -2925,7 +2936,7 @@ SELECT - col0 * + col1 - + + col2 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 8082ccffdb9edbd3a700426f3dc13a08 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) 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: Schema error: Schema contains qualified field name cor0\.col2 and unqualified field name col2 which would be ambiguous SELECT ALL - 14 AS col2, 94 AS col2, col2 FROM tab0 AS cor0 query I rowsort @@ -4739,8 +4750,15 @@ SELECT * FROM tab2 WHERE NULL <> ( + + 28 ) # Datafusion - Expected - -6885 # Datafusion - Expected - 17 # Datafusion - Expected - -7371 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "Int64\(81\) \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 AS col2, 81 * - col0 AS col2 FROM tab1 AS cor0 +---- +-4131 +-6885 +-7371 +17 +17 +17 query I rowsort SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( 93 ) @@ -4792,8 +4810,11 @@ SELECT - CAST ( + col0 AS INTEGER ) * + col0 FROM tab0 AS cor0 WHERE NOT ( 15 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ \(\- tab1\.col2\) AS col0" at position 0 and "Int64\(\-78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 + ( - + col2 ) AS col0, - 78 col0 FROM tab1 +---- +-78 +0 query I rowsort label-774 SELECT + COUNT ( DISTINCT - ( - - ( - - col0 ) ) ) FROM tab0 @@ -5109,8 +5130,15 @@ SELECT + 87 AS col1, - col0 FROM tab1 AS cor0 # Datafusion - Expected - 14 # Datafusion - Expected - -80 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 80 AS col2, + 14 AS col2 FROM tab0 AS cor0 +---- +-80 +-80 +-80 +14 +14 +14 query I rowsort SELECT + col0 FROM tab0 AS cor0 WHERE ( NOT + 62 <> NULL ) @@ -5377,8 +5405,15 @@ SELECT DISTINCT 60 * col0 col1 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "CAST\(NULL AS Float64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL 63 AS col0, CAST ( NULL AS FLOAT8 ) AS col0 FROM tab2 +---- +63 +63 +63 +NULL +NULL +NULL query I rowsort label-862 SELECT - MIN ( + - 3 ) AS col1 FROM tab0, tab2 AS cor0 @@ -6199,8 +6234,11 @@ SELECT + col1 AS col2, + col2 + col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 85 AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +3 +85 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NULL IS NULL OR + - col0 - - col1 * - + 5 NOT BETWEEN + col1 - + - 72 AND NULL @@ -6312,8 +6350,15 @@ SELECT ALL + col2 - - - col0 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 29 AS col0, ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0 +---- +29 +29 +29 +NULL +NULL +NULL query I rowsort label-1011 SELECT - - 21 * + COUNT ( * ) + + + COUNT ( * ) + - + CAST ( - 73 AS INTEGER ) AS col2 FROM tab2 cor0 @@ -6472,8 +6517,15 @@ SELECT DISTINCT 7 col1, + col0 - - - 81 + + 34 FROM tab0 AS cor0 # Datafusion - Expected - -33 # Datafusion - Expected - -33 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\)" at position 0 and "Int64\(\-33\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 33, + ( + + ( - 33 ) ) FROM tab1 AS cor0 +---- +-33 +-33 +-33 +-33 +-33 +-33 query I rowsort label-1038 SELECT ALL - - MIN ( ALL - col2 ) FROM tab0 WHERE ( NOT ( NULL ) >= col0 ) @@ -6773,8 +6825,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( ALL - 13 ) AS col1, - COUNT ( * ) * 60 AS col1 FROM tab0 +---- +-13 +-180 query I rowsort label-1085 SELECT ALL + ( - ( COUNT ( * ) ) ) FROM tab0 @@ -7972,8 +8027,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, - 30 col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 +---- +-30 +-9 query I rowsort label-1285 SELECT ALL 62 * - + CAST ( NULL AS INTEGER ) FROM tab2 @@ -8133,8 +8191,15 @@ SELECT DISTINCT - + 39 col1 FROM tab1 AS cor0 # Datafusion - Expected - -14 # Datafusion - Expected - -89 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col2" at position 0 and "Int64\(\-14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 89 AS col2, - 14 AS col2 FROM tab0 cor0 +---- +-14 +-14 +-14 +-89 +-89 +-89 query II rowsort SELECT ALL + col2, 47 FROM tab0 AS cor0 @@ -8184,8 +8249,15 @@ SELECT DISTINCT * FROM tab0 WHERE NOT col0 * + col0 IS NULL # Datafusion - Expected - 95 # Datafusion - Expected - 94 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col1" at position 0 and "Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 94 AS col1, 95 AS col1 FROM tab0 +---- +94 +94 +94 +95 +95 +95 query II rowsort SELECT DISTINCT col1, col0 * + 2 AS col2 FROM tab1 @@ -8579,8 +8651,15 @@ SELECT ALL - 1 / col1 FROM tab0 # Datafusion - Expected - 91 # Datafusion - Expected - 0 # Datafusion - Expected - 101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) / tab0\.col2 AS col1" at position 0 and "tab0\.col0 \+ Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 67 / + col2 AS col1, col0 + 4 col1 FROM tab0 +---- +-1 +-6 +0 +101 +19 +91 query I rowsort SELECT + 19 col0 FROM tab1 WHERE NOT ( ( + col1 >= - col1 ) ) @@ -9122,8 +9201,15 @@ SELECT + + 29 FROM tab1 cor0 # Datafusion - Expected - 0 # Datafusion - Expected - -75 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 / \(\- \(\- Int64\(\-74\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 AS col1, col2 / - ( - - 74 ) AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +0 +0 +0 query I rowsort label-1466 SELECT ALL - 57 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 @@ -10361,8 +10447,10 @@ SELECT * FROM tab0 AS cor0 WHERE ( + 27 ) > col0 * + col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 8e32c4a3729d39e03569cf1fb3e072f8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 1 and "\(\- cor0\.col0\) \* \(\- cor0\.col0\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + ( col1 ) + 95 AS col0, - col0 AS col2, + - col0 * - col0 AS col2 FROM tab2 AS cor0 +---- +9 values hashing to 540d97d72eb781d5f91662cc94b2b057 query I rowsort SELECT ALL - 14 * + + 59 / - - 63 FROM tab0 cor0 WHERE NOT 62 IS NOT NULL @@ -10563,8 +10651,15 @@ SELECT + col2 * + col2 + + - 69 + 58 col1 FROM tab1 AS cor0 WHERE - 19 BETWEEN + # Datafusion - Expected - 99 # Datafusion - Expected - 42 # Datafusion - Expected - 210 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col1 AS col2" at position 0 and "cor0\.col1 \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 + + col1 AS col2, + col1 * + col2 AS col2 FROM tab0 AS cor0 +---- +162 +2 +210 +3807 +42 +99 query I rowsort label-1704 SELECT ALL - col2 / + col0 + + 29 FROM tab2 AS cor0 @@ -11261,8 +11356,15 @@ SELECT DISTINCT - - 70, col0 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, + col0 AS col2 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query II rowsort SELECT DISTINCT col1, - 63 FROM tab0 AS cor0 @@ -11277,8 +11379,11 @@ SELECT DISTINCT col1, - 63 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "count\(cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col0, COUNT ( col0 ) AS col0 FROM tab1 AS cor0 WHERE + col2 - - col2 BETWEEN - 61 + + col0 + 4 * col2 AND NULL +---- +0 +NULL query I rowsort label-1816 SELECT ( - + COUNT ( ALL + col1 ) ) AS col1 FROM tab2 AS cor0 @@ -11476,8 +11581,9 @@ SELECT DISTINCT - col2 / - col0 + - + 22 FROM tab0 AS cor0 -22 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(41\) \* \(\- cor0\.col1\) \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col2 col2, 41 * - col1 * - col0 AS col2 FROM tab2 AS cor0 WHERE + col1 * + 4 IS NULL +---- query I rowsort label-1849 SELECT DISTINCT - + 87 / - col2 + - col1 AS col0 FROM tab1 AS cor0 @@ -11647,8 +11753,15 @@ SELECT - + 72 AS col0 FROM tab1 cor0 WHERE - col1 + - - 47 * - col1 IS NOT NULL # Datafusion - Expected - 1491 # Datafusion - Expected - 80 # Datafusion - Expected - 31311 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "\(\- cor0\.col1\) \* Int64\(21\) \* \(\- Int64\(71\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 80 col1, - col1 * 21 * - + 71 AS col1 FROM tab0 AS cor0 +---- +120771 +1491 +31311 +80 +80 +80 query II rowsort SELECT col2 AS col2, 61 FROM tab0 cor0 @@ -12223,8 +12336,15 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - -91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 +---- +-51 +-85 +-91 +NULL +NULL +NULL query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE + ( + col2 ) + col1 IS NOT NULL @@ -12240,8 +12360,10 @@ SELECT 98 / col2 + + col1 + - + col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to fe28fdd4861c18fea1e8130a62c06201 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col2" at position 0 and "Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 64 AS col2, - 38 col2, + col2 * col0 * + - col1 + - col0 AS col0 FROM tab1 AS cor0 +---- +9 values hashing to 38885e4460de8810a4ca8a65c399f15e query I rowsort SELECT ALL + ( + - col2 ) + - col0 AS col1 FROM tab1 AS cor0 @@ -13003,8 +13125,15 @@ SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) # Datafusion - Expected - -5015 # Datafusion - Expected - 76 # Datafusion - Expected - -6188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) 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 II valuesort SELECT DISTINCT + + 76 AS col1, ( - col0 ) * col2 AS col1 FROM tab1 AS cor0 +---- +-4896 +-5015 +-6188 +76 +76 +76 query I rowsort label-2110 SELECT - ( + MAX ( ALL + col2 ) ) AS col0 FROM tab1 AS cor0 @@ -13265,8 +13394,15 @@ SELECT ALL - col2 / 91 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - -77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - col1 ) AS col2, col1 AS col2 FROM tab2 +---- +-51 +-67 +-77 +51 +67 +77 query I rowsort SELECT 56 AS col1 FROM tab0 WHERE NOT NULL <= NULL @@ -13532,8 +13668,11 @@ SELECT * FROM tab0 AS cor0 WHERE col2 - + 25 * + + col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \+ Int64\(\-62\) / CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 73 + - 62 / + CAST ( NULL AS INTEGER ) AS col2, + COUNT ( * ) AS col2 FROM tab0 +---- +3 +NULL query I rowsort label-2202 SELECT CAST ( NULL AS INTEGER ) + + MIN ( ALL + CAST ( - col1 AS INTEGER ) ) FROM tab0 @@ -13806,8 +13945,15 @@ NULL # Datafusion - Expected - 87 # Datafusion - Expected - 31 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + + 31 ) AS col1, col0 AS col1 FROM tab0 +---- +15 +31 +31 +31 +87 +97 query II rowsort SELECT ALL - - col2 AS col0, col2 AS col1 FROM tab2 AS cor0 @@ -14987,8 +15133,11 @@ SELECT ALL + + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-57\) / Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, ( + - 57 ) / - 91 AS col0 FROM tab2 +---- +0 +3 query I rowsort label-2444 SELECT 14 / col2 FROM tab0 @@ -16474,8 +16623,15 @@ SELECT + col0 / - + 8 AS col2 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + col1 ) AS col1, + col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT ALL + col1 + - col0 + + col2 * - - 4 * col0 FROM tab1 @@ -17362,8 +17518,15 @@ SELECT + 78 + + col0 FROM tab0 AS cor0 # Datafusion - Expected - 11 # 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 "tab0\.col1 / tab0\.col1 \+ tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 83 AS col1, col1 / + col1 + + col2 AS col1 FROM tab0 +---- +100 +11 +48 +83 +83 +83 query I rowsort SELECT - - 47 * - + 44 - 40 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 @@ -17421,8 +17584,15 @@ SELECT ALL - 57, + col1 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 2 # Datafusion - Expected - 46 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 46 col2, 2 AS col2 FROM tab2 AS cor0 +---- +2 +2 +2 +46 +46 +46 query I rowsort SELECT ( - 83 ) AS col2 FROM tab1 AS cor0 @@ -17654,8 +17824,15 @@ SELECT ALL * FROM tab0 WHERE col1 + + - col2 * col1 IS NULL # Datafusion - Expected - 1512 # Datafusion - Expected - -97 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "Int64\(72\) \* tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, 72 * + col1 AS col2 FROM tab0 +---- +-15 +-87 +-97 +1512 +5832 +72 query I rowsort SELECT DISTINCT 86 AS col2 FROM tab0, tab1 AS cor0 @@ -18189,8 +18366,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( 25 * + col0 / - col0 * - # Datafusion - Expected - -260567 # Datafusion - Expected - -40 # Datafusion - Expected - -123701 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ Int64\(\-25\) AS col0" at position 0 and "cor0\.col2 \* Int64\(47\) \* Int64\(\-56\) \+ cor0\.col2 / cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + - 25 AS col0, col2 * + 47 * + ( - 56 ) + + col2 / col0 AS col0 FROM tab0 AS cor0 +---- +-112 +-122 +-123701 +-260567 +-26320 +-40 query III rowsort label-2972 SELECT * FROM tab0 AS cor0 WHERE + CAST ( - col1 AS INTEGER ) + + col0 IS NULL @@ -19405,8 +19589,15 @@ NULL # Datafusion - Expected - -51 # Datafusion - Expected - 884 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* Int64\(12\) \+ \(\- tab2\.col2\) AS col2" at position 0 and "Int64\(\-51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * 12 + - col2 AS col2, - 51 AS col2 FROM tab2 +---- +-51 +-51 +-51 +589 +746 +884 query I rowsort label-3169 SELECT DISTINCT - col0 * 30 / col0 FROM tab1 @@ -19530,8 +19721,11 @@ SELECT MIN ( ALL + ( 94 ) ) AS col2 FROM tab0 # 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 "max\(DISTINCT Int64\(18\)\) AS col0" at position 0 and "Int64\(45\) \+ Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MAX ( DISTINCT + + 18 ) AS col0, + 45 + - 10 AS col0 FROM tab0 AS cor0 +---- +18 +35 query I rowsort SELECT 67 FROM tab0 AS cor0 WHERE NOT NULL < + col1 @@ -19897,8 +20091,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 / 92 NOT BETWEEN NULL AND - CAST # Datafusion - Expected - -819 # Datafusion - Expected - 97 # Datafusion - Expected - -9552 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col2 \* \(\- tab0\.col0\) \+ Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, ( col2 ) * - col0 + + 51 AS col2 FROM tab0 +---- +-654 +-819 +-9552 +15 +87 +97 query I rowsort label-3248 SELECT - CAST ( - - col0 AS INTEGER ) + - - 31 / + CAST ( col0 AS INTEGER ) - - 11 FROM tab1 @@ -19986,8 +20187,15 @@ SELECT ALL + - 90 * - col2 col1 FROM tab0 cor0 # Datafusion - Expected - 5 # Datafusion - Expected - -99 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col2 \* Int64\(5\) / \(\- \(\- CAST\(cor0\.col2 AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col2, + col2 * 5 / - - CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +5 +5 +5 query I rowsort label-3261 SELECT 8 * + COUNT ( * ) FROM tab0 @@ -20316,8 +20524,9 @@ SELECT 98 * col0 FROM tab2 7350 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0, col0 FROM tab2 WHERE NOT NULL BETWEEN 0 AND col0 + + col1 +---- query I rowsort SELECT ALL col1 - + - 81 FROM tab0 @@ -21126,8 +21335,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 29 AS col0, + SUM ( - col0 ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +-202 +-29 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 81, col1 ) @@ -22512,8 +22724,11 @@ SELECT 67 + - - col2 * col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "Int64\(37\) \- Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 90 AS col1, 37 - + ( - 73 ) AS col1 FROM tab2 WHERE NULL IS NULL +---- +110 +90 query II rowsort SELECT col2 * col0 col1, + 28 + + col2 AS col0 FROM tab1 @@ -24737,8 +24952,15 @@ SELECT SUM ( DISTINCT - - 85 ) + - COUNT ( * ) + + 72 AS col1 FROM tab1 # Datafusion - Expected - 96 # Datafusion - Expected - 90 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \+ tab1\.col1 AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 43 + + col1 AS col1, col2 AS col1 FROM tab1 +---- +48 +57 +59 +68 +90 +96 query I rowsort label-4048 SELECT + MIN ( ALL + col0 ) + COUNT ( + 55 ) AS col1 FROM tab1 AS cor0 @@ -24932,8 +25154,15 @@ SELECT CAST ( + 0 AS INTEGER ) * col1 FROM tab0 # Datafusion - Expected - 6 # Datafusion - Expected - -2291 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(\-29\) AS col1" at position 0 and "Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 * - 29 col1, + 6 AS col1 FROM tab1 +---- +-2291 +-2291 +-2291 +6 +6 +6 query I rowsort SELECT + + 83 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL @@ -25110,8 +25339,15 @@ SELECT ALL + + col2, col1 - 60, col2 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -133 # Datafusion - Expected - -77 # Datafusion - Expected - -104 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col2\) \- cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, - col2 - + col0 AS col1 FROM tab2 AS cor0 +---- +-104 +-133 +-51 +-67 +-69 +-77 query I rowsort SELECT col0 + 8 FROM tab1 cor0 @@ -26209,8 +26445,15 @@ SELECT - COUNT ( * ) / 56 * - COUNT ( * ) + + ( 76 ) FROM tab2 AS cor0 # Datafusion - Expected - 122 # Datafusion - Expected - 1093 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* Int64\(44\) \+ \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col2 \+ Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 26 * 44 + - col1 AS col2, col2 + + 64 AS col2 FROM tab2 cor0 +---- +104 +1067 +1077 +1093 +122 +87 query I rowsort SELECT + ( - - 50 ) FROM tab0 AS cor0 @@ -26773,8 +27016,15 @@ SELECT + + 53 + + + COUNT ( DISTINCT + 49 ) FROM tab1 cor0 # Datafusion - Expected - -104 # Datafusion - Expected - -75 # Datafusion - Expected - -115 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "\(\- tab2\.col0\) \+ \(\- Int64\(40\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, - col0 + ( - + 40 ) col2 FROM tab2 +---- +-104 +-115 +-46 +-64 +-75 +-86 query I rowsort SELECT ALL + col0 * + 33 FROM tab0 @@ -26951,8 +27201,15 @@ SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ) * - + COUNT ( - CAST ( + col # Datafusion - Expected - -290836 # Datafusion - Expected - -96 # Datafusion - Expected - -68544 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col1 \* \(\- cor0\.col0\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, + col1 * - col0 * + col2 AS col1 FROM tab1 cor0 +---- +-25075 +-290836 +-59 +-68 +-68544 +-96 query I rowsort SELECT - 60 * + 19 * 97 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -27030,8 +27287,15 @@ SELECT DISTINCT + col1 / 9 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - -96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - col2 ) AS col0, col2 AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +59 +68 +96 query II rowsort SELECT ALL 42, + 74 AS col0 FROM tab2 @@ -27351,8 +27615,15 @@ SELECT col0, + col1 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 9603 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col2 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * + ( + + col2 ) AS col0, + col1 col0 FROM tab0 AS cor0 +---- +1 +21 +705 +81 +870 +9603 query III rowsort label-4477 SELECT * FROM tab1 cor0 WHERE col1 * + CAST ( NULL AS FLOAT8 ) * + col0 + - 4 IS NULL @@ -27785,8 +28056,11 @@ SELECT DISTINCT + SUM ( + - ( + col1 ) ) AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(83\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 83 AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +-83 +3 query II rowsort SELECT DISTINCT + + col2 AS col0, + 58 AS col1 FROM tab0 WHERE ( - col1 ) <= ( NULL ) @@ -28064,8 +28338,15 @@ SELECT ALL col0 AS col1 FROM tab2 WHERE NOT - col0 IS NOT NULL # Datafusion - Expected - -67 # Datafusion - Expected - 667 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \* tab2\.col2 \+ tab2\.col0 AS col1" at position 0 and "\(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 * + ( col2 ) + + ( col0 ) AS col1, - col1 AS col1 FROM tab2 +---- +-51 +-67 +-77 +1144 +1641 +667 query I rowsort label-4592 SELECT - 19 * MIN ( ALL + CAST ( ( - + col1 ) AS INTEGER ) ) + - 93 AS col2 FROM tab2 @@ -28239,8 +28520,15 @@ SELECT ALL + col2 + + + col2 AS col0 FROM tab2 # Datafusion - Expected - -2880 # Datafusion - Expected - -75 # Datafusion - Expected - -3375 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "\(\- tab2\.col0\) \* Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col2, - col0 * + 45 AS col2 FROM tab2 +---- +-2070 +-2880 +-3375 +-46 +-64 +-75 query I rowsort SELECT DISTINCT col1 * - col0 * - + 85 AS col2 FROM tab0 @@ -29130,8 +29418,15 @@ SELECT DISTINCT - ( + col0 ) * - ( + - col2 ) FROM tab0 WHERE NOT NULL >= NULL # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, + col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query III rowsort SELECT ALL * FROM tab2 WHERE + col0 NOT IN ( - 1 ) @@ -29631,8 +29926,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 AS col0, - COUNT ( * ) AS col0 FROM tab2 +---- +-3 +52 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -29689,8 +29987,11 @@ SELECT ALL - 58 * - col0 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2208 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* Int64\(92\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 24 * + 92 AS col1, 64 col1 FROM tab1 +---- +2208 +64 query I rowsort SELECT ( col1 ) + + ( col1 ) + - col1 FROM tab2 @@ -30152,8 +30453,15 @@ SELECT DISTINCT - COUNT ( * ) + - ( - 7 ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN # Datafusion - Expected - 49 # Datafusion - Expected - 91 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col0 AS col0, 49 col0 FROM tab1 AS cor0 +---- +49 +49 +49 +51 +85 +91 query I rowsort SELECT DISTINCT + col2 * col0 * + col2 FROM tab0 AS cor0 @@ -31619,8 +31927,15 @@ SELECT + - col2 + + col1 + 86 + - 55 * - col1 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -2555 # Datafusion - Expected - 3 # Datafusion - Expected - -5865 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ Int64\(\-12\) \+ \(\- cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col1\) \* cor0\.col1 \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( + + 92 ) + - 12 + - col1 AS col0, ( - col1 ) * + col1 + col0 AS col0 FROM tab2 AS cor0 +---- +-2555 +-4414 +-5865 +13 +29 +3 query I rowsort SELECT ALL + + col1 * + ( col0 ) AS col1 FROM tab2 cor0 @@ -31654,8 +31969,10 @@ SELECT col0, - 52 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to de3817e197b9687cc60b9c0dd5295963 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 / tab1\.col0 \+ \(\- tab1\.col1\) AS col2" at position 1 and "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col2 AS col1, col0 / col0 + - col1 AS col2, - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 +---- +9 values hashing to 2d91cc9afd5f2a280148c0752eee6c3c query I rowsort label-5198 SELECT COUNT ( * ) / + 49 AS col0 FROM tab2 @@ -31983,8 +32300,15 @@ SELECT - 54 - + 17 FROM tab2 # Datafusion - Expected - -64 # Datafusion - Expected - NULL # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \+ Int64\(89\) \- tab2\.col2 \* \(\- CAST\(NULL AS Int32\)\) \+ \(\- tab2\.col0\) \+ \(\- tab2\.col2\) / Int64\(\-1\) \+ Int64\(89\) AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 + + 89 - ( col2 ) * - + CAST ( NULL AS INTEGER ) + - col0 + - + col2 / + - 1 + 89 AS col1, - col0 AS col1 FROM tab2 +---- +-46 +-64 +-75 +NULL +NULL +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -33033,8 +33357,15 @@ SELECT DISTINCT + 23 / + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NU # Datafusion - Expected - 26 # Datafusion - Expected - -99 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(13\) \+ Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, 13 + 13 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +26 +26 +26 query I rowsort label-5418 SELECT ALL - 25 / CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab1 AS cor0 @@ -34596,8 +34927,15 @@ SELECT + CAST ( ( col1 ) AS INTEGER ) + col1 FROM tab2 AS cor0 WHERE NOT NULL <= # Datafusion - Expected - -68 # Datafusion - Expected - -2580 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \* \(\- Int64\(\-43\)\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 60 * - - 43 AS col1, - col2 AS col1 FROM tab1 AS cor0 +---- +-2580 +-2580 +-2580 +-59 +-68 +-96 query I rowsort SELECT + col0 * + ( - + col0 ) AS col2 FROM tab0 AS cor0 @@ -34691,8 +35029,11 @@ SELECT DISTINCT + col2 * - col0 * 86 col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 157 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(tab1\.col2\) \+ Int64\(61\) AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MAX ( ALL + col2 ) + 61 AS col1, 35 AS col1 FROM tab1 +---- +157 +35 query III rowsort label-5699 SELECT * FROM tab1 WHERE + CAST ( 17 AS INTEGER ) IS NULL @@ -34852,8 +35193,15 @@ SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE + 93 + - 11 + - col2 * + col1 * - # Datafusion - Expected - 115 # Datafusion - Expected - -96 # Datafusion - Expected - 110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "tab1\.col1 \+ CAST\(\(\- \(\- tab1\.col2\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + col2 ) col2, col1 + CAST ( - - col2 AS INTEGER ) AS col2 FROM tab1 +---- +-59 +-68 +-96 +110 +115 +64 query I rowsort SELECT ALL + 71 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 @@ -35184,8 +35532,10 @@ SELECT 74, + col1 + 29 / 86 FROM tab1 WHERE NULL BETWEEN NULL AND - col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 46d114d25248aec9782cfee332eb273e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col0" at position 1 and "Int64\(58\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 81 AS col1, 48 AS col0, + 58 AS col0 FROM tab1 +---- +9 values hashing to 0e8556a6ac6929d2fa64643a02a89a54 query I rowsort label-5783 SELECT DISTINCT + 36 / col2 * + col2 * + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL @@ -35284,8 +35634,15 @@ SELECT ALL + + col1, ( + col1 ) AS col0 FROM tab2 WHERE + col2 * + col1 NOT BETW # Datafusion - Expected - -58 # Datafusion - Expected - 77 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 col0, - col2 col0 FROM tab2 +---- +-23 +-40 +-58 +51 +67 +77 query I rowsort label-5800 SELECT + COUNT ( - - CAST ( NULL AS INTEGER ) ) FROM tab0 @@ -35988,8 +36345,10 @@ SELECT + ( + COUNT ( - + 5 ) ) col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to e3f6fb8da8446f39bdc9b6da189bc59a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 1 and "Int64\(0\) \+ \(\- Int64\(57\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 71 AS col1, col0 AS col2, - 0 + - ( 57 ) AS col2 FROM tab0 AS cor0 +---- +9 values hashing to 7006ef03531f42623523c54e6f7d832c query I rowsort SELECT ( + 35 ) AS col2 FROM tab0 @@ -37444,8 +37803,15 @@ SELECT ALL COUNT ( 47 ) FROM tab1 # Datafusion - Expected - 10 # Datafusion - Expected - 97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, col2 AS col1 FROM tab0 +---- +10 +15 +47 +87 +97 +99 query I rowsort SELECT DISTINCT + 24 * + 7 + + col0 * - col0 FROM tab1 AS cor0 @@ -37802,8 +38168,15 @@ SELECT DISTINCT 66 FROM tab1 WHERE NOT ( + col1 / + col1 IS NULL ) # Datafusion - Expected - 96 # Datafusion - Expected - 98 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 + - - col1 AS col0, 96 AS col0 FROM tab0 AS cor0 +---- +108 +96 +96 +96 +96 +98 query I rowsort SELECT DISTINCT - + col2 + - 18 FROM tab1 AS cor0 @@ -37903,8 +38276,15 @@ SELECT CAST ( - 71 AS INTEGER ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 705 # Datafusion - Expected - 99 # Datafusion - Expected - 9603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 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 II valuesort SELECT ALL + col2 AS col1, col0 * col2 col1 FROM tab0 AS cor0 +---- +10 +47 +705 +870 +9603 +99 query II rowsort SELECT + 44 AS col2, 19 FROM tab1 AS cor0 @@ -38331,8 +38711,11 @@ SELECT + MAX ( + 96 ) AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col2, - 46 AS col2 FROM tab0 +---- +-46 +9 query I rowsort SELECT + 19 + col1 FROM tab0 AS cor0 @@ -38606,8 +38989,15 @@ SELECT 73 * col2 * + - col2 FROM tab2 # Datafusion - Expected - 58 # Datafusion - Expected - 99 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "\(\- Int64\(\-58\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, - ( + ( ( - 58 ) ) ) col1 FROM tab0 +---- +10 +47 +58 +58 +58 +99 query I rowsort SELECT ALL - - col0 * col0 + + col0 FROM tab1 AS cor0 @@ -38943,8 +39333,15 @@ SELECT ALL 52 * + col2 AS col0 FROM tab1 AS cor0 WHERE NOT 1 < + + col0 / + + CA # Datafusion - Expected - 21 # Datafusion - Expected - 84 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 84 AS col2, col1 AS col2 FROM tab0 +---- +1 +21 +81 +84 +84 +84 query II rowsort SELECT 27, + col1 FROM tab1 @@ -40002,8 +40399,15 @@ SELECT - col0, - ( col2 ) col2 FROM tab0 # Datafusion - Expected - -10 # Datafusion - Expected - 81 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "\(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col2, - col2 AS col2 FROM tab0 +---- +-10 +-47 +-99 +1 +21 +81 query I rowsort SELECT col2 FROM tab1 AS cor0 WHERE NOT ( col1 / col1 ) IS NULL @@ -41444,8 +41848,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT ( - COUNT ( * ) ), - COUNT ( * ) FROM tab1 +---- +-3 +-3 query I rowsort SELECT + col0 * 37 AS col1 FROM tab2 @@ -42510,8 +42917,15 @@ SELECT DISTINCT - - col1 + + col1 + 93 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -46 # Datafusion - Expected - NULL # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* cor0\.col1 AS col1" at position 0 and "Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) * + + col1 AS col1, - 46 AS col1 FROM tab1 AS cor0 +---- +-46 +-46 +-46 +NULL +NULL +NULL query I rowsort label-6988 SELECT DISTINCT - col0 / - - 51 FROM tab1 AS cor0 @@ -43016,8 +43430,10 @@ SELECT ( + COUNT ( * ) ) AS col2 FROM tab2, tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 5e11a359fb02d01c0deb7f8307b4dfee -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 / tab2\.col1 \* tab2\.col2 AS col1" at position 1 and "\(\- tab2\.col2\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 10, + col2 / col1 * + col2 AS col1, ( - col2 ) col1 FROM tab2 +---- +9 values hashing to 7629553639893834e2246cd5c7c2e79c query I rowsort SELECT - 23 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 @@ -43125,8 +43541,15 @@ SELECT DISTINCT 78 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL # Datafusion - Expected - -92 # Datafusion - Expected - 78 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 78 AS col0, - 92 AS col0 FROM tab0 AS cor0 +---- +-92 +-92 +-92 +78 +78 +78 query II rowsort label-7087 SELECT DISTINCT - + col0 AS col0, + col0 + + col0 / col0 FROM tab1 cor0 @@ -43739,8 +44162,15 @@ SELECT col2 + 79 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - 40 # Datafusion - Expected - -58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 AS col1, + col2 AS col1 FROM tab2 cor0 +---- +-23 +-40 +-58 +23 +40 +58 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - - col2 ) > 19 @@ -44590,8 +45020,15 @@ SELECT col1 / - + ( + 99 ) + col1 - col0 * + col1 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 418608 # Datafusion - Expected - -5 # Datafusion - Expected - 293709 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- cor0\.col1\) AS Int32\)\)\) AS col2" at position 0 and "cor0\.col0 \* \(\- cor0\.col2\) \* \(\- cor0\.col2\) \- Int64\(34\) \* Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - CAST ( - col1 AS INTEGER ) AS col2, col0 * - col2 * - col2 - + 34 * + 64 col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +293709 +418608 +467840 query II rowsort SELECT + ( col2 ), + 99 + + col2 - + + col1 FROM tab0 AS cor0 @@ -46065,8 +46502,15 @@ SELECT DISTINCT - ( MAX ( ALL + 27 ) ) FROM tab1 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col2, + ( + col2 ) FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query II rowsort SELECT - 24, + col2 AS col1 FROM tab2 AS cor0 @@ -46221,8 +46665,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col2 * - col0 AND + 48 + # Datafusion - Expected - 47 # Datafusion - Expected - 77 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, 47 AS col2 FROM tab2 +---- +47 +47 +47 +51 +67 +77 query I rowsort SELECT - ( - - ( 88 ) ) FROM tab1 @@ -46714,8 +47165,9 @@ SELECT ALL col0 + - 40, + col1 * - col2 AS col1 FROM tab1 AS cor0 -3196 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 / tab0\.col0 AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 / + + col0 AS col1, - col1 AS col1 FROM tab0 WHERE NOT - + 1 IS NOT NULL +---- query I rowsort label-7663 SELECT DISTINCT + 5 * - COUNT ( * ) AS col2 FROM tab1 AS cor0 @@ -47024,8 +47476,15 @@ SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND # Datafusion - Expected - 47 # Datafusion - Expected - 46 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 46 AS col0, col1 AS col0 FROM tab1 cor0 +---- +14 +46 +46 +46 +47 +5 query I rowsort label-7714 SELECT ALL ( + + 4 ) * + COUNT ( * ) - + COUNT ( * ) + 74 FROM tab1 AS cor0 @@ -48617,8 +49076,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT 94 * col2 * - col1 IS NULL # Datafusion - Expected - -66 # Datafusion - Expected - -97 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col1, - 66 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 * + + 48 * + 62 IS NULL +---- +-15 +-66 +-66 +-66 +-87 +-97 query I rowsort SELECT DISTINCT + col0 FROM tab1 cor0 WHERE NOT col0 IS NULL @@ -48907,8 +49373,15 @@ SELECT - CAST ( - + col2 AS INTEGER ) + - col0 / - ( - 13 ), + col2 FROM tab0 # Datafusion - Expected - -58 # Datafusion - Expected - 97 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ tab2\.col1 AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + + col1 AS col0, - col2 AS col0 FROM tab2 +---- +-23 +-40 +-58 +141 +142 +97 query III rowsort label-8024 SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - CAST ( NULL AS INTEGER ) AND + 20 @@ -49608,8 +50081,11 @@ SELECT * FROM tab2 AS cor0 WHERE NOT ( + 41 * + col0 ) < NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "sum\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 27 col0, + SUM ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0 +---- +27 +NULL query I rowsort label-8140 SELECT + ( - col1 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 + CAST ( + + col2 AS INTEGER ) AND ( - col0 ) @@ -50600,8 +51076,11 @@ SELECT ALL - + 98 AS col2, col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "Int64\(\-98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 20 AS col1, - 98 AS col1 FROM tab1 +---- +-98 +20 query II rowsort label-8316 SELECT DISTINCT COUNT ( * ) AS col2, 77 AS col0 FROM tab2 AS cor0 @@ -51860,8 +52339,15 @@ SELECT + col1 * + 86 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL # Datafusion - Expected - 75 # Datafusion - Expected - -77 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, 75 AS col1 FROM tab2 +---- +-51 +-67 +-77 +75 +75 +75 query I rowsort SELECT ALL 55 + + - 58 AS col1 FROM tab1 @@ -51930,8 +52416,15 @@ SELECT COUNT ( * ) * + 50 col2 FROM tab2 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 1 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / cor0\.col1 AS col0" at position 0 and "cor0\.col0 \* cor0\.col0 / cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 / col1 AS col0, + col0 * ( + + col0 ) / col0 col0 FROM tab1 AS cor0 +---- +1 +1 +1 +51 +85 +91 query I rowsort label-8531 SELECT DISTINCT + 82 * + MAX ( + col0 ) AS col2 FROM tab1 @@ -52042,8 +52535,15 @@ SELECT + 94 col2 FROM tab2 cor0 # Datafusion - Expected - 51 # Datafusion - Expected - -81 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 AS col0, + 51 AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +51 +51 +51 query II rowsort SELECT ALL 94, 91 AS col1 FROM tab0 AS cor0 @@ -52755,8 +53255,9 @@ SELECT DISTINCT - ( + + CAST ( NULL AS INTEGER ) ) + 10 * - CAST ( NULL AS INTEG NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col1, col1 FROM tab1 AS cor0 WHERE NULL IN ( col2 ) +---- query I rowsort label-8670 SELECT DISTINCT 6 / + - COUNT ( * ) + - 4 + + COUNT ( * ) FROM tab1 AS cor0 @@ -53123,8 +53624,15 @@ SELECT DISTINCT - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NUL # Datafusion - Expected - 64 # Datafusion - Expected - 34 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 34 col1, col0 AS col1 FROM tab2 AS cor0 +---- +34 +34 +34 +46 +64 +75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 @@ -53442,8 +53950,15 @@ SELECT + - 58 - + col2 AS col1 FROM tab0 cor0 # Datafusion - Expected - -2209 # Datafusion - Expected - 64 # Datafusion - Expected - -235 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \- \(\- \(\- \(\- tab1\.col2\)\)\) AS col0" at position 0 and "Int64\(47\) \* \(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 - - ( - - col2 ) AS col0, 47 * - col1 col0 FROM tab1 +---- +-2209 +-235 +-658 +110 +115 +64 query III rowsort SELECT DISTINCT * FROM tab2 WHERE col0 NOT BETWEEN + - 86 AND NULL @@ -53671,8 +54186,15 @@ SELECT col2 AS col1, - ( + 91 ) / + col2 + col0 FROM tab0 # Datafusion - Expected - -18 # Datafusion - Expected - 97 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col0 AS col1, - 18 AS col1 FROM tab0 AS cor0 +---- +-18 +-18 +-18 +15 +87 +97 query I rowsort label-8817 SELECT + 58 * + - 70 + - col2 * 1 * - CAST ( + col0 AS INTEGER ) + - 10 FROM tab2 AS cor0 @@ -53813,8 +54335,11 @@ SELECT + col0 * - - col1 AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 61 AS col1, COUNT ( * ) AS col1 FROM tab1 +---- +-61 +3 query II rowsort SELECT col1, 61 * 30 FROM tab1 @@ -54524,8 +55049,11 @@ SELECT DISTINCT ( col0 ) * - CAST ( col1 AS INTEGER ) - + col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 +---- +3 +NULL query I rowsort SELECT + + 14 * - - 86 FROM tab1 AS cor0 @@ -55796,8 +56324,15 @@ SELECT DISTINCT + COUNT ( * ) * + 51 FROM tab0 cor0 # Datafusion - Expected - 34 # Datafusion - Expected - -48 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col1" at position 0 and "cor0\.col0 \+ Int64\(\-41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 col1, col0 + + - 41 AS col1 FROM tab2 AS cor0 +---- +-48 +-48 +-48 +23 +34 +5 query I rowsort SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE - col1 <= NULL @@ -55838,8 +56373,15 @@ SELECT col1 + - - 84 AS col2 FROM tab2 # Datafusion - Expected - 1856 # Datafusion - Expected - 155 # Datafusion - Expected - 1280 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ Int64\(78\) AS col1" at position 0 and "cor0\.col2 \* Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 + 78 col1, + col2 * 32 AS col1 FROM tab2 cor0 +---- +1280 +129 +145 +155 +1856 +736 query I rowsort SELECT - 57 * - + 6 + + col2 AS col0 FROM tab2 AS cor0 @@ -55867,8 +56409,15 @@ SELECT * FROM tab2 WHERE NOT - 37 BETWEEN + 30 AND NULL # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col2, col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-9179 SELECT ALL 7 + + MIN ( ALL - col0 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL @@ -55928,8 +56477,15 @@ SELECT DISTINCT + 80 * + col2 col2 FROM tab2 # Datafusion - Expected - 135 # Datafusion - Expected - 3886 # Datafusion - Expected - 146 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* tab2\.col1 AS col2" at position 0 and "Int64\(71\) \+ \(\- \(\- tab2\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * col1 AS col2, 71 + - - ( + col0 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL +---- +117 +1173 +135 +146 +3080 +3886 query II rowsort SELECT DISTINCT - + col0 + + col2, col2 AS col2 FROM tab2 AS cor0 @@ -56030,8 +56586,15 @@ SELECT DISTINCT MIN ( ALL ( + col2 ) ) + + 29 / + COUNT ( * ) AS col2 FROM tab2 # Datafusion - Expected - 49 # Datafusion - Expected - 80 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 AS col2, 49 col2 FROM tab1 +---- +49 +49 +49 +80 +80 +80 query II rowsort SELECT DISTINCT col2 - - + col1 + - col0 - - 79 + - - ( - 27 ) AS col1, col0 FROM tab2 @@ -56054,8 +56617,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT - - col2 NOT BETWEEN NULL AND - col2 # Datafusion - Expected - -40 # Datafusion - Expected - 75 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "\(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, - col2 AS col2 FROM tab2 +---- +-23 +-40 +-58 +46 +64 +75 query II rowsort SELECT + 39 - col2 AS col1, + col2 FROM tab0 AS cor0 @@ -58404,8 +58974,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col2, + MIN ( DISTINCT - col2 ) AS col2 FROM tab2 +---- +-3 +-58 query II rowsort label-9600 SELECT ALL - COUNT ( * ) AS col2, SUM ( DISTINCT 13 ) * SUM ( 6 ) FROM tab2 @@ -59922,8 +60495,11 @@ SELECT + COUNT ( DISTINCT - + ( + + 10 ) ) * + COUNT ( * ) AS col0 FROM tab1 cor # Datafusion - Datafusion expected results: # Datafusion - Expected - -747 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(83\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( ALL 83 ) * + COUNT ( * ) AS col1, COUNT ( * ) col1 FROM tab1 AS cor0 +---- +-747 +3 query III rowsort SELECT * FROM tab1 WHERE NOT - + col1 NOT BETWEEN NULL AND col1 / col2 / - 34 @@ -60256,8 +60832,11 @@ SELECT ALL - - col0 * - col2 + - + col0 AS col2 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(84\)\) AS col1" at position 0 and "min\(DISTINCT CAST\(tab2\.col2 AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( ALL + 84 ) AS col1, MIN ( DISTINCT + CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab2 +---- +23 +3 query III rowsort SELECT * FROM tab1 WHERE NOT ( NOT ( + + col1 / + col2 IS NOT NULL ) ) @@ -60312,8 +60891,15 @@ SELECT ALL 61 + - - COUNT ( + 81 ) + + COUNT ( * ) * - COUNT ( * ) / 98 FROM tab # Datafusion - Expected - 87 # Datafusion - Expected - 81 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col2, col0 AS col2 FROM tab0 AS cor0 +---- +1 +15 +21 +81 +87 +97 query II rowsort SELECT - col1 AS col2, col2 AS col1 FROM tab2 cor0 diff --git a/data/sqlite/random/aggregates/slt_good_90.slt b/data/sqlite/random/aggregates/slt_good_90.slt index df4ae4c..22f4a5c 100644 --- a/data/sqlite/random/aggregates/slt_good_90.slt +++ b/data/sqlite/random/aggregates/slt_good_90.slt @@ -1013,8 +1013,15 @@ SELECT * FROM tab1 WHERE NOT NULL IN ( + 35 * - - col2 ) # Datafusion - Expected - 58 # Datafusion - Expected - 714 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* \(\- \(\- tab1\.col1\)\) AS col1" at position 0 and "Int64\(\-10\) \+ tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * - - col1 AS col1, - 10 + col2 AS col1 FROM tab1 +---- +425 +4277 +49 +58 +714 +86 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT col1 = ( - 1 ) @@ -1763,8 +1770,11 @@ SELECT + 30 + + + COUNT ( * ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +-3 +3 query I rowsort SELECT DISTINCT + 41 - - - col2 AS col0 FROM tab2 AS cor0 @@ -3891,8 +3901,15 @@ SELECT + 32 + - col0 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 23 # Datafusion - Expected - -3907 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \+ cor0\.col0 \+ cor0\.col1 \* Int64\(\-87\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 + col0 + col1 * - 87 AS col2, 23 AS col2 FROM tab1 cor0 +---- +-1116 +-265 +-3907 +23 +23 +23 query I rowsort label-636 SELECT ALL + MIN ( DISTINCT - - col0 ) AS col2 FROM tab1 AS cor0 @@ -4575,8 +4592,15 @@ SELECT ALL + col2 * + + 92 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS N # Datafusion - Expected - 5 # Datafusion - Expected - -75 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* tab1\.col0 / Int64\(\-60\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 50 * col0 / - 60 col2, col1 AS col2 FROM tab1 +---- +-42 +-70 +-75 +14 +47 +5 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT + col1 + 67 IS NULL @@ -4704,8 +4728,15 @@ SELECT + SUM ( - col1 ) * - COUNT ( * ) FROM tab0 # Datafusion - Expected - 22 # Datafusion - Expected - -58 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, 22 col1 FROM tab2 +---- +-23 +-40 +-58 +22 +22 +22 query II rowsort SELECT DISTINCT + 19, - col0 + col1 AS col2 FROM tab0 @@ -5408,8 +5439,11 @@ SELECT ( - col0 ) + - col1 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, - 12 AS col1 FROM tab2 +---- +-12 +3 query I rowsort label-897 SELECT DISTINCT - col2 + + + col2 + - + col2 * - CAST ( NULL AS INTEGER ) * - - col0 FROM tab1 @@ -5568,8 +5602,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) - - COUNT ( ALL - CAST ( NULL AS FLOAT8 ) ) + 26 AS col0, - 47 * - 11 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL +---- +26 +517 query I rowsort SELECT + ( - + ( - - col0 ) ) FROM tab1 AS cor0 @@ -5998,8 +6035,15 @@ SELECT DISTINCT - col1 * + 12 * + + ( + 55 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 549 # Datafusion - Expected - 96 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- cor0\.col1 AS col2" at position 0 and "cor0\.col0 \+ cor0\.col1 \+ cor0\.col1 \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 - + col1 AS col2, col0 + col1 + + col1 * col1 AS col2 FROM tab0 AS cor0 +---- +-66 +549 +66 +6657 +96 +99 query I rowsort SELECT ALL 95 * 17 FROM tab1 AS cor0 @@ -6677,8 +6721,15 @@ SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, + col2 AS col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT DISTINCT + col0 * col2 * - col1 AS col2 FROM tab0 AS cor0 @@ -7339,8 +7390,15 @@ SELECT DISTINCT + COUNT ( * ) * + + 48 AS col2 FROM tab1 # Datafusion - Expected - -46 # Datafusion - Expected - -40 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \+ \(\- tab2\.col0\) AS col0" at position 0 and "Int64\(\-19\) \+ Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 35 + - col0 AS col0, - 19 + - 27 AS col0 FROM tab2 +---- +-11 +-29 +-40 +-46 +-46 +-46 query II rowsort SELECT ALL - col0 * - 21 AS col1, col2 FROM tab0 @@ -7588,8 +7646,15 @@ SELECT DISTINCT col1 / - + col1 FROM tab1 # Datafusion - Expected - 21420 # Datafusion - Expected - 19 # Datafusion - Expected - 22932 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "Int64\(\-28\) \* Int64\(\-9\) \* tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 19 AS col2, - 28 * - 9 * col0 col2 FROM tab1 +---- +12852 +19 +19 +19 +21420 +22932 query III rowsort SELECT * FROM tab2 WHERE + 66 / + col2 NOT BETWEEN - 64 * + 35 * + + col1 * + - col0 + + + 56 AND NULL @@ -7635,8 +7700,15 @@ SELECT + col2 - - 59 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col2, col2 AS col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-1251 SELECT DISTINCT ( + ( SUM ( ALL + 55 ) ) ) AS col2 FROM tab0 AS cor0 @@ -8539,14 +8611,20 @@ 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\(Int64\(1\)\) AS count\(\*\) \* max\(\(\- tab0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 29 AS col1, COUNT ( * ) * + MAX ( ALL - col0 ) AS col1 FROM tab0 +---- +-45 +29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-84\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 84 AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +3 +84 query II rowsort SELECT + + col0 AS col2, 5 col1 FROM tab1 AS cor0 @@ -8576,8 +8654,12 @@ 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\(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\. +query III valuesort SELECT - COUNT ( * ) + - + 17 AS col2, - MAX ( DISTINCT - + 54 ) AS col2, + 59 FROM tab1 AS cor0 +---- +-20 +54 +59 query I rowsort SELECT - 29 + + col0 FROM tab0 AS cor0 @@ -8695,8 +8777,11 @@ SELECT + 30 / + col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ), CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 +---- +3 +3 query II rowsort SELECT col1 col0, - col2 FROM tab0 AS cor0 @@ -8768,8 +8853,11 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NULL = 14 # 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 "max\(Int64\(\-19\)\) 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 II valuesort SELECT MAX ( - 19 ) AS col1, + COUNT ( - 10 ) AS col1 FROM tab2 AS cor0 +---- +-19 +3 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + col2 * + col1 AND col2 @@ -8821,8 +8909,15 @@ SELECT col0, + 80 AS col2 FROM tab0 # Datafusion - Expected - 83 # Datafusion - Expected - 39 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "tab2\.col1 \+ Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 39 AS col1, col1 + + 32 AS col1 FROM tab2 +---- +109 +39 +39 +39 +83 +99 query II rowsort SELECT DISTINCT 84 AS col0, col1 FROM tab1 @@ -8930,8 +9025,15 @@ SELECT col1 + 33 FROM tab0 cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( col2 ), col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query III rowsort SELECT * FROM tab2 AS cor0 WHERE col2 + 48 NOT IN ( + + col2, ( - 27 ) * - col2 * col1 + 83 ) @@ -9442,8 +9544,11 @@ SELECT 96 + + 60 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(0\)\) \* cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col0\) \+ \(\- cor0\.col2\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 0 * + col0 AS col1, ( + - col0 ) + - col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +0 +NULL query I rowsort label-1554 SELECT + CAST ( NULL AS INTEGER ) + - col2 col0 FROM tab1 AS cor0 WHERE NOT 1 IS NOT NULL @@ -9464,8 +9569,11 @@ SELECT - 61 * + col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- min\(DISTINCT Int64\(\-88\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, - MIN ( DISTINCT + - 88 ) AS col1 FROM tab1 +---- +3 +88 query III rowsort SELECT ALL * FROM tab2 WHERE NOT + col0 * col0 IS NULL @@ -9580,8 +9688,15 @@ SELECT DISTINCT + 45 * - col1 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 97 # Datafusion - Expected - -91 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) \+ \(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 76 + + - col0 AS col1, col0 AS col1 FROM tab0 AS cor0 +---- +-163 +-173 +-91 +15 +87 +97 query I rowsort label-1577 SELECT DISTINCT - 36 + COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab0 @@ -10178,8 +10293,15 @@ SELECT + col2 * + - 57 * + col0 FROM tab2 # Datafusion - Expected - 2 # Datafusion - Expected - 99 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab0\.col2\)\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - col2 ) AS col1, 2 col1 FROM tab0 +---- +10 +2 +2 +2 +47 +99 query I rowsort SELECT - col0 AS col2 FROM tab1 WHERE NOT + 9 <= - - 19 @@ -10235,8 +10357,15 @@ SELECT DISTINCT - col0 * + col0 + - + col1 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -1292 # Datafusion - Expected - 20 # Datafusion - Expected - -1824 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col2" at position 0 and "cor0\.col2 \* \(\- Int64\(19\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 20 AS col2, col2 * - + 19 col2 FROM tab1 AS cor0 +---- +-1121 +-1292 +-1824 +20 +20 +20 query I rowsort label-1683 SELECT ALL + + col0 / - 34 AS col1 FROM tab0 AS cor0 @@ -10285,8 +10414,15 @@ SELECT + COUNT ( * ) + - 69 / + - 16 AS col2 FROM tab1 # Datafusion - Expected - 27 # Datafusion - Expected - 6188 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \* cor0\.col0 AS col1" at position 0 and "cor0\.col1 \- Int64\(25\) \+ Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col2 * col0 AS col1, + col1 - + + 25 + + + 47 AS col1 FROM tab1 AS cor0 +---- +27 +36 +4896 +5015 +6188 +69 query I rowsort label-1692 SELECT ALL + ( col1 ) / - - ( - - 93 ) AS col0 FROM tab0 AS cor0 @@ -10355,8 +10491,15 @@ SELECT ALL - + MIN ( ALL + col2 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -219 # Datafusion - Expected - 77 # Datafusion - Expected - -180 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col2 \+ cor0\.col1 \* cor0\.col2 / Int64\(\-14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 col2, col2 + + + col1 * col2 / - 14 AS col2 FROM tab2 AS cor0 +---- +-180 +-219 +-60 +51 +67 +77 query I rowsort SELECT - ( + ( col1 ) ) AS col2 FROM tab1 AS cor0 @@ -11385,8 +11528,11 @@ SELECT ( + - col0 ) AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 1472 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col1" at position 0 and "Int64\(64\) \* max\(Int64\(23\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 AS col1, 64 * + + MAX ( 23 ) AS col1 FROM tab2 AS cor0 +---- +1472 +46 query II rowsort SELECT + - 67 col0, - col1 col1 FROM tab2 AS cor0 @@ -12740,8 +12886,15 @@ SELECT DISTINCT + col1 - ( - col0 ) AS col1 FROM tab0 # Datafusion - Expected - -5 # Datafusion - Expected - 597 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \* tab1\.col1 \+ Int64\(53\) \+ Int64\(\-56\) \+ \(\- tab1\.col2\) \* \(\- tab1\.col1\) \+ tab1\.col2 AS col2" at position 0 and "Int64\(\-5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 60 * + col1 + 53 + - 56 + + - col2 * - col1 + + col2 col2, - 5 AS col2 FROM tab1 +---- +-5 +-5 +-5 +441 +51 +597 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL @@ -13349,8 +13502,15 @@ SELECT - ( + - 48 ) AS col0 FROM tab0 # Datafusion - Expected - -91 # Datafusion - Expected - 96 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "\(\- tab1\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, - col0 AS col1 FROM tab1 +---- +-51 +-85 +-91 +59 +68 +96 query I rowsort SELECT + ( - col1 ) + - col0 * + + col1 FROM tab2 WHERE NOT ( NOT NULL IS NULL ) @@ -14235,8 +14395,11 @@ SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 94 AND col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- CAST\(NULL AS Float64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT + COUNT ( * ) AS col0, - CAST ( NULL AS FLOAT8 ) AS col0 FROM tab2 AS cor0 +---- +3 +NULL query I rowsort SELECT ALL + 6 + + + col0 AS col1 FROM tab0 AS cor0 @@ -14846,8 +15009,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col1, 34 AS col1 FROM tab2 AS cor0 +---- +-3 +34 query II rowsort SELECT + - col1 col0, + col0 + + col0 FROM tab0 AS cor0 @@ -15323,8 +15489,15 @@ SELECT ALL - MAX ( ALL - col2 ), - 70 * - COUNT ( * ) col2 FROM tab2 # Datafusion - Expected - -64 # Datafusion - Expected - 17 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(17\) AS Int32\) AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( + + 17 AS INTEGER ) col1, - col0 AS col1 FROM tab2 +---- +-46 +-64 +-75 +17 +17 +17 query I rowsort label-2520 SELECT COUNT ( * ) + + 5 + + - ( - 12 ) * + SUM ( + col0 ) AS col2 FROM tab0 @@ -15444,8 +15617,15 @@ SELECT 39 + col1, + col0 FROM tab0 # Datafusion - Expected - 68 # Datafusion - Expected - -154 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) \+ tab1\.col1 \- Int64\(74\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 + + ( + col1 ) - + 74 AS col0, col2 AS col0 FROM tab1 +---- +-111 +-118 +-154 +59 +68 +96 query I rowsort SELECT - col0 * - + col1 + 27 + - + col0 FROM tab0 @@ -15541,8 +15721,15 @@ SELECT + + col1 * - 5 + col0 FROM tab0 AS cor0 # Datafusion - Expected - 45 # Datafusion - Expected - 58 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, 45 AS col0 FROM tab2 +---- +23 +40 +45 +45 +45 +58 query I rowsort SELECT ALL 28 * - 87 AS col2 FROM tab0 WHERE NOT - col2 BETWEEN NULL AND NULL @@ -15564,8 +15751,15 @@ SELECT col0 FROM tab2 WHERE NOT NULL <> NULL # Datafusion - Expected - -82 # Datafusion - Expected - 5 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "Int64\(\-82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col2, - 82 AS col2 FROM tab1 WHERE NOT - + CAST ( + CAST ( 59 AS FLOAT8 ) AS INTEGER ) IS NULL +---- +-82 +-82 +-82 +14 +47 +5 query III rowsort label-2558 SELECT * FROM tab2 WHERE NOT + 87 + CAST ( NULL AS INTEGER ) IS NOT NULL @@ -16543,8 +16737,15 @@ SELECT ALL COUNT ( ALL - col2 ) AS col2 FROM tab2 AS cor0 WHERE 88 * - col1 IS N # Datafusion - Expected - 0 # Datafusion - Expected - 97 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col1 / cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, ( col1 ) / col0 AS col1 FROM tab0 AS cor0 +---- +0 +0 +15 +5 +87 +97 query I rowsort label-2716 SELECT ALL COUNT ( * ) * + - 73 AS col0 FROM tab2 AS cor0 @@ -17009,8 +17210,15 @@ SELECT * FROM tab2 cor0 WHERE NOT - ( - - col1 ) = ( NULL ) # Datafusion - Expected - 67 # Datafusion - Expected - 46 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 AS col0, col1 AS col0 FROM tab2 AS cor0 +---- +46 +46 +46 +51 +67 +77 query I rowsort label-2798 SELECT ALL 5 * MAX ( + col2 ) FROM tab0 AS cor0 @@ -17384,8 +17592,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col1, MAX ( ALL + 31 ) col1 FROM tab2 +---- +-3 +31 query I rowsort label-2860 SELECT + 18 / - col0 AS col0 FROM tab1 @@ -17407,8 +17618,15 @@ SELECT COUNT ( * ) AS col0, 42 col2 FROM tab0 # Datafusion - Expected - 81 # Datafusion - Expected - -9108 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* tab0\.col1 \* Int64\(\-92\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 99 * + col1 * - 92 AS col0, + col1 AS col0 FROM tab0 +---- +-191268 +-737748 +-9108 +1 +21 +81 query I rowsort SELECT col0 * - + col2 col2 FROM tab0 @@ -17428,8 +17646,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN CAST ( NULL AS INTEGER # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 col1, col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT - col1 - + col1 <= ( NULL ) @@ -17643,8 +17868,15 @@ SELECT * FROM tab1 WHERE NOT col1 BETWEEN - - col0 AND - ( - + 95 ) + + 0 # Datafusion - Expected - 18 # Datafusion - Expected - 58 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( ( - col2 ) ) AS col0, 18 AS col0 FROM tab2 AS cor0 +---- +18 +18 +18 +23 +40 +58 query III rowsort SELECT * FROM tab2 WHERE NOT NULL >= + + col0 @@ -17668,8 +17900,12 @@ SELECT * FROM tab0 WHERE NOT NULL > ( - 74 ) # Datafusion - Expected - 0 # Datafusion - Expected - 0 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - COUNT ( * ) AS col2, + COUNT ( * ) AS col2, - 27 FROM tab2 WHERE NOT NULL IS NULL +---- +-27 +0 +0 query II rowsort SELECT DISTINCT + 51 AS col0, - 69 + + + ( + col0 ) FROM tab1 AS cor0 @@ -17709,8 +17945,11 @@ SELECT + col1, col0 + + col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 71 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +3 +71 query I rowsort SELECT ALL + 4 + - 7 + - - 67 FROM tab0 @@ -17856,8 +18095,15 @@ SELECT + col0 FROM tab1 AS cor0 WHERE NOT col1 * col0 + + col2 IS NOT NULL AND N # Datafusion - Expected - 21 # Datafusion - Expected - 97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col2, col1 AS col2 FROM tab0 AS cor0 +---- +1 +15 +21 +81 +87 +97 query II rowsort label-2934 SELECT DISTINCT COUNT ( * ), - 71 * + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 @@ -17869,8 +18115,12 @@ SELECT DISTINCT COUNT ( * ), - 71 * + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROS # Datafusion - Expected - 1248 # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* max\(tab1\.col2\) AS col2" at position 0 and "count\(DISTINCT tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 13 * MAX ( ALL col2 ) AS col2, COUNT ( DISTINCT + col0 ) AS col2, - + COUNT ( * ) FROM tab1 +---- +-3 +1248 +3 query I rowsort SELECT DISTINCT + 79 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 @@ -18124,8 +18374,15 @@ SELECT ALL - ( - 33 ) FROM tab1 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - 13 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ \(\- cor0\.col0\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 64 + - + col0 AS col2, - col2 AS col2 FROM tab1 AS cor0 +---- +-21 +-27 +-59 +-68 +-96 +13 query I rowsort label-2976 SELECT - ( + COUNT ( - col2 ) ) FROM tab2 WHERE col1 IS NULL @@ -18147,8 +18404,15 @@ SELECT * FROM tab2 WHERE + col0 >= + 15 * col1 # Datafusion - Expected - -55 # Datafusion - Expected - -380 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* \(\- tab1\.col2\) \- tab1\.col0 AS col1" at position 0 and "Int64\(\-55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 * - col2 - col0 AS col1, ( - 55 ) AS col1 FROM tab1 +---- +-1395 +-3287 +-380 +-55 +-55 +-55 query I rowsort label-2980 SELECT ALL 42 + 1 + + COUNT ( * ) AS col2 FROM tab1 @@ -18162,8 +18426,15 @@ SELECT ALL 42 + 1 + + COUNT ( * ) AS col2 FROM tab1 # Datafusion - Expected - -46 # Datafusion - Expected - -91 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col1 \+ \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + col1 + - col0 AS col1, - 46 AS col1 FROM tab1 AS cor0 +---- +-46 +-46 +-46 +-51 +-85 +-91 query I rowsort SELECT 46 + - 2 + + col1 AS col0 FROM tab2 AS cor0 @@ -19446,8 +19717,15 @@ SELECT + col2 + - 65 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 + - col2 IN ( co # Datafusion - Expected - 47 # Datafusion - Expected - -18 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 18 AS col1, col2 col1 FROM tab0 AS cor0 +---- +-18 +-18 +-18 +10 +47 +99 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + 74 AND NULL @@ -19491,8 +19769,11 @@ SELECT ALL 73 AS col1, - 10 + + + col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(CAST\(NULL AS Int32\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( CAST ( NULL AS INTEGER ) ) col0, COUNT ( * ) AS col0 FROM tab1 +---- +0 +3 query II rowsort SELECT ALL + col1 AS col1, + col2 * + + col2 + - + col2 + 36 FROM tab0 @@ -19970,8 +20251,15 @@ SELECT DISTINCT + COUNT ( + - ( + + col2 ) ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 69 # Datafusion - Expected - 154 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 + - - col1 AS col2, 69 AS col2 FROM tab2 AS cor0 +---- +102 +134 +154 +69 +69 +69 query I rowsort SELECT ALL - col2 - - 34 AS col1 FROM tab2 @@ -21005,8 +21293,10 @@ SELECT col0 / - 61 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to 147adfb189235f077150f7390a30d739 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 12 AS col2, - 71 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 +---- +18 values hashing to 202560a0e6d3f3b78752a32da7d7ac97 query I rowsort SELECT ALL + col1 * 38 AS col0 FROM tab2 @@ -21037,8 +21327,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE + col0 + - 63 BETWEEN - + ( + 16 ) AND - co # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "\(\- tab0\.col2\) / Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, ( - col2 ) / - 71 col2 FROM tab0 +---- +0 +0 +1 +1 +21 +81 query I rowsort SELECT - col2 * - 78 + col1 AS col2 FROM tab2 @@ -21197,8 +21494,11 @@ SELECT DISTINCT - - MAX ( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) 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 II valuesort SELECT ALL + 81 AS col1, MAX ( ALL col0 ) col1 FROM tab0 AS cor0 +---- +81 +97 query III rowsort SELECT ALL * FROM tab0 WHERE NOT + ( + - ( + col1 ) ) IS NULL @@ -21687,8 +21987,11 @@ SELECT DISTINCT + col0 + + 51 AS col0, + col2 AS col2 FROM tab1 WHERE NULL IS NU # Datafusion - Datafusion expected results: # 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 "Int64\(51\) \* \(\- count\(\(\- tab2\.col0\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 AS col1, 51 * - COUNT ( ALL - col0 ) AS col1 FROM tab2 WHERE NOT ( + - 95 ) IS NOT NULL +---- +0 +79 query III rowsort SELECT ALL * FROM tab2 WHERE + col0 + col1 IS NOT NULL @@ -22162,8 +22465,15 @@ NULL # Datafusion - Expected - -80 # Datafusion - Expected - 980 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* tab1\.col1 AS col0" at position 0 and "tab1\.col1 \+ \(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 * + col1 AS col0, + col1 + - col0 AS col0 FROM tab1 +---- +-37 +-44 +-80 +3290 +350 +980 query I rowsort SELECT ALL 76 * - col2 FROM tab2 @@ -22830,8 +23140,15 @@ SELECT - col1 + - 76 AS col1 FROM tab2 # Datafusion - Expected - -15 # Datafusion - Expected - 99 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "\(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, - ( col0 ) AS col0 FROM tab0 +---- +-15 +-87 +-97 +10 +47 +99 query III rowsort label-3754 SELECT ALL * FROM tab0 WHERE NOT NULL <= - CAST ( NULL AS FLOAT8 ) @@ -23046,8 +23363,10 @@ SELECT - 23 FROM tab2 WHERE col0 BETWEEN NULL AND - 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to b6f089797126e5c72358165a8841e53a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab2\.col1\)\) \* \(\- tab2\.col0\) AS col1" at position 0 and "tab2\.col0 \+ CAST\(Int64\(\-14\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - ( - col1 ) * + - col0 AS col1, col0 + + CAST ( - 14 AS INTEGER ) AS col1, - + ( - col1 ) FROM tab2 +---- +9 values hashing to 8b31a3f7cf798c0236bfe49bc2670bd2 query I rowsort SELECT col2 + - 21 AS col0 FROM tab0 AS cor0 @@ -23136,8 +23455,15 @@ SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2 + - ( - col2 ) # Datafusion - Expected - 1 # 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 "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 22 AS col0, + 1 AS col0 FROM tab2 AS cor0 +---- +1 +1 +1 +22 +22 +22 query I rowsort SELECT ALL col0 + + col0 + - 33 AS col2 FROM tab1 AS cor0 @@ -23473,8 +23799,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL # Datafusion - Expected - 21 # Datafusion - Expected - -50 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-50\)\)\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - - 50 ) AS col0, col1 col0 FROM tab0 AS cor0 +---- +-50 +-50 +-50 +1 +21 +81 query I rowsort label-3858 SELECT ALL - - 97 + - COUNT ( DISTINCT - 61 ) FROM tab1 AS cor0 @@ -24314,8 +24647,11 @@ SELECT ALL - col0 - - col0 * col1 * - - 21 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 7203 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(90\) \* Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, COUNT ( * ) + 90 * + 80 AS col2 FROM tab0 +---- +3 +7203 query I rowsort SELECT ALL + ( + 41 ) + + col2 AS col0 FROM tab2 @@ -25383,8 +25719,15 @@ SELECT DISTINCT MAX ( ALL - + col1 ) * - COUNT ( - col0 ) AS col0 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col2, col2 col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-4180 SELECT ALL COUNT ( ALL + col2 ) col1 FROM tab2 AS cor0 @@ -25929,8 +26272,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 83 + - col0 IS NULL # Datafusion - Expected - 58 # Datafusion - Expected - -69 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ \(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 + - + col2 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +-104 +-133 +-69 +23 +40 +58 query II rowsort SELECT ALL col1 * - col1 AS col1, ( - - col0 ) FROM tab2 AS cor0 @@ -26450,8 +26800,15 @@ SELECT - - 72 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 5015 # Datafusion - Expected - 71 # Datafusion - Expected - 6188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "tab1\.col0 \* tab1\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 71 AS col2, col0 * + col2 AS col2 FROM tab1 +---- +4896 +5015 +6188 +71 +71 +71 query I rowsort label-4348 SELECT DISTINCT col1 / - + 89 FROM tab1 @@ -27744,8 +28101,15 @@ SELECT * FROM tab0 AS cor0 WHERE col1 - - + CAST ( NULL AS INTEGER ) BETWEEN ( c # Datafusion - Expected - 38 # Datafusion - Expected - 77 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 col2, + 38 AS col2 FROM tab2 AS cor0 +---- +38 +38 +38 +51 +67 +77 query I rowsort SELECT ALL - col1 + + col1 FROM tab2 AS cor0 WHERE 28 * 60 IS NOT NULL @@ -28400,8 +28764,11 @@ SELECT + col1 - + - col2 * 84 + ( + 1 ) / 46 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) / Int64\(33\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 / + 33 + - - COUNT ( * ) col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +3 +4 query I rowsort label-4672 SELECT DISTINCT 37 * - + ( SUM ( DISTINCT + 55 ) ) AS col2 FROM tab0 AS cor0 @@ -28495,8 +28862,15 @@ SELECT DISTINCT - - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NUL # Datafusion - Expected - 21 # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) / CAST\(NULL AS Int32\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 89 / + CAST ( NULL AS INTEGER ) col2, col1 AS col2 FROM tab0 +---- +1 +21 +81 +NULL +NULL +NULL query I rowsort label-4686 SELECT + MIN ( + col0 ) AS col0 FROM tab0 AS cor0 @@ -28928,8 +29302,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - - COUNT ( * ) * + 54 col0, + ( - 40 ) col0 FROM tab1 AS cor0 +---- +-40 +162 query I rowsort label-4757 SELECT ALL 81 / COUNT ( * ) * - - 46 AS col0 FROM tab1 cor0 @@ -28967,8 +29344,15 @@ SELECT 97 * - COUNT ( * ) AS col1 FROM tab1 # Datafusion - Expected - -68 # Datafusion - Expected - -5 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col1" at position 0 and "\(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 col1, - col2 AS col1 FROM tab1 +---- +-14 +-47 +-5 +-59 +-68 +-96 query I rowsort SELECT DISTINCT - 69 * + 12 FROM tab2 @@ -29232,8 +29616,11 @@ SELECT - 41 / - - col1 AS col2 FROM tab1 # 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 "\(\- max\(DISTINCT Int64\(55\)\)\) AS col2" at position 0 and "Int64\(87\) / Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( DISTINCT + 55 ) AS col2, 87 / 72 AS col2 FROM tab0 +---- +-55 +1 query I rowsort SELECT DISTINCT + col1 + - - col0 AS col2 FROM tab2 AS cor0 @@ -29411,8 +29798,15 @@ SELECT DISTINCT + col0 + + col2 FROM tab1 AS cor0 WHERE NULL IS NULL # Datafusion - Expected - 315392 # Datafusion - Expected - -75 # Datafusion - Expected - 376875 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 \* cor0\.col0 \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, col1 * + col0 * + col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT - col0 + col2 NOT IN ( 86, - col1 ) ) +---- +-46 +-64 +-75 +107916 +315392 +376875 query I rowsort label-4833 SELECT DISTINCT MIN ( ALL - col2 ) * - 87 FROM tab1 AS cor0 @@ -29573,8 +29967,15 @@ SELECT 24 * + - SUM ( ALL - col1 ) FROM tab0 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - -9801 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col1 \* \(\- cor0\.col2\) AS col2" at position 0 and "Int64\(\-68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * + col1 * + - col2 AS col2, - 68 AS col2 FROM tab0 AS cor0 +---- +-178929 +-2100 +-68 +-68 +-68 +-9801 query I rowsort label-4861 SELECT ALL + - CAST ( - 33 AS INTEGER ) AS col2 FROM tab2 AS cor0 @@ -30025,8 +30426,15 @@ SELECT + - col0 - + col1 AS col2, - ( col1 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 0 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \- cor0\.col0 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 - + col0 AS col1, col0 AS col1 FROM tab0 AS cor0 +---- +0 +0 +0 +15 +87 +97 query III rowsort label-4930 SELECT DISTINCT * FROM tab1 AS cor0 WHERE + + CAST ( NULL AS INTEGER ) IS NULL AND ( NULL ) >= - col2 @@ -30405,8 +30813,15 @@ SELECT ALL 41 + + 89 AS col0 FROM tab0 cor0 WHERE + col0 <= ( NULL ) # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col0, col0 AS col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 72 + + col1 ) BETWEEN ( 58 / col2 ) AND NULL @@ -30594,8 +31009,11 @@ SELECT ALL - col2 * - - col0 col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3654 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(42\) \* Int64\(\-29\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col1, ( 42 ) * - 29 * - COUNT ( * ) col1 FROM tab2 +---- +3 +3654 query I rowsort label-5030 SELECT ALL 58 / 81 * MIN ( ALL + - col2 ) AS col2 FROM tab1 @@ -30735,8 +31153,12 @@ SELECT + + 51 + 40 - 70 AS col1 FROM tab1 WHERE - - col0 IS NULL # Datafusion - Expected - 13 # Datafusion - Expected - 3 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 0 and "Int64\(\-49\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 13 AS col0, ( COUNT ( + col0 ) ) AS col2, - 49 col0 FROM tab2 +---- +-49 +13 +3 query II rowsort SELECT + col1 col0, - 60 col2 FROM tab2 @@ -30812,8 +31234,15 @@ SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <> NULL # Datafusion - Expected - -295 # Datafusion - Expected - -3160 # Datafusion - Expected - -3196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col1 \+ cor0\.col2 \+ \(\- Int64\(32\)\) AS col1" at position 0 and "cor0\.col2 \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col2 * ( col1 ) + + col2 + - + 32 AS col1, col2 * - col1 AS col1 FROM tab1 AS cor0 +---- +-1280 +-1344 +-268 +-295 +-3160 +-3196 query I rowsort SELECT ALL - col0 * - ( + col2 ) AS col1 FROM tab1 AS cor0 @@ -30958,8 +31387,9 @@ SELECT + + 11 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 9 values hashing to f4d199584b44732f1a897e6691b4ea00 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "Int64\(4\) \+ Int64\(\-6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, + 4 + - 6 AS col0 FROM tab2 WHERE - - col1 <> NULL +---- query I rowsort SELECT + 2 FROM tab0 WHERE - + 36 BETWEEN + col1 AND - - col2 @@ -31041,8 +31471,11 @@ SELECT 72 * col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(57\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-10\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + COUNT ( * ) ) AS col1, 57 + - COUNT ( * ) + - - 10 * + COUNT ( * ) AS col1 FROM tab0 +---- +3 +84 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE 86 IS NULL @@ -31380,8 +31813,15 @@ SELECT + col1 * col2 + + col1 col1 FROM tab2 AS cor0 # Datafusion - Expected - 60434 # Datafusion - Expected - -33 # Datafusion - Expected - 69454 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \+ CAST\(cor0\.col2 AS Int32\) \+ \(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col1 \* \(\- \(\- CAST\(Int64\(11\) AS Int32\)\)\) \* Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 33 + + CAST ( col2 AS INTEGER ) + + - col2 AS col0, col1 * - + ( - CAST ( + + 11 AS INTEGER ) ) * 82 AS col0 FROM tab2 AS cor0 +---- +-33 +-33 +-33 +46002 +60434 +69454 query I rowsort SELECT ALL 0 * + col0 * col2 + col2 AS col2 FROM tab0 AS cor0 @@ -31976,8 +32416,15 @@ SELECT + 70 + - - col1 AS col0 FROM tab1 cor0 # Datafusion - Expected - -2 # Datafusion - Expected - 149 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \+ cor0\.col1 AS col0" at position 0 and "cor0\.col2 / Int64\(\-23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 72 + + col1 AS col0, col2 / - 23 AS col0 FROM tab2 AS cor0 +---- +-1 +-1 +-2 +123 +139 +149 query III rowsort SELECT * FROM tab1 cor0 WHERE 97 / - col0 <= NULL @@ -32802,8 +33249,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 47 IS NOT NULL # Datafusion - Expected - 88 # Datafusion - Expected - 89 # Datafusion - Expected - 125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \+ Int64\(42\) AS col0" at position 0 and "Int64\(78\) \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - col2 ) + + 42 col0, 78 + + col2 AS col0 FROM tab0 AS cor0 +---- +125 +141 +177 +52 +88 +89 query I rowsort SELECT + col1 * ( + + col2 ) FROM tab2 AS cor0 @@ -33693,8 +34147,15 @@ SELECT DISTINCT col2 col1, 37 / - + col1 * - + col1 FROM tab2 # Datafusion - Expected - -2272 # Datafusion - Expected - 81 # Datafusion - Expected - -437 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "Int64\(\-26\) \* tab0\.col0 \+ \(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, - 26 * + col0 + - + col2 col2 FROM tab0 +---- +-2272 +-2621 +-437 +1 +21 +81 query I rowsort SELECT ALL - ( col1 ) AS col1 FROM tab2 WHERE NOT + 95 NOT IN ( - 5 + - col0 + - col2 ) @@ -33707,8 +34168,15 @@ SELECT ALL - ( col1 ) AS col1 FROM tab2 WHERE NOT + 95 NOT IN ( - 5 + - col0 + - # Datafusion - Expected - 67 # Datafusion - Expected - -77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 col0, col1 AS col0 FROM tab2 +---- +-51 +-67 +-77 +51 +67 +77 query I rowsort label-5549 SELECT DISTINCT + COUNT ( + CAST ( - + 90 AS INTEGER ) ) AS col2 FROM tab1 WHERE + - col0 + + CAST ( NULL AS FLOAT8 ) IS NOT NULL @@ -34115,8 +34583,15 @@ SELECT ALL - col1 * col0 * + 12 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 80 # Datafusion - Expected - 58 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, 80 col1 FROM tab2 AS cor0 +---- +23 +40 +58 +80 +80 +80 query I rowsort SELECT DISTINCT ( + col2 ) + 54 AS col1 FROM tab0 AS cor0 @@ -35383,8 +35858,10 @@ SELECT 67 * - 15 * + CAST ( - 26 AS INTEGER ) + - 50 + - - COUNT ( * ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 41e6df76f29c6d3a2e21d7e8302dcdb9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 1 and "\(\- cor0\.col2\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - + 71, col2 AS col1, + - col2 AS col1 FROM tab1 AS cor0 +---- +9 values hashing to b74ed5e89c3961d5a0d4a0b74c02d69a query I rowsort label-5823 SELECT ALL - ( MAX ( DISTINCT + col1 ) ) FROM tab0 AS cor0 @@ -35670,8 +36147,11 @@ SELECT - MIN ( ALL + col2 ) * - 55 * + COUNT ( * ) AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, - 15 AS col2 FROM tab2 +---- +-15 +3 query III rowsort SELECT * FROM tab2 WHERE NOT - - 45 * + - 93 + col1 * + 2 * - + 36 * + 97 <> ( - col2 ) + - - col2 + + - col1 @@ -36067,8 +36547,15 @@ SELECT ALL - col1 * + col1 * col1 AS col1 FROM tab2 # Datafusion - Expected - 33 # Datafusion - Expected - 11 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) / tab0\.col1 AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 / + col1 AS col2, + 33 AS col2 FROM tab0 +---- +0 +0 +11 +33 +33 +33 query I rowsort SELECT - 37 * - 67 FROM tab1 @@ -37102,8 +37589,11 @@ SELECT * FROM tab0 AS cor0 WHERE NOT ( 23 + 54 + - col0 * + ( 43 ) + - col1 ) IS # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 78 AS col1, 85 AS col1 FROM tab1 AS cor0 +---- +78 +85 query II rowsort SELECT ALL - col2 AS col0, ( ( col2 ) ) AS col1 FROM tab2 AS cor0 @@ -37238,8 +37728,11 @@ SELECT + + 65 / + + col1 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab2 cor0 +---- +-3 +3 query III rowsort SELECT ALL - - 70 * col0 * + + col2 AS col1, col0 AS col2, + col0 AS col0 FROM tab1 AS cor0 @@ -37260,14 +37753,24 @@ SELECT DISTINCT ( + ( + col2 ) ) FROM tab0 # Datafusion - Expected - -47 # Datafusion - Expected - 3876 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* Int64\(57\) AS col2" at position 0 and "\(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 68 * 57 col2, - col2 AS col2 FROM tab0 +---- +-10 +-47 +-99 +3876 +3876 +3876 # 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\(Int64\(1\)\) AS count\(\*\) \* min\(DISTINCT \(\- tab2\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( - + col1 ) AS col0, + COUNT ( * ) * + MIN ( DISTINCT - col0 ) AS col0 FROM tab2 +---- +-225 +-77 query I rowsort label-6133 SELECT - 32 * COUNT ( * ) AS col1 FROM tab0 AS cor0 @@ -37775,8 +38278,15 @@ SELECT DISTINCT 50 col2 FROM tab2 cor0 # Datafusion - Expected - -56 # Datafusion - Expected - 0 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col2" at position 0 and "tab0\.col2 \+ Int64\(\-66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 AS col2, col2 + - 66 AS col2 FROM tab0 +---- +-19 +-56 +0 +0 +0 +33 query I rowsort label-6218 SELECT 39 * + - CAST ( NULL AS INTEGER ) * - col0 FROM tab2 @@ -38081,8 +38591,15 @@ SELECT ALL - + 9 / - - col1 FROM tab2 AS cor0 # Datafusion - Expected - 6003 # Datafusion - Expected - -27 # Datafusion - Expected - 6693 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-27\)\)\) AS col2" at position 0 and "Int64\(69\) \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( - 27 ) AS col2, 69 * + col0 AS col2 FROM tab0 AS cor0 +---- +-27 +-27 +-27 +1035 +6003 +6693 query I rowsort label-6265 SELECT CAST ( - + 29 AS INTEGER ) - + + col0 * + 85 FROM tab2 @@ -38194,8 +38711,9 @@ SELECT - col0 + col2 + - col0 AS col0 FROM tab0 AS cor0 17 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(72\)\) AS col0" at position 0 and "\(\- cor0\.col2\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + + 72 ) AS col0, - col2 * + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL +---- query I rowsort SELECT + col1 * col1 + - col1 + ( + + col0 ) - col0 * + col1 * + col2 + - 14 FROM tab0 AS cor0 @@ -38979,8 +39497,15 @@ SELECT col0 - + 51 AS col2, - col0 FROM tab1 # Datafusion - Expected - 87 # Datafusion - Expected - 98474 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \- tab0\.col1 \* \(\- tab0\.col0\) \* tab0\.col1 AS col1" at position 0 and "tab0\.col2 \+ \(\- tab0\.col2\) \+ tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 - + col1 * - col0 * + col1 AS col1, col2 + - col2 + col0 col1 FROM tab0 +---- +15 +156 +38426 +87 +97 +98474 query I rowsort SELECT ALL col0 * + 24 AS col2 FROM tab1 @@ -39386,8 +39911,15 @@ SELECT ALL + ( + - ( - - col0 ) ) FROM tab1 AS cor0 # Datafusion - Expected - 210 # Datafusion - Expected - -97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col2 \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, col2 * col1 AS col2 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +210 +3807 +99 query I rowsort SELECT - + 35 col0 FROM tab1 AS cor0 @@ -40250,8 +40782,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( 10 ) + + - col2 AND NULL # Datafusion - Expected - 67 # Datafusion - Expected - 88 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 88 AS col0, col1 AS col0 FROM tab2 +---- +51 +67 +77 +88 +88 +88 query III rowsort SELECT ALL * FROM tab2 WHERE NOT + col2 + ( - col2 ) = col2 @@ -40606,8 +41145,15 @@ SELECT ( - 56 ) * 90 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 5 # Datafusion - Expected - -3886 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col1 AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 * + + col1 AS col0, 5 AS col0 FROM tab2 AS cor0 +---- +-1173 +-3080 +-3886 +5 +5 +5 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * + + col2 IS NULL @@ -40709,8 +41255,15 @@ SELECT 46 - 18 AS col0, col2 col1 FROM tab0 AS cor0 WHERE NULL <> ( NULL ) # Datafusion - Expected - 21 # Datafusion - Expected - -89 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ Int64\(8\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + + 8 AS col2, + col1 AS col2 FROM tab0 AS cor0 +---- +-7 +-79 +-89 +1 +21 +81 query I rowsort SELECT DISTINCT - ( col2 ) * + col1 + + col1 FROM tab0 AS cor0 @@ -40747,8 +41300,15 @@ SELECT - col1 + col2 AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL # Datafusion - Expected - -10 # Datafusion - Expected - 22 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \+ cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 77 + col2 AS col1, - col2 AS col1 FROM tab0 cor0 +---- +-10 +-30 +-47 +-67 +-99 +22 query I rowsort SELECT 0 col1 FROM tab2 cor0 WHERE ( NOT + 29 - + + col0 IS NOT NULL ) OR NOT col1 + - col2 - - col1 * + 14 * - col0 IS NOT NULL @@ -40815,8 +41375,15 @@ SELECT DISTINCT - COUNT ( + - 76 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 7614 # Datafusion - Expected - 99 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(94\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col0, + 94 * col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL +---- +10 +1974 +47 +7614 +94 +99 query I rowsort SELECT DISTINCT - + col0 AS col0 FROM tab2 AS cor0 WHERE NOT + ( + 4 ) * + 21 IS NULL @@ -41974,8 +42541,15 @@ SELECT DISTINCT - 39 + - 63, - ( - - col0 ) col0 FROM tab1 # Datafusion - Expected - -69 # Datafusion - Expected - 82 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \+ tab1\.col2 AS col1" at position 0 and "Int64\(\-75\) \+ Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + col2 AS col1, - 75 + + 6 AS col1 FROM tab1 +---- +-69 +-69 +-69 +21 +54 +82 query I rowsort SELECT - 62 AS col1 FROM tab2, tab1 cor0 @@ -42069,8 +42643,15 @@ SELECT + col0 AS col0, col1 * - - ( 29 ) + - col1 * - 71 FROM tab2 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -19 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(19\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 19 AS col2, - CAST ( NULL AS INTEGER ) * + + col2 AS col2 FROM tab0 cor0 +---- +-19 +-19 +-19 +NULL +NULL +NULL query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE - col2 * col1 * - 33 + - 73 > - 51 @@ -42793,8 +43374,15 @@ SELECT DISTINCT - col2 AS col1, 51 FROM tab0 AS cor0 # Datafusion - Expected - 315392 # Datafusion - Expected - -65 # Datafusion - Expected - 376875 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col1" at position 0 and "cor0\.col1 \* \(\- cor0\.col0\) \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 65 AS col1, col1 * + - col0 * - col0 AS col1 FROM tab2 AS cor0 +---- +-65 +-65 +-65 +107916 +315392 +376875 query I rowsort label-7034 SELECT - COUNT ( * ) / + COUNT ( - col1 ) AS col1 FROM tab0 AS cor0 @@ -42884,8 +43472,15 @@ SELECT ALL col0 * - 96 + - col0 FROM tab1 cor0 # Datafusion - Expected - -26 # Datafusion - Expected - 96 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab1\.col2\)\) AS col0" at position 0 and "\(\- tab1\.col1\) \+ \(\- Int64\(\-21\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - - col2 ) col0, - col1 + - - 21 col0 FROM tab1 +---- +-26 +16 +59 +68 +7 +96 query I rowsort label-7048 SELECT ALL col1 / + 19 FROM tab0 @@ -43179,8 +43774,15 @@ SELECT - 41 + - col2 * + col2 AS col2 FROM tab0 # Datafusion - Expected - -21 # Datafusion - Expected - 7081 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* Int64\(73\) AS col2" at position 0 and "\(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * + 73 AS col2, - col1 AS col2 FROM tab0 +---- +-1 +-21 +-81 +1095 +6351 +7081 query I rowsort label-7095 SELECT DISTINCT + MIN ( ALL + col2 ) + SUM ( ALL + + col0 ) FROM tab0 AS cor0 @@ -43258,8 +43860,9 @@ SELECT + + col0 + + 32 col0 FROM tab1 AS cor0 83 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col0" at position 0 and "\(\- cor0\.col0\) \+ \(\- \(\- cor0\.col0\)\) \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 62 AS col0, - col0 + - - col0 * + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = ( + 60 ) +---- query I rowsort label-7108 SELECT + 99 / + COUNT ( * ) col2 FROM tab0 AS cor0 @@ -43481,8 +44084,15 @@ SELECT * FROM tab1 cor0 WHERE - col1 * 40 IS NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 col2, + col0 col2 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT ALL - col1 + 90 - + + col2 * col1 AS col0 FROM tab2 @@ -44125,8 +44735,15 @@ SELECT ALL - 75 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 # Datafusion - Expected - 128 # Datafusion - Expected - 6 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col0" at position 0 and "tab0\.col2 \+ tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 AS col0, col2 + + col1 col0 FROM tab0 +---- +100 +128 +31 +6 +6 +6 query I rowsort SELECT ALL + 89 * + 0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 @@ -44629,8 +45246,11 @@ SELECT DISTINCT - 8 + + col1 AS col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17751 # Datafusion - Expected - -204 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* sum\(\(\- \(\- CAST\(Int64\(61\) AS Int32\)\)\)\) AS col0" at position 0 and "sum\(DISTINCT \(\- Int64\(68\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 97 * + + SUM ( - - CAST ( + 61 AS INTEGER ) ) col0, SUM ( DISTINCT - ( 68 ) ) * COUNT ( * ) AS col0 FROM tab2 +---- +-204 +17751 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1 @@ -44818,8 +45438,15 @@ SELECT + 6 * - - 91 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -2350 # Datafusion - Expected - 96 # Datafusion - Expected - -700 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(50\) \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col1, 50 * - col1 AS col1 FROM tab1 AS cor0 +---- +-2350 +-250 +-700 +59 +68 +96 query III rowsort label-7374 SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL <> + CAST ( ( - + 98 ) AS INTEGER ) @@ -45100,8 +45727,11 @@ SELECT * FROM tab1 AS cor0 WHERE col0 * 53 > + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab2 cor0 +---- +3 +3 query I rowsort label-7420 SELECT + CAST ( - - 84 AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL @@ -45153,8 +45783,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) * 26 AS col0, 38 AS col0 FROM tab1 AS cor0 +---- +-78 +38 query I rowsort label-7429 SELECT COUNT ( + + CAST ( NULL AS INTEGER ) ) col1 FROM tab0 AS cor0 @@ -45282,8 +45915,11 @@ SELECT ALL + 36 AS col0 FROM tab0, tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 31 ) AS col2, + COUNT ( * ) AS col2 FROM tab0 +---- +-31 +3 query I rowsort SELECT ALL col1 * + - col1 AS col2 FROM tab2 @@ -45985,8 +46621,15 @@ SELECT * FROM tab2 WHERE NOT - - col2 - + + 29 IS NOT NULL # Datafusion - Expected - 3364 # Datafusion - Expected - 52 # Datafusion - Expected - 529 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col2" at position 0 and "tab2\.col2 \* tab2\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 52 AS col2, + col2 * col2 AS col2 FROM tab2 +---- +1600 +3364 +52 +52 +52 +529 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN + + 91 - + col1 AND NULL @@ -46406,8 +47049,15 @@ SELECT DISTINCT col2 + + 22 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - 97 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "\(\- tab0\.col2\) \+ tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, - col2 + + col0 AS col2 FROM tab0 +---- +-2 +-32 +15 +77 +87 +97 query I rowsort SELECT ALL 86 AS col0 FROM tab0 WHERE NOT + + 80 * 12 - - - 34 IS NOT NULL @@ -46944,8 +47594,15 @@ SELECT ALL + col0 + 42 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 83 # Datafusion - Expected - 82 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 82 AS col1, 83 col1 FROM tab0 cor0 +---- +82 +82 +82 +83 +83 +83 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + - ( - col2 ) @@ -48069,8 +48726,15 @@ SELECT ALL - - col1, + col1 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 4462 # Datafusion - Expected - 95 # Datafusion - Expected - 690 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 0 and "Int64\(46\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 95 AS col1, 46 * col0 AS col1 FROM tab0 AS cor0 +---- +4002 +4462 +690 +95 +95 +95 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 28 IS NULL @@ -48148,8 +48812,11 @@ SELECT ALL * FROM tab2 WHERE - - col0 NOT BETWEEN + col2 * - col2 * - col0 * + ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, COUNT ( * ) col1 FROM tab1 WHERE NOT NULL < + + col0 +---- +0 +0 query I rowsort SELECT ALL - - 6 AS col1 FROM tab0 AS cor0 @@ -48984,8 +49651,15 @@ SELECT DISTINCT + col1, col2 + + col1 AS col0 FROM tab1 # Datafusion - Expected - 29 # Datafusion - Expected - 81 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col0 \- Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col2, + ( col0 ) - 58 AS col2 FROM tab0 +---- +-43 +1 +21 +29 +39 +81 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT 47 / + col2 IS NOT NULL @@ -48998,8 +49672,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT 47 / + col2 IS NOT NULL # Datafusion - Expected - NULL # Datafusion - Expected - 96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "\(\- tab1\.col1\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, - col1 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 +---- +59 +68 +96 +NULL +NULL +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -50946,8 +51627,15 @@ SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE ( NOT NULL >= + CAST ( + 90 AS INT # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col1, col1 FROM tab2 cor0 +---- +51 +51 +67 +67 +77 +77 query III rowsort label-8387 SELECT * FROM tab1 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) + + col2 ) NOT BETWEEN - ( - col0 ) - + 0 + + - 11 + + col1 AND - col0 @@ -51046,8 +51734,9 @@ SELECT DISTINCT - 25 col1 FROM tab0 -25 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1, col1 AS col1 FROM tab2 WHERE - col2 <= NULL +---- query I rowsort label-8403 SELECT DISTINCT + col0 * col1 FROM tab1 WHERE NOT + 15 * + col0 * - + col2 + - - CAST ( NULL AS INTEGER ) IS NULL @@ -51343,8 +52032,15 @@ SELECT + + COUNT ( * ) FROM tab0 WHERE NULL >= NULL # Datafusion - Expected - -276 # Datafusion - Expected - -529 # Datafusion - Expected - -276 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \* tab2\.col2 AS col0" at position 0 and "Int64\(23\) \* Int64\(\-12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 * + col2 AS col0, 23 * + - 12 AS col0 FROM tab2 +---- +-1600 +-276 +-276 +-276 +-3364 +-529 query I rowsort SELECT DISTINCT - 83 FROM tab0 WHERE NULL NOT BETWEEN + - col1 AND - - col1 + + 61 + - col1 @@ -51392,8 +52088,15 @@ SELECT DISTINCT SUM ( + 8 ) FROM tab0 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - 64 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 64 AS col0, - col0 col0 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +64 +64 +64 query I rowsort SELECT ALL + col1 FROM tab0 WHERE NOT col1 * col2 * + col0 + - + col0 IS NULL @@ -52823,8 +53526,15 @@ SELECT DISTINCT + - 54 AS col2 FROM tab2 cor0 # Datafusion - Expected - -74 # Datafusion - Expected - -98 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ \(\- \(\- tab0\.col2\)\) \* \(\- tab0\.col1\) AS col1" at position 0 and "\(\- tab0\.col1\) \+ \(\- CAST\(Int64\(\-7\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 + - - col2 * - col1 AS col1, - col1 + - CAST ( + - 7 AS INTEGER ) AS col1 FROM tab0 +---- +-14 +-189 +-3726 +-74 +-98 +6 query I rowsort label-8698 SELECT - - COUNT ( * ) FROM tab1 WHERE + col0 * - 56 + col0 <> + - col0 + + - 90 @@ -53122,8 +53832,11 @@ SELECT + col0, + col2 FROM tab2 AS cor0 WHERE NOT NULL >= ( 92 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +3 +3 query I rowsort SELECT ALL - 99 * + - col2 FROM tab1 AS cor0 @@ -54101,8 +54814,15 @@ SELECT DISTINCT - 15 + + - col0 + - + col2 + + 42 / - col2 AS col2, col2 FROM ta # Datafusion - Expected - 638 # Datafusion - Expected - 44 # Datafusion - Expected - 440 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \+ cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col2\) \* Int64\(\-11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 33 + + + col1 AS col2, - col2 * - 11 AS col2 FROM tab2 AS cor0 +---- +18 +253 +34 +44 +440 +638 query I rowsort label-8907 SELECT ALL COUNT ( * ) + + COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 @@ -54651,8 +55371,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(13\) \+ Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( - - col0 ) AS col2, COUNT ( * ) - + 13 + 16 AS col2 FROM tab2 +---- +3 +6 query I rowsort SELECT 42 * - col0 col1 FROM tab1 @@ -54813,8 +55536,15 @@ SELECT DISTINCT + 37, 78 * col0 col1 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 53 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS 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 IR valuesort SELECT + 53 col0, - CAST ( NULL AS FLOAT8 ) AS col0 FROM tab1 +---- +53 +53 +53 +NULL +NULL +NULL query II rowsort SELECT ALL + + col0 col0, - col2 FROM tab1 AS cor0 @@ -55460,8 +56190,15 @@ SELECT + col1 * - + col0 AS col0 FROM tab2 # Datafusion - Expected - 5 # Datafusion - Expected - 28217280 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \* Int64\(60\) \* tab1\.col0 \* Int64\(\-76\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 * 60 * + + col0 * - 76 col2, + ( + + col1 ) AS col2 FROM tab1 +---- +14 +22325760 +22868400 +28217280 +47 +5 query III rowsort label-9127 SELECT ALL * FROM tab1 WHERE NOT - col1 * + CAST ( - 72 AS INTEGER ) IS NULL @@ -56307,8 +57044,15 @@ SELECT DISTINCT + col0 + 77 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -81 # Datafusion - Expected - 99 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, - col1 AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +10 +47 +99 query I rowsort label-9263 SELECT ALL MIN ( - 76 ) + - ( - - COUNT ( * ) ) col1 FROM tab0 AS cor0 @@ -57682,8 +58426,15 @@ SELECT + 18 - col1 FROM tab1 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 970202 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \- cor0\.col2 \* \(\- \(\- cor0\.col2\)\) \* \(\- cor0\.col2\) AS col0" at position 0 and "CAST\(cor0\.col1 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 - + col2 * - - col2 * - ( + col2 ) AS col0, CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0 +---- +1 +103808 +21 +81 +913 +970202 query I rowsort SELECT ALL + 34 + 89 col2 FROM tab2 AS cor0 @@ -57699,8 +58450,10 @@ SELECT 8 + COUNT ( * ) - + + 37 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to cd8d8aaf8c4de1da3dece7ba6f229a5a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col2\) \* \(\- cor0\.col0\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col2 + + col0 AS col2, col1 + - ( - 13 ) AS col0, - col2 * - + col0 AS col2 FROM tab2 cor0 +---- +9 values hashing to c052f7a03bc35547bc89ba38437739ed query I rowsort label-9487 SELECT - - COUNT ( * ) * - MIN ( DISTINCT + - CAST ( CAST ( + - 39 AS FLOAT8 ) AS INTEGER ) ) + + - COUNT ( * ) AS col0 FROM tab1 AS cor0 @@ -59160,8 +59913,11 @@ SELECT - 17 * - 4 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, - 19 col1 FROM tab0 AS cor0 +---- +-19 +3 query I rowsort label-9733 SELECT 59 * - COUNT ( * ) AS col1 FROM tab1 cor0 @@ -59175,8 +59931,15 @@ SELECT 59 * - COUNT ( * ) AS col1 FROM tab1 cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, col2 col2 FROM tab1 cor0 +---- +59 +59 +68 +68 +96 +96 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT - 65 IS NOT NULL @@ -60196,8 +60959,15 @@ SELECT col2 AS col2, + ( + col1 ) AS col2 FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, + ( col0 ) AS col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort SELECT - ( + 61 ) AS col0 FROM tab0 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_91.slt b/data/sqlite/random/aggregates/slt_good_91.slt index 95838bd..e33b5c8 100644 --- a/data/sqlite/random/aggregates/slt_good_91.slt +++ b/data/sqlite/random/aggregates/slt_good_91.slt @@ -428,8 +428,15 @@ SELECT DISTINCT - + 12 FROM tab0 WHERE NOT 69 IS NULL # Datafusion - Expected - 64 # Datafusion - Expected - -9511 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* \(\- tab2\.col0\) \+ tab2\.col2 \* \(\- tab2\.col1\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * - + col0 + + col2 * - col1 AS col1, col0 AS col1 FROM tab2 +---- +-3289 +-7176 +-9511 +46 +64 +75 query III rowsort SELECT ALL * FROM tab0 WHERE ( ( - col2 + + - 56 IS NOT NULL ) ) @@ -743,8 +750,15 @@ SELECT - col1 FROM tab1 AS cor0 WHERE ( - 58 + + ( + - 26 ) ) >= NULL # Datafusion - Expected - 82 # Datafusion - Expected - -50 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 + - ( col2 ) AS col1, 82 AS col1 FROM tab2 AS cor0 +---- +-15 +-32 +-50 +82 +82 +82 query I rowsort SELECT ALL + col1 + - 8 AS col0 FROM tab2 AS cor0 @@ -2374,8 +2388,15 @@ SELECT col2 / + 33 col0 FROM tab0 cor0 # Datafusion - Expected - 210 # Datafusion - Expected - 97 # Datafusion - Expected - 2079 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 \* Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, col2 * 21 AS col1 FROM tab0 AS cor0 +---- +15 +2079 +210 +87 +97 +987 query III rowsort SELECT DISTINCT * FROM tab0 WHERE ( - 52 ) NOT BETWEEN NULL AND + 27 @@ -2907,8 +2928,15 @@ SELECT DISTINCT ( + 88 ) AS col1 FROM tab1 # Datafusion - Expected - -2242 # Datafusion - Expected - -93 # Datafusion - Expected - -9834 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col0" at position 0 and "\(\- Int64\(63\)\) \+ Int64\(30\) \- \(\- tab0\.col2\) \* \(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 93 AS col0, + ( - + 63 ) + + 30 - - col2 * - col2 AS col0 FROM tab0 +---- +-133 +-2242 +-93 +-93 +-93 +-9834 query I rowsort label-474 SELECT DISTINCT + MIN ( + + col1 ) AS col1 FROM tab1 cor0 @@ -3528,8 +3556,15 @@ SELECT DISTINCT + COUNT ( * ) / - 91 FROM tab1 # Datafusion - Expected - 55 # Datafusion - Expected - 2370 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(30\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 * 30 AS col1, 55 AS col1 FROM tab1 +---- +2370 +2370 +2370 +55 +55 +55 query I rowsort SELECT + 44 * + col0 FROM tab0 @@ -4022,8 +4057,15 @@ NULL # Datafusion - Expected - -3571 # Datafusion - Expected - 91 # Datafusion - Expected - -3514 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col2 \- \(\- tab1\.col0\) \+ tab1\.col1 \+ Int64\(\-40\) \* Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, col2 - - col0 + + col1 + + - 40 * 93 col2 FROM tab1 +---- +-3514 +-3559 +-3571 +51 +85 +91 query I rowsort SELECT DISTINCT - ( 85 ) * + 0 FROM tab1 @@ -4283,8 +4325,15 @@ SELECT col0 + + 45 col2 FROM tab1 AS cor0 # Datafusion - Expected - -290789 # Datafusion - Expected - 5 # Datafusion - Expected - -25070 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col2 \* \(\- cor0\.col0\) \* cor0\.col1 \+ cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, col2 * - + col0 * + col1 + col1 AS col2 FROM tab1 AS cor0 +---- +-25070 +-290789 +-68530 +14 +47 +5 query I rowsort label-697 SELECT DISTINCT - col1 * + 52 + 93 + + 16 * col2 * - CAST ( + 7 AS INTEGER ) * - + 30 FROM tab2 AS cor0 @@ -4967,8 +5016,11 @@ SELECT ALL col2 * - 18 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \- Int64\(89\) / tab0\.col0 \* \(\- Int64\(\-7\)\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 - 89 / + col0 * - + ( - 7 ) AS col1, 11 AS col1 FROM tab0 WHERE NOT - 65 <= - col2 +---- +11 +66 query I rowsort SELECT DISTINCT - col0 * 18 - - - col1 + - - col1 + + + col0 col1 FROM tab0 AS cor0 @@ -4995,8 +5047,9 @@ SELECT - 77 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 9 values hashing to 3a24155cb91ceff1e67bb51c07b72107 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) / Int64\(\-86\) \* Int64\(42\) AS col0" at position 0 and "Int64\(86\) \* tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 / + - 86 * + ( 42 ) AS col0, 86 * col0 AS col0 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) + - + 66 BETWEEN + 90 AND - + col0 +---- query I rowsort SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE + col2 <> NULL @@ -5111,8 +5164,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 70 col2, COUNT ( * ) * 58 col2 FROM tab1 cor0 +---- +-70 +174 query I rowsort SELECT ALL + - 55 col2 FROM tab1 AS cor0 WHERE + 78 + 7 IS NULL @@ -5778,8 +5834,9 @@ SELECT ALL * FROM tab0 WHERE NOT + col2 >= - - col2 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col1, ( + + 38 ) AS col1 FROM tab2 WHERE - + col2 <> NULL +---- query I rowsort label-950 SELECT DISTINCT COUNT ( + 74 ) AS col2 FROM tab0 @@ -5831,8 +5888,15 @@ SELECT - col2 FROM tab0 WHERE ( + - col0 - - col2 ) IS NOT NULL # Datafusion - Expected - -86 # Datafusion - Expected - 0 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 / \(\- tab2\.col0\) AS col2" at position 0 and "tab2\.col0 / tab2\.col0 \* Int64\(\-86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 / - + col0 AS col2, + col0 / col0 * - 86 col2 FROM tab2 +---- +-86 +-86 +-86 +0 +0 +0 query I rowsort SELECT - 60 - + col0 AS col1 FROM tab2 cor0 WHERE ( NOT NULL NOT IN ( - col1 * + 97 - + col2 + - - col2 ) ) @@ -5944,8 +6008,15 @@ SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( col0, ( - col1 ) + 53 - ( col2 ) * c # Datafusion - Expected - 7225 # Datafusion - Expected - 91 # Datafusion - Expected - 8281 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, col0 * + col0 AS col2 FROM tab1 cor0 +---- +2601 +51 +7225 +8281 +85 +91 query I rowsort SELECT col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL @@ -6316,8 +6387,15 @@ SELECT * FROM tab1 WHERE NOT + col1 <= - col1 # Datafusion - Expected - 47 # Datafusion - Expected - 3 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col0" at position 0 and "\(\- \(\- tab1\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 3 AS col0, - ( + - col1 ) col0 FROM tab1 +---- +14 +3 +3 +3 +47 +5 query I rowsort SELECT DISTINCT ( + - 86 ) FROM tab2 @@ -7176,8 +7254,15 @@ SELECT + col2 + + col1 col0 FROM tab1 cor0 # Datafusion - Expected - -58 # Datafusion - Expected - -69 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \+ \(\- tab2\.col2\) AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + - col2 AS col1, - col2 AS col1 FROM tab2 +---- +-104 +-133 +-23 +-40 +-58 +-69 query I rowsort SELECT col1 * col2 * - 1 + - - col0 + - 98 AS col2 FROM tab2 @@ -7662,12 +7747,20 @@ SELECT ALL + col0, 59 FROM tab1 # Datafusion - Expected - 104 # Datafusion - Expected - -75 # Datafusion - Expected - 133 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col0 \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, + ( + col0 ) + + col2 AS col1 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +104 +133 +69 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col1 AS col2, - col1 col2 FROM tab0 AS cor0 WHERE NOT + 5 IS NOT NULL +---- query I rowsort SELECT ALL col0 + - col1 col0 FROM tab2 AS cor0 @@ -8604,8 +8697,11 @@ SELECT * FROM tab0 WHERE NOT + + col2 + + col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col1" at position 0 and "min\(Int64\(\-42\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 18 AS col1, MIN ( - 42 ) AS col1 FROM tab0 +---- +-18 +-42 query I rowsort SELECT + 0 * - - 4 AS col1 FROM tab2 @@ -8679,8 +8775,15 @@ SELECT ALL - COUNT ( * ) FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN + col0 AND - # Datafusion - Expected - 40 # Datafusion - Expected - -58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - col2 ) AS col1, + col2 AS col1 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +23 +40 +58 query III rowsort SELECT * FROM tab2 cor0 WHERE - col0 > NULL @@ -10005,8 +10108,9 @@ SELECT CAST ( + 93 AS INTEGER ) FROM tab2 AS cor0 93 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "cor0\.col0 \* Int64\(\-59\) \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 44 AS col1, + col0 * - 59 * + - col0 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 >= NULL +---- query I rowsort SELECT 77 * col1 AS col1 FROM tab0 @@ -10044,8 +10148,15 @@ SELECT DISTINCT COUNT ( - col1 ) * + ( + COUNT ( * ) ) AS col2 FROM tab0 # Datafusion - Expected - 67 # Datafusion - Expected - 49 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 49 AS col2, + col1 AS col2 FROM tab2 cor0 +---- +49 +49 +49 +51 +67 +77 query I rowsort SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> - 30 @@ -11404,8 +11515,15 @@ SELECT - 0 * col2 AS col0 FROM tab1 cor0 # Datafusion - Expected - 28 # Datafusion - Expected - -9801 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col2 AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 * col2 AS col0, 28 AS col0 FROM tab0 AS cor0 +---- +-100 +-2209 +-9801 +28 +28 +28 query I rowsort label-1868 SELECT MAX ( DISTINCT - 52 ) AS col1 FROM tab1 cor0 @@ -11492,8 +11610,11 @@ SELECT - col2 + - col0 + - col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT 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\.col2\)\)\) AS col0" at position 0 and "avg\(cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL - MIN ( - col2 ) AS col0, ( + AVG ( col2 ) ) AS col0 FROM tab2 AS cor0 WHERE NULL <> + col0 +---- +NULL +NULL query I rowsort label-1885 SELECT ALL col2 AS col1 FROM tab0 cor0 WHERE ( - CAST ( + 78 AS FLOAT8 ) - - - col0 ) IS NULL @@ -11771,8 +11892,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + + 52 / - - COUNT ( * ) AS col0, COUNT ( DISTINCT - - col2 ) AS col0 FROM tab1 AS cor0 +---- +20 +3 query III rowsort SELECT * FROM tab2 cor0 WHERE + col2 BETWEEN ( - + col1 ) AND - col1 * + + 31 + + + col0 * + 13 - - - col0 @@ -11989,8 +12113,11 @@ SELECT 8 + col0 * - CAST ( - col2 AS INTEGER ) + - + col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(45\) / Int64\(\-96\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) + + 45 / - 96 AS col0, COUNT ( * ) col0 FROM tab0 +---- +3 +3 query I rowsort SELECT DISTINCT col2 * - - col2 col1 FROM tab1 @@ -12535,8 +12662,15 @@ SELECT DISTINCT col1 AS col2, ( col2 ) * - + 93 - - - col0 FROM tab2 # Datafusion - Expected - -290836 # Datafusion - Expected - -30 # Datafusion - Expected - -68544 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col0" at position 0 and "tab1\.col1 \* \(\- \(\- tab1\.col0\)\) \* \(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 30 AS col0, col1 * - + ( - col0 ) * + - col2 AS col0 FROM tab1 +---- +-25075 +-290836 +-30 +-30 +-30 +-68544 query II rowsort SELECT 20, + 51 + + 57 + - 85 AS col2 FROM tab2 @@ -12558,8 +12692,11 @@ SELECT 12 / - 30 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - -138 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col1" at position 0 and "Int64\(\-46\) \* count\(\(\- Int64\(15\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 91 AS col1, ( + - 46 ) * + + COUNT ( ALL - + 15 ) AS col1 FROM tab2 +---- +-138 +-91 query I rowsort SELECT - col0 FROM tab2 AS cor0 WHERE + ( col0 ) * - + col2 NOT BETWEEN + 68 + - + 51 - - - col1 AND + 5 @@ -14143,8 +14280,15 @@ SELECT + col1 * 28 + + col1 AS col2 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- tab2\.col2\) \* \(\- tab2\.col0\) / Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 5 col1, CAST ( NULL AS INTEGER ) + - + col2 * + - col0 / + 73 AS col1 FROM tab2 +---- +5 +5 +5 +NULL +NULL +NULL query I rowsort label-2316 SELECT DISTINCT - MAX ( + 80 ) FROM tab0 @@ -14530,8 +14674,15 @@ SELECT 13 * + 45 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1, + ( + col1 ) FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query II rowsort SELECT ALL + 27 col2, - 17 FROM tab2 cor0 @@ -14611,8 +14762,11 @@ SELECT DISTINCT * FROM tab2 WHERE - 63 <> - 13 + - 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 "\(\- sum\(Int64\(32\)\)\) AS col0" at position 0 and "Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( ALL + 32 ) AS col0, - 66 col0 FROM tab1 +---- +-66 +-96 query I rowsort SELECT DISTINCT - col2 * + + col1 AS col1 FROM tab1 AS cor0 @@ -14922,8 +15076,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ), ( + COUNT ( * ) ) FROM tab2 AS cor0 +---- +3 +3 query I rowsort SELECT DISTINCT + col0 * + col0 FROM tab0 WHERE NOT - col2 IS NULL @@ -15067,8 +15224,15 @@ SELECT + 12 * 24 FROM tab0 cor0 WHERE NOT ( col0 ) IS NULL # Datafusion - Expected - -4760 # Datafusion - Expected - 60 # Datafusion - Expected - -6720 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "cor0\.col2 \* Int64\(\-70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 60 AS col0, + col2 * - 70 AS col0 FROM tab1 AS cor0 +---- +-4130 +-4760 +-6720 +60 +60 +60 query II rowsort label-2465 SELECT - + 71 AS col0, - COUNT ( * ) / + - COUNT ( ALL - col2 ) FROM tab2 AS cor0 @@ -15402,8 +15566,15 @@ SELECT ALL col1 + + 74 FROM tab1 AS cor0 # Datafusion - Expected - 36 # Datafusion - Expected - 12 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \+ \(\- cor0\.col1\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 + - col1 AS col1, + 36 AS col1 FROM tab2 AS cor0 +---- +-14 +-4 +12 +36 +36 +36 query I rowsort SELECT ALL + col0 + + 56 FROM tab0 AS cor0 @@ -15674,8 +15845,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 col1, - 29 * ( - COUNT ( * ) ) AS col1 FROM tab0 +---- +80 +87 query I rowsort SELECT DISTINCT - + ( 41 ) + - 55 + - col1 FROM tab0 AS cor0 @@ -15695,8 +15869,15 @@ SELECT col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL >= NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, + col0 AS col0 FROM tab1 cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-2562 SELECT + col2 / + + ( + col1 ) * - col1 col2 FROM tab2 AS cor0 @@ -16035,8 +16216,15 @@ SELECT 80 + + 65 + + - COUNT ( * ) AS col0 FROM tab1 # Datafusion - Expected - 46 # Datafusion - Expected - 720 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* tab2\.col2 AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 18 * + + col2 col1, col0 AS col1 FROM tab2 +---- +1044 +414 +46 +64 +720 +75 query I rowsort SELECT + 54 FROM tab2 AS cor0 WHERE ( NULL ) <= + - col0 @@ -16558,8 +16746,13 @@ SELECT ALL + col0 - + col1 * 64 + - col1 AS col0, - col0 + - - col0 + - - col1 / # Datafusion - Expected - 84 # Datafusion - Expected - 41 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "tab0\.col2 / Int64\(\-49\) \+ Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 41 AS col1, col2 / - 49 + 86 AS col1 FROM tab0 +---- +41 +41 +84 +86 query III rowsort SELECT * FROM tab0 AS cor0 WHERE ( NOT + col1 + + 90 * - col2 IS NOT NULL ) @@ -17711,8 +17904,15 @@ SELECT - ( + col1 ) FROM tab1 WHERE 31 + + col0 * + col0 * 80 IS NOT NULL # Datafusion - Expected - -5 # Datafusion - Expected - 47301072 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* Int64\(\-84\) \* \(\- tab1\.col0\) \* tab1\.col0 AS col2" at position 0 and "\(\- tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 * - 84 * - col0 * + + col0 AS col2, - col1 AS col2 FROM tab1 +---- +-14 +-47 +-5 +20974464 +35807100 +47301072 query I rowsort SELECT + ( + + col1 ) + 1 FROM tab2 @@ -18012,8 +18212,15 @@ NULL # Datafusion - Expected - 3374971 # Datafusion - Expected - 529 # Datafusion - Expected - 778659 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col2 AS Int32\) \* tab2\.col2 AS col0" at position 0 and "Int64\(\-29\) \+ \(\- tab2\.col0\) \* \(\- tab2\.col0\) \* \(\- Int64\(8\)\) \* \(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( col2 AS INTEGER ) * + col2 AS col0, - 29 + - col0 * - col0 * - + 8 * - col0 AS col0 FROM tab2 +---- +1600 +2097123 +3364 +3374971 +529 +778659 query III rowsort SELECT * FROM tab2 AS cor0 WHERE - 45 * + - col1 = NULL @@ -19342,8 +19549,15 @@ SELECT DISTINCT ( + 65 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - -152 # Datafusion - Expected - -77 # Datafusion - Expected - -162 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col0" at position 0 and "\(\- tab2\.col1\) \+ Int64\(\-40\) \- Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, - col1 + + + ( - 40 ) - 45 AS col0 FROM tab2 +---- +-136 +-152 +-162 +-51 +-67 +-77 query II rowsort SELECT DISTINCT 25 AS col2, - 4 * + - 59 FROM tab1 @@ -20993,8 +21207,15 @@ SELECT ALL * FROM tab1 WHERE ( NOT - 17 IS NULL ) # Datafusion - Expected - 47 # Datafusion - Expected - 71 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 col1, col2 AS col1 FROM tab0 +---- +10 +47 +71 +71 +71 +99 query I rowsort SELECT ( + col2 ) FROM tab2 WHERE NOT + - 3 IS NULL @@ -21411,8 +21632,15 @@ SELECT + COUNT ( col2 ) * COUNT ( * ) + SUM ( ALL col0 ) FROM tab2 # Datafusion - Expected - -78 # Datafusion - Expected - 77 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "Int64\(\-78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, - 78 AS col2 FROM tab2 +---- +-78 +-78 +-78 +51 +67 +77 query I rowsort SELECT DISTINCT + ( + 86 ) col1 FROM tab1 @@ -21602,8 +21830,15 @@ SELECT - 89 / 89 AS col1, - col1 AS col0 FROM tab1 # Datafusion - Expected - -4896000 # Datafusion - Expected - 43 # Datafusion - Expected - -7099200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) \+ Int64\(58\) AS col2" at position 0 and "Int64\(85\) \* Int64\(\-40\) \* tab2\.col2 \* Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 15 + 58 AS col2, + 85 * - 40 * col2 * 36 AS col2 FROM tab2 WHERE ( NOT + 63 * + 93 IS NULL ) OR NULL < + col0 + CAST ( - 24 AS INTEGER ) +---- +-2815200 +-4896000 +-7099200 +43 +43 +43 query I rowsort SELECT - + 97 * + col1 AS col2 FROM tab2 AS cor0 @@ -21624,8 +21859,15 @@ SELECT DISTINCT MIN ( - - ( + - 87 ) ) FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - -81 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \* Int64\(3\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 27 * + 3 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +-81 +-81 +-81 +23 +40 +58 query I rowsort label-3535 SELECT CAST ( + + col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col0 * - col0 IS NULL @@ -21780,8 +22022,11 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0 / + 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- Int64\(\-30\)\)\) AS col0" at position 0 and "Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MIN ( - - 30 ) AS col0, - 19 AS col0 FROM tab2 AS cor0 +---- +-19 +30 query I rowsort label-3560 SELECT DISTINCT 21 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS FLOAT8 ) * col1 IS NOT NULL @@ -21811,8 +22056,15 @@ SELECT DISTINCT - 48 AS col0, - 28 - - col1 * + - col0 FROM tab1 # Datafusion - Expected - -47 # Datafusion - Expected - -99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "\(\- cor0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col2, - col2 FROM tab0 AS cor0 +---- +-10 +-10 +-47 +-47 +-99 +-99 query I rowsort label-3564 SELECT ALL + - col1 FROM tab0 AS cor0 WHERE CAST ( col0 AS INTEGER ) BETWEEN NULL AND - col2 @@ -21980,8 +22232,10 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 1675fea19830b89b98b967d2d771750b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col1" at position 0 and "Int64\(65\) \* tab2\.col2 \* \(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 79 AS col1, 65 * + col2 * - col1 AS col1, + col1 AS col2 FROM tab2 +---- +9 values hashing to da4033c014c76f6219166ed3c0158899 query I rowsort label-3590 SELECT + COUNT ( * ) * - - 6 AS col1 FROM tab2 @@ -22295,8 +22549,15 @@ SELECT * FROM tab0 cor0 WHERE NOT ( NOT ( NULL IS NULL ) ) # Datafusion - Expected - 91 # Datafusion - Expected - -96 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "\(\- \(\- cor0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 AS col0, ( - - col0 ) AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +51 +85 +91 query III rowsort SELECT * FROM tab1 cor0 WHERE NOT ( NULL <> - col2 ) @@ -23123,8 +23384,10 @@ SELECT 60 AS col0 FROM tab2 AS cor0 WHERE ( NOT + col0 * + + col1 IN ( 20 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 98cc429532c27540ab743bdf4e1adc53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) \+ Int64\(\-66\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + - 37 + + - 66 AS col0, + col2 AS col0, - - 9 * + col1 * + 20 AS col1 FROM tab1 AS cor0 +---- +9 values hashing to 6d1e6468683106a5232eb80351adabbb query I rowsort SELECT ALL 38 * 57 + - 79 - col1 col2 FROM tab0 AS cor0 @@ -23147,8 +23410,15 @@ SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT 38 + + col1 + + ( + # Datafusion - Expected - -98 # Datafusion - Expected - 74 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col1 AS col0" at position 0 and "\(\- Int64\(98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 + col1 AS col0, - ( + 98 ) AS col0 FROM tab2 AS cor0 +---- +-98 +-98 +-98 +117 +125 +74 query I rowsort SELECT - 65 - - col1 * - col1 FROM tab2 AS cor0 @@ -23287,8 +23557,15 @@ SELECT col2 + + + 80 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - -77 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 77 AS col1, + col0 AS col1 FROM tab0 AS cor0 +---- +-77 +-77 +-77 +15 +87 +97 query II rowsort SELECT + 55 AS col0, 79 AS col2 FROM tab2 AS cor0 @@ -24332,8 +24609,11 @@ SELECT ALL + col2 AS col2, + col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab0 +---- +3 +3 query I rowsort SELECT + 46 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 @@ -24366,8 +24646,15 @@ SELECT ALL + col1 * + 34 + + col2 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 4624 # Datafusion - Expected - -77 # Datafusion - Expected - 9216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col2" at position 0 and "cor0\.col2 \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 77 AS col2, col2 * + col2 AS col2 FROM tab1 cor0 +---- +-77 +-77 +-77 +3481 +4624 +9216 query I rowsort SELECT - + col1 * + 1 col2 FROM tab2 AS cor0 @@ -24839,8 +25126,11 @@ SELECT ALL ( col0 ) * 35 * + 1 + - col1, + 76 * - 9 * + 64 - - + col0 * - - col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 255 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(85\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) * + + COUNT ( * ) AS col0, 85 * COUNT ( * ) AS col0 FROM tab0 +---- +255 +9 query I rowsort label-4061 SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0 @@ -25723,8 +26013,15 @@ SELECT DISTINCT + - CAST ( + col2 AS INTEGER ) AS col2, col0 AS col0 FROM tab1 A # Datafusion - Expected - 7650 # Datafusion - Expected - 75 # Datafusion - Expected - 7650 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(90\) \* Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, 90 * ( 85 ) AS col1 FROM tab2 AS cor0 +---- +46 +64 +75 +7650 +7650 +7650 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT - col0 = + col1 @@ -26107,8 +26404,15 @@ SELECT COUNT ( * ) + MIN ( DISTINCT + 93 ) col0 FROM tab0 AS cor0 # Datafusion - Expected - -48 # Datafusion - Expected - 96 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col1 \+ Int64\(\-95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, + col1 + - 95 AS col1 FROM tab1 AS cor0 +---- +-48 +-81 +-90 +59 +68 +96 query I rowsort label-4278 SELECT - 47 * - COUNT ( * ) FROM tab0 AS cor0 @@ -26412,8 +26716,15 @@ SELECT + ( CAST ( col2 AS INTEGER ) ) * + col0 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - -77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, + col1 AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +51 +67 +77 query II rowsort SELECT col0 * + 20, col2 FROM tab2 @@ -27872,8 +28183,15 @@ SELECT col1 - - - col0 * + ( + 38 ) col0 FROM tab1 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col0, + col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT - col2 * - + col0 - - col2 * - col0 * col2 * + + col1 FROM tab0 @@ -28545,8 +28863,15 @@ SELECT + + 4 * 10 + - 7 + col0 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - 5 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col2, - col2 col2 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +14 +47 +5 query I rowsort SELECT DISTINCT - col2 AS col2 FROM tab1 cor0 WHERE NOT ( 71 / - col1 ) IS NOT NULL @@ -28624,8 +28949,11 @@ SELECT + ( - ( - + 7 ) ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -153 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "sum\(Int64\(\-51\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col2, SUM ( + - 51 ) AS col2 FROM tab0 cor0 +---- +-153 +NULL query I rowsort SELECT - 89 - - + 54 * col1 FROM tab0 AS cor0 WHERE ( col0 ) - + - col0 IS NOT NULL @@ -28867,8 +29195,10 @@ SELECT ALL COUNT ( - 91 ) FROM tab0 AS cor0 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 93928363620b31076a46a91d3524b77e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 1 and "\(\- cor0\.col2\) \* Int64\(\-47\) \+ cor0\.col0 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + - col1 col0, - col0 AS col1, - + col2 * - 47 + col0 AS col1 FROM tab1 cor0 +---- +9 values hashing to f97bfd9450374546f72e24bb5a122516 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE 15 IS NOT NULL AND NULL IS NULL @@ -28957,8 +29287,15 @@ SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + CAST ( NULL AS INTEGER # Datafusion - Expected - -134 # Datafusion - Expected - 77 # Datafusion - Expected - -154 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col1\) \+ \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col0, - col1 + - col1 col0 FROM tab2 AS cor0 +---- +-102 +-134 +-154 +51 +67 +77 query I rowsort label-4750 SELECT + SUM ( ALL - + 35 ) AS col1 FROM tab1 AS cor0 @@ -29264,8 +29601,15 @@ SELECT - 49 + + SUM ( col2 ) AS col1 FROM tab1 # Datafusion - Expected - 5015 # Datafusion - Expected - 55 # Datafusion - Expected - 6188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col0" at position 0 and "tab1\.col2 \* tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 55 AS col0, col2 * col0 AS col0 FROM tab1 +---- +4896 +5015 +55 +55 +55 +6188 query I rowsort SELECT DISTINCT 60 + - + col0 AS col1 FROM tab2 AS cor0 @@ -29405,8 +29749,10 @@ SELECT ALL + - COUNT ( + - 0 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to b59e0c57417893bacbd8bdd86d9d21eb -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 1 and "tab1\.col2 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT CAST ( NULL AS INTEGER ) col0, col2 AS col1, col2 AS col1 FROM tab1 +---- +9 values hashing to 4b8c39a78c532957043f9e2a500862e5 query I rowsort label-4823 SELECT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - ( 23 ) IS NULL @@ -29720,8 +30066,15 @@ SELECT - - MAX ( DISTINCT + - col0 ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 134 # Datafusion - Expected - 69 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-69\)\) AS col0" at position 0 and "Int64\(37\) \+ \(\- \(\- cor0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 69 AS col0, + 37 + - - col0 AS col0 FROM tab0 AS cor0 +---- +124 +134 +52 +69 +69 +69 query I rowsort label-4873 SELECT DISTINCT - MAX ( - 11 ) * - + 20 * MIN ( ALL - + col0 ) + + + 5 AS col1 FROM tab2 AS cor0 @@ -30482,8 +30835,15 @@ SELECT + CAST ( + + col1 AS INTEGER ) / + col2 AS col2 FROM tab0 cor0 # Datafusion - Expected - 47 # 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 "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 19 AS col0, col2 col0 FROM tab0 AS cor0 +---- +10 +19 +19 +19 +47 +99 query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT + col1 = + col2 * - + col1 - + 28 * + col0 * ( + col2 ) @@ -30654,8 +31014,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + - COUNT ( * ) ) AS col1, 79 AS col1 FROM tab2 +---- +3 +79 query I rowsort SELECT ALL + 44 + - + col0 FROM tab2 @@ -30872,8 +31235,15 @@ SELECT DISTINCT 26 * col0 * col2 FROM tab2 # Datafusion - Expected - -64 # Datafusion - Expected - 93 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col2" at position 0 and "\(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 93 AS col2, - col0 AS col2 FROM tab2 +---- +-46 +-64 +-75 +93 +93 +93 query I rowsort label-5058 SELECT ALL - COUNT ( * ) col2 FROM tab1 WHERE NOT - - col2 >= 63 @@ -32003,8 +32373,15 @@ SELECT + + CAST ( - - col1 AS INTEGER ) - + col2 FROM tab0 cor0 # Datafusion - Expected - 77 # Datafusion - Expected - 96 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \- tab0\.col1 AS col2" at position 0 and "tab0\.col0 \+ \(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 - + col1 AS col2, + col0 + - col2 AS col2 FROM tab0 +---- +-2 +-32 +-66 +66 +77 +96 query I rowsort SELECT col1 * - 95 + - 92 col2 FROM tab2 AS cor0 @@ -32461,8 +32838,15 @@ SELECT DISTINCT 18 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - -47 # Datafusion - Expected - 99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab0\.col2 AS Int32\) AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( col2 AS INTEGER ) AS col0, - col2 AS col0 FROM tab0 +---- +-10 +-47 +-99 +10 +47 +99 query I rowsort SELECT ALL - col1 AS col2 FROM tab1 AS cor0 WHERE ( + col1 ) NOT BETWEEN ( NULL ) AND NULL @@ -32548,8 +32932,15 @@ NULL # Datafusion - Expected - 870 # Datafusion - Expected - 81 # Datafusion - Expected - 705 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col2 \* tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, + col2 * col0 AS col2 FROM tab0 +---- +1 +21 +705 +81 +870 +9603 query I rowsort SELECT DISTINCT - col2 * + ( + col2 ) FROM tab0 @@ -33659,8 +34050,15 @@ SELECT ALL * FROM tab0 WHERE - 78 < NULL # Datafusion - Expected - NULL # Datafusion - Expected - -19 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col2" at position 0 and "\(\- \(\- tab2\.col2\)\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 19 AS col2, + ( - - col2 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 +---- +-19 +-19 +-19 +NULL +NULL +NULL query I rowsort label-5515 SELECT ALL - 75 / + CAST ( NULL AS INTEGER ) FROM tab0 @@ -35284,8 +35682,15 @@ SELECT * FROM tab1 WHERE NOT 31 <= - 29 # Datafusion - Expected - -7548 # Datafusion - Expected - 97 # Datafusion - Expected - -9408 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col1 \+ tab0\.col0 \* \(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, + col1 + col0 * - col0 AS col2 FROM tab0 +---- +-144 +-7548 +-9408 +15 +87 +97 query II rowsort label-5789 SELECT col0, ( - - CAST ( NULL AS INTEGER ) ) FROM tab1 @@ -35471,8 +35876,15 @@ NULL # Datafusion - Expected - -5 # Datafusion - Expected - -98 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col2" at position 0 and "cor0\.col0 / Int64\(\-18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 98 AS col2, col0 / - 18 col2 FROM tab0 AS cor0 +---- +-4 +-5 +-98 +-98 +-98 +0 query I rowsort SELECT + 0 + + - col0 + ( - col1 ) FROM tab0 AS cor0 @@ -36065,8 +36477,9 @@ SELECT + - 5, col1 * - 87 AS col0 FROM tab2 AS cor0 -6699 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* \(\- tab1\.col1\) \* \(\- tab1\.col1\) \* Int64\(\-96\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * - col1 * + - col1 * + - 96 AS col1, + col0 AS col1 FROM tab1 WHERE + col1 IS NULL +---- query III rowsort SELECT * FROM tab1 WHERE NOT NULL = + col0 * col1 @@ -36274,8 +36687,10 @@ SELECT DISTINCT col0, + col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to ec8f5be48c6720115e2ce6e023b40032 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col0, col0 AS col0, + - 80 FROM tab0 +---- +9 values hashing to 6c65dc4fd0d3464352d18ccb9c35814a query II rowsort label-5948 SELECT ALL col1 * 38 / ( - col1 ) AS col1, - col0 FROM tab1 @@ -36362,8 +36777,10 @@ SELECT DISTINCT + 32 + + col0 col2, + 75 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a6ca832d11b4a9648f741a0003155997 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) / \(\- cor0\.col0\) \* \(\- cor0\.col1\) \- Int64\(\-69\) \+ Int64\(\-15\) AS col0" at position 0 and "\(\- cor0\.col2\) \+ cor0\.col1 \+ Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 33 / - + col0 * + - col1 - - 69 + - 15 AS col0, - col2 + ( ( + col1 ) ) + + 11 AS col0, 38 + col0 + + - col2 FROM tab1 cor0 +---- +9 values hashing to b56af2458a5502ad864ece212b698dfb query I rowsort label-5961 SELECT SUM ( + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) AS col1 FROM tab0 AS cor0 @@ -37751,8 +38168,15 @@ SELECT 62 + - ( COUNT ( * ) ) - - 15 AS col1 FROM tab1 # Datafusion - Expected - 4 # Datafusion - Expected - -83 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col1" at position 0 and "Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 83 col1, + 4 AS col1 FROM tab0 WHERE NOT - col2 IS NULL +---- +-83 +-83 +-83 +4 +4 +4 query I rowsort label-6198 SELECT COUNT ( * ) + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 @@ -40524,8 +40948,11 @@ SELECT + + COUNT ( + 34 ) * - - 45 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col2, 61 AS col2 FROM tab2 AS cor0 +---- +3 +61 query I rowsort label-6658 SELECT ALL + COUNT ( * ) / - ( + - 57 ) FROM tab0 cor0 WHERE NULL IS NULL @@ -40768,8 +41195,10 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to 9d2568768d0ed0111ecb43e66ff65e43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 10 col1, - CAST ( NULL AS INTEGER ) / 5 AS col1 FROM tab2, tab1 cor0 +---- +18 values hashing to 3b16bc3afd5bba799b3e7492361a7947 query I rowsort SELECT ALL + col2 + + 82 * - col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL @@ -40944,8 +41373,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 14 AS col2, - COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +-14 +-3 query III rowsort label-6730 SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + + col0 + + CAST ( - col1 AS INTEGER ) IS NOT NULL @@ -40962,8 +41394,15 @@ SELECT DISTINCT 92 AS col0 FROM tab2 AS cor0 WHERE NOT NULL < 67 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, col2 FROM tab2 cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-6733 SELECT ALL + SUM ( DISTINCT - + col2 ) AS col0 FROM tab1 AS cor0 @@ -41326,8 +41765,15 @@ SELECT 15 * 16 AS col2 FROM tab0 # Datafusion - Expected - -31 # Datafusion - Expected - 96 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "Int64\(\-31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, - 31 AS col1 FROM tab1 +---- +-31 +-31 +-31 +59 +68 +96 query I rowsort label-6795 SELECT - MIN ( DISTINCT - + col0 ) * + - 78 AS col1 FROM tab0 cor0 @@ -43619,8 +44065,15 @@ SELECT DISTINCT col2 + + 69 / - ( + ( col2 ) ) AS col1 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col1" at position 0 and "cor0\.col2 \* cor0\.col2 \- CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col2 col1, col2 * col2 - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 +---- +10 +47 +99 +NULL +NULL +NULL query I rowsort label-7166 SELECT + ( + MAX ( + CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab0 AS cor0 @@ -45211,8 +45664,15 @@ SELECT - 3 * 73 FROM tab0 AS cor0 WHERE NOT - 39 IS NULL # Datafusion - Expected - 58 # Datafusion - Expected - -77 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 col1, col2 AS col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +23 +40 +58 query I rowsort SELECT 44 * - - col0 FROM tab2 cor0 @@ -45307,8 +45767,15 @@ SELECT DISTINCT - ( - 25 ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col2, + col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -45409,8 +45876,15 @@ SELECT + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 # Datafusion - Expected - -68 # Datafusion - Expected - 91 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 0 and "Int64\(0\) \+ \(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 91 AS col1, 0 + - col2 AS col1 FROM tab1 +---- +-59 +-68 +-96 +91 +91 +91 query I rowsort label-7460 SELECT DISTINCT - COUNT ( ALL - + ( + col0 ) ) FROM tab2 @@ -45743,8 +46217,9 @@ query error DataFusion error: Schema error: Schema contains qualified field name SELECT DISTINCT - 47 AS col1, col1 FROM tab0 cor0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "cor0\.col1 \* \(\- cor0\.col0\) \+ Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 AS col2, col1 * - col0 + + 83 AS col2 FROM tab1 AS cor0 WHERE NOT col0 * col1 * - + col2 IS NOT NULL +---- query I rowsort label-7516 SELECT + - ( CAST ( 89 AS INTEGER ) ) AS col0 FROM tab2 cor0 @@ -45884,8 +46359,15 @@ NULL # Datafusion - Expected - -64 # Datafusion - Expected - 91 # Datafusion - Expected - -115 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "\(\- tab1\.col1\) \+ \(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, - col1 + - + col2 AS col1 FROM tab1 +---- +-110 +-115 +-64 +51 +85 +91 query I rowsort SELECT 37 + + 11 AS col0 FROM tab0, tab2 AS cor0 @@ -45988,8 +46470,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 30 AS col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +-3 +-30 query I rowsort SELECT ALL + col2 + + 41 + 20 AS col1 FROM tab1 AS cor0 @@ -46075,8 +46560,15 @@ SELECT MAX ( + 16 ) + - + MIN ( + col2 ) FROM tab1 # Datafusion - Expected - -40 # Datafusion - Expected - NULL # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(81\) AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) + + 81 AS col1, - col2 AS col1 FROM tab2 +---- +-23 +-40 +-58 +NULL +NULL +NULL query II rowsort SELECT ALL - col1 + + + ( + + col0 ) AS col0, - 78 FROM tab1 @@ -46350,8 +46842,11 @@ SELECT ALL * FROM tab2 WHERE NOT + 92 * ( + + 81 ) <= + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-92\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MIN ( + - 92 ) AS col2, COUNT ( * ) AS col2 FROM tab2 +---- +-92 +3 query I rowsort label-7610 SELECT + 41 + - - MAX ( ALL - col0 ) FROM tab2 AS cor0 @@ -46522,8 +47017,11 @@ SELECT - - 63 * - + col0 + - col2 AS col0, col1 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(78\) \+ count\(cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, 78 + COUNT ( col1 ) AS col1 FROM tab0 AS cor0 +---- +81 +NULL query I rowsort SELECT 0 * col0 * - + ( - - 32 ) FROM tab0 cor0 WHERE ( col0 + + - col0 ) NOT BETWEEN ( col2 ) AND col1 + + col0 @@ -47525,8 +48023,15 @@ SELECT MIN ( DISTINCT + col1 ) * + 54 * + + 94 FROM tab2 # Datafusion - Expected - 77 # Datafusion - Expected - 97 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, + 77 AS col1 FROM tab0 +---- +15 +77 +77 +77 +87 +97 query II rowsort label-7801 SELECT DISTINCT 52 AS col0, + col1 / + - col1 FROM tab2 @@ -47640,8 +48145,15 @@ SELECT + col0 col0 FROM tab1 WHERE + 68 IS NULL # Datafusion - Expected - 7 # Datafusion - Expected - 97 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 col2, ( + 7 ) AS col2 FROM tab0 +---- +15 +7 +7 +7 +87 +97 query III rowsort SELECT * FROM tab2 WHERE + 66 IS NOT NULL @@ -48831,8 +49343,15 @@ SELECT ALL col1, ( col2 ) AS col1 FROM tab2 # Datafusion - Expected - -47 # Datafusion - Expected - 74 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "\(\- tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 74 AS col2, - col1 AS col2 FROM tab1 +---- +-14 +-47 +-5 +74 +74 +74 query I rowsort SELECT + 10 * + - col1 * - + col0 FROM tab1 @@ -49112,8 +49631,15 @@ SELECT DISTINCT + ( + - 83 ) col0 FROM tab1 AS cor0 # Datafusion - Expected - 1403 # Datafusion - Expected - 4 # Datafusion - Expected - 976 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ Int64\(\-64\) AS col0" at position 0 and "tab1\.col2 \* Int64\(15\) \+ \(\- tab1\.col0\) \+ tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 + - 64 AS col0, + col2 * 15 + + - col0 + + col1 AS col0 FROM tab1 +---- +-5 +1403 +32 +4 +805 +976 query III rowsort SELECT * FROM tab2 WHERE ( NOT col0 IS NOT NULL ) @@ -49630,8 +50156,15 @@ SELECT * FROM tab0 WHERE NOT - col2 - col2 * + col1 IS NULL # Datafusion - Expected - -2204 # Datafusion - Expected - NULL # Datafusion - Expected - -874 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 / CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(38\) \* \(\- tab2\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 / CAST ( NULL AS INTEGER ) col2, + 38 * - col2 AS col2 FROM tab2 +---- +-1520 +-2204 +-874 +NULL +NULL +NULL query I rowsort SELECT ALL + col0 * - 34 AS col1 FROM tab1 @@ -49842,8 +50375,15 @@ SELECT DISTINCT - col1 AS col2, 39 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 22 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 22 AS col2, + col0 AS col2 FROM tab0 +---- +15 +22 +22 +22 +87 +97 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT + - 97 + + 86 / - col1 * col0 IS NULL @@ -50166,8 +50706,11 @@ SELECT * FROM tab2 WHERE NOT + 15 + - + col0 + + col0 * + + 71 BETWEEN - col1 AN # 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 "Int64\(26\) \* \(\- min\(Int64\(\-77\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 AS col1, 26 * - + ( + MIN ( - 77 ) ) AS col1 FROM tab1 WHERE NOT - col0 IS NOT NULL +---- +-92 +NULL query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT col1 / - + 34 * col2 > NULL @@ -51136,8 +51679,9 @@ SELECT ALL SUM ( + col0 ) AS col0 FROM tab0 AS cor0 199 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 col0, + col1 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL +---- query II rowsort label-8403 SELECT ALL - ( - - COUNT ( * ) ) AS col0, + 41 AS col1 FROM tab2 AS cor0 @@ -51669,8 +52213,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ), COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL +---- +3 +3 query I rowsort label-8488 SELECT - CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 @@ -51819,8 +52366,15 @@ SELECT DISTINCT - 13 * - + col0 * + col1 AS col2 FROM tab2 # Datafusion - Expected - -115 # Datafusion - Expected - -95 # Datafusion - Expected - -110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \+ Int64\(1\) AS col2" at position 0 and "\(\- tab1\.col1\) \+ \(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 + + 1 AS col2, - col1 + - col2 AS col2 FROM tab1 +---- +-110 +-115 +-58 +-64 +-67 +-95 query III rowsort SELECT * FROM tab2 cor0 WHERE + col2 IN ( - col2 + + col0, col0 ) @@ -53008,8 +53562,15 @@ SELECT + 98 * + col1 FROM tab1 AS cor0 # Datafusion - Expected - -10 # Datafusion - Expected - 97 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col1, - col2 AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +15 +87 +97 query I rowsort label-8695 SELECT + COUNT ( - - 70 ) AS col0 FROM tab1 AS cor0 @@ -54006,8 +54567,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 91 AS col1, - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE 66 IS NOT NULL +---- +-3 +-91 query I rowsort label-8865 SELECT MIN ( ALL ( col0 ) ) FROM tab0 AS cor0 @@ -54065,8 +54629,15 @@ SELECT DISTINCT + col1 + col0 AS col0 FROM tab1 cor0 WHERE NOT 86 + + col0 IS NO # Datafusion - Expected - 77 # Datafusion - Expected - 164 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- Int64\(\-89\)\)\)\) \- \(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - ( - - 89 ) - + - col0 AS col0, + col1 AS col0 FROM tab2 AS cor0 +---- +135 +153 +164 +51 +67 +77 query II rowsort SELECT DISTINCT - ( - 99 ) - + col2, col0 col2 FROM tab1 cor0 @@ -54274,8 +54845,15 @@ SELECT + ( + MAX ( ALL + col2 ) ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -26 # Datafusion - Expected - -77 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col2" at position 0 and "Int64\(\-26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col2, - 26 AS col2 FROM tab2 +---- +-26 +-26 +-26 +-51 +-67 +-77 query I rowsort label-8907 SELECT DISTINCT CAST ( + ( - ( col2 ) ) AS INTEGER ) AS col1 FROM tab1 @@ -55109,8 +55687,15 @@ SELECT - MIN ( + 57 ) AS col0 FROM tab1 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - -35 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 35 col0, col1 AS col0 FROM tab1 AS cor0 +---- +-35 +-35 +-35 +14 +47 +5 query II rowsort SELECT col1, - 64 * - col2 FROM tab2 AS cor0 @@ -55331,8 +55916,10 @@ SELECT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN + 69 + + col0 AND + col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 530f7d2d74505fd5cc0b91db1c47ded8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(72\) \+ \(\- cor0\.col1\) \+ \(\- cor0\.col2\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - CAST ( NULL AS INTEGER ) * + - col2 AS col1, - col0, + + 72 + - col1 + - col2 AS col1 FROM tab2 AS cor0 +---- +9 values hashing to 43f8b762f2e301b37093bec50280c413 query II rowsort SELECT + col0, - col0 col2 FROM tab0 @@ -55881,8 +56468,15 @@ SELECT - ( + 74 ) AS col1 FROM tab2 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, col0 FROM tab1 cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-9164 SELECT + MAX ( + - 72 ) AS col2 FROM tab0 AS cor0 @@ -56294,8 +56888,15 @@ SELECT col2 - 15 FROM tab1 AS cor0 # Datafusion - Expected - -4504 # Datafusion - Expected - -89 # Datafusion - Expected - -5285 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(89\)\) AS col2" at position 0 and "cor0\.col0 \+ Int64\(40\) \- cor0\.col0 \* Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 89 AS col2, col0 + + 40 - col0 * 72 AS col2 FROM tab2 AS cor0 +---- +-3226 +-4504 +-5285 +-89 +-89 +-89 query I rowsort label-9236 SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE + ( - - ( + col2 ) ) IS NOT NULL @@ -57450,8 +58051,9 @@ SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 47 - col0 * - col ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* tab1\.col1 AS col1" at position 0 and "tab1\.col0 \+ tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 * col1 AS col1, col0 + col0 AS col1 FROM tab1 WHERE NOT NULL IS NULL +---- query III rowsort SELECT DISTINCT * FROM tab2 WHERE 45 IS NOT NULL @@ -57513,8 +58115,11 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 * - - col1 AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(81\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) + 81 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL +---- +0 +81 query I rowsort SELECT DISTINCT 71 + col0 AS col1 FROM tab0 AS cor0 @@ -58539,8 +59144,15 @@ SELECT ALL - + CAST ( col2 AS INTEGER ) * + 80 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 28 # Datafusion - Expected - NULL # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(cor0\.col0 AS Int32\)\) \* cor0\.col1 \+ Int64\(31\) \- CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( + col0 AS INTEGER ) * + col1 + + ( 31 ) - CAST ( NULL AS INTEGER ) AS col1, 28 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL +---- +28 +28 +28 +NULL +NULL +NULL query III rowsort label-9597 SELECT ALL * FROM tab1 cor0 WHERE NOT + 80 + + CAST ( ( + col0 ) AS INTEGER ) * + + col1 > NULL @@ -59716,8 +60328,15 @@ SELECT - col0 / ( col1 ) + - - col2 col2 FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - 6 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ Int64\(92\) / tab1\.col0 AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 + 92 / col0 AS col0, + 40 AS col0 FROM tab1 +---- +15 +40 +40 +40 +48 +6 query I rowsort SELECT - - col2 AS col2 FROM tab2 WHERE + 49 < - - 30 @@ -60083,8 +60702,15 @@ SELECT DISTINCT + 22 AS col2, + col0 * col0 FROM tab2 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - -56 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 56 AS col1, - col0 AS col1 FROM tab1 cor0 +---- +-51 +-56 +-56 +-56 +-85 +-91 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * + col1 - + + col0 - + ( - col1 ) * + col2 IS NOT NULL OR + + col2 NOT IN ( + - 87, + col1 ) @@ -60140,8 +60766,15 @@ SELECT ALL + - col1 * + col2 col0 FROM tab0 AS cor0 # Datafusion - Expected - -15 # Datafusion - Expected - -9801 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * - col2 AS col0, - col0 AS col0 FROM tab0 AS cor0 +---- +-100 +-15 +-2209 +-87 +-97 +-9801 query I rowsort label-9857 SELECT - 25 * - + COUNT ( * ) AS col2 FROM tab0 AS cor0 @@ -60244,8 +60877,11 @@ 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\(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\. +query II valuesort SELECT ALL - + ( COUNT ( * ) ) AS col2, COUNT ( ALL - col1 ) / + - COUNT ( ALL - col0 ) AS col2 FROM tab0 AS cor0 +---- +-1 +-3 query I rowsort label-9873 SELECT ALL - ( + CAST ( - 29 AS INTEGER ) ) FROM tab2 AS cor0 @@ -60256,8 +60892,10 @@ SELECT ALL - ( + CAST ( - 29 AS INTEGER ) ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 8ebbaa74e664d20c3a2272cbd927b619 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 1 and "cor0\.col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col0, + col0 AS col0, + col0 FROM tab2 cor0 +---- +9 values hashing to 58b077cc9648dca23d3a372d1cd4aa15 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 @@ -60266,8 +60904,15 @@ SELECT - col0, + col0 AS col0, + col0 FROM tab2 cor0 # Datafusion - Expected - -15 # Datafusion - Expected - -99 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, - col0 AS col0 FROM tab0 AS cor0 +---- +-10 +-15 +-47 +-87 +-97 +-99 query I rowsort label-9876 SELECT ALL col0 * - - ( + - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 @@ -60533,8 +61178,15 @@ SELECT ALL - col2 * + + 3 FROM tab1 # Datafusion - Expected - -275 # Datafusion - Expected - 5 # Datafusion - Expected - -770 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col0" at position 0 and "tab1\.col1 \* Int64\(\-55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 5 AS col0, + col1 * - 55 AS col0 FROM tab1 +---- +-2585 +-275 +-770 +5 +5 +5 query I rowsort SELECT + 34 * - + col0 FROM tab2 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_92.slt b/data/sqlite/random/aggregates/slt_good_92.slt index f8c2996..80aba46 100644 --- a/data/sqlite/random/aggregates/slt_good_92.slt +++ b/data/sqlite/random/aggregates/slt_good_92.slt @@ -38,8 +38,9 @@ statement ok INSERT INTO tab2 VALUES(46,51,23) # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col2 \* \(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, + col2 * - col2 AS col1 FROM tab1 WHERE ( NOT NULL IS NULL ) +---- query I rowsort SELECT + + col0 AS col2 FROM tab2 WHERE NOT + 8 + 26 IS NOT NULL @@ -363,8 +364,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * + 35 * - COUNT ( * ) AS col1, 38 AS col1 FROM tab0 +---- +-315 +38 query II rowsort SELECT col1 + - col0, + col0 AS col1 FROM tab2 @@ -1393,8 +1397,15 @@ SELECT DISTINCT - col2 * + col0 * col2 AS col2 FROM tab1 # Datafusion - Expected - -1 # Datafusion - Expected - 55 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col1" at position 0 and "tab2\.col1 / \(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 55 AS col1, col1 / - col2 AS col1 FROM tab2 +---- +-1 +-1 +-2 +55 +55 +55 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1655 @@ -4339,8 +4350,11 @@ SELECT - ( - col2 ) * - col0 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 2460 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(40\)\) AS col2" at position 0 and "Int64\(20\) \* sum\(Int64\(41\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + MAX ( ALL 40 ) AS col2, 20 * SUM ( ALL + 41 ) AS col2 FROM tab2 AS cor0 +---- +2460 +40 query I rowsort SELECT ALL + col2 / + 73 - col0 AS col0 FROM tab0 cor0 WHERE NOT ( NOT ( NULL NOT BETWEEN + col1 AND - col0 ) ) @@ -5011,8 +5025,15 @@ SELECT ALL + MIN ( 60 ) FROM tab1 AS cor0 # Datafusion - Expected - 96 # Datafusion - Expected - -79 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \- Int64\(32\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 - 32 AS col1, col2 AS col1 FROM tab1 AS cor0 +---- +-37 +-46 +-79 +59 +68 +96 query I rowsort label-815 SELECT - SUM ( - - col1 ) col2 FROM tab0 @@ -5267,8 +5288,15 @@ SELECT - - 46 * col1 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - 5 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col0, - col2 AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +14 +47 +5 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 BETWEEN NULL AND NULL @@ -6469,8 +6497,15 @@ SELECT - SUM ( DISTINCT - col0 ) AS col2 FROM tab0 cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, - col1 AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +14 +47 +5 query I rowsort label-1045 SELECT ALL + - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 WHERE + ( col1 ) IS NOT NULL @@ -8216,8 +8251,11 @@ SELECT * FROM tab2 AS cor0 WHERE NOT col2 * col0 < ( 7 + + ( - 48 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(tab2\.col2\) AS col1" at position 0 and "max\(tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MAX ( ALL col2 ) AS col1, ( + MAX ( + col1 ) ) AS col1 FROM tab2 +---- +58 +77 query II rowsort label-1345 SELECT 11 * COUNT ( * ) / - + MAX ( - 84 ) AS col2, CAST ( - 70 AS INTEGER ) FROM tab1 @@ -8592,8 +8630,15 @@ SELECT - + col1 * + + col0 + - col0 / col2 * + + col0 + + - ( col2 ) + - 10, - c # Datafusion - Expected - -4284 # Datafusion - Expected - 93 # Datafusion - Expected - -6048 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "Int64\(\-63\) \* tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 93 AS col1, - 63 * col2 AS col1 FROM tab1 +---- +-3717 +-4284 +-6048 +93 +93 +93 query I rowsort SELECT 43 * - 13 * 10 + - + ( - + 67 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 @@ -8825,8 +8870,15 @@ SELECT DISTINCT + col1 * col2, ( - - 99 ) + + CAST ( NULL AS FLOAT8 ) + - col0 F # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, + col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-1441 SELECT MAX ( ALL 42 ) AS col2 FROM tab0 AS cor0 @@ -10305,8 +10357,15 @@ SELECT + ( - + ( + - col0 ) ) FROM tab0 AS cor0 # Datafusion - Expected - 63 # Datafusion - Expected - 77 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- cor0\.col1\) AS Int32\)\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( - col1 AS INTEGER ) AS col2, 63 col2 FROM tab2 AS cor0 +---- +51 +63 +63 +63 +67 +77 query I rowsort SELECT DISTINCT + + ( + col1 ) * + col1 - col1 AS col2 FROM tab0 cor0 @@ -11788,8 +11847,15 @@ SELECT + MIN ( ALL + - col1 ) AS col2 FROM tab1 WHERE - col2 IS NOT NULL # Datafusion - Expected - 37 # Datafusion - Expected - 5 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, + ( 37 ) AS col2 FROM tab1 +---- +14 +37 +37 +37 +47 +5 query I rowsort label-1930 SELECT - SUM ( + - col0 ) FROM tab0 WHERE + col0 * 71 + + 98 + - 28 / + col0 IS NOT NULL @@ -13188,8 +13254,15 @@ SELECT - col2 + - 70 FROM tab2 AS cor0 # Datafusion - Expected - -133 # Datafusion - Expected - 96 # Datafusion - Expected - -128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col2\) \- Int64\(18\) \+ \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, - col2 - + 18 + - col1 col0 FROM tab1 AS cor0 +---- +-128 +-133 +-82 +59 +68 +96 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -13208,8 +13281,15 @@ NULL # Datafusion - Expected - -87 # Datafusion - Expected - 111 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ Int64\(42\) AS col0" at position 0 and "\(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 69 + 42 AS col0, - col0 AS col0 FROM tab0 +---- +-15 +-87 +-97 +111 +111 +111 query II rowsort SELECT col2, + col2 * + 46 FROM tab2 @@ -14075,8 +14155,15 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - -4512 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* Int64\(\-47\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * - 47 AS col2, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 +---- +-2773 +-3196 +-4512 +NULL +NULL +NULL query II rowsort label-2313 SELECT DISTINCT col2 / 85, + col0 AS col0 FROM tab1 @@ -16001,8 +16088,15 @@ SELECT + col1 - - col2 FROM tab1 cor0 # Datafusion - Expected - -53 # Datafusion - Expected - -223 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \- \(\- \(\- CAST\(cor0\.col2 AS Int32\)\)\) \+ Int64\(\-66\) AS col0" at position 0 and "cor0\.col0 \+ \(\- cor0\.col2\) \+ \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 99 - - - CAST ( col2 AS INTEGER ) + - 66 AS col0, col0 + - col2 + - col1 AS col0 FROM tab2 AS cor0 +---- +-188 +-205 +-223 +-28 +-50 +-53 query I rowsort SELECT + + col0 FROM tab2 WHERE - col0 <> col2 @@ -17709,8 +17803,15 @@ SELECT 53 + - col1 FROM tab2 # Datafusion - Expected - 96 # Datafusion - Expected - -96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + - col2 ) AS col0, 96 AS col0 FROM tab1 +---- +-59 +-68 +-96 +96 +96 +96 query I rowsort label-2913 SELECT - SUM ( - + 79 ) + 11 col0 FROM tab1 @@ -18286,8 +18387,15 @@ SELECT col2 + - - 8 + col1 AS col2 FROM tab1 # Datafusion - Expected - 89 # Datafusion - Expected - 79 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 AS col2, + 89 col2 FROM tab2 +---- +79 +79 +79 +89 +89 +89 query I rowsort SELECT DISTINCT col0 FROM tab1 WHERE NOT col1 <= NULL @@ -18437,8 +18545,15 @@ SELECT ALL - col1 FROM tab1 WHERE + col1 NOT BETWEEN + col2 AND ( + col1 ) # Datafusion - Expected - 82 # Datafusion - Expected - 36 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \+ cor0\.col2 AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 22 + + col2 AS col2, ( 82 ) AS col2 FROM tab2 cor0 +---- +1 +18 +36 +82 +82 +82 query I rowsort SELECT - + col0 * - - 7 + + 97 FROM tab2 cor0 WHERE + col0 * + col1 + col2 <= col1 @@ -18462,8 +18577,15 @@ SELECT ALL 42 * - 33 + + col2 FROM tab0 AS cor0 # Datafusion - Expected - 69 # Datafusion - Expected - -42 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* \(\- cor0\.col1\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 * - col1 AS col1, 69 AS col1 FROM tab0 cor0 +---- +-162 +-2 +-42 +69 +69 +69 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -18816,8 +18938,11 @@ SELECT + - col0 AS col1, + ( 79 ) * - CAST ( 78 AS INTEGER ) * col1 - + - col0 F # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +3 +NULL query I rowsort SELECT DISTINCT ( + ( - col2 ) ) + - col0 AS col2 FROM tab0 @@ -19033,8 +19158,15 @@ SELECT ALL col1 AS col1 FROM tab1 WHERE ( NOT NULL IS NOT NULL ) # Datafusion - Expected - -7 # Datafusion - Expected - 83 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ tab2\.col0 \+ \(\- tab2\.col1\) AS col1" at position 0 and "Int64\(\-7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 + + col0 + + - col1 AS col1, - 7 AS col1 FROM tab2 +---- +-7 +-7 +-7 +41 +51 +83 query I rowsort label-3126 SELECT DISTINCT 69 * - + CAST ( - - col0 AS INTEGER ) + - ( 78 ) FROM tab1 @@ -19311,8 +19443,15 @@ SELECT - col2 col2, 98 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, + col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT DISTINCT + col0 * - - ( - col1 ) FROM tab0 AS cor0 @@ -19517,8 +19656,15 @@ SELECT ALL + 64 * - MAX ( ALL 84 ) + 52 + COUNT ( * ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 32 # Datafusion - Expected - -91 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-91\)\)\) AS col0" at position 0 and "Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - ( - - 91 ) AS col0, 32 AS col0 FROM tab0 cor0 +---- +-91 +-91 +-91 +32 +32 +32 query II rowsort SELECT DISTINCT + - col2, col0 * col0 FROM tab2 WHERE NOT NULL IS NULL @@ -19992,8 +20138,15 @@ SELECT ALL + col0 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 + + col1 + + col0 I # Datafusion - Expected - -77 # Datafusion - Expected - -5336 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* Int64\(92\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 * + + 92 col2, - col1 AS col2 FROM tab2 AS cor0 +---- +-2116 +-3680 +-51 +-5336 +-67 +-77 query I rowsort label-3274 SELECT COUNT ( * ) FROM tab0 WHERE + col2 BETWEEN NULL AND - + col0 * + + col2 - col0 * col1 * + + col2 * - col1 @@ -21387,8 +21540,15 @@ SELECT DISTINCT + - ( ( - 24 ) ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 99 # Datafusion - Expected - 0 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(0\) AS col0" at position 0 and "Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * + + 0 AS col0, + 99 AS col0 FROM tab0 AS cor0 +---- +0 +0 +0 +99 +99 +99 query II rowsort SELECT DISTINCT 53 AS col1, ( + - col1 ) + - + col0 FROM tab0 AS cor0 @@ -21421,8 +21581,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 74 col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +-3 +-74 query I rowsort SELECT ALL col2 AS col2 FROM tab1 cor0 WHERE ( NULL ) > ( + 58 ) @@ -21531,8 +21694,15 @@ SELECT - ( + col0 ) / + - 80 - + ( + col1 ) AS col1 FROM tab2 # Datafusion - Expected - -95 # Datafusion - Expected - 99 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "\(\- tab0\.col1\) \- \(\- Int64\(\-14\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + col2 ) AS col0, - ( + col1 ) - - - 14 AS col0 FROM tab0 +---- +-15 +-35 +-95 +10 +47 +99 query I rowsort label-3527 SELECT COUNT ( * ) - + - SUM ( + 4 ) col2 FROM tab2 @@ -22708,8 +22878,15 @@ SELECT ALL - ( + 1 ) + + - col1 FROM tab0 # Datafusion - Expected - 94 # Datafusion - Expected - -99 # Datafusion - Expected - 198 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col2 \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col2 AS col2, + col2 + col2 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +198 +20 +94 query I rowsort SELECT + col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL @@ -22734,8 +22911,15 @@ SELECT DISTINCT + 95 / + - CAST ( 86 AS INTEGER ) - col2 + - col2 * + col1 FROM # Datafusion - Expected - -87 # Datafusion - Expected - -1 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) / cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 / + col2 AS col1, - col0 col1 FROM tab0 AS cor0 +---- +-1 +-1 +-1 +-15 +-87 +-97 query I rowsort label-3722 SELECT ALL + col0 / + + col0 AS col0 FROM tab2 AS cor0 @@ -24543,8 +24727,15 @@ SELECT DISTINCT + 76 + + col0 AS col0 FROM tab0 # Datafusion - Expected - 85 # Datafusion - Expected - 99 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, + 85 col0 FROM tab0 WHERE NULL IS NULL +---- +10 +47 +85 +85 +85 +99 query I rowsort SELECT DISTINCT 13 * col2 + ( col1 ) AS col0 FROM tab0 AS cor0 @@ -25013,8 +25204,15 @@ SELECT DISTINCT col1 * + 7 + - 13 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col0, col0 AS col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-4089 SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 18 BETWEEN + 33 * col2 AND NULL @@ -25466,8 +25664,11 @@ SELECT - 79 + + + 19 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -3710 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \+ \(\- Int64\(14\)\) AS col2" at position 0 and "count\(tab2\.col0\) \* Int64\(\-26\) \* Int64\(47\) \+ Int64\(\-44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 + - + 14 AS col2, COUNT ( ALL + col0 ) * + - 26 * 47 + - 44 AS col2 FROM tab2 +---- +-3710 +73 query I rowsort label-4167 SELECT MAX ( DISTINCT + + 43 ) * + MAX ( 46 ) + 79 FROM tab2 @@ -25573,8 +25774,9 @@ SELECT ALL SUM ( - + ( 54 ) ) AS col1 FROM tab0 -162 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col2" at position 0 and "tab2\.col2 \+ Int64\(89\) \+ Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 24 AS col2, col2 + 89 + - 12 AS col2 FROM tab2 WHERE + + 24 <= NULL +---- query I rowsort label-4185 SELECT DISTINCT COUNT ( - 0 ) FROM tab1 @@ -26034,8 +26236,15 @@ SELECT ALL + col0 * col2 * + + col2 FROM tab2 # Datafusion - Expected - 41 # Datafusion - Expected - 96 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, + 41 AS col0 FROM tab1 +---- +41 +41 +41 +59 +68 +96 query I rowsort label-4260 SELECT DISTINCT 69 * + - col0 * - col1 / + + col1 AS col0 FROM tab1 @@ -27021,8 +27230,15 @@ SELECT DISTINCT + 89 AS col0, - col0 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -8500864 # Datafusion - Expected - -75 # Datafusion - Expected - -15551846 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col0 / \(\- \(\- cor0\.col1\)\) \- cor0\.col0 \+ cor0\.col2 \* Int64\(69\) \* \(\- cor0\.col2\) \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, col0 / - ( + - col1 ) - + col0 + + col2 * + + 69 * - col2 * col1 AS col2 FROM tab2 AS cor0 +---- +-15551846 +-1861597 +-46 +-64 +-75 +-8500864 query II rowsort SELECT - + col1 * - - col1 + + col2 - + col1 AS col0, col1 + - col1 + + + 49 col1 FROM tab0 AS cor0 @@ -27590,8 +27806,15 @@ SELECT ALL - col2 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL # Datafusion - Expected - -87 # Datafusion - Expected - -97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\)" at position 0 and "\(\- tab0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + col0 ), - col0 FROM tab0 +---- +-15 +-15 +-87 +-87 +-97 +-97 query I rowsort SELECT ALL - + col1 FROM tab2 WHERE NOT - col2 BETWEEN + 11 AND - + col0 @@ -27815,8 +28038,15 @@ NULL # Datafusion - Expected - 68 # Datafusion - Expected - 36 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 36 AS col1, col2 AS col1 FROM tab1 AS cor0 +---- +36 +36 +36 +59 +68 +96 query I rowsort SELECT - 44 FROM tab2 AS cor0 WHERE NULL IS NULL @@ -28616,8 +28846,11 @@ SELECT + 92 AS col1, col1 AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 199 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(tab0\.col0\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( + col0 ) AS col2, COUNT ( * ) AS col2 FROM tab0 +---- +199 +3 query II rowsort SELECT col0 * + + 88 + - 35 col0, - 31 FROM tab2 WHERE NOT + col0 < + col0 @@ -29287,8 +29520,15 @@ SELECT * FROM tab1 WHERE + + col1 + + - 25 <> ( col2 - 36 * + col1 ) # Datafusion - Expected - 64 # Datafusion - Expected - 43 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) \+ Int64\(58\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 15 + 58 AS col1, col0 AS col1 FROM tab2 +---- +43 +43 +43 +46 +64 +75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3481 @@ -29297,8 +29537,15 @@ SELECT ALL - 15 + 58 AS col1, col0 AS col1 FROM tab2 # Datafusion - Expected - 24 # Datafusion - Expected - -9216 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* \(\- tab1\.col2\) AS col2" at position 0 and "Int64\(71\) \+ \(\- CAST\(tab1\.col1 AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * - col2 AS col2, 71 + - + CAST ( col1 AS INTEGER ) AS col2 FROM tab1 +---- +-3481 +-4624 +-9216 +24 +57 +66 query I rowsort SELECT ALL col1 - - 32 FROM tab2 AS cor0 @@ -29433,8 +29680,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) col1, + COUNT ( * ) + - COUNT ( * ) / + MIN ( col2 ) AS col1 FROM tab2 AS cor0 +---- +-3 +3 query I rowsort SELECT - 28 col0 FROM tab2 @@ -29780,8 +30030,10 @@ SELECT col0 - 32 col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to eabf339375b5a0fb308f3885251decf1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \- tab0\.col0 AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 88 - + col0 col2, + 94 col2, 90 AS col2 FROM tab0 +---- +9 values hashing to 15309479d7936898b34ab10a65a904ba query I rowsort label-4882 SELECT 97 + COUNT ( * ) FROM tab1 @@ -30024,8 +30276,15 @@ SELECT col0, - 68 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, col2 col0 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-4921 SELECT ALL + 48 * + COUNT ( ALL col1 ) + 23 FROM tab0 cor0 WHERE NOT 58 + - 66 + + + CAST ( NULL AS INTEGER ) IS NULL @@ -30086,8 +30345,15 @@ SELECT DISTINCT - 59 * 63 * col1 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT + col0 * + 95 FROM tab1 @@ -30125,8 +30391,15 @@ SELECT DISTINCT + COUNT ( * ) * 24 FROM tab0 # Datafusion - Expected - 75 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col0 AS col1, 75 AS col1 FROM tab2 AS cor0 +---- +46 +64 +75 +75 +75 +75 query II rowsort SELECT col2, + 64 AS col0 FROM tab0 AS cor0 @@ -30220,8 +30493,9 @@ SELECT DISTINCT CAST ( + - col0 AS INTEGER ) FROM tab1 AS cor0 -91 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 \+ \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col2, col0 + - + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = NULL +---- query III rowsort SELECT * FROM tab0 WHERE + col0 IN ( - col2 ) @@ -30864,8 +31138,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-4\) / \(\- count\(DISTINCT \(\- Int64\(58\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - SUM ( DISTINCT col1 ) AS col1, - COUNT ( * ) * - 4 / + - COUNT ( DISTINCT - + 58 ) col1 FROM tab2 AS cor0 +---- +-12 +-195 query I rowsort label-5056 SELECT + 62 / + 34 + col1 + col0 + col0 * + - col2 AS col2 FROM tab1 AS cor0 @@ -30934,8 +31211,15 @@ SELECT + + col1 * + col2 + + + 78 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, + ( col0 ) FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT + 25 - + - 81 AS col2 FROM tab0 @@ -32661,8 +32945,15 @@ SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL # Datafusion - Expected - 1679 # Datafusion - Expected - 72600 # Datafusion - Expected - 2920 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* cor0\.col2 \* Int64\(33\) AS col0" at position 0 and "cor0\.col2 \* Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 * col2 * 33 AS col0, col2 * + 73 col0 FROM tab2 cor0 WHERE NULL IS NULL +---- +105270 +1679 +2920 +41745 +4234 +72600 query I rowsort label-5345 SELECT ALL + CAST ( NULL AS INTEGER ) * + + col0 AS col2 FROM tab1 AS cor0 @@ -33686,8 +33977,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MAX ( col2 ) AS col2, - COUNT ( * ) AS col2 FROM tab1 +---- +-3 +-96 query I rowsort label-5507 SELECT - - COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 @@ -34071,8 +34365,15 @@ SELECT DISTINCT ( + ( + + col1 ) ), - col2 FROM tab0 AS cor0 # Datafusion - Expected - -25 # Datafusion - Expected - 7253 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ \(\- tab2\.col1\) \* Int64\(\-94\) \+ \(\- tab2\.col0\) AS col0" at position 0 and "Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 79 + - col1 * + - 94 + - col0 AS col0, - 25 col0 FROM tab2 +---- +-25 +-25 +-25 +4827 +6302 +7253 query I rowsort SELECT col0 * col1 - + + 0 FROM tab1 @@ -35668,8 +35969,11 @@ SELECT + - 35 * CAST ( 70 AS INTEGER ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 co # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(CAST\(NULL AS Int32\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( CAST ( NULL AS INTEGER ) ) AS col2, COUNT ( * ) col2 FROM tab0 +---- +3 +NULL query I rowsort SELECT + - col0 * ( col2 ) col1 FROM tab2 AS cor0 @@ -37083,8 +37387,15 @@ NULL # Datafusion - Expected - -13 # Datafusion - Expected - 77 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "Int64\(\-13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col0, - 13 col0 FROM tab2 +---- +-13 +-13 +-13 +51 +67 +77 query III rowsort SELECT ALL * FROM tab0 WHERE NOT ( NOT col2 + + + col2 + col2 / col2 IS NULL ) @@ -37462,8 +37773,13 @@ SELECT 13 * - - col0 * + - col0 AS col1 FROM tab1 # Datafusion - Expected - 67 # Datafusion - Expected - -99 # Datafusion - Expected - 156 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "\(\- Int64\(\-57\)\) \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 AS col2, - ( - 57 ) + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT 47 < + col1 - col0 / + + col1 +---- +-10 +-99 +156 +67 query I rowsort label-6132 SELECT + COUNT ( - 26 ) AS col2 FROM tab0 AS cor0 @@ -38208,8 +38524,11 @@ SELECT ALL + 47 / 84 * + + 92 + + COUNT ( * ) / + COUNT ( * ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-11\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- \(\- count\(tab1\.col0\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) - - 11 * COUNT ( * ) AS col1, - ( - COUNT ( col0 ) ) AS col1 FROM tab1 +---- +24 +3 query I rowsort SELECT DISTINCT - 16 + col1 AS col1 FROM tab1 AS cor0 @@ -38892,8 +39211,15 @@ SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col1 AND col2 # Datafusion - Expected - -47 # Datafusion - Expected - 0 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) / Int64\(\-75\) \* Int64\(93\) \* CAST\(Int64\(\-15\) AS Int32\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 35 / - 75 * + 93 * + + CAST ( - 15 AS INTEGER ) AS col0, - ( col2 ) AS col0 FROM tab0 cor0 +---- +-10 +-47 +-99 +0 +0 +0 query I rowsort SELECT ALL - ( - col2 ) * - 81 FROM tab1 @@ -39098,8 +39424,10 @@ SELECT ALL col2 + + col2, - col2 col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 456608ed453e6d3fbdddb7a32fe0998f -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* \(\- Int64\(34\)\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col1 * - + 34 col2, + col0, + 66 AS col2 FROM tab0 +---- +9 values hashing to 21aeb940bb82a3d54a7b5e58f0536773 query I rowsort SELECT DISTINCT + 15 col2 FROM tab2 @@ -39664,8 +39992,15 @@ SELECT + ( + col0 ) / + + 41 FROM tab1 AS cor0 # Datafusion - Expected - -63 # Datafusion - Expected - 81 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "Int64\(\-84\) \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 AS col0, - 84 + col1 col0 FROM tab0 AS cor0 +---- +-3 +-63 +-83 +1 +21 +81 query I rowsort SELECT ALL - col2 * + col2 - + col1 * + col2 AS col1 FROM tab0 AS cor0 @@ -39773,8 +40108,15 @@ SELECT ALL col2 AS col2, + col0 + + col0 FROM tab1 AS cor0 # Datafusion - Expected - -81 # Datafusion - Expected - 99 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, - col1 AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +10 +47 +99 query I rowsort SELECT + col1 * - + 64 + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL @@ -39897,8 +40239,11 @@ SELECT + col2, - ( + col0 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -1639 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(23\) \* Int64\(\-75\) \+ Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, 23 * - 75 + 86 AS col0 FROM tab1 +---- +-1639 +3 query II rowsort SELECT ( col1 ) AS col1, 12 FROM tab0 @@ -40021,8 +40366,15 @@ SELECT - - 2 AS col1 FROM tab1 cor0 # Datafusion - Expected - 58 # Datafusion - Expected - 79 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "Int64\(\-27\) \- \(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 79 col0, - 27 - - ( col0 ) AS col0 FROM tab1 +---- +24 +58 +64 +79 +79 +79 query I rowsort SELECT 14 * + col2 FROM tab1 @@ -41421,8 +41773,15 @@ SELECT + col0 * 91 * + col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - -21 # Datafusion - Expected - 81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "\(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col2, - col1 AS col2 FROM tab0 +---- +-1 +-21 +-81 +1 +21 +81 query II rowsort SELECT col0 AS col2, col0 * col1 AS col1 FROM tab0 AS cor0 @@ -41445,8 +41804,15 @@ SELECT ALL + col1 FROM tab2 AS cor0 WHERE NULL <> NULL # Datafusion - Expected - -1600 # Datafusion - Expected - 58 # Datafusion - Expected - -3364 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 \* \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, col2 * - col2 AS col0 FROM tab2 AS cor0 +---- +-1600 +-3364 +-529 +23 +40 +58 query II rowsort SELECT col0, + 27 FROM tab1 AS cor0 @@ -41506,8 +41872,15 @@ SELECT - col2 * + col0 AS col1, ( + + 1 ) FROM tab2 # Datafusion - Expected - 210 # Datafusion - Expected - -97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* \(\- tab0\.col0\) AS col1" at position 0 and "tab0\.col1 \* tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + - col0 AS col1, + col1 * + col2 AS col1 FROM tab0 +---- +-1215 +-1827 +-97 +210 +3807 +99 query I rowsort SELECT DISTINCT - col2 * col0 * col2 AS col2 FROM tab2 @@ -42361,8 +42734,10 @@ SELECT - col2 + + 0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 32623ccaa159383e1d6a8425edfdd7a4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + col0, - col0, + col0 col0 FROM tab1 AS cor0 +---- +9 values hashing to f1cf9d7d23b8f9471392ebd51162927f query I rowsort label-6938 SELECT DISTINCT - 70 * COUNT ( * ) AS col2 FROM tab2 cor0 @@ -42673,8 +43048,15 @@ SELECT ALL col1 AS col1 FROM tab1 WHERE NOT NULL <> NULL # Datafusion - Expected - 87 # Datafusion - Expected - -60 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 60 AS col2, + col0 AS col2 FROM tab0 +---- +-60 +-60 +-60 +15 +87 +97 query I rowsort SELECT DISTINCT + 11 + + 3 + - 82 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL @@ -43010,8 +43392,15 @@ SELECT ALL + - MIN ( + 83 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 9 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + ( 9 ) AS col0, + col2 AS col0 FROM tab2 cor0 +---- +23 +40 +58 +9 +9 +9 query I rowsort SELECT col1 + + - col1 + - ( - - 76 ) FROM tab1 WHERE NULL <> NULL @@ -43258,8 +43647,15 @@ SELECT ALL 50 * - col0 + 64 / + col1 AS col0 FROM tab0 # Datafusion - Expected - -4 # Datafusion - Expected - -75 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "Int64\(\-4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, - 4 AS col0 FROM tab2 +---- +-4 +-4 +-4 +-46 +-64 +-75 query I rowsort SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE - col1 + + col1 > + col0 * - 46 @@ -44149,8 +44545,15 @@ SELECT COUNT ( + col2 ) col2 FROM tab2 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col0, + col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 @@ -44348,8 +44751,15 @@ SELECT - 45 * + COUNT ( * ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0, + col0 AS col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN - + col1 / - col1 - col0 * - - 91 * - + col1 / - col0 * - + 7 * col1 * - + col2 AND NULL @@ -44373,8 +44783,15 @@ SELECT col0 * - ( 44 ) col0 FROM tab2 # Datafusion - Expected - -40 # Datafusion - Expected - 21 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 21 AS col1, - col2 AS col1 FROM tab2 +---- +-23 +-40 +-58 +21 +21 +21 query I rowsort SELECT DISTINCT ( + + 29 ) AS col2 FROM tab1 @@ -44541,8 +44958,15 @@ SELECT + ( + col1 ) * + col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) > ( + # Datafusion - Expected - 75 # Datafusion - Expected - -2 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / \(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 / + - col2 AS col1, + col0 AS col1 FROM tab2 AS cor0 +---- +-1 +-1 +-2 +46 +64 +75 query I rowsort label-7298 SELECT SUM ( DISTINCT + - 54 ) FROM tab2 AS cor0 @@ -45076,8 +45500,15 @@ SELECT + 26 col2, col2 AS col1 FROM tab1 # Datafusion - Expected - 65 # Datafusion - Expected - 0 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-14\)\) AS Int32\) / tab2\.col1 AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - - 14 AS INTEGER ) / + col1 AS col2, + 65 AS col2 FROM tab2 +---- +0 +0 +0 +65 +65 +65 query II rowsort label-7379 SELECT - 70, COUNT ( * ) col2 FROM tab1 AS cor0 @@ -46486,8 +46917,15 @@ SELECT DISTINCT col0, col0 * + col2 * col1 + 33 + + col1 * - col2 FROM tab2 AS c # Datafusion - Expected - 47 # Datafusion - Expected - 79 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 79 AS col0, + col1 AS col0 FROM tab1 AS cor0 +---- +14 +47 +5 +79 +79 +79 query II rowsort SELECT ALL + col1 AS col1, col1 AS col2 FROM tab1 AS cor0 @@ -46801,8 +47239,10 @@ SELECT ALL * FROM tab0 WHERE NOT - 39 > ( + CAST ( NULL AS INTEGER ) + - - col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c8beef9b5d95032ecdf18cdd53ed129b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "CAST\(cor0\.col1 AS Int32\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - + col0 col2, + col0, + + CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0 +---- +9 values hashing to 589cf14d81bf100bedb46332075f2aac query I rowsort SELECT - col2 * - col2 + 10 * - - col2 + - col0 - + 73 AS col1 FROM tab0 AS cor0 @@ -47077,8 +47517,15 @@ SELECT ALL - COUNT ( ALL + col2 ) AS col2 FROM tab0 WHERE NOT + col2 IS NOT NULL # Datafusion - Expected - -27 # Datafusion - Expected - 94 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) / tab1\.col0 \+ tab1\.col1 \+ tab1\.col1 AS col2" at position 0 and "Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 / col0 + col1 + col1 AS col2, - 27 col2 FROM tab1 +---- +-27 +-27 +-27 +10 +28 +94 query I rowsort SELECT ALL - col1 + 69 FROM tab2 @@ -47252,8 +47699,15 @@ SELECT ALL 88 AS col2, - 91 FROM tab0 # Datafusion - Expected - 27 # Datafusion - Expected - 38 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 AS col1, 27 col1 FROM tab2 AS cor0 +---- +27 +27 +27 +38 +38 +38 query I rowsort label-7744 SELECT + COUNT ( * ) * + + 63 AS col0 FROM tab0 AS cor0 @@ -47551,8 +48005,15 @@ NULL # Datafusion - Expected - -4277 # Datafusion - Expected - 80 # Datafusion - Expected - -714 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-80\)\) AS col0" at position 0 and "cor0\.col0 \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 80 AS col0, col0 * - col1 AS col0 FROM tab1 cor0 +---- +-425 +-4277 +-714 +80 +80 +80 query I rowsort SELECT ALL - 91 FROM tab2 AS cor0 WHERE col1 IS NOT NULL @@ -48183,8 +48644,15 @@ SELECT DISTINCT + SUM ( DISTINCT + - col0 ) AS col1 FROM tab2 WHERE NOT - 50 IS # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col1, + col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query II rowsort SELECT DISTINCT col0, - col1 + + ( + - col2 ) FROM tab2 @@ -49392,8 +49860,15 @@ SELECT DISTINCT - 2 + + 5 FROM tab2 # Datafusion - Expected - 82 # Datafusion - Expected - -10 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col0" at position 0 and "Int64\(54\) \- Int64\(\-28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 AS col0, 54 - - 28 AS col0 FROM tab0 +---- +-10 +-10 +-10 +82 +82 +82 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NULL IN ( + col0 + 49 ) @@ -49483,8 +49958,15 @@ SELECT - MAX ( col2 ) AS col0 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - -99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, col2 AS col0 FROM tab0 +---- +-10 +-47 +-99 +10 +47 +99 query I rowsort SELECT - + col2 - - - col0 FROM tab2 WHERE NOT + col1 <> + - 72 @@ -49501,8 +49983,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab2 +---- +3 +3 query II rowsort SELECT DISTINCT + 12 AS col0, 32 * + - 87 FROM tab2 AS cor0 @@ -49664,8 +50149,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE - col2 + col0 NOT IN ( + 91 ) # Datafusion - Expected - -11 # Datafusion - Expected - 95 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "Int64\(\-11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 AS col2, - 11 AS col2 FROM tab1 AS cor0 +---- +-11 +-11 +-11 +95 +95 +95 query I rowsort SELECT col0 col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL @@ -50116,8 +50608,15 @@ SELECT + 36 * - col2 + - 37 * - + col2 * + col1 + + col1 FROM tab0 cor0 # Datafusion - Expected - 0 # Datafusion - Expected - -67 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) \+ Int64\(\-46\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + + + ( - 46 ) AS col1, + 0 AS col1 FROM tab0 +---- +-127 +-47 +-67 +0 +0 +0 query II rowsort SELECT ALL + col2, + col0 FROM tab1 WHERE NULL IS NULL @@ -50376,8 +50875,15 @@ SELECT DISTINCT 74 + COUNT ( * ) FROM tab0 AS cor0 # Datafusion - Expected - 2937 # Datafusion - Expected - -79 # Datafusion - Expected - 2937 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* \(\- cor0\.col1\) AS col2" at position 0 and "Int64\(33\) \* \(\- Int64\(\-89\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 79 * - col1 AS col2, 33 * - - 89 AS col2 FROM tab0 AS cor0 +---- +-1659 +-6399 +-79 +2937 +2937 +2937 query I rowsort label-8253 SELECT DISTINCT + col1 / col1 * + - 68 FROM tab0 AS cor0 @@ -50772,8 +51278,15 @@ SELECT col2 + + + col0, + col2 AS col1 FROM tab2 # Datafusion - Expected - -23 # Datafusion - Expected - -9165 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ tab1\.col2 \* \(\- \(\- tab1\.col2\)\) / Int64\(\-1\) AS col0" at position 0 and "Int64\(23\) \+ Int64\(\-46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 + + col2 * - - col2 / - 1 AS col0, + 23 + - 46 AS col0 FROM tab1 +---- +-23 +-23 +-23 +-3396 +-4533 +-9165 query I rowsort SELECT ( - - col2 ) + + col2 FROM tab0 @@ -50925,8 +51438,15 @@ SELECT - - 27 * + 38 FROM tab0 AS cor0 WHERE ( 31 BETWEEN NULL AND - - 7 * 22 * # Datafusion - Expected - -65 # Datafusion - Expected - 94 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "Int64\(3\) \+ \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 AS col2, 3 + - col2 AS col2 FROM tab1 AS cor0 +---- +-56 +-65 +-93 +94 +94 +94 query I rowsort SELECT 21 + - col0 FROM tab0 cor0 @@ -51222,8 +51742,15 @@ SELECT DISTINCT 28 - - - col2 * + + 22 col1 FROM tab1 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col0, + col1 col0 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT - 36 + col1 col0 FROM tab2 cor0 @@ -51336,8 +51863,15 @@ SELECT * FROM tab2 WHERE NOT NULL <= - 83 # Datafusion - Expected - -17 # Datafusion - Expected - -98415 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* \(\- cor0\.col0\) \* cor0\.col1 AS col2" at position 0 and "Int64\(\-17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 81 * - col0 * col1 AS col2, - 17 AS col2 FROM tab0 AS cor0 +---- +-147987 +-17 +-17 +-17 +-7857 +-98415 query I rowsort SELECT 77 + + + 55 col2 FROM tab1 AS cor0 @@ -51879,8 +52413,15 @@ NULL # Datafusion - Expected - 85 # Datafusion - Expected - -65 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 65 AS col1, col0 col1 FROM tab1 cor0 +---- +-65 +-65 +-65 +51 +85 +91 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -52313,8 +52854,15 @@ SELECT + + 17 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 50 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-50\)\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 50 AS col2, col0 AS col2 FROM tab1 AS cor0 +---- +50 +50 +50 +51 +85 +91 query III rowsort label-8561 SELECT * FROM tab2 AS cor0 WHERE NOT ( - - CAST ( - col1 AS INTEGER ) ) < NULL @@ -52380,8 +52928,11 @@ SELECT * FROM tab1 WHERE NOT - + col1 + - col1 + col2 * col2 * col2 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 AS col2, COUNT ( * ) col2 FROM tab0 +---- +3 +47 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT ( + col0 + - ( - col2 ) * 89 ) NOT IN ( col0 ) @@ -52492,8 +53043,10 @@ SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN 14 / - - col1 * 8 * - 0 / col # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f681f02feb61ea439ed0250fb08b6597 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(60\) AS col0" at position 1 and "cor0\.col1 \* Int64\(46\) \+ cor0\.col2 AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + col0 + + ( - col0 ) AS col1, - col0 * 60 AS col0, ( col1 ) * + 46 + col2 AS col0 FROM tab2 AS cor0 +---- +9 values hashing to e4a191bd284a8b80c2fb8e0dda67d98d query I rowsort SELECT ALL 84 * - 66 + - col0 - + + col0 FROM tab1 AS cor0 @@ -52888,8 +53441,11 @@ SELECT + MIN ( ALL + 26 ) FROM tab2 AS cor0 # 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\(82\) AS col0" at position 0 and "\(\- \(\- min\(\(\- \(\- Int64\(\-43\)\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 82 AS col0, - ( - MIN ( + ( - + ( - - 43 ) ) ) ) col0 FROM tab0 cor0 +---- +-43 +82 query II rowsort SELECT - - col2, col2 AS col1 FROM tab2 AS cor0 @@ -53290,8 +53846,15 @@ SELECT DISTINCT - ( - - COUNT ( * ) ), - 81 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -515 # Datafusion - Expected - 68 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col1" at position 0 and "Int64\(25\) \* \(\- cor0\.col1\) \+ \(\- \(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 68 AS col1, ( + 25 ) * - col1 + - ( + - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL ) +---- +-1978 +-515 +68 +68 +68 +74 query III rowsort SELECT * FROM tab2 AS cor0 WHERE + col0 = - + 7 @@ -54023,8 +54586,15 @@ SELECT DISTINCT - + col2 / 0 * - 4 FROM tab1 AS cor0 WHERE + CAST ( 35 AS INTEGE # Datafusion - Expected - -21 # Datafusion - Expected - 96 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ CAST\(Int64\(49\) AS Int32\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + + CAST ( + 49 AS INTEGER ) AS col1, - col1 AS col1 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +148 +59 +96 query I rowsort label-8846 SELECT ALL - + col1 * - col1 + - 66 + - - 29 * ( col2 ) / col1 AS col2 FROM tab1 AS cor0 @@ -54306,8 +54876,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(cor0\.col0\)\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MIN ( ALL col0 ) AS col0, 36 AS col0 FROM tab2 AS cor0 +---- +-46 +36 query I rowsort SELECT 54 * + - col2 AS col2 FROM tab1 cor0 @@ -55266,8 +55839,15 @@ SELECT * FROM tab2 WHERE - col0 + + + col0 * + + col2 IS NOT NULL # Datafusion - Expected - 68 # Datafusion - Expected - 56 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "CAST\(\(\- Int64\(44\)\) AS Int32\) / \(\- tab1\.col2\) \- \(\- CAST\(tab1\.col2 AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 56 AS col2, CAST ( - + 44 AS INTEGER ) / - col2 - - + CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 +---- +56 +56 +56 +59 +68 +96 query I rowsort SELECT ALL col2 + 68 FROM tab1 @@ -55551,8 +56131,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ), - ( + COUNT ( * ) ) FROM tab0 +---- +-3 +-3 query I rowsort label-9105 SELECT DISTINCT + COUNT ( * ) * + 85 + + + COUNT ( * ) AS col2 FROM tab0 AS cor0 @@ -56953,8 +57536,15 @@ SELECT + 52, + col1 FROM tab0 # Datafusion - Expected - 66 # Datafusion - Expected - 81 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col1\) \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, - col1 + + + col0 AS col2 FROM tab0 AS cor0 +---- +-66 +1 +21 +66 +81 +96 query I rowsort label-9335 SELECT DISTINCT MAX ( - 25 ) FROM tab2 AS cor0 @@ -57007,8 +57597,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) + - - 44 + - + 13 AS col1, MAX ( DISTINCT 53 ) + - - COUNT ( * ) AS col1 FROM tab2 +---- +34 +56 query I rowsort SELECT col2 + - - ( - - col2 ) col1 FROM tab0 @@ -58110,8 +58703,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( ( NULL ) BETWEEN - col0 + col2 AND # Datafusion - Expected - 5 # Datafusion - Expected - 91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, col1 AS col2 FROM tab1 cor0 +---- +14 +47 +5 +51 +85 +91 query III rowsort SELECT DISTINCT * FROM tab0 WHERE NOT - - 54 NOT BETWEEN 19 AND ( - col0 * + col1 * - + col1 ) @@ -58520,8 +59120,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1 +---- +9 +9 query I rowsort label-9600 SELECT - MAX ( DISTINCT + CAST ( + - col0 AS INTEGER ) ) * COUNT ( * ) FROM tab0 @@ -58545,8 +59148,15 @@ SELECT + col0, col1 * + 31 AS col2 FROM tab1 # Datafusion - Expected - 21 # Datafusion - Expected - 97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, + col1 AS col2 FROM tab0 +---- +1 +15 +21 +81 +87 +97 query I rowsort SELECT ALL - - ( + - 8 ) FROM tab2 cor0 @@ -58573,8 +59183,11 @@ SELECT + + col0 AS col2, 48 * - 51 AS col0 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT Int64\(15\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( DISTINCT + + 15 ) AS col1, COUNT ( * ) AS col1 FROM tab1 +---- +1 +3 query I rowsort SELECT col1 * + 2 * col1 AS col2 FROM tab0 @@ -58953,8 +59566,11 @@ SELECT ALL - ( + 45 ) * + 76 * col1 + + col1 FROM tab2 AS cor0 # 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\(52\)\) \+ \(\- avg\(DISTINCT Int64\(16\)\)\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT - + 52 + - AVG ( DISTINCT + + 16 ) col0, 50 AS col0 FROM tab0 WHERE NOT + col2 * - + col1 < + 83 +---- +50 +NULL query I rowsort SELECT ALL - col0 + + 3 * - col2 + - 15 AS col0 FROM tab0 @@ -59884,8 +60500,15 @@ NULL # Datafusion - Expected - -87 # Datafusion - Expected - -68 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col1" at position 0 and "\(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 68 AS col1, - col0 AS col1 FROM tab0 +---- +-15 +-68 +-68 +-68 +-87 +-97 query I rowsort label-9823 SELECT DISTINCT 77 / - col1 AS col2 FROM tab1 diff --git a/data/sqlite/random/aggregates/slt_good_93.slt b/data/sqlite/random/aggregates/slt_good_93.slt index 52f59b3..d99c7eb 100644 --- a/data/sqlite/random/aggregates/slt_good_93.slt +++ b/data/sqlite/random/aggregates/slt_good_93.slt @@ -44,8 +44,15 @@ INSERT INTO tab2 VALUES(46,51,23) # Datafusion - Expected - 7229 # Datafusion - Expected - NULL # Datafusion - Expected - 8281 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col0 \* cor0\.col0 \+ \(\- Int64\(22\)\) / \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) + - col2 AS col2, col0 * + + col0 + - + 22 / - col1 AS col2 FROM tab1 cor0 +---- +2602 +7229 +8281 +NULL +NULL +NULL query I rowsort label-1 SELECT - - col0 / + + col1 + col0 * + 1 + ( - 50 ) AS col0 FROM tab0 cor0 @@ -265,8 +272,11 @@ SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * - col2 < ( + + 16 * col1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "\(\- sum\(DISTINCT Int64\(94\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 13 AS col2, - SUM ( DISTINCT + 94 ) AS col2 FROM tab1 cor0 +---- +-94 +13 query I rowsort SELECT - 70 - + 84 AS col1 FROM tab1 AS cor0 @@ -881,8 +891,15 @@ NULL # Datafusion - Expected - 46 # Datafusion - Expected - -75 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col1" at position 0 and "tab2\.col2 \+ Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col1, col2 + 6 AS col1 FROM tab2 +---- +-46 +-64 +-75 +29 +46 +64 query I rowsort SELECT - 75 * - col0 AS col1 FROM tab1 @@ -1149,8 +1166,15 @@ SELECT ALL + 86 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 4 # Datafusion - Expected - 50 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \+ cor0\.col2 AS col2" at position 0 and "Int64\(\-69\) / Int64\(\-17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 3 + + col2 AS col2, - 69 / - 17 AS col2 FROM tab0 AS cor0 +---- +102 +13 +4 +4 +4 +50 query I rowsort label-180 SELECT DISTINCT + - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 @@ -1842,8 +1866,15 @@ SELECT ALL + - MAX ( DISTINCT 16 ) FROM tab0 cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 11 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( 11 ) AS col0, + col1 AS col0 FROM tab0 cor0 WHERE NOT ( - col0 ) IS NULL +---- +1 +11 +11 +11 +21 +81 query I rowsort label-290 SELECT 45 + - ( + ( + COUNT ( * ) ) ) AS col2 FROM tab2 AS cor0 @@ -3108,8 +3139,15 @@ SELECT DISTINCT + 67 AS col1, - 12 + COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Expected - -49 # Datafusion - Expected - 8280 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) / \(\- cor0\.col1\) \+ cor0\.col0 \* cor0\.col0 AS col0" at position 0 and "\(\- cor0\.col2\) \+ cor0\.col2 / \(\- cor0\.col0\) \+ \(\- Int64\(\-10\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 / - col1 + + col0 * col0 AS col0, - col2 + col2 / - col0 + - - 10 AS col0 FROM tab1 AS cor0 +---- +-49 +-58 +-87 +2597 +7212 +8280 query II rowsort SELECT DISTINCT - 36, ( - - col1 ) col2 FROM tab2 AS cor0 @@ -3353,8 +3391,15 @@ SELECT col1 * + - 43 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - 91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, ( - col0 ) AS col2 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +51 +85 +91 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE ( + col1 ) * + col1 + col0 IS NOT NULL @@ -3591,8 +3636,15 @@ SELECT ALL + COUNT ( 8 ) / 3 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 450 # Datafusion - Expected - 73 # Datafusion - Expected - 450 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ Int64\(26\) AS col0" at position 0 and "Int64\(\-90\) \* \(\- Int64\(5\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col2 + 26 AS col0, ( - 90 ) * - + 5 AS col0 FROM tab0 AS cor0 +---- +125 +36 +450 +450 +450 +73 query III rowsort SELECT ALL * FROM tab0 cor0 WHERE NOT ( 98 NOT IN ( col1 * col0, + ( + + 0 ) * - col2 + - + 67 ) ) @@ -3802,8 +3854,15 @@ SELECT DISTINCT - col0 * 56 FROM tab1 # Datafusion - Expected - -32 # Datafusion - Expected - 3850 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* Int64\(77\) 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 II valuesort SELECT ALL + 50 * 77 AS col1, + col0 + - + col2 AS col1 FROM tab0 AS cor0 +---- +-2 +-32 +3850 +3850 +3850 +77 query I rowsort label-614 SELECT DISTINCT + CAST ( CAST ( - col1 AS FLOAT8 ) AS INTEGER ) AS col2 FROM tab2 AS cor0 @@ -4220,8 +4279,15 @@ SELECT ALL col0, col0 + + col0 FROM tab2 cor0 # Datafusion - Expected - 551250 # Datafusion - Expected - -97 # Datafusion - Expected - 207368 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \- cor0\.col1 AS col2" at position 0 and "cor0\.col0 \* Int64\(\-98\) \* \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 - + col1 AS col2, col0 * - 98 * - col0 AS col2 FROM tab2 cor0 +---- +-141 +-142 +-97 +207368 +401408 +551250 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + - + col2 IS NULL @@ -4423,8 +4489,15 @@ SELECT ALL + - COUNT ( + + 21 ) FROM tab0 cor0 CROSS JOIN tab2 cor1 # Datafusion - Expected - 64 # Datafusion - Expected - 0 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 + - + col2 col1, + 64 AS col1 FROM tab2 AS cor0 WHERE + 27 <= + col0 +---- +0 +0 +0 +64 +64 +64 query I rowsort label-711 SELECT - + COUNT ( * ) * ( MIN ( ALL col1 ) ) AS col0 FROM tab2 AS cor0 @@ -4722,8 +4795,15 @@ SELECT 18 * + - col0 + + col0 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 27 # Datafusion - Expected - 5929 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* \(\- \(\- tab2\.col1\)\) AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * - - col1 AS col0, 27 col0 FROM tab2 +---- +2601 +27 +27 +27 +4489 +5929 query I rowsort label-761 SELECT SUM ( + + 20 ) FROM tab2 @@ -5030,8 +5110,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT ( - col2 IS NULL ) # Datafusion - Expected - -2560 # Datafusion - Expected - -52 # Datafusion - Expected - -4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) AS col1" at position 0 and "cor0\.col2 \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 52 AS col1, col2 * - col0 AS col1 FROM tab2 AS cor0 +---- +-1058 +-2560 +-4350 +-52 +-52 +-52 query I rowsort SELECT DISTINCT col1 + - 53 FROM tab2 AS cor0 @@ -6221,8 +6308,11 @@ SELECT + + col1 * - 12 * + ( 12 ) * - 73 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( ( - 58 ) ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + col1 <= - - col1 * + + col0 - - col0 +---- +-58 +3 query I rowsort label-1011 SELECT DISTINCT - - CAST ( - 23 AS INTEGER ) FROM tab2 AS cor0 @@ -6550,14 +6640,24 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * - 36 * + # Datafusion - Expected - 85 # Datafusion - Expected - -63 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 63 AS col1, col0 AS col1 FROM tab1 AS cor0 +---- +-63 +-63 +-63 +51 +85 +91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, - 72 AS col2 FROM tab0 cor0 +---- +-72 +3 query I rowsort SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( + col2 * - 67 ) IS NULL @@ -6687,7 +6787,7 @@ SELECT ALL + col2 * - col2 * - - col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 229ecc357c382915288d5c873256d38c -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col2" at position 0 and "tab0\.col1 \+ Int64\(\-43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Schema error: Schema contains qualified field name tab0\.col2 and unqualified field name col2 which would be ambiguous SELECT DISTINCT - col2 AS col2, col1 + ( - 43 ) AS col2, col2 FROM tab0 query I rowsort label-1092 @@ -6987,8 +7087,15 @@ SELECT - col2 * col2 + + - 89 FROM tab0 # Datafusion - Expected - -5 # Datafusion - Expected - 8 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \+ Int64\(22\) AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + 22 AS col1, - ( + + col1 ) AS col1 FROM tab1 +---- +-14 +-25 +-47 +-5 +17 +8 query I rowsort label-1141 SELECT CAST ( NULL AS INTEGER ) + + col1 FROM tab2 AS cor0 @@ -7046,8 +7153,15 @@ SELECT DISTINCT 63 - col0 FROM tab0 AS cor0 # Datafusion - Expected - -64155 # Datafusion - Expected - 97 # Datafusion - Expected - -79170 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \- \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(91\) \* cor0\.col2 \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 - + - ( + col0 ) AS col1, + 91 * col2 * - + col0 col1 FROM tab0 AS cor0 +---- +-64155 +-79170 +-873873 +196 +62 +97 query I rowsort label-1149 SELECT ALL - SUM ( + CAST ( NULL AS INTEGER ) ) - + 71 FROM tab2 cor0 @@ -7081,8 +7195,15 @@ SELECT ALL + 75 * + - 68 * + COUNT ( * ) / COUNT ( * ) * - 44 AS col1 FROM tab0 # Datafusion - Expected - 26 # Datafusion - Expected - 44370 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* Int64\(51\) \* cor0\.col0 AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 58 * + 51 * + col0 AS col0, 26 AS col0 FROM tab0 AS cor0 +---- +257346 +26 +26 +26 +286926 +44370 query III rowsort label-1155 SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> CAST ( NULL AS INTEGER ) - + col0 + 96 @@ -7488,8 +7609,15 @@ SELECT ALL - 78, + col1 FROM tab2 # Datafusion - Expected - -22969 # Datafusion - Expected - 83 # Datafusion - Expected - -249238 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col1" at position 0 and "tab1\.col1 \* \(\- tab1\.col2\) \* Int64\(78\) \+ Int64\(\-18\) \+ \(\- \(\- tab1\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 83 AS col1, col1 * - col2 * + 78 + - 18 + - - col2 AS col1 FROM tab1 +---- +-104754 +-22969 +-249238 +83 +83 +83 query III rowsort SELECT * FROM tab0 cor0 WHERE 61 IS NULL AND NOT NULL IS NOT NULL @@ -7502,8 +7630,15 @@ SELECT * FROM tab0 cor0 WHERE 61 IS NULL AND NOT NULL IS NOT NULL # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, + col1 AS col2 FROM tab2 AS cor0 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT DISTINCT - ( + - 27 ) FROM tab0 AS cor0 @@ -7857,8 +7992,10 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < + col2 / - - col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 8c8f501a25d38b5ff414ea9ad0f1d406 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col2 / \(\- cor0\.col2\) AS col2" at position 0 and "Int64\(49\) / Int64\(\-47\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + col0 * + col2 / - + col2 AS col2, + ( col1 ) + - + 85, 49 / - 47 AS col2 FROM tab1 AS cor0 +---- +9 values hashing to 6f7f98e138dafcc8e5adfc10b0e2cb3b query I rowsort SELECT DISTINCT - 90 FROM tab0 AS cor0 WHERE NOT - 28 / col2 > + + col2 * + - ( + col0 ) * + col0 + 31 + - ( col1 ) + - col2 @@ -8152,8 +8289,11 @@ SELECT - 56 + 10 * 69 / - col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 121 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(tab2\.col2\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( ALL + col2 ) AS col1, + COUNT ( * ) AS col1 FROM tab2 +---- +121 +3 query I rowsort SELECT - 86 + - 80 FROM tab2 AS cor0 @@ -8252,8 +8392,15 @@ SELECT + COUNT ( * ) col1, + ( 15 ) FROM tab0 # Datafusion - Expected - 67 # Datafusion - Expected - -11 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 11 AS col2, col1 AS col2 FROM tab2 +---- +-11 +-11 +-11 +51 +67 +77 query I rowsort SELECT ( + 7 ) AS col1 FROM tab1 @@ -8303,8 +8450,11 @@ SELECT ( + - 1 ) AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 20 AS col1, + CAST ( NULL AS INTEGER ) * + 29 AS col1 FROM tab2 AS cor0 +---- +20 +NULL query II rowsort SELECT ALL - col0 col2, - 7 AS col1 FROM tab2 AS cor0 @@ -9771,8 +9921,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT - 31 IS NOT NULL # Datafusion - Expected - -87 # Datafusion - Expected - 73 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 73 AS col2, - col0 col2 FROM tab0 AS cor0 +---- +-15 +-87 +-97 +73 +73 +73 query II rowsort label-1607 SELECT ALL - 26, - MAX ( ALL + - col2 ) + 47 AS col2 FROM tab2 AS cor0 @@ -10466,8 +10623,15 @@ SELECT * FROM tab1 WHERE 21 + + col2 * + col1 IS NULL # Datafusion - Expected - 13 # Datafusion - Expected - 29 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col2" at position 0 and "tab2\.col1 \+ \(\- tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 29 AS col2, ( + col1 ) + - + col0 col2 FROM tab2 +---- +-8 +13 +29 +29 +29 +5 query I rowsort label-1719 SELECT - MAX ( ALL - - 48 ) AS col0 FROM tab1 @@ -12362,8 +12526,15 @@ SELECT - col0 + 52 col2 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS # Datafusion - Expected - -67 # Datafusion - Expected - 11 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-11\)\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 11 AS col2, - col1 AS col2 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +11 +11 +11 query I rowsort label-2037 SELECT DISTINCT MAX ( DISTINCT + 85 ) * - + 29 + ( + + 54 ) FROM tab2 @@ -12709,8 +12880,11 @@ SELECT 56 * 26 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4692 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* Int64\(3\) \* Int64\(\-17\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 92 * + 3 * - 17 AS col1, + 20 col1 FROM tab2 +---- +-4692 +20 query I rowsort SELECT ALL - col1 * - 62 FROM tab1 @@ -12738,8 +12912,15 @@ SELECT - - COUNT ( * ), - ( COUNT ( - + col1 ) ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - -77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1, ( - col1 ) FROM tab2 AS cor0 +---- +-51 +-51 +-67 +-67 +-77 +-77 query I rowsort SELECT + col1 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL @@ -13033,8 +13214,15 @@ SELECT DISTINCT col2 + 92 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -48 # Datafusion - Expected - 12 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ \(\- Int64\(\-22\)\) AS col1" at position 0 and "Int64\(2\) \* \(\- Int64\(24\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 + + + ( - - 22 ) AS col1, + 2 * - + 24 AS col1 FROM tab0 AS cor0 +---- +-25 +-48 +-48 +-48 +-77 +12 query I rowsort SELECT - col2 + + col2 + + + col1 FROM tab1 AS cor0 @@ -14387,8 +14575,15 @@ SELECT CAST ( col0 AS INTEGER ) + - col1 AS col2 FROM tab0 # Datafusion - Expected - -1176 # Datafusion - Expected - 931533 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ \(\- tab0\.col0\) \* \(\- tab0\.col0\) \* tab0\.col2 AS col2" at position 0 and "Int64\(56\) \* \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 + - col0 * - col0 * col2 AS col2, + 56 * - + col1 AS col2 FROM tab0 +---- +-1176 +-4536 +-56 +10617 +75732 +931533 query I rowsort label-2377 SELECT + ( + + ( + + 69 ) ) * - 2 - + COUNT ( * ) AS col0 FROM tab1 AS cor0 @@ -14654,8 +14849,15 @@ SELECT + + 40 FROM tab2 cor0 # Datafusion - Expected - 28 # Datafusion - Expected - 5 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, 28 AS col2 FROM tab1 +---- +14 +28 +28 +28 +47 +5 query I rowsort SELECT + col0 * - ( - + col0 ) * - 6 + - col0 col1 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL @@ -14854,8 +15056,15 @@ SELECT ALL + 51 + + + col1, + col0 FROM tab1 # Datafusion - Expected - 1 # Datafusion - Expected - 79 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \- \(\- tab0\.col2\) \+ Int64\(\-49\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 - + ( - col2 ) + - 49 AS col2, + col1 AS col2 FROM tab0 +---- +-18 +1 +21 +51 +79 +81 query I rowsort label-2452 SELECT DISTINCT CAST ( + 82 AS INTEGER ) * + col0 * - 3 + + col1 AS col0 FROM tab0 @@ -15087,8 +15296,15 @@ SELECT - + 94 - - 24 AS col0, - col0 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 2025 # Datafusion - Expected - -97 # Datafusion - Expected - 1242 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \- \(\- \(\- cor0\.col1\)\) AS col0" at position 0 and "cor0\.col0 \* Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 - - - col1 AS col0, col0 * + + 27 AS col0 FROM tab2 cor0 +---- +-141 +-142 +-97 +1242 +1728 +2025 query I rowsort SELECT ALL - 80 FROM tab0 WHERE NOT col1 >= 61 AND NOT col1 IS NOT NULL @@ -15741,8 +15957,15 @@ NULL # Datafusion - Expected - -36 # Datafusion - Expected - 5 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "Int64\(\-36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, - 36 AS col0 FROM tab1 +---- +-36 +-36 +-36 +14 +47 +5 query I rowsort SELECT ALL - 32 AS col2 FROM tab1 WHERE NOT - ( + col0 ) + col1 IS NOT NULL @@ -16030,8 +16253,15 @@ SELECT + col0 AS col0, - 49 AS col0 FROM tab1 # Datafusion - Expected - 77 # Datafusion - Expected - 75 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab2\.col0\)\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - + col0 ) AS col0, col1 AS col0 FROM tab2 +---- +46 +51 +64 +67 +75 +77 query II rowsort label-2645 SELECT - COUNT ( * ), - ( + + 48 ) AS col0 FROM tab1 AS cor0 @@ -16807,8 +17037,11 @@ SELECT DISTINCT + + 41 FROM tab1 AS cor0 WHERE NOT + 50 <> NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(15\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + 15 ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +-15 +NULL query I rowsort SELECT DISTINCT + col2 + + 43 FROM tab2 AS cor0 @@ -16865,8 +17098,15 @@ SELECT - COUNT ( * ) FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) * + + 88 + + c # Datafusion - Expected - 28 # Datafusion - Expected - -58 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, 28 AS col1 FROM tab2 +---- +-23 +-40 +-58 +28 +28 +28 query I rowsort label-2788 SELECT DISTINCT COUNT ( 85 ) FROM tab2 @@ -17343,8 +17583,15 @@ SELECT ALL ( - + 78 ) FROM tab1 AS cor0 # Datafusion - Expected - 81 # Datafusion - Expected - 97 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col0 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 + col0 AS col0, col1 AS col0 FROM tab0 AS cor0 +---- +1 +196 +21 +62 +81 +97 query I rowsort SELECT DISTINCT - - col1 * + col1 * col2 * - + col0 - + + 29 + 68 FROM tab0 AS cor0 @@ -17608,8 +17855,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ), - COUNT ( * ) FROM tab0 AS cor0 +---- +-3 +-3 query II rowsort SELECT - + col0, + col1 AS col1 FROM tab2 AS cor0 @@ -18299,8 +18549,15 @@ SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) BETWEEN NU # Datafusion - Expected - -64704 # Datafusion - Expected - -97 # Datafusion - Expected - -3483 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \- cor0\.col2 AS col2" at position 0 and "Int64\(\-17\) \* \(\- cor0\.col2\) \* \(\- cor0\.col1\) \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 - col2 AS col2, - 17 * - + col2 * - col1 + col0 AS col2 FROM tab0 AS cor0 +---- +-1586 +-196 +-3483 +-62 +-64704 +-97 query I rowsort label-3021 SELECT ALL + - MIN ( CAST ( col1 AS INTEGER ) ) col2 FROM tab2 AS cor0 @@ -18418,8 +18675,15 @@ SELECT 86 FROM tab2 AS cor0 WHERE NOT 79 IS NOT NULL # Datafusion - Expected - 87 # Datafusion - Expected - -97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, col0 AS col1 FROM tab0 cor0 +---- +-15 +-87 +-97 +15 +87 +97 query I rowsort label-3037 SELECT DISTINCT MAX ( + 17 ) AS col0 FROM tab2 AS cor0 WHERE + col1 IS NULL @@ -18530,8 +18794,10 @@ SELECT DISTINCT col1 * col1 * + + col0 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f5ccf914253aa4b83bcf0cf2b88e5279 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1, col0 * + 82, - + col0 AS col1 FROM tab1 AS cor0 +---- +9 values hashing to 6a8196e2730cae0f8dd8a074ba82b6ba query II rowsort SELECT ALL - col1 * col0 + - col1 AS col0, - col2 * + + col2 FROM tab0 cor0 @@ -18770,8 +19036,15 @@ SELECT col0 - + + 48 FROM tab2 AS cor0 WHERE NOT col2 <= NULL # Datafusion - Expected - 40 # Datafusion - Expected - 57 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 57 AS col0, 40 AS col0 FROM tab1 AS cor0 +---- +40 +40 +40 +57 +57 +57 query I rowsort SELECT - col0 * 82 * - 5 AS col0 FROM tab2 cor0 @@ -19905,8 +20178,11 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 61 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, 85 AS col2 FROM tab1 AS cor0 +---- +3 +85 query I rowsort label-3282 SELECT - + CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0 @@ -20268,8 +20544,15 @@ SELECT * FROM tab0 WHERE NOT - ( - col1 ) - + - ( + - col0 ) * - - col1 IS NULL # Datafusion - Expected - 3364 # Datafusion - Expected - -77 # Datafusion - Expected - 1600 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col2" at position 0 and "tab2\.col2 \* tab2\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col2, + col2 * col2 AS col2 FROM tab2 +---- +-51 +-67 +-77 +1600 +3364 +529 query III rowsort label-3343 SELECT ALL * FROM tab1 WHERE NOT - col0 - + CAST ( NULL AS INTEGER ) <= - col0 @@ -20518,8 +20801,15 @@ SELECT ALL - COUNT ( * ) * MIN ( + col0 ) FROM tab0 # Datafusion - Expected - -21 # Datafusion - Expected - -97 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* \(\- tab0\.col0\) AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * - col0 AS col0, - col1 AS col0 FROM tab0 +---- +-1 +-1215 +-1827 +-21 +-81 +-97 query I rowsort SELECT ( + + ( - col1 ) ) * - col1 FROM tab1 @@ -21484,8 +21774,15 @@ SELECT 39 AS col2, - col0 FROM tab2 # Datafusion - Expected - 56 # Datafusion - Expected - -52 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 52 AS col2, 56 AS col2 FROM tab1 cor0 +---- +-52 +-52 +-52 +56 +56 +56 query I rowsort SELECT col1 + + 50 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL @@ -21622,8 +21919,15 @@ SELECT ( + 89 ) FROM tab0 # Datafusion - Expected - 3807 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, col2 * + col1 AS col0 FROM tab0 AS cor0 +---- +10 +210 +3807 +47 +99 +99 query I rowsort label-3557 SELECT DISTINCT - + col2 / col1 * + + 7 AS col1 FROM tab0 AS cor0 @@ -23463,8 +23767,15 @@ SELECT - col2 AS col1, - col1 FROM tab0 AS cor0 # Datafusion - Expected - -4928 # Datafusion - Expected - 81 # Datafusion - Expected - -5025 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col1" at position 0 and "cor0\.col0 \* \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 AS col1, col0 * - col1 col1 FROM tab2 cor0 +---- +-2346 +-4928 +-5025 +81 +81 +81 query II rowsort SELECT ALL 91 AS col0, col0 + + - col2 col2 FROM tab0 AS cor0 @@ -23525,8 +23836,13 @@ SELECT * FROM tab1 AS cor0 WHERE col1 * - 39 IS NULL # Datafusion - Expected - 0 # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col2\) / Int64\(\-48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + col1 ) / col1 AS col2, - col2 / + - 48 col2 FROM tab2 AS cor0 +---- +0 +1 +1 +1 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 69 IS NOT NULL @@ -24366,8 +24682,11 @@ SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 ) / - - col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- Int64\(94\)\)\)\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - MAX ( ALL - + 94 ) AS col2, 19 col2 FROM tab1 AS cor0 +---- +19 +94 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT - col1 - + col1 + - col2 IS NULL @@ -28504,8 +28823,11 @@ SELECT + 14 + - + 83 FROM tab2 # 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 "max\(tab1\.col2\) AS col2" at position 0 and "Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( + col2 ) AS col2, 72 AS col2 FROM tab1 +---- +72 +96 query I rowsort SELECT 82 * - - col0 + col2 AS col1 FROM tab1 @@ -29173,8 +29495,11 @@ SELECT 3 / - col0 AS col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(65\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(11\) / Int64\(15\) \* \(\- Int64\(21\)\) \+ \(\- Int64\(26\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) * - + 65 + COUNT ( * ) AS col1, + 11 / + 15 * - + 21 + - + 26 AS col1 FROM tab1 WHERE NULL IS NOT NULL +---- +-26 +0 query I rowsort label-4788 SELECT + + COUNT ( * ) * - 64 + - 10 + COUNT ( * ) * - ( - COUNT ( * ) ) FROM tab1 cor0 CROSS JOIN tab2 cor1 @@ -29279,8 +29604,15 @@ SELECT col0 AS col1 FROM tab2 WHERE NOT ( NULL > NULL ) # Datafusion - Expected - -28 # Datafusion - Expected - 0 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 / Int64\(65\) \* \(\- tab2\.col2\) AS col2" at position 0 and "tab2\.col2 \+ \(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 / 65 * + - col2 AS col2, + col2 + - + col1 AS col2 FROM tab2 +---- +-28 +-37 +-58 +-9 +0 +0 query I rowsort SELECT ALL 56 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 @@ -29459,8 +29791,10 @@ SELECT 97 / + COUNT ( * ) AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to ec270af9ac5950b467efed8391b0d87e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col0" at position 0 and "Int64\(\-61\) \+ tab1\.col2 AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 66 AS col0, - col1, - 61 + + col2 AS col0 FROM tab1 +---- +9 values hashing to 99956d52efe1aeed68a8dd84ca19bc83 query III rowsort SELECT * FROM tab1 WHERE NOT - - col0 >= - col2 * + + 46 @@ -29480,8 +29814,15 @@ SELECT ALL + col2 * + col2 * + ( ( + + col1 ) ) FROM tab0 # Datafusion - Expected - 56 # Datafusion - Expected - -5 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 AS col0, 56 AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +56 +56 +56 query I rowsort SELECT + + 17 col0 FROM tab0 AS cor0 @@ -29690,8 +30031,15 @@ SELECT ALL - 36 + - COUNT ( * ) FROM tab0 AS cor0 # Datafusion - Expected - 72 # Datafusion - Expected - -97 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col2" at position 0 and "Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 97 col2, + 72 col2 FROM tab2 cor0 +---- +-97 +-97 +-97 +72 +72 +72 query I rowsort label-4871 SELECT ALL - 61 + + - COUNT ( * ) FROM tab1 @@ -30874,8 +31222,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE 90 * + CAST ( NULL AS INTEGER ) > col0 # Datafusion - Expected - -23 # Datafusion - Expected - 96 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ Int64\(32\) AS col0" at position 0 and "CAST\(\(\- cor0\.col2\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 + 32 AS col0, + CAST ( - col2 AS INTEGER ) col0 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +107 +78 +96 query I rowsort SELECT DISTINCT + + col1 * + col0 * col0 FROM tab0 cor0 @@ -31049,8 +31404,11 @@ 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 "Int64\(\-9\) AS col2" at position 0 and "max\(DISTINCT Int64\(68\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 9 AS col2, + MAX ( DISTINCT 68 ) AS col2 FROM tab1 +---- +-9 +68 query I rowsort SELECT DISTINCT + ( 81 ) AS col2 FROM tab1 @@ -31641,8 +31999,11 @@ SELECT - COUNT ( 39 ) AS col0, + 84 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -451 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(41\) \* \(\- CAST\(Int64\(11\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( * ) AS col0, 41 * + - CAST ( ( + 11 ) AS INTEGER ) AS col0 FROM tab0 AS cor0 +---- +-451 +3 query II rowsort SELECT ALL - col0 AS col1, - col2 FROM tab0 AS cor0 @@ -31675,8 +32036,15 @@ SELECT - 91 * + - col2 col2 FROM tab1 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 5 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col0, + col2 AS col0 FROM tab1 AS cor0 +---- +14 +47 +5 +59 +68 +96 query I rowsort SELECT DISTINCT col0 * + col0 FROM tab1 AS cor0 WHERE NOT + 33 IS NULL @@ -31692,8 +32060,15 @@ SELECT DISTINCT col0 * + col0 FROM tab1 AS cor0 WHERE NOT + 33 IS NULL # Datafusion - Expected - -47 # Datafusion - Expected - -67 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(67\)\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 67 AS col0, - col1 AS col0 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +-67 +-67 +-67 query I rowsort SELECT - - col2 FROM tab1 cor0 WHERE NOT NULL <= + 7 @@ -31970,8 +32345,15 @@ SELECT DISTINCT + + col0 + col2 + - col2 FROM tab2 AS cor0 # Datafusion - Expected - -36 # Datafusion - Expected - 5 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(11\) \+ \(\- \(\- \(\- cor0\.col1\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col0, 11 + - ( - - col1 ) AS col0 FROM tab1 AS cor0 +---- +-3 +-36 +14 +47 +5 +6 query I rowsort SELECT ALL + 86 * 34 AS col1 FROM tab2 @@ -33021,8 +33403,15 @@ NULL # Datafusion - Expected - -25 # Datafusion - Expected - 58 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, - 25 AS col0 FROM tab2 AS cor0 +---- +-25 +-25 +-25 +23 +40 +58 query II rowsort SELECT ALL - + 87 + - ( col0 ) AS col0, - 33 + + col0 + - 77 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN + col2 AND NULL @@ -34746,8 +35135,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE - 29 * col2 IS NOT NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( col1 ), + col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT col0 + - 64 + - col0 * - col0 / - - col0 * 95 = - - col2 @@ -34946,8 +35342,15 @@ SELECT ALL col0, 75 FROM tab1 # Datafusion - Expected - 9 # Datafusion - Expected - 91 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, 9 AS col1 FROM tab1 AS cor0 +---- +51 +85 +9 +9 +9 +91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 @@ -34956,8 +35359,15 @@ SELECT col0 AS col1, 9 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 1243905572 # Datafusion - Expected - 63 # Datafusion - Expected - 48940416 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "cor0\.col0 \* cor0\.col1 \* cor0\.col0 \* cor0\.col2 \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 63 col1, col0 * + col1 * + col0 * + col2 * col1 AS col1 FROM tab1 AS cor0 +---- +10656875 +1243905572 +48940416 +63 +63 +63 query I rowsort SELECT DISTINCT - 75 * col0 + 89 FROM tab1 cor0 @@ -35454,8 +35864,11 @@ SELECT - COUNT ( * ), 93 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -410 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(\-10\)\)\) \* Int64\(\-41\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( - + ( + - 10 ) ) * - 41 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-410 +3 query I rowsort SELECT - + col1 AS col0 FROM tab1 WHERE NOT ( NOT col1 IS NULL ) @@ -35714,8 +36127,15 @@ SELECT 82 * col2 AS col0, col2 FROM tab2 # Datafusion - Expected - 4489 # Datafusion - Expected - 1584 # Datafusion - Expected - 5929 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(22\) AS col2" at position 0 and "tab2\.col1 \* tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 * 22 AS col2, col1 * col1 AS col2 FROM tab2 +---- +1584 +1584 +1584 +2601 +4489 +5929 query III rowsort SELECT ALL * FROM tab1 WHERE - col0 >= + col1 @@ -35724,8 +36144,11 @@ SELECT ALL * FROM tab1 WHERE - col0 >= + col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - 27 ) AS col0, + 6 AS col0 FROM tab1 AS cor0 +---- +-27 +6 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) = - col0 @@ -36487,8 +36910,15 @@ SELECT * FROM tab0 WHERE ( NOT NULL NOT BETWEEN col1 + - col0 AND + col2 ) # Datafusion - Expected - 19 # Datafusion - Expected - -69 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \- cor0\.col0 AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 - + col0 AS col1, 19 AS col1 FROM tab2 AS cor0 +---- +-104 +-133 +-69 +19 +19 +19 query I rowsort SELECT + - ( + + col0 ) AS col1 FROM tab2 AS cor0 @@ -37159,8 +37589,10 @@ SELECT ALL - 63 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) = N # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to d946802e539f308971d8ae14aef92b4e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "Int64\(\-40\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 4 AS col2, + col1, - 40 AS col2 FROM tab2 AS cor0 +---- +9 values hashing to 67dbafe039dcb0f8024748db55fb42dc query I rowsort SELECT ALL 25 FROM tab1 cor0 @@ -37252,8 +37684,11 @@ SELECT DISTINCT - - 10 + - 72 AS col0 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- Int64\(\-64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, ( - - 64 ) AS col1 FROM tab2 +---- +3 +64 query II rowsort SELECT ALL - col2 AS col0, + 26 * + 92 * - col1 AS col2 FROM tab2 @@ -37696,8 +38131,10 @@ SELECT ALL col0 * + 84 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 275e874388b7a482bcf971dfb91ff45a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col0 AS col0, col1, + + col1 col0 FROM tab0 AS cor0 +---- +9 values hashing to 56923360f1f107746bcf9f8143d939d3 query I rowsort SELECT ALL - - col0 + + col2 + col0 AS col1 FROM tab0 AS cor0 @@ -38969,8 +39406,15 @@ SELECT ALL 66 * - 92 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -9207 # Datafusion - Expected - -1 # Datafusion - Expected - -930 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 / \(\- tab0\.col1\) AS col2" at position 0 and "Int64\(\-93\) \* tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 / - + col1 AS col2, - 93 * + col2 AS col2 FROM tab0 +---- +-1 +-1 +-1 +-4371 +-9207 +-930 query I rowsort label-6400 SELECT ALL MAX ( DISTINCT - 80 ) + + COUNT ( * ) AS col0 FROM tab0 @@ -39508,8 +39952,15 @@ SELECT + 55 AS col0 FROM tab1 cor0 # Datafusion - Expected - 1770 # Datafusion - Expected - -550 # Datafusion - Expected - 2040 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ Int64\(\-9\) \* Int64\(51\) AS col0" at position 0 and "cor0\.col2 \* Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col0 + - 9 * + + 51 AS col0, col2 * 30 AS col0 FROM tab1 AS cor0 +---- +-510 +-544 +-550 +1770 +2040 +2880 # Datafusion - Datafusion expected results: # Datafusion - Expected - 141 @@ -39518,8 +39969,15 @@ SELECT ALL + - col0 + - 9 * + + 51 AS col0, col2 * 30 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - 97 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \+ tab2\.col0 AS col2" at position 0 and "\(\- tab2\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 + + col0 AS col2, - col1 AS col2 FROM tab2 +---- +-51 +-67 +-77 +141 +142 +97 query II rowsort label-6487 SELECT DISTINCT CAST ( - ( - col2 ) AS INTEGER ) + - col0 * col0 AS col1, - col0 FROM tab1 @@ -40098,8 +40556,11 @@ 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\(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\. +query II valuesort SELECT + MAX ( DISTINCT + col1 ) AS col2, 69 + + COUNT ( * ) * + + 15 + - COUNT ( * ) AS col2 FROM tab1 +---- +111 +47 query I rowsort label-6579 SELECT ALL 22 - - MIN ( ALL 3 ) AS col0 FROM tab1 AS cor0 @@ -40189,8 +40650,10 @@ SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * - 89 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 39cdc3c6203477a018c455449a219085 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- \(\- CAST\(Int64\(39\) AS Int32\)\)\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col2 * - - CAST ( 39 AS INTEGER ) AS col2, - col1 AS col2, - col0 FROM tab0 AS cor0 +---- +9 values hashing to ab8bfc075a6b2baf9c294fd19426f7a9 query II rowsort label-6593 SELECT ALL + col2 AS col2, col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 @@ -40677,8 +41140,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MAX ( ALL 43 ) AS col1, 46 + + MIN ( col0 ) * + 83 + - COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +3861 +43 query I rowsort SELECT 19 * 29 FROM tab2 AS cor0 WHERE col0 > col0 @@ -41215,8 +41681,15 @@ SELECT - - CAST ( 22 AS INTEGER ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - -44 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 44 AS col2, col0 AS col2 FROM tab2 AS cor0 +---- +-44 +-44 +-44 +46 +64 +75 query I rowsort SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT - 46 * col2 <> NULL @@ -41334,8 +41807,15 @@ SELECT MIN ( - col2 ) + - 69 FROM tab1 # Datafusion - Expected - -85 # Datafusion - Expected - 0 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \- tab1\.col1 AS col0" at position 0 and "\(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 - col1 AS col0, ( - col0 ) AS col0 FROM tab1 +---- +-51 +-85 +-91 +0 +0 +0 query II rowsort SELECT - 65 * + 71 col2, - 80 FROM tab0 @@ -41422,8 +41902,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 / col2 IS NOT NULL # Datafusion - Expected - -32 # Datafusion - Expected - -25 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col0" at position 0 and "Int64\(\-32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 25 col0, - 32 AS col0 FROM tab0 +---- +-25 +-25 +-25 +-32 +-32 +-32 query I rowsort SELECT DISTINCT col1 * + 56 col0 FROM tab2 @@ -42173,8 +42660,15 @@ SELECT 91 + - COUNT ( * ) + + - ( + SUM ( 90 ) ) FROM tab1 # Datafusion - Expected - 62 # Datafusion - Expected - 45 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col2" at position 0 and "tab0\.col2 \+ tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 45 AS col2, col2 + + col0 col2 FROM tab0 +---- +196 +45 +45 +45 +62 +97 query I rowsort SELECT DISTINCT 28 * + - 36 FROM tab2 @@ -44319,8 +44813,15 @@ SELECT ALL COUNT ( * ) - MAX ( ALL + 3 ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 3009 # Datafusion - Expected - -8301 # Datafusion - Expected - 3468 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col0 \- Int64\(20\) AS col0" at position 0 and "cor0\.col2 \* Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 * + col0 - + + 20 AS col0, col2 * + 51 AS col0 FROM tab1 cor0 +---- +-2621 +-7245 +-8301 +3009 +3468 +4896 query I rowsort label-7270 SELECT ALL - - 84 / - + col2 AS col0 FROM tab0 AS cor0 @@ -44461,8 +44962,15 @@ SELECT CAST ( AVG ( ALL - col2 ) AS INTEGER ) + MIN ( DISTINCT col1 ) FROM tab1 # Datafusion - Expected - -81 # Datafusion - Expected - 9801 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* tab0\.col2 AS col2" at position 0 and "\(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 * + col2 AS col2, - col1 AS col2 FROM tab0 +---- +-1 +-21 +-81 +100 +2209 +9801 query II rowsort SELECT col1 AS col2, 36 FROM tab0 @@ -44639,8 +45147,15 @@ SELECT + 15 AS col2 FROM tab2 WHERE NOT col1 IS NULL # Datafusion - Expected - -47 # Datafusion - Expected - -99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "\(\- cor0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2, ( - col2 ) FROM tab0 AS cor0 +---- +-10 +-10 +-47 +-47 +-99 +-99 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE - col0 * - - col2 < NULL @@ -45726,8 +46241,15 @@ SELECT ALL ( - - COUNT ( * ) ) * + + 37 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 37 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 AS col2, + col1 AS col2 FROM tab1 +---- +14 +37 +37 +37 +47 +5 query I rowsort label-7498 SELECT DISTINCT 21 * - COUNT ( * ) * + + 5 FROM tab2 @@ -45947,8 +46469,15 @@ SELECT DISTINCT - + col1 + ( - 48 ) FROM tab2 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 58 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(87\) \+ Int64\(20\) \+ \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 col0, 87 + 20 + + - col2 AS col0 FROM tab2 AS cor0 +---- +23 +40 +49 +58 +67 +84 query I rowsort label-7534 SELECT - - col0 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * 67 * - col2 < + - col1 + 91 @@ -45982,8 +46511,15 @@ SELECT ALL * FROM tab2 WHERE 81 IS NULL # Datafusion - Expected - 3886 # Datafusion - Expected - 96 # Datafusion - Expected - 1173 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \+ \(\- \(\- tab2\.col2\)\) AS col1" at position 0 and "tab2\.col1 \* tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 73 + - - col2 AS col1, + col1 * col2 AS col1 FROM tab2 +---- +113 +1173 +131 +3080 +3886 +96 query II rowsort label-7539 SELECT CAST ( + + col2 AS INTEGER ) AS col2, 45 FROM tab1 @@ -46260,8 +46796,15 @@ SELECT col1 * - ( col2 ) AS col0 FROM tab1 WHERE NOT - - col2 IS NOT NULL # Datafusion - Expected - -343570 # Datafusion - Expected - 75 # Datafusion - Expected - -343570 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "Int64\(43\) \* Int64\(94\) \* \(\- Int64\(85\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, + 43 * 94 * - + ( 85 ) col2 FROM tab2 +---- +-343570 +-343570 +-343570 +46 +64 +75 query I rowsort label-7585 SELECT - MAX ( DISTINCT + - col2 ) * MIN ( + - col2 ) col2 FROM tab1 @@ -46477,14 +47020,21 @@ SELECT DISTINCT COUNT ( + col0 ) AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 89 # Datafusion - Expected - -5 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 0 and "\(\- Int64\(\-86\)\) \- \(\- Int64\(\-66\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 89 AS col1, MIN ( 15 ) / - COUNT ( * ) AS col2, - - 86 - - - 66 AS col1 FROM tab2 AS cor0 +---- +-5 +20 +89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(74\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 47 AS col2, 74 + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL +---- +47 +74 query I rowsort label-7622 SELECT DISTINCT + - COUNT ( * ) * + + 79 AS col1 FROM tab1 AS cor0 @@ -46494,8 +47044,11 @@ SELECT DISTINCT + - COUNT ( * ) * + + 79 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(\(\- \(\- cor0\.col2\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2, - CAST ( NULL AS INTEGER ) * - COUNT ( * ) - COUNT ( ALL ( - - col2 ) ) AS col2 FROM tab2 AS cor0 +---- +NULL +NULL query I rowsort SELECT DISTINCT + + 35 * ( - col2 ) AS col0 FROM tab0 AS cor0 @@ -46632,8 +47185,15 @@ SELECT DISTINCT + COUNT ( * ) - - ( 99 ) FROM tab1 # Datafusion - Expected - 69 # Datafusion - Expected - -97 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* \(\- tab0\.col0\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 * - col0 col1, 69 AS col1 FROM tab0 +---- +-1215 +-1827 +-97 +69 +69 +69 query I rowsort SELECT ALL - col1 AS col2 FROM tab0 WHERE - col0 > NULL @@ -47250,8 +47810,15 @@ SELECT DISTINCT * FROM tab0 WHERE + col0 / CAST ( NULL AS INTEGER ) <= NULL # Datafusion - Expected - -87 # Datafusion - Expected - NULL # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* CAST\(NULL AS Int32\) \* tab0\.col0 AS col0" at position 0 and "\(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * + ( + CAST ( NULL AS INTEGER ) ) * col0 AS col0, - col0 AS col0 FROM tab0 +---- +-15 +-87 +-97 +NULL +NULL +NULL query I rowsort label-7750 SELECT ALL CAST ( + 53 AS INTEGER ) * - - col1 AS col1 FROM tab0 @@ -48064,8 +48631,10 @@ SELECT DISTINCT - - col0 FROM tab1 AS cor0 WHERE NOT ( CAST ( + 36 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a4582f1938c80f3ab6a1caeea6785b3b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + - col0 AS col2, col1 AS col2, col1 AS col1 FROM tab2 AS cor0 +---- +9 values hashing to 67d9ab00db1a827e619f0a41cc33b7b8 query I rowsort label-7886 SELECT + 94 / - MAX ( + + 22 ) AS col2 FROM tab2 @@ -48133,8 +48702,15 @@ SELECT DISTINCT - col2 AS col1, col0 + col2 col2 FROM tab1 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col1, col1 AS col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-7897 SELECT - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) col1 FROM tab0 @@ -49007,8 +49583,15 @@ SELECT col1 * + + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NUL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col0 AS col0, col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-8037 SELECT ALL CAST ( - 92 AS INTEGER ) * - 14 + + ( + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL @@ -49136,8 +49719,15 @@ SELECT col0 * + col0 * + col0 - + col0 + + 17 AS col1, 6 / - 6 AS col0 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - -77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +NULL +NULL +NULL query I rowsort label-8057 SELECT ALL - + MAX ( DISTINCT - 62 ) FROM tab2 AS cor0 @@ -49173,8 +49763,15 @@ SELECT DISTINCT + col2 AS col2, - 18, - ( - + col1 ) * - col1 col0 FROM tab2 # Datafusion - Expected - 0 # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- tab2\.col0\) / tab2\.col1 \* \(\- tab2\.col1\) \* Int64\(81\) / tab2\.col2 \* tab2\.col1 \* Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, - col0 / col1 * - col1 * 81 / col2 * + col1 * - 61 AS col1 FROM tab2 +---- +-380091 +0 +0 +NULL +NULL +NULL query III rowsort SELECT * FROM tab0 WHERE NOT col0 + + col0 IS NOT NULL @@ -49377,8 +49974,11 @@ SELECT DISTINCT + + 30 + + col0 AS col1 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) col0, - COUNT ( * ) * + + 7 col0 FROM tab1 AS cor0 +---- +-21 +3 query I rowsort SELECT DISTINCT + 2 + + 39 AS col1 FROM tab2 AS cor0 @@ -49386,8 +49986,9 @@ SELECT DISTINCT + 2 + + 39 AS col1 FROM tab2 AS cor0 41 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \+ \(\- \(\- cor0\.col1\)\) \* Int64\(68\) AS col1" at position 0 and "cor0\.col2 \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 87 + - + ( - + col1 ) * + 68 AS col1, col2 * col1 AS col1 FROM tab2 AS cor0 WHERE + 48 BETWEEN NULL AND NULL +---- query I rowsort label-8101 SELECT CAST ( 50 AS INTEGER ) * 43 - - COUNT ( * ) + - 19 AS col2 FROM tab1 @@ -49821,8 +50422,15 @@ SELECT ALL col1 * col2 + - col0 AS col1 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - 63 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + 63 ) AS col0, col2 AS col0 FROM tab1 +---- +59 +63 +63 +63 +68 +96 query I rowsort SELECT + - 82 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 @@ -49965,8 +50573,15 @@ SELECT - col0 * col1 * + 65 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 70 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 70 AS col1, + col0 col1 FROM tab1 AS cor0 +---- +51 +70 +70 +70 +85 +91 query I rowsort label-8194 SELECT ALL + MIN ( + ( + col0 ) ) * - 32 FROM tab2 AS cor0 @@ -51251,8 +51866,15 @@ SELECT ALL + 57 * + col2 + + + col1 - - + col1 * + ( - + col1 ) AS col0 FROM tab # Datafusion - Expected - 62 # Datafusion - Expected - 4 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-68\)\) \- \(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 68 - - - col0 AS col0, 62 AS col0 FROM tab2 AS cor0 +---- +-7 +22 +4 +62 +62 +62 query I rowsort label-8415 SELECT + COUNT ( * ) + + - 56 AS col2 FROM tab2 AS cor0 @@ -53218,8 +53840,11 @@ SELECT DISTINCT - + 88 * - + 2 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4785 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* max\(Int64\(87\)\) AS col0" at position 0 and "Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 55 * MAX ( ALL + 87 ) AS col0, - 60 AS col0 FROM tab0 AS cor0 +---- +-60 +4785 query I rowsort label-8739 SELECT ALL col0 / col2 + 44 + + col1 AS col2 FROM tab0 @@ -54887,8 +55512,15 @@ SELECT col0 * - col2 * + 55 FROM tab0 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col1, - col2 AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +10 +47 +99 query I rowsort label-9017 SELECT DISTINCT - CAST ( 2 AS INTEGER ) * - 92 col2 FROM tab2 AS cor0 @@ -55661,8 +56293,15 @@ SELECT DISTINCT + col2 * - + 82 * - col1 col2 FROM tab0 # Datafusion - Expected - -86 # Datafusion - Expected - 99 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "Int64\(\-86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, - 86 AS col0 FROM tab0 +---- +-86 +-86 +-86 +10 +47 +99 query III rowsort SELECT DISTINCT * FROM tab1 WHERE col2 >= + + col2 @@ -56139,8 +56778,9 @@ SELECT + - 41 * col0 FROM tab0 AS cor0 -615 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col1\) \+ cor0\.col2 AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + - col1 + + + col2 AS col1, + 8 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL +---- query I rowsort SELECT - 1 + - col2 FROM tab0 AS cor0 @@ -57331,8 +57971,15 @@ SELECT DISTINCT * FROM tab1 WHERE + col0 <> NULL # Datafusion - Expected - -58 # Datafusion - Expected - 5 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "Int64\(10\) \- cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 AS col2, + 10 - col2 AS col2 FROM tab1 AS cor0 +---- +-49 +-58 +-86 +14 +47 +5 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( NULL ) IS NOT NULL ) @@ -57534,8 +58181,15 @@ SELECT ALL 44 / + col1 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 10 # Datafusion - Expected - -81 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, col2 AS col0 FROM tab0 +---- +-1 +-21 +-81 +10 +47 +99 query I rowsort label-9449 SELECT DISTINCT 1 * COUNT ( * ) FROM tab2 @@ -57587,8 +58241,15 @@ SELECT DISTINCT + 2 col2 FROM tab0 cor0 # Datafusion - Expected - -6003 # Datafusion - Expected - 81 # Datafusion - Expected - -6693 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col1" at position 0 and "tab0\.col0 \* \(\- Int64\(69\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 81 AS col1, col0 * - + 69 AS col1 FROM tab0 +---- +-1035 +-6003 +-6693 +81 +81 +81 query I rowsort SELECT DISTINCT - col1 FROM tab2 cor0 WHERE - col1 BETWEEN col2 / - 17 AND col2 @@ -57721,8 +58382,15 @@ SELECT - + ( COUNT ( * ) ) * 38 FROM tab0 AS cor0 # Datafusion - Expected - 42 # Datafusion - Expected - -81 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col1 AS col2, + 42 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +42 +42 +42 query I rowsort SELECT - 3 * col0 AS col0 FROM tab2 AS cor0 @@ -58291,8 +58959,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, + ( + 78 ) AS col2 FROM tab1 AS cor0 +---- +-3 +78 query I rowsort label-9572 SELECT CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE col2 >= NULL @@ -59943,8 +60614,15 @@ SELECT + COUNT ( * ) + + + 28 + - 73 col1 FROM tab0 AS cor0 # Datafusion - Expected - 72 # Datafusion - Expected - 5 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 AS col0, 72 AS col0 FROM tab1 AS cor0 +---- +14 +47 +5 +72 +72 +72 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 73 @@ -60265,8 +60943,15 @@ SELECT 54 + + MAX ( ALL - - 55 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 96 # Datafusion - Expected - 9409 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col1 \* \(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col0 \- \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 * col1 * - + col0 AS col0, + col0 - - col1 AS col0 FROM tab0 AS cor0 +---- +108 +158949 +18225 +9409 +96 +98 query I rowsort label-9896 SELECT ALL + - col0 * + 52 + + + CAST ( NULL AS INTEGER ) * - col1 * + + col0 AS col2 FROM tab2 cor0 @@ -60491,8 +61176,9 @@ SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT 9 = - 13 OR NOT ( NOT NULL IS NOT -58 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* \(\- tab0\.col2\) \- tab0\.col0 AS col2" at position 0 and "tab0\.col0 \* tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 14 * - col2 - col0 AS col2, col0 * col0 AS col2 FROM tab0 WHERE NOT col1 + 42 IS NOT NULL +---- query I rowsort label-9934 SELECT + 97 * COUNT ( * ) AS col2 FROM tab2 @@ -60784,8 +61470,15 @@ SELECT ALL * FROM tab1 WHERE 91 BETWEEN + + col1 + - 5 / + col0 AND + - col2 + c # Datafusion - Expected - 0 # Datafusion - Expected - 840 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* Int64\(56\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * + 56 AS col1, + 0 AS col1 FROM tab0 +---- +0 +0 +0 +4872 +5432 +840 query I rowsort label-9980 SELECT ALL + MIN ( + 27 ) FROM tab2 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_94.slt b/data/sqlite/random/aggregates/slt_good_94.slt index a3d483d..a928613 100644 --- a/data/sqlite/random/aggregates/slt_good_94.slt +++ b/data/sqlite/random/aggregates/slt_good_94.slt @@ -2450,8 +2450,11 @@ SELECT ( - col0 ) - + col0 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(34\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - CAST ( NULL AS INTEGER ) / COUNT ( * ) * + 34 AS col2, + COUNT ( * ) col2 FROM tab0 cor0 +---- +3 +NULL query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + + 88 IS NULL @@ -3232,8 +3235,15 @@ SELECT ALL - MIN ( DISTINCT + 96 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - -71 # Datafusion - Expected - 81 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "Int64\(\-70\) \+ \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 81 AS col2, - 70 + - col1 AS col2 FROM tab0 +---- +-151 +-71 +-91 +81 +81 +81 query I rowsort SELECT ALL - col0 - - 81 + - col1 FROM tab0 @@ -3544,8 +3554,11 @@ SELECT ALL 71 * - 12 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 82 AS col1 FROM tab2 +---- +3 +82 query III rowsort label-574 SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0, 26, + + col2 * - 56, - CAST ( + col0 AS INTEGER ), col1 ) @@ -3586,8 +3599,9 @@ SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) <= NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ Int64\(8\) \+ Int64\(79\) \+ Int64\(50\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 + 8 + 79 + 50 col0, ( - col0 ) AS col0 FROM tab1 AS cor0 WHERE - 28 BETWEEN + col2 / + col2 + col2 + + CAST ( - - col1 AS INTEGER ) AND + - 19 +---- query I rowsort SELECT ALL col1 + - col0 * + 31 FROM tab1 AS cor0 @@ -3626,8 +3640,12 @@ 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\(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\. +query III valuesort SELECT DISTINCT + 6, COUNT ( * ) * - SUM ( - - 73 ) AS col0, 10 AS col0 FROM tab1 +---- +-657 +10 +6 query I rowsort SELECT - col1 + ( + col0 ) FROM tab0 @@ -5193,8 +5211,11 @@ SELECT * FROM tab0 WHERE + 50 <= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL +---- +3 +3 query I rowsort label-856 SELECT - 72 + + COUNT ( * ) * + 48 FROM tab0 AS cor0 @@ -5292,8 +5313,15 @@ SELECT DISTINCT - 83 * - - col2 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, + col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-872 SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) @@ -5790,8 +5818,11 @@ SELECT 47 AS col0, col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, - 2 AS col0 FROM tab2 +---- +-2 +3 query I rowsort label-953 SELECT ALL + MAX ( ALL - 31 ) FROM tab2 WHERE ( NULL NOT BETWEEN col0 AND 84 ) @@ -7394,8 +7425,15 @@ NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0, col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort label-1220 SELECT + COUNT ( * ) * SUM ( ALL + col2 ) / ( + 70 ) + COUNT ( + + col0 ) AS col0 FROM tab0 @@ -7980,8 +8018,15 @@ SELECT DISTINCT 62, 55 AS col2 FROM tab0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col2, col2 FROM tab2 WHERE - ( - 72 ) IS NOT NULL +---- +23 +23 +40 +40 +58 +58 query III rowsort SELECT * FROM tab2 WHERE NOT col2 BETWEEN + 50 - + col2 AND + - col1 * col2 * 72 @@ -8259,8 +8304,15 @@ SELECT + 24 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN + CAST ( NULL AS INTEGE # Datafusion - Expected - 11 # Datafusion - Expected - 46 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "cor0\.col2 / \(\- \(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 46 AS col2, + col2 / - - col1 AS col2 FROM tab1 AS cor0 +---- +1 +11 +46 +46 +46 +6 query III rowsort SELECT * FROM tab1 cor0 WHERE col1 >= 70 @@ -9447,8 +9499,9 @@ SELECT DISTINCT MIN ( + 35 ) AS col2 FROM tab0 cor0 35 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "\(\- cor0\.col2\) \* cor0\.col1 \* Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col1 AS col2, - col2 * + col1 * + 20 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col2 * - col2 AND + 19 + + + col2 +---- query III rowsort SELECT * FROM tab1 AS cor0 WHERE + col1 * 56 * 83 - 44 IS NOT NULL @@ -9876,8 +9929,11 @@ SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NOT + 14 * col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 13 AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +13 +3 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col1 + col0 ) > - col1 @@ -10043,8 +10099,11 @@ SELECT * FROM tab1 WHERE - ( - + col0 ) / - col2 * + + 50 * - col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, + 8 col1 FROM tab0 +---- +3 +8 query I rowsort SELECT col2 * - - 54 + + col2 FROM tab2 @@ -10321,8 +10380,10 @@ SELECT - col0 + - col2 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN NULL AND NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 39e3d52a7eabd3221ef3bacd38bca3b2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(\-55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col0 col0, - 55 AS col0, + col1 AS col0 FROM tab0 AS cor0 +---- +9 values hashing to 19063a8d0700f41f829bb12777edee93 query III rowsort label-1699 SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col1 + + - CAST ( + 68 AS INTEGER ) @@ -10599,8 +10660,15 @@ SELECT 22 * col1 - 63 FROM tab1 AS cor0 # Datafusion - Expected - 4959 # Datafusion - Expected - -3432 # Datafusion - Expected - 5046 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-88\)\) \* Int64\(\-39\) AS col2" at position 0 and "cor0\.col1 \+ cor0\.col1 \* cor0\.col0 \+ Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 88 * - 39 AS col2, + col1 + + col1 * + col0 + - 46 AS col2 FROM tab2 AS cor0 +---- +-3432 +-3432 +-3432 +2351 +4959 +5046 query I rowsort SELECT ALL + + 67 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -10614,8 +10682,15 @@ SELECT ALL + + 67 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 90 # Datafusion - Expected - 8 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 8 AS col0, + 90 AS col0 FROM tab1 AS cor0 +---- +8 +8 +8 +90 +90 +90 query II rowsort label-1743 SELECT 22 col1, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 @@ -10644,8 +10719,15 @@ SELECT DISTINCT - + col2, - col1 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - -49 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 49 AS col2, - col0 AS col2 FROM tab0 AS cor0 +---- +-15 +-49 +-49 +-49 +-87 +-97 query I rowsort SELECT ALL - + ( + + 89 ) + + + col0 FROM tab0 AS cor0 @@ -10947,8 +11029,15 @@ SELECT DISTINCT ( - 45 ) FROM tab2 AS cor0 # Datafusion - Expected - 10 # Datafusion - Expected - -81 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 col1, col2 col1 FROM tab0 +---- +-1 +-21 +-81 +10 +47 +99 query II rowsort SELECT DISTINCT col2 AS col2, + 65 - + 16 FROM tab0 @@ -11304,8 +11393,15 @@ SELECT + + 98 * + - 23 FROM tab0 AS cor0 # Datafusion - Expected - 15 # Datafusion - Expected - 93177 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) \* tab0\.col0 \* Int64\(\-51\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + col1 ) * col0 * - 51 col1, col0 AS col1 FROM tab0 +---- +15 +4947 +61965 +87 +93177 +97 query I rowsort label-1852 SELECT ALL ( - ( COUNT ( * ) ) ) * 41 FROM tab1 @@ -11703,8 +11799,11 @@ SELECT CAST ( - 81 AS INTEGER ) col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 89 * CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab1 +---- +3 +NULL query III rowsort label-1917 SELECT * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) + + 41 - col1 NOT BETWEEN - + col1 AND col0 + - 56 @@ -11951,8 +12050,9 @@ SELECT DISTINCT * FROM tab1 WHERE ( + col1 ) < - CAST ( NULL AS INTEGER ) ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, 74 AS col2 FROM tab0 AS cor0 WHERE ( + col0 NOT BETWEEN NULL AND NULL ) +---- query II rowsort label-1958 SELECT col2 * + - 16 + - 42 * CAST ( + 10 AS INTEGER ), col1 + - col1 * col0 * col0 AS col2 FROM tab0 cor0 @@ -12311,8 +12411,15 @@ SELECT col1 * - col0 AS col0, - col1 FROM tab2 AS cor0 # Datafusion - Expected - 82 # Datafusion - Expected - 1568 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \* \(\- Int64\(98\)\) AS col1" at position 0 and "Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 16 * - + 98 AS col1, 82 AS col1 FROM tab2 AS cor0 +---- +1568 +1568 +1568 +82 +82 +82 query I rowsort label-2015 SELECT ALL - - SUM ( DISTINCT col1 ) col0 FROM tab0 AS cor0 @@ -12947,8 +13054,11 @@ SELECT 78 / + 13 FROM tab2, tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 48 AS col1, COUNT ( * ) AS col1 FROM tab0 +---- +3 +48 query I rowsort label-2126 SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL = col0 @@ -13299,8 +13409,15 @@ SELECT ALL col1 - - + col0, + col1 col2 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 155 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \- \(\- Int64\(93\)\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 62 - - + 93 col0, + col1 AS col0 FROM tab1 +---- +14 +155 +155 +155 +47 +5 query I rowsort SELECT DISTINCT + col0 FROM tab0 WHERE NOT col2 IS NOT NULL @@ -13328,8 +13445,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + ( COUNT ( * ) ), COUNT ( * ) FROM tab0 AS cor0 +---- +3 +3 query I rowsort SELECT + 89 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + col1 AND NULL @@ -13351,8 +13471,15 @@ SELECT ALL 48 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 21 # Datafusion - Expected - -55 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 55 AS col0, col1 AS col0 FROM tab0 cor0 +---- +-55 +-55 +-55 +1 +21 +81 query I rowsort label-2192 SELECT ALL MIN ( - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 * + + col0 BETWEEN + 79 AND NULL @@ -13457,8 +13584,15 @@ SELECT 11 + + MAX ( - col1 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - -51 # Datafusion - Expected - 5683 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \+ tab2\.col0 \* tab2\.col0 AS col0" at position 0 and "\(\- tab2\.col0\) \+ Int64\(38\) \+ Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + + col0 * + col0 AS col0, - col0 + 38 + - 25 AS col0 FROM tab2 +---- +-33 +-51 +-62 +2139 +4136 +5683 query I rowsort SELECT DISTINCT 65 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 @@ -14727,8 +14861,15 @@ SELECT col0 * - col1 + - - 25 + 26 FROM tab1 AS cor0 # Datafusion - Expected - 10 # Datafusion - Expected - 94 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \- \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col2 \* Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 - - col2 AS col2, col2 * + 1 AS col2 FROM tab0 AS cor0 +---- +10 +198 +20 +47 +94 +99 query III rowsort SELECT DISTINCT * FROM tab1 WHERE ( col2 ) * + col1 + + 3 + + col2 + 6 > NULL @@ -14835,8 +14976,15 @@ SELECT ( - + 16 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -61 # Datafusion - Expected - 6417 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \* Int64\(69\) AS col1" at position 0 and "Int64\(\-91\) \+ Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 93 * 69 AS col1, - 91 + + + 30 AS col1 FROM tab1 AS cor0 +---- +-61 +-61 +-61 +6417 +6417 +6417 query I rowsort label-2426 SELECT DISTINCT COUNT ( * ) / - - 37 AS col1 FROM tab1 AS cor0 @@ -15299,8 +15447,10 @@ SELECT DISTINCT + col2 * - 43 col2 FROM tab1 AS cor0 WHERE 37 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 6fc249e121784cff94207e1a084e97e6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ Int64\(74\) AS col0" at position 0 and "cor0\.col2 \+ cor0\.col1 \- cor0\.col0 \* cor0\.col0 AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT col1 + 74 col0, + col1 + CAST ( NULL AS INTEGER ) + col0, + col2 + col1 - + + col0 * col0 AS col0 FROM tab0 AS cor0 +---- +9 values hashing to 0ee516a1979db1c313666fefc967bf58 query I rowsort label-2501 SELECT ALL + - COUNT ( - col1 ) + + + COUNT ( * ) / COUNT ( * ) AS col1 FROM tab0 AS cor0 @@ -15735,8 +15885,15 @@ SELECT - ( col2 ) * ( + col0 ) FROM tab2 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - -84 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 84 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +-84 +-84 +-84 +23 +40 +58 query I rowsort label-2580 SELECT - col2 / + 70 * + - col2 AS col2 FROM tab2 AS cor0 @@ -16404,8 +16561,11 @@ SELECT DISTINCT - 22 + + 14 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1404 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- tab0\.col2\)\) \* Int64\(9\) AS col0" at position 0 and "Int64\(\-27\) \+ count\(tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( ALL - col2 ) * 9 AS col0, - 27 + + COUNT ( ALL + col2 ) AS col0 FROM tab0 +---- +-1404 +-24 query I rowsort label-2695 SELECT ALL - MIN ( ALL + 51 ) AS col2 FROM tab2 @@ -17033,8 +17193,11 @@ 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 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 II valuesort SELECT DISTINCT + - COUNT ( * ) + - 1 col2, MIN ( ALL - col2 ) AS col2 FROM tab2 AS cor0 +---- +-4 +-58 query I rowsort label-2798 SELECT DISTINCT + 75 + + ( COUNT ( + + col0 ) ) FROM tab2 AS cor0 @@ -17093,8 +17256,15 @@ SELECT COUNT ( DISTINCT col1 ) + - 54 FROM tab0 WHERE + col1 >= col1 * col0 # Datafusion - Expected - -3080 # Datafusion - Expected - -58 # Datafusion - Expected - -3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col2" at position 0 and "\(\- tab2\.col1\) \* \(\- \(\- tab2\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col2, - col1 * - - col2 AS col2 FROM tab2 +---- +-1173 +-23 +-3080 +-3886 +-40 +-58 query I rowsort SELECT col2 * - + 72 AS col2 FROM tab2 @@ -17612,8 +17782,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT NULL < - + ( CAST ( NULL AS INTEGER ) ) # Datafusion - Expected - -20 # Datafusion - Expected - -4 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col1" at position 0 and "tab2\.col1 / tab2\.col0 \+ Int64\(\-21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 4 AS col1, + col1 / + col0 + - 21 AS col1 FROM tab2 +---- +-20 +-20 +-21 +-4 +-4 +-4 query I rowsort SELECT ALL - col2 + - col2 + col0 - - 89 col1 FROM tab2 @@ -19016,8 +19193,15 @@ SELECT DISTINCT + + ( + - MAX ( 15 ) ) col1 FROM tab2 AS cor0 # Datafusion - Expected - -3501 # Datafusion - Expected - -64000 # Datafusion - Expected - -4877 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \* cor0\.col2 \* cor0\.col2 AS col0" at position 0 and "Int64\(75\) \* \(\- \(\- \(\- cor0\.col0\)\)\) \- \(\- \(\- \(\- \(\- cor0\.col1\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 40 * col2 * + + col2 AS col0, 75 * - + ( - - col0 ) - - - ( - - col1 ) AS col0 FROM tab2 AS cor0 +---- +-134560 +-21160 +-3501 +-4877 +-5692 +-64000 query I rowsort label-3122 SELECT + - 92 * + COUNT ( * ) + - + COUNT ( * ) FROM tab0 AS cor0 @@ -20389,8 +20573,11 @@ SELECT - 4 + + ( col1 ) AS col1 FROM tab2 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 "min\(cor0\.col1\)" at position 0 and "min\(cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( + col1 ), MIN ( ALL + col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL +---- +NULL +NULL query I rowsort SELECT DISTINCT + 89 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 @@ -20650,8 +20837,15 @@ NULL # Datafusion - Expected - -59 # Datafusion - Expected - -142 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-48\)\) \- cor0\.col0 \+ Int64\(\-99\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 48 - col0 + - 99 AS col0, - col2 AS col0 FROM tab1 AS cor0 +---- +-102 +-136 +-142 +-59 +-68 +-96 query I rowsort SELECT DISTINCT + 41 + - ( - 76 ) FROM tab1 cor0 @@ -21514,8 +21708,15 @@ SELECT DISTINCT - MAX ( DISTINCT + 8 ) FROM tab2 # Datafusion - Expected - -33 # Datafusion - Expected - 97 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(\-54\) \+ tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col2, - 54 + col1 AS col2 FROM tab0 +---- +-33 +-53 +15 +27 +87 +97 query I rowsort label-3532 SELECT COUNT ( * ) col1 FROM tab1 WHERE NOT ( + 43 ) <> 52 @@ -21701,8 +21902,15 @@ SELECT + 53 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL # Datafusion - Expected - -67 # Datafusion - Expected - -58 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 AS col1, - col1 AS col1 FROM tab2 cor0 +---- +-51 +-58 +-58 +-58 +-67 +-77 query II rowsort label-3560 SELECT DISTINCT 63 + + COUNT ( * ), + 22 / + COUNT ( * ) AS col1 FROM tab0 @@ -21805,8 +22013,11 @@ SELECT DISTINCT + SUM ( DISTINCT + col0 ) + - 58 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-85\)\) AS col2" at position 0 and "tab2\.col1 \+ tab2\.col2 \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - 85 ) col2, col1 + col2 - - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 +---- +85 +NULL query I rowsort SELECT ALL 51 - + 89 AS col1 FROM tab0 @@ -22182,8 +22393,15 @@ NULL # Datafusion - Expected - 4410 # Datafusion - Expected - -97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "\(\- tab0\.col1\) \* tab0\.col1 \* \(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, - col1 * col1 * - col2 AS col2 FROM tab0 +---- +-15 +-87 +-97 +308367 +4410 +99 query I rowsort SELECT 87 + + ( - 82 ) AS col1 FROM tab0, tab2 AS cor0 @@ -22247,8 +22465,15 @@ SELECT + 36, COUNT ( * ) * + + 8 * + 13 * + COUNT ( * ) AS col2 FROM tab2 AS cor # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( col2 ), col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -22439,8 +22664,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, - COUNT ( * ) AS col0 FROM tab1 +---- +-3 +-3 query II rowsort SELECT DISTINCT + col2 AS col2, + ( - + 83 ) AS col1 FROM tab1 @@ -22493,8 +22721,15 @@ SELECT ALL + - ( - + 34 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE N # Datafusion - Expected - -90 # Datafusion - Expected - 80 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ Int64\(26\) \+ cor0\.col0 AS col2" at position 0 and "Int64\(\-90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 39 + 26 + + col0 AS col2, - 90 AS col2 FROM tab0 AS cor0 +---- +-90 +-90 +-90 +152 +162 +80 query I rowsort label-3690 SELECT - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE col2 + - col0 IS NULL @@ -22577,8 +22812,10 @@ SELECT - 85 * - col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to ab50f2ae1fd6162b4f09590b828f7a58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \* Int64\(20\) \* CAST\(CAST\(NULL AS Int32\) AS Int32\) / Int64\(68\) \- tab2\.col1 \- tab2\.col2 AS col2" at position 0 and "tab2\.col2 \* Int64\(\-75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col1 * 20 * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / + 68 - + col1 - col2 AS col2, + ( + col2 ) * - 75 AS col2, + col2 * - col0 AS col2 FROM tab2 +---- +9 values hashing to 8707251faf8679b187cc382709c1610e query I rowsort label-3703 SELECT ALL ( 77 ) - - CAST ( NULL AS INTEGER ) * - ( col0 ) * col0 FROM tab0 @@ -23051,8 +23288,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col1, col1 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort SELECT ALL col1 + + + 4 * - col2 FROM tab2 AS cor0 @@ -23326,8 +23570,15 @@ SELECT ALL SUM ( ALL + + col0 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -53 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col1" at position 0 and "tab1\.col2 \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 53 AS col1, col2 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 +---- +-53 +-53 +-53 +NULL +NULL +NULL query I rowsort SELECT DISTINCT 15 col0 FROM tab1 AS cor0 @@ -24936,8 +25187,15 @@ SELECT - 75 * + col2 col0 FROM tab0 # Datafusion - Expected - -47 # Datafusion - Expected - -99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\)" at position 0 and "\(\- tab0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2, - col2 FROM tab0 +---- +-10 +-10 +-47 +-47 +-99 +-99 query III rowsort label-4094 SELECT * FROM tab0 WHERE CAST ( + 48 AS FLOAT8 ) IN ( col1 * 64 + - ( - - col1 ) ) @@ -25063,8 +25321,15 @@ SELECT ALL 52 / - 7 AS col1 FROM tab1 # Datafusion - Expected - 99 # Datafusion - Expected - 50 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \+ tab0\.col2 \+ Int64\(18\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 + col2 + + 18 AS col1, col2 AS col1 FROM tab0 +---- +-59 +10 +20 +47 +50 +99 query II rowsort label-4114 SELECT - 19 AS col2, COUNT ( * ) AS col1 FROM tab0 AS cor0 @@ -25198,8 +25463,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* sum\(DISTINCT cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 23 AS col1, - 7 * COUNT ( * ) * + SUM ( DISTINCT col0 ) col1 FROM tab2 AS cor0 +---- +-23 +-3885 query I rowsort SELECT - col2 * - + 20 AS col0 FROM tab2 @@ -26602,8 +26870,15 @@ SELECT ALL - ( col1 ) col1 FROM tab0 # Datafusion - Expected - -1827 # Datafusion - Expected - 95 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-63\)\) \+ Int64\(32\) AS col2" at position 0 and "cor0\.col0 \* \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 63 + + 32 AS col2, col0 * - col1 AS col2 FROM tab0 AS cor0 +---- +-1215 +-1827 +-97 +95 +95 +95 query I rowsort SELECT col1 + + 4 FROM tab1 AS cor0 @@ -27247,8 +27522,15 @@ SELECT DISTINCT col1 + + col0 AS col1, + CAST ( - - col0 AS INTEGER ) AS col2 FR # Datafusion - Expected - 116 # Datafusion - Expected - 5 # Datafusion - Expected - 110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col0 \+ Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col1 AS col0, col0 + + 25 AS col0 FROM tab1 AS cor0 +---- +110 +116 +14 +47 +5 +76 query III rowsort SELECT ALL * FROM tab0 cor0 WHERE 77 - col2 NOT BETWEEN - 55 AND + - col0 @@ -27850,8 +28132,9 @@ SELECT DISTINCT + col1 / + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) / Int64\(\-32\) \+ \(\- cor0\.col1\) \* Int64\(\-27\) \- cor0\.col0 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 83 / - 32 + - col1 * - 27 - + col0 AS col0, + col2 AS col0 FROM tab1 cor0 WHERE NOT + col0 BETWEEN + + col1 AND NULL +---- query I rowsort label-4567 SELECT + - COUNT ( * ) * - - 82 * + + MAX ( ALL - + ( + col2 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL @@ -27865,8 +28148,15 @@ SELECT + - COUNT ( * ) * - - 82 * + + MAX ( ALL - + ( + col2 ) ) AS col2 FROM ta # Datafusion - Expected - -99 # Datafusion - Expected - -5 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* cor0\.col0 / \(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 * col0 / - col2 AS col0, - col2 AS col0 FROM tab0 AS cor0 +---- +-10 +-156 +-17 +-47 +-5 +-99 query I rowsort label-4569 SELECT ALL CAST ( - col1 AS INTEGER ) * - ( + + col2 ) FROM tab2 @@ -28284,8 +28574,15 @@ SELECT - 81 * COUNT ( * ) FROM tab0 cor0 # Datafusion - Expected - -85 # Datafusion - Expected - 98 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 AS col1, - col0 AS col1 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +98 +98 +98 query I rowsort SELECT - - col0 AS col1 FROM tab1 WHERE NOT + - col1 IS NULL @@ -28868,8 +29165,15 @@ SELECT - 71 * col1 + col1 + + col1 + - col2 FROM tab2 AS cor0 # Datafusion - Expected - -94 # Datafusion - Expected - -7448 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* Int64\(\-98\) AS col0" at position 0 and "Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 76 * - 98 AS col0, - 94 col0 FROM tab2 +---- +-7448 +-7448 +-7448 +-94 +-94 +-94 query I rowsort SELECT DISTINCT - 75 * col0 AS col1 FROM tab2 @@ -28970,8 +29274,15 @@ SELECT + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - 20 # Datafusion - Expected - 6075 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \* \(\- cor0\.col0\) \* \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 * + - col0 * - col0 AS col1, 20 col1 FROM tab0 AS cor0 WHERE NULL IS NULL +---- +20 +20 +20 +204363 +254043 +6075 query I rowsort SELECT DISTINCT - col1 + - 12 FROM tab1 cor0 @@ -29090,8 +29401,15 @@ NULL # Datafusion - Expected - -68 # Datafusion - Expected - 96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 col0, - ( col2 ) AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +59 +68 +96 query II rowsort label-4763 SELECT ALL 4 * - COUNT ( * ), - 88 AS col2 FROM tab2 @@ -30784,8 +31102,15 @@ SELECT + MAX ( + + 62 ) FROM tab2 AS cor0 # Datafusion - Expected - 9 # Datafusion - Expected - -77 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, 9 AS col1 FROM tab2 +---- +-51 +-67 +-77 +9 +9 +9 query I rowsort SELECT col1 / - + 20 AS col2 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL @@ -30866,8 +31191,15 @@ SELECT col1 / + + col1 + 37 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 34 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 34 AS col1, ( col0 ) AS col1 FROM tab2 AS cor0 +---- +34 +34 +34 +46 +64 +75 query I rowsort label-5054 SELECT CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL @@ -31577,8 +31909,9 @@ SELECT ALL - - COUNT ( * ) + + + 63 col1 FROM tab2 AS cor0 66 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 col0, 97 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL +---- query I rowsort label-5175 SELECT DISTINCT + MAX ( DISTINCT - - 85 ) + - 90 FROM tab2 AS cor0 @@ -32049,8 +32382,15 @@ SELECT + COUNT ( * ) * + 2 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - 71 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-71\)\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 71 AS col0, - col2 AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +71 +71 +71 query I rowsort label-5248 SELECT DISTINCT + + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0 @@ -32785,8 +33125,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 1 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 AS col2, + col1 AS col2 FROM tab1 +---- +1 +1 +1 +14 +47 +5 query I rowsort label-5370 SELECT DISTINCT - COUNT ( DISTINCT col2 ) + 85 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT col2 * + ( + - 74 ) + + 93 IS NULL @@ -33254,8 +33601,15 @@ SELECT ALL - col2 * + + col2 FROM tab0 # Datafusion - Expected - -40 # Datafusion - Expected - 79 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 79 AS col0, - col2 col0 FROM tab2 +---- +-23 +-40 +-58 +79 +79 +79 query III rowsort SELECT ALL * FROM tab2 WHERE NULL <> - 67 @@ -33501,8 +33855,15 @@ SELECT + - ( + - 28 ) FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col2" at position 0 and "\(\- tab0\.col1\) \+ \(\- \(\- \(\- \(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\)\)\)\)\) \- tab0\.col1 \* tab0\.col0 \* \(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, - ( col1 ) + - ( - ( - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) - col1 * col0 * + - col0 AS col2 FROM tab0 +---- +-1 +-21 +-81 +NULL +NULL +NULL query I rowsort label-5485 SELECT DISTINCT - col2 + col1 / + col1 FROM tab2 AS cor0 @@ -34090,8 +34451,11 @@ SELECT ALL - - col1 + col2 + - col1 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 55 AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +3 +55 query I rowsort SELECT ALL col1 + + - col0 + - - col2 FROM tab2 AS cor0 @@ -35708,8 +36072,11 @@ SELECT ALL 81 * - COUNT ( * ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 29 AS col2 FROM tab1 +---- +29 +3 query I rowsort SELECT ALL + col0 * - - 15 col0 FROM tab1 @@ -36075,8 +36442,15 @@ SELECT ALL ( - + 65 ) FROM tab2 AS cor0 # Datafusion - Expected - 62 # Datafusion - Expected - 75 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col0 col1, 62 AS col1 FROM tab2 AS cor0 +---- +46 +62 +62 +62 +64 +75 query I rowsort SELECT ALL - ( + ( + 95 ) ) AS col0 FROM tab1 AS cor0 @@ -36302,8 +36676,15 @@ SELECT * FROM tab2 WHERE NOT - 49 <= NULL # Datafusion - Expected - -6265 # Datafusion - Expected - 96 # Datafusion - Expected - -6265 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "Int64\(\-34\) \+ Int64\(\-67\) \* Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 AS col0, - 34 + - 67 * + 93 AS col0 FROM tab1 AS cor0 +---- +-6265 +-6265 +-6265 +59 +68 +96 query III rowsort label-5945 SELECT * FROM tab0 cor0 WHERE NOT + CAST ( - 84 AS INTEGER ) + + 93 IN ( col1, 81, - col0 * - 54 ) @@ -36875,8 +37256,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + 74 <= - col2 ) # Datafusion - Expected - 22 # Datafusion - Expected - -585 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(\-75\) \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 * - col0 AS col1, - 75 + col0 AS col1 FROM tab0 AS cor0 +---- +-3393 +-3783 +-585 +-60 +12 +22 query I rowsort label-6038 SELECT 74 * - 9 + + COUNT ( * ) AS col2 FROM tab0 AS cor0 @@ -37571,8 +37959,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * + 83 AS col1, 55 AS col1 FROM tab2 +---- +249 +55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 @@ -38036,8 +38427,11 @@ SELECT col2 + 38 * + 4 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - -648 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-79\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(Int64\(72\) AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + ( - 79 ) AS col2, - COUNT ( * ) * + CAST ( + 72 AS INTEGER ) * COUNT ( * ) col2 FROM tab0 AS cor0 +---- +-648 +79 query I rowsort label-6234 SELECT DISTINCT + - COUNT ( CAST ( + - col0 AS INTEGER ) ) FROM tab1 AS cor0 @@ -38103,8 +38497,15 @@ SELECT DISTINCT ( + COUNT ( * ) ) * - 21 col0 FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, + col0 col1 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-6244 SELECT + 51 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 @@ -38535,8 +38936,15 @@ SELECT DISTINCT * FROM tab1 WHERE - + CAST ( + ( - - col2 ) AS INTEGER ) * - 36 # Datafusion - Expected - -31 # Datafusion - Expected - 77 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(\-31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, - 31 AS col2 FROM tab2 AS cor0 +---- +-31 +-31 +-31 +51 +67 +77 query I rowsort SELECT DISTINCT - ( + - 74 ) - 83 AS col2 FROM tab2 AS cor0 @@ -38756,8 +39164,15 @@ SELECT DISTINCT MIN ( + 22 ) + + + 74 AS col0 FROM tab1 # Datafusion - Expected - -112 # Datafusion - Expected - 59 # Datafusion - Expected - -140 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "\(\- Int64\(44\)\) \- cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 59 col1, - ( 44 ) - + col2 AS col1 FROM tab1 AS cor0 +---- +-103 +-112 +-140 +59 +59 +59 query II rowsort SELECT 89, ( ( + col1 ) ) AS col1 FROM tab0 AS cor0 @@ -38819,8 +39234,11 @@ SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE CAST ( col0 AS INTEGER ) IS # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 +---- +3 +3 query I rowsort SELECT ALL - col2 + + - col0 AS col0 FROM tab1 @@ -38878,8 +39296,15 @@ SELECT 59 AS col1, - ( + - col2 ) FROM tab1 AS cor0 # Datafusion - Expected - -20 # Datafusion - Expected - -6 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(6\)\) AS col2" at position 0 and "Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 6 AS col2, - 20 AS col2 FROM tab2 AS cor0 +---- +-20 +-20 +-20 +-6 +-6 +-6 query III rowsort SELECT * FROM tab2 WHERE NOT col2 * - col2 NOT BETWEEN + 63 AND + - 38 @@ -39080,8 +39505,15 @@ SELECT * FROM tab0 WHERE NOT + - col0 + - col1 IS NULL # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + col0 ) AS col0, col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query II rowsort label-6409 SELECT - MAX ( ALL + + col0 ) AS col2, COUNT ( * ) * COUNT ( * ) FROM tab1 @@ -39160,8 +39592,11 @@ SELECT DISTINCT - col0 + + + 67 * 4 AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(tab0\.col2\)\) AS col1" at position 0 and "min\(Int64\(80\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - AVG ( col2 ) AS col1, MIN ( 80 ) + + + COUNT ( * ) AS col1 FROM tab0 WHERE + - 11 = + col2 / + - col0 +---- +NULL +NULL query II rowsort label-6423 SELECT col2 / - + 61 col2, - col0 * col2 FROM tab0 @@ -39711,8 +40146,15 @@ NULL # Datafusion - Expected - -7238 # Datafusion - Expected - 58 # Datafusion - Expected - -6298 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col1 \* Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 AS col0, col1 * - 94 col0 FROM tab2 AS cor0 +---- +-4794 +-6298 +-7238 +23 +40 +58 query II rowsort SELECT 54 AS col2, 3 * - 40 * - - col2 FROM tab1 AS cor0 @@ -39731,8 +40173,15 @@ SELECT 54 AS col2, 3 * - 40 * - - col2 FROM tab1 AS cor0 # Datafusion - Expected - -78 # Datafusion - Expected - -75 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(\-78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, - 78 AS col2 FROM tab2 cor0 +---- +-46 +-64 +-75 +-78 +-78 +-78 query II rowsort SELECT DISTINCT - col1 AS col2, + 95 FROM tab0 AS cor0 @@ -39837,8 +40286,15 @@ SELECT ALL 86 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL # Datafusion - Expected - -266 # Datafusion - Expected - -55 # Datafusion - Expected - -3167 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col2" at position 0 and "\(\- cor0\.col2\) \* \(\- \(\- cor0\.col1\)\) \+ \(\- Int64\(\-29\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 AS col2, - col2 * - - col1 + + ( - - 29 ) AS col2 FROM tab1 AS cor0 +---- +-1315 +-266 +-3167 +-55 +-55 +-55 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 40 IS NULL @@ -40021,8 +40477,11 @@ SELECT COUNT ( DISTINCT - + col2 ) AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "Int64\(\-97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 49 AS col2, - 97 AS col2 FROM tab0 AS cor0 +---- +-97 +49 query I rowsort SELECT ALL 18 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL @@ -41436,8 +41895,15 @@ SELECT - col2 * + - col0 * - col1 FROM tab0 # Datafusion - Expected - 21 # Datafusion - Expected - 94 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) / \(\- \(\- tab0\.col1\)\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 / - - col1 AS col2, col1 AS col2 FROM tab0 +---- +1 +1 +21 +4 +81 +94 query III rowsort SELECT * FROM tab2 WHERE NOT + - col2 > - col2 * - 62 - - col1 @@ -42038,8 +42504,11 @@ SELECT ALL - col0 - + col2 * - 15 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(CAST\(NULL AS Int32\)\) \+ min\(tab0\.col0\) AS col0" at position 0 and "min\(tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( + CAST ( NULL AS INTEGER ) ) + MIN ( + col0 ) AS col0, MIN ( + col0 ) AS col0 FROM tab0 +---- +15 +NULL query I rowsort SELECT col0 FROM tab1 WHERE ( 97 ) IS NOT NULL @@ -42178,8 +42647,15 @@ SELECT - 73 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - 47 # Datafusion - Expected - 98 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( 98 ) AS col1, col2 AS col1 FROM tab0 +---- +10 +47 +98 +98 +98 +99 query I rowsort SELECT ALL - col1 + - - col2 + + ( col1 ) col0 FROM tab2 AS cor0 @@ -43049,8 +43525,15 @@ SELECT DISTINCT - ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1, col1 FROM tab1 cor0 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-7048 SELECT - - col2 * CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0 @@ -43313,8 +43796,15 @@ NULL # Datafusion - Expected - 21 # Datafusion - Expected - 30 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 30 AS col2, col1 AS col2 FROM tab0 AS cor0 +---- +1 +21 +30 +30 +30 +81 query I rowsort SELECT 65 AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL @@ -43981,8 +44471,11 @@ SELECT + 48 * 72 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col1" at position 0 and "Int64\(\-4\) \+ Int64\(63\) \+ count\(Int64\(84\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 70 AS col1, - 4 + + 63 + COUNT ( 84 ) + + + COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +-70 +65 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 * col1 * + - 22 ) IS NOT NULL @@ -44260,8 +44753,15 @@ SELECT * FROM tab0 AS cor0 WHERE - col0 + col1 * 18 * col2 * + col0 + + 82 + + + # Datafusion - Expected - 16 # Datafusion - Expected - NULL # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ cor0\.col1 \* Int64\(\-66\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + CAST ( NULL AS INTEGER ) + + col1 * + - 66 AS col2, 16 AS col2 FROM tab1 AS cor0 +---- +16 +16 +16 +NULL +NULL +NULL query I rowsort SELECT DISTINCT + col2 + 1 - - 28 * - col2 FROM tab0 AS cor0 WHERE ( NOT + 11 <> NULL ) @@ -44909,8 +45409,15 @@ SELECT DISTINCT - - 24 AS col2 FROM tab0 WHERE NULL <= - - ( - 79 ) # Datafusion - Expected - -95 # Datafusion - Expected - 81 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "Int64\(\-95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col0, - 95 AS col0 FROM tab0 +---- +-95 +-95 +-95 +1 +21 +81 query I rowsort label-7355 SELECT DISTINCT + SUM ( DISTINCT - col2 ) AS col1 FROM tab2 @@ -45286,8 +45793,15 @@ SELECT ALL + + 33 AS col0, - ( CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab1 AS co # Datafusion - Expected - -6188 # Datafusion - Expected - -5 # Datafusion - Expected - -5015 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col0 \* \(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, col0 * - col2 col0 FROM tab1 AS cor0 +---- +-14 +-47 +-4896 +-5 +-5015 +-6188 query I rowsort SELECT ALL - + col1 + + - 47 + 96 FROM tab0 AS cor0 WHERE + col1 IS NULL @@ -45945,8 +46459,15 @@ SELECT DISTINCT + ( ( - col0 ) ) + - col0 * + col1 FROM tab2 AS cor0 # Datafusion - Expected - 59 # Datafusion - Expected - 34 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) \+ cor0\.col0 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 57 + + col0 AS col1, col2 AS col1 FROM tab1 AS cor0 +---- +-6 +28 +34 +59 +68 +96 query I rowsort label-7525 SELECT ALL 42 - SUM ( + col0 ) / COUNT ( * ) AS col2 FROM tab0 AS cor0 @@ -47445,8 +47966,9 @@ SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE col2 * - 20 - - + 2 >= NULL 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab1\.col0 AS Int32\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ tab1\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( + col0 AS INTEGER ) col1, + CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab1 WHERE NULL <= col1 + - + col1 +---- query III rowsort SELECT DISTINCT * FROM tab0 WHERE - 20 IS NULL @@ -47538,8 +48060,15 @@ SELECT + COUNT ( * ) + 91 AS col2 FROM tab1 # Datafusion - Expected - 166555 # Datafusion - Expected - -96 # Datafusion - Expected - 331827 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "\(\- cor0\.col2\) \* cor0\.col2 \* \(\- \(\- Int64\(\-36\)\)\) \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, - col2 * + col2 * - ( - - 36 ) + + + col0 AS col1 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +125401 +166555 +331827 query I rowsort label-7791 SELECT ALL - - 37 + + - 35 + - COUNT ( * ) FROM tab2 AS cor0 @@ -48287,8 +48816,11 @@ SELECT DISTINCT ( 95 ) FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 36 AS col2, 36 AS col2 FROM tab0 +---- +36 +36 query I rowsort SELECT + - col1 AS col1 FROM tab2 WHERE - 34 + col1 NOT BETWEEN + 80 AND - col0 @@ -48370,8 +48902,11 @@ SELECT DISTINCT - 3 / - - col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - -199 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- cor0\.col2\)\) 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 II valuesort SELECT ALL + MIN ( - col2 ) AS col0, + SUM ( - col0 ) AS col0 FROM tab0 AS cor0 +---- +-199 +-99 query I rowsort SELECT ALL + 51 col0 FROM tab0 cor0 @@ -49262,8 +49797,15 @@ SELECT * FROM tab0 WHERE NOT NULL IN ( - + 1 / + ( + col2 ) ) # Datafusion - Expected - 84 # Datafusion - Expected - 11 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 11 ) AS col2, 84 col2 FROM tab1 +---- +11 +11 +11 +84 +84 +84 query III rowsort SELECT * FROM tab2 WHERE NOT col0 NOT BETWEEN ( + col0 / col2 ) AND NULL @@ -49321,8 +49863,15 @@ SELECT COUNT ( * ) * - + 99 FROM tab0 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, col2 AS col2 FROM tab2 AS cor0 WHERE - 17 IS NOT NULL +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT col1 * 19 AS col1 FROM tab0 cor0 @@ -49626,8 +50175,11 @@ SELECT DISTINCT col0 AS col2, - col1 * col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "sum\(Int64\(22\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) col2, SUM ( 22 ) AS col2 FROM tab1 AS cor0 +---- +3 +66 query II rowsort SELECT + col2, ( + col1 ) FROM tab0 AS cor0 @@ -50157,8 +50709,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 5610 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(55\)\) \* Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, - COUNT ( * ) * - + 55 * 34 AS col1 FROM tab0 AS cor0 +---- +3 +5610 query I rowsort label-8230 SELECT DISTINCT 62 - + COUNT ( * ) FROM tab1 @@ -50187,8 +50742,12 @@ SELECT DISTINCT + 97 * - col1 FROM tab1 # Datafusion - Expected - 15 # Datafusion - Expected - -48 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col1" at position 1 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + ( 15 ), - 48 AS col1, CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0 +---- +-3 +-48 +15 query I rowsort label-8235 SELECT ALL + - MIN ( DISTINCT 8 ) FROM tab0 AS cor0 @@ -50212,8 +50771,15 @@ SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) * + + 3 FROM tab0 # Datafusion - Expected - 64 # Datafusion - Expected - -450000 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* \(\- tab2\.col0\) \* tab2\.col0 AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 * - col0 * col0 AS col2, + col0 AS col2 FROM tab2 +---- +-169280 +-327680 +-450000 +46 +64 +75 query II rowsort label-8239 SELECT MIN ( + + ( - col1 ) ) AS col0, 41 FROM tab0 AS cor0 WHERE NOT 86 IN ( 87 ) @@ -50733,8 +51299,10 @@ SELECT ALL + 75 * + + col0, - col1 col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to bc047facdbeaf959bce008c9dccf09d0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col0" at position 1 and "\(\- tab0\.col1\) \* tab0\.col0 \* \(\- Int64\(74\)\) \* tab0\.col2 \+ tab0\.col0 \* Int64\(30\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + col2 + col2 AS col2, 23 AS col0, + ( - + col1 ) * + col0 * - + 74 * + col2 + col0 * + 30 AS col0 FROM tab0 +---- +9 values hashing to 1a7dea87c7af42aa510dac3a7c626f26 query II rowsort label-8320 SELECT + 78 * - 40 AS col2, - MIN ( 90 ) FROM tab1 @@ -52485,8 +53053,15 @@ SELECT ALL - col1 - - col2 + 28, 16 col1 FROM tab1 # Datafusion - Expected - 1 # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "tab0\.col2 / \(\- \(\- tab0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, + col2 / ( - - col0 ) AS col1 FROM tab0 +---- +0 +1 +3 +NULL +NULL +NULL query I rowsort label-8617 SELECT + - MIN ( - col2 ) FROM tab0 AS cor0 @@ -53249,8 +53824,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) * - - 85 AS col2, 73 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 +---- +73 +765 query I rowsort label-8739 SELECT + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) / + - 45 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL @@ -53541,8 +54119,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab0 +---- +3 +3 query I rowsort label-8787 SELECT col0 FROM tab2 WHERE NOT + col2 * col0 * + CAST ( NULL AS INTEGER ) IS NULL @@ -53836,8 +54417,15 @@ SELECT - 96 + + col1, - 74 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL # Datafusion - Expected - 8167 # Datafusion - Expected - -96 # Datafusion - Expected - 4635 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(89\) \* cor0\.col0 \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col2 AS col0, + 89 * + col0 + col2 col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +4635 +7624 +8167 query I rowsort SELECT ALL - col0 + - - col0 + - col2 AS col1 FROM tab2 cor0 @@ -53940,8 +54528,15 @@ SELECT - - ( + + col1 ) * - - col2 + - col2 * + col1 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -13 # Datafusion - Expected - 2284 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \+ Int64\(30\) \* cor0\.col0 AS col0" at position 0 and "Int64\(0\) \- Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 34 + 30 * col0 AS col0, - 0 - 13 col0 FROM tab2 AS cor0 WHERE NOT col0 + - col1 = - ( + + 54 ) +---- +-13 +-13 +-13 +1414 +1954 +2284 query I rowsort label-8848 SELECT + CAST ( 22 AS INTEGER ) AS col2 FROM tab1 AS cor0 @@ -53992,8 +54587,15 @@ SELECT COUNT ( * ) + + + 50 FROM tab0 # Datafusion - Expected - 819870 # Datafusion - Expected - -385 # Datafusion - Expected - 715326 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* \(\- tab1\.col1\) AS col2" at position 0 and "Int64\(51\) \+ tab1\.col0 \* Int64\(\-99\) \* \(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 77 * - col1 AS col2, + 51 + col0 * - 99 * - col0 AS col2 FROM tab1 +---- +-1078 +-3619 +-385 +257550 +715326 +819870 query I rowsort SELECT 86 + 5 AS col2 FROM tab2 @@ -54697,8 +55299,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - 91 <= - + 96 / + col2 # Datafusion - Expected - -92 # Datafusion - Expected - -4312 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(56\) AS Int32\) \* \(\- cor0\.col1\) AS col2" at position 0 and "\(\- Int64\(92\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( 56 AS INTEGER ) * - col1 AS col2, - ( 92 ) AS col2 FROM tab2 AS cor0 +---- +-2856 +-3752 +-4312 +-92 +-92 +-92 query I rowsort SELECT 36 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL @@ -55522,8 +56131,15 @@ SELECT + col1 AS col2, 17 FROM tab0 # Datafusion - Expected - 6013 # Datafusion - Expected - 9604 # Datafusion - Expected - 6792 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* tab0\.col2 \+ tab0\.col1 AS col0" at position 0 and "Int64\(69\) \* tab0\.col0 \+ tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * + col2 + + col1 col0, 69 * + col0 + + col2 AS col0 FROM tab0 +---- +1082 +6013 +6792 +786 +891 +9604 query III rowsort SELECT * FROM tab2 cor0 WHERE - ( + + col1 ) > NULL @@ -55547,8 +56163,15 @@ SELECT DISTINCT MIN ( + 33 ) col1 FROM tab0 AS cor0 # Datafusion - Expected - 3489 # Datafusion - Expected - 5 # Datafusion - Expected - 3063 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col1\) \+ \(\- CAST\(cor0\.col2 AS Int32\)\) \+ Int64\(53\) \* cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, - col1 + - CAST ( col2 AS INTEGER ) + 53 * + col2 AS col2 FROM tab1 AS cor0 +---- +14 +3063 +3489 +47 +4978 +5 query II rowsort SELECT - col0, + col2 AS col2 FROM tab2 AS cor0 @@ -55854,8 +56477,15 @@ SELECT ALL + - ( + - 83 ) + - + 26 AS col2 FROM tab2 WHERE NOT - - CAST ( NULL A # Datafusion - Expected - 7161 # Datafusion - Expected - 77 # Datafusion - Expected - 7161 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "Int64\(76\) \* Int64\(93\) \+ Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, 76 * 93 + + 93 AS col2 FROM tab2 +---- +51 +67 +7161 +7161 +7161 +77 query II rowsort SELECT col0 col1, 36 col2 FROM tab0 @@ -55908,8 +56538,11 @@ SELECT + - col1 * ( - + 72 ) AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 195 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- Int64\(11\)\)\)\) AS col0" at position 0 and "Int64\(65\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( - + 11 ) AS col0, 65 * COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +-3 +195 query I rowsort SELECT ALL col0 + + 2 AS col2 FROM tab2 AS cor0 @@ -56585,8 +57218,15 @@ SELECT - 35 AS col2, 35 FROM tab0 # Datafusion - Expected - 68 # Datafusion - Expected - 13 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 13 AS col0, col2 AS col0 FROM tab1 +---- +13 +13 +13 +59 +68 +96 query I rowsort label-9271 SELECT + + COUNT ( * ) FROM tab2 WHERE NOT col1 * 7 IS NOT NULL @@ -56614,8 +57254,15 @@ SELECT - col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL # Datafusion - Expected - 40 # Datafusion - Expected - 32 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 32 col1, col2 AS col1 FROM tab2 AS cor0 +---- +23 +32 +32 +32 +40 +58 query IIIIII rowsort SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) <= NULL @@ -57703,8 +58350,15 @@ SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) NOT IN ( col2 ) # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-9462 SELECT - - col0 / + 65 + - CAST ( NULL AS INTEGER ) + + ( - col1 ) / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 @@ -57851,8 +58505,9 @@ SELECT COUNT ( ALL 56 ) AS col2 FROM tab1 AS cor0 3 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 AS col2, + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT - - col0 IS NULL ) +---- query III rowsort SELECT ALL * FROM tab2 cor0 WHERE + col1 + - col0 <= + col2 * - col2 @@ -57897,8 +58552,15 @@ NULL # Datafusion - Expected - 77 # Datafusion - Expected - 75 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col2, col1 AS col2 FROM tab2 +---- +46 +51 +64 +67 +75 +77 query I rowsort label-9493 SELECT ALL SUM ( DISTINCT col2 ) AS col0 FROM tab1 @@ -58109,8 +58771,15 @@ SELECT DISTINCT MIN ( DISTINCT col2 ) + COUNT ( * ) FROM tab0 # Datafusion - Expected - -2580 # Datafusion - Expected - 5 # Datafusion - Expected - -2580 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(86\) \* \(\- Int64\(30\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, 86 * - + 30 AS col2 FROM tab1 cor0 +---- +-2580 +-2580 +-2580 +14 +47 +5 query I rowsort SELECT col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL @@ -58450,8 +59119,11 @@ SELECT * FROM tab1 AS cor0 WHERE NOT + col1 - - col1 > NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 227 # Datafusion - Expected - -41 -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 "Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( DISTINCT + col0 ) AS col2, - 41 AS col2 FROM tab1 AS cor0 +---- +-41 +227 query I rowsort SELECT ALL + col1 * - - col1 AS col2 FROM tab0 @@ -58617,8 +59289,11 @@ SELECT * FROM tab2 AS cor0 WHERE NOT + 75 / - col0 <= + + col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 8 AS col1, COUNT ( * ) AS col1 FROM tab2 cor0 +---- +3 +8 query II rowsort label-9611 SELECT - COUNT ( + + col2 ), + 90 + - + SUM ( DISTINCT + 27 ) * - + 1 AS col0 FROM tab2 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_95.slt b/data/sqlite/random/aggregates/slt_good_95.slt index 48fa855..5b93c85 100644 --- a/data/sqlite/random/aggregates/slt_good_95.slt +++ b/data/sqlite/random/aggregates/slt_good_95.slt @@ -454,8 +454,15 @@ SELECT ALL + 83 + ( ( COUNT ( * ) ) ) AS col0 FROM tab0 WHERE NOT ( NOT ( NOT ( # Datafusion - Expected - 62 # Datafusion - Expected - 89 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col0" at position 0 and "tab0\.col0 \+ tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 89 AS col0, col0 + + col2 AS col0 FROM tab0 +---- +196 +62 +89 +89 +89 +97 query III rowsort SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - col1 AND col0 @@ -1707,8 +1714,11 @@ SELECT ALL * FROM tab0 AS cor0 WHERE col1 + - col2 * - col2 + + CAST ( NULL AS I # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT \(\- tab0\.col0\)\) AS col2" at position 0 and "avg\(CAST\(CAST\(NULL AS Int32\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT COUNT ( DISTINCT + - ( + col0 ) ) AS col2, AVG ( CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) col2 FROM tab0 +---- +3 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -3699,8 +3709,15 @@ SELECT DISTINCT - 59 + + SUM ( col0 ) FROM tab0 # Datafusion - Expected - -81 # Datafusion - Expected - -99 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "\(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, - col1 AS col1 FROM tab0 +---- +-1 +-10 +-21 +-47 +-81 +-99 query I rowsort label-604 SELECT ALL 91 + - CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 @@ -4516,8 +4533,11 @@ SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN - col0 AND - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "\(\- tab2\.col2\) \* \(\- tab2\.col0\) \+ tab2\.col0 / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 37 AS col2, - col2 * - + col0 + col0 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 +---- +37 +NULL query I rowsort label-739 SELECT DISTINCT + MIN ( DISTINCT 66 ) * COUNT ( * ) FROM tab0 WHERE NULL = - 30 + - col2 @@ -4992,8 +5012,15 @@ SELECT 4 * col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( + col2 ) > col2 * + 85 ) # Datafusion - Expected - -15 # Datafusion - Expected - -99 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- cor0\.col2\)\)\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( - + col2 ) AS col0, - col0 AS col0 FROM tab0 AS cor0 +---- +-10 +-15 +-47 +-87 +-97 +-99 query I rowsort SELECT - - ( - - col1 ) AS col1 FROM tab2 AS cor0 @@ -5683,8 +5710,15 @@ SELECT col1 + + col2 AS col2 FROM tab2 WHERE NOT - - col2 IS NULL # Datafusion - Expected - -68 # Datafusion - Expected - 17 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "\(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 17 col2, - col2 col2 FROM tab1 +---- +-59 +-68 +-96 +17 +17 +17 query I rowsort SELECT ALL 86 * - col0 * + - 36 * + col0 AS col2 FROM tab1 @@ -5733,8 +5767,15 @@ SELECT DISTINCT col1 col2, col1 AS col1 FROM tab2 AS cor0 WHERE NOT + 11 - - col # Datafusion - Expected - 75 # Datafusion - Expected - 77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( + col1 ) AS col2, col0 AS col2 FROM tab2 AS cor0 +---- +46 +51 +64 +67 +75 +77 query I rowsort SELECT + + 17 * - col0 * col1 AS col1 FROM tab1 cor0 @@ -8148,8 +8189,15 @@ SELECT DISTINCT + 46 * + - col0 col2 FROM tab2 # Datafusion - Expected - NULL # 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 "CAST\(NULL AS Float64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 70 AS col1, CAST ( NULL AS FLOAT8 ) AS col1 FROM tab0 +---- +70 +70 +70 +NULL +NULL +NULL query I rowsort SELECT ( - 69 ) * + ( col2 ) FROM tab1 @@ -8193,8 +8241,15 @@ SELECT - ( - - ( + COUNT ( + + col1 ) ) ) col2 FROM tab0 cor0 # Datafusion - Expected - 56 # Datafusion - Expected - -75 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, 56 AS col2 FROM tab2 +---- +-46 +-64 +-75 +56 +56 +56 query I rowsort SELECT ALL + col1 * + - 35 + + ( + col1 ) AS col1 FROM tab0 @@ -8709,8 +8764,15 @@ SELECT ALL + - ( + col2 ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "\(\- cor0\.col1\) \+ \(\- CAST\(NULL AS Int32\)\) \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col2 AS col0, - col1 + - CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab2 AS cor0 +---- +23 +40 +58 +NULL +NULL +NULL query II rowsort SELECT - col1 AS col1, 27 FROM tab2 AS cor0 @@ -8790,8 +8852,11 @@ SELECT DISTINCT col1 * - col2 AS col2, + ( - col1 ) - - 42 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) col0, COUNT ( * ) / + + COUNT ( * ) col0 FROM tab0 +---- +1 +NULL query II rowsort label-1447 SELECT ALL - 0 / col0 AS col0, col0 AS col2 FROM tab2 AS cor0 @@ -9026,8 +9091,15 @@ SELECT ALL + col2 * 60 + + + col0 AS col2 FROM tab2 # Datafusion - Expected - 79 # Datafusion - Expected - 91 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- tab1\.col0\) AS Int32\)\) AS col2" at position 0 and "Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( - col0 AS INTEGER ) AS col2, 79 col2 FROM tab1 +---- +51 +79 +79 +79 +85 +91 query I rowsort SELECT - ( col1 ) FROM tab0 WHERE - 57 IS NOT NULL @@ -9758,8 +9830,11 @@ SELECT ALL - col0 + ( + 42 ) FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 13 AS col2, + COUNT ( * ) col2 FROM tab2 AS cor0 +---- +-13 +3 query I rowsort label-1601 SELECT + ( - COUNT ( + 10 ) ) FROM tab1 AS cor0 @@ -10047,8 +10122,15 @@ SELECT DISTINCT - 34 * + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT # Datafusion - Expected - -81 # Datafusion - Expected - 99 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col2 AS col0, - ( col1 ) col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +10 +47 +99 query I rowsort SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE NULL <= NULL @@ -11563,8 +11645,15 @@ SELECT ALL - COUNT ( DISTINCT + col2 ) FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, + col0 col1 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query II rowsort SELECT DISTINCT + col1, 26 FROM tab1 @@ -11583,8 +11672,15 @@ SELECT DISTINCT + col1, 26 FROM tab1 # Datafusion - Expected - -3791 # Datafusion - Expected - -29 # Datafusion - Expected - -4361 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col1" at position 0 and "tab2\.col1 \* Int64\(\-57\) \+ Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 29 AS col1, col1 * - 57 + + 28 AS col1 FROM tab2 +---- +-2879 +-29 +-29 +-29 +-3791 +-4361 query I rowsort SELECT DISTINCT + 71 * - - 81 FROM tab2 @@ -11986,8 +12082,15 @@ SELECT - 82 / - col1 AS col1 FROM tab1 # Datafusion - Expected - 14 # Datafusion - Expected - 30150 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* Int64\(6\) \* tab2\.col1 AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * + 6 * + col1 AS col0, 14 AS col0 FROM tab2 +---- +14 +14 +14 +14076 +29568 +30150 query I rowsort SELECT - + 11 AS col2 FROM tab0 cor0 @@ -12583,8 +12686,15 @@ SELECT 77 / col0 / - 94 + col0 + - col0 + + 72 * - - col1 FROM tab2 # Datafusion - Expected - 85 # Datafusion - Expected - 13 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 0 and "\(\- tab1\.col1\) \* \(\- Int64\(0\)\) \+ tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 13 AS col0, - col1 * - + 0 + col0 AS col0 FROM tab1 +---- +13 +13 +13 +51 +85 +91 query I rowsort SELECT + 61 * ( 43 ) + + 48 + col1 * - col1 * + 54 - col0 AS col1 FROM tab1 @@ -13442,8 +13552,15 @@ SELECT DISTINCT + 34 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL # Datafusion - Expected - 1633 # Datafusion - Expected - -563108 # Datafusion - Expected - 1738 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* \(\- tab1\.col2\) \* tab1\.col0 AS col2" at position 0 and "Int64\(77\) \+ \(\- tab1\.col2\) \+ \(\- tab1\.col0\) \* Int64\(\-19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * - col2 * + col0 AS col2, 77 + - + col2 + - ( col0 ) * - 19 AS col2 FROM tab1 +---- +-249696 +-426275 +-563108 +1633 +1738 +950 query III rowsort SELECT * FROM tab1 cor0 WHERE + col0 = col1 * + + 65 @@ -13919,8 +14036,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * + 39 AS col0, ( + + MAX ( - + col2 ) ) AS col0 FROM tab0 AS cor0 +---- +-10 +117 query II rowsort label-2293 SELECT + col2 / + + 81, - col0 AS col2 FROM tab1 AS cor0 @@ -14088,8 +14208,15 @@ SELECT + - 8 + + + col2 + col0 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 2 # Datafusion - Expected - 24 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \- \(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col1 / cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 - - col0 AS col2, col1 / + col2 AS col2 FROM tab2 cor0 +---- +1 +1 +17 +2 +23 +24 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -14167,8 +14294,11 @@ SELECT DISTINCT - MIN ( ALL + col0 ) AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(17\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 39 AS col0, + COUNT ( * ) + + 17 + COUNT ( * ) AS col0 FROM tab2 cor0 +---- +23 +39 query I rowsort label-2332 SELECT DISTINCT - 78 / + 46 + + - col2 * - + 20 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL @@ -14627,8 +14757,15 @@ SELECT - 4 * - + 32, col0 + + + 28 * - 42 AS col1 FROM tab2 WHERE + - col0 > ( N # Datafusion - Expected - 87 # Datafusion - Expected - -82 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 82 AS col2, col0 AS col2 FROM tab0 cor0 WHERE NULL IS NULL +---- +-82 +-82 +-82 +15 +87 +97 query I rowsort SELECT 64 + - col2 * ( + col1 ) col1 FROM tab2 AS cor0 @@ -14858,8 +14995,15 @@ SELECT + col2 - + 16 FROM tab1 cor0 # Datafusion - Expected - 51 # Datafusion - Expected - -159 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \- cor0\.col2 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 - + col2 AS col1, col0 AS col1 FROM tab1 AS cor0 +---- +-144 +-147 +-159 +51 +85 +91 query III rowsort SELECT ALL * FROM tab0 WHERE NULL IN ( col0, 69, + 59 ) @@ -15100,8 +15244,11 @@ SELECT - 87 * + - col1 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, 95 AS col0 FROM tab0 AS cor0 +---- +3 +95 query I rowsort label-2484 SELECT + + 64 * + col1 * CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0 @@ -15542,8 +15689,15 @@ SELECT DISTINCT + - col2 / 20 FROM tab0 AS cor0 # Datafusion - Expected - 10 # Datafusion - Expected - -81 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, col2 AS col1 FROM tab0 AS cor0 WHERE NOT + 5 IS NULL +---- +-1 +-21 +-81 +10 +47 +99 query I rowsort label-2556 SELECT ALL - col1 / + + col1 AS col0 FROM tab2 cor0 @@ -15612,8 +15766,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 IN ( 90, col2, + - col1 / 12, col2 # Datafusion - Expected - 19 # Datafusion - Expected - -216580 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col2 \* Int64\(\-35\) AS col0" at position 0 and "\(\- \(\- Int64\(19\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * col2 * + - 35 col0, - ( - + 19 ) AS col0 FROM tab1 AS cor0 +---- +-171360 +-175525 +-216580 +19 +19 +19 query I rowsort SELECT ALL + 95 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL @@ -17511,8 +17672,15 @@ SELECT + ( - 43 ) * - col2 + col0 / - col2, 43 AS col2 FROM tab1 # Datafusion - Expected - 2 # Datafusion - Expected - 75 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, 2 AS col1 FROM tab2 +---- +2 +2 +2 +46 +64 +75 query I rowsort SELECT DISTINCT - 52 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 @@ -17713,8 +17881,15 @@ SELECT DISTINCT * FROM tab0 WHERE NULL >= + col2 * + col2 # Datafusion - Expected - NULL # Datafusion - Expected - 9216 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \* tab1\.col2 AS col0" at position 0 and "CAST\(NULL AS Float64\) \+ Int64\(\-49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL col2 * + col2 AS col0, CAST ( NULL AS FLOAT8 ) + - 49 AS col0 FROM tab1 +---- +3481 +4624 +9216 +NULL +NULL +NULL query I rowsort label-2906 SELECT COUNT ( * ) * COUNT ( * ) * - - COUNT ( * ) FROM tab2 @@ -18409,8 +18584,11 @@ SELECT ALL 69 col1, - col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, 6 AS col0 FROM tab1 +---- +3 +6 query II rowsort SELECT col0 AS col1, ( + + col1 ) AS col2 FROM tab0 @@ -18517,8 +18695,15 @@ SELECT - col2 * col0 * - col2 - ( - + col2 ) + ( 71 ) FROM tab1 # Datafusion - Expected - 178 # Datafusion - Expected - 16 # Datafusion - Expected - 188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) \+ Int64\(8\) \+ tab0\.col2 AS col2" at position 0 and "tab0\.col0 \- Int64\(\-91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 91 + + 8 + col2 AS col2, + col0 - - 91 AS col2 FROM tab0 +---- +-36 +-73 +106 +16 +178 +188 query I rowsort label-3034 SELECT + COUNT ( * ) + + + 81 FROM tab1 @@ -19037,8 +19222,10 @@ SELECT ALL * FROM tab0 WHERE NOT + col0 + + 13 / - col0 IN ( ( + 25 ) + + 55 / c # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to d728d55430ae239eff1a7a4064b98e0a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(7\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - + 7 AS col1, + col0 AS col0, col0 AS col1 FROM tab0 AS cor0 +---- +9 values hashing to ddcc87ef9c9b224d16b792dc86850c21 query I rowsort label-3125 SELECT ALL - + SUM ( ALL + col2 ) FROM tab1 AS cor0 @@ -19844,8 +20031,15 @@ SELECT DISTINCT + 97 AS col0, 69 FROM tab1 AS cor0 # Datafusion - Expected - -4352 # Datafusion - Expected - -96 # Datafusion - Expected - -6144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col2\) \* Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 AS col0, - col2 * + + 64 AS col0 FROM tab1 AS cor0 +---- +-3776 +-4352 +-59 +-6144 +-68 +-96 query I rowsort SELECT DISTINCT + - 78 * 15 + col0 AS col0 FROM tab0 AS cor0 @@ -20345,8 +20539,15 @@ SELECT 59 col2 FROM tab2 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) / Int64\(56\) AS col1" at position 0 and "cor0\.col0 \* \(\- Int64\(\-42\)\) \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 4 / 56 AS col1, col0 * - - 42 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 +---- +0 +0 +0 +NULL +NULL +NULL query II rowsort label-3337 SELECT DISTINCT - 4 AS col2, ( - ( + 99 ) ) - + COUNT ( * ) AS col1 FROM tab2 @@ -20493,8 +20694,10 @@ SELECT * FROM tab2 WHERE NOT NULL <= col0 + + col2 * col0 * - col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 12c81246ba27d5cdc2e8ac02138921da -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col2" at position 0 and "Int64\(\-49\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col2 AS col2, + 89, - 49 AS col2 FROM tab2 +---- +9 values hashing to 5a61f0b7ea444bef582cd0ec1f46c857 query I rowsort SELECT - 73 * + + col2 col1 FROM tab2 @@ -20968,8 +21171,15 @@ SELECT - SUM ( ALL - - col0 ) * - COUNT ( * ) * + - 66 + - 94 AS col0 FROM tab2 # Datafusion - Expected - 128 # Datafusion - Expected - -1 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) AS col1" at position 0 and "tab0\.col2 \+ tab0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 1 AS col1, + col2 + + col1 AS col1 FROM tab0 +---- +-1 +-1 +-1 +100 +128 +31 query I rowsort label-3440 SELECT ALL - 89 / + ( - col0 ) AS col2 FROM tab2 @@ -20990,8 +21200,15 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - -53 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \- cor0\.col1 \+ \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col2 / cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 25 - + col1 + + - ( col1 ) col2, col2 / col2 AS col2 FROM tab1 AS cor0 +---- +-119 +-35 +-53 +1 +1 +1 query II rowsort SELECT ALL col2 col1, + 79 FROM tab1 AS cor0 @@ -22142,8 +22359,15 @@ SELECT DISTINCT + col1 AS col0, 1 AS col2 FROM tab1 # Datafusion - Expected - 177 # Datafusion - Expected - 91 # Datafusion - Expected - 204 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col2 \* Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 col2, + col2 * 3 AS col2 FROM tab1 +---- +177 +204 +288 +51 +85 +91 query I rowsort SELECT - 82 * ( + - col2 ) AS col0 FROM tab0 @@ -22301,8 +22525,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 34 * - COUNT ( * ) AS col0, - 28 AS col0 FROM tab2 AS cor0 +---- +-102 +-28 query II rowsort SELECT col2 * + 51 AS col1, + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( 5 ) IS NOT NULL @@ -22645,8 +22872,15 @@ SELECT ALL + ( 32 ) FROM tab1 AS cor0 WHERE - 20 * + col2 IS NOT NULL # Datafusion - Expected - 25075 # Datafusion - Expected - 252 # Datafusion - Expected - 290836 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \+ Int64\(88\) \+ \(\- \(\- cor0\.col0\)\) AS col1" at position 0 and "\(\- cor0\.col2\) \* \(\- cor0\.col1\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 73 + 88 + ( ( - - col0 ) ) AS col1, - col2 * + - col1 * + col0 AS col1 FROM tab1 cor0 +---- +212 +246 +25075 +252 +290836 +68544 query I rowsort label-3713 SELECT ALL SUM ( ALL + 41 ) FROM tab0 AS cor0 @@ -23302,8 +23536,11 @@ SELECT COUNT ( * ) * + 77 AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + COUNT ( * ) col2 FROM tab2 +---- +3 +3 query I rowsort SELECT ( 96 ) * + col0 FROM tab0 @@ -23340,8 +23577,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) = 62 # Datafusion - Expected - 85 # Datafusion - Expected - 77 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 77 AS col2, col0 AS col2 FROM tab1 AS cor0 +---- +51 +77 +77 +77 +85 +91 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 IN ( + col2, col0 / - + col2, 38 / col2 * + 90 ) @@ -24518,8 +24762,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - COUNT ( * ) col2, 35 col2 FROM tab1 AS cor0 +---- +3 +35 query I rowsort SELECT - ( + ( - ( - col1 ) ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL @@ -25261,8 +25508,11 @@ SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) col0, - COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +-3 +3 query II rowsort SELECT ( - + col1 ) AS col0, + 20 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL ) @@ -25946,8 +26196,15 @@ SELECT DISTINCT + SUM ( + 66 ) - - 5 FROM tab0 AS cor0 # Datafusion - Expected - 94 # Datafusion - Expected - 96 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col1 \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, col1 + col1 AS col0 FROM tab1 AS cor0 +---- +10 +28 +59 +68 +94 +96 query I rowsort label-4255 SELECT DISTINCT + COUNT ( * ) + - - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0 @@ -26627,8 +26884,15 @@ SELECT ALL - col0 * + - col2 FROM tab2 # Datafusion - Expected - 0 # Datafusion - Expected - 4350 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col0 AS col0" at position 0 and "cor0\.col2 / Int64\(92\) \* Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 * + col0 AS col0, + ( col2 ) / + ( 92 ) * + 73 AS col0 FROM tab2 AS cor0 +---- +0 +0 +0 +1058 +2560 +4350 query I rowsort label-4364 SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE col2 + col0 IS NOT NULL @@ -27200,8 +27464,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 5 AS col1, - COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +-3 +5 query III rowsort SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN + 55 AND NULL @@ -27259,8 +27526,15 @@ NULL # Datafusion - Expected - 59 # Datafusion - Expected - 52 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 AS col1, 59 AS col1 FROM tab2 +---- +52 +52 +52 +59 +59 +59 query I rowsort label-4472 SELECT DISTINCT - 28 + + COUNT ( * ) AS col1 FROM tab1 @@ -27414,8 +27688,9 @@ SELECT + col2 / 95 * - 19 FROM tab1 cor0 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ \(\- Int64\(0\)\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + - + 0 AS col2, - ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL +---- query I rowsort label-4498 SELECT DISTINCT MIN ( + 83 ) FROM tab1 AS cor0 @@ -27800,8 +28075,15 @@ SELECT ALL + + 43 * + 46 FROM tab2 cor0 # Datafusion - Expected - 50 # Datafusion - Expected - -2625 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(\-35\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * - 35 AS col0, ( 50 ) AS col0 FROM tab2 AS cor0 +---- +-1610 +-2240 +-2625 +50 +50 +50 query I rowsort SELECT ALL + 85 - + - 88 - + col1 AS col1 FROM tab1 AS cor0 @@ -28458,8 +28740,11 @@ SELECT - col2 col1, - col0 * + col2 * - col2 AS col2 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -165 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* \(\- count\(DISTINCT \(\- cor0\.col1\)\)\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 55 * - COUNT ( DISTINCT - ( + col1 ) ) AS col1, 51 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL +---- +-165 +51 query I rowsort SELECT ALL + col1 * - col0 + + col1 FROM tab0 AS cor0 @@ -28532,8 +28817,15 @@ SELECT DISTINCT - col0 AS col2, + 93 - + col0 FROM tab1 # Datafusion - Expected - 89488 # Datafusion - Expected - -96 # Datafusion - Expected - 37632 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "Int64\(28\) \* \(\- tab1\.col2\) \* \(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, 28 * + - col2 * + - col1 AS col1 FROM tab1 +---- +-59 +-68 +-96 +37632 +8260 +89488 query III rowsort SELECT DISTINCT * FROM tab2 WHERE - col0 + col0 IS NOT NULL @@ -28898,8 +29190,11 @@ SELECT + 49 * - col2 + + - 71 + + col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) \+ Int64\(84\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 54 + 84 AS col0, COUNT ( * ) col0 FROM tab1 +---- +3 +30 query I rowsort SELECT DISTINCT 29 FROM tab2 WHERE NULL <> NULL @@ -29511,8 +29806,15 @@ SELECT ALL + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL # Datafusion - Expected - 68 # Datafusion - Expected - -96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, col2 AS col1 FROM tab1 +---- +-59 +-68 +-96 +59 +68 +96 query II rowsort SELECT col1, ( - 61 ) FROM tab2 @@ -30293,8 +30595,15 @@ NULL # Datafusion - Expected - -67 # Datafusion - Expected - 0 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col0 + col0 AS col1, - col1 AS col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +0 +0 +0 query I rowsort label-4961 SELECT - 78 * + COUNT ( + - col2 ) AS col1 FROM tab2 cor0 @@ -30662,8 +30971,15 @@ SELECT DISTINCT - ( - 26 ) FROM tab0 AS cor0 # Datafusion - Expected - 5 # Datafusion - Expected - 77 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, 5 AS col2 FROM tab2 +---- +5 +5 +5 +51 +67 +77 query III rowsort SELECT DISTINCT * FROM tab0 WHERE + - 86 * - - col0 + + col0 + + + col1 + - col2 + + - col0 < col0 @@ -30817,8 +31133,15 @@ SELECT * FROM tab2 WHERE NOT - col2 * + + 30 * - + 60 + col2 IS NULL # Datafusion - Expected - -65 # Datafusion - Expected - -29 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col2" at position 0 and "Int64\(\-65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 29 AS col2, - 65 AS col2 FROM tab0 +---- +-29 +-29 +-29 +-65 +-65 +-65 query II rowsort SELECT DISTINCT col2 AS col0, 66 FROM tab0 @@ -31100,8 +31423,12 @@ 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\(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\. +query III valuesort SELECT ALL + + ( + + COUNT ( * ) ), + COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 +---- +3 +3 +3 query I rowsort label-5093 SELECT ALL + MAX ( DISTINCT + 82 ) FROM tab1 AS cor0 @@ -31148,8 +31475,11 @@ SELECT DISTINCT - col0 + + + 78 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col0, - COUNT ( * ) col0 FROM tab0 AS cor0 +---- +-3 +3 query II rowsort SELECT - 58 AS col0, - 39 col1 FROM tab2 AS cor0 @@ -31620,8 +31950,15 @@ SELECT - 45 * + COUNT ( * ) AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -912 # Datafusion - Expected - -15 # Datafusion - Expected - -921 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col2" at position 0 and "cor0\.col2 \+ Int64\(14\) \* \(\- Int64\(70\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 15 AS col2, + col2 + 14 * - + 70 AS col2 FROM tab1 cor0 +---- +-15 +-15 +-15 +-884 +-912 +-921 query II rowsort SELECT + 79, + col1 * col0 AS col0 FROM tab2 AS cor0 @@ -31778,8 +32115,9 @@ SELECT 2, - SUM ( + 70 ) AS col2 FROM tab2 -210 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "\(\- tab2\.col2\) \* \(\- tab2\.col0\) \+ \(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, - ( + col2 ) * + - col0 + - col2 col0 FROM tab2 WHERE NOT ( col2 * + - ( 59 ) > - - col0 * - col0 ) +---- query II rowsort label-5202 SELECT col0 AS col1, CAST ( NULL AS INTEGER ) + col0 FROM tab2 @@ -32868,8 +33206,10 @@ SELECT ALL SUM ( + + col2 ) AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to 522e15252c2b97148ece937d770f8e6f -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col2, + 81 AS col2 FROM tab0, tab0 AS cor0 +---- +18 values hashing to df8926b50a794c54c1f796e08aec1612 query II rowsort SELECT ALL - col2, col2 AS col0 FROM tab2 @@ -32947,8 +33287,9 @@ SELECT ALL + + col2 * 53 AS col0 FROM tab1 AS cor0 5088 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-64\)\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 64 AS col2, + col0 AS col2 FROM tab1 AS cor0 WHERE NULL = + col0 +---- query I rowsort label-5399 SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE ( NOT ( NOT ( NOT - 98 * - col2 IS NULL ) ) ) @@ -34992,8 +35333,10 @@ SELECT DISTINCT - 78 * COUNT ( DISTINCT col1 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 5716d9170083589bed788fc3cccd1c39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "Int64\(\-98\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 64 AS col0, col2, - 98 AS col0 FROM tab2 +---- +9 values hashing to 92cf405de6b25004bebb6488e85b9f1a query I rowsort label-5730 SELECT 82 * + COUNT ( * ) FROM tab0 @@ -35450,8 +35793,15 @@ SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - - col2 # Datafusion - Expected - 105 # Datafusion - Expected - 97 # Datafusion - Expected - 115 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(18\) \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col2, 18 + + col0 AS col2 FROM tab0 AS cor0 +---- +105 +115 +15 +33 +87 +97 query I rowsort SELECT ALL - col1 * - + 8 FROM tab2 cor0 @@ -35633,8 +35983,15 @@ SELECT ALL 12 * + + COUNT ( * ) AS col1, + ( - 58 ) FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 1 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / cor0\.col1 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 / + + col1 AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +1 +1 +1 +10 +47 +99 query I rowsort SELECT - 2 * 2 FROM tab1 AS cor0 @@ -36657,8 +37014,15 @@ SELECT ALL 47 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 # Datafusion - Expected - -67 # Datafusion - Expected - 180 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(45\)\) \* Int64\(\-4\) AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 45 * - 4 AS col2, - col1 AS col2 FROM tab2 cor0 +---- +-51 +-67 +-77 +180 +180 +180 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 + col2 IS NULL @@ -39146,8 +39510,15 @@ SELECT - 80 AS col0 FROM tab1 cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 611 # Datafusion - Expected - 105 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) \* \(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col2 \- Int64\(\-58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 13 * - + col2 AS col0, col2 - - 58 AS col0 FROM tab0 AS cor0 +---- +105 +1287 +130 +157 +611 +68 query I rowsort label-6430 SELECT DISTINCT - + MIN ( - - col1 ) FROM tab1 AS cor0 @@ -40569,8 +40940,15 @@ SELECT - col2 / 72 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - -75 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 col0, + col1 col0 FROM tab2 +---- +-46 +-64 +-75 +51 +67 +77 query III rowsort SELECT * FROM tab2 WHERE NOT - - col1 + + col0 IS NULL @@ -40584,8 +40962,15 @@ SELECT * FROM tab2 WHERE NOT - - col1 + + col0 IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - -91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col2" at position 0 and "Int64\(99\) \+ \(\- tab1\.col0\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, + 99 + - col0 * ( CAST ( NULL AS INTEGER ) ) col2 FROM tab1 +---- +-51 +-85 +-91 +NULL +NULL +NULL query III rowsort SELECT ALL * FROM tab0 WHERE NOT NULL IN ( + - 70 ) @@ -41246,8 +41631,15 @@ SELECT DISTINCT SUM ( DISTINCT col1 ) + COUNT ( * ) AS col0 FROM tab0 # Datafusion - Expected - 92 # Datafusion - Expected - 22 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 AS col1, 92 AS col1 FROM tab2 +---- +22 +22 +22 +92 +92 +92 query III rowsort SELECT * FROM tab0 WHERE ( + 5 ) NOT IN ( 4 - + col1 ) @@ -42507,8 +42899,15 @@ SELECT ALL + 58, col2 FROM tab0 # Datafusion - Expected - -47 # Datafusion - Expected - 99 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, - 47 col1 FROM tab0 +---- +-47 +-47 +-47 +10 +47 +99 query I rowsort SELECT + + col1 FROM tab0 WHERE NOT NULL IS NULL @@ -43176,8 +43575,15 @@ SELECT ALL ( - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL > ( - col1 ) # Datafusion - Expected - 68 # Datafusion - Expected - NULL # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ CAST\(NULL AS Float64\) \- \(\- Int64\(\-85\)\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + col2 + + CAST ( NULL AS FLOAT8 ) - - - 85 AS col0, col2 AS col0 FROM tab1 +---- +59 +68 +96 +NULL +NULL +NULL query I rowsort label-7087 SELECT - COUNT ( * ) + MIN ( + + ( + 58 ) ) FROM tab1 cor0 @@ -43986,8 +44392,15 @@ SELECT DISTINCT + 7 FROM tab0 AS cor0 WHERE ( + col1 / + + col0 ) IS NULL # Datafusion - Expected - -64 # Datafusion - Expected - 37 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 37 col0, - col0 AS col0 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +37 +37 +37 query I rowsort label-7227 SELECT ( COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL @@ -44060,8 +44473,15 @@ SELECT DISTINCT col0 / col0 - col1 FROM tab0 AS cor0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, + col0 AS col2 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-7239 SELECT ALL col2 + + 23 / + + col0 FROM tab0 @@ -44135,8 +44555,15 @@ SELECT DISTINCT 55 * + + 5 + - col1 * + - 44 AS col2 FROM tab0 # Datafusion - Expected - 48 # Datafusion - Expected - 5 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, + 48 AS col0 FROM tab1 +---- +14 +47 +48 +48 +48 +5 query I rowsort label-7252 SELECT ALL + 74 + + COUNT ( + col2 ) FROM tab2 @@ -44659,8 +45086,9 @@ SELECT DISTINCT - - 21 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 21 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "\(\- tab0\.col0\) \- tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, - col0 - + ( + + col0 ) AS col1 FROM tab0 WHERE NOT - 81 IS NOT NULL +---- query I rowsort SELECT ALL - - 67 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 @@ -45472,8 +45900,15 @@ SELECT ALL 49 + + - col0 * + col0 AS col0 FROM tab0 # Datafusion - Expected - 99 # Datafusion - Expected - 710 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 71 * col2 AS col1, + col2 AS col1 FROM tab0 cor0 +---- +10 +3337 +47 +7029 +710 +99 query I rowsort label-7474 SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col2 = + col2 + + - 29 @@ -45878,8 +46313,15 @@ SELECT DISTINCT - - col0 AS col1, 55 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -15 # Datafusion - Expected - -99 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col2 AS col2, - 15 AS col2 FROM tab0 AS cor0 +---- +-10 +-15 +-15 +-15 +-47 +-99 query I rowsort SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NOT ( NULL IS NOT NULL ) @@ -46196,8 +46638,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + + + 48 * - + COUNT ( * ) AS col1, 80 AS col1 FROM tab1 +---- +-141 +80 query III rowsort SELECT * FROM tab0 WHERE + - 58 * + col2 IS NULL @@ -46542,8 +46987,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 * + + 10 AS col0, 27 / - + COUNT ( * ) AS col0 FROM tab1 +---- +-310 +-9 query II rowsort SELECT - col2 * col2, ( + + 51 ) * - 4 + + col1 AS col1 FROM tab2 @@ -47388,8 +47836,15 @@ SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE col2 * ( + col2 ) BETWEEN - col0 A # Datafusion - Expected - -79900 # Datafusion - Expected - 96 # Datafusion - Expected - -33600 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) / Int64\(\-1\) AS col1" at position 0 and "tab1\.col1 \* tab1\.col2 \* Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 / - 1 AS col1, col1 * col2 * + - 25 AS col1 FROM tab1 +---- +-33600 +-7375 +-79900 +59 +68 +96 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -47497,8 +47952,15 @@ SELECT * FROM tab0 WHERE NOT - 27 IS NULL # Datafusion - Expected - 67 # Datafusion - Expected - 87 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 AS col2, + 67 AS col2 FROM tab1 +---- +67 +67 +67 +87 +87 +87 query II rowsort label-7807 SELECT 13 / - - SUM ( + - col0 ) col2, COUNT ( * ) FROM tab2 @@ -47529,8 +47991,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL IS NULL ) +---- +3 +3 query II rowsort label-7812 SELECT DISTINCT - - COUNT ( * ) * + - 85, + SUM ( ALL + 80 ) col1 FROM tab1 cor0 @@ -48342,8 +48807,15 @@ SELECT ALL 68 + 99 + + col0 AS col2 FROM tab0 # Datafusion - Expected - -4416 # Datafusion - Expected - 16 # Datafusion - Expected - -4416 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \- tab2\.col2 AS col1" at position 0 and "Int64\(69\) \* Int64\(\-64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 - + col2 col1, 69 * - 64 AS col1 FROM tab2 +---- +-1 +-19 +-4416 +-4416 +-4416 +16 query II rowsort SELECT ALL - col1 - + + 42 col0, 72 AS col1 FROM tab2 @@ -48580,8 +49052,15 @@ SELECT col2 * + + ( + 45 ) FROM tab1 AS cor0 # Datafusion - Expected - 5 # Datafusion - Expected - -3196 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \* \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 * - col2 AS col2, + col1 AS col2 FROM tab1 AS cor0 +---- +-1344 +-295 +-3196 +14 +47 +5 query I rowsort SELECT ( col2 ) + col2 AS col2 FROM tab2 AS cor0 @@ -49006,8 +49485,15 @@ SELECT + col1 * - 90 + 6 * + col2 FROM tab2 AS cor0 # Datafusion - Expected - 58 # Datafusion - Expected - 77 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "\(\- \(\- tab2\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 col2, ( - - col2 ) col2 FROM tab2 +---- +23 +40 +51 +58 +67 +77 query I rowsort label-8054 SELECT COUNT ( ALL - 33 ) FROM tab1 @@ -50244,8 +50730,15 @@ SELECT ALL - 55, + col0 * col1 AS col1 FROM tab2 WHERE NOT NULL BETWEEN - 66 AND # Datafusion - Expected - -39 # Datafusion - Expected - 93 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \+ Int64\(2\) AS col1" at position 0 and "Int64\(\-39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 + + 2 AS col1, ( - 39 ) AS col1 FROM tab1 +---- +-39 +-39 +-39 +53 +87 +93 query II rowsort SELECT + col1 + col0 AS col2, + 5 * + + col0 * col2 FROM tab2 @@ -50615,8 +51108,15 @@ SELECT + COUNT ( + col2 ) FROM tab1 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, + col0 AS col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE col1 + + ( - col2 ) IS NULL @@ -51297,8 +51797,15 @@ SELECT DISTINCT - col2 - - 25 FROM tab0 AS cor0 # Datafusion - Expected - 49 # Datafusion - Expected - 75 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 col2, + 49 AS col2 FROM tab2 AS cor0 +---- +46 +49 +49 +49 +64 +75 query I rowsort SELECT ALL + 15 * - - col1 - col2 - + 15 AS col0 FROM tab2 AS cor0 @@ -51314,8 +51821,15 @@ SELECT ALL + 15 * - - col1 - col2 - + 15 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - 76 # Datafusion - Expected - 46 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 46 AS col1, + 76 col1 FROM tab1 AS cor0 +---- +46 +46 +46 +76 +76 +76 query I rowsort label-8440 SELECT DISTINCT + ( COUNT ( * ) ) / 9 + 91 FROM tab2 AS cor0 @@ -51826,8 +52340,15 @@ NULL # Datafusion - Expected - 10 # Datafusion - Expected - -9409 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0 * - col0 AS col0, + col2 col0 FROM tab0 AS cor0 +---- +-225 +-7569 +-9409 +10 +47 +99 query I rowsort label-8520 SELECT + MIN ( DISTINCT - ( + col1 ) ) AS col0 FROM tab0 AS cor0 @@ -52047,8 +52568,11 @@ SELECT * FROM tab0 cor0 WHERE NOT ( NULL IS NOT NULL ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 53 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 +---- +53 +NULL query I rowsort label-8554 SELECT - - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + 28 @@ -52526,8 +53050,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 70 AS col2, 72 * - COUNT ( * ) AS col2 FROM tab2 +---- +-216 +70 query III rowsort SELECT * FROM tab2 cor0 WHERE NULL >= 11 @@ -52606,8 +53133,15 @@ SELECT DISTINCT col2 + - 58 AS col1 FROM tab0 WHERE - + ( + col1 ) < + col2 # Datafusion - Expected - 85 # Datafusion - Expected - 11 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 AS col2, col0 AS col2 FROM tab1 WHERE - col1 IS NOT NULL +---- +11 +11 +11 +51 +85 +91 query I rowsort SELECT 54 FROM tab2, tab2 cor0 @@ -52978,8 +53512,10 @@ SELECT col1 + + col1 * - col1 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 5541839114e73e76732d279c3a06a77c -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col2 AS col1" at position 0 and "cor0\.col1 \- cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - col1 + + col2 AS col1, + col1 - col2 col1, + col2 AS col1 FROM tab1 AS cor0 +---- +9 values hashing to 937dbfdbcc7b98ccaad0c17908018224 query I rowsort label-8713 SELECT ALL ( CAST ( + - AVG ( DISTINCT - 92 ) AS INTEGER ) ) FROM tab1 @@ -53847,8 +54383,15 @@ SELECT DISTINCT + + COUNT ( + col0 ), ( - COUNT ( DISTINCT col0 ) ) AS col0 FROM # Datafusion - Expected - NULL # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ cor0\.col0 AS col1" at position 0 and "Int64\(52\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + + col0 AS col1, + 52 * - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 +---- +141 +142 +97 +NULL +NULL +NULL query I rowsort SELECT + 25 + + 13 + 39 * - 18 FROM tab0 AS cor0 @@ -54048,8 +54591,15 @@ SELECT 78, ( + col2 ), + col0 AS col1 FROM tab0 # Datafusion - Expected - 68 # Datafusion - Expected - -713 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \+ cor0\.col1 \* \(\- cor0\.col0\) AS col0" at position 0 and "Int64\(0\) \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 1 + + col1 * - col0 AS col0, - 0 + + col2 AS col0 FROM tab1 AS cor0 +---- +-424 +-4276 +-713 +59 +68 +96 query I rowsort SELECT - col2 * + - col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL @@ -54242,8 +54792,11 @@ SELECT DISTINCT + 90 col0, 0 + + col1 FROM tab1 AS cor0 # 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 "Int64\(64\) AS col2" at position 0 and "sum\(\(\- Int64\(\-33\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 64 AS col2, SUM ( - - 33 ) AS col2 FROM tab1 AS cor0 +---- +64 +99 query II rowsort label-8911 SELECT ALL - 25 col2, - COUNT ( * ) FROM tab0 AS cor0 @@ -56316,8 +56869,11 @@ SELECT 66 * - col2 * col0 + 14 * col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 156 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT cor0\.col1\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( DISTINCT + col1 ) + COUNT ( * ) + + COUNT ( * ) AS col2, + COUNT ( * ) * + 52 AS col2 FROM tab2 AS cor0 +---- +-45 +156 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -56349,8 +56905,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - co # Datafusion - Expected - -85 # Datafusion - Expected - -91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, - col0 AS col2 FROM tab1 AS cor0 +---- +-51 +-51 +-85 +-85 +-91 +-91 query II rowsort label-9261 SELECT + - ( - col0 ) AS col0, 73 / col1 FROM tab2 AS cor0 @@ -56948,8 +57511,15 @@ SELECT - + col1 / - - col2 + - 38 FROM tab2 AS cor0 WHERE NOT col1 IS NULL # Datafusion - Expected - -34 # Datafusion - Expected - NULL # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / Int64\(\-19\) AS col0" at position 0 and "Int64\(\-34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) / - 19 AS col0, - 34 AS col0 FROM tab2 AS cor0 +---- +-34 +-34 +-34 +NULL +NULL +NULL query I rowsort label-9356 SELECT + ( - 6 ) + - - 45 FROM tab1 WHERE NOT col2 * + CAST ( + 19 AS INTEGER ) IS NULL @@ -58838,12 +59408,20 @@ SELECT ALL ( + col1 ) + 57 FROM tab2 # Datafusion - Expected - 351780 # Datafusion - Expected - 97 # Datafusion - Expected - 351780 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(78\) \* Int64\(82\) \* Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, 78 * + + 82 * + 55 AS col2 FROM tab0 +---- +15 +351780 +351780 +351780 +87 +97 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, + col2 col0 FROM tab1 WHERE + col2 IS NULL +---- query I rowsort SELECT ALL + col1 * - col0 + + 88 FROM tab2 @@ -59109,8 +59687,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MAX ( + col2 ) AS col0, - 71 * + + COUNT ( * ) * 70 AS col0 FROM tab2 +---- +-14910 +58 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE 50 IS NOT NULL diff --git a/data/sqlite/random/aggregates/slt_good_96.slt b/data/sqlite/random/aggregates/slt_good_96.slt index 2230b25..d487e04 100644 --- a/data/sqlite/random/aggregates/slt_good_96.slt +++ b/data/sqlite/random/aggregates/slt_good_96.slt @@ -356,8 +356,15 @@ SELECT + 25 + + col0 + + - col0, col1 AS col1 FROM tab2 cor0 # Datafusion - Expected - 53824 # Datafusion - Expected - 385385 # Datafusion - Expected - 25600 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \* \(\- Int64\(\-91\)\) \* \(\- cor0\.col1\) AS col0" at position 0 and "Int64\(16\) \* cor0\.col2 \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 55 * - - 91 * - col1 col0, 16 * + col2 * + col2 AS col0 FROM tab2 AS cor0 +---- +255255 +25600 +335335 +385385 +53824 +8464 query III rowsort SELECT * FROM tab1 cor0 WHERE 83 - + col2 + - col0 < NULL @@ -767,8 +774,15 @@ SELECT + COUNT ( DISTINCT 76 ) FROM tab0 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, + col1 AS col2 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort label-122 SELECT + 41 / - COUNT ( * ) AS col0 FROM tab1 @@ -816,8 +830,15 @@ SELECT ALL + - 91 * + 64 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col1\) \+ \(\- cor0\.col1\) \- \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col1 AS col2, - col1 + - col1 - - col1 AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-5 +14 +47 +5 query I rowsort SELECT DISTINCT - + 61 * + col0 AS col0 FROM tab0 AS cor0 @@ -873,8 +894,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 34 + + col0 NOT BETWEEN - - 85 AND + # Datafusion - Expected - 5714 # Datafusion - Expected - 77 # Datafusion - Expected - 4185 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col0\) \* \(\- cor0\.col0\) \- Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + col1 ) AS col2, - col0 * - col0 - + + ( - 89 ) col2 FROM tab2 AS cor0 +---- +2205 +4185 +51 +5714 +67 +77 query I rowsort label-137 SELECT DISTINCT + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * 2 * - 55 FROM tab0 @@ -2166,8 +2194,11 @@ SELECT col1 * 28 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(70\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 70 AS col1, + COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) +---- +-70 +9 query I rowsort label-350 SELECT ( 93 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 @@ -2420,8 +2451,15 @@ SELECT + col0 * - + col0 AS col0 FROM tab2 # Datafusion - Expected - 68 # Datafusion - Expected - 5 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, + ( + + col2 ) AS col0 FROM tab1 +---- +14 +47 +5 +59 +68 +96 query II rowsort SELECT - col1 AS col2, + 29 AS col0 FROM tab1 @@ -3275,8 +3313,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 AS col2, - COUNT ( * ) AS col2 FROM tab2 +---- +-3 +47 query I rowsort label-535 SELECT + 25 / - - COUNT ( * ) FROM tab1 @@ -4777,8 +4818,15 @@ SELECT DISTINCT - COUNT ( * ), 38 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -210 # Datafusion - Expected - 63 # Datafusion - Expected - -3807 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \+ \(\- tab0\.col0\) \+ Int64\(16\) \+ tab0\.col2 AS col1" at position 0 and "tab0\.col2 \* \(\- tab0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 + - col0 + + + 16 + + + col2 AS col1, col2 * - col1 AS col1 FROM tab0 +---- +-210 +-3807 +-99 +115 +26 +63 query I rowsort SELECT ALL + col1 + - + col0 - - ( col1 ) FROM tab1 @@ -5593,8 +5641,15 @@ SELECT ALL ( - col1 ) * - col2 AS col0 FROM tab0 AS cor0 WHERE NOT + 63 >= col0 # Datafusion - Expected - -21 # Datafusion - Expected - 97 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col2 \+ Int64\(\-31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col2, col2 + - 31 AS col2 FROM tab0 +---- +-21 +15 +16 +68 +87 +97 query I rowsort SELECT + col1 * + 30 * - col0 FROM tab2 @@ -6280,8 +6335,15 @@ SELECT ALL SUM ( ALL + + col1 ) FROM tab1 # Datafusion - Expected - 2 # Datafusion - Expected - -25 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col1" at position 0 and "tab0\.col1 \+ tab0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 25 col1, col1 + + col1 AS col1 FROM tab0 +---- +-25 +-25 +-25 +162 +2 +42 query III rowsort SELECT * FROM tab2 WHERE NOT ( NULL ) >= - col0 + 74 + - 88 + - + col1 * - col1 * col0 + col1 @@ -6565,8 +6627,15 @@ SELECT DISTINCT + + col0 FROM tab0 AS cor0 WHERE NOT ( col2 + 45 + + 58 ) BETWEE # Datafusion - Expected - -85 # Datafusion - Expected - -91 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col0, - col0 AS col0 FROM tab1 AS cor0 WHERE NOT + 56 IN ( + col1, - 1 + + CAST ( - - col1 AS INTEGER ) ) +---- +-51 +-51 +-85 +-85 +-91 +-91 query IIIIII rowsort SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL @@ -6729,8 +6798,11 @@ SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( - col0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col2" at position 0 and "Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 5 AS col2, - 13 AS col2 FROM tab0 AS cor0 +---- +-13 +-5 query II rowsort label-1102 SELECT DISTINCT + - 72, - MAX ( ALL - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0 @@ -7139,8 +7211,15 @@ SELECT ALL ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0 WHERE - 50 = # Datafusion - Expected - 40 # Datafusion - Expected - -75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 75 AS col1, col2 AS col1 FROM tab2 AS cor0 +---- +-75 +-75 +-75 +23 +40 +58 query I rowsort SELECT + ( - 67 ) AS col0 FROM tab2 @@ -7634,8 +7713,9 @@ SELECT DISTINCT 91 + + + col0 AS col2 FROM tab0 AS cor0 WHERE NOT - 7 = NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 AS col1, col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > 77 +---- query I rowsort label-1251 SELECT ( + + COUNT ( * ) ) FROM tab2 AS cor0 @@ -8227,8 +8307,10 @@ SELECT DISTINCT CAST ( + col1 AS INTEGER ), + col0 AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 902a9753b9b6f989be390fb2cacbd5ad -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 1 and "Int64\(\-73\) \+ \(\- \(\- cor0\.col2\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, 47 AS col0, - 73 + - - col2 AS col0 FROM tab2 AS cor0 +---- +9 values hashing to 6dc90a848a6937248453a80ba26aa10b query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 21 * - col0 / - - col0 IS NULL @@ -8481,8 +8563,9 @@ SELECT * FROM tab2 WHERE col2 * + ( + col2 ) NOT BETWEEN col1 AND NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1, + col1 FROM tab0 WHERE NOT - 6 IS NOT NULL +---- query I rowsort label-1390 SELECT col2 / 37 FROM tab2 @@ -9313,8 +9396,11 @@ 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\(1\)\) AS count\(\*\)\) \- Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - CAST ( NULL AS FLOAT8 ) AS col0, - COUNT ( * ) - + 21 AS col0 FROM tab0, tab0 AS cor0 +---- +-30 +NULL query I rowsort label-1531 SELECT DISTINCT SUM ( + col0 ) - COUNT ( 2 ) AS col1 FROM tab0 WHERE ( col1 ) BETWEEN - col0 AND + 12 * - col0 * 28 - + col2 / + 32 @@ -9998,8 +10084,15 @@ SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE CAST ( - 65 AS INTEGER ) IS NULL # Datafusion - Expected - -94 # Datafusion - Expected - -96 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col1 \* Int64\(\-2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - ( + col2 ) AS col0, + col1 * - 2 AS col0 FROM tab1 AS cor0 +---- +-10 +-28 +-59 +-68 +-94 +-96 query I rowsort SELECT ALL + 59 + - 78 + - col0 AS col2 FROM tab2 AS cor0 @@ -10724,8 +10817,11 @@ SELECT DISTINCT - 11 * + - COUNT ( * ) / - 77 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4752 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* Int64\(\-99\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 * - 99 AS col0, COUNT ( * ) AS col0 FROM tab2 +---- +-4752 +3 query I rowsort label-1764 SELECT CAST ( + CAST ( col2 AS INTEGER ) AS INTEGER ) FROM tab0 @@ -12623,8 +12719,15 @@ SELECT DISTINCT - 1 * col1 AS col2, 80 AS col0 FROM tab1 cor0 WHERE NULL IS NOT # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, col1 col1 FROM tab0 AS cor0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT - 89 - col0 FROM tab0 AS cor0 @@ -12797,8 +12900,15 @@ SELECT + col0 / 66 * + col1 FROM tab1 WHERE NOT ( col1 ) <= NULL # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col2, col2 AS col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query II rowsort SELECT - col2 col1, col2 FROM tab2 AS cor0 @@ -13151,8 +13261,15 @@ SELECT * FROM tab2 WHERE NOT - col1 / + + col0 IN ( + col2, - ( - col0 ) * - - c # Datafusion - Expected - -87 # Datafusion - Expected - 8245 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* tab0\.col0 AS col1" at position 0 and "\(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 85 * col0 AS col1, - col0 AS col1 FROM tab0 +---- +-15 +-87 +-97 +1275 +7395 +8245 query III rowsort SELECT * FROM tab0 WHERE NOT + - col1 IS NULL @@ -15130,8 +15247,15 @@ SELECT + COUNT ( * ) FROM tab0 WHERE + col0 IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - 2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 / tab0\.col2 AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 / + col2 AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 +---- +0 +1 +2 +NULL +NULL +NULL query I rowsort label-2494 SELECT + SUM ( - + ( - col2 ) ) AS col0 FROM tab1 @@ -16544,8 +16668,15 @@ SELECT DISTINCT + + col0 * col0 * - - col0 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 700 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \* Int64\(70\) AS col1" at position 0 and "Int64\(12\) \+ cor0\.col0 \- \(\- cor0\.col0\) \+ CAST\(NULL AS Int32\) \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + - col2 ) * + 70 AS col1, 12 + + col0 - - + col0 + + CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab0 AS cor0 +---- +3290 +6930 +700 +NULL +NULL +NULL query I rowsort label-2731 SELECT + SUM ( 52 ) AS col1 FROM tab1 @@ -16871,8 +17002,15 @@ SELECT + - col1 / + col2 + + 48 col0 FROM tab0 AS cor0 # Datafusion - Expected - 365109 # Datafusion - Expected - 96 # Datafusion - Expected - 288881 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "Int64\(17\) \+ Int64\(59\) \* tab1\.col2 \* tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, 17 + + 59 * + col2 * + col0 AS col1 FROM tab1 +---- +288881 +295902 +365109 +59 +68 +96 query III rowsort SELECT * FROM tab0 WHERE + col1 / - 11 BETWEEN NULL AND - 49 @@ -17264,8 +17402,15 @@ SELECT ALL + ( + 75 ) * - - 0 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 134 # Datafusion - Expected - 82 # Datafusion - Expected - 100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) \- cor0\.col1 AS col0" at position 0 and "cor0\.col0 \+ \(\- Int64\(\-49\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col2 - + col1 AS col0, col0 + - - 49 AS col0 FROM tab1 AS cor0 +---- +100 +134 +140 +21 +54 +82 query I rowsort SELECT DISTINCT col1 * 12 * + col1 * + + 87 AS col0 FROM tab2 @@ -17765,8 +17910,11 @@ SELECT DISTINCT + col0 col0, col0 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - 114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \- sum\(Int64\(69\)\) / Int64\(29\) AS col0" at position 0 and "Int64\(38\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 - SUM ( ALL + + 69 ) / + 29 AS col0, 38 * + + COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL +---- +-77 +114 query I rowsort label-2926 SELECT DISTINCT CAST ( - - ( - 14 ) AS INTEGER ) FROM tab0 @@ -18602,8 +18750,15 @@ SELECT col1 * 65 col2 FROM tab2 # Datafusion - Expected - -94 # Datafusion - Expected - -99 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, - 94 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL +---- +-10 +-47 +-94 +-94 +-94 +-99 query I rowsort label-3068 SELECT MIN ( + col1 ) col2 FROM tab1 @@ -19104,8 +19259,11 @@ SELECT * FROM tab0 WHERE ( NULL ) > + col0 * + 88 + + - col0 + 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- sum\(Int64\(\-7\)\)\) AS Int32\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( - SUM ( ALL - 7 ) AS INTEGER ) AS col0, COUNT ( * ) col0 FROM tab1 +---- +-21 +3 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND ( + col2 + - col0 ) @@ -19925,8 +20083,15 @@ SELECT + col0 / - 5 FROM tab0 cor0 # Datafusion - Expected - -67 # Datafusion - Expected - 31 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col1" at position 0 and "\(\- tab2\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + 31 ) AS col1, - col1 AS col1 FROM tab2 +---- +-51 +-67 +-77 +31 +31 +31 query I rowsort SELECT ALL 27 * col2 FROM tab1 @@ -21382,8 +21547,15 @@ SELECT MIN ( DISTINCT - col0 ) AS col0 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2, col2 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT DISTINCT + 74 col1 FROM tab1 @@ -22075,8 +22247,15 @@ SELECT + COUNT ( + 27 ) + 33 AS col1 FROM tab1 WHERE ( + col1 ) IS NOT NULL # Datafusion - Expected - 4277 # Datafusion - Expected - 90 # Datafusion - Expected - 714 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "tab1\.col0 \* tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 90 AS col2, col0 * + ( + + col1 ) AS col2 FROM tab1 +---- +425 +4277 +714 +90 +90 +90 query I rowsort label-3643 SELECT 22 - + col1 / - - 24 FROM tab1 @@ -23116,8 +23295,15 @@ SELECT - COUNT ( * ) * + 3 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 4431 # Datafusion - Expected - 23 # Datafusion - Expected - 5889 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "cor0\.col1 \* cor0\.col1 \+ \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 AS col2, col1 * col1 + - col2 AS col2 FROM tab2 AS cor0 +---- +23 +23 +23 +2578 +4431 +5889 query I rowsort label-3815 SELECT ALL + - CAST ( - 77 AS INTEGER ) * - ( + + ( 38 ) ) * - - SUM ( 50 ) + - - 23 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 @@ -23420,8 +23606,15 @@ SELECT + + MIN ( DISTINCT 76 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, + col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT ALL col0 * - - col0 FROM tab1 AS cor0 @@ -23708,8 +23901,15 @@ SELECT SUM ( - ( ( + - 52 ) ) ) AS col1, 2 AS col2 FROM tab1 # Datafusion - Expected - -93 # Datafusion - Expected - -99 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col2" at position 0 and "Int64\(\-93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, - 93 AS col2 FROM tab0 +---- +-10 +-47 +-93 +-93 +-93 +-99 query II rowsort label-3906 SELECT + + col2 / - + col1, + col2 AS col1 FROM tab0 AS cor0 @@ -24633,8 +24833,15 @@ SELECT DISTINCT + + 94 + - CAST ( - - COUNT ( * ) AS INTEGER ) / - CAST ( ( - CO # Datafusion - Expected - 1827 # Datafusion - Expected - 989 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ Int64\(10\) \* cor0\.col1 \* cor0\.col2 / cor0\.col1 AS col2" at position 0 and "cor0\.col0 \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col1 + 10 * + col1 * col2 / col1 col2, col0 * + col1 AS col2 FROM tab0 AS cor0 +---- +1215 +1827 +389 +79 +97 +989 query III rowsort SELECT * FROM tab1 AS cor0 WHERE col2 >= NULL @@ -24716,8 +24923,15 @@ SELECT col1 * 95 FROM tab0 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col0, ( + col1 ) col0 FROM tab1 AS cor0 +---- +14 +14 +47 +47 +5 +5 query II rowsort SELECT ( + - 12 ), col1 FROM tab1 AS cor0 @@ -25003,8 +25217,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ), - COUNT ( * ) FROM tab0 AS cor0 +---- +-3 +-3 query III rowsort SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL ) @@ -25303,8 +25520,11 @@ SELECT - - 86 * + - COUNT ( + 83 ) + COUNT ( * ) * + + ( + 40 ) * + - 26 col0 FR # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(15\)\)\) 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 II valuesort SELECT - COUNT ( + 15 ) AS col1, MAX ( ALL + 31 ) col1 FROM tab2 AS cor0 +---- +-3 +31 query I rowsort label-4178 SELECT ALL SUM ( ALL + col0 ) col1 FROM tab2 AS cor0 @@ -26318,8 +26538,15 @@ SELECT DISTINCT + 12 / - col2 * - col0 + + col1 + - 42 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 5 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( col1 ), col1 FROM tab1 +---- +14 +14 +47 +47 +5 +5 query I rowsort label-4347 SELECT ALL 31 + + MIN ( + + col2 ) FROM tab2 AS cor0 @@ -26548,8 +26775,15 @@ SELECT DISTINCT 30 * + col1 * + col2 * col1 FROM tab1 # Datafusion - Expected - 65 # Datafusion - Expected - 24 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ \(\- tab2\.col2\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + + - col2 AS col0, 65 AS col0 FROM tab2 +---- +17 +23 +24 +65 +65 +65 query I rowsort label-4384 SELECT DISTINCT SUM ( DISTINCT - col0 ) AS col0 FROM tab1 @@ -26661,8 +26895,11 @@ SELECT 95 FROM tab2 AS cor0 WHERE col2 * + col2 * - + col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 34 + + COUNT ( * ) col2, 8 AS col2 FROM tab0 AS cor0 +---- +-31 +8 query II rowsort SELECT DISTINCT 58 col0, 78 FROM tab1 AS cor0 @@ -26677,8 +26914,15 @@ SELECT DISTINCT 58 col0, 78 FROM tab1 AS cor0 # Datafusion - Expected - 2125 # Datafusion - Expected - -58 # Datafusion - Expected - 9996 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col0" at position 0 and "cor0\.col1 \* \(\- cor0\.col0\) \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 col0, + ( + col1 ) * + - col0 * ( + - col1 ) AS col0 FROM tab1 AS cor0 +---- +-58 +-58 +-58 +201019 +2125 +9996 query I rowsort label-4405 SELECT + - col0 * - 6 + - - col1 / + col0 + + 50 + + 44 * - 80 * + col1 col2 FROM tab1 AS cor0 @@ -27317,8 +27561,10 @@ SELECT ALL * FROM tab1 WHERE + - 97 <= col2 * col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to f11070fdfc2748115a8ef3b9f6f2e363 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 88 AS col1, 36 col1, + col1 AS col0 FROM tab0 +---- +9 values hashing to 572b78d1eb10fdc31055d9af7139e7bb query I rowsort label-4518 SELECT - MAX ( DISTINCT - + 60 ) FROM tab2 @@ -27642,8 +27888,15 @@ SELECT DISTINCT - col1 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - 3854 # Datafusion - Expected - -99 # Datafusion - Expected - 198 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col2" at position 0 and "tab0\.col2 \+ tab0\.col1 \* tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, col2 + col1 * + col2 AS col2 FROM tab0 +---- +-10 +-47 +-99 +198 +220 +3854 query I rowsort SELECT DISTINCT col1 + + + col2 col2 FROM tab2 @@ -27782,8 +28035,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 63 AS col2, - ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 +---- +-3 +-63 query I rowsort label-4596 SELECT - - 86 FROM tab1 WHERE NOT + + 27 IN ( + + col0 + - CAST ( NULL AS INTEGER ), - 48, + col1, + col1 * + - CAST ( NULL AS INTEGER ), - col1 ) @@ -28319,8 +28575,11 @@ SELECT ALL - col1 - + 36 col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(cor0\.col1\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( + + col1 ) + + COUNT ( * ) col0, COUNT ( * ) AS col0 FROM tab2 AS cor0 +---- +3 +6 query I rowsort label-4684 SELECT + 95 + - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 @@ -28744,8 +29003,15 @@ SELECT - COUNT ( * ) / - COUNT ( DISTINCT + - col1 ) FROM tab2 AS cor0 # Datafusion - Expected - -72 # Datafusion - Expected - -58 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col2, - 72 AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +-72 +-72 +-72 query II rowsort label-4752 SELECT - 55 AS col0, + COUNT ( * ) AS col2 FROM tab1 AS cor0 @@ -28965,8 +29231,15 @@ SELECT - - 33, col0 * col2 + col2 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -64 # Datafusion - Expected - 5558 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col0 \+ \(\- cor0\.col1\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 * + col0 + - col1 AS col2, - col0 AS col2 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +2065 +4019 +5558 query I rowsort label-4787 SELECT DISTINCT + 64 / - col1 col2 FROM tab2 @@ -30822,8 +31095,15 @@ SELECT ALL - + 85 - col1, col2 AS col1 FROM tab2 cor0 # Datafusion - Expected - 55 # Datafusion - Expected - 0 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 0 AS col2, + 55 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL +---- +0 +0 +0 +55 +55 +55 query I rowsort SELECT DISTINCT - + col2 - - col1 FROM tab1 AS cor0 @@ -30967,8 +31247,15 @@ SELECT + ( 12 ) * + col1, + col2 AS col2 FROM tab0 # Datafusion - Expected - 75 # Datafusion - Expected - 69 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ tab2\.col2 AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + col0 ) + + + col2 AS col1, + col0 AS col1 FROM tab2 +---- +104 +133 +46 +64 +69 +75 query I rowsort SELECT ALL + col1 * - 33 FROM tab0 WHERE NOT NULL IS NULL @@ -31466,8 +31753,15 @@ SELECT ALL - ( + - ( SUM ( ALL + + 2 ) ) ) col1 FROM tab1 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1, col1 FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT col0 * + - col1 * ( 44 ) * col0 + - - ( ( + - col2 ) ) FROM tab1 @@ -32044,8 +32338,15 @@ SELECT CAST ( 27 AS INTEGER ) * + ( ( + col0 ) ) * - - col0 AS col1 FROM tab0 AS # Datafusion - Expected - -10 # Datafusion - Expected - 75 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - col0 ) AS col0, - 10 AS col0 FROM tab2 AS cor0 +---- +-10 +-10 +-10 +46 +64 +75 query I rowsort SELECT ALL + ( 68 ) FROM tab2 AS cor0 @@ -33250,8 +33551,15 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "Int64\(71\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, 71 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 +---- +1 +21 +81 +NULL +NULL +NULL query I rowsort SELECT ALL + + col1 FROM tab0 WHERE NULL NOT BETWEEN - col0 + + + col2 AND NULL @@ -33460,8 +33768,15 @@ SELECT DISTINCT 82 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col0, + col0 col0 FROM tab2 AS cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-5537 SELECT SUM ( - + 8 ) FROM tab2 AS cor0 @@ -33523,14 +33838,20 @@ SELECT ALL COUNT ( CAST ( + 41 AS INTEGER ) ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \+ Int64\(51\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 46 + + 51 AS col1, 79 AS col1 FROM tab0 +---- +79 +97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(27\) AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( 27 AS INTEGER ) AS col2, - COUNT ( * ) AS col2 FROM tab2 +---- +-3 +27 query I rowsort SELECT ALL - 89 - + + col2 FROM tab1 AS cor0 @@ -33716,8 +34037,15 @@ SELECT - ( - col2 ) - + - 14 col1 FROM tab1 # Datafusion - Expected - 5 # Datafusion - Expected - 91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col2, col1 col2 FROM tab1 +---- +14 +47 +5 +51 +85 +91 query I rowsort SELECT DISTINCT col2 * - - col0 col1 FROM tab0 @@ -33742,8 +34070,10 @@ SELECT 18 + - 73 AS col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to ae902d03c41eedfdd4ae7481298057d0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* \(\- tab0\.col1\) AS col0" at position 1 and "Int64\(29\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col2 + - - col1, col1 * - col1 AS col0, + 29 AS col0 FROM tab0 +---- +9 values hashing to 9ca91fc85d442268a8a2e0e573e3fe05 query III rowsort SELECT * FROM tab2 cor0 WHERE ( NOT + col1 IS NULL ) @@ -34911,8 +35241,15 @@ SELECT ALL 29 * + 21 FROM tab2 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col0, col0 FROM tab2 cor0 +---- +46 +46 +64 +64 +75 +75 query I rowsort label-5779 SELECT ALL - MIN ( ALL + - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 @@ -35084,8 +35421,15 @@ SELECT ALL - ( col1 ) * - col2 FROM tab1 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 44 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( 44 ) AS col1, col0 AS col1 FROM tab0 AS cor0 +---- +15 +44 +44 +44 +87 +97 query I rowsort label-5807 SELECT ALL + 63 * col1 / + + ( col2 ) FROM tab2 AS cor0 @@ -35524,8 +35868,15 @@ SELECT + col0 - - + 16 + 36 AS col2 FROM tab2 # Datafusion - Expected - -332186 # Datafusion - Expected - 65 # Datafusion - Expected - -438746 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "Int64\(74\) \* tab2\.col1 \* \(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 65 AS col0, + 74 * col1 * - col1 AS col0 FROM tab2 +---- +-192474 +-332186 +-438746 +65 +65 +65 query II rowsort SELECT DISTINCT - col0, col1 FROM tab1 @@ -36230,8 +36581,15 @@ SELECT DISTINCT - - MAX ( DISTINCT - + 63 ) FROM tab1 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1, - col1 FROM tab1 AS cor0 +---- +-14 +-14 +-47 +-47 +-5 +-5 query II rowsort label-5999 SELECT - + col0 col2, + col1 / + + col2 FROM tab1 cor0 @@ -36763,8 +37121,15 @@ SELECT * FROM tab0 cor0 WHERE ( NULL ) <= NULL # Datafusion - Expected - -58 # Datafusion - Expected - 552 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col2 \* cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 + + col2 * + col2 AS col0, - col2 AS col0 FROM tab2 AS cor0 +---- +-23 +-40 +-58 +1640 +3422 +552 query I rowsort SELECT + 27 + - 67 FROM tab1 AS cor0 @@ -37186,8 +37551,11 @@ SELECT DISTINCT + + ( - COUNT ( * ) ) AS col0 FROM tab2 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-57\)\) AS col2" at position 0 and "\(\- count\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 57 AS col2, - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 +---- +0 +57 query I rowsort label-6155 SELECT - MAX ( DISTINCT - - ( col0 ) ) FROM tab0 @@ -37240,8 +37608,15 @@ SELECT DISTINCT SUM ( + - col1 ) col2 FROM tab2 cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 +---- +14 +47 +5 +NULL +NULL +NULL query I rowsort SELECT DISTINCT ( + + 79 ) * + - 27 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL @@ -38028,8 +38403,15 @@ SELECT DISTINCT - COUNT ( * ), 75 AS col2 FROM tab2 # Datafusion - Expected - 3807 # Datafusion - Expected - 97 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col0" at position 0 and "tab0\.col1 \* tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 97 AS col0, + ( col1 ) * + col2 AS col0 FROM tab0 +---- +210 +3807 +97 +97 +97 +99 query I rowsort SELECT + col0 * - col2 + + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL @@ -38476,8 +38858,15 @@ SELECT - + col1 * col0 AS col2 FROM tab2 cor0 # Datafusion - Expected - -38 # Datafusion - Expected - 81 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, - 38 AS col2 FROM tab0 +---- +-38 +-38 +-38 +1 +21 +81 query II rowsort label-6372 SELECT DISTINCT + COUNT ( * ) col1, 24 FROM tab2 @@ -38638,8 +39027,15 @@ SELECT DISTINCT 18 + + col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, + col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-6398 SELECT DISTINCT - - COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 @@ -39009,8 +39405,15 @@ SELECT ALL CAST ( ( + 87 ) AS INTEGER ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 c # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT ALL - 50 * - col1 + - - col1 AS col0 FROM tab0 AS cor0 @@ -40282,8 +40685,11 @@ SELECT - COUNT ( + - col0 ) FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -201 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(67\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( COUNT ( * ) ) * - + 67 AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 +---- +-201 +3 query I rowsort SELECT + 42 * + 65 AS col0 FROM tab1 AS cor0 @@ -40499,8 +40905,15 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT + 16 * - ( - col2 ) FROM tab0 AS cor0 WHERE NOT NULL < NULL @@ -40513,8 +40926,15 @@ SELECT + 16 * - ( - col2 ) FROM tab0 AS cor0 WHERE NOT NULL < NULL # Datafusion - Expected - 147 # Datafusion - Expected - 1 # Datafusion - Expected - 159 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / cor0\.col2 AS col2" at position 0 and "cor0\.col2 \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 / + ( col2 ) AS col2, + col2 + + col0 AS col2 FROM tab1 AS cor0 +---- +1 +1 +1 +144 +147 +159 query II rowsort SELECT ALL + col2 * - col0 col1, 7 FROM tab0 @@ -41278,8 +41698,15 @@ SELECT + - COUNT ( ALL col0 ) AS col2 FROM tab1 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col2, + col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT - col2 FROM tab1 AS cor0 WHERE NOT + 89 * + 27 <= NULL @@ -41465,8 +41892,15 @@ NULL # Datafusion - Expected - -21 # Datafusion - Expected - NULL # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- tab0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col0, - col1 AS col0 FROM tab0 +---- +-1 +-21 +-81 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab0 WHERE - col2 * - ( - col1 ) + + + col2 + + 40 <> - col2 @@ -41981,8 +42415,15 @@ SELECT ALL COUNT ( - + 85 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 141 # Datafusion - Expected - -75 # Datafusion - Expected - 142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col1 \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col0, col1 + col0 AS col0 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +141 +142 +97 query I rowsort SELECT DISTINCT ( 21 ) FROM tab2 @@ -42697,8 +43138,11 @@ SELECT DISTINCT 49 * 77 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, - 61 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 +---- +-61 +9 query III rowsort SELECT * FROM tab1 WHERE NOT 58 + + col0 IS NOT NULL @@ -43160,8 +43604,11 @@ SELECT + col2 + + col2 AS col2, col0 col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(92\)\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + 92 ) AS col0, 17 AS col0 FROM tab0 +---- +-92 +17 query II rowsort label-7158 SELECT 69 / CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1, COUNT ( * ) AS col2 FROM tab0 @@ -43775,8 +44222,10 @@ SELECT ALL + + 39 AS col2, - col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 34f67280c41a77d87b376266e01b1df5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - col0 AS col0, 77, + 79 AS col0 FROM tab2 AS cor0 +---- +9 values hashing to b6a2c6ed1aef83cbb50232a639fdce59 query I rowsort SELECT - + 12 + + col1 + + col0 FROM tab1 cor0 @@ -43956,8 +44405,15 @@ SELECT 6 * + col2 AS col1 FROM tab0 # Datafusion - Expected - 47 # Datafusion - Expected - 2208 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* tab1\.col2 AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 * + col2 col0, + ( col1 ) AS col0 FROM tab1 +---- +1357 +14 +1564 +2208 +47 +5 query I rowsort SELECT col1 FROM tab2 WHERE NOT - 91 IS NULL @@ -44417,8 +44873,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 +---- +3 +3 query I rowsort label-7361 SELECT - 43 + 4 * + COUNT ( * ) AS col1 FROM tab2 AS cor0 @@ -44580,8 +45039,15 @@ SELECT ALL 29 + 75 FROM tab1 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, + col0 AS col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 query III rowsort SELECT * FROM tab2 WHERE NOT - + 42 IS NOT NULL @@ -44615,8 +45081,15 @@ SELECT ALL ( col0 ) col0 FROM tab0 AS cor0 # Datafusion - Expected - -1608 # Datafusion - Expected - -58 # Datafusion - Expected - -1848 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col0" at position 0 and "\(\- CAST\(Int64\(24\) AS Int32\)\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 AS col0, - CAST ( + 24 AS INTEGER ) * col1 col0 FROM tab2 AS cor0 +---- +-1224 +-1608 +-1848 +-58 +-58 +-58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 @@ -45497,8 +45970,15 @@ SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - 47 # Datafusion - Expected - -430 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(\-86\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 * - 86 AS col2, + col1 AS col2 FROM tab1 AS cor0 +---- +-1204 +-4042 +-430 +14 +47 +5 query I rowsort SELECT DISTINCT + - 35 col2 FROM tab2 AS cor0 @@ -46236,8 +46716,15 @@ SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) FROM tab1 cor0 # Datafusion - Expected - 142 # Datafusion - Expected - 41 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "cor0\.col0 \- \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 41 AS col2, col0 - - + col1 AS col2 FROM tab2 AS cor0 +---- +141 +142 +41 +41 +41 +97 query I rowsort label-7660 SELECT ALL - ( SUM ( - col0 ) ) AS col0 FROM tab1 AS cor0 @@ -46851,8 +47338,15 @@ SELECT DISTINCT ( + COUNT ( * ) ) * - 12 FROM tab1 # Datafusion - Expected - 87 # Datafusion - Expected - -97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* \(\- tab0\.col1\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * - col1 AS col1, col0 AS col1 FROM tab0 +---- +-1215 +-1827 +-97 +15 +87 +97 query I rowsort SELECT + col1 FROM tab1 WHERE NOT ( - 33 ) BETWEEN NULL AND NULL @@ -47125,8 +47619,15 @@ SELECT ALL 80 / - + 11, 16 AS col0 FROM tab2 cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 3 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- Int64\(61\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 + - + 61 AS col2, col1 AS col2 FROM tab2 AS cor0 +---- +-15 +14 +3 +51 +67 +77 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 + - 68 IS NULL @@ -47340,8 +47841,15 @@ SELECT ALL col1 AS col0, col0 - - 51 FROM tab0 AS cor0 # Datafusion - Expected - -7452 # Datafusion - Expected - 0 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- cor0\.col2\) AS col0" at position 0 and "Int64\(92\) \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 + - col2 AS col0, + 92 * - + col1 AS col0 FROM tab0 cor0 +---- +-1932 +-7452 +-92 +0 +0 +0 query I rowsort label-7840 SELECT - col2 * + - CAST ( NULL AS INTEGER ) / - - CAST ( - 55 AS INTEGER ) + + col0 + + + col1 + - 36 + - + col0 FROM tab0 AS cor0 @@ -49044,8 +49552,12 @@ SELECT * FROM tab2 WHERE - + CAST ( NULL AS INTEGER ) BETWEEN + col1 AND NULL # Datafusion - Expected - -29 # Datafusion - Expected - 125 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col1" at position 0 and "Int64\(64\) \+ Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 29 AS col1, + 64 + + 61 AS col1, COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 +---- +-29 +125 +9 query I rowsort SELECT - 51 * col1 / col0 AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL @@ -49112,8 +49624,15 @@ SELECT DISTINCT + col0 + + 28 / + col0 * - + ( - col2 ) - - col0 FROM tab1 AS co # Datafusion - Expected - -59 # Datafusion - Expected - -91 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 AS col2, - col2 AS col2 FROM tab1 AS cor0 +---- +-51 +-59 +-68 +-85 +-91 +-96 query I rowsort SELECT ALL + - 5 + + 79 + col1 + + + col2 FROM tab1 AS cor0 @@ -50039,8 +50558,15 @@ SELECT DISTINCT + 2 + - CAST ( - - 80 AS INTEGER ) FROM tab2 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, + col1 AS col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 query I rowsort SELECT ALL + 9 + - col2 * - + col0 AS col0 FROM tab1 @@ -50462,8 +50988,15 @@ SELECT DISTINCT + col1 + 10 * + col2 * + col0 col2 FROM tab2 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - -39 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-39\)\)\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - ( ( - - 39 ) ) col0, col1 AS col0 FROM tab1 AS cor0 +---- +-39 +-39 +-39 +14 +47 +5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 @@ -52664,8 +53197,11 @@ SELECT DISTINCT + 46 * + ( - 92 ) * - - col0 + - 21 + + 73 - col0 AS col1 FROM t # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(\-91\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) col0, COUNT ( ( - 91 ) ) AS col0 FROM tab1 +---- +3 +NULL query III rowsort SELECT * FROM tab1 cor0 WHERE NOT col2 - col2 - - 18 <= - col2 @@ -52757,8 +53293,11 @@ SELECT DISTINCT - 60 / + col0 + ( col1 ) + + col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "\(\- max\(DISTINCT cor0\.col0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 AS col2, - MAX ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL +---- +85 +NULL query I rowsort label-8737 SELECT + 16 / + - COUNT ( * ) AS col2 FROM tab0 @@ -52969,8 +53508,15 @@ SELECT ALL + col1 + + + 68 + 4 AS col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS IN # Datafusion - Expected - -61 # Datafusion - Expected - -81 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(\-61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, - 61 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL +---- +-1 +-21 +-61 +-61 +-61 +-81 query I rowsort label-8768 SELECT DISTINCT + COUNT ( ALL col0 ) AS col2 FROM tab1 cor0 @@ -54392,8 +54938,15 @@ SELECT ALL col2 * + 72 AS col2 FROM tab1 # Datafusion - Expected - 84 # Datafusion - Expected - 8 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 / Int64\(5\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 / 5 AS col1, 84 AS col1 FROM tab2 +---- +11 +4 +8 +84 +84 +84 query III rowsort SELECT * FROM tab2 WHERE NOT NULL > col1 @@ -54559,8 +55112,15 @@ NULL # Datafusion - Expected - -97 # Datafusion - Expected - 84 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \- tab0\.col0 AS col0" at position 0 and "\(\- tab0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 99 - col0 AS col0, - col0 AS col0 FROM tab0 +---- +-15 +-87 +-97 +12 +2 +84 query I rowsort SELECT ALL + + 38 - + col1 AS col1 FROM tab0 cor0 @@ -54907,8 +55467,9 @@ SELECT + - col0 * + 48 * - 99 + + + col0 - 32 FROM tab1 AS cor0 432491 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* \(\- Int64\(1\)\) \* cor0\.col2 \* \(\- cor0\.col0\) AS col2" at position 0 and "Int64\(88\) \+ \(\- Int64\(5\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 * - ( + 1 ) * col2 * - col0 AS col2, + 88 + - ( 5 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL +---- # Datafusion - Datafusion expected results: # Datafusion - Expected - 196 @@ -54917,8 +55478,15 @@ SELECT 35 * - ( + 1 ) * col2 * - col0 AS col2, + 88 + - ( 5 ) AS col2 FROM tab0 # Datafusion - Expected - 81 # Datafusion - Expected - 97 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ cor0\.col0 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( col2 ) + col0 AS col2, col1 AS col2 FROM tab0 cor0 WHERE NULL IS NULL +---- +1 +196 +21 +62 +81 +97 query II rowsort SELECT DISTINCT + 65 col0, 22 AS col2 FROM tab0 AS cor0 @@ -55213,8 +55781,15 @@ SELECT DISTINCT + col1 * - 72 AS col0 FROM tab1 # Datafusion - Expected - -115 # Datafusion - Expected - 9120 # Datafusion - Expected - -110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col2 \- cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col2\) \+ \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * ( + col2 ) - + + col2 AS col0, - col2 + - col1 AS col0 FROM tab1 AS cor0 +---- +-110 +-115 +-64 +3422 +4556 +9120 query II rowsort label-9136 SELECT + 60, COUNT ( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0 @@ -55378,8 +55953,15 @@ SELECT DISTINCT col1 - 3 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -6561 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \* \(\- tab0\.col1\) 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 IR valuesort SELECT ALL + col1 * - col1 AS col0, ( - CAST ( NULL AS FLOAT8 ) ) AS col0 FROM tab0 +---- +-1 +-441 +-6561 +NULL +NULL +NULL query I rowsort label-9161 SELECT + col1 / + 59 FROM tab0 @@ -56030,8 +56612,15 @@ SELECT - col1 + - + col0 FROM tab0 AS cor0 # Datafusion - Expected - 81 # Datafusion - Expected - 99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, col1 AS col0 FROM tab0 cor0 +---- +1 +10 +21 +47 +81 +99 query I rowsort label-9265 SELECT DISTINCT - col2 / - 50 AS col2 FROM tab2 cor0 @@ -56125,8 +56714,15 @@ SELECT col1 * - 24 AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) = NULL # Datafusion - Expected - 87 # Datafusion - Expected - 77 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 AS col1, col0 col1 FROM tab0 AS cor0 +---- +15 +77 +77 +77 +87 +97 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT 96 IS NULL @@ -56393,8 +56989,15 @@ SELECT * FROM tab2 cor0 WHERE - col0 IS NOT NULL # Datafusion - Expected - 66 # Datafusion - Expected - 3978 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \* \(\- Int64\(58\)\) \+ cor0\.col1 \+ cor0\.col0 \* cor0\.col2 AS col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col0 * - + 58 + col1 + + col0 * + col2 AS col2, 66 AS col2 FROM tab0 AS cor0 +---- +-4155 +-84 +3978 +66 +66 +66 query I rowsort SELECT DISTINCT - 45 col1 FROM tab2 @@ -56535,8 +57138,15 @@ SELECT DISTINCT col2 / col1 * + - 51 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) / \(\- tab0\.col2\) \* Int64\(64\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 1 / - col2 * + 64 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 +---- +0 +0 +0 +NULL +NULL +NULL query I rowsort label-9346 SELECT DISTINCT - 56 / + - col0 col0 FROM tab1 @@ -56829,8 +57439,15 @@ SELECT col1 AS col1, col1 col0 FROM tab2 # Datafusion - Expected - 67 # Datafusion - Expected - -22 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 22 AS col0, col1 col0 FROM tab2 +---- +-22 +-22 +-22 +51 +67 +77 query II rowsort label-9392 SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, 12 * + 69 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 @@ -56977,8 +57594,11 @@ SELECT ALL col1 * - 97 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab0 +---- +-3 +3 query I rowsort label-9416 SELECT ALL - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0 @@ -57774,8 +58394,10 @@ SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE + ( - 16 ) * - + col2 - 13 / + - co # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 08195229a4b833154b78a18e92116b8a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT col1, + ( - col1 ) * + 51, col1 FROM tab0 cor0 +---- +9 values hashing to 0e37374b8551d773729b0c2deba47309 query I rowsort SELECT 90 col1 FROM tab2 WHERE NOT + col0 <> ( 9 + col0 + col2 ) @@ -58674,8 +59296,15 @@ SELECT + + 89 AS col1 FROM tab2 cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -89 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-89\) AS Int32\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - 89 AS INTEGER ) AS col1, - col2 col1 FROM tab0 AS cor0 +---- +-10 +-47 +-89 +-89 +-89 +-99 query I rowsort SELECT DISTINCT - col2 * - 25 AS col0 FROM tab2 @@ -59238,8 +59867,15 @@ SELECT + ( - col0 ) AS col0, - col2 AS col1 FROM tab0 # Datafusion - Expected - 5678 # Datafusion - Expected - 28 # Datafusion - Expected - -346 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \+ Int64\(\-69\) AS col1" at position 0 and "Int64\(74\) \* tab0\.col0 \- Int64\(76\) \* tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 + - 69 AS col1, 74 * col0 - 76 * col2 AS col1 FROM tab0 +---- +-2462 +-346 +-54 +18 +28 +5678 query I rowsort SELECT DISTINCT - 69 + + + 37 + - - col0 AS col0 FROM tab1 AS cor0 @@ -59688,8 +60324,10 @@ SELECT * FROM tab1 AS cor0 WHERE - col2 * 43 * ( + col1 ) * - col0 * col2 IS NOT # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 120ef8eb7bc5bedec4054a6345b99942 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 1 and "\(\- cor0\.col2\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col0 AS col0, - col1 AS col2, + - col2 AS col2 FROM tab1 AS cor0 +---- +9 values hashing to be1c3f479caf75a7a9745ecd262ce636 query I rowsort SELECT - 22 * col1 * - 6 + + - col0 col0 FROM tab1 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_97.slt b/data/sqlite/random/aggregates/slt_good_97.slt index 11eb04f..9c7d2ed 100644 --- a/data/sqlite/random/aggregates/slt_good_97.slt +++ b/data/sqlite/random/aggregates/slt_good_97.slt @@ -91,8 +91,11 @@ SELECT + ( + MIN ( DISTINCT + - col1 ) ) col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT \(\- tab2\.col0\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( DISTINCT - col0 ) AS col0, + COUNT ( * ) col0 FROM tab2 +---- +-46 +3 query I rowsort label-10 SELECT - 28 / - col1 FROM tab1 @@ -434,8 +437,15 @@ SELECT - col0 FROM tab1 WHERE NOT ( + col1 + + + 24 ) IS NULL # Datafusion - Expected - -39 # Datafusion - Expected - -81 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "\(\- Int64\(39\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, - ( + 39 ) AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-39 +-39 +-39 +-81 query I rowsort label-66 SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0 @@ -752,8 +762,15 @@ SELECT ALL + 64 + - + COUNT ( * ) * - 85 FROM tab0 AS cor0 WHERE NOT + col0 < NU # Datafusion - Expected - 40 # Datafusion - Expected - 74 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 74 AS col0, col2 AS col0 FROM tab2 AS cor0 +---- +23 +40 +58 +74 +74 +74 query I rowsort label-120 SELECT + + 96 / 77 AS col0 FROM tab1 AS cor0 @@ -1387,8 +1404,15 @@ SELECT + col0, 64 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - -81 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 col2, col0 AS col2 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +15 +87 +97 query I rowsort label-223 SELECT ALL ( ( - MIN ( - col0 ) ) ) AS col2 FROM tab2 @@ -1520,8 +1544,9 @@ SELECT - 28 - - + col1 + + col1 AS col1 FROM tab0 14 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, col2 AS col1 FROM tab2 WHERE - + CAST ( - + ( - col1 ) AS INTEGER ) IS NULL +---- query II rowsort label-246 SELECT DISTINCT - 65 col0, + 90 * MIN ( + - 79 ) FROM tab0 @@ -2054,8 +2079,15 @@ SELECT ALL 95 * + MIN ( + col1 ) / SUM ( ALL + col1 ) FROM tab0 # Datafusion - Expected - 49 # Datafusion - Expected - 42 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-42\)\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 42 AS col2, 49 AS col2 FROM tab2 AS cor0 +---- +42 +42 +42 +49 +49 +49 query I rowsort SELECT DISTINCT - - 26 + col1 FROM tab1 AS cor0 @@ -2430,8 +2462,15 @@ NULL # Datafusion - Expected - NULL # 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 "CAST\(NULL AS Float64\) \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - 64 col0, CAST ( NULL AS FLOAT8 ) * - + col1 AS col0 FROM tab2 AS cor0 +---- +-64 +-64 +-64 +NULL +NULL +NULL query I rowsort label-390 SELECT COUNT ( * ) * + - COUNT ( * ) / - 92 AS col2 FROM tab2 @@ -3711,8 +3750,15 @@ SELECT SUM ( + 3 ) * CAST ( 46 AS INTEGER ) * + 44 FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, col2 col2 FROM tab1 AS cor0 +---- +59 +59 +68 +68 +96 +96 query I rowsort SELECT ALL ( 33 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL @@ -3836,8 +3882,15 @@ SELECT + ( - 17 ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 1305 # Datafusion - Expected - 99 # Datafusion - Expected - 2627 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col1" at position 0 and "\(\- cor0\.col0\) \+ Int64\(51\) \+ cor0\.col2 \* Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 AS col1, - col0 + + 51 + col2 * + 27 AS col1 FROM tab0 AS cor0 +---- +10 +1305 +234 +2627 +47 +99 query II rowsort label-633 SELECT COUNT ( * ), SUM ( DISTINCT - 36 ) AS col1 FROM tab2 AS cor0 @@ -4108,8 +4161,15 @@ SELECT + + 85 AS col2, ( - col0 ) AS col0 FROM tab1 WHERE NOT - 61 IS NULL # Datafusion - Expected - 108 # Datafusion - Expected - -81 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "tab0\.col1 \+ tab0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, + ( + ( col1 ) ) + col0 AS col0 FROM tab0 +---- +-1 +-21 +-81 +108 +96 +98 query II rowsort label-681 SELECT ALL - MAX ( ALL + + ( - 12 ) ) AS col2, ( - + 97 ) col1 FROM tab0 WHERE NOT NULL >= col0 @@ -4511,8 +4571,11 @@ SELECT col2 + ( - col2 ) AS col0 FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) \* Int64\(\-12\) \+ tab2\.col0 \- \(\- CAST\(NULL AS Float64\)\) AS col0" at position 0 and "CAST\(Int64\(31\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT - col2 * - 12 + + + col0 - - CAST ( NULL AS FLOAT8 ) AS col0, + CAST ( + 31 AS INTEGER ) AS col0 FROM tab2 +---- +31 +NULL query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT + col0 NOT IN ( + col0 * + 71, col2, - col0 + 60 / col2 ) @@ -5150,8 +5213,15 @@ SELECT ALL + col0 * - 43 + col2 FROM tab0 AS cor0 # Datafusion - Expected - -25 # Datafusion - Expected - 2480 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(31\) AS col1" at position 0 and "tab1\.col2 \+ Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 80 * + + 31 AS col1, col2 + + - 84 AS col1 FROM tab1 +---- +-16 +-25 +12 +2480 +2480 +2480 query II rowsort label-852 SELECT ALL + COUNT ( * ), + 54 - 25 AS col2 FROM tab2 @@ -5242,8 +5312,11 @@ 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\(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\. +query II valuesort SELECT ALL - - COUNT ( * ) + + SUM ( ALL - col1 ) col0, - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT - col1 + + col1 < - CAST ( NULL AS INTEGER ) +---- +0 +NULL query I rowsort label-867 SELECT ALL MIN ( ALL - - 50 ) col1 FROM tab2 AS cor0 @@ -5374,8 +5447,15 @@ SELECT DISTINCT + col0, + col2 FROM tab0 # Datafusion - Expected - 3713 # Datafusion - Expected - -9801 # Datafusion - Expected - 7821 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) \* CAST\(tab0\.col2 AS Int32\) AS col0" at position 0 and "Int64\(79\) \* tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 * CAST ( + col2 AS INTEGER ) col0, 79 * col2 AS col0 FROM tab0 +---- +-100 +-2209 +-9801 +3713 +7821 +790 query I rowsort SELECT DISTINCT + + col1 * - + 15 col1 FROM tab0 WHERE - - col0 * + - 16 IS NOT NULL @@ -5491,8 +5571,15 @@ SELECT ALL - 43 * - COUNT ( * ) AS col1 FROM tab2 cor0 # Datafusion - Expected - 54 # Datafusion - Expected - 2520 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \* Int64\(45\) AS col0" at position 0 and "\(\- cor0\.col1\) \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 56 * + 45 AS col0, - col1 + col2 AS col0 FROM tab1 AS cor0 WHERE NOT col1 + - col2 * 72 IS NULL +---- +21 +2520 +2520 +2520 +54 +82 query I rowsort label-906 SELECT ALL SUM ( ALL - col1 ) AS col2 FROM tab2 @@ -6114,8 +6201,9 @@ SELECT ALL 43 / col2 * + col0 AS col0 FROM tab2 64 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "\(\- tab1\.col1\) \* Int64\(32\) \* \(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 76 AS col2, - col1 * 32 * - col2 AS col2, + - col0 + + col0 col1 FROM tab1 WHERE NOT - - col1 * - CAST ( NULL AS INTEGER ) + + col0 + + - col1 * + col2 + + 92 IS NULL +---- query I rowsort SELECT col0 + - ( + 51 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL @@ -6466,8 +6554,15 @@ SELECT ALL + col0 AS col1, - col0 FROM tab0 # Datafusion - Expected - -45621 # Datafusion - Expected - 97 # Datafusion - Expected - -2371 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "tab0\.col1 \* \(\- tab0\.col0\) \* Int64\(25\) \+ Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, + col1 * - + col0 * 25 + 54 AS col1 FROM tab0 WHERE NOT 99 * - + 5 + - col2 / 1 + - + CAST ( NULL AS INTEGER ) + 90 * 45 * - + col1 / + - col1 + + 24 IS NOT NULL +---- +-2371 +-30321 +-45621 +15 +87 +97 query I rowsort label-1062 SELECT + CAST ( NULL AS INTEGER ) * MIN ( DISTINCT + CAST ( col2 AS INTEGER ) ) col2 FROM tab0 @@ -6725,8 +6820,10 @@ SELECT 21 AS col0 FROM tab1 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 values hashing to 467aed4c23882131c56de84a6c9ed2b3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(56\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 6 * + ( 56 ) col1, + 42 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 +---- +18 values hashing to ac44d117a56f59be870fec7776b5e02e query I rowsort label-1101 SELECT ALL COUNT ( * ) * + - ( - ( + COUNT ( DISTINCT - - col0 ) ) ) FROM tab0 WHERE NOT NULL IS NULL @@ -7722,8 +7819,15 @@ SELECT + ( + col2 ) + col0 / col2 FROM tab2 AS cor0 # Datafusion - Expected - 42 # Datafusion - Expected - -433 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col0\) \+ Int64\(\-99\) \* Int64\(\-17\) AS col2" at position 0 and "Int64\(34\) \+ cor0\.col0 \+ \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col0 * + - col0 + - 99 * - 17 AS col2, + 34 + + col0 + - col1 col2 FROM tab2 AS cor0 +---- +-2413 +-3942 +-433 +21 +29 +42 query I rowsort SELECT DISTINCT + 93 * ( 46 ) FROM tab1 @@ -8694,8 +8798,15 @@ SELECT DISTINCT - 67 AS col0 FROM tab2 WHERE ( - col0 * col1 + + 47 * + 41 ) IS # Datafusion - Expected - 21 # Datafusion - Expected - 7 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 7 AS col2, + col1 AS col2 FROM tab0 +---- +1 +21 +7 +7 +7 +81 query I rowsort SELECT ALL - + col0 + - + 63 + col2 * + col1 / - col2 FROM tab2 WHERE ( NOT ( NULL ) IS NULL ) @@ -8958,8 +9069,11 @@ SELECT DISTINCT - col2 * + 59 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(82\) AS Int32\)\) \+ Int64\(14\) AS col1" at position 0 and "Int64\(\-71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( + + 82 AS INTEGER ) + 14 AS col1, - 71 AS col1 FROM tab0 +---- +-68 +-71 query I rowsort SELECT DISTINCT - col0 * col1 FROM tab2 WHERE - 0 * + col1 <> + + col2 AND NOT - col2 IS NULL @@ -9091,8 +9205,15 @@ SELECT DISTINCT - col2 + - + col0, + col2 FROM tab1 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 37 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 AS col0, col2 AS col0 FROM tab1 AS cor0 +---- +37 +37 +37 +59 +68 +96 query III rowsort SELECT DISTINCT * FROM tab1 WHERE + col1 - + col0 NOT IN ( - 49 * - + 6 ) @@ -9293,8 +9414,15 @@ SELECT ALL col1 + 87 * + col2, col0 AS col2 FROM tab0 WHERE NOT col1 >= NULL # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 AS col0, col2 AS col0 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT DISTINCT + + 10 * - col0 FROM tab2 AS cor0 @@ -9682,8 +9810,15 @@ SELECT + 45 / - - col0 + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWE # Datafusion - Expected - -68 # Datafusion - Expected - -490 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \* Int64\(98\) AS col0" at position 0 and "\(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 * 98 AS col0, - col2 AS col0 FROM tab1 +---- +-1372 +-4606 +-490 +-59 +-68 +-96 query I rowsort SELECT + col0 * + 83 FROM tab2 @@ -10371,8 +10506,15 @@ SELECT ALL col1 * + + col1 + - 16 - + 2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT # Datafusion - Expected - 13 # Datafusion - Expected - -86 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-86\) AS Int32\) AS col0" at position 0 and "Int64\(\-62\) \+ cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( - 86 AS INTEGER ) AS col0, - 62 + + col0 AS col0 FROM tab2 AS cor0 +---- +-16 +-86 +-86 +-86 +13 +2 query I rowsort label-1687 SELECT DISTINCT col2 / - col1 + + + col0 AS col2 FROM tab1 AS cor0 @@ -10388,8 +10530,15 @@ SELECT DISTINCT col2 / - col1 + + + col0 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -63 # Datafusion - Expected - 524 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(44\) \+ Int64\(84\) AS col1" at position 0 and "\(\- Int64\(63\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 * + + ( + 44 ) + + 84 AS col1, - ( 63 ) AS col1 FROM tab0 AS cor0 +---- +-63 +-63 +-63 +2152 +4440 +524 query IIIIII rowsort SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < 54 @@ -11822,8 +11971,15 @@ SELECT + MIN ( + + 80 ) AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 86 # Datafusion - Expected - 25 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 25 col0, + 86 AS col0 FROM tab1 AS cor0 +---- +25 +25 +25 +86 +86 +86 query I rowsort label-1929 SELECT + CAST ( NULL AS INTEGER ) * - + col2 + col0 FROM tab1 @@ -11897,8 +12053,10 @@ SELECT DISTINCT 33 + + + 50 * + 49 * + col1 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 49bed8b098faa2c7ab5e31d076ade288 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ tab1\.col2 AS col2" at position 1 and "Int64\(\-10\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL col0, col2 + col2 AS col2, - 10 AS col2 FROM tab1 +---- +9 values hashing to 25ab4484832a731f1909f7ec9308627c query I rowsort SELECT + + col2 + - col2 * col2 FROM tab2 AS cor0 @@ -11936,8 +12094,15 @@ SELECT ALL + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - 5 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col0, - col2 AS col0 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +14 +47 +5 query I rowsort SELECT ALL + 67 AS col2 FROM tab2 @@ -11967,8 +12132,15 @@ SELECT - 66 - + + col1 FROM tab0 # Datafusion - Expected - 87 # Datafusion - Expected - 970202 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \+ CAST\(\(\- tab0\.col2\) AS Int32\) \* \(\- tab0\.col2\) \* \(\- \(\- tab0\.col2\)\) AS col1" at position 0 and "tab0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - col0 ) + + + CAST ( - col2 AS INTEGER ) * - col2 * - - col2 AS col1, col0 AS col1 FROM tab0 +---- +103808 +15 +87 +913 +97 +970202 query I rowsort label-1952 SELECT ALL + COUNT ( * ) * 59 AS col0 FROM tab2 @@ -12330,8 +12502,9 @@ SELECT DISTINCT - col2 * col1 * + + 27 * - col1 col1 FROM tab0 cor0 8325909 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "Int64\(\-63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 90 AS col0, - 63 AS col0 FROM tab1 AS cor0 WHERE NOT - 12 IS NOT NULL +---- query I rowsort SELECT DISTINCT - col1 + - 82 AS col1 FROM tab1 WHERE NOT NULL IS NULL @@ -13238,8 +13411,15 @@ SELECT DISTINCT COUNT ( ALL + + col1 ) FROM tab0 # Datafusion - Expected - 93 # Datafusion - Expected - 54 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col0" at position 0 and "Int64\(0\) \+ Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 AS col0, 0 + + 93 AS col0 FROM tab1 +---- +54 +54 +54 +93 +93 +93 query III rowsort SELECT * FROM tab2 WHERE NOT col2 IS NOT NULL AND NOT + 67 - - col1 BETWEEN NULL AND + col1 * col2 @@ -13407,8 +13587,15 @@ SELECT * FROM tab0 WHERE + col0 * - 91 + col0 - - 33 + - 13 IS NOT NULL # Datafusion - Expected - -320 # Datafusion - Expected - -1 # Datafusion - Expected - -464 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) / tab2\.col2 AS col0" at position 0 and "Int64\(8\) \* \(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 / col2 AS col0, 8 * - col2 AS col0 FROM tab2 +---- +-1 +-1 +-1 +-184 +-320 +-464 query I rowsort label-2184 SELECT ALL CAST ( - 53 AS INTEGER ) + + col1 AS col0 FROM tab1 @@ -13538,8 +13725,15 @@ SELECT + col2 * - - 86 * - + col1 FROM tab1 # Datafusion - Expected - 12 # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "tab0\.col0 \+ Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) col0, col0 + - 85 AS col0 FROM tab0 +---- +-70 +12 +2 +NULL +NULL +NULL query I rowsort SELECT ALL + col0 * - - col1 AS col1 FROM tab2 @@ -13578,8 +13772,15 @@ SELECT DISTINCT - 28 * + col2 AS col0 FROM tab0 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 67 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 67 AS col0, col1 AS col0 FROM tab1 AS cor0 +---- +14 +47 +5 +67 +67 +67 query II rowsort label-2211 SELECT 49 / - col1 AS col1, col1 AS col2 FROM tab1 @@ -14041,8 +14242,15 @@ SELECT DISTINCT + 22, col2 - col0 * col1 AS col1 FROM tab1 cor0 # Datafusion - Expected - 58 # Datafusion - Expected - -97 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 col0, 58 AS col0 FROM tab0 cor0 +---- +-15 +-87 +-97 +58 +58 +58 query I rowsort SELECT ALL 11 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL @@ -14743,8 +14951,15 @@ SELECT DISTINCT + col2 col1 FROM tab1 WHERE - col0 + 13 < + + 39 * - + 26 - - co # Datafusion - Expected - -64 # Datafusion - Expected - 3886 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \* tab2\.col1 AS col0" at position 0 and "\(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 * + col1 col0, - col0 AS col0 FROM tab2 +---- +-46 +-64 +-75 +1173 +3080 +3886 query I rowsort label-2409 SELECT ALL + - col2 / - - 16 FROM tab1 AS cor0 @@ -14836,8 +15051,15 @@ SELECT + col2 * + + col2 * - col1 AS col2 FROM tab1 cor0 # Datafusion - Expected - 58 # Datafusion - Expected - -77 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + col1 ) AS col1, + col2 AS col1 FROM tab2 AS cor0 +---- +-51 +-67 +-77 +23 +40 +58 query I rowsort SELECT DISTINCT - + 46 AS col2 FROM tab0 AS cor0 @@ -15304,7 +15526,7 @@ SELECT - COUNT ( * ), + 26 / + 88 col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 882294b7981b0ff278b77853ea1baeeb -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col2" at position 0 and "tab0\.col0 / Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Schema error: Schema contains qualified field name tab0\.col2 and unqualified field name col2 which would be ambiguous SELECT - 86 AS col2, ( col0 ) / + 5 AS col2, col2 AS col2 FROM tab0 query II rowsort @@ -15426,8 +15648,11 @@ SELECT MIN ( DISTINCT + 68 ) AS col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 204 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(cor0\.col1\) \* Int64\(68\) / count\(DISTINCT cor0\.col1\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( col1 ) * 68 / COUNT ( DISTINCT col1 ) * + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 +---- +204 +3 query III rowsort SELECT * FROM tab1 AS cor0 WHERE ( - 53 ) + + + col1 NOT BETWEEN - + col0 AND + - col0 @@ -15453,8 +15678,15 @@ SELECT 15 - - + ( - ( - - col2 ) ) AS col0 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 61 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-61\)\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - 61 ) AS col0, col1 col0 FROM tab1 +---- +14 +47 +5 +61 +61 +61 query I rowsort label-2517 SELECT COUNT ( ALL + ( - col0 ) ) AS col1 FROM tab1 AS cor0 @@ -15912,8 +16144,11 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + COUNT ( * ) col1, COUNT ( * ) * - + CAST ( ( + COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab2 AS cor0 +---- +-3 +-9 query III rowsort SELECT * FROM tab2 WHERE NOT NULL > + + ( col2 ) @@ -17075,8 +17310,15 @@ SELECT DISTINCT - 87 * - 63 AS col0 FROM tab1 AS cor0 WHERE col2 * + ( col1 ) IS # Datafusion - Expected - 50 # Datafusion - Expected - -81 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col1 AS col0, 50 AS col0 FROM tab0 AS cor0 +---- +-1 +-21 +-81 +50 +50 +50 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + ( 15 ) ) @@ -17656,8 +17898,15 @@ SELECT DISTINCT - 27 - COUNT ( * ) + 71 AS col1 FROM tab0 # Datafusion - Expected - -567705569 # Datafusion - Expected - 88 # Datafusion - Expected - -983643719 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "\(\- tab2\.col1\) \* Int64\(45\) \* tab2\.col2 \* tab2\.col0 \* tab2\.col0 \+ Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 88 AS col1, - col1 * + + 45 * + col2 * + col0 * + col0 + + 31 AS col1 FROM tab2 +---- +-111693029 +-567705569 +-983643719 +88 +88 +88 query II rowsort label-2883 SELECT COUNT ( * ) AS col2, COUNT ( * ) col1 FROM tab0 AS cor0 @@ -17775,8 +18024,15 @@ SELECT - ( ( + + 87 ) ) col0 FROM tab1 cor0 # Datafusion - Expected - 190 # Datafusion - Expected - 1 # Datafusion - Expected - 1920 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) / \(\- cor0\.col1\) AS col2" at position 0 and "Int64\(93\) \+ cor0\.col0 \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 / - + col1 AS col2, ( 93 ) + col0 * col1 col2 FROM tab0 AS cor0 +---- +1 +1 +1 +1308 +190 +1920 query I rowsort label-2903 SELECT ALL - MIN ( DISTINCT - col1 ) FROM tab2 AS cor0 @@ -17928,8 +18184,15 @@ SELECT DISTINCT + - 74 * + 78 * + 87 FROM tab1 cor0 # Datafusion - Expected - -16 # Datafusion - Expected - 75 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col2 \- \(\- Int64\(\-56\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, col2 - - ( - 56 ) AS col1 FROM tab2 AS cor0 +---- +-16 +-33 +2 +46 +64 +75 query III rowsort label-2930 SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + + + ( - col2 ) + + CAST ( col0 AS INTEGER ) + - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * + col0 / col0 * + - col1 / - 27 IS NULL @@ -19438,8 +19701,15 @@ SELECT ALL - + 36 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 84 # Datafusion - Expected - -487200 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* cor0\.col2 \+ cor0\.col2 \* \(\- cor0\.col2\) \* Int64\(52\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 83 * col2 + col2 * - + col2 * 52 AS col1, 84 col1 FROM tab1 AS cor0 +---- +-185909 +-246092 +-487200 +84 +84 +84 query II rowsort SELECT col1 + - - col0 * + 52 AS col1, + col2 FROM tab2 AS cor0 @@ -20396,8 +20666,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( - col0 ) * - 59 AS col2, - COUNT ( * ) col2 FROM tab1 +---- +-3 +-3009 query III rowsort SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + + - col0 - + col0 > NULL @@ -20768,8 +21041,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( + + col1 AS FLOAT8 ) IS NULL # Datafusion - Expected - 3922 # Datafusion - Expected - 97 # Datafusion - Expected - 3922 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ cor0\.col1 AS col0" at position 0 and "Int64\(\-53\) \* Int64\(\-74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 + col1 AS col0, - 53 * - 74 AS col0 FROM tab2 AS cor0 +---- +141 +142 +3922 +3922 +3922 +97 query I rowsort label-3396 SELECT DISTINCT MAX ( DISTINCT - col0 ) FROM tab2 @@ -20877,8 +21157,15 @@ SELECT DISTINCT - col2 * - CAST ( + + col0 AS INTEGER ) FROM tab0 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 81 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 col2, + col0 AS col2 FROM tab0 AS cor0 +---- +1 +15 +21 +81 +87 +97 query II rowsort SELECT 98 AS col0, - 63 FROM tab2 AS cor0 @@ -21116,8 +21403,15 @@ SELECT - 81 * + col2 FROM tab1 # Datafusion - Expected - 66 # Datafusion - Expected - -23 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col2" at position 0 and "tab0\.col0 \+ \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 23 AS col2, + col0 + - + col1 col2 FROM tab0 +---- +-23 +-23 +-23 +-66 +66 +96 query II rowsort SELECT ALL 15, 81 + + 72 col2 FROM tab1 @@ -21189,8 +21483,15 @@ SELECT DISTINCT 6 + + col1 * col1 AS col0 FROM tab0 # Datafusion - Expected - 133 # Datafusion - Expected - 0 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) / CAST\(Int64\(73\) AS Int32\) AS col0" at position 0 and "tab2\.col2 \+ tab2\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 15 / + CAST ( + 73 AS INTEGER ) col0, + col2 + + col0 AS col0 FROM tab2 +---- +0 +0 +0 +104 +133 +69 query I rowsort label-3460 SELECT MIN ( ALL 62 ) FROM tab0 @@ -21664,8 +21965,15 @@ SELECT col1 + - col1 + + col1 AS col0 FROM tab1 # Datafusion - Expected - 85 # Datafusion - Expected - 34 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 34 AS col1, col0 AS col1 FROM tab1 +---- +34 +34 +34 +51 +85 +91 query I rowsort SELECT DISTINCT + ( - + 86 ) * - - col2 + - col1 AS col2 FROM tab0 @@ -22735,8 +23043,15 @@ SELECT ALL col0 * - - col0 FROM tab0 AS cor0 # Datafusion - Expected - 43 # Datafusion - Expected - 77 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col2, 43 AS col2 FROM tab2 +---- +43 +43 +43 +51 +67 +77 query I rowsort SELECT - 43 * - col1 FROM tab2 @@ -23495,8 +23810,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "\(\- min\(DISTINCT cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 40 col1, - MIN ( DISTINCT + + col2 ) AS col1 FROM tab2 cor0 +---- +-23 +40 query I rowsort label-3846 SELECT - + MIN ( DISTINCT 14 ) AS col1 FROM tab2 AS cor0 @@ -23827,8 +24145,15 @@ SELECT ALL - col2 * - 51 FROM tab2 # Datafusion - Expected - 133 # Datafusion - Expected - NULL # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "tab2\.col0 \+ tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col1, col0 + + col2 AS col1 FROM tab2 +---- +104 +133 +69 +NULL +NULL +NULL query I rowsort SELECT col2 * 96 AS col0 FROM tab0 @@ -23877,8 +24202,15 @@ SELECT + 49 * - ( + col1 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL # Datafusion - Expected - 1 # Datafusion - Expected - 97 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ \(\- cor0\.col1\) \+ cor0\.col0 \* Int64\(15\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col2 + - col1 + col0 * 15 AS col0, col1 AS col0 FROM tab0 AS cor0 +---- +1 +1274 +1355 +21 +81 +97 query I rowsort SELECT + - 35 * - col1 AS col1 FROM tab2 AS cor0 @@ -24016,8 +24348,11 @@ SELECT ALL + + 16 col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 20 AS col2, 33 AS col2 FROM tab1 AS cor0 +---- +-20 +33 query I rowsort label-3930 SELECT ALL - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL @@ -24156,8 +24491,15 @@ SELECT DISTINCT + col2 / - 65 + - + col1 AS col2 FROM tab2 # Datafusion - Expected - -32 # Datafusion - Expected - -10 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) \- Int64\(\-7\) AS col1" at position 0 and "Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 17 - - 7 AS col1, - 32 AS col1 FROM tab1 +---- +-10 +-10 +-10 +-32 +-32 +-32 query I rowsort SELECT DISTINCT 57 * col0 FROM tab2 AS cor0 @@ -24689,8 +25031,15 @@ SELECT - 87 AS col2 FROM tab1 cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col2, + col2 AS col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query II rowsort SELECT ALL - col1 * + 55, col1 FROM tab2 @@ -26322,8 +26671,15 @@ SELECT DISTINCT + - col0, + 33 + col0 + + ( + col1 ) AS col1 FROM tab1 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 +---- +38 +38 +38 +NULL +NULL +NULL query II rowsort SELECT - col2, 19 AS col2 FROM tab1 cor0 @@ -26433,8 +26789,15 @@ SELECT + + col2 - - - col2 / col0, - ( - col0 ) col1 FROM tab2 AS cor0 # Datafusion - Expected - -1 # Datafusion - Expected - 5760 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(3\) \* Int64\(20\) AS col2" at position 0 and "\(\- cor0\.col0\) / Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 * 3 * 20 AS col2, - col0 / 81 AS col2 FROM tab1 AS cor0 +---- +-1 +-1 +0 +3540 +4080 +5760 query I rowsort SELECT + col1 AS col2 FROM tab1 cor0 WHERE NOT col2 IS NOT NULL @@ -26505,8 +26868,15 @@ SELECT COUNT ( * ) AS col1, 81 AS col0 FROM tab2 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col0, col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query II rowsort SELECT 86 AS col0, 14 AS col2 FROM tab1 @@ -26902,8 +27272,15 @@ SELECT ALL - SUM ( ALL 78 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Expected - -77 # Datafusion - Expected - -99 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col0" at position 0 and "Int64\(\-77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col0, - 77 AS col0 FROM tab0 +---- +-10 +-47 +-77 +-77 +-77 +-99 query I rowsort SELECT DISTINCT + - ( + 60 ) AS col0 FROM tab0 AS cor0 @@ -27090,8 +27467,11 @@ SELECT * FROM tab1 WHERE NULL IN ( col0 * col0, - col0 - col1, 7 * col1, col0 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col2" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 AS col2, CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 +---- +3 +39 query I rowsort SELECT 7 col0 FROM tab2 @@ -27623,8 +28003,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT col0 * + - 16 IS NOT NULL # Datafusion - Expected - 85 # Datafusion - Expected - -91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- cor0\.col0\)\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - + ( - - col0 ) ) AS col1, col0 AS col1 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +51 +85 +91 query I rowsort SELECT ALL 35 + + col1 * - + col1 + ( col1 ) + + - col2 * ( + + 78 ) col0 FROM tab2 AS cor0 @@ -27776,8 +28163,15 @@ SELECT DISTINCT - + 80 * - COUNT ( * ) + - - MIN ( ALL - col2 ) + - - 20 AS col0 # Datafusion - Expected - 64 # Datafusion - Expected - 75 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 col0, col0 FROM tab2 +---- +46 +46 +64 +64 +75 +75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 @@ -27786,8 +28180,15 @@ SELECT ALL col0 col0, col0 FROM tab2 # Datafusion - Expected - 87 # Datafusion - Expected - 7 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 AS col2, col0 AS col2 FROM tab0 +---- +15 +7 +7 +7 +87 +97 query I rowsort SELECT ALL 83 AS col1 FROM tab0, tab0 AS cor0 @@ -28559,8 +28960,15 @@ SELECT DISTINCT 46 * col1 AS col1, + col0 col2 FROM tab1 AS cor0 # Datafusion - Expected - 94 # Datafusion - Expected - 6188 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col0 AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 * col0 AS col1, + 94 AS col1 FROM tab1 AS cor0 +---- +4896 +5015 +6188 +94 +94 +94 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 + - col0 ) IS NOT NULL @@ -29489,8 +29897,11 @@ SELECT ALL + - 3 * + - col0 * + col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(49\)\) \- \(\- \(\- CAST\(\(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS Int32\)\)\) \* \(\- sum\(Int64\(2\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 AS col0, - COUNT ( * ) + - + 49 - - - CAST ( - - ( - COUNT ( * ) ) AS INTEGER ) * - SUM ( + + 2 ) AS col0 FROM tab1 AS cor0 +---- +-70 +95 query III rowsort SELECT ALL * FROM tab2 AS cor0 WHERE - col0 + ( col2 ) + + + ( + col2 ) > NULL @@ -29835,8 +30246,15 @@ SELECT + - col1 * - 61 - + 54 + + col0 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - -91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS 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 IR valuesort SELECT - col0 AS col1, + CAST ( NULL AS FLOAT8 ) AS col1 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +NULL +NULL +NULL query II rowsort SELECT - + col0 AS col2, - ( + 85 ) + + 97 AS col0 FROM tab2 cor0 @@ -29979,8 +30397,11 @@ SELECT DISTINCT + 30, + CAST ( col2 AS INTEGER ) + 14 + col1 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 185 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(tab1\.col2\) \- Int64\(38\) AS col1" at position 0 and "Int64\(19\) / Int64\(\-28\) \+ Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( + col2 ) - 38 AS col1, 19 / - 28 + 48 AS col1 FROM tab1 +---- +185 +48 query III rowsort SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > col0 @@ -31248,8 +31669,15 @@ SELECT COUNT ( ALL col0 ) * + 56 FROM tab2 AS cor0 # Datafusion - Expected - -1793 # Datafusion - Expected - 81 # Datafusion - Expected - -1181 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(34\) \+ \(\- cor0\.col1\) \* \(\- \(\- cor0\.col0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, 34 + - + col1 * - + ( - col0 ) AS col0 FROM tab0 AS cor0 +---- +-1181 +-1793 +-63 +1 +21 +81 query II rowsort SELECT DISTINCT - - 35 + - + 15, 55 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 < NULL @@ -31258,8 +31686,11 @@ SELECT DISTINCT - - 35 + - + 15, 55 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 < # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 17 AS col1, COUNT ( * ) col1 FROM tab1 AS cor0 +---- +-17 +3 query I rowsort label-5110 SELECT DISTINCT col2 / + - col2 AS col1 FROM tab0 @@ -32446,8 +32877,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, - MIN ( DISTINCT - - col1 ) * - + MAX ( ALL - col2 ) AS col0 FROM tab2 AS cor0 +---- +-1173 +-3 query I rowsort SELECT + - 18 AS col2 FROM tab0 AS cor0 WHERE NOT - 44 IS NOT NULL @@ -34047,8 +34481,15 @@ SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> + col1 # Datafusion - Expected - 91 # Datafusion - Expected - 97 # Datafusion - Expected - 111 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col2" at position 0 and "Int64\(90\) \- \(\- \(\- cor0\.col1\)\) \+ Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - - col0 ) AS col2, 90 - - - col1 + + + 22 AS col2 FROM tab0 AS cor0 +---- +111 +15 +31 +87 +91 +97 query I rowsort label-5571 SELECT ALL CAST ( NULL AS INTEGER ) * - + col1 AS col0 FROM tab0 @@ -34326,8 +34767,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > ( NULL # Datafusion - Expected - 47 # Datafusion - Expected - 21 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 21 AS col0, col1 col0 FROM tab1 AS cor0 +---- +14 +21 +21 +21 +47 +5 query I rowsort SELECT DISTINCT 80 * - - col1 FROM tab2 AS cor0 @@ -34770,8 +35218,15 @@ SELECT + col1 / + 62 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( col2 ) AS col0, col2 AS col0 FROM tab0 +---- +10 +10 +47 +47 +99 +99 query I rowsort SELECT ALL - ( - - 71 ) FROM tab1 @@ -34797,8 +35252,15 @@ SELECT ALL - - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL # Datafusion - Expected - NULL # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 81 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 +---- +81 +81 +81 +NULL +NULL +NULL query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE + col1 + - + 99 >= NULL @@ -34881,8 +35343,15 @@ SELECT ALL + + COUNT ( * ) AS col2, - 33 * - 74 FROM tab0 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - -40 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 40 col0, ( - col2 ) AS col0 FROM tab0 AS cor0 +---- +-10 +-40 +-40 +-40 +-47 +-99 query III rowsort SELECT * FROM tab2 AS cor0 WHERE - 19 + + 33 NOT BETWEEN - + col2 AND - col1 @@ -35694,8 +36163,15 @@ NULL # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2, + col2 col2 FROM tab2 cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT + col2 + - 62 AS col2 FROM tab1 AS cor0 @@ -36656,8 +37132,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT ( - - COUNT ( * ) ) AS col2, 11 / - 1 AS col2 FROM tab1 AS cor0 +---- +-11 +3 query I rowsort SELECT DISTINCT + 54 / - 97 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > NULL @@ -37162,8 +37641,15 @@ SELECT + - COUNT ( * ) + + 44 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - -825 # Datafusion - Expected - 32 # Datafusion - Expected - -825 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "Int64\(\-41\) \+ Int64\(49\) \* Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 32 ) AS col2, - 41 + 49 * + - 16 AS col2 FROM tab1 +---- +-825 +-825 +-825 +32 +32 +32 query I rowsort SELECT ALL - + 93 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 @@ -37266,8 +37752,11 @@ SELECT DISTINCT - 63 + - col1 + - 12 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / CAST\(Int64\(\-93\) AS Float64\) \* \(\- \(\- \(\- max\(Int64\(78\)\)\)\)\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - CAST ( NULL AS INTEGER ) / + CAST ( - 93 AS FLOAT8 ) * - ( - - MAX ( 78 ) ) col1, 59 AS col1 FROM tab1 AS cor0 +---- +59 +NULL query I rowsort label-6102 SELECT SUM ( ALL 2 ) FROM tab0 AS cor0 @@ -37434,8 +37923,15 @@ SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) BETW # Datafusion - Expected - 96 # Datafusion - Expected - -495 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* Int64\(\-33\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * - 33 col1, 96 AS col1 FROM tab0 +---- +-2871 +-3201 +-495 +96 +96 +96 query I rowsort label-6129 SELECT DISTINCT MAX ( ALL - + 65 ) * + + 32 * + 58 AS col1 FROM tab2 AS cor0 @@ -37606,8 +38102,15 @@ SELECT - 16 + - col0 + - - col2 + + col0 * + col1 FROM tab1 AS cor0 # Datafusion - Expected - 78 # Datafusion - Expected - 78 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\)" at position 0 and "Int64\(78\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 78, 78 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL +---- +78 +78 +78 +78 +78 +78 query I rowsort SELECT ALL col2 + + col0 - - - 1 FROM tab0 AS cor0 @@ -38142,8 +38645,11 @@ SELECT col1 / 39 AS col2 FROM tab1 # 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 "tab1\.col2 / tab1\.col2 AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 / + col2 AS col1, + 93 AS col1 FROM tab1 +---- +1 +93 query I rowsort SELECT col0 AS col0 FROM tab0 WHERE NOT + - col1 IS NULL @@ -38355,8 +38861,9 @@ SELECT ALL 80 * - col1 FROM tab1 -400 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col2, 70 AS col2 FROM tab1 WHERE NOT NULL IS NULL +---- query I rowsort label-6279 SELECT MAX ( - col1 ) * - 72 FROM tab1 @@ -38410,8 +38917,15 @@ NULL # Datafusion - Expected - -40 # Datafusion - Expected - -4833 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(\-53\) \+ Int64\(\-86\) \- \(\- cor0\.col2\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 90 * - 53 + - 86 - - + col2 AS col2, - col2 AS col2 FROM tab2 AS cor0 +---- +-23 +-40 +-4798 +-4816 +-4833 +-58 query I rowsort SELECT - 17 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 @@ -39600,8 +40114,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 = ( - ( 81 ) ) - 3 # Datafusion - Expected - 93 # Datafusion - Expected - -97 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + - + col2 AS col1, 93 AS col1 FROM tab0 cor0 +---- +-196 +-62 +-97 +93 +93 +93 query I rowsort SELECT col0 AS col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL @@ -39846,8 +40367,15 @@ SELECT ALL - 57 + - COUNT ( * ) - - COUNT ( * ) * + 62 * + 88 * - MIN ( ALL - co # Datafusion - Expected - 58 # Datafusion - Expected - 69 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ tab2\.col2 AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 + + col2 col0, col2 AS col0 FROM tab2 +---- +104 +133 +23 +40 +58 +69 query I rowsort label-6521 SELECT - COUNT ( * ) AS col2 FROM tab0, tab1 AS cor0 @@ -39873,8 +40401,15 @@ SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE CAST ( - 20 AS INTEGER ) IS NULL # Datafusion - Expected - 77 # Datafusion - Expected - -5 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 / Int64\(\-10\) AS col0" at position 0 and "tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 / + - 10 AS col0, + col1 AS col0 FROM tab2 +---- +-2 +-4 +-5 +51 +67 +77 query I rowsort SELECT DISTINCT 87 col2 FROM tab0 AS cor0 @@ -40151,8 +40686,15 @@ SELECT + SUM ( + col1 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -68 # Datafusion - Expected - -4292 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col0 \+ cor0\.col2 AS col0" at position 0 and "Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 * + col0 + + col2 AS col0, - 68 AS col0 FROM tab2 AS cor0 +---- +-1035 +-2520 +-4292 +-68 +-68 +-68 query I rowsort label-6571 SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + col2 + + + 82 * + 75 AS col0 FROM tab1 AS cor0 @@ -41081,8 +41623,15 @@ SELECT ALL + 47 * - - 86 * MAX ( - col1 ) FROM tab2 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, col2 AS col2 FROM tab2 cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-6721 SELECT + ( + SUM ( DISTINCT - 23 ) ) FROM tab2 AS cor0 @@ -41679,8 +42228,15 @@ SELECT COUNT ( * ) * + 19 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, col1 AS col1 FROM tab0 cor0 +---- +1 +1 +21 +21 +81 +81 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -42491,8 +43047,15 @@ SELECT DISTINCT 99 + ( + 86 ) + - - 15 * - col0 * + + ( - col1 ) * + col0 + col0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 col0, col0 AS col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT col0 * + - 37 FROM tab2 @@ -43340,8 +43903,10 @@ SELECT ALL col2 * + 7 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 7fc656453e5acebb31fe7453daeeea3d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(\-25\) / \(\- Int64\(81\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col2 AS col0, - 25 / - + 81 AS col0, - col0 * - + 11 FROM tab1 AS cor0 +---- +9 values hashing to 0d329931c2ca0fa1bdb6315091ab4c1d query I rowsort SELECT col2 FROM tab2 AS cor0 WHERE - col1 * - col2 IS NOT NULL @@ -43400,8 +43965,15 @@ SELECT DISTINCT - col0 AS col1, col2 FROM tab1 # Datafusion - Expected - NULL # Datafusion - Expected - 86 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 86 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 +---- +86 +86 +86 +NULL +NULL +NULL query III rowsort label-7116 SELECT * FROM tab1 WHERE NOT ( - CAST ( + ( + col2 ) AS INTEGER ) ) + - col0 < + col1 * col2 * + + col0 + col0 @@ -43798,8 +44370,15 @@ SELECT - + col2 AS col1, col0 col0 FROM tab2 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(68\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, ( 68 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 +---- +10 +47 +99 +NULL +NULL +NULL query II rowsort label-7180 SELECT ALL + + COUNT ( * ) AS col0, + COUNT ( * ) FROM tab0 AS cor0 @@ -44097,8 +44676,11 @@ SELECT * FROM tab1 WHERE NOT - - col0 >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 AS col1, COUNT ( * ) AS col1 FROM tab2 +---- +16 +3 query I rowsort SELECT ALL + col0 col0 FROM tab2 AS cor0 WHERE NULL >= ( NULL ) @@ -46198,8 +46780,10 @@ SELECT * FROM tab0 AS cor0 WHERE NOT NULL = + col0 + col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 501205053b0f754175c456be97aafb52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 1 AS col2, ( + 93 ) AS col2, + col0 AS col0 FROM tab1 AS cor0 +---- +9 values hashing to ccb3c0e2c6244447945120b655cf67c8 query I rowsort label-7581 SELECT DISTINCT 25 * + - 23 * + + 66 * - + COUNT ( * ) AS col1 FROM tab2 AS cor0 @@ -47991,8 +48575,15 @@ SELECT - 9 FROM tab1 AS cor0 WHERE NULL IS NULL # Datafusion - Expected - 67 # Datafusion - Expected - 23 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 23 AS col0, col1 AS col0 FROM tab2 AS cor0 +---- +23 +23 +23 +51 +67 +77 query III rowsort SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL <> col1 @@ -48425,8 +49016,15 @@ SELECT ( - + 9 ) FROM tab2 AS cor0 # Datafusion - Expected - 379456 # Datafusion - Expected - -25125 # Datafusion - Expected - 336675 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* \(\- cor0\.col0\) \* cor0\.col1 AS col1" at position 0 and "\(\- cor0\.col0\) \* \(\- cor0\.col1\) \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 5 * - col0 * + col1 AS col1, - col0 * - col1 * + col1 AS col1 FROM tab2 AS cor0 +---- +-11730 +-24640 +-25125 +119646 +336675 +379456 query II rowsort SELECT col0, - 47 * + col1 FROM tab2 AS cor0 @@ -49196,8 +49794,15 @@ SELECT ALL - COUNT ( DISTINCT + col1 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0, col0 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 @@ -49206,8 +49811,15 @@ SELECT DISTINCT + + col0, col0 FROM tab1 AS cor0 # Datafusion - Expected - -196 # Datafusion - Expected - -91 # Datafusion - Expected - -196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(4\) \* Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, + 4 * - 49 AS col2 FROM tab1 AS cor0 +---- +-196 +-196 +-196 +-51 +-85 +-91 query II rowsort label-8077 SELECT ALL col1 AS col2, - 23 * col2 * + + col1 / - CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0 @@ -49222,8 +49834,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-7\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- min\(DISTINCT \(\- cor0\.col2\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col0, - 7 + + - COUNT ( * ) + + - MIN ( DISTINCT + - col2 ) AS col0 FROM tab0 AS cor0 +---- +3 +89 query I rowsort SELECT - 85 col0 FROM tab2 AS cor0 @@ -49403,8 +50018,15 @@ SELECT col0 * + 93 FROM tab1 cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - 57 # Datafusion - Expected - 81 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, 57 AS col0 FROM tab0 +---- +1 +21 +57 +57 +57 +81 query I rowsort label-8112 SELECT - COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN - col1 AND + col1 - + col2 @@ -49676,8 +50298,15 @@ SELECT + 9 / - - col2 FROM tab0 # Datafusion - Expected - -84 # Datafusion - Expected - 91 # Datafusion - Expected - -2277 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col1 \* \(\- tab1\.col1\) \+ \(\- tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, col1 * - + col1 + - col2 AS col1 FROM tab1 +---- +-2277 +-292 +-84 +51 +85 +91 query I rowsort SELECT col0 FROM tab0 WHERE NOT 59 IS NOT NULL @@ -49766,8 +50395,15 @@ SELECT DISTINCT - ( + col1 ) / 50 AS col0 FROM tab2 # Datafusion - Expected - 67 # Datafusion - Expected - -44 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 44 AS col2, + col1 AS col2 FROM tab2 +---- +-44 +-44 +-44 +51 +67 +77 query II rowsort label-8175 SELECT ALL COUNT ( * ), SUM ( + + 10 ) AS col1 FROM tab2 AS cor0 @@ -50719,8 +51355,11 @@ SELECT DISTINCT + 24, + col1 AS col2 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( 76 ) AS col2, + COUNT ( * ) col2 FROM tab0 +---- +3 +76 query III rowsort SELECT * FROM tab1 WHERE NOT - 17 IN ( col1, col0 ) @@ -51503,8 +52142,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, + 94 AS col1 FROM tab2 AS cor0 +---- +-3 +94 query III rowsort SELECT ALL * FROM tab2 cor0 WHERE col2 + 20 + - - col0 <> NULL @@ -51524,8 +52166,15 @@ SELECT 26 * ( + col0 ) FROM tab1 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - -9603 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* cor0\.col0 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 * + col0 AS col1, col0 AS col1 FROM tab0 cor0 +---- +-705 +-870 +-9603 +15 +87 +97 query I rowsort SELECT ALL 45 * - 5 AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL @@ -51682,8 +52331,15 @@ SELECT - col2 * + col2 * - CAST ( + - CAST ( - ( col1 ) AS INTEGER ) AS INTEGER # Datafusion - Expected - -68 # Datafusion - Expected - -1156 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(\-34\) AS col0" at position 0 and "\(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 34 * - 34 AS col0, - col2 AS col0 FROM tab1 +---- +-1156 +-1156 +-1156 +-59 +-68 +-96 query I rowsort SELECT + - 73 FROM tab0 WHERE NOT NULL IS NOT NULL @@ -52338,8 +52994,15 @@ SELECT + ( col0 ), + col2 FROM tab0 # Datafusion - Expected - 2210 # Datafusion - Expected - -91 # Datafusion - Expected - 2366 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col2" at position 0 and "tab1\.col0 \* Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, + col0 * 26 col2 FROM tab1 +---- +-51 +-85 +-91 +1326 +2210 +2366 query I rowsort SELECT DISTINCT - ( col1 ) * + 96 AS col0 FROM tab0 @@ -52673,8 +53336,15 @@ SELECT CAST ( 36 AS INTEGER ), + 33 * - 60 AS col1 FROM tab1 # Datafusion - Expected - 90 # Datafusion - Expected - -9603 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- tab0\.col0\) AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 * - col0 AS col1, 90 AS col1 FROM tab0 +---- +-705 +-870 +-9603 +90 +90 +90 query I rowsort label-8655 SELECT + + CAST ( NULL AS INTEGER ) - - + col2 AS col1 FROM tab1 AS cor0 @@ -52712,8 +53382,11 @@ SELECT + col0 FROM tab0 AS cor0 WHERE NOT ( ( NULL IS NULL ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "\(\- min\(DISTINCT \(\- cor0\.col2\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 15 AS col0, - MIN ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0 +---- +15 +58 query I rowsort label-8662 SELECT + ( - COUNT ( * ) ) / 95 AS col2 FROM tab0 AS cor0 @@ -52943,8 +53616,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT 29 BETWEEN NULL AND col1 + col2 + + col1 + # Datafusion - Expected - 51 # Datafusion - Expected - NULL # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) \* tab0\.col2 \+ CAST\(NULL AS Float64\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - col0 * + col2 + CAST ( NULL AS FLOAT8 ) AS col1, 51 AS col1 FROM tab0 +---- +51 +51 +51 +NULL +NULL +NULL query I rowsort label-8703 SELECT ALL ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 @@ -53483,8 +54163,15 @@ SELECT ALL - - 36 + - col1 AS col2 FROM tab0 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - -42 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ \(\- cor0\.col1\) AS col1" at position 0 and "Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( col1 ) + - col1 AS col1, 68 AS col1 FROM tab0 AS cor0 +---- +-162 +-2 +-42 +68 +68 +68 query I rowsort SELECT ALL + col0 + 30 FROM tab1 AS cor0 WHERE NOT NULL > NULL @@ -55264,8 +55951,15 @@ SELECT DISTINCT - 33 + + - col1 FROM tab2 AS cor0 # Datafusion - Expected - 24334 # Datafusion - Expected - NULL # Datafusion - Expected - 252300 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- cor0\.col0\) \* \(\- cor0\.col2\) \* cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col1, - col0 * - + col2 * col2 AS col1 FROM tab2 AS cor0 +---- +102400 +24334 +252300 +NULL +NULL +NULL query III rowsort SELECT * FROM tab0 WHERE + col1 + 38 + col1 IS NOT NULL @@ -56602,8 +57296,15 @@ SELECT * FROM tab2 WHERE NOT + col2 * - - col2 NOT BETWEEN NULL AND NULL # Datafusion - Expected - -58 # Datafusion - Expected - 77 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 col0, - col2 AS col0 FROM tab2 +---- +-23 +-40 +-58 +51 +67 +77 query II rowsort SELECT col1, - col1 * col0 + col2 FROM tab0 @@ -56967,8 +57668,11 @@ SELECT ALL col2 * + col2 * + - col0 * col0 col0 FROM tab0 # 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 "tab2\.col2 / \(\- tab2\.col2\) AS col1" at position 0 and "Int64\(\-48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 / - col2 AS col1, - 48 AS col1 FROM tab2 +---- +-1 +-48 query II rowsort label-9375 SELECT ALL col2 * + col0 col0, 63 / + ( - 17 ) AS col2 FROM tab2 @@ -57151,8 +57855,11 @@ SELECT ALL + 70 + COUNT ( + col0 ) FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(43\)\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( + + 43 ) AS col0, 25 AS col0 FROM tab1 +---- +25 +3 query I rowsort SELECT col2 * - - 53 AS col2 FROM tab1 @@ -58573,8 +59280,15 @@ SELECT ALL + ( - - col1 ) + + + col2 AS col2 FROM tab0 # Datafusion - Expected - 45 # Datafusion - Expected - 80 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col0 AS col1" at position 0 and "cor0\.col0 \+ Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + + col0 AS col1, col0 + - 46 AS col1 FROM tab1 AS cor0 +---- +37 +39 +44 +45 +5 +80 query I rowsort label-9635 SELECT - col2 / col2 * - col2 FROM tab0 AS cor0 @@ -60380,8 +61094,15 @@ SELECT ALL * FROM tab1 cor0 JOIN tab0 AS cor1 ON NOT NULL IS NOT NULL # Datafusion - Expected - 0 # Datafusion - Expected - 28 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 0 and "Int64\(25\) / Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 col0, 25 / 60 AS col0 FROM tab2 AS cor0 +---- +0 +0 +0 +28 +28 +28 query II rowsort label-9931 SELECT col2, col1 / 44 AS col1 FROM tab1 AS cor0 diff --git a/data/sqlite/random/aggregates/slt_good_98.slt b/data/sqlite/random/aggregates/slt_good_98.slt index 838c345..c9ebfdd 100644 --- a/data/sqlite/random/aggregates/slt_good_98.slt +++ b/data/sqlite/random/aggregates/slt_good_98.slt @@ -506,8 +506,15 @@ SELECT ALL - - 43 / + col0 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 10 # Datafusion - Expected - 0 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) / \(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col1 / - + col0 AS col1, ( + col2 ) AS col1 FROM tab0 AS cor0 +---- +-5 +0 +0 +10 +47 +99 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT + - 98 * + - 70 + 10 + - col1 * col1 >= - col0 + + col0 ) @@ -599,8 +606,9 @@ SELECT COUNT ( * ) + + 60 AS col0 FROM tab1 AS cor0 63 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, - col1 AS col1 FROM tab1 AS cor0 WHERE NULL > 86 * + - 14 +---- query I rowsort SELECT DISTINCT - 78 + - 56 col1 FROM tab0 cor0 @@ -2003,8 +2011,15 @@ SELECT ALL - + 98 * col2 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - -776 # Datafusion - Expected - -6887 # Datafusion - Expected - -9509 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* Int64\(71\) AS col2" at position 0 and "Int64\(94\) \+ cor0\.col0 \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 * 71 AS col2, 94 + ( + col0 ) * - col2 AS col2 FROM tab0 AS cor0 +---- +-1065 +-611 +-6177 +-6887 +-776 +-9509 query I rowsort label-332 SELECT + SUM ( + 33 ) AS col0 FROM tab0 @@ -2111,8 +2126,15 @@ SELECT + + ( ( - - col2 ) ) AS col0 FROM tab0 cor0 # Datafusion - Expected - -18 # Datafusion - Expected - -77 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, + ( - 18 ) AS col1 FROM tab2 AS cor0 +---- +-18 +-18 +-18 +-51 +-67 +-77 query I rowsort label-349 SELECT - COUNT ( * ) * - 83 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL @@ -2353,8 +2375,11 @@ SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL >= 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - -222 # Datafusion - Expected - -252 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* \(\- count\(DISTINCT Int64\(\-51\)\)\) \* Int64\(6\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-85\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 * + - COUNT ( DISTINCT - 51 ) * ( + 6 ) AS col0, + COUNT ( * ) + - 85 * + COUNT ( * ) AS col0 FROM tab2 +---- +-222 +-252 query I rowsort SELECT ALL 42 AS col1 FROM tab0 AS cor0 WHERE NOT ( col0 ) <> ( NULL ) @@ -2834,8 +2859,15 @@ NULL # Datafusion - Expected - -67 # 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 "\(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 20 AS col0, - col1 AS col0 FROM tab2 +---- +-20 +-20 +-20 +-51 +-67 +-77 query III rowsort SELECT DISTINCT * FROM tab2 WHERE NOT NULL > col0 * - col1 @@ -3377,8 +3409,15 @@ SELECT ALL col1 AS col0, + col2 col1 FROM tab0 # Datafusion - Expected - 36 # Datafusion - Expected - 75 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 col2, + 36 col2 FROM tab2 WHERE NULL IS NULL +---- +36 +36 +36 +46 +64 +75 query I rowsort label-549 SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) col0 FROM tab1 @@ -4314,8 +4353,11 @@ SELECT + col1 - - col2 - + col2 AS col2 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 23 AS col1, + 31 AS col1 FROM tab2 AS cor0 +---- +23 +31 query I rowsort label-710 SELECT ALL + SUM ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0 @@ -4473,8 +4515,15 @@ SELECT ALL MIN ( - - col0 ) AS col2 FROM tab2 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, col2 FROM tab2 WHERE NOT ( NULL IS NOT NULL ) +---- +23 +23 +40 +40 +58 +58 query III rowsort label-738 SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( NULL > ( - CAST ( NULL AS INTEGER ) ) ) ) @@ -4784,8 +4833,15 @@ SELECT * FROM tab1 WHERE ( + col1 + - + ( + 89 ) + ( + col2 ) * + + col1 + col0 # Datafusion - Expected - -47 # Datafusion - Expected - -5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 col1, - ( + + col1 ) AS col1 FROM tab1 +---- +-14 +-14 +-47 +-47 +-5 +-5 query I rowsort label-786 SELECT + 7 - + - COUNT ( - + col1 ) FROM tab0 @@ -5152,8 +5208,15 @@ SELECT DISTINCT * FROM tab0 WHERE + - col0 + - 21 - col0 BETWEEN NULL AND - col1 # Datafusion - Expected - 78 # Datafusion - Expected - -21 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(21\)\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 21 AS col0, 78 AS col0 FROM tab2 AS cor0 +---- +-21 +-21 +-21 +78 +78 +78 query I rowsort label-845 SELECT ALL - 87 * - CAST ( NULL AS INTEGER ) * - + MIN ( 60 ) / COUNT ( * ) - - - COUNT ( * ) * + - ( + + COUNT ( DISTINCT - + 83 ) ) AS col0 FROM tab2 @@ -5544,8 +5607,15 @@ SELECT - 64 + - col2 * + 99 FROM tab2 AS cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 8544 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ cor0\.col2 \* \(\- Int64\(\-90\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 + col2 * - - 90 AS col1, col2 AS col1 FROM tab1 AS cor0 +---- +5251 +59 +6052 +68 +8544 +96 query III rowsort SELECT * FROM tab0 WHERE - + 65 * 61 + + - col0 = - - ( - col1 ) * - col0 + - col2 * 75 * + 57 @@ -6379,8 +6449,10 @@ SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to e785198a89c5ae89063ecf159985f660 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - col2 col2, + 32 AS col2, 30 / col0 col0 FROM tab2 AS cor0 +---- +9 values hashing to 3935caab1b554ea10d8d7e53ad3141ca query I rowsort SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT 32 < - col2 + 17 * - col1 * ( - col1 ) * col0 + + col1 @@ -7117,8 +7189,15 @@ SELECT ALL + 97 + + col2 * + 72 + col1 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 21 # 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 "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 60 AS col2, + col1 AS col2 FROM tab0 AS cor0 +---- +-60 +-60 +-60 +1 +21 +81 query I rowsort SELECT DISTINCT - col1 * 13 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND NULL @@ -7713,8 +7792,11 @@ SELECT ALL - col2 + + col2 - 21 AS col0 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 +---- +-3 +3 query II rowsort SELECT ALL 1 - + + 21 AS col1, col2 FROM tab1 @@ -7729,8 +7811,11 @@ SELECT ALL 1 - + + 21 AS col1, col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 AS col0, COUNT ( * ) AS col0 FROM tab2 +---- +3 +35 query III rowsort SELECT * FROM tab0 WHERE + col0 = ( - + col2 ) @@ -8209,8 +8294,10 @@ SELECT 78 * + ( 31 ) * 10 * - - col0 + col2 / + 1 AS col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 7fa4a4b155a2f23d0e841e7a95fe6a59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col1" at position 1 and "Int64\(17\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - col2, - 65 AS col1, 17 AS col1 FROM tab0 +---- +9 values hashing to 310aa22011b981e0c31d121e11512012 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -8562,8 +8649,11 @@ SELECT + 39, 32 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -162 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(54\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, + COUNT ( * ) * - + 54 AS col1 FROM tab2 +---- +-162 +3 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT + col1 / col2 * - + col1 > - col1 @@ -9255,8 +9345,15 @@ SELECT + ( - 74 ) * + + 19 col0 FROM tab0 AS cor0 WHERE NOT NULL > ( NULL ) # Datafusion - Expected - -64 # Datafusion - Expected - -43 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 43 AS col0, - col0 AS col0 FROM tab2 AS cor0 +---- +-43 +-43 +-43 +-46 +-64 +-75 query I rowsort SELECT - 61 * + col0 + - + col0 FROM tab1 cor0 @@ -9763,8 +9860,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1 +---- +9 +9 query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * col0 + - col2 NOT IN ( + col1 * - col1 ) @@ -10709,8 +10809,10 @@ SELECT DISTINCT * FROM tab2 WHERE ( + - col2 * - col0 * - + col2 ) >= NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to a2a61208ae5fc19f5b3311384f27b50b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col0" at position 0 and "Int64\(56\) \+ Int64\(\-57\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 78 AS col0, col1 * - col2 * + col1 + - col0 / + - 40, + 56 + - 57 AS col0 FROM tab0 AS cor0 +---- +9 values hashing to 63cedcb17ecacf8d4bc6138a6266a132 query II rowsort SELECT + col2 AS col0, col1 FROM tab1 AS cor0 @@ -10927,8 +11029,15 @@ SELECT - col1 / + - col0 FROM tab2 AS cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 0 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) / \(\- tab1\.col2\) AS col2" at position 0 and "\(\- tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 / - col2 AS col2, - col1 AS col2 FROM tab1 +---- +-14 +-47 +-5 +0 +0 +0 query III rowsort SELECT ALL * FROM tab2 WHERE NOT - 60 NOT BETWEEN col2 AND + col2 + col1 @@ -11037,8 +11146,15 @@ SELECT COUNT ( * ) + + - MIN ( + + 60 ) AS col0 FROM tab2 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2, col2 AS col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort label-1817 SELECT + COUNT ( ALL 3 ) * + + 78 FROM tab0 AS cor0 @@ -11447,8 +11563,11 @@ SELECT ALL + col2 * + col0 + col0 AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1750 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(DISTINCT Int64\(9\)\) AS col0" at position 0 and "Int64\(\-70\) \* Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + AVG ( DISTINCT 9 ) AS col0, - 70 * + 25 AS col0 FROM tab1 AS cor0 WHERE - col0 IS NULL +---- +-1750 +NULL query I rowsort SELECT + 39 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL @@ -11760,8 +11879,15 @@ SELECT DISTINCT - 61 AS col0 FROM tab2 cor0 # Datafusion - Expected - 68 # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, + col2 FROM tab1 +---- +59 +59 +68 +68 +96 +96 query I rowsort label-1931 SELECT - + ( - - 89 ) / 94 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 @@ -11897,8 +12023,15 @@ SELECT 26 AS col1, - col2 + + col1 FROM tab1 # Datafusion - Expected - -1 # Datafusion - Expected - -75 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "tab2\.col1 / Int64\(\-60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, + col1 / - 60 AS col2 FROM tab2 +---- +-1 +-1 +-46 +-64 +-75 +0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 @@ -11907,8 +12040,15 @@ SELECT - col0 AS col2, + col1 / - 60 AS col2 FROM tab2 # Datafusion - Expected - 67 # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, ( col1 ) FROM tab2 +---- +51 +51 +67 +67 +77 +77 query I rowsort SELECT ALL - col1 * - + 96 - - + col0 FROM tab0 AS cor0 @@ -11968,8 +12108,15 @@ SELECT DISTINCT 48 * + 13 FROM tab0 # Datafusion - Expected - 70 # Datafusion - Expected - 81 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, 70 col2 FROM tab0 +---- +1 +21 +70 +70 +70 +81 query III rowsort SELECT * FROM tab2 WHERE col1 IS NOT NULL AND NOT ( ( + - 76 ) ) < NULL @@ -13592,8 +13739,15 @@ SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( + 91 ) IS NOT NULL # Datafusion - Expected - 47 # Datafusion - Expected - 96 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 col0, col1 col0 FROM tab1 AS cor0 +---- +14 +47 +5 +59 +68 +96 query II rowsort label-2235 SELECT DISTINCT 8 col0, - COUNT ( * ) + + 40 / COUNT ( * ) + + COUNT ( * ) FROM tab2 @@ -13960,8 +14114,11 @@ SELECT * FROM tab0 AS cor0 WHERE + col0 = - col0 / + + 74 + + 64 - + 95 * + + 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ), CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 +---- +3 +3 query II rowsort SELECT - col1 AS col1, col2 AS col2 FROM tab0 AS cor0 @@ -14141,8 +14298,15 @@ SELECT 1 + - col0 + - + col2 FROM tab2 # Datafusion - Expected - 3208 # Datafusion - Expected - 0 # Datafusion - Expected - 3709 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col1 \* Int64\(49\) \+ \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 + - col2 col0, + col1 * 49 + - + col0 AS col0 FROM tab2 AS cor0 +---- +0 +0 +0 +2453 +3208 +3709 query I rowsort label-2321 SELECT ALL + + COUNT ( * ) + + + 29 AS col2 FROM tab0 AS cor0 @@ -14593,8 +14757,15 @@ SELECT + + col1 / + + 65 FROM tab0 AS cor0 # Datafusion - Expected - NULL # Datafusion - Expected - 96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 \- CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col2 AS col0, + col2 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 +---- +59 +68 +96 +NULL +NULL +NULL query III rowsort SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * col2 < NULL @@ -15526,8 +15697,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + - COUNT ( * ) AS col0, MIN ( DISTINCT - ( - + col1 ) ) col0 FROM tab1 AS cor0 +---- +-3 +5 query I rowsort label-2548 SELECT MAX ( DISTINCT + 73 ) AS col1 FROM tab0 AS cor0 @@ -15604,8 +15778,11 @@ SELECT col0 AS col2 FROM tab2 WHERE NOT ( - col2 * + 7 * ( + 29 ) ) = NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "count\(CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 9 AS col2, COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 +---- +0 +9 query I rowsort SELECT ALL - 39 AS col0 FROM tab1 WHERE NOT NULL IS NULL @@ -15742,8 +15919,15 @@ SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) col1 FROM tab1 # Datafusion - Expected - -87 # Datafusion - Expected - 9603 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- CAST\(\(\- tab0\.col0\) AS Int32\)\) AS col2" at position 0 and "CAST\(\(\- tab0\.col0\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * - CAST ( - col0 AS INTEGER ) AS col2, CAST ( + - col0 AS INTEGER ) AS col2 FROM tab0 +---- +-15 +-87 +-97 +705 +870 +9603 query III rowsort SELECT * FROM tab2 WHERE col0 NOT BETWEEN 46 AND ( NULL ) @@ -16239,8 +16423,15 @@ SELECT DISTINCT MAX ( ALL - col1 ) AS col1 FROM tab2 # Datafusion - Expected - 40 # Datafusion - Expected - -81 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 AS col0, col2 AS col0 FROM tab2 +---- +-81 +-81 +-81 +23 +40 +58 query I rowsort SELECT DISTINCT ( 35 ) FROM tab2 @@ -16418,8 +16609,15 @@ SELECT DISTINCT - + MIN ( DISTINCT + col0 ) FROM tab0 cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 0 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ cor0\.col0 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + + col0 AS col2, col0 AS col2 FROM tab0 AS cor0 +---- +0 +0 +0 +15 +87 +97 query I rowsort SELECT + 27 * - - 47 AS col2 FROM tab1 @@ -16732,8 +16930,11 @@ SELECT ALL ( - col0 ) AS col2, + 58 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 103 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- \(\- cor0\.col1\)\)\) AS col1" at position 0 and "max\(DISTINCT Int64\(\-83\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + SUM ( - - col1 ) AS col1, + MAX ( DISTINCT - 83 ) col1 FROM tab0 cor0 +---- +-83 +103 query I rowsort label-2743 SELECT + MIN ( + 95 ) FROM tab0 AS cor0 @@ -17040,8 +17241,15 @@ SELECT DISTINCT + col2, - col0 AS col0 FROM tab2 # Datafusion - Expected - 87 # 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 "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 17 AS col2, + col0 AS col2 FROM tab0 AS cor0 +---- +15 +17 +17 +17 +87 +97 query I rowsort SELECT DISTINCT + 16 + - + col0 FROM tab1 cor0 @@ -17328,8 +17536,15 @@ SELECT DISTINCT - + col1 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL # Datafusion - Expected - 47 # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / CAST\(NULL AS Int32\) / Int64\(84\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 / CAST ( NULL AS INTEGER ) / + + 84 AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +10 +47 +99 +NULL +NULL +NULL query I rowsort SELECT DISTINCT + 48 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 @@ -18349,8 +18564,10 @@ SELECT DISTINCT SUM ( col2 ) + - COUNT ( DISTINCT + + 36 ) FROM tab2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to bcc9556d891402affaf816c2829da75b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + col1 AS col2, col0 AS col2, - - col2 * + - col0 * - ( - - ( + col2 ) ) / - CAST ( NULL AS INTEGER ) - col2 col0 FROM tab1 +---- +9 values hashing to bfb27b997ff1e061555d6152c6d32426 query I rowsort SELECT DISTINCT + - col0 AS col2 FROM tab2 WHERE NOT NULL <= NULL @@ -18788,8 +19005,15 @@ SELECT DISTINCT + col2 / 54, col2 AS col2 FROM tab0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col2 AS Int32\)" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( + col2 AS INTEGER ), + col2 AS col2 FROM tab2 +---- +23 +23 +40 +40 +58 +58 query III rowsort SELECT * FROM tab2 WHERE NOT - col0 + col1 * - - 78 + col1 + + + col2 IS NOT NULL @@ -19024,8 +19248,15 @@ SELECT ALL + - col1 + + - col1 col2 FROM tab2 AS cor0 # Datafusion - Expected - 25 # Datafusion - Expected - -80 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ Int64\(\-85\) AS col2" at position 0 and "Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 + - 85 AS col2, 25 AS col2 FROM tab1 AS cor0 +---- +-38 +-71 +-80 +25 +25 +25 query I rowsort label-3125 SELECT + - MAX ( - 74 ) + - COUNT ( * ) FROM tab0 AS cor0 @@ -19306,8 +19537,11 @@ SELECT col0 + + - ( + col0 ) AS col2 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col0" at position 0 and "avg\(Int64\(42\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - 58 AS col0, AVG ( ALL + 42 ) col0 FROM tab2 AS cor0 WHERE - col2 = 66 +---- +-58 +NULL query II rowsort SELECT - ( + col0 ) AS col0, - col1 FROM tab1 AS cor0 @@ -19375,8 +19609,15 @@ NULL # Datafusion - Expected - 67 # Datafusion - Expected - -77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col2, col1 AS col2 FROM tab2 +---- +-51 +-67 +-77 +51 +67 +77 query I rowsort label-3178 SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab0 @@ -20431,8 +20672,11 @@ SELECT DISTINCT col1 AS col2, + col1 - - + col0 AS col1 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 40 col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 +---- +3 +40 query I rowsort SELECT ALL - - col0 * - col0 AS col1 FROM tab1 cor0 WHERE NOT 51 IS NULL @@ -20533,8 +20777,10 @@ SELECT ALL - 2 + + 47 - - MAX ( ALL col0 ) * + COUNT ( * ) FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 9911c315ed2bbed0e7a675e03f9b77b0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "Int64\(64\) / \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - col0 AS col1, 64 / - col1 AS col1, - col0 + - ( + 3 ) AS col1 FROM tab1 cor0 +---- +9 values hashing to 2096606ebbb530612259a21ae4f10244 query I rowsort SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE + 93 IS NULL @@ -21006,8 +21252,11 @@ 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\(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\. +query II valuesort SELECT ALL - + COUNT ( * ) col0, - SUM ( + - col0 ) col0 FROM tab1 AS cor0 +---- +-3 +227 query I rowsort SELECT DISTINCT + col0 - ( col1 ) col2 FROM tab2 AS cor0 @@ -22280,8 +22529,11 @@ SELECT - + COUNT ( + + col0 ) AS col2 FROM tab2 AS cor0 WHERE + 80 NOT BETWEEN 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +3 +61 query I rowsort label-3664 SELECT + SUM ( - + 10 ) FROM tab1 AS cor0 @@ -22944,8 +23196,15 @@ SELECT DISTINCT ( - CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0, + col0 AS col0 FROM tab0 +---- +15 +15 +87 +87 +97 +97 query II rowsort label-3770 SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) - + MAX ( col1 ) * - 25 AS col1 FROM tab2 AS cor0 @@ -23047,8 +23306,11 @@ SELECT + col0 / - col0 AS col1 FROM tab1 WHERE NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2997 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* \(\- min\(\(\- tab0\.col1\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 * + - MIN ( + - col1 ) AS col0, COUNT ( * ) AS col0 FROM tab0 +---- +2997 +3 query III rowsort SELECT * FROM tab0 WHERE 67 IS NOT NULL @@ -23452,8 +23714,15 @@ SELECT 25 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 # Datafusion - Expected - -16 # Datafusion - Expected - 77 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \+ \(\- tab0\.col2\) AS col1" at position 0 and "Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 + - + col2 AS col1, - 16 col1 FROM tab0 +---- +-16 +-16 +-16 +-2 +-32 +77 query I rowsort SELECT DISTINCT - 33 * + col1 FROM tab2 AS cor0 @@ -24666,8 +24935,15 @@ SELECT DISTINCT + COUNT ( - 95 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -67 # Datafusion - Expected - -77 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col0" at position 0 and "\(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, - col1 AS col0 FROM tab2 +---- +-51 +-51 +-67 +-67 +-77 +-77 query I rowsort SELECT DISTINCT + col2 * - 48 FROM tab2 @@ -25683,8 +25959,11 @@ SELECT + col1 * 41 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 11150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "Int64\(50\) \* sum\(tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 66 col0, + 50 * + ( SUM ( ALL + col2 ) ) AS col0 FROM tab1 +---- +11150 +66 query I rowsort label-4217 SELECT ( + MAX ( DISTINCT 74 ) ) FROM tab2 @@ -25996,8 +26275,15 @@ SELECT 0 + - 86 FROM tab0 # Datafusion - Expected - 4445 # Datafusion - Expected - 92 # Datafusion - Expected - 2557 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \+ tab2\.col0 AS col0" at position 0 and "tab2\.col1 \* tab2\.col1 \+ Int64\(\-95\) \+ Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + + + col0 AS col0, col1 * + col1 + - 95 + + 51 AS col0 FROM tab2 +---- +128 +150 +2557 +4445 +5885 +92 query I rowsort label-4267 SELECT DISTINCT + col2 * col1 * col1 / + col2 FROM tab2 @@ -26140,8 +26426,15 @@ SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 = col0 # Datafusion - Expected - -85 # Datafusion - Expected - 83 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 83 AS col1, - col0 AS col1 FROM tab1 cor0 +---- +-51 +-85 +-91 +83 +83 +83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 @@ -26150,8 +26443,15 @@ SELECT 83 AS col1, - col0 AS col1 FROM tab1 cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col1, + col1 FROM tab0 +---- +1 +1 +21 +21 +81 +81 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -26815,8 +27115,15 @@ SELECT ALL 64 - - MIN ( + - col1 ) AS col1 FROM tab0 # Datafusion - Expected - -1 # Datafusion - Expected - -91 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col2" at position 0 and "tab1\.col2 / \(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - col0 ) AS col2, col2 / - col2 col2 FROM tab1 +---- +-1 +-1 +-1 +-51 +-85 +-91 query I rowsort label-4401 SELECT MAX ( 73 ) FROM tab2 WHERE NOT 47 NOT BETWEEN col2 AND col0 @@ -27499,8 +27806,15 @@ SELECT ALL - ( + - col0 ), col0 FROM tab2 AS cor0 # Datafusion - Expected - 13 # Datafusion - Expected - 64 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \+ cor0\.col2 AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 6 + + col2 AS col2, 13 AS col2 FROM tab2 AS cor0 +---- +13 +13 +13 +29 +46 +64 query III rowsort SELECT * FROM tab2 AS cor0 WHERE col2 + col0 - + - ( - col0 ) + - 14 + + - 89 - + 74 * - 82 / - col2 NOT IN ( + + col1 + 58 + - ( 49 ) ) @@ -27510,8 +27824,11 @@ SELECT * FROM tab2 AS cor0 WHERE col2 + col0 - + - ( - col0 ) + - 14 + + - 89 - # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 223 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- sum\(\(\- \(\- \(\- cor0\.col2\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) * + COUNT ( * ) AS col1, - SUM ( ALL - - ( + ( - col2 ) ) ) AS col1 FROM tab1 AS cor0 +---- +223 +9 query I rowsort SELECT col0 * + 51 AS col0 FROM tab0 @@ -28084,8 +28401,15 @@ SELECT - - 85 + + + col0 + col2 FROM tab0 AS cor0 WHERE ( - col2 ) IS NULL # Datafusion - Expected - 97 # Datafusion - Expected - 48 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / Int64\(25\) \+ cor0\.col2 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 / ( 25 ) + col2 AS col2, + col0 AS col2 FROM tab0 AS cor0 +---- +10 +102 +15 +48 +87 +97 query III rowsort SELECT ALL * FROM tab1 WHERE NOT + col2 BETWEEN NULL AND NULL @@ -28324,8 +28648,9 @@ SELECT DISTINCT * FROM tab2 WHERE NOT + 93 IS NULL 9 values hashing to 75c998aa53ac83218cbf2feb962d0a49 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 AS col1, + col2 AS col1 FROM tab2 WHERE NOT + col1 BETWEEN - col2 AND NULL +---- query I rowsort label-4650 SELECT MAX ( ALL + - col2 ) FROM tab0 AS cor0 @@ -28438,8 +28763,15 @@ SELECT ALL col1 * + col1 * + 93 AS col1 FROM tab0 # Datafusion - Expected - 40 # Datafusion - Expected - 90 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 90 AS col0, + col2 AS col0 FROM tab2 +---- +23 +40 +58 +90 +90 +90 query I rowsort SELECT DISTINCT 11 + col1 FROM tab0 AS cor0 @@ -28572,8 +28904,15 @@ SELECT col2 * - ( - + 34 ) FROM tab2 # Datafusion - Expected - -17220 # Datafusion - Expected - 97 # Datafusion - Expected - -8118 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col1 \* Int64\(82\) \* \(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, col1 * + 82 * + - col2 AS col2 FROM tab0 +---- +-17220 +-312174 +-8118 +15 +87 +97 query II rowsort SELECT + col0, - 43 FROM tab2 AS cor0 @@ -28846,8 +29185,15 @@ SELECT ALL - 63 FROM tab2 WHERE NOT CAST ( col2 AS FLOAT8 ) + col0 IS NULL # Datafusion - Expected - 63 # Datafusion - Expected - 3542 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* \(\- Int64\(\-46\)\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * - - 46 AS col2, + 63 AS col2 FROM tab2 +---- +2346 +3082 +3542 +63 +63 +63 query I rowsort label-4732 SELECT ALL 46 / - CAST ( - 55 AS INTEGER ) col2 FROM tab0 @@ -29689,8 +30035,11 @@ SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT col0 <= ( - col0 + + + col2 - + CAST # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(49\) \* CAST\(count\(cor0\.col2\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col2, 49 * + CAST ( + COUNT ( ALL col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 +---- +147 +NULL query I rowsort SELECT + 49 + + 29 AS col2 FROM tab2 @@ -29726,8 +30075,15 @@ SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - - CAST ( - # Datafusion - Expected - NULL # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col0 \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, + col0 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE 32 IS NOT NULL +---- +51 +67 +77 +NULL +NULL +NULL query III rowsort SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * + - col1 * + col1 IS NULL @@ -31232,8 +31588,15 @@ SELECT DISTINCT + - 86 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 ) # Datafusion - Expected - 25150309 # Datafusion - Expected - 43 # Datafusion - Expected - 38291428 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "Int64\(84\) \+ \(\- tab1\.col0\) \* \(\- \(\- tab1\.col2\)\) \* \(\- tab1\.col2\) \* tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 43 AS col1, + 84 + - col0 * - - col2 * - col2 * col0 AS col1 FROM tab1 +---- +23970900 +25150309 +38291428 +43 +43 +43 query I rowsort SELECT ALL - col2 * + 87 FROM tab2 @@ -31905,8 +32268,15 @@ SELECT * FROM tab2 cor0 WHERE NOT ( NOT ( ( NULL IS NULL ) ) ) # Datafusion - Expected - 91 # Datafusion - Expected - 1 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) / \(\- \(\- tab1\.col0\)\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 71 / - - col0 AS col2, col0 AS col2 FROM tab1 +---- +0 +0 +1 +51 +85 +91 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= + 64 @@ -33088,8 +33458,15 @@ SELECT DISTINCT col2 * - 70 FROM tab0 # Datafusion - Expected - NULL # Datafusion - Expected - -2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 / \(\- tab2\.col2\) 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 IR valuesort SELECT ALL col0 / - col2 AS col0, CAST ( NULL AS FLOAT8 ) AS col0 FROM tab2 +---- +-1 +-1 +-2 +NULL +NULL +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 @@ -33098,8 +33475,15 @@ SELECT ALL col0 / - col2 AS col0, CAST ( NULL AS FLOAT8 ) AS col0 FROM tab2 # Datafusion - Expected - -90 # Datafusion - Expected - 81 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, - 90 AS col0 FROM tab0 +---- +-90 +-90 +-90 +1 +21 +81 query I rowsort label-5436 SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( 25 IS NULL ) @@ -33282,8 +33666,12 @@ 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\(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\. +query III valuesort SELECT COUNT ( * ), MAX ( col0 ) col0, COUNT ( * ) FROM tab2 +---- +3 +3 +75 query I rowsort label-5463 SELECT MAX ( - 71 ) AS col2 FROM tab0 @@ -34137,8 +34525,11 @@ 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\(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\. +query II valuesort SELECT + + 0 - - - COUNT ( * ) * 28 / 72 AS col0, 63 * + - ( + - COUNT ( * ) ) AS col0 FROM tab1 WHERE NOT + - 89 * + - col1 * - 64 + col1 IS NOT NULL +---- +0 +0 query I rowsort label-5604 SELECT + COUNT ( + 41 ) FROM tab1 @@ -34294,8 +34685,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) - + + 37 AS col2, - 50 AS col2 FROM tab0 AS cor0 +---- +-34 +-50 query I rowsort SELECT + - 48 - + col2 - - - 35 + - 82 AS col2 FROM tab2 AS cor0 @@ -34579,8 +34973,15 @@ SELECT - 4, + 4 AS col0 FROM tab2 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - 27 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 27 AS col1, - col0 col1 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +27 +27 +27 query II rowsort label-5672 SELECT - MAX ( ALL - ( - + ( col2 ) ) ) AS col1, - MIN ( - 62 ) col0 FROM tab1 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL @@ -34718,8 +35119,15 @@ SELECT DISTINCT + - CAST ( + + 53 AS INTEGER ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -62 # Datafusion - Expected - -40 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col1" at position 0 and "\(\- CAST\(cor0\.col1 AS Int32\)\) \+ \(\- \(\- cor0\.col2\)\) \+ Int64\(\-28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 40 col1, - CAST ( col1 AS INTEGER ) + - - col2 + - 28 col1 FROM tab0 AS cor0 +---- +-39 +-40 +-40 +-40 +-62 +70 query I rowsort SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT 90 IS NOT NULL @@ -34735,8 +35143,11 @@ SELECT ALL + col1 + + 9 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) + + COUNT ( * ) AS col0, + 36 AS col0 FROM tab0 AS cor0 +---- +36 +6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1600 @@ -34779,8 +35190,15 @@ SELECT DISTINCT * FROM tab2 WHERE NULL >= 5 - + 50 # Datafusion - Expected - 23 # Datafusion - Expected - 1 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 / tab2\.col0 AS col0" at position 0 and "tab2\.col0 \+ \(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 / + col0 AS col0, + col0 + - ( + + col2 ) col0 FROM tab2 WHERE NULL IS NULL +---- +1 +1 +1 +17 +23 +24 query III rowsort SELECT ALL * FROM tab1 cor0 WHERE col2 > - - col0 @@ -35405,8 +35823,15 @@ SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( - col2 ) AND - col1 # Datafusion - Expected - 67 # Datafusion - Expected - 2 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 2 col2, col1 col2 FROM tab2 +---- +2 +2 +2 +51 +67 +77 query II rowsort label-5813 SELECT 99 AS col2, + COUNT ( * ) FROM tab1 @@ -36229,8 +36654,9 @@ SELECT + col1 * - 44 AS col2 FROM tab2 AS cor0 -3388 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col0" at position 0 and "cor0\.col1 / cor0\.col2 \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 AS col0, col1 / col2 + col1 AS col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( 76, + col0 + + ( + col1 ) * - + 96 * - col2 / col0, - col2, col2 ) +---- query II rowsort label-5952 SELECT DISTINCT + COUNT ( * ) + - - COUNT ( * ) * + COUNT ( * ), + 67 AS col0 FROM tab1 AS cor0 @@ -36590,8 +37016,15 @@ SELECT ALL + 41 * + col1 AS col0 FROM tab1 # Datafusion - Expected - 49 # Datafusion - Expected - -97 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, 49 AS col2 FROM tab0 +---- +-15 +-87 +-97 +49 +49 +49 query II rowsort SELECT ALL col2 + + + ( - col1 ), 70 AS col0 FROM tab2 @@ -36629,8 +37062,15 @@ SELECT ALL col0 + + - 82 * + col0 * 46 AS col0 FROM tab0 AS cor0 # Datafusion - Expected - 5824 # Datafusion - Expected - -61 # Datafusion - Expected - 6825 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \+ Int64\(\-3\) AS col1" at position 0 and "CAST\(Int64\(91\) AS Int32\) \* cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 + - 3 AS col1, + CAST ( 91 AS INTEGER ) * + col0 AS col1 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL +---- +-26 +-43 +-61 +4186 +5824 +6825 query II rowsort label-6014 SELECT 71, COUNT ( * ) + + - SUM ( 66 ) AS col2 FROM tab1 AS cor0 @@ -38405,8 +38845,15 @@ SELECT ALL + col1 * - ( - 65 ) AS col1, col0 FROM tab1 AS cor0 # Datafusion - Expected - 108 # Datafusion - Expected - 9700 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \+ \(\- \(\- tab0\.col0\)\) \* tab0\.col2 AS col2" at position 0 and "tab0\.col0 \- \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + + ( - - col0 ) * col2 AS col2, col0 - - col1 AS col2 FROM tab0 +---- +108 +720 +957 +96 +9700 +98 query I rowsort SELECT ALL + col2 * + + 62 * - + col2 AS col2 FROM tab1 @@ -38498,8 +38945,15 @@ SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 15 > NULL # Datafusion - Expected - -28 # Datafusion - Expected - -74 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) AS col2" at position 0 and "cor0\.col0 \- Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 74 AS col2, col0 - + 92 AS col2 FROM tab2 AS cor0 +---- +-17 +-28 +-46 +-74 +-74 +-74 query III rowsort SELECT * FROM tab0 cor0 WHERE NOT NULL <= - col0 @@ -38594,8 +39048,15 @@ SELECT col1 * + CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 # Datafusion - Expected - -76 # Datafusion - Expected - 91 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, - 76 col2 FROM tab1 +---- +-76 +-76 +-76 +51 +85 +91 query I rowsort SELECT DISTINCT - col2 * + ( - 46 ) AS col1 FROM tab0 @@ -39207,8 +39668,15 @@ SELECT + COUNT ( * ) * + COUNT ( * ) + - 25 AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 89 # Datafusion - Expected - -915 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* Int64\(\-61\) AS col1" at position 0 and "\(\- Int64\(\-89\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * - 61 col1, + ( - - 89 ) AS col1 FROM tab0 AS cor0 +---- +-5307 +-5917 +-915 +89 +89 +89 query II rowsort label-6447 SELECT COUNT ( + col2 ) AS col0, 10 FROM tab0 AS cor0 @@ -41984,8 +42452,11 @@ SELECT + col0 - + + 9 - + col1 AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - 96 ) col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 +---- +-96 +3 query I rowsort label-6903 SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 @@ -42118,8 +42589,15 @@ SELECT DISTINCT + COUNT ( * ) + - 99 * - 13, 8 AS col1 FROM tab1 AS cor0 # Datafusion - Expected - 1530 # Datafusion - Expected - 434 # Datafusion - Expected - 918 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \+ cor0\.col1 \* Int64\(32\) AS col1" at position 0 and "\(\- CAST\(Int64\(18\) AS Int32\)\) \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 + + col1 * + + 32 AS col1, - CAST ( + 18 AS INTEGER ) * + - ( + col0 ) AS col1 FROM tab1 AS cor0 +---- +1457 +1530 +155 +1638 +434 +918 query I rowsort SELECT DISTINCT + col1 * 49 - - + 59 + + col2 + 64 AS col0 FROM tab2 cor0 @@ -42162,8 +42640,11 @@ SELECT COUNT ( * ) AS col0, 99 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 49 AS col0, + COUNT ( * ) col0 FROM tab1 +---- +3 +49 query I rowsort label-6934 SELECT CAST ( + 0 AS INTEGER ) col1 FROM tab1 @@ -43322,8 +43803,15 @@ SELECT 55 * col1 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL # Datafusion - Expected - 37 # Datafusion - Expected - 9 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 AS col1, + 37 AS col1 FROM tab2 +---- +37 +37 +37 +9 +9 +9 query I rowsort SELECT DISTINCT col1 - 25 FROM tab1 WHERE col1 NOT IN ( col1 / + + ( - col0 ) ) @@ -43749,8 +44237,15 @@ SELECT DISTINCT - 91 / - - col2 FROM tab1 AS cor0 # Datafusion - Expected - 3 # Datafusion - Expected - 72 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col2" at position 0 and "Int64\(\-70\) / \(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 72 col2, - 70 / - col1 col2 FROM tab0 cor0 +---- +0 +3 +70 +72 +72 +72 query I rowsort label-7200 SELECT DISTINCT + SUM ( + - 29 ) AS col1 FROM tab0 @@ -44201,8 +44696,11 @@ SELECT ALL 80 AS col2 FROM tab0 WHERE 8 * 58 * - 32 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -199 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- tab0\.col0\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( - col0 ) AS col1, COUNT ( * ) AS col1 FROM tab0 +---- +-199 +3 query I rowsort SELECT + - 53 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL @@ -45040,8 +45538,15 @@ SELECT - + COUNT ( - + 32 ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - 168 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \+ cor0\.col2 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 72 + col2 AS col0, col1 AS col0 FROM tab1 cor0 +---- +131 +14 +140 +168 +47 +5 query I rowsort SELECT - col1 + + 72 AS col2 FROM tab2 AS cor0 @@ -45282,8 +45787,15 @@ SELECT col0, + CAST ( + col1 AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0 # Datafusion - Expected - 3724 # Datafusion - Expected - 96 # Datafusion - Expected - 3724 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(76\) \* Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, 76 * 49 AS col0 FROM tab1 AS cor0 +---- +3724 +3724 +3724 +59 +68 +96 query III rowsort SELECT * FROM tab1 WHERE - col0 - - col2 <> + col0 + + col0 @@ -45551,8 +46063,15 @@ SELECT DISTINCT - 71 + + col1 FROM tab0 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - -75 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col2" at position 0 and "\(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 75 AS col2, + ( - + col0 ) AS col2 FROM tab0 +---- +-15 +-75 +-75 +-75 +-87 +-97 query I rowsort SELECT ALL ( + + col0 ) AS col2 FROM tab0 @@ -45967,8 +46486,11 @@ SELECT DISTINCT - SUM ( DISTINCT 15 ) AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -201 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(66\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, 66 * - COUNT ( * ) - COUNT ( * ) AS col2 FROM tab0 AS cor0 +---- +-201 +-3 query II rowsort SELECT ALL - 15, col1 FROM tab2 AS cor0 @@ -46165,8 +46687,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 98 * 49 - ( col2 ) AND # Datafusion - Expected - 56 # Datafusion - Expected - 53 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 53 AS col0, + 56 AS col0 FROM tab0 +---- +53 +53 +53 +56 +56 +56 query II rowsort SELECT 13, + 24 AS col0 FROM tab0 @@ -46390,8 +46919,15 @@ SELECT DISTINCT + - col0 / - ( - 53 ) FROM tab0 AS cor0 # Datafusion - Expected - 49 # Datafusion - Expected - 99 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col1, 49 col1 FROM tab0 AS cor0 +---- +10 +47 +49 +49 +49 +99 query II rowsort label-7632 SELECT ALL - 62 AS col2, CAST ( NULL AS INTEGER ) + + ( + col2 ) FROM tab2 AS cor0 @@ -46607,8 +47143,15 @@ SELECT ALL + + CAST ( + 4 AS INTEGER ) AS col1 FROM tab1 WHERE NOT NULL IS NOT N # Datafusion - Expected - -37 # Datafusion - Expected - -96 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col0" at position 0 and "Int64\(\-37\) \+ Int64\(35\) / tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, - 37 + 35 / + col2 AS col0 FROM tab1 +---- +-37 +-37 +-37 +-59 +-68 +-96 query I rowsort SELECT + - ( - 59 ) FROM tab0 AS cor0 @@ -46752,8 +47295,15 @@ SELECT COUNT ( DISTINCT col1 ) / - COUNT ( * ) - + COUNT ( * ) FROM tab1 # Datafusion - Expected - 54 # Datafusion - Expected - 77 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \- \(\- \(\- tab0\.col2\)\) AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 - - - col2 AS col0, 54 AS col0 FROM tab0 +---- +-2 +-32 +54 +54 +54 +77 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NULL = + 23 @@ -47140,8 +47690,15 @@ SELECT + col1 * - col1 + + col1 col1 FROM tab1 # Datafusion - Expected - 40 # Datafusion - Expected - 4 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 / Int64\(\-29\) \+ \(\- tab2\.col0\) \+ tab2\.col1 AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 / - 29 + - + col0 + col1 AS col1, col2 AS col1 FROM tab2 +---- +-10 +11 +23 +4 +40 +58 query I rowsort SELECT + col0 + - 97 FROM tab0 @@ -48068,8 +48625,15 @@ SELECT col2 * col0 + - 13 + col0 + + col2 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - 15 # Datafusion - Expected - 99 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, col0 col1 FROM tab0 AS cor0 +---- +10 +15 +47 +87 +97 +99 query I rowsort label-7904 SELECT ( + - COUNT ( - col0 ) ) AS col2 FROM tab0 @@ -48280,8 +48844,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ), - COUNT ( * ) FROM tab2 +---- +-3 +-3 query I rowsort SELECT DISTINCT - 50 * - - col1 * - + ( - - 81 ) FROM tab1 @@ -48347,8 +48914,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE - 69 + + 27 + - col0 * + col0 NOT IN ( - 20 # Datafusion - Expected - 857 # Datafusion - Expected - -3196 # Datafusion - Expected - 992 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col1\) AS col0" at position 0 and "Int64\(\-6\) \- \(\- \(\- cor0\.col2\)\) \* Int64\(\-15\) \- Int64\(22\) \+ \(\- cor0\.col2\) \+ cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * - col1 AS col0, - 6 - - - col2 * - 15 - 22 + + - col2 + col2 AS col0 FROM tab1 cor0 +---- +-1344 +-295 +-3196 +1412 +857 +992 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -49696,8 +50270,10 @@ SELECT ALL + MAX ( ALL - - col0 ) AS col1 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 3ceb85e7a1dbad6d1aa7592156cc213d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col0" at position 0 and "CAST\(\(\- tab0\.col1\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 72 AS col0, + CAST ( - col1 AS INTEGER ) AS col0, + col0 * 27 + + col0 FROM tab0 +---- +9 values hashing to 61cec06400bd8626cf7a59ef7d8cf544 query I rowsort SELECT - col2 AS col0 FROM tab2 WHERE NOT + 40 IS NOT NULL @@ -50564,8 +51140,15 @@ SELECT DISTINCT - 96 / - col2 AS col2 FROM tab2 # Datafusion - Expected - 67 # Datafusion - Expected - -77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col2, + col1 AS col2 FROM tab2 +---- +-51 +-67 +-77 +51 +67 +77 query I rowsort label-8321 SELECT + col0 / - - 77 AS col0 FROM tab0 @@ -50577,8 +51160,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 96 AS col1, + ( - + COUNT ( * ) ) AS col1 FROM tab1 +---- +-3 +-96 query I rowsort label-8323 SELECT 85 * + - COUNT ( * ) FROM tab1 @@ -50904,8 +51490,9 @@ SELECT + 24, col1 * + col1 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN - CAST ( ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col1" at position 0 and "Int64\(21\) \+ \(\- Int64\(18\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 67 AS col1, 21 + - + 18 col1 FROM tab0 AS cor0 WHERE ( NULL ) = NULL +---- query I rowsort SELECT DISTINCT - col0 + + ( - col1 ) FROM tab2 AS cor0 @@ -51831,8 +52418,15 @@ SELECT + 89 + + SUM ( + 86 ) FROM tab0 # Datafusion - Expected - 29 # Datafusion - Expected - 96 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 / tab1\.col1 \+ Int64\(95\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 / + col1 + + ( + 95 ) AS col2, 29 AS col2 FROM tab1 +---- +101 +106 +29 +29 +29 +96 query I rowsort label-8529 SELECT - 87 * + + COUNT ( * ) FROM tab2 @@ -52365,8 +52959,15 @@ SELECT 65 + - - col2 col0 FROM tab1 # Datafusion - Expected - 112 # Datafusion - Expected - -60 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- Int64\(6\)\) AS col2" at position 0 and "Int64\(13\) \+ tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 * - + 6 AS col2, 13 + col2 AS col2 FROM tab0 +---- +-282 +-594 +-60 +112 +23 +60 query II rowsort label-8613 SELECT ALL - SUM ( ALL 45 ) AS col2, + 69 AS col0 FROM tab1 AS cor0 @@ -53602,8 +54203,15 @@ SELECT - 42 - - 58 AS col0 FROM tab0 cor0 # Datafusion - Expected - 5625 # Datafusion - Expected - 92 # Datafusion - Expected - 2116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ cor0\.col0 AS col1" at position 0 and "cor0\.col0 \* \(\- \(\- cor0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 + + col0 AS col1, col0 * - - col0 AS col1 FROM tab2 AS cor0 +---- +128 +150 +2116 +4096 +5625 +92 # Datafusion - Datafusion expected results: # Datafusion - Expected - -228 @@ -53612,8 +54220,15 @@ SELECT DISTINCT + col0 + + col0 AS col1, col0 * - - col0 AS col1 FROM tab2 AS co # Datafusion - Expected - 65 # Datafusion - Expected - -938 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \* Int64\(4\) \- \(\- tab1\.col0\) \+ tab1\.col2 \* tab1\.col0 / \(\- tab1\.col1\) AS col2" at position 0 and "tab1\.col1 \+ tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 * + + 4 - - col0 + col2 * col0 / + - col1 AS col2, col1 + col0 AS col2 FROM tab1 +---- +-228 +-354 +-938 +138 +65 +90 query I rowsort SELECT DISTINCT - - col0 * - col1 * - 69 - - + col2 / - col1 AS col2 FROM tab1 WHERE ( - - ( 78 ) ) * - 32 * + col1 IS NULL AND NOT ( - col0 IS NOT NULL ) @@ -54389,8 +55004,15 @@ SELECT ALL * FROM tab0 WHERE NOT NULL >= - + 84 # Datafusion - Expected - -47 # Datafusion - Expected - -99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) \* tab0\.col2 AS col2" at position 0 and "\(\- tab0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 * col2 AS col2, - col2 AS col2 FROM tab0 +---- +-10 +-210 +-3807 +-47 +-99 +-99 query I rowsort label-8948 SELECT SUM ( col1 ) FROM tab2 WHERE NULL IS NOT NULL @@ -54910,8 +55532,15 @@ SELECT + + COUNT ( * ) * + COUNT ( * ) col1 FROM tab0 cor0 # Datafusion - Expected - -47 # Datafusion - Expected - 68 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 68 AS col1, - col2 AS col1 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +68 +68 +68 query II rowsort SELECT - - col0, - col1 col1 FROM tab1 AS cor0 @@ -55240,8 +55869,11 @@ SELECT DISTINCT COUNT ( * ) * - MIN ( - col1 ) + COUNT ( * ) AS col0 FROM tab1 A # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(cor0\.col1\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( + col1 ) AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +3 +66 query I rowsort SELECT ALL - col0 * 59 * col2 * + - 38 - 91 FROM tab0 AS cor0 @@ -55848,8 +56480,15 @@ SELECT DISTINCT ( + 88 ) AS col2 FROM tab2 AS cor0 # Datafusion - Expected - -87 # Datafusion - Expected - 5 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "Int64\(\-87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, - 87 AS col2 FROM tab1 AS cor0 +---- +-87 +-87 +-87 +14 +47 +5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 @@ -56495,8 +57134,11 @@ SELECT - 58 / 31 / 91 * + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 # 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 "\(\- cor0\.col0\) / \(\- cor0\.col0\) \- Int64\(39\) AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col0 / - col0 - 39 AS col1, ( 33 ) AS col1 FROM tab1 AS cor0 +---- +-38 +33 query I rowsort label-9285 SELECT ( - COUNT ( * ) ) * + 81 AS col0 FROM tab2 AS cor0 @@ -57750,8 +58392,11 @@ SELECT ALL - col2 + col0 / + col0, - col0 AS col1 FROM tab0 cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 89 AS col1, COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab1 AS cor0 +---- +6 +89 query I rowsort SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE col1 * + col1 >= + col1 @@ -58244,8 +58889,11 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4160 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* Int64\(65\) AS col1" at position 0 and "min\(Int64\(26\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 64 * 65 AS col1, MIN ( ALL 26 ) AS col1 FROM tab0 AS cor0 +---- +26 +4160 query III rowsort SELECT * FROM tab1 AS cor0 WHERE NOT col2 + 59 + - col1 >= - col2 @@ -58340,8 +58988,15 @@ SELECT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) * col1 - + + 40 - - col0 + # Datafusion - Expected - -6188 # Datafusion - Expected - -96 # Datafusion - Expected - -4896 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "tab1\.col2 \* \(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col2, col2 * - col0 AS col2 FROM tab1 +---- +-4896 +-5015 +-59 +-6188 +-68 +-96 query II rowsort SELECT + - 61 AS col0, col2 FROM tab1 AS cor0 @@ -58421,8 +59076,15 @@ SELECT + col2 * - col2 + - - 44 + - col1 AS col2 FROM tab2 # Datafusion - Expected - 53 # Datafusion - Expected - 97 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, + 53 AS col1 FROM tab0 AS cor0 +---- +15 +53 +53 +53 +87 +97 query I rowsort label-9611 SELECT DISTINCT - 54 * col2 / ( 8 ) - + 13 * - + col1 FROM tab2 AS cor0 @@ -58767,8 +59429,15 @@ SELECT DISTINCT * FROM tab1 WHERE NOT - col2 BETWEEN NULL AND NULL # Datafusion - Expected - 322 # Datafusion - Expected - 0 # Datafusion - Expected - 3223 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) / Int64\(26\) / Int64\(\-18\) AS col2" at position 0 and "tab1\.col1 \* tab1\.col2 \+ Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 / 26 / + - 18 AS col2, + col1 * col2 + + + 27 AS col2 FROM tab1 +---- +0 +0 +0 +1371 +322 +3223 query I rowsort label-9665 SELECT DISTINCT - col2 / + + ( + - col1 ) + - + 31 FROM tab0 @@ -59397,8 +60066,15 @@ SELECT * FROM tab0 WHERE + + col2 * + col2 / 90 IS NULL # Datafusion - Expected - 5 # Datafusion - Expected - -44 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \+ \(\- tab1\.col1\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 3 + - + col1 AS col0, col1 AS col0 FROM tab1 +---- +-11 +-2 +-44 +14 +47 +5 query II rowsort SELECT + ( + + col2 ), + ( + - col0 ) FROM tab2 @@ -59467,8 +60143,11 @@ SELECT + 48 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 121 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col0" at position 0 and "sum\(DISTINCT tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 24 AS col0, + SUM ( DISTINCT + + col2 ) AS col0 FROM tab2 +---- +121 +24 query I rowsort SELECT + - col2 + + 7 AS col1 FROM tab1 cor0 WHERE 28 * 42 * - col0 = - 35 diff --git a/data/sqlite/random/aggregates/slt_good_99.slt b/data/sqlite/random/aggregates/slt_good_99.slt index 79c1068..9dcaf76 100644 --- a/data/sqlite/random/aggregates/slt_good_99.slt +++ b/data/sqlite/random/aggregates/slt_good_99.slt @@ -1092,8 +1092,15 @@ SELECT - col0 + + col0 + col0 AS col0, 40 AS col2 FROM tab2 AS cor0 # Datafusion - Expected - 21 # Datafusion - Expected - 41 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \- Int64\(74\) \+ \(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 - + 74 + - - col1 col1, 21 AS col1 FROM tab1 AS cor0 +---- +-10 +21 +21 +21 +36 +41 query I rowsort SELECT - + 12 + - col1 AS col0 FROM tab0 AS cor0 @@ -1257,8 +1264,15 @@ SELECT ALL COUNT ( * ) AS col1, 80 FROM tab0 cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col2, col0 AS col2 FROM tab1 AS cor0 +---- +51 +51 +85 +85 +91 +91 query I rowsort SELECT ALL + 38 + + col2 + + col0 * - col1 AS col2 FROM tab2 @@ -1740,7 +1754,7 @@ SELECT DISTINCT + + MAX ( ALL ( - col0 ) ) AS col2 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to d29ffed49ff69195898fbe3b9565e5bd -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ Int64\(\-81\) \+ tab1\.col1 AS col0" at position 1 and "\(\- tab1\.col2\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Schema error: Schema contains qualified field name tab1\.col0 and unqualified field name col0 which would be ambiguous SELECT col0, col2 + - 81 + col1 AS col0, - + col2 AS col0 FROM tab1 query II rowsort label-275 @@ -1772,8 +1786,15 @@ SELECT * FROM tab2 WHERE NOT + col0 < + + col1 + 35 + + - CAST ( NULL AS INTEGER # Datafusion - Expected - 37 # Datafusion - Expected - 99 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 99 col2, + 37 col2 FROM tab2 +---- +37 +37 +37 +99 +99 +99 query I rowsort label-280 SELECT DISTINCT SUM ( DISTINCT - col0 ) col1 FROM tab1 @@ -2352,8 +2373,15 @@ SELECT ALL ( - + MAX ( DISTINCT - - 26 ) ) col1 FROM tab1 # Datafusion - Expected - 77 # Datafusion - Expected - 58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(tab2\.col2 AS Int32\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + + col2 AS INTEGER ) AS col2, + col1 col2 FROM tab2 +---- +23 +40 +51 +58 +67 +77 query I rowsort label-383 SELECT ALL 72 * 74 * SUM ( + 70 ) FROM tab1 @@ -2608,8 +2636,15 @@ SELECT DISTINCT - 27 col2 FROM tab2 # Datafusion - Expected - 74658 # Datafusion - Expected - NULL # Datafusion - Expected - 931349 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- CAST\(\(\- Int64\(45\)\) AS Int32\)\) \* \(\- tab0\.col1\) \+ tab0\.col2 \* \(\- tab0\.col0\) \* \(\- tab0\.col0\) \+ \(\- tab0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col2, - CAST ( - + 45 AS INTEGER ) * - ( + col1 ) + col2 * - + col0 * + ( - col0 ) + - col0 AS col2 FROM tab0 +---- +6915 +74658 +931349 +NULL +NULL +NULL query I rowsort label-421 SELECT SUM ( ALL + 16 ) * - 90 FROM tab0 @@ -3014,8 +3049,15 @@ SELECT DISTINCT - - 25, 69 AS col0 FROM tab1 cor0 # Datafusion - Expected - -290836 # Datafusion - Expected - -4704 # Datafusion - Expected - -68544 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) \* Int64\(49\) AS col1" at position 0 and "tab1\.col0 \* tab1\.col2 \* \(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 * 49 AS col1, col0 * + + col2 * - col1 col1 FROM tab1 +---- +-25075 +-2891 +-290836 +-3332 +-4704 +-68544 query II rowsort label-486 SELECT ALL - 70, SUM ( ALL - 44 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 @@ -4060,8 +4102,15 @@ SELECT ALL + + 34 AS col2 FROM tab1 AS cor0 WHERE 48 IS NOT NULL # Datafusion - Expected - 85 # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, + col0 FROM tab1 +---- +51 +51 +85 +85 +91 +91 query I rowsort label-658 SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 @@ -4099,8 +4148,15 @@ SELECT - col2 * + - ( + 37 ) * + + col2 AS col1 FROM tab2 # Datafusion - Expected - -66 # Datafusion - Expected - 12 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 AS col0, - 66 col0 FROM tab0 AS cor0 +---- +-66 +-66 +-66 +12 +12 +12 query I rowsort SELECT DISTINCT col2 * + + 59 * - 98 FROM tab1 AS cor0 WHERE NOT 72 IN ( - 38 * - col0 ) @@ -4233,8 +4289,15 @@ SELECT DISTINCT 47 * + 52 FROM tab0 AS cor0 # Datafusion - Expected - -22 # Datafusion - Expected - -91 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 AS col0, - 22 AS col0 FROM tab1 AS cor0 +---- +-22 +-22 +-22 +-51 +-85 +-91 query II rowsort SELECT ALL + col2 AS col2, - col1 - col1 FROM tab0 AS cor0 @@ -4322,8 +4385,10 @@ SELECT ALL - col0 * - col1 + + + col0 FROM tab1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 92b7cbe009d6a511a8916fd1751a4583 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* Int64\(89\) \+ tab0\.col1 AS col1" at position 0 and "tab0\.col1 / \(\- \(\- tab0\.col0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT col2 * + 89 + + col1 AS col1, ( + col1 ) / - - col0 AS col1, - + 62 + + 70 / + 76 AS col2 FROM tab0 +---- +9 values hashing to 50ccc92f67ea23f7d8b929f3999e93a4 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -4925,8 +4990,15 @@ SELECT - 88 col2 FROM tab2, tab0 AS cor0 # Datafusion - Expected - 26 # Datafusion - Expected - 97 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 97 AS col2, + 26 col2 FROM tab0 +---- +26 +26 +26 +97 +97 +97 query I rowsort label-800 SELECT ALL + - COUNT ( * ) * - ( COUNT ( * ) ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 @@ -5808,8 +5880,15 @@ SELECT - col2 * + 89 AS col2 FROM tab0 # Datafusion - Expected - 67 # Datafusion - Expected - 14 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 col2, + col1 AS col2 FROM tab2 +---- +14 +14 +14 +51 +67 +77 query I rowsort label-951 SELECT COUNT ( DISTINCT + col1 ) AS col2 FROM tab0 @@ -6191,8 +6270,10 @@ SELECT - CAST ( + COUNT ( * ) AS INTEGER ) * 15 * CAST ( - COUNT ( * ) AS INTEGE # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 384b049f5d912207ac3220c4fea04638 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ Int64\(58\) \* \(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - col0 + 58 * + - col1 AS col2, + col0 col2, col0 FROM tab2 AS cor0 +---- +9 values hashing to a51055851fcdc4fee22d25ea5be0f28a query I rowsort label-1012 SELECT DISTINCT 60 / - + CAST ( ( + + 62 ) AS INTEGER ) FROM tab2 AS cor0 @@ -6728,8 +6809,15 @@ SELECT DISTINCT + col1 * col1 AS col0, - col0 / - + col1 FROM tab1 AS cor0 # Datafusion - Expected - -85 # Datafusion - Expected - NULL # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(\-32\)\) \* cor0\.col0 \* Int64\(9\) \+ \(\- cor0\.col0\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - - 32 * + col0 * + 9 + - col0 AS col0, - col0 col0 FROM tab1 AS cor0 +---- +-51 +-85 +-91 +NULL +NULL +NULL query I rowsort SELECT 40 col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 @@ -6815,8 +6903,10 @@ SELECT * FROM tab1 AS cor0 WHERE NOT col1 + - 41 NOT BETWEEN - 72 AND + 86 * + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 82003d4dc53d8a2b5716766927092770 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col0" at position 0 and "\(\- cor0\.col0\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 1 col0, col0 + 58 AS col1, - col0 AS col0 FROM tab1 AS cor0 +---- +9 values hashing to a5cc036bf4b1d3667720cb010075f8e4 query III rowsort SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * 27 + - - col1 IS NULL @@ -6852,8 +6942,15 @@ SELECT - col2 AS col1, - ( - - 42 ) AS col2 FROM tab1 # Datafusion - Expected - -47 # Datafusion - Expected - 5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "\(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, - col1 AS col0 FROM tab1 +---- +-14 +-47 +-5 +14 +47 +5 query I rowsort label-1117 SELECT ALL - 45 * - COUNT ( - col0 ) FROM tab0 WHERE NULL <> NULL @@ -7215,8 +7312,15 @@ SELECT DISTINCT COUNT ( * ), ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0 CROSS J # Datafusion - Expected - -87 # Datafusion - Expected - -97 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0, ( - col0 ) FROM tab0 AS cor0 +---- +-15 +-15 +-87 +-87 +-97 +-97 query I rowsort SELECT ( ( col2 ) ) + + col0 FROM tab2 AS cor0 @@ -8530,8 +8634,11 @@ SELECT 73 + - col0 + + col0 + - col2 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) / + COUNT ( * ) AS col1, 61 col1 FROM tab2 +---- +1 +61 query III rowsort SELECT ALL * FROM tab2 WHERE + 68 + - col2 + col2 + - - col2 + ( - col1 ) IS NULL @@ -10978,8 +11085,15 @@ SELECT ALL col1 * - - col1 FROM tab0 cor0 # Datafusion - Expected - 7 # Datafusion - Expected - 41 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT ALL + 41 AS col1, 7 AS col1 FROM tab0 AS cor0 +---- +41 +41 +41 +7 +7 +7 query I rowsort label-1800 SELECT - CAST ( SUM ( ALL col0 ) AS INTEGER ) AS col0 FROM tab1 @@ -11148,8 +11262,15 @@ SELECT ALL MIN ( - ( - col0 ) ) col0 FROM tab1 AS cor0 # Datafusion - Expected - 67 # Datafusion - Expected - 78 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-78\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 78 ) AS col2, + col1 AS col2 FROM tab2 AS cor0 +---- +51 +67 +77 +78 +78 +78 query I rowsort SELECT ALL - 23 col0 FROM tab1 AS cor0 @@ -11955,8 +12076,15 @@ SELECT - ( - + COUNT ( DISTINCT - col2 ) ) * 74 * 92 * + - 61 - COUNT ( * ) FROM # Datafusion - Expected - -40 # Datafusion - Expected - -8852308 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* Int64\(34\) \* \(\- tab2\.col1\) \* tab2\.col2 AS col2" at position 0 and "tab2\.col2 \+ tab2\.col2 \* Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + 34 * - col1 * col2 AS col2, col2 + col2 * + - 2 AS col2 FROM tab2 +---- +-2033982 +-23 +-40 +-58 +-8063440 +-8852308 query I rowsort SELECT - ( + 13 ) col2 FROM tab0 @@ -12424,8 +12552,11 @@ SELECT col2, col0 AS col1 FROM tab2 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 5472 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(Int64\(26\)\) AS col1" at position 0 and "Int64\(96\) \* Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT + AVG ( + 26 ) AS col1, 96 * + 57 AS col1 FROM tab2 WHERE NOT + + col2 IS NOT NULL +---- +5472 +NULL query I rowsort SELECT - 77 AS col2 FROM tab2 WHERE NOT col0 IS NOT NULL @@ -13112,8 +13243,15 @@ SELECT - + col2 * - col1 + col0 + - col1 + - col2 FROM tab1 AS cor0 # Datafusion - Expected - 20 # Datafusion - Expected - -45 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col2" at position 0 and "tab0\.col2 \+ tab0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 45 AS col2, col2 + + + col2 AS col2 FROM tab0 +---- +-45 +-45 +-45 +198 +20 +94 query II rowsort SELECT ALL - col1 * + col1 + col2 + + 29 AS col0, 84 FROM tab2 @@ -14769,8 +14907,11 @@ SELECT * FROM tab1 AS cor0 WHERE NOT ( - 74 ) IN ( + col0 * 61 / + + col2, col0, # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 +---- +9 +NULL query I rowsort label-2419 SELECT DISTINCT + ( - col0 ) / col0 FROM tab0 AS cor0 @@ -15504,8 +15645,15 @@ SELECT ALL + col2 col2, - 98 * col1 FROM tab0 # Datafusion - Expected - -5865 # Datafusion - Expected - 75 # Datafusion - Expected - -4414 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "\(\- tab2\.col1\) \* tab2\.col1 \+ tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col1, - col1 * ( col1 ) + + col0 AS col1 FROM tab2 +---- +-2555 +-4414 +-5865 +46 +64 +75 query I rowsort label-2534 SELECT + MAX ( ALL + 7 ) FROM tab0 cor0 @@ -15616,8 +15764,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - COUNT ( * ) AS col2, - 92 AS col2 FROM tab0 AS cor0 +---- +-3 +-92 query II rowsort SELECT DISTINCT - col1 + - col0 + + 45 AS col0, col2 AS col2 FROM tab0 cor0 @@ -15717,8 +15868,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 +---- +9 +9 query I rowsort label-2570 SELECT - - col0 - - 6 + - col2 * + col0 + + col0 * - + 44 AS col1 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + 10 / + col1 + - - ( - - col0 ) BETWEEN - + col1 * - 36 AND - 59 / - + col0 @@ -16383,8 +16537,15 @@ SELECT DISTINCT + col0 * col1 * - col2 FROM tab2 # Datafusion - Expected - 3807 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "tab0\.col2 \* tab0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, col2 * col1 AS col1 FROM tab0 +---- +10 +210 +3807 +47 +99 +99 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -17115,8 +17276,15 @@ SELECT + 83 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL # Datafusion - Expected - -27 # Datafusion - Expected - 18 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "Int64\(\-94\) \- \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 18 col1, - 94 - - col1 AS col1 FROM tab2 AS cor0 +---- +-17 +-27 +-43 +18 +18 +18 query I rowsort label-2806 SELECT - col1 * + CAST ( col1 AS INTEGER ) + 47 + + 60 AS col1 FROM tab0 AS cor0 @@ -17735,8 +17903,15 @@ SELECT ALL + 58 * + + 58 + + col0 FROM tab1 AS cor0 # Datafusion - Expected - 47 # Datafusion - Expected - -99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- cor0\.col2\)\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - - col2 ) AS col0, col2 AS col0 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +10 +47 +99 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 66 = 53 @@ -17849,8 +18024,15 @@ SELECT DISTINCT + + ( + + COUNT ( * ) ) AS col2 FROM tab1 cor0 # Datafusion - Expected - -3807 # Datafusion - Expected - -99 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col2\) \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col2 col0, - col2 * + ( col1 ) AS col0 FROM tab0 AS cor0 +---- +-10 +-210 +-3807 +-47 +-99 +-99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 @@ -18508,8 +18690,15 @@ SELECT 39 + + COUNT ( * ) col0 FROM tab1 # Datafusion - Expected - 4 # Datafusion - Expected - 6608 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \+ tab0\.col1 \* tab0\.col1 AS col0" at position 0 and "Int64\(58\) / Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 + + col1 * + col1 AS col0, 58 / + ( + 14 ) AS col0 FROM tab0 +---- +100 +4 +4 +4 +451 +6608 query I rowsort SELECT - 11 + 88 FROM tab2 @@ -19205,8 +19394,15 @@ SELECT + - 74 + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( + col2 - - + col1 ) # Datafusion - Expected - 99 # Datafusion - Expected - 870 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* tab0\.col2 \+ \(\- tab0\.col0\) \+ \(\- \(\- tab0\.col0\)\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 * + col2 + - col0 + - - col0 AS col0, + col2 AS col0 FROM tab0 +---- +10 +4089 +47 +8613 +870 +99 query I rowsort SELECT DISTINCT - 97 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL @@ -20223,8 +20419,15 @@ SELECT DISTINCT - ( - col1 ) * + col1 + - - 99 - - 90 FROM tab0 AS cor0 # Datafusion - Expected - -5 # Datafusion - Expected - -6188 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col2 AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * + + col2 AS col2, - ( col1 ) AS col2 FROM tab1 AS cor0 +---- +-14 +-47 +-4896 +-5 +-5015 +-6188 query III rowsort SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 92 * + col1 / - 68 <= col0 * - col0 + + 96 - col1 / - col2 @@ -20791,8 +20994,10 @@ SELECT DISTINCT col1 - + 17 / + col0 FROM tab0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 9db7bb9f03ff58b3300cc5360b26a009 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) \* cor0\.col2 \* Int64\(59\) AS col0" at position 1 and "\(\- cor0\.col1\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT CAST ( NULL AS INTEGER ) AS col1, - col1 * + col2 * 59 AS col0, - col1 AS col0 FROM tab2 AS cor0 +---- +9 values hashing to 3d7ac1edb30d95b47678618d3bbbbe3f query II rowsort SELECT + + col0, - col2 FROM tab2 AS cor0 @@ -21090,8 +21295,15 @@ SELECT + ( + ( + 58 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL # Datafusion - Expected - 0 # Datafusion - Expected - 77 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(42\) / cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col0, 42 / + ( + col1 ) AS col0 FROM tab2 AS cor0 +---- +0 +0 +0 +51 +67 +77 query I rowsort SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT + ( - col2 ) IS NULL @@ -21171,8 +21383,9 @@ SELECT DISTINCT * FROM tab0 WHERE + 3 + - col2 IS NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\)" at position 0 and "CAST\(NULL AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( CAST ( NULL AS INTEGER ) ), ( CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NOT + col0 * + + col0 NOT IN ( - - col1, col1 ) +---- query I rowsort SELECT ALL - + ( + 90 ) AS col0 FROM tab0 WHERE ( NOT 78 IS NULL ) @@ -22150,8 +22363,15 @@ SELECT + - CAST ( + ( 4 ) AS INTEGER ) FROM tab1 WHERE col1 / + ( - col1 ) + 3 - # Datafusion - Expected - -1164 # Datafusion - Expected - 3 # Datafusion - Expected - -180 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) / tab0\.col0 AS col1" at position 0 and "\(\- tab0\.col0\) \* Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 55 ) / col0 AS col1, - col0 * 12 AS col1 FROM tab0 +---- +-1044 +-1164 +-180 +0 +0 +3 query III rowsort SELECT * FROM tab2 WHERE + col2 * 41 * - 40 * + col1 NOT IN ( - 19 ) @@ -22321,8 +22541,10 @@ SELECT DISTINCT - - col0 + 57 * 51 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 6e1b06dedf37b4aac865f802864899cb -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + col1 AS col0, + 59 AS col0, - - ( - - col0 ) + col1 + - + col2 * col1 AS col2 FROM tab0 cor0 +---- +9 values hashing to 5613c47f92b0c381981ce8e5e2458206 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 ) <> - 19 @@ -22844,8 +23066,15 @@ SELECT - 86 + + 18 col0 FROM tab0 AS cor0 # Datafusion - Expected - 77 # Datafusion - Expected - 62176 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) \* \(\- cor0\.col1\) \* Int64\(16\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 * - + col1 * + + 16 AS col2, col1 AS col2 FROM tab2 AS cor0 +---- +18768 +49280 +51 +62176 +67 +77 query I rowsort label-3740 SELECT + 53 * COUNT ( * ) + + - CAST ( NULL AS INTEGER ) FROM tab0 cor0 @@ -23152,8 +23381,15 @@ SELECT DISTINCT - col2 * col0 + col1 * - col1, 19 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 59 # Datafusion - Expected - 9996 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) \* cor0\.col0 \* cor0\.col1 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 * col0 * + col1 col0, col2 AS col0 FROM tab1 AS cor0 +---- +201019 +2125 +59 +68 +96 +9996 query I rowsort label-3787 SELECT CAST ( NULL AS INTEGER ) * - 8 AS col1 FROM tab2 @@ -23890,8 +24126,15 @@ SELECT MIN ( 68 ) AS col1 FROM tab1 # Datafusion - Expected - 87 # 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 "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 17 AS col2, col0 AS col2 FROM tab0 +---- +15 +17 +17 +17 +87 +97 query III rowsort SELECT * FROM tab2 WHERE + col0 * - - col1 * + 4 - - col0 * - col0 > NULL @@ -24210,8 +24453,15 @@ SELECT - 98 / 51 AS col2 FROM tab0 cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 42 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 42 AS col2, col0 AS col2 FROM tab1 AS cor0 +---- +42 +42 +42 +51 +85 +91 query III rowsort SELECT * FROM tab2 cor0 WHERE NOT ( - 14 IS NOT NULL ) @@ -24797,8 +25047,15 @@ SELECT + col0 * - 3 FROM tab2 # Datafusion - Expected - -3 # Datafusion - Expected - NULL # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / tab1\.col2 AS col0" at position 0 and "\(\- tab1\.col2\) \* tab1\.col1 / tab1\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) / + col2 AS col0, - col2 * col1 / col0 col0 FROM tab1 +---- +-26 +-3 +-35 +NULL +NULL +NULL query I rowsort SELECT col0 FROM tab1 WHERE NOT - ( + + 30 ) * col2 BETWEEN NULL AND - col2 @@ -25942,8 +26199,9 @@ SELECT DISTINCT - COUNT ( * ) AS col2, - AVG ( DISTINCT + CAST ( NULL AS INTEGER NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* \(\- cor0\.col0\) AS col0" at position 0 and "Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * - col0 col0, - 91 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 9 + + col2 AND + col2 +---- query I rowsort SELECT DISTINCT col1 * + 57 + - 92 FROM tab0 @@ -26127,8 +26385,15 @@ SELECT 55 * - + 65, + 63 / - + col1 AS col1 FROM tab2 AS cor0 # Datafusion - Expected - 40 # Datafusion - Expected - -24 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) / \(\- Int64\(7\)\) \- Int64\(30\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 / - + 7 - + 30 AS col0, col2 col0 FROM tab2 AS cor0 +---- +-20 +-21 +-24 +23 +40 +58 query I rowsort label-4280 SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT col1 / + 42 + col2 > NULL @@ -26493,8 +26758,15 @@ SELECT - 94 * col1 col2 FROM tab1 # Datafusion - Expected - 47 # Datafusion - Expected - -99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* \(\- tab0\.col1\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 * - col1 AS col0, col2 col0 FROM tab0 +---- +-210 +-3807 +-99 +10 +47 +99 query I rowsort SELECT - col0 FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN + col2 AND - col0 @@ -26832,8 +27104,15 @@ SELECT DISTINCT + col1 col2, - 1 / - 19 FROM tab0 AS cor0 # Datafusion - Expected - 2209 # Datafusion - Expected - 99 # Datafusion - Expected - 9801 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 \* \(\- \(\- cor0\.col2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, col2 * - - col2 AS col1 FROM tab0 AS cor0 +---- +10 +100 +2209 +47 +9801 +99 query I rowsort SELECT DISTINCT + - 13 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 @@ -27056,8 +27335,15 @@ SELECT + 90 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) # Datafusion - Expected - 47 # Datafusion - Expected - -51 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(51\)\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 51 col2, col1 AS col2 FROM tab1 AS cor0 +---- +-51 +-51 +-51 +14 +47 +5 query II rowsort SELECT + col2 AS col2, + col1 * + 83 FROM tab2 AS cor0 @@ -27701,8 +27987,15 @@ SELECT * FROM tab1 WHERE - + col2 - - ( - col2 ) - col0 = ( - 42 ) # Datafusion - Expected - -173 # Datafusion - Expected - 65 # Datafusion - Expected - -173 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col1" at position 0 and "Int64\(\-87\) \+ Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 65 ) AS col1, - 87 + + - 86 AS col1 FROM tab1 AS cor0 +---- +-173 +-173 +-173 +65 +65 +65 query I rowsort SELECT DISTINCT 51 - + col2 * - 14 FROM tab1 AS cor0 @@ -27937,8 +28230,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ), + COUNT ( * ) FROM tab0 AS cor0 +---- +3 +3 query III rowsort SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + + col2 ) * + col1 * - col2 IS NOT NULL @@ -28218,8 +28514,15 @@ SELECT DISTINCT + 50 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= col2 # Datafusion - Expected - -74 # Datafusion - Expected - -5621 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- cor0\.col1\) \+ cor0\.col0 \* Int64\(\-62\) AS col0" at position 0 and "Int64\(\-74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 + + ( - col1 ) + col0 * - 62 AS col0, - 74 AS col0 FROM tab1 AS cor0 +---- +-3080 +-5216 +-5621 +-74 +-74 +-74 query I rowsort SELECT - 10 AS col1 FROM tab2 WHERE NULL NOT BETWEEN ( + col0 + 6 - - + col1 ) AND 14 @@ -29703,8 +30006,11 @@ SELECT * FROM tab2 AS cor0 WHERE NOT 3 + + + col0 IS NOT NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(49\) \* CAST\(NULL AS Int32\) \* \(\- Int64\(0\)\) \* \(\- Int64\(56\)\) \* count\(cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 AS col0, 49 * + CAST ( NULL AS INTEGER ) * - - 0 * - + 56 * + COUNT ( col0 ) col0 FROM tab0 AS cor0 +---- +37 +NULL query II rowsort label-4866 SELECT DISTINCT - COUNT ( * ) AS col2, 17 AS col0 FROM tab0 cor0 @@ -29970,8 +30276,15 @@ SELECT DISTINCT + col1 + - + col0 FROM tab0 # Datafusion - Expected - -66 # Datafusion - Expected - -96 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(\-67\) \+ cor0\.col2 / Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 col0, - 67 + + col2 / 42 AS col0 FROM tab1 AS cor0 +---- +-59 +-65 +-66 +-66 +-68 +-96 query I rowsort label-4910 SELECT - + MIN ( DISTINCT 77 ) FROM tab2 cor0 @@ -30899,8 +31212,15 @@ SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( NOT - ( col2 ) * 54 + - - 72 = NUL # Datafusion - Expected - 81 # Datafusion - Expected - -99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + ( - col2 ) AS col2, col1 AS col2 FROM tab0 AS cor0 +---- +-10 +-47 +-99 +1 +21 +81 query III rowsort SELECT DISTINCT * FROM tab2 cor0 WHERE NULL BETWEEN + col1 AND NULL @@ -31948,8 +32268,15 @@ SELECT - col1 FROM tab0 AS cor0 WHERE col2 = CAST ( NULL AS FLOAT8 ) # Datafusion - Expected - 86 # Datafusion - Expected - -75 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 col2, + 86 AS col2 FROM tab2 AS cor0 +---- +-46 +-64 +-75 +86 +86 +86 query I rowsort label-5234 SELECT - + COUNT ( * ) + - COUNT ( + 51 ) FROM tab0 AS cor0 @@ -32182,8 +32509,15 @@ SELECT DISTINCT SUM ( DISTINCT + 23 ) * + COUNT ( * ) + - 33 FROM tab0 # Datafusion - Expected - -47 # Datafusion - Expected - 20 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col2" at position 0 and "\(\- tab1\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 20 AS col2, - col1 col2 FROM tab1 +---- +-14 +-47 +-5 +20 +20 +20 query I rowsort SELECT ALL col1 + - 31 + 65 FROM tab1 @@ -32481,8 +32815,15 @@ SELECT ALL * FROM tab2 WHERE - col0 - + - 37 + - col1 + - col0 < NULL # Datafusion - Expected - 5 # Datafusion - Expected - 91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 / tab1\.col2 \* tab1\.col0 AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 / col2 * col0 AS col0, col1 col0 FROM tab1 WHERE NULL IS NULL +---- +14 +47 +5 +51 +85 +91 query I rowsort SELECT 42 * col1 + + - col1 - - 0 + + col0 FROM tab0 @@ -32547,8 +32888,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col2, + 16 * + - COUNT ( * ) col2 FROM tab2 AS cor0 +---- +-3 +-48 query I rowsort label-5332 SELECT COUNT ( * ) * SUM ( 82 ) col1 FROM tab2 AS cor0 @@ -33454,8 +33798,15 @@ SELECT DISTINCT - col2 + - ( + + ( - 28 ) ) AS col2 FROM tab0 # Datafusion - Expected - 27 # Datafusion - Expected - 97 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( col0 ) AS col2, 27 AS col2 FROM tab0 +---- +15 +27 +27 +27 +87 +97 query I rowsort SELECT ALL - 3 + + col0 FROM tab2 @@ -35575,8 +35926,11 @@ 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\(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\. +query II valuesort SELECT ALL - - COUNT ( * ) AS col1, - SUM ( - 89 ) + - ( 71 ) AS col1 FROM tab1 AS cor0 +---- +196 +3 query III rowsort label-5830 SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - - CAST ( NULL AS INTEGER ) AND 22 @@ -36211,8 +36565,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - COUNT ( * ) AS col0, + ( 47 ) AS col0 FROM tab1 AS cor0 +---- +3 +47 query I rowsort label-5940 SELECT 64 * + 76 + - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 @@ -36283,8 +36640,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) col1, ( - COUNT ( - ( - col0 ) ) ) AS col1 FROM tab1 AS cor0 +---- +-3 +-3 query I rowsort SELECT + 19 - - col1 FROM tab0 @@ -36485,8 +36845,15 @@ SELECT - SUM ( - 27 ) AS col2 FROM tab2 # Datafusion - Expected - 91 # Datafusion - Expected - -932 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* Int64\(\-18\) \- \(\- \(\- tab1\.col1\)\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 * - 18 - - - col1 AS col2, col0 AS col2 FROM tab1 +---- +-1535 +-1685 +-932 +51 +85 +91 query I rowsort SELECT ALL + col2 + 98 FROM tab2 @@ -38183,8 +38550,11 @@ SELECT DISTINCT + 69 / + SUM ( - col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT 53 I # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(max\(cor0\.col2\) AS Int32\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) + + + CAST ( + MAX ( + col2 ) AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 +---- +61 +NULL query III rowsort SELECT * FROM tab0 AS cor0 WHERE col1 < - ( + col2 ) @@ -39186,8 +39556,12 @@ SELECT col1 / - 65 AS col1 FROM tab0 # Datafusion - Expected - 88 # Datafusion - Expected - 29 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 88 col1, 29 col0, + 27 AS col1 FROM tab1 +---- +27 +29 +88 query II rowsort SELECT ALL 77, - 9 AS col2 FROM tab0 @@ -39281,8 +39655,15 @@ SELECT 30 + + 48 FROM tab0 # Datafusion - Expected - -873 # Datafusion - Expected - -157 # Datafusion - Expected - -855 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \+ \(\- tab2\.col2\) AS col2" at position 0 and "tab2\.col2 \- Int64\(83\) \* Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + - 99 ) + - col2 AS col2, + col2 - 83 * 11 col2 FROM tab2 +---- +-122 +-139 +-157 +-855 +-873 +-890 query I rowsort SELECT - col1 + + + col1 AS col2 FROM tab2 @@ -39439,8 +39820,11 @@ SELECT + MAX ( ALL + col0 ) AS col1 FROM tab0 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + COUNT ( * ) AS col1, 49 AS col1 FROM tab0 AS cor0 +---- +3 +49 query I rowsort SELECT ALL + col0 + 97 + col2 FROM tab1 @@ -39781,8 +40165,15 @@ SELECT DISTINCT 50 + - 93 FROM tab2 # Datafusion - Expected - -97 # Datafusion - Expected - -96 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col2" at position 0 and "Int64\(\-97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + col2 AS col2, - 97 AS col2 FROM tab1 AS cor0 +---- +-59 +-68 +-96 +-97 +-97 +-97 query I rowsort SELECT - col1 * - - col2 col2 FROM tab2 AS cor0 @@ -40038,8 +40429,15 @@ SELECT - col2 + + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL # Datafusion - Expected - 33 # Datafusion - Expected - 47 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "\(\- cor0\.col1\) \+ Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 47 AS col0, - col1 + + 47 AS col0 FROM tab1 AS cor0 +---- +0 +33 +42 +47 +47 +47 query I rowsort SELECT - col1 * - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = + 27 @@ -40307,8 +40705,11 @@ SELECT - MIN ( + col2 ) AS col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 940 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* \(\- Int64\(\-94\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 10 * - - 94 AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0 +---- +3 +940 query III rowsort label-6623 SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 34 IN ( - + 85 + + + CAST ( + col2 AS INTEGER ), + col2 ) @@ -40386,8 +40787,15 @@ SELECT - col1 * + 13 FROM tab0 # Datafusion - Expected - -64 # Datafusion - Expected - 21 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col0" at position 0 and "\(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 21 AS col0, - col0 AS col0 FROM tab2 +---- +-46 +-64 +-75 +21 +21 +21 query I rowsort label-6635 SELECT COUNT ( * ) * - 58 FROM tab1 @@ -42288,8 +42696,11 @@ SELECT DISTINCT + + ( - + COUNT ( * ) ) FROM tab2 AS cor0 WHERE + col2 BETWEEN + # Datafusion - Datafusion expected results: # Datafusion - Expected - -137 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \+ \(\- sum\(tab0\.col0\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 62 + - ( + + SUM ( + col0 ) ) AS col2, + COUNT ( * ) AS col2 FROM tab0 +---- +-137 +3 query I rowsort SELECT - + 26 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 @@ -42334,8 +42745,11 @@ SELECT * FROM tab0 AS cor0 WHERE col0 * - - col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(cor0\.col1\)\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MIN ( ALL + col1 ) col2, 55 AS col2 FROM tab2 AS cor0 +---- +-51 +55 query I rowsort SELECT ALL - 29 * - col2 * + - 30 FROM tab0 AS cor0 WHERE NULL IS NOT NULL @@ -42441,8 +42855,15 @@ SELECT ALL - 69 FROM tab0 AS cor0 WHERE NOT - col0 = - col0 * 79 + - col0 * + co # Datafusion - Expected - -21 # Datafusion - Expected - -81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col1, - col1 AS col1 FROM tab0 AS cor0 +---- +-1 +-1 +-21 +-21 +-81 +-81 query I rowsort SELECT DISTINCT + col0 * + 51 FROM tab0 @@ -43036,8 +43457,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 14 AS col1, 40 AS col1 FROM tab0 AS cor0 +---- +-14 +40 query I rowsort SELECT ALL - col1 + - 36 AS col2 FROM tab2 @@ -43110,8 +43534,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) AS col0, + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL +---- +-3 +0 query I rowsort label-7080 SELECT DISTINCT + + col2 * + CAST ( NULL AS INTEGER ) / + + ( - 85 ) / + + col0 + col2 * - col0 col2 FROM tab2 AS cor0 @@ -43129,8 +43556,15 @@ SELECT ALL * FROM tab1 AS cor0 WHERE - 92 >= NULL # Datafusion - Expected - 47 # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col2, col2 FROM tab0 AS cor0 +---- +10 +10 +47 +47 +99 +99 query I rowsort label-7083 SELECT CAST ( NULL AS INTEGER ) + - col2 + + col1 FROM tab0 @@ -43313,8 +43747,15 @@ SELECT - COUNT ( * ) * 59 FROM tab2 AS cor0 # Datafusion - Expected - 85 # Datafusion - Expected - 8281 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col0 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * col0 AS col1, col0 AS col1 FROM tab1 AS cor0 +---- +2601 +51 +7225 +8281 +85 +91 query I rowsort label-7113 SELECT + ( + + CAST ( col1 AS INTEGER ) ) col1 FROM tab0 AS cor0 @@ -45138,8 +45579,15 @@ SELECT ALL * FROM tab0 WHERE NOT + 96 IS NULL # Datafusion - Expected - 3080 # Datafusion - Expected - 4872 # Datafusion - Expected - 3886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* Int64\(84\) AS col2" at position 0 and "cor0\.col2 \* cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 * 84 AS col2, col2 * col1 AS col2 FROM tab2 AS cor0 +---- +1173 +1932 +3080 +3360 +3886 +4872 query I rowsort label-7408 SELECT ALL + 57 * + COUNT ( * ) FROM tab1 AS cor0 @@ -45937,8 +46385,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(81\) / Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 60 AS col1, - COUNT ( * ) + + 81 / + + 33 AS col1 FROM tab2 cor0 WHERE NOT CAST ( - - 52 AS INTEGER ) IS NOT NULL +---- +2 +60 query II rowsort label-7535 SELECT ALL CAST ( NULL AS INTEGER ), col2 FROM tab1 AS cor0 @@ -46040,8 +46491,15 @@ SELECT SUM ( + 11 ) FROM tab2 AS cor0 # Datafusion - Expected - 87 # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, + col0 col0 FROM tab0 AS cor0 +---- +15 +15 +87 +87 +97 +97 query I rowsort SELECT DISTINCT + + col1 - + col1 AS col0 FROM tab2 AS cor0 @@ -46560,8 +47018,15 @@ SELECT + col2 AS col1, 31 AS col2 FROM tab0 # Datafusion - Expected - 81 # Datafusion - Expected - 99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col0, col1 AS col0 FROM tab0 AS cor0 +---- +1 +10 +21 +47 +81 +99 query I rowsort label-7636 SELECT ALL SUM ( - col2 ) FROM tab0 cor0 @@ -47252,14 +47717,19 @@ SELECT ALL - - 43 * + col0 * - + col1 FROM tab2 cor0 WHERE + col0 > + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 539cd4767fee4cd57a66b89988d8222d -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 89 AS col0, col0 * - col0 * + 63 AS col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 +---- +9 values hashing to bac63f7afb7a63acf195939a371e0ee8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, + 62 AS col0 FROM tab2 AS cor0 +---- +3 +62 query I rowsort label-7755 SELECT ALL - + col1 * ( + - CAST ( NULL AS INTEGER ) ) + - col2 AS col0 FROM tab0 AS cor0 @@ -48452,8 +48922,15 @@ SELECT * FROM tab0 WHERE NOT 17 + + - col2 IS NOT NULL # Datafusion - Expected - 85 # Datafusion - Expected - 72 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 72 AS col2, col0 AS col2 FROM tab1 +---- +51 +72 +72 +72 +85 +91 query I rowsort SELECT DISTINCT 88 + - - 17 AS col2 FROM tab1 @@ -49110,8 +49587,15 @@ SELECT - 87 * - - MAX ( + ( - 0 ) ) / SUM ( + col2 ) FROM tab1 # Datafusion - Expected - 77 # Datafusion - Expected - -3837 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* \(\- cor0\.col0\) \- Int64\(\-5\) \- \(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 52 * - col0 - - 5 - + - col2 AS col0, col1 col0 FROM tab2 AS cor0 +---- +-2364 +-3283 +-3837 +51 +67 +77 query I rowsort SELECT ALL col1 * - col2 col2 FROM tab2 cor0 @@ -49659,8 +50143,9 @@ SELECT + MIN ( DISTINCT + col2 ) + 32 AS col2 FROM tab0 AS cor0 42 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col0, + col0 AS col0 FROM tab1 WHERE NOT col0 >= NULL +---- query I rowsort SELECT DISTINCT + col0 + + 22 FROM tab2 @@ -49958,8 +50443,15 @@ SELECT + + 29 AS col0 FROM tab1 cor0 # Datafusion - Expected - 21 # Datafusion - Expected - -97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 col2, col1 AS col2 FROM tab0 +---- +-15 +-87 +-97 +1 +21 +81 query I rowsort label-8200 SELECT ALL - SUM ( col2 ) FROM tab0 WHERE NOT col0 - col1 + col2 - + + ( - col1 ) IS NULL @@ -50032,8 +50524,15 @@ SELECT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) BETWEEN - col1 * - col1 / - # Datafusion - Expected - 27 # Datafusion - Expected - NULL # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* tab2\.col2 AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) * + + col2 AS col0, 27 AS col0 FROM tab2 +---- +27 +27 +27 +NULL +NULL +NULL query I rowsort SELECT ALL col1 + 8 * + - col2 FROM tab0 @@ -50079,8 +50578,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(98\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(tab1\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MAX ( DISTINCT + ( 98 ) ) + + + COUNT ( * ) AS col1, COUNT ( col2 ) AS col1 FROM tab1 WHERE ( NOT NULL BETWEEN col1 + 8 AND NULL ) +---- +0 +NULL query III rowsort SELECT * FROM tab2 WHERE ( col1 NOT BETWEEN NULL AND + 70 ) @@ -50541,8 +51043,11 @@ SELECT * FROM tab1 WHERE ( col2 ) NOT IN ( col2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) 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 II valuesort SELECT ALL + ( 71 ) AS col2, + MIN ( DISTINCT - col2 ) col2 FROM tab0 +---- +-99 +71 query I rowsort label-8300 SELECT DISTINCT COUNT ( - + col2 ) + - 89 FROM tab0 @@ -51745,8 +52250,15 @@ SELECT ALL - 58 * + + col0 * + col1 AS col0 FROM tab1 AS cor0 WHERE ( NOT - 68 + # Datafusion - Expected - -47 # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / Int64\(27\) \* CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 / + 27 * + CAST ( NULL AS INTEGER ) col2, - col2 AS col2 FROM tab0 cor0 +---- +-10 +-47 +-99 +NULL +NULL +NULL query I rowsort label-8495 SELECT DISTINCT + col0 / 47 AS col1 FROM tab0 AS cor0 @@ -52774,8 +53286,15 @@ SELECT DISTINCT + + 72 * + col0 + col0 FROM tab1 AS cor0 WHERE col1 * - 35 / + c # Datafusion - Expected - 2 # Datafusion - Expected - 7679 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* cor0\.col0 \+ Int64\(35\) AS col2" at position 0 and "\(\- cor0\.col2\) / Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 84 * + col0 + 35 AS col2, - col2 / - 27 col2 FROM tab1 AS cor0 +---- +2 +2 +3 +4319 +7175 +7679 query I rowsort SELECT - - col1 * - - 8 AS col1 FROM tab0 cor0 @@ -53242,8 +53761,13 @@ SELECT ALL - 79 * col2 FROM tab1 # Datafusion - Expected - -1 # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) / Int64\(59\) AS col2" at position 0 and "Int64\(\-64\) / tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 18 / + 59 AS col2, - 64 / col1 AS col2 FROM tab2 +---- +-1 +0 +0 +0 query I rowsort label-8742 SELECT col2 / + - 78 AS col2 FROM tab1 @@ -53720,8 +54244,15 @@ SELECT - 50 - 39 + + col2 AS col1 FROM tab0 AS cor0 # Datafusion - Expected - -361250 # Datafusion - Expected - -79 # Datafusion - Expected - -386750 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col0" at position 0 and "CAST\(Int64\(85\) AS Int32\) \* tab1\.col0 \* Int64\(\-50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 79 AS col0, + CAST ( + 85 AS INTEGER ) * col0 * - 50 AS col0 FROM tab1 +---- +-216750 +-361250 +-386750 +-79 +-79 +-79 query I rowsort label-8817 SELECT 97 + - ( - COUNT ( * ) ) FROM tab1 @@ -53775,8 +54306,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ), + COUNT ( * ) FROM tab1 WHERE NOT NULL >= + - 85 / - col1 +---- +0 +0 query I rowsort SELECT DISTINCT + - 15 * + col0 + - col2 AS col0 FROM tab0 WHERE NOT NULL <> col2 @@ -53834,8 +54368,11 @@ SELECT DISTINCT col1 + - - 45 + + col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 +---- +9 +9 query I rowsort label-8836 SELECT DISTINCT + - MAX ( ( + col1 ) ) + 42 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT ( + - col0 ) IS NOT NULL ) @@ -54647,8 +55184,15 @@ SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * + 56 NOT BETWEEN + col0 A # Datafusion - Expected - 31 # Datafusion - Expected - 99 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col0, 31 AS col0 FROM tab0 cor0 +---- +10 +31 +31 +31 +47 +99 query IIIIII rowsort SELECT * FROM tab2 AS cor0 JOIN tab0 cor1 ON NOT 10 IS NOT NULL @@ -55802,8 +56346,11 @@ SELECT col2 AS col1 FROM tab2 AS cor0 WHERE - col1 + - col0 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT DISTINCT - 17 AS col0, + ( 35 ) col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL +---- +-17 +35 query I rowsort label-9158 SELECT ALL - col1 / - col0 AS col2 FROM tab2 cor0 @@ -56264,8 +56811,11 @@ SELECT ALL + 40 - + col0 + + + col0 FROM tab1 AS cor0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 4485 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(55\)\) \- \(\- Int64\(31\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(69\) \* Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 55 - - + 31 - COUNT ( * ) AS col1, 69 * + 65 AS col1 FROM tab1 cor0 +---- +-27 +4485 query III rowsort SELECT * FROM tab0 AS cor0 WHERE + 17 * + 88 IS NULL @@ -56394,8 +56944,15 @@ SELECT + CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 + c # Datafusion - Expected - 160 # Datafusion - Expected - -1 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(61\) \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 / + - col0 AS col1, 61 + + col2 AS col1 FROM tab0 AS cor0 +---- +-1 +-1 +-1 +108 +160 +71 query I rowsort SELECT ALL - 64 * + 81 FROM tab0 AS cor0 @@ -57175,8 +57732,15 @@ SELECT DISTINCT - - col0 FROM tab0 WHERE NOT ( NOT col2 IS NULL ) # Datafusion - Expected - 67 # Datafusion - Expected - 90 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 90 AS col0, + col1 AS col0 FROM tab2 AS cor0 +---- +51 +67 +77 +90 +90 +90 query III rowsort SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= + col0 @@ -57615,8 +58179,15 @@ SELECT DISTINCT - col0 AS col1 FROM tab2 WHERE - 19 + 39 IS NOT NULL AND ( NULL # Datafusion - Expected - 47 # Datafusion - Expected - -66 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 66 AS col0, + col2 AS col0 FROM tab0 +---- +-66 +-66 +-66 +10 +47 +99 query II rowsort SELECT ALL col0 * + - 58 * + + col1, 5 AS col0 FROM tab1 @@ -58062,8 +58633,11 @@ SELECT DISTINCT + - 8 AS col1 FROM tab2 WHERE NOT 89 / + col0 NOT BETWEEN + col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col2" at position 0 and "max\(tab2\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - CAST ( - COUNT ( * ) AS INTEGER ) AS col2, + MAX ( col0 ) AS col2 FROM tab2 WHERE NOT NULL < + - col0 * - 42 +---- +0 +NULL query I rowsort SELECT DISTINCT - - col1 FROM tab2 AS cor0 WHERE col1 * + - col0 <= - col1 + + col0 @@ -59829,8 +60403,15 @@ SELECT - SUM ( col0 ) FROM tab1 cor0 # Datafusion - Expected - 40 # Datafusion - Expected - 58 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col2 AS col2, col2 FROM tab2 AS cor0 +---- +23 +23 +40 +40 +58 +58 query I rowsort SELECT DISTINCT + + ( 1 ) FROM tab0 AS cor0 @@ -60101,8 +60682,15 @@ SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 35 + - col0 * + - 17 ) # Datafusion - Expected - 67 # Datafusion - Expected - 49 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 49 AS col2, + col1 AS col2 FROM tab2 +---- +49 +49 +49 +51 +67 +77 query I rowsort label-9874 SELECT + col2 / + + 38 FROM tab2 diff --git a/data/sqlite/random/expr/slt_good_0.slt b/data/sqlite/random/expr/slt_good_0.slt index 894108f..0489076 100644 --- a/data/sqlite/random/expr/slt_good_0.slt +++ b/data/sqlite/random/expr/slt_good_0.slt @@ -534,8 +534,11 @@ SELECT NULLIF ( - MAX ( ALL - 22 ), - 52 ) AS col1, 75 AS col0 # 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 "Int64\(87\) AS col2" at position 0 and "\(\- Int64\(\-25\)\) \+ Int64\(\-45\) \+ Int64\(3\) / \(\- \(\- sum\(DISTINCT Int64\(3\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 87 AS col2, - ( - 25 ) + + - 45 + 3 / - - SUM ( DISTINCT + + 3 ) AS col2 +---- +-19 +87 query I rowsort SELECT - 85 * - ( 2 ) AS col0 @@ -556,8 +559,11 @@ SELECT 17 AS col1, COUNT ( * ) * - - 7 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 AS col0, 13 AS col0 +---- +13 +52 query I rowsort label-100 SELECT ALL + 83 + - 13 + + + CAST ( + 92 AS INTEGER ) * - 56 + + CAST ( SUM ( + 36 ) AS INTEGER ) * 35 AS col0 @@ -732,8 +738,11 @@ SELECT 51 - - 96, 23 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \* CAST\(CAST\(NULL AS Int32\) AS Int32\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 24 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, + 54 col2 +---- +54 +NULL query I rowsort label-133 SELECT 57 * - MIN ( ALL + + 9 ) @@ -910,8 +919,11 @@ 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\(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\. +query II valuesort SELECT + 1 / CASE + + 26 WHEN - 12 * + 96 THEN + - 18 * + COUNT ( * ) + + 15 END AS col1, 58 * + 6 col1 +---- +348 +NULL query I rowsort SELECT ALL 85 + + 22 col1 @@ -1039,8 +1051,11 @@ SELECT ( 90 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 94 ) AS col0, + COUNT ( * ) col0 +---- +1 +94 query I rowsort label-193 SELECT ALL 26 / + 37 + 75 AS col0 @@ -1857,8 +1872,11 @@ SELECT 85 + + 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \- CAST\(NULL AS Int32\) \- Int64\(\-86\) \* Int64\(12\) \+ Int64\(\-96\) \* coalesce\(Int64\(88\), Int64\(23\)\) \* coalesce\(Int64\(\-61\), \(\- Int64\(32\)\) \+ Int64\(57\), CAST\(\(\- coalesce\(Int64\(\-77\), Int64\(32\)\)\) AS Int32\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1 +NULL query I rowsort label-349 SELECT ALL - 61 + + - SUM ( + + 75 ) * + - 51 * + 69 AS col2 @@ -2414,8 +2432,11 @@ SELECT - 37 + - 23 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- count\(Int64\(47\)\)\) / Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 19 * + CAST ( NULL AS INTEGER ) AS col1, - COUNT ( ALL + 47 ) / + + 61 AS col1 +---- +0 +NULL query I rowsort label-456 SELECT ALL + MAX ( ALL + 97 ) AS col0 @@ -2532,8 +2553,12 @@ NULL # Datafusion - Expected - 2 # Datafusion - Expected - 92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CASE \(\- \(\- max\(\(\- \(\- Int64\(45\)\)\)\)\)\) WHEN Int64\(\-14\) \* \(\- CASE \(\- Int64\(12\)\) WHEN \(\- coalesce\(Int64\(\-33\), Int64\(62\), Int64\(\-72\) \+ Int64\(76\)\)\) \* Int64\(41\) THEN \(\- \(\- sum\(\(\- Int64\(56\)\)\)\)\) \* Int64\(89\) END\) \* Int64\(\-15\) \* Int64\(74\) THEN Int64\(\-12\) \* Int64\(69\) \- CAST\(Int64\(16\) AS Int32\) WHEN Int64\(83\) THEN NULL ELSE NULL END \* Int64\(53\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +2 +92 +NULL query I rowsort label-478 SELECT - 45 * 24 + 57 / + CAST ( NULL AS INTEGER ) @@ -2678,8 +2703,11 @@ SELECT ALL 97 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1168 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* Int64\(73\) AS col2" at position 0 and "Int64\(82\) \+ Int64\(75\) \+ Int64\(\-87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 16 * + 73 AS col2, 82 + + 75 + - 87 AS col2 +---- +1168 +70 query I rowsort label-506 SELECT ALL + 62 + - 2 * + CASE 6 WHEN - 87 THEN - 75 END * - - 46 + - COUNT ( - - 78 ) @@ -2898,8 +2926,11 @@ SELECT 14 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 "\(\- \(\- \(\- max\(Int64\(\-68\)\)\)\)\) / Int64\(35\) AS col2" at position 0 and "Int64\(\-62\) \* \(\- count\(Int64\(\-59\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - ( - MAX ( ALL - 68 ) ) ) / 35 col2, - 62 * - + COUNT ( + - 59 ) AS col2 +---- +1 +62 query I rowsort SELECT ALL + 58 * + 64 AS col2 @@ -3418,8 +3449,11 @@ SELECT COALESCE ( + 66, - 90 * - 23, + + 1 ) + 88 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 1508 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "Int64\(30\) \+ Int64\(24\) \* \(\- Int64\(\-60\)\) \+ Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( 16 ) AS col1, + 30 + + 24 * - - 60 + + + 38 AS col1 +---- +1508 +16 query I rowsort label-648 SELECT ( - COUNT ( * ) ) * + + 22 * - 96 + 98 col0 @@ -3542,8 +3576,11 @@ SELECT ALL ( - + COUNT ( * ) ) + + - 76 + + 35 * 92 + + - 32 + - 2 - + 59 * + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 AS col0, + 64 AS col0 +---- +54 +64 query I rowsort label-672 SELECT - CASE ( + CAST ( - + 9 AS INTEGER ) ) WHEN + - 21 THEN + 80 END @@ -4073,8 +4110,11 @@ SELECT ALL - 86 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 col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 29 AS col1, 29 col1 +---- +-29 +29 query I rowsort label-775 SELECT + 54 / + 99 + + 86 @@ -4378,8 +4418,11 @@ SELECT ALL - COUNT ( * ) + - COUNT ( ALL - 4 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 160 # Datafusion - Expected - -2950 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \+ Int64\(64\) AS col0" at position 0 and "Int64\(\-59\) \* Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 96 + 64 AS col0, - 59 * + 50 AS col0 +---- +-2950 +160 query I rowsort label-833 SELECT DISTINCT + + 21 + SUM ( ALL - CASE + 4 WHEN 26 THEN + + 23 - 58 - - 46 - - 56 - 88 END ) - - + 59 + - COUNT ( * ) * - 59 AS col0 @@ -4554,8 +4597,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(79\)\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 79 AS col0, 30 AS col0 +---- +-79 +30 query I rowsort label-867 SELECT ALL 50 + - 90 + + 84 + - 65 + COUNT ( * ) * + + ( - 32 ) + + 64 * 43 AS col1 @@ -4565,8 +4611,11 @@ 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\(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\. +query II valuesort SELECT - COALESCE ( - + 19, - 53 ) + + 47 * - COUNT ( * ) + - 55 AS col1, 7 - + - 32 - SUM ( ALL - 28 ) + - 42 AS col1 +---- +-83 +25 query II rowsort label-869 SELECT - - COUNT ( * ) AS col0, 78 * COUNT ( * ) + 26 @@ -5606,8 +5655,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -6389 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) \* Int64\(69\) \+ Int64\(96\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 94 * 69 + + + 96 + + COUNT ( * ) AS col2, 59 AS col2 +---- +-6389 +59 query I rowsort SELECT - - 47 * - 79 @@ -5934,8 +5986,11 @@ SELECT DISTINCT + + 54 + - 64 / + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- Int64\(\-57\)\)\) \+ \(\- Int64\(\-35\)\) / Int64\(\-22\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + SUM ( - - 57 ) + - - 35 / - 22 AS col0, + COUNT ( * ) AS col0 +---- +1 +56 query I rowsort label-1131 SELECT COUNT ( * ) + - + COUNT ( * ) AS col2 @@ -5960,8 +6015,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(28\) \* Int64\(0\) \- Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, 28 * + + 0 - 39 col0 +---- +-39 +1 query I rowsort label-1136 SELECT DISTINCT - 58 + + 2 + - COALESCE ( + ( + - ( - 23 ) ), 63 * - - COUNT ( * ) + - - 79 * + - 10, - - 19 * - ( - - 71 ) ) * + COUNT ( + + 15 ) AS col2 @@ -6080,8 +6138,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 81 * 6 AS col2, 72 / - 55 - + 91 * + COUNT ( * ) + - 72 AS col2 +---- +-164 +-486 query I rowsort label-1159 SELECT 83 * + 77 * - 83 + + 4 + - 91 + - + 50 + + 69 * + COUNT ( * ) AS col0 @@ -7430,8 +7491,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 32 + + + 54 AS col1, - COUNT ( * ) AS col1 +---- +-1 +86 query I rowsort SELECT ALL - - 38 AS col0 @@ -7451,8 +7515,11 @@ SELECT DISTINCT - + 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 100 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(19\) \+ \(\- count\(Int64\(62\)\)\) / \(\- Int64\(34\) \* Int64\(90\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 + COUNT ( * ) AS col2, 19 + - + COUNT ( 62 ) / - ( 34 * 90 ) col2 +---- +100 +19 query II rowsort SELECT 86 * - 79 AS col0, - 51 @@ -7658,8 +7725,11 @@ SELECT + - 47 - 25 * + 41 + - 41 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "\(\- nullif\(Int64\(\-67\), Int64\(87\) \- Int64\(50\)\)\) \+ Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 62 AS col1, - NULLIF ( - 67, 87 - 50 ) + 9 AS col1 +---- +62 +76 query I rowsort SELECT ALL + + ( + + 47 ) AS col2 @@ -7973,8 +8043,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(73\) \* \(\- Int64\(\-98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 61 * + 15 AS col0, COUNT ( * ) + 73 * - - 98 AS col0 +---- +-915 +7155 query I rowsort SELECT 96 + - + 82 @@ -8050,8 +8123,11 @@ SELECT MIN ( - 50 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(67\)\) AS col0" at position 0 and "Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + ( + 67 ) AS col0, - 27 AS col0 +---- +-27 +-67 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -8164,8 +8240,11 @@ SELECT ALL - 47 - + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col0" at position 0 and "Int64\(\-98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 16 AS col0, - 98 AS col0 +---- +-16 +-98 query I rowsort SELECT ALL + 75 * + - 85 @@ -9050,8 +9129,11 @@ SELECT ALL 29 * + + COALESCE ( + 53, + + 2, + + 51 * - - 19 * + 83 + - 80 + COUN # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-24\)\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - 24 ) AS col1, 51 AS col1 +---- +24 +51 query I rowsort SELECT + + 43 col1 @@ -9236,8 +9318,11 @@ 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\(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\. +query II valuesort SELECT + NULLIF ( + - COUNT ( * ), - 18 / 62 ) AS col1, 20 AS col1 +---- +-1 +20 query I rowsort label-1764 SELECT 99 * COUNT ( * ) * - 16 + + SUM ( + 96 ) @@ -9634,8 +9719,11 @@ SELECT 36 * - MAX ( - + 29 ) + 67 + - 50 + 92 / + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 129 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-72\)\) \- \(\- Int64\(57\)\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 72 - ( - + 57 ) AS col2, 84 AS col2 +---- +129 +84 query I rowsort SELECT DISTINCT - 46 AS col2 @@ -9689,8 +9777,11 @@ SELECT + + 89 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - -6208 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col2" at position 0 and "Int64\(\-97\) \* \(\- Int64\(\-64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 33 AS col2, - 97 * - - 64 AS col2 +---- +-33 +-6208 query I rowsort label-1850 SELECT + - 39 * - 7 * + + 62 + MIN ( DISTINCT + 29 ) - - - 7 / + 48 col1 @@ -10147,8 +10238,12 @@ SELECT ALL - 5 + + COUNT ( * ) * + - 73 AS col1 # Datafusion - Expected - 52 # Datafusion - Expected - -5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) / Int64\(81\) \+ Int64\(52\) AS col0" at position 0 and "Int64\(\-5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 38 / + 81 + + 52 AS col0, - 5 AS col0, + - 5 +---- +-5 +-5 +52 query I rowsort label-1937 SELECT CASE - + 11 WHEN + CAST ( ( + 31 ) AS INTEGER ) / COUNT ( - + 66 ) THEN 51 * - + COUNT ( * ) ELSE - 52 END * - + COUNT ( * ) AS col1 @@ -10208,8 +10303,11 @@ SELECT - - 97 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(20\)\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 20 AS col2, 20 col2 +---- +-20 +20 query I rowsort SELECT ALL + 19 - 24 + - 52 @@ -10603,8 +10701,11 @@ SELECT ( - 49 ) 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\(\-43\) / Int64\(82\) AS col0" at position 0 and "Int64\(4\) \+ Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 43 / 82 AS col0, 4 + + 78 AS col0 +---- +0 +82 query I rowsort label-2025 SELECT - 36 / - 75 * - 94 + 5 + - CAST ( NULL AS INTEGER ) @@ -10802,8 +10903,11 @@ SELECT ALL + 77 + + - 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ Int64\(\-78\) AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 4 + - 78 col1, 90 AS col1 +---- +-74 +90 query II rowsort SELECT ALL - ( - 44 ), + 51 AS col2 @@ -10997,8 +11101,11 @@ SELECT 91 / + 61 + - NULLIF ( - 88, + - 95 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 91 AS col2, + 53 AS col2 +---- +-91 +53 query I rowsort SELECT 62 + - 47 col2 @@ -11223,8 +11330,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- coalesce\(Int64\(\-80\), Int64\(\-53\)\)\)\) AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - - COALESCE ( - 80, - 53 ) ) AS col2, 62 AS col2 +---- +-80 +62 query I rowsort SELECT - 28 * CASE - - 47 WHEN 67 * - 13 THEN NULL ELSE + ( + 4 ) END * + 73 @@ -11353,8 +11463,11 @@ SELECT - COUNT ( * ) - 57 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CASE Int64\(95\) WHEN Int64\(71\) \* Int64\(53\) \* coalesce\(\(\- Int64\(\-42\)\), Int64\(\-24\) / Int64\(85\), Int64\(5\)\) THEN \(\- coalesce\(Int64\(30\), Int64\(\-45\) \+ Int64\(\-82\), Int64\(19\)\)\) / \(\- Int64\(\-27\)\) \+ \(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(\-2\)\) WHEN \(\- Int64\(10\)\) \+ Int64\(41\) THEN Int64\(3\) \* Int64\(\-31\) \* Int64\(\-49\) ELSE NULL END\) AS Int32\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( - + CASE + 95 WHEN 71 * + 53 * + + COALESCE ( - - 42, - 24 / 85, + 5 ) THEN + - COALESCE ( + 30, + - 45 + - 82, + 19 ) / - - 27 + - CAST ( NULL AS INTEGER ) * - - 2 WHEN - + 10 + 41 THEN + 3 * + - 31 * - 49 ELSE NULL END AS INTEGER ) AS col1, + 15 AS col1 +---- +15 +NULL query I rowsort label-2169 SELECT DISTINCT ( CAST ( + 85 AS INTEGER ) ) @@ -12272,8 +12385,11 @@ NULL # 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 "\(\- Int64\(9\)\) / \(\- Int64\(\-84\)\) \* \(\- \(\- \(\- coalesce\(Int64\(47\), Int64\(\-68\), Int64\(70\)\)\)\)\) AS col0" at position 0 and "Int64\(54\) \+ Int64\(21\) \- Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 9 / - - 84 * - ( - - COALESCE ( + + 47, - 68, 70 ) ) AS col0, 54 + + 21 - + 32 AS col0 +---- +0 +43 query I rowsort SELECT ALL + + 47 + - - 72 AS col2 @@ -12554,8 +12670,11 @@ SELECT ALL 13 * + 61 + COUNT ( - + 92 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col0" at position 0 and "CAST\(Int64\(37\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 61 AS col0, CAST ( + 37 AS INTEGER ) AS col0 +---- +-61 +37 query I rowsort label-2400 SELECT COUNT ( DISTINCT - 6 ) AS col0 @@ -12565,8 +12684,11 @@ SELECT COUNT ( DISTINCT - 6 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 32 AS col0, 24 AS col0 +---- +-32 +24 query II rowsort SELECT + 39 AS col1, + 25 @@ -12845,8 +12967,11 @@ SELECT DISTINCT - 44 * 91 + - - 13 + 82 * + 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 215 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-15\)\) \+ \(\- Int64\(16\)\) AS col1" at position 0 and "Int64\(20\) \+ Int64\(86\) \+ Int64\(39\) \+ \(\- Int64\(\-70\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 15 + - + 16 AS col1, + 20 + 86 + 39 + - - 70 AS col1 +---- +-1 +215 query I rowsort SELECT ALL + 50 + + ( 93 ) @@ -13088,8 +13213,11 @@ 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\(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\. +query II valuesort SELECT 26 + + 58 AS col1, COUNT ( * ) * - ( - - COALESCE ( + 79, - - NULLIF ( - + COUNT ( * ), - 54 ), 57 ) ) col1 +---- +-79 +84 query I rowsort SELECT 32 * 6 * - ( - + 77 ) AS col2 @@ -13312,8 +13440,11 @@ SELECT 86 / - 16 + - 64 * + 19 AS col1 # 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 "Int64\(34\) \+ \(\- count\(\(\- Int64\(18\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 95 AS col1, 34 + - COUNT ( - ( 18 ) ) AS col1 +---- +33 +95 query I rowsort label-2544 SELECT + MAX ( - 99 ) AS col1 @@ -14026,8 +14157,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - + 57 + - COUNT ( * ) + + 8 * - 46 col1, + 61 * + 79 + + CASE 36 WHEN 1 THEN NULL WHEN 97 THEN - - 26 END AS col1 +---- +-426 +NULL query I rowsort label-2679 SELECT ALL COUNT ( - 97 ) + + - 55 @@ -14214,8 +14348,11 @@ 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\(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\. +query IR valuesort SELECT 49 AS col0, SUM ( CAST ( NULL AS FLOAT8 ) ) / 92 * + + COUNT ( * ) * 54 + + AVG ( - 75 ) * - 51 AS col0 +---- +49 +NULL query I rowsort label-2715 SELECT + 7 + + CAST ( + + ( - + 93 ) AS INTEGER ) - - COUNT ( * ) col1 @@ -14235,8 +14372,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-42\) \* Int64\(13\) \+ \(\- CAST\(NULL AS Float64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - COUNT ( * ) AS col2, - 42 * + 13 + + - CAST ( NULL AS FLOAT8 ) AS col2 +---- +-1 +NULL query I rowsort SELECT 11 - + + 53 + - - 56 AS col2 @@ -14339,8 +14479,11 @@ SELECT ALL 17 * + 29 * + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 2880 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(60\), Int64\(\-23\), Int64\(43\)\)\) AS col2" at position 0 and "Int64\(48\) \* Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COALESCE ( + 60, + - 23, 43 ) AS col2, 48 * 60 AS col2 +---- +-60 +2880 query I rowsort label-2739 SELECT COUNT ( * ) * - 58 @@ -14376,8 +14519,11 @@ SELECT 11, 11 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 171 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \+ \(\- Int64\(\-90\)\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 + - - 90 AS col0, + 48 AS col0 +---- +171 +48 query I rowsort SELECT 85 * - 45 * 47 AS col0 @@ -14392,8 +14538,11 @@ SELECT ALL + COUNT ( * ) * + 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col2" at position 0 and "Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 col2, 72 col2 +---- +24 +72 query I rowsort label-2749 SELECT ALL - 52 + + + NULLIF ( 28, 13 ) * + + 34 * - NULLIF ( + 29, - 0 * - COUNT ( * ) ) + 4 col0 @@ -14455,8 +14604,12 @@ SELECT DISTINCT - NULLIF ( - + ( + + 32 ), 81 ) - 25 AS col2 # Datafusion - Expected - 41 # Datafusion - Expected - -38 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "Int64\(\-80\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 41 col2, - ( - 33 ) + - 71, - 80 AS col2 +---- +-38 +-80 +41 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -14635,8 +14788,11 @@ SELECT + 5 + SUM ( 17 ) - 85 - + - MIN ( - - 20 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2012 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \- \(\- \(\- CASE \(\- CAST\(NULL AS Int32\)\) WHEN Int64\(\-11\) THEN NULL WHEN Int64\(\-34\) THEN Int64\(81\) ELSE Int64\(\-15\) \+ Int64\(20\) \* \(\- CAST\(Int64\(96\) AS Int32\)\) END\)\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 77 - - - CASE - CAST ( NULL AS INTEGER ) WHEN - 11 THEN NULL WHEN - 34 THEN 81 ELSE - 15 + 20 * - ( + CAST ( + ( 96 ) AS INTEGER ) ) END AS col0, 35 AS col0 +---- +2012 +35 query I rowsort SELECT - 19 + 88 - - 64 @@ -15333,14 +15489,20 @@ SELECT DISTINCT + 5 AS col2, + COUNT ( * ) # 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\(\-97\)\) \* Int64\(48\) \+ \(\- CASE Int64\(\-41\) WHEN Int64\(48\) THEN Int64\(66\) END\) AS col1" at position 0 and "Int64\(41\) / \(\- Int64\(85\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 97 * + 48 + - CASE - 41 WHEN 48 THEN + 66 END AS col1, 41 / - ( 85 ) AS col1 +---- +0 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 AS col0, 5 AS col0 +---- +12 +5 query II rowsort SELECT ALL + + 77 AS col0, - 76 * - 58 AS col2 @@ -15589,8 +15751,11 @@ SELECT ALL + 27 / + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4351033 # Datafusion - Expected - -343038 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- sum\(Int64\(48\)\)\), Int64\(0\)\) \* \(\- \(\- min\(DISTINCT \(\- Int64\(\-23\)\)\)\)\) \* Int64\(\-73\) \* Int64\(54\) \+ Int64\(56\) \* Int64\(\-17\) \+ Int64\(17\) AS col2" at position 0 and "Int64\(32\) \+ sum\(Int64\(\-58\)\) \* Int64\(\-91\) \* \(\- Int64\(65\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( - SUM ( ALL + 48 ), 0 ) * - - MIN ( DISTINCT - - 23 ) * - 73 * 54 + 56 * - 17 + + 17 col2, + 32 + + SUM ( - 58 ) * - 91 * - + 65 AS col2 +---- +-343038 +4351033 query I rowsort label-2978 SELECT DISTINCT 95 * + - 5 / - COUNT ( * ) @@ -15730,8 +15895,11 @@ SELECT NULLIF ( 53, + 40 ) + - 43 * 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 24 AS col0, 78 AS col0 +---- +-24 +78 query I rowsort label-3005 SELECT + + COUNT ( * ) * - 57 * - - 52 + - + 63 @@ -16705,8 +16873,11 @@ 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\(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\. +query IR valuesort 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 +---- +-51 +10 query I rowsort SELECT ALL 77 * + 45 @@ -16854,8 +17025,11 @@ SELECT ALL + 0 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( COUNT ( * ) ) AS col2, - COUNT ( * ) * + + 74 AS col2 +---- +-74 +1 query I rowsort label-3224 SELECT ALL - 76 / - + 61 @@ -16945,8 +17119,11 @@ SELECT DISTINCT - COUNT ( * ) * - 48 + + - 27 * + 17 * 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 10 * COUNT ( * ) col0, 45 AS col0 +---- +10 +45 query I rowsort SELECT ALL + + 42 + - + 31 * + + 62 * + + 77 * - 63 AS col2 @@ -17435,8 +17612,11 @@ SELECT ALL + 89 * + NULLIF ( - 94, - 88 * + ( - 72 ) ) * - 20 * + COALESCE ( - 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \- Int64\(\-23\) AS col2" at position 0 and "\(\- Int64\(\-11\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 - + - 23 col2, - ( - 11 ) AS col2 +---- +11 +42 query I rowsort label-3336 SELECT + COUNT ( + - 64 ) * + - 69 * - 95 + 77 + + 18 @@ -17495,8 +17675,11 @@ SELECT DISTINCT 4 + - 86 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- \(\- CAST\(NULL AS Float64\)\)\), Int64\(\-84\) \- \(\- avg\(\(\- Int64\(\-21\)\)\)\)\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + NULLIF ( - - CAST ( NULL AS FLOAT8 ), + - 84 - - AVG ( - - 21 ) ) col1, + 54 AS col1 +---- +54 +NULL query I rowsort SELECT DISTINCT 73 * + - 51 + - + 68 @@ -17539,8 +17722,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - COUNT ( * ) ) AS col1, - 78 AS col1 +---- +-1 +-78 query I rowsort label-3355 SELECT ALL + - SUM ( DISTINCT - + 64 ) * CAST ( - 31 AS INTEGER ) + - + 83 - 9 AS col2 @@ -17625,8 +17811,11 @@ SELECT ALL - 13 * + 21 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 26390 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ Int64\(\-61\) \+ Int64\(65\) AS col1" at position 0 and "Int64\(7\) \* Int64\(\-65\) \* Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 58 + - 61 + + + 65 AS col1, + 7 * - 65 * + - 58 AS col1 +---- +26390 +62 query I rowsort SELECT DISTINCT - 4 + - 95 @@ -17889,8 +18078,11 @@ SELECT ALL - 64 * + MIN ( + 75 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 170 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \+ Int64\(98\) AS col2" at position 0 and "Int64\(\-27\) / \(\- Int64\(\-53\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 + + 98 col2, - 27 / - - 53 AS col2 +---- +0 +170 query I rowsort label-3422 SELECT 8 / + + 16 @@ -18278,8 +18470,11 @@ SELECT - COALESCE ( + + 23, + 56 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CASE Int64\(53\) WHEN Int64\(\-73\) \* Int64\(\-16\) \+ Int64\(81\) \+ Int64\(35\) \* Int64\(\-17\) THEN NULL WHEN Int64\(87\) THEN NULL WHEN \(\- nullif\(\(\- CASE nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-94\)\) WHEN Int64\(19\) THEN nullif\(Int64\(62\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) END\), Int64\(\-77\) \+ Int64\(\-71\) \* Int64\(51\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(64\) / Int64\(29\) \+ Int64\(39\) ELSE Int64\(92\) / Int64\(84\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1 +1 query I rowsort label-3497 SELECT ALL MAX ( - 96 ) / 11 * 58 * ( + 32 ) * + - CAST ( + 94 AS INTEGER ) - + 4 @@ -18442,8 +18637,11 @@ SELECT DISTINCT 85 * - 2 - + MAX ( DISTINCT 9 ) * 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CASE max\(DISTINCT Int64\(\-62\)\) WHEN \(\- nullif\(max\(Int64\(\-60\)\), Int64\(40\)\)\) \* \(\- Int64\(1\)\) THEN Int64\(80\) WHEN min\(DISTINCT CAST\(NULL AS Int32\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE NULL END \* Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1 +NULL query I rowsort label-3527 SELECT + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 @@ -19240,8 +19438,11 @@ SELECT - 63 + - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - -168 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "\(\- Int64\(\-6\)\) \* \(\- min\(\(\- CAST\(\(\- nullif\(Int64\(28\), Int64\(12\) / Int64\(92\) \+ \(\- Int64\(69\)\)\)\) AS Int32\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 col2, - ( - 6 ) * - + MIN ( ALL - CAST ( - NULLIF ( + 28, + 12 / 92 + - ( 69 ) ) AS INTEGER ) ) AS col2 +---- +-168 +7 query II rowsort label-3680 SELECT 42 AS col1, NULLIF ( - 25, - 84 + 7 * - + 23 / - COUNT ( * ) ) AS col2 @@ -19500,8 +19701,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(59\) / Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 - - + 23 + + 18 AS col0, COUNT ( * ) - 59 / + + 64 col0 +---- +1 +133 query I rowsort label-3730 SELECT 51 * + - COALESCE ( + + ( + - 24 ), - 68 / + - 23 ) - + 32 - + COUNT ( * ) - COALESCE ( 86, + - COUNT ( * ) * - 62 + + + NULLIF ( - + 41, + 94 ) ) @@ -19556,8 +19760,11 @@ SELECT ALL ( - 80 ) - + 21 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 153 # Datafusion - Expected - 232 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ Int64\(55\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-8\) \* Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 98 + 55 * + COUNT ( * ) AS col2, + COUNT ( * ) * - 8 * - 29 col2 +---- +153 +232 query I rowsort SELECT + 92 * - + 20 AS col1 @@ -19902,8 +20109,11 @@ SELECT ALL 3 * - 68 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col0" at position 0 and "\(\- Int64\(\-5\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 21 AS col0, ( - - 5 ) AS col0 +---- +21 +5 query I rowsort SELECT DISTINCT + 18 + - 99 AS col0 @@ -20054,8 +20264,11 @@ SELECT 36 + + 20 / 85 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 71 AS col0, + 55 AS col0 +---- +-71 +55 query I rowsort SELECT 42 * + 91 * - CASE 87 WHEN - 28 * + + 78 THEN - 28 WHEN - 75 THEN - - 17 END @@ -20231,8 +20444,11 @@ SELECT ALL 34 + - - ( - COUNT ( * ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ Int64\(55\) AS col1" at position 0 and "Int64\(\-65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 + + + 55 AS col1, - 65 AS col1 +---- +-65 +94 query I rowsort label-3872 SELECT + COALESCE ( - + 51, + MIN ( DISTINCT - ( - 66 ) ) * 61 ) AS col0 @@ -20282,8 +20498,11 @@ SELECT - + 16 + 22 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 260001 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* \(\- max\(\(\- Int64\(57\)\)\)\) \* \(\- Int64\(\-57\)\) \* count\(Int64\(97\)\) \+ Int64\(81\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 * - MAX ( - + 57 ) * - - 57 * + COUNT ( 97 ) + 81 col2, + 23 AS col2 +---- +23 +260001 query I rowsort SELECT ALL 84 + 36 col0 @@ -20437,8 +20656,11 @@ SELECT DISTINCT + 88 * - 63 + - 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 9 AS col1, - 60 AS col1 +---- +-60 +9 query I rowsort SELECT COALESCE ( + ( + 96 ), + - 55, + - 33 ) AS col2 @@ -20727,8 +20949,11 @@ SELECT ALL - 9 + + + 30 * 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8526 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \* \(\- nullif\(Int64\(87\), Int64\(59\)\)\) 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 II valuesort SELECT DISTINCT - 98 * - + NULLIF ( + + 87, + 59 ) col0, - MIN ( + - 58 ) AS col0 +---- +58 +8526 query II rowsort label-3966 SELECT - ( + ( ( + - 66 ) ) ) + + CASE - MAX ( DISTINCT + - 49 ) WHEN + 17 THEN - 2 END, 16 col0 @@ -21097,8 +21322,11 @@ SELECT + 21 + 58, - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col1" at position 0 and "CAST\(Int64\(\-73\) AS Int32\) \+ Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 90 AS col1, + CAST ( - 73 AS INTEGER ) + - 18 AS col1 +---- +-90 +-91 query I rowsort label-4036 SELECT DISTINCT + - CASE + 34 WHEN + 1 * + 37 + - - 61 THEN - 50 ELSE 94 END * - + 94 + - + SUM ( - 8 ) * + 82 + - 56 * - 6 * - + NULLIF ( + 32, + + 97 ) + + 30 AS col1 @@ -21199,8 +21427,11 @@ SELECT - 39 * - - ( + - 60 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -310 # Datafusion - Expected - 30 -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\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 31 * + 10 AS col0, ( + 30 ) AS col0 +---- +-310 +30 query I rowsort label-4056 SELECT - COUNT ( * ) + 36 @@ -21628,8 +21859,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(34\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + MIN ( + 34 ) AS col2, COUNT ( * ) AS col2 +---- +1 +34 query I rowsort SELECT - 34 * - - 69 + + 66 @@ -21914,8 +22148,11 @@ SELECT ALL + 72 * + - 34 + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 998 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-39\), \(\- CAST\(NULL AS Int32\)\), Int64\(91\)\) \* \(\- Int64\(26\)\) \+ Int64\(\-16\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( - 39, + - CAST ( NULL AS INTEGER ), + 91 ) * - + 26 + - 16 AS col1, + 76 col1 +---- +76 +998 query I rowsort SELECT ALL - 87 * 28 AS col2 @@ -22361,8 +22598,11 @@ SELECT ALL 57 / + - 76 - ( - 62 ) + + 33 + COUNT ( * ) * 20 / - + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 98 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 60 AS col2, 98 AS col2 +---- +60 +98 query I rowsort label-4278 SELECT + 40 + 39 / 24 - 91 AS col0 @@ -22733,8 +22973,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 58 + + 43 + + 43 AS col2, - 9 + - COUNT ( * ) AS col2 +---- +-10 +28 query I rowsort label-4350 SELECT DISTINCT - COALESCE ( CAST ( + NULLIF ( + 50, - 35 ) AS INTEGER ), - - MAX ( - 4 ) ) @@ -22830,8 +23073,12 @@ 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\(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\. +query III valuesort SELECT ALL NULLIF ( + - 3, - MAX ( ALL - - 72 ) ) * + ( - COUNT ( * ) ) col2, 65, - + 51 col2 +---- +-51 +3 +65 query I rowsort SELECT ALL 46 col0 @@ -22972,8 +23219,11 @@ SELECT - 51 AS col2, 74 col0 # 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 "Int64\(\-48\) AS col2" at position 0 and "Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 48 AS col2, 32 AS col2 +---- +-48 +32 query II rowsort label-4396 SELECT ALL - COUNT ( * ) AS col0, + NULLIF ( + 66, + - ( 62 ) ) AS col1 @@ -23106,8 +23356,11 @@ 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\(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\. +query II valuesort SELECT + ( + - COUNT ( * ) ) col1, 84 * - 93 + - 6 + COUNT ( - 92 ) / - 11 + + - COUNT ( * ) AS col1 +---- +-1 +-7819 query I rowsort label-4421 SELECT - MAX ( ALL - 17 ) * - 27 AS col0 @@ -23225,8 +23478,11 @@ SELECT - 46 + - 30 + + 26 * ( + + 0 ) / 20 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col0" at position 0 and "Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 AS col0, 16 AS col0 +---- +16 +9 query I rowsort label-4444 SELECT ALL + 38 + + COUNT ( * ) @@ -23514,8 +23770,11 @@ SELECT 94 + 32, - 89 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 143408 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* Int64\(91\) \* \(\- Int64\(\-45\)\) \+ \(\- Int64\(\-83\)\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 * + 91 * - - 45 + + ( - - 83 ) AS col2, 68 AS col2 +---- +143408 +68 query I rowsort SELECT ALL - NULLIF ( + - 32, + 90 ) @@ -24000,8 +24259,11 @@ SELECT - 62 * NULLIF ( - - 36, - 89 * + 2 / - + 38 - COUNT ( * ) + + - 29 / - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \+ Int64\(74\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 43 + 74 AS col2, COUNT ( * ) AS col2 +---- +1 +31 query I rowsort label-4592 SELECT ( 42 ) / - - ( 90 ) @@ -24140,8 +24402,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 9 + - + COUNT ( * ) * + 88 * + 74 AS col1, ( - 59 ) + - COUNT ( * ) AS col1 +---- +-60 +-6521 query I rowsort SELECT ALL + 55 + + 60 AS col2 @@ -24162,8 +24427,11 @@ SELECT + 33 AS col0, 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-15\)\) AS col0" at position 0 and "Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 15 AS col0, - 25 AS col0 +---- +-25 +15 query II rowsort label-4623 SELECT + 19 * + CASE 64 WHEN + COUNT ( * ) THEN + MAX ( 87 ) ELSE + CAST ( NULL AS INTEGER ) + - - 62 END col2, 43 @@ -26677,14 +26945,20 @@ SELECT + + 19 + - 76 / + NULLIF ( + 4, + 16 ) - + 14 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 0 and "Int64\(\-86\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(20\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 96 AS col0, - 86 + + COUNT ( * ) * 20 / + COUNT ( * ) AS col0 +---- +-66 +96 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 89 AS col1, 19 AS col1 +---- +-89 +19 query I rowsort label-5110 SELECT + 74 / - 64 @@ -26704,8 +26978,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) AS col0, - 22 * 68 - - 72 + - - 18 AS col0 +---- +-1 +-1406 query I rowsort SELECT DISTINCT + + 61 + - 88 * + 60 @@ -26761,8 +27038,11 @@ SELECT 30 * + - 35 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3441 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \* Int64\(37\) AS col0" at position 0 and "Int64\(\-44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 93 * + 37 AS col0, - 44 AS col0 +---- +-44 +3441 query I rowsort SELECT DISTINCT + 84 * + 56 * - 40 @@ -27308,8 +27588,11 @@ SELECT ALL - 35 + + - 66 # 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\(80\) \+ Int64\(\-28\) \+ Int64\(\-36\) AS col2" at position 0 and "Int64\(1\) / Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 80 + - 28 + - 36 AS col2, + 1 / + 43 AS col2 +---- +0 +16 query I rowsort label-5229 SELECT - 67 + + - COALESCE ( - COUNT ( * ), + - 30 ) * - + CAST ( + 81 AS INTEGER ) AS col0 @@ -27445,8 +27728,11 @@ 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\(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\. +query II valuesort SELECT 42 + - - 50 * + COUNT ( * ) * - - 83 * + 54 AS col0, 4 AS col0 +---- +224142 +4 query I rowsort SELECT ALL - 29 col2 @@ -27910,8 +28196,11 @@ SELECT + - 96 + - 54 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col1" at position 0 and "Int64\(11\) \* CAST\(NULL AS Int32\) \+ Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 50 col1, 11 * + CAST ( NULL AS INTEGER ) + + + 13 AS col1 +---- +50 +NULL query I rowsort label-5343 SELECT - - 46 * + - SUM ( + + 4 ) AS col1 @@ -28414,8 +28703,11 @@ SELECT DISTINCT - 26, 34 / - + 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 AS col1, + 35 col1 +---- +35 +39 query I rowsort label-5440 SELECT COUNT ( * ) + + 98 col1 @@ -28528,8 +28820,11 @@ SELECT DISTINCT 39 - 30 + + 41 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 146 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col0" at position 0 and "Int64\(92\) \+ Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 col0, 92 + 54 col0 +---- +146 +33 query I rowsort SELECT DISTINCT - - 30 - + 15 AS col1 @@ -29431,8 +29726,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 AS col1, 21 * + + COUNT ( * ) * 64 col1 +---- +1344 +24 query I rowsort SELECT 30 col0 @@ -29658,8 +29956,11 @@ SELECT 83 * + 55 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \+ Int64\(59\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 4 + + 59 col2, COUNT ( * ) col2 +---- +1 +55 query I rowsort label-5678 SELECT 75 / - + 74 + 40 - - 87 + COUNT ( * ) * 82 * - 71 - + 9 - - 59 @@ -30355,8 +30656,11 @@ SELECT 72 * + - 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - -3348 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "Int64\(\-36\) \* CAST\(Int64\(93\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 col1, - 36 * + CAST ( 93 AS INTEGER ) AS col1 +---- +-3348 +38 query I rowsort SELECT ALL + 12 * - 57 AS col0 @@ -30388,8 +30692,11 @@ SELECT CAST ( + - ( 5 ) AS INTEGER ) * - - 16 * - - 8 + + COUNT ( * ), - ( NULLI # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 63 AS col0, 73 AS col0 +---- +-63 +73 query I rowsort label-5820 SELECT ALL 92 / + COUNT ( * ) AS col2 @@ -30992,8 +31299,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) - 30 + - - 79 * - 21 * + 89 AS col2, 86 col2 +---- +-147680 +86 query I rowsort SELECT 99 * + 8 @@ -31053,8 +31363,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(75\)\) / \(\- Int64\(82\)\) \- Int64\(45\) \+ Int64\(45\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( + + 75 ) / + - ( + 82 ) - 45 + 45 AS col1, 80 AS col1 +---- +0 +80 query I rowsort SELECT 68 * - 42 @@ -31295,8 +31608,11 @@ SELECT ALL + + 30 AS col2 # 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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - 30 ) AS col1, - 18 AS col1 +---- +-18 +-30 query I rowsort SELECT - 91 * 81 - 98 AS col0 @@ -31332,8 +31648,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 87 AS col2, + 26 AS col2 +---- +-87 +26 query I rowsort label-6001 SELECT DISTINCT + - COUNT ( * ) * 13 @@ -31363,8 +31682,11 @@ SELECT + ( + - 14 ) * + 46 * + - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 101 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \+ Int64\(34\) AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 67 + 34 AS col0, 27 AS col0 +---- +101 +27 query I rowsort SELECT - 25 + 10 AS col1 @@ -31886,8 +32208,11 @@ SELECT + COUNT ( * ) / ( + + 12 ) * + 13 * 12 / + 58 + - 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1056 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* Int64\(64\) \+ \(\- Int64\(31\)\) \+ Int64\(63\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 16 * 64 + - + 31 + + 63 AS col1, 12 AS col1 +---- +1056 +12 query I rowsort SELECT 56 * + 21 @@ -32024,8 +32349,11 @@ SELECT ALL - ( - 5 ) / + + 32 + - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 72 AS col0 +---- +72 +NULL query I rowsort SELECT + - 28 AS col0 @@ -32068,8 +32396,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "Int64\(\-9\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 4 col2, - 9 + + COUNT ( * ) AS col2 +---- +-8 +4 query I rowsort SELECT ( - - 4 ) @@ -32438,8 +32769,11 @@ SELECT 7 * + 84 * 81, 28 + MIN ( DISTINCT + 96 ) + - + 45 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-24\)\) AS col0" at position 0 and "max\(DISTINCT Int64\(51\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( + + ( - 24 ) ) AS col0, + MAX ( DISTINCT ( + + ( 51 ) ) ) AS col0 +---- +-24 +51 query I rowsort label-6210 SELECT SUM ( ALL - + 24 ) @@ -32490,8 +32824,11 @@ SELECT ALL - MIN ( ALL - + ( + 95 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -399840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col0" at position 0 and "Int64\(21\) \* Int64\(\-14\) \* Int64\(85\) \* Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4 AS col0, + 21 * + - 14 * 85 * + 16 AS col0 +---- +-399840 +4 query I rowsort SELECT 60 * - 55 + - 98 AS col1 @@ -32643,8 +32980,12 @@ SELECT ALL - MAX ( DISTINCT + 42 ) # Datafusion - Expected - 110 # Datafusion - Expected - 23 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-42\)\) \+ Int64\(68\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - ( - 42 ) + + 68 AS col2, + 23 AS col2, 77 AS col1 +---- +110 +23 +77 query I rowsort SELECT DISTINCT CASE - 52 WHEN - 97 THEN - 23 * + ( - 51 ) END @@ -32913,8 +33254,11 @@ SELECT + ( - 97 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - -4260 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "Int64\(\-60\) \* Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 51 AS col2, - 60 * 71 AS col2 +---- +-4260 +51 query I rowsort label-6300 SELECT ALL + 59 / - 64 * 48 - 25 AS col2 @@ -34173,8 +34517,11 @@ SELECT ALL - COUNT ( * ) / - + COALESCE ( - 95, + 38 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \+ Int64\(\-12\) AS col1" at position 0 and "\(\- Int64\(86\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 2 + + - 12 AS col1, - ( 86 ) col1 +---- +-14 +-86 query I rowsort label-6543 SELECT ALL 82 * + + NULLIF ( + 4, ( + 15 ) * - COUNT ( * ) ) + COUNT ( ALL + 79 ) col2 @@ -34399,8 +34746,11 @@ SELECT ALL + 80 + + 72 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "Int64\(\-48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 65 AS col0, - 48 AS col0 +---- +-48 +65 query I rowsort SELECT ALL 78 + - + ( 70 ) AS col2 @@ -34455,8 +34805,11 @@ SELECT DISTINCT - 90 / + ( 43 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - -715 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col2" at position 0 and "Int64\(55\) \* \(\- Int64\(13\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 AS col2, 55 * - + 13 AS col2 +---- +-715 +39 query I rowsort SELECT 75 - 67 @@ -34699,8 +35052,11 @@ SELECT DISTINCT + 71 * - 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) \* CAST\(NULL AS Int32\) \- Int64\(13\) \- Int64\(\-51\) AS col2" at position 0 and "\(\- sum\(Int64\(\-38\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 13 * ( + CAST ( NULL AS INTEGER ) ) - + 13 - - 51 AS col2, - SUM ( ALL - 38 ) AS col2 +---- +38 +NULL query I rowsort SELECT ALL - - 86 + 47 * 35 + - 0 * 93 @@ -35998,8 +36354,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 1 + - COUNT ( * ) AS col1, 72 AS col1 +---- +0 +72 query I rowsort label-6895 SELECT 84 + + MAX ( - 76 ) @@ -36300,8 +36659,11 @@ SELECT + ( + NULLIF ( 96, - SUM ( ALL + - 42 ) ) ) * - 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 * COUNT ( * ) AS col1, 92 AS col1 +---- +-31 +92 query I rowsort label-6952 SELECT + 75 + + COUNT ( * ) * - 24 AS col1 @@ -36439,8 +36801,13 @@ SELECT 73 / + 18 + + + 5 - - + COUNT ( * ) + + 50 AS col2 # Datafusion - Expected - 87 # Datafusion - Expected - -65 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 1 and "Int64\(\-67\) AS col0" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIII valuesort SELECT + NULLIF ( - COUNT ( * ), + 10 ), 87 AS col0, + ( - 65 ) AS col1, - 67 AS col0 +---- +-1 +-65 +-67 +87 query I rowsort SELECT - 54 + - 96 AS col2 @@ -36504,8 +36871,11 @@ SELECT DISTINCT 86 AS col2 # 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 "Int64\(64\) / \(\- \(\- Int64\(12\)\)\) AS col0" at position 0 and "Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 64 / + ( - - ( + 12 ) ) AS col0, - 73 AS col0 +---- +-73 +5 query I rowsort label-6990 SELECT + - 84 + - CAST ( - - 4 AS INTEGER ) / CASE + CAST ( NULL AS INTEGER ) WHEN ( ( + ( - 13 ) ) ) * 51 THEN NULL WHEN - MIN ( - 23 ) / - 11 THEN - 58 END / + 93 AS col0 @@ -36735,8 +37105,12 @@ SELECT + 62 + - - 89 # Datafusion - Expected - -103579 # Datafusion - Expected - -67 # Datafusion - Expected - 3225 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) \- Int64\(\-77\) \* \(\- Int64\(\-84\)\) \* Int64\(\-16\) AS col0" at position 0 and "sum\(Int64\(\-98\)\) \+ Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 91 - + - 77 * - - 84 * + - 16 AS col0, + SUM ( + - 98 ) + + + 31 AS col0, 43 * 75 + - COUNT ( * ) / - 31 +---- +-103579 +-67 +3225 query II rowsort SELECT - 92, 22 + 32 + - 59 AS col0 @@ -36850,8 +37224,11 @@ SELECT ALL - + MAX ( 80 ) # 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 col0" at position 0 and "Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 AS col0, + ( - 76 ) AS col0 +---- +-76 +77 query I rowsort label-7056 SELECT - - CASE - NULLIF ( + 2, 56 / - 66 * + ( - + CAST ( + + 25 AS INTEGER ) ) ) WHEN 69 * - 85 + COUNT ( * ) THEN - 85 WHEN 72 THEN NULL END * + 23 + 22 @@ -37012,8 +37389,11 @@ SELECT ALL COUNT ( * ) * - COUNT ( * ) * + ( + 98 ) + - 81 * + COUNT ( * ) AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col0" at position 0 and "Int64\(94\) \- Int64\(33\) / Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 29 AS col0, 94 - + 33 / - 90 AS col0 +---- +29 +94 query I rowsort SELECT - 89 * - + 68 @@ -38352,8 +38732,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 50 * + + 21 + - COUNT ( * ) AS col2, 5 col2 +---- +-1051 +5 query I rowsort SELECT - 63 + + 23 @@ -38869,8 +39252,11 @@ SELECT ALL + 97 * - 96 - - COALESCE ( + COALESCE ( + - COUNT ( * ), + + 76 ), + # Datafusion - Datafusion expected results: # Datafusion - Expected - 4566 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \+ \(\- Int64\(48\)\) \* Int64\(\-19\) \+ \(\- Int64\(\-59\)\) \- min\(Int64\(\-41\)\) \* Int64\(87\) AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 + - ( + + 48 ) * - 19 + + - ( - 59 ) - MIN ( - 41 ) * + + 87 col1, 40 AS col1 +---- +40 +4566 query II rowsort SELECT ALL - + 33 AS col1, - 7 @@ -39641,8 +40027,11 @@ SELECT ALL COALESCE ( + 3, + + NULLIF ( - 88, - 26 ) * 53 / 76 + - 39 ) * ( - CO # Datafusion - Datafusion expected results: # Datafusion - Expected - 329163 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \+ Int64\(53\) \+ Int64\(\-95\) \* \(\- Int64\(35\)\) \* Int64\(99\) AS col1" at position 0 and "Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 65 + + + 53 + - 95 * - + 35 * 99 col1, - 80 AS col1 +---- +-80 +329163 query I rowsort SELECT DISTINCT 10 + - 74 + - - 25 * 7 + 64 @@ -39781,8 +40170,11 @@ SELECT - NULLIF ( - + 36, - 54 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "\(\- sum\(Int64\(\-72\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 6 AS col2, - SUM ( - 72 ) + + + COUNT ( * ) AS col2 +---- +6 +73 query II rowsort SELECT ALL 58 AS col1, - 82 AS col2 @@ -40194,8 +40586,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(72\)\) \+ Int64\(20\) \* Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 69 * - - 26 * + 40 AS col1, COUNT ( * ) * - + 72 + + 20 * + 24 AS col1 +---- +408 +71760 query I rowsort SELECT 45 * - - 20 AS col1 @@ -40671,8 +41066,11 @@ SELECT ALL + 83 - + 1 / + + 72 - - - 36 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8706 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(30\) \+ Int64\(48\) \+ \(\- Int64\(\-30\)\) \+ \(\- Int64\(90\)\) \* nullif\(Int64\(86\), Int64\(81\)\) \+ Int64\(9\) \+ Int64\(27\) \* \(\- nullif\(Int64\(39\), CAST\(Int64\(89\) AS Float64\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - COUNT ( * ) / + 30 + + 48 + - - 30 + - + 90 * NULLIF ( + 86, 81 ) + + + 9 + + 27 * - NULLIF ( 39, + CAST ( + + 89 AS FLOAT8 ) ) AS col0, + CAST ( NULL AS INTEGER ) col0 +---- +-8706 +NULL query I rowsort SELECT - 47 + - 83 AS col2 @@ -41575,8 +41973,11 @@ 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\(1\)\) AS count\(\*\)\) \- Int64\(\-46\)\) \+ Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 AS col2, 79 + + COALESCE ( + 71, + ( - + COUNT ( * ) ) - - 46 ) + 51 AS col2 +---- +201 +66 query I rowsort SELECT 93 + - - 68 @@ -41601,8 +42002,11 @@ SELECT 73 * + MAX ( - 52 ) * + 42 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 col2, + ( + 94 ) AS col2 +---- +90 +94 query I rowsort SELECT ALL 58 * - - 24 * - ( + 44 ) @@ -41854,8 +42258,11 @@ SELECT - 82 - + + CASE COUNT ( * ) WHEN + 62 THEN NULL ELSE - ( - 10 ) + - 57 EN # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) / Int64\(6\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 45 / + 6 AS col1, 37 AS col1 +---- +-7 +37 query I rowsort SELECT ALL + 94 col2 @@ -42043,8 +42450,11 @@ SELECT + 92 + - - COUNT ( * ) + - 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 22 col2, - 29 AS col2 +---- +-29 +22 query II rowsort label-8045 SELECT ALL CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col2 @@ -42527,8 +42937,11 @@ SELECT DISTINCT - ( - + 37 ) * + COALESCE ( - 92, - 26, - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "Int64\(63\) \- Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 76 AS col2, + 63 - + 51 AS col2 +---- +12 +76 query I rowsort SELECT DISTINCT + ( 92 ) @@ -42720,8 +43133,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT CASE COUNT ( * ) WHEN + 50 THEN + - 32 ELSE - - COUNT ( * ) END AS col2, + 25 col2 +---- +1 +25 query I rowsort SELECT DISTINCT ( + 0 ) @@ -42807,8 +43223,11 @@ SELECT ALL 25 * - 10 + - 11 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5117 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* Int64\(36\) \+ Int64\(77\) \* Int64\(52\) \+ \(\- Int64\(0\)\) \- Int64\(87\) \+ Int64\(\-60\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 * + 36 + + + 77 * + 52 + - + 0 - + 87 + - 60 AS col2, COUNT ( * ) col2 +---- +1 +5117 query I rowsort SELECT ALL 83 - - 90 AS col2 @@ -43057,8 +43476,11 @@ SELECT COUNT ( * ) + + 5 * - + 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1649 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(97\) AS col2" at position 0 and "Int64\(39\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 * + 97 AS col2, 39 / + COUNT ( * ) AS col2 +---- +1649 +39 query I rowsort SELECT ALL 16 * 75 @@ -43748,8 +44170,11 @@ SELECT ALL - COUNT ( * ) * SUM ( - + 92 ) + - 78 + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 658 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \* Int64\(9\) AS col0" at position 0 and "Int64\(18\) \+ Int64\(32\) \* \(\- Int64\(\-20\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 8 * + 9 AS col0, 18 + 32 * - - 20 AS col0 +---- +-72 +658 query I rowsort SELECT + + 95 col1 @@ -43994,8 +44419,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 87 * - ( + - 84 ) * + + 15 AS col1, + 24 * - + COUNT ( * ) AS col1 +---- +-109620 +-24 query I rowsort label-8420 SELECT ALL + ( - 62 ) * + COUNT ( * ) AS col0 @@ -44926,8 +45354,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 3010 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "Int64\(35\) \* Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 col1, + 35 * 86 AS col1 +---- +3010 +60 query I rowsort SELECT 9 + - 13 AS col2 @@ -45524,8 +45955,12 @@ SELECT + + ( + + 86 ) # Datafusion - Expected - -43 # Datafusion - Expected - 31 # Datafusion - Expected - 4292 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col0" at position 1 and "min\(\(\- Int64\(\-74\)\)\) \* Int64\(58\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - 43, 31 AS col0, MIN ( - - 74 ) * + 58 col0 +---- +-43 +31 +4292 query I rowsort SELECT ALL + 79 * + - 88 @@ -45655,8 +46090,11 @@ SELECT + COUNT ( * ) * - 9 * + NULLIF ( + 36, + ( 1 ) + 2 * 81 ) + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-41\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( - 41 ) * COUNT ( * ) AS col0, - 46 col0 +---- +-41 +-46 query I rowsort label-8739 SELECT 78 * + MIN ( + NULLIF ( + 8, - 96 / + 64 + + - 50 ) ) @@ -45733,8 +46171,11 @@ SELECT DISTINCT 41 * 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - -50778 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "Int64\(93\) \* \(\- Int64\(\-78\)\) \* Int64\(\-7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 col1, 93 * - - 78 * - 7 AS col1 +---- +-50778 +76 query I rowsort label-8754 SELECT ( 50 ) * + 37 + - + SUM ( DISTINCT + + 4 ) @@ -46349,8 +46790,11 @@ SELECT 35 * + 50 * + 26 + - 96 * + - 31 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7165 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ Int64\(\-96\) \+ Int64\(77\) \* \(\- Int64\(\-94\)\) AS col1" at position 0 and "Int64\(60\) \+ Int64\(\-26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 23 + - 96 + 77 * - - 94 AS col1, + ( 60 ) + - 26 AS col1 +---- +34 +7165 query I rowsort SELECT DISTINCT 82 * 45 @@ -46370,8 +46814,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 355 # Datafusion - Expected - 784 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(71\) AS col2" at position 0 and "Int64\(8\) \* Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 * + 71 AS col2, 8 * + 98 AS col2 +---- +355 +784 query I rowsort label-8877 SELECT COUNT ( * ) * - COUNT ( * ) * - 77 @@ -46454,8 +46901,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 40 AS col2, - COUNT ( * ) AS col2 +---- +-1 +40 query I rowsort label-8893 SELECT ALL - + 28 + + MAX ( 40 ) AS col2 @@ -46984,8 +47434,11 @@ SELECT COUNT ( * ) * - NULLIF ( - + 0, - 12 ) + 76 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - -1848 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col0" at position 0 and "Int64\(84\) \* \(\- Int64\(22\)\) \* Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 11 AS col0, + 84 * - + 22 * + 1 AS col0 +---- +-11 +-1848 query I rowsort label-8995 SELECT 53 / CASE WHEN NOT - 21 IS NULL THEN + CASE CASE + 1 WHEN + 55 THEN - - 30 ELSE + 41 * 16 END WHEN - 90 * + + ( + 42 ) / - 60 THEN NULL WHEN - ( + 85 ) + 83 / + 6 THEN CASE COUNT ( * ) WHEN 34 + - 20 THEN 36 * 89 + + 25 * + ( 65 * 27 ) WHEN COUNT ( * ) + - 83 THEN + SUM ( + 23 ) ELSE 14 END ELSE + 89 * 49 END * + 75 ELSE - 32 * 92 END AS col2 @@ -47032,8 +47485,11 @@ SELECT 24 + - COUNT ( - 83 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \- \(\- count\(DISTINCT Int64\(39\)\)\) AS col2" at position 0 and "Int64\(\-37\) \+ \(\- Int64\(26\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 - + - COUNT ( DISTINCT 39 ) AS col2, - 37 + - + 26 AS col2 +---- +-63 +60 query I rowsort label-9004 SELECT CAST ( NULL AS INTEGER ) + + - 14 + - 39 * - ( + 89 ) AS col1 @@ -47095,8 +47551,11 @@ SELECT ALL 79 - + - 5 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 "Int64\(8\) \- Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 19 AS col2, 8 - + + 9 AS col2 +---- +-1 +-19 query I rowsort SELECT 1 + - - 93 col2 @@ -48180,8 +48639,11 @@ SELECT DISTINCT + 74 * + 29 AS col1, CAST ( - + 58 AS INTEGER ) # 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\) AS col1" at position 0 and "Int64\(\-89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 26 col1, - 89 col1 +---- +-89 +26 query I rowsort label-9226 SELECT + SUM ( ALL - 77 ) AS col0 @@ -48244,8 +48706,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), + COUNT ( * ) +---- +1 +1 query I rowsort SELECT + NULLIF ( - 38, - 14 ) + + 22 + + - 5 @@ -48271,8 +48736,11 @@ SELECT + 39 + + + 21 + + 9 * - 90 - 6 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "Int64\(46\) / CAST\(\(\- Int64\(43\)\) AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 AS col2, + 46 / + CAST ( - ( + 43 ) AS INTEGER ) + - COUNT ( * ) AS col2 +---- +-2 +85 query I rowsort SELECT DISTINCT + 78 * - + 13 @@ -48303,14 +48771,20 @@ SELECT - 89 - - 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -7029 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col1" at position 0 and "Int64\(71\) \* Int64\(\-99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 AS col1, 71 * - 99 AS col1 +---- +-7029 +28 # 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\(10\) WHEN Int64\(84\) THEN Int64\(33\) / Int64\(74\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 46 AS col2, CASE 10 WHEN + 84 THEN 33 / + + 74 ELSE NULL END col2 +---- +-46 +NULL query I rowsort label-9250 SELECT DISTINCT + SUM ( 55 ) @@ -48520,8 +48994,11 @@ SELECT 38 / 51 + - NULLIF ( - SUM ( - 57 ), - 56 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "Int64\(\-31\) \- Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 AS col0, - 31 - + + 1 AS col0 +---- +-32 +8 query I rowsort label-9290 SELECT 58 / - ( + 15 ) @@ -48857,8 +49334,11 @@ SELECT DISTINCT COALESCE ( + 62, 82, - 52 ) + 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \- Int64\(\-88\) \+ Int64\(\-52\) AS col0" at position 0 and "Int64\(\-67\) \+ Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 12 - - 88 + - 52 col0, - 67 + - 10 AS col0 +---- +-77 +48 query I rowsort SELECT + 74 + 55 - 70 - - 76 * - + 22 * - NULLIF ( - 11, - 54 ) * + 8 AS col1 @@ -49005,8 +49485,12 @@ SELECT ALL + COALESCE ( - + 9, CASE + 54 WHEN + 75 * 13 THEN - + 17 / + ( + 21 ) # Datafusion - Expected - 12 # Datafusion - Expected - NULL # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "CAST\(count\(\(\- Int64\(\-96\)\)\) AS Float64\) \+ CASE \(\- CAST\(Int64\(34\) AS Int32\)\) WHEN Int64\(\-11\) \+ Int64\(17\) \* Int64\(39\) \- Int64\(99\) THEN Int64\(\-34\) \- Int64\(10\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IRI valuesort SELECT 12 AS col2, + ( CAST ( COUNT ( - - 96 ) AS FLOAT8 ) ) + CASE - CAST ( 34 AS INTEGER ) WHEN - 11 + 17 * + 39 - 99 THEN - 34 - + 10 ELSE NULL END col2, + - ( - + 26 ) AS col0 +---- +12 +26 +NULL query I rowsort label-9383 SELECT ALL + ( + + 33 ) * + + COUNT ( * ) @@ -49042,8 +49526,11 @@ SELECT 32 + 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - -632 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* Int64\(\-79\) AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 8 * - 79 AS col1, 90 col1 +---- +-632 +90 query I rowsort label-9390 SELECT ALL - COUNT ( ( + + 44 ) ) @@ -49053,8 +49540,11 @@ SELECT ALL - COUNT ( ( + + 44 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 63 AS col2, 95 AS col2 +---- +-63 +95 query I rowsort label-9392 SELECT ALL 61 / 83 col1 @@ -49169,8 +49659,12 @@ SELECT + - ( + 4 ) AS col1 # Datafusion - Expected - -44 # Datafusion - Expected - 54 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col0" at position 1 and "\(\- \(\- \(\- Int64\(88\)\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 44 AS col1, 54 AS col0, - - ( - + 88 ) AS col0 +---- +-44 +-88 +54 query I rowsort label-9414 SELECT COUNT ( * ) + - 3 * COALESCE ( - 60, + 17 ) AS col0 @@ -49196,8 +49690,11 @@ SELECT ALL COUNT ( * ) AS col1, ( + 39 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 91 AS col1, 0 AS col1 +---- +0 +91 query I rowsort label-9419 SELECT - - MAX ( DISTINCT - 61 ) AS col0 @@ -49460,8 +49957,11 @@ 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\(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\. +query II valuesort SELECT - NULLIF ( - COUNT ( * ), + + COUNT ( * ) ) AS col0, - 65 * + 52 col0 +---- +-3380 +1 query II rowsort label-9470 SELECT + 26 + + MIN ( DISTINCT - 22 ) + - 71 AS col1, 42 @@ -49986,8 +50486,11 @@ SELECT 82, 59 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(41\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( + 41 ) AS col2, COUNT ( * ) AS col2 +---- +1 +41 query I rowsort SELECT ( - - 12 ) + + 48 * 84 + + - 85 * + + 58 AS col1 @@ -50374,8 +50877,11 @@ 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\(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\. +query II valuesort SELECT MAX ( - 70 ) * + MAX ( + - 86 ) * + CASE - 59 WHEN COUNT ( * ) THEN NULL ELSE + 42 END + + 49 * - 13 * - + 23 AS col1, + 96 AS col1 +---- +267491 +96 query I rowsort SELECT + 76 col2 @@ -51109,8 +51615,11 @@ SELECT 66 * 24, 31 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4981 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ Int64\(5\) \+ Int64\(81\) \* Int64\(\-62\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 + + 5 + 81 * - 62 - COUNT ( * ) AS col0, - 81 AS col0 +---- +-4981 +-81 query I rowsort label-9782 SELECT NULLIF ( - + 88, 53 ) + - MAX ( ALL 59 ) @@ -51727,8 +52236,11 @@ SELECT + 61 * 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -139 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(57\), Int64\(78\)\)\) \- Int64\(82\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( + 57, 78 ) - + ( 82 ) AS col2, + 69 AS col2 +---- +-139 +69 query II rowsort label-9900 SELECT - 77 / + COUNT ( * ) + + + 16, + 27 AS col2 @@ -51884,8 +52396,11 @@ SELECT DISTINCT - 62 / + - CASE CAST ( + + 67 AS INTEGER ) WHEN - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 30 AS col1, + 42 AS col1 +---- +30 +42 query I rowsort SELECT DISTINCT + 62 * + 55 diff --git a/data/sqlite/random/expr/slt_good_1.slt b/data/sqlite/random/expr/slt_good_1.slt index 245ddcd..0876e6d 100644 --- a/data/sqlite/random/expr/slt_good_1.slt +++ b/data/sqlite/random/expr/slt_good_1.slt @@ -548,8 +548,11 @@ SELECT + 10 * + + CAST ( + 27 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, - 83 AS col0 +---- +-83 +1 query I rowsort SELECT 79 @@ -690,8 +693,11 @@ SELECT DISTINCT + 14 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, - COUNT ( * ) col2 +---- +-1 +1 query I rowsort SELECT - 86 AS col1 @@ -1169,8 +1175,11 @@ SELECT ALL MAX ( ALL + 49 ) AS col2, ( - - ( + 44 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 col1, COUNT ( * ) AS col1 +---- +1 +84 query I rowsort label-222 SELECT ALL COUNT ( * ) AS col0 @@ -2759,8 +2768,11 @@ SELECT - 33 * 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 73 + COUNT ( * ) AS col0, 85 AS col0 +---- +74 +85 query I rowsort SELECT + - 67 AS col0 @@ -4086,8 +4098,11 @@ SELECT ALL 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col0" at position 0 and "min\(Int64\(\-82\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 80 AS col0, + MIN ( - 82 ) AS col0 +---- +-82 +80 query I rowsort SELECT 91 @@ -4399,8 +4414,11 @@ SELECT ALL - CAST ( - 13 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1, - 16 AS col1 +---- +-16 +NULL query I rowsort SELECT ALL + 42 col1 @@ -5678,8 +5696,11 @@ SELECT - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "CAST\(NULL AS Float64\) \* Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + 90 AS col2, CAST ( NULL AS FLOAT8 ) * + 60 AS col2 +---- +90 +NULL query I rowsort SELECT - NULLIF ( 10, - - 45 ) AS col0 @@ -5879,8 +5900,11 @@ SELECT ALL - ( + ( + 9 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 46 AS col1, 69 AS col1 +---- +-46 +69 query I rowsort SELECT ALL 49 AS col2 @@ -7017,8 +7041,11 @@ SELECT ALL - 49 / - - 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2204 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* Int64\(\-38\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 58 * - 38 AS col1, 7 col1 +---- +-2204 +7 query I rowsort SELECT - 77 AS col0 @@ -8260,8 +8287,11 @@ SELECT ( + - COUNT ( * ) ) col0 # 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 "Int64\(0\) \* Int64\(\-66\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 0 * - 66 AS col1, + 9 AS col1 +---- +0 +9 query I rowsort SELECT + - 44 AS col1 @@ -8768,8 +8798,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ), COUNT ( * ) +---- +1 +1 query I rowsort SELECT ALL + 59 AS col1 @@ -9472,8 +9505,11 @@ SELECT DISTINCT 42 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(\-46\)\)\)\) AS col1" at position 0 and "Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( - 46 ) col1, 30 AS col1 +---- +1 +30 query I rowsort SELECT - 32 @@ -10476,8 +10512,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) * 62 AS col0, + ( SUM ( + - 35 ) ) col0 +---- +-35 +62 query I rowsort SELECT 34 @@ -11372,8 +11411,11 @@ 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\(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\. +query II valuesort SELECT + + COUNT ( * ), COUNT ( * ) +---- +1 +1 query I rowsort SELECT ALL 20 * + 18 @@ -11408,8 +11450,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) col1, - 29 + - + ( ( 45 ) ) AS col1 +---- +-1 +-74 query I rowsort SELECT + ( - 8 ) AS col2 @@ -13100,8 +13145,11 @@ SELECT ALL 87 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 AS col1, + 14 AS col1 +---- +-31 +14 query I rowsort SELECT - - 62 - ( + + 98 ) AS col0 @@ -13121,8 +13169,11 @@ SELECT DISTINCT COUNT ( * ) * + 93 * - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + - COUNT ( * ) AS INTEGER ) AS col2, + CAST ( NULL AS INTEGER ) AS col2 +---- +-1 +NULL query I rowsort SELECT ALL + 83 AS col2 @@ -13258,8 +13309,11 @@ 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 "\(\- Int64\(3\)\) AS col1" at position 0 and "\(\- sum\(\(\- Int64\(\-32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 3 ) AS col1, - SUM ( - - 32 ) AS col1 +---- +-3 +-32 query I rowsort SELECT + 88 * + 55 * - 23 AS col2 @@ -13488,8 +13542,11 @@ SELECT DISTINCT - - 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -3198 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "Int64\(78\) \* \(\- Int64\(41\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 54 AS col1, 78 * - + 41 AS col1 +---- +-3198 +54 query I rowsort SELECT + 22 col0 @@ -15513,8 +15570,11 @@ SELECT 30 * + + 48 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 col0" at position 0 and "Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 83 AS col0, - 1 col0 +---- +-1 +-83 query I rowsort SELECT - 35 AS col2 @@ -15530,8 +15590,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 60 col2, 98 - + 91 + COUNT ( * ) + 36 AS col2 +---- +44 +60 query II rowsort SELECT DISTINCT + 5 * - - 36 col1, 74 AS col0 @@ -19189,8 +19252,11 @@ SELECT ALL - + 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-19\)\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 19 AS col0, 80 AS col0 +---- +19 +80 query I rowsort label-3762 SELECT + 71 - COUNT ( * ) AS col2 @@ -19697,8 +19763,11 @@ SELECT ALL MIN ( + + 21 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col0" at position 0 and "\(\- Int64\(88\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 53 AS col0, - ( + 88 ) AS col0 +---- +-53 +-88 query I rowsort SELECT ALL + 76 col0 @@ -20266,8 +20335,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), + COUNT ( * ) +---- +1 +1 query I rowsort label-3974 SELECT DISTINCT + COUNT ( * ) * + ( 70 ) + + + ( + COUNT ( * ) ) AS col0 @@ -21528,8 +21600,11 @@ SELECT - + 27 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 51 AS col0, + 65 AS col0 +---- +51 +65 query I rowsort SELECT ALL 85 @@ -22694,8 +22769,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ), COUNT ( * ) +---- +1 +1 query I rowsort SELECT + 95 AS col1 @@ -22936,8 +23014,11 @@ SELECT ALL + 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, + 91 AS col2 +---- +1 +91 query I rowsort SELECT DISTINCT - + 34 AS col2 @@ -23019,8 +23100,11 @@ SELECT 37 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 86 ) AS col0, + 63 AS col0 +---- +-86 +63 query I rowsort SELECT + 71 @@ -23469,8 +23553,11 @@ SELECT ALL - 42 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, - 92 col2 +---- +-92 +1 query I rowsort SELECT + - 80 col2 @@ -24860,8 +24947,11 @@ SELECT ALL 58 * - - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, - COUNT ( * ) AS col0 +---- +-1 +1 query I rowsort label-4874 SELECT ALL - - COUNT ( - 5 ) AS col0 @@ -25237,8 +25327,11 @@ SELECT + 63 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "Int64\(\-81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 AS col1, - 81 AS col1 +---- +-81 +38 query I rowsort SELECT + + 78 @@ -27709,8 +27802,11 @@ SELECT MAX ( + 15 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "Int64\(\-41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 17 AS col0, - 41 AS col0 +---- +-41 +17 query I rowsort SELECT - - 65 @@ -28435,8 +28531,11 @@ SELECT - CAST ( + 29 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4290 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(\-55\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 78 * + - 55 col0, ( 40 ) col0 +---- +-4290 +40 query I rowsort label-5571 SELECT ALL 42 * - + COUNT ( - 0 ) AS col1 @@ -28457,8 +28556,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 57 AS col1, + COUNT ( * ), 93 * - - COUNT ( * ) AS col1 +---- +-57 +1 +93 query I rowsort SELECT ALL - + 55 AS col1 @@ -28688,8 +28791,11 @@ SELECT DISTINCT - 65 AS col2 # 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 col0" at position 0 and "Int64\(0\) / Int64\(\-82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 42 AS col0, + 0 / - 82 AS col0 +---- +0 +42 query I rowsort SELECT + - 6 AS col0 @@ -29335,8 +29441,11 @@ SELECT + SUM ( DISTINCT + 65 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 AS col0, COUNT ( * ) AS col0 +---- +-20 +1 query I rowsort SELECT - 74 AS col0 @@ -29780,8 +29889,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + - 6 AS col1, 22 AS col1 +---- +-5 +22 query I rowsort SELECT DISTINCT - 22 AS col2 @@ -30606,8 +30718,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- sum\(Int64\(38\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) col0, - SUM ( + 38 ) AS col0 +---- +-38 +1 query I rowsort SELECT ALL + 38 AS col2 @@ -32221,8 +32336,11 @@ SELECT COUNT ( * ) / + 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col2" at position 0 and "Int64\(\-10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 97 AS col2, - 10 AS col2 +---- +-10 +-97 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -33662,8 +33780,11 @@ SELECT DISTINCT - 29 + + 19 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 AS col0, COUNT ( * ) AS col0 +---- +1 +11 query I rowsort label-6593 SELECT ALL + COUNT ( * ) * 58 col1 @@ -34575,8 +34696,12 @@ SELECT ALL 10 AS col0 # Datafusion - Expected - 32 # Datafusion - Expected - 69 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(66\) \- count\(Int64\(9\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 32 * + COUNT ( * ) AS col2, 69, 66 - COUNT ( 9 ) AS col2 +---- +32 +65 +69 query I rowsort label-6772 SELECT ALL CAST ( NULL AS INTEGER ) / + 13 AS col2 @@ -36840,8 +36965,11 @@ SELECT ALL + 0 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col2" at position 0 and "min\(Int64\(87\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 68 ) AS col2, + MIN ( + 87 ) AS col2 +---- +-68 +87 query I rowsort label-7217 SELECT ALL COUNT ( * ) * 56 AS col0 @@ -38178,8 +38306,11 @@ SELECT + SUM ( + + 88 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 17 AS col0, + 91 AS col0 +---- +-17 +91 query I rowsort SELECT DISTINCT + 26 @@ -38605,8 +38736,11 @@ SELECT - + 20 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(51\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 51 AS col1, CAST ( NULL AS INTEGER ) AS col1 +---- +-51 +NULL query I rowsort SELECT - ( 43 ) AS col0 @@ -38616,8 +38750,11 @@ SELECT - ( 43 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) col1, + 46 AS col1 +---- +46 +NULL query I rowsort SELECT + 11 AS col1 @@ -38862,8 +38999,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) * + - SUM ( ALL 3 ) AS col2, 28 col2 +---- +28 +3 query I rowsort label-7612 SELECT + COUNT ( * ) / + COUNT ( * ) AS col1 @@ -38918,8 +39058,11 @@ SELECT DISTINCT + MIN ( DISTINCT 60 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 21 AS col2, 82 AS col2 +---- +21 +82 query I rowsort SELECT ALL + 91 AS col0 @@ -39035,8 +39178,11 @@ SELECT DISTINCT + 7 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 83 AS col1, 13 AS col1 +---- +13 +83 query I rowsort SELECT DISTINCT + + 93 @@ -41244,8 +41390,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COALESCE ( + 48, COUNT ( * ) ) AS col0, 48 AS col0 +---- +48 +48 query I rowsort SELECT ALL + 35 @@ -41948,8 +42097,11 @@ SELECT ALL - + MAX ( ALL + + 98 ) 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\(57\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 AS col1, 0 AS col1 +---- +0 +57 query I rowsort SELECT DISTINCT - - 98 @@ -42050,8 +42202,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 22 AS col0, 98 / - + ( - + COUNT ( * ) ) AS col0 +---- +-22 +98 query I rowsort SELECT ALL - 26 AS col2 @@ -42586,8 +42741,11 @@ SELECT + 23 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 5 / CAST ( NULL AS INTEGER ) AS col1, 53 AS col1 +---- +53 +NULL query I rowsort SELECT DISTINCT + 63 AS col0 @@ -43291,8 +43449,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) +---- +1 +1 query II rowsort label-8476 SELECT CAST ( NULL AS INTEGER ) AS col1, 43 @@ -43881,8 +44042,11 @@ SELECT + 62 * 44 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT - 12 AS col1, + ( 94 ) col1 +---- +-12 +94 query I rowsort SELECT ALL - 53 AS col1 @@ -44012,8 +44176,11 @@ 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\(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\. +query II valuesort SELECT ALL + 86 * + - COUNT ( * ) AS col1, - 89 * - - 5 AS col1 +---- +-445 +-86 query I rowsort SELECT DISTINCT + 53 * 61 @@ -44917,8 +45084,11 @@ SELECT 2 + + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 16 AS col0, 7 AS col0 +---- +16 +7 query I rowsort label-8794 SELECT + MAX ( 3 ) @@ -45515,8 +45685,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -181 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \+ Int64\(\-35\) \- Int64\(68\) AS col1" at position 0 and "Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 78 + + - 35 - + 68 AS col1, ( - 80 ) AS col1 +---- +-181 +-80 query I rowsort SELECT DISTINCT + 82 AS col0 @@ -45673,8 +45846,11 @@ SELECT CAST ( - + 82 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -1890 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-28\) AS Int32\) \+ Int64\(45\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(45\) \* Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( - 28 AS INTEGER ) + + 45 + - + ( - + COUNT ( * ) ) col0, 45 * - 42 AS col0 +---- +-1890 +18 query I rowsort SELECT DISTINCT - 49 - + + 47 @@ -46387,8 +46563,11 @@ SELECT ALL - - COUNT ( * ) * + + 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, + 37 AS col1 +---- +1 +37 query I rowsort SELECT DISTINCT + 99 @@ -46693,8 +46872,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1, 80 AS col1 +---- +80 +NULL query I rowsort SELECT - + 58 + + - ( 61 ) AS col1 @@ -46796,8 +46978,11 @@ SELECT ALL 39 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col0, + 24 AS col0 +---- +24 +NULL query I rowsort label-9158 SELECT - COUNT ( DISTINCT 61 ) + + + 33 @@ -46982,8 +47167,11 @@ SELECT ALL - + 31 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- Int64\(\-9\)\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) * - - 9 AS col1, ( 44 ) AS col1 +---- +44 +NULL query I rowsort SELECT DISTINCT + 77 AS col2 @@ -47159,8 +47347,11 @@ SELECT ( + - COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + COUNT ( * ) ) col1, + COUNT ( * ) AS col1 +---- +1 +1 query I rowsort SELECT DISTINCT - 50 AS col2 @@ -47422,8 +47613,11 @@ SELECT + COUNT ( * ) * + 48 AS col2 # 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 col2" at position 0 and "Int64\(58\) / Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 23 AS col2, 58 / - 81 col2 +---- +-23 +0 query I rowsort SELECT - + 97 AS col1 @@ -47735,8 +47929,11 @@ SELECT 47 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, 96 AS col1 +---- +1 +96 query I rowsort label-9339 SELECT ( - CAST ( NULL AS INTEGER ) ) @@ -47876,8 +48073,12 @@ SELECT - 50 AS col1 # Datafusion - Expected - NULL # Datafusion - Expected - 19 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, 19 AS col1, 32 col0 +---- +19 +32 +NULL query II rowsort SELECT 70, 63 AS col2 @@ -47989,8 +48190,11 @@ SELECT ALL - 98 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 AS col2, 58 AS col2 +---- +-48 +58 query I rowsort SELECT - 16 col1 @@ -48101,8 +48305,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 6 / COUNT ( * ) col0, 63 AS col0 +---- +-6 +63 query I rowsort SELECT + 18 + 20 AS col2 @@ -49238,8 +49445,11 @@ SELECT - - 44 AS col1, 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(Int64\(16\) AS Int32\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 * + COUNT ( * ) AS col1, ( + CAST ( + + 16 AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) AS col1 +---- +47 +NULL query I rowsort label-9630 SELECT ALL COUNT ( * ) * 84 diff --git a/data/sqlite/random/expr/slt_good_10.slt b/data/sqlite/random/expr/slt_good_10.slt index 9e1920f..7d9506e 100644 --- a/data/sqlite/random/expr/slt_good_10.slt +++ b/data/sqlite/random/expr/slt_good_10.slt @@ -649,8 +649,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 82 / - MIN ( 13 ) AS col0, 86 - - - COUNT ( * ) AS col0 +---- +-6 +85 query I rowsort SELECT 45 - 24 @@ -809,8 +812,11 @@ SELECT ALL + 69 + ( 91 ) - + + 48 col2, - 7 - - 72 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2960 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* Int64\(\-80\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 37 * + - 80 col0, 29 AS col0 +---- +-2960 +29 query II rowsort label-144 SELECT 5 / - 5 + + + ( - 53 ) col1, COUNT ( * ) / - 29 @@ -956,8 +962,11 @@ SELECT DISTINCT - CASE + ( 58 ) WHEN + 14 THEN NULL ELSE + + 80 END + - 71 AS co # 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\(32\) \+ Int64\(\-45\) AS col1" at position 0 and "Int64\(1\) / \(\- CASE Int64\(69\) WHEN Int64\(\-24\) THEN Int64\(\-78\) / Int64\(0\) WHEN \(\- CAST\(NULL AS Float64\)\) \* Int64\(\-95\) THEN Int64\(\-77\) \- \(\- \(\- Int64\(\-46\)\)\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 32 + - 45 AS col1, 1 / - CASE 69 WHEN + - 24 THEN - 78 / - 0 WHEN + - CAST ( NULL AS FLOAT8 ) * - 95 THEN + - 77 - + - ( - - 46 ) END AS col1 +---- +-13 +NULL query I rowsort label-172 SELECT + COUNT ( * ) + + - COUNT ( * ) AS col2 @@ -1110,8 +1119,11 @@ SELECT ALL - - 96 + ( + COALESCE ( + - COUNT ( * ), - + 94 * + 91 - + 24 + + 11, # Datafusion - Datafusion expected results: # Datafusion - Expected - -4350 # Datafusion - Expected - 5305 -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\(76\) \* Int64\(69\) \+ \(\- Int64\(\-61\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 75 ) * + + 58 AS col2, 76 * + 69 + - - 61 AS col2 +---- +-4350 +5305 query I rowsort label-200 SELECT DISTINCT - 16 + + - ( + CAST ( NULL AS INTEGER ) ) AS col0 @@ -1137,8 +1149,11 @@ SELECT - 2 + + + COALESCE ( + CASE + + CAST ( NULL AS INTEGER ) WHEN - MAX ( ALL # Datafusion - Datafusion expected results: # Datafusion - Expected - 376 # Datafusion - Expected - -112 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* \(\- \(\- Int64\(47\)\)\) AS col2" at position 0 and "Int64\(\-30\) \+ Int64\(\-82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 * - ( - + 47 ) col2, - 30 + + - 82 AS col2 +---- +-112 +376 query II rowsort SELECT 57 col1, 14 @@ -1715,8 +1730,11 @@ SELECT - + MIN ( + 39 ) * - COUNT ( * ) + + COUNT ( * ) / ( - 1 ) / 53 * + ( + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, 17 AS col2 +---- +1 +17 query I rowsort SELECT ALL + + NULLIF ( 10, - 84 ) @@ -1908,8 +1926,11 @@ 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\(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\. +query II valuesort SELECT + 22 * + - 32 + - COUNT ( * ) - 3 * - COUNT ( DISTINCT - 22 ) AS col0, 27 AS col0 +---- +-702 +27 query I rowsort SELECT ALL 48 + + + 42 @@ -2737,8 +2758,11 @@ 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\(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\. +query II valuesort SELECT + 78 * + + 70 AS col1, - COUNT ( * ) * + 46 * + - NULLIF ( - + 23, - ( 27 ) ) AS col1 +---- +-1058 +5460 query II rowsort label-510 SELECT DISTINCT 17 * + CAST ( NULL AS INTEGER ) AS col0, 4 @@ -2846,8 +2870,11 @@ SELECT - 87 * + - 12 * - CASE 87 WHEN + COUNT ( * ) * + 52 - + + COALESCE ( 62, # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 1173 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col2" at position 0 and "Int64\(23\) \* Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 38 col2, 23 * + 51 AS col2 +---- +1173 +38 query I rowsort label-531 SELECT ALL + + 24 - - ( + - 39 ) + - COUNT ( * ) / COUNT ( * ) @@ -3095,8 +3122,11 @@ SELECT ALL + 81 + + 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2173 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \* \(\- Int64\(41\)\) AS col1" at position 0 and "Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 53 * + - ( 41 ) AS col1, 71 AS col1 +---- +-2173 +71 query II rowsort label-578 SELECT 27 * + + COUNT ( ALL + 50 ), + 44 * - 25 AS col2 @@ -3763,8 +3793,11 @@ SELECT 68 + + 88 col1, 69 * - - 33 + + ( + - 82 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -360 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(\-5\) AS col2" at position 0 and "Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 * + - 5 AS col2, - 74 AS col2 +---- +-360 +-74 query I rowsort SELECT 78 + - 36 + - 31 * + + 52 + 94 @@ -3809,8 +3842,11 @@ SELECT DISTINCT + 55 + + 99 + - 28 / - 53 * + - 82 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) / Int64\(64\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 91 / + 64 + + ( COUNT ( * ) ) col0, + 30 AS col0 +---- +0 +30 query II rowsort SELECT - 16 + + + 0 AS col1, - COALESCE ( + + 51, 69 + + 63 + - 75 * - - 89 * + 49 * 83, + 10 ) @@ -3898,8 +3934,11 @@ 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\(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\. +query II valuesort SELECT 82 * + COUNT ( * ) * + 9 AS col1, 65 + ( - 42 ) * + 66 + + + 74 AS col1 +---- +-2633 +738 query I rowsort label-730 SELECT ALL 37 / - + 63 @@ -4016,8 +4055,11 @@ SELECT - COUNT ( * ) - + ( - - 87 ) + + + ( 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "coalesce\(Int64\(63\), \(\- Int64\(\-10\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + COALESCE ( 63, - - 10 ) AS col2 +---- +1 +63 query I rowsort label-753 SELECT ALL NULLIF ( - - 46, - COALESCE ( - COUNT ( * ), + 41 ) / + + 1 * 51 ) AS col1 @@ -4179,8 +4221,11 @@ SELECT 78 AS col1, - 61 * 84 # 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\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 10 AS col1, 45 AS col1 +---- +10 +45 query I rowsort SELECT DISTINCT 22 - - + 57 AS col2 @@ -4206,8 +4251,11 @@ SELECT - + 93 AS col0, 45 - 79 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 81 -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\(\-81\)\), Int64\(90\), Int64\(\-49\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 AS col2, + COALESCE ( - - 81, + ( 90 ), - 49 ) AS col2 +---- +21 +81 query II rowsort SELECT - + 39 col2, - 68 @@ -4253,8 +4301,11 @@ SELECT DISTINCT + COALESCE ( - COUNT ( * ), - 39 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7743 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) \* Int64\(\-89\) AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 87 * - 89 AS col1, 28 col1 +---- +28 +7743 query I rowsort label-798 SELECT + 89 * 40 - + NULLIF ( - COUNT ( * ), 22 * + - ( + 62 ) + NULLIF ( 27, + 78 ) ) @@ -5239,14 +5290,20 @@ SELECT ALL 17 AS col1, + COUNT ( * ) * + + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -10918 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col0" at position 0 and "Int64\(\-72\) \+ Int64\(74\) \+ Int64\(30\) \* sum\(Int64\(7\)\) \* Int64\(\-52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 68 col0, - 72 + + 74 + 30 * + ( SUM ( ALL + 7 ) ) * ( - 52 ) AS col0 +---- +-10918 +68 # 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\(1\)\) AS count\(\*\), Int64\(11\) \+ Int64\(54\)\) \* Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 20 AS col2, 27 * + MIN ( 30 ) + ( COALESCE ( 31, + COUNT ( * ), 11 + 54 ) ) * 33 AS col2 +---- +1833 +20 query I rowsort label-990 SELECT ALL + 44 * - - ( + MAX ( 76 ) ) @@ -5427,8 +5484,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 8820 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ Int64\(11\) AS col1" at position 0 and "Int64\(90\) \* Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 + 11 AS col1, 90 * 98 AS col1 +---- +64 +8820 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -5665,8 +5725,12 @@ SELECT - ( + - 82 ) + + + 75 + - + 96 # Datafusion - Expected - 67 # Datafusion - Expected - -91 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col1" at position 0 and "Int64\(91\) \* Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort SELECT DISTINCT 67 AS col1, 91 * - 1 AS col1, - COUNT ( * ) * - 22 * - NULLIF ( 3, - AVG ( ALL COALESCE ( 62, 40 ) ) + 81 ) +---- +-66 +-91 +67 query I rowsort SELECT 93 * + 68 AS col0 @@ -5852,8 +5916,11 @@ 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\(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\. +query II valuesort SELECT ALL + - 66 * - - COUNT ( * ) AS col0, 83 + - 82 AS col0 +---- +-66 +1 query I rowsort SELECT DISTINCT - 50 * 2 + + 59 AS col2 @@ -6791,8 +6858,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, 86 AS col2 +---- +1 +86 query II rowsort label-1286 SELECT ALL - 14 AS col1, - COUNT ( * ) @@ -6813,8 +6883,11 @@ SELECT DISTINCT COALESCE ( - - COALESCE ( 49, + COUNT ( * ) / - + 43 * 0, 67 / + # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(97\) AS col0" at position 0 and "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(8\) \* Int64\(41\) \* Int64\(6\) \+ Int64\(24\) / Int64\(32\) \* \(\- CAST\(Int64\(\-91\) AS Int32\)\) \* Int64\(97\) \* nullif\(Int64\(25\), Int64\(\-41\) \* Int64\(76\)\) \- Int64\(\-83\)\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-98 +NULL query II rowsort SELECT ALL ( - 15 ) AS col1, + 93 col0 @@ -7051,8 +7124,11 @@ SELECT ALL + 19 + + - ( + 44 ) AS col1, - MAX ( 82 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "Int64\(\-23\) \+ Int64\(\-67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 17 col0, - 23 + - 67 AS col0 +---- +-90 +17 query I rowsort label-1335 SELECT 10 + ( COUNT ( * ) ) @@ -7451,8 +7527,11 @@ SELECT 63 * + COALESCE ( 29, 56, 8 + + 0 ) - - 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 86 AS col0, + COUNT ( * ) AS col0 +---- +1 +86 query I rowsort SELECT ALL - ( + - 86 ) AS col1 @@ -7600,8 +7679,11 @@ SELECT + - 29 AS col1, 30 + + 40 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4027 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \+ Int64\(\-61\) \* \(\- Int64\(65\)\) \+ \(\- Int64\(\-80\)\) AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 18 + - 61 * - + 65 + - - 80 AS col0, 6 AS col0 +---- +4027 +6 query I rowsort SELECT ALL - - CASE - 65 WHEN 89 THEN NULLIF ( - 47, + 24 ) END AS col1 @@ -8244,8 +8326,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 AS col2, + 95 AS col2 +---- +78 +95 query I rowsort SELECT 48 + + 28 @@ -8395,8 +8480,11 @@ SELECT - + 36 + 33 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-23\)\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 23 AS col2, + 30 AS col2 +---- +23 +30 query I rowsort label-1587 SELECT - - MAX ( ALL - 58 ) AS col1 @@ -8421,8 +8509,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) * + 76 * + 80 AS col2, COUNT ( * ) * - - 56 AS col2 +---- +56 +6080 query I rowsort label-1592 SELECT + 48 + CAST ( ( + - MAX ( - 37 ) ) AS INTEGER ) col1 @@ -8536,8 +8627,11 @@ SELECT - + 91 * + COUNT ( * ) * - 89 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 3446 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col0" at position 0 and "Int64\(27\) \* Int64\(91\) \+ Int64\(54\) \+ Int64\(\-17\) \* Int64\(\-55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - 93 ) AS col0, + 27 * + 91 + 54 + + ( - 17 ) * + - 55 AS col0 +---- +-93 +3446 query I rowsort SELECT - 94 + + + 35 + + 84 + + 11 + 1 AS col1 @@ -8773,8 +8867,11 @@ SELECT ALL - - 44 * - 25 + - 60 * - - 3 + + + 51 + + - 21 - 39 * - ( 90 ) / - CO # Datafusion - Datafusion expected results: # Datafusion - Expected - -3596 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-5\)\)\) \* Int64\(\-61\) \+ sum\(Int64\(2\)\) \* Int64\(\-89\) \* Int64\(19\) \+ Int64\(91\) AS col2" at position 0 and "Int64\(17\) / nullif\(Int64\(18\), Int64\(93\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MIN ( + - 5 ) * - 61 + + SUM ( 2 ) * - 89 * + ( + 19 ) + 91 col2, 17 / NULLIF ( 18, 93 ) AS col2 +---- +-3596 +0 query I rowsort SELECT + 77 + 27 @@ -9071,8 +9168,11 @@ SELECT DISTINCT 21, ( 40 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - -232 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \+ Int64\(\-16\) \+ \(\- Int64\(46\)\) AS col2" at position 0 and "Int64\(4\) \* Int64\(\-58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 10 + + - 16 + - ( + 46 ) AS col2, 4 * + - 58 AS col2 +---- +-232 +-52 query I rowsort label-1716 SELECT - COUNT ( * ) * - - NULLIF ( + + ( + 15 ), 13 ) @@ -9128,8 +9228,11 @@ 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\(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\. +query II valuesort 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 +---- +42 +49 query I rowsort label-1727 SELECT + - 49 / - 73 * + - 33 @@ -9834,8 +9937,11 @@ 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\(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\. +query II valuesort SELECT ALL + - COUNT ( * ) * + - 7 + - 29 * - 72 + + - 71 AS col2, 66 col2 +---- +2024 +66 query II rowsort SELECT DISTINCT 83 + - 86 + + 74, 35 col1 @@ -10063,8 +10169,11 @@ SELECT + 95 - + 31 * + - 78 # 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 "\(\- sum\(DISTINCT CAST\(NULL AS Float64\)\)\) \+ \(\- Int64\(18\)\) \* \(\- Int64\(\-37\)\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - SUM ( DISTINCT + + CAST ( NULL AS FLOAT8 ) ) + - + 18 * - - 37 AS col1, 22 AS col1 +---- +22 +NULL query I rowsort SELECT - - NULLIF ( - + 78, + + 59 ) AS col1 @@ -10215,8 +10324,11 @@ SELECT - 32 * 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(40\) / Int64\(\-37\) AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 72 * 40 / - 37 AS col2, 15 AS col2 +---- +-77 +15 query I rowsort SELECT ALL + 40 - - ( - 92 ) @@ -10355,8 +10467,11 @@ 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\(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\. +query RI valuesort 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 +---- +-41 +NULL query I rowsort label-1958 SELECT DISTINCT - 29 * 28 + - COUNT ( * ) + - 51 + - 10 @@ -10376,8 +10491,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col1" at position 0 and "Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 77 col1, - 86 AS col1 +---- +-86 +77 query I rowsort label-1962 SELECT + - 91 + - 58 + - COUNT ( * ) * 57 AS col2 @@ -10668,8 +10786,11 @@ SELECT 26 - - 10 - - ( + 59 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "Int64\(62\) \* \(\- coalesce\(Int64\(79\), Int64\(\-65\) \- Int64\(55\), CAST\(NULL AS Int32\) \* Int64\(51\)\)\) \+ CASE Int64\(43\) WHEN Int64\(13\) THEN Int64\(\-72\) END \* Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 20 AS col0, 62 * - COALESCE ( 79, + - 65 - 55, CAST ( NULL AS INTEGER ) * 51 ) + + CASE ( 43 ) WHEN 13 THEN + - 72 END * 73 AS col0 +---- +20 +NULL query I rowsort SELECT ALL 97 * - 79 AS col0 @@ -10909,8 +11030,11 @@ SELECT - 83 + + 53 * - ( + 80 ) * + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(10\) AS Int32\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(56\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( + 10 AS INTEGER ) + - - COUNT ( * ) + 56 AS col1, 64 AS col1 +---- +47 +64 query I rowsort SELECT - 54 - - 92 @@ -11062,8 +11186,11 @@ SELECT + 45 / + - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5933 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(67\) WHEN \(\- Int64\(10\)\) THEN Int64\(77\) ELSE coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), min\(Int64\(\-71\)\)\) \* Int64\(69\) \+ Int64\(66\) \* Int64\(92\) END \- Int64\(69\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(81\) \* Int64\(21\) \+ Int64\(\-29\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +5933 +NULL query I rowsort SELECT DISTINCT COALESCE ( - 88, + - 44 ) @@ -11491,8 +11618,11 @@ SELECT ( ( + + 37 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 21 AS col1, + COUNT ( * ) AS col1 +---- +1 +21 query I rowsort label-2176 SELECT ALL ( + COUNT ( * ) ) * - 6 * - - COUNT ( * ) @@ -11632,8 +11762,11 @@ SELECT ALL NULLIF ( + 78, COUNT ( * ) ) AS col1 # 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 "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 80 AS col1, 3 AS col1 +---- +3 +80 query II rowsort label-2203 SELECT 53, - 67 * MAX ( + CAST ( NULL AS INTEGER ) ) * 30 + - + 0 AS col0 @@ -11736,8 +11869,11 @@ SELECT + - 18, - 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col0" at position 0 and "CAST\(coalesce\(nullif\(Int64\(\-16\), Int64\(93\)\), Int64\(9\) \- \(\- Int64\(\-32\)\) \+ Int64\(28\) / Int64\(35\)\) AS Int32\) / Int64\(74\) \* Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 55 AS col0, CAST ( COALESCE ( + NULLIF ( - 16, + 93 ), 9 - - - 32 + + 28 / 35 ) AS INTEGER ) / 74 * 23 AS col0 +---- +-55 +0 query I rowsort label-2223 SELECT + 25 * 25 + COUNT ( * ) + + 17 * + NULLIF ( - - 45, + COUNT ( * ) + - 78 ) @@ -11752,8 +11888,11 @@ SELECT ALL + 37 * + - 24 + + - 38 - - COUNT ( * ) - - 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 82 AS col2, 40 AS col2 +---- +40 +82 query II rowsort SELECT DISTINCT 33 AS col0, 43 @@ -11856,8 +11995,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - COUNT ( ALL + 98 ) AS col0, - COUNT ( * ) AS col0, + ( - + ( - ( - 18 ) ) ) +---- +-1 +-1 +-18 query I rowsort label-2245 SELECT DISTINCT - COUNT ( * ) * 16 AS col0 @@ -11934,8 +12077,11 @@ SELECT - ( 5 ) + - 63 + - + 64 * 56 * 73 - + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* sum\(Int64\(1\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-52\) AS col0" at position 0 and "Int64\(97\) \- \(\- nullif\(Int64\(\-4\), Int64\(94\) \+ coalesce\(nullif\(Int64\(\-94\), Int64\(16\)\), nullif\(Int64\(63\), Int64\(66\) \+ count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(96\)\) \+ Int64\(\-45\)\) / Int64\(38\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +93 +NULL query II rowsort label-2260 SELECT 35 * + ( - 27 ) * - 93 * + - MAX ( ALL - 97 ) + + 26 col2, - 46 col0 @@ -12393,8 +12539,11 @@ SELECT NULLIF ( - + 45, + 52 ) * 99 - + COUNT ( * ) + - ( + COALESCE ( - ( 48 ), # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- \(\- CAST\(NULL AS Int32\)\)\), Int64\(36\) \* Int64\(\-75\)\) \* Int64\(32\) AS col2" at position 0 and "\(\- \(\- sum\(DISTINCT Int64\(29\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( - - CAST ( NULL AS INTEGER ), + + 36 * - 75 ) * 32 AS col2, + ( + ( - - SUM ( DISTINCT 29 ) ) ) AS col2 +---- +29 +NULL query I rowsort SELECT 87 * NULLIF ( + 3, - 97 ) AS col0 @@ -12697,8 +12846,12 @@ SELECT + 32 - MIN ( + 57 ) / COUNT ( * ) AS col1 # Datafusion - Expected - -2250 # Datafusion - Expected - 80 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* Int64\(\-45\) AS col0" at position 0 and "Int64\(84\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 50 * - 45 AS col0, CAST ( - 3 AS INTEGER ) + 83 AS col1, + + ( 84 ) AS col0 +---- +-2250 +80 +84 query I rowsort SELECT - 56 + - 57 + + 58 + 82 * + + 52 - + 24 AS col0 @@ -13961,8 +14114,11 @@ SELECT + 20 * - - 29 + + 25 + - 72 - + COUNT ( * ) * NULLIF ( 55 * COUNT ( ALL + # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 880 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ Int64\(6\) AS col1" at position 0 and "Int64\(44\) \* Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 + 6 AS col1, + 44 * 20 AS col1 +---- +31 +880 query I rowsort SELECT DISTINCT - COALESCE ( + 15, 93 ) AS col0 @@ -14658,8 +14814,11 @@ SELECT DISTINCT - 62 * COUNT ( + + 55 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 2444 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- \(\- Int64\(4\)\)\), \(\- Int64\(\-34\)\) \+ Int64\(\-96\) / Int64\(\-93\)\)\) AS col1" at position 0 and "Int64\(26\) \* Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( - ( - + 4 ), - - 34 + - 96 / - 93 ) AS col1, + 26 * 94 AS col1 +---- +-4 +2444 query I rowsort SELECT 77 * + + 91 @@ -14837,8 +14996,11 @@ SELECT - 39 * - MAX ( 53 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -6707 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-28\) \+ Int64\(36\) \+ \(\- coalesce\(\(\- nullif\(Int64\(\-79\), Int64\(80\)\)\), Int64\(78\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + COUNT ( * ) ) AS col0, - 28 + + 36 + - COALESCE ( - NULLIF ( + - 79, 80 ), + 78 * - COUNT ( * ) ) * 85 AS col0 +---- +-6707 +1 query II rowsort label-2811 SELECT + 3 + - + MAX ( ALL + ( - 46 ) ), + ( + 1 ) / 64 + + 78 AS col0 @@ -15001,8 +15163,12 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - 5664 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* Int64\(59\) AS col2" at position 1 and "\(\- Int64\(27\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + COUNT ( * ), 96 * 59 col2, - ( + 27 ) AS col2 +---- +-27 +1 +5664 query I rowsort label-2842 SELECT ALL 58 / 46 + - SUM ( ALL 81 ) AS col2 @@ -15854,8 +16020,11 @@ SELECT ALL - ( - + 40 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99000 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* Int64\(44\) \* \(\- Int64\(\-45\)\) AS col2" at position 0 and "Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 50 * + 44 * - - 45 col2, 57 AS col2 +---- +57 +99000 query I rowsort SELECT ALL + 42 * - - 29 @@ -15906,8 +16075,12 @@ SELECT ALL 40 * + 91 AS col1 # Datafusion - Expected - 65 # Datafusion - Expected - 11616 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \* Int64\(12\) \* Int64\(22\) AS col1" at position 1 and "Int64\(87\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 65, 44 * 12 * + 22 col1, + 87 AS col1 +---- +11616 +65 +87 query I rowsort SELECT ALL 52 + + 44 @@ -16689,8 +16862,11 @@ SELECT + - COALESCE ( + 47, 46 + - 56 - CASE + CAST ( NULL AS INTEGER ) WHEN + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 3080 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col0" at position 0 and "Int64\(61\) / Int64\(\-48\) \+ Int64\(\-39\) \* \(\- Int64\(79\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 94 AS col0, 61 / - 48 + - 39 * - + 79 AS col0 +---- +3080 +94 query I rowsort SELECT + ( - ( 96 ) ) @@ -17127,8 +17303,11 @@ SELECT + 8 * 81 - + 23 * - 96 + 45 + COUNT ( * ) - + 67 / 1 + - 80 * + - 67 AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, 39 col2 +---- +1 +39 query I rowsort label-3248 SELECT DISTINCT + - 87 * - ( - CAST ( NULL AS INTEGER ) ) @@ -17145,8 +17324,12 @@ SELECT DISTINCT COUNT ( * ) AS col1, + 94 + COUNT ( + + 2 ) # Datafusion - Expected - 496 # Datafusion - Expected - 1 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-45\)\) \* Int64\(13\) \+ Int64\(\-97\) \+ Int64\(8\) AS col2" at position 0 and "count\(DISTINCT Int64\(70\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - 45 * 13 + - 97 + 8 AS col2, COUNT ( DISTINCT 70 ) AS col2, + 60 AS col0 +---- +1 +496 +60 query I rowsort label-3251 SELECT ALL + COUNT ( * ) + - + CAST ( 5 AS INTEGER ) @@ -17266,8 +17449,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT NULLIF ( + + COUNT ( * ), - - 29 ) / - 33 + + - 57 AS col2, - COUNT ( * ) AS col2 +---- +-1 +-57 query I rowsort SELECT ALL 26 * + + 97 * 91 + - 71 + - 18 * 31 * - + 50 @@ -17468,8 +17654,11 @@ SELECT 51 * + + 43 * 49 + - ( - 47 ) - 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - 1872896256 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col2" at position 0 and "CASE WHEN CAST\(\(\- max\(DISTINCT Int64\(\-75\)\)\) AS Int32\) IS NOT NULL THEN Int64\(4\) \* \(\- Int64\(48\)\) \* Int64\(51\) \* \(\- Int64\(\-54\)\) \* Int64\(\-77\) \* Int64\(46\) WHEN NOT NULL IN \(\[\(\- \(\- Int64\(\-49\)\)\) \* Int64\(\-1\), Int64\(\-41\), Int64\(\-14\) \- \(\- CASE \(\- Int64\(\-1\)\) WHEN \(\- Int64\(\-82\)\) THEN \(\- Int64\(\-23\)\) END\) / Int64\(46\) \- Int64\(\-87\) \* Int64\(52\)\]\) THEN Int64\(56\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 76 AS col2, CASE WHEN CAST ( - MAX ( DISTINCT - 75 ) AS INTEGER ) IS NOT NULL THEN + 4 * - + 48 * + 51 * - - 54 * - 77 * 46 WHEN NOT ( NULL ) IN ( + - ( - - 49 ) * - 1, - 41, - 14 - - CASE - - 1 WHEN - - 82 THEN - - 23 END / + 46 - - 87 * + 52 ) THEN 56 ELSE NULL END AS col2 +---- +-76 +1872896256 query I rowsort SELECT DISTINCT + 29 * - 8 AS col2 @@ -17496,8 +17685,11 @@ SELECT DISTINCT 4 col2, - ( - 41 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "coalesce\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 55 AS col2, + COALESCE ( - - COUNT ( * ), + CAST ( NULL AS INTEGER ) ) AS col2 +---- +1 +55 query I rowsort SELECT ALL - 28 - + 28 AS col2 @@ -17604,8 +17796,11 @@ SELECT + + NULLIF ( 98, MIN ( ALL + 43 ) ) * + 86 + + + 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - -788 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* \(\- Int64\(57\)\) \+ Int64\(\-47\) AS col1" at position 0 and "CAST\(Int64\(\-43\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 13 * ( - ( 57 ) ) + + ( - 47 ) AS col1, + CAST ( - 43 AS INTEGER ) AS col1 +---- +-43 +-788 query I rowsort label-3338 SELECT ALL + ( + COUNT ( * ) ) / 12 AS col0 @@ -17620,8 +17815,11 @@ SELECT - COUNT ( * ) / COUNT ( * ) * - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2281 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-5\)\) \+ Int64\(57\) \* Int64\(40\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( - 5 ) + + 57 * + 40 AS col2, - CAST ( NULL AS INTEGER ) AS col2 +---- +2281 +NULL query I rowsort SELECT 59 - - 83 col2 @@ -17827,8 +18025,11 @@ SELECT DISTINCT - 21 * - COUNT ( + 49 ) * + 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 960 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(10\)\) \* Int64\(\-96\) AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 10 * - 96 AS col0, 6 AS col0 +---- +6 +960 query I rowsort label-3380 SELECT NULLIF ( MAX ( DISTINCT + + 44 ), - + 70 / - - COUNT ( ALL - 22 ) * + + 61 ) @@ -18018,8 +18219,11 @@ SELECT ALL 81 * + - 61 * - + 55 * + - 53 # 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 "Int64\(5\) AS col0" at position 0 and "Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 AS col0, 11 AS col0 +---- +11 +5 query I rowsort SELECT DISTINCT - 92 - 49 @@ -18039,8 +18243,11 @@ SELECT ALL - + NULLIF ( - 76, + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col1" at position 0 and "Int64\(16\) \* Int64\(\-81\) / Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 AS col1, 16 * - 81 / + 80 AS col1 +---- +-16 +42 query I rowsort label-3420 SELECT 21 + - 51 / + COUNT ( * ) @@ -18148,8 +18355,11 @@ SELECT ALL - 8 + ( - 0 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2345 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* Int64\(35\) 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 II valuesort SELECT DISTINCT + 67 * + 35 AS col2, COUNT ( - 81 ) AS col2 +---- +1 +2345 query II rowsort label-3441 SELECT ALL 24 - 22, + COUNT ( + 68 ) col1 @@ -18750,8 +18960,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) + - 98 AS col2, 42 AS col2 +---- +-99 +42 query II rowsort label-3554 SELECT ALL 72 + - 30 + - - ( + 34 ) + - COUNT ( * ), - 55 + - 48 * - 56 + - COUNT ( * ) col0 @@ -19265,8 +19478,11 @@ SELECT - + COALESCE ( - - ( - COUNT ( * ) ), - 86, + SUM ( + 73 ) ) 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 "\(\- CASE Int64\(59\) WHEN Int64\(84\) \* Int64\(\-39\) THEN Int64\(23\) ELSE NULL END\) \* Int64\(\-94\) \+ Int64\(16\) \- Int64\(\-71\) AS col0" at position 0 and "count\(\(\- Int64\(\-45\)\)\) / Int64\(44\) / Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CASE + + 59 WHEN 84 * - 39 THEN 23 ELSE NULL END * - 94 + 16 - + - 71 col0, COUNT ( - - 45 ) / 44 / 54 AS col0 +---- +0 +NULL query I rowsort SELECT DISTINCT - 76 * + 46 * 27 @@ -19323,8 +19539,11 @@ SELECT ALL COUNT ( * ) + - 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 AS col2, 75 AS col2 +---- +42 +75 query II rowsort SELECT 2 + + 71 AS col1, - 50 * 49 AS col0 @@ -19937,8 +20156,11 @@ SELECT - 69, COUNT ( * ) + + + MIN ( ALL 55 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "Int64\(\-42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 25 AS col1, - 42 col1 +---- +-42 +25 query I rowsort label-3776 SELECT DISTINCT - COUNT ( * ) * - NULLIF ( 50, + 9 / - COUNT ( ALL 65 ) ) @@ -19954,8 +20176,11 @@ SELECT 59 AS col2, + 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 3936 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "Int64\(\-82\) \* Int64\(\-48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 90 AS col0, - 82 * - 48 col0 +---- +3936 +90 query I rowsort SELECT 80 * 27 * + - 14 col1 @@ -20669,8 +20894,11 @@ SELECT - COUNT ( DISTINCT + + 46 ) - - 14 - 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 928 # Datafusion - Expected - -159 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* Int64\(32\) AS col2" at position 0 and "Int64\(\-88\) \- Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 29 * 32 AS col2, - 88 - + 71 AS col2 +---- +-159 +928 query I rowsort label-3915 SELECT 90 / COALESCE ( 65, - 44, 20 ) * + + 42 @@ -21143,8 +21371,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \+ Int64\(4\) AS col2" at position 0 and "Int64\(\-92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 60 + + 4 col2, - 92 AS col2 +---- +-56 +-92 query I rowsort label-4006 SELECT CASE - COUNT ( * ) WHEN + + 76 - 46 THEN + 39 * + COALESCE ( + COUNT ( * ), COALESCE ( + 86, - - ( - CAST ( NULL AS INTEGER ) ) ) ) WHEN - + ( - 88 ) THEN - 53 END * 65 @@ -21284,8 +21515,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \+ Int64\(\-96\) AS col2" at position 0 and "sum\(Int64\(\-53\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 + + + ( + - 96 ) AS col2, SUM ( ALL - 53 ) AS col2 +---- +-24 +-53 query I rowsort label-4034 SELECT ALL - 89 / + 96 * + CASE - + 55 WHEN + 63 THEN + 90 ELSE 70 * + + 19 * + 48 END AS col0 @@ -21405,8 +21639,12 @@ SELECT 90 - + 50 AS col1 # Datafusion - Expected - NULL # Datafusion - Expected - 65 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col1" at position 1 and "Int64\(\-15\) \+ Int64\(\-67\) \+ \(\- max\(DISTINCT Int64\(\-50\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + CAST ( NULL AS INTEGER ) + + - 11 * + - 28 AS col0, + 65 AS col1, - 15 + - 67 + - MAX ( DISTINCT - 50 ) AS col1 +---- +-32 +65 +NULL query I rowsort label-4057 SELECT - 49 * CAST ( NULL AS INTEGER ) + - 92 @@ -21610,8 +21848,11 @@ SELECT + 2 + 86 + + COUNT ( * ) - + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) / Int64\(\-69\) \* Int64\(12\) AS col2" at position 0 and "Int64\(\-52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 19 / + - 69 * + 12 AS col2, - 52 AS col2 +---- +-52 +0 query I rowsort label-4096 SELECT ALL COUNT ( * ) + + - 30 @@ -23718,14 +23959,20 @@ 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\(Int64\(1\)\) AS count\(\*\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 + - + 85 AS col1, + NULLIF ( + COUNT ( * ), - COUNT ( * ) ) AS col1 +---- +-85 +1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 3013 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "Int64\(73\) \+ \(\- Int64\(\-70\)\) \* Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + 30 ) AS col1, + 73 + - - 70 * + + 42 AS col1 +---- +30 +3013 query I rowsort SELECT - 22 * 92 AS col1 @@ -23771,8 +24018,11 @@ SELECT - + ( + - 71 ), COUNT ( * ) * 89 + - + COALESCE ( COUNT ( * ), - 9 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 425 # Datafusion - Expected - -5376 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* Int64\(5\) AS col1" at position 0 and "Int64\(84\) \* \(\- Int64\(64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 85 * 5 AS col1, 84 * - + 64 AS col1 +---- +-5376 +425 query II rowsort SELECT 25 + + 9 + 3, + 2 AS col1 @@ -24203,8 +24453,11 @@ SELECT DISTINCT 16 * - 64 + - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -380 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "Int64\(10\) \* Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 46 col0, 10 * - 38 AS col0 +---- +-380 +46 query I rowsort label-4598 SELECT ALL 66 * - CASE + COALESCE ( - 38, 62 ) WHEN + COUNT ( ALL - 37 ) THEN - COUNT ( * ) ELSE NULL END + + 73 AS col2 @@ -24684,8 +24937,11 @@ SELECT ALL 76 * - 87 * - 56 # 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 "Int64\(36\) AS col1" at position 0 and "Int64\(59\) / Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 36 AS col1, + 59 / + 5 col1 +---- +11 +36 query I rowsort label-4689 SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 83 + 4 - - 5 @@ -24834,8 +25090,11 @@ SELECT ALL 31 + - 65 * + 77 * + 37 AS col0, + 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \* Int64\(\-4\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 16 * - 4 AS col1, + CAST ( NULL AS INTEGER ) col1 +---- +64 +NULL query I rowsort label-4717 SELECT DISTINCT CAST ( 28 AS INTEGER ) AS col1 @@ -24936,8 +25195,11 @@ SELECT ALL 32 + + 1 * + + 86 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \* \(\- Int64\(12\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 2 * - + 12 AS col1, CAST ( NULL AS INTEGER ) AS col1 +---- +24 +NULL query I rowsort label-4736 SELECT + - NULLIF ( 72, - 21 * 47 * COUNT ( * ) ) @@ -24997,8 +25259,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "sum\(Int64\(\-19\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 col2, SUM ( + ( - 19 ) ) AS col2 +---- +-19 +34 query I rowsort SELECT 69 - - 95 AS col1 @@ -25008,8 +25273,11 @@ SELECT 69 - - 95 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 3 AS col0, CAST ( NULL AS INTEGER ) AS col0 +---- +3 +NULL query II rowsort label-4750 SELECT 4 * - CAST ( NULL AS INTEGER ) / + - COUNT ( * ) col0, + 36 AS col1 @@ -25078,8 +25346,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-3\) \* Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 56 + - - 74 / - 81 col0, COUNT ( * ) + - 3 * + + 48 AS col0 +---- +-143 +-56 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -25346,8 +25617,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) * - - 26 AS col0, 47 AS col0 +---- +26 +47 query I rowsort label-4814 SELECT COUNT ( DISTINCT CAST ( + 69 AS INTEGER ) ) AS col1 @@ -25518,8 +25792,11 @@ SELECT DISTINCT 84 / 36 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23143 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \* \(\- nullif\(\(\- Int64\(\-23\)\), \(\- \(\- max\(Int64\(45\)\)\)\) / Int64\(70\)\)\) \* Int64\(\-19\) \- Int64\(\-18\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 53 * - NULLIF ( - - 23, - - MAX ( ALL + 45 ) / 70 ) * - 19 - + - 18 AS col2, + 99 col2 +---- +-23143 +99 query I rowsort label-4847 SELECT - 7 / - - 90 * - 65 @@ -25704,8 +25981,11 @@ 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\(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\. +query II valuesort SELECT 95 * - + 56 + - ( - 72 ) AS col0, - 14 + + COUNT ( * ) + 8 - + 18 * - 0 / - - 1 AS col0 +---- +-5 +-5248 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -25751,8 +26031,11 @@ SELECT - 42 * 44 * 48 + - + 30 # 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\(78\) / CAST\(NULL AS Float64\) 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 RI valuesort SELECT DISTINCT + 78 / + CAST ( NULL AS FLOAT8 ) AS col0, MAX ( + - 47 ) AS col0 +---- +-47 +NULL query I rowsort SELECT ALL + 5 + - 93 @@ -26179,8 +26462,11 @@ SELECT 88, 38 * - 39 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3430 # Datafusion - Expected - 1480 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(80\)\) \+ Int64\(\-90\) \* Int64\(\-1\) \* Int64\(39\) AS col1" at position 0 and "Int64\(\-37\) \* Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 80 + - 90 * + - 1 * + 39 AS col1, - 37 * - 40 AS col1 +---- +1480 +3430 query II rowsort SELECT DISTINCT + + 71 + + 85 AS col2, + 61 * + 70 * - 55 AS col1 @@ -26217,8 +26503,11 @@ SELECT - CAST ( - + 23 AS INTEGER ) * - - 94 * + 51 * 9 # 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\(\-26\) / Int64\(\-42\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 26 / - 42 AS col1, 19 col1 +---- +0 +19 query I rowsort SELECT DISTINCT - 99 + + 90 AS col2 @@ -26484,8 +26773,11 @@ SELECT DISTINCT - COALESCE ( - 61, 78 - + 7 + - ( 89 ) * - ( + 90 ), + - 61 ) + # Datafusion - Datafusion expected results: # Datafusion - Expected - 4087 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* Int64\(78\) \+ \(\- Int64\(26\)\) \* Int64\(72\) \+ Int64\(31\) AS col2" at position 0 and "Int64\(78\) / \(\- Int64\(78\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 76 ) * + + 78 + - + 26 * + 72 + 31 AS col2, 78 / - + 78 AS col2 +---- +-1 +4087 query I rowsort SELECT ALL - 68 + - + ( 82 ) @@ -26867,8 +27159,12 @@ NULL # Datafusion - Expected - 34 # Datafusion - Expected - 93 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 34 col1, + 93 AS col1, + - 11 +---- +-11 +34 +93 query II rowsort SELECT - 35, 22 AS col0 @@ -26901,8 +27197,11 @@ SELECT DISTINCT + 2 + 96 + - 11 # 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\(41\) \+ Int64\(\-77\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 41 + + - 77 AS col1, + 85 AS col1 +---- +-36 +85 query II rowsort SELECT DISTINCT 51 AS col2, ( + 68 ) @@ -27114,8 +27413,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1290 # Datafusion - Expected - -6156 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-30\)\) \* Int64\(\-43\) AS col2" at position 0 and "Int64\(76\) \* Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 30 * - 43 AS col2, + 76 * + - 81 AS col2 +---- +-1290 +-6156 query II rowsort SELECT - + 19 * - 1 AS col2, - 5 @@ -27241,8 +27543,11 @@ SELECT 66 * + 50 + - - CAST ( NULLIF ( ( + + 86 ), COALESCE ( - 90, - - 81 * NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - 665 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \- coalesce\(Int64\(\-60\), Int64\(76\) \* \(\- Int64\(1\)\) \+ count\(Int64\(\-67\)\) \+ Int64\(35\) \+ Int64\(61\) \* Int64\(52\) / \(\- Int64\(\-29\)\) \* CAST\(NULL AS Int32\) / Int64\(26\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-1\)\) \* Int64\(11\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +665 +NULL query I rowsort label-5171 SELECT + ( - COUNT ( * ) ) * + 98 @@ -27706,8 +28011,11 @@ SELECT + 82 / + - 28 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5104 # Datafusion - Expected - 2030 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \* \(\- Int64\(58\)\) AS col2" at position 0 and "Int64\(58\) \* Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 88 * - + 58 col2, 58 * + + 35 AS col2 +---- +2030 +5104 query I rowsort SELECT - 79 * 53 + - 8 AS col0 @@ -27779,8 +28087,11 @@ 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\(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\. +query II valuesort SELECT ALL 71 * + COUNT ( * ) * - MAX ( - NULLIF ( 89, + 4 + - 97 ) ) AS col1, + 0 AS col1 +---- +0 +6319 query I rowsort SELECT ALL - 13 * - 52 @@ -27805,8 +28116,11 @@ SELECT + ( + - MIN ( - 40 ) ) + 57 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -868 # Datafusion - Expected - 2670 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \* Int64\(28\) AS col2" at position 0 and "Int64\(30\) \* Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 * 28 AS col2, + 30 * 89 AS col2 +---- +-868 +2670 query I rowsort SELECT + 36 * - 52 AS col0 @@ -28537,8 +28851,11 @@ 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\(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\. +query II valuesort 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 +---- +288 +NULL query I rowsort SELECT + - 20 + + - 94 AS col0 @@ -28767,8 +29084,11 @@ SELECT - 85, ( - 19 ) * - 63 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -475 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "Int64\(5\) \* Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 89 AS col2, + 5 * - 95 AS col2 +---- +-475 +89 query I rowsort label-5462 SELECT ALL - MAX ( DISTINCT 10 ) * + 91 + 36 + - 52 * COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 @@ -29132,8 +29452,11 @@ SELECT + COUNT ( + - 3 ) + - + ( + 37 ) # 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\(54\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 54 col0, + 41 AS col0 +---- +41 +54 query I rowsort label-5531 SELECT - 63 / + - CASE + 31 WHEN - - COALESCE ( 77, MAX ( CASE - + 71 WHEN - 95 - + 28 THEN 18 + + + 87 * + 21 END ) + - 67, ( + COUNT ( * ) ) * 29 * 82 ) + - - CAST ( NULL AS INTEGER ) THEN - + ( - ( + 85 ) ) WHEN + 47 * + + 76 THEN + COUNT ( * ) END AS col0 @@ -29330,8 +29653,11 @@ SELECT ALL + 38 + + 68 AS col1 # 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\(\-81\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 AS col2, 0 AS col2 +---- +-81 +0 query I rowsort SELECT DISTINCT 25 - 62 @@ -29397,8 +29723,11 @@ SELECT ( + 6 ) + + 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 77 col1, 86 AS col1 +---- +-77 +86 query II rowsort SELECT ALL + 64, + 34 AS col2 @@ -29548,14 +29877,20 @@ SELECT + - SUM ( - 43 ) * 91, + 27 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 7440 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 0 and "Int64\(93\) \* Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( 35 ) col2, 93 * 80 AS col2 +---- +35 +7440 # 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) * 46 AS col1, 41 AS col1 +---- +41 +46 query I rowsort label-5612 SELECT DISTINCT COALESCE ( + COUNT ( * ), - 69, + 74, 96 * 78 + COUNT ( * ) + 25 ) @@ -29575,8 +29910,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) * + 68 * - - 63 AS col2, COUNT ( * ) * + 35 AS col2 +---- +-4284 +35 query I rowsort SELECT + 43 * 24 * 41 AS col2 @@ -29586,8 +29924,11 @@ SELECT + 43 * 24 * 41 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 AS col1, + 74 AS col1 +---- +38 +74 query II rowsort SELECT DISTINCT 65 col1, 96 AS col0 @@ -29613,8 +29954,11 @@ SELECT ALL + 0 * - NULLIF ( + 58, COUNT ( * ) + + 76 * + + 94 ) * + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col2" at position 0 and "Int64\(\-14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( + + ( - CAST ( NULL AS INTEGER ) ) ) AS col2, - 14 col2 +---- +-14 +NULL query I rowsort SELECT DISTINCT 36 + - NULLIF ( + 21, + + 84 ) * + 33 AS col1 @@ -29688,8 +30032,11 @@ SELECT SUM ( ALL - 36 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2628 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \* \(\- Int64\(\-71\)\) \+ Int64\(72\) AS col0" at position 0 and "Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 36 * - - 71 + + + 72 AS col0, - 64 AS col0 +---- +-64 +2628 query II rowsort label-5637 SELECT - COUNT ( * ) AS col0, - 8 @@ -29728,8 +30075,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-81\)\) AS col1" at position 0 and "Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 81 AS col1, + 70 col1 +---- +70 +81 query I rowsort SELECT ALL - + 2 * + 25 AS col2 @@ -29878,8 +30228,11 @@ SELECT ALL + 82 / + - COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2208 # Datafusion - Expected - 189 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \* Int64\(96\) AS col2" at position 0 and "Int64\(91\) \+ \(\- Int64\(\-98\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 23 * + 96 AS col2, 91 + - - 98 col2 +---- +-2208 +189 query I rowsort label-5673 SELECT 26 * + CAST ( 21 AS INTEGER ) AS col1 @@ -31451,8 +31804,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) col0, - COALESCE ( - - ( + + 15 ), COUNT ( * ) * - MIN ( - - 46 ) + - 80 * - 83, + 5 ) + 79 col0 +---- +-1 +64 query II rowsort SELECT 89 + - - ( - - 57 ) AS col2, 2 * - - 47 col0 @@ -31871,8 +32227,12 @@ SELECT + ( + - 79 ) # Datafusion - Expected - -73 # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col2" at position 0 and "nullif\(\(\- CASE Int64\(80\) WHEN Int64\(1\) THEN Int64\(\-79\) WHEN Int64\(52\) THEN Int64\(33\) \* Int64\(45\) ELSE NULL END\), coalesce\(Int64\(28\), coalesce\(Int64\(24\), CAST\(Int64\(85\) AS Int32\), Int64\(66\) \+ Int64\(21\)\) \+ Int64\(52\), \(\- Int64\(\-88\)\) \+ Int64\(46\)\) \* Int64\(3\) \- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(34\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-73 +NULL +NULL query I rowsort label-6058 SELECT DISTINCT + - ( COUNT ( * ) ) - 4 * + 76 @@ -31989,8 +32349,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(33\)\) AS col1" at position 0 and "Int64\(\-74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 33 AS col1, - 74 AS col1 +---- +-33 +-74 query I rowsort label-6080 SELECT ALL - - MAX ( ALL + ( - + 68 ) ) AS col1 @@ -32251,8 +32614,11 @@ SELECT + + ( 34 ) * + 64 * + 72 + + 74 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 66 AS col0, 69 AS col0 +---- +66 +69 query I rowsort label-6130 SELECT + ( + NULLIF ( - - 56, COUNT ( * ) + 81 - - 97 - 45 ) ) AS col0 @@ -32268,8 +32634,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * + + ( 26 ) + - - ( - - 1 ) * 31 AS col1, + 44 + + 31 AS col1 +---- +57 +75 query I rowsort SELECT ALL ( 50 ) col1 @@ -32407,8 +32776,11 @@ SELECT ( - + 97 ) # 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\(\-77\) \+ Int64\(98\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 77 + + 98 AS col1, + 27 AS col1 +---- +21 +27 query I rowsort label-6159 SELECT ALL + MIN ( - - 59 ) AS col1 @@ -32439,8 +32811,11 @@ SELECT COUNT ( * ) + + 67 AS col0, 88 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26622 # Datafusion - Expected - 97200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(27\) \* \(\- nullif\(Int64\(58\), Int64\(\-77\)\)\) AS col2" at position 0 and "Int64\(72\) \* Int64\(75\) \* Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 * + 27 * - NULLIF ( 58, - 77 ) AS col2, 72 * 75 * + 18 col2 +---- +-26622 +97200 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -32463,8 +32838,11 @@ SELECT 58 + + + 83 * + - 11 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3276 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(\-78\) AS col2" at position 0 and "Int64\(53\) \* \(\- Int64\(94\)\) / \(\- CAST\(NULL AS Float64\)\) \* Int64\(57\) \+ Int64\(\-23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL + 42 * - 78 AS col2, + 53 * + - ( 94 ) / - CAST ( NULL AS FLOAT8 ) * + 57 + + - 23 AS col2 +---- +-3276 +NULL query II rowsort label-6169 SELECT DISTINCT 80 * COUNT ( * ), + 40 AS col1 @@ -32600,8 +32978,11 @@ SELECT ALL 59 + - 54 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 "Int64\(\-4\) 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 II valuesort SELECT DISTINCT - 4 AS col0, - COUNT ( + 78 ) AS col0 +---- +-1 +-4 query I rowsort label-6194 SELECT DISTINCT - MIN ( 24 ) @@ -33055,8 +33436,11 @@ SELECT + 22 * + - 50 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) \* \(\- Int64\(\-4\)\) \+ \(\- avg\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\)\) \+ Int64\(\-49\) \* Int64\(\-26\) \* Int64\(58\) \* Int64\(11\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - 69 * - - 4 + - + AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) + - 49 * - 26 * + 58 * 11 AS col0, - 0 AS col0 +---- +0 +NULL query I rowsort label-6280 SELECT ALL 71 * + - 18 * + ( - 9 ) * 32 - 38 + - - 98 + - ( 58 ) * + 33 * COUNT ( * ) @@ -33208,8 +33592,11 @@ SELECT 42 + 14 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -4872 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "max\(Int64\(\-56\)\) \* Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 23 AS col1, MAX ( + ( + - 56 ) ) * + + 87 AS col1 +---- +-4872 +23 query I rowsort label-6308 SELECT COUNT ( - 77 ) * + - 46 @@ -34746,8 +35133,11 @@ SELECT DISTINCT + 16 * 92 + + 36 + + ( - 98 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 66 AS col1, - CAST ( NULL AS INTEGER ) + 63 col1 +---- +66 +NULL query I rowsort label-6598 SELECT + + COUNT ( * ) * - + 7 + + + COUNT ( * ) @@ -34779,8 +35169,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3900 # Datafusion - Expected - 30 -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 "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 75 * - + 52 AS col0, + 30 AS col0 +---- +30 +3900 query I rowsort SELECT ALL + 47 * ( - 80 ) + - 38 + + 63 AS col1 @@ -35026,8 +35419,11 @@ SELECT MAX ( ALL 50 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* \(\- Int64\(0\)\) \+ Int64\(50\) \+ Int64\(48\) \* CAST\(NULL AS Int32\) \- Int64\(\-46\) \* Int64\(18\) \* Int64\(\-44\) AS col0" at position 0 and "Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 13 * - - 0 + + 50 + 48 * + CAST ( NULL AS INTEGER ) - - 46 * + 18 * - 44 AS col0, 44 AS col0 +---- +44 +NULL query I rowsort label-6651 SELECT + + 4 * + + NULLIF ( - 3, - + ( - - NULLIF ( + 57, - 15 ) ) + 37 * + 13 * - + 71 ) + - MAX ( ALL + 0 ) @@ -35352,8 +35748,11 @@ SELECT + + COUNT ( * ) * - 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1551 # Datafusion - Expected - 2464 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \* \(\- \(\- Int64\(\-33\)\)\) AS col0" at position 0 and "Int64\(32\) \* Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 47 * - - ( - 33 ) AS col0, + 32 * + 77 AS col0 +---- +1551 +2464 query I rowsort label-6712 SELECT ALL + MAX ( - 84 ) * ( + 1 ) @@ -35870,8 +36269,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 * MAX ( + 97 ) AS col0, 16 * + - COUNT ( * ) AS col0 +---- +-16 +8827 query I rowsort SELECT - 11 * 53 @@ -35933,8 +36335,11 @@ SELECT 0 * - - 73 + - 54 - - + 65 + + - 47 * - + 37 * COUNT ( * ) * + 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1131 # Datafusion - Expected - 3835 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(87\) AS Int32\) \* CAST\(Int64\(13\) AS Int32\) AS col1" at position 0 and "Int64\(59\) \* Int64\(65\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( 87 AS INTEGER ) * CAST ( 13 AS INTEGER ) AS col1, 59 * 65 * COUNT ( * ) AS col1 +---- +1131 +3835 query I rowsort label-6820 SELECT DISTINCT MIN ( + + 23 ) + - 42 AS col1 @@ -36020,8 +36425,12 @@ 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\(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\. +query RII valuesort 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 +---- +-46 +6460 +NULL query I rowsort label-6837 SELECT 20 / - 70 - - + NULLIF ( 7, - - 82 ) col1 @@ -36697,8 +37106,11 @@ SELECT ALL + - 25 + - 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-1\) AS Int32\)\) \- Int64\(15\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( - 1 AS INTEGER ) - 15 AS col2, + ( + 33 ) AS col2 +---- +-14 +33 query I rowsort label-6964 SELECT ALL - NULLIF ( + - COUNT ( * ), + 46 * 32 + + ( + 62 ) + + 7 ) AS col0 @@ -36915,8 +37327,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 6 * + - 84 AS col0, - 23 * - COUNT ( * ) AS col0 +---- +23 +504 query I rowsort SELECT COALESCE ( 7, + 53 ) @@ -37544,8 +37959,11 @@ SELECT + - COUNT ( * ) + - 99 * 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1852 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* Int64\(39\) \+ \(\- Int64\(\-97\)\) AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 * + 39 + - - 97 AS col2, 46 AS col2 +---- +1852 +46 query I rowsort label-7126 SELECT - COALESCE ( COUNT ( * ), - 52 ) * - 69 @@ -37957,8 +38375,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 42 AS col0, 32 * + 2 + + + COUNT ( * ) + 85 AS col0 +---- +150 +42 query I rowsort label-7205 SELECT - 82 * 94 + + 65 + - COUNT ( * ) / - 26 * 18 * + + 19 @@ -38242,8 +38663,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) \+ \(\- Int64\(0\)\) AS col2" at position 0 and "CASE \(\- CAST\(Int64\(54\) AS Int32\)\) WHEN Int64\(\-10\) THEN Int64\(\-78\) \* Int64\(\-67\) \+ Int64\(79\) \+ Int64\(\-80\) \* Int64\(\-12\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 46 + - ( 0 ) col2, CASE - CAST ( + 54 AS INTEGER ) WHEN - 10 THEN - 78 * - 67 + 79 + - 80 * + - 12 ELSE NULL END AS col2 +---- +-46 +NULL query I rowsort label-7260 SELECT COUNT ( * ) + + 86 * ( - - 12 ) AS col1 @@ -38413,8 +38837,11 @@ SELECT ALL - MAX ( - 93 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6867 # Datafusion - Expected - 3520 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \+ Int64\(72\) \* \(\- Int64\(\-95\)\) AS col2" at position 0 and "Int64\(80\) \* Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 + 72 * - - 95 AS col2, + 80 * + 44 AS col2 +---- +3520 +6867 query II rowsort SELECT + 61 AS col2, 49 @@ -38457,8 +38884,11 @@ 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\(86\) AS col2" at position 0 and "Int64\(\-78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 86 AS col2, - 78 AS col2 +---- +-78 +86 query I rowsort label-7301 SELECT DISTINCT + - ( + 56 ) + - 62 + + - 58 + - COUNT ( - COALESCE ( 0, 51, + ( 43 ), - - 78 ) ) * 91 @@ -38509,8 +38939,11 @@ SELECT 96 / + 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 2050 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col1" at position 0 and "Int64\(82\) \* nullif\(Int64\(25\), Int64\(73\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 49 AS col1, 82 * NULLIF ( + + 25, 73 ) AS col1 +---- +2050 +49 query I rowsort label-7311 SELECT 73 + - MAX ( ALL + 98 ) * - COALESCE ( - 54, + + 43 ) - NULLIF ( + + 94, ( + 83 ) / 28 * + - COUNT ( * ) / 14 - + + 96 + 87 + + 84 + - 55 + 45 * - 94 * - 83 + + 16 - + 31 * 11 ) + + 82 + - SUM ( ALL + + 76 ) + 88 * - + 29 @@ -38659,8 +39092,11 @@ 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\(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\. +query II valuesort SELECT + - 95 + + + 4 AS col2, 22 - CASE + ( 33 ) WHEN - 49 - - - 60 * - - COUNT ( * ) + - 97 THEN NULL ELSE 0 END col2 +---- +-91 +22 query I rowsort label-7340 SELECT + 55 / + ( - 43 ) AS col1 @@ -39698,8 +40134,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 98 AS col0, + 23 + 26 - + 31 + + + 81 + + COUNT ( * ) * 86 AS col0 +---- +-98 +185 query I rowsort SELECT 75 - 66 @@ -40042,8 +40481,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col1" at position 0 and "max\(DISTINCT Int64\(\-62\)\) \+ Int64\(\-45\) / Int64\(\-59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 4 AS col1, + MAX ( DISTINCT - 62 ) + - 45 / + - 59 AS col1 +---- +-62 +4 query I rowsort SELECT ( + + 24 ) AS col0 @@ -40081,8 +40523,11 @@ SELECT NULLIF ( - 67, + 41 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - -971 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-42\), Int64\(\-82\)\) AS col1" at position 0 and "\(\- sum\(Int64\(11\)\)\) \* Int64\(93\) \+ Int64\(15\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(nullif\(\(\- Int64\(35\)\), Int64\(\-98\) \- CAST\(NULL AS Int32\)\) \- Int64\(2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( - 42, - 82 ) AS col1, - SUM ( ALL + 11 ) * + 93 + 15 - - - COUNT ( * ) * ( + NULLIF ( - ( 35 ), - 98 - CAST ( NULL AS INTEGER ) ) - ( 2 ) ) AS col1 +---- +-42 +-971 query I rowsort label-7613 SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) AS col0 @@ -40601,8 +41046,11 @@ NULL # 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\(0\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 0 col2, 93 col2 +---- +0 +93 query I rowsort label-7713 SELECT + - COUNT ( * ) / - ( COUNT ( * ) ) col0 @@ -40624,8 +41072,11 @@ SELECT 60 AS col0, + CAST ( 35 AS INTEGER ) * + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 80 AS col0, COUNT ( * ) AS col0 +---- +-80 +1 query I rowsort label-7717 SELECT ALL CASE 56 WHEN + 14 * - MIN ( + + 63 ) + 22 * + 9 + + - 3 THEN - - 70 + + NULLIF ( + CAST ( NULL AS INTEGER ), + 17 ) END @@ -40922,8 +41373,11 @@ SELECT DISTINCT - 5, COUNT ( * ) + - - COUNT ( ALL 53 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -203040 # Datafusion - Expected - -987 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(96\) \* Int64\(47\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(21\) \* Int64\(\-47\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 45 * - COUNT ( * ) * + 96 * + 47 AS col0, COUNT ( * ) * + 21 * - 47 / + + COUNT ( * ) AS col0 +---- +-203040 +-987 query I rowsort label-7774 SELECT - 15 * - 87 * - COALESCE ( - NULLIF ( - SUM ( DISTINCT + - 65 ), + 59 ), - CASE - + 32 WHEN - 31 THEN - 21 ELSE + COUNT ( * ) END * - - 93 * + 21 ) * - 7 AS col2 @@ -40975,8 +41429,11 @@ SELECT ALL 60 AS col1, + ( + CAST ( - 18 AS INTEGER ) ) - ( SUM ( 4 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 1458 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-71\)\) AS col0" at position 0 and "Int64\(18\) \* Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 71 AS col0, + 18 * + 81 AS col0 +---- +1458 +71 query II rowsort label-7784 SELECT 2 + + CAST ( - 96 AS INTEGER ) AS col0, - 86 + + 83 AS col1 @@ -42345,8 +42802,11 @@ SELECT ALL - + 1 * - 11 * 25 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- Int64\(\-80\)\) AS col0" at position 0 and "CAST\(Int64\(55\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) / - - 80 AS col0, CAST ( + + 55 AS INTEGER ) col0 +---- +0 +55 query II rowsort SELECT ALL 16 col0, 29 + 77 AS col2 @@ -42809,8 +43269,11 @@ SELECT ALL 31 * + 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 304 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(59\) \- Int64\(\-73\) \+ Int64\(6\) \* \(\- Int64\(\-9\)\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 3 * 59 - - 73 + 6 * - - 9 AS col2, 4 AS col2 +---- +304 +4 query I rowsort label-8134 SELECT DISTINCT - COALESCE ( - 46, - - COALESCE ( ( CAST ( NULL AS INTEGER ) ), - 39 ) + - + SUM ( DISTINCT + 98 ) ) + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - + 39 @@ -43138,8 +43601,11 @@ 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\(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\. +query II valuesort SELECT + + 23 * COUNT ( * ) / - - MIN ( ALL + 72 ) AS col0, + 20 + 4 AS col0 +---- +0 +24 query I rowsort SELECT + NULLIF ( + 47, - 98 + + ( + 61 ) ) @@ -43154,8 +43620,11 @@ SELECT ALL + - 23 / + 17 + - 22 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 AS col0, 58 AS col0 +---- +23 +58 query I rowsort label-8200 SELECT + 32 / - COALESCE ( + - 30, 16 * + 69 + 36 + ( 87 ) + + + 94 ) - + 56 col1 @@ -43291,8 +43760,11 @@ SELECT - 11 + - - 82 * + 54 + + 74 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \+ \(\- nullif\(Int64\(48\), Int64\(16\) \+ Int64\(\-32\) \* \(\- Int64\(\-43\)\) \+ Int64\(41\) / Int64\(\-34\)\)\) \+ Int64\(51\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 + - NULLIF ( + 48, + + 16 + - 32 * - - 43 + + 41 / + ( - 34 ) ) + + 51 AS col0, + ( + COUNT ( * ) ) AS col0 +---- +1 +57 query I rowsort label-8226 SELECT - ( - + COUNT ( * ) ) - + 69 AS col2 @@ -43725,8 +44197,11 @@ SELECT + 83 + 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 206 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-70\) \+ Int64\(\-3\) \* \(\- Int64\(92\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, - 70 + + - 3 * - + 92 AS col0 +---- +1 +206 query I rowsort label-8311 SELECT + + CAST ( NULL AS INTEGER ) * + 52 * + - 43 * - - 42 + COUNT ( * ) + + COUNT ( ALL - + 74 ) * - COUNT ( + 22 ) @@ -43847,8 +44322,11 @@ SELECT 36 * NULLIF ( - - 10, 89 - 5 * + + COUNT ( * ) ) * + 92 + MAX ( ALL + 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - -1080 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(Int64\(66\), Int64\(73\)\)\)\) AS col1" at position 0 and "\(\- max\(Int64\(\-27\)\)\) \* Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + - NULLIF ( 66, 73 ) ) AS col1, - MAX ( ALL - 27 ) * - 40 AS col1 +---- +-1080 +66 query I rowsort label-8334 SELECT DISTINCT - COUNT ( ALL + 88 ) * - 62 / ( - 93 ) + + - 76 * - COUNT ( * ) AS col2 @@ -43893,8 +44371,11 @@ SELECT DISTINCT - - 63 AS col1, + NULLIF ( + 57, + 49 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 4615 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col2" at position 0 and "nullif\(Int64\(71\), Int64\(61\) \+ Int64\(47\)\) \* Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 95 AS col2, + NULLIF ( + 71, + 61 + 47 ) * + 65 AS col2 +---- +-95 +4615 query II rowsort SELECT ALL 33, + 88 * ( + - 29 ) + + + 29 col0 @@ -43905,8 +44386,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 44 AS col0, COUNT ( * ) * + 98 AS col0 +---- +-44 +98 query I rowsort SELECT + NULLIF ( - - 13, - + 99 * 17 * + + 15 + + - 22 ) * 90 + 60 - + 34 + - - 61 @@ -44280,8 +44764,11 @@ SELECT ALL ( 66 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(68\)\) AS col2" at position 0 and "Int64\(\-78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - + 68 ) AS col2, - 78 AS col2 +---- +-68 +-78 query I rowsort SELECT DISTINCT + 75 * - - 30 * 99 * + ( ( + 6 ) ) @@ -44450,8 +44937,11 @@ SELECT 32 * NULLIF ( + 15, - 90 * - 53 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 AS col0, + 50 AS col0 +---- +22 +50 query I rowsort SELECT ( 87 ) - 8 * ( 51 ) + - 80 - 80 AS col0 @@ -44673,8 +45163,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + 11 + 52 * + MIN ( - NULLIF ( + 82, 76 + 60 ) ) * - 23 AS col1, 49 AS col1 +---- +49 +98084 query II rowsort SELECT - 98 AS col1, 22 @@ -44716,8 +45209,11 @@ SELECT + 79 / - 25 + - + COUNT ( * ) + - 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col2" at position 0 and "CASE Int64\(\-18\) WHEN Int64\(\-69\) \* \(\- \(\- \(\- sum\(DISTINCT Int64\(69\)\)\)\)\) / Int64\(\-99\) \* Int64\(\-78\) THEN Int64\(23\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 36 AS col2, CASE - 18 WHEN - 69 * - ( - - SUM ( DISTINCT 69 ) ) / - 99 * - 78 THEN + 23 END AS col2 +---- +-36 +NULL query I rowsort label-8500 SELECT DISTINCT - + 58 * - COUNT ( * ) * 19 * 15 * + - 53 AS col1 @@ -44794,8 +45290,12 @@ SELECT - NULLIF ( - 38, - + CAST ( NULL AS FLOAT8 ) ) * + 87 + COUNT ( ALL - 42 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(69\) AS col1" at position 1 and "\(\- count\(Int64\(\-84\)\)\) / Int64\(70\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT CASE - MIN ( + - 24 ) WHEN - + 47 THEN NULLIF ( 4, + 67 ) END, CAST ( NULL AS INTEGER ) * 69 AS col1, - COUNT ( + - 84 ) / 70 AS col1 +---- +0 +NULL +NULL query I rowsort label-8512 SELECT ALL + 67 * + MIN ( + 64 ) + + 92 + + COALESCE ( 58, + 88 + - COUNT ( 20 ) + + - 81 ) AS col1 @@ -45074,8 +45574,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 83 AS col1, - 63 * + 3 + - - COUNT ( * ) col1 +---- +-188 +83 query II rowsort label-8564 SELECT ( + SUM ( ALL + 23 ) ) AS col1, 53 @@ -45175,8 +45678,11 @@ SELECT DISTINCT - 82 - - ( - - 46 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72078 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \- Int64\(\-8\) \* \(\- Int64\(\-97\)\) \* Int64\(\-93\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- avg\(DISTINCT Int64\(\-31\)\)\) \+ Int64\(31\) \* \(\- \(\- CAST\(\(\- Int64\(\-3\)\) AS Int32\)\)\) \- Int64\(9\) \+ CASE Int64\(29\) WHEN Int64\(11\) \+ Int64\(95\) THEN \(\- Int64\(\-51\)\) ELSE Int64\(\-80\) END \* \(\- CASE Int64\(57\) WHEN Int64\(\-25\) THEN \(\- Int64\(18\)\) \* \(\- Int64\(40\)\) \* \(\- sum\(Int64\(16\)\)\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +-72078 +NULL query I rowsort label-8583 SELECT - 42 / + 28 col2 @@ -46126,8 +46632,11 @@ 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\(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\. +query IR valuesort 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 +---- +5698 +NULL query I rowsort label-8764 SELECT - COUNT ( ALL 94 ) col1 @@ -46258,8 +46767,11 @@ SELECT + 80 * 5 * + 73 - COUNT ( * ) + + 37 * - 43 AS col1, + 52 / - 4 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-54\)\) AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 54 AS col2, + 62 AS col2 +---- +54 +62 query I rowsort label-8789 SELECT COUNT ( * ) - 85 AS col2 @@ -46361,8 +46873,11 @@ SELECT 14 * 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col2" at position 0 and "Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 64 AS col2, 32 AS col2 +---- +32 +64 query I rowsort label-8808 SELECT COUNT ( * ) + - + 81 * 32 @@ -46472,8 +46987,11 @@ SELECT ALL MAX ( DISTINCT - 23 ) * - 87 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - 139920 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(79\)\) AS col0" at position 0 and "CAST\(Int64\(\-60\) AS Int32\) \* Int64\(\-44\) \* Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 79 AS col0, + CAST ( - 60 AS INTEGER ) * - 44 * + 53 AS col0 +---- +-79 +139920 query II rowsort label-8829 SELECT + 96 AS col2, + COUNT ( * ) - + 43 AS col1 @@ -47969,8 +48487,11 @@ SELECT DISTINCT + 36 * + - 21 * - 3 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col1" at position 0 and "Int64\(37\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL CAST ( NULL AS FLOAT8 ) col1, 37 + + COUNT ( * ) col1 +---- +38 +NULL query I rowsort SELECT + COALESCE ( - 0, + + 17, + - 64 - + 25 ) * + 54 @@ -48041,8 +48562,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 58 -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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 52 AS col1, 58 AS col1 +---- +52 +58 query II rowsort SELECT 30 AS col1, + 67 AS col2 @@ -48221,8 +48745,11 @@ SELECT ALL - 90 / + 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - 39106 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col2" at position 0 and "Int64\(33\) \* Int64\(15\) \* Int64\(79\) \+ count\(Int64\(\-5\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 57 AS col2, + 33 * 15 * 79 + + + ( + COUNT ( - 5 ) ) col2 +---- +-57 +39106 query I rowsort SELECT ALL + 18 + - 86 @@ -48337,8 +48864,11 @@ SELECT DISTINCT - 80 / NULLIF ( 65, - 0 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(33\) \+ Int64\(\-36\) / Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 16 AS col0, 33 + - 36 / ( + 89 ) AS col0 +---- +16 +33 query I rowsort label-9189 SELECT ALL + + ( + COUNT ( * ) ) * - 71 - + 95 - + 72 AS col1 @@ -48369,8 +48899,11 @@ SELECT - + COUNT ( * ) * - 64 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, 87 AS col2 +---- +87 +NULL query I rowsort label-9195 SELECT ALL - 48 / 60 + - NULLIF ( - - COUNT ( * ), COUNT ( * ) / + - 7 ) AS col1 @@ -49032,8 +49565,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(31\) \+ Int64\(\-81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 57 * + - 24 col0, COUNT ( * ) + + 31 + + - 81 AS col0 +---- +-49 +1368 query II rowsort label-9324 SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col2, - 35 * + 60 @@ -49200,8 +49736,11 @@ SELECT ALL 17 + + - ( + COUNT ( ALL - 30 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4165 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) \* Int64\(\-59\) \- Int64\(\-94\) AS col2" at position 0 and "Int64\(61\) \+ Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 69 * + - 59 - + - 94 AS col2, 61 + 11 AS col2 +---- +4165 +72 query I rowsort SELECT ALL - + 36 + + 59 - - + 42 + - 28 AS col2 @@ -49369,8 +49908,12 @@ SELECT 94 + 40 AS col0 # Datafusion - Expected - 77 # Datafusion - Expected - 15 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \- Int64\(68\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 and "coalesce\(Int64\(78\), \(\- Int64\(28\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 62 + + + 15, 83 - + + 68 / COUNT ( * ) AS col2, + COALESCE ( 78, - + ( + 28 ), - + COUNT ( * ) ) col2 +---- +15 +77 +78 query I rowsort label-9386 SELECT DISTINCT NULLIF ( - CAST ( + + MIN ( 1 ) AS INTEGER ), + 67 * + 65 * ( + - NULLIF ( 28, + 40 ) ) / 64 ) + 26 * 24 * 91 @@ -49540,8 +50083,11 @@ SELECT + 43 * + 36 # 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\(17\)\) AS col1" at position 0 and "sum\(\(\- Int64\(\-61\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 17 AS col1, + ( + SUM ( - - 61 ) ) AS col1 +---- +-17 +61 query I rowsort label-9420 SELECT DISTINCT + 8 / + 64 * - 86 @@ -49607,8 +50153,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 48 AS col1, COUNT ( * ) + + + 70 AS col1 +---- +48 +71 query I rowsort SELECT + 78 + - 80 AS col1 @@ -49979,8 +50528,11 @@ SELECT 17 * 49 # 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\(\-69\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 69 AS col0, 92 AS col0 +---- +-69 +92 query I rowsort label-9503 SELECT ALL 59 * - COUNT ( * ) * - - 59 AS col0 @@ -50531,8 +51083,12 @@ SELECT + ( 93 ) * - + 21 # Datafusion - Expected - 23 # Datafusion - Expected - 75 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col0" at position 1 and "Int64\(\-41\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - 23, + 75 AS col0, - 41 AS col0 +---- +-41 +23 +75 query II rowsort label-9609 SELECT DISTINCT COALESCE ( - COUNT ( * ), - 28, COUNT ( * ) / - + COUNT ( ALL + 94 ) ) + + COUNT ( * ) AS col0, 24 * + 45 + + 9 @@ -51098,8 +51654,11 @@ SELECT COUNT ( * ) / 93 + + 56 + - + 42 - + + MAX ( ALL - + 24 ) * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(\(\- Int64\(8\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, CAST ( - + 8 AS INTEGER ) AS col1 +---- +-8 +1 query II rowsort SELECT ALL + 26 col2, 24 + - 54 * - 54 AS col1 @@ -51319,8 +51878,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 - + 69 AS col2, + 62 + - COUNT ( * ) AS col2 +---- +17 +61 query I rowsort SELECT 89 * 66 * - 56 @@ -51477,8 +52039,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * + 18 col1, + COUNT ( * ) / ( + 52 ) col1 +---- +0 +18 query I rowsort label-9785 SELECT ALL - 47 / + CASE SUM ( + + 93 ) WHEN 2 - NULLIF ( + - 50, + - 44 ) / + MIN ( ALL - 47 ) + 63 + + MIN ( 12 ) + + 97 * + 99 + + 80 + - + CAST ( NULL AS FLOAT8 ) + 56 + + 16 * - 40 THEN NULL WHEN + 91 THEN + - 11 + + ( 52 ) WHEN + + 52 - - NULLIF ( - 67, + ( 45 ) * - 84 ) THEN NULL END @@ -51640,8 +52205,11 @@ SELECT ALL + + COUNT ( * ) / - ( - 45 ) - 80 + - - 14 + + - 11 + MAX ( + 3 ) - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "Int64\(\-70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 AS col2, - 70 AS col2 +---- +-70 +46 query I rowsort label-9816 SELECT ALL - 46 / - 48 + - ( + 78 ) AS col0 @@ -51726,8 +52294,11 @@ SELECT COUNT ( * ) * - 80 * + - 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -143 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \+ Int64\(66\) AS col1" at position 0 and "Int64\(\-50\) \- Int64\(52\) \- \(\- Int64\(\-41\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 + 66 AS col1, - 50 - 52 - - - 41 AS col1 +---- +-143 +85 query I rowsort label-9832 SELECT DISTINCT COUNT ( * ) / - - 28 * - + SUM ( DISTINCT - + ( - 30 ) ) @@ -52097,8 +52668,11 @@ SELECT ALL + 70 AS col2, ( 26 ) * + COUNT ( - CAST ( NULL AS INTEGER ) ) / - MIN # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(45\) / Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + COUNT ( * ) ) AS col0, 45 / 83 AS col0 +---- +0 +1 query I rowsort SELECT DISTINCT + + 78 * 93 * + + 66 AS col1 @@ -52183,8 +52757,11 @@ SELECT - COUNT ( * ) * + SUM ( 4 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-55\) AS Int32\) / Int64\(\-41\) \- Int64\(\-38\) \+ Int64\(55\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( ( - 55 ) AS INTEGER ) / - 41 - - 38 + 55 AS col2, 16 AS col2 +---- +16 +94 query II rowsort label-9919 SELECT ALL - 77 * + 58 + + MIN ( - ( + 63 ) ) + 69 AS col2, + 1 @@ -52388,8 +52965,11 @@ SELECT DISTINCT + 1 * 92 * - - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ \(\- 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 II valuesort SELECT 8 + + ( - + 34 ) col1, + 17 AS col1 +---- +-26 +17 query II rowsort label-9957 SELECT + 60, + COUNT ( * ) + + 7 - + 78 AS col0 diff --git a/data/sqlite/random/expr/slt_good_100.slt b/data/sqlite/random/expr/slt_good_100.slt index 5cd9697..92072c6 100644 --- a/data/sqlite/random/expr/slt_good_100.slt +++ b/data/sqlite/random/expr/slt_good_100.slt @@ -448,8 +448,12 @@ SELECT DISTINCT 45 * 43, 52 AS col2 # Datafusion - Expected - -34 # Datafusion - Expected - -42 # Datafusion - Expected - -256276 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col2" at position 0 and "Int64\(\-42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 34 AS col2, - 42 AS col2, + COUNT ( * ) * - COUNT ( * ) - - + 51 * + 75 * - 67 col0 +---- +-256276 +-34 +-42 query II rowsort label-80 SELECT DISTINCT - 5 col2, 63 * - COUNT ( * ) + 64 @@ -496,8 +500,11 @@ SELECT 0 * + 51 + - 84 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 152 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-65\)\) AS col1" at position 0 and "Int64\(2\) \* Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 65 AS col1, 2 * 76 AS col1 +---- +152 +65 query I rowsort SELECT - NULLIF ( - 43, - 37 - + 49 ) @@ -609,8 +616,11 @@ SELECT ALL - COUNT ( * ) * 66 # 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\(23\)\) \- Int64\(\-10\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( 23 ) - - 10 AS col1, 27 AS col1 +---- +-13 +27 query I rowsort SELECT - 4 * 41 * - 27 AS col0 @@ -735,8 +745,11 @@ NULL # 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 "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 II valuesort SELECT ALL 20 AS col2, - 18 AS col2 +---- +-18 +20 query I rowsort label-134 SELECT DISTINCT + 59 - + CAST ( NULL AS INTEGER ) AS col1 @@ -1028,8 +1041,11 @@ SELECT ALL - ( + 78 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -102 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(94\)\) \- count\(Int64\(1\)\) AS count\(\*\) \* \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-59\)\)\) \* Int64\(8\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 94 - + COUNT ( * ) * - COALESCE ( + ( - COUNT ( * ) ), - 59 ) * 8 AS col1, + ( + COUNT ( * ) ) col1 +---- +-102 +1 query II rowsort SELECT ALL - ( 85 ) AS col1, - 64 @@ -1112,8 +1128,12 @@ SELECT ALL 28 + 90 + - 18 + - CAST ( COUNT ( * ) AS INTEGER ) AS col0 # Datafusion - Expected - NULL # Datafusion - Expected - 0 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-85\) AS Int32\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-36\) \* Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT CAST ( + - 85 AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) / - 36 * - 71 AS col2, - 70 +---- +-70 +0 +NULL query I rowsort label-206 SELECT - COUNT ( - 40 ) AS col1 @@ -1312,8 +1332,12 @@ SELECT ALL 86 * - NULLIF ( - - 56, + COUNT ( * ) ) # Datafusion - Expected - 39 # Datafusion - Expected - 0 # Datafusion - Expected - -3174 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "Int64\(69\) \* Int64\(\-46\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 39 col1, 73 / + 75 * - 82 AS col0, 69 * ( - 46 ) AS col1 +---- +-3174 +0 +39 query I rowsort SELECT DISTINCT + 11 * + ( + 27 ) @@ -1329,8 +1353,11 @@ SELECT ALL 62 + COALESCE ( + 41, 33 ) AS col0, + 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "Int64\(46\) \+ \(\- CAST\(\(\- sum\(DISTINCT Int64\(24\)\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 10 AS col2, 46 + - CAST ( - SUM ( DISTINCT + 24 ) AS INTEGER ) AS col2 +---- +10 +70 query I rowsort label-248 SELECT ALL CASE + + 13 WHEN - 51 / - + 72 + SUM ( + 36 ) * 82 THEN - COUNT ( * ) END / + 26 @@ -1692,8 +1719,12 @@ SELECT ALL 47, + 32 - ( - - 88 ) AS col0 # Datafusion - Expected - 2591 # Datafusion - Expected - 55 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \+ \(\- Int64\(13\)\) \+ Int64\(43\) \* \(\- Int64\(\-60\)\) \+ \(\- CASE Int64\(19\) WHEN Int64\(60\) \* Int64\(56\) \+ Int64\(8\) \* Int64\(49\) \* \(\- Int64\(4\)\) THEN Int64\(\-46\) \- Int64\(59\) \* Int64\(78\) ELSE Int64\(\-11\) END\) AS col2" at position 0 and "Int64\(\-70\) \+ \(\- Int64\(21\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 13 + - + 13 + 43 * - - 60 + - CASE + 19 WHEN + 60 * + 56 + 8 * + 49 * - ( + 4 ) THEN - 46 - + 59 * + 78 ELSE - 11 END AS col2, - ( + + 55 ) / + - COUNT ( * ), - 70 + - + 21 AS col2 +---- +-91 +2591 +55 query I rowsort label-317 SELECT - COUNT ( DISTINCT - - 3 ) @@ -2349,8 +2380,11 @@ SELECT ALL + COUNT ( * ) + + 38 + 72 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 41 AS col0, 54 AS col0 +---- +41 +54 query I rowsort label-445 SELECT ALL - 72 + - 21 - 54 + - CAST ( NULL AS INTEGER ) AS col2 @@ -2433,8 +2467,11 @@ 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\(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\. +query II valuesort SELECT + - COUNT ( * ) col1, - ( + + 21 ) - - COUNT ( * ) * 65 AS col1 +---- +-1 +44 query II rowsort SELECT DISTINCT + 99, ( 52 ) AS col0 @@ -3058,8 +3095,11 @@ 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\(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\. +query II valuesort SELECT ALL + 90 * - 41 AS col2, COALESCE ( - NULLIF ( + + 83, - 59 ), COUNT ( * ) + COUNT ( * ) * - 21 ) AS col2 +---- +-3690 +-83 query II rowsort SELECT DISTINCT + ( - 6 ) AS col2, 86 * - - 93 @@ -3306,8 +3346,11 @@ SELECT 96 * + 9 + - 20 * COUNT ( - 63 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3716 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \- Int64\(\-69\) \* Int64\(55\) AS col1" at position 0 and "Int64\(\-82\) / \(\- \(\- Int64\(\-63\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 79 - - 69 * 55 AS col1, - 82 / - ( - - 63 ) AS col1 +---- +1 +3716 query I rowsort label-626 SELECT - 91 / + 21 AS col0 @@ -3951,8 +3994,11 @@ SELECT NULLIF ( ( ( 69 ) ), 90 ) 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\(\-47\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 47 col2, + 66 AS col2 +---- +-47 +66 query I rowsort SELECT ALL ( 13 ) AS col1 @@ -4063,8 +4109,11 @@ SELECT DISTINCT - ( 86 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( COUNT ( * ) ) AS col0, - 31 AS col0 +---- +-31 +1 query I rowsort label-772 SELECT - CASE ( - 57 ) WHEN - - 56 * - + 17 + - CAST ( + - 19 AS INTEGER ) THEN - 68 WHEN + 5 THEN NULL END AS col0 @@ -4126,8 +4175,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(\-17\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 62 AS col2, - 17 + + + COUNT ( * ) col2 +---- +-16 +62 query I rowsort SELECT 26 + - 75 @@ -4858,8 +4910,11 @@ SELECT ALL 8 + ( + 27 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) / Int64\(\-30\) AS col1" at position 0 and "Int64\(\-69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 67 / + - 30 AS col1, - 69 col1 +---- +-2 +-69 query I rowsort SELECT 11 * + - 40 * - ( - 49 ) AS col1 @@ -4926,8 +4981,12 @@ SELECT ALL - ( - 52 ) AS col0 # Datafusion - Expected - -99 # Datafusion - Expected - 1 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ( - 99 ) col2, COUNT ( * ) AS col2, 81 AS col1 +---- +-99 +1 +81 query I rowsort label-936 SELECT DISTINCT - MAX ( + - 4 ) AS col2 @@ -4937,8 +4996,11 @@ SELECT DISTINCT - MAX ( + - 4 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 156 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* Int64\(3\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 * 3 col1, COUNT ( * ) AS col1 +---- +1 +156 query I rowsort label-938 SELECT DISTINCT + 54 * - - NULLIF ( COALESCE ( 73, - 90 ), - COUNT ( * ) ) - - 21 @@ -5264,8 +5326,11 @@ SELECT - - ( - 32 ) + ( - + ( - + 74 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(63\) \+ Int64\(\-89\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(87\) \- Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) + + + 63 + - 89 * + CAST ( NULL AS INTEGER ) col1, + 87 - + 78 AS col1 +---- +9 +NULL query I rowsort label-1000 SELECT ALL CASE + 67 WHEN ( - COUNT ( * ) ) THEN NULL WHEN + + 70 THEN NULL WHEN - + 48 THEN + MIN ( - 82 ) END col0 @@ -5286,8 +5351,11 @@ SELECT ALL - COALESCE ( + 91, - 68 * COUNT ( * ), 38 - - 58 ) AS col2 # 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\(97\) \+ Int64\(\-81\) \+ Int64\(1\) \* Int64\(39\) \- Int64\(12\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 97 + - 81 + + 1 * + 39 - 12 AS col0, 12 AS col0 +---- +12 +43 query I rowsort label-1004 SELECT ALL 58 / + MAX ( ALL - 18 ) @@ -5473,8 +5541,11 @@ SELECT - - 6 AS col1, 82 + + + COUNT ( * ) * + ( 51 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 111 # Datafusion - Expected - 1656 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \- Int64\(\-31\) AS col1" at position 0 and "Int64\(23\) \* CAST\(Int64\(72\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 - - 31 AS col1, 23 * + CAST ( 72 AS INTEGER ) AS col1 +---- +111 +1656 query I rowsort SELECT ALL 52 * - - 91 col2 @@ -5861,8 +5932,11 @@ SELECT ALL CASE COALESCE ( - 16, + - 61 * + CAST ( NULL AS INTEGER ) ) WHEN NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \- \(\- nullif\(Int64\(41\), Int64\(\-84\)\)\) AS col0" at position 0 and "Int64\(\-75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 27 - + - NULLIF ( + 41, - 84 ) AS col0, - 75 col0 +---- +-75 +68 query I rowsort label-1113 SELECT ALL - 95 / + - 28 @@ -5976,8 +6050,11 @@ SELECT + SUM ( DISTINCT + - 12 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \+ Int64\(\-65\) \- Int64\(69\) AS col1" at position 0 and "Int64\(69\) \- \(\- coalesce\(Int64\(\-38\), Int64\(\-22\) \* Int64\(51\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 + + - 65 - 69 AS col1, 69 - + - COALESCE ( - 38, + - 22 * + 51 ) AS col1 +---- +-40 +31 query II rowsort label-1135 SELECT + 99 AS col2, - MIN ( + 22 ) @@ -6045,8 +6122,11 @@ SELECT NULLIF ( 82, + 63 ) + - 77 * - 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(10\) \+ Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) + + + CAST ( NULL AS INTEGER ) AS col0, + 10 + + 9 AS col0 +---- +19 +NULL query I rowsort SELECT 8 * + 11 col0 @@ -6616,8 +6696,11 @@ SELECT ALL 21 + - 7 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 74 AS col2, COUNT ( * ) col2 +---- +1 +74 query I rowsort label-1254 SELECT ( - + MAX ( ALL - + 82 ) ) + + + 28 * - + COUNT ( ALL + + CAST ( - 10 AS INTEGER ) ) AS col2 @@ -6642,8 +6725,11 @@ SELECT COUNT ( ALL ( - 31 ) ) * 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 85 AS col0, 83 AS col0 +---- +-85 +83 query II rowsort SELECT ALL 86, 73 AS col0 @@ -7510,8 +7596,12 @@ SELECT COALESCE ( + 86, - CAST ( NULL AS INTEGER ) ) # Datafusion - Expected - -1299 # Datafusion - Expected - 31 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(57\)\) \* Int64\(76\) / Int64\(62\) AS col1" at position 1 and "\(\- max\(DISTINCT \(\- Int64\(14\)\)\)\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ \(\- Int64\(\-45\)\) \+ min\(Int64\(56\)\) \* Int64\(62\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-1299 +31 +NULL query II rowsort SELECT - 16 AS col0, 16 + 50 AS col2 @@ -7527,8 +7617,11 @@ SELECT + + COUNT ( DISTINCT - + 43 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- CAST\(Int64\(17\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - CAST ( NULL AS INTEGER ) AS col2, - CAST ( 17 AS INTEGER ) col2 +---- +-17 +NULL query I rowsort label-1424 SELECT ALL 91 / + 88 + + ( + ( 6 ) ) @@ -7938,8 +8031,12 @@ SELECT ALL - - 82 col2 # Datafusion - Expected - 71 # Datafusion - Expected - 1 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "\(\- Int64\(\-15\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + + 71 col1, COUNT ( * ) * + COUNT ( * ) AS col0, - - 15 AS col1 +---- +1 +15 +71 query I rowsort SELECT 14 + + + 66 AS col1 @@ -8029,8 +8126,11 @@ SELECT 87 - - + NULLIF ( 73, 55 ) + 0 - + + COUNT ( * ) * - COALESCE ( + 63, - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "min\(\(\- CAST\(NULL AS Int32\)\)\) \* Int64\(\-39\) \* Int64\(11\) \+ Int64\(\-52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 56 AS col0, + MIN ( ALL - CAST ( NULL AS INTEGER ) ) * ( - 39 ) * 11 + - 52 col0 +---- +56 +NULL query I rowsort label-1517 SELECT DISTINCT 33 * - 50 / + 77 / CAST ( NULL AS INTEGER ) * + CAST ( COUNT ( * ) AS INTEGER ) * - 49 * - 23 * - 58 + - 88 + + + 93 * 21 @@ -8116,8 +8216,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col1" at position 0 and "Int64\(86\) \+ Int64\(\-29\) / Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 AS col1, + 86 + - 29 / 35 AS col1 +---- +13 +86 query I rowsort label-1533 SELECT 98 / 15 + - 50 AS col1 @@ -8161,8 +8264,11 @@ SELECT ALL 55 * - MIN ( - - 83 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 67 AS col0, 74 AS col0 +---- +67 +74 query II rowsort SELECT ALL + 57, 99 AS col0 @@ -8285,8 +8391,11 @@ SELECT - 66 * - 21 * 42 * + 79 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -102 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) \- Int64\(65\) AS col1" at position 0 and "Int64\(\-59\) \+ Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 37 - 65 col1, - 59 + 39 AS col1 +---- +-102 +-20 query I rowsort label-1565 SELECT + COUNT ( * ) * + 73 * + ( + NULLIF ( + - 18, + + 23 ) ) @@ -8731,8 +8840,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-96\) / Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - + ( + COUNT ( * ) ) ) AS col1, - 96 / - 58 AS col1 +---- +1 +1 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -8900,8 +9012,11 @@ 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\(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\. +query II valuesort SELECT - 48 * 85 + - - COUNT ( * ) AS col0, 79 + 97 + + SUM ( DISTINCT + 96 ) AS col0 +---- +-4079 +272 query I rowsort SELECT ALL + ( + 27 ) AS col2 @@ -9126,8 +9241,11 @@ SELECT + CAST ( CAST ( + + 45 AS INTEGER ) AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - -5396 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) / coalesce\(nullif\(\(\- Int64\(\-3\)\), Int64\(\-5\)\), Int64\(\-22\)\) \+ Int64\(\-49\) AS col2" at position 0 and "Int64\(\-71\) \* Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 75 / + COALESCE ( + NULLIF ( - - 3, - 5 ), + - 22 ) + - 49 AS col2, - 71 * + + 76 AS col2 +---- +-24 +-5396 query I rowsort label-1725 SELECT DISTINCT + CAST ( - 83 AS INTEGER ) * - 21 + 94 + - 70 + COALESCE ( - - 97, + + 7 ) @@ -9229,8 +9347,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) + - 60 + + ( 48 ) / MAX ( ALL + 95 ) * 34 AS col2, - 92 + + COUNT ( DISTINCT + 28 ) AS col2 +---- +-59 +-91 query I rowsort label-1745 SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - + 39 @@ -9796,8 +9917,11 @@ SELECT ( 74 ) * 82 + + + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 0 and "Int64\(\-39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 28 AS col0, - 39 AS col0 +---- +-39 +28 query I rowsort SELECT ALL - 33 + + - 71 AS col2 @@ -9920,8 +10044,11 @@ SELECT DISTINCT 1 + - 82 AS col0, 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 897 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* Int64\(69\) AS col1" at position 0 and "Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 13 * + 69 col1, 56 AS col1 +---- +56 +897 query I rowsort label-1877 SELECT ALL COUNT ( * ) + - + 41 AS col0 @@ -10012,8 +10139,11 @@ SELECT - 3 / - 75 * + + 12 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(2\), Int64\(31\) \* Int64\(\-41\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL NULLIF ( 2, 31 * - 41 ) col0, COUNT ( * ) AS col0 +---- +1 +2 query I rowsort label-1895 SELECT ALL + MAX ( - - 52 ) + COUNT ( * ) AS col0 @@ -10023,8 +10153,11 @@ SELECT ALL + MAX ( - - 52 ) + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col1" at position 0 and "Int64\(61\) \* \(\- Int64\(64\)\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 61 AS col1, 61 * - + 64 * CAST ( NULL AS INTEGER ) col1 +---- +-61 +NULL query I rowsort label-1897 SELECT - 49 + - COUNT ( * ) AS col0 @@ -10040,8 +10173,11 @@ SELECT - 72 AS col2, 46 # 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\(33\) \+ max\(DISTINCT Int64\(59\)\) AS col2" at position 0 and "\(\- Int64\(\-5\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 33 + MAX ( DISTINCT 59 ) AS col2, + ( - - 5 ) AS col2 +---- +5 +92 query I rowsort SELECT - 13 * 97 @@ -10274,8 +10410,11 @@ 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\(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\. +query II valuesort 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 +---- +-11 +-26 query I rowsort label-1944 SELECT DISTINCT 56 + + - 24 + + COUNT ( * ) * + 92 * - 92 * - MAX ( + 9 ) @@ -10322,8 +10461,11 @@ SELECT 81 + + 23 * + 88 * + 14 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "CASE Int64\(71\) WHEN \(\- Int64\(21\)\) THEN NULL ELSE coalesce\(Int64\(15\), Int64\(0\), Int64\(\-45\)\) \* Int64\(56\) \+ Int64\(17\) END \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 59 AS col1, CASE + 71 WHEN - + 21 THEN NULL ELSE COALESCE ( + 15, - 0, - 45 ) * + 56 + 17 END * CAST ( NULL AS INTEGER ) AS col1 +---- +59 +NULL query II rowsort label-1953 SELECT 92 AS col0, + 92 + 20 + 71 * 46 + - COUNT ( * ) * + ( - 48 ) * CAST ( 10 AS INTEGER ) + - - 93 + - + 64 AS col2 @@ -10973,8 +11115,11 @@ SELECT DISTINCT - + COUNT ( 70 ) + 72 * 31 AS col1 # 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 "Int64\(9\) AS col0" at position 0 and "Int64\(86\) \- \(\- Int64\(\-66\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 9 AS col0, 86 - - - 66 AS col0 +---- +20 +9 query I rowsort SELECT 7 + - 81 AS col2 @@ -11270,8 +11415,11 @@ SELECT ALL MAX ( 88 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col2" at position 0 and "Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 20 AS col2, 32 AS col2 +---- +20 +32 query I rowsort label-2140 SELECT - 90 / + 22 / CASE + + 27 WHEN - + 21 + - CAST ( 58 AS INTEGER ) THEN NULL WHEN 56 THEN 56 END * - 43 @@ -11437,8 +11585,11 @@ SELECT + 76 + - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\)" at position 0 and "Int64\(31\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 31, 31 +---- +31 +31 query I rowsort label-2170 SELECT + ( - + COUNT ( * ) ) + - - 34 @@ -11652,8 +11803,11 @@ SELECT DISTINCT 61 + + COALESCE ( + CASE + + 8 WHEN 69 THEN + 6 ELSE NULL END, + # Datafusion - Datafusion expected results: # Datafusion - Expected - 2660 # Datafusion - Expected - -2982 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* Int64\(76\) AS col2" at position 0 and "Int64\(71\) \* Int64\(\-42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 * + 76 col2, 71 * - 42 AS col2 +---- +-2982 +2660 query I rowsort label-2209 SELECT 9 * - + COALESCE ( 37, + - MIN ( + 19 ) + + 64 ) * + 95 * NULLIF ( - 95 / - 35, NULLIF ( + 65, - 6 + 42 ) ) AS col2 @@ -11802,8 +11956,11 @@ SELECT COUNT ( DISTINCT - + 30 ) + + 26 + + ( ( + 42 ) ) / 34 * 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 48 AS col2, COUNT ( * ) AS col2 +---- +1 +48 query I rowsort label-2238 SELECT 9 + 25 - + 82 / COUNT ( * ) * - - 73 @@ -11979,8 +12136,11 @@ SELECT ALL - 39 * - COUNT ( + NULLIF ( - - 65, + - 64 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 495 # Datafusion - Expected - -2310 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \* Int64\(\-9\) AS col1" at position 0 and "Int64\(42\) \* Int64\(\-55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 * + - 9 AS col1, + 42 * - 55 AS col1 +---- +-2310 +495 query I rowsort SELECT ALL COALESCE ( + 27, - COALESCE ( - + 45, - 17 ) ) @@ -12025,8 +12185,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) * + + 59 AS col0, 55 AS col0 +---- +55 +59 query I rowsort SELECT ALL - 98 * 69 * + 49 @@ -12709,8 +12872,11 @@ SELECT + 21 AS col0, 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 33 AS col0, COUNT ( * ) col0 +---- +1 +33 query I rowsort label-2411 SELECT + SUM ( DISTINCT - - 60 ) @@ -12743,8 +12909,11 @@ SELECT DISTINCT 55 / - 17 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11648 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-7\)\) \* \(\- Int64\(\-32\)\) \* Int64\(\-52\) AS col0" at position 0 and "Int64\(17\) \+ sum\(Int64\(49\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 7 * - - 32 * - 52 col0, 17 + + SUM ( + 49 ) AS col0 +---- +-11648 +66 query I rowsort SELECT - + 49 * 90 col2 @@ -13112,8 +13281,11 @@ SELECT DISTINCT 34, + CAST ( - 28 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(45\) \+ \(\- Int64\(35\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, 45 + - ( + 35 ) AS col2 +---- +1 +10 query I rowsort SELECT 37 + - 54 @@ -13181,8 +13353,11 @@ SELECT + 12 * - - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 26 col1, 27 AS col1 +---- +26 +27 query II rowsort SELECT + 72 AS col0, 89 * + - 47 @@ -13322,8 +13497,11 @@ SELECT DISTINCT + COUNT ( * ) - - ( + 94 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + - 72 ) AS col2, + 35 AS col2 +---- +-72 +35 query II rowsort SELECT ALL + 96 * - 6 AS col2, + 49 * 66 AS col1 @@ -13446,8 +13624,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "coalesce\(CASE WHEN NOT Int64\(81\) IS NULL THEN Int64\(74\) ELSE Int64\(\-79\) \+ Int64\(28\) \* Int64\(\-99\) \+ \(\- Int64\(\-61\)\) END, avg\(Int64\(15\)\), Int64\(\-29\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(13\) \* Int64\(5\)\) / Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +2.740740740741 +NULL query I rowsort label-2549 SELECT ALL - COUNT ( * ) * + 46 - 33 + - 91 * 59 / - + 96 / COUNT ( * ) * - - COUNT ( * ) col0 @@ -13715,8 +13896,11 @@ SELECT - COUNT ( * ) * - COALESCE ( - 55, + COUNT ( * ) + - - 66 / + 1, - 56 * - # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "Int64\(39\) \- Int64\(\-20\) \- Int64\(55\) \- Int64\(\-77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 95 AS col2, + 39 - - 20 - 55 - - 77 AS col2 +---- +81 +95 query I rowsort SELECT ALL - 37 * - - 6 AS col0 @@ -14049,8 +14233,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) col0, COUNT ( * ) / + + 2 * 24 col0 +---- +-1 +0 query I rowsort SELECT 37 * 29 * + 31 AS col0 @@ -14277,8 +14464,11 @@ SELECT ( - COUNT ( + - 10 ) ) * - + 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2076 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(\-26\) \+ \(\- Int64\(\-4\)\) AS col0" at position 0 and "Int64\(\-23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 * - 26 + - - 4 AS col0, - 23 AS col0 +---- +-2076 +-23 query II rowsort label-2707 SELECT 41 AS col0, - COALESCE ( - CAST ( 85 AS INTEGER ), 79 ) * - + 71 - - + 24 AS col2 @@ -14361,8 +14551,11 @@ SELECT DISTINCT + + 50 + - - 59 + 20 * + - 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 93 AS col2, 73 col2 +---- +73 +93 query I rowsort label-2723 SELECT - 8 + + + COUNT ( * ) * + COUNT ( * ) AS col2 @@ -14423,8 +14616,11 @@ SELECT DISTINCT + CAST ( - + NULLIF ( - - 34, + 76 ) AS INTEGER ), + 43 + - 36 A # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(42\), nullif\(Int64\(76\), Int64\(\-7\) \* Int64\(27\) \- Int64\(\-89\)\)\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( 42, + NULLIF ( + 76, - 7 * 27 - + - 89 ) ) AS col0, 14 AS col0 +---- +14 +42 query II rowsort label-2735 SELECT + MAX ( DISTINCT 97 ) AS col1, 65 @@ -14460,8 +14656,11 @@ SELECT DISTINCT - 5 * - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - -5475 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-73\) \* \(\- Int64\(\-75\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 94 / COUNT ( * ) AS col2, - 73 * - ( - 75 ) AS col2 +---- +-5475 +-94 query II rowsort label-2742 SELECT - 98 + + ( ( + + 63 ) ) AS col0, 37 + + 49 * 88 / + - 92 @@ -14667,8 +14866,11 @@ SELECT DISTINCT 10 AS col1, 48 * - 63 AS col0 # 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\(48\)\)\)\) AS col1" at position 0 and "Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( DISTINCT + ( - + 48 ) ) AS col1, 24 AS col1 +---- +-1 +24 query I rowsort label-2782 SELECT ALL + 75 - + COUNT ( * ) AS col1 @@ -15164,8 +15366,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 18 col1, + 63 * - COUNT ( * ) AS col1 +---- +-63 +18 query I rowsort label-2877 SELECT - + COUNT ( DISTINCT + 10 ) * 45 + + 66 * COUNT ( * ) @@ -15180,8 +15385,11 @@ SELECT ALL - COUNT ( * ) / 98 + + - NULLIF ( 78, - + 51 + - 88 + + 75 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - -1722 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col2" at position 0 and "Int64\(82\) \* \(\- Int64\(21\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 16 col2, + 82 * + ( - ( ( + 21 ) ) ) AS col2 +---- +-16 +-1722 query I rowsort label-2880 SELECT DISTINCT + - SUM ( DISTINCT + 24 ) AS col1 @@ -15256,8 +15464,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 + 38 col2, 83 * - COUNT ( * ) AS col2 +---- +-83 +63 query I rowsort SELECT ALL ( + + 35 ) * 9 * + 76 * - + 46 AS col0 @@ -15292,8 +15503,11 @@ SELECT ALL COUNT ( DISTINCT - - 11 ) + - 47 / - - 33 - + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- Int64\(45\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) col1, - ( + 45 ) AS col1 +---- +-45 +NULL query I rowsort SELECT 70 + - 55 @@ -15334,8 +15548,11 @@ SELECT ALL - 44 * + - 95 + + - 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* \(\- coalesce\(min\(Int64\(\-7\)\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(95\)\), Int64\(40\) \* \(\- Int64\(14\)\) \- Int64\(43\) \+ Int64\(\-30\) \+ Int64\(6\) \+ \(\- CAST\(NULL AS Int32\)\) \* \(\- CASE Int64\(66\) WHEN Int64\(22\) \+ \(\- Int64\(\-47\)\) THEN Int64\(47\) \+ Int64\(81\) ELSE max\(Int64\(36\)\) \* Int64\(92\) END\) \* Int64\(83\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-73\) \+ Int64\(\-14\)\)\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +7 +72 query I rowsort label-2909 SELECT ALL - 33 * + CAST ( + + CAST ( + COUNT ( * ) AS FLOAT8 ) AS INTEGER ) + - 0 * + 8 * + + 61 * - - 61 AS col1 @@ -15345,8 +15562,11 @@ SELECT ALL - 33 * + CAST ( + + CAST ( + COUNT ( * ) AS FLOAT8 ) AS INTEGER ) + - # Datafusion - Datafusion expected results: # Datafusion - Expected - -1548 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* Int64\(66\) \+ \(\- Int64\(96\)\) \+ Int64\(22\) \+ Int64\(95\) \* \(\- Int64\(44\)\) \+ \(\- Int64\(\-66\)\) \* sum\(DISTINCT Int64\(\-24\)\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 65 * + 66 + - + 96 + + + 22 + 95 * - + 44 + - - 66 * + SUM ( DISTINCT - 24 ) AS col1, 85 AS col1 +---- +-1548 +85 query II rowsort label-2911 SELECT + 5 + + 51 AS col1, COUNT ( * ) col2 @@ -15496,8 +15716,11 @@ SELECT ALL 11 * 92 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 147 # Datafusion - Expected - -5478 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(42\), max\(DISTINCT \(\- Int64\(91\)\)\) / Int64\(\-34\) \+ \(\- Int64\(22\)\)\) \+ Int64\(48\) \+ Int64\(57\) AS col0" at position 0 and "Int64\(\-66\) \* \(\- Int64\(\-83\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( 42, + MAX ( DISTINCT - ( + + 91 ) ) / - 34 + + - ( 22 ) ) + + 48 + + 57 col0, - 66 * - - 83 AS col0 +---- +-5478 +147 query I rowsort label-2939 SELECT + 2 + + CASE + 22 WHEN - COALESCE ( + 98, - 42 / 18 * - 89 / + + 5 + + + 40 ) THEN NULL ELSE + SUM ( + 86 ) * - - CAST ( NULL AS INTEGER ) + 41 END AS col0 @@ -15589,8 +15812,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- count\(DISTINCT Int64\(41\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 64 AS col2, ( + 96 ) / - COUNT ( * ) + - COUNT ( DISTINCT 41 ) AS col2 +---- +-64 +-97 query II rowsort SELECT 98 * 20 * + - 57 + 46, 76 * - + 79 AS col1 @@ -15659,8 +15885,12 @@ SELECT DISTINCT - ( - 92 ) * - 38 + - MAX ( DISTINCT 8 ) + - 93 + - 6 # Datafusion - Expected - -61 # Datafusion - Expected - -30 # Datafusion - Expected - 2000 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col1" at position 0 and "Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 61 AS col1, - 30 AS col1, + - 40 * - 50 col2 +---- +-30 +-61 +2000 query I rowsort label-2970 SELECT - MAX ( ALL + 91 ) + 39 * + COUNT ( - 34 ) @@ -16033,8 +16263,11 @@ SELECT ( 89 ) * 24 / + 75 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 10 -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\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 AS col0, - ( - + 10 ) AS col0 +---- +10 +7 query I rowsort label-3040 SELECT ALL 24 / + + COALESCE ( - - 28, NULLIF ( 24, + NULLIF ( - 44, + 43 + + 46 ) * COUNT ( * ) ) ) AS col1 @@ -16115,8 +16348,11 @@ SELECT DISTINCT 91 + + 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 106 # Datafusion - Expected - -93536 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-44\)\)\) \+ \(\- \(\- max\(Int64\(62\)\)\)\) AS col2" at position 0 and "Int64\(16\) \* Int64\(79\) \* \(\- Int64\(74\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MIN ( + - 44 ) + - - MAX ( + 62 ) AS col2, 16 * + 79 * - + 74 AS col2 +---- +-93536 +106 query I rowsort SELECT DISTINCT - + 77 + 35 @@ -16164,8 +16400,11 @@ SELECT + COUNT ( ( - + 80 ) ) * + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 38 AS col1, + COUNT ( * ) col1 +---- +-38 +1 query I rowsort SELECT ALL - 7 + + - 79 @@ -16867,8 +17106,11 @@ 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\(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\. +query II valuesort SELECT + 50 * + 5 * - + SUM ( ALL 38 ) * 98 + - - 35 * 66 / - - COUNT ( * ) AS col1, 69 / 90 * - 54 AS col1 +---- +-928690 +0 query I rowsort label-3196 SELECT DISTINCT - ( 75 ) / 75 @@ -16893,8 +17135,11 @@ SELECT DISTINCT - 4 * - + 13 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col0" at position 0 and "min\(DISTINCT Int64\(34\)\) \+ \(\- Int64\(\-9\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 19 AS col0, MIN ( DISTINCT + + 34 ) + - - 9 AS col0 +---- +-19 +43 query II rowsort SELECT 60 + - - 87 + 51 col2, - 65 @@ -17025,8 +17270,12 @@ SELECT DISTINCT - + 56 + 76 col0 # Datafusion - Expected - -261696 # Datafusion - Expected - -61 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* Int64\(48\) \* Int64\(\-58\) AS col1" at position 0 and "Int64\(\-15\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + + 94 * + 48 * - 58 col1, - MAX ( ALL ( + 31 ) ) / + 28 + COUNT ( * ) + - 92 + - - 31 + COUNT ( * ) / MAX ( - + 14 ) * 87, - 15 AS col1 +---- +-15 +-261696 +-61 query II rowsort SELECT - 2 * - 56 * - + 28 * + - 77 * 39 + + 48, 41 AS col2 @@ -17337,8 +17586,11 @@ SELECT + 87 * 47 + - 31 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 1380 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col1" at position 0 and "Int64\(46\) \* Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 24 AS col1, + 46 * + 30 AS col1 +---- +-24 +1380 query II rowsort label-3286 SELECT ALL 73, - COUNT ( * ) AS col0 @@ -17424,8 +17676,11 @@ SELECT ALL + 55 + - 18 * - 24 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 0 and "Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 AS col2, - 12 col2 +---- +-12 +35 query I rowsort SELECT - NULLIF ( - - 90, + 67 ) AS col2 @@ -17490,8 +17745,12 @@ 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\(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\. +query III valuesort SELECT ALL - NULLIF ( - - COUNT ( * ), + + 30 * + COUNT ( * ) + 43 * 36 + + + 37 ) AS col0, - 43 AS col0, COUNT ( * ) + - 91 * 29 / - - ( 15 ) +---- +-1 +-174 +-43 query II rowsort label-3314 SELECT COUNT ( * ) / 59 col2, 45 @@ -17804,8 +18063,11 @@ SELECT ALL + 26 * ( + 86 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int32\) AS Int32\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, + 60 AS col0 +---- +60 +NULL query I rowsort SELECT 30 * 72 AS col1 @@ -18369,8 +18631,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 522 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(87\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 * + 87 AS col2, 88 AS col2 +---- +522 +88 query I rowsort label-3480 SELECT ALL + MIN ( DISTINCT 89 ) AS col1 @@ -18694,8 +18959,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 / + + 57 AS col1, - ( 3 ) * + + 76 / + 35 * - ( COUNT ( * ) ) AS col1 +---- +1 +6 query I rowsort label-3542 SELECT - SUM ( + 25 ) AS col2 @@ -18740,8 +19008,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 15 * COUNT ( * ) * 85 + - + 26 + - 93 AS col1, + 28 * + 22 AS col1 +---- +1156 +616 query I rowsort SELECT + 68 * - 90 + - - 63 @@ -19704,8 +19975,11 @@ SELECT DISTINCT + MIN ( + 79 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1446 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(86\) \* Int64\(16\) \+ Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + + CAST ( NULL AS INTEGER ) ) AS col2, + 86 * + 16 + + 70 col2 +---- +1446 +NULL query I rowsort label-3739 SELECT ALL - COUNT ( * ) / CAST ( NULL AS INTEGER ) * + + COUNT ( * ) * + + ( COUNT ( * ) ) AS col2 @@ -20081,8 +20355,11 @@ SELECT DISTINCT - COALESCE ( - + 46, 73 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) AS col0" at position 0 and "Int64\(41\) \+ Int64\(\-22\) \* Int64\(\-62\) \- Int64\(56\) \* min\(CAST\(NULL AS Int32\)\) / Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 54 col0, 41 + - 22 * - 62 - + 56 * + MIN ( CAST ( NULL AS INTEGER ) ) / 96 AS col0 +---- +-54 +NULL query II rowsort SELECT ALL - 28, - 11 AS col1 @@ -20145,8 +20422,11 @@ SELECT DISTINCT MAX ( ALL 94 ) * ( - - 41 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 AS col1, COUNT ( * ) col1 +---- +1 +95 query I rowsort SELECT ALL ( + ( - ( ( + - 3 ) ) ) ) + 95 * 97 @@ -20166,8 +20446,11 @@ 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\(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\. +query II valuesort SELECT ( + - 98 ) + + 19 + + 18 AS col0, 52 + - CASE ( + 3 ) WHEN + 6 * + COUNT ( * ) THEN - 25 / 82 END col0 +---- +-61 +NULL query II rowsort SELECT + 87 col2, - 52 AS col1 @@ -20252,8 +20535,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 + - - 13 AS col1, + COUNT ( * ) * + - 24 AS col1 +---- +-24 +52 query I rowsort label-3844 SELECT 70 / - ( - - 13 ) @@ -20825,8 +21111,11 @@ SELECT DISTINCT ( 53 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 50 col0, + COUNT ( * ) AS col0 +---- +-50 +1 query I rowsort label-3954 SELECT DISTINCT COUNT ( * ) * + + 81 * - + 74 AS col2 @@ -21115,8 +21404,11 @@ SELECT DISTINCT 7 * NULLIF ( - COUNT ( 25 ), 15 * 97 ) - 47 + 78 + 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 436 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(39\) \* \(\- Int64\(\-10\)\) \- Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + CAST ( NULL AS INTEGER ) AS col2, 39 * - - 10 - - 46 col2 +---- +436 +NULL query I rowsort label-4011 SELECT ALL - 81 * CASE - MIN ( - 53 ) WHEN + - 65 / 6 / + + 84 - 88 THEN NULL WHEN + - 40 / + 63 THEN ( 94 ) + COUNT ( * ) END * + 93 + COALESCE ( + 85, 91 + - 7 ) * + 89 AS col1 @@ -21337,8 +21629,11 @@ SELECT + 91 * - MIN ( DISTINCT + - 52 ) AS col2, - COUNT ( ALL + 29 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) \+ Int64\(84\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 76 + + 84 AS col2, - CAST ( NULL AS INTEGER ) * + - 30 AS col2 +---- +8 +NULL query I rowsort label-4053 SELECT ALL COUNT ( * ) / + 78 * - SUM ( + + 69 ) AS col2 @@ -21487,8 +21782,11 @@ SELECT - 0 + - 65 - + 1 / + MIN ( DISTINCT - + ( + 16 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 AS col2, + 93 AS col2 +---- +-48 +93 query I rowsort SELECT ALL + - 2 + - ( + 95 ) col2 @@ -21945,8 +22243,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, 45 * + + ( 48 ) AS col2 +---- +-1 +2160 query I rowsort label-4169 SELECT ALL - 31 + - COUNT ( * ) + + + 25 @@ -21967,8 +22268,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col2" at position 0 and "Int64\(16\) \* Int64\(26\) \* \(\- Int64\(\-71\)\) \+ Int64\(28\) \- \(\- CASE count\(\(\- CAST\(Int64\(53\) AS Int32\)\)\) WHEN Int64\(39\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-37\) / max\(Int64\(1\)\) \+ Int64\(20\) THEN NULL WHEN Int64\(93\) THEN \(\- CAST\(NULL AS Int32\)\) ELSE count\(DISTINCT Int64\(\-21\)\) \* CAST\(NULL AS Float64\) END\) \* Int64\(36\) \* Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + 93 AS col2, 16 * + + 26 * - - 71 + 28 - - CASE COUNT ( - CAST ( ( 53 ) AS INTEGER ) ) WHEN 39 * - CAST ( NULL AS INTEGER ) + + ( - 37 ) / MAX ( ( + 1 ) ) + + 20 THEN NULL WHEN 93 THEN - CAST ( NULL AS INTEGER ) ELSE COUNT ( DISTINCT - 21 ) * + CAST ( NULL AS FLOAT8 ) END * 36 * + 27 AS col2 +---- +93 +NULL query I rowsort SELECT 51 * + 47 - + 43 @@ -22265,8 +22569,11 @@ SELECT ALL - ( ( + - 24 ) ) / - CAST ( + + 81 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(coalesce\(Int64\(\-34\), Int64\(57\)\) AS Int32\)\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - CAST ( COALESCE ( + - 34, 57 ) AS INTEGER ) AS col0, 30 AS col0 +---- +30 +34 query II rowsort label-4229 SELECT ALL + 60 AS col2, - ( + CASE WHEN - 25 > + 91 THEN - COALESCE ( 74, - CAST ( 61 AS INTEGER ) + 31, - - 40 ) WHEN + 4 * + + 56 / 13 * - 15 + + CAST ( NULLIF ( - 81, 5 ) AS FLOAT8 ) NOT BETWEEN 58 + - 72 AND + COUNT ( * ) THEN NULL END ) @@ -22287,14 +22594,20 @@ SELECT + SUM ( - - ( - 79 ) ) * + 64 + + - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(15\), \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COALESCE ( + 15, - CAST ( NULL AS INTEGER ) ) AS col2, 74 AS col2 +---- +15 +74 # 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\)" at position 0 and "Int64\(29\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 29, 29 +---- +29 +29 query I rowsort SELECT DISTINCT 96 + - + 10 + - - 95 + + ( + ( 81 ) ) @@ -22359,8 +22672,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -107 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(17\)\) AS col1" at position 0 and "\(\- nullif\(Int64\(73\), Int64\(41\)\)\) \+ Int64\(\-34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( 17 ) AS col1, - NULLIF ( + + 73, + 41 ) + - 34 AS col1 +---- +-107 +1 query I rowsort label-4246 SELECT DISTINCT + 17 / - CAST ( NULL AS INTEGER ) @@ -22445,8 +22761,11 @@ 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\(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\. +query II valuesort 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 +---- +63 +NULL query I rowsort label-4262 SELECT - 0 * 46 + + + 99 + + MAX ( - - 7 ) / + + 74 AS col2 @@ -22697,8 +23016,11 @@ 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\(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\. +query II valuesort SELECT 55 AS col0, + COUNT ( * ) * - 18 * + ( - NULLIF ( - + 94, + + 88 ) ) + + 30 + - 7 col0 +---- +-1669 +55 query I rowsort label-4310 SELECT ( - 36 ) + CAST ( NULL AS INTEGER ) AS col0 @@ -22867,8 +23189,11 @@ SELECT - COUNT ( * ) - + + 8 AS col1, - 30 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(95\)\) AS col1" at position 0 and "CAST\(Int64\(48\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( ALL 95 ) col1, CAST ( 48 AS INTEGER ) col1 +---- +48 +95 query II rowsort SELECT + 24 - + 83, + 71 AS col0 @@ -22997,8 +23322,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \+ Int64\(65\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 5 + + 65 * COUNT ( * ) AS col0, - 51 col0 +---- +-51 +60 query II rowsort SELECT DISTINCT - 10 + - - ( 47 ) AS col2, 41 * - 56 AS col0 @@ -23229,8 +23557,11 @@ SELECT ALL NULLIF ( + 95, - 8 * + ( - 17 ) ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5925 # Datafusion - Expected - -2652 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(\-75\) AS col0" at position 0 and "Int64\(51\) \* \(\- Int64\(52\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 79 * + - 75 col0, + 51 * + + ( - + 52 ) AS col0 +---- +-2652 +-5925 query II rowsort SELECT ALL + 39 * - 33, 38 AS col0 @@ -23325,8 +23656,12 @@ 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\(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\. +query III valuesort SELECT ALL COALESCE ( + ( COUNT ( * ) ), - 88 + - - 80, - 7 + - + 75 ) * - 3 - + COUNT ( * ) / 89 AS col2, + 0 * - + 31 - + 90 AS col2, - - 28 + + 35 AS col2 +---- +-3 +-90 +63 query II rowsort SELECT 56 AS col0, 82 @@ -23439,8 +23774,11 @@ SELECT ALL + NULLIF ( - 14, - MAX ( 35 ) * 66 + CASE + 78 WHEN + 2 - + 20 THEN 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -100147 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(33\), Int64\(\-57\)\) \* Int64\(\-37\) \* Int64\(82\) \+ Int64\(\-52\) \+ \(\- Int64\(\-27\)\) AS col1" at position 0 and "Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( 33, + - 57 ) * - 37 * + 82 + - 52 + - - 27 AS col1, - 86 AS col1 +---- +-100147 +-86 query I rowsort label-4450 SELECT - 64 + + + MAX ( DISTINCT + 62 ) @@ -23540,8 +23878,12 @@ SELECT - - 33 + + 20 AS col0 # Datafusion - Expected - 58 # Datafusion - Expected - 1882 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \+ Int64\(\-94\) \* Int64\(\-19\) AS col1" at position 1 and "\(\- Int64\(\-26\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 58 AS col2, 96 + - 94 * - 19 AS col1, - - 26 AS col1 +---- +1882 +26 +58 query I rowsort label-4469 SELECT ALL - COUNT ( - + 45 ) * + 10 * - + CASE 13 WHEN + COUNT ( * ) THEN NULL WHEN NULLIF ( 78, 41 * - 70 * - 41 * + 23 + - - ( - 93 ) * NULLIF ( 1, + 63 ) - - - 70 + 86 + + COUNT ( - 26 ) * + 60 + + ( - COUNT ( * ) ) * 26 ) THEN COUNT ( * ) ELSE NULL END @@ -23592,8 +23934,11 @@ SELECT NULLIF ( - + COUNT ( * ), - 65 / + COUNT ( * ) * - - ( 63 ) + - 9 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(47\) \* Int64\(\-33\) \- Int64\(31\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - CAST ( NULL AS INTEGER ) + + 47 * + - 33 - + 31 AS col2, + 4 AS col2 +---- +4 +NULL query I rowsort SELECT + - 32 + 15 @@ -23811,8 +24156,11 @@ SELECT ALL - 56 * + 53 + 25 - - NULLIF ( - COUNT ( * ), + - ( - 23 ) ) + 29 AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(34\)\) \+ CAST\(Int64\(26\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 71 / - COUNT ( * ) AS col1, COUNT ( ALL 34 ) + + + CAST ( + 26 AS INTEGER ) AS col1 +---- +-71 +27 query II rowsort label-4521 SELECT MIN ( DISTINCT + 33 ) + + 44 AS col0, - 31 @@ -24381,8 +24729,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 57 AS col0, 92 col0 +---- +57 +92 query I rowsort label-4627 SELECT ALL 34 + - + 12 + + 81 * - 71 * NULLIF ( - 70, COUNT ( * ) + + - 14 - 1 ) AS col1 @@ -24460,8 +24811,11 @@ SELECT + - 31, 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 443 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-75\)\) AS col2" at position 0 and "nullif\(Int64\(\-17\), Int64\(\-34\)\) \* Int64\(\-27\) \+ \(\- Int64\(16\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 75 col2, + NULLIF ( - 17, + - 34 ) * + - 27 + - + 16 AS col2 +---- +443 +75 query II rowsort SELECT + 94 AS col0, - 70 * - + 67 AS col2 @@ -24763,8 +25117,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col2, + 98 + + 3 AS col2 +---- +-1 +101 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -25432,8 +25789,11 @@ SELECT DISTINCT ( + 2 ) - - + ( - - 10 ) col1 # 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\(4\) \- \(\- Int64\(20\)\) AS col2" at position 0 and "Int64\(13\) / Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 4 - - + 20 col2, + 13 / + 37 col2 +---- +0 +24 query I rowsort label-4826 SELECT + COUNT ( - 34 ) * + 57 * + ( - 16 ) AS col2 @@ -25936,8 +26296,11 @@ SELECT ALL 66 + - + SUM ( ALL ( + + 25 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 5890 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "Int64\(62\) \* Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 AS col0, + 62 * + 95 AS col0 +---- +27 +5890 query I rowsort label-4920 SELECT ALL + 77 * + COUNT ( 75 ) @@ -26096,8 +26459,11 @@ 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\(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\. +query II valuesort 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 +---- +1 +NULL query I rowsort SELECT ALL + + 66 * - 97 + 44 @@ -26427,8 +26793,11 @@ 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\(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\. +query II valuesort SELECT - 92 / + NULLIF ( 87, - 52 * COUNT ( * ) + ( - - 2 ) ) AS col2, SUM ( DISTINCT + 16 ) AS col2 +---- +-1 +16 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -26511,8 +26880,11 @@ 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\(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\. +query II valuesort SELECT ALL + - ( - 49 ) AS col2, + 30 + + COUNT ( * ) + + 15 - + 58 * - 61 + + COALESCE ( - 39, + + 73 ) / 55 / 15 AS col2 +---- +3584 +49 query I rowsort SELECT + - 83 * 15 @@ -26802,8 +27174,12 @@ SELECT ALL 75 col2, 4 * 96 # Datafusion - Expected - -22 # Datafusion - Expected - 1215 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* coalesce\(Int64\(27\), Int64\(\-90\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(62\)\) AS col0" at position 1 and "CAST\(NULL AS Int32\) \* \(\- \(\- Int64\(28\)\)\) \* avg\(Int64\(56\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort SELECT - 22, 45 * COALESCE ( + 27, - 90 + + COUNT ( * ) + + ( - COUNT ( * ) ), 62 ) AS col0, CAST ( NULL AS INTEGER ) * - ( - + 28 ) * AVG ( ALL + + 56 ) AS col0 +---- +-22 +1215 +NULL query II rowsort label-5083 SELECT CAST ( NULL AS INTEGER ) AS col1, - 60 - 20 AS col0 @@ -27024,8 +27400,11 @@ SELECT COUNT ( * ) * - 59 * 13 + 24 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(23\)\) \+ \(\- Int64\(\-84\)\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( + + 23 ) + - - 84 AS col0, + 94 AS col0 +---- +85 +94 query I rowsort label-5125 SELECT DISTINCT - ( 69 ) + 47 + MAX ( DISTINCT 50 ) @@ -27438,8 +27817,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col2, - 4 AS col2 +---- +-1 +-4 query I rowsort SELECT 65 + + 92 @@ -28358,8 +28740,11 @@ SELECT + 97 + + 12 - + 38 * + - COALESCE ( + 20, - 74 * CAST ( COUNT ( * ) AS IN # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 col1, 8 AS col1 +---- +47 +8 query II rowsort label-5383 SELECT ALL 57, - 39 + + COUNT ( * ) col0 @@ -28504,8 +28889,11 @@ SELECT - - 51 + + - 28 * + - ( - 81 ) * + + COUNT ( - CAST ( NULL AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-30\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MAX ( - 30 ) AS col0, COUNT ( * ) col0 +---- +-30 +1 query I rowsort SELECT - NULLIF ( + + 33, - 40 * - - ( + + 80 ) ) + 63 @@ -28961,8 +29349,11 @@ SELECT CAST ( + + 96 AS INTEGER ) * + CAST ( 73 AS INTEGER ) * 66 + 87 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS 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 IR valuesort SELECT ALL 20 col1, ( - CAST ( NULL AS FLOAT8 ) ) AS col1 +---- +20 +NULL query I rowsort label-5499 SELECT 8 + COUNT ( * ) AS col0 @@ -28982,8 +29373,11 @@ SELECT DISTINCT - MAX ( - 40 ) + - - 24 * - 3 + + - 95 AS col0 # 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 "\(\- Int64\(0\)\) AS col0" at position 0 and "Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 0 AS col0, 99 AS col0 +---- +0 +99 query I rowsort SELECT ALL + + 33 * + 88 AS col0 @@ -29193,8 +29587,11 @@ SELECT - 45 * 82 * 15 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "CAST\(NULL AS Float64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + 82 AS col0, + CAST ( NULL AS FLOAT8 ) col0 +---- +82 +NULL query I rowsort SELECT ALL + ( - - ( + ( 12 ) ) ) AS col2 @@ -29388,8 +29785,11 @@ SELECT DISTINCT + NULLIF ( + - CASE - NULLIF ( + 25, + - 25 ) WHEN 9 THEN NULL E # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 AS col1, - CAST ( NULL AS INTEGER ) AS col1 +---- +3 +NULL query I rowsort SELECT ALL + 92 + + 73 + + 67 AS col0 @@ -29447,8 +29847,11 @@ SELECT ALL - 54 AS col2, 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col1" at position 0 and "Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 70 AS col1, 30 AS col1 +---- +-70 +30 query II rowsort SELECT + 50, 29 AS col2 @@ -29599,8 +30002,11 @@ 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\(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\. +query II valuesort SELECT + ( + 62 ) AS col1, ( COUNT ( * ) ) * 69 - + NULLIF ( 79, - ( - + 37 ) ) * + - 76 - + 32 col1 +---- +6041 +62 query I rowsort SELECT + - 66 * - 18 + - 93 + - 71 * 9 * + 56 AS col2 @@ -29725,8 +30131,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -5976 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "\(\- coalesce\(nullif\(nullif\(coalesce\(\(\- Int64\(83\)\), Int64\(36\)\), Int64\(60\)\), Int64\(16\)\), Int64\(\-84\) \- \(\- CAST\(NULL AS Int32\)\) \+ Int64\(46\) \+ Int64\(15\) \+ Int64\(0\) / Int64\(58\)\)\) \* Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 44 AS col2, - COALESCE ( + + NULLIF ( NULLIF ( + COALESCE ( - + 83, 36 ), + 60 ), + 16 ), - 84 - - CAST ( NULL AS INTEGER ) + 46 + + 15 + 0 / 58 ) * - 72 AS col2 +---- +-5976 +44 query I rowsort SELECT - 9 + 18 - - ( 70 ) * + 55 + - - 79 + + - 52 * - 41 @@ -30111,8 +30520,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 * - COUNT ( * ) AS col2, - 52 AS col2 +---- +-38 +-52 query I rowsort SELECT ALL - ( + 91 ) * + + 56 AS col2 @@ -30177,8 +30589,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 AS col0, 45 * + COUNT ( * ) + + - 26 AS col0 +---- +19 +47 query II rowsort label-5732 SELECT 82 col2, - MAX ( DISTINCT + 65 ) + + - 77 @@ -30447,8 +30862,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(\-70\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 63 AS col2, + 84 * + - 19 * + + COUNT ( * ) * - - 70 AS col2 +---- +-111720 +63 query I rowsort label-5784 SELECT ALL 98 / 79 * + COUNT ( * ) + - 69 * + 31 @@ -30528,8 +30946,11 @@ SELECT - 13 * - SUM ( ALL - - 15 ) * + 15 + + 95 / + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col0" at position 0 and "CASE Int64\(\-63\) WHEN Int64\(6\) \* Int64\(80\) \* Int64\(\-2\) \* \(\- Int64\(\-81\)\) \+ Int64\(\-62\) THEN CASE Int64\(82\) WHEN Int64\(45\) \+ Int64\(\-14\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(77\) THEN Int64\(98\) WHEN Int64\(85\) \- Int64\(90\) / Int64\(\-91\) THEN NULL END END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 22 AS col0, CASE + - 63 WHEN + 6 * + 80 * - 2 * - - 81 + - 62 THEN + CASE + 82 WHEN + 45 + - 14 + - CAST ( NULL AS INTEGER ) * + 77 THEN 98 WHEN + + 85 - 90 / - 91 THEN NULL END END AS col0 +---- +-22 +NULL query I rowsort SELECT ALL + + 35 * 25 @@ -30589,8 +31010,11 @@ SELECT ALL 69 * 75 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1517 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(82\)\) \+ \(\- Int64\(39\)\) \* \(\- Int64\(41\)\) AS col0" at position 0 and "Int64\(\-1\) \* Int64\(\-39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - ( 82 ) ) + - + 39 * - + 41 AS col0, - 1 * - 39 AS col0 +---- +1517 +39 query I rowsort label-5812 SELECT 31 / - MIN ( ALL - 54 ) @@ -30875,8 +31299,11 @@ SELECT ALL 62 * + - COUNT ( * ) # 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 "Int64\(39\) / Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 61 col1, 39 / - 27 col1 +---- +-1 +61 query I rowsort SELECT ALL - 71 + - 83 @@ -31336,8 +31763,11 @@ SELECT 42, + 8 AS col0 # 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 "sum\(Int64\(\-59\)\) \+ Int64\(2\) \* Int64\(0\) AS col0" at position 0 and "Int64\(\-88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( ALL - 59 ) + 2 * + 0 AS col0, - 88 AS col0 +---- +-59 +-88 query II rowsort label-5952 SELECT - COUNT ( * ) AS col1, SUM ( ALL - - 10 ) col2 @@ -31373,8 +31803,11 @@ SELECT ALL - 41 * 98 * 86 / + - ( - COUNT ( * ) ) + COALESCE ( 66, - 47 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1961 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(53\) \* \(\- Int64\(\-37\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, 53 * - ( - 37 ) AS col0 +---- +1 +1961 query I rowsort label-5959 SELECT DISTINCT - 97 * + 60 + + - 18 - + - COUNT ( * ) + + - 64 + - COUNT ( * ) + + 4 @@ -31453,8 +31886,11 @@ SELECT ALL + - 53 AS col2, + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col1" at position 0 and "Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 62 col1, + 82 AS col1 +---- +-62 +82 query I rowsort label-5974 SELECT - 36 + - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) / - 1 AS col0 @@ -31612,8 +32048,11 @@ SELECT DISTINCT ( - - 86 ) 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 "Int64\(\-71\) AS col0" at position 0 and "Int64\(81\) \- Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 71 col0, 81 - + 83 AS col0 +---- +-2 +-71 query I rowsort SELECT DISTINCT 25 * 98 + 97 AS col2 @@ -31874,8 +32313,11 @@ SELECT ALL + 36 / + 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- 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 II valuesort SELECT - + 34 AS col0, 60 AS col0 +---- +-34 +60 query I rowsort label-6052 SELECT + - CAST ( - 16 AS INTEGER ) AS col1 @@ -32402,8 +32844,11 @@ SELECT - 13 + - - 7 * + + 42 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - 4819 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(13\)\), Int64\(56\)\) \+ \(\- Int64\(54\)\) 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 II valuesort SELECT ALL + COALESCE ( - + 13, + 56 ) + - + ( + 54 ) AS col0, 61 * 79 AS col0 +---- +-67 +4819 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -32483,8 +32928,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - -5244 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col2" at position 0 and "max\(Int64\(\-76\)\) \* \(\- Int64\(\-69\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 64 AS col2, MAX ( ALL - 76 ) * - - 69 AS col2 +---- +-5244 +-64 query I rowsort SELECT DISTINCT - 37 * + 98 AS col0 @@ -32799,8 +33247,11 @@ SELECT ALL 2 / + 86 * 10 + + 61 - - 57 + + + 16 * + + COUNT ( * ) 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 col1" at position 0 and "CASE Int64\(10\) WHEN Int64\(\-74\) THEN NULL ELSE CASE Int64\(83\) WHEN count\(\(\- Int64\(12\)\)\) THEN NULL WHEN Int64\(\-68\) THEN Int64\(93\) \+ Int64\(\-75\) \+ Int64\(\-89\) END END \+ Int64\(\-11\) \* Int64\(\-9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 99 ) col1, + CASE + 10 WHEN + - 74 THEN NULL ELSE + CASE + + 83 WHEN + + COUNT ( ALL - + 12 ) THEN NULL WHEN - 68 THEN + 93 + - 75 + + ( - 89 ) END END + + - 11 * + - 9 AS col1 +---- +99 +NULL query I rowsort SELECT DISTINCT + ( - 49 ) col2 @@ -32830,8 +33281,11 @@ SELECT ( - - 66 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(68\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) * 68 AS col0, + 22 AS col0 +---- +22 +NULL query I rowsort SELECT DISTINCT - 4 * 67 @@ -32942,8 +33396,11 @@ SELECT 10 + + - 2 AS col1 # 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\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 71 col2, + 30 AS col2 +---- +30 +71 query I rowsort label-6254 SELECT DISTINCT - COUNT ( * ) + + + 97 AS col1 @@ -33135,8 +33592,11 @@ SELECT 10 + - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - -532 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* Int64\(\-28\) AS col2" at position 0 and "\(\- CAST\(Int64\(\-22\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 * - 28 AS col2, - CAST ( - 22 AS INTEGER ) AS col2 +---- +-532 +22 query I rowsort label-6290 SELECT ALL 91 + + + 15 + + CAST ( + - SUM ( ( 71 ) ) AS INTEGER ) @@ -33488,8 +33948,11 @@ SELECT - 19 + - 32 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-9\), Int64\(77\) / Int64\(99\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COALESCE ( - 9, 77 / + + 99 ) AS col0, COUNT ( * ) AS col0 +---- +1 +9 query II rowsort SELECT + - 33, 97 AS col0 @@ -33805,8 +34268,11 @@ SELECT - 53 col2, 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "Int64\(\-46\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 AS col2, - 46 * + COUNT ( * ) AS col2 +---- +-46 +19 query I rowsort label-6419 SELECT + 94 * + 85 + - NULLIF ( 93, COUNT ( * ) ) + + 77 * - 9 @@ -34210,8 +34676,11 @@ SELECT ALL COALESCE ( - 84, 29 * + COUNT ( * ) * - - 72 / COUNT ( DISTINCT 24 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "Int64\(\-35\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 AS col1, - 35 * COUNT ( * ) AS col1 +---- +-35 +16 query II rowsort SELECT 1, 89 AS col0 @@ -34251,8 +34720,11 @@ NULL # 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) * - - 10 * + + 14 - + 84 AS col0, 71 AS col0 +---- +-224 +71 query I rowsort SELECT ALL - ( + NULLIF ( + 33, 56 ) ) @@ -34335,8 +34807,11 @@ SELECT 73 + + + ( - + COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \* Int64\(4\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 20 * + + 4 col1, 69 AS col1 +---- +-80 +69 query II rowsort label-6519 SELECT 79 / 95 * - + CASE - ( COUNT ( * ) ) WHEN - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) THEN - 76 * - 41 + + 33 WHEN - SUM ( + + 89 ) THEN NULL WHEN 51 * + 6 * + + CASE + 95 WHEN 35 THEN NULL WHEN - 49 THEN - + 70 END + MAX ( DISTINCT + 41 ) THEN + + 85 END, - 5 AS col1 @@ -34550,8 +35025,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) / - 82 * 81 AS col1, + 33 * - - COUNT ( * ) AS col1 +---- +0 +33 query II rowsort label-6560 SELECT ALL + 75, COUNT ( 81 ) + - 92 + + - 42 * ( + + 55 ) AS col0 @@ -35310,8 +35788,12 @@ SELECT 4 * + 0 AS col2 # Datafusion - Expected - 30 # Datafusion - Expected - 10 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(6\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-72\) \- \(\- \(\- CAST\(Int64\(0\) AS Int32\)\)\)\) \+ Int64\(36\) AS col1" at position 0 and "Int64\(34\) \* CAST\(NULL AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT NULLIF ( - + 6, - COUNT ( * ) + - 72 - - ( - + CAST ( + - 0 AS INTEGER ) ) ) + 36 AS col1, 10, 34 * + + CAST ( NULL AS INTEGER ) AS col1 +---- +10 +30 +NULL query I rowsort SELECT ALL 55 + 25 AS col1 @@ -35321,8 +35803,11 @@ SELECT ALL 55 + 25 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "Int64\(\-5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 AS col0, + ( - 5 ) AS col0 +---- +-5 +87 query I rowsort label-6706 SELECT ALL COUNT ( 22 ) + + 29 + + CAST ( NULL AS INTEGER ) + 28 + + 52 * - 0 * - 64 * 28 - - 1 + + 80 @@ -35532,8 +36017,11 @@ SELECT 60 + 24 col1, 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \- CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- nullif\(Int64\(27\), CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 84 - + + CAST ( NULL AS INTEGER ) col0, - NULLIF ( 27, + CAST ( NULL AS INTEGER ) ) AS col0 +---- +-27 +NULL query I rowsort label-6746 SELECT - + MIN ( ALL 42 ) @@ -35680,8 +36168,11 @@ SELECT DISTINCT + 77 * - - 80 - - 28 col1, - NULLIF ( - + ( CASE 84 WHEN + - 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 3584 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(\-5\) \- Int64\(\-37\) \* \(\- Int64\(\-97\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 12 * + CAST ( - + COUNT ( * ) AS INTEGER ) col0, - 5 - - 37 * - - 97 AS col0 +---- +-12 +3584 query I rowsort label-6774 SELECT + CAST ( NULL AS INTEGER ) * - CAST ( + COUNT ( * ) AS INTEGER ) @@ -37030,8 +37521,11 @@ SELECT + 85 * SUM ( ALL - 56 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4914 # Datafusion - Expected - -2107 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) \* Int64\(91\) AS col1" at position 0 and "Int64\(\-49\) \* \(\- coalesce\(Int64\(\-43\), Int64\(\-51\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 54 * 91 AS col1, - 49 * - COALESCE ( + - 43, - 51 ) AS col1 +---- +-2107 +-4914 query I rowsort label-7033 SELECT + ( - + NULLIF ( COUNT ( * ), - 24 ) ) AS col0 @@ -37046,8 +37540,11 @@ SELECT - COUNT ( * ) / 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 AS col1, 50 col1 +---- +50 +95 query I rowsort label-7036 SELECT COALESCE ( + 78, - COUNT ( * ) * + + 70 ) AS col1 @@ -37491,8 +37988,11 @@ SELECT - 90 * 14 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5184 # Datafusion - Expected - -143 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* Int64\(\-54\) AS col0" at position 0 and "\(\- Int64\(46\)\) \- Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 96 * + - 54 AS col0, - ( + 46 ) - 97 AS col0 +---- +-143 +-5184 query I rowsort SELECT + 55 - - 28 @@ -37672,8 +38172,11 @@ SELECT + - 24 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 55 AS col1, 42 AS col1 +---- +42 +55 query I rowsort SELECT + ( + - 36 ) + 30 col1 @@ -37864,8 +38367,11 @@ SELECT ALL - MAX ( ALL - 70 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 AS col1, 20 col1 +---- +20 +86 query I rowsort label-7192 SELECT DISTINCT 42 + + COUNT ( 93 ) + - 59 * - 97 @@ -38028,8 +38534,11 @@ SELECT DISTINCT - 35 + - + COUNT ( * ) + - 48 * - 47 AS col0, - COALESCE ( - COU # 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\) \+ Int64\(48\) \* Int64\(\-38\) \+ CAST\(NULL AS Float64\) \* \(\- sum\(Int64\(51\)\)\) \+ \(\- Int64\(23\)\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + 17 + + 48 * - 38 + + CAST ( NULL AS FLOAT8 ) * - SUM ( 51 ) + - + 23 AS col0, 1 col0 +---- +1 +NULL query I rowsort SELECT DISTINCT - 62 + + 76 * - + 98 AS col0 @@ -38107,8 +38616,11 @@ SELECT DISTINCT + ( + 29 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- Int64\(51\)\)\) AS col1" at position 0 and "CAST\(Int64\(58\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( - + 51 ) AS col1, CAST ( + 58 AS INTEGER ) AS col1 +---- +1 +58 query I rowsort label-7238 SELECT ALL + - 76 * - 83 + + COUNT ( * ) * ( + + 71 ) + + + COALESCE ( 98, + 14 ) AS col2 @@ -38865,8 +39377,11 @@ SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * - 96 * - 10 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -267040 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* Int64\(\-93\) \* Int64\(99\) \+ Int64\(\-37\) AS col0" at position 0 and "Int64\(\-85\) \* CAST\(NULL AS Int32\) / Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 29 * - 93 * + 99 + - 37 AS col0, - 85 * + CAST ( NULL AS INTEGER ) / 45 AS col0 +---- +-267040 +NULL query I rowsort label-7383 SELECT ALL 30 * - COUNT ( * ) + ( + CAST ( NULL AS INTEGER ) ) * + - ( 7 ) + - 24 + + + 94 / + - ( + 13 ) AS col1 @@ -39063,8 +39578,11 @@ SELECT + 29 + - MIN ( DISTINCT + 98 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- nullif\(\(\- Int64\(10\)\), Int64\(14\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 70 * - CAST ( NULL AS INTEGER ) AS col2, - NULLIF ( - + 10, 14 ) AS col2 +---- +10 +NULL query I rowsort label-7420 SELECT ALL + 59 * - 79 + + + 15 + + + 72 + + COALESCE ( 70, + NULLIF ( + COUNT ( * ), - 39 ) ) + 26 @@ -39126,8 +39644,11 @@ SELECT 45 + MAX ( - - 60 ) + - 28 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \+ \(\- \(\- \(\- CAST\(Int64\(54\) AS Int32\)\)\)\) \+ Int64\(32\) AS col1" at position 0 and "Int64\(\-11\) \+ Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 47 + - + ( - - CAST ( 54 AS INTEGER ) ) + + + 32 AS col1, - 11 + - 16 AS col1 +---- +-27 +25 query I rowsort SELECT 55 + 86 @@ -39190,8 +39711,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + - + 29 + + + 53 * 76 / + 69 AS col2, 24 AS col2 +---- +24 +30 query I rowsort label-7443 SELECT - CASE + 24 WHEN 15 THEN - 22 ELSE + 80 / - 19 END @@ -39275,8 +39799,11 @@ SELECT 75, + 16 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 98072 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col2" at position 0 and "Int64\(\-52\) \* Int64\(\-41\) \* Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 84 AS col2, - 52 * - 41 * + 46 AS col2 +---- +-84 +98072 query I rowsort label-7459 SELECT 65 + - COUNT ( * ) + + - COUNT ( * ) * - + 19 * 11 + - ( 26 ) AS col2 @@ -39470,8 +39997,11 @@ SELECT ALL + 74 * - 18 * - 26 AS col0, 42 / + 31 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 2886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) / Int64\(17\) AS col1" at position 0 and "\(\- Int64\(\-37\)\) \* Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 47 / 17 AS col1, ( - - 37 ) * 78 AS col1 +---- +2 +2886 query I rowsort SELECT ALL 92 * + - 4 * 27 - - 78 AS col0 @@ -39555,8 +40085,11 @@ SELECT ALL - ( 18 ) + - 10 AS col2, 82 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-72\)\) AS col2" at position 0 and "Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 72 ) AS col2, 51 AS col2 +---- +51 +72 query II rowsort label-7511 SELECT - + NULLIF ( - COUNT ( - 56 ), - 63 ) / 18 AS col0, COUNT ( * ) + + NULLIF ( + 3, + 52 ) AS col2 @@ -39692,8 +40225,11 @@ SELECT + 29 AS col2, 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 AS col2, COUNT ( * ) col2 +---- +1 +5 query I rowsort SELECT - 83 * + 85 @@ -40388,8 +40924,12 @@ SELECT ALL + - COALESCE ( - + COUNT ( * ), + SUM ( + 19 ) ) / 58 * - 16 AS col2 # Datafusion - Expected - -1 # Datafusion - Expected - 28 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 1 and "Int64\(\-23\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - COUNT ( ALL 76 ) AS col2, 28 AS col0, - 23 col0 +---- +-1 +-23 +28 query I rowsort SELECT ALL 55 * + 93 @@ -40502,8 +41042,11 @@ SELECT 97 * + - 88 - - 40 - - 69 + + ( - + 92 ) * - 3 + + - 52 AS col0, - COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - -2200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-50\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(25\) \* Int64\(\-88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 50 ) / + COUNT ( * ) AS col0, 25 * + - 88 AS col0 +---- +-2200 +50 query I rowsort SELECT - 81 * 41 @@ -40518,8 +41061,11 @@ SELECT ALL - MIN ( + 79 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) / Int64\(\-13\) \+ Int64\(81\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 / + - 13 + + ( 81 ) AS col1, 37 AS col1 +---- +37 +87 query I rowsort SELECT - 94 * - - 37 AS col2 @@ -41132,8 +41678,11 @@ 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\(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\. +query II valuesort SELECT ALL - + 77 + - 92 - + - COALESCE ( - 66, + COUNT ( DISTINCT - 41 ) ) + + COUNT ( * ) * + + 58 * ( + - 73 ) col0, + ( + 34 ) + + + 24 AS col0 +---- +-4469 +58 query I rowsort SELECT - 68 * - 52 + + 98 @@ -41393,8 +41942,11 @@ SELECT ( - 62 ), + 9 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-33\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MIN ( - 33 ) AS col0, + COUNT ( * ) AS col0 +---- +-33 +1 query II rowsort SELECT - 17 * 62, - 13 col1 @@ -41656,8 +42208,11 @@ 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\(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\. +query II valuesort 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 +---- +-36 +30 query II rowsort SELECT - 83, 97 AS col0 @@ -41736,8 +42291,12 @@ SELECT 78 / 30 * - 19 * - - 90 AS col0, 71 # Datafusion - Expected - -21 # Datafusion - Expected - 23 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 21 AS col1, + 23 AS col1, + + 13 + - + NULLIF ( + 84, + ( + 58 ) ) AS col1 +---- +-21 +-71 +23 query I rowsort SELECT ALL + 73 * - 60 - 15 + + 94 * - + 20 + 62 * - 59 + 4 col0 @@ -41757,8 +42316,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-48\)\) AS col0" at position 0 and "Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 48 AS col0, - 73 AS col0 +---- +-73 +48 query II rowsort SELECT + - 36, + 73 * - 84 * - + ( + ( 2 ) ) AS col2 @@ -41803,8 +42365,11 @@ SELECT 14 * - 20 * + COUNT ( * ) - + 0 + + 7 - COUNT ( * ) - - 9 * COUNT ( 64 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 62 AS col1, COUNT ( * ) AS col1 +---- +-62 +1 query I rowsort label-7938 SELECT - + CASE + 94 WHEN + - 28 + 81 / + 6 THEN + + CAST ( NULL AS INTEGER ) * - ( 38 ) - + MIN ( DISTINCT - + 88 ) WHEN + - 90 THEN 90 END @@ -41902,8 +42467,11 @@ SELECT ALL + 55 - - + 60 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -117 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \+ Int64\(\-65\) AS col1" at position 0 and "Int64\(\-15\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ nullif\(Int64\(\-25\), \(\- CAST\(NULL AS Int32\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ coalesce\(min\(DISTINCT Int64\(86\)\), Int64\(\-59\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-9\) \* \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-117 +-39 query I rowsort label-7956 SELECT 46 / - MIN ( + 8 ) + + - 44 + - 19 + - + 42 @@ -42064,8 +42632,11 @@ SELECT - 11 + - 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col2" at position 0 and "Int64\(11\) \+ Int64\(\-28\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 AS col2, + 11 + - 28 + + CAST ( NULL AS INTEGER ) AS col2 +---- +36 +NULL query II rowsort label-7986 SELECT 6 AS col0, COALESCE ( 87, + + CAST ( - COUNT ( * ) AS INTEGER ) ) @@ -42091,8 +42662,11 @@ SELECT - COUNT ( - - 21 ) * + + 31 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -308924 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* \(\- Int64\(77\)\) \* Int64\(59\) AS col2" at position 0 and "Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 68 * - + 77 * 59 AS col2, 92 AS col2 +---- +-308924 +92 query I rowsort SELECT DISTINCT + + 42 * - - 33 AS col0 @@ -42472,8 +43046,11 @@ 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\(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\. +query II valuesort SELECT + 84 AS col0, COALESCE ( - 72, 39 * - - COUNT ( * ) + COUNT ( * ) + - 18 * 21 ) col0 +---- +-72 +84 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -42915,8 +43492,11 @@ SELECT ALL - ( - NULLIF ( 30, - 27 * - 49 * - 66 / - - COUNT ( * ) ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(78\)\) AS col2" at position 0 and "Int64\(\-97\) / Int64\(18\) \- \(\- Int64\(\-60\)\) \+ \(\- Int64\(5\)\) \+ Int64\(\-17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 78 col2, - 97 / + 18 - - - 60 + - ( + + 5 ) + - 17 AS col2 +---- +-78 +-87 query I rowsort SELECT 93 + + 29 + - + 46 + + 62 * - - 49 + 67 @@ -43295,8 +43875,11 @@ SELECT ALL NULLIF ( + 29, ( - 6 ) ) * + + 72 + - COUNT ( * ) - + 53 # 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 "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 84 AS col0, 1 AS col0 +---- +-84 +1 query I rowsort SELECT + 53 * 5 - - 6 AS col0 @@ -43403,8 +43986,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 77 AS col1, 1 * NULLIF ( - 47, + COUNT ( * ) ) AS col1 +---- +-47 +-77 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -43823,8 +44409,11 @@ SELECT + 8 * - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6298 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \* Int64\(\-81\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(63\) / Int64\(49\) \+ \(\- CAST\(Int64\(81\) AS Int32\)\) \+ Int64\(59\) AS col2" at position 0 and "Int64\(\-43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 78 * - 81 + COUNT ( * ) + + + 63 / 49 + + - CAST ( 81 AS INTEGER ) + + 59 AS col2, - 43 col2 +---- +-43 +6298 query I rowsort SELECT + NULLIF ( + 82, + 64 * + - 89 + - - 32 + - 2 ) - 45 @@ -43834,8 +44423,11 @@ SELECT + NULLIF ( + 82, + 64 * + - 89 + - - 32 + - 2 ) - 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 46 AS col2, CAST ( NULL AS INTEGER ) AS col2 +---- +46 +NULL query I rowsort SELECT + 77 * 40 @@ -43871,8 +44463,11 @@ 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\(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\. +query II valuesort SELECT - NULLIF ( - - MIN ( DISTINCT - 2 ), COUNT ( * ) ) * + COUNT ( * ) * 78 * - - 49 AS col2, ( - MIN ( 53 ) ) col2 +---- +-53 +7644 query I rowsort label-8327 SELECT DISTINCT ( - - ( + COUNT ( * ) ) ) @@ -44804,8 +45399,11 @@ SELECT DISTINCT + 2 / MIN ( 29 ) # 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 "\(\- max\(DISTINCT Int64\(1\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 AS col1, - MAX ( DISTINCT 1 ) AS col1 +---- +-1 +38 query I rowsort label-8511 SELECT ALL ( MIN ( ALL 27 ) ) - + 48 - + 9 * + 32 AS col2 @@ -45275,8 +45873,11 @@ SELECT ALL ( - - 49 ) + + CAST ( + + 88 AS INTEGER ) / - 97 - 73 + - + 2 * + - 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 67 AS col2, 93 AS col2 +---- +-67 +93 query II rowsort label-8601 SELECT 63 / 29 / 28, 55 * - COUNT ( * ) col0 @@ -45345,8 +45946,11 @@ SELECT - 43, 89 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 35 -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 "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 27 ) + + 12 AS col2, 35 AS col2 +---- +35 +39 query I rowsort label-8614 SELECT MIN ( - 34 ) + 9 + 68 AS col2 @@ -45559,8 +46163,11 @@ SELECT ALL 21 * 41 * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 7741 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) / Int64\(\-69\) AS col0" at position 0 and "Int64\(\-85\) \* nullif\(\(\- nullif\(CAST\(Int64\(90\) AS Int32\), \(\- Int64\(\-51\)\)\)\), Int64\(47\)\) \- Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 3 / - 69 col0, - 85 * NULLIF ( - + NULLIF ( CAST ( + + 90 AS INTEGER ), - - 51 ), 47 ) - - 91 AS col0 +---- +0 +7741 query I rowsort label-8655 SELECT DISTINCT 77 * - - ( - - 93 ) * - CASE CASE + 76 WHEN + - 68 THEN 0 * - SUM ( ALL 92 ) WHEN + 96 THEN - 79 END WHEN + COUNT ( * ) THEN NULL WHEN 90 THEN NULL ELSE - 30 END + 8 @@ -45682,8 +46289,11 @@ SELECT - 94 + - + CASE 12 WHEN - + ( ( - 70 ) ) THEN + + NULLIF ( + 72, 83 + CAS # 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 "Int64\(3\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 AS col1, + 92 AS col1 +---- +3 +92 query I rowsort label-8679 SELECT - COUNT ( ALL - - ( + 17 ) ) AS col1 @@ -46192,8 +46802,11 @@ SELECT DISTINCT + COALESCE ( - + ( - 29 ), 73 * - 45 - 88 + 53 + + 2 + 45 * + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 79 col0, + 55 AS col0 +---- +55 +79 query I rowsort SELECT DISTINCT + ( + - 16 ) @@ -46723,8 +47336,12 @@ SELECT ALL - 74 * + 63 + - 4 AS col1 # Datafusion - Expected - 1 # Datafusion - Expected - -800 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-25\) \* \(\- Int64\(\-32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT COUNT ( * ) AS col0, - 25 * ( - - 32 ) AS col0, + - 4 +---- +-4 +-800 +1 query I rowsort label-8879 SELECT SUM ( + ( + + 95 ) ) AS col0 @@ -46829,8 +47446,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \- \(\- min\(Int64\(55\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 67 * - + 72 AS col0, 60 * + + COUNT ( * ) - - + MIN ( 55 ) col0 +---- +-4824 +115 query I rowsort SELECT + 82 + - - 0 @@ -46952,8 +47572,11 @@ SELECT DISTINCT 80 * - 78 AS col0 # 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 "\(\- nullif\(Int64\(20\), Int64\(85\)\)\) / Int64\(\-20\) AS col0" at position 0 and "Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - NULLIF ( + + ( + 20 ), + 85 ) / - 20 AS col0, 15 AS col0 +---- +1 +15 query II rowsort label-8922 SELECT ALL + MIN ( ALL + 19 ) AS col2, 11 * - 60 @@ -47191,8 +47814,12 @@ SELECT + MIN ( 69 ) # Datafusion - Expected - 24 # Datafusion - Expected - 68 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- Int64\(\-20\)\)\)\) \- Int64\(\-44\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - SUM ( - - 20 ) - - 44 AS col0, 68 AS col0, + 70 +---- +24 +68 +70 query II rowsort SELECT - 13 AS col1, - 28 * - - 14 @@ -47787,8 +48414,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - -59850 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col1" at position 0 and "Int64\(38\) \* \(\- Int64\(\-45\)\) \* Int64\(\-35\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + - 24 ) AS col1, + 38 * - - 45 * - 35 * COUNT ( * ) AS col1 +---- +-24 +-59850 query I rowsort label-9082 SELECT 53 + + 52 / - 70 * - 7 AS col2 @@ -48111,8 +48741,11 @@ SELECT DISTINCT COUNT ( * ) - - ( + 32 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - 29 ) AS col0, 59 AS col0 +---- +-29 +59 query I rowsort label-9143 SELECT + 33 / - + 78 * + + 66 * - + 93 @@ -48412,14 +49045,20 @@ 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 "Int64\(17\) / Int64\(91\) AS col1" at position 0 and "Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 17 / + + 91 AS col1, - 40 col1 +---- +-40 +0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col2" at position 0 and "Int64\(58\) \* Int64\(27\) / Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 8 AS col2, + 58 * 27 / 27 AS col2 +---- +-8 +58 query II rowsort label-9202 SELECT ALL - COUNT ( * ), - 95 + - NULLIF ( 78, 4 * - - 34 + + + 76 + + 64 ) col2 @@ -48495,8 +49134,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 0 and "CAST\(Int64\(\-51\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 col1, CAST ( - 51 AS INTEGER ) AS col1 +---- +-51 +91 query I rowsort SELECT ALL - + 56 + - 27 @@ -48682,8 +49324,11 @@ SELECT DISTINCT COUNT ( - 48 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - -162 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col2" at position 0 and "Int64\(\-38\) \* \(\- Int64\(\-5\)\) \+ Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 col2, - 38 * - - 5 + + 28 AS col2 +---- +-162 +38 query I rowsort label-9252 SELECT - 57 * + COALESCE ( 56, + + CAST ( - 61 AS INTEGER ) + - 17 ) AS col0 @@ -49143,8 +49788,11 @@ SELECT ALL 98 / - + 81 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) / \(\- \(\- Int64\(88\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 / - ( - + 88 ) * + COUNT ( * ) AS col0, - COUNT ( * ) AS col0 +---- +-1 +1 query I rowsort SELECT ALL - 2 + + 97 AS col2 @@ -49159,8 +49807,11 @@ SELECT ALL ( - - 73 ) + + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "Int64\(7\) \* Int64\(20\) \- Int64\(53\) \* coalesce\(Int64\(9\), Int64\(54\)\) \+ Int64\(\-46\) \+ count\(Int64\(1\)\) AS count\(\*\) / \(\- \(\- max\(CAST\(NULL AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 33 AS col1, 7 * + 20 - + + 53 * + COALESCE ( + 9, + 54 ) + - 46 + COUNT ( * ) / - ( - MAX ( ALL + CAST ( NULL AS INTEGER ) ) ) AS col1 +---- +33 +NULL query I rowsort label-9343 SELECT - CAST ( NULL AS INTEGER ) * - 20 col2 @@ -49176,8 +49827,11 @@ SELECT - 90 AS col2, 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 2752 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "Int64\(42\) \* Int64\(66\) \+ \(\- Int64\(20\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 AS col1, + 42 * + 66 + - + 20 col1 +---- +2752 +84 query I rowsort SELECT ALL ( 3 ) - - 49 AS col2 @@ -49556,8 +50210,11 @@ SELECT ALL - + 48 + - 37 # 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 "Int64\(43\) \- Int64\(40\) AS col0" at position 0 and "Int64\(\-98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 43 ) - + 40 AS col0, - 98 AS col0 +---- +-98 +3 query I rowsort label-9417 SELECT ALL - + CAST ( NULL AS INTEGER ) + + 72 @@ -50104,8 +50761,11 @@ SELECT + + 63 * + 53 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 174 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col1" at position 0 and "Int64\(\-2\) \* Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 15 AS col1, - 2 * - 87 AS col1 +---- +-15 +174 query I rowsort label-9522 SELECT + 19 + 53 - + COUNT ( * ) AS col0 @@ -50120,8 +50780,11 @@ SELECT - ( - - 89 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col1" at position 0 and "Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 65 AS col1, - 61 AS col1 +---- +-61 +-65 query I rowsort label-9525 SELECT + COUNT ( * ) + - 97 - + 53 * COUNT ( * ) + + 3 * + 67 @@ -50146,14 +50809,20 @@ SELECT COUNT ( ALL - 4 ) + + COALESCE ( + + 6, + + 51, - COALESCE ( - 45, - + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(90\)\) AS col1" at position 0 and "Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 90 AS col1, 89 AS col1 +---- +-90 +89 # 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, + 97 * - 89 AS col0 +---- +-1 +-8633 query II rowsort label-9531 SELECT ALL - 42 * - ( - 30 ) + CAST ( NULL AS INTEGER ) AS col2, 70 @@ -50317,8 +50986,12 @@ SELECT ALL - - 5 * + + 92 + ( - 75 ) - + - 94 AS col2, + 91 # Datafusion - Expected - -13 # Datafusion - Expected - 0 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(13\)\) AS col2" at position 0 and "\(\- Int64\(13\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - ( + 13 ) AS col2, - 34 / + 84 * - - 89 col1, - + 13 col2 +---- +-13 +-13 +0 query I rowsort label-9562 SELECT ALL - ( + - MIN ( ALL + + 25 ) ) * 97 AS col0 @@ -50415,8 +51088,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(\-33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - ( ( COUNT ( * ) ) ) AS col0, - 33 AS col0 +---- +-33 +1 query II rowsort label-9581 SELECT 30 AS col0, + COUNT ( * ) / - 87 @@ -50427,8 +51103,11 @@ SELECT 30 AS col0, + COUNT ( * ) / - 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \+ \(\- \(\- count\(DISTINCT Int64\(70\)\)\)\) \- \(\- Int64\(\-31\)\) \+ Int64\(\-1\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 18 + - - COUNT ( DISTINCT + 70 ) - - ( - 31 ) + - 1 AS col2, + 97 AS col2 +---- +-13 +97 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -50683,8 +51362,11 @@ SELECT DISTINCT + - 60 * - 33 + - + 25 + - 22, + 41 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 74 ) AS col2, + 7 AS col2 +---- +7 +74 query I rowsort label-9631 SELECT ALL + - 62 + - - 6 + + 47 * 72 * - COUNT ( * ) AS col0 @@ -50730,8 +51412,11 @@ SELECT + 40 + 64 + - 54 / + + COUNT ( + 35 ) - - + 79 * + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ Int64\(\-87\) \+ Int64\(7\) AS col2" at position 0 and "Int64\(\-10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 16 + - 87 + 7 AS col2, - 10 AS col2 +---- +-10 +-64 query I rowsort label-9640 SELECT - 22 / - - 42 AS col1 @@ -51365,8 +52050,11 @@ SELECT DISTINCT 35 col1, + 85 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col0" at position 0 and "Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 AS col0, - 68 AS col0 +---- +-58 +-68 query I rowsort SELECT - + 71 - 95 AS col0 @@ -51831,8 +52519,11 @@ SELECT COALESCE ( ( + + 7 ), 40 ) AS col2, - 96 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -540 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col0" at position 0 and "Int64\(\-10\) \* Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 94 AS col0, - 10 * 54 AS col0 +---- +-540 +94 query II rowsort label-9848 SELECT ALL 98 * - - 39 + 13 * 23 AS col1, + 19 / + - 71 @@ -51875,8 +52566,11 @@ SELECT + COUNT ( DISTINCT - 40 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -5096 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-98\) \* Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col0, - 98 * 52 AS col0 +---- +-5096 +1 query I rowsort SELECT ALL 68 * + + 47 @@ -51912,8 +52606,11 @@ SELECT - 38 - - 77 + - 19 + - 50 * - 10 * - COUNT ( * ), - 3 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "sum\(Int64\(\-6\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 79 col0, SUM ( ALL - 6 ) AS col0 +---- +-6 +79 query II rowsort SELECT DISTINCT + 46 AS col0, - 70 * - 39 @@ -51950,8 +52647,11 @@ SELECT + 15 + + - 2 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 83 col1, + ( 83 ) AS col1 +---- +-83 +83 query II rowsort SELECT + 29 + + - 9 AS col0, + 67 AS col2 @@ -52224,8 +52924,12 @@ SELECT ALL - MIN ( DISTINCT + + 77 ) col0 # Datafusion - Expected - 58 # Datafusion - Expected - -10488 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* Int64\(23\) \* Int64\(\-24\) AS col0" at position 1 and "Int64\(\-70\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 58 AS col1, + 19 * 23 * - 24 col0, + - 70 AS col0 +---- +-10488 +-70 +58 query I rowsort label-9920 SELECT 8 * ( COUNT ( * ) ) * + 62 @@ -52424,8 +53128,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 98 / + - COUNT ( * ) AS col2, + 82 AS col2 +---- +82 +98 query I rowsort label-9958 SELECT ALL - COUNT ( * ) + CASE + + COUNT ( DISTINCT ( - - 67 ) ) WHEN + - 11 THEN NULL WHEN + - 99 THEN - SUM ( - 90 ) * 54 END diff --git a/data/sqlite/random/expr/slt_good_101.slt b/data/sqlite/random/expr/slt_good_101.slt index 95d78bc..33c328b 100644 --- a/data/sqlite/random/expr/slt_good_101.slt +++ b/data/sqlite/random/expr/slt_good_101.slt @@ -910,8 +910,11 @@ SELECT + 59, + 16 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) AS col1" at position 0 and "CASE CAST\(NULL AS Int32\) WHEN \(\- coalesce\(Int64\(56\), CAST\(NULL AS Int32\)\)\) THEN count\(Int64\(2\)\) END \* Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 74 AS col1, CASE + CAST ( NULL AS INTEGER ) WHEN - + COALESCE ( 56, + CAST ( NULL AS INTEGER ) ) THEN + COUNT ( + ( 2 ) ) END * ( + 93 ) AS col1 +---- +-74 +NULL query I rowsort label-170 SELECT 61 * + CAST ( ( - COUNT ( * ) ) AS INTEGER ) @@ -933,8 +936,12 @@ NULL # Datafusion - Expected - 82 # Datafusion - Expected - 151 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "Int64\(48\) \+ Int64\(26\) \+ Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 82 AS col1, 48 + 26 + + 77 AS col1, + 15 col1 +---- +15 +151 +82 query I rowsort label-174 SELECT MIN ( DISTINCT + 5 ) * + 11 col1 @@ -1280,8 +1287,11 @@ SELECT + 9, 35 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, + 91 AS col0 +---- +1 +91 query I rowsort label-240 SELECT ALL + 89 * + CAST ( 97 AS INTEGER ) + + - 48 AS col1 @@ -1973,8 +1983,11 @@ SELECT DISTINCT - 8 * 59 + + 43 + 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 AS col0, 68 AS col0 +---- +64 +68 query I rowsort label-374 SELECT ALL + ( + CASE - COUNT ( * ) WHEN - 76 THEN + 18 * + 54 WHEN CASE ( + MIN ( 69 ) ) WHEN - 50 * COUNT ( * ) THEN NULLIF ( - ( - NULLIF ( 23, - 87 ) ), - MIN ( 14 ) / 35 ) WHEN COUNT ( * ) THEN NULL END THEN NULL ELSE 96 END ) + - 5 @@ -2384,8 +2397,11 @@ SELECT 60 / - - 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1152 # Datafusion - Expected - -3332 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* Int64\(\-12\) AS col1" at position 0 and "Int64\(49\) \* Int64\(\-68\) \* Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 * + - 12 AS col1, + 49 * - 68 * + 1 AS col1 +---- +-1152 +-3332 query I rowsort label-453 SELECT DISTINCT - 50 * - 25 * + COUNT ( * ) col0 @@ -3061,8 +3077,11 @@ SELECT ALL - 57 * 85 + - 34 / SUM ( + 83 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 94 AS col2, 84 AS col2 +---- +84 +94 query I rowsort label-584 SELECT DISTINCT 69 * 67 + - + CASE + 66 WHEN - + 38 + 12 THEN NULL WHEN + 82 THEN NULL WHEN + + 30 THEN + 21 + 60 + - 54 / 29 * + ( - COUNT ( * ) ) ELSE NULL END + - MIN ( - - 25 ) + 1 AS col0 @@ -3356,8 +3375,11 @@ SELECT ALL MIN ( - - 12 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-74\) AS Int32\) AS col1" at position 0 and "Int64\(\-15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( + - 74 AS INTEGER ) AS col1, - 15 AS col1 +---- +-15 +-74 query I rowsort label-640 SELECT + - COUNT ( * ) + COALESCE ( NULLIF ( - COUNT ( * ), + + 46 * - + 79 ), 16, NULLIF ( - 22, - 49 / ( - + 62 ) * - 12 ) * - 70 ) @@ -3539,8 +3561,11 @@ SELECT ALL - + COUNT ( ALL - 93 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "\(\- CASE Int64\(\-73\) WHEN Int64\(\-20\) \+ avg\(Int64\(61\)\) \+ coalesce\(Int64\(75\), \(\- Int64\(34\)\) \+ Int64\(\-83\)\) THEN Int64\(26\) \* Int64\(\-85\) WHEN \(\- \(\- coalesce\(CASE Int64\(69\) WHEN Int64\(80\) \- Int64\(98\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(64\) \- coalesce\(Int64\(94\), Int64\(12\) \+ CAST\(\(\- Int64\(83\)\) AS Int32\) / Int64\(\-94\), Int64\(\-49\) \+ Int64\(76\)\) / Int64\(35\) THEN NULL WHEN Int64\(18\) \* Int64\(69\) THEN Int64\(\-23\) ELSE Int64\(\-50\) \+ Int64\(53\) END, Int64\(41\) \* Int64\(37\) / Int64\(38\)\)\)\) \* \(\- CAST\(NULL AS Int32\) \+ Int64\(35\)\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(55\) \* Int64\(87\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +73 +NULL query I rowsort SELECT + 86 * + + 87 + + ( - 14 ) * - + 3 @@ -3646,8 +3671,11 @@ SELECT ALL - MAX ( ALL - - 61 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 97 AS col2, COUNT ( * ) AS col2 +---- +-97 +1 query I rowsort SELECT ALL 7 * - 83 @@ -4152,8 +4180,11 @@ SELECT 40 * - 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 189 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col2" at position 0 and "Int64\(\-3\) \* Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 93 AS col2, - 3 * + - 63 AS col2 +---- +189 +93 query I rowsort label-791 SELECT ALL COUNT ( * ) + - 81 @@ -4883,8 +4914,11 @@ SELECT - 44 + - 6 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col0" at position 0 and "Int64\(\-40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 AS col0, - 40 AS col0 +---- +-40 +-81 query II rowsort label-930 SELECT ( - ( + 14 ) ), - ( - 67 ) * NULLIF ( + + COUNT ( * ), 99 ) + + 21 - + - SUM ( ALL + 26 ) * - + 16 * 50 AS col0 @@ -5205,8 +5239,11 @@ SELECT DISTINCT - + 89 - + 69 * COUNT ( * ) * - - 60 / + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6310 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT Int64\(42\)\) \* \(\- Int64\(\-40\)\) \* \(\- Int64\(\-86\)\) \+ Int64\(35\) \* Int64\(82\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( COUNT ( DISTINCT 42 ) ) * - - 40 * - - 86 + + 35 * 82 AS col0, 75 AS col0 +---- +6310 +75 query I rowsort label-992 SELECT DISTINCT SUM ( ALL 35 ) @@ -6161,8 +6198,11 @@ SELECT + 37 AS col2, + 31 * - + 90 + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) \+ Int64\(\-73\) \+ Int64\(48\) AS col2" at position 0 and "Int64\(\-85\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + CAST ( COUNT ( * ) AS INTEGER ) + - 73 + 48 AS col2, - 85 * + COUNT ( * ) AS col2 +---- +-26 +-85 query I rowsort label-1173 SELECT - 81 / + + 45 - + 47 - + 6 * + 69 / - + 17 + - 40 AS col0 @@ -6247,8 +6287,11 @@ SELECT ALL CASE + 94 WHEN COUNT ( * ) * + ( - 80 ) - NULLIF ( + 45, + 5 ) + - CO # Datafusion - Datafusion expected results: # Datafusion - Expected - 126 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \+ Int64\(37\) AS col0" at position 0 and "\(\- Int64\(\-43\)\) \+ Int64\(6\) \+ \(\- Int64\(\-9\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 89 + 37 AS col0, ( - - 43 ) + + 6 + ( - - 9 ) AS col0 +---- +126 +58 query I rowsort SELECT ALL + ( + - 22 ) + + 44 AS col1 @@ -6322,8 +6365,11 @@ SELECT DISTINCT - NULLIF ( - COUNT ( ALL + - 47 ), + CASE 80 WHEN + + 3 + - + 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(nullif\(\(\- Int64\(51\)\), count\(Int64\(87\)\) \* max\(\(\- Int64\(\-24\)\)\)\), Int64\(31\) \* Int64\(17\)\) AS col2" at position 0 and "Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COALESCE ( + NULLIF ( - + 51, + COUNT ( 87 ) * + MAX ( - - 24 ) ), 31 * ( + 17 ) ) AS col2, - 81 AS col2 +---- +-51 +-81 query II rowsort label-1203 SELECT ALL COUNT ( * ) * + 98 AS col2, 45 col0 @@ -6355,8 +6401,11 @@ SELECT DISTINCT 81 / + - 24 AS col0, - ( - MIN ( DISTINCT - 17 ) ) + - 67 AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(12\), \(\- Int64\(22\)\)\)\) AS col0" at position 0 and "Int64\(56\) / Int64\(30\) \+ Int64\(\-63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COALESCE ( 12, - + 22 ) AS col0, + 56 / 30 + - 63 AS col0 +---- +-12 +-62 query II rowsort label-1209 SELECT - + 49 * - 69 col2, + 25 + - - 94 + NULLIF ( + 44, ( 3 ) + - 4 * COUNT ( * ) ) * + + 13 @@ -6539,8 +6588,11 @@ 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\(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\. +query II valuesort SELECT - ( 14 ) - + 54 - - - 53 + - COUNT ( * ) * 55 * - + MIN ( - 42 ) AS col2, + SUM ( ALL - 18 ) AS col2 +---- +-18 +-2431 query II rowsort label-1244 SELECT ALL 10, + ( COUNT ( * ) ) + - 32 - + + 99 AS col0 @@ -6551,14 +6603,20 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col2, COALESCE ( 5, + 79 ) AS col2 +---- +-1 +5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 715 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col2" at position 0 and "Int64\(65\) \* Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 71 AS col2, 65 * 11 AS col2 +---- +-71 +715 query II rowsort label-1247 SELECT 64 AS col0, - COUNT ( * ) @@ -6585,8 +6643,11 @@ 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\(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\. +query II valuesort SELECT ALL 61 * - COUNT ( * ) AS col1, + 88 * + COUNT ( * ) * - 18 AS col1 +---- +-1584 +-61 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -6632,8 +6693,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( 36 ) AS col1, + COUNT ( * ) * COALESCE ( - 6, + + 10 ) + + 18 col1 +---- +-1 +12 query I rowsort SELECT ALL + 6 + 7 * + + 86 * + 98 + - 77 AS col2 @@ -6648,8 +6712,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT NULLIF ( + + 18, - 84 ) + + 20 * + NULLIF ( NULLIF ( 38, - + COUNT ( * ) ), + 57 ) * 79 AS col1, COUNT ( * ) + + 15 AS col1 +---- +16 +60058 query I rowsort label-1263 SELECT ALL SUM ( + 0 ) + + 88 / 66 + - - 4 + 51 @@ -6669,8 +6736,11 @@ SELECT ALL - 71 + - 11 + + - 20 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1264 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* \(\- Int64\(\-79\)\) AS col0" at position 0 and "Int64\(41\) / CASE Int64\(46\) WHEN \(\- CAST\(Int64\(\-5\) AS Int32\)\) \* \(\- CASE sum\(Int64\(53\)\) WHEN \(\- Int64\(\-8\)\) THEN NULL WHEN Int64\(\-77\) / \(\- Int64\(89\)\) \+ CASE \(\- Int64\(\-59\)\) WHEN Int64\(\-86\) \- Int64\(\-96\) \- Int64\(40\) / Int64\(78\) \* Int64\(32\) \* count\(Int64\(1\)\) AS count\(\*\) THEN nullif\(Int64\(\-40\), Int64\(76\)\) \- Int64\(42\) END \+ Int64\(38\) / Int64\(42\) \* Int64\(6\) THEN nullif\(Int64\(50\), Int64\(27\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* max\(DISTINCT \(\- Int64\(\-53\)\)\) THEN Int64\(85\) END\) THEN Int64\(\-88\) WHEN Int64\(36\) THEN \(\- avg\(Int64\(36\)\)\) \* Int64\(30\) \+ Int64\(53\) WHEN Int64\(53\) THEN Int64\(92\) \* Int64\(34\) \+ count\(Int64\(1\)\) AS count\(\*\) END \* Int64\(75\) \+ Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +1264 +NULL query I rowsort label-1267 SELECT ALL NULLIF ( + 66, + 49 ) / + 28 @@ -6685,8 +6755,11 @@ SELECT 53 - + ( + CAST ( - COUNT ( * ) AS INTEGER ) ) * + + 57 - 42 * - + 41 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 124188 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \- Int64\(\-74\) \+ Int64\(51\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-31\) \+ \(\- Int64\(\-19\)\) \* Int64\(68\) \* \(\- max\(\(\- CAST\(Int64\(96\) AS Int32\)\)\)\) AS col0" at position 0 and "Int64\(\-73\) \+ Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 - - 74 + + ( ( + 51 ) ) + - - COUNT ( * ) * + COUNT ( * ) + - COUNT ( * ) + - 31 + - - 19 * 68 * - MAX ( ALL + - CAST ( + 96 AS INTEGER ) ) AS col0, - 73 + - 15 AS col0 +---- +-88 +124188 query I rowsort label-1270 SELECT ALL - NULLIF ( + ( + SUM ( 35 ) ), + 56 ) + - 89 - - 87 / SUM ( + 29 ) * 97 * - 87 + 33 * 44 / - 12 * + COUNT ( * ) / - CASE + + 32 WHEN 43 - 60 + - 3 THEN + 86 + 81 + 77 * COUNT ( * ) * - COALESCE ( - COUNT ( * ), - - MIN ( DISTINCT - 60 ) + - 93 ) * 43 ELSE NULL END @@ -7605,8 +7678,11 @@ SELECT ALL + - 56 * COUNT ( * ) - + - 72 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- CAST\(NULL AS Float64\)\), Int64\(37\) \+ Int64\(81\) \* Int64\(33\)\) \* Int64\(74\) \+ \(\- CAST\(\(\- Int64\(1\)\) AS Int32\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(\-71\)\)\) \* Int64\(\-54\) \+ Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + + NULLIF ( - CAST ( NULL AS FLOAT8 ), + 37 + 81 * + + 33 ) * 74 + - CAST ( - + 1 AS INTEGER ) - + COUNT ( * ) AS col0, + ( + ( - COUNT ( + - 71 ) ) ) * - 54 + 38 AS col0 +---- +92 +NULL query I rowsort SELECT 25 * - - 96 - + 8 @@ -7714,8 +7790,11 @@ 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\(1\)\) AS count\(\*\), Int64\(79\)\) \+ Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 88 + + - 40 * - 51 col1, - NULLIF ( + 41, - - ( - - 65 ) + + ( + 88 ) ) + 89 + 64 + - 22 / 15 * - 90 * COALESCE ( + COUNT ( * ), 79 ) + + 60 AS col1 +---- +2128 +262 query I rowsort label-1465 SELECT + + COUNT ( ALL - - CAST ( + + 95 AS INTEGER ) ) @@ -8007,8 +8086,11 @@ SELECT DISTINCT + + ( - - ( - 6 ) ) * - - COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - -4657 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col1" at position 0 and "\(\- Int64\(58\)\) \* Int64\(78\) \+ Int64\(13\) \- Int64\(51\) \- \(\- Int64\(\-95\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 22 AS col1, - ( + + 58 ) * + 78 + 13 - 51 - - - 95 AS col1 +---- +-22 +-4657 query II rowsort SELECT ALL - + 55 AS col0, - 46 @@ -8308,8 +8390,11 @@ SELECT ALL + 8 / + 49 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-10\), Int64\(97\)\)\) / \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-13\) AS col0" at position 0 and "\(\- Int64\(36\)\) \* Int64\(\-36\) \+ Int64\(\-6\) \- Int64\(23\) \* \(\- max\(CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( - 10, + 97 ) / - CAST ( NULL AS INTEGER ) * - 13 AS col0, ( - + 36 ) * + - 36 + + - 6 - + 23 * - + MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col0 +---- +NULL +NULL query I rowsort SELECT DISTINCT 16 * - 23 + - - ( - 0 ) AS col1 @@ -8475,8 +8560,11 @@ SELECT ALL - 67 + 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2608 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) \* Int64\(28\) \+ Int64\(\-4\) AS col1" at position 0 and "Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 93 * + 28 + - 4 AS col1, - 94 AS col1 +---- +-2608 +-94 query I rowsort SELECT ( 29 ) - + + 4 + + 72 + - 78 - 88 @@ -10307,8 +10395,11 @@ 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\(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\. +query II valuesort 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 +---- +-83 +NULL query I rowsort label-1964 SELECT + 72 * 58 + + CAST ( NULL AS INTEGER ) @@ -10481,8 +10572,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( DISTINCT - - 31 ) * - - 34 * - 64 AS col0, 12 * + - COUNT ( * ) * 62 AS col0 +---- +-744 +67456 query II rowsort SELECT ALL 66 AS col1, - 75 @@ -10493,8 +10587,11 @@ SELECT ALL 66 AS col1, - 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(64\)\) AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 64 col1, 47 AS col1 +---- +-64 +47 query I rowsort label-1998 SELECT COUNT ( * ) + + + COALESCE ( 40, + 30 * - 42 / + 58 / + 14 + - COALESCE ( - 78, - 22 ) + + 37, - + 31 ) * 24 AS col0 @@ -10663,8 +10760,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - + COUNT ( * ) ) AS col1, - 1 AS col1 +---- +-1 +1 query II rowsort label-2030 SELECT - 92 + - CAST ( NULL AS INTEGER ) AS col2, + 35 - - COUNT ( * ) col0 @@ -10797,8 +10897,11 @@ SELECT ALL + + ( - 63 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 164 # Datafusion - Expected - 726 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \+ Int64\(79\) \+ Int64\(65\) AS col0" at position 0 and "Int64\(33\) \* Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 20 + + 79 + 65 AS col0, 33 * + 22 AS col0 +---- +164 +726 query I rowsort SELECT + 60 * 80 @@ -10871,8 +10974,11 @@ SELECT + 80 - - - 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* coalesce\(CAST\(NULL AS Int32\), Int64\(93\), Int64\(88\)\) \+ Int64\(\-40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) AS col0, COUNT ( * ) * + COALESCE ( + CAST ( NULL AS INTEGER ), 93, 88 ) + - 40 AS col0 +---- +-1 +53 query I rowsort label-2069 SELECT DISTINCT + 35 + + CASE - - 3 WHEN - 87 THEN + - ( 91 ) * + - MAX ( ALL + 99 ) + 94 - - - 99 END / 87 AS col0 @@ -11067,8 +11173,11 @@ SELECT COUNT ( * ) + - 81 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \- Int64\(65\) \+ Int64\(\-64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-82\) \* Int64\(\-34\) \+ Int64\(60\) \+ \(\- CAST\(NULL AS Float64\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT 79 - + + 65 + - 64 + - COUNT ( * ) + - 82 * + - 34 + 60 + - CAST ( NULL AS FLOAT8 ) AS col0, COUNT ( * ) AS col0 +---- +1 +NULL query II rowsort label-2106 SELECT ALL 24 AS col2, 98 + - - 59 / + 35 AS col0 @@ -11394,8 +11503,11 @@ SELECT ALL - 48 * + NULLIF ( - 11, - + ( - 23 ) ) + - 65 + + COALESCE ( + + COAL # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(28\) \+ Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 58 AS col1, CAST ( NULL AS INTEGER ) * + 28 + + 89 AS col1 +---- +58 +NULL query I rowsort label-2168 SELECT ALL - 83 * + COUNT ( * ) + - 65 + + SUM ( + 18 ) @@ -11634,8 +11746,11 @@ SELECT - ( + 27 ) + 88 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 18 AS col2, + 36 AS col2 +---- +18 +36 query I rowsort label-2214 SELECT + NULLIF ( 55, - - SUM ( - - 75 ) * + 18 ) + 51 AS col0 @@ -12262,8 +12377,11 @@ SELECT + + COUNT ( * ) + SUM ( DISTINCT NULLIF ( 83, + - ( - + 88 ) * - 6 ) ) # 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 "Int64\(58\) / Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 18 col1, + 58 / 46 AS col1 +---- +1 +18 query II rowsort SELECT - + 93 AS col1, - 78 @@ -12399,8 +12517,11 @@ SELECT DISTINCT + 23 - NULLIF ( - - COUNT ( * ), - CAST ( NULL AS INTEGER ) ) AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col2" at position 0 and "\(\- CAST\(NULL AS Float64\)\) \+ Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL 57 col2, - CAST ( NULL AS FLOAT8 ) + 23 AS col2 +---- +57 +NULL query II rowsort label-2360 SELECT COUNT ( * ) - - 23 * - 44 AS col0, 86 AS col1 @@ -12564,8 +12685,11 @@ SELECT ALL + 96 - + 26 + + 33 * - 28 * - NULLIF ( - 14, + - 99 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -760 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-19\) \* \(\- Int64\(\-40\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col2, - 19 * - - 40 AS col2 +---- +-760 +1 query II rowsort SELECT ALL - 9 - 72 AS col2, 39 @@ -12813,8 +12937,11 @@ SELECT - 16 + NULLIF ( + 40, - 24 * - 34 ) + - 77 * 6 - + - 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col1" at position 0 and "Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 AS col1, - 13 AS col1 +---- +-13 +31 query I rowsort label-2439 SELECT + 11 * + + MAX ( - 16 ) + - COUNT ( * ) / ( + CAST ( NULL AS INTEGER ) ) + - ( - 71 ) AS col1 @@ -12835,8 +12962,11 @@ SELECT ALL + + COALESCE ( CAST ( + 78 AS INTEGER ), 94 * + - 75 * 84 * - - 42 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -214893 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) / Int64\(23\) \+ \(\- Int64\(\-58\)\) \* Int64\(65\) \* Int64\(\-57\) AS col1" at position 0 and "coalesce\(\(\- Int64\(\-87\)\), Int64\(\-88\) \+ \(\- avg\(DISTINCT Int64\(45\)\)\) / Int64\(70\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT - 88 / + 23 + - - 58 * + 65 * + - 57 AS col1, + ( COALESCE ( - - 87, - 88 + - AVG ( DISTINCT + 45 ) / + 70 ) ) AS col1 +---- +-214893 +87 query I rowsort SELECT + 62 + - 1 @@ -13034,8 +13164,11 @@ SELECT ALL - - 75 - - 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col2" at position 0 and "Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 64 col2, + 39 AS col2 +---- +39 +64 query I rowsort SELECT + 92 * - 54 - + + 53 @@ -13377,8 +13510,11 @@ SELECT + 19 * - COALESCE ( - 88, 7 ) * + + 80 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - -2973 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) / Int64\(8\) \- sum\(DISTINCT Int64\(57\)\) \+ Int64\(89\) AS col2" at position 0 and "CAST\(Int64\(\-94\) AS Int32\) \+ Int64\(\-65\) \* Int64\(45\) \- \(\- Int64\(46\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 / 8 - + SUM ( DISTINCT + 57 ) + ( 89 ) AS col2, CAST ( - 94 AS INTEGER ) + - 65 * + 45 - - + 46 AS col2 +---- +-2973 +42 query I rowsort label-2546 SELECT DISTINCT - COUNT ( * ) * - - 21 * + COUNT ( * ) AS col1 @@ -13448,8 +13584,11 @@ SELECT ALL CAST ( + COALESCE ( 27, + 73 * 82 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 5680 # Datafusion - Expected - -782 -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 "Int64\(34\) \* Int64\(\-23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 80 * + + 71 AS col0, ( 34 ) * - 23 AS col0 +---- +-782 +5680 query I rowsort label-2559 SELECT DISTINCT - 3 * 51 * + + COUNT ( * ) - - 43 - CASE + 50 WHEN + CAST ( NULL AS INTEGER ) THEN + 68 + - - 66 END * + ( - COUNT ( * ) ) + - 68 + + 77 + COALESCE ( - 95, 67 + - - COUNT ( * ), + 36 / - + 72 * 57 ) * - COUNT ( - 8 ) * - COUNT ( * ) + - CASE - COUNT ( * ) WHEN - CAST ( - + COUNT ( * ) AS INTEGER ) - 22 * + + COUNT ( * ) * - 33 THEN + COALESCE ( 77, CAST ( + 16 AS INTEGER ) ) * NULLIF ( + 68 + CAST ( - 45 AS INTEGER ) * 22, + 60 + + 75 ) WHEN 1 + 41 THEN - 57 END + ( 44 ) / - COUNT ( * ) @@ -13731,8 +13870,11 @@ SELECT ALL 12 * - - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 1798 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col2" at position 0 and "Int64\(\-31\) \* Int64\(\-58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 8 AS col2, - 31 * - 58 AS col2 +---- +-8 +1798 query I rowsort SELECT DISTINCT 47 * - 94 AS col1 @@ -13829,8 +13971,11 @@ SELECT ALL - - 21 + 36 * + 75 * - - 5 * + 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col1" at position 0 and "Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 12 AS col1, - 6 AS col1 +---- +-12 +-6 query I rowsort label-2633 SELECT - 13 + + + ( - ( CAST ( NULL AS INTEGER ) ) ) - + 14 AS col2 @@ -14251,8 +14396,11 @@ SELECT CASE + + 35 WHEN - CAST ( + + 76 AS INTEGER ) THEN NULL ELSE - - 39 END * # Datafusion - Datafusion expected results: # Datafusion - Expected - 638 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* Int64\(22\) AS col2" at position 0 and "coalesce\(\(\- Int64\(78\)\), Int64\(7\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 29 * + 22 AS col2, COALESCE ( - + 78, + 7 ) col2 +---- +-78 +638 query I rowsort label-2712 SELECT DISTINCT - MAX ( + 13 ) AS col0 @@ -14502,8 +14650,11 @@ SELECT DISTINCT ( COUNT ( ALL + 90 ) ) * + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "max\(\(\- Int64\(\-85\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, + MAX ( - - 85 ) col0 +---- +85 +NULL query I rowsort SELECT - - 40 * 93 col0 @@ -15195,8 +15346,11 @@ 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\(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\. +query II valuesort SELECT + + COUNT ( * ) / + + ( - 15 ) + - 76 * + 3 col2, + 11 * 49 + + - 79 AS col2 +---- +-228 +460 query I rowsort SELECT ALL + 75 * + 44 * + 59 - + 19 + + + 87 AS col0 @@ -15373,8 +15527,11 @@ SELECT + - 57 * - + 48 + 21 + + - 95 * COUNT ( * ) # 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 col0" at position 0 and "coalesce\(Int64\(\-74\), Int64\(47\) \* \(\- sum\(Int64\(11\)\)\) / Int64\(61\), \(\- Int64\(\-56\)\) / Int64\(55\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 19 AS col0, COALESCE ( - 74, + 47 * + - ( SUM ( + ( 11 ) ) ) / + + 61, - - 56 / + 55 ) AS col0 +---- +-19 +-74 query I rowsort SELECT 69 * 45 * - 7 @@ -15401,8 +15558,11 @@ 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\(Int64\(81\)\) / \(\- max\(DISTINCT Int64\(3\)\)\) AS col2" at position 0 and "Int64\(\-82\) \- Int64\(\-85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( + 81 ) / - MAX ( DISTINCT + + 3 ) AS col2, - 82 - - 85 AS col2 +---- +0 +3 query I rowsort SELECT 63 * + 92 * - 34 + + 76 @@ -16216,14 +16376,20 @@ SELECT - COUNT ( * ) AS col2, 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1512 # Datafusion - Expected - 688 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \* Int64\(54\) AS col1" at position 0 and "Int64\(8\) \* Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 28 * + 54 AS col1, 8 * 86 AS col1 +---- +-1512 +688 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col2" at position 0 and "\(\- Int64\(\-11\)\) \- Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 AS col2, ( - - 11 ) - + 84 AS col2 +---- +-73 +72 query I rowsort label-3085 SELECT ALL ( + 90 ) / - 97 AS col1 @@ -16299,8 +16465,11 @@ SELECT - - 34 * CAST ( + AVG ( DISTINCT 3 ) AS INTEGER ) + - 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "\(\- CAST\(Int64\(3\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 15 col2, - CAST ( 3 AS INTEGER ) AS col2 +---- +-3 +15 query I rowsort label-3099 SELECT + ( 0 ) + - COUNT ( * ) AS col2 @@ -16310,8 +16479,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * - 14 * - + 62 + + + 68 * - - 24 + 68 col0, COUNT ( - 85 ) col0 +---- +1 +2568 query I rowsort SELECT + 7 + - + 7 @@ -16398,8 +16570,11 @@ SELECT ALL - 47 * - 4 AS col2, + 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \* count\(\(\- Int64\(\-81\)\)\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 41 * COUNT ( - - 81 ) AS col1, 74 col1 +---- +-41 +74 query I rowsort SELECT ALL CASE + 27 WHEN - COALESCE ( - 55, - - NULLIF ( + + 59, - + ( - 20 ) * + NULLIF ( + 55, + 9 + - 77 - - - 55 ) * - 7 ) ) THEN NULL WHEN + - 74 THEN + 17 ELSE NULL END AS col1 @@ -16718,8 +16893,11 @@ 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\(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\. +query RI valuesort 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 +---- +3096 +89 query I rowsort label-3179 SELECT - COUNT ( - + COALESCE ( - + 60, - - 99, + 85 / + 55 ) ) @@ -17324,8 +17502,11 @@ SELECT ALL 87 - - 63 * + 89 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- sum\(Int64\(\-99\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 54 col1, CAST ( NULL AS INTEGER ) + - SUM ( - 99 ) AS col1 +---- +54 +NULL query I rowsort label-3299 SELECT MIN ( 63 ) @@ -17443,8 +17624,11 @@ SELECT - - 74 + + ( + 98 ) + + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 49 col2, COUNT ( * ) AS col2 +---- +1 +49 query I rowsort SELECT ALL + ( + 30 ) AS col0 @@ -17743,8 +17927,11 @@ SELECT DISTINCT - + 15 - - COUNT ( - CAST ( - CAST ( - + 91 AS INTEGER ) AS INTE # Datafusion - Datafusion expected results: # Datafusion - Expected - -1064 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \* Int64\(56\) \+ Int64\(56\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(90\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 20 * + 56 + 56 AS col0, CAST ( NULL AS INTEGER ) * + 90 - - COUNT ( * ) AS col0 +---- +-1064 +NULL query I rowsort SELECT 4 * + ( + 26 ) * 49 AS col2 @@ -17833,8 +18020,11 @@ SELECT DISTINCT 0, - 31 AS col1, - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 1271 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col2" at position 0 and "Int64\(54\) \+ \(\- Int64\(91\)\) \+ Int64\(93\) \+ Int64\(45\) \* coalesce\(Int64\(27\), Int64\(4\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 4 AS col2, 54 + - + 91 + + + 93 + + 45 * + COALESCE ( + 27, 4 ) col2 +---- +-4 +1271 query II rowsort SELECT + 57, + 85 col2 @@ -17876,8 +18066,11 @@ SELECT + - 70 AS col1, 82 + + 11 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col2" at position 0 and "Int64\(\-28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 69 AS col2, - 28 col2 +---- +-28 +69 query II rowsort SELECT DISTINCT - 22 AS col1, - CASE + 28 WHEN - 73 THEN 95 - - 96 * 64 ELSE NULL END @@ -17898,8 +18091,11 @@ SELECT 81 * + + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 70 AS col2, 11 AS col2 +---- +-70 +11 query I rowsort SELECT DISTINCT - ( - 47 ) AS col1 @@ -18285,8 +18481,11 @@ SELECT + 16, - 67 AS col0 # 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\(90\) \* Int64\(35\) \- Int64\(14\) AS col1" at position 0 and "Int64\(38\) / Int64\(39\) \- count\(\(\- Int64\(13\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 90 * 35 - + 14 AS col1, 38 / + + 39 - + COUNT ( - + 13 ) AS col1 +---- +-1 +3136 query I rowsort SELECT + 48 + + 41 * 73 - 52 AS col0 @@ -18485,14 +18684,20 @@ SELECT + 32 * - SUM ( DISTINCT + + 68 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 + COUNT ( * ) AS col2, 3 AS col2 +---- +3 +49 # 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 "\(\- Int64\(\-44\)\) / Int64\(\-71\) AS col2" at position 0 and "sum\(Int64\(25\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - ( - 44 ) ) / - 71 AS col2, + SUM ( ALL + 25 ) AS col2 +---- +0 +25 query I rowsort label-3522 SELECT ALL MAX ( - + 58 ) + + + COUNT ( * ) * - 61 * - - 68 AS col2 @@ -19185,8 +19390,11 @@ SELECT DISTINCT - COALESCE ( + - 57, + 63 * - 21 + + - MAX ( + + 19 ) - - + 52 + # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 5657 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col1" at position 0 and "coalesce\(Int64\(\-81\), Int64\(13\) \* Int64\(69\)\) \* Int64\(\-70\) \- Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 20 AS col1, COALESCE ( - 81, + 13 * + 69 ) * - 70 - + 13 AS col1 +---- +-20 +5657 query I rowsort label-3653 SELECT + CAST ( + - 2 AS INTEGER ) + - + 86 AS col0 @@ -19276,8 +19484,11 @@ SELECT ALL 39 + - 21 + - - ( 98 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* Int64\(81\) \+ \(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(15\)\) AS col0" at position 0 and "min\(Int64\(63\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 64 * + + 81 + - + CAST ( NULL AS INTEGER ) * - + 15 AS col0, MIN ( 63 ) AS col0 +---- +63 +NULL query I rowsort SELECT 61 * + 75 col1 @@ -19324,8 +19535,11 @@ 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\(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\. +query II valuesort SELECT COALESCE ( + 86, + + COUNT ( * ) ) + 65 AS col2, - 70 AS col2 +---- +-70 +151 query I rowsort SELECT DISTINCT - - 7 * - 49 @@ -19443,8 +19657,11 @@ SELECT ALL - 68 * + 40 + + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 13 AS col2, + ( 15 ) AS col2 +---- +13 +15 query I rowsort label-3703 SELECT 33 / - 58 - - COUNT ( ALL + - 53 ) AS col2 @@ -19651,8 +19868,11 @@ SELECT 56 * - 85 - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col2" at position 0 and "Int64\(19\) \* Int64\(25\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 43 AS col2, 19 * + 25 + - CAST ( NULL AS INTEGER ) AS col2 +---- +-43 +NULL query II rowsort label-3743 SELECT + - COUNT ( * ) col1, 37 / - 10 AS col0 @@ -19883,8 +20103,11 @@ SELECT 54 + + 73 * - 37 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\) \+ Int64\(\-80\) / Int64\(98\) AS col2" at position 0 and "Int64\(60\) / Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 + - 80 / + 98 AS col2, 60 / + - 45 AS col2 +---- +-1 +89 query I rowsort SELECT + 9 * + + 81 @@ -19948,8 +20171,11 @@ SELECT 40 * - 83 + - - 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 21 AS col1, + 76 AS col1 +---- +21 +76 query I rowsort SELECT + 22 * ( + 69 ) + - 30 @@ -20364,8 +20590,11 @@ SELECT ALL 58 * 76 * + 86 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "Int64\(54\) \+ Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 28 AS col2, 54 + 7 AS col2 +---- +28 +61 query I rowsort label-3878 SELECT ALL - MAX ( DISTINCT - 0 ) AS col0 @@ -20567,8 +20796,11 @@ SELECT ALL COUNT ( ALL 21 ) + COUNT ( * ) * - 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(39\) AS Int32\)\) \+ sum\(Int64\(18\)\) \- coalesce\(Int64\(67\), Int64\(35\)\) / Int64\(98\) \+ nullif\(\(\- Int64\(0\)\), Int64\(\-1\)\) \* Int64\(\-57\) AS col0" at position 0 and "nullif\(Int64\(63\), \(\- min\(DISTINCT CAST\(NULL AS Int32\)\)\) \* Int64\(96\) \* \(\- Int64\(37\)\) \+ \(\- Int64\(60\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( + 39 AS INTEGER ) + SUM ( ALL 18 ) - COALESCE ( 67, 35 ) / + 98 + NULLIF ( - + 0, - 1 ) * - 57 AS col0, NULLIF ( + 63, - ( MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) ) * 96 * - + 37 + - + 60 ) AS col0 +---- +-21 +63 query I rowsort SELECT + 63 * + 53 @@ -20727,8 +20959,11 @@ SELECT 81 * 35 / ( - 66 ) + + 70 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - -4875 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "Int64\(65\) \* Int64\(\-75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 AS col0, 65 * ( - 75 ) AS col0 +---- +-4875 +47 query I rowsort label-3946 SELECT DISTINCT CAST ( NULL AS INTEGER ) * ( - ( 0 ) ) - 61 + - CAST ( NULL AS INTEGER ) * + 83 @@ -21120,8 +21355,11 @@ SELECT - 46 * + 65 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 69 AS col2, 75 AS col2 +---- +-69 +75 query II rowsort label-4022 SELECT - 23 AS col0, COUNT ( * ) @@ -21412,8 +21650,11 @@ 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\(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\. +query IR valuesort SELECT - + COUNT ( * ) + + - COUNT ( * ) col1, + SUM ( ALL + 4 ) * - NULLIF ( 8, NULLIF ( 94, + AVG ( DISTINCT + 1 ) * + 41 + - - 6 - + SUM ( DISTINCT + 79 ) + + - 63 ) ) AS col1 +---- +-2 +-32 query I rowsort label-4078 SELECT ALL - 11 / - - 25 + + MAX ( ALL + 78 ) @@ -21498,8 +21739,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 26 AS col1, COUNT ( * ) * + 55 * + - COUNT ( * ) col1 +---- +-55 +26 query I rowsort label-4095 SELECT 33 / - + 78 @@ -21602,8 +21846,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, - 0 AS col0 +---- +-1 +0 query I rowsort label-4114 SELECT + COALESCE ( - + CASE 76 WHEN - + 49 THEN - CAST ( - CASE 29 WHEN - + 69 * 76 + + - 67 * 57 * + + CASE - ( + NULLIF ( + 85, + 20 * - NULLIF ( - 25, ( + - 72 ) * 86 ) * + + 4 - - 55 ) ) WHEN - 74 THEN NULL ELSE + - 30 END THEN + - 56 ELSE NULL END AS INTEGER ) END, + MIN ( 11 ) / 25 + - 1 ) @@ -21823,8 +22070,11 @@ SELECT - SUM ( 35 ), COALESCE ( 44, + - 11 ) * + COUNT ( * ) + - - 34 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11557 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(68\)\)\) \* Int64\(86\) \+ min\(Int64\(60\)\) \* Int64\(\-11\) \- Int64\(\-99\) \* \(\- Int64\(51\)\) AS col2" at position 0 and "sum\(Int64\(33\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( 68 ) * + 86 + + MIN ( + + 60 ) * - 11 - + - 99 * - + ( + 51 ) col2, + SUM ( ALL 33 ) AS col2 +---- +-11557 +33 query I rowsort label-4155 SELECT ALL + + ( + + MAX ( 76 ) ) @@ -22057,8 +22307,11 @@ SELECT NULLIF ( 73, - 32 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \+ Int64\(68\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 28 + 68 AS col1, + 38 AS col1 +---- +38 +96 query I rowsort SELECT - 34 - - + 66 + - 89 @@ -22266,8 +22519,11 @@ 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\(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\. +query II valuesort SELECT + 95 AS col2, COUNT ( * ) + - 59 + 79 + + 62 / 7 AS col2 +---- +29 +95 query II rowsort label-4240 SELECT + COUNT ( * ) col1, + 6 * - - 32 @@ -22339,8 +22595,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -6596 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* min\(Int64\(\-97\)\) AS col0" at position 0 and "Int64\(17\) \+ Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 * + MIN ( ALL - 97 ) AS col0, + 17 + + 80 AS col0 +---- +-6596 +97 query II rowsort label-4254 SELECT - 21 * + + 64 - - 18 AS col0, - COUNT ( * ) @@ -22907,8 +23166,11 @@ SELECT + 40 + + COUNT ( * ) / + + 42 + + 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16196 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- coalesce\(Int64\(84\), Int64\(\-28\)\)\), CAST\(Int64\(26\) AS Int32\) \- Int64\(17\) \+ \(\- Int64\(25\)\) \* Int64\(12\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(54\)\)\) / Int64\(\-53\) \- Int64\(\-23\) \- Int64\(63\) \+ \(\- Int64\(58\)\) \* Int64\(7\) \* Int64\(40\) \+ Int64\(85\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-16196 +26 query II rowsort SELECT ALL - 7, + 94 AS col1 @@ -23116,8 +23378,11 @@ SELECT DISTINCT + 70 + - + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 3770 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "Int64\(58\) \* Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 48 AS col2, 58 * + 65 AS col2 +---- +-48 +3770 query I rowsort label-4402 SELECT CAST ( 0 AS INTEGER ) * + 98 @@ -23127,8 +23392,11 @@ SELECT CAST ( 0 AS INTEGER ) * + 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, + 55 AS col2 +---- +1 +55 query I rowsort SELECT ALL 21 + - 71 @@ -23232,8 +23500,11 @@ SELECT - + 71, + 10 + + 37 + ( + 1 ) / + + 48 * + - 31 - - 41 + + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* count\(\(\- Int64\(\-34\)\)\) AS col1" at position 0 and "Int64\(\-8\) \+ Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 10 * + COUNT ( ALL ( - - 34 ) ) AS col1, - 8 + 27 col1 +---- +10 +19 query I rowsort SELECT - 16 * + ( + 28 ) * 17 AS col1 @@ -23367,8 +23638,12 @@ SELECT + - 31 * - 76 col0 # Datafusion - Expected - 75 # Datafusion - Expected - -3970 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-75\)\) AS col2" at position 0 and "Int64\(\-82\) \+ Int64\(54\) \* Int64\(44\) \- Int64\(72\) \* Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + ( - - 75 ) AS col2, - 82 + 54 * 44 - + + 72 * + ( + 87 ) AS col2, CAST ( NULL AS INTEGER ) col2 +---- +-3970 +75 +NULL query I rowsort SELECT ( - 57 ) col2 @@ -23561,8 +23836,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "Int64\(71\) \* Int64\(\-7\) \* \(\- CAST\(NULL AS Float64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 38 AS col0, 71 * ( + - 7 ) * - ( CAST ( NULL AS FLOAT8 ) ) AS col0 +---- +38 +NULL query II rowsort SELECT + + 59 col2, + 77 @@ -23796,8 +24074,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(28\)\) \* Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 + - 64 - + 85 AS col0, + 83 * COUNT ( * ) * - + 28 * - 26 col0 +---- +-112 +60424 query I rowsort label-4532 SELECT 40 / - 95 @@ -23870,8 +24151,11 @@ SELECT ( - 11 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 66 AS col2, 85 AS col2 +---- +66 +85 query I rowsort SELECT DISTINCT 91 * + 71 + 81 + - + 23 + + 84 * + 17 AS col0 @@ -23993,8 +24277,11 @@ SELECT ALL COALESCE ( - + 87, + 97 + - - 96 + 96 ) + - ( + - NULLIF ( + COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col1" at position 0 and "Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 32 AS col1, ( + 30 ) AS col1 +---- +-32 +30 query II rowsort SELECT + - 83 AS col1, + 96 @@ -25129,8 +25416,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 97 AS col0, 92 + 12 - - + NULLIF ( 57, + COUNT ( * ) ) col0 +---- +161 +97 query I rowsort SELECT 29 * + - 52 + 10 * - 77 @@ -25174,8 +25464,12 @@ SELECT + 95 col1, 89 # Datafusion - Expected - -6111 # Datafusion - Expected - -81 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* \(\- count\(Int64\(9\)\)\) AS col0" at position 1 and "\(\- max\(Int64\(75\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 94 * - 65 + - + COUNT ( * ), 81 * + - COUNT ( 9 ) col0, + - MAX ( 75 ) AS col0 +---- +-6111 +-75 +-81 query I rowsort label-4789 SELECT DISTINCT - 55 * + COUNT ( * ) + - 72 AS col1 @@ -25235,8 +25529,11 @@ SELECT + 2, COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6455 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) \+ Int64\(74\) \* Int64\(88\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 57 + + 74 * + + 88 AS col2, + 6 AS col2 +---- +6 +6455 query II rowsort label-4800 SELECT ALL + 94, SUM ( DISTINCT 75 ) + - + 0 + - 80 AS col0 @@ -25373,8 +25670,11 @@ SELECT - 25 / - + 45 * - NULLIF ( + ( + ( + 27 ) ), 67 / + 48 - + 46 ) * + 21 / # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(96\)\) AS col2" at position 0 and "Int64\(9\) \+ coalesce\(Int64\(\-71\), \(\- Int64\(33\)\) \- Int64\(12\)\) \+ Int64\(35\) \* Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + MAX ( + 96 ) AS col2, + 9 + COALESCE ( + - 71, - + 33 - + 12 ) + + 35 * + ( 3 ) AS col2 +---- +43 +96 query I rowsort label-4826 SELECT ALL 4 / + NULLIF ( 24, - + NULLIF ( 72, - - 96 ) ) + - + 32 / + - NULLIF ( + 11, 30 / + + 38 + 12 ) AS col0 @@ -25497,8 +25797,11 @@ SELECT ALL 44 + - 46 + + COALESCE ( + + 0, COUNT ( * ) * - 9 - - 71 + - ( - AVG # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 27 AS col0, 79 AS col0 +---- +27 +79 query I rowsort SELECT ALL 38 * - - 34 @@ -26448,8 +26751,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, 53 AS col2 +---- +-1 +53 query I rowsort SELECT 28 * - 24 col0 @@ -26474,8 +26780,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) col1, 94 + ( 26 ) + + MAX ( - 16 ) + + 31 * 79 AS col1 +---- +-1 +2553 query I rowsort label-5040 SELECT + 84 / + 20 - 73 @@ -26873,8 +27182,11 @@ SELECT 96 * - 57 # 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\(\-9\) \+ Int64\(93\) AS col2" at position 0 and "CASE Int64\(65\) WHEN Int64\(25\) THEN Int64\(72\) END \* Int64\(44\) \+ Int64\(17\) \* Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 9 + + 93 AS col2, CASE + 65 WHEN + 25 THEN + + 72 END * 44 + 17 * + 87 AS col2 +---- +84 +NULL query I rowsort SELECT DISTINCT + - 18 + 9 + - 66 AS col2 @@ -27060,8 +27372,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) - 87 + - - 84 AS col1, 95 AS col1 +---- +-2 +95 query I rowsort SELECT ALL - 34 - + 48 AS col0 @@ -27158,8 +27473,11 @@ SELECT DISTINCT COUNT ( * ) * - 29 AS col2 # 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\(79\) \+ Int64\(\-55\) AS col0" at position 0 and "Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 79 + - 55 col0, + 84 AS col0 +---- +24 +84 query II rowsort label-5170 SELECT DISTINCT - 44 + COUNT ( * ) - + NULLIF ( - 8, MAX ( ALL - 59 ) ) + - COUNT ( * ), 36 col2 @@ -27530,8 +27848,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 AS col0, COALESCE ( - 66, - 67 ) * 91 * + COUNT ( * ) - + 52 AS col0 +---- +-6058 +8 query I rowsort SELECT 28 + - - 39 * 6 + - - 53 + + 60 + - - 10 + - 45 * 67 AS col2 @@ -27580,8 +27901,11 @@ SELECT ALL - ( - - 36 ) * + 42 * 31 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 85 AS col0, 43 AS col0 +---- +43 +85 query II rowsort label-5250 SELECT DISTINCT 95 * - ( 15 ) * - 78, - NULLIF ( + CASE - 1 WHEN 43 THEN + 45 END, + + MIN ( DISTINCT - - 9 ) * - COALESCE ( 91 * + 49, 36 ) + - 13 ) AS col0 @@ -27889,8 +28213,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 78 * + 40 * + + COUNT ( * ) * 23 AS col1, 67 AS col1 +---- +67 +71760 query II rowsort label-5308 SELECT DISTINCT 35 AS col2, 24 * - 64 * + CAST ( - 84 AS INTEGER ) @@ -28011,8 +28338,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 62 * - 41 AS col1, - COALESCE ( - ( 52 ), - 29, - 0, 68 * 93 ) * - COUNT ( * ) AS col1 +---- +-2542 +-52 query I rowsort SELECT - 68 + 88 @@ -28082,8 +28412,11 @@ SELECT DISTINCT + 88 + + + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -223 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ Int64\(\-35\) AS col1" at position 0 and "Int64\(\-28\) \+ \(\- Int64\(\-59\)\) \- Int64\(91\) \- Int64\(14\) \* Int64\(12\) \+ Int64\(14\) \+ Int64\(\-9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 66 + - 35 AS col1, - 28 + - - 59 - + 91 - + 14 * 12 + + 14 + + - 9 AS col1 +---- +-223 +31 query II rowsort label-5345 SELECT - - ( + 83 ) AS col0, COUNT ( * ) + + 45 AS col1 @@ -28104,8 +28437,11 @@ SELECT + - SUM ( ALL + 8 ) - + COUNT ( * ) * + MIN ( ALL 79 ) * 15 + - NULLIF ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col2" at position 0 and "Int64\(\-80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 96 ) col2, ( - 80 ) AS col2 +---- +-80 +-96 query II rowsort label-5349 SELECT DISTINCT COUNT ( * ) - 3 - - 77 * + 28 * NULLIF ( 33, - - COUNT ( * ) ) / - CAST ( - CAST ( + COUNT ( * ) AS FLOAT8 ) AS INTEGER ) + + 16 + - 22, + 86 col2 @@ -28382,8 +28718,11 @@ SELECT ALL 90 + - 1 / - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "Int64\(87\) \+ Int64\(\-88\) \+ Int64\(\-7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 AS col1, 87 + - 88 + + - 7 AS col1 +---- +-8 +82 query II rowsort label-5402 SELECT ALL - 98 AS col2, CASE ( + 69 ) WHEN + CASE + 21 WHEN - + 69 THEN NULL ELSE + 90 - 33 + 39 / CAST ( NULL AS INTEGER ) + - 46 * - - 52 * - - 61 END THEN + 4 WHEN + + 46 THEN 48 * 51 - 2 WHEN 8 THEN 79 ELSE 14 END / + 86 @@ -28459,8 +28798,11 @@ SELECT - + 36 + - - 53 * + 55 + 92 col0, + COALESCE ( 19, 78 + - ( + 51 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "Int64\(71\) \- count\(Int64\(98\)\) \- \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 AS col2, + 71 - + COUNT ( 98 ) - - - CAST ( NULL AS INTEGER ) AS col2 +---- +22 +NULL query II rowsort label-5416 SELECT - - SUM ( ALL - 34 ) * - ( 18 ) * - 50 + + 47 AS col1, + 31 @@ -28842,8 +29184,11 @@ SELECT - 67 AS col1, - 4 + + 41 - - - 78 * + 87 - + NULLIF ( - 63, 97 + CAST ( N # Datafusion - Datafusion expected results: # Datafusion - Expected - -163 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \+ Int64\(\-6\) \+ \(\- coalesce\(\(\- CASE \(\- Int64\(\-49\)\) WHEN Int64\(51\) \+ Int64\(42\) THEN NULL ELSE \(\- CAST\(NULL AS Int32\)\) END\), Int64\(78\)\)\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 79 + - 6 + - + COALESCE ( - CASE - - 49 WHEN 51 + 42 THEN NULL ELSE - + CAST ( NULL AS INTEGER ) END, + 78 ) AS col1, + 29 AS col1 +---- +-163 +29 query I rowsort label-5488 SELECT - 82 + 98 + - + 52 * CAST ( - 37 AS INTEGER ) @@ -28950,8 +29295,11 @@ SELECT ALL 11 * ( + - 74 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(37\)\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + ( 37 ) AS col1, 84 AS col1 +---- +-37 +84 query I rowsort SELECT + 77 + 6 AS col2 @@ -29511,8 +29859,11 @@ SELECT DISTINCT - 33, + 79 - + 45 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-24\)\) AS Int32\) / Int64\(\-92\) AS col1" at position 0 and "Int64\(4\) \+ Int64\(\-87\) \+ \(\- nullif\(Int64\(49\), \(\- CAST\(NULL AS Int32\)\)\)\) \+ Int64\(\-8\) \+ Int64\(45\) \+ Int64\(84\) / Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - - 24 AS INTEGER ) / - 92 AS col1, 4 + - 87 + - NULLIF ( + 49, - CAST ( NULL AS INTEGER ) ) + + - 8 + 45 + + 84 / + 15 AS col1 +---- +-90 +0 query I rowsort label-5616 SELECT ALL 3 / + - COUNT ( * ) @@ -29727,8 +30078,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) / \(\- Int64\(\-15\)\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 43 / - - 15 AS col1, 93 AS col1 +---- +2 +93 query I rowsort SELECT DISTINCT 49 + - 37 + + 27 @@ -29818,8 +30172,11 @@ SELECT COALESCE ( + + ( - 88 ), + CAST ( NULL AS INTEGER ) * SUM ( DISTINCT 98 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -121 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(28\)\), Int64\(\-38\), Int64\(16\)\) \+ Int64\(\-93\) AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( - + 28, - 38, 16 ) + - 93 col1, + 52 AS col1 +---- +-121 +52 query II rowsort label-5675 SELECT - 37 + - + SUM ( ALL + ( - + 80 ) ) AS col2, + 42 @@ -30452,8 +30809,11 @@ SELECT + 93 / 33 * - + COUNT ( * ) + + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 57 AS col0, 41 AS col0 +---- +41 +57 query I rowsort SELECT ALL 19 * + 53 AS col2 @@ -30875,8 +31235,11 @@ SELECT ALL + 17 / - 96 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-39\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( + COUNT ( * ) ) / - 39 AS col1, + COUNT ( * ) AS col1 +---- +0 +1 query I rowsort SELECT 63 * - 79 AS col1 @@ -31022,8 +31385,11 @@ SELECT ALL COUNT ( * ) * - + 31 - 51 * + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 183 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) / CAST\(\(\- Int64\(85\)\) AS Int32\) \+ Int64\(95\) \+ Int64\(89\) AS col1" at position 0 and "\(\- Int64\(\-69\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 / + CAST ( - + 85 AS INTEGER ) + + ( + 95 ) + + 89 col1, - ( - 69 ) AS col1 +---- +183 +69 query I rowsort SELECT + - 57 + + - ( COALESCE ( 50, - - 98 ) ) @@ -31055,8 +31421,11 @@ SELECT + 1 * + 31 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 151 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* \(\- max\(Int64\(\-23\)\)\) \+ \(\- Int64\(10\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 * - MAX ( - 23 ) + - + 10 AS col0, CAST ( NULL AS INTEGER ) col0 +---- +151 +NULL query I rowsort SELECT ALL + - ( 35 ) AS col1 @@ -31526,8 +31895,11 @@ 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\(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\. +query II valuesort SELECT 79 * + 89 AS col0, - COUNT ( * ) * - ( MAX ( ALL + ( + NULLIF ( - 20, + 17 * 87 + - 63 + - 90 * - 67 ) ) ) ) * + 42 + - + 83 col0 +---- +-923 +7031 query I rowsort SELECT 50 + - 14 AS col2 @@ -31733,8 +32105,11 @@ SELECT DISTINCT - COUNT ( * ) * 67 - NULLIF ( - 64, MIN ( + ( + + 95 ) ) ) AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "coalesce\(\(\- Int64\(80\)\), \(\- max\(Int64\(0\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, COALESCE ( - + 80, - MAX ( - 0 ) ) col1 +---- +-80 +1 query II rowsort label-6032 SELECT - COALESCE ( - CAST ( + + 23 AS INTEGER ), - + ( + 66 ) / - 84, + 92 ) + - 10 + + 41 AS col2, - 98 AS col1 @@ -31826,8 +32201,11 @@ SELECT + CAST ( + COUNT ( * ) AS INTEGER ) - + 16 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 984 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-41\) AS Int32\)\) \* Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 49 AS col1, - CAST ( - 41 AS INTEGER ) * + 24 AS col1 +---- +49 +984 query I rowsort label-6050 SELECT + 42 + + - SUM ( DISTINCT 44 ) @@ -31938,8 +32316,11 @@ SELECT CAST ( - + 1 AS INTEGER ) * - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(\-20\)\)\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( ALL - 20 ) AS col2, + 53 AS col2 +---- +20 +53 query I rowsort SELECT + 4 * - - 53 * + + 64 AS col2 @@ -31992,8 +32373,11 @@ SELECT + 52 / - 72 * + ( + COALESCE ( + 80, + + 31 * + NULLIF ( 29, - + COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-76\)\) \- Int64\(\-21\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 76 - - 21 AS col0, + COUNT ( * ) AS col0 +---- +1 +97 query I rowsort label-6081 SELECT SUM ( ( - + 72 ) ) / SUM ( DISTINCT + + 31 ) + + - 4 / 92 + 75 - - + COUNT ( * ) AS col1 @@ -32131,8 +32515,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 24 AS col2, + 67 * - 15 + - + COUNT ( * ) AS col2, + 75 * + ( + 14 ) +---- +-1006 +1050 +24 query I rowsort label-6108 SELECT NULLIF ( COALESCE ( - 29, + COUNT ( ALL CAST ( NULL AS INTEGER ) ), - + 36 - + + 76 * 57 ), + + COUNT ( - 55 ) + 15 ) + - 20 AS col1 @@ -32310,8 +32698,11 @@ SELECT + 31 + 17 AS col0, 5 * - - 22 # 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 "Int64\(19\) \- Int64\(20\) AS col1" at position 0 and "Int64\(\-88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 19 - 20 col1, - 88 AS col1 +---- +-1 +-88 query I rowsort label-6142 SELECT + - 23 * - + CAST ( NULL AS INTEGER ) @@ -32366,8 +32757,11 @@ SELECT + 38 - - COALESCE ( - 89, 1 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 30 AS col2, 55 AS col2 +---- +-30 +55 query I rowsort label-6153 SELECT DISTINCT NULLIF ( + SUM ( - 59 ), + 65 ) @@ -32505,8 +32899,11 @@ SELECT ALL - 86 + + - 42 - 10 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \- coalesce\(Int64\(31\), Int64\(24\), Int64\(23\)\) \+ Int64\(39\) \+ Int64\(9\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 - + COALESCE ( 31, + + 24, + 23 ) + + 39 + 9 + CAST ( NULL AS INTEGER ) AS col2, - 57 AS col2 +---- +-57 +NULL query I rowsort label-6179 SELECT - 23 / - COUNT ( * ) col0 @@ -33015,8 +33412,11 @@ SELECT DISTINCT - 50 * + MAX ( 10 ) * 47 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5160 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* Int64\(75\) \- Int64\(90\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 70 * + + 75 - 90 AS col2, + 4 AS col2 +---- +4 +5160 query II rowsort label-6275 SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( ALL - + 28 ) + + + 81 AS col1 @@ -33706,8 +34106,11 @@ SELECT ALL + 72 * + + 51 * - + 6 - 51 + - 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - -544 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \* Int64\(16\) AS col2" at position 0 and "Int64\(88\) \+ \(\- Int64\(\-10\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 34 * + 16 AS col2, 88 + - - 10 col2 +---- +-544 +98 query I rowsort label-6405 SELECT + + COUNT ( * ) / + COUNT ( * ) @@ -33717,8 +34120,11 @@ SELECT + + COUNT ( * ) / + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 5303 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) / \(\- CAST\(NULL AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- Int64\(66\)\) \- Int64\(\-91\) \* Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 84 / - + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0, ( - ( + 66 ) ) - - 91 * + + 59 AS col0 +---- +5303 +NULL query I rowsort label-6407 SELECT DISTINCT 85 / COUNT ( * ) * + + 86 + - 86 col1 @@ -33832,8 +34238,11 @@ SELECT ALL - - 39 * 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -6278 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(9\) AS Int32\)\)\) AS col1" at position 0 and "Int64\(86\) \* \(\- Int64\(73\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - CAST ( + + ( 9 ) AS INTEGER ) col1, 86 * + ( - + 73 ) AS col1 +---- +-6278 +9 query I rowsort SELECT 5 * + 30 AS col1 @@ -33885,8 +34294,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(41\) \* Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 15 * + 63 * + - 74 col0, - 20 * COUNT ( * ) / 41 * - 15 AS col0 +---- +0 +69930 query I rowsort label-6438 SELECT CAST ( NULL AS INTEGER ) + - 0 AS col1 @@ -34837,14 +35249,20 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * + 60 AS col0, + 15 AS col0 +---- +15 +60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 181 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ Int64\(93\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 88 + + 93 AS col2, 75 AS col2 +---- +181 +75 query I rowsort label-6627 SELECT - COALESCE ( + ( + NULLIF ( - 16, 57 ) ), + CASE - ( + 40 ) WHEN + 45 THEN NULL WHEN 16 THEN + 16 WHEN 48 + COUNT ( DISTINCT - 15 ) THEN COUNT ( * ) * + 53 ELSE NULL END - - 76, ( + 47 ) * + 70 ) @@ -34917,8 +35335,11 @@ 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\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-30\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + MAX ( DISTINCT - - 7 ) AS col0, + COUNT ( * ) + - - 30 AS col0 +---- +31 +7 query I rowsort SELECT + + 61 * + - ( - + 59 ) AS col1 @@ -35514,8 +35935,11 @@ SELECT NULLIF ( 51, - 48 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS 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 IR valuesort SELECT + 80 col2, - CAST ( NULL AS FLOAT8 ) col2 +---- +80 +NULL query I rowsort label-6755 SELECT ALL - COUNT ( * ) / - COUNT ( * ) AS col0 @@ -35860,8 +36284,11 @@ SELECT 36 + - + 81 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - -157 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \+ Int64\(\-51\) AS col0" at position 0 and "Int64\(75\) \* \(\- count\(\(\- Int64\(81\)\)\)\) \+ max\(Int64\(\-82\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + 20 ) + - 51 col0, + 75 * - COUNT ( ALL + ( - + 81 ) ) + + MAX ( - 82 ) AS col0 +---- +-157 +-31 query I rowsort label-6821 SELECT ALL + - 65 + + - COALESCE ( - 24, 72 + - COUNT ( * ) ) * 27 - + + 47 - 0 + 16 AS col2 @@ -36107,8 +36534,11 @@ SELECT + 74 * - + CAST ( + - 12 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 59 AS col1, - CAST ( NULL AS INTEGER ) AS col1 +---- +59 +NULL query I rowsort label-6868 SELECT ALL NULLIF ( COUNT ( * ), - MIN ( + CAST ( - 75 AS INTEGER ) ) ) @@ -36149,14 +36579,20 @@ SELECT - - 4 + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 2645 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) / \(\- Int64\(98\)\) AS col1" at position 0 and "Int64\(\-3\) \* Int64\(81\) \+ Int64\(76\) \* Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 78 / + ( - + 98 ) AS col1, - 3 * + 81 + + 76 * 38 AS col1 +---- +0 +2645 # 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\(\-6\) \+ Int64\(\-6\) AS col2" at position 0 and "Int64\(\-99\) / Int64\(\-94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 6 + - 6 AS col2, - 99 / - 94 AS col2 +---- +-12 +1 query I rowsort label-6877 SELECT ALL + 51 + + CAST ( NULL AS INTEGER ) + + 37 + + 93 @@ -36555,8 +36991,11 @@ SELECT - 14 * + - 85 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 63 AS col1, + 63 AS col1 +---- +63 +63 query I rowsort SELECT DISTINCT + 74 + + + 64 AS col1 @@ -36591,8 +37030,11 @@ SELECT DISTINCT ( - COALESCE ( + + 62, + COUNT ( * ), + 55 ) ) * 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 43 AS col2, COUNT ( * ) col2 +---- +1 +43 query I rowsort label-6960 SELECT DISTINCT COALESCE ( + + COUNT ( * ), - + MIN ( DISTINCT - 11 ) * + - 7 + - 52 * - + 91 ) @@ -36668,8 +37110,11 @@ SELECT + 22 * - 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 105 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(16\)\) \+ Int64\(89\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( 16 ) + + 89 AS col1, CAST ( NULL AS INTEGER ) AS col1 +---- +105 +NULL query I rowsort SELECT DISTINCT 60 * - + 67 * - ( + ( - COALESCE ( + 6, 52 ) ) ) + + 81 @@ -36875,8 +37320,11 @@ SELECT - 89 + 87 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-33\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 33 col1, + COUNT ( * ) AS col1 +---- +1 +33 query I rowsort label-7015 SELECT - COALESCE ( 45, - - 95 * 24 ) + - COUNT ( * ) AS col0 @@ -36891,15 +37339,22 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 77 AS col1, 48 * - COUNT ( * ) AS col1 +---- +-48 +77 # 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\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 39 AS col0, 29 * + ( COUNT ( * ) ) AS col0, 10 +---- +-39 +10 +29 query I rowsort label-7019 SELECT DISTINCT - ( + NULLIF ( 62, 77 * + + ( - COUNT ( * ) ) + + 94 ) ) @@ -37155,8 +37610,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col0, 83 + + COUNT ( * ) * - + 48 AS col0 +---- +-1 +35 query I rowsort SELECT ALL - 54 + - - 31 AS col2 @@ -37182,8 +37640,11 @@ SELECT - MIN ( ALL 28 ) # 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 "Int64\(1\) AS col2" at position 0 and "nullif\(Int64\(79\), Int64\(57\) \* Int64\(73\)\) \+ Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 col2, NULLIF ( + + ( + + 79 ), + 57 * + 73 ) + + 48 AS col2 +---- +1 +127 query II rowsort label-7073 SELECT - COUNT ( * ), ( - - 93 ) / - 38 col2 @@ -37593,8 +38054,11 @@ 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\(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\. +query II valuesort 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 +---- +1845 +NULL query I rowsort label-7152 SELECT ALL + COALESCE ( COUNT ( * ), + - 49, + - 85 ) + 30 / 6 * 43 @@ -37700,8 +38164,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 AS col1, COUNT ( * ) col1 +---- +1 +69 query I rowsort label-7170 SELECT + 95 / + 41 + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) @@ -37873,8 +38340,11 @@ SELECT 38 + + 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - -283140 # Datafusion - Expected - 1050 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \* coalesce\(Int64\(99\), Int64\(77\) \* Int64\(\-71\) \* Int64\(75\) / Int64\(\-50\) \* Int64\(21\) \+ Int64\(73\)\) \* Int64\(44\) AS col0" at position 0 and "Int64\(75\) \* Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 65 * + COALESCE ( + 99, + 77 * - 71 * ( + 75 ) / + ( - 50 ) * + 21 + 73 ) * 44 AS col0, + 75 * 14 AS col0 +---- +-283140 +1050 query II rowsort label-7203 SELECT + COUNT ( + 97 ) AS col1, - ( + 73 ) @@ -38272,8 +38742,11 @@ SELECT DISTINCT - - 55 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \+ Int64\(\-1\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 + - 1 AS col0, 28 AS col0 +---- +28 +69 query I rowsort label-7280 SELECT ALL + - ( + 53 ) + 38 / - - 36 + + - 54 * + 82 AS col1 @@ -38434,8 +38907,11 @@ SELECT - COUNT ( * ) + + + 68 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, + COUNT ( * ) + + - 47 AS col0 +---- +-46 +1 query I rowsort label-7311 SELECT DISTINCT - NULLIF ( + CAST ( NULL AS INTEGER ), + SUM ( ALL + - 24 ) + - 38 ) col0 @@ -38592,8 +39068,11 @@ SELECT - COUNT ( * ) col0, COUNT ( * ) * 66 * 69 * - 39 * ( - 98 ) AS col2 # 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 "nullif\(Int64\(\-79\), Int64\(13\)\) AS col0" at position 0 and "Int64\(\-95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL NULLIF ( ( + - 79 ), + 13 ) AS col0, - 95 col0 +---- +-79 +-95 query I rowsort SELECT DISTINCT + 2 + - 83 AS col0 @@ -38784,8 +39263,12 @@ SELECT ALL - ( 37 ), - ( - + 66 ) / + 53 AS col2 # Datafusion - Expected - 63 # Datafusion - Expected - 247938 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-63\)\) AS Int32\) AS col2" at position 0 and "Int64\(\-31\) \* \(\- CAST\(CAST\(NULL AS Int32\) AS Int32\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT CAST ( - - 63 AS INTEGER ) AS col2, 86 * - 93 * - 31 AS col1, - 31 * - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 +---- +247938 +63 +NULL query II rowsort SELECT ALL - - 28 * - + 20, 84 * - 30 AS col2 @@ -38827,8 +39310,11 @@ SELECT DISTINCT 18 * + 37 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "Int64\(\-85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 68 AS col2, - 85 AS col2 +---- +-85 +68 query II rowsort label-7386 SELECT 19 * + - CAST ( - 90 AS INTEGER ) + + 51, 55 AS col1 @@ -39200,8 +39686,11 @@ SELECT DISTINCT + 58 + + 76 + - 1 / + + 54 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(58\)\)\) \- Int64\(\-42\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - MAX ( ALL + 58 ) - - 42 AS col2, + 5 AS col2 +---- +-16 +5 query I rowsort SELECT ALL - ( 45 ) + + - 78 AS col0 @@ -39318,8 +39807,11 @@ 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\(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\. +query II valuesort SELECT - 28 * COUNT ( * ) + - NULLIF ( + 11, - 27 - 34 ) AS col1, 23 col1 +---- +-39 +23 query I rowsort SELECT - 22 * + - 2 @@ -39362,8 +39854,11 @@ SELECT DISTINCT 28 * NULLIF ( - COUNT ( * ), + 91 * SUM ( - - COALESCE ( + 72, 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 7 AS col1, + 59 AS col1 +---- +59 +7 query I rowsort label-7487 SELECT ALL + ( + - NULLIF ( - + MIN ( - 91 ), + 99 ) ) + 9 * 23 * - - 77 @@ -39499,8 +39994,11 @@ SELECT 18 * + MIN ( ALL - 20 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -440 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* Int64\(\-55\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 * - 55 AS col0, 48 AS col0 +---- +-440 +48 query I rowsort label-7513 SELECT 30 / - 23 + + COUNT ( * ) + - 29 + - 34 * + 51 @@ -39607,8 +40105,11 @@ SELECT - ( - + 48 ) AS col2, 94 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 260 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \* Int64\(\-13\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 * + - 13 col0, 57 AS col0 +---- +260 +57 query I rowsort SELECT 18 - - 94 col2 @@ -39943,8 +40444,11 @@ SELECT DISTINCT ( 83 ) * COUNT ( * ) + + 88 + - + 17 - - ( 98 ) + - + NULLIF ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT 19 AS col0, 5 AS col0 +---- +19 +5 query I rowsort label-7597 SELECT CAST ( NULL AS INTEGER ) + - + 11 @@ -40057,8 +40561,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(13\)\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(66\) \+ Int64\(97\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( DISTINCT 13 ) + - - CAST ( NULL AS INTEGER ) * + 66 + + 97 AS col1, COUNT ( * ) AS col1 +---- +1 +NULL query I rowsort SELECT - 84 * + + 24 * + 85 + + 91 + 83 AS col2 @@ -40073,8 +40580,11 @@ SELECT ALL + 42 + - 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - -426 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ \(\- Int64\(31\)\) \+ min\(Int64\(\-3\)\) \- \(\- max\(Int64\(\-13\)\)\) \* \(\- Int64\(\-33\)\) AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 + - + 31 + MIN ( - 3 ) - - MAX ( - 13 ) * - - 33 AS col2, 74 AS col2 +---- +-426 +74 query II rowsort SELECT ALL 53 AS col1, 42 @@ -40495,8 +41005,11 @@ SELECT - COALESCE ( - 17, - + 62 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 721 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col2" at position 0 and "Int64\(20\) \* Int64\(40\) \+ Int64\(\-30\) \+ \(\- sum\(Int64\(49\)\)\) \+ \(\- Int64\(26\)\) / Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 42 AS col2, 20 * 40 + - 30 + - SUM ( + 49 ) + - + 26 / 47 AS col2 +---- +-42 +721 query I rowsort label-7702 SELECT - ( + 25 ) * + - MAX ( + 68 ) AS col1 @@ -40911,8 +41424,11 @@ SELECT + 1 / - 50 + 13 col2 # 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 col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 59 AS col0, 97 AS col0 +---- +59 +97 query I rowsort SELECT ALL 25 * + 46 * - 6 + + 23 @@ -41212,8 +41728,11 @@ SELECT 55 + + 80 * - COUNT ( * ) + - 22 + + COALESCE ( CAST ( - COUNT ( * ) AS I # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col0" at position 0 and "Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 12 AS col0, - 16 col0 +---- +-12 +-16 query III rowsort label-7840 SELECT - 14 AS col1, - 69 - - + 50 * - 67 AS col0, NULLIF ( NULLIF ( + - 6, + MIN ( ALL - - 57 ) / + 40 ), - - 81 ) @@ -41267,8 +41786,11 @@ SELECT 15 * 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 109 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) AS col2" at position 0 and "Int64\(93\) \+ \(\- Int64\(\-16\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 54 AS col2, + 93 + - - 16 AS col2 +---- +-54 +109 query II rowsort label-7850 SELECT + ( + COUNT ( * ) ) * + - 85, + 95 AS col1 @@ -41336,8 +41858,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 27 AS col1, - COUNT ( * ) AS col1 +---- +-1 +27 query I rowsort SELECT - 1 + - + 13 * + + 40 AS col0 @@ -41865,8 +42390,11 @@ SELECT ALL - + MIN ( ALL 94 ) AS col0 # 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\(55\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 55 AS col1, 99 AS col1 +---- +55 +99 query I rowsort SELECT 99 + + + 22 @@ -41896,8 +42424,11 @@ SELECT ALL 23 * + CASE 78 WHEN + ( - - 99 ) THEN NULL WHEN - 78 - + 96 THEN NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2337 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* Int64\(\-57\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 41 * - 57 AS col1, 21 AS col1 +---- +-2337 +21 query I rowsort SELECT DISTINCT 76 * + + ( + + 62 ) * 77 @@ -43262,8 +43793,11 @@ SELECT ALL NULLIF ( + ( + 87 ), - - CAST ( NULL AS INTEGER ) / - 73 - + ( - 64 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) \+ Int64\(1\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 + + 1 AS col0, COUNT ( * ) AS col0 +---- +-57 +1 query I rowsort SELECT ALL + + 73 + + 81 @@ -43516,8 +44050,12 @@ SELECT ALL + 98 + - + 40 + - + 66 + - 3 + + - MAX ( - ( + 81 ) ) / 77 * 2 / + 12 # Datafusion - Expected - 33 # Datafusion - Expected - 70 # Datafusion - Expected - 963 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 33 AS col1, 70 AS col1, 83 + + + 10 * + + 88 col1 +---- +33 +70 +963 query I rowsort SELECT DISTINCT COALESCE ( + 12, - + 66, + - 63 + - - 81 ) @@ -43627,8 +44165,11 @@ SELECT - - COUNT ( * ) + - 76, + 96 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col2" at position 0 and "Int64\(91\) \+ Int64\(\-59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 80 AS col2, 91 + - 59 AS col2 +---- +32 +80 query I rowsort SELECT + 62 * + 92 * 47 @@ -44381,8 +44922,11 @@ SELECT - 95 * - COALESCE ( - 7, - CAST ( NULL AS INTEGER ), + 22 - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 676 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col2" at position 0 and "Int64\(52\) \* \(\- Int64\(\-13\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 30 AS col2, 52 * - - 13 AS col2 +---- +-30 +676 query I rowsort label-8451 SELECT DISTINCT - - MIN ( + 17 ) * - + 79 @@ -44550,8 +45094,11 @@ SELECT SUM ( 69 ), + ( - 34 ) / 29 / COUNT ( * ) - - + 60 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 "Int64\(41\) / Int64\(25\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 41 / 25 AS col2, 38 AS col2 +---- +1 +38 query I rowsort label-8482 SELECT ALL 24 + + COUNT ( * ) * MIN ( + - 60 ) @@ -45138,8 +45685,11 @@ SELECT ALL 34 + - 57 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - 5148 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-98\)\) AS col1" at position 0 and "Int64\(22\) \* Int64\(18\) \* Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MAX ( - 98 ) AS col1, 22 * 18 * + 13 col1 +---- +-98 +5148 query I rowsort SELECT ( 10 ) + - 69 + - + 84 @@ -45159,8 +45709,11 @@ SELECT 83 * ( + - ( - 11 ) ) * - 16 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col0" at position 0 and "Int64\(\-81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 4 AS col0, - 81 col0 +---- +-4 +-81 query II rowsort SELECT 22 + + 27, 12 AS col0 @@ -45258,8 +45811,11 @@ SELECT ALL + COUNT ( * ) * + - 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 63 AS col0, COUNT ( * ) AS col0 +---- +-63 +1 query I rowsort SELECT DISTINCT ( 90 ) * - 68 + - - 17 AS col1 @@ -45327,8 +45883,11 @@ SELECT DISTINCT - + CAST ( + COALESCE ( + 14, + 32 ) AS INTEGER ) + + + 75 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - 155 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \+ Int64\(59\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 96 + 59 AS col0, + 9 AS col0 +---- +155 +9 query I rowsort label-8631 SELECT DISTINCT + 14 - - + COUNT ( ALL + - 76 ) * - 85 @@ -45634,8 +46193,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * - 77 AS col2, ( + - 12 ) / 76 col2 +---- +-77 +0 query I rowsort label-8690 SELECT ALL 75 * - COUNT ( * ) @@ -45837,8 +46399,11 @@ SELECT ALL 98 + + - COUNT ( * ) + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3221 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(85\) \+ Int64\(\-9\) AS col1" at position 0 and "Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 * 85 + - 9 AS col1, 61 AS col1 +---- +3221 +61 query I rowsort label-8730 SELECT 12 / - - ( 57 ) AS col1 @@ -46104,8 +46669,11 @@ 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 "Int64\(8\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 8 AS col1, 96 AS col1 +---- +8 +96 query I rowsort label-8779 SELECT - COUNT ( * ) / - 14 AS col0 @@ -46290,14 +46858,20 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 85 / + 32 AS col1, MIN ( ( + 89 ) ) + - COUNT ( * ) AS col1 +---- +-2 +88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \+ CAST\(Int64\(\-42\) AS Int32\) AS col0" at position 0 and "count\(\(\- Int64\(\-82\)\)\) \* Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 + + CAST ( - 42 AS INTEGER ) AS col0, + COUNT ( - - 82 ) * - 22 AS col0 +---- +-22 +5 query I rowsort SELECT 66 * - ( - + 17 ) AS col1 @@ -46472,8 +47046,11 @@ SELECT ALL - + CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - -719 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col0" at position 0 and "Int64\(57\) \+ Int64\(8\) \* \(\- Int64\(97\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 91 AS col0, 57 + 8 * - + 97 AS col0 +---- +-719 +-91 query I rowsort label-8849 SELECT ALL CAST ( - MIN ( + ( 71 ) ) AS INTEGER ) AS col2 @@ -46611,8 +47188,11 @@ SELECT + 74 * - 57, - 5 * - - 58 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 133 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ Int64\(42\) AS col0" at position 0 and "Int64\(56\) / Int64\(72\) \* CASE Int64\(15\) WHEN Int64\(31\) THEN NULL WHEN \(\- CAST\(Int64\(37\) AS Int32\)\) \* Int64\(\-67\) \* Int64\(\-26\) THEN Int64\(34\) END / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +133 +NULL query I rowsort label-8875 SELECT + SUM ( DISTINCT 81 ) @@ -46679,8 +47259,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COALESCE ( + - 59, - 24 + + COUNT ( * ) ) + - + 2 AS col1, 70 AS col1 +---- +-61 +70 query I rowsort label-8888 SELECT DISTINCT COUNT ( * ) + + CAST ( - 60 AS INTEGER ) @@ -46797,8 +47380,11 @@ SELECT + NULLIF ( 29, + - 87 / + COUNT ( * ) ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(65\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, + 65 / + COUNT ( * ) AS col0 +---- +1 +65 query I rowsort SELECT - CASE - + 40 WHEN + 69 THEN - 17 END + 20 @@ -47200,8 +47786,11 @@ 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\(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\. +query II valuesort SELECT - 65 + COUNT ( * ) + 40 AS col2, - 63 * - 70 * + 3 AS col2 +---- +-24 +13230 query I rowsort SELECT - - 40 - 12 @@ -47678,8 +48267,11 @@ 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\(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\. +query II valuesort SELECT ALL - 49 AS col2, 1 - + - COUNT ( * ) / 52 * + 23 * + 46 * + 30 AS col2 +---- +-49 +1 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -48064,8 +48656,11 @@ SELECT - 56 * 66 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 1512 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) 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 II valuesort SELECT ALL + 61 AS col0, + 72 * + + 21 AS col0 +---- +1512 +61 query II rowsort SELECT 8 AS col2, 58 @@ -48345,8 +48940,11 @@ SELECT ALL - 27 * + + 20 * + COUNT ( * ) + - SUM ( DISTINCT 73 ) * - + SUM ( ALL # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col1" at position 0 and "\(\- coalesce\(Int64\(27\), Int64\(\-95\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 83 AS col1, ( + - COALESCE ( 27, - 95 ) ) AS col1 +---- +-27 +83 query I rowsort label-9204 SELECT MIN ( - - 58 ) @@ -48469,8 +49067,11 @@ SELECT DISTINCT + 42 * - ( - + CAST ( - SUM ( + - 29 ) AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(89\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( 89 ) AS col1, CAST ( NULL AS INTEGER ) AS col1 +---- +-89 +NULL query I rowsort label-9227 SELECT - 44 / - 51 AS col1 @@ -49268,8 +49869,11 @@ SELECT - 30 / 42 + + 88 * 31 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \+ Int64\(75\) \* Int64\(\-50\) \* Int64\(92\) \* CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 40 + 75 * - 50 * + 92 * + CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) AS col2 +---- +-1 +NULL query II rowsort label-9378 SELECT ALL - CASE - CASE ( - 62 ) WHEN - 27 / - 8 THEN - COALESCE ( - COUNT ( * ), + - COALESCE ( 66, 29, - ( - 94 ) * 78 - 20 * + 25 + - + 21, + 61 ) / 27 * - 39 ) * + 41 + - 87 WHEN + 54 * - 1 THEN NULL END WHEN 84 THEN + COUNT ( * ) ELSE NULL END - + 70 - + 75 * - 85 + - 58 + + 63 * + COUNT ( * ) * + MAX ( - NULLIF ( + 75, + 29 ) ) + - 75 / + + 89 col0, ( + 96 ) AS col1 @@ -50353,8 +50957,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, 46 AS col0 +---- +-1 +46 query I rowsort SELECT + 53 + + 52 + + + 16 * + + 29 @@ -50407,8 +51014,11 @@ SELECT ALL - 58 * 96 * + 53 * 68 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 5682 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-48\)\) AS col0" at position 0 and "Int64\(91\) \* \(\- Int64\(\-63\)\) \+ Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - - 48 ) col0, + 91 * - - 63 + - 51 AS col0 +---- +48 +5682 query I rowsort label-9595 SELECT ALL 50 - - COUNT ( * ) * 92 * + ( + - 27 ) * + 32 * + 12 + - 47 + + + 86 * - - 48 * - 88 + + + COUNT ( * ) AS col2 @@ -50632,8 +51242,11 @@ SELECT DISTINCT ( + + 32 ) # 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 col1" at position 0 and "Int64\(31\) / Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 col1, 31 / + 39 AS col1 +---- +0 +6 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -50790,8 +51403,11 @@ 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\(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\. +query II valuesort SELECT 33 * + - COUNT ( * ) AS col2, + 26 * - 78 AS col2 +---- +-2028 +-33 query I rowsort label-9668 SELECT ALL COUNT ( * ) + - + 90 @@ -51482,8 +52098,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -3162 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "Int64\(\-51\) \* Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 AS col2, - 51 * 62 AS col2 +---- +-3162 +85 query I rowsort label-9803 SELECT ALL COUNT ( * ) - + + 57 - - 73 * 65 col2 @@ -51750,8 +52369,11 @@ SELECT - - 38 + + 81 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(63\)\) \+ Int64\(3\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 63 + 3 AS col0, - CAST ( NULL AS INTEGER ) AS col0 +---- +-60 +NULL query I rowsort label-9855 SELECT ALL + 58 + + - COUNT ( * ) - - 74 * + + 85 AS col1 @@ -51909,8 +52531,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 0 * COUNT ( * ) + 27 AS col2, 5 AS col2 +---- +27 +5 query I rowsort label-9886 SELECT + - NULLIF ( + CAST ( + COUNT ( ALL + 19 ) AS INTEGER ), + 55 ) AS col2 @@ -52109,8 +52734,11 @@ SELECT DISTINCT + + ( - 35 ) + - COALESCE ( + 54, 25 - MAX ( - 84 ) * 54 ) # 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 "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 34 AS col0, 9 AS col0 +---- +-34 +9 query I rowsort label-9923 SELECT ALL + + MAX ( - 22 ) + + 85 AS col2 @@ -52323,8 +52951,11 @@ 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\(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\. +query II valuesort SELECT + 12 + - + COUNT ( * ) AS col0, ( MIN ( ALL + 22 ) ) col0 +---- +11 +22 query I rowsort SELECT + + ( - 73 ) diff --git a/data/sqlite/random/expr/slt_good_102.slt b/data/sqlite/random/expr/slt_good_102.slt index b9cf5db..91d91a8 100644 --- a/data/sqlite/random/expr/slt_good_102.slt +++ b/data/sqlite/random/expr/slt_good_102.slt @@ -233,8 +233,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1203 # Datafusion - Expected - 3475 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \* Int64\(\-71\) \+ \(\- Int64\(75\)\) AS col1" at position 0 and "nullif\(Int64\(27\), Int64\(\-84\)\) \* Int64\(\-72\) \+ Int64\(43\) \+ \(\- Int64\(84\)\) \* Int64\(\-64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 18 * - 71 + - + ( 75 ) col1, + NULLIF ( + 27, - 84 ) * + - 72 + 43 + - ( 84 ) * - 64 AS col1 +---- +1203 +3475 query I rowsort SELECT 75 * - - 36 col1 @@ -656,8 +659,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 2574 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col2" at position 0 and "Int64\(39\) \* \(\- \(\- coalesce\(Int64\(66\), Int64\(89\) \- Int64\(\-58\) \+ \(\- count\(DISTINCT Int64\(42\)\)\) \- \(\- \(\- nullif\(Int64\(\-82\), Int64\(91\) \* Int64\(17\)\)\)\), Int64\(55\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) AS col2, 39 * - - COALESCE ( + 66, + ( 89 ) - - 58 + + - COUNT ( DISTINCT + 42 ) - - - NULLIF ( - 82, 91 * 17 ), 55 ) AS col2 +---- +1 +2574 query I rowsort label-116 SELECT ALL NULLIF ( + 84, 66 * + - 67 / 39 * - CASE 11 WHEN - + COUNT ( * ) THEN - 77 - + + 59 END + - + ( + + 47 ) ) @@ -794,8 +800,12 @@ SELECT ALL - NULLIF ( + 54, + CASE 42 WHEN + 93 THEN 98 + + 19 + - + 22 * - 11 E # Datafusion - Expected - -3 # Datafusion - Expected - 35 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 1 and "Int64\(60\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 26 + + - 29, + 35 AS col2, 60 AS col2 +---- +-3 +35 +60 query I rowsort label-142 SELECT DISTINCT - + 60 / + + 54 - + 19 / + 27 AS col0 @@ -817,8 +827,12 @@ SELECT COALESCE ( - 41, - COUNT ( * ) + 92 ) * - COUNT ( * ) + 44 AS col1 # Datafusion - Expected - 6880 # Datafusion - Expected - -35 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* max\(Int64\(86\)\) AS col1" at position 0 and "Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 80 * + MAX ( 86 ) AS col1, - 35 AS col1, ( + 8 ) + 32 + + 7 +---- +-35 +47 +6880 query II rowsort SELECT 83 AS col2, + 98 AS col1 @@ -944,8 +958,11 @@ NULL # 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 col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 74 AS col2, 44 col2 +---- +44 +74 query I rowsort label-169 SELECT - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0 @@ -955,8 +972,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- 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 II valuesort SELECT DISTINCT - - 89 AS col1, + 22 AS col1 +---- +22 +89 query I rowsort label-171 SELECT - COUNT ( DISTINCT + + 2 ) * 15 * + COUNT ( * ) + + COUNT ( * ) - - 5 @@ -1138,8 +1158,11 @@ SELECT + 56 * + ( 92 ) * - 6 * - 13 AS col0, 92 + 45 + - 68 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "Int64\(\-65\) \* \(\- \(\- Int64\(1\)\)\) / Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 2 AS col2, - 65 * - - ( + 1 ) / 1 AS col2 +---- +-65 +2 query I rowsort label-207 SELECT ALL 96 / - + 82 @@ -1781,8 +1804,11 @@ SELECT ALL + + ( - - 58 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 129 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(15\) \+ \(\- \(\- Int64\(94\)\)\) \+ Int64\(10\) \- Int64\(\-40\) \* count\(Int64\(6\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - COUNT ( * ) * 15 + - ( - + 94 ) + 10 - + ( - 40 ) * + COUNT ( + 6 ) AS col1, COUNT ( * ) AS col1 +---- +1 +129 query I rowsort label-331 SELECT + - ( ( 12 ) ) + COUNT ( ALL 4 ) * 14 + + 75 @@ -1817,8 +1843,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) + + 9 / + - 37 col1, + 69 AS col1 +---- +1 +69 query I rowsort SELECT ALL 99 + 76 @@ -1978,8 +2007,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(5\) / Int64\(\-64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 / + COUNT ( * ) AS col1, 5 / - 64 AS col1 +---- +0 +0 query I rowsort label-369 SELECT - 70 + - + CASE - + 29 WHEN + 1 THEN NULL WHEN + NULLIF ( - 45, + NULLIF ( - 33, - + 5 - 93 + 88 ) ) * - ( - 76 ) THEN ( + + 16 ) * COUNT ( * ) / - COALESCE ( MAX ( ALL - 84 ), - 39 * - 19 - 3, - 29 + + 36 ) ELSE COUNT ( DISTINCT 69 ) END * 67 AS col2 @@ -2577,8 +2609,11 @@ SELECT - 67 + 94 * - + 92 * - + 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7990 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-85\), Int64\(20\) \* Int64\(81\) \* nullif\(count\(Int64\(72\)\), Int64\(88\)\) \+ Int64\(26\), \(\- Int64\(25\)\) / \(\- sum\(\(\- Int64\(\-49\)\)\)\)\) \* \(\- Int64\(94\)\) AS col1" at position 0 and "Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COALESCE ( - 85, 20 * 81 * + + NULLIF ( + COUNT ( + + 72 ), 88 ) + + 26, - ( ( 25 ) ) / - SUM ( - - 49 ) ) * - ( + 94 ) AS col1, 18 AS col1 +---- +18 +7990 query I rowsort SELECT - 43 + - 57 AS col2 @@ -2625,8 +2660,11 @@ SELECT ALL ( 24 ) * 30 + - - 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -71497 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "coalesce\(\(\- Int64\(28\)\), Int64\(29\) \+ \(\- \(\- min\(\(\- Int64\(\-81\)\)\)\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(27\)\) \* Int64\(\-26\) \* Int64\(\-93\) \+ Int64\(\-88\) \+ Int64\(\-65\) \* Int64\(\-57\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, COALESCE ( - + 28, + 29 + - - MIN ( - - 81 ), - + COUNT ( * ) + + 27 ) * - 26 * - 93 + + - 88 + - 65 * - 57 * ( - + COUNT ( * ) ) AS col0 +---- +-71497 +1 query I rowsort SELECT ALL 13 * + 9 @@ -2701,8 +2739,11 @@ SELECT + + 18 + ( - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(17\), Int64\(\-8\)\) \- \(\- Int64\(13\)\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT NULLIF ( 17, + - 8 ) - - + 13 AS col2, 99 AS col2 +---- +30 +99 query II rowsort label-507 SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, 13 @@ -2734,8 +2775,11 @@ SELECT + 0 + + 98 + - 94 * ( + 10 ) * + COUNT ( * ) * 3 * + 20 + 79 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* CAST\(NULL AS Int32\) \* Int64\(\-22\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 99 * + CAST ( NULL AS INTEGER ) * - 22 AS col2, + 24 AS col2 +---- +24 +NULL query II rowsort label-513 SELECT ALL 83 * + 65 + + 57, ( + - 76 ) + 55 * SUM ( + + 32 ) col2 @@ -2752,8 +2796,11 @@ SELECT + 81 AS col1, - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2492 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(31\) \- Int64\(\-56\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(Int64\(45\) AS Int32\)\) AS col0" at position 0 and "Int64\(68\) \+ \(\- CASE \(\- sum\(Int64\(\-58\)\)\) WHEN \(\- Int64\(\-87\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE Int64\(44\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 80 * 31 - - 56 + COUNT ( * ) + + - CAST ( + 45 AS INTEGER ) col0, 68 + + - CASE - + SUM ( ALL - 58 ) WHEN - - 87 * - COUNT ( * ) THEN NULL ELSE + 44 END col0 +---- +24 +2492 query II rowsort label-516 SELECT 50 col1, - CAST ( NULL AS INTEGER ) + - + NULLIF ( + NULLIF ( - 9, COUNT ( * ) ), - + NULLIF ( + + 50, 63 ) * - + 34 ) @@ -2780,8 +2827,11 @@ SELECT - + 67 * - + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-61\) AS Int32\) AS col0" at position 0 and "Int64\(\-98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - 61 AS INTEGER ) AS col0, - 98 AS col0 +---- +-61 +-98 query I rowsort SELECT ( NULLIF ( 16, ( 27 ) ) ) AS col0 @@ -3037,8 +3087,11 @@ SELECT + 90 * + 61 * + + 26 + - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 157 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "Int64\(95\) \- Int64\(\-62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 AS col2, + 95 - + - 62 AS col2 +---- +157 +8 query II rowsort SELECT - - 8 AS col0, - COALESCE ( 40, - 60 + - 83 ) @@ -3064,8 +3117,11 @@ SELECT ALL 5 + COALESCE ( + - 76, + COUNT ( * ) ) * + 81 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 52 AS col0, 95 col0 +---- +52 +95 query I rowsort label-576 SELECT DISTINCT MIN ( 83 ) AS col2 @@ -3269,8 +3325,11 @@ SELECT - + 29 / + MIN ( DISTINCT + 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(28\)\) AS col0" at position 0 and "\(\- min\(\(\- Int64\(35\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 28 AS col0, - MIN ( - + 35 ) AS col0 +---- +-28 +35 query I rowsort label-615 SELECT - - CASE - 48 WHEN + CAST ( - + COUNT ( * ) AS FLOAT8 ) * 45 * + 67 THEN + - 99 END * - 55 + - + 1 @@ -3702,8 +3761,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 320 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-40\)\) \* Int64\(8\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 40 * + ( + 8 ) / + COUNT ( * ) col2, 72 AS col2 +---- +320 +72 query I rowsort label-696 SELECT + CAST ( NULL AS INTEGER ) * + 2 * - - 84 AS col0 @@ -3718,8 +3780,11 @@ SELECT - 20 + - MAX ( ALL - 94 ) / - 80 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -3432 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col0" at position 0 and "Int64\(52\) \* Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 AS col0, 52 * - 66 AS col0 +---- +-3432 +31 query I rowsort label-699 SELECT ALL COUNT ( DISTINCT 70 ) AS col2 @@ -4017,8 +4082,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(\-80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - COUNT ( * ) AS col2, - 80 AS col2 +---- +-80 +1 query I rowsort label-756 SELECT ALL COUNT ( * ) + + 50 + - - 19 * + 73 @@ -4050,8 +4118,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 5518 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \* Int64\(62\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 89 * + 62 AS col0, 9 col0 +---- +5518 +9 query I rowsort SELECT DISTINCT 48 - + 89 + + 75 * + 93 col1 @@ -4204,8 +4275,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col2, + COALESCE ( + 77, + 61 ) * + 34 * ( + ( - + 84 ) ) AS col2 +---- +-1 +-219912 query II rowsort SELECT ALL 20 col0, - 22 @@ -4227,8 +4301,11 @@ SELECT ALL 28, - 34 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col0" at position 0 and "Int64\(\-87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 29 AS col0, - 87 AS col0 +---- +-29 +-87 query I rowsort label-796 SELECT CAST ( NULL AS INTEGER ) + + ( + ( + + COUNT ( * ) ) ) AS col1 @@ -4731,8 +4808,11 @@ SELECT ALL + ( - + COALESCE ( - 73, 0 * 29 / + + AVG ( DISTINCT - - 35 ) * + 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 AS col0, + 20 AS col0 +---- +0 +20 query I rowsort SELECT ALL 35 + 76 + + - 23 + + ( - 57 ) @@ -4748,8 +4828,12 @@ SELECT ALL - 64 + - 84 * + 24 AS col2 # Datafusion - Expected - 91 # Datafusion - Expected - 48 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col2" at position 0 and "Int64\(\-50\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 91 AS col2, + 48 col1, + - 50 AS col2 +---- +-50 +48 +91 query II rowsort SELECT 98, + ( 6 ) AS col2 @@ -4786,8 +4870,11 @@ SELECT COUNT ( 12 ) + + + 38 + - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 234728 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- Int64\(52\)\)\) \* Int64\(\-74\) \* Int64\(61\) AS col0" at position 0 and "\(\- nullif\(Int64\(\-86\), \(\- Int64\(50\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( ALL - + 52 ) * - 74 * + 61 AS col0, - NULLIF ( + - 86, - + 50 ) AS col0 +---- +234728 +86 query II rowsort SELECT DISTINCT 84 AS col2, 9 + 74 col1 @@ -4818,8 +4905,11 @@ SELECT + COUNT ( * ) * 68 + + 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\)" at position 0 and "Int64\(\-12\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 12, - 12 +---- +-12 +-12 query I rowsort label-906 SELECT ALL + 79 - - ( + - MIN ( 96 ) ) @@ -5435,8 +5525,11 @@ SELECT 37 + + NULLIF ( 10, - 37 / + 9 + - 2 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -140 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "Int64\(28\) \* \(\- Int64\(5\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 62 AS col1, 28 * - + 5 AS col1 +---- +-140 +62 query II rowsort SELECT 58 AS col2, + 57 * + 72 @@ -5534,8 +5627,11 @@ SELECT DISTINCT - SUM ( - + 44 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 40 AS col1, 86 AS col1 +---- +40 +86 query I rowsort SELECT DISTINCT - 60 + + 32 @@ -5600,8 +5696,11 @@ SELECT + 25 * - 41 + + 59 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-91\), CASE Int64\(94\) WHEN Int64\(99\) \* Int64\(80\) THEN NULL WHEN Int64\(2\) THEN NULL ELSE count\(Int64\(1\)\) AS count\(\*\) END \* Int64\(\-81\)\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-91 +84 query I rowsort label-1055 SELECT COUNT ( * ) * - 61 - - - ( + + 85 ) + 68 @@ -6311,8 +6410,11 @@ SELECT ALL + CAST ( - + 36 AS INTEGER ) # 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\)" at position 0 and "Int64\(90\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90, + 90 +---- +90 +90 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -7050,8 +7152,11 @@ SELECT DISTINCT - 17 * 36 / - + COUNT ( 39 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "CAST\(Int64\(95\) AS Int32\) \- Int64\(45\) \* Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( 87 ) AS col0, + CAST ( + 95 AS INTEGER ) - + 45 * + 4 AS col0 +---- +-85 +87 query I rowsort SELECT + 64 * - 59 AS col0 @@ -7751,8 +7856,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -2268 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "Int64\(36\) \* Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 82 AS col2, 36 * + - 63 col2 +---- +-2268 +82 query I rowsort label-1462 SELECT DISTINCT - - MIN ( 22 ) AS col0 @@ -8012,8 +8120,11 @@ SELECT COALESCE ( - 39, + CASE - 4 WHEN 1 THEN - 40 WHEN 9 * COUNT ( * ) THEN NU # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 col0, 65 AS col0 +---- +65 +69 query II rowsort label-1512 SELECT ALL 21 AS col2, CASE - 59 WHEN COUNT ( * ) THEN NULL ELSE 23 + 40 END @@ -8337,8 +8448,11 @@ SELECT - + 20 + 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -39072 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "Int64\(22\) \* \(\- \(\- Int64\(\-24\)\)\) \* \(\- Int64\(\-74\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 78 AS col0, + 22 * - - ( - 24 ) * - - 74 AS col0 +---- +-39072 +78 query I rowsort label-1573 SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + 93 + + 31 AS col2 @@ -8437,8 +8551,11 @@ SELECT ALL - CAST ( + - COUNT ( * ) AS INTEGER ) * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8613 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \* Int64\(\-87\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 99 * - 87 AS col1, - CAST ( NULL AS INTEGER ) AS col1 +---- +8613 +NULL query I rowsort label-1591 SELECT - CASE + COUNT ( * ) WHEN - - ( + + 73 ) THEN - COUNT ( + 60 ) ELSE NULL END * 99 @@ -8517,8 +8634,11 @@ NULL # 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\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - 21 ) col0, + 49 col0 +---- +-21 +49 query I rowsort label-1606 SELECT ALL COALESCE ( - COUNT ( * ), - 17 + CAST ( - NULLIF ( - CASE - 48 WHEN + COALESCE ( + 75, 26 + 29 * CASE + 24 * 7 WHEN + 18 THEN 66 * 64 WHEN - 14 * - 37 THEN NULL WHEN + 58 * + ( - 91 * - 25 ) THEN NULL ELSE NULL END ) THEN 86 ELSE NULL END, + MIN ( - 83 ) ) AS INTEGER ) / + 31, + 32 * - 31, - 30 ) - 97 @@ -8609,8 +8729,11 @@ SELECT ALL 17 * + 94 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 10 AS col2, 67 AS col2 +---- +10 +67 query II rowsort SELECT + 64, 75 AS col0 @@ -8641,8 +8764,11 @@ SELECT 49 - + COUNT ( * ) * + 39 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - -2867 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "Int64\(\-61\) \* Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 76 AS col2, - 61 * + 47 AS col2 +---- +-2867 +76 query I rowsort SELECT + ( - + 20 ) * - 0 @@ -9312,8 +9438,11 @@ SELECT DISTINCT CAST ( - 29 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1260 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* Int64\(45\) AS col1" at position 0 and "Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 28 * + 45 col1, - 76 AS col1 +---- +-76 +1260 query I rowsort label-1757 SELECT 44 + + + 65 / + - 34 - 4 @@ -9781,8 +9910,11 @@ SELECT ALL 32 * COUNT ( * ) * + + ( 93 ) * ( - 59 ) * - 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \+ Int64\(67\) AS col2" at position 0 and "Int64\(\-65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 12 + + + 67 AS col2, - 65 AS col2 +---- +-65 +79 query I rowsort SELECT - - ( + + 75 ) AS col0 @@ -9963,8 +10095,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-83\) \+ \(\- Int64\(32\)\) / Int64\(\-31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 44 col0, + COUNT ( * ) + + + ( - 83 ) + - + 32 / - 31 col0 +---- +-81 +44 query I rowsort label-1882 SELECT DISTINCT - - MAX ( - - 8 ) + - - 67 AS col2 @@ -10130,8 +10265,11 @@ SELECT DISTINCT + 44 + + 54, COUNT ( * ) + + 53 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 19 col2, COUNT ( * ) AS col2 +---- +-19 +1 query I rowsort SELECT ( 45 ) - + + 70 AS col2 @@ -10288,8 +10426,11 @@ SELECT + 69 + + COUNT ( 47 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3528 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* Int64\(\-56\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 63 * - 56 AS col1, 63 AS col1 +---- +-3528 +63 query II rowsort SELECT ALL 69 * 41, NULLIF ( - 70, + - 86 ) AS col0 @@ -10528,8 +10669,11 @@ SELECT DISTINCT 83 * + 57 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - -172 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "Int64\(\-76\) \+ Int64\(\-96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 53 AS col0, - 76 + + - 96 AS col0 +---- +-172 +53 query I rowsort SELECT ALL 45 * + - 14 AS col2 @@ -11213,8 +11357,11 @@ SELECT COUNT ( * ) / - - 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 6734 -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\(\-74\), Int64\(\-20\)\) \* Int64\(\-91\) \+ \(\- Int64\(\-42\)\) / Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 43 col0, + COALESCE ( - 74, - 20 ) * - 91 + - - 42 / 99 AS col0 +---- +43 +6734 query II rowsort SELECT - 99, CASE 72 WHEN 39 THEN + 18 * - NULLIF ( - - 38, 48 ) END AS col0 @@ -11292,8 +11439,11 @@ SELECT + CAST ( + + 96 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-55\)\) AS col1" at position 0 and "Int64\(\-44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 55 AS col1, - 44 AS col1 +---- +-44 +55 query I rowsort label-2134 SELECT 13 * + 9 / COUNT ( * ) @@ -11303,8 +11453,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 38 * + - 58 + 47 col2, 92 * 68 * - COUNT ( * ) * - 69 col2 +---- +-2157 +431664 query II rowsort label-2136 SELECT - 93 * + + ( + CAST ( - CAST ( + 27 AS INTEGER ) AS INTEGER ) ) + - 82, - 49 col1 @@ -11748,8 +11901,11 @@ SELECT ALL - SUM ( ALL + + 91 ), + ( 75 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(40\) \* Int64\(0\) AS col1" at position 0 and "avg\(Int64\(61\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-81\) \- Int64\(\-99\) \* Int64\(3\) \* avg\(CAST\(NULL AS Int32\)\) \+ Int64\(95\) \+ Int64\(\-21\) / Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 6 * + + 40 * - 0 col1, AVG ( + 61 ) * + - COUNT ( * ) + + - 81 - - 99 * 3 * + + AVG ( + CAST ( NULL AS INTEGER ) ) + 95 + + - 21 / 30 AS col1 +---- +0 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -12360,8 +12516,11 @@ SELECT ALL 82 * - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 552 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-24\) AS Int32\) \* Int64\(\-23\) AS col0" at position 0 and "CAST\(\(\- Int64\(\-91\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( + ( + - 24 ) AS INTEGER ) * + - 23 AS col0, CAST ( - - 91 AS INTEGER ) AS col0 +---- +552 +91 query I rowsort label-2339 SELECT COUNT ( * ) * + + 98 AS col0 @@ -12639,8 +12798,11 @@ SELECT ALL 64 * + SUM ( DISTINCT 62 ) + - CASE - 18 WHEN - 97 / 45 THEN NULL WHE # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(91\)\) AS col2" at position 0 and "Int64\(\-86\) \+ Int64\(77\) \* \(\- CAST\(Int64\(29\) AS Int32\)\) \* Int64\(14\) \* Int64\(23\) \+ Int64\(12\) \+ avg\(Int64\(\-77\)\) / \(\- CASE Int64\(\-30\) WHEN Int64\(\-45\) THEN Int64\(95\) \* Int64\(3\) WHEN \(\- coalesce\(CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(45\)\) THEN NULL WHEN Int64\(\-82\) \* \(\- max\(\(\- \(\- Int64\(40\)\)\)\)\) THEN NULL WHEN Int64\(65\) THEN Int64\(8\) \* count\(Int64\(1\)\) AS count\(\*\) END, \(\- Int64\(\-7\)\) \* Int64\(\-94\) \+ Int64\(26\) \+ Int64\(63\) \* Int64\(64\)\)\) \+ max\(Int64\(9\)\) \* avg\(Int64\(\-46\) \* Int64\(34\)\) THEN Int64\(\-95\) \+ Int64\(43\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +-91 +NULL query II rowsort SELECT + 9 - - - 73 col2, - 64 AS col1 @@ -12866,8 +13028,11 @@ 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\(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\. +query II valuesort SELECT ALL MIN ( - 54 ) * - COUNT ( * ) col2, 3 / - 66 AS col2 +---- +0 +54 query I rowsort label-2435 SELECT ALL - MIN ( + 76 ) * 95 AS col2 @@ -13010,8 +13175,11 @@ SELECT 94 + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \- Int64\(\-14\) AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 10 - - 14 col1, 28 AS col1 +---- +24 +28 query I rowsort label-2462 SELECT - 14 / 87 * ( - + 45 ) + + 13 + - + 8 + + 95 / + 2 col1 @@ -13156,8 +13324,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 AS col0, - COUNT ( - - 77 ) * - 11 + + 58 * 12 + + - 19 + - COUNT ( * ) AS col0 +---- +-82 +687 query I rowsort SELECT ( - 33 ) + + + 95 * 2 * - + 69 @@ -13213,8 +13384,11 @@ SELECT + 88 * 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -104 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "Int64\(\-22\) \+ Int64\(\-82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 col0, - 22 + ( - 82 ) col0 +---- +-104 +26 query I rowsort label-2500 SELECT + + CAST ( NULL AS INTEGER ) / ( + - 1 ) AS col2 @@ -13356,8 +13530,11 @@ SELECT ALL ( - + 6 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - -350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col2" at position 0 and "Int64\(35\) \* Int64\(\-10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 38 AS col2, + 35 * + - 10 AS col2 +---- +-350 +-38 query I rowsort label-2526 SELECT - NULLIF ( COUNT ( * ), - COUNT ( + - 34 ) ) @@ -13372,8 +13549,11 @@ SELECT + 69 * 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 col1, - 56 AS col1 +---- +-56 +38 query II rowsort SELECT ALL 94 col0, - 87 * + 18 * - 85 * + 62 AS col2 @@ -13399,8 +13579,11 @@ SELECT + 33 * - 69 AS col2 # 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 "Int64\(3\) AS col1" at position 0 and "Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 3 AS col1, - 85 AS col1 +---- +-85 +3 query I rowsort label-2534 SELECT - NULLIF ( + 49, + 3 * - ( 62 ) * + - 37 + ( COUNT ( DISTINCT 2 ) ) + + + MIN ( - - CAST ( NULL AS INTEGER ) ) / 26 * - 38 * 94 + MIN ( ALL + - 78 ) + - 30 + + COUNT ( * ) ) AS col0 @@ -13442,8 +13625,11 @@ SELECT + - 0 + + + 46 * - 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ Int64\(\-87\) \+ Int64\(3\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-16\)\) \+ \(\- CAST\(Int64\(9\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 25 + - 87 + + 3 * - COUNT ( * ) AS col2, + COUNT ( * ) * - - 16 + + - CAST ( + 9 AS INTEGER ) AS col2 +---- +-65 +7 query I rowsort SELECT ALL 61 * 86 @@ -14039,8 +14225,11 @@ SELECT DISTINCT 12 * + 67 * + + 51 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - -143 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(87\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-66\) \+ Int64\(\-1\) \* Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 87 ) * COUNT ( * ) col0, - 66 + - 1 * 77 AS col0 +---- +-143 +-87 query I rowsort SELECT DISTINCT + 76 * - - 21 @@ -14136,8 +14325,11 @@ SELECT + 4 * + 35 - - 30 + + 36 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(80\) \* Int64\(1\) \+ Int64\(11\)\) / min\(DISTINCT Int64\(\-34\)\) \+ Int64\(\-74\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL NULLIF ( + - COUNT ( * ), 80 * 1 + + 11 ) / MIN ( DISTINCT - 34 ) + - 74 AS col0, + COUNT ( * ) col0 +---- +-74 +1 query I rowsort label-2673 SELECT ALL + 71 / - 62 @@ -14313,8 +14505,11 @@ SELECT 44 - ( - 48 ) + - + MIN ( ALL 66 ) * + + 91 * + 22 + + 24 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col0" at position 0 and "Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 86 AS col0, - 38 AS col0 +---- +-38 +-86 query I rowsort label-2706 SELECT ALL + COUNT ( 19 ) - + COUNT ( * ) @@ -14510,8 +14705,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) * + - COUNT ( * ) AS col2, 85 AS col2 +---- +1 +85 query I rowsort SELECT DISTINCT ( + 11 ) * - 69 @@ -14768,8 +14966,11 @@ SELECT DISTINCT + 86 - + MAX ( ALL 5 ) AS col2 # 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 "min\(CAST\(NULL AS Float64\)\) AS col0" at position 0 and "Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT MIN ( + CAST ( NULL AS FLOAT8 ) ) AS col0, 71 AS col0 +---- +71 +NULL query I rowsort SELECT DISTINCT ( + ( 34 ) ) AS col1 @@ -14945,8 +15146,11 @@ SELECT ( 9 ) * 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col2" at position 0 and "Int64\(2\) \+ \(\- Int64\(15\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 43 AS col2, 2 + - ( 15 ) AS col2 +---- +-13 +43 query I rowsort SELECT DISTINCT + 19 * + 50 * + 57 col2 @@ -15174,8 +15378,12 @@ SELECT + 87 - + - 95 # Datafusion - Expected - 82 # Datafusion - Expected - 25 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-82\)\) AS col0" at position 0 and "Int64\(\-83\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - 82 AS col0, + 25, - 83 AS col0 +---- +-83 +25 +82 query I rowsort label-2869 SELECT - + COUNT ( + - 91 ) @@ -15569,8 +15777,12 @@ SELECT COUNT ( * ) * + 21 AS col2 # Datafusion - Expected - -85 # Datafusion - Expected - NULL # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 85 col1, + ( - CAST ( NULL AS INTEGER ) ) + + + 84 AS col1, - 11 AS col2 +---- +-11 +-85 +NULL query I rowsort SELECT + 86 - + 3 AS col2 @@ -16267,8 +16479,11 @@ SELECT ALL 93 * + SUM ( ALL + 60 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - -112 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col2" at position 0 and "\(\- Int64\(61\)\) \+ Int64\(\-51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 14 AS col2, - ( + 61 ) + - 51 AS col2 +---- +-112 +-14 query I rowsort label-3079 SELECT CASE + 39 WHEN - + 51 + + 26 THEN - 3 * + CAST ( NULL AS INTEGER ) + 5 WHEN + 18 * 98 THEN NULL END * 22 @@ -16560,8 +16775,11 @@ SELECT + 10 * + 89 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 47 * COUNT ( * ) AS col2, - 40 AS col2 +---- +-40 +47 query I rowsort label-3135 SELECT DISTINCT + + 24 * + COUNT ( * ) @@ -16657,8 +16875,11 @@ SELECT DISTINCT + 48 + - + 4 + - 4 - SUM ( - 54 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(34\)\)\) \+ Int64\(44\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - SUM ( 34 ) + 44 col2, CAST ( NULL AS INTEGER ) AS col2 +---- +10 +NULL query I rowsort SELECT ALL ( + 78 ) AS col2 @@ -16975,8 +17196,11 @@ SELECT ALL - 72 + - - 81 AS col2, - 23 / + + 99 + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, 89 AS col0 +---- +1 +89 query II rowsort SELECT ALL - 6 AS col2, + 39 + + 58 col0 @@ -17007,8 +17231,11 @@ SELECT COUNT ( - 78 ) / - + 62 / COUNT ( * ) + - 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1911 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(26\)\), Int64\(\-23\)\) \* \(\- Int64\(\-77\)\) \+ Int64\(91\) AS col2" at position 0 and "Int64\(44\) \+ \(\- Int64\(67\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( - + 26, - 23 ) * - - 77 + 91 AS col2, 44 + - + 67 AS col2 +---- +-1911 +-23 query II rowsort SELECT ALL 39 + - - 84 + - + 22, 95 col2 @@ -17583,8 +17810,11 @@ 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\(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\. +query IR valuesort SELECT DISTINCT + 16 * + 35 AS col2, COUNT ( * ) + + 54 * + - NULLIF ( - 9, - AVG ( DISTINCT 20 ) ) AS col2 +---- +487 +560 query I rowsort SELECT ALL ( - 36 ) - + 63 AS col1 @@ -18963,8 +19193,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 765 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-85\) \* \(\- Int64\(9\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, - 85 * - + 9 AS col0 +---- +1 +765 query I rowsort label-3592 SELECT 54 / - COUNT ( * ) @@ -19252,8 +19485,11 @@ SELECT ALL 31 / + 14, 0 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) / Int64\(33\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 1 / + 33 AS col1, + CAST ( NULL AS INTEGER ) AS col1 +---- +0 +NULL query I rowsort label-3646 SELECT + + ( + CASE + ( 86 ) WHEN - 23 THEN 77 WHEN - + 88 THEN NULL ELSE CAST ( NULL AS INTEGER ) * + 54 END ) + + 50 + + 25 col1 @@ -19358,8 +19594,11 @@ NULL # 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\(25\) AS col2" at position 0 and "Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 AS col2, + 25 AS col2 +---- +25 +25 query I rowsort SELECT - 32 * 85 @@ -19519,8 +19758,11 @@ NULL # 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 col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 90 AS col2, + 58 AS col2 +---- +58 +90 query II rowsort SELECT - 91, ( NULLIF ( 84, + 81 ) ) col2 @@ -20314,8 +20556,11 @@ SELECT ALL + 30 * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 col2, 28 AS col2 +---- +28 +33 query I rowsort SELECT + 62 + - 44 AS col1 @@ -21043,8 +21288,11 @@ SELECT ALL - 98, 45 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col0" at position 0 and "Int64\(38\) \+ Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 69 AS col0, + 38 + - 10 AS col0 +---- +-69 +28 query II rowsort SELECT - 86, - 40 AS col1 @@ -21055,8 +21303,11 @@ SELECT - 86, - 40 AS col1 # 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 "Int64\(1\) \* Int64\(5\) / Int64\(\-89\) AS col2" at position 0 and "Int64\(17\) \- Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 1 * 5 / + - 89 AS col2, + 17 - 39 AS col2 +---- +-22 +0 query I rowsort SELECT - - NULLIF ( 5, + 57 - + - COALESCE ( + 68, + 1 * 50 * + ( - 58 ) ) ) * - 73 @@ -21107,8 +21358,11 @@ SELECT + - 33 + - + 15 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) AS col1" at position 0 and "coalesce\(Int64\(42\), CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 54 AS col1, COALESCE ( + 42, CAST ( NULL AS INTEGER ) ) AS col1 +---- +-54 +42 query I rowsort label-4001 SELECT ALL ( + 32 ) * + MIN ( 78 ) + 57 AS col1 @@ -21218,8 +21472,11 @@ SELECT ALL 61 * COUNT ( * ) - 49 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 7 AS col0, + 33 AS col0 +---- +33 +7 query I rowsort label-4022 SELECT - COUNT ( 42 ) * 85 * + - ( CAST ( NULL AS INTEGER ) ) @@ -21229,8 +21486,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(26\) \* Int64\(\-81\) \+ \(\- Int64\(57\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 3 AS col2, 84 * COALESCE ( + + 32, COUNT ( * ) ) + 26 * - 81 + - + 57 AS col2 +---- +3 +525 query I rowsort label-4024 SELECT - COUNT ( * ) * COUNT ( * ) + - - 76 AS col0 @@ -21307,8 +21567,11 @@ SELECT ALL COUNT ( * ) + ( + 67 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -147 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(\-7\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 * + - 7 AS col0, + 91 AS col0 +---- +-147 +91 query II rowsort label-4039 SELECT ALL COUNT ( * ), + COUNT ( * ) + - SUM ( 27 ) AS col0 @@ -21465,8 +21728,11 @@ SELECT ALL 49 / + 73 col2, + NULLIF ( + 6, 72 + - 43 ) - + NULLIF ( 0, + + SUM ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(2\) \+ Int64\(99\) / Int64\(97\) \+ \(\- coalesce\(Int64\(96\), count\(Int64\(1\)\) AS count\(\*\), CASE Int64\(\-27\) WHEN \(\- CAST\(Int64\(\-93\) AS Int32\)\) \+ Int64\(84\) THEN NULL WHEN \(\- nullif\(coalesce\(Int64\(94\), Int64\(98\) \* Int64\(\-99\)\), Int64\(70\)\)\) \* Int64\(1\) THEN Int64\(72\) \* \(\- Int64\(52\)\) END / Int64\(\-21\) \* Int64\(20\) \- Int64\(42\)\)\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +2 +7 query II rowsort label-4069 SELECT - 63 - - + 66 + 2 * + 70 + - + 11 * - 72 * 72 col1, COUNT ( * ) @@ -21530,8 +21796,11 @@ SELECT COUNT ( * ) + 56 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "\(\- CASE Int64\(45\) WHEN Int64\(38\) THEN NULL ELSE Int64\(51\) END\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ CAST\(NULL AS Int32\) \* Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 AS col0, - CASE + 45 WHEN + 38 THEN NULL ELSE + 51 END - - + ( - COUNT ( * ) ) + + + CAST ( NULL AS INTEGER ) * 49 AS col0 +---- +42 +NULL query I rowsort label-4081 SELECT 26 + + NULLIF ( COUNT ( * ), - 52 * + COUNT ( * ) + - - MIN ( + 53 ) ) AS col2 @@ -21770,8 +22039,11 @@ SELECT - 98 / - + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5712 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* Int64\(84\) AS col1" at position 0 and "nullif\(\(\- Int64\(74\)\), Int64\(\-29\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 68 * 84 AS col1, NULLIF ( - + 74, + - 29 ) AS col1 +---- +-74 +5712 query I rowsort label-4125 SELECT - ( + MAX ( + 41 ) ) + - - COUNT ( * ) + - 66 * + 36 @@ -21811,8 +22083,11 @@ SELECT DISTINCT 36 * - 4 + + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -720 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \* \(\- Int64\(\-90\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 8 * - - 90 AS col2, - CAST ( NULL AS INTEGER ) AS col2 +---- +-720 +NULL query I rowsort SELECT ( - - 6 ) AS col0 @@ -22134,8 +22409,12 @@ SELECT ALL - 97 + + - 60 # Datafusion - Expected - 17 # Datafusion - Expected - 33 # Datafusion - Expected - 616 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 17 col0, 33 col0, 11 * 56 AS col2 +---- +17 +33 +616 query I rowsort label-4195 SELECT 93 + 68 * + 67 * + COUNT ( * ) * + 89 AS col0 @@ -22723,8 +23002,11 @@ SELECT ( + - 88 ) - - - COUNT ( * ) # 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 "Int64\(85\) \* \(\- CASE Int64\(69\) WHEN Int64\(\-3\) THEN Int64\(33\) WHEN Int64\(61\) \* \(\- min\(Int64\(15\)\)\) \+ \(\- max\(Int64\(0\)\)\) \+ Int64\(18\) \* Int64\(53\) THEN NULL END\) AS col1" at position 0 and "Int64\(74\) \+ Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 * - CASE 69 WHEN - 3 THEN 33 WHEN + + 61 * - MIN ( + 15 ) + - MAX ( 0 ) + + + 18 * 53 THEN NULL END AS col1, 74 + + 84 AS col1 +---- +158 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -22777,8 +23059,11 @@ SELECT DISTINCT 85 + - COUNT ( * ) + - + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4320 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(45\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(66\) \* Int64\(63\) \+ Int64\(2\) \* Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 + - + CAST ( NULL AS INTEGER ) + 45 + - + COUNT ( * ) col1, 66 * + + 63 + + + 2 * + 81 col1 +---- +4320 +NULL query I rowsort label-4316 SELECT + MAX ( ( 1 ) ) * - + 60 + 45 AS col0 @@ -23004,8 +23289,11 @@ SELECT ALL + 60 AS col0, 47 * 21 + + - 72 + - 53 * + CAST ( - - 38 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 177 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ Int64\(92\) AS col2" at position 0 and "Int64\(63\) \+ Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 85 + + 92 col2, + 63 + + 18 AS col2 +---- +177 +81 query I rowsort label-4360 SELECT + 55 / 79 * - COUNT ( * ) col2 @@ -23334,8 +23622,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 83 col2, + 96 * - - ( 57 ) * - 7 - - COUNT ( * ) AS col2 +---- +-38303 +83 query I rowsort label-4420 SELECT 21 + 45 + - COUNT ( * ) + - 55 * + - 42 + - 52 AS col2 @@ -23622,8 +23913,11 @@ SELECT 4 * - + 75 + + ( 86 ) - CAST ( + 17 AS INTEGER ) * 23 AS col2, 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 207 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* Int64\(3\) AS col0" at position 0 and "Int64\(21\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 * + 3 AS col0, 21 * CAST ( + - COUNT ( * ) AS INTEGER ) AS col0 +---- +-21 +207 query I rowsort label-4475 SELECT + COUNT ( * ) + - 58 AS col1 @@ -24183,8 +24477,11 @@ 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\(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\. +query II valuesort SELECT COALESCE ( + ( 53 ), - COUNT ( * ) ) * 25 + 99 col2, 63 col2 +---- +1424 +63 query I rowsort label-4581 SELECT ALL MIN ( DISTINCT 9 ) col2 @@ -24346,8 +24643,11 @@ SELECT DISTINCT ( + - 15 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 450 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-50\)\) \* \(\- nullif\(Int64\(\-9\), Int64\(92\)\)\) AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - 50 ) * - NULLIF ( - 9, + 92 ) AS col1, 40 AS col1 +---- +40 +450 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -24511,8 +24811,12 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(67\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 41 col0, 74 / - 13 AS col2, + - 25 - + COUNT ( * ) * - + 67 AS col0 +---- +-5 +41 +42 query I rowsort SELECT DISTINCT - 9 + - + 26 * 74 + - 1 * + 15 + - - 77 @@ -26633,8 +26937,11 @@ SELECT ALL - 26 + - - 89 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 AS col0, 98 col0 +---- +-31 +98 query I rowsort SELECT ALL - - 57 + 18 AS col2 @@ -26655,8 +26962,11 @@ SELECT DISTINCT 14 - - 27 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \- Int64\(92\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 50 - + 92 AS col1, + 60 AS col1 +---- +-42 +60 query II rowsort SELECT 93 * + + 80, - 68 + - 42 + - + 49 AS col2 @@ -26857,8 +27167,11 @@ SELECT DISTINCT + CAST ( - + 3 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, + 50 AS col2 +---- +1 +50 query I rowsort label-5092 SELECT COUNT ( - 45 ) col0 @@ -26983,8 +27296,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-31\) AS col0" at position 0 and "Int64\(\-97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 19 * - CAST ( NULL AS INTEGER ) + + - 31 AS col0, - 97 AS col0 +---- +-97 +NULL query I rowsort label-5116 SELECT - 50 / + 8 @@ -27354,8 +27670,11 @@ SELECT ALL - 4 * 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \- Int64\(\-14\) AS col0" at position 0 and "nullif\(\(\- Int64\(24\)\), \(\- CAST\(Int64\(\-47\) AS Int32\)\) \+ Int64\(\-29\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 50 - - 14 AS col0, NULLIF ( ( - + 24 ), - CAST ( + - 47 AS INTEGER ) + - 29 ) AS col0 +---- +-24 +64 query II rowsort SELECT ALL - 7 AS col1, 90 * - - 20 AS col2 @@ -27736,8 +28055,11 @@ SELECT - 88 * - CASE + 34 WHEN - 39 THEN NULL ELSE - 62 / + ( - ( - 8 ) ) END AS # Datafusion - Datafusion expected results: # Datafusion - Expected - -4725 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* \(\- Int64\(\-1\)\) \* \(\- min\(Int64\(75\)\)\) AS col0" at position 0 and "\(\- Int64\(48\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 * - - 1 * - MIN ( 75 ) col0, - ( + 48 ) AS col0 +---- +-4725 +-48 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -27795,8 +28117,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- \(\- Int64\(68\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 65 * + 19 AS col1, COUNT ( * ) * - - ( 68 ) AS col1 +---- +1235 +68 query I rowsort label-5271 SELECT 81 + 61 + + 78 / + 77 @@ -27806,8 +28131,11 @@ 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\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-14\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 + + + 76 AS col0, COUNT ( * ) + - - 14 AS col0 +---- +15 +166 query I rowsort label-5273 SELECT ALL - 30 + 17 / + - ( + 62 ) * 4 @@ -27863,8 +28191,11 @@ SELECT + 86 + + COUNT ( * ) * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 4440 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(73\)\) \- \(\- Int64\(\-48\)\) / Int64\(\-99\) AS col1" at position 0 and "Int64\(60\) \* Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + COUNT ( + 73 ) - - - 48 / - 99 AS col1, + 60 * 74 AS col1 +---- +1 +4440 query II rowsort label-5284 SELECT ALL - 76 AS col2, - 72 + + 50 + - COUNT ( * ) / + + 67 @@ -27905,8 +28236,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-90\) AS Int32\) \+ \(\- Int64\(\-58\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - 90 AS INTEGER ) + - - 58 AS col2, + COUNT ( * ) * - 88 col2 +---- +-32 +-88 query I rowsort SELECT ALL 60 * - 56 @@ -27977,8 +28311,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 32 AS col1, 14 / - COUNT ( * ) AS col1 +---- +-14 +-32 query I rowsort label-5306 SELECT MIN ( - ( + 52 ) ) @@ -28084,8 +28421,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 82 col1 +---- +1 +82 query I rowsort label-5326 SELECT COUNT ( ALL - 93 ) AS col2 @@ -28146,8 +28486,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col2, - 71 + - 32 + - 64 + + 45 * 11 * + 42 * - - COUNT ( * ) AS col2 +---- +-1 +20623 query I rowsort SELECT - COALESCE ( + 17, + 65 * - ( - - 42 ) ) + - 17 @@ -28471,8 +28814,11 @@ SELECT CAST ( + ( - 92 ) AS INTEGER ) + - + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) / Int64\(40\) \* Int64\(50\) \+ Int64\(32\) \+ Int64\(\-1\) \* 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 II valuesort SELECT 29 / + 40 * 50 + 32 + - 1 * 10 AS col0, + 71 col0 +---- +22 +71 query I rowsort label-5400 SELECT - 70 * - COALESCE ( - COUNT ( DISTINCT + ( + ( + - 17 ) ) ), - + 85 * - - 78 + - 61 + + 15 + 79 - + 23 / + - 42 - + 46 + + 66 * - - 65 * - 86 * 63 * + 57 * + COUNT ( * ) + - + CAST ( + ( SUM ( 88 ) ) AS INTEGER ) * 49, + 28 ) * - 3 AS col1 @@ -29154,8 +29500,11 @@ 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\(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\. +query II valuesort SELECT - - 50 * + 89 * + COUNT ( * ) - + COUNT ( * ) - + 9 AS col2, - 18 AS col2 +---- +-18 +4440 query I rowsort label-5527 SELECT ALL + + NULLIF ( + 13, + ( 87 ) ) / COUNT ( * ) * + SUM ( DISTINCT + 96 ) * - 87 @@ -29330,8 +29679,11 @@ SELECT + 15 + + - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(8\) \- Int64\(65\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) * + 8 - + 65 AS col0, 68 AS col0 +---- +68 +NULL query II rowsort SELECT ALL + - 54 col1, - 66 AS col2 @@ -29388,8 +29740,11 @@ SELECT + 21 * - MIN ( ALL + - 10 ) + + + 65 + + + 29 - - - 77 * 43 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4365 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* Int64\(\-46\) \- Int64\(41\) AS col1" at position 0 and "Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 94 * - 46 - + 41 AS col1, + 89 AS col1 +---- +-4365 +89 query II rowsort label-5571 SELECT - COALESCE ( - COALESCE ( - - 62, - 72 - + 46 * + 3 / + 7 * ( + NULLIF ( + 63, COUNT ( * ) ) ) ), 78 + + + 84 * 81 + + + 62 - + 65 - + + COUNT ( * ) + 95 + 40 + COUNT ( * ) + - 24 * 39 * 70 ) AS col2, + 65 col1 @@ -29410,8 +29765,11 @@ SELECT - + 41 / - SUM ( + 45 ) - + 63 + - 70 * 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - -444 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) \* Int64\(12\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 37 * + + 12 AS col0, 22 AS col0 +---- +-444 +22 query I rowsort SELECT ALL ( - 63 ) AS col2 @@ -29462,8 +29820,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -155 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(4\)\) \+ Int64\(\-86\) \- Int64\(73\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( DISTINCT 4 ) + - 86 - + + 73 AS col1, + 55 AS col1 +---- +-155 +55 query II rowsort label-5585 SELECT DISTINCT CAST ( - + COUNT ( * ) AS INTEGER ), 83 AS col0 @@ -29678,8 +30039,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 + COALESCE ( - 13, + 74, 98 * COUNT ( * ) ) AS col2, + 99 AS col2 +---- +31 +99 query II rowsort label-5625 SELECT ALL - COALESCE ( 6, - - CAST ( + ( + 28 ) AS INTEGER ) * 63, + 61 ) * + + 20 AS col1, COUNT ( * ) col0 @@ -30264,8 +30628,11 @@ SELECT 85 * + MIN ( ALL - - 55 ) * 53 + + 50 AS col1 # 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\(52\)\) \+ Int64\(53\) AS col0" at position 0 and "Int64\(\-14\) \+ Int64\(\-12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 52 ) + + 53 AS col0, - 14 + + - 12 AS col0 +---- +-26 +1 query I rowsort SELECT ALL + 58 * - + 5 AS col1 @@ -30358,8 +30725,11 @@ SELECT - MAX ( ALL COALESCE ( - 17, 10 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -102816 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \* \(\- Int64\(63\)\) \* Int64\(\-48\) AS col2" at position 0 and "Int64\(78\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 34 * - + 63 * - 48 AS col2, 78 * + + COUNT ( * ) AS col2 +---- +-102816 +78 query I rowsort SELECT + 62 + 27 AS col2 @@ -30520,8 +30890,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + - 41 AS col0, + 24 AS col0 +---- +-40 +24 query II rowsort label-5785 SELECT - SUM ( + + 86 ) AS col0, + 78 * - 52 @@ -30691,8 +31064,11 @@ SELECT ALL 46 + - 80 * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 col2, + 29 AS col2 +---- +29 +94 query I rowsort label-5817 SELECT + COUNT ( * ) * + + 17 AS col1 @@ -30929,8 +31305,11 @@ SELECT + + 41 - + MAX ( - + 75 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -435045 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* nullif\(Int64\(65\), Int64\(0\) \+ Int64\(\-79\) \+ Int64\(\-63\)\) \* Int64\(\-69\) AS col1" at position 0 and "Int64\(\-64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 97 * + NULLIF ( 65, + 0 + - 79 + - 63 ) * - 69 AS col1, - 64 AS col1 +---- +-435045 +-64 query I rowsort label-5861 SELECT + + 92 + - CASE + 33 WHEN - 14 THEN + - 68 WHEN - CAST ( - + COUNT ( * ) AS INTEGER ) THEN NULL ELSE 41 - + 80 END + + COUNT ( * ) * - 16 + + + 49 @@ -31213,8 +31592,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT 23 AS col1, 49 AS col1 +---- +23 +49 query II rowsort SELECT ALL - 45, - 12 AS col0 @@ -31240,14 +31622,20 @@ SELECT 35 + + + 43 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(60\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 60 AS col0, + COUNT ( * ) AS col0 +---- +-60 +1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -900 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(\-23\)\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(75\) \* \(\- \(\- max\(Int64\(\-12\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( DISTINCT + - 23 ) * + CAST ( NULL AS INTEGER ) col1, 75 * - - MAX ( - 12 ) AS col1 +---- +-900 +NULL query I rowsort label-5921 SELECT ( + - MIN ( DISTINCT - 58 ) ) @@ -31573,8 +31961,11 @@ SELECT ALL 7 - + 91 # 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\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 22 AS col1, 31 AS col1 +---- +-22 +31 query I rowsort SELECT 85 - + 20 @@ -31731,8 +32122,11 @@ SELECT ( + + 82 ) + - + COUNT ( * ) * - 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-51\)\) \* CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(21\) \+ Int64\(7\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(\-46\)\) \* CAST\(NULL AS Int32\) THEN NULL END AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +6 +NULL query I rowsort label-6010 SELECT ( - 73 ) * + MAX ( 2 ) AS col0 @@ -32137,8 +32531,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(32\)\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - + 32 ) AS col0, 25 col0 +---- +-32 +25 query I rowsort label-6085 SELECT ALL - 16 - + COUNT ( * ) * + - 81 @@ -32542,8 +32939,11 @@ SELECT ALL - COUNT ( * ) * - 25 - + - 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - -231 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* Int64\(21\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 11 * 21 AS col2, + 61 AS col2 +---- +-231 +61 query I rowsort label-6162 SELECT + COUNT ( * ) * + + 80 AS col2 @@ -33585,8 +33985,11 @@ SELECT ( + - SUM ( ALL 36 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 AS col0, 45 col0 +---- +45 +95 query I rowsort label-6365 SELECT COALESCE ( + COUNT ( * ), - ( ( - 76 ) ) * - 62 ) * ( - 29 ) col0 @@ -34263,8 +34666,11 @@ SELECT ALL + 58 * - + 24 * - 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - -4320 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "Int64\(\-80\) \* \(\- Int64\(\-54\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 59 AS col0, - 80 * - - 54 col0 +---- +-4320 +59 query II rowsort SELECT + 11 AS col2, - 8 + ( - 31 ) @@ -35167,8 +35573,11 @@ SELECT ALL ( - + SUM ( ALL + - 36 ) ) - + 28 / + COUNT ( * ) * + COUNT ( * ) AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 1653 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* Int64\(29\) AS col1" at position 0 and "Int64\(47\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 57 * 29 AS col1, 47 * + ( - CAST ( NULL AS INTEGER ) ) AS col1 +---- +1653 +NULL query I rowsort SELECT 47 * 65 - + ( + 28 ) * + - 99 AS col0 @@ -35355,8 +35764,11 @@ SELECT + COALESCE ( - - 63, - NULLIF ( + + 93, + 71 - - 95 * - MIN ( - 11 ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2346 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* Int64\(46\) AS col1" at position 0 and "Int64\(\-77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 51 * + 46 AS col1, - 77 AS col1 +---- +-77 +2346 query I rowsort label-6701 SELECT DISTINCT CAST ( - COALESCE ( AVG ( ALL + CAST ( + 92 AS INTEGER ) ), + COALESCE ( + 43, - 45 * + 83, 47 ) ) AS INTEGER ) col1 @@ -35477,8 +35889,11 @@ SELECT DISTINCT COALESCE ( MIN ( - 49 ), + 21 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT ALL 62 AS col1, 63 AS col1 +---- +62 +63 query II rowsort SELECT - 13 AS col0, 49 @@ -35900,8 +36315,11 @@ SELECT DISTINCT COUNT ( + 70 ) # 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\(DISTINCT Int64\(78\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - + ( 9 ) ) AS col0, COUNT ( DISTINCT 78 ) col0 +---- +1 +9 query I rowsort SELECT + - 75 * - 34 AS col1 @@ -36688,8 +37106,11 @@ SELECT DISTINCT + COUNT ( * ) + - 1 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 AS col2, 45 AS col2 +---- +45 +96 query I rowsort label-6956 SELECT ALL + CAST ( NULL AS INTEGER ) - + 72 AS col0 @@ -37084,8 +37505,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * 77 + + 46 AS col0, 91 AS col0 +---- +123 +91 query I rowsort label-7032 SELECT DISTINCT - 75 * CAST ( NULL AS INTEGER ) + 12 + 49 + + COUNT ( * ) * + - CAST ( + 35 AS INTEGER ) @@ -37194,14 +37618,20 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, 9 AS col2 +---- +-1 +9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col0" at position 0 and "Int64\(48\) \+ Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 24 AS col0, ( + 48 ) + + + 18 AS col0 +---- +24 +66 query I rowsort SELECT + 9 * - 26 @@ -37327,8 +37757,11 @@ SELECT DISTINCT - 98 * - + CAST ( + 18 AS INTEGER ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -272 # Datafusion - Expected - -15713 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \* Int64\(34\) AS col1" at position 0 and "Int64\(20\) \* Int64\(\-22\) \* Int64\(27\) \+ \(\- \(\- min\(\(\- Int64\(41\)\)\)\)\) \+ Int64\(\-18\) \- Int64\(\-74\) \* Int64\(\-51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 8 * + 34 AS col1, 20 * - 22 * + + ( 27 ) + - - MIN ( - + 41 ) + - 18 - - 74 * - 51 AS col1 +---- +-15713 +-272 query I rowsort SELECT DISTINCT 51 * 29 + + 85 - 57 AS col1 @@ -37741,8 +38174,11 @@ SELECT DISTINCT SUM ( ALL - 12 ) - + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 408 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* Int64\(8\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 51 * + 8 AS col2, 82 AS col2 +---- +408 +82 query I rowsort SELECT + 56 + - 75 AS col0 @@ -37871,8 +38307,11 @@ SELECT DISTINCT - 13 / - COUNT ( * ) + - - COALESCE ( 63, - 13 ) / - + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 AS col0, 98 AS col0 +---- +-70 +98 query I rowsort label-7182 SELECT - ( + COUNT ( * ) ) + + 34 @@ -38003,8 +38442,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(\-64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 35 + - - COUNT ( * ) col2, - 64 AS col2 +---- +-34 +-64 query I rowsort SELECT + - 31 + + 30 AS col1 @@ -38089,8 +38531,12 @@ SELECT 91 * - 37 * - 33 + NULLIF ( - COUNT ( * ), - 82 ) * + 2 + - - 18 col2 # Datafusion - Expected - 27 # Datafusion - Expected - 74 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \- CAST\(Int64\(\-33\) AS Int32\) \+ Int64\(49\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-74\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 55 - CAST ( - 33 AS INTEGER ) + 49 AS col2, COUNT ( * ) * - - 74 AS col2, - SUM ( DISTINCT 10 ) +---- +-10 +27 +74 query I rowsort SELECT 89 * - + 65 AS col0 @@ -38374,8 +38820,11 @@ SELECT 28 * + 24 + - 23 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "Int64\(\-4\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 82 AS col2, - 4 + COUNT ( * ) AS col2 +---- +-3 +82 query I rowsort label-7276 SELECT + MAX ( DISTINCT - + 74 ) @@ -38493,8 +38942,11 @@ SELECT - 17 * + ( + + 41 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 105 # Datafusion - Expected - 180 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \+ Int64\(11\) \* Int64\(76\) / Int64\(84\) AS col2" at position 0 and "Int64\(93\) \+ Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 96 + + 11 * 76 / + + 84 AS col2, + 93 + + 87 col2 +---- +105 +180 query I rowsort label-7298 SELECT DISTINCT ( + MIN ( ALL + + 8 ) ) @@ -38599,8 +39051,11 @@ 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\(1\)\) AS count\(\*\)\) \- Int64\(\-69\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 15 AS col1, 54 * - NULLIF ( - NULLIF ( + + 10, - 82 ), - 77 + - + ( COUNT ( * ) ) - - 69 ) AS col1 +---- +15 +540 query I rowsort label-7318 SELECT + + 7 * 59 * 27 + + + COALESCE ( + + ( ( 19 ) ), - + COUNT ( * ), 98 + + SUM ( ALL - - 82 ) ) + - 71 + + + COUNT ( * ) AS col0 @@ -38610,8 +39065,11 @@ SELECT + + 7 * 59 * 27 + + + COALESCE ( + + ( ( 19 ) ), - + COUNT ( * ), 98 + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -344 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col2" at position 0 and "Int64\(\-56\) \+ \(\- Int64\(45\)\) / Int64\(11\) \* Int64\(72\) \+ sum\(DISTINCT \(\- Int64\(\-18\)\)\) / Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 33 col2, - 56 + - + ( 45 ) / 11 * + 72 + + SUM ( DISTINCT - - 18 ) / 41 AS col2 +---- +-344 +33 query I rowsort SELECT ALL 9 * + 63 - 92 @@ -38788,8 +39246,11 @@ 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\(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\. +query II valuesort SELECT 52 * + ( + COUNT ( * ) ) + - SUM ( - + 65 ) * - ( - 4 ) AS col1, + 81 AS col1 +---- +312 +81 query I rowsort label-7354 SELECT ALL - COUNT ( DISTINCT - 76 ) AS col2 @@ -38824,8 +39285,11 @@ SELECT DISTINCT 64 * + COUNT ( DISTINCT + + 24 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col1" at position 0 and "Int64\(\-59\) \+ Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 AS col1, - 59 + + 11 col1 +---- +-48 +-81 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -39447,8 +39911,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col2, 28 AS col2 +---- +28 +NULL query I rowsort label-7476 SELECT + 41 + COUNT ( * ) * + 43 @@ -39933,8 +40400,11 @@ 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\(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\. +query II valuesort SELECT 73 AS col0, COUNT ( * ) + - 93 + - 10 + - - 49 * - - 69 AS col0 +---- +3279 +73 query I rowsort SELECT 90 + - - 0 col2 @@ -40140,8 +40610,11 @@ SELECT ALL 51 * - 49 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col2, 93 AS col2 +---- +1 +93 query II rowsort label-7608 SELECT CASE 6 WHEN + + 28 THEN + 24 * - 82 + - - 69 END, 76 * - - CASE + 75 WHEN + 83 + - - COUNT ( * ) THEN - 38 + MIN ( DISTINCT - 58 ) / 48 WHEN - - 86 + ( 51 ) * - 29 THEN - + ( - 15 ) / 62 WHEN + + 5 THEN NULL END + 12 AS col0 @@ -40257,8 +40730,11 @@ SELECT - MAX ( + 43 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "Int64\(\-29\) \+ Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 8 AS col1, - 29 + 70 AS col1 +---- +41 +8 query II rowsort SELECT ALL + 95, - 5 AS col1 @@ -40590,8 +41066,11 @@ SELECT DISTINCT - 41 + 90 / 26, + 77 - - - 55 + ( + + MAX ( + + 19 ) ) / - - 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-4\)\) \* Int64\(22\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(94\) / coalesce\(\(\- coalesce\(Int64\(46\), Int64\(81\) \+ CAST\(NULL AS Int32\) \* Int64\(93\)\)\), Int64\(96\) \+ \(\- Int64\(62\)\) \+ Int64\(78\) \+ \(\- CAST\(Int64\(49\) AS Int32\)\) \- Int64\(4\) \+ coalesce\(Int64\(54\), Int64\(\-31\)\) \* Int64\(93\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-2 +88 query I rowsort label-7692 SELECT + 27 * + 19 + COUNT ( DISTINCT 25 ) col2 @@ -40628,8 +41107,11 @@ SELECT DISTINCT - 60, CAST ( - NULLIF ( 66, + 8 ) AS INTEGER ) * + + NULLIF ( 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(93\)\) \+ max\(Int64\(38\)\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 93 + + + MAX ( ALL 38 ) AS col2, + 49 AS col2 +---- +-55 +49 query I rowsort SELECT DISTINCT - 98 + - 72 @@ -41035,8 +41517,11 @@ SELECT - 67 + + 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5913 # Datafusion - Expected - -2652 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* Int64\(\-81\) AS col1" at position 0 and "Int64\(\-39\) \* Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 73 * - 81 AS col1, - 39 * + 68 AS col1 +---- +-2652 +-5913 query I rowsort SELECT - 85 * 52 @@ -41411,8 +41896,11 @@ SELECT + - 77 + - 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( * ) AS col2, COUNT ( * ) AS col2 +---- +1 +1 query I rowsort label-7849 SELECT + + 2 + - + COUNT ( * ) AS col0 @@ -42767,8 +43255,11 @@ SELECT + 69 + - + 21 * - NULLIF ( 35, - 83 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 134 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(85\) \+ Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 85 + + 49 AS col1 +---- +1 +134 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -43211,8 +43702,11 @@ SELECT - 10, + SUM ( DISTINCT + + 27 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 850 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(50\)\) \* Int64\(17\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( ALL 50 ) * + + 17 AS col0, 66 col0 +---- +66 +850 query I rowsort label-8199 SELECT ( 89 ) - + COUNT ( 24 ) AS col0 @@ -44044,8 +44538,11 @@ SELECT ALL + 99 / - + CASE + - SUM ( + 93 ) WHEN + CAST ( - + NULLIF ( 22, 51 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 64 AS col1, 62 AS col1 +---- +-64 +62 query I rowsort label-8356 SELECT ALL COUNT ( * ) * + SUM ( DISTINCT ( + 64 ) ) + 85 @@ -44808,8 +45305,11 @@ SELECT - NULLIF ( + 25, - 8 ) * + + ( 44 ) + 3 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 4760 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col1" at position 0 and "Int64\(56\) \* \(\- Int64\(\-85\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 57 AS col1, 56 * - - 85 AS col1 +---- +4760 +57 query I rowsort label-8504 SELECT DISTINCT + SUM ( DISTINCT + + 58 ) * + CASE - COUNT ( * ) WHEN 27 * - CASE COUNT ( * ) WHEN - ( 96 ) / ( + ( - + 4 ) ) THEN + - 49 WHEN + 51 THEN NULL END THEN + 64 WHEN - 3 * + + ( + 73 ) - 84 * + 82 THEN COALESCE ( ( ( 82 ) ), - 88 * 5 ) WHEN 78 * + 46 + - CAST ( + COUNT ( * ) AS FLOAT8 ) THEN NULL END AS col0 @@ -45253,8 +45753,11 @@ SELECT 37 + - 97 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "Int64\(26\) \+ Int64\(\-97\) \+ Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 51 AS col0, 26 + - 97 + + 4 AS col0 +---- +-67 +51 query I rowsort label-8590 SELECT - + 63 + - + COUNT ( * ) @@ -45303,8 +45806,11 @@ SELECT DISTINCT - ( + + 15 ) * + COUNT ( * ) + - 39 + + COUNT ( * ) + + + 53 + - # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(\-75\) \- Int64\(76\) \+ \(\- Int64\(87\)\) \+ Int64\(18\) AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) + - 75 - 76 + - ( 87 ) + + 18 AS col1, 90 col1 +---- +90 +NULL query I rowsort SELECT - - 36 + 94 AS col1 @@ -45400,8 +45906,11 @@ SELECT ALL + 7 AS col1, 20 / - - 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -2829 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "Int64\(\-69\) \* \(\- Int64\(\-41\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 17 AS col0, - 69 * - - 41 AS col0 +---- +-2829 +17 query I rowsort SELECT 52 * 63 - + 56 * + 93 + - 18 AS col2 @@ -45603,8 +46112,11 @@ SELECT DISTINCT + 65 * NULLIF ( - 76, + + ( 25 ) * - 16 * - - 50 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1740 # Datafusion - Expected - 2331 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \* Int64\(\-87\) AS col1" at position 0 and "Int64\(37\) \* Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 20 * - 87 AS col1, 37 * + 63 AS col1 +---- +-1740 +2331 query I rowsort SELECT - 91 + + + 93 AS col0 @@ -45790,8 +46302,11 @@ SELECT ALL - + 73 + - + 72 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1050 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(Int64\(74\)\) \* Int64\(\-87\) / Int64\(\-59\) \* Int64\(56\) \+ Int64\(8\) \+ \(\- coalesce\(Int64\(\-74\), Int64\(\-53\)\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(66\) \* Int64\(61\) \* Int64\(98\) / \(\- CAST\(CAST\(NULL AS Int32\) AS Int32\)\) \- Int64\(55\) / count\(Int64\(1\)\) AS count\(\*\) \- Int64\(75\) AS col0" at position 0 and "Int64\(30\) \* Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort 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 +---- +1050 +NULL query I rowsort label-8693 SELECT ALL 8 + NULLIF ( + + 98, - 6 ) + - COUNT ( + 64 ) + 40 / 60 * + - 71 * + - 3 - CAST ( - + 70 AS INTEGER ) @@ -46003,8 +46518,11 @@ SELECT ALL - + 20 * + 34 * + ( - NULLIF ( 31, MIN ( + 57 ) ) ) / + COUNT ( * ) + # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( ( + 62 ) ) AS col2, 51 AS col2 +---- +51 +62 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -46150,8 +46668,11 @@ SELECT + + 77 AS col2, - 87 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col1" at position 0 and "Int64\(3\) \- Int64\(\-77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 AS col1, 3 - - 77 AS col1 +---- +5 +80 query I rowsort label-8761 SELECT ALL 66 * + CAST ( NULL AS INTEGER ) AS col0 @@ -46220,8 +46741,11 @@ SELECT - 35 * SUM ( ALL + - 21 ) * 11 * - - 52 + - 24 - - + 0 # 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 "CASE Int64\(47\) WHEN \(\- \(\- Int64\(\-86\)\)\) \* coalesce\(Int64\(\-12\), Int64\(\-50\)\) THEN Int64\(\-12\) \* Int64\(41\) \+ \(\- max\(Int64\(\-48\)\)\) ELSE NULL END AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CASE 47 WHEN - ( - - 86 ) * + COALESCE ( - 12, - 50 ) THEN - 12 * + + 41 + - MAX ( + - 48 ) ELSE NULL END AS col0, 35 AS col0 +---- +35 +NULL query I rowsort SELECT DISTINCT ( - + 52 ) col2 @@ -46241,8 +46765,11 @@ SELECT - COUNT ( * ) * - + 4 * - - 90 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(\-34\) WHEN Int64\(41\) THEN CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) / \(\- Int64\(74\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(71\)\) \+ Int64\(\-24\) \+ \(\- Int64\(86\)\) \+ Int64\(57\) END\) \* Int64\(51\) \* Int64\(\-23\) AS col1" at position 0 and "Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( CASE - 34 WHEN + 41 THEN CAST ( + + COUNT ( * ) AS INTEGER ) / - + 74 + - COUNT ( * ) - - + 71 + + - 24 + - + 86 + + + 57 END ) * + 51 * - 23 AS col1, + 68 AS col1 +---- +68 +NULL query I rowsort label-8778 SELECT DISTINCT 10 * - + 19 * - + COUNT ( * ) + - 86 @@ -46301,8 +46828,11 @@ 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\(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\. +query II valuesort 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 +---- +-38 +NULL query II rowsort label-8789 SELECT DISTINCT 51, - 84 + - MIN ( ALL 10 ) * - 78 * 89 AS col2 @@ -46501,8 +47031,11 @@ SELECT 15 / + - 83 # 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 nullif\(Int64\(11\), Int64\(\-50\) \+ \(\- Int64\(90\)\) \* Int64\(98\)\) WHEN Int64\(\-51\) THEN Int64\(\-23\) \+ Int64\(\-11\) END \- Int64\(\-77\) \+ Int64\(42\) \* Int64\(5\) \+ Int64\(37\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CASE NULLIF ( 11, - 50 + - + 90 * 98 ) WHEN + - 51 THEN - 23 + - 11 END - - 77 + + + 42 * + 5 + 37 AS col1, 2 col1 +---- +2 +NULL query I rowsort SELECT ( 88 ) * + - 85 AS col1 @@ -46657,8 +47190,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * 16 + - 64 AS col1, - 84 - + + 91 AS col1 +---- +-175 +-80 query II rowsort label-8857 SELECT - COUNT ( + - ( + 15 ) ) col0, - MIN ( DISTINCT + CAST ( + + 33 AS INTEGER ) ) @@ -47066,8 +47602,11 @@ SELECT 69, - 60 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 68 AS col1, COUNT ( * ) AS col1 +---- +1 +68 query I rowsort SELECT ( - 49 ) * 4 * 23 + - 50 @@ -47188,8 +47727,11 @@ SELECT ( 49 ) * + 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 2145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(88\)\) AS col0" at position 0 and "Int64\(99\) \+ Int64\(93\) \* Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( ALL 88 ) AS col0, 99 + 93 * 22 AS col0 +---- +2145 +88 query I rowsort SELECT DISTINCT COALESCE ( - - 23, - 40 ) @@ -47226,8 +47768,12 @@ SELECT 49 * CAST ( COUNT ( * ) AS INTEGER ) - + ( MIN ( + 70 ) ) / - COUNT ( * ) # Datafusion - Expected - 6102 # Datafusion - Expected - 46 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* Int64\(63\) \+ Int64\(54\) AS col2" at position 0 and "Int64\(43\) \+ Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 96 * 63 + 54 AS col2, 43 + + 3 AS col2, NULLIF ( - - COUNT ( ALL - + 60 ), + + 70 ) AS col1 +---- +1 +46 +6102 query I rowsort label-8964 SELECT COALESCE ( + 58, + CAST ( NULL AS INTEGER ) * + + 52 ) @@ -47288,8 +47834,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT ( - 7 ) AS col1, - ( NULLIF ( 49, - 98 ) ) * + + COUNT ( * ) * 13 * + + 88 * - 84 + - 15 AS col1 +---- +-7 +4708689 query II rowsort label-8976 SELECT ALL - CAST ( NULL AS INTEGER ) - 53, COUNT ( * ) * + - 39 / + 79 * + 57 / + 18 * - NULLIF ( + COUNT ( * ), + + 95 * 6 * NULLIF ( + COUNT ( * ), - + COUNT ( - 37 ) * + 62 - - 31 ) ) AS col0 @@ -47544,8 +48093,11 @@ SELECT ALL - COALESCE ( - 82, 37 - - 97 ) * + 94 * - 75 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(1\) \* Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 60 + CAST ( NULL AS INTEGER ) AS col1, + 1 * + 94 AS col1 +---- +94 +NULL query II rowsort label-9024 SELECT DISTINCT + ( - 85 ) + - + MAX ( DISTINCT + 12 ) + + COUNT ( * ) + + ( 27 ) AS col2, + 50 AS col0 @@ -47650,8 +48202,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + COUNT ( ALL + 56 ) AS col2, 46 * + MAX ( DISTINCT + + ( + 56 ) ) + 12 + - 2 AS col2 +---- +2 +2586 query I rowsort label-9043 SELECT DISTINCT COUNT ( * ) * + NULLIF ( + 61, + + 90 ) AS col1 @@ -47686,8 +48241,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 427 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* Int64\(15\) \+ Int64\(7\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 * + 15 + 7 AS col2, 69 col2 +---- +427 +69 query II rowsort label-9050 SELECT COUNT ( * ) * + 75 * - 65 AS col1, + 78 * COUNT ( * ) AS col0 @@ -47732,8 +48290,12 @@ SELECT ALL MAX ( + 59 ) * + 21 - - NULLIF ( - 69, - 40 ) - 71 AS col1 # Datafusion - Expected - 14 # Datafusion - Expected - NULL # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "Int64\(\-46\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 14 AS col0, + CAST ( NULL AS INTEGER ) * 72, - 46 AS col0 +---- +-46 +14 +NULL query I rowsort SELECT DISTINCT + 90 * + - 66 @@ -47912,8 +48474,11 @@ SELECT DISTINCT + COALESCE ( MAX ( ALL 92 ), + 45 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col1" at position 0 and "Int64\(\-10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 49 AS col1, - 10 AS col1 +---- +-10 +-49 query II rowsort label-9092 SELECT ALL + 1 AS col1, 2 / + 79 / - - COUNT ( * ) col0 @@ -48007,8 +48572,11 @@ SELECT + CAST ( - 94 AS INTEGER ) # 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\(\-15\) / Int64\(97\) AS col1" at position 0 and "Int64\(\-34\) \+ \(\- sum\(DISTINCT Int64\(55\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 15 / 97 AS col1, ( - 34 ) + - SUM ( DISTINCT 55 ) AS col1 +---- +-89 +0 query I rowsort label-9109 SELECT - 96 * + 29 + + 5 / + + 12 AS col2 @@ -48382,8 +48950,11 @@ SELECT DISTINCT MIN ( 10 ) / - - ( 65 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) / Int64\(61\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 18 / + 61 AS col1, COUNT ( * ) AS col1 +---- +0 +1 query I rowsort label-9180 SELECT ALL 24 + 15 * - 37 * COUNT ( * ) AS col1 @@ -48829,8 +49400,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(\-98\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( + + 32 ) AS col0, COUNT ( * ) * - COUNT ( - 98 ) col0 +---- +-1 +-32 query II rowsort label-9265 SELECT DISTINCT 72, COUNT ( * ) AS col1 @@ -48949,8 +49523,11 @@ SELECT DISTINCT + 89 - + - 80 * COUNT ( * ) AS 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 "\(\- \(\- min\(DISTINCT Int64\(\-14\)\)\)\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - MIN ( DISTINCT - 14 ) col2, + 3 AS col2 +---- +-14 +3 query I rowsort label-9288 SELECT 33 * - + NULLIF ( - + 44, + - COUNT ( * ) + + COUNT ( * ) * 77 ) * COUNT ( * ) col2 @@ -49812,8 +50389,11 @@ SELECT - 1 + COUNT ( * ) + COUNT ( * ) / - MIN ( + ( - 99 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ Int64\(5\) AS col0" at position 0 and "Int64\(88\) \+ Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 + + 5 AS col0, 88 + - 99 col0 +---- +-11 +30 query I rowsort label-9453 SELECT DISTINCT 31 / 68 @@ -50087,8 +50667,11 @@ SELECT ALL + NULLIF ( + + 5, - 66 * - + COUNT ( * ) - - 80 - + 63 ) / + 30 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col1" at position 0 and "Int64\(\-39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 27 AS col1, - 39 AS col1 +---- +-39 +27 query I rowsort label-9507 SELECT 34 * - 70 * + - SUM ( + - CAST ( NULL AS INTEGER ) ) + - - 37 @@ -51346,8 +51929,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \- Int64\(\-33\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 - - 33 AS col0, 9 AS col0 +---- +78 +9 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -51526,8 +52112,12 @@ SELECT + COUNT ( * ) * - 3 * COUNT ( * ) AS col1 # Datafusion - Expected - -86 # Datafusion - Expected - 2279 # Datafusion - Expected - 408 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ Int64\(46\) \* Int64\(49\) AS col2" at position 1 and "Int64\(6\) \* Int64\(68\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - + 86, 25 + 46 * + 49 AS col2, + ( 6 ) * 68 col2 +---- +-86 +2279 +408 query I rowsort label-9784 SELECT COUNT ( ALL 83 ) * - MAX ( 76 ) * 25 * - 92 + COALESCE ( + 70 + - COUNT ( * ) * + CAST ( NULL AS INTEGER ), + 84 ) @@ -51593,8 +52183,11 @@ SELECT 66 / 34 # 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 "Int64\(\-43\) / Int64\(31\) AS col1" at position 0 and "Int64\(85\) \+ Int64\(1\) \* Int64\(5\) \* Int64\(\-17\) \+ Int64\(\-75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 43 / 31 AS col1, + 85 + + 1 * ( ( + 5 ) ) * - 17 + - 75 AS col1 +---- +-1 +-75 query II rowsort label-9797 SELECT ALL MIN ( + 77 ) AS col0, 10 AS col2 @@ -51760,8 +52353,11 @@ SELECT + 71 - + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -2508 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "\(\- Int64\(76\)\) \* \(\- Int64\(\-33\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 AS col2, - ( + 76 ) * - - 33 AS col2 +---- +-2508 +58 query I rowsort SELECT ALL ( + 76 ) AS col1 @@ -51822,8 +52418,11 @@ SELECT - - 85 * 11 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 "Int64\(35\) AS col1" at position 0 and "Int64\(70\) / Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 35 AS col1, 70 / 64 AS col1 +---- +1 +35 query I rowsort SELECT DISTINCT + - ( - 71 ) @@ -51859,8 +52458,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 53849 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col1" at position 0 and "Int64\(34\) \* Int64\(40\) \+ Int64\(37\) \+ Int64\(62\) \* Int64\(94\) \* Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 97 AS col1, + 34 * 40 + + 37 + + 62 * + 94 * + 9 col1 +---- +53849 +97 query I rowsort label-9847 SELECT + - 42 * + + ( + + 71 ) + 99 * + - COUNT ( * ) * - 38 + + CAST ( NULL AS INTEGER ) * + 29 * 97 + - CAST ( + 12 AS INTEGER ) AS col0 @@ -52002,8 +52604,11 @@ SELECT + + ( - NULLIF ( - ( + 80 ), - + 78 + + - 20 + + + COUNT ( DISTINCT + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -672 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-97\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(50\) \+ Int64\(4\) \* Int64\(\-23\) \* Int64\(\-97\) AS col2" at position 0 and "\(\- Int64\(56\)\) \* min\(Int64\(12\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) + - 97 * - - CAST ( NULL AS INTEGER ) * 50 + 4 * + - 23 * - 97 col2, ( - ( 56 ) ) * MIN ( + 12 ) col2 +---- +-672 +NULL query I rowsort SELECT - 31 * - 28 AS col0 @@ -52202,8 +52807,11 @@ SELECT DISTINCT 14 - - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6643 # Datafusion - Expected - 41286 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* \(\- Int64\(91\)\) AS col2" at position 0 and "Int64\(0\) \+ Int64\(36\) \- Int64\(22\) \* Int64\(\-75\) \* Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 73 * - + 91 col2, + 0 + 36 - + 22 * - 75 * + ( + 25 ) AS col2 +---- +-6643 +41286 query I rowsort label-9912 SELECT + SUM ( DISTINCT - 48 ) AS col1 @@ -52259,8 +52867,11 @@ SELECT 86 * 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col0" at position 0 and "Int64\(71\) / Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 24 AS col0, 71 / 15 AS col0 +---- +-24 +4 query I rowsort label-9922 SELECT 1 + - 90 / - + NULLIF ( + COALESCE ( + - 62, + COUNT ( * ) ), + - 18 ) - - + 66 * - - 31 @@ -52470,8 +53081,11 @@ SELECT ALL + 52 * - + COUNT ( NULLIF ( - CAST ( - CAST ( - 71 AS INTEGER ) AS IN # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - -1342 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(83\)\) AS col0" at position 0 and "Int64\(61\) \* \(\- Int64\(22\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( ALL 83 ) AS col0, 61 * - + 22 AS col0 +---- +-1342 +83 query I rowsort SELECT DISTINCT 78 * 69 + 79 * + 75 diff --git a/data/sqlite/random/expr/slt_good_103.slt b/data/sqlite/random/expr/slt_good_103.slt index 83b1ee2..8fafb4f 100644 --- a/data/sqlite/random/expr/slt_good_103.slt +++ b/data/sqlite/random/expr/slt_good_103.slt @@ -71,8 +71,11 @@ SELECT - 38 + + ( + + 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "Int64\(55\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 55 AS col2, 55 * + ( + COUNT ( * ) ) AS col2 +---- +55 +55 query I rowsort label-7 SELECT ALL + COUNT ( DISTINCT 18 ) * - + 88 * - 61 + - 62 @@ -784,8 +787,11 @@ SELECT DISTINCT - NULLIF ( + 96, + + 42 ) * + - 19 + + 16 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 128 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ Int64\(99\) AS col1" at position 0 and "Int64\(\-62\) \- CAST\(CAST\(Int64\(17\) AS Float64\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 29 + 99 AS col1, - 62 - CAST ( CAST ( + 17 AS FLOAT8 ) AS INTEGER ) AS col1 +---- +-79 +128 query I rowsort label-142 SELECT ALL - 45 * COUNT ( + + 84 ) AS col1 @@ -816,8 +822,11 @@ SELECT + 25 * + 91 + - + 84 + + 90 * - 52 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-33\) AS col0" at position 0 and "Int64\(70\) \* Int64\(83\) / Int64\(38\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) + + - 33 AS col0, 70 * + + 83 / + 38 + - - CAST ( NULL AS INTEGER ) AS col0 +---- +-32 +NULL query I rowsort SELECT ALL ( - 95 ) + ( + 51 ) * + 68 - 42 @@ -1856,8 +1865,11 @@ SELECT - COALESCE ( - - 85, + 14 ) * - 11 * + 61 * + 16 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4216 # Datafusion - Expected - 167 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \* Int64\(\-62\) AS col0" at position 0 and "Int64\(92\) \+ Int64\(53\) \+ Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 68 * - 62 AS col0, + 92 + + 53 + 22 AS col0 +---- +167 +4216 query I rowsort label-344 SELECT CAST ( 22 AS INTEGER ) AS col0 @@ -2378,8 +2390,11 @@ SELECT ALL - 29 - - + 30 * COUNT ( * ) 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 "coalesce\(count\(Int64\(97\)\), \(\- Int64\(27\)\)\) AS col1" at position 0 and "Int64\(77\) / Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COALESCE ( COUNT ( 97 ), - + 27 ) col1, + 77 / 18 AS col1 +---- +1 +4 query I rowsort SELECT - 32 - - 19 * + 75 - + 56 + + + 75 * - - 60 * + 7 * - ( 44 ) / - + CASE - 35 WHEN + + 89 THEN NULL WHEN + 26 THEN 48 END AS col0 @@ -2459,8 +2474,11 @@ SELECT DISTINCT MAX ( ALL + 42 ) / 46 + - 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(48\) AS Int32\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + 48 AS INTEGER ) AS col1, + 42 AS col1 +---- +42 +48 query II rowsort label-459 SELECT ALL + 75 / - 40, + 82 * + 56 col1 @@ -3303,8 +3321,11 @@ SELECT DISTINCT 19 / 97 * + 78, 18 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col0" at position 0 and "Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 12 col0, - 76 AS col0 +---- +-12 +-76 query I rowsort label-618 SELECT ( COUNT ( * ) ) * 51 / - - 33 - + 53 + + 67 * - 54 @@ -3329,8 +3350,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 72 AS col1, COUNT ( * ) + + + 31 AS col1 +---- +-72 +32 query I rowsort label-623 SELECT COALESCE ( 15, - + 95 + + - 35 + 30 / 66 ) * NULLIF ( + + COUNT ( * ), - - 22 + 64 * + - 21 + 44 ) col0 @@ -3467,8 +3491,11 @@ SELECT - COUNT ( * ) + + + 62 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) / Int64\(23\) \* coalesce\(Int64\(\-85\), Int64\(48\)\) \* Int64\(16\) \* Int64\(32\) / \(\- CASE Int64\(56\) WHEN \(\- CAST\(NULL AS Int32\)\) \+ Int64\(57\) \* Int64\(14\) THEN \(\- count\(Int64\(10\)\)\) / Int64\(55\) \+ \(\- Int64\(17\)\) END\) \* Int64\(52\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(44\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +93 +NULL query I rowsort label-649 SELECT + 0 * + CASE + + 80 WHEN 62 + - 19 THEN + COALESCE ( + 31, - + 71, - COUNT ( * ) * - 40 * - 88 * + 17 ) END + 15 AS col0 @@ -4026,8 +4053,11 @@ SELECT + ( 82 ) * - 20 * + CAST ( - - COUNT ( * ) AS INTEGER ) + - 79 - + COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-95\) \+ \(\- count\(Int64\(91\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) * - 95 + - + COUNT ( + 91 ) AS col0 +---- +-96 +NULL query I rowsort SELECT - + 29 * + + 43 * + ( + - 25 ) AS col0 @@ -4273,8 +4303,11 @@ SELECT ALL + 79, - 25 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 415816 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(81\) \* Int64\(59\) \+ Int64\(43\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 87 * + 81 * + 59 + 43 AS col1, + 49 AS col1 +---- +415816 +49 query I rowsort label-801 SELECT - ( - CAST ( NULL AS INTEGER ) ) + + ( - COUNT ( * ) ) + - - 73 @@ -4514,8 +4547,11 @@ SELECT ( 6 ) - + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 23 AS col2, + COUNT ( * ) AS col2 +---- +1 +23 query I rowsort SELECT 11 + + 73 AS col0 @@ -5484,8 +5520,11 @@ SELECT ALL + - 45 + 23 + - 6 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col2, + 10 AS col2 +---- +1 +10 query I rowsort label-1034 SELECT ALL 23 + - 54 * + + 6 * + COALESCE ( ( COUNT ( * ) ), + CAST ( NULL AS INTEGER ), + - 47 ) @@ -5559,8 +5598,12 @@ SELECT - 58 * - + 79 * + + 43 * - 2 # Datafusion - Expected - -32 # Datafusion - Expected - 51 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- Int64\(32\)\)\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + SUM ( - + 32 ) AS col1, + 52 - COUNT ( * ), + + 65 col1 +---- +-32 +51 +65 query I rowsort label-1048 SELECT + COUNT ( + + 19 ) @@ -5750,8 +5793,11 @@ SELECT - 13 + - - 26 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2763900 # Datafusion - Expected - -2221 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* Int64\(37\) \* Int64\(\-15\) \* Int64\(\-60\) AS col2" at position 0 and "Int64\(90\) \+ Int64\(\-1\) \+ Int64\(37\) \* \(\- Int64\(59\)\) \+ Int64\(\-81\) \+ \(\- coalesce\(Int64\(73\), Int64\(\-98\) \* Int64\(20\) \+ Int64\(\-22\)\)\) \+ CAST\(\(\- Int64\(\-27\)\) AS Int32\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-2221 +2763900 query I rowsort label-1083 SELECT COALESCE ( + 2, + 90 + - + SUM ( - CAST ( NULL AS INTEGER ) ) ) + + - 79 @@ -5766,8 +5812,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ Int64\(35\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 + 35 AS col2, 34 AS col2 +---- +34 +90 query I rowsort SELECT ALL - 60 - + - 42 @@ -5798,8 +5847,11 @@ SELECT DISTINCT 82 * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \- Int64\(53\) AS col0" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* Int64\(96\) / Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 97 - + 53 AS col0, + CAST ( + COUNT ( * ) AS INTEGER ) * 96 / + - 45 col0 +---- +-2 +44 query I rowsort label-1092 SELECT CAST ( + 95 AS INTEGER ) / - 46 @@ -6020,8 +6072,11 @@ NULL # 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 col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 52 AS col0, + 80 AS col0 +---- +-52 +80 query II rowsort label-1134 SELECT - 13 * - + CASE - 70 WHEN 68 THEN - 91 WHEN 46 THEN NULL ELSE + COUNT ( + 92 ) + - - 43 + 57 END * - 16, + 84 AS col2 @@ -6116,8 +6171,11 @@ SELECT DISTINCT - 96 - - - 26 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + 14 ) AS col0, 88 AS col0 +---- +14 +88 query I rowsort label-1152 SELECT - COUNT ( * ) + 59 + 80 @@ -6299,8 +6357,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col2" at position 0 and "\(\- sum\(Int64\(\-72\)\)\) \+ \(\- Int64\(2\)\) \+ Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 AS col2, - SUM ( ALL - 72 ) + - + 2 + 19 AS col2 +---- +21 +89 query I rowsort SELECT DISTINCT ( + 32 ) @@ -7164,8 +7225,11 @@ SELECT 86 AS col2, - COUNT ( * ) * + - 62 # 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 "Int64\(78\) / Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 97 AS col2, 78 / + 86 AS col2 +---- +0 +97 query I rowsort label-1358 SELECT 69 / + 83 @@ -7456,8 +7520,11 @@ SELECT - + 68 + COUNT ( ALL NULLIF ( + ( + 93 ), - + 38 ) ) col0 # 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\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 55 AS col1, 83 AS col1 +---- +55 +83 query I rowsort label-1414 SELECT ALL - - 23 * + COALESCE ( - + 68, 50 + - 14 ) * + COUNT ( * ) AS col2 @@ -7851,8 +7918,11 @@ SELECT - NULLIF ( - + 45, - 4 + 50 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col0" at position 0 and "Int64\(3\) \+ \(\- \(\- count\(CAST\(NULL AS Int32\)\)\)\) / \(\- Int64\(\-47\)\) \+ Int64\(\-87\) \+ Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 41 AS col0, 3 + - - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) / - - 47 + - 87 + 31 AS col0 +---- +-41 +-53 query I rowsort SELECT ALL + 86 * + 98 AS col0 @@ -8159,8 +8229,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COALESCE ( - 70, - - 56, + MIN ( + - 99 ) ) AS col1, 43 + + 11 * - COUNT ( * ) AS col1 +---- +-70 +32 query I rowsort label-1550 SELECT + NULLIF ( - 54, 50 ) / 38 col2 @@ -8616,8 +8689,11 @@ SELECT + SUM ( DISTINCT 65 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) / Int64\(53\) \* Int64\(\-42\) AS col1" at position 0 and "\(\- CASE Int64\(63\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(15\) \+ \(\- CAST\(NULL AS Int32\)\) THEN NULL ELSE Int64\(\-84\) \- Int64\(\-19\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 52 / + 53 * - 42 AS col1, + ( - CASE + 63 WHEN - COUNT ( * ) * 15 + - CAST ( NULL AS INTEGER ) THEN NULL ELSE - 84 - + - 19 END ) AS col1 +---- +0 +65 query I rowsort SELECT ALL 70 * - - CASE 1 WHEN - - 51 THEN - 20 ELSE - 94 END * 45 @@ -9197,8 +9273,11 @@ SELECT ALL - 87 + 22 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 228 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "Int64\(\-6\) \* \(\- Int64\(38\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 AS col2, ( - 6 ) * - ( 38 ) col2 +---- +17 +228 query I rowsort SELECT DISTINCT - 78 + + - 32 @@ -9418,8 +9497,12 @@ SELECT - 47 + - 73 # Datafusion - Expected - 28 # Datafusion - Expected - 88 # Datafusion - Expected - 4047 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) \+ Int64\(74\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 46 + 74 AS col2, + 88 AS col2, + - 3 + - - 75 * 54 AS col2 +---- +28 +4047 +88 query I rowsort label-1789 SELECT + NULLIF ( - 34, + 33 ) + + CAST ( + - ( + ( + ( + + 28 ) ) ) AS INTEGER ) + + 54 col0 @@ -9454,8 +9537,11 @@ SELECT + 69 + - + 12 - + 29 - - - MAX ( - 60 ) * + + 97 * + COALESCE ( + - COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 5344 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(29\)\) AS col2" at position 0 and "Int64\(67\) \* Int64\(80\) \- Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( 29 ) AS col2, + 67 * + 80 - + + 16 AS col2 +---- +1 +5344 query I rowsort label-1796 SELECT + 45 + - - CASE - 24 WHEN 28 * + + COUNT ( * ) + - 11 + ( - 49 ) THEN - 2 WHEN - + 10 THEN NULL WHEN + 19 THEN NULL ELSE COUNT ( * ) END * 13 col1 @@ -9519,8 +9605,11 @@ SELECT ALL + CAST ( 73 AS INTEGER ), - 11 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3456 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) \* Int64\(\-48\) AS col2" at position 0 and "Int64\(\-40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 72 * - 48 AS col2, - 40 col2 +---- +-40 +3456 query I rowsort label-1808 SELECT - SUM ( + + 92 ) / - + 52 * CASE + COUNT ( * ) WHEN - 41 + - 68 / MAX ( ALL - 9 ) THEN NULL WHEN COUNT ( * ) THEN 99 ELSE NULL END / + 74 + - + CAST ( NULLIF ( + COUNT ( * ), - CASE + 72 WHEN CAST ( NULL AS INTEGER ) + 50 THEN 70 * - 31 + - 1 * 92 WHEN 43 * - MAX ( DISTINCT 99 ) THEN 21 / 53 ELSE NULL END * - 96 ) AS INTEGER ) @@ -9611,8 +9700,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 AS col1, - COUNT ( * ) + - 94 AS col1 +---- +-95 +16 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -9840,8 +9932,11 @@ SELECT ALL 22 * 39 # 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\(3\) \+ Int64\(\-90\) AS col2" at position 0 and "Int64\(86\) \+ Int64\(66\) \+ \(\- Int64\(67\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 + - 90 AS col2, + 86 + + 66 + - + 67 AS col2 +---- +-87 +85 query I rowsort SELECT 6 - + 85 @@ -10056,8 +10151,11 @@ SELECT - 69 - ( - + SUM ( DISTINCT + 5 ) ) # 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 "Int64\(36\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 AS col1, + 11 AS col1 +---- +11 +36 query I rowsort SELECT - 49 * 93 + 79 @@ -10346,8 +10444,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) - - - 4 col0, + COUNT ( * ) * 42 - COUNT ( DISTINCT + 89 ) * - 3 AS col0 +---- +-3 +45 query I rowsort SELECT - 51 * - 37 AS col1 @@ -10974,8 +11075,11 @@ SELECT + COALESCE ( + COUNT ( * ), - 46 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 1 AS col0, + COUNT ( * ) AS col0 +---- +-1 +1 query I rowsort SELECT ALL + 90 * - + 44 AS col2 @@ -11050,8 +11154,12 @@ SELECT ALL + CAST ( - 79 AS INTEGER ) * + 45 AS col2 # Datafusion - Expected - 7 # Datafusion - Expected - 28 # Datafusion - Expected - -5411 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 7 AS col1, 28 AS col1, - + 58 * COUNT ( * ) * + 94 + - - 42 - + COUNT ( - + 39 ) AS col0 +---- +-5411 +28 +7 query II rowsort label-2097 SELECT - - COUNT ( * ) AS col1, 50 * - COUNT ( * ) @@ -11538,8 +11646,11 @@ 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\(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\. +query II valuesort SELECT NULLIF ( - - 47, - 49 * - - COUNT ( * ) ) / + + 81 col1, 54 * + COUNT ( * ) - - CASE - + ( - - 53 ) WHEN + 3 THEN + - 65 ELSE NULL END + - 37 AS col1 +---- +0 +NULL query I rowsort SELECT ALL - - 68 col1 @@ -12006,8 +12117,11 @@ SELECT - 62 * 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 107 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(41\) AS Int32\)\) AS col1" at position 0 and "Int64\(61\) \+ CAST\(Int64\(46\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - CAST ( + 41 AS INTEGER ) ) AS col1, 61 + CAST ( + + 46 AS INTEGER ) AS col1 +---- +-41 +107 query I rowsort label-2280 SELECT DISTINCT CAST ( - + 95 AS INTEGER ) AS col0 @@ -12148,8 +12262,12 @@ SELECT - MIN ( DISTINCT - 39 ) # Datafusion - Expected - 88 # Datafusion - Expected - 1852 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) \- Int64\(\-23\) \* \(\- Int64\(\-83\)\) AS col1" at position 1 and "coalesce\(Int64\(8\), Int64\(\-63\) \+ Int64\(46\), Int64\(29\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 21 + MAX ( 67 ) AS col0, - 57 - - 23 * - - 83 AS col1, COALESCE ( + 8, - 63 + + + 46, 29 ) AS col1 +---- +1852 +8 +88 query I rowsort SELECT ALL 34 + 89 AS col2 @@ -12562,8 +12680,11 @@ SELECT ALL 31 + - + 9 - + 19 # 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 "Int64\(83\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 83 AS col1, 88 AS col1 +---- +83 +88 query I rowsort SELECT ALL ( + 16 ) * - ( + 73 ) * ( - 55 ) * - - 5 @@ -12598,8 +12719,11 @@ SELECT ALL ( + 6 ) * + 59 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, 85 AS col1 +---- +1 +85 query II rowsort label-2392 SELECT ALL - COUNT ( - - 95 ), - 7 + 17 AS col0 @@ -12646,8 +12770,11 @@ SELECT - - 73 * - 68 - - COUNT ( + 94 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3064 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(14\)\) \* Int64\(\-6\) \* Int64\(59\) \+ Int64\(\-86\) \* Int64\(22\) AS col0" at position 0 and "\(\- CASE Int64\(91\) WHEN coalesce\(Int64\(95\), Int64\(97\) \* Int64\(\-49\) \* Int64\(\-64\)\) THEN NULL ELSE \(\- Int64\(\-17\)\) END\) \+ Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + 14 ) * - 6 * + 59 + - 86 * + 22 AS col0, - CASE + 91 WHEN + COALESCE ( 95, + 97 * - 49 * - 64 ) THEN NULL ELSE - - 17 END + + 34 AS col0 +---- +17 +3064 query I rowsort SELECT + 43 + + + ( + + 49 ) @@ -12719,8 +12846,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - -2277 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(59\)\) AS col0" at position 0 and "Int64\(59\) \- \(\- \(\- \(\- Int64\(\-73\)\)\)\) \* Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - + 59 ) AS col0, 59 - - - ( - - 73 ) * + 32 AS col0 +---- +-2277 +-59 query I rowsort SELECT - 80 + + 10 AS col2 @@ -12903,8 +13033,11 @@ SELECT 0 * + 19 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -3761 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) / Int64\(26\) AS col1" at position 0 and "Int64\(66\) \* \(\- Int64\(57\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 36 ) / + 26 AS col1, + 66 * - + 57 + + COUNT ( * ) AS col1 +---- +-3761 +1 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -12975,8 +13108,11 @@ SELECT ALL - 27 * + 77 + + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 119808 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(\-26\) \* Int64\(48\) \* \(\- coalesce\(Int64\(96\), Int64\(62\) \+ Int64\(92\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 0 + - 26 * + 48 * - + COALESCE ( 96, ( 62 ) + 92 ) AS col2, ( COUNT ( * ) ) AS col2 +---- +1 +119808 query I rowsort SELECT DISTINCT - 94 * - 70 @@ -13029,8 +13165,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 33 AS col2, COUNT ( * ) col2 +---- +-33 +1 query I rowsort label-2474 SELECT - SUM ( - 78 ) @@ -13619,8 +13758,11 @@ SELECT DISTINCT NULLIF ( + NULLIF ( 90, + + 89 ), - COUNT ( * ) ) + COUNT ( + ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - 1323 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \+ \(\- \(\- Int64\(\-92\)\)\) AS col1" at position 0 and "Int64\(21\) \* Int64\(63\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 + - - ( + - 92 ) AS col1, + 21 * 63 * + COUNT ( * ) AS col1 +---- +-89 +1323 query I rowsort label-2587 SELECT ALL MIN ( DISTINCT 27 ) - 7 / + 65 @@ -13653,8 +13795,12 @@ SELECT ALL MIN ( - 63 ) - + - 10 + MIN ( ALL - 12 ) AS col2, - 94 # Datafusion - Expected - 576 # Datafusion - Expected - 88 # Datafusion - Expected - -6767 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* Int64\(36\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 16 * 36 col2, + 88 AS col2, + 76 * + - 88 + - 79 +---- +-6767 +576 +88 query II rowsort label-2593 SELECT 38 + 96, + 95 + COUNT ( * ) AS col2 @@ -13808,8 +13954,11 @@ SELECT ALL - ( + 60 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(95\) AS Int32\) AS col1" at position 0 and "Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + CAST ( + 95 AS INTEGER ) AS col1, - 58 AS col1 +---- +-58 +95 query I rowsort SELECT - 58 * 68 AS col0 @@ -14129,8 +14278,11 @@ SELECT + + 10 * - + ( 20 ) AS col1 # 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 "Int64\(\-3\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 3 ) AS col2, 33 AS col2 +---- +-3 +33 query I rowsort SELECT + 61 * 65 AS col2 @@ -14410,8 +14562,11 @@ SELECT ALL + 48 - + 14 * 65 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7840 # Datafusion - Expected - -216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* Int64\(\-80\) AS col2" at position 0 and "Int64\(8\) \* Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 * + - 80 AS col2, 8 * - 27 AS col2 +---- +-216 +-7840 query I rowsort SELECT - 54 + - 43 col2 @@ -15532,8 +15687,11 @@ SELECT + 11 AS col2, 9 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- coalesce\(Int64\(\-84\), Int64\(\-8\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(66\)\)\) \+ Int64\(80\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, - COALESCE ( - 84, ( - 8 ), + COUNT ( * ) + 66 ) + 80 * - CAST ( NULL AS INTEGER ) AS col2 +---- +-1 +NULL query I rowsort label-2951 SELECT COALESCE ( - 58, - - MIN ( - 4 ), 80 * 62 ) AS col0 @@ -15670,8 +15828,11 @@ SELECT ALL COUNT ( * ) + + + 21 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \+ 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 II valuesort SELECT + 72 + 1 AS col2, 19 AS col2 +---- +19 +73 query I rowsort label-2978 SELECT DISTINCT COALESCE ( - - 3, 6 ) * - SUM ( + CAST ( ( + ( 46 ) ) AS INTEGER ) ) * - 95 @@ -15706,8 +15867,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 9240 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* \(\- Int64\(\-63\)\) AS col2" at position 0 and "Int64\(8\) \* Int64\(21\) \* Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 0 * - - 63 AS col2, 8 * + 21 * 55 AS col2 +---- +0 +9240 query I rowsort label-2985 SELECT + MIN ( ALL - - 34 ) AS col2 @@ -16109,8 +16273,11 @@ SELECT - + CAST ( + 62 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(87\) AS col0" at position 0 and "\(\- CAST\(\(\- Int64\(35\)\) AS Int32\)\) \+ Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 87 AS col0, - CAST ( - + ( 35 ) AS INTEGER ) + 62 AS col0 +---- +97 +NULL query I rowsort label-3062 SELECT ALL 52 / - 63 AS col1 @@ -16140,8 +16307,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - COUNT ( * ) AS col1, + 72 AS col1 +---- +1 +72 query I rowsort label-3068 SELECT ALL - 10 + + COUNT ( * ) AS col2 @@ -16356,8 +16526,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "Int64\(\-78\) / Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 71 AS col1, - 78 / 89 AS col1 +---- +0 +71 query I rowsort label-3110 SELECT CASE - COUNT ( * ) WHEN + 44 THEN 13 END @@ -17071,8 +17244,11 @@ SELECT ALL 26 + + 63, - 12 + + ( - ( CAST ( 25 AS INTEGER ) ) ) * - 35 + - + SUM # 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\) \+ Int64\(\-16\) AS col2" at position 0 and "Int64\(\-2\) / Int64\(\-65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 + - 16 AS col2, - 2 / - 65 AS col2 +---- +-8 +0 query I rowsort label-3246 SELECT DISTINCT + ( + 2 ) / + 26 * + 38 AS col0 @@ -17201,8 +17377,11 @@ SELECT - COALESCE ( + - 25, + - COUNT ( * ) + + 18, + - 72 * + 48 - - 48, 60 ) / # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-26\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 49 + + COUNT ( * ) / + - 26 AS col0, COUNT ( * ) AS col0 +---- +-49 +1 query I rowsort SELECT - 8 * + 21 @@ -18080,8 +18259,11 @@ SELECT ALL - + ( 80 ), + 85 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 28 AS col2, + 67 AS col2 +---- +-28 +67 query II rowsort SELECT 81, + 54 AS col0 @@ -18160,8 +18342,11 @@ SELECT + 4 AS col0, COUNT ( * ) + + ( - 24 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -66042 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* \(\- \(\- min\(DISTINCT CAST\(NULL AS Int32\)\)\)\) AS col2" at position 0 and "Int64\(66\) \* Int64\(\-54\) \+ Int64\(\-13\) \* Int64\(54\) \* Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 19 * - - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2, + 66 * + - 54 + - 13 * 54 * + 89 AS col2 +---- +-66042 +NULL query I rowsort SELECT ALL 78 + - 4 AS col1 @@ -18587,8 +18772,11 @@ SELECT ALL - 72 * - - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63648 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \* Int64\(24\) \* \(\- Int64\(\-78\)\) AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 34 * + 24 * - - 78 AS col1, 90 AS col1 +---- +-63648 +90 query I rowsort label-3534 SELECT - CAST ( 37 AS INTEGER ) @@ -18623,8 +18811,11 @@ SELECT 70 * + 31 * + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 73 -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\(53\)\)\) \+ Int64\(\-8\) \+ Int64\(39\) \+ Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 75 AS col0, - COUNT ( ALL 53 ) + - 8 + + 39 + 43 AS col0 +---- +-75 +73 query II rowsort label-3540 SELECT - 32 AS col1, 18 + + + 81 - 21 * - - NULLIF ( + COUNT ( * ), + 87 + + 83 ) @@ -18660,8 +18851,11 @@ SELECT - COUNT ( * ) / - 14 - NULLIF ( + 10, + CAST ( - 15 AS INTEGER ) / - 41 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(77\), Int64\(\-67\), \(\- min\(\(\- Int64\(\-64\)\)\)\) \- Int64\(3\) \+ Int64\(\-50\) \+ Int64\(\-61\)\)\) AS col0" at position 0 and "Int64\(48\) \+ Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COALESCE ( + 77, + - 67, + - MIN ( + ( - - 64 ) ) - + 3 + - 50 + - 61 ) AS col0, 48 + 12 AS col0 +---- +-77 +60 query II rowsort label-3547 SELECT 14 / + + COALESCE ( + NULLIF ( 81, + - 55 ), + COUNT ( * ) * 10 + 37 + - - 52 * ( + 96 ) + COUNT ( ALL + 31 ) + - - COUNT ( * ) * 95, 63 ) AS col1, + COALESCE ( 57, - MIN ( DISTINCT 7 ) ) @@ -18744,8 +18938,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 43 AS col0, 33 + + COUNT ( * ) + + + 47 AS col0 +---- +-43 +81 query II rowsort label-3563 SELECT + 29 AS col2, + 17 + - CAST ( NULL AS INTEGER ) + - 35 + - 20 @@ -19564,8 +19761,11 @@ SELECT - 14 + + COUNT ( * ) * + 8 * ( - 58 ) + - + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1188 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) \* Int64\(18\) \* \(\- count\(Int64\(\-7\)\)\) AS col0" at position 0 and "Int64\(\-79\) / \(\- min\(Int64\(\-23\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 66 * 18 * - COUNT ( - 7 ) AS col0, - 79 / - MIN ( - 23 ) AS col0 +---- +-3 +1188 query I rowsort SELECT + 58 * - 46 * - 19 @@ -19757,8 +19957,11 @@ SELECT DISTINCT + COUNT ( * ) * + 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CASE WHEN NOT Int64\(56\) NOT IN \(\[Int64\(60\) \- Int64\(90\) \+ CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* Int64\(72\) \* Int64\(62\), Int64\(12\)\]\) THEN Int64\(\-65\) \* Int64\(39\) END\) \+ Int64\(7\) \+ Int64\(\-69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-74 +NULL query I rowsort label-3754 SELECT + 36 * + 26 + 20 * - + 22 + + + 93 * + + COUNT ( * ) AS col0 @@ -19844,8 +20047,11 @@ SELECT + 73 + + 43 / 18 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 116032 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* Int64\(37\) \* 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 II valuesort SELECT + 32 * 37 * + 98 AS col2, ( 42 ) AS col2 +---- +116032 +42 query I rowsort label-3770 SELECT + MIN ( DISTINCT 43 ) @@ -20756,8 +20962,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) col1, MAX ( DISTINCT - 81 ) AS col1 +---- +-1 +-81 query I rowsort SELECT ALL 54 * - 90 @@ -21070,8 +21279,11 @@ SELECT DISTINCT CAST ( - ( 29 ) AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -105840 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \* Int64\(\-48\) \* \(\- Int64\(49\)\) AS col0" at position 0 and "\(\- min\(Int64\(\-11\)\)\) \- Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 45 * - 48 * - + 49 AS col0, - MIN ( - 11 ) - 9 AS col0 +---- +-105840 +2 query I rowsort SELECT DISTINCT ( + 51 ) AS col1 @@ -21112,8 +21324,11 @@ SELECT - COUNT ( * ) AS col1, 93 + - - 59 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 2 col2, 6 col2 +---- +2 +6 query I rowsort SELECT ALL + 28 * - 94 AS col1 @@ -21496,8 +21711,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\)\) \* Int64\(2\) \+ count\(\(\- CAST\(NULL AS Float64\)\)\) AS col2" at position 0 and "Int64\(51\) \- count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - CAST ( - + COUNT ( * ) AS INTEGER ) * + 2 + + + COUNT ( - CAST ( NULL AS FLOAT8 ) ) AS col2, 51 - + + COUNT ( * ) - - 97 AS col2 +---- +-2 +147 query I rowsort label-4083 SELECT 65 / 10 + 60 * + 70 AS col1 @@ -22088,8 +22306,11 @@ SELECT DISTINCT 69 * COALESCE ( ( + 53 ), + 71 + + 58 + + MIN ( 92 ) + + 25 + - # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1035 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(coalesce\(Int64\(\-12\), Int64\(\-15\), Int64\(23\) \+ Int64\(48\)\), Int64\(26\) / Int64\(41\) \+ Int64\(23\)\) \* \(\- \(\- Int64\(12\)\)\) \* CASE \(\- Int64\(\-33\)\) WHEN CAST\(\(\- Int64\(\-65\)\) AS Int32\) THEN NULL ELSE Int64\(0\) / CAST\(NULL AS Int32\) \- Int64\(16\) \+ Int64\(41\) \* Int64\(31\) / Int64\(59\) \* Int64\(\-91\) \* Int64\(86\) \* Int64\(54\) END \* Int64\(26\) / min\(Int64\(49\)\) \- Int64\(24\) AS col0" at position 0 and "Int64\(23\) \* Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL NULLIF ( COALESCE ( - 12, - 15, 23 + + 48 ), + 26 / 41 + ( + + 23 ) ) * - - ( + 12 ) * + CASE - - 33 WHEN CAST ( - - 65 AS INTEGER ) THEN NULL ELSE 0 / + CAST ( NULL AS INTEGER ) - + 16 + + 41 * 31 / + + 59 * - 91 * + 86 * 54 END * + 26 / MIN ( 49 ) - + 24 AS col0, 23 * 45 AS col0 +---- +1035 +NULL query I rowsort label-4193 SELECT COALESCE ( - COUNT ( * ), 30, + - 20 ) / + 6 @@ -22168,8 +22389,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 66 * + + NULLIF ( 39, - + 65 ) AS col0, - COUNT ( * ) AS col0 +---- +-1 +-2574 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -22373,8 +22597,11 @@ 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\(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\. +query RI valuesort 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 +---- +-4712 +118 query I rowsort label-4246 SELECT - - COUNT ( * ) * - 65 * + ( 18 ) @@ -22735,8 +22962,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 65 - + COALESCE ( + ( + 81 ), COUNT ( * ) - - 14 + 99 ) * + + 97 AS col1, - 66 AS col1 +---- +-66 +-7922 query I rowsort SELECT + 48 + + 10 AS col0 @@ -23361,8 +23591,11 @@ SELECT ALL + - 66 - + ( 92 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - -745 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col0" at position 0 and "\(\- sum\(Int64\(15\)\)\) \* Int64\(52\) \+ \(\- Int64\(\-35\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 32 col0, - SUM ( + 15 ) * + 52 + - - 35 AS col0 +---- +-32 +-745 query I rowsort label-4432 SELECT ALL - + 53 / - 36 @@ -23567,8 +23800,11 @@ SELECT DISTINCT - 2 / + + 55 + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(90\) \+ count\(Int64\(1\)\) AS count\(\*\) \* nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(68\) \* Int64\(99\) \* Int64\(\-20\)\) \+ \(\- Int64\(\-39\)\) / min\(Int64\(\-8\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) col0, 90 + COUNT ( * ) * + + NULLIF ( + COUNT ( * ), 68 * 99 * - 20 ) + - - 39 / + MIN ( ALL - 8 ) AS col0 +---- +87 +NULL query I rowsort SELECT DISTINCT + 16 * - + 38 @@ -23619,8 +23855,11 @@ SELECT NULLIF ( + + 74, + 0 * + 39 - - 57 / + - 98 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, 79 col2 +---- +1 +79 query II rowsort SELECT DISTINCT 99, 55 AS col1 @@ -24373,8 +24612,11 @@ SELECT ALL + COALESCE ( + CASE + COUNT ( * ) WHEN - 68 THEN NULL WHEN 99 * - 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3960 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* Int64\(\-40\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 * - 40 AS col0, 8 AS col0 +---- +-3960 +8 query I rowsort label-4627 SELECT 73 / 21 + - 9 @@ -24984,8 +25226,11 @@ 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\(1\)\) AS count\(\*\), Int64\(33\) \* Int64\(28\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 10 + - 63 AS col2, COALESCE ( - 26, - 95, + COUNT ( * ), + 33 * + 28 ) AS col2 +---- +-26 +-73 query I rowsort label-4744 SELECT - + ( - CAST ( - + 69 AS INTEGER ) ) AS col1 @@ -25639,8 +25884,11 @@ SELECT ALL + 92 AS col2, 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(36\) \+ max\(\(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 60 * + CAST ( NULL AS INTEGER ) AS col1, + 36 + + MAX ( - + CAST ( NULL AS INTEGER ) ) AS col1 +---- +NULL +NULL query II rowsort SELECT + 66, - COALESCE ( + + 88, - + 95 ) - + 39 + - ( + 33 ) AS col2 @@ -25652,8 +25900,12 @@ SELECT + 66, - COALESCE ( + + 88, - + 95 ) - + 39 + - ( + 33 ) AS col2 # Datafusion - Expected - 18 # Datafusion - Expected - 6 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "Int64\(19\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ( 18 ) AS col0, + 6 * - 30 + - - 38 - + + 4 * - + 37, 19 AS col0 +---- +18 +19 +6 query II rowsort SELECT + 69, + 62 AS col0 @@ -25873,8 +26125,11 @@ SELECT ALL - NULLIF ( 23, 67 ) / + 91 + - - 35 - + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \+ \(\- Int64\(4\)\) \- \(\- sum\(DISTINCT Int64\(65\)\)\) \* Int64\(2\) \- Int64\(49\) \- Int64\(46\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 59 + - + 4 - - SUM ( DISTINCT 65 ) * + 2 - 49 - + 46 AS col1, COUNT ( * ) AS col1 +---- +1 +90 query II rowsort label-4914 SELECT ALL + 66 + + 82 AS col1, + COUNT ( * ) @@ -26108,8 +26363,11 @@ SELECT + 28 + - + 80 * - + 55 / - - MIN ( DISTINCT - 55 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "Int64\(\-45\) \+ \(\- coalesce\(\(\- max\(\(\- Int64\(\-61\)\)\)\), CASE Int64\(63\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(58\) THEN count\(Int64\(1\)\) AS count\(\*\) ELSE Int64\(56\) \+ Int64\(\-31\) END \* CAST\(Int64\(68\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +16 +31 query I rowsort label-4958 SELECT - COALESCE ( 44, ( + 66 ) + 24 ) + - - COUNT ( * ) + + + 1 * 80 * + + COALESCE ( 56, + 27, - 47 / + 22 / COUNT ( * ) ) @@ -26352,8 +26610,11 @@ 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\(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\. +query II valuesort SELECT ALL - + 2 * - COUNT ( * ) + + ( 41 ) AS col1, 53 AS col1 +---- +43 +53 query I rowsort SELECT ALL - 55 * 97 * + 94 + + 96 * + CASE - 7 WHEN - 75 THEN - 37 * - + 81 WHEN - 17 - 79 / - - 77 THEN NULL END @@ -26488,8 +26749,11 @@ SELECT DISTINCT - 93 / + + COUNT ( * ) / - ( - COUNT ( * ) ) * + - COUNT ( * ) A # Datafusion - Datafusion expected results: # Datafusion - Expected - 135 # Datafusion - Expected - 2491 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \- \(\- Int64\(97\)\) AS col0" at position 0 and "Int64\(53\) \* Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 38 - - + 97 AS col0, 53 * 47 AS col0 +---- +135 +2491 query I rowsort label-5032 SELECT ALL - 84 / - 79 AS col0 @@ -26516,8 +26780,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 17 AS col1, 4 * + 88 + COUNT ( * ) / ( + 12 ) AS col1 +---- +-17 +352 query I rowsort SELECT 43 + + - 94 @@ -26553,8 +26820,11 @@ SELECT 71 + + + 39 + 76 + + MIN ( DISTINCT 12 ) * + 9 * - SUM ( - 69 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(6\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 3 * + 6 AS col2, 94 AS col2 +---- +18 +94 query II rowsort SELECT ALL - 16 AS col0, 19 + 84 @@ -26652,8 +26922,11 @@ SELECT DISTINCT + 73 + 50 AS col1 # 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 "sum\(Int64\(32\)\) AS col0" at position 0 and "Int64\(\-31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( + 32 ) AS col0, - 31 col0 +---- +-31 +32 query I rowsort label-5062 SELECT - COUNT ( * ) * CAST ( + + 27 AS INTEGER ) - + 40 * + 7 * + + 88 + - 38 + CAST ( - 10 AS INTEGER ) * + 32 * - 66 + + 42 + - 27 @@ -26673,8 +26946,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) - - + 22 * + + 39 AS col1, - ( + 55 ) AS col1 +---- +-55 +859 query I rowsort SELECT ALL 25 * 75 * 30 @@ -26727,8 +27003,11 @@ SELECT + 99 * ( + 58 ) * + 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) / \(\- Int64\(56\)\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 44 / - + 56 AS col2, 97 AS col2 +---- +0 +97 query I rowsort label-5076 SELECT - COALESCE ( + + 9, 0 + + + CAST ( NULL AS INTEGER ) ) AS col0 @@ -26855,8 +27134,11 @@ 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\(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\. +query II valuesort SELECT - 71 - - 65 * 48 + + 84 col0, 55 * NULLIF ( + COUNT ( * ), - 42 - + + 92 - + COUNT ( * ) ) / 44 + + + 46 AS col0 +---- +3133 +47 query I rowsort label-5100 SELECT ALL + 48 / ( - 38 ) * 20 + - - 75 / 53 AS col2 @@ -27105,8 +27387,11 @@ 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\(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\. +query II valuesort 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 +---- +25 +9 query I rowsort SELECT 22 * 74 AS col2 @@ -27284,8 +27569,11 @@ SELECT + CASE 39 WHEN + 44 THEN + + 45 * - + 60 * - - 95 * + - 91 * - + CAST ( N # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\)" at position 0 and "Int64\(32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 32, 32 +---- +32 +32 query I rowsort SELECT ALL 75 - - 83 @@ -27416,8 +27704,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 59 ) AS col2, 17 * + 48 - - COUNT ( * ) AS col2 +---- +-59 +817 query II rowsort label-5208 SELECT + COUNT ( NULLIF ( + + 53, - ( - + 51 ) * + 31 * - 63 + - CAST ( - - 78 AS FLOAT8 ) - CAST ( NULL AS INTEGER ) ) ) AS col1, + 13 AS col0 @@ -27455,8 +27746,11 @@ SELECT ALL + ( 87 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3264 # Datafusion - Expected - 1599 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* Int64\(51\) AS col0" at position 0 and "Int64\(44\) \* Int64\(36\) \+ Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 64 * + 51 AS col0, 44 * + 36 + + + 15 col0 +---- +1599 +3264 query I rowsort label-5215 SELECT - 83 * - MIN ( DISTINCT - 6 ) + + 71 AS col1 @@ -27542,8 +27836,11 @@ SELECT ALL 65 + 31 + + NULLIF ( - 15, - 59 / - 67 + - 44 + + - 61 / 72 + + - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(79\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 + + COUNT ( * ) AS col1, COUNT ( + + 79 ) - + COUNT ( * ) AS col1 +---- +0 +97 query I rowsort label-5231 SELECT + COUNT ( * ) + - 77 AS col1 @@ -27656,8 +27953,11 @@ SELECT 31 + 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(18\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + 18 ) * + COUNT ( * ) AS col2, 74 AS col2 +---- +-18 +74 query I rowsort label-5253 SELECT 32 - - + 57 + MAX ( 73 ) * + COUNT ( * ) * - 42 AS col2 @@ -27746,8 +28046,11 @@ SELECT + 46 / + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \+ \(\- \(\- CAST\(Int64\(\-94\) AS Int32\)\)\) AS col0" at position 0 and "\(\- CASE Int64\(\-3\) WHEN Int64\(\-50\) THEN Int64\(93\) ELSE NULL END\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 82 + - - CAST ( - 94 AS INTEGER ) AS col0, - CASE - 3 WHEN - 50 THEN + 93 ELSE NULL END + - COUNT ( * ) AS col0 +---- +-12 +NULL query I rowsort label-5269 SELECT DISTINCT + 65 / COUNT ( * ) @@ -27778,8 +28081,11 @@ SELECT MIN ( ALL 30 ) * - - CAST ( 27 AS INTEGER ) * 58 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 140 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ Int64\(80\) AS col1" at position 0 and "Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 60 + + 80 AS col1, - 79 AS col1 +---- +-79 +140 query I rowsort label-5275 SELECT 16 * ( - MAX ( + - 17 ) ) AS col0 @@ -28840,8 +29146,11 @@ SELECT ALL + COUNT ( * ) - - COUNT ( * ) + + 50 AS col2, 69 * + - 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 18 col2, + 38 AS col2 +---- +18 +38 query I rowsort SELECT 34 * - - ( + + 53 ) col1 @@ -29917,8 +30226,11 @@ SELECT ALL - 60 * + 80 * - 64 * + 37 * + 44 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 3572 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "Int64\(3\) \+ Int64\(83\) \* Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 41 AS col1, + 3 + 83 * + 43 AS col1 +---- +3572 +41 query I rowsort label-5677 SELECT + + MIN ( ALL + 66 ) @@ -30057,8 +30369,11 @@ 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\(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\. +query II valuesort 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 +---- +36 +NULL query I rowsort SELECT - ( + - 79 ) * 73 AS col2 @@ -30257,8 +30572,11 @@ SELECT ALL - - SUM ( DISTINCT ( - ( 86 ) ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5591 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \* min\(Int64\(\-67\)\) \- Int64\(37\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 84 * + MIN ( + - 67 ) - + 37 AS col0, + CAST ( NULL AS INTEGER ) AS col0 +---- +5591 +NULL query II rowsort label-5742 SELECT ALL - 58, 10 * + + CAST ( + COALESCE ( - 66, - CASE - + MAX ( + - 51 ) WHEN - 19 + - 17 THEN + - 4 ELSE 82 + 70 + COUNT ( * ) END * + + 87 * + 91 + + 99 * 70 / - 17 * + 1 + 40, CAST ( + COUNT ( * ) AS INTEGER ) + - 27 ) AS INTEGER ) + + + CASE - 52 WHEN 89 + - 95 THEN + CAST ( + + 66 AS INTEGER ) ELSE - + 27 END AS col0 @@ -30507,8 +30825,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col0, ( 23 ) AS col0 +---- +1 +23 query I rowsort SELECT DISTINCT ( - ( 64 ) ) @@ -30765,8 +31086,11 @@ SELECT - + 23, + 68 AS col2 # 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 col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 AS col1, 94 AS col1 +---- +25 +94 query I rowsort label-5839 SELECT - + ( - + CAST ( - 59 AS INTEGER ) ) @@ -31019,8 +31343,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 195 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ Int64\(\-98\) \+ Int64\(44\) AS col0" at position 0 and "max\(Int64\(42\)\) \+ Int64\(81\) \+ \(\- Int64\(\-72\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 16 + - 98 + + + 44 AS col0, ( MAX ( + 42 ) ) + 81 + - - 72 AS col0 +---- +-38 +195 query I rowsort SELECT + NULLIF ( 65, 63 ) @@ -31344,8 +31671,12 @@ SELECT 64 * + - 0 AS col0 # Datafusion - Expected - 488646 # Datafusion - Expected - 79 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \- Int64\(87\) \* Int64\(\-78\) \* Int64\(72\) \- Int64\(\-96\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(Int64\(79\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 42 - + 87 * - 78 * + 72 - - 96 / + COUNT ( * ) AS col0, CAST ( 79 AS INTEGER ) AS col0, + 61 +---- +488646 +61 +79 query I rowsort label-5950 SELECT DISTINCT - + 6 / - 61 @@ -31599,8 +31930,11 @@ SELECT ALL + COUNT ( * ) + + + 50 # 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\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 58 AS col2, + 74 col2 +---- +-58 +74 query I rowsort label-5997 SELECT - 46 + - SUM ( DISTINCT 86 ) AS col1 @@ -32762,8 +33096,11 @@ SELECT 18 col0, COUNT ( * ) * + 72 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 58 AS col0, - 76 AS col0 +---- +-76 +58 query I rowsort label-6219 SELECT 66 - - + 11 + - 79 / - 90 @@ -33293,8 +33630,11 @@ SELECT 72 * + 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 59 AS col1, 62 AS col1 +---- +-59 +62 query I rowsort label-6323 SELECT ALL + SUM ( DISTINCT + CAST ( 30 AS INTEGER ) ) + 78 AS col0 @@ -33422,8 +33762,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col0, - COUNT ( * ) + + 46 AS col0 +---- +-1 +45 query I rowsort SELECT DISTINCT 70 * + 67 AS col1 @@ -33458,8 +33801,11 @@ SELECT 95 + 47 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\(69\) \+ Int64\(\-91\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 + - 91 AS col1, 20 AS col1 +---- +-22 +20 query I rowsort SELECT 11 + 80 + - 84 + - 7 * - + 25 + + + 43 * 52 AS col0 @@ -33568,8 +33914,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(18\)\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( 18 ) AS col0, 97 AS col0 +---- +1 +97 query I rowsort SELECT - - COALESCE ( + - 40, - 67, - ( 17 ) ) @@ -33708,8 +34057,11 @@ SELECT + 19 * 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "Int64\(\-27\) \+ Int64\(\-34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 45 AS col0, - 27 + - 34 AS col0 +---- +-61 +45 query I rowsort SELECT ALL + - ( + + 6 ) @@ -33779,8 +34131,11 @@ SELECT ALL - 71 * - + COUNT ( * ) * - 28 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) / \(\- Int64\(10\)\) AS col0" at position 0 and "Int64\(\-20\) / Int64\(\-67\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 58 / - + 10 col0, - 20 / - 67 * COUNT ( * ) AS col0 +---- +-5 +0 query I rowsort SELECT ALL + 99 + - 27 + - - ( - + ( + + 81 ) ) * + 98 - 74 AS col2 @@ -33959,8 +34314,11 @@ SELECT 16 * - - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 7 col2, + 98 col2 +---- +7 +98 query I rowsort SELECT 26 - - - 44 - - NULLIF ( + 50, + 20 ) AS col0 @@ -34021,8 +34379,11 @@ SELECT 51 / - 58 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ \(\- Int64\(36\)\) \- Int64\(\-15\) / Int64\(\-95\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 + - ( + 36 ) - - 15 / - 95 AS col1, + 16 AS col1 +---- +-36 +16 query II rowsort label-6462 SELECT COUNT ( * ) / MIN ( - 49 ) / - 81 + + 89 AS col1, + 39 / + SUM ( ALL + ( ( + - 78 ) ) ) @@ -34139,8 +34500,11 @@ SELECT DISTINCT 62 * + + 43 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 2 AS col1, 53 AS col1 +---- +2 +53 query I rowsort label-6484 SELECT 26 + + + 1 + + 55 + + CAST ( NULL AS INTEGER ) @@ -34463,8 +34827,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \- Int64\(\-55\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 33 - + - 55 + COUNT ( * ) AS col1, - 98 AS col1 +---- +-98 +23 query I rowsort label-6547 SELECT 9 * - + 86 + - - 74 * + - COUNT ( * ) @@ -34721,8 +35088,11 @@ SELECT ALL 36 * - ( 16 ) + ( + 98 ) + + 11 + - + NULLIF ( 64, + COUNT ( * ) ) AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 160 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \* Int64\(8\) AS col0" at position 0 and "Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 20 * 8 AS col0, - 19 AS col0 +---- +-19 +160 query I rowsort SELECT ALL + ( - 72 ) AS col1 @@ -35093,8 +35463,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ \(\- Int64\(70\)\) AS col1" at position 0 and "Int64\(\-18\) \+ Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 64 + - + 70 AS col1, - 18 + + 68 AS col1 +---- +-6 +50 query I rowsort label-6666 SELECT - 69 - - 94 - - - NULLIF ( + COUNT ( * ), - + 50 ) * + 92 / 30 col1 @@ -35206,8 +35579,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -77 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 71 ) col2, - 77 AS col2 +---- +-77 +71 query I rowsort SELECT ALL + 27 + - 82 @@ -35232,8 +35608,11 @@ SELECT ALL 69 + - MIN ( + + 71 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4575 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \+ Int64\(62\) \+ Int64\(42\) \+ Int64\(\-51\) \* Int64\(92\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 13 + + 62 + ( 42 ) + ( + - 51 ) * + 92 AS col0, COUNT ( * ) col0 +---- +-4575 +1 query II rowsort label-6692 SELECT 98 + 55 AS col1, CAST ( NULL AS INTEGER ) * + 84 * 49 / + - COUNT ( * ) @@ -35485,8 +35864,11 @@ 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\(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\. +query II valuesort SELECT + 20 + - + COUNT ( * ) + - - 93 * 4 AS col1, COUNT ( * ) + - + CASE - 83 WHEN - - 94 THEN - COUNT ( * ) * + ( - 67 ) + 76 END AS col1 +---- +391 +NULL query I rowsort SELECT - 26 - + + 15 col1 @@ -35561,8 +35943,11 @@ SELECT + 82 * + COUNT ( DISTINCT - + 1 ) + - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5521 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \+ Int64\(71\) \+ Int64\(\-99\) \* Int64\(56\) AS col1" at position 0 and "min\(Int64\(44\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 + + 71 + + - 99 * 56 col1, ( + MIN ( 44 ) ) AS col1 +---- +-5521 +44 query I rowsort SELECT - 92 * - 45 AS col1 @@ -35774,8 +36159,11 @@ SELECT ALL - COALESCE ( + - 43, + - 48 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col0" at position 0 and "coalesce\(Int64\(71\), Int64\(28\) \- Int64\(54\) \+ \(\- Int64\(8\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 69 AS col0, + COALESCE ( 71, 28 - 54 + - + 8 ) AS col0 +---- +-69 +71 query III rowsort label-6796 SELECT ALL 22 col0, CAST ( - 68 AS INTEGER ) * - 12, - 51 * - + 25 + 92 + 13 col1 @@ -35871,8 +36259,11 @@ SELECT 98 - 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 col2, + 54 AS col2 +---- +54 +67 query I rowsort SELECT DISTINCT + 93 + - + 63 col0 @@ -36167,8 +36558,11 @@ SELECT ALL + 93 AS col2, 41 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(\(\- Int64\(\-89\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, CAST ( - - 89 AS INTEGER ) AS col0 +---- +1 +89 query I rowsort label-6869 SELECT + SUM ( DISTINCT - 16 ) AS col2 @@ -36281,8 +36675,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col1, COUNT ( DISTINCT 21 ) AS col1 +---- +-1 +1 query I rowsort SELECT ALL + 83 * - - 86 AS col2 @@ -36528,8 +36925,11 @@ SELECT ALL 19 + COUNT ( ALL + 99 ) + - 92 * 51 + - 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(15\)\) AS col0" at position 0 and "coalesce\(Int64\(56\), min\(Int64\(\-29\)\) \+ \(\- CASE Int64\(93\) WHEN \(\- Int64\(62\)\) THEN Int64\(59\) / \(\- Int64\(24\)\) \+ Int64\(\-71\) END\) \+ \(\- Int64\(\-19\)\) \- \(\- Int64\(\-44\)\) \+ Int64\(62\) \* Int64\(47\) \+ Int64\(\-31\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( 15 ) AS col0, COALESCE ( + 56, MIN ( ALL + - 29 ) + + - CASE 93 WHEN - + 62 THEN 59 / - + 24 + - 71 END + - - 19 - - - 44 + 62 * 47 + - 31 ) col0 +---- +15 +56 query I rowsort label-6937 SELECT ALL + 14 + + CAST ( NULL AS INTEGER ) @@ -37033,8 +37433,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 5009 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(63\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-3\) \+ Int64\(64\), Int64\(\-46\) \+ Int64\(\-18\) \- \(\- Int64\(\-3\)\) \* Int64\(\-26\) / \(\- Int64\(\-47\)\), count\(DISTINCT CAST\(Int64\(71\) AS Int32\)\)\) \* \(\- Int64\(\-78\)\) \+ Int64\(95\) AS col2" at position 0 and "Int64\(44\) \- Int64\(\-30\) \+ Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +44 +5009 query I rowsort label-7033 SELECT - COALESCE ( - COUNT ( * ), - 0, - 49, - 51 * + 99 + - MAX ( + - 66 ) ) AS col1 @@ -37158,8 +37561,11 @@ 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 "Int64\(44\) AS col1" at position 0 and "Int64\(\-62\) \+ Int64\(\-97\) \- max\(Int64\(19\)\) \+ \(\- CAST\(NULL AS Float64\)\) \* Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 44 AS col1, - 62 + - 97 - + MAX ( 19 ) + + - CAST ( NULL AS FLOAT8 ) * 41 col1 +---- +44 +NULL query II rowsort label-7057 SELECT ALL - MAX ( ALL - + 48 ) + 74 AS col0, 91 @@ -37719,8 +38125,11 @@ SELECT + + 85 * - 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1110 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* Int64\(\-30\) AS col2" at position 0 and "Int64\(\-66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 * - 30 AS col2, - 66 AS col2 +---- +-1110 +-66 query I rowsort SELECT + 7 * 89 @@ -37745,8 +38154,11 @@ SELECT - 16 + - + 45 * - NULLIF ( ( + - 38 ), + - 36 * COUNT ( * ) + NULLIF ( + # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 25 AS col2, 52 AS col2 +---- +25 +52 query I rowsort label-7171 SELECT + CASE ( - + 45 ) WHEN + 27 - + 93 / + 94 / - 69 THEN + MAX ( ALL - - 80 ) END * - + CAST ( NULL AS INTEGER ) @@ -37856,8 +38268,11 @@ SELECT 26 + - 4 * 79 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5525 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* Int64\(65\) AS col2" at position 0 and "max\(Int64\(42\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 85 * 65 AS col2, + MAX ( ALL + + 42 ) AS col2 +---- +42 +5525 query I rowsort label-7192 SELECT DISTINCT + CAST ( 68 AS INTEGER ) - - 64 * + + 9 @@ -38491,8 +38906,11 @@ SELECT ALL - COALESCE ( + 99, - 82 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 78 AS col2, ( 36 ) AS col2 +---- +-78 +36 query II rowsort SELECT ALL - 81, 67 AS col2 @@ -38975,8 +39393,11 @@ SELECT - - 90 * COUNT ( DISTINCT + - 50 ) + 2, - COUNT ( DISTINCT + - 2 ) AS col # 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 "Int64\(49\) / Int64\(\-45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 col1, 49 / - 45 col1 +---- +-1 +82 query II rowsort SELECT ALL - 76 AS col0, + 80 AS col1 @@ -39009,8 +39430,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) / + + 67 AS col1, 7 * + - 16 * - 15 AS col1 +---- +0 +1680 query I rowsort label-7412 SELECT ALL + 51 + CAST ( - 72 AS INTEGER ) col2 @@ -39072,8 +39496,11 @@ SELECT - 26 * ( + - COUNT ( * ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-81\)\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( - 81 ) AS col2, 69 AS col2 +---- +-81 +69 query I rowsort label-7424 SELECT DISTINCT - CASE - ( + - 66 ) WHEN + 78 * - 55 + + - 78 THEN - ( + - NULLIF ( 24, 2 + - COUNT ( * ) ) ) WHEN + - 69 + - 55 THEN NULL END AS col1 @@ -39183,8 +39610,11 @@ SELECT 90 * + - NULLIF ( + - 5, + - COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col0" at position 0 and "count\(Int64\(\-96\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 77 AS col0, COUNT ( + - 96 ) AS col0 +---- +-77 +1 query I rowsort label-7446 SELECT CAST ( - + COALESCE ( - 79, - 32 * - 96 ) AS INTEGER ) - + + 18 AS col2 @@ -39287,8 +39717,11 @@ SELECT DISTINCT 83 + - 67 * COUNT ( * ) / - - 97 * - COUNT ( * ) + + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -312 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "Int64\(39\) \* Int64\(\-8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 AS col2, 39 * + - 8 col2 +---- +-312 +56 query II rowsort label-7466 SELECT ALL 53, COUNT ( * ) col0 @@ -39341,8 +39774,11 @@ SELECT 1 AS col1, 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-42\)\) \+ \(\- \(\- min\(Int64\(\-54\)\)\)\) AS col1" at position 0 and "Int64\(28\) \+ Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - - 42 ) + - - MIN ( - 54 ) col1, 28 + + 49 AS col1 +---- +-12 +77 query II rowsort label-7476 SELECT 74, - MIN ( - - 28 ) AS col2 @@ -39630,8 +40066,11 @@ SELECT + 53 AS col2, - 46 / + 40 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 "nullif\(Int64\(63\), Int64\(\-74\) \- Int64\(36\)\) 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 II valuesort SELECT NULLIF ( + 63, - 74 - 36 ) AS col1, COUNT ( - 15 ) AS col1 +---- +1 +63 query II rowsort label-7531 SELECT ALL - COUNT ( * ) col1, 31 @@ -39825,8 +40264,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -355 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ Int64\(\-24\) AS col2" at position 0 and "Int64\(5\) \* Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 97 + - 24 AS col2, 5 * ( - 71 ) AS col2 +---- +-355 +73 query I rowsort label-7567 SELECT 86 * COUNT ( * ) * - 63 AS col2 @@ -40415,8 +40857,11 @@ SELECT 15 + + 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(0\)\) / Int64\(\-76\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MAX ( ALL 0 ) / - 76 AS col1, COUNT ( * ) AS col1 +---- +0 +1 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -40543,8 +40988,11 @@ 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\(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\. +query II valuesort 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 +---- +73 +NULL query I rowsort label-7702 SELECT + 21 * + SUM ( ALL + 82 ) + MIN ( ALL - 51 ) @@ -40638,8 +41086,11 @@ 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\(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\. +query II valuesort SELECT ALL ( - - COUNT ( * ) ) AS col0, + COUNT ( * ) * 57 AS col0 +---- +1 +57 query I rowsort label-7719 SELECT + 44 * CASE + + 51 WHEN + + COALESCE ( + ( 87 ), - COUNT ( * ) * - 98 ) + 16 * - + COALESCE ( - 12, 1 + - 57 + - + 81 + 52 * + NULLIF ( - 77, + - COUNT ( + 34 ) ), + + 84 * + 58 * + - 63, 64 ) * - CAST ( NULL AS INTEGER ) - - CAST ( NULL AS INTEGER ) THEN - 53 ELSE + 79 * 57 END AS col1 @@ -40670,8 +41121,11 @@ SELECT + NULLIF ( + - 99, - 25 + + COUNT ( * ) ) * - + 60 * - 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(16\) AS col2" at position 0 and "\(\- Int64\(\-93\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) * 16 AS col2, - ( - 93 ) AS col2 +---- +93 +NULL query I rowsort label-7725 SELECT ( + - NULLIF ( - - COUNT ( * ), 0 - 61 ) ) @@ -41772,8 +42226,12 @@ SELECT + + 29 / - 89 + - 22 + + MAX ( + - 65 ) AS col1 # Datafusion - Expected - 1 # Datafusion - Expected - 46 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT COUNT ( * ) AS col0, + 46 col0, + - 70 AS col2 +---- +-70 +1 +46 query I rowsort label-7941 SELECT + SUM ( DISTINCT + ( + 38 ) ) @@ -42097,8 +42555,11 @@ SELECT MAX ( DISTINCT + 74 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -147 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-52\) \- Int64\(96\) AS col2" at position 0 and "Int64\(33\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-20\) THEN nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-18\) \* count\(Int64\(\-16\) \* Int64\(87\)\)\) WHEN CAST\(NULL AS Int32\) / Int64\(\-18\) THEN NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-147 +NULL query I rowsort SELECT ( - 17 ) AS col1 @@ -42634,8 +43095,11 @@ SELECT - COUNT ( * ) + - 13 AS col0, - 95 / + - 40 + - - 89 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2270268 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \* Int64\(\-14\) \* Int64\(\-54\) \* Int64\(91\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 33 * - 14 * - 54 * + + 91 AS col0, 13 AS col0 +---- +-2270268 +13 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -42794,8 +43258,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 50 col1, + 36 AS col1 +---- +36 +50 query I rowsort SELECT 84 * + 40 @@ -42863,8 +43330,11 @@ SELECT 93 * - 75, - 43 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 118720 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* Int64\(80\) \* Int64\(53\) AS col1" at position 0 and "Int64\(\-7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 * + 80 * + 53 AS col1, - 7 AS col1 +---- +-7 +118720 query I rowsort SELECT 2 + - 12 + + 42 AS col1 @@ -43114,8 +43584,12 @@ SELECT - NULLIF ( + 60, + + ( MIN ( - - NULLIF ( + 35, 17 + + ( 65 ) / 13 ) ) ) # Datafusion - Expected - 12 # Datafusion - Expected - -240 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "\(\- CAST\(\(\- Int64\(\-21\)\) AS Int32\)\) \+ Int64\(3\) \* Int64\(\-73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 12 AS col2, + ( - CAST ( - - 21 AS INTEGER ) ) + + 3 * - 73 AS col2, + 38 col1 +---- +-240 +12 +38 query II rowsort label-8197 SELECT + 34 AS col1, + CAST ( 73 AS INTEGER ) @@ -43153,14 +43627,20 @@ SELECT - 74 + - + ( - ( + + 97 ) ), + 3 / + - 14 + 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1549 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(36\) \* \(\- Int64\(45\)\) \+ Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( - CAST ( NULL AS INTEGER ) ) col2, 36 * - + ( + 45 ) + 71 AS col2 +---- +-1549 +NULL # 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\(56\) / Int64\(57\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 56 / + 57 AS col0, 51 AS col0 +---- +0 +51 query I rowsort label-8205 SELECT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) / - 83 * + 45 AS col1 @@ -43712,8 +44192,11 @@ SELECT + MAX ( ALL 27 ) AS col2, COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -3649 -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\(\-89\) \* Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( - 72 ) AS col1, - 89 * + 41 col1 +---- +-3649 +1 query I rowsort label-8311 SELECT ALL COUNT ( * ) * - ( 6 ) @@ -44267,8 +44750,11 @@ SELECT 62 * - CAST ( - 1 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 98 AS col2 +---- +1 +98 query I rowsort SELECT DISTINCT - 91 * - - 85 AS col0 @@ -45086,8 +45572,11 @@ SELECT ( - + 39 ) * + 84 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(48\) \+ Int64\(\-27\) AS col0" at position 0 and "Int64\(\-99\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 47 + + - CAST ( NULL AS INTEGER ) + 48 + - 27 col0, - 99 + COUNT ( * ) AS col0 +---- +-98 +NULL query I rowsort label-8571 SELECT ALL + NULLIF ( COUNT ( 58 ), - 29 ) * 0 + - - COUNT ( * ) + - 58 AS col1 @@ -45184,8 +45673,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, + 16 AS col1 +---- +1 +16 query I rowsort SELECT + 15 - - 0 AS col1 @@ -45365,8 +45857,11 @@ SELECT DISTINCT + ( + 82 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 85 AS col0, 53 AS col0 +---- +53 +85 query I rowsort label-8624 SELECT ALL + COALESCE ( - ( + - 42 ), + 93 * 54 * - 45 + - 19, + COALESCE ( + 60, - 33 * - 80, COUNT ( * ) + + 57 - - + ( + 11 ) * + 97 + - + 29 + NULLIF ( 71, 94 + + 87 ) * + + CAST ( - 38 AS INTEGER ) ) * - 67 * MAX ( - - 95 ) ) @@ -45505,8 +46000,11 @@ SELECT ALL - MIN ( DISTINCT 76 ) + COUNT ( ALL + ( 16 ) ) + + - 78 + + - SUM ( A # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-72\)\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 72 AS col2, 98 AS col2 +---- +72 +98 query I rowsort label-8651 SELECT ALL + 86 + - CAST ( COUNT ( * ) AS INTEGER ) * 50 * + - 47 + - COUNT ( * ) * + 40 col2 @@ -45667,8 +46165,11 @@ SELECT ( + 84 ) + + - 64 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) \+ Int64\(\-70\) AS col0" at position 0 and "Int64\(\-83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 14 + - 70 AS col0, - 83 AS col0 +---- +-83 +-84 query I rowsort SELECT 86 + - 30 AS col2 @@ -45833,8 +46334,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) col0, 21 AS col0 +---- +-1 +21 query II rowsort SELECT - 78, + 46 * + 31 AS col1 @@ -46232,8 +46736,11 @@ SELECT DISTINCT - 20 * - + ( + + 65 ) * + 51 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 2715 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col1" at position 0 and "Int64\(53\) \+ \(\- Int64\(\-72\)\) \- Int64\(\-74\) \* Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 20 AS col1, + 53 + - - 72 - - 74 * 35 AS col1 +---- +-20 +2715 query I rowsort SELECT ALL 4 - - 73 AS col2 @@ -46368,8 +46875,11 @@ SELECT DISTINCT - + 32 * - - 74 + - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(31\)\) AS col2" at position 0 and "Int64\(\-23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 31 AS col2, - 23 AS col2 +---- +-23 +-31 query II rowsort SELECT + 30 AS col2, - 17 AS col0 @@ -46417,8 +46927,11 @@ SELECT - 81 + + + ( + ( + 50 ) ) + 3 * - 29 + + - MIN ( ALL + 16 ) + - 28 * CAST # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 310464 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col2" at position 0 and "CAST\(Int64\(\-49\) AS Int32\) \* \(\- Int64\(\-64\)\) \* Int64\(\-99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 15 AS col2, CAST ( + - 49 AS INTEGER ) * - - 64 * - 99 AS col2 +---- +-15 +310464 query I rowsort label-8824 SELECT + 55 / - 90 @@ -47063,8 +47576,11 @@ SELECT + + MAX ( 2 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col2" at position 0 and "Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 AS col2, + 57 AS col2 +---- +18 +57 query I rowsort label-8948 SELECT - - NULLIF ( - 63, - + 39 ) / 78 + - 9 + 93 * + 60 @@ -47106,8 +47622,11 @@ SELECT 49 * + 7 + 28 + 94 * + 74 + - - 23 AS col1, 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 55 AS col2 +---- +1 +55 query I rowsort SELECT + 19 + - + 58 + + 10 @@ -47194,8 +47713,11 @@ SELECT + COUNT ( * ) / + 60 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - 330 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col0" at position 0 and "Int64\(6\) \* Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 99 col0, 6 * 55 AS col0 +---- +-99 +330 query I rowsort SELECT - - 23 * + 6 AS col0 @@ -47398,8 +47920,11 @@ SELECT - 93 + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 149 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ Int64\(61\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 + 61 AS col2, + 33 AS col2 +---- +149 +33 query I rowsort SELECT - 77 - + 93 col1 @@ -47737,8 +48262,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 92 / - COUNT ( * ) AS col2, 39 AS col2 +---- +-92 +39 query I rowsort label-9074 SELECT - + 23 + + COUNT ( * ) + - 39 @@ -47784,8 +48312,11 @@ SELECT ALL - NULLIF ( - 32, + 83 / 29 + 90 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(24\)\) \+ Int64\(82\) AS col1" at position 0 and "min\(Int64\(40\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + ( + 24 ) + ( 82 ) AS col1, + MIN ( + 40 ) AS col1 +---- +40 +58 query I rowsort SELECT - 79 + 49 @@ -48198,8 +48729,11 @@ SELECT DISTINCT - 22 + COUNT ( * ) * + COALESCE ( + 22, - - COUNT ( * ) / - - 40 # 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 "Int64\(\-1\) AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 1 ) AS col1, 50 AS col1 +---- +-1 +50 query II rowsort label-9163 SELECT + COUNT ( * ) + 88, + COUNT ( * ) AS col1 @@ -48288,8 +48822,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- Int64\(38\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, - ( + 38 ) AS col0 +---- +-1 +-38 query I rowsort label-9179 SELECT ALL 24 * + - CAST ( + - 48 AS INTEGER ) @@ -48571,8 +49108,11 @@ SELECT ALL - 37 * + 42 + - + 35 + - 5 - + + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 567 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* CAST\(NULL AS Int32\) / Int64\(24\) \- Int64\(\-91\) \+ Int64\(\-49\) \* Int64\(\-55\) \+ Int64\(60\) \* Int64\(\-80\) AS col1" at position 0 and "Int64\(\-9\) \* Int64\(\-63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 24 * + CAST ( NULL AS INTEGER ) / 24 - - 91 + - 49 * + + ( - 55 ) + 60 * - 80 AS col1, - 9 * - 63 AS col1 +---- +567 +NULL query I rowsort label-9234 SELECT DISTINCT + 88 * 39 - - + 91 + - - 95 + + - 24 + + + CAST ( NULL AS INTEGER ) / + 79 + 26 / + 52 * 35 * - 77 - 44 @@ -48814,8 +49354,11 @@ SELECT CAST ( - COUNT ( * ) AS INTEGER ) + - + 46 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 5467 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "Int64\(77\) \* Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 94 col2, 77 * 71 AS col2 +---- +5467 +94 query I rowsort label-9280 SELECT DISTINCT COUNT ( * ) + - + 40 @@ -49257,8 +49800,11 @@ SELECT MIN ( - 91 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 392 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "Int64\(7\) \* sum\(DISTINCT \(\- Int64\(\-56\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 59 AS col0, 7 * + SUM ( DISTINCT - - 56 ) AS col0 +---- +392 +59 query I rowsort SELECT + 64 + - 67 AS col0 @@ -50040,8 +50586,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 AS col1, COUNT ( * ) * - 9 AS col1 +---- +-9 +84 query II rowsort SELECT - 26, 11 * 98 AS col1 @@ -50217,8 +50766,11 @@ SELECT DISTINCT 97 / ( COUNT ( * ) ) * ( + 43 ) + - COALESCE ( + 43, 86 * + 14 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 1755 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col0" at position 0 and "Int64\(39\) \* Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 AS col0, 39 * + 45 AS col0 +---- +-31 +1755 query I rowsort SELECT ALL ( + 84 ) col1 @@ -50463,8 +51015,11 @@ SELECT + NULLIF ( 99, + 40 ) * + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(7\)\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 7 AS col1, 5 col1 +---- +-7 +5 query I rowsort SELECT + 23 + + - 93 @@ -50575,8 +51130,11 @@ SELECT SUM ( - - 73 ) * 42 + + + 15 + - CAST ( + - 91 AS INTEGER ) * 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 "Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 43 col0, - 1 AS col0 +---- +-1 +43 query I rowsort SELECT 50 - + + 6 AS col0 @@ -50644,8 +51202,11 @@ SELECT + 35 * + + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-98\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 98 col0, COUNT ( * ) AS col0 +---- +1 +98 query I rowsort SELECT + 79 + - + 89 @@ -50761,8 +51322,11 @@ SELECT 25 + + + 61 + CAST ( - 50 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 869 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(8\) \* Int64\(99\) AS col2" at position 0 and "\(\- sum\(CAST\(NULL AS Float64\)\)\) \+ Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL 77 + 8 * 99 col2, - SUM ( CAST ( NULL AS FLOAT8 ) ) + + 38 AS col2 +---- +869 +NULL query I rowsort label-9657 SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 54 col2 @@ -50937,8 +51501,11 @@ SELECT DISTINCT COUNT ( - 70 ) * + - 46 + 95 - + 43 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(\-5\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 5 ) * - 5 AS col1, - 0 col1 +---- +-25 +0 query I rowsort label-9691 SELECT + 76 + - + 56 / + + COUNT ( * ) + + + 2 * + 0 AS col0 @@ -51133,8 +51700,11 @@ SELECT DISTINCT + ( 71 ) * + + MIN ( 97 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \+ Int64\(25\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 7 + + 25 AS col1, COUNT ( * ) AS col1 +---- +1 +18 query I rowsort SELECT DISTINCT - 5 * 50 * + + 89 @@ -51215,8 +51785,11 @@ SELECT ALL - ( + + 96 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 5400 # Datafusion - Expected - -131376 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* Int64\(25\) \* Int64\(12\) AS col0" at position 0 and "Int64\(\-28\) \* Int64\(\-69\) \* Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 18 * 25 * 12 AS col0, - 28 * - 69 * - 68 AS col0 +---- +-131376 +5400 query I rowsort SELECT 56 * - - 78 * ( + 41 ) @@ -51267,14 +51840,20 @@ SELECT DISTINCT COUNT ( * ) + - COUNT ( - 75 ) * + 68 + - - ( - CAST ( + - ( - 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col1, - 1 col1 +---- +-1 +1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-21\)\) AS col2" at position 0 and "Int64\(\-37\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 21 AS col2, - 37 * COUNT ( * ) AS col2 +---- +-37 +21 query I rowsort SELECT - 96 + 94 AS col1 @@ -51357,8 +51936,11 @@ SELECT - - 16 AS col0, 22 * - - COUNT ( * ) AS col2, - 55 * - 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col1" at position 0 and "Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 57 col1, + 56 AS col1 +---- +56 +57 query II rowsort SELECT DISTINCT - 99 AS col0, 93 AS col1 @@ -51405,8 +51987,11 @@ SELECT + 6 * - ( + NULLIF ( - 78, 85 * + - 22 + 94 / - - ( - - 27 ) ) ) + - 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4785 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(55\) AS col0" at position 0 and "Int64\(\-14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 87 * + 55 AS col0, - 14 AS col0 +---- +-14 +4785 query I rowsort SELECT DISTINCT 70 + 94 + + 12 + + + 63 @@ -51755,8 +52340,11 @@ 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\(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\. +query II valuesort SELECT 42 AS col2, - COUNT ( * ) / - + CASE + 20 WHEN - COALESCE ( + COUNT ( * ), 13 ) THEN NULL ELSE - - 59 / + COUNT ( * ) + + 8 END AS col2 +---- +0 +42 query I rowsort label-9849 SELECT ALL COALESCE ( - COUNT ( * ), - 33 * 94, 95 + - 85 + NULLIF ( - 38, - 56 ) ) + + 62 + - - 8 + COALESCE ( - + 17, + 97 ) * - 1 AS col0 @@ -51819,8 +52407,11 @@ SELECT ALL - - 25 / - 22 + - COUNT ( * ) - + 7 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 63 AS col0, 94 AS col0 +---- +63 +94 query I rowsort SELECT ALL + 64 - - 73 col2 @@ -52271,8 +52862,11 @@ SELECT SUM ( - CASE - + 88 WHEN - 63 THEN NULL WHEN - 16 * 16 THEN 58 ELSE + 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 46 -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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 73 AS col1, 46 AS col1 +---- +46 +73 query I rowsort label-9948 SELECT + 29 * + + SUM ( + 67 ) AS col0 @@ -52427,8 +53021,11 @@ SELECT DISTINCT + 37 * - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \- \(\- Int64\(\-30\)\) AS col1" at position 0 and "Int64\(\-96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 53 - - - 30 col1, - 96 AS col1 +---- +-83 +-96 query I rowsort SELECT ALL + COALESCE ( 17, + + 2 + + 27 * 27 ) diff --git a/data/sqlite/random/expr/slt_good_104.slt b/data/sqlite/random/expr/slt_good_104.slt index 9e2c394..430d889 100644 --- a/data/sqlite/random/expr/slt_good_104.slt +++ b/data/sqlite/random/expr/slt_good_104.slt @@ -45,8 +45,11 @@ 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\(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\. +query IR valuesort SELECT COUNT ( * ) * - + COUNT ( * ) AS col1, CAST ( NULL AS FLOAT8 ) col1 +---- +-1 +NULL query I rowsort SELECT + + 95 * 13 + + 89 + + - 61 AS col1 @@ -172,14 +175,20 @@ SELECT ALL - ( - 74 ) + + + 15 + 76 AS col1, - 26 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 95 AS col1, CAST ( NULL AS INTEGER ) AS col1 +---- +95 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 5358 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "Int64\(\-33\) \- Int64\(72\) \* Int64\(\-74\) \+ \(\- Int64\(\-63\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 AS col2, - 33 - + 72 * + - 74 + - - 63 AS col2 +---- +5358 +7 query II rowsort SELECT - 97 AS col1, 62 - - 84 col0 @@ -246,8 +255,11 @@ SELECT ALL + 73 - - - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19931184 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-52\)\)\) \* Int64\(81\) \* Int64\(52\) \* Int64\(91\) AS col0" at position 0 and "coalesce\(Int64\(18\), CAST\(NULL AS Int32\) \* Int64\(30\), Int64\(\-92\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + - SUM ( + - 52 ) ) * 81 * 52 * + 91 col0, COALESCE ( 18, CAST ( NULL AS INTEGER ) * + + ( + 30 ), - 92 ) AS col0 +---- +18 +19931184 query I rowsort label-39 SELECT + MIN ( ALL + - 98 ) @@ -435,8 +447,11 @@ SELECT - 63 + + 57 * 30 AS col2 # 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\(55\)\) / \(\- Int64\(\-4\)\) AS col1" at position 0 and "Int64\(59\) \+ Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 55 / - - 4 AS col1, 59 + + - 62 col1 +---- +-13 +-3 query II rowsort SELECT DISTINCT + + 55 * 17 AS col2, 1 @@ -753,8 +768,11 @@ SELECT - 98 + + 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 3660 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(50\)\) AS col2" at position 0 and "Int64\(0\) \+ \(\- CASE Int64\(12\) WHEN \(\- nullif\(CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(13\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \- Int64\(21\) WHEN Int64\(63\) THEN NULL WHEN Int64\(46\) \- Int64\(24\) \+ \(\- Int64\(39\)\) \* Int64\(88\) \* coalesce\(Int64\(87\), Int64\(9\)\) \* Int64\(11\) \+ Int64\(61\) / CAST\(NULL AS Int32\) THEN NULL ELSE NULL END, Int64\(\-63\)\)\) THEN Int64\(91\) \+ Int64\(23\) ELSE Int64\(60\) \* Int64\(\-61\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-50 +3660 query I rowsort label-134 SELECT ALL - MAX ( ALL 61 ) AS col0 @@ -785,8 +803,11 @@ SELECT + 34 + COUNT ( ( 89 ) ) + + 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - -3762 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 0 and "Int64\(99\) \* Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 11 AS col0, 99 * - 38 AS col0 +---- +-3762 +11 query I rowsort label-140 SELECT + COUNT ( * ) + 91 + + + 41 * - + CAST ( NULL AS INTEGER ) + 47 AS col2 @@ -877,8 +898,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 / - 74 AS col2, + COUNT ( * ) * + 72 AS col2 +---- +0 +72 query I rowsort label-158 SELECT COUNT ( * ) * - + 22 + 27 + 9 + - 94 - - 55 * + 33 * - 96 * 78 @@ -1050,8 +1074,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col2, + 96 col2 +---- +1 +96 query I rowsort SELECT ALL + NULLIF ( + 39, 66 ) @@ -1069,8 +1096,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 7708 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* Int64\(82\) AS col2" at position 0 and "Int64\(92\) / Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 94 * ( + + 82 ) AS col2, + 92 / 92 AS col2 +---- +1 +7708 query I rowsort SELECT DISTINCT + 42 * - 56 + + 0 * - + 17 @@ -1464,8 +1494,11 @@ SELECT - 25 * + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - 3767 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(99\)\) AS col2" at position 0 and "Int64\(\-64\) \* Int64\(\-60\) \+ Int64\(\-68\) \+ Int64\(\-30\) \+ Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 99 AS col2, + ( + - 64 ) * - 60 + - 68 + - 30 + + 25 AS col2 +---- +-99 +3767 query I rowsort SELECT ALL - - ( + 48 ) AS col1 @@ -1867,8 +1900,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col2" at position 0 and "Int64\(\-60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 61 AS col2, - 60 col2 +---- +-60 +61 query I rowsort label-343 SELECT - COUNT ( * ) - - 99 - 78 AS col0 @@ -1942,8 +1978,11 @@ SELECT DISTINCT - 60 - - 92 * 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col2" at position 0 and "CASE Int64\(92\) WHEN Int64\(59\) THEN Int64\(79\) \* Int64\(\-18\) / Int64\(24\) \+ Int64\(\-76\) \- Int64\(10\) ELSE NULL END \* CAST\(Int64\(\-81\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 81 AS col2, CASE + ( + 92 ) WHEN + 59 THEN + 79 * - 18 / + 24 + - 76 - + 10 ELSE NULL END * CAST ( - 81 AS INTEGER ) AS col2 +---- +-81 +NULL query II rowsort label-357 SELECT DISTINCT 36 AS col0, COUNT ( * ) @@ -2096,8 +2135,12 @@ SELECT 1 / + + 7 AS col0, 24 # Datafusion - Expected - NULL # Datafusion - Expected - 19 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) / nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-61\)\) AS col0" at position 0 and "Int64\(20\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +19 +NULL +NULL query I rowsort label-386 SELECT CAST ( - - 0 AS INTEGER ) - + - 63 AS col1 @@ -2149,8 +2192,11 @@ SELECT ALL - - 86 + 46 * + + COUNT ( * ) # 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\(DISTINCT \(\- Int64\(\-45\)\)\)\) AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( DISTINCT - - 45 ) AS col0, 27 AS col0 +---- +-1 +27 query I rowsort label-396 SELECT ( COUNT ( DISTINCT 7 ) ) AS col0 @@ -2331,8 +2377,11 @@ SELECT ALL + 98 * ( 85 ) * - - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - -7049 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col1" at position 0 and "Int64\(89\) \+ Int64\(\-83\) \* Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 47 AS col1, + 89 + - 83 * + 86 AS col1 +---- +-7049 +47 query II rowsort label-430 SELECT + COUNT ( * ) col0, - 50 * - + 40 / - 1 + + - 72 @@ -2408,8 +2457,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 59 col2, + 54 AS col2 +---- +54 +59 query I rowsort label-444 SELECT COUNT ( ALL + 77 ) col0 @@ -2552,8 +2604,12 @@ SELECT 7 + - - ( COUNT ( * ) ) # Datafusion - Expected - 92 # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 16 + 76 AS col0, - COUNT ( * ) AS col1, + + COUNT ( * ) AS col1 +---- +-1 +1 +92 query I rowsort SELECT 2 - 28 @@ -2603,8 +2659,11 @@ SELECT 9 + - + 87 * - 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(45\)\)\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MAX ( + 45 ) AS col2, 19 AS col2 +---- +-45 +19 query I rowsort label-480 SELECT DISTINCT + NULLIF ( - 72, 62 + ( - COUNT ( * ) ) ) - - COUNT ( + 21 ) AS col2 @@ -2689,8 +2748,11 @@ SELECT 83 AS col0, + 25 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col2" at position 0 and "Int64\(3\) \* Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 AS col2, 3 * 8 AS col2 +---- +18 +24 query I rowsort SELECT ALL + 56 + + 87 AS col2 @@ -3286,8 +3348,11 @@ SELECT 53 - - 64 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-4\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-18\) \- Int64\(61\) / \(\- CAST\(Int64\(93\) AS Int32\)\) \+ \(\- Int64\(\-28\)\) \+ Int64\(33\) / CASE Int64\(97\) WHEN \(\- Int64\(\-68\)\) \+ Int64\(\-9\) THEN Int64\(17\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +4 +NULL query II rowsort SELECT DISTINCT - + 13 AS col0, - 36 @@ -3580,8 +3645,12 @@ 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\(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\. +query III valuesort SELECT - - NULLIF ( - 57, - - COUNT ( * ) ) AS col0, + 11 + 16 + - 32 * + ( - 17 ) - 8 * + 99 * 33 AS col2, + ( 69 ) AS col0 +---- +-25565 +-57 +69 query I rowsort label-666 SELECT DISTINCT 82 + - 95 + + COUNT ( * ) @@ -3889,8 +3958,11 @@ SELECT ALL - 80 * 61 * + 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - 489 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- Int64\(\-67\)\)\)\) AS col2" at position 0 and "Int64\(\-9\) \* CASE \(\- Int64\(\-4\)\) WHEN Int64\(\-50\) THEN \(\- Int64\(59\)\) \* \(\- Int64\(\-46\)\) \+ Int64\(99\) WHEN Int64\(\-70\) THEN Int64\(\-76\) \- \(\- min\(Int64\(\-91\)\)\) \+ Int64\(88\) \+ Int64\(34\) \* Int64\(33\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(33\)\) \+ coalesce\(\(\- \(\- CASE Int64\(\-5\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE Int64\(62\) WHEN Int64\(98\) \* Int64\(24\) \+ Int64\(\-35\) THEN \(\- min\(Int64\(46\)\)\) WHEN Int64\(47\) \+ Int64\(4\) \* sum\(CASE Int64\(99\) WHEN Int64\(14\) THEN Int64\(33\) ELSE Int64\(5\) END\) THEN NULL END\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \+ Int64\(20\) THEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-70\) \+ Int64\(\-80\) \* \(\- CAST\(CASE Int64\(74\) WHEN \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \* CAST\(count\(Int64\(67\)\) \* avg\(Int64\(17\)\) \+ Int64\(\-9\) AS Int32\) \+ Int64\(24\) \* Int64\(\-65\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE Int64\(1\) END AS Int32\)\) ELSE NULL END\)\), Int64\(83\), Int64\(38\)\) WHEN Int64\(95\) \- coalesce\(Int64\(51\), Int64\(32\), Int64\(73\) \+ Int64\(50\)\) \* Int64\(27\) THEN NULL ELSE \(\- count\(Int64\(3\)\)\) END \+ \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-81\) \- count\(\(\- CAST\(Int64\(\-16\) AS Int32\)\)\) \* Int64\(69\)\) \+ Int64\(19\)\) \* Int64\(\-24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-67 +489 query I rowsort SELECT 65 * + 26 @@ -3982,8 +4054,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(\-83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 83 * 55 * 98 AS col2, COUNT ( * ) / - 83 AS col2 +---- +-447370 +0 query I rowsort SELECT DISTINCT + + 64 - + - 7 + - 67 * 10 @@ -4088,8 +4163,12 @@ SELECT DISTINCT 34 + 28 - + 13 / 16 * - 79 # Datafusion - Expected - 1 # Datafusion - Expected - 48 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + COUNT ( * ) AS col0, 48 AS col0, + 23 AS col2 +---- +1 +23 +48 query I rowsort SELECT ALL - 49 + + ( - + NULLIF ( - 18, + 84 * + 49 ) ) + 93 @@ -4168,8 +4247,11 @@ 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\(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\. +query II valuesort SELECT ALL COALESCE ( + + COUNT ( * ), - 38 ) - + 87 AS col0, + 30 AS col0 +---- +-86 +30 query I rowsort SELECT DISTINCT + 17 * ( + 15 ) @@ -4190,8 +4272,11 @@ SELECT - 90 / + 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col1" at position 0 and "min\(coalesce\(Int64\(48\), Int64\(58\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 68 col1, MIN ( COALESCE ( + 48, 58 ) ) AS col1 +---- +-68 +48 query II rowsort label-783 SELECT ALL 97 AS col1, COUNT ( * ) - COUNT ( * ) * + + 42 / + 12 @@ -4384,8 +4469,11 @@ SELECT DISTINCT - COUNT ( * ) * + 50 * - 21 - - - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1316 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-94\)\) \* \(\- Int64\(\-14\)\) AS col2" at position 0 and "CASE Int64\(\-43\) WHEN Int64\(0\) THEN Int64\(13\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 94 * - - 14 AS col2, CASE - 43 WHEN 0 THEN ( + 13 ) END AS col2 +---- +1316 +NULL query I rowsort label-820 SELECT - COUNT ( * ) / - 39 @@ -4410,8 +4498,11 @@ SELECT + 67 + - 66 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-87\)\) \+ Int64\(\-81\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 87 + ( + - 81 ) AS col2, 81 AS col2 +---- +6 +81 query I rowsort SELECT DISTINCT - CASE + + 34 WHEN 5 THEN + ( + 90 ) END @@ -4477,8 +4568,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * + 93 - MAX ( - 83 ) + - 8 + + 33 AS col0, - 71 * + + 95 * + 42 AS col0 +---- +-283290 +201 query II rowsort SELECT 33 AS col2, + 35 + - 97 @@ -4599,8 +4693,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col0" at position 0 and "Int64\(9\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 94 col0, + 9 + COUNT ( * ) AS col0 +---- +-94 +10 query II rowsort SELECT ALL 55, + 90 col2 @@ -5180,8 +5277,11 @@ SELECT ALL + 41 * + 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \+ Int64\(\-10\) AS col0" at position 0 and "Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 + + - 10 AS col0, 45 col0 +---- +45 +89 query I rowsort label-972 SELECT ALL + 69 / + 42 @@ -5201,8 +5301,11 @@ SELECT 8 + - ( - 54 ) * + - 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - -714 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* Int64\(\-14\) AS col0" at position 0 and "Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 51 * + - 14 AS col0, 76 AS col0 +---- +-714 +76 query I rowsort label-976 SELECT ALL - 96 + + - CASE CASE - - COUNT ( ALL - 12 ) WHEN 67 * - 38 - - CASE COUNT ( * ) WHEN 80 THEN NULL WHEN + 55 + + 59 THEN + - 89 END THEN + 5 + - 52 WHEN + 45 THEN - COUNT ( * ) ELSE - + 87 END WHEN 63 THEN - COUNT ( * ) + + - 91 WHEN 73 THEN + + 16 * + 43 ELSE NULL END col2 @@ -5249,8 +5352,11 @@ SELECT ( + + 28 ), 42 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \+ \(\- Int64\(98\)\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 22 + - + 98 col0, 21 AS col0 +---- +-76 +21 query I rowsort label-985 SELECT - 73 * + ( - + 84 ) + - COUNT ( - 11 ) * - 56 @@ -5275,8 +5381,11 @@ 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\(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\. +query II valuesort 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 +---- +-5963 +-8282690 query I rowsort label-990 SELECT - 68 + SUM ( ALL + 72 ) AS col1 @@ -5396,8 +5505,11 @@ SELECT DISTINCT + 96 AS col1, 72 + + 35 + 76 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(32\) \+ Int64\(\-32\) AS col0" at position 0 and "Int64\(15\) / Int64\(14\) \* Int64\(57\) \+ Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) + + 32 + - 32 AS col0, + 15 / 14 * 57 + - 91 AS col0 +---- +-34 +NULL query II rowsort label-1012 SELECT ALL - 1 AS col1, - ( + SUM ( - 1 ) ) AS col2 @@ -5465,8 +5577,11 @@ SELECT ALL + + 37 * 36 * + + 32 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col1" at position 0 and "Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 99 col1, + 70 AS col1 +---- +-99 +70 query II rowsort label-1025 SELECT DISTINCT + + NULLIF ( - 84, 39 ), ( + COUNT ( * ) ) * + 9 + 54 * 18 AS col1 @@ -6350,8 +6465,11 @@ SELECT NULLIF ( - 99, - 4 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 169 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col1" at position 0 and "Int64\(89\) \+ Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 4 AS col1, 89 + 80 AS col1 +---- +169 +4 query I rowsort SELECT + NULLIF ( - 65, - - 18 - - 69 ) @@ -6440,8 +6558,11 @@ SELECT ALL - 90 + 94 + 19 * 94 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - -6776 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col2" at position 0 and "Int64\(88\) \* Int64\(\-77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 18 col2, + 88 * - 77 AS col2 +---- +-18 +-6776 query I rowsort label-1214 SELECT DISTINCT - 79 + - MAX ( ALL - + 94 ) - 74 col2 @@ -7921,8 +8042,11 @@ SELECT CAST ( + 82 AS INTEGER ) * - 75 AS col0, 17 + - - 64 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 AS col0, ( 38 ) AS col0 +---- +37 +38 query II rowsort label-1498 SELECT COUNT ( * ), 81 AS col1 @@ -8201,8 +8325,11 @@ SELECT ( + 13 ) AS col0, + 62 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3776 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* Int64\(53\) \- max\(DISTINCT Int64\(\-28\)\) \+ Int64\(38\) AS col1" at position 0 and "Int64\(57\) \+ Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 70 * 53 - MAX ( DISTINCT - 28 ) + + 38 AS col1, 57 + 42 AS col1 +---- +3776 +99 query I rowsort SELECT + 81 * - 70 AS col2 @@ -8648,8 +8775,11 @@ SELECT - ( + 25 ) * + - ( + + 81 ) + - 0 + + 66 + - COUNT ( * ) + - 57 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 AS col0, 58 AS col0 +---- +58 +76 query I rowsort label-1636 SELECT - 2 + - 7 / + - 93 + CASE 36 WHEN 69 THEN NULL WHEN - NULLIF ( - 1, - + 71 ) THEN NULL WHEN 90 THEN - 49 + + + COALESCE ( + CAST ( 37 AS INTEGER ), - - COUNT ( * ) + - 7 ) END + + CAST ( - COUNT ( * ) AS INTEGER ) * 20 @@ -8660,15 +8790,23 @@ 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\(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\. +query III valuesort 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 +---- +1 +68 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3780 # Datafusion - Expected - 6745 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* Int64\(71\) AS col0" at position 1 and "Int64\(\-98\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 45 * 84, + 95 * 71 col0, - 98 AS col0 +---- +-98 +3780 +6745 query I rowsort SELECT - 15 + + 77 @@ -9302,8 +9440,12 @@ SELECT + + NULLIF ( + - 74, - + 32 + - 75 ) / - 86 + - 69 - - + 61 * - + NULLIF # Datafusion - Expected - -84 # Datafusion - Expected - -91 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col2" at position 0 and "Int64\(\-72\) \+ Int64\(\-19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 84 AS col2, - 72 + + - 19 AS col2, + COUNT ( * ) - - NULLIF ( + 30, - MIN ( + 68 ) + + + 35 ) AS col2 +---- +-84 +-91 +31 query I rowsort SELECT DISTINCT - 6 * + - 40 * + 9 AS col1 @@ -9384,8 +9526,11 @@ SELECT - 14 * + - 69 * + - 17 + - + 46 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "Int64\(\-97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 2 AS col0, - 97 AS col0 +---- +-97 +2 query I rowsort label-1776 SELECT DISTINCT COUNT ( * ) + - + 24 * - ( - 40 ) * 18 * - 7 + 96 AS col0 @@ -9496,8 +9641,12 @@ SELECT + - 20 AS col2, + 73 AS col0 # Datafusion - Expected - 3 # Datafusion - Expected - 77 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 3 AS col0, 77 AS col0, - 18 AS col2 +---- +-18 +3 +77 query I rowsort label-1795 SELECT DISTINCT + + CASE - 70 WHEN + - COALESCE ( + 73, + 82 - + - 57, - + 91 ) - - + ( + 3 ) + ( + 3 ) THEN - - 75 - 47 * - 7 WHEN + + COUNT ( * ) + + + COALESCE ( - AVG ( 37 ), - + 3 ) THEN - ( 89 ) + 12 END * 72 @@ -9507,8 +9656,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 7690 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* Int64\(94\) \+ Int64\(45\) \- nullif\(Int64\(60\), \(\- Int64\(81\)\)\) \* \(\- Int64\(55\)\) \- count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(35\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(17\) \+ Int64\(88\) \* Int64\(15\) AS col0" at position 0 and "CASE Int64\(69\) WHEN coalesce\(Int64\(81\), Int64\(\-95\) \* Int64\(\-36\) \- Int64\(\-58\) \* Int64\(45\)\) \* Int64\(53\) THEN NULL WHEN Int64\(97\) \* CAST\(NULL AS Int32\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(96\) WHEN Int64\(33\) THEN Int64\(72\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +7690 +NULL query I rowsort label-1797 SELECT + MAX ( + + 50 ) @@ -9719,8 +9871,11 @@ SELECT DISTINCT - MIN ( ALL + - 3 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -19125 # Datafusion - Expected - 155521 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(45\) \* Int64\(\-17\) AS col0" at position 0 and "Int64\(36\) \* Int64\(\-60\) \* \(\- Int64\(72\)\) \+ \(\- \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 * + 45 * - 17 AS col0, 36 * - 60 * - ( 72 ) + - - CAST ( COUNT ( * ) AS INTEGER ) AS col0 +---- +-19125 +155521 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -9749,8 +9904,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(28\) \- Int64\(53\) AS col1" at position 0 and "CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(32\) THEN \(\- avg\(Int64\(86\)\)\) WHEN Int64\(43\) \* Int64\(66\) \+ Int64\(6\) \+ CAST\(NULL AS Int32\) \- Int64\(29\) THEN sum\(Int64\(4\)\) \- Int64\(\-5\) WHEN Int64\(88\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(6\) \* Int64\(79\) \- \(\- sum\(Int64\(73\)\)\) THEN coalesce\(Int64\(62\), Int64\(\-18\) \* Int64\(75\)\) \* Int64\(13\) \+ \(\- CAST\(NULL AS Int32\)\) ELSE NULL END \+ Int64\(\-77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +-25 +NULL query I rowsort label-1843 SELECT ALL - COUNT ( * ) * COUNT ( * ) * + + 51 * 42 AS col1 @@ -9806,8 +9964,11 @@ NULL # 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 "min\(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 II valuesort SELECT ALL + ( + MIN ( - 14 ) ) AS col0, + 67 AS col0 +---- +-14 +67 query I rowsort SELECT DISTINCT 58 * 22 AS col2 @@ -9910,8 +10071,11 @@ SELECT MAX ( + 76 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 5428 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* Int64\(92\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 * 92 AS col2, COUNT ( * ) AS col2 +---- +1 +5428 query I rowsort SELECT 43 * - 71 + CASE - 27 WHEN 21 THEN - 12 ELSE 92 * - 9 + 13 END * + - 71 * - ( - + 29 ) AS col2 @@ -9987,8 +10151,11 @@ SELECT ALL + COALESCE ( 22, - 47 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -202713 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \+ Int64\(84\) \* Int64\(34\) \* \(\- Int64\(71\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Float64\)\) \+ Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT + 63 + 84 * 34 * - + 71 AS col2, - CAST ( NULL AS FLOAT8 ) + + 2 AS col2 +---- +-202713 +NULL query I rowsort label-1888 SELECT ALL CASE + 29 WHEN - 38 + + - CASE ( 68 ) WHEN + - COUNT ( * ) THEN NULL WHEN + CASE 29 WHEN + 25 / 89 * + 57 * - 7 THEN 7 END + - 68 * 55 THEN + COUNT ( * ) / 11 END THEN + CASE + - COUNT ( * ) WHEN 76 THEN + + COALESCE ( COUNT ( - - 64 ), + 84 ) END WHEN + AVG ( DISTINCT 12 ) THEN 20 ELSE NULL END + + COUNT ( * ) AS col2 @@ -10226,8 +10393,11 @@ SELECT DISTINCT + MAX ( - 98 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col1, + 92 AS col1 +---- +1 +92 query I rowsort label-1934 SELECT CAST ( + - NULLIF ( + ( + 26 ), + 76 ) AS INTEGER ) @@ -10355,8 +10525,11 @@ SELECT ( COUNT ( * ) ) + - 73 + 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \+ Int64\(\-4\) \- nullif\(\(\- Int64\(\-9\)\), Int64\(40\)\) AS col0" at position 0 and "Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 + + - 4 - NULLIF ( - - 9, + 40 ) col0, + 71 AS col0 +---- +11 +71 query I rowsort SELECT 60 - - 52 AS col1 @@ -10417,8 +10590,11 @@ SELECT 49 * 64 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 "Int64\(55\) / Int64\(93\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 / 93 AS col1, 73 col1 +---- +0 +73 query I rowsort label-1970 SELECT 91 * - COUNT ( * ) @@ -10521,8 +10697,11 @@ SELECT ( - COUNT ( * ) ) + + 32 + + 75 / 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 97 AS col0, COUNT ( * ) AS col0 +---- +1 +97 query I rowsort label-1990 SELECT 69 + 46 + 93 + 10 * + + 19 + COUNT ( * ) @@ -10661,8 +10840,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 48 AS col2, + 50 AS col2 +---- +48 +50 query I rowsort label-2016 SELECT - + 95 * 4 + - ( 82 ) * - COUNT ( * ) AS col2 @@ -10931,8 +11113,11 @@ SELECT ALL 69 AS col0, 27 * + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2472 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) / \(\- \(\- count\(DISTINCT Int64\(\-33\)\)\)\) / coalesce\(count\(Int64\(55\)\), Int64\(38\) \+ Int64\(42\) \- Int64\(53\) \* Int64\(65\), count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-82\)\) \* Int64\(31\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 / - - COUNT ( DISTINCT - 33 ) / + COALESCE ( + COUNT ( ALL 55 ), + 38 + + 42 - + + 53 * 65, + COUNT ( * ) ) - - - 82 * + 31 col2, - CAST ( NULL AS INTEGER ) AS col2 +---- +-2472 +NULL query I rowsort SELECT 57 * - 54 AS col0 @@ -11111,8 +11296,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 7 + 95 AS col0, + 71 + + - COUNT ( * ) col0, + + 45 * - 23 AS col1 +---- +-1035 +70 +88 query II rowsort label-2102 SELECT ALL + COUNT ( * ) AS col2, 79 AS col1 @@ -11292,8 +11481,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 6 + - + 3 col1, 63 - - COUNT ( * ) AS col1 +---- +3 +64 query I rowsort label-2137 SELECT ALL - COUNT ( * ) + + - 73 @@ -11412,8 +11604,11 @@ SELECT - CAST ( - 34 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 58 AS col0, COUNT ( * ) AS col0 +---- +1 +58 query I rowsort label-2159 SELECT + 78 + + + 43 + ( - NULLIF ( - 10, + 28 / + MIN ( 94 ) ) ) AS col1 @@ -11888,8 +12083,11 @@ SELECT ALL - 78 * - - 64 + + 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "Int64\(46\) \- Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 90 ) AS col2, 46 - + 91 AS col2 +---- +-45 +90 query I rowsort label-2251 SELECT + 19 / 96 AS col2 @@ -12035,8 +12233,11 @@ SELECT ALL - ( + ( - 30 ) ) + + + 41 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(50\) \+ Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 96 + + + COUNT ( * ) AS col2, 50 + 26 AS col2 +---- +-95 +76 query I rowsort label-2279 SELECT ALL + 84 / 54 + + + 51 AS col2 @@ -12286,8 +12487,11 @@ SELECT 46 * - - 16 * 98 + - - 79 + SUM ( 46 ) - + - MAX ( ALL + - 66 ), - 17 * + # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-16\)\) AS col2" at position 0 and "CASE Int64\(\-67\) WHEN CAST\(\(\- Int64\(\-83\)\) AS Int32\) \* Int64\(72\) \+ Int64\(\-14\) THEN NULL ELSE Int64\(\-27\) \- Int64\(77\) \+ Int64\(61\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 16 AS col2, CASE + - 67 WHEN + CAST ( - - 83 AS INTEGER ) * + 72 + - 14 THEN NULL ELSE - 27 - 77 + 61 END AS col2 +---- +-43 +16 query II rowsort SELECT ALL - - 25 AS col1, + 35 @@ -12702,8 +12906,11 @@ SELECT - 33 * - 18 / 84 * 0 * - COUNT ( * ) * - - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6960 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(80\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 87 * 80 AS col1, 92 AS col1 +---- +6960 +92 query I rowsort SELECT ALL ( + + ( + - 56 ) ) AS col1 @@ -12829,8 +13036,11 @@ SELECT ALL 92 + - - 23 * - CAST ( - 43 AS INTEGER ) + 61 + - 83 * + + 82 * + 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 42 AS col2, COUNT ( * ) AS col2 +---- +-42 +1 query I rowsort label-2430 SELECT - COUNT ( + 95 ) col1 @@ -12946,8 +13156,11 @@ SELECT 47 + 84 + + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2320 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* Int64\(80\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 29 * 80 col2, + 45 AS col2 +---- +2320 +45 query I rowsort SELECT 53 * + 4 @@ -13308,8 +13521,11 @@ 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\(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\. +query II valuesort SELECT + COALESCE ( + - COUNT ( * ), 19 + + 12 ) AS col1, - 62 AS col1 +---- +-1 +-62 query II rowsort label-2521 SELECT ( - 98 ) * 99 - - - CAST ( 23 AS INTEGER ) AS col1, NULLIF ( - 37, - CAST ( - 23 AS INTEGER ) ) @@ -13545,8 +13761,11 @@ SELECT 63 - NULLIF ( - 76, - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "Int64\(59\) \* min\(Int64\(\-8\)\) \+ CAST\(NULL AS Float64\) \+ Int64\(69\) \* Int64\(84\) \+ Int64\(94\) \+ Int64\(\-80\) \* Int64\(62\) \+ Int64\(78\) \+ \(\- \(\- CAST\(Int64\(42\) AS Int32\)\)\) \* Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT 63 AS col2, + 59 * MIN ( - 8 ) + + CAST ( NULL AS FLOAT8 ) + + ( 69 ) * 84 + + 94 + + - 80 * + 62 + + 78 + - - CAST ( + 42 AS INTEGER ) * + 25 AS col2 +---- +63 +NULL query I rowsort label-2567 SELECT + NULLIF ( + 39, 47 * CAST ( NULL AS INTEGER ) ) col1 @@ -13588,8 +13807,11 @@ SELECT - 89 * 39 + - 34 AS col1, 96 * - 15 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 99 AS col0, + 25 col0 +---- +25 +99 query I rowsort SELECT DISTINCT 76 * + 83 @@ -13655,8 +13877,11 @@ SELECT ( - + 66 ) * + 3 # 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 "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 89 AS col1, + 3 AS col1 +---- +-89 +3 query I rowsort label-2587 SELECT 38 * + 41 + + ( MIN ( 50 ) ) @@ -13694,8 +13919,11 @@ SELECT CAST ( - - 24 AS INTEGER ) + 27 * + 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 105 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \- Int64\(\-22\) \+ \(\- Int64\(\-20\)\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 - - 22 + + - ( - 20 ) AS col2, ( 38 ) col2 +---- +105 +38 query I rowsort SELECT DISTINCT - ( - 44 ) AS col1 @@ -13720,8 +13948,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "\(\- Int64\(\-32\)\) \+ count\(Int64\(40\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 AS col1, - ( - 32 ) + COUNT ( 40 ) AS col1 +---- +30 +33 query II rowsort label-2599 SELECT 0 AS col2, + COUNT ( * ) @@ -13816,8 +14047,11 @@ SELECT DISTINCT - + 57 + + + ( - MIN ( + 81 ) ) col1, 54 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 AS col0, - 15 col0 +---- +-15 +7 query I rowsort SELECT 80 + 6 AS col1 @@ -14313,8 +14547,11 @@ SELECT 1 / + ( - 85 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ Int64\(69\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 4 + 69 + + + COUNT ( * ) AS col0, + COUNT ( * ) AS col0 +---- +1 +74 query I rowsort label-2712 SELECT ALL - COUNT ( * ) + 85 AS col1 @@ -15215,8 +15452,11 @@ SELECT - 4 + - 68 # 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 "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 74 AS col0, + 85 col0 +---- +-74 +85 query I rowsort SELECT ALL + ( + + 4 ) * - 72 @@ -15399,8 +15639,11 @@ SELECT - 2 / 62, + 42 * + 63 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "Int64\(60\) \+ Int64\(\-38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 40 AS col1, + 60 + - 38 AS col1 +---- +22 +40 query I rowsort label-2920 SELECT DISTINCT + 15 * - - COUNT ( * ) @@ -15499,8 +15742,11 @@ 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\(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\. +query II valuesort 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 +---- +3128 +NULL query I rowsort SELECT 24 + - 43 AS col0 @@ -15515,8 +15761,11 @@ SELECT ALL + MIN ( ALL + 45 ) - - + COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col0" at position 0 and "Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 91 ) AS col0, - 25 AS col0 +---- +-25 +91 query I rowsort SELECT ALL - 86 * - 83 + - + 67 @@ -15700,8 +15949,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-27\), Int64\(1\)\) AS col0" at position 0 and "Int64\(\-96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL NULLIF ( - 27, 1 ) col0, - 96 AS col0 +---- +-27 +-96 query I rowsort SELECT - 50 + - ( + 2 ) + + 32 * - + 82 * + 22 AS col0 @@ -16029,8 +16281,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -6884 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col2" at position 0 and "Int64\(\-85\) \+ Int64\(45\) \- coalesce\(Int64\(80\), Int64\(22\)\) \+ \(\- Int64\(45\)\) \* Int64\(\-2\) \* Int64\(\-75\) \- Int64\(14\) \+ Int64\(\-48\) / Int64\(67\) / Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 0 AS col2, - 85 + + + 45 - COALESCE ( 80, 22 ) + - + 45 * - 2 * - 75 - + + 14 + - 48 / 67 / 71 col2 +---- +-6884 +0 query I rowsort label-3041 SELECT 45 / - 58 @@ -16045,8 +16300,11 @@ SELECT 16 + 92 * + + 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 AS col1, 22 AS col1 +---- +22 +7 query I rowsort label-3044 SELECT ALL ( + MAX ( ALL - 4 ) ) + - - 88 @@ -16061,8 +16319,11 @@ SELECT COALESCE ( + 44, + 61 ) + - 33 + + 55 + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "sum\(Int64\(83\)\) \+ \(\- Int64\(\-42\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 66 AS col1, + SUM ( ALL + 83 ) + - - 42 col1 +---- +125 +66 query I rowsort SELECT 41 * - + 59 AS col1 @@ -16204,8 +16465,11 @@ SELECT ALL - 50 * - + ( - 21 ) + + 33 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 14 AS col1, 21 AS col1 +---- +14 +21 query I rowsort label-3074 SELECT DISTINCT - NULLIF ( 39, - 75 ) * + COUNT ( * ) @@ -16353,8 +16617,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + ( + + COUNT ( * ) ) / - 73 col0, 5 * 83 + - MAX ( DISTINCT - 27 ) col0 +---- +0 +442 query II rowsort SELECT ALL + 99, - 85 AS col2 @@ -16463,8 +16730,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col0" at position 0 and "CAST\(nullif\(Int64\(53\), Int64\(30\) \+ CASE Int64\(16\) WHEN Int64\(26\) THEN Int64\(15\) \+ Int64\(84\) END\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 94 AS col0, + CAST ( NULLIF ( + 53, + 30 + + CASE + 16 WHEN 26 THEN 15 + + 84 END ) AS INTEGER ) AS col0 +---- +53 +94 query I rowsort SELECT DISTINCT 71 * 49 @@ -17066,8 +17336,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-91\) \* Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - 23 ) AS col2, - CAST ( NULL AS INTEGER ) * - 91 * 77 AS col2 +---- +-23 +NULL query I rowsort SELECT DISTINCT + 84 * + ( - 60 ) * 75 @@ -17077,8 +17350,11 @@ SELECT DISTINCT + 84 * + ( - 60 ) * 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) / Int64\(27\) \+ Int64\(71\) \+ Int64\(\-20\) \+ coalesce\(Int64\(98\), Int64\(\-21\) \+ Int64\(13\)\) \* Int64\(35\) \+ CAST\(NULL AS Int32\) \* Int64\(\-37\) \+ Int64\(\-12\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 67 / + 27 + + 71 + - 20 + COALESCE ( 98, - 21 + 13 ) * 35 + CAST ( NULL AS INTEGER ) * + - 37 + - 12 AS col2, 35 AS col2 +---- +35 +NULL query I rowsort label-3241 SELECT ALL 36 / - - ( + - 71 ) + + - MIN ( DISTINCT - 95 ) AS col0 @@ -17113,8 +17389,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + NULLIF ( + + COUNT ( * ), 98 ) AS col1, + 52 AS col1 +---- +1 +52 query I rowsort label-3248 SELECT ALL + 17 / 38 + + 42 @@ -17842,8 +18121,11 @@ SELECT - - 76 * 21 * 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 1607 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(82\), \(\- Int64\(4\)\)\) AS col1" at position 0 and "Int64\(41\) \* Int64\(37\) \+ Int64\(89\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + NULLIF ( 82, - + 4 ) AS col1, 41 * + 37 + 89 + + + COUNT ( * ) AS col1 +---- +1607 +82 query I rowsort label-3389 SELECT + + COALESCE ( + 16, CAST ( 7 AS INTEGER ) + + 55, + - ( 62 ) ) * + 81 @@ -18872,8 +19154,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -828 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \* Int64\(\-23\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 36 * - 23 AS col0, + 21 AS col0 +---- +-828 +21 query I rowsort label-3586 SELECT CASE + - CASE CAST ( + 82 AS INTEGER ) WHEN - - AVG ( DISTINCT - 56 ) THEN + 26 WHEN - ( 95 ) THEN NULL ELSE NULL END WHEN 84 / - + 36 THEN COUNT ( * ) + + + 43 * - 23 WHEN - 7 THEN NULL END @@ -19097,8 +19382,11 @@ SELECT ALL + 25 + - 55 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 51 AS col0, + COUNT ( * ) AS col0 +---- +1 +51 query I rowsort SELECT 85 * + 89 AS col2 @@ -19332,8 +19620,11 @@ SELECT DISTINCT 78 * - + 75 + + 92, - ( + 98 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 106 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "Int64\(41\) \+ Int64\(65\) \+ \(\- Int64\(21\)\) / Int64\(73\) \* coalesce\(Int64\(\-41\), Int64\(\-53\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 22 AS col1, 41 + ( 65 ) + - + 21 / ( + 73 ) * + COALESCE ( - 41, + ( + - 53 ) ) AS col1 +---- +106 +22 query I rowsort label-3674 SELECT - 55 + + COALESCE ( 58, - + 58 / - NULLIF ( CAST ( + 1 AS INTEGER ), + 78 * + 4 - - COUNT ( * ) ) + - + COUNT ( * ) + + + 6, - 47 * 58 ) @@ -19576,8 +19867,11 @@ SELECT - COALESCE ( ( - 33 ), + - COUNT ( * ) * 2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -192 # Datafusion - Expected - 41 -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\(63\) \+ Int64\(\-22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 93 + - + 99 AS col2, 63 + - 22 AS col2 +---- +-192 +41 query I rowsort SELECT ALL 83 + + 86 * 10 AS col2 @@ -19789,8 +20083,12 @@ SELECT + MAX ( DISTINCT + 79 ) # Datafusion - Expected - -36 # Datafusion - Expected - -3422 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(36\)\) AS col1" at position 0 and "Int64\(\-11\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - + 36 AS col1, - 58 * - - 59 * - - COUNT ( * ), - 11 AS col1 +---- +-11 +-3422 +-36 query I rowsort label-3762 SELECT + 16 / + 18 * + 73 + MAX ( DISTINCT + 64 ) - + COUNT ( 13 ) AS col0 @@ -19889,8 +20187,11 @@ SELECT ALL 6 / 95 col2, MIN ( + COALESCE ( + 47, - 43 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "nullif\(Int64\(41\), CAST\(NULL AS Float64\) \+ Int64\(92\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + 12 * + + COUNT ( * ) AS col0, NULLIF ( + 41, CAST ( NULL AS FLOAT8 ) + 92 ) AS col0 +---- +12 +41 query I rowsort label-3781 SELECT ALL 70 / + CAST ( NULL AS INTEGER ) AS col2 @@ -19989,8 +20290,11 @@ SELECT ALL - + ( + - 65 ) * - 73 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 32 AS col0, 39 AS col0 +---- +32 +39 query I rowsort label-3800 SELECT + SUM ( ALL 57 ) AS col0 @@ -20067,8 +20371,11 @@ SELECT DISTINCT 91 / 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -2231 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ \(\- \(\- nullif\(\(\- Int64\(1\)\), Int64\(\-57\) \+ \(\- \(\- Int64\(\-29\)\)\)\)\)\) AS col0" at position 0 and "Int64\(\-97\) \* Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 95 + - + ( - + NULLIF ( - ( + 1 ), - 57 + - - ( + - 29 ) ) ) AS col0, - 97 * + 23 AS col0 +---- +-2231 +94 query I rowsort SELECT + 65 + + 67 @@ -20215,8 +20522,11 @@ SELECT - + 49 AS col0, + 72 * - - 95 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42144 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \* Int64\(98\) \+ Int64\(8\) \* min\(Int64\(\-78\)\) \* Int64\(60\) AS col2" at position 0 and "Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 48 * 98 + + 8 * + MIN ( + - 78 ) * 60 col2, - 37 AS col2 +---- +-37 +-42144 query I rowsort label-3843 SELECT ALL COUNT ( * ) * 46 AS col0 @@ -20874,8 +21184,11 @@ SELECT ALL - 31 + + 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ Int64\(\-67\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 + - 67 + COUNT ( * ) AS col1, - COUNT ( * ) AS col1 +---- +-1 +-36 query II rowsort SELECT 7 AS col2, + 68 + 87 @@ -20983,8 +21296,11 @@ 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\(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\. +query II valuesort SELECT - 79 * 99 * - - COUNT ( * ) AS col2, COUNT ( DISTINCT - 3 ) AS col2 +---- +-7821 +1 query I rowsort SELECT ALL 53 * 87 AS col0 @@ -21104,8 +21420,11 @@ SELECT 97 * - - ( + - 67 ) + + + 4 col1 # 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\(DISTINCT \(\- Int64\(78\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 30 col1, COUNT ( DISTINCT - + 78 ) col1 +---- +1 +30 query I rowsort label-4014 SELECT + + NULLIF ( - + NULLIF ( + COALESCE ( - 73, COUNT ( * ) ), - + 21 + - 83 * + 53 ), 19 + + COUNT ( * ) - + ( + 1 ) * + + CAST ( NULL AS INTEGER ) * + 92 ) @@ -21574,8 +21893,11 @@ 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\(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\. +query II valuesort SELECT 46 + - 25 + + COUNT ( * ) * 9 AS col1, - 77 AS col1 +---- +-77 +30 query I rowsort SELECT 29 * + + 48 AS col1 @@ -21739,8 +22061,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) + - SUM ( DISTINCT + 10 ) col0, - 28 + 10 AS col0 +---- +-18 +-9 query I rowsort label-4135 SELECT - ( + + COUNT ( * ) ) - + 21 * 83 @@ -22007,8 +22332,11 @@ SELECT - - 90 - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT ALL + - 55 AS col1, - 52 AS col1 +---- +-52 +-55 query I rowsort label-4183 SELECT NULLIF ( CASE - - 64 WHEN - COUNT ( * ) * 50 / 2 + - + 74 * - - COUNT ( * ) THEN + ( + 72 ) END, - 37 * CAST ( NULL AS INTEGER ) + + 35 + + COUNT ( * ) - - CASE - 75 WHEN - - 24 + 6 + + ( + COUNT ( * ) ) THEN - 8 - - - CAST ( NULL AS INTEGER ) END ) col0 @@ -22018,8 +22346,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 59 AS col1, - 16 AS col1 +---- +-16 +59 query I rowsort label-4185 SELECT ALL + + 27 / - COUNT ( * ) + 84 @@ -22418,8 +22749,11 @@ SELECT + COALESCE ( 41, + 77 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-27\), Int64\(\-47\)\) \+ \(\- Int64\(\-56\)\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( - 27, - 47 ) + - - 56 col1, 79 AS col1 +---- +29 +79 query I rowsort label-4262 SELECT ALL + MAX ( + ( - CAST ( NULL AS INTEGER ) ) ) @@ -22590,8 +22924,12 @@ SELECT - 82 * - COUNT ( 58 ), 87 AS col2 # Datafusion - Expected - 26 # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 1 and "\(\- nullif\(sum\(CAST\(NULL AS Int32\)\), Int64\(\-80\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 26 col1, ( + 99 ) AS col0, - NULLIF ( SUM ( ALL CAST ( NULL AS INTEGER ) ), - 80 ) AS col0 +---- +26 +99 +NULL query I rowsort label-4295 SELECT + 98 * + COUNT ( * ) + + 70 @@ -23732,8 +24070,11 @@ SELECT DISTINCT + MIN ( DISTINCT 92 ) * + 91 + + + 86 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "nullif\(Int64\(17\), \(\- Int64\(\-36\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 30 AS col2, NULLIF ( 17, + ( - - 36 ) ) AS col2 +---- +17 +30 query I rowsort SELECT DISTINCT + 33 * + 84 AS col2 @@ -24897,8 +25238,11 @@ SELECT ALL - - NULLIF ( 65, + 48 * + - 78 - - 74 + + 88 ) # 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 "Int64\(\-9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 34 AS col0, - 9 AS col0 +---- +-34 +-9 query II rowsort label-4739 SELECT + COUNT ( * ) AS col1, CAST ( + COUNT ( * ) AS INTEGER ) @@ -25524,8 +25868,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2970 # Datafusion - Expected - 1494 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \* Int64\(45\) AS col2" at position 0 and "Int64\(18\) \* Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 * 45 AS col2, 18 * + 83 AS col2 +---- +1494 +2970 query II rowsort label-4858 SELECT 36 + 81, COUNT ( * ) * + 32 * 63 AS col0 @@ -25714,8 +26061,11 @@ SELECT + COUNT ( * ) / - + COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3385 # Datafusion - Expected - 5806 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \* min\(Int64\(94\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- sum\(Int64\(\-70\)\)\) \* Int64\(84\) \+ \(\- count\(Int64\(85\)\)\) \+ Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 36 * + MIN ( ALL + 94 ) + COUNT ( * ) AS col0, ( - ( + SUM ( - 70 ) ) ) * + + 84 + - + COUNT ( ALL + 85 ) + - 73 AS col0 +---- +3385 +5806 query I rowsort SELECT - 46 - - 98 + + 4 * - 94 * + 92 @@ -25877,8 +26227,11 @@ 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\(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\. +query II valuesort SELECT + 51 * - COUNT ( * ) * 83 + + 66 AS col1, 92 AS col1 +---- +-4167 +92 query II rowsort label-4924 SELECT 71 + - - CAST ( NULL AS INTEGER ) AS col1, 77 @@ -26561,14 +26914,20 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-6\) \+ Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 23 / 57 * + 67 AS col0, COUNT ( * ) * - 6 + + 92 col0 +---- +0 +86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 238080 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(62\) \* Int64\(48\) AS col2" at position 0 and "Int64\(16\) / CASE Int64\(31\) WHEN Int64\(41\) THEN Int64\(\-85\) END \+ Int64\(93\) \* Int64\(\-82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 * 62 * 48 AS col2, 16 / + CASE 31 WHEN 41 THEN + - 85 END + + + 93 * - 82 AS col2 +---- +238080 +NULL query I rowsort SELECT 16 * 75 @@ -26994,8 +27353,11 @@ SELECT DISTINCT - + 71 * + 66 + COUNT ( * ) / + 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1748 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* Int64\(23\) AS col2" at position 0 and "Int64\(\-35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( 76 ) * + 23 AS col2, - 35 col2 +---- +-35 +1748 query I rowsort SELECT DISTINCT + 84 * + - 37 AS col2 @@ -27031,8 +27393,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "min\(Int64\(88\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 78 AS col1, MIN ( 88 ) AS col1 +---- +78 +88 query I rowsort SELECT - 11 * 52 @@ -27350,8 +27715,11 @@ SELECT - ( - 20 ) AS col1, + 56 AS col2 # 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 "Int64\(9\) AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 9 AS col2, + 91 AS col2 +---- +9 +91 query I rowsort SELECT 9 * + 31 AS col2 @@ -27838,8 +28206,11 @@ SELECT ALL 79 + - + 40 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - -249429 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col0" at position 0 and "Int64\(47\) \* Int64\(61\) \* \(\- sum\(Int64\(87\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 61 AS col0, 47 * 61 * - SUM ( ALL + 87 ) AS col0 +---- +-249429 +-61 query I rowsort label-5297 SELECT DISTINCT SUM ( + 7 ) AS col1 @@ -27915,8 +28286,11 @@ SELECT 91 * + + 77 - - COALESCE ( - - 44, + 41, + 64 ), 30 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56657 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \* Int64\(\-26\) \* \(\- coalesce\(Int64\(22\), Int64\(60\)\)\) \- Int64\(29\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 99 ) * - 26 * - + COALESCE ( 22, + + 60 ) - + + 29 AS col0, 49 AS col0 +---- +-56657 +49 query I rowsort label-5311 SELECT 50 * - COUNT ( * ) AS col2 @@ -28133,8 +28507,11 @@ SELECT ALL 72 * + 92 + + - 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(5\)\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( + 5 ) AS col0, 69 AS col0 +---- +5 +69 query I rowsort SELECT COALESCE ( 93, + 71, 71 ) AS col1 @@ -28328,8 +28705,11 @@ SELECT - + 32 * 62 * 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -8273 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-90\) \+ Int64\(\-88\) \* Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) + - 90 + - 88 * 93 AS col0 +---- +-8273 +NULL query II rowsort label-5389 SELECT DISTINCT + 95, CASE ( 99 ) WHEN + 40 THEN + 85 * MAX ( ALL 79 ) WHEN + + ( - CASE 91 WHEN COUNT ( * ) THEN NULL WHEN - ( CASE 39 WHEN - 22 THEN NULL ELSE - 88 + - - 60 * - 82 * + - MAX ( DISTINCT + - 25 ) * NULLIF ( + 43, + CAST ( - 74 AS INTEGER ) ) + 19 + MAX ( DISTINCT 8 ) END ) / - 62 * + 64 - + - 70 THEN + 13 ELSE 90 - + 17 END ) THEN NULL ELSE NULL END AS col2 @@ -28651,8 +29031,11 @@ SELECT ALL - - SUM ( 1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 127 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "min\(\(\- Int64\(\-28\)\)\) \+ \(\- nullif\(Int64\(\-99\), Int64\(9\) \* Int64\(\-49\) \* \(\- Int64\(12\)\) \- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, MIN ( - - 28 ) + - NULLIF ( - 99, + 9 * - 49 * - ( + 12 ) - + + COUNT ( * ) ) AS col2 +---- +1 +127 query I rowsort label-5449 SELECT ALL 68 * + COUNT ( * ) + + + 43 AS col1 @@ -28719,8 +29102,11 @@ SELECT 80 * + - 4 + + - 92 + 96 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 1125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 0 and "Int64\(\-75\) \* max\(Int64\(\-15\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 26 col2, - 75 * + MAX ( ALL - 15 ) AS col2 +---- +1125 +26 query I rowsort SELECT DISTINCT + 17 + 45 @@ -28822,8 +29208,11 @@ SELECT DISTINCT 10 - + 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 6905010 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(54\)\) AS col1" at position 0 and "Int64\(\-45\) \* Int64\(30\) \* \(\- Int64\(\-93\)\) \* Int64\(\-55\) \+ Int64\(3\) \* Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( 54 ) AS col1, - 45 * + 30 * - - 93 * + - 55 + + 3 * + - 80 col1 +---- +54 +6905010 query I rowsort label-5481 SELECT + CAST ( NULL AS INTEGER ) + - 12 + - 80 * 78 * - COUNT ( + 73 ) + 58 @@ -29189,8 +29578,11 @@ SELECT 74 + 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col1" at position 0 and "Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 AS col1, - 87 AS col1 +---- +-87 +52 query II rowsort SELECT DISTINCT 88 AS col2, - 4 * 23 @@ -29206,8 +29598,11 @@ SELECT 94 + - 74 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col1" at position 0 and "Int64\(1\) \+ max\(DISTINCT Int64\(\-31\)\) \- Int64\(10\) \* Int64\(44\) / Int64\(\-66\) \* \(\- Int64\(1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 94 AS col1, 1 + + MAX ( DISTINCT - 31 ) - 10 * 44 / - 66 * - ( 1 ) AS col1 +---- +-36 +94 query I rowsort label-5553 SELECT COUNT ( * ) + + 59 @@ -29252,8 +29647,11 @@ SELECT 71 + - 10 + - ( 5 ) # 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 "Int64\(22\) / Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 55 AS col1, 22 / - 87 AS col1 +---- +0 +55 query I rowsort SELECT ALL - 88 + + 0 AS col0 @@ -29283,8 +29681,11 @@ SELECT DISTINCT - 38 * - 49 AS col0 # 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\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 AS col0, + 85 AS col0 +---- +32 +85 query II rowsort SELECT DISTINCT - 94 AS col2, + 10 col1 @@ -29348,8 +29749,11 @@ SELECT + COUNT ( DISTINCT + 54 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 169 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \+ Int64\(42\) \+ Int64\(89\) \+ Int64\(\-56\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 94 + ( + 42 ) + 89 + + - 56 col2, 75 AS col2 +---- +169 +75 query I rowsort label-5579 SELECT 13 / - 37 @@ -29424,8 +29828,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(67\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 90 * + 46 AS col1, COUNT ( * ) * - + 67 AS col1 +---- +-67 +4140 query I rowsort SELECT ALL + 84 * 81 * + 2 @@ -29579,8 +29986,11 @@ SELECT ALL + + CAST ( 38 AS INTEGER ) * + 81 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(36\)\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 36 AS col1, 91 AS col1 +---- +-36 +91 query II rowsort SELECT - 2, + 85 * 45 col2 @@ -29643,8 +30053,11 @@ SELECT ALL - 21 / 40 * - + COUNT ( * ) # 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\(nullif\(Int64\(0\), \(\- \(\- avg\(DISTINCT Int64\(6\)\)\)\)\), Int64\(87\)\) AS col0" at position 0 and "Int64\(\-62\) \+ \(\- CASE Int64\(48\) WHEN Int64\(6\) \* Int64\(12\) THEN Int64\(\-18\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT + NULLIF ( + NULLIF ( - 0, - - AVG ( DISTINCT + 6 ) ), + + 87 ) col0, - 62 + - ( + + CASE ( + + 48 ) WHEN 6 * 12 THEN - 18 END ) AS col0 +---- +0 +NULL query I rowsort label-5636 SELECT ALL + CASE - - 90 WHEN AVG ( - 86 ) THEN NULL ELSE + + 16 / - - 34 END / 98 * - - 9 + 25 + + 65 + + 48 / + - 83 + 34 AS col2 @@ -30254,8 +30667,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(\-5\)\) AS col1" at position 0 and "CAST\(CAST\(NULL AS Int32\) AS Float64\) \* Int64\(27\) \* Int64\(\-70\) \- Int64\(\-42\) \* \(\- Int64\(93\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL 85 * - - COUNT ( * ) + - ( - 5 ) AS col1, ( + CAST ( + + CAST ( NULL AS INTEGER ) AS FLOAT8 ) ) * + 27 * - 70 - - 42 * - + 93 col1 +---- +90 +NULL query I rowsort SELECT - 22 + - + 80 - - 93 * ( + 26 ) col0 @@ -30451,8 +30867,11 @@ SELECT 31 + - 54 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "Int64\(4\) \* Int64\(\-37\) \+ Int64\(35\) / \(\- CAST\(CAST\(NULL AS Int32\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 74 AS col1, 4 * - 37 + + 35 / + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col1 +---- +74 +NULL query I rowsort label-5790 SELECT DISTINCT 92 / - 81 AS col1 @@ -30538,8 +30957,11 @@ SELECT ALL CAST ( - - 20 AS INTEGER ) * 52 + - 97 + - 86 + - 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col1" at position 0 and "Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 22 AS col1, - 79 AS col1 +---- +-22 +-79 query I rowsort SELECT 12 * - 95 @@ -30914,14 +31336,20 @@ SELECT + 7 AS col1, 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 16 AS col0, + 82 AS col0 +---- +16 +82 # Datafusion - Datafusion expected results: # Datafusion - Expected - -247032 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* min\(Int64\(\-75\)\) \* Int64\(65\) \+ sum\(DISTINCT Int64\(\-59\)\) \* \(\- \(\- CAST\(Int64\(\-27\) AS Int32\)\)\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 51 * + + MIN ( - 75 ) * + 65 + + SUM ( DISTINCT + - 59 ) * - - CAST ( - 27 AS INTEGER ) AS col0, 63 AS col0 +---- +-247032 +63 query II rowsort label-5878 SELECT 71 * + + 49 + - - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) * 99 + + + 91 + COUNT ( * ) - + - ( + 12 ) * + - COUNT ( * ) * - 44 + - 70 + + - 38 @@ -31772,8 +32200,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 10 AS col1, COUNT ( * ) * - 99 AS col1 +---- +-99 +10 query I rowsort SELECT + 48 + + 52 * 88 + + 30 AS col2 @@ -32243,8 +32674,11 @@ SELECT ALL + + COALESCE ( - + 92, + 17, - COUNT ( * ) * COALESCE ( - 9, - 97 ) - # 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 "\(\- min\(Int64\(\-16\)\)\) / Int64\(64\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + MIN ( - 16 ) / 64 AS col2, 16 AS col2 +---- +0 +16 query I rowsort label-6135 SELECT ALL - + COUNT ( * ) * COUNT ( * ) / 28 * 15 + + 58 + 71 @@ -32310,8 +32744,11 @@ SELECT ALL - 19 + + 35 * + NULLIF ( 93, 40 + 39 ) * - 21 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 61 AS col1, 0 AS col1 +---- +-61 +0 query I rowsort label-6148 SELECT - 9 - - COUNT ( * ) + - 44 * + 3 * 85 + + MIN ( 3 ) @@ -32374,8 +32811,11 @@ SELECT 7 * - 61 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -3300 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-44\) \* Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, - 44 * 75 AS col2 +---- +-3300 +1 query II rowsort SELECT + 29, 53 + + + 55 + + - 43 AS col2 @@ -32680,8 +33120,11 @@ SELECT ALL - 46, - 79 * + 97 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 190 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ Int64\(46\) \+ Int64\(87\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 57 + 46 + + 87 AS col1, COUNT ( * ) AS col1 +---- +1 +190 query I rowsort label-6218 SELECT 91 + + COUNT ( ALL - 47 ) @@ -32907,8 +33350,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \- Int64\(47\) AS col0" at position 0 and "Int64\(48\) \+ Int64\(\-62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 56 - + + 47 AS col0, 48 + - 62 col0 +---- +-14 +9 query I rowsort SELECT - 68 * - - ( + - 90 ) @@ -33073,8 +33519,11 @@ 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\(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\. +query II valuesort SELECT ALL - 39 - 28 - NULLIF ( + 65, COUNT ( * ) ) AS col2, + 0 * + NULLIF ( - SUM ( ALL - 40 ), + 34 ) AS col2 +---- +-132 +0 query I rowsort SELECT 0 * + 84 AS col0 @@ -33192,8 +33641,11 @@ 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\(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\. +query II valuesort SELECT ALL - 40 AS col0, - 0 * CASE + + 64 WHEN - + 61 * 40 + - - COUNT ( * ) THEN NULL ELSE - COUNT ( * ) - + 50 * + MIN ( ( - 56 ) ) END AS col0 +---- +-40 +0 query I rowsort label-6315 SELECT NULLIF ( 80, + ( + + 54 ) ) * - CASE - + 7 WHEN CAST ( - - 40 AS INTEGER ) - CAST ( NULL AS INTEGER ) THEN NULL ELSE + + 76 + - 98 END + + COUNT ( * ) / - 7 + + 25 AS col2 @@ -33336,8 +33788,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + - 4 col1, - 72 AS col1 +---- +-3 +-72 query I rowsort label-6342 SELECT - MIN ( - + 44 ) AS col0 @@ -33347,8 +33802,11 @@ SELECT - MIN ( - + 44 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1915 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ coalesce\(Int64\(\-19\), Int64\(67\) \- Int64\(59\)\) \- Int64\(11\) \* \(\- Int64\(62\)\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-25\) \* \(\- Int64\(\-29\)\) \- Int64\(85\) \* Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 + COALESCE ( - 19, 67 - 59 ) - 11 * - + ( + 62 ) + + CAST ( NULL AS INTEGER ) AS col2, - 25 * - - 29 - 85 * 14 AS col2 +---- +-1915 +NULL query I rowsort SELECT ALL - 17 - - 67 + ( + 98 ) - + 87 @@ -33771,8 +34229,11 @@ 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\(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\. +query II valuesort SELECT ALL MIN ( - - 0 ) - + COUNT ( * ) + + COUNT ( * ) + 26 AS col2, 22 AS col2 +---- +22 +26 query I rowsort label-6424 SELECT CAST ( CASE + 23 WHEN - 41 THEN 59 WHEN + 6 THEN NULL END AS INTEGER ) * ( + COALESCE ( MIN ( - 25 ), 80, + 4 ) ) + 40 + 38 + 7 AS col0 @@ -34709,8 +35170,11 @@ SELECT ALL ( - 86 ) + ( - + 7 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 0 and "Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 11 col0, - 94 AS col0 +---- +-94 +11 query I rowsort SELECT ALL 60 * + 39 AS col1 @@ -34908,8 +35372,11 @@ SELECT - SUM ( + - 96 ) * - + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 91 AS col0, 67 AS col0 +---- +-91 +67 query I rowsort SELECT ALL 30 * - + 44 @@ -35356,8 +35823,11 @@ SELECT 15 / - - 93 + - 24 + + + 48 * - - 11 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2314 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* 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 II valuesort SELECT + 26 * + - 89 AS col1, + 46 col1 +---- +-2314 +46 query I rowsort label-6726 SELECT - CASE - - 9 WHEN + 34 * + + 92 * 19 * COUNT ( * ) + - - 71 THEN NULL ELSE 10 END + + ( - 36 ) AS col2 @@ -35912,8 +36382,11 @@ SELECT + 90 - + 82 + + + 95 + + + 20 * - - COALESCE ( - 25, 16, - 18 + + 84 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - -4361 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-13\)\) AS col1" at position 0 and "Int64\(\-89\) \* Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( ALL - 13 ) col1, - 89 * + 49 AS col1 +---- +-13 +-4361 query I rowsort label-6831 SELECT - 91 * - ( + 92 ) / - CAST ( NULL AS INTEGER ) * COUNT ( * ) * + 24 + - 57 AS col2 @@ -36739,8 +37212,11 @@ SELECT + + 57 * - - ( - 76 ) # 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 "Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + CAST ( NULL AS FLOAT8 ) AS col0, + 76 AS col0 +---- +76 +NULL query I rowsort SELECT DISTINCT - 71 + - - 78 AS col0 @@ -37162,8 +37638,11 @@ SELECT DISTINCT 27 / 27 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\(36\) \- Int64\(81\) AS col2" at position 0 and "Int64\(\-37\) / Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 - + 81 AS col2, - 37 / - 49 AS col2 +---- +-45 +0 query I rowsort label-7066 SELECT 35 / - ( + 82 ) * - 75 + + + COUNT ( * ) @@ -37710,8 +38189,11 @@ SELECT 60 * + - 30 * - + COALESCE ( 17, - + 52 - - MAX ( DISTINCT + 31 ) + + 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 480 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* Int64\(5\) AS col0" at position 0 and "Int64\(98\) \- Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 * + + 5 AS col0, 98 - 6 AS col0 +---- +480 +92 query I rowsort SELECT 67 + + + 31 AS col1 @@ -37800,8 +38282,11 @@ SELECT - - 70 * + 52 + - 59 * + + CAST ( + 71 AS INTEGER ) + - 61 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 AS col1, + COUNT ( * ) AS col1 +---- +1 +48 query I rowsort label-7188 SELECT + 56 / - 64 @@ -38171,8 +38656,11 @@ SELECT 61 * + + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 col0, + 7 AS col0 +---- +16 +7 query I rowsort SELECT 86 * + + 83 AS col2 @@ -38502,8 +38990,11 @@ SELECT + ( - + 39 ) * + 8, COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1838 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(30\), Int64\(60\) / \(\- CAST\(CAST\(NULL AS Int32\) AS Float64\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- max\(DISTINCT Int64\(\-52\)\)\) \* Int64\(55\)\) \* CASE Int64\(20\) WHEN Int64\(94\) \- \(\- CAST\(Int64\(12\) AS Int32\)\) THEN Int64\(\-95\) \+ \(\- Int64\(\-26\)\) \* Int64\(\-24\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(68\) WHEN Int64\(\-2\) \+ \(\- Int64\(83\)\) THEN coalesce\(Int64\(16\), Int64\(25\) \+ Int64\(14\) \+ Int64\(49\) \* Int64\(\-82\) \* Int64\(39\)\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) END \- Int64\(\-67\) AS col1" at position 0 and "Int64\(\-87\) \+ Int64\(77\) \* Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort 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 +---- +1838 +NULL query I rowsort label-7319 SELECT ALL 29 * - 2 + + + 59 + MIN ( - 55 ) * 52 * 42 @@ -38770,8 +39261,11 @@ SELECT 27 * + MIN ( DISTINCT - 9 ) * + 97 * + + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1769 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \* Int64\(\-52\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 34 * - 52 + + + COUNT ( * ) AS col2, 60 AS col2 +---- +1769 +60 query I rowsort SELECT + 43 + + 69 - 8 * - - 10 @@ -38960,8 +39454,11 @@ SELECT + 48 - - + 0 + - SUM ( 54 ) * + SUM ( DISTINCT - 4 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "Int64\(\-80\) \+ CASE \(\- Int64\(46\)\) WHEN CAST\(NULL AS Int32\) THEN Int64\(\-13\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 56 AS col2, - 80 + CASE - + 46 WHEN ( + CAST ( NULL AS INTEGER ) ) THEN + - 13 END AS col2 +---- +56 +NULL query I rowsort SELECT - 25 * - 39 AS col2 @@ -39028,8 +39525,11 @@ 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\(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\. +query II valuesort SELECT ALL + 15 * + 38 + 28 * - 16 + - ( 43 ) / + NULLIF ( + COUNT ( * ), - MAX ( - + 42 ) ) AS col0, + 21 AS col0 +---- +21 +79 query I rowsort label-7420 SELECT - ( - + 24 ) + 48 / 91 @@ -39217,8 +39717,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 53 col0, 35 + - 78 * - COUNT ( * ) AS col0 +---- +-53 +113 query II rowsort SELECT DISTINCT + + 63 col2, 78 @@ -39300,8 +39803,12 @@ 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\(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\. +query III valuesort SELECT - COUNT ( * ), 24 * MAX ( + 59 ) AS col1, - + ( + + COUNT ( * ) ) +---- +-1 +-1 +1416 query I rowsort label-7470 SELECT ALL + 35 + - - COUNT ( * ) AS col1 @@ -39810,8 +40317,11 @@ SELECT DISTINCT + MAX ( - 29 ) / 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(56\) \* Int64\(\-43\) \+ nullif\(Int64\(\-15\), CAST\(NULL AS Int32\)\) \+ CAST\(NULL AS Int32\) \* \(\- sum\(\(\- Int64\(\-43\)\)\)\) \+ \(\- Int64\(\-96\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, + 56 * - 43 + + NULLIF ( + - 15, + CAST ( NULL AS INTEGER ) ) + CAST ( NULL AS INTEGER ) * - SUM ( - - 43 ) + - - 96 AS col0 +---- +1 +NULL query I rowsort label-7566 SELECT + COUNT ( DISTINCT 7 ) / 19 + 81 AS col1 @@ -39847,8 +40357,11 @@ SELECT + COUNT ( * ) / - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - -144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) \+ Int64\(49\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-80\) \+ Int64\(\-1\) \- Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 94 + + 49 + COUNT ( * ) AS col1, - 80 + + - 1 - 63 AS col1 +---- +-144 +-44 query I rowsort SELECT ALL 30 + - - 70 AS col2 @@ -40448,8 +40961,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(84\) / \(\- Int64\(6\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 3 AS col1, + COUNT ( * ) + + 84 / - ( + 6 ) AS col1 +---- +-13 +3 query I rowsort label-7691 SELECT + MAX ( ALL 80 ) col2 @@ -40989,8 +41505,11 @@ SELECT - 95 * - 96 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col1" at position 0 and "Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 44 col1, 70 AS col1 +---- +-44 +70 query I rowsort label-7796 SELECT - 4 / - + 69 + + 36 / - ( - 32 ) + NULLIF ( + 21 - 52 * 61, + CASE - 10 WHEN CASE 30 WHEN + 60 THEN NULL ELSE + 98 END THEN + 91 ELSE NULL END / + 52 ) / 75 AS col2 @@ -41247,8 +41766,11 @@ SELECT DISTINCT 43 + + - CAST ( COUNT ( * ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(19\) AS col0" at position 0 and "Int64\(8\) \* Int64\(\-17\) \* Int64\(12\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) + + 19 AS col0, + 8 * - 17 * 12 + + - CAST ( NULL AS INTEGER ) AS col0 +---- +NULL +NULL query I rowsort label-7844 SELECT ALL + 53 / 98 + + + 14 + + 59 @@ -42025,8 +42547,11 @@ SELECT DISTINCT 4 col2, 11 - - - 57 AS col0 # 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\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 55 AS col1, 36 AS col1 +---- +36 +55 query II rowsort SELECT 64 AS col2, ( + 44 ) * - 4 - - - ( - + 59 ) * + 26 AS col1 @@ -42187,8 +42712,11 @@ SELECT DISTINCT - 78 - + 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(24\)\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( 24 ) AS col0, 63 AS col0 +---- +-24 +63 query I rowsort label-8024 SELECT ALL - NULLIF ( - 9, - - ( + COALESCE ( + + CAST ( - 17 AS INTEGER ), COUNT ( * ) * + + 37 - ( - 6 ) ) ) ) AS col2 @@ -42277,8 +42805,11 @@ SELECT + ( + 93 ) * + 12 * COUNT ( * ) * + + ( - 72 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- Int64\(\-97\)\) AS col2" at position 0 and "\(\- Int64\(47\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) + - - 97 AS col2, - ( + + 47 ) AS col2 +---- +-47 +NULL query I rowsort label-8041 SELECT DISTINCT + 82 * - 17 * - COUNT ( * ) @@ -42942,8 +43473,11 @@ SELECT ALL - 37 - - + 10 + 55 / + 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - -2501 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(25\)\) AS col0" at position 0 and "Int64\(41\) \* \(\- Int64\(61\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 25 AS col0, 41 * - + 61 AS col0 +---- +-25 +-2501 query II rowsort SELECT + 56, 99 AS col0 @@ -43026,8 +43560,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) + 84 AS col0, + 36 AS col0 +---- +36 +85 query I rowsort SELECT 41 * + 34 @@ -43172,8 +43709,11 @@ SELECT ALL - COUNT ( * ) * - ( + 58 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(5\)\) AS col1" at position 0 and "CASE WHEN NOT Int64\(\-43\) NOT IN \(\[Int64\(33\) \* Int64\(65\), Int64\(\-31\)\]\) THEN NULL WHEN Int64\(\-41\) IN \(\[Int64\(73\) \* CASE Int64\(33\) WHEN Int64\(\-25\) THEN \(\- CAST\(NULL AS Int32\)\) ELSE NULL END\]\) THEN Int64\(64\) WHEN NOT CAST\(CASE Int64\(52\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(51\) THEN Int64\(\-68\) ELSE NULL END AS Int32\) = Int64\(50\) THEN NULL END \* Int64\(11\) \+ nullif\(Int64\(\-3\) \+ Int64\(51\), Int64\(32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-5 +NULL query II rowsort label-8213 SELECT ALL + COUNT ( * ) + + 26 AS col2, 21 @@ -43250,8 +43790,11 @@ 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\(1\)\) AS count\(\*\)\)\) \- Int64\(\-88\) \* Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 AS col0, - 95 + - + 71 + ( - - COUNT ( * ) ) - + - 88 * + 77 col0 +---- +6611 +82 query I rowsort label-8228 SELECT + CASE ( 43 ) WHEN - 28 THEN - 12 - - COALESCE ( SUM ( ALL - 94 ), + - 85 * + 48 ) * - - 20 + 52 END + - + 16 * - 69 / COALESCE ( + CAST ( - ( + 73 ) AS INTEGER ), 21 ) + 60 AS col0 @@ -43292,8 +43835,11 @@ SELECT ( - + 72 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 559 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 0 and "Int64\(\-60\) \- \(\- sum\(Int64\(\-3\)\)\) \+ Int64\(88\) \* Int64\(81\) \+ Int64\(81\) \* \(\- max\(Int64\(17\)\)\) \+ \(\- Int64\(\-92\)\) \+ Int64\(\-55\) \* Int64\(95\) \- \(\- max\(Int64\(4\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 91 AS col1, - 60 - - SUM ( ALL - 3 ) + 88 * + + 81 + 81 * - MAX ( ALL + + 17 ) + - - 92 + - 55 * 95 - - MAX ( + 4 ) AS col1 +---- +559 +91 query I rowsort SELECT ( + + 25 ) AS col2 @@ -43363,8 +43909,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(70\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 62 AS col1, - 30 * - 91 + + COUNT ( * ) * - + 70 AS col1 +---- +2660 +62 query II rowsort SELECT ALL + + 67 * + - 13 + - 67 AS col1, - 10 @@ -43401,8 +43950,11 @@ SELECT DISTINCT + + CAST ( - NULLIF ( + 16, 43 - + 6 ) AS INTEGER ) * COALESCE ( # 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 col0" at position 0 and "Int64\(\-27\) \+ \(\- Int64\(60\)\) \+ Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 94 AS col0, - 27 + - + 60 + 31 AS col0 +---- +-56 +94 query I rowsort label-8256 SELECT - 96 + - - 56 * + + 54 / - + COUNT ( * ) @@ -43794,8 +44346,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 74 AS col2, 57 AS col2 +---- +57 +74 query II rowsort label-8331 SELECT DISTINCT 25 AS col1, COUNT ( * ) AS col0 @@ -43821,8 +44376,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 215 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ Int64\(34\) \* Int64\(4\) \+ Int64\(56\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 23 + + 34 * + + 4 + + 56 AS col0, 70 AS col0 +---- +215 +70 query I rowsort label-8336 SELECT - COUNT ( * ) - + COUNT ( ALL + CAST ( NULL AS FLOAT8 ) ) col1 @@ -43842,8 +44400,11 @@ SELECT ALL + 50 + - 7 * 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 AS col0, 82 AS col0 +---- +82 +92 query II rowsort SELECT ALL 82 + + 96, 4 col0 @@ -43888,8 +44449,11 @@ NULL # 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 col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 66 AS col0, + 1 AS col0 +---- +-66 +1 query III rowsort SELECT + 78, 12 col2, + 44 * - ( 43 ) AS col1 @@ -44085,8 +44649,11 @@ SELECT - + 15 * + CAST ( + 47 AS INTEGER ) + - 56 + 28 * + 38 * ( - 49 ) * - + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( - 82 ) AS col2, + 27 AS col2 +---- +-82 +27 query I rowsort label-8385 SELECT - NULLIF ( + + COALESCE ( - 90, 77 * + + 65 * + CASE WHEN ( NULL ) = - 84 THEN + 89 / - 78 * + CASE + - 76 WHEN - - 30 / MAX ( DISTINCT 47 ) * CAST ( + 6 AS INTEGER ) + - 72 THEN 66 * COUNT ( * ) * - 91 + - COUNT ( * ) * - 84 + MAX ( 13 ) ELSE NULL END END * + 31 ), - 95 ) @@ -44762,8 +45329,11 @@ SELECT - NULLIF ( 51, - 88 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 col1, 66 AS col1 +---- +-31 +66 query I rowsort label-8515 SELECT DISTINCT + + ( + + 95 ) * - 17 + MAX ( ALL 83 ) AS col1 @@ -44960,8 +45530,11 @@ SELECT DISTINCT - + 82 + + - 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 81 * COUNT ( * ) AS col1, 19 AS col1 +---- +19 +81 query II rowsort SELECT + 71 + + - 81 AS col1, 46 AS col0 @@ -45096,8 +45669,11 @@ SELECT - + 54 * - 3 + + 4 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- CAST\(NULL AS Int32\)\)\) \* Int64\(\-60\) AS col1" at position 0 and "coalesce\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), \(\- CASE \(\- count\(Int64\(43\)\)\) WHEN Int64\(25\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + MAX ( + - CAST ( NULL AS INTEGER ) ) * - 60 AS col1, COALESCE ( ( - - COUNT ( * ) ), - CASE + - COUNT ( 43 ) WHEN 25 THEN - + COUNT ( * ) END ) AS col1 +---- +1 +NULL query I rowsort SELECT DISTINCT + 32 + 42 + 58 + 8 * + 14 + + 6 + + 90 AS col0 @@ -45469,8 +46045,11 @@ SELECT - 6 AS col2, 22 + - 15 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\(8\) 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 II valuesort SELECT ALL 8 AS col0, - COUNT ( ALL - - 99 ) AS col0 +---- +-1 +8 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -45556,8 +46135,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) col0, + 40 / 11 AS col0 +---- +-1 +3 query I rowsort label-8666 SELECT CASE + - AVG ( ALL + 78 ) WHEN - 87 THEN NULL WHEN + + CASE + 48 WHEN - - NULLIF ( 98, ( 65 ) + SUM ( DISTINCT - 62 ) ) / - CAST ( + ( 62 ) AS FLOAT8 ) THEN NULL WHEN + 62 THEN 12 * + - COUNT ( * ) * + 15 + - CAST ( - + 59 AS INTEGER ) END THEN - ( 34 ) END / + 21 @@ -45625,8 +46207,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * 51 AS col0, + 54 AS col0 +---- +51 +54 query I rowsort label-8679 SELECT 25 / - ( - 26 ) AS col2 @@ -45656,8 +46241,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -426 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* Int64\(\-6\) AS col2" at position 0 and "CAST\(Int64\(32\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 71 * - 6 AS col2, + CAST ( 32 AS INTEGER ) AS col2 +---- +-426 +32 query I rowsort SELECT 19 + 97 * - 69 AS col1 @@ -45770,14 +46358,20 @@ 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\(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\. +query II valuesort SELECT ALL + 19 * - 33 + - + COUNT ( * ) * - - 20 * 69 + - 96 * + 67 AS col2, 6 AS col2 +---- +-8439 +6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 125 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \+ Int64\(80\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 45 + + 80 AS col2, + 78 AS col2 +---- +125 +78 query I rowsort label-8708 SELECT ALL - CAST ( NULL AS INTEGER ) * - 99 * - 58 + - ( + 60 ) + - + 24 @@ -46143,8 +46737,11 @@ SELECT DISTINCT 42 * - - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-53\) AS Int32\)\) \- Int64\(85\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(98\) \- Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( + ( - 53 ) AS INTEGER ) - + + 85 * + CAST ( NULL AS INTEGER ) AS col1, + 98 - 21 AS col1 +---- +77 +NULL query I rowsort label-8779 SELECT 25 * 27 / 82 AS col0 @@ -46483,8 +47080,11 @@ SELECT - ( 30 ) + - - 8 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 255 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "Int64\(\-17\) \* max\(DISTINCT Int64\(\-15\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 18 AS col1, - 17 * + MAX ( DISTINCT - 15 ) AS col1 +---- +18 +255 query II rowsort SELECT DISTINCT ( 84 ) AS col0, 90 @@ -46637,8 +47237,11 @@ SELECT DISTINCT - 75 + + 38 + - + CAST ( - 83 AS INTEGER ) * + NULLIF ( 55, + 98 # 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 "Int64\(8\) AS col0" at position 0 and "Int64\(\-96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 8 AS col0, - 96 AS col0 +---- +-96 +8 query II rowsort SELECT DISTINCT + ( + - 54 ) + + 16, 24 + + + 8 AS col2 @@ -46719,8 +47322,11 @@ SELECT - + COUNT ( * ) * - - 46 * - 6 + + 95 + + 23 + COUNT ( * ) AS col0, 92 * # 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 col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 59 AS col2, 88 AS col2 +---- +-59 +88 query I rowsort label-8887 SELECT + 68 + 1 / + + COUNT ( * ) AS col2 @@ -46740,8 +47346,11 @@ SELECT 36 * + ( - - 85 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -139 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \+ Int64\(35\) \+ \(\- Int64\(\-15\)\) AS col0" at position 0 and "Int64\(\-85\) \+ Int64\(\-54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 + + 35 + - - 15 AS col0, - 85 + - 54 AS col0 +---- +-139 +78 query I rowsort SELECT + 57 * + 60 AS col2 @@ -46828,8 +47437,11 @@ SELECT ALL 70 * 94 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* CAST\(NULL AS Int32\) \- \(\- CAST\(Int64\(68\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 71 * CAST ( NULL AS INTEGER ) - - CAST ( + + 68 AS INTEGER ) AS col2, - 13 AS col2 +---- +-13 +NULL query I rowsort SELECT DISTINCT COALESCE ( + 44, + 20 ) * + ( - 34 ) - + + ( + - 80 ) AS col1 @@ -47136,8 +47748,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 53 AS col1, + 88 AS col1 +---- +53 +88 query I rowsort label-8968 SELECT - 97 / 8 col0 @@ -47268,8 +47883,11 @@ SELECT 97 * SUM ( DISTINCT + + 17 ) / 91 + - 59 AS col1 # 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\(3\) \- Int64\(0\) AS col0" at position 0 and "Int64\(49\) \+ Int64\(\-13\) \+ Int64\(32\) \+ \(\- Int64\(4\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 - 0 AS col0, 49 + - 13 + + 32 + - + 4 AS col0 +---- +3 +64 query II rowsort SELECT ALL 2 + + 92, 82 AS col1 @@ -47360,8 +47978,11 @@ SELECT ALL CAST ( 0 AS INTEGER ) / + - NULLIF ( + 7, 39 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, + 53 col0 +---- +1 +53 query I rowsort SELECT ALL 60 * - 51 col2 @@ -47512,8 +48133,11 @@ SELECT COUNT ( * ) AS col0, 99 * - 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 76 AS col2, 63 AS col2 +---- +63 +76 query I rowsort label-9039 SELECT ALL + 88 * COUNT ( * ) - - COUNT ( * ) AS col2 @@ -47693,8 +48317,11 @@ SELECT ALL - 10 + - 72 AS col2 # 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 "Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 77 AS col0, + 3 AS col0 +---- +-77 +3 query I rowsort SELECT ALL + 46 + - 46 AS col1 @@ -47763,8 +48390,11 @@ SELECT ALL 24 * - - COUNT ( - 99 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -107 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) / CASE \(\- sum\(Int64\(26\)\)\) WHEN \(\- coalesce\(Int64\(73\), Int64\(\-98\) \+ Int64\(\-35\) \* \(\- nullif\(Int64\(\-73\), Int64\(41\)\)\), \(\- avg\(Int64\(\-60\)\)\)\)\) \* CAST\(\(\- Int64\(\-59\)\) AS Int32\) THEN \(\- \(\- min\(\(\- Int64\(\-23\)\)\)\)\) / Int64\(\-69\) \* Int64\(\-59\) \* Int64\(\-97\) \* \(\- Int64\(\-80\)\) WHEN Int64\(\-96\) THEN Int64\(\-85\) \* Int64\(70\) \* Int64\(3\) \- Int64\(\-76\) \+ \(\- Int64\(6\)\) \+ \(\- Int64\(32\)\) \+ Int64\(\-95\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-27\)\) \* Int64\(95\) END AS col0" at position 0 and "Int64\(\-39\) \+ Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-107 +NULL query II rowsort SELECT + 56, 42 col1 @@ -47790,8 +48420,11 @@ SELECT + 4 + - 7 AS col0 # 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\(0\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 0 AS col2, 19 AS col2 +---- +0 +19 query I rowsort label-9092 SELECT ALL CAST ( - 45 AS INTEGER ) AS col2 @@ -47958,8 +48591,11 @@ SELECT ALL - 61 / 72 + - 83 + + - 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - -741 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* Int64\(\-39\) AS col0" at position 0 and "Int64\(53\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 19 * - 39 AS col0, 53 * CAST ( NULL AS INTEGER ) AS col0 +---- +-741 +NULL query I rowsort label-9124 SELECT ALL 58 * + 27 - - - COUNT ( * ) @@ -48118,8 +48754,11 @@ 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\(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\. +query II valuesort SELECT - 16 * - 26 * - 71 * COUNT ( * ) + - - COUNT ( * ) AS col2, COUNT ( - 15 ) AS col2 +---- +-29535 +1 query I rowsort label-9155 SELECT DISTINCT - CAST ( 85 AS INTEGER ) @@ -48242,8 +48881,11 @@ SELECT + 76 + - 4 # 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\(83\) AS col0" at position 0 and "Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 83 AS col0, 52 AS col0 +---- +52 +83 query I rowsort label-9178 SELECT ALL - 28 * - + 58 * - COUNT ( * ) - - + SUM ( DISTINCT + 0 ) col0 @@ -48312,8 +48954,11 @@ SELECT ALL + 70 col0, 44 + - 10 + NULLIF ( - 55, + - 63 / + + 84 + + 66 + + COUN # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1940 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-73\)\) / Int64\(30\) \- CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- min\(Int64\(\-97\)\)\) \* Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 73 / 30 - CAST ( NULL AS INTEGER ) col0, - MIN ( - 97 ) * 20 AS col0 +---- +1940 +NULL query I rowsort SELECT + 76 - - - 32 AS col2 @@ -48467,8 +49112,11 @@ SELECT ALL - 72 * - 28 + - 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8036 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* Int64\(98\) AS col1" at position 0 and "CASE Int64\(\-52\) WHEN Int64\(99\) THEN Int64\(18\) \* Int64\(12\) END \* Int64\(\-50\) \- Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 * 98 AS col1, CASE - 52 WHEN 99 THEN 18 * 12 END * - 50 - 21 AS col1 +---- +8036 +NULL query I rowsort SELECT - 23 + - 21 col1 @@ -49264,8 +49912,11 @@ SELECT DISTINCT 44 * + 80 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 4536 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "Int64\(56\) \* Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 col1, 56 * 81 AS col1 +---- +30 +4536 query I rowsort label-9375 SELECT - + CAST ( COUNT ( + + 14 ) AS INTEGER ) / 93 + - 29 * 59 AS col0 @@ -49683,8 +50334,11 @@ SELECT + 63 + - - 7 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 3093 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col0" at position 0 and "Int64\(33\) \* Int64\(95\) \+ Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 21 col0, 33 * + 95 + + - 42 AS col0 +---- +21 +3093 query I rowsort SELECT NULLIF ( + COALESCE ( - + 72, + 4 ), - 1 * - - NULLIF ( 7, 71 + + 48 ) ) AS col0 @@ -49777,8 +50431,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 82 AS col2, - COUNT ( * ) * - COUNT ( * ) AS col2 +---- +1 +82 query II rowsort label-9474 SELECT 19 - + 62 - - 56 * 82 AS col2, SUM ( DISTINCT + 90 ) + + 45 AS col0 @@ -49940,8 +50597,11 @@ SELECT CAST ( - 4 AS INTEGER ) + - + 88 * 26 * - 39 # 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 "Int64\(68\) AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 AS col0, + 53 AS col0 +---- +53 +68 query I rowsort label-9505 SELECT ALL ( - 78 ) * + CASE + 74 WHEN + 12 THEN NULL ELSE ( + 85 ) / - 19 END AS col0 @@ -50593,8 +51253,11 @@ SELECT DISTINCT 29 + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -7007 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ Int64\(\-36\) AS col2" at position 0 and "Int64\(91\) \* \(\- Int64\(77\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 58 + - 36 AS col2, 91 * - + 77 AS col2 +---- +-7007 +22 query I rowsort SELECT - 34 + + 88 AS col2 @@ -50812,8 +51475,11 @@ 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\(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\. +query II valuesort SELECT + 42 - - COUNT ( * ) * + 62 AS col2, + 47 AS col2 +---- +104 +47 query I rowsort SELECT + + 74 * 48 * - + 8 + + - 19 AS col0 @@ -51138,8 +51804,11 @@ SELECT - 37, 10 - - 37 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - -135 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(82\)\) \+ Int64\(\-88\) AS col1" at position 0 and "Int64\(57\) \+ Int64\(\-59\) \+ count\(Int64\(49\)\) \* sum\(DISTINCT Int64\(\-48\)\) \+ Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + MIN ( ALL 82 ) + - 88 AS col1, 57 + - 59 + + COUNT ( + 49 ) * + SUM ( DISTINCT - 48 ) + + - 85 AS col1 +---- +-135 +-6 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -51262,8 +51931,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col2" at position 0 and "Int64\(\-96\) \* CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 84 AS col2, - 96 * CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2 +---- +84 +NULL query I rowsort label-9758 SELECT - ( - 28 ) * CASE + 69 WHEN + 35 * + - 59 THEN NULL WHEN 81 THEN 33 * + 42 + - - 75 + + 0 WHEN 75 * + - MIN ( DISTINCT + 71 ) + 76 - + - 39 THEN 77 * - 36 END - 30 AS col2 @@ -51324,8 +51996,11 @@ SELECT ALL NULLIF ( - 38, + + SUM ( DISTINCT + - 78 ) ) + - 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 AS col1, + COUNT ( * ) col1 +---- +1 +86 query I rowsort label-9769 SELECT + 86 + - 89 + + - 4 + - 43 * - - 87 * - COUNT ( * ) + - COUNT ( * ) + + - 43 * - + 17 + - 29 + + 68 * - NULLIF ( 0, + + 38 - - 30 + + - 85 ) @@ -51350,8 +52025,11 @@ SELECT - - 51 * + COUNT ( + - 46 ) - ( - ( 18 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - -4606 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "Int64\(98\) \* Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 66 AS col1, 98 * - 47 AS col1 +---- +-4606 +66 query I rowsort SELECT DISTINCT + ( - - 66 ) + + + 51 @@ -51366,8 +52044,11 @@ SELECT NULLIF ( - + 95, + 77 * - - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(95\)\)\) \+ Int64\(10\) \- Int64\(\-58\) AS col0" at position 0 and "Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MAX ( DISTINCT + 95 ) + + + 10 - - 58 col0, - 73 AS col0 +---- +-27 +-73 query I rowsort SELECT + 63 * + + ( 37 ) * 42 + 74 AS col0 @@ -51408,8 +52089,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "\(\- CAST\(Int64\(80\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 15 AS col0, - CAST ( 80 AS INTEGER ) col0 +---- +-80 +15 query I rowsort label-9785 SELECT DISTINCT + 11 * COALESCE ( + 36, 30 ) * - 54 + 27 / + CAST ( CAST ( - + 91 AS INTEGER ) AS INTEGER ) @@ -51625,8 +52309,11 @@ SELECT 49 col1, + NULLIF ( + 95, 22 ) - COUNT ( * ) * 65 AS col0, - 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \+ Int64\(\-62\) \- Int64\(26\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 20 + + - 62 - 26 AS col2, + 84 AS col2 +---- +-68 +84 query I rowsort SELECT 29 + + 88 AS col2 @@ -51978,8 +52665,12 @@ SELECT ALL 52 + 68 AS col1 # Datafusion - Expected - 91 # Datafusion - Expected - 79 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 0 and "\(\- Int64\(\-79\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 91 AS col1, - ( - 79 ) AS col1, 33 AS col0 +---- +33 +79 +91 query I rowsort label-9895 SELECT DISTINCT 81 / + COUNT ( * ) * - - 39 + - - CASE - 43 WHEN + 11 + 68 THEN 0 / - 75 + + 62 * - - 52 END * + - COUNT ( * ) @@ -52108,8 +52799,11 @@ SELECT ALL - - 72 + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 30 AS col1, COUNT ( * ) AS col1 +---- +-30 +1 query I rowsort label-9920 SELECT - CAST ( NULL AS INTEGER ) * 66 * 15 @@ -52209,8 +52903,11 @@ SELECT 47 * 11 * CAST ( - 18 AS INTEGER ) AS col1, - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col2" at position 0 and "Int64\(\-45\) \- \(\- sum\(Int64\(91\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 67 AS col2, - 45 - + - SUM ( ALL + 91 ) AS col2 +---- +46 +67 query I rowsort SELECT DISTINCT 33 * + COALESCE ( 21, - ( - 90 ) ) @@ -52448,8 +53145,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) - + 73 AS col1, 8 AS col1 +---- +-74 +8 query I rowsort label-9985 SELECT + 28 * + 39 - - MAX ( 91 ) col2 diff --git a/data/sqlite/random/expr/slt_good_105.slt b/data/sqlite/random/expr/slt_good_105.slt index b4c634c..dad987b 100644 --- a/data/sqlite/random/expr/slt_good_105.slt +++ b/data/sqlite/random/expr/slt_good_105.slt @@ -352,8 +352,11 @@ SELECT 67 * - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5589 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* \(\- Int64\(81\)\) AS col0" at position 0 and "Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 * + - ( 81 ) AS col0, - 16 AS col0 +---- +-16 +-5589 query II rowsort label-59 SELECT ALL + 98 + - ( + + ( + - ( COUNT ( * ) ) ) ) AS col0, + 87 + SUM ( ALL - + ( - 0 ) ) AS col2 @@ -611,8 +614,11 @@ 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 col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 13 AS col2, 3 AS col2 +---- +13 +3 query I rowsort label-107 SELECT SUM ( 51 ) col2 @@ -823,8 +829,12 @@ SELECT + + 10 col1 # Datafusion - Expected - NULL # Datafusion - Expected - 29 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \* \(\- coalesce\(Int64\(\-90\), Int64\(82\)\)\) \+ Int64\(\-68\) AS col0" at position 0 and "\(\- Int64\(6\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - COUNT ( * ) / + + COUNT ( * ) + CAST ( NULL AS INTEGER ) * - + COALESCE ( - 90, 82 ) + - 68 AS col0, 29, - + 6 AS col0 +---- +-6 +29 +NULL query I rowsort label-148 SELECT DISTINCT 72 / - 78 + - 47 + 24 * + 62 + - - 46 @@ -859,8 +869,11 @@ SELECT ALL - 39 / - 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 816 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(17\) \* Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 17 * 48 col0 +---- +816 +NULL query I rowsort label-155 SELECT - NULLIF ( - 45, - ( - 22 ) ) + + 52 + COUNT ( * ) @@ -975,8 +988,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 117 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS 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 II valuesort SELECT - + COUNT ( * ) AS col1, + 23 + 94 col1 +---- +-1 +117 query I rowsort SELECT ALL - 51 + + 69 @@ -1023,8 +1039,11 @@ SELECT - 21 AS col2, - 57 * 94 * 5 + - 20 + + - 34 * COALESCE ( + 65, 56, - 97 - # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) / Int64\(\-90\) AS col1" at position 0 and "Int64\(27\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 41 / ( + - 90 ) AS col1, + 27 + + + COUNT ( * ) AS col1 +---- +0 +28 query I rowsort label-186 SELECT + MAX ( ALL + + 49 ) + + + 60 / - ( 47 ) + + - ( + 55 ) AS col0 @@ -1324,8 +1343,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, - 31 AS col0 +---- +-1 +-31 query I rowsort label-244 SELECT ALL - 74 * COUNT ( * ) * + + CASE 39 WHEN COUNT ( * ) + - + 95 / + 53 * 6 THEN NULL WHEN - 81 THEN NULL WHEN 74 + - + NULLIF ( ( - - 75 ), 33 ) THEN + + 17 END * 30 * 87 + + COUNT ( * ) @@ -1465,8 +1487,11 @@ SELECT ALL + + 88 * - 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 AS col2, 85 AS col2 +---- +85 +96 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -1637,8 +1662,11 @@ SELECT 33 * - 65 * - 92 + + 49 + - ( + 61 ) + - ( - + 48 ) + - COALESCE ( - - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - -463 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* Int64\(22\) / Int64\(68\) \+ \(\- Int64\(5\)\) / Int64\(\-77\) \+ Int64\(60\) \* Int64\(\-8\) AS col1" at position 0 and "Int64\(\-14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 55 * 22 / 68 + - + 5 / - 77 + 60 * - 8 AS col1, - 14 AS col1 +---- +-14 +-463 query II rowsort label-302 SELECT ( - CASE - - SUM ( ALL + 26 ) WHEN - - 75 - + 32 THEN - + 58 WHEN - 87 THEN + 87 * 64 WHEN COUNT ( * ) THEN NULL ELSE NULL END ) + CAST ( - 58 AS INTEGER ) AS col1, 38 @@ -2115,8 +2143,11 @@ SELECT + 85 + - - 66 + 44 AS col2, COALESCE ( + + 4, - + 53, - + 26 ) / + 42 + - # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -5133 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) / Int64\(4\) \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-59\) \* \(\- \(\- sum\(Int64\(87\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 31 / + + 4 + + CAST ( NULL AS INTEGER ) AS col1, - 59 * - - SUM ( ALL + 87 ) col1 +---- +-5133 +NULL query I rowsort SELECT - - 15 + - 25 @@ -2207,8 +2238,11 @@ SELECT ALL - CAST ( 74 AS INTEGER ), - ( - - 62 ) * COUNT ( * ) + + 69 * + 32 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* min\(Int64\(\-94\)\) \* Int64\(\-84\) \+ Int64\(\-95\) AS col0" at position 0 and "nullif\(Int64\(14\), Int64\(\-74\) \+ Int64\(26\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) * MIN ( ALL - 94 ) * ( + - 84 ) + + - 95 AS col0, NULLIF ( 14, - 74 + + 26 ) col0 +---- +14 +NULL query I rowsort SELECT 26 + + + 81 @@ -2993,8 +3027,11 @@ SELECT ALL 69 + + + 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - -2080 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col1" at position 0 and "Int64\(65\) \* Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 83 AS col1, 65 * - 32 AS col1 +---- +-2080 +83 query II rowsort label-559 SELECT ALL 40 + + - NULLIF ( + 47, + + COALESCE ( + 44, - + ( - + COALESCE ( + 19, ( CASE + - 80 WHEN CAST ( 60 AS INTEGER ) THEN - 98 END ) ) ) + + CASE 94 WHEN + 65 * - 9 + - 25 + - 95 * 53 THEN 44 ELSE + ( + 5 ) END ) ) AS col1, - COUNT ( * ) * - + 91 @@ -3005,8 +3042,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 16 AS col1, - COUNT ( * ) col1 +---- +-1 +-16 query I rowsort label-561 SELECT MAX ( DISTINCT 63 ) @@ -3054,8 +3094,12 @@ 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\(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\. +query III valuesort SELECT ALL - COUNT ( * ) AS col2, - 75, + 9 + + - 1 AS col2 +---- +-1 +-75 +8 query I rowsort SELECT ALL - 21 - - 39 AS col1 @@ -3115,8 +3159,11 @@ SELECT ALL - 8 / 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(83\)\) AS col0" at position 0 and "Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 83 AS col0, - 92 AS col0 +---- +-83 +-92 query I rowsort label-581 SELECT ALL - MAX ( + 17 ) AS col0 @@ -3854,8 +3901,11 @@ SELECT + - ( + - 98 ) / 71 + + SUM ( + 91 ) - SUM ( + 92 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 39 AS col1, 4 AS col1 +---- +39 +4 query I rowsort label-720 SELECT DISTINCT 80 * - 19 - - COUNT ( * ) - 25 @@ -3893,8 +3943,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "Int64\(\-57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 19 AS col0, - 57 AS col0 +---- +-57 +19 query I rowsort label-727 SELECT SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) col0 @@ -4137,8 +4190,12 @@ SELECT ALL - 48 - - 76 # Datafusion - Expected - 70 # Datafusion - Expected - -379 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* Int64\(2\) AS col1" at position 0 and "nullif\(Int64\(80\), Int64\(\-62\) \* Int64\(\-63\) \- \(\- max\(DISTINCT Int64\(98\)\)\)\) \- Int64\(62\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 35 * + + 2 AS col1, COUNT ( * ) + + 4 * - 95, + + NULLIF ( 80, - 62 * - 63 - - MAX ( DISTINCT + + 98 ) ) - + 62 AS col1 +---- +-379 +18 +70 query I rowsort label-773 SELECT ALL 74 * + - SUM ( ALL + + 10 ) @@ -5214,8 +5271,11 @@ SELECT + 14 + + 27 + + ( - 93 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 23 col0, + 81 AS col0 +---- +23 +81 query I rowsort label-982 SELECT CASE COUNT ( * ) WHEN - COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN + 81 ELSE 51 + COALESCE ( - 26 - - 11, + 91 ) END @@ -5686,8 +5746,12 @@ SELECT 27 / + 29 # Datafusion - Expected - -855 # Datafusion - Expected - 54 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \* Int64\(45\) AS col0" at position 0 and "Int64\(22\) \+ Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 19 * 45 AS col0, + 22 + 32 AS col0, + 31 +---- +-855 +31 +54 query I rowsort label-1074 SELECT CAST ( NULL AS INTEGER ) - + + 17 + COUNT ( * ) + + - NULLIF ( 22, + 83 ) + COUNT ( * ) @@ -5712,8 +5776,11 @@ SELECT 23 * + + 52 # 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\(\-33\) AS col1" at position 0 and "Int64\(\-52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 33 col1, - 52 AS col1 +---- +-33 +-52 query I rowsort label-1079 SELECT CAST ( NULL AS INTEGER ) + + 22 AS col2 @@ -5748,8 +5815,11 @@ SELECT ALL MAX ( + + 55 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 51 AS col2, 99 AS col2 +---- +51 +99 query I rowsort label-1086 SELECT - COUNT ( * ) / + 70 AS col1 @@ -5764,8 +5834,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 34 AS col1, 49 AS col1 +---- +34 +49 query I rowsort SELECT - + 93 + - + ( + 18 ) AS col2 @@ -6511,8 +6584,11 @@ SELECT ALL + 54 * - 45 + - 97 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \+ \(\- Int64\(\-2\)\) AS col0" at position 0 and "\(\- CASE Int64\(\-8\) WHEN Int64\(60\) THEN \(\- \(\- avg\(DISTINCT Int64\(9\)\)\)\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + 78 + - - 2 AS col0, - ( + CASE - 8 WHEN + 60 THEN - - AVG ( DISTINCT + 9 ) END ) AS col0 +---- +80 +NULL query I rowsort label-1233 SELECT - + ( - + CAST ( - 11 AS INTEGER ) ) AS col2 @@ -6548,8 +6624,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-47\)\) \+ \(\- CAST\(Int64\(79\) AS Int32\)\) \+ \(\- CAST\(NULL AS Float64\)\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - - 47 + - CAST ( 79 AS INTEGER ) + - CAST ( NULL AS FLOAT8 ) AS col2, + ( + + 5 ) AS col2 +---- +5 +NULL query I rowsort label-1240 SELECT DISTINCT - 41 * - COUNT ( * ) * + - 39 @@ -6799,8 +6878,11 @@ SELECT ( + - 21 ) + + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 21 AS col0, COUNT ( * ) AS col0 +---- +-21 +1 query II rowsort SELECT 23, 30 col0 @@ -7270,8 +7352,11 @@ SELECT 93 + 71 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2772 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(\-63\)\), Int64\(\-97\) \* Int64\(97\) / Int64\(5\) \+ \(\- count\(Int64\(51\)\)\), Int64\(63\)\) \* Int64\(44\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( - - 63, + - 97 * + 97 / + 5 + - COUNT ( + ( 51 ) ), + 63 ) * 44 AS col0, 83 AS col0 +---- +2772 +83 query I rowsort SELECT ALL 95 + - 18 AS col1 @@ -7452,8 +7537,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) + + 63 * - + 64 + 12 col2, 55 / - - 99 AS col2 +---- +-4019 +0 query I rowsort label-1413 SELECT 18 - - - 71 / + 30 * - 66 + - CASE - 67 WHEN + SUM ( ALL - + 22 ) * - + 40 + COALESCE ( + CASE + 14 WHEN + - COUNT ( * ) THEN 49 - COUNT ( + 58 ) * + 10 END, - 7 * 85 ) * + 41 THEN + 56 END AS col2 @@ -7892,8 +7980,11 @@ SELECT + COUNT ( ALL + 93 ) * + 68 * - 99 AS col0, 67 * 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1740 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* \(\- Int64\(\-29\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(62\) / \(\- Int64\(18\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + 60 ) * - + ( + - 29 ) AS col1, CAST ( NULL AS INTEGER ) + 62 / - + 18 + - COUNT ( * ) AS col1 +---- +1740 +NULL query I rowsort SELECT 24 + - ( - 62 ) AS col1 @@ -8018,8 +8109,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col2" at position 0 and "Int64\(\-93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 97 AS col2, - 93 AS col2 +---- +-93 +97 query I rowsort SELECT 2 + + 20 @@ -8690,8 +8784,11 @@ SELECT + - 30 * 98 + - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "coalesce\(Int64\(65\), Int64\(36\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 2 AS col0, COALESCE ( + 65, 36 ) AS col0 +---- +2 +65 query I rowsort SELECT + 20 + 94 AS col1 @@ -8897,8 +8994,11 @@ SELECT DISTINCT + MIN ( + 80 ) + - 17 + 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5076 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \- Int64\(74\) \+ Int64\(95\) \* Int64\(54\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 20 - 74 + 95 * 54 AS col1, COUNT ( * ) AS col1 +---- +1 +5076 query II rowsort label-1688 SELECT 69 * + 93 AS col0, - 50 / + + COUNT ( * ) @@ -8959,8 +9059,11 @@ SELECT - 31 * + + SUM ( DISTINCT 51 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-50\) \+ \(\- \(\- Int64\(\-13\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) col2, - 50 + - - ( + - 13 ) AS col2 +---- +-63 +1 query I rowsort label-1700 SELECT ( - MAX ( ALL ( + + 29 ) ) ) @@ -9120,8 +9223,11 @@ SELECT ALL 49 + 15 * - 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - 131 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ \(\- Int64\(\-76\)\) AS col2" at position 0 and "Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 55 + - - 76 AS col2, 51 AS col2 +---- +131 +51 query II rowsort label-1731 SELECT - COUNT ( * ), + 30 AS col1 @@ -9486,8 +9592,11 @@ SELECT DISTINCT 37 + - CAST ( + - 56 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -30912 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(96\) \* Int64\(46\) \* Int64\(\-7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, 96 * + 46 * + - 7 AS col2 +---- +-30912 +1 query I rowsort label-1800 SELECT 90 + 11 + + 87 * - CAST ( NULL AS INTEGER ) * - - 81 AS col0 @@ -10204,8 +10313,11 @@ SELECT 68 * + SUM ( - 46 ) + + - 26 + + + 96 + - 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-62\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 62 + + COUNT ( * ) AS col0, 55 AS col0 +---- +55 +63 query I rowsort SELECT ALL + 99 * - 31 + - - 29 - + 19 * + - 11 * + 70 + + 0 AS col2 @@ -10890,8 +11002,11 @@ SELECT ALL + + 80 AS col1, + COALESCE ( - 99, - - COUNT ( * ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 72 AS col2, 82 AS col2 +---- +72 +82 query I rowsort label-2064 SELECT CAST ( - 97 AS INTEGER ) AS col1 @@ -10981,8 +11096,11 @@ SELECT - NULLIF ( - ( 49 ), CAST ( - 28 AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(97\)\) 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 II valuesort SELECT COUNT ( + 97 ) col1, + COUNT ( + + 79 ) AS col1 +---- +1 +1 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -11395,8 +11513,11 @@ SELECT ALL - 60 / - NULLIF ( + + ( - 17 ), - 76 * - 45 + - - 63 + - ( + 52 ) + - # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - -1326 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) \+ Int64\(8\) AS col0" at position 0 and "\(\- nullif\(Int64\(26\), Int64\(\-52\)\)\) \* Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 49 + 8 AS col0, ( - NULLIF ( + 26, + - 52 ) ) * 51 AS col0 +---- +-1326 +-41 query I rowsort SELECT ALL + - 39 + 65 * + 86 * + 78 AS col0 @@ -11447,8 +11568,11 @@ SELECT + COALESCE ( - SUM ( + 25 ), ( + 47 ) - + 38 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4931 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \* \(\- Int64\(\-88\)\) \- Int64\(91\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 55 * + - ( - 88 ) - 91 AS col2, + 48 AS col2 +---- +-4931 +48 query I rowsort label-2168 SELECT ALL + CAST ( + + 34 AS INTEGER ) AS col0 @@ -11935,8 +12059,11 @@ SELECT ALL - 27 * + - ( + 51 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ Int64\(\-21\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(4\) / \(\- coalesce\(Int64\(36\), Int64\(4\), Int64\(\-52\)\)\) AS col2" at position 0 and "Int64\(\-5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 52 + - 21 + - CAST ( NULL AS INTEGER ) * + 4 / ( + - ( + + COALESCE ( 36, 4, + - 52 ) ) ) AS col2, - 5 col2 +---- +-5 +NULL query I rowsort SELECT - 92 * 21 col2 @@ -11951,8 +12078,11 @@ SELECT - ( + COUNT ( * ) ) * + 40 * + - 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 191 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \+ Int64\(80\) \+ \(\- sum\(DISTINCT Int64\(\-28\)\)\) 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 IR valuesort SELECT 83 + + 80 + ( - SUM ( DISTINCT - 28 ) ) AS col1, - CAST ( NULL AS FLOAT8 ) AS col1 +---- +191 +NULL query I rowsort SELECT 70 * 94 AS col2 @@ -12505,8 +12635,11 @@ SELECT DISTINCT 86 + - 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* \(\- Int64\(\-84\)\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 0 ) * - - 84 AS col0, + ( + 78 ) AS col0 +---- +0 +78 query I rowsort SELECT 63 + 64 AS col0 @@ -12566,8 +12699,12 @@ SELECT ALL - ( + + 66 ) # Datafusion - Expected - 24 # Datafusion - Expected - 64 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col2" at position 1 and "Int64\(\-95\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 24, 64 AS col2, - 95 AS col2 +---- +-95 +24 +64 query I rowsort SELECT ALL NULLIF ( + + 50, - NULLIF ( - 3, - 27 * ( - 90 ) + - 30 + + 70 ) * - 58 * + + 49 ) * + 36 + 12 @@ -12602,8 +12739,11 @@ 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\(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\. +query II valuesort 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 +---- +-543 +38 query II rowsort label-2388 SELECT + 75 AS col0, + 41 / + - ( - COUNT ( * ) ) col1 @@ -12659,8 +12799,11 @@ NULL # 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 col0" at position 0 and "Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 93 AS col0, 3 AS col0 +---- +3 +93 query I rowsort SELECT DISTINCT + ( 60 ) * + 41 col2 @@ -12902,14 +13045,20 @@ SELECT + ( - - 39 ) + 11 * - 37 * + 11 + + 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 76 AS col1, 70 AS col1 +---- +70 +76 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 col0, + 94 AS col0 +---- +62 +94 query I rowsort label-2444 SELECT + 0 + + 19 * - NULLIF ( - CASE + ( + 27 ) WHEN 19 / - 51 THEN - 36 ELSE + + 8 * - 77 / COUNT ( * ) END, 15 ) * + 5 * - 21 @@ -13152,8 +13301,11 @@ 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\(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\. +query II valuesort SELECT + 29 * - + COUNT ( * ) AS col2, + 36 AS col2 +---- +-29 +36 query I rowsort label-2490 SELECT - 99 * - - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 @@ -13260,8 +13412,11 @@ SELECT ALL - 21 + - ( + ( COUNT ( * ) ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -105 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \- Int64\(41\) AS col2" at position 0 and "Int64\(\-84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 64 ) - 41 AS col2, - 84 AS col2 +---- +-105 +-84 query I rowsort SELECT 16 * - + 92 AS col1 @@ -13816,8 +13971,11 @@ SELECT COUNT ( * ) - - - 37 - + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 AS col2, 24 AS col2 +---- +24 +91 query I rowsort label-2622 SELECT ALL CAST ( + 56 AS INTEGER ) + + + 86 + - 29 * - 37 AS col0 @@ -14362,8 +14520,11 @@ SELECT 61 + + SUM ( DISTINCT + 83 ) + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "\(\- nullif\(min\(\(\- Int64\(\-53\)\)\), Int64\(\-90\) \+ \(\- Int64\(5\)\) \* Int64\(94\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 56 AS col2, - NULLIF ( MIN ( ALL - - 53 ), + - 90 + - ( 5 ) * + 94 ) AS col2 +---- +-53 +56 query I rowsort SELECT - 78 * + 87 + 99 col2 @@ -14395,8 +14556,11 @@ SELECT 36 + + 96 AS col0, - 16 * 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5313 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-69\)\) \* Int64\(77\) AS col1" at position 0 and "Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - - 69 ) * + 77 AS col1, + 77 col1 +---- +5313 +77 query I rowsort SELECT 26 * 84 @@ -14532,8 +14696,11 @@ SELECT 19 + + 72 * 86 - + - MIN ( DISTINCT 94 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -92340 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(57\) \* \(\- Int64\(18\)\) AS col1" at position 0 and "\(\- Int64\(\-18\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 90 * 57 * - + 18 AS col1, - ( - 18 ) col1 +---- +-92340 +18 query I rowsort SELECT 26 * - 17 * + + 85 @@ -14710,14 +14877,20 @@ SELECT ALL - 3 * - 6 - - + 0 AS col0, 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2358 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* Int64\(\-33\) \+ Int64\(51\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 73 * - 33 + + 51 AS col1, + COUNT ( * ) AS col1 +---- +-2358 +1 # 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 13 AS col1, + 73 + 56 + + 32 + - 77 * - COUNT ( * ) AS col1 +---- +-13 +238 query I rowsort label-2793 SELECT DISTINCT - COUNT ( * ) * + 42 @@ -14808,8 +14981,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * 5 AS col1, + 14 AS col1 +---- +-5 +14 query I rowsort label-2811 SELECT + - CASE + - CAST ( - 27 AS INTEGER ) WHEN - ( - - 32 ) * - COUNT ( * ) - 18 / - - 59 * + - 4 + + 81 * + 15 THEN NULL ELSE + 36 END @@ -14977,8 +15153,11 @@ SELECT ALL - + COUNT ( * ) / 41 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) 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 II valuesort SELECT + 14 AS col1, + 58 + + - 6 AS col1 +---- +14 +52 query I rowsort label-2844 SELECT CASE - 25 WHEN COUNT ( * ) + - - COUNT ( * ) THEN NULL WHEN 85 * - + 38 * - 56 + - ( + - 37 ) THEN + SUM ( + 66 ) + 20 ELSE + 56 END AS col1 @@ -15129,8 +15308,11 @@ SELECT 58 - - 55 - 75 + ( - 19 ) AS col0 # 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 "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 II valuesort SELECT 64 AS col0, + 13 AS col0 +---- +13 +64 query I rowsort SELECT DISTINCT + ( + - 21 ) AS col1 @@ -15324,8 +15506,11 @@ SELECT + + 66 + 58 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5942 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(61\)\) \- Int64\(69\) \* Int64\(\-87\) AS col2" at position 0 and "Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 61 - + 69 * - 87 AS col2, - 88 AS col2 +---- +-88 +5942 query I rowsort SELECT + - 91 + - 2 @@ -15859,8 +16044,11 @@ SELECT - COALESCE ( - - 28, 55 ) * 19 * + 95 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -315456 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \* Int64\(\-53\) \* Int64\(64\) AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 93 * - 53 * + 64 AS col1, 47 AS col1 +---- +-315456 +47 query I rowsort label-3008 SELECT ALL ( 82 ) + + + MAX ( - 16 ) AS col1 @@ -15954,8 +16142,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 27 AS col2, 22 + - - COUNT ( * ) AS col2 +---- +23 +27 query I rowsort SELECT ALL - 25 * ( - - 82 ) @@ -16112,8 +16303,12 @@ SELECT - SUM ( - 29 ) AS col0 # Datafusion - Expected - 63 # Datafusion - Expected - 56 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ Int64\(33\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 30 + + 33 AS col0, 56 AS col0, - - 15 AS col0 +---- +15 +56 +63 query I rowsort label-3056 SELECT - COUNT ( - 84 ) AS col1 @@ -16169,8 +16364,11 @@ SELECT DISTINCT + COUNT ( ALL 61 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5742 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) \* Int64\(99\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 * 99 AS col0, 35 AS col0 +---- +-5742 +35 query I rowsort SELECT - + 3 * 88 + 40 + - - 84 - 38 AS col1 @@ -16283,8 +16481,12 @@ 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\(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\. +query III valuesort SELECT DISTINCT 32, COALESCE ( 24, + COUNT ( * ) * - COUNT ( + 31 ) + + + 84 + 43 + + - 89 * + 29 * + 77 / + ( 24 ) ) * - - ( + - 58 ) + - 66 AS col1, + NULLIF ( - 38, COUNT ( * ) ) AS col1 +---- +-1458 +-38 +32 query I rowsort SELECT 69 + - - ( - - 30 ) + + 44 * 29 + 10 * 27 * - + 5 @@ -16434,8 +16636,11 @@ SELECT DISTINCT - 27 * - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -499 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(47\)\) \* Int64\(11\) \+ Int64\(18\) AS col2" at position 0 and "Int64\(\-59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 47 * 11 + + 18 AS col2, - 59 AS col2 +---- +-499 +-59 query I rowsort SELECT 17 * + - 96 - - ( + 2 ) col1 @@ -16942,8 +17147,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(38\) \- Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 33 AS col1, + COUNT ( * ) * + 38 - + 73 AS col1 +---- +-35 +33 query I rowsort label-3212 SELECT ALL - ( + 85 ) + 45 - - SUM ( 21 ) * - - 81 - - 46 * + 57 AS col0 @@ -17100,8 +17308,11 @@ SELECT ALL 22 * + 13 * 93 * + 13 + + ( + 56 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 52650 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- CASE Int64\(\-31\) WHEN coalesce\(Int64\(\-39\), Int64\(18\) \+ Int64\(\-71\)\) THEN NULL ELSE Int64\(25\) END\) \* Int64\(\-27\) \* Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, + ( - CASE + - 31 WHEN + COALESCE ( - 39, + + 18 + - 71 ) THEN NULL ELSE 25 END ) * - 27 * + 78 AS col0 +---- +1 +52650 query I rowsort SELECT - 42 - 43 @@ -17168,8 +17379,11 @@ SELECT - 41 * + 79 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, 85 AS col0 +---- +1 +85 query I rowsort SELECT ALL CASE 21 WHEN 64 + - 25 THEN - - 73 ELSE NULL END - - 81 col2 @@ -17222,8 +17436,11 @@ SELECT ALL + 79 / 43 AS col0 # 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\(\-22\)\) \* Int64\(53\) / CASE Int64\(1\) WHEN Int64\(83\) THEN Int64\(51\) END AS col2" at position 0 and "Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 22 * 53 / CASE + 1 WHEN + 83 THEN 51 END AS col2, - 16 AS col2 +---- +-16 +NULL query II rowsort SELECT ALL ( - ( 7 ) ) AS col2, 92 @@ -17376,8 +17593,12 @@ SELECT CASE + + 98 WHEN + ( + COUNT ( * ) ) / + 82 - COUNT ( * ) THEN NULL ELSE # Datafusion - Expected - 901 # Datafusion - Expected - 74 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- coalesce\(max\(Int64\(74\)\), Int64\(\-34\), Int64\(71\) \+ Int64\(\-95\) \+ Int64\(44\)\)\) AS Int32\)\) AS col1" at position 1 and "Int64\(7\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 67 * - CAST ( - - 12 AS INTEGER ) - - + 97, - CAST ( - COALESCE ( MAX ( ALL + 74 ), - 34, + 71 + - 95 + 44 ) AS INTEGER ) AS col1, 7 AS col1 +---- +7 +74 +901 query I rowsort SELECT + 22 - + + 67 - 54 * + 19 @@ -17628,8 +17849,12 @@ SELECT 49 + + ( + + COALESCE ( 45, - 70 ) ) # Datafusion - Expected - 73 # Datafusion - Expected - 26 # Datafusion - Expected - 3574 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 1 and "Int64\(\-41\) \* Int64\(\-87\) \+ Int64\(7\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 73 col0, 26 col2, - 41 * + - 87 + + 7 col2 +---- +26 +3574 +73 query II rowsort SELECT 96 AS col0, 20 AS col2 @@ -17641,8 +17866,12 @@ SELECT 96 AS col0, 20 AS col2 # Datafusion - Expected - 75 # Datafusion - Expected - NULL # 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 "CASE Int64\(\-5\) WHEN Int64\(\-2\) THEN Int64\(19\) / Int64\(\-61\) ELSE NULL END \+ Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 75 col1, + CASE + - 5 WHEN + - 2 THEN + 19 / - 61 ELSE NULL END + - 1 AS col1, + MIN ( DISTINCT - 43 ) + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 +---- +75 +NULL +NULL query II rowsort SELECT ALL 27 AS col0, + NULLIF ( + + 27, - 74 + 46 ) AS col2 @@ -17790,8 +18019,11 @@ SELECT - SUM ( DISTINCT - 2 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \* \(\- sum\(Int64\(55\)\)\) AS col2" at position 0 and "count\(\(\- Int64\(\-64\)\)\) \+ \(\- nullif\(Int64\(23\), Int64\(26\) \+ Int64\(\-65\) \+ \(\- Int64\(\-44\)\)\)\) \- Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - + SUM ( + 55 ) AS col2, COUNT ( - - 64 ) + - NULLIF ( + + 23, 26 + - 65 + - ( - 44 ) ) - + 31 AS col2 +---- +-53 +NULL query I rowsort label-3367 SELECT + 93 - + COUNT ( * ) * + - 87 AS col1 @@ -18236,8 +18468,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * - COUNT ( * ) * - + 39 + - + 54 AS col0, 87 * - 10 AS col0 +---- +-870 +-93 query I rowsort SELECT 79 * 66 AS col1 @@ -18540,8 +18775,11 @@ SELECT ALL + SUM ( + 3 ) - - - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- \(\- coalesce\(Int64\(58\), Int64\(11\)\)\)\), Int64\(85\), Int64\(21\)\) AS col1" at position 0 and "Int64\(57\) \+ Int64\(\-97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COALESCE ( - - COALESCE ( 58, 11 ), + 85, + 21 ) AS col1, 57 + - 97 col1 +---- +-40 +58 query I rowsort label-3511 SELECT DISTINCT 87 - CAST ( 26 AS INTEGER ) @@ -18723,8 +18961,11 @@ SELECT 59 / - - 36 AS col2, + 7 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1564 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \* Int64\(34\) AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 * 34 AS col0, + 27 AS col0 +---- +1564 +27 query I rowsort SELECT + 20 - 33 * 56 * - + 56 @@ -18739,8 +18980,11 @@ SELECT MIN ( 90 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(73\)\) AS col1" at position 0 and "Int64\(32\) / coalesce\(Int64\(6\), Int64\(11\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + ( + + 73 ) col1, 32 / + COALESCE ( + 6, + 11 ) AS col1 +---- +-73 +5 query I rowsort SELECT NULLIF ( - 76, 27 ) + - 82 @@ -18943,8 +19187,11 @@ SELECT ALL + 9 + 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 1102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-23\)\) AS col1" at position 0 and "Int64\(\-19\) \* Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 23 AS col1, - 19 * - 58 AS col1 +---- +1102 +23 query I rowsort SELECT 10 + + 28 AS col0 @@ -19027,8 +19274,12 @@ 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\(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\. +query III valuesort 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 +---- +-15 +22 +58 query I rowsort label-3604 SELECT ALL 70 / + 88 * - 41 @@ -19084,8 +19335,11 @@ SELECT DISTINCT + + 34 + + + 92, - 26 + 34 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 134 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \+ Int64\(35\) AS col0" at position 0 and "\(\- count\(Int64\(44\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 99 + + 35 col0, - COUNT ( + 44 ) AS col0 +---- +-1 +134 query I rowsort SELECT - + CASE - 9 WHEN 4 THEN - - 65 END + 67 + 72 @@ -19548,8 +19802,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 704 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* Int64\(64\) AS col2" at position 0 and "Int64\(37\) \* \(\- CASE Int64\(\-30\) WHEN \(\- CASE Int64\(\-33\) WHEN Int64\(\-80\) \* nullif\(Int64\(84\), \(\- Int64\(77\)\)\) \* Int64\(21\) \+ \(\- Int64\(\-85\)\) \+ coalesce\(Int64\(12\), Int64\(2\), Int64\(\-52\)\) \- Int64\(99\) THEN NULL WHEN Int64\(9\) THEN Int64\(42\) END\) \+ Int64\(72\) THEN NULL WHEN avg\(Int64\(26\)\) \* Int64\(96\) \+ Int64\(55\) THEN Int64\(22\) END\) \* Int64\(\-6\) \- Int64\(\-75\) \* Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 * + 64 AS col2, 37 * - CASE - 30 WHEN - + CASE + - 33 WHEN - 80 * + + NULLIF ( ( 84 ), - + 77 ) * + + 21 + - - 85 + COALESCE ( + 12, 2, - 52 ) - + 99 THEN NULL WHEN 9 THEN 42 END + + + 72 THEN NULL WHEN AVG ( ALL 26 ) * 96 + 55 THEN + 22 END * - 6 - - 75 * 66 AS col2 +---- +704 +NULL query I rowsort label-3704 SELECT 52 / - 4 - 54 - 83 @@ -20003,8 +20260,11 @@ SELECT ALL + - 30 * - 51 * - - 4 + + 57, 83 + + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4722 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* \(\- Int64\(70\)\) \+ Int64\(\-89\) \+ Int64\(57\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 67 * - + 70 + - 89 + 57 AS col1, 66 AS col1 +---- +-4722 +66 query I rowsort label-3793 SELECT ALL - 47 + - + 95 * - + 7 + COUNT ( * ) col2 @@ -20307,8 +20567,11 @@ SELECT 46 * 72 / - 68 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 946430 -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\) \* Int64\(5\) \* Int64\(71\) \* Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 34 AS col2, 62 * + 5 * 71 * + 43 AS col2 +---- +34 +946430 query I rowsort SELECT 29 + + 69 + - + 42 @@ -20622,8 +20885,11 @@ SELECT - - COUNT ( * ) * 5 + - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ nullif\(Int64\(\-14\), coalesce\(\(\- \(\- Int64\(48\)\)\), nullif\(Int64\(88\), CAST\(Int64\(\-22\) AS Int32\) \+ Int64\(98\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 82 col0, + COUNT ( * ) + + NULLIF ( - 14, COALESCE ( - ( - + 48 ), + NULLIF ( 88, CAST ( - 22 AS INTEGER ) + 98 ) ) ) AS col0 +---- +-13 +82 query I rowsort label-3910 SELECT ALL + CASE + 90 WHEN 0 THEN + COUNT ( * ) ELSE NULL END AS col0 @@ -20899,8 +21165,11 @@ SELECT + 6 + - 67 * - 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(63\)\)\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - SUM ( DISTINCT + 63 ) col0, 35 AS col0 +---- +-63 +35 query I rowsort SELECT + 33 * 63 * 18 @@ -21083,8 +21352,11 @@ SELECT ALL - 36 * 49 + + 52 # 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 "Int64\(0\) AS col2" at position 0 and "Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 0 AS col2, - 79 col2 +---- +-79 +0 query I rowsort label-3999 SELECT DISTINCT + 91 * + + 62 + 34 - - COUNT ( * ) AS col2 @@ -21277,8 +21549,11 @@ SELECT NULLIF ( - 3, COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(Int64\(37\) AS Int32\)\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) + - + ( + CAST ( + 37 AS INTEGER ) ) AS col1, + 69 AS col1 +---- +-38 +69 query II rowsort label-4036 SELECT 11, 63 * - 93 * COUNT ( * ) AS col0 @@ -21289,8 +21564,11 @@ SELECT 11, 63 * - 93 * COUNT ( * ) AS col0 # 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 col2" at position 0 and "Int64\(99\) \- \(\- Int64\(\-23\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 78 AS col2, + 99 - - - 23 AS col2 +---- +76 +78 query I rowsort SELECT - - 39 + - + ( + + 76 ) AS col0 @@ -21310,8 +21588,11 @@ SELECT - 91 * + 46 * + + 63 * - 75 * + 85 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 1505 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "Int64\(\-35\) \* \(\- Int64\(43\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 AS col2, - 35 * - + 43 AS col2 +---- +1505 +86 query I rowsort SELECT ALL + 26 * - 65 * + - 7 @@ -21332,8 +21613,11 @@ SELECT ALL 18 + - 59, - 78 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 341 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* Int64\(\-31\) AS col0" at position 0 and "Int64\(56\) \+ \(\- Int64\(\-36\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 11 * - 31 AS col0, + 56 + - - 36 AS col0 +---- +341 +92 query I rowsort SELECT DISTINCT + ( - - 73 ) AS col0 @@ -21400,8 +21684,11 @@ SELECT ALL + 79 + - MAX ( - 77 ) - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(94\) \+ \(\- nullif\(Int64\(\-31\), count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(36\) \+ Int64\(\-48\) \- Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 98 + - CAST ( NULL AS INTEGER ) AS col1, - ( + - COUNT ( * ) ) * 94 + + - NULLIF ( - 31, + COUNT ( * ) ) + + ( + 36 ) + - 48 - + 35 col1 +---- +78 +NULL query I rowsort SELECT ALL + 40 + + 74 AS col2 @@ -21552,8 +21839,11 @@ SELECT 60 * - 79 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 43 col2, 90 AS col2 +---- +43 +90 query I rowsort SELECT 99 + + 73 * + 21 * 71 @@ -22749,8 +23039,11 @@ SELECT DISTINCT 0 * + 71 # 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 "\(\- coalesce\(Int64\(\-3\), Int64\(71\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 25 col2, - COALESCE ( - 3, + + 71 ) AS col2 +---- +-25 +3 query I rowsort SELECT ALL 17 * + 13 * 22 @@ -23431,8 +23724,11 @@ SELECT 57 + 51 + + COUNT ( * ) + - SUM ( 60 ) * + + 83 AS col1 # 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 "\(\- coalesce\(Int64\(16\), Int64\(25\)\)\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( - COALESCE ( + 16, 25 ) ) AS col0, 31 AS col0 +---- +-16 +31 query I rowsort SELECT ALL + 67 * 75 col0 @@ -23676,8 +23972,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2383 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) \+ Int64\(\-25\) \* Int64\(93\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 58 ) + - 25 * + 93 AS col1, + COUNT ( * ) col1 +---- +-2383 +1 query I rowsort SELECT - 52 * - 82 * - 35 - - ( + 71 ) @@ -23728,8 +24027,11 @@ SELECT ALL 18 AS col0, 66 - 83 col1 # 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\(70\) AS col2" at position 0 and "Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 70 AS col2, - 96 AS col2 +---- +-96 +70 query I rowsort SELECT + 40 + + 4 AS col2 @@ -23749,8 +24051,11 @@ SELECT + 57 * - 5 * - 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 8605 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col0" at position 0 and "Int64\(87\) \* Int64\(99\) \- Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 AS col0, 87 * 99 - 8 AS col0 +---- +8605 +93 query I rowsort label-4507 SELECT ALL 27 - - MIN ( - + 97 ) AS col1 @@ -23773,8 +24078,11 @@ SELECT ALL 21 * + + NULLIF ( 32, + 4 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 AS col0, 76 AS col0 +---- +76 +79 query I rowsort label-4511 SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 21 * 63 AS col0 @@ -23841,8 +24149,11 @@ SELECT - + 40 * + 71 * - + COUNT ( * ) AS col0 # 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 col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 25 AS col2, 9 col2 +---- +25 +9 query I rowsort label-4524 SELECT DISTINCT + 1 / - - 85 AS col0 @@ -23960,8 +24271,11 @@ SELECT MIN ( - 27 ) + + 74 + + 47 + - + 83 AS col2, 71 - COALESCE ( + 48, + 29, # Datafusion - Datafusion expected results: # Datafusion - Expected - -2065 # Datafusion - Expected - -108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \* Int64\(59\) AS col0" at position 0 and "Int64\(\-90\) \+ Int64\(\-18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 35 ) * + 59 AS col0, - 90 + - 18 col0 +---- +-108 +-2065 query I rowsort SELECT - 57 + + 2 AS col0 @@ -24121,8 +24435,11 @@ SELECT 71 + + NULLIF ( - - 16, - + COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15631 # Datafusion - Expected - -72072 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(\-29\) \* Int64\(\-7\) AS col0" at position 0 and "Int64\(\-84\) \* Int64\(26\) \* Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 * - 29 * - 7 AS col0, - 84 * 26 * 33 AS col0 +---- +-72072 +15631 query I rowsort SELECT 52 + - - 75 col0 @@ -24548,8 +24865,11 @@ SELECT - 9 + - 14 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(49\), Int64\(64\) \* Int64\(\-44\) \* Int64\(95\) \* Int64\(\-4\) / Int64\(\-16\)\)\) \+ Int64\(\-94\) \+ sum\(\(\- Int64\(\-34\)\)\) \* Int64\(5\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( + 49, + + 64 * + - 44 * + 95 * - 4 / + - 16 ) + + - 94 + + + SUM ( - - 34 ) * 5 AS col2, CAST ( NULL AS INTEGER ) AS col2 +---- +27 +NULL query I rowsort label-4659 SELECT ALL + CAST ( - 61 AS INTEGER ) - 54 AS col2 @@ -24739,8 +25059,11 @@ SELECT NULLIF ( + + ( + 91 ), - 20 + + + COUNT ( - + 83 ) ) col0, 42 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col2" at position 0 and "Int64\(\-64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 col2, - 64 AS col2 +---- +-20 +-64 query II rowsort SELECT - 43 AS col1, 64 @@ -24953,8 +25276,12 @@ NULL # Datafusion - Expected - -510 # Datafusion - Expected - 59 # Datafusion - Expected - -2805 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col2" at position 1 and "Int64\(55\) \* Int64\(\-51\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + 17 * 30, + 59 AS col2, + 55 * - 51 AS col2 +---- +-2805 +-510 +59 query II rowsort label-4734 SELECT + 3 * - COUNT ( * ) AS col2, 97 / 61 + + 9 + ( + - 83 ) / 47 * - - 3 / 83 @@ -25785,8 +26112,11 @@ SELECT - 84 * + + 12 AS col0 # 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 "Int64\(\-75\) \* \(\- count\(\(\- Int64\(\-33\)\)\)\) \+ Int64\(\-37\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 75 * - COUNT ( - ( - 33 ) ) + - 37 AS col1, 53 col1 +---- +38 +53 query I rowsort SELECT ALL + - 85 * + 87 AS col0 @@ -25817,8 +26147,11 @@ SELECT - 22 - + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-38\), Int64\(86\)\)\) AS col1" at position 0 and "Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( + - 38, + + 86 ) AS col1, + 30 AS col1 +---- +30 +38 query I rowsort SELECT - 40 * + 63 AS col0 @@ -26162,8 +26495,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 AS col2, + COUNT ( * ) + + - COUNT ( * ) AS col2 +---- +0 +29 query II rowsort SELECT - 31, 63 AS col2 @@ -26309,8 +26645,11 @@ SELECT + COUNT ( * ) - 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 756 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(8\)\), Int64\(80\)\) AS col2" at position 0 and "Int64\(20\) \* Int64\(33\) \+ Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( - + ( + 8 ), + 80 ) AS col2, + 20 * 33 + + 96 AS col2 +---- +-8 +756 query I rowsort SELECT ALL + 98 * - - 17 - - - 46 AS col0 @@ -26412,8 +26751,11 @@ SELECT 94 + + + 81 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\(97\) AS col0" at position 0 and "Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 97 col0, - 27 AS col0 +---- +-27 +97 query I rowsort label-5014 SELECT ALL MIN ( - 64 ) + - CAST ( NULL AS INTEGER ) @@ -26471,8 +26813,11 @@ SELECT DISTINCT + 26 * - 78, + 39 AS col2 # 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\(9\) / Int64\(12\) AS col0" at position 0 and "Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 9 / 12 col0, 11 AS col0 +---- +0 +11 query II rowsort label-5025 SELECT 78 * - 60 AS col1, + COUNT ( * ) @@ -26577,8 +26922,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1710 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-19\) \* Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, - 19 * - 90 AS col1 +---- +1 +1710 query II rowsort SELECT ALL ( + + 60 ) * 70, 45 + 5 AS col1 @@ -26691,8 +27039,11 @@ SELECT 42 + - 0 / - 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col1" at position 0 and "coalesce\(Int64\(60\), Int64\(\-8\), sum\(\(\- Int64\(63\)\)\) \* Int64\(74\), \(\- Int64\(\-89\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 47 AS col1, + COALESCE ( 60, - 8, + SUM ( ALL - + 63 ) * 74, - - 89 ) AS col1 +---- +-47 +60 query I rowsort SELECT + 71 + 43 col0 @@ -26824,8 +27175,11 @@ SELECT DISTINCT - - 77 * ( - COUNT ( * ) ) * 79 + - ( + 23 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2596 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* \(\- Int64\(44\)\) AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 59 * - + 44 col1, 28 AS col1 +---- +-2596 +28 query I rowsort SELECT + 57 * - + 64 + 42 + + - 86 @@ -27121,8 +27475,11 @@ SELECT 59 * + NULLIF ( 4, 56 ), 84 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-95\), \(\- Int64\(\-49\)\) \* Int64\(82\)\)\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COALESCE ( - 95, - - 49 * + + 82 ) AS col1, 84 AS col1 +---- +84 +95 query I rowsort label-5147 SELECT - ( - - NULLIF ( 50, 37 * - 47 + - NULLIF ( - NULLIF ( 26, + - 80 ), + COALESCE ( 29, + 63, - CAST ( - NULLIF ( + 99, + 71 ) AS INTEGER ) ) * + + 64 + CASE 93 WHEN CASE + - 58 WHEN 30 THEN NULL WHEN 95 * + 70 + + 94 THEN + CASE + - 66 WHEN + CAST ( NULL AS INTEGER ) + + 24 + - 1 + - ( + 99 ) * 28 * - COUNT ( * ) THEN NULL ELSE + 83 END WHEN + 79 THEN NULL WHEN 45 THEN NULL END * 56 THEN + MIN ( 35 ) ELSE 15 / 36 + - ( 97 ) * - 95 END ) ) ) col1 @@ -27190,8 +27547,11 @@ 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\(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\. +query II valuesort SELECT 88 * - - 93 + - - 50 + + 18 + 92 + + 92 / - COUNT ( * ) AS col2, 9 + - + 38 AS col2 +---- +-29 +8252 query I rowsort label-5160 SELECT ALL - 7 * + COUNT ( * ) AS col1 @@ -27408,8 +27768,11 @@ 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\(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\. +query II valuesort 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 +---- +141512 +28 query I rowsort label-5200 SELECT ALL MAX ( 91 ) AS col1 @@ -27455,8 +27818,11 @@ SELECT DISTINCT 10 * - 82 * - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(21\) WHEN CAST\(Int64\(35\) AS Int32\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col1" at position 0 and "Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CASE 21 WHEN + CAST ( + 35 AS INTEGER ) THEN NULL ELSE + ( + - COUNT ( * ) ) END AS col1, - 20 AS col1 +---- +-1 +-20 query I rowsort label-5209 SELECT ALL - 86 / - - 96 * - 27 * - - 61 - + - SUM ( DISTINCT + 70 ) @@ -27890,8 +28256,11 @@ SELECT + 61 * + 46 / + COUNT ( * ) - + NULLIF ( - 81, - 48 ) * - 58 * 53 + 12 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \- Int64\(\-4\) AS col2" at position 0 and "nullif\(Int64\(\-78\), Int64\(62\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 9 - - 4 AS col2, NULLIF ( + - 78, + 62 ) AS col2 +---- +-78 +13 query I rowsort label-5294 SELECT + MIN ( - 60 ) AS col1 @@ -27995,8 +28364,11 @@ SELECT ALL - 57, 28 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) / Int64\(\-66\) AS col0" at position 0 and "Int64\(\-95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 5 / - 66 AS col0, - 95 AS col0 +---- +-95 +0 query I rowsort label-5314 SELECT DISTINCT - + 53 + + COUNT ( * ) * + + 81 + 76 * + - 90 * - 80 * + 91 AS col0 @@ -28672,8 +29044,12 @@ 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\(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\. +query III valuesort SELECT DISTINCT 42 AS col0, 55 + - COALESCE ( - COUNT ( * ), - 27 * 20 ) AS col1, + 64 AS col1 +---- +42 +56 +64 query I rowsort SELECT - COALESCE ( + 26, + 17 ) @@ -28889,8 +29265,12 @@ 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\(1\)\) AS count\(\*\)\) / Int64\(57\) \* Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 48 AS col1, + 82 * - - 82 * - - 94 * - 44 + 15 + - COUNT ( * ) / + 57 * + 74 AS col1, + - 68 +---- +-27810449 +-68 +48 query I rowsort SELECT ALL ( 34 ) + + 80 @@ -29140,8 +29520,11 @@ 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\(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\. +query II valuesort 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 +---- +37 +NULL query I rowsort label-5530 SELECT ALL + 7 + + + ( + COUNT ( * ) ) + - ( + + 77 ) + 0 * - COUNT ( ALL + - 57 ) * 68 AS col1 @@ -29399,8 +29782,11 @@ SELECT DISTINCT COUNT ( - + 41 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ Int64\(\-15\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 61 + - 15 AS col1, + CAST ( + + ( - COUNT ( * ) ) AS INTEGER ) * - COUNT ( * ) AS col1 +---- +1 +46 query I rowsort label-5579 SELECT + COUNT ( * ) * - - 77 AS col1 @@ -29803,8 +30189,11 @@ SELECT + ( + 8 ) * 22 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - -305 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "Int64\(33\) \- \(\- Int64\(\-48\)\) \+ \(\- Int64\(5\)\) \* \(\- Int64\(\-58\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 2 AS col0, + 33 - - - 48 + - ( 5 ) * - + ( - 58 ) AS col0 +---- +-305 +2 query II rowsort SELECT + + 61 AS col0, + 3 * - 11 * + 64 @@ -29830,8 +30219,11 @@ SELECT - 29 / 32 - + - NULLIF ( + 15, - 61 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 53 AS col2, 85 AS col2 +---- +-53 +85 query I rowsort label-5661 SELECT 22 / 86 * - COUNT ( * ) col2 @@ -30182,8 +30574,11 @@ SELECT DISTINCT + 85 * - + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 96 * - - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) * + - 14 AS col0 +---- +-14 +NULL query I rowsort label-5727 SELECT ALL 55 - - ( - 33 ) + + COUNT ( * ) + - 77 @@ -30868,14 +31263,20 @@ 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\(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\. +query II valuesort SELECT ALL - + COUNT ( * ) AS col1, 70 + + MIN ( DISTINCT 42 ) - 14 AS col1 +---- +-1 +98 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - -1896 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col0" at position 0 and "Int64\(80\) \* Int64\(\-23\) \+ Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 92 AS col0, 80 * - 23 + - 56 AS col0 +---- +-1896 +-92 query I rowsort label-5863 SELECT ALL - SUM ( ALL + 11 ) / - - NULLIF ( 13, COUNT ( * ) + - ( 26 ) ) + 99 AS col0 @@ -31220,8 +31621,11 @@ SELECT DISTINCT - 15 * + 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -9339 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-4\)\) AS col2" at position 0 and "Int64\(14\) \* Int64\(20\) \* Int64\(\-43\) \+ Int64\(\-59\) \+ Int64\(92\) \* Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 4 AS col2, 14 * 20 * + - 43 + - 59 + + 92 * + 30 AS col2 +---- +-9339 +4 query I rowsort label-5930 SELECT DISTINCT 73 / - 84 @@ -31266,8 +31670,11 @@ SELECT - 2 * - 60 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(98\)\) AS col2" at position 0 and "Int64\(\-53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( MAX ( DISTINCT + 98 ) ) AS col2, - 53 AS col2 +---- +-53 +98 query II rowsort SELECT - 51 AS col0, + 71 * + - 18 @@ -31353,8 +31760,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 18 * - COUNT ( * ) AS col0, 35 AS col0 +---- +-18 +35 query I rowsort SELECT - 97 * - 51 AS col1 @@ -32047,8 +32457,11 @@ SELECT ALL + NULLIF ( - - 36, - COUNT ( * ) + - COUNT ( * ) * + 62 + + 37 ) AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - 3599 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* Int64\(61\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( 59 ) * + + 61 AS col0, COUNT ( * ) AS col0 +---- +1 +3599 query I rowsort SELECT - 79 * - 84 @@ -32164,8 +32577,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( - 19 ) * + 83 AS col0, COALESCE ( - NULLIF ( ( + 97 ), - 74 - + COALESCE ( - - 14, - 85 ) ), + 0, - COUNT ( * ) ) AS col0 +---- +-1577 +-97 query I rowsort label-6111 SELECT ( - - 33 ) * + 80 + + 94 / - 86 + - 53 * - 45 AS col1 @@ -32224,8 +32640,11 @@ SELECT 12 AS col2, COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "Int64\(\-17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 AS col0, + ( - 17 ) AS col0 +---- +-17 +95 query I rowsort label-6122 SELECT DISTINCT - CAST ( 17 AS INTEGER ) + - COUNT ( * ) col1 @@ -32247,8 +32666,12 @@ SELECT ALL + 70 + 43 + 80 * + + MIN ( ALL + - 56 ) + + 87 + + + 31 * - - 22 # Datafusion - Expected - -9 # Datafusion - Expected - 33 # Datafusion - Expected - 145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col0" at position 0 and "\(\- Int64\(\-92\)\) \- Int64\(\-89\) \- Int64\(36\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 9 AS col0, COUNT ( DISTINCT - + 29 ) * + 33, - - 92 - + - 89 - + 36 AS col0 +---- +-9 +145 +33 query II rowsort SELECT + 6, 9 AS col2 @@ -32467,8 +32890,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * + - 69 AS col2, 83 col2 +---- +69 +83 query I rowsort label-6166 SELECT + 54 + + ( - + 16 ) + - + COUNT ( * ) @@ -33123,8 +33549,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 10 AS col2, ( - COUNT ( * ) ) * + 8 AS col2 +---- +-8 +10 query I rowsort label-6292 SELECT + 7 + + COUNT ( - - 69 ) AS col1 @@ -33771,8 +34200,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 15 AS col2, 55 AS col2 +---- +15 +55 query I rowsort SELECT ALL 69 * + 65 + + - CASE - - 97 WHEN 71 THEN NULL WHEN + - ( - 76 ) THEN - 16 END @@ -33793,8 +34225,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) / - CASE + 92 WHEN + 10 THEN COUNT ( * ) END AS col0, - 98 AS col0 +---- +-98 +NULL query I rowsort label-6421 SELECT CASE + 22 WHEN - 57 * - 55 * 33 THEN + MAX ( - + 40 ) * - 77 ELSE + 25 END @@ -33860,8 +34295,11 @@ SELECT + 82 * - 77 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(19\) AS Int32\)\) \+ \(\- CAST\(NULL AS Int32\)\) \- \(\- Int64\(11\)\) / \(\- Int64\(\-91\)\) AS col2" at position 0 and "Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - CAST ( 19 AS INTEGER ) + - CAST ( NULL AS INTEGER ) - - + 11 / - - 91 AS col2, + 72 AS col2 +---- +72 +NULL query I rowsort SELECT - ( - 6 ) + - 40 @@ -33977,8 +34415,12 @@ SELECT DISTINCT 32 * + 97 # Datafusion - Expected - 95 # Datafusion - Expected - -48 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(95\), Int64\(\-88\) \+ Int64\(\-86\), \(\- Int64\(70\)\)\) AS col0" at position 0 and "\(\- \(\- max\(Int64\(80\)\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + COALESCE ( + + 95, - 88 + + ( - 86 ), - + 70 ) AS col0, - 48, - ( - MAX ( ALL + 80 ) ) col0 +---- +-48 +80 +95 query I rowsort label-6457 SELECT - 49 * + CAST ( NULL AS INTEGER ) @@ -34289,8 +34731,11 @@ 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\(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\. +query II valuesort SELECT ( - + COUNT ( * ) ) * 0 AS col0, 61 - + 40 AS col0 +---- +0 +21 query I rowsort SELECT - 48 + - 38 @@ -34645,8 +35090,11 @@ SELECT DISTINCT - 65 + - - 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - -106330 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "Int64\(\-70\) \* Int64\(49\) \* Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 32 AS col2, - 70 * 49 * 31 AS col2 +---- +-106330 +32 query I rowsort label-6581 SELECT ALL 50 * - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) @@ -35444,8 +35892,11 @@ SELECT 42 * + COALESCE ( - 71, 36 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -374 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) \* Int64\(28\) \- Int64\(\-46\) AS col1" at position 0 and "Int64\(\-59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 15 * + 28 - - 46 AS col1, - 59 AS col1 +---- +-374 +-59 query I rowsort label-6733 SELECT + MAX ( + 82 ) AS col1 @@ -35743,8 +36194,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 4158 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(63\) \* Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, 63 * + 66 AS col2 +---- +1 +4158 query I rowsort label-6789 SELECT - - COUNT ( * ) - + 4 * + COUNT ( * ) @@ -35754,8 +36208,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 94 AS col1, ( - COUNT ( * ) ) AS col1 +---- +-1 +94 query I rowsort SELECT ALL + + 84 - - - 60 AS col1 @@ -35786,8 +36243,12 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(56\) \+ Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT ( - 79 ) AS col1, COUNT ( * ) + + 56 + - 82 AS col1, ( + + 43 ) + + 36 + - COUNT ( * ) - - COUNT ( * ) +---- +-25 +-79 +79 query II rowsort SELECT + 20 + + - 72 AS col1, + 48 @@ -36054,8 +36515,11 @@ SELECT ALL - COALESCE ( - NULLIF ( - ( + 86 ), + 34 + - 55 ), 19 * + + 48 - 4, - # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-65\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 65 AS col0, COUNT ( * ) AS col0 +---- +1 +65 query II rowsort label-6848 SELECT DISTINCT 55, + 13 + SUM ( ALL + 48 ) / - MAX ( + + 87 ) - - - 49 * - COUNT ( * ) col2 @@ -36387,8 +36851,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 64 * MIN ( ALL + 11 ) AS col2, COUNT ( * ) * + 65 AS col2 +---- +65 +704 query I rowsort SELECT - + ( + 37 ) - + 21 + - + 56 * - + 43 @@ -37060,8 +37527,11 @@ SELECT ALL - 49 - - - SUM ( DISTINCT 58 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(1\) AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 * + 1 col1, 35 AS col1 +---- +35 +6 query I rowsort label-7038 SELECT ALL - 32 / - 10 @@ -37112,8 +37582,11 @@ SELECT 51 * + 13 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 col1, 2 AS col1 +---- +0 +2 query I rowsort label-7048 SELECT 90 + - 68 + - CASE - 3 WHEN + - COUNT ( * ) THEN NULL ELSE + 96 / + COUNT ( * ) END * + 76 AS col0 @@ -37204,8 +37677,11 @@ SELECT DISTINCT - ( - + COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 22239360 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col0" at position 0 and "Int64\(\-54\) \* Int64\(78\) \* Int64\(55\) \* Int64\(\-96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 AS col0, - 54 * + 78 * + ( + 55 ) * - 96 col0 +---- +22239360 +72 query I rowsort label-7066 SELECT + 54 / ( + 97 ) * 51 - - - 50 AS col0 @@ -37500,8 +37976,11 @@ SELECT ALL 32 / + - 42 * - 8 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* CAST\(NULL AS Float64\) \* Int64\(0\) / Int64\(60\) \+ Int64\(34\) AS col2" at position 0 and "Int64\(79\) / Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL 16 * CAST ( NULL AS FLOAT8 ) * 0 / + + 60 + + 34 AS col2, 79 / 52 AS col2 +---- +1 +NULL query I rowsort label-7121 SELECT + NULLIF ( + 3, - - 59 + 76 - + COUNT ( * ) ) AS col1 @@ -37586,8 +38065,11 @@ 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\(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\. +query II valuesort SELECT ALL + COALESCE ( + - COUNT ( * ), + 6 ) AS col0, 48 AS col0 +---- +-1 +48 query I rowsort label-7137 SELECT - + NULLIF ( COUNT ( * ), - 2 ) + + 97 AS col2 @@ -37823,8 +38305,11 @@ SELECT DISTINCT - 46 * + + 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1176 # Datafusion - Expected - 371 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \* Int64\(42\) AS col1" at position 0 and "Int64\(7\) \* \(\- Int64\(\-53\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 28 * + 42 AS col1, + 7 * - - 53 AS col1 +---- +-1176 +371 query I rowsort SELECT 40 * - - 64 col0 @@ -37885,8 +38370,11 @@ SELECT - - COALESCE ( + COUNT ( * ), COUNT ( * ) ) * 56 + 51 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 111 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \+ Int64\(97\) \+ Int64\(\-3\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 17 ) + + 97 + - 3 AS col1, + 53 AS col1 +---- +111 +53 query I rowsort SELECT ALL 74 + - 63 * + 14 AS col0 @@ -37973,8 +38461,11 @@ 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\(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\. +query II valuesort SELECT 14 - + - 94 * - 30 + + - 20 / + ( + - 41 ) - - 23 + - + 42 * + COUNT ( * ) * 40 AS col2, 41 * 70 AS col2 +---- +-4463 +2870 query I rowsort SELECT 20 * + 31 AS col1 @@ -38326,8 +38817,11 @@ SELECT ALL 0 + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 113 # Datafusion - Expected - 77 -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 "Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 58 + 55 AS col1, 77 AS col1 +---- +113 +77 query I rowsort SELECT COALESCE ( + + 76, - + ( + 7 ), + 41 ) - + - 22 AS col0 @@ -38454,8 +38948,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 0 and "Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 AS col1, - 18 AS col1 +---- +-18 +34 query I rowsort label-7304 SELECT 14 + - SUM ( ALL - 54 ) * - 82 AS col1 @@ -38465,8 +38962,11 @@ SELECT 14 + - SUM ( ALL - 54 ) * - 82 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 11 AS col1, + 51 AS col1 +---- +11 +51 query II rowsort SELECT 19 * + 84 + - ( + - 42 ) AS col1, - ( + 22 ) @@ -38782,8 +39282,12 @@ SELECT + 25 * + 81 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - -2304 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* sum\(CAST\(NULL AS Int32\)\) \+ Int64\(22\) \+ Int64\(\-11\) AS col0" at position 0 and "Int64\(2\) \* Int64\(32\) \* \(\- Int64\(36\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - CAST ( NULL AS INTEGER ) * + SUM ( CAST ( NULL AS INTEGER ) ) + 22 + + - 11 AS col0, CAST ( NULL AS INTEGER ), 2 * + + 32 * - + 36 AS col0 +---- +-2304 +NULL +NULL query I rowsort label-7367 SELECT + MIN ( DISTINCT - 25 ) / + 82 AS col0 @@ -38814,8 +39318,11 @@ SELECT + 65 + - 3 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + CAST ( NULL AS FLOAT8 ) AS col0, 79 AS col0 +---- +79 +NULL query I rowsort label-7373 SELECT ALL 35 / - - 11 AS col0 @@ -39315,8 +39822,11 @@ SELECT + COUNT ( ALL + - 86 ) + - 58 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col1" at position 0 and "Int64\(90\) \+ \(\- Int64\(85\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 AS col1, 90 + - + ( 85 ) AS col1 +---- +5 +61 query I rowsort label-7471 SELECT - 95 / + + 57 + 4 * 76 AS col1 @@ -39341,8 +39851,11 @@ SELECT + 42 + ( 86 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 AS col0, ( + 31 ) AS col0 +---- +31 +8 query I rowsort label-7476 SELECT ALL COALESCE ( - + COUNT ( ALL 83 ), - CASE ( + 22 ) WHEN 15 + 88 THEN 73 WHEN + 19 THEN 90 WHEN 45 THEN NULL END ) * + ( - COALESCE ( COUNT ( * ), 89 ) * 63 ) - SUM ( + 18 ) AS col2 @@ -39496,8 +40009,11 @@ SELECT + 99 * + - 52 * 19 * + 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 81 AS col2, 2 AS col2 +---- +2 +81 query I rowsort SELECT ALL - 50 + + ( - + 63 ) @@ -39674,8 +40190,11 @@ SELECT ALL - + COUNT ( * ) * 12 * - 40 - CAST ( 78 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2522 # Datafusion - Expected - 4140 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(26\)\) \* Int64\(97\) AS col2" at position 0 and "\(\- Int64\(\-44\)\) \* Int64\(94\) \+ Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 26 * 97 AS col2, ( - - 44 ) * 94 + ( + 4 ) AS col2 +---- +-2522 +4140 query I rowsort label-7540 SELECT ( + - 24 ) / - + 46 - - - COUNT ( * ) - 47 @@ -39989,8 +40508,11 @@ SELECT ALL + 47, - ( COUNT ( * ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \- Int64\(\-62\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 18 - - 62 AS col2, 89 AS col2 +---- +44 +89 query II rowsort label-7600 SELECT ALL + 34 AS col1, COUNT ( * ) @@ -40234,8 +40756,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) - COUNT ( * ) * 14 AS col2, 23 * - ( 0 ) / 31 + - - 14 * - 47 AS col2 +---- +-15 +-658 query I rowsort SELECT - ( + + ( + 15 ) ) @@ -40619,8 +41144,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 + - ( - COUNT ( * ) ) AS col0, + 23 col0 +---- +10 +23 query II rowsort label-7720 SELECT 78, - 75 * - COUNT ( * ) * + 40 AS col2 @@ -41624,8 +42152,11 @@ SELECT 65 * 19 # 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\(65\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 65 AS col2, 10 AS col2 +---- +10 +65 query I rowsort SELECT DISTINCT - 88 * - - 4 @@ -42013,8 +42544,11 @@ SELECT - COALESCE ( CAST ( - 18 AS INTEGER ), 6, NULLIF ( - 83, + 44 ) * - + CAS # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 AS col2, 53 AS col2 +---- +53 +62 query II rowsort label-7983 SELECT + COUNT ( * ) AS col2, 83 col0 @@ -42116,8 +42650,11 @@ SELECT + COUNT ( * ) - - - 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1620 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \- Int64\(\-94\) \* Int64\(17\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 22 - - 94 * ( 17 ) col1, 75 AS col1 +---- +1620 +75 query I rowsort SELECT ALL 93 + + 27 @@ -42505,8 +43042,11 @@ 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\(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\. +query II valuesort SELECT NULLIF ( 60, + NULLIF ( + + COUNT ( * ), - 29 ) * 96 ) AS col1, 45 * + 77 + + 62 AS col1 +---- +3527 +60 query I rowsort label-8075 SELECT DISTINCT CASE - 79 WHEN + NULLIF ( - - COUNT ( DISTINCT - - 9 ), + 11 * 78 ) * - + 88 THEN COUNT ( DISTINCT - - 31 ) END * + + 67 @@ -43437,8 +43977,11 @@ SELECT ALL - - 72 / - 64 + 23 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 57 AS col1, + 37 AS col1 +---- +37 +57 query II rowsort SELECT ALL + 98 AS col1, 85 AS col0 @@ -43608,8 +44151,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) + 55 AS col1, + 35 + - 34 col1 +---- +1 +56 query I rowsort label-8282 SELECT ALL 44 / + 77 * - 72 / - 35 col2 @@ -43656,14 +44202,21 @@ SELECT DISTINCT - - CAST ( + + 13 AS INTEGER ), - COUNT ( * ) + + 93 col1 # Datafusion - Expected - -2706 # Datafusion - Expected - -53 # Datafusion - Expected - -6195 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* Int64\(\-33\) AS col1" at position 0 and "Int64\(\-53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 82 * - 33 AS col1, - 53 AS col1, + + 9 + + MAX ( ALL + - 94 ) * + 66 AS col1 +---- +-2706 +-53 +-6195 # 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 "Int64\(6\) AS col1" at position 0 and "Int64\(\-93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 AS col1, - 93 col1 +---- +-93 +6 query I rowsort SELECT 64 + 6 AS col0 @@ -43760,8 +44313,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- nullif\(Int64\(36\), avg\(\(\- \(\- Int64\(79\)\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL COUNT ( * ) AS col0, + ( + - NULLIF ( 36, AVG ( ALL - - ( 79 ) ) ) ) AS col0 +---- +-36 +1 query II rowsort label-8311 SELECT 27 AS col0, - MIN ( 59 ) AS col2 @@ -44380,8 +44936,11 @@ SELECT DISTINCT - SUM ( - - 69 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -139 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) \- Int64\(66\) AS col2" at position 0 and "Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 73 - + 66 col2, - 20 col2 +---- +-139 +-20 query I rowsort label-8428 SELECT ALL - CASE - COUNT ( DISTINCT - 9 ) WHEN 48 + 91 * - 4 THEN NULL WHEN + 72 THEN NULL ELSE - + 71 END @@ -44646,8 +45205,11 @@ SELECT ALL + 34 + - - 23 # 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\) AS col1" at position 0 and "Int64\(\-8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 53 AS col1, - 8 AS col1 +---- +-8 +53 query I rowsort SELECT DISTINCT + + 95 - + 73 AS col1 @@ -44683,8 +45245,11 @@ SELECT DISTINCT + CAST ( 22 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CASE Int64\(\-18\) WHEN Int64\(\-32\) THEN Int64\(58\) ELSE Int64\(3\) \+ Int64\(74\) END AS Int32\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + CASE + - 18 WHEN - 32 THEN + 58 ELSE + 3 + 74 END AS INTEGER ) AS col0, - COUNT ( * ) AS col0 +---- +-1 +77 query I rowsort SELECT + ( - + COALESCE ( 23, 35 ) ) AS col0 @@ -44750,14 +45315,20 @@ SELECT ALL + - 6 / CAST ( - 47 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -104398 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-40\) \* Int64\(45\) \* Int64\(58\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) + + + COUNT ( * ) + - 40 * 45 * 58 col0, COUNT ( * ) AS col0 +---- +-104398 +1 # 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\(91\) WHEN min\(\(\- Int64\(\-43\)\)\) THEN NULL WHEN Int64\(\-23\) THEN Int64\(4\) END \- Int64\(13\) AS col2" at position 0 and "Int64\(39\) / Int64\(61\) \* Int64\(77\) / Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CASE + 91 WHEN + + MIN ( - - 43 ) THEN NULL WHEN - 23 THEN + 4 END - + 13 AS col2, 39 / 61 * + 77 / + 44 AS col2 +---- +0 +NULL query I rowsort SELECT + 1 + + + 56 @@ -44783,8 +45354,11 @@ SELECT - 24 / + + 75 * + 99 + + - 23 AS col2, 54 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(21\)\)\) AS col2" at position 0 and "\(\- CAST\(\(\- Int64\(85\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + SUM ( + 21 ) AS col2, - CAST ( - + 85 AS INTEGER ) AS col2 +---- +-21 +85 query I rowsort label-8503 SELECT 18 + - COUNT ( * ) + 19 AS col1 @@ -44995,8 +45569,11 @@ SELECT ( - 23 ) - NULLIF ( + CASE - COUNT ( - 54 ) WHEN - 24 / - - 95 + + 83 THE # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - -83 -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\(\-83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( ALL - 32 ) col0, ( + - 83 ) AS col0 +---- +-83 +32 query II rowsort label-8544 SELECT ALL - 92 * + 56 AS col1, 43 / COALESCE ( - + 8, + 88 ) - 79 * + 47 + - 84 - + 56 @@ -45017,8 +45594,11 @@ SELECT ( + 94 ) + + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1046 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(\-59\) \+ Int64\(\-43\) AS col0" at position 0 and "nullif\(Int64\(\-2\), Int64\(94\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 17 ) * + - 59 + + - 43 AS col0, + NULLIF ( - 2, + 94 ) AS col0 +---- +-1046 +-2 query I rowsort SELECT 60 + + 62 @@ -45100,8 +45680,11 @@ SELECT + COALESCE ( COUNT ( * ), + - 49, - 81 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 133 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "Int64\(54\) \- Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 76 AS col1, + 54 - - 79 AS col1 +---- +133 +76 query I rowsort SELECT + COALESCE ( 35, 2, - 73 ) AS col0 @@ -45489,8 +46072,11 @@ SELECT 52 + + 84 # 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 col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 5 col2, 42 AS col2 +---- +-5 +42 query I rowsort SELECT DISTINCT 63 * + + 39 AS col0 @@ -45985,8 +46571,11 @@ SELECT - + 62 + - 80 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 5670 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "max\(Int64\(70\)\) \* Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 90 AS col2, MAX ( + 70 ) * + 81 AS col2 +---- +5670 +90 query I rowsort label-8731 SELECT ALL + - 48 + CASE + CAST ( + 43 AS FLOAT8 ) WHEN - + 69 * - 63 + - ( - 39 ) THEN + 68 ELSE NULL END AS col1 @@ -46080,8 +46669,11 @@ SELECT DISTINCT - 57 * - 59 * 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-50\)\) AS col1" at position 0 and "Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - 50 ) AS col1, + 6 AS col1 +---- +50 +6 query I rowsort SELECT 68 * - + 85 @@ -46474,8 +47066,11 @@ 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\(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\. +query II valuesort SELECT + 31 + + - COUNT ( * ) + - - 56 * 98 AS col2, 4 * 88 + + - 5 * + NULLIF ( + MIN ( - + 94 ), + ( - 85 ) * + 46 * - - COALESCE ( - 44, 11 ) ) * + - 98 * + + 0 AS col2 +---- +352 +5518 query II rowsort SELECT ( + 66 ) AS col1, - 7 @@ -46794,8 +47389,11 @@ SELECT 93 * 40 - + COUNT ( * ) 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 "CASE Int64\(77\) WHEN Int64\(\-39\) / Int64\(\-34\) \* Int64\(99\) \* \(\- Int64\(\-64\)\) \* Int64\(81\) \* \(\- Int64\(54\)\) \+ \(\- Int64\(\-78\)\) THEN Int64\(\-90\) WHEN Int64\(\-12\) THEN NULL END AS col2" at position 0 and "Int64\(44\) \+ Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CASE 77 WHEN - 39 / + - 34 * + 99 * - - 64 * 81 * - + 54 + - - 78 THEN - 90 WHEN - 12 THEN NULL END AS col2, 44 + - 13 AS col2 +---- +31 +NULL query II rowsort SELECT + 33 AS col2, + 77 @@ -47139,8 +47737,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 8148 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* \(\- sum\(Int64\(\-97\)\)\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 84 * - + SUM ( - 97 ) AS col0, + 92 AS col0 +---- +8148 +92 query I rowsort SELECT + + ( - 4 ) @@ -49857,8 +50458,11 @@ SELECT - ( + + 33 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / Int64\(\-27\) \+ \(\- nullif\(Int64\(\-94\), Int64\(55\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 46 col1, + CAST ( NULL AS INTEGER ) / - 27 + - NULLIF ( + - 94, 55 ) AS col1 +---- +-46 +NULL query I rowsort label-9474 SELECT - SUM ( 4 ) AS col1 @@ -50064,8 +50668,12 @@ NULL # Datafusion - Expected - -4 # Datafusion - Expected - 48 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) / Int64\(\-20\) AS col1" at position 0 and "coalesce\(Int64\(48\), \(\- Int64\(\-64\)\) \+ \(\- Int64\(\-31\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort SELECT 91 / - 20 AS col1, + COALESCE ( + 48, - + ( - 64 ) + - - 31 ) AS col1, + + 47 * - CAST ( NULL AS FLOAT8 ) * + 94 +---- +-4 +48 +NULL query I rowsort SELECT + 37 + 86 @@ -50202,8 +50810,11 @@ SELECT + 58 - - 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 6880 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col0" at position 0 and "Int64\(86\) \* coalesce\(\(\- Int64\(\-80\)\), Int64\(8\) \+ Int64\(73\) \+ Int64\(46\) \- Int64\(\-19\) \* Int64\(\-7\) \* Int64\(75\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 49 AS col0, + 86 * + + COALESCE ( - - 80, 8 + + 73 + 46 - - 19 * - 7 * 75 ) AS col0 +---- +49 +6880 query I rowsort label-9540 SELECT + NULLIF ( - NULLIF ( - 72, + - ( - 55 ) ), + - SUM ( DISTINCT - 33 ) * - MAX ( - 78 ) * + 12 + - COUNT ( * ) + + 43 / - 41 ) AS col2 @@ -50517,8 +51128,11 @@ SELECT DISTINCT + + 63 * - COUNT ( * ) - - + 78 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4446 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(\-57\) AS col1" at position 0 and "sum\(DISTINCT CAST\(NULL AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 78 * - 57 AS col1, + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) + + 64 AS col1 +---- +-4446 +NULL query II rowsort label-9600 SELECT ALL + - ( COUNT ( * ) ) AS col2, - COALESCE ( + 11, - - ( 49 ), 86, - - 29 ) @@ -50761,8 +51375,11 @@ SELECT ALL + - 9 + + - COALESCE ( CASE 0 WHEN + COUNT ( * ) THEN - - ( 62 ) WHEN # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \- Int64\(25\) \+ Int64\(\-53\) AS col0" at position 0 and "\(\- min\(Int64\(80\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 - + 25 + - 53 col0, - MIN ( + 80 ) AS col0 +---- +-80 +13 query I rowsort label-9646 SELECT DISTINCT SUM ( ALL + - 31 ) + - MAX ( + 22 ) + - 32 + + 56 AS col0 @@ -50963,8 +51580,12 @@ SELECT ALL MAX ( 35 ) / - - 82 * - - 88 + + + 47 + 61 * + 20 + + - CAST ( + 41 A # Datafusion - Expected - 58 # Datafusion - Expected - -2325 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "Int64\(\-37\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 58 AS col2, 75 * + - 31, - 37 AS col2 +---- +-2325 +-37 +58 query I rowsort SELECT + 5 + - 50 * + NULLIF ( - + 30, 83 ) * + 33 * - - 59 * - + ( - ( - 9 ) ) AS col0 @@ -51256,8 +51877,11 @@ 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\(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\. +query II valuesort SELECT ALL 67 * + COALESCE ( - + COUNT ( * ), + ( - - 42 ) * + 83 / - 84, 65 ) / - 88 * 34 + - + 89 AS col2, 17 * 33 AS col2 +---- +-89 +561 query I rowsort label-9739 SELECT + MIN ( DISTINCT 93 ) * - MAX ( DISTINCT - 74 ) AS col0 @@ -51482,8 +52106,11 @@ SELECT ( - 4 ) - + NULLIF ( - 25, 71 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4514 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \* Int64\(61\) AS col2" at position 0 and "Int64\(\-59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 74 * + 61 AS col2, - 59 AS col2 +---- +-4514 +-59 query II rowsort SELECT 45 * 49 AS col0, 8 * - 52 @@ -51547,8 +52174,11 @@ SELECT 62 + + 37 AS col2, + 55 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 2513 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col2" at position 0 and "Int64\(\-28\) \* coalesce\(Int64\(\-88\), min\(Int64\(\-84\)\)\) \- \(\- Int64\(49\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 90 AS col2, - 28 * COALESCE ( + - 88, + MIN ( - 84 ) ) - - + 49 col2 +---- +-90 +2513 query I rowsort label-9793 SELECT ALL 28 * - COUNT ( * ) * - 6 @@ -52000,8 +52630,12 @@ NULL # 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\(1\)\) AS count\(\*\)\) \* Int64\(54\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 99, MIN ( 47 ) AS col1, - COUNT ( * ) * 54 col1 +---- +-54 +-99 +47 query I rowsort label-9880 SELECT ALL + CASE + 96 WHEN - CAST ( - AVG ( DISTINCT - 94 ) AS INTEGER ) THEN NULL WHEN - 4 * + - 73 * 95 + - - 97 THEN + ( ( - - 59 ) ) * + + CAST ( NULL AS INTEGER ) WHEN + 0 + - ( ( - 41 ) ) + - + 26 * + - CAST ( 77 AS INTEGER ) THEN 77 / - + 33 - - NULLIF ( + 71, + 24 ) / 98 ELSE 17 * - ( + 85 * + 9 ) END AS col2 @@ -52081,8 +52715,12 @@ SELECT ALL - 1 + + 67 / + - COUNT ( * ) + 25 # Datafusion - Expected - 14 # Datafusion - Expected - 55 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 14 AS col0, 55 AS col0, + 27 AS col0 +---- +14 +27 +55 query I rowsort label-9895 SELECT 63 / CAST ( NULL AS INTEGER ) @@ -52220,8 +52858,11 @@ SELECT DISTINCT 88 + 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(4\) \- Int64\(\-80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 4 - + - 80 AS col2 +---- +1 +84 query I rowsort SELECT DISTINCT 1 + 61 AS col2 @@ -52489,8 +53130,11 @@ SELECT DISTINCT 91 * + + 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1764 # Datafusion - Expected - -901 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(28\)\) \* Int64\(\-63\) AS col2" at position 0 and "Int64\(17\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(min\(Int64\(\-53\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MAX ( 28 ) * + - 63 col2, 17 * COUNT ( * ) * + CAST ( + MIN ( + - 53 ) AS INTEGER ) AS col2 +---- +-1764 +-901 query I rowsort label-9972 SELECT + 14 / + 66 AS col2 @@ -52543,8 +53187,11 @@ SELECT ALL + - 5 * + ( + + 86 ) - + 25 + + 59 + - - 51 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col2" at position 0 and "\(\- Int64\(14\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 95 AS col2, - ( + 14 ) AS col2 +---- +-14 +-95 query I rowsort label-9982 SELECT MIN ( + + 61 ) @@ -52565,8 +53212,11 @@ SELECT - MIN ( DISTINCT - 49 ) * + 51, - 71 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "nullif\(Int64\(28\), Int64\(23\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, NULLIF ( 28, + 23 ) AS col0 +---- +1 +28 query I rowsort label-9986 SELECT + + COUNT ( - CASE + ( - 95 ) WHEN - + 0 * + 32 * + 95 THEN + 2 WHEN - 22 * - + 92 - 79 + + 58 THEN - NULLIF ( 5, - 52 / 58 ) ELSE + 76 END ) - 30 * - 52 * - 11 diff --git a/data/sqlite/random/expr/slt_good_106.slt b/data/sqlite/random/expr/slt_good_106.slt index c184f38..743c585 100644 --- a/data/sqlite/random/expr/slt_good_106.slt +++ b/data/sqlite/random/expr/slt_good_106.slt @@ -121,8 +121,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 54 * - 79 + 85 * - 47 AS col0, - COUNT ( * ) + + 80 col0 +---- +-8261 +79 query I rowsort SELECT - 69 + + 53 * + - 48 col2 @@ -461,8 +464,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3150 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* Int64\(42\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 75 * 42 AS col2, 54 AS col2 +---- +3150 +54 query I rowsort SELECT - + 69 + + 96 col0 @@ -670,8 +676,11 @@ SELECT ALL 27 / - COALESCE ( - 97, + 37 * + COUNT ( * ) ), - 97 * - 93 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1296 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) \* Int64\(\-24\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 54 * - 24 col0, 88 AS col0 +---- +1296 +88 query I rowsort label-121 SELECT - 85 / - COUNT ( ALL 3 ) @@ -1057,8 +1066,11 @@ SELECT + 39 * + NULLIF ( - NULLIF ( - + ( + 49 ), - 39 * - 23 + - + 70 ), - ( + # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 305 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col2" at position 0 and "Int64\(5\) \* Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 97 col2, 5 * + 61 AS col2 +---- +305 +97 query I rowsort SELECT + 9 + + + 6 @@ -1537,8 +1549,11 @@ SELECT - + 71 * 80 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 70 AS col2, + 77 AS col2 +---- +70 +77 query I rowsort label-287 SELECT - 66 * - 63 * - 36 + + + 80 * - CAST ( + COUNT ( * ) AS INTEGER ) + + CAST ( + - 0 AS INTEGER ) + + + COUNT ( * ) * + 88 * + COUNT ( * ) @@ -1548,8 +1563,11 @@ SELECT - 66 * - 63 * - 36 + + + 80 * - CAST ( + COUNT ( * ) AS INTEGER ) + + CAS # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\)" at position 0 and "Int64\(26\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 26, 26 +---- +26 +26 query I rowsort SELECT ALL + 27 - 22 * + ( - 20 ) @@ -1730,8 +1748,11 @@ SELECT - + 60 * + 7 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7869150 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) \* Int64\(75\) \* Int64\(67\) \* Int64\(29\) AS col0" at position 0 and "nullif\(max\(Int64\(93\)\), \(\- Int64\(\-90\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 54 * 75 * 67 * + + 29 AS col0, NULLIF ( + MAX ( 93 ), - - 90 ) col0 +---- +-7869150 +93 query I rowsort label-324 SELECT DISTINCT COUNT ( * ) * - 1 * + 99 + - 68 + 43 * - 71 - - - 90 col0 @@ -2400,8 +2421,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(71\) \+ Int64\(\-64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 77 / - SUM ( - 55 ) col1, - 55 / + + 51 * + - ( + COUNT ( * ) ) + 71 + - 64 AS col1 +---- +1 +8 query I rowsort label-451 SELECT COALESCE ( - 12, COUNT ( * ) ) @@ -2426,8 +2450,11 @@ 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\(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\. +query II valuesort SELECT + + 46 col1, 1 - - ( COALESCE ( - 12, + + 48 / 78 + COUNT ( * ) ) ) + ( + COUNT ( * ) ) / - 90 * - - 72 AS col1 +---- +-11 +46 query I rowsort SELECT - 1 - 14 AS col0 @@ -3285,8 +3312,11 @@ SELECT - 55, 23 - COUNT ( * ) * + 70 + 16 / - 40 * + + 86 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 66 AS col0, ( + 7 ) AS col0 +---- +66 +7 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -3475,8 +3505,11 @@ SELECT DISTINCT CASE 2 WHEN + + ( - MIN ( ALL + 52 ) ) + ( - + 28 ) + 35 * - 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col0" at position 0 and "Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 39 AS col0, - 80 AS col0 +---- +-80 +39 query II rowsort SELECT 62 AS col1, - NULLIF ( + 18, - 27 ) AS col0 @@ -3990,8 +4023,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 89 AS col1, COUNT ( * ) / 76 AS col1 +---- +0 +89 query II rowsort SELECT 70 AS col2, - 15 AS col0 @@ -4118,8 +4154,11 @@ SELECT DISTINCT + 88 * COALESCE ( + ( - 52 ), - 92 * MAX ( DISTINCT - ( 14 ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 55 col2, + 85 AS col2 +---- +-55 +85 query I rowsort SELECT + COALESCE ( + 25, - 19 + 57 ) @@ -4508,8 +4547,11 @@ SELECT + COUNT ( 87 ) + 18 * - 63 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col1" at position 0 and "max\(DISTINCT Int64\(74\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 25 col1, MAX ( DISTINCT + 74 ) AS col1 +---- +-25 +74 query I rowsort label-859 SELECT ALL 79 / - 56 AS col1 @@ -5049,8 +5091,11 @@ SELECT + ( - MAX ( + CAST ( 16 AS INTEGER ) ) ) - ( + 24 ) + 67 * + 37 AS col0 # 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 "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 87 AS col0, 0 AS col0 +---- +-87 +0 query I rowsort SELECT ALL 14 - + 17 @@ -5621,8 +5666,11 @@ SELECT DISTINCT - 28 + + + COUNT ( * ), - 41 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(9\) AS Int32\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( + + 9 AS INTEGER ) AS col1, 19 AS col1 +---- +19 +9 query I rowsort SELECT ALL 78 + + + 99 * + 17 @@ -5792,8 +5840,11 @@ SELECT 61 + + + COUNT ( - + 13 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 AS col0, ( ( + + 75 ) ) AS col0 +---- +36 +75 query II rowsort SELECT ALL - 15 + - 48 * + 88 + - 54 * - 49 - + + 25 AS col0, 7 + - + ( - 84 ) - - NULLIF ( - 71, + 49 * - ( - COALESCE ( + NULLIF ( 94, + 29 ), - 39 ) ) + 10 ) col1 @@ -5819,8 +5870,11 @@ SELECT 86 - 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 AS col1, + COUNT ( * ) col1 +---- +1 +36 query I rowsort SELECT ALL - 52 - - 26 @@ -6000,8 +6054,12 @@ SELECT - 88 + - - 14 # Datafusion - Expected - -25 # Datafusion - Expected - 0 # Datafusion - Expected - -2151 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* \(\- Int64\(\-61\)\) \* Int64\(0\) AS col0" at position 1 and "Int64\(16\) \+ Int64\(53\) \+ \(\- min\(DISTINCT Int64\(\-74\)\)\) \* Int64\(90\) / Int64\(\-3\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - 71 - + + 96, 5 * - - 61 * + + 0 AS col0, + 16 + 53 + + - MIN ( DISTINCT + - 74 ) * 90 / - 3 AS col0 +---- +-2151 +-25 +0 query I rowsort label-1144 SELECT - 17 * - - COUNT ( * ) * COUNT ( DISTINCT + 75 ) * + 46 @@ -6085,8 +6143,11 @@ SELECT + COALESCE ( COUNT ( * ), 44 * + ( - 61 ) ) col1, 39 # 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 col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 32 AS col2, + 14 col2 +---- +14 +32 query I rowsort label-1160 SELECT DISTINCT COUNT ( * ) * - 2 / + 24 AS col1 @@ -6185,8 +6246,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + 85 / + 81 + ( - 20 ) / + 81 + - 33 + + 14 * - COUNT ( * ) AS col0, MAX ( 16 ) AS col0 +---- +-46 +16 query I rowsort label-1179 SELECT ALL - MAX ( DISTINCT + 57 ) / - - CASE - 4 WHEN - 68 * - + SUM ( + 48 ) THEN - + 95 ELSE NULL END + - ( + 39 ) + 28 @@ -6318,8 +6382,11 @@ SELECT ALL 7 * - 99 # 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 col2" at position 0 and "Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 59 AS col2, - 46 AS col2 +---- +-46 +59 query I rowsort SELECT DISTINCT - 67 * + 66 AS col2 @@ -6480,8 +6547,11 @@ SELECT DISTINCT + 35 * - + 73 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(31\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(99\) \+ Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + 31 ) + + COUNT ( * ) AS col2, 99 + 89 AS col2 +---- +-30 +188 query II rowsort SELECT 40 * 43 AS col0, 97 * - COALESCE ( + + 57, + 26 + 14 ) @@ -6728,8 +6798,11 @@ SELECT ALL 82 AS col2, 7 * + 8 + - - 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - -150 # Datafusion - Expected - -217 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-91\) \+ Int64\(\-59\) AS col1" at position 0 and "Int64\(7\) \* Int64\(\-31\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) * + - 91 + - 59 AS col1, 7 * - 31 * + COUNT ( * ) AS col1 +---- +-150 +-217 query I rowsort SELECT - + 79 + - 71 AS col2 @@ -7166,8 +7239,11 @@ 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\(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\. +query II valuesort SELECT ALL 41 AS col1, COUNT ( * ) / + + 34 * 85 + - - 79 + 37 + - 92 * - 32 AS col1 +---- +3060 +41 query II rowsort label-1366 SELECT DISTINCT 92 AS col0, - SUM ( + + 67 ) * + ( + 14 ) * + 83 + - 6 col2 @@ -7795,14 +7871,20 @@ SELECT + 2 / - 84 + - 83 / - 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-93\)\)\) AS col0" at position 0 and "Int64\(\-19\) \+ Int64\(\-48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - - 93 ) AS col0, - 19 + - 48 AS col0 +---- +-67 +-93 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 1079 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(66\) AS Int32\)\) AS col0" at position 0 and "Int64\(13\) \* \(\- Int64\(\-83\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( 66 AS INTEGER ) col0, 13 * - - 83 AS col0 +---- +-66 +1079 query I rowsort label-1486 SELECT 69 / COUNT ( * ) - + + COUNT ( * ) + 41 AS col0 @@ -8552,8 +8634,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(32\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( DISTINCT + 32 ) AS col2, COUNT ( * ) AS col2 +---- +1 +32 query I rowsort label-1627 SELECT + CASE + 37 WHEN - COUNT ( * ) THEN SUM ( - 3 ) WHEN + COUNT ( - + NULLIF ( + + 11, - ( + 5 ) * - - 4 + + ( + + 51 ) ) ) THEN - + 48 - - 57 + + + 16 * 84 * + + 22 - 41 + - 91 / - COUNT ( * ) * - 52 / - - 46 ELSE NULL END * + 49 + 95 + 82 + 39 AS col1 @@ -8706,8 +8791,12 @@ SELECT + 79 * COUNT ( * ) col0 # Datafusion - Expected - 0 # Datafusion - Expected - 154628 # Datafusion - Expected - 4346 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \* \(\- sum\(Int64\(0\)\)\) AS col2" at position 0 and "Int64\(\-86\) \* Int64\(\-62\) \* Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 78 * - + SUM ( - 0 ) AS col2, - 86 * - 62 * + 29 col2, + NULLIF ( + - 33, + + 4 ) - - - COUNT ( * ) + + 73 * + 60 col1 +---- +0 +154628 +4346 query I rowsort label-1657 SELECT ALL 25 / + 16 @@ -8960,8 +9049,11 @@ SELECT 74 AS col0, NULLIF ( + CAST ( - + COUNT ( * ) AS INTEGER ), + 75 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 AS col2, + 96 AS col2 +---- +94 +96 query I rowsort SELECT DISTINCT - ( + 29 ) + + 1 AS col2 @@ -8996,8 +9088,11 @@ SELECT COUNT ( * ) * - - MAX ( - 58 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 74 AS col0, ( + 73 ) col0 +---- +73 +74 query I rowsort label-1713 SELECT COALESCE ( - 57, - 81 * NULLIF ( 15, - 83 * + + 95 ) + - 92, MAX ( 83 ), - - 45 / 72 ) * - 99 / - 3 + 53 * + 97 + - - 69 + + 42 * + + 38 + - 31 * + 22 @@ -9194,8 +9289,11 @@ SELECT + - COUNT ( ALL 52 ) + - 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(42\)\)\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MAX ( - + 42 ) AS col0, + 64 AS col0 +---- +-42 +64 query I rowsort label-1750 SELECT ALL 62 * CASE + + 73 WHEN + ( - - COUNT ( * ) ) THEN NULL WHEN + + COUNT ( * ) * + COUNT ( * ) THEN - 10 + + 1 - 26 * - + 42 END * + + ( + 89 ) @@ -9575,8 +9673,11 @@ SELECT ALL + 40 - + ( 2 ) * - - 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col0" at position 0 and "CAST\(NULL AS Float64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 24 AS col0, CAST ( NULL AS FLOAT8 ) AS col0 +---- +24 +NULL query I rowsort SELECT 53 + + 15 @@ -9695,8 +9796,11 @@ SELECT DISTINCT - CAST ( + - 75 AS INTEGER ) - - 35 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 89 AS col1, + 51 AS col1 +---- +51 +89 query I rowsort SELECT 28 * + 78 AS col0 @@ -9711,8 +9815,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 AS col2, + 90 * - - COUNT ( * ) col2 +---- +-55 +90 query I rowsort SELECT - 17 - + 48 AS col1 @@ -9748,8 +9855,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 0 AS col1, COUNT ( * ) * - 61 AS col1 +---- +-61 +0 query II rowsort SELECT ALL 16, + 11 - - - COALESCE ( - 66, 82 ) AS col1 @@ -10371,8 +10481,11 @@ SELECT ALL - - 82 * + - 17 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 832 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) \+ max\(Int64\(71\)\) AS col1" at position 0 and "Int64\(32\) \* Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 94 + + MAX ( ALL + 71 ) AS col1, + 32 * + + 26 AS col1 +---- +-23 +832 query I rowsort SELECT ALL + + 77 - + 10 - + 83 @@ -10481,8 +10594,11 @@ SELECT 67 * - 83 + + 2 # 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 "Int64\(88\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 88 AS col0, 91 AS col0 +---- +88 +91 query I rowsort label-1996 SELECT ALL 59 * 29 + COUNT ( * ) AS col1 @@ -10796,8 +10912,11 @@ SELECT ( + + ( - 9 ) ) + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 AS col0, 54 AS col0 +---- +32 +54 query II rowsort SELECT DISTINCT 72 AS col0, + 71 AS col2 @@ -10954,8 +11073,11 @@ SELECT - 6 + - 28 * - - 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 151 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "Int64\(70\) \+ Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 16 AS col1, 70 + + 81 AS col1 +---- +151 +16 query I rowsort label-2086 SELECT 18 + - 7 - + ( + COUNT ( * ) ) @@ -11316,8 +11438,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \- sum\(\(\- Int64\(57\)\)\) \+ Int64\(5\) \+ Int64\(35\) \- \(\- Int64\(0\)\) \* Int64\(\-6\) \* Int64\(73\) AS col1" at position 0 and "Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 36 - SUM ( - + 57 ) + + 5 + + 35 - - + 0 * - 6 * + + 73 AS col1, - 43 col1 +---- +-43 +61 query II rowsort label-2155 SELECT DISTINCT + CASE - 27 WHEN - + 92 * + - COUNT ( * ) THEN NULL WHEN + - 92 THEN NULL WHEN - CAST ( NULL AS INTEGER ) / 62 * 21 * - + ( - + 77 ) THEN + 63 END / + - 13 AS col2, CAST ( 16 AS INTEGER ) @@ -11350,8 +11475,12 @@ 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\(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\. +query III valuesort SELECT ALL - 73 * - COUNT ( * ) AS col2, 92 / + 33 AS col0, COUNT ( * ) + - 8 + - 20 AS col2 +---- +-27 +2 +73 query I rowsort SELECT 88 * - 71 * - - 45 AS col0 @@ -12037,8 +12166,12 @@ SELECT ALL - 83 + - 62 # Datafusion - Expected - 3797 # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \* Int64\(84\) \- Int64\(67\) AS col2" at position 0 and "nullif\(Int64\(0\), Int64\(44\) / \(\- nullif\(Int64\(84\), Int64\(19\)\)\)\) \+ Int64\(\-47\) \* Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 46 * 84 - 67 AS col2, NULLIF ( + 0, + 44 / - NULLIF ( + 84, + 19 ) ) + + - 47 * 13 col2, - - COUNT ( * ) + - - ( + COUNT ( * ) ) +---- +2 +3797 +NULL query I rowsort SELECT DISTINCT - 10 + + 84 AS col2 @@ -12496,8 +12629,11 @@ SELECT - 90 + ( 17 ) + + CAST ( - 17 AS INTEGER ) * + 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 AS col0, 80 AS col0 +---- +46 +80 query I rowsort label-2383 SELECT ALL + 96 - - - 39 - - 4 + 71 * 83 * - ( + COUNT ( * ) ) @@ -13115,8 +13251,11 @@ SELECT ALL + - 35, ( - + 93 ) * NULLIF ( + 69, - 76 + + 52 ) - 30 * 32 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8188 # Datafusion - Expected - -17 -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 "Int64\(\-17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 89 * - 92 AS col2, - 17 AS col2 +---- +-17 +-8188 query I rowsort label-2502 SELECT DISTINCT CASE - 25 WHEN AVG ( ALL - 29 ) / - + COUNT ( * ) THEN NULL ELSE + 68 + 60 END * COALESCE ( - 87 / - ( - 36 / - CAST ( NULL AS INTEGER ) ), - COALESCE ( - 38, - 8 + 89, COUNT ( * ) ) * COALESCE ( + 8 * - COUNT ( * ), + 32 * - 4 ), - 61 + - 33 * + 81, - 1 + 2 ) @@ -13997,8 +14136,11 @@ SELECT ALL + SUM ( + 55 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - -25459 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "Int64\(\-67\) \* \(\- Int64\(38\)\) \* Int64\(\-10\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 AS col0, - 67 * - ( + 38 ) * - 10 + + COUNT ( * ) AS col0 +---- +-25459 +61 query II rowsort label-2671 SELECT DISTINCT 9 AS col2, + COUNT ( 24 ) @@ -15003,8 +15145,11 @@ SELECT ALL 6 * + - ( 66 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3712 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(57\)\)\)\) \* \(\- Int64\(30\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(\(\- sum\(Int64\(5\)\)\) AS Int32\) \* Int64\(77\) \* Int64\(32\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-64\) \* \(\- Int64\(\-58\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - MAX ( 57 ) * - + 30 * + + COUNT ( * ) * + + CAST ( + - SUM ( ALL + + 5 ) AS INTEGER ) * + 77 * 32 + + + CAST ( NULL AS INTEGER ) AS col2, - 64 * - - 58 AS col2 +---- +-3712 +NULL query I rowsort SELECT ALL + 69 * - 17 AS col1 @@ -15065,8 +15210,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) * COUNT ( - 38 ) AS col2, 80 AS col2 +---- +-1 +80 query II rowsort label-2876 SELECT - 71 AS col1, + 98 + - CAST ( + COUNT ( * ) AS INTEGER ) + + 18 @@ -15193,8 +15341,11 @@ SELECT + 79 - + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-80\)\) \* CASE Int64\(72\) WHEN Int64\(0\) THEN NULL WHEN Int64\(2\) THEN Int64\(\-14\) WHEN CAST\(NULL AS Int32\) THEN NULL WHEN Int64\(45\) \* Int64\(20\) \- Int64\(96\) \* Int64\(\-92\) \* Int64\(10\) THEN \(\- Int64\(91\)\) ELSE NULL END AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( + - 80 ) * + CASE 72 WHEN 0 THEN NULL WHEN 2 THEN - 14 WHEN + + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 45 * 20 - 96 * + - 92 * 10 THEN - + 91 ELSE NULL END AS col0, 28 AS col0 +---- +28 +NULL query I rowsort label-2900 SELECT + + 68 * + 23 / - + COUNT ( * ) - + - 9 @@ -15204,8 +15355,11 @@ SELECT + + 68 * + 23 / - + COUNT ( * ) - + - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -784 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col2" at position 0 and "Int64\(\-14\) \* nullif\(Int64\(56\), \(\- Int64\(10\)\) \* nullif\(Int64\(\-39\), \(\- CASE Int64\(\-75\) WHEN Int64\(30\) \* Int64\(63\) \* \(\- Int64\(\-86\)\) \- Int64\(43\) \+ \(\- nullif\(Int64\(13\), \(\- Int64\(\-42\)\) \* Int64\(31\)\)\) THEN NULL WHEN Int64\(32\) \+ Int64\(65\) \* nullif\(Int64\(71\), Int64\(8\) \* Int64\(57\) \+ \(\- CASE count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-30\) \* CAST\(Int64\(\-76\) AS Int32\) WHEN nullif\(Int64\(29\), Int64\(28\)\) \+ Int64\(9\) THEN nullif\(Int64\(13\), Int64\(\-94\) \+ Int64\(\-75\)\) ELSE NULL END\)\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(85\) \* Int64\(47\) END\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-784 +1 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -15301,8 +15455,11 @@ SELECT DISTINCT 16 + + 43 * + 83 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \- \(\- coalesce\(Int64\(\-99\), \(\- Int64\(5\)\), \(\- \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(68\)\)\) AS col2" at position 0 and "Int64\(98\) \* Int64\(\-95\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-19\) \* CASE CAST\(Int64\(83\) AS Float64\) WHEN Int64\(88\) \* Int64\(88\) THEN Int64\(37\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-60 +NULL query I rowsort SELECT 76 + 1 AS col0 @@ -15487,8 +15644,11 @@ SELECT + 36 * COALESCE ( CASE - 58 WHEN - - COALESCE ( + 3, + 68 ) + 47 THEN NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - 7824 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* CAST\(\(\- nullif\(\(\- Int64\(85\)\), Int64\(\-19\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) AS Int32\) \+ Int64\(4\) AS col0" at position 0 and "Int64\(42\) \+ Int64\(8\) \+ Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 92 * + + CAST ( - NULLIF ( - + 85, - 19 * - - COUNT ( * ) ) AS INTEGER ) + + 4 AS col0, 42 + 8 + 44 AS col0 +---- +7824 +94 query I rowsort label-2955 SELECT + 98 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + - CAST ( + 46 AS INTEGER ) - + - 46 @@ -15995,8 +16155,11 @@ SELECT ALL - 67 + - 78 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col1" at position 0 and "Int64\(\-95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 61 AS col1, - 95 col1 +---- +-95 +61 query I rowsort SELECT ALL - 87 + - 42 AS col0 @@ -16566,8 +16729,11 @@ SELECT 38 * - COUNT ( * ) + - - ( + + 86 ) + - 63 + + + 27 * - + ( + 79 ) * - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "Int64\(\-8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 AS col2, - 8 AS col2 +---- +-8 +37 query I rowsort label-3161 SELECT COUNT ( * ) + - + 79 + + 86 + COALESCE ( + - 24, - 52 ) * - 74 @@ -16582,8 +16748,11 @@ 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\(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\. +query II valuesort SELECT 67 * - + COUNT ( * ) AS col0, - ( 29 ) - + 86 AS col0 +---- +-115 +-67 query I rowsort SELECT 38 - + 49 @@ -16782,8 +16951,11 @@ SELECT MAX ( - 99 ) * MIN ( - 91 ) + + + 78 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -44981 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ \(\- max\(DISTINCT Int64\(6\)\)\) AS col1" at position 0 and "CAST\(Int64\(\-51\) AS Int32\) \* Int64\(\-14\) \* Int64\(\-63\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 52 + - + MAX ( DISTINCT 6 ) AS col1, CAST ( - 51 AS INTEGER ) * - 14 * - 63 + COUNT ( * ) col1 +---- +-44981 +46 query I rowsort SELECT + 34 + - 94 @@ -17189,8 +17361,11 @@ 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\(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\. +query II valuesort 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 +---- +9408 +NULL query I rowsort SELECT ALL 90 * 73 @@ -17244,8 +17419,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "Int64\(\-69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 2 AS col2, - 69 AS col2 +---- +-69 +2 query I rowsort label-3290 SELECT ALL + COUNT ( * ) * NULLIF ( + 70, - 29 + + 90 - - 74 ) AS col0 @@ -17270,8 +17448,11 @@ SELECT ALL 34 * + 83 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 19 AS col0, ( 37 ) AS col0 +---- +19 +37 query I rowsort label-3295 SELECT ALL + COUNT ( * ) * 69 - - 45 + - 64 + + + 18 @@ -17314,8 +17495,11 @@ SELECT 98 col2, + 32 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col0" at position 0 and "\(\- nullif\(Int64\(\-91\), Int64\(40\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 49 AS col0, - NULLIF ( + - 91, 40 ) AS col0 +---- +49 +91 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -17453,8 +17637,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) \* \(\- \(\- CAST\(\(\- \(\- avg\(Int64\(26\)\)\)\) AS Int32\)\)\) \- Int64\(56\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 1 * - - CAST ( - - AVG ( + 26 ) AS INTEGER ) - + + 56 AS col0, 90 AS col0 +---- +-82 +90 query I rowsort label-3329 SELECT CASE + - COUNT ( * ) WHEN - MIN ( 90 ) THEN + + COALESCE ( + COUNT ( ALL + 91 ), - MAX ( + + 75 ), - 54 * 60, - - 28 ) ELSE 20 END @@ -17993,8 +18180,11 @@ SELECT DISTINCT + 74 * - + ( + + 1 ) * - 26 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- min\(\(\- Int64\(82\)\)\)\)\) \* \(\- \(\- nullif\(Int64\(\-1\), Int64\(\-22\)\)\)\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - MIN ( - + 82 ) * - - NULLIF ( - 1, - 22 ) AS col1, + 60 AS col1 +---- +60 +82 query I rowsort label-3432 SELECT ALL + 2 * + - COUNT ( * ) * COUNT ( * ) - + - 15 * + 28 @@ -18342,8 +18532,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \- Int64\(11\) / \(\- CASE Int64\(38\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(24\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(28\)\) THEN Int64\(73\) WHEN \(\- Int64\(\-50\)\) \* CAST\(Int64\(\-93\) AS Int32\) \- Int64\(\-5\) \+ Int64\(1\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-90\) THEN NULL END END\) \- max\(Int64\(2\)\) \* Int64\(97\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +45 +NULL query I rowsort SELECT 46 * + + 57 @@ -18575,8 +18768,11 @@ SELECT + - NULLIF ( 35, 30 ) * 70 + - 88 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col0" at position 0 and "Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 18 col0, - 22 AS col0 +---- +-18 +-22 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -18750,8 +18946,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col2" at position 0 and "CASE \(\- CAST\(NULL AS Int32\)\) WHEN \(\- coalesce\(Int64\(26\), \(\- Int64\(\-65\)\)\)\) \+ Int64\(\-20\) \* Int64\(27\) THEN NULL WHEN Int64\(17\) THEN Int64\(\-84\) \+ Int64\(20\) ELSE \(\- max\(DISTINCT Int64\(\-48\)\)\) END \+ Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( + - 37 ) AS col2, CASE ( ( + - CAST ( NULL AS INTEGER ) ) ) WHEN - + ( + COALESCE ( + 26, - - 65 ) ) + - 20 * 27 THEN NULL WHEN + 17 THEN - 84 + + 20 ELSE - MAX ( DISTINCT - 48 ) END + - 41 AS col2 +---- +-37 +7 query I rowsort SELECT - 79 + 35 AS col1 @@ -19386,8 +19585,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - -597 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(34\)\) AS col2" at position 0 and "Int64\(\-63\) \* Int64\(11\) \- Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - ( + 34 ) ) AS col2, - 63 * + 11 - - 96 AS col2 +---- +-34 +-597 query I rowsort label-3694 SELECT DISTINCT 6 * + SUM ( 24 ) + - - 46 @@ -19540,8 +19742,11 @@ SELECT 26 - - - 93 + 72 + + ( + ( + 54 ) ) * + 87 + + 45 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8612 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \+ Int64\(88\) \* \(\- CAST\(Int64\(\-98\) AS Int32\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(11\) \+ Int64\(89\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 12 + + 88 * - + CAST ( - 98 AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) * 11 + 89 * CAST ( NULL AS INTEGER ) AS col2 +---- +8612 +NULL query I rowsort label-3723 SELECT SUM ( ALL + - ( + - COALESCE ( + COALESCE ( + + ( - - 49 ), ( + 65 ) * - 9, + 53 - - 34 ), + NULLIF ( 94, + - 7 + - 4 ) ) ) ) * - + 47 * - - MAX ( - 85 ) - COUNT ( * ) - - 97 @@ -19699,8 +19904,11 @@ SELECT COALESCE ( + 37, 87 ) + - - 80 / ( + - 43 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) / Int64\(57\) \+ Int64\(95\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 10 / 57 + + 95 AS col0, 98 AS col0 +---- +95 +98 query I rowsort SELECT DISTINCT - 63 * - + 41 - ( 16 ) @@ -19807,8 +20015,11 @@ SELECT - + 80 - - 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(41\)\) AS col0" at position 0 and "Int64\(68\) \+ \(\- min\(Int64\(\-57\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 41 AS col0, 68 + + - MIN ( ALL - 57 ) col0 +---- +-41 +125 query II rowsort SELECT 14, - 41 AS col2 @@ -20013,8 +20224,11 @@ 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\(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\. +query II valuesort SELECT - - ( + + CASE - 55 WHEN - + 98 * ( + 80 ) THEN 33 + - - COUNT ( * ) ELSE - 44 END ) AS col2, + SUM ( ALL - 7 ) col2 +---- +-44 +-7 query I rowsort SELECT - 12 + 83 @@ -20321,8 +20535,11 @@ NULL # 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\(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\. +query II valuesort SELECT + - 17 * - 79 - + 34 - + + 4 + COUNT ( * ) + + 61 * - - MAX ( + + NULLIF ( - + NULLIF ( + 47, + + 56 / + + 69 + - 13 * + 79 ), 50 ) ) * 63 AS col1, 46 AS col1 +---- +-179315 +46 query I rowsort label-3869 SELECT DISTINCT + COUNT ( * ) * - + ( - 25 ) * + 87 AS col1 @@ -20379,8 +20596,11 @@ 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\(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\. +query II valuesort SELECT + - COUNT ( * ) col1, - 40 - + - 42 AS col1 +---- +-1 +2 query I rowsort label-3880 SELECT + COALESCE ( + + COALESCE ( MAX ( DISTINCT 90 ), + COALESCE ( 6, - - 67 * + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) ) - - 81 ), 45 ) AS col2 @@ -20514,8 +20734,11 @@ 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\(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\. +query II valuesort SELECT - - COUNT ( ALL 15 ) + - - COUNT ( * ) * - - 54 AS col1, + 97 AS col1 +---- +55 +97 query I rowsort label-3905 SELECT - - 72 + + - ( + 13 ) + + + CASE - 24 WHEN + 38 + - + 90 + - 81 THEN NULL ELSE - 78 * - MAX ( DISTINCT - 25 ) * + - ( COUNT ( * ) ) * + 1 + - 4 + + 75 + + 53 END * 15 @@ -21667,8 +21890,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 AS col2, + COUNT ( * ) + + - 13 AS col2 +---- +-12 +9 query I rowsort label-4130 SELECT 8 + + MAX ( ALL + + 73 ) + + COUNT ( * ) / + 98 - - COUNT ( * ) AS col1 @@ -22425,8 +22651,11 @@ NULL # 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 "Int64\(58\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 58 AS col2, 52 AS col2 +---- +52 +58 query I rowsort label-4272 SELECT 48 * + + 5 / COUNT ( * ) AS col0 @@ -22446,8 +22675,11 @@ SELECT - 6 * + COALESCE ( + - 47, - 98 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col1" at position 0 and "Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 AS col1, - 82 AS col1 +---- +-70 +-82 query I rowsort SELECT + + 76 + + 2 @@ -23662,8 +23894,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 270 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(45\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / Int64\(\-92\) / Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 * + 45 AS col0, - CAST ( NULL AS INTEGER ) / - 92 / + 39 AS col0 +---- +270 +NULL query II rowsort label-4504 SELECT ALL - 13 * + 4, 83 * COALESCE ( + + 81, + NULLIF ( + 29, + 28 ) ) + - NULLIF ( + + COUNT ( * ), + - 50 ) * - + COUNT ( * ) * - 30 + CASE + - 64 WHEN 62 / + COUNT ( * ) + 25 THEN NULL WHEN COUNT ( * ) THEN COUNT ( 99 ) / - ( 7 ) END AS col1 @@ -23797,8 +24032,11 @@ SELECT + 86 + 81 + - 86 + 5 * - COALESCE ( ( + + COUNT ( * ) ), - 89, + 11 * + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(64\), Int64\(\-59\)\)\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( 64, - 59 ) AS col0, + 41 AS col0 +---- +-64 +41 query I rowsort label-4529 SELECT + ( 55 ) + - 45 + - 86 - + 12 + - ( + 0 ) + + 58 * ( 9 ) * - + 90 * 57 + 60 + 40 + 22 * 93 / - 6 + + - 48 AS col1 @@ -24201,8 +24439,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 5 + + 60 / - - 59, + 74 * - 22 + - + 64 AS col1, + 86 + - COUNT ( * ) AS col1 +---- +-1692 +6 +85 query I rowsort SELECT DISTINCT + 37 * + 87 * - 96 @@ -24374,8 +24616,11 @@ SELECT ALL - COALESCE ( + 4, + + 86 - + 18 + 84, + COALESCE ( 7, 27 + - - 62 * - # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(66\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CASE \(\- Int64\(76\)\) WHEN Int64\(76\) THEN Int64\(\-79\) \* nullif\(Int64\(67\), CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\) \+ Int64\(44\) \+ \(\- Int64\(\-82\)\) \* Int64\(\-1\) \* coalesce\(Int64\(\-42\), Int64\(30\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-85\) \* Int64\(\-99\)\)\) \- Int64\(15\) END \* Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +47 +NULL query I rowsort label-4639 SELECT 5 * - ( - - COUNT ( * ) ) AS col2 @@ -24429,8 +24674,11 @@ SELECT ALL - ( + 42 ) + + NULLIF ( - COUNT ( * ), + + 64 * + + 86 ) + + 51 + - 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 1767 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col0" at position 0 and "Int64\(75\) \+ Int64\(18\) \* Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 68 AS col0, 75 + 18 * 94 AS col0 +---- +-68 +1767 query II rowsort SELECT ALL + COALESCE ( - 59, - 56 ) + - 10 AS col0, 34 * + 38 AS col1 @@ -24655,8 +24903,11 @@ SELECT - 14 / 11 + 7 + - ( + ( - 29 ) ) # 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\(28\)\) \+ \(\- Int64\(35\)\) AS col2" at position 0 and "Int64\(13\) \* \(\- count\(Int64\(\-79\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 28 ) + - + 35 AS col2, + 13 * - COUNT ( - 79 ) AS col2 +---- +-13 +-63 query I rowsort label-4692 SELECT ALL + 94 * + CAST ( NULL AS INTEGER ) * - - 35 / + 46 + - + 48 + COUNT ( * ) * 62 col1 @@ -24727,8 +24978,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2765 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-35\)\) \* Int64\(\-79\) AS col0" at position 0 and "Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 35 ) * + - 79 AS col0, + 87 AS col0 +---- +-2765 +87 query I rowsort label-4706 SELECT + CAST ( - + 79 AS INTEGER ) - - 5 @@ -25045,8 +25299,11 @@ 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\(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\. +query II valuesort SELECT - 72 * NULLIF ( + + 57, COUNT ( * ) * + - 87 * + 98 * - - 94 * - 98 + - ( + 40 ) ) AS col2, COUNT ( * ) + - 61 AS col2 +---- +-4104 +-60 query II rowsort label-4768 SELECT - + 45 - + + CAST ( - - 70 AS INTEGER ) AS col2, + 78 @@ -25370,8 +25627,11 @@ SELECT 73 + - 48 # 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 "sum\(Int64\(8\)\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( 8 ) AS col0, 24 AS col0 +---- +24 +8 query I rowsort SELECT - NULLIF ( - - 40, - + 93 + - + 41 ) * - 10 * + - 2 + + - 78 + + 99 @@ -25504,8 +25764,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 AS col2, - COUNT ( * ) AS col2 +---- +-1 +17 query I rowsort label-4855 SELECT COUNT ( * ) / + - 92 + - - 28 + - 94 * 56 * - 60 + - 22 col0 @@ -25781,8 +26044,11 @@ SELECT - 27 * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 213840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "Int64\(55\) \* Int64\(\-81\) \* Int64\(\-48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 col0, 55 * - 81 * - 48 AS col0 +---- +213840 +87 query I rowsort label-4909 SELECT - CASE 62 WHEN - 46 * - + 44 * + - 84 - + 78 THEN - 32 ELSE + ( - 53 ) * SUM ( + 50 ) END @@ -26105,8 +26371,11 @@ SELECT 58 + - 17 / + 24 * 7 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "max\(Int64\(47\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 + CAST ( NULL AS INTEGER ) col2, MAX ( ALL 47 ) AS col2 +---- +47 +NULL query I rowsort SELECT 74 * - - 43 AS col1 @@ -26236,8 +26505,11 @@ SELECT ALL 97 * SUM ( - - 69 ) + 87 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col0" at position 0 and "Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 85 AS col0, - 29 AS col0 +---- +-29 +85 query I rowsort SELECT ALL 45 * + 25 * 30 AS col1 @@ -26815,8 +27087,11 @@ SELECT ALL - ( - COUNT ( * ) ) * 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "Int64\(69\) \+ Int64\(17\) / \(\- Int64\(\-94\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 49 AS col2, 69 + 17 / - - 94 AS col2 +---- +49 +69 query I rowsort label-5107 SELECT 2 / - 18 * + ( - 10 ) AS col1 @@ -26837,8 +27112,11 @@ SELECT DISTINCT - + 60 + - + 17 AS col0, + ( - 97 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col2" at position 0 and "sum\(Int64\(53\)\) \+ CAST\(NULL AS Int32\) \* Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 61 AS col2, + SUM ( + 53 ) + + + CAST ( NULL AS INTEGER ) * + 6 AS col2 +---- +-61 +NULL query I rowsort label-5111 SELECT ALL - 95 + + SUM ( ALL + 33 ) col2 @@ -26848,8 +27126,11 @@ SELECT ALL - 95 + + SUM ( ALL + 33 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 45 AS col0, 83 AS col0 +---- +45 +83 query I rowsort label-5113 SELECT ALL - - 10 + - + 56 + - + COUNT ( * ) @@ -27092,8 +27373,11 @@ 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\(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\. +query II valuesort SELECT ALL NULLIF ( 97, + + COUNT ( * ) * - 22 + 30 ) col0, + 29 AS col0 +---- +29 +97 query I rowsort label-5160 SELECT - - NULLIF ( + ( - COUNT ( * ) ), + - CAST ( - CAST ( 49 AS INTEGER ) AS INTEGER ) * + CAST ( + + 53 AS INTEGER ) ) AS col1 @@ -27239,8 +27523,11 @@ SELECT 20 / + ( + 49 ) * 5 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1475 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-25\) AS Int32\) \* Int64\(59\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( - 25 AS INTEGER ) * 59 AS col0, + 79 AS col0 +---- +-1475 +79 query I rowsort SELECT DISTINCT - ( + 76 ) AS col2 @@ -27452,8 +27739,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) col1, - NULLIF ( - 18, + COALESCE ( + 30, + 63 ) ) AS col1 +---- +-1 +18 query I rowsort SELECT + 61 * + 28 AS col0 @@ -27520,8 +27810,11 @@ SELECT ALL + SUM ( ALL + 98 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col0" at position 0 and "count\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 80 col0, + ( + COUNT ( ALL CAST ( NULL AS INTEGER ) ) ) AS col0 +---- +-80 +0 query I rowsort SELECT + 72 * 39 * + + 44 + + + 16 AS col2 @@ -27832,8 +28125,12 @@ SELECT - 93 + NULLIF ( + + 52, - - 75 + + + 9 + + 33 + + COUNT ( * ) * - 68 ) + # Datafusion - Expected - -53 # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ \(\- Int64\(86\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-53 +1 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -28064,8 +28361,11 @@ SELECT ALL - 6 * 83 - - + 58 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col0" at position 0 and "coalesce\(\(\- Int64\(\-97\)\), count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-81\)\) \* \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 col0, + COALESCE ( - - 97, COUNT ( * ) + - - 81 * - CAST ( COUNT ( * ) AS INTEGER ) ) AS col0 +---- +21 +97 query II rowsort label-5343 SELECT + + 96 AS col0, + 28 / 48 @@ -28406,8 +28706,11 @@ SELECT DISTINCT - 36 AS col0, 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(83\)\) \- Int64\(\-31\) AS col1" at position 0 and "Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + ( + 83 ) - - 31 AS col1, 6 AS col1 +---- +-52 +6 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -28635,8 +28938,12 @@ SELECT 52 AS col0, - 64 + - - 25 AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - -24 # Datafusion - Expected - 78 -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\(78\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query RII valuesort SELECT DISTINCT + CAST ( NULL AS FLOAT8 ) AS col0, - 24 AS col2, 78 AS col0 +---- +-24 +78 +NULL query I rowsort label-5451 SELECT DISTINCT 18 + - - COUNT ( * ) * 78 + - 51 AS col1 @@ -30102,8 +30409,11 @@ SELECT - MIN ( DISTINCT 83 ) * - 97 + 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(38\)\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(94\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( + 38 ) + - - COUNT ( * ) AS col1, 94 - COUNT ( * ) AS col1 +---- +-37 +93 query II rowsort SELECT - 70, - 36 AS col1 @@ -30663,8 +30973,12 @@ SELECT DISTINCT + 69 + + - 49 # Datafusion - Expected - -3402 # Datafusion - Expected - 86 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-63\)\) \* Int64\(\-54\) AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - + ( - 63 ) * - 54 AS col0, 86 AS col0, + 78 +---- +-3402 +78 +86 query I rowsort SELECT + 21 * + - 13 AS col0 @@ -31059,8 +31373,12 @@ SELECT 3 + - 95 AS col0 # Datafusion - Expected - 93 # Datafusion - Expected - -57 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-93\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - - 93 AS col0, + ( - + 57 ), - + CAST ( NULL AS INTEGER ) AS col0 +---- +-57 +93 +NULL query I rowsort SELECT + + ( - - 33 ) * - CASE + 34 WHEN + 99 THEN - 14 END + 0 + + 51 AS col0 @@ -31242,8 +31560,11 @@ SELECT + COALESCE ( + 10, + 49 + SUM ( ALL - 26 ), + 90 ) * 10 * + + 61 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1307 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ Int64\(38\) \* Int64\(20\) \+ Int64\(28\) \* \(\- Int64\(78\)\) \+ 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 II valuesort SELECT ( 91 ) + + 38 * + + 20 + + 28 * - + 78 + 26 AS col0, + 47 AS col0 +---- +-1307 +47 query II rowsort label-5956 SELECT + 21, - MIN ( - 53 ) AS col1 @@ -31416,8 +31737,11 @@ SELECT - COUNT ( * ) * - 10 + + 44 col1, + 46 + - 40 + MAX ( - 32 ) # 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 "Int64\(0\) AS col0" at position 0 and "Int64\(\-81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 0 AS col0, - 81 AS col0 +---- +-81 +0 query I rowsort label-5988 SELECT - COALESCE ( + 83, - COUNT ( * ), + 52 ) * - NULLIF ( - 8, 77 + - - MIN ( ALL + 36 ) / + 26 * - CAST ( NULL AS INTEGER ) ) + CAST ( NULL AS INTEGER ) + COUNT ( * ) col2 @@ -31580,8 +31904,11 @@ 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\(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\. +query II valuesort SELECT ALL + ( - COUNT ( * ) ) AS col1, - 91 AS col1 +---- +-1 +-91 query I rowsort label-6020 SELECT ALL MIN ( + 77 ) * - - 40 @@ -31935,8 +32262,11 @@ SELECT + CASE - AVG ( ALL 11 ) WHEN + 32 THEN NULL ELSE + MAX ( ALL + + 94 ) END # Datafusion - Datafusion expected results: # Datafusion - Expected - 5400 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(60\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90 * + 60 AS col0, 10 AS col0 +---- +10 +5400 query II rowsort SELECT DISTINCT + 37, 26 * - 19 AS col2 @@ -31947,8 +32277,11 @@ SELECT DISTINCT + 37, 26 * - 19 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 16 AS col2, ( + 47 ) AS col2 +---- +16 +47 query I rowsort SELECT DISTINCT + 38 + - 69 * - 61 AS col2 @@ -32801,8 +33134,11 @@ SELECT + 54 * - - 73 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 700 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-20\) \* Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col1, - 20 * - 35 AS col1 +---- +1 +700 query I rowsort SELECT + 30 + - 21 @@ -33554,8 +33890,11 @@ SELECT 7 + + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 AS col2, 90 AS col2 +---- +90 +99 query II rowsort label-6392 SELECT 17 + - 95 AS col0, - 69 / + ( + SUM ( DISTINCT - 64 ) ) @@ -33566,8 +33905,11 @@ SELECT 17 + - 95 AS col0, - 69 / + ( + SUM ( DISTINCT - 64 ) ) # 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 col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 10 col1, + 5 AS col1 +---- +10 +5 query I rowsort SELECT - 75 * - 41 + + + 83 @@ -33683,8 +34025,11 @@ SELECT ALL - 11 + - 13 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-65\)\) AS col2" at position 0 and "Int64\(87\) \+ \(\- \(\- Int64\(61\)\)\) / Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 65 col2, + 87 + - ( - + 61 ) / 57 AS col2 +---- +65 +88 query I rowsort label-6415 SELECT DISTINCT + 83 * - COUNT ( * ) + - - 98 @@ -33699,8 +34044,11 @@ SELECT ALL + 47 * - + 46 * 34 - - 53 - + - COUNT ( * ) + - NULLIF ( 9, - - 45 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "Int64\(61\) / CASE Int64\(\-6\) WHEN CAST\(Int64\(\-80\) AS Int32\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(70\) THEN Int64\(\-83\) \+ \(\- Int64\(45\)\) ELSE NULL END \* \(\- Int64\(4\)\) \+ Int64\(1\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +99 +NULL query I rowsort label-6418 SELECT + 57 * + COUNT ( * ) AS col2 @@ -33858,8 +34206,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 119 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \+ Int64\(68\) AS col1" at position 0 and "\(\- count\(\(\- Int64\(\-26\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 51 + + 68 AS col1, - COUNT ( ALL - - 26 ) AS col1 +---- +-1 +119 query I rowsort label-6448 SELECT - + NULLIF ( - 1, + 16 ) / + 95 / - 39 @@ -33952,8 +34303,12 @@ SELECT + 82 + + + COALESCE ( + 48, - - COALESCE ( - 51, COUNT ( * ), - + 2 ) ) A # Datafusion - Expected - NULL # Datafusion - Expected - 31 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(3\) WHEN CAST\(NULL AS Int32\) \+ Int64\(66\) THEN Int64\(15\) \+ Int64\(\-51\) WHEN \(\- CAST\(NULL AS Int32\)\) \- \(\- Int64\(\-65\)\) THEN NULL WHEN \(\- min\(Int64\(60\)\)\) \* Int64\(\-36\) \- Int64\(49\) THEN Int64\(49\) \* Int64\(\-15\) \+ Int64\(\-16\) END / Int64\(25\) \* Int64\(\-79\) \* Int64\(\-27\) \- Int64\(\-41\) \+ Int64\(\-43\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(\-74\) / Int64\(18\) AS col2" at position 0 and "\(\- Int64\(\-31\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-54 +31 +NULL query I rowsort label-6466 SELECT + MIN ( DISTINCT + ( - 40 ) ) * + 77 AS col1 @@ -34228,8 +34583,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 AS col2, ( 58 ) * + MAX ( + 20 ) * - COUNT ( * ) AS col2 +---- +-1160 +16 query I rowsort SELECT 41 * - 65 * + 17 @@ -34260,8 +34618,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 99 col2, - ( + - COUNT ( * ) ) AS col2 +---- +1 +99 query I rowsort label-6523 SELECT 35 * ( + MAX ( 91 ) ) * + 7 + - ( + 57 ) + - + 67 @@ -34786,8 +35147,11 @@ SELECT ALL 88 + MIN ( DISTINCT + + 76 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 61 AS col1, 72 AS col1 +---- +-61 +72 query I rowsort label-6622 SELECT SUM ( + - 32 ) * 28 AS col1 @@ -34844,8 +35208,12 @@ NULL # Datafusion - Expected - -591 # Datafusion - Expected - 72 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* Int64\(\-21\) \+ 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 III valuesort SELECT 29 * - 21 + 18 AS col0, 72 AS col0, 32 AS col1 +---- +-591 +32 +72 query I rowsort label-6633 SELECT - COUNT ( * ) * + 91 / 11 @@ -34922,8 +35290,11 @@ 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\(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\. +query II valuesort SELECT ALL + 33 + - + 83 - + - COUNT ( * ) * - 25 col1, 51 + + - 18 AS col1 +---- +-75 +33 query I rowsort label-6648 SELECT ALL MAX ( DISTINCT 39 ) AS col2 @@ -35017,8 +35388,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * + - 77 AS col2, 90 AS col2 +---- +-77 +90 query I rowsort label-6666 SELECT - CAST ( - CASE 75 WHEN - 92 THEN + + 99 WHEN - ( - COUNT ( * ) ) THEN NULL WHEN + - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END AS INTEGER ) * - - 43 + + CAST ( COUNT ( * ) AS INTEGER ) + + - 75 AS col2 @@ -35079,8 +35453,11 @@ SELECT + 15 / + 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 84 AS col1, COUNT ( * ) AS col1 +---- +1 +84 query I rowsort label-6678 SELECT ALL 50 * NULLIF ( - 63, 58 + - - 25 * + - 11 ) + COUNT ( * ) + + - ( - - 58 ) @@ -35119,8 +35496,11 @@ SELECT ALL MAX ( DISTINCT 52 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -163 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(87\)\)\) \+ Int64\(\-76\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( - + 87 ) + - 76 AS col1, + 69 col1 +---- +-163 +69 query I rowsort SELECT ALL NULLIF ( + 70, 73 ) AS col1 @@ -35214,8 +35594,12 @@ 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\(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\. +query III valuesort SELECT ALL + + COUNT ( * ) / + ( + 14 ) + + + ( - + 88 ) AS col0, + 36 AS col0, 64 col1 +---- +-88 +36 +64 query I rowsort SELECT + + CASE + - 21 WHEN + + 81 THEN 20 ELSE NULL END AS col1 @@ -35236,8 +35620,11 @@ SELECT ALL - - 2 * - - 7 + - 37 + + + ( 50 ) - + 65 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 173043 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col1" at position 0 and "Int64\(\-51\) \* Int64\(87\) \* \(\- Int64\(39\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 50 AS col1, - 51 * + 87 * + - ( + 39 ) AS col1 +---- +173043 +50 query I rowsort SELECT 14 * + 90 * - - 28 + + + 42 + + 38 AS col0 @@ -35257,8 +35644,11 @@ SELECT DISTINCT + CAST ( + + 8 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col1" at position 0 and "Int64\(65\) \* Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 31 AS col1, + 65 * 1 col1 +---- +31 +65 query I rowsort SELECT DISTINCT + 70 * + 41 * 78 AS col0 @@ -35476,8 +35866,12 @@ SELECT - 61 + 63 * 40 AS col1 # Datafusion - Expected - -27 # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-28\) AS col2" at position 0 and "CASE Int64\(13\) WHEN CASE nullif\(Int64\(34\), CAST\(NULL AS Int32\)\) WHEN Int64\(\-27\) \* \(\- Int64\(\-29\)\) THEN NULL ELSE count\(Int64\(8\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-47\) \+ \(\- Int64\(\-76\)\) END THEN Int64\(6\) \+ Int64\(\-97\) \+ Int64\(93\) \+ Int64\(79\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(26\) \* Int64\(5\) \* Int64\(99\) WHEN Int64\(34\) \+ Int64\(\-79\) \* Int64\(49\) / Int64\(41\) \+ max\(Int64\(99\)\) THEN Int64\(\-76\) WHEN Int64\(46\) \* Int64\(\-40\) THEN Int64\(52\) / Int64\(\-39\) \* Int64\(\-34\) \* Int64\(76\) ELSE NULL END \+ Int64\(\-78\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-27 +1 +NULL query I rowsort label-6752 SELECT ALL 48 / + 80 * - + 56 + + NULLIF ( - 27, + + 50 + 91 ) - + - 58 - - - COUNT ( * ) * - + 85 * MIN ( DISTINCT CASE - 94 WHEN 85 * - ( + + 73 ) THEN + 15 END ) AS col0 @@ -35584,8 +35978,12 @@ SELECT ALL 30 * + 92 # Datafusion - Expected - -24 # Datafusion - Expected - 1323 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col0" at position 0 and "max\(Int64\(\-21\)\) \* Int64\(\-63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 24 AS col0, + MAX ( - 21 ) * - 63 AS col0, + 3 +---- +-24 +1323 +3 query I rowsort label-6772 SELECT 76 / - 58 AS col0 @@ -35980,8 +36378,11 @@ 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\(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\. +query II valuesort SELECT ALL - 65 AS col0, 73 / NULLIF ( - COUNT ( * ), COUNT ( * ) ) + + + ( - - 0 ) AS col0 +---- +-65 +-73 query II rowsort SELECT + 66, COALESCE ( - 70, - 41 - + - 78 ) col0 @@ -36153,8 +36554,11 @@ SELECT DISTINCT - - ( 97 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \* Int64\(\-38\) \* Int64\(58\) \* Int64\(0\) AS col1" at position 0 and "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 5 * - 38 * 58 * 0 AS col1, - ( - CAST ( NULL AS INTEGER ) ) AS col1 +---- +0 +NULL query II rowsort SELECT 90 - - + 36 AS col0, - 90 @@ -36217,8 +36621,11 @@ SELECT ALL 18 + - 38 * - 19 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(16\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 16 AS col0, COUNT ( * ) col0 +---- +-16 +1 query I rowsort label-6892 SELECT 5 / + + COUNT ( * ) AS col0 @@ -36417,8 +36824,11 @@ SELECT + 18 + + SUM ( ALL + 61 ) AS col0 # 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 "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 col2, 40 AS col2 +---- +40 +55 query I rowsort SELECT + 0 * - 16 AS col1 @@ -36993,8 +37403,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - COUNT ( * ) AS col2, 64 AS col2 +---- +-1 +64 query II rowsort SELECT DISTINCT + 12 * 63 AS col0, - 32 AS col2 @@ -38136,8 +38549,11 @@ SELECT ( - - COUNT ( * ) ) - 32 * + 11 # 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 col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 72 AS col1, + 11 col1 +---- +11 +72 query I rowsort SELECT 58 - - 10 @@ -38798,8 +39214,11 @@ SELECT 98 * 14 * + 48 * 78 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 3500 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col1" at position 0 and "Int64\(70\) \* Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 13 AS col1, 70 * + 50 AS col1 +---- +13 +3500 query I rowsort SELECT ( - 47 ) + 4 @@ -38897,8 +39316,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( 26, - 44 * + COUNT ( * ) ) AS col0, 39 col0 +---- +26 +39 query I rowsort label-7402 SELECT ALL MIN ( + 51 ) * + 53 + + - 63 + 27 AS col2 @@ -38935,8 +39357,12 @@ SELECT + 36 - 11 + + ( + 23 ) AS col2 # Datafusion - Expected - -20 # Datafusion - Expected - 54 # Datafusion - Expected - 109 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \+ Int64\(\-26\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(53\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 6 + + - 26 AS col0, COUNT ( * ) * + 53 + + + COUNT ( * ) AS col0, - - CASE - + 28 WHEN + 70 * - 92 THEN 87 ELSE + 21 END + SUM ( ALL 88 ) +---- +-20 +109 +54 query I rowsort SELECT + COALESCE ( - 11, 66 * - + 69 - 45 + + 67 ) AS col2 @@ -39002,8 +39428,11 @@ 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\(1\)\) AS count\(\*\) \- \(\- Int64\(\-17\)\) \+ Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 86 * - + 32 * - - 41 * + 36 + + 91 AS col0, COUNT ( * ) - - - 17 + 15 AS col0 +---- +-1 +4062043 query I rowsort label-7422 SELECT - + 19 * CAST ( + 55 AS INTEGER ) / - + 42 + - 80 @@ -39165,8 +39594,11 @@ SELECT - 44 + - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ Int64\(\-73\) AS col0" at position 0 and "Int64\(6\) / \(\- \(\- nullif\(\(\- \(\- Int64\(43\)\)\), Int64\(24\) \+ \(\- Int64\(32\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 95 + ( - 73 ) AS col0, + 6 / - - ( + NULLIF ( - + ( - ( + 43 ) ), 24 + - ( 32 ) ) ) AS col0 +---- +0 +22 query I rowsort label-7453 SELECT DISTINCT - 37 / - ( + 45 ) + + 74 + - ( - ( 99 ) ) @@ -39382,8 +39814,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 51480 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "Int64\(55\) \* Int64\(72\) \* \(\- Int64\(\-13\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 62 AS col1, + 55 * + 72 * - - 13 AS col1 +---- +51480 +62 query I rowsort label-7494 SELECT 73 + + CASE 23 WHEN - 52 * + + 34 THEN NULL ELSE + - CASE - - 28 WHEN 10 * - - 46 - 14 THEN - 16 END END + MIN ( + 12 ) * 14 @@ -39439,8 +39874,11 @@ SELECT 1 / 75 * + 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1123 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* Int64\(\-14\) \+ Int64\(81\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 * + - 14 + 81 AS col0, + 83 col0 +---- +-1123 +83 query I rowsort label-7505 SELECT DISTINCT - SUM ( 19 ) @@ -39709,8 +40147,11 @@ SELECT + + 91 * - 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col1" at position 0 and "Int64\(\-96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 62 col1, - 96 col1 +---- +-62 +-96 query I rowsort SELECT - 30 + + 85 AS col1 @@ -40230,8 +40671,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 65 * 77 AS col1, - COUNT ( * ) AS col1 +---- +-1 +5005 query I rowsort SELECT DISTINCT + + 69 AS col2 @@ -40784,8 +41228,11 @@ SELECT 63 * - + NULLIF ( COUNT ( * ), - 89 + - - COUNT ( * ) * + 65 ) * - CAST ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \* Int64\(11\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 2 * 11 AS col1, 94 AS col1 +---- +-22 +94 query I rowsort label-7763 SELECT - + 11 * - - 11 + 74 + + - 1 * - CAST ( 85 AS INTEGER ) @@ -41055,8 +41502,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * - 79 AS col2, 91 AS col2 +---- +79 +91 query I rowsort label-7814 SELECT DISTINCT + MAX ( + - ( - 67 ) ) - 13 col1 @@ -41323,8 +41773,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col0" at position 0 and "Int64\(\-41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 25 col0, - 41 AS col0 +---- +-25 +-41 query I rowsort SELECT 96 * - + 69 @@ -41354,8 +41807,11 @@ SELECT DISTINCT CAST ( - + 72 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(8\) \* Int64\(\-82\) \* Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 91 AS col0, + CAST ( NULL AS INTEGER ) + 8 * - 82 * ( + 82 ) AS col0 +---- +-91 +NULL query I rowsort label-7872 SELECT 7 * - COUNT ( * ) AS col2 @@ -41686,8 +42142,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "Int64\(\-72\) \+ CASE \(\- Int64\(43\)\) WHEN Int64\(\-44\) THEN NULL WHEN Int64\(15\) \* Int64\(85\) \+ \(\- Int64\(\-33\)\) THEN Int64\(60\) END \* Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 86 AS col2, - 72 + + CASE - + 43 WHEN - 44 THEN NULL WHEN + 15 * 85 + + ( - ( - 33 ) ) THEN + ( 60 ) END * + + 43 AS col2 +---- +86 +NULL query II rowsort label-7936 SELECT DISTINCT + COUNT ( * ), + 64 AS col2 @@ -41713,8 +42172,11 @@ SELECT - COUNT ( * ) * + 59 * - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 112 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-38\) AS Int32\) \+ \(\- Int64\(\-75\)\) \* Int64\(2\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( - 38 AS INTEGER ) + - - 75 * + 2 col2, + 54 AS col2 +---- +112 +54 query I rowsort label-7941 SELECT ALL - 58 + 51 + COUNT ( * ) AS col1 @@ -42241,8 +42703,11 @@ SELECT ALL + - ( 46 ) # 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\(DISTINCT Int64\(2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 29 AS col2, + COUNT ( DISTINCT 2 ) col2 +---- +1 +29 query I rowsort label-8040 SELECT ALL + COUNT ( ALL + 39 ) col0 @@ -42959,8 +43424,12 @@ SELECT 25 * 47 AS col2 # Datafusion - Expected - 54 # Datafusion - Expected - -4901 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "Int64\(50\) \* \(\- Int64\(98\)\) \+ \(\- Int64\(1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 54 AS col1, 50 * - + 98 + - + 1 AS col1, - - COUNT ( * ) * 97 +---- +-4901 +54 +97 query I rowsort SELECT + ( 80 ) * - 72 + - - 19 + 0 @@ -43084,8 +43553,11 @@ SELECT COUNT ( * ) + + 96, + 54 * - 52 AS col0 # 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 "Int64\(0\) AS col0" at position 0 and "sum\(Int64\(\-99\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 0 AS col0, SUM ( - 99 ) col0 +---- +-99 +0 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -43283,8 +43755,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 59 AS col0, - COUNT ( * ) AS col0 +---- +-1 +59 query I rowsort SELECT ALL - 40 * + 2 AS col2 @@ -43708,8 +44183,11 @@ SELECT + + ( + 96 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1815 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(33\), count\(Int64\(\-20\)\)\)\) \* Int64\(55\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - NULLIF ( + + 33, COUNT ( ALL - 20 ) ) * 55 AS col2, 4 AS col2 +---- +-1815 +4 query II rowsort label-8320 SELECT ALL - 97 AS col1, + 75 + - 79 + + 25 + ( ( + - CAST ( NULL AS INTEGER ) ) ) * - - 20 - - 39 * + 8 @@ -43813,8 +44291,11 @@ SELECT 58 * + ( - 84 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col0" at position 0 and "Int64\(66\) / Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 84 AS col0, 66 / 74 AS col0 +---- +-84 +0 query I rowsort label-8340 SELECT 74 + - ( - 23 ) / 79 @@ -44008,8 +44489,11 @@ SELECT - SUM ( - 51 ) * 39 + - ( + 42 ) / 67 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 668 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- Int64\(\-47\)\), Int64\(67\)\)\) \* Int64\(\-13\) \+ Int64\(57\) AS col1" at position 0 and "Int64\(\-72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + NULLIF ( - - 47, 67 ) * - 13 + + 57 AS col1, - 72 AS col1 +---- +-72 +668 query II rowsort label-8378 SELECT ALL - 3 * 26 AS col1, + COUNT ( * ) AS col0 @@ -44123,8 +44607,11 @@ SELECT - + 26 AS col2, 72 / - COALESCE ( - 47, - - ( + 38 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 70 AS col0, 29 AS col0 +---- +29 +70 query I rowsort label-8399 SELECT ALL MIN ( DISTINCT - ( 48 ) ) + - - 59 col1 @@ -44549,8 +45036,11 @@ SELECT + ( + + 89 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 23 AS col0, 60 AS col0 +---- +23 +60 query I rowsort label-8480 SELECT + 28 + + 12 + + 54 + - 39 * COUNT ( * ) / 93 @@ -44780,8 +45270,11 @@ SELECT DISTINCT - 7 * + - 28 * + + COALESCE ( 1, 41 * COUNT ( * ) + + 60 ) AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \- Int64\(\-40\) AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 5 - - 40 col0, + 53 AS col0 +---- +45 +53 query I rowsort label-8524 SELECT CAST ( - + 23 AS INTEGER ) * + 92 @@ -44797,8 +45290,11 @@ SELECT ALL ( - 58 ), 64 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6975 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* Int64\(93\) AS col0" at position 0 and "Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 * 93 AS col0, 47 AS col0 +---- +47 +6975 query I rowsort label-8527 SELECT + CASE MAX ( ALL - ( 80 ) ) WHEN + COUNT ( * ) THEN - ( 89 ) ELSE - 46 END + 23 @@ -45355,8 +45851,11 @@ SELECT 22 * 81 AS col0 # 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 "Int64\(\-68\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 68 AS col2, + 30 AS col2 +---- +-68 +30 query II rowsort label-8636 SELECT 65 AS col0, - COUNT ( * ) @@ -45567,8 +46066,11 @@ SELECT ALL - 18 + 97 AS col2, SUM ( ALL - 69 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \+ Int64\(\-2\) AS col2" at position 0 and "Int64\(21\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 89 + - 2 col2, 21 / COUNT ( * ) col2 +---- +21 +87 query I rowsort label-8676 SELECT + COALESCE ( 15, - - 19 + 90, + COUNT ( * ), 12 / - 78 / - CASE 19 WHEN + 10 + 31 THEN NULL WHEN + - 81 THEN - - 20 + + - 99 + - + ( - 68 ) + - 74 END * + ( + + 37 ) * - 42 * + ( - - 4 ) * + - 65 * + - 9 + SUM ( DISTINCT 9 ) + CAST ( - + CASE 8 WHEN + 22 THEN ( + 29 ) ELSE - NULLIF ( + 55, - ( - - 85 ) / + 95 * - + 90 * + MIN ( DISTINCT - 44 ) + - 39 * + 42 * 22 ) END AS INTEGER ) + + ( CAST ( NULL AS INTEGER ) ) + COUNT ( * ) + + ( 46 ) / + 39 ) @@ -45594,8 +46096,11 @@ SELECT ALL 45 * - COUNT ( - + 80 ) + + + COUNT ( * ) + + 8, + 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col2" at position 0 and "Int64\(5\) \- Int64\(56\) \+ Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( - 41 ) AS col2, + 5 - 56 + + + 95 AS col2 +---- +-41 +44 query I rowsort label-8681 SELECT - - COUNT ( * ) / - 48 * + 30 AS col2 @@ -45913,8 +46418,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) + 0 AS col2, 42 AS col2 +---- +1 +42 query I rowsort SELECT + 85 * + 37 + + 69 AS col1 @@ -46820,8 +47328,11 @@ 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\(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\. +query II valuesort 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 +---- +33 +NULL query I rowsort SELECT DISTINCT + - 95 + 68 @@ -46856,8 +47367,11 @@ SELECT - 53 * - + 37 + - 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 5980 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(91\) AS col2" at position 0 and "CAST\(Int64\(92\) AS Int32\) \* Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) * + + 91 AS col2, + CAST ( 92 AS INTEGER ) * 65 AS col2 +---- +5980 +91 query I rowsort SELECT DISTINCT - 44 * + 32 @@ -47133,8 +47647,11 @@ SELECT ALL NULLIF ( + CAST ( - 8 AS INTEGER ), 29 * - 68 + + 86 * COALESCE ( ( 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1242 -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\(\-54\) \* Int64\(\-23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - CAST ( NULL AS FLOAT8 ) AS col0, - 54 * - 23 AS col0 +---- +1242 +NULL query I rowsort SELECT ALL 74 + + + 11 - + + 16 @@ -47465,8 +47982,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 207060 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col0" at position 0 and "\(\- Int64\(\-17\)\) \* Int64\(29\) \* Int64\(\-20\) \* Int64\(\-21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 10 AS col0, - ( + - 17 ) * 29 * - 20 * - 21 AS col0 +---- +10 +207060 query I rowsort label-9042 SELECT ALL - SUM ( DISTINCT - - 9 ) * - 21 AS col2 @@ -48463,8 +48983,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 10 AS col2, 25 * - - COUNT ( * ) AS col2 +---- +10 +25 query I rowsort SELECT - + 92 + + ( - + 88 ) @@ -48879,8 +49402,11 @@ SELECT COALESCE ( - + NULLIF ( 45, - COUNT ( + - 33 ) ), COALESCE ( - 82, CASE - # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col0" at position 0 and "Int64\(\-17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 97 AS col0, - 17 AS col0 +---- +-17 +97 query I rowsort label-9311 SELECT ALL - 71 * - CAST ( - 72 AS INTEGER ) @@ -48946,8 +49472,12 @@ SELECT COALESCE ( - 33, + COUNT ( * ) ) AS col0 # Datafusion - Expected - 56 # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(48\) \+ Int64\(\-76\) \* \(\- \(\- CAST\(NULL AS Float64\)\)\) AS col1" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- CAST\(NULL AS Int32\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IRI valuesort SELECT ALL + COUNT ( * ) * + 48 + - 60 + 68, COUNT ( * ) * + + 48 + ( + - 76 ) * - - CAST ( NULL AS FLOAT8 ) AS col1, + COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col1 +---- +56 +NULL +NULL query I rowsort label-9324 SELECT - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) @@ -48999,8 +49529,11 @@ 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\(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\. +query II valuesort 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 +---- +-73 +64 query II rowsort label-9334 SELECT ALL 59 / + + 58, 51 AS col0 @@ -49206,8 +49739,11 @@ SELECT DISTINCT 61 * + 7 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col2" at position 0 and "Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 61 AS col2, 17 AS col2 +---- +17 +61 query II rowsort SELECT DISTINCT 13 AS col1, 4 @@ -49218,8 +49754,11 @@ SELECT DISTINCT 13 AS col1, 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 640 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \* Int64\(\-10\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - 64 ) * + - 10 AS col1, + 75 col1 +---- +640 +75 query II rowsort SELECT + 75 AS col2, - 58 @@ -49306,8 +49845,11 @@ SELECT DISTINCT + + 74 + + ( - 84 ) + + 30 * + 68 * 2 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19008 # Datafusion - Expected - -285 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* Int64\(\-72\) \* Int64\(24\) AS col2" at position 0 and "\(\- Int64\(3\)\) \* Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 11 * - 72 * 24 AS col2, ( - + ( + 3 ) ) * + + 95 AS col2 +---- +-19008 +-285 query I rowsort label-9392 SELECT 93 + + + 37 + + 20 + - - MAX ( - - ( - 91 ) ) - + + 30 * + CASE - COALESCE ( 34, 5, + MIN ( DISTINCT - - 17 ) * + 65 ) WHEN + 60 + - AVG ( ALL + - 29 ) / + MAX ( 30 ) THEN NULL ELSE - SUM ( - 7 ) + 37 END + 20 * + 27 * + SUM ( ALL + 71 + 17 ) * ( - 36 ) @@ -49568,8 +50110,11 @@ SELECT - + 75 - - + 80 # 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 col2" at position 0 and "count\(Int64\(49\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 67 AS col2, COUNT ( 49 ) AS col2 +---- +1 +67 query I rowsort label-9441 SELECT + COUNT ( * ) / - ( 60 ) + 87 @@ -50128,8 +50673,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -855 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \+ CASE Int64\(84\) WHEN Int64\(27\) / Int64\(34\) THEN \(\- Int64\(87\)\) WHEN \(\- Int64\(66\)\) THEN NULL WHEN Int64\(\-53\) THEN NULL ELSE count\(CASE Int64\(62\) WHEN Int64\(49\) \* Int64\(\-5\) THEN \(\- Int64\(87\)\) / Int64\(44\) \+ \(\- Int64\(\-92\)\) END\) END AS col2" at position 0 and "Int64\(\-9\) \* \(\- Int64\(\-95\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + + 96 ) + CASE 84 WHEN + 27 / + 34 THEN - + 87 WHEN - + 66 THEN NULL WHEN - 53 THEN NULL ELSE + COUNT ( CASE 62 WHEN 49 * - 5 THEN - + 87 / 44 + - - 92 END ) END AS col2, - 9 * - - 95 AS col2 +---- +-855 +96 query I rowsort label-9546 SELECT DISTINCT + COUNT ( * ) * 38 + + 69 AS col2 @@ -50718,8 +51266,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(57\)\) / Int64\(86\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( + 57 ) / 86 col1, 76 AS col1 +---- +0 +76 query I rowsort label-9659 SELECT 1 * - MIN ( - 65 ) @@ -50872,8 +51423,11 @@ SELECT ALL MIN ( 29 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, 76 AS col2 +---- +1 +76 query I rowsort label-9689 SELECT + 49 * SUM ( ALL ( + - 41 ) ) @@ -51208,8 +51762,11 @@ SELECT 17 + 89 * + 67 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\(0\) 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 II valuesort SELECT ALL 0 AS col1, MIN ( + 8 ) AS col1 +---- +0 +8 query I rowsort label-9753 SELECT DISTINCT + COUNT ( * ) + - 90 @@ -51368,8 +51925,12 @@ SELECT ALL COUNT ( ALL - - 73 ) AS col2 # Datafusion - Expected - -56 # Datafusion - Expected - -7700 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \* Int64\(10\) \* Int64\(22\) AS col0" at position 1 and "Int64\(21\) \+ Int64\(7\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 56, - 35 * + 10 * 22 AS col0, + + ( 21 ) + 7 AS col0 +---- +-56 +-7700 +28 query II rowsort label-9783 SELECT - MIN ( DISTINCT - 8 ) * 8 * 56 AS col1, + 82 @@ -51435,8 +51996,12 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(28\) \* Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 80 col0, + COUNT ( * ) + 28 * + 94 AS col0, - 59 col1 +---- +-59 +2633 +80 query I rowsort label-9795 SELECT + CASE + 68 WHEN + 71 / - + 68 + 39 * + - COUNT ( * ) THEN NULL WHEN - 4 THEN + 84 * + COUNT ( * ) + - 68 END AS col1 @@ -51476,8 +52041,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COALESCE ( + ( 77 ), NULLIF ( COUNT ( * ), + 52 ) / + + SUM ( DISTINCT + 78 ) * + - MAX ( ALL + 18 ) + + 1 + 15 * - 13, 16 ) AS col1, - 92 AS col1 +---- +-92 +77 query I rowsort label-9803 SELECT + 4 * + + MAX ( - 94 ) AS col1 @@ -51555,8 +52123,11 @@ SELECT ALL + 13 * COUNT ( * ) - - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3510 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(\-45\) AS col0" at position 0 and "Int64\(19\) \* Int64\(46\) \* \(\- Int64\(\-41\)\) / Int64\(\-83\) \* \(\- \(\- min\(CASE \(\- CAST\(NULL AS Int32\)\) WHEN Int64\(58\) THEN Int64\(\-57\) END\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 78 * - 45 AS col0, 19 * + 46 * - - 41 / - 83 * - - MIN ( ALL CASE - CAST ( NULL AS INTEGER ) WHEN + + 58 THEN - 57 END ) AS col0 +---- +-3510 +NULL query I rowsort label-9818 SELECT + 54 + - MIN ( DISTINCT 42 ) AS col1 @@ -51576,8 +52147,11 @@ SELECT ALL ( 86 ) * + 58 + + + 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - -6019 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \+ Int64\(11\) AS col0" at position 0 and "\(\- CASE Int64\(\-44\) WHEN Int64\(\-5\) \+ Int64\(81\) THEN NULL ELSE Int64\(86\) END\) \* Int64\(70\) \+ Int64\(\-61\) / Int64\(92\) \+ count\(Int64\(74\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 52 + 11 col0, - CASE - 44 WHEN - 5 + + 81 THEN NULL ELSE + 86 END * + 70 + - 61 / + 92 + + COUNT ( 74 ) AS col0 +---- +-41 +-6019 query I rowsort SELECT DISTINCT COALESCE ( 10, + 92, - 82 ) @@ -52171,8 +52745,11 @@ SELECT + ( + - 92 ) * + 91 - - 30 * + 89 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 2 AS col0, 18 col0 +---- +18 +2 query I rowsort SELECT + - 78 * + - 28 AS col2 diff --git a/data/sqlite/random/expr/slt_good_107.slt b/data/sqlite/random/expr/slt_good_107.slt index 8c9a012..d620491 100644 --- a/data/sqlite/random/expr/slt_good_107.slt +++ b/data/sqlite/random/expr/slt_good_107.slt @@ -289,8 +289,11 @@ SELECT DISTINCT - 55 + + 29 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3316 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \+ Int64\(7\) \+ Int64\(39\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* nullif\(Int64\(\-81\), Int64\(37\) \- Int64\(87\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-17\) \- Int64\(\-12\)\) \+ Int64\(80\) \+ Int64\(76\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 6 + 7 + + + 39 * - COUNT ( * ) * NULLIF ( - 81, 37 - + + 87 * - COUNT ( * ) * - 17 - - 12 ) + 80 + + 76 AS col2, + COUNT ( * ) AS col2 +---- +1 +3316 query I rowsort label-49 SELECT ALL + COALESCE ( - COUNT ( + + 79 ), + + 85 ) * - 44 @@ -684,8 +687,11 @@ SELECT + 79 + - 13 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 25 AS col0, 27 AS col0 +---- +25 +27 query I rowsort label-124 SELECT + COUNT ( - 86 ) / - - NULLIF ( + COUNT ( * ), 35 ) AS col2 @@ -923,8 +929,11 @@ SELECT ALL COUNT ( * ) - + - COUNT ( DISTINCT 53 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3936 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* Int64\(48\) AS col2" at position 0 and "count\(DISTINCT Int64\(82\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 82 * + 48 AS col2, COUNT ( DISTINCT + 82 ) AS col2 +---- +1 +3936 query I rowsort label-170 SELECT CASE 78 WHEN + - CAST ( + CAST ( CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) AS FLOAT8 ) AS INTEGER ) THEN NULL WHEN - 80 THEN - 3 + + 53 END @@ -950,8 +959,11 @@ SELECT ALL - 45 * + ( + + 56 ) * - 92 * 45 + + + 65 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 94024 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-79\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(47\) \* Int64\(\-90\) ELSE NULL END AS col2" at position 0 and "Int64\(72\) \* CAST\(Int64\(87\) AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(15\) \+ coalesce\(Int64\(\-35\), Int64\(56\) \* Int64\(\-6\) \- Int64\(55\) \+ Int64\(62\) \+ Int64\(46\) \* Int64\(83\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +94024 +NULL query I rowsort SELECT DISTINCT COALESCE ( + 19, 14, + 85, - 65 ) AS col1 @@ -1001,8 +1013,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- max\(Int64\(\-43\)\)\), max\(DISTINCT \(\- \(\- Int64\(37\)\)\)\) \* Int64\(88\)\)\) AS col0" at position 0 and "Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - NULLIF ( ( + - MAX ( - 43 ) ), + MAX ( DISTINCT - + ( - + 37 ) ) * 88 ) col0, - 26 AS col0 +---- +-26 +-43 query I rowsort SELECT ALL - 64 + - - 77 AS col2 @@ -1328,8 +1343,11 @@ SELECT ALL + + 21 + + 32 * 22 / 33 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(52\)\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 52 ) AS col1, 94 AS col1 +---- +-52 +94 query I rowsort SELECT ALL - 6 + 22 AS col2 @@ -1838,8 +1856,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) / Int64\(50\) \+ nullif\(Int64\(13\), \(\- Int64\(\-60\)\)\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 / 50 + + NULLIF ( 13, - - 60 ) AS col0, 90 AS col0 +---- +13 +90 query I rowsort SELECT + 66 + - 40 col2 @@ -3408,8 +3429,11 @@ SELECT + 46 * + COUNT ( * ) + + 67 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(22\)\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + + 22 ) AS col0, 88 AS col0 +---- +-22 +88 query I rowsort label-648 SELECT + + COALESCE ( - CASE 4 WHEN + 20 * 36 + - + ( - CAST ( + AVG ( DISTINCT + 29 ) AS INTEGER ) ) THEN - 19 END, - ( + 26 ), 97 + + 42 ) AS col2 @@ -3619,8 +3643,11 @@ SELECT ALL - + 14 * + - 90 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 21 AS col1, + 38 AS col1 +---- +21 +38 query II rowsort SELECT DISTINCT + - 96 AS col0, 57 @@ -3981,8 +4008,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, - 50 col1 +---- +-1 +-50 query I rowsort SELECT ALL 31 + + 18 col0 @@ -4017,8 +4047,11 @@ SELECT ALL + COUNT ( * ) * - - 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 97 col2, COUNT ( * ) col2 +---- +1 +97 query I rowsort SELECT DISTINCT 89 * + 84 col2 @@ -4893,8 +4926,11 @@ SELECT 62 AS col2, CASE WHEN NOT - 6 IN ( + COUNT ( * ) ) THEN + COUNT ( * ) - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 970 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col2" at position 0 and "Int64\(10\) \* \(\- Int64\(\-97\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 88 AS col2, 10 * - - 97 AS col2 +---- +88 +970 query I rowsort label-930 SELECT ( 69 ) - - 37 + - CAST ( NULL AS INTEGER ) @@ -5085,8 +5121,11 @@ SELECT 51 / - COALESCE ( + 15, - ( + 43 ) * 96 * + ( + NULLIF ( + COUNT ( * ), + # Datafusion - Datafusion expected results: # Datafusion - Expected - -3046 # Datafusion - Expected - -3822 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(9\), Int64\(87\) \* \(\- sum\(DISTINCT Int64\(15\)\)\)\) \+ Int64\(47\) \* \(\- Int64\(65\)\) AS col1" at position 0 and "Int64\(54\) \- Int64\(68\) \* Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( 9, 87 * - ( SUM ( DISTINCT 15 ) ) ) + + 47 * - + 65 AS col1, 54 - + 68 * + 57 col1 +---- +-3046 +-3822 query II rowsort label-966 SELECT 52 * + ( + + 3 ) + + 62 + 33 * - - CAST ( NULL AS INTEGER ) * - + ( - - 25 ) AS col1, 51 * + 99 @@ -5187,8 +5226,11 @@ SELECT 97 - 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 99 col1, 30 AS col1 +---- +30 +99 query I rowsort SELECT DISTINCT 8 + + 78 / + CASE - 40 WHEN - 26 THEN + 55 * + - 12 WHEN + 28 + + 84 THEN + - ( - - 64 ) * - 71 END @@ -5312,14 +5354,20 @@ NULL # 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\(84\) AS col0" at position 0 and "Int64\(\-79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 84 AS col0, - 79 col0 +---- +-79 +84 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int32\) AS Int32\) \* min\(Int64\(\-90\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * MIN ( + - 90 ) AS col2, COUNT ( * ) * ( + 86 ) AS col2 +---- +86 +NULL query I rowsort label-1009 SELECT DISTINCT + + COUNT ( DISTINCT - 82 ) @@ -5766,8 +5814,11 @@ SELECT 46 * + 81 * - 73 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 5 -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\(8\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 70 AS col1, + 13 + - + 8 AS col1 +---- +5 +70 query II rowsort label-1094 SELECT 3 AS col2, 15 + - - 11 * - 10 + 22 * + + 63 * - + 24 - - COUNT ( * ) + + 50 + + COUNT ( * ) / 5 AS col0 @@ -5980,8 +6031,11 @@ SELECT + 96 / 9 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(93\), CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( + 93, CAST ( NULL AS INTEGER ) ) col2, + 29 AS col2 +---- +-93 +29 query I rowsort SELECT - 24 * - 95 AS col0 @@ -6381,8 +6435,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 94 ) * - 84 * 29 + + 46 AS col2, NULLIF ( COALESCE ( + 21, + 1 * + - 42 ), - + COUNT ( * ) ) AS col2 +---- +-228938 +21 query I rowsort label-1212 SELECT COUNT ( * ) * + MAX ( DISTINCT - - 91 ) col0 @@ -6438,8 +6495,11 @@ SELECT 95 * - + 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 810 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \* Int64\(\-45\) AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 18 * - 45 AS col2, + 31 AS col2 +---- +31 +810 query I rowsort label-1223 SELECT ALL - + COALESCE ( + 71, - CAST ( - 83 AS INTEGER ) ) col1 @@ -6489,8 +6549,11 @@ SELECT 7 / - 28 - + MAX ( ALL + + 45 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1285 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(34\) \+ Int64\(89\) \* Int64\(\-45\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 * + + ( 34 ) + + 89 * - 45 col0, + COUNT ( * ) AS col0 +---- +-1285 +1 query I rowsort SELECT 65 * 37 * 22 AS col0 @@ -6739,8 +6802,11 @@ SELECT - 29 * COUNT ( * ) col1, COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -3555 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col2" at position 0 and "Int64\(45\) \* Int64\(\-79\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 73 col2, 45 * - 79 / COUNT ( * ) col2 +---- +-3555 +73 query I rowsort SELECT - 6 * 24 AS col0 @@ -6817,8 +6883,11 @@ SELECT - - 73 + + - 5 + - 10 + + 98, + 70 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(99\)\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 99 AS col0, + 17 AS col0 +---- +-99 +17 query I rowsort SELECT - 80 * - 97 @@ -7084,8 +7153,11 @@ 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\(1\)\) AS count\(\*\)\)\) \* Int64\(\-46\) \* Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 20 AS col0, COALESCE ( - - NULLIF ( 58, 18 ), - COUNT ( * ) ) * - 46 * + 57 AS col0 +---- +-152076 +20 query I rowsort label-1346 SELECT - 62 / 46 + - COALESCE ( + + COALESCE ( 73, + COUNT ( - 29 ) + - 11 - - 78 ), 94 ) @@ -7204,8 +7276,11 @@ SELECT - COUNT ( * ), 55 * + 46 * - 14 AS col2 # 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 "min\(Int64\(34\)\) \- \(\- sum\(Int64\(\-78\)\)\) AS col0" at position 0 and "Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( + 34 ) - - SUM ( ALL - 78 ) col0, 37 AS col0 +---- +-44 +37 query I rowsort SELECT ALL ( 20 ) AS col1 @@ -7465,8 +7540,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 2335 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 0 and "Int64\(25\) \+ Int64\(70\) \* \(\- Int64\(\-33\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + ( + - COUNT ( * ) ) AS INTEGER ) AS col1, + 25 + + 70 * - + ( + - 33 ) AS col1 +---- +-1 +2335 query I rowsort SELECT 23 * - 54 * + 90 + - + 43 @@ -8435,8 +8513,11 @@ SELECT ALL 22 + - CAST ( + + COALESCE ( - 69, + AVG ( DISTINCT + 99 ) / 80, 30 + # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- coalesce\(CAST\(NULL AS Int32\), Int64\(\-1\), Int64\(32\), Int64\(\-20\)\)\) \* coalesce\(\(\- min\(Int64\(36\)\)\), Int64\(31\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 AS col0, + CAST ( NULL AS INTEGER ) * - COALESCE ( CAST ( NULL AS INTEGER ), - 1, + 32, - 20 ) * + COALESCE ( + - MIN ( + 36 ), + 31 ) col0 +---- +38 +NULL query I rowsort label-1606 SELECT ALL COUNT ( + 2 ) AS col2 @@ -8792,8 +8873,11 @@ SELECT - 78, COUNT ( DISTINCT - 49 ) * + 68 + - COUNT ( * ) * + 16 - - 94 AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 270 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 0 and "Int64\(5\) \* Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 89 col1, 5 * + + 54 AS col1 +---- +270 +89 query I rowsort label-1674 SELECT DISTINCT 60 / MIN ( DISTINCT + 13 ) + + + 51 AS col2 @@ -9198,8 +9282,11 @@ SELECT ALL 35 + ( 65 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \- Int64\(63\) AS col0" at position 0 and "nullif\(\(\- coalesce\(max\(Int64\(62\)\), Int64\(\-55\)\)\), Int64\(71\) \* \(\- Int64\(\-83\)\)\) \- Int64\(0\) \* \(\- count\(DISTINCT Int64\(\-92\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 - + 63 col0, + NULLIF ( - COALESCE ( MAX ( + 62 ), - 55 ), + 71 * - - 83 ) - + 0 * - COUNT ( DISTINCT - 92 ) AS col0 +---- +-46 +-62 query II rowsort label-1751 SELECT + 93 - + + 40 AS col1, COUNT ( * ) - - + 41 + - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) * + 65 * + COUNT ( * ) AS col2 @@ -10286,8 +10373,11 @@ SELECT + 69 - + - 66 AS col1, 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 103 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ \(\- Int64\(\-28\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 75 + - - 28 AS col2, COUNT ( * ) AS col2 +---- +1 +103 query I rowsort SELECT + 10 * 62 @@ -10605,8 +10695,11 @@ SELECT + 65 * - 28, - 17 * 6 - - 3 / + + 79 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \+ Int64\(\-5\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 47 + - 5 AS col2, + COUNT ( * ) AS col2 +---- +-52 +1 query II rowsort label-2017 SELECT - ( + 57 ) AS col1, - CAST ( + 92 AS INTEGER ) AS col2 @@ -10714,14 +10807,20 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + - - COUNT ( ALL - - 87 ) col2, 45 * + + 24 + + 85 AS col2 +---- +1165 +2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 63 AS col2, COUNT ( * ) AS col2 +---- +-63 +1 query I rowsort SELECT ALL 33 + 72 @@ -11579,8 +11678,11 @@ SELECT - NULLIF ( 56, + + 86 * + 50 + - NULLIF ( + MIN ( 19 ), + COUNT ( * ) ) * # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 95 AS col0, 48 AS col0 +---- +48 +95 query I rowsort SELECT - 28 + + + 83 AS col2 @@ -12104,8 +12206,11 @@ SELECT 80 col2, + ( ( + + 39 ) ) + - + 86 col0 # 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 Float64\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT + CAST ( NULL AS FLOAT8 ) col1, + 16 AS col1 +---- +16 +NULL query I rowsort label-2306 SELECT + - COUNT ( * ) * - - 69 * + 88 - + MAX ( + ( - 78 ) ) + + ( - 77 ) @@ -12484,8 +12589,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 84 col1, COALESCE ( + 46, - MAX ( ALL 47 ) ) + - COUNT ( * ) AS col1 +---- +45 +84 query II rowsort SELECT DISTINCT 37, + 80 AS col1 @@ -13051,8 +13159,11 @@ SELECT DISTINCT 80 * - - ( + - 0 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 220430 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-62\)\) AS col0" at position 0 and "Int64\(67\) \* \(\- Int64\(\-35\)\) \* Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 62 ) AS col0, 67 * - - 35 * 94 AS col0 +---- +220430 +62 query I rowsort SELECT + 51 + + + 25 - + 56 - - 89 - - + 80 col1 @@ -13273,8 +13384,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col1" at position 0 and "max\(DISTINCT Int64\(\-1\)\) / min\(DISTINCT \(\- Int64\(41\)\)\) \* Int64\(\-53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 4 AS col1, + MAX ( DISTINCT - 1 ) / + MIN ( DISTINCT - + 41 ) * ( - 53 ) AS col1 +---- +-4 +0 query I rowsort SELECT DISTINCT - 70 + 92 * + 96 * - + 72 * - 82 AS col2 @@ -13982,8 +14096,11 @@ SELECT 12 + + + COUNT ( * ) + - 35 + - - 47 AS col1, MAX ( - + 84 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \+ \(\- sum\(\(\- coalesce\(Int64\(32\), \(\- Int64\(43\)\) \* Int64\(40\), Int64\(\-17\)\)\)\)\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 74 + - SUM ( - COALESCE ( + 32, - + 43 * 40, + - 17 ) ) AS col2, + 55 AS col2 +---- +-42 +55 query I rowsort label-2659 SELECT - CAST ( ( - + 32 ) AS INTEGER ) * 24 + + + 53 @@ -14557,8 +14674,11 @@ SELECT ALL + - 94 + ( ( + 35 ) ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -189 # Datafusion - Expected - 4288 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* Int64\(\-27\) AS col0" at position 0 and "Int64\(67\) \* Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 * - 27 AS col0, + 67 * 64 AS col0 +---- +-189 +4288 query I rowsort label-2769 SELECT ALL + 86 * - - COUNT ( * ) AS col0 @@ -14617,8 +14737,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * 44 + + 30 AS col0, - 45 + + 73 AS col0 +---- +28 +74 query II rowsort label-2780 SELECT ALL - COUNT ( * ) * - + 60, 10 AS col2 @@ -14801,8 +14924,11 @@ SELECT 57 * + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 448 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(16\) \* Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, 16 * + 28 AS col2 +---- +1 +448 query II rowsort label-2814 SELECT COUNT ( * ) AS col2, - 68 * ( - 68 ) / - 28 @@ -14910,8 +15036,11 @@ SELECT + 77 * - ( + 4 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1386 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(22\), \(\- CAST\(NULL AS Int32\)\) \+ \(\- Int64\(\-24\)\) \+ \(\- Int64\(\-84\)\)\) \* Int64\(63\) AS col0" at position 0 and "\(\- CAST\(Int64\(80\) AS Int32\)\) \+ Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( + 22, - CAST ( NULL AS INTEGER ) + - - 24 + - - 84 ) * 63 AS col0, - CAST ( + + 80 AS INTEGER ) + 14 AS col0 +---- +-66 +1386 query I rowsort label-2834 SELECT DISTINCT + 16 / 79 AS col0 @@ -15913,14 +16042,20 @@ SELECT 49 * + 59 + 34 * - 76 * 52 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-18\) AS Int32\) AS col2" at position 0 and "nullif\(Int64\(37\), Int64\(\-56\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( - 18 AS INTEGER ) AS col2, NULLIF ( + 37, - 56 ) AS col2 +---- +-18 +37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 153090 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-81\), Int64\(34\)\) \* \(\- Int64\(21\)\) \* Int64\(90\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + NULLIF ( + - 81, 34 ) * - + 21 * + 90 AS col2, 11 AS col2 +---- +11 +153090 query I rowsort SELECT 28 + + 78 AS col1 @@ -16043,8 +16178,11 @@ SELECT + NULLIF ( - 87, + CAST ( ( COUNT ( * ) ) AS INTEGER ) * - MAX ( DISTINCT # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -6944 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "Int64\(12\) \+ Int64\(74\) \* CAST\(Int64\(\-94\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 82 AS col0, 12 + + + 74 * CAST ( - 94 AS INTEGER ) col0 +---- +-6944 +82 query II rowsort label-3053 SELECT - 23 + NULLIF ( 83, + 87 ) + - + 86, 13 / + 56 + - + 67 AS col0 @@ -16148,8 +16286,11 @@ SELECT + ( + 0 ) * + 90 * COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col0" at position 0 and "Int64\(2\) \* Int64\(11\) \+ \(\- count\(Int64\(\-29\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 94 AS col0, ( + 2 ) * + + 11 + - COUNT ( - 29 ) AS col0 +---- +21 +94 query I rowsort label-3073 SELECT - 97 / - COUNT ( * ) @@ -16242,8 +16383,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 367 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \- nullif\(Int64\(4\), Int64\(88\)\) \* \(\- Int64\(92\)\) \+ Int64\(97\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 98 - + NULLIF ( 4, + 88 ) * - + 92 + 97 AS col0, + 36 AS col0 +---- +36 +367 query I rowsort SELECT - CASE - 64 WHEN - 72 THEN 42 * ( + 13 ) WHEN 55 THEN 98 WHEN 30 THEN - 20 END AS col1 @@ -16259,20 +16403,29 @@ SELECT - 83, + 61 * 88 * - MIN ( ALL 71 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -880 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(88\) AS col0" at position 0 and "Int64\(11\) \+ CAST\(NULL AS Int32\) \+ Int64\(43\) \- Int64\(86\) \* Int64\(93\) \* Int64\(\-46\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 10 * 88 AS col0, 11 + + CAST ( NULL AS INTEGER ) + + 43 - + 86 * + 93 * - 46 * + COUNT ( * ) AS col0 +---- +-880 +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 col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 11 col1, + COUNT ( * ) AS col1 +---- +-11 +1 # 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\(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\. +query II valuesort SELECT + 34 col2, COUNT ( * ) + - + ( + + COUNT ( * ) ) * + COUNT ( * ) - + - 43 / COUNT ( * ) * - - 81 AS col2 +---- +34 +3483 query I rowsort SELECT - 96 - - 64 * - + 56 AS col1 @@ -16487,8 +16640,11 @@ SELECT COUNT ( * ) / - ( - 49 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -986 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col0" at position 0 and "Int64\(\-18\) \* Int64\(50\) \+ Int64\(\-86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 1 AS col0, - 18 * + 50 + - 86 AS col0 +---- +-986 +1 query II rowsort SELECT ALL - 65 AS col0, 27 col2 @@ -16644,8 +16800,11 @@ SELECT 91 + + 57 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -122 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \- CAST\(Int64\(79\) AS Int32\) \+ \(\- \(\- Int64\(\-69\)\)\) AS col1" at position 0 and "\(\- sum\(DISTINCT Int64\(29\)\)\) \+ Int64\(56\) \* sum\(Int64\(\-10\)\) \* Int64\(35\) \+ \(\- CASE Int64\(94\) WHEN \(\- Int64\(26\)\) \- Int64\(41\) THEN Int64\(\-1\) WHEN Int64\(\-12\) THEN Int64\(\-61\) \+ \(\- coalesce\(\(\- Int64\(\-36\)\), Int64\(84\), Int64\(39\) \* Int64\(12\)\)\) END\) \* Int64\(0\) \+ Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 - + CAST ( + 79 AS INTEGER ) + - - ( - 69 ) AS col1, - SUM ( DISTINCT 29 ) + 56 * + SUM ( ALL + + ( - 10 ) ) * + 35 + - CASE + 94 WHEN - + 26 - + 41 THEN - 1 WHEN + - 12 THEN - 61 + + - COALESCE ( - - 36, 84, 39 * 12 ) END * + 0 + 93 col1 +---- +-122 +NULL query II rowsort SELECT 16 * + + 56, 7 AS col1 @@ -16818,8 +16977,11 @@ 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\(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\. +query II valuesort 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 +---- +-86 +NULL query I rowsort SELECT - 55 * - 38 AS col1 @@ -16982,8 +17144,11 @@ SELECT ALL - - 26 + 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(5\)\) AS col2" at position 0 and "Int64\(57\) / nullif\(\(\- min\(Int64\(23\)\)\), \(\- Int64\(27\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 5 AS col2, + 57 / + NULLIF ( - MIN ( + 23 ), - + 27 ) col2 +---- +-2 +-5 query II rowsort label-3232 SELECT + + MIN ( DISTINCT + + 93 ) AS col1, 14 * + 60 @@ -17156,8 +17321,11 @@ SELECT ALL 39 / + 15 + + - 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8091 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* max\(\(\- Int64\(\-93\)\)\) AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 * MAX ( - - 93 ) AS col1, 50 col1 +---- +50 +8091 query I rowsort SELECT DISTINCT - + 62 col1 @@ -17219,8 +17387,12 @@ 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\(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\. +query III valuesort SELECT 36 * COUNT ( * ) - 97 AS col2, 94 AS col1, 16 * + - 53 * + 90 * + 60 + - 8 AS col2 +---- +-4579208 +-61 +94 query I rowsort SELECT 10 * + 29 AS col0 @@ -17664,8 +17836,11 @@ SELECT + 39 - - 41 * 98 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 173 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \+ \(\- Int64\(\-28\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(76\) \- \(\- Int64\(97\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 + - - 28 * COUNT ( * ) AS col1, 76 - - ( 97 ) col1 +---- +173 +75 query I rowsort SELECT - 22 * + + 82 + 99 * - 99 AS col1 @@ -17766,8 +17941,12 @@ SELECT DISTINCT + COALESCE ( + - 54, + NULLIF ( 3, - 62 / + - 51 - - + 88 ), + 2 # Datafusion - Expected - 78 # Datafusion - Expected - 0 # Datafusion - Expected - -2286 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(1\) AS col2" at position 0 and "Int64\(90\) \+ Int64\(\-36\) \* Int64\(66\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 77 + + 1 AS col2, 31 / + + 92, 90 + - 36 * 66 AS col2 +---- +-2286 +0 +78 query I rowsort SELECT 29 + - + 14 AS col2 @@ -17808,8 +17987,11 @@ SELECT ( - 43 ) + + 73 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 3782 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col0" at position 0 and "Int64\(61\) \* Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 AS col0, 61 * + 62 AS col0 +---- +3782 +39 query I rowsort SELECT ALL - ( - 26 ) col0 @@ -17849,8 +18031,12 @@ SELECT ALL 31 - - - 19 AS col0 # Datafusion - Expected - 82 # Datafusion - Expected - -52 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \+ Int64\(22\) AS col1" at position 1 and "Int64\(18\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - ( - 82 ), - 74 + 22 AS col1, + 18 AS col1 +---- +-52 +18 +82 query II rowsort SELECT ALL - - 54 AS col0, + 58 col2 @@ -18035,8 +18221,11 @@ SELECT - 28 / - 75 - - 61 * + 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(91\), \(\- Int64\(\-30\)\)\)\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COALESCE ( + 91, - - 30 ) AS col2, + 94 AS col2 +---- +-91 +94 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -18386,8 +18575,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -45510 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* Int64\(41\) \* \(\- max\(\(\- Int64\(\-74\)\)\)\) AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 15 * + 41 * - MAX ( - - 74 ) AS col0, 53 AS col0 +---- +-45510 +53 query I rowsort SELECT DISTINCT 32 * 65 @@ -18743,8 +18935,11 @@ SELECT - COALESCE ( COUNT ( * ), - COALESCE ( + + ( COUNT ( 57 ) ), 71 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(5\)\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 5 ) col1, 29 AS col1 +---- +-5 +29 query I rowsort label-3558 SELECT ALL MAX ( DISTINCT - 23 ) col2 @@ -19031,8 +19226,11 @@ SELECT 19 AS col0, COUNT ( ALL + 27 ) * + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "Int64\(79\) \+ Int64\(0\) \+ Int64\(85\) / Int64\(18\) \+ Int64\(13\) \* \(\- Int64\(\-1\)\) \- max\(Int64\(84\)\) / Int64\(\-61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 col2, 79 + - 0 + 85 / 18 + + 13 * - - 1 - MAX ( ALL + 84 ) / - 61 AS col2 +---- +54 +97 query I rowsort SELECT ALL - 93 + 57 AS col1 @@ -20341,8 +20539,11 @@ SELECT 52 - - 23 - + 87 / - 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 235 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ Int64\(89\) \+ \(\- Int64\(\-48\)\) AS col1" at position 0 and "Int64\(\-66\) \+ Int64\(\-9\) \+ Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 + 89 + - - 48 AS col1, - 66 + - 9 + - 5 AS col1 +---- +-80 +235 query II rowsort label-3866 SELECT ALL - + CAST ( + - AVG ( + + 31 ) AS INTEGER ) AS col2, 8 + + + COUNT ( * ) + + COUNT ( * ) AS col1 @@ -21321,8 +21522,11 @@ SELECT DISTINCT + 19 - - 57 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col1" at position 0 and "Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 44 AS col1, 61 AS col1 +---- +-44 +61 query I rowsort label-4052 SELECT DISTINCT - ( - 11 ) - - SUM ( ( 83 ) ) + - - 20 - - 50 @@ -21442,8 +21646,11 @@ SELECT ALL - 6 * - + 16 + + 38 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 211 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ Int64\(24\) \+ Int64\(94\) AS col2" at position 0 and "\(\- count\(\(\- Int64\(\-19\)\)\)\) \* Int64\(72\) / Int64\(\-77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 93 + + 24 + 94 AS col2, - COUNT ( - ( - 19 ) ) * 72 / - 77 col2 +---- +0 +211 query I rowsort label-4075 SELECT + SUM ( ALL 38 ) AS col1 @@ -21553,8 +21760,11 @@ SELECT DISTINCT + 47 + - - NULLIF ( - 3, 86 / 70 + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 71 col1, + 75 AS col1 +---- +71 +75 query I rowsort label-4096 SELECT COUNT ( ALL + 32 ) * 50 @@ -21690,8 +21900,11 @@ 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\(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\. +query RI valuesort 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 +---- +NULL +NULL query I rowsort SELECT ALL - 6 + + + 96 - - + 90 AS col2 @@ -22016,8 +22229,11 @@ SELECT - 49 - 70 AS col0, - ( - + ( - 56 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT 52 AS col0, 46 AS col0 +---- +46 +52 query I rowsort label-4183 SELECT - CAST ( + 7 AS INTEGER ) AS col0 @@ -22123,8 +22339,12 @@ SELECT 65 + - - ( + 64 ) + 68 # Datafusion - Expected - -9 # Datafusion - Expected - NULL # Datafusion - Expected - 1221 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col1" at position 0 and "Int64\(13\) \* Int64\(98\) \+ \(\- Int64\(53\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 9 AS col1, - CAST ( NULL AS INTEGER ) AS col2, + + 13 * 98 + - + 53 col1 +---- +-9 +1221 +NULL query I rowsort label-4203 SELECT ALL - + MIN ( DISTINCT - 19 ) + + 10 @@ -22179,8 +22399,11 @@ SELECT 71 * - ( + 83 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / Int64\(30\) \+ \(\- Int64\(\-31\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 + - COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) / + 30 + - - 31 AS col1 +---- +76 +NULL query I rowsort SELECT DISTINCT - 2 - - - 76 + - - 45 - + - 14 AS col0 @@ -22329,8 +22552,11 @@ SELECT + COUNT ( DISTINCT + 13 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* \(\- count\(Int64\(29\)\)\) AS col0" at position 0 and "Int64\(\-47\) \- Int64\(26\) \+ Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 * - COUNT ( 29 ) AS col0, - 47 - 26 + 46 AS col0 +---- +-27 +-87 query I rowsort label-4241 SELECT DISTINCT + 68 / + COALESCE ( + 39, - - 87 * - 50, 29 * 12 + 84 ) / + COUNT ( * ) + 98 * + - NULLIF ( + 28, - 86 - - 19 ) + - CASE ( + ( - 67 ) ) WHEN 18 * 63 THEN + 17 END + - MIN ( 14 + 81 ) * + 53 @@ -22377,8 +22603,11 @@ SELECT DISTINCT - COUNT ( * ), + MIN ( DISTINCT 16 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1092 # Datafusion - Expected - 128898 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(78\) \- Int64\(3\) / Int64\(24\) AS col0" at position 0 and "Int64\(\-27\) \* Int64\(62\) \* Int64\(\-77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 14 * + 78 - + 3 / + + 24 AS col0, - 27 * + 62 * - 77 AS col0 +---- +1092 +128898 query II rowsort SELECT DISTINCT + 98 * - ( - 71 ) AS col1, - 14 AS col0 @@ -22572,8 +22801,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(\-5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( 80 ) * - - COUNT ( * ) AS col0, - 5 col0 +---- +-5 +1 query II rowsort SELECT + 15 * + 9 AS col2, 44 AS col0 @@ -22594,8 +22826,11 @@ 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 "Int64\(79\) / Int64\(\-52\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 79 / - 52 AS col1, 81 AS col1 +---- +-1 +81 query I rowsort label-4290 SELECT ALL - ( - 1 ) / 97 / - 4 - + ( + + 29 ) @@ -22954,8 +23189,11 @@ SELECT - 43 + - COALESCE ( - + 85, + 6, + ( - + COALESCE ( - - 26, + 43 * + ( + # 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 col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 24 AS col1, + 88 AS col1 +---- +24 +88 query I rowsort label-4359 SELECT 9 * + COUNT ( * ) AS col0 @@ -23338,8 +23576,11 @@ SELECT + 32 + + 57 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, - COUNT ( * ) AS col1 +---- +-1 +1 query I rowsort label-4433 SELECT 67 * - - 69 * + 15 + - CAST ( - + NULLIF ( - AVG ( ALL - 38 ), - 78 / + - ( + - 75 ) ) AS INTEGER ) - - 6 AS col2 @@ -23447,8 +23688,11 @@ 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\(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\. +query II valuesort SELECT - 30 AS col0, - COUNT ( * ) - + 50 - + - 77 - + - ( 69 ) * 92 * - + 73 AS col0 +---- +-30 +-463378 query I rowsort label-4454 SELECT - 95 + + + CAST ( CAST ( + - 58 AS FLOAT8 ) AS INTEGER ) AS col0 @@ -23920,8 +24164,11 @@ SELECT ALL 5 * + + 32 + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) col0, 40 AS col0 +---- +40 +NULL query II rowsort label-4542 SELECT DISTINCT - COALESCE ( + 3, 88 * - 86 - 5 + - 63 * - + 91 * COUNT ( * ) - + 90 ) * + 39 + ( COUNT ( * ) ), 64 * 55 * ( - 61 ) + + 11 AS col0 @@ -24001,8 +24248,11 @@ SELECT ALL - 77 * - 83 * 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(5\)\) AS col0" at position 0 and "nullif\(Int64\(20\), Int64\(\-27\) \+ count\(DISTINCT Int64\(89\)\) / Int64\(\-93\) / Int64\(5\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( 5 ) AS col0, + NULLIF ( + 20, - 27 + COUNT ( DISTINCT 89 ) / - 93 / 5 ) AS col0 +---- +20 +5 query I rowsort label-4556 SELECT - ( COUNT ( ALL - 72 ) ) AS col1 @@ -24136,8 +24386,11 @@ SELECT 34 / 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 38 col0, + 2 AS col0 +---- +2 +38 query III rowsort label-4582 SELECT 24 / + SUM ( ALL - + 38 ) AS col1, 53, + COUNT ( * ) * 62 + - 46 AS col0 @@ -24246,8 +24499,11 @@ SELECT + CAST ( + 77 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 2432 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "Int64\(\-38\) \* Int64\(\-64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 93 AS col1, - 38 * + - 64 AS col1 +---- +2432 +93 query I rowsort SELECT ALL - 51 - - + 92 AS col1 @@ -24280,8 +24536,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 156 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "nullif\(\(\- Int64\(\-58\)\), Int64\(84\) \* Int64\(\-16\) \+ Int64\(61\) \+ Int64\(11\) \* \(\- Int64\(89\)\) \+ Int64\(35\)\) \+ Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 20 AS col1, NULLIF ( ( - - 58 ), + 84 * - 16 + 61 + + 11 * - + 89 + 35 ) + + 98 AS col1 +---- +156 +20 query I rowsort SELECT DISTINCT - 49 * + 13 AS col0 @@ -24468,8 +24727,11 @@ SELECT - + 23 * 23 * + COALESCE ( + 3, - 73, + - 62 * 75 + - COUNT ( * ) - - COU # Datafusion - Datafusion expected results: # Datafusion - Expected - 7492 # Datafusion - Expected - -8586 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) \* Int64\(20\) \* Int64\(42\) \* \(\- Int64\(3\)\) \+ Int64\(\-68\) AS col0" at position 0 and "Int64\(53\) \* Int64\(54\) \* max\(\(\- Int64\(3\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 3 * 20 * + 42 * - + 3 + - 68 AS col0, 53 * + 54 * + + MAX ( ALL - ( 3 ) ) AS col0 +---- +-8586 +7492 query I rowsort label-4644 SELECT + MAX ( ALL + - 97 ) @@ -24673,8 +24935,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 14 col0, - COUNT ( * ) AS col0 +---- +-1 +14 query II rowsort label-4683 SELECT ALL + 48 / - + 5 + MAX ( + 2 ), CASE - + 47 WHEN + ( + - 12 ) THEN + + ( - 65 ) ELSE NULL END + - SUM ( ALL 56 ) AS col2 @@ -24739,8 +25004,12 @@ 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\(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\. +query III valuesort SELECT ALL 28 AS col1, NULLIF ( + 33, - 81 / + 65 + - - 18 + - - 77 * COUNT ( * ) ) + - + 73 col2, 77 * 98 * 98 - + 66 / - - 86 AS col2 +---- +-40 +28 +739508 query I rowsort SELECT 16 * 73 - + - 86 - - - 96 @@ -24755,8 +25024,11 @@ SELECT - 54 + + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -3567 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-64\)\) AS col2" at position 0 and "Int64\(\-60\) \* Int64\(62\) \+ \(\- Int64\(\-92\)\) \+ Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 64 ) AS col2, - 60 * + 62 + - - 92 + + 61 AS col2 +---- +-3567 +64 query I rowsort label-4698 SELECT SUM ( DISTINCT + - 33 ) + - ( + COALESCE ( + + 99, + 55 + - + NULLIF ( 16, - CAST ( NULL AS INTEGER ) ) + - - 72 ) ) AS col2 @@ -24859,8 +25131,11 @@ SELECT ( + - ( + 87 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 71 col2, 92 col2 +---- +71 +92 query II rowsort label-4717 SELECT DISTINCT - 86 AS col1, - CAST ( NULL AS INTEGER ) AS col0 @@ -25367,8 +25642,11 @@ SELECT 43, 27 AS col0 # 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\(53\)\) WHEN Int64\(\-5\) THEN Int64\(25\) / \(\- Int64\(51\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 col0, CASE - ( 53 ) WHEN - 5 THEN ( 25 ) / - + 51 END col0 +---- +56 +NULL query I rowsort SELECT 9 * + 14 @@ -25511,8 +25789,11 @@ SELECT DISTINCT - 93 + - COUNT ( * ) * - CAST ( + + 91 AS INTEGER ) AS col2, NUL # 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 col1" at position 0 and "Int64\(\-92\) \- Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 col1, - 92 - + + 22 AS col1 +---- +-114 +99 query I rowsort label-4838 SELECT COUNT ( * ) + + ( 29 ) AS col2 @@ -25640,8 +25921,11 @@ SELECT + - 78 * + 84 + - + 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col0" at position 0 and "Int64\(\-47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 75 AS col0, - 47 AS col0 +---- +-47 +75 query I rowsort label-4861 SELECT + - 68 / - - CASE + COUNT ( * ) WHEN - 31 / COUNT ( * ) * + ( - COUNT ( * ) ) THEN NULL WHEN - 68 + - NULLIF ( - 6, + 6 * 14 + CAST ( + + 77 AS INTEGER ) ) THEN 11 * + 88 + + + 61 ELSE NULL END AS col1 @@ -26340,14 +26624,20 @@ SELECT + 72 * + - 87 * + + COUNT ( * ) * + ( + 38 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(17\)\) AS col0" at position 0 and "Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( + 17 ) AS col0, - 16 AS col0 +---- +-16 +17 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1440 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(15\) \* Int64\(\-96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col0, 15 * - 96 AS col0 +---- +-1440 +1 query II rowsort SELECT - 5 AS col0, 74 AS col1 @@ -26395,8 +26685,11 @@ SELECT + + 80 + + 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -1470 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(74\)\) \* Int64\(32\) / \(\- min\(Int64\(38\)\)\) AS col2" at position 0 and "min\(\(\- Int64\(\-42\)\)\) \* Int64\(\-35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 74 * 32 / - + MIN ( 38 ) AS col2, MIN ( - - 42 ) * - 35 AS col2 +---- +-1470 +62 query I rowsort SELECT + NULLIF ( + 28, + 1 ) @@ -26471,8 +26764,11 @@ SELECT ALL + COUNT ( * ), 38 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6048 # Datafusion - Expected - -1072 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* \(\- Int64\(72\)\) AS col1" at position 0 and "Int64\(16\) \* Int64\(\-67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 84 * - + 72 AS col1, 16 * - 67 col1 +---- +-1072 +-6048 query I rowsort SELECT - 99 * - 7 @@ -26615,8 +26911,11 @@ SELECT ALL + 57 * + CASE 10 WHEN + 88 THEN - 19 - 22 ELSE COUNT ( * ) END + - 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3477 # Datafusion - Expected - 15 -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\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 61 * 57 AS col1, 15 AS col1 +---- +-3477 +15 query I rowsort label-5048 SELECT 71 / 18 * - 59 @@ -27597,8 +27896,11 @@ SELECT + 55 + 2 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 "\(\- CASE Int64\(\-44\) WHEN Int64\(61\) \+ Int64\(50\) \+ Int64\(45\) THEN \(\- Int64\(92\)\) \- Int64\(81\) \* Int64\(95\) WHEN sum\(Int64\(65\)\) THEN 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 II valuesort SELECT - CASE + - 44 WHEN + 61 + + ( + + 50 ) + + + 45 THEN - + 92 - 81 * 95 WHEN + SUM ( + 65 ) THEN NULL END AS col2, - 83 AS col2 +---- +-83 +NULL query II rowsort label-5236 SELECT - ( 68 ) + + - 0 AS col1, ( + COUNT ( * ) ) col2 @@ -27985,8 +28287,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) + + - 67 * - + 8 AS col1, - 47 + COALESCE ( - 69, - 82 ) - 6 * - ( - 62 ) * - COUNT ( * ) + + 78 AS col1 +---- +334 +537 query I rowsort SELECT ALL 6 + + 92 col2 @@ -28495,8 +28800,11 @@ SELECT - COUNT ( * ) * + 7 + + 68 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col0" at position 0 and "Int64\(\-39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 80 AS col0, ( - 39 ) AS col0 +---- +-39 +80 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -29777,8 +30085,11 @@ SELECT - COUNT ( * ) * 27 + + + COUNT ( * ) / 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16059 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \* \(\- min\(Int64\(31\)\)\) \* \(\- Int64\(\-10\)\) \- Int64\(61\) AS col1" at position 0 and "Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 52 * - MIN ( + 31 ) * - - 10 - + 61 AS col1, - 30 AS col1 +---- +-30 +16059 query I rowsort label-5658 SELECT - SUM ( + CAST ( NULL AS INTEGER ) ) col1 @@ -30270,8 +30581,11 @@ SELECT - - 15 - 65 - + 41 * + + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 36 AS col1, 27 AS col1 +---- +27 +36 query I rowsort label-5753 SELECT ALL - - COUNT ( * ) + + 44 AS col0 @@ -30312,8 +30626,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, - 24 AS col2 +---- +-1 +-24 query I rowsort label-5761 SELECT + 95 - COALESCE ( - 60, - COUNT ( * ) ) AS col2 @@ -30351,8 +30668,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-99\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 53 * - CAST ( NULL AS INTEGER ) + + - 99 AS col1, 14 col1 +---- +14 +NULL query I rowsort SELECT DISTINCT + + 24 * - 48 @@ -30551,8 +30871,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(91\)\)\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( DISTINCT 91 ) AS col1, + 21 col1 +---- +-91 +21 query I rowsort SELECT 25 * 27 AS col0 @@ -30738,8 +31061,11 @@ SELECT DISTINCT 19 + COUNT ( * ) + + 45 + - 52 + 76 - - 26 / - 41 * - + 52 * - - # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 18928 -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\(91\) \* sum\(Int64\(8\)\) \* Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + COUNT ( ALL + - ( - 54 ) ) ) AS col1, 91 * + SUM ( ALL 8 ) * + 26 AS col1 +---- +-1 +18928 query I rowsort label-5841 SELECT ALL 21 * CAST ( NULL AS INTEGER ) + - CAST ( - - 59 AS INTEGER ) * - 62 col2 @@ -30941,8 +31267,11 @@ SELECT DISTINCT - 41 + COUNT ( * ) + + - COALESCE ( + - COUNT ( * ), - 59 + 67, # 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\(71\) \+ Int64\(31\) AS col1" at position 0 and "Int64\(52\) / Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 71 + + 31 AS col1, 52 / - 46 AS col1 +---- +-1 +102 query II rowsort SELECT + 36 - + + 11 AS col2, 22 @@ -31087,8 +31416,11 @@ SELECT - 79 + + 67 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 680 # Datafusion - Expected - -4752 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(20\) AS col0" at position 0 and "Int64\(54\) \* \(\- Int64\(88\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 34 * 20 AS col0, 54 * - + 88 col0 +---- +-4752 +680 query I rowsort label-5907 SELECT - ( + + 11 ) * - 45 + - COUNT ( * ) @@ -31198,8 +31530,11 @@ SELECT ALL - COUNT ( * ), - 13 + + - 10 + 28 * + 12 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(33\) \+ Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1, 33 + 66 AS col1 +---- +99 +NULL query I rowsort label-5928 SELECT - 59 / CAST ( - 70 AS INTEGER ) * + MIN ( ALL - + 97 ) + - - 92 + + COUNT ( * ) AS col2 @@ -31534,8 +31869,11 @@ SELECT ALL + + 28 * - 46 * + + 42 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) \+ nullif\(Int64\(12\), \(\- avg\(DISTINCT Int64\(45\)\)\)\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + - 17 + + + NULLIF ( + 12, - AVG ( DISTINCT + 45 ) ) AS col2, 30 AS col2 +---- +-5 +30 query II rowsort SELECT ALL + - 80 * - 57 - - 51 + 2 + 31 AS col1, - 85 + 88 + 32 * - 0 @@ -31582,8 +31920,11 @@ SELECT + 42 / 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 324 # Datafusion - Expected - -4786 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(54\) AS col0" at position 0 and "Int64\(16\) \+ Int64\(\-49\) \* \(\- \(\- Int64\(98\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 6 * + 54 AS col0, 16 + - 49 * - - ( 98 ) AS col0 +---- +-4786 +324 query II rowsort SELECT ALL 42 * - 59 * + - 20 * + 21 AS col1, 27 @@ -31619,8 +31960,12 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - 92 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(82\) \+ \(\- CAST\(Int64\(\-10\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL COUNT ( * ) AS col0, 82 + + - CAST ( - 10 AS INTEGER ) col0, - 38 +---- +-38 +1 +92 query I rowsort SELECT ALL COALESCE ( + 40, 29 * + + 94 ) @@ -31733,8 +32078,11 @@ SELECT - + CAST ( - 68 AS INTEGER ) + - - 27 + COUNT ( * ) + + 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(59\)\) AS col1" at position 0 and "Int64\(41\) \+ Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - + 59 ) col1, + 41 + 13 AS col1 +---- +-59 +54 query II rowsort label-6029 SELECT - 33, + 63 / + ( - 7 ) AS col2 @@ -32058,8 +32406,11 @@ SELECT ALL 69 * - 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 437429 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col0" at position 0 and "Int64\(83\) \+ Int64\(\-89\) \* Int64\(63\) \* CAST\(\(\- Int64\(78\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 61 AS col0, 83 + - 89 * 63 * + CAST ( - + 78 AS INTEGER ) AS col0 +---- +-61 +437429 query I rowsort SELECT NULLIF ( - + 21, + - 19 ) * + - 51 AS col0 @@ -32308,8 +32659,11 @@ SELECT ALL + 54 / - 18 + 79 - COUNT ( * ) + + 37 + - 3 + COUNT ( * ) * + + 40 * # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - 153 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) / min\(Int64\(36\)\) \+ \(\- Int64\(94\)\) \+ Int64\(55\) AS col2" at position 0 and "Int64\(81\) \+ Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 65 / + + MIN ( ALL 36 ) + - + 94 + 55 col2, 81 + + 72 AS col2 +---- +-40 +153 query I rowsort label-6138 SELECT + 47 + CAST ( NULL AS INTEGER ) @@ -32385,8 +32739,11 @@ SELECT - + ( 44 ) AS col2 # 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 "Int64\(12\) / Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 79 AS col1, + 12 / + + 4 col1 +---- +3 +79 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -32515,8 +32872,11 @@ SELECT ALL + MAX ( DISTINCT + 68 ) - - 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 53 AS col2, 37 col2 +---- +37 +53 query II rowsort SELECT ALL - 3 AS col0, 64 + - + 79 AS col2 @@ -32623,8 +32983,11 @@ 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\(1\)\) AS count\(\*\) / \(\- Int64\(\-20\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 59 AS col1, COUNT ( * ) / - - 20 AS col1 +---- +-59 +0 query I rowsort label-6196 SELECT NULLIF ( + - 44, COUNT ( * ) ) @@ -32658,8 +33021,11 @@ SELECT DISTINCT - 69 + + 52 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1156 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(68\) AS col1" at position 0 and "Int64\(12\) \+ Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 * 68 AS col1, + 12 + 10 AS col1 +---- +1156 +22 query I rowsort label-6202 SELECT ALL - COUNT ( * ) * 76 AS col0 @@ -32997,8 +33363,11 @@ SELECT - COALESCE ( - COALESCE ( - 27, + COUNT ( * ) * + NULLIF ( - 33, + COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - 1656 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* 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 II valuesort SELECT + 24 * + + 69 AS col2, - 40 AS col2 +---- +-40 +1656 query I rowsort label-6267 SELECT - CASE - 27 WHEN - + COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN - 61 END @@ -33301,8 +33670,11 @@ 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\(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\. +query II valuesort SELECT + 31 * COALESCE ( 34, - COUNT ( * ) ) + + 74 AS col2, 15 / - + ( 15 ) AS col2 +---- +-1 +1128 query I rowsort SELECT 95 + - 46 AS col2 @@ -33909,8 +34281,11 @@ SELECT COUNT ( 26 ) * + 87 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 291 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* Int64\(3\) AS col1" at position 0 and "Int64\(72\) \+ Int64\(54\) \* Int64\(40\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 97 * + + 3 AS col1, 72 + + 54 * + 40 + - + CAST ( NULL AS INTEGER ) AS col1 +---- +291 +NULL query I rowsort SELECT ALL - 42 * - 15 AS col2 @@ -34006,8 +34381,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 93 col0, 72 AS col0 +---- +72 +93 query I rowsort label-6458 SELECT - 53 / + COUNT ( DISTINCT + NULLIF ( - - 97, + - ( + 15 ) ) ) @@ -34106,8 +34484,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT ALL 9 AS col1, - 77 AS col1 +---- +-77 +9 query I rowsort label-6477 SELECT ALL - MIN ( ALL + 0 ) @@ -35028,8 +35409,12 @@ SELECT DISTINCT SUM ( ALL + - 12 ) / CAST ( + ( - 92 ) AS INTEGER ) * - 21 + - - # Datafusion - Expected - 84 # Datafusion - Expected - 88 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 84 AS col1, 88 AS col1, - - 33 +---- +33 +84 +88 query II rowsort SELECT DISTINCT 86 AS col1, 99 + 15 * - 50 + + 93 AS col0 @@ -35153,8 +35538,11 @@ SELECT ALL 30 * + CAST ( - + 52 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1672 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* \(\- Int64\(19\)\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 88 * - + 19 AS col0, 68 AS col0 +---- +-1672 +68 query I rowsort label-6676 SELECT - SUM ( DISTINCT + + 23 ) @@ -35169,8 +35557,11 @@ 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 "Int64\(79\) / Int64\(68\) AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 79 / 68 AS col1, + 23 AS col1 +---- +1 +23 query I rowsort label-6679 SELECT 88 * - 0 + - COUNT ( * ) @@ -35402,8 +35793,11 @@ SELECT ALL + 86 * + NULLIF ( 96, + - 32 + + - 22 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ \(\- nullif\(\(\- CAST\(Int64\(\-35\) AS Int32\)\), Int64\(\-84\)\)\) \+ Int64\(40\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 75 + - NULLIF ( - + CAST ( - 35 AS INTEGER ), + - 84 ) + + 40 AS col0, + 98 AS col0 +---- +80 +98 query I rowsort SELECT - 6 - + + 62 * + - 67 @@ -36195,8 +36589,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) col0, 26 * + 95 col0 +---- +-1 +2470 query I rowsort label-6874 SELECT MAX ( 45 ) * + - 54 AS col0 @@ -36228,8 +36625,11 @@ SELECT 11, + 40 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 0 and "Int64\(\-95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 91 AS col1, ( - 95 ) AS col1 +---- +-95 +91 query I rowsort label-6880 SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col0 @@ -37743,8 +38143,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) / Int64\(\-2\) AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 38 / - 2 AS col2, 96 AS col2 +---- +-19 +96 query I rowsort SELECT DISTINCT 55 * - 42 * 83 AS col1 @@ -38135,8 +38538,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 60 col0, COUNT ( * ) AS col0 +---- +-60 +1 query I rowsort SELECT 1 + - + 3 AS col1 @@ -38434,8 +38840,11 @@ SELECT + 23 / + 32, - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "Int64\(62\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 18 AS col0, + 62 * + + COUNT ( * ) AS col0 +---- +18 +62 query I rowsort SELECT - 3 * + 89 - 72 * 85 * + + 49 AS col1 @@ -38690,8 +39099,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 AS col1, 18 AS col1 +---- +18 +66 query I rowsort label-7352 SELECT 55 * 31 * COUNT ( * ) AS col2 @@ -38754,8 +39166,11 @@ SELECT + 80 AS col1, - 20 / - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "\(\- Int64\(93\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 22 AS col2, + ( - + 93 ) AS col2 +---- +-93 +22 query I rowsort SELECT DISTINCT - - 31 + + 41 + - 56 * - 81 @@ -39088,8 +39503,12 @@ SELECT - 79 * - 43 AS col2 # Datafusion - Expected - 23 # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "\(\- Int64\(\-62\)\) \+ Int64\(\-53\) \+ Int64\(60\) \- Int64\(18\) \* Int64\(42\) / Int64\(\-53\) / CASE Int64\(36\) WHEN Int64\(34\) THEN Int64\(\-7\) WHEN Int64\(\-63\) \+ coalesce\(Int64\(35\), \(\- count\(Int64\(1\)\) AS count\(\*\)\), sum\(CAST\(NULL AS Int32\)\) \- Int64\(75\)\) THEN NULL END AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +1 +23 +NULL query I rowsort label-7428 SELECT + 77 - + CASE 93 WHEN + 14 * 35 * + 48 + - 23 * - AVG ( - - 25 ) THEN NULL WHEN 17 + + + 62 * - - 93 * + - 63 - + ( 19 ) THEN NULL ELSE 53 / + 55 END AS col2 @@ -39315,8 +39734,11 @@ SELECT 20 + + 90 * 70 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4998 # Datafusion - Expected - 248 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* Int64\(98\) AS col1" at position 0 and "Int64\(58\) \+ Int64\(\-83\) \- Int64\(39\) \* Int64\(\-7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 * + 98 AS col1, 58 + - 83 - 39 * + - 7 AS col1 +---- +248 +4998 query II rowsort SELECT ALL 60, - 8 AS col0 @@ -39462,8 +39884,11 @@ SELECT DISTINCT - SUM ( DISTINCT 22 ) * 19 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 "\(\- count\(DISTINCT Int64\(56\)\)\) AS col0" at position 0 and "Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( DISTINCT 56 ) AS col0, 52 AS col0 +---- +-1 +52 query I rowsort label-7500 SELECT DISTINCT - 31 * + CASE COALESCE ( - COUNT ( * ), + 63 / 67 * - + COUNT ( * ) - + + 77 ) WHEN 91 THEN - COUNT ( DISTINCT 70 ) WHEN + 94 THEN 77 ELSE NULL END * - COALESCE ( + - 97, 58 ) @@ -39993,8 +40418,11 @@ SELECT ALL 88, 62 + - 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 AS col0, 23 AS col0 +---- +23 +31 query II rowsort label-7602 SELECT ALL 90, + 96 + + + COUNT ( * ) AS col1 @@ -40080,8 +40508,12 @@ SELECT ALL 78 * + 22 * CASE - 49 WHEN + 4 + - - COUNT ( * ) * 62 + + - 17 THEN N # Datafusion - Expected - 42 # Datafusion - Expected - 42 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(42\), Int64\(\-22\), coalesce\(Int64\(98\), Int64\(93\) \* \(\- Int64\(9\)\) \+ Int64\(\-87\)\) \* Int64\(19\) \* Int64\(\-13\) \* Int64\(\-83\) \* \(\- Int64\(90\)\) \* Int64\(18\)\) \* Int64\(1\) AS col1" at position 1 and "Int64\(\-80\) \* count\(Int64\(91\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + NULLIF ( + 42, - - SUM ( - + 14 ) ), + COALESCE ( + 42, - 22, COALESCE ( 98, + 93 * - ( 9 ) + - 87 ) * 19 * + - 13 * + - 83 * - + 90 * + 18 ) * 1 AS col1, + - 80 * COUNT ( ALL + 91 ) AS col1 +---- +-80 +42 +42 query I rowsort SELECT ALL 36 * 26 * ( + - 74 ) AS col0 @@ -40113,8 +40545,11 @@ SELECT ALL + COUNT ( * ) + - + 78 + - ( + 51 ) + 61 * - 76, - 4 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 43 AS col0, COUNT ( * ) AS col0 +---- +1 +43 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -40161,8 +40596,11 @@ 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\(1\)\) AS count\(\*\)\), Int64\(\-46\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 + - 30 * - 31 AS col0, COALESCE ( + - COUNT ( * ), + ( + - 46 ) ) AS col0 +---- +-1 +866 query II rowsort label-7632 SELECT DISTINCT - COUNT ( * ) - + 89 * - 22 * + CAST ( NULL AS INTEGER ) + + 50 AS col2, + 30 * - 25 * 86 @@ -40838,8 +41276,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- Int64\(73\)\)\) AS col1" at position 0 and "Int64\(33\) \* Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( - + 73 ) col1, + 33 * 1 AS col1 +---- +-73 +33 query I rowsort label-7762 SELECT ALL 56 + CAST ( + 69 AS INTEGER ) @@ -40945,8 +41386,11 @@ SELECT ALL - COALESCE ( 36, - 3, + + CAST ( 19 AS INTEGER ) / - COUNT ( * ) + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "Int64\(\-21\) \- Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 80 AS col1, - 21 - - 76 AS col1 +---- +55 +80 query I rowsort label-7782 SELECT DISTINCT ( - 33 ) / - 14 + + - SUM ( ALL - 32 ) * - 59 AS col0 @@ -41077,8 +41521,11 @@ SELECT - 63 + ( 36 ) - 53 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(36\), \(\- Int64\(\-25\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-50\)\) AS col0" at position 0 and "CASE \(\- Int64\(\-52\)\) WHEN \(\- Int64\(15\)\) / Int64\(1\) \- Int64\(74\) / Int64\(77\) THEN Int64\(\-57\) \* Int64\(90\) \+ Int64\(62\) ELSE NULL END \- CAST\(NULL AS Int32\) \* Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +36 +NULL query II rowsort SELECT - 77 + + ( + 17 ) AS col0, + 61 @@ -41158,14 +41605,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - -3235 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col0" at position 0 and "Int64\(41\) \+ Int64\(52\) \* Int64\(\-63\) \+ coalesce\(\(\- Int64\(\-32\)\), Int64\(98\), Int64\(\-86\) \* \(\- \(\- nullif\(Int64\(56\), \(\- Int64\(\-4\)\)\)\)\)\) / \(\- Int64\(45\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 82 AS col0, 41 + 52 * - 63 + COALESCE ( - - 32, + + 98, - 86 * + ( - - NULLIF ( + 56, - - 4 ) ) ) / - + 45 AS col0 +---- +-3235 +-82 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 88 AS col1, + 7 AS col1 +---- +-88 +7 query II rowsort SELECT + 66, 60 * COALESCE ( + 67, + 53 ) * - + 5 * + 58 AS col1 @@ -41727,8 +42180,11 @@ SELECT - 69 * - - 1 + - - 2 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 183 # Datafusion - Expected - -5493 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \- Int64\(7\) \+ Int64\(\-89\) \- Int64\(56\) \* Int64\(\-6\) \+ Int64\(31\) AS col1" at position 0 and "Int64\(62\) \- Int64\(29\) \+ Int64\(83\) \+ CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* Int64\(79\) \* \(\- Int64\(71\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 88 - + + 7 + - 89 - 56 * - 6 + + 31 AS col1, 62 - + + 29 + + 83 + + + CAST ( + COUNT ( * ) AS INTEGER ) * + + 79 * - + 71 AS col1 +---- +-5493 +183 query I rowsort label-7931 SELECT + - 66 * 33 * + SUM ( DISTINCT 24 ) + - 39 - - + 88 * 1 AS col1 @@ -41738,8 +42194,11 @@ SELECT + - 66 * 33 * + SUM ( DISTINCT 24 ) + - 39 - - + 88 * 1 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 10 -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 "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 2 + 48 AS col1, 10 AS col1 +---- +10 +50 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -41753,8 +42212,12 @@ NULL # Datafusion - Expected - -4468 # Datafusion - Expected - 57 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(\-57\)\), Int64\(11\)\) AS col2" at position 1 and "Int64\(92\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 31 + - 42 + - - 60 + - + 99 * + - ( - 45 ), COALESCE ( - - 57, + 11 ) AS col2, 92 AS col2 +---- +-4468 +57 +92 query II rowsort SELECT 5, + 54 AS col1 @@ -42013,8 +42476,11 @@ 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\(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\. +query II valuesort 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 +---- +1191 +167152 query I rowsort label-7985 SELECT DISTINCT CASE SUM ( ALL - CASE - 59 WHEN 59 THEN NULL WHEN 62 THEN NULL ELSE + 86 END ) WHEN 50 THEN NULL ELSE + 76 + 6 + 98 * COALESCE ( + COALESCE ( - 5, + 18 / + 5 - 87 + 91 * + 16, + - 79 + 29 + 78 + + 71 * + 90 * 69 ), - - COALESCE ( 78, - + COALESCE ( - 21, - CASE - - 88 WHEN - + 91 THEN NULL ELSE + 80 + 99 END ) ) * COUNT ( - 66 + 37 * - ( - 38 ) ) + - 65, 91 * 2 + + COUNT ( * ), - 62 ) / 78 END col0 @@ -42538,8 +43004,11 @@ SELECT ALL + + 58 * + ( - - 63 ) * - 45 * - 56, CAST ( + 50 AS INTEGER ) * 24 co # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \- Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, + CAST ( NULL AS INTEGER ) - + 16 AS col2 +---- +NULL +NULL query II rowsort label-8084 SELECT ALL - COUNT ( * ) col0, 8 * - 21 col2 @@ -42860,8 +43329,11 @@ SELECT ALL - 77 * + COUNT ( * ), + 31 * + - 82 * 0 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1465 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ max\(DISTINCT Int64\(90\)\) \* Int64\(17\) \+ Int64\(3\) / Int64\(74\) \+ Int64\(\-67\) AS col1" at position 0 and "CAST\(NULL AS Float64\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL + 2 + + MAX ( DISTINCT + 90 ) * 17 + + 3 / + + 74 + - 67 col1, + CAST ( NULL AS FLOAT8 ) * COUNT ( * ) AS col1 +---- +1465 +NULL query I rowsort label-8145 SELECT DISTINCT + MAX ( DISTINCT - + 54 ) AS col2 @@ -43512,8 +43984,11 @@ SELECT ALL + 49 * 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 124953 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "nullif\(Int64\(28\), Int64\(\-50\)\) \* Int64\(93\) \* Int64\(48\) \+ Int64\(\-39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 95 AS col2, NULLIF ( + 28, + - 50 ) * + + 93 * + + 48 + - 39 AS col2 +---- +124953 +95 query I rowsort SELECT DISTINCT COALESCE ( + - 43, - + 98 ) AS col0 @@ -43564,8 +44039,11 @@ SELECT ALL CASE 83 WHEN - + 28 + + - COUNT ( * ) THEN NULL WHEN - - 84 / 71 + CA # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 40740 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(42\)\) AS col2" at position 0 and "Int64\(\-68\) \* \(\- Int64\(9\)\) \* Int64\(67\) \- Int64\(22\) \* Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 42 AS col2, - 68 * - ( + 9 ) * 67 - 22 * 12 AS col2 +---- +-42 +40740 query I rowsort label-8279 SELECT + + COUNT ( + - 25 ) / - + 45 AS col2 @@ -43736,8 +44214,11 @@ SELECT ALL + 2 + - 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(71\)\) \+ CASE Int64\(11\) WHEN Int64\(74\) THEN NULL ELSE CAST\(NULL AS Int32\) END \* Int64\(41\) \- count\(Int64\(1\)\) AS count\(\*\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(20\) AS col0" at position 0 and "\(\- Int64\(\-25\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 71 + + ( + CASE ( 11 ) WHEN 74 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END ) * 41 - + ( + + COUNT ( * ) ) - - COUNT ( * ) * 20 AS col0, - ( - 25 ) AS col0 +---- +25 +NULL query I rowsort SELECT ALL - 22 + 93 AS col2 @@ -44063,8 +44544,11 @@ SELECT + 32 * + 33 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 150696 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* Int64\(\-91\) \* Int64\(69\) \* Int64\(\-3\) AS col0" at position 0 and "Int64\(29\) \+ Int64\(\-13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 * + - 91 * ( + + 69 ) * - 3 AS col0, 29 + - 13 AS col0 +---- +150696 +16 query I rowsort SELECT - 98 * 40 AS col1 @@ -44181,8 +44665,11 @@ SELECT ( - + NULLIF ( + 46, + 90 * 37 ) ) AS col2 # 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 "Int64\(35\) AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 35 AS col1, + 52 AS col1 +---- +35 +52 query I rowsort label-8397 SELECT ( + + SUM ( DISTINCT + CAST ( + + 9 AS INTEGER ) ) ) AS col0 @@ -44224,8 +44711,11 @@ SELECT 52 AS col2, 33 + + COALESCE ( + 15, 18 + 73 * CAST ( + 83 AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 AS col1, + 9 AS col1 +---- +87 +9 query I rowsort label-8405 SELECT DISTINCT CAST ( - 70 AS INTEGER ) * + 91 @@ -44527,8 +45017,11 @@ 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\(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\. +query II valuesort SELECT 65 * + COUNT ( * ) * - COUNT ( * ) * + 42 + - NULLIF ( + - 84, - + 41 ) + + 41 AS col2, + 78 col2 +---- +-2605 +78 query I rowsort label-8463 SELECT + 32 * - + COUNT ( * ) AS col2 @@ -44590,8 +45083,11 @@ SELECT 49, + 46 * + SUM ( DISTINCT - - 25 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT - 62 AS col1, - 63 AS col1 +---- +-62 +-63 query I rowsort label-8475 SELECT - - NULLIF ( - + 12, 91 + - SUM ( DISTINCT - 36 ) ) - + - 64 - - - NULLIF ( - + COUNT ( * ), + 26 + - COUNT ( * ) * - 16 + 71 ) @@ -44860,8 +45356,12 @@ SELECT ALL + 93 * CAST ( - 28 AS INTEGER ) AS col2 # Datafusion - Expected - 29 # Datafusion - Expected - NULL # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- max\(Int64\(38\)\)\), \(\- CASE \(\- Int64\(89\)\) WHEN Int64\(85\) / CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) THEN Int64\(8\) \+ Int64\(75\) \+ Int64\(1\) \* Int64\(\-17\) \- Int64\(\-63\) END\)\)\) \+ Int64\(\-9\) AS col1" at position 0 and "Int64\(13\) \+ min\(DISTINCT Int64\(30\)\) \- \(\- CASE Int64\(4\) WHEN Int64\(\-93\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- \(\- sum\(Int64\(\-42\)\)\)\) WHEN \(\- Int64\(84\)\) \* Int64\(27\) \+ Int64\(\-59\) THEN NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +29 +5 +NULL query I rowsort SELECT DISTINCT + 84 + 43 AS col1 @@ -45933,8 +46433,11 @@ SELECT DISTINCT 10 * - 78 + + COUNT ( * ) - 59 * + + 94 * 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\)" at position 0 and "Int64\(21\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 21, 21 +---- +21 +21 query I rowsort label-8737 SELECT - ( + CAST ( + ( - 50 ) AS INTEGER ) ) + 64 @@ -46089,8 +46592,11 @@ SELECT ALL - - ( + 83 ) / + COUNT ( * ) + COUNT ( * ) * - 60 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -2 -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\(\-8\) WHEN \(\- Int64\(\-22\)\) THEN NULL ELSE Int64\(94\) \+ Int64\(\-29\) END \+ Int64\(\-67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 68 AS col2, CASE - 8 WHEN - - 22 THEN NULL ELSE 94 + - 29 END + - 67 AS col2 +---- +-2 +68 query I rowsort label-8767 SELECT + 27 * + 68 * + COUNT ( * ) / + CASE + 47 WHEN COUNT ( * ) THEN NULL WHEN - 51 THEN - 69 WHEN - AVG ( ALL CAST ( + 52 AS FLOAT8 ) ) THEN NULL ELSE NULL END + - 2 @@ -46194,8 +46700,11 @@ SELECT ALL COALESCE ( - - 19, + ( + 41 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -107 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \+ \(\- Int64\(68\)\) AS col1" at position 0 and "Int64\(4\) / \(\- CASE Int64\(82\) WHEN \(\- nullif\(Int64\(29\), Int64\(\-74\) / count\(DISTINCT Int64\(15\) \* Int64\(35\)\)\)\) / Int64\(10\) THEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN CAST\(NULL AS Int32\) THEN NULL END\) \+ Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-107 +NULL query I rowsort label-8787 SELECT ALL - - ( + - ( 74 ) ) * - CAST ( NULL AS INTEGER ) * - + 97 AS col2 @@ -46313,8 +46822,11 @@ SELECT DISTINCT - MAX ( - 51 ) - - - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, 18 AS col0 +---- +18 +NULL query I rowsort SELECT ALL - 86 - 71 + + ( - 48 ) * + 94 AS col1 @@ -46357,8 +46869,11 @@ SELECT 34 AS col1, 42 + + 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 105 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "Int64\(39\) \- Int64\(\-66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 6 AS col2, + 39 - - 66 AS col2 +---- +105 +6 query I rowsort label-8818 SELECT ALL - COUNT ( * ) * COUNT ( * ) * + 39 + COALESCE ( + 63, + 61 * + + 11 ) + + 14 AS col2 @@ -46445,8 +46960,11 @@ SELECT + 64 AS col0, - 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 67 AS col0, + ( + ( + COUNT ( * ) ) ) AS col0 +---- +-67 +1 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -46469,8 +46987,11 @@ SELECT DISTINCT 62 * - + 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1649 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* Int64\(\-17\) AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 97 * - 17 AS col0, + 54 AS col0 +---- +-1649 +54 query I rowsort label-8839 SELECT DISTINCT + 9 / + + 51 @@ -46515,8 +47036,11 @@ SELECT ALL + 91 * + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75569 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \+ \(\- Int64\(56\)\) \* Int64\(71\) \* Int64\(19\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 25 + - + 56 * + 71 * + 19 AS col1, 2 AS col1 +---- +-75569 +2 query I rowsort SELECT ALL + 19 * 41 @@ -46682,8 +47206,11 @@ 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\(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\. +query II valuesort SELECT NULLIF ( - - 98, + COUNT ( * ) ) AS col0, 93 - 14 AS col0 +---- +79 +98 query I rowsort label-8880 SELECT - 54 * COUNT ( * ) AS col0 @@ -47194,8 +47721,11 @@ SELECT DISTINCT + 68 * - + 81 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(46\)\) / Int64\(1\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "sum\(Int64\(66\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 46 / + 1 - COUNT ( * ) AS col2, SUM ( + + 66 ) AS col2 +---- +-47 +66 query I rowsort label-8978 SELECT + + 41 / + 71 @@ -47323,8 +47853,11 @@ SELECT CAST ( + 98 AS INTEGER ) AS col0, + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - 5060 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) / \(\- Int64\(33\)\) \- \(\- Int64\(\-57\)\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-81\) / Int64\(89\) AS col1" at position 0 and "Int64\(55\) \* CAST\(\(\- Int64\(\-46\)\) AS Int32\) \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 58 / - ( 33 ) - - - 57 / - - COUNT ( * ) + - 81 / 89 AS col1, 55 * CAST ( - - 46 AS INTEGER ) * + 2 col1 +---- +-56 +5060 query I rowsort label-9002 SELECT - MIN ( 15 ) * + CASE - - 79 WHEN + + MIN ( ALL - 38 ) THEN + COUNT ( * ) END @@ -47410,8 +47943,11 @@ 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\(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\. +query II valuesort SELECT - - 63 * - 9 + 29 + - + 42 + ( - 44 ) + - 32 * - COUNT ( * ) + - 83 AS col2, 69 / 23 * + MAX ( - 30 ) AS col2 +---- +-675 +-90 query I rowsort SELECT DISTINCT - - 3 + 66 @@ -48137,8 +48673,11 @@ SELECT - COALESCE ( + - 62, - 77 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -283338 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \* Int64\(99\) \* Int64\(\-53\) \* Int64\(2\) AS col2" at position 0 and "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 * + 99 * - 53 * 2 col2, + 70 col2 +---- +-283338 +70 query I rowsort label-9160 SELECT DISTINCT COUNT ( * ) + - 60 + - + 85 * 55 * + 74 @@ -48438,8 +48977,11 @@ SELECT ALL 48 * + - 98 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col0" at position 0 and "Int64\(\-5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 43 AS col0, - 5 AS col0 +---- +-5 +43 query I rowsort label-9218 SELECT DISTINCT 83 * MAX ( DISTINCT 10 ) @@ -48544,8 +49086,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT ALL 18 AS col0, - 14 AS col0 +---- +-14 +18 query I rowsort label-9238 SELECT DISTINCT - 24 + + COUNT ( * ) AS col2 @@ -48565,8 +49110,11 @@ SELECT 47 + - ( - 26 ) / COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 103 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \+ Int64\(40\) AS col2" at position 0 and "Int64\(2\) \* max\(DISTINCT Int64\(49\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 + 40 AS col2, + 2 * + MAX ( DISTINCT + 49 ) col2 +---- +103 +98 query I rowsort SELECT DISTINCT - 80 * - 83 @@ -48591,8 +49139,11 @@ SELECT COUNT ( * ) + - + 0 + + + 17 * - 22 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4602 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(59\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 * 59 col1, + 81 AS col1 +---- +4602 +81 query I rowsort SELECT DISTINCT 30 * 44 @@ -48683,8 +49234,11 @@ SELECT MIN ( DISTINCT + 83 ) + + + 33 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "Int64\(49\) \+ \(\- Int64\(25\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 AS col0, 49 + - + 25 AS col0 +---- +24 +32 query I rowsort SELECT 37 * - 69 @@ -48709,8 +49263,11 @@ SELECT ALL - 94 + 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col0" at position 0 and "\(\- Int64\(64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 AS col0, + ( - + 64 ) AS col0 +---- +-10 +-64 query I rowsort SELECT ALL + ( + 69 ) * - 18 * + ( 93 ) AS col1 @@ -49204,8 +49761,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 AS col2, COUNT ( * ) * - COUNT ( * ) AS col2 +---- +-1 +62 query I rowsort SELECT 1 * - - 69 AS col1 @@ -49525,8 +50085,11 @@ SELECT - 48 * 52 * + 67 col1, + 16 * ( - MAX ( + + 82 ) ) + + 56 + COUNT ( * ) / # Datafusion - Datafusion expected results: # Datafusion - Expected - -109 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-38\)\) \+ Int64\(\-71\) AS col2" at position 0 and "\(\- Int64\(72\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( ALL - 38 ) + - 71 col2, - ( + + 72 ) AS col2 +---- +-109 +-72 query I rowsort label-9425 SELECT ALL 13 + - MIN ( DISTINCT + 25 ) AS col2 @@ -49632,8 +50195,11 @@ SELECT ALL - 85 * - 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "Int64\(67\) \* \(\- Int64\(91\)\) \+ \(\- CASE \(\- Int64\(\-16\)\) WHEN CAST\(Int64\(29\) AS Int32\) THEN Int64\(71\) / Int64\(21\) \+ Int64\(30\) \- CAST\(Int64\(\-87\) AS Int32\) \+ \(\- Int64\(\-20\)\) ELSE CAST\(NULL AS Int32\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 2 AS col0, + ( + 67 ) * - + 91 + - ( + + CASE - - 16 WHEN + CAST ( 29 AS INTEGER ) THEN + 71 / + 21 + 30 - + CAST ( - 87 AS INTEGER ) + - - 20 ELSE + CAST ( NULL AS INTEGER ) END ) col0 +---- +2 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -49651,8 +50217,11 @@ SELECT - NULLIF ( 48, COALESCE ( + - ( - 7 ), 85, - 83 + + 71 ) / - 55 + + + COU # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 29 AS col2, 66 AS col2 +---- +-29 +66 query II rowsort label-9449 SELECT ALL + 24 * - + 74 + + + COUNT ( * ) + + 50 * 54 * - + ( - 69 ) - + 0 AS col1, ( 20 ) AS col2 @@ -49831,8 +50400,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 7224 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \* Int64\(\-84\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 86 * - 84 AS col1, 20 AS col1 +---- +20 +7224 query II rowsort label-9483 SELECT - MIN ( DISTINCT - + 58 ), 88 + 29 * - SUM ( - 36 ) - + 11 AS col0 @@ -49939,8 +50511,11 @@ SELECT - 0 * - 41 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col0" at position 0 and "Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 53 AS col0, 74 AS col0 +---- +-53 +74 query I rowsort SELECT - + ( - + NULLIF ( 69, + 90 * - - 50 ) ) col1 @@ -50083,8 +50658,11 @@ SELECT DISTINCT + 42 - + 61 + 54 - 45 - 66 / + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, COUNT ( * ) AS col0 +---- +1 +1 query I rowsort SELECT - 24 + - 0 @@ -50130,8 +50708,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 61 + + COUNT ( * ) - - MAX ( ALL + + 66 ) AS col1, - 86 + - + 31 + 47 * - 62 AS col1 +---- +-3031 +6 query II rowsort SELECT + 52 AS col2, - 4 col0 @@ -50334,8 +50915,11 @@ SELECT DISTINCT + + 11 * - CAST ( - ( - - 43 ) AS INTEGER ) + + + 75 + - NULLIF # Datafusion - Datafusion expected results: # Datafusion - Expected - -133 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) \+ Int64\(\-67\) AS col0" at position 0 and "Int64\(34\) \* CASE count\(\(\- CAST\(NULL AS Int32\)\)\) WHEN Int64\(\-2\) THEN Int64\(98\) END \* Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 66 + + - 67 AS col0, 34 * + CASE + + COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) WHEN + - 2 THEN 98 END * + + 44 AS col0 +---- +-133 +NULL query I rowsort label-9579 SELECT ALL + 7 * + - COUNT ( * ) - 16 * - + 29 - + CASE 46 WHEN - + 37 * + 9 THEN + 57 WHEN + + 66 THEN - - 86 ELSE NULL END @@ -50417,8 +51001,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col2, 78 AS col2 +---- +-1 +78 query II rowsort SELECT ( - 36 ) * + 67 + + 52 AS col0, 57 @@ -50584,8 +51171,11 @@ SELECT - 94 * - ( + ( 33 ) ) * 35 + + - COUNT ( ALL 93 ) + + - 10 * 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-58\)\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 58 AS col1, 9 AS col1 +---- +58 +9 query II rowsort label-9626 SELECT ALL + - COUNT ( * ) * + ( - + COUNT ( * ) ) / - 34 * - 37 - - 2 col2, + 56 @@ -50712,8 +51302,11 @@ SELECT DISTINCT + 97 * + + 36 * - 81 + 61 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \+ Int64\(77\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 22 + + + 77 AS col1, 80 AS col1 +---- +80 +99 query I rowsort label-9651 SELECT + 67 - - ( - COUNT ( * ) ) AS col1 @@ -51251,8 +51844,11 @@ SELECT ALL + 4 / + 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - -288 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* Int64\(\-32\) AS col1" at position 0 and "coalesce\(Int64\(\-11\), \(\- sum\(CAST\(Int64\(\-82\) AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 * - 32 col1, COALESCE ( - 11, + - SUM ( + + CAST ( - 82 AS INTEGER ) ) ) col1 +---- +-11 +-288 query II rowsort SELECT - NULLIF ( 17, - + CASE - + 12 WHEN + 72 + - ( + 77 ) THEN 48 WHEN + 14 THEN NULL ELSE NULL END - - 24 + + 49 - - + ( + 35 ) * - + 90 * + 94 ) * - 81 * - ( 69 ) + 82 - 51 - 73 * 8 * 22 AS col2, - 42 @@ -51557,8 +52153,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 72 * + 17 AS col0, - COUNT ( * ) AS col0 +---- +-1 +1224 query I rowsort SELECT DISTINCT + - 66 + + - 91 AS col1 @@ -51814,8 +52413,11 @@ SELECT DISTINCT - - 54 * - - 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 col2" at position 0 and "\(\- count\(Int64\(\-88\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 42 AS col2, - COUNT ( - 88 ) AS col2 +---- +-1 +42 query I rowsort label-9859 SELECT DISTINCT 61 * - - 71 * + COUNT ( * ) AS col2 @@ -51845,8 +52447,11 @@ SELECT DISTINCT + 71 * + CAST ( 73 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 117 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "Int64\(72\) \+ Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 60 AS col0, + 72 + 45 AS col0 +---- +117 +60 query I rowsort SELECT 70 * 84 @@ -51898,8 +52503,11 @@ NULL # 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\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 87 AS col1, 54 col1 +---- +54 +87 query I rowsort SELECT - 86 - - 35 + + + 50 * ( 60 ) @@ -52480,8 +53088,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + SUM ( 76 ) + + 81 AS col0, 81 + + 82 - ( + 18 ) + + ( COUNT ( * ) ) + - 44 * SUM ( + 54 ) / - + 50 + + - 37 * - 17 AS col0 +---- +157 +822 query I rowsort SELECT DISTINCT - - ( + 52 ) AS col2 diff --git a/data/sqlite/random/expr/slt_good_108.slt b/data/sqlite/random/expr/slt_good_108.slt index 22c38aa..400e6e0 100644 --- a/data/sqlite/random/expr/slt_good_108.slt +++ b/data/sqlite/random/expr/slt_good_108.slt @@ -156,8 +156,11 @@ SELECT 18 / - 51 + + - 38 / - 61, + 56 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col2" at position 0 and "Int64\(92\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 34 AS col2, 92 * + + COUNT ( * ) AS col2 +---- +-34 +92 query I rowsort label-23 SELECT ALL + 54 / - - COUNT ( - + 60 ) AS col2 @@ -333,8 +336,11 @@ SELECT - ( + - CASE - CAST ( - - 97 AS INTEGER ) WHEN + 15 THEN 35 * 15 + + 65 E # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - -4 -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\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( + + 97 ) AS col2, - 4 AS col2 +---- +-4 +97 query I rowsort label-57 SELECT - ( + MIN ( DISTINCT 7 ) ) @@ -1425,8 +1431,11 @@ SELECT DISTINCT 22 + + 71 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(38\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) col2, 38 / COUNT ( * ) AS col2 +---- +38 +NULL query I rowsort label-270 SELECT MIN ( DISTINCT + - 27 ) @@ -1760,8 +1769,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 54 col1, 16 AS col1 +---- +16 +54 query I rowsort SELECT - 78 * 7 AS col1 @@ -1954,8 +1966,11 @@ SELECT + NULLIF ( 83, - COUNT ( DISTINCT + + 41 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 99 AS col0, + 16 col0 +---- +16 +99 query I rowsort SELECT - - CASE NULLIF ( + 3, - 42 ) WHEN - - 90 THEN - 70 + 0 * - 96 END @@ -2744,8 +2759,11 @@ SELECT ALL + 3, + 94 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3653 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-70\), Int64\(\-90\)\) \* \(\- Int64\(52\)\) \- Int64\(\-74\) \- Int64\(61\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL NULLIF ( - 70, - 90 ) * - + 52 - - 74 - 61 col2, 61 AS col2 +---- +3653 +61 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -2942,8 +2960,11 @@ SELECT + ( NULLIF ( 44, + 33 * - 23 + 35 + + - 15 ) ) - 71 * + 25 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1715 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(79\) \+ Int64\(56\) AS col0" at position 0 and "\(\- nullif\(Int64\(83\), Int64\(67\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 21 * + 79 + + 56 AS col0, - NULLIF ( + 83, 67 ) AS col0 +---- +-83 +1715 query I rowsort label-559 SELECT + 82 / 32 * - - 76 @@ -2968,8 +2989,11 @@ SELECT + 29 + + + ( 81 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 / COUNT ( * ) col0, - 91 AS col0 +---- +-91 +46 query II rowsort SELECT - 52 * - 55 col0, + 20 * 12 AS col2 @@ -3107,8 +3131,11 @@ SELECT 67 + - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(\-37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, - 37 AS col1 +---- +-37 +NULL query I rowsort label-590 SELECT ALL 7 / 2 @@ -3704,8 +3731,12 @@ 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\(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\. +query III valuesort SELECT DISTINCT 24 AS col0, MAX ( - + 21 ) * + + ( - NULLIF ( + 5, ( 37 ) ) ) * - 55 * - COUNT ( * ) * - 86 - - ( 91 ) * + 25 AS col2, - - 27 AS col2 +---- +-494375 +24 +27 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -4987,8 +5018,11 @@ SELECT 95 * + 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - ( + CAST ( + COUNT ( * ) AS INTEGER ) ) ) AS col2, - 77 AS col2 +---- +-1 +-77 query I rowsort label-947 SELECT ALL 29 / + - 50 * + 65 * - NULLIF ( CAST ( NULL AS INTEGER ), + 46 ) AS col0 @@ -5157,8 +5191,11 @@ SELECT 80 + 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "Int64\(\-97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 33 col1, - 97 AS col1 +---- +-97 +33 query I rowsort SELECT 74 * - 99 AS col1 @@ -5308,8 +5345,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 111 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(74\) \+ \(\- Int64\(\-82\)\) \- Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) col2, 74 + - - 82 - + 45 AS col2 +---- +1 +111 query I rowsort label-1009 SELECT + 88 * 65 * - - 66 * ( + 9 ) * 91 + + 45 + - 1 / - 19 + 21 AS col1 @@ -5674,8 +5714,11 @@ SELECT COUNT ( DISTINCT 5 ) + + 40 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 "Int64\(25\) AS col2" at position 0 and "\(\- count\(DISTINCT Int64\(16\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 AS col2, - COUNT ( DISTINCT + 16 ) AS col2 +---- +-1 +25 query I rowsort label-1078 SELECT 58 * - SUM ( - 14 ) AS col0 @@ -5792,8 +5835,11 @@ SELECT 86 * 30 + - 18 * - 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) \+ \(\- Int64\(4\)\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 44 + - ( + 4 ) AS col1, + 20 AS col1 +---- +-48 +20 query II rowsort label-1100 SELECT 53 AS col2, COUNT ( * ) + - - 21 * 83 + + 28 @@ -6302,8 +6348,11 @@ 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\(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\. +query II valuesort SELECT MIN ( - 39 ) AS col1, + CASE + 69 WHEN 14 + + + 25 THEN + ( COUNT ( * ) ) WHEN - - 33 THEN + SUM ( + - 74 ) END AS col1 +---- +-39 +NULL query I rowsort label-1195 SELECT DISTINCT + 64 * - 57 + - + COUNT ( * ) AS col1 @@ -6350,8 +6399,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 10 AS col0, 83 col0 +---- +10 +83 query I rowsort label-1204 SELECT ALL + 52 - + CAST ( NULL AS INTEGER ) col2 @@ -6378,8 +6430,12 @@ SELECT ALL + 9 AS col0, ( - 56 ) * + ( + 28 ) AS col2 # Datafusion - Expected - 0 # Datafusion - Expected - 23 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 0 AS col2, 23 AS col2, + 6 AS col1 +---- +0 +23 +6 query II rowsort SELECT 59, + ( 55 ) + - ( + 80 ) AS col1 @@ -6729,8 +6785,11 @@ SELECT + 29 * COUNT ( * ) * 45 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2240 # Datafusion - Expected - 2214 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* Int64\(\-64\) AS col2" at position 0 and "Int64\(27\) \* Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 35 * - 64 AS col2, + 27 * + + 82 AS col2 +---- +-2240 +2214 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -6877,8 +6936,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - + COUNT ( * ) * 27 AS col2, + 17 AS col2 +---- +-27 +17 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -7019,8 +7081,11 @@ SELECT ALL - 12 - - 73 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 42 AS col0, CAST ( NULL AS INTEGER ) AS col0 +---- +42 +NULL query I rowsort SELECT 21 + - - 4 AS col1 @@ -7230,8 +7295,11 @@ SELECT + 94 - ( + 88 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(\-9\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 6 * - 9 AS col1, + 12 AS col1 +---- +-54 +12 query I rowsort SELECT + 12 * 58 AS col0 @@ -7242,8 +7310,12 @@ SELECT + 12 * 58 AS col0 # Datafusion - Expected - -26 # Datafusion - Expected - 30 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \- Int64\(97\) AS col1" at position 0 and "Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 71 - + + 97 AS col1, + 30 AS col1, - 23 +---- +-23 +-26 +30 query I rowsort SELECT DISTINCT + 72 + + 32 + + 54 @@ -7831,8 +7903,11 @@ SELECT + + 32 * - 81 - 96 AS col0 # 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 col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 col0, ( 33 ) AS col0 +---- +33 +8 query I rowsort label-1484 SELECT DISTINCT + - COALESCE ( - 71, - COALESCE ( - + 52, - 88, MAX ( ALL - 90 ) ) ) * 84 / + 45 + + CAST ( NULL AS INTEGER ) * - 36 @@ -7932,8 +8007,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 62 * - COUNT ( * ) AS col1, - 79 col1 +---- +-79 +62 query I rowsort SELECT ALL - + 14 + + + 15 @@ -8226,8 +8304,11 @@ SELECT DISTINCT - 76 + - 81 + + 56 + + 69 * 92 - - ( - + 54 ) - + 44 + 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 6 AS col2, 19 AS col2 +---- +19 +6 query I rowsort SELECT 3 + + ( 94 ) AS col1 @@ -8484,8 +8565,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 32 col0, + 51 AS col0 +---- +32 +51 query I rowsort label-1609 SELECT + ( + - 60 ) * + NULLIF ( - - COUNT ( - 41 ), + COALESCE ( + 9, - 76, + 53 ) * + ( - 12 ) ) @@ -8683,14 +8767,20 @@ SELECT DISTINCT 39 / + 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2266 # Datafusion - Expected - 930 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* Int64\(43\) \+ Int64\(30\) AS col2" at position 0 and "Int64\(93\) \* Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + 52 ) * 43 + + 30 AS col2, 93 * + 10 AS col2 +---- +2266 +930 # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col0" at position 0 and "min\(Int64\(\-84\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 80 AS col0, MIN ( + - 84 ) AS col0 +---- +-80 +-84 query I rowsort label-1648 SELECT 86 + + - COUNT ( * ) + - + 97 AS col1 @@ -8780,8 +8870,11 @@ SELECT + 93 + COALESCE ( + 96, + - 84 * + COUNT ( * ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 78 AS col0, + COUNT ( * ) / COUNT ( * ) col0 +---- +-78 +1 query I rowsort SELECT - 2 * - 32 + 91 col2 @@ -8806,8 +8899,11 @@ SELECT ALL + + 81 + - 68 + + + 44 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 "Int64\(\-1\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 1 AS col0, + 57 AS col0 +---- +-1 +57 query I rowsort label-1670 SELECT 89 * 55 + + 53 * + MAX ( DISTINCT + 38 ) + - 98 @@ -8837,8 +8933,11 @@ SELECT ALL + 74 + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ \(\- CAST\(\(\- Int64\(\-75\)\) AS Int32\)\) \- Int64\(17\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(15\) THEN Int64\(69\) ELSE count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-71\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 + - CAST ( - - 75 AS INTEGER ) - 17 * - COUNT ( * ) col1, CASE - COUNT ( * ) WHEN 15 THEN 69 ELSE COUNT ( * ) * + - 71 END AS col1 +---- +-6 +-71 query I rowsort label-1676 SELECT DISTINCT + 65 / - 31 @@ -8929,8 +9028,11 @@ SELECT DISTINCT + 22 / - + COUNT ( * ), 68 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19232 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(21\), Int64\(0\) \- Int64\(\-29\)\)\) \* Int64\(10\) \* Int64\(91\) \+ Int64\(\-61\) \* Int64\(2\) AS col1" at position 0 and "CAST\(Int64\(94\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COALESCE ( + 21, 0 - - 29 ) * + 10 * + + 91 + - 61 * + 2 AS col1, CAST ( 94 AS INTEGER ) AS col1 +---- +-19232 +94 query I rowsort label-1693 SELECT ALL COUNT ( * ) * + 66 @@ -9102,8 +9204,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 97 AS col0, 38 AS col0 +---- +-97 +38 query I rowsort label-1727 SELECT DISTINCT 10 * + + 61 / + 74 / ( + 27 ) * + 86 + 53 AS col0 @@ -9951,8 +10056,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, - 94 * - COUNT ( * ) AS col0 +---- +-1 +94 query I rowsort SELECT + 39 * + + 69 @@ -10269,8 +10377,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "nullif\(Int64\(65\), Int64\(\-92\) \* Int64\(96\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 79 AS col0, NULLIF ( 65, - 92 * + 96 ) AS col0 +---- +65 +79 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -10343,8 +10454,11 @@ SELECT DISTINCT - 66 * - 93 + + 42 * 98 - + - NULLIF ( CASE + 19 WHEN + COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col1" at position 0 and "Int64\(86\) \+ Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 96 AS col1, + 86 + + - 12 AS col1 +---- +74 +96 query I rowsort SELECT ALL + ( - 15 ) * 6 @@ -10716,8 +10830,11 @@ SELECT DISTINCT + COUNT ( * ) * 43 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col2" at position 0 and "Int64\(16\) \+ \(\- Int64\(\-58\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 AS col2, + 16 + - - 58 AS col2 +---- +24 +74 query I rowsort SELECT ALL - 47 + 70 + + ( 2 ) - + - 59 - - 81 * + 79 * + NULLIF ( - 21, - 60 ) * - 55 AS col0 @@ -10814,8 +10931,11 @@ SELECT - - COUNT ( DISTINCT - 55 ) * 54 * 39 - - 71 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 6174000 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col0" at position 0 and "Int64\(60\) \* coalesce\(Int64\(42\), Int64\(71\), \(\- Int64\(\-37\)\) \* Int64\(\-89\)\) \* Int64\(98\) \* Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 29 AS col0, + 60 * + COALESCE ( + 42, 71, - - 37 * - 89 ) * + 98 * 25 AS col0 +---- +-29 +6174000 query I rowsort SELECT ALL + + 2 * - - 32 * + 12 col0 @@ -11390,8 +11510,11 @@ SELECT ALL - 84 - - COUNT ( * ) * 17 - - 86 * - - 38 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 * - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0 +---- +-68 +NULL query I rowsort SELECT NULLIF ( ( 40 ), - - 12 ) + + + 70 @@ -11487,8 +11610,11 @@ SELECT 8, + COUNT ( DISTINCT 96 ) * + ( + + 18 ) / + 11 - 58 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5880 # Datafusion - Expected - 8827 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-84\)\)\) \* Int64\(70\) AS col1" at position 0 and "Int64\(91\) \* Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - - 84 ) * + + 70 AS col1, 91 * + 97 col1 +---- +-5880 +8827 query I rowsort SELECT + 50 - + ( + 52 ) AS col0 @@ -11513,8 +11639,11 @@ NULL # 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\(\-23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 34 AS col0, - 23 col0 +---- +-23 +-34 query I rowsort label-2191 SELECT ALL COALESCE ( 30, + + MIN ( - 8 ) ) AS col0 @@ -11911,8 +12040,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col1" at position 0 and "Int64\(\-51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 12 AS col1, - 51 col1 +---- +-51 +12 query I rowsort SELECT ALL + + 87 + + 31 @@ -12071,8 +12203,11 @@ SELECT ALL + 86 + 73 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -494 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-6\)\) AS col0" at position 0 and "Int64\(19\) \* Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 6 AS col0, + 19 * + - 26 col0 +---- +-494 +6 query I rowsort SELECT ALL + ( - + 82 ) @@ -12361,8 +12496,11 @@ 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\(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\. +query II valuesort SELECT + COALESCE ( + COALESCE ( + - 51, + 47 / NULLIF ( - 90, + 60 ) + MAX ( ALL - 80 ) ), - 69, COUNT ( * ) / 27 + + 90 ) col0, 85 * - + COUNT ( * ) AS col0 +---- +-51 +-85 query I rowsort label-2350 SELECT ALL + 74 / COUNT ( DISTINCT 77 ) + 85 * - - 42 @@ -12484,8 +12622,11 @@ SELECT DISTINCT + COUNT ( * ) + 1 * + CASE + 2 WHEN + 85 + - COALESCE ( + 55, - # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 51 AS col0, 72 AS col0 +---- +-51 +72 query II rowsort label-2374 SELECT ALL 73 AS col2, COUNT ( * ) + CAST ( 83 AS INTEGER ) + 66 + - + 92 + - 5 * 23 * + + 77 @@ -12596,8 +12737,11 @@ SELECT COUNT ( * ) * + - 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3864 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(2\)\) \* Int64\(84\) \* Int64\(\-23\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MIN ( DISTINCT + 2 ) * 84 * - 23 AS col0, 25 col0 +---- +-3864 +25 query I rowsort SELECT + NULLIF ( - - 11, 49 ) AS col1 @@ -12633,8 +12777,11 @@ SELECT ALL - 22 + + 30 * + 33 * + 86 * - 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2490 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(\-83\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 * + - 83 AS col2, COUNT ( * ) AS col2 +---- +-2490 +1 query I rowsort label-2402 SELECT DISTINCT + 39 + - - COUNT ( * ) @@ -12655,8 +12802,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + - + 53 AS col1, + NULLIF ( - 67, + 27 ) + 36 * + COUNT ( - 21 ) AS col1 +---- +-31 +-52 query I rowsort SELECT ALL + CASE + 82 WHEN ( - + 76 ) THEN - - 79 END + - + 44 AS col1 @@ -12761,8 +12911,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 68 AS col0, 18 AS col0 +---- +18 +68 query I rowsort label-2427 SELECT + COALESCE ( 74, 66 ) / + + COUNT ( * ) @@ -12927,8 +13080,11 @@ SELECT - - 77 - - 71 / 88 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 39 col0, + 97 AS col0 +---- +-39 +97 query I rowsort label-2457 SELECT - ( COUNT ( * ) ) * - - 88 + + COUNT ( - ( + 94 ) ) + + 73 AS col1 @@ -13652,8 +13808,11 @@ SELECT DISTINCT 85 * + COALESCE ( 26, 39 * 71 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - -1208 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(23\), Int64\(\-38\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(CASE \(\- count\(Int64\(44\)\)\) WHEN Int64\(\-96\) THEN NULL WHEN CAST\(NULL AS Float64\) \+ Int64\(13\) \+ \(\- Int64\(\-85\)\) \+ Int64\(58\) / Int64\(56\) THEN NULL ELSE Int64\(94\) END AS Int32\)\) AS col2" at position 0 and "Int64\(\-94\) \* nullif\(Int64\(13\), Int64\(40\)\) \+ Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-1208 +-71 query I rowsort label-2593 SELECT SUM ( DISTINCT - 48 ) AS col1 @@ -13934,8 +14093,11 @@ SELECT ALL + ( - 28 ) AS col1, 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 83173 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "Int64\(61\) \* Int64\(15\) \* Int64\(91\) \- Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 88 AS col1, ( + 61 ) * 15 * + 91 - + 92 AS col1 +---- +83173 +88 query I rowsort label-2646 SELECT 53 + + + MIN ( - 78 ) @@ -14009,15 +14171,22 @@ SELECT 47 + - + ( - 52 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(11\), Int64\(\-30\)\)\) AS col1" at position 0 and "\(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(8\) THEN CAST\(NULL AS Int32\) \+ Int64\(\-96\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COALESCE ( 11, + - 30 ) AS col1, - CASE - + COUNT ( * ) WHEN + 8 THEN + CAST ( NULL AS INTEGER ) + - 96 ELSE NULL END AS col1 +---- +-11 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 67 # Datafusion - Expected - -58 -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\(\-86\)\) \* \(\- Int64\(\-58\)\) \* \(\- count\(Int64\(9\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - ( - 35 ) AS col1, 68 / - 29 + 69, COUNT ( ALL - 86 ) * - - 58 * - COUNT ( ALL + 9 ) col1 +---- +-58 +35 +67 query I rowsort SELECT 28 * + 53 * + ( + - 62 ) + + - 13 + + 22 @@ -14460,8 +14629,11 @@ SELECT 76 / + ( 1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 100768 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* Int64\(67\) \* Int64\(32\) AS col2" at position 0 and "Int64\(\-56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 * 67 * + + 32 AS col2, - 56 col2 +---- +-56 +100768 query I rowsort SELECT 82 + + 91 AS col2 @@ -14731,8 +14903,11 @@ SELECT ALL + - NULLIF ( + + 98, + 54 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - -86 -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\(67\)\) WHEN Int64\(\-34\) \* \(\- Int64\(6\)\) \- Int64\(\-28\) THEN NULL ELSE min\(Int64\(86\)\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 50 AS col2, - CASE - + 67 WHEN - 34 * - + 6 - - 28 THEN NULL ELSE MIN ( ALL + + 86 ) END AS col2 +---- +-86 +50 query I rowsort SELECT ALL + 28 * - - 14 AS col0 @@ -15454,8 +15629,11 @@ SELECT - - 33 * + + 93 # 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\(\-62\) \+ Int64\(57\) AS col1" at position 0 and "Int64\(\-11\) \+ \(\- CASE Int64\(76\) WHEN \(\- Int64\(\-99\)\) \+ Int64\(72\) THEN Int64\(21\) \* Int64\(40\) ELSE NULL END\) \* Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 62 + + 57 col1, - 11 + ( - CASE 76 WHEN - ( - 99 ) + + 72 THEN 21 * 40 ELSE NULL END ) * 24 AS col1 +---- +-5 +NULL query I rowsort label-2938 SELECT - SUM ( ALL - + 84 ) @@ -15471,8 +15649,11 @@ SELECT DISTINCT - 39 * - 96, 49 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 21 AS col1, COUNT ( * ) AS col1 +---- +1 +21 query II rowsort SELECT 85 + 78 col1, + 11 - + 67 col2 @@ -16209,8 +16390,11 @@ 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\(1\)\) AS count\(\*\)\)\)\) \+ Int64\(20\) \* Int64\(84\) \+ \(\- Int64\(60\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 0 AS col0, + CASE + + 37 WHEN ( - 41 ) THEN NULL ELSE 37 END * + - COALESCE ( + 42, - COUNT ( * ) ) + + 20 * + 84 + - + 60 AS col0 +---- +0 +66 query I rowsort label-3080 SELECT DISTINCT - ( + + 41 ) / 17 + + CAST ( 41 AS INTEGER ) + + ( 83 ) + + 75 + - 68 * - - 54 * - MAX ( - NULLIF ( CAST ( NULL AS INTEGER ), 13 ) ) / + MAX ( ALL - 19 ) @@ -16258,8 +16442,11 @@ SELECT ALL 60 - - - 54 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 51 AS col0, 63 AS col0 +---- +-51 +63 query I rowsort label-3089 SELECT SUM ( + 92 ) + - - 31 @@ -16291,8 +16478,11 @@ SELECT + - 21, - 71 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -2236 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) / Int64\(85\) / Int64\(\-24\) \* \(\- Int64\(70\)\) AS col0" at position 0 and "Int64\(86\) \* \(\- min\(Int64\(26\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 74 / 85 / - 24 * - + 70 col0, 86 * + - MIN ( + 26 ) AS col0 +---- +-2236 +0 query II rowsort label-3095 SELECT MIN ( ALL 24 ) * + - 80 * + 92 AS col0, 73 @@ -16414,8 +16604,11 @@ SELECT ALL - 73 / - + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -6051 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) / Int64\(\-62\) AS col2" at position 0 and "Int64\(63\) \* Int64\(\-97\) \+ Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 / - 62 AS col2, 63 * - 97 + 60 AS col2 +---- +-6051 +0 query I rowsort label-3118 SELECT 96 / - CASE 45 WHEN + - AVG ( DISTINCT - 58 ) THEN NULL WHEN 47 * - + 31 + - 96 + + 21 THEN - ( + MIN ( - 87 ) ) ELSE - - 99 * 41 END @@ -16612,8 +16805,11 @@ SELECT DISTINCT - 88 * + 2 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \* count\(DISTINCT Int64\(99\)\) AS col0" at position 0 and "Int64\(39\) \+ Int64\(\-98\) \+ \(\- \(\- \(\- Int64\(\-24\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 95 * COUNT ( DISTINCT 99 ) AS col0, 39 + - 98 + - - ( - - 24 ) AS col0 +---- +-35 +-95 query I rowsort label-3156 SELECT DISTINCT - MAX ( ALL 8 ) AS col2 @@ -16714,8 +16910,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 29 col0, 83 AS col0 +---- +-29 +83 query II rowsort label-3176 SELECT + 24 * COUNT ( * ) * + 99 * 51 * - + 63 * - - COALESCE ( - 35, - 34, - 24 * + - MAX ( - ( + 53 ) ) + - 11 ) + + 39 - + - 81 - 65 * + 36 * - 34, + 64 col0 @@ -17182,8 +17381,11 @@ SELECT ALL COALESCE ( - 76, + 97 - - 66 * - + COALESCE ( + 73, + - 70 ) + 47, 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col2" at position 0 and "Int64\(70\) \+ Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 23 AS col2, 70 + + 62 col2 +---- +-23 +132 query I rowsort SELECT - 54 + - 61 col1 @@ -17315,8 +17517,11 @@ 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\(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\. +query RI valuesort SELECT ALL 68 * + AVG ( ALL - + 39 ) + + CASE - ( 88 ) WHEN COUNT ( * ) THEN + + 22 + - + 0 END * - + COUNT ( * ) AS col2, 65 AS col2 +---- +65 +NULL query I rowsort SELECT ALL - COALESCE ( + 88, + - 96 ) * 5 AS col0 @@ -17482,8 +17687,11 @@ SELECT DISTINCT COUNT ( * ) + + - 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col0" at position 0 and "max\(Int64\(\-54\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 43 AS col0, MAX ( ALL - 54 ) AS col0 +---- +-54 +43 query II rowsort SELECT 78, + 99 AS col2 @@ -18525,8 +18733,11 @@ SELECT DISTINCT 38 + - 97 + 5 * + + 73 - 40 * - 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(20\)\) AS col1" at position 0 and "Int64\(\-8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( + + 20 ) AS col1, - 8 AS col1 +---- +-8 +20 query I rowsort SELECT - 67 * - 3 @@ -18592,8 +18803,11 @@ SELECT ALL ( + ( + + SUM ( ALL - 84 ) ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8256 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* Int64\(96\) AS col2" at position 0 and "min\(CASE Int64\(\-8\) WHEN Int64\(\-49\) THEN NULL WHEN Int64\(\-55\) THEN Int64\(89\) END\) \* Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 86 * 96 AS col2, MIN ( ALL CASE - 8 WHEN - 49 THEN NULL WHEN - 55 THEN + 89 END ) * 18 AS col2 +---- +8256 +NULL query I rowsort label-3536 SELECT - MIN ( + 6 ) + + + 96 + 7 AS col1 @@ -18653,8 +18867,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - ( - - 20 ) AS col1, 80 * ( - COUNT ( * ) ) AS col1 +---- +-20 +-80 query I rowsort label-3548 SELECT - + 9 + + - COUNT ( * ) AS col2 @@ -19006,8 +19223,11 @@ SELECT + 83 * 19 / + 80 + 9 + + 36 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 98 AS col1, 19 AS col1 +---- +-98 +19 query II rowsort SELECT + 49 * + 66 * + + 76 + 67, NULLIF ( + - 67, 10 ) AS col1 @@ -19317,8 +19537,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 6720 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \* max\(Int64\(\-70\)\) AS col2" at position 0 and "Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 96 * + MAX ( ALL - 70 ) AS col2, + 43 AS col2 +---- +43 +6720 query II rowsort SELECT - 19 AS col0, 76 @@ -19647,8 +19870,11 @@ SELECT 60 * COUNT ( * ) + MAX ( DISTINCT 61 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(24\) AS Int32\) \+ Int64\(\-8\) AS col1" at position 0 and "Int64\(\-74\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( 24 AS INTEGER ) + - 8 col1, - 74 - - COUNT ( * ) AS col1 +---- +-73 +16 query I rowsort SELECT DISTINCT + 29 * 60 AS col2 @@ -19889,8 +20115,11 @@ SELECT + + 98 + - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 4 col0, 54 AS col0 +---- +4 +54 query II rowsort label-3787 SELECT - CAST ( NULL AS INTEGER ) AS col2, + 64 * + ( + NULLIF ( - 89, - 36 ) ) AS col0 @@ -19969,8 +20198,11 @@ SELECT - 26 + + + 81 * 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - 6650 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ Int64\(\-88\) AS col2" at position 0 and "Int64\(70\) \* Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 32 + - 88 AS col2, + 70 * + + 95 AS col2 +---- +-56 +6650 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -20093,8 +20325,11 @@ 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\(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\. +query II valuesort 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 +---- +-54 +NULL query I rowsort SELECT - 89 + - - 10 @@ -20976,8 +21211,11 @@ SELECT 99 * - 98 * 57 AS col0, ( + COALESCE ( - 64, 82 + + - 55 * + 27 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col2" at position 0 and "Int64\(75\) \+ Int64\(\-73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 35 col2, + 75 + + - 73 AS col2 +---- +-35 +2 query I rowsort SELECT ALL - 78 * 21 * 13 * - 6 @@ -21502,8 +21740,11 @@ SELECT - 82 * - - 89 * - 60 - 85 * - 14 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 68 AS col0, 80 AS col0 +---- +-68 +80 query I rowsort SELECT ALL + - 32 + - 4 col2 @@ -21634,8 +21875,12 @@ SELECT DISTINCT - + 33, 93 AS col1 # Datafusion - Expected - 54 # Datafusion - Expected - -41 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 54 AS col2, - 41 AS col2, - + 28 +---- +-28 +-41 +54 query I rowsort label-4119 SELECT ALL ( + - CAST ( + + ( - 23 ) AS INTEGER ) ) @@ -21929,8 +22174,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 AS col2, 71 AS col2 +---- +12 +71 query I rowsort label-4175 SELECT + 13 - + + MIN ( ( + 58 ) ) col2 @@ -22023,8 +22271,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 91 AS col0, + COUNT ( * ) + - 14 AS col0 +---- +-13 +-91 query I rowsort SELECT + - 76 + - 12 * 51 * + 36 AS col0 @@ -22080,8 +22331,11 @@ SELECT CAST ( 10 AS INTEGER ) / - 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1566 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* Int64\(\-87\) AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 18 * - 87 AS col2, 64 AS col2 +---- +-1566 +64 query I rowsort label-4204 SELECT COUNT ( * ) + + - ( 97 ) + CAST ( + 24 AS INTEGER ) @@ -23313,8 +23567,11 @@ SELECT DISTINCT 1 * + - 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "Int64\(4\) \- CAST\(\(\- \(\- nullif\(\(\- Int64\(\-71\)\), Int64\(81\)\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 10 AS col2, 4 - CAST ( - - NULLIF ( - - 71, 81 ) AS INTEGER ) AS col2 +---- +-67 +10 query I rowsort SELECT DISTINCT 53 * - ( + 61 ) AS col1 @@ -23634,8 +23891,11 @@ SELECT ALL 43 * + - ( + 82 ), + COUNT ( * ) / + - CAST ( - AVG ( 51 ) AS INTEGER # 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 "Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 67 AS col0, - 1 AS col0 +---- +-1 +-67 query I rowsort label-4502 SELECT DISTINCT + COUNT ( * ) / COUNT ( * ) / + 32 @@ -24289,8 +24549,11 @@ SELECT + CAST ( + 57 AS INTEGER ) * 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1060 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "Int64\(59\) \* Int64\(\-18\) \- Int64\(37\) / Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( - - CAST ( NULL AS INTEGER ) ) AS col1, 59 * + - 18 - + 37 / + - 13 AS col1 +---- +-1060 +NULL query I rowsort label-4627 SELECT - 70 + 62 + + 49 + CAST ( + 10 AS INTEGER ) AS col0 @@ -24379,8 +24642,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1353 # Datafusion - Expected - 2475 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(\-19\)\) \* Int64\(\-72\) \+ min\(Int64\(9\)\) \- Int64\(6\) \+ Int64\(\-18\) AS col1" at position 0 and "Int64\(45\) \* Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + SUM ( DISTINCT - 19 ) * + - 72 + + MIN ( ALL 9 ) - + 6 + - 18 AS col1, 45 * 55 AS col1 +---- +1353 +2475 query I rowsort label-4643 SELECT DISTINCT CAST ( + 55 AS INTEGER ) * COUNT ( * ) / 73 * + + 5 + 19 + - + 87 * + 65 - + COUNT ( - 59 ) * + 57 col0 @@ -24695,8 +24961,11 @@ SELECT - - CASE + 97 WHEN + 5 * + - MAX ( - 25 ) + 90 + CAST ( 96 AS INTEGER ) T # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( 96 ) AS col2, 28 AS col2 +---- +28 +96 query I rowsort SELECT 76 - 28 AS col1 @@ -24787,8 +25056,11 @@ SELECT 18 * + 50 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \+ \(\- Int64\(0\)\) AS col2" at position 0 and "sum\(Int64\(\-33\)\) \+ Int64\(63\) \+ \(\- Int64\(\-14\)\) \+ Int64\(\-80\) \* Int64\(26\) / Int64\(67\) \- \(\- Int64\(51\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 + - ( 0 ) AS col2, SUM ( - 33 ) + + 63 + - - 14 + - 80 * 26 / 67 - - + 51 AS col2 +---- +21 +64 query II rowsort SELECT DISTINCT - COALESCE ( + 97, + 29 + + + 25 ) * - COALESCE ( 79, + + 50, 33 ) AS col1, 44 + - - 59 AS col0 @@ -24975,8 +25247,11 @@ 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\(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\. +query II valuesort 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 +---- +49 +82 query I rowsort label-4756 SELECT ALL + 68 * 82 + - + 71 + - 40 * + NULLIF ( - COUNT ( * ), CAST ( NULL AS INTEGER ) ) @@ -25124,8 +25399,11 @@ 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\(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\. +query II valuesort SELECT ALL 32 / ( COUNT ( * ) ) + 53 + + 68 AS col2, ( + + 62 ) + + COUNT ( * ) + + ( SUM ( ALL - 81 ) ) AS col2 +---- +-18 +153 query I rowsort label-4785 SELECT ALL NULLIF ( + 51, 85 ) / - 26 + + + 2 @@ -25328,8 +25606,11 @@ SELECT 21 * + 33 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - -183 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col2" at position 0 and "Int64\(91\) / Int64\(9\) \+ Int64\(53\) \+ \(\- coalesce\(Int64\(82\), Int64\(\-71\)\)\) \* Int64\(81\) / Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 98 col2, 91 / + 9 + + 53 + - COALESCE ( 82, - 71 ) * ( + + 81 ) / 27 AS col2 +---- +-183 +-98 query I rowsort SELECT ALL 47 + + 38 col0 @@ -25449,8 +25730,11 @@ SELECT - + 53 AS col1, + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - 36 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 43 AS col2, 36 col2 +---- +-43 +36 query I rowsort label-4846 SELECT SUM ( ALL + 91 ) * + COUNT ( * ) + + COUNT ( * ) + - - 34 AS col2 @@ -25825,8 +26109,11 @@ SELECT - 93, 39 + + + 99 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 5845 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col2" at position 0 and "Int64\(66\) \* Int64\(89\) \+ Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 95 AS col2, 66 * 89 + - 29 AS col2 +---- +-95 +5845 query I rowsort label-4918 SELECT ALL - COALESCE ( - 10, 30 * CAST ( NULL AS INTEGER ) + + - 1 ) @@ -25853,8 +26140,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) END AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - 74, + 12 col0, SUM ( ALL - + 23 ) * CASE 6 WHEN 97 * + 47 THEN + - COUNT ( * ) END AS col0 +---- +-74 +12 +NULL query I rowsort SELECT ALL + + 75 + - + 60 @@ -27607,8 +27898,12 @@ SELECT NULLIF ( - MIN ( - - 61 ), CAST ( NULL AS INTEGER ) - + CAST ( 10 AS INTE # Datafusion - Expected - 57 # Datafusion - Expected - 520 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \* Int64\(\-65\) AS col2" at position 1 and "Int64\(\-12\) \- Int64\(5\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 57 * + + COUNT ( DISTINCT 68 ), - 8 * - 65 AS col2, + - 12 - + 5 AS col2 +---- +-17 +520 +57 query I rowsort label-5261 SELECT 89 * ( COALESCE ( + + 95, + - 27 * - 3, + 68 / COUNT ( DISTINCT + 6 * 68 ) ) ) - ( 87 ) - - 73 @@ -27737,8 +28032,11 @@ SELECT DISTINCT 4 - + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col2" at position 0 and "Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 40 AS col2, + 43 AS col2 +---- +40 +43 query I rowsort SELECT + 55 - - + 15 AS col2 @@ -28157,8 +28455,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 30 ) + + COUNT ( * ) AS col0, + 58 AS col0 +---- +-29 +58 query I rowsort label-5365 SELECT ALL + 38 / - NULLIF ( + 48, ( + 55 ) * - 28 ) + - 37 @@ -28458,8 +28759,11 @@ SELECT DISTINCT + 0 + - - 62 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \+ \(\- Int64\(\-49\)\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 45 + - - 49 AS col0, 66 col0 +---- +4 +66 query I rowsort label-5421 SELECT + + CASE - 86 WHEN + 81 THEN - 95 WHEN CASE + COUNT ( * ) WHEN + 77 THEN - ( + 11 ) ELSE - - 89 - - - 93 * + 13 * - 50 + 3 END THEN NULL ELSE - 86 END @@ -28855,8 +29159,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(64\) \+ Int64\(\-68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 78 * - - 57 AS col2, 57 + - 96 + MAX ( - 82 ) * + COUNT ( * ) + 64 + + - 68 col2 +---- +-125 +4446 query I rowsort label-5498 SELECT - + 8 * + MIN ( + 79 ) @@ -29147,8 +29454,11 @@ SELECT MIN ( ALL - - 64 ) - + 83 / + ( - 82 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 AS col2, 75 AS col2 +---- +-20 +75 query I rowsort SELECT 68 + 34 + + ( + 36 ) @@ -29246,8 +29556,11 @@ SELECT ALL + COALESCE ( + COUNT ( - - 24 ), + 79 ) AS col2 # 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 "Int64\(8\) AS col1" at position 0 and "Int64\(\-24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 8 AS col1, - 24 AS col1 +---- +-24 +8 query II rowsort SELECT ALL + 28 AS col2, - 62 @@ -29602,8 +29915,11 @@ SELECT ALL + 70 + - 5 * + 59 AS col2, ( - SUM ( 90 ) ) * 75 - + 60 * 93 - 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 "Int64\(\-1\) AS col2" at position 0 and "Int64\(6\) \+ Int64\(\-88\) \+ Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 1 AS col2, + 6 + - 88 + + ( 47 ) AS col2 +---- +-1 +-35 query I rowsort SELECT ALL + + 82 + 68 + + 48 @@ -29862,8 +30178,11 @@ SELECT DISTINCT - ( + 5 ) * - COALESCE ( - - COUNT ( * ), - 67 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col0, 55 AS col0 +---- +1 +55 query II rowsort label-5689 SELECT + 37 AS col1, CASE + - CASE - 0 WHEN + - 82 THEN NULL ELSE - 71 END WHEN + 3 * + 87 THEN - + CAST ( - 92 AS INTEGER ) WHEN - 76 THEN NULL WHEN - 59 * + - 89 + 11 + COUNT ( * ) / - + 10 THEN + - 71 ELSE NULL END AS col0 @@ -30521,8 +30840,11 @@ SELECT - 44 + + 10 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "\(\- Int64\(\-64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 56 AS col2, + ( - - 64 ) AS col2 +---- +56 +64 query I rowsort label-5816 SELECT ALL + - CAST ( NULL AS INTEGER ) / + + 29 AS col2 @@ -30543,8 +30865,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 78 AS col0, SUM ( + 15 ) + - COUNT ( * ) AS col0 +---- +-78 +14 query II rowsort SELECT - - 54 AS col2, 37 @@ -30565,8 +30890,11 @@ SELECT 84 + MAX ( DISTINCT - + 41 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 78 AS col1, + 84 AS col1 +---- +78 +84 query II rowsort label-5824 SELECT 97 * - - CAST ( NULL AS INTEGER ) * - - ( + 1 ) col0, 26 * - COUNT ( * ) @@ -31129,8 +31457,11 @@ SELECT ALL 10 * 48 + - + 76 + - 6 + + - 27 + - 26 + 63 * + 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-78\)\) \* Int64\(58\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 78 * + 58 * CAST ( NULL AS INTEGER ) AS col1, 26 AS col1 +---- +26 +NULL query I rowsort label-5931 SELECT 5 + + 78 + - COUNT ( * ) * - + 68 @@ -31170,8 +31501,11 @@ 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\(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\. +query II valuesort SELECT + + 49 * 77 AS col0, CASE - 76 WHEN COUNT ( * ) / - 89 + - 4 + 0 * - 93 * 21 * 18 THEN 87 END AS col0 +---- +3773 +NULL query I rowsort label-5939 SELECT DISTINCT + 11 * COUNT ( * ) AS col2 @@ -31229,8 +31563,11 @@ SELECT ALL 42 AS col1, COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col0" at position 0 and "Int64\(5\) \* Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 93 AS col0, + 5 * + 7 AS col0 +---- +35 +93 query II rowsort label-5950 SELECT + 34 - - + 18 / - 85, + 41 AS col2 @@ -31852,8 +32189,11 @@ 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\(Int64\(1\)\) AS count\(\*\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( DISTINCT - + 50 ) AS col0, 80 * CASE - 64 WHEN - + ( + - 14 ) THEN NULL WHEN + 52 + + 21 + - 26 + - ( 90 ) THEN COUNT ( * ) END AS col0 +---- +-50 +NULL query I rowsort label-6068 SELECT DISTINCT - SUM ( ALL 59 ) * + - 27 * + + ( 33 ) + - COUNT ( - + COALESCE ( 6, + 3 ) ) * + 17 * + 13 + - COUNT ( * ) AS col1 @@ -31889,8 +32229,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -986 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) \* \(\- Int64\(\-58\)\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 17 * - - 58 AS col0, ( + 60 ) AS col0 +---- +-986 +60 query I rowsort label-6075 SELECT ALL 69 + - - 58 + CASE - 75 WHEN - 28 + - - 79 + + 4 * + 83 THEN NULL WHEN - 16 * - 46 * 10 - 0 + - 94 * COALESCE ( - 7, - CAST ( NULL AS INTEGER ) * - + 30 * + - 10, - CASE + - COUNT ( - - 63 ) WHEN + NULLIF ( 78, - 76 + - 38 ) + 1 THEN + 61 - + 14 - 38 * + + COALESCE ( 43, + ( 7 ) + COUNT ( * ) ) ELSE COUNT ( + 99 ) END * + 92 ) THEN + 3 * COUNT ( * ) END @@ -32003,8 +32346,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 27 col2, + 36 + - 99 + - COUNT ( * ) AS col2 +---- +-27 +-64 query I rowsort SELECT 1 + - + ( - 85 ) @@ -32041,8 +32387,11 @@ 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\(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\. +query II valuesort SELECT 45 + - COUNT ( * ) * + 75 AS col0, + 72 * + 21 col0 +---- +-30 +1512 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -32451,8 +32800,12 @@ NULL # Datafusion - Expected - -47 # Datafusion - Expected - 99 # Datafusion - Expected - 880 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(\-99\)\), \(\- Int64\(42\)\) \* \(\- coalesce\(Int64\(99\), Int64\(6\)\)\)\) AS col0" at position 1 and "Int64\(\-10\) \* Int64\(\-88\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + COUNT ( * ) * + - 47, + NULLIF ( - ( - 99 ), - + 42 * - COALESCE ( 99, + 6 ) ) AS col0, + ( + - 10 ) * - 88 AS col0 +---- +-47 +880 +99 query I rowsort label-6183 SELECT - COALESCE ( - COALESCE ( 61, + - ( + - 37 ) * - 66 - - + ( + - COUNT ( * ) ) ), 26, + 79 ) col0 @@ -32598,8 +32951,11 @@ SELECT - 20 AS col0, 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + 42 ) AS col0, - 51 AS col0 +---- +-51 +42 query I rowsort label-6211 SELECT + NULLIF ( 39, COUNT ( * ) ) / - 59 + - 34 * 56 AS col0 @@ -32658,8 +33014,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) + + + 50 AS col1, + 96 col1 +---- +51 +96 query I rowsort label-6222 SELECT ALL + 55 - 85 + NULLIF ( + 49, COUNT ( * ) ) * + 19 * 95 / 1 AS col0 @@ -33319,8 +33678,11 @@ SELECT ALL 44 AS col1, - 90 / COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "CAST\(Int64\(86\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 46 AS col2, CAST ( + + 86 AS INTEGER ) AS col2 +---- +46 +86 query I rowsort SELECT 0 * + 38 @@ -33403,8 +33765,11 @@ 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 col0" at position 0 and "Int64\(88\) / Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( 63 ) col0, + 88 / 54 AS col0 +---- +-63 +1 query I rowsort label-6365 SELECT - + CAST ( + 0 AS INTEGER ) AS col1 @@ -33893,8 +34258,11 @@ SELECT + + 17 * - + 14 + + COALESCE ( + COUNT ( * ), - 97 ) * - ( 77 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, + 48 AS col0 +---- +1 +48 query I rowsort label-6456 SELECT DISTINCT - 89 * - COUNT ( * ) AS col0 @@ -34159,8 +34527,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 6050 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* \(\- max\(Int64\(\-68\)\)\) \+ Int64\(71\) \+ Int64\(\-5\) AS col0" at position 0 and "min\(Int64\(65\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 88 * - MAX ( + - 68 ) + 71 + - 5 AS col0, MIN ( + 65 ) col0 +---- +6050 +65 query I rowsort label-6506 SELECT CAST ( - 39 AS INTEGER ) * + 66 + + + 93 + + + 98 * + + 97 + + + 91 AS col1 @@ -34181,8 +34552,12 @@ SELECT ALL 4 * - + 31 * + - 68 * - 58 # Datafusion - Expected - -29 # Datafusion - Expected - 1516 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ Int64\(\-60\) \+ \(\- Int64\(66\)\) AS col1" at position 0 and "coalesce\(Int64\(\-24\), Int64\(32\) \* \(\- nullif\(Int64\(\-49\), min\(Int64\(54\)\)\)\), Int64\(39\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 97 + ( - 60 ) + + - ( + + 66 ) AS col1, + 34 + 26 * 57 AS col0, COALESCE ( + - 24, + 32 * - NULLIF ( - 49, + MIN ( ALL 54 ) ), + ( + 39 ) ) AS col1 +---- +-24 +-29 +1516 query I rowsort SELECT - 78 + 62 AS col1 @@ -35382,8 +35757,11 @@ SELECT 73 * + + 97 * + MAX ( 81 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 26 AS col0, 49 AS col0 +---- +26 +49 query I rowsort SELECT ALL - 67 + + 2 AS col0 @@ -35435,8 +35813,11 @@ SELECT ALL - 22 * 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col0" at position 0 and "Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 AS col0, - 51 AS col0 +---- +-51 +33 query I rowsort SELECT + 28 * - 10 + + 63 + + 83 @@ -35909,8 +36290,12 @@ SELECT 66 - 14 * + 66 # Datafusion - Expected - -46 # Datafusion - Expected - 55 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col0" at position 0 and "Int64\(54\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 46 AS col0, 54 + + COUNT ( * ) AS col0, - 68 - - + 54 +---- +-14 +-46 +55 query I rowsort label-6846 SELECT ALL - - 95 + MIN ( - 13 ) @@ -36100,8 +36485,11 @@ SELECT ALL - - 96 - + + 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "Int64\(31\) \* Int64\(69\) \+ \(\- nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-51\) / Int64\(\-44\)\)\) \+ Int64\(\-89\) \* Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 2 AS col2, + 31 * 69 + - NULLIF ( - CAST ( NULL AS INTEGER ), + - 51 / - 44 ) + - 89 * 80 AS col2 +---- +2 +NULL query II rowsort SELECT DISTINCT 30, 6 AS col1 @@ -36434,8 +36822,11 @@ NULL # 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\(10\) \* \(\- Int64\(0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 34 AS col0, 10 * - - 0 AS col0 +---- +-34 +0 query I rowsort label-6945 SELECT ALL - CAST ( - 96 AS INTEGER ) * - 62 + - ( - ( + - CASE - 21 WHEN + - AVG ( ALL - 5 ) THEN COUNT ( * ) END ) ) - 43 @@ -36552,8 +36943,11 @@ SELECT ALL 69 + COUNT ( * ) + + - 65 + - - 1 / - 66 AS col1, + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7654 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(89\) AS col0" at position 0 and "CASE Int64\(96\) WHEN Int64\(\-15\) \+ count\(Int64\(8\)\) THEN CAST\(Int64\(15\) AS Int32\) \* Int64\(25\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 86 ) * + COUNT ( * ) * + + 89 AS col0, CASE 96 WHEN + - 15 + COUNT ( ( + 8 ) ) THEN CAST ( 15 AS INTEGER ) * + 25 END AS col0 +---- +7654 +NULL query II rowsort SELECT + 39 * - 59 AS col0, 22 @@ -36705,8 +37099,11 @@ SELECT DISTINCT COUNT ( * ) + - 47 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 36 AS col0, 35 AS col0 +---- +35 +36 query II rowsort label-6996 SELECT DISTINCT 45 col1, + 74 - - - NULLIF ( - + 82, - 28 + + - COUNT ( * ) ) AS col2 @@ -37469,8 +37866,12 @@ SELECT ALL - 93 + - COUNT ( DISTINCT CAST ( 51 AS INTEGER ) ) # Datafusion - Expected - 1433 # Datafusion - Expected - 16 # Datafusion - Expected - 2692 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 1 and "Int64\(73\) \+ Int64\(27\) \* Int64\(97\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 39 + - ( - + 17 ) * 82, + 16 AS col0, 73 + + 27 * + 97 * COUNT ( * ) AS col0 +---- +1433 +16 +2692 query I rowsort label-7140 SELECT 51 / ( - 78 ) AS col0 @@ -37725,8 +38126,11 @@ 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\(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\. +query II valuesort SELECT + SUM ( DISTINCT 43 ) + - - COUNT ( * ) AS col2, + 30 * - - 44 AS col2 +---- +1320 +44 query I rowsort SELECT ALL + 54 - 9 AS col0 @@ -37852,8 +38256,11 @@ SELECT + COUNT ( * ) - - - 96 + 36 * - 24 * + 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 0 and "Int64\(\-14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 89 AS col1, - 14 AS col1 +---- +-14 +89 query II rowsort label-7215 SELECT ALL + COUNT ( * ), 40 AS col0 @@ -37993,8 +38400,11 @@ SELECT ALL 92 + + 65 - 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 336487 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \- Int64\(89\) \+ Int64\(79\) \* \(\- \(\- CAST\(Int64\(71\) AS Int32\)\)\) \* Int64\(60\) AS col0" at position 0 and "Int64\(12\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ \(\- Int64\(\-58\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 - 89 + 79 * + + ( - - CAST ( 71 AS INTEGER ) ) * 60 AS col0, + 12 + - - CAST ( NULL AS INTEGER ) + - - 58 AS col0 +---- +336487 +NULL query I rowsort SELECT ALL 69 + - 82 @@ -38304,8 +38714,11 @@ 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\(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\. +query RI valuesort SELECT DISTINCT NULLIF ( - COUNT ( * ), ( + 78 ) / 73 + AVG ( - 21 ) - + MIN ( DISTINCT 78 ) ) AS col0, - 42 AS col0 +---- +-1 +-42 query I rowsort label-7300 SELECT ALL + 7 + - - CAST ( NULL AS INTEGER ) AS col2 @@ -38462,8 +38875,11 @@ 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\(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\. +query II valuesort SELECT CASE - 54 WHEN - 99 / + - 33 THEN 98 + + 80 - - COUNT ( * ) ELSE - COUNT ( + 62 ) + + COUNT ( * ) END AS col0, 57 AS col0 +---- +0 +57 query I rowsort label-7330 SELECT ALL 56 * 29 * - + 89 + ( - 83 ) - - + NULLIF ( 4, - + 92 * 71 + - 84 - + 42 + - 99 + + 39 * + 21 * + + 29 + - - 88 * - - COALESCE ( 7, - 89 * - 36 - + 0 ) + 23 * - CAST ( 97 * - 73 AS INTEGER ) ) * 98 @@ -38676,8 +39092,11 @@ SELECT ALL - COUNT ( * ) - - + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(79\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(88\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) * + 79 + + + COUNT ( * ) AS col2, + 88 * - COUNT ( * ) AS col2 +---- +-88 +80 query I rowsort SELECT ALL - + ( + ( + + 21 ) ) @@ -38803,8 +39222,11 @@ SELECT ALL + 91 + + MAX ( DISTINCT + 39 ) / 19 AS col2, + 9 / + 46 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col2" at position 0 and "Int64\(57\) \- Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 col2, 57 - + 75 AS col2 +---- +-18 +84 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -39051,8 +39473,11 @@ SELECT MAX ( ALL + + 29 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 2519 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(90\), \(\- Int64\(52\)\) \+ CAST\(NULL AS Int32\) / Int64\(\-60\)\) AS col2" at position 0 and "Int64\(\-20\) \+ Int64\(34\) \* \(\- Int64\(\-75\)\) \+ Int64\(\-11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) * NULLIF ( 90, - ( 52 ) + + ( + CAST ( NULL AS INTEGER ) ) / + - 60 ) AS col2, - 20 + + + 34 * - - 75 + + - 11 col2 +---- +2519 +90 query I rowsort SELECT - 73 - - 83 AS col2 @@ -39235,8 +39660,11 @@ SELECT ALL + SUM ( DISTINCT 80 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 462 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \* Int64\(\-14\) \+ max\(DISTINCT Int64\(\-98\)\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 40 * - 14 + MAX ( DISTINCT - 98 ) col2, + 59 AS col2 +---- +462 +59 query I rowsort label-7474 SELECT + 74 / + 27 + - + 14 * + 32 @@ -39262,8 +39690,11 @@ SELECT ALL - COALESCE ( 69, + COUNT ( * ) * - 4 + + 57 - - AVG ( ALL + 51 ) ) / # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \- Int64\(10\) \+ Int64\(90\) AS col2" at position 0 and "Int64\(\-68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 68 - 10 + + ( 90 ) AS col2, - 68 AS col2 +---- +-68 +12 query I rowsort label-7478 SELECT ALL - 75 * + CAST ( NULL AS INTEGER ) + - 72 AS col2 @@ -39392,8 +39823,11 @@ SELECT - - COUNT ( ALL - 80 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(86\) \+ Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, 86 + + + 8 AS col1 +---- +1 +94 query I rowsort label-7503 SELECT ALL 8 * + ( - + CASE - + CAST ( - NULLIF ( 20, + + 30 ) AS INTEGER ) WHEN - 16 THEN + 91 + - 59 END ) - - + 33 * - COUNT ( * ) @@ -39805,8 +40239,11 @@ SELECT 96 * - 73 + + 77 * + 98 * - + 72 AS col0 # 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 col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 AS col2, + 0 AS col2 +---- +0 +86 query I rowsort label-7581 SELECT DISTINCT CAST ( NULL AS INTEGER ) * NULLIF ( - 30, - 7 + - 83 ) @@ -40570,8 +41007,11 @@ SELECT DISTINCT 61 * - 89, COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(48\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + MAX ( DISTINCT 48 ) col2, + ( COUNT ( * ) ) * + COUNT ( * ) AS col2 +---- +-48 +1 query I rowsort SELECT ALL NULLIF ( + 62, + + 38 + + 13 ) * - 50 @@ -41325,8 +41765,11 @@ SELECT 7 * COUNT ( * ) * + 19 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 AS col1, + 5 AS col1 +---- +33 +5 query I rowsort label-7872 SELECT - COUNT ( * ) + + 36 col1 @@ -41527,8 +41970,11 @@ 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\(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\. +query II valuesort SELECT - + 68 + - COALESCE ( 46, + COUNT ( * ) ) / + 43 AS col2, + COUNT ( + 89 ) - - ( + - COUNT ( * ) ) + - ( - COUNT ( * ) ) * + COUNT ( * ) * + + ( - 24 ) - + 34 + 32 AS col2 +---- +-26 +-69 query II rowsort label-7910 SELECT + + 62 * - COUNT ( * ) AS col0, - 35 @@ -41641,8 +42087,11 @@ SELECT COUNT ( * ) * + + 26 - + 80 * 48 * 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(34\)\)\)\) AS col0" at position 0 and "CAST\(CAST\(Int64\(0\) AS Int32\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - - MAX ( 34 ) ) AS col0, CAST ( CAST ( 0 AS INTEGER ) AS INTEGER ) AS col0 +---- +0 +34 query I rowsort label-7931 SELECT ALL + COUNT ( 49 ) col1 @@ -41695,14 +42144,20 @@ SELECT DISTINCT - - SUM ( + 72 ) * - - 91 * 24 + SUM ( DISTINCT 5 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 19 AS col1, + COUNT ( * ) AS col1 +---- +-19 +1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84488 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-41\)\) \* Int64\(33\) \* Int64\(\-60\) \- \(\- Int64\(\-60\)\) \+ \(\- Int64\(56\)\) \* Int64\(58\) AS col1" at position 0 and "Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 41 * + 33 * + - 60 - - - 60 + - + 56 * + 58 AS col1, - 40 AS col1 +---- +-40 +-84488 query I rowsort label-7942 SELECT ALL - COUNT ( DISTINCT 91 ) AS col0 @@ -41957,8 +42412,11 @@ 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\(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\. +query II valuesort 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 +---- +2 +NULL query I rowsort SELECT 83 - 25 AS col1 @@ -42241,8 +42699,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( + 25 ) AS col2, + COUNT ( * ) + + 46 AS col2 +---- +25 +47 query I rowsort label-8046 SELECT + 26 * COUNT ( * ) / - 69 AS col0 @@ -42319,8 +42780,11 @@ SELECT ALL ( + 0 ) * + + 15 - - + 6 - - NULLIF ( - + CAST ( 18 AS INTEGER ), - 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(52\) AS Int32\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( + 52 AS INTEGER ) AS col1, + 19 AS col1 +---- +19 +52 query I rowsort label-8061 SELECT ALL - SUM ( - - 82 ) @@ -42416,8 +42880,11 @@ SELECT 85 + + ( - 20 ) + + ( + - NULLIF ( - + 26, + + 58 ) ) AS col0, COUNT ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(72\) \+ Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, 72 + - 46 col1 +---- +26 +NULL query I rowsort label-8079 SELECT - MAX ( DISTINCT + 84 ) * - + 9 + - 67 + 12 @@ -42480,8 +42947,12 @@ 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\(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\. +query III valuesort SELECT DISTINCT ( + COUNT ( * ) ) + + 74 + - 13 AS col1, + 13 / - - 37, + 77 AS col1 +---- +0 +62 +77 query II rowsort label-8091 SELECT ALL CAST ( + 26 AS INTEGER ) + - - 73 AS col0, + 41 AS col1 @@ -43048,8 +43519,11 @@ SELECT DISTINCT - - 11 * NULLIF ( 43, + + COUNT ( * ) * 18 ) * 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 4612 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col0" at position 0 and "Int64\(74\) \+ Int64\(35\) \+ Int64\(\-57\) \* Int64\(\-79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 93 AS col0, + 74 + + 35 + - 57 * - 79 AS col0 +---- +4612 +93 query II rowsort SELECT + 41 AS col2, ( 5 ) @@ -43065,8 +43539,11 @@ SELECT + ( + 60 ) / 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col0" at position 0 and "Int64\(\-35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 70 AS col0, - 35 AS col0 +---- +-35 +-70 query II rowsort SELECT ALL 25, ( + 10 ) AS col0 @@ -43340,8 +43817,11 @@ SELECT + 97 * - 31 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 26 AS col2, 37 AS col2 +---- +26 +37 query I rowsort label-8254 SELECT ALL + NULLIF ( 63, - + 41 ) / 83 AS col1 @@ -43430,8 +43910,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 32 + - + ( + - 43 ) AS col1, COALESCE ( - + 66, + COUNT ( * ) ) AS col1 +---- +-66 +75 query I rowsort SELECT + 2 * - - 9 col0 @@ -43584,8 +44067,11 @@ SELECT MIN ( 52 ) + + 87 + + NULLIF ( + COUNT ( * ), + 77 - - 45 ) + 9 * + + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24024 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(\-44\) \* Int64\(26\) 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 II valuesort SELECT 21 * - 44 * 26 col0, + COUNT ( - 65 ) AS col0 +---- +-24024 +1 query I rowsort label-8300 SELECT SUM ( DISTINCT - 94 ) + 55 + - - 42 + - - 65 @@ -44877,8 +45363,11 @@ SELECT - 19 * - 5, - 65 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CASE Int64\(65\) WHEN Int64\(\-79\) \+ Int64\(61\) THEN count\(Int64\(1\)\) AS count\(\*\) END \* CASE Int64\(5\) WHEN Int64\(37\) THEN Int64\(2\) END \+ Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + COUNT ( * ) ) col2, + CASE 65 WHEN - 79 + 61 THEN COUNT ( * ) END * CASE + 5 WHEN + 37 THEN + 2 END + + 57 col2 +---- +1 +NULL query I rowsort SELECT 44 * + + 92 + + 59 * + 54 + - 21 @@ -44928,8 +45417,11 @@ SELECT ALL - + COALESCE ( + 89, - - CASE + COUNT ( * ) WHEN - 88 - + + 27 + + 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \- Int64\(98\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 - 98 AS col0, 9 AS col0 +---- +-63 +9 query I rowsort label-8559 SELECT + NULLIF ( + SUM ( 45 ), + 3 * - COUNT ( * ) * 12 ) - + 8 / + 48 AS col2 @@ -45296,8 +45788,11 @@ SELECT + MIN ( + + 68 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5222 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* \(\- Int64\(\-85\)\) \+ nullif\(Int64\(\-37\), Int64\(95\)\) AS col1" at position 0 and "Int64\(97\) \+ \(\- Int64\(24\)\) \+ nullif\(\(\- Int64\(\-52\)\), \(\- nullif\(Int64\(47\), CASE \(\- coalesce\(\(\- nullif\(Int64\(83\), min\(DISTINCT Int64\(\-12\)\)\)\), Int64\(80\)\)\) WHEN min\(Int64\(13\)\) THEN Int64\(88\) \+ Int64\(53\) \* Int64\(74\) ELSE min\(DISTINCT Int64\(35\)\) \+ count\(Int64\(1\)\) AS count\(\*\) END \* CAST\(\(\- CASE Int64\(95\) WHEN Int64\(\-99\) THEN NULL ELSE max\(Int64\(\-60\)\) / Int64\(\-50\) END\) AS Int32\) \+ Int64\(\-99\)\)\) \* Int64\(73\)\) / Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-5222 +72 query I rowsort label-8629 SELECT - 41 * - ( COUNT ( * ) ) @@ -45363,8 +45858,11 @@ SELECT + NULLIF ( COUNT ( * ), ( - 0 ) + - - ( - 11 ) * - ( - 62 ) ) + - ( + ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - -8232 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \* Int64\(84\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 98 * 84 AS col0, 93 AS col0 +---- +-8232 +93 query I rowsort SELECT ALL - CASE - 54 WHEN + 40 THEN + + 20 + - 76 END AS col2 @@ -45599,15 +46097,22 @@ SELECT ALL COUNT ( DISTINCT - 56 ) + ( - COUNT ( * ) ) + + + 28 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 49 AS col1, + 74 AS col1 +---- +49 +74 # Datafusion - Datafusion expected results: # 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 54 AS col0, 8 AS col1, - COUNT ( * ) AS col0 +---- +-1 +54 +8 query I rowsort SELECT 93 + + 73 @@ -45771,8 +46276,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 85 + - 57 AS col1, - COUNT ( * ) * + 77 col1 +---- +-142 +-77 query II rowsort label-8719 SELECT 3 + - - 9 AS col0, - SUM ( ALL - + 26 ) AS col1 @@ -46292,8 +46800,11 @@ SELECT COUNT ( * ) * + 51 * + - 46 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1368 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-38\), CAST\(\(\- Int64\(53\)\) AS Int32\) / Int64\(\-31\)\) \* \(\- \(\- Int64\(36\)\)\) AS col0" at position 0 and "sum\(\(\- Int64\(78\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL NULLIF ( - 38, ( + CAST ( - + 53 AS INTEGER ) ) / - 31 ) * - - ( 36 ) AS col0, + SUM ( ALL - + 78 ) col0 +---- +-1368 +-78 query I rowsort label-8818 SELECT COUNT ( * ) * - 92 AS col2 @@ -46418,8 +46929,11 @@ SELECT ALL - CASE + 81 WHEN - + 27 THEN + + 34 * + + 91 + 18 + - - NULLIF ( ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -1081 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(47\) \* CAST\(Int64\(\-23\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 AS col2, + COUNT ( * ) * + 47 * ( + CAST ( - 23 AS INTEGER ) ) AS col2 +---- +-1081 +28 query II rowsort SELECT DISTINCT - 12, + 42 * 43 + + - 26 + 95 + - 85 AS col0 @@ -46562,8 +47076,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(41\) \* Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 37 * + 82 AS col1, - COUNT ( * ) + + 41 * 20 AS col1 +---- +3034 +819 query I rowsort SELECT - + 31 * - + 62 AS col2 @@ -46939,8 +47456,11 @@ SELECT DISTINCT - COUNT ( * ) + - COUNT ( ALL - + 76 ) + + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3626 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ Int64\(47\) \* Int64\(\-78\) AS col1" at position 0 and "CAST\(Int64\(\-47\) AS Int32\) \+ \(\- count\(Int64\(\-78\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( 40 ) + 47 * - 78 col1, + CAST ( + - 47 AS INTEGER ) + - COUNT ( - 78 ) AS col1 +---- +-3626 +-48 query I rowsort SELECT DISTINCT - 29 + + + 64 * 2 AS col0 @@ -47203,8 +47723,11 @@ SELECT ALL 48 * - 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col1" at position 0 and "Int64\(\-74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 50 AS col1, - 74 AS col1 +---- +-50 +-74 query I rowsort SELECT + 6 * + - 0 AS col2 @@ -47290,8 +47813,11 @@ SELECT ALL COALESCE ( + - 14, 20 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 39 col2, + 6 AS col2 +---- +-39 +6 query I rowsort SELECT + 63 + + - ( + + 95 ) + 72 * + 16 * - 92 @@ -48299,8 +48825,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-60\)\) AS col0" at position 0 and "Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 60 AS col0, - 27 AS col0 +---- +-27 +60 query II rowsort SELECT - 76, ( + + 0 ) * + 53 + + 72 - 74 col2 @@ -48666,8 +49195,11 @@ SELECT DISTINCT 67 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -4486 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \+ Int64\(41\) \+ Int64\(90\) / \(\- Int64\(70\)\) AS col0" at position 0 and "Int64\(2\) \- \(\- count\(Int64\(68\)\)\) \* Int64\(66\) \* Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 + + 41 + 90 / + - ( + 70 ) AS col0, 2 - + - COUNT ( ALL + 68 ) * + 66 * ( - 68 ) col0 +---- +-4486 +74 query I rowsort label-9268 SELECT ALL + 37 / - 61 AS col1 @@ -49750,8 +50282,11 @@ SELECT ALL - 56 / - 89 # 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\(13\) AS col1" at position 0 and "Int64\(\-98\) \+ Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 13 AS col1, - 98 + + 7 AS col1 +---- +-91 +13 query I rowsort label-9480 SELECT + 90 + + - 30 * - CAST ( 5 AS INTEGER ) @@ -50201,8 +50736,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -3700 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "Int64\(50\) \* Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 68 ) AS col2, 50 * - 74 col2 +---- +-3700 +68 query II rowsort label-9567 SELECT + - COALESCE ( + + 4, + 56 ), 26 / 78 AS col1 @@ -50254,8 +50792,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -156 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \- Int64\(79\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 78 - 79 + COUNT ( * ) AS col1, + COUNT ( * ) + - 52 AS col1 +---- +-156 +-51 query II rowsort label-9577 SELECT - - 34 * 85, COUNT ( DISTINCT 14 ) * + 40 AS col0 @@ -50388,8 +50929,11 @@ SELECT + MAX ( - 9 ) * + + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) / Int64\(\-82\) / count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 99 / + - 82 / + COUNT ( * ) + + COUNT ( * ) AS col1, COUNT ( * ) * 30 AS col1 +---- +2 +30 query I rowsort label-9602 SELECT - - 9 * SUM ( DISTINCT + 69 ) * 17 + - + 22 * + 18 @@ -50441,8 +50985,11 @@ SELECT DISTINCT + 19 * - - 68 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 45 AS col1, + 65 col1 +---- +45 +65 query I rowsort label-9612 SELECT ALL 23 * - + SUM ( DISTINCT - 19 ) AS col1 @@ -50960,8 +51507,11 @@ SELECT - COUNT ( CAST ( NULL AS INTEGER ) ) + + 73 + 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col1" at position 0 and "Int64\(\-71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 81 AS col1, - 71 AS col1 +---- +-71 +81 query I rowsort label-9712 SELECT DISTINCT 68 * + NULLIF ( - + 52, + ( 77 ) ) + + - CASE + + 50 WHEN - MIN ( 95 ) THEN - - 46 * + - 89 + - ( 10 ) END col2 @@ -51005,8 +51555,11 @@ SELECT ALL - 83 * - 88 - - 87 * + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 80 * + COUNT ( * ) AS col1, 53 col1 +---- +53 +80 query I rowsort label-9720 SELECT ALL - 8 * - - 37 * - - CASE + CASE - 92 WHEN + 13 + - 48 THEN 14 * + + 3 ELSE - 25 END WHEN - 45 THEN + + COUNT ( * ) + + COUNT ( ALL 21 ) WHEN + 6 THEN COUNT ( ALL COALESCE ( 47, + 69 ) ) END * ( + 2 ) @@ -51162,8 +51715,11 @@ 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\(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\. +query II valuesort 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 +---- +-1 +85001374 query I rowsort label-9750 SELECT 13 * COALESCE ( 20, - 47 / - + 78 + - 79 ) AS col2 @@ -51204,8 +51760,11 @@ 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\(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\. +query II valuesort 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 +---- +16 +NULL query II rowsort SELECT ALL 67 AS col2, + 76 col1 @@ -51763,8 +52322,11 @@ 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\(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\. +query II valuesort SELECT - - 58 - COUNT ( * ) - - 81 AS col1, 53 AS col1 +---- +138 +53 query I rowsort label-9864 SELECT - - 52 * COUNT ( - + 44 ) + - COUNT ( * ) @@ -52030,8 +52592,11 @@ SELECT ALL - ( - ( - + MIN ( ALL - - 55 ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \- Int64\(63\) AS col1" at position 0 and "Int64\(48\) / max\(Int64\(\-7\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 65 - + 63 col1, 48 / MAX ( ALL ( - 7 ) ) AS col1 +---- +-6 +2 query I rowsort label-9915 SELECT ALL + COUNT ( * ) - - - 44 + - 91 AS col2 @@ -52056,8 +52621,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * - + COUNT ( * ) AS col1, 28 + 21 AS col1 +---- +-1 +49 query I rowsort label-9920 SELECT + ( + NULLIF ( + 26, COUNT ( * ) - + 86 ) ) diff --git a/data/sqlite/random/expr/slt_good_109.slt b/data/sqlite/random/expr/slt_good_109.slt index 12509b1..deb8649 100644 --- a/data/sqlite/random/expr/slt_good_109.slt +++ b/data/sqlite/random/expr/slt_good_109.slt @@ -1347,8 +1347,11 @@ SELECT - - 33 AS col1, - ( + - 44 ) + - 73 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 352 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "Int64\(88\) \* Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 58 AS col0, 88 * + + 4 AS col0 +---- +352 +58 query I rowsort label-251 SELECT - + COALESCE ( - 86, + 31 * 66 / + - ( - - COUNT ( * ) ) ) - + 1 @@ -1452,8 +1455,12 @@ SELECT + 31 * COUNT ( 43 ) # Datafusion - Expected - 78 # Datafusion - Expected - 168 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "Int64\(86\) \+ Int64\(49\) \- Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + ( 78 ) AS col2, 86 + + 49 - - 33 AS col2, COUNT ( * ) + - + 89 +---- +-88 +168 +78 query I rowsort SELECT DISTINCT - 6 * + + 29 AS col1 @@ -1463,8 +1470,11 @@ SELECT DISTINCT - 6 * + + 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(84\) AS Int32\) AS col2" at position 0 and "Int64\(\-12\) \+ Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + 84 AS INTEGER ) AS col2, - 12 + + 98 AS col2 +---- +84 +86 query I rowsort SELECT ALL + 85 col0 @@ -2206,8 +2216,11 @@ 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\(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\. +query II valuesort 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 +---- +NULL +NULL query I rowsort SELECT ALL 57 * - 60 @@ -2434,8 +2447,11 @@ SELECT 98 * - COUNT ( * ) * - + COUNT ( DISTINCT 14 ) * - + 83 * 0 * + 49 + 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col1" at position 0 and "Int64\(4\) \+ Int64\(11\) \+ Int64\(49\) \* Int64\(0\) \* Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 72 AS col1, + 4 + 11 + + ( 49 ) * + + 0 * + 94 AS col1 +---- +-72 +15 query I rowsort label-458 SELECT ALL ( - - COUNT ( * ) ) + 40 AS col1 @@ -2495,8 +2511,11 @@ SELECT ALL 52 AS col1, + 96 * + - 79 - 28 * - 20 / 1 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 AS col2, ( + 68 ) AS col2 +---- +68 +70 query II rowsort label-469 SELECT - 54 AS col2, + 80 + ( - COUNT ( * ) ) @@ -2554,8 +2573,12 @@ SELECT + + ( - NULLIF ( - + COUNT ( * ), 11 ) ) + - - 87 # Datafusion - Expected - -305 # Datafusion - Expected - 21 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(5\)\) \- Int64\(\-25\) \* Int64\(\-12\) AS col0" at position 0 and "Int64\(\-40\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + 5 - - 25 * - 12 AS col0, + 21, - 40 AS col0 +---- +-305 +-40 +21 query I rowsort SELECT ALL - + 88 - 73 AS col0 @@ -2734,8 +2757,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- CAST\(\(\- Int64\(\-4\)\) AS Int32\)\) AS Int32\)\) \* Int64\(23\) AS col0" at position 0 and "\(\- count\(Int64\(\-30\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( - + CAST ( - - 4 AS INTEGER ) AS INTEGER ) * + 23 AS col0, - COUNT ( - 30 ) col0 +---- +-1 +92 query I rowsort label-514 SELECT DISTINCT CAST ( COALESCE ( + - 29, - - 80, NULLIF ( - CASE 63 WHEN 14 / + - 97 THEN + COUNT ( * ) / + - 87 END, - - 28 ) + - - 42 ) AS INTEGER ) AS col1 @@ -2930,8 +2956,11 @@ SELECT DISTINCT + 0 / + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5662 # Datafusion - Expected - 1886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \* Int64\(\-69\) \+ Int64\(73\) AS col2" at position 0 and "Int64\(41\) \* Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 * - 69 + + 73 AS col2, ( + + 41 ) * + 46 AS col2 +---- +1886 +5662 query I rowsort SELECT 50 * - + 30 @@ -3143,8 +3172,11 @@ SELECT + 88 + + 45 * - 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, - 35 AS col1 +---- +-35 +1 query I rowsort label-591 SELECT ( - - 32 ) / + - 21 @@ -3202,8 +3234,11 @@ NULL # 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 "Int64\(90\) AS col0" at position 0 and "Int64\(\-4\) \* Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 col0, - 4 * + + 54 AS col0 +---- +-216 +90 query II rowsort label-602 SELECT DISTINCT COUNT ( * ) * 12, - 29 AS col0 @@ -4053,8 +4088,11 @@ SELECT ALL 55, ( + + 88 ) AS col2 # 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 "Int64\(10\) AS col1" at position 0 and "Int64\(51\) / Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 10 AS col1, + 51 / 53 AS col1 +---- +0 +10 query I rowsort label-765 SELECT ( + SUM ( + + 33 ) ) @@ -4488,8 +4526,11 @@ 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\(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\. +query II valuesort SELECT ( + + COALESCE ( - ( - 41 ), + ( - + 95 ) + + - 72 * + + 14, - COUNT ( * ) * + 50 * - + 92 ) ) AS col2, + SUM ( - 82 ) AS col2 +---- +-82 +41 query I rowsort label-848 SELECT 0 / + CAST ( - + 29 AS INTEGER ) + + 79 / - 67 * - - COALESCE ( COUNT ( DISTINCT - 77 ), + - 25 * + 65 + 50 + - COUNT ( * ) + 84 ) + + 73 - + 20 AS col2 @@ -4635,8 +4676,11 @@ SELECT - 46 + - - 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \+ Int64\(75\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 9 + + + 75 AS col1, ( 21 ) AS col1 +---- +21 +66 query I rowsort SELECT - - 67 AS col1 @@ -5038,8 +5082,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 71 col2, COUNT ( * ) + 92 AS col2 +---- +71 +93 query I rowsort label-953 SELECT + COUNT ( * ) * - 18 + 25 AS col0 @@ -5209,14 +5256,20 @@ SELECT - + 58 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -1013 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col2" at position 0 and "Int64\(81\) \+ Int64\(\-65\) \* Int64\(16\) \- Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( 48 ) AS col2, 81 + + - 65 * 16 - ( + + 54 ) AS col2 +---- +-1013 +48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3920 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* Int64\(40\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 98 * + 40 col0, 98 AS col0 +---- +3920 +98 query I rowsort SELECT - + 68 AS col1 @@ -5410,8 +5463,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(45\)\)\) \+ Int64\(28\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - ( + ( 45 ) ) + + 28 AS col0, + CAST ( NULL AS INTEGER ) col0 +---- +73 +NULL query I rowsort label-1025 SELECT - CASE + ( - 26 ) WHEN + CAST ( NULL AS INTEGER ) THEN - 75 * ( - SUM ( ALL CAST ( ( - - 4 ) AS INTEGER ) ) ) * - 34 ELSE 30 + - COALESCE ( 82, - - 69 ) END * - 56 AS col0 @@ -5556,8 +5612,11 @@ SELECT + - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 720 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* Int64\(48\) AS col1" at position 0 and "Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 15 * 48 AS col1, - 13 AS col1 +---- +-13 +720 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -7207,8 +7266,11 @@ SELECT ALL - COALESCE ( - 91, ( + + 16 ) + + MAX ( + 42 ), - - 12 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 0 and "Int64\(10\) \+ Int64\(42\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 col0, 10 + + 42 + + COUNT ( * ) AS col0 +---- +53 +96 query I rowsort SELECT ALL - ( - + 87 ) @@ -7369,8 +7431,11 @@ SELECT 84 - + + 15 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1496 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \* \(\- Int64\(68\)\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 22 * - + 68 AS col1, 66 AS col1 +---- +-1496 +66 query I rowsort SELECT DISTINCT - ( + 93 ) * 66 @@ -8017,8 +8082,11 @@ 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\(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\. +query II valuesort SELECT ALL 84 * - 2 col0, 27 * - 80 + + COUNT ( * ) * COUNT ( * ) + - 5 AS col0 +---- +-168 +-2164 query I rowsort label-1529 SELECT SUM ( ALL CAST ( 92 AS INTEGER ) ) - CASE 62 WHEN - - ( + 79 ) THEN + 21 * + 21 + 41 - - 91 END * + 30 + CAST ( + 92 + + MAX ( ALL + 63 ) / + 56 AS INTEGER ) AS col0 @@ -8194,8 +8262,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( DISTINCT + - 16 ) * - ( + + 54 ) - + MIN ( + 46 ) * - ( - 97 ) AS col0, - 64 + 89 + - COUNT ( * ) + 38 AS col0 +---- +-4408 +62 query I rowsort label-1563 SELECT + 65 + CAST ( - 57 AS INTEGER ) - + 39 @@ -8263,8 +8334,11 @@ SELECT 74 AS col0, 83 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 AS col0, 93 col0 +---- +-92 +93 query I rowsort label-1576 SELECT ALL CAST ( - 69 AS INTEGER ) - - - COUNT ( * ) * 74 AS col1 @@ -8443,8 +8517,11 @@ SELECT DISTINCT 77 * - - 14 + 62 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65184 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(12\), Int64\(88\) \+ Int64\(\-47\)\)\) \* \(\- \(\- Int64\(97\)\)\) \* Int64\(56\) \+ Int64\(3\) / Int64\(\-84\) AS col2" at position 0 and "Int64\(\-36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - NULLIF ( + ( + 12 ), + 88 + - 47 ) * - - ( + 97 ) * + 56 + + 3 / - 84 col2, - 36 AS col2 +---- +-36 +-65184 query I rowsort SELECT DISTINCT ( 22 ) @@ -8609,8 +8686,12 @@ SELECT DISTINCT - COUNT ( - - 57 ) AS col2 # Datafusion - Expected - -61 # Datafusion - Expected - 34 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(34\)\) AS col2" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 61, MIN ( 34 ) AS col2, + COUNT ( * ) AS col2 +---- +-61 +1 +34 query I rowsort label-1642 SELECT ALL + 33 + COUNT ( * ) @@ -8901,8 +8982,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 43 AS col1, + 74 * + - 84 * - + COUNT ( * ) AS col1 +---- +-43 +6216 query I rowsort label-1697 SELECT COUNT ( * ) + + 78 / - 95 + - - 74 - 29 @@ -9146,8 +9230,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 828 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- Int64\(39\)\)\)\) AS col2" at position 0 and "Int64\(9\) \* Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - - ( - + 39 ) ) col2, + ( 9 ) * 92 AS col2 +---- +-39 +828 query I rowsort label-1743 SELECT ALL - CAST ( + + 4 AS INTEGER ) - 78 @@ -9172,8 +9259,11 @@ SELECT DISTINCT 6 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(52\), Int64\(\-3\) \+ \(\- Int64\(\-51\)\)\) AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COALESCE ( 52, - 3 + - ( - 51 ) ) col1, + 8 col1 +---- +52 +8 query I rowsort label-1748 SELECT ALL - COUNT ( * ) * + SUM ( DISTINCT 81 ) + + + 73 @@ -9198,8 +9288,11 @@ SELECT - - 42 * 86 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 3206 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "Int64\(8\) \+ Int64\(\-78\) \* Int64\(\-41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 60 AS col0, 8 + - 78 * - 41 AS col0 +---- +3206 +60 query I rowsort label-1753 SELECT + 85 * - + 50 * + CASE 86 WHEN + CASE 71 WHEN + 21 / COUNT ( * ) + 73 * - - 21 * 3 THEN - NULLIF ( - + COUNT ( * ), 72 ) END THEN + COALESCE ( + - 65, - 86 + 14 ) + - 66 END + 16 @@ -9265,8 +9358,11 @@ SELECT ALL 34 / + + CAST ( + 58 AS INTEGER ) + + 8 * + 44 * + + 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(99\) AS Int32\) AS col2" at position 0 and "Int64\(\-17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + + CAST ( + 99 AS INTEGER ) ) AS col2, - 17 AS col2 +---- +-17 +99 query I rowsort label-1765 SELECT + CASE 10 WHEN - - SUM ( 26 ) THEN NULL WHEN 41 + 17 THEN NULL WHEN + 63 / + 12 + 20 THEN 66 + + 49 * + 37 END @@ -10316,8 +10412,11 @@ SELECT 99, 1 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 84 AS col0, 51 AS col0 +---- +-84 +51 query I rowsort label-1966 SELECT ALL + + ( + + SUM ( + 25 ) ) - - - 41 @@ -10327,8 +10426,11 @@ SELECT ALL + + ( + + SUM ( + 25 ) ) - - - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col1" at position 0 and "Int64\(33\) \+ Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 AS col1, + 33 + - 25 AS col1 +---- +77 +8 query I rowsort SELECT + - 74 AS col1 @@ -10599,8 +10701,11 @@ SELECT DISTINCT 56 + - 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(53\), Int64\(34\) \+ CASE Int64\(55\) WHEN Int64\(74\) \+ Int64\(\-19\) THEN NULL WHEN Int64\(68\) THEN NULL WHEN Int64\(30\) THEN count\(Int64\(14\)\) \* count\(Int64\(1\)\) AS count\(\*\) END \* \(\- CAST\(NULL AS Int32\)\)\)\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-53 +13 query I rowsort SELECT + 43 * - 68 * 46 @@ -10718,8 +10823,11 @@ SELECT 62 + + - 28 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 63 AS col2, - 33 AS col2 +---- +-33 +63 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -10815,8 +10923,12 @@ SELECT + 55 + + + ( ( + ( - - 33 ) ) ) AS col0 # Datafusion - Expected - -28 # Datafusion - Expected - 121 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \- Int64\(\-22\) AS col0" at position 1 and "\(\- max\(\(\- \(\- Int64\(80\)\)\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + + 24 - + 52 col1, + 99 - - 22 AS col0, - MAX ( - + ( - + 80 ) ) AS col0 +---- +-28 +-80 +121 query I rowsort SELECT - - ( + - 60 ) AS col2 @@ -11058,8 +11170,11 @@ SELECT DISTINCT 18 * + SUM ( ALL - CAST ( 96 AS INTEGER ) ) * - 59 + + ( - 77 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 32 col2, + ( - CAST ( NULL AS INTEGER ) ) AS col2 +---- +32 +NULL query I rowsort SELECT + NULLIF ( + + 33, - 42 ) AS col2 @@ -11169,8 +11284,11 @@ SELECT - + 84 + + 0 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 178 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT \(\- \(\- Int64\(86\)\)\)\) / Int64\(59\) \* Int64\(79\) \+ \(\- Int64\(\-99\)\) AS col2" at position 0 and "Int64\(93\) \- Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( DISTINCT + - ( - + 86 ) ) / 59 * + + 79 + - - 99 col2, ( 93 ) - + 50 AS col2 +---- +178 +43 query I rowsort label-2128 SELECT ALL - + ( + SUM ( DISTINCT - 19 ) ) + - COUNT ( * ) AS col2 @@ -11402,8 +11520,11 @@ SELECT ALL + 41 - - + 46 + + + 83 + + 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 59 AS col1, + 59 AS col1 +---- +59 +59 query II rowsort label-2173 SELECT ALL - 78 - - 23 + + 48, + 83 + - + COUNT ( * ) AS col1 @@ -11461,8 +11582,11 @@ 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\(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\. +query II valuesort SELECT 31 + + COUNT ( * ) - + + 59 * - COUNT ( * ) * ( COUNT ( * ) ) + 79 - + 66 AS col1, 30 AS col1 +---- +104 +30 query II rowsort SELECT ALL + 79 * 70 * 49 col2, + 91 @@ -11880,8 +12004,11 @@ SELECT + 27 * - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ Int64\(\-81\) AS col1" at position 0 and "Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 86 + - 81 col1, - 13 AS col1 +---- +-13 +5 query I rowsort SELECT DISTINCT + 69 AS col1 @@ -11941,8 +12068,11 @@ SELECT - 17 * + 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(34\)\)\) AS col2" at position 0 and "sum\(Int64\(61\)\) \+ Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - SUM ( + 34 ) AS col2, SUM ( + 61 ) + + 32 AS col2 +---- +-34 +93 query I rowsort label-2277 SELECT + COUNT ( * ) * + - 61 - - 56 + - 65 + + 68 @@ -12152,8 +12282,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 98 AS col1, + 53 AS col1 +---- +-98 +53 query I rowsort label-2318 SELECT DISTINCT + 40 * - COUNT ( * ) @@ -12329,8 +12462,11 @@ SELECT + 18 * + ( + + 16 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7347 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- Int64\(79\)\), Int64\(39\)\)\) \* Int64\(93\) AS col0" at position 0 and "Int64\(91\) \+ \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(61\) THEN Int64\(\-79\) ELSE NULL END\) \+ Int64\(61\) \- Int64\(\-65\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COALESCE ( - + 79, 39 ) * + 93 col0, 91 + - CASE + + COUNT ( * ) WHEN 61 THEN - 79 ELSE NULL END + + + 61 - - 65 / COUNT ( * ) AS col0 +---- +7347 +NULL query I rowsort SELECT + ( 25 ) AS col1 @@ -12482,8 +12618,11 @@ SELECT DISTINCT - + 7 * + + 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 62 -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\)\) \+ Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 17 col0, COUNT ( 15 ) + 61 AS col0 +---- +17 +62 query I rowsort SELECT DISTINCT - 73 * - - 1 AS col2 @@ -12672,8 +12811,11 @@ SELECT + - CAST ( + + 81 AS INTEGER ) * + 51 + - COUNT ( * ) AS col2 # 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 col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 35 AS col2, + 3 AS col2 +---- +-35 +3 query I rowsort label-2416 SELECT + 11 + COUNT ( * ) AS col1 @@ -13484,8 +13626,11 @@ SELECT 97 AS col0, + COUNT ( * ) * + 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "Int64\(\-61\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 19 AS col0, - 61 / + COUNT ( * ) AS col0 +---- +-61 +19 query I rowsort SELECT 63 + + + 21 col0 @@ -13607,8 +13752,11 @@ SELECT ALL 39 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 AS col0, COUNT ( * ) AS col0 +---- +1 +40 query I rowsort SELECT ALL - ( + ( - - 88 ) ) AS col0 @@ -13823,8 +13971,12 @@ SELECT - ( ( - 63 ) ) + - SUM ( - 10 ) + + - 18 + COUNT ( * ) - - 87 * + COALESC # Datafusion - Expected - 68 # Datafusion - Expected - -7968 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col1" at position 0 and "Int64\(96\) \* \(\- CASE CAST\(NULL AS Int32\) WHEN Int64\(\-23\) THEN Int64\(88\) \+ Int64\(92\) \+ Int64\(39\) \* count\(Int64\(1\)\) AS count\(\*\) ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-83\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-7968 +68 +81 query I rowsort label-2638 SELECT + COUNT ( ALL - 69 ) * - + 64 / + + 57 + - + 89 + - - COUNT ( 85 ) * MIN ( - CAST ( 98 AS INTEGER ) ) AS col1 @@ -13898,8 +14050,11 @@ SELECT 49 AS col2, CAST ( - + 36 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "Int64\(\-8\) \+ \(\- Int64\(51\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 AS col1, - 8 + - + 51 AS col1 +---- +-59 +84 query I rowsort SELECT ALL 28 - 44 col0 @@ -13955,8 +14110,11 @@ SELECT DISTINCT 5 * - NULLIF ( + 65, - 16 ) - - + COUNT ( ALL 66 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "Int64\(12\) \+ Int64\(36\) \+ \(\- Int64\(\-24\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 42 AS col0, + 12 + + 36 + - - 24 AS col0 +---- +42 +72 query I rowsort label-2663 SELECT ALL + ( - 35 ) * + COALESCE ( - COUNT ( * ), - COUNT ( * ), + 81 ) AS col0 @@ -13976,8 +14134,11 @@ SELECT DISTINCT + - NULLIF ( + 35, - CASE - - 67 WHEN + - 44 THEN + COUNT ( 50 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(\-56\)\) \+ Int64\(21\) AS col1" at position 0 and "\(\- Int64\(78\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + SUM ( DISTINCT - 56 ) + 21 AS col1, - ( + 78 ) AS col1 +---- +-35 +-78 query I rowsort label-2667 SELECT - + 18 * - - SUM ( DISTINCT - + 8 ) @@ -14371,8 +14532,11 @@ SELECT + COUNT ( * ) * + 15 * + - 30 + + 85 + - MIN ( + 68 ) + - 44 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* CAST\(\(\- CASE Int64\(\-31\) WHEN Int64\(56\) THEN count\(Int64\(1\)\) AS count\(\*\) END\) AS Int32\) AS col0" at position 0 and "Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) * CAST ( + - CASE - 31 WHEN + 56 THEN + COUNT ( * ) END AS INTEGER ) AS col0, 32 AS col0 +---- +32 +NULL query I rowsort SELECT - 65 + + 65 AS col2 @@ -14963,8 +15127,11 @@ SELECT + ( 2 ) * 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -4802 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "Int64\(49\) \* \(\- Int64\(98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 84 AS col0, 49 * - + 98 AS col0 +---- +-4802 +84 query I rowsort SELECT - NULLIF ( + - 98, + - 52 ) @@ -14994,8 +15161,11 @@ SELECT ALL - - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col2" at position 0 and "Int64\(\-56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 55 AS col2, - 56 AS col2 +---- +-55 +-56 query I rowsort SELECT ALL - 55 col1 @@ -15025,8 +15195,11 @@ SELECT ALL - 59 + + COUNT ( * ) * + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \+ Int64\(12\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 + + 12 AS col0, 90 col0 +---- +90 +96 query I rowsort SELECT 19 * + NULLIF ( 85, - - 42 ) AS col2 @@ -16300,8 +16473,11 @@ SELECT ( - 89 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 100920 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col0" at position 0 and "min\(Int64\(20\)\) \* Int64\(87\) \* Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 54 AS col0, + MIN ( 20 ) * + 87 * + 58 AS col0 +---- +100920 +54 query I rowsort label-3115 SELECT CAST ( - MIN ( ALL + 96 ) AS INTEGER ) - - 96 AS col2 @@ -16632,8 +16808,11 @@ SELECT 67 * 95 * 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \+ \(\- Int64\(87\)\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 46 + - + 87 col1, + 44 AS col1 +---- +-41 +44 query I rowsort label-3178 SELECT ALL ( + - 32 ) / 77 * + - 80 AS col0 @@ -16983,8 +17162,11 @@ SELECT ALL 91, - COUNT ( * ) + - + 32 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(\-83\)\), \(\- Int64\(\-45\)\)\) AS col1" at position 0 and "Int64\(25\) \+ Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COALESCE ( - - 83, - - 45 ) AS col1, + 25 + + - 86 AS col1 +---- +-61 +83 query I rowsort SELECT ALL + - ( - - 38 ) @@ -17119,8 +17301,11 @@ SELECT DISTINCT + 44 - 90 AS col1, NULLIF ( + + 25, - - 90 + ( - COUNT ( * ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 5402700 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(29\) \* Int64\(54\) \* Int64\(69\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 50 * + + COUNT ( * ) * 29 * 54 * + 69 AS col1, CAST ( NULL AS INTEGER ) AS col1 +---- +5402700 +NULL query I rowsort SELECT 79 + 50 @@ -17261,8 +17446,11 @@ SELECT ALL - NULLIF ( + - 20, - ( + 62 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 89 AS col1, + 78 AS col1 +---- +-89 +78 query I rowsort SELECT ALL - 57 * + 69 @@ -17486,8 +17674,11 @@ SELECT ALL - 18 AS col2, 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 col0, 81 AS col0 +---- +81 +87 query I rowsort SELECT + 63 * 6 * + 95 @@ -17845,8 +18036,11 @@ SELECT - 66 - 84, 10 / 84 * - - 2 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2059 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) \* Int64\(\-29\) AS col1" at position 0 and "Int64\(47\) \+ \(\- CASE Int64\(40\) WHEN Int64\(\-81\) / \(\- Int64\(30\)\) \+ Int64\(84\) THEN Int64\(43\) \* min\(DISTINCT Int64\(63\)\) / Int64\(82\) \+ Int64\(94\) \* Int64\(\-9\) END\) \* Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 71 * - 29 col1, 47 + + - CASE 40 WHEN - 81 / - + 30 + 84 THEN 43 * + + MIN ( DISTINCT + 63 ) / + 82 + + 94 * - 9 END * + 85 AS col1 +---- +2059 +NULL query I rowsort SELECT + 10 + - 65 * + 72 * - 32 @@ -17979,8 +18173,11 @@ 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\(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\. +query II valuesort 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 +---- +-66 +NULL query I rowsort SELECT 87 * + 8 + 61 AS col2 @@ -18150,8 +18347,11 @@ SELECT DISTINCT - SUM ( DISTINCT 6 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(79\)\) AS col0" at position 0 and "Int64\(82\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( 79 ) AS col0, 82 + + + COUNT ( * ) col0 +---- +-79 +83 query I rowsort SELECT NULLIF ( - 98, - + 77 ) * - - 44 AS col1 @@ -18406,8 +18606,11 @@ SELECT - COUNT ( * ) * 34 * 82 - + + 31 + ( + 7 ) * - - 49 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col1" at position 0 and "Int64\(73\) \+ Int64\(\-10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 51 AS col1, 73 + - 10 col1 +---- +-51 +63 query I rowsort label-3516 SELECT - COUNT ( * ) + + COUNT ( * ) AS col1 @@ -18463,8 +18666,11 @@ SELECT ALL SUM ( - 25 ) * - 89 + + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col2" at position 0 and "Int64\(\-7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 76 AS col2, - 7 AS col2 +---- +-7 +-76 query I rowsort label-3527 SELECT - ( - - 62 ) / + - 81 AS col2 @@ -18502,8 +18708,11 @@ SELECT - 27 * 92 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 395 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \* \(\- Int64\(79\)\) AS col0" at position 0 and "coalesce\(min\(\(\- Int64\(84\)\)\), \(\- CAST\(NULL AS Int32\)\) / CAST\(NULL AS Int32\) \- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 5 * - + 79 col0, + COALESCE ( MIN ( ALL - + 84 ), - CAST ( NULL AS INTEGER ) / + + CAST ( NULL AS INTEGER ) - COUNT ( * ) ) AS col0 +---- +-84 +395 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -18588,8 +18797,11 @@ SELECT 79 - + + 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 30 AS col1, + 59 AS col1 +---- +30 +59 query I rowsort SELECT ALL + 92 + - 60 AS col0 @@ -18826,8 +19038,11 @@ SELECT ALL + CAST ( + - 56 AS INTEGER ) * 4 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) 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 II valuesort SELECT ALL 88 AS col1, MAX ( ALL + 65 ) AS col1 +---- +65 +88 query II rowsort SELECT - 45, 46 col1 @@ -18938,8 +19153,11 @@ 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\(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\. +query II valuesort SELECT CASE - 35 WHEN - + ( - COUNT ( * ) ) - - 94 * 18 THEN - 35 END AS col0, + 79 * + - ( + MIN ( + 57 ) ) + 2 * - COALESCE ( - - 16, - + COUNT ( * ) ) AS col0 +---- +-4535 +NULL query I rowsort SELECT DISTINCT 63 * + 24 AS col0 @@ -19308,8 +19526,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 / + 8 AS col2, - COUNT ( * ) AS col2 +---- +-1 +3 query I rowsort label-3687 SELECT ALL - COUNT ( + 32 ) @@ -19657,8 +19878,11 @@ SELECT - 96 / - 43 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \- Int64\(\-79\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 9 - - 79 col1, 19 AS col1 +---- +19 +70 query I rowsort SELECT ALL - 77 col0 @@ -19849,8 +20073,11 @@ SELECT + + COUNT ( * ) + + COUNT ( * ) + + - 18 + - + 7 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) / Int64\(91\) \+ Int64\(\-72\) \+ CAST\(NULL AS Int32\) \+ Int64\(\-84\) \* Int64\(68\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(26\)\) AS col0" at position 0 and "Int64\(64\) \- Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 53 / 91 + - 72 + + CAST ( NULL AS INTEGER ) + - 84 * + 68 * - - COUNT ( * ) + - + 26 col0, 64 - + 50 AS col0 +---- +14 +NULL query I rowsort label-3788 SELECT - COUNT ( * ) + - + CAST ( - 20 AS INTEGER ) + + COUNT ( * ) + + - 72 + - 86 @@ -20042,8 +20269,11 @@ SELECT ALL - + 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 145 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ Int64\(89\) AS col1" at position 0 and "coalesce\(Int64\(73\), \(\- max\(Int64\(15\)\)\) \* \(\- Int64\(\-81\)\), Int64\(90\)\) \- Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 56 + + 89 AS col1, COALESCE ( 73, - MAX ( 15 ) * - - 81, 90 ) - 37 AS col1 +---- +145 +36 query I rowsort SELECT ALL - 5 + 17 @@ -20351,8 +20581,11 @@ SELECT + 20 AS col0, 62 # 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 "Int64\(\-42\) / \(\- Int64\(95\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 AS col1, - 42 / - + 95 AS col1 +---- +0 +37 query II rowsort SELECT 42, 33 * - 87 + - - 10 AS col2 @@ -20373,8 +20606,11 @@ SELECT - + ( + 92 ) + - 13 - + 16 / + COALESCE ( COUNT ( * ), - 97, - 20 ) AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 AS col1, - 20 AS col1 +---- +-20 +48 query I rowsort SELECT - - 28 + 5 @@ -20623,8 +20859,11 @@ SELECT 64 / + 35 # 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\(53\) \* CASE Int64\(80\) WHEN Int64\(\-38\) \- Int64\(\-28\) THEN Int64\(\-30\) \* Int64\(56\) ELSE NULL END \- \(\- Int64\(80\)\) \* Int64\(76\) \+ Int64\(\-90\) AS col2" at position 0 and "Int64\(\-46\) \- Int64\(32\) \+ \(\- CASE nullif\(Int64\(88\), Int64\(2\)\) WHEN Int64\(\-44\) THEN Int64\(27\) WHEN \(\- Int64\(\-7\)\) \+ Int64\(\-80\) \- min\(Int64\(80\)\) THEN \(\- CASE Int64\(\-69\) WHEN Int64\(\-19\) \* Int64\(94\) THEN Int64\(14\) \* Int64\(52\) END\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 53 ) * + + CASE + ( + + ( + 80 ) ) WHEN + - 38 - - 28 THEN - 30 * + 56 ELSE NULL END - - + 80 * 76 + - 90 AS col2, - 46 - + 32 + - CASE + NULLIF ( 88, 2 ) WHEN - 44 THEN 27 WHEN - - 7 + - 80 - MIN ( ALL + + 80 ) THEN - CASE + - 69 WHEN - 19 * + 94 THEN 14 * + 52 END END AS col2 +---- +NULL +NULL query I rowsort label-3934 SELECT ALL - 7 * + CAST ( + - CASE + 38 WHEN 68 THEN - + 36 * - 11 ELSE NULL END AS INTEGER ) AS col2 @@ -20838,8 +21077,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 * 33 AS col0, - ( + - COUNT ( * ) ) AS col0 +---- +1 +165 query I rowsort SELECT ALL - 76 * + ( + 88 ) col1 @@ -21315,8 +21557,11 @@ SELECT ALL - 58 + + - 68 / - - 70 * + 46 * 90 * 4 + + + 74 - 47 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT DISTINCT 64 AS col1, - 9 col1 +---- +-9 +64 query I rowsort SELECT ALL - + 73 + + + 97 @@ -21429,8 +21674,11 @@ SELECT ALL - - 34 / 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - -104 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) \+ Int64\(\-17\) AS col1" at position 0 and "Int64\(45\) / \(\- count\(Int64\(82\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 87 + - 17 AS col1, + 45 / - COUNT ( + 82 ) AS col1 +---- +-104 +-45 query I rowsort label-4088 SELECT - 61 + CASE 7 WHEN ( - + ( - + COUNT ( * ) ) ) * - + ( - COUNT ( DISTINCT - - ( - 47 ) ) ) * 42 + + ( + 88 ) THEN NULL WHEN - + COUNT ( * ) THEN NULL WHEN + 42 / + + 77 - + 63 + + - 16 * + 85 - 79 * 41 THEN NULL ELSE + COUNT ( * ) * 42 + + + 43 END + 89 + - - 39 * - - 50 AS col0 @@ -21485,8 +21733,11 @@ SELECT 5 + 23 # 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\(20\) \* Int64\(13\) \+ \(\- avg\(DISTINCT \(\- CAST\(NULL AS Float64\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - 67 AS col1, + 20 * + + 13 + - AVG ( DISTINCT + - CAST ( NULL AS FLOAT8 ) ) AS col1 +---- +-67 +NULL query I rowsort label-4099 SELECT ALL 74 * 31 * + MIN ( 5 ) @@ -21511,8 +21762,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(15\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( - ( - 91 ) ) AS col0, COALESCE ( - + 41, - 38 * - + COUNT ( * ) + 15 ) AS col0 +---- +-41 +91 query II rowsort label-4104 SELECT 68 / - 32 - + 13, + 49 AS col2 @@ -21719,8 +21973,11 @@ SELECT - ( - - COUNT ( * ) ) + + - 92 - + ( 84 ) * - 2 + + - CAST ( COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1827 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \* Int64\(87\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 21 * + 87 AS col2, 21 col2 +---- +-1827 +21 query I rowsort label-4143 SELECT + 14 + + COUNT ( * ) AS col0 @@ -22086,8 +22343,12 @@ SELECT DISTINCT + SUM ( + + 16 ) + + 52 AS col2 # Datafusion - Expected - -62 # Datafusion - Expected - 48 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \+ \(\- Int64\(34\)\) AS col1" at position 0 and "sum\(Int64\(48\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 28 + - + 34 AS col1, SUM ( ALL + + 48 ) AS col1, + 5 * + 95 * + 0 +---- +-62 +0 +48 query II rowsort label-4214 SELECT - 84, + COUNT ( * ) / + ( 81 ) AS col1 @@ -22108,8 +22369,11 @@ SELECT 42 * 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "Int64\(18\) / \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 AS col0, + 18 / - CAST ( NULL AS INTEGER ) AS col0 +---- +27 +NULL query II rowsort label-4218 SELECT ALL + COUNT ( DISTINCT - CAST ( - + 50 AS INTEGER ) ) + + 27, + 90 AS col2 @@ -22711,8 +22975,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(3\) \+ \(\- Int64\(55\)\) \+ Int64\(28\) / Int64\(96\) \* \(\- Int64\(57\)\) AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) + 3 + - ( 55 ) + + 28 / + + 96 * - + 57 AS col2, 1 AS col2 +---- +1 +NULL query I rowsort SELECT - 65 * + 82 * - 50 AS col1 @@ -22834,8 +23101,11 @@ SELECT DISTINCT + 30 * 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 905 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) \+ \(\- Int64\(\-12\)\) \* Int64\(85\) \+ Int64\(27\) \+ Int64\(\-86\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 56 + - - 12 * 85 + 27 + - 86 AS col2, 66 AS col2 +---- +66 +905 query I rowsort label-4356 SELECT - - SUM ( + 65 ) AS col1 @@ -23018,8 +23288,11 @@ SELECT ALL 31 + COUNT ( + 4 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 153 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \+ Int64\(\-26\) \+ Int64\(89\) \- Int64\(\-31\) / \(\- Int64\(\-77\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 90 + - 26 + + 89 - - 31 / - - 77 * COUNT ( * ) AS col1, 63 AS col1 +---- +153 +63 query I rowsort SELECT + 13 * 34 AS col1 @@ -23158,8 +23431,11 @@ SELECT - 79 / + 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2453 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \- CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(34\) \+ \(\- Int64\(\-29\)\) \+ Int64\(\-68\) \* Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 - + CAST ( NULL AS INTEGER ) AS col2, 34 + - - 29 + + - 68 * + 37 col2 +---- +-2453 +NULL query II rowsort label-4418 SELECT + 49 / CAST ( + COUNT ( * ) AS INTEGER ) * + 81 * COUNT ( * ), COUNT ( * ) AS col0 @@ -23572,8 +23848,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 140 # Datafusion - Expected - 297088 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(35\)\) \* Int64\(\-4\) AS col0" at position 0 and "Int64\(90\) \* Int64\(44\) \* Int64\(75\) \+ Int64\(88\) \+ Int64\(\-61\) / \(\- Int64\(\-80\)\) \* Int64\(\-7\) \* Int64\(\-84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 35 * - 4 AS col0, 90 * 44 * 75 + + 88 + + - 61 / - - 80 * - 7 * - 84 AS col0 +---- +140 +297088 query I rowsort SELECT - + NULLIF ( 35, + 31 * 5 ) AS col2 @@ -23781,8 +24060,11 @@ SELECT ALL ( - COALESCE ( + COUNT ( * ), - MIN ( CAST ( NULL AS INTEGER ) ) ) ) # 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 "Int64\(3\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 AS col1, 44 AS col1 +---- +3 +44 query I rowsort label-4538 SELECT - SUM ( - 94 ) AS col1 @@ -24035,8 +24317,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -42240 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \- Int64\(\-17\) AS col2" at position 0 and "Int64\(80\) \* Int64\(\-6\) \* \(\- Int64\(\-88\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 14 - - 17 AS col2, 80 * - 6 * - - 88 col2 +---- +-42240 +31 query I rowsort label-4584 SELECT 86 * + COUNT ( * ) @@ -24177,8 +24462,12 @@ SELECT DISTINCT - 42 / 64 # Datafusion - Expected - 13 # Datafusion - Expected - -57 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(13\)\) AS col2" at position 0 and "Int64\(2\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + MAX ( ALL + 13 ) AS col2, - 57, 2 - + COUNT ( * ) AS col2 +---- +-57 +1 +13 query II rowsort SELECT 85, ( + 60 ) * + - 22 AS col2 @@ -25513,8 +25802,11 @@ SELECT ALL - 80 * 32 + 59 * - 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5168 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* Int64\(\-76\) AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 68 * + - 76 col1, 43 AS col1 +---- +-5168 +43 query I rowsort SELECT ALL 26 + - 2 AS col2 @@ -25662,8 +25954,11 @@ SELECT ALL SUM ( - 15 ) + - - 49 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -105 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \- Int64\(74\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 - 74 AS col1, 64 col1 +---- +-105 +64 query I rowsort SELECT ALL + ( 25 ) @@ -26047,8 +26342,11 @@ SELECT - - 67 + 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col2" at position 0 and "\(\- \(\- CASE \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- CASE Int64\(69\) WHEN Int64\(77\) \+ Int64\(0\) \* Int64\(22\) THEN Int64\(45\) \* count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(79\) THEN NULL END\) \- CASE Int64\(88\) WHEN \(\- CAST\(NULL AS Int32\)\) \+ Int64\(39\) / Int64\(\-64\) THEN \(\- sum\(DISTINCT CAST\(NULL AS Int32\)\)\) ELSE NULL END\)\) WHEN Int64\(\-34\) THEN count\(Int64\(1\)\) AS count\(\*\) END\)\) \+ \(\- CAST\(CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Float64\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-14 +NULL query II rowsort SELECT - + 92 * - 38 AS col0, 42 @@ -26230,8 +26528,11 @@ SELECT DISTINCT 69 + - - CAST ( - - 78 AS INTEGER ) + - CASE 41 WHEN 54 THEN NUL # 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\(52\) / Int64\(21\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 / 21 AS col2, + 30 AS col2 +---- +2 +30 query I rowsort label-5008 SELECT + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col0 @@ -26534,8 +26835,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + 37 AS col1, + 85 + - + 52 AS col1 +---- +33 +38 query I rowsort SELECT ALL 84 + - + 93 @@ -26673,8 +26977,11 @@ SELECT - 46 * - 31 * - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 174 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* nullif\(Int64\(46\), \(\- Int64\(\-50\)\)\) \+ Int64\(36\) AS col2" at position 0 and "Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 3 * NULLIF ( 46, - - 50 ) + 36 col2, + 39 AS col2 +---- +174 +39 query I rowsort label-5092 SELECT ALL + - COALESCE ( MIN ( - + 33 ), - - 68, COALESCE ( - 97, + + 41 ), + 46 ) * - 6 + 1 @@ -27172,8 +27479,11 @@ SELECT ALL - - 88 + + 45 * + - 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(17\) AS Int32\)\) AS col1" at position 0 and "Int64\(\-49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - CAST ( 17 AS INTEGER ) ) AS col1, - 49 AS col1 +---- +-17 +-49 query I rowsort label-5189 SELECT COUNT ( * ) / + CASE + 89 WHEN + CASE - - 97 WHEN - + 9 THEN 69 WHEN 56 + + + 84 THEN NULL ELSE NULL END + - COUNT ( DISTINCT 75 ) THEN + 9 ELSE COUNT ( * ) END / - COUNT ( * ) + + ( + 68 ) @@ -27660,8 +27970,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 36 col1, - 73 AS col1 +---- +-73 +36 query I rowsort label-5282 SELECT ALL - COALESCE ( 29, COUNT ( * ) + - + SUM ( - + 75 ) + + CASE 57 WHEN - 62 THEN - - 59 * + 98 WHEN - 47 THEN NULLIF ( 15, + ( 40 ) ) END ) + - COUNT ( * ) * CASE - 21 WHEN - 78 + - 31 * + 6 THEN + NULLIF ( 25, + NULLIF ( 93, COUNT ( * ) * COUNT ( * ) ) + + COUNT ( * ) ) + + 60 END @@ -27753,8 +28066,11 @@ SELECT DISTINCT 34 * - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 4050 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col0" at position 0 and "Int64\(54\) \* \(\- CAST\(Int64\(\-75\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 50 AS col0, 54 * - CAST ( - 75 AS INTEGER ) col0 +---- +4050 +50 query I rowsort SELECT 59 + 62 @@ -27781,8 +28097,11 @@ SELECT 94, 25 + + + 12 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 AS col2, - CAST ( NULL AS INTEGER ) AS col2 +---- +-48 +NULL query II rowsort SELECT - 99 AS col1, + ( - 4 ) @@ -27809,8 +28128,11 @@ SELECT 0 * - + 79 * 68 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 AS col2, + 7 col2 +---- +7 +80 query I rowsort SELECT ALL + 16 + + 66 AS col1 @@ -27871,8 +28193,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 139 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(Int64\(47\) AS Int32\) \+ Int64\(\-15\) \+ \(\- min\(DISTINCT Int64\(\-1\)\)\) \* \(\- Int64\(\-72\)\) \+ Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, CAST ( 47 AS INTEGER ) + + - 15 + - MIN ( DISTINCT + - 1 ) * - - 72 + 35 AS col0 +---- +1 +139 query I rowsort label-5322 SELECT - 33 / + 50 + + 58 + + - 64 * 8 @@ -27962,8 +28287,12 @@ SELECT - - 36 AS col2, - COALESCE ( - 59, + 95, - 21 + - 9 * - 53 ) / - 54 + - 2 # Datafusion - Expected - -17 # Datafusion - Expected - -7 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col1" at position 0 and "\(\- Int64\(7\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 17 col1, ( - ( + 7 ) ) AS col1, + + 24 +---- +-17 +-7 +24 query I rowsort SELECT ALL - 81 * + 68 @@ -28028,8 +28357,11 @@ SELECT DISTINCT ( + 38 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 5060 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \+ Int64\(\-92\) AS col1" at position 0 and "Int64\(14\) \- Int64\(58\) \* \(\- Int64\(87\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 72 + - 92 col1, + 14 - + + 58 * + - ( 87 ) AS col1 +---- +-20 +5060 query I rowsort SELECT + 54 + 57 @@ -28044,8 +28376,11 @@ SELECT ALL + 54 col2 # 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 "\(\- Int64\(62\)\) AS col2" at position 0 and "Int64\(89\) \+ \(\- Int64\(19\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - ( + 62 ) ) AS col2, 89 + - + 19 AS col2 +---- +-62 +70 query I rowsort SELECT ( - ( 46 ) ) @@ -28095,8 +28430,11 @@ SELECT - - 93 * - NULLIF ( 2, - 50 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3362 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* \(\- Int64\(82\)\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 41 * - + 82 AS col0, + 69 AS col0 +---- +-3362 +69 query I rowsort SELECT ALL + 61 AS col2 @@ -28477,8 +28815,11 @@ SELECT DISTINCT 27 AS col2 # 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\(28\) \- Int64\(69\) AS col0" at position 0 and "Int64\(90\) / Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 - + 69 AS col0, 90 / + 29 col0 +---- +-41 +3 query I rowsort SELECT ALL 29 col0 @@ -28684,8 +29025,11 @@ SELECT ( - MAX ( DISTINCT - ( 4 ) ) ) + 98 - - ( 34 ) * ( + 10 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 76 AS col2, + 31 AS col2 +---- +31 +76 query I rowsort label-5478 SELECT 43 / - + 38 @@ -28935,8 +29279,11 @@ SELECT - 20 AS col2, 32 + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col0" at position 0 and "min\(DISTINCT Int64\(42\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 40 AS col0, MIN ( DISTINCT 42 ) col0 +---- +-40 +42 query II rowsort label-5526 SELECT DISTINCT + + 56 AS col0, + ( + MIN ( + 81 ) ) @@ -29114,8 +29461,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -283 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \* \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \- Int64\(93\) \+ \(\- Int64\(79\)\) \+ Int64\(\-63\) AS col0" at position 0 and "CAST\(NULL AS Float64\) \* Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + + ( - 48 ) * - CAST ( - COUNT ( * ) AS INTEGER ) - 93 + - + 79 + - 63 AS col0, + CAST ( NULL AS FLOAT8 ) * + - 29 AS col0 +---- +-283 +NULL query I rowsort label-5560 SELECT CASE + 75 WHEN + - 22 THEN - - 50 + 73 WHEN - - COUNT ( 21 ) THEN NULL END + - 24 col1 @@ -29201,8 +29551,11 @@ 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\(1\)\) AS count\(\*\)\)\) \+ Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 AS col2, 57 * 49 * ( + 7 ) + - - COUNT ( * ) + + 41 col2 +---- +19593 +40 query I rowsort SELECT DISTINCT + 33 + + 26 + - 24 - + 83 + 62 * - 28 * + 40 AS col1 @@ -29602,8 +29955,11 @@ SELECT + CAST ( COUNT ( * ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 74 AS col2, + 19 AS col2 +---- +19 +74 query I rowsort SELECT + 58 * - + 21 AS col0 @@ -30217,8 +30573,11 @@ SELECT + NULLIF ( + 70, 88 + + CAST ( - - 15 AS INTEGER ) * + MAX ( - 99 ) ) * + # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 8372 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "Int64\(92\) \* Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 AS col1, 92 * + 91 AS col1 +---- +62 +8372 query I rowsort SELECT - ( + - 93 ) AS col0 @@ -30284,8 +30643,11 @@ SELECT ALL - + 98 * + 83 + - MIN ( DISTINCT 23 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 69 AS col1, 91 AS col1 +---- +69 +91 query I rowsort SELECT + + 91 + + 1 AS col1 @@ -30335,8 +30697,11 @@ SELECT 69, 18 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - -3243 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col2" at position 0 and "Int64\(21\) \* Int64\(\-47\) \- Int64\(\-47\) \* Int64\(\-48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 65 AS col2, + 21 * - 47 - - 47 * + - 48 col2 +---- +-3243 +65 query I rowsort SELECT - - 84 + - 26 + - 53 + - - 40 * 93 @@ -30474,8 +30839,11 @@ SELECT DISTINCT 0 * - + 32 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-93\), Int64\(37\) \+ Int64\(67\) \+ Int64\(\-45\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(91\)\) \+ Int64\(52\) AS col0" at position 0 and "\(\- coalesce\(Int64\(99\), Int64\(80\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- coalesce\(Int64\(\-43\), Int64\(12\) \+ Int64\(9\)\)\) \* \(\- Int64\(0\)\) \+ \(\- Int64\(80\)\) \+ Int64\(32\) \+ \(\- CAST\(NULL AS Int32\)\), Int64\(\-60\)\)\) \+ Int64\(14\) \- Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-41 +-43 query I rowsort label-5814 SELECT - - CASE 85 WHEN + + 66 + + 71 THEN CASE - COALESCE ( 19, + + CAST ( NULL AS INTEGER ) * + - 91 / + 9 + - AVG ( ALL + - 75 ) + - - MAX ( - 3 ) * CAST ( + + 9 AS FLOAT8 ) + 69 * + 17, + 44 ) WHEN 49 * + CASE - 55 WHEN 16 / - 49 * - 61 + + - 16 * - + 13 + + - CASE + MIN ( ALL + 83 ) WHEN 13 * + 70 + 76 THEN - 71 WHEN 24 * 1 THEN NULL END THEN NULL WHEN 31 THEN + CAST ( + 74 AS INTEGER ) / - 58 END - COUNT ( * ) * + 92 THEN + 99 ELSE 69 END ELSE 66 END * - 59 @@ -30737,8 +31105,11 @@ SELECT - 16 + - 44 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4006 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(\-96\) \- Int64\(\-26\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 * - 96 - - 26 col0, 92 AS col0 +---- +-4006 +92 query I rowsort label-5864 SELECT + 25 * 54 * + COUNT ( * ) @@ -30847,8 +31218,11 @@ SELECT 87 / + - 11 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col0" at position 0 and "Int64\(11\) \+ \(\- Int64\(80\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 15 col0, 11 + - + 80 AS col0 +---- +-15 +-69 query I rowsort label-5885 SELECT 68 + ( COUNT ( * ) ) @@ -30912,8 +31286,11 @@ SELECT - 20 + + + 96 + - 85 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 38 AS col2, COUNT ( * ) AS col2 +---- +-38 +1 query I rowsort label-5897 SELECT - - 90 / - 66 + - - 14 @@ -30962,8 +31339,12 @@ SELECT ALL + - 64 / COUNT ( * ) # Datafusion - Expected - -79 # Datafusion - Expected - 5 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + - 79 AS col2, 5, + 49 AS col2 +---- +-79 +49 +5 query I rowsort SELECT ALL + 75 col0 @@ -31050,8 +31431,11 @@ SELECT MIN ( DISTINCT - ( - 49 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(DISTINCT Int64\(28\)\)\) \* \(\- count\(Int64\(95\)\)\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(\-83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( DISTINCT 28 ) * - COUNT ( 95 ) + - - CAST ( NULL AS INTEGER ) AS col2, - 83 AS col2 +---- +-83 +NULL query II rowsort SELECT + 24 + - 88 AS col1, + 52 AS col2 @@ -31232,8 +31616,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 + + 53 + + + 68 / + 5 AS col1, - COUNT ( * ) AS col1 +---- +-1 +78 query I rowsort SELECT COALESCE ( + 35, - + 6 + + 55 ) + - 75 @@ -31366,8 +31753,11 @@ SELECT ALL + 11 * SUM ( ALL + 52 ) * 11, - 67 * - 88 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94608 # Datafusion - Expected - -1227 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* Int64\(73\) \* \(\- \(\- Int64\(16\)\)\) AS col1" at position 0 and "Int64\(27\) \+ Int64\(\-22\) \* \(\- Int64\(\-57\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 * + 73 * - - ( + 16 ) AS col1, 27 + - 22 * - - 57 AS col1 +---- +-1227 +94608 query I rowsort SELECT ALL 66 + - - 99 @@ -32230,8 +32620,11 @@ NULL # 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 col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 91 AS col1, 13 AS col1 +---- +13 +91 query I rowsort label-6150 SELECT ALL + + 64 - CAST ( - 89 AS INTEGER ) @@ -32655,8 +33048,11 @@ SELECT DISTINCT - 18 + - 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col0" at position 0 and "\(\- sum\(\(\- Int64\(31\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 AS col0, ( - + SUM ( ALL - + 31 ) ) AS col0 +---- +31 +6 query I rowsort label-6231 SELECT ALL - COALESCE ( - 73, 58, - 76 ) * 27 - - 40 * - - 10 * - + COUNT ( * ) AS col0 @@ -32684,8 +33080,12 @@ 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\(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\. +query III valuesort SELECT 36 AS col0, COUNT ( * ) * + ( + 18 ) AS col2, + 72 * - 74 - - 94 AS col2 +---- +-5234 +18 +36 query I rowsort label-6236 SELECT DISTINCT + CASE 18 WHEN + - 94 THEN - + 97 WHEN + COUNT ( * ) + + 88 THEN NULL END * - NULLIF ( + 43, 19 ) @@ -32841,8 +33241,11 @@ SELECT ALL COUNT ( * ) * + 54 col2 # 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\(44\) / Int64\(26\) AS col2" at position 0 and "Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 / + 26 AS col2, - 16 col2 +---- +-16 +1 query I rowsort label-6265 SELECT NULLIF ( + 8, - COUNT ( * ) ) * - 42 + - 51 @@ -32945,8 +33348,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, + 7 AS col1 +---- +1 +7 query I rowsort label-6285 SELECT ALL + 27 * + 19 * + + COUNT ( * ) - + - COUNT ( + 2 ) col1 @@ -33405,8 +33811,11 @@ SELECT 23 col1, + 25 / + MAX ( + 46 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-58\)\) AS col1" at position 0 and "Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 58 AS col1, - 76 AS col1 +---- +-76 +58 query I rowsort SELECT + ( + - 77 ) AS col2 @@ -33773,8 +34182,12 @@ SELECT ( SUM ( DISTINCT + 88 ) ) # Datafusion - Expected - -5763 # Datafusion - Expected - -189 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* Int64\(\-86\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-21\) \* Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort 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 +---- +-189 +-5763 +NULL query I rowsort SELECT DISTINCT 29 * + + 15 * 83 - + 95 AS col1 @@ -34016,8 +34429,11 @@ 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\(1\)\) AS count\(\*\) / \(\- Int64\(74\)\) \* Int64\(\-86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 43 AS col0, COUNT ( * ) / - + 74 * - 86 AS col0 +---- +-43 +0 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -35331,8 +35747,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \+ Int64\(\-98\) / Int64\(64\) AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 42 + + - 98 / + + 64 AS col1, 39 AS col1 +---- +-43 +39 query II rowsort label-6744 SELECT DISTINCT 86 / - CAST ( NULL AS INTEGER ) + + 67 AS col1, + 21 @@ -35456,8 +35875,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 474012 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) \* Int64\(81\) \* 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 II valuesort SELECT DISTINCT - 76 * + 81 * - 77 col0, - 55 AS col0 +---- +-55 +474012 query II rowsort label-6768 SELECT ALL - COUNT ( * ) * + 17 * 72 AS col0, 56 @@ -35493,8 +35915,11 @@ SELECT ALL - ( 84 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 111 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-5\)\) AS col2" at position 0 and "Int64\(17\) \- min\(Int64\(\-94\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 5 AS col2, + 17 - MIN ( - 94 ) AS col2 +---- +111 +5 query I rowsort SELECT ALL 56 + - - 50 @@ -35581,8 +36006,11 @@ SELECT + 71 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 29 col1, + 13 AS col1 +---- +13 +29 query II rowsort SELECT 31, 15 AS col1 @@ -35873,8 +36301,11 @@ SELECT DISTINCT + COALESCE ( + 46, - 9 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 217 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) / Int64\(36\) AS col2" at position 0 and "Int64\(61\) \+ Int64\(80\) \- \(\- Int64\(76\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 58 / 36 AS col2, 61 + + 80 - - + 76 col2 +---- +1 +217 query II rowsort SELECT - 28 * - - 49 + + + 85, + 43 * + 63 AS col1 @@ -35935,8 +36366,11 @@ SELECT DISTINCT - + 15 + + 60 + + - 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 53 + CAST ( NULL AS INTEGER ) AS col1, - 25 col1 +---- +-25 +NULL query I rowsort label-6858 SELECT + + COUNT ( * ) * 70 * ( - 90 ) + - - SUM ( DISTINCT - 45 ) AS col1 @@ -36579,8 +37013,11 @@ SELECT 97 AS col1, - 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-54\), Int64\(47\) \* \(\- Int64\(24\)\) \* Int64\(2\)\) \+ Int64\(\-25\) / \(\- sum\(\(\- CAST\(NULL AS Int32\)\)\)\) \+ Int64\(74\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( - 54, 47 * - + 24 * + 2 ) + - 25 / - SUM ( + - CAST ( NULL AS INTEGER ) ) + + 74 AS col0, + 77 AS col0 +---- +77 +NULL query I rowsort label-6981 SELECT DISTINCT CAST ( 28 AS INTEGER ) + 44 @@ -36595,8 +37032,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 120 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) \+ Int64\(75\) \+ \(\- CAST\(Int64\(\-59\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 14 + + + 75 + - CAST ( - 59 AS INTEGER ) AS col2, - 51 AS col2 +---- +-51 +120 query I rowsort label-6984 SELECT + COUNT ( * ) + + 32 + - 77 @@ -37238,8 +37678,11 @@ SELECT - 93 + - 7 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - -1596 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col1" at position 0 and "Int64\(\-38\) \* Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 15 ) AS col1, - 38 * + 42 AS col1 +---- +-15 +-1596 query I rowsort SELECT - - 3 / 28 + 4 + + 2 * - CASE 79 WHEN + 7 + - - 53 THEN + 16 + 48 ELSE NULL END @@ -37491,8 +37934,11 @@ SELECT DISTINCT + ( - 38 ), 80 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(34\) \+ Int64\(14\) / count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, 34 + + 14 / + + COUNT ( * ) * + - COUNT ( * ) col0 +---- +1 +20 query I rowsort label-7154 SELECT + CAST ( - - NULLIF ( + 77, + 44 + 25 ) AS INTEGER ) * 69 + + 86 AS col1 @@ -37580,8 +38026,11 @@ SELECT + COUNT ( * ) - - - 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(29\)\) AS col2" at position 0 and "Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 29 AS col2, - 27 AS col2 +---- +-27 +-29 query II rowsort label-7171 SELECT 75, - MIN ( 7 ) AS col1 @@ -37603,8 +38052,11 @@ SELECT ALL SUM ( 54 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(5\)\) AS col2" at position 0 and "\(\- coalesce\(Int64\(94\), \(\- nullif\(\(\- CASE Int64\(\-67\) WHEN Int64\(52\) \+ CASE Int64\(78\) WHEN Int64\(\-80\) / \(\- Int64\(\-66\)\) THEN avg\(\(\- nullif\(\(\- Int64\(19\)\), Int64\(\-20\)\)\)\) WHEN Int64\(54\) THEN Int64\(95\) \* Int64\(83\) ELSE NULL END \+ Int64\(58\) \* Int64\(45\) THEN Int64\(96\) \+ Int64\(83\) WHEN Int64\(96\) THEN NULL ELSE NULL END\), Int64\(\-95\) \- \(\- CASE Int64\(12\) WHEN Int64\(86\) THEN Int64\(\-56\) \* Int64\(19\) ELSE NULL END\) \* Int64\(\-91\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 5 AS col2, - COALESCE ( 94, - NULLIF ( - CASE + - 67 WHEN + 52 + CASE 78 WHEN - 80 / - - 66 THEN AVG ( - NULLIF ( - + 19, - 20 ) ) WHEN 54 THEN + 95 * 83 ELSE NULL END + + 58 * 45 THEN 96 + + 83 WHEN + 96 THEN NULL ELSE NULL END, - 95 - - CASE 12 WHEN 86 THEN - 56 * + 19 ELSE NULL END * - 91 ) ) AS col2 +---- +-5 +-94 query I rowsort SELECT + - 61 + 25 * - 37 col0 @@ -37748,8 +38200,12 @@ SELECT DISTINCT 74 * - ( - COUNT ( * ) ) AS col0 # Datafusion - Expected - 0 # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +0 +1 +NULL query I rowsort SELECT DISTINCT - + 58 AS col2 @@ -37876,8 +38332,11 @@ SELECT 1 * - 14 * - - ( - COUNT ( * ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(10\) \* Int64\(\-5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col0, + 10 * - 5 AS col0 +---- +-50 +1 query I rowsort label-7226 SELECT COUNT ( ALL + 50 ) @@ -38566,8 +39025,11 @@ SELECT + 33 * - 40 * + 44 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 "Int64\(\-60\) / \(\- coalesce\(Int64\(51\), Int64\(55\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( 95 ) AS col0, - 60 / - + COALESCE ( 51, 55 ) AS col0 +---- +1 +95 query II rowsort SELECT - - 58, 30 * + 6 AS col0 @@ -40526,8 +40988,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "Int64\(0\) \* Int64\(12\) \* Int64\(80\) \+ Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 44 AS col2, + 0 * + 12 * + 80 + 74 AS col2 +---- +44 +74 query II rowsort SELECT - 22 + 71 + - + 76 + 96 AS col2, 34 AS col0 @@ -40556,8 +41021,11 @@ SELECT 35 + - + 51 + COUNT ( * ) + - ( + 46 ) * + + 51 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3888 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* Int64\(\-81\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 * + - 81 AS col2, + COUNT ( * ) AS col2 +---- +-3888 +1 query I rowsort label-7738 SELECT ALL 76 * - COUNT ( * ) AS col0 @@ -40781,14 +41249,21 @@ SELECT + 38 + - 62 AS col2 # Datafusion - Expected - 49 # Datafusion - Expected - 22 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col1" at position 0 and "\(\- Int64\(\-95\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 49 AS col1, + 10 / - - COUNT ( * ) + 12, - - 95 AS col1 +---- +22 +49 +95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(\-77\)\), \(\- Int64\(71\)\)\) AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( - - 77, - + 71 ) AS col2, 62 AS col2 +---- +62 +77 query I rowsort SELECT + 65 + - 28 AS col1 @@ -40926,14 +41401,20 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * + + 17 AS col2, MIN ( ALL + 20 ) AS col2 +---- +17 +20 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \+ Int64\(47\) AS col0" at position 0 and "avg\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + 44 + 47 AS col0, AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col0 +---- +91 +NULL query I rowsort SELECT DISTINCT 50 AS col0 @@ -41068,8 +41549,11 @@ SELECT ALL + 57 * + + SUM ( DISTINCT + 27 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 AS col0, 26 AS col0 +---- +26 +26 query I rowsort label-7837 SELECT ALL 27 - + COUNT ( * ) @@ -41322,8 +41806,11 @@ SELECT ALL 23, 34 * + + 69 - 96 / + + 50 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col2" at position 0 and "Int64\(\-26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 35 AS col2, - 26 col2 +---- +-26 +-35 query I rowsort label-7885 SELECT - COUNT ( * ) * - 17 AS col2 @@ -41380,8 +41867,11 @@ SELECT + 70 AS col0, COUNT ( DISTINCT + 66 ) AS 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 "\(\- Int64\(\-3\)\) AS col1" at position 0 and "Int64\(96\) \+ Int64\(\-93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 3 AS col1, + 96 + - 93 AS col1 +---- +3 +3 query I rowsort label-7896 SELECT + MIN ( DISTINCT ( - + 83 ) ) AS col2 @@ -41449,8 +41939,11 @@ SELECT + SUM ( - + 35 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 45 + COUNT ( * ) AS col2, 33 col2 +---- +-44 +33 query I rowsort SELECT - 21 + + 94 * - 69 @@ -41461,14 +41954,21 @@ SELECT - 21 + + 94 * - 69 # Datafusion - Expected - 1 # Datafusion - Expected - 15 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(76\)\)\) \+ Int64\(91\) AS col0" at position 1 and "Int64\(63\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT COUNT ( DISTINCT + 44 ) AS col1, - SUM ( DISTINCT 76 ) + + 91 col0, 63 AS col0 +---- +1 +15 +63 # 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\(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\. +query II valuesort SELECT ALL + CASE - ( - 96 ) WHEN 37 + + + ( - 40 ) * + COUNT ( * ) / - SUM ( DISTINCT - + 10 ) THEN NULL ELSE 24 END AS col0, 75 AS col0 +---- +24 +75 query I rowsort label-7912 SELECT DISTINCT COUNT ( + + 28 ) @@ -41483,8 +41983,11 @@ SELECT DISTINCT - CAST ( 18 AS INTEGER ) * + + NULLIF ( + - COUNT ( DISTINCT - 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) / Int64\(19\) AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 9 / 19 AS col0, 34 AS col0 +---- +0 +34 query I rowsort label-7915 SELECT - CASE WHEN - 7 IS NULL THEN 36 * - 40 * COUNT ( * ) ELSE NULL END * + 69 * + 35 + - 66 @@ -41956,8 +42459,11 @@ SELECT SUM ( - 62 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) \+ Int64\(54\) AS col0" at position 0 and "Int64\(32\) \- Int64\(\-33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - 56 ) + 54 col0, 32 - - 33 AS col0 +---- +-2 +65 query II rowsort label-8007 SELECT DISTINCT + 80 + - COUNT ( + - 94 ) - 0 + COUNT ( * ) * + 58 + + + COUNT ( - + 17 ) - - ( 10 ) + 13, COUNT ( * ) + - 40 AS col2 @@ -42217,8 +42723,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 34 + + + 10 AS col0, - COUNT ( * ) col0 +---- +-1 +44 query I rowsort SELECT ALL - 14 * - 81 - 37 @@ -43119,8 +43628,12 @@ SELECT - 21 - COUNT ( * ) AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 21 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* CAST\(CASE Int64\(\-64\) WHEN Int64\(\-24\) THEN NULL ELSE Int64\(60\) \+ Int64\(31\) END AS Int32\) \* Int64\(68\) \+ Int64\(6\) \+ Int64\(80\) \* \(\- Int64\(38\)\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL CAST ( NULL AS INTEGER ) * CAST ( + CASE - 64 WHEN + - 24 THEN NULL ELSE 60 + 31 END AS INTEGER ) * + 68 + 6 + 80 * - + 38 AS col2, 21 AS col2, - - 72 AS col2 +---- +21 +72 +NULL query I rowsort SELECT - 97 + + 34 @@ -43130,8 +43643,11 @@ SELECT - 97 + + 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 530 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(93\)\) AS col0" at position 0 and "Int64\(53\) \* Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( ALL + 93 ) AS col0, + 53 * + 10 AS col0 +---- +530 +93 query I rowsort label-8232 SELECT - 15 / - 5 @@ -43161,8 +43677,11 @@ SELECT DISTINCT - + 33 + - + COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, + 12 AS col0 +---- +1 +12 query I rowsort label-8238 SELECT 76 * - 28 / - 1 * + - 30 + - 32 - - CAST ( NULL AS INTEGER ) AS col0 @@ -43244,8 +43763,11 @@ SELECT ALL - 37, 79 + - 5 + - 58 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(\-9\) / Int64\(\-2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - CAST ( NULL AS INTEGER ) AS col0, - 9 / - 2 AS col0 +---- +4 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -43325,8 +43847,11 @@ 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\(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\. +query II valuesort SELECT ALL + 49 * - + COUNT ( * ) AS col1, ( + + 62 ) / + 29 + + 91 + + + 41 AS col1 +---- +-49 +134 query I rowsort label-8267 SELECT ALL + 59 + - MIN ( DISTINCT - 21 ) @@ -43421,8 +43946,11 @@ SELECT ALL + + 38 / - 68 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \* \(\- Int64\(1\)\) AS col0" at position 0 and "Int64\(\-96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 88 * - + 1 AS col0, - 96 AS col0 +---- +-96 +88 query I rowsort SELECT DISTINCT - - 26 - 25 + + NULLIF ( - 46, + 31 ) AS col1 @@ -44488,8 +45016,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, 64 AS col1 +---- +-1 +64 query I rowsort label-8494 SELECT ALL + 6 * - COUNT ( * ) AS col1 @@ -45077,8 +45608,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2280 # Datafusion - Expected - -72 -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 "Int64\(\-72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 30 * + 76 col1, - 72 AS col1 +---- +-72 +2280 query I rowsort label-8609 SELECT DISTINCT - 61 - + - COUNT ( * ) @@ -46059,8 +46593,11 @@ SELECT 96 - COALESCE ( + 48, + 72 ), 40 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 53 AS col0, 57 col0 +---- +-53 +57 query I rowsort label-8795 SELECT ALL + NULLIF ( - - CASE - SUM ( 70 ) WHEN - + 83 + - - ( - 24 ) THEN NULL WHEN + COUNT ( * ) THEN NULLIF ( - CAST ( ( + ( + 47 ) ) AS INTEGER ), + 83 * - COUNT ( + 16 ) ) WHEN ( - 50 ) * - 94 THEN NULL ELSE NULL END, - 28 * + MAX ( DISTINCT 0 ) ) AS col2 @@ -46239,8 +46776,11 @@ SELECT ALL - - ( COUNT ( * ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7098 # Datafusion - Expected - 3324181 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* Int64\(78\) AS col1" at position 0 and "Int64\(\-76\) \* Int64\(27\) \* \(\- max\(DISTINCT Int64\(\-45\)\)\) \* CAST\(\(\- Int64\(36\)\) AS Int32\) \+ \(\- coalesce\(Int64\(59\), Int64\(97\) \+ count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\), \(\- min\(Int64\(42\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +3324181 +7098 query I rowsort label-8829 SELECT - COUNT ( * ) + + 8 + - CAST ( NULL AS INTEGER ) / + + 90 * + - 71 * - COUNT ( * ) + - 65 * - 2 AS col2 @@ -46648,8 +47188,11 @@ SELECT DISTINCT + 6 * 57 - 85 + - - 29 * 2 # 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\(coalesce\(Int64\(82\), Int64\(\-76\)\)\)\) AS col1" at position 0 and "Int64\(22\) \+ Int64\(\-52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - COUNT ( ALL COALESCE ( + 82, - 76 ) ) AS col1, 22 + - 52 AS col1 +---- +-1 +-30 query I rowsort SELECT ALL + 71 + - - 34 AS col0 @@ -46745,8 +47288,11 @@ SELECT ALL - 9 * - 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col0" at position 0 and "Int64\(7\) \+ Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 28 AS col0, 7 + + 85 AS col0 +---- +-28 +92 query I rowsort SELECT 0 * - 94 AS col2 @@ -46918,8 +47464,11 @@ SELECT 94 * 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2964 # Datafusion - Expected - 1600 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(38\) AS col1" at position 0 and "\(\- Int64\(\-64\)\) \* Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 78 * 38 AS col1, - ( - 64 ) * + 25 AS col1 +---- +1600 +2964 query I rowsort label-8959 SELECT 64 + - 73 + + - MIN ( 75 ) / - 99 - + + ( 41 ) + - 22 @@ -47155,8 +47704,11 @@ SELECT DISTINCT 71 + + COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) \+ Int64\(48\) AS col0" at position 0 and "Int64\(\-98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 37 + + 48 AS col0, - 98 AS col0 +---- +-98 +11 query I rowsort label-9004 SELECT ALL SUM ( + 25 ) + - 78 AS col0 @@ -47192,8 +47744,11 @@ SELECT + - 15 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -3680 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-1\)\) AS col2" at position 0 and "Int64\(\-46\) \* \(\- Int64\(\-80\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - ( - 1 ) AS col2, - 46 * - - 80 AS col2 +---- +-3680 +1 query I rowsort label-9011 SELECT ALL + MIN ( DISTINCT - + 50 ) * 71 AS col2 @@ -47304,8 +47859,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * + 42 / - + COUNT ( * ) AS col2, - 99 AS col2 +---- +-42 +-99 query I rowsort SELECT ALL 41 + - 96 @@ -47552,8 +48110,11 @@ SELECT + - 5 * + 3 * + 60 + + - 30 - - 53 / + + 68 + 77 * - 10 + + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 630 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* Int64\(70\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 9 * + + 70 AS col1, + 74 AS col1 +---- +630 +74 query I rowsort SELECT + 14 + - - 79 + - 7 AS col0 @@ -47721,8 +48282,12 @@ SELECT ALL - 79 + - + 83 / 53 # Datafusion - Expected - 31 # Datafusion - Expected - NULL # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-35\)\) \* CAST\(NULL AS Float64\) / \(\- \(\- Int64\(30\)\)\) \* \(\- Int64\(36\)\) AS col2" at position 1 and "Int64\(23\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IRI valuesort SELECT DISTINCT + 25 + + + 6, + ( - + ( - 35 ) ) * + CAST ( NULL AS FLOAT8 ) / - - ( + 30 ) * - + 36 AS col2, 23 AS col2 +---- +23 +31 +NULL query I rowsort label-9113 SELECT ALL 72 / + 42 AS col0 @@ -48077,8 +48642,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 308 # Datafusion - Expected - -863 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(52\)\) \- Int64\(45\) \* Int64\(\-8\) AS col2" at position 0 and "Int64\(5\) \* Int64\(38\) \* Int64\(\-5\) \+ \(\- Int64\(\-87\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 52 - 45 * - 8 AS col2, 5 * + 38 * + - 5 + - - 87 AS col2 +---- +-863 +308 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -48317,8 +48885,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 154 # Datafusion - Expected - 38016 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \- Int64\(\-71\) AS col0" at position 0 and "Int64\(54\) \* Int64\(32\) \* Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 83 - + - 71 AS col0, 54 * + 32 * 22 AS col0 +---- +154 +38016 query II rowsort label-9227 SELECT - 71, 57 + - COALESCE ( - 50, - SUM ( ALL - 84 ) * MIN ( ALL - 77 ) ) * 6 + - 29 AS col2 @@ -48487,8 +49058,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 73 AS col0, 94 AS col0 +---- +73 +94 query I rowsort SELECT 97 - - CASE - 74 WHEN - 8 THEN - 19 END @@ -48601,8 +49175,11 @@ SELECT DISTINCT + 76 * 76 + + + 83 + MIN ( + 53 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -403 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* Int64\(\-40\) \+ Int64\(\-82\) \+ Int64\(7\) \+ Int64\(48\) \* Int64\(4\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 13 * ( - 40 ) + - 82 + + 7 + + 48 * + 4 AS col0, COUNT ( * ) col0 +---- +-403 +1 query I rowsort SELECT DISTINCT - + 96 * + 69 - + 29 AS col1 @@ -48753,8 +49330,11 @@ 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\(Int64\(1\)\) AS count\(\*\) END\)\) \* Int64\(\-53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - + 97 ) AS col1, - ( - CASE + 94 WHEN - 36 * 23 + + 58 THEN NULL ELSE + COUNT ( * ) END ) * - 53 col1 +---- +-53 +-97 query I rowsort SELECT ALL COALESCE ( 33, 58, - 56 * 40 ) * + 55 @@ -49243,8 +49823,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 59 AS col0, + COUNT ( * ) AS col0 +---- +1 +59 query I rowsort SELECT - - 44 + - 79 + + 26 @@ -49254,8 +49837,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) / CASE - 86 WHEN + 66 + - 94 * - 45 THEN COUNT ( - 30 ) ELSE NULL END AS col2, + 48 AS col2 +---- +48 +NULL query I rowsort label-9406 SELECT + - COUNT ( * ) * - 12 + - + 14 + + + 91 @@ -49565,8 +50151,12 @@ SELECT + ( - + 7 ) * - 6 # Datafusion - Expected - -51 # Datafusion - Expected - 34 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ \(\- Int64\(51\)\) AS col2" at position 0 and "Int64\(76\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 0 + - + 51 AS col2, - 82 / 71 + - - 35 AS col1, + 76 AS col2 +---- +-51 +34 +76 query I rowsort label-9466 SELECT ALL - + 65 + + 36 / - + 61 AS col2 @@ -49767,8 +50357,11 @@ SELECT COALESCE ( + 77, ( - 42 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 110 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(22\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CASE Int64\(66\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(62\) ELSE Int64\(36\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(15\) THEN Int64\(\-68\) \* \(\- CAST\(\(\- \(\- CASE Int64\(\-25\) WHEN Int64\(\-63\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(84\) WHEN \(\- CAST\(Int64\(33\) AS Int32\)\) \* Int64\(\-80\) THEN NULL END\)\) AS Int32\)\) WHEN Int64\(\-30\) THEN NULL ELSE NULL END END\) \+ Int64\(\-70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +110 +NULL query I rowsort label-9504 SELECT + COUNT ( * ) * - 90 col1 @@ -50188,8 +50781,11 @@ SELECT ALL COALESCE ( - 14, - 50 ) * + ( - 99 ) # 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\) AS col1" at position 0 and "Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 78 AS col1, ( + 25 ) AS col1 +---- +-78 +25 query I rowsort label-9585 SELECT 89 * + - 10 - - COUNT ( * ) + + 44 + + 71 / 3 * + 12 AS col2 @@ -51417,8 +52013,11 @@ 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\(1\)\) AS count\(\*\)\)\), Int64\(\-81\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 74 AS col0, COALESCE ( + 85, - ( + - COUNT ( * ) ), - 81 ) AS col0 +---- +74 +85 query I rowsort SELECT ALL - 40 - + + NULLIF ( + + 84, - 43 ) @@ -51721,8 +52320,11 @@ SELECT 68 * - 71 - - COALESCE ( 64, + 14 / 14 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 7990 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "Int64\(\-94\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \* \(\- Int64\(\-85\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90 AS col0, - 94 * + CAST ( - COUNT ( * ) AS INTEGER ) * - - 85 AS col0 +---- +7990 +90 query I rowsort SELECT - 69 + + 7 AS col0 diff --git a/data/sqlite/random/expr/slt_good_11.slt b/data/sqlite/random/expr/slt_good_11.slt index 553c498..9716e1f 100644 --- a/data/sqlite/random/expr/slt_good_11.slt +++ b/data/sqlite/random/expr/slt_good_11.slt @@ -401,8 +401,11 @@ SELECT ALL + 16 + - + 94 AS col2, 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5509 # Datafusion - Expected - -5415 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) \+ Int64\(\-5\) \* Int64\(\-70\) \* Int64\(16\) AS col2" at position 0 and "Int64\(57\) \* \(\- Int64\(95\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 91 + - 5 * - 70 * 16 col2, + 57 * - + 95 AS col2 +---- +-5415 +5509 query I rowsort label-71 SELECT ALL - 56 + + - COUNT ( - 95 ) AS col1 @@ -444,8 +447,11 @@ SELECT 53 * - 36 + - COUNT ( * ) * - - 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col0" at position 0 and "CAST\(NULL AS Int32\) / Int64\(\-52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 col0, CAST ( NULL AS INTEGER ) / - 52 AS col0 +---- +-58 +NULL query III rowsort SELECT ALL 31, 26 AS col0, - 11 col2 @@ -508,8 +514,11 @@ SELECT ALL + 11 * 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1206 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* Int64\(67\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 * 67 AS col1, 75 AS col1 +---- +1206 +75 query I rowsort SELECT ALL + 2 * - + 58 AS col2 @@ -748,8 +757,11 @@ SELECT ALL 19 * + COUNT ( * ) - - ( - 37 ) + + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(36\) \- Int64\(\-12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, + 36 - - 12 AS col0 +---- +1 +48 query I rowsort SELECT + COALESCE ( + + 74, 57 ) @@ -781,8 +793,11 @@ SELECT - - MAX ( + - 86 ) * - 85 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 0 and "Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 96 AS col0, 32 AS col0 +---- +32 +96 query I rowsort SELECT 7 * 39 - + 71 @@ -1256,8 +1271,11 @@ SELECT COUNT ( * ) / 75 / 45 * - + 84, ( - - 37 ) 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\(69\) AS col2" at position 0 and "Int64\(92\) / Int64\(\-84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 69 AS col2, + 92 / - 84 col2 +---- +-1 +69 query I rowsort label-234 SELECT DISTINCT - + 58 / - 68 - - - 56 + COUNT ( * ) * + CAST ( NULL AS INTEGER ) @@ -1313,8 +1331,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(62\) \+ Int64\(\-79\) \* max\(Int64\(1\)\) \* Int64\(\-35\) AS col2" at position 0 and "Int64\(\-71\) \+ Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) + + + 62 + - 79 * MAX ( 1 ) * - 35 AS col2, - 71 + - 25 AS col2 +---- +-96 +NULL query I rowsort label-244 SELECT DISTINCT - 68 * - ( - + 18 ) + + 12 + - COUNT ( DISTINCT ( + 34 ) ) + - 72 + - 61 / - 47 - COALESCE ( + 4, - 20 + 6 ) * + 80 @@ -1458,8 +1479,11 @@ SELECT - - COALESCE ( - 46, - - 80, + SUM ( + 53 ) * + + 14 / - 92 + + 65 ) * 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ Int64\(\-80\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 93 + + - 80 AS col0, 80 AS col0 +---- +13 +80 query I rowsort SELECT - ( - 19 ) col2 @@ -1605,8 +1629,11 @@ SELECT + NULLIF ( + - 33, + 54 ) / 15 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, - 74 AS col1 +---- +-74 +1 query I rowsort label-300 SELECT - ( CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1 @@ -1740,8 +1767,11 @@ SELECT MAX ( DISTINCT - 78 ) + 48 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) / \(\- Int64\(53\)\) AS col1" at position 0 and "Int64\(96\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 63 / - + 53 AS col1, 96 * CAST ( NULL AS INTEGER ) AS col1 +---- +-1 +NULL query I rowsort label-325 SELECT 3 * - CAST ( NULL AS INTEGER ) @@ -1771,8 +1801,11 @@ SELECT 83 + - 81 + + 55 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 157 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \- Int64\(\-71\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 - + - 71 AS col0, 31 AS col0 +---- +157 +31 query I rowsort label-331 SELECT DISTINCT CASE + + ( ( + 60 ) ) WHEN - 36 THEN COUNT ( * ) * - + 22 * + 47 ELSE NULL END + - 67 AS col1 @@ -1901,8 +1934,11 @@ SELECT DISTINCT + 64 - + - 98 + + - 4 # 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\(\-35\)\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 35 col2, + 42 AS col2 +---- +35 +42 query I rowsort label-356 SELECT + CASE MAX ( DISTINCT - 74 ) WHEN 78 + 3 + CAST ( - ( + 67 ) AS INTEGER ) * + + 68 THEN + - ( + - COUNT ( * ) ) + + - 71 END + + ( + 97 ) AS col1 @@ -1932,8 +1968,11 @@ SELECT - 42 + SUM ( + 14 ) * 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - -55174 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "Int64\(\-9\) \* Int64\(15\) \+ Int64\(\-32\) / Int64\(42\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(\(\- Int64\(8\)\) AS Int32\) \* Int64\(86\) \* Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 81 AS col0, + ( + - 9 ) * 15 + + - 32 / 42 + ( + COUNT ( * ) ) + + CAST ( - + 8 AS INTEGER ) * + 86 * 80 AS col0 +---- +-55174 +81 query I rowsort label-362 SELECT - - COUNT ( ALL + 49 ) - COALESCE ( 45, 5 * + CASE + CAST ( NULL AS INTEGER ) WHEN + AVG ( + 93 ) THEN NULL WHEN - 79 THEN + COUNT ( * ) * - - 26 * + 2 * 45 * + ( - 93 ) / - + 58 + + 84 * - 77 - 65 WHEN + ( + COUNT ( * ) ) * - + 54 + - + 36 THEN - + 85 END + + - CASE - COUNT ( * ) WHEN - 65 + 12 THEN - 83 ELSE - + 57 END, + 89 + 56 + + 13, - - 16 ) AS col2 @@ -1995,8 +2034,11 @@ SELECT + ( - + 92 ) + 3 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3839 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* Int64\(\-65\) \+ Int64\(2\) \+ Int64\(59\) AS col0" at position 0 and "Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 60 * - 65 + 2 + + 59 AS col0, 32 AS col0 +---- +-3839 +32 query I rowsort SELECT ALL + 23 * 21 * ( - 43 ) + + 98 @@ -2052,8 +2094,11 @@ SELECT DISTINCT + MAX ( ALL - + 32 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 AS col1, 31 col1 +---- +31 +90 query I rowsort label-385 SELECT - - 66 / + 31 / - CAST ( NULL AS INTEGER ) * - 50 * + 41 + 82 @@ -2310,8 +2355,11 @@ SELECT DISTINCT - 27 * + - 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- coalesce\(Int64\(51\), Int64\(8\) \* CAST\(NULL AS Int32\)\) / max\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 54 + - + COUNT ( * ) - COALESCE ( 51, + + 8 * CAST ( NULL AS INTEGER ) ) / MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col0, 95 col0 +---- +95 +NULL query I rowsort label-433 SELECT 77 + + 53 + - - COALESCE ( - 28, 41 + - + 74 / + 90 + COUNT ( * ), - + MIN ( - + 11 ) ) AS col0 @@ -2626,8 +2674,11 @@ 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\(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\. +query RI valuesort SELECT - NULLIF ( - 38, - CAST ( + + COALESCE ( + 16, 76 + 28 + COUNT ( * ) ) AS FLOAT8 ) ) AS col0, 41 + + 12 AS col0 +---- +38 +53 query I rowsort SELECT + 88 * + 94 * + 76 AS col2 @@ -2647,8 +2698,11 @@ SELECT + 58 + + ( + ( 26 ) ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "\(\- Int64\(\-64\)\) \+ Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 55 AS col2, - ( + - 64 ) + 23 AS col2 +---- +55 +87 query I rowsort SELECT + 34 + - ( - 81 ) @@ -3657,8 +3711,11 @@ SELECT 93 AS col2, + 21 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col1" at position 0 and "min\(Int64\(\-59\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 AS col1, MIN ( ALL - 59 ) col1 +---- +-59 +28 query I rowsort label-695 SELECT 40 / - 36 AS col2 @@ -3678,8 +3735,11 @@ SELECT 85 * - - 41 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 7 AS col0, 14 AS col0 +---- +14 +7 query II rowsort label-699 SELECT ALL - 27, + SUM ( + 86 ) AS col2 @@ -4503,8 +4563,11 @@ SELECT DISTINCT - ( - 3 ) * - 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 636417 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col1" at position 0 and "Int64\(81\) \* Int64\(81\) \* \(\- Int64\(\-97\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 79 AS col1, + 81 * 81 * - - 97 AS col1 +---- +636417 +79 query I rowsort SELECT DISTINCT - 70 * + ( - 30 ) * + + 1 AS col0 @@ -4592,8 +4655,11 @@ SELECT ALL MIN ( ALL + 20 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col2" at position 0 and "Int64\(\-56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 col2, - 56 AS col2 +---- +-56 +91 query I rowsort SELECT DISTINCT 63 + - - 27 col2 @@ -4670,8 +4736,11 @@ SELECT 48 * + 77 + - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - -819 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col0" at position 0 and "Int64\(\-37\) \+ Int64\(76\) \- Int64\(11\) \* Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 30 AS col0, - 37 + 76 - 11 * + 78 AS col0 +---- +-819 +30 query I rowsort label-891 SELECT ALL - + 64 / + 79 * - 24 + + NULLIF ( 70, - 71 + + COUNT ( * ) ) - NULLIF ( + 46, - COUNT ( * ) ) * + + COUNT ( * ) col2 @@ -4702,8 +4771,11 @@ SELECT DISTINCT + + ( COUNT ( * ) ) AS col1, - 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( 20 ) col0, + 97 AS col0 +---- +20 +97 query II rowsort label-897 SELECT DISTINCT + 86 col0, + 54 / - - 72 col1 @@ -5094,8 +5166,11 @@ SELECT DISTINCT - 0 + - 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) \* Int64\(11\) / Int64\(85\) AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 94 * 11 / 85 AS col0, + 86 AS col0 +---- +-12 +86 query I rowsort label-972 SELECT ALL COALESCE ( - 40, - ( + NULLIF ( - 96, + - 5 + + 99 * - 7 ) ) ) * - + ( COUNT ( * ) ) + - 14 @@ -5570,8 +5645,11 @@ SELECT - 99 - 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(86\)\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 86 col1, 7 AS col1 +---- +-86 +7 query I rowsort SELECT 73 - + 94 @@ -5846,8 +5924,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "max\(DISTINCT CAST\(NULL AS Int32\)\) \+ Int64\(82\) / Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 78 AS col0, MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + 82 / + 40 AS col0 +---- +78 +NULL query I rowsort label-1116 SELECT - 56 * + 28 * - + 90 + + COUNT ( * ) AS col2 @@ -6276,8 +6357,12 @@ SELECT 23 * + - COUNT ( * ) AS col0 # Datafusion - Expected - -10 # Datafusion - Expected - 77 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col0" at position 0 and "Int64\(\-31\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 10 AS col0, 77 AS col1, - 31 col0 +---- +-10 +-31 +77 query I rowsort SELECT ALL 11 * - CASE - 76 WHEN - 38 THEN NULL ELSE - 75 END @@ -6423,8 +6508,12 @@ SELECT + 51 AS col2, 32 AS col1 # Datafusion - Expected - 90 # Datafusion - Expected - -51 # Datafusion - Expected - 142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col1" at position 1 and "\(\- Int64\(\-49\)\) \- Int64\(\-93\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 90 AS col0, - 51 AS col1, - - 49 - - 93 AS col1 +---- +-51 +142 +90 query I rowsort label-1226 SELECT - - 16 * - COUNT ( * ) AS col0 @@ -6835,8 +6924,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-39\) \- Int64\(31\) \* Int64\(\-91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 + + 62 AS col1, COUNT ( * ) + - 39 - 31 * - 91 col1 +---- +2783 +94 query II rowsort label-1304 SELECT - 18 * 20 + - + 36 * - 30 / - CAST ( NULL AS INTEGER ) * 62 / - 3 AS col2, + MAX ( DISTINCT 31 ) col1 @@ -6914,8 +7006,11 @@ SELECT 64 * + ( + 21 ) 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 col0" at position 0 and "Int64\(70\) / Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 69 AS col0, 70 / 72 AS col0 +---- +0 +69 query II rowsort label-1319 SELECT 47 - 9 + - COUNT ( * ) * + NULLIF ( + COUNT ( * ), + CASE + 35 WHEN - - 26 THEN + COUNT ( * ) / COUNT ( * ) + + 27 * - CAST ( NULL AS INTEGER ) * + 20 END ) * + + 10 * 71 + - + 33 + - 48 - + 25 AS col1, - 10 @@ -6961,8 +7056,11 @@ SELECT ALL MAX ( DISTINCT + 34 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \+ Int64\(31\) \- Int64\(\-65\) AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 50 + + 31 - - 65 AS col2, 96 AS col2 +---- +46 +96 query I rowsort label-1328 SELECT - + ( + - COALESCE ( - - 2, - - COUNT ( DISTINCT + 60 ) + 91 + - ( + 19 ) ) ) @@ -7372,8 +7470,11 @@ SELECT ALL - 61 / 7 / + 26 AS col2, - 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1043 # Datafusion - Expected - 5190 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ Int64\(68\) \* \(\- Int64\(\-15\)\) AS col1" at position 0 and "CAST\(Int64\(63\) AS Int32\) \+ Int64\(61\) \- Int64\(\-58\) \* Int64\(86\) \+ \(\- Int64\(\-78\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 23 + 68 * - - 15 AS col1, + CAST ( 63 AS INTEGER ) + + + 61 - - 58 * 86 + - - 78 AS col1 +---- +1043 +5190 query I rowsort SELECT DISTINCT ( 60 ) + + ( 28 ) @@ -7634,8 +7735,11 @@ SELECT COALESCE ( - 55, + 94 * 58 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4590 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* Int64\(54\) AS col0" at position 0 and "Int64\(\-35\) \+ Int64\(38\) \+ Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 85 * + 54 AS col0, - 35 + + 38 + 9 AS col0 +---- +12 +4590 query I rowsort SELECT - 91 * - + 93 @@ -7772,8 +7876,12 @@ SELECT DISTINCT 27 / - ( - CAST ( - 32 AS INTEGER ) ) AS col2 # Datafusion - Expected - 85 # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) / Int64\(\-35\) AS col0" at position 1 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 85, - 24 / + - 35 AS col0, - CAST ( NULL AS INTEGER ) col0 +---- +0 +85 +NULL query I rowsort label-1481 SELECT ALL 80 * SUM ( 97 ) AS col2 @@ -7829,8 +7937,11 @@ SELECT ALL 48 / + + 19 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80975 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) / Int64\(98\) \+ Int64\(41\) \* Int64\(\-25\) \* Int64\(\-79\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 67 / 98 + 41 * + - 25 * - 79 AS col1, 94 AS col1 +---- +80975 +94 query I rowsort SELECT + 22 * 41 * + 77 * - 26 @@ -7905,8 +8016,11 @@ SELECT + 17 + 0 / - 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - -1386 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(93\)\) AS Int32\)\) \- Int64\(0\) AS col0" at position 0 and "Int64\(\-68\) \* Int64\(20\) \+ CAST\(Int64\(\-26\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( - + 93 AS INTEGER ) - + 0 AS col0, - 68 * 20 + CAST ( + - 26 AS INTEGER ) AS col0 +---- +-1386 +93 query I rowsort label-1506 SELECT 82 + - 30 / + 52 @@ -7991,8 +8105,11 @@ SELECT 91 * - 39 * + + 96 * 99, 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2054 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* Int64\(\-79\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 * + - 79 col1, + 96 AS col1 +---- +-2054 +96 query II rowsort label-1522 SELECT + 34, COUNT ( * ) AS col2 @@ -8191,8 +8308,11 @@ SELECT CAST ( MAX ( + 25 ) AS INTEGER ) + - COUNT ( * ) + - - 25 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* Int64\(33\) / \(\- CAST\(NULL AS Int32\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-23\)\) \* Int64\(10\) \+ Int64\(\-40\) / Int64\(44\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 26 * + 33 / - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) + - - 23 * + + 10 + - 40 / 44 col1, 53 AS col1 +---- +53 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -8488,8 +8608,11 @@ SELECT - CAST ( + 68 AS INTEGER ), - 23 * + 66 - + - 1 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(15\) AS col0" at position 0 and "CAST\(nullif\(coalesce\(Int64\(\-74\), Int64\(\-97\) \* Int64\(11\) \* Int64\(73\) \+ \(\- Int64\(\-89\)\)\), Int64\(93\) \+ Int64\(\-24\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 79 + + 15 col0, + CAST ( + + NULLIF ( COALESCE ( - 74, - 97 * 11 * 73 + - - 89 ), + 93 + - 24 ) AS INTEGER ) AS col0 +---- +-74 +94 query I rowsort label-1616 SELECT ALL MIN ( + - 42 ) / + 59 @@ -8710,8 +8833,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col0, COUNT ( * ) - + 98 AS col0 +---- +-1 +-97 query II rowsort label-1658 SELECT DISTINCT - COUNT ( * ) + 95 + - 64 AS col2, + 6 @@ -8789,8 +8915,11 @@ 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\(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\. +query II valuesort SELECT + NULLIF ( + ( COALESCE ( 89, + COUNT ( * ) ) ), + 23 + - ( - + ( 4 ) ) ) AS col2, 50 - + 58 AS col2 +---- +-8 +89 query I rowsort label-1672 SELECT ALL + 19 - ( + MIN ( ALL 30 ) ) + CASE - 9 WHEN + 39 - - 45 + + 65 * + 15 THEN NULL WHEN + ( 45 ) THEN COUNT ( * ) * + - COUNT ( * ) * + ( + - 39 ) * 50 ELSE - 40 END / - - 71 / ( COUNT ( * ) ) AS col1 @@ -8867,8 +8996,11 @@ SELECT - COUNT ( * ) + - 41 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 864 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col0" at position 0 and "Int64\(18\) \* Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 52 AS col0, + 18 * 48 AS col0 +---- +52 +864 query I rowsort label-1687 SELECT + COUNT ( * ) + - - 81 AS col1 @@ -9214,8 +9346,11 @@ SELECT - 16 * 70 + 6 * + NULLIF ( CAST ( + COUNT ( * ) AS INTEGER ), + 83 ) * 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2944 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ Int64\(76\) \* Int64\(38\) AS col0" at position 0 and "count\(DISTINCT Int64\(7\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 + + 76 * 38 AS col0, COUNT ( DISTINCT 7 ) AS col0 +---- +1 +2944 query I rowsort label-1752 SELECT ALL + MAX ( 19 ) - 43 + + COUNT ( * ) + - 19 AS col2 @@ -10175,8 +10310,12 @@ SELECT - 1 + + 88 # Datafusion - Expected - -1 # Datafusion - Expected - 26 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-1\), nullif\(CAST\(NULL AS Int32\), sum\(Int64\(63\)\) \- \(\- CASE Int64\(\-70\) WHEN Int64\(14\) THEN NULL WHEN nullif\(Int64\(14\), Int64\(53\)\) \+ Int64\(54\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(75\) END\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(39\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-97\) \* Int64\(92\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(61\)\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-1 +26 +37 query I rowsort label-1931 SELECT - COUNT ( * ) + - 99 + + MAX ( - 60 ) * ( + - 13 ) + COUNT ( * ) + + 24 * - MIN ( DISTINCT - 18 ) * + + COUNT ( * ) + SUM ( - - 58 ) + 80 + + + 17 @@ -10510,8 +10649,11 @@ SELECT - 36 + - + 97 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col1" at position 0 and "Int64\(\-78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 10 AS col1, - 78 AS col1 +---- +-10 +-78 query I rowsort label-1994 SELECT COALESCE ( - 68, + - 41 + ( - + 95 ), + 73 + 16 * + COUNT ( * ) - 99 * + 25 * - 94 * + 24 * 39 * - ( + + 93 ) + - - 81 + - 79 + 45 + - 28 ) col1 @@ -10526,8 +10668,11 @@ SELECT 68 + + 0 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col1" at position 0 and "\(\- Int64\(85\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 35 AS col1, - ( 85 ) AS col1 +---- +-35 +-85 query I rowsort label-1997 SELECT MIN ( - 93 ) AS col0 @@ -10637,8 +10782,11 @@ SELECT DISTINCT + - MIN ( ALL + - 70 ) + + 59 + - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 184 # Datafusion - Expected - 64234 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \+ Int64\(97\) AS col0" at position 0 and "Int64\(20\) \+ Int64\(\-46\) \+ Int64\(42\) \* Int64\(\-45\) \* \(\- Int64\(34\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 87 + 97 AS col0, 20 + - 46 + 42 * - 45 * - + 34 AS col0 +---- +184 +64234 query I rowsort label-2018 SELECT COUNT ( ALL - - 32 ) @@ -10822,8 +10970,11 @@ SELECT DISTINCT - MIN ( DISTINCT + 28 ) * + 81, ( - 85 ) AS col0 # 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 "Int64\(42\) AS col1" at position 0 and "Int64\(44\) \+ Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 42 AS col1, + 44 + 6 AS col1 +---- +42 +50 query II rowsort SELECT ALL 70, ( + 88 ) AS col1 @@ -10942,8 +11093,11 @@ SELECT DISTINCT 58 / - + CAST ( + 2 AS INTEGER ) + - + 60 AS col2, - 15 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) / Int64\(31\) \* \(\- Int64\(\-84\)\) \+ Int64\(96\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 2 / 31 * - - 84 + + 96 AS col2, 42 AS col2 +---- +42 +96 query I rowsort SELECT DISTINCT 85 * - 82 @@ -11061,8 +11215,11 @@ SELECT ALL - 39 + 21 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - -6555 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col2" at position 0 and "\(\- min\(DISTINCT Int64\(95\)\)\) \* \(\- Int64\(\-69\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 93 AS col2, - MIN ( DISTINCT + 95 ) * - - 69 AS col2 +---- +-6555 +-93 query II rowsort SELECT 24 AS col2, 34 col1 @@ -11635,8 +11792,11 @@ SELECT DISTINCT 38 * + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 70 AS col1, + 91 AS col1 +---- +70 +91 query I rowsort label-2212 SELECT ALL 73 * 54 / 91 @@ -12018,8 +12178,11 @@ 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\(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\. +query II valuesort 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 +---- +2448 +63901 query I rowsort label-2285 SELECT + 96 + CAST ( + - ( + - 46 ) AS INTEGER ) @@ -12065,8 +12228,11 @@ SELECT DISTINCT MAX ( + - 95 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 312 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-58\)\) \- \(\- max\(Int64\(\-30\)\)\) AS col2" at position 0 and "Int64\(78\) \* Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 58 - - MAX ( - 30 ) col2, 78 * 4 AS col2 +---- +28 +312 query I rowsort label-2294 SELECT + NULLIF ( + - 64, - COALESCE ( - 67, - CAST ( NULL AS INTEGER ), 66 * 8 ) * - NULLIF ( 84, - SUM ( ALL - 78 ) ) ) * - CASE 22 + + 28 / + 71 WHEN 0 THEN + 88 / 54 - + CASE COUNT ( * ) + COALESCE ( + 44, - 12 * 38 + - 13 * + 10 ) WHEN COUNT ( * ) THEN + NULLIF ( 1, - 73 ) WHEN + 48 THEN NULL END ELSE - 54 END AS col2 @@ -12215,8 +12381,12 @@ NULL # Datafusion - Expected - -77 # Datafusion - Expected - -69 # Datafusion - Expected - -59 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 77 AS col2, - 69 AS col2, - 21 - + - NULLIF ( - 38, 31 * + 72 ) +---- +-59 +-69 +-77 query I rowsort SELECT ALL 84 - + 0 @@ -12447,8 +12617,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) * 12 col1, + 92 AS col1 +---- +-12 +92 query I rowsort label-2367 SELECT COUNT ( * ) + - ( + 49 ) - 42 AS col1 @@ -12494,8 +12667,11 @@ SELECT ALL - 95 * + 60 + 28 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6150 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* Int64\(75\) AS col0" at position 0 and "max\(Int64\(34\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 * + 75 AS col0, + MAX ( + 34 ) AS col0 +---- +34 +6150 query I rowsort label-2376 SELECT ALL - 84 + ( + - COALESCE ( 69, + 24 ) ) + + - SUM ( DISTINCT 59 ) @@ -12715,8 +12891,11 @@ SELECT ALL 84 AS col0, 73 * - 52 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 4539 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "Int64\(51\) \* Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 32 AS col2, + 51 * + 89 AS col2 +---- +32 +4539 query I rowsort label-2418 SELECT DISTINCT - + 75 * + - 28 / - COUNT ( * ) @@ -12909,8 +13088,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 5985 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col2" at position 0 and "Int64\(95\) \* Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 0 AS col2, 95 * 63 AS col2 +---- +0 +5985 query I rowsort SELECT - 14 * - 26 @@ -13097,8 +13279,11 @@ SELECT ALL + 20 + - ( + 44 ) * + + 40 * - 62 * 71 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 0 and "Int64\(\-45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 AS col1, - 45 col1 +---- +-45 +58 query I rowsort SELECT DISTINCT + 3 + 29 @@ -13325,15 +13510,22 @@ SELECT + COUNT ( * ) + + - 86 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 420 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "Int64\(15\) \* Int64\(4\) \* Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 AS col1, + 15 * + + 4 * 7 AS col1 +---- +420 +78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - -92 # Datafusion - Expected - 960 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- Int64\(\-92\)\), CASE Int64\(69\) WHEN max\(DISTINCT Int64\(18\)\) \+ CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) THEN Int64\(66\) END \+ \(\- Int64\(\-46\)\)\)\) AS col2" at position 1 and "\(\- Int64\(\-10\)\) \- Int64\(\-10\) \* Int64\(95\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-92 +49 +960 query I rowsort SELECT + 91 - - + 74 AS col0 @@ -13369,8 +13561,11 @@ SELECT ALL MIN ( ALL 63 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "Int64\(\-56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 AS col2, - 56 AS col2 +---- +-56 +78 query II rowsort label-2542 SELECT ALL 65, - COUNT ( * ) col0 @@ -13411,8 +13606,11 @@ SELECT CAST ( + 96 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\)" at position 0 and "CAST\(CAST\(NULL AS Int32\) AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ), CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) +---- +NULL +NULL query I rowsort label-2550 SELECT ALL - - 62 / + ( + 44 ) - - COUNT ( * ) @@ -13668,8 +13866,11 @@ SELECT DISTINCT - 75 * + 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 AS col0, 34 AS col0 +---- +17 +34 query I rowsort SELECT 86 - 36 @@ -13684,8 +13885,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * + 49 / - 23 AS col0, - 23 / - 41 * - 67 AS col0 +---- +-2 +0 query II rowsort label-2602 SELECT ALL COUNT ( * ) AS col2, + 68 + + 18 @@ -13907,8 +14111,11 @@ SELECT - 87 - + 28 AS col2, MIN ( ALL + + 39 ) * + - ( + 5 ) # 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 "Int64\(38\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 38 col0, 58 AS col0 +---- +38 +58 query I rowsort SELECT - 44 * - 63 AS col0 @@ -14033,8 +14240,11 @@ SELECT + 66 + + 82 + - + 34 / - 96 + - 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \- Int64\(19\) AS col2" at position 0 and "Int64\(\-6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 - + 19 AS col2, - 6 col2 +---- +-6 +6 query I rowsort SELECT + 42 + 35 @@ -14049,8 +14259,11 @@ SELECT ALL 48 + - 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) \+ \(\- Int64\(35\)\) AS col2" at position 0 and "Int64\(60\) \+ \(\- max\(Int64\(1\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 58 + - + 35 AS col2, + 60 + - MAX ( ALL + 1 ) AS col2 +---- +-93 +59 query I rowsort label-2670 SELECT + NULLIF ( - 64, + COUNT ( * ) ) * - 82 @@ -14172,8 +14385,11 @@ SELECT 86 + 63 + MIN ( DISTINCT + 47 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5622 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \- \(\- Int64\(\-57\)\) \* Int64\(99\) AS col0" at position 0 and "Int64\(\-26\) \+ \(\- Int64\(40\)\) \+ Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 - - - 57 * + 99 col0, - 26 + - + 40 + 69 AS col0 +---- +-5622 +3 query II rowsort label-2692 SELECT 33, - NULLIF ( - + 0, - 92 ) * ( - + COUNT ( * ) ) / - 42 + + 12 AS col0 @@ -14703,8 +14919,11 @@ SELECT ALL - 95 * + + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "\(\- CAST\(NULL AS Float64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT 82 AS col0, - CAST ( NULL AS FLOAT8 ) AS col0 +---- +82 +NULL query II rowsort SELECT ALL 15, 46 AS col2 @@ -14755,8 +14974,11 @@ SELECT 95 / - 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1824 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \+ Int64\(\-13\) \+ \(\- Int64\(17\)\) \+ \(\- Int64\(61\)\) \+ CASE Int64\(\-32\) WHEN Int64\(55\) \* Int64\(0\) \+ \(\- Int64\(59\)\) THEN Int64\(25\) WHEN Int64\(37\) THEN NULL ELSE NULL END \* Int64\(26\) \* Int64\(\-97\) \* Int64\(70\) \* Int64\(36\) AS col1" at position 0 and "Int64\(57\) \* Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 62 + - 13 + - + 17 + - + 61 + + CASE - 32 WHEN 55 * + 0 + - + 59 THEN 25 WHEN + 37 THEN NULL ELSE NULL END * + + 26 * - 97 * 70 * + 36 AS col1, 57 * + 32 AS col1 +---- +1824 +NULL query I rowsort label-2804 SELECT ALL + SUM ( 96 ) + 85 + + 88 + + - 89 * - CAST ( NULL AS INTEGER ) AS col2 @@ -14841,8 +15063,12 @@ SELECT - 30 * - 33 AS col1 # Datafusion - Expected - 2139 # Datafusion - Expected - -20 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col1" at position 1 and "Int64\(28\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 69 * + 31 AS col0, - 20 AS col1, 28 AS col1 +---- +-20 +2139 +28 query I rowsort SELECT 72 + - 80 @@ -14922,8 +15148,11 @@ SELECT DISTINCT 89 AS col1, - CAST ( COUNT ( * ) AS INTEGER ) * + + 77 + 61 * - # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) col0 +---- +-1 +NULL query I rowsort SELECT 30 + + 73 AS col1 @@ -15041,8 +15270,11 @@ SELECT ALL - - 94 * - 71 * 48 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col1" at position 0 and "\(\- min\(\(\- Int64\(66\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 12 AS col1, - MIN ( ALL - + 66 ) AS col1 +---- +12 +66 query I rowsort SELECT ALL 94 * + 81 + - COALESCE ( + - 5, + 48 ) @@ -15554,8 +15786,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 AS col1, COUNT ( * ) + + 73 col1 +---- +31 +74 query I rowsort label-2955 SELECT ALL - + ( + CASE - 37 WHEN + 42 + + 70 * 71 THEN NULL WHEN - 75 * COUNT ( ALL + CAST ( NULL AS FLOAT8 ) ) + - 81 THEN + 41 / - + 5 ELSE NULL END ) AS col1 @@ -15769,8 +16004,11 @@ SELECT ALL - COUNT ( * ) * + 71 col2 # 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\(1\) AS col2" at position 0 and "Int64\(46\) \+ \(\- Int64\(77\)\) \+ Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 1 AS col2, 46 + - + 77 + + 23 AS col2 +---- +-8 +1 query II rowsort label-2996 SELECT DISTINCT - COALESCE ( - COUNT ( * ), - + 73, - - ( 88 ) * + 81 + CAST ( NULL AS INTEGER ) ) * 5, + 10 AS col1 @@ -16040,14 +16278,20 @@ SELECT ALL + 19 * - NULLIF ( - COUNT ( * ), 91 * + 39 + + 27 + + + 52 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - -254 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ Int64\(\-76\) AS col0" at position 0 and "Int64\(31\) \* max\(DISTINCT Int64\(\-79\)\) / sum\(Int64\(11\)\) \* count\(Int64\(80\)\) \+ \(\- CASE Int64\(\-47\) WHEN Int64\(50\) \* Int64\(\-4\) THEN NULL WHEN \(\- CAST\(sum\(\(\- Int64\(54\)\)\) AS Int32\)\) THEN NULL ELSE Int64\(73\) END\) \+ Int64\(\-70\) \+ Int64\(77\) \+ Int64\(35\) \+ Int64\(55\) / Int64\(\-33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 + - 76 AS col0, 31 * MAX ( DISTINCT + - 79 ) / + + SUM ( ALL + 11 ) * COUNT ( ALL 80 ) + - ( CASE - 47 WHEN + 50 * - 4 THEN NULL WHEN - CAST ( SUM ( ALL - + 54 ) AS INTEGER ) THEN NULL ELSE 73 END ) + - 70 + + ( ( + 77 ) ) + + 35 + + + 55 / - 33 AS col0 +---- +-254 +-60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 34884 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- coalesce\(Int64\(28\), Int64\(\-37\)\)\) AS Int32\) / Int64\(42\) AS col0" at position 0 and "Int64\(76\) \* Int64\(\-17\) \* Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - COALESCE ( 28, + - 37 ) AS INTEGER ) / + 42 AS col0, 76 * - 17 * - 27 AS col0 +---- +0 +34884 query I rowsort SELECT 8 + + 37 AS col1 @@ -16334,8 +16578,11 @@ 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\(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\. +query II valuesort SELECT + CASE - COUNT ( * ) WHEN + 89 THEN - + 36 * - 33 * 11 * 96 + - 86 + - 36 END AS col0, - NULLIF ( COUNT ( * ), 73 + + 2 ) AS col0 +---- +-1 +NULL query I rowsort SELECT + 48 * - 12 AS col2 @@ -16646,8 +16893,11 @@ NULL # 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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 19 ) AS col2, 66 AS col2 +---- +-19 +66 query I rowsort SELECT 42 + + 70 * + 66 @@ -16688,8 +16938,11 @@ SELECT 55 AS col2, COALESCE ( - MAX ( - 41 ), + CASE + + ( - 37 ) WHEN + + 94 TH # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \+ \(\- Int64\(10\)\) \- Int64\(\-35\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 74 + - + 10 - + - 35 col2, 89 AS col2 +---- +89 +99 query II rowsort SELECT - 95, 60 * - ( 70 ) AS col1 @@ -16847,8 +17100,11 @@ SELECT - SUM ( ALL + 36 ) # 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 "Int64\(0\) / \(\- Int64\(\-11\)\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 / - - 11 AS col0, 29 AS col0 +---- +0 +29 query I rowsort SELECT 83 * - 83 AS col1 @@ -16943,8 +17199,11 @@ SELECT ALL + - 73 * + - COUNT ( * ) + 43 # 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 "\(\- nullif\(Int64\(40\), Int64\(\-75\) \+ Int64\(12\) \- Int64\(17\) \- \(\- sum\(DISTINCT Int64\(37\)\)\) \+ \(\- Int64\(\-41\)\)\)\) \* Int64\(\-48\) AS col2" at position 0 and "min\(Int64\(11\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( + 40, - 75 + 12 - 17 - + - SUM ( DISTINCT + 37 ) + + - ( + - 41 ) ) * - 48 AS col2, + MIN ( + 11 ) col2 +---- +11 +1920 query I rowsort label-3218 SELECT + + CAST ( NULL AS INTEGER ) + + 95 + + 77 col2 @@ -16954,8 +17213,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(min\(Int64\(83\)\), Int64\(\-30\)\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + COALESCE ( + MIN ( ALL + 83 ), - 30 ) AS col1, 53 AS col1 +---- +53 +83 query I rowsort label-3220 SELECT + - MIN ( + 9 ) * 15 col1 @@ -17033,8 +17295,11 @@ SELECT DISTINCT 73 + - + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(59\) \+ Int64\(\-10\) \+ Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 38 AS col2, - CAST ( NULL AS INTEGER ) * 59 + - 10 + 18 AS col2 +---- +38 +NULL query I rowsort label-3235 SELECT + CAST ( NULL AS INTEGER ) * - 16 AS col2 @@ -17802,8 +18067,11 @@ SELECT DISTINCT + COALESCE ( + + 65, + + 43 ) / - 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1288 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(33\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 * 33 + + COUNT ( * ) AS col1, ( + 33 ) AS col1 +---- +1288 +33 query I rowsort label-3382 SELECT ALL - COUNT ( * ) / 1 AS col2 @@ -17885,8 +18153,11 @@ SELECT ALL 42 + - - 74 * - 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - -153 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col1" at position 0 and "Int64\(63\) \+ Int64\(\-54\) \* Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 61 AS col1, 63 + - 54 * 4 col1 +---- +-153 +61 query I rowsort label-3398 SELECT DISTINCT 77 + + COALESCE ( CASE + 52 WHEN + ( - 22 ) THEN NULL WHEN + 99 THEN COUNT ( * ) END, + 83 ) @@ -17911,8 +18182,11 @@ SELECT 86 / 59 - - 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 856 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* \(\- max\(DISTINCT Int64\(10\)\)\) \+ Int64\(27\) \* \(\- Int64\(\-65\)\) \+ Int64\(21\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 * + - MAX ( DISTINCT 10 ) + + 27 * - - 65 + 21 AS col2, 50 AS col2 +---- +50 +856 query I rowsort SELECT ALL 59 * + 95 AS col2 @@ -18261,8 +18535,11 @@ SELECT - 11 * + + ( + SUM ( ALL - + 41 ) ) * 20 AS col2, + COUNT ( * ) / 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 297 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(count\(\(\- Int64\(15\)\)\), \(\- Int64\(\-21\)\) / Int64\(\-43\)\) \* Int64\(\-63\) \+ nullif\(nullif\(Int64\(74\), Int64\(71\)\), Int64\(53\) \- Int64\(19\)\) \* Int64\(4\) \+ Int64\(68\) \+ Int64\(65\) \+ \(\- Int64\(69\)\) 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 IR valuesort SELECT NULLIF ( COUNT ( ALL ( - + 15 ) ), - - 21 / + - 43 ) * - 63 + + NULLIF ( NULLIF ( + + 74, + + 71 ), + 53 - 19 ) * + + 4 + + 68 + + 65 + - + 69 AS col2, CAST ( NULL AS FLOAT8 ) AS col2 +---- +297 +NULL query I rowsort label-3470 SELECT ALL + - 21 / - ( + 76 ) AS col2 @@ -18288,8 +18565,11 @@ 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\(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\. +query II valuesort SELECT ALL - + COUNT ( * ) * - + 42 AS col1, - MIN ( ALL 36 ) AS col1 +---- +-36 +42 query I rowsort label-3475 SELECT - - ( + SUM ( 71 ) ) @@ -18477,8 +18757,11 @@ SELECT - - COUNT ( DISTINCT - 38 ) + 45 AS col0, - ( + - 25 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "CAST\(avg\(DISTINCT Int64\(0\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 16 AS col2, + CAST ( + ( + AVG ( DISTINCT - 0 ) ) AS INTEGER ) AS col2 +---- +0 +16 query I rowsort label-3509 SELECT DISTINCT - 4 / + 74 @@ -18535,8 +18818,11 @@ SELECT COUNT ( + 34 ) - - 0 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1224 # Datafusion - Expected - -65 -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 "Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 * + 17 AS col0, - 65 AS col0 +---- +-65 +1224 query I rowsort label-3520 SELECT ALL 77 - 71 + CAST ( 11 AS INTEGER ) + - 2 / + - 18 @@ -18551,8 +18837,11 @@ SELECT 62 * + 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8342 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* Int64\(86\) AS col1" at position 0 and "Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 97 * + 86 AS col1, - 5 AS col1 +---- +-5 +8342 query I rowsort label-3523 SELECT + NULLIF ( + 95, + - 83 ) / - + 53 + + 55 @@ -18785,8 +19074,11 @@ SELECT + 32 + + - 74 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 70 AS col0, 39 AS col0 +---- +39 +70 query I rowsort SELECT ALL 2 + 88 + - + 89 @@ -18892,8 +19184,11 @@ SELECT ALL - - 74 * - 26 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\)" at position 0 and "CAST\(NULL AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) +---- +NULL +NULL query II rowsort label-3588 SELECT 5, 79 * + + COUNT ( * ) * 86 AS col0 @@ -19054,8 +19349,11 @@ SELECT ALL 83 * + 84 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \+ Int64\(91\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 42 + 91 AS col0, + 10 AS col0 +---- +10 +49 query I rowsort SELECT + 9 + - 31 @@ -19276,8 +19574,11 @@ SELECT ALL + - 90 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 516 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \* \(\- coalesce\(Int64\(6\), Int64\(9\) \* \(\- nullif\(Int64\(25\), Int64\(28\) \* Int64\(\-33\)\)\) \* \(\- \(\- \(\- Int64\(\-73\)\)\)\) / Int64\(41\)\)\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 86 * + - COALESCE ( 6, + 9 * - ( + NULLIF ( 25, 28 * - 33 ) ) * + - ( - ( - - 73 ) ) / 41 ) AS col1, 38 AS col1 +---- +38 +516 query I rowsort SELECT ALL 26 + + 37 @@ -20442,8 +20743,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 259840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- Int64\(\-99\)\) AS col0" at position 0 and "Int64\(58\) \* CAST\(Int64\(70\) AS Int32\) \* Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + CAST ( NULL AS INTEGER ) * - - 99 AS col0, + 58 * CAST ( + 70 AS INTEGER ) * + 64 AS col0 +---- +259840 +NULL query II rowsort SELECT - + 14 * 91 AS col0, + 26 AS col1 @@ -20701,8 +21005,11 @@ SELECT 9 - - CAST ( - 86 AS INTEGER ) * + 18 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 78 AS col0, CAST ( NULL AS INTEGER ) AS col0 +---- +78 +NULL query I rowsort SELECT ALL - 53 * + - 46 AS col2 @@ -21664,8 +21971,11 @@ SELECT DISTINCT + COUNT ( * ) AS col1, 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 939 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) AS col0" at position 0 and "Int64\(17\) \* Int64\(\-30\) \+ Int64\(23\) \* Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 AS col0, 17 * - 30 + 23 * 63 col0 +---- +-3 +939 query I rowsort label-4117 SELECT ALL - 92 * + COUNT ( * ) + - - 27 + + 96 @@ -21949,8 +22259,11 @@ SELECT ALL - 49, - 53 AS col2 # 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 "Int64\(98\) AS col2" at position 0 and "Int64\(\-21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 98 AS col2, - 21 AS col2 +---- +-21 +98 query I rowsort SELECT DISTINCT + 79 + 54 @@ -22078,8 +22391,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 * + CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * 86 AS col1 +---- +86 +NULL query II rowsort label-4196 SELECT ALL 47 / + 24 col2, - 99 @@ -22279,8 +22595,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 55 AS col1, 39 AS col1 +---- +39 +55 query I rowsort label-4234 SELECT ( - 26 ) * + COUNT ( * ) + - COALESCE ( + 51, 35 ) AS col2 @@ -23009,8 +23328,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col2, - 82 AS col2 +---- +-1 +-82 query I rowsort label-4372 SELECT + 64 * - COUNT ( * ) * - COUNT ( * ) * - 58 + 56 @@ -23180,8 +23502,11 @@ SELECT + COALESCE ( - 88, 69 ) # 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\(0\) AS col2" at position 0 and "Int64\(\-73\) \+ \(\- Int64\(37\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 AS col2, - 73 + - + 37 col2 +---- +-110 +0 query I rowsort label-4405 SELECT ALL + 61 * - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 @@ -23507,8 +23832,11 @@ SELECT ALL + 61 * - 78 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4689 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE CAST\(NULL AS Int32\) WHEN \(\- CAST\(Int64\(\-13\) AS Float64\)\) \+ Int64\(\-79\) \* Int64\(28\) \+ Int64\(91\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) THEN \(\- Int64\(16\)\) WHEN Int64\(\-45\) THEN NULL ELSE \(\- CAST\(NULL AS Int32\)\) END\) AS col2" at position 0 and "Int64\(41\) \* Int64\(24\) \+ Int64\(97\) \+ Int64\(86\) \* Int64\(42\) \+ CAST\(Int64\(\-8\) AS Int32\) \- Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +4689 +NULL query II rowsort label-4467 SELECT 50 AS col1, CASE + 77 WHEN - ( 43 ) * - - 51 + - 21 * COUNT ( * ) * + 69 THEN 0 / + CASE WHEN ( NULL ) <= NULL THEN NULL ELSE 90 END END + - + CAST ( NULL AS INTEGER ) @@ -24318,8 +24646,11 @@ NULL # 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\(\-71\) \+ Int64\(94\) AS col1" at position 0 and "Int64\(40\) / Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 71 + 94 AS col1, 40 / + 35 AS col1 +---- +1 +23 query II rowsort label-4621 SELECT - 4 + - 74 - - 51 * + ( + 47 ) * - 22 + 57 AS col1, - CAST ( NULL AS INTEGER ) @@ -24572,8 +24903,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + + 38 col0, 53 col0 +---- +39 +53 query I rowsort label-4669 SELECT DISTINCT COUNT ( * ) / + 78 * - COUNT ( DISTINCT + 90 ) @@ -24666,8 +25000,11 @@ SELECT - + COUNT ( * ) * + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(21\)\) \+ Int64\(60\) AS col0" at position 0 and "Int64\(\-95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 21 + + + 60 AS col0, - 95 col0 +---- +-95 +39 query I rowsort SELECT ALL + 88 + - 22 @@ -25001,8 +25338,11 @@ SELECT ALL 90 AS col2, 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\)" at position 0 and "Int64\(92\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 92, 92 +---- +92 +92 query I rowsort label-4747 SELECT 23 + - COUNT ( * ) AS col1 @@ -25138,8 +25478,12 @@ SELECT 48 * 21 # Datafusion - Expected - -5775 # Datafusion - Expected - -1368 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(72\) AS Int32\) \* Int64\(\-19\) AS col0" at position 1 and "Int64\(85\) \+ \(\- Int64\(94\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 77 * 75 AS col2, CAST ( + 72 AS INTEGER ) * - 19 AS col0, 85 + - + 94 AS col0 +---- +-1368 +-5775 +-9 query I rowsort label-4772 SELECT ALL + 23 + + 9 + + 36 * COUNT ( + - 71 ) + + 14 @@ -25195,8 +25539,11 @@ SELECT - COALESCE ( 72, CASE CASE - - COUNT ( * ) WHEN + 59 THEN - 89 - - 90 WHE # Datafusion - Datafusion expected results: # Datafusion - Expected - 208 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ Int64\(93\) \+ Int64\(77\) \+ Int64\(\-2\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 + 93 + + ( 77 ) + - 2 AS col0, + 9 AS col0 +---- +208 +9 query I rowsort label-4783 SELECT + 11 * MAX ( DISTINCT 78 ) @@ -25500,8 +25847,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) + + COUNT ( ALL 73 ) AS col1, 61 col1 +---- +2 +61 query II rowsort label-4840 SELECT - 51, COUNT ( * ) AS col0 @@ -25517,8 +25867,11 @@ 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\(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\. +query II valuesort 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 +---- +-27 +23 query I rowsort label-4843 SELECT DISTINCT 66 + 24 + - 47 + 57 / COUNT ( * ) AS col1 @@ -25785,8 +26138,11 @@ SELECT 84 * - 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 2835 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col1" at position 0 and "Int64\(63\) \* \(\- \(\- Int64\(45\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 79 AS col1, 63 * - - ( ( + 45 ) ) AS col1 +---- +2835 +79 query I rowsort label-4894 SELECT DISTINCT + NULLIF ( - + CAST ( - + 67 AS INTEGER ), MAX ( - 58 ) * 83 + - - COUNT ( * ) ) / + CASE COUNT ( * ) WHEN - 89 * + MIN ( 39 ) + + 95 THEN - 3 / - 3 * 69 + + - 4 WHEN + COUNT ( * ) / - 66 * - - ( - NULLIF ( CAST ( NULL AS FLOAT8 ), + 68 ) ) + - - 71 THEN 4 / + + ( COUNT ( * ) ) ELSE NULL END AS col2 @@ -25937,8 +26293,11 @@ 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\(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\. +query II valuesort SELECT ( + 57 ) * - 52 * - COUNT ( * ) * - SUM ( + + 78 ) + 49 AS col0, ( 64 ) AS col0 +---- +-231143 +64 query II rowsort label-4922 SELECT + 62, - CAST ( - 95 AS INTEGER ) AS col1 @@ -26018,8 +26377,11 @@ SELECT ALL + 73 * - SUM ( ALL - 67 ) AS col0, - 10 * - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* Int64\(\-96\) AS col1" at position 0 and "CAST\(\(\- nullif\(Int64\(\-14\), Int64\(33\)\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 * - 96 AS col1, + CAST ( - + NULLIF ( - 14, 33 ) AS INTEGER ) AS col1 +---- +0 +14 query I rowsort SELECT DISTINCT 6 + - + 97 AS col0 @@ -26081,8 +26443,11 @@ SELECT - 15 * - - NULLIF ( - - 51, 1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 1500750 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col2" at position 0 and "Int64\(69\) \* Int64\(\-50\) \* \(\- Int64\(5\)\) \* Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 5 ) AS col2, 69 * - 50 * - + 5 * + 87 col2 +---- +1500750 +5 query II rowsort label-4949 SELECT DISTINCT - + COUNT ( ALL + 1 ) * 52 AS col1, 89 + + 20 @@ -26167,8 +26532,11 @@ SELECT DISTINCT 77 * 20 + COUNT ( * ) * + COUNT ( * ) + 1 + + - 18 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 "Int64\(\-1\) AS col1" at position 0 and "Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 1 AS col1, 56 AS col1 +---- +-1 +56 query I rowsort SELECT + 77 * + ( + 22 ) * - - 50 AS col2 @@ -26347,8 +26715,12 @@ SELECT 17 + + COUNT ( * ) - + 86 AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 19 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(37\) \- \(\- \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(3\) \+ \(\- \(\- max\(Int64\(26\)\)\)\) \+ Int64\(\-83\) \* Int64\(\-54\) \+ Int64\(53\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-99 +19 +NULL query I rowsort SELECT 7 + + CASE + 97 WHEN - AVG ( ALL 44 ) + - - 5 THEN + - 39 ELSE + - 36 END AS col2 @@ -26405,8 +26777,11 @@ 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\(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\. +query II valuesort SELECT - 90 * - 4 col0, - CASE - - COUNT ( * ) WHEN + 46 THEN - + 59 END * - - 38 AS col0 +---- +360 +NULL query I rowsort SELECT 53 + + 62 + + + 18 * 12 @@ -26622,8 +26997,11 @@ SELECT + 18 * CASE - + 12 WHEN 57 THEN - - 97 * - - 30 WHEN + 73 + + 32 THEN NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -14 -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\(\-12\)\)\) \- Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 84 AS col2, - COUNT ( + - 12 ) - + + 13 AS col2 +---- +-14 +84 query I rowsort label-5051 SELECT 84 * + 60 * 99 + - 59 + CAST ( NULL AS INTEGER ) * + + 7 * - + 96 AS col2 @@ -26751,8 +27129,11 @@ SELECT ALL + 58 + - + CAST ( 29 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col0" at position 0 and "Int64\(\-4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 29 AS col0, - 4 AS col0 +---- +-4 +29 query I rowsort label-5074 SELECT DISTINCT - + COALESCE ( - + 53, ( + 5 ) ) / 67 AS col0 @@ -27307,8 +27688,11 @@ SELECT DISTINCT - COUNT ( * ) / + ( - 71 ) * 48 + 5 / + + 11 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7733880 # Datafusion - Expected - 119 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \* Int64\(\-88\) \* Int64\(35\) \* Int64\(\-81\) / Int64\(3\) AS col1" at position 0 and "Int64\(68\) \+ Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 93 * - 88 * 35 * - 81 / 3 AS col1, 68 + + 51 AS col1 +---- +119 +7733880 query I rowsort SELECT - 52 + + 39 @@ -27532,8 +27916,11 @@ SELECT 35 * + 26 col0, 50 * + - 3 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ count\(Int64\(41\)\) \* Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 AS col1, CAST ( NULL AS INTEGER ) + + COUNT ( 41 ) * 43 AS col1 +---- +66 +NULL query I rowsort SELECT 45 * 62 * - + NULLIF ( + + 32, + ( - 66 ) - ( - + 86 ) + 85 ) AS col1 @@ -27912,8 +28299,11 @@ SELECT + 15 * - 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col0" at position 0 and "Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 30 AS col0, - 94 AS col0 +---- +-94 +30 query I rowsort label-5296 SELECT ALL + + COALESCE ( - - 66, - 63 + + COUNT ( DISTINCT + + 68 ) ) @@ -28056,8 +28446,11 @@ SELECT + CASE WHEN COUNT ( * ) <> - CAST ( NULL AS INTEGER ) * MAX ( + 74 ) * + # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(17\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \- Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 17 ) AS col0, CAST ( NULL AS INTEGER ) - 62 AS col0 +---- +-17 +NULL query I rowsort label-5324 SELECT - 39 + - - COUNT ( * ) @@ -28850,8 +29243,11 @@ SELECT ALL - - ( + CAST ( - 52 AS INTEGER ) ) * 41 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) 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 II valuesort SELECT - 25 AS col2, + ( - 26 ) + 80 AS col2 +---- +-25 +54 query I rowsort SELECT - 0 + - + 21 + - + 89 + + 9 * + NULLIF ( 74 + 84, - 37 ) AS col1 @@ -29392,8 +29788,11 @@ SELECT ( - + COALESCE ( - - SUM ( - + 44 ), + 85 + CAST ( 39 AS INTEGER ) ) ) AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 68 AS col1, 29 AS col1 +---- +29 +68 query I rowsort label-5583 SELECT ALL - - 62 / 89 @@ -29414,8 +29813,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \+ Int64\(5\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 22 + 5 AS col1, 36 AS col1 +---- +-17 +36 query II rowsort SELECT 0 AS col0, + 24 * - - 36 @@ -29436,8 +29838,11 @@ 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\(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\. +query IR valuesort SELECT + 27 AS col1, - CAST ( NULL AS FLOAT8 ) - + 88 * - COALESCE ( - COUNT ( * ), 98 + - COUNT ( * ), + 90 ) AS col1 +---- +27 +NULL query I rowsort SELECT - 49 * - - 78 + + 30 @@ -29726,8 +30131,11 @@ SELECT ALL 87 * + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, ( - 74 ) AS col2 +---- +-74 +1 query I rowsort SELECT 27 + - - 23 @@ -29966,14 +30374,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -339768 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) / Int64\(75\) AS col1" at position 0 and "Int64\(99\) \* Int64\(66\) \* Int64\(\-52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 / + 75 AS col1, 99 * 66 * - 52 AS col1 +---- +-339768 +0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(71\)\) / Int64\(42\) \- Int64\(\-39\) AS col0" at position 0 and "Int64\(72\) \- Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 71 ) / + 42 - - 39 col0, + 72 - 57 AS col0 +---- +15 +38 query I rowsort label-5693 SELECT + 12 * + 58 * COUNT ( * ) + + 91 * 70 * - - 42 @@ -30270,8 +30684,11 @@ SELECT + 8 + + NULLIF ( NULLIF ( COUNT ( * ), - 84 - - ( - ( + + 73 ) ) ), 78 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) / Int64\(\-41\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* \(\- coalesce\(Int64\(\-40\), \(\- Int64\(51\)\) \* Int64\(43\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 17 / + - 41 AS col1, CAST ( NULL AS INTEGER ) * - + COALESCE ( + ( + - 40 ), - + 51 * + 43 ) AS col1 +---- +0 +NULL query I rowsort label-5750 SELECT 88 * + + NULLIF ( + 19, - 67 ) * - - COUNT ( * ) * - 41 AS col2 @@ -30886,8 +31303,11 @@ SELECT ALL - 91 * + - 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55692 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* Int64\(91\) \* \(\- Int64\(\-12\)\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 * + 91 * - - 12 AS col2, 84 col2 +---- +55692 +84 query I rowsort label-5867 SELECT CAST ( NULL AS INTEGER ) * 67 + ( - 62 ) @@ -30943,8 +31363,11 @@ SELECT ALL 1 + - COALESCE ( - 40, + + COUNT ( * ), + ( - - 0 ) * ( - + NULLIF ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col2" at position 0 and "CAST\(NULL AS Float64\) \* Int64\(19\) \+ \(\- Int64\(24\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + 50 AS col2, + CAST ( NULL AS FLOAT8 ) * + 19 + - ( 24 ) AS col2 +---- +50 +NULL query I rowsort label-5878 SELECT - 57 * - 6 * 35 * - + 25 * 41 - - 86 / - 79 @@ -31012,8 +31435,12 @@ SELECT 5 * - + 48 * - 45, + ( - COUNT ( * ) ) * + 31 * - 48 col2 # Datafusion - Expected - 77 # Datafusion - Expected - NULL # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(65\) \* \(\- Int64\(\-75\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 77 AS col2, CAST ( NULL AS INTEGER ) + 65 * - - 75 AS col2, + 44 +---- +44 +77 +NULL query I rowsort SELECT ALL 46 * - 56 * 44 AS col2 @@ -31243,8 +31670,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 3 / + 14 AS col1, COUNT ( * ) * + 44 AS col1 +---- +0 +44 query I rowsort label-5936 SELECT ALL + MAX ( + - 37 ) AS col0 @@ -31554,8 +31984,11 @@ SELECT 71 + 25 * - 33 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2304 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(32\) AS col2" at position 0 and "Int64\(6\) \+ Int64\(\-44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 72 * + 32 AS col2, 6 + - 44 AS col2 +---- +-38 +2304 query I rowsort label-5996 SELECT CAST ( NULL AS INTEGER ) * + + ( 54 ) @@ -31791,8 +32224,11 @@ SELECT - - COALESCE ( - - 53, + 39 ) * + 29 * + 80 + - COUNT ( * ) * - 41 AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col0" at position 0 and "\(\- Int64\(48\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 54 col0, - ( + 48 ) AS col0 +---- +-48 +54 query I rowsort label-6041 SELECT - 59 * - NULLIF ( + 28, NULLIF ( COUNT ( * ), + MIN ( ALL 23 ) * CAST ( + - 60 AS INTEGER ) ) ) @@ -31950,8 +32386,11 @@ SELECT + 86 + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3772 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* Int64\(\-41\) AS col1" at position 0 and "Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 92 * - 41 AS col1, - 73 AS col1 +---- +-3772 +-73 query I rowsort label-6072 SELECT + SUM ( ALL - 78 ) * - 48 AS col0 @@ -31982,8 +32421,11 @@ NULL # 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\(\-39\) \+ Int64\(\-53\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 39 + - 53 AS col0, 80 col0 +---- +-92 +80 query I rowsort SELECT DISTINCT 97 * - + 84 * - 45 AS col1 @@ -32309,8 +32751,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) / - + NULLIF ( - 13, + 12 ) AS col1, - 80 / + 52 AS col1 +---- +-1 +0 query I rowsort label-6141 SELECT ALL - MIN ( - + 48 ) @@ -32416,8 +32861,11 @@ SELECT - + ( + 30 ) - 9 * - 15 * - 21 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-29\)\) AS col0" at position 0 and "Int64\(5\) \* Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 29 AS col0, 5 * + 24 AS col0 +---- +120 +29 query I rowsort label-6161 SELECT + 51 + - 53 * + 23 - - 76 + - ( - 96 ) * ( NULLIF ( 92, - NULLIF ( + 19, + + 76 + 5 + - 78 * + 50 ) * + COUNT ( * ) + + 66 ) ) col2 @@ -32898,8 +33346,11 @@ SELECT ALL - 1 AS col2, - 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 7 AS col0, + 6 AS col0 +---- +-7 +6 query II rowsort SELECT DISTINCT - 78 col1, - 64 col0 @@ -33054,8 +33505,11 @@ SELECT ALL + 18 * ( - 15 ) - + 98 + 67 # 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\)\) AS col2" at position 0 and "Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + 30 ) col2, - 16 col2 +---- +-16 +-30 query I rowsort label-6283 SELECT + CASE AVG ( DISTINCT + 51 ) WHEN MAX ( ( - 8 ) ) * + 56 THEN NULL WHEN - 65 THEN + 17 ELSE - MIN ( 80 ) * - 54 END @@ -33126,8 +33580,11 @@ SELECT - COUNT ( DISTINCT - 20 ) + + COALESCE ( + - 50, - - ( 90 ) ) # 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\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 69 ) AS col0, 10 AS col0 +---- +-69 +10 query I rowsort label-6297 SELECT - + 66 * + - MAX ( - 89 ) @@ -33486,8 +33943,11 @@ SELECT 30 * - 71 * + - CAST ( + 39 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \+ Int64\(58\) / Int64\(12\) AS col1" at position 0 and "Int64\(80\) \+ max\(Int64\(\-71\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 + 58 / 12 AS col1, 80 + MAX ( + - 71 ) AS col1 +---- +69 +9 query II rowsort SELECT ALL 0, + 9 AS col2 @@ -33779,8 +34239,11 @@ 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\(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\. +query II valuesort SELECT + ( + 15 ) / - + COUNT ( * ) + 17 + - - COALESCE ( 78, + SUM ( ALL - ( - - 47 ) ), - + ( + + NULLIF ( + 24, 75 - + NULLIF ( ( 22 ), + 9 ) ) ) ) AS col1, - ( - 6 ) * + - 93 + - 0 AS col1 +---- +-558 +80 query I rowsort SELECT DISTINCT 68 + - - 4 + 54 AS col1 @@ -34466,8 +34929,11 @@ SELECT DISTINCT 61 / - 40 AS col1, 9 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 113 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-82\)\) AS col2" at position 0 and "nullif\(\(\- Int64\(\-59\)\), \(\- Int64\(\-95\)\)\) \* Int64\(77\) / \(\- sum\(\(\- Int64\(40\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( - 82 ) AS col2, ( + NULLIF ( - - 59, - - 95 ) ) * 77 / - SUM ( ALL - + 40 ) AS col2 +---- +1 +113 query I rowsort SELECT + + 68 * - NULLIF ( - + 17, - 80 * + 65 ) AS col1 @@ -34509,8 +34975,11 @@ SELECT DISTINCT + + ( + 79 ) + 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 141 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \+ Int64\(78\) AS col2" at position 0 and "nullif\(CASE CAST\(NULL AS Int32\) WHEN \(\- Int64\(\-55\)\) \+ Int64\(\-45\) THEN NULL WHEN CAST\(coalesce\(Int64\(\-21\), Int64\(52\), Int64\(95\)\) AS Int32\) THEN NULL WHEN \(\- Int64\(\-57\)\) \- Int64\(95\) THEN CAST\(NULL AS Int32\) \* Int64\(9\) END, \(\- Int64\(66\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 63 + 78 col2, NULLIF ( CASE + CAST ( NULL AS INTEGER ) WHEN - - 55 + - 45 THEN NULL WHEN CAST ( COALESCE ( - 21, 52, + 95 ) AS INTEGER ) THEN NULL WHEN ( - - 57 ) - + 95 THEN CAST ( NULL AS INTEGER ) * 9 END, - + 66 ) col2 +---- +141 +NULL query I rowsort label-6559 SELECT COUNT ( * ) - 19 * 12 * 91 + - 64 + + COUNT ( * ) @@ -35309,8 +35778,11 @@ SELECT 9 * - 75 * + - 14 # 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 "Int64\(34\) AS col1" at position 0 and "Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 AS col1, 56 AS col1 +---- +34 +56 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -35328,8 +35800,11 @@ SELECT ALL + ( + 1 ) - + 76 * - 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 380 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "Int64\(\-15\) \* Int64\(\-21\) \- Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 57 AS col0, - 15 * - 21 - - 65 col0 +---- +380 +57 query I rowsort SELECT 94 - 2 AS col2 @@ -35397,8 +35872,12 @@ SELECT DISTINCT 97 + - - SUM ( DISTINCT - + 83 ) col1 # Datafusion - Expected - 1 # Datafusion - Expected - -5096 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-98\) \* nullif\(\(\- Int64\(\-52\)\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- max\(DISTINCT Int64\(14\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT COUNT ( * ) col2, - 98 * + NULLIF ( - - 52, COUNT ( * ) * ( - COUNT ( * ) ) + - MAX ( DISTINCT 14 ) ) AS col2, - 49 AS col2 +---- +-49 +-5096 +1 query I rowsort SELECT ALL 10 + - 39 AS col0 @@ -35616,8 +36095,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -576 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* Int64\(\-24\) AS col1" at position 0 and "Int64\(78\) \- Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + 24 ) * - 24 AS col1, + 78 - + 75 AS col1 +---- +-576 +3 query I rowsort label-6768 SELECT COUNT ( - 49 ) AS col1 @@ -35648,8 +36130,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \* sum\(Int64\(16\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 72 AS col2, - COUNT ( * ) * + SUM ( + 16 ) col2, + COUNT ( DISTINCT 1 ) AS col0 +---- +-16 +1 +72 query II rowsort SELECT 8 AS col1, + ( + CASE WHEN NOT NULL <> NULL THEN 95 ELSE - - 0 END ) AS col0 @@ -35742,8 +36228,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 78 col2, 87 AS col2 +---- +78 +87 query I rowsort label-6792 SELECT ALL + - SUM ( ALL + + 12 ) AS col0 @@ -36104,8 +36593,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 541 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "Int64\(\-86\) \+ Int64\(11\) \* \(\- \(\- coalesce\(Int64\(57\), coalesce\(\(\- Int64\(\-49\)\), Int64\(\-65\)\) \* \(\- Int64\(2\)\) \+ nullif\(\(\- Int64\(99\)\), \(\- Int64\(69\)\) \+ Int64\(75\) \- Int64\(63\) \* Int64\(38\)\) \+ \(\- Int64\(\-4\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 51 AS col2, - 86 + 11 * - - COALESCE ( 57, + COALESCE ( - - 49, - 65 ) * + ( - + 2 ) + + NULLIF ( - + 99, - + 69 + 75 - 63 * 38 ) + - ( - 4 ) ) AS col2 +---- +51 +541 query I rowsort label-6860 SELECT ALL + CAST ( NULL AS INTEGER ) * - ( + 6 ) @@ -36189,8 +36681,11 @@ SELECT DISTINCT - 50 * + + 61 * - - SUM ( ALL - 83 ) + + 42 + + SUM ( - - 25 ) / # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col2" at position 0 and "Int64\(7\) \- Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 27 AS col2, 7 - - 72 AS col2 +---- +27 +79 query II rowsort label-6876 SELECT COUNT ( * ), + 84 - - 30 - + 52 * - 57 * - 41 AS col2 @@ -36577,8 +37072,11 @@ SELECT ALL - COALESCE ( + 33, 65 + ( - COUNT ( * ) ) - + NULLIF ( + - 56, COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - -74 -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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 28 AS col1, - 74 col1 +---- +-28 +-74 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -36626,8 +37124,11 @@ SELECT - 17 + + + 20 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - -5820 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "Int64\(\-95\) \* Int64\(62\) \- Int64\(\-70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 42 AS col0, - 95 * 62 - - 70 AS col0 +---- +-5820 +42 query II rowsort SELECT ALL - 58 AS col0, + 56 @@ -37453,8 +37954,11 @@ SELECT - 19 + + 36 + + NULLIF ( + 89, + NULLIF ( 7, COALESCE ( 4, + 20 ) * 97 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col0" at position 0 and "Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 94 AS col0, 84 AS col0 +---- +-94 +84 query I rowsort label-7118 SELECT ALL + 55 * CASE 71 WHEN 82 + 68 THEN + CAST ( NULL AS INTEGER ) END @@ -37474,8 +37978,11 @@ SELECT - NULLIF ( 68, + + NULLIF ( 13, - 78 ) ) * - ( + 95 + 90 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col1" at position 0 and "Int64\(62\) \+ Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 55 AS col1, + 62 + 41 AS col1 +---- +-55 +103 query I rowsort label-7122 SELECT - COALESCE ( ( + COALESCE ( COALESCE ( 11, COUNT ( * ) * - 1 + SUM ( DISTINCT 3 ), + 6 - + 49 ), 2 ) ), + 44 + 58, + 14 ) @@ -37883,8 +38390,11 @@ SELECT DISTINCT + COUNT ( * ) + + - 70 + + 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 76 col1, + COUNT ( * ) AS col1 +---- +1 +76 query II rowsort SELECT 46 AS col1, 39 AS col2 @@ -38176,8 +38686,11 @@ SELECT - 96 * 17 col2, 99 + + ( + + 61 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - -2906 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(30\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(97\) \* Int64\(\-30\) \+ Int64\(3\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 30 / COUNT ( * ) AS col2, + 97 * - 30 + + 3 + + + COUNT ( * ) AS col2 +---- +-2906 +-30 query I rowsort label-7255 SELECT - + 81 + COUNT ( * ) AS col2 @@ -38312,8 +38825,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 60 AS col1, 26 col1 +---- +-60 +26 query I rowsort label-7281 SELECT ALL 41 / - 56 * - COUNT ( DISTINCT + - 14 ) * - 19 + + COALESCE ( + 42, - - 56, - 43 - - 15 * 29, - 53 ) + + COUNT ( * ) AS col2 @@ -38536,8 +39052,12 @@ SELECT COALESCE ( - + 64, + 97 + + 79 + 21 / + 65 + + 18 - 30 ) / - - MIN ( ALL # Datafusion - Expected - -2545 # Datafusion - Expected - 6 # Datafusion - Expected - 7385 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- Int64\(81\)\)\) \+ \(\- Int64\(32\)\) \* Int64\(77\) AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + MIN ( - + 81 ) + - + 32 * 77 AS col0, + 6 col0, 89 * COALESCE ( + 84, - + 30 * COUNT ( * ) ) + - ( 55 + + 18 * 2 ) AS col2 +---- +-2545 +6 +7385 query I rowsort label-7323 SELECT DISTINCT SUM ( 40 ) @@ -38757,8 +39277,11 @@ NULL # 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 col1" at position 0 and "Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 16 AS col1, + 68 AS col1 +---- +16 +68 query II rowsort label-7364 SELECT - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) + + + 91 AS col1 @@ -39094,14 +39617,21 @@ 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\(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\. +query III valuesort SELECT 24 * COUNT ( * ) * - 45 AS col2, 72 AS col0, 53 + - + 89 col2 +---- +-1080 +-36 +72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 38 AS col1, 40 col1 +---- +38 +40 query I rowsort label-7430 SELECT 66 / 28 @@ -39373,8 +39903,11 @@ SELECT CASE + 70 WHEN - 94 * + 2 + - - MAX ( 70 ) THEN - 96 WHEN - 47 THEN NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 161 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-78\) \+ Int64\(83\) AS col1" at position 0 and "\(\- Int64\(\-46\)\) \+ nullif\(Int64\(43\), Int64\(\-62\) \* CAST\(NULL AS Int32\) \* Int64\(82\) \+ Int64\(\-34\) \* Int64\(33\) \+ Int64\(47\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) * + - 78 + + 83 AS col1, - ( - 46 ) + NULLIF ( + 43, - 62 * CAST ( NULL AS INTEGER ) * 82 + - 34 * + 33 + + ( + 47 ) ) AS col1 +---- +161 +89 query I rowsort label-7481 SELECT ALL - 45 * - + 14 - COUNT ( * ) * + NULLIF ( - - NULLIF ( 60, 76 + 21 ), - + COUNT ( * ) + + 13 ) @@ -39581,8 +40114,11 @@ SELECT 65, 69 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 4940 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "Int64\(65\) \* Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 34 AS col2, 65 * + 76 AS col2 +---- +34 +4940 query II rowsort label-7521 SELECT - 87 AS col2, - COUNT ( * ) @@ -39656,8 +40192,11 @@ SELECT DISTINCT 88 + + MIN ( ALL + 56 ) + - 18 * - + 16 * - - 8 + + - 46 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 3081 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col1" at position 0 and "Int64\(79\) \* Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 27 AS col1, 79 * 39 AS col1 +---- +-27 +3081 query I rowsort SELECT 21 + + 32 AS col0 @@ -39706,8 +40245,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-7\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - ( 92 ) - + - 97 + + 35 - ( + 68 ) + - + COUNT ( * ) AS col0, + ( - 18 ) * - 8, - 7 AS col0 +---- +-29 +-7 +144 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -39845,8 +40388,12 @@ SELECT ( 33 ) + - 80 + 36 # Datafusion - Expected - 3313 # Datafusion - Expected - 112 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* Int64\(81\) \+ Int64\(73\) AS col0" at position 0 and "Int64\(72\) \+ Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 40 * 81 + + 73 AS col0, 72 + + 40 col0, + + 27 AS col2 +---- +112 +27 +3313 query I rowsort label-7570 SELECT ALL - COALESCE ( 20, - + CAST ( - + MIN ( ALL - 89 ) AS INTEGER ) + - 85 + + - ( - COUNT ( ALL 78 ) ), 20 ) AS col0 @@ -40139,8 +40686,11 @@ SELECT - + 33 + + 79 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4200 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* Int64\(60\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 70 * + + 60 AS col1, COUNT ( * ) AS col1 +---- +1 +4200 query I rowsort label-7627 SELECT - 74 + COUNT ( ALL - 22 ) - - + 16 + - 38 * - - 86 - - + 72 + - + 97 + + ( 0 ) + 53 @@ -40251,8 +40801,11 @@ 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\(1\)\) AS count\(\*\), Int64\(\-17\)\) \* Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 36 AS col1, NULLIF ( + COUNT ( * ), + - 17 ) * - 85 col1 +---- +-85 +36 query I rowsort SELECT 11 + - 91 @@ -40344,8 +40897,11 @@ SELECT SUM ( DISTINCT + - CAST ( - + 93 AS INTEGER ) ) # 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\(\-92\) AS col1" at position 0 and "Int64\(\-9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 AS col1, - 9 col1 +---- +-9 +-92 query II rowsort label-7667 SELECT ALL + 12 + - - COUNT ( * ), + 13 @@ -40726,14 +41282,20 @@ SELECT + MAX ( ALL + 39 ) * 99 AS col0 # 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\(7\) AS col0" at position 0 and "Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 AS col0, - 43 AS col0 +---- +-43 +7 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col2" at position 0 and "max\(DISTINCT Int64\(93\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 39 AS col2, + MAX ( DISTINCT + + 93 ) col2 +---- +-39 +93 query I rowsort label-7740 SELECT + 11 * - + SUM ( + 78 ) @@ -40779,8 +41341,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 11 AS col1, COUNT ( * ) / + 55 col1 +---- +0 +11 query I rowsort SELECT ALL - 29 + - 70 @@ -41090,8 +41655,11 @@ SELECT ALL + 21 / + 50 * + + 50 * 60 + 71, 58 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 4004 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col0" at position 0 and "Int64\(44\) \* max\(coalesce\(Int64\(91\), \(\- Int64\(\-2\)\) \* Int64\(7\), Int64\(\-71\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 39 AS col0, 44 * MAX ( COALESCE ( + 91, - - 2 * + 7, - 71 ) ) AS col0 +---- +39 +4004 query I rowsort SELECT ALL - + 89 * 71 - 64 @@ -41510,8 +42078,11 @@ SELECT DISTINCT - 14 * + ( + - 98 ) + + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 1505 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col1" at position 0 and "Int64\(35\) \* \(\- Int64\(\-43\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 57 AS col1, 35 * - - 43 AS col1 +---- +1505 +57 query I rowsort label-7889 SELECT - COUNT ( ALL - 60 ) col1 @@ -41683,8 +42254,12 @@ 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\(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\. +query III valuesort SELECT + ( - 59 ) AS col1, COUNT ( * ) * 29 / + MIN ( ALL - + 85 ) + - + 73 AS col1, 19 AS col0 +---- +-59 +-73 +19 query I rowsort SELECT DISTINCT + ( + 82 ) AS col0 @@ -41842,8 +42417,11 @@ SELECT - ( + COUNT ( * ) ) + + 94 + - - 18 + + + 46 + 64 * + 87 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 7259712 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(7\)\)\) \+ Int64\(\-15\) AS col1" at position 0 and "Int64\(76\) \* Int64\(\-60\) \* sum\(Int64\(21\)\) \* Int64\(\-78\) \+ Int64\(59\) \* Int64\(48\) \* Int64\(\-74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( ALL + 7 ) + + - 15 AS col1, 76 * - 60 * SUM ( 21 ) * - 78 + + 59 * + 48 * - 74 AS col1 +---- +-22 +7259712 query I rowsort label-7952 SELECT - CASE - 82 WHEN + 0 THEN + 12 WHEN - 80 THEN NULL WHEN - + 44 + - + 97 + MIN ( ALL + - 54 ) * 87 THEN NULL ELSE COUNT ( * ) END @@ -42227,8 +42805,11 @@ SELECT - 83 + + 30 / 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \+ max\(Int64\(\-97\)\) / Int64\(\-63\) AS col2" at position 0 and "Int64\(88\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 89 + + + MAX ( ALL - 97 ) / - 63 AS col2, 88 * + CAST ( NULL AS INTEGER ) AS col2 +---- +90 +NULL query I rowsort SELECT + 29 * + - 96 * 46 * - 55 col1 @@ -42344,8 +42925,11 @@ SELECT - 67 * - COALESCE ( + COUNT ( * ), + + 71 * - - 77 / + COALESCE ( + COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-49\)\) AS col2" at position 0 and "sum\(Int64\(95\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( ALL - 49 ) AS col2, SUM ( + 95 ) AS col2 +---- +-49 +95 query I rowsort label-8047 SELECT MIN ( 91 ) AS col1 @@ -42685,8 +43269,11 @@ SELECT 66 / ( 53 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \- Int64\(\-35\) \+ \(\- Int64\(16\)\) AS col2" at position 0 and "Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 85 - - 35 + - ( 16 ) AS col2, 83 AS col2 +---- +-66 +83 query II rowsort SELECT ALL 70, + 55 AS col1 @@ -42741,8 +43328,11 @@ SELECT - 72 + - 53 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col2" at position 0 and "Int64\(\-62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 AS col2, - 62 AS col2 +---- +-62 +69 query II rowsort label-8123 SELECT DISTINCT 3, + CAST ( + COUNT ( * ) AS INTEGER ) + - 40 * + 49 * - - CAST ( NULL AS INTEGER ) AS col0 @@ -42904,8 +43494,11 @@ SELECT - ( 11 ) AS col0, - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - -143 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \+ Int64\(\-53\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 + - 53 AS col0, CAST ( NULL AS INTEGER ) col0 +---- +-143 +NULL query I rowsort SELECT DISTINCT - CASE - 77 WHEN + 4 THEN + 73 * + 33 ELSE NULL END @@ -43942,8 +44535,11 @@ SELECT ALL - + 82 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1140 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \+ Int64\(\-20\) \* Int64\(55\) AS col2" at position 0 and "Int64\(\-65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 40 + + - 20 * + 55 AS col2, - 65 AS col2 +---- +-1140 +-65 query I rowsort SELECT DISTINCT - 29 + + 47 @@ -44101,8 +44697,11 @@ 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\(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\. +query II valuesort SELECT ALL + 58 * - COUNT ( * ) + - - 33 / + 40 AS col1, + 89 AS col1 +---- +-58 +89 query I rowsort SELECT - + 10 - - 3 @@ -44644,8 +45243,11 @@ SELECT 31 + + 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - -170 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \- Int64\(87\) AS col2" at position 0 and "Int64\(\-32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 83 - + + 87 AS col2, - 32 AS col2 +---- +-170 +-32 query I rowsort label-8486 SELECT DISTINCT 57 * + CAST ( NULL AS INTEGER ) AS col1 @@ -45928,8 +46530,11 @@ SELECT 64 + - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* min\(Int64\(34\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) * + MIN ( ALL 34 ) AS col1, + COUNT ( * ) AS col1 +---- +1 +34 query I rowsort label-8733 SELECT - ( COALESCE ( 41, - 36 ) ) * + CAST ( 38 AS INTEGER ) col0 @@ -46172,8 +46777,11 @@ SELECT DISTINCT - 78 / + CAST ( + - 47 AS INTEGER ) - 2 * + COALESCE ( 52, 69 * # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 10 AS col2, 37 AS col2 +---- +-10 +37 query II rowsort SELECT ALL + 28, - 34 + 6 AS col1 @@ -46192,8 +46800,11 @@ NULL # 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\(49\) / Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 93 AS col1, 49 / + ( + ( 99 ) ) AS col1 +---- +-93 +0 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -46360,8 +46971,11 @@ SELECT - 79 * + 69 * 35 + NULLIF ( - SUM ( - 2 ), 41 + + 40 ) * 32 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 0 and "Int64\(\-93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 AS col0, - 93 AS col0 +---- +-93 +28 query I rowsort label-8815 SELECT ALL + 80 * COUNT ( * ) * - COUNT ( * ) AS col2 @@ -46495,8 +47109,11 @@ SELECT - 15 + + 74 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -3060 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-90\) \* Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, - 90 * 34 AS col0 +---- +-3060 +1 query I rowsort SELECT ALL + 52 + - - 46 col2 @@ -46791,8 +47408,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + 84 AS col0, ( - COUNT ( * ) ) col0, - - 11 + - 97 * - COUNT ( * ) * + 43 * + 27 - - CAST ( NULL AS INTEGER ) + + ( - 63 ) AS col0 +---- +-1 +-84 +NULL query I rowsort SELECT + - 65 + + 34 @@ -46847,8 +47468,11 @@ 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\(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\. +query IR valuesort 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 +---- +-2170 +3 query I rowsort label-8910 SELECT DISTINCT - COUNT ( 71 ) AS col0 @@ -46878,8 +47502,11 @@ SELECT 73 * - - 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col2" at position 0 and "Int64\(\-22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 AS col2, - 22 AS col2 +---- +-22 +25 query II rowsort label-8916 SELECT DISTINCT - 76 - - 32 - - NULLIF ( + + 18, - + 14 ) + - COUNT ( * ) AS col0, CASE + - COUNT ( * ) WHEN 71 THEN - MAX ( - 64 ) * - 23 END + + MIN ( ALL + 35 ) AS col1 @@ -47540,8 +48167,11 @@ SELECT 76 / + + 88 / COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* \(\- Int64\(\-7\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 34 / + COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) * - - 7 AS col2 +---- +34 +NULL # Datafusion - Data was automatically updated based on comparison db results # Datafusion - Previous results: @@ -47797,8 +48427,11 @@ SELECT ALL NULLIF ( + SUM ( DISTINCT + - 79 ), 73 + + 60 ) + + + 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - -95825 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col0" at position 0 and "Int64\(70\) \* \(\- Int64\(\-37\)\) \* Int64\(\-37\) \+ Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 83 AS col0, 70 * - - 37 * - 37 + 5 AS col0 +---- +-95825 +83 query II rowsort label-9090 SELECT 90 AS col2, + COUNT ( * ) @@ -47887,8 +48520,11 @@ SELECT ALL + - NULLIF ( + + 90, + 89 ) * - COALESCE ( 56, COUNT ( * ) ) * COALES # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 26 AS col2, + COUNT ( * ) AS col2 +---- +1 +26 query II rowsort SELECT DISTINCT + - 67 col2, + 58 AS col0 @@ -47965,8 +48601,11 @@ SELECT - 35 * - 14 + + 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 14 AS col1, 86 AS col1 +---- +14 +86 query I rowsort label-9121 SELECT DISTINCT - COUNT ( ALL + + 39 ) * + 47 @@ -47976,8 +48615,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( - 50 ) col2, 63 + + COUNT ( * ) * 66 AS col2 +---- +-50 +129 query I rowsort SELECT + 54 * 63 AS col1 @@ -49516,8 +50158,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - -1980 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "\(\- nullif\(Int64\(11\), coalesce\(CAST\(Int64\(33\) AS Int32\), Int64\(68\) \* Int64\(\-21\) \+ Int64\(\-27\) \+ Int64\(82\)\)\)\) \* coalesce\(CASE \(\- max\(Int64\(76\)\)\) WHEN Int64\(81\) THEN \(\- count\(Int64\(77\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) ELSE CASE \(\- Int64\(9\)\) WHEN Int64\(61\) THEN NULL WHEN Int64\(\-37\) THEN Int64\(96\) \+ Int64\(20\) \+ CAST\(NULL AS Int32\) END \- Int64\(\-61\) \+ Int64\(84\) END, Int64\(94\) \+ Int64\(86\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-1980 +47 query I rowsort label-9420 SELECT ALL SUM ( ALL - - 92 ) * 43 AS col0 @@ -49585,8 +50230,11 @@ SELECT ALL - 75 + - 98 + + COALESCE ( + - COUNT ( * ), + + 26 ) + 6, + 5 - - MAX # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 88 AS col2, COUNT ( * ) AS col2 +---- +1 +88 query I rowsort label-9433 SELECT + 39 - CAST ( NULL AS INTEGER ) AS col2 @@ -49601,8 +50249,11 @@ SELECT ALL COUNT ( * ) + - 96 / 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - -492 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col0" at position 0 and "Int64\(\-6\) \* Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 38 AS col0, - 6 * 82 AS col0 +---- +-38 +-492 query II rowsort SELECT + 89 AS col0, + 23 - 18 - + 92 AS col2 @@ -49814,8 +50465,11 @@ SELECT 13 AS col0, + ( - - 59 ) * + 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 AS col2, - 98 col2 +---- +-98 +86 query II rowsort label-9476 SELECT ALL CASE WHEN NOT + ( + COUNT ( * ) ) >= 33 - - 65 + - + 69 THEN - COUNT ( * ) + - - COALESCE ( 92, 44 * - - 38 + 82 - - 34 * + 66 + + 91 + 80 ) WHEN NOT 99 * - 50 * + 36 * - COUNT ( - 66 ) IS NULL THEN NULL END col0, 16 @@ -50117,8 +50771,11 @@ SELECT ALL - 85 AS col2, SUM ( - 51 ) * + - 21 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 97 AS col2, 71 AS col2 +---- +71 +97 query I rowsort label-9533 SELECT ALL - 50 - - 2 + - 80 + - 96 + - COUNT ( * ) + + NULLIF ( + + 86, + 81 ) * 55 * - - 64 * 4 AS col2 @@ -50164,8 +50821,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 * 68 + - - 50 AS col1, - COUNT ( * ) AS col1 +---- +-1 +4878 query I rowsort label-9542 SELECT ALL 73 * + + COALESCE ( + 26, + 62, ( COUNT ( * ) ) * - + 94 + + NULLIF ( - - COUNT ( * ), + 41 - - 94 ) ) + + CAST ( COALESCE ( - - MAX ( ALL 74 ), - 70 ) AS INTEGER ) + 41 + + + 76 col2 @@ -50258,8 +50918,11 @@ SELECT ALL - 66 * - + 23 * + - COUNT ( ALL 50 ) + - COUNT ( * ) - - NULLIF ( 28, # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + 29 AS col2 +---- +1 +29 query I rowsort SELECT - 58 - - ( + - 10 ) @@ -50358,8 +51021,11 @@ SELECT - + 3 + - 22, - 90 + - 56 * - + 45 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 141 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "nullif\(Int64\(72\), Int64\(15\) \* \(\- Int64\(\-6\)\) \+ Int64\(\-76\)\) \+ Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 AS col2, + NULLIF ( + 72, + 15 * - - 6 + - 76 ) + + 69 AS col2 +---- +141 +68 query I rowsort label-9579 SELECT DISTINCT + + 0 / - 19 - - 80 @@ -50500,8 +51166,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + - 57 * + 52 + + + 42 * + + COUNT ( - + 5 ) AS col2, COUNT ( * ) + COALESCE ( + COUNT ( * ), + 13 + + 67 ) AS col2 +---- +-2922 +2 query I rowsort SELECT ALL 40 * - - 16 + 28 AS col2 @@ -51087,8 +51756,11 @@ SELECT DISTINCT 61 / + - 13 + + - 19 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 13 AS col2, - 88 AS col2 +---- +-88 +13 query I rowsort label-9718 SELECT - 16 / - 80 * + 61 AS col0 @@ -51439,8 +52111,11 @@ SELECT 49 * + + 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col0" at position 0 and "Int64\(9\) \+ \(\- CAST\(Int64\(82\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 94 AS col0, 9 + - CAST ( 82 AS INTEGER ) col0 +---- +-73 +-94 query I rowsort label-9785 SELECT ALL MAX ( ALL + + 90 ) AS col0 @@ -51920,8 +52595,11 @@ SELECT ALL 18 - + - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -1059 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "CASE \(\- Int64\(38\)\) WHEN Int64\(\-68\) \* Int64\(18\) THEN CAST\(Int64\(\-61\) AS Int32\) WHEN Int64\(99\) THEN \(\- Int64\(6\)\) ELSE \(\- coalesce\(Int64\(49\), Int64\(94\), Int64\(\-14\), Int64\(51\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \- \(\- Int64\(23\)\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-50\) END \* Int64\(38\) \+ Int64\(\-71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-1059 +56 query I rowsort label-9878 SELECT ALL + 10 - - - COUNT ( * ) AS col2 @@ -52421,8 +53099,11 @@ SELECT DISTINCT + 74 * - + MIN ( DISTINCT - - 17 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col1, - ( + + COUNT ( * ) ) AS col1 +---- +-1 +1 query I rowsort SELECT - 51 * + 85 - 48 * 81 * - 15 col1 diff --git a/data/sqlite/random/expr/slt_good_110.slt b/data/sqlite/random/expr/slt_good_110.slt index b707531..55c51e7 100644 --- a/data/sqlite/random/expr/slt_good_110.slt +++ b/data/sqlite/random/expr/slt_good_110.slt @@ -190,8 +190,11 @@ 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\(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\. +query II valuesort 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 +---- +-4316 +20 query I rowsort label-30 SELECT + + 68 * SUM ( - 90 ) + - + 4 / - 21 @@ -322,8 +325,11 @@ SELECT DISTINCT 40 + + - ( - - 4 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(8\)\)\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( COUNT ( ALL 8 ) ) col0, 13 AS col0 +---- +-1 +13 query I rowsort SELECT ALL 75 + + + 88 * - 9 AS col2 @@ -540,8 +546,11 @@ SELECT - 93, COUNT ( * ) * - - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 95 AS col0, COUNT ( * ) AS col0 +---- +-95 +1 query I rowsort SELECT ALL 75 + + 99 @@ -658,8 +667,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-68\) \+ Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 AS col0, 97 * COUNT ( * ) * - 68 + + 22 AS col0 +---- +-6574 +80 query I rowsort label-120 SELECT ALL - + MAX ( DISTINCT 81 ) AS col0 @@ -970,8 +982,11 @@ SELECT - + 0 * - - 87 # 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 "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 AS col1, 3 AS col1 +---- +3 +54 query I rowsort label-179 SELECT + - 19 + COUNT ( * ) * + - COUNT ( * ) - + NULLIF ( - + COUNT ( * ), 66 + - 85 ) AS col2 @@ -1407,8 +1422,11 @@ SELECT - 40 * + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -940 # Datafusion - Expected - 7144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(94\) \* \(\- \(\- CAST\(Int64\(1\) AS Int32\)\)\) AS col1" at position 0 and "Int64\(94\) \* Int64\(76\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 * 94 * - - CAST ( 1 AS INTEGER ) AS col1, + 94 * 76 / + + COUNT ( * ) AS col1 +---- +-940 +7144 query I rowsort SELECT - 16 * ( + - 51 ) AS col0 @@ -1443,8 +1461,11 @@ SELECT + COUNT ( * ) - - 6 + 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 60 AS col2 +---- +1 +60 query II rowsort label-272 SELECT DISTINCT 73 * - + 21 + + 92 * + 72, 0 / 57 AS col1 @@ -1503,8 +1524,11 @@ SELECT - COUNT ( * ) * - 59 * - 37 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 32640 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(60\)\)\) AS col1" at position 0 and "Int64\(68\) \* Int64\(40\) \* Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( 60 ) AS col1, 68 * ( 40 ) * + + 12 AS col1 +---- +-60 +32640 query I rowsort SELECT DISTINCT - 0 + ( 49 ) @@ -1529,8 +1553,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(33\) \+ Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 58 AS col0, COUNT ( * ) * 33 + + 1 AS col0 +---- +-58 +34 query I rowsort SELECT - 10 * 64 @@ -1648,8 +1675,11 @@ SELECT ALL + 17 * + COUNT ( * ) AS col2, CAST ( COUNT ( * ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2418 # Datafusion - Expected - -97 -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 "\(\- Int64\(97\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 62 * - 39 col1, - ( 97 ) AS col1 +---- +-2418 +-97 query I rowsort label-310 SELECT - 39 * MIN ( ALL + 80 ) * - 25 + - 45 @@ -1728,8 +1758,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 70 ) AS col1, + COUNT ( * ) + - 54 AS col1 +---- +-53 +70 query I rowsort SELECT - - 89 * + 1 * 72 AS col1 @@ -1775,8 +1808,11 @@ SELECT NULLIF ( - 50, - + 25 ) * - + 86 + + - 35 AS col0 # 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 "Int64\(99\) AS col2" at position 0 and "Int64\(68\) \- Int64\(\-45\) / Int64\(\-66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 AS col2, 68 - + - 45 / - 66 AS col2 +---- +68 +99 query II rowsort SELECT + 29, ( 70 ) AS col2 @@ -1833,8 +1869,11 @@ 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\(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\. +query II valuesort SELECT 45 * + COUNT ( * ) + - + 82 AS col2, 97 AS col2 +---- +-37 +97 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -1853,8 +1892,11 @@ SELECT - COUNT ( ALL - - 42 ) + + COALESCE ( - COUNT ( * ), + + 80 * + CASE - ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 2860 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col1" at position 0 and "Int64\(\-52\) \* Int64\(\-55\) \+ Int64\(0\) \+ \(\- Int64\(\-40\)\) / Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 col1, - 52 * - 55 + + 0 + - - 40 / + 99 AS col1 +---- +-64 +2860 query I rowsort label-348 SELECT DISTINCT - - 78 / 89 @@ -2078,8 +2120,11 @@ SELECT - 34 + CAST ( + 40 AS INTEGER ) + - 37 * 59 AS col2, + 32 AS col1 # 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 col0" at position 0 and "Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 AS col0, - 1 AS col0 +---- +-1 +5 query I rowsort SELECT - 39 - ( 3 ) @@ -2192,8 +2237,11 @@ SELECT + + 52 + 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 83 AS col2, + COUNT ( * ) col2 +---- +1 +83 query I rowsort label-413 SELECT + 90 * + + MAX ( ALL - 71 ) * 14 + + + 40 - - - 39 @@ -2203,8 +2251,11 @@ SELECT + 90 * + + MAX ( ALL - 71 ) * 14 + + + 40 - - - 39 # 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 "CASE count\(Int64\(\-54\)\) WHEN Int64\(\-47\) THEN NULL WHEN \(\- Int64\(\-65\)\) / \(\- Int64\(\-24\)\) \- Int64\(93\) THEN Int64\(87\) \* Int64\(\-61\) WHEN Int64\(77\) THEN Int64\(99\) WHEN Int64\(\-21\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 50 AS col1, CASE + COUNT ( - 54 ) WHEN + - 47 THEN NULL WHEN - - 65 / - - 24 - 93 THEN 87 * - 61 WHEN + 77 THEN + 99 WHEN - 21 THEN NULL END AS col1 +---- +50 +NULL query I rowsort label-415 SELECT + 54 * - 10 * + - CAST ( + 19 AS INTEGER ) + + 0 AS col2 @@ -2248,8 +2299,12 @@ SELECT ALL 16 - - CAST ( NULLIF ( - 66, + + 55 ) AS INTEGER ) # Datafusion - Expected - -1220 # Datafusion - Expected - NULL # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \* Int64\(\-61\) AS col2" at position 0 and "CAST\(NULL AS Int32\) / max\(Int64\(84\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT ( + 20 ) * ( + - 61 ) AS col2, CAST ( NULL AS INTEGER ) / MAX ( 84 ) AS col2, + 63 AS col2 +---- +-1220 +63 +NULL query I rowsort SELECT + 40 + + 3 + - 41 * + + 97 @@ -2393,8 +2448,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * + ( + 14 ) col0, 67 AS col0 +---- +14 +67 query I rowsort label-451 SELECT 20 + - 54 / - - 98 @@ -2774,8 +2832,11 @@ SELECT - COUNT ( - - 47 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \+ \(\- Int64\(\-48\)\) AS col1" at position 0 and "Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 5 + - - 48 AS col1, - 56 AS col1 +---- +-56 +43 query I rowsort label-523 SELECT - 86 + - 73 / + 85 * - MIN ( 66 ) AS col2 @@ -2834,8 +2895,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -123 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \+ Int64\(\-82\) AS col0" at position 0 and "Int64\(75\) \* \(\- Int64\(0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 41 + - 82 col0, 75 * - ( + ( 0 ) ) AS col0 +---- +-123 +0 query I rowsort label-534 SELECT - + 44 / 2 + - - 44 + 6 / - 98 * - + 89 col0 @@ -2941,8 +3005,11 @@ SELECT 19 * - CAST ( - + ( + - COUNT ( * ) ) AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) AS col0" at position 0 and "Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 13 AS col0, 11 AS col0 +---- +-13 +11 query I rowsort SELECT + 81 + + 20 + - - 48 @@ -3146,8 +3213,11 @@ SELECT 36 * NULLIF ( - 99, 46 + 73 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col1" at position 0 and "Int64\(\-71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 98 AS col1, ( + - 71 ) AS col1 +---- +-71 +98 query I rowsort label-593 SELECT 13 + - + SUM ( + - 53 ) AS col0 @@ -3543,8 +3613,11 @@ SELECT DISTINCT 46 / - 73 AS col2, 94 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 103 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \+ Int64\(92\) AS col2" at position 0 and "CASE nullif\(Int64\(\-12\), coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- coalesce\(sum\(Int64\(\-82\)\), CASE \(\- Int64\(95\)\) WHEN Int64\(65\) THEN Int64\(\-93\) \+ \(\- min\(Int64\(23\)\)\) \+ CAST\(count\(Int64\(34\)\) AS Int32\) \* Int64\(\-18\) \- Int64\(\-78\) ELSE Int64\(80\) END\)\)\)\) WHEN Int64\(21\) THEN CASE Int64\(\-96\) WHEN Int64\(69\) \* Int64\(\-72\) THEN count\(Int64\(\-34\)\) \* Int64\(47\) WHEN Int64\(84\) \+ Int64\(82\) THEN NULL ELSE NULL END \* Int64\(10\) \+ Int64\(\-1\) \* Int64\(43\) ELSE Int64\(22\) END \* \(\- nullif\(Int64\(3\), Int64\(82\) \+ Int64\(8\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-66 +103 query I rowsort SELECT + 70 * + 43 @@ -3731,8 +3804,11 @@ SELECT DISTINCT + 60 * + 17 * + - ( - 78 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(9\) \* Int64\(\-64\) AS col1" at position 0 and "\(\- sum\(DISTINCT CAST\(Int64\(\-58\) AS Int32\)\)\) / \(\- sum\(DISTINCT Int64\(\-73\)\)\) \+ nullif\(Int64\(\-64\), \(\- Int64\(71\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) / + ( ( + 9 ) ) * - 64 AS col1, + ( - + SUM ( DISTINCT + + CAST ( - 58 AS INTEGER ) ) ) / - + SUM ( DISTINCT - 73 ) + NULLIF ( - 64, - + 71 ) + COUNT ( * ) + + COUNT ( * ) AS col1 +---- +-62 +0 query I rowsort label-702 SELECT COUNT ( ALL + - 45 ) / + 59 AS col1 @@ -4130,8 +4206,11 @@ SELECT + 4 / + + 65 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 107 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ Int64\(91\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 16 + ( + 91 ) AS col0, 43 AS col0 +---- +107 +43 query I rowsort SELECT - 87 * + + 81 @@ -4141,8 +4220,11 @@ SELECT - 87 * + + 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-21\)\) AS col0" at position 0 and "Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + - 21 ) AS col0, - 26 AS col0 +---- +-26 +21 query II rowsort SELECT - 4 + - - 82 AS col0, 1 + 77 @@ -4197,8 +4279,11 @@ SELECT - + SUM ( + - 25 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-75\)\) \+ Int64\(\-44\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(59\) \+ Int64\(44\) \+ \(\- sum\(DISTINCT Int64\(19\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 75 + - 44 - + COUNT ( * ) AS col0, + 59 + + 44 + - + SUM ( DISTINCT 19 ) AS col0 +---- +30 +84 query I rowsort SELECT DISTINCT + NULLIF ( - 4, - 97 ) AS col0 @@ -4360,8 +4445,11 @@ SELECT ALL 27 + - - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(75\)\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 75 col0, 24 col0 +---- +-75 +24 query I rowsort SELECT - 76 * - 56 @@ -4376,14 +4464,20 @@ SELECT ALL + COUNT ( * ) - - 69 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(16\)\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 16 AS col1, 80 AS col1 +---- +-16 +80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) / Int64\(\-46\) \+ Int64\(31\) \+ Int64\(1\) AS col0" at position 0 and "nullif\(Int64\(27\), CASE Int64\(52\) WHEN Int64\(20\) THEN Int64\(33\) END \- Int64\(\-44\) \* Int64\(\-20\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 52 / - 46 + 31 + + 1 AS col0, NULLIF ( + + 27, + + CASE + 52 WHEN 20 THEN 33 END - - 44 * - 20 ) AS col0 +---- +27 +33 query I rowsort SELECT ALL - ( + - 17 ) AS col2 @@ -4859,8 +4953,11 @@ 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\(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\. +query II valuesort SELECT - 16 * + 48 + 87 + - + COUNT ( * ) AS col2, MAX ( DISTINCT - 45 ) / - 80 * - - 65 AS col2 +---- +-682 +0 query I rowsort label-915 SELECT ALL + COUNT ( * ) * + 4 AS col2 @@ -4992,8 +5089,12 @@ SELECT - 67 col1, - 63 * MIN ( DISTINCT + 61 ) + COALESCE ( 11, ( 53 ) * + 65, - # Datafusion - Expected - -165 # Datafusion - Expected - 93 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 1 and "Int64\(24\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 0 + 71 + + MIN ( + 34 ) + - 54 * + COALESCE ( - + MIN ( - 5 ), - + MAX ( ALL - - 28 ), + 14 ), 93 AS col1, 24 AS col1 +---- +-165 +24 +93 query I rowsort label-940 SELECT - 4 - 85 / - + 51 @@ -5177,14 +5278,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - -719 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) / Int64\(\-24\) \+ Int64\(\-63\) AS col2" at position 0 and "Int64\(49\) \- Int64\(26\) \- Int64\(53\) \* Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 / - 24 + - 63 AS col2, 49 - + 26 - 53 * 14 col2 +---- +-65 +-719 # 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 "Int64\(1\) AS col2" at position 0 and "Int64\(91\) / Int64\(30\) \- Int64\(\-94\) \+ \(\- Int64\(\-1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 1 AS col2, ( + 91 ) / + 30 - - 94 + - - 1 AS col2 +---- +1 +98 query I rowsort SELECT 28 + - 9 AS col0 @@ -5372,8 +5479,11 @@ SELECT - 98 + - 48 * + COUNT ( * ) - - 88 AS col2, 50 # 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\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 58 ) AS col0, + 89 AS col0 +---- +58 +89 query I rowsort SELECT + 3 * 81 AS col1 @@ -5563,8 +5673,12 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - -400 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-87\) \+ \(\- min\(DISTINCT CAST\(NULL AS Int32\)\)\) \+ Int64\(31\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - - COUNT ( * ) AS col1, 10 * + - 40, - 87 + - + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) + + + 31 AS col1 +---- +-400 +1 +NULL query I rowsort SELECT 99 + - 9 + + 86 * + 2 @@ -5719,8 +5833,12 @@ SELECT ALL - - NULLIF ( - + 41, 83 ) col1 # Datafusion - Expected - 47 # Datafusion - Expected - 2062 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* Int64\(25\) \- Int64\(88\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 and "Int64\(53\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - + ( + - 47 ), ( 86 ) * + 25 - 88 / + COUNT ( * ) AS col2, + 53 AS col2 +---- +2062 +47 +53 query I rowsort label-1075 SELECT ALL - COUNT ( ALL - + 39 ) / - 59 @@ -5949,8 +6067,11 @@ SELECT + 57 * 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col1" at position 0 and "Int64\(12\) / Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 61 AS col1, + 12 / 53 AS col1 +---- +0 +61 query I rowsort label-1120 SELECT - CAST ( + 17 AS INTEGER ) @@ -6455,8 +6576,11 @@ SELECT + 66, 97 + + 92 * + 78 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -2673 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "Int64\(\-81\) \* Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 0 AS col0, - 81 * 33 AS col0 +---- +-2673 +0 query I rowsort label-1216 SELECT - - COUNT ( * ) * 26 + + COUNT ( * ) AS col2 @@ -6589,8 +6713,11 @@ SELECT + ( - 60 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col1" at position 0 and "Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + - 62 ) AS col1, 56 AS col1 +---- +-62 +56 query I rowsort label-1241 SELECT ALL 89 * - 18 * 57 + - 77 - + CAST ( + 28 AS INTEGER ) AS col0 @@ -7636,8 +7763,11 @@ SELECT ALL + NULLIF ( - 5, + 1 ) / - - 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -504 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(36\) \* Int64\(\-14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, 36 * + ( + - 14 ) AS col2 +---- +-504 +1 query I rowsort SELECT ALL 79 * 19 AS col2 @@ -7792,8 +7922,11 @@ NULL # 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\(\-20\) \* Int64\(66\) AS col0" at position 0 and "Int64\(\-79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 20 * + 66 AS col0, - 79 AS col0 +---- +-1320 +-79 query I rowsort label-1467 SELECT ALL + ( + 73 ) + - COUNT ( * ) @@ -7949,8 +8082,11 @@ SELECT 25 * - CAST ( - 27 AS INTEGER ) + - + 17 + + 9 + - COALESCE ( - + SUM ( 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - -10 -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\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 55 AS col1, - 71 + + + 61 AS col1 +---- +-10 +55 query I rowsort label-1497 SELECT NULLIF ( 43, + + 63 ) * + - 10 * - ( + COUNT ( + 39 ) ) AS col0 @@ -9793,8 +9929,11 @@ SELECT + 60 + COALESCE ( + 12, ( 32 ), - 48 ) + 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4949 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* Int64\(90\) \+ \(\- Int64\(88\)\) / Int64\(61\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 55 * + 90 + - + 88 / + 61 col2, 99 AS col2 +---- +4949 +99 query I rowsort label-1855 SELECT + NULLIF ( - + COUNT ( * ), 74 * - MIN ( - - 96 ) + + 25 - + 25 ) @@ -10147,8 +10286,11 @@ SELECT - - 19 * NULLIF ( 19, + 49 + - SUM ( DISTINCT 88 ) + ( + 29 ) * - CAST ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 72 col0, 25 AS col0 +---- +-72 +25 query I rowsort SELECT 59 * - 92 @@ -10184,8 +10326,12 @@ SELECT COUNT ( * ) * 24 AS col2 # Datafusion - Expected - 3150 # Datafusion - Expected - -85 # Datafusion - Expected - -100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* Int64\(42\) AS col1" at position 0 and "\(\- Int64\(6\)\) \- Int64\(94\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 75 * + 42 AS col1, ( - + ( + 85 ) ) col2, - + 6 - + 94 col1 +---- +-100 +-85 +3150 query I rowsort label-1930 SELECT COUNT ( + 61 ) + + + 17 @@ -10243,8 +10389,11 @@ 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\(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\. +query II valuesort SELECT 27 + + + 64 + + - NULLIF ( + 39, + - COUNT ( * ) * + 62 - COUNT ( * ) + + - 45 * + + 46 * + - 75 ) AS col2, + COUNT ( * ) * 18 AS col2 +---- +18 +52 query I rowsort label-1941 SELECT 86 + 23 * COUNT ( * ) * 78 @@ -10511,8 +10660,11 @@ SELECT 28 / + 1 + - 59 / 86 * 89 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(Int64\(46\)\)\) AS Int32\)\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + - CAST ( - COUNT ( ALL + 46 ) AS INTEGER ) ) AS col0, + 94 col0 +---- +1 +94 query I rowsort label-1991 SELECT + ( + - MIN ( ALL - - 32 ) ) + + - 22 AS col2 @@ -10931,8 +11083,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + ( + COUNT ( * ) ) - - 96 + + + 77 * 22 - 9 AS col0, 0 AS col0 +---- +0 +1782 query II rowsort label-2071 SELECT + 17, + 90 * + SUM ( - 58 ) - + + 63 AS col1 @@ -11555,8 +11710,11 @@ 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\(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\. +query II valuesort SELECT 18 - - COUNT ( * ) + - - 7 / - 33 + 17 + - 62 AS col2, + 91 AS col2 +---- +-26 +91 query I rowsort SELECT 21 * + + 85 * - 5 @@ -11760,8 +11918,11 @@ 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\(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\. +query II valuesort SELECT ALL - COALESCE ( + COUNT ( * ), 44 ) + - 82 AS col0, 10 * + 94 AS col0 +---- +-83 +940 query I rowsort SELECT - 60 + 69 * - 93 AS col2 @@ -11771,8 +11932,11 @@ SELECT - 60 + 69 * - 93 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "CASE \(\- Int64\(\-42\)\) WHEN Int64\(86\) THEN Int64\(79\) END \* Int64\(\-48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, CASE - - 42 WHEN + + 86 THEN + 79 END * - 48 AS col0 +---- +NULL +NULL query II rowsort label-2231 SELECT 80 col0, - COUNT ( * ) @@ -11858,8 +12022,12 @@ SELECT - 35 - + + 41 AS col2 # Datafusion - Expected - 39 # Datafusion - Expected - 5 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 39 AS col2, NULLIF ( 5, - + 18 ), 24 AS col2 +---- +24 +39 +5 query I rowsort label-2247 SELECT DISTINCT + - SUM ( + + COALESCE ( + 7, 56, + - ( + + 56 ) + COALESCE ( + 53, + - 94 ) ) ) AS col1 @@ -12048,8 +12216,11 @@ SELECT ALL + 89 * + ( + CAST ( + + 75 AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - -4644 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col1" at position 0 and "Int64\(86\) \* \(\- Int64\(54\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 80 AS col1, 86 * - + 54 AS col1 +---- +-4644 +-80 query I rowsort label-2282 SELECT ALL 9 + - 89 + - - NULLIF ( 58, + 88 * 98 + SUM ( - - 79 ) ) AS col0 @@ -12343,8 +12514,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(Int64\(30\), Int64\(50\)\)\)\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + ( - NULLIF ( + 30, 50 ) ) AS col1, 74 col1 +---- +30 +74 query I rowsort label-2336 SELECT + CASE - - COALESCE ( + CASE + - ( - 66 ) WHEN - - COUNT ( DISTINCT 38 ) + - + 66 * + NULLIF ( - + CAST ( NULL AS INTEGER ), + 97 ) * - SUM ( + - 46 ) * - 90 + + 82 THEN + 19 END, + CASE - 82 WHEN + ( - 36 ) THEN 55 * - 22 * + - 51 - 55 + 99 / COALESCE ( - 24, - COUNT ( * ) * + CASE WHEN NOT + 55 / + SUM ( DISTINCT 12 * 64 ) = 67 THEN - 14 END + 69, MIN ( 24 ) ) ELSE NULL END, + 32 ) WHEN + COUNT ( * ) THEN NULL WHEN - 70 THEN - 71 + 51 / - 66 ELSE 30 + COUNT ( * ) END + COALESCE ( - 84, 32, + 51 ) @@ -12721,8 +12895,12 @@ SELECT COUNT ( * ) * - NULLIF ( 56, MIN ( - 74 ) ) + - 56 AS col0 # Datafusion - Expected - 76 # Datafusion - Expected - -2744 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* \(\- Int64\(28\)\) \* Int64\(7\) AS col2" at position 1 and "Int64\(87\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 76 AS col1, 14 * - + 28 * 7 AS col2, 87 AS col2 +---- +-2744 +76 +87 query I rowsort label-2407 SELECT COUNT ( * ) * + 0 AS col2 @@ -13251,8 +13429,11 @@ SELECT - 7 + COUNT ( * ) * + 58 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(95\) AS Int32\)\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( 95 AS INTEGER ) col1, 79 AS col1 +---- +-95 +79 query I rowsort SELECT ALL - 65 + + 41 @@ -13453,8 +13634,11 @@ SELECT 38 + - 85 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18565 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* Int64\(79\) \* Int64\(\-5\) AS col0" at position 0 and "Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 * 79 * + - 5 AS col0, - 51 AS col0 +---- +-18565 +-51 query II rowsort label-2548 SELECT + - CAST ( NULL AS INTEGER ), + CASE + + 84 WHEN CAST ( + COALESCE ( + + 5, + 87, 93 + + + COUNT ( * ) ) AS INTEGER ) THEN NULL WHEN 4 THEN - 1 END * - NULLIF ( - 8, + - 68 * + - 0 + + + 10 ) * 73 @@ -13689,8 +13873,12 @@ SELECT + 61 + - COUNT ( * ) + - - 65 - COALESCE ( + + 6, ( ( + 36 ) ) + - 84 ) / # Datafusion - Expected - 43 # Datafusion - Expected - 105 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "max\(Int64\(25\)\) \+ Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 43 AS col1, MAX ( + 25 ) + 80 AS col1, - - ( 93 ) +---- +105 +43 +93 query I rowsort SELECT + + COALESCE ( + 49, 33 ) AS col1 @@ -13857,8 +14045,11 @@ SELECT ALL - 83 * + - COUNT ( * ) + - 58 - - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "coalesce\(Int64\(\-55\), Int64\(7\), Int64\(23\) \- Int64\(30\)\) / Int64\(10\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 33 AS col1, COALESCE ( - 55, 7, 23 - + 30 ) / + + 10 + COUNT ( * ) AS col1 +---- +-4 +33 query I rowsort label-2623 SELECT + 2 * - - 35 / - COUNT ( * ) col0 @@ -13960,8 +14151,11 @@ SELECT ALL - + NULLIF ( + - 7, + 48 * + ( 13 ) + + 21 + - 70 / + 77 ) + + + 34 - # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- \(\- sum\(Int64\(68\)\)\)\) \* Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 16 + - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) AS col2, - ( + ( - SUM ( ALL + + 68 ) ) ) * + - 0 AS col2 +---- +0 +NULL query II rowsort SELECT ALL 31 AS col2, - 65 @@ -14078,8 +14272,11 @@ SELECT NULLIF ( - - 83, - COUNT ( * ) ) + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(13\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(47\) \+ Int64\(54\), \(\- \(\- nullif\(Int64\(2\), Int64\(\-52\) \* Int64\(35\) \+ \(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\)\)\)\)\) \+ Int64\(43\) \- Int64\(14\) \- Int64\(98\) \* Int64\(90\) \* Int64\(\-7\) \* \(\- Int64\(75\)\) \* \(\- Int64\(16\)\)\)\) \* Int64\(\-5\) \+ Int64\(\-56\) AS col1" at position 0 and "nullif\(\(\- Int64\(\-73\)\), count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +73 +9 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -14412,8 +14609,11 @@ SELECT DISTINCT + + 32 * + + 44 * 69 / + + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-38\)\) AS col0" at position 0 and "Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + - 38 ) AS col0, 45 AS col0 +---- +38 +45 query I rowsort label-2728 SELECT ALL - + COUNT ( * ) * 2 + - 2 + - 99 * + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) / - + 76 * + 4 @@ -14712,8 +14912,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 24208 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "Int64\(34\) \* Int64\(8\) \* Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 19 AS col0, 34 * + 8 * 89 AS col0 +---- +19 +24208 query I rowsort SELECT 38 + + - 88 - - 59 AS col1 @@ -14749,8 +14952,11 @@ SELECT DISTINCT - 19 + 19 + + NULLIF ( - 28, - ( - 41 ) ) col1, 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- nullif\(Int64\(\-6\), \(\- Int64\(65\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\), Int64\(\-48\) \+ Int64\(4\) \* \(\- nullif\(\(\- Int64\(14\)\), Int64\(6\) \+ Int64\(\-90\) \+ \(\- coalesce\(Int64\(\-45\), Int64\(6\)\)\) \* Int64\(78\) \* Int64\(\-12\)\)\) \* Int64\(69\) \* \(\- Int64\(5\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( - NULLIF ( + - 6, - + 65 / - COUNT ( * ) ), - 48 + ( + 4 ) * - NULLIF ( - + 14, 6 + - 90 + - COALESCE ( - 45, + 6 ) * + 78 * - 12 ) * + 69 * - + 5 ) AS col0, COUNT ( * ) AS col0 +---- +-6 +1 query I rowsort label-2791 SELECT ALL - COUNT ( * ) + + ( + - 14 ) @@ -14789,8 +14995,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL COUNT ( DISTINCT + - 84 ) AS col0, + 58 / - 55 + COUNT ( * ) AS col2, - COUNT ( * ) AS col0 +---- +-1 +0 +1 query I rowsort SELECT - 77 * - - 2 * - + 95 @@ -15140,8 +15350,11 @@ SELECT ALL 48 - + 47 * - + 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 85 AS col0, + COUNT ( * ) col0 +---- +-85 +1 query I rowsort SELECT 54 - + - 16 AS col1 @@ -15753,8 +15966,11 @@ SELECT + 55 + 0 # 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 "min\(Int64\(\-9\)\) AS col2" at position 0 and "Int64\(90\) / max\(Int64\(84\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( - 9 ) col2, + 90 / MAX ( + 84 ) col2 +---- +-9 +1 query I rowsort SELECT 32 + + + 25 * - + 62 * + + 8 @@ -15876,8 +16092,11 @@ SELECT 46 + 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-14\), \(\- Int64\(2\)\) \* Int64\(30\) \+ \(\- Int64\(66\)\)\) AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + NULLIF ( - 14, - + 2 * 30 + ( - + 66 ) ) AS col2, 77 AS col2 +---- +-14 +77 query I rowsort SELECT - - ( 22 ) AS col1 @@ -15887,14 +16106,20 @@ SELECT - - ( 22 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 231 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col0" at position 0 and "Int64\(95\) \+ Int64\(97\) \- Int64\(\-39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 64 col0, + 95 + + 97 - - 39 AS col0 +---- +-64 +231 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 11 AS col0, - COUNT ( * ) AS col0 +---- +-1 +11 query I rowsort SELECT DISTINCT + COALESCE ( 81, 30 ) @@ -16183,8 +16408,11 @@ SELECT DISTINCT + MIN ( - 64 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -191 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(avg\(DISTINCT Int64\(24\)\) AS Int32\)\) \* Int64\(8\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( + AVG ( DISTINCT + 24 ) AS INTEGER ) * + 8 - + - COUNT ( * ) AS col2, + COUNT ( * ) AS col2 +---- +-191 +1 query I rowsort label-3063 SELECT - 12 * + COUNT ( * ) @@ -18152,8 +18380,11 @@ SELECT ALL - 57 * - + 0 * + 38 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-68\)\) AS col1" at position 0 and "Int64\(\-23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COALESCE ( - CAST ( NULL AS INTEGER ), - 68 ) AS col1, - 23 AS col1 +---- +-23 +-68 query I rowsort label-3441 SELECT DISTINCT + SUM ( + 35 ) @@ -18184,8 +18415,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col1" at position 0 and "Int64\(92\) \* Int64\(12\) / \(\- Int64\(\-31\)\) \+ Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 28 col1, 92 * 12 / - - 31 + + 4 AS col1 +---- +28 +39 query II rowsort label-3447 SELECT DISTINCT 83 * - 72 + - 64 AS col0, + COUNT ( - COALESCE ( + - 90, - ( - ( 33 ) ) ) ) AS col2 @@ -18386,8 +18620,11 @@ NULL # 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\(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\. +query II valuesort SELECT - COUNT ( * ) + + - 80 AS col0, + 64 AS col0 +---- +-81 +64 query I rowsort label-3486 SELECT ALL 17 / + + 41 + + 33 AS col1 @@ -18444,8 +18681,11 @@ SELECT MAX ( DISTINCT - - 32 ) * - ( + 64 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3270 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \- Int64\(\-31\) \+ Int64\(48\) \- \(\- Int64\(13\)\) \* Int64\(\-83\) \* Int64\(\-3\) \+ Int64\(\-62\) AS col2" at position 0 and "Int64\(\-70\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 16 - - 31 + + + 48 - - + 13 * - 83 * - 3 + - 62 AS col2, - 70 + + COUNT ( * ) AS col2 +---- +-69 +3270 query I rowsort label-3496 SELECT 37 * - + 5 + - + 13 + - COUNT ( * ) + 91 * + - 1 * 19 * + SUM ( DISTINCT 87 ) AS col1 @@ -18810,8 +19050,11 @@ SELECT ALL - 8 * + NULLIF ( + ( + + 77 ), + 93 + + - MIN ( ALL + 10 ) ) * 90 * 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 AS col0, 11 AS col0 +---- +11 +87 query I rowsort SELECT + 83 + ( + - 18 ) * - 21 AS col2 @@ -19452,8 +19695,11 @@ SELECT DISTINCT - 22 / + 27 * - + 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -1726 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col1" at position 0 and "Int64\(68\) \+ Int64\(\-23\) \* Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 28 col1, ( + 68 ) + - 23 * + 78 AS col1 +---- +-1726 +28 query I rowsort label-3688 SELECT COUNT ( * ) * + - 37 * 66 + 66 AS col0 @@ -19697,8 +19943,11 @@ SELECT 98 + - 99 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \- Int64\(\-75\) AS col2" at position 0 and "Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 - - 75 AS col2, 72 AS col2 +---- +5 +72 query II rowsort label-3734 SELECT ALL - + COUNT ( * ) / 57 AS col1, 71 AS col0 @@ -20450,8 +20699,11 @@ SELECT ALL - 11 - + 25 / ( + 85 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2576 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(56\) THEN CASE Int64\(\-77\) WHEN \(\- \(\- CAST\(NULL AS Int32\)\)\) THEN NULL WHEN Int64\(2\) THEN \(\- Int64\(62\)\) \* Int64\(85\) \* \(\- Int64\(35\)\) ELSE \(\- Int64\(\-37\)\) \* Int64\(51\) \+ Int64\(75\) / Int64\(72\) END WHEN Int64\(85\) THEN NULL ELSE Int64\(28\) END \* Int64\(\-92\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-2576 +0 query I rowsort label-3878 SELECT 5 + COUNT ( * ) * - + 40 * + 61 col0 @@ -20531,8 +20783,11 @@ SELECT DISTINCT - ( + 13 ) * 18 / - - ( COUNT ( * ) ) # 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 "coalesce\(Int64\(48\), Int64\(\-30\)\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COALESCE ( + 48, + - 30 ) AS col2, + 42 AS col2 +---- +42 +48 query I rowsort SELECT ALL NULLIF ( - 22, 8 ) col0 @@ -20803,8 +21058,12 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-98\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + NULLIF ( + 12, 79 ) AS col1, - 50 * - + 98 + 73, + + COUNT ( * ) + - 98 AS col1 +---- +-97 +12 +4973 query II rowsort label-3945 SELECT ALL - 77 * - 0 * + - 68 - - 98 AS col0, 52 / - + 73 * - 98 AS col2 @@ -21523,8 +21782,11 @@ SELECT ALL 77 - + MIN ( ALL - 1 ) AS col0, 79 * - COALESCE ( + 55, + 84 ) AS col # 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 "Int64\(\-29\) AS col2" at position 0 and "Int64\(75\) \- count\(Int64\(23\)\) \* \(\- Int64\(27\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 29 AS col2, 75 - + COUNT ( ALL + + 23 ) * - + 27 col2 +---- +-29 +102 query I rowsort label-4084 SELECT + 7 / 74 - + - NULLIF ( + + 84, + - 72 ) * 29 * 91 * - ( + NULLIF ( - - 68, + + 90 ) ) AS col1 @@ -21947,8 +22209,11 @@ SELECT + 32 + - - 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -1076 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "Int64\(\-12\) \- Int64\(\-28\) \* Int64\(\-38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 33 AS col1, - 12 - - 28 * - 38 col1 +---- +-1076 +33 query I rowsort SELECT ALL 54 * 60 AS col0 @@ -22030,8 +22295,11 @@ 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 "CAST\(NULL AS Float64\) AS col1" at position 0 and "\(\- Int64\(\-6\)\) \* Int64\(50\) / Int64\(\-45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + CAST ( NULL AS FLOAT8 ) AS col1, - ( - 6 ) * 50 / + - 45 AS col1 +---- +-6 +NULL query I rowsort SELECT COALESCE ( 34, + CASE - 23 WHEN 85 * - ( + 79 ) THEN NULL WHEN 17 + 15 - 29 + - + 92 * - - 81 / 47 * - 32 * - - 79 THEN + + 57 END + - + ( 53 ) * + 42, - 81 ) @@ -22376,8 +22644,11 @@ SELECT DISTINCT - 9 * + + 51 + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col1" at position 0 and "Int64\(26\) \+ Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 AS col1, 26 + 84 AS col1 +---- +110 +72 query I rowsort label-4247 SELECT - ( - 98 ) * + CASE - - 41 WHEN + 64 + - SUM ( DISTINCT 35 ) THEN NULL WHEN - + COALESCE ( - - 53, + + 71 * + 48 * - + 96 ) THEN + 88 + - - ( 89 ) END / + - CASE 61 WHEN + - 97 THEN - + COUNT ( * ) * - 60 WHEN NULLIF ( + CAST ( NULL AS INTEGER ), COUNT ( * ) + + 12 + ( + - ( - 68 ) ) * - 67 * 75 - - 93 * + 75 ) - + 85 / COUNT ( * ) * - 60 THEN NULL END + 71 @@ -22479,8 +22750,11 @@ SELECT - 52 * 74 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- Int64\(0\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( - ( + + 0 ) ) + + + COUNT ( * ) AS col1, - 89 col1 +---- +-89 +2 query I rowsort SELECT ALL - 37 - + 92 @@ -22836,8 +23110,11 @@ SELECT ALL - 64 * + COUNT ( * ) * - 61 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "Int64\(\-24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 AS col1, - 24 AS col1 +---- +-24 +71 query II rowsort label-4333 SELECT DISTINCT 72 AS col1, - ( - + CAST ( + - 4 AS INTEGER ) ) * + 60 + + 25 * - ( ( 1 ) ) + + 96 @@ -23529,8 +23806,11 @@ SELECT - NULLIF ( - 33, + + COUNT ( * ) / - CAST ( 68 AS INTEGER ) ) # 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 col2" at position 0 and "Int64\(\-17\) \+ Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 AS col2, - 17 + - 12 AS col2 +---- +-29 +29 query I rowsort label-4466 SELECT + CAST ( - - 20 AS INTEGER ) @@ -23881,8 +24161,11 @@ SELECT ALL + COUNT ( * ) + 14 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ Int64\(\-81\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 23 + - 81 AS col2, 26 AS col2 +---- +-58 +26 query I rowsort SELECT ALL 76 + - 34 AS col1 @@ -23913,8 +24196,11 @@ 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\(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\. +query II valuesort SELECT ALL 37 AS col0, 94 * 83 * - CASE COUNT ( * ) WHEN + COUNT ( * ) * - 93 THEN COUNT ( * ) ELSE NULL END AS col0 +---- +37 +NULL query I rowsort label-4539 SELECT DISTINCT CAST ( NULL AS INTEGER ) - - 19 @@ -24129,8 +24415,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - ( COUNT ( * ) ) AS col2, - 66 * - - 25 * 21 AS col2 +---- +-1 +-34650 query I rowsort label-4579 SELECT DISTINCT + 79 * + 14 - - CAST ( NULL AS INTEGER ) + - + 72 @@ -24449,8 +24738,11 @@ SELECT + 70 + - COUNT ( - ( 90 ) ) * + 3 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col2" at position 0 and "Int64\(\-36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 99 AS col2, - 36 AS col2 +---- +-36 +-99 query I rowsort SELECT - 52 - 12 + - - 59 AS col1 @@ -24743,8 +25035,11 @@ SELECT DISTINCT - - NULLIF ( - 40, 48 * + 64 * + 97 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-75\)\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - 75 ) AS col0, ( + 28 ) AS col0 +---- +28 +75 query I rowsort SELECT DISTINCT + 53 * + 2 + 94 @@ -24801,8 +25096,11 @@ SELECT + 52 AS col2, 49 - ( + - MAX ( - 55 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - -130 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col0" at position 0 and "Int64\(\-62\) \+ Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 61 col0, - 62 + - 68 AS col0 +---- +-130 +-61 query I rowsort label-4708 SELECT DISTINCT + MAX ( + + ( 20 ) ) + COUNT ( * ) * 67 @@ -24885,8 +25183,12 @@ SELECT ALL - ( + 64 ) / - 36 - + 18 # Datafusion - Expected - NULL # Datafusion - Expected - 110 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \* \(\- Int64\(\-93\)\) AS col2" at position 0 and "min\(Int64\(38\)\) \+ Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - 60 * - - CAST ( NULL AS INTEGER ) * - - 93 AS col2, + MIN ( ALL + 38 ) + 72 col2, + ( 39 ) AS col2 +---- +110 +39 +NULL query II rowsort label-4724 SELECT + 81 AS col0, MIN ( ALL + 27 ) @@ -25046,8 +25348,11 @@ SELECT + - 89 / + 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - -163 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \+ Int64\(\-80\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 83 + - 80 AS col0, 77 AS col0 +---- +-163 +77 query II rowsort SELECT - 9 + + 84, 68 * 27 AS col2 @@ -25677,8 +25982,11 @@ SELECT + 75 / - COUNT ( * ) # 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\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 AS col2, 69 AS col2 +---- +69 +94 query I rowsort SELECT - 57 * 44 AS col0 @@ -26478,8 +26786,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, + 75 * 89 AS col2 +---- +-1 +6675 query I rowsort label-5032 SELECT + NULLIF ( + 31, - - 2 ) * - 10 * + COALESCE ( - COUNT ( * ), + + 54 ) - + 79 @@ -26561,8 +26872,11 @@ SELECT ALL + 72 AS col2, 95 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(4\) / Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) col1, 4 / + 4 AS col1 +---- +1 +1 query I rowsort label-5048 SELECT COUNT ( * ) / + 17 @@ -26930,8 +27244,11 @@ SELECT DISTINCT 12 * + 22, 47 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 68 AS col1, 78 AS col1 +---- +68 +78 query II rowsort SELECT DISTINCT 20 AS col0, ( 20 ) AS col1 @@ -26990,8 +27307,11 @@ SELECT ALL - COUNT ( * ), 2 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "Int64\(53\) \+ Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 56 AS col2, 53 + - 88 col2 +---- +-35 +56 query I rowsort label-5130 SELECT ALL 50 + + + 4 - - + 51 + - 68 / - - 46 + ( + 83 ) / - + COUNT ( + ( - 42 ) ) @@ -27227,8 +27547,12 @@ 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\(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\. +query III valuesort SELECT ALL 88 + - 0 - - COUNT ( * ) * - 45 * - COUNT ( * ) * ( - 95 ) AS col2, - 78, + - 25 col2 +---- +-25 +-4187 +-78 query I rowsort SELECT DISTINCT - ( - - 23 ) + - 19 AS col0 @@ -27485,8 +27809,11 @@ SELECT - ( + ( - 0 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ CASE Int64\(75\) WHEN Int64\(67\) \* Int64\(46\) / Int64\(59\) / Int64\(16\) THEN Int64\(32\) WHEN \(\- Int64\(\-56\)\) \+ Int64\(6\) THEN NULL END \+ Int64\(\-20\) \* Int64\(87\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 16 + + CASE + 75 WHEN 67 * + + 46 / + 59 / 16 THEN + 32 WHEN - - 56 + + 6 THEN NULL END + - 20 * + 87 col0, + 69 AS col0 +---- +69 +NULL query I rowsort SELECT ALL NULLIF ( 55, + - 67 + + 31 + + 8 ) @@ -27767,8 +28094,11 @@ SELECT + COALESCE ( - - COUNT ( * ), - ( + + 15 ) * 72, COALESCE ( 27, - 55, 8 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "Int64\(0\) \+ Int64\(14\) \+ Int64\(\-18\) \- \(\- CASE Int64\(\-2\) WHEN \(\- Int64\(\-6\)\) THEN NULL ELSE Int64\(47\) END\) \+ Int64\(54\) \* Int64\(26\) \* Int64\(\-34\) \+ Int64\(\-91\) / CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 AS col0, + 0 + ( + + 14 ) + - 18 - - CASE - 2 WHEN - - 6 THEN NULL ELSE 47 END + 54 * + 26 * - 34 + + - 91 / + + CAST ( NULL AS INTEGER ) AS col0 +---- +14 +NULL query I rowsort SELECT + + 8 * + + 83 + CASE 84 WHEN + 90 THEN NULL WHEN + + 22 THEN NULL ELSE 33 END @@ -27873,8 +28203,12 @@ SELECT ALL 41, + 76 AS col1 # Datafusion - Expected - 9408 # Datafusion - Expected - -14 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* Int64\(96\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 98 * + 96 AS col1, COUNT ( * ) * - 14, COUNT ( * ) AS col1 +---- +-14 +1 +9408 query II rowsort label-5300 SELECT DISTINCT COUNT ( * ) * + 0, 4 * - + 19 + + 32 * 2 AS col0 @@ -28106,8 +28440,11 @@ SELECT - - 67 * COUNT ( * ) * 44 * + 48 + + - 51 * + - 23 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -170 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \- Int64\(87\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 83 - + 87 AS col1, + 37 col1 +---- +-170 +37 query I rowsort SELECT ALL + 95 * + 86 AS col2 @@ -28387,8 +28724,11 @@ SELECT COUNT ( ALL + - 94 ) + 0 # 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\(58\) \+ Int64\(\-97\) AS col0" at position 0 and "\(\- coalesce\(\(\- Int64\(\-53\)\), Int64\(62\)\)\) / \(\- Int64\(86\)\) \* Int64\(83\) \* Int64\(91\) \* Int64\(63\) / \(\- Int64\(\-49\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 58 + + - 97 AS col0, - COALESCE ( - - 53, + + 62 ) / - + 86 * 83 * + 91 * + 63 / - - 49 AS col0 +---- +-39 +0 query II rowsort label-5396 SELECT COALESCE ( + 1, - 20 / - 38 + 42 ) * - 35 / - 74 + NULLIF ( + 61, - - COUNT ( * ) - CAST ( + 24 AS INTEGER ) + COUNT ( * ) * 77 ), 58 AS col2 @@ -28466,8 +28806,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) + - + 76 AS col2, + ( + ( - 66 ) ) AS col2 +---- +-66 +-75 query I rowsort label-5411 SELECT ALL MAX ( ALL - 81 ) + + CASE + CAST ( NULL AS INTEGER ) WHEN 83 / + + 40 THEN NULL WHEN - + 27 THEN NULL ELSE - - 52 END * - 13 * + 88 @@ -29142,8 +29485,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 52 col0, 66 * - 84 * - - COUNT ( * ) AS col0 +---- +-5544 +52 query I rowsort label-5539 SELECT COUNT ( * ) + - 73 col1 @@ -29443,8 +29789,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COALESCE ( - COUNT ( * ), - COUNT ( * ), 38 + 60 ) AS col2, - 69 * - ( 47 ) * - - 47 AS col2 +---- +-1 +152421 query I rowsort SELECT + 34 + - + 34 * + + ( + 64 ) + + - ( - + 53 ) AS col2 @@ -30067,8 +30416,12 @@ SELECT ALL - 40 * + 41 AS col2 # Datafusion - Expected - -82 # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(82\), Int64\(63\) / \(\- Int64\(\-4\)\) \* \(\- Int64\(48\)\)\)\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - NULLIF ( + + 82, 63 / - - 4 * - + ( 48 ) ) AS col1, ( - CASE - 59 WHEN + + 17 THEN + 10 WHEN 82 THEN 25 END ) * - 32 + + COALESCE ( 64, + + 15, + 26 * 92, - - 14 ) + - 23, 91 col1 +---- +-82 +91 +NULL query I rowsort label-5712 SELECT ALL - + 41 / 99 AS col2 @@ -30134,8 +30487,11 @@ SELECT ALL - COUNT ( * ) * - - NULLIF ( + ( 61 ), - - 77 ) + + + COUNT ( * ) + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - -172 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col2" at position 0 and "Int64\(\-94\) \- Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 AS col2, - 94 - + 78 AS col2 +---- +-172 +87 query I rowsort SELECT DISTINCT - 82 * - 15 + + 56 AS col0 @@ -30174,8 +30530,11 @@ SELECT - 91 * - - 48 / + 4 # 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 "coalesce\(Int64\(9\), Int64\(53\) \* Int64\(11\)\) AS col1" at position 0 and "Int64\(\-53\) / Int64\(96\) / Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COALESCE ( + 9, 53 * 11 ) AS col1, - 53 / + ( + 96 ) / - 1 AS col1 +---- +0 +9 query I rowsort label-5732 SELECT + CASE - 57 WHEN + 57 + 6 THEN + 97 / MAX ( DISTINCT - 84 ) ELSE NULL END + + COALESCE ( - 16, + 79 ) + - - 26 * COUNT ( * ) AS col2 @@ -30423,8 +30782,11 @@ SELECT DISTINCT 75 - - SUM ( ALL + 23 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col2, + 61 AS col2 +---- +1 +61 query I rowsort SELECT ALL + 24 * - 82 AS col1 @@ -30466,8 +30828,11 @@ SELECT 44, 18 - + 72 + - - 0 * 34 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 37 AS col0, 63 AS col0 +---- +-37 +63 query II rowsort label-5789 SELECT DISTINCT - COUNT ( * ) AS col0, - 27 - - NULLIF ( - + 8, + 81 + 42 ) @@ -30539,8 +30904,11 @@ SELECT - + 13, 49 * + MAX ( - 10 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-42\) AS Int32\) \+ Int64\(\-56\) \+ Int64\(33\) AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - 42 AS INTEGER ) + - 56 + 33 AS col1, 52 AS col1 +---- +-65 +52 query I rowsort SELECT - 21 * + 27 * + 6 @@ -30550,8 +30918,11 @@ SELECT - 21 * + 27 * + 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ Int64\(78\) \* Int64\(98\) / Int64\(\-45\) AS col1" at position 0 and "Int64\(42\) \+ max\(Int64\(18\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 91 + + 78 * 98 / + - 45 AS col1, 42 + + MAX ( 18 ) AS col1 +---- +-78 +60 query I rowsort SELECT + 65 + - - 39 @@ -30617,8 +30988,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + NULLIF ( 23, COUNT ( - - 21 ) * 5 + COUNT ( * ) * 44 ) AS col0, 70 AS col0 +---- +23 +70 query I rowsort SELECT COALESCE ( + 28, - - 89 ) @@ -30932,8 +31306,11 @@ SELECT ALL 45 * - 86 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 164 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \+ \(\- Int64\(\-48\)\) AS col0" at position 0 and "Int64\(87\) \- Int64\(5\) \- \(\- Int64\(82\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 15 + - - 48 AS col0, + 87 - 5 - - + 82 AS col0 +---- +164 +63 query I rowsort label-5877 SELECT 95 + + CAST ( 65 AS INTEGER ) + - + 37 * - - COUNT ( * ) * + + CASE + 38 WHEN - 83 * 25 * + 65 + 70 - - 25 * 75 - + 54 THEN NULL ELSE + 79 END * + + 99 - + + 92 / + - COUNT ( * ) AS col0 @@ -30997,8 +31374,12 @@ SELECT + + 26 * + NULLIF ( - - 17, - + 57 ) + + - NULLIF ( - 43, + 18 * ( 99 ) ) # Datafusion - Expected - -45320 # Datafusion - Expected - 7410 # Datafusion - Expected - -4329 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(30\) \* Int64\(\-36\) \+ Int64\(40\) AS col2" at position 0 and "Int64\(\-95\) \* \(\- \(\- sum\(\(\- Int64\(78\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 42 * 30 * - 36 + 40 AS col2, - 95 * - - SUM ( - + 78 ) col2, + - 68 * + 64 + 23 AS col0 +---- +-4329 +-45320 +7410 query I rowsort SELECT ALL - COALESCE ( - 86, + - 52 ) AS col1 @@ -31111,8 +31492,11 @@ 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\(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\. +query II valuesort SELECT + 51 AS col0, + COUNT ( * ) + + MAX ( + 99 ) + + 29 + - - 80 * - + ( - 32 ) AS col0 +---- +2689 +51 query I rowsort label-5911 SELECT DISTINCT + COALESCE ( + - ( + COUNT ( * ) ), - - 16 + + 85 + NULLIF ( - 98, 0 ) * - 65 ) @@ -31196,8 +31580,12 @@ SELECT - 4 - - 92 AS col2 # Datafusion - Expected - 23 # Datafusion - Expected - 64 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 23 AS col2, 64 AS col2, - + 78 col0 +---- +-78 +23 +64 query I rowsort label-5927 SELECT ALL MIN ( ALL + 4 ) col0 @@ -31258,8 +31646,11 @@ SELECT DISTINCT COALESCE ( - - 78, + CAST ( NULL AS INTEGER ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 4610 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 0 and "Int64\(87\) \* Int64\(53\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 58 AS col1, 87 * + 53 - COUNT ( * ) AS col1 +---- +4610 +58 query I rowsort label-5939 SELECT DISTINCT + COUNT ( ALL + 6 ) AS col0 @@ -31290,8 +31681,11 @@ SELECT - - ( - 86 ) * + COUNT ( * ) + MAX ( 55 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col2" at position 0 and "Int64\(\-67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 AS col2, - 67 col2 +---- +-67 +59 query I rowsort label-5945 SELECT ALL + 70 * + + ( COUNT ( * ) ) AS col0 @@ -31531,8 +31925,11 @@ SELECT ALL - COUNT ( * ) * + 86 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - -185 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ Int64\(\-39\) \- Int64\(44\) AS col0" at position 0 and "Int64\(5\) \* Int64\(\-37\) \* Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 + - 39 - 44 AS col0, 5 * + - 37 * 1 AS col0 +---- +-17 +-185 query II rowsort SELECT + 57 AS col1, 55 @@ -31946,8 +32343,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-67\), Int64\(29\) / Int64\(2\) \+ Int64\(13\)\) AS col2" at position 0 and "Int64\(10\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( - 67, 29 / 2 + 13 ) AS col2, 10 * + + ( CAST ( NULL AS INTEGER ) ) col2 +---- +-67 +NULL query I rowsort SELECT ALL - 25 * + + 37 + - + 25 AS col2 @@ -32255,8 +32655,11 @@ SELECT 3 + MAX ( DISTINCT - 69 ) + 46 + - + 83 + 22 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(78\) AS Int32\)\)\) AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - CAST ( 78 AS INTEGER ) ) AS col2, + 40 AS col2 +---- +40 +78 query I rowsort SELECT DISTINCT 15 + + 29 AS col2 @@ -32494,8 +32897,11 @@ SELECT + 37 * + 99 * - 42 * - 85 * - - 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 140 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(35\), coalesce\(nullif\(Int64\(7\), Int64\(\-45\)\), Int64\(43\) \+ Int64\(93\)\)\) AS col2" at position 0 and "Int64\(86\) \+ \(\- Int64\(\-34\)\) \+ Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( + 35, + COALESCE ( + NULLIF ( + 7, - 45 ), 43 + 93 ) ) AS col2, 86 + - - 34 + + 20 AS col2 +---- +140 +35 query I rowsort SELECT ALL NULLIF ( + + 33, - 42 * + + ( - - 76 ) ) * - 94 * - 33 + - - 18 - - 25 AS col1 @@ -32619,8 +33025,11 @@ SELECT DISTINCT COUNT ( ALL + 36 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - - CAST ( NULL AS INTEGER ) ) AS col0, 56 AS col0 +---- +56 +NULL query I rowsort label-6196 SELECT ALL COUNT ( * ) + + - 74 AS col1 @@ -32704,8 +33113,11 @@ SELECT - - 13 * + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 96 ) AS col1, 81 col1 +---- +-96 +81 query II rowsort label-6212 SELECT COUNT ( * ) * 86 + 13 + 17 + + 21 * - 66 + - 35 * - 76 - + 96 AS col1, 24 * 65 @@ -32929,14 +33341,20 @@ SELECT 39 / - 96 # 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 col2" at position 0 and "nullif\(\(\- Int64\(\-76\)\), Int64\(\-56\) \+ Int64\(\-84\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 54 AS col2, + NULLIF ( - ( + - 76 ), - 56 + - 84 ) AS col2 +---- +54 +76 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(6\) / Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, 6 / 67 col0 +---- +0 +1 query I rowsort SELECT 29 + ( - - 62 ) AS col1 @@ -32973,8 +33391,11 @@ SELECT ALL COUNT ( * ) AS col1, + CAST ( 94 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - -813 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col2" at position 0 and "\(\- Int64\(\-61\)\) \+ Int64\(19\) \* Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 79 AS col2, - ( - 61 ) + + 19 * - 46 col2 +---- +-79 +-813 query I rowsort SELECT 73 - 66 * + + 56 + + 53 col1 @@ -33096,8 +33517,11 @@ SELECT + + ( - - 91 ) + + 34 * - 29 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(93\)\)\) \* \(\- Int64\(\-44\)\) AS col2" at position 0 and "Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + - COUNT ( + 93 ) ) * - - 44 AS col2, - 41 AS col2 +---- +-41 +-44 query I rowsort label-6286 SELECT - 92 + - SUM ( 14 ) @@ -33358,8 +33782,11 @@ SELECT 76 * - ( + - 58 ) AS col1, + 90 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col0" at position 0 and "Int64\(2\) \* Int64\(\-11\) \- nullif\(Int64\(27\), \(\- sum\(DISTINCT Int64\(14\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 33 AS col0, 2 * + - 11 - + + NULLIF ( + 27, + - SUM ( DISTINCT 14 ) ) AS col0 +---- +-49 +33 query I rowsort label-6337 SELECT - 35 / - 77 - + 75 @@ -33503,8 +33930,12 @@ SELECT ALL MAX ( ALL 51 ) * COUNT ( * ) + 55 col1 # Datafusion - Expected - -10 # Datafusion - Expected - -34 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) / Int64\(\-5\) AS col2" at position 0 and "coalesce\(\(\- CAST\(Int64\(34\) AS Int32\)\), Int64\(37\), Int64\(48\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 50 / - 5 AS col2, COALESCE ( - + CAST ( + 34 AS INTEGER ), + 37, + 48 ) AS col2, - + COUNT ( * ) +---- +-1 +-10 +-34 query II rowsort label-6364 SELECT - ( - SUM ( 35 ) ) / - - 23, 59 AS col1 @@ -34655,8 +35086,11 @@ SELECT 33 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 AS col0, 63 AS col0 +---- +63 +99 query I rowsort SELECT DISTINCT 55 * + - 54 * - 59 AS col2 @@ -34672,8 +35106,11 @@ SELECT ALL 90 + - - 20, CAST ( + 28 AS INTEGER ) + - 28 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -1970 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "Int64\(\-31\) \* min\(Int64\(7\)\) \+ Int64\(\-49\) \+ Int64\(71\) \- Int64\(\-71\) \* Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 AS col0, - 31 * + MIN ( 7 ) + - 49 + + 71 - - 71 * - 25 AS col0 +---- +-1970 +86 query I rowsort SELECT ALL + ( - + 4 ) + - - 85 + + ( + 20 ) - - 39 @@ -34757,8 +35194,12 @@ SELECT ALL - NULLIF ( + 45, + 53 ) AS col1 # Datafusion - Expected - -45 # Datafusion - Expected - 7 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 45 AS col0, + 7 AS col0, 65 +---- +-45 +65 +7 query I rowsort label-6607 SELECT ALL - 53 * - COUNT ( ALL - + 73 ) @@ -35350,8 +35791,11 @@ SELECT + 4 + 65 * 59 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* \(\- sum\(Int64\(1\)\)\) \+ Int64\(25\) AS col1" at position 0 and "CAST\(NULL AS Float64\) \* Int64\(\-74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + 79 * - SUM ( ALL 1 ) + + 25 AS col1, CAST ( NULL AS FLOAT8 ) * - 74 AS col1 +---- +-54 +NULL query I rowsort label-6721 SELECT ALL NULLIF ( - CAST ( NULL AS INTEGER ), CAST ( - - 15 AS INTEGER ) * 79 ) * CAST ( 54 AS INTEGER ) @@ -35652,8 +36096,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * + - COUNT ( * ) AS col2, 26 AS col2 +---- +1 +26 query II rowsort SELECT - 69 AS col2, + 69 @@ -35827,8 +36274,11 @@ SELECT - COUNT ( * ) + + - ( + NULLIF ( + + 32, 51 ) ) * COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-90\) AS Int32\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - 90 AS INTEGER ) AS col2, 95 col2 +---- +-90 +95 query II rowsort SELECT + 19 * + 36, - 22 * 6 + 20 col1 @@ -35998,8 +36448,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 21 AS col0, 73 col0 +---- +21 +73 query I rowsort SELECT 24 * + 81 + + 14 @@ -36397,8 +36850,11 @@ SELECT + - 26 + + 16 # 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\(\-17\) \- Int64\(\-55\) AS col1" at position 0 and "Int64\(97\) \- Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + - 17 ) - - 55 col1, 97 - + 97 AS col1 +---- +0 +38 query I rowsort SELECT + 83 * - 40 AS col1 @@ -36474,8 +36930,11 @@ SELECT - COALESCE ( - - 32, + 91 * - 65 * ( SUM ( - 29 ) ) ) - - 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(avg\(Int64\(8\)\) AS Int32\) AS col2" at position 0 and "Int64\(\-57\) \+ Int64\(93\) \+ Int64\(71\) \- Int64\(1\) \+ Int64\(\-32\) \+ Int64\(18\) \+ CASE Int64\(64\) WHEN Int64\(\-99\) THEN Int64\(85\) \+ Int64\(28\) ELSE NULL END \* Int64\(26\) \+ Int64\(44\) / Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( CAST ( + AVG ( 8 ) AS INTEGER ) ) AS col2, - 57 + + + 93 + + 71 - 1 + - 32 + + 18 + + CASE 64 WHEN - 99 THEN + 85 + + 28 ELSE NULL END * 26 + 44 / 90 AS col2 +---- +8 +NULL query I rowsort label-6937 SELECT - CASE + NULLIF ( 99, 28 / + - 29 * + COALESCE ( - 62, - 53 ) + + + 98 ) WHEN + 1 / - 51 + - - 51 + 62 * + + ( 83 ) * + 44 * + COUNT ( * ) THEN ( - 13 ) WHEN - 95 THEN + ( 31 ) END + 15 @@ -36859,8 +37318,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * 13 * - NULLIF ( 98, + ( + - 8 ) ) AS col0, 2 * - 20 + - 61 AS col0 +---- +-101 +-1274 query I rowsort label-7009 SELECT + 84 / 19 + 36 + - + 43 @@ -36922,8 +37384,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - -1188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col2" at position 0 and "Int64\(\-21\) \+ Int64\(\-42\) \+ Int64\(25\) \* Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 68 AS col2, - 21 + - 42 + 25 * + - 45 AS col2 +---- +-1188 +-68 query I rowsort SELECT ALL + 78 - 70 * - 30 AS col1 @@ -37203,8 +37668,11 @@ SELECT - 77 + + 96 * + 5 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(13\)\) AS col1" at position 0 and "Int64\(\-29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 13 AS col1, - 29 AS col1 +---- +-13 +-29 query I rowsort SELECT ALL + - 9 + + + 28 + - 65 * + 51 * 14 AS col0 @@ -37308,8 +37776,11 @@ SELECT ALL 26 * - 31 AS col1 # 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 "Int64\(43\) / Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 92 AS col0, 43 / 92 AS col0 +---- +0 +92 query II rowsort label-7095 SELECT + 45 col0, + NULLIF ( 87, - ( + COUNT ( * ) ) * - + 44 ) + - 8 AS col1 @@ -37771,8 +38242,11 @@ SELECT DISTINCT - + 68 * - - COUNT ( * ) * + 52 AS col2, 83 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 135 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col0" at position 0 and "Int64\(81\) \+ Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 52 AS col0, 81 + 54 AS col0 +---- +135 +52 query I rowsort SELECT ALL - - 18 + + 20 AS col1 @@ -37976,8 +38450,11 @@ SELECT ALL - ( + 93 ) + + COALESCE ( + 5, + 90 ) / + 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- nullif\(Int64\(74\), \(\- Int64\(60\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 60 * + COUNT ( * ) AS col1, - NULLIF ( 74, - ( + + 60 ) ) AS col1 +---- +-60 +-74 query I rowsort label-7222 SELECT CASE + - 41 WHEN + COUNT ( * ) THEN - + COUNT ( * ) ELSE + + 73 + - + MAX ( - 37 ) + COUNT ( * ) END AS col2 @@ -38426,8 +38903,11 @@ SELECT 49 - + 17 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -2001 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col2" at position 0 and "Int64\(29\) \* Int64\(\-69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 5 AS col2, 29 * - 69 AS col2 +---- +-2001 +5 query I rowsort label-7307 SELECT COUNT ( * ) + - + NULLIF ( - 11, + - 38 ) AS col1 @@ -38490,8 +38970,11 @@ SELECT 59 * - 67 + 0 AS col1 # 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 "Int64\(3\) AS col0" at position 0 and "Int64\(68\) \+ \(\- Int64\(\-6\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 3 AS col0, 68 + - - 6 AS col0 +---- +3 +74 query II rowsort label-7319 SELECT ALL + 21 * - 60 + - 54, SUM ( ALL + 86 ) AS col1 @@ -38577,8 +39060,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + + 7 AS col1, + 24 AS col1 +---- +24 +8 query I rowsort SELECT ALL 84 + + 99 + - 91 @@ -38740,8 +39226,11 @@ SELECT ALL - 67 + + 78 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 0 and "Int64\(\-95\) \+ CAST\(Int64\(67\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 AS col2, - 95 + + CAST ( 67 AS INTEGER ) col2 +---- +-28 +26 query I rowsort label-7367 SELECT ALL + 40 + - + COUNT ( * ) + + 18 * + NULLIF ( - 8, 23 * + 74 * - 28 ) col0 @@ -38813,8 +39302,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \* \(\- CAST\(NULL AS Int32\)\) \* coalesce\(\(\- Int64\(\-23\)\), \(\- CAST\(NULL AS Int32\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 78 * - CAST ( NULL AS INTEGER ) * + COALESCE ( - - 23, - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col0, - COUNT ( * ) AS col0 +---- +-1 +NULL query I rowsort SELECT - 0 + + 80 @@ -38909,8 +39401,12 @@ SELECT - 20 - - ( - 65 ) # Datafusion - Expected - 87 # Datafusion - Expected - 137 # Datafusion - Expected - 156492 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "Int64\(92\) \* Int64\(97\) / Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 87 col0, + 92 * 97 / + 65 AS col0, + SUM ( DISTINCT 81 ) * 84 * - + ( - CAST ( 23 AS INTEGER ) ) +---- +137 +156492 +87 query I rowsort SELECT + 90 + - 18 AS col0 @@ -39190,8 +39686,11 @@ SELECT 51 + 84 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \- Int64\(\-41\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 2 - - 41 col2, 45 AS col2 +---- +43 +45 query I rowsort SELECT 82 * + 73 @@ -39321,8 +39820,11 @@ SELECT ALL 65 * COALESCE ( - 49, + 81 * + 80 * - 67, - 37 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col0" at position 0 and "CASE \(\- Int64\(\-18\)\) WHEN Int64\(\-97\) THEN Int64\(12\) \* \(\- sum\(Int64\(0\)\)\) / Int64\(82\) ELSE Int64\(\-94\) \* \(\- Int64\(\-56\)\) END \- \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 17 AS col0, CASE - - 18 WHEN + - 97 THEN 12 * + - SUM ( 0 ) / + + 82 ELSE - 94 * - - 56 END - - CAST ( NULL AS INTEGER ) + - 99 AS col0 +---- +-17 +NULL query II rowsort SELECT ALL 19, - 4 + + 4 AS col1 @@ -40559,8 +41061,11 @@ SELECT ALL 10 AS col1, - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col0" at position 0 and "Int64\(97\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 62 col0, 97 * + - CAST ( NULL AS INTEGER ) AS col0 +---- +62 +NULL query I rowsort label-7712 SELECT + 36 * 51 / - 12 * + + CAST ( NULL AS INTEGER ) @@ -40990,8 +41495,11 @@ SELECT - - COUNT ( * ) * 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \+ Int64\(63\) AS col2" at position 0 and "Int64\(\-54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 22 + + + 63 AS col2, - 54 AS col2 +---- +-54 +41 query I rowsort label-7793 SELECT ALL + 58 / 30 - - 22 @@ -41185,8 +41693,11 @@ SELECT 87 * 50 * + + 64 - + - 39 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "max\(Int64\(23\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, MAX ( 23 ) AS col1 +---- +1 +23 query I rowsort label-7829 SELECT DISTINCT CAST ( ( - 60 ) AS INTEGER ) AS col2 @@ -41315,8 +41826,11 @@ SELECT DISTINCT + 15 * 70 + + 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(42\) \- Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( CAST ( NULL AS INTEGER ) ) AS col0, 42 - 39 AS col0 +---- +3 +NULL query II rowsort label-7854 SELECT DISTINCT 28 - COUNT ( * ), - MAX ( - - 19 ) col1 @@ -41606,8 +42120,11 @@ SELECT DISTINCT + 44 + - 96 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -22843 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \+ Int64\(32\) \+ Int64\(\-41\) \- Int64\(34\) AS col1" at position 0 and "Int64\(\-3\) \* Int64\(\-93\) \* Int64\(\-82\) \+ Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 78 + + 32 + - 41 - + 34 AS col1, - 3 * - 93 * - 82 + 35 AS col1 +---- +-22843 +35 query II rowsort SELECT + 84 + - - 71 AS col0, 35 @@ -41730,8 +42247,11 @@ SELECT ALL + + COALESCE ( + 58, + + 7 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -1560 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) AS col2" at position 0 and "Int64\(\-65\) \* Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 1 col2, - 65 * 24 AS col2 +---- +-1 +-1560 query II rowsort SELECT ALL + + 67 AS col2, 83 @@ -43164,8 +43684,11 @@ SELECT DISTINCT - 33 + + 4 + 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 523 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "\(\- sum\(Int64\(44\)\)\) \* Int64\(\-10\) \+ Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 30 AS col1, - SUM ( 44 ) * - 10 + + + 83 AS col1 +---- +30 +523 query I rowsort label-8209 SELECT ALL - COUNT ( ALL - + 58 ) + - 68 + - 5 AS col1 @@ -43410,8 +43933,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col1" at position 0 and "Int64\(\-89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 col1, - 89 AS col1 +---- +-10 +-89 query I rowsort SELECT ALL 32 - 12 * - 27 AS col1 @@ -43766,8 +44292,11 @@ SELECT 0 + - COUNT ( * ) * + - ( - COUNT ( ALL - - 88 ) ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(39\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MAX ( DISTINCT + 39 ) col0, COUNT ( * ) AS col0 +---- +1 +39 query I rowsort SELECT ALL - 89 + - + 94 AS col1 @@ -43782,8 +44311,11 @@ SELECT ALL + 25 + + ( + 93 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(51\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ nullif\(Int64\(\-48\), \(\- CAST\(Int64\(\-21\) AS Int32\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) + 51 + - - COUNT ( * ) + + NULLIF ( - 48, - + CAST ( + - 21 AS INTEGER ) ) AS col0, + COUNT ( * ) AS col0 +---- +1 +5 query I rowsort label-8326 SELECT ALL COUNT ( * ) + - SUM ( DISTINCT - 62 ) @@ -43829,8 +44361,11 @@ SELECT - MIN ( + 45 ) * - 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 332166 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) \* Int64\(\-58\) \* Int64\(83\) AS col2" at position 0 and "Int64\(38\) \+ Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 69 ) * - 58 * + 83 AS col2, 38 + - 13 AS col2 +---- +25 +332166 query I rowsort SELECT + 93 * + + 81 - 76 * + + 73 @@ -43886,8 +44421,11 @@ SELECT ALL - 20 + + + 98 * COALESCE ( + 70, + 41, + SUM ( + - 11 ) * 19 + 76 + 5 # 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 "Int64\(1\) AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 col0, + 34 AS col0 +---- +1 +34 query II rowsort label-8346 SELECT DISTINCT 95 + MAX ( 32 ) + - NULLIF ( 40, + 46 ), + 21 * + 38 AS col2 @@ -43908,8 +44446,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ \(\- Int64\(\-64\)\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) + - - 64 AS col2, + ( + 21 ) AS col2 +---- +21 +NULL query I rowsort label-8350 SELECT + ( + - NULLIF ( - MAX ( ALL - - CAST ( - 64 AS INTEGER ) ), 0 ) ) - + NULLIF ( - 55, - 69 ) * - - COUNT ( DISTINCT - 27 ) * - 99 @@ -44021,8 +44562,11 @@ SELECT ALL - 67 / 78 + COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -1547 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "Int64\(91\) \* Int64\(\-17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 43 AS col1, + 91 * - 17 AS col1 +---- +-1547 +43 query I rowsort label-8372 SELECT - COUNT ( * ) * 70 + + 38 AS col1 @@ -44226,8 +44770,11 @@ SELECT ALL + 22 * - - 14 + - 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col0" at position 0 and "Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 88 AS col0, - 43 AS col0 +---- +-43 +-88 query II rowsort label-8411 SELECT + 36 AS col0, + 18 + + 83 / 22 @@ -44589,8 +45136,11 @@ SELECT ALL - COUNT ( * ) + + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 59 AS col0, 57 col0 +---- +57 +59 query I rowsort label-8481 SELECT ALL 65 * NULLIF ( - MAX ( DISTINCT + 31 ), ( + COUNT ( * ) ) ) AS col1 @@ -44719,8 +45269,11 @@ SELECT - SUM ( 88 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col1, COUNT ( * ) + + + 99 AS col1 +---- +1 +100 query I rowsort SELECT - 8 * ( + 32 ) - - 85 AS col1 @@ -44795,8 +45348,11 @@ NULL # 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 "Int64\(50\) / Int64\(42\) \- Int64\(7\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 50 / + 42 - + + 7 col0, 60 AS col0 +---- +-6 +60 query I rowsort label-8520 SELECT + 84 * - COUNT ( * ) @@ -44811,8 +45367,11 @@ SELECT + 36 + + - 52 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\)" at position 0 and "Int64\(76\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 76, 76 +---- +76 +76 query I rowsort SELECT 18 * 11 AS col2 @@ -45094,8 +45653,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, + 62 col1 +---- +1 +62 query I rowsort SELECT 93 + ( - 38 ) @@ -45116,8 +45678,11 @@ SELECT COUNT ( * ), - COUNT ( DISTINCT + 9 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 656 # Datafusion - Expected - -223174 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* \(\- CAST\(Int64\(\-41\) AS Int32\)\) AS col0" at position 0 and "Int64\(26\) \- \(\- Int64\(1\)\) \* Int64\(80\) \* Int64\(\-30\) \* Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 16 * + ( + - CAST ( + - 41 AS INTEGER ) ) AS col0, 26 - - ( 1 ) * 80 * - 30 * + 93 AS col0 +---- +-223174 +656 query II rowsort SELECT ALL + 42, - 60 col0 @@ -45216,8 +45781,11 @@ SELECT - 47 * + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-61\)\) \+ Int64\(\-80\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 61 ) + - 80 AS col2, + COUNT ( * ) col2 +---- +-19 +1 query I rowsort label-8600 SELECT COALESCE ( + 15, + COALESCE ( + 25, + + 72, - + 2 ) - + COUNT ( * ) ) @@ -45442,8 +46010,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-10\) \+ Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 67 AS col2, + COUNT ( * ) * + - 10 + + 81 AS col2 +---- +-67 +71 query I rowsort SELECT ALL - 82 * - + 53 @@ -45613,8 +46184,11 @@ SELECT + 25 + - 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 111 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ Int64\(20\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 + 20 AS col1, 80 AS col1 +---- +111 +80 query I rowsort SELECT ALL + ( + 57 ) + - 70 AS col0 @@ -45737,8 +46311,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 40 AS col1, SUM ( ALL + 50 ) * - + 75 + + NULLIF ( 43, 47 + + + COUNT ( * ) ) AS col1 +---- +-3707 +40 query I rowsort SELECT DISTINCT - 42 * - + 72 AS col1 @@ -45858,8 +46435,11 @@ SELECT - - 78 * COALESCE ( + + 17, + 53 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 1632 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col0" at position 0 and "Int64\(\-48\) \* Int64\(\-34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 83 AS col0, - 48 * - 34 AS col0 +---- +-83 +1632 query I rowsort SELECT - 30 * - 57 @@ -45925,8 +46505,11 @@ SELECT ALL + 28 * + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( 33 ) AS col0, 86 AS col0 +---- +33 +86 query II rowsort SELECT ALL 35 AS col1, 89 @@ -46152,8 +46735,11 @@ SELECT + 54 AS col0, 3 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 6208 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "Int64\(64\) \* Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 col0, + 64 * + + 97 AS col0 +---- +45 +6208 query II rowsort SELECT ALL - 36 AS col0, 73 * + ( 49 ) AS col2 @@ -46683,8 +47269,11 @@ SELECT ALL 62 / - 99 - - 26 * + + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 39 AS col1, 72 AS col1 +---- +39 +72 query I rowsort label-8880 SELECT ALL + COALESCE ( 4, 22, - + 16 * - COUNT ( * ) + - 77 ) - 7 @@ -46734,8 +47323,11 @@ SELECT DISTINCT - + 56 * + NULLIF ( + 28, + 14 / + MAX ( + 7 ) ) * + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\)" at position 0 and "Int64\(63\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 63, 63 +---- +63 +63 query I rowsort label-8889 SELECT ALL - 73 * 85 * + NULLIF ( COUNT ( * ), + 5 ) + - 46 + + 67 AS col2 @@ -46831,8 +47423,11 @@ SELECT ALL - 47 * + 42 AS col2, 2 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-36\)\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - 36 ) AS col2, 30 AS col2 +---- +30 +36 query I rowsort SELECT ALL - 38 * - 27 * - - 77 @@ -47123,8 +47718,11 @@ SELECT ALL + - 72 + + 88 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 71 AS col1, + 76 AS col1 +---- +71 +76 query I rowsort label-8961 SELECT ALL + COALESCE ( + 43, COUNT ( * ), - 72 ) - + 8 AS col2 @@ -47319,8 +47917,11 @@ SELECT 16 / - 13 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col1" at position 0 and "Int64\(44\) \+ \(\- Int64\(56\)\) \+ \(\- CAST\(Int64\(75\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 56 AS col1, 44 + - + 56 + - CAST ( ( 75 ) AS INTEGER ) AS col1 +---- +-87 +56 query I rowsort label-8998 SELECT ALL COUNT ( * ) * 3 col2 @@ -47834,8 +48435,11 @@ SELECT COALESCE ( - ( - - 85 ), + + NULLIF ( + + 44, 96 - + 81 - CASE + 91 WHEN # 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\(DISTINCT Int64\(39\)\) AS col2" at position 0 and "Int64\(\-42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + + COUNT ( DISTINCT + 39 ) ) AS col2, - 42 AS col2 +---- +-42 +1 query I rowsort SELECT NULLIF ( - ( 23 ), 27 ) AS col1 @@ -47897,8 +48501,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 AS col1, 68 + - + COUNT ( * ) AS col1 +---- +67 +88 query II rowsort SELECT - 77 AS col0, - 86 @@ -47964,8 +48571,11 @@ SELECT - - 87 - - 95 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-42\) \+ Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) col1, - 42 + + 18 AS col1 +---- +-24 +NULL query I rowsort label-9119 SELECT + COUNT ( ALL - 78 ) @@ -47975,8 +48585,11 @@ SELECT + COUNT ( ALL - 78 ) # 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 "Int64\(90\) / \(\- \(\- Int64\(48\)\)\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 90 / - + ( - + 48 ) AS col1, + 65 AS col1 +---- +1 +65 query I rowsort SELECT 13 * + - 28 - - 9 AS col2 @@ -48075,8 +48688,11 @@ SELECT + 97 * + + 62 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ Int64\(\-83\) AS col1" at position 0 and "Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 + - 83 AS col1, + 89 col1 +---- +-23 +89 query I rowsort label-9140 SELECT CAST ( - - 1 AS INTEGER ) * + 66 AS col0 @@ -48579,8 +49195,11 @@ SELECT + 41 * + 33 AS col0 # 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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 12 ) col1, + 60 AS col1 +---- +12 +60 query I rowsort label-9235 SELECT CAST ( - 64 AS INTEGER ) AS col1 @@ -48775,8 +49394,11 @@ SELECT ALL 87 + + + 81 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 165 # Datafusion - Expected - -856520 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ \(\- max\(\(\- Int64\(96\)\)\)\) AS col0" at position 0 and "Int64\(92\) \* Int64\(98\) \* Int64\(\-95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 + + - MAX ( - + 96 ) AS col0, + 92 * 98 * - 95 AS col0 +---- +-856520 +165 query I rowsort SELECT 4 * - 1 @@ -48885,8 +49507,11 @@ SELECT DISTINCT + + 23 * + 13 # 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 "Int64\(1\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 1 AS col1, 73 AS col1 +---- +1 +73 query I rowsort SELECT ALL + 74 * + - 23 AS col1 @@ -49158,8 +49783,12 @@ SELECT - - MIN ( DISTINCT - + 47 ) * - + COUNT ( * ) # Datafusion - Expected - 95 # Datafusion - Expected - 111 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \+ Int64\(\-62\) \+ Int64\(93\) AS col0" at position 1 and "Int64\(94\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + ( - SUM ( DISTINCT - 95 ) ) col1, 80 + - 62 + + 93 AS col0, + + 94 AS col0 +---- +111 +94 +95 query I rowsort label-9343 SELECT - + 3 + + - COUNT ( * ) AS col0 @@ -49716,8 +50345,11 @@ SELECT + - COUNT ( * ) * - 16 / + + 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1148 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* Int64\(28\) AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 41 * 28 AS col0, 55 AS col0 +---- +1148 +55 query I rowsort SELECT + 63 * 58 - - 68 @@ -50285,8 +50917,12 @@ SELECT DISTINCT + 80 * + ( + 5 ) AS col0, + MAX ( DISTINCT 47 ) # Datafusion - Expected - NULL # Datafusion - Expected - -1014 # Datafusion - Expected - 48048 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* \(\- CAST\(NULL AS Int32\)\) \* nullif\(Int64\(\-5\), \(\- Int64\(35\)\)\) \+ \(\- Int64\(79\)\) \+ Int64\(\-37\) AS col2" at position 0 and "Int64\(28\) \* Int64\(\-52\) \* \(\- Int64\(33\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 12 * - CAST ( NULL AS INTEGER ) * + NULLIF ( - 5, - + 35 ) + ( - + 79 ) + - 37 AS col2, 78 * + - 13 AS col0, 28 * - 52 * - + 33 AS col2 +---- +-1014 +48048 +NULL query I rowsort label-9555 SELECT + MIN ( ALL + CASE + 69 WHEN + + CASE + 45 WHEN 12 THEN NULL ELSE - 94 END + 39 THEN 68 ELSE NULL END ) AS col0 @@ -50402,8 +51038,11 @@ SELECT + 17 * + 78 * - 87 * - 20 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) / Int64\(80\) \+ Int64\(7\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 3 / 80 + + 7 AS col2, 5 AS col2 +---- +5 +7 query I rowsort SELECT + 69 * + + 67 AS col2 @@ -50429,8 +51068,11 @@ SELECT - COUNT ( * ) * + ( + COALESCE ( 54, + ( 89 ) + + 87, COUNT ( DISTINCT + # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - -159 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* count\(Int64\(37\)\) AS col1" at position 0 and "Int64\(\-73\) \+ Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 51 * + + COUNT ( + 37 ) col1, - 73 + - 86 AS col1 +---- +-159 +51 query I rowsort SELECT + 64 * 61 * 99 + - - 18 AS col2 @@ -50698,8 +51340,11 @@ SELECT ALL COUNT ( CAST ( NULL AS INTEGER ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 20 AS col0, CAST ( NULL AS INTEGER ) AS col0 +---- +20 +NULL query I rowsort label-9632 SELECT COALESCE ( - ( + - 95 ), 20 * + - 96 + 88 - - - CAST ( NULL AS INTEGER ) - + 32 ) @@ -51511,8 +52156,11 @@ SELECT ALL - NULLIF ( - 26, - 24 - 19 + + ( CASE + 87 WHEN COUNT ( * ) THEN ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "coalesce\(Int64\(97\), Int64\(52\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 95 * COUNT ( * ) AS col1, + COALESCE ( + 97, 52 ) AS col1 +---- +-95 +97 query I rowsort SELECT - NULLIF ( + 64, + 39 + - 47 / 88 ) AS col0 @@ -51696,8 +52344,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, 92 AS col0 +---- +-1 +92 query I rowsort label-9827 SELECT CAST ( - 31 AS INTEGER ) col1 @@ -52149,8 +52800,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 80 * + 83 + - NULLIF ( - - 75, + + 98 ) + + - 80 col1, 67 + - + ( + COUNT ( * ) ) col1 +---- +-6795 +66 query I rowsort label-9912 SELECT + COALESCE ( 24, + - 62 / - 41 + + - 60 + + CAST ( NULL AS INTEGER ) * + 91 ) AS col0 @@ -52251,8 +52905,11 @@ SELECT NULLIF ( - - 90, + 71 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(81\) AS col1" at position 0 and "Int64\(88\) \+ CASE \(\- CAST\(NULL AS Int32\)\) WHEN \(\- coalesce\(Int64\(30\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(98\)\)\) THEN max\(DISTINCT Int64\(86\)\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - COUNT ( * ) ) * + 81 col1, + 88 + + CASE + - CAST ( NULL AS INTEGER ) WHEN - COALESCE ( + 30, + COUNT ( * ) * 98 ) THEN MAX ( DISTINCT 86 ) ELSE NULL END AS col1 +---- +81 +NULL query I rowsort label-9931 SELECT + 15 + COUNT ( * ) / + SUM ( CASE - 30 WHEN - 50 THEN - 7 WHEN - 88 THEN 70 END ) * 21 AS col2 @@ -52312,8 +52969,11 @@ NULL # 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 "Int64\(15\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 15 AS col2, 0 AS col2 +---- +0 +15 query I rowsort label-9942 SELECT + - 24 + - 75 + 27 + 87 - + 37 / + + 17 * COUNT ( * ) @@ -52439,8 +53099,11 @@ SELECT 73 / + 55 - + + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3071 # Datafusion - Expected - 130 -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 "Int64\(65\) \+ Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 37 * 83 AS col2, 65 + + 65 AS col2 +---- +-3071 +130 query I rowsort label-9966 SELECT + 9 / COUNT ( * ) AS col0 @@ -52485,8 +53148,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - + 50 ) AS col2, + 53 * - + 92 * NULLIF ( - 27, + COUNT ( * ) ) * 65 AS col2 +---- +-50 +8557380 query I rowsort label-9975 SELECT + SUM ( DISTINCT - 4 ) + COUNT ( * ) AS col1 diff --git a/data/sqlite/random/expr/slt_good_111.slt b/data/sqlite/random/expr/slt_good_111.slt index ac34f4c..d980c72 100644 --- a/data/sqlite/random/expr/slt_good_111.slt +++ b/data/sqlite/random/expr/slt_good_111.slt @@ -202,8 +202,11 @@ SELECT SUM ( 56 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 * + COUNT ( * ) col1, 30 AS col1 +---- +30 +7 query I rowsort label-32 SELECT COUNT ( * ) + + 44 + 51 @@ -442,8 +445,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1792 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* Int64\(28\) AS col0" at position 0 and "Int64\(37\) \+ \(\- Int64\(83\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 64 * + 28 AS col0, 37 + - + 83 AS col0 +---- +-46 +1792 query I rowsort SELECT + - 95 * + + 87 * 83 @@ -998,8 +1004,11 @@ SELECT + 80 + + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 3120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(39\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 39 * 80 AS col1 +---- +1 +3120 query I rowsort label-183 SELECT - 74 + - ( - COUNT ( ALL ( + 37 ) ) ) @@ -1750,8 +1759,11 @@ SELECT ALL - COUNT ( * ) + NULLIF ( - + 62, - MAX ( - 31 ) ) + - + 63 - + 69 + ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \+ \(\- Int64\(69\)\) / Int64\(\-91\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 83 + - + 69 / - 91 AS col1, 27 col1 +---- +27 +83 query I rowsort SELECT ALL + 20 + - 67 AS col0 @@ -1945,8 +1957,11 @@ SELECT ALL - + 8 + - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 123 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \- \(\- Int64\(84\)\) AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 - - + 84 AS col0, + 59 AS col0 +---- +123 +59 query I rowsort label-362 SELECT ALL COUNT ( - - 28 ) AS col2 @@ -2187,8 +2202,11 @@ SELECT - 3 + 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 57 AS col1, + 62 AS col1 +---- +-57 +62 query I rowsort SELECT + 85 + - 97 AS col2 @@ -2355,8 +2373,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 105 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ Int64\(19\) AS col0" at position 0 and "Int64\(\-60\) \+ Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 86 + + + 19 col0, - 60 + 85 AS col0 +---- +105 +25 query I rowsort label-441 SELECT ALL NULLIF ( - + 75, - - 14 + - CASE + + 49 WHEN - 82 + NULLIF ( - - 66, - COUNT ( * ) + + 71 * - 9 / + + ( - 43 ) ) THEN NULL WHEN - CASE 61 WHEN 44 THEN - 80 WHEN - NULLIF ( - 95, 37 ) * - - 88 * - 11 THEN NULL ELSE - 28 END THEN NULL WHEN + - 90 THEN NULL ELSE + 29 / MIN ( 47 ) END ) AS col1 @@ -2677,8 +2698,11 @@ SELECT 64 - + 87 AS col0, + 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - -4692 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col2" at position 0 and "Int64\(51\) \* \(\- Int64\(92\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 35 AS col2, 51 * - + 92 AS col2 +---- +-35 +-4692 query I rowsort label-503 SELECT 83 + - + CASE - 71 WHEN 87 THEN - - 86 * + MIN ( ALL CAST ( NULL AS INTEGER ) ) + + 73 ELSE NULL END * + + NULLIF ( - COUNT ( * ), - 55 ) * COUNT ( * ) + 39 AS col0 @@ -2824,8 +2848,11 @@ SELECT DISTINCT + - 71, + 83 + + - 93 * - 1 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "\(\- nullif\(Int64\(\-18\), Int64\(\-90\)\)\) \* Int64\(\-4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 20 AS col1, - NULLIF ( - 18, - 90 ) * - 4 AS col1 +---- +-72 +20 query I rowsort label-531 SELECT CAST ( NULL AS INTEGER ) / + 14 + 37 + - - 63 - - 41 + + COUNT ( DISTINCT + - 23 ) * - 69 / + 28 @@ -3091,8 +3118,11 @@ SELECT 34 - + MIN ( - - 91 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col1" at position 0 and "Int64\(\-14\) \+ Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 83 AS col1, - 14 + + 29 AS col1 +---- +15 +83 query II rowsort SELECT 26 AS col1, + 14 @@ -3483,8 +3513,11 @@ SELECT + + 72 + - 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 229 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col0" at position 0 and "Int64\(\-21\) \* \(\- Int64\(8\)\) \- Int64\(\-61\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 33 AS col0, + ( - 21 ) * - + 8 - - 61 * COUNT ( * ) AS col0 +---- +-33 +229 query I rowsort SELECT ALL 11 + + 52 @@ -3616,8 +3649,11 @@ SELECT ALL CASE - - MIN ( ALL - 86 ) WHEN 83 * - + 42 * COUNT ( * ) * - - CAST ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 col2, ( 60 ) AS col2 +---- +60 +69 query II rowsort SELECT - 31 AS col1, - 78 @@ -3643,8 +3679,11 @@ SELECT - - 59 + - 51 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col2" at position 0 and "coalesce\(Int64\(64\), Int64\(24\) \* CAST\(NULL AS Int32\) \+ \(\- Int64\(52\)\) \* Int64\(\-35\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 78 col2, COALESCE ( ( 64 ), + 24 * + CAST ( NULL AS INTEGER ) + - + 52 * - 35 ) AS col2 +---- +-78 +64 query I rowsort SELECT ALL + + 72 * 94 @@ -3754,8 +3793,11 @@ SELECT - + COUNT ( * ) * + 46 * + 26 + ( + SUM ( + 24 ) ) * - 33 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 267 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(89\) AS col2" at position 0 and "Int64\(46\) \- Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 * + 89 AS col2, 46 - + 98 AS col2 +---- +-52 +267 query I rowsort label-709 SELECT ALL + - 24 + COUNT ( * ) * + - 86 @@ -3867,8 +3909,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 47 col2, 49 + + + 38 - + COUNT ( * ) + 87 AS col2 +---- +173 +47 query I rowsort label-730 SELECT ALL + 64 * 10 * - - 94 + + + 86 + - - COALESCE ( - + 23, - ( + + 19 ) * - 87 + - + CAST ( NULL AS INTEGER ), - ( + COUNT ( * ) ) - - ( + - COALESCE ( 6, MIN ( DISTINCT + + 39 ) + + CAST ( + 37 AS INTEGER ) ) ) + ( 13 ), 5 ) @@ -4637,8 +4682,11 @@ SELECT DISTINCT + COALESCE ( + - 66, - 34, - 4 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -276 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* Int64\(\-26\) \- Int64\(\-10\) AS col1" at position 0 and "Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 11 * - 26 - - 10 AS col1, - 61 AS col1 +---- +-276 +-61 query I rowsort SELECT - 15 * - - 66 @@ -4675,8 +4723,11 @@ SELECT DISTINCT + 76 * + + ( 8 ) AS col1, 91 + + + 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT Int64\(0\)\)\) \+ \(\- Int64\(\-6\)\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( DISTINCT - 0 ) + - - 6 col0, 95 AS col0 +---- +6 +95 query I rowsort SELECT ALL + ( - NULLIF ( + 41, - 40 ) ) @@ -4733,8 +4784,11 @@ SELECT - - ( + 37 ) # 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\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 97 AS col1, 75 AS col1 +---- +-97 +75 query I rowsort SELECT - 18 * 26 AS col1 @@ -4786,8 +4840,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col2" at position 0 and "Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 4 AS col2, - 96 AS col2 +---- +-4 +-96 query I rowsort label-905 SELECT COUNT ( * ) / 42 + 39 + + + 86 / - 77 + - ( + 92 ) + 42 * + COUNT ( * ) - + 68 @@ -5103,8 +5160,11 @@ SELECT 22, 86 * + 10 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 137 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(4\) \* \(\- \(\- Int64\(51\)\)\) \- \(\- Int64\(\-67\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col0, ( + 4 ) * - ( - + 51 ) - - - 67 AS col0 +---- +1 +137 query I rowsort label-965 SELECT 36 + + COUNT ( * ) * 11 / + CAST ( NULL AS INTEGER ) + - 47 @@ -5337,8 +5397,11 @@ SELECT ALL - 58 / - 88 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 104 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ Int64\(48\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 56 + 48 col2, 49 AS col2 +---- +104 +49 query I rowsort label-1009 SELECT DISTINCT 75 / 24 + - 41 @@ -5599,8 +5662,11 @@ SELECT + - 19, COUNT ( * ) * + COUNT ( ALL - 51 ) * 16 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-20\) WHEN Int64\(49\) THEN Int64\(76\) END AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CASE - 20 WHEN + + 49 THEN 76 END AS col1, 40 AS col1 +---- +40 +NULL query I rowsort SELECT ( - + 50 ) + 28 AS col1 @@ -5903,8 +5969,12 @@ SELECT DISTINCT + 10 * 56 + + 61 # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-1 +NULL +NULL query I rowsort label-1117 SELECT - + 25 * - - COUNT ( ALL - 90 ) + + ( + ( + 54 ) ) * + 77 @@ -5914,8 +5984,11 @@ SELECT - + 25 * - - COUNT ( ALL - 90 ) + + ( + ( + 54 ) ) * + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2964 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(78\)\) \* 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 II valuesort SELECT ALL + ( - + 78 ) * + 38 AS col1, 95 AS col1 +---- +-2964 +95 query I rowsort SELECT ALL + 60 * - + 83 + - ( + 97 ) @@ -6451,8 +6524,11 @@ SELECT COUNT ( * ) col0, - ( 27 ) * - + 50 / + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-39\)\) AS col0" at position 0 and "\(\- Int64\(64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 39 AS col0, - ( 64 ) AS col0 +---- +-64 +39 query I rowsort label-1221 SELECT DISTINCT + MAX ( DISTINCT - + 28 ) AS col0 @@ -7552,8 +7628,11 @@ SELECT + 10 * + + CAST ( + CASE + 44 WHEN 95 * - COUNT ( * ) THEN + 75 WHEN 85 T # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(41\) AS col1" at position 0 and "Int64\(79\) / Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + CAST ( NULL AS INTEGER ) * 41 AS col1, + 79 / + + 94 AS col1 +---- +0 +NULL query I rowsort SELECT 40 + + + 71 + 94 * - 81 AS col1 @@ -7905,8 +7984,11 @@ SELECT ALL 7 + - - 46 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 47 AS col0, + 73 AS col0 +---- +-47 +73 query I rowsort SELECT ALL 36 - 29 @@ -8633,8 +8715,11 @@ SELECT ALL - COALESCE ( - COUNT ( * ), - ( - + COUNT ( * ) ) + + 4, 11 + + 21 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 4 AS col1, 7 AS col1 +---- +4 +7 query I rowsort label-1643 SELECT DISTINCT 47 / - 60 - 95 @@ -8715,8 +8800,11 @@ SELECT CASE - 40 WHEN 8 THEN NULL WHEN - 94 * 49 * 7 THEN NULL ELSE + - 9 / - ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 2870 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(33\) \* min\(Int64\(1\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(13\) \* CAST\(NULL AS Int32\) \+ Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 * 33 * + MIN ( + ( 1 ) ) + - COUNT ( * ) AS col0, 13 * CAST ( NULL AS INTEGER ) + + 5 AS col0 +---- +2870 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -8778,8 +8866,11 @@ SELECT MAX ( ALL + + 96 ) * + 83 * - 50 / + COUNT ( * ) AS col0 # 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 "Int64\(\-56\) \- Int64\(72\) \+ Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 76 AS col2, - 56 - + 72 + + 79 AS col2 +---- +-49 +-76 query II rowsort SELECT - 37 AS col2, 98 AS col1 @@ -9261,8 +9352,11 @@ SELECT ( + + 5 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4939 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-99\)\) \* Int64\(49\) \+ \(\- Int64\(\-88\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 99 * + 49 + + ( - - 88 ) AS col1, + COUNT ( * ) AS col1 +---- +1 +4939 query I rowsort label-1762 SELECT DISTINCT + 0 * - CAST ( - 95 AS INTEGER ) AS col0 @@ -9282,8 +9376,11 @@ SELECT - COUNT ( * ) - - - 74 / + ( + 82 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(45\) AS Int32\)\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - CAST ( + 45 AS INTEGER ) AS col1, + 55 AS col1 +---- +-45 +55 query I rowsort label-1766 SELECT - COUNT ( * ) - - + 10 @@ -9733,8 +9830,11 @@ SELECT ALL SUM ( DISTINCT + + 65 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2852 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \* \(\- Int64\(\-92\)\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 * - - 92 col1, + 19 AS col1 +---- +-2852 +19 query II rowsort SELECT - 42 + + 48 * - 68 col2, + 96 AS col0 @@ -10096,8 +10196,11 @@ 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\(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\. +query II valuesort 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 +---- +62 +NULL query I rowsort label-1924 SELECT 77 + - 5 / - 64 + + + 30 + + - 85 AS col1 @@ -10168,8 +10271,11 @@ 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\(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\. +query II valuesort 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 +---- +-52 +NULL query I rowsort label-1938 SELECT ALL 66 + - COUNT ( * ) AS col2 @@ -10366,14 +10472,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1844 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(97\)\)\) \+ Int64\(\-32\) \+ Int64\(26\) \* \(\- nullif\(Int64\(68\), \(\- max\(DISTINCT Int64\(36\)\)\)\)\) \+ Int64\(53\) AS col2" at position 0 and "nullif\(Int64\(7\), Int64\(52\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( 97 ) + + - 32 + 26 * - NULLIF ( 68, - MAX ( DISTINCT 36 ) ) + + 53 col2, NULLIF ( 7, + 52 ) AS col2 +---- +-1844 +7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -5076 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- Int64\(67\)\) \* Int64\(75\) \+ Int64\(\-51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, ( - + 67 ) * 75 + - 51 col1 +---- +-5076 +1 query I rowsort label-1977 SELECT + MIN ( + 90 ) - + - 10 * + 4 @@ -10433,8 +10545,11 @@ SELECT - - 53 + + 94 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 33 AS col2, 56 AS col2 +---- +33 +56 query II rowsort label-1989 SELECT - 44, CASE + 97 WHEN - - 73 THEN NULL WHEN - 71 THEN - 16 * - COUNT ( * ) WHEN + + ( - NULLIF ( - 72, - - CASE CAST ( - + 4 AS FLOAT8 ) WHEN - - 48 THEN COUNT ( * ) END * SUM ( - 98 ) + AVG ( DISTINCT ( + - 40 ) ) ) ) THEN NULL END * 66 / 96 + + 78 / + ( 34 * - COUNT ( * ) ) AS col1 @@ -10736,8 +10851,11 @@ SELECT DISTINCT 0 * - 59 * - - 30 # 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 "Int64\(5\) AS col2" at position 0 and "Int64\(67\) \+ Int64\(\-56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 5 AS col2, 67 + + - 56 AS col2 +---- +11 +5 query I rowsort SELECT + 84 + - + 98 @@ -10948,8 +11066,11 @@ SELECT DISTINCT CAST ( - 61 AS INTEGER ) # 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 "max\(Int64\(21\)\) AS col0" at position 0 and "Int64\(\-97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( + 21 ) AS col0, - 97 AS col0 +---- +-97 +21 query I rowsort SELECT + - 65 * - 75 AS col2 @@ -11304,8 +11425,11 @@ SELECT ALL + COUNT ( * ) / + - 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + CAST ( NULL AS INTEGER ) AS col0, + 61 col0 +---- +61 +NULL query I rowsort label-2155 SELECT CASE - 38 WHEN - 79 THEN + - NULLIF ( + 91, - 81 ) / - - 85 * + SUM ( + 15 ) + - 61 - - ( - + 32 ) + 57 - + 39 - - MAX ( ALL + 28 ) END AS col2 @@ -11463,8 +11587,11 @@ SELECT + 20 * + 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - -253475 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \- Int64\(68\) \- Int64\(\-88\) \* Int64\(96\) \* Int64\(\-30\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 33 - 68 - - 88 * 96 * - 30 AS col1, 79 AS col1 +---- +-253475 +79 query I rowsort label-2185 SELECT - CASE 6 WHEN + CASE - ( 25 ) WHEN 55 THEN NULL WHEN - COUNT ( ALL - ( 44 ) ) THEN - COUNT ( * ) END + + COUNT ( * ) * - 50 + + CAST ( - 3 AS FLOAT8 ) THEN NULL WHEN 48 * + 43 THEN + SUM ( + - ( - + 61 ) ) + + COALESCE ( - 84, 26 ) * + 27 ELSE 0 END * - COALESCE ( - + 19, + CAST ( 79 AS INTEGER ) ) @@ -11514,8 +11641,11 @@ SELECT COUNT ( DISTINCT 40 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \* Int64\(2\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 2 * ( 2 ) AS col0, + ( 70 ) AS col0 +---- +-4 +70 query I rowsort SELECT 56 * + 67 @@ -11592,8 +11722,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "Int64\(\-61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 87 AS col0, - 61 col0 +---- +-61 +87 query I rowsort label-2210 SELECT DISTINCT COUNT ( 9 ) * 78 AS col2 @@ -12615,8 +12748,11 @@ SELECT COALESCE ( + 19, + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + - ( + ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 161 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- max\(\(\- Int64\(28\)\)\)\) AS col0" at position 0 and "Int64\(70\) \+ Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - MAX ( ALL - + 28 ) AS col0, 70 + + 91 AS col0 +---- +161 +NULL query I rowsort SELECT DISTINCT + - 23 + - 41 @@ -12754,8 +12890,11 @@ SELECT 83 / - 6 + - MIN ( + 96 ) + - + 1 # 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 "sum\(DISTINCT \(\- Int64\(\-11\)\)\) AS col1" at position 0 and "CASE Int64\(52\) WHEN Int64\(62\) THEN Int64\(10\) WHEN Int64\(31\) THEN Int64\(8\) WHEN CAST\(Int64\(\-49\) AS Float64\) THEN NULL ELSE sum\(Int64\(\-22\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( DISTINCT - ( - 11 ) ) AS col1, CASE + 52 WHEN 62 THEN + 10 WHEN + 31 THEN + 8 WHEN + CAST ( - 49 AS FLOAT8 ) THEN NULL ELSE + SUM ( + - 22 ) END AS col1 +---- +-22 +11 query I rowsort label-2431 SELECT MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) ) @@ -13763,14 +13902,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 1059 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "Int64\(9\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(53\)\) \+ CAST\(Int64\(24\) AS Int32\) \* Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 AS col0, 9 * - ( - + COUNT ( * ) ) * - ( + 53 ) + CAST ( 24 AS INTEGER ) * 64 AS col0 +---- +1059 +47 # 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\(1\)\) AS count\(\*\) \+ Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 34 AS col0, 25 - + + 63 + COUNT ( * ) + 14 AS col0 +---- +-23 +-34 query I rowsort SELECT ALL - + 10 * - 97 @@ -14352,8 +14497,11 @@ SELECT + + 60 + + ( 98 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - -177 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-52\)\)\) AS col2" at position 0 and "Int64\(\-90\) \- min\(Int64\(87\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( - 52 ) AS col2, - 90 - MIN ( ALL 87 ) AS col2 +---- +-177 +-52 query I rowsort SELECT - 79 + 58 * + - 4 @@ -14435,8 +14583,11 @@ SELECT 60 + + 9 * + 45 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "Int64\(13\) \- \(\- count\(DISTINCT Int64\(\-1\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 AS col0, 13 - - + COUNT ( DISTINCT - 1 ) AS col0 +---- +14 +61 query II rowsort SELECT + 96 AS col0, + 42 - - 0 @@ -14670,8 +14821,11 @@ SELECT 69 AS col1, - 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(22\) AS Int32\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + + 22 AS INTEGER ) AS col0, 30 AS col0 +---- +22 +30 query II rowsort SELECT ALL - + 28 AS col1, - ( + 19 ) AS col0 @@ -15085,8 +15239,11 @@ SELECT ALL + + 15 * - CAST ( - 89 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col1" at position 0 and "\(\- CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4 AS col1, - CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 +---- +-1 +4 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -15257,8 +15414,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - SUM ( ALL 98 ) col2, COUNT ( * ) + 83 col2 +---- +-98 +84 query I rowsort SELECT ALL - 0 * 14 @@ -16512,8 +16672,11 @@ SELECT ALL 34 + 47 * - 43 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT 14 AS col2, + 37 AS col2 +---- +14 +37 query I rowsort SELECT ALL - 84 + - NULLIF ( - 54, - 35 * - 65 ) @@ -16794,8 +16957,11 @@ SELECT - 7 + - 66 * + NULLIF ( + - 30, - 55 ) + - - 36 * - 42 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 2775 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "Int64\(69\) \+ Int64\(41\) \* Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 78 col1, + 69 + + 41 * 66 AS col1 +---- +2775 +78 query I rowsort SELECT ALL - ( + 70 ) + 9 + + 71 * - + 23 AS col0 @@ -17113,8 +17279,11 @@ SELECT DISTINCT 17 * + 2 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 52 AS col0, 58 AS col0 +---- +52 +58 query I rowsort SELECT DISTINCT 69 - - - 73 * + + 27 * + 16 @@ -17617,8 +17786,11 @@ SELECT ALL MIN ( - 59 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col1" at position 0 and "Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 AS col1, 30 col1 +---- +13 +30 query I rowsort label-3362 SELECT ALL + CASE 26 WHEN 77 THEN + 50 WHEN CAST ( 63 AS INTEGER ) * + 85 / 59 + - 59 THEN + 2 ELSE - 68 END + - COUNT ( * ) @@ -17804,8 +17976,11 @@ SELECT ALL + 0 + - - 34 + + 68 * - + 85 col1, ( - 80 ) + + - 46 / + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 93 ) col1, 17 col1 +---- +17 +93 query I rowsort SELECT ALL 13 + - NULLIF ( - 78, - 92 + 66 * + 42 ) AS col2 @@ -17887,8 +18062,11 @@ SELECT COUNT ( * ) + + - 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 82 AS col2, 40 AS col2 +---- +40 +82 query I rowsort label-3413 SELECT COUNT ( 12 ) AS col0 @@ -18096,8 +18274,11 @@ 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\(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\. +query II valuesort SELECT ( COALESCE ( - + COUNT ( * ), - COUNT ( * ) * 54, 99 ) ) AS col1, 8 + - MAX ( DISTINCT - - 25 ) AS col1 +---- +-1 +-17 query II rowsort label-3454 SELECT + MIN ( - - 86 ) AS col1, - 60 * - 99 + 51 * 34 @@ -18365,8 +18546,11 @@ SELECT - 65 AS col1, - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col2" at position 0 and "Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 AS col2, - 25 AS col2 +---- +-25 +67 query II rowsort label-3505 SELECT ALL MIN ( ALL - 29 ) + - CAST ( NULL AS INTEGER ) * + + 82, 47 AS col2 @@ -18382,8 +18566,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- nullif\(Int64\(56\), Int64\(70\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 24 col0, COUNT ( * ) * - - NULLIF ( + 56, 70 ) AS col0 +---- +24 +56 query I rowsort label-3508 SELECT ALL + 49 + - 14 + - + CAST ( NULL AS INTEGER ) * - NULLIF ( - CAST ( NULL AS INTEGER ), + 98 * - 60 * 42 + - 7 ) + - - 68 @@ -18570,8 +18757,11 @@ NULL # 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\(22\) / Int64\(\-92\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 22 / - 92 AS col0, + 30 AS col0 +---- +0 +30 query I rowsort label-3544 SELECT - 28 * - + MAX ( 18 ) * - 61 @@ -18826,8 +19016,11 @@ SELECT + - 18 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 AS col2, 57 AS col2 +---- +47 +57 query I rowsort label-3593 SELECT + 29 / 78 @@ -19100,8 +19293,12 @@ NULL # Datafusion - Expected - 68 # Datafusion - Expected - 40 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 1 and "\(\- \(\- CAST\(Int64\(91\) AS Int32\)\)\) \+ Int64\(6\) \+ \(\- Int64\(72\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 68 * + COUNT ( * ), 40 AS col0, - - CAST ( + 91 AS INTEGER ) + + 6 + - + 72 AS col0 +---- +25 +40 +68 query I rowsort SELECT ALL + 59 + ( - 33 ) @@ -19501,8 +19698,11 @@ SELECT ( + + ( - 64 ) ) 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 "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 66 ) AS col2, + 1 AS col2 +---- +1 +66 query II rowsort label-3719 SELECT ALL CAST ( NULL AS INTEGER ) * 67 + + 20 / + COALESCE ( - COUNT ( * ), - ( - COUNT ( * ) ) ), 34 + - 1 + - COALESCE ( NULLIF ( 40, + 3 / + 98 ), - MIN ( DISTINCT - 5 ) - - 77 ) * + CASE - 97 WHEN - 93 * - 41 + + + 46 / ( CASE WHEN 71 NOT BETWEEN 40 AND ( + MIN ( - 45 ) + 17 ) THEN - 73 WHEN 99 < ( NULL ) THEN NULL END ) + - 70 * 2 THEN NULL WHEN CAST ( 52 AS INTEGER ) THEN 34 / + 16 END * - 29 AS col2 @@ -19737,8 +19937,11 @@ SELECT DISTINCT + 90 * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -1187 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col1" at position 0 and "Int64\(52\) \- \(\- Int64\(\-21\)\) \* Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 0 col1, 52 - - - 21 * 59 AS col1 +---- +-1187 +0 query I rowsort label-3763 SELECT - 57 + 80 + - COUNT ( * ) AS col1 @@ -19894,8 +20097,11 @@ SELECT ALL 51 * - COALESCE ( COUNT ( * ), - 56 / - - CAST ( NULL AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 54 AS col1, 47 AS col1 +---- +47 +54 query I rowsort label-3793 SELECT MIN ( DISTINCT - 54 ) @@ -19926,8 +20132,11 @@ SELECT + 71 + - 91 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "\(\- count\(Int64\(\-54\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 AS col2, - ( + COUNT ( - 54 ) ) + COUNT ( * ) AS col2 +---- +0 +44 query I rowsort SELECT DISTINCT CASE + + ( - 74 ) WHEN - + 77 THEN NULL WHEN + 47 THEN + 25 / - + 88 * - 29 + - + 16 / + + 66 END @@ -20327,8 +20536,11 @@ SELECT - + 32 AS col2, - 5 - NULLIF ( 37, - + 22 * - + 99 / - 31 ) AS col1 # 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 col0" at position 0 and "Int64\(\-75\) \+ nullif\(Int64\(3\), Int64\(72\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 91 AS col0, - 75 + + NULLIF ( 3, + 72 ) AS col0 +---- +-72 +-91 query I rowsort label-3876 SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) + + 38 / - 40 + - + 93 * - 10 * - 79 + NULLIF ( 61, - + 82 ) @@ -20353,8 +20565,11 @@ SELECT 48 + + 84 / CAST ( + + 86 AS INTEGER ) + + 61 # 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\(58\) \+ Int64\(\-2\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 + - 2 col1, 85 AS col1 +---- +56 +85 query I rowsort SELECT 64 * - NULLIF ( 66, - 45 * - + 97 ) @@ -20721,8 +20936,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 64 col1, - COUNT ( * ) AS col1 +---- +-1 +64 query I rowsort SELECT + + 86 * 56 * - 62 @@ -20972,8 +21190,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - -29 -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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 47 AS col1, - 29 AS col1 +---- +-29 +-47 query I rowsort label-4000 SELECT + ( - - CASE - - ( + 80 ) WHEN 67 THEN NULL WHEN + - COUNT ( * ) THEN - 0 + + ( - 11 ) WHEN + 2 THEN NULL WHEN + 42 THEN NULL END ) * - 76 + + 61 * + - 32 + - - 75 AS col2 @@ -21096,8 +21317,11 @@ SELECT - 4 * + 27 # 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 "Int64\(5\) \* min\(DISTINCT CAST\(NULL AS Float64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL + 42 AS col0, 5 * MIN ( DISTINCT CAST ( NULL AS FLOAT8 ) ) col0 +---- +42 +NULL query I rowsort label-4024 SELECT - NULLIF ( 28, + 27 * - COALESCE ( + + 86, + COALESCE ( 61, + 97 * - 92 / MIN ( - + 7 ) * - COUNT ( * ) + + 13 + ( + + 62 ) / + 8 + - 36 * - - 93 * - - 17 ) * - - 30 * + COUNT ( * ) * 77 + - COUNT ( * ), + COALESCE ( 17, + ( 0 ) - + 72 / - 17 ) ) ) + + + CAST ( - - 5 AS INTEGER ) AS col0 @@ -21944,14 +22168,20 @@ 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\(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\. +query II valuesort SELECT - ( - 46 ) AS col2, + CASE - 92 WHEN - COUNT ( * ) THEN + - 71 * COUNT ( * ) / + ( - 3 ) * - 55 WHEN - + 10 THEN NULL ELSE NULL END AS col2 +---- +46 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3633 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \+ coalesce\(Int64\(41\), Int64\(\-9\), Int64\(\-83\) \+ \(\- nullif\(\(\- max\(DISTINCT \(\- Int64\(62\)\)\)\), Int64\(\-42\)\)\)\) \- Int64\(60\) \* Int64\(62\) AS col1" at position 0 and "Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 + COALESCE ( 41, - 9, ( + - 83 ) + - + ( + + NULLIF ( + ( - MAX ( DISTINCT - + 62 ) ), - 42 ) ) ) - 60 * + 62 AS col1, - 46 AS col1 +---- +-3633 +-46 query I rowsort label-4185 SELECT ALL ( - 43 ) * + MAX ( + 29 ) AS col2 @@ -22306,8 +22536,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -335 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \- Int64\(\-68\) \* Int64\(\-4\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - 63 ) - - 68 * - 4 AS col1, - CAST ( NULL AS INTEGER ) AS col1 +---- +-335 +NULL query II rowsort SELECT - 83, - 44 + 51 AS col0 @@ -22380,8 +22613,12 @@ SELECT + 18 * - 44 + + 9 # Datafusion - Expected - 1 # Datafusion - Expected - 147 # 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 "Int64\(53\) \- Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 1 AS col1, 53 - + + ( - 94 ) AS col1, + 78 + + + 6 +---- +1 +147 +84 query I rowsort SELECT ALL - 42 * + 14 + - + 25 @@ -22471,8 +22708,11 @@ SELECT DISTINCT + COUNT ( * ) * - - 98 - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - -675 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \* \(\- Int64\(\-15\)\) AS col0" at position 0 and "nullif\(nullif\(Int64\(79\), \(\- CAST\(Int64\(\-88\) AS Int32\)\)\), \(\- coalesce\(Int64\(23\), Int64\(43\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 45 * - - 15 AS col0, NULLIF ( + NULLIF ( 79, + - CAST ( - 88 AS INTEGER ) ), - COALESCE ( 23, + 43 ) ) AS col0 +---- +-675 +79 query II rowsort label-4283 SELECT ALL COUNT ( ALL - 79 ), 20 AS col2 @@ -22946,8 +23186,11 @@ SELECT - COUNT ( + - 92 ) * - 9 * + 54 + + 9 / + - ( + - 26 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 39 AS col1, - CAST ( NULL AS INTEGER ) AS col1 +---- +39 +NULL query I rowsort label-4373 SELECT DISTINCT 79 * + 43 + + - ( COUNT ( * ) ) AS col1 @@ -22986,8 +23229,11 @@ SELECT ALL 10 + 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- Int64\(96\) \+ Int64\(5\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) - + + 96 + + 5 col2, COUNT ( * ) AS col2 +---- +1 +NULL query II rowsort label-4380 SELECT 71 AS col0, COUNT ( * ) @@ -23044,8 +23290,11 @@ SELECT + 82 + - - COALESCE ( - 85, ( - 15 ) * + 53 ) / + 55 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) \* Int64\(63\) \+ Int64\(\-52\) \* nullif\(CAST\(NULL AS Int32\), Int64\(\-53\)\) \* Int64\(\-63\) \+ Int64\(95\) \- Int64\(71\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 1 * 63 + - 52 * + NULLIF ( + CAST ( NULL AS INTEGER ), + - 53 ) * - 63 + + + 95 - + 71 AS col0, + COUNT ( * ) col0 +---- +1 +NULL query II rowsort SELECT + 5 AS col2, - 64 AS col1 @@ -23165,8 +23414,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 77 AS col0, 2 AS col0 +---- +2 +77 query I rowsort SELECT - + CASE - 82 WHEN - 78 THEN NULL ELSE - 48 END AS col0 @@ -23191,8 +23443,11 @@ SELECT DISTINCT - - 48 * + COUNT ( 51 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -226 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-58\) \+ Int64\(\-92\) \+ Int64\(\-70\) \+ Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, - 58 + - 92 + - 70 + - 6 col1 +---- +-226 +1 query I rowsort SELECT + 2 + + 44 AS col2 @@ -23341,8 +23596,11 @@ NULL # 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 "Int64\(25\) / Int64\(94\) AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 / 94 AS col2, 91 AS col2 +---- +0 +91 query I rowsort SELECT + 50 * - 76 AS col1 @@ -23612,8 +23870,11 @@ SELECT ALL + COUNT ( * ) * 25 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -901 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(\-53\) AS col0" at position 0 and "Int64\(11\) \+ Int64\(13\) \+ min\(\(\- Int64\(20\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 17 * - 53 AS col0, + 11 + 13 + MIN ( ( - + 20 ) ) col0 +---- +-901 +4 query I rowsort label-4498 SELECT - CAST ( NULL AS INTEGER ) * + 23 / - 74 @@ -24311,8 +24572,11 @@ SELECT + ( COUNT ( * ) ) + 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 18 AS col1, 13 AS col1 +---- +-18 +13 query I rowsort label-4635 SELECT - 33 + 16 / - + 14 AS col0 @@ -25011,8 +25275,11 @@ 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\(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\. +query II valuesort 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 +---- +74 +NULL query I rowsort label-4769 SELECT + NULLIF ( + 50, + COUNT ( - 73 ) ) + - 8 AS col2 @@ -25234,8 +25501,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + ( - - COUNT ( * ) ) + + 54 AS col0, - 19 * ( 89 ) * COUNT ( * ) + + 85 AS col0 +---- +-1606 +55 query I rowsort label-4811 SELECT ALL + + 74 + - + COUNT ( - 57 ) @@ -25336,8 +25606,11 @@ SELECT 15 / + 63 * - - 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) / \(\- Int64\(7\)\) AS col1" at position 0 and "Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 / - + 7 col1, - 20 AS col1 +---- +-20 +-7 query I rowsort SELECT 24 + 43 @@ -25482,8 +25755,12 @@ SELECT ALL - 2 * + 81 + - 60 AS col0 # Datafusion - Expected - 16 # Datafusion - Expected - 33 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "coalesce\(Int64\(\-41\), Int64\(\-81\)\) \+ Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 16 AS col2, ( + COALESCE ( - 41, - 81 ) ) + + + 74 col2, - + 74 + + ( - 10 ) AS col0 +---- +-84 +16 +33 query I rowsort label-4856 SELECT - NULLIF ( SUM ( ALL + 24 ), MAX ( ALL - 36 ) * 43 + + 81 - + 65 * + 66 ) AS col0 @@ -26143,8 +26420,12 @@ NULL # Datafusion - Expected - 168 # Datafusion - Expected - 108 # Datafusion - Expected - 35568049 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* Int64\(5\) \+ \(\- Int64\(\-73\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "min\(Int64\(95\)\) \* \(\- coalesce\(Int64\(80\), Int64\(27\)\)\) \* Int64\(\-78\) \* Int64\(60\) \+ Int64\(49\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + + 19 * + 5 + - - 73 * + COUNT ( * ) AS col0, 54 + 54 AS col1, MIN ( 95 ) * - COALESCE ( 80, + 27 ) * - 78 * 60 + 49 col0 +---- +108 +168 +35568049 query I rowsort label-4982 SELECT - ( - 10 ) * + 44 * - CASE 30 WHEN + + 86 THEN - ( - 22 ) + + 62 WHEN + 41 + - 96 + - CASE + 32 WHEN + ( 36 ) THEN 0 * 83 WHEN 62 * - 76 THEN 65 ELSE NULL END + + 6 THEN COUNT ( * ) * - 35 ELSE 74 END col2 @@ -26206,8 +26487,11 @@ SELECT ALL ( - - 51 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2244 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \* Int64\(33\) AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 68 * + + 33 AS col1, + 47 col1 +---- +-2244 +47 query II rowsort label-4994 SELECT DISTINCT + 61 - COUNT ( * ) col0, - COUNT ( * ) * + 84 + - 85 + 0 + - 8 * 60 * + + 27 @@ -26496,8 +26780,11 @@ SELECT ALL - 23, 43 * + 58 AS col1 # 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 "Int64\(\-49\) AS col0" at position 0 and "Int64\(11\) / Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 49 AS col0, 11 / - 15 AS col0 +---- +-49 +0 query I rowsort label-5047 SELECT ALL COUNT ( * ) * - 96 AS col0 @@ -26574,8 +26861,11 @@ 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\(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\. +query II valuesort SELECT ALL - + ( - COUNT ( * ) ) + - + NULLIF ( + - 82, + 84 * + 40 * - - 51 + + - 58 ) * 53 AS col2, - 2 col2 +---- +-2 +4347 query II rowsort SELECT DISTINCT 85 AS col1, 54 @@ -26989,8 +27279,11 @@ SELECT - 96 / + 61 * - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 38 AS col2, 81 AS col2 +---- +-38 +81 query I rowsort SELECT - 9 * 7 AS col2 @@ -27308,14 +27601,20 @@ SELECT DISTINCT - - COALESCE ( - + 76, - 97, + 84 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 84 AS col0, + 55 col0 +---- +55 +84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2232 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* Int64\(36\) \* sum\(\(\- Int64\(\-31\)\)\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 * + 36 * + SUM ( ALL - ( - 31 ) ) AS col1, + 74 AS col1 +---- +2232 +74 query I rowsort SELECT ALL 88 + 65 @@ -27565,8 +27864,11 @@ SELECT ALL 20 / - 47 + - 46 AS col0, 92 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -125 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) \+ Int64\(\-32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 93 + - 32 AS col0, + COUNT ( * ) AS col0 +---- +-125 +1 query I rowsort label-5250 SELECT DISTINCT - - 26 / 45 + - 75 + 72 + - ( - - 84 ) + - CAST ( NULL AS INTEGER ) + + 92 @@ -27658,8 +27960,11 @@ SELECT ALL NULLIF ( + + COUNT ( * ), - 58 * - ( - - 35 ) + - - COUNT ( - + 15 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / min\(CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(DISTINCT Int64\(94\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) / + MIN ( + CAST ( NULL AS INTEGER ) ) AS col1, COUNT ( DISTINCT + 94 ) AS col1 +---- +1 +NULL query I rowsort label-5268 SELECT ALL MIN ( ALL - 26 ) * 92 * - CAST ( + 70 AS INTEGER ) * ( 59 ) + + 41 AS col0 @@ -27929,8 +28234,11 @@ SELECT + 33 * - MAX ( + + ( + ( + 41 ) ) ) * - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(63\) AS col0" at position 0 and "Int64\(33\) \+ Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) * + 63 AS col0, 33 + 21 AS col0 +---- +54 +NULL query I rowsort SELECT - 42 + + - 95 @@ -28166,8 +28474,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 60 AS col1, + 47 AS col1 +---- +47 +60 query I rowsort SELECT ALL + + ( + 97 ) AS col0 @@ -28207,8 +28518,11 @@ SELECT - ( + 88 ) * 83 + + 3 * - 85 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 0 and "Int64\(\-52\) \+ Int64\(83\) \- Int64\(88\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 95 col1, - 52 + + + 83 - + + 88 - + COUNT ( * ) AS col1 +---- +-58 +95 query I rowsort label-5374 SELECT ( + 54 ) * - - 1 * + 82 * - CAST ( NULL AS INTEGER ) + - + 30 + - - CAST ( NULL AS INTEGER ) - + 1 AS col1 @@ -28326,8 +28640,11 @@ SELECT ALL - COUNT ( * ) AS col1, 96 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col0" at position 0 and "Int64\(64\) / Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 50 AS col0, 64 / + 77 col0 +---- +0 +50 query II rowsort label-5396 SELECT - ( SUM ( ALL - 54 ) ) * + + 72 * - 68 + - - 83 + - 84 * - - 93 + + 10, COUNT ( * ) AS col0 @@ -28686,8 +29003,11 @@ SELECT ( + 46 ) * - 1 + - 16 + ( 28 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 120885 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) / Int64\(13\) \- Int64\(\-37\) \* Int64\(\-33\) \* Int64\(\-99\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 88 / 13 - - 37 * - 33 * - 99 AS col0, 0 AS col0 +---- +0 +120885 query II rowsort SELECT ALL + ( + 73 ), 70 * NULLIF ( - + 99, 18 ) AS col1 @@ -28859,8 +29179,11 @@ SELECT DISTINCT COUNT ( * ) - - 94 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 129 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "Int64\(59\) \+ Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 AS col0, 59 + + 70 AS col0 +---- +129 +58 query I rowsort label-5495 SELECT + 56 + + CAST ( + 59 AS INTEGER ) + + 38 + 36 * + 92 @@ -28885,8 +29208,11 @@ SELECT + 86 - + 99 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col0" at position 0 and "Int64\(21\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(40\) \- Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 94 AS col0, + 21 + - - CAST ( NULL AS INTEGER ) + + 40 - + - 10 AS col0 +---- +-94 +NULL query I rowsort label-5500 SELECT ALL - COALESCE ( + 60, - CASE - MIN ( 75 ) WHEN - - 93 THEN NULL ELSE + - 14 * + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) * + 76 + + + 87 - 98 * + 10 + 15 * + + COUNT ( * ) END * + - COUNT ( * ), 65 - + + 21 ) AS col0 @@ -29136,8 +29462,11 @@ SELECT ALL - + 21 AS col1, 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-60\)\) AS col0" at position 0 and "Int64\(68\) \+ Int64\(29\) / Int64\(\-23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 60 AS col0, 68 + 29 / - 23 AS col0 +---- +60 +67 query II rowsort SELECT 77 AS col1, + 8 * + 58 - 84 * + CASE + NULLIF ( 2, - + 5 ) WHEN + - 0 THEN - - 13 ELSE NULL END @@ -29249,8 +29578,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) + + 85 AS col1, 65 AS col1 +---- +65 +84 query I rowsort label-5568 SELECT 95 * ( + ( - 56 ) ) * - 47 + + ( - 90 ) + 49 * NULLIF ( - MAX ( DISTINCT 22 ), - 73 * - 53 - + 51 + - ( CASE + 29 WHEN + + MAX ( ALL - 73 ) THEN - COALESCE ( - 20, + - 70 / - 81 + + + SUM ( DISTINCT + 59 ) ) * - + NULLIF ( - SUM ( DISTINCT 98 ), - - CASE - 55 WHEN - 82 * 93 + 14 THEN NULL WHEN COUNT ( * ) * 73 + 15 * + 11 THEN COALESCE ( 50, ( 22 ) + 8 ) END ) + 4 + 44 END ) + 82 ) * - 43 @@ -29260,8 +29592,11 @@ SELECT 95 * ( + ( - 56 ) ) * - 47 + + ( - 90 ) + 49 * NULLIF ( - MAX ( DISTINCT # 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 "sum\(Int64\(56\)\) AS col1" at position 0 and "\(\- CASE Int64\(76\) WHEN Int64\(42\) THEN Int64\(63\) \- Int64\(\-70\) \* Int64\(\-26\) \* Int64\(98\) WHEN Int64\(15\) THEN Int64\(98\) ELSE NULL END\) \+ Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( + 56 ) AS col1, - CASE + + 76 WHEN + 42 THEN + + 63 - - 70 * - 26 * 98 WHEN + 15 THEN + 98 ELSE NULL END + + 13 AS col1 +---- +56 +NULL query I rowsort label-5570 SELECT ALL + COUNT ( * ) / 12 @@ -29507,8 +29842,11 @@ SELECT 56 / - 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 8160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-17\) AS Int32\) \- CAST\(NULL AS Int32\) \* \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col0" at position 0 and "Int64\(\-96\) \* Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - 17 AS INTEGER ) - + CAST ( NULL AS INTEGER ) * + - CAST ( + - COUNT ( * ) AS INTEGER ) AS col0, - 96 * - 85 AS col0 +---- +8160 +NULL query I rowsort label-5617 SELECT DISTINCT SUM ( - 87 ) + + 86 + + 47 / + 44 * COUNT ( * ) AS col0 @@ -30007,8 +30345,11 @@ 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\)\) 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\. +query II valuesort SELECT + ( + + 16 ) AS col0, 57 + - COUNT ( * ) + ( + 1 ) * - 28 + + 98 + COUNT ( * ) * + COUNT ( * ) + - 74 * - COUNT ( * ) * + 11 * - 1 col0 +---- +-687 +16 query II rowsort label-5712 SELECT - 79 / 47, - COUNT ( - + 53 ) @@ -30232,8 +30573,11 @@ SELECT + ( 94 ) * 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, - 45 AS col0 +---- +-45 +1 query I rowsort label-5755 SELECT - 8 * 58 * COUNT ( ALL + 48 ) * 1 @@ -30330,8 +30674,11 @@ SELECT - 21 * + ( - - 7 ) + + NULLIF ( + 16, + + 87 * 66 * ( - - 2 ) + + 75 + - # Datafusion - Datafusion expected results: # Datafusion - Expected - -3360 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \* Int64\(56\) AS col2" at position 0 and "Int64\(36\) \+ Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 60 * 56 AS col2, 36 + 43 AS col2 +---- +-3360 +79 query I rowsort SELECT DISTINCT 89 + 17 AS col1 @@ -30346,8 +30693,11 @@ SELECT ALL + ( - 70 ) + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \+ CASE Int64\(8\) WHEN Int64\(77\) \+ \(\- CAST\(Int64\(46\) AS Int32\)\) THEN Int64\(\-93\) \+ coalesce\(Int64\(4\), count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(21\) \* Int64\(\-25\) \* \(\- Int64\(\-78\)\) \* Int64\(18\) ELSE NULL END AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-8 +NULL query I rowsort label-5777 SELECT DISTINCT COUNT ( * ) * 66 * - 27 AS col2 @@ -30638,8 +30988,11 @@ SELECT ALL 38 / 62 + + 91 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT 93 AS col2, - 33 AS col2 +---- +-33 +93 query II rowsort label-5834 SELECT + 62 AS col0, CASE - COUNT ( * ) WHEN + - CASE NULLIF ( 74, + 66 ) WHEN - 47 / + 20 THEN + 28 END THEN - + 14 ELSE NULL END + 17 AS col1 @@ -30760,8 +31113,11 @@ SELECT - - 94, 80 + + 54 - + NULLIF ( + 81, - NULLIF ( COUNT ( * ), + 87 * 56 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 13 AS col2 +---- +1 +13 query I rowsort SELECT ALL - + ( + + 70 ) + 10 + - - 70 AS col2 @@ -31045,8 +31401,11 @@ SELECT DISTINCT COALESCE ( - + 30, - 5, - ( COUNT ( * ) ) * - 57 + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* CAST\(NULL AS Int32\) \- Int64\(\-70\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(\-55\)\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + 5 ) * + CAST ( NULL AS INTEGER ) - - 70 * - - COUNT ( * ) * - - 55 AS col1, ( + 29 ) AS col1 +---- +29 +NULL query I rowsort SELECT + 1 * - 33 AS col0 @@ -31077,8 +31436,11 @@ SELECT + 77 + + 52 * - CAST ( + + 78 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col1" at position 0 and "CAST\(Int64\(96\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 33 AS col1, CAST ( + ( 96 ) AS INTEGER ) AS col1 +---- +-33 +96 query I rowsort label-5916 SELECT ALL + - 81 * + COUNT ( * ) + - 17 @@ -31866,8 +32228,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(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\. +query RI valuesort 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 +---- +-81 +NULL query I rowsort label-6065 SELECT ALL CAST ( NULL AS INTEGER ) * + - 69 + 2 col2 @@ -32104,8 +32469,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4189 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \+ \(\- Int64\(46\)\) \+ Int64\(\-59\) \* Int64\(\-71\) \+ \(\- Int64\(\-11\)\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 35 + - + 46 + - 59 * - 71 + - - 11 col0, + 39 AS col0 +---- +39 +4189 query II rowsort label-6110 SELECT DISTINCT - 74 + - + ( - 54 ) + + 46 / COUNT ( 15 ) * - 86 AS col0, + ( + COUNT ( * ) ) * + COALESCE ( + - COUNT ( * ), + 83, + - 80 ) @@ -33474,8 +33842,11 @@ SELECT + 14, ( + + 40 ) * - 34 + + 61 + + 14 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, 51 AS col0 +---- +1 +51 query II rowsort label-6377 SELECT ALL + COUNT ( * ) AS col2, 28 @@ -33576,8 +33947,11 @@ SELECT + - 73 + + 5 + + - NULLIF ( - 5, - 62 * + 43 - 31 + 84 + + 32 ) - 52 * + # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col2" at position 0 and "coalesce\(\(\- \(\- Int64\(\-78\)\)\), Int64\(67\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 61 AS col2, COALESCE ( - - ( - 78 ), 67 ) col2 +---- +-61 +-78 query I rowsort SELECT + + 4 * 17 @@ -34197,8 +34571,11 @@ SELECT + 22 + 59 - + - 52 * + 51 AS col1 # 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\(35\) \+ Int64\(\-59\) AS col0" at position 0 and "Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 + - 59 AS col0, + 15 AS col0 +---- +-24 +15 query I rowsort label-6513 SELECT - 97 - CAST ( NULL AS INTEGER ) * 71 AS col1 @@ -34223,8 +34600,11 @@ SELECT DISTINCT - COUNT ( * ) * 92 * 5 # 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 "Int64\(49\) / min\(DISTINCT Int64\(\-36\)\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 49 / + MIN ( DISTINCT - 36 ) AS col2, + 55 AS col2 +---- +-1 +55 query II rowsort label-6518 SELECT DISTINCT SUM ( + 28 ) AS col2, + ( + + 98 ) / 62 * + 17 @@ -34585,8 +34965,11 @@ SELECT + COUNT ( * ) + - NULLIF ( - 69, + 12 ) AS col2, 58 # 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 col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 AS col2, 46 AS col2 +---- +46 +6 query I rowsort label-6585 SELECT ALL COUNT ( DISTINCT + 84 ) + - + 55 @@ -34814,8 +35197,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) - - - 20 + 80 * + + ( 24 ) AS col0, SUM ( - 47 ) AS col0 +---- +-47 +1901 query I rowsort label-6628 SELECT MIN ( 16 ) * 60 @@ -35148,8 +35534,11 @@ 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\(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\. +query II valuesort SELECT ( + - 18 ) AS col1, - ( + - MIN ( ALL + COALESCE ( + 32, + + 6 ) ) ) * - - 34 + + + COALESCE ( + 96, + COUNT ( * ) + - SUM ( ALL + 92 ) ) + 25 - - 11 / - ( 94 ) * + 36 col1 +---- +-18 +1209 query I rowsort SELECT + - 32 + - + 79 + - 13 AS col2 @@ -35220,8 +35609,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(10\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 / + + 55 col0, + COUNT ( * ) * - + 10 AS col0 +---- +-10 +0 query I rowsort SELECT 15 + + + 86 - - 50 @@ -35423,8 +35815,12 @@ SELECT 9 + + - 32 # Datafusion - Expected - 999 # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-77\) \* Int64\(50\) / Int64\(\-4\) \- Int64\(\-47\) \+ Int64\(\-11\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IRI valuesort SELECT ALL COUNT ( * ) + - 77 * 50 / - 4 - + - 47 + + - 11 col0, + CAST ( NULL AS FLOAT8 ) + 66 + + + 26 + + - COUNT ( DISTINCT 92 ), + COUNT ( * ) AS col0 +---- +1 +999 +NULL query I rowsort label-6745 SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / - - 94 + + SUM ( - - 72 ) - 10 + + CASE ( + 16 ) WHEN + MIN ( + - CAST ( 15 AS INTEGER ) ) THEN NULL WHEN - ( 48 ) * - 41 THEN NULL WHEN + + COUNT ( * ) * - CASE 80 WHEN 79 THEN NULL WHEN 46 * 42 THEN NULL ELSE 74 / + 65 END THEN NULL ELSE 87 / + 9 + COALESCE ( 13 + + 74 * 50, - 61 ) END * + 79 AS col1 @@ -35935,8 +36331,11 @@ SELECT + 51, - 34 + + 85 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(21\) AS col0" at position 0 and "CAST\(Int64\(10\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) - 21 col0, CAST ( + 10 AS INTEGER ) AS col0 +---- +-20 +10 query I rowsort label-6842 SELECT ALL 79 * + + 18 * + 43 + 49 + 29 + 76 * + MIN ( DISTINCT ( + - 12 ) ) + - 3 @@ -36191,8 +36590,11 @@ SELECT - 61 - - 42 * - 21 * + COUNT ( DISTINCT + 98 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -756 # Datafusion - Expected - 2133 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-28\)\) \* \(\- Int64\(27\)\) AS col2" at position 0 and "Int64\(\-27\) \* Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 28 ) * - + 27 AS col2, - 27 * - 79 AS col2 +---- +-756 +2133 query I rowsort label-6890 SELECT - 37 - - NULLIF ( + 93, + - MIN ( ALL + 5 ) * + + ( - - 61 ) + + - 31 + - + ( + - 57 ) ) + - 44 @@ -36589,8 +36991,11 @@ SELECT 7 + + - 28 / + 13, CAST ( + COUNT ( * ) AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- Int64\(27\)\), Int64\(51\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-64\)\)\) AS col2" at position 0 and "Int64\(69\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( - + 27, + 51, - COUNT ( * ) * - 64 ) AS col2, + 69 + + + COUNT ( * ) AS col2 +---- +27 +70 query I rowsort label-6965 SELECT ALL - - MAX ( ALL 66 ) + - ( - 80 ) * 3 @@ -36748,8 +37153,11 @@ SELECT ALL + 94 * - + MIN ( + + 39 ) - + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 8004 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "Int64\(87\) \* \(\- Int64\(\-92\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 30 AS col2, 87 * - - 92 AS col2 +---- +30 +8004 query II rowsort label-6995 SELECT ALL + 86 * + 86 + 39 * - + 32 AS col1, - ( 15 ) - - 57 + + - 23 - - COUNT ( * ) - - CAST ( NULL AS INTEGER ) * - 64 * + - 39 * COUNT ( * ) * + ( - MAX ( ALL + 55 ) ) @@ -36886,8 +37294,11 @@ 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\(Int64\(1\)\) AS count\(\*\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - 98 ) AS col1, + ( + COUNT ( * ) ) / - COUNT ( * ) AS col1 +---- +-1 +-98 query I rowsort SELECT ALL - 98 * - 39 @@ -37246,8 +37657,11 @@ SELECT 59 * - - 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 94 AS col2, COUNT ( * ) AS col2 +---- +-94 +1 query I rowsort label-7091 SELECT ALL - 2 * COALESCE ( 1, - COUNT ( * ), - 82 * + + 29 ) * COUNT ( * ) / - COUNT ( * ) / - - COUNT ( * ) + + 63 @@ -37561,8 +37975,11 @@ SELECT DISTINCT + - 98 + + SUM ( ALL + + 38 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-63\)\) AS Int32\) AS col2" at position 0 and "Int64\(\-87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - - 63 AS INTEGER ) AS col2, - 87 col2 +---- +-87 +63 query I rowsort SELECT ALL - 98 + - 31 * + 38 * 25 AS col2 @@ -37628,8 +38045,11 @@ SELECT CASE - 16 WHEN + 22 * ( NULLIF ( + 91, - MAX ( - 4 ) + + + 81 + - 67 - - # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \- Int64\(\-19\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 66 - - 19 AS col1, 87 AS col1 +---- +85 +87 query I rowsort label-7162 SELECT ( - 44 ) / - + 67 + MIN ( DISTINCT 32 ) + - COUNT ( * ) AS col0 @@ -37711,8 +38131,11 @@ SELECT DISTINCT + - ( + ( - - CAST ( + 38 AS INTEGER ) ) ) / - - 82 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1000 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(40\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 * + + 40 AS col1, 85 AS col1 +---- +1000 +85 query I rowsort label-7178 SELECT CASE + + 86 WHEN + 25 THEN CAST ( NULL AS INTEGER ) * + - 20 + + 30 + + - 37 + + 11 + + ( - COALESCE ( 14, - 21 * + 32 + - COUNT ( * ) + - 58 * + + 49, - ( COUNT ( CAST ( + 81 AS INTEGER ) ) ) ) ) * + 16 * - 94 END - MAX ( + 59 ) * - 88 + + + 38 @@ -37913,8 +38336,11 @@ SELECT DISTINCT + 31 * + 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 21215844 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(3\), Int64\(96\) \* Int64\(54\) \* \(\- coalesce\(coalesce\(count\(Int64\(1\)\) AS count\(\*\), coalesce\(Int64\(99\), coalesce\(nullif\(Int64\(78\), Int64\(7\) \+ Int64\(72\)\), Int64\(22\), Int64\(37\)\) \* Int64\(35\) \* Int64\(26\) \* Int64\(\-31\)\)\), Int64\(40\) \* count\(Int64\(1\)\) AS count\(\*\)\)\) \- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-69\) \* \(\- Int64\(73\)\) \* Int64\(\-81\) \* \(\- Int64\(52\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +21215844 +3 query I rowsort SELECT DISTINCT - 4 + 93 - + 72 AS col0 @@ -37939,8 +38365,11 @@ SELECT + COUNT ( - + 14 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(\-61\)\) / \(\- Int64\(19\)\) \+ count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- nullif\(Int64\(\-96\), Int64\(\-57\) \* CASE Int64\(46\) WHEN Int64\(\-34\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(74\) \* nullif\(coalesce\(Int64\(\-4\), Int64\(11\)\), Int64\(\-84\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-65\)\) \+ Int64\(65\) \+ Int64\(4\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(79\) \+ Int64\(\-86\) \+ Int64\(25\) \+ \(\- CASE Int64\(\-64\) WHEN \(\- min\(Int64\(23\)\)\) THEN Int64\(2\) WHEN Int64\(\-51\) / Int64\(\-61\) THEN Int64\(\-92\) ELSE NULL END\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(97\) \* Int64\(\-67\) WHEN Int64\(\-51\) THEN \(\- CAST\(nullif\(Int64\(\-86\), Int64\(83\)\) AS Int32\)\) END\)\) \+ Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-1 +145 query I rowsort label-7222 SELECT CASE + 8 WHEN - + COUNT ( ALL 69 ) THEN - 95 WHEN CAST ( + 66 AS INTEGER ) THEN NULL END @@ -38222,8 +38651,11 @@ SELECT ALL - + 34 * 74 + + 67 * - + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-55\)\) AS col0" at position 0 and "Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 55 AS col0, 19 AS col0 +---- +19 +55 query I rowsort SELECT + ( + - ( + 67 ) ) @@ -38524,8 +38956,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 907 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(41\) \+ Int64\(46\) AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 21 * + 41 + + 46 AS col0, 86 AS col0 +---- +86 +907 query II rowsort SELECT ALL + 12 * 51 * - 22 AS col2, 27 + - + 10 + - - 9 col0 @@ -38816,8 +39251,11 @@ SELECT COALESCE ( - 29, + 63, 83 * + 58 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 8624 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-51\) AS Int32\) AS col0" at position 0 and "Int64\(\-98\) \* Int64\(\-88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - 51 AS INTEGER ) AS col0, - 98 * + - 88 AS col0 +---- +-51 +8624 query I rowsort SELECT ALL ( ( 5 ) ) @@ -39189,8 +39627,11 @@ SELECT COUNT ( * ) AS col1, - 13 - + - 62 + - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 86 AS col0, 39 AS col0 +---- +-86 +39 query II rowsort label-7460 SELECT + 15, 2 + + 71 * + + 81 * - COUNT ( * ) + MAX ( + 12 ) * + + 35 AS col0 @@ -39345,8 +39786,11 @@ SELECT + 16 * - 2 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1360 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* \(\- coalesce\(Int64\(16\), Int64\(38\)\)\) AS col2" at position 0 and "\(\- CAST\(CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN \(\- \(\- \(\- CAST\(NULL AS Int32\)\)\)\) THEN Int64\(34\) WHEN Int64\(21\) THEN NULL ELSE Int64\(97\) END AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-1360 +-97 query I rowsort label-7489 SELECT + CASE + CASE - + 30 WHEN - 30 * - COUNT ( * ) THEN NULL WHEN - 19 * - COUNT ( * ) THEN - 39 WHEN 74 THEN NULL END WHEN - 15 + - 64 + - + 58 THEN - 63 END + + + 98 + + 16 * - CAST ( - COUNT ( * ) AS INTEGER ) @@ -39662,8 +40106,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, COUNT ( * ) AS col2 +---- +1 +1 query I rowsort label-7548 SELECT ALL - - CASE + - 34 WHEN - + AVG ( ALL + + 41 ) + + + 29 THEN - - COUNT ( - + 35 ) * 54 WHEN - + 81 * + + 84 THEN NULL END @@ -41125,8 +41572,11 @@ SELECT ALL + 40 / + - 92 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90 AS col2, + 80 AS col2 +---- +80 +90 query I rowsort label-7831 SELECT ALL ( - COALESCE ( + + COUNT ( * ), 72, - 46 * - 17 ) ) * NULLIF ( COUNT ( * ), - 92 ) + + 78 AS col2 @@ -41740,8 +42190,11 @@ 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\(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\. +query II valuesort SELECT ALL 17 AS col2, CASE + COUNT ( * ) WHEN - 56 / - 24 THEN NULL WHEN + 48 THEN 93 END AS col2 +---- +17 +NULL query I rowsort SELECT - 11 * + 10 @@ -42062,8 +42515,11 @@ SELECT ALL 87 + - 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 71 AS col2, 50 AS col2 +---- +50 +71 query I rowsort label-8010 SELECT ALL CASE 40 WHEN - 25 * - - MAX ( DISTINCT + 93 ) THEN + COUNT ( * ) WHEN + SUM ( + + 82 ) + 76 / - 41 THEN - 33 * COUNT ( * ) END * 1 @@ -42109,14 +42565,20 @@ SELECT COALESCE ( 11, 63 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "Int64\(\-64\) / Int64\(31\) \* Int64\(38\) / Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 AS col0, - 64 / 31 * 38 / + - 94 AS col0 +---- +0 +84 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(39\)\) AS col0" at position 0 and "nullif\(\(\- Int64\(19\)\), \(\- CASE WHEN NOT Int64\(47\) IN \(\[max\(Int64\(16\)\)\]\) THEN count\(DISTINCT Int64\(24\)\) ELSE NULL END\)\) \- \(\- CAST\(Int64\(35\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 39 col0, NULLIF ( - + 19, - CASE WHEN NOT 47 IN ( + MAX ( + 16 ) ) THEN + COUNT ( DISTINCT 24 ) ELSE NULL END ) - - CAST ( + 35 AS INTEGER ) col0 +---- +-39 +16 query I rowsort SELECT + + COALESCE ( + 23, - 39 ) @@ -42146,8 +42608,11 @@ SELECT ALL - - ( + 46 ) * + 71 * - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "CASE Int64\(\-92\) WHEN Int64\(\-82\) THEN Int64\(58\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 99 AS col0, CASE - 92 WHEN - 82 THEN 58 END AS col0 +---- +99 +NULL query II rowsort label-8026 SELECT - COUNT ( * ) AS col2, 16 AS col1 @@ -42738,8 +43203,11 @@ 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\(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\. +query II valuesort 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 +---- +45 +NULL query II rowsort label-8139 SELECT + 74 + + MAX ( + - 50 ) / - 87 - - COUNT ( * ) - + 3 AS col0, + 44 @@ -43007,8 +43475,12 @@ SELECT ALL 46 + 70 # Datafusion - Expected - 0 # Datafusion - Expected - 770 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) / Int64\(27\) \* Int64\(95\) AS col0" at position 0 and "Int64\(77\) \* Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 16 / + + 27 * + 95 AS col0, + 77 * ( 10 ) col0, 36 AS col1 +---- +0 +36 +770 query I rowsort label-8191 SELECT DISTINCT ( - 9 ) + + - COUNT ( * ) * 26 @@ -43521,8 +43993,11 @@ SELECT 54 - - 55 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 2226 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \+ Int64\(63\) \+ Int64\(23\) AS col1" at position 0 and "CASE Int64\(\-5\) WHEN Int64\(11\) THEN Int64\(\-50\) \+ Int64\(79\) ELSE sum\(Int64\(\-62\)\) END \* Int64\(1\) \+ Int64\(\-46\) \+ Int64\(31\) \* Int64\(69\) \+ Int64\(63\) \+ Int64\(80\) \+ Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 12 ) + + 63 + 23 AS col1, + CASE - 5 WHEN + 11 THEN - 50 + + 79 ELSE SUM ( ALL + - 62 ) END * 1 + - 46 + 31 * + + 69 + + 63 + 80 + 52 AS col1 +---- +2226 +98 query I rowsort label-8290 SELECT COUNT ( * ) / - + 53 @@ -43670,8 +44145,11 @@ SELECT - 82 + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-88\)\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 88 AS col1, 85 AS col1 +---- +85 +88 query I rowsort label-8318 SELECT COUNT ( ALL - 84 ) * SUM ( - 59 ) AS col1 @@ -43739,8 +44217,11 @@ SELECT ALL 5 - + - MAX ( DISTINCT 96 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -156919 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \- \(\- Int64\(63\)\) \+ Int64\(59\) \* Int64\(41\) \* Int64\(58\) \+ Int64\(\-25\) \+ CASE Int64\(\-90\) WHEN Int64\(56\) THEN NULL ELSE Int64\(\-3\) \+ Int64\(\-50\) \+ Int64\(\-47\) \* Int64\(\-68\) \* Int64\(\-93\) END \+ \(\- Int64\(59\)\) AS col0" at position 0 and "Int64\(44\) \* count\(DISTINCT Int64\(51\)\) \+ Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 81 - - + 63 + + 59 * + + 41 * 58 + - 25 + CASE - 90 WHEN 56 THEN NULL ELSE - 3 + + - 50 + - 47 * - 68 * + - 93 END + - + 59 AS col0, 44 * + COUNT ( DISTINCT 51 ) + 43 AS col0 +---- +-156919 +87 query II rowsort SELECT + 45 * + + 48 AS col2, 79 AS col0 @@ -43941,8 +44422,12 @@ SELECT - 87 + - + 96 AS col2 # Datafusion - Expected - 19 # Datafusion - Expected - 111 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "Int64\(45\) \+ min\(Int64\(66\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 19 AS col0, + 45 + MIN ( 66 ) AS col0, - - ( 80 ) +---- +111 +19 +80 query I rowsort label-8369 SELECT DISTINCT NULLIF ( COUNT ( * ), + CASE - 73 WHEN + 5 THEN - - 87 + NULLIF ( - 81, + NULLIF ( 53, + CASE + 81 WHEN COUNT ( * ) THEN NULL WHEN - 67 THEN + + 14 - + 46 * 50 END + - 43 ) ) + - 27 WHEN 51 THEN NULL ELSE NULL END * 93 + - 90 ) @@ -43972,8 +44457,11 @@ SELECT DISTINCT - 4 / - 34 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 AS col0, 41 AS col0 +---- +11 +41 query II rowsort label-8375 SELECT - 92 * + COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col0, 29 @@ -44395,8 +44883,11 @@ SELECT - 92 * - + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 15 AS col0, + 91 AS col0 +---- +15 +91 query I rowsort SELECT ALL + 89 * 34 @@ -44472,8 +44963,11 @@ NULL # 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\(\-65\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 65 AS col1, + 10 AS col1 +---- +-65 +10 query I rowsort SELECT - 74 * - 68 AS col0 @@ -44750,8 +45244,11 @@ SELECT - ( 15 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col0" at position 0 and "Int64\(2\) \+ Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 75 AS col0, 2 + + 39 AS col0 +---- +41 +75 query II rowsort SELECT ALL - 43 AS col0, 4 AS col1 @@ -44869,8 +45366,11 @@ SELECT ALL - 25 * - - 33 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col0" at position 0 and "\(\- \(\- nullif\(Int64\(16\), Int64\(\-71\) \+ Int64\(\-48\)\)\)\) \- Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 31 AS col0, ( - - NULLIF ( + 16, + - 71 + - 48 ) ) - 61 col0 +---- +-45 +31 query II rowsort label-8543 SELECT ALL - COUNT ( ALL 21 ) * - 40 AS col2, + 40 * - + COUNT ( * ) - + CAST ( NULL AS INTEGER ) @@ -45050,8 +45550,11 @@ SELECT - CAST ( + 10 AS INTEGER ) * - 14 + + 47 AS col1, COUNT ( * ) + - 45 / - # Datafusion - Datafusion expected results: # Datafusion - Expected - 5610 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \* Int64\(\-66\) AS col2" at position 0 and "Int64\(\-51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 85 * + - 66 AS col2, - 51 AS col2 +---- +-51 +5610 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -45214,8 +45717,11 @@ SELECT ALL + 86 AS col2, - 80 + 8 * - 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-88\), Int64\(23\)\) AS col0" at position 0 and "Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( - 88, 23 ) AS col0, + 52 AS col0 +---- +-88 +52 query I rowsort SELECT ALL + 11 * 4 @@ -45421,8 +45927,11 @@ SELECT - COALESCE ( - - 95, - 49 * 13 * + + 48 ) + 94 / + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "Int64\(\-34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90 AS col1, - 34 AS col1 +---- +-34 +90 query I rowsort label-8648 SELECT ALL + CAST ( NULL AS INTEGER ) + - - 0 AS col0 @@ -45658,8 +46167,11 @@ SELECT DISTINCT - ( + 40 ) + 87 - 69 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(44\)\), Int64\(28\)\) \+ \(\- CASE \(\- Int64\(\-28\)\) WHEN Int64\(\-67\) THEN Int64\(96\) WHEN CAST\(NULL AS Int32\) THEN NULL WHEN \(\- Int64\(2\)\) \* Int64\(81\) THEN \(\- count\(Int64\(\-53\)\)\) \+ Int64\(\-6\) END\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1 +NULL query II rowsort label-8693 SELECT NULLIF ( 18, - - 91 ), 45 / + 54 AS col2 @@ -45825,8 +46337,11 @@ SELECT ALL + 47 + - 26 - - COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6142 # Datafusion - Expected - 1125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \* Int64\(83\) AS col1" at position 0 and "Int64\(15\) \* Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 74 * 83 AS col1, 15 * + + 75 AS col1 +---- +-6142 +1125 query I rowsort SELECT - 86 - + + ( - 53 ) @@ -46316,8 +46831,11 @@ SELECT DISTINCT + 43 * 30 * - 26 * + + 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -107 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT Int64\(95\)\) AS col0" at position 0 and "Int64\(\-5\) / Int64\(78\) \+ \(\- max\(Int64\(63\)\)\) \+ Int64\(\-44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( DISTINCT + 95 ) col0, - 5 / + 78 + - MAX ( 63 ) + - 44 AS col0 +---- +-107 +1 query I rowsort SELECT 52 * 82 * + + 87 - 90 * - + ( - 53 ) AS col0 @@ -46884,8 +47402,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3116 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \+ Int64\(\-79\) \* Int64\(40\) AS col2" at position 0 and "\(\- Int64\(73\)\) \+ Int64\(\-14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 44 + - 79 * + 40 AS col2, ( - + 73 ) + - 14 AS col2 +---- +-3116 +-87 query I rowsort label-8926 SELECT ( - 33 ) + - MAX ( ALL - 41 ) @@ -47281,8 +47802,11 @@ SELECT ALL 14 / COUNT ( * ) + + 2 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(CAST\(NULL AS Int32\), Int64\(\-60\)\) AS col2" at position 0 and "\(\- sum\(Int64\(84\)\)\) \* Int64\(\-1\) \- Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COALESCE ( + + CAST ( NULL AS INTEGER ), - 60 ) AS col2, - SUM ( ALL 84 ) * - 1 - - 12 AS col2 +---- +-60 +96 query I rowsort label-9001 SELECT - COALESCE ( 61, 70 * + COUNT ( * ) + - - 31 + + 73 ) * - 49 @@ -47997,20 +48521,29 @@ SELECT ALL 3 / - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 4880 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "Int64\(\-61\) \* Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 56 AS col0, - 61 * - 80 AS col0 +---- +4880 +56 # 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 col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 9 AS col2, 40 col2 +---- +40 +9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 60 col1, 27 AS col1 +---- +27 +60 query II rowsort SELECT 20 AS col1, + 51 @@ -48113,14 +48646,20 @@ SELECT - 1 * 74 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col1" at position 0 and "Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 30 AS col1, - 79 col1 +---- +-30 +-79 # 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 "Int64\(52\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 52 AS col1, 83 AS col1 +---- +52 +83 query I rowsort label-9157 SELECT + 84 + + SUM ( DISTINCT - 38 ) AS col2 @@ -48196,8 +48735,11 @@ SELECT - COUNT ( - 89 ) + + 91 + 30 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -114 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \+ Int64\(\-50\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 64 + - 50 AS col0, 93 AS col0 +---- +-114 +93 query I rowsort SELECT ALL - - 21 + 92 AS col0 @@ -48239,8 +48781,11 @@ SELECT ALL - 53 col2, + 35 / + MIN ( DISTINCT - 64 ) + - - 37 AS col0 # 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\(\-24\) AS col0" at position 0 and "Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 24 AS col0, - 15 AS col0 +---- +-15 +-24 query I rowsort label-9180 SELECT 49 * 70 - + - 88 * - + COALESCE ( - 75, + NULLIF ( - COALESCE ( + 52, - 5 * - COALESCE ( - 39, 62 ) + + 50, - + 66 * COUNT ( * ) + - 1 * + 83 * 76 + - + 59 ), - + 54 - - + NULLIF ( + - 75, ( + + CASE 53 WHEN - COALESCE ( 47, - 67 + + 47 * - SUM ( ALL + + 86 ) * - 18 - - 31, - 24 ) THEN - 99 END ) * + 47 + - - 55 ) ) + - SUM ( DISTINCT + + 43 ) + NULLIF ( + 51, - + COUNT ( * ) / - 12 * + NULLIF ( - 12, - 14 + NULLIF ( 92, - 13 ) ) ) * + MAX ( DISTINCT - 76 ), - ( - CASE - COUNT ( * ) WHEN - 20 THEN + 35 END ) / + 77 ) @@ -48250,14 +48795,20 @@ SELECT 49 * 70 - + - 88 * - + COALESCE ( - 75, + NULLIF ( - COALESCE ( + 52, - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 168036 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "Int64\(67\) \* \(\- \(\- Int64\(66\)\)\) \* Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 68 col2, 67 * + - ( - + 66 ) * + 38 col2 +---- +168036 +68 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - -198 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col2" at position 0 and "Int64\(34\) \+ Int64\(23\) / Int64\(79\) \+ Int64\(8\) \* Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 69 AS col2, 34 + 23 / + + 79 + + 8 * + - 29 AS col2 +---- +-198 +-69 query I rowsort label-9183 SELECT ALL - COALESCE ( - CASE - 94 WHEN - - 97 THEN NULL ELSE - 17 / - 16 END, + CASE - - 31 WHEN + - COUNT ( * ) + + - COUNT ( * ) THEN - 34 + - + ( + 57 ) + 9 + - 85 * - 50 * + + 61 WHEN + 51 THEN + - 19 * 81 END + - - COUNT ( - 66 ) * + - 51, 14 ) @@ -48809,8 +49360,11 @@ SELECT ALL ( + + NULLIF ( - 40, - 34 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 73260 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(44\), Int64\(\-18\), Int64\(\-52\)\)\) AS col0" at position 0 and "Int64\(\-18\) \* \(\- Int64\(\-22\)\) \* Int64\(37\) \* Int64\(\-5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( + + 44, + - 18, - 52 ) AS col0, - 18 * - - 22 * 37 * - 5 col0 +---- +-44 +73260 query I rowsort SELECT DISTINCT - 85 * - 20 @@ -48830,8 +49384,11 @@ SELECT ALL + + 57 + - 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-53\)\) AS col1" at position 0 and "Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - 53 ) AS col1, - 70 AS col1 +---- +-70 +53 query II rowsort SELECT + 83, 10 + 51 col1 @@ -49390,8 +49947,11 @@ SELECT 29 + + - 86 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 20 AS col2, COUNT ( * ) AS col2 +---- +1 +20 query II rowsort label-9398 SELECT DISTINCT COUNT ( - NULLIF ( + - 5, - 70 + CAST ( NULL AS INTEGER ) ) ), 33 + + - 82 / - 36 - - ( 64 ) / - 29 + - 32 AS col1 @@ -49403,8 +49963,12 @@ SELECT DISTINCT COUNT ( - NULLIF ( + - 5, - 70 + CAST ( NULL AS INTEGER ) ) ), 3 # Datafusion - Expected - 1 # Datafusion - Expected - NULL # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL COUNT ( * ) AS col2, + MAX ( ALL - + CAST ( NULL AS INTEGER ) ), + 12 AS col2 +---- +1 +12 +NULL query I rowsort SELECT ALL 74 * - 72 AS col0 @@ -51210,8 +51774,11 @@ SELECT 17 - + 78 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 AS col0, 70 col0 +---- +70 +80 query I rowsort SELECT 1 + 78 @@ -51301,8 +51868,11 @@ SELECT ALL - + 45 / - ( + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) / Int64\(39\) \* \(\- Int64\(\-96\)\) AS col0" at position 0 and "CAST\(Int64\(36\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 9 / + 39 * - - 96 AS col0, CAST ( + 36 AS INTEGER ) AS col0 +---- +0 +36 query I rowsort SELECT ALL 52 * + 14 * 62 + 55 AS col1 @@ -51387,8 +51957,11 @@ SELECT 27 + - 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -189 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "Int64\(\-94\) \+ \(\- max\(Int64\(95\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 AS col0, - 94 + - MAX ( ALL + 95 ) AS col0 +---- +-189 +46 query I rowsort SELECT ALL ( + 61 ) - - + 96 @@ -51481,8 +52054,12 @@ SELECT ALL - - 10 * COALESCE ( 93, + COUNT ( * ), - + 29 / 4 ) AS col1 # Datafusion - Expected - NULL # Datafusion - Expected - -153 # Datafusion - Expected - 112 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "Int64\(17\) \* Int64\(\-9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - - CAST ( NULL AS INTEGER ) AS col1, + 17 * + ( + - 9 ) AS col1, + + 19 + + 93 AS col0 +---- +-153 +112 +NULL query I rowsort label-9804 SELECT DISTINCT - 3 * + 18 + CAST ( 46 AS INTEGER ) AS col2 @@ -51728,8 +52305,11 @@ SELECT ALL 51 * + 38 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(20\) \+ \(\- CAST\(\(\- Int64\(6\)\) AS Int32\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- \(\- min\(DISTINCT \(\- Int64\(\-15\)\)\)\)\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 64 * + COUNT ( * ) - + 20 + - CAST ( - + 6 AS INTEGER ) + - COUNT ( * ) * - - MIN ( DISTINCT - - 15 ) AS col0, 42 AS col0 +---- +35 +42 query I rowsort SELECT 18 * - 15 - - ( - - 9 ) col2 @@ -51929,8 +52509,11 @@ SELECT ALL 50 * + + 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2227 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(72\) \+ Int64\(67\) AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 30 ) * + 72 + 67 AS col1, + 43 AS col1 +---- +2227 +43 query I rowsort label-9889 SELECT DISTINCT + 33 * + MAX ( - + 6 ) AS col0 diff --git a/data/sqlite/random/expr/slt_good_112.slt b/data/sqlite/random/expr/slt_good_112.slt index 37359a6..4a88445 100644 --- a/data/sqlite/random/expr/slt_good_112.slt +++ b/data/sqlite/random/expr/slt_good_112.slt @@ -126,8 +126,11 @@ SELECT - COUNT ( - ( 74 ) ) * COUNT ( * ) * 45 * ( 26 ) * + - 69 * 15 + - + CAST # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) / Int64\(\-67\) \* \(\- \(\- Int64\(\-7\)\)\) \* Int64\(98\) AS col0" at position 0 and "Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 43 / - 67 * - ( - - 7 ) * + 98 AS col0, 76 AS col0 +---- +0 +76 query I rowsort SELECT DISTINCT + NULLIF ( - + 95, - 7 ) AS col2 @@ -325,8 +328,11 @@ SELECT ALL - 62 + + + 0 * + ( - 0 ) + + - COUNT ( * ) * + - 28 # 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 "Int64\(18\) AS col1" at position 0 and "\(\- \(\- Int64\(87\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 18 AS col1, ( - ( - + 87 ) ) AS col1 +---- +18 +87 query I rowsort label-55 SELECT - 19 + + - 93 / + 21 AS col2 @@ -433,8 +439,11 @@ SELECT + 87 + + - 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -14863 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / Int64\(\-44\) AS col1" at position 0 and "coalesce\(\(\- Int64\(10\)\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(52\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-1\) \* CAST\(NULL AS Int32\) \+ Int64\(90\), Int64\(32\) \+ \(\- Int64\(70\)\)\) \* Int64\(45\) \* \(\- Int64\(33\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-14863 +NULL query II rowsort label-76 SELECT + - COUNT ( * ) * COUNT ( * ), + 85 col2 @@ -687,8 +696,12 @@ SELECT COUNT ( * ) * + 55 * - COALESCE ( + 53, + + 50 / + - 63 + - 49 ) AS col2 # Datafusion - Expected - 60 # Datafusion - Expected - 72 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col2" at position 0 and "\(\- Int64\(29\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 60 AS col2, + 73 + CAST ( - + COUNT ( * ) AS INTEGER ) AS col1, - + 29 AS col2 +---- +-29 +60 +72 query I rowsort label-125 SELECT 70 * 15 / + 83 AS col2 @@ -740,8 +753,11 @@ SELECT 89 + + 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "Int64\(\-85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 90 AS col2, - 85 AS col2 +---- +-85 +90 query I rowsort SELECT ALL + - 78 + 99 @@ -934,8 +950,11 @@ 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\(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\. +query II valuesort 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 +---- +26 +NULL query I rowsort label-172 SELECT - 61 + + - 42 + - 33 * + CASE + SUM ( DISTINCT + 78 ) WHEN - 78 THEN ( - 2 ) END @@ -1467,8 +1486,12 @@ SELECT 82 AS col1, 71 * - + MIN ( - + 30 ) * - 77 AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 30 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) / Int64\(\-30\) \* CAST\(NULL AS Int32\) \* Int64\(\-95\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-91\) \* Int64\(72\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 81 / - 30 * + CAST ( NULL AS INTEGER ) * + - 95 - + - COUNT ( * ) + - 91 * + 72 AS col0, + ( + 30 ) AS col1, 51 AS col0 +---- +30 +51 +NULL query I rowsort SELECT 18 - + + 55 + 34 + + CASE - AVG ( - - 44 ) WHEN + - 62 THEN - 54 END + 16 * - 3 @@ -1589,8 +1612,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2938 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* Int64\(\-47\) \+ Int64\(\-24\) AS col2" at position 0 and "Int64\(61\) \+ Int64\(\-67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 62 * - 47 + + - 24 col2, 61 + + - 67 AS col2 +---- +-2938 +-6 query I rowsort SELECT 57 * + - 48 + + - 19 AS col2 @@ -1635,8 +1661,11 @@ SELECT DISTINCT + COALESCE ( + 73, + CASE + 64 WHEN 69 + + 58 / + 46 THEN NULL W # Datafusion - Datafusion expected results: # Datafusion - Expected - 4808 # Datafusion - Expected - 2229 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* Int64\(96\) \- \(\- Int64\(8\)\) AS col2" at position 0 and "Int64\(68\) \* Int64\(34\) \- Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 * 96 - - + 8 AS col2, + 68 * + 34 - 83 AS col2 +---- +2229 +4808 query I rowsort label-304 SELECT ALL + 14 * COUNT ( * ) - + - 60 @@ -1666,8 +1695,11 @@ SELECT - - 25 + 51 * CAST ( 12 AS INTEGER ) * - CAST ( - - 64 AS INTEGER ) AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \- Int64\(\-48\) AS col0" at position 0 and "Int64\(36\) \+ Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 20 - - 48 AS col0, 36 + + 17 AS col0 +---- +28 +53 query I rowsort label-310 SELECT - + COUNT ( * ) * + + COUNT ( CAST ( NULL AS INTEGER ) ) + - 82 + + COUNT ( ALL - 55 ) * + 81 * 57 * + 64 @@ -1720,8 +1752,11 @@ 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\(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\. +query II valuesort SELECT + + COUNT ( * ) + 10 AS col0, 4 + - 97 * 84 * ( - 5 ) AS col0 +---- +11 +40744 query I rowsort SELECT + COALESCE ( 85, 94 ) @@ -1943,8 +1978,11 @@ SELECT - + 81 AS col0, 7 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-27\)\) AS col0" at position 0 and "Int64\(86\) \+ Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 27 AS col0, + 86 + + 58 AS col0 +---- +144 +27 query II rowsort label-363 SELECT - ( - 73 ) + 84, - 2 * - 67 + + NULLIF ( + COUNT ( * ), 35 ) AS col1 @@ -2238,8 +2276,11 @@ SELECT + + ( - CAST ( 39 AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 97 AS col2, 90 AS col2 +---- +90 +97 query II rowsort label-420 SELECT + + COUNT ( DISTINCT - 33 ) * - 29 * COUNT ( - 27 ) AS col1, 83 @@ -2255,8 +2296,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) AS col2, 33 AS col2 +---- +-1 +33 query I rowsort label-423 SELECT DISTINCT + COUNT ( * ) * + 54 @@ -2607,8 +2651,11 @@ SELECT 13 * + 43 + 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CASE Int64\(64\) WHEN \(\- sum\(Int64\(\-89\)\)\) \+ Int64\(9\) \* \(\- CAST\(NULL AS Int32\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(38\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-58\) WHEN Int64\(\-59\) THEN NULL END / Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-43 +NULL query I rowsort label-490 SELECT ALL + 21 / 44 - 87 AS col2 @@ -2714,8 +2761,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) col2, 88 AS col2 +---- +-1 +88 query I rowsort SELECT ALL 54 - - 80 + - - 8 * + 72 AS col2 @@ -2963,8 +3013,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(37\)\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + 37 ) AS col0, + 17 AS col0 +---- +-37 +17 query I rowsort label-555 SELECT + 31 * - ( - + SUM ( ALL - 82 ) ) * - - 37 @@ -3094,8 +3147,11 @@ SELECT COUNT ( * ) AS col2, 55 + - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 37984 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* Int64\(\-65\) \* Int64\(\-39\) \+ Int64\(\-43\) \- \(\- Int64\(2\)\) AS col1" at position 0 and "Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 15 * - 65 * + - 39 + - 43 - - + 2 AS col1, - 76 col1 +---- +-76 +37984 query I rowsort label-580 SELECT - 54 * - 67 * - COUNT ( * ) AS col0 @@ -3229,8 +3285,11 @@ SELECT COUNT ( * ) * - 67 + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 AS col2, 29 AS col2 +---- +29 +80 query I rowsort label-606 SELECT ( - 12 ) / 89 * + 67 + ( ( - - 59 ) ) @@ -3932,8 +3991,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \- \(\- \(\- nullif\(Int64\(\-68\), \(\- Int64\(51\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 73 col0, - 90 + - ( + COUNT ( * ) ) - - + ( - NULLIF ( - 68, - + 51 ) ) AS col0 +---- +-23 +73 query I rowsort SELECT ALL 2 + + 86 AS col1 @@ -4080,8 +4142,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 AS col0, - COUNT ( * ) + + 95 col0 +---- +26 +94 query I rowsort SELECT CASE + ( - 95 ) WHEN 21 + - 46 * + - 24 THEN NULL WHEN 85 THEN 92 END + + 45 * 51 @@ -4360,8 +4425,11 @@ SELECT ALL + 86 * + COUNT ( * ) / + - COUNT ( * ) + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -765 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-15\)\) AS col2" at position 0 and "Int64\(\-45\) \* Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 15 ) AS col2, - 45 * 17 col2 +---- +-765 +15 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -4597,8 +4665,11 @@ SELECT 21 * + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) / Int64\(44\) AS col2" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 / 44 AS col2, CAST ( + + COUNT ( * ) AS INTEGER ) col2 +---- +0 +1 query I rowsort label-864 SELECT 11 + + SUM ( ALL + 44 ) AS col0 @@ -5274,8 +5345,11 @@ SELECT ALL COUNT ( * ) * + - 21 AS col1 # 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\(\-82\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 AS col0, + 31 AS col0 +---- +-82 +31 query I rowsort SELECT 78 + + - 35 + 89 AS col0 @@ -5330,8 +5404,11 @@ SELECT ALL + 92 + + COALESCE ( + COUNT ( * ), - 17 / - 57 ) # 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\(\-33\) \+ Int64\(55\) \+ Int64\(\-42\) AS col1" at position 0 and "Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 33 + + + 55 + + - 42 AS col1, - 1 AS col1 +---- +-1 +-20 query I rowsort label-1004 SELECT + 50 / - 34 col1 @@ -5397,8 +5474,11 @@ 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\(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\. +query RI valuesort 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 +---- +-71 +NULL query I rowsort label-1017 SELECT + COALESCE ( - + 69, MAX ( ALL + 76 ) ) * - 75 - + - 17 AS col0 @@ -6458,8 +6538,11 @@ SELECT ALL 36 + + + 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - -3731 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col0" at position 0 and "Int64\(\-65\) \* Int64\(73\) \+ \(\- \(\- max\(Int64\(39\)\)\)\) \* Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 AS col0, - 65 * + 73 + - ( - MAX ( ALL 39 ) ) * 26 col0 +---- +-10 +-3731 query I rowsort SELECT 65 + + 17 AS col0 @@ -6714,8 +6797,11 @@ SELECT DISTINCT 11 * + + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 24 AS col1, 46 AS col1 +---- +24 +46 query II rowsort label-1271 SELECT - 92, + 53 * - COUNT ( * ) * + 35 + - 19 * + 6 * 82 AS col0 @@ -7031,8 +7117,11 @@ SELECT ALL + NULLIF ( 20, - - 50 ) / - + 70 + + 80 * + COUNT ( * ) + - COALESCE # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- min\(DISTINCT Int64\(\-57\)\)\) AS Int32\) AS col1" at position 0 and "Int64\(73\) \+ Int64\(\-3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - MIN ( DISTINCT - 57 ) AS INTEGER ) AS col1, 73 + + - 3 col1 +---- +57 +70 query I rowsort SELECT DISTINCT 26 * - - 7 AS col0 @@ -7613,8 +7702,11 @@ SELECT ALL + - SUM ( - 66 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 col1, 89 AS col1 +---- +44 +89 query I rowsort label-1442 SELECT + CASE 62 WHEN - COALESCE ( + 95, COUNT ( CAST ( NULL AS INTEGER ) ) ) * - + 50 THEN ( + 8 ) END @@ -9125,8 +9217,12 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-86\) \* Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 34 AS col1, + COUNT ( * ) + - 86 * + 15 AS col1, - 23 - + ( + + COUNT ( * ) ) +---- +-1289 +-24 +34 query I rowsort SELECT 41 * + 42 + - 93 @@ -9192,8 +9288,11 @@ SELECT + ( + 91 ) AS col1, 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 111 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- coalesce\(Int64\(\-47\), Int64\(25\) \* count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, - COALESCE ( - 47, + 25 * COUNT ( * ) ) + + 64 AS col0 +---- +1 +111 query II rowsort label-1740 SELECT + 53 AS col1, + MIN ( - 20 ) * 44 AS col0 @@ -9245,8 +9344,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* \(\- Int64\(78\)\) \+ Int64\(84\) \- CAST\(NULL AS Int32\) \- Int64\(88\) \+ Int64\(67\) \+ Int64\(90\) \+ Int64\(29\) \+ min\(DISTINCT Int64\(97\)\) AS col2" at position 0 and "Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 42 * - + 78 + + + 84 - + ( + + CAST ( NULL AS INTEGER ) ) - + 88 + + + 67 + + + 90 + 29 + MIN ( DISTINCT 97 ) AS col2, - 81 AS col2 +---- +-81 +NULL query I rowsort label-1750 SELECT DISTINCT + MIN ( ALL ( - 98 ) ) @@ -9476,8 +9578,11 @@ SELECT ALL + + 45 * + 68 AS col0, + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - -1672 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \+ Int64\(\-64\) AS col0" at position 0 and "Int64\(\-19\) \* Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 24 + - 64 AS col0, - 19 * + 88 AS col0 +---- +-1672 +-40 query I rowsort label-1793 SELECT COALESCE ( - 76, NULLIF ( + + CAST ( NULL AS INTEGER ), - 26 ) - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) + 87 @@ -9648,8 +9753,12 @@ SELECT DISTINCT - + 80 + + COUNT ( * ) - 34 / - - 33 # Datafusion - Expected - -25 # Datafusion - Expected - 59 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-25\), \(\- Int64\(74\)\)\) AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT COALESCE ( - 25, - + 74 ) AS col0, 59 AS col0, - NULLIF ( - + CAST ( - 43 AS INTEGER ), + + 2 * 24 * + 19 * COALESCE ( - + COUNT ( * ), 29, + COALESCE ( 13, + 18 ), + MIN ( DISTINCT 60 ) ) / - + 91 * + 8 * - MAX ( - 39 ) + - 24 - + SUM ( DISTINCT + 92 ) ) + 87 / - 94 +---- +-25 +-43 +59 query I rowsort SELECT 97 + 83 + 9 @@ -9805,8 +9914,11 @@ NULL # 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 "CASE Int64\(28\) WHEN Int64\(85\) / count\(DISTINCT Int64\(16\)\) THEN Int64\(63\) ELSE NULL END AS col1" at position 0 and "Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CASE + 28 WHEN + 85 / + COUNT ( DISTINCT + 16 ) THEN + 63 ELSE NULL END AS col1, - 35 col1 +---- +-35 +NULL query II rowsort SELECT DISTINCT + 6 * - 7 * NULLIF ( - 29, - 73 ), + 8 AS col2 @@ -9956,8 +10068,11 @@ SELECT DISTINCT + MAX ( + - 28 ) * - - 40 + - 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 111 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* Int64\(\-1\) / Int64\(60\) \+ \(\- Int64\(\-58\)\) \+ \(\- sum\(Int64\(\-53\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* \(\- Int64\(\-21\)\) \* Int64\(58\) \* \(\- \(\- avg\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\)\)\) / Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL 52 * - 1 / + 60 + - - 58 + - SUM ( ALL - 53 ) AS col1, + CAST ( NULL AS INTEGER ) * - - 21 * + 58 * - - ( + + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) / 99 AS col1 +---- +111 +NULL query I rowsort label-1884 SELECT + ( - - 27 ) * + 92 + 60 / - 72 AS col2 @@ -9967,8 +10082,11 @@ SELECT + ( - - 27 ) * + 92 + 60 / - 72 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "max\(\(\- Int64\(\-69\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col0, + MAX ( - - 69 ) AS col0 +---- +1 +69 query II rowsort SELECT + 65 + 21, + 34 AS col0 @@ -10063,8 +10181,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 80 AS col1, - COUNT ( * ) AS col1 +---- +-1 +80 query I rowsort SELECT - - 39 * 6 + + 11 AS col0 @@ -10389,8 +10510,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - -4187 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "Int64\(\-59\) \* Int64\(75\) \- Int64\(3\) \+ Int64\(66\) / Int64\(\-12\) \- Int64\(\-5\) \+ \(\- \(\- max\(DISTINCT Int64\(88\)\)\)\) \- Int64\(98\) / Int64\(54\) \* min\(\(\- Int64\(62\)\)\) \+ Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 92 AS col1, - 59 * + 75 - + + 3 + + 66 / - 12 - - 5 + - - MAX ( DISTINCT + ( 88 ) ) - 98 / 54 * + MIN ( - + 62 ) + + 91 AS col1 +---- +-4187 +92 query I rowsort label-1966 SELECT DISTINCT + 19 / - + 1 @@ -10419,8 +10543,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / Int64\(84\) \* Int64\(46\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) / + 84 * 46 col0, 25 AS col0 +---- +25 +NULL query I rowsort label-1971 SELECT + - 11 + CAST ( + - 0 AS INTEGER ) * 16 @@ -10430,8 +10557,11 @@ SELECT + - 11 + CAST ( + - 0 AS INTEGER ) * 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "\(\- Int64\(\-48\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 col1, + ( - - 48 ) AS col1 +---- +48 +60 query I rowsort SELECT - + ( + - 51 ) @@ -10547,8 +10677,11 @@ SELECT + 82 + - - 38 - - MAX ( - ( + 23 ) ) * + 6 + 34 col0, 53 + - 50 * + 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1150 # Datafusion - Expected - -188060 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-23\), \(\- Int64\(26\)\)\)\) \* Int64\(50\) AS col1" at position 0 and "Int64\(34\) \+ Int64\(69\) \* Int64\(\-47\) \* Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COALESCE ( - 23, - + 26 ) * + 50 AS col1, + 34 + 69 * - 47 * + 58 col1 +---- +-188060 +1150 query I rowsort SELECT - 46 * + 91 * + - 34 col2 @@ -10733,8 +10866,11 @@ SELECT ALL - NULLIF ( + 41, 87 * - COALESCE ( 9, + 33, - 68 * ( 74 ) + + 79 + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 AS col0, + 83 AS col0 +---- +35 +83 query I rowsort label-2031 SELECT 16 + + 28 + MAX ( 76 ) AS col1 @@ -10978,8 +11114,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) + - + 2 + CASE - - 98 WHEN - 83 THEN NULL ELSE 90 END AS col1, + 73 AS col1 +---- +73 +89 query II rowsort label-2078 SELECT 87 * - COUNT ( * ) col2, - ( NULLIF ( + COUNT ( * ), - 79 ) ) @@ -11310,8 +11449,11 @@ SELECT + + 7 * - + 49 + 81 + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -2668 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "Int64\(81\) / min\(Int64\(61\)\) \* \(\- min\(DISTINCT Int64\(\-20\)\)\) \+ \(\- Int64\(\-96\)\) \* Int64\(\-28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 20 AS col1, + 81 / MIN ( + 61 ) * - + MIN ( DISTINCT - 20 ) + - - 96 * - 28 AS col1 +---- +-2668 +20 query I rowsort label-2141 SELECT ALL MIN ( 77 ) * + COUNT ( + 67 ) * - + 26 + - 56 @@ -11578,8 +11720,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(\-69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( - - 6 ) + + + MIN ( ALL - 95 ) + - 33 / 82 AS col1, 94 + + 77 * COUNT ( * ) / - 69 AS col1 +---- +-89 +93 query I rowsort SELECT 60 + + 73 + 47 * 21 @@ -11589,8 +11734,11 @@ SELECT 60 + + 73 + 47 * 21 # 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\(\-82\) \* CAST\(NULL AS Float64\) / Int64\(\-44\) AS col2" at position 0 and "Int64\(44\) \- \(\- coalesce\(Int64\(7\), Int64\(44\) \* \(\- Int64\(34\)\) \+ Int64\(28\), Int64\(32\) / Int64\(27\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - 82 * + + CAST ( NULL AS FLOAT8 ) / + - 44 AS col2, + 44 - + - COALESCE ( 7, 44 * - + 34 + + 28, + + 32 / + ( 27 ) ) AS col2 +---- +51 +NULL query I rowsort label-2194 SELECT + - 86 / MIN ( DISTINCT 34 ) + + + ( + + COUNT ( * ) ) + - MIN ( - ( + - 75 ) ) + - 74 - - + 87 * - + 33 @@ -11660,8 +11808,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) + - 23 * - + 48 AS col2, + 84 AS col2 +---- +1105 +84 query I rowsort label-2208 SELECT ALL - + COUNT ( * ) + - + 33 + + - 62 col0 @@ -11780,8 +11931,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - 1114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(56\)\) AS col2" at position 0 and "Int64\(0\) \+ Int64\(\-55\) \+ Int64\(42\) \* \(\- Int64\(\-26\)\) \+ nullif\(Int64\(69\), Int64\(55\)\) \+ Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 56 ) AS col2, 0 + - 55 + 42 * - ( - 26 ) + + NULLIF ( 69, 55 ) + + 8 AS col2 +---- +-56 +1114 query I rowsort label-2231 SELECT COALESCE ( - 37, - 68 ) * - 71 - + 46 + - 85 / - ( + 33 ) @@ -11796,8 +11950,11 @@ SELECT ALL 38 / 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - -2210 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "Int64\(\-65\) \* Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 45 AS col1, - 65 * 34 col1 +---- +-2210 +45 query I rowsort SELECT DISTINCT - 74 * - 69 @@ -12027,8 +12184,11 @@ SELECT DISTINCT + COUNT ( * ) + + 31 + 4 + - - 41 + + 81 * 92 + + 16 AS col1, ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) + + COUNT ( * ) AS col0, + 46 AS col0 +---- +2 +46 query I rowsort label-2277 SELECT ALL MAX ( + - COALESCE ( + + 99, 47 ) ) + - 87 AS col2 @@ -12206,15 +12366,22 @@ SELECT ALL + 14 * NULLIF ( + + 60, 32 ) + + 89 * + 50 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 646 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col0" at position 0 and "Int64\(\-17\) \* \(\- Int64\(38\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 85 AS col0, - 17 * - + 38 AS col0 +---- +646 +85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -1501 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) / Int64\(39\) \* Int64\(\-21\) \+ Int64\(28\) AS col2" at position 0 and "\(\- Int64\(80\)\) \+ \(\- coalesce\(\(\- CASE Int64\(85\) WHEN Int64\(68\) THEN Int64\(\-91\) ELSE \(\- \(\- CAST\(NULL AS Int32\)\)\) END\), \(\- Int64\(59\)\), \(\- avg\(Int64\(\-64\)\)\) / Int64\(34\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort SELECT 36 / + 39 * - 21 + + 28 AS col2, + 79 * ( + - 19 ) AS col1, + ( + - ( 80 ) ) + - COALESCE ( - CASE + + 85 WHEN ( + 68 ) THEN - 91 ELSE - ( + - CAST ( NULL AS INTEGER ) ) END, - + 59, - AVG ( - 64 ) / + 34 ) col2 +---- +-1501 +-21 +28 query I rowsort SELECT 28 + - 13 + + 7 col0 @@ -12775,8 +12942,11 @@ SELECT DISTINCT - - 81 * - - 89 # 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 "Int64\(26\) \+ Int64\(\-25\) AS col2" at position 0 and "Int64\(\-61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 26 + - 25 AS col2, - 61 AS col2 +---- +-61 +1 query I rowsort label-2420 SELECT DISTINCT + COUNT ( ALL + + 34 ) AS col2 @@ -13158,8 +13328,11 @@ SELECT DISTINCT NULLIF ( 93, - 54 ) * + 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) / \(\- Int64\(41\)\) \+ Int64\(37\) AS col1" at position 0 and "Int64\(61\) \+ Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 / - + 41 + + 37 AS col1, + 61 + 84 AS col1 +---- +145 +37 query I rowsort label-2493 SELECT ALL - 40 * - 17 * + - ( - - 49 ) * - NULLIF ( + + 23, - + MIN ( DISTINCT - + 68 ) - - COUNT ( * ) ) AS col1 @@ -13267,8 +13440,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 62 AS col1, 66 / - COUNT ( * ) AS col1 +---- +-66 +62 query I rowsort SELECT ALL - 51 * + + 20 AS col0 @@ -13315,8 +13491,11 @@ SELECT 14 + - - 98 + 49 * + 52 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 79 AS col2, CAST ( NULL AS INTEGER ) AS col2 +---- +-79 +NULL query I rowsort label-2522 SELECT 97 * - ( + COUNT ( * ) ) AS col0 @@ -13564,8 +13743,11 @@ SELECT ALL - - 45 + - 80 + + 8 / - + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 137 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \+ Int64\(54\) AS col0" at position 0 and "Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 83 + + 54 AS col0, - 38 col0 +---- +-38 +137 query I rowsort SELECT ALL CASE + 82 WHEN - NULLIF ( + + 22, + 54 * - - 90 - - 48 + - - 2 ) + + - 20 THEN 36 / - + 4 END AS col2 @@ -14633,8 +14815,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) col0, + 49 col0 +---- +-1 +49 query I rowsort label-2776 SELECT DISTINCT COALESCE ( + NULLIF ( ( 78 ), - COUNT ( * ) + + 49 / + COUNT ( * ) ), - COUNT ( * ) ) - 22 AS col1 @@ -14644,8 +14829,11 @@ SELECT DISTINCT COALESCE ( + NULLIF ( ( 78 ), - COUNT ( * ) + + 49 / + COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col1" at position 0 and "Int64\(38\) / Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 77 AS col1, + 38 / + 16 AS col1 +---- +-77 +2 query I rowsort label-2778 SELECT + 77 * + - COUNT ( * ) - - CAST ( + COUNT ( * ) AS INTEGER ) + 5 / 11 * 38 AS col1 @@ -14907,8 +15095,11 @@ SELECT + COUNT ( DISTINCT - - COALESCE ( + NULLIF ( - 83, - 19 + 56 ), 37 + 25 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -102 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) \+ \(\- Int64\(33\)\) AS col1" at position 0 and "Int64\(53\) / Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 69 + - + 33 AS col1, + 53 / 81 AS col1 +---- +-102 +0 query I rowsort SELECT DISTINCT - 58 * + + 50 * - 36 AS col0 @@ -15153,8 +15344,11 @@ SELECT ALL + 53 * - ( - - 76 ) + 4 * ( + 43 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 97 AS col2, COUNT ( * ) AS col2 +---- +1 +97 query I rowsort label-2876 SELECT + 71 + + SUM ( ALL 91 ) @@ -15248,8 +15442,11 @@ SELECT 76 + + + 55 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 91 AS col2, + COUNT ( * ) col2 +---- +-91 +1 query I rowsort SELECT DISTINCT + 74 + 57 @@ -16067,8 +16264,11 @@ SELECT ALL - MIN ( DISTINCT - + 38 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - -1241 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col1" at position 0 and "Int64\(17\) \* Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 AS col1, 17 * - 73 AS col1 +---- +-1241 +79 query II rowsort SELECT ALL - 37 AS col1, 36 @@ -16117,8 +16317,11 @@ SELECT - 99 * - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -352 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \+ \(\- \(\- count\(\(\- Int64\(31\)\)\)\)\) \+ Int64\(\-47\) AS col0" at position 0 and "Int64\(\-89\) / Int64\(2\) \* Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 68 + - - COUNT ( ALL - + 31 ) + - 47 col0, - 89 / 2 * + 8 AS col0 +---- +-352 +22 query I rowsort label-3059 SELECT ALL + + 66 + + COUNT ( * ) + - 13 * 17 AS col1 @@ -16143,8 +16346,12 @@ SELECT ALL + 80 col0, COUNT ( * ) AS col2 # Datafusion - Expected - -73 # Datafusion - Expected - 45 # 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 "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 73 col2, 45 AS col2, CAST ( NULL AS INTEGER ) +---- +-73 +45 +NULL query I rowsort label-3063 SELECT 13 + - ( + MAX ( ALL 4 ) ) * - + COALESCE ( ( + 18 ), + + 61 + - + 65 + + 32 * - - COALESCE ( CAST ( NULL AS INTEGER ), - 67 - 63, + CASE + CASE 69 WHEN - 87 THEN - CAST ( NULL AS INTEGER ) + + 73 WHEN COUNT ( * ) THEN 76 - - 40 WHEN - 50 THEN NULL ELSE NULL END WHEN CAST ( NULL AS INTEGER ) * 92 THEN 21 / 47 + 43 WHEN 71 THEN 23 END ) * 72 ) * - 95 col2 @@ -16293,8 +16500,11 @@ SELECT ALL - 71 / 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-75\)\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( - 75 ) AS col2, + 41 AS col2 +---- +-75 +41 query II rowsort label-3092 SELECT - COALESCE ( + 80, + 42 * + 98 + 68 ), 72 + - COUNT ( * ) / + 36 AS col2 @@ -16335,8 +16545,11 @@ SELECT - CAST ( 98 AS INTEGER ) + + + ( 5 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col1" at position 0 and "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 47 AS col1, 58 AS col1 +---- +-47 +58 query I rowsort label-3100 SELECT + COUNT ( * ) + - 51 + - SUM ( + CAST ( NULL AS INTEGER ) ) + 93 * 34 @@ -16794,8 +17007,11 @@ SELECT ALL + 11 * + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -108 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \+ \(\- Int64\(68\)\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 40 + - + 68 AS col2, + 37 AS col2 +---- +-108 +37 query II rowsort label-3187 SELECT - MAX ( ALL 19 ) AS col2, 51 @@ -17187,14 +17403,21 @@ SELECT - 49, - 11 AS col2 # Datafusion - Expected - 105 # Datafusion - Expected - 76 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(56\)\) \- Int64\(\-49\) AS col2" at position 0 and "Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL MAX ( DISTINCT 56 ) - - 49 AS col2, 76 AS col2, + ( - 74 ) + - + MIN ( - 31 ) +---- +-43 +105 +76 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 53 col2, + 63 AS col2 +---- +53 +63 query I rowsort label-3263 SELECT 4 - - + COUNT ( * ) + + 83 AS col1 @@ -17278,8 +17501,11 @@ SELECT - 71 * 25 + - - 90 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3186 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* \(\- min\(Int64\(\-59\)\)\) AS col0" at position 0 and "max\(Int64\(43\)\) / Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 54 * - MIN ( - 59 ) AS col0, + MAX ( + 43 ) / 30 AS col0 +---- +1 +3186 query II rowsort label-3279 SELECT + CAST ( + SUM ( DISTINCT 15 ) AS INTEGER ) AS col0, 24 AS col1 @@ -17614,8 +17840,11 @@ SELECT + COUNT ( * ) * + + CASE - 0 WHEN - 38 / + 68 THEN - ( 41 ) ELSE - 36 + 5 # 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 "Int64\(0\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 0 AS col2, 21 col2 +---- +0 +21 query I rowsort label-3344 SELECT - + 97 * - MAX ( ALL - 50 ) @@ -17791,8 +18020,11 @@ SELECT DISTINCT - ( + + 74 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 94 AS col1, 27 AS col1 +---- +-94 +27 query I rowsort label-3378 SELECT DISTINCT + 80 * - 59 * - COALESCE ( - - ( + + 51 ), + + 75 * - COALESCE ( CAST ( + 34 AS INTEGER ), + + ( + 57 ), - 36 * - + 77 / - + 15 ) ) @@ -17863,8 +18095,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col2, 81 * - 56 AS col2 +---- +-1 +-4536 query II rowsort SELECT ALL - - 86 col2, 95 @@ -18217,8 +18452,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(33\) AS col1" at position 0 and "Int64\(\-92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) + + 33 AS col1, - 92 AS col1 +---- +-92 +NULL query I rowsort label-3458 SELECT + 76 / 99 AS col0 @@ -18909,8 +19147,11 @@ SELECT MAX ( + ( 51 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1960 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(70\) \* \(\- Int64\(\-28\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 70 * - - 28 * - COUNT ( * ) AS col2 +---- +-1960 +1 query I rowsort label-3591 SELECT ALL 64 * + + 6 * + COUNT ( * ) @@ -19489,8 +19730,11 @@ SELECT - - 98 * - - COALESCE ( 90, - 53 * - - 63 + 33, - 63, + + 82 ) AS col2 # 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 col0" at position 0 and "Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 28 AS col0, - 16 AS col0 +---- +-16 +-28 query II rowsort label-3700 SELECT + 80 + - 64, 91 * COUNT ( * ) * - - 82 - - + 33 AS col2 @@ -19697,8 +19941,11 @@ SELECT + NULLIF ( - NULLIF ( + + 15, - - 23 ), + 69 * 57 ) 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 "\(\- Int64\(54\)\) / Int64\(88\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 54 / + 88 col1, 93 col1 +---- +0 +93 query I rowsort label-3739 SELECT 93 * + - MAX ( + + 71 ) @@ -20235,8 +20482,11 @@ SELECT + - 63 AS col0, - 48 * + - 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "nullif\(Int64\(\-85\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(91\) / Int64\(26\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-80\) \+ Int64\(23\) \* \(\- Int64\(\-8\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(93\) \+ max\(Int64\(79\)\) \+ Int64\(\-88\) \* CAST\(NULL AS Int32\) \* Int64\(27\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-85 +41 query I rowsort label-3842 SELECT ALL - COUNT ( ALL + - NULLIF ( - 25, 57 ) ) * - 15 * - - 54 @@ -20262,8 +20512,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -309659 # Datafusion - Expected - 2128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ Int64\(56\) \* \(\- Int64\(70\)\) \* \(\- Int64\(\-79\)\) \+ Int64\(9\) \* Int64\(0\) \* Int64\(54\) \+ Int64\(\-96\) \+ \(\- coalesce\(Int64\(\-64\), Int64\(28\) \+ Int64\(19\) \+ Int64\(\-60\) \+ Int64\(\-33\) \* Int64\(79\)\)\) AS col2" at position 0 and "\(\- sum\(Int64\(56\)\)\) \* Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 53 + + 56 * - + 70 * - - 79 + 9 * 0 * + 54 + - 96 + - ( + + COALESCE ( - 64, 28 + + + 19 + + - 60 + + - 33 * + 79 ) ) AS col2, - SUM ( 56 ) * - 38 AS col2 +---- +-309659 +2128 query I rowsort label-3847 SELECT COALESCE ( - 18, + 51, COUNT ( * ) ) * - COUNT ( * ) col2 @@ -20405,8 +20658,11 @@ SELECT - 57 * - 33 * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -3410 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col1" at position 0 and "Int64\(30\) \- Int64\(40\) \* Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 AS col1, + 30 - + 40 * + 86 AS col1 +---- +-3410 +57 query I rowsort label-3875 SELECT DISTINCT + COUNT ( * ) + - + 17 + + 38 AS col1 @@ -20745,8 +21001,11 @@ SELECT COUNT ( * ) * + 78 - 26 # 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 "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 2 AS col0, 63 AS col0 +---- +2 +63 query I rowsort label-3940 SELECT COUNT ( * ) + - - 56 @@ -21412,8 +21671,11 @@ SELECT + 23 + - COUNT ( DISTINCT - 75 ) / 59 * + 1 # 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 col2" at position 0 and "\(\- count\(coalesce\(\(\- Int64\(8\)\), Int64\(76\) \* Int64\(76\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 75 col2, - COUNT ( + + COALESCE ( - + 8, 76 * + ( 76 ) ) ) AS col2 +---- +-1 +75 query I rowsort SELECT ALL + ( 17 ) col0 @@ -21599,8 +21861,11 @@ 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\(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\. +query II valuesort SELECT NULLIF ( + COUNT ( * ), + - 87 ) col2, 65 + - 84 + + COUNT ( * ) * - COALESCE ( - + 11, 8 ) AS col2 +---- +-8 +1 query I rowsort label-4101 SELECT ALL + NULLIF ( + 39, - COUNT ( 89 ) * + - 3 ) AS col1 @@ -21670,8 +21935,11 @@ SELECT 20, 25 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 2250 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col1" at position 0 and "Int64\(15\) \* Int64\(25\) \* \(\- Int64\(\-6\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 AS col1, 15 * 25 * - - 6 AS col1 +---- +2250 +57 query I rowsort label-4114 SELECT DISTINCT + + SUM ( ALL - + 5 ) * + 39 col0 @@ -22370,8 +22638,11 @@ 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\(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\. +query II valuesort SELECT - 4 * - COUNT ( * ) AS col1, 39 * - 6 * - 50 * - - COUNT ( * ) AS col1 +---- +11700 +4 query I rowsort label-4247 SELECT - CAST ( - 27 AS INTEGER ) + - - MAX ( DISTINCT 25 ) + + ( - 44 ) * - 33 @@ -22543,8 +22814,11 @@ SELECT DISTINCT CAST ( 24 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2090 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) \+ coalesce\(\(\- Int64\(\-36\)\), \(\- Int64\(61\)\)\) \* Int64\(\-57\) AS col2" at position 0 and "Int64\(35\) \+ Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 38 + COALESCE ( - - 36, + - ( + + 61 ) ) * + - 57 AS col2, 35 + 34 AS col2 +---- +-2090 +69 query I rowsort SELECT - 84 * 35 AS col0 @@ -23125,8 +23399,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- nullif\(Int64\(\-27\), sum\(Int64\(\-43\)\) \* Int64\(78\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, - NULLIF ( + - 27, + SUM ( - 43 ) * 78 ) AS col2 +---- +1 +27 query I rowsort label-4396 SELECT ALL ( CAST ( 20 AS INTEGER ) ) * 75 col2 @@ -23409,8 +23686,11 @@ SELECT NULLIF ( - 34, + 36 ) - + 57 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col0" at position 0 and "Int64\(11\) \+ count\(Int64\(89\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 80 col0, 11 + + COUNT ( 89 ) AS col0 +---- +-80 +12 query I rowsort label-4451 SELECT COALESCE ( - 43, + MAX ( ALL + 47 ) ) * - + COUNT ( * ) @@ -23928,8 +24208,11 @@ SELECT + 21 * - 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "max\(\(\- Int64\(\-30\)\)\) \* \(\- Int64\(40\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, MAX ( ALL - - 30 ) * - + 40 AS col0 +---- +-1200 +1 query I rowsort SELECT - 39 - + 56 AS col1 @@ -24410,8 +24693,11 @@ SELECT ALL ( ( - 54 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - 101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col0" at position 0 and "nullif\(Int64\(79\), Int64\(\-81\)\) \+ Int64\(22\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 40 col0, NULLIF ( + 79, - 81 ) + 22 / + COUNT ( * ) col0 +---- +-40 +101 query I rowsort label-4639 SELECT - CAST ( - + 75 AS INTEGER ) * + COUNT ( * ) @@ -24429,14 +24715,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 col1, + 73 AS col1 +---- +31 +73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS 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 II valuesort SELECT DISTINCT ( + COUNT ( * ) ) AS col2, + CAST ( NULL AS INTEGER ) AS col2 +---- +1 +NULL query II rowsort SELECT - 54 - - 95, 41 + - 93 + - - 94 AS col2 @@ -24540,8 +24832,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - + COUNT ( * ) AS col2, 12 / + - 10 + + CASE + - 66 WHEN - 54 THEN NULL WHEN + NULLIF ( + 54, 41 ) THEN NULL ELSE 60 END AS col2 +---- +-1 +59 query II rowsort label-4662 SELECT ALL - 52, - 10 * + - COUNT ( * ) AS col2 @@ -24705,8 +25000,11 @@ SELECT CASE - + COALESCE ( - 87, - + ( - + CAST ( - COUNT ( * ) AS INTEGER ) ) / # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 17 AS col0, 42 col0 +---- +-17 +42 query I rowsort label-4694 SELECT 94 + + CAST ( NULL AS INTEGER ) @@ -24741,8 +25039,11 @@ SELECT 77 + 70 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-15\)\) \+ \(\- Int64\(97\)\) AS col2" at position 0 and "Int64\(\-70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( + - 15 ) + - + 97 AS col2, - 70 col2 +---- +-70 +-96 query I rowsort label-4701 SELECT + COUNT ( * ) * + + COUNT ( * ) + 46 + + ( + - ( + 42 ) ) @@ -25232,8 +25533,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 55 AS col2, ( - ( COUNT ( * ) ) ) * - 40 AS col2 +---- +40 +55 query I rowsort label-4797 SELECT ALL 95 + + COUNT ( * ) * 77 AS col2 @@ -25307,8 +25611,11 @@ SELECT 36 * - 44 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col2" at position 0 and "\(\- sum\(Int64\(76\)\)\) \+ Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 95 col2, - SUM ( 76 ) + + 44 col2 +---- +-32 +-95 query I rowsort SELECT DISTINCT NULLIF ( - ( - + 3 ), 26 ) AS col0 @@ -25361,8 +25668,11 @@ SELECT ALL - 91 + - 60 AS col1, + ( 83 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(82\)\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( ALL - + 82 ) AS col0, - ( + CAST ( NULL AS INTEGER ) ) AS col0 +---- +-82 +NULL query II rowsort SELECT 87 * - + 88, 3 AS col2 @@ -25445,8 +25755,11 @@ SELECT + - 43 - - - 94 / - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- 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 II valuesort SELECT - ( + 22 ) AS col1, 10 col1 +---- +-22 +10 query I rowsort label-4836 SELECT DISTINCT SUM ( DISTINCT 57 ) col1 @@ -25467,8 +25780,11 @@ SELECT - + SUM ( 1 ) AS col1, 34 * COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ 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 II valuesort SELECT ALL + + 97 + ( + 2 ) AS col2, 93 AS col2 +---- +93 +99 query I rowsort SELECT - 78 - 27 col2 @@ -25621,8 +25937,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 37 AS col0, + 85 AS col0 +---- +37 +85 query I rowsort label-4869 SELECT + CASE - 98 WHEN + 16 THEN - ( + - 87 ) + - NULLIF ( + 61, - 18 * 28 + + MAX ( + 96 ) * 45 ) WHEN - - CAST ( NULL AS FLOAT8 ) * + 94 THEN NULL WHEN + 75 + + 32 + - 51 THEN NULL ELSE NULL END @@ -25683,8 +26002,11 @@ SELECT DISTINCT 28 * 66 + - 48 + - 85 / - ( + ( - COUNT ( * ) ) ) + + 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col1" at position 0 and "Int64\(\-31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 35 AS col1, - 31 AS col1 +---- +-31 +-35 query I rowsort label-4881 SELECT - - MAX ( + - 41 ) AS col0 @@ -25862,8 +26184,11 @@ SELECT - 40 / - COUNT ( 62 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -648 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \* Int64\(72\) AS col1" at position 0 and "Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 9 * 72 AS col1, - 80 AS col1 +---- +-648 +-80 query II rowsort SELECT - 61 AS col0, + 63 AS col1 @@ -25993,8 +26318,12 @@ 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\(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\. +query III valuesort SELECT + 45 AS col0, - COALESCE ( + COUNT ( * ), - + ( + ( COUNT ( * ) ) ), + 21 + - 97 ) AS col0, - 96 AS col0 +---- +-1 +-96 +45 query II rowsort label-4939 SELECT + - 5 AS col0, - COUNT ( ALL 13 ) AS col2 @@ -26067,8 +26396,11 @@ SELECT ALL CASE + 81 WHEN - 94 + + 57 * - 67 - + 36 * + + 80 THEN NULL ELSE ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - 41496 # Datafusion - Expected - 102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(8\)\) \* Int64\(57\) \* Int64\(\-91\) AS col0" at position 0 and "Int64\(79\) \+ CAST\(Int64\(23\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + 8 ) * + 57 * - 91 AS col0, 79 + + CAST ( 23 AS INTEGER ) AS col0 +---- +102 +41496 query I rowsort label-4953 SELECT + 7 / + 69 @@ -26180,14 +26512,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 34 AS col1, + 59 AS col1 +---- +34 +59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) / Int64\(87\) \* Int64\(\-22\) \+ Int64\(71\) AS col0" at position 0 and "Int64\(\-47\) \+ Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 / + 87 * - 22 + 71 AS col0, - 47 + + 60 AS col0 +---- +13 +71 query II rowsort label-4975 SELECT ALL + CAST ( NULLIF ( 14, - 19 ) AS INTEGER ) col2, MAX ( ALL + 28 ) + + 0 + - MAX ( ALL + 83 ) * - 69 @@ -26245,8 +26583,12 @@ 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\(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\. +query IRI valuesort 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 +---- +10 +7 +NULL query I rowsort SELECT ALL ( - + CASE + - AVG ( ALL - + 75 ) WHEN + 68 THEN NULL ELSE - 36 END ) @@ -26587,8 +26929,11 @@ 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\(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\. +query II valuesort SELECT ALL ( - - ( 85 ) ) + - COUNT ( * ) AS col0, + COUNT ( - 34 ) AS col0 +---- +1 +84 query I rowsort label-5050 SELECT ALL 43 + MAX ( ALL 20 ) + - - 97 / - 77 + - 28 AS col1 @@ -27019,8 +27364,12 @@ 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\(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\. +query III valuesort SELECT - 37 AS col2, ( + SUM ( ALL - 7 ) ) col1, COUNT ( * ) / - + COUNT ( * ) + 70 AS col1 +---- +-37 +-7 +69 query I rowsort SELECT - 97 + 31 col1 @@ -27268,8 +27617,11 @@ SELECT ALL COUNT ( * ) AS col0, + 28 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 7303 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- \(\- Int64\(61\)\)\)\) AS col2" at position 0 and "Int64\(84\) \+ Int64\(85\) \+ Int64\(\-82\) \* Int64\(\-87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( ALL - - ( 61 ) ) AS col2, + 84 + + 85 + - 82 * + - 87 AS col2 +---- +61 +7303 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -27369,8 +27721,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-25\) \+ Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 67 + - ( - 68 ) AS col0, - 54 * COUNT ( * ) + - 25 + 29 AS col0 +---- +-50 +135 query II rowsort label-5198 SELECT + - MAX ( - 91 ) * 25 AS col2, 46 @@ -27668,8 +28023,11 @@ SELECT + 12 AS col2, 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "coalesce\(Int64\(\-23\), Int64\(\-24\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(\-71\)\) \+ Int64\(\-76\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 AS col1, COALESCE ( - 23, - 24 * + - CAST ( NULL AS INTEGER ) * - - 71 + - 76 ) AS col1 +---- +-23 +87 query II rowsort label-5255 SELECT ALL - - 53 col1, + COUNT ( * ) AS col0 @@ -27908,8 +28266,11 @@ SELECT DISTINCT - 17 + + 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - -167 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \+ \(\- Int64\(68\)\) AS col1" at position 0 and "\(\- Int64\(\-42\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 99 + - + 68 AS col1, + ( - - 42 ) AS col1 +---- +-167 +42 query I rowsort SELECT 65 * + + 35 AS col1 @@ -28451,8 +28812,11 @@ SELECT ALL 6 * + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 AS col1, COUNT ( * ) AS col1 +---- +1 +90 query II rowsort SELECT ALL 96 col0, 35 @@ -28608,8 +28972,12 @@ SELECT ALL - 10 * + 36 # Datafusion - Expected - 87 # Datafusion - Expected - 3429 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \+ Int64\(94\) \* Int64\(36\) AS col1" at position 1 and "Int64\(51\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 87 AS col2, 45 + + + 94 * + 36 AS col1, 51 AS col1 +---- +3429 +51 +87 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -28633,8 +29001,11 @@ SELECT ALL + 70, - 2 * - 68 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(76\) \- \(\- Int64\(\-77\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + 76 - - - 77 AS col2 +---- +-1 +1 query I rowsort SELECT - 41 * - 51 * - + 11 @@ -28736,8 +29107,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 26 - - COUNT ( * ) AS col2, 40 AS col2 +---- +27 +40 query II rowsort SELECT ALL 85 AS col2, + 96 @@ -29328,8 +29702,11 @@ SELECT ALL ( - + 76 ) * - + 21 + - + 42 - + 17 AS col2, + COUNT ( + - 67 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 20 AS col0, 23 AS col0 +---- +20 +23 query I rowsort SELECT + + 26 + - + 75 @@ -29354,8 +29731,11 @@ SELECT + NULLIF ( - COUNT ( * ), 24 ) / + 86 * - - 77 * 3 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + COUNT ( * ) AS col1, + 3 AS col1 +---- +1 +3 query I rowsort label-5572 SELECT DISTINCT + 2 / + + 32 @@ -29519,8 +29899,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col1, 46 * 89 AS col1 +---- +-1 +4094 query I rowsort label-5604 SELECT 4 * - ( - + 1 ) + - - 10 / + 82 AS col0 @@ -30129,8 +30512,11 @@ SELECT ALL + 8 + + 76 / + + CAST ( + ( + 19 ) AS INTEGER ) - - COUNT ( * ) / 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - 126 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \+ sum\(Int64\(27\)\) AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 99 + + SUM ( 27 ) AS col2, 74 AS col2 +---- +126 +74 query I rowsort SELECT 69 * 0 AS col1 @@ -30220,8 +30606,11 @@ SELECT 93 AS col2, 42 + - ( + 45 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \+ Int64\(83\) \+ Int64\(\-24\) AS col0" at position 0 and "Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 11 + 83 + - 24 AS col0, + 47 AS col0 +---- +47 +70 query I rowsort label-5736 SELECT ALL MIN ( ALL - 21 ) @@ -30615,8 +31004,11 @@ SELECT ALL - MAX ( ALL - - 75 ) + + 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ Int64\(\-70\) AS col0" at position 0 and "Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 33 + - 70 AS col0, - 22 col0 +---- +-22 +-37 query I rowsort SELECT ALL + ( - 27 ) AS col0 @@ -30695,8 +31087,11 @@ 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\(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\. +query II valuesort 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 +---- +-53 +NULL query I rowsort SELECT - 65 * + 17 @@ -31435,8 +31830,11 @@ SELECT 80, + 84 + + 48 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 34 AS col2, 45 AS col2 +---- +-34 +45 query I rowsort label-5971 SELECT ALL COUNT ( * ) * + - NULLIF ( + - NULLIF ( 76, 59 - - 67 / - 84 ), + ( 73 ) * - 26 + 41 * CAST ( 70 AS INTEGER ) ) * 88 AS col0 @@ -31446,8 +31844,11 @@ SELECT ALL COUNT ( * ) * + - NULLIF ( + - NULLIF ( 76, 59 - - 67 / - 84 ), + ( 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "Int64\(\-8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 AS col0, - 8 AS col0 +---- +-8 +2 query I rowsort SELECT ALL 13 + + 35 AS col1 @@ -31483,8 +31884,11 @@ SELECT ALL + ( + 30 ) + 68 / - COALESCE ( 7 + COUNT ( * ), + COALESCE ( 33, 4 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 57 -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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 16 AS col0, + 57 AS col0 +---- +16 +57 query I rowsort SELECT 88 * + 0 col2 @@ -32357,8 +32761,11 @@ 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\(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\. +query II valuesort SELECT - - 51 * - ( - COUNT ( * ) ) AS col1, - 12 + - 78 col1 +---- +-90 +51 query I rowsort label-6147 SELECT + - COUNT ( * ) + - 21 AS col2 @@ -32585,8 +32992,11 @@ 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\(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\. +query II valuesort SELECT ALL + 89 + - 26 + + 37 AS col1, COALESCE ( + - COUNT ( * ), + CASE 44 WHEN + - 22 THEN - + 90 END, - 88 ) AS col1 +---- +-1 +100 query I rowsort label-6191 SELECT + 76 / 19 + + 97 * + COUNT ( * ) * - ( - 27 ) AS col1 @@ -32752,8 +33162,11 @@ SELECT 64 AS col2, + 78 + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 2665 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col2" at position 0 and "Int64\(65\) \* Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 AS col2, + 65 * 41 AS col2 +---- +2665 +69 query II rowsort SELECT ALL 15 AS col2, 20 @@ -32775,8 +33188,12 @@ SELECT DISTINCT ( ( + 77 ) ) * - COUNT ( * ) + - + COUNT ( * ) AS col2 # Datafusion - Expected - -44 # Datafusion - Expected - -78 # Datafusion - Expected - 8928 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col2" at position 0 and "Int64\(\-78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 44 AS col2, - 78 AS col2, 70 * 43 + 4 / CAST ( + ( + - 8 ) AS INTEGER ) + 56 + - + 51 + + - 73 * - 81 +---- +-44 +-78 +8928 query I rowsort label-6226 SELECT MAX ( ALL 37 ) AS col0 @@ -32886,8 +33303,11 @@ SELECT ALL 71 + - + CAST ( - - 53 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \+ CAST\(Int64\(\-41\) AS Int32\) \+ \(\- Int64\(74\)\) / Int64\(\-98\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(41\) AS col1" at position 0 and "Int64\(\-7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 7 + CAST ( + - 41 AS INTEGER ) + - + 74 / - 98 + + COUNT ( * ) + 41 AS col1, - 7 AS col1 +---- +-6 +-7 query I rowsort label-6247 SELECT - SUM ( DISTINCT + 24 ) @@ -33568,8 +33988,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 AS col0, COUNT ( * ) + + - 38 AS col0 +---- +-37 +80 query II rowsort label-6378 SELECT + - COUNT ( * ) / 8 + - ( - - 1 ) AS col1, - 43 @@ -33909,14 +34332,20 @@ SELECT MIN ( ( + ( - 29 ) ) ) * - + COUNT ( * ) * + 22 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 61 AS col1, + 53 AS col1 +---- +53 +61 # 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\) \- max\(Int64\(38\)\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 39 - + + ( + + MAX ( + + 38 ) ) AS col1, + 42 col1 +---- +1 +42 query I rowsort label-6445 SELECT ALL - 63 / + 93 AS col1 @@ -34002,8 +34431,11 @@ SELECT - 51 + - 68 + - 25 * - 29 AS col2 # 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\)" at position 0 and "Int64\(42\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 42, + 42 +---- +42 +42 query I rowsort label-6461 SELECT - COUNT ( * ) - - COUNT ( * ) / 1 @@ -34085,8 +34517,12 @@ 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\(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\. +query III valuesort 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 +---- +0 +106 +NULL query I rowsort SELECT - + 95 - - COALESCE ( 6, 93 ) @@ -34136,8 +34572,11 @@ SELECT - - 69 / 10 + - 56 AS col0 # 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\(\-96\) \+ Int64\(37\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 96 + + 37 AS col0, + 31 AS col0 +---- +-59 +31 query I rowsort SELECT ALL + 30 + - 80 * + - 61 @@ -34351,8 +34790,11 @@ 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\(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\. +query II valuesort 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 +---- +-55 +-57087 query I rowsort label-6529 SELECT DISTINCT MAX ( DISTINCT + - 23 ) AS col2 @@ -34425,8 +34867,11 @@ SELECT 78 * - 55 * + ( 1 ) + - ( + 15 ) AS col0, - 3 * 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "Int64\(\-11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 64 col1, - 11 AS col1 +---- +-11 +64 query I rowsort SELECT 51 + + 15 @@ -34436,8 +34881,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 95 AS col2, COUNT ( * ) + ( + - COUNT ( * ) ) AS col2 +---- +0 +95 query II rowsort SELECT 23 AS col0, 32 @@ -34460,8 +34908,11 @@ 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\(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\. +query II valuesort SELECT ALL - - COUNT ( * ) col1, 96 * + 26 AS col1 +---- +1 +2496 query I rowsort label-6549 SELECT 44 * + COUNT ( * ) + - 26 @@ -34748,8 +35199,11 @@ SELECT ALL NULLIF ( - 7, COUNT ( * ) ) / + CASE COUNT ( * ) WHEN + COUNT ( * ) * # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 63 AS col2, 82 col2 +---- +63 +82 query I rowsort label-6603 SELECT + MAX ( - 22 ) - - - 35 + + - 57 + + - 62 * 12 * 18 @@ -34811,8 +35265,11 @@ SELECT ALL 82 * - 1 + 72 col0, + MIN ( + 86 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(88\), Int64\(58\)\) AS col2" at position 0 and "Int64\(\-15\) \+ \(\- count\(DISTINCT Int64\(\-75\)\)\) / Int64\(\-90\) \* Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + NULLIF ( + 88, + + ( + 58 ) ) AS col2, ( - 15 ) + - COUNT ( DISTINCT - 75 ) / - 90 * ( + 11 ) AS col2 +---- +-15 +88 query I rowsort label-6615 SELECT ALL 92 / + 44 @@ -35146,8 +35603,11 @@ SELECT ALL + 14 * + 36 * - COUNT ( 60 ) * + 77 * + + 91 * - + COUNT ( * ) * + - # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 62 AS col1, + CAST ( NULL AS INTEGER ) AS col1 +---- +-62 +NULL query I rowsort label-6678 SELECT + COUNT ( ALL + - ( + CAST ( - + 0 AS INTEGER ) ) ) AS col2 @@ -35290,8 +35750,11 @@ SELECT ALL 98 * - - 66 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -6035 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "Int64\(85\) \* Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 AS col2, 85 * - 71 AS col2 +---- +-6035 +95 query II rowsort label-6706 SELECT DISTINCT 23, ( - 34 ) * - + 26 + 15 * + - COUNT ( + 18 ) AS col2 @@ -35483,8 +35946,11 @@ SELECT DISTINCT + 64 * - 17 + 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -2116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-10\) AS Int32\) \+ coalesce\(Int64\(30\), \(\- Int64\(\-12\)\) \* Int64\(53\), Int64\(33\) \* Int64\(\-29\) \+ Int64\(6\) \* Int64\(49\)\) AS col0" at position 0 and "Int64\(\-23\) \* Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + CAST ( + - 10 AS INTEGER ) + COALESCE ( + 30, - - 12 * + 53, 33 * - 29 + 6 * 49 ) AS col0, - 23 * 92 col0 +---- +-2116 +20 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -35689,8 +36155,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 89 + + + 59 - 99 AS col2, + 46 + + 49 - - COUNT ( * ) AS col2 +---- +-129 +96 query II rowsort label-6780 SELECT - - NULLIF ( 9, + 9 ) AS col1, + NULLIF ( 21, + 86 / - ( + + CAST ( NULL AS INTEGER ) ) * - 18 + + 44 ) @@ -36027,8 +36496,11 @@ SELECT ALL - 15 - + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- CAST\(coalesce\(Int64\(\-58\), Int64\(20\) / Int64\(71\) \* Int64\(\-68\) \* CAST\(Int64\(\-4\) AS Int32\) \* Int64\(\-68\) \+ Int64\(79\) \* \(\- coalesce\(Int64\(\-23\), CASE Int64\(\-88\) WHEN Int64\(\-8\) THEN Int64\(\-5\) WHEN coalesce\(Int64\(\-93\), Int64\(27\)\) \+ Int64\(\-25\) / \(\- Int64\(20\)\) THEN Int64\(62\) \* count\(Int64\(1\)\) AS count\(\*\) END / Int64\(67\) / count\(\(\- Int64\(66\)\)\)\)\) \+ \(\- Int64\(49\)\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1 +58 query I rowsort SELECT - 24 + - - 17 @@ -36190,8 +36662,11 @@ SELECT ALL ( - 58 ) AS col0, 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-10\)\) AS col0" at position 0 and "Int64\(67\) \- sum\(DISTINCT \(\- Int64\(93\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 10 ) col0, 67 - + SUM ( DISTINCT - ( + 93 ) ) AS col0 +---- +10 +160 query I rowsort label-6873 SELECT + MAX ( DISTINCT - 43 ) + COALESCE ( + 93, + 79 / - 86 ) col2 @@ -36350,8 +36825,11 @@ SELECT COUNT ( * ) - - 34 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 68 -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\(68\), Int64\(57\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 AS col0, + NULLIF ( 68, 57 ) AS col0 +---- +68 +85 query II rowsort SELECT ALL 79, 94 AS col1 @@ -36482,8 +36960,11 @@ SELECT ALL - MIN ( - 51 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-59\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 59 AS col2, + COUNT ( * ) col2 +---- +1 +59 query I rowsort label-6928 SELECT ALL - + CAST ( + 43 AS INTEGER ) @@ -36632,8 +37113,11 @@ SELECT - 24 * 61 + 7 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -105 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(36\)\) / Int64\(65\) \+ Int64\(\-19\) \+ Int64\(\-86\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 36 / + 65 + - 19 + - 86 AS col1, 7 AS col1 +---- +-105 +7 query I rowsort label-6957 SELECT + - 79 * 55 + - 33 - + ( + - 4 ) + - NULLIF ( COUNT ( * ), COUNT ( * ) ) + 30 * 62 AS col2 @@ -36911,8 +37395,11 @@ SELECT - 68 + COALESCE ( 48, - + CASE + 91 WHEN - - 53 * - 5 * - + 90 + 73 THEN # 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 "Int64\(3\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 3 AS col1, + 88 AS col1 +---- +3 +88 query II rowsort label-7010 SELECT DISTINCT + MAX ( 56 ) + MIN ( ALL + - 95 ), 4 AS col1 @@ -37004,8 +37491,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) / 11 AS col1, - 61 + ( + 73 ) col1 +---- +0 +12 query I rowsort SELECT 92 * - - 37 @@ -37611,8 +38101,12 @@ 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\(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\. +query III valuesort SELECT 5 / - - COUNT ( * ) col0, COUNT ( * ) / + 93 AS col2, - COUNT ( - + 20 ) AS col2 +---- +-1 +0 +5 query I rowsort SELECT ALL 77 + 35 AS col0 @@ -37776,8 +38270,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 28 AS col0, - COUNT ( * ) * 87 AS col0 +---- +-28 +-87 query II rowsort SELECT - 69, 47 AS col0 @@ -37798,8 +38295,11 @@ SELECT ALL 96 + - 52 * + NULLIF ( - 73, 93 * + + 55 + + 34 * + + 26 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "Int64\(77\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 AS col0, + 77 + COUNT ( * ) col0 +---- +26 +78 query I rowsort label-7179 SELECT DISTINCT - MAX ( ALL - 10 ) + - - 16 @@ -37829,8 +38329,11 @@ SELECT ALL + 41 + + - 53 / - - CAST ( 72 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 23 * + COUNT ( * ) AS col2, 54 AS col2 +---- +-23 +54 query I rowsort label-7185 SELECT ALL - MAX ( DISTINCT - 49 ) * 82 AS col2 @@ -38047,8 +38550,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, - 25 AS col1 +---- +-1 +-25 query I rowsort label-7226 SELECT - COUNT ( * ) + CAST ( NULL AS INTEGER ) - - 62 @@ -38164,8 +38670,11 @@ SELECT DISTINCT 46 - 78 AS col1, 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-8\) AS col1" at position 0 and "Int64\(\-10\) \+ \(\- Int64\(93\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) * - 8 AS col1, - 10 + - + 93 AS col1 +---- +-103 +NULL query I rowsort label-7248 SELECT COUNT ( * ) - + 43 @@ -40218,8 +40727,11 @@ SELECT 0 + + NULLIF ( - 4, - 10 * - ( - - ( + NULLIF ( - 74, - 72 * - 22 + - 7 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(CAST\(CAST\(Int64\(48\) AS Int32\) AS Int32\)\) AS col1" at position 0 and "nullif\(Int64\(\-76\), CASE Int64\(71\) WHEN min\(Int64\(\-45\)\) THEN avg\(\(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\)\)\) END \* Int64\(28\)\) / Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL MAX ( + CAST ( + + CAST ( + 48 AS INTEGER ) AS INTEGER ) ) col1, NULLIF ( - 76, CASE 71 WHEN MIN ( - 45 ) THEN AVG ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) END * 28 ) / 36 AS col1 +---- +-2.111111111111 +48 query II rowsort label-7644 SELECT 29 AS col0, - 9 / + 91 AS col2 @@ -40472,8 +40984,11 @@ SELECT - 9 + MIN ( - + 65 ) + 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1020 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* \(\- Int64\(68\)\) AS col0" at position 0 and "Int64\(10\) \+ max\(Int64\(69\)\) / \(\- Int64\(\-3\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 15 * - + 68 AS col0, + 10 + MAX ( + 69 ) / - - 3 AS col0 +---- +-1020 +33 query I rowsort label-7692 SELECT - 27 * COUNT ( * ) @@ -40656,8 +41171,11 @@ SELECT 24 * - MAX ( - 6 ) AS col2, 47 # 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 col0" at position 0 and "Int64\(99\) \* \(\- count\(Int64\(\-87\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 47 AS col0, ( 99 ) * - COUNT ( - 87 ) AS col0 +---- +-47 +-99 query II rowsort label-7727 SELECT DISTINCT 79 col0, CASE - 15 WHEN + 76 THEN + 88 END - - CAST ( NULL AS INTEGER ) * - 33 col1 @@ -41133,8 +41651,11 @@ SELECT ALL + ( - - 94 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 63 AS col1, - 84 AS col1 +---- +-84 +63 query II rowsort label-7818 SELECT DISTINCT + CAST ( NULL AS INTEGER ), - 87 * 23 AS col1 @@ -41447,8 +41968,11 @@ SELECT DISTINCT 9 AS col0, - 65 + + + 61 + MIN ( DISTINCT + 95 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 60 AS col2, 36 AS col2 +---- +36 +60 query I rowsort label-7878 SELECT CASE - + CAST ( - + 5 AS INTEGER ) WHEN - 80 THEN + 56 END * + NULLIF ( + 43, + NULLIF ( 6, - 47 / + COUNT ( * ) * + 58 ) ) @@ -43073,8 +43597,11 @@ SELECT + 17 * + - 57 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -288532 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(77\) \+ count\(\(\- Int64\(\-6\)\)\) \* Int64\(44\) \* Int64\(81\) \* Int64\(\-81\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 75 + 77 + COUNT ( + - ( + - 6 ) ) * + + 44 * + 81 * - 81 AS col1, 91 AS col1 +---- +-288532 +91 query I rowsort label-8189 SELECT DISTINCT COUNT ( * ) / + + 91 + + - 53 AS col0 @@ -43084,8 +43611,11 @@ SELECT DISTINCT COUNT ( * ) / + + 91 + + - 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) / Int64\(2\) \+ \(\- Int64\(\-8\)\) \+ \(\- Int64\(\-92\)\) / Int64\(\-73\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 8 / 2 + - - 8 + - - 92 / - 73 AS col2, COUNT ( * ) AS col2 +---- +1 +11 query II rowsort SELECT - 75 * - + 58 AS col0, + 46 * 35 AS col2 @@ -43112,8 +43642,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2280 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(76\) AS col2" at position 0 and "Int64\(\-69\) \+ \(\- CAST\(NULL AS Int32\)\) / Int64\(88\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 30 * 76 AS col2, - 69 + - CAST ( NULL AS INTEGER ) / + + 88 + + ( + COUNT ( * ) ) AS col2 +---- +2280 +NULL query I rowsort SELECT - ( ( + 63 ) ) * + - 15 @@ -43313,8 +43846,11 @@ SELECT 76 * - - 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col1" at position 0 and "nullif\(\(\- nullif\(\(\- Int64\(17\)\), Int64\(25\)\)\), Int64\(68\)\) \- \(\- Int64\(\-64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 20 AS col1, NULLIF ( - NULLIF ( - + 17, + 25 ), + 68 ) - - - 64 AS col1 +---- +-20 +-47 query I rowsort label-8234 SELECT COUNT ( * ) / 62 - + - 87 + + 61 AS col2 @@ -43850,8 +44386,11 @@ SELECT + + 9 * - 51 + 96 + - 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 111 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \- Int64\(\-63\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 - + - 63 AS col2, 35 AS col2 +---- +111 +35 query I rowsort label-8334 SELECT DISTINCT + 83 * + ( + 66 ) + - 67 + + - CASE + 44 WHEN + 77 * + - 55 THEN 11 / 39 WHEN MAX ( + 14 ) - + ( - CAST ( NULL AS FLOAT8 ) ) THEN 93 ELSE - 51 - + MAX ( - 9 ) END + + 71 / + + COUNT ( * ) AS col0 @@ -43893,8 +44432,11 @@ SELECT DISTINCT 98 + 52 AS col1, 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 + - CAST ( NULL AS INTEGER ) AS col0, 11 AS col0 +---- +11 +NULL query I rowsort SELECT ALL 33 + + 98 col0 @@ -44005,8 +44547,11 @@ SELECT 35 - ( + 68 ) / - CAST ( - - 83 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3278 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ Int64\(54\) \* Int64\(59\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 92 + 54 * + 59 AS col1, + ( + + 74 ) AS col1 +---- +3278 +74 query I rowsort SELECT ALL ( 11 ) * + + 46 * + + 32 AS col2 @@ -44048,8 +44593,11 @@ SELECT DISTINCT COUNT ( * ) + 19 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 92 col1, 90 AS col1 +---- +90 +92 query II rowsort SELECT DISTINCT + 60, - 45 * - 57 * 77 AS col2 @@ -44230,8 +44778,11 @@ SELECT ALL + MAX ( + 27 ) - 27 # 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 "Int64\(14\) \+ Int64\(\-17\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 14 + + - 17 AS col0, + 81 AS col0 +---- +-3 +81 query I rowsort SELECT DISTINCT - 28 * + + 46 @@ -44943,8 +45494,11 @@ SELECT MAX ( DISTINCT - + 0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col2" at position 0 and "Int64\(\-93\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 77 AS col2, - 93 * + CAST ( NULL AS INTEGER ) AS col2 +---- +-77 +NULL query I rowsort label-8543 SELECT DISTINCT + 0 * - 69 + + 61 / + - CASE 67 WHEN + ( - 53 ) * + 81 + + 67 THEN + + SUM ( - + 85 ) END / - 93 / + + CASE + CAST ( NULL AS INTEGER ) WHEN - 5 / - 28 - 42 THEN - + 51 ELSE NULL END + + - 47 + 85 + + 1 + + 30 AS col0 @@ -45198,8 +45752,11 @@ SELECT ALL - NULLIF ( - ( + COUNT ( * ) ), 50 * - 20 + 37 ) + - SUM ( + CAST ( ( # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- max\(Int64\(59\)\)\) \+ \(\- Int64\(\-79\)\) AS col0" at position 0 and "\(\- Int64\(98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) * - MAX ( + ( + 59 ) ) + - - 79 AS col0, - ( + 98 ) col0 +---- +-98 +NULL query I rowsort SELECT DISTINCT 8 * - + 79 AS col2 @@ -45693,8 +46250,11 @@ SELECT 85 + + 85 + - + 17, ( - + 27 ) AS col2 # 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 "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 10 AS col1, 87 AS col1 +---- +10 +87 query I rowsort label-8687 SELECT 94 + - COALESCE ( MAX ( - + 72 ), - - SUM ( ALL - 1 ) * 96 / - 53, - + 13 + + - 98 * - CAST ( - - 79 AS INTEGER ) ) @@ -46136,8 +46696,11 @@ SELECT ALL - 52 + 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 828 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "Int64\(9\) \* Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 60 AS col1, 9 * + 92 AS col1 +---- +60 +828 query I rowsort label-8770 SELECT - CASE + 94 WHEN - 80 THEN 30 - - 5 + + + 56 + + 63 * COUNT ( * ) * - 17 WHEN + - COUNT ( * ) THEN - COUNT ( * ) ELSE - COUNT ( * ) + 69 * - 29 * 45 * + CAST ( + + 85 AS INTEGER ) END AS col0 @@ -46315,8 +46878,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) - + 53 AS col0, - 23 AS col0 +---- +-23 +-54 query I rowsort SELECT - 42 + - 36 AS col1 @@ -46890,8 +47456,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ min\(Int64\(74\)\) AS col0" at position 0 and "Int64\(\-80\) \- Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 4 + + MIN ( + + 74 ) AS col0, - 80 - + 65 col0 +---- +-145 +78 query I rowsort SELECT - 33 * + + 19 AS col1 @@ -47102,8 +47671,11 @@ SELECT ALL 98 col2, COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - -646 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col2" at position 0 and "Int64\(38\) \* Int64\(\-17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 AS col2, 38 * - 17 AS col2 +---- +-646 +66 query I rowsort label-8952 SELECT ALL 3 - + + 84 / - 93 + + NULLIF ( + + 54, 73 ) @@ -47488,8 +48060,11 @@ SELECT + + 79 * - COUNT ( ALL + + 82 ) + + + 12 + - + 41 * + - ( - - 7 ) * - + C # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2311 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "sum\(DISTINCT Int64\(2\)\) \+ Int64\(63\) \* Int64\(\-36\) \+ Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, + SUM ( DISTINCT 2 ) + 63 * + - 36 + - 45 AS col2 +---- +-2311 +1 query II rowsort label-9026 SELECT ALL - 50 / 88 + + - MIN ( DISTINCT 22 ), ( - + 1 ) AS col2 @@ -47526,14 +48101,20 @@ SELECT + 91 + + 24 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 47 AS col0, 94 AS col0 +---- +47 +94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 47093 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "CAST\(\(\- Int64\(\-21\)\) AS Int32\) \* Int64\(32\) \* Int64\(70\) \+ Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 12 AS col0, + CAST ( - - 21 AS INTEGER ) * + 32 * 70 + 53 col0 +---- +12 +47093 query I rowsort label-9034 SELECT + 0 * + ( + + MIN ( 62 ) ) @@ -48357,8 +48938,11 @@ SELECT - 72 * MAX ( 60 ) * 40 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col2" at position 0 and "\(\- min\(Int64\(81\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 AS col2, - MIN ( 81 ) AS col2 +---- +-81 +77 query I rowsort label-9195 SELECT SUM ( - + 1 ) + + 46 AS col1 @@ -48516,8 +49100,11 @@ SELECT - COUNT ( * ) + - + 32 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - 1590 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(77\)\) AS col1" at position 0 and "Int64\(\-58\) \* \(\- coalesce\(Int64\(29\), Int64\(31\)\)\) \- Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 77 ) AS col1, - 58 * - COALESCE ( + 29, 31 ) - + 92 AS col1 +---- +-77 +1590 query I rowsort label-9226 SELECT ALL + 72 + CAST ( 55 AS INTEGER ) @@ -48664,8 +49251,11 @@ SELECT - ( - 16 ) * 44 + 88 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col1, + 35 AS col1 +---- +1 +35 query I rowsort label-9255 SELECT DISTINCT - 20 * 64 + COUNT ( * ) * - 19 * - 85 + CAST ( 38 AS INTEGER ) * + 85 @@ -49098,8 +49688,11 @@ 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\(1\)\) AS count\(\*\)\) \* \(\- Int64\(80\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 + 66 AS col1, - COUNT ( * ) * - + 80 AS col1 +---- +150 +80 query I rowsort label-9338 SELECT - 79 / 51 + + + 2 @@ -49549,8 +50142,11 @@ SELECT ALL COUNT ( * ) * + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(28\)\) AS col1" at position 0 and "count\(Int64\(50\)\) \+ \(\- Int64\(80\)\) \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 87 * - COUNT ( * ) + - + 28 AS col1, COUNT ( 50 ) + - + 80 + + CAST ( NULL AS INTEGER ) AS col1 +---- +59 +NULL query I rowsort label-9424 SELECT NULLIF ( + CAST ( NULL AS INTEGER ), + 52 ) AS col2 @@ -49590,8 +50186,11 @@ 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\(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\. +query II valuesort SELECT 25 AS col0, + COUNT ( * ) * 29 * ( + SUM ( 71 ) ) * + 32 + MIN ( - - NULLIF ( - 41, + 50 + 44 ) ) * - 90 col0 +---- +25 +69578 query I rowsort label-9432 SELECT 45 - SUM ( DISTINCT CAST ( + 21 AS INTEGER ) ) AS col2 @@ -49815,8 +50414,11 @@ SELECT - MAX ( 14 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 303732 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "Int64\(59\) \* Int64\(78\) \* Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 AS col1, 59 * 78 * 66 AS col1 +---- +303732 +93 query I rowsort SELECT 61 + - 96 @@ -50231,8 +50833,11 @@ SELECT DISTINCT + 52 / + MAX ( + + 91 ) * - COUNT ( * ) * 84 + - 71, + 7 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3340 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \* \(\- Int64\(73\)\) \+ Int64\(18\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 46 * - + 73 + + 18 AS col1, + 44 col1 +---- +-3340 +44 query I rowsort SELECT ALL + 27 * + + 86 + - 96 * + 88 AS col2 @@ -50479,8 +51084,11 @@ 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\(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\. +query II valuesort SELECT COALESCE ( - 40, + - COUNT ( * ) ) / - 44 * 75 AS col0, 13 / - 31 AS col0 +---- +0 +0 query I rowsort label-9600 SELECT CAST ( + 18 AS INTEGER ) * 67 AS col1 @@ -50490,8 +51098,11 @@ SELECT CAST ( + 18 AS INTEGER ) * 67 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(36\)\), Int64\(25\)\) \+ Int64\(69\) AS col0" at position 0 and "max\(Int64\(61\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( - ( + + 36 ), + 25 ) + + 69 AS col0, ( MAX ( 61 ) ) AS col0 +---- +33 +61 query I rowsort SELECT ALL 49 + + 33 AS col2 @@ -50582,14 +51193,20 @@ SELECT DISTINCT - 12, 66 + - - 74 + 75 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 795 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "Int64\(84\) \+ \(\- Int64\(\-79\)\) \* \(\- Int64\(\-9\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 90 AS col1, 84 + - - 79 * - - 9 AS col1 +---- +795 +90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 0 and "Int64\(\-2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 89 AS col1, - 2 AS col1 +---- +-2 +89 query I rowsort SELECT + 20 * ( 38 ) * + + 28 AS col2 @@ -50793,8 +51410,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 30 AS col2, 69 AS col2 +---- +30 +69 query I rowsort label-9661 SELECT + 4 / - 16 @@ -50814,8 +51434,11 @@ SELECT ALL - 44 * + 71 AS col2 # 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 "min\(DISTINCT Int64\(73\)\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( DISTINCT + ( ( 73 ) ) ) AS col1, 26 AS col1 +---- +26 +73 query I rowsort label-9665 SELECT - - COUNT ( * ) * CAST ( - COUNT ( * ) AS INTEGER ) + + + COUNT ( ALL + + 84 ) - 18 AS col0 @@ -51133,8 +51756,11 @@ SELECT + + 34 * + + 86 * + - ( + 5 ) + 23 - 54 AS col2, 14 * - 31 * + ( + + 34 ) # 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 col1" at position 0 and "Int64\(15\) / \(\- Int64\(\-37\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 90 AS col1, 15 / + + ( - - 37 ) AS col1 +---- +-90 +0 query I rowsort label-9725 SELECT DISTINCT + + COALESCE ( + + 60, - SUM ( ALL + 58 ) * - 33 ) * 12 @@ -51341,8 +51967,11 @@ SELECT ALL + 60 * 7 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - -245 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col0" at position 0 and "coalesce\(Int64\(\-5\), Int64\(65\) \+ Int64\(\-87\) \+ \(\- coalesce\(CAST\(NULL AS Int32\), \(\- Int64\(66\)\) \+ Int64\(51\) \* Int64\(\-73\)\)\), \(\- Int64\(\-65\)\) \* Int64\(6\) \* Int64\(\-31\)\) \* \(\- Int64\(\-49\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 41 col0, + COALESCE ( - 5, 65 + + - 87 + - COALESCE ( + CAST ( NULL AS INTEGER ), - + 66 + 51 * - 73 ), - - 65 * 6 * - 31 ) * - - 49 AS col0 +---- +-245 +-41 query I rowsort SELECT - 90 + - ( - - 0 ) @@ -52093,8 +52722,11 @@ SELECT ALL + COUNT ( * ) * + 88 / - - CAST ( - 72 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- \(\- nullif\(Int64\(50\), Int64\(21\) \+ Int64\(44\)\)\)\)\)\) \* Int64\(52\) \* avg\(\(\- CAST\(NULL AS Int32\)\)\) \* max\(Int64\(59\)\) \* \(\- Int64\(58\)\) \+ \(\- max\(DISTINCT Int64\(6\)\)\) AS col0" at position 0 and "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(75\) / \(\- Int64\(\-1\)\) \+ \(\- Int64\(38\)\)\) / Int64\(\-39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort 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 +---- +0 +NULL query I rowsort SELECT - - ( 30 ) AS col0 @@ -52294,8 +52926,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 62 + - - 43 + 72 AS col2, 20 + - + COUNT ( * ) + - 96 AS col2 +---- +-77 +177 query I rowsort SELECT ALL + 51 + - 50 @@ -52326,8 +52961,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 80 col2, 58 + + COUNT ( * ) / 13 col2 +---- +-80 +58 query I rowsort label-9951 SELECT COUNT ( * ) + + 96 * 42 AS col0 @@ -52514,8 +53152,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 119 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(CASE Int64\(12\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN NULL ELSE Int64\(\-27\) \+ \(\- Int64\(28\)\) \+ \(\- count\(Int64\(61\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(66\) \* Int64\(\-35\) / \(\- Int64\(35\)\) \* \(\- CAST\(NULL AS Int32\)\) END, Int64\(80\)\) AS col1" at position 0 and "Int64\(17\) \* \(\- Int64\(14\)\) / \(\- Int64\(2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +119 +NULL query I rowsort label-9987 SELECT ALL COUNT ( * ) * - ( - + 29 ) diff --git a/data/sqlite/random/expr/slt_good_113.slt b/data/sqlite/random/expr/slt_good_113.slt index d7d8c09..c0e244d 100644 --- a/data/sqlite/random/expr/slt_good_113.slt +++ b/data/sqlite/random/expr/slt_good_113.slt @@ -277,8 +277,11 @@ SELECT + CASE WHEN + 60 IS NOT NULL THEN + MAX ( 53 ) ELSE NULL END col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* CAST\(NULL AS Int32\) \+ \(\- Int64\(\-19\)\) AS col2" at position 0 and "Int64\(32\) \- Int64\(\-10\) \+ Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 * + CAST ( NULL AS INTEGER ) + - - 19 col2, 32 - - 10 + 39 AS col2 +---- +81 +NULL query I rowsort SELECT - 65 + 95 * + 3 @@ -1033,8 +1036,11 @@ SELECT 67 - - 63 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(6\) \* Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, 6 * 2 AS col2 +---- +1 +12 query I rowsort label-187 SELECT ALL + + COALESCE ( + 0, + 73 * + COUNT ( * ) + + 5, 61 + 60 * + NULLIF ( - 74, - 40 / - 82 ) / 91 + - 97 ) + 52 @@ -1369,8 +1375,11 @@ SELECT - + 60 - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 AS col0, 67 col0 +---- +32 +67 query II rowsort SELECT 68, 56 * 21 AS col2 @@ -1488,8 +1497,11 @@ SELECT ALL - 10 + + 69 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 97 AS col1, 87 AS col1 +---- +87 +97 query II rowsort SELECT 23 col2, 81 + 9 @@ -1508,8 +1520,11 @@ 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\(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\. +query II valuesort 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 +---- +-1782 +-661 query I rowsort label-276 SELECT DISTINCT - 37 * + 26 * NULLIF ( + 70, - CAST ( NULL AS INTEGER ) - + 41 ) AS col0 @@ -1697,8 +1712,11 @@ SELECT 2 + - 3 * 8 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 588 # Datafusion - Expected - 1895 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* max\(Int64\(98\)\) AS col1" at position 0 and "Int64\(63\) \* Int64\(30\) \+ Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 * MAX ( 98 ) AS col1, + 63 * + 30 + 5 col1 +---- +1895 +588 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -2044,8 +2062,11 @@ SELECT ALL COUNT ( * ) * - - 0 * - MAX ( + + 45 ) - - + 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* Int64\(38\) \+ Int64\(73\) \+ \(\- \(\- CAST\(Int64\(6\) AS Int32\)\)\) / \(\- CAST\(NULL AS Int32\)\) / Int64\(68\) \* Int64\(50\) AS col1" at position 0 and "Int64\(88\) \+ Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 * + + 38 + + 73 + + - ( - + CAST ( + 6 AS INTEGER ) ) / - CAST ( NULL AS INTEGER ) / + 68 * + 50 AS col1, + 88 + 56 col1 +---- +144 +NULL query I rowsort label-377 SELECT ALL + COUNT ( * ) + - - 79 + COUNT ( * ) * 10 * + - 41 @@ -2505,8 +2526,12 @@ SELECT + 89 + 25 AS col1 # Datafusion - Expected - NULL # Datafusion - Expected - 64 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Float64\)\)\) / Int64\(44\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RII valuesort SELECT - - CAST ( NULL AS FLOAT8 ) / + 44 AS col0, 64 AS col0, - 89 AS col0 +---- +-89 +64 +NULL query I rowsort SELECT + COALESCE ( + - ( + - 34 ), - - 2 ) @@ -2958,8 +2983,11 @@ SELECT ALL 8 - - 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col2" at position 0 and "Int64\(0\) \+ Int64\(\-65\) \+ Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 AS col2, + 0 + - 65 + + + 20 col2 +---- +-45 +0 query I rowsort SELECT DISTINCT 70 * 20 AS col0 @@ -3139,8 +3167,11 @@ NULL # 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\(6\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 col1, + 85 AS col1 +---- +6 +85 query I rowsort label-586 SELECT + - 30 * + CAST ( 9 AS INTEGER ) * + COUNT ( * ) @@ -3258,8 +3289,11 @@ SELECT DISTINCT + ( 74 ) * 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -6862 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \- \(\- CAST\(\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-16\) / avg\(Int64\(\-5\)\)\)\) AS Float64\)\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "Int64\(\-73\) \* Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT 56 - - CAST ( - COALESCE ( COUNT ( * ), - 16 / + AVG ( ALL - 5 ) ) AS FLOAT8 ) + - - CAST ( NULL AS INTEGER ) col1, - 73 * ( + + 94 ) AS col1 +---- +-6862 +NULL query I rowsort SELECT DISTINCT - ( 7 ) * - - 75 + - 88 + - 30 AS col1 @@ -3386,8 +3420,11 @@ SELECT 67 AS col0, + 73 + 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 124 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \+ \(\- Int64\(27\)\) \+ Int64\(86\) AS col0" at position 0 and "CASE Int64\(\-23\) WHEN Int64\(45\) \* Int64\(\-59\) \+ Int64\(68\) THEN NULL WHEN Int64\(98\) THEN Int64\(60\) WHEN max\(DISTINCT \(\- CAST\(Int64\(\-67\) AS Int32\)\)\) \+ Int64\(75\) \* Int64\(19\) \* Int64\(78\) THEN Int64\(59\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 + - + 27 + + 86 AS col0, CASE - 23 WHEN + 45 * - 59 + 68 THEN NULL WHEN + 98 THEN 60 WHEN + MAX ( DISTINCT - CAST ( - 67 AS INTEGER ) ) + 75 * + 19 * 78 THEN 59 END col0 +---- +124 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -4495,8 +4532,11 @@ SELECT - COALESCE ( - NULLIF ( 99, - 30 * - CASE + COUNT ( * ) WHEN AVG ( ALL + # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(24\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* min\(Int64\(93\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 24 AS col1, COUNT ( * ) * + MIN ( 93 ) - - COUNT ( * ) AS col1 +---- +94 +NULL query I rowsort label-850 SELECT ALL NULLIF ( + 1, + - COUNT ( * ) ) * + 89 - + COUNT ( * ) @@ -5052,8 +5092,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-97\) \* \(\- Int64\(\-81\)\) \+ Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 43 AS col2, - COUNT ( * ) * - 97 * - - 81 + + + 7 col2 +---- +43 +7864 query I rowsort label-957 SELECT - 31 * + CASE - - 6 WHEN - - AVG ( ALL 9 ) + ( 2 ) * - 14 THEN + 24 + + 25 WHEN CASE 95 WHEN + ( - 67 ) * COUNT ( * ) + 75 THEN 37 WHEN - 53 THEN NULL ELSE - 28 / - 43 END + 49 THEN NULL WHEN + MIN ( 28 ) THEN + COUNT ( * ) + - 81 * - 16 ELSE 74 END @@ -5352,8 +5395,11 @@ SELECT ALL 83 - + 91 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT \(\- Int64\(\-97\)\)\) \* Int64\(20\) AS col1" at position 0 and "Int64\(96\) \+ Int64\(\-69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( DISTINCT - - 97 ) * ( 20 ) col1, 96 + - 69 AS col1 +---- +20 +27 query II rowsort label-1015 SELECT + 62 + + 75 * - 17 * - + COUNT ( * ) col0, ( + 23 ) @@ -6151,14 +6197,20 @@ SELECT DISTINCT 58 / + 79 * + + 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 84 AS col1, - 36 AS col1 +---- +-36 +84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 86 AS col2, 64 col2 +---- +64 +86 query I rowsort label-1169 SELECT DISTINCT 22 / - COUNT ( * ) @@ -6454,8 +6506,11 @@ SELECT + COUNT ( - ( 78 ) ) * + 25 + 81 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 6000 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(75\) AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 80 * 75 AS col1, 31 AS col1 +---- +31 +6000 query I rowsort label-1226 SELECT ALL + 97 / 94 - + 49 + + + COUNT ( * ) * + + CASE + 82 WHEN + ( + 49 ) THEN NULL WHEN + + 88 THEN - 94 ELSE + - 52 END AS col1 @@ -6756,8 +6811,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 91 AS col0, - COUNT ( * ) AS col0 +---- +-1 +-91 query I rowsort label-1283 SELECT 53 + - - 35 / - 52 @@ -6819,8 +6877,11 @@ SELECT - 23 + + + 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, + 89 AS col0 +---- +1 +89 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -7076,8 +7137,11 @@ SELECT - 69 + - 55 + - + COUNT ( 94 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col1" at position 0 and "Int64\(15\) \- Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 50 AS col1, 15 - + 10 AS col1 +---- +5 +50 query I rowsort label-1343 SELECT + - COUNT ( DISTINCT - 74 ) @@ -7150,8 +7214,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT CASE - + 92 WHEN - 45 THEN NULL ELSE + COUNT ( * ) + - 34 * - 26 END + + + 20 AS col2, - 76 AS col2 +---- +-76 +905 query I rowsort SELECT DISTINCT - ( + + 27 ) + + + 52 * - 60 @@ -7211,8 +7278,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * 26 + - - ( - 82 ) AS col1, ( + - 76 ) AS col1 +---- +-56 +-76 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -7261,8 +7331,11 @@ SELECT ALL + 44 + + + COUNT ( * ) * 43 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 "\(\- min\(\(\- Int64\(90\)\)\)\) AS col1" at position 0 and "Int64\(\-52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + MIN ( - + 90 ) AS col1, - 52 AS col1 +---- +-52 +90 query I rowsort SELECT ALL 30 + + 80 - - + 13 @@ -7454,8 +7527,11 @@ SELECT 72 + - + COUNT ( * ) # 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 "Int64\(41\) AS col2" at position 0 and "Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 AS col2, 43 AS col2 +---- +41 +43 query I rowsort label-1415 SELECT + ( - 3 ) + - - COUNT ( * ) col0 @@ -7518,8 +7594,11 @@ SELECT ALL + + CAST ( - 95 AS INTEGER ) * + 21 * + 73 * + - 3 * + 46 + + 4 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - -1748 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col2" at position 0 and "Int64\(19\) \* count\(DISTINCT Int64\(67\)\) \* Int64\(\-92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 14 AS col2, + 19 * + COUNT ( DISTINCT 67 ) * + - 92 AS col2 +---- +-1748 +14 query I rowsort label-1427 SELECT MIN ( - - 27 ) AS col0 @@ -7714,8 +7793,11 @@ SELECT + 79 * COALESCE ( 47, - + 16 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 82 AS col0, CAST ( NULL AS INTEGER ) col0 +---- +82 +NULL query II rowsort label-1465 SELECT DISTINCT 99 AS col0, + 89 / - + 83 AS col1 @@ -7942,8 +8024,11 @@ SELECT DISTINCT - ( + 79 ) AS col0 # 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\(68\) / Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 AS col1, + 68 / + 6 AS col1 +---- +11 +46 query I rowsort SELECT ALL - 95 * + + 91 @@ -8330,8 +8415,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 70 * - COUNT ( * ) AS col2, 18 AS col2 +---- +18 +70 query I rowsort label-1584 SELECT 22 / COUNT ( * ) AS col2 @@ -8434,8 +8522,11 @@ SELECT 42 AS col1, - 3 # 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 "Int64\(34\) \- Int64\(\-17\) \+ Int64\(\-86\) \- Int64\(\-97\) \+ \(\- Int64\(38\)\) / Int64\(23\) \* Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 AS col0, 34 - - 17 + - 86 - - 97 + - + 38 / 23 * 65 AS col0 +---- +-3 +77 query I rowsort SELECT DISTINCT + 91 + - 88 + - 53 @@ -8790,8 +8881,11 @@ SELECT + - ( 23 ) * 28 + - + COUNT ( * ) + + + ( + 65 ) + + 14 * + 56 * + 38 * - # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-75\) \* Int64\(64\) \+ Int64\(79\) \* Int64\(9\) \+ Int64\(46\) \+ Int64\(14\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(54\) \* CAST\(NULL AS Int32\) \- \(\- CASE Int64\(80\) WHEN Int64\(40\) THEN NULL ELSE avg\(Int64\(45\)\) \* Int64\(4\) \* Int64\(55\) END\) \- Int64\(\-8\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort 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 +---- +1 +NULL query I rowsort SELECT - 59 + + - 97 @@ -8959,8 +9053,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( * ) col0, - COUNT ( * ) AS col0 +---- +-1 +1 query I rowsort label-1703 SELECT + 96 - + ( - COUNT ( * ) ) AS col2 @@ -9280,8 +9377,11 @@ SELECT 41 / COUNT ( DISTINCT - 43 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 62 / COUNT ( * ) AS col0, 87 AS col0 +---- +62 +87 query II rowsort SELECT DISTINCT 68 * + 35, + 59 + 37 AS col0 @@ -9600,8 +9700,11 @@ SELECT - SUM ( ALL 9 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \+ \(\- count\(Int64\(91\)\)\) \+ Int64\(90\) AS col1" at position 0 and "Int64\(51\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 3 + - COUNT ( 91 ) + 90 AS col1, 51 * - CAST ( NULL AS INTEGER ) AS col1 +---- +92 +NULL query II rowsort label-1824 SELECT 44 / + 70 AS col2, + 31 @@ -10105,8 +10208,11 @@ SELECT ALL - 62 * 20, 61 * + 1 + - - 88 AS col0, + + 38 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 87 ) AS col2, 65 AS col2 +---- +65 +87 query I rowsort label-1918 SELECT DISTINCT + COALESCE ( + - 35, + 62 / - 53 ) @@ -10218,8 +10324,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(76\), Int64\(\-56\) / Int64\(79\)\) \+ \(\- Int64\(\-5\)\) AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + NULLIF ( 76, + - 56 / + 79 ) + - - 5 AS col0, 27 AS col0 +---- +27 +81 query II rowsort label-1940 SELECT ALL + ( + - 78 ) AS col2, - COUNT ( * ) @@ -10303,8 +10412,11 @@ SELECT ALL - 68 + + 64 + - 91 + - 10 / + SUM ( 79 ) + + 62 + - 80 / - CAST ( + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 19 AS col1, 24 AS col1 +---- +19 +24 query II rowsort SELECT ALL - 40, + CASE 36 WHEN - + ( - + 50 ) / + 5 * - 63 THEN 93 WHEN ( + 18 ) THEN NULL ELSE NULL END col1 @@ -10785,8 +10897,11 @@ SELECT ALL - 9 / - + 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 15 AS col2, + 59 AS col2 +---- +15 +59 query I rowsort SELECT - 68 * - - 80 col0 @@ -10825,8 +10940,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 AS col1, 53 col1 +---- +53 +62 query I rowsort label-2055 SELECT DISTINCT + + CASE - 0 WHEN + - COUNT ( * ) * + - 52 THEN NULL WHEN + 22 THEN + 76 * - 6 * + COUNT ( * ) * - 18 / - 88 END @@ -11042,8 +11160,11 @@ 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\(1\)\) AS count\(\*\)\)\) \* Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 77 / 25 col0, NULLIF ( - 3, + - 65 + - COUNT ( * ) ) * + 76 AS col0 +---- +-228 +-3 query I rowsort label-2096 SELECT ALL + 66 + - - COUNT ( + + 26 ) + + 61 AS col2 @@ -11058,8 +11179,11 @@ SELECT DISTINCT + 33 + ( + ( 36 ) ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \+ Int64\(48\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) + + 48 AS col0, + 2 AS col0 +---- +2 +49 query I rowsort SELECT 69 + + 50 - + + 71 @@ -11580,8 +11704,12 @@ SELECT ALL - 15 + + - 5 # Datafusion - Expected - 24 # Datafusion - Expected - 54 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-33\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 24 AS col1, 54 AS col0, + CAST ( NULL AS INTEGER ) * - 33 AS col1 +---- +24 +54 +NULL query II rowsort label-2200 SELECT ALL 75 col0, COALESCE ( 72, + 32 * COUNT ( * ) - + 29 ) @@ -13205,8 +13333,11 @@ SELECT - 44 * + COUNT ( - + 25 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 32250 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* Int64\(43\) \* Int64\(15\) AS col1" at position 0 and "Int64\(\-78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 50 * + 43 * 15 AS col1, - 78 AS col1 +---- +-78 +32250 query I rowsort label-2510 SELECT DISTINCT 73 + - COUNT ( * ) * 29 * - + 41 @@ -13248,8 +13379,11 @@ SELECT DISTINCT 38 / + 6 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 18513 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "Int64\(33\) \* Int64\(11\) \* Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 84 AS col0, 33 * 11 * 51 AS col0 +---- +18513 +84 query I rowsort label-2518 SELECT ALL + + CASE COALESCE ( 13, + 44 + - - 73 ) WHEN + MIN ( 65 ) THEN - 64 ELSE + 75 END AS col1 @@ -13694,8 +13828,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 26 col0, 66 + + 18 * 32 * - COUNT ( * ) col0 +---- +-510 +26 query I rowsort SELECT 57 + + 4 * - 79 AS col0 @@ -13921,8 +14058,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + NULLIF ( 68, MIN ( ALL + 19 ) ) col1, + 66 * - COUNT ( * ) AS col1 +---- +-66 +68 query I rowsort SELECT COALESCE ( - 11, 89, - 83 ) @@ -14551,8 +14691,11 @@ SELECT + - COUNT ( * ) * - - COUNT ( * ) / + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -2006 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) / Int64\(65\) AS col2" at position 0 and "Int64\(\-59\) \* Int64\(34\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 11 / + 65 AS col2, - 59 * + 34 * + + COUNT ( * ) col2 +---- +-2006 +0 query I rowsort label-2765 SELECT DISTINCT + COUNT ( * ) * + 24 - + 60 AS col1 @@ -14829,8 +14972,12 @@ SELECT DISTINCT + 82 * - ( - + 39 ) # Datafusion - Expected - 65 # Datafusion - Expected - 16 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 1 and "Int64\(93\) / Int64\(23\) / Int64\(\-65\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 9 - + - NULLIF ( 56, 41 ) col1, 16 AS col2, 93 / 23 / - 65 AS col2 +---- +0 +16 +65 query II rowsort label-2819 SELECT ALL + 10 - + - 41 + - + 1 * 58 AS col0, 73 + - ( 14 ) * - - SUM ( DISTINCT - - 89 ) col2 @@ -14897,8 +15044,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - MAX ( ALL + 78 ) AS col0, + 0 / 85 * CASE + COUNT ( + - 69 ) WHEN + 64 - - + 79 - COUNT ( * ) THEN ( + + 35 ) ELSE NULL END + - 84 AS col0 +---- +-78 +NULL query II rowsort label-2832 SELECT DISTINCT 46 * - 95 + + 80 + + COUNT ( * ), 59 * - + 24 col0 @@ -15104,8 +15254,11 @@ SELECT DISTINCT - 0 * - + 91 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col0, 28 AS col0 +---- +1 +28 query I rowsort label-2871 SELECT - CAST ( - 1 AS INTEGER ) * + 45 * + 16 + 37 + + 50 AS col0 @@ -15230,8 +15383,11 @@ SELECT - 98 AS col1, NULLIF ( 52, + 8 ) + + - 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "Int64\(\-3\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 23 AS col2, - 3 * + COUNT ( * ) AS col2 +---- +-3 +23 query II rowsort SELECT + 48, 9 AS col0 @@ -15359,8 +15515,12 @@ SELECT ALL ( + 18 ) AS col1, - 54 * COUNT ( * ) + 73 + - ( - - COUNT ( * ) ) # Datafusion - Expected - 66 # Datafusion - Expected - 9 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ Int64\(5\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-1\) AS Int32\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 61 + 5 col1, 9, + - CAST ( - 1 AS INTEGER ) AS col1 +---- +1 +66 +9 query I rowsort SELECT DISTINCT + ( + 94 ) + + 47 AS col1 @@ -15842,8 +16002,11 @@ SELECT DISTINCT + NULLIF ( 25, + 74 + - + 6 + + 74 + 72 ) - + 50 col1 # 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 col2" at position 0 and "Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 2 AS col2, - 63 AS col2 +---- +-63 +2 query II rowsort label-3010 SELECT + - COUNT ( - 47 ) / 37 AS col2, 73 / - 50 @@ -16555,8 +16718,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) / 25 / - COUNT ( * ) * + 94 * 17 * - + 6 + - COUNT ( DISTINCT 72 ) + + - 11 AS col0, + SUM ( - 45 ) * + 35 - 70 AS col0 +---- +-12 +-1645 query II rowsort label-3145 SELECT - + 93 * 65 * + 95 + + - SUM ( ALL - 51 ) + + - 64 * - + COUNT ( * ) + 36 / 20 col2, - 21 @@ -16908,8 +17074,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 3 AS col0, + COUNT ( * ) / + + 49 col0 +---- +0 +3 query I rowsort SELECT 89 + + ( 41 ) AS col0 @@ -17010,8 +17179,11 @@ SELECT + CAST ( 37 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - -7860 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col0" at position 0 and "Int64\(\-82\) \+ nullif\(Int64\(42\), Int64\(\-37\) / Int64\(27\)\) \+ \(\- max\(\(\- Int64\(92\)\)\)\) \* Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 34 AS col0, - 82 + NULLIF ( + 42, - 37 / + 27 ) + - MAX ( - + 92 ) * - 85 AS col0 +---- +-34 +-7860 query I rowsort SELECT DISTINCT + 25 * + 81 * + + 47 AS col2 @@ -17178,8 +17350,11 @@ SELECT + COUNT ( ALL + + 66 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \+ \(\- CASE Int64\(\-48\) WHEN Int64\(65\) \+ Int64\(\-71\) THEN Int64\(3\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(20\) END\) AS col1" at position 0 and "Int64\(17\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 50 + - + CASE - 48 WHEN + 65 + - 71 THEN 3 * + COUNT ( * ) / 20 END col1, + 17 * COUNT ( * ) AS col1 +---- +17 +NULL query I rowsort label-3264 SELECT ALL 35 * + - CAST ( NULL AS INTEGER ) + NULLIF ( - - 24, - - 46 ) + - 2 * + + 1 AS col0 @@ -17468,8 +17643,11 @@ SELECT ALL - - 98 * 34, 91 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(\-39\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 0 + - 39 AS col0, + 83 col0 +---- +-39 +83 query I rowsort SELECT ALL ( + 63 ) AS col1 @@ -17593,8 +17771,11 @@ SELECT 98 * - 79 col1 # 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 "Int64\(25\) \+ \(\- max\(\(\- \(\- Int64\(80\)\)\)\)\) AS col2" at position 0 and "Int64\(\-69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 25 ) + - MAX ( ALL - - ( 80 ) ) AS col2, - 69 AS col2 +---- +-55 +-69 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -18068,8 +18249,11 @@ SELECT ( - 91 ) + + 37 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - -2916 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) AS col1" at position 0 and "Int64\(54\) \* Int64\(\-54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 26 AS col1, 54 * - 54 AS col1 +---- +-26 +-2916 query II rowsort label-3433 SELECT 27 + + + SUM ( DISTINCT + 64 ) AS col1, - 68 * + ( + COUNT ( ALL 20 ) ) @@ -18218,8 +18402,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "Int64\(\-61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 6 AS col2, - 61 AS col2 +---- +-61 +6 query I rowsort SELECT - 97 * - - 18 * - 72 col2 @@ -18482,8 +18669,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 50 col0, - COUNT ( * ) * + 32 AS col0 +---- +-32 +50 query I rowsort SELECT ALL 46 * - - 47 * + 20 + 1 AS col1 @@ -18524,8 +18714,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \- sum\(Int64\(90\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 63 / - 66 AS col0, + CASE 69 WHEN 71 THEN - 85 + - COUNT ( * ) - + + SUM ( + 90 ) END AS col0 +---- +0 +NULL query I rowsort label-3520 SELECT DISTINCT + ( + - 73 ) * - + MAX ( + CAST ( + ( - 71 ) AS INTEGER ) ) * - 11 - + COUNT ( * ) AS col0 @@ -18555,8 +18748,11 @@ 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\(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\. +query II valuesort SELECT - 35 AS col0, COALESCE ( + 6, 70 * 1, + - COALESCE ( - 41, + + COALESCE ( + COUNT ( * ), 69 * + - 17 ) * - - 82 ) ) + + 79 * + 89 * COALESCE ( + 68, + COUNT ( * ) ) * - - 55 AS col0 +---- +-35 +26295946 query II rowsort SELECT - 37, - 30 AS col1 @@ -18618,8 +18814,11 @@ SELECT + + 41 * 56 * + 99 * 80 - - 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 236961376 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* Int64\(\-16\) AS col2" at position 0 and "Int64\(57\) \+ Int64\(60\) \- Int64\(7\) \+ Int64\(56\) \* \(\- Int64\(\-70\)\) \* Int64\(\-13\) \* Int64\(62\) \* Int64\(\-75\) \+ Int64\(72\) \+ Int64\(61\) \* Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 * - 16 AS col2, 57 + 60 - + ( + 7 ) + + 56 * - - 70 * - 13 * 62 * - 75 + 72 + + 61 * - 46 AS col2 +---- +0 +236961376 query I rowsort SELECT + + ( + 94 ) AS col0 @@ -18644,8 +18843,11 @@ SELECT + COUNT ( * ) / COUNT ( * ) + + + 77 * 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 64 col2, + 77 AS col2 +---- +-64 +77 query I rowsort SELECT ALL - 59 + 67 * + 48 * + 19 * 63 AS col1 @@ -18928,8 +19130,12 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - NULL # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-49\) \+ Int64\(86\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IRI valuesort 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 +---- +1 +37 +NULL query I rowsort label-3597 SELECT + + COUNT ( * ) + 78 AS col0 @@ -19021,8 +19227,11 @@ SELECT ALL - 11 * 96 * 56 * + 70 AS col0, + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(59\)\)\) AS col2" at position 0 and "sum\(Int64\(40\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( ALL + 59 ) AS col2, SUM ( + 40 ) col2 +---- +-59 +40 query I rowsort SELECT - ( + 85 ) + 89 AS col1 @@ -19185,8 +19394,11 @@ SELECT + 87 AS col0, - 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3517 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- Int64\(40\)\)\) \* Int64\(\-87\) \+ Int64\(37\) \+ Int64\(0\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( ALL - ( + 40 ) ) * + - 87 + + 37 + - 0 AS col2, 63 AS col2 +---- +3517 +63 query I rowsort SELECT 87 * - 13 AS col1 @@ -19330,8 +19542,11 @@ SELECT DISTINCT + COUNT ( * ) * - 85 * 88 AS col2 # 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 "Int64\(88\) / Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 20 col0, 88 / + ( 51 ) AS col0 +---- +-20 +1 query II rowsort label-3674 SELECT 83, COUNT ( 63 ) AS col1 @@ -19651,8 +19866,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 71 AS col0, - COUNT ( * ) * + 88 AS col0 +---- +-88 +71 query II rowsort label-3735 SELECT 94 / - 32 + 66 AS col0, + 24 AS col2 @@ -19722,8 +19940,11 @@ SELECT ALL - - 7 AS col1, + 64 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -333 # Datafusion - Expected - -369 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \+ Int64\(\-95\) \* Int64\(4\) AS col0" at position 0 and "Int64\(9\) \* \(\- max\(Int64\(41\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 + - 95 * + 4 AS col0, 9 * - MAX ( ALL 41 ) * + COUNT ( * ) AS col0 +---- +-333 +-369 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -19768,8 +19989,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 108 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ max\(Int64\(51\)\) \+ Int64\(\-36\) \+ Int64\(\-52\) / Int64\(\-81\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 93 + MAX ( 51 ) + - 36 + - 52 / + - 81 AS col0, + 67 AS col0 +---- +108 +67 query I rowsort SELECT ALL + 96 * + 6 AS col0 @@ -20060,8 +20284,11 @@ SELECT SUM ( + - 68 ) * + - SUM ( ALL - - ( - 55 ) ) - - - 70 / + COUNT ( DISTIN # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) / nullif\(Int64\(61\), Int64\(\-28\)\) AS col2" at position 0 and "Int64\(59\) \+ Int64\(\-63\) \+ \(\- Int64\(10\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( 25 ) / + NULLIF ( 61, - 28 ) col2, 59 + - 63 + - ( + 10 ) AS col2 +---- +-14 +0 query I rowsort SELECT - + 1 * - + 48 AS col2 @@ -20168,8 +20395,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 AS col1, 55 * - + 87 + + + MIN ( + + 13 ) + + COUNT ( * ) / + 39 AS col1 +---- +-31 +-4772 query I rowsort label-3833 SELECT - CAST ( NULL AS INTEGER ) * - 52 * - 29 * + + 28 col1 @@ -20212,8 +20442,11 @@ SELECT DISTINCT - + 61 / - 77 + COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- \(\- count\(DISTINCT Int64\(\-4\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, - COUNT ( * ) * - - COUNT ( DISTINCT - 4 ) AS col2 +---- +-1 +1 query I rowsort label-3841 SELECT - + ( 64 ) * CASE - + 12 WHEN + 90 * + 68 THEN 35 * + - COUNT ( * ) ELSE NULL END @@ -20325,8 +20558,11 @@ SELECT ALL 91 * 75 AS col0, - 0 * - 57 * - SUM ( - 49 ) * - + 62 / - + COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - -2900 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* Int64\(\-58\) AS col0" at position 0 and "Int64\(70\) / Int64\(\-47\) \* \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 50 * - 58 AS col0, 70 / - 47 * - CAST ( - COUNT ( * ) AS INTEGER ) + CAST ( NULL AS INTEGER ) col0 +---- +-2900 +NULL query I rowsort label-3862 SELECT ALL CAST ( - ( - - 18 ) AS INTEGER ) @@ -20356,8 +20592,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2989 # Datafusion - Expected - 160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) \* \(\- Int64\(\-61\)\) AS col0" at position 0 and "Int64\(16\) \* Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 49 * - - 61 AS col0, 16 * 10 col0 +---- +-2989 +160 query II rowsort SELECT 96 + 42, + 6 * 13 AS col2 @@ -20405,8 +20644,11 @@ SELECT COUNT ( * ) + 53 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4050 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* Int64\(90\) AS col2" at position 0 and "Int64\(\-12\) \+ Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 45 * 90 AS col2, - 12 + 26 col2 +---- +14 +4050 query II rowsort SELECT + 24 + - + 63 AS col0, - 10 @@ -20674,8 +20916,11 @@ SELECT 69 * - + ( - + 52 ) AS col2, 33 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2976 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \* CAST\(NULL AS Int32\) \- Int64\(49\) AS col0" at position 0 and "Int64\(96\) \* Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 16 * + + CAST ( NULL AS INTEGER ) - 49 AS col0, + 96 * + 31 AS col0 +---- +2976 +NULL query I rowsort label-3927 SELECT - COALESCE ( - 34, 77, - - 96 ) / + 26 @@ -20857,8 +21102,11 @@ SELECT ALL 18 * 79 / + 43 + + 19 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(90\), Int64\(\-11\)\) AS col1" at position 0 and "coalesce\(Int64\(88\), Int64\(96\)\) / Int64\(8\) \+ Int64\(\-68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COALESCE ( + 90, - 11 ) AS col1, + COALESCE ( 88, + 96 ) / 8 + - 68 AS col1 +---- +-57 +90 query I rowsort SELECT ALL + 48 * - + 60 + + 4 AS col0 @@ -21674,8 +21922,11 @@ SELECT ALL + 21 + + + 80 AS col1, COUNT ( * ) * - ( + 37 ) + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \+ Int64\(\-34\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 + - 34 AS col2, 21 AS col2 +---- +21 +53 query I rowsort label-4123 SELECT + 26 * + COUNT ( * ) * + - 77 @@ -21811,8 +22062,11 @@ SELECT ALL + 11 + + 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col1" at position 0 and "Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 14 AS col1, - 76 AS col1 +---- +-76 +14 query I rowsort SELECT + 70 * - 3 * 44 + + + 46 - - + 86 @@ -21863,8 +22117,11 @@ SELECT ALL + CAST ( ( + ( + 56 ) ) AS INTEGER ) - - - 37 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col2" at position 0 and "count\(\(\- Int64\(\-55\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 38 AS col2, COUNT ( - + ( - 55 ) ) col2 +---- +1 +38 query I rowsort label-4160 SELECT + 94 * 78 * + 53 + COUNT ( 87 ) - 78 * 99 + 71 @@ -21988,8 +22245,12 @@ SELECT CAST ( - - 20 AS INTEGER ) + 46 # Datafusion - Expected - -3 # Datafusion - Expected - -68 # 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 "nullif\(\(\- Int64\(68\)\), Int64\(\-45\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 3 AS col1, + NULLIF ( - + 68, - 45 ) AS col1, - + CAST ( NULL AS INTEGER ) * - MIN ( + 55 ) / 41 +---- +-3 +-68 +NULL query I rowsort SELECT + 22 * 29 + - 80 + 65 AS col0 @@ -22097,8 +22358,11 @@ SELECT - 74 * - - ( - - 58 ) # 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 "Int64\(\-13\) / Int64\(55\) \+ Int64\(\-2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 95 ) AS col0, - 13 / + 55 + - 2 AS col0 +---- +-2 +-95 query I rowsort label-4205 SELECT ALL + ( + 73 ) + - 47 - - + 30 + - COUNT ( * ) / + 1 @@ -22715,8 +22979,11 @@ SELECT ALL 25 / + + 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col2" at position 0 and "\(\- sum\(Int64\(43\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 45 AS col2, - ( SUM ( + 43 ) ) col2 +---- +-43 +45 query I rowsort label-4323 SELECT - 48 / - 68 AS col2 @@ -22820,8 +23087,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col0, COUNT ( * ) AS col0 +---- +1 +1 query I rowsort SELECT ALL - 8 - - 19 * 55 AS col2 @@ -22941,8 +23211,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -220 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* Int64\(\-20\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 * + - 20 AS col0, COUNT ( * ) AS col0 +---- +-220 +1 query II rowsort SELECT 0 + - - 98 AS col1, - 76 @@ -23362,8 +23635,11 @@ SELECT ALL 93 / - 58 + 5 + - 94 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 20 AS col0, + 30 AS col0 +---- +20 +30 query I rowsort SELECT - ( + 22 ) * + 4 AS col1 @@ -23558,8 +23834,11 @@ SELECT ALL + 45 * + - 33 * + - 71 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 29 AS col1, COUNT ( * ) AS col1 +---- +-29 +1 query I rowsort SELECT DISTINCT + + 44 * - ( - 86 ) @@ -24124,8 +24403,11 @@ SELECT ALL - 61 + 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-25\)\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( - 25 ) AS col2, 26 AS col2 +---- +1 +26 query I rowsort SELECT ALL 50 + 70 AS col1 @@ -24272,8 +24554,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1281 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(1\) \* Int64\(65\) AS col1" at position 0 and "Int64\(21\) \* Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) + 1 * 65 AS col1, 21 * + 61 col1 +---- +1281 +NULL query I rowsort SELECT + - ( - 98 ) AS col0 @@ -24426,8 +24711,11 @@ SELECT ALL 82 + + 0 # 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 "Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 74 AS col1, 1 AS col1 +---- +1 +74 query I rowsort SELECT ALL 59 + - + NULLIF ( + 2, - - 26 + + + 46 ) @@ -24708,15 +24996,23 @@ NULL # Datafusion - Expected - 95 # Datafusion - Expected - -43367 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \+ Int64\(84\) \* count\(Int64\(81\)\) \* Int64\(\-86\) \* Int64\(6\) \- Int64\(51\) AS col1" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 95, 28 + 84 * COUNT ( 81 ) * - 86 * ( + 6 ) - + 51 col1, COUNT ( * ) AS col1 +---- +-43367 +1 +95 # 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\(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\. +query III valuesort SELECT COUNT ( * ) * + 64 + + + 58 AS col2, 21 AS col2, + 18 * - 72 + - 14 + 60 AS col1 +---- +-1250 +122 +21 query I rowsort SELECT DISTINCT - 65 + + 76 AS col2 @@ -24901,8 +25197,11 @@ NULL # 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\(47\) / Int64\(55\) \* Int64\(14\) AS col2" at position 0 and "Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 47 ) / + 55 * + 14 AS col2, + 51 AS col2 +---- +0 +51 query II rowsort SELECT ALL ( - 6 ) + - + 48 + - 36, - 53 AS col0 @@ -25234,8 +25533,11 @@ SELECT ALL 52 + 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 163400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col2" at position 0 and "Int64\(86\) \* Int64\(50\) \* Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 col2, 86 * 50 * 38 AS col2 +---- +163400 +93 query I rowsort SELECT - 5 + 13 + - - 64 * + CASE + AVG ( ALL + 58 ) WHEN + 25 * - - 61 + 89 THEN + 30 END * - 27 AS col0 @@ -25260,8 +25562,11 @@ SELECT + - ( 47 ) / - + 64 # 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 col2" at position 0 and "Int64\(45\) / max\(Int64\(5\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 29 AS col2, + 45 / MAX ( + 5 ) AS col2 +---- +29 +9 query I rowsort label-4803 SELECT - 61 + COUNT ( * ) @@ -25334,8 +25639,11 @@ SELECT + 70 AS col2, 12 + ( + 88 ) / + + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 36 AS col0, 89 col0 +---- +36 +89 query I rowsort label-4817 SELECT + SUM ( DISTINCT + + 48 ) @@ -25361,8 +25669,11 @@ 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\(Int64\(1\)\) AS count\(\*\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 18 AS col2, - COALESCE ( + COUNT ( * ), - COUNT ( * ) ) col2 +---- +-1 +-18 query I rowsort label-4822 SELECT + MAX ( DISTINCT - 3 ) AS col0 @@ -25423,8 +25734,11 @@ SELECT DISTINCT + ( + 49 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT ALL + - 19 AS col0, + 5 col0 +---- +-19 +5 query II rowsort label-4834 SELECT + 59 col2, - MIN ( ALL 38 ) AS col0 @@ -25471,8 +25785,11 @@ SELECT ALL 25 * - ( - COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-76\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) * - 76 col0, CAST ( NULL AS INTEGER ) AS col0 +---- +-76 +NULL query I rowsort label-4843 SELECT ALL - 83 * - COUNT ( * ) * - + 87 @@ -25623,8 +25940,11 @@ SELECT ( - - CAST ( 66 AS INTEGER ) ) + + 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\)" at position 0 and "Int64\(47\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 47, 47 +---- +47 +47 query II rowsort SELECT 62, 16 col1 @@ -25846,8 +26166,11 @@ SELECT + 88 * - + 84 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 108 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \+ Int64\(14\) AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 94 + 14 AS col1, + 52 AS col1 +---- +108 +52 query I rowsort label-4913 SELECT - NULLIF ( + ( 70 ), - 8 ) + - COUNT ( * ) AS col2 @@ -26329,8 +26652,11 @@ SELECT DISTINCT + 89 + - 15, + 27 + - + 48 - + 79 * - 57 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 280 # Datafusion - Expected - -3788824 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* Int64\(40\) AS col1" at position 0 and "Int64\(\-16\) \+ \(\- Int64\(96\)\) \+ \(\- coalesce\(\(\- Int64\(78\)\), Int64\(38\)\)\) \* Int64\(\-76\) \* Int64\(17\) \+ Int64\(56\) \* Int64\(84\) \* Int64\(14\) \* Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 7 * + + 40 AS col1, - 16 + - + 96 + - COALESCE ( - ( + 78 ), + 38 ) * + - 76 * 17 + + 56 * + 84 * + 14 * - 56 AS col1 +---- +-3788824 +280 query II rowsort SELECT DISTINCT 24 - + + 51 col2, 22 * - 69 @@ -26405,8 +26731,11 @@ SELECT - - ( - 95 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(75\)\)\)\) AS col1" at position 0 and "Int64\(94\) / Int64\(61\) \- Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - MAX ( + 75 ) AS col1, + 94 / + 61 - 92 AS col1 +---- +-91 +75 query I rowsort label-5018 SELECT - 35 + + 32 - - NULLIF ( ( - - 69 ), - 34 ) * + + 29 * + COUNT ( * ) AS col1 @@ -26590,8 +26919,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1519 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* Int64\(15\) \+ Int64\(\-32\) \+ Int64\(81\) AS col2" at position 0 and "sum\(DISTINCT Int64\(\-53\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 98 * + + 15 + - 32 + + 81 AS col2, + SUM ( DISTINCT - 53 ) col2 +---- +-53 +1519 query I rowsort label-5054 SELECT + + COUNT ( * ) * - + 81 col0 @@ -26746,8 +27078,11 @@ SELECT + 95 * + + ( 36 ) + ( + 41 ) + + COUNT ( * ) * + 92 * ( - COALESCE ( + CO # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- Int64\(22\)\)\)\) AS col2" at position 0 and "min\(Int64\(\-84\)\) \* Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( - + 22 ) AS col2, MIN ( ALL - 84 ) * + - 0 col2 +---- +-1 +0 query I rowsort label-5083 SELECT ALL - ( ( + - COUNT ( * ) ) ) @@ -27034,8 +27369,11 @@ SELECT ALL + 8 * + ( - + 57 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3864 # Datafusion - Expected - -1539 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) \* Int64\(84\) \+ Int64\(\-3\) / \(\- Int64\(\-8\)\) AS col0" at position 0 and "Int64\(\-57\) \* Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 46 * 84 + + - 3 / - - 8 AS col0, - 57 * 27 AS col0 +---- +-1539 +-3864 query I rowsort label-5139 SELECT NULLIF ( + - 94, + COUNT ( ALL - 13 ) + + - 18 ) AS col2 @@ -27092,8 +27430,11 @@ 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\(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\. +query II valuesort SELECT + - COUNT ( * ) col0, 46 * + 52 AS col0 +---- +-1 +2392 query I rowsort SELECT ALL + ( 21 ) col0 @@ -27113,14 +27454,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - -68929 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "Int64\(\-35\) \- Int64\(74\) \* Int64\(\-19\) \* Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 10 col2, - 35 - 74 * - 19 * - 49 AS col2 +---- +-68929 +10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "count\(\(\- Int64\(\-43\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 15 AS col2, COUNT ( ALL - - 43 ) AS col2 +---- +1 +15 query I rowsort SELECT - 6 * 20 @@ -27188,8 +27535,11 @@ SELECT ALL ( - 79 ), + 11 * + 67 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -470 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(96\)\) AS col1" at position 0 and "Int64\(28\) \* Int64\(\-16\) \+ Int64\(\-22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( + 96 ) AS col1, + 28 * - 16 + - 22 AS col1 +---- +-470 +96 query I rowsort SELECT DISTINCT ( 73 ) AS col2 @@ -27770,8 +28120,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * - + 10 * 46 AS col0, 77 + - COUNT ( * ) AS col0 +---- +-460 +76 query I rowsort label-5278 SELECT ALL - 56 / + 67 + - 23 + + 8 @@ -27804,8 +28157,11 @@ SELECT - - NULLIF ( - 35, - 63 - + ( - + COUNT ( * ) ) ) - + SUM ( DISTINCT + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "Int64\(\-60\) \+ Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 43 AS col1, - 60 + + 88 AS col1 +---- +28 +43 query I rowsort label-5284 SELECT ALL - + COUNT ( * ) * + 21 + + 74 * + + COUNT ( * ) AS col0 @@ -27825,8 +28181,11 @@ SELECT DISTINCT - 40 * + 78 + - + 27 + NULLIF ( 37, - + 74 ) # 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\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 9 AS col0, 90 AS col0 +---- +9 +90 query I rowsort SELECT - + 30 * + + ( - 39 ) @@ -27924,8 +28283,11 @@ SELECT - COUNT ( * ) AS col1, 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(40\) \- Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col0, - CAST ( NULL AS INTEGER ) * 40 - + 99 AS col0 +---- +NULL +NULL query II rowsort label-5306 SELECT DISTINCT - + COUNT ( * ) + - + 50 AS col1, + 16 @@ -28289,8 +28651,13 @@ SELECT DISTINCT 29 + - 35 AS col1 # Datafusion - Expected - -47 # Datafusion - Expected - -21 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col1" at position 0 and "Int64\(81\) \+ Int64\(\-73\) \+ \(\- Int64\(55\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIII valuesort SELECT - 14 AS col1, 81 + - 73 + - + 55 col1, - 88 - - 67 AS col2, - 30 + 85 +---- +-14 +-21 +-47 +55 query I rowsort label-5374 SELECT ALL 64 + + 77 * - COUNT ( * ) @@ -28323,8 +28690,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(21\)\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 21 AS col0, + 78 AS col0 +---- +-21 +78 query I rowsort label-5380 SELECT DISTINCT - NULLIF ( - 11, 83 * - 67 / - ( + - 73 ) * - - 61 * - - 32 - - - 57 + 19 * 93 + MAX ( + 26 ) ) - + 89 + + 36 AS col1 @@ -28461,8 +28831,11 @@ SELECT + 52 * - 95 * + 3 * + 15 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3248 # Datafusion - Expected - -315802 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* \(\- Int64\(\-56\)\) AS col2" at position 0 and "Int64\(78\) \* Int64\(50\) \* \(\- Int64\(81\)\) \+ \(\- Int64\(\-98\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 58 * - - 56 col2, 78 * + 50 * - + ( + ( ( 81 ) ) ) + - - 98 AS col2 +---- +-315802 +3248 query I rowsort label-5406 SELECT + - 39 * - - 13 + + 6 + - + 30 + - 44 + + 2 + + - 72 / - 28 + - MIN ( - 52 ) / 73 AS col0 @@ -28741,8 +29114,11 @@ 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\(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\. +query II valuesort 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 +---- +-78 +NULL query II rowsort SELECT DISTINCT 29 AS col0, 11 col2 @@ -28772,8 +29148,11 @@ SELECT ALL - 98 AS col1, + ( + 85 ) + + 25 # 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 "Int64\(\-2\) \+ Int64\(\-84\) AS col2" at position 0 and "Int64\(\-42\) \- Int64\(\-17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 2 + - 84 AS col2, - 42 - ( - 17 ) AS col2 +---- +-25 +-86 query I rowsort SELECT ALL - ( 93 ) AS col2 @@ -28918,8 +29297,11 @@ SELECT ALL 5 + - 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \+ Int64\(60\) AS col1" at position 0 and "Int64\(\-44\) \+ \(\- count\(Int64\(8\)\)\) \+ Int64\(74\) \+ Int64\(78\) \+ \(\- \(\- CAST\(Int64\(86\) AS Int32\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ avg\(Int64\(14\)\) \+ CASE Int64\(\-12\) WHEN Int64\(54\) \* Int64\(\-63\) THEN Int64\(99\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN \(\- Int64\(94\)\) \* \(\- Int64\(\-99\)\) / Int64\(46\) THEN NULL END \+ Int64\(68\) \+ Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +-15 +NULL query II rowsort SELECT ALL - 11, - ( - + ( 11 ) ) AS col0 @@ -29260,14 +29642,20 @@ SELECT 26 * + 42 + + 76 * + 28 # 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 col0" at position 0 and "Int64\(67\) / \(\- Int64\(\-92\)\) \* Int64\(\-47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 33 AS col0, 67 / - - 92 * - 47 col0 +---- +-33 +0 # 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\(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\. +query II valuesort SELECT + ( 93 ) + COUNT ( * ) + + 4 AS col1, 96 AS col1 +---- +96 +98 query I rowsort SELECT ALL + 98 * - 50 - - 41 @@ -29541,8 +29929,11 @@ SELECT ALL 11 + + - 49 + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 6 AS col1, 74 AS col1 +---- +-6 +74 query I rowsort SELECT ALL - 49 + + + 23 @@ -30650,8 +31041,11 @@ SELECT ALL + COUNT ( ALL + 83 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 192 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col0" at position 0 and "Int64\(\-11\) \+ Int64\(35\) \- Int64\(\-61\) \+ Int64\(80\) \+ nullif\(\(\- max\(Int64\(\-27\)\)\), Int64\(15\) \* Int64\(\-13\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 22 AS col0, - 11 + + 35 - - 61 + 80 + + NULLIF ( - MAX ( - 27 ), 15 * - 13 ) AS col0 +---- +192 +22 query I rowsort SELECT ALL 34 * - 33 + - 31 @@ -30966,8 +31360,11 @@ SELECT - SUM ( 42 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col2" at position 0 and "Int64\(38\) \- Int64\(\-5\) / Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 12 col2, 38 - - 5 / - 71 col2 +---- +-12 +38 query I rowsort label-5886 SELECT DISTINCT - 96 * - ( + 64 ) * - + 97 + - COUNT ( * ) + + + NULLIF ( - + 29, - 31 * 47 ) * - 72 AS col2 @@ -30992,8 +31389,11 @@ SELECT 76 * COALESCE ( + - 98, 52 ) # 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 "Int64\(33\) / Int64\(56\) / Int64\(\-98\) AS col2" at position 0 and "Int64\(14\) \+ \(\- Int64\(72\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 33 / 56 / - 98 AS col2, + 14 + - + 72 AS col2 +---- +-58 +0 query I rowsort label-5891 SELECT + MIN ( ALL - + 69 ) AS col0 @@ -31430,8 +31830,11 @@ SELECT DISTINCT MAX ( ALL 96 ) * + 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 129 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \+ Int64\(88\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-72\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 + + + 88 AS col1, - CAST ( - 72 AS INTEGER ) AS col1 +---- +129 +72 query I rowsort label-5974 SELECT 80 + + + 90 / 9 col1 @@ -31441,8 +31844,11 @@ SELECT 80 + + + 90 / 9 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col2" at position 0 and "Int64\(\-74\) \+ Int64\(\-96\) \- \(\- sum\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 AS col2, - 74 + - 96 - - SUM ( ALL - - CAST ( NULL AS INTEGER ) ) col2 +---- +-92 +NULL query I rowsort label-5976 SELECT CAST ( 44 AS INTEGER ) - + 33 @@ -32800,8 +33206,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(56\)\)\) AS col0" at position 0 and "Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( + - ( ( 56 ) ) ) col0, - 92 AS col0 +---- +-56 +-92 query I rowsort SELECT 13 * - + 46 + 73 @@ -32967,8 +33376,11 @@ SELECT + 10 + + ( - + COALESCE ( - 29, - 85 ) ) + + CAST ( + 30 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 AS col2, 81 AS col2 +---- +35 +81 query I rowsort label-6267 SELECT DISTINCT MIN ( ALL 92 ) * 2 @@ -32988,8 +33400,11 @@ NULL # 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 col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 19 AS col2, 56 AS col2 +---- +19 +56 query I rowsort SELECT ALL + ( + 84 ) AS col1 @@ -33492,8 +33907,11 @@ 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\(1\)\) AS count\(\*\)\) \- Int64\(27\) \+ \(\- Int64\(\-82\)\) \+ Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 col1, ( - 92 ) / 76 + - + 87 - + - COUNT ( * ) - + 27 + - - 82 + + 64 AS col1 +---- +32 +94 query I rowsort SELECT ALL 3 * + 55 @@ -33549,8 +33967,11 @@ SELECT ALL 82 AS col2, 39 + - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11640 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(\-12\) \* Int64\(97\) AS col0" at position 0 and "Int64\(\-6\) \+ \(\- CAST\(\(\- nullif\(Int64\(0\), coalesce\(Int64\(\-65\), Int64\(41\) \* Int64\(83\)\) \* Int64\(30\) \+ Int64\(\-37\) \+ CAST\(NULL AS Int32\) \* Int64\(\-33\)\)\) AS Int32\)\) \+ Int64\(\-10\) \+ Int64\(81\) / \(\- Int64\(\-21\)\) \* \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- CAST\(NULL AS Int32\)\) \+ Int64\(12\), Int64\(50\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-13 +11640 query I rowsort label-6374 SELECT - COUNT ( * ) * 86 * + + 15 - ( + + COUNT ( + NULLIF ( - 47, + 82 ) ) ) col2 @@ -33866,8 +34287,11 @@ SELECT ALL 38 - + 65 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 44 AS col2, - CAST ( NULL AS INTEGER ) col2 +---- +44 +NULL query I rowsort SELECT 33 - + 85 @@ -33972,8 +34396,11 @@ SELECT ALL - 84, + 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1158 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(70\) \- count\(Int64\(1\)\) AS count\(\*\) \- Int64\(57\) \+ Int64\(\-2\) \* \(\- CAST\(Int64\(\-13\) AS Int32\)\) \* \(\- Int64\(\-45\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col0, 70 - COUNT ( * ) - + + 57 + + ( - 2 ) * - CAST ( - 13 AS INTEGER ) * - - 45 AS col0 +---- +-1158 +1 query II rowsort SELECT + 30 col1, - 62 AS col0 @@ -34576,8 +35003,11 @@ SELECT DISTINCT - COALESCE ( - - CASE - 89 WHEN 86 * 57 THEN NULL ELSE 3 + + 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 AS col1, 91 AS col1 +---- +68 +91 query I rowsort SELECT 23 + - - 14 * - 37 * + 47 @@ -34863,8 +35293,11 @@ SELECT ALL - 34 / + MAX ( DISTINCT + 27 ) * + 1 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(11\) \+ Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 22 AS col2, + CAST ( NULL AS INTEGER ) + 11 + + 30 AS col2 +---- +22 +NULL query I rowsort SELECT + + 53 * - + 10 @@ -34916,8 +35349,11 @@ SELECT + - 26 * - - 65 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 4272 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col2" at position 0 and "Int64\(89\) \* \(\- \(\- CAST\(Int64\(48\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - 55 ) AS col2, 89 * - - CAST ( ( + + 48 ) AS INTEGER ) AS col2 +---- +-55 +4272 query I rowsort label-6634 SELECT DISTINCT + 1 * - COUNT ( * ) + + - 52 + 41 AS col2 @@ -35019,8 +35455,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 957 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* Int64\(87\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 11 * 87 AS col1, 0 col1 +---- +0 +957 query II rowsort label-6654 SELECT - 0 + + - SUM ( DISTINCT 50 ), + 7 AS col2 @@ -35060,8 +35499,11 @@ SELECT ALL 18 + - - 89 + COUNT ( - + 9 ) + + - 58 + NULLIF ( - 40, 88 ) * - - CO # Datafusion - Datafusion expected results: # Datafusion - Expected - 598 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \* Int64\(9\) \+ Int64\(94\) AS col1" at position 0 and "Int64\(43\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 56 * + 9 + 94 AS col1, 43 + + + COUNT ( * ) AS col1 +---- +44 +598 query I rowsort SELECT DISTINCT 23 + + 64 @@ -35076,8 +35518,11 @@ SELECT + CASE + ( + 94 ) WHEN 95 THEN NULL ELSE 11 * 98 END * + CAST ( 90 AS INT # 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 col0" at position 0 and "\(\- count\(Int64\(58\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 AS col0, - COUNT ( 58 ) AS col0 +---- +-1 +71 query I rowsort SELECT 93 + 68 * - 1 AS col1 @@ -35127,8 +35572,11 @@ SELECT ALL 16 * + - 24 * 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "sum\(Int64\(\-65\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 AS col1, + SUM ( - 65 ) AS col1 +---- +-65 +8 query II rowsort label-6674 SELECT 18 * + COUNT ( + 89 ) AS col2, + 62 + + - CAST ( 93 AS INTEGER ) * 62 @@ -35329,8 +35777,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 86 + - COUNT ( * ) AS col2, 64 AS col2 +---- +64 +85 query I rowsort label-6712 SELECT ALL + 94 / - 90 + SUM ( ALL - 34 ) @@ -35396,8 +35847,11 @@ 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\(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\. +query II valuesort SELECT + 66 * + COUNT ( * ) * - 80 * - 57 / - COUNT ( * ) - + 5 * - COUNT ( ALL 40 ) * NULLIF ( + + 59, - 4 * + + 96 + - - 37 + + 37 ) + + + ( - - 55 ) AS col1, - 52 AS col1 +---- +-300610 +-52 query I rowsort SELECT NULLIF ( + - 95, + 14 * - 88 ) @@ -35488,8 +35942,11 @@ SELECT - + 99 AS col0, + 70 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "nullif\(min\(Int64\(75\)\), Int64\(73\)\) \+ \(\- Int64\(99\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 12 AS col2, + NULLIF ( + MIN ( ALL 75 ), 73 ) + - + ( + 99 ) AS col2 +---- +-24 +12 query II rowsort label-6742 SELECT + CAST ( NULL AS INTEGER ) * - 10 * 74 AS col1, + 24 @@ -35669,8 +36126,11 @@ SELECT ALL - 19 + SUM ( - 33 ) * 26 / + ( - - 17 ) + 98 # 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 "\(\- Int64\(44\)\) AS col2" at position 0 and "\(\- Int64\(\-65\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 44 AS col2, ( + ( - - 65 ) ) AS col2 +---- +-44 +65 query I rowsort label-6776 SELECT 60 * - + NULLIF ( + - 54, - CASE - - 44 WHEN + - 87 + + - 72 THEN COUNT ( * ) * - + 89 * 78 WHEN - + ( + 29 ) THEN + + 46 WHEN - - COUNT ( * ) THEN NULL END * - 56 * - + SUM ( ALL - 74 ) + NULLIF ( 20, + - 98 - + 5 ) ) AS col2 @@ -35796,8 +36256,12 @@ SELECT 86 * + 24 AS col1, 68 # Datafusion - Expected - -5445 # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* Int64\(\-55\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 99 * - 55 AS col0, + 75 AS col0, + + CAST ( NULL AS INTEGER ) + 3 col1 +---- +-5445 +75 +NULL query I rowsort label-6800 SELECT 88 / - CAST ( NULL AS INTEGER ) + MIN ( 28 ) @@ -36007,8 +36471,11 @@ 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\(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\. +query II valuesort SELECT ALL 62 * - CASE + + 17 WHEN - ( 51 ) THEN NULL WHEN + + 21 * 13 THEN - COUNT ( * ) END AS col0, - 13 AS col0 +---- +-13 +NULL query I rowsort SELECT + 74 * - 32 AS col1 @@ -36311,8 +36778,11 @@ SELECT ALL + 41 * + 49 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "Int64\(\-43\) / Int64\(56\) \- Int64\(25\) \+ count\(DISTINCT Int64\(\-63\)\) \+ Int64\(26\) \* \(\- Int64\(67\)\) \- Int64\(15\) / \(\- CAST\(NULL AS Int32\)\) \* sum\(DISTINCT Int64\(97\)\) \* \(\- Int64\(\-2\)\) \+ \(\- Int64\(93\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 AS col0, + ( + - 43 ) / + 56 - + 25 + + COUNT ( DISTINCT - 63 ) + + 26 * - + 67 - ( + 15 ) / - + CAST ( NULL AS INTEGER ) * + SUM ( DISTINCT + 97 ) * - - 2 + - + 93 AS col0 +---- +12 +NULL query II rowsort SELECT DISTINCT - ( 7 ) - + 47, + 25 AS col2 @@ -36457,8 +36927,11 @@ SELECT 46 * + + 72, COUNT ( * ) * ( 50 ) 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 "Int64\(3\) AS col0" at position 0 and "Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 AS col0, - 45 AS col0 +---- +-45 +3 query II rowsort SELECT DISTINCT 81, 75 * 8 col0 @@ -36491,8 +36964,11 @@ SELECT ( - 7 ) + + + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(52\)\) AS col1" at position 0 and "Int64\(62\) \+ Int64\(\-51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 52 AS col1, 62 + - 51 AS col1 +---- +-52 +11 query II rowsort label-6931 SELECT ALL + 99 * + 3 * - 36 - 17 AS col0, COUNT ( * ) - + - 60 AS col2 @@ -38012,8 +38488,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(\-30\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( + 59, - 0 ) + 57 + + 32 AS col2, COUNT ( * ) * - - 30 AS col2 +---- +30 +30 query I rowsort label-7220 SELECT - MAX ( - - 84 ) + - + 58 AS col0 @@ -38554,8 +39033,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(83\) \* Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 73 AS col1, COUNT ( * ) + 83 * 53 AS col1 +---- +4400 +73 query I rowsort label-7327 SELECT + 44 * CAST ( NULL AS INTEGER ) * + 66 / + ( - 98 / 67 ) AS col1 @@ -39585,8 +40067,12 @@ SELECT ALL 4 - + 12 # Datafusion - Expected - -53 # Datafusion - Expected - 6320 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col0" at position 0 and "coalesce\(Int64\(79\), Int64\(\-68\) \* Int64\(16\)\) \* Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 53 AS col0, + COALESCE ( + + 79, - 68 * 16 ) * 80 col0, 73 col1 +---- +-53 +6320 +73 query I rowsort SELECT ALL CASE - - 75 WHEN + 44 THEN 19 END AS col0 @@ -39621,14 +40107,20 @@ SELECT DISTINCT COUNT ( * ) * 6 * 60 * - 47 # 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\(97\)\)\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( ALL + 97 ) AS col2, + 49 AS col2 +---- +-1 +49 # 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\(44\) / Int64\(\-35\) AS col2" at position 0 and "Int64\(\-26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 / - 35 AS col2, - 26 AS col2 +---- +-1 +-26 query I rowsort label-7534 SELECT ALL MIN ( DISTINCT ( - ( + + ( + - 52 ) ) ) ) * 74 AS col1 @@ -40215,8 +40707,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 44 col2, 26 AS col2 +---- +26 +44 query I rowsort label-7647 SELECT COUNT ( * ) * + ( + 3 ) * 4 * - 25 col2 @@ -40579,8 +41074,11 @@ SELECT + 41 * - SUM ( ALL 13 ) + - 1 AS col1 # 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\(3\) \+ Int64\(\-89\) \+ Int64\(93\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 3 + + - 89 + + 93 AS col2, 7 col2 +---- +7 +7 query I rowsort label-7715 SELECT - 14 / + + 69 * - + 23 @@ -40876,8 +41374,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - COUNT ( * ) AS col0, - COUNT ( * ) AS col0, + - 7 +---- +-1 +-1 +-7 query I rowsort SELECT ALL - 32 + + 20 * ( 49 ) AS col2 @@ -40934,8 +41436,11 @@ SELECT ALL - CAST ( - 85 AS INTEGER ) AS col2, - 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4386 # Datafusion - Expected - -2530 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* \(\- Int64\(51\)\) AS col1" at position 0 and "Int64\(46\) \* Int64\(\-55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 86 * - + 51 col1, 46 * + - 55 AS col1 +---- +-2530 +-4386 query I rowsort SELECT ALL 4 * - - 41 AS col2 @@ -41114,8 +41619,11 @@ SELECT + 23 * + COALESCE ( - + 70, 0 ) * - 83 * - ( + 54 ) + 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - -3384 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \* \(\- count\(Int64\(86\)\)\) AS col0" at position 0 and "Int64\(\-94\) \* min\(Int64\(36\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 98 * - ( + COUNT ( ALL 86 ) ) AS col0, - 94 * MIN ( ALL + 36 ) AS col0 +---- +-3384 +98 query I rowsort label-7814 SELECT 46 / + 39 / + 82 * + - 64 * - ( CAST ( NULL AS INTEGER ) ) + - 49 @@ -41153,8 +41661,11 @@ SELECT ALL + 51 * - - 62 + - - 50 + - + 23 * + ( 66 ) * + 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col2" at position 0 and "Int64\(63\) / Int64\(\-26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 29 AS col2, 63 / - 26 AS col2 +---- +-2 +29 query I rowsort label-7821 SELECT ALL - 2 * ( - SUM ( DISTINCT 92 ) ) + - COUNT ( * ) col0 @@ -41756,8 +42267,11 @@ SELECT - 87 + + 90 * 58 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(39\) \- \(\- CAST\(NULL AS Int32\)\) \- Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 56 AS col1, COUNT ( * ) / + 39 - + - CAST ( NULL AS INTEGER ) - + - 56 col1 +---- +-56 +NULL query I rowsort SELECT - 0 + - 53 @@ -41870,8 +42384,11 @@ SELECT + 74 * - 50 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 38 - COUNT ( * ) AS col1, + ( + 24 ) AS col1 +---- +-39 +24 query I rowsort label-7958 SELECT ALL + 30 * 66 * - COUNT ( * ) @@ -42563,8 +43080,11 @@ SELECT + COUNT ( * ) * - - 51 * + 57 AS 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 "Int64\(\-42\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 42 AS col0, + 57 AS col0 +---- +-42 +57 query II rowsort label-8093 SELECT + 76, CAST ( NULL AS INTEGER ) AS col1 @@ -42580,8 +43100,11 @@ SELECT + 95 * 27 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col2" at position 0 and "Int64\(78\) \* CAST\(Int64\(\-28\) AS Int32\) / Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 99 AS col2, + 78 * CAST ( - 28 AS INTEGER ) / 70 AS col2 +---- +-31 +-99 query II rowsort SELECT DISTINCT + 74 AS col1, + 85 @@ -42597,8 +43120,11 @@ SELECT + 97 * - + 89 / + COUNT ( * ) * + ( COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 AS col2, 23 AS col2 +---- +23 +80 query II rowsort label-8099 SELECT + 39 * 44 AS col1, - CAST ( NULL AS INTEGER ) AS col2 @@ -42731,8 +43257,12 @@ SELECT DISTINCT + 22 * - 50 col2, 69 # Datafusion - Expected - 12 # Datafusion - Expected - NULL # Datafusion - Expected - 8281 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(12\)\)\) AS col1" at position 0 and "Int64\(91\) \* Int64\(91\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - + ( - ( 12 ) ) AS col1, CAST ( NULL AS INTEGER ) * 8 AS col2, + 91 * + 91 AS col1 +---- +12 +8281 +NULL query II rowsort SELECT ALL - 90 AS col1, - 34 @@ -42838,8 +43368,11 @@ 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\(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\. +query II valuesort SELECT 4 * - - SUM ( DISTINCT 29 ) col1, 38 * - - CASE COUNT ( * ) WHEN - - 96 * - 68 * - + 79 + 56 THEN 24 - - 90 ELSE NULL END col1 +---- +116 +NULL query I rowsort label-8143 SELECT COUNT ( * ) + 70 AS col0 @@ -43178,8 +43711,11 @@ SELECT COUNT ( * ) + - - 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col1" at position 0 and "Int64\(14\) \+ min\(DISTINCT coalesce\(Int64\(46\), \(\- \(\- Int64\(3\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 70 col1, 14 + MIN ( DISTINCT + + COALESCE ( + 46, - ( - + 3 ) ) ) AS col1 +---- +60 +70 query I rowsort SELECT ALL 27 - + ( + 25 ) @@ -43340,8 +43876,11 @@ SELECT COALESCE ( + 54, - 38 * - 36 ) + + 62 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, 22 col2 +---- +1 +22 query I rowsort SELECT 58 + 48 AS col1 @@ -43362,8 +43901,11 @@ SELECT DISTINCT 64 col2, COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 AS col2, + 10 AS col2 +---- +10 +22 query I rowsort label-8242 SELECT 9 + - + 5 + + ( + + NULLIF ( - CAST ( NULL AS INTEGER ), + 93 + 29 ) ) @@ -43523,8 +44065,11 @@ SELECT - + ( + + 88 ) / + 53 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47257 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \* Int64\(13\) \* Int64\(57\) \+ Int64\(\-49\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-12\) \+ Int64\(14\) AS col1" at position 0 and "\(\- CAST\(Int64\(79\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 63 * + 13 * 57 + - 49 * - COUNT ( * ) * + - 12 + 14 AS col1, + ( - CAST ( 79 AS INTEGER ) ) AS col1 +---- +-47257 +-79 query I rowsort label-8273 SELECT - COALESCE ( + COUNT ( * ), - COALESCE ( - - 31, + 70 * 10 ) ) col2 @@ -43539,8 +44084,11 @@ SELECT - - MAX ( DISTINCT - 28 ) * 85 + 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(83\)\) \+ Int64\(70\) AS col1" at position 0 and "Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 83 + + + 70 col1, - 73 AS col1 +---- +-13 +-73 query I rowsort label-8276 SELECT - - COUNT ( * ) / - 24 + + CAST ( + 6 AS INTEGER ) @@ -43664,8 +44212,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 AS col0, 21 AS col0 +---- +21 +96 query I rowsort SELECT DISTINCT 40 * - 7 @@ -44451,8 +45002,11 @@ SELECT + ( 3 ) * 49 + + ( 18 ) # 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\(5\) AS col2" at position 0 and "Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + ( + 5 ) ) AS col2, 22 AS col2 +---- +22 +5 query I rowsort SELECT DISTINCT - COALESCE ( 57, - 85 * + 68 ) AS col1 @@ -44493,8 +45047,11 @@ SELECT 90 + - 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 AS col1, 58 AS col1 +---- +39 +58 query I rowsort SELECT 3 * 87 AS col0 @@ -44575,8 +45132,11 @@ SELECT ALL SUM ( + + 6 ) + - 82 * 58 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - -3060 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col0" at position 0 and "sum\(DISTINCT Int64\(51\)\) \* \(\- Int64\(60\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 25 AS col0, + SUM ( DISTINCT + 51 ) * - ( + + 60 ) col0 +---- +-25 +-3060 query I rowsort SELECT 38 + ( + - 19 ) @@ -44738,8 +45298,11 @@ SELECT - + 86 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) / Int64\(\-79\) AS col2" at position 0 and "Int64\(\-6\) \+ \(\- \(\- Int64\(8\)\)\) \* Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 61 - + + CAST ( + COUNT ( * ) AS INTEGER ) / - 79 AS col2, - 6 + - ( - ( + 8 ) ) * + 11 AS col2 +---- +-61 +82 query I rowsort label-8504 SELECT ALL 32 - - 86 / 36 + + COALESCE ( + COALESCE ( + 68, - + 91 ), - 63 + - - 82, CAST ( + 64 AS INTEGER ) ) @@ -45122,8 +45685,11 @@ SELECT - NULLIF ( - NULLIF ( + 97, - CAST ( + + 60 AS FLOAT8 ) + + - COUNT ( * ) # 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 "Int64\(\-12\) / Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 11 col0, - 12 / + 47 AS col0 +---- +-11 +0 query I rowsort SELECT + 2 - 72 col0 @@ -47542,8 +48108,12 @@ SELECT ALL ( - ( - 60 ) ) # Datafusion - Expected - 18 # Datafusion - Expected - 59 # Datafusion - Expected - 114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col2" at position 1 and "Int64\(3\) \* Int64\(38\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 18, 59 AS col2, 3 * + 38 AS col2 +---- +114 +18 +59 query I rowsort label-9044 SELECT ALL CAST ( + 30 AS INTEGER ) @@ -47914,8 +48484,11 @@ SELECT ALL + COUNT ( DISTINCT 42 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, - 9 AS col2 +---- +-9 +1 query I rowsort SELECT ALL - + 93 * 83 @@ -48827,8 +49400,11 @@ SELECT 40 AS col1, MAX ( - 49 ) + - 70 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(42\) AS Int32\) AS col1" at position 0 and "\(\- \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + CAST ( + 42 AS INTEGER ) ) AS col1, - ( - CAST ( NULL AS INTEGER ) ) * + 79 AS col1 +---- +42 +NULL query I rowsort SELECT - 7 * + 64 @@ -49247,8 +49823,11 @@ SELECT - 97 * 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-67\)\) AS col1" at position 0 and "min\(Int64\(\-47\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 67 col1, MIN ( + - 47 ) AS col1 +---- +-47 +67 query I rowsort SELECT + 50 + 79 AS col0 @@ -49790,8 +50369,11 @@ SELECT ALL + - COUNT ( * ) + + - 42 * 64 * - 15 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3634 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(46\) AS Int32\) \* \(\- coalesce\(CAST\(Int64\(\-79\) AS Int32\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- min\(Int64\(\-45\)\)\)\) \* Int64\(3\) \+ Int64\(69\) \- Int64\(\-56\)\)\) AS col0" at position 0 and "Int64\(82\) \* \(\- CAST\(NULL AS Int32\)\) \- \(\- Int64\(43\)\) \* Int64\(67\) \+ \(\- max\(\(\- coalesce\(\(\- Int64\(63\)\), Int64\(\-70\) \* Int64\(36\), Int64\(15\)\)\)\)\) \+ min\(DISTINCT Int64\(20\)\) \* Int64\(53\) \* nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- min\(Int64\(4\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +3634 +NULL query II rowsort label-9466 SELECT ALL - COUNT ( * ) + - MAX ( DISTINCT + 53 ), 61 AS col2 @@ -49823,8 +50405,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(53\)\) \* \(\- Int64\(\-52\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 col0, ( + 35 ) / - 41 + - COUNT ( * ) * + + COUNT ( ALL + 53 ) * - - 52 AS col0 +---- +-52 +12 query I rowsort label-9472 SELECT ALL 49 * - 32 - MIN ( + 48 ) AS col1 @@ -49849,8 +50434,11 @@ SELECT DISTINCT - + ( + 24 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 4389 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col2" at position 0 and "Int64\(\-77\) \* Int64\(\-57\) \+ \(\- nullif\(Int64\(0\), CAST\(NULL AS Int32\) \* Int64\(14\) \* Int64\(\-19\) \- \(\- \(\- nullif\(\(\- Int64\(\-25\)\), Int64\(0\) / Int64\(\-28\) / Int64\(5\) / Int64\(\-85\) \* \(\- CAST\(NULL AS Int32\)\)\)\)\)\)\) / nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-54\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-62 +4389 query I rowsort label-9477 SELECT DISTINCT - - MAX ( + 41 ) @@ -50217,8 +50805,11 @@ SELECT + 48 AS col2, + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "Int64\(48\) \- Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 96 AS col2, 48 - + 35 AS col2 +---- +13 +96 query II rowsort label-9548 SELECT + 6 AS col1, - COUNT ( * ) AS col0 @@ -50327,8 +50918,11 @@ SELECT ALL MIN ( + 31 ), COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - -1034 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col1" at position 0 and "Int64\(47\) \* Int64\(\-22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 AS col1, + 47 * - 22 AS col1 +---- +-1034 +-82 query I rowsort label-9568 SELECT DISTINCT CAST ( + + 90 AS INTEGER ) @@ -50364,8 +50958,11 @@ NULL # 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 col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 AS col2, 46 AS col2 +---- +46 +6 query II rowsort SELECT DISTINCT + 58 + 9, 95 AS col1 @@ -50557,8 +51154,11 @@ SELECT + NULLIF ( - - ( COUNT ( DISTINCT + + 44 ) ), - + COUNT ( DISTINCT - + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1872 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(72\)\) \* \(\- \(\- Int64\(\-26\)\)\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( + 72 ) * - - ( - 26 ) AS col0, + 82 AS col0 +---- +-1872 +82 query I rowsort SELECT + 76 - - - 76 AS col1 @@ -50586,8 +51186,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-3\) \* \(\- CAST\(NULL AS Int32\)\) / Int64\(24\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, - 3 * - CAST ( NULL AS INTEGER ) / + + 24 * COUNT ( * ) AS col2 +---- +1 +NULL query I rowsort SELECT + 58 * - ( 97 ) AS col2 @@ -50607,8 +51210,11 @@ SELECT - + 98 / + - 58 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\)" at position 0 and "Int64\(89\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 89, + 89 +---- +89 +89 query I rowsort label-9620 SELECT - - COUNT ( * ) - - COUNT ( ALL + 7 ) AS col2 @@ -50995,8 +51601,11 @@ SELECT 8 * + ( + 83 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col2" at position 0 and "Int64\(96\) \+ \(\- min\(CAST\(Int64\(80\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 AS col2, 96 + - + MIN ( CAST ( 80 AS INTEGER ) ) AS col2 +---- +-64 +16 query II rowsort SELECT 0 AS col0, 71 @@ -51007,14 +51616,20 @@ SELECT 0 AS col0, 71 # 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 "Int64\(54\) \* \(\- CASE \(\- Int64\(\-57\)\) WHEN Int64\(\-29\) THEN NULL WHEN \(\- Int64\(75\)\) THEN Int64\(50\) \- CASE nullif\(\(\- Int64\(5\)\), nullif\(Int64\(\-17\), Int64\(23\)\)\) WHEN Int64\(\-41\) THEN NULL WHEN Int64\(81\) \* Int64\(53\) THEN nullif\(Int64\(\-15\), \(\- Int64\(17\)\)\) \* \(\- Int64\(\-92\)\) END END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 66 col2, 54 * - CASE - - 57 WHEN - 29 THEN NULL WHEN - + 75 THEN 50 - CASE NULLIF ( - + 5, NULLIF ( - 17, 23 ) ) WHEN - 41 THEN NULL WHEN + 81 * + 53 THEN + + NULLIF ( - 15, - + 17 ) * - - 92 END END AS col2 +---- +66 +NULL # 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\(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\. +query II valuesort SELECT ALL 17 AS col1, COUNT ( * ) / 59 / 1 / + + COUNT ( * ) * - 41 AS col1 +---- +0 +17 query I rowsort SELECT 98 / + CASE 67 WHEN - 89 THEN 36 END @@ -51030,8 +51645,12 @@ SELECT 33 * + 78 # Datafusion - Expected - 75 # Datafusion - Expected - 309024 # Datafusion - Expected - 946 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col0" at position 0 and "Int64\(58\) \* Int64\(74\) \* Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 75 AS col0, + 58 * 74 * 72 AS col0, + + 43 * 22 +---- +309024 +75 +946 query I rowsort label-9700 SELECT COUNT ( * ) * + ( - - 62 ) @@ -51067,8 +51686,12 @@ SELECT ALL + 30 + - 48 AS col2 # Datafusion - Expected - 1 # Datafusion - Expected - 1482 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(57\) \* Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ( + COUNT ( * ) ) AS col1, + 57 * + + 26 AS col1, - 16 +---- +-16 +1 +1482 query I rowsort SELECT - 89 * - 81 + - 26 @@ -51207,8 +51830,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* \(\- CAST\(NULL AS Float64\)\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL 0 * - + CAST ( NULL AS FLOAT8 ) col1, + 16 AS col1 +---- +16 +NULL query I rowsort label-9733 SELECT + 23 + - 65 * + COUNT ( - 43 ) AS col2 @@ -51289,8 +51915,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 50238 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(40\) \* Int64\(\-74\) \* Int64\(\-17\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ sum\(Int64\(\-83\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, 40 * - 74 * - 17 + + + COUNT ( * ) + SUM ( ALL - 83 ) AS col0 +---- +1 +50238 query I rowsort label-9749 SELECT ALL + COUNT ( * ) / 47 * - 46 @@ -51368,8 +51997,12 @@ NULL # Datafusion - Expected - -968 # Datafusion - Expected - 44 # Datafusion - Expected - 1814 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ Int64\(\-27\) \* \(\- Int64\(\-38\)\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 58 + - 27 * - - 38 AS col1, 44 AS col1, 98 + - 78 * - 22 AS col2 +---- +-968 +1814 +44 query I rowsort SELECT + - 2 * - 37 + - ( - 88 ) @@ -52119,8 +52752,12 @@ SELECT COUNT ( * ) * 63 * + 56 * + 30 * - 36 * - 62 col1 # Datafusion - Expected - 108 # Datafusion - Expected - 34 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \+ \(\- Int64\(\-57\)\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 51 + - - 57 AS col1, 34 AS col1, + 61 AS col0 +---- +108 +34 +61 query I rowsort SELECT DISTINCT - ( - ( ( - 57 ) ) ) * + - 23 + ( 15 ) * - 54 * - 43 @@ -52329,8 +52966,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 85 AS col1, 39 * - ( + - COUNT ( * ) ) AS col1 +---- +-85 +39 query I rowsort label-9944 SELECT ALL ( + - COUNT ( * ) ) / 32 / + 63 AS col1 @@ -52451,8 +53091,11 @@ SELECT ALL - 44 - - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-90\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 90 - + COUNT ( * ) col0, + ( + + 9 ) col0 +---- +89 +9 query II rowsort SELECT DISTINCT + 53 * + 85 AS col1, + 10 @@ -52562,8 +53205,11 @@ SELECT + 47 + + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(74\) AS Int32\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ nullif\(Int64\(63\), Int64\(74\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - CAST ( + 74 AS INTEGER ) ) col2, CAST ( NULL AS INTEGER ) + NULLIF ( + 63, + 74 ) col2 +---- +-74 +NULL query I rowsort label-9987 SELECT ALL 6 * 1 * 4 + COUNT ( * ) diff --git a/data/sqlite/random/expr/slt_good_114.slt b/data/sqlite/random/expr/slt_good_114.slt index 20b53cb..83aef7a 100644 --- a/data/sqlite/random/expr/slt_good_114.slt +++ b/data/sqlite/random/expr/slt_good_114.slt @@ -206,8 +206,11 @@ SELECT ALL - 19 * - - 72 AS col1, 81 - - COALESCE ( - CASE + - CASE + 48 WHEN 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(Int64\(18\) AS Int32\) \+ Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, CAST ( + 18 AS INTEGER ) + - 84 AS col1 +---- +-1 +-66 query II rowsort label-32 SELECT + - CAST ( NULL AS INTEGER ) AS col0, 53 @@ -300,8 +303,11 @@ SELECT ALL 53 + + 95 + + + 52 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -798 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* Int64\(7\) \* Int64\(\-57\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 * 7 * - 57 AS col1, 55 AS col1 +---- +-798 +55 query II rowsort SELECT DISTINCT 58 + - 64, 61 AS col2 @@ -474,8 +480,11 @@ SELECT ALL 87 * + 99 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(75\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "coalesce\(Int64\(49\), Int64\(18\) \+ \(\- Int64\(\-66\)\) \+ count\(Int64\(1\)\) AS count\(\*\), CAST\(Int64\(34\) AS Int32\) \+ Int64\(42\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) * 75 * COUNT ( * ) AS col1, COALESCE ( + 49, + 18 + - - 66 + + COUNT ( * ), + CAST ( + 34 AS INTEGER ) + + ( + 42 ) ) AS col1 +---- +49 +75 query I rowsort SELECT + ( + 85 ) * + 57 AS col1 @@ -1001,8 +1010,11 @@ SELECT 1 + + COUNT ( * ) * 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \- Int64\(60\) AS col0" at position 0 and "Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 - + 60 AS col0, - 19 AS col0 +---- +-19 +31 query I rowsort label-183 SELECT - NULLIF ( - 36, 20 / + CAST ( - + 21 AS INTEGER ) + - - 94 * + 71 * 24 + - 83 ) + 20 * ( - 26 ) + - 49 AS col1 @@ -1310,8 +1322,11 @@ SELECT ALL + + MAX ( - 56 ) * + + 3 + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 56 AS col2, - 2 AS col2 +---- +-2 +56 query I rowsort label-241 SELECT ALL 70 / + - NULLIF ( + COUNT ( * ), + 22 * + 89 + COUNT ( * ) ) + 2 @@ -1782,8 +1797,11 @@ 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\(1\)\) AS count\(\*\)\), Int64\(\-42\) \+ Int64\(54\)\) / Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 93 * 85 AS col2, COALESCE ( + - COUNT ( * ), - 42 + + 54 ) / + 64 AS col2 +---- +0 +7905 query I rowsort SELECT ALL 5 * 63 AS col0 @@ -1829,8 +1847,11 @@ SELECT + - 79 + 95 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(35\)\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + SUM ( 35 ) AS col1, 99 AS col1 +---- +35 +99 query I rowsort SELECT + + 9 * - + 93 @@ -2167,8 +2188,11 @@ SELECT + 30 AS col0, 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-87\)\) AS col1" at position 0 and "Int64\(97\) / CAST\(\(\- coalesce\(Int64\(46\), Int64\(\-73\) \* Int64\(7\) \+ coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-26\)\), \(\- CAST\(NULL AS Int32\)\), Int64\(10\), Int64\(\-50\)\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 87 AS col1, 97 / CAST ( - COALESCE ( + + 46, - 73 * + 7 + + + COALESCE ( + + COUNT ( * ), - 26 ), - CAST ( NULL AS INTEGER ), 10, - 50 ) AS INTEGER ) AS col1 +---- +-2 +87 query I rowsort SELECT - 70 * - 43 AS col0 @@ -3192,8 +3216,11 @@ SELECT ALL - 46 + + 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 6296 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col2" at position 0 and "Int64\(96\) \* Int64\(65\) \+ Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( 66 ) AS col2, 96 * + 65 + 56 AS col2 +---- +6296 +66 query I rowsort SELECT NULLIF ( + 47, - - 90 ) AS col2 @@ -3563,8 +3590,12 @@ SELECT 29 AS col1, COUNT ( * ) + 62 + 47 + 85 * 98 * 97 * - 58 # Datafusion - Expected - 16 # Datafusion - Expected - 75 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-75\)\) AS col2" at position 1 and "Int64\(\-54\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT MIN ( + 16 ) AS col0, - ( - 75 ) AS col2, - 54 AS col2 +---- +-54 +16 +75 query I rowsort label-672 SELECT ALL + 77 - COUNT ( * ) AS col0 @@ -3628,8 +3659,11 @@ SELECT - COUNT ( ALL - 3 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 151 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col0" at position 0 and "Int64\(78\) \+ Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + 89 ) AS col0, 78 + 73 AS col0 +---- +151 +89 query I rowsort SELECT DISTINCT - 54 + - 58 @@ -3639,8 +3673,11 @@ SELECT DISTINCT - 54 + - 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8175 # Datafusion - Expected - -6877 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(\-90\) \+ Int64\(\-75\) AS col2" at position 0 and "Int64\(97\) \* Int64\(\-70\) \+ Int64\(\-87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 90 * - 90 + - 75 AS col2, 97 * ( - 70 ) + - 87 AS col2 +---- +-6877 +-8175 query I rowsort label-686 SELECT ALL 96 * 98 + - - 88 + - CAST ( ( 7 ) AS INTEGER ) + 23 * ( 38 ) @@ -3693,8 +3730,11 @@ SELECT ALL + + 0 * 3 + + + 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 242152 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) \* Int64\(\-82\) \* Int64\(41\) \+ Int64\(88\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 72 * - 82 * 41 + ( + 88 ) AS col1, + 12 AS col1 +---- +12 +242152 query I rowsort label-696 SELECT ALL + CASE ( - COUNT ( * ) ) WHEN - 36 * CASE + + ( + 80 ) WHEN ( 39 ) THEN NULL ELSE - 8 END THEN NULL WHEN - 62 THEN 86 - + CAST ( NULL AS INTEGER ) ELSE NULL END @@ -3855,8 +3895,11 @@ SELECT - 33 + - 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88803 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(99\) \* \(\- Int64\(\-23\)\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 * + 99 * - - 23 AS col2, + 20 col2 +---- +20 +88803 query I rowsort SELECT ALL + 78 * - 59 AS col0 @@ -4370,8 +4413,11 @@ SELECT COUNT ( * ) AS col1, - 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4485 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \+ Int64\(64\) \* \(\- CAST\(\(\- Int64\(\-70\)\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 5 + + 64 * - CAST ( - - 70 AS INTEGER ) AS col2, - 96 AS col2 +---- +-4485 +-96 query I rowsort label-823 SELECT MIN ( - 37 ) AS col0 @@ -4422,8 +4468,11 @@ SELECT DISTINCT 66, MAX ( 74 ) AS col1 # 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 "Int64\(93\) / \(\- coalesce\(Int64\(\-5\), \(\- Int64\(\-42\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 19 AS col0, 93 / + - COALESCE ( - 5, - - 42 ) AS col0 +---- +18 +19 query I rowsort label-833 SELECT + - 94 / - 44 AS col2 @@ -4790,8 +4839,11 @@ 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\(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\. +query II valuesort SELECT 53 * + COUNT ( * ) * - + 26 AS col1, - ( + 32 ) / - + ( 7 ) col1 +---- +-1378 +4 query I rowsort label-903 SELECT + COUNT ( * ) + - COUNT ( * ) * + - 4 AS col2 @@ -4992,8 +5044,11 @@ 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\(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\. +query II valuesort SELECT ALL + COALESCE ( - + COUNT ( * ), - - 59 - + 53, 34 ) AS col2, 99 * - - 7 * - - 52 AS col2 +---- +-1 +36036 query I rowsort label-942 SELECT - ( + + CAST ( NULL AS INTEGER ) ) / - - NULLIF ( 10, - 57 + + 85 ) + 74 * - 83 + + + 69 AS col0 @@ -5068,8 +5123,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 3 * ( 17 ) AS col1, + 38 * - COUNT ( * ) AS col1 +---- +-38 +51 query II rowsort label-956 SELECT ALL 62 * + 96 * - + 10 col2, + NULLIF ( + 50, + COUNT ( * ) ) @@ -5165,8 +5223,11 @@ SELECT + 47 * - - CAST ( + COUNT ( * ) AS INTEGER ) / - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 27 col0, ( + COUNT ( * ) ) AS col0 +---- +1 +27 query II rowsort label-974 SELECT ALL + COUNT ( * ) + + 63 - - 80 - + 49 + + 95 * + + COUNT ( * ) + - COUNT ( * ) + - 45 * + - 83 * COUNT ( * ) + - 87 AS col2, 0 * + 80 @@ -5375,8 +5436,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + + 15 - COALESCE ( - SUM ( ALL + 60 ), + - 11, 96 ) - + 82 AS col2, - 7 AS col2 +---- +-6 +-7 query II rowsort label-1013 SELECT 72 * - COUNT ( * ), 15 AS col1 @@ -5772,8 +5836,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - -2342 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \- Int64\(\-30\) AS col0" at position 0 and "max\(Int64\(34\)\) \* Int64\(67\) \* \(\- coalesce\(CAST\(NULL AS Int32\), count\(Int64\(1\)\) AS count\(\*\), count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 - - 30 AS col0, MAX ( ALL + 34 ) * + + 67 * - COALESCE ( CAST ( NULL AS INTEGER ), COUNT ( * ), + COUNT ( * ) ) + + - 64 AS col0 +---- +-2342 +53 query I rowsort label-1090 SELECT DISTINCT - MAX ( DISTINCT - 50 ) col0 @@ -5851,8 +5918,11 @@ SELECT 10 * - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - -4504 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \+ \(\- coalesce\(Int64\(85\), Int64\(\-72\), Int64\(\-12\)\)\) AS col1" at position 0 and "Int64\(98\) \+ Int64\(78\) \* Int64\(\-59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 6 + - COALESCE ( + 85, + - 72, - 12 ) AS col1, + 98 + + + 78 * + - 59 col1 +---- +-4504 +-91 query II rowsort SELECT + - 87 AS col1, 57 + + 21 @@ -5873,8 +5943,11 @@ SELECT DISTINCT - - CAST ( 0 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- min\(Int64\(59\)\)\)\)\) \* Int64\(62\) \+ \(\- CAST\(NULL AS Float64\)\) \- Int64\(65\) AS col2" at position 0 and "Int64\(\-54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - - ( - MIN ( 59 ) ) * + 62 + - + CAST ( NULL AS FLOAT8 ) - + 65 col2, - 54 AS col2 +---- +-54 +NULL query I rowsort SELECT ALL + + 1 + - - 34 * + ( 81 ) @@ -5988,8 +6061,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 92 col0, + CAST ( 84 AS INTEGER ) * + 51, + - COUNT ( * ) AS col0 +---- +-1 +4284 +92 query I rowsort SELECT ALL + 49 + + 92 @@ -6097,8 +6174,11 @@ SELECT - - 71 * + SUM ( ALL + - 57 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col2" at position 0 and "Int64\(\-85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 93 AS col2, - 85 AS col2 +---- +-85 +93 query II rowsort SELECT DISTINCT + 25 * - + 64 AS col2, 34 AS col0 @@ -6572,8 +6652,11 @@ SELECT COUNT ( + + 10 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-25\) \+ Int64\(57\) / Int64\(60\) \* Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, - 25 + 57 / + 60 * - 20 AS col2 +---- +-25 +1 query I rowsort SELECT ALL 53 * - 4 - + + 62 + - - 99 * + + 76 @@ -6583,8 +6666,11 @@ SELECT ALL 53 * - 4 - + + 62 + - - 99 * + + 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 38 AS col0, + 46 AS col0 +---- +38 +46 query II rowsort SELECT ALL + 51, 58 AS col0 @@ -6703,8 +6789,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 21 AS col0, 22 AS col0 +---- +-21 +22 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -6743,8 +6832,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) \* Int64\(0\) \+ Int64\(92\) \+ Int64\(17\) \- Int64\(57\) \+ \(\- Int64\(50\)\) \- Int64\(\-23\) AS col2" at position 0 and "Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 30 * + 0 + 92 + + 17 - + 57 + - + 50 - - 23 AS col2, + 17 AS col2 +---- +17 +25 query I rowsort SELECT + 69 * + 23 AS col2 @@ -6988,8 +7080,11 @@ SELECT SUM ( ALL + 1 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- Int64\(55\)\)\)\) AS col2" at position 0 and "Int64\(\-85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( - + 55 ) AS col2, - 85 AS col2 +---- +-55 +-85 query I rowsort SELECT - 19 + + - 2 col0 @@ -7135,8 +7230,11 @@ SELECT 31 * 88 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5212 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* \(\- Int64\(71\)\) \+ Int64\(\-29\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 73 * - + 71 + - 29 AS col1, + 76 AS col1 +---- +-5212 +76 query I rowsort label-1344 SELECT ALL MAX ( - 1 ) + + ( + + COUNT ( DISTINCT + 3 ) ) AS col0 @@ -7618,8 +7716,11 @@ SELECT DISTINCT COALESCE ( + ( + 99 ), + ( - 44 ), - 70 ) + 83 + + - 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\)" at position 0 and "Int64\(79\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79, + 79 +---- +79 +79 query I rowsort SELECT DISTINCT 10 + - 29 @@ -7769,8 +7870,11 @@ SELECT 36 * - + 8 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col1" at position 0 and "Int64\(\-92\) \+ Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 95 AS col1, - 92 + 30 col1 +---- +-62 +-95 query II rowsort SELECT 82 * 92, + 60 * + 68 AS col1 @@ -8002,8 +8106,11 @@ SELECT 93 AS col2, - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col1" at position 0 and "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 66 AS col1, 41 col1 +---- +-66 +41 query I rowsort SELECT ALL ( 88 ) col0 @@ -8211,8 +8318,11 @@ 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\(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\. +query II valuesort 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 +---- +-100 +NULL query I rowsort SELECT - COALESCE ( - - 22, - 36 ) AS col0 @@ -8252,8 +8362,11 @@ SELECT + 46 * + - 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - -780 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) / Int64\(45\) \* Int64\(15\) \* Int64\(98\) \+ Int64\(78\) \* Int64\(\-10\) AS col0" at position 0 and "Int64\(\-82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 / 45 * + + 15 * + 98 + + + 78 * - 10 AS col0, - 82 AS col0 +---- +-780 +-82 query I rowsort label-1557 SELECT NULLIF ( CAST ( NULL AS INTEGER ), - 88 ) - 81 + 61 + + 62 - - - 47 - + - 28 * + COUNT ( * ) * - 5 / - + 77 AS col1 @@ -8352,8 +8465,11 @@ 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\(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\. +query II valuesort SELECT CASE + - COUNT ( * ) WHEN NULLIF ( - + 94, + + 54 / 87 ) * + 42 THEN + 25 END * 48 + + - 53 AS col2, 27 * - 72 AS col2 +---- +-1944 +NULL query I rowsort label-1575 SELECT + 61 * - - COUNT ( * ) AS col2 @@ -8628,8 +8744,11 @@ SELECT ALL 95 + - - 86 * + - 33 * MIN ( - 49 ) * - - 8 - - 14 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 "Int64\(97\) AS col2" at position 0 and "CASE \(\- Int64\(87\)\) WHEN Int64\(11\) THEN NULL WHEN Int64\(44\) \+ Int64\(\-24\) THEN Int64\(12\) ELSE NULL END \* Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 97 AS col2, CASE - + 87 WHEN 11 THEN NULL WHEN + 44 + - 24 THEN 12 ELSE NULL END * + 68 col2 +---- +97 +NULL query I rowsort SELECT DISTINCT + - NULLIF ( + - 90, + 67 ) * + 10 * 3 AS col0 @@ -9440,8 +9559,11 @@ SELECT - NULLIF ( + 81, - 5 + + - 33 * + NULLIF ( 21, - + 42 * - + 76 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 47 col2, 29 AS col2 +---- +29 +47 query I rowsort SELECT - 67 * + 59 AS col2 @@ -9728,8 +9850,11 @@ SELECT 17 * - 94 * - 92 + - 64 * + - 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 3720 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col1" at position 0 and "Int64\(40\) \* \(\- nullif\(Int64\(\-93\), Int64\(91\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 17 AS col1, 40 * ( - NULLIF ( + - 93, 91 ) ) AS col1 +---- +-17 +3720 query I rowsort label-1838 SELECT DISTINCT 33 * - COUNT ( * ) * - - SUM ( DISTINCT 98 ) * - 28 + - + COUNT ( DISTINCT - 2 ) @@ -10322,8 +10447,11 @@ SELECT - 93 * + 48 * - - ( + 70 ) * 57 * - 90 + NULLIF ( + + 84, - 10 ) * - - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 198144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col1" at position 0 and "Int64\(48\) \* Int64\(\-43\) \* Int64\(\-96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 38 AS col1, 48 * - 43 * - 96 col1 +---- +-38 +198144 query I rowsort label-1951 SELECT - 67 + 85 + + + MIN ( + 38 ) @@ -10464,8 +10592,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* Int64\(\-2\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 11 * - 2 AS col1, CAST ( NULL AS INTEGER ) AS col1 +---- +22 +NULL query I rowsort label-1978 SELECT ALL + COUNT ( ALL + ( 17 ) ) AS col2 @@ -12785,8 +12916,11 @@ SELECT ALL + COUNT ( - 46 ) / - 67 AS col0, + 18 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 26 AS col0, - 92 AS col0 +---- +-92 +26 query I rowsort label-2429 SELECT DISTINCT 60 / - CASE 81 WHEN - + 35 * - 31 - 67 * + CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) ELSE NULL END AS col1 @@ -12908,8 +13042,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 83 AS col0, 25 + - 94 - COUNT ( * ) * 85 AS col0 +---- +-154 +83 query II rowsort label-2452 SELECT 16 AS col2, MIN ( DISTINCT - 0 ) @@ -14195,8 +14332,11 @@ SELECT 49 - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -1722 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "CAST\(\(\- Int64\(42\)\) AS Int32\) \* Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 95 AS col2, + CAST ( - + 42 AS INTEGER ) * + 41 AS col2 +---- +-1722 +95 query II rowsort SELECT 18 * - - 8 + + + 64 AS col0, - 72 AS col1 @@ -14368,8 +14508,11 @@ SELECT COALESCE ( + ( + 18 ), - - 6 ) + - CAST ( - - 72 AS INTEGER ) + 12 + 51 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 663 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(17\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 * 17 AS col1, 5 AS col1 +---- +5 +663 query I rowsort label-2730 SELECT ALL - 50 / 64 * - + 76 @@ -14879,8 +15022,11 @@ SELECT 35 AS col0, 43 * - - 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 74 AS col2, COUNT ( * ) AS col2 +---- +1 +74 query I rowsort SELECT ALL - 9 + 9 @@ -14902,8 +15048,11 @@ SELECT + 39 - - 77 AS col1, - 99 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, + 63 AS col2 +---- +1 +63 query I rowsort label-2831 SELECT DISTINCT 17 + - ( - - MIN ( 20 ) ) AS col0 @@ -15241,8 +15390,11 @@ SELECT ALL - COUNT ( * ) * - - 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 4263 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \* Int64\(\-1\) AS col2" at position 0 and "Int64\(87\) \* Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 74 * - 1 AS col2, 87 * + 49 col2 +---- +-74 +4263 query I rowsort label-2895 SELECT + COALESCE ( - 17, + - CAST ( NULL AS INTEGER ) * + + 61 - + + ( + - 1 ) ) * - 73 + - 56 @@ -15476,8 +15628,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 25 col1, 99 AS col1 +---- +25 +99 query I rowsort label-2940 SELECT 63 * CASE 64 WHEN + 55 THEN NULL WHEN - COUNT ( * ) THEN - - 48 END AS col0 @@ -15582,8 +15737,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "Int64\(84\) \* Int64\(6\) \- Int64\(56\) \- Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 AS col1, 84 * 6 - + 56 - 48 AS col1 +---- +400 +71 query II rowsort label-2960 SELECT + 53 AS col0, SUM ( DISTINCT - 32 ) - NULLIF ( + + COUNT ( * ), - MIN ( - 82 ) / + COUNT ( * ) - + ( + 60 ) * 81 * 90 - - 9 ) AS col1 @@ -15610,8 +15768,12 @@ SELECT 73 * ( NULLIF ( - 54, + + 9 ) ) # Datafusion - Expected - 90 # Datafusion - Expected - -48 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col1" at position 1 and "Int64\(84\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 90, - 48 AS col1, + ( 84 ) col1 +---- +-48 +84 +90 query I rowsort SELECT DISTINCT 66 * 78 * + 51 AS col1 @@ -16094,8 +16256,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( ( 80 ) ) AS col1, + 24 AS col1 +---- +24 +80 query I rowsort SELECT + 38 + - 62 AS col1 @@ -16459,8 +16624,11 @@ SELECT + 73 + + + 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col0" at position 0 and "Int64\(15\) \+ Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 93 AS col0, + 15 + 72 AS col0 +---- +87 +93 query I rowsort label-3127 SELECT ALL - 26 / 34 col0 @@ -16533,8 +16701,12 @@ NULL # Datafusion - Expected - 62 # Datafusion - Expected - -1394 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(\-15\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 62 AS col2, - ( - 17 ) * - 82 AS col0, - 15 AS col2 +---- +-1394 +-15 +62 query I rowsort SELECT NULLIF ( - + 78, + 31 + - + 93 ) AS col0 @@ -16762,8 +16934,11 @@ SELECT + COALESCE ( + 65, + COUNT ( * ) ) AS col0, 5 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -6110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col2" at position 0 and "Int64\(\-28\) \+ Int64\(\-23\) \+ Int64\(\-83\) \* \(\- Int64\(\-73\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 60 ) AS col2, - 28 + - 23 + - 83 * - - 73 AS col2 +---- +-6110 +60 query I rowsort label-3184 SELECT + + 72 * + 65 + + 93 * - - COUNT ( * ) AS col1 @@ -16921,8 +17096,11 @@ SELECT ALL - - SUM ( ALL 52 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(97\)\) AS col0" at position 0 and "CASE Int64\(\-2\) WHEN Int64\(73\) \* Int64\(\-99\) THEN NULL ELSE \(\- Int64\(11\)\) END \+ Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 97 col0, CASE - 2 WHEN + 73 * + - 99 THEN NULL ELSE - ( + 11 ) END + - 76 col0 +---- +-87 +-97 query I rowsort label-3214 SELECT DISTINCT + 29 * 63 * - NULLIF ( + 85, + CASE + COUNT ( * ) WHEN 5 * - COUNT ( * ) / - ( + + 22 ) + + 89 THEN COALESCE ( - 53, COUNT ( * ), + ( + COUNT ( * ) ) - + ( + 90 ) * - 86 ) WHEN - ( - - ( + + 3 ) ) THEN - CASE - + 71 WHEN + 13 + - ( + 82 ) THEN NULL ELSE - + 26 END * - + NULLIF ( - 45, 36 ) - - 64 * + 55 END - + 98 ) @@ -16937,8 +17115,11 @@ SELECT + 41 * 81 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 4320 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(15\)\) AS col2" at position 0 and "\(\- min\(Int64\(54\)\)\) \* Int64\(\-80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 15 AS col2, - MIN ( + 54 ) * + - 80 AS col2 +---- +-15 +4320 query II rowsort label-3217 SELECT COUNT ( * ) + 47 * - CAST ( NULL AS INTEGER ) * + 37 AS col2, - 49 * 57 AS col0 @@ -17206,8 +17387,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "CAST\(\(\- Int64\(\-21\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 AS col0, ( CAST ( - - 21 AS INTEGER ) ) AS col0 +---- +17 +21 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -17317,8 +17501,11 @@ SELECT DISTINCT + 15 * + 81 AS col2, - 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - -2872 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) / Int64\(1\) / count\(Int64\(\-58\)\) AS col0" at position 0 and "Int64\(\-4\) \+ \(\- Int64\(12\)\) \+ \(\- Int64\(84\)\) \* Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 / + 1 / + COUNT ( ALL - 58 ) col0, - 4 + - + 12 + - ( ( 84 ) ) * ( 34 ) AS col0 +---- +-2872 +42 query I rowsort label-3288 SELECT SUM ( + + 18 ) / - 70 * SUM ( DISTINCT 63 ) + + 12 + COALESCE ( - 88, - - 76 ) + 24 AS col0 @@ -17334,8 +17521,11 @@ SELECT ALL 77, COALESCE ( + + 21, COUNT ( * ), 19 ) * 68 + + + NULLIF ( 96, + 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 21 AS col2, 16 col2 +---- +16 +21 query I rowsort SELECT 41 - - - 16 @@ -17575,8 +17765,11 @@ SELECT DISTINCT + 59 / COUNT ( * ) * + COUNT ( + 55 ), - 35 * + COUNT ( DISTINCT # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - -896 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col0" at position 0 and "Int64\(\-14\) \* CAST\(Int64\(64\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 72 AS col0, - 14 * CAST ( 64 AS INTEGER ) AS col0 +---- +-72 +-896 query I rowsort SELECT ( - - 93 ) + - - 17 * 15 @@ -17700,8 +17893,11 @@ SELECT - - COUNT ( ALL 82 ) + + + COUNT ( * ) + + 81 + - + 0 * - + 41 * - COALES # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 21 AS col0, + 85 col0 +---- +21 +85 query I rowsort label-3360 SELECT ALL - 92 - - 89 + + 32 + COUNT ( * ) @@ -17798,8 +17994,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2640 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* nullif\(Int64\(\-55\), Int64\(12\) \* Int64\(15\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(22\) \+ Int64\(65\) \- \(\- Int64\(\-30\)\) \+ Int64\(7\) \- Int64\(15\) \* Int64\(\-53\) \* Int64\(20\) \+ Int64\(\-49\) \+ Int64\(60\) \* Int64\(\-77\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 * + NULLIF ( - 55, + 12 * 15 * + - COUNT ( * ) * 22 + + 65 - - ( - 30 ) + + 7 - 15 * - 53 * 20 + - 49 + 60 * + - 77 ) col0, + COUNT ( * ) AS col0 +---- +-2640 +1 query I rowsort label-3377 SELECT + 44 * - COUNT ( * ) + 30 * COUNT ( * ) AS col0 @@ -17875,8 +18074,11 @@ SELECT ALL + 63 - + + 8 + - 81 + - NULLIF ( - 54, 54 + - MIN ( + 25 ) ) * - 13 A # Datafusion - Datafusion expected results: # Datafusion - Expected - -158916 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* Int64\(\-41\) \* \(\- Int64\(\-68\)\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 57 * - 41 * - ( - 68 ) AS col2, + 59 AS col2 +---- +-158916 +59 query I rowsort label-3391 SELECT DISTINCT + 18 * 23 * CASE - 28 WHEN - + 98 THEN + 10 ELSE - 37 END * - 35 - 91 + + CAST ( + 56 AS INTEGER ) + + 27 AS col1 @@ -18146,8 +18348,12 @@ SELECT 25 + 49 # Datafusion - Expected - -29 # Datafusion - Expected - -84 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(29\)\)\) AS col2" at position 0 and "Int64\(\-89\) \+ \(\- Int64\(\-5\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - MIN ( + 29 ) AS col2, - 89 + - - 5 col2, - 18 / - CAST ( + 63 AS INTEGER ) + 68 AS col2 +---- +-29 +-84 +68 query I rowsort label-3443 SELECT ALL + CASE WHEN NOT COUNT ( * ) IS NOT NULL THEN 81 - + 21 ELSE + + 28 + - 86 END * 38 / CAST ( COUNT ( * ) AS INTEGER ) @@ -18157,8 +18363,11 @@ 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\(1\)\) AS count\(\*\)\), Int64\(\-90\) \* Int64\(10\) \+ Int64\(36\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 69 AS col0, NULLIF ( 3, 17 + + NULLIF ( - COUNT ( * ), + - 90 * 10 + + 36 ) ) AS col0 +---- +3 +69 query I rowsort label-3445 SELECT + + CAST ( - + 17 AS INTEGER ) @@ -18211,8 +18420,11 @@ SELECT - 27 AS col1, + 64 - + 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7834 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \* Int64\(\-16\) \+ Int64\(9\) \* Int64\(14\) \* Int64\(77\) \+ Int64\(95\) \* \(\- Int64\(20\)\) AS col0" at position 0 and "Int64\(0\) / Int64\(1\) \* Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 2 * - 16 + 9 * 14 * 77 + + 95 * - ( ( + 20 ) ) AS col0, 0 / + ( + 1 ) * + 41 col0 +---- +0 +7834 query I rowsort label-3455 SELECT ALL 41 * + 86 * + - COUNT ( * ) @@ -18322,8 +18534,11 @@ SELECT - 29 + 20 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - -37050 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-61\) AS Int32\) AS col1" at position 0 and "Int64\(\-38\) \* Int64\(65\) \* Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( - 61 AS INTEGER ) AS col1, - 38 * + 65 * + 15 AS col1 +---- +-37050 +-61 query I rowsort SELECT ALL + + 91 * + 22 * + + 70 + + + 65 @@ -18474,8 +18689,11 @@ SELECT DISTINCT + NULLIF ( 91, 61 ) # 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 "nullif\(Int64\(0\), Int64\(11\) \* Int64\(16\)\) / Int64\(50\) AS col1" at position 0 and "CASE Int64\(58\) WHEN Int64\(\-44\) THEN Int64\(97\) WHEN Int64\(\-38\) THEN NULL ELSE \(\- Int64\(6\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + NULLIF ( + 0, + ( + 11 ) * 16 ) / + 50 col1, CASE 58 WHEN - 44 THEN 97 WHEN - 38 THEN NULL ELSE - + ( + 6 ) END AS col1 +---- +-6 +0 query I rowsort SELECT ALL + + COALESCE ( + + 9, 65 ) @@ -18997,8 +19215,11 @@ SELECT + - 85 + - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \- Int64\(97\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 - + 97 AS col2, 48 AS col2 +---- +-68 +48 query II rowsort SELECT - + 73 AS col0, - 4 AS col1 @@ -19014,8 +19235,11 @@ SELECT + 12 * 98 * - 84 # 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 "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 AS col1, + ( + 31 ) AS col1 +---- +31 +87 query III rowsort SELECT + 25, + 33 col0, + 86 col2 @@ -19174,8 +19398,11 @@ SELECT ALL - 98 / MAX ( 28 ) + + 45 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4554 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) \* nullif\(Int64\(99\), Int64\(\-50\) \* \(\- Int64\(\-94\)\) / Int64\(73\) \+ Int64\(25\) / Int64\(44\)\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 46 * ( NULLIF ( + 99, + - 50 * - + ( - 94 ) / 73 + + 25 / + 44 ) ) AS col1, 91 col1 +---- +-4554 +91 query I rowsort SELECT 72 * + - 31 * + 51 @@ -19572,8 +19799,11 @@ SELECT - 8 + - + 24 * + 26 * - 13 + - - 29 * + + 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 884902 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \- Int64\(\-88\) \+ Int64\(96\) \* Int64\(96\) \* Int64\(96\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 78 - - 88 + 96 * 96 * + 96 AS col1, 26 AS col1 +---- +26 +884902 query II rowsort label-3715 SELECT ALL ( + - CAST ( - 35 AS INTEGER ) ), 50 AS col1 @@ -20443,8 +20673,11 @@ SELECT - 6 + 17 - + 7 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6603 # Datafusion - Expected - 5880 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* Int64\(93\) AS col2" at position 0 and "Int64\(10\) \* Int64\(49\) \* Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 71 * 93 AS col2, + 10 * 49 * 12 AS col2 +---- +5880 +6603 query I rowsort SELECT - 82 + - - 92 @@ -20606,8 +20839,11 @@ SELECT DISTINCT - 77 + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - -304994700 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col1" at position 0 and "Int64\(43\) \* Int64\(\-75\) \* \(\- Int64\(18\)\) \* Int64\(\-71\) \* Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 97 AS col1, 43 * - 75 * - + 18 * - 71 * + 74 AS col1 +---- +-304994700 +-97 query I rowsort label-3916 SELECT ALL - 60 + - MIN ( DISTINCT - + ( + 75 ) ) @@ -21085,8 +21321,11 @@ 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\(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\. +query II valuesort SELECT ALL + 19 / - 89 + + 93 + + COUNT ( * ) * - - COUNT ( * ) AS col2, + 47 * 95 + - 49 * 11 AS col2 +---- +3926 +94 query I rowsort label-4008 SELECT ALL CAST ( NULL AS INTEGER ) / + 59 + ( + 91 ) AS col0 @@ -21264,8 +21503,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4042 # Datafusion - Expected - 1040 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* \(\- Int64\(\-94\)\) AS col1" at position 0 and "Int64\(36\) \* Int64\(28\) \+ Int64\(32\) \+ Int64\(\-2\) / Int64\(\-50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 43 * - - 94 AS col1, 36 * + 28 + 32 + - 2 / - 50 AS col1 +---- +1040 +4042 query I rowsort label-4043 SELECT MIN ( DISTINCT + - 31 ) * - - 19 * 31 + + + 77 @@ -21546,8 +21788,11 @@ SELECT ALL + 60 + - - 51 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "nullif\(Int64\(94\), Int64\(5\)\) \* CAST\(NULL AS Int32\) \+ Int64\(\-20\) \+ Int64\(56\) \* \(\- \(\- min\(DISTINCT Int64\(85\)\)\)\) \* Int64\(\-40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + NULLIF ( + 94, + 5 ) * + CAST ( NULL AS INTEGER ) + - 20 + 56 * - ( + ( - MIN ( DISTINCT 85 ) ) ) * - 40 AS col0 +---- +NULL +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -21659,8 +21904,11 @@ SELECT + COUNT ( * ) AS col1, 83 + + + 49 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(70\)\) / Int64\(\-8\) \+ Int64\(89\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - + 70 ) / - 8 + + 89 col2, 49 AS col2 +---- +49 +97 query I rowsort SELECT ALL NULLIF ( + 22, - NULLIF ( CASE 34 WHEN - AVG ( - + ( - 28 ) ) THEN + 70 WHEN + 73 * - + 90 THEN NULL WHEN 12 * 10 THEN NULL ELSE NULL END, 23 ) + - 55 ) * ( 18 ) @@ -21724,8 +21972,11 @@ SELECT 13 col0, 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5488 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* Int64\(\-93\) \- count\(Int64\(38\)\) AS col1" at position 0 and "Int64\(\-27\) / Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 59 * + - 93 - + COUNT ( 38 ) AS col1, - 27 / + 1 col1 +---- +-27 +-5488 query I rowsort SELECT - + 34 + 47 @@ -21761,8 +22012,12 @@ SELECT DISTINCT - 10 * 95 * 16 # Datafusion - Expected - -42 # Datafusion - Expected - 667 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col0" at position 0 and "Int64\(\-23\) \* max\(DISTINCT Int64\(\-29\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 42 col0, - 23 * MAX ( DISTINCT + - 29 ) col0, - 0 * NULLIF ( + 52, MIN ( - - 43 ) ) AS col1 +---- +-42 +0 +667 query II rowsort label-4137 SELECT ALL + 81, - COUNT ( * ) + + 40 * - 46 AS col1 @@ -21946,8 +22201,11 @@ SELECT DISTINCT + COUNT ( ( + ( + - 74 ) ) ) + - COUNT ( * ) + - - 32 / + + COAL # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 col1, 80 col1 +---- +79 +80 query I rowsort label-4172 SELECT DISTINCT - COUNT ( * ) / - 65 AS col1 @@ -22334,8 +22592,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 140421 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col2" at position 0 and "Int64\(18\) \* Int64\(36\) \* Int64\(44\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CASE WHEN NOT Int64\(47\) IS NOT NULL THEN \(\- CAST\(NULL AS Int32\)\) \- Int64\(55\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-36\) \+ \(\- Int64\(\-27\)\) ELSE Int64\(62\) \* Int64\(95\) END \* Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +140421 +39 query I rowsort SELECT + 36 * + 88 @@ -22659,8 +22920,11 @@ SELECT + 84 * + CAST ( + + SUM ( DISTINCT 28 ) AS INTEGER ) AS col0, - 21 AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 12 col2, + ( + - 79 ) AS col2 +---- +-79 +12 query I rowsort label-4309 SELECT 57 * - MIN ( DISTINCT + - 81 ) + - COALESCE ( - 15, 15, - - 42 + + 26 ) * - 64 @@ -23400,14 +23664,20 @@ SELECT - 7 + - + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \+ Int64\(32\) AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 13 + + 32 AS col1, 32 AS col1 +---- +32 +45 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-73\) AS col1" at position 0 and "Int64\(52\) \+ Int64\(44\) / Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) + + - 73 AS col1, 52 + + 44 / + 81 AS col1 +---- +52 +NULL query I rowsort label-4450 SELECT ( + NULLIF ( - 73, + + 84 * 46 + - 89 * + MIN ( DISTINCT 25 ) ) ) @@ -23565,8 +23835,11 @@ SELECT DISTINCT ( - + 74 ) AS col1 # 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\) AS col1" at position 0 and "Int64\(\-68\) \+ Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 AS col1, - 68 + 27 col1 +---- +-41 +12 query I rowsort label-4480 SELECT ALL CAST ( - 40 AS INTEGER ) @@ -23968,8 +24241,11 @@ 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\(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\. +query II valuesort SELECT ALL + + COUNT ( * ) * + - COUNT ( * ) * - COALESCE ( + 74, COUNT ( DISTINCT + 31 ) / - 48 * - + 37 * MAX ( ALL + NULLIF ( - 27, 71 + - 18 ) ), + + 86 ) - - + 53 AS col0, 95 AS col0 +---- +127 +95 query I rowsort SELECT - 38 * 74 + + 70 + 97 AS col1 @@ -24131,14 +24407,20 @@ SELECT ALL 86 + + COUNT ( DISTINCT 45 ) + + ( - 86 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 28 AS col2, COUNT ( * ) AS col2 +---- +-28 +1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3813 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-12\)\) \* Int64\(\-78\) \+ Int64\(66\) \+ Int64\(\-45\) \* Int64\(\-85\) AS col2" at position 0 and "Int64\(\-3\) \- Int64\(75\) / Int64\(\-87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( ALL - 12 ) * + - 78 + 66 + - 45 * - 85 AS col2, - 3 - 75 / - 87 AS col2 +---- +-3 +3813 query I rowsort SELECT DISTINCT + NULLIF ( + + 77, - 75 ) @@ -24158,8 +24440,11 @@ SELECT ALL + 5 * - MAX ( DISTINCT 3 ) * 62 col0 # 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 "Int64\(70\) AS col2" at position 0 and "nullif\(\(\- Int64\(12\)\), Int64\(93\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 col2, NULLIF ( - + 12, 93 ) AS col2 +---- +-12 +70 query I rowsort label-4593 SELECT ALL - + 54 / - + 68 - - 76 * 30 / - COUNT ( * ) + - 80 AS col1 @@ -24341,8 +24626,11 @@ SELECT NULLIF ( + 33, 50 + - 96 ) - COUNT ( * ) * + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - -976 # Datafusion - Expected - -1692 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* Int64\(\-61\) AS col1" at position 0 and "Int64\(94\) \* Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 * + - 61 AS col1, + 94 * - 18 col1 +---- +-1692 +-976 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -24362,8 +24650,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 14 * - COUNT ( * ) AS col1, 92 AS col1, 29 +---- +14 +29 +92 query I rowsort label-4631 SELECT ALL + ( - 56 ) * - COUNT ( * ) AS col2 @@ -24418,8 +24710,11 @@ SELECT ALL - 38 / - + 83 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 164130 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) \* \(\- Int64\(\-95\)\) \* Int64\(\-54\) \+ Int64\(\-54\) \+ \(\- Int64\(\-24\)\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 32 * - - 95 * - 54 + - 54 + - - 24 AS col2, 36 col2 +---- +164130 +36 query I rowsort SELECT 98 + + 5 AS col2 @@ -24910,8 +25205,11 @@ SELECT + 86 + ( - 19 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + 93 AS col2 +---- +1 +93 query I rowsort SELECT ALL 74 * NULLIF ( + 39, + NULLIF ( + 28, 42 - - 30 + - + 8 ) ) AS col1 @@ -25222,8 +25520,11 @@ NULL # 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\(\-74\) AS col2" at position 0 and "Int64\(1\) \+ Int64\(\-54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 74 ) AS col2, + 1 + - 54 AS col2 +---- +-53 +-74 query I rowsort SELECT ALL - 3 * 27 + 60 col1 @@ -25316,8 +25617,11 @@ SELECT + 48 + + 51 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -2406 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "Int64\(\-50\) \* Int64\(47\) \+ Int64\(2\) \* CAST\(Int64\(\-49\) AS Int32\) \+ Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 63 AS col0, - 50 * + ( + + 47 ) + + 2 * + CAST ( - 49 AS INTEGER ) + + + 42 AS col0 +---- +-2406 +63 query I rowsort SELECT ALL - 29 * 36 @@ -26375,8 +26679,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) \+ Int64\(70\) AS col0" at position 0 and "Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 38 + 70 AS col0, - 92 AS col0 +---- +-92 +32 query I rowsort label-5017 SELECT + COUNT ( * ) * + - 91 + + 21 * - 63 * - 38 AS col2 @@ -26596,8 +26903,11 @@ SELECT - 41 + + 57 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 5 AS col2, + 54 AS col2 +---- +5 +54 query I rowsort SELECT ALL - 10 * + 2 + 8 AS col2 @@ -27321,8 +27631,11 @@ 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\(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\. +query II valuesort SELECT + 42 AS col1, COALESCE ( - 54, - ( + 28 ), + - MIN ( ALL + ( - 94 ) ) * + 14 ) / + 84 * + - COUNT ( * ) + 92 + - COUNT ( * ) AS col1 +---- +42 +91 query I rowsort label-5199 SELECT CAST ( - + COUNT ( + + 58 ) AS INTEGER ) AS col2 @@ -27337,8 +27650,11 @@ SELECT + - CAST ( - ( + - 55 ) AS INTEGER ) * + 73 * - 62 + - 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 AS col2, 26 AS col2 +---- +26 +85 query I rowsort label-5202 SELECT + SUM ( - + 23 ) AS col1 @@ -27486,8 +27802,11 @@ SELECT ALL - 83 * + 84 # 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\(4\) \* Int64\(\-7\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4 * - 7 AS col1, - 0 AS col1 +---- +-28 +0 query II rowsort label-5230 SELECT DISTINCT 33, MIN ( - 12 ) AS col1 @@ -27850,8 +28169,11 @@ SELECT + 4 * + 41 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 1858 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "Int64\(\-11\) \+ \(\- Int64\(21\)\) \* \(\- Int64\(89\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 84 AS col1, - 11 + - + 21 * - + 89 col1 +---- +1858 +84 query I rowsort label-5298 SELECT - CASE + 26 WHEN - 61 * - 93 * + 53 THEN + - 95 + SUM ( ALL ( 9 ) ) ELSE NULL END @@ -27938,8 +28260,11 @@ SELECT ALL + + CASE - 86 WHEN - 22 THEN - + 42 ELSE - 51 END AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 97 AS col2, + 7 AS col2 +---- +7 +97 query I rowsort label-5314 SELECT + COUNT ( * ) * - 35 + - MIN ( DISTINCT ( - 21 ) ) AS col1 @@ -27955,8 +28280,11 @@ SELECT DISTINCT + + 55, - 3 * + + COUNT ( DISTINCT + 34 ) + + 12 * + 35 * + - 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / Int64\(23\) AS col2" at position 0 and "Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) / + + 23 AS col2, - 81 AS col2 +---- +-81 +NULL query I rowsort label-5317 SELECT + ( + NULLIF ( + COUNT ( ALL - + 82 ), + - 33 ) ) * ( - - 78 ) @@ -28138,8 +28466,11 @@ SELECT DISTINCT + 37 * + 95 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(31\)\)\) \+ Int64\(35\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MAX ( ALL 31 ) + + 35 AS col2, 13 AS col2 +---- +13 +4 query II rowsort label-5352 SELECT CAST ( NULL AS INTEGER ) * + - 87 + 76 col2, 73 * - 23 AS col1 @@ -28676,8 +29007,11 @@ SELECT COUNT ( * ) * + - 96 * + 24 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col0" at position 0 and "Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 12 AS col0, - 27 AS col0 +---- +-12 +-27 query I rowsort label-5459 SELECT - COUNT ( * ) * + 76 - - 25 + + 56 * - 88 @@ -28687,8 +29021,11 @@ SELECT - COUNT ( * ) * + 76 - - 25 + + 56 * - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-14\)\) AS col2" at position 0 and "Int64\(\-80\) \+ Int64\(\-15\) \+ Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 14 col2, - 80 + - 15 + 73 AS col2 +---- +-22 +14 query I rowsort label-5461 SELECT ALL 19 / - COUNT ( DISTINCT + 52 ) col1 @@ -28744,8 +29081,11 @@ SELECT - + 56 AS col2, 92 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - -192 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) 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 II valuesort SELECT - 66 AS col1, + 96 * - + 2 col1 +---- +-192 +-66 query I rowsort SELECT ALL + 91 + - 97 @@ -29187,8 +29527,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - -352 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) \+ Int64\(19\) AS col1" at position 0 and "Int64\(\-88\) \* nullif\(Int64\(4\), Int64\(78\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 29 + 19 AS col1, - 88 * NULLIF ( 4, + 78 ) * COUNT ( * ) AS col1 +---- +-10 +-352 query II rowsort SELECT 3 AS col1, - 66 * 85 - 72 * + 21 col2 @@ -29620,8 +29963,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 + - ( 77 ) AS col2, - COUNT ( * ) col2 +---- +-1 +14 query I rowsort label-5641 SELECT + COUNT ( DISTINCT + 85 ) col1 @@ -30044,8 +30390,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, 89 AS col2 +---- +-1 +89 query II rowsort SELECT + 55 AS col1, - 7 AS col0 @@ -30088,8 +30437,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) + + 24 AS col1, - 73 AS col1 +---- +-73 +23 query I rowsort SELECT - - COALESCE ( + ( - + 87 ), + 77 * 21 + - - ( + 66 ), - 39 ) AS col2 @@ -30134,8 +30486,11 @@ SELECT + 12 + - 38 + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - -2860 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col2" at position 0 and "Int64\(\-44\) \* max\(Int64\(65\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 AS col2, - 44 * MAX ( + 65 ) AS col2 +---- +-2860 +24 query I rowsort label-5740 SELECT - 65 * SUM ( - 93 ) + - + COUNT ( * ) * - COUNT ( * ) @@ -30239,8 +30594,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 + + - 42 + + + 61 * 84 - - 27 AS col2, - 25 * - 76 / - COUNT ( * ) AS col2 +---- +-1900 +5123 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -30314,8 +30672,11 @@ SELECT - ( 38 ) * + 30 + 17 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 4923102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-95\)\) \+ \(\- Int64\(78\)\) AS col0" at position 0 and "Int64\(\-67\) \+ \(\- Int64\(\-70\)\) \+ Int64\(28\) \* nullif\(min\(Int64\(74\)\), count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(36\) \* Int64\(66\) \+ min\(Int64\(50\) \- Int64\(23\)\) \+ CASE WHEN Int64\(\-24\) BETWEEN Int64\(\-82\) \* Int64\(38\) \+ \(\- avg\(Int64\(\-91\)\)\) AND Int64\(18\) \* Int64\(49\) THEN Int64\(0\) WHEN NULL NOT BETWEEN Int64\(87\) AND NULL THEN NULL WHEN NOT \(\- max\(Int64\(20\)\)\) \+ Int64\(6\) \* Int64\(\-36\) NOT BETWEEN Int64\(3\) AND Int64\(1\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) / CAST\(Int64\(9\) AS Int32\) THEN NULL ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +17 +4923102 query I rowsort label-5774 SELECT + ( CAST ( NULL AS INTEGER ) ) + NULLIF ( COUNT ( - - 85 ), + 10 ) + + - 32 AS col0 @@ -30567,8 +30928,11 @@ SELECT DISTINCT - 6 / 60 * + 52 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ Int64\(\-67\) AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4 + - 67 AS col1, + 17 AS col1 +---- +-63 +17 query I rowsort SELECT ALL - 88 * + + ( - 78 ) @@ -30768,8 +31132,11 @@ SELECT ALL + - 77 * + NULLIF ( - 89, + 6 + - 89 ) # 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\(\-5\) / \(\- sum\(\(\- Int64\(\-22\)\)\)\) \* Int64\(27\) \* Int64\(87\) AS col1" at position 0 and "Int64\(24\) \- Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 5 / - SUM ( - - 22 ) * 27 * 87 AS col1, 24 - - 66 AS col1 +---- +0 +90 query I rowsort SELECT - 88 * + 42 AS col0 @@ -31208,8 +31575,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(44\) AS col1" at position 0 and "Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 61 * + - CAST ( NULL AS INTEGER ) * + 44 AS col1, 71 AS col1 +---- +71 +NULL query I rowsort SELECT ALL + 97 - + - 3 @@ -31464,8 +31834,11 @@ SELECT CAST ( + + MAX ( ALL - 14 ) AS INTEGER ) + + + 15 + 32 / 27 # 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\) \* Int64\(\-46\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 0 * - 46 AS col0, 82 AS col0 +---- +0 +82 query I rowsort label-5992 SELECT ALL - COUNT ( * ) * - 72 - - SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) @@ -31617,8 +31990,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1288 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \+ \(\- Int64\(\-42\)\) \* Int64\(30\) AS col2" at position 0 and "\(\- Int64\(25\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 28 + - - 42 * 30 AS col2, ( - + 25 ) AS col2 +---- +-25 +1288 query II rowsort label-6021 SELECT + - COUNT ( - + 9 ) + - + COUNT ( * ), - 35 + - 47 AS col1 @@ -31841,8 +32217,12 @@ SELECT ALL - NULLIF ( - 11, + - 57 ) - 87 / - COUNT ( * ) AS col2 # Datafusion - Expected - 1 # Datafusion - Expected - -46 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + COUNT ( * ) AS col2, - ( - + 46 ) * + - COUNT ( * ) AS col0, + 48 AS col2 +---- +-46 +1 +48 query I rowsort label-6064 SELECT ALL - COALESCE ( COUNT ( * ), 70 + + ( 35 ) + + ( + 24 ) * - + ( + 14 ) * - NULLIF ( - 27, - 89 * - + 68 ) * - - CAST ( NULL AS INTEGER ) + + + 91 + + - 82 + - CAST ( NULL AS INTEGER ) * + + CASE + 32 WHEN - - CAST ( - 9 AS INTEGER ) * + 68 THEN - 79 * 97 + + SUM ( + 77 ) END * 67 + + 97 ) @@ -31863,8 +32243,12 @@ NULL # Datafusion - Expected - 85 # Datafusion - Expected - NULL # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + ( + 85 ) AS col1, + CAST ( NULL AS INTEGER ) + - 6, 20 AS col1 +---- +20 +85 +NULL query II rowsort SELECT ALL - + 11 AS col1, 25 * - 57 @@ -32256,8 +32640,11 @@ SELECT ALL COUNT ( * ), - 49 * 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col1" at position 0 and "Int64\(\-45\) \* \(\- min\(\(\- CAST\(NULL AS Int32\)\)\)\) \+ Int64\(\-72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 col1, - 45 * - MIN ( ALL + - CAST ( NULL AS INTEGER ) ) + - 72 AS col1 +---- +5 +NULL query I rowsort SELECT - - 84 * 24 @@ -32293,8 +32680,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 98 / 14 AS col2, + NULLIF ( - 13, - + ( + + 11 ) - COUNT ( * ) ) AS col2 +---- +-13 +-7 query I rowsort label-6150 SELECT - 16 / 58 / - 90 AS col2 @@ -32417,8 +32807,11 @@ SELECT ALL - CAST ( + 49 AS INTEGER ) * NULLIF ( - CASE - 27 WHEN + 53 * + 69 * # Datafusion - Datafusion expected results: # Datafusion - Expected - -562496 # Datafusion - Expected - 5456 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(68\)\) \* Int64\(94\) \* Int64\(\-88\) AS col2" at position 0 and "nullif\(Int64\(88\), \(\- nullif\(Int64\(\-11\), Int64\(44\) \+ Int64\(\-86\)\)\)\) \* Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( 68 ) * + 94 * + - 88 AS col2, NULLIF ( 88, + - NULLIF ( - 11, + 44 + + - 86 ) ) * + 62 col2 +---- +-562496 +5456 query I rowsort label-6174 SELECT ALL ( + 92 ) + - COALESCE ( - CASE WHEN NULL IS NOT NULL THEN 30 ELSE NULL END, - COUNT ( * ), + 90 - 2 - - ( 6 ) * 11 ) AS col2 @@ -32660,8 +33053,11 @@ SELECT ALL COUNT ( DISTINCT - 11 ) - - COUNT ( * ) / - - CAST ( 17 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 143 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col1" at position 0 and "Int64\(72\) \+ Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 10 AS col1, 72 + + 71 AS col1 +---- +10 +143 query II rowsort SELECT ALL 46, - 93 - - 68 AS col1 @@ -33082,8 +33478,11 @@ SELECT + NULLIF ( - 78, + - 71 - - 13 ) - + + 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) / Int64\(28\) \+ \(\- Int64\(57\)\) AS col0" at position 0 and "Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 49 / 28 + - + 57 AS col0, 45 AS col0 +---- +-56 +45 query I rowsort SELECT + 14 * 26 AS col0 @@ -33685,8 +34084,11 @@ SELECT + 30 + - - ( 67 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 0 - COUNT ( * ) AS col1, - 47 AS col1 +---- +-1 +-47 query I rowsort label-6416 SELECT + + 2 * 11 * - + CAST ( NULL AS INTEGER ) @@ -33854,14 +34256,20 @@ SELECT DISTINCT - 84 + - COUNT ( DISTINCT - COALESCE ( - - 16, + 17 / 69, - - 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ \(\- count\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "Int64\(\-72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 61 + - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col1, - 72 AS col1 +---- +-72 +61 # 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\(20\) \- Int64\(46\) AS col0" at position 0 and "Int64\(\-39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 20 - 46 AS col0, - 39 AS col0 +---- +-26 +-39 query II rowsort label-6449 SELECT + - 46 - COUNT ( * ) AS col2, + SUM ( - 30 ) + 46 @@ -33918,8 +34326,11 @@ SELECT 57 * 63 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 28 AS col1, + ( ( + 49 ) ) AS col1 +---- +28 +49 query I rowsort SELECT ALL - 41 * + COALESCE ( - - 43, + 38 ) AS col2 @@ -33935,8 +34346,11 @@ SELECT ALL + 86 + 6 + - 30, + CASE WHEN 1 IN ( - 1 * 38 + + - ( + 61 ) + - 3 ) T # 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 "Int64\(\-3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 97 AS col1, - 3 AS col1 +---- +-3 +97 query I rowsort label-6463 SELECT DISTINCT 63 * - + COUNT ( * ) @@ -34185,8 +34599,11 @@ SELECT NULLIF ( - COUNT ( * ), 70 ) * - - COUNT ( * ) - COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-89\) AS col2" at position 0 and "Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) * - 89 AS col2, + 43 AS col2 +---- +43 +NULL query I rowsort SELECT ALL 8 * 92 * - - 11 @@ -34361,8 +34778,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* sum\(DISTINCT Int64\(82\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, + COUNT ( * ) * + + SUM ( DISTINCT 82 ) AS col1 +---- +-1 +82 query I rowsort SELECT - + 92 + + 50 AS col2 @@ -34905,8 +35325,11 @@ SELECT ALL - 39 * - - 76 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1760 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \* Int64\(80\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 22 * 80 col0, 9 AS col0 +---- +1760 +9 query I rowsort label-6644 SELECT - 34 - - + COALESCE ( + 53, + 51 / MAX ( 77 ) ) AS col1 @@ -35141,8 +35564,11 @@ SELECT + 37 AS col1, + ( + - COALESCE ( - + 5, + 11 * - - 79 - + 94 * + 5 + + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-95\)\) AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 95 AS col2, 74 AS col2 +---- +74 +95 query I rowsort label-6689 SELECT 72 + + MAX ( DISTINCT - 11 ) AS col1 @@ -35240,8 +35666,11 @@ SELECT ALL ( + + COUNT ( * ) ) * + - 40 * + 98, 94 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "Int64\(\-48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 32 col2, - 48 AS col2 +---- +-48 +32 query I rowsort SELECT ( - 42 ) * 50 * ( + + 9 ) - - + ( + 41 ) @@ -35342,8 +35771,11 @@ SELECT DISTINCT - 54 * 44 + + - 15 * - + CAST ( CAST ( - 56 AS INTEGER ) AS INTE # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- Int64\(89\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 27 AS col0, CAST ( NULL AS INTEGER ) * - + 89 AS col0 +---- +27 +NULL query I rowsort SELECT DISTINCT 58 * 13 + + 2 AS col2 @@ -35532,8 +35964,12 @@ SELECT DISTINCT + + NULLIF ( + 30, 50 ) * + 15 * + + COALESCE ( + 70, COALESCE ( # Datafusion - Expected - 1178 # Datafusion - Expected - 41 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \* \(\- \(\- CAST\(Int64\(\-19\) AS Int32\)\)\) AS col2" at position 0 and "Int64\(\-26\) \+ Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 62 * - - CAST ( - 19 AS INTEGER ) col2, - 26 + 67 AS col2, + 70 +---- +1178 +41 +70 query I rowsort label-6764 SELECT + COUNT ( * ) * 1 * - 98 AS col0 @@ -35886,8 +36322,11 @@ SELECT 65 * - + 41 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-73\)\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( + - 73 ) AS col1, + 37 AS col1 +---- +-73 +37 query I rowsort label-6831 SELECT - COALESCE ( + 27, + + CAST ( NULL AS INTEGER ) * + 83 * - 64 * 39 ) @@ -36002,8 +36441,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 9 AS col2, - COUNT ( * ) AS col2 +---- +-1 +9 query I rowsort SELECT - 10 * + 70 AS col2 @@ -36156,8 +36598,11 @@ SELECT DISTINCT + 67 * - 31 * + 56 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 42 AS col1, ( + 46 ) AS col1 +---- +42 +46 query II rowsort label-6882 SELECT ALL + COUNT ( * ) AS col1, + COUNT ( 2 ) @@ -36724,8 +37169,11 @@ SELECT ALL 3 * + 77 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 141 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \- \(\- Int64\(17\)\) \+ Int64\(60\) AS col2" at position 0 and "Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 - - ( + 17 ) + ( + 60 ) AS col2, - 41 AS col2 +---- +-41 +141 query I rowsort SELECT DISTINCT 38 * 51 AS col0 @@ -37388,8 +37836,11 @@ SELECT - CASE + 66 WHEN COALESCE ( - COUNT ( * ), + COALESCE ( - 82, + CAST ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 6009 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col0" at position 0 and "Int64\(60\) \* Int64\(99\) \- Int64\(\-69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 91 AS col0, + 60 * 99 - - 69 col0 +---- +6009 +91 query I rowsort SELECT + CASE - - 15 WHEN + + 63 THEN NULL WHEN 35 THEN + 82 END * + 64 @@ -37439,8 +37890,11 @@ SELECT - 20 * - + 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 41 col0, 23 AS col0 +---- +23 +41 query I rowsort label-7130 SELECT + 64 - - 93 + + - COUNT ( * ) - - 25 * 90 AS col2 @@ -37461,8 +37915,11 @@ SELECT - - COUNT ( * ) + - - NULLIF ( - 80, + CAST ( - 84 AS INTEGER ) * CAST ( # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "min\(DISTINCT Int64\(\-10\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) col0, MIN ( DISTINCT - 10 ) AS col0 +---- +-10 +NULL query I rowsort label-7134 SELECT ALL - CASE + 12 WHEN - - 43 THEN MAX ( DISTINCT 39 ) + 67 ELSE NULL END col2 @@ -37493,8 +37950,11 @@ SELECT ALL - + ( - - SUM ( DISTINCT + 71 ) ) * - 8 col1 # 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 col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 77 AS col0, ( + + 48 ) AS col0 +---- +48 +77 query II rowsort label-7140 SELECT + 26, - MIN ( DISTINCT - 58 ) AS col2 @@ -37891,8 +38351,11 @@ SELECT ALL 63 + - 35 + - 85 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col0" at position 0 and "Int64\(\-54\) \+ Int64\(60\) / Int64\(\-9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 AS col0, - 54 + 60 / - 9 AS col0 +---- +-60 +85 query I rowsort SELECT + 72 * - 99 - - 29 @@ -37907,8 +38370,11 @@ SELECT 78 / - - 79 * CAST ( + 45 AS INTEGER ) - - 14 + - + NULLIF ( + 37, CAST ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 1836 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col0" at position 0 and "Int64\(23\) \* Int64\(83\) \- Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 col0, 23 * 83 - 73 AS col0 +---- +1836 +71 query I rowsort SELECT 34 * + 16 * 97 AS col2 @@ -37924,8 +38390,11 @@ SELECT + 28, 71 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 53 AS col2, 6 col2 +---- +-53 +6 query II rowsort SELECT DISTINCT - 56, + 33 - 72 AS col0 @@ -38022,8 +38491,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 - + 84 AS col0, 79 * - - COUNT ( * ) AS col0 +---- +-58 +79 query I rowsort label-7243 SELECT DISTINCT + COUNT ( * ) + 42 col2 @@ -38471,8 +38943,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) / \(\- \(\- CAST\(NULL AS Float64\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT 48 / - - CAST ( NULL AS FLOAT8 ) AS col0, CAST ( NULL AS INTEGER ) * + 6 col0 +---- +NULL +NULL query I rowsort label-7328 SELECT ALL - COUNT ( * ) - 18 * 20 @@ -38563,8 +39038,11 @@ SELECT ALL 85 + + 79 # 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 "\(\- CAST\(NULL AS Float64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT 73 AS col0, - CAST ( NULL AS FLOAT8 ) AS col0 +---- +73 +NULL query I rowsort label-7346 SELECT 59 + - CASE - 8 WHEN - 81 THEN - NULLIF ( + 46, + - 5 / + NULLIF ( COUNT ( * ), - 74 ) ) END AS col1 @@ -38748,8 +39226,11 @@ 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\(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\. +query II valuesort SELECT + 91 / - CASE - - 29 WHEN + - 61 THEN COUNT ( * ) * + + 54 END AS col1, 24 - + 13 AS col1 +---- +11 +NULL query I rowsort SELECT DISTINCT 97 + 6 + NULLIF ( - + 70, - + 50 ) @@ -38856,8 +39337,11 @@ SELECT DISTINCT - 88 * - COUNT ( * ) + 49 / CAST ( - - 16 AS INTEGER ) + - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col1" at position 0 and "Int64\(\-4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 37 AS col1, - 4 AS col1 +---- +-37 +-4 query I rowsort label-7402 SELECT ALL ( - + 71 ) * - 82 - + 0 * - 3 + - 14 / + - 82 + - COUNT ( * ) @@ -38979,8 +39463,11 @@ SELECT + 79 * + - COUNT ( * ), 40 * - 34 * + 22 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -7561 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-96\)\) AS col0" at position 0 and "CAST\(Int64\(\-65\) AS Int32\) \* \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(73\) \+ Int64\(\-75\), \(\- Int64\(\-41\)\) \* Int64\(\-84\)\)\) \+ Int64\(\-93\) \* Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 96 ) AS col0, CAST ( - 65 AS INTEGER ) * - COALESCE ( COUNT ( * ), + 73 + ( - 75 ), - - 41 * - 84 ) + + - 93 * + 82 col0 +---- +-7561 +96 query I rowsort label-7425 SELECT DISTINCT - SUM ( + + 42 ) AS col1 @@ -39504,8 +39991,11 @@ SELECT + 91 * - 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "Int64\(17\) \+ Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 87 AS col0, 17 + 58 AS col0 +---- +75 +87 query I rowsort label-7525 SELECT ALL NULLIF ( - - 84, COUNT ( * ) ) + + CAST ( - 63 AS INTEGER ) + - - 34 * 69 @@ -39886,8 +40376,11 @@ SELECT + 46 * + ( 36 ) * + + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 6831 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ \(\- Int64\(\-31\)\) AS col2" at position 0 and "\(\- min\(\(\- nullif\(Int64\(\-9\), Int64\(48\)\)\)\)\) \* \(\- Int64\(11\)\) \* Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 + - - 31 AS col2, - MIN ( - NULLIF ( - 9, + 48 ) ) * - + 11 * 69 col2 +---- +6831 +70 query I rowsort SELECT DISTINCT 95 * + 81 @@ -40482,8 +40975,11 @@ SELECT ALL 32 + + 89 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 1152 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \- Int64\(94\) / min\(DISTINCT Int64\(\-75\)\) AS col2" at position 0 and "Int64\(\-36\) \* \(\- Int64\(32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 - 94 / + + MIN ( DISTINCT - 75 ) AS col2, - 36 * - + 32 AS col2 +---- +1152 +78 query I rowsort SELECT 13 * + - ( + 65 ) * + + 16 * + ( + 61 ) col1 @@ -40635,8 +41131,11 @@ SELECT ALL + - 96 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, 19 col1 +---- +1 +19 query I rowsort label-7739 SELECT ALL - 54 - - 55 + 57 * + - MAX ( - 34 ) AS col0 @@ -40897,8 +41396,11 @@ SELECT DISTINCT - + 33 + - 18 * SUM ( - - 85 ) # 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 "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 AS col0, + 0 AS col0 +---- +0 +80 query I rowsort SELECT - 9 + - 67 col2 @@ -40979,8 +41481,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 1 AS col0, 42 * - COUNT ( * ) + + 96 AS col0 +---- +1 +54 query I rowsort label-7804 SELECT + + CAST ( NULL AS INTEGER ) * 62 + - - MIN ( - + CAST ( NULL AS INTEGER ) ) @@ -40990,8 +41495,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(\-44\)\)\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( ALL - 44 ) AS col1, 37 AS col1 +---- +-1 +37 query I rowsort label-7806 SELECT ALL - ( - - 71 ) + - COUNT ( ALL + 94 ) * + 75 AS col2 @@ -41485,8 +41993,11 @@ 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\(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\. +query II valuesort 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 +---- +-16 +NULL query I rowsort SELECT ALL + ( - + ( - + ( 76 ) ) ) @@ -41528,8 +42039,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-13\) \* Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 53 - + - 76 AS col2, COUNT ( * ) * + - 13 * + + 34 AS col2 +---- +-442 +129 query I rowsort SELECT 12 * - 86 @@ -41631,8 +42145,11 @@ SELECT ALL 2 AS col0, CAST ( AVG ( DISTINCT - 41 ) AS INTEGER ) + 39 + 17 + COUN # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - -136 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col0" at position 0 and "Int64\(68\) \* Int64\(\-2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 99 col0, 68 * + - 2 AS col0 +---- +-136 +-99 query I rowsort label-7928 SELECT COUNT ( * ) * - 32 * + 64 + - 59 + + - COUNT ( * ) AS col1 @@ -42348,8 +42865,11 @@ SELECT ALL 35 * + + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 273 # Datafusion - Expected - 2087 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* Int64\(20\) \- Int64\(47\) AS col1" at position 0 and "coalesce\(CAST\(NULL AS Int32\), Int64\(42\) \* Int64\(49\)\) \+ Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 16 * + 20 - + 47 AS col1, COALESCE ( CAST ( NULL AS INTEGER ), + 42 * 49 ) + + + 29 AS col1 +---- +2087 +273 query I rowsort label-8063 SELECT DISTINCT - 76 * 30 - - COALESCE ( 48, + + COUNT ( * ), + - 5 ) col0 @@ -42609,8 +43129,11 @@ SELECT ALL + 21 * - + 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \* Int64\(\-61\) \+ Int64\(14\) \+ \(\- \(\- CASE Int64\(\-90\) WHEN Int64\(11\) \+ Int64\(\-58\) THEN Int64\(92\) ELSE NULL END\)\) \* Int64\(\-94\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "Int64\(89\) \* Int64\(88\) \- \(\- Int64\(\-17\)\) \+ Int64\(\-29\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(20\) \+ Int64\(58\) / CAST\(NULL AS Int32\) \+ Int64\(\-17\) / Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +NULL +NULL query I rowsort label-8110 SELECT ALL - CAST ( - 11 AS INTEGER ) * + 48 + + COALESCE ( - + COUNT ( * ), + 37 ) @@ -42926,8 +43449,11 @@ SELECT ALL - NULLIF ( + 60, + 85 / + 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col1" at position 0 and "Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 4 AS col1, 71 AS col1 +---- +-4 +71 query II rowsort SELECT + 93 col1, 65 @@ -42944,8 +43470,12 @@ SELECT ALL 61 / - 79 # Datafusion - Expected - 1 # Datafusion - Expected - 47 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 1 and "Int64\(8\) / \(\- \(\- Int64\(\-21\)\)\) \* Int64\(\-78\) \* Int64\(86\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT COUNT ( * ), 47 col0, 8 / - ( - - 21 ) * + - 78 * + 86 AS col0 +---- +0 +1 +47 query I rowsort label-8174 SELECT SUM ( + 27 ) / - + 17 @@ -43013,8 +43543,11 @@ SELECT ALL - SUM ( 94 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col2" at position 0 and "Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 col2, 25 AS col2 +---- +25 +75 query I rowsort label-8187 SELECT 41 * - 4 + COUNT ( * ) AS col0 @@ -43896,8 +44429,11 @@ 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\(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\. +query II valuesort SELECT ALL + 93 AS col2, - 14 - + - COALESCE ( 60, 39 * + - 71 * - - 41 + + - COUNT ( * ), - COUNT ( * ) ) - 84 AS col2 +---- +-38 +93 query I rowsort label-8355 SELECT - 5 + - 73 + - COUNT ( * ) @@ -44029,8 +44565,11 @@ SELECT COUNT ( * ) * + CAST ( - 77 AS INTEGER ) - + COALESCE ( - + 23, + 65 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1120 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* \(\- Int64\(\-14\)\) AS col1" at position 0 and "nullif\(Int64\(62\), Int64\(58\)\) / Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 80 * - - 14 AS col1, NULLIF ( 62, + 58 ) / + 58 AS col1 +---- +-1120 +1 query I rowsort label-8379 SELECT - ( - 52 ) * + 2 - + + 33 * + 33 + - 41 + - 11 * + + CASE + COUNT ( DISTINCT + 19 ) WHEN + + ( + 59 ) * 11 THEN NULL ELSE + 43 END @@ -44137,8 +44676,11 @@ SELECT DISTINCT 72 * - 32 # 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 "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 46 AS col1, + 3 AS col1 +---- +3 +46 query II rowsort label-8400 SELECT COUNT ( * ) + + - 66 / 29 AS col2, + 90 * + 61 @@ -44191,8 +44733,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 AS col0, + COUNT ( * ) * + + 28 AS col0 +---- +22 +28 query I rowsort SELECT 53 + 30 AS col0 @@ -44656,8 +45201,11 @@ SELECT COUNT ( * ) * + 85 * COALESCE ( + 40, + - CAST ( 53 AS INTEGER ) ) * + 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 AS col2, + 28 AS col2 +---- +28 +90 query I rowsort SELECT + 12 * + 99 + 90 * - 62 @@ -46172,8 +46720,11 @@ SELECT DISTINCT - 68 + 11 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 58 AS col0, + 22 AS col0 +---- +22 +58 query I rowsort SELECT DISTINCT 18 + + 64 @@ -46334,8 +46885,11 @@ SELECT DISTINCT 20 * 8 * - + 3 + 46 * + 44 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "CASE nullif\(Int64\(\-47\), Int64\(66\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(65\) \+ Int64\(64\) \* Int64\(\-31\)\) WHEN Int64\(16\) THEN Int64\(24\) \* max\(DISTINCT Int64\(58\)\) \+ CAST\(Int64\(8\) AS Int32\) \* Int64\(59\) WHEN Int64\(79\) \+ Int64\(9\) THEN Int64\(44\) \* \(\- CASE CASE Int64\(4\) WHEN Int64\(\-54\) / Int64\(\-21\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(61\) THEN Int64\(50\) END WHEN Int64\(\-29\) THEN Int64\(\-4\) \+ Int64\(15\) \* Int64\(\-18\) WHEN CASE Int64\(92\) WHEN CAST\(NULL AS Int32\) \+ \(\- min\(Int64\(97\)\)\) THEN Int64\(63\) END \* Int64\(8\) THEN NULL ELSE NULL END\) END \* Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +71 +NULL query I rowsort label-8824 SELECT - COUNT ( * ) * - - 99 * + 50 + - 81 AS col2 @@ -47284,8 +47838,11 @@ SELECT 87 / + 50 + + 78 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - COUNT ( * ) AS col1, + COUNT ( * ) AS col1 +---- +1 +1 query I rowsort SELECT - ( + 13 ) AS col2 @@ -47310,8 +47867,11 @@ SELECT ALL 42 / 69 + + 19 - - 46 / 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 69 AS col0, + 18 AS col0 +---- +-69 +18 query II rowsort label-9011 SELECT + - COUNT ( * ) * - COUNT ( * ) * 66 - - 85 / 59 * 61 - - COUNT ( * ) * - 26 * - 39 AS col0, + 12 / COUNT ( * ) @@ -47322,8 +47882,11 @@ SELECT + - COUNT ( * ) * - COUNT ( * ) * 66 - - 85 / 59 * 61 - - COUNT ( * ) * - # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 19 AS col0, + 34 col0 +---- +-19 +34 query II rowsort label-9013 SELECT COUNT ( * ) AS col2, 76 @@ -47486,8 +48049,11 @@ SELECT - + 27 + - 17 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 1111 -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\) \* Int64\(20\) \+ Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( - - 90 ) AS col1, + 51 * + 20 + + + 91 AS col1 +---- +1111 +90 query I rowsort SELECT ALL + 47 + + 59 + - 9 * 49 @@ -47865,8 +48431,11 @@ SELECT ALL 38 + + + COUNT ( * ) * - - 9 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4652 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- coalesce\(min\(DISTINCT Int64\(\-52\)\), Int64\(\-80\) \+ Int64\(\-75\)\)\), Int64\(\-69\)\) \* \(\- Int64\(89\)\) \- Int64\(24\) AS col1" at position 0 and "Int64\(\-10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COALESCE ( - ( COALESCE ( + MIN ( DISTINCT - 52 ), - 80 + - 75 ) ), - 69 ) * - + 89 - 24 AS col1, - 10 AS col1 +---- +-10 +-4652 query I rowsort label-9117 SELECT - 21 * - - MAX ( + - ( - 37 ) ) + - + 78 AS col2 @@ -47887,8 +48456,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-8\)\) \- Int64\(95\) AS col0" at position 0 and "Int64\(76\) / Int64\(\-8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( + - 8 ) - 95 AS col0, 76 / - 8 AS col0 +---- +-9 +-94 query I rowsort SELECT 70 + + 70 + - - 96 - - 92 * + COALESCE ( - 44, - 89, - 4 - + 27 ) AS col1 @@ -48084,8 +48656,11 @@ SELECT ( 28 ) - + 75 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - -5440 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col0" at position 0 and "Int64\(\-59\) \* \(\- Int64\(\-93\)\) \+ \(\- Int64\(\-47\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 49 AS col0, - 59 * - - 93 + - - 47 col0 +---- +-5440 +49 query I rowsort SELECT DISTINCT 76 * - 33 AS col0 @@ -48121,8 +48696,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 25 AS col1, - COUNT ( * ) AS col1 +---- +-1 +-25 query I rowsort SELECT + 51 + + - 77 AS col1 @@ -48777,8 +49355,11 @@ SELECT + 4 - + + CAST ( - + 17 AS INTEGER ) / + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4920 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(82\)\)\) \* Int64\(\-60\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - - ( + + 82 ) ) * - 60 * COUNT ( * ) AS col1, + 3 AS col1 +---- +-4920 +3 query I rowsort label-9290 SELECT + ( - - COUNT ( * ) ) + NULLIF ( + - 93, + 37 + + 75 ) / - + 27 @@ -48940,8 +49521,11 @@ SELECT DISTINCT + ( - + 43 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\)" at position 0 and "Int64\(59\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 59, 59 +---- +59 +59 query I rowsort label-9321 SELECT SUM ( DISTINCT + 84 ) / - - 14 + 56 @@ -49378,8 +49962,11 @@ SELECT + 50 * 95 + + 34 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - -127 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col1" at position 0 and "Int64\(\-45\) / \(\- \(\- count\(Int64\(47\)\)\)\) \- \(\- \(\- Int64\(82\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 AS col1, - 45 / - - COUNT ( ALL 47 ) - ( - ( - + 82 ) ) AS col1 +---- +-127 +79 query II rowsort label-9402 SELECT + COUNT ( * ), + CAST ( - + 73 AS INTEGER ) - - 26 + + NULLIF ( - 70, + - 71 ) + + CAST ( 2 AS INTEGER ) * - 75 + - ( + 72 ) / - - 45 AS col0 @@ -49724,8 +50311,11 @@ SELECT DISTINCT COUNT ( * ) * - 80 * + ( + CASE - + 5 WHEN - 9 + - 51 + 55 THEN # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col2" at position 0 and "Int64\(\-26\) / Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 53 AS col2, - 26 / + + 98 col2 +---- +-53 +0 query II rowsort label-9469 SELECT + 27 AS col0, - COUNT ( DISTINCT - - ( - - 66 ) ) + + 19 @@ -50330,8 +50920,11 @@ SELECT 70 + + COALESCE ( + 64, + - 60, COUNT ( * ) + - ( + 23 ) / + MIN ( 10 ) * # Datafusion - Datafusion expected results: # Datafusion - Expected - -315 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-44\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \* Int64\(7\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COALESCE ( - + CAST ( NULL AS INTEGER ), - 44 * COUNT ( * ) + CAST ( - + COUNT ( * ) AS INTEGER ) ) * + 7 AS col2, 3 AS col2 +---- +-315 +3 query I rowsort label-9584 SELECT COUNT ( - + 16 ) - COUNT ( * ) @@ -50688,8 +51281,12 @@ SELECT - 33 + - - 85 AS col2, + 72 # Datafusion - Expected - -25 # Datafusion - Expected - 93 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(25\)\) AS col0" at position 0 and "Int64\(37\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + 25 col0, 93, + 37 AS col0 +---- +-25 +37 +93 query I rowsort label-9651 SELECT - 36 * COUNT ( * ) * - SUM ( + 35 ) @@ -50768,8 +51365,11 @@ SELECT + ( 33 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) / CASE \(\- \(\- min\(Int64\(46\)\)\)\) WHEN \(\- Int64\(55\)\) THEN NULL ELSE Int64\(58\) END \+ Int64\(92\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 67 / + CASE - - MIN ( ALL 46 ) WHEN - + 55 THEN NULL ELSE 58 END + 92 AS col0, + COUNT ( * ) AS col0 +---- +1 +93 query II rowsort label-9666 SELECT DISTINCT + 93 / - 87 + - + 23 + + + 4 * + 88, - 89 AS col0 @@ -50851,8 +51451,11 @@ SELECT 26 + + - 95 - + 81 + - ( - - ( - + 99 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -478 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col1" at position 0 and "Int64\(\-58\) \+ Int64\(12\) \* \(\- Int64\(35\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 68 AS col1, - 58 + 12 * - + 35 AS col1 +---- +-478 +68 query I rowsort SELECT DISTINCT - 19 * + + 25 @@ -50872,8 +51475,11 @@ SELECT COUNT ( * ) / + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -5988 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "Int64\(92\) \+ Int64\(\-19\) \+ Int64\(90\) \* \(\- Int64\(67\)\) \+ Int64\(\-31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 AS col2, + 92 + - 19 + + + 90 * - + 67 + - 31 AS col2 +---- +-5988 +41 query I rowsort label-9686 SELECT + 7 * + 87 + + COUNT ( ALL - + 22 ) @@ -51253,8 +51859,11 @@ SELECT ALL NULLIF ( - 51, - + 69 ) + + 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-98\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "nullif\(Int64\(\-8\), Int64\(\-57\)\) / Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) * - 98 * - COUNT ( * ) AS col2, NULLIF ( - 8, - 57 ) / - 46 AS col2 +---- +0 +NULL query I rowsort label-9758 SELECT DISTINCT 16 * - + 27 * COUNT ( * ) col1 @@ -51337,8 +51946,11 @@ SELECT + + 39 + 69 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 123648 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* Int64\(92\) \* coalesce\(Int64\(48\), \(\- CAST\(coalesce\(Int64\(\-98\), Int64\(32\)\) AS Int32\)\), Int64\(67\)\) AS col1" at position 0 and "Int64\(\-2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 28 * + 92 * + COALESCE ( 48, - CAST ( COALESCE ( - 98, + ( + + 32 ) ) AS INTEGER ), 67 ) AS col1, - 2 col1 +---- +-2 +123648 query I rowsort SELECT DISTINCT + + ( - 36 ) @@ -51385,8 +51997,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, + 11 AS col1 +---- +-1 +11 query II rowsort label-9783 SELECT ALL CAST ( NULL AS INTEGER ), - 94 * - + CASE - + CAST ( NULL AS INTEGER ) WHEN + + 74 * - COUNT ( * ) * 25 + + - COUNT ( * ) THEN - 50 ELSE NULL END * 46 + - CAST ( + CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col0 @@ -51528,8 +52143,11 @@ SELECT 87 AS col2, ( - 2 ) # 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\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - ( + - 32 ) AS col2, + 31 AS col2 +---- +-32 +31 query I rowsort label-9810 SELECT ALL - 16 * - + 99 * - - 3 * - - COUNT ( * ) AS col0 @@ -51714,8 +52332,11 @@ SELECT ALL - 26 + - ( - 21 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 25 AS col2, + 71 AS col2 +---- +-25 +71 query I rowsort SELECT + 13 * 17 * - + 53 * 49 + 17 + + + 84 @@ -51795,8 +52416,11 @@ SELECT MAX ( ALL + + 64 ) + 84 col1, 97 col0 # 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 "Int64\(48\) AS col2" at position 0 and "Int64\(\-32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 48 AS col2, - 32 AS col2 +---- +-32 +48 query I rowsort label-9860 SELECT DISTINCT 51 * 17 * 36 * + COUNT ( * ) @@ -51821,8 +52445,11 @@ SELECT 17 + NULLIF ( - - 64, + - 62 / 1 + - 88 + 8 + 96 ) * + 97 + + 1 * - 39 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "\(\- nullif\(Int64\(\-7\), Int64\(20\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 59 AS col0, - NULLIF ( - 7, 20 ) AS col0 +---- +59 +7 query II rowsort SELECT + 14, ( 67 ) AS col2 @@ -52287,8 +52914,11 @@ SELECT 57 * - + 74 - - 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "Int64\(86\) \+ Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 74 AS col2, + 86 + + + 14 AS col2 +---- +100 +74 query II rowsort label-9953 SELECT ALL - MAX ( - 79 ) AS col1, - 82 @@ -52372,8 +53002,11 @@ SELECT + 83 / + CAST ( - - 61 AS INTEGER ) + + 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(67\), \(\- nullif\(Int64\(48\), Int64\(\-11\)\)\) \+ 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 II valuesort SELECT ALL COALESCE ( 67, - + NULLIF ( + 48, + - 11 ) + - 73 ) col2, + 7 AS col2 +---- +67 +7 query I rowsort SELECT DISTINCT - 51 * - - 23 @@ -52435,8 +53068,11 @@ SELECT + 99 - + COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -3969 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "Int64\(\-63\) \* Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 64 AS col1, - 63 * + 63 AS col1 +---- +-3969 +64 query I rowsort label-9981 SELECT - MAX ( 40 ) diff --git a/data/sqlite/random/expr/slt_good_115.slt b/data/sqlite/random/expr/slt_good_115.slt index 133313c..00b04d2 100644 --- a/data/sqlite/random/expr/slt_good_115.slt +++ b/data/sqlite/random/expr/slt_good_115.slt @@ -224,8 +224,11 @@ SELECT DISTINCT + MAX ( ALL 88 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col0, 41 AS col0 +---- +1 +41 query I rowsort label-37 SELECT + COUNT ( * ) / - COUNT ( 34 ) @@ -306,8 +309,11 @@ 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\(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\. +query IR valuesort 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 +---- +3479 +NULL query I rowsort label-52 SELECT 11 - 26 + - COUNT ( * ) * + ( 19 ) @@ -1908,8 +1914,11 @@ 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 col0" at position 0 and "Int64\(29\) \* Int64\(36\) \* Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 42 col0, 29 * + ( 36 ) * 0 AS col0 +---- +-42 +0 query I rowsort label-359 SELECT - MAX ( ALL + COALESCE ( 36, + 88 * 45, - 16 + 40, + 12 ) ) * - 84 + 32 @@ -1980,8 +1989,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 78 col2, COUNT ( * ) * - 90 AS col2 +---- +-90 +78 query I rowsort label-372 SELECT - + 24 * 99 / 89 * - 2 - - 45 AS col2 @@ -2222,8 +2234,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "\(\- Int64\(96\)\) \+ Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 99 AS col0, - ( + + 96 ) + + 9 AS col0 +---- +-87 +99 query I rowsort SELECT NULLIF ( + 92, - + 1 - - 73 - + 35 ) AS col2 @@ -2413,8 +2428,11 @@ SELECT DISTINCT 14 + - 57 * + 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 99 col2, + 41 AS col2 +---- +41 +99 query I rowsort label-454 SELECT ALL - MIN ( DISTINCT + - 60 ) * 49 + - 81 @@ -2466,8 +2484,11 @@ SELECT + COUNT ( * ) AS col0, 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(0\) \+ \(\- Int64\(32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, - 0 + - + 32 col1 +---- +-32 +1 query II rowsort SELECT + 79, 13 AS col0 @@ -2579,8 +2600,11 @@ SELECT DISTINCT 44 * - 26 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1440 # Datafusion - Expected - 46550 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(44\) \* CAST\(Int64\(\-34\) AS Int32\) AS col2" at position 0 and "CAST\(Int64\(49\) AS Int32\) \* \(Int64\(53\) \* Int64\(18\) \+ Int64\(\-4\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 56 + - COUNT ( * ) * + + 44 * + CAST ( - 34 AS INTEGER ) AS col2, CAST ( 49 AS INTEGER ) * + ( 53 * 18 + ( - 4 ) ) AS col2 +---- +1440 +46550 query I rowsort label-486 SELECT DISTINCT COUNT ( * ) + 31 @@ -2596,8 +2620,11 @@ SELECT ALL 73 * + - COUNT ( * ) AS col1, 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -4402 -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\(71\) \* Int64\(\-62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( - 99 ) AS col2, 71 * - 62 col2 +---- +-4402 +1 query I rowsort label-489 SELECT - CASE - 17 WHEN - COUNT ( * ) THEN + 12 END AS col2 @@ -3207,8 +3234,11 @@ SELECT + 29 / 71 AS col1, 40 * - - 97 * + 24 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col2" at position 0 and "Int64\(\-58\) \- CAST\(Int64\(11\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 48 AS col2, - 58 - CAST ( ( ( 11 ) ) AS INTEGER ) AS col2 +---- +-69 +48 query I rowsort label-606 SELECT DISTINCT + 98 / - 62 @@ -3238,8 +3268,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 37 AS col0, - 84 + - - COUNT ( * ) AS col0 +---- +-83 +37 query I rowsort SELECT DISTINCT + NULLIF ( + + 28, + 30 ) @@ -3445,8 +3478,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -4472 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \* Int64\(86\) AS col2" at position 0 and "Int64\(\-11\) \- CAST\(NULL AS Int32\) \* Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 52 * + 86 AS col2, - 11 - CAST ( NULL AS INTEGER ) * + 39 AS col2 +---- +-4472 +NULL query I rowsort SELECT - 69 + - + 74 col2 @@ -3513,8 +3549,11 @@ SELECT + 68 + + 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1664 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* Int64\(\-52\) AS col0" at position 0 and "Int64\(\-55\) \+ Int64\(\-45\) \+ Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 * - 52 AS col0, - 55 + + - 45 + + 86 col0 +---- +-14 +-1664 query I rowsort SELECT ALL - + 17 * - 81 + - 84 + + 83 AS col2 @@ -3652,8 +3691,11 @@ SELECT - 83 / + 66 + + 13 * 70 / - - 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col0" at position 0 and "max\(\(\- Int64\(\-23\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 AS col0, + MAX ( - - 23 ) AS col0 +---- +21 +23 query I rowsort label-691 SELECT DISTINCT + 82 / + 14 AS col1 @@ -4969,8 +5011,11 @@ SELECT ALL - 83 + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 10 AS col0, 30 AS col0 +---- +-10 +30 query I rowsort SELECT ( 17 ) * 63 AS col1 @@ -5278,8 +5323,11 @@ SELECT ALL - 83 + - 46 + - 0 * - 51 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 1155 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col2" at position 0 and "Int64\(77\) \* Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 45 AS col2, 77 * + 15 AS col2 +---- +-45 +1155 query I rowsort label-1000 SELECT DISTINCT COALESCE ( 82, ( - COUNT ( * ) ) ) col0 @@ -5751,8 +5799,12 @@ SELECT + 85 - + - 45 + + - 36 # Datafusion - Expected - 76 # Datafusion - Expected - -5369 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* \(\- max\(DISTINCT Int64\(91\)\)\) AS col1" at position 1 and "CASE \(\- \(\- coalesce\(Int64\(18\), count\(Int64\(1\)\) AS count\(\*\)\)\)\) WHEN CASE Int64\(26\) WHEN \(\- count\(Int64\(32\)\)\) \+ Int64\(23\) \+ CAST\(\(\- Int64\(\-75\)\) AS Int32\) \* Int64\(50\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(NULL AS Int32\) \- Int64\(\-47\) END / count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-26\) END AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-5369 +76 +NULL query I rowsort SELECT + 31 + + 8 AS col1 @@ -5762,8 +5814,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) * + 51 AS col2, 15 AS col2 +---- +15 +51 query I rowsort label-1094 SELECT ALL - 3 / - - ( 95 ) + + 3 * 34 @@ -5906,8 +5961,11 @@ SELECT - NULLIF ( + 22, + - 57 * + + 47 + - + 47 * - - 38 + + 42 - - + SUM ( ALL # Datafusion - Datafusion expected results: # Datafusion - Expected - -7220 # Datafusion - Expected - -144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* Int64\(\-95\) AS col2" at position 0 and "Int64\(12\) \* Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 76 * - 95 AS col2, 12 * - 12 AS col2 +---- +-144 +-7220 query I rowsort SELECT - 56 * 87 AS col1 @@ -6450,8 +6508,11 @@ SELECT DISTINCT MIN ( ALL - 82 ) 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 "Int64\(84\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 84 col1, 84 AS col1 +---- +84 +84 query I rowsort SELECT + - 63 + + 89 @@ -6471,8 +6532,11 @@ SELECT ALL - COALESCE ( 96, - - CASE + 4 WHEN + 96 * 83 THEN NULL ELSE + ( + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13289 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \+ Int64\(\-77\) \+ \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \+ \(\- Int64\(\-57\)\) \+ Int64\(5\) \* Int64\(29\) \* \(\- coalesce\(Int64\(92\), \(\- Int64\(\-76\)\) \+ Int64\(\-98\) \+ Int64\(\-40\)\)\) \+ Int64\(22\) / Int64\(\-68\) \+ Int64\(72\) AS col1" at position 0 and "coalesce\(Int64\(\-47\), Int64\(54\) \* \(\- min\(DISTINCT Int64\(42\)\)\) \+ \(\- \(\- nullif\(Int64\(27\), Int64\(\-55\) \+ Int64\(6\) \* Int64\(70\) \+ Int64\(77\) / Int64\(63\) \+ \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(73\) AS Int32\)\)\)\)\)\) \+ Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-13289 +-31 query I rowsort label-1230 SELECT DISTINCT 21 * - + ( - 98 ) + + + 86 + + - 21 * + COUNT ( * ) @@ -6730,8 +6794,11 @@ SELECT 50 * - 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5312 # Datafusion - Expected - -260 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* Int64\(83\) AS col2" at position 0 and "Int64\(29\) \+ Int64\(87\) \+ Int64\(5\) \* Int64\(\-66\) \+ Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 64 * 83 AS col2, 29 + + 87 + + 5 * - 66 + - 46 AS col2 +---- +-260 +5312 query II rowsort label-1278 SELECT DISTINCT CAST ( - 91 AS INTEGER ) * + + 55 + + 61 + COUNT ( * ) + 37 + + + 51 * - 66 AS col1, - 2 AS col0 @@ -6835,8 +6902,11 @@ SELECT SUM ( - - 5 ) + - 0 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(64\)\), \(\- coalesce\(Int64\(39\), Int64\(9\) \+ Int64\(88\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( - + 64, - + COALESCE ( 39, 9 + + 88 ) ) AS col1, COUNT ( * ) + + COUNT ( * ) AS col1 +---- +-64 +2 query I rowsort SELECT ALL - 22 * 28 - + + 58 @@ -7640,8 +7710,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(7\) \* Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 15 + + 57 AS col1, COUNT ( * ) * + 7 * + 4 AS col1 +---- +28 +72 query I rowsort SELECT DISTINCT + 50 * + 96 col1 @@ -7735,8 +7808,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 65 + - 59 AS col0, 24 * - + 69 * - COUNT ( * ) AS col0 +---- +-124 +1656 query I rowsort label-1470 SELECT ALL - 9 / 45 @@ -8145,8 +8221,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) + 17 AS col0, 45 AS col0 +---- +16 +45 query I rowsort label-1545 SELECT ALL + + 18 + + 0 + 61 * - COUNT ( * ) @@ -8199,8 +8278,11 @@ SELECT 4 + + - COALESCE ( - 20, - + NULLIF ( - - 36, - 57 ) * - - 64 * - 76, - 2 # 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\(26\) \- Int64\(\-95\) \+ 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 II valuesort SELECT ALL 26 - + - 95 + - 28 AS col0, 11 AS col0 +---- +11 +93 query I rowsort label-1555 SELECT COUNT ( + 88 ) * - + ( 16 ) + + COUNT ( * ) / - 33 @@ -8486,8 +8568,11 @@ SELECT ALL 78 * 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, ( 97 ) col0 +---- +1 +97 query I rowsort label-1609 SELECT + 9 * + - SUM ( ALL NULLIF ( 4, 3 ) ) + + 30 + 26 @@ -9225,8 +9310,11 @@ SELECT DISTINCT + 86 * 44 / - + 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col2" at position 0 and "\(\- max\(DISTINCT Int64\(72\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 75 col2, - MAX ( DISTINCT + 72 ) AS col2 +---- +-72 +-75 query I rowsort label-1750 SELECT ALL + 61 + + - 90 * - COALESCE ( - 93, - 21 ) + + - CASE - 0 WHEN - 43 * - 23 THEN COALESCE ( ( + - COUNT ( * ) ), + COALESCE ( + CASE COUNT ( - 11 ) WHEN 84 + - 79 * + COUNT ( * ) THEN NULL WHEN + 83 THEN 30 + - 75 * + - ( 39 ) + 4 * + - SUM ( DISTINCT + - 22 ) - NULLIF ( + 70, - - 22 * 73 ) ELSE NULL END, COUNT ( * ), + NULLIF ( + 1, - - 94 + + - COUNT ( * ) ) ) ) END * - + COUNT ( ALL + 89 ) * COUNT ( + 83 ) AS col0 @@ -9412,8 +9500,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 44 + + 89 AS col2, + 34 + - ( - ( - + COUNT ( * ) ) ) AS col2 +---- +133 +33 query I rowsort SELECT ALL - 80 * 17 @@ -9494,8 +9585,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 64 AS col1, 15 * 88 / + 18 + - + COUNT ( * ) * + 49 AS col1 +---- +24 +64 query I rowsort label-1801 SELECT DISTINCT MAX ( DISTINCT CAST ( + ( 77 ) AS INTEGER ) ) @@ -9574,8 +9668,12 @@ SELECT + COALESCE ( + 1, SUM ( DISTINCT - ( + 84 ) ) * - COALESCE ( - 90, 78 * 4 # Datafusion - Expected - 47 # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) / min\(Int64\(\-27\)\) AS col1" at position 1 and "\(\- \(\- count\(Int64\(\-14\)\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + + 47, 0 / + MIN ( - 27 ) col1, - - COUNT ( - 14 ) AS col1 +---- +0 +1 +47 query I rowsort label-1816 SELECT + SUM ( + CASE - + 2 WHEN + 71 THEN 67 ELSE - + 0 * - 52 END ) @@ -9679,8 +9777,11 @@ SELECT + + 69 * - 74 + - 62 # 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 Int64\(\-16\) WHEN \(\- nullif\(\(\- Int64\(51\)\), Int64\(60\)\)\) THEN NULL WHEN Int64\(13\) \+ Int64\(90\) THEN Int64\(96\) WHEN \(\- Int64\(58\)\) THEN Int64\(80\) END AS col1" at position 0 and "Int64\(\-45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CASE - 16 WHEN + - NULLIF ( - + 51, + 60 ) THEN NULL WHEN + 13 + + 90 THEN 96 WHEN - + 58 THEN 80 END AS col1, - 45 AS col1 +---- +-45 +NULL query I rowsort SELECT - 12 * + ( + 13 ) AS col0 @@ -10570,8 +10671,11 @@ SELECT DISTINCT 90 * - + 79 - - ( - SUM ( ALL + + 95 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -2058 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "Int64\(49\) \* Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 17 AS col0, + 49 * - 42 AS col0 +---- +-2058 +17 query I rowsort SELECT ALL 19 * - - 75 @@ -11308,8 +11412,12 @@ 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\(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\. +query III valuesort SELECT + COUNT ( * ) + - 88 - - - 76 * 72 AS col0, 61 AS col0, - 39 col0 +---- +-39 +-5559 +61 query I rowsort label-2151 SELECT - COUNT ( ALL - 81 ) AS col0 @@ -11730,8 +11838,11 @@ SELECT - 39, 79 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "CASE Int64\(23\) WHEN \(\- Int64\(\-19\)\) \* Int64\(\-16\) \+ CAST\(Int64\(\-59\) AS Int32\) THEN \(\- Int64\(\-31\)\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-89\) \- Int64\(73\) \- Int64\(41\) WHEN Int64\(79\) \* Int64\(42\) \+ Int64\(24\) THEN NULL ELSE Int64\(\-12\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-12 +41 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -11918,8 +12029,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * 82 col0, 69 + 11 + + SUM ( ALL 56 ) + - 69 AS col0 +---- +67 +82 query I rowsort label-2264 SELECT ALL CASE + + SUM ( 85 ) WHEN - COUNT ( * ) THEN + + 73 * - 61 WHEN MIN ( ALL + 96 ) THEN NULL ELSE - ( + 74 ) END * + NULLIF ( - 81, 72 * SUM ( DISTINCT 62 ) ) - - 71 AS col1 @@ -12000,8 +12114,11 @@ SELECT ALL - + 39 + + 28 - MAX ( DISTINCT - 67 ) - - NULLIF ( 43, - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(9\)\) \+ Int64\(\-12\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 9 + - 12 AS col1, - CAST ( NULL AS INTEGER ) col1 +---- +-21 +NULL query I rowsort label-2279 SELECT ALL - 4 + + COALESCE ( - 76, - 33 * - CASE - 63 WHEN + 44 THEN 0 WHEN 58 - - 67 * + 30 * 94 THEN NULL ELSE MIN ( + 18 ) * - 44 END - - 96 + 13, 68 ) + 50 @@ -12358,8 +12475,11 @@ SELECT ALL - ( - 70 ) AS col2, + 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2349 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(27\) AS Int32\) \* coalesce\(Int64\(\-87\), Int64\(67\) \* Int64\(28\) \* Int64\(\-80\) \+ count\(Int64\(1\)\) AS count\(\*\), Int64\(6\)\) AS col1" at position 0 and "max\(Int64\(14\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( 27 AS INTEGER ) * + COALESCE ( + - 87, + + 67 * + 28 * - 80 + COUNT ( * ), + + 6 ) AS col1, MAX ( ALL 14 ) AS col1 +---- +-2349 +14 query I rowsort SELECT 19 + - + 56 col1 @@ -12597,8 +12717,11 @@ SELECT + MAX ( ALL - - 50 ) AS col2, + 36 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 5312 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-64\) \* Int64\(\-83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col2, - 64 * - 83 AS col2 +---- +1 +5312 query II rowsort SELECT + 6 AS col0, 46 AS col1 @@ -12760,8 +12883,11 @@ SELECT - CASE - CAST ( + + 11 AS INTEGER ) WHEN + - 15 THEN - 62 + + CAST ( 47 A # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 2 AS col1, 96 AS col1 +---- +2 +96 query II rowsort SELECT - 91 + + 37 AS col2, 81 * + 1 - 87 @@ -13181,8 +13307,12 @@ SELECT COUNT ( * ) / 58 # Datafusion - Expected - -33 # Datafusion - Expected - 9 # Datafusion - Expected - -3716 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(70\)\)\) \+ Int64\(\-57\) \- Int64\(\-94\) AS col2" at position 0 and "Int64\(60\) \* Int64\(\-62\) \+ Int64\(4\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - SUM ( DISTINCT 70 ) + + - 57 - - 94 col2, 9, + 60 * - 62 + + 4 col2 +---- +-33 +-3716 +9 query I rowsort SELECT DISTINCT + - 97 + + 95 AS col0 @@ -13445,8 +13575,11 @@ SELECT ALL 14 + 90 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 498 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-54\)\) AS col2" at position 0 and "Int64\(6\) \* Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 54 col2, 6 * + 83 AS col2 +---- +498 +54 query I rowsort SELECT + 66 + 29 @@ -13958,8 +14091,11 @@ SELECT - + 21 - + 47 * - - 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(74\) AS Int32\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( + 74 AS INTEGER ) AS col2, + 78 AS col2 +---- +74 +78 query I rowsort label-2651 SELECT ALL COALESCE ( - + COUNT ( * ), + - CAST ( - CAST ( - 2 AS INTEGER ) AS INTEGER ), + 87 * - 76 ) @@ -14151,8 +14287,11 @@ SELECT ALL + 90 + + SUM ( ALL - - 19 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - -4332 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \+ Int64\(\-53\) \- Int64\(10\) 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 II valuesort SELECT ALL 10 + - 53 - 10 AS col0, + 57 * - 76 AS col0 +---- +-4332 +-53 query I rowsort label-2689 SELECT ALL 49 + MIN ( DISTINCT 55 ) AS col0 @@ -14213,8 +14352,11 @@ SELECT ALL - CAST ( - 49 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - -117 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "coalesce\(Int64\(\-45\), \(\- Int64\(\-11\)\) \* Int64\(60\), Int64\(0\)\) \+ Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 42 AS col2, + COALESCE ( - 45, ( - - 11 ) * + + 60, + 0 ) + - 72 AS col2 +---- +-117 +42 query I rowsort label-2701 SELECT 14 + 10 * COUNT ( * ) @@ -14417,8 +14559,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1116 # Datafusion - Expected - 153 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* Int64\(62\) AS col1" at position 0 and "Int64\(65\) \+ Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 18 * 62 AS col1, 65 + 88 col1 +---- +1116 +153 query I rowsort SELECT 16 * - 7 + - 93 + - - 0 AS col2 @@ -15124,8 +15269,11 @@ SELECT DISTINCT - - 3 * 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 col0" at position 0 and "Int64\(87\) / Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 23 AS col0, 87 / 44 AS col0 +---- +1 +23 query I rowsort label-2875 SELECT - 26 * - + COUNT ( * ) @@ -16256,8 +16404,11 @@ SELECT DISTINCT NULLIF ( COALESCE ( 5, - 76 ), + 89 ) * + MAX ( DISTINCT - + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "Int64\(\-26\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 13 col2, - 26 - + COUNT ( * ) AS col2 +---- +-27 +13 query II rowsort SELECT 85, + 63 AS col2 @@ -16278,8 +16429,11 @@ SELECT ALL 90 * 39 + + - 92 + + + 47 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1372 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* Int64\(83\) \+ Int64\(47\) \* Int64\(\-75\) AS col2" at position 0 and "Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 59 * + 83 + + 47 * - 75 AS col2, - 79 AS col2 +---- +-79 +1372 query I rowsort SELECT DISTINCT + 59 * 8 @@ -16372,8 +16526,11 @@ 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\(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\. +query II valuesort SELECT - + 27 * + - CASE + 13 WHEN 1 THEN - ( - + 98 ) * + - 83 + ( 99 ) WHEN + 9 THEN + ( + + COUNT ( * ) ) * 61 - + 2 END AS col2, 98 AS col2 +---- +98 +NULL query I rowsort SELECT DISTINCT + + 90 * - - ( + 0 ) @@ -16751,8 +16908,12 @@ SELECT CAST ( + 47 AS INTEGER ) - + 73 AS col0 # Datafusion - Expected - -88 # Datafusion - Expected - -495367 # Datafusion - Expected - 4552 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col1" at position 0 and "Int64\(24\) \+ Int64\(80\) \+ Int64\(33\) \+ Int64\(\-74\) \* Int64\(72\) \* Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 88 AS col1, 24 + + 80 + + + 33 + - 74 * 72 * 93 AS col1, - 14 * - - 60 - - + 52 + + 89 * + 60 col0 +---- +-495367 +-88 +4552 query II rowsort SELECT - 41, - 56 AS col1 @@ -17187,8 +17348,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + NULLIF ( + 7, - - COUNT ( * ) ) * 68 * 86 AS col0, + 48 * + + COUNT ( * ) * 99 AS col0 +---- +40936 +4752 query I rowsort SELECT ALL + 88 * - 44 AS col0 @@ -17416,8 +17580,12 @@ SELECT - 35 + - - 98 # Datafusion - Expected - -45 # Datafusion - Expected - 8835 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col2" at position 0 and "Int64\(93\) \* Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 45 AS col2, + 93 * + 95 AS col2, 21 +---- +-45 +21 +8835 query I rowsort label-3310 SELECT COUNT ( * ) + - + 61 + - 64 col1 @@ -18097,8 +18265,11 @@ SELECT ALL 52 / 97 / + COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - -3654 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-92\)\) AS col0" at position 0 and "Int64\(\-42\) \* Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( - 92 ) col0, ( - 42 ) * + + 87 col0 +---- +-3654 +-92 query I rowsort label-3441 SELECT + MAX ( - + 62 ) AS col0 @@ -18810,8 +18981,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col2" at position 0 and "Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 89 AS col2, - 4 AS col2 +---- +-4 +-89 query I rowsort label-3582 SELECT ALL + 97 * COALESCE ( - 79, + 60, 64 * + SUM ( 32 ) ) AS col0 @@ -18856,8 +19030,11 @@ SELECT DISTINCT + + 5 * + 5 * + 29 + 55 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 85 AS col0, + 56 col0 +---- +-85 +56 query I rowsort label-3591 SELECT - COUNT ( * ) / - 63 @@ -19247,8 +19424,11 @@ SELECT ALL 70 + + 99 - COUNT ( * ), + 14 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(99\), Int64\(2\)\) AS col0" at position 0 and "Int64\(17\) \+ nullif\(Int64\(\-19\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(81\)\) \* CASE Int64\(34\) / Int64\(84\) WHEN CAST\(Int64\(85\) AS Int32\) THEN coalesce\(Int64\(43\), CAST\(NULL AS Int32\) \- Int64\(92\) / Int64\(94\)\) \- Int64\(87\) \* \(CASE Int64\(2\) WHEN CASE Int64\(17\) WHEN Int64\(\-33\) THEN NULL WHEN Int64\(57\) \- Int64\(\-72\) THEN NULL WHEN Int64\(87\) THEN NULL ELSE Int64\(\-6\) END \+ Int64\(97\) THEN Int64\(\-16\) ELSE Int64\(56\) \+ Int64\(97\) END \+ Int64\(77\)\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +99 +NULL query II rowsort label-3668 SELECT 0 AS col1, - 44 / 88 AS col0 @@ -19484,8 +19664,11 @@ SELECT ALL COALESCE ( + 66, - COUNT ( * ), - 64 + - SUM ( + 38 ) * 84 ) * - 86 - # Datafusion - Datafusion expected results: # Datafusion - Expected - 414 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* Int64\(23\) AS col1" at position 0 and "\(\- Int64\(45\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 18 * 23 col1, ( - ( 45 ) ) AS col1 +---- +-45 +414 query II rowsort SELECT + 24 + + + 71 + + 55 AS col1, 96 @@ -19762,8 +19945,11 @@ 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\(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\. +query IR valuesort 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 +---- +1 +NULL query I rowsort SELECT ALL + 4 * + 13 @@ -19837,14 +20023,21 @@ 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\(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\. +query III valuesort SELECT + - COALESCE ( - 4, + 50 + + 38 + - COUNT ( * ) ) col0, ( - - 85 ), 88 AS col0 +---- +4 +85 +88 # Datafusion - Datafusion expected results: # Datafusion - Expected - -131 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \+ Int64\(\-81\) AS col2" at position 0 and "max\(Int64\(47\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 50 + - 81 AS col2, MAX ( + + 47 ) AS col2 +---- +-131 +47 query I rowsort label-3781 SELECT + ( + ( MIN ( - 97 ) ) ) AS col0 @@ -19986,8 +20179,11 @@ SELECT COUNT ( DISTINCT ( - 31 ) ) AS col1, COUNT ( * ) AS col2 # 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 "Int64\(63\) / nullif\(Int64\(72\), count\(Int64\(72\)\) \* Int64\(57\) \- Int64\(27\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - ( + 12 ) ) col1, + ( 63 ) / + NULLIF ( 72, COUNT ( 72 ) * 57 - 27 ) AS col1 +---- +0 +12 query I rowsort label-3808 SELECT DISTINCT MAX ( 33 ) + + 35 @@ -20083,8 +20279,11 @@ SELECT - 7 - + - 51 * - 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 93 AS col1, + 79 AS col1 +---- +-93 +79 query II rowsort label-3827 SELECT DISTINCT 46, 43 * - 67 * - CASE + + SUM ( DISTINCT + COALESCE ( - 49, + 79 * - 94 ) ) WHEN + 19 THEN + 70 WHEN - 48 THEN NULL END * - 25 + 78 AS col1 @@ -20177,8 +20376,11 @@ SELECT - 75 - + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 69321 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "Int64\(\-20\) \* min\(Int64\(4\)\) \- Int64\(39\) \+ Int64\(\-64\) \* Int64\(35\) \* Int64\(\-31\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 63 AS col0, - 20 * + MIN ( ALL + 4 ) - 39 + - 64 * 35 * - 31 * ( COUNT ( * ) ) AS col0 +---- +63 +69321 query I rowsort label-3845 SELECT ALL 19 * COUNT ( * ) + - - 61 @@ -20265,8 +20467,11 @@ SELECT ALL + - ( - - 89 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2574 # Datafusion - Expected - 32706 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \* Int64\(26\) AS col0" at position 0 and "Int64\(\-69\) \* \(\- Int64\(6\)\) \* count\(DISTINCT Int64\(70\)\) \* Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 99 * + 26 AS col0, - 69 * - + 6 * + COUNT ( DISTINCT + 70 ) * + + 79 AS col0 +---- +-2574 +32706 query I rowsort SELECT + - COALESCE ( + 47, - + 62 ) * 98 + 93 + COALESCE ( + ( + 98 ), - + ( + 53 ) ) @@ -20514,8 +20719,11 @@ SELECT 93 + - CAST ( + 68 AS INTEGER ) * + 64 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -101 # Datafusion - Expected - -862 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-76\), Int64\(\-39\)\) \- Int64\(25\) AS col1" at position 0 and "coalesce\(nullif\(Int64\(19\), \(\- Int64\(60\)\)\), \(\- CAST\(Int64\(57\) AS Int32\)\)\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* Int64\(\-47\) \+ Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COALESCE ( - 76, - 39 ) - 25 AS col1, COALESCE ( + NULLIF ( 19, - + 60 ), - CAST ( 57 AS INTEGER ) ) * + CAST ( + COUNT ( * ) AS INTEGER ) * - 47 + + 31 AS col1 +---- +-101 +-862 query II rowsort SELECT DISTINCT 73, - 67 + + 11 AS col2 @@ -20643,8 +20851,11 @@ SELECT ALL COALESCE ( 55, - - 82 ) + + COUNT ( * ) * + + CASE - - 26 WHEN + CAST # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(10\)\)\) AS col1" at position 0 and "Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MAX ( 10 ) AS col1, - 30 AS col1 +---- +-10 +-30 query II rowsort label-3932 SELECT COUNT ( * ) + CAST ( - ( + - ( + 43 ) ) AS INTEGER ) AS col1, + 5 @@ -20754,8 +20965,11 @@ SELECT DISTINCT + - 13 * - 47 * + + 1 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25800 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-75\)\)\) \* Int64\(4\) \* Int64\(86\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - ( - 75 ) * 4 * + 86 AS col1, - CAST ( NULL AS INTEGER ) col1 +---- +-25800 +NULL query I rowsort label-3953 SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) * + 63 @@ -20811,8 +21025,11 @@ SELECT - 82 * - 4 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 89 * + COUNT ( * ) col0, COUNT ( * ) AS col0 +---- +-89 +1 query I rowsort SELECT COALESCE ( - - ( + 15 ), - - ( + 87 ) + 95 * + 87 ) @@ -20904,8 +21121,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 125 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ \(\- \(\- Int64\(28\)\)\) AS col2" at position 0 and "Int64\(\-91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 97 + - - ( 28 ) AS col2, - 91 AS col2 +---- +-91 +125 query I rowsort label-3981 SELECT DISTINCT COUNT ( * ) + CAST ( - SUM ( - + 49 ) AS INTEGER ) * MAX ( ( ( + 45 ) ) ) / + - MIN ( - 67 ) @@ -20941,8 +21161,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(25\)\) AS col2" at position 0 and "Int64\(34\) / CAST\(max\(Int64\(57\)\) AS Int32\) \* Int64\(\-77\) \* Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 25 AS col2, 34 / ( CAST ( + MAX ( 57 ) AS INTEGER ) ) * - 77 * + - 0 AS col2 +---- +-25 +0 query II rowsort label-3988 SELECT ALL + MIN ( ALL 73 ) + 38 AS col1, + 49 AS col2 @@ -21006,8 +21229,11 @@ SELECT - 69 * + - 96 + + 11 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 198 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) 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 II valuesort SELECT ALL + ( + + 98 ) AS col0, ( 9 ) * 22 col0 +---- +198 +98 query I rowsort label-4000 SELECT - COUNT ( - 73 ) * - 45 AS col0 @@ -21546,8 +21772,11 @@ NULL # 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 "Int64\(17\) AS col1" at position 0 and "min\(Int64\(72\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 17 ) AS col1, MIN ( 72 ) AS col1 +---- +17 +72 query I rowsort label-4103 SELECT + ( - MAX ( DISTINCT 56 ) ) @@ -21834,8 +22063,11 @@ SELECT ALL NULLIF ( 78, + 12 + - + 26 ) + + 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 99 AS col0, 51 AS col0 +---- +51 +99 query I rowsort SELECT DISTINCT 34 - - ( - 15 ) AS col2 @@ -21855,8 +22087,11 @@ SELECT ( + ( - 11 ) ) * - + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52581312 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* Int64\(\-98\) \* Int64\(\-92\) \* \(\- max\(\(\- Int64\(72\)\)\)\) AS col0" at position 0 and "Int64\(\-89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 * - 98 * - 92 * + - ( MAX ( - ( + + 72 ) ) ) AS col0, - 89 AS col0 +---- +-89 +52581312 query I rowsort label-4161 SELECT ALL + 99 / - - 90 AS col2 @@ -21899,8 +22134,11 @@ SELECT 80 + - + 9 col1 # 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 "Int64\(\-23\) AS col2" at position 0 and "Int64\(\-70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 23 AS col2, - 70 AS col2 +---- +-23 +-70 query I rowsort SELECT 10 * 43 col1 @@ -21920,8 +22158,11 @@ SELECT ( - 38 ) - COUNT ( DISTINCT + + 20 ) + 25 + 21 - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, 31 col0 +---- +1 +31 query II rowsort SELECT + 36, + 29 col0 @@ -22227,8 +22468,11 @@ SELECT ALL 64 * + - 59 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -1026 -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\) \* Int64\(\-18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 AS col2, 57 * - 18 AS col2 +---- +-1026 +31 query I rowsort label-4231 SELECT ALL - + COUNT ( * ) / - 61 + - 28 AS col2 @@ -22502,8 +22746,11 @@ SELECT ALL + MAX ( ALL 29 ) * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 220 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(52\) WHEN Int64\(55\) THEN coalesce\(Int64\(71\), Int64\(68\)\) \- \(\- Int64\(73\)\) ELSE NULL END \* CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(4\) \* Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CASE 52 WHEN + 55 THEN + COALESCE ( 71, 68 ) - + ( + - ( + + 73 ) ) ELSE NULL END * CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) * + 4 * 55 AS col2 +---- +220 +NULL query I rowsort SELECT DISTINCT + 27 * 23 @@ -22574,8 +22821,11 @@ SELECT ALL - 66 - + - 76 # 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 col1" at position 0 and "Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 33 AS col1, 77 AS col1 +---- +33 +77 query I rowsort label-4295 SELECT - + MAX ( + 10 ) - 44 @@ -23170,8 +23420,11 @@ SELECT DISTINCT - 89 + - CASE - AVG ( DISTINCT 60 ) WHEN + 25 THEN NULL WHEN - 9 # 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\(\-5\) \* Int64\(0\) / Int64\(28\) AS col1" at position 0 and "Int64\(68\) / Int64\(70\) \* Int64\(33\) \* \(\- Int64\(\-32\)\) \* Int64\(36\) / Int64\(96\) \* \(\- Int64\(\-70\)\) \* \(\- Int64\(\-52\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 5 * + 0 / + 28 AS col1, 68 / + 70 * 33 * - - 32 * 36 / 96 * - - 70 * - - 52 AS col1 +---- +0 +0 query I rowsort label-4407 SELECT - NULLIF ( + 15, - + 77 * + ( - + 85 ) / + + 52 + MIN ( DISTINCT - + COALESCE ( + 86, - 38 + + + 55 * + 9 ) ) ) @@ -23432,8 +23685,11 @@ SELECT + ( 81 ) - + 94 AS col0, 23 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 54 AS col2, + 73 AS col2 +---- +-54 +73 query I rowsort label-4457 SELECT ALL ( COUNT ( * ) ) * - 31 + - 84 + 76 AS col0 @@ -23523,8 +23779,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 / - - COALESCE ( 72, 18 ) AS col2, - ( - COUNT ( * ) ) col2 +---- +0 +1 query I rowsort label-4475 SELECT ALL - MAX ( DISTINCT - 26 ) * - 54 * - 96 @@ -23570,8 +23829,11 @@ SELECT ALL + 1 * - 36 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 102 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ Int64\(5\) AS col0" at position 0 and "Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 97 + + 5 AS col0, - 68 AS col0 +---- +-68 +102 query I rowsort SELECT 65 * 70 + - 53 AS col1 @@ -23801,8 +24063,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "\(\- sum\(Int64\(\-53\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 33 AS col1, - SUM ( - 53 ) col1 +---- +33 +53 query I rowsort SELECT ALL 0 * + - 67 * - 31 @@ -24006,8 +24271,11 @@ SELECT ALL COUNT ( * ) + - - 37 + - 60 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -120337 # Datafusion - Expected - 2592 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) \- \(\- Int64\(\-65\)\) \* Int64\(37\) \* Int64\(50\) AS col0" at position 0 and "Int64\(36\) \* Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 87 - - - 65 * 37 * + 50 col0, + 36 * + + 72 AS col0 +---- +-120337 +2592 query II rowsort label-4567 SELECT ALL + COALESCE ( 76, + MAX ( - + NULLIF ( - 27, 52 ) ) + + 48 + + - 22 / - + 19 * 60 ) * + - 79 - + + 27 AS col0, 39 @@ -24039,8 +24307,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1071 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(51\) AS col2" at position 0 and "Int64\(91\) / count\(Int64\(10\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 21 * 51 AS col2, 91 / + COUNT ( 10 ) + COUNT ( * ) AS col2 +---- +1071 +92 query I rowsort SELECT + 44 * - 4 @@ -24050,8 +24321,11 @@ SELECT + 44 * - 4 # 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 "Int64\(\-91\) / Int64\(23\) AS col2" at position 0 and "Int64\(\-44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 91 / 23 col2, - 44 AS col2 +---- +-3 +-44 query I rowsort SELECT + ( - - 52 ) AS col0 @@ -24411,8 +24685,11 @@ SELECT + + 28 * - + COUNT ( * ) * + 54 * + + 36 + 15 + - 80 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\)" at position 0 and "CAST\(NULL AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) +---- +NULL +NULL query II rowsort label-4645 SELECT ALL + 98, 81 * + COUNT ( * ) + + 41 - - + 92 + - - 95 col0 @@ -24499,8 +24776,11 @@ SELECT + 27 * - COUNT ( * ) * COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 108 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ Int64\(10\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 98 + 10 AS col1, + ( + 42 ) AS col1 +---- +108 +42 query I rowsort SELECT DISTINCT 62 * - - 35 @@ -24552,8 +24832,12 @@ SELECT ALL + NULLIF ( + 92, + 11 + - 75 - - 60 + + 63 ) AS col2 # Datafusion - Expected - -51 # Datafusion - Expected - -456 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \* Int64\(16\) \+ Int64\(\-88\) AS col1" at position 1 and "\(\- Int64\(59\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 16 + - 35, - 23 * + 16 + - 88 AS col1, - + 59 AS col1 +---- +-456 +-51 +-59 query I rowsort label-4672 SELECT ALL + - 25 + - - 11 + + 98 + + 75 + + 49 + + 73 * + 78 * + COUNT ( * ) + + CAST ( NULL AS INTEGER ) col1 @@ -25204,8 +25488,11 @@ SELECT + - 37 + - 6 * - CAST ( + 4 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 3492 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "Int64\(97\) \* Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 56 AS col2, 97 * + 36 AS col2 +---- +3492 +56 query I rowsort label-4797 SELECT - + 62 * - 38 + + + COUNT ( * ) * + 5 AS col0 @@ -25224,8 +25511,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(0\)\) AS col1" at position 0 and "\(\- \(\- Int64\(39\)\)\) \* \(\- count\(DISTINCT Int64\(84\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 0 AS col1, - ( - + 39 ) * - COUNT ( DISTINCT 84 ) * COUNT ( * ) AS col1 +---- +-39 +0 query I rowsort SELECT - 82 + + - 22 col0 @@ -25347,8 +25637,11 @@ SELECT - MIN ( ALL - - 18 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(64\) \- Int64\(45\) / Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 64 * + COUNT ( * ) AS col0, 64 - 45 / + 65 AS col0 +---- +64 +64 query II rowsort label-4824 SELECT DISTINCT - COUNT ( * ) * 60 AS col0, + ( ( - 48 ) ) + + COUNT ( * ) * ( - 73 ) AS col2 @@ -26125,8 +26418,11 @@ SELECT ALL + SUM ( - + 87 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \+ Int64\(18\) AS col1" at position 0 and "Int64\(21\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 + + 18 AS col1, 21 * COUNT ( * ) AS col1 +---- +21 +24 query I rowsort SELECT DISTINCT - 79 - - - 88 * - - 29 * + COALESCE ( 65, + CASE + 11 WHEN - 38 THEN NULL ELSE 61 * + 88 + - - 42 * + 26 * - 90 * 3 END ) * - 47 + - 75 AS col2 @@ -26438,8 +26734,11 @@ SELECT ALL + 13 * - COUNT ( * ) AS col2, ( - 19 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 104 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col1" at position 0 and "Int64\(26\) \+ Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 47 ) AS col1, + 26 + 78 AS col1 +---- +104 +47 query I rowsort SELECT + 10 + + 51 @@ -26604,8 +26903,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 24 AS col0, - COUNT ( * ) col0 +---- +-1 +24 query I rowsort label-5064 SELECT ALL - CASE + - 66 WHEN - 95 * + MAX ( 81 ) THEN NULL WHEN - - COUNT ( * ) THEN CAST ( NULL AS INTEGER ) * + 2 ELSE NULL END + + 58 @@ -27703,8 +28005,11 @@ 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\(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\. +query II valuesort SELECT ALL 15 * + - COUNT ( * ) * - 84 * + 17 AS col1, - 56 - + - CASE - 80 WHEN + 48 THEN NULL ELSE - 74 END + 50 AS col1 +---- +-80 +21420 query I rowsort label-5276 SELECT + 21 / - 68 @@ -27799,8 +28104,11 @@ 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 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 IR valuesort SELECT - 95 AS col1, CAST ( NULL AS FLOAT8 ) AS col1 +---- +-95 +NULL query I rowsort SELECT ALL - ( - 64 ) * 36 AS col2 @@ -27939,8 +28247,11 @@ SELECT ALL 26 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \- Int64\(15\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- CAST\(Int64\(45\) AS Float64\)\) \* Int64\(87\) \* \(\- CASE Int64\(61\) WHEN Int64\(55\) \+ Int64\(42\) THEN NULL WHEN min\(DISTINCT Int64\(\-74\)\) THEN Int64\(\-68\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL + 71 - 15 AS col1, CAST ( NULL AS INTEGER ) + - CAST ( 45 AS FLOAT8 ) * + 87 * - CASE 61 WHEN 55 + 42 THEN NULL WHEN MIN ( DISTINCT - 74 ) THEN - 68 ELSE NULL END AS col1 +---- +56 +NULL query I rowsort label-5322 SELECT + 88 - + CASE + COALESCE ( - ( + - 19 ), - 6 ) WHEN - - 26 + 54 THEN NULL WHEN 13 + 88 THEN + 18 ELSE 67 * CASE WHEN COUNT ( * ) * 77 IN ( + CAST ( NULL AS FLOAT8 ) * 38 ) THEN + 27 + 26 * - COUNT ( * ) END END col2 @@ -28637,8 +28948,11 @@ 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\(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\. +query II valuesort SELECT ALL 35 - - - 86 + + - COUNT ( * ) * + 0 AS col2, 22 col2 +---- +-51 +22 query II rowsort SELECT ALL - 94 AS col1, 70 AS col2 @@ -28787,8 +29101,11 @@ SELECT ALL - 56 * - 44 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \+ Int64\(\-63\) AS col1" at position 0 and "Int64\(71\) \* \(\- sum\(Int64\(37\)\)\) \+ Int64\(95\) \+ \(\- avg\(Int64\(68\)\)\) \+ min\(DISTINCT CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + 89 + - 63 AS col1, ( + 71 ) * + - SUM ( 37 ) + + 95 + - AVG ( ALL + 68 ) + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 +---- +26 +NULL query I rowsort SELECT - 93 * + 58 AS col0 @@ -29340,8 +29657,11 @@ SELECT ALL 36 AS col2, + 16 + + - 83 * + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - -2618 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "nullif\(Int64\(77\), \(\- Int64\(51\)\) \+ Int64\(49\)\) \* Int64\(\-34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 87 AS col1, + NULLIF ( + + ( + 77 ), - + 51 + 49 ) * + - 34 AS col1 +---- +-2618 +87 query II rowsort label-5589 SELECT ( - ( - + COUNT ( DISTINCT - 88 ) ) ) + + + 29 * 73 AS col0, - 44 AS col1 @@ -29609,8 +29929,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(3\) \* Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 49 AS col0, COUNT ( * ) * + 3 * 86 AS col0 +---- +258 +49 query I rowsort SELECT - 56 * - 31 @@ -29650,8 +29973,11 @@ 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\(1\)\) AS count\(\*\) \- \(\- Int64\(87\)\) \+ Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 43 AS col2, ( - - 68 ) * ( + 26 ) * 95 / + + COUNT ( * ) - - + 87 + 52 AS col2 +---- +168099 +43 query I rowsort label-5647 SELECT DISTINCT - 97 + + - CAST ( NULL AS INTEGER ) @@ -30105,8 +30431,11 @@ SELECT - CASE + 86 WHEN - - 52 / 4 THEN NULL ELSE - 74 END # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(31\)\)\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - COUNT ( ALL + + 31 ) ) AS col2, + ( 45 ) col2 +---- +-1 +45 query I rowsort SELECT - + 81 * + + 52 @@ -30218,8 +30547,11 @@ SELECT - 23, + 82 * ( - + 23 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) AS col1" at position 0 and "CAST\(NULL AS Float64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - 6 col1, + CAST ( NULL AS FLOAT8 ) col1 +---- +-6 +NULL query I rowsort SELECT ALL ( + + 96 ) @@ -30270,8 +30602,11 @@ SELECT ALL - 14 + + COALESCE ( - CAST ( - 19 AS INTEGER ), 82 * + 86 + SUM ( ALL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 29 + + + CAST ( NULL AS INTEGER ) AS col2, + 9 AS col2 +---- +9 +NULL query I rowsort SELECT ALL - 42 + - 85 + + 25 + - 98 AS col0 @@ -30328,8 +30663,11 @@ SELECT ALL - 79 - + + 17 + + - 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-90\)\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - 90 ) AS col0, + 2 AS col0 +---- +2 +90 query I rowsort SELECT ALL 96 * + 86 @@ -30403,8 +30741,11 @@ SELECT + COUNT ( * ) - 16 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 87 + + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) + 43 AS col0 +---- +88 +NULL query I rowsort label-5791 SELECT COALESCE ( 22, - - 51, - MAX ( + 64 ) * + CASE 78 WHEN 6 THEN - + 90 + - 95 WHEN - + AVG ( DISTINCT 98 ) + 7 * + - 69 THEN NULL ELSE NULL END + + 8 ) / - + 36 * 97 @@ -30436,8 +30777,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 64 AS col2, + 41 * + COUNT ( * ) - 21 + + NULLIF ( 71, + 14 ) + + SUM ( + 70 ) + 52 AS col2 +---- +213 +64 query I rowsort label-5797 SELECT COALESCE ( - 99, + - 10 * + + 92 + - 41, + + COUNT ( * ) ) + 12 * - 53 AS col0 @@ -30552,8 +30896,11 @@ SELECT - 66 + - + 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col2" at position 0 and "max\(Int64\(46\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 91 AS col2, + MAX ( ALL + 46 ) col2 +---- +46 +91 query I rowsort label-5819 SELECT DISTINCT - COUNT ( * ) + + 85 AS col1 @@ -31050,8 +31397,11 @@ SELECT 73 * - ( 95 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 col2, COUNT ( * ) AS col2 +---- +1 +33 query I rowsort label-5914 SELECT ALL + 62 + MIN ( DISTINCT - ( - 43 ) ) * 23 @@ -31066,8 +31416,11 @@ SELECT 89 + + 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) AS col2" at position 0 and "Int64\(89\) \+ \(\- nullif\(Int64\(69\), Int64\(\-38\) \+ Int64\(\-36\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 26 AS col2, 89 + + - NULLIF ( + 69, - 38 + - 36 ) AS col2 +---- +-26 +20 query I rowsort label-5917 SELECT ALL - 53 + - 98 * - 4 + + 71 * - - MAX ( ALL - 8 ) AS col2 @@ -31139,8 +31492,11 @@ 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\(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\. +query II valuesort SELECT + 94 AS col0, - CASE + COUNT ( * ) WHEN 93 + - 78 THEN + 29 / - + 93 + - - 27 END AS col0 +---- +94 +NULL query I rowsort SELECT - 28 - 48 AS col1 @@ -31430,8 +31786,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + 42 AS col1, + COUNT ( * ) * 98 * NULLIF ( + - 11, COALESCE ( - 14, 45 * - - NULLIF ( + 9, - - 20 ), 75 ) ) AS col1 +---- +-1078 +42 query I rowsort label-5986 SELECT ALL CAST ( - MIN ( DISTINCT 75 ) AS INTEGER ) @@ -31522,8 +31881,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * 53 + + 10 / 86 AS col0, - 27 AS col0 +---- +-27 +53 query I rowsort SELECT 75 * 27 * - + 28 + - - 77 AS col0 @@ -31759,8 +32121,11 @@ 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\(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\. +query II valuesort 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 +---- +-106 +1762 query I rowsort SELECT 82 * 31 col0 @@ -31807,8 +32172,12 @@ SELECT DISTINCT + 32 * 26 AS col0 # Datafusion - Expected - NULL # Datafusion - Expected - -1932 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(75\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* coalesce\(\(\- Int64\(81\)\), Int64\(34\)\) \+ \(\- \(\- Int64\(54\)\)\) THEN count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Float64\) WHEN \(\- sum\(Int64\(\-47\)\)\) THEN Int64\(42\) WHEN CASE Int64\(8\) WHEN \(\- Int64\(\-61\)\) THEN NULL ELSE Int64\(2\) END THEN \(\- Int64\(\-93\)\) END\) AS col2" at position 0 and "sum\(Int64\(39\)\) \* Int64\(\-48\) \+ \(\- CAST\(Int64\(60\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RII valuesort 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 ( * ) +---- +-1932 +1 +NULL query I rowsort SELECT - - ( + 50 ) AS col2 @@ -32202,8 +32571,11 @@ SELECT 8 * 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 88 AS col0, + ( 79 ) AS col0 +---- +-88 +79 query II rowsort SELECT COALESCE ( + 10, + - 45 ) - + 36 + - 49 * - 67 AS col1, - 80 @@ -32297,8 +32669,11 @@ SELECT 87 - - COALESCE ( - 16, + 25, 6 * 83 + 98 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 55 AS col2, + 45 AS col2 +---- +45 +55 query I rowsort label-6150 SELECT CAST ( NULL AS INTEGER ) + - - 28 + 59 @@ -32672,8 +33047,11 @@ SELECT DISTINCT + 4, - 26 * - ( - + 14 ) * + 8 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 AS col0, CAST ( NULL AS INTEGER ) * - 54 AS col0 +---- +63 +NULL query I rowsort label-6221 SELECT + 48 * - SUM ( ALL - - 27 ) + - 42 + + - 73 + - 69 + - COALESCE ( - + 0, + 27 + - 88 + + + 46 * - 43 ) * 75 / 55 + 13 * 93 + - 89 AS col0 @@ -32742,8 +33120,11 @@ SELECT 1 * + 69 * - 25 # 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\(97\) \+ Int64\(\-28\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 97 + - 28 AS col0, 0 AS col0 +---- +0 +69 query I rowsort label-6234 SELECT ALL 56 + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + ( + MIN ( ALL - - 85 ) ) @@ -32842,8 +33223,11 @@ SELECT + 5 + + 16 + - 69 * COALESCE ( + 27, 52 ) - - - 47 + COALESCE ( 82, + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col0" at position 0 and "Int64\(45\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 AS col0, 45 * + COUNT ( * ) AS col0 +---- +45 +75 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -33942,8 +34326,11 @@ SELECT - ( 10 ) + + 67 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-3\) AS Int32\) \+ Int64\(\-73\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( - 3 AS INTEGER ) + - 73 AS col1, 21 AS col1 +---- +-76 +21 query I rowsort label-6457 SELECT 74 + - CAST ( - 56 AS INTEGER ) / - COUNT ( * ) @@ -34443,8 +34830,11 @@ SELECT ALL - COUNT ( * ) - 69 + 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( CAST ( NULL AS INTEGER ) ) AS col1, 18 AS col1 +---- +18 +NULL query I rowsort label-6552 SELECT ALL - 84 - COUNT ( * ) @@ -34834,14 +35224,20 @@ SELECT - COALESCE ( + - 75, + - 11 + + 48 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 col0, + ( 35 ) AS col0 +---- +35 +68 # 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\(\-83\) / CASE Int64\(72\) WHEN Int64\(\-76\) \+ Int64\(94\) THEN Int64\(65\) \* Int64\(\-82\) \+ Int64\(\-3\) \- avg\(Int64\(21\)\) \+ Int64\(33\) / Int64\(\-29\) \* Int64\(14\) END / Int64\(\-20\) \* Int64\(74\) \+ Int64\(\-14\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - 83 / + CASE 72 WHEN - 76 + 94 THEN + 65 * - 82 + - 3 - + AVG ( ALL + 21 ) + + 33 / - 29 * + 14 END / + - 20 * 74 + - 14 AS col1, + 21 AS col1 +---- +21 +NULL query I rowsort label-6628 SELECT + 95 - CAST ( NULL AS INTEGER ) AS col2 @@ -35519,8 +35915,11 @@ SELECT ALL - + 44 * 68 * + 41 AS col2 # 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 "Int64\(75\) AS col2" at position 0 and "Int64\(86\) \* Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 75 AS col2, 86 * + 1 AS col2 +---- +75 +86 query I rowsort label-6761 SELECT DISTINCT 91 / ( + 10 ) * 74 / - 37 AS col2 @@ -35815,8 +36214,11 @@ SELECT + CAST ( - ( - 78 ) AS INTEGER ) * - 54 + + 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "Int64\(\-82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 58 AS col0, - 82 AS col0 +---- +-82 +58 query I rowsort label-6818 SELECT 60 + + + COUNT ( ALL 51 ) AS col2 @@ -36117,8 +36519,11 @@ SELECT ALL 72 * + - 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8217 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* Int64\(99\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 83 * 99 AS col1, 22 AS col1 +---- +22 +8217 query I rowsort label-6875 SELECT + COUNT ( * ) + + COUNT ( * ) + - COUNT ( * ) - 49 + + 87 * + COUNT ( * ) + - 78 + 45 * + 53 * + 3 @@ -36884,8 +37289,11 @@ SELECT + 63 / + + 50 + MIN ( DISTINCT 8 ) + + COALESCE ( + ( + + 64 ), - - 36 ) # 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 "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 II valuesort SELECT + + 59 col0, - 55 col0 +---- +-55 +59 query I rowsort label-7021 SELECT - COUNT ( * ) + - + 14 * - + 43 AS col2 @@ -37190,8 +37598,11 @@ 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\(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\. +query II valuesort SELECT - COALESCE ( + ( + - COUNT ( * ) ), + 87 ) AS col1, + 42 + - + 47 col1 +---- +-5 +1 query II rowsort label-7080 SELECT + 58 + SUM ( 99 ) * + - 42, CAST ( - CASE 20 WHEN - 85 * + 27 * - + 4 THEN COUNT ( DISTINCT + 1 ) WHEN - COALESCE ( 5, + ( 67 ) / NULLIF ( 88 * AVG ( ALL - 8 ), 64 ) ) * 84 THEN NULL ELSE ( CAST ( COUNT ( * ) AS INTEGER ) ) / + COUNT ( * ) END AS INTEGER ) AS col2 @@ -37400,14 +37811,20 @@ SELECT ALL 31 / 15 * + - COUNT ( * ) * - - 26 / - - 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -129 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-32\)\) \+ Int64\(\-97\) AS col0" at position 0 and "Int64\(98\) \+ Int64\(\-30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MIN ( - 32 ) + - 97 AS col0, 98 + - 30 col0 +---- +-129 +68 # 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\(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\. +query II valuesort SELECT DISTINCT 20 * - COUNT ( * ) + + 24 AS col0, + 35 AS col0 +---- +35 +4 query I rowsort SELECT ALL 70 * + - 51 + - + 83 @@ -38074,8 +38491,11 @@ SELECT + ( - - 69 ) * - 42 * - ( - COALESCE ( - + 15, - 93 * + COALESCE ( - ( + # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 75 AS col1, 43 AS col1 +---- +43 +75 query I rowsort label-7251 SELECT - CAST ( NULL AS INTEGER ) / 0 @@ -38101,8 +38521,11 @@ SELECT - 50 * 87 + + 64 + 72 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 1173 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col2" at position 0 and "Int64\(51\) \* Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 75 AS col2, 51 * + + 23 AS col2 +---- +1173 +75 query II rowsort SELECT ALL + + 33, ( - 80 ) AS col2 @@ -38288,8 +38711,11 @@ SELECT NULLIF ( + 37, - + 58 * + 94 + + ( - 28 ) ) AS col0, - 67 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "coalesce\(Int64\(41\), Int64\(12\) \+ Int64\(85\) \+ \(\- Int64\(\-71\)\), \(\- Int64\(\-35\)\) \* Int64\(\-43\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 48 AS col1, + COALESCE ( 41, 12 + 85 + ( - ( - 71 ) ), - - 35 * - 43 ) AS col1 +---- +41 +48 query I rowsort label-7292 SELECT - CAST ( NULL AS INTEGER ) * - - 51 AS col2 @@ -38723,8 +39149,12 @@ SELECT DISTINCT 49 * + 57 col1 # Datafusion - Expected - 3360 # Datafusion - Expected - 0 # Datafusion - Expected - 1110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* Int64\(40\) AS col2" at position 0 and "Int64\(7\) \* Int64\(9\) / \(\- CASE \(\- Int64\(\-45\)\) WHEN Int64\(51\) THEN max\(DISTINCT Int64\(61\)\) ELSE Int64\(\-70\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 84 * + + 40 col2, 7 * + 9 / - + CASE - - 45 WHEN + + 51 THEN + + MAX ( DISTINCT 61 ) ELSE - 70 END AS col2, - - 67 * - ( + - 16 ) - NULLIF ( - + 38, 58 ) AS col0 +---- +0 +1110 +3360 query II rowsort label-7374 SELECT + 83 * - + 46 AS col0, + 10 / + NULLIF ( - SUM ( + 76 ), + SUM ( - 66 ) + - 6 ) @@ -39062,8 +39492,11 @@ SELECT DISTINCT COUNT ( * ) + + NULLIF ( + 17, - ( 14 ) + - 6 ) - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \+ Int64\(4\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 90 + 4 col1, COUNT ( * ) AS col1 +---- +-86 +1 query I rowsort label-7438 SELECT ALL + COUNT ( * ) + 55 AS col1 @@ -39308,8 +39741,11 @@ SELECT DISTINCT + + 44 * - + MIN ( ALL + - CAST ( 4 AS INTEGER ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-61\)\)\) AS col1" at position 0 and "CAST\(NULL AS Float64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT - ( - ( - 61 ) ) col1, CAST ( NULL AS FLOAT8 ) AS col1 +---- +-61 +NULL query I rowsort SELECT + + 70 * - + 89 + - + 3 @@ -39413,8 +39849,11 @@ SELECT ALL ( - - ( - 33 ) ) # 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 "Int64\(38\) AS col2" at position 0 and "Int64\(\-69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 38 AS col2, - 69 AS col2 +---- +-69 +38 query I rowsort SELECT ALL 1 * - 0 @@ -39507,8 +39946,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) / 97 + - MAX ( DISTINCT 50 ) AS col0, - 14 AS col0 +---- +-14 +-50 query I rowsort label-7523 SELECT ALL - + NULLIF ( 26, COUNT ( * ) * - - 81 ) * COALESCE ( 40, - + COALESCE ( - 85, 61 + + 98 * 69 ) * 62 * + + 98, + + 66 + + COUNT ( * ) ) * + + 55 + + ( - CAST ( - - 47 AS INTEGER ) ) + - + CAST ( + 44 AS INTEGER ) @@ -39717,14 +40159,20 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 48 / + - COUNT ( * ) AS col2, 54 AS col2 +---- +-48 +54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / 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 II valuesort SELECT - COUNT ( * ) / + + 36 AS col2, - 21 AS col2 +---- +-21 +0 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -39862,8 +40310,11 @@ SELECT DISTINCT 48 / 5 + + 85 + + 32 * - - ( 74 ) 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 col1" at position 0 and "Int64\(87\) / Int64\(\-71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 50 AS col1, 87 / - 71 AS col1 +---- +-1 +-50 query I rowsort SELECT ALL + 9 + + ( 63 ) @@ -39889,8 +40340,11 @@ 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\(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\. +query II valuesort SELECT + - COUNT ( * ) AS col2, 97 * + 0 AS col2 +---- +-1 +0 query II rowsort SELECT 19 + - ( - 24 ) AS col2, 81 - + + 40 * + 16 AS col1 @@ -40491,8 +40945,11 @@ SELECT DISTINCT - 3 - - 62 * + ( 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\(45\) / Int64\(74\) AS col0" at position 0 and "Int64\(5\) \- Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + + 45 ) / 74 AS col0, + 5 - 4 AS col0 +---- +0 +1 query I rowsort SELECT 80 - + 42 * + 57 @@ -40761,8 +41218,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * + 51 AS col1, - 12 AS col1 +---- +-12 +51 query II rowsort SELECT + 5 * 21 AS col2, 26 col0 @@ -40980,8 +41440,11 @@ SELECT 56 * - + 55 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1050 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* Int64\(14\) AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 * + 14 AS col2, 31 AS col2 +---- +1050 +31 query I rowsort SELECT ALL 25 * + 24 AS col0 @@ -41282,8 +41745,11 @@ 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\(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\. +query RI valuesort SELECT + + NULLIF ( + + COUNT ( * ), + 98 * - 97 * + AVG ( + 90 ) + + 92 ) + + + COUNT ( * ) - - 73 * + 79 AS col2, - 98 * + 93 - + ( - + 69 ) / + + 61 + + ( 15 ) AS col2 +---- +-9098 +5769 query I rowsort label-7855 SELECT ALL - - 29 * 58 + 20 * - - COUNT ( * ) + + - 80 - - + 52 * ( - CAST ( NULL AS INTEGER ) ) AS col0 @@ -41989,8 +42455,11 @@ SELECT ALL MAX ( ALL + + 27 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "Int64\(13\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 62 AS col1, 13 * + COUNT ( * ) col1 +---- +13 +62 query I rowsort SELECT + 81 * 65 - + + 72 AS col2 @@ -42469,8 +42938,11 @@ SELECT ALL 28 + + + ( 40 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(60\)\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( + 60 ) col1, + 26 AS col1 +---- +26 +60 query I rowsort SELECT ALL + 60 + + 41 AS col2 @@ -42685,8 +43157,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(78\) / Int64\(\-59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) col2, 78 / + - 59 col2 +---- +-1 +-1 query II rowsort label-8120 SELECT + + 1 + - 98 / - 77 AS col2, 41 + + COUNT ( * ) * + ( + 60 ) AS col0 @@ -42733,14 +43208,20 @@ SELECT - 68 + - - 20 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "Int64\(48\) \+ Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 51 AS col2, 48 + 46 AS col2 +---- +51 +94 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, + ( - 99 ) AS col2 +---- +-99 +NULL query I rowsort label-8130 SELECT ALL CAST ( + + CAST ( + CAST ( CASE + ( + 80 ) WHEN - + MAX ( - - NULLIF ( - + 26, - + CASE + - 18 WHEN + 96 * + 39 THEN - 56 * + - 75 WHEN + + 15 THEN NULL ELSE NULL END ) ) THEN 67 + - 11 END AS INTEGER ) AS FLOAT8 ) AS INTEGER ) @@ -42776,8 +43257,11 @@ SELECT ALL + ( - - MIN ( CAST ( + 66 AS INTEGER ) ) ), 96 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 1943 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col0" at position 0 and "Int64\(\-67\) \* Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 AS col0, - 67 * - 29 AS col0 +---- +1943 +24 query I rowsort label-8137 SELECT 28 / 52 AS col1 @@ -42828,8 +43312,11 @@ 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\(1\)\) AS count\(\*\), \(\- \(\- Int64\(40\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 50 AS col2, COALESCE ( + COUNT ( * ), - ( - + 40 ) ) AS col2 +---- +1 +50 query I rowsort SELECT 78 * - 98 @@ -42926,8 +43413,11 @@ SELECT - 66 * CASE - 63 WHEN - CASE 21 WHEN + 99 + 65 THEN 40 END * + + 23 THEN # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "Int64\(52\) \+ Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 23 AS col2, 52 + - 89 AS col2 +---- +-37 +23 query II rowsort SELECT 82, 12 AS col1 @@ -43091,8 +43581,11 @@ SELECT 40 + + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 176 # Datafusion - Expected - -7810 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ Int64\(90\) AS col0" at position 0 and "max\(DISTINCT Int64\(\-85\)\) \* Int64\(93\) \+ Int64\(51\) \- Int64\(\-44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 + 90 AS col0, MAX ( DISTINCT - 85 ) * 93 + + 51 - + - 44 AS col0 +---- +-7810 +176 query I rowsort SELECT ALL - ( - - 14 ) + ( - 89 ) @@ -43211,8 +43704,11 @@ SELECT + 58 + + 2 * + 54 * + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* max\(Int64\(4\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) * + + MAX ( ALL + + 4 ) AS col2, COUNT ( * ) AS col2 +---- +1 +4 query I rowsort SELECT + + ( - - 0 ) @@ -43343,8 +43839,11 @@ SELECT ALL + 75 * + 1 AS col1, + 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1334 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- sum\(Int64\(\-29\)\)\)\) \* Int64\(46\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - SUM ( - 29 ) ) * + 46 AS col1, 99 AS col1 +---- +-1334 +99 query I rowsort label-8243 SELECT + 81 / 82 @@ -44289,8 +44788,11 @@ SELECT COUNT ( ALL - 35 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, + 38 AS col1 +---- +1 +38 query I rowsort label-8426 SELECT COUNT ( * ) / - MAX ( - 79 ) AS col2 @@ -44380,8 +44882,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(75\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 38 AS col2, COUNT ( * ) * - + 75 AS col2 +---- +-38 +-75 query I rowsort label-8444 SELECT - - CASE + 32 WHEN - + 63 THEN NULL WHEN + - 90 + - 71 + + 15 THEN - 44 - 32 WHEN + 42 THEN + 3 - - MIN ( ALL - 15 ) * + 27 END - 28 * + SUM ( + 3 * 65 ) AS col2 @@ -44406,8 +44911,11 @@ SELECT ALL + ( + + 63 ) + - 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 46 AS col2, 86 AS col2 +---- +-46 +86 query I rowsort label-8449 SELECT ALL + CASE - - 66 WHEN 31 THEN + 37 - - 33 - 96 ELSE ( - COUNT ( * ) ) END + 80 / + 9 @@ -44603,8 +45111,11 @@ SELECT DISTINCT + COALESCE ( + + 43, - COUNT ( * ) ) + - ( + 21 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col1" at position 0 and "CAST\(NULL AS Float64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - 19 AS col1, CAST ( NULL AS FLOAT8 ) AS col1 +---- +-19 +NULL query I rowsort label-8487 SELECT - CASE 26 WHEN + 45 THEN 35 ELSE - - 25 + + - 55 / ( - NULLIF ( COALESCE ( 43, - 68 ), + COALESCE ( 31, 24 ) * 94 + + 6 ) * + 49 + 15 ) END AS col2 @@ -44658,8 +45169,11 @@ SELECT ALL + 47 + + + 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - -1888 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "CASE WHEN NOT Int64\(\-21\) > NULL THEN NULL ELSE Int64\(\-59\) \* sum\(Int64\(32\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 76 col1, CASE WHEN NOT ( - 21 > NULL ) THEN NULL ELSE - 59 * + SUM ( ALL 32 ) END AS col1 +---- +-1888 +76 query II rowsort label-8497 SELECT - - 14 AS col0, CASE - 74 WHEN - 86 * - ( 97 ) + - 27 THEN NULL WHEN + 29 * - AVG ( - 66 ) + 41 * - CAST ( 34 / COUNT ( * ) - - 13 AS INTEGER ) THEN 71 - MAX ( - 79 - 58 ) WHEN CAST ( NULL AS INTEGER ) THEN NULL END @@ -45261,8 +45775,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "Int64\(74\) \+ \(\- \(\- Int64\(20\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 49 AS col2, 74 + - - ( + 20 ) col2 +---- +49 +94 query I rowsort label-8612 SELECT + - NULLIF ( - COUNT ( * ), + 65 ) @@ -45323,8 +45840,11 @@ SELECT DISTINCT - ( + 4 ) + 79 - + 95 + + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "Int64\(89\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 14 AS col0, 89 * + COUNT ( * ) AS col0 +---- +14 +89 query I rowsort label-8624 SELECT ALL + 4 + 24 + + - 17 + + + ( + - 13 ) * + COUNT ( * ) * + 37 * + 86 * ( + COUNT ( - 10 ) ) @@ -45385,8 +45905,11 @@ SELECT - MAX ( + 39 ) * - ( - 87 ) * CAST ( 41 AS INTEGER ) - + + 92 + + + 47 * # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 31 AS col0, COUNT ( * ) col0 +---- +-31 +1 query II rowsort SELECT DISTINCT - - 7 AS col1, + 60 @@ -45618,8 +46141,11 @@ SELECT + MAX ( - 12 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 94 * ( + COUNT ( * ) ) AS col0, 69 AS col0 +---- +-94 +69 query I rowsort label-8680 SELECT + 0 * COUNT ( DISTINCT 70 ) * + - 43 AS col2 @@ -45871,8 +46397,11 @@ SELECT + MIN ( ALL + 76 ) - 2 * + 52 # 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 "Int64\(\-75\) / Int64\(\-82\) AS col0" at position 0 and "Int64\(\-74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 75 / + - 82 AS col0, - 74 AS col0 +---- +-74 +0 query I rowsort label-8728 SELECT + MIN ( DISTINCT - 47 ) * - 49 AS col2 @@ -46101,8 +46630,11 @@ SELECT ALL + COUNT ( * ) + - 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(5\)\) AS col1" at position 0 and "\(\- Int64\(\-9\)\) \+ Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 5 AS col1, - ( - 9 ) + - 80 col1 +---- +-5 +-71 query II rowsort label-8771 SELECT DISTINCT - 22 + - 50 * + - 25, + 28 + - COUNT ( ALL + 57 ) AS col0 @@ -46220,8 +46752,12 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-51\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 69 AS col0, 19 + + 7 + 92, - 35 / + 98 * + - 76 * COUNT ( * ) * - 51 AS col0 +---- +0 +118 +69 query I rowsort label-8793 SELECT COUNT ( * ) * - COALESCE ( - 71, - + 22 * - COUNT ( ALL - CAST ( NULL AS INTEGER ) ), - COUNT ( * ) ) / - CAST ( NULL AS INTEGER ) + 77 AS col1 @@ -46254,8 +46790,11 @@ SELECT ALL - COUNT ( * ), 74 + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4503 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* Int64\(79\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 57 * + 79 AS col0, + 18 AS col0 +---- +18 +4503 query I rowsort label-8799 SELECT ALL + 83 + 47 + 37 + + COUNT ( * ) @@ -46564,8 +47103,11 @@ SELECT ALL + + 69 * 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6300 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(70\) AS col0" at position 0 and "Int64\(\-71\) \+ CAST\(NULL AS Int32\) \+ Int64\(77\) \* coalesce\(CAST\(\(\- Int64\(\-10\)\) AS Int32\), max\(Int64\(47\)\) \+ Int64\(\-36\), Int64\(4\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 90 * + 70 AS col0, - 71 + CAST ( NULL AS INTEGER ) + 77 * COALESCE ( + CAST ( - - 10 AS INTEGER ), + MAX ( ALL ( 47 ) ) + - 36, + 4 ) AS col0 +---- +6300 +NULL query I rowsort label-8858 SELECT - + ( + COUNT ( 8 ) ) * - - 76 + + - ( + COUNT ( * ) ) + - - 6 - ( 13 ) * 47 AS col2 @@ -47195,8 +47737,11 @@ SELECT ALL - - 8 * - + 15 * + 52 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- nullif\(\(\- \(\- coalesce\(Int64\(0\), Int64\(98\), Int64\(47\) \* Int64\(20\)\)\)\), \(\- \(\- \(\- Int64\(82\)\)\)\)\)\), Int64\(\-54\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-37\) / CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\), Int64\(2\) / count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(69\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +69 +NULL query II rowsort SELECT 64 AS col2, 92 * 40 AS col0 @@ -47274,8 +47819,11 @@ SELECT + 39 + + 69 + 7 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 32 AS col2, COUNT ( * ) AS col2 +---- +1 +32 query I rowsort label-8993 SELECT + 33 * - MAX ( - 86 ) AS col1 @@ -47515,8 +48063,11 @@ SELECT ALL 9 * - - 80 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 AS col0, + COUNT ( * ) AS col0 +---- +1 +89 query I rowsort SELECT ALL + 33 - + 89 col0 @@ -47922,8 +48473,11 @@ SELECT - 17 * ( - - SUM ( DISTINCT - 67 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 88 AS col1, + CAST ( NULL AS INTEGER ) col1 +---- +88 +NULL query I rowsort SELECT + 93 * + + 94 AS col0 @@ -48082,8 +48636,12 @@ SELECT + 68, 81 - - 14 AS col0 # Datafusion - Expected - 20 # Datafusion - Expected - 57 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 20 AS col1, 57 AS col1, 84 AS col0 +---- +20 +57 +84 query II rowsort SELECT + 22, - 38 AS col1 @@ -48136,8 +48694,11 @@ SELECT 28 / - + ( - COUNT ( * ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 121 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ Int64\(24\) AS col0" at position 0 and "Int64\(47\) \+ Int64\(\-88\) \- Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 97 + + 24 AS col0, + 47 + - 88 - + + 49 AS col0 +---- +-90 +121 query I rowsort label-9156 SELECT + 36 / 75 + + 60 * + COUNT ( * ) @@ -48271,8 +48832,11 @@ SELECT DISTINCT COALESCE ( + + 96, - 81 / - 18 + + - 54 ) * + 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 3894 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \- \(\- Int64\(40\)\) AS col2" at position 0 and "Int64\(59\) \* Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 - - + 40 AS col2, + 59 * 66 AS col2 +---- +3894 +92 query I rowsort label-9181 SELECT SUM ( + - 49 ) @@ -48302,8 +48866,11 @@ SELECT ALL ( + 81 ) - + 28 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-56\)\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - 56 ) AS col2, 48 AS col2 +---- +48 +56 query I rowsort SELECT 67 * + 14 @@ -48318,8 +48885,11 @@ 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\(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\. +query IR valuesort SELECT + 25 * + + 59 AS col1, + 37 + + ( COALESCE ( + + COUNT ( * ), + - NULLIF ( 61, + 68 ) * 1, 91 ) ) / - + CAST ( NULL AS FLOAT8 ) - + + 73 + - 87 + + 1 AS col1 +---- +1475 +NULL query I rowsort label-9190 SELECT DISTINCT + SUM ( + 4 ) col1 @@ -48609,8 +49179,11 @@ SELECT ALL CASE 3 WHEN + + 96 + 22 THEN NULL ELSE - NULLIF ( - 4, + COALESCE ( - # 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 "sum\(\(\- Int64\(1\)\)\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + SUM ( - + 1 ) AS col0, + 22 AS col0 +---- +-1 +22 query I rowsort SELECT DISTINCT 57 * + 90 AS col1 @@ -49076,8 +49649,11 @@ SELECT - 0 / - + 40 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "Int64\(65\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 70 AS col2, 65 * + COUNT ( * ) AS col2 +---- +65 +70 query II rowsort SELECT ALL + 92 AS col2, + 30 @@ -49094,8 +49670,11 @@ SELECT DISTINCT + + 93, - 49 / + + 70 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 AS col2, 86 AS col2 +---- +56 +86 query I rowsort SELECT ALL + + ( - 59 ) AS col1 @@ -49213,8 +49792,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(28\), Int64\(39\) \+ \(\- Int64\(47\)\) \+ Int64\(27\) \* Int64\(\-19\) \- Int64\(\-41\) \+ CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN Int64\(\-42\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-92\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), CAST\(NULL AS Int32\)\) THEN coalesce\(Int64\(40\), Int64\(85\) \* count\(Int64\(1\)\) AS count\(\*\)\) END \+ count\(Int64\(1\)\) AS count\(\*\), Int64\(\-98\)\) \+ Int64\(25\) AS col1" at position 0 and "Int64\(71\) \+ Int64\(\-38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +33 +53 query I rowsort label-9360 SELECT DISTINCT + ( MIN ( - - 49 ) ) @@ -49408,8 +49990,11 @@ SELECT DISTINCT MIN ( - ( 12 ) ) + + 22 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5312 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(94\)\) \* \(\- Int64\(\-57\)\) \+ Int64\(46\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 94 * - - 57 + 46 col1, COUNT ( * ) AS col1 +---- +-5312 +1 query I rowsort SELECT 11 * + 47 @@ -49621,8 +50206,11 @@ SELECT + COALESCE ( - 86, - COALESCE ( + 19, + 29, + - 42 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 42300 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \* Int64\(94\) \* \(\- Int64\(10\)\) AS col1" at position 0 and "Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 45 * + 94 * - + 10 AS col1, 82 AS col1 +---- +42300 +82 query I rowsort label-9438 SELECT ALL + 11 - 64 / + - 30 + + 10 * - 26 AS col2 @@ -50020,8 +50608,11 @@ SELECT DISTINCT CASE - 34 WHEN + 35 * + COUNT ( * ) + - 95 * 89 THEN NULL ELSE - # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) \+ Int64\(1\) AS col1" at position 0 and "Int64\(0\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 82 + + 1 AS col1, 0 / + COUNT ( * ) AS col1 +---- +-81 +0 query I rowsort SELECT 34 + + ( + 45 ) AS col2 @@ -50036,8 +50627,11 @@ SELECT + 99 + - CAST ( - 33 AS INTEGER ) + - + CASE WHEN COUNT ( * ) NOT IN ( 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \- Int64\(\-46\) \- Int64\(\-5\) \* Int64\(\-1\) \+ Int64\(\-65\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 - + - 46 - - 5 * - 1 + + - 65 AS col1, + COUNT ( * ) AS col1 +---- +0 +1 query I rowsort SELECT + 56 * + 71 + + 6 col0 @@ -50432,8 +51026,11 @@ SELECT CAST ( 16 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) / Int64\(\-79\) \+ Int64\(42\) AS col2" at position 0 and "Int64\(46\) \- \(\- min\(Int64\(24\)\)\) \- Int64\(\-50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 14 / - 79 + + + 42 AS col2, 46 - - MIN ( ALL + 24 ) - + - 50 col2 +---- +120 +42 query I rowsort label-9592 SELECT DISTINCT + 80 * - + CAST ( NULL AS INTEGER ) * + 9 @@ -50453,8 +51050,11 @@ SELECT 53 * MIN ( 70 ) - + + ( MAX ( ALL + - 81 ) ) + + COUNT ( * ) + + ( - 13 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(5\)\) AS col1" at position 0 and "Int64\(61\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + COUNT ( + 5 ) ) AS col1, ( + + 61 ) + COUNT ( * ) AS col1 +---- +1 +62 query I rowsort label-9596 SELECT ALL + MAX ( ALL + 36 ) * - 20 AS col2 @@ -50641,14 +51241,20 @@ SELECT ALL - ( + - 18 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 818 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col0" at position 0 and "Int64\(36\) \* Int64\(25\) \+ \(\- max\(Int64\(82\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 AS col0, 36 * + 25 + - MAX ( ALL + 82 ) AS col0 +---- +21 +818 # 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\(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\. +query II valuesort SELECT 26 + - - COUNT ( * ) AS col2, - 67 + - + 74 * - 3 AS col2 +---- +155 +27 query I rowsort label-9633 SELECT ALL - ( + 41 ) - 55 - + 47 + - + COUNT ( * ) AS col2 @@ -50663,14 +51269,20 @@ SELECT 16 * - + ( 66 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - -572 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col1" at position 0 and "Int64\(\-22\) \* Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 4 AS col1, - 22 * + 26 AS col1 +---- +-4 +-572 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "Int64\(\-34\) \+ \(\- Int64\(\-78\)\) \+ Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 AS col2, ( - 34 ) + - - 78 + 28 AS col2 +---- +16 +72 query I rowsort SELECT ALL + ( 48 ) * - + 61 - - 87 - - 49 @@ -51085,8 +51697,11 @@ SELECT + MAX ( DISTINCT - 0 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4913 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(\-62\) \+ Int64\(47\) AS col1" at position 0 and "\(\- \(\- CASE Int64\(\-59\) WHEN \(\- sum\(DISTINCT Int64\(\-81\)\)\) \+ max\(Int64\(\-78\)\) THEN Int64\(99\) ELSE NULL END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 80 * + - 62 + + ( + 47 ) col1, + ( - - CASE - 59 WHEN - SUM ( DISTINCT - 81 ) + + + MAX ( - 78 ) THEN + 99 ELSE NULL END ) AS col1 +---- +-4913 +NULL query I rowsort SELECT ALL 61 * + 92 AS col2 @@ -51189,8 +51804,11 @@ SELECT COUNT ( * ) / - CAST ( - 55 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 719 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) \* \(\- Int64\(18\)\) \+ min\(Int64\(53\)\) AS col1" at position 0 and "Int64\(24\) \+ Int64\(60\) / Int64\(\-5\) \+ Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 37 * - + 18 + + + MIN ( + 53 ) AS col1, 24 + 60 / - 5 + 20 AS col1 +---- +32 +719 query I rowsort SELECT ALL 76 + - - 93 * 74 col2 @@ -51689,8 +52307,11 @@ SELECT + 8 * 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(24\)\) AS col0" at position 0 and "Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( ALL 24 ) AS col0, + 19 col0 +---- +19 +24 query I rowsort label-9831 SELECT - + COUNT ( - + COALESCE ( - + ( + 99 ), - 49 ) ) @@ -51783,8 +52404,11 @@ SELECT DISTINCT - MAX ( DISTINCT - 70 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 43680 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "Int64\(26\) \* Int64\(40\) \* Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 AS col2, + 26 * + + 40 * 42 col2 +---- +43680 +9 query II rowsort label-9849 SELECT 39 * - + SUM ( - 4 ), 57 + + ( - 69 ) AS col0 diff --git a/data/sqlite/random/expr/slt_good_116.slt b/data/sqlite/random/expr/slt_good_116.slt index 1a3b003..950f3ab 100644 --- a/data/sqlite/random/expr/slt_good_116.slt +++ b/data/sqlite/random/expr/slt_good_116.slt @@ -303,8 +303,11 @@ SELECT MIN ( - 65 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-20\)\) AS col2" at position 0 and "\(\- nullif\(Int64\(53\), max\(Int64\(\-99\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - ( - 20 ) AS col2, + ( - NULLIF ( 53, + MAX ( ALL - 99 ) ) ) col2 +---- +-53 +20 query I rowsort label-52 SELECT DISTINCT + 82 / + MAX ( 93 ) AS col2 @@ -599,8 +602,11 @@ SELECT DISTINCT - 41 AS col0, + 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 418 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \+ Int64\(33\) \- Int64\(\-37\) \* Int64\(8\) AS col1" at position 0 and "Int64\(1\) \- Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 + + + 33 - + - 37 * + 8 AS col1, + ( + 1 ) - + 19 AS col1 +---- +-18 +418 query I rowsort label-110 SELECT COALESCE ( + 51, + - 90 * - 94 / + + 80 ) * + 4 - - 60 * + 2 @@ -845,8 +851,11 @@ SELECT DISTINCT 14 - + 31 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 156 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \* \(\- Int64\(78\)\) AS col1" at position 0 and "CASE \(\- nullif\(Int64\(\-32\), Int64\(9\)\)\) WHEN min\(Int64\(\-57\)\) THEN NULL ELSE Int64\(36\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 2 * - + 78 col1, + CASE - NULLIF ( - 32, + + 9 ) WHEN MIN ( ALL - 57 ) THEN NULL ELSE 36 END AS col1 +---- +156 +36 query I rowsort SELECT ALL 8 * 92 AS col0 @@ -1095,8 +1104,11 @@ SELECT - 32 * + - 33 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -3917 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(58\) \* Int64\(\-65\) \+ Int64\(\-71\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(4\) \* Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + 58 * - 65 + - 71 * COUNT ( * ) - 4 * + 19 AS col2 +---- +-3917 +1 query I rowsort label-202 SELECT ALL - MAX ( DISTINCT ( + + 8 ) ) @@ -1532,14 +1544,20 @@ 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\(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\. +query II valuesort 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 +---- +-150 +86 # 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\(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\. +query II valuesort SELECT 82 AS col1, - 11 * COUNT ( * ) * CASE 29 WHEN + COUNT ( DISTINCT - - 8 ) THEN - 25 ELSE NULL END col1 +---- +82 +NULL query I rowsort SELECT ALL NULLIF ( + 40, + 29 * 21 + 36 ) * - ( 81 ) AS col2 @@ -1599,8 +1617,11 @@ SELECT ALL 96 / + + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col2" at position 0 and "Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( - 4 ) AS col2, - 76 AS col2 +---- +-4 +-76 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -2071,8 +2092,11 @@ SELECT DISTINCT - 4 / CAST ( MIN ( ALL - 54 ) AS INTEGER ) / - - 9 * + 95 + - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 130 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \+ Int64\(58\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 + + 58 AS col1, + 10 AS col1 +---- +10 +130 query I rowsort SELECT 81 + - 43 @@ -2436,8 +2460,11 @@ SELECT + 1 + 30 AS col0 # 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\(DISTINCT Int64\(\-62\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 AS col0, + COUNT ( DISTINCT - 62 ) AS col0 +---- +1 +42 query II rowsort label-458 SELECT + + 34 + - 1, 33 * COUNT ( * ) + - - NULLIF ( MIN ( - + 73 ), COUNT ( 12 ) + + ( + MIN ( + NULLIF ( - 95, - - 43 + + 18 ) ) ) + 64 ) AS col2 @@ -2531,8 +2558,11 @@ SELECT DISTINCT - 69 - + COUNT ( + 43 ) / + COUNT ( * ) / + - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -312 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \* Int64\(39\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 8 * + 39 AS col0, + 60 AS col0 +---- +-312 +60 query II rowsort SELECT DISTINCT - ( + - 86 ), 29 AS col1 @@ -2570,8 +2600,12 @@ SELECT 81 / - + COUNT ( * ), + MAX ( ALL + 1 ) AS col1 # Datafusion - Expected - 11 # Datafusion - Expected - -52 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) AS col0" at position 1 and "\(\- min\(Int64\(73\)\)\) \+ Int64\(4\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT COUNT ( * ) * + + 11 AS col2, - 52 AS col0, - + MIN ( ALL + 73 ) + 4 AS col0 +---- +-52 +-69 +11 query II rowsort label-483 SELECT 12 - COUNT ( * ) * - 90, - 32 + 30 AS col2 @@ -2682,8 +2716,11 @@ SELECT MAX ( DISTINCT + 91 ) AS col2 # 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\(5\) \* Int64\(30\) \+ \(\- count\(DISTINCT Int64\(16\)\)\) \+ \(\- Int64\(53\)\) / Int64\(\-58\) \- Int64\(66\) 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 II valuesort SELECT + 5 * 30 + - COUNT ( DISTINCT 16 ) + - ( + 53 ) / + - 58 - + 66 AS col0, + ( COUNT ( + 32 ) ) col0 +---- +1 +83 query I rowsort SELECT 46 * 88 @@ -2741,8 +2778,12 @@ NULL # Datafusion - Expected - -507 # Datafusion - Expected - 19 # Datafusion - Expected - -31008 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ \(\- Int64\(\-36\)\) \* Int64\(\-16\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 69 + - - 36 * - 16 AS col1, + 19 col1, - 38 * 68 * + 12 AS col0 +---- +-31008 +-507 +19 query I rowsort SELECT - COALESCE ( 69, - 91 ) AS col1 @@ -2789,8 +2830,11 @@ SELECT ALL + MIN ( 39 ) + - 60 * - - 85 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 14 AS col0, 49 AS col0 +---- +-14 +49 query I rowsort SELECT - 12 + - + 93 @@ -3263,8 +3307,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 64 AS col0, - COUNT ( * ) col0 +---- +-1 +-64 query I rowsort label-614 SELECT DISTINCT - CASE - - 66 WHEN 50 + - + 51 THEN - 15 WHEN + + 16 / 11 - + 86 THEN + - 51 / - 76 ELSE 58 END AS col1 @@ -3609,8 +3656,11 @@ SELECT - 98 + 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(\-83\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + + 77 ) + + - 83 AS col2, COUNT ( * ) AS col2 +---- +-6 +1 query I rowsort label-679 SELECT ALL 44 - + - 77 + 1 + - 37 - 65 + + 58 + - CAST ( NULL AS INTEGER ) AS col0 @@ -3774,8 +3824,11 @@ SELECT DISTINCT + 27 * - + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7200 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \* Int64\(85\) \+ Int64\(\-60\) AS col0" at position 0 and "CAST\(Int64\(40\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 84 * + 85 + - 60 AS col0, ( CAST ( 40 AS INTEGER ) ) AS col0 +---- +-7200 +40 query I rowsort SELECT + 95 + 58 @@ -3845,8 +3898,11 @@ SELECT 89 + - ( - - 18 ) * + 61, - 89 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \- Int64\(\-10\) AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 - - 10 AS col2, 31 AS col2 +---- +31 +35 query I rowsort SELECT 34 - + 96 @@ -3866,8 +3922,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MIN ( ALL + ( + 83 ) ) * - - COUNT ( * ) AS col0, 0 AS col0 +---- +-83 +0 query I rowsort SELECT DISTINCT 45 + 28 AS col0 @@ -3996,8 +4055,11 @@ SELECT ALL 61 * + 54 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 AS col1, ( + 0 ) AS col1 +---- +0 +84 query I rowsort SELECT 25 + - - ( - 73 ) - - + 62 + - 89 - + 87 * 45 - + 97 AS col2 @@ -4360,8 +4422,11 @@ 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\(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\. +query II valuesort 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 +---- +-2 +NULL query I rowsort SELECT ALL 76 * + 80 * 93 * - COALESCE ( + 60, - + 97 ) + + + 82 @@ -4943,8 +5008,11 @@ SELECT - + 93 + 15 + - - 82 * - MAX ( DISTINCT + 54 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) AS col2" at position 0 and "\(\- nullif\(min\(DISTINCT Int64\(15\)\), \(\- max\(Int64\(\-24\)\)\) \* min\(Int64\(85\)\) / Int64\(91\) \+ \(\- \(\- Int64\(33\)\)\) \+ \(\- Int64\(65\)\) \+ Int64\(2\) \* Int64\(\-45\)\)\) \+ Int64\(\-87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - CAST ( NULL AS FLOAT8 ) col2, - NULLIF ( + + ( MIN ( DISTINCT 15 ) ), - MAX ( + - 24 ) * MIN ( 85 ) / + + 91 + - - ( + 33 ) + - + 65 + 2 * - 45 ) + - 87 col2 +---- +-102 +NULL query I rowsort SELECT ALL 32 + 42 * - 12 AS col2 @@ -5855,8 +5923,11 @@ 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\(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\. +query II valuesort SELECT ALL - + 9 AS col0, 86 * - COALESCE ( - 33, - 3 * - 19 - COUNT ( * ) * 75 + - + 59 + 34, + 63, - 68 - + - 84 ) col0 +---- +-9 +2838 query I rowsort label-1108 SELECT ALL - 16 / MIN ( + - 76 ) / 83 @@ -5902,8 +5973,12 @@ SELECT ALL ( + COALESCE ( 10, + 51, - - CASE 30 WHEN - + 86 + CASE + 28 WHEN + 4 # Datafusion - Expected - 17 # Datafusion - Expected - NULL # Datafusion - Expected - 2016 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "Int64\(55\) \- \(\- CASE Int64\(1\) WHEN Int64\(\-44\) THEN NULL WHEN Int64\(\-66\) THEN nullif\(nullif\(Int64\(98\), Int64\(1\)\), Int64\(97\) \* Int64\(4\) / Int64\(63\)\) / Int64\(\-43\) \+ Int64\(31\) ELSE NULL END\) \+ \(\- CAST\(Int64\(72\) AS Float64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IRI valuesort SELECT DISTINCT 17 AS col2, 55 - + - CASE + 1 WHEN - 44 THEN NULL WHEN - 66 THEN + NULLIF ( + NULLIF ( + ( + 98 ), + 1 ), 97 * 4 / 63 ) / - 43 + + ( 31 ) ELSE NULL END + - CAST ( + 72 AS FLOAT8 ) AS col2, - 95 + + ( + 85 ) + + - 5 / + 83 + - - ( - - 93 ) + 75 + - ( - CASE 49 WHEN 56 + 35 / - 99 + - 86 / - 55 THEN - 56 ELSE 48 * + 38 + 34 END ) col0 +---- +17 +2016 +NULL query II rowsort SELECT 8, 67 AS col0 @@ -6038,8 +6113,11 @@ SELECT - 90 / 95 + - 50 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 3604 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col2" at position 0 and "Int64\(68\) \* Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 38 AS col2, 68 * + + 53 AS col2 +---- +-38 +3604 query II rowsort SELECT 8 AS col1, NULLIF ( - + 21, 94 ) @@ -6871,8 +6949,12 @@ 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\(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\. +query III valuesort SELECT DISTINCT + 68, - COUNT ( * ) * - MIN ( DISTINCT 33 ) AS col2, + 61 AS col2 +---- +33 +61 +68 query II rowsort label-1300 SELECT ALL 60 AS col0, 72 * COUNT ( * ) col1 @@ -7038,8 +7120,11 @@ SELECT ALL - 14 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(12\) / Int64\(24\) AS col2" at position 0 and "Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 * 12 / 24 col2, + 57 AS col2 +---- +39 +57 query II rowsort SELECT ( 92 ) * - 30 + 57 * + - ( 24 ) AS col2, 54 * + 24 AS col0 @@ -7125,8 +7210,11 @@ SELECT DISTINCT - - 91 - - 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8686 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(max\(Int64\(99\)\), \(\- coalesce\(\(\- \(\- sum\(\(\- CAST\(Int64\(8\) AS Int32\)\)\)\)\), Int64\(\-94\) \* Int64\(5\), Int64\(80\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* CASE \(\- Int64\(\-31\)\) WHEN Int64\(43\) THEN NULL WHEN \(\- nullif\(Int64\(2\), Int64\(\-47\)\)\) THEN \(\- Int64\(41\)\) ELSE NULL END \+ Int64\(\-53\) \* Int64\(14\)\) \* Int64\(87\) \+ \(\- Int64\(10\)\) \+ \(\- nullif\(Int64\(\-83\), Int64\(10\) \+ Int64\(2\)\)\) AS col1" at position 0 and "Int64\(7\) \- Int64\(50\) / Int64\(\-7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +14 +8686 query I rowsort SELECT 85 * + 42 @@ -7168,8 +7256,11 @@ SELECT ALL - - 4 AS col2, 31 * COUNT ( * ) + + 12 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 44 AS col1, + CAST ( NULL AS INTEGER ) AS col1 +---- +-44 +NULL query I rowsort label-1356 SELECT ALL 18 * + 97 + + COUNT ( * ) * - 71 @@ -7244,8 +7335,11 @@ 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\(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\. +query II valuesort 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 +---- +290 +NULL query I rowsort SELECT 13 + - 44 @@ -7607,8 +7701,11 @@ SELECT COUNT ( * ) + - 31 * + 53 * - 41 + + 75 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "Int64\(62\) \+ Int64\(\-79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 40 AS col0, + 62 + - 79 AS col0 +---- +-17 +40 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -7693,8 +7790,11 @@ SELECT - 33 * 47 / + 19 + + - 68 * + ( + - 34 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col1" at position 0 and "Int64\(\-21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 37 col1, - 21 AS col1 +---- +-21 +-37 query I rowsort SELECT NULLIF ( + 45, + 81 ) @@ -7835,8 +7935,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 7 * - 22 AS col1, NULLIF ( + ( + 8 ), - 33 * COUNT ( * ) ) + + - COUNT ( * ) AS col1 +---- +-154 +7 query I rowsort SELECT - ( + 26 ) * 89 + + 21 + + 59 AS col1 @@ -7903,8 +8006,11 @@ SELECT + 54 * 78 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "Int64\(87\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int32\) \* Int64\(\-69\) \* \(\- Int64\(\-3\)\) \+ Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 24 AS col1, 87 + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - 69 * - - 3 + 60 col1 +---- +24 +NULL query II rowsort label-1494 SELECT ALL - 93 + + 8 / 56 / - + ( + CAST ( + 80 AS INTEGER ) ), - 38 AS col0 @@ -7966,8 +8072,11 @@ SELECT DISTINCT 87 + - 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 33 AS col0, COUNT ( * ) AS col0 +---- +1 +33 query I rowsort label-1506 SELECT ALL + - 75 + ( + - 5 ) * 47 * + + COALESCE ( + 46, - - 3 / + COUNT ( * ) / + - 41 ) AS col2 @@ -8096,8 +8205,11 @@ SELECT ALL 53 + + 12 + + 65 # 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 "Int64\(6\) / \(\- Int64\(71\)\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 / - + 71 AS col2, + 5 AS col2 +---- +0 +5 query II rowsort label-1531 SELECT ALL CASE 52 WHEN + 7 THEN - COUNT ( * ) ELSE NULL END + - CAST ( NULL AS INTEGER ) + + 70 + - 39 AS col2, 46 * + 94 + 71 @@ -9242,14 +9354,20 @@ SELECT + 7 / + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(84\) \* CASE Int64\(\-4\) WHEN Int64\(97\) \* \(\- Int64\(\-39\)\) \+ Int64\(\-49\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(91\) WHEN Int64\(52\) THEN \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) ELSE Int64\(23\) / Int64\(68\) END \* Int64\(66\) \+ Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +47 +99 # 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\(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\. +query II valuesort SELECT + COUNT ( * ) * 44 AS col1, 24 * + - 12 AS col1 +---- +-288 +44 query I rowsort label-1755 SELECT ALL CASE 19 WHEN + + COUNT ( * ) * + 34 - 14 THEN + 78 END AS col1 @@ -9593,8 +9711,11 @@ SELECT ALL - COUNT ( * ) * 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col0" at position 0 and "min\(\(\- Int64\(72\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 97 AS col0, + MIN ( ALL - + 72 ) AS col0 +---- +-72 +97 query I rowsort label-1821 SELECT ALL 66 + - COUNT ( * ) @@ -9835,8 +9956,11 @@ SELECT - 59 + + 2 * 11 * 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - -71353 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-83\)\) AS col2" at position 0 and "Int64\(\-73\) \+ Int64\(48\) \* Int64\(27\) \* Int64\(\-55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( ALL - 83 ) AS col2, - 73 + + 48 * 27 * - 55 col2 +---- +-71353 +-83 query I rowsort SELECT + 64 * + 57 * + - 16 @@ -9960,8 +10084,11 @@ SELECT NULLIF ( - 69, - - CASE + - MAX ( ALL - - 38 ) WHEN + 35 THEN - 87 ELSE N # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(89\) \* count\(Int64\(88\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 62 AS col2, + 89 * + COUNT ( ALL + 88 ) AS col2 +---- +62 +89 query I rowsort label-1891 SELECT DISTINCT COUNT ( * ) * 35 - + 0 AS col0 @@ -10243,8 +10370,11 @@ SELECT ALL MIN ( ALL - 98 ) + - 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-24\)\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 24 AS col2, + 16 AS col2 +---- +16 +24 query II rowsort SELECT - - 14, 86 * + 86 AS col1 @@ -10265,8 +10395,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 81 AS col0, - COUNT ( * ) AS col0 +---- +-1 +81 query I rowsort SELECT DISTINCT 26 - - - 81 @@ -10291,8 +10424,11 @@ SELECT DISTINCT + ( - 2 ) * - 42 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1936 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(22\)\) \* Int64\(88\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( 22 ) * + 88 AS col1, 19 AS col1 +---- +19 +1936 query I rowsort SELECT 29 * + - 2 @@ -11319,8 +11455,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1674 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(54\) \* Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 54 * + 31 AS col0 +---- +1674 +NULL query I rowsort SELECT - 42 * - 66 @@ -11829,8 +11968,11 @@ NULL # 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\(99\) \+ Int64\(33\) AS col1" at position 0 and "Int64\(13\) / \(\- Int64\(\-36\)\) \* Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 99 + + 33 AS col1, 13 / - - 36 * 21 AS col1 +---- +0 +132 query I rowsort SELECT ALL - - 67 - - 57 col0 @@ -11971,8 +12113,11 @@ SELECT ( - - 79 ) * - 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5005 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* Int64\(55\) AS col1" at position 0 and "Int64\(\-83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 * 55 AS col1, ( - 83 ) col1 +---- +-83 +5005 query II rowsort SELECT - 83 + - - 87, 16 AS col0 @@ -12216,8 +12361,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "coalesce\(Int64\(\-67\), Int64\(\-18\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, COALESCE ( + ( - 67 ), - 18 ) AS col1 +---- +-67 +1 query I rowsort SELECT - 14 + + 23 col2 @@ -12317,8 +12465,11 @@ SELECT + ( - MAX ( 59 ) ) # 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\(\-10\) / Int64\(\-63\) AS col0" at position 0 and "Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 / - 63 AS col0, 15 col0 +---- +0 +15 query I rowsort label-2338 SELECT ALL + COUNT ( + 14 ) AS col0 @@ -12499,8 +12650,11 @@ SELECT ALL + + COUNT ( - + 52 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "\(\- coalesce\(Int64\(81\), Int64\(\-30\)\)\) \+ Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 col2, - COALESCE ( 81, - 30 ) + + 85 AS col2 +---- +4 +86 query I rowsort label-2373 SELECT - 50 / - 22 - - 66 / - + MAX ( ALL - NULLIF ( + + ( - + 52 ), + 89 ) ) AS col0 @@ -12699,14 +12853,20 @@ SELECT + 75 * + COALESCE ( - 39, + MAX ( ALL ( + + 55 ) ), - - ( + - COUNT ( - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 2856 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \- Int64\(76\) \+ \(\- Int64\(\-86\)\) \+ Int64\(23\) AS col0" at position 0 and "Int64\(51\) \* Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 53 - 76 + - - 86 + 23 AS col0, 51 * + 56 AS col0 +---- +2856 +86 # 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\(1\)\) AS count\(\*\) \- Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 14 AS col2, + COUNT ( * ) - - 33 AS col2 +---- +-14 +34 query I rowsort SELECT ALL - 62 * - - NULLIF ( + 33, 22 + + 51 ) AS col2 @@ -12852,8 +13012,11 @@ SELECT + 53 * 43 - - + 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-42\)\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + MIN ( - 42 ) AS col2, + 61 AS col2 +---- +-42 +61 query I rowsort SELECT - ( + 77 ) * 33 AS col0 @@ -12991,8 +13154,11 @@ SELECT - 40 + + ( - - 70 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \+ Int64\(\-56\) \+ \(\- CAST\(NULL AS Int32\)\) / \(\- Int64\(\-76\)\) \* Int64\(6\) \+ Int64\(55\) \+ Int64\(\-37\) / Int64\(61\) \+ Int64\(\-46\) AS col1" at position 0 and "Int64\(\-57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 46 + - 56 + - CAST ( NULL AS INTEGER ) / - - 76 * + 6 + + 55 + - 37 / 61 + - 46 AS col1, - 57 AS col1 +---- +-57 +NULL query I rowsort label-2466 SELECT ALL COUNT ( + 15 ) col1 @@ -13832,8 +13998,11 @@ SELECT - 17 / 67 + + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) col0, 61 AS col0 +---- +61 +NULL query I rowsort label-2626 SELECT - 6 * - 42 / + COUNT ( * ) col1 @@ -14026,8 +14195,11 @@ SELECT ALL + 94 * ( + 40 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4218 # Datafusion - Expected - 111 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* Int64\(\-74\) AS col0" at position 0 and "Int64\(29\) \+ \(\- Int64\(\-82\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 * - 74 AS col0, + 29 + ( - - 82 ) AS col0 +---- +-4218 +111 query I rowsort SELECT DISTINCT + 21 + - 82 AS col1 @@ -14042,8 +14214,11 @@ SELECT DISTINCT + 76 + ( + MAX ( + - 31 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - -339 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(24\) \+ Int64\(74\) \+ \(\- Int64\(23\)\) \* Int64\(19\) \* count\(nullif\(\(\- Int64\(46\)\), Int64\(\-14\) \- Int64\(15\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 21 + + COUNT ( * ) AS col0, 24 + + 74 + - + 23 * 19 * COUNT ( + NULLIF ( - + 46, - 14 - + + 15 ) ) AS col0 +---- +-20 +-339 query I rowsort label-2666 SELECT DISTINCT + + SUM ( + - 5 ) * + + 65 @@ -14115,8 +14290,11 @@ SELECT DISTINCT CAST ( + - 32 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 105 # Datafusion - Expected - -1638 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \+ Int64\(58\) AS col0" at position 0 and "Int64\(\-18\) \* Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 + 58 AS col0, - 18 * + 91 col0 +---- +-1638 +105 query I rowsort label-2680 SELECT ALL COALESCE ( + - ( SUM ( ALL - 73 ) ), - 32 + - 4, 30 + - + COUNT ( * ) + - + 51 - - ( + - 28 ) - + 34 * 9 * + - ( - 23 ) * 44 * + COUNT ( * ) * + 20 / + 85 * + 46 * - NULLIF ( - - 41, + - MAX ( ALL 78 ) ) ) @@ -14365,8 +14543,12 @@ SELECT ALL + 90 * - + 16 - + - 4 * - + 98 - - 78 # Datafusion - Expected - -58 # Datafusion - Expected - NULL # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / Int64\(88\) \+ Int64\(\-26\) AS col1" at position 1 and "Int64\(\-29\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + - 58 AS col0, CAST ( NULL AS INTEGER ) / 88 + + - 26 AS col1, + ( + - 29 ) AS col1 +---- +-29 +-58 +NULL query I rowsort SELECT ALL + - NULLIF ( + + 19, 61 ) AS col2 @@ -14381,8 +14563,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(\-21\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 AS col1, COUNT ( * ) * - - 21 AS col1 +---- +21 +8 query I rowsort SELECT ALL 76 * - 81 AS col1 @@ -14408,8 +14593,11 @@ SELECT + + COALESCE ( + + 74, + + 78 + - 1 ) * - 97 + - 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 AS col1, 60 AS col1 +---- +52 +60 query II rowsort label-2736 SELECT ALL 10 AS col2, COUNT ( * ) @@ -14435,8 +14623,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(\-72\) AS Int32\)\)\) \+ CAST\(Int64\(\-14\) AS Int32\) AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - CAST ( + - 72 AS INTEGER ) + CAST ( + - 14 AS INTEGER ) AS col0, 53 AS col0 +---- +-86 +53 query II rowsort SELECT ALL 16, 69 AS col1 @@ -14472,8 +14663,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * + + 77 AS col0, - 21 AS col0 +---- +-21 +77 query I rowsort label-2748 SELECT DISTINCT - CAST ( - MAX ( - 69 ) AS INTEGER ) + + 82 @@ -14554,8 +14748,11 @@ SELECT DISTINCT - + 75 * 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2714 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(83\) WHEN Int64\(23\) \* \(\- nullif\(\(\- Int64\(4\)\), Int64\(\-23\) \* Int64\(40\)\)\) THEN Int64\(35\) WHEN Int64\(24\) THEN \(\- Int64\(26\)\) \* Int64\(\-78\) ELSE NULL END\) \* Int64\(\-73\) AS col1" at position 0 and "Int64\(46\) \* Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CASE 83 WHEN 23 * ( + + ( - NULLIF ( - + ( 4 ), - 23 * 40 ) ) ) THEN 35 WHEN + 24 THEN - + 26 * - 78 ELSE NULL END * - 73 AS col1, 46 * + 59 AS col1 +---- +2714 +NULL query I rowsort label-2764 SELECT 88 * - 94 / + 82 * CAST ( NULL AS INTEGER ) + + - 4 - - + ( - 62 ) * - - 25 @@ -14591,8 +14788,11 @@ 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\(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\. +query II valuesort 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 +---- +1716 +56969 query I rowsort label-2771 SELECT - 7 * + + CAST ( NULL AS INTEGER ) + 43 - 79 AS col2 @@ -14612,8 +14812,11 @@ SELECT DISTINCT 7 + - 36 + - + 47 + + 56 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col2" at position 0 and "Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 79 AS col2, 22 AS col2 +---- +22 +79 query I rowsort label-2775 SELECT 26 * - COUNT ( * ) AS col1 @@ -14678,8 +14881,11 @@ SELECT 86 - - + COUNT ( ALL 85 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 27470 # Datafusion - Expected - -1420 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* Int64\(82\) \* Int64\(5\) AS col1" at position 0 and "Int64\(71\) \* Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 * + 82 * + 5 AS col1, 71 * + + ( + - 20 ) AS col1 +---- +-1420 +27470 query I rowsort SELECT 70 + - ( + 85 ) * - + 17 @@ -14767,8 +14973,11 @@ SELECT + - 15 - + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -1504 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "Int64\(\-47\) \* Int64\(\-1\) \* Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 88 AS col1, - 47 * - 1 * - 32 AS col1 +---- +-1504 +88 query I rowsort label-2805 SELECT - + 8 * - 95 + - + ( + COUNT ( * ) ) * - 90 * + MAX ( DISTINCT + 21 ) AS col0 @@ -14854,8 +15063,11 @@ 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\(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\. +query II valuesort SELECT - ( + - 35 ) col2, + COALESCE ( - COUNT ( * ), + - 2 / - + ( COALESCE ( - 50, - 22 * - 8, + 22 + + - 74, - - 39 ) ) - - 70, - 11 ) AS col2 +---- +-1 +35 query I rowsort SELECT ALL + 57 * - - 87 @@ -15081,8 +15293,11 @@ SELECT + MAX ( - 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(93\)\), CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( - + 93, + CAST ( NULL AS INTEGER ) ) AS col0, - COUNT ( * ) AS col0 +---- +-1 +-93 query I rowsort label-2866 SELECT ALL - NULLIF ( - 49, + - 37 + - - CASE + 37 WHEN - - 43 THEN - 0 END + - 16 + - + 74 * - COUNT ( * ) / 74 * + 5 + + - 63 ) * - 63 AS col1 @@ -17213,8 +17428,11 @@ SELECT DISTINCT COUNT ( * ), 80 + + - 82 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-53\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 53 col1, + COUNT ( * ) AS col1 +---- +1 +53 query I rowsort label-3275 SELECT DISTINCT + SUM ( DISTINCT 21 ) col1 @@ -17807,8 +18025,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(63\) END \* Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 73 * - 28 AS col1, + CASE - 27 WHEN + MIN ( - 70 ) * 10 THEN + COUNT ( * ) * + 63 END * + 78 AS col1 +---- +-2044 +NULL query I rowsort SELECT DISTINCT + 98 + - + ( 75 ) AS col2 @@ -18069,8 +18290,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1936 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* Int64\(22\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 88 * + 22 AS col0, ( + 26 ) AS col0 +---- +1936 +26 query II rowsort label-3440 SELECT ALL + COUNT ( * ) * - - COUNT ( * ) AS col2, + NULLIF ( - + COUNT ( * ), - - 80 ) / - - CAST ( NULL AS INTEGER ) / + NULLIF ( + COUNT ( ALL - 19 ), + 29 ) @@ -18481,8 +18705,11 @@ SELECT ALL 99 + + - 72 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "min\(\(\- \(\- CASE \(\- Int64\(\-33\)\) WHEN Int64\(8\) THEN Int64\(9\) / Int64\(78\) \+ Int64\(\-5\) \+ \(\- Int64\(\-35\)\) ELSE Int64\(39\) END\)\)\) \* Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 AS col2, MIN ( + - ( - CASE - - 33 WHEN 8 THEN 9 / + + 78 + + - 5 + - - 35 ELSE 39 END ) ) * - 2 AS col2 +---- +-78 +81 query II rowsort SELECT 17 AS col1, 94 @@ -18579,8 +18806,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 99 AS col2, + COUNT ( * ) + + 51 AS col2 +---- +-99 +52 query I rowsort SELECT 20 + - 71 AS col1 @@ -18728,8 +18958,11 @@ SELECT DISTINCT + - MIN ( 31 ) / - ( - 89 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) / Int64\(68\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 27 / 68 AS col2, + COUNT ( * ) AS col2 +---- +0 +1 query II rowsort SELECT ALL 93 AS col1, ( - 73 ) AS col2 @@ -18837,8 +19070,11 @@ SELECT + COUNT ( DISTINCT + + 34 ), + 21 / NULLIF ( 34, ( + - 48 ) * - 0 - - 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - -102 # Datafusion - Expected - 3709 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \+ Int64\(\-68\) AS col2" at position 0 and "Int64\(\-54\) \* \(\- Int64\(70\)\) \+ Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 34 + - 68 AS col2, - 54 * + ( - + 70 ) + - 71 col2 +---- +-102 +3709 query I rowsort label-3586 SELECT MAX ( DISTINCT + + 57 ) @@ -19195,8 +19431,11 @@ SELECT COUNT ( ALL - - 22 ) * ( + - COUNT ( * ) ) + - - 51 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 3950 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) / Int64\(\-13\) AS col2" at position 0 and "Int64\(50\) \* Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 / - 13 col2, 50 * + + 79 AS col2 +---- +-7 +3950 query I rowsort label-3653 SELECT ALL - CASE 42 WHEN + 47 + - - COUNT ( * ) * - + 59 * - 64 THEN NULL WHEN 50 THEN + 92 * + 15 - + COUNT ( * ) + + 0 * - 5 END AS col1 @@ -19548,8 +19787,11 @@ SELECT + NULLIF ( + + 10, - SUM ( ALL 31 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - -4073 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col0" at position 0 and "Int64\(\-93\) \+ Int64\(98\) \+ Int64\(\-31\) \- Int64\(71\) \* Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 88 ) AS col0, - 93 + + 98 + - 31 - + 71 * + 57 AS col0 +---- +-4073 +-88 query I rowsort label-3721 SELECT + CASE + + COUNT ( * ) WHEN + + 8 * - 10 THEN + 51 END * + 6 * - 82 + + - 29 + - + 85 col2 @@ -20314,8 +20556,11 @@ SELECT 16 AS col0, + 63 # 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 "Int64\(40\) AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 40 AS col1, + 57 AS col1 +---- +40 +57 query I rowsort SELECT 65 * - 10 AS col1 @@ -21331,8 +21576,12 @@ SELECT DISTINCT SUM ( ALL - 93 ) AS col0 # Datafusion - Expected - 63 # Datafusion - Expected - -31 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(63\)\) AS col2" at position 0 and "Int64\(\-42\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT MIN ( ALL 63 ) AS col2, MAX ( - 31 ), - 42 col2 +---- +-31 +-42 +63 query I rowsort label-4060 SELECT + + 9 / + SUM ( ALL + 16 ) AS col0 @@ -21634,8 +21883,11 @@ SELECT DISTINCT - - ( + 50 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -2409 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(DISTINCT Int64\(86\)\)\)\) AS col1" at position 0 and "Int64\(51\) \* Int64\(\-48\) \+ \(\- Int64\(\-39\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - ( + MAX ( DISTINCT + + 86 ) ) ) AS col1, 51 * - 48 + - - 39 AS col1 +---- +-2409 +86 query I rowsort SELECT ALL - 58 + + + 83 AS col1 @@ -21787,8 +22039,12 @@ SELECT - SUM ( + - 39 ) # Datafusion - Expected - -12 # Datafusion - Expected - 5520 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \+ Int64\(\-21\) AS col0" at position 0 and "\(\- Int64\(49\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 9 + - 21 AS col0, + 23 * 10 * - - 24 AS col1, - + 49 AS col0 +---- +-12 +-49 +5520 query I rowsort label-4146 SELECT 25 / + COUNT ( * ) AS col0 @@ -21859,8 +22115,11 @@ SELECT - 84 * - 98 + - 20 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* \(\- max\(CAST\(NULL AS Float64\)\)\) \+ Int64\(50\) \* Int64\(88\) \* \(\- Int64\(0\)\) \* \(\- max\(DISTINCT \(\- Int64\(0\)\)\)\) \+ Int64\(54\) \+ \(\- Int64\(38\)\) AS col0" at position 0 and "Int64\(82\) \- Int64\(21\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL 68 * - + MAX ( + CAST ( NULL AS FLOAT8 ) ) + 50 * 88 * - - 0 * - MAX ( DISTINCT - - 0 ) + 54 + - + 38 col0, + 82 - + 21 * + + COUNT ( * ) AS col0 +---- +61 +NULL query I rowsort label-4160 SELECT ALL COUNT ( * ) + - COUNT ( * ) * + + 22 @@ -22314,8 +22573,12 @@ NULL # Datafusion - Expected - 105 # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \+ Int64\(38\) AS col1" at position 0 and "Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 67 + 38 AS col1, 82 AS col1, - + 58 + 11 + - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + 91 + 80 * + 82 + - 62 + 23 + COUNT ( * ) - + + COALESCE ( ( 87 ), 89 ) - 69 + + + 55 AS col0 +---- +105 +82 +NULL query I rowsort SELECT ALL - 4 + - + ( 52 ) @@ -22351,8 +22614,11 @@ SELECT DISTINCT + 22 + + + 50 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 5742 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \+ Int64\(36\) AS col0" at position 0 and "\(\- \(\- Int64\(58\)\)\) \* Int64\(\-9\) \* \(\- Int64\(11\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 50 + + 36 AS col0, - ( + - ( + 58 ) ) * - 9 * - + ( 11 ) AS col0 +---- +5742 +86 query I rowsort label-4253 SELECT CAST ( + COUNT ( ALL + 36 ) AS INTEGER ) * + - 55 col0 @@ -22609,8 +22875,11 @@ SELECT ALL + 98 * 54 + - 73 * COALESCE ( - 29, + + 94 * + 4 * + 75 * 42 - 44 ) + # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 90 AS col1, 56 AS col1 +---- +56 +90 query I rowsort label-4303 SELECT 4 * + - CAST ( CASE + 83 WHEN - 64 THEN - + 35 * 20 * - - 25 + 6 ELSE + COALESCE ( + - COUNT ( * ), + - 27 ) END AS INTEGER ) * - - 98 + + ( + COUNT ( * ) ) + + - 54 + + + COALESCE ( - 28, + 39, - 92 * + 75 ) * 57 AS col2 @@ -22687,8 +22956,11 @@ SELECT COUNT ( + + 69 ) AS col1, - 80 * - MIN ( - + 47 ) * - + 4 + 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(20\), Int64\(\-5\) \+ Int64\(1\) \- \(\- coalesce\(\(\- Int64\(95\)\), \(\- \(\- CAST\(Int64\(\-78\) AS Int32\)\)\), Int64\(\-53\)\)\) / Int64\(6\)\) \+ \(\- Int64\(81\)\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( + 20, + - 5 + 1 - - COALESCE ( - + 95, - - CAST ( - 78 AS INTEGER ), + - 53 ) / + 6 ) + ( - + 81 ) AS col0, 78 AS col0 +---- +-61 +78 query I rowsort SELECT ALL - ( 16 ) * + 29 @@ -23196,8 +23468,11 @@ SELECT - ( 86 ) * - + 9 * + 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8822 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) \* Int64\(\-36\) \- Int64\(\-16\) \+ Int64\(94\) \* Int64\(73\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 54 * - 36 - - 16 + + 94 * + 73 AS col0, 23 AS col0 +---- +23 +8822 query I rowsort label-4416 SELECT MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col1 @@ -23268,8 +23543,11 @@ SELECT - - MAX ( DISTINCT - 90 ) + - - 42 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 444 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) / Int64\(99\) AS col2" at position 0 and "Int64\(6\) \* \(\- Int64\(74\)\) \* \(\- count\(Int64\(\-95\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 65 / + 99 col2, 6 * - + 74 * - + COUNT ( - 95 ) AS col2 +---- +0 +444 query I rowsort label-4430 SELECT - CAST ( 39 AS INTEGER ) AS col1 @@ -24637,8 +24915,11 @@ SELECT ALL - 49 - + 85 * + - ( COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col1" at position 0 and "Int64\(51\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 22 col1, + ( + 51 ) * + COUNT ( * ) AS col1 +---- +-22 +51 query I rowsort SELECT 81 + - 91 AS col1 @@ -25040,14 +25321,20 @@ 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\(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\. +query II valuesort SELECT ALL + - 77 + COUNT ( * ) * + 94 * 51 col0, ( + 22 ) - ( - - 66 ) AS col0 +---- +-44 +4717 # Datafusion - Datafusion expected results: # Datafusion - Expected - -106 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(67\)\) \+ Int64\(\-38\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) + - + 67 + - 38 * + COUNT ( * ) AS col0, - 72 AS col0 +---- +-106 +-72 query I rowsort SELECT DISTINCT 22 * 45 AS col1 @@ -26237,8 +26524,11 @@ SELECT ALL + COUNT ( * ), 72 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - -141 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(32\)\) AS col0" at position 0 and "Int64\(\-7\) \* \(\- sum\(Int64\(\-26\)\)\) \- Int64\(\-41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 32 AS col0, - 7 * - SUM ( + - 26 ) - - 41 AS col0 +---- +-141 +-32 query I rowsort label-4999 SELECT - + COUNT ( * ) * + - ( - COUNT ( * ) ) * 73 * + COUNT ( * ) - 81 AS col1 @@ -26275,8 +26565,11 @@ SELECT + - 47 + 45 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 5 AS col0, + 49 AS col0 +---- +49 +5 query I rowsort label-5006 SELECT + NULLIF ( COALESCE ( - - 75, - MAX ( - 35 ) + 2 * 14 ), 42 ) @@ -26820,8 +27113,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, 62 + - 87 AS col0 +---- +-1 +-25 query II rowsort SELECT 29, 29 AS col1 @@ -27283,8 +27579,12 @@ SELECT - 44 * - 83 # Datafusion - Expected - 71 # Datafusion - Expected - 0 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(71\), Int64\(14\)\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL ( COALESCE ( + + 71, 14 ) ) AS col1, + 20 / 29 * 21 * - + 35 * 22 AS col0, + + 42 AS col1 +---- +0 +42 +71 query I rowsort label-5197 SELECT - ( - - COUNT ( * ) ) * - - COUNT ( * ) @@ -27400,8 +27700,11 @@ 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\(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\. +query II valuesort SELECT ALL - + COUNT ( * ) AS col1, + COUNT ( 96 ) + + 6 + + 81 / + - 89 * - 87 AS col1 +---- +-1 +7 query II rowsort label-5219 SELECT DISTINCT + + ( + - NULLIF ( 79, + 71 ) ) - - SUM ( + ( 78 ) ) * - COUNT ( * ) + + 0, 31 - - - 73 AS col0 @@ -27424,8 +27727,12 @@ SELECT - 42 * + 9 * - - 47 + - 42 * 7 AS col1 # Datafusion - Expected - 77 # 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 "Int64\(\-3\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + + 77, - 48 AS col1, - 3 AS col1 +---- +-3 +-48 +77 query I rowsort SELECT + 62 * + 12 AS col1 @@ -27641,8 +27948,11 @@ SELECT - 86 * - 9 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1221 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(33\)\) \* Int64\(37\) AS col0" at position 0 and "Int64\(\-99\) \+ Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( + 33 ) * + 37 AS col0, - 99 + 77 AS col0 +---- +-22 +1221 query I rowsort label-5264 SELECT DISTINCT 98 + - CAST ( NULL AS INTEGER ) + - 41 AS col0 @@ -27663,8 +27973,11 @@ SELECT DISTINCT 3 + + ( 98 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col2" at position 0 and "Int64\(\-74\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 73 AS col2, ( - 74 ) - + COUNT ( * ) AS col2 +---- +-75 +73 query II rowsort label-5268 SELECT ALL 53, + MAX ( - 44 ) / + - COUNT ( * ) + - + 2 * + MIN ( DISTINCT - + 3 ) AS col2 @@ -28093,8 +28406,11 @@ SELECT DISTINCT ( - 93 ) + 53 * 66 * - + 0 * + 57 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT ALL - 89 AS col0, + 98 AS col0 +---- +-89 +98 query I rowsort SELECT - 54 + + + 22 AS col1 @@ -28837,8 +29153,11 @@ SELECT DISTINCT 30, + CAST ( 64 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18967 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \+ Int64\(9\) \* Int64\(\-32\) \* Int64\(66\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + 41 ) + + 9 * + - 32 * + + 66 AS col2, 16 AS col2 +---- +-18967 +16 query I rowsort label-5488 SELECT ALL ( - 10 ) + - COUNT ( * ) / 29 - ( - 75 ) * + + 69 @@ -29366,8 +29685,11 @@ SELECT DISTINCT COUNT ( * ) * + CAST ( - MAX ( ALL - 29 ) AS INTEGER ) # 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\(\-1\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 1 AS col1, + 67 AS col1 +---- +-1 +67 query I rowsort SELECT ALL + ( - ( + ( - 51 ) ) ) * - 83 * - + 39 AS col2 @@ -29431,8 +29753,11 @@ SELECT + SUM ( + + 66 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 12 AS col2, 35 AS col2 +---- +-12 +35 query II rowsort SELECT 72 AS col2, 35 AS col1 @@ -29468,8 +29793,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(24\)\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 24 AS col2, 35 AS col2 +---- +-24 +35 query II rowsort SELECT ALL - - 42 AS col0, + 82 @@ -29844,8 +30172,11 @@ SELECT ALL - 96 + + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \+ Int64\(\-2\) \* Int64\(54\) AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 + - 2 * ( + 54 ) AS col2, 58 AS col2 +---- +-70 +58 query I rowsort SELECT 47 + - 55 AS col2 @@ -30184,8 +30515,11 @@ SELECT - - 78 - - 83 + + - COUNT ( * ) * - 45 * - - 41 * 29 + 38 AS col1, - 54 A # 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\(\-31\)\) WHEN Int64\(97\) THEN Int64\(90\) ELSE Int64\(\-81\) / CASE Int64\(55\) WHEN \(\- max\(Int64\(\-36\)\)\) \+ \(\- Int64\(\-78\)\) \+ Int64\(20\) THEN \(\- Int64\(\-34\)\) \* Int64\(50\) ELSE NULL END / Int64\(49\) \+ \(\- coalesce\(Int64\(99\), Int64\(\-72\)\)\) END AS col2" at position 0 and "Int64\(3\) / Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CASE - - 31 WHEN 97 THEN + + 90 ELSE + - 81 / + CASE + 55 WHEN + - MAX ( ALL - 36 ) + - - 78 + 20 THEN - ( - 34 ) * 50 ELSE NULL END / + + 49 + - COALESCE ( 99, - 72 ) END AS col2, 3 / - 81 AS col2 +---- +0 +NULL query I rowsort label-5743 SELECT - 56 + + 64 / + COUNT ( * ) @@ -30928,8 +31262,11 @@ SELECT DISTINCT SUM ( + ( - + 91 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- Int64\(36\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 + COUNT ( * ) AS col0, ( - + 36 ) AS col0 +---- +-36 +49 query II rowsort label-5884 SELECT + 66 * COUNT ( * ) AS col0, + ( + + 52 ) - 40 @@ -31034,8 +31371,11 @@ SELECT ALL + 55 * 30 * + ( 99 ) + + - ( 41 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-49\)\) \+ Int64\(\-38\) AS col2" at position 0 and "Int64\(\-31\) \+ Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 49 + + - 38 AS col2, - 31 + + 49 AS col2 +---- +11 +18 query I rowsort label-5904 SELECT ALL + - COUNT ( * ) * 72 AS col2 @@ -31127,8 +31467,11 @@ SELECT ALL 94 + + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - -2564 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col1" at position 0 and "Int64\(49\) \* Int64\(\-51\) \- Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 34 AS col1, + 49 * - 51 - + 65 AS col1 +---- +-2564 +-34 query I rowsort label-5921 SELECT - + 82 / 88 / - 21 + + - 56 - - 18 + - ( + CAST ( NULL AS INTEGER ) ) + + 12 / + 85 * ( - + 62 ) / - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - COUNT ( * ) / - 20 + - COUNT ( 16 ) AS col1 @@ -31544,8 +31887,11 @@ SELECT + MAX ( - - 42 ) # 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 col2" at position 0 and "Int64\(55\) / Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 99 AS col2, 55 / + 6 AS col2 +---- +9 +99 query I rowsort label-6001 SELECT ALL + 64 * - COUNT ( * ) + 31 * - - 68 * + - 71 AS col1 @@ -31665,8 +32011,11 @@ SELECT ALL 76 AS col1, + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - -2648 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col1" at position 0 and "\(\- CAST\(Int64\(67\) AS Int32\)\) \* Int64\(40\) \- Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 87 AS col1, - CAST ( + + 67 AS INTEGER ) * 40 - - 32 AS col1 +---- +-2648 +-87 query II rowsort label-6024 SELECT ALL - COUNT ( * ) * + + 71 * + - 18 * - - 60 * - - 57 + + 39 AS col1, COUNT ( * ) @@ -31866,8 +32215,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 2550 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(38\) AS Int32\) AS col0" at position 0 and "Int64\(50\) \* Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( 38 AS INTEGER ) AS col0, 50 * + + 51 AS col0 +---- +2550 +38 query I rowsort label-6061 SELECT DISTINCT 10 + - + COUNT ( * ) * - 85 @@ -32085,8 +32437,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -41310 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* Int64\(1\) \* \(\- Int64\(85\)\) \* Int64\(27\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 18 * + 1 * - + 85 * 27 AS col0, 85 AS col0 +---- +-41310 +85 query I rowsort label-6102 SELECT + CASE COUNT ( * ) WHEN - 16 THEN - - 81 + + 66 WHEN - 44 * + 25 THEN 35 + 4 END AS col2 @@ -32155,8 +32510,12 @@ SELECT - 67 * + 27 # Datafusion - Expected - 56 # Datafusion - Expected - 9 # 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\(\-84\) \+ Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 56 AS col0, - 84 + + 93 col0, + CAST ( NULL AS INTEGER ) +---- +56 +9 +NULL query I rowsort label-6115 SELECT + MAX ( - 3 ) AS col1 @@ -32348,8 +32707,11 @@ SELECT 36 - - 85 * + ( + + COUNT ( * ) ) * + ( - 7 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -6336 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col1" at position 0 and "Int64\(72\) \* Int64\(\-88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 73 AS col1, 72 * - 88 AS col1 +---- +-6336 +73 query I rowsort SELECT DISTINCT - ( - 62 ) * + 96 * + 48 * + + 99 AS col1 @@ -32667,8 +33029,11 @@ SELECT ALL 90 + - 64 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - -4059 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 0 and "Int64\(99\) \* Int64\(\-41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 AS col0, 99 * - 41 AS col0 +---- +-4059 +70 query I rowsort label-6212 SELECT + CASE - + NULLIF ( 24, + 46 / + 64 + + + ( 26 ) ) WHEN 45 + ( - - SUM ( 20 ) ) * 36 - - COUNT ( * ) THEN 43 END - + 54 + - 19 AS col1 @@ -32847,8 +33212,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 91 + + + 90 AS col2, - 85 + - COALESCE ( - + 11, - 6 ) / COUNT ( * ) * + ( - 95 ) AS col2 +---- +-1130 +181 query I rowsort label-6246 SELECT DISTINCT 84 / - 39 @@ -33206,8 +33574,12 @@ SELECT DISTINCT 79 - - - 42 col1 # Datafusion - Expected - 1 # Datafusion - Expected - -98 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) / Int64\(29\) AS col2" at position 0 and "\(\- Int64\(98\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 37 / + 29 AS col2, ( - + 98 ) AS col2, + - ( + 21 ) AS col0 +---- +-21 +-98 +1 query I rowsort label-6314 SELECT COUNT ( * ) * + 88 / + + 44 @@ -33842,8 +34214,11 @@ SELECT + 92 + - 47 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 276 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(49\)\) AS col1" at position 0 and "CAST\(Int64\(6\) AS Int32\) \* Int64\(\-46\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + SUM ( ALL + 49 ) AS col1, CAST ( + 6 AS INTEGER ) * - 46 * + - COUNT ( * ) AS col1 +---- +276 +49 query I rowsort label-6434 SELECT + 36 * + COUNT ( + 99 ) AS col1 @@ -35175,8 +35550,11 @@ SELECT 11 / COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-62\)\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 62 AS col0, + ( + 46 ) AS col0 +---- +46 +62 query I rowsort SELECT - 32 * + 49 @@ -35246,8 +35624,11 @@ SELECT DISTINCT - 9 / + 48 * - + 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \- Int64\(39\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 - + 39 AS col2, + 14 AS col2 +---- +14 +19 query II rowsort SELECT ALL - 91 * - + 38 * 27 AS col2, - 17 @@ -35273,8 +35654,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) + ( + 84 ) + + 66 * 49 AS col1, 91 + - SUM ( ALL - 54 ) * 59 AS col1 +---- +3277 +3317 query I rowsort SELECT - - 5 - + - 77 + 98 @@ -35673,8 +36057,11 @@ SELECT DISTINCT NULLIF ( - 78, 44 ) * - - 57 * - + 2 AS col1, + ( - 70 ) + + MAX # Datafusion - Datafusion expected results: # Datafusion - Expected - 1509 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \* Int64\(69\) \+ Int64\(\-9\) AS col1" at position 0 and "Int64\(\-99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 * 69 + - 9 AS col1, - 99 AS col1 +---- +-99 +1509 query I rowsort label-6787 SELECT ALL + CAST ( + + 74 AS INTEGER ) * - 9 col2 @@ -35868,8 +36255,11 @@ SELECT + NULLIF ( 80, + CAST ( ( + 55 ) AS INTEGER ) - - 31 ) * + 99 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 AS col0, + 63 col0 +---- +37 +63 query I rowsort SELECT ALL - 92 * - 26 * 97 @@ -35889,8 +36279,11 @@ SELECT - CAST ( - 45 AS INTEGER ) / + + 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3760 # Datafusion - Expected - -2706 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* Int64\(\-40\) AS col1" at position 0 and "Int64\(\-41\) \* Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 94 * - 40 AS col1, - 41 * + 66 AS col1 +---- +-2706 +-3760 query I rowsort SELECT + 66 * + + 61 + + 83 @@ -36149,8 +36542,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \+ \(\- sum\(DISTINCT Int64\(\-29\)\)\) AS col0" at position 0 and "Int64\(\-72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 45 + - SUM ( DISTINCT - 29 ) col0, - 72 AS col0 +---- +-16 +-72 query I rowsort label-6878 SELECT ALL + ( + ( + COUNT ( * ) ) ) - + CASE - + 91 WHEN + 82 + - 31 THEN NULL WHEN 79 * ( - + 62 ) * 74 + 66 + 23 THEN 83 END @@ -36226,8 +36622,11 @@ SELECT + ( + 16 ) * 64 / + 84 - - NULLIF ( MAX ( 3 ), - ( - + 32 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - -57 -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\) \+ Int64\(\-64\) \- \(\- Int64\(0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 col1, 7 + - 64 - - ( - 0 ) AS col1 +---- +-57 +47 query I rowsort label-6893 SELECT + 20 / + 45 + - 39 @@ -36673,8 +37072,11 @@ SELECT + + 41 * + 84 + 76 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col0" at position 0 and "Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 71 AS col0, - 42 col0 +---- +-42 +71 query I rowsort label-6978 SELECT CASE - 42 WHEN + 70 * + 31 * + 15 * 4 THEN NULL ELSE - COUNT ( * ) * - NULLIF ( - 56, + 81 ) + 90 END @@ -36767,8 +37169,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1073 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* Int64\(37\) AS col2" at position 0 and "nullif\(\(\- max\(DISTINCT Int64\(\-64\)\)\), Int64\(\-16\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 * 37 AS col2, + NULLIF ( - MAX ( DISTINCT + - 64 ), - 16 ) * - CAST ( NULL AS INTEGER ) AS col2 +---- +1073 +NULL query I rowsort SELECT DISTINCT + 83 * - 69 AS col2 @@ -37478,8 +37883,11 @@ SELECT ALL - COUNT ( * ) * - - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 377300 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-17\) WHEN Int64\(\-6\) THEN Int64\(84\) END \+ Int64\(96\) \+ nullif\(Int64\(27\), Int64\(1\)\) AS col0" at position 0 and "Int64\(\-14\) \* Int64\(\-35\) \* \(\- Int64\(55\)\) \* Int64\(\-14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CASE - 17 WHEN + - 6 THEN 84 END + 96 + NULLIF ( + + 27, + 1 ) AS col0, - 14 * - 35 * - + 55 * + - 14 AS col0 +---- +377300 +NULL query I rowsort label-7131 SELECT DISTINCT - 96 * - 85 + - 96 + + 3 / - COUNT ( * ) @@ -37803,8 +38211,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 74 + + 27 AS col1, - COUNT ( * ) + + + 88 AS col1 +---- +-47 +87 query I rowsort SELECT + - 54 * - 40 - - - 55 @@ -38299,8 +38710,11 @@ SELECT ALL COUNT ( * ) + 96 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 50 AS col1, 87 AS col1 +---- +-50 +87 query II rowsort label-7286 SELECT MAX ( - + ( 20 ) ) / + + 1 + - - 17, 97 AS col1 @@ -38445,8 +38859,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 1960 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "Int64\(20\) \* \(\- Int64\(\-98\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 AS col1, + 20 * - ( - 98 ) AS col1 +---- +1960 +71 query I rowsort SELECT - ( - 91 ) * 60 @@ -38873,8 +39290,11 @@ SELECT 39, NULLIF ( 40, + 9 * + + 82 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18954 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* Int64\(\-9\) \* Int64\(26\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(Int64\(84\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 * - 9 * + 26 AS col0, + COUNT ( * ) * + - CAST ( + + 84 AS INTEGER ) col0 +---- +-18954 +-84 query II rowsort SELECT ALL 91, ( + 12 ) AS col2 @@ -38895,8 +39315,11 @@ SELECT DISTINCT + ( - 99 ) + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-87\) AS Int32\) / Int64\(\-13\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( - 87 AS INTEGER ) / - 13 AS col2, COUNT ( * ) - - - COUNT ( * ) AS col2 +---- +0 +6 query I rowsort label-7400 SELECT + 82 / + + 37 AS col1 @@ -39014,8 +39437,11 @@ SELECT ALL + 14 * - - 42 AS col0, - ( - 94 ) + 32 + - + 35 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 158 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \- Int64\(\-64\) AS col2" at position 0 and "Int64\(16\) \* Int64\(0\) \+ Int64\(\-34\) / Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 - - 64 col2, + 16 * 0 + - 34 / 73 AS col2 +---- +0 +158 query I rowsort label-7423 SELECT ALL - 41 + - CAST ( NULL AS INTEGER ) @@ -39055,8 +39481,11 @@ 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\(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\. +query II valuesort SELECT + 41 * - COUNT ( * ) AS col0, 10 * + NULLIF ( + 16, ( + - 89 ) ) AS col0 +---- +-41 +160 query I rowsort SELECT + 80 + + 12 @@ -39472,8 +39901,11 @@ NULL # 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 "\(\- Int64\(\-1\)\) AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + - 1 ) AS col2, + 58 AS col2 +---- +1 +58 query I rowsort label-7510 SELECT 64 / + + 84 @@ -39998,8 +40430,11 @@ SELECT + MIN ( + + 24 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 86 AS col2, 18 AS col2 +---- +18 +86 query I rowsort SELECT 70 * 48 + + 93 @@ -40225,8 +40660,11 @@ SELECT 22 - - + 54 * + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \+ Int64\(\-35\) AS col2" at position 0 and "Int64\(\-18\) \+ Int64\(5\) \+ Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 6 + - 35 AS col2, - 18 + 5 + + 36 AS col2 +---- +-29 +23 query I rowsort SELECT ALL 70 + - 42 AS col2 @@ -40483,8 +40921,11 @@ SELECT ALL + + 77 / + + COALESCE ( 84, + - CASE + + MAX ( DISTINCT - 11 ) WHEN + # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) / Int64\(87\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 19 / + 87 - + COUNT ( * ) AS col1, 83 AS col1 +---- +-1 +83 query I rowsort label-7702 SELECT ALL 28 / + 48 + - - 38 @@ -40674,8 +41115,12 @@ SELECT - 59 * + + 16 * + + 95 + + - 92 # Datafusion - Expected - 24 # Datafusion - Expected - -154 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \+ \(\- Int64\(70\)\) AS col0" at position 1 and "Int64\(35\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 24 AS col1, - 84 + - + 70 col0, + 35 AS col0 +---- +-154 +24 +35 query I rowsort SELECT 18 + - ( + 37 ) AS col2 @@ -41252,20 +41697,29 @@ SELECT ALL 4 + + 95 + 16 * 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10626 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* Int64\(2\) \* Int64\(77\) AS col2" at position 0 and "min\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) \+ \(\- Int64\(\-47\)\) / Int64\(\-54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 * + + ( 2 ) * 77 AS col2, MIN ( - - CAST ( NULL AS INTEGER ) ) + - - 47 / - 54 col2 +---- +10626 +NULL # 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 col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 40 AS col1, + 63 AS col1 +---- +-40 +63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 7275 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "Int64\(97\) \* Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 AS col0, 97 * + ( + 75 ) AS col0 +---- +51 +7275 query I rowsort label-7848 SELECT - COUNT ( * ) * - - 24 @@ -41412,8 +41866,11 @@ SELECT DISTINCT + 75 * + + COUNT ( * ) * - 40 * 54 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4050 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* \(\- Int64\(49\)\) \+ Int64\(\-91\) \+ Int64\(10\) AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 81 * + - ( + ( + 49 ) ) + - 91 + + ( + 10 ) AS col1, ( 32 ) AS col1 +---- +-4050 +32 query I rowsort label-7876 SELECT ALL + + CAST ( ( - 41 ) AS INTEGER ) AS col2 @@ -41748,8 +42205,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) - + 73 - + 14 / 61 AS col0, - 14 * - 54 AS col0 +---- +-72 +756 query I rowsort label-7939 SELECT - 76 + - - NULLIF ( + 99, 16 / + 68 + SUM ( DISTINCT - 32 ) + - COUNT ( * ) ) * + + 47 @@ -41879,8 +42339,11 @@ SELECT - 34 * COALESCE ( + 91, COUNT ( * ) ) + - 91 - 24 AS col0 # 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 "Int64\(\-51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 48 AS col1, - 51 AS col1 +---- +-51 +48 query I rowsort SELECT + 47 * 87 + 67 @@ -41925,8 +42388,11 @@ SELECT ALL + COUNT ( * ) * + + 54 # 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\(68\) AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 AS col0, 86 AS col0 +---- +68 +86 query I rowsort SELECT 57 + - 87 + - 97 AS col0 @@ -42053,8 +42519,11 @@ SELECT ALL + 87 + - + 18, 81 AS col2 # 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 "Int64\(\-64\) / Int64\(19\) AS col1" at position 0 and "Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 64 ) / + 19 AS col1, 24 AS col1 +---- +-3 +24 query I rowsort SELECT ALL ( + + 97 ) + + 95 @@ -42090,8 +42559,11 @@ SELECT ALL - - ( + 8 ), 43 * + 96 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 AS col0, + 68 AS col0 +---- +68 +71 query II rowsort label-8003 SELECT ALL 90 col1, - CAST ( + 80 AS INTEGER ) @@ -42181,8 +42653,11 @@ 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\(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\. +query II valuesort SELECT 36 AS col1, + 65 * CASE COALESCE ( + 5, 46 + 5 + - COUNT ( * ) + + 56 / 97 ) WHEN 1 THEN 58 * - 49 + + ( - 10 ) ELSE + - 48 END AS col1 +---- +-3120 +36 query I rowsort label-8020 SELECT ALL - - 26 * COALESCE ( - MIN ( ALL - 73 ), 63 + 41 ) + + + 62 * + 26 + - 89 @@ -43153,8 +43628,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 252 -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 "Int64\(6\) \* Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 87 / - 66 AS col0, 6 * 42 AS col0 +---- +-1 +252 query I rowsort label-8207 SELECT COUNT ( * ) + - 26 col2 @@ -43505,8 +43983,11 @@ SELECT - COUNT ( * ) * + SUM ( ( ( + 7 ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 7304 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col1" at position 0 and "Int64\(88\) \* Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 AS col1, + 88 * 83 AS col1 +---- +7304 +81 query I rowsort label-8276 SELECT + CAST ( 0 AS INTEGER ) * - + 94 * - - 40 AS col2 @@ -43635,8 +44116,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) / 70 * - + 35 * + 81 AS col2, + 13 col2 +---- +0 +13 query I rowsort label-8301 SELECT + COUNT ( 85 ) * - ( + 15 ) / 65 + 74 AS col2 @@ -43775,8 +44259,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(\-91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 79 * + 94 + - NULLIF ( + 40, 47 ) AS col2, + COUNT ( * ) / - 91 col2 +---- +0 +7386 query II rowsort SELECT ALL 89 + 90 AS col2, 43 AS col1 @@ -43858,8 +44345,11 @@ SELECT ALL + ( + COUNT ( - - 77 ) ) * - 18 * 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 30 AS col1, + 2 AS col1 +---- +2 +30 query I rowsort SELECT 10 * 28 @@ -43967,8 +44457,11 @@ 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\(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\. +query II valuesort SELECT ALL - COALESCE ( COUNT ( * ), + - COUNT ( * ) - 84 * - 9 + - COUNT ( * ) ) AS col0, 54 AS col0 +---- +-1 +54 query I rowsort label-8364 SELECT + + CAST ( + 57 AS INTEGER ) * + COUNT ( * ) * - - 51 + 39 + 10 + + COUNT ( * ) + - 72 / + 15 @@ -44339,8 +44832,11 @@ SELECT 60 * 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "CASE Int64\(\-70\) WHEN Int64\(\-20\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) END \+ \(\- nullif\(nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-87\)\), max\(\(\- Int64\(50\)\)\)\)\) \+ Int64\(37\) \* avg\(CASE Int64\(83\) WHEN Int64\(\-92\) \- Int64\(93\) THEN NULL WHEN Int64\(24\) \+ Int64\(28\) THEN Int64\(58\) \* nullif\(Int64\(23\), Int64\(94\)\) ELSE Int64\(73\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +25 +NULL query I rowsort label-8437 SELECT 85 * - + CASE + 98 WHEN - COUNT ( * ) THEN 48 END * - COUNT ( * ) * + 90 @@ -44392,8 +44888,11 @@ SELECT 62 / - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - -110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col2" at position 0 and "Int64\(\-66\) \+ \(\- Int64\(44\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 66 AS col2, - 66 + - + 44 AS col2 +---- +-110 +-66 query I rowsort label-8447 SELECT - CASE 58 WHEN - - COUNT ( * ) + 28 THEN NULL ELSE + 66 END @@ -44541,8 +45040,11 @@ SELECT + COUNT ( - - CAST ( NULL AS INTEGER ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 1392 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(67\)\)\) AS col1" at position 0 and "CAST\(Int64\(24\) AS Int32\) \* Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( + 67 ) AS col1, + CAST ( + 24 AS INTEGER ) * 58 AS col1 +---- +1392 +67 query II rowsort label-8475 SELECT + 27 + 78 AS col1, + 79 / - 89 @@ -44909,8 +45411,12 @@ 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\(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\. +query III valuesort SELECT DISTINCT + + 13 * - - COUNT ( * ) + + 19 + - 75 col0, + COUNT ( * ) * - ( + 41 ) AS col1, + 7 col0 +---- +-41 +-43 +7 query I rowsort label-8545 SELECT DISTINCT 11 - CAST ( NULL AS INTEGER ) AS col2 @@ -45007,8 +45513,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2745 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* CAST\(Int64\(\-61\) AS Int32\) AS col2" at position 0 and "Int64\(81\) \+ Int64\(\-31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 45 * CAST ( - 61 AS INTEGER ) AS col2, 81 + - 31 AS col2 +---- +-2745 +50 query I rowsort SELECT DISTINCT - 41 + - 99 @@ -45034,8 +45543,11 @@ 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\(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\. +query II valuesort SELECT + 4 * - + ( - COUNT ( * ) ) + - MIN ( + 4 ) AS col0, 8 col0 +---- +0 +8 query I rowsort label-8568 SELECT ALL + MAX ( ALL 50 ) + + 66 AS col1 @@ -45056,8 +45568,11 @@ NULL # 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 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 IR valuesort SELECT + + 70 AS col0, CAST ( NULL AS FLOAT8 ) AS col0 +---- +70 +NULL query I rowsort SELECT ALL + 65 * 31 AS col1 @@ -45545,8 +46060,11 @@ SELECT DISTINCT + 10 * + + COUNT ( ALL 10 ) * - 47 * - + 13 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "Int64\(\-69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 61 AS col0, - 69 col0 +---- +-69 +61 query I rowsort label-8664 SELECT + 20 + 98 + 79 / + CAST ( NULL AS INTEGER ) AS col1 @@ -45642,8 +46160,11 @@ SELECT ALL + 1 + + 73 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - CAST ( NULL AS FLOAT8 ) AS col0, 43 AS col0 +---- +43 +NULL query II rowsort SELECT ALL - + 68 AS col0, - 61 AS col1 @@ -45896,8 +46417,11 @@ SELECT ALL 45 - + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(30\)\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(22\) / nullif\(Int64\(\-38\), Int64\(18\)\) \* \(\- coalesce\(Int64\(50\), \(\- Int64\(87\)\), Int64\(53\)\)\) \+ \(\- coalesce\(Int64\(33\), Int64\(62\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( 30 ) * + CAST ( NULL AS INTEGER ) AS col1, 22 / NULLIF ( - 38, 18 ) * - COALESCE ( 50, - + 87, + + 53 ) + - + COALESCE ( 33, + ( + + 62 ) ) AS col1 +---- +-33 +NULL query I rowsort SELECT 14 * + - 43 AS col1 @@ -45971,8 +46495,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \+ Int64\(\-54\) / nullif\(nullif\(Int64\(\-64\), Int64\(60\) \+ Int64\(77\)\), Int64\(74\)\) \* Int64\(18\) \- count\(Int64\(28\)\) AS col0" at position 0 and "nullif\(Int64\(60\), Int64\(38\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 10 + - 54 / NULLIF ( + NULLIF ( + - 64, 60 + + 77 ), + 74 ) * + 18 - + COUNT ( ALL + 28 ) AS col0, NULLIF ( + 60, + 38 ) col0 +---- +60 +9 query I rowsort SELECT - + 95 + + - 7 * + 90 AS col1 @@ -46377,14 +46904,20 @@ SELECT SUM ( DISTINCT 67 ) AS col1, - 31 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3136 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* Int64\(\-98\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 * - 98 AS col0, COUNT ( * ) AS col0 +---- +-3136 +1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) \+ Int64\(\-12\) AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 76 + - 12 AS col1, 39 AS col1 +---- +-88 +39 query I rowsort label-8823 SELECT ALL 46 / - 97 / 26 * - - 13 * + 88 AS col1 @@ -46429,8 +46962,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col2, 59 AS col2 +---- +-1 +59 query I rowsort label-8832 SELECT ALL - ( + - MAX ( - 30 ) ) @@ -47280,8 +47816,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 25 AS col1, ( - COUNT ( * ) ) AS col1 +---- +-1 +25 query II rowsort label-8994 SELECT - COUNT ( * ), + 82 / + 98 AS col0 @@ -47898,8 +48437,11 @@ SELECT - + 69 - + - 19 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 AS col0, COUNT ( * ) AS col0 +---- +1 +8 query I rowsort label-9113 SELECT ALL + - COUNT ( * ) * 21 * - 0 * 26 @@ -48424,8 +48966,11 @@ SELECT CASE 31 WHEN 57 + - 21 THEN + + 48 ELSE + 71 END + + 77 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37694976 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \* Int64\(92\) \* \(\- Int64\(\-97\)\) \* Int64\(96\) AS col1" at position 0 and "sum\(Int64\(\-77\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 44 * + + 92 * + + ( - - 97 ) * + + 96 AS col1, + ( SUM ( ALL - 77 ) ) AS col1 +---- +-77 +37694976 query I rowsort SELECT ALL - NULLIF ( 5, - + 43 ) @@ -48460,8 +49005,11 @@ SELECT DISTINCT 14 * - 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -109134 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \* Int64\(94\) \* Int64\(27\) AS col2" at position 0 and "Int64\(\-42\) / Int64\(29\) \* Int64\(72\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 43 * + 94 * 27 AS col2, - 42 / 29 * + 72 * + CAST ( COUNT ( * ) AS INTEGER ) AS col2 +---- +-109134 +-72 query I rowsort label-9220 SELECT - 61 + + 83 + + 87 + + MIN ( 22 ) + - + 66 * - - 16 * 2 col0 @@ -49543,8 +50091,11 @@ SELECT DISTINCT - + COUNT ( * ) AS col0, 40 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 133 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \+ Int64\(68\) AS col0" at position 0 and "Int64\(88\) \+ Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 27 + 68 AS col0, 88 + + 45 col0 +---- +133 +95 query I rowsort label-9425 SELECT 30 + 19 / + 58 @@ -49715,8 +50266,11 @@ SELECT ALL 74 * + 30 * - ( + 40 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - -5686 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(CAST\(Int64\(\-67\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-6\) \* count\(Int64\(1\)\) \+ \(\- Int64\(80\)\) \* Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MAX ( + CAST ( + - 67 AS INTEGER ) ) AS col2, - 6 * + ( + + COUNT ( + 1 ) ) + - + 80 * 71 AS col2 +---- +-5686 +-67 query I rowsort label-9458 SELECT - 70 * - + COUNT ( * ) * + 38 + ( - COALESCE ( + + 48, - 36 ) ) - + 88 - CAST ( NULL AS INTEGER ) @@ -49906,8 +50460,11 @@ 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\(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\. +query II valuesort SELECT - 3 * - + 50 AS col0, - NULLIF ( COUNT ( * ), + + 57 + - 61 * - NULLIF ( + 3, - 82 * + 77 * + - 38 * - 20 + + 71 + + + 3 ) ) + - 65 AS col0 +---- +-66 +150 query I rowsort SELECT NULLIF ( 92, - ( 7 ) ) AS col1 @@ -50504,8 +51061,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-15\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 77 * 9 col0, COALESCE ( - - 66, 83 + + COUNT ( * ) * - 15 ) AS col0 +---- +-693 +66 query I rowsort SELECT + - ( - - 92 ) + - + 9 AS col2 @@ -50520,8 +51080,11 @@ 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\(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\. +query II valuesort SELECT + + 97 + + 23 + - COUNT ( * ) * ( + 18 ) AS col2, - ( + 47 ) col2 +---- +-47 +102 query I rowsort label-9611 SELECT 22 * CASE - 25 WHEN - 76 * + 60 + - + 73 THEN NULL WHEN - - COUNT ( * ) * - 58 THEN - + 23 WHEN 20 THEN + 98 / 3 ELSE + + 85 + CASE 6 WHEN + - 77 THEN - 38 WHEN - 55 * + 24 THEN NULL END * 57 * + 14 * + 48 END + - + 84 AS col1 @@ -51546,8 +52109,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - -6255 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col1" at position 0 and "Int64\(\-64\) \* Int64\(59\) \+ Int64\(\-67\) \* Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 85 AS col1, - 64 * + 59 + - 67 * 37 AS col1 +---- +-6255 +-85 query I rowsort SELECT ALL 84 + - 53 - + + 74 * + 94 AS col2 @@ -51968,8 +52534,11 @@ 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\(2\) AS col1" at position 0 and "Int64\(61\) \- Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 2 col1, + 61 - 17 col1 +---- +2 +44 query I rowsort SELECT ALL - 36 + + - 13 * 16 @@ -52144,8 +52713,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) col0, - 73 AS col0 +---- +-73 +1 query I rowsort label-9928 SELECT ALL + NULLIF ( - + 57, - - COUNT ( * ) ) + COALESCE ( 50, + 40 - 84 ) @@ -52325,8 +52897,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(\-52\) \+ \(\- Int64\(\-35\)\) / \(\- \(\- \(\- Int64\(\-65\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 15 * + MAX ( ALL + 94 ) AS col0, - COUNT ( * ) + + - 52 + - - 35 / - - ( - - 65 ) AS col0 +---- +-53 +1410 query I rowsort label-9962 SELECT + CASE - CAST ( - MIN ( - - 65 ) AS FLOAT8 ) WHEN 49 * + 16 * 32 + + SUM ( 88 ) * CAST ( - 91 * + 9 AS INTEGER ) THEN - 65 * 36 END AS col0 diff --git a/data/sqlite/random/expr/slt_good_117.slt b/data/sqlite/random/expr/slt_good_117.slt index b9ca472..a62c092 100644 --- a/data/sqlite/random/expr/slt_good_117.slt +++ b/data/sqlite/random/expr/slt_good_117.slt @@ -685,8 +685,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col1" at position 0 and "Int64\(\-2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 AS col1, - 2 AS col1 +---- +-2 +-70 query II rowsort label-125 SELECT 33 + COUNT ( * ) * + - 54 AS col2, 63 + + - 90 @@ -761,8 +764,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(87\) \* Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 83 col1, + COUNT ( * ) * 87 * + 11 AS col1 +---- +83 +957 query I rowsort label-139 SELECT ALL 22 * + CAST ( - 32 AS INTEGER ) AS col1 @@ -1319,8 +1325,11 @@ SELECT ALL - + 94 - 83 * - 92 * + 93 AS col0, + 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - -765 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col2" at position 0 and "Int64\(37\) \* Int64\(\-18\) \+ \(\- \(\- max\(Int64\(\-99\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 46 AS col2, + 37 * - 18 + - ( - MAX ( ALL - 99 ) ) AS col2 +---- +-46 +-765 query I rowsort label-247 SELECT DISTINCT - + 69 / CAST ( - 72 AS INTEGER ) AS col1 @@ -1350,8 +1359,11 @@ SELECT ALL COUNT ( * ) / - 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - -2432 -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\(76\)\) \* Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 98 AS col1, MAX ( DISTINCT + + 76 ) * - 32 AS col1 +---- +-2432 +98 query I rowsort SELECT - 62 + 78 AS col1 @@ -1508,14 +1520,20 @@ SELECT DISTINCT - 72 * + MIN ( 95 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(84\), \(\- Int64\(85\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( + 84, - + 85 ) AS col2, COUNT ( * ) AS col2 +---- +1 +84 # 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\(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\. +query II valuesort SELECT + 86 * 31 AS col1, 38 + + + COALESCE ( - 22, - - 91 ) + + COUNT ( * ) * 70 - - COUNT ( * ) AS col1 +---- +2666 +87 query I rowsort SELECT DISTINCT 34 * + 47 AS col0 @@ -1536,8 +1554,11 @@ SELECT DISTINCT COUNT ( - 63 ) * + - 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col2" at position 0 and "Int64\(98\) \+ Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 97 AS col2, 98 + - 12 AS col2 +---- +86 +97 query I rowsort label-288 SELECT DISTINCT + 48 / + + 79 AS col0 @@ -1810,8 +1831,12 @@ SELECT DISTINCT + 38 * - 81 # Datafusion - Expected - 2565 # Datafusion - Expected - 20 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(20\), Int64\(39\) / \(\- Int64\(\-64\)\) \+ Int64\(\-42\)\) AS col2" at position 1 and "Int64\(83\) \* Int64\(6\) / \(\- Int64\(\-20\)\) \* count\(Int64\(\-81\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 27 * - - 95, + NULLIF ( + 20, + 39 / - - 64 + - 42 ) AS col2, 83 * 6 / - - 20 * ( + COUNT ( + - 81 ) ) col2 +---- +20 +24 +2565 query II rowsort SELECT ALL + ( + 40 ), + 59 AS col1 @@ -2215,8 +2240,11 @@ SELECT 64 + - SUM ( - 92 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 2698 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(38\) \* Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, 38 * 71 AS col2 +---- +1 +2698 query I rowsort label-415 SELECT DISTINCT - - 99 * - - COUNT ( * ) + + 53 + COUNT ( * ) + + - 16 * + 47 * + 93 @@ -2338,8 +2366,11 @@ SELECT - COUNT ( ALL + - 40 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1825 # Datafusion - Expected - -7505 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(\-73\) AS col0" at position 0 and "Int64\(\-79\) \* CAST\(Int64\(95\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 * - 73 AS col0, - 79 * + CAST ( + 95 AS INTEGER ) AS col0 +---- +-1825 +-7505 query I rowsort label-438 SELECT ALL SUM ( - 98 ) AS col2 @@ -2391,8 +2422,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 726 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(14\)\) \* Int64\(\-54\) \+ Int64\(36\) / Int64\(\-52\) \+ Int64\(\-30\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 14 * - 54 + 36 / - 52 + - 30 AS col2, + 56 AS col2 +---- +56 +726 query I rowsort SELECT - - 76 + 26 AS col0 @@ -3007,8 +3041,12 @@ SELECT 23 AS col2, 79 * + + 13 * - 84 # Datafusion - Expected - -30 # Datafusion - Expected - 7 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 30 AS col1, + 7 AS col1, + ( - 50 ) col0 +---- +-30 +-50 +7 query I rowsort label-567 SELECT + 30 / + + 55 * - - 62 @@ -3757,8 +3795,11 @@ SELECT - 14 - + 13 + + - 26 * - + 96 + - 71 # 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\) AS col0" at position 0 and "Int64\(\-41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 12 ) AS col0, - 41 AS col0 +---- +-12 +-41 query I rowsort label-711 SELECT DISTINCT + COALESCE ( 15, + ( - 48 ) ) * - CAST ( - COUNT ( * ) AS INTEGER ) + - - 94 @@ -3933,8 +3974,13 @@ SELECT 34 + - 62 AS col1 # Datafusion - Expected - 1 # Datafusion - Expected - 5396 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 and "Int64\(10\) AS col1" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIII valuesort SELECT 40 * + 32, COUNT ( * ) AS col1, - - 71 * 76 AS col0, 10 AS col1 +---- +1 +10 +1280 +5396 query II rowsort SELECT DISTINCT + 33 * + - 70, 47 AS col2 @@ -5096,8 +5142,11 @@ 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\(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\. +query II valuesort 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 +---- +-63 +NULL query I rowsort label-965 SELECT 3 / + 28 @@ -5202,8 +5251,11 @@ SELECT DISTINCT + 68 / + 60 + + COUNT ( DISTINCT - 41 ), + 25 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 409920 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-80\)\) \* Int64\(\-61\) \* Int64\(\-84\) AS col1" at position 0 and "Int64\(48\) \* CASE Int64\(92\) WHEN avg\(Int64\(49\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* nullif\(Int64\(25\), Int64\(92\)\) WHEN Int64\(\-29\) THEN NULL WHEN Int64\(38\) THEN Int64\(\-82\) \* \(\- CAST\(Int64\(\-82\) AS Int32\)\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +409920 +NULL query I rowsort label-985 SELECT - 76 * + 25 + - SUM ( 69 ) - + ( + + 62 ) * + 39 * - 74 AS col2 @@ -5567,8 +5619,11 @@ SELECT - 43 AS col0, + 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(DISTINCT Int64\(81\)\)\) \* Int64\(62\) \+ Int64\(\-84\) \- Int64\(\-76\) \* Int64\(82\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(11\) AS col2" at position 0 and "Int64\(\-94\) / \(\- CAST\(Int64\(\-88\) AS Int32\)\) \+ \(\- Int64\(14\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + ( - AVG ( DISTINCT 81 ) ) * 62 + - 84 - - 76 * 82 * - CAST ( NULL AS INTEGER ) + 11 AS col2, - 94 / - CAST ( + - 88 AS INTEGER ) + - + 14 AS col2 +---- +-15 +NULL query II rowsort label-1053 SELECT ALL 4 AS col0, - CAST ( 46 AS INTEGER ) @@ -5915,8 +5970,11 @@ SELECT 32 - + 22 + - - 41 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3431 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* Int64\(47\) AS col0" at position 0 and "Int64\(\-47\) \+ \(\- Int64\(\-40\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 73 * + 47 AS col0, - 47 + - - 40 AS col0 +---- +-7 +3431 query I rowsort label-1120 SELECT ALL + ( + COUNT ( * ) ) - + 55 @@ -6106,8 +6164,11 @@ SELECT - ( - 11 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "Int64\(45\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 63 AS col2, 45 + - CAST ( NULL AS INTEGER ) AS col2 +---- +63 +NULL query I rowsort label-1157 SELECT - COUNT ( * ) + 71 + - 29 AS col0 @@ -7638,8 +7699,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -109 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \+ Int64\(\-78\) 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 II valuesort SELECT DISTINCT - 31 + - 78 AS col0, - 37 + - + 46 AS col0 +---- +-109 +-83 query I rowsort label-1455 SELECT 71 - + COUNT ( * ) @@ -8214,8 +8278,11 @@ SELECT + + 96 * + - CASE - 90 WHEN COUNT ( * ) THEN - 34 ELSE - 69 END + + 71 + # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \+ sum\(\(\- Int64\(\-53\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(70\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 85 + + SUM ( - - 53 ) + + COUNT ( * ) * 70 AS col2, COUNT ( * ) AS col2 +---- +1 +38 query II rowsort SELECT + 14 + + + 1 col2, 61 @@ -8347,8 +8414,11 @@ SELECT ALL - COALESCE ( + CASE - - MAX ( + 39 ) WHEN - - ( - 13 ) THEN 4 ELSE NU # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 188000 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* Int64\(\-47\) \* Int64\(\-36\) AS col1" at position 0 and "Int64\(20\) \* \(\- Int64\(\-50\)\) \* Int64\(94\) \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 * - 47 * - 36 AS col1, 20 * - - 50 * 94 * + + 2 AS col1 +---- +0 +188000 query I rowsort SELECT ALL - 86 * 90 col0 @@ -8578,8 +8648,12 @@ SELECT ALL - + 23 + + 29 # Datafusion - Expected - 166 # Datafusion - Expected - -55 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \+ Int64\(27\) \+ Int64\(90\) \+ Int64\(67\) AS col2" at position 0 and "Int64\(\-55\) \+ Int64\(\-37\) / Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 18 + + + 27 + 90 + + 67 AS col2, - 55 + - 37 / 67 AS col2, 84 +---- +-55 +166 +84 query I rowsort label-1635 SELECT - 32 + + + 91 + + CASE - ( + 73 ) WHEN 35 + - - ( - COUNT ( * ) ) THEN NULL WHEN 1 THEN + 85 WHEN 34 + 10 THEN NULL END + + 96 @@ -9317,8 +9391,11 @@ SELECT - - ( - 27 ) + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col1" at position 0 and "Int64\(94\) \+ Int64\(\-75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 10 AS col1, 94 + + - 75 AS col1 +---- +10 +19 query I rowsort label-1776 SELECT ALL - - COUNT ( * ) + - - 7 AS col1 @@ -9606,8 +9683,11 @@ SELECT ALL - - CASE + 53 WHEN - - 49 THEN NULL ELSE COUNT ( * ) * - 91 / 53 * - # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "Int64\(96\) \+ Int64\(31\) \+ Int64\(\-97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 AS col0, 96 + 31 + - 97 AS col0 +---- +12 +30 query I rowsort label-1832 SELECT ALL - SUM ( DISTINCT - 1 ) AS col1 @@ -9632,8 +9712,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * + ( 19 ) - - - 44 AS col0, 98 AS col0 +---- +-25 +98 query I rowsort label-1837 SELECT ALL - NULLIF ( 41, - 22 * - + NULLIF ( 8, + - CAST ( COUNT ( * ) AS INTEGER ) + + + 38 * - 30 + + 55 / 10 ) * 29 + 54 / COUNT ( * ) * - NULLIF ( - COUNT ( * ), 35 * - 35 + NULLIF ( 1, 23 + + 62 * + COALESCE ( 24 * - 62 - - COUNT ( * ), 91 ) ) ) ) - 46 * + 82 @@ -9823,8 +9906,11 @@ SELECT + - CASE 35 WHEN + MAX ( DISTINCT + + 34 ) THEN - 95 WHEN - 40 THEN + 42 # 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\)\) \* count\(\(\- Int64\(\-74\)\)\) AS col0" at position 0 and "Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - ( - 51 ) * + COUNT ( ALL - - 74 ) col0, + 3 AS col0 +---- +3 +51 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -9905,8 +9991,11 @@ 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\(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\. +query II valuesort SELECT - ( - - NULLIF ( 76, + 67 - + + COUNT ( * ) + + + ( 22 ) ) ) AS col0, 66 + + 64 - MIN ( DISTINCT - 14 ) AS col0 +---- +-76 +144 query I rowsort label-1887 SELECT - 4 - 52 + + + 52 + + 61 + + 78 * CAST ( + - 59 AS INTEGER ) AS col2 @@ -10138,8 +10227,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2876 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- Int64\(87\)\)\) / Int64\(14\) \- \(\- Int64\(40\)\) \+ Int64\(\-44\) \* Int64\(\-63\) \+ Int64\(64\) AS col1" at position 0 and "min\(Int64\(54\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( - + 87 ) / + 14 - + ( - + 40 ) + - 44 * + - 63 + 64 AS col1, MIN ( + + 54 ) AS col1 +---- +2876 +54 query I rowsort SELECT ALL + - 56 + - 68 AS col1 @@ -10518,8 +10610,11 @@ SELECT ( NULLIF ( - MIN ( ALL - - 48 ), - 6 ) ) # 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 col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 95 AS col0, 29 AS col0 +---- +29 +95 query I rowsort SELECT + ( + 68 ) + - 34 @@ -10534,8 +10629,11 @@ SELECT ALL 2 * 76 / + 42 + + 1 / + + 39 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col2, + 39 col2 +---- +1 +39 query I rowsort label-2007 SELECT ALL SUM ( ALL 50 ) * + + COUNT ( * ) + + 44 AS col0 @@ -10688,8 +10786,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \+ Int64\(9\) AS col2" at position 0 and "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 18 + + 9 AS col2, + 70 AS col2 +---- +-9 +70 query I rowsort SELECT + 24 - + 84 * - ( - 26 ) @@ -10714,8 +10815,11 @@ SELECT DISTINCT - 70 + - 96 - 25 * - 35 + - NULLIF ( - MIN ( ALL + 93 ), + 45 ) # 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 "\(\- coalesce\(Int64\(96\), Int64\(\-91\) \+ sum\(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 II valuesort SELECT - COALESCE ( 96, + - 91 + + + SUM ( + 46 ) ) AS col1, 60 AS col1 +---- +-96 +60 query I rowsort label-2041 SELECT - COALESCE ( 79, + COUNT ( * ) ) AS col1 @@ -10759,8 +10863,11 @@ SELECT - 8 * - - 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - -535732 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-68\)\) \+ Int64\(75\) \* Int64\(76\) \* Int64\(\-94\) AS col2" at position 0 and "Int64\(\-8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 68 ) + + 75 * + 76 * - 94 AS col2, - 8 AS col2 +---- +-535732 +-8 query I rowsort label-2049 SELECT DISTINCT - COUNT ( * ) * - 9 + 4 + 78 * MAX ( + 84 ) AS col0 @@ -11064,8 +11171,11 @@ SELECT - MIN ( DISTINCT - 41 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ Int64\(7\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 + 7 AS col2, 53 AS col2 +---- +53 +99 query I rowsort SELECT 63 * - 13 @@ -11080,8 +11190,11 @@ SELECT 98 * + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ Int64\(\-19\) / Int64\(\-46\) \+ min\(Int64\(76\)\) \* count\(\(\- CAST\(NULL AS Int32\)\)\) \- count\(Int64\(1\)\) AS count\(\*\) \- Int64\(77\) \* count\(Int64\(\-65\)\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 69 ) + - 19 / + - 46 + MIN ( 76 ) * + COUNT ( - + CAST ( NULL AS INTEGER ) ) - COUNT ( * ) - + 77 * + + COUNT ( + - 65 ) AS col0, 28 AS col0 +---- +-9 +28 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -11242,8 +11355,11 @@ SELECT ALL 47 * 3 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -6983346 # Datafusion - Expected - -258 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* Int64\(\-63\) \* Int64\(99\) \* Int64\(59\) \+ Int64\(\-95\) \* nullif\(Int64\(\-88\), \(\- Int64\(48\)\)\) \+ Int64\(\-29\) AS col1" at position 0 and "Int64\(\-3\) \* Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 19 ) * - 63 * 99 * + 59 + + - 95 * + NULLIF ( - 88, - + 48 ) + - 29 AS col1, - 3 * 86 AS col1 +---- +-258 +-6983346 query I rowsort label-2139 SELECT + ( + - CAST ( - 49 AS INTEGER ) ) / + 66 AS col0 @@ -11374,8 +11490,12 @@ SELECT - 85 * - 45 + + ( - SUM ( + 54 ) ) + + + NULLIF ( - 68, - SUM ( ALL + + 7 # Datafusion - Expected - 1 # Datafusion - Expected - 46 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- Int64\(19\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + COUNT ( * ) AS col0, 46 * - + ( - + COUNT ( * ) ) AS col2, ( - + 19 ) AS col0 +---- +-19 +1 +46 query I rowsort label-2164 SELECT MAX ( DISTINCT - 90 ) * - CAST ( + 4 AS INTEGER ) * 19 + 91 + - 9 + - + 30 + + + ( - COUNT ( DISTINCT 64 ) ) * - 99 + 43 AS col2 @@ -11701,8 +11821,11 @@ SELECT MAX ( DISTINCT + 59 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, - 14 AS col2 +---- +-14 +1 query I rowsort label-2226 SELECT - 29 / - 81 @@ -12410,8 +12533,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col2" at position 0 and "Int64\(3\) \+ Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 60 ) AS col2, 3 + - 13 AS col2 +---- +-10 +60 query I rowsort SELECT + 57 * - - 46 @@ -12617,8 +12743,11 @@ SELECT ALL 47 * - 87 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 41 col0, 90 AS col0 +---- +-41 +90 query II rowsort SELECT + + 84, 50 * - 35 AS col0 @@ -12887,8 +13016,11 @@ SELECT DISTINCT - 23 + 49 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45540 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* Int64\(\-30\) \* Int64\(\-22\) AS col1" at position 0 and "Int64\(4\) \* \(\- Int64\(23\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 69 * + - 30 * - 22 AS col1, 4 * - + 23 AS col1 +---- +-92 +45540 query I rowsort label-2452 SELECT CAST ( + 55 AS INTEGER ) / - + MAX ( 10 ) AS col0 @@ -14422,8 +14554,11 @@ SELECT + 9 * - - COALESCE ( + - CASE - - 87 WHEN 34 THEN NULL WHEN + + 18 THEN - # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(49\)\) AS Int32\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - + 49 AS INTEGER ) col1, 88 AS col1 +---- +-49 +88 query I rowsort label-2741 SELECT CAST ( - - 71 AS INTEGER ) @@ -14433,8 +14568,11 @@ SELECT CAST ( - - 71 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1726 # Datafusion - Expected - -159 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(76\)\) \* Int64\(\-23\) \+ Int64\(32\) \- Int64\(54\) AS col2" at position 0 and "Int64\(84\) \+ Int64\(14\) \+ \(\- Int64\(77\)\) \+ Int64\(84\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- \(\- nullif\(\(\- Int64\(95\)\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(40\)\)\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 76 * - 23 + + + 32 - 54 AS col2, 84 + + 14 + - + 77 + + ( + 84 ) * - COUNT ( * ) + - - NULLIF ( - + 95, + COUNT ( * ) * + 40 ) - COUNT ( * ) AS col2 +---- +-159 +1726 query I rowsort SELECT ALL + 41 * + + 95 @@ -14528,8 +14666,11 @@ SELECT 85 - + - 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col1" at position 0 and "count\(Int64\(35\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 col1, + COUNT ( 35 ) + - CAST ( NULL AS INTEGER ) AS col1 +---- +12 +NULL query I rowsort SELECT 95 - 28 AS col0 @@ -14554,8 +14695,11 @@ SELECT ALL ( - 71 ) - 53 * 59 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4030 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-65\) \* Int64\(62\) AS col0" at position 0 and "Int64\(90\) \* Int64\(\-69\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) * + - 65 * + 62 col0, + 90 * - 69 + CAST ( NULL AS INTEGER ) AS col0 +---- +-4030 +NULL query II rowsort SELECT ALL 77 AS col1, + 91 @@ -14760,8 +14904,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * 38 AS col0, - COUNT ( DISTINCT 63 ) / + - ( NULLIF ( + - 81, - - 59 ) ) AS col0 +---- +0 +38 query I rowsort SELECT 45 * + + 33 * - 49 col0 @@ -14887,8 +15034,11 @@ SELECT + 28 + 31 - 10 * + 19 * - + ( - 37 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(20\)\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 20 ) AS col1, ( 21 ) col1 +---- +-20 +21 query II rowsort label-2826 SELECT + 80 * - + 66, CAST ( - - MAX ( DISTINCT - 33 ) AS INTEGER ) col1 @@ -15123,8 +15273,11 @@ SELECT ALL - - 43 col1, 67 - + - 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ Int64\(\-28\) \* Int64\(0\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 48 + + - 28 * 0 AS col0, 30 AS col0 +---- +30 +48 query I rowsort SELECT - 87 * - 7 + 88 + - - 34 @@ -16416,8 +16569,11 @@ SELECT - 66 + + - 78 + - 43 * + 92 AS col2 # 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 "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 91 AS col0, 9 AS col0 +---- +9 +91 query I rowsort label-3122 SELECT 32 + ( + 70 ) / - 91 + + SUM ( 22 ) + COUNT ( * ) @@ -16496,8 +16652,11 @@ SELECT 48 + - CASE 74 WHEN + + COUNT ( * ) + + - 63 THEN - + ( - 80 ) ELSE + 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col0" at position 0 and "Int64\(87\) \- Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 16 AS col0, 87 - 93 AS col0 +---- +-16 +-6 query I rowsort label-3137 SELECT 54 * + COUNT ( * ) * 8 @@ -16558,8 +16717,11 @@ SELECT - 82 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 21 + + COUNT ( * ) AS col0, 91 AS col0 +---- +-20 +91 query II rowsort label-3149 SELECT - + CAST ( + 88 AS INTEGER ) * + 81 - 56 AS col1, + MAX ( ALL - + 18 ) / - 40 @@ -16685,8 +16847,11 @@ SELECT ALL 22 / + 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- Int64\(47\)\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 84 + - + CAST ( NULL AS INTEGER ) AS col2, - ( + 47 ) - + COUNT ( * ) + - 20 AS col2 +---- +-68 +NULL query I rowsort label-3173 SELECT DISTINCT + COUNT ( * ) + - + 95 AS col0 @@ -16892,8 +17057,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(42\) AS Int32\) / \(\- Int64\(38\)\) AS col1" at position 0 and "nullif\(\(\- Int64\(\-57\)\), sum\(Int64\(84\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( + 42 AS INTEGER ) / - + 38 AS col1, NULLIF ( - - 57, + SUM ( 84 ) ) col1 +---- +-1 +57 query I rowsort label-3212 SELECT + - 72 * SUM ( + - 34 ) * + 23 * 55 AS col1 @@ -17004,8 +17172,11 @@ SELECT - MAX ( ALL + + 53 ) * + ( + ( SUM ( + ( - + 73 ) ) ) ) + 25 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(26\)\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - + 26 ) AS col2, 98 AS col2 +---- +-26 +98 query I rowsort label-3233 SELECT - COALESCE ( - + 6, + COUNT ( * ) ) AS col1 @@ -17066,8 +17237,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 + - 88 AS col0, 5 * - COUNT ( DISTINCT ( + + ( + 89 ) ) ) + + - COUNT ( * ) AS col0 +---- +-6 +-75 query I rowsort label-3245 SELECT + NULLIF ( + CAST ( + 57 AS INTEGER ), + 41 ) + - 69 - 10 / + 85 + 22 * 97 @@ -17200,8 +17374,12 @@ NULL # Datafusion - Expected - 75 # Datafusion - Expected - 30 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col0" at position 0 and "\(\- Int64\(71\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 75 AS col0, - 7 + + + 37 AS col2, - + 71 AS col0 +---- +-71 +30 +75 query I rowsort SELECT 92 + + 65 @@ -17371,8 +17549,11 @@ SELECT 98 * + - 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 AS col0, 70 AS col0 +---- +70 +96 query II rowsort SELECT - 56 + - 33 + 99 * - 56 - 42 * + 80 AS col2, 75 @@ -17383,8 +17564,11 @@ SELECT - 56 + - 33 + 99 * - 56 - 42 * + 80 AS col2, 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- Int64\(32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, - ( + 32 ) col2 +---- +-32 +1 query II rowsort SELECT ALL 32 AS col0, 43 AS col1 @@ -17458,8 +17642,11 @@ SELECT - + 59 - + - 77 + + 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "Int64\(2\) \- Int64\(28\) \+ coalesce\(Int64\(61\), Int64\(\-95\), Int64\(\-56\), Int64\(0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 99 AS col2, 2 - + + 28 + + COALESCE ( + 61, - 95, - 56, + 0 ) AS col2 +---- +35 +99 query I rowsort SELECT ALL - 37 + + + 74 + - + 71 * - + 91 * - - 34 AS col2 @@ -17475,8 +17662,11 @@ 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\(1\)\) AS count\(\*\)\)\) \+ Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 72 AS col1, + 33 * - 2 + - - COUNT ( * ) + + 34 col1 +---- +-31 +72 query I rowsort SELECT DISTINCT - - 0 + + - 62 + - 8 @@ -17509,8 +17699,11 @@ SELECT - COUNT ( * ) * + + 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4680 # Datafusion - Expected - -198 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* Int64\(\-6\) \* Int64\(15\) AS col1" at position 0 and "Int64\(3\) \* Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 52 * - 6 * + 15 AS col1, 3 * + - 66 col1 +---- +-198 +-4680 query I rowsort label-3327 SELECT DISTINCT 33 * - - 17 * - - MAX ( + 82 ) - - - 69 @@ -17640,8 +17833,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(80\)\) \- Int64\(44\) \* Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-2233 +32 query I rowsort SELECT ALL - ( 53 ) col2 @@ -17739,8 +17935,11 @@ SELECT + COUNT ( ALL - + 7 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, - 99 AS col0 +---- +-99 +NULL query I rowsort label-3370 SELECT - COUNT ( DISTINCT 60 ) * - - 64 @@ -18243,8 +18442,11 @@ 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\(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\. +query II valuesort SELECT - CASE COUNT ( * ) WHEN + - 43 + MAX ( 54 ) / + MAX ( 88 ) + - 61 THEN + 15 WHEN + 60 THEN NULL END AS col1, - 5 * + - 36 AS col1 +---- +180 +NULL query I rowsort label-3467 SELECT DISTINCT - 26 / - + 88 AS col1 @@ -19269,8 +19471,11 @@ SELECT COUNT ( * ) AS col1, - 76 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -678 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) / \(\- Int64\(\-60\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(75\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(9\) \* \(\- Int64\(67\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 51 / ( - - 60 ) - + - COUNT ( * ) * + ( 75 ) * - COUNT ( * ) + + 9 * - + 67 col2, + COUNT ( * ) col2 +---- +-678 +1 query I rowsort label-3661 SELECT + MAX ( + 88 ) @@ -19296,8 +19501,11 @@ SELECT ALL - 64 * - - MAX ( + 73 ) AS col0, + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \+ Int64\(11\) AS col2" at position 0 and "Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 9 + + 11 col2, - 27 AS col2 +---- +-27 +20 query II rowsort label-3666 SELECT COUNT ( DISTINCT + 7 ) AS col2, 16 + 91 - - - 48 @@ -19380,8 +19588,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) \+ Int64\(\-22\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 54 + - 22 AS col2, 10 AS col2 +---- +-76 +10 query I rowsort SELECT - + 43 + + 30 + - 60 AS col0 @@ -19461,8 +19672,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * + COUNT ( * ) * - COUNT ( * ) AS col0, 40 * + 96 * COALESCE ( - 51, 75 ) + - - 7 + - 51 AS col0 +---- +-1 +-195884 query I rowsort SELECT + ( - + 39 ) * + 25 + 56 @@ -19834,8 +20048,11 @@ SELECT + - ( 85 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - -104 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col1" at position 0 and "sum\(Int64\(\-25\)\) \+ Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 36 AS col1, SUM ( ALL - 25 ) + - 79 AS col1 +---- +-104 +-36 query I rowsort SELECT + 36 * - + 3 * - 57 * + 54 @@ -19885,8 +20102,11 @@ SELECT 91 + 70 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 col2, + 92 AS col2 +---- +8 +92 query I rowsort label-3779 SELECT - SUM ( 41 ) AS col2 @@ -20054,8 +20274,11 @@ 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\(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\. +query II valuesort SELECT - 11 AS col2, 70 * + COUNT ( * ) / + - 93 * - 40 * - 45 + + 40 AS col2 +---- +-11 +40 query I rowsort SELECT + - 0 + - + 18 + 60 @@ -20076,8 +20299,11 @@ 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\(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\. +query II valuesort SELECT ALL ( COUNT ( * ) ), COUNT ( * ) +---- +1 +1 query II rowsort SELECT DISTINCT ( + 52 ), + 8 AS col2 @@ -20297,8 +20523,11 @@ SELECT - 73 AS col0, - COALESCE ( + COUNT ( * ), CASE - 2 WHEN MAX ( DISTINCT - # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 AS col2, 16 AS col2 +---- +16 +76 query I rowsort label-3856 SELECT ALL 5 + + CASE COUNT ( * ) WHEN - + 82 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END AS col0 @@ -20646,8 +20875,11 @@ 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\(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\. +query II valuesort SELECT - CASE - 68 WHEN - COUNT ( * ) THEN + 6 + ( 32 ) END AS col0, 31 AS col0 +---- +31 +NULL query I rowsort label-3922 SELECT - + 99 + 96 + - 27 * - MAX ( DISTINCT 11 ) * + 43 + + 27 @@ -20812,8 +21044,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) / 96 * + - 25 * 15 AS col0, - 4 AS col0 +---- +-4 +0 query II rowsort SELECT ALL 26 AS col2, 65 * + 14 * + - 4 @@ -20893,8 +21128,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -141 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \+ Int64\(\-42\) AS col1" at position 0 and "Int64\(9\) \+ Int64\(21\) / Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 99 + + - 42 AS col1, 9 + + 21 / - 66 AS col1 +---- +-141 +9 query I rowsort label-3969 SELECT ALL - 47 + + COUNT ( 48 ) AS col2 @@ -21065,8 +21303,11 @@ SELECT 55 * - 25 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \+ Int64\(\-26\) AS col0" at position 0 and "Int64\(\-12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 26 + - 26 col0, - 12 AS col0 +---- +-12 +0 query I rowsort label-4002 SELECT - - 37 / + + 10 + + COUNT ( * ) / - - 75 + + ( - + 5 ) * - + 75 AS col2 @@ -21200,8 +21441,11 @@ SELECT ALL - CAST ( - ( - - 98 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -7276 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "Int64\(99\) \* \(\- Int64\(73\)\) \+ \(\- Int64\(49\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 20 AS col1, 99 * - + 73 + - + 49 col1 +---- +-7276 +20 query I rowsort label-4027 SELECT ALL - COUNT ( * ) + - 15 AS col1 @@ -21328,8 +21572,11 @@ NULL # 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 "CASE Int64\(\-46\) WHEN \(\- Int64\(\-63\)\) \* \(\- \(\- Int64\(15\)\)\) \+ Int64\(\-96\) THEN NULL WHEN Int64\(84\) \+ Int64\(30\) \+ Int64\(4\) THEN \(\- min\(DISTINCT Int64\(\-30\)\)\) \+ Int64\(85\) ELSE NULL END AS col1" at position 0 and "\(\- Int64\(\-57\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CASE - 46 WHEN - - 63 * - - ( + 15 ) + - 96 THEN NULL WHEN + 84 + + + 30 + 4 THEN - MIN ( DISTINCT - 30 ) + 85 ELSE NULL END AS col1, ( - - 57 ) col1 +---- +57 +NULL query I rowsort label-4051 SELECT 12 * + COUNT ( * ) + + COUNT ( * ) + + + 28 @@ -21724,8 +21971,11 @@ SELECT ALL - ( + 28 ) + + 39 * + + 86 AS 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 col1" at position 0 and "Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 39 AS col1, 1 AS col1 +---- +-39 +1 query I rowsort label-4125 SELECT COUNT ( * ) * + + 4 + 29 + - 55 / - 36 + + - CAST ( 64 AS INTEGER ) + - 68 @@ -21784,8 +22034,11 @@ SELECT ALL COUNT ( * ) - 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 57 AS col2, - CAST ( NULL AS INTEGER ) AS col2 +---- +57 +NULL query I rowsort SELECT - ( - 93 ) + 66 @@ -21815,8 +22068,11 @@ SELECT COALESCE ( + + 36, + - 24, - 55 + + COUNT ( * ) + 39 + - COUNT ( * ) ) * # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 573 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* count\(Int64\(\-26\)\) \- Int64\(87\) AS col1" at position 0 and "Int64\(27\) \* Int64\(24\) \- Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + 55 ) * COUNT ( - 26 ) - + 87 AS col1, 27 * 24 - 75 AS col1 +---- +-32 +573 query I rowsort label-4142 SELECT DISTINCT + 35 * NULLIF ( - COUNT ( * ), - 78 + - 98 + - - 78 ) AS col0 @@ -22512,8 +22768,11 @@ SELECT ALL 48 * + - 74 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1537 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) / Int64\(93\) \* Int64\(88\) \+ max\(Int64\(53\)\) \* \(\- nullif\(Int64\(29\), Int64\(9\) \* CASE \(\- Int64\(64\)\) WHEN Int64\(59\) THEN count\(Int64\(1\)\) AS count\(\*\) ELSE CAST\(Int64\(\-26\) AS Int32\) / count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) END\)\) AS col1" at position 0 and "nullif\(Int64\(17\), Int64\(58\) \* Int64\(95\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-1537 +17 query I rowsort label-4275 SELECT ALL - 64 + - NULLIF ( - 1, - - 95 / ( 32 ) + - + 37 * MAX ( DISTINCT - - 91 ) ) + COUNT ( * ) * + 99 AS col0 @@ -23378,8 +23637,11 @@ SELECT 22 + + 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 257 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col1" at position 0 and "count\(CASE Int64\(40\) WHEN Int64\(88\) / \(\- Int64\(\-97\)\) THEN \(\- CAST\(NULL AS Int32\)\) END\) \+ Int64\(29\) \+ Int64\(19\) \* Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 53 AS col1, COUNT ( ALL CASE + 40 WHEN + 88 / - - 97 THEN - CAST ( NULL AS INTEGER ) END ) + + 29 + + + 19 * + 12 AS col1 +---- +-53 +257 query II rowsort SELECT - 4 AS col1, 50 * + ( - ( 16 ) ) @@ -23885,8 +24147,11 @@ SELECT DISTINCT + 43 / + 48 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + 68 AS col2 +---- +1 +68 query II rowsort label-4534 SELECT ALL 81 AS col0, COUNT ( * ) @@ -23923,8 +24188,11 @@ SELECT COUNT ( * ) - - 98 * + MIN ( - - 88 ) / - 2 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - -2817 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col2" at position 0 and "Int64\(56\) \* Int64\(\-50\) \+ Int64\(\-17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 AS col2, 56 * + - 50 + - 17 AS col2 +---- +-2817 +-58 query I rowsort SELECT DISTINCT - 99 + - 51 @@ -24837,8 +25105,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(4\) AS col1" at position 0 and "Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - CAST ( NULL AS INTEGER ) ) * + 4 AS col1, - 1 col1 +---- +-1 +NULL query I rowsort label-4720 SELECT ALL + ( - + 15 ) / - MIN ( DISTINCT + - 37 ) @@ -25992,8 +26263,12 @@ SELECT ALL 48 + + 73 AS col1 # Datafusion - Expected - 99 # Datafusion - Expected - 63 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 1 and "Int64\(82\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 99 AS col1, 63 AS col2, + 82 AS col2 +---- +63 +82 +99 query II rowsort label-4942 SELECT DISTINCT 4, + 85 + CAST ( NULL AS INTEGER ) + - ( - 78 ) * + 82 col1 @@ -26163,8 +26438,11 @@ 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\(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\. +query II valuesort SELECT 29 * + - COUNT ( * ) col0, 80 / + - 14 AS col0 +---- +-29 +-5 query I rowsort SELECT 89 * + + 25 @@ -26185,8 +26463,11 @@ SELECT DISTINCT 14 * 85 + + 16 + + 30 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 "Int64\(63\) \+ Int64\(\-68\) AS col1" at position 0 and "Int64\(82\) \- Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 63 + - 68 AS col1, + 82 - + + 93 AS col1 +---- +-11 +-5 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -26219,8 +26500,11 @@ SELECT - 29 * + 3 * + 24 * - + 54 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(41\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(20\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 43 * - CAST ( NULL AS INTEGER ) * + 41 / + COUNT ( * ) + 20 AS col2, 42 col2 +---- +42 +NULL query I rowsort label-4984 SELECT DISTINCT + 64 * - CASE + COUNT ( ALL + - 87 ) WHEN 59 THEN NULL WHEN + + 52 - + CAST ( NULL AS INTEGER ) THEN NULL ELSE + NULLIF ( + + 50, - 82 ) END + - 25 AS col2 @@ -26299,8 +26583,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, + COUNT ( * ) * - + 45 AS col0 +---- +-1 +-45 query I rowsort SELECT 84 * - 96 AS col2 @@ -26329,8 +26616,11 @@ SELECT DISTINCT 37, 68 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \+ Int64\(90\) / Int64\(26\) AS col0" at position 0 and "\(\- Int64\(\-78\)\) \- Int64\(\-12\) \+ Int64\(\-3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 7 + + 90 / 26 AS col0, - ( - 78 ) - - 12 + - 3 AS col0 +---- +-4 +87 query I rowsort SELECT ALL - 24 * + 89 AS col1 @@ -26760,8 +27050,11 @@ NULL # 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 "\(\- coalesce\(\(\- Int64\(\-9\)\), Int64\(21\) \* nullif\(\(\- nullif\(Int64\(\-54\), sum\(Int64\(96\)\)\)\), Int64\(\-20\)\) \* Int64\(\-46\)\)\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( - - 9, 21 * NULLIF ( - NULLIF ( + - 54, + SUM ( ALL 96 ) ), - 20 ) * - 46 ) col0, ( + 95 ) AS col0 +---- +-9 +95 query I rowsort label-5087 SELECT - 20 - MAX ( ( 37 ) ) + - MAX ( + 97 ) @@ -26776,8 +27069,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 205 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \- Int64\(\-91\) \- Int64\(53\) \+ Int64\(86\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 - - 91 - + 53 + 86 - COUNT ( * ) AS col0, 79 AS col0 +---- +205 +79 query I rowsort SELECT ALL - 85 * 27 @@ -26989,8 +27285,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( + 84, + 89 / - - 62 * - MAX ( - 56 ) - COUNT ( * ) ) col0, 95 AS col0 +---- +84 +95 query I rowsort label-5129 SELECT + COUNT ( * ) + + 57 * - ( 56 ) * + + 67 AS col1 @@ -27147,8 +27446,11 @@ SELECT + 71 + 28 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* \(\- count\(DISTINCT \(\- CAST\(\(\- Int64\(\-1\)\) AS Float64\)\)\)\) AS col2" at position 0 and "Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 83 * - COUNT ( DISTINCT - CAST ( - - 1 AS FLOAT8 ) ) AS col2, - 74 AS col2 +---- +-74 +-83 query I rowsort SELECT + 88 * 33 @@ -27539,8 +27841,11 @@ SELECT 7 * 21 * NULLIF ( - 14, - ( 21 ) ) + - COUNT ( 29 ) col1 # 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\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 AS col1, - 0 AS col1 +---- +0 +67 query II rowsort SELECT ALL 63 AS col2, + 14 @@ -27710,8 +28015,11 @@ SELECT - NULLIF ( + + COUNT ( * ), + 65 ) + + MAX ( - - 48 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col0" at position 0 and "Int64\(54\) \* \(\- \(\- CASE Int64\(55\) WHEN Int64\(\-48\) THEN Int64\(11\) \* Int64\(\-81\) \+ CAST\(NULL AS Int32\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(\-88\) \* Int64\(35\) THEN Int64\(22\) END\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-34 +NULL query I rowsort SELECT ALL - - 97 * - + 13 - ( + 42 ) col0 @@ -28463,8 +28771,11 @@ SELECT ALL - 27, COUNT ( * ) * + - 37 col2 # 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 "Int64\(38\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 AS col1, + 72 col1 +---- +38 +72 query I rowsort SELECT 1 - - 78 + 15 @@ -28619,8 +28930,11 @@ SELECT ALL 20 * + 52 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \+ Int64\(93\) AS col0" at position 0 and "Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + - 40 ) + + 93 AS col0, 76 AS col0 +---- +53 +76 query I rowsort label-5436 SELECT ALL - 99 + COUNT ( 65 ) AS col2 @@ -28871,8 +29185,11 @@ SELECT - - 47 + - NULLIF ( 37, - 10 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "\(\- count\(Int64\(\-25\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 32 AS col0, - COUNT ( - 25 ) AS col0 +---- +-1 +32 query I rowsort SELECT ALL - - 21 + 3 @@ -28968,8 +29285,11 @@ SELECT + COUNT ( * ) * 99 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1164 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) / \(\- CAST\(Int64\(94\) AS Int32\)\) \+ \(\- Int64\(97\)\) \* coalesce\(Int64\(\-12\), CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(87\) THEN Int64\(\-83\) ELSE NULL END / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(\-35\)\) AS col2" at position 0 and "CAST\(\(\- Int64\(65\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-65 +1164 query I rowsort label-5503 SELECT ALL + + CAST ( - - 30 AS INTEGER ) col0 @@ -29023,8 +29343,11 @@ SELECT ALL + ( - - 88 ) * - 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) / Int64\(1\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 44 / 1 AS col2, + COUNT ( * ) AS col2 +---- +-44 +1 query I rowsort label-5513 SELECT ALL + CAST ( + 32 AS INTEGER ) * - 17 * - 6 - 43 AS col1 @@ -29261,8 +29584,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + 80 AS col1, 88 AS col1 +---- +81 +88 query I rowsort label-5558 SELECT DISTINCT - CASE WHEN NOT - 20 <= + MIN ( 77 ) + + 92 + - COUNT ( * ) * - 97 + + NULLIF ( - 73, 49 ) THEN + 14 / 58 END / + ( COUNT ( * ) ) @@ -29345,8 +29671,11 @@ SELECT - COUNT ( * ) / + 49, 57 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 5264 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col0" at position 0 and "Int64\(56\) \* Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 23 AS col0, + 56 * + 94 AS col0 +---- +23 +5264 query I rowsort label-5574 SELECT ALL + MIN ( ALL + - 84 ) AS col0 @@ -29366,8 +29695,11 @@ SELECT ALL + CAST ( - - 27 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 29 AS col1, 88 AS col1 +---- +29 +88 query I rowsort SELECT - 92 * 45 @@ -29607,8 +29939,11 @@ SELECT + 82 * - 82 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2548 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* Int64\(28\) AS col0" at position 0 and "Int64\(\-59\) \+ Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( 91 ) * + 28 AS col0, - 59 + + 90 AS col0 +---- +2548 +31 query I rowsort SELECT ALL 47 - - + 83 @@ -30282,8 +30617,11 @@ SELECT DISTINCT 51 + 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 182 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \+ Int64\(92\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* CASE Int64\(43\) WHEN Int64\(60\) \* Int64\(75\) THEN \(\- min\(DISTINCT Int64\(16\)\)\) WHEN \(\- CASE \(\- Int64\(\-56\)\) WHEN Int64\(\-65\) \* sum\(Int64\(1\)\) \+ Int64\(69\) THEN NULL WHEN Int64\(\-42\) \* Int64\(68\) \+ \(\- \(\- nullif\(Int64\(64\), Int64\(20\) \* min\(Int64\(41\)\) \+ Int64\(\-7\)\)\)\) THEN Int64\(17\) END\) THEN NULL ELSE NULL END \+ \(\- Int64\(1\)\) \+ \(\- \(\- coalesce\(Int64\(82\), \(\- count\(Int64\(18\)\)\)\)\)\) / CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(88\) THEN Int64\(\-99\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +182 +NULL query I rowsort SELECT ALL + + COALESCE ( 90, 97, - - 76 * - 11 ) + 49 AS col0 @@ -30308,8 +30646,11 @@ 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\(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\. +query II valuesort 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 +---- +51 +NULL query II rowsort SELECT + 88 + 66, - 7 AS col2 @@ -30483,8 +30824,11 @@ SELECT - COUNT ( * ) * + 20 + + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 13 AS col0, 75 AS col0 +---- +-13 +75 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -30687,8 +31031,11 @@ SELECT ALL 54 + + - 71 + + - 61 * - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 177 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \+ nullif\(\(\- CAST\(\(\- Int64\(24\)\) AS Int32\)\), Int64\(\-73\)\) AS col0" at position 0 and "Int64\(79\) \+ Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 24 + + + NULLIF ( - CAST ( - + 24 AS INTEGER ), - 73 ) AS col0, 79 + 98 AS col0 +---- +177 +48 query I rowsort SELECT + 36 * - 96 * + - 14 AS col0 @@ -30862,8 +31209,12 @@ SELECT 51 * - - 64 # Datafusion - Expected - 2724 # Datafusion - Expected - 0 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ \(\- Int64\(67\)\) \+ sum\(Int64\(29\)\) \* \(\- CAST\(Int64\(\-92\) AS Int32\)\) \+ Int64\(59\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(18\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 64 + - + 67 + SUM ( + 29 ) * + - CAST ( - 92 AS INTEGER ) + 59 AS col2, - 23 / 44 AS col1, - COUNT ( * ) * 18 AS col2 +---- +-18 +0 +2724 query I rowsort SELECT ALL - 76 + - 62 AS col0 @@ -30974,14 +31325,20 @@ SELECT 54 + 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - -146 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) \+ \(\- Int64\(88\)\) AS col1" at position 0 and "count\(DISTINCT Int64\(81\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 + - + 88 col1, COUNT ( DISTINCT + 81 ) AS col1 +---- +-146 +1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 AS col0, + 90 AS col0 +---- +45 +90 query II rowsort label-5883 SELECT DISTINCT + 18 * - 2 + COUNT ( * ) / + + COALESCE ( 9, COUNT ( * ) / - 61 + + + 86 * 33 ), 34 AS col2 @@ -31037,8 +31394,11 @@ SELECT ALL - 80 + + + 41 # 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\(42\) \+ Int64\(2\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 42 + + 2 AS col2, + 81 col2 +---- +44 +81 query I rowsort label-5894 SELECT NULLIF ( - + MIN ( 1 ), - 64 ) * - 16 * 70 @@ -31146,8 +31506,12 @@ SELECT ( + COUNT ( * ) ) * + 42, - 49 col2 # Datafusion - Expected - NULL # Datafusion - Expected - 51 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / nullif\(CASE CAST\(NULL AS Int32\) WHEN Int64\(\-21\) THEN Int64\(34\) \- count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-99\) THEN NULL WHEN Int64\(0\) THEN Int64\(\-14\) END, \(\- Int64\(69\)\)\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +51 +75 +NULL query II rowsort label-5914 SELECT ALL - 98 + - - COUNT ( * ) * - 31 * 48 - 46 AS col0, - 6 * + 74 AS col2 @@ -31531,8 +31895,11 @@ SELECT 70 + 77 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 77 AS col1, 37 AS col1 +---- +37 +77 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -31845,8 +32212,11 @@ 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\(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\. +query II valuesort SELECT ALL - 33 * + + COUNT ( * ) * + 3 + - 7 + + + 21 * + - 64 + - - 75 AS col0, + 21 + - + 98 col0 +---- +-1375 +-77 query I rowsort label-6046 SELECT - + MAX ( ALL + - COALESCE ( - - 33, 78 ) ) @@ -32056,8 +32426,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 78 col2, + 54 AS col2 +---- +-78 +54 query I rowsort SELECT DISTINCT - 47 - 25 @@ -32120,8 +32493,11 @@ SELECT ALL + SUM ( 80 ) + COUNT ( * ) + - - 55 / + 56 * + 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(13\) AS col0" at position 0 and "max\(\(\- coalesce\(Int64\(88\), CAST\(Int64\(5\) AS Int32\) \+ Int64\(95\) / Int64\(72\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 + - - COUNT ( * ) + 13 AS col0, MAX ( - COALESCE ( 88, + CAST ( + 5 AS INTEGER ) + + 95 / + 72 ) ) AS col0 +---- +-88 +46 query I rowsort label-6097 SELECT 89 + + + MAX ( + - CASE - + 76 WHEN - - 84 THEN - 69 END ) + 17 AS col2 @@ -34178,8 +34554,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT CAST\(NULL AS Int32\)\) \+ \(\- Int64\(94\)\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - + 94 AS col0, 82 AS col0 +---- +82 +NULL query II rowsort label-6491 SELECT DISTINCT - + CASE + - 86 WHEN + ( - + 26 ) * + 1 * ( COUNT ( * ) ) THEN - 73 END AS col0, - 10 - + 34 - 23 * 26 @@ -34918,8 +35297,11 @@ SELECT ( - 76 ) AS col1, - 54 / - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, - 16 AS col2 +---- +-16 +1 query I rowsort label-6629 SELECT ALL 77 + - COUNT ( * ) + + COALESCE ( - 63, 6 ) + + 17 / COALESCE ( + 66, - + 43 ) * + 71 - + ( COUNT ( * ) ) + - - 39 * - 61 * + CAST ( - 95 AS INTEGER ) + - 34 @@ -34964,8 +35346,11 @@ SELECT - 57 * 99 # 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\(\-45\) \+ Int64\(\-36\) \+ Int64\(72\) AS col1" at position 0 and "\(\- max\(Int64\(\-41\)\)\) / Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 45 + - 36 + 72 AS col1, - ( MAX ( - 41 ) ) / + 93 AS col1 +---- +-9 +0 query I rowsort label-6638 SELECT ALL SUM ( - - 3 ) @@ -35347,8 +35732,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(\-50\)\) \+ Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 3 * + 40 AS col0, COUNT ( * ) * - - 50 + 32 AS col0 +---- +120 +82 query I rowsort SELECT DISTINCT + 92 + + CASE + + 9 WHEN + 22 THEN + - 12 ELSE NULL END col0 @@ -35521,8 +35909,11 @@ SELECT - 49, - SUM ( ALL - 74 ) + - 7 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 6680 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col2" at position 0 and "Int64\(84\) \- \(\- Int64\(\-97\)\) \* Int64\(\-68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 60 AS col2, 84 - - - 97 * - 68 AS col2 +---- +60 +6680 query I rowsort label-6744 SELECT ALL + + 36 * COUNT ( * ) + + MAX ( DISTINCT + - CAST ( + 61 AS INTEGER ) ) * - 42 * 96 AS col2 @@ -35906,8 +36297,12 @@ SELECT COALESCE ( - ( 24 ), - - CAST ( - 47 AS INTEGER ) * 16 * + 18 ) * + 82 + # Datafusion - Expected - 3784153 # Datafusion - Expected - 1 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* \(\- Int64\(\-20\)\) \* Int64\(51\) \* Int64\(53\) \+ Int64\(\-21\) \- Int64\(26\) AS col2" at position 0 and "\(\- Int64\(\-39\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 70 * - - 20 * + 51 * 53 + - 21 - + 26 AS col2, COUNT ( DISTINCT - 0 ) AS col0, - ( - 39 ) AS col2 +---- +1 +3784153 +39 query II rowsort SELECT - 18 AS col1, 11 AS col0 @@ -35975,8 +36370,11 @@ SELECT ALL + COALESCE ( - + 51, - 1 * + 78 * MAX ( + 47 ) ) + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2220 # Datafusion - Expected - -2544 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \* Int64\(30\) AS col1" at position 0 and "Int64\(53\) \* \(\- Int64\(48\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 74 * 30 AS col1, + 53 * - + 48 col1 +---- +-2220 +-2544 query I rowsort label-6830 SELECT ALL MAX ( ALL 79 ) + CASE + 71 WHEN - 48 * + NULLIF ( - - CAST ( NULL AS INTEGER ), 43 ) THEN NULL WHEN + + 18 THEN ( - + 99 ) * + 21 * + 77 ELSE NULL END @@ -36050,8 +36448,11 @@ SELECT - 54 + - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(99\) \+ Int64\(95\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 35 AS col0, CAST ( NULL AS INTEGER ) + 99 + + 95 * + - COUNT ( * ) AS col0 +---- +35 +NULL query I rowsort label-6844 SELECT 81 / 59 * - - 18 @@ -36606,8 +37007,11 @@ SELECT ALL - 79 - 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5576 # Datafusion - Expected - 146473 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* Int64\(82\) AS col1" at position 0 and "Int64\(\-73\) \+ Int64\(92\) \+ Int64\(\-61\) \* Int64\(23\) \* Int64\(\-3\) \* Int64\(22\) \+ coalesce\(Int64\(66\), Int64\(\-16\), Int64\(56\)\) \* Int64\(16\) \* Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 68 * + 82 AS col1, - 73 + 92 + + - 61 * + 23 * - 3 * 22 + COALESCE ( 66, - 16, + 56 ) * + + 16 * + + 51 col1 +---- +146473 +5576 query I rowsort label-6948 SELECT SUM ( - 55 ) @@ -36948,8 +37352,11 @@ SELECT DISTINCT - 90 + - NULLIF ( + 33, - 76 ) * 36 * + 80 AS col2, 34 * + 57 * # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col2" at position 0 and "Int64\(22\) \+ Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 AS col2, 22 + 63 AS col2 +---- +-10 +85 query II rowsort SELECT - - 39 AS col0, 3 * - 20 @@ -37409,8 +37816,11 @@ SELECT 48 * 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "Int64\(\-54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 22 col2, + ( - 54 ) AS col2 +---- +-54 +22 query I rowsort label-7099 SELECT ALL + COUNT ( * ) + + - 42 AS col2 @@ -37476,8 +37886,11 @@ SELECT DISTINCT - 3 * + 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(84\)\) AS col2" at position 0 and "Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( 84 ) AS col2, - 29 AS col2 +---- +-29 +-84 query I rowsort label-7112 SELECT ALL - COUNT ( ALL 22 ) - - + 20 + - 10 + 78 * + COALESCE ( + 53, + + 70 * + - 71 ) * + 80 @@ -37664,8 +38077,11 @@ SELECT + NULLIF ( 41, + + 27 + - - COUNT ( * ) / + COUNT ( * ) ) + 88 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* \(\- nullif\(count\(Int64\(8\)\), Int64\(\-50\)\)\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 73 * - + NULLIF ( + COUNT ( ALL 8 ), - 50 ) AS col0, 96 AS col0 +---- +-73 +96 query I rowsort SELECT - ( 57 ) + + 26 col2 @@ -38391,8 +38807,11 @@ SELECT - 62 * - + NULLIF ( - + ( + 26 ), - MAX ( ALL - 85 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ Int64\(65\) AS col0" at position 0 and "Int64\(\-88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 33 + 65 AS col0, - 88 col0 +---- +-88 +98 query I rowsort SELECT - ( + - 32 ) col2 @@ -38426,8 +38845,11 @@ NULL # 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\(41\) \+ \(\- Int64\(\-47\)\) AS col0" at position 0 and "Int64\(8\) / Int64\(\-69\) \+ Int64\(\-86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 41 + - - 47 AS col0, 8 / - 69 + + - 86 col0 +---- +-86 +88 query I rowsort label-7292 SELECT + 7 * + 22 + + COUNT ( * ) @@ -38572,8 +38994,11 @@ SELECT + 86 * + - 26 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "Int64\(\-55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 9 AS col1, - 55 AS col1 +---- +-55 +9 query I rowsort SELECT + 62 - 12 @@ -38669,8 +39094,12 @@ SELECT ALL - 28 + - + 54 # Datafusion - Expected - -1078 # Datafusion - Expected - -6758 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \+ Int64\(59\) \* Int64\(\-19\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 43 + 59 * - 19 AS col0, - ( + 61 ) * - - 37 * + + 3 + 13, 8 AS col0 +---- +-1078 +-6758 +8 query II rowsort SELECT 13 * + ( - 4 ) * 29, - 85 AS col0 @@ -38757,8 +39186,11 @@ SELECT 18 * - - 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 2 col0, + 77 AS col0 +---- +2 +77 query II rowsort label-7355 SELECT DISTINCT - 92 - ( - 34 ) * - + 86 AS col2, COUNT ( * ) @@ -39366,8 +39798,11 @@ SELECT DISTINCT 98 + + - CASE - 69 WHEN + 93 THEN + - 57 + COUNT ( * ) * 75 * - # Datafusion - Datafusion expected results: # Datafusion - Expected - -3402 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \* Int64\(81\) AS col2" at position 0 and "Int64\(28\) \+ Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 42 * + 81 AS col2, + 28 + + ( + + 16 ) AS col2 +---- +-3402 +44 query I rowsort label-7471 SELECT DISTINCT - COUNT ( ALL 16 ) AS col1 @@ -39606,14 +40041,20 @@ SELECT - 77 * + - 82 * + COUNT ( * ) - - 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(0\) \+ Int64\(\-53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 0 + - 53 AS col2 +---- +-53 +1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "Int64\(\-70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 71 col2, - 70 AS col2 +---- +-70 +71 query I rowsort SELECT - 35 * + 17 - + 67 AS col0 @@ -39711,8 +40152,11 @@ SELECT ALL ( 74 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-44\) AS Int32\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( - 44 AS INTEGER ) AS col0, 98 AS col0 +---- +-44 +98 query I rowsort SELECT - CASE - 90 WHEN + + 85 THEN - - 97 WHEN + NULLIF ( - 63, - 6 ) THEN NULL WHEN 52 * 22 + 57 THEN NULL END @@ -39929,8 +40373,11 @@ SELECT DISTINCT - COALESCE ( 71, + + 38 * 25, - + COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68640 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* Int64\(20\) \* Int64\(\-66\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 * 20 * - 66 AS col0, + CAST ( NULL AS INTEGER ) col0 +---- +-68640 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -40141,8 +40588,11 @@ SELECT + 9 * + NULLIF ( + 24, - 70 ) + + + 71 + + 71 + - 97 + + 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 944 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-89\), Int64\(68\) / Int64\(\-58\) / count\(Int64\(1\)\) AS count\(\*\)\) \- CAST\(NULL AS Int32\) \+ Int64\(\-85\) \+ Int64\(\-7\) \+ Int64\(\-30\) AS col0" at position 0 and "Int64\(16\) \* Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( - 89, 68 / - 58 / COUNT ( * ) ) - + CAST ( NULL AS INTEGER ) + + - 85 + - 7 + - 30 AS col0, 16 * 59 AS col0 +---- +944 +NULL query I rowsort label-7617 SELECT ALL + 5 / + + COUNT ( * ) - + + 26 AS col0 @@ -40203,8 +40653,11 @@ 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\(1\)\) AS count\(\*\) / \(\- Int64\(3\)\) \+ Int64\(45\) \+ Int64\(\-79\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 98 + 69 AS col1, - COALESCE ( 12, 24 * + COUNT ( * ) / - ( + 3 ) + + 45 + - 79 ) AS col1 +---- +-12 +-29 query I rowsort label-7629 SELECT DISTINCT 98 + - - ( - ( + + COUNT ( ALL + 50 ) ) ) + - 93 + COUNT ( * ) * + - ( - - 30 ) + COUNT ( * ) / - 10 * MAX ( DISTINCT - 50 ) AS col2 @@ -40480,8 +40933,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 AS col2, 32 * + 77 + 15 * - - COUNT ( * ) AS col2 +---- +2479 +86 query I rowsort label-7682 SELECT ALL - + COUNT ( - - 12 ) + - + 37 col1 @@ -40603,8 +41059,12 @@ SELECT ALL ( + - 16 ) * 28 / 20 + - + COUNT ( * ) AS col1 # Datafusion - Expected - -28 # Datafusion - Expected - 13 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col1" at position 1 and "Int64\(89\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT COUNT ( * ) + - COALESCE ( + 29, ( + + 68 ) * + + 20 * 77 ), 13 col1, + 89 AS col1 +---- +-28 +13 +89 query I rowsort label-7705 SELECT 77 + + COUNT ( * ) - ( + + CASE 88 WHEN 53 * + 90 THEN + 74 END ) + 42 @@ -40847,8 +41307,11 @@ SELECT DISTINCT 38 / - - NULLIF ( 25, + 14 ) AS col2, - 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2738 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \* CAST\(\(\- Int64\(42\)\) AS Int32\) \+ Int64\(50\) AS col2" at position 0 and "\(\- \(\- Int64\(80\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 * + + CAST ( - + 42 AS INTEGER ) + + 50 AS col2, - ( - + 80 ) col2 +---- +2738 +80 query I rowsort SELECT ALL 11 * ( + 92 ) @@ -41662,8 +42125,11 @@ SELECT ALL + 71 AS col1, 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "Int64\(\-44\) \* CAST\(NULL AS Int32\) \* Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 42 AS col2, - 44 * + ( CAST ( NULL AS INTEGER ) ) * - 79 AS col2 +---- +42 +NULL query I rowsort SELECT ALL 27 * - 86 * 5 AS col1 @@ -42211,8 +42677,12 @@ SELECT ALL + ( - 64 ) + + 35 + - 69 AS col2, MIN ( 40 ) * - 34 + 6 # Datafusion - Expected - 94 # Datafusion - Expected - -56 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col0" at position 1 and "Int64\(35\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 94 AS col2, - 56 AS col0, 35 AS col0 +---- +-56 +35 +94 query II rowsort label-8013 SELECT ALL 32 + + 67 / + ( - 45 ) col1, MAX ( COALESCE ( CASE 40 WHEN 66 THEN NULL WHEN 1 - - ( 62 ) / 24 THEN + 86 WHEN ( 24 ) THEN NULL END, CAST ( - 40 AS INTEGER ) ) ) @@ -42357,8 +42827,11 @@ SELECT + 74 + 91 + - 56 + + 32 * + 42 * - - 45 * + COUNT ( * ) * ( 95 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(94\)\) AS col0" at position 0 and "sum\(Int64\(\-86\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( DISTINCT + 94 ) AS col0, SUM ( + - 86 ) AS col0 +---- +-86 +94 query I rowsort SELECT + 50 * + - 65 * 27 * + 68 * 66 AS col0 @@ -42404,8 +42877,11 @@ SELECT ALL 78 - - - 61 * + 81 * + 85 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \+ Int64\(\-23\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 84 + - 23 AS col2, + 19 AS col2 +---- +19 +61 query I rowsort label-8050 SELECT - COUNT ( ALL 22 ) * + 34 + + - 42 * COALESCE ( + 14, + NULLIF ( + 40, 73 ) * COUNT ( * ) - - ( 38 + 20 ), + 44 ) @@ -42515,8 +42991,11 @@ SELECT 6 AS col2, 97 # 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\(54\) \+ \(\- CAST\(NULL AS Float64\)\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + ( 54 ) + - CAST ( NULL AS FLOAT8 ) AS col0, + 12 col0 +---- +12 +NULL query I rowsort label-8071 SELECT 15 + - 55 / 86 * + 56 AS col2 @@ -42732,8 +43211,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 * + 76 AS col0, + COUNT ( * ) - + 78 AS col0 +---- +-77 +5244 query I rowsort label-8111 SELECT ( 93 ) - - + 92 + + 90 * + + ( + 12 ) * - ( + NULLIF ( - 41, + 9 ) ) + - ( COUNT ( * ) ) @@ -43329,8 +43811,11 @@ SELECT ALL - 82 - - 0 + 64 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-90\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 90 ) col0, COUNT ( * ) - + COUNT ( * ) AS col0 +---- +0 +90 query I rowsort SELECT 69 * ( - + 81 ) @@ -43980,8 +44465,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - COUNT ( * ) col1, - 79 AS col1 +---- +-79 +1 query I rowsort label-8349 SELECT ALL - COUNT ( * ) * + ( + 74 ) * + - 78 * - 41 @@ -44066,8 +44554,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 10 + + 8 AS col0, COUNT ( * ) * - 54 AS col0 +---- +-54 +18 query I rowsort SELECT DISTINCT 39 + - COALESCE ( 11, - 54 ) @@ -44542,8 +45033,11 @@ SELECT 7 * + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 17 AS col1, + 21 AS col1 +---- +-17 +21 query I rowsort label-8455 SELECT DISTINCT - COALESCE ( - 23, - - SUM ( 86 ), - 13 * 29, COUNT ( DISTINCT + 8 ) + - 3 + COUNT ( * ) * + + 80 ) * + 14 * 52 @@ -44686,8 +45180,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col0" at position 0 and "Int64\(\-88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 41 col0, + ( - 88 ) AS col0 +---- +-41 +-88 query I rowsort SELECT + + 67 * + 71 @@ -44732,8 +45229,11 @@ SELECT + COALESCE ( - COALESCE ( 2, COUNT ( * ) ), - + 65, + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col0" at position 0 and "Int64\(13\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 68 AS col0, 13 * COUNT ( * ) AS col0 +---- +13 +68 query I rowsort label-8492 SELECT - 73 / + 71 * + ( 65 ) + - + CAST ( NULL AS INTEGER ) AS col0 @@ -44955,8 +45455,11 @@ SELECT ALL + 80 / 47 + - - NULLIF ( + COUNT ( * ), + 73 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -115 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \- Int64\(47\) AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 68 - + 47 col1, 3 AS col1 +---- +-115 +3 query I rowsort label-8533 SELECT + COUNT ( + + 42 ) AS col0 @@ -45094,8 +45597,11 @@ SELECT 4 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 AS col0, ( + 96 ) AS col0 +---- +26 +96 query II rowsort label-8560 SELECT - 97 AS col0, - CASE + - MIN ( - - 41 ) WHEN 40 + - + 87 THEN + - 59 WHEN + + 51 / + - 20 * 33 + + 63 - - ( - + 74 ) + MIN ( ALL CAST ( NULL AS INTEGER ) ) + + 79 * - - COUNT ( * ) THEN + 57 / - - CASE + 90 WHEN - 40 THEN + + SUM ( - - 30 ) WHEN + 23 THEN ( SUM ( DISTINCT + 9 ) ) ELSE NULL END * - 93 ELSE 14 END * 74 AS col2 @@ -45182,8 +45688,12 @@ 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\(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\. +query III valuesort SELECT COUNT ( * ) / - 59 * + 82 AS col2, 76 + - - 52 + - 55, + 37 + 6 + - ( + + 8 ) AS col2 +---- +0 +35 +73 query II rowsort SELECT DISTINCT - - 42 AS col0, 1 AS col1 @@ -45236,8 +45746,11 @@ SELECT ALL COUNT ( + + 71 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, - 3 AS col0 +---- +-3 +NULL query I rowsort SELECT + 23 - - + 52 @@ -45428,8 +45941,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 108 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ Int64\(79\) AS col1" at position 0 and "Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 29 + + 79 AS col1, - 30 AS col1 +---- +-30 +108 query I rowsort SELECT DISTINCT 79 * 81 + 8 + + COALESCE ( - + 24, + - 17 * 18 ) + - + 72 AS col2 @@ -45480,8 +45996,11 @@ SELECT + 21 + + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col0" at position 0 and "Int64\(35\) \+ count\(DISTINCT Int64\(\-31\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 5 AS col0, 35 + COUNT ( DISTINCT - 31 ) AS col0 +---- +36 +5 query I rowsort SELECT - NULLIF ( + 51, 66 ) @@ -45582,8 +46101,11 @@ SELECT - - 30 + - 94 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "max\(Int64\(35\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 74 AS col2, MAX ( + 35 ) + COUNT ( * ) AS col2 +---- +36 +74 query I rowsort label-8651 SELECT ALL - 15 * + COALESCE ( 47, 62 * - COALESCE ( SUM ( DISTINCT - - 19 ), 34 / + - COUNT ( * ) ) ) * - 96 + - 24 + + - 19 - - - 85 - - 84 + COUNT ( * ) AS col0 @@ -45927,8 +46449,11 @@ SELECT + 60 + - COUNT ( - + 26 ) col2, - 78 - - 16 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-35\)\) \+ Int64\(\-24\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 35 + + - 24 AS col0, 17 AS col0 +---- +11 +17 query I rowsort SELECT ALL - + 18 col1 @@ -46076,8 +46601,11 @@ SELECT - 45 / + - 24 + + COUNT ( * ) AS col0, COALESCE ( 26, + COUNT ( * ), + 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col0" at position 0 and "Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 43 AS col0, 52 AS col0 +---- +43 +52 query I rowsort SELECT ALL - - 96 + + ( + 64 ) AS col1 @@ -46129,8 +46657,11 @@ SELECT ALL + - 14 AS col2, 29 + + CAST ( - 52 AS INTEGER ) * + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -11134 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col2" at position 0 and "Int64\(57\) \* Int64\(\-87\) \+ \(\- Int64\(\-95\)\) \* \(\- Int64\(65\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 84 col2, 57 * - 87 + - - 95 * - + 65 AS col2 +---- +-11134 +84 query I rowsort label-8754 SELECT - 88 + - COUNT ( * ) AS col0 @@ -46463,8 +46994,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) / \(\- Int64\(\-99\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 42 / - - 99 AS col0, COUNT ( * ) AS col0 +---- +0 +1 query I rowsort label-8818 SELECT COUNT ( * ) * - COALESCE ( COUNT ( * ), COUNT ( * ) ) + + + COUNT ( * ) @@ -47400,8 +47934,11 @@ 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\(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\. +query II valuesort SELECT - 12 AS col1, + CASE COUNT ( * ) WHEN + - 17 + + 94 THEN 97 ELSE + COUNT ( * ) + - ( + 74 ) END AS col1 +---- +-12 +-73 query II rowsort label-8995 SELECT DISTINCT 34 AS col0, COUNT ( * ) AS col2 @@ -47705,8 +48242,11 @@ SELECT ALL - + 90, + 73 * - 73 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 0 -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\(\-50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 47 AS col2, 4 / - 50 AS col2 +---- +-47 +0 query I rowsort SELECT + 65 * - - 56 * ( 58 ) AS col0 @@ -47794,8 +48334,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 202937 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-94\) / Int64\(23\) AS col1" at position 0 and "Int64\(\-30\) \- \(\- Int64\(67\)\) \+ Int64\(86\) \* Int64\(\-40\) \* CAST\(\(\- Int64\(59\)\) AS Int32\) \+ Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) * - 94 / ( + + 23 ) AS col1, - 30 - - + 67 + + + 86 * - 40 * CAST ( - + 59 AS INTEGER ) + - 60 AS col1 +---- +-4 +202937 query I rowsort label-9070 SELECT DISTINCT - CASE - - CASE - 52 WHEN - 1 THEN NULL WHEN + 72 THEN NULL WHEN + 23 / 78 THEN - + COUNT ( * ) - 34 + + 17 ELSE ( - 34 ) END WHEN - - 30 THEN 89 * 4 * 82 * + 84 WHEN + 26 THEN NULL END AS col0 @@ -47984,8 +48527,12 @@ 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\(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\. +query III valuesort SELECT - COUNT ( * ) * + 61 * 17 + ( - - 4 ) * + NULLIF ( - 37, - 46 ) * + ( + 59 ), 54 * + 10 + - 33 AS col0, - NULLIF ( + - COUNT ( * ), - NULLIF ( + 88, - COUNT ( * ) + - - 20 ) ) + 37 + - 40 AS col0 +---- +-2 +-9769 +507 query I rowsort SELECT ALL 25 * - 57 @@ -48103,8 +48650,12 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-12\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-48 +95 +NULL query I rowsort label-9129 SELECT - - 78 * - - 18 * CAST ( NULL AS INTEGER ) * - SUM ( ( 52 ) ) @@ -48151,8 +48702,11 @@ SELECT DISTINCT - COALESCE ( + - SUM ( DISTINCT + 62 ), - - 40, 79, + 66 + - 6 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col1" at position 0 and "Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 98 AS col1, 95 col1 +---- +95 +98 query I rowsort label-9138 SELECT 94 + 64 + + - 18 + - 61 / NULLIF ( - 94, CAST ( - 33 AS INTEGER ) ) AS col0 @@ -48520,8 +49074,11 @@ SELECT ALL ( - - 60 ) * - - 15 + + + SUM ( - 36 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 84 AS col0, + 76 AS col0 +---- +76 +84 query I rowsort label-9208 SELECT + NULLIF ( + SUM ( 70 ), + + COUNT ( * ) ) @@ -49183,8 +49740,12 @@ SELECT ALL MAX ( + - 75 ) + + 82 # Datafusion - Expected - -3 # Datafusion - Expected - 70 # Datafusion - Expected - 746 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(48\) WHEN Int64\(46\) THEN NULL ELSE Int64\(\-70\) \+ \(\- CAST\(\(\- \(\- Int64\(47\)\)\) AS Int32\)\) / Int64\(68\) END\) AS col2" at position 1 and "Int64\(\-93\) \+ Int64\(9\) \* Int64\(87\) \+ Int64\(56\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 3 AS col0, - CASE 48 WHEN 46 THEN NULL ELSE - 70 + - + CAST ( - - ( + + 47 ) AS INTEGER ) / 68 END AS col2, - 93 + + ( + 9 ) * + 87 + 56 AS col2 +---- +-3 +70 +746 query I rowsort label-9332 SELECT + 34 + + COUNT ( * ) + + 57 + - 42 * - 26 + 23 AS col0 @@ -49477,8 +50038,11 @@ SELECT + 61 * 59 * COALESCE ( - 15, - 35 * + 17 * + ( 76 ) + - + CAST ( COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 84 AS col1, + 21 col1 +---- +21 +84 query I rowsort label-9388 SELECT ALL + COUNT ( * ) + 13 - 14 * + ( - 13 ) @@ -49602,8 +50166,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + MIN ( DISTINCT 78 ) ) + NULLIF ( - MIN ( DISTINCT + + 63 ), ( + + 35 ) * COUNT ( * ) ) AS col2, - 41 AS col2 +---- +-41 +15 query I rowsort label-9412 SELECT + ( COUNT ( DISTINCT 50 ) ) * - 89 + + - 35 @@ -51298,8 +51865,11 @@ SELECT ALL - 8 * + 82 + + 31 # 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 col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 42 AS col2, + 73 AS col2 +---- +42 +73 query I rowsort label-9743 SELECT - COALESCE ( - 17, - 40 * - 63, - 63 ) / + + 22 @@ -51309,8 +51879,11 @@ SELECT - COALESCE ( - 17, - 40 * - 63, - 63 ) / + + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-16\) \+ Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, ( - 16 ) + 6 AS col0 +---- +-10 +1 query I rowsort label-9745 SELECT + CAST ( 63 AS INTEGER ) * 19 @@ -51805,8 +52378,11 @@ SELECT - 1 + - - SUM ( 69 ) * + + NULLIF ( - MIN ( ALL - 44 ), - 53 ) * - ( COUN # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(10\), Int64\(\-43\), Int64\(24\)\)\) AS col1" at position 0 and "\(\- Int64\(76\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COALESCE ( 10, - 43, + + 24 ) AS col1, - ( 76 ) AS col1 +---- +-10 +-76 query I rowsort label-9838 SELECT - SUM ( ALL + - 49 ) AS col0 @@ -51884,8 +52460,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT Int64\(12\)\) \* \(\- Int64\(49\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( DISTINCT 12 ) * - + 49 AS col0, + COUNT ( * ) AS col0 +---- +-49 +1 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -51904,8 +52483,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 106840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \- coalesce\(Int64\(27\), Int64\(12\)\) AS col1" at position 0 and "Int64\(\-26\) \* min\(Int64\(\-72\)\) \* Int64\(59\) \+ Int64\(44\) \* Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 18 - + COALESCE ( + + 27, + ( + + 12 ) ) AS col1, - 26 * MIN ( - 72 ) * 59 + + 44 * - 82 AS col1 +---- +-9 +106840 query I rowsort label-9855 SELECT ALL COALESCE ( - 75, + 72 + + 10 * - 18 ) - - 73 / SUM ( ALL + 1 ) AS col2 diff --git a/data/sqlite/random/expr/slt_good_118.slt b/data/sqlite/random/expr/slt_good_118.slt index bdaa3d4..2f773b5 100644 --- a/data/sqlite/random/expr/slt_good_118.slt +++ b/data/sqlite/random/expr/slt_good_118.slt @@ -107,8 +107,11 @@ 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\(Int64\(1\)\) AS count\(\*\) / count\(DISTINCT Int64\(\-86\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 70 * ( - ( + 83 ) ) AS col2, COUNT ( * ) / + + COUNT ( DISTINCT - 86 ) AS col2 +---- +1 +5810 query I rowsort label-14 SELECT DISTINCT + COALESCE ( + NULLIF ( + + 46, + 80 ), COUNT ( * ) * MIN ( - 61 ) * + 53 + + + COUNT ( * ) * 9 * 37 + 2 + + 16 + + COUNT ( ALL - 29 ) * + 59 / + 16, 4, + 88 ) + ( - 9 ) * + 60 AS col2 @@ -459,8 +462,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 49 AS col1, - COUNT ( * ) AS col1 +---- +-1 +49 query I rowsort label-81 SELECT ALL + 22 + + MIN ( ALL - - 61 ) AS col1 @@ -1047,8 +1053,11 @@ SELECT 60 * 93 + + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col0" at position 0 and "nullif\(nullif\(coalesce\(CAST\(NULL AS Int32\), Int64\(\-41\), Int64\(6\)\), Int64\(\-71\)\), Int64\(\-75\) \* \(\- Int64\(85\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 AS col0, ( + NULLIF ( + NULLIF ( + COALESCE ( + CAST ( NULL AS INTEGER ), - 41, 6 ), - 71 ), + - 75 * - + 85 ) ) AS col0 +---- +-41 +48 query I rowsort SELECT + - ( - + 69 ) * 52 + + + 45 + 15 @@ -1058,8 +1067,11 @@ SELECT + - ( - + 69 ) * 52 + + + 45 + 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col2" at position 0 and "Int64\(\-62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 56 AS col2, - 62 AS col2 +---- +-56 +-62 query I rowsort label-197 SELECT COUNT ( * ) + + - MAX ( ALL 47 ) col0 @@ -1282,8 +1294,11 @@ SELECT - - MIN ( + 74 ) * - - 81 + - - ( 12 ) + 83 / 3 * 2 - MIN ( DISTINCT - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 71 AS col0, + 14 AS col0 +---- +14 +71 query I rowsort label-240 SELECT ALL + + MIN ( + + 1 ) - - 12 * 81 @@ -2152,8 +2167,11 @@ SELECT ALL - 68 + - 24 * + 47 * 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 655 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* Int64\(23\) \- Int64\(12\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 29 * 23 - 12 AS col0, 38 AS col0 +---- +38 +655 query I rowsort label-407 SELECT COUNT ( * ) * + MIN ( 62 ) - + COUNT ( * ) + + 74 @@ -2197,8 +2215,12 @@ 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\(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\. +query RII valuesort SELECT 28 * CAST ( NULL AS FLOAT8 ) * 83 AS col2, - COUNT ( * ) AS col0, - - 4 - - - 47 - + 22 AS col0 +---- +-1 +-65 +NULL query I rowsort label-415 SELECT ALL + NULLIF ( - 65, MAX ( DISTINCT 31 ) * + 11 ) @@ -2989,8 +3011,11 @@ 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\(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\. +query II valuesort SELECT ALL 41 * + 89 * - COUNT ( * ) AS col0, 4 * - + 78 * - + COUNT ( * ) AS col0 +---- +-3649 +312 query I rowsort label-567 SELECT + + COUNT ( * ) * COALESCE ( - 47, + 56 ) AS col0 @@ -3175,8 +3200,11 @@ SELECT - 90 * - + 47 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 178 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) / Int64\(\-78\) \+ Int64\(2\) \* Int64\(91\) \+ Int64\(22\) \+ \(\- max\(DISTINCT Int64\(12\)\)\) \+ Int64\(\-14\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 39 / - 78 + 2 * + 91 + + + 22 + + - MAX ( DISTINCT 12 ) + - 14 AS col0, + 89 AS col0 +---- +178 +89 query II rowsort SELECT ALL + 30 AS col1, + 53 * + 90 @@ -3238,8 +3266,11 @@ SELECT + 46 / + + CAST ( + + ( - 59 ) AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 9457 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "\(\- Int64\(\-99\)\) \+ Int64\(70\) \+ Int64\(\-2\) \* Int64\(54\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(86\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 38 AS col1, - ( - 99 ) + 70 + - 2 * 54 * - COUNT ( * ) * + 86 / + COUNT ( * ) AS col1 +---- +38 +9457 query I rowsort SELECT + - 17 + 76 * + ( 82 ) * + + 91 - + COALESCE ( - 28, + + 54 ) + + + 37 @@ -3318,8 +3349,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 5 / - 47 AS col1, 24 + - + 71 * - 57 + - - COUNT ( * ) AS col1 +---- +0 +4072 query I rowsort SELECT ALL - 60 - + ( COALESCE ( + 72, - 9 ) ) AS col0 @@ -3456,8 +3490,12 @@ SELECT DISTINCT COALESCE ( + - COUNT ( * ), - COUNT ( * ) * + COUNT ( * ) - + 61 # Datafusion - Expected - 86 # Datafusion - Expected - 65 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 86 AS col2, 76 + + 48 - 59, + 82 AS col2 +---- +65 +82 +86 query I rowsort SELECT + 1 + + 72 @@ -4048,8 +4086,11 @@ SELECT DISTINCT - 79 * 13 * 48 col0, + SUM ( 95 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(CAST\(CASE Int64\(7\) WHEN Int64\(\-87\) \* Int64\(3\) THEN \(\- Int64\(74\)\) \+ \(\- CAST\(NULL AS Int32\)\) END AS Int32\), Int64\(\-11\)\) \+ Int64\(\-26\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + NULLIF ( + CAST ( CASE 7 WHEN - 87 * 3 THEN - + 74 + - CAST ( NULL AS INTEGER ) END AS INTEGER ), - 11 ) + - 26 AS col2, + 52 AS col2 +---- +52 +NULL query I rowsort label-769 SELECT DISTINCT + MAX ( - 62 ) + + + 23 * - + 2 @@ -4213,8 +4254,11 @@ SELECT - CASE 83 WHEN - ( - + COUNT ( * ) ) THEN NULLIF ( + 50, + 42 ) * 47 + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 7896 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* Int64\(84\) AS col1" at position 0 and "max\(Int64\(\-22\)\) / Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 94 * 84 AS col1, MAX ( - 22 ) / + 4 col1 +---- +-5 +7896 query I rowsort label-800 SELECT - NULLIF ( - ( 6 ), CASE + 20 WHEN + SUM ( DISTINCT 85 ) THEN MAX ( DISTINCT + 99 ) WHEN - 64 THEN - 68 * + + 70 * - 78 - + + 91 END ) AS col0 @@ -4257,8 +4301,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 3264 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(21\)\) AS col1" at position 0 and "Int64\(48\) \* Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( 21 ) AS col1, 48 * + + 68 AS col1 +---- +21 +3264 query I rowsort SELECT ALL - + 97 * 68 + + 63 * 58 @@ -5300,8 +5347,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) + + 66 AS col1, COUNT ( * ) + - 46 - - SUM ( 46 ) col1 +---- +1 +67 query I rowsort label-1005 SELECT - CASE - - 46 WHEN - 98 THEN SUM ( DISTINCT - - 4 ) ELSE + 55 END / + 26 - + - 78 / COUNT ( * ) + + + 60 / + - 20 - - 92 @@ -5382,8 +5432,12 @@ SELECT ALL 65 AS col0, + 24 + 96 # Datafusion - Expected - 16 # Datafusion - Expected - -6414 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "Int64\(91\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 16 AS col2, 93 * - ( 92 ) + - 42 * - + 51, + + 91 AS col2 +---- +-6414 +16 +91 query I rowsort SELECT 40 - - 17 AS col2 @@ -5768,8 +5822,11 @@ SELECT + ( - 57 ) + - - 26 - + 60 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \- min\(DISTINCT CAST\(NULL AS Float64\)\) AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL 64 - + MIN ( DISTINCT CAST ( NULL AS FLOAT8 ) ) col0, 53 AS col0 +---- +53 +NULL query I rowsort label-1094 SELECT + 70 / 89 / - + COUNT ( * ) @@ -7057,8 +7114,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-12\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 12 ) AS col0, + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) AS col0 +---- +12 +NULL query I rowsort label-1343 SELECT ALL - - 76 + COALESCE ( NULLIF ( - - 2, + - 42 ), - 62 * - - 13 * MAX ( 95 * 43 ) + COUNT ( * ) ) @@ -7262,8 +7322,11 @@ SELECT + 3 + - CASE + + 24 WHEN - 60 THEN + + 65 WHEN + - 97 + + 14 THEN - 36 WH # Datafusion - Datafusion expected results: # Datafusion - Expected - -3599 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(\-59\) AS col2" at position 0 and "Int64\(\-65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 61 * - 59 AS col2, - 65 AS col2 +---- +-3599 +-65 query I rowsort label-1382 SELECT CAST ( + ( 64 ) AS INTEGER ) * - + 29 @@ -7356,8 +7419,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \- Int64\(98\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 - + 98 AS col0, 97 AS col0 +---- +-77 +97 query I rowsort SELECT + + NULLIF ( + 92, 69 ) AS col0 @@ -7396,8 +7462,11 @@ SELECT ALL - - 46 - + 61 / 60 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\(\-5\)\) \+ Int64\(62\) AS col1" at position 0 and "Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 5 + + 62 AS col1, - 66 AS col1 +---- +-66 +67 query I rowsort label-1406 SELECT - 8 * + 45 * + COUNT ( * ) AS col2 @@ -7622,8 +7691,12 @@ SELECT ALL ( 60 ) AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - -736368 # Datafusion - Expected - 128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(92\) \* Int64\(92\) \* Int64\(\-87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col0, 92 * 92 * - 87 AS col0, 89 + + MIN ( 39 ) +---- +-736368 +128 +NULL query I rowsort label-1449 SELECT DISTINCT + 16 * + COUNT ( * ) @@ -7778,8 +7851,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 7347 # Datafusion - Expected - -75145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \* \(\- Int64\(93\)\) AS col1" at position 0 and "Int64\(95\) \+ Int64\(76\) \* Int64\(\-22\) \* CAST\(Int64\(45\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 79 * - + 93 AS col1, 95 + 76 * - 22 * + + CAST ( 45 AS INTEGER ) AS col1 +---- +-75145 +7347 query II rowsort label-1479 SELECT DISTINCT - - 87 AS col0, CASE - 74 WHEN ( - - COUNT ( - 85 ) ) + - CASE 65 WHEN 60 * 15 THEN 82 + - 77 WHEN 69 THEN NULL END / 78 THEN CASE + 32 WHEN 19 * 31 THEN + 92 ELSE 31 + COUNT ( * ) END - 61 ELSE - 21 + - 93 END * 15 @@ -8550,8 +8626,11 @@ SELECT 50 + 90 + + 38 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 8369 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "Int64\(50\) \+ \(\- Int64\(40\)\) \+ Int64\(95\) \* Int64\(88\) \+ \(\- nullif\(count\(Int64\(29\)\), Int64\(\-61\) / Int64\(1\) \+ \(\- Int64\(\-28\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 AS col1, 50 + - + 40 + 95 * + + 88 + - NULLIF ( + COUNT ( ALL 29 ), - 61 / + + 1 + - - 28 ) AS col1 +---- +22 +8369 query I rowsort SELECT 59 + - 37 @@ -8696,8 +8775,12 @@ SELECT - SUM ( DISTINCT - - 98 ) * + + 23 - + 41 # Datafusion - Expected - 66 # Datafusion - Expected - 4 # Datafusion - Expected - 1265 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \+ Int64\(79\) \+ Int64\(15\) AS col2" at position 0 and "Int64\(50\) \* Int64\(26\) \- Int64\(35\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 28 + 79 + 15 AS col2, + 45 / - - 10, + + 50 * + 26 - 35 AS col2 +---- +1265 +4 +66 query I rowsort SELECT 9 * 48 + + 87 * 17 AS col2 @@ -8755,8 +8838,11 @@ SELECT ALL - 19 + 62 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- \(\- Int64\(46\)\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(19\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + SUM ( ( - - ( + 46 ) ) ) + - COUNT ( * ) - + 19 * COUNT ( * ) AS col1, 58 AS col1 +---- +26 +58 query I rowsort SELECT - - 55 * + 88 AS col2 @@ -8791,8 +8877,11 @@ SELECT + + 98 * + 4 # 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\(\-88\)\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( + - 88 ) AS col0, 31 AS col0 +---- +1 +31 query I rowsort label-1673 SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) * - 69 @@ -8897,8 +8986,11 @@ SELECT ALL + + 0 AS col1, + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51699 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(32\)\) \* Int64\(33\) \* Int64\(\-49\) \- CAST\(Int64\(44\) AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 32 * 33 * - 49 - CAST ( + 44 AS INTEGER ) + - COUNT ( * ) AS col1, 64 AS col1 +---- +51699 +64 query I rowsort SELECT DISTINCT ( - 87 ) @@ -9060,8 +9152,11 @@ SELECT + 14 + + + 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\(54\) \- Int64\(53\) 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 II valuesort SELECT DISTINCT 54 - + 53 AS col2, + COUNT ( + - 37 ) AS col2 +---- +1 +1 query I rowsort SELECT ALL + 42 * - COALESCE ( + 60, 93, 74, - - ( + 32 ) + - 36 ) AS col2 @@ -9482,8 +9577,11 @@ SELECT + 4 - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(20\)\)\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - + 20 ) AS col1, + 5 AS col1 +---- +20 +5 query II rowsort label-1805 SELECT ALL SUM ( ALL + 83 ), - CAST ( NULL AS INTEGER ) AS col0 @@ -9606,8 +9704,11 @@ SELECT DISTINCT - COALESCE ( - 17, + + 35 * 29 + + ( + 9 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \+ Int64\(\-26\) AS col1" at position 0 and "Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 94 + - 26 AS col1, - 61 AS col1 +---- +-61 +68 query II rowsort SELECT 53 + + + 21 + - + 84, 69 + - - 3 AS col0 @@ -9679,8 +9780,11 @@ SELECT 94 / + - 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) 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 II valuesort SELECT - 75 AS col2, 16 + - 4 AS col2 +---- +-75 +12 query I rowsort label-1842 SELECT ALL 9 + - + ( + CAST ( - 42 AS INTEGER ) ) @@ -10065,8 +10169,11 @@ SELECT ALL + - NULLIF ( - 47, + COALESCE ( 46, 73 + - 50 * - 11 ) + - NULLIF ( + # 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 "Int64\(83\) AS col2" at position 0 and "Int64\(18\) \+ \(\- count\(\(\- Int64\(\-65\)\)\)\) \+ Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 83 AS col2, 18 + - COUNT ( ALL - - 65 ) + + - 96 AS col2 +---- +-79 +83 query II rowsort label-1916 SELECT ALL COUNT ( * ), - 98 * + MIN ( ALL 27 ) AS col1 @@ -10184,8 +10291,11 @@ SELECT DISTINCT ( 71 ) * - + 28 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 AS col1, 8 AS col1 +---- +-82 +8 query I rowsort SELECT - 0 * - 86 @@ -10262,8 +10372,11 @@ SELECT ALL + 94 + - NULLIF ( - 97, + 27 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4307 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* nullif\(Int64\(80\), count\(Int64\(1\)\) AS count\(\*\) \+ \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(80\), Int64\(\-86\)\)\)\) \+ Int64\(\-13\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + + 54 ) * + NULLIF ( 80, + + COUNT ( * ) + - COALESCE ( COUNT ( * ), 80, - 86 ) ) + - 13 / COUNT ( * ) col2, 34 col2 +---- +34 +4307 query I rowsort label-1953 SELECT 98 * - CAST ( 85 AS INTEGER ) * MIN ( DISTINCT + 45 ) - - COUNT ( * ) * + 0 * - 4 + - 97 AS col2 @@ -10554,8 +10667,11 @@ SELECT + 11 - - 48 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7425 # Datafusion - Expected - 775 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \* Int64\(\-99\) AS col1" at position 0 and "Int64\(25\) \* Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 75 * - 99 AS col1, 25 * 31 col1 +---- +7425 +775 query I rowsort label-2009 SELECT ALL 37 / + - 66 * - - 83 + + 96 * - 76 AS col0 @@ -10856,8 +10972,11 @@ NULL # 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\(36\) \+ \(\- CASE Int64\(19\) WHEN Int64\(82\) THEN Int64\(84\) WHEN Int64\(50\) / count\(\(\- \(\- Int64\(\-12\)\)\)\) THEN 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 II valuesort SELECT 36 + - CASE 19 WHEN 82 THEN + 84 WHEN + 50 / + + COUNT ( - - ( - 12 ) ) THEN NULL END AS col2, 57 AS col2 +---- +57 +NULL query I rowsort SELECT 42 * + 81 * - 99 @@ -10983,8 +11102,11 @@ 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 "Int64\(1\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 AS col1, 19 AS col1 +---- +1 +19 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -11243,8 +11365,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, - 37 col2 +---- +-1 +-37 query I rowsort SELECT + COALESCE ( - 13, 64, 35 ) col2 @@ -11457,8 +11582,11 @@ SELECT 95 + + ( + 87 ), 12 * - 31 + - 12 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CASE Int64\(\-6\) WHEN Int64\(57\) THEN Int64\(\-19\) WHEN CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE Int64\(46\) / Int64\(3\) END\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +15 +NULL query I rowsort label-2181 SELECT ALL + - 94 / + - 78 @@ -11498,8 +11626,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -456 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 0 and "Int64\(46\) \+ Int64\(18\) \* Int64\(\-30\) \+ Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 91 AS col1, + 46 + + 18 * + - 30 + 38 AS col1 +---- +-456 +91 query I rowsort SELECT DISTINCT + + ( 47 ) AS col2 @@ -11700,8 +11831,11 @@ SELECT DISTINCT - + COUNT ( DISTINCT - 80 ) + - 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -7544 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "Int64\(82\) \* max\(Int64\(\-92\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 AS col0, + 82 * + MAX ( ALL - 92 ) AS col0 +---- +-7544 +56 query I rowsort label-2227 SELECT + - COUNT ( * ) * + - 41 AS col0 @@ -11855,8 +11989,11 @@ SELECT - 96 - - + 81 # 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\(8\) / CASE Int64\(37\) WHEN Int64\(30\) \* Int64\(\-27\) / Int64\(90\) THEN Int64\(48\) END / \(\- Int64\(52\)\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 / CASE 37 WHEN + 30 * - 27 / 90 THEN 48 END / - + 52 AS col0, + 90 AS col0 +---- +90 +NULL query II rowsort label-2256 SELECT + 82 + + 83 - + 60 + - 27 + 36 AS col2, - COALESCE ( + 12, 67 * 33 + - COUNT ( * ), - 41 + - 17 * 81 / 1 ) @@ -11954,8 +12091,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, + 77 * 14 AS col1 +---- +-1 +1078 query II rowsort SELECT 30, + 1 col2 @@ -12043,8 +12183,11 @@ SELECT ALL + 83 + - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col2" at position 0 and "Int64\(\-5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 30 AS col2, - 5 AS col2 +---- +-30 +-5 query I rowsort SELECT ALL ( + 4 ) + + 57 @@ -12059,8 +12202,11 @@ SELECT - MAX ( DISTINCT + - 12 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 AS col2, + 20 AS col2 +---- +20 +54 query I rowsort SELECT 81 - - + 77 AS col2 @@ -12417,8 +12563,11 @@ 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\(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\. +query II valuesort SELECT - - COUNT ( * ) AS col1, - 13 AS col1 +---- +-13 +1 query I rowsort label-2365 SELECT DISTINCT + + 33 * - ( + + 98 ) + 1 - + 36 / - 68 * + - NULLIF ( ( + - 33 ), - 23 ) * 79 + + 38 @@ -12489,8 +12638,11 @@ SELECT DISTINCT CAST ( - ( - 72 ) AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) col0, COUNT ( * ) AS col0 +---- +1 +NULL query II rowsort label-2379 SELECT + SUM ( ALL + 14 ) + - 7 - - 32, + COUNT ( + 18 ) * ( - 72 ) AS col1 @@ -12527,8 +12679,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, - 30 AS col0 +---- +-1 +-30 query II rowsort SELECT + 21 + - 77 + - ( + 80 ) AS col2, - ( + 36 ) @@ -12572,8 +12727,11 @@ SELECT + 10, 24 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2581 # Datafusion - Expected - -108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(nullif\(Int64\(29\), Int64\(\-92\)\), Int64\(99\) \+ Int64\(85\) \* Int64\(49\)\) \* Int64\(\-89\) AS col1" at position 0 and "Int64\(\-76\) \+ Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( + NULLIF ( 29, - 92 ), + ( + + 99 ) + 85 * + 49 ) * - 89 AS col1, - 76 + - 32 AS col1 +---- +-108 +-2581 query II rowsort SELECT DISTINCT - 62 AS col0, 88 @@ -13405,8 +13563,11 @@ SELECT DISTINCT 2 + + - 8, 96 * + - 9 + + ( - + 69 ) * - 20 + CAST ( - - 18 AS I # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ Int64\(\-73\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 + + - 73 AS col0, 4 col0 +---- +-25 +4 query II rowsort label-2554 SELECT ALL COUNT ( * ) AS col0, + 18 @@ -13432,8 +13593,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 72 + + 79 AS col2, 72 + - + COUNT ( * ) AS col2 +---- +151 +71 query I rowsort SELECT + COALESCE ( + 81, + 88 * - 17 ) @@ -13476,8 +13640,11 @@ SELECT - 22 + + + COUNT ( * ) AS col1, 86 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "Int64\(27\) \* CAST\(NULL AS Int32\) \- Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 48 col1, 27 * + CAST ( NULL AS INTEGER ) - 87 col1 +---- +48 +NULL query I rowsort SELECT - 38 * + 65 + - - 12 + - 87 @@ -13502,8 +13669,11 @@ 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\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-6\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 AS col0, 20 + 53 + - + COUNT ( * ) * - - 6 AS col0 +---- +39 +67 query I rowsort label-2572 SELECT DISTINCT + - SUM ( COALESCE ( + 41, 54 + COALESCE ( - 69, 64 + 67 / + 92 / + 72 ) ) ) @@ -13637,8 +13807,11 @@ 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\(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\. +query II valuesort SELECT - + 12 * 54 col1, + COALESCE ( COUNT ( * ), + ( - - 22 ) * - + 23 * 38 ) + COUNT ( * ) * + COUNT ( DISTINCT 98 ) AS col1 +---- +-648 +2 query I rowsort label-2598 SELECT ALL - ( + - COUNT ( DISTINCT - - 88 ) ) @@ -13848,8 +14021,11 @@ SELECT ALL - + 3, 4 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -656 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "Int64\(82\) \* \(\- \(\- Int64\(\-8\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 AS col0, 82 * - ( - - 8 ) AS col0 +---- +-656 +17 query II rowsort SELECT 23 * 6, - 90 AS col1 @@ -13914,8 +14090,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 224104 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \+ Int64\(1\) \+ Int64\(90\) \* Int64\(30\) \* Int64\(83\) \+ \(\- Int64\(43\)\) AS col2" at position 0 and "Int64\(\-10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 + + 1 + 90 * ( 30 ) * + 83 + - + 43 AS col2, - 10 AS col2 +---- +-10 +224104 query I rowsort label-2650 SELECT ALL + 82 - - + CAST ( NULL AS INTEGER ) + - + 38 AS col0 @@ -13968,8 +14147,11 @@ SELECT 74 * + MIN ( - 4 ) * + - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 243 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ Int64\(79\) \+ \(\- \(\- \(\- Int64\(\-79\)\)\)\) \+ Int64\(16\) AS col1" at position 0 and "Int64\(99\) \- Int64\(\-61\) \+ Int64\(\-67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 + 79 + - - ( - - 79 ) + + + 16 AS col1, 99 - - 61 + + - 67 AS col1 +---- +243 +93 query I rowsort label-2660 SELECT CAST ( NULL AS INTEGER ) / + + 78 AS col0 @@ -14590,8 +14772,11 @@ 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\(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\. +query II valuesort SELECT + + 72 AS col0, CASE + 28 WHEN 53 + COUNT ( * ) THEN + 90 * 82 WHEN 22 + 7 THEN - NULLIF ( - 88, 42 + 26 ) END col0 +---- +72 +NULL query I rowsort label-2783 SELECT ALL 24 + - 1 / + - 14 @@ -15194,14 +15379,21 @@ 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\(Int64\(1\)\) AS count\(\*\) \+ count\(DISTINCT Int64\(6\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 85, 73 * - + ( + - 37 ) AS col2, + + 14 * COUNT ( * ) + + COUNT ( DISTINCT + 6 ) col2 +---- +15 +2701 +85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \* count\(Int64\(36\)\) \+ Int64\(45\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 27 * + COUNT ( 36 ) + 45 AS col2, 71 col2 +---- +18 +71 query I rowsort SELECT 62 * - - 5 AS col0 @@ -15935,8 +16127,11 @@ 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\(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\. +query II valuesort 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 +---- +-1822 +NULL query I rowsort label-3039 SELECT ALL 4 / 46 @@ -16005,8 +16200,11 @@ SELECT 10 * - - 57 + + + 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - 110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col2" at position 0 and "Int64\(5\) \* Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 43 AS col2, + ( + 5 ) * 22 AS col2 +---- +-43 +110 query I rowsort label-3052 SELECT ALL - CAST ( + 95 AS INTEGER ) AS col2 @@ -16594,8 +16792,11 @@ SELECT ALL - ( 46 ), + 28 AS col2 # 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 "Int64\(33\) / Int64\(86\) AS col1" at position 0 and "Int64\(\-4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 / + + 86 AS col1, - 4 col1 +---- +-4 +0 query I rowsort SELECT ALL - 63 + - 46 AS col0 @@ -16898,8 +17099,11 @@ SELECT DISTINCT 73 - - 19 * - 33 * - 62 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 AS col2, + ( - 16 ) AS col2 +---- +-16 +85 query I rowsort label-3220 SELECT DISTINCT CAST ( NULL AS INTEGER ) * 87 AS col2 @@ -17310,8 +17514,11 @@ SELECT 22, 12 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 1628 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col0" at position 0 and "Int64\(27\) \* Int64\(57\) \+ min\(Int64\(89\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 23 AS col0, + 27 * 57 + + MIN ( + 89 ) AS col0 +---- +-23 +1628 query I rowsort label-3297 SELECT + + NULLIF ( NULLIF ( COUNT ( * ), - COUNT ( * ) * COUNT ( * ) ), + + COUNT ( * ) ) AS col2 @@ -17538,15 +17745,22 @@ SELECT + 97 * - 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2464 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) \* Int64\(77\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 32 ) * 77 col2, + 24 col2 +---- +-2464 +24 # Datafusion - Datafusion expected results: # Datafusion - Expected - -150 # Datafusion - Expected - 1099 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) \* Int64\(\-24\) \+ Int64\(\-77\) AS col0" at position 1 and "Int64\(\-18\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 85 + 13 * - 5, - 49 * - 24 + - 77 AS col0, - 18 AS col0 +---- +-150 +-18 +1099 query II rowsort label-3342 SELECT + COUNT ( * ), - 59 AS col0 @@ -18319,8 +18533,11 @@ SELECT ALL + 49 - + + 19 + 30 / + + 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 "Int64\(\-66\) 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 IR valuesort SELECT - 66 col2, CAST ( NULL AS FLOAT8 ) AS col2 +---- +-66 +NULL query I rowsort SELECT 55 - - + 53 + + 13 @@ -18420,8 +18637,11 @@ SELECT DISTINCT - MIN ( 86 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - -3578 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT \(\- Int64\(7\)\)\)\) AS col2" at position 0 and "Int64\(36\) \* \(\- Int64\(99\)\) \+ Int64\(\-14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( - MIN ( DISTINCT - + 7 ) ) col2, 36 * - + 99 + + ( - 14 ) AS col2 +---- +-3578 +7 query I rowsort label-3510 SELECT 8 * 78 + + + COALESCE ( - - 22, + + 52 * - + MAX ( + + 47 ), + 71 * 43 * - + ( + 80 ) ) * COALESCE ( + 7, 69, 59 ) @@ -19081,8 +19301,11 @@ SELECT DISTINCT ( + - 50 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(53\), Int64\(41\) \+ Int64\(68\)\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COALESCE ( + 53, + 41 + + 68 ) AS col0, 29 AS col0 +---- +29 +53 query I rowsort SELECT ALL 50 * - 13 AS col0 @@ -19244,8 +19467,11 @@ SELECT - - COUNT ( * ) * + CAST ( + 79 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col0" at position 0 and "CAST\(Int64\(\-9\) AS Int32\) \+ \(\- Int64\(\-75\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 56 AS col0, + CAST ( - 9 AS INTEGER ) + - - 75 * + COUNT ( * ) AS col0 +---- +-56 +66 query I rowsort label-3667 SELECT - COALESCE ( COUNT ( * ), + 12 ) * + 75 @@ -19804,8 +20030,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * 73 col1, 71 * - 4 AS col1 +---- +-284 +-73 query I rowsort label-3773 SELECT + 31 + - CAST ( NULL AS INTEGER ) - + 55 + 89 col2 @@ -20035,8 +20264,11 @@ SELECT DISTINCT + 15 AS col1, - 21 * + ( + 82 ) + - 60 + + 7 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) / Int64\(\-3\) \- Int64\(60\) AS col2" at position 0 and "Int64\(23\) \+ Int64\(\-54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 84 / - 3 - + 60 col2, + 23 + + - 54 AS col2 +---- +-31 +-88 query II rowsort label-3818 SELECT ALL - ( + - 52 ) * - CASE + CAST ( NULL AS INTEGER ) WHEN + 63 - + ( + 9 ) THEN - SUM ( - - ( + - 24 ) ) ELSE NULL END AS col0, 58 @@ -20113,8 +20345,12 @@ SELECT 18 + 51 # Datafusion - Expected - 19 # Datafusion - Expected - -52 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 19 AS col2, - 52, + 87 AS col2 +---- +-52 +19 +87 query I rowsort label-3832 SELECT MAX ( + + 67 ) + 47 AS col2 @@ -20434,8 +20670,11 @@ SELECT DISTINCT 84 - + 44 / - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 95 AS col1, 14 col1 +---- +14 +95 query I rowsort SELECT ALL 60 * 3 AS col2 @@ -20633,8 +20872,11 @@ SELECT ALL - COUNT ( + - 58 ) * - 76 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col2" at position 0 and "Int64\(2\) \+ Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 25 ) AS col2, 2 + 30 AS col2 +---- +-25 +32 query I rowsort label-3930 SELECT + MIN ( - + ( - 62 ) ) @@ -20845,8 +21087,11 @@ SELECT DISTINCT - COUNT ( * ) * + + 96 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col2" at position 0 and "Int64\(50\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-88\) \* CAST\(NULL AS Int32\) \* Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 AS col2, 50 + + - COUNT ( * ) + - 88 * + + CAST ( NULL AS INTEGER ) * 11 AS col2 +---- +-92 +NULL query I rowsort label-3971 SELECT ALL 23 + ( + COUNT ( * ) ) - - 25 + 25 * - - 58 * 82 AS col0 @@ -21055,8 +21300,11 @@ SELECT - 12 * - - 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 AS col2, + 67 AS col2 +---- +16 +67 query I rowsort SELECT DISTINCT + 24 + 38 + + 70 + - ( - - ( - 96 ) ) - + 29 - - 14 * 40 + + + 58 * + 56 * + 27 AS col2 @@ -21123,8 +21371,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 29 ) AS col2, + 15 + + COUNT ( * ) * - 16 AS col2 +---- +-1 +-29 query II rowsort SELECT ALL 14 * - 17 AS col1, + 98 @@ -21327,8 +21578,11 @@ SELECT - 45 / + + 8 + MIN ( ALL - 22 ) + 76 * - 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "Int64\(16\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 AS col1, 16 * + + COUNT ( * ) AS col1 +---- +16 +60 query I rowsort label-4062 SELECT ALL MAX ( ALL + - 99 ) + + - 74 @@ -21338,8 +21592,11 @@ SELECT ALL MAX ( ALL + - 99 ) + + - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2017 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(91\) \+ Int64\(87\) \* Int64\(63\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(11\) \+ Int64\(\-24\) \+ Int64\(70\) \* Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) * + 91 + ( + 87 ) * 63 + COUNT ( * ) col0, 11 + - 24 + + 70 * + 29 AS col0 +---- +2017 +NULL query II rowsort label-4064 SELECT ALL - - 88 AS col1, 71 / - + 36 @@ -21501,8 +21758,11 @@ SELECT 22 / 8 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1974 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \+ Int64\(\-26\) \* min\(Int64\(77\)\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 + - 26 * MIN ( + 77 ) AS col0, + 66 AS col0 +---- +-1974 +66 query I rowsort label-4094 SELECT + MAX ( DISTINCT - 50 ) @@ -21750,8 +22010,11 @@ SELECT ALL + 68 + - 6 + + 43 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2084 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- sum\(DISTINCT Int64\(\-4\)\)\), Int64\(\-31\)\) \+ \(\- Int64\(58\)\) \* Int64\(36\) AS col1" at position 0 and "CAST\(Int64\(60\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( - + SUM ( DISTINCT - 4 ), - 31 ) + - + 58 * + + 36 AS col1, CAST ( + ( ( 60 ) ) AS INTEGER ) AS col1 +---- +-2084 +60 query II rowsort label-4142 SELECT 84 AS col0, COALESCE ( - MAX ( ALL - - ( + 71 ) ), - 28 ) AS col1 @@ -23221,8 +23484,11 @@ SELECT NULLIF ( + - 21, + 46 + - COUNT ( * ) ) * 76 * 65 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 151 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ sum\(DISTINCT Int64\(94\)\) AS col1" at position 0 and "Int64\(33\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 + + SUM ( DISTINCT 94 ) col1, 33 + + COUNT ( * ) AS col1 +---- +151 +34 query II rowsort SELECT - 5 AS col0, - 43 - - 8 @@ -23321,8 +23587,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col1" at position 0 and "Int64\(46\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 73 AS col1, 46 + + COUNT ( * ) AS col1 +---- +47 +73 query I rowsort label-4449 SELECT DISTINCT - 22 + + + CAST ( NULL AS INTEGER ) AS col2 @@ -23337,8 +23606,11 @@ SELECT ALL 30 * - 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(72\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( + 72 ) * COUNT ( * ) AS col0, - 71 AS col0 +---- +-71 +72 query I rowsort label-4452 SELECT ALL - - COUNT ( * ) + 40 @@ -23378,8 +23650,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -236 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-86\)\) AS col0" at position 0 and "Int64\(72\) / \(\- Int64\(17\)\) \- \(\- Int64\(\-42\)\) \* Int64\(72\) / Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 86 AS col0, 72 / - + 17 - - - 42 * 72 / 13 AS col0 +---- +-236 +86 query I rowsort SELECT ALL 32 + + 70 @@ -23420,8 +23695,11 @@ SELECT ALL NULLIF ( - 85, - 74 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -1070 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col2" at position 0 and "min\(Int64\(\-34\)\) \* Int64\(29\) \+ \(\- Int64\(84\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 43 col2, MIN ( ALL - 34 ) * 29 + - + 84 AS col2 +---- +-1070 +43 query I rowsort SELECT 60 + 25 + - 88 @@ -23566,8 +23844,11 @@ SELECT ALL + - 75 * 2 * - 21 + + 61 - + 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 8 col0, + 77 AS col0 +---- +77 +8 query I rowsort label-4496 SELECT ALL MAX ( - 77 ) * CAST ( NULL AS INTEGER ) + - 32 + - COUNT ( * ) * + ( + 80 ) @@ -23627,8 +23908,12 @@ SELECT ALL 12 + + 12 + 47 + - 58 # Datafusion - Expected - 5680 # Datafusion - Expected - 75 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* Int64\(80\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 71 * + 80 AS col2, + 75 AS col2, 15 - + COALESCE ( - 28, - 86 * - SUM ( ALL - 98 / 44 ) ) +---- +43 +5680 +75 query I rowsort SELECT DISTINCT 83 + 52 AS col2 @@ -23739,8 +24024,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -29568 # Datafusion - Expected - 2280 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \* \(\- Int64\(\-88\)\) \* Int64\(2\) \* Int64\(7\) AS col0" at position 0 and "Int64\(30\) \* Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 24 * - - 88 * ( 2 ) * 7 AS col0, 30 * + + 76 AS col0 +---- +-29568 +2280 query I rowsort label-4529 SELECT ALL + + 82 * + 36 * + MAX ( DISTINCT 59 ) AS col1 @@ -23766,8 +24054,11 @@ SELECT - 91 * - + MIN ( 77 ) * 7 + - + 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 2253 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col0" at position 0 and "Int64\(62\) \* Int64\(37\) \+ \(\- Int64\(93\)\) \+ \(\- \(\- Int64\(52\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 col0, ( + 62 ) * + 37 + - + 93 + - ( - + 52 ) AS col0 +---- +-90 +2253 query I rowsort SELECT ALL - 80 + - 89 AS col1 @@ -24330,8 +24621,11 @@ SELECT + ( + SUM ( DISTINCT 41 ) ) + - 16 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, 18 AS col1 +---- +1 +18 query I rowsort label-4641 SELECT CAST ( NULL AS INTEGER ) * NULLIF ( - - 41, - 50 / - CASE - + 73 WHEN + COUNT ( * ) THEN - - 68 * - - 56 ELSE NULL END ) + - - COUNT ( * ) + + 76 + 55 AS col1 @@ -24341,8 +24635,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col0" at position 0 and "Int64\(\-62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 23 AS col0, - 62 AS col0 +---- +-62 +23 query I rowsort label-4643 SELECT ALL MIN ( - 65 ) * + 73 - + 74 AS col2 @@ -24434,8 +24731,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2037 # Datafusion - Expected - -140 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(\-97\) AS col1" at position 0 and "max\(\(\- Int64\(76\)\)\) \+ \(\- Int64\(\-7\)\) \+ Int64\(\-71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 21 * - 97 AS col1, MAX ( - + 76 ) + - - 7 + - 71 AS col1 +---- +-140 +-2037 query II rowsort SELECT ALL 39, + 46 AS col1 @@ -24510,8 +24810,11 @@ SELECT - + ( + + 8 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(84\) \+ \(\- \(\- coalesce\(\(\- \(\- count\(DISTINCT Int64\(\-13\)\)\)\), Int64\(\-51\)\)\)\) \+ CASE WHEN NOT NULL NOT BETWEEN NULL AND Int64\(28\) THEN coalesce\(Int64\(88\), Int64\(68\)\) WHEN NOT Int64\(3\) BETWEEN Int64\(26\) \* Int64\(19\) AND CAST\(Int64\(67\) AS Int32\) THEN NULL END \* Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col2, 84 + - - COALESCE ( - - COUNT ( DISTINCT - 13 ), - 51 ) + + + CASE WHEN NOT NULL NOT BETWEEN NULL AND 28 THEN COALESCE ( ( 88 ), 68 ) WHEN NOT 3 BETWEEN + 26 * 19 AND + CAST ( 67 AS INTEGER ) THEN NULL END * - 25 AS col2 +---- +NULL +NULL query I rowsort SELECT ALL COALESCE ( + + 99, + + 24 * - 21 + 54 ) AS col0 @@ -24788,8 +25091,11 @@ SELECT - 10 - + 39 + - 42, - 16 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(71\)\) AS col1" at position 0 and "\(\- CAST\(CAST\(NULL AS Int32\) AS Float64\)\) \* nullif\(Int64\(23\), Int64\(\-81\) \* Int64\(\-30\)\) \+ Int64\(82\) \+ Int64\(\-96\) / Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + SUM ( + ( 71 ) ) AS col1, - CAST ( CAST ( NULL AS INTEGER ) AS FLOAT8 ) * NULLIF ( + + 23, - 81 * + - 30 ) + + 82 + - 96 / + 33 AS col1 +---- +71 +NULL query I rowsort label-4726 SELECT - ( + + 51 ) - + CASE - - 80 WHEN ( + + 99 ) THEN NULL WHEN - - 60 THEN 76 * + 12 * - + COUNT ( * ) + + - 4 ELSE NULL END - 99 * + 92 + 12 / + 62 @@ -24952,8 +25258,11 @@ 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\(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\. +query II valuesort SELECT - + 56 * + 55 + - + COUNT ( * ) * - 33 + COUNT ( 84 ) * - + 10 col1, + 16 AS col1 +---- +-3057 +16 query I rowsort SELECT ALL + NULLIF ( - ( - + 40 ), + + 33 ) @@ -25455,8 +25764,11 @@ SELECT 23 + + COUNT ( ALL + + 21 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 741 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(DISTINCT CAST\(Int64\(95\) AS Int32\)\)\) AS col2" at position 0 and "Int64\(57\) \* Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( DISTINCT + CAST ( + 95 AS INTEGER ) ) AS col2, + 57 * + 13 AS col2 +---- +-1 +741 query I rowsort SELECT ALL ( + 40 ) + 40 - + 93 * + - 24 + - 92 AS col0 @@ -25669,8 +25981,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 600 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(75\) \* coalesce\(CAST\(Int64\(8\) AS Int32\), Int64\(19\) \* \(\- Int64\(5\)\) \+ Int64\(\-66\) \+ Int64\(\-4\) \- Int64\(17\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(65\) \+ CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, + 75 * + ( COALESCE ( CAST ( + + 8 AS INTEGER ), + 19 * + - ( + 5 ) + - 66 + + - 4 - + 17 * + + COUNT ( * ) * 65 + CAST ( COUNT ( * ) AS INTEGER ) ) ) AS col2 +---- +1 +600 query I rowsort label-4893 SELECT + 47 + + SUM ( + 22 ) * - - 88 AS col1 @@ -25697,8 +26012,11 @@ SELECT 0, ( + 88 ) * + + COUNT ( * ) - + 35 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1034 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* \(\- Int64\(\-94\)\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 11 * - ( - 94 ) AS col0, 66 AS col0 +---- +1034 +66 query I rowsort SELECT + 17 * - 74 col2 @@ -26428,8 +26746,11 @@ SELECT ALL CAST ( 13 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -2874 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-31\)\) AS col2" at position 0 and "Int64\(86\) \+ Int64\(80\) \* Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - 31 ) AS col2, 86 + + 80 * - 37 AS col2 +---- +-2874 +31 query II rowsort SELECT + 41 * - - 56, + 20 AS col1 @@ -26585,8 +26906,11 @@ SELECT - 48 + - 28 + + - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(67\) \* \(\- \(\- Int64\(\-38\)\)\) \* Int64\(86\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(\-45\)\) \* \(\- Int64\(\-97\)\) \* Int64\(\-62\) \+ Int64\(\-73\) \+ \(\- CASE Int64\(66\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(74\) \* Int64\(4\) \- Int64\(65\) \+ Int64\(\-7\) \* Int64\(98\) \- Int64\(\-42\) END\) \+ Int64\(68\) \+ CAST\(Int64\(\-61\) AS Int32\) \+ Int64\(\-36\) / Int64\(59\) \* Int64\(24\) / Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +37 +NULL query I rowsort SELECT - 5 * + 37 @@ -26682,8 +27006,11 @@ 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\(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\. +query II valuesort SELECT - 7 - - + COUNT ( * ) AS col0, 92 / NULLIF ( - - 88, + + 72 ) col0 +---- +-6 +1 query I rowsort label-5083 SELECT + + NULLIF ( + COALESCE ( - + MIN ( ALL 46 ), 90 ), + + 19 + - - COUNT ( * ) ) @@ -27527,14 +27854,20 @@ SELECT ALL + + 89 * + 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6272 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \* Int64\(\-98\) AS col0" at position 0 and "Int64\(\-79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 64 * - 98 AS col0, - 79 col0 +---- +-79 +6272 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT Int64\(\-93\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(Int64\(95\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - MIN ( DISTINCT - 93 ) AS col1, COUNT ( * ) * CAST ( + ( + + 95 ) AS INTEGER ) AS col1 +---- +93 +95 query I rowsort SELECT ALL + + 97 * - 78 @@ -27549,8 +27882,11 @@ SELECT DISTINCT + ( - 46 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(93\) \* Int64\(\-42\) \- Int64\(\-36\) \+ Int64\(\-77\)\)\) AS Int32\) / \(\- Int64\(\-99\)\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - COALESCE ( COUNT ( * ), + 93 * - 42 - + - 36 + + - 77 ) AS INTEGER ) / - - 99 AS col1, + 69 AS col1 +---- +0 +69 query I rowsort SELECT - 30 - + 74 AS col0 @@ -28066,8 +28402,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN Int64\(91\) \+ Int64\(44\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(44\) \+ Int64\(\-75\) \+ CAST\(NULL AS Int32\) \+ Int64\(\-22\) \- Int64\(\-85\) \+ \(\- Int64\(88\)\) THEN NULL END AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +33 +NULL query I rowsort SELECT + 11 * + 21 AS col0 @@ -28247,8 +28586,12 @@ SELECT ALL 65 * + - ( 74 ) col2 # Datafusion - Expected - -66 # Datafusion - Expected - 43 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(1\)\)\) \* Int64\(66\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - SUM ( ALL + ( + 1 ) ) * + + 66 AS col0, 43 AS col0, + 40 col1 +---- +-66 +40 +43 query I rowsort label-5381 SELECT ALL - CAST ( 19 AS INTEGER ) col2 @@ -28365,8 +28708,11 @@ SELECT DISTINCT COUNT ( * ) * - ( - 34 ) / + + 46 * + MIN ( ALL + 56 ) * + + COA # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 825 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col0" at position 0 and "Int64\(15\) \* \(\- Int64\(\-55\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 24 AS col0, + 15 * - - 55 AS col0 +---- +24 +825 query I rowsort SELECT 17 * + - 32 @@ -28412,8 +28758,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 16 AS col1, 37 AS col1 +---- +-16 +37 query I rowsort label-5412 SELECT 51 / - + 92 AS col2 @@ -28630,8 +28979,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - -377 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "\(\- Int64\(29\)\) \* Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 7 AS col0, ( - + 29 ) * + 13 AS col0 +---- +-377 +7 query I rowsort label-5454 SELECT 52 / 9 + - 97 AS col2 @@ -29000,8 +29352,11 @@ SELECT ALL 50 - 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6314 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-77\)\) \* Int64\(\-82\) AS col2" at position 0 and "Int64\(83\) / count\(DISTINCT \(\- Int64\(54\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - 77 ) * - 82 AS col2, 83 / + COUNT ( DISTINCT - + 54 ) AS col2 +---- +-6314 +83 query II rowsort SELECT ALL - - 72 AS col0, + COALESCE ( - 17, - 74 + - 81 ) @@ -29042,14 +29397,20 @@ 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\(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\. +query II valuesort 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 +---- +2493 +600 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "\(\- Int64\(82\)\) \- Int64\(97\) \* CAST\(NULL AS Int32\) \* \(\- Int64\(96\)\) \+ Int64\(34\) \+ Int64\(63\) \* Int64\(\-69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 AS col1, - ( 82 ) - + ( 97 ) * CAST ( NULL AS INTEGER ) * - + 96 + 34 + + 63 * ( - 69 ) AS col1 +---- +44 +NULL query I rowsort label-5533 SELECT - MAX ( ALL 4 ) @@ -29498,8 +29859,11 @@ SELECT + 7 / + COUNT ( - 89 ) + - 98 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 AS col0, + COUNT ( * ) AS col0 +---- +1 +57 query I rowsort label-5619 SELECT 55 * MIN ( 97 ) + + + 56 + - + 67 * - MIN ( + + 77 ) * 77 - + 10 AS col2 @@ -29652,8 +30016,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 99 ) AS col1, 88 AS col1 +---- +-99 +88 query I rowsort label-5648 SELECT ALL - 62 * - - COUNT ( * ) + + MIN ( 44 ) * - 54 * + 95 * + + 64 @@ -29844,8 +30211,11 @@ SELECT ALL 59 * + 16 * 34 + + 93 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - 142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-57\)\) AS col2" at position 0 and "Int64\(52\) \+ count\(DISTINCT Int64\(\-12\)\) \+ Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + SUM ( ALL - 57 ) AS col2, + 52 + COUNT ( DISTINCT - 12 ) + + 89 AS col2 +---- +-57 +142 query I rowsort label-5685 SELECT + NULLIF ( + COUNT ( * ), + 93 ) + 12 @@ -30107,8 +30477,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 AS col1, COUNT ( * ) + - 77 AS col1 +---- +-76 +28 query I rowsort label-5736 SELECT SUM ( ALL + 45 ) AS col0 @@ -30214,8 +30587,11 @@ SELECT - 8 * + 95 + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1908 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col1" at position 0 and "Int64\(36\) \* Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 AS col1, 36 * + 53 AS col1 +---- +0 +1908 query I rowsort SELECT ALL + 35 - + + 60 @@ -30232,8 +30608,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 5278 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(22\)\) AS Int32\) \- \(\- nullif\(Int64\(27\), nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(35\)\) \+ Int64\(55\) \+ Int64\(43\)\)\) AS col2" at position 0 and "Int64\(58\) \* \(\- \(\- nullif\(Int64\(91\), Int64\(44\) \- Int64\(73\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( - + 22 AS INTEGER ) - - NULLIF ( + 27, NULLIF ( COUNT ( * ), + 35 ) + + 55 + 43 ) AS col2, 58 * - - NULLIF ( 91, + 44 - + + 73 ) AS col2 +---- +5 +5278 query I rowsort label-5759 SELECT CAST ( NULL AS INTEGER ) * + ( CAST ( NULL AS INTEGER ) ) @@ -30375,8 +30754,11 @@ 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 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 II valuesort SELECT - + ( COUNT ( * ) ) * - + 1 AS col2, 19 AS col2 +---- +1 +19 query I rowsort SELECT DISTINCT 72 * 42 + - 6 @@ -31380,8 +31762,11 @@ SELECT DISTINCT + COUNT ( * ) * - + 93 * + SUM ( 34 ) * - 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col0" at position 0 and "count\(Int64\(91\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 71 col0, + COUNT ( ALL + + 91 ) + COUNT ( * ) AS col0 +---- +2 +71 query I rowsort label-5978 SELECT - - ( + SUM ( 41 ) ) @@ -31890,8 +32275,11 @@ SELECT + 94 AS col0, + 33 * + 3 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col0" at position 0 and "sum\(Int64\(\-79\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 12 col0, SUM ( - 79 ) AS col0 +---- +-12 +-79 query I rowsort label-6077 SELECT COUNT ( - - 16 ) / 72 AS col1 @@ -32134,8 +32522,12 @@ SELECT DISTINCT - + ( - 0 ) AS col0 # Datafusion - Expected - -2 # Datafusion - Expected - 37 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \+ Int64\(9\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 11 + + 9 AS col1, 37 AS col1, - 12 * + ( - COUNT ( * ) ) + 87 +---- +-2 +37 +99 query I rowsort label-6123 SELECT - CAST ( + 90 AS INTEGER ) / + 26 @@ -32578,8 +32970,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 58 AS col2, - COUNT ( * ) AS col2 +---- +-1 +58 query I rowsort SELECT 58 + - + 55 col1 @@ -32615,8 +33010,11 @@ SELECT DISTINCT 16 + + + 61 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2221 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(\-56\) \* Int64\(41\) AS col1" at position 0 and "CASE Int64\(0\) WHEN CASE Int64\(29\) WHEN Int64\(12\) \* \(\- Int64\(\-5\)\) \- Int64\(27\) \+ Int64\(62\) \* Int64\(64\) \* Int64\(1\) THEN NULL ELSE Int64\(14\) \+ Int64\(67\) END \* Int64\(5\) \- min\(Int64\(44\) \+ Int64\(45\)\) THEN Int64\(\-60\) \+ Int64\(16\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 75 + - 56 * 41 AS col1, + CASE 0 WHEN + CASE 29 WHEN 12 * - - 5 - + + 27 + 62 * + 64 * + 1 THEN NULL ELSE + 14 + + 67 END * 5 - MIN ( ALL 44 + 45 ) THEN - 60 + 16 END AS col1 +---- +-2221 +NULL query I rowsort label-6213 SELECT ALL 34 / + CASE - 72 WHEN 90 THEN NULL WHEN 76 THEN - SUM ( + 57 ) + - - ( 81 ) * 15 * 8 ELSE 22 + + 20 * 64 END AS col0 @@ -32924,8 +33322,11 @@ SELECT 93 + 31 + 38 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-63\)\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 63 AS col2, 63 AS col2 +---- +63 +63 query I rowsort label-6271 SELECT - COALESCE ( + 75, + 81 + - COUNT ( * ) + - COALESCE ( - 8, - 73, 54 + + + 41 * + 56 ) * 90, + 62 * - ( - 4 ) + + 92 * + COALESCE ( - 15 * - 53 + 57, 97 ) ) + - 10 @@ -33316,8 +33717,11 @@ SELECT 94 + ( 81 ) AS col0 # 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 "Int64\(\-53\) AS col1" at position 0 and "min\(DISTINCT Int64\(\-33\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 53 AS col1, MIN ( DISTINCT - 33 ) AS col1 +---- +-33 +-53 query I rowsort SELECT ALL + 39 - + 73 @@ -33620,8 +34024,12 @@ SELECT + 64 * 8 / + COUNT ( * ) # Datafusion - Expected - 54 # Datafusion - Expected - -98 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "Int64\(\-98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 54 AS col1, - 98 AS col1, - - 71 AS col2 +---- +-98 +54 +71 query I rowsort SELECT + COALESCE ( + 22, - 37 ) AS col1 @@ -33712,8 +34120,11 @@ SELECT - 31 + + - 59 # 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 col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 79 AS col0, 95 AS col0 +---- +79 +95 query I rowsort label-6422 SELECT + MAX ( + ( COALESCE ( - 91, - - 86 ) ) ) @@ -33753,8 +34164,11 @@ SELECT DISTINCT - - ( + - 18 ) * + 31 * 95 # 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\(37\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 37 col1, + 97 col1 +---- +37 +97 query I rowsort label-6430 SELECT + SUM ( DISTINCT ( - 40 ) ) AS col0 @@ -33829,8 +34243,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \+ Int64\(\-35\) AS col1" at position 0 and "Int64\(82\) / Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + - 61 ) + - 35 AS col1, + 82 / + 95 AS col1 +---- +-96 +0 query II rowsort SELECT DISTINCT 67 * + 35 col2, 12 + + 72 @@ -33851,8 +34268,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( - 24 ) AS col2, COUNT ( * ) * 99 col2 +---- +-24 +99 query I rowsort SELECT + 59 * + - 43 + - NULLIF ( + 94, - - 80 - + - 16 ) @@ -33883,8 +34303,11 @@ SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) AS col2, COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- Int64\(52\)\)\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( ALL - + 52 ) AS col2, + 23 AS col2 +---- +1 +23 query I rowsort label-6454 SELECT 63 / + 29 - + - 7 @@ -34298,8 +34721,11 @@ SELECT + 19 / + - 69 + 37 + - + 40 + + - SUM ( - - 1 ) + - ( - 62 ) + + 20 * + M # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(48\)\) \* count\(DISTINCT Int64\(85\)\) \+ \(\- Int64\(\-73\)\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( + 48 ) * COUNT ( DISTINCT + 85 ) + - ( + - 73 ) AS col0, 89 AS col0 +---- +74 +89 query II rowsort SELECT + 97 AS col1, CASE + - 99 WHEN + 81 + + - 78 THEN + 41 * + 86 + - 40 WHEN + 19 THEN NULL END AS col0 @@ -34422,8 +34848,11 @@ SELECT DISTINCT ( 83 ) / - 58 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col1" at position 0 and "Int64\(\-68\) / Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 21 AS col1, - 68 / + - 25 AS col1 +---- +2 +21 query II rowsort label-6555 SELECT DISTINCT 75 AS col1, + 51 / - 88 AS col0 @@ -34538,8 +34967,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(\-37\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 79 + 55 AS col0, COUNT ( * ) * - - 37 AS col0 +---- +-24 +37 query I rowsort label-6576 SELECT ALL COUNT ( * ) * - + 44 + - COUNT ( * ) AS col0 @@ -34983,8 +35415,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3280 # Datafusion - Expected - 755 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(\-41\) AS col0" at position 0 and "Int64\(56\) \+ Int64\(44\) \- Int64\(16\) \* Int64\(\-41\) \+ Int64\(95\) / Int64\(\-55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 * - 41 AS col0, 56 + + 44 - 16 * - 41 + + + 95 / + - 55 col0 +---- +-3280 +755 query I rowsort label-6659 SELECT MAX ( DISTINCT - + 1 ) @@ -35363,8 +35798,11 @@ SELECT ALL - 9, - 31 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 5198 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(35\) \* avg\(\(\- Int64\(73\)\)\) \+ Int64\(29\) AS col0" at position 0 and "Int64\(92\) \* Int64\(74\) \+ Int64\(46\) \* \(\- max\(Int64\(35\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + + 22 * - CAST ( NULL AS INTEGER ) * 35 * AVG ( - + 73 ) + + 29 AS col0, + 92 * + 74 + 46 * - + MAX ( 35 ) AS col0 +---- +5198 +NULL query II rowsort label-6731 SELECT ALL 92 AS col1, - COUNT ( * ) AS col2 @@ -35686,8 +36124,11 @@ SELECT ALL - - 48, + 45 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col1" at position 0 and "CAST\(Int64\(40\) AS Int32\) / Int64\(10\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- CASE \(\- Int64\(65\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(95\) \* Int64\(12\) \+ Int64\(99\) \- Int64\(21\) ELSE Int64\(1\) \+ count\(Int64\(1\)\) AS count\(\*\) END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-71 +6 query II rowsort label-6792 SELECT - 16 AS col0, - 18 / + - 8 @@ -35951,8 +36392,12 @@ SELECT COUNT ( * ) * - + 18 AS col0 # Datafusion - Expected - -5 # Datafusion - Expected - 0 # Datafusion - Expected - 1241 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col1" at position 0 and "Int64\(75\) \+ Int64\(53\) \* Int64\(22\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 5 AS col1, 10 / + 36 col2, 75 + 53 * + 22 col1 +---- +-5 +0 +1241 query I rowsort SELECT ALL 45 - + 82 AS col1 @@ -36138,8 +36583,11 @@ 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\(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\. +query II valuesort 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 +---- +67 +NULL query I rowsort label-6878 SELECT + ( - COUNT ( * ) ) + - - 82 @@ -36279,8 +36727,12 @@ SELECT - 32 - - COUNT ( * ) # Datafusion - Expected - 95 # Datafusion - Expected - -2 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 0 and "\(\- sum\(Int64\(18\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 95 AS col1, - 2, + - SUM ( ALL 18 ) AS col1 +---- +-18 +-2 +95 query I rowsort label-6904 SELECT ALL + - 37 / - COUNT ( * ) + COUNT ( * ) * 71 @@ -36348,8 +36800,11 @@ SELECT - 87 / - - COALESCE ( + 6, - 45, + + 20 * - 91 ) AS 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 "Int64\(93\) / \(\- Int64\(60\)\) AS col2" at position 0 and "Int64\(\-32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 93 / - + 60 AS col2, - 32 AS col2 +---- +-1 +-32 query I rowsort SELECT 74 * + 24 AS col0 @@ -36922,8 +37377,11 @@ SELECT + 58 / + - 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \+ Int64\(64\) \- \(\- count\(DISTINCT Int64\(\-78\)\)\) \* Int64\(\-16\) AS col2" at position 0 and "Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 28 + + 64 - + - COUNT ( DISTINCT - 78 ) * + - 16 AS col2, - 20 AS col2 +---- +-20 +20 query I rowsort SELECT ALL + 18 * - - 75 AS col2 @@ -37069,8 +37527,11 @@ SELECT 61 * 65 / + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \- \(\- Int64\(\-4\)\) AS col0" at position 0 and "CAST\(Int64\(\-65\) AS Int32\) \+ Int64\(1\) \+ Int64\(\-3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 20 - - - 4 AS col0, CAST ( + - 65 AS INTEGER ) + 1 + - 3 AS col0 +---- +-67 +16 query II rowsort SELECT ALL 67 AS col1, + 87 @@ -37400,8 +37861,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) + + 70 - - - 34 AS col2, - COALESCE ( 87, ( - 24 ) ) col2 +---- +-87 +35 query I rowsort label-7118 SELECT - 88 - + 78 / + 17 AS col0 @@ -37569,8 +38033,11 @@ 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\(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\. +query II valuesort SELECT 54 * - 2 / - + COALESCE ( + 2, - - COUNT ( * ) + ( 23 ) ) AS col2, 90 AS col2 +---- +54 +90 query II rowsort label-7150 SELECT 97 * CASE - COUNT ( * ) WHEN - 59 THEN 72 END AS col0, + 72 + + + 14 + + COUNT ( * ) @@ -37607,8 +38074,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 800 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "Int64\(48\) \+ Int64\(\-47\) \* Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 col2, 48 + + ( - 47 ) * - 16 AS col2 +---- +2 +800 query I rowsort SELECT 2 - + 31 AS col2 @@ -37981,8 +38451,11 @@ SELECT + 75 + - 55 * 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) / Int64\(78\) AS col0" at position 0 and "Int64\(15\) \* \(\- CAST\(sum\(DISTINCT Int64\(1\)\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 68 / 78 col0, 15 * - CAST ( + SUM ( DISTINCT 1 ) AS INTEGER ) AS col0 +---- +-15 +0 query I rowsort SELECT DISTINCT 92 + 63 + 67 col2 @@ -38085,8 +38558,11 @@ 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\(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\. +query II valuesort SELECT 23 * + 48 + + COUNT ( * ) + 62 * - - MIN ( + + 90 ) col2, ( 38 ) AS col2 +---- +38 +6685 query I rowsort SELECT DISTINCT + 32 * + - 10 AS col0 @@ -38137,8 +38613,11 @@ SELECT COUNT ( * ) + - COUNT ( * ) / - 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - -3168 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) AS col2" at position 0 and "Int64\(\-33\) \* Int64\(12\) \* Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 67 AS col2, - 33 * 12 * 8 AS col2 +---- +-3168 +-67 query I rowsort SELECT 91 + - + 95 * 13 + 59 * - + 71 @@ -38364,8 +38843,11 @@ SELECT DISTINCT 35 * 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3300 # Datafusion - Expected - -247380 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \* Int64\(\-75\) AS col2" at position 0 and "Int64\(93\) \* \(\- Int64\(28\)\) \* Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 44 * - 75 AS col2, 93 * - + 28 * 95 col2 +---- +-247380 +-3300 query I rowsort SELECT ALL - 85 * - 91 + - 53 @@ -38614,14 +39096,20 @@ 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\(1\)\) AS count\(\*\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + 25 ) AS col1, 79 * 0 + + COUNT ( * ) * + 80 AS col1 +---- +25 +80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -1232 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(40\)\) / Int64\(\-60\) \* Int64\(14\) \+ Int64\(80\) AS col0" at position 0 and "Int64\(3\) \+ Int64\(99\) \+ \(\- Int64\(\-58\)\) \* Int64\(\-23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 40 / - 60 * + 14 + 80 AS col0, + 3 + 99 + - - 58 * + ( + - 23 ) col0 +---- +-1232 +80 query I rowsort label-7351 SELECT + 8 / + COUNT ( * ) @@ -38676,8 +39164,11 @@ SELECT DISTINCT + ( 49 ) * - - COUNT ( * ) / + + 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - 54894 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col0" at position 0 and "Int64\(\-53\) \* Int64\(45\) \* \(\- coalesce\(Int64\(23\), \(\- Int64\(\-62\)\) \- Int64\(0\) \* Int64\(6\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(26\) \- Int64\(\-14\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 11 AS col0, ( - 53 ) * + 45 * - COALESCE ( + 23, - - 62 - 0 * 6 ) * + + COUNT ( * ) + 26 - + - 14 - + COUNT ( * ) AS col0 +---- +-11 +54894 query I rowsort label-7362 SELECT + 39 / 69 - COUNT ( * ) @@ -38918,8 +39409,11 @@ SELECT ALL + 66 + - 60 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 50 -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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 61 AS col0, + 50 AS col0 +---- +50 +61 query I rowsort label-7409 SELECT 87 * + - COUNT ( * ) * + - CASE + 5 WHEN + 97 + - 83 THEN - MIN ( + ( 47 ) ) + + + MIN ( - 71 ) * + + 73 ELSE NULL END * + + COUNT ( * ) / - + COUNT ( * ) - MAX ( + ( - + 42 ) ) @@ -39089,8 +39583,11 @@ SELECT - 73 / - 15 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 568 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(50\)\) AS col0" at position 0 and "Int64\(71\) \* \(\- Int64\(\-8\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - + 50 ) AS col0, + 71 * - - 8 col0 +---- +-50 +568 query I rowsort SELECT DISTINCT 0 * - 9 - 26 AS col0 @@ -39873,8 +40370,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + - COUNT ( * ) AS col1, + 99 / - 64 + - 65 * 4 AS col1 +---- +-1 +-261 query I rowsort SELECT ALL + - CASE 94 WHEN - - 3 THEN NULL WHEN + 1 + 22 THEN + 8 END @@ -40629,8 +41129,11 @@ SELECT 75 * 61 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 552 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col1" at position 0 and "Int64\(12\) \* Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 49 AS col1, + 12 * + 46 AS col1 +---- +49 +552 query I rowsort SELECT - 83 + + ( - ( + 85 ) ) AS col1 @@ -40714,8 +41217,11 @@ SELECT DISTINCT - 13 * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(36\)\) AS col0" at position 0 and "Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 36 AS col0, - 43 AS col0 +---- +-36 +-43 query II rowsort label-7757 SELECT ALL + 39, + 73 * - MAX ( ALL + 67 ) AS col1 @@ -40817,8 +41323,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 22 ) AS col1, - 15 + - COUNT ( * ) AS col1 +---- +-16 +-22 query I rowsort SELECT - 17 * 93 @@ -41396,8 +41905,11 @@ SELECT DISTINCT + 64 + - 91 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 "Int64\(92\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 AS col0, 35 AS col0 +---- +35 +92 query I rowsort SELECT ALL + 47 + - 57 @@ -41942,8 +42454,11 @@ SELECT 43 * - + NULLIF ( 90, - 28 ) col2, - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 27 AS col0, 11 AS col0 +---- +11 +27 query I rowsort label-7990 SELECT 53 + - NULLIF ( + 23, - + COUNT ( * ) + + 69 ) AS col0 @@ -42049,8 +42564,11 @@ SELECT - + 3 col0, 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col2" at position 0 and "Int64\(84\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 AS col2, 84 * COUNT ( * ) AS col2 +---- +21 +84 query I rowsort label-8010 SELECT + 3 * CAST ( NULL AS INTEGER ) AS col0 @@ -42480,8 +42998,11 @@ SELECT CAST ( 17 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(54\)\) AS col0" at position 0 and "CAST\(\(\- Int64\(\-62\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( DISTINCT + + 54 ) AS col0, + CAST ( - - 62 AS INTEGER ) AS col0 +---- +54 +62 query I rowsort label-8091 SELECT ( + 30 ) / - 12 col0 @@ -42728,8 +43249,11 @@ SELECT 26 * 70 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - -3335 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "Int64\(28\) \+ nullif\(Int64\(\-57\), \(\- Int64\(\-54\)\)\) \* Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 59 AS col1, + 28 + + NULLIF ( - 57, - - 54 ) * 59 AS col1 +---- +-3335 +59 query I rowsort SELECT 18 + + 8 * - - 89 AS col2 @@ -42784,8 +43308,11 @@ 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\(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\. +query RI valuesort 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 +---- +-51 +NULL query I rowsort SELECT + 32 + 38 @@ -42927,8 +43454,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(\-52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 77 AS col1, + COUNT ( * ) - + - 52 AS col1 +---- +53 +77 query II rowsort label-8177 SELECT DISTINCT 33, + COUNT ( * ) - ( - + 90 ) - + 29 AS col0 @@ -43259,8 +43789,11 @@ SELECT ALL COUNT ( * ) + - - 69 * COUNT ( - 72 ) / - 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 62 AS col2, COUNT ( * ) AS col2 +---- +-62 +1 query I rowsort label-8241 SELECT ALL + COALESCE ( + 5, 34 ) + + + 65 * - COUNT ( * ) @@ -43558,8 +44091,11 @@ SELECT + 35 AS col0, 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - -215 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* Int64\(40\) / Int64\(\-18\) AS col1" at position 0 and "nullif\(Int64\(99\), Int64\(\-37\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 97 * 40 / - 18 col1, + NULLIF ( + 99, + - 37 ) AS col1 +---- +-215 +99 query I rowsort label-8298 SELECT DISTINCT + + SUM ( + 71 ) * 22 AS col0 @@ -43779,8 +44315,11 @@ SELECT ALL + 83 - - - 2 * 70 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 AS col2, 24 AS col2 +---- +24 +61 query I rowsort label-8339 SELECT ALL - + COALESCE ( NULLIF ( - 19, + 46 + 97 ), + 24, - - 10 + - MIN ( + + 70 ) ) AS col1 @@ -44045,8 +44584,11 @@ SELECT ALL + 55 + + 63 + - 64 + - 25 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 0 and "Int64\(62\) \+ Int64\(\-79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 AS col0, + 62 + + - 79 AS col0 +---- +-17 +96 query I rowsort SELECT + NULLIF ( - 2, - + COALESCE ( - + 79, ( 42 ) ) ) AS col2 @@ -44170,8 +44712,11 @@ SELECT - - 9 / 89 * - COALESCE ( - 82, + 93 * + 58, + COUNT ( * ) + 47 + 5 + - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- nullif\(Int64\(\-42\), Int64\(99\) \* Int64\(5\) \- Int64\(\-32\)\)\), nullif\(Int64\(12\), Int64\(30\) \+ \(\- \(\- coalesce\(Int64\(59\), Int64\(45\) \* count\(DISTINCT Int64\(27\)\), Int64\(64\)\)\)\) \* Int64\(97\)\)\) \+ Int64\(49\) / Int64\(\-28\) AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL NULLIF ( ( - NULLIF ( - 42, + 99 * 5 - - 32 ) ), + NULLIF ( + 12, + 30 + - - COALESCE ( + 59, + 45 * + COUNT ( DISTINCT + + 27 ), + 64 ) * + 97 ) ) + + 49 / - 28 AS col1, 40 AS col1 +---- +40 +41 query I rowsort SELECT + + 38 + + + 38 + + + 24 * + - ( 66 ) col0 @@ -44483,8 +45028,11 @@ SELECT ALL 72, MIN ( ALL - + ( - + 38 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 392 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col1" at position 0 and "Int64\(56\) \* Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 AS col1, 56 * ( 7 ) AS col1 +---- +12 +392 query I rowsort SELECT DISTINCT - ( - 60 ) col2 @@ -44499,8 +45047,11 @@ SELECT ALL - 23 - - 34 AS 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 "\(\- CAST\(NULL AS Float64\)\) AS col1" at position 0 and "Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - CAST ( NULL AS FLOAT8 ) AS col1, 98 col1 +---- +98 +NULL query I rowsort SELECT DISTINCT - 14 * + - 99 @@ -44765,8 +45316,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * - + 12 AS col0, ( 37 ) AS col0 +---- +12 +37 query I rowsort SELECT - 30 + + 11 AS col2 @@ -45010,8 +45564,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 AS col1, COUNT ( * ) - 62 AS col1 +---- +-61 +47 query II rowsort SELECT - 58, 52 col0 @@ -45264,8 +45821,11 @@ SELECT - 10 / + ( - 92 ) + - + 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - -484 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(50\)\) AS col0" at position 0 and "Int64\(44\) \* Int64\(\-11\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 50 AS col0, + 44 * - 11 * COUNT ( * ) AS col0 +---- +-484 +-50 query II rowsort SELECT ALL - 31 AS col1, 65 AS col0 @@ -45458,8 +46018,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 1848 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "\(\- Int64\(64\)\) \* Int64\(\-29\) \+ \(\- Int64\(8\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 82 AS col2, - ( + 64 ) * - 29 + - ( + 8 ) AS col2 +---- +1848 +82 query II rowsort label-8656 SELECT 70 AS col2, MAX ( ALL + 82 ) / - + 8 AS col1 @@ -45542,8 +46105,11 @@ SELECT DISTINCT + 61 / - - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(12\)\) AS col0" at position 0 and "coalesce\(nullif\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(7\) \* max\(Int64\(\-15\)\) / nullif\(\(\- \(\- Int64\(\-57\)\)\), min\(Int64\(72\)\) / CASE Int64\(\-62\) WHEN \(\- CAST\(Int64\(1\) AS Int32\)\) THEN Int64\(51\) END\) \- max\(\(\- Int64\(58\)\)\)\), Int64\(44\) \* \(\- Int64\(85\)\) \* Int64\(10\) \+ \(\- CAST\(Int64\(\-66\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1 +12 query I rowsort label-8672 SELECT DISTINCT COUNT ( * ) * - 87 + + - 51 * - 46 @@ -45878,8 +46444,11 @@ SELECT ALL CASE - + 52 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE - + COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 24 AS col0, COUNT ( * ) AS col0 +---- +1 +24 query I rowsort label-8736 SELECT 68 + + COUNT ( * ) + + - CASE - 61 WHEN - + 40 THEN NULL WHEN 41 THEN 97 END AS col2 @@ -45936,8 +46505,11 @@ SELECT 45 - 63 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) / Int64\(12\) AS col0" at position 0 and "Int64\(\-77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 / 12 AS col0, - 77 AS col0 +---- +-77 +2 query I rowsort SELECT 61 * 69 * - 65 AS col1 @@ -46095,8 +46667,11 @@ SELECT + ( - - 64 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 71 AS col2, 90 AS col2 +---- +71 +90 query I rowsort label-8778 SELECT ALL - 10 * 62 + 41 + - - COUNT ( * ) * + 38 * - 45 AS col0 @@ -46561,8 +47136,11 @@ SELECT ALL COUNT ( * ) * - ( + 60 ) * - + 73 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 AS col0, 46 col0 +---- +46 +46 query I rowsort SELECT DISTINCT 58 * - + ( 95 ) @@ -47028,8 +47606,11 @@ SELECT DISTINCT - 50 - 43 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 1314 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col0" at position 0 and "Int64\(73\) \* Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 32 AS col0, + 73 * 18 AS col0 +---- +-32 +1314 query I rowsort SELECT 44 + - + 98 @@ -47274,8 +47855,11 @@ SELECT - CAST ( + + 4 AS INTEGER ) + + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 377 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* Int64\(13\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 * 13 AS col1, + 10 AS col1 +---- +10 +377 query I rowsort SELECT - NULLIF ( - + 92, - 56 + + 64 ) * 93 col0 @@ -47313,8 +47897,11 @@ SELECT - 85 + + 12 col2, 25 * + 86 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1734 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \+ \(\- Int64\(\-37\)\) \* Int64\(48\) \- \(\- nullif\(Int64\(37\), \(\- CAST\(NULL AS Int32\)\)\)\) AS col0" at position 0 and "Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 79 + - ( + - 37 ) * 48 - - NULLIF ( + 37, - CAST ( NULL AS INTEGER ) ) AS col0, 44 AS col0 +---- +1734 +44 query I rowsort SELECT - 99 + 83 * - 9 @@ -47410,8 +47997,11 @@ SELECT DISTINCT + 87, 99 + + 66 * + 56 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 96 AS col1, 40 AS col1 +---- +40 +96 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -47541,8 +48131,11 @@ SELECT - COUNT ( * ) + + + 44 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- Int64\(81\) \- Int64\(55\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(32\) \+ \(\- CAST\(max\(\(\- Int64\(3\)\)\) AS Float64\)\) / \(\- nullif\(Int64\(52\), Int64\(4\) \* Int64\(39\)\)\) \+ CASE \(\- Int64\(54\)\) WHEN Int64\(\-73\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-45\)\) THEN NULL WHEN Int64\(\-92\) / Int64\(\-90\) \* nullif\(Int64\(\-67\), Int64\(64\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-24\)\) THEN Int64\(51\) END AS col0" at position 0 and "Int64\(\-3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort 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 +---- +-3 +NULL query I rowsort SELECT DISTINCT - 8 * - 39 @@ -47567,8 +48160,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + + 74 + - 57 / - + ( - 21 ) + - 22 col2, 56 AS col2 +---- +51 +56 query I rowsort label-9056 SELECT DISTINCT - SUM ( + 7 ) @@ -47708,8 +48304,12 @@ NULL # Datafusion - Expected - -348928 # Datafusion - Expected - 7826 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* \(\- Int64\(64\)\) \* CAST\(Int64\(58\) AS Int32\) AS col0" at position 0 and "CAST\(Int64\(86\) AS Int32\) \* Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 94 * - + 64 * + CAST ( 58 AS INTEGER ) AS col0, CAST ( 86 AS INTEGER ) * + 91 col0, + + NULLIF ( + 88, + + 27 * - ( + 87 ) + - ( 46 ) + + 96 + ( + 27 ) ) +---- +-348928 +7826 +88 query I rowsort label-9082 SELECT ALL - 48 - - + 80 - - COUNT ( * ) + + 5 @@ -47877,8 +48477,11 @@ SELECT ALL 29 + + MAX ( DISTINCT + 20 ) + + SUM ( - 38 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 365 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* CASE CAST\(NULL AS Int32\) WHEN Int64\(\-78\) THEN NULL ELSE Int64\(73\) END AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 * CASE + CAST ( NULL AS INTEGER ) WHEN - 78 THEN NULL ELSE 73 END col2, 71 AS col2 +---- +365 +71 query I rowsort SELECT NULLIF ( 51, 5 ) * + + 42 * + 48 @@ -48632,8 +49235,11 @@ SELECT ( + 51 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( 2 ) AS col2, + 14 AS col2 +---- +14 +2 query I rowsort SELECT ALL - 60 * + 10 + + 43 @@ -48736,8 +49342,11 @@ SELECT ALL SUM ( - - 46 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 AS col2, + 69 AS col2 +---- +69 +90 query I rowsort SELECT + 12 + - + 1 + - 81 col1 @@ -49102,8 +49711,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) / - - COUNT ( * ) AS col0, 43 AS col0 +---- +1 +43 query I rowsort SELECT ALL - 77 - 76 col2 @@ -49179,8 +49791,11 @@ SELECT DISTINCT 77 + - - COUNT ( * ) - + 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\)" at position 0 and "Int64\(\-13\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 13, - 13 +---- +-13 +-13 query I rowsort label-9366 SELECT + 1 * - NULLIF ( - - 47, - - 11 ) * 75 + + + CASE 54 WHEN + 31 + 53 * COUNT ( * ) THEN NULL WHEN COALESCE ( - COUNT ( DISTINCT CAST ( 92 AS INTEGER ) ), 94 * 69 ) THEN NULL ELSE 71 / + 11 + + 53 END + + 14 @@ -49195,8 +49810,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 68 col2, 73 AS col2 +---- +68 +73 query I rowsort SELECT + 77 * 6 AS col2 @@ -49911,8 +50529,11 @@ SELECT DISTINCT + + 51 * + + COUNT ( * ) AS col0, + 47 * - - COUNT ( * ) + - 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-27\), Int64\(83\)\) AS col1" at position 0 and "Int64\(\-31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT NULLIF ( - 27, 83 ) AS col1, - 31 AS col1 +---- +-27 +-31 query I rowsort label-9502 SELECT ALL + COUNT ( CAST ( NULL AS INTEGER ) ) AS col1 @@ -49963,8 +50584,11 @@ SELECT DISTINCT - NULLIF ( - - 33, + + NULLIF ( NULLIF ( - 80, - 9 - - + 63 ), - # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "Int64\(\-86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 16 AS col2, - 86 AS col2 +---- +-86 +16 query I rowsort label-9512 SELECT + 1 * + COUNT ( ALL - + 51 ) * + COUNT ( * ) @@ -50265,8 +50889,11 @@ SELECT + 50 / COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 379088 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* Int64\(58\) \* sum\(Int64\(76\)\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 86 * 58 * SUM ( 76 ) AS col2, + 26 col2 +---- +26 +379088 query I rowsort SELECT + 13 + + + 76 @@ -50599,8 +51226,11 @@ SELECT ALL COALESCE ( + 54, 46 ) * - + COUNT ( * ), 16 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75545 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-41\)\) \+ Int64\(88\) \* Int64\(33\) \* Int64\(26\) AS col0" at position 0 and "Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 41 + + ( + ( + 88 ) ) * + 33 * 26 AS col0, + 32 AS col0 +---- +32 +75545 query II rowsort label-9633 SELECT ALL + + 29 col1, - 29 * - - MAX ( DISTINCT + 18 ) @@ -50710,8 +51340,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) - 47 AS col2, 37 / - - COUNT ( * ) - + COUNT ( * ) * + 54 AS col2 +---- +-17 +-46 query I rowsort label-9653 SELECT ALL 82 * + COUNT ( * ) * COUNT ( * ) AS col2 @@ -50741,8 +51374,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) - 58 AS col0, - 73 * COUNT ( DISTINCT + 3 ) AS col0 +---- +-57 +-73 query II rowsort SELECT ALL 34 * 5 AS col0, 98 AS col2 @@ -50791,8 +51427,11 @@ SELECT DISTINCT 98 + - COUNT ( * ) + - ( - 32 ) / 6 # 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\(\-38\) / 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 II valuesort SELECT DISTINCT - 38 / 87 col0, 3 AS col0 +---- +0 +3 query I rowsort label-9668 SELECT DISTINCT - - 2 + + - NULLIF ( - MAX ( ALL - 11 ), - + CAST ( NULL AS INTEGER ) * + + 67 / - COUNT ( * ) ) col2 @@ -50833,8 +51472,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + ( 13 ) + 99 * - NULLIF ( - 87, - COUNT ( * ) ) AS col1, 1 + + 2 col1 +---- +3 +8626 query I rowsort label-9676 SELECT ALL - COUNT ( * ) * - + COUNT ( * ) / COUNT ( * ) * COUNT ( ALL + 92 ) @@ -50881,8 +51523,11 @@ SELECT 67 * + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 AS col1, 99 AS col1 +---- +63 +99 query I rowsort label-9685 SELECT 15 + - 91 + + NULLIF ( + - 43, + + 64 * + COUNT ( * ) + 57 + 31 * - CASE 14 WHEN + - 15 THEN - ( - CAST ( + 62 AS INTEGER ) ) WHEN + - 32 * + - 7 * + 59 + 27 THEN NULL WHEN 15 THEN + 29 ELSE ( 8 ) END ) AS col0 @@ -50913,8 +51558,11 @@ SELECT 11 * - COALESCE ( - SUM ( DISTINCT 62 ), + 73 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col0" at position 0 and "Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 89 col0, - 42 col0 +---- +-42 +-89 query I rowsort SELECT ( 43 ) * 7 @@ -51104,8 +51752,11 @@ SELECT DISTINCT 43 * + 88, + 12 * COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -195 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) \* Int64\(20\) \- Int64\(\-38\) \+ Int64\(67\) AS col2" at position 0 and "\(\- nullif\(\(\- Int64\(\-38\)\), Int64\(16\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 15 * 20 - - 38 + + 67 col2, - NULLIF ( - - 38, + 16 ) AS col2 +---- +-195 +-38 query I rowsort label-9727 SELECT + - 58 / - COUNT ( * ) - + 87 - - 41 @@ -51359,8 +52010,11 @@ SELECT ( + COALESCE ( + 95, MAX ( - 23 ) ) ) * - 90 - 49 - + COUNT ( * ) * 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 56 AS col1, + COUNT ( * ) AS col1 +---- +-56 +1 query I rowsort label-9776 SELECT + 94 * - + 24 - + CAST ( + 27 AS INTEGER ) - - 79 * + - 30 @@ -51443,8 +52097,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 8 AS col0, MAX ( DISTINCT 61 ) * + + COUNT ( * ) * 33 AS col0 +---- +-8 +2013 query I rowsort label-9792 SELECT - - NULLIF ( - COALESCE ( 36, - COUNT ( * ) ), COALESCE ( + CAST ( NULL AS INTEGER ), - + ( 51 ), 21 + - 54 ) ) @@ -51454,8 +52111,11 @@ SELECT - - NULLIF ( - COALESCE ( 36, - COUNT ( * ) ), COALESCE ( + CAST ( NULL A # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 0 and "CAST\(Int64\(\-70\) AS Int32\) / Int64\(\-95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 70 AS col0, CAST ( - 70 AS INTEGER ) / - 95 col0 +---- +0 +70 query I rowsort label-9794 SELECT + SUM ( DISTINCT - 84 ) * + - 95 + + 98 * + 64 / COALESCE ( + CASE 16 WHEN + + COUNT ( * ) THEN NULL WHEN - - 15 * + 37 / - COALESCE ( - 17, + + 91 + 27 ) + - 82 THEN 88 + - CASE + 34 WHEN 90 + + + 57 THEN NULL ELSE 74 END ELSE - COUNT ( * ) END, - 23, + 59 ) AS col1 @@ -51692,8 +52352,11 @@ SELECT - 75 * + - 87 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 95 col2, + 35 AS col2 +---- +35 +95 query I rowsort label-9840 SELECT - 93 / - 29 AS col0 @@ -51754,8 +52417,11 @@ SELECT - 72 - - + ( - COUNT ( * ) ) * + - ( - COUNT ( * ) ) / + 59 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, + 56 AS col0 +---- +56 +NULL query I rowsort SELECT - ( - - ( - 27 ) ) - - - 22 col2 @@ -52210,8 +52876,11 @@ SELECT 14 * - 89 * - 44 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 AS col1, ( COUNT ( * ) ) AS col1 +---- +-70 +1 query I rowsort label-9939 SELECT DISTINCT COUNT ( DISTINCT - 15 ) @@ -52390,8 +53059,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * - 54 AS col1, ( + 37 ) col1 +---- +37 +54 query I rowsort SELECT - NULLIF ( - 58, + + 70 ) + - 12 AS col2 diff --git a/data/sqlite/random/expr/slt_good_119.slt b/data/sqlite/random/expr/slt_good_119.slt index 66c2c95..8f0b0c0 100644 --- a/data/sqlite/random/expr/slt_good_119.slt +++ b/data/sqlite/random/expr/slt_good_119.slt @@ -160,8 +160,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ Int64\(\-86\) \* Int64\(0\) \* Int64\(\-83\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 + - 86 * + 0 * - 83 AS col2, CAST ( NULL AS INTEGER ) AS col2 +---- +30 +NULL query I rowsort SELECT DISTINCT + 26 + + + 51 AS col0 @@ -841,8 +844,11 @@ SELECT ALL - 17 + + 37 + - ( - MIN ( DISTINCT + + 92 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 AS col1, 66 AS col1 +---- +66 +80 query I rowsort label-155 SELECT 41 * 68 * 89 / - SUM ( ALL - 25 ) @@ -1169,8 +1175,12 @@ SELECT ALL + 38 * - 76 - + 16 AS col1 # Datafusion - Expected - -1 # Datafusion - Expected - 0 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) / Int64\(49\) AS col2" at position 1 and "\(\- Int64\(\-60\)\) \+ Int64\(37\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + COUNT ( * ), 5 / + 49 AS col2, - ( - 60 ) + 37 AS col2 +---- +-1 +0 +97 query I rowsort SELECT ALL - CASE + 83 WHEN + + 16 THEN 62 * 62 WHEN - + 99 THEN - - 98 END @@ -1297,8 +1307,11 @@ SELECT ALL - 26 AS col1, - SUM ( - 8 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 AS col1, - CAST ( NULL AS INTEGER ) AS col1 +---- +25 +NULL query II rowsort label-241 SELECT - + SUM ( DISTINCT 4 ) * + 17 + - COUNT ( * ) - - 36 + - ( - 73 ) * + - 97 + - 62 - - - 6 / 30 * 23 * + 98 + + - 34 AS col0, 72 @@ -1710,8 +1723,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) - + 3 AS col1, + 47 AS col1 +---- +-4 +47 query I rowsort label-319 SELECT - SUM ( ALL + 27 ) AS col2 @@ -1900,8 +1916,11 @@ SELECT ALL + COUNT ( ALL + 71 ) / 62 AS col0 # 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\(23\) \* \(\- CASE Int64\(84\) WHEN Int64\(79\) THEN Int64\(15\) ELSE NULL END\) AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 23 * - CASE 84 WHEN 79 THEN 15 ELSE NULL END AS col1, 50 AS col1 +---- +50 +NULL query I rowsort label-356 SELECT ALL COUNT ( + 91 ) * + COUNT ( * ) col1 @@ -2042,8 +2061,11 @@ SELECT ALL - COUNT ( * ) - COALESCE ( - 73, - COUNT ( + 86 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 1541 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col1" at position 0 and "Int64\(23\) \* Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 47 AS col1, 23 * 67 AS col1 +---- +-47 +1541 query II rowsort label-383 SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) + + - 33 @@ -2163,8 +2185,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, 83 AS col0 +---- +-1 +83 query I rowsort SELECT - + 60 + 15 @@ -2347,8 +2372,12 @@ SELECT ALL - 78 + + 68 AS col1 # Datafusion - Expected - NULL # Datafusion - Expected - 9 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-73\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "nullif\(coalesce\(Int64\(\-14\), Int64\(\-51\)\), \(\- Int64\(\-54\)\) \* \(\- max\(Int64\(\-9\)\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - 73 * - CAST ( NULL AS INTEGER ) AS col1, 9, NULLIF ( COALESCE ( - 14, - 51 ), - - 54 * - MAX ( - 9 ) ) AS col1 +---- +-14 +9 +NULL query I rowsort label-440 SELECT DISTINCT - CAST ( - 97 AS INTEGER ) * MAX ( 70 ) AS col2 @@ -3039,8 +3068,11 @@ SELECT DISTINCT + 61 * 54 + + 3 + - - 23 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 50 AS col0, 25 AS col0 +---- +-50 +25 query I rowsort SELECT - 89 - + 85 @@ -3050,8 +3082,11 @@ SELECT - 89 - + 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(99\)\) AS col2" at position 0 and "Int64\(\-86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 99 AS col2, - 86 AS col2 +---- +-86 +-99 query I rowsort label-573 SELECT ALL - COUNT ( * ) + + CASE - - 7 WHEN + + 17 THEN + - COUNT ( * ) END @@ -3277,8 +3312,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(85\)\) AS col1" at position 0 and "Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 85 AS col1, 25 col1 +---- +-85 +25 query I rowsort label-616 SELECT + SUM ( + - 87 ) + - NULLIF ( - 47, COUNT ( * ) + + 94 ) AS col1 @@ -3450,8 +3488,11 @@ 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\(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\. +query II valuesort SELECT - + 7 * + COUNT ( * ) * + 86 + + - COUNT ( * ) AS col1, - ( SUM ( DISTINCT 42 ) ) * - COALESCE ( 40, - - 59 * + + 83 * 76 + - + 58 ) - - + 3 - + 64 - + - 8 col1 +---- +-603 +1627 query I rowsort label-650 SELECT CAST ( 1 AS INTEGER ) AS col1 @@ -4114,8 +4155,11 @@ SELECT + ( + - ( + + 30 ) ) * 17 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 191517 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col2" at position 0 and "Int64\(\-79\) \* Int64\(75\) \* Int64\(\-32\) \+ Int64\(27\) \* Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 AS col2, - 79 * 75 * - 32 + 27 * 71 AS col2 +---- +191517 +80 query I rowsort label-781 SELECT COALESCE ( - + CAST ( NULL AS INTEGER ), + - 92 ) @@ -4354,8 +4398,11 @@ SELECT MIN ( DISTINCT 79 ) + + 13 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) / Int64\(\-14\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 / - 14 AS col0, + 83 AS col0 +---- +-6 +83 query II rowsort label-827 SELECT 29 + + 44 AS col1, - 41 * CAST ( NULL AS INTEGER ) AS col0 @@ -4897,8 +4944,11 @@ SELECT ALL 92 + + 84 + - + 4 * - 90 * + + 52 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "Int64\(52\) / Int64\(45\) \* Int64\(\-34\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 AS col0, 52 / 45 * - 34 * COUNT ( * ) AS col0 +---- +-34 +82 query I rowsort label-930 SELECT ALL COUNT ( * ) + + 78 col1 @@ -5405,8 +5455,11 @@ SELECT - 27 * - 9 + + 78 AS col0 # 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 "\(\- Int64\(\-71\)\) \+ Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 14 AS col1, ( - ( - 71 ) ) + + 67 AS col1 +---- +138 +14 query I rowsort label-1027 SELECT DISTINCT - 67 / 8 @@ -5417,8 +5470,12 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(57\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 2 col0, COUNT ( DISTINCT 76 ) - - - 59 AS col2, - COUNT ( * ) + + 57 AS col0 +---- +-58 +2 +56 query I rowsort label-1029 SELECT - - 29 * - COUNT ( * ) AS col0 @@ -5443,8 +5500,11 @@ SELECT ALL 57 / - - 85 + + - 5 * + - ( - 15 ) + - - 3 + 43 + - + 39 + 8 / 49 * + # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - -4734 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(87\)\) AS col1" at position 0 and "Int64\(\-58\) \* Int64\(63\) \- Int64\(15\) \* \(\- Int64\(\-72\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 87 col1, - 58 * + 63 - 15 * - ( - 72 ) AS col1 +---- +-4734 +-87 query I rowsort label-1034 SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 85 * + 5 @@ -5548,8 +5608,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + + 29 + - + 80 col1, - 29 AS col1 +---- +-29 +-50 query I rowsort SELECT ALL + 66 * + 90 * 43 @@ -5600,8 +5663,11 @@ SELECT ALL 31 + + + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - -156 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \+ \(\- Int64\(76\)\) AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 80 + - + 76 AS col1, 47 AS col1 +---- +-156 +47 query II rowsort label-1064 SELECT ALL + + 96 + MAX ( + 3 ), 13 AS col1 @@ -6128,8 +6194,11 @@ SELECT ALL - - COUNT ( * ) - 13 + COALESCE ( - COUNT ( * ), + - CAST ( COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - -203820 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(79\) \* Int64\(\-86\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 30 * 79 * + - 86 AS col1, 42 AS col1 +---- +-203820 +42 query I rowsort SELECT 12 * + 75 @@ -6154,8 +6223,11 @@ SELECT ALL - COUNT ( * ) - + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 25 AS col0, + 88 col0 +---- +-25 +88 query I rowsort label-1169 SELECT DISTINCT NULLIF ( + - CAST ( NULL AS INTEGER ), - 6 ) AS col1 @@ -6223,8 +6295,11 @@ SELECT ALL + 49 + 77 AS col0, - 11 # 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\(\-8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 AS col0, ( - 8 ) AS col0 +---- +-8 +27 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -6709,8 +6784,11 @@ SELECT + + ( 97 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1680 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(28\)\) \* \(\- Int64\(10\)\) \* Int64\(\-6\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + + 28 ) * - + 10 * + - 6 AS col1, ( + 59 ) AS col1 +---- +-1680 +59 query I rowsort label-1273 SELECT - - 37 + - - 77 * 29 / + - 58 @@ -7242,8 +7320,12 @@ 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\(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\. +query III valuesort SELECT 79, - COUNT ( * ) AS col2, + 36 * - COUNT ( * ) AS col2 +---- +-1 +-36 +79 query II rowsort SELECT ALL + + 70 AS col0, 59 AS col2 @@ -7312,8 +7394,11 @@ SELECT + ( - NULLIF ( 76, - + 18 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2850 # Datafusion - Expected - 10 -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 "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 75 * 38 AS col2, + 10 AS col2 +---- +10 +2850 query I rowsort SELECT + ( + 17 ) * 14 @@ -7890,8 +7975,12 @@ SELECT ALL - + 4 * ( + 81 ) / 12 # Datafusion - Expected - -26 # Datafusion - Expected - -68 # 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\(DISTINCT Int64\(17\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 26 col2, ( - 68 ), COUNT ( DISTINCT + 17 ) AS col2 +---- +-26 +-68 +1 query II rowsort label-1496 SELECT + 36 AS col2, - COUNT ( * ) + 21 @@ -7973,8 +8062,11 @@ SELECT - + 63 * 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ Int64\(23\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 40 + + 23 col0, 49 AS col0 +---- +49 +63 query II rowsort label-1512 SELECT ALL 60, CAST ( NULL AS INTEGER ) AS col2 @@ -8237,8 +8329,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + - 70 ) AS col0, 36 AS col0 +---- +-70 +36 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -8483,8 +8578,11 @@ 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\(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\. +query II valuesort 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 +---- +121 +NULL query I rowsort label-1608 SELECT - CASE + 84 WHEN 52 THEN + 59 * + + ( 20 ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - 54 * - 61 THEN + 18 + + - ( + 71 ) END * - 31 col2 @@ -8551,8 +8649,11 @@ SELECT DISTINCT + - 9 * - COUNT ( * ) + - 39 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1242 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \* Int64\(69\) AS col1" at position 0 and "Int64\(\-67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 18 * 69 AS col1, - 67 AS col1 +---- +-1242 +-67 query I rowsort label-1621 SELECT + CASE - 56 WHEN + 3 THEN - 95 END * - ( - + 25 ) + + 63 + - + 99 - COUNT ( * ) AS col0 @@ -9094,8 +9195,11 @@ SELECT - 15 + - COUNT ( * ) * - 93 + + SUM ( - 63 ) + + 8 * 63 * ( 46 ) + + 79 + # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(99\), \(\- min\(DISTINCT Int64\(\-30\)\)\)\) \* \(\- max\(Int64\(\-1\)\)\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( 99, - MIN ( DISTINCT - 30 ) ) * - MAX ( - 1 ) AS col1, 44 AS col1 +---- +44 +99 query I rowsort label-1727 SELECT MAX ( DISTINCT - - 57 ) AS col1 @@ -9219,8 +9323,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - COUNT ( * ) AS col1, + 46 AS col1 +---- +-1 +46 query I rowsort label-1751 SELECT - 69 / + 50 AS col1 @@ -9472,8 +9579,11 @@ SELECT ALL 7 / - + 87 * - 11 # 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 "Int64\(0\) AS col0" at position 0 and "Int64\(73\) \+ \(\- Int64\(4\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 0 AS col0, ( + 73 ) + - + 4 AS col0 +---- +0 +69 query II rowsort label-1799 SELECT ALL COUNT ( * ), 63 AS col0 @@ -10093,8 +10203,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \* Int64\(\-55\) AS col1" at position 0 and "Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * - 55 AS col1, - 18 AS col1 +---- +-18 +-55 query I rowsort SELECT 30 + - - 48 * 13 * - COALESCE ( 28, - + 57, + + 70 - - 62 ) AS col0 @@ -10656,8 +10769,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - - COUNT ( * ) AS col2, 76 * - 75 col2 +---- +-5700 +1 query I rowsort label-2024 SELECT ALL + 7 + + 44 + CASE - 6 WHEN COUNT ( * ) * - - 81 - - COALESCE ( 11, - + 23 * 17 ) - - 52 - - + COUNT ( * ) THEN + + 29 ELSE NULL END * - 59 * CAST ( NULL AS INTEGER ) @@ -10808,14 +10924,20 @@ SELECT ALL - SUM ( DISTINCT + + 69 ) / COUNT ( * ) col1, + 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 "Int64\(84\) / Int64\(\-75\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 / - 75 AS col2, + 37 AS col2 +---- +-1 +37 # 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\(1\)\) AS count\(\*\) \+ Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 21 + - - 51 AS col1, + COUNT ( * ) + - 33 AS col1 +---- +-32 +72 query II rowsort label-2054 SELECT DISTINCT - 20 * + CASE COUNT ( * ) WHEN + - 53 THEN - MIN ( - - 37 ) * COUNT ( * ) ELSE NULL END + - CAST ( NULL AS INTEGER ) col2, 59 * COUNT ( * ) @@ -10917,8 +11039,11 @@ 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\(1\)\) AS count\(\*\)\) \- Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 AS col1, - COUNT ( * ) - 40 AS col1 +---- +-41 +84 query I rowsort SELECT 78 * + 78 @@ -10980,8 +11105,11 @@ SELECT ALL 90 * COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col2" at position 0 and "Int64\(\-46\) \- Int64\(\-85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 AS col2, - 46 - - 85 AS col2 +---- +21 +39 query II rowsort label-2086 SELECT ALL COUNT ( * ) AS col1, 95 @@ -11331,8 +11459,11 @@ SELECT DISTINCT COUNT ( * ) + + 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 "Int64\(\-1\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 1 col1, ( + 19 ) AS col1 +---- +-1 +19 query I rowsort label-2153 SELECT ALL NULLIF ( 44, - - COUNT ( * ) ) AS col1 @@ -11509,8 +11640,11 @@ SELECT ALL - CASE - 84 WHEN - 14 * - + CASE + 41 WHEN - 46 THEN - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col0" at position 0 and "Int64\(34\) \+ Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 29 AS col0, 34 + - 64 AS col0 +---- +-29 +-30 query I rowsort label-2187 SELECT + 65 - ( + COUNT ( * ) ) AS col0 @@ -11763,8 +11897,12 @@ SELECT + 62 + - 10 # Datafusion - Expected - 71 # Datafusion - Expected - -333888 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "Int64\(\-96\) \* Int64\(\-94\) \* Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 71 AS col2, - 96 * - 94 * - 37 AS col2, 24 AS col1 +---- +-333888 +24 +71 query I rowsort label-2235 SELECT ALL NULLIF ( - 54, 51 ) + - CAST ( + MIN ( 5 ) AS INTEGER ) AS col2 @@ -11884,8 +12022,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(\-22\) AS Int32\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(19\) AS col0" at position 0 and "Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - CAST ( - 22 AS INTEGER ) * - COUNT ( * ) + + 19 AS col0, + ( - 56 ) AS col0 +---- +-56 +41 query I rowsort SELECT - + 21 + + 14 + - + 55 * - + 83 AS col2 @@ -11955,8 +12096,11 @@ SELECT ALL - 42 / - + NULLIF ( 97, - 33 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \+ Int64\(\-76\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 + - 76 AS col2, + 37 AS col2 +---- +-57 +37 query I rowsort label-2271 SELECT DISTINCT 91 - - 95 / - COUNT ( * ) @@ -13162,8 +13306,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col0" at position 0 and "Int64\(\-93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 39 AS col0, - 93 AS col0 +---- +-93 +39 query I rowsort label-2504 SELECT + COUNT ( * ) * + + 95 * + 64 + - + 36 @@ -13704,8 +13851,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( - 34 ) + 19 - + 55 col0, - 22 * + COUNT ( * ) * + COUNT ( * ) * + 2 * + - 37 * - 97 - - 6 AS col0 +---- +-157910 +-37 query I rowsort label-2608 SELECT + - MAX ( ALL 65 ) @@ -13811,8 +13961,11 @@ SELECT 91 * - + 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 col0, + 72 AS col0 +---- +45 +72 query I rowsort SELECT ALL 66 + + - 67 @@ -13873,8 +14026,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -420 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \+ CASE Int64\(63\) WHEN Int64\(2\) THEN min\(Int64\(68\)\) ELSE NULL END \* \(\- Int64\(26\)\) / Int64\(47\) AS col0" at position 0 and "Int64\(\-70\) \* Int64\(6\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 4 + CASE 63 WHEN 2 THEN + MIN ( 68 ) ELSE NULL END * - + 26 / 47 AS col0, - 70 * 6 * COUNT ( * ) AS col0 +---- +-420 +NULL query I rowsort label-2641 SELECT ( - MIN ( - 29 ) ) col2 @@ -14397,8 +14553,11 @@ SELECT ALL COUNT ( * ) AS col0, - 8 + 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8051 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* Int64\(97\) \* Int64\(1\) AS col2" at position 0 and "Int64\(0\) \* Int64\(15\) \* Int64\(\-81\) / Int64\(\-42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 83 * + + 97 * + 1 col2, + 0 * + 15 * + - 81 / + ( - 42 ) col2 +---- +0 +8051 query I rowsort label-2741 SELECT DISTINCT 94 / - 7 AS col2 @@ -14455,8 +14614,11 @@ SELECT ALL - + 5 + - 53 * + 16, + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 104 # Datafusion - Expected - 493 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(70\) AS Int32\) \+ Int64\(34\) AS col2" at position 0 and "Int64\(17\) \* Int64\(29\) \+ Int64\(66\) \* \(\- Int64\(66\)\) \* min\(Int64\(0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( 70 AS INTEGER ) + 34 AS col2, + 17 * 29 + 66 * - + 66 * + MIN ( ALL + 0 ) AS col2 +---- +104 +493 query I rowsort SELECT ALL + 65 + + + 81 AS col0 @@ -14817,8 +14979,11 @@ SELECT DISTINCT 49 * 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 76 -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\(94\)\) \* Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 10 AS col1, + COUNT ( ALL + 94 ) * + 76 AS col1 +---- +10 +76 query I rowsort SELECT ALL 84 * - - 94 @@ -14899,8 +15064,11 @@ SELECT - ( + 78 ) + 15 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \+ Int64\(9\) AS col0" at position 0 and "CASE Int64\(\-77\) WHEN Int64\(\-95\) THEN NULL WHEN Int64\(82\) \+ Int64\(62\) THEN Int64\(\-13\) \- \(\- coalesce\(Int64\(\-6\), Int64\(64\) / \(\- CASE Int64\(\-66\) WHEN Int64\(9\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-50\) \* Int64\(82\) THEN NULL ELSE Int64\(62\) END\), Int64\(92\)\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 74 + 9 AS col0, CASE - 77 WHEN + - 95 THEN NULL WHEN 82 + + + 62 THEN - 13 - - COALESCE ( - 6, + 64 / - CASE + - 66 WHEN 9 + - CAST ( NULL AS INTEGER ) + - 50 * 82 THEN NULL ELSE 62 END, 92 ) END AS col0 +---- +-65 +NULL query I rowsort SELECT - 24 + - + CASE + 55 WHEN 4 * + ( + 26 ) THEN 37 + - 48 WHEN + - 20 * 31 + - + 53 + - 87 THEN NULL END @@ -14953,8 +15121,11 @@ SELECT ALL - 17 col2, 61 # 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 col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 84 AS col0, + 41 AS col0 +---- +41 +84 query I rowsort label-2848 SELECT + 26 + - MAX ( ALL + CASE + 94 WHEN - + 58 THEN + + 58 WHEN + 11 THEN NULL WHEN 66 THEN - + 17 - - ( + 20 ) END ) - - 79 - + 71 * - + 40 + - + CAST ( 17 AS INTEGER ) @@ -15295,8 +15466,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 25 AS col0, CAST ( NULL AS INTEGER ) AS col0 +---- +25 +NULL query II rowsort SELECT DISTINCT + 31, + 27 AS col2 @@ -15428,8 +15602,11 @@ SELECT - - 25 * 54 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-58\)\) \* Int64\(36\) \+ \(\- Int64\(74\)\) \+ Int64\(54\) \+ Int64\(\-12\) \* \(\- Int64\(61\)\) \- Int64\(41\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) \* \(\- Int64\(89\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-67\) AS col0" at position 0 and "Int64\(23\) \+ CASE Int64\(31\) WHEN \(\- max\(Int64\(31\)\)\) THEN NULL WHEN Int64\(\-15\) \+ Int64\(\-19\) \* Int64\(6\) THEN Int64\(35\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +NULL +NULL query I rowsort label-2937 SELECT ALL + COUNT ( * ) * - - 37 @@ -15660,8 +15837,11 @@ SELECT DISTINCT 1 * - + 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - -2654 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(31\) \* Int64\(56\) \- \(\- Int64\(10\)\) \* Int64\(\-34\) \* \(\- \(\- CAST\(avg\(Int64\(13\)\) AS Int32\)\)\) \+ Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 AS col0, COUNT ( * ) * + 31 * + 56 - - + 10 * - 34 * - - CAST ( + AVG ( + 13 ) AS INTEGER ) + 30 AS col0 +---- +-2654 +-55 query I rowsort label-2981 SELECT 90 / 66 AS col0 @@ -16122,8 +16302,11 @@ NULL # 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\(55\) / 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 II valuesort SELECT ALL 55 / + - 89 AS col2, - 86 AS col2 +---- +-86 +0 query I rowsort label-3068 SELECT + COUNT ( * ) * + + 62 * + 9 * - + 35 * - 1 AS col1 @@ -16251,8 +16434,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( - 28 ) / + 32 AS col1, COALESCE ( 82, + COUNT ( * ) ) AS col1 +---- +0 +82 query I rowsort SELECT 61 + + + 28 + 87 * - 98 * + + 73 * - 85 AS col1 @@ -16332,8 +16518,12 @@ SELECT ALL 88 + + - COUNT ( * ) + - - 83 * + 91 AS col1 # Datafusion - Expected - 1504 # Datafusion - Expected - 67 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \+ nullif\(Int64\(23\), Int64\(89\)\) \* Int64\(65\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 9 + + NULLIF ( + + 23, + + 89 ) * + 65 AS col0, + 67 AS col0, - + 39 +---- +-39 +1504 +67 query I rowsort SELECT DISTINCT COALESCE ( + - 92, 7 ) AS col2 @@ -16855,8 +17045,11 @@ SELECT - 24 - 84 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 45 AS col0, + 48 AS col0 +---- +45 +48 query I rowsort SELECT DISTINCT + 13 * + 0 @@ -17038,8 +17231,11 @@ 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\(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\. +query II valuesort 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 +---- +133 +NULL query I rowsort label-3241 SELECT ALL + COUNT ( ALL - 6 ) + 97 AS col1 @@ -17180,8 +17376,11 @@ SELECT DISTINCT + NULLIF ( - - ( - + ( + 70 ) ), - 18 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "nullif\(\(\- Int64\(\-45\)\), Int64\(97\)\) \* CASE \(\- Int64\(\-56\)\) WHEN Int64\(58\) THEN CAST\(NULL AS Int32\) \- Int64\(\-44\) WHEN \(\- Int64\(15\)\) / Int64\(75\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-33\) THEN Int64\(\-47\) END \+ coalesce\(\(\- Int64\(7\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ avg\(Int64\(84\)\), \(\- Int64\(52\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +28 +NULL query I rowsort SELECT ALL + - 41 + - 21 AS col0 @@ -17284,8 +17483,11 @@ SELECT + - 7 + 58 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2755 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(Int64\(30\) AS Int32\) \+ Int64\(\-29\) \* Int64\(96\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - COUNT ( * ) + CAST ( 30 AS INTEGER ) + - 29 * 96 AS col2, 98 AS col2 +---- +-2755 +98 query I rowsort SELECT + 90 + + + 35 AS col0 @@ -17306,8 +17508,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 83 AS col1, COUNT ( * ) AS col1 +---- +1 +83 query I rowsort SELECT + 54 + + - 17 + + 19 @@ -17333,8 +17538,12 @@ SELECT + COUNT ( * ) * + 17 # Datafusion - Expected - 98 # Datafusion - Expected - NULL # Datafusion - Expected - 252 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col1" at position 0 and "Int64\(\-85\) \* Int64\(\-3\) / CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(76\) \- Int64\(94\) \* CAST\(\(\- Int64\(14\)\) AS Int32\) THEN Int64\(98\) \* Int64\(53\) END \+ Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +252 +98 +NULL query I rowsort label-3298 SELECT + 60 + + COUNT ( * ) + + - 44 * + + 16 * - - 70 * + ( CAST ( + 20 AS INTEGER ) ) * + 52 + - 86 - + 99 AS col1 @@ -17463,8 +17672,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col0, - 70 + + - 53 AS col0 +---- +-1 +-123 query I rowsort SELECT ALL 21 * + 23 * + 61 + + + 15 * + + 67 * - 60 @@ -17857,8 +18069,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* coalesce\(Int64\(37\), Int64\(\-21\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL NULLIF ( - + 34, - 0 + + 22 ) AS col2, 15 * + COUNT ( * ) * COALESCE ( 37, - 21 ) AS col2 +---- +-34 +555 query I rowsort label-3397 SELECT DISTINCT - 66 + + - 70 / - COUNT ( * ) col1 @@ -17928,8 +18143,11 @@ 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\(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\. +query IR valuesort SELECT 78 * - - COUNT ( * ) + 11 AS col2, SUM ( + + CAST ( NULL AS FLOAT8 ) ) AS col2 +---- +89 +NULL query I rowsort SELECT - 60 * + 22 * + 8 + - 60 @@ -18165,8 +18383,11 @@ SELECT 33 / + 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\)" at position 0 and "Int64\(70\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70, 70 +---- +70 +70 query II rowsort SELECT ALL 48, + 6 AS col2 @@ -18780,8 +19001,12 @@ 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\(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\. +query III valuesort SELECT 84 * - 36 + - + 69 AS col1, - COALESCE ( - - COUNT ( * ), - COUNT ( * ) ) AS col2, + 93 AS col2 +---- +-1 +-3093 +93 query I rowsort label-3574 SELECT SUM ( + + 99 ) * - CAST ( NULL AS INTEGER ) + 89 AS col0 @@ -19070,8 +19295,11 @@ SELECT 45, + COUNT ( * ) 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\(\(\- Int64\(\-98\)\)\)\) AS col2" at position 0 and "Int64\(\-26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( - - 98 ) AS col2, - 26 AS col2 +---- +-1 +-26 query I rowsort label-3629 SELECT + - CAST ( - - COUNT ( * ) AS INTEGER ) * - ( - + ( + MIN ( ALL - 85 ) ) ) AS col1 @@ -19108,8 +19336,11 @@ SELECT ALL 25 AS col2, 13 AS col1 # 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\(\-9\) \+ Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 57 AS col1, - 9 + - 84 col1 +---- +-93 +57 query I rowsort label-3636 SELECT ALL COUNT ( * ) / - + 26 @@ -19554,8 +19785,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MAX ( DISTINCT - + NULLIF ( 96, - 65 + - + 58 ) ) AS col0, 6 + + - 84 + - 61 + COUNT ( + 18 ) + + + 84 * 35 * + - 6 + - - COUNT ( * ) AS col0 +---- +-17777 +96 query I rowsort label-3718 SELECT DISTINCT 45 * + - COUNT ( * ) AS col0 @@ -19969,8 +20203,11 @@ SELECT DISTINCT + 92 + COUNT ( * ) * + 1 * - 78 + - COALESCE ( - 59, 11 * + 1, - # Datafusion - Datafusion expected results: # Datafusion - Expected - 240 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* \(\- Int64\(\-48\)\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 5 * - - 48 col2, 19 AS col2 +---- +19 +240 query I rowsort SELECT ALL - NULLIF ( + + 94, - 11 ) AS col1 @@ -20232,8 +20469,11 @@ 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\(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\. +query II valuesort SELECT 52 AS col1, 5 * - - COUNT ( * ) * + - 24 + - - 7 + + 34 * 46 AS col1 +---- +1451 +52 query I rowsort SELECT - 1 * + - 26 * + + ( - 43 ) AS col1 @@ -20371,8 +20611,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + NULLIF ( + 11, 22 * - 19 * + NULLIF ( - COUNT ( * ), + - 22 ) ) AS col0, + 23 - - - 52 + + COUNT ( * ) + 34 * - 34 col0 +---- +-1184 +11 query I rowsort label-3872 SELECT + - COUNT ( * ) / + 59 * - 5 - - 97 + - 16 @@ -20852,8 +21095,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 18 AS col0, + 95 AS col0 +---- +18 +95 query I rowsort label-3967 SELECT ALL COALESCE ( - 87, - + 8 * - 24 + + 57 ) - + COUNT ( * ) @@ -20963,8 +21209,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col2" at position 0 and "\(\- nullif\(Int64\(18\), Int64\(6\) \* Int64\(27\) \- CAST\(Int64\(\-81\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 39 AS col2, - NULLIF ( 18, + 6 * + 27 - + CAST ( - 81 AS INTEGER ) ) AS col2 +---- +-18 +-39 query I rowsort label-3988 SELECT + - 17 * - 28 * + - 82 * COALESCE ( - 60 * - MIN ( DISTINCT 15 ), + 62 ) - - 46 + - 3 @@ -21234,8 +21483,11 @@ SELECT ALL - 28 * + 72 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-7\)\) \+ \(\- Int64\(\-23\)\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( + - 7 ) + - - 23 AS col0, + 70 AS col0 +---- +16 +70 query I rowsort SELECT ALL - 38 * + - 70 @@ -21470,8 +21722,11 @@ SELECT ALL - 98 + - 94 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "Int64\(\-60\) \+ Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 AS col0, - 60 + 95 col0 +---- +19 +35 query I rowsort SELECT ALL + 34 + - + 18 + - 7 @@ -21591,8 +21846,11 @@ SELECT + 19 + + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -220 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col2" at position 0 and "Int64\(\-10\) \* \(\- Int64\(\-22\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 67 AS col2, - 10 * - ( - 22 ) AS col2 +---- +-220 +67 query I rowsort label-4109 SELECT DISTINCT 58 * NULLIF ( 93, - CASE + 2 WHEN + + 39 THEN - 82 / + 18 END + + COUNT ( * ) ) + - 65 @@ -21933,8 +22191,11 @@ SELECT 82 + + 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) \- Int64\(39\) \+ Int64\(98\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 14 - + 39 + + 98 AS col1, 14 AS col1 +---- +14 +45 query I rowsort SELECT 13 * - 19 col2 @@ -22057,8 +22318,11 @@ SELECT COUNT ( * ) * - + 42 / - 62 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ Int64\(\-75\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4 + - 75 AS col0, + 41 AS col0 +---- +-71 +41 query I rowsort label-4198 SELECT 75 * COUNT ( * ) AS col2 @@ -22457,8 +22721,11 @@ SELECT - 64 * + 11 * - 90 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "Int64\(72\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 55 AS col2, 72 + COUNT ( * ) AS col2 +---- +55 +73 query II rowsort SELECT + ( 2 ) AS col2, 54 * - - 57 @@ -22604,8 +22871,11 @@ SELECT DISTINCT - NULLIF ( + 42, 80 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3900 # Datafusion - Expected - 41 -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 "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 * - 52 AS col0, 41 AS col0 +---- +-3900 +41 query I rowsort SELECT ALL + 79 * - - 3 col1 @@ -22787,8 +23057,12 @@ NULL # Datafusion - Expected - -188006 # Datafusion - Expected - 126 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \+ Int64\(33\) \* Int64\(\-60\) \* Int64\(95\) AS col0" at position 0 and "CAST\(Int64\(88\) AS Int32\) / Int64\(\-34\) \+ Int64\(47\) \+ Int64\(81\) \+ Int64\(1\) / Int64\(\-50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 94 + + + 33 * - 60 * + + 95 AS col0, CAST ( 88 AS INTEGER ) / - 34 + 47 + 81 + + 1 / - 50 AS col0, + + 26 * - COUNT ( DISTINCT - 34 ) +---- +-188006 +-26 +126 query II rowsort SELECT 94 AS col0, 55 AS col1 @@ -22886,8 +23160,11 @@ SELECT ALL + COUNT ( * ) * - COUNT ( * ) + 45 * - 27 + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 2049 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col1" at position 0 and "Int64\(36\) \+ Int64\(\-33\) \* Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 55 AS col1, 36 + - 33 * + - 61 AS col1 +---- +2049 +55 query I rowsort label-4355 SELECT + COALESCE ( - 14, + CAST ( NULL AS INTEGER ) + + 11 ) * - - 43 - - + 81 + COUNT ( * ) + 88 / + COALESCE ( + 71, + + COUNT ( * ) + - 32 ) / - COALESCE ( - COUNT ( * ), - 76 ) @@ -23200,8 +23477,11 @@ SELECT - COALESCE ( 43, 97 - + 93, 19 + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 34 AS col2, 27 col2 +---- +27 +34 query I rowsort label-4415 SELECT ALL COUNT ( * ) - + 74 * + COUNT ( * ) @@ -23257,8 +23537,11 @@ SELECT + + 42 * 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(63\)\) AS col0" at position 0 and "avg\(DISTINCT \(\- nullif\(\(\- CAST\(NULL AS Int32\)\), \(\- Int64\(66\)\) / Int64\(29\)\)\)\) \+ Int64\(\-87\) \* Int64\(\-78\) / \(\- min\(Int64\(\-74\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + + ( + ( - + 63 ) ) AS col0, AVG ( DISTINCT - + NULLIF ( + - CAST ( NULL AS INTEGER ), - + 66 / + 29 ) ) + - 87 * + - 78 / - MIN ( - 74 ) AS col0 +---- +-63 +NULL query I rowsort SELECT + 89 - - + 7 @@ -23397,8 +23680,12 @@ SELECT COUNT ( + - 1 ) - - SUM ( + 45 ) # Datafusion - Expected - 77 # Datafusion - Expected - 62 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col0" at position 1 and "Int64\(5\) \+ Int64\(40\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 77, + 62 AS col0, + 5 + 40 AS col0 +---- +45 +62 +77 query I rowsort label-4452 SELECT CASE - 85 WHEN 76 * CAST ( NULL AS INTEGER ) THEN NULL WHEN + 43 * 63 * + CASE + - 69 WHEN + 70 + 44 * - NULLIF ( - 87, + 48 * 3 ) + + 5 THEN NULL WHEN 25 * + 39 THEN NULL ELSE + COUNT ( * ) END THEN 72 END @@ -23512,8 +23799,11 @@ SELECT 19 - + 74 + 68 * + - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2150 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* Int64\(\-25\) AS col1" at position 0 and "Int64\(\-18\) \+ Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 86 * - 25 AS col1, - 18 + + 95 AS col1 +---- +-2150 +77 query I rowsort SELECT 18 + 87 @@ -23810,8 +24100,11 @@ SELECT 4 * + - 52 + + 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - -114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "Int64\(\-6\) \* Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + 65 ) AS col0, - 6 * 19 AS col0 +---- +-114 +65 query I rowsort SELECT + 17 - 63 AS col1 @@ -24160,8 +24453,11 @@ SELECT - ( 30 ) / - 44 * + + COUNT ( * ) * + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(91\) \+ \(\- \(\- CAST\(NULL AS Float64\)\)\) \+ \(\- Int64\(\-55\)\) AS col1" at position 0 and "Int64\(0\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CASE sum\(DISTINCT Int64\(18\)\) WHEN Int64\(11\) THEN Int64\(\-79\) ELSE NULL END\) \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort 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 +---- +NULL +NULL query I rowsort label-4596 SELECT - MIN ( - + 6 ) - + ( - 58 ) AS col2 @@ -24207,8 +24503,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -8536 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \* Int64\(88\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 97 * 88 AS col0, 26 AS col0 +---- +-8536 +26 query I rowsort label-4605 SELECT - - 49 * + 85 * + + 94 + - 2 * - COUNT ( * ) + 91 + - 52 + + 64 * - ( 52 ) * - CASE 88 WHEN - 64 * - 59 * + 33 + + 56 + - - 65 THEN NULL WHEN - AVG ( DISTINCT - 3 ) * - + 71 + COALESCE ( + NULLIF ( + 20, 74 + 87 ), 13 ) * 7 THEN 70 ELSE NULL END * COUNT ( * ) AS col1 @@ -24258,8 +24557,11 @@ NULL # 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 "Int64\(97\) AS col1" at position 0 and "\(\- Int64\(80\)\) \+ Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 97 AS col1, - ( 80 ) + + 15 AS col1 +---- +-65 +97 query I rowsort label-4615 SELECT + - COUNT ( * ) + 54 + + + CAST ( NULL AS INTEGER ) @@ -24572,8 +24874,11 @@ SELECT ALL + + CAST ( + 6 AS INTEGER ) + + - 24 # 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 "nullif\(Int64\(\-12\), Int64\(92\)\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( - 12, + 92 ) AS col1, 0 AS col1 +---- +-12 +0 query I rowsort label-4675 SELECT DISTINCT + COUNT ( * ) + - + 39 @@ -25150,8 +25455,11 @@ SELECT + SUM ( ALL - - COALESCE ( - 49, + 79 + - 50 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 5600 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "Int64\(70\) \* Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 col2, 70 * 80 AS col2 +---- +32 +5600 query I rowsort SELECT DISTINCT + 57 + + 14 AS col0 @@ -26204,8 +26512,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -106 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(37\)\)\) \- 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 II valuesort SELECT - + SUM ( DISTINCT + 37 ) - 69 AS col2, 90 AS col2 +---- +-106 +90 query II rowsort label-4987 SELECT - 11 AS col1, COUNT ( * ) + - 86 AS col2 @@ -27246,8 +27557,11 @@ SELECT COUNT ( * ) col0, 40 + ( - MAX ( ALL - 18 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col0" at position 0 and "CAST\(Int64\(64\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 9 AS col0, + CAST ( + 64 AS INTEGER ) AS col0 +---- +64 +9 query I rowsort SELECT + 64 - + 81 @@ -27335,8 +27649,11 @@ SELECT ALL NULLIF ( - 26, - 10 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 51382 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(66\)\) \* Int64\(10\) \* min\(\(\- coalesce\(Int64\(78\), \(\- Int64\(98\)\), CAST\(\(\- Int64\(33\)\) AS Int32\)\)\)\) \- Int64\(98\) AS col0" at position 0 and "Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 66 * + 10 * MIN ( - COALESCE ( + 78, - + 98, + CAST ( - + 33 AS INTEGER ) ) ) - ( 98 ) AS col0, - 42 AS col0 +---- +-42 +51382 query II rowsort label-5203 SELECT + 26, - ( - 4 ) * COUNT ( * ) + 60 + + + COUNT ( * ) * - 89 + - 42 AS col0 @@ -27936,8 +28253,11 @@ 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\(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\. +query II valuesort SELECT - + NULLIF ( - 57, + 5 + - COUNT ( * ) ) + + 49 AS col2, 84 AS col2 +---- +106 +84 query I rowsort label-5316 SELECT + + 4 - - + COUNT ( * ) + 61 * + + 82 AS col0 @@ -28251,8 +28571,12 @@ 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\(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\. +query III valuesort SELECT DISTINCT - 36 AS col2, 57 / - + 75 * - COUNT ( * ), COUNT ( * ) * - + 43 + + - 10 + + - ( + 56 ) * - 7 * 34 * - 20 * + 34 + - - 56 AS col2 +---- +-36 +-9063037 +0 query I rowsort label-5376 SELECT MIN ( ALL + CAST ( + - 93 AS INTEGER ) ) - - + 92 * COALESCE ( - 72, - 26 + 76 + + 74 - + COUNT ( * ) ) @@ -28689,8 +29013,11 @@ SELECT SUM ( + 99 ) + + ( - 72 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT \(\- Int64\(\-76\)\)\) \+ Int64\(51\) \+ Int64\(\-70\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* CASE Int64\(\-29\) WHEN \(\- Int64\(\-16\)\) THEN Int64\(92\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( DISTINCT - - 76 ) + + 51 + + - 70 AS col1, - CAST ( NULL AS INTEGER ) * + CASE + - 29 WHEN - - 16 THEN + 92 END AS col1 +---- +-18 +NULL query I rowsort label-5460 SELECT 29 + + 76 - + 14 * + + 24 * COUNT ( * ) AS col0 @@ -29998,8 +30325,11 @@ SELECT + 68 * ( 75 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "\(\- avg\(CAST\(NULL AS Int32\)\)\) \* Int64\(68\) \+ Int64\(\-15\) \* Int64\(8\) \* \(\- count\(Int64\(\-64\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT + 90 AS col2, - AVG ( CAST ( NULL AS INTEGER ) ) * + 68 + - 15 * 8 * - COUNT ( ALL - 64 ) AS col2 +---- +90 +NULL query I rowsort label-5716 SELECT DISTINCT 97 / - 47 AS col1 @@ -30879,8 +31209,11 @@ SELECT 2 * + - 23 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 432 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \* \(\- Int64\(18\)\) AS col0" at position 0 and "Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 24 * - + 18 AS col0, 11 AS col0 +---- +11 +432 query II rowsort label-5884 SELECT 63 AS col2, CASE - ( + - 76 ) WHEN MAX ( DISTINCT - 61 ) * + + ( 66 ) - - - 84 / - + 43 THEN - 40 - - 52 END @@ -31106,8 +31439,11 @@ SELECT - + COUNT ( * ) * + 26 * + 74 + + - 53 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1746 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \* \(\- Int64\(97\)\) AS col2" at position 0 and "Int64\(\-8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 18 * - + 97 AS col2, - 8 col2 +---- +-8 +1746 query I rowsort SELECT ALL 91 + + + 47 AS col1 @@ -31766,8 +32102,11 @@ SELECT DISTINCT + - 38 * + 19 - + COALESCE ( - 41, - ( 12 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col2" at position 0 and "Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 79 col2, 43 AS col2 +---- +43 +79 query II rowsort SELECT ALL - + 13 * - 69 AS col0, + 15 AS col2 @@ -31874,8 +32213,11 @@ SELECT - COALESCE ( - 71, - CASE + CASE ( + - 18 ) WHEN CASE - 38 WHEN - COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \* \(\- CAST\(NULL AS Float64\)\) \* coalesce\(Int64\(\-38\), \(\- Int64\(\-64\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(DISTINCT Int64\(86\)\) / \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(\-2\) AS col1" at position 0 and "Int64\(8\) \+ Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort 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 +---- +39 +NULL query I rowsort label-6073 SELECT 25 + - 72 * + MAX ( DISTINCT + 24 ) AS col2 @@ -31885,8 +32227,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COALESCE ( - 52, + - COUNT ( * ) + - 58 ) * + - MIN ( DISTINCT - 99 ) + + 91 AS col0, + 31 + - 14 AS col0 +---- +17 +5239 query I rowsort SELECT - NULLIF ( + 33, - + 56 + - - 13 ) * - 79 @@ -31901,8 +32246,11 @@ 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\(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\. +query II valuesort SELECT ALL - ( + COUNT ( * ) ) AS col0, 68 * - - 0 / MAX ( DISTINCT + 77 ) AS col0 +---- +-1 +0 query I rowsort label-6078 SELECT 27 / - 50 @@ -31927,8 +32275,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 131 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-73\)\) \+ Int64\(58\) AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 73 + 58 AS col2, + 15 col2 +---- +131 +15 query I rowsort label-6083 SELECT + NULLIF ( - 72, - COUNT ( * ) + 74 ) - + CASE - 98 WHEN CAST ( - 74 AS INTEGER ) + 31 * + 35 * + 48 THEN + 48 * - - 56 WHEN - 35 * + CAST ( NULL AS INTEGER ) + 44 THEN NULL END / - + 43 + - 81 AS col1 @@ -32633,8 +32984,11 @@ SELECT 97 / 18 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-62\)\)\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + SUM ( ALL - 62 ) AS col0, + 56 AS col0 +---- +56 +62 query II rowsort SELECT + 96, ( + + 83 ) AS col1 @@ -32692,8 +33046,11 @@ 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\(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\. +query II valuesort SELECT ALL - 58 * + COALESCE ( - 55, + COUNT ( * ) / + - 45 ) AS col0, 76 * 60 AS col0 +---- +3190 +4560 query II rowsort SELECT 36 * - 51, 93 * 79 * + 7 AS col0 @@ -32925,8 +33282,11 @@ SELECT ALL + 27 * 64 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 57 col0, 64 AS col0 +---- +57 +64 query II rowsort label-6273 SELECT ALL - 0 + - SUM ( - 48 ) AS col1, - 64 AS col2 @@ -32947,8 +33307,11 @@ SELECT - COUNT ( * ) - - 59 + + - 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col1" at position 0 and "count\(Int64\(17\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 AS col1, COUNT ( ALL 17 ) AS col1 +---- +1 +46 query I rowsort SELECT ALL NULLIF ( 20, 48 ) @@ -33388,8 +33751,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, SUM ( ( - ( + 53 ) ) ) * 94 AS col0 +---- +-1 +-4982 query I rowsort SELECT 55 - 7 @@ -33846,8 +34212,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + + + ( + COUNT ( * ) ) * + 3 + + + 84 * - + 46 AS col0, 31 AS col0 +---- +-3860 +31 query I rowsort label-6451 SELECT CAST ( - - 35 AS INTEGER ) * 85 + - 34 AS col1 @@ -34157,8 +34526,11 @@ SELECT - 24 - - - 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -2464 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "Int64\(32\) \* coalesce\(Int64\(\-77\), count\(coalesce\(Int64\(49\), Int64\(65\) \* Int64\(\-3\), Int64\(77\) \+ Int64\(\-72\)\)\), Int64\(\-23\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 22 AS col1, 32 * + COALESCE ( - 77, COUNT ( + COALESCE ( 49, + ( + 65 ) * + - 3, 77 + - 72 ) ), - 23 ) AS col1 +---- +-2464 +22 query I rowsort SELECT + 39 * - 54 - + 99 @@ -34351,8 +34723,11 @@ 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\(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\. +query II valuesort 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 +---- +-45 +NULL query I rowsort label-6549 SELECT - 69 + 67 + 2 - + 36 + - + 83 / - + 76 - - CAST ( - 26 AS INTEGER ) AS col1 @@ -34500,8 +34875,11 @@ SELECT COALESCE ( + 2, + + 60 ) * - + 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 139 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \- Int64\(\-91\) AS col2" at position 0 and "Int64\(29\) \* CASE Int64\(25\) WHEN count\(Int64\(67\)\) \* Int64\(88\) \* Int64\(\-67\) \* Int64\(65\) THEN Int64\(25\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 48 - + - 91 AS col2, 29 * + CASE + 25 WHEN COUNT ( ALL 67 ) * + 88 * - 67 * 65 THEN + ( 25 ) ELSE NULL END AS col2 +---- +139 +NULL query I rowsort label-6576 SELECT ALL COALESCE ( + + 1, + 80 * - + 4 ) * 49 + - 44 - + + COALESCE ( - 7, - - 67, CAST ( + + 9 AS INTEGER ) ) @@ -34532,8 +34910,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 / + - 6 AS col0, - COUNT ( * ) AS col0 +---- +-1 +-7 query I rowsort label-6582 SELECT ALL + - MAX ( + 89 ) * CAST ( + - 16 AS INTEGER ) @@ -34568,8 +34949,11 @@ 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 "nullif\(Int64\(12\), \(\- CASE WHEN Int64\(79\) IS NULL THEN min\(DISTINCT Int64\(32\)\) ELSE \(\- Int64\(44\)\) \* Int64\(4\) END\)\) \+ Int64\(\-3\) AS col2" at position 0 and "count\(DISTINCT \(\- Int64\(\-52\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + NULLIF ( + 12, - + CASE WHEN 79 IS NULL THEN + MIN ( DISTINCT 32 ) ELSE - + 44 * + 4 END ) + - 3 col2, COUNT ( DISTINCT - - 52 ) AS col2 +---- +1 +9 query I rowsort SELECT + 92 * - ( - 80 ) + + ( + 96 ) AS col1 @@ -35096,8 +35480,11 @@ SELECT - 24 + + + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2355696 # Datafusion - Expected - 523 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- sum\(Int64\(\-38\)\)\)\)\) \* Int64\(\-63\) \* Int64\(24\) \* CAST\(Int64\(41\) AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(8\) \* \(\- min\(Int64\(\-61\)\)\) \+ Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - ( - SUM ( + - 38 ) ) * - 63 * 24 * CAST ( 41 AS INTEGER ) * COUNT ( * ) AS col0, 8 * ( - MIN ( - 61 ) ) + 35 AS col0 +---- +-2355696 +523 query II rowsort label-6689 SELECT - CAST ( NULL AS INTEGER ) + + MAX ( 85 ) + - NULLIF ( 1, + 24 ) * + - 52 / + + 69 * + MIN ( ALL 18 ) AS col2, 2 + + - 83 col1 @@ -35258,8 +35645,11 @@ SELECT ALL + 37 + - 44 + + COALESCE ( 14, 43 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 7 AS col2, 28 AS col2 +---- +28 +7 query I rowsort label-6719 SELECT ALL - + 41 + 8 / + + 36 AS col1 @@ -35561,8 +35951,12 @@ 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\(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\. +query IRI valuesort 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 +---- +-216 +-76 +NULL query I rowsort label-6777 SELECT - - COUNT ( * ) + + ( + 33 ) @@ -35960,8 +36354,11 @@ SELECT 33 * - 53 AS 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 col1" at position 0 and "Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 86 col1, 61 AS col1 +---- +-86 +61 query II rowsort SELECT - 89 AS col2, 34 @@ -36142,8 +36539,11 @@ 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\(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\. +query II valuesort SELECT - NULLIF ( 28, + COUNT ( * ) ) + ( + NULLIF ( 65, 8 ) ) col2, MIN ( DISTINCT + - 79 ) AS col2 +---- +-79 +37 query I rowsort label-6884 SELECT - 77 + + 0 / - + 57 @@ -37199,8 +37599,11 @@ SELECT ALL 67 + ( - 60 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 91956 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) \* Int64\(\-14\) \* Int64\(98\) \* Int64\(1\) \+ Int64\(32\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 67 * + - 14 * 98 * 1 + ( 32 ) AS col0, + 22 AS col0 +---- +22 +91956 query I rowsort label-7085 SELECT ALL - COALESCE ( + 98, - ( COUNT ( * ) ) + + + COUNT ( * ) ) AS col0 @@ -37239,8 +37642,11 @@ SELECT - 62 + 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2303 # Datafusion - Expected - -202 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(\-47\) AS col1" at position 0 and "Int64\(\-82\) \+ Int64\(61\) \+ Int64\(\-62\) \+ Int64\(\-4\) \- Int64\(74\) \+ Int64\(\-41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 49 * - 47 AS col1, - 82 + + 61 + - 62 + - 4 - 74 + + - 41 AS col1 +---- +-202 +-2303 query I rowsort SELECT - 67 + + 13 + - 50 AS col0 @@ -39342,8 +39748,11 @@ 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\)\) 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\. +query II valuesort SELECT ALL + + 64 col1, - NULLIF ( COUNT ( * ), 1 ) * - 22 + + 47 / + + 33 + - MIN ( + 13 ) AS col1 +---- +64 +NULL query I rowsort SELECT ALL + - 97 * + 92 @@ -39566,8 +39975,11 @@ SELECT + - MAX ( + 92 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "Int64\(\-82\) \+ Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 47 AS col0, - 82 + + 73 AS col0 +---- +-9 +47 query I rowsort SELECT - - 25 * 45 @@ -39617,8 +40029,12 @@ SELECT - 14 * 43 * 11 - COUNT ( * ) + + 15 / - 5 * COUNT ( * ) AS col0, - 77 AS # Datafusion - Expected - -80 # Datafusion - Expected - 62 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 1 and "Int64\(40\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 40 * - 2, 62 col1, + 40 AS col1 +---- +-80 +40 +62 query I rowsort label-7550 SELECT 43 - COUNT ( * ) + + + 85 @@ -39792,8 +40208,11 @@ SELECT ALL - 81 + ( COUNT ( * ) ) / + 60 * - MAX ( ALL 60 ) / COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 AS col2, 13 AS col2 +---- +13 +27 query I rowsort label-7583 SELECT ALL MAX ( 8 ) AS col2 @@ -40323,8 +40742,11 @@ SELECT DISTINCT - SUM ( + 38 ) * 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 49 AS col1, 47 AS col1 +---- +-49 +47 query I rowsort SELECT DISTINCT 19 * - 59 * - 2 + - + 26 @@ -40576,8 +40998,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 10 AS col2, SUM ( ALL 60 ) * - COUNT ( * ) AS col2 +---- +-60 +10 query I rowsort SELECT DISTINCT - 33 * - 87 * - 95 @@ -40613,8 +41038,11 @@ 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\(1\)\) AS count\(\*\) / \(\- Int64\(17\)\) \+ Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 22 AS col0, COUNT ( * ) / - + 17 + 30 AS col0 +---- +-22 +30 query II rowsort label-7738 SELECT - - MIN ( ALL - 26 ) + + 26 * - 22 AS col2, + 60 + - + MAX ( 56 ) AS col0 @@ -40665,8 +41093,11 @@ SELECT - - ( - 73 ) - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col1" at position 0 and "Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 30 AS col1, - 61 col1 +---- +-30 +-61 query I rowsort SELECT - ( + - 94 ) @@ -41686,8 +42117,11 @@ SELECT ALL - ( + 4 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -567 # Datafusion - Expected - 1890 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-81\) \* \(\- \(\- CAST\(Int64\(7\) AS Int32\)\)\) AS col0" at position 0 and "nullif\(Int64\(42\), \(\- Int64\(12\)\)\) \* Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) * - 81 * - - CAST ( 7 AS INTEGER ) AS col0, NULLIF ( + 42, - ( 12 ) ) * 45 AS col0 +---- +-567 +1890 query I rowsort SELECT DISTINCT + 5 * - 53 * 46 @@ -42202,8 +42636,11 @@ SELECT ALL + ( + NULLIF ( - + 17, - 66 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-7\)\) \+ \(\- Int64\(\-95\)\) \+ Int64\(\-99\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + - 7 ) + - ( - 95 ) + - 99 AS col2, COUNT ( * ) AS col2 +---- +1 +3 query I rowsort SELECT 14 + - + 68 AS col0 @@ -42219,8 +42656,12 @@ SELECT ALL - 49 + 25 * - 43 + - 76 # Datafusion - Expected - -169 # Datafusion - Expected - 47 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(73\)\) \+ Int64\(\-96\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - ( 73 ) + - 96 AS col2, 47, 30 AS col2 +---- +-169 +30 +47 query I rowsort label-8045 SELECT ALL - 62 + + 18 - - - 7 + + 71 + 53 + NULLIF ( 0, SUM ( DISTINCT 98 ) + - COUNT ( * ) * - ( + 14 ) * + - 49 + + + 92 + - ( + COUNT ( * ) ) ) * 82 - 6 + ( 41 ) + + 72 + - 73 * + 8 * + CAST ( NULL AS INTEGER ) * + 45 * + 10 @@ -42363,8 +42804,11 @@ SELECT ALL COUNT ( * ) * - 52 * 49 # 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 col0" at position 0 and "Int64\(48\) / Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 63 AS col0, 48 / ( 73 ) col0 +---- +0 +63 query I rowsort SELECT - 21 + - 65 AS col1 @@ -43007,8 +43451,11 @@ SELECT + 93 - COUNT ( * ) + - - 95 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 21752643 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col0" at position 0 and "Int64\(3\) \+ Int64\(83\) \* Int64\(48\) \* Int64\(\-65\) \* Int64\(\-84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 49 AS col0, + 3 + 83 * + 48 * + - 65 * + - 84 col0 +---- +21752643 +49 query I rowsort label-8195 SELECT ALL + COUNT ( * ) * 24 @@ -43105,8 +43552,11 @@ SELECT ALL - 65 * 26, 59 / - SUM ( DISTINCT + ( 64 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(53\) \+ Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) / COUNT ( * ) AS col0, + 53 + + + 8 col0 +---- +-1 +61 query I rowsort label-8212 SELECT + MAX ( + - ( 43 ) ) + + - CAST ( + 44 AS INTEGER ) + - + 67 * 99 * + 72 @@ -43146,8 +43596,11 @@ SELECT + 61 + + 62 * + - 86 AS col2, - 84 # 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 "Int64\(6\) / Int64\(\-42\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 6 / - 42 AS col1, 29 col1 +---- +0 +29 query I rowsort label-8219 SELECT DISTINCT + 78 / - CAST ( - - 70 AS INTEGER ) + - 77 @@ -43172,8 +43625,11 @@ 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\(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\. +query II valuesort SELECT + MIN ( 65 ) * 73 + - 29 + + 81 * + + COUNT ( * ) + COUNT ( + - 7 ) AS col0, - 2 AS col0 +---- +-2 +4798 query I rowsort label-8224 SELECT - CASE - 5 WHEN + COUNT ( * ) + - 72 THEN + + 26 - - 19 ELSE NULL END AS col1 @@ -44392,8 +44848,11 @@ SELECT DISTINCT + 74 * ( + + 37 ) * + 7 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col2" at position 0 and "coalesce\(coalesce\(Int64\(46\), Int64\(\-78\)\), Int64\(27\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 48 AS col2, COALESCE ( + COALESCE ( 46, - 78 ), + + 27 ) AS col2 +---- +46 +48 query I rowsort SELECT - 42 * + 37 @@ -44433,8 +44892,11 @@ SELECT ALL - 30 * 19 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4871 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) \* Int64\(63\) \+ Int64\(\-60\) \+ Int64\(\-26\) \* Int64\(13\) AS col2" at position 0 and "Int64\(\-99\) \- Int64\(44\) / Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 71 * 63 + + ( + - 60 ) + - 26 * + 13 col2, - 99 - 44 / + 89 AS col2 +---- +-4871 +-99 query II rowsort SELECT + 76 AS col1, + 85 AS col2 @@ -44578,8 +45040,11 @@ SELECT + 6 + - 79 * - 40 * + + 3, 32 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* Int64\(60\) \* \(\- sum\(CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 65 * + 60 * - SUM ( + CAST ( NULL AS INTEGER ) ) AS col1, + COUNT ( * ) * + 34 AS col1 +---- +34 +NULL query I rowsort SELECT + 82 + 6 AS col1 @@ -44589,8 +45054,11 @@ SELECT + 82 + 6 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -124 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-72\) \+ Int64\(\-52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) col2, - 72 + - 52 AS col2 +---- +-124 +1 query I rowsort label-8489 SELECT + CAST ( ( SUM ( - 69 ) ) AS INTEGER ) AS col2 @@ -44605,8 +45073,11 @@ SELECT DISTINCT - COUNT ( * ) / + 47 + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -2313 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col1" at position 0 and "Int64\(\-57\) \- Int64\(94\) \* Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 86 AS col1, - 57 - + + 94 * + 24 AS col1 +---- +-2313 +86 query II rowsort SELECT ALL + 25, ( 58 ) + + 73 AS col0 @@ -44892,8 +45363,11 @@ SELECT ALL - 14 + - + COUNT ( * ) + + 29 + - - 16 * - 86 * - - 45 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\(39\) / Int64\(49\) \+ Int64\(10\) AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 39 / 49 + 10 AS col2, 1 AS col2 +---- +1 +10 query I rowsort label-8546 SELECT ALL 44 + 73 * - 19 * - COUNT ( * ) @@ -44945,8 +45419,11 @@ SELECT - 98, 87 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -4775 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "Int64\(16\) \+ \(\- Int64\(\-97\)\) \+ Int64\(94\) \* \(\- Int64\(52\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 99 AS col0, 16 + - - 97 + + 94 * - + 52 AS col0 +---- +-4775 +99 query I rowsort label-8556 SELECT ALL + COUNT ( DISTINCT - 62 ) - + 29 col2 @@ -45050,8 +45527,11 @@ SELECT + 26, - 4 + 54 + + 84 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4415 # Datafusion - Expected - -203 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(69\)\) \* Int64\(64\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(1\) \+ Int64\(\-92\) \+ \(\- Int64\(18\)\) \- \(\- Int64\(\-94\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 69 * + + 64 + COUNT ( * ) AS col1, + 1 + - 92 + - + 18 - - - 94 AS col1 +---- +-203 +-4415 query I rowsort label-8576 SELECT + SUM ( DISTINCT - 45 ) AS col1 @@ -45127,8 +45607,11 @@ 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\(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\. +query II valuesort SELECT - COALESCE ( + - 14, 57 + COUNT ( * ), + ( + 48 ) ) * + - SUM ( - ( 8 ) ) AS col0, ( - 77 ) / - - 98 col0 +---- +0 +112 query II rowsort label-8591 SELECT DISTINCT 93 * 17, - 62 / COUNT ( * ) AS col2 @@ -45402,8 +45885,11 @@ SELECT 40 * - 59 - COUNT ( * ) + 35 * + 54 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 4798 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "Int64\(\-29\) \* Int64\(\-15\) \- Int64\(63\) \+ nullif\(Int64\(58\), CAST\(coalesce\(\(\- coalesce\(Int64\(35\), Int64\(\-15\) \* Int64\(80\), Int64\(\-22\)\)\), Int64\(16\), coalesce\(\(\- Int64\(\-34\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CASE Int64\(83\) WHEN Int64\(0\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(75\) \+ \(\- \(\- coalesce\(Int64\(46\), Int64\(61\), CAST\(Int64\(\-16\) AS Int32\)\)\)\) \+ Int64\(47\) \* \(\- Int64\(\-99\)\) THEN \(\- CAST\(NULL AS Int32\)\) END\), Int64\(51\) \* Int64\(\-55\) \+ CASE Int64\(\-14\) WHEN count\(DISTINCT Int64\(16\)\) THEN Int64\(40\) END \+ Int64\(\-50\) \+ Int64\(\-36\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS Int32\) \* Int64\(73\)\) \* Int64\(76\) \+ Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +4798 +61 query II rowsort label-8644 SELECT ALL - 18 AS col2, COUNT ( * ) col0 @@ -45467,8 +45953,11 @@ SELECT 5 / - 66 * + 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - 114 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(82\)\)\) \+ Int64\(32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - + 82 ) + 32 * + COUNT ( * ) col1, 17 AS col1 +---- +114 +17 query I rowsort label-8656 SELECT ALL MAX ( CAST ( NULL AS INTEGER ) ) + - 0 @@ -45608,8 +46097,11 @@ SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) + + - 56 + + 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "CASE Int64\(95\) WHEN Int64\(53\) / avg\(DISTINCT Int64\(57\)\) THEN Int64\(\-24\) WHEN Int64\(56\) \* \(\- coalesce\(Int64\(16\), count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\), Int64\(66\) \* CAST\(NULL AS Int32\) / Int64\(\-42\) \+ Int64\(\-50\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(6\) \+ Int64\(0\) / Int64\(25\) WHEN CAST\(NULL AS Int32\) THEN NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +64 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -46772,8 +47264,11 @@ SELECT - MAX ( - + 29 ) * ( 79 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - -5580 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col0" at position 0 and "Int64\(62\) \* sum\(Int64\(\-90\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 84 AS col0, 62 * + SUM ( ALL - 90 ) AS col0 +---- +-5580 +-84 query I rowsort SELECT 63 * 77 * 9 * 60 + + 93 col2 diff --git a/data/sqlite/random/expr/slt_good_12.slt b/data/sqlite/random/expr/slt_good_12.slt index 11fb2f8..1d46300 100644 --- a/data/sqlite/random/expr/slt_good_12.slt +++ b/data/sqlite/random/expr/slt_good_12.slt @@ -219,8 +219,11 @@ SELECT ALL - 79 + - + 87 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3789 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* \(\- Int64\(52\)\) \+ Int64\(\-45\) AS col2" at position 0 and "CASE sum\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) WHEN CAST\(NULL AS Float64\) \+ Int64\(38\) THEN \(\- Int64\(\-42\)\) \+ Int64\(\-28\) WHEN Int64\(\-62\) \* Int64\(41\) \- \(\- Int64\(24\)\) THEN CAST\(\(\- Int64\(\-36\)\) AS Int32\) WHEN Int64\(\-64\) \* Int64\(56\) \+ \(\- max\(Int64\(65\)\)\) THEN \(\- sum\(Int64\(80\)\)\) / Int64\(24\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-71\) \+ CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN coalesce\(Int64\(62\), min\(Int64\(13\)\) \* Int64\(98\)\) \* Int64\(31\) \* Int64\(22\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(75\) \- Int64\(\-17\) THEN Int64\(86\) \* \(\- Int64\(\-35\)\) \+ Int64\(38\) WHEN Int64\(20\) \* Int64\(47\) THEN \(\- Int64\(51\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL END THEN NULL WHEN CASE Int64\(62\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(23\) \* Int64\(55\) \- Int64\(66\) WHEN Int64\(88\) THEN Int64\(82\) \* \(\- \(\- CASE Int64\(\-16\) WHEN Int64\(47\) THEN Int64\(\-18\) END\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-15\) END / Int64\(24\) \+ Int64\(\-23\) THEN Int64\(96\) END \* \(\- \(\- count\(DISTINCT Int64\(24\)\)\) \* Int64\(\-3\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(86\)\) ELSE Int64\(\-54\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-3789 +-54 query II rowsort label-36 SELECT + MAX ( DISTINCT - + 82 ) - - 80 - + CAST ( NULL AS INTEGER ), + 78 * - - 86 AS col1 @@ -842,8 +845,11 @@ SELECT + CAST ( 0 AS INTEGER ) * + COALESCE ( + 91, + 81 - 89, + 50 ) * 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* Int64\(\-66\) / Int64\(71\) / Int64\(62\) \* Int64\(30\) \+ min\(Int64\(30\)\) \- \(\- \(\- nullif\(Int64\(\-66\), \(\- max\(Int64\(\-90\)\)\) / Int64\(97\) \* min\(Int64\(89\)\) \* CAST\(\(\- Int64\(\-47\)\) AS Int32\) \+ Int64\(41\)\)\)\) \+ Int64\(\-98\) \* count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-48\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-49 +14 query II rowsort label-152 SELECT + + 74 / - CAST ( + ( + + MIN ( + 96 ) ) AS INTEGER ), 46 AS col0 @@ -950,8 +956,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(53\) AS Int32\)\) \+ Int64\(\-23\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( 53 AS INTEGER ) + - 23 AS col1, 36 AS col1 +---- +-76 +36 query I rowsort label-172 SELECT - COUNT ( + 94 ) + - + COUNT ( * ) + + 26 @@ -1384,8 +1393,11 @@ SELECT ALL MAX ( ALL - 68 ) * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 5 AS col2, 28 AS col2 +---- +-5 +28 query I rowsort label-258 SELECT 40 + COALESCE ( + 2, COUNT ( * ) / + 71 ) * + 47 col2 @@ -1816,8 +1828,11 @@ SELECT DISTINCT + 83 + ( - 60 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3324 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* Int64\(68\) \+ Int64\(60\) AS col0" at position 0 and "Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 48 * 68 + + + 60 col0, - 66 AS col0 +---- +-66 +3324 query I rowsort label-341 SELECT DISTINCT + ( + + 64 ) + + - 15 - + 6 * + + 61 + MAX ( 35 ) * + 27 @@ -2032,14 +2047,20 @@ SELECT + COUNT ( ALL - CASE 89 WHEN 21 THEN NULL ELSE - - 63 / - 43 END ) + + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 95 AS col2, + 36 col2 +---- +36 +95 # 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) * - MIN ( ALL - 80 ) AS col0, 44 col0 +---- +44 +80 query II rowsort label-382 SELECT COUNT ( * ) + + 67 AS col2, 87 + 16 col1 @@ -2118,8 +2139,11 @@ SELECT 61 / + 44 - + + 11 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1150 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \* \(\- Int64\(\-46\)\) AS col1" at position 0 and "Int64\(6\) \+ Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 25 * - - 46 AS col1, 6 + 3 AS col1 +---- +-1150 +9 query I rowsort label-397 SELECT ALL NULLIF ( - COUNT ( * ), + - ( 86 ) * 1 + - + 61 + + - CASE - 31 WHEN - CAST ( NULL AS INTEGER ) THEN - 27 WHEN 52 THEN - MIN ( 22 ) ELSE NULL END ) * 5 + 83 @@ -2637,8 +2661,11 @@ SELECT ALL SUM ( ALL - ( - ( - 38 ) ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 1650 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-54\)\) AS col0" at position 0 and "Int64\(\-66\) \* \(\- min\(Int64\(25\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 54 AS col0, - 66 * - MIN ( + 25 ) AS col0 +---- +1650 +54 query I rowsort label-496 SELECT 85 * - + CAST ( - 14 AS INTEGER ) + - CASE + - 30 WHEN - 68 THEN + COUNT ( * ) * - 72 ELSE NULL END * COALESCE ( 41, + 35, - COALESCE ( + 92, 83 ) ) @@ -2938,8 +2965,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 130 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ Int64\(97\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 33 + 97 AS col2, 20 AS col2 +---- +130 +20 query I rowsort SELECT + 3 * + COALESCE ( + 81, + - 59, + 60 + 30 + 0 * - ( + 1 ) ) @@ -2965,8 +2995,11 @@ SELECT DISTINCT 32 * + + 89 * COUNT ( * ) * 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - -1899 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(28\)\) AS col2" at position 0 and "Int64\(\-79\) \- nullif\(CAST\(Int64\(52\) AS Int32\), Int64\(8\)\) \* Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 28 ) AS col2, - 79 - + NULLIF ( CAST ( 52 AS INTEGER ), + 8 ) * + + 35 AS col2 +---- +-1899 +-28 query I rowsort label-556 SELECT ALL SUM ( - + 35 ) col2 @@ -2986,8 +3019,11 @@ SELECT DISTINCT + 85 * - 61 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(41\) AS Int32\)\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( 41 AS INTEGER ) AS col0, 72 col0 +---- +-41 +72 query I rowsort label-560 SELECT ALL + 46 / 37 col1 @@ -3153,8 +3189,11 @@ SELECT COUNT ( * ) / + - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - -475 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col1" at position 0 and "Int64\(\-25\) \* max\(DISTINCT Int64\(19\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 80 AS col1, - 25 * + MAX ( DISTINCT + 19 ) AS col1 +---- +-475 +-80 query I rowsort SELECT DISTINCT - CASE - ( 79 ) WHEN - 36 * 9 + - 63 THEN + 39 * + - 36 WHEN 31 THEN NULL END AS col2 @@ -3308,8 +3347,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -800 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* Int64\(\-80\) AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 10 * - 80 col2, 31 AS col2 +---- +-800 +31 query I rowsort SELECT ALL + 76 * - + 77 AS col2 @@ -3699,8 +3741,11 @@ SELECT + COUNT ( * ) * - 75 + + - 78 + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -1224 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-19\) \* \(\- Int64\(\-63\)\) \- CAST\(Int64\(27\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 21 - COUNT ( * ) AS col2, + COUNT ( * ) * - 19 * - - 63 - + CAST ( + + 27 AS INTEGER ) AS col2 +---- +-1224 +20 query II rowsort label-698 SELECT ALL - 86 AS col0, SUM ( - + NULLIF ( - 92, + + 6 + + 82 + - 37 + + ( + 2 ) + - 29 * ( - 16 ) ) ) * MIN ( ALL + 58 ) - 19 * 89 @@ -3751,8 +3796,11 @@ SELECT ALL - - 56 / + 11 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col1" at position 0 and "max\(DISTINCT Int64\(22\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 8 col1, MAX ( DISTINCT 22 ) AS col1 +---- +-8 +22 query II rowsort SELECT 13 * + 82 AS col2, + 86 * + 95 AS col0 @@ -3799,8 +3847,11 @@ SELECT 28 - 49 + + 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(11\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + 11 ) AS col0, COUNT ( * ) AS col0 +---- +-11 +1 query I rowsort label-717 SELECT ALL - CAST ( 77 AS INTEGER ) AS col1 @@ -4290,8 +4341,11 @@ 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\(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\. +query II valuesort SELECT 63 + - COALESCE ( + 97, - + 64 * 95 + + ( + + MAX ( ALL + 85 ) ), 19 + + COUNT ( * ) ) - - + COUNT ( * ) AS col2, - 7 - + - 58 / - + 41 AS col2 +---- +-33 +-8 query I rowsort SELECT ALL 26 * - - 29 AS col0 @@ -4598,8 +4652,11 @@ SELECT + 68 + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3381 # Datafusion - Expected - -385 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) \* Int64\(49\) AS col1" at position 0 and "Int64\(6\) \* Int64\(\-69\) \+ Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 69 * + 49 AS col1, 6 * - 69 + + 29 AS col1 +---- +-3381 +-385 query I rowsort label-869 SELECT + NULLIF ( + 51, 69 * + COUNT ( * ) + 22 + 91 * - 98 + + 96 ) AS col1 @@ -4746,8 +4803,11 @@ SELECT + 40 * + 26 + + + COUNT ( * ) AS col0, + 1 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 6 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 99 AS col2, 6 AS col2 +---- +6 +99 query I rowsort SELECT + 45 * + 69 col1 @@ -4828,8 +4888,11 @@ SELECT - - NULLIF ( - ( + + 78 ), + 49 ) / - 41 - - 5 * + 10 * + + CAST ( + ( + # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(4\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-73\) \+ \(\- \(\- CAST\(Int64\(84\) AS Int32\)\)\) \+ max\(Int64\(\-62\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 15 * + COUNT ( * ) * 4 AS col1, + COUNT ( * ) * + - 73 + - - CAST ( 84 AS INTEGER ) + + MAX ( - 62 ) AS col1 +---- +-51 +60 query I rowsort label-913 SELECT - 84 * + 25 + + - COUNT ( DISTINCT - 2 ) + 45 * - + 32 @@ -5127,8 +5190,11 @@ SELECT ALL - NULLIF ( - 81, + 40 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, - 32 AS col2 +---- +-32 +1 query I rowsort SELECT DISTINCT - 93 - + 18 @@ -5246,8 +5312,11 @@ SELECT DISTINCT 27 * + 0 + 59 AS col1 # 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\) AS col0" at position 0 and "\(\- min\(Int64\(82\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 98 AS col0, - MIN ( ALL 82 ) AS col0 +---- +-82 +98 query I rowsort label-993 SELECT ALL 90 * + 3 - - - COALESCE ( 51, CAST ( NULLIF ( - COUNT ( * ), + 62 + + - 0 + + 69 ) AS INTEGER ) * 61 + + 32 ) AS col2 @@ -5731,8 +5800,11 @@ SELECT 7 / + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \- Int64\(50\) AS col1" at position 0 and "nullif\(Int64\(12\), \(\- Int64\(\-22\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 - 50 AS col1, NULLIF ( 12, - - 22 ) col1 +---- +12 +31 query I rowsort label-1086 SELECT ALL MIN ( DISTINCT - - 31 ) AS col0 @@ -5867,8 +5939,12 @@ NULL # Datafusion - Expected - 88 # Datafusion - Expected - 65 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ sum\(Int64\(\-73\)\) / \(\- CAST\(Int64\(23\) AS Int32\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 85 + + SUM ( - 73 ) / - CAST ( 23 AS INTEGER ) AS col0, + 65, + COUNT ( * ) AS col0 +---- +1 +65 +88 query I rowsort SELECT ALL 44 + + + 43 AS col0 @@ -6074,8 +6150,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 15 AS col2, COUNT ( * ) AS col2 +---- +1 +15 query I rowsort label-1152 SELECT 23 + + 57 + + COUNT ( * ) col0 @@ -6085,8 +6164,11 @@ SELECT 23 + + 57 + + COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 AS col0, COUNT ( * ) AS col0 +---- +1 +78 query II rowsort SELECT ALL 69 col2, 81 + - - 88 AS col1 @@ -6279,8 +6361,11 @@ SELECT COUNT ( * ) * + + 10 col2 # 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\(\-8\) \- Int64\(82\) AS col1" at position 0 and "Int64\(\-52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 8 - + + 82 AS col1, - 52 AS col1 +---- +-52 +-90 query I rowsort SELECT ALL + + 94 * 59 @@ -6291,8 +6376,12 @@ SELECT ALL + + 94 * 59 # Datafusion - Expected - 0 # Datafusion - Expected - 19 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) / Int64\(52\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 48 / 52 AS col2, + 19 AS col2, 86 +---- +0 +19 +86 query I rowsort label-1192 SELECT 50 + COUNT ( DISTINCT 29 ) * - 33 AS col1 @@ -6354,8 +6443,11 @@ SELECT 66 * + - 36 - - 92 + + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, ( - 39 ) col0 +---- +-39 +1 query I rowsort label-1204 SELECT ALL + 75 / + 1 AS col2 @@ -7031,8 +7123,11 @@ SELECT 25 + - ( + + 57 ) + + 96 + CAST ( 81 AS INTEGER ) * + 70 + - - 42 + 3 AS # 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 col1" at position 0 and "CAST\(NULL AS Float64\) \* Int64\(8\) \* Int64\(64\) \- Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL - 96 AS col1, + CAST ( NULL AS FLOAT8 ) * 8 * ( + + 64 ) - + + 5 AS col1 +---- +-96 +NULL query I rowsort label-1332 SELECT DISTINCT + 91 / + - 25 AS col1 @@ -7291,8 +7386,11 @@ SELECT + 46 + - ( 66 ) * - 26 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(8\), Int64\(57\)\) AS col0" at position 0 and "Int64\(\-79\) \* Int64\(88\) / \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( 8, 57 ) AS col0, + ( - 79 ) * 88 / - CAST ( NULL AS INTEGER ) AS col0 +---- +8 +NULL query I rowsort SELECT + 51 + - 14 AS col2 @@ -7388,8 +7486,11 @@ SELECT - 49 + - 20 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - -6351 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col2" at position 0 and "Int64\(87\) \* \(\- Int64\(73\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 30 AS col2, 87 * - + 73 AS col2 +---- +-30 +-6351 query I rowsort label-1398 SELECT + 41 * - + NULLIF ( - - 15, - + 34 / - 72 + - SUM ( 13 ) - ( - 57 ) ) AS col0 @@ -7415,8 +7516,12 @@ SELECT - 8 * + 63 # Datafusion - Expected - 1440 # Datafusion - Expected - 73 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col2" at position 1 and "Int64\(\-84\) \* Int64\(64\) \* count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - CAST ( + - 32 AS INTEGER ) * + 45, 73 AS col2, - 84 * + 64 * COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col2 +---- +1440 +73 +NULL query I rowsort label-1403 SELECT ALL + - COUNT ( * ) * - 46 col1 @@ -7757,8 +7862,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT SUM ( + 6 ) AS col0, + NULLIF ( - ( ( - 86 ) ), COUNT ( * ) ) AS col0, + 37 +---- +37 +6 +86 query I rowsort SELECT DISTINCT - 49 * - 33 + 0 AS col1 @@ -8080,8 +8189,11 @@ SELECT + 52 * 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - -147 # Datafusion - Expected - 108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* \(\- CAST\(Int64\(3\) AS Int32\)\) AS col0" at position 0 and "Int64\(92\) \+ Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 49 * - CAST ( + + 3 AS INTEGER ) AS col0, 92 + 16 AS col0 +---- +-147 +108 query II rowsort label-1529 SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) AS col2, - 50 @@ -8155,8 +8267,11 @@ SELECT + 50 * COUNT ( * ) + - - 86 AS col2 # 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\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 AS col2, 36 AS col2 +---- +-55 +36 query I rowsort label-1543 SELECT 69 / - NULLIF ( + COUNT ( * ), 3 / 48 * + COALESCE ( + - 48, - 26, 29 * + - MIN ( - + 14 ) * 90 - - 38 + - - 67 ) * + CASE - 45 WHEN + 43 THEN + 75 * + + 29 * 92 WHEN + 80 THEN NULL END - + 24 + - 15 ) AS col0 @@ -8300,8 +8415,11 @@ SELECT 35 / COUNT ( 88 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-70\)\) AS col1" at position 0 and "Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( + - 70 ) col1, + 30 AS col1 +---- +-70 +30 query II rowsort label-1571 SELECT SUM ( ALL + 25 ) AS col2, 18 @@ -8713,8 +8831,11 @@ SELECT ALL 88 * + - MIN ( - 56 ) 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 "Int64\(\-77\) / Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 33 AS col2, - 77 / + 45 AS col2 +---- +-1 +33 query II rowsort SELECT ALL + 14 + + 93 AS col0, 93 - 56 * - + 68 @@ -9237,8 +9358,11 @@ SELECT COUNT ( * ) / - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1625 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ Int64\(61\) \* Int64\(26\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 + 61 * 26 AS col0, 49 col0 +---- +1625 +49 query I rowsort label-1748 SELECT 10 + + + CASE + - COALESCE ( - 36, + + COUNT ( * ) + + 60 * - 27 ) WHEN ( + 55 ) * 17 THEN - ( 34 ) + - 68 WHEN - 41 + - 84 THEN ( - 69 ) END @@ -9758,8 +9882,11 @@ SELECT ALL - NULLIF ( 46, - + 11 * 29 ) + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col1" at position 0 and "\(\- count\(Int64\(68\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 88 AS col1, - COUNT ( + 68 ) AS col1 +---- +-1 +-88 query I rowsort label-1850 SELECT ALL - COUNT ( * ) - - 65 AS col2 @@ -10280,8 +10407,11 @@ NULL # 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 "Int64\(3\) AS col1" at position 0 and "Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 3 AS col1, 98 col1 +---- +3 +98 query I rowsort SELECT DISTINCT 90 * + + 94 - - - ( - + 0 ) @@ -10301,8 +10431,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) * + + MAX ( - + ( 55 ) ) AS col0, + 69 AS col0 +---- +-55 +69 query II rowsort label-1954 SELECT + CAST ( NULL AS INTEGER ), - 5 AS col1 @@ -10712,8 +10845,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col1" at position 0 and "Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 49 AS col1, 30 AS col1 +---- +30 +49 query I rowsort SELECT ALL + COALESCE ( - + 99, - + ( - 3 ) + + 36 * + 12 * - 3 ) + 34 + 79 AS col1 @@ -10984,8 +11120,11 @@ SELECT + COUNT ( * ) * + 95 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 col0, 13 AS col0 +---- +13 +67 query I rowsort label-2082 SELECT + MIN ( - 84 ) + - 37 AS col2 @@ -11396,8 +11535,11 @@ SELECT - - 8 * + 17 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 156951 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(24\) \* Int64\(85\) \+ Int64\(\-45\) \* count\(Int64\(37\)\) \+ \(\- Int64\(84\)\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 * 24 * + 85 + - 45 * + ( + + COUNT ( + + 37 ) ) + - + 84 AS col0, 77 AS col0 +---- +156951 +77 query I rowsort label-2161 SELECT ALL - 43 * + 81 + - 24 + + + 48 * + 20 - - COALESCE ( COUNT ( * ), 44 * COUNT ( * ) ) / 85 AS col2 @@ -11898,8 +12040,11 @@ SELECT COALESCE ( - + 90, 87 * + COUNT ( * ) + 33 - + + COALESCE ( COUNT ( * ), # Datafusion - Datafusion expected results: # Datafusion - Expected - 3724 # Datafusion - Expected - -23220 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(49\) \* \(\- min\(Int64\(\-76\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CASE Int64\(67\) WHEN Int64\(\-90\) / Int64\(37\) THEN NULL ELSE Int64\(\-32\) \* \(\- Int64\(\-25\)\) \* Int64\(29\) \+ \(\- Int64\(20\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) * + 49 * - MIN ( - 76 ) * COUNT ( * ) AS col0, CASE 67 WHEN - 90 / + 37 THEN NULL ELSE + - 32 * - - 25 * + 29 + - + 20 END AS col0 +---- +-23220 +3724 query I rowsort SELECT 11 + - ( + 43 ) @@ -12067,8 +12212,11 @@ SELECT COUNT ( * ) col1, CASE - 65 WHEN + 68 THEN NULL ELSE - - ( 90 ) / - + COA # 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\(DISTINCT Int64\(50\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 33 AS col0, COUNT ( DISTINCT + 50 ) AS col0 +---- +1 +33 query I rowsort label-2288 SELECT DISTINCT COUNT ( * ) / - 50 * + + 90 * - - 77 @@ -12843,8 +12991,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(82\), CAST\(NULL AS Int32\) \* Int64\(27\) \+ Int64\(71\)\) AS col1" at position 0 and "min\(Int64\(\-73\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( 82, CAST ( NULL AS INTEGER ) * + 27 + 71 ) AS col1, + MIN ( ALL - 73 ) AS col1 +---- +-73 +82 query I rowsort label-2435 SELECT ALL + ( + MIN ( DISTINCT + 94 ) ) AS col0 @@ -13502,8 +13653,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 29 * - COUNT ( * ) - + COUNT ( * ) / - 14 AS col0, + 33 AS col0 +---- +-29 +33 query I rowsort label-2559 SELECT ALL - 56 / NULLIF ( + 36, - + 25 - COUNT ( * ) * - 90 * 33 ) - 1 AS col1 @@ -13559,8 +13713,11 @@ SELECT ALL + 95, + 3 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5937 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \* Int64\(81\) \- Int64\(\-43\) \+ \(\- \(\- CAST\(Int64\(95\) AS Int32\)\)\) AS col2" at position 0 and "Int64\(\-27\) \+ Int64\(\-72\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 75 * 81 - + - 43 + - - CAST ( 95 AS INTEGER ) AS col2, - 27 + - 72 - - COUNT ( * ) AS col2 +---- +-5937 +-98 query I rowsort label-2570 SELECT + 2 - ( 8 ) / + + 37 * 85 @@ -13919,8 +14076,11 @@ 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\(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\. +query II valuesort 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 +---- +25 +NULL query I rowsort SELECT ALL - 32 + - 79 AS col1 @@ -14766,8 +14926,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) + 84 AS col1, 11 AS col1 +---- +11 +83 query I rowsort label-2798 SELECT - CAST ( - 42 AS INTEGER ) @@ -14932,8 +15095,11 @@ SELECT 99 * - 44 * - - COALESCE ( - 54, - 3 * 39 + 6 + - 55 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col0" at position 0 and "Int64\(82\) \+ \(\- Int64\(89\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 89 AS col0, 82 + - + 89 col0 +---- +-7 +89 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -14966,8 +15132,11 @@ SELECT 19 * - - 80 * + 46 * + - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 484 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) / \(\- Int64\(\-54\)\) \+ Int64\(97\) \* Int64\(5\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 86 / - + ( - 54 ) + + + 97 * + ( + 5 ) col1, 51 AS col1 +---- +484 +51 query II rowsort label-2836 SELECT ALL - COALESCE ( - 25, NULLIF ( + ( 69 ), NULLIF ( - COUNT ( * ), - 85 ) ) ) col2, + 15 + 75 + - CAST ( NULL AS INTEGER ) / COUNT ( * ) / + COUNT ( * ) @@ -15416,8 +15585,11 @@ SELECT - + ( + COUNT ( * ) ) * - 66 # 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 col2" at position 0 and "Int64\(29\) / Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 76 AS col2, ( 29 ) / 96 AS col2 +---- +-76 +0 query II rowsort SELECT ALL 46 AS col2, 56 AS col0 @@ -15858,8 +16030,11 @@ 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\(1\)\) AS count\(\*\)\) \- Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 89 * 32 * + SUM ( ALL + 73 ) AS col0, 16 + - + COUNT ( * ) - + + 73 AS col0 +---- +-207904 +-58 query I rowsort label-3008 SELECT + NULLIF ( CAST ( NULL AS INTEGER ), + 91 ) @@ -16143,8 +16318,11 @@ SELECT DISTINCT CASE - - 30 WHEN + 97 + + - COUNT ( * ) THEN NULL WHEN 3 THEN + # Datafusion - Datafusion expected results: # Datafusion - Expected - 106 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \+ \(\- Int64\(\-88\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 + - - 88 AS col0, COUNT ( * ) AS col0 +---- +1 +106 query II rowsort SELECT ALL 46 AS col1, - 13 @@ -16251,8 +16429,11 @@ SELECT ALL 40 + - + 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14322 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(62\) / Int64\(14\) \* Int64\(77\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 * 62 / 14 * + 77 AS col0, 26 col0 +---- +14322 +26 query I rowsort SELECT 78 * - 56 @@ -16393,8 +16574,11 @@ SELECT ALL NULLIF ( - 90, + - 55 + - 5 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \+ \(\- Int64\(\-43\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 23 + - - 43 AS col1, COUNT ( * ) AS col1 +---- +1 +20 query I rowsort label-3111 SELECT - COUNT ( * ) * + 68 * 69 AS col0 @@ -16424,8 +16608,11 @@ SELECT - - 5 * + + MAX ( - 78 ) * - + 20 + - - 65 * + MAX ( ALL - 18 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - -849 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(65\)\)\) AS col2" at position 0 and "Int64\(\-85\) \* Int64\(10\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MAX ( - + 65 ) AS col2, ( + ( + - 85 ) ) * + 10 - + - COUNT ( * ) * + COUNT ( * ) AS col2 +---- +-65 +-849 query I rowsort SELECT DISTINCT + + NULLIF ( - 38, + 51 ) AS col2 @@ -16486,8 +16673,11 @@ SELECT DISTINCT - + 35 * + - 63 + - - 20 + - 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(\-30\)\)\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - COUNT ( ALL - 30 ) AS col1, 27 AS col1 +---- +-1 +27 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -16783,8 +16973,12 @@ 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\(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\. +query III valuesort SELECT ALL - COUNT ( * ) AS col2, - 89 * - 7 col2, + 39 / + 57 AS col0 +---- +-1 +0 +623 query I rowsort SELECT 37 + - 86 AS col1 @@ -17058,8 +17252,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 38 AS col1, 13 AS col1 +---- +-38 +13 query I rowsort SELECT - + 70 - NULLIF ( + 52, - + 71 ) @@ -17267,8 +17464,11 @@ SELECT ALL + - ( - 57 ) * + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6935 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-95\)\) \* Int64\(\-73\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 95 * - 73 AS col2, + 19 col2 +---- +-6935 +19 query II rowsort SELECT - 35 * + 15, 62 AS col0 @@ -17511,8 +17711,11 @@ SELECT ALL CASE - - 73 WHEN + + MIN ( ALL + + CAST ( NULL AS INTEGER ) ) * - - S # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -305370 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(63\) AS col1" at position 0 and "Int64\(\-87\) \* CAST\(Int64\(45\) AS Int32\) \* Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) * 63 AS col1, - 87 * CAST ( 45 AS INTEGER ) * + 78 col1 +---- +-305370 +63 query I rowsort label-3321 SELECT ALL - CASE ( - + ( SUM ( 28 ) ) ) WHEN 41 / + ( + - AVG ( ALL - - 16 ) ) THEN NULL WHEN - ( - 10 ) THEN COUNT ( - 98 ) END - - COUNT ( * ) / - 40 AS col1 @@ -18180,8 +18383,11 @@ SELECT 94, - ( - 6 ) * - ( 28 - - 45 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(56\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, + 56 + COUNT ( * ) AS col0 +---- +1 +57 query I rowsort SELECT 96 * - 75 @@ -18338,8 +18544,11 @@ SELECT ALL + 15 * + + NULLIF ( + - 22, + 59 ) - 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 3884 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "Int64\(\-57\) \* Int64\(\-24\) \+ Int64\(74\) \* min\(Int64\(31\) \+ Int64\(3\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 0 AS col0, - 57 * - 24 + 74 * MIN ( ALL 31 + + 3 ) col0 +---- +0 +3884 query I rowsort label-3482 SELECT DISTINCT - 83 / + 90 + - COALESCE ( 55, 55 * - 9 ) * + 64 AS col0 @@ -18855,8 +19064,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, - 99 AS col2 +---- +-1 +-99 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -18905,8 +19117,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col1, + 12 AS col1 +---- +-1 +12 query II rowsort label-3591 SELECT DISTINCT - CASE - 25 WHEN - + 16 THEN NULL ELSE - - COUNT ( * ) END AS col1, + CASE - + 25 WHEN 88 THEN NULL WHEN 94 + - AVG ( CAST ( NULL AS FLOAT8 ) + + 4 ) THEN - SUM ( - 75 ) END AS col2 @@ -19055,8 +19270,11 @@ SELECT + ( + 15 ) * + + 54 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - -3735 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) \+ Int64\(43\) AS col2" at position 0 and "coalesce\(\(\- Int64\(83\)\), Int64\(93\) \+ Int64\(\-29\) \* Int64\(\-57\), Int64\(32\)\) \* Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 87 + 43 AS col2, COALESCE ( - + 83, ( 93 ) + - 29 * - 57, + 32 ) * 45 col2 +---- +-3735 +-44 query I rowsort SELECT DISTINCT - 66 * - + 59 AS col0 @@ -19547,8 +19765,11 @@ SELECT 31 * + 58 * - - 34 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col1" at position 0 and "Int64\(10\) \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 AS col1, 10 * + + 2 AS col1 +---- +20 +35 query II rowsort SELECT DISTINCT - 98, 75 AS col2 @@ -19743,8 +19964,11 @@ SELECT NULLIF ( - 84, - 65 + - + 5 + + - 83 ) # 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\(1\) AS col2" at position 0 and "Int64\(59\) \+ Int64\(\-68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 1 col2, 59 + + - 68 AS col2 +---- +-9 +1 query II rowsort SELECT + 67 AS col1, + 78 @@ -21286,8 +21510,11 @@ SELECT 51 + 38 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* Int64\(90\) \- CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 50 * 90 - + CAST ( NULL AS INTEGER ) AS col0, 69 AS col0 +---- +69 +NULL query I rowsort label-4046 SELECT DISTINCT + 89 - - 80 * - COUNT ( * ) col2 @@ -21384,8 +21611,11 @@ SELECT DISTINCT + 96 / + ( + - 21 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6111 # Datafusion - Expected - -6083 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* Int64\(\-63\) AS col1" at position 0 and "Int64\(77\) \* Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 97 * + - 63 AS col1, + 77 * + - 79 col1 +---- +-6083 +-6111 query I rowsort SELECT 4 + - ( + 65 ) @@ -21427,8 +21657,11 @@ SELECT DISTINCT + COUNT ( * ) + - 58 / - 44 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 147 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) / coalesce\(Int64\(49\), count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(\-5\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(93\) \+ \(\- CASE Int64\(34\) WHEN \(\- Int64\(88\)\) \+ CAST\(NULL AS Int32\) THEN \(\- \(\- Int64\(35\)\)\) WHEN Int64\(5\) THEN NULL ELSE Int64\(\-20\) END\) / Int64\(59\) \+ Int64\(98\) \+ Int64\(\-44\) AS col1" at position 0 and "CASE \(\- \(\- avg\(DISTINCT Int64\(23\)\)\)\) WHEN Int64\(\-37\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(51\) THEN Int64\(90\) \* Int64\(\-26\) WHEN Int64\(\-26\) \* Int64\(\-98\) THEN NULL ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +147 +NULL query I rowsort label-4073 SELECT 98 / - COUNT ( - + ( 75 ) ) + - + 18 col0 @@ -21519,8 +21752,11 @@ SELECT - - 45 AS col2, 81 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1089 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(33\) \* Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, 33 * ( + 33 ) AS col2 +---- +1 +1089 query II rowsort SELECT - 85, 41 * + ( 8 ) AS col2 @@ -22022,8 +22258,11 @@ SELECT COUNT ( * ) + 43 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col0" at position 0 and "Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 93 col0, - 29 AS col0 +---- +-29 +93 query I rowsort label-4187 SELECT ALL - COUNT ( * ) * + + 59 AS col2 @@ -22165,8 +22404,11 @@ SELECT ALL + - ( 55 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -36960 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(\-30\) \* Int64\(16\) AS col1" at position 0 and "Int64\(46\) \+ Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 * - 30 * + 16 col1, 46 + - 33 AS col1 +---- +-36960 +13 query I rowsort label-4213 SELECT - - COUNT ( * ) * - COUNT ( * ) + + NULLIF ( + + 79, + 17 ) + ( + - 77 ) AS col0 @@ -22225,8 +22467,13 @@ SELECT + 82 / + + 78 AS col0 # Datafusion - Expected - 77 # Datafusion - Expected - -62 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col2" at position 1 and "Int64\(\-57\) AS col2" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIII valuesort SELECT 47 * + - 62 / - + 9 + 31 + - 63 / - CAST ( NULL AS INTEGER ) col1, 77 AS col2, - COUNT ( * ) * 62, - 57 col2 +---- +-57 +-62 +77 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -22649,8 +22896,11 @@ SELECT ALL + 12 * + + 81 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* CASE CAST\(NULL AS Int32\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(13\) WHEN Int64\(\-87\) THEN NULL END \* Int64\(50\) \+ Int64\(33\) \+ \(\- Int64\(\-35\)\) / Int64\(97\) \* Int64\(17\) AS col0" at position 0 and "Int64\(\-35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-35 +NULL query I rowsort SELECT 73 * - 56 @@ -23048,8 +23298,11 @@ SELECT ALL + + 92 + + - 76 + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(CAST\(NULL AS Int32\) AS Int32\)\) \- Int64\(67\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) - + + 67 AS col2, + 50 AS col2 +---- +50 +NULL query I rowsort label-4382 SELECT - 66 / - 86 @@ -23084,15 +23337,22 @@ SELECT ALL - 54 + 70 + + 24 * - + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - -213 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col2" at position 0 and "Int64\(82\) \+ Int64\(\-37\) \+ \(\- Int64\(34\)\) \* Int64\(5\) \+ \(\- sum\(Int64\(88\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 19 AS col2, 82 + - 37 + - + 34 * 5 + - SUM ( + + 88 ) AS col2 +---- +-19 +-213 # Datafusion - Datafusion expected results: # 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\(1\)\) AS count\(\*\) \+ Int64\(\-50\) \* Int64\(\-93\) \- Int64\(\-18\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-89 +84 +NULL query I rowsort label-4390 SELECT DISTINCT - - 50 + - 32 + 72 / - 4 + - 5 @@ -23307,8 +23567,11 @@ SELECT ALL + + 77 + + - 21 - + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 111 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col1" at position 0 and "Int64\(38\) \- nullif\(Int64\(\-73\), Int64\(\-48\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 21 AS col1, + 38 - NULLIF ( + - 73, + - 48 ) AS col1 +---- +111 +21 query I rowsort label-4431 SELECT 56 - + - ( - - 74 ) * + ( + 53 ) * + CASE AVG ( + - 76 ) WHEN - 78 + + - 11 THEN + + 55 * + - 66 - CAST ( NULL AS INTEGER ) ELSE + 74 / - ( + 16 ) + - 80 * + 8 END col0 @@ -23433,8 +23696,11 @@ SELECT ALL 40 + - CAST ( MAX ( + - 24 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-81\)\) AS col0" at position 0 and "Int64\(\-26\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) - - - 81 AS col0, + ( + ( - 26 ) ) * CAST ( NULL AS INTEGER ) col0 +---- +-82 +NULL query II rowsort label-4455 SELECT ALL CAST ( - - NULLIF ( + ( - ( - 44 ) ), 37 ) AS INTEGER ) + - - MIN ( - 21 ) AS col1, - 98 * + 21 * - 12 AS col2 @@ -23450,8 +23716,11 @@ SELECT ALL - + COUNT ( * ) * - - 17 + + + 19 + - - 63 - + + 43 * + + 81 * - - 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) / \(\- Int64\(\-89\)\) \- Int64\(\-69\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 35 / - - 89 - - 69 AS col0, + 70 col0 +---- +69 +70 query II rowsort label-4458 SELECT ALL + 77 + 30 AS col1, COALESCE ( + + ( + 37 ), - - 93, 99 * - 58 / + 97 ) @@ -23634,8 +23903,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(\-96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 AS col1, + 9 * - COUNT ( * ) + - 96 AS col1 +---- +-105 +13 query II rowsort SELECT ALL 25 * + - 59 + - - 89, + 51 * - + ( 41 ) AS col1 @@ -23827,8 +24099,11 @@ SELECT - + ( + 56 ) / - 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2128 # Datafusion - Expected - 11753 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* Int64\(76\) AS col2" at position 0 and "sum\(Int64\(9\)\) \* \(\- max\(Int64\(\-88\)\)\) \* Int64\(15\) \+ Int64\(19\) \+ Int64\(\-85\) \+ Int64\(\-61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 28 * + 76 AS col2, SUM ( + 9 ) * - MAX ( - 88 ) * + 15 + 19 + - 85 + - 61 AS col2 +---- +11753 +2128 query II rowsort label-4528 SELECT 60 / + 79 * - 45, - 31 * + ( + ( - CAST ( NULL AS INTEGER ) ) ) AS col2 @@ -24087,8 +24362,11 @@ SELECT COUNT ( * ) + + - 21 col1 # 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 col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 35 AS col2, + ( + 3 ) AS col2 +---- +-35 +3 query I rowsort SELECT ALL + 68 + - - 11 AS col2 @@ -24129,8 +24407,12 @@ SELECT 91 - - COALESCE ( - - 37, - + 51 + 7, 24 + + - 17 ) * COUNT ( * ) # Datafusion - Expected - 52 # Datafusion - Expected - 3042 # 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\(coalesce\(\(\- Int64\(25\)\), Int64\(34\)\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 52 AS col1, + CAST ( 39 AS INTEGER ) * 78, - + COUNT ( ALL COALESCE ( - + 25, + 34 ) ) col1 +---- +-1 +3042 +52 query I rowsort SELECT 0 - - 38 @@ -24362,8 +24644,11 @@ SELECT - 33 * - ( 73 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-31\)\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( ALL + - 31 ) col2, 59 AS col2 +---- +-31 +59 query I rowsort label-4628 SELECT - 22 + ( - 53 ) + ( - CAST ( + 4 AS INTEGER ) ) * - CAST ( + 95 AS INTEGER ) + - - 10 * - 22 - - - 33 * 7 AS col2 @@ -24399,8 +24684,11 @@ SELECT - COALESCE ( + + CAST ( NULL AS INTEGER ), - COUNT ( - + ( - - NULLIF ( 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-62\)\) AS col0" at position 0 and "Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + SUM ( + - 62 ) col0, - 38 AS col0 +---- +-38 +-62 query I rowsort label-4635 SELECT DISTINCT + 60 / - + 78 + + 97 + + 26 @@ -24488,8 +24776,11 @@ SELECT + 75 + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col1" at position 0 and "Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 47 AS col1, + 24 AS col1 +---- +24 +47 query I rowsort label-4652 SELECT DISTINCT CASE + 89 WHEN + - NULLIF ( - 76, - + SUM ( + + 46 ) ) THEN 14 + + ( + 26 ) END AS col2 @@ -24556,8 +24847,11 @@ SELECT + 9 / - - COALESCE ( + - 39, + + 48, + 75 - + ( ( 79 ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 91 AS col0, 79 AS col0 +---- +-91 +79 query I rowsort label-4665 SELECT ALL + COUNT ( * ) + ( + - 16 ) AS col2 @@ -24752,8 +25046,11 @@ SELECT ALL COUNT ( + CAST ( NULL AS INTEGER ) ) + + 79 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3534 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(\-93\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 * - 93 AS col2, 4 AS col2 +---- +-3534 +4 query I rowsort label-4702 SELECT ALL + 41 / - 68 @@ -24763,8 +25060,11 @@ SELECT ALL + 41 / - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* Int64\(66\) \* Int64\(50\) \* Int64\(99\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- max\(Int64\(36\)\)\) \- Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 12 * + 66 * 50 * 99 + + CAST ( NULL AS INTEGER ) AS col2, - MAX ( ALL + 36 ) - + 84 AS col2 +---- +-120 +NULL query I rowsort SELECT DISTINCT 29 - + 40 AS col1 @@ -24939,8 +25239,11 @@ SELECT + 59 - + + SUM ( DISTINCT - 6 ) AS col0 # 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\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 75 AS col2, 88 AS col2 +---- +75 +88 query I rowsort SELECT + NULLIF ( - - 6, + 56 ) AS col1 @@ -24991,14 +25294,20 @@ 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\(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\. +query II valuesort 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 +---- +64 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1100 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \* Int64\(55\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 20 * 55 AS col0, + 8 AS col0 +---- +-1100 +8 query II rowsort SELECT + 48, 21 AS col2 @@ -25422,8 +25731,11 @@ SELECT DISTINCT 13 / - - 42 - + + 71 + + - 89 / 27 * - - ( 51 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 73 AS col0, 6 AS col0 +---- +6 +73 query I rowsort SELECT ALL - 47 * - - 51 AS col1 @@ -25510,8 +25822,11 @@ SELECT - COUNT ( * ) + - ( - - 98 ) - - ( 56 ) * + COUNT ( * ) - - 53, + 33 AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ Int64\(18\) \+ CAST\(NULL AS Int32\) \- Int64\(49\) \* Int64\(\-53\) AS col2" at position 0 and "Int64\(66\) \+ Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 16 + + 18 + CAST ( NULL AS INTEGER ) - + 49 * - 53 AS col2, 66 + 94 AS col2 +---- +160 +NULL query I rowsort SELECT ALL - 62 * + 78 @@ -27135,8 +27450,11 @@ SELECT DISTINCT + + COUNT ( * ) + - + 53 + + NULLIF ( 12, - MIN ( ALL 27 ) * COU # 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\(\-3\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 AS col1, 37 AS col1 +---- +-3 +37 query I rowsort label-5162 SELECT ALL + COUNT ( * ) + + MAX ( DISTINCT + 36 ) + - 49 / - 82 @@ -27724,8 +28042,11 @@ NULL # 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 col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 32 AS col2, ( 61 ) AS col2 +---- +-32 +61 query II rowsort label-5277 SELECT - 67 AS col1, + 32 - COALESCE ( 76, + 52 * - + 78 * - 44 - + COALESCE ( COUNT ( * ) + 72, 1, COUNT ( * ) ), 20 ) AS col2 @@ -27817,8 +28138,11 @@ SELECT ( 17 ) * - 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 137 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \+ Int64\(53\) AS col0" at position 0 and "Int64\(67\) / Int64\(\-41\) \* Int64\(10\) \+ CASE \(\- coalesce\(CAST\(\(\- Int64\(66\)\) AS Int32\), Int64\(6\), Int64\(72\) \- Int64\(\-73\), Int64\(52\)\)\) WHEN avg\(DISTINCT \(\- coalesce\(Int64\(76\), Int64\(18\) \- Int64\(\-27\)\)\)\) / Int64\(40\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(59\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +137 +NULL query I rowsort SELECT ALL - 84 * 55 @@ -28052,8 +28376,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) * 43 AS col0 +---- +43 +NULL query I rowsort label-5340 SELECT ALL 93 + - COALESCE ( + 69, + 85 ) - + 91 * CASE - 11 WHEN - + 19 / + COUNT ( 56 ) THEN - 84 ELSE 92 END * - 23 - SUM ( 45 + + 58 ) @@ -28264,8 +28591,11 @@ SELECT ALL 65 * - + 27 - + 16 + - 67 * + + 67 - - CASE - 66 WHEN - + 28 * - 55 T # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 90 AS col2, + 67 col2 +---- +67 +90 query I rowsort label-5381 SELECT - 2 + 62 - + MAX ( - 43 ) @@ -28310,8 +28640,11 @@ SELECT ALL + NULLIF ( + NULLIF ( 15, + - 67 ), - COUNT ( * ) ) AS col2 # 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 "\(\- Int64\(\-86\)\) AS col2" at position 0 and "Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 86 AS col2, - 30 AS col2 +---- +-30 +86 query I rowsort SELECT - + 90 * 52 AS col1 @@ -28503,8 +28836,11 @@ SELECT - 70 * + ( + COUNT ( * ) ) - - ( - 76 ) + 43 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) \- Int64\(\-14\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 29 - - 14 AS col2, COUNT ( * ) AS col2 +---- +-15 +1 query I rowsort SELECT ALL - 11 - 35 AS col2 @@ -28617,8 +28953,12 @@ NULL # Datafusion - Expected - 7304 # Datafusion - Expected - 43 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* Int64\(83\) AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 88 * + 83 AS col1, + 43 AS col1, + - COUNT ( * ) AS col2 +---- +-1 +43 +7304 query I rowsort label-5448 SELECT + - 86 + - + NULLIF ( - 28, + CAST ( 97 AS INTEGER ) ) * - 57 col1 @@ -29229,8 +29569,11 @@ SELECT + + COUNT ( * ) AS col1, - 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2136 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(99\), Int64\(63\)\) \* \(\- Int64\(\-6\)\) \+ Int64\(\-42\) \* Int64\(65\) AS col2" at position 0 and "Int64\(\-83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + NULLIF ( + 99, 63 ) * - - 6 + - 42 * + 65 AS col2, - 83 AS col2 +---- +-2136 +-83 query II rowsort SELECT ALL + 67, - 76 * - 86 AS col0 @@ -29403,8 +29746,11 @@ SELECT + COUNT ( * ) + - 84 + 3 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 16 AS col2, + COUNT ( * ) AS col2 +---- +1 +16 query I rowsort label-5598 SELECT ALL + 9 * + - 97 + + + 42 / 31 * + 38 AS col1 @@ -30167,8 +30513,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1140 # Datafusion - Expected - -246 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* Int64\(\-19\) AS col0" at position 0 and "Int64\(82\) \* Int64\(\-3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 * - 19 AS col0, + 82 * - 3 col0 +---- +-1140 +-246 query I rowsort label-5742 SELECT - + ( - SUM ( 96 ) ) AS col2 @@ -30178,8 +30527,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) - + 36 AS col0, 76 AS col0 +---- +-35 +76 query I rowsort SELECT 37 * - + 6 * - - 67 @@ -30240,8 +30592,11 @@ SELECT DISTINCT - COUNT ( * ) + - 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 720 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col0" at position 0 and "Int64\(2\) \* Int64\(30\) \* \(\- Int64\(\-12\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 37 AS col0, 2 * + 30 * - - 12 col0 +---- +-37 +720 query I rowsort label-5755 SELECT DISTINCT - 0 + + + NULLIF ( 65, 69 * + - 94 + - + 72 * + - COALESCE ( CAST ( + 8 AS INTEGER ), COUNT ( ALL + 52 ) - + 27, - MIN ( DISTINCT + 27 ) * 31 ) + - 60 * + + 43 * 24 ) col2 @@ -30642,8 +30997,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col0" at position 0 and "Int64\(\-5\) \+ Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 92 AS col0, - 5 + 41 col0 +---- +-92 +36 query I rowsort SELECT + ( - 74 ) - - 35 AS col0 @@ -30653,8 +31011,11 @@ 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\(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\. +query II valuesort SELECT - ( + COUNT ( * ) ) * + 12 * 16 - - - MIN ( ALL - 19 ) * - SUM ( + 47 ) AS col2, - ( 6 ) AS col2 +---- +-1085 +-6 query I rowsort label-5834 SELECT + - 37 * ( - 19 ) * + COUNT ( * ) + + 10 - 50 @@ -30904,8 +31265,11 @@ SELECT ALL - 97 + + ( - + 80 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 68 AS col1, + 50 col1 +---- +-68 +50 query I rowsort SELECT DISTINCT - + ( + 83 ) @@ -31329,8 +31693,11 @@ SELECT DISTINCT - 84 + + ( - 76 ) * + - 37 * - 47 * 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 115 # Datafusion - Expected - 5494 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ Int64\(83\) AS col0" at position 0 and "Int64\(82\) \* \(\- \(\- Int64\(67\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 32 + + + 83 AS col0, + ( ( 82 ) ) * - - ( 67 ) AS col0 +---- +115 +5494 query I rowsort SELECT - 1 + - 95 @@ -31390,8 +31757,11 @@ SELECT - - COUNT ( * ) * 1 + SUM ( DISTINCT 56 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -9441 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \+ Int64\(11\) \* Int64\(54\) \* \(\- Int64\(16\)\) AS col2" at position 0 and "Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 + + 11 * 54 * - + 16 col2, - 15 AS col2 +---- +-15 +-9441 query I rowsort SELECT ALL + 8 * 49 AS col2 @@ -31446,8 +31816,11 @@ SELECT COUNT ( - + 95 ) + + 70 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5614 # Datafusion - Expected - 2997 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ \(\- \(\- Int64\(7\)\)\) \+ Int64\(95\) \* Int64\(59\) AS col0" at position 0 and "\(\- Int64\(\-36\)\) \* Int64\(85\) \+ count\(Int64\(70\)\) \+ \(\- Int64\(\-2\)\) \* \(\- Int64\(\-28\)\) \+ Int64\(\-81\) \- Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 2 + - - ( + 7 ) + + 95 * 59 AS col0, + ( - - 36 ) * + 85 + + COUNT ( 70 ) + - - 2 * - - 28 + - 81 - 39 AS col0 +---- +2997 +5614 query I rowsort SELECT 39 * + + ( 32 ) * + COALESCE ( + 86, + - 93 ) @@ -31599,8 +31972,11 @@ SELECT ALL + 2 + 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 AS col1, 45 AS col1 +---- +11 +45 query I rowsort SELECT 58 * - - 18 @@ -31620,8 +31996,11 @@ SELECT DISTINCT CASE + COUNT ( * ) WHEN + 7 THEN NULLIF ( + CASE + 58 WHEN + ( 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col1" at position 0 and "coalesce\(Int64\(\-51\), Int64\(92\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 71 AS col1, COALESCE ( - 51, 92 ) AS col1 +---- +-51 +-71 query II rowsort label-6018 SELECT ALL + 2 + COUNT ( * ) * - COUNT ( * ) + + + 73 AS col2, + 14 * + - 60 col1 @@ -32109,8 +32488,11 @@ SELECT ALL - 66, + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6339 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ Int64\(79\) \* Int64\(79\) AS col2" at position 0 and "CASE Int64\(\-8\) WHEN \(\- Int64\(\-36\)\) THEN Int64\(38\) \* Int64\(\-15\) \+ Int64\(\-38\) WHEN \(\- \(\- Int64\(83\)\)\) THEN Int64\(\-48\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 98 + 79 * + 79 col2, CASE - 8 WHEN - - 36 THEN + 38 * + - 15 + + - 38 WHEN - - ( 83 ) THEN - 48 END AS col2 +---- +6339 +NULL query I rowsort label-6111 SELECT DISTINCT + 15 + - + 93 / 95 AS col2 @@ -32321,8 +32703,11 @@ SELECT - COALESCE ( - - 74, + 1 - + 67 ) + 31 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 450 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col1" at position 0 and "\(\- \(\- Int64\(\-45\)\)\) \* Int64\(\-10\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 0 AS col1, - ( - - 45 ) * - 10 + - + COUNT ( * ) + + COUNT ( * ) AS col1 +---- +0 +450 query I rowsort label-6151 SELECT ALL 14 * + COUNT ( * ) @@ -32817,8 +33202,11 @@ SELECT 22 + - 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 162 # Datafusion - Expected - -4644 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \+ Int64\(99\) \* count\(DISTINCT Int64\(32\)\) AS col0" at position 0 and "Int64\(10\) \+ \(\- Int64\(\-78\)\) \+ min\(Int64\(\-52\)\) \* Int64\(91\) \* Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 63 + + 99 * COUNT ( DISTINCT 32 ) AS col0, + 10 + - - 78 + + MIN ( - 52 ) * + 91 * + + 1 AS col0 +---- +-4644 +162 query I rowsort label-6244 SELECT ALL NULLIF ( + COALESCE ( + COUNT ( * ), 20 + - 62 * + COUNT ( + + 41 ) - + 89 ), - COUNT ( * ) / + ( + ( + 39 ) ) ) * - - COUNT ( * ) @@ -33006,8 +33394,11 @@ SELECT DISTINCT 37 * 26 * - NULLIF ( + 47, + CAST ( - 46 AS INTEGER ) * + + CAST # Datafusion - Datafusion expected results: # Datafusion - Expected - 544 # Datafusion - Expected - 1904 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* \(\- Int64\(\-17\)\) AS col0" at position 0 and "Int64\(68\) \* Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 32 * - - 17 AS col0, + 68 * + ( + 28 ) AS col0 +---- +1904 +544 query I rowsort label-6280 SELECT + 36 + + 14 / + - COUNT ( * ) @@ -33314,8 +33705,11 @@ SELECT NULLIF ( + 27, - + COUNT ( * ) / - 24 * COUNT ( * ) + - 28 ) + 63 * ( + 2 # 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 col2" at position 0 and "coalesce\(Int64\(\-22\), Int64\(27\)\) \+ Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 96 AS col2, + COALESCE ( + - 22, + 27 ) + + + 20 col2 +---- +-2 +96 query II rowsort label-6339 SELECT 58 AS col2, - 5 / 81 @@ -33331,8 +33725,11 @@ SELECT 31 * 74 + + 65 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \* CASE Int64\(63\) WHEN Int64\(48\) \* CAST\(Int64\(89\) AS Int32\) \+ Int64\(48\) THEN Int64\(\-35\) WHEN Int64\(\-13\) THEN NULL END AS col0" at position 0 and "Int64\(22\) \+ \(\- Int64\(4\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 * + CASE 63 WHEN + 48 * CAST ( + 89 AS INTEGER ) + + 48 THEN - 35 WHEN + - 13 THEN NULL END col0, 22 + - + 4 AS col0 +---- +18 +NULL query I rowsort SELECT ALL + 22 * - - 66 * + - 58 @@ -34021,8 +34418,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 17 AS col0, 57 AS col0 +---- +-17 +57 query II rowsort label-6473 SELECT 56 + + COUNT ( ALL 75 ), 30 AS col2 @@ -34156,8 +34556,11 @@ SELECT ALL + 73 + + COUNT ( ALL + - 45 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(\-98\)\), CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( - - 98, + CAST ( + - COUNT ( * ) AS INTEGER ) ) AS col0, + 22 AS col0 +---- +22 +98 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -34303,8 +34706,12 @@ SELECT ALL - 82 / - + SUM ( DISTINCT - 81 ) AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - -2408 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-20\) AS Int32\) \* Int64\(\-69\) \+ Int64\(9\) \- CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(86\) \* Int64\(\-28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + CAST ( - 20 AS INTEGER ) * - 69 + 9 - ( CAST ( NULL AS INTEGER ) ) col1, 86 * ( + - 28 ) AS col1, + 7 + + CAST ( NULL AS INTEGER ) + 65 AS col0 +---- +-2408 +NULL +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -34497,8 +34904,11 @@ SELECT 56 AS col1, COUNT ( * ) # 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\(49\) AS col1" at position 0 and "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 49 AS col1, 58 AS col1 +---- +49 +58 query II rowsort label-6562 SELECT 29 AS col0, 77 + MIN ( - - 54 ) @@ -34631,8 +35041,12 @@ 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\(1\)\) AS count\(\*\) \+ \(\- \(\- Int64\(83\)\)\) \* Int64\(\-21\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 26 + - ( - + 54 ), + 46 AS col2, + + ( 98 ) + + COUNT ( * ) + - - ( + 83 ) * - 21 AS col2 +---- +-1644 +46 +80 query II rowsort SELECT 48, + 48 AS col0 @@ -35969,8 +36383,11 @@ SELECT NULLIF ( 10, + 61 ) + - 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 col0, + 75 AS col0 +---- +39 +75 query I rowsort SELECT 39 * 25 + + 10 - + - 42 AS col1 @@ -36404,8 +36821,11 @@ SELECT - 24 * 96 + NULLIF ( 16, - ( 3 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 AS col0, + 39 AS col0 +---- +33 +39 query II rowsort SELECT + 86 AS col2, 41 * - 93 * + 49 + 85 + - 43 AS col0 @@ -36976,8 +37396,11 @@ SELECT + 78 + - CAST ( 60 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \+ \(\- \(\- Int64\(8\)\)\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 54 + - ( - + 8 ) AS col0, 95 AS col0 +---- +62 +95 query I rowsort SELECT + ( - ( 78 ) ) AS col2 @@ -37096,8 +37519,11 @@ SELECT - + 90 + MIN ( 17 ) + 24 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) \* Int64\(\-75\) / Int64\(30\) \* Int64\(\-67\) AS col2" at position 0 and "\(\- Int64\(\-62\)\) \- Int64\(\-88\) \+ \(\- Int64\(58\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS INTEGER ) * - 75 / 30 * - 67 AS col2, - ( - 62 ) - - 88 + - + 58 AS col2 +---- +92 +NULL query I rowsort label-7063 SELECT ALL - - CASE WHEN NOT + 13 <= CAST ( - COUNT ( * ) AS INTEGER ) - + COUNT ( 10 ) THEN COUNT ( * ) - + MIN ( - + 89 ) WHEN NOT ( NULL ) IN ( SUM ( 63 ) ) THEN NULL ELSE 66 * 27 END * + 87 AS col1 @@ -37202,8 +37628,11 @@ SELECT 65 AS col1, 49 AS col2 # 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\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 64 AS col0, + 65 col0 +---- +64 +65 query II rowsort SELECT - 66 AS col0, 46 @@ -37833,8 +38262,11 @@ 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\(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\. +query II valuesort SELECT 26 / - COUNT ( * ) AS col0, 17 + + 3 + - ( + + 70 ) AS col0 +---- +-26 +-50 query I rowsort label-7204 SELECT ALL - 39 / - 99 col2 @@ -38451,8 +38883,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 67 * - - 59 * 68 AS col2, + 52 + - NULLIF ( + 58, + COUNT ( * ) ) AS col2 +---- +-6 +268804 query I rowsort label-7322 SELECT DISTINCT 53 / + + 64 @@ -38589,8 +39024,11 @@ SELECT 78 * - COUNT ( * ) AS col2, COALESCE ( 39, + - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 1870 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col1" at position 0 and "Int64\(72\) \+ Int64\(\-58\) \* \(\- Int64\(31\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 63 AS col1, 72 + - 58 * - + 31 col1 +---- +-63 +1870 query II rowsort label-7348 SELECT ALL COUNT ( * ), + 62 AS col1 @@ -38781,8 +39219,11 @@ SELECT DISTINCT - COUNT ( * ) * - 22 / 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(\-24\) \+ \(\- Int64\(94\)\) / \(\- Int64\(96\)\) AS col0" at position 0 and "Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) + - 24 + - ( + 94 ) / - + 96 AS col0, 44 AS col0 +---- +44 +NULL query II rowsort SELECT ALL 87 + - ( + 68 ) AS col0, - 73 @@ -39305,8 +39746,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 50 / 14 - 88 col2, - 75 * - COUNT ( * ) AS col2 +---- +-91 +75 query I rowsort SELECT ALL 22 - - 19 * 19 + + + 4 AS col0 @@ -39333,8 +39777,11 @@ SELECT + - ( + + 76 ) / + 87 * - ( - 70 ) AS col2, 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1206634 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) \* Int64\(42\) \* Int64\(13\) \* Int64\(26\) \* Int64\(85\) \- Int64\(\-26\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 1 * + 42 * + + 13 * + + 26 * 85 - - 26 AS col1, 72 AS col1 +---- +-1206634 +72 query I rowsort SELECT + + 95 * - 19 AS col1 @@ -39374,8 +39821,11 @@ SELECT + 64 + 48 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 148 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(87\) \+ Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col1, COUNT ( * ) + COUNT ( * ) + + 87 + 59 AS col1 +---- +1 +148 query I rowsort SELECT - 66 * + - 36 @@ -40106,8 +40556,11 @@ SELECT CAST ( - + ( 67 ) AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 AS col2, 18 AS col2 +---- +18 +8 query I rowsort label-7634 SELECT ALL + ( - 71 ) / 25 + - 7 + 57 + 15 @@ -40290,8 +40743,11 @@ SELECT - 38 + COUNT ( * ) + - 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(21\)\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 21 AS col1, 60 col1 +---- +-21 +60 query I rowsort SELECT 45 * 64 + 48 AS col2 @@ -40301,8 +40757,11 @@ SELECT 45 * 64 + 48 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 29 col0, + 4 AS col0 +---- +29 +4 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -40571,8 +41030,11 @@ SELECT - 53 + + + 24 + + 15 * MAX ( DISTINCT - 2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "Int64\(52\) \+ Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 AS col2, 52 + + 56 col2 +---- +108 +12 query I rowsort label-7722 SELECT DISTINCT + 6 + + COUNT ( * ) @@ -40746,8 +41208,11 @@ SELECT ALL NULLIF ( - 85, - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(63\) \* Int64\(6\) / Int64\(81\) AS col2" at position 0 and "\(\- CASE Int64\(\-7\) WHEN avg\(Int64\(17\)\) / Int64\(18\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- CASE Int64\(35\) WHEN Int64\(1\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- sum\(Int64\(\-47\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) END\) THEN Int64\(\-51\) END\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-4 +NULL query I rowsort SELECT DISTINCT + - COALESCE ( - 35, + 92 ) * - 89 col2 @@ -41163,8 +41628,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) - - 41 AS col0, 84 AS col0 +---- +42 +84 query I rowsort SELECT - 6 * + 45 col2 @@ -41892,8 +42360,11 @@ SELECT - 10 + - COUNT ( DISTINCT - - 52 ) * + CAST ( + 74 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -4661 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "Int64\(\-79\) \* Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 64 AS col0, - 79 * 59 AS col0 +---- +-4661 +64 query I rowsort label-7974 SELECT ALL - - COUNT ( * ) * 64 * + 15 @@ -41948,8 +42419,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "nullif\(Int64\(\-9\), Int64\(47\)\) \+ Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 40 AS col1, + NULLIF ( - 9, 47 ) + 80 AS col1 +---- +40 +71 query I rowsort SELECT ALL - 79 * + 88 + + 97 @@ -42043,8 +42517,11 @@ SELECT DISTINCT 94 / + 83 / - COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(91\)\) AS col0" at position 0 and "Int64\(\-34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( DISTINCT 91 ) col0, - 34 AS col0 +---- +-34 +91 query I rowsort SELECT ALL 29 * + 76 AS col1 @@ -42356,8 +42833,11 @@ SELECT ( - - 72 ) + - 46 * COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 1679 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(95\) AS col2" at position 0 and "Int64\(73\) \* Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 + + 95 AS col2, 73 * + 23 AS col2 +---- +1679 +95 query II rowsort SELECT 4 * + 22, + 7 AS col2 @@ -42798,8 +43278,11 @@ SELECT ( 11 ) * COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(45\)\) AS col2" at position 0 and "CAST\(Int64\(\-81\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 45 AS col2, CAST ( + - 81 AS INTEGER ) AS col2 +---- +-45 +-81 query I rowsort SELECT ALL - ( - - 88 ) @@ -42925,8 +43408,11 @@ SELECT 45 / - - 71 * 8 * - NULLIF ( ( 29 ), + 46 + 57 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* Int64\(\-23\) \* Int64\(13\) / Int64\(46\) / CAST\(NULL AS Int32\) \* Int64\(47\) AS col0" at position 0 and "Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 * - 23 * + 13 / + + ( + 46 ) / CAST ( NULL AS INTEGER ) * + + 47 AS col0, - 26 col0 +---- +-26 +NULL query I rowsort SELECT ALL + + 9 + - 54 AS col1 @@ -43124,8 +43610,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "max\(Int64\(34\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 46 col2, MAX ( + 34 ) AS col2 +---- +34 +46 query I rowsort label-8207 SELECT ALL 97 * COUNT ( * ) / COUNT ( * ) AS col0 @@ -43287,8 +43776,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -7917 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* \(\- \(\- Int64\(\-58\)\)\) \+ Int64\(\-69\) \- Int64\(\-26\) \* \(\- max\(\(\- Int64\(\-81\)\)\)\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 * - - ( - 58 ) + - 69 - - 26 * - MAX ( - - 81 ) AS col1, 10 AS col1 +---- +-7917 +10 query I rowsort label-8239 SELECT ALL - - 79 * + + COUNT ( * ) col1 @@ -43420,8 +43912,11 @@ SELECT CAST ( - 33 AS INTEGER ) + + + 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 AS col1, - CAST ( NULL AS INTEGER ) AS col1 +---- +92 +NULL query I rowsort SELECT ALL 28 * 39 @@ -44348,8 +44843,11 @@ SELECT - COUNT ( * ) - - + COUNT ( * ) * 66 * - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 500 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "\(\- \(\- Int64\(\-25\)\)\) \* Int64\(\-20\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 AS col2, - ( - - 25 ) * + - 20 * + COUNT ( * ) col2 +---- +44 +500 query I rowsort SELECT - 43 - - 76 AS col1 @@ -44558,8 +45056,11 @@ SELECT 2 AS col0, + 86 + + + COALESCE ( + MIN ( DISTINCT 91 ), - + ( 44 ) + 23 * # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 94 AS col0, 8 AS col0 +---- +-94 +8 query I rowsort SELECT + 20 * - 34 * + 18 AS col2 @@ -44800,8 +45301,11 @@ 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\(7\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 7 AS col2, + 13 AS col2 +---- +13 +7 query I rowsort SELECT ALL 59 - - 73 AS col0 @@ -44849,8 +45353,11 @@ SELECT ALL ( 77 ) * 99 - ( - + 12 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) / \(\- max\(DISTINCT \(\- Int64\(2\)\)\)\) AS col1" at position 0 and "Int64\(88\) \+ \(\- Int64\(95\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 17 / - MAX ( DISTINCT - + 2 ) AS col1, + 88 + - + 95 AS col1 +---- +-7 +8 query I rowsort label-8543 SELECT 23 * + ( - CASE + 26 WHEN + COUNT ( * ) THEN 87 END ) * 96 @@ -44878,8 +45385,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - -118 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "Int64\(\-32\) \- \(\- \(\- min\(Int64\(86\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 col2, - 32 - - - MIN ( + 86 ) AS col2 +---- +-118 +32 query I rowsort SELECT ALL 35 * + - 70 AS col1 @@ -45258,8 +45768,11 @@ 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\(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\. +query RI valuesort SELECT DISTINCT - 84 * - COUNT ( * ) + + 69 / - 7 + - - 24 * CAST ( NULL AS FLOAT8 ) AS col2, - 20 col2 +---- +-20 +NULL query I rowsort SELECT ALL - - 85 * + 62 + + 14 + + ( 98 ) * + 11 * 13 AS col1 @@ -45563,8 +46076,11 @@ SELECT ALL + CASE WHEN NULLIF ( + - 58, 82 ) NOT BETWEEN + + SUM ( - - ( + 13 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 2281 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) / Int64\(46\) AS col1" at position 0 and "count\(DISTINCT Int64\(\-3\)\) \+ Int64\(30\) \* Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 / 46 AS col1, COUNT ( DISTINCT - 3 ) + + 30 * 76 AS col1 +---- +2 +2281 query I rowsort SELECT 7 * + 70 @@ -45750,14 +46266,20 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - COUNT ( * ) AS col1, + 6 AS col1 +---- +-1 +6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + COUNT ( * ) AS col1, 18 AS col1 +---- +1 +18 query II rowsort label-8716 SELECT ALL + - 53 AS col0, - ( - ( 63 ) ) + + 0 * + 28 + + CAST ( - + 90 AS INTEGER ) * 29 AS col2 @@ -46187,8 +46709,11 @@ SELECT 1 + - - 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 117 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \- \(\- Int64\(77\)\) AS col0" at position 0 and "Int64\(\-63\) \- Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 40 - - + 77 AS col0, ( - 63 ) - - 51 AS col0 +---- +-12 +117 query I rowsort label-8799 SELECT DISTINCT - 57 * + 69 + COUNT ( * ) col0 @@ -46406,8 +46931,11 @@ SELECT - + 96 + + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 3002 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(53\)\) \+ Int64\(\-46\) \+ Int64\(6\) \* Int64\(12\) AS col2" at position 0 and "Int64\(79\) \* Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( + 53 ) + - 46 + 6 * 12 col2, 79 * + + ( 38 ) col2 +---- +27 +3002 query I rowsort label-8841 SELECT SUM ( + 95 ) / - CASE + + 77 WHEN - 59 THEN - 31 ELSE - + 80 END + + ( + 20 ) * - COUNT ( * ) AS col2 @@ -46503,8 +47031,11 @@ SELECT ALL + 32 AS col0, 97 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1388 # Datafusion - Expected - 344902 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* \(\- Int64\(\-29\)\) \+ Int64\(25\) AS col1" at position 0 and "Int64\(70\) \* Int64\(\-47\) \+ coalesce\(\(\- Int64\(\-62\)\), Int64\(84\) \* Int64\(\-52\) \+ Int64\(\-58\) \+ Int64\(\-2\), \(\- Int64\(\-77\)\) \* Int64\(\-97\)\) \* Int64\(72\) \* Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 * + ( - - 29 ) + + + 25 AS col1, + 70 * - 47 + COALESCE ( - - 62, + ( + 84 ) * - 52 + - 58 + - 2, - ( - 77 ) * - 97 ) * + 72 * 78 AS col1 +---- +1388 +344902 query II rowsort label-8859 SELECT DISTINCT 39 + + - 17 * - 1, COUNT ( * ) + - 85 AS col2 @@ -46965,8 +47496,11 @@ SELECT DISTINCT COUNT ( * ) + COUNT ( * ) * - 31 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ Int64\(\-98\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 + + - 98 AS col1, 26 AS col1 +---- +-45 +26 query I rowsort SELECT + 70 * 59 @@ -47207,8 +47741,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-72\) / Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + MAX ( + 73 ) AS col0, 24 + + + COUNT ( * ) + - 72 / 53 col0 +---- +24 +73 query I rowsort SELECT ALL - + CASE - + 3 WHEN + 86 - - 5 THEN 90 * + - ( 40 ) * + + 71 ELSE 76 END @@ -47285,8 +47822,11 @@ SELECT ( - COUNT ( * ) ) * - 57 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 5013 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "Int64\(58\) \* Int64\(85\) \+ Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 AS col2, 58 * + 85 + 83 AS col2 +---- +12 +5013 query I rowsort SELECT ALL + 23 + - 5 AS col0 @@ -47356,8 +47896,11 @@ SELECT - 33 AS col2, - 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14550 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) \* Int64\(\-97\) \* Int64\(50\) AS col2" at position 0 and "sum\(Int64\(0\)\) \* \(\- Int64\(\-80\)\) \- \(\- Int64\(77\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 * - 97 * + + 50 AS col2, + SUM ( 0 ) * - - 80 - - ( + 77 ) AS col2 +---- +14550 +77 query I rowsort label-9021 SELECT 38 * + + MIN ( 30 ) / 76 + - + 31 - - + 48 + 53 + 36 + CAST ( NULL AS INTEGER ) + NULLIF ( NULLIF ( + 75, + NULLIF ( MAX ( - - 66 ), + - COUNT ( * ) ) + - + 8 * - - 5 * + - 35 ), + 88 + + 70 ) + + 87 * 13 + - COUNT ( * ) / + 14 @@ -47528,8 +48071,11 @@ SELECT - 74 / + 87 * 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(82\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 82 ) AS col0, COUNT ( * ) AS col0 +---- +-82 +1 query I rowsort label-9054 SELECT - 37 * + COUNT ( * ) * + CAST ( + 55 AS INTEGER ) @@ -48818,8 +49364,11 @@ SELECT - COALESCE ( 27, - + 33 * - 60 ) + - + 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 161 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(72\) \+ count\(Int64\(49\)\) \+ Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 29 - + COUNT ( * ) AS col1, 72 + + COUNT ( 49 ) + + 88 AS col1 +---- +161 +28 query II rowsort label-9300 SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, 21 AS col0 @@ -49620,8 +50169,12 @@ SELECT DISTINCT + 31 + + + COUNT ( * ) + COALESCE ( - - 57, - 26 * AVG ( DISTINC # Datafusion - Expected - 46 # Datafusion - Expected - NULL # Datafusion - Expected - 6566 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "Int64\(\-98\) \* \(\- Int64\(67\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 46 AS col0, 19 + CASE 42 WHEN 21 * - ( - - 74 ) + - 47 / 56 + - 67 THEN + - 38 END AS col1, - 98 * - + 67 AS col0 +---- +46 +6566 +NULL query I rowsort SELECT DISTINCT - 96 * + 87 col0 @@ -49764,8 +50317,12 @@ SELECT ALL 30 / COUNT ( * ) # Datafusion - Expected - 0 # Datafusion - Expected - -2424 # Datafusion - Expected - 114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) / \(\- min\(Int64\(71\)\)\) \* Int64\(\-46\) AS col1" at position 0 and "Int64\(83\) \* Int64\(\-29\) \- Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 40 / - MIN ( + 71 ) * - 46 AS col1, 83 * - 29 - + 17 AS col1, 26 + + ( + + 88 ) + 3 / - 32 * - 16 +---- +-2424 +0 +114 query I rowsort SELECT + 70 * + COALESCE ( 43, + 77 ) AS col0 @@ -49807,8 +50364,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* \(\- \(\- Int64\(74\)\)\) \- \(\- coalesce\(Int64\(\-60\), \(\- Int64\(\-85\)\)\)\) \* CAST\(NULL AS Float64\) \* Int64\(\-81\) \+ Int64\(38\) AS col0" at position 0 and "Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL 24 * - + ( - + 74 ) - - COALESCE ( ( - 60 ), - - 85 ) * + CAST ( NULL AS FLOAT8 ) * - 81 + 38 col0, - 64 AS col0 +---- +-64 +NULL query I rowsort label-9485 SELECT DISTINCT + COALESCE ( - CASE + + 6 WHEN - 56 + + CAST ( NULL AS INTEGER ) THEN + ( 50 ) WHEN + - 92 THEN NULL ELSE NULL END, + 62, + + COUNT ( * ) ) col2 @@ -49864,8 +50424,11 @@ SELECT - 50 + - 77 + + 37 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4400 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* Int64\(55\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 80 * 55 AS col0, COUNT ( * ) AS col0 +---- +-4400 +1 query I rowsort SELECT - CASE + 67 WHEN + ( + 44 ) THEN - 67 WHEN - 65 THEN NULL ELSE NULL END AS col1 @@ -51158,8 +51721,11 @@ 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\(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\. +query II valuesort SELECT ALL - 66 * + COUNT ( * ) + + NULLIF ( 73, 66 + - 33 ) AS col1, + 36 * - 12 AS col1 +---- +-432 +7 query I rowsort SELECT CASE + 1 WHEN + 71 THEN 73 END @@ -51323,8 +51889,11 @@ SELECT + + COUNT ( * ) * - 46 + - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(11\) AS col1" at position 0 and "Int64\(53\) \+ \(\- min\(DISTINCT Int64\(97\)\)\) \+ Int64\(\-75\) \* \(\- CAST\(NULL AS Int32\)\) \* CAST\(\(\- CASE \(\- Int64\(\-88\)\) WHEN Int64\(62\) THEN NULL WHEN \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(33\) \- Int64\(14\) THEN Int64\(25\) END\) \* sum\(Int64\(32\)\) \* \(\- Int64\(58\)\) / \(\- Int64\(92\)\) \* Int64\(73\) \* \(\- Int64\(29\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / count\(Int64\(1\)\) AS count\(\*\) THEN \(\- avg\(CAST\(NULL AS Int32\)\)\) \- count\(Int64\(1\)\) AS count\(\*\) END\) AS Int32\) / Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +NULL +NULL query I rowsort label-9774 SELECT - 99 + - - COALESCE ( + - 51, + 28 + + 67 * + CAST ( NULL AS INTEGER ) * + 83 / + 13 * + 49 ) @@ -51354,8 +51923,11 @@ SELECT NULLIF ( + MAX ( + 99 ), 31 * - 59 ) * + 68 * + - 91 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1147 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \* Int64\(\-27\) \+ Int64\(\-14\) AS col0" at position 0 and "\(\- sum\(Int64\(15\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 43 * + - 27 + - 14 AS col0, - SUM ( + 15 ) AS col0 +---- +-15 +1147 query I rowsort label-9780 SELECT COUNT ( * ) + - 19 AS col2 @@ -51866,8 +52438,11 @@ SELECT + - 90 AS col1, + 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(53\), Int64\(35\)\) AS col2" at position 0 and "\(\- Int64\(\-14\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( 53, 35 ) AS col2, + ( - - 14 ) AS col2 +---- +14 +53 query I rowsort label-9879 SELECT 80 / - + 36 + + ( + 50 ) + + + 78 + - 58 @@ -51980,8 +52555,11 @@ SELECT ALL COUNT ( * ) * + 87 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 "Int64\(27\) / Int64\(\-17\) AS col0" at position 0 and "Int64\(\-88\) \+ Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 27 / - 17 AS col0, - 88 + + 52 col0 +---- +-1 +-36 query I rowsort SELECT ALL - 73 - 25 AS col1 @@ -52001,8 +52579,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) + + 30 AS col1, + 31 * - - 91 - + 31 AS col1 +---- +2790 +29 query I rowsort SELECT DISTINCT + 62 @@ -52310,8 +52891,11 @@ SELECT - SUM ( ALL - 91 ) / ( - - MAX ( 17 ) ) + - 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5274 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(65\) \+ Int64\(\-92\) \* Int64\(58\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 3 / - COUNT ( * ) + + 65 + - 92 * 58 AS col1, COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1 +---- +-5274 +NULL query I rowsort label-9963 SELECT + CAST ( + 29 AS INTEGER ) diff --git a/data/sqlite/random/expr/slt_good_13.slt b/data/sqlite/random/expr/slt_good_13.slt index 6d254b2..87473e5 100644 --- a/data/sqlite/random/expr/slt_good_13.slt +++ b/data/sqlite/random/expr/slt_good_13.slt @@ -550,8 +550,11 @@ SELECT ALL MIN ( DISTINCT + 45 ) / - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-49\) AS Int32\)\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( - 49 AS INTEGER ) AS col2, 10 AS col2 +---- +10 +49 query I rowsort label-98 SELECT + 30 * - COUNT ( * ) @@ -697,8 +700,11 @@ SELECT + 94 * 98 AS col2, + 89 * - 94 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1170 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(39\)\) \* \(\- Int64\(30\)\) AS col1" at position 0 and "CASE Int64\(\-9\) WHEN Int64\(78\) THEN Int64\(39\) WHEN \(\- Int64\(68\)\) \* Int64\(\-80\) THEN Int64\(32\) \+ \(\- Int64\(\-84\)\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 39 * - + 30 AS col1, CASE - 9 WHEN + 78 THEN + 39 WHEN - + 68 * ( + - 80 ) THEN + 32 + - - 84 ELSE NULL END col1 +---- +1170 +NULL query I rowsort label-126 SELECT 20 / ( + 47 ) AS col1 @@ -1267,8 +1273,11 @@ SELECT - 81 + - - 93 + - SUM ( DISTINCT + 84 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -130830 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \* CASE \(\- max\(DISTINCT Int64\(\-55\)\)\) WHEN \(\- Int64\(38\)\) THEN NULL ELSE nullif\(Int64\(\-89\), Int64\(44\)\) END \* Int64\(\-15\) AS col0" at position 0 and "\(\- \(\- Int64\(\-85\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 98 * CASE - MAX ( DISTINCT - 55 ) WHEN + + ( - + 38 ) THEN NULL ELSE + NULLIF ( - 89, + 44 ) END * + - 15 AS col0, - ( - - 85 ) AS col0 +---- +-130830 +-85 query I rowsort SELECT ALL + 57 * 25 @@ -1578,8 +1587,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(\-14\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 48 AS col2, + COUNT ( * ) * - - 14 AS col2 +---- +-48 +14 query I rowsort SELECT - 32 AS col1 @@ -1947,8 +1959,11 @@ SELECT ALL + COUNT ( * ) + - COUNT ( * ) + + 35 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \+ \(\- coalesce\(Int64\(\-54\), Int64\(65\), Int64\(\-51\)\)\) AS col2" at position 0 and "Int64\(74\) \+ Int64\(\-55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 97 + - COALESCE ( - 54, 65, - 51 ) AS col2, 74 + - 55 AS col2 +---- +-43 +19 query I rowsort SELECT ALL - 80 @@ -2051,8 +2066,11 @@ SELECT + 10 + + - 6 * + 45 * + 16 + + 13 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-53\) \+ CAST\(Int64\(\-63\) AS Float64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + - 51 AS col0, - CAST ( NULL AS INTEGER ) * - 53 + + CAST ( - 63 AS FLOAT8 ) AS col0 +---- +-51 +NULL query I rowsort SELECT - 37 * 74 @@ -2190,8 +2208,11 @@ SELECT 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-38\)\) AS col0" at position 0 and "Int64\(93\) \+ Int64\(\-75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 38 AS col0, 93 + - 75 col0 +---- +18 +38 query I rowsort label-416 SELECT DISTINCT - COUNT ( * ) + + - 44 * - - 13 - - NULLIF ( 96, + ( CAST ( NULL AS INTEGER ) ) / 54 ) - - 97 + 84 * 48 + + 62 * - 20 * + + 33 - 3 AS col2 @@ -2305,8 +2326,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + - 6 AS col1, 22 AS col1 +---- +-5 +22 query I rowsort label-438 SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 93 AS col0 @@ -2738,8 +2762,11 @@ SELECT ALL + 34 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 693 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(37\) \+ Int64\(97\) \+ CASE Int64\(78\) WHEN \(\- Int64\(\-49\)\) THEN NULL ELSE Int64\(27\) \+ \(\- Int64\(60\)\) END AS col1" at position 0 and "\(\- max\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 * + 37 + 97 + + CASE + 78 WHEN - - 49 THEN NULL ELSE 27 + - ( 60 ) END AS col1, - MAX ( - CAST ( NULL AS INTEGER ) ) AS col1 +---- +693 +NULL query I rowsort SELECT ALL + 82 AS col0 @@ -2808,8 +2835,11 @@ SELECT - + 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(65\) / Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 59 + - + CAST ( NULL AS INTEGER ) AS col1, + ( 65 ) / + + 17 AS col1 +---- +3 +NULL query I rowsort label-534 SELECT + COUNT ( * ) * 0 AS col1 @@ -3794,8 +3824,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 AS col0, 38 * - COUNT ( * ) AS col0 +---- +-38 +0 query I rowsort SELECT NULLIF ( 96, + 37 + - 0 ) * + + 49 + + 55 @@ -4098,8 +4131,11 @@ SELECT DISTINCT + 87 / + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5200 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(\-65\) \* \(\- count\(DISTINCT Int64\(\-92\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 * - 65 * - COUNT ( DISTINCT - 92 ) col2, COUNT ( * ) AS col2 +---- +1 +5200 query I rowsort SELECT ALL + 70 * - 74 @@ -4175,8 +4211,11 @@ SELECT + - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 49 -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\(92\)\)\) \* Int64\(\-49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 25 AS col0, - COUNT ( + 92 ) * - 49 col0 +---- +-25 +49 query I rowsort label-800 SELECT + 12 / 9 + + 66 - + 4 + - 77 + + 3 / + 67 AS col2 @@ -4273,8 +4312,11 @@ SELECT DISTINCT + 34 * 21 - + 21 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 255583 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) AS col1" at position 0 and "Int64\(34\) \* Int64\(80\) \* \(\- sum\(Int64\(\-94\)\)\) \- Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - 74 ) col1, 34 * + 80 * - + SUM ( - 94 ) - + 97 AS col1 +---- +-74 +255583 query I rowsort SELECT DISTINCT + 80 @@ -4784,8 +4826,11 @@ SELECT ALL - 69 + 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(min\(Int64\(13\)\) AS Int32\) AS col1" at position 0 and "Int64\(49\) / Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 - - COUNT ( * ) * CAST ( + MIN ( 13 ) AS INTEGER ) AS col1, 49 / 49 AS col1 +---- +1 +84 query I rowsort SELECT - + 86 AS col1 @@ -5374,8 +5419,11 @@ SELECT DISTINCT - 75 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 70 -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 "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 89 + - 58 AS col2, 70 AS col2 +---- +31 +70 query I rowsort label-1030 SELECT CAST ( NULL AS INTEGER ) * - COALESCE ( + 57, + + 92 ) AS col2 @@ -5643,8 +5691,11 @@ SELECT + CAST ( - ( ( + NULLIF ( - + NULLIF ( + - 76, 78 * + + 30 + 0 - MIN ( DI # 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 "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 40 AS col0, 63 AS col0 +---- +-40 +63 query II rowsort SELECT ALL + 42, - 54 col0 @@ -6878,8 +6929,11 @@ SELECT ALL - + 74 * 57 + - 36 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ min\(\(\- CAST\(Int64\(78\) AS Int32\)\)\) AS col1" at position 0 and "Int64\(\-39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 93 + + MIN ( - CAST ( 78 AS INTEGER ) ) AS col1, - 39 AS col1 +---- +-39 +15 query I rowsort SELECT ALL - 34 - 2 @@ -7227,8 +7281,11 @@ SELECT ALL + 85 + - - ( + NULLIF ( ( + 3 ), + + 33 + - 85 + 48 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2200 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(55\), \(\- \(\- Int64\(84\)\)\) \+ Int64\(\-29\) \* Int64\(\-66\)\)\) \* Int64\(\-40\) AS col1" at position 0 and "\(\- CASE Int64\(84\) WHEN Int64\(45\) THEN Int64\(78\) \+ Int64\(\-11\) \+ Int64\(15\) \* Int64\(\-99\) / Int64\(\-72\) WHEN Int64\(29\) \* Int64\(64\) THEN Int64\(52\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( + 55, - - ( 84 ) + + - 29 * - 66 ) * - 40 col1, - CASE + 84 WHEN 45 THEN + + 78 + - 11 + + 15 * - 99 / + - 72 WHEN 29 * + 64 THEN 52 END AS col1 +---- +2200 +NULL query I rowsort SELECT ALL 93 AS col1 @@ -7238,14 +7295,20 @@ SELECT ALL 93 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- sum\(Int64\(38\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) col0, - SUM ( + 38 ) AS col0 +---- +-38 +1 # 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 47 AS col1, 35 + - COUNT ( * ) AS col1 +---- +-47 +34 query I rowsort SELECT ALL NULLIF ( - 36, - - 67 - + 6 - 3 + - + 70 + + - 28 ) @@ -8092,8 +8155,11 @@ SELECT + 44 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2765 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- Int64\(19\)\)\)\) \+ CASE \(\- Int64\(46\)\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN \(\- Int64\(\-65\)\) END AS col1" at position 0 and "Int64\(\-79\) \* \(\- nullif\(Int64\(\-35\), \(\- Int64\(\-2\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MAX ( - + 19 ) + CASE - + ( + ( 46 ) ) WHEN - CAST ( NULL AS INTEGER ) THEN - - 65 END AS col1, - 79 * + - NULLIF ( - 35, - - 2 ) AS col1 +---- +-2765 +NULL query I rowsort label-1554 SELECT DISTINCT + 6 / + 52 AS col2 @@ -8368,8 +8434,11 @@ SELECT DISTINCT - 41 - - 19 + - - 72 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - -28710 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col1" at position 0 and "Int64\(33\) \* Int64\(\-58\) \* Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 49 AS col1, 33 * - 58 * 15 AS col1 +---- +-28710 +-49 query II rowsort label-1606 SELECT DISTINCT - 11 AS col2, + 96 + 99 + + + COUNT ( * ) @@ -8390,8 +8459,11 @@ SELECT - 48 * + 73 + 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col1" at position 0 and "Int64\(\-81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 AS col1, - 81 AS col1 +---- +-81 +14 query I rowsort label-1610 SELECT - 59 / + 77 @@ -8674,8 +8746,11 @@ 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\(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\. +query II valuesort SELECT ALL 15 col0, - 60 / + COUNT ( * ) + + 38 + - NULLIF ( - 28, - COUNT ( DISTINCT + 26 ) ) col0 +---- +15 +6 query I rowsort SELECT 37 * + 9 @@ -8848,8 +8923,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( + 61, + 88 * - 75 ) col1, 57 * - COUNT ( * ) col1 +---- +-57 +61 query I rowsort SELECT ALL + 50 AS col1 @@ -8966,8 +9044,11 @@ SELECT + 25 + - + 54 * - MIN ( DISTINCT + + ( - 53 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + MAX ( CAST ( NULL AS INTEGER ) ) AS col1, + 72 AS col1 +---- +72 +NULL query I rowsort SELECT DISTINCT + 38 + - 50 AS col0 @@ -9837,8 +9918,11 @@ SELECT DISTINCT + 67 * + 14 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -140 # Datafusion - Expected - 5820 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \* Int64\(35\) AS col2" at position 0 and "Int64\(60\) \* Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 4 * 35 AS col2, 60 * + + 97 AS col2 +---- +-140 +5820 query I rowsort SELECT DISTINCT - - 52 @@ -9929,8 +10013,11 @@ SELECT 14 + 20 + 57 * 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \- Int64\(21\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(84\) \+ Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 - 21 * + COUNT ( * ) AS col1, 84 + 17 AS col1 +---- +101 +29 query II rowsort SELECT DISTINCT 83 AS col0, 89 @@ -10594,8 +10681,11 @@ SELECT DISTINCT - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 AS col2, 83 AS col2 +---- +42 +83 query I rowsort SELECT 77 AS col1 @@ -11265,8 +11355,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 17 col0, - 22 + - COUNT ( * ) AS col0 +---- +-23 +17 query I rowsort SELECT ALL 39 @@ -11577,8 +11670,11 @@ SELECT ALL - - 36 / + 23 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-17\) AS col1" at position 0 and "Int64\(\-35\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) + + - 17 AS col1, - 35 * + + COUNT ( * ) AS col1 +---- +-35 +NULL query I rowsort SELECT DISTINCT - 31 @@ -11808,8 +11904,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 13 * - 20 * + 32 * - - 36 + + NULLIF ( + - 7, + 47 ) + 60 col0, COUNT ( * ) * - 78 AS col0 +---- +-299467 +-78 query I rowsort SELECT DISTINCT 49 + 10 @@ -11911,8 +12010,11 @@ SELECT DISTINCT + 76 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 126 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) 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 II valuesort SELECT ( 3 ) AS col2, + 37 + 89 col2 +---- +126 +3 query I rowsort label-2284 SELECT - + 91 * + + COALESCE ( + 16, - 39 * + COUNT ( * ) ) * + + 19 AS col1 @@ -12124,8 +12226,11 @@ SELECT DISTINCT 48 + - - 35 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-8\) \- Int64\(\-62\) \- \(\- Int64\(\-35\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, - 8 - - 62 - - - 35 AS col2 +---- +19 +NULL query I rowsort SELECT DISTINCT + 91 + + ( + 53 ) AS col0 @@ -12915,8 +13020,11 @@ 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\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-79\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( + 72 ) AS col1, 47 + - + 56 + + NULLIF ( - ( - NULLIF ( - + 20, - + 55 + - + 70 ) ), - - COUNT ( * ) + - 79 ) col1 +---- +-29 +1 query II rowsort label-2478 SELECT 1 * + 8, 53 + + - ( + COUNT ( * ) ) + + + 48 AS col1 @@ -14447,8 +14555,11 @@ SELECT ALL - 82 + COUNT ( + 32 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(23\) \+ Int64\(\-85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 AS col2, + 23 + - 85 AS col2 +---- +-62 +47 query I rowsort label-2775 SELECT - MIN ( DISTINCT 99 ) * ( 39 ) + - 5 + - - 71 + 10 @@ -14788,8 +14899,11 @@ SELECT DISTINCT - + 18 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 131 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(56\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 75 + 56 AS col2, + COUNT ( * ) AS col2 +---- +1 +131 query I rowsort SELECT DISTINCT - 98 AS col1 @@ -14844,8 +14958,11 @@ SELECT ALL - MAX ( ALL 20 ) + - + ( - + COUNT ( - - 46 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 88 col0, + 64 AS col0 +---- +-88 +64 query I rowsort SELECT ALL + 54 + 75 AS col2 @@ -15165,8 +15282,11 @@ SELECT - 78 + + 89 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "CASE Int64\(57\) WHEN Int64\(45\) THEN Int64\(18\) \* \(\- avg\(Int64\(64\)\)\) WHEN Int64\(60\) THEN NULL END \+ Int64\(33\) \* Int64\(\-94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL ( 37 ) AS col2, CASE 57 WHEN 45 THEN + 18 * - + AVG ( 64 ) WHEN 60 THEN NULL END + + 33 * - 94 AS col2 +---- +37 +NULL query I rowsort SELECT DISTINCT - 5 * - - 40 @@ -15383,8 +15503,11 @@ SELECT 81 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 "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 AS col1, + 17 AS col1 +---- +16 +17 query I rowsort SELECT DISTINCT - 18 * + 17 AS col2 @@ -15537,8 +15660,11 @@ SELECT ( 79 ) / - 72 + - + 64 + + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 530625 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \+ \(\- Int64\(\-67\)\) \+ \(\- Int64\(16\)\) \* Int64\(\-4\) AS col1" at position 0 and "Int64\(61\) \+ \(\- Int64\(73\)\) \* Int64\(\-79\) \* Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 96 + + ( - - 67 ) + - + 16 * - 4 col1, + ( + 61 ) + + - ( 73 ) * - 79 * ( + 92 ) AS col1 +---- +35 +530625 query I rowsort SELECT + + 16 col0 @@ -15657,8 +15783,11 @@ SELECT COUNT ( * ) + + 8 # 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 col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 57 AS col2, 16 AS col2 +---- +-57 +16 query II rowsort SELECT ALL 6 AS col0, 68 * - + 14 @@ -16486,8 +16615,11 @@ SELECT 25 * + + 76 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, 14 AS col2 +---- +1 +14 query I rowsort label-3167 SELECT NULLIF ( - - 84, + + COUNT ( * ) ) * + 59 * + - 23 * COUNT ( * ) * - NULLIF ( + 17, + - 86 * + CASE + - 20 WHEN - COUNT ( * ) * + 37 THEN - 39 WHEN - 54 THEN + 22 END / + 97 ) * 6 AS col0 @@ -16517,8 +16649,11 @@ SELECT - ( - - 30 ) / + - 36 + - + 27 + + + 74 # 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\(5\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 5 AS col0, 0 AS col0 +---- +0 +5 query I rowsort SELECT ALL + - 45 @@ -16534,8 +16669,12 @@ SELECT - - 5 * 60 + + 39 * + 15 AS col2 # Datafusion - Expected - -46 # Datafusion - Expected - 15 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col1" at position 1 and "Int64\(59\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + ( NULLIF ( 46, + 63 ) ) * - COUNT ( * ) AS col2, 15 AS col1, + 59 AS col1 +---- +-46 +15 +59 query I rowsort label-3176 SELECT + + COUNT ( * ) * + 80 AS col0 @@ -17028,8 +17167,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) + - 30 + - 13 + + 80 * + - 97 col2, 92 AS col2 +---- +-7804 +92 query I rowsort SELECT DISTINCT - 12 AS col2 @@ -17129,8 +17271,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col2" at position 0 and "Int64\(\-10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 97 AS col2, - 10 AS col2 +---- +-10 +-97 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -17191,8 +17336,11 @@ SELECT ALL + 63 + - - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col2" at position 0 and "Int64\(7\) \- Int64\(\-93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 88 AS col2, 7 - - 93 col2 +---- +-88 +100 query I rowsort label-3301 SELECT ALL 0 * - + ( + 0 ) * 83 * CAST ( + 63 AS INTEGER ) * - 42 + + 9 + - 6 AS col2 @@ -17299,8 +17447,11 @@ SELECT - 31 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CASE Int64\(\-92\) WHEN Int64\(\-78\) THEN Int64\(35\) WHEN Int64\(0\) THEN NULL END\), Int64\(90\) / Int64\(45\) \+ Int64\(12\), Int64\(0\)\) \- Int64\(29\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( - CASE + - 92 WHEN - 78 THEN + + ( + + 35 ) WHEN 0 THEN NULL END, 90 / + 45 + + 12, - 0 ) - + ( + ( + 29 ) ) AS col1, + 93 AS col1 +---- +-15 +93 query I rowsort label-3322 SELECT - 19 * - NULLIF ( + 4, + + ( + COUNT ( * ) ) * + 12 - + - 94 - + 75 * ( + 58 ) / - 90 ) @@ -17565,8 +17716,11 @@ SELECT + + 92 + 87 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 AS col1, 13 AS col1 +---- +13 +57 query I rowsort SELECT - + 23 AS col2 @@ -18712,8 +18866,11 @@ SELECT - 60 * 42 + 61 + + COUNT ( * ) + + COUNT ( * ) + + 55 + + - CAST ( + ( + # Datafusion - Datafusion expected results: # Datafusion - Expected - 2146 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* nullif\(Int64\(74\), \(\- CAST\(\(\- Int64\(82\)\) AS Float64\)\)\) AS col2" at position 0 and "\(\- \(\- Int64\(\-2\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT 29 * NULLIF ( 74, - CAST ( - ( 82 ) AS FLOAT8 ) ) AS col2, - ( - - 2 ) AS col2 +---- +-2 +2146 query I rowsort SELECT ALL - ( 27 ) * + 15 * - + 91 @@ -19480,8 +19637,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 71 AS col2, 60 AS col2 +---- +-71 +60 query I rowsort label-3741 SELECT COUNT ( * ) + COUNT ( * ) * + - 98 AS col2 @@ -19882,8 +20042,11 @@ SELECT ALL + 62 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) / CAST\(Int64\(\-14\) AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "coalesce\(Int64\(43\), \(\- Int64\(29\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 97 / + ( CAST ( - 14 AS INTEGER ) ) + - COUNT ( * ) AS col0, + COALESCE ( 43, - + 29 ) AS col0 +---- +-7 +43 query I rowsort SELECT DISTINCT + 39 @@ -20940,8 +21103,11 @@ SELECT ALL 96 + + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* \(\- count\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col0" at position 0 and "Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 92 * - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0, - 26 AS col0 +---- +-26 +0 query I rowsort label-4021 SELECT 12 * - MAX ( ALL + + 94 ) @@ -21225,8 +21391,11 @@ SELECT + 2 + + COALESCE ( 8, + ( 50 ), - - ( - 98 ) * - + ( - COUNT ( * ) ) ) / # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-87\)\) AS col2" at position 0 and "Int64\(52\) \+ CASE Int64\(3\) WHEN \(\- CAST\(Int64\(43\) AS Float64\)\) THEN Int64\(75\) \+ \(\- Int64\(3\)\) \- \(\- Int64\(\-60\)\) WHEN Int64\(\-77\) THEN Int64\(47\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - ( - 87 ) ) AS col2, 52 + CASE + 3 WHEN - CAST ( + 43 AS FLOAT8 ) THEN + 75 + - + 3 - - - 60 WHEN - 77 THEN 47 END AS col2 +---- +87 +NULL query I rowsort label-4076 SELECT + + CAST ( NULL AS INTEGER ) AS col2 @@ -21333,8 +21502,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -847 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* Int64\(77\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 11 * + 77 AS col1, 96 AS col1 +---- +-847 +96 query I rowsort SELECT - 95 + - 21 + - 48 * + 31 + 90 AS col1 @@ -21801,14 +21973,20 @@ SELECT ALL - 25 + + 47 * - 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col1" at position 0 and "Int64\(24\) / Int64\(41\) \- Int64\(94\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 36 AS col1, 24 / 41 - + 94 + + COUNT ( * ) AS col1 +---- +-36 +-93 # 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 "CASE \(\- coalesce\(Int64\(59\), \(\- Int64\(99\)\)\)\) WHEN \(\- Int64\(62\)\) THEN Int64\(5\) END AS col1" at position 0 and "Int64\(1\) \* Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CASE - + COALESCE ( + 59, - + 99 ) WHEN - + 62 THEN + 5 END AS col1, 1 * + 19 col1 +---- +19 +NULL query II rowsort label-4187 SELECT ALL COUNT ( * ) AS col1, + 43 + - - 82 + - + 36 + + CAST ( NULL AS INTEGER ) @@ -22911,8 +23089,11 @@ SELECT DISTINCT - 3 * + + 19 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(46\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \- Int64\(\-37\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- coalesce\(Int64\(44\), Int64\(57\) \+ count\(Int64\(81\)\) \+ \(\- Int64\(\-27\)\) \+ coalesce\(Int64\(40\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-98\)\) / Int64\(99\)\)\) \- Int64\(15\) \* CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\) / Int64\(93\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +33 +NULL query I rowsort SELECT - 13 AS col1 @@ -22969,8 +23150,11 @@ SELECT + COUNT ( * ) - + 87 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 41 AS col0, + CAST ( NULL AS INTEGER ) + + 44 AS col0 +---- +41 +NULL query I rowsort SELECT 66 + + 79 - 70 @@ -23315,8 +23499,12 @@ NULL # Datafusion - Expected - 41 # Datafusion - Expected - -8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT Int64\(\-41\)\)\) AS col1" at position 0 and "min\(DISTINCT Int64\(\-8\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort SELECT ALL + + ( - MIN ( DISTINCT + - 41 ) ) AS col1, MIN ( DISTINCT + ( - 8 ) ) AS col1, - - CASE + CAST ( NULL AS FLOAT8 ) WHEN 86 THEN - COUNT ( * ) END + + CAST ( NULL AS FLOAT8 ) AS col1 +---- +-8 +41 +NULL query I rowsort SELECT ALL 76 - 14 * - - 96 * ( ( - 69 ) ) @@ -25097,8 +25285,12 @@ SELECT DISTINCT - 81 - + 95 AS col1 # Datafusion - Expected - -66 # Datafusion - Expected - -6 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(66\)\) AS col0" at position 0 and "Int64\(\-6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + 66 AS col0, - 6 AS col0, + + NULLIF ( + + 79, - COUNT ( * ) ) +---- +-6 +-66 +79 query I rowsort SELECT ALL + 48 - - + 20 @@ -25180,8 +25372,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) * - 81 AS col2, - 37 AS col2 +---- +-37 +81 query I rowsort SELECT - 11 + - - 29 + + 51 * - 51 AS col0 @@ -25473,8 +25668,11 @@ 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\(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\. +query II valuesort 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 +---- +-69 +0 query II rowsort SELECT 81, + 52 * + 77 col0 @@ -25884,8 +26082,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 AS col0, COUNT ( * ) AS col0 +---- +1 +11 query I rowsort label-4973 SELECT ALL CASE - - 93 WHEN - + 26 + 47 THEN - ( CAST ( + 62 AS INTEGER ) ) END @@ -26106,8 +26307,12 @@ SELECT + 76 - 94 # Datafusion - Expected - -62 # Datafusion - Expected - 62 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col0" at position 0 and "Int64\(87\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 62 AS col0, + 62 AS col1, 87 AS col0 +---- +-62 +62 +87 query I rowsort label-5015 SELECT ALL 58 - - COUNT ( * ) + + 11 / + ( + NULLIF ( - - ( + - 25 ), + 68 / - 17 ) ) * + - CAST ( NULL AS INTEGER ) * COUNT ( ALL 21 ) AS col1 @@ -26174,15 +26379,22 @@ SELECT ALL - 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, - 75 AS col1 +---- +-75 +1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 67 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col2" at position 0 and "\(\- Int64\(0\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 98 AS col2, 67, - - 0 col2 +---- +0 +67 +98 query I rowsort label-5029 SELECT DISTINCT + SUM ( DISTINCT - 1 ) col1 @@ -26222,8 +26434,11 @@ 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\(1\)\) AS count\(\*\), Int64\(79\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 51 AS col1, COALESCE ( 30, + + COUNT ( * ), + 79 ) AS col1 +---- +-51 +30 query I rowsort SELECT - - 33 * - 99 - + + 51 AS col2 @@ -26253,8 +26468,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, 97 AS col2 +---- +-1 +97 query II rowsort SELECT ALL + - 44 + - + 81 AS col2, ( - 76 ) @@ -26602,8 +26820,12 @@ SELECT NULLIF ( + + 79, + 19 + - 50 ) + 9 * + 53 # Datafusion - Expected - 2 # Datafusion - Expected - 173 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \+ Int64\(92\) \+ Int64\(\-58\) / \(\- sum\(Int64\(56\)\)\) AS col2" at position 1 and "Int64\(\-12\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 2, 80 + + + 92 + - 58 / - SUM ( 56 ) AS col2, - 12 AS col2 +---- +-12 +173 +2 query I rowsort label-5111 SELECT ALL - MIN ( ALL CAST ( NULL AS INTEGER ) ) col0 @@ -26652,8 +26874,11 @@ SELECT - + 61, + 60 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-48\)\) AS col0" at position 0 and "CAST\(Int64\(43\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 48 AS col0, + CAST ( 43 AS INTEGER ) AS col0 +---- +43 +48 query I rowsort SELECT - + 73 * - 56 @@ -26742,8 +26967,11 @@ SELECT COALESCE ( 63, - COUNT ( * ) * COUNT ( * ) ) AS col0, + 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-58\), Int64\(11\), Int64\(46\)\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COALESCE ( + - 58, + 11, + 46 ) AS col0, + 51 AS col0 +---- +-58 +51 query I rowsort label-5136 SELECT DISTINCT + COUNT ( * ) * + + 62 * - 94 * + CAST ( NULL AS INTEGER ) @@ -27105,8 +27333,11 @@ SELECT ALL - 47 col0 # 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 "Int64\(0\) AS col0" at position 0 and "Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 col0, 84 AS col0 +---- +0 +84 query I rowsort label-5207 SELECT ALL 82 + COUNT ( ALL - 86 ) AS col0 @@ -27334,14 +27565,20 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 4 * NULLIF ( + + 22, 82 / - - 22 + 33 + - 34 * + - 38 - + - 47 ) * + 67 * 4 * + - 82 AS col0, 46 / - - COUNT ( * ) AS col0 +---- +-1933888 +46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(18\)\) AS col1" at position 0 and "nullif\(Int64\(49\), Int64\(\-63\)\) \+ Int64\(65\) / \(\- max\(Int64\(\-90\)\)\) \* \(\- Int64\(\-13\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( DISTINCT 18 ) AS col1, + NULLIF ( 49, - 63 ) + + 65 / - MAX ( - 90 ) * - - 13 col1 +---- +18 +49 query II rowsort label-5252 SELECT SUM ( + 96 ) AS col1, + 20 * + ( + - MIN ( CAST ( + 83 AS INTEGER ) ) ) AS col2 @@ -27680,8 +27917,11 @@ SELECT DISTINCT 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \+ Int64\(46\) AS col2" at position 0 and "min\(Int64\(\-25\)\) / Int64\(\-78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 36 + 46 col2, MIN ( ALL - 25 ) / - 78 AS col2 +---- +0 +82 query I rowsort label-5318 SELECT + 35 + 12 / - + COUNT ( * ) AS col2 @@ -28796,8 +29036,11 @@ SELECT - 12 + - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 858 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(52\) AS Int32\)\) \* Int64\(\-14\) \+ Int64\(40\) \+ Int64\(90\) AS col1" at position 0 and "\(\- count\(Int64\(62\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( 52 AS INTEGER ) * + - 14 + 40 + 90 AS col1, - COUNT ( ALL 62 ) AS col1 +---- +-1 +858 query I rowsort label-5531 SELECT DISTINCT + CASE - - 79 WHEN + - ( + 99 ) - - 22 + + + 89 THEN + COUNT ( * ) END AS col1 @@ -29267,8 +29510,11 @@ SELECT + 22 / + 99 + - + NULLIF ( - 35, 60 / + - 34 * + CAST ( NULL AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 128 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \- Int64\(\-99\) AS col2" at position 0 and "Int64\(\-30\) \+ Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 - - 99 col2, - 30 + + 37 AS col2 +---- +128 +7 query I rowsort label-5621 SELECT COUNT ( ALL - 58 ) + + 12 col1 @@ -29470,8 +29716,11 @@ SELECT ALL + 61 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "Int64\(\-28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 col2, - 28 AS col2 +---- +-28 +53 query II rowsort label-5660 SELECT 67 * 59 * 89 AS col0, CAST ( NULL AS INTEGER ) * + 89 + + NULLIF ( - - 43, + + 11 ) * + 35 @@ -30046,8 +30295,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 AS col0, 66 AS col0 +---- +50 +66 query II rowsort SELECT ALL 25, 18 * - + 29 AS col0 @@ -30159,8 +30411,11 @@ SELECT NULLIF ( + + 7, 19 ) + - 48 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col1" at position 0 and "Int64\(1\) \+ Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 14 AS col1, ( 1 ) + + - 87 AS col1 +---- +-86 +14 query I rowsort label-5792 SELECT 95 + COALESCE ( + COUNT ( * ), + 66 ) * - 90 AS col2 @@ -30287,8 +30542,11 @@ SELECT ALL + 69 / + 79 * - + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col0" at position 0 and "\(\- nullif\(Int64\(35\), Int64\(53\)\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 56 col0, ( - NULLIF ( + + 35, 53 ) ) + - CAST ( NULL AS INTEGER ) AS col0 +---- +-56 +NULL query I rowsort label-5817 SELECT + CAST ( NULL AS INTEGER ) + 7 AS col1 @@ -30313,8 +30571,11 @@ SELECT ALL + 61 + + - 41 - + - MAX ( + - 37 ) + - 33 + + 33 + + 97 + - - 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 732 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(12\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 * + 12 AS col0, 68 AS col0 +---- +68 +732 query I rowsort SELECT DISTINCT - 16 + - 5 @@ -31292,8 +31553,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) / 54 AS col1, - 9 AS col1 +---- +-9 +0 query I rowsort label-6010 SELECT DISTINCT - 40 * NULLIF ( + 67, + + CAST ( NULL AS INTEGER ) ) @@ -31451,8 +31715,12 @@ SELECT ALL 10 AS col0 # Datafusion - Expected - 32 # Datafusion - Expected - 69 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(66\) \- count\(Int64\(9\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 32 * + COUNT ( * ) AS col2, 69, 66 - COUNT ( 9 ) AS col2 +---- +32 +65 +69 query I rowsort SELECT 24 + 66 AS col2 @@ -32000,8 +32268,11 @@ SELECT + 76 * 10 * 53 * - CAST ( + 57 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col2" at position 0 and "Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 AS col2, + ( - 30 ) AS col2 +---- +-30 +77 query I rowsort label-6148 SELECT - 28 / - NULLIF ( 29, - 41 ) * + + 10 @@ -32153,8 +32424,11 @@ SELECT - 82 * + 7 + + 29 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 3060 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-32\)\) AS col2" at position 0 and "Int64\(34\) \* Int64\(\-90\) \* \(\- count\(Int64\(\-49\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 32 AS col2, 34 * - 90 * - COUNT ( - 49 ) AS col2 +---- +3060 +32 query II rowsort SELECT DISTINCT - - 71 AS col1, + 76 AS col2 @@ -32257,8 +32531,11 @@ SELECT + 97 + - - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4664 # Datafusion - Expected - -2950 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* Int64\(\-53\) AS col1" at position 0 and "Int64\(\-50\) \* Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 * - 53 AS col1, - 50 * + 59 col1 +---- +-2950 +-4664 query I rowsort label-6197 SELECT DISTINCT - - MAX ( ALL CAST ( + + COALESCE ( - - ( + 68 ), 20 * 1 + + 51, COALESCE ( - 63, - 37 ) - + + 83 ) AS INTEGER ) ) + 89 * + 63 @@ -32314,8 +32591,11 @@ SELECT DISTINCT - 85 AS col0, COUNT ( * ) + - + ( 11 ) # 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\(77\) AS col2" at position 0 and "sum\(Int64\(14\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 AS col2, SUM ( ALL 14 ) AS col2 +---- +14 +77 query I rowsort SELECT ALL + 60 * - 36 AS col0 @@ -32427,8 +32707,11 @@ NULL # 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\(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\. +query II valuesort SELECT ALL + + 23 * COUNT ( * ) * + - COUNT ( * ) * 29 AS col1, + 85 AS col1 +---- +-667 +85 query I rowsort label-6229 SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col2 @@ -32443,8 +32726,11 @@ SELECT ALL - 64 * + + ( + 25 ) - + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col1" at position 0 and "\(\- coalesce\(Int64\(98\), coalesce\(\(\- Int64\(\-85\)\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(30\), Int64\(92\) \* Int64\(7\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(3\), Int64\(70\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 59 AS col1, - COALESCE ( 98, COALESCE ( - - 85, + COUNT ( * ) + 30, 92 * + 7 - + - COUNT ( * ) + 3, 70 ) ) + COUNT ( * ) AS col1 +---- +-59 +-97 query I rowsort label-6232 SELECT DISTINCT + - COUNT ( ALL + 24 ) @@ -32548,8 +32834,11 @@ SELECT - 45 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* Int64\(43\) AS col0" at position 0 and "Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 2 * + 43 AS col0, - 64 AS col0 +---- +-64 +86 query I rowsort SELECT + 92 + - - 91 + + 83 @@ -32642,8 +32931,11 @@ SELECT + + 90 * + 55 + - 64 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1365 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(35\) AS col0" at position 0 and "\(\- Int64\(37\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 * + 35 AS col0, - ( 37 ) AS col0 +---- +-37 +1365 query I rowsort SELECT 73 * - - CASE - 16 WHEN - 40 * 31 + 96 * 57 * + + 2 THEN NULL ELSE 72 END + + 95 col2 @@ -34406,8 +34698,11 @@ SELECT 56 * - + 81 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 6853 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col0" at position 0 and "Int64\(\-89\) \* Int64\(\-77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 97 AS col0, - 89 * - 77 AS col0 +---- +6853 +97 query I rowsort label-6615 SELECT 63 + + ( COUNT ( * ) ) @@ -35038,8 +35333,11 @@ SELECT ALL 95, - 35 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT 13 AS col0, + 72 col0 +---- +13 +72 query I rowsort label-6740 SELECT COUNT ( * ) + + 7 AS col0 @@ -35124,8 +35422,11 @@ SELECT DISTINCT 45, - MAX ( - - ( + 70 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(23\), Int64\(88\) \* Int64\(\-18\)\)\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( 23, + + 88 * + - 18 ) AS col1, 81 AS col1 +---- +-23 +81 query I rowsort label-6755 SELECT ALL - COUNT ( * ) + + - 4 * 24 - - COUNT ( * ) AS col1 @@ -35251,8 +35552,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + + 6 AS col0, - ( + 89 ) AS col0 +---- +-89 +7 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -35265,8 +35569,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * 35 AS col2, - 15 AS col2 +---- +-15 +35 query I rowsort label-6781 SELECT 66 + MAX ( + 95 ) AS col1 @@ -35424,8 +35731,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 AS col0, COUNT ( * ) * 3 AS col0 +---- +3 +38 query I rowsort label-6812 SELECT ALL SUM ( - 56 ) AS col0 @@ -35545,8 +35855,11 @@ SELECT MIN ( ALL - 17 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) \+ Int64\(59\) AS col2" at position 0 and "Int64\(60\) \* Int64\(42\) \+ Int64\(47\) \+ Int64\(84\) \* \(\- Int64\(\-60\)\) / \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 30 + + ( + 59 ) col2, 60 * + 42 + + 47 + 84 * - - 60 / - CAST ( NULL AS INTEGER ) col2 +---- +29 +NULL query I rowsort label-6834 SELECT ALL + NULLIF ( - 70, - COUNT ( * ) ) AS col2 @@ -35831,8 +36144,11 @@ SELECT ALL 69 * 33 # 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\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 71 AS col2, 27 AS col2 +---- +27 +71 query I rowsort SELECT ALL 22 + - 98 @@ -36245,8 +36561,11 @@ SELECT COUNT ( * ) * + ( 50 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 14 AS col0, + 29 AS col0 +---- +-14 +29 query I rowsort SELECT - 61 col1 @@ -36269,8 +36588,11 @@ SELECT - + 70 + - NULLIF ( - ( + 10 ), ( + AVG ( + - 51 ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -114 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-92\), \(\- \(\- CAST\(Int64\(\-17\) AS Int32\)\)\)\) \+ Int64\(\-22\) AS col1" at position 0 and "Int64\(4\) \+ max\(Int64\(19\)\) \+ Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + NULLIF ( + - 92, - - CAST ( - 17 AS INTEGER ) ) + + - 22 AS col1, 4 + MAX ( 19 ) + 54 AS col1 +---- +-114 +77 query I rowsort label-6972 SELECT ALL + 96 + + - 60 + + - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1 @@ -36790,8 +37112,12 @@ SELECT ALL - - 45 + - 54 + - 45 AS col2 # Datafusion - Expected - -6 # Datafusion - Expected - -95 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col2" at position 1 and "Int64\(27\) \+ Int64\(42\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT NULLIF ( + - 6, ( + - 36 ) ), - 95 AS col2, + 27 + 42 AS col2 +---- +-6 +-95 +69 query I rowsort label-7073 SELECT ALL + + 32 + + - CAST ( + + 12 AS INTEGER ) AS col2 @@ -37040,8 +37366,11 @@ SELECT + 42 AS col0, 95 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col1" at position 0 and "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 59 AS col1, 58 AS col1 +---- +-59 +58 query I rowsort SELECT ALL + - 78 @@ -38972,8 +39301,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -576 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-12\)\)\) \* Int64\(48\) AS col0" at position 0 and "\(\- coalesce\(Int64\(30\), Int64\(74\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(88\) \+ Int64\(79\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- min\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - - 12 ) * + 48 AS col0, - COALESCE ( + 30, 74 ) * - COUNT ( * ) - 88 + + 79 / - COUNT ( * ) - MIN ( CAST ( NULL AS INTEGER ) ) AS col0 +---- +-576 +NULL query I rowsort SELECT 77 - + + 95 @@ -39499,8 +39831,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ Int64\(\-17\) AS col2" at position 0 and "Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 4 + + - 17 col2, 76 AS col2 +---- +-13 +76 query I rowsort label-7597 SELECT DISTINCT - + 30 / 27 + + - ( - + 88 ) @@ -39652,8 +39987,11 @@ 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\(1\)\) AS count\(\*\)\) \- Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 83 AS col2, - COUNT ( * ) - + + 76 AS col2 +---- +-77 +83 query I rowsort label-7627 SELECT - + COALESCE ( + - 88, + COUNT ( * ) * - - SUM ( DISTINCT + 0 ) / - + CAST ( NULL AS INTEGER ) + COUNT ( + + 49 ) * MAX ( ALL + 70 ) + COUNT ( * ), - 66 ) + + - COALESCE ( - 56, - + 76, + CASE - + 35 WHEN - + 2 THEN NULL WHEN - 55 THEN NULL WHEN ( + 57 ) * - 85 + COUNT ( * ) THEN COUNT ( ALL 68 ) * - 99 + - NULLIF ( 96, ( 98 ) ) ELSE NULL END + 99 ) AS col0 @@ -39688,8 +40026,11 @@ SELECT 70 * 79 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "Int64\(48\) \- Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 AS col0, 48 - 90 AS col0 +---- +-42 +58 query I rowsort label-7634 SELECT DISTINCT - - 70 + - - COUNT ( * ) * + - 56 @@ -40289,8 +40630,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 43 AS col0, - COALESCE ( + - ( + 64 ), 69 + - 46, 37 - COUNT ( * ) ) AS col0 +---- +-43 +64 query II rowsort label-7751 SELECT ALL 54, - 5 * 68 + + COUNT ( * ) + 96 + + CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col0 @@ -41177,8 +41521,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 144160 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(\-53\) \* Int64\(40\) \* Int64\(\-2\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 * + - 53 * 40 * - 2 AS col0, - CAST ( NULL AS INTEGER ) * + - 1 col0 +---- +144160 +NULL query I rowsort SELECT ALL 27 AS col1 @@ -41294,8 +41641,11 @@ SELECT DISTINCT - 7 - + 97 AS col1, 98 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1066 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* \(\- Int64\(41\)\) AS col1" at position 0 and "Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 * - + 41 AS col1, - 33 AS col1 +---- +-1066 +-33 query I rowsort label-7943 SELECT 26 * - 2 * COUNT ( * ) * 8 + - ( + MIN ( DISTINCT 91 ) ) + - + 19 - + + 75 * + - MAX ( DISTINCT - 55 ) AS col2 @@ -41466,8 +41816,11 @@ SELECT ALL + 87 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16185 # Datafusion - Expected - 2016 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) \* \(\- \(\- min\(Int64\(83\)\)\)\) \* \(\- Int64\(65\)\) AS col1" at position 0 and "Int64\(56\) \* Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 * - - ( + MIN ( 83 ) ) * - ( 65 ) AS col1, 56 * + + 36 AS col1 +---- +16185 +2016 query II rowsort SELECT DISTINCT + 0, 75 AS col0 @@ -41750,8 +42103,11 @@ SELECT ALL + 14 - - 68 + + 39 + - 89 * - 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(56\), Int64\(23\) \- 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 II valuesort SELECT DISTINCT NULLIF ( + + 56, 23 - 19 ) AS col1, 7 AS col1 +---- +56 +7 query I rowsort label-8031 SELECT ALL 70 - + 10 + 82 + - CASE + ( - - 33 ) WHEN + 22 + 58 THEN 50 + - COALESCE ( - COUNT ( * ), 55 * - + ( - 86 ) ) END - - 48 @@ -42075,8 +42431,11 @@ SELECT + 34 AS col2, - COALESCE ( + 54, + + 48 ) + - - ( 97 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col1" at position 0 and "CASE \(\- Int64\(\-87\)\) WHEN Int64\(\-52\) \* Int64\(\-1\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-35\) THEN \(\- count\(DISTINCT Int64\(\-96\)\)\) END \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 76 AS col1, + CASE - - 87 WHEN - 52 * - 1 + - - COUNT ( * ) + + - 35 THEN - COUNT ( DISTINCT - 96 ) END * CAST ( NULL AS INTEGER ) AS col1 +---- +-76 +NULL query I rowsort SELECT ALL 42 - 96 @@ -42160,8 +42519,11 @@ SELECT - - 85 * + 72 * MAX ( + 21 ) * CAST ( - 31 AS INTEGER ) - + 63 col1, 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 988 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- sum\(DISTINCT Int64\(52\)\)\) AS Int32\)\) \* Int64\(19\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( - SUM ( DISTINCT 52 ) AS INTEGER ) * + 19 AS col0, 1 AS col0 +---- +1 +988 query I rowsort label-8110 SELECT ALL - CAST ( NULL AS INTEGER ) + + - 92 * - 90 * + CAST ( NULL AS INTEGER ) col2 @@ -42335,8 +42697,11 @@ SELECT - COUNT ( * ) + 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col1" at position 0 and "Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 91 AS col1, - 47 AS col1 +---- +-47 +-91 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -42354,8 +42719,11 @@ 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\(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\. +query II valuesort SELECT ALL NULLIF ( - + 31, + 7 * - 42 / - - 77 + - 83 * + - ( 83 ) + - 5 + 14 * COUNT ( * ) / - MIN ( ALL - 52 ) ) AS col0, + 46 col0 +---- +-31 +46 query I rowsort SELECT ALL 3 + - 51 AS col0 @@ -43096,8 +43464,11 @@ SELECT DISTINCT SUM ( DISTINCT 43 ) * + - 12 * - COALESCE ( - 61, 75 + - 56, - 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - -322 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \* Int64\(\-15\) \+ Int64\(83\) AS col2" at position 0 and "Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 * - 15 + 83 AS col2, - 45 AS col2 +---- +-322 +-45 query I rowsort label-8290 SELECT + 38 / - 25 @@ -43122,8 +43493,11 @@ SELECT 89 * + + 97 # 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\(DISTINCT Int64\(\-4\)\) \+ Int64\(\-83\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( DISTINCT - 4 ) + - 83 AS col2, 13 AS col2 +---- +-82 +13 query I rowsort SELECT ALL - 95 AS col2 @@ -43383,8 +43757,11 @@ SELECT - COUNT ( * ), 93 * + COUNT ( * ) + - 87 + NULLIF ( - - 81, 90 * - 31 ) A # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col1" at position 0 and "\(\- nullif\(\(\- Int64\(\-40\)\), Int64\(\-57\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 AS col1, - NULLIF ( - - 40, + - 57 ) AS col1 +---- +-40 +81 query I rowsort label-8345 SELECT DISTINCT MAX ( DISTINCT + + 33 ) AS col0 @@ -43450,8 +43827,11 @@ SELECT + 85 * + + 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* CAST\(NULL AS Int32\) \* Int64\(6\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-72\)\) \+ Int64\(\-93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 36 * + CAST ( NULL AS INTEGER ) * + 6 col1, COUNT ( * ) + - - 72 + - 93 AS col1 +---- +-20 +NULL query I rowsort label-8358 SELECT + NULLIF ( - SUM ( ALL - 81 ), - 4 * - + NULLIF ( + 27, - 37 ) ) @@ -44751,8 +45131,11 @@ SELECT ALL - COALESCE ( - - CAST ( + 51 AS INTEGER ), + 7, - 43 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col2" at position 0 and "min\(Int64\(87\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 68 ) AS col2, + MIN ( + 87 ) AS col2 +---- +-68 +87 query II rowsort label-8612 SELECT ALL - 33 / - + 65, - 58 AS col1 @@ -45514,8 +45897,11 @@ SELECT DISTINCT 21 AS col2 # 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\(25\)" at position 0 and "Int64\(25\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 25, 25 +---- +25 +25 query I rowsort label-8757 SELECT DISTINCT + + COUNT ( * ) * + MAX ( + 85 ) + - 99 * - 31 * COUNT ( * ) - - 29 @@ -46455,8 +46841,11 @@ SELECT COUNT ( * ) / - 94 - - 48 AS col2 # 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 col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 18 AS col0, + 63 AS col0 +---- +-18 +63 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -47110,8 +47499,11 @@ SELECT ALL - 45 AS col2, 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-83\)\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 83 AS col2, + 34 AS col2 +---- +34 +83 query I rowsort SELECT ALL - ( 30 ) + - 80 AS col1 @@ -47486,8 +47878,11 @@ SELECT ALL + - 10 + - SUM ( + 41 ) * - 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 AS col2, + 62 AS col2 +---- +31 +62 query I rowsort SELECT - 44 + + 27 AS col1 @@ -47671,8 +48066,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5460 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* \(\- Int64\(65\)\) \+ Int64\(\-12\) / Int64\(\-41\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 * - + 65 + - 12 / + - 41 AS col2, COUNT ( * ) AS col2 +---- +-5460 +1 query I rowsort label-9174 SELECT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col0 @@ -47798,8 +48196,12 @@ SELECT ALL - 56 col0 # Datafusion - Expected - 59 # Datafusion - Expected - -7 # Datafusion - Expected - 5580 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) / Int64\(12\) AS col2" at position 1 and "Int64\(93\) \* Int64\(60\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 59, - 90 / 12 AS col2, + 93 * 60 AS col2 +---- +-7 +5580 +59 query I rowsort label-9198 SELECT ALL COUNT ( + - 65 ) + + 14 @@ -49062,8 +49464,11 @@ 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\(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\. +query II valuesort SELECT ALL 62 / - - 53 + - MIN ( + - 70 ) + - - COUNT ( * ) / - SUM ( 44 ) AS col2, + 33 AS col2 +---- +33 +71 query I rowsort label-9441 SELECT - + CAST ( NULL AS INTEGER ) * - 81 @@ -49115,8 +49520,11 @@ SELECT ALL - CAST ( 55 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(74\)\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 74 AS col1, + 34 col1 +---- +-74 +34 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -49337,8 +49745,11 @@ SELECT ALL - 91, + COALESCE ( + 45, + + 69 * - 66 * COALESCE ( + 35, - ( - 0 ), # 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 col1" at position 0 and "Int64\(46\) \- Int64\(42\) \+ Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 62 AS col1, 46 - 42 + - 1 AS col1 +---- +-62 +3 query I rowsort SELECT DISTINCT + COALESCE ( - 84, 73, ( - 23 ) + - - 22 ) + + + 10 @@ -49928,14 +50339,20 @@ SELECT 15 - - 62 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 col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 60 AS col2, 1 AS col2 +---- +1 +60 # 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\(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\. +query II valuesort SELECT COUNT ( * ) + 48 AS col2, ( + + CASE + 24 WHEN - - 45 / - - COALESCE ( - ( + + MAX ( - 58 ) ), 84 ) THEN 50 ELSE + 68 * - 72 + - 37 + - 92 END ) AS col2 +---- +-5025 +49 query I rowsort SELECT ALL CASE - ( - 7 ) WHEN 65 + + 53 + 60 * + 31 THEN - + ( + ( - - 88 ) ) WHEN + 54 THEN NULL WHEN - 89 + 59 - - 23 * + + 80 + 32 THEN + 97 + + + 20 ELSE NULL END col0 @@ -50218,8 +50635,11 @@ SELECT ALL + 25 col1, - ( + 47 ) + - COUNT ( * ) + - 44 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-72\) \* Int64\(\-78\) \* \(\- Int64\(\-44\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \- CASE Int64\(\-46\) WHEN Int64\(\-50\) THEN NULL WHEN CAST\(Int64\(20\) AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(75\) \+ Int64\(2\) THEN Int64\(\-26\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1 +NULL query I rowsort label-9664 SELECT COUNT ( * ) / + + 58 + + 89 @@ -50720,8 +51140,11 @@ SELECT DISTINCT - 50 * + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col1" at position 0 and "Int64\(92\) \+ \(\- coalesce\(CAST\(NULL AS Int32\), Int64\(73\)\)\) / Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 23 AS col1, 92 + - COALESCE ( + + CAST ( NULL AS INTEGER ), + 73 ) / 9 col1 +---- +-23 +84 query I rowsort SELECT ALL - 32 + COALESCE ( 68, - - 24 ) @@ -50773,8 +51196,11 @@ SELECT 42 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \+ Int64\(\-47\) \+ Int64\(56\) / Int64\(28\) AS col0" at position 0 and "Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + ( 80 ) ) + - 47 + + 56 / + 28 AS col0, - 25 AS col0 +---- +-25 +35 query I rowsort label-9770 SELECT - 6 + - + COUNT ( * ) AS col2 @@ -50852,8 +51278,11 @@ NULL # 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 "Int64\(\-46\) AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 46 AS col1, + 17 AS col1 +---- +-46 +17 query I rowsort label-9785 SELECT COALESCE ( 71, - 40 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), + 85 ) AS col0 @@ -51048,8 +51477,11 @@ SELECT ALL + - 80 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(73\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 73 ) + COUNT ( * ) + - ( + CAST ( NULL AS INTEGER ) ) AS col0, 18 AS col0 +---- +18 +NULL query I rowsort SELECT DISTINCT + 72 AS col1 @@ -51107,8 +51539,11 @@ SELECT ALL 1 + - + 88 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 col1" at position 0 and "Int64\(\-65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 21 AS col1, - 65 AS col1 +---- +-21 +-65 query I rowsort SELECT ALL 25 + + 26 @@ -51240,14 +51675,20 @@ 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\(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\. +query II valuesort SELECT 22 AS col2, - 68 * - NULLIF ( - 56, + 30 + - 8 + - 10 + 95 * - NULLIF ( COUNT ( * ), 13 * - 45 ) / + - NULLIF ( 31, + 38 ) ) AS col2 +---- +-3808 +22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "CAST\(\(\- sum\(Int64\(36\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 22 AS col2, CAST ( ( - SUM ( + ( 36 ) ) ) AS INTEGER ) AS col2 +---- +-36 +22 query I rowsort label-9859 SELECT ALL - ( - + COUNT ( * ) ) / 37 + + 15 @@ -51854,8 +52295,11 @@ SELECT ALL + 46 * + 0 * + 30 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col1" at position 0 and "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 70 ) AS col1, 58 AS col1 +---- +-70 +58 query I rowsort SELECT ( - CASE - 77 WHEN - 9 THEN - 41 * 9 END ) diff --git a/data/sqlite/random/expr/slt_good_14.slt b/data/sqlite/random/expr/slt_good_14.slt index 3eb7c96..002f569 100644 --- a/data/sqlite/random/expr/slt_good_14.slt +++ b/data/sqlite/random/expr/slt_good_14.slt @@ -609,8 +609,11 @@ SELECT ALL COALESCE ( - COUNT ( * ), + 36 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 AS col0, + 19 AS col0 +---- +19 +86 query I rowsort label-110 SELECT + COUNT ( * ) + + 2 * + - 85 AS col1 @@ -640,8 +643,11 @@ SELECT DISTINCT - 35 / 33 / 65 * 36 + - 75 + + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col2" at position 0 and "Int64\(90\) \- Int64\(42\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 36 col2, 90 - + 42 + COUNT ( * ) AS col2 +---- +36 +49 query I rowsort label-116 SELECT - 80 * 66 / 48 / CAST ( NULL AS INTEGER ) * + 6 col1 @@ -689,8 +695,11 @@ 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\(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\. +query II valuesort SELECT + 4 * - COUNT ( * ) AS col2, 93 + + 72 AS col2 +---- +-4 +165 query I rowsort SELECT + CASE - 30 WHEN - ( - 29 ) * 6 + 86 THEN + + 34 / - 90 END @@ -700,8 +709,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \+ \(\- Int64\(93\)\) / Int64\(95\) \+ Int64\(\-94\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 87 + + ( - + 93 ) / + 95 + - 94 AS col1, + 62 AS col1 +---- +-7 +62 query I rowsort label-127 SELECT ALL 50 - - 23 * - COUNT ( * ) + - - ( - - 63 ) * 34 @@ -805,14 +817,20 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 - - ( 10 ) AS col0, COUNT ( * ) * - 80 AS col0 +---- +-80 +85 # 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\(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\. +query II valuesort 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 +---- +4484 +NULL query I rowsort label-147 SELECT DISTINCT + 91 / + - MIN ( - - 42 ) @@ -1054,14 +1072,20 @@ SELECT ALL - COALESCE ( - - 51, 37, - ( 70 ) * - 0 - - + COUNT ( * ) + 45 / - 55 # 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\(\-84\) / \(\- Int64\(\-79\)\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 84 / - - 79 AS col1, 83 AS col1 +---- +-1 +83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, COUNT ( * ) AS col2 +---- +1 +1 query I rowsort label-195 SELECT DISTINCT - 52 / + + 67 AS col1 @@ -1373,8 +1397,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "\(\- CAST\(Int64\(0\) AS Int32\)\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 AS col2, - CAST ( + 0 AS INTEGER ) - + COUNT ( * ) + - 5 AS col2 +---- +-6 +31 query I rowsort label-255 SELECT NULLIF ( + + 7, + 89 / + + 2 + + + 56 - - + 88 + - 71 + - + ( + SUM ( 18 ) ) / - + 14 * - SUM ( - - 58 ) * 22 * ( + COUNT ( * ) ) ) + 98 / - 93 @@ -1775,8 +1802,11 @@ SELECT + 96 / - 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(18\), Int64\(77\) \* \(\- \(\- Int64\(\-57\)\)\) \* CAST\(NULL AS Int32\) \* Int64\(61\)\)\) \+ Int64\(58\) AS col1" at position 0 and "nullif\(\(\- Int64\(96\)\), Int64\(30\) / Int64\(43\) \+ Int64\(69\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( + 18, + 77 * - ( - - 57 ) * + CAST ( NULL AS INTEGER ) * + + 61 ) + + 58 col1, + NULLIF ( - + 96, 30 / + 43 + + 69 ) AS col1 +---- +-96 +40 query I rowsort label-331 SELECT ALL - 80 * + CASE + + 78 WHEN - COUNT ( * ) * - + 5 THEN MAX ( - 87 ) END @@ -1970,8 +2000,12 @@ SELECT + 73 + COUNT ( * ) * + 97 col2 # Datafusion - Expected - -97 # Datafusion - Expected - 1 # Datafusion - Expected - 2250 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 97 AS col2, COUNT ( * ) AS col2, - - 36 * ( + 64 ) - + - MAX ( DISTINCT + - 54 ) col2 +---- +-97 +1 +2250 query I rowsort SELECT + 90 * 97 @@ -2243,8 +2277,11 @@ SELECT DISTINCT - 2 * - 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-92\)\) AS col1" at position 0 and "Int64\(7\) \+ Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - 92 ) AS col1, + 7 + 22 AS col1 +---- +29 +92 query I rowsort SELECT ALL + 65 + 34 @@ -3105,8 +3142,11 @@ SELECT ALL - MIN ( + 12 ) * - ( CAST ( + COUNT ( ( 50 ) ) AS INTEGER ) ) AS col0 # 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\(76\) \+ Int64\(19\) AS col1" at position 0 and "Int64\(33\) / coalesce\(nullif\(Int64\(91\), Int64\(54\)\), Int64\(90\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 76 + 19 col1, + 33 / + COALESCE ( NULLIF ( + 91, 54 ), + 90 ) AS col1 +---- +0 +95 query I rowsort SELECT ALL 49 - - + ( COALESCE ( - - 94, 38 ) ) + + - ( + + 27 ) AS col2 @@ -3299,8 +3339,11 @@ SELECT ALL 38 / - 80 * + 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2392 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(46\)\) \* Int64\(52\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + - ( + 46 ) ) * 52 AS col0, + ( CAST ( NULL AS INTEGER ) ) AS col0 +---- +-2392 +NULL query I rowsort label-621 SELECT ( + 61 ) + + 95 / + 25 @@ -3888,8 +3931,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 8645 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "Int64\(\-95\) \* Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + + 51 ) AS col0, - 95 * - 91 AS col0 +---- +51 +8645 query I rowsort label-733 SELECT DISTINCT - COUNT ( DISTINCT - + 89 ) AS col0 @@ -3914,8 +3960,11 @@ SELECT ALL + 50 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - 107 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col0" at position 0 and "Int64\(67\) \- \(\- Int64\(40\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 11 AS col0, 67 - + - ( 40 ) AS col0 +---- +-11 +107 query II rowsort SELECT - 17 AS col1, 85 + + 92 @@ -3936,8 +3985,11 @@ SELECT SUM ( ALL + 19 ) * - COALESCE ( - 5, + 39, 96 + + 7 - + 51 ) * 48 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7130 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* Int64\(5\) \* Int64\(62\) AS col2" at position 0 and "sum\(Int64\(\-38\)\) \* \(\- Int64\(21\)\) \* nullif\(Int64\(0\), Int64\(69\) \+ Int64\(\-9\) \- Int64\(21\) \* Int64\(\-7\) \* Int64\(\-12\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 23 * 5 * 62 AS col2, SUM ( - 38 ) * - + 21 * NULLIF ( + + 0, + 69 + - 9 - + + 21 * + - 7 * - 12 ) AS col2 +---- +0 +7130 query I rowsort label-742 SELECT CASE + 94 WHEN MIN ( ALL - 49 ) * + 20 - + COUNT ( * ) THEN 94 WHEN CAST ( - 10 AS INTEGER ) * - 18 THEN NULL ELSE NULL END + + + 33 * - + COALESCE ( - 12, + + 47, 25 ) AS col2 @@ -4145,8 +4197,12 @@ NULL # Datafusion - Expected - 4009 # Datafusion - Expected - 689 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(\-19\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ coalesce\(\(\- Int64\(\-43\)\), CAST\(NULL AS Int32\) \* Int64\(21\) \+ Int64\(\-37\)\) AS col2" at position 1 and "Int64\(71\) \- Int64\(80\) \+ \(\- \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) \* Int64\(10\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 87 + 74 * 53 + - 0 col0, 34 * - 19 * - COUNT ( * ) + COALESCE ( - - 43, CAST ( NULL AS INTEGER ) * 21 + + - 37 ) col2, + 71 - + + 80 + - - ( - - COUNT ( * ) ) * + 10 AS col2 +---- +1 +4009 +689 query I rowsort SELECT 97 + + 90 * - ( + 7 ) + 11 @@ -4463,8 +4519,11 @@ 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\(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\. +query II valuesort SELECT + 2 / - ( ( + + COUNT ( * ) ) ) AS col0, 87 * - 14 AS col0 +---- +-1218 +-2 query I rowsort label-840 SELECT ALL 12 * + 86 * + COUNT ( * ) + - - 53 - 21 @@ -4525,8 +4584,11 @@ 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\(1\)\) AS count\(\*\)\), Int64\(\-58\), Int64\(\-57\)\) \+ Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 72 * - - 86 AS col1, COALESCE ( - + COUNT ( * ), + + ( - 58 ), + - 57 ) + 7 AS col1 +---- +6 +6192 query II rowsort SELECT DISTINCT 60, 80 AS col0 @@ -4696,8 +4758,11 @@ SELECT - + NULLIF ( + - 33, + 41 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1961 # Datafusion - Expected - -2268 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \* Int64\(\-37\) AS col1" at position 0 and "Int64\(\-28\) \* \(\- Int64\(\-81\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 * - 37 col1, - 28 * - - 81 AS col1 +---- +-1961 +-2268 query II rowsort label-884 SELECT ALL MIN ( + 45 ) AS col2, - 73 AS col1 @@ -4757,8 +4822,12 @@ 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\(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\. +query III valuesort SELECT DISTINCT 5, COUNT ( * ) * - 0 + 52 col2, + + 14 AS col2 +---- +14 +5 +52 query II rowsort SELECT DISTINCT 32 + + + 34 * + - 92 AS col1, - 7 @@ -4906,8 +4975,11 @@ SELECT - 51 + - 55 + + + NULLIF ( - + 25, ( + 70 ) ) AS col0, 60 # 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 col2" at position 0 and "Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 77 AS col2, - 76 AS col2 +---- +-76 +77 query I rowsort label-923 SELECT ALL - - 94 + + MIN ( ALL - 65 ) @@ -5003,8 +5075,11 @@ SELECT DISTINCT COUNT ( * ) * - + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3360 # Datafusion - Expected - -910 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \* Int64\(\-60\) AS col1" at position 0 and "Int64\(10\) \* \(\- Int64\(91\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 56 * - 60 AS col1, + 10 * - + 91 col1 +---- +-3360 +-910 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -5032,8 +5107,11 @@ SELECT + 20 * 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -1034 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "Int64\(\-47\) \* Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 6 ) AS col2, + ( - 47 ) * + + 22 col2 +---- +-1034 +6 query I rowsort SELECT + 13 + + - 15 AS col0 @@ -5735,8 +5813,11 @@ SELECT ALL + 78 * + - 90 + + 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 36000 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ \(\- Int64\(\-1\)\) \+ \(\- Int64\(82\)\) AS col2" at position 0 and "Int64\(\-16\) \* Int64\(\-30\) \* Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 97 + - - 1 + - + 82 AS col2, - 16 * - 30 * + 75 AS col2 +---- +16 +36000 query I rowsort SELECT ALL 85 * + - ( + - 90 ) AS col2 @@ -6779,8 +6860,11 @@ SELECT - COUNT ( * ) + - MIN ( DISTINCT + + 18 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2837 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) \* \(\- sum\(Int64\(\-74\)\)\) \+ Int64\(\-99\) AS col2" at position 0 and "Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 37 * - SUM ( ALL + - 74 ) + - 99 AS col2, ( - 95 ) AS col2 +---- +-2837 +-95 query I rowsort label-1278 SELECT + - ( - - NULLIF ( - + 26, 27 + + 85 * - COUNT ( * ) ) ) - ( + 96 ) AS col2 @@ -7658,8 +7742,11 @@ SELECT 63 AS col2, + 41 * - - 54 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 85 col2, + 77 AS col2 +---- +-85 +77 query I rowsort SELECT DISTINCT 29 + + 71 AS col2 @@ -8111,8 +8198,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 AS col0, 30 * COUNT ( * ) + 98 AS col0 +---- +128 +35 query I rowsort label-1534 SELECT CASE - COALESCE ( COUNT ( * ), + 40 ) WHEN COUNT ( * ) THEN 13 + + 83 * 71 WHEN - 80 THEN NULL END col0 @@ -8145,8 +8235,11 @@ SELECT + + 44 + + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col0" at position 0 and "Int64\(82\) \+ Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 72 AS col0, ( 82 ) + 20 AS col0 +---- +102 +72 query I rowsort label-1540 SELECT DISTINCT 84 * + CASE + 37 WHEN + 81 THEN COUNT ( * ) WHEN 54 THEN NULL END + 36 * + COUNT ( * ) @@ -8647,8 +8740,11 @@ SELECT ALL + 88, + 78 + + 46 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "Int64\(\-51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 AS col1, - 51 AS col1 +---- +-51 +36 query I rowsort SELECT - - 54 + 67 * 86 @@ -8658,8 +8754,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 67 * - - 95 AS col0, - 9 * MAX ( + 42 ) * - 65 * - COUNT ( * ) AS col0 +---- +-24570 +-6365 query I rowsort SELECT - 85 + - 80 + - - 83 + - - 11 * - + 23 @@ -8916,8 +9015,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 127 # Datafusion - Expected - -130 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ Int64\(27\) \+ Int64\(77\) AS col0" at position 0 and "\(\- min\(DISTINCT Int64\(80\)\)\) \+ Int64\(\-50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 23 + + 27 + + 77 AS col0, - MIN ( DISTINCT + 80 ) + - 50 AS col0 +---- +-130 +127 query I rowsort label-1689 SELECT + NULLIF ( - + COUNT ( * ), - 37 ) / 40 + - + 91 AS col0 @@ -8985,8 +9087,11 @@ SELECT + - 25 * + 84 + + - 95 AS col1, + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -1491 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "Int64\(71\) \* Int64\(\-21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 AS col2, 71 * - 21 AS col2 +---- +-1491 +85 query I rowsort SELECT + 10 * - 66 + ( + 44 ) + 32 * - 42 * - + 49 @@ -9409,8 +9514,11 @@ SELECT + COUNT ( * ) * - - NULLIF ( - 70, + 68 * 75 ) * 49 + + + 83 - 37 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ Int64\(64\) AS col0" at position 0 and "Int64\(\-9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + + 8 ) + 64 AS col0, ( + - 9 ) col0 +---- +-9 +72 query I rowsort label-1782 SELECT ALL 51 / 8 + - - 29 AS col0 @@ -9822,8 +9930,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 49 AS col2, + COUNT ( * ) * + 14 AS col2 +---- +14 +49 query I rowsort SELECT + 89 * + + 91 @@ -9974,8 +10085,11 @@ SELECT ALL - 40 AS col0, + COUNT ( * ) / + 47 + + - 84 * - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(84\)\) \* Int64\(28\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 19 AS col1, COALESCE ( + - COUNT ( * ), + + 84 ) * + 28 + + - CAST ( NULL AS INTEGER ) col1 +---- +19 +NULL query I rowsort label-1888 SELECT + COUNT ( * ) * + 5 @@ -10014,8 +10128,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- Int64\(47\)\)\) AS col2" at position 0 and "Int64\(52\) / \(\- Int64\(67\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( - + 47 ) col2, + 52 / - + 67 AS col2 +---- +-47 +0 query II rowsort label-1895 SELECT CAST ( + 72 AS INTEGER ) col0, 27 AS col1 @@ -10026,8 +10143,11 @@ SELECT CAST ( + 72 AS INTEGER ) col0, 27 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(81\) AS Int32\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( 81 AS INTEGER ) AS col2, 26 AS col2 +---- +26 +81 query I rowsort SELECT + 66 * - - 67 AS col0 @@ -10255,8 +10375,11 @@ SELECT ALL ( + + 80 ) + - + 64 / 1 * - MIN ( DISTINCT + - 53 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3510 # Datafusion - Expected - -1537 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- coalesce\(Int64\(37\), \(\- Int64\(17\)\)\)\)\) \* Int64\(96\) \+ Int64\(\-42\) AS col0" at position 0 and "Int64\(\-53\) \* max\(Int64\(29\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - COALESCE ( 37, - + 17 ) ) * 96 + - 42 AS col0, - 53 * MAX ( + 29 ) AS col0 +---- +-1537 +3510 query I rowsort label-1941 SELECT ALL MIN ( ALL - 65 ) + - + 16 * + 25 * 72 * - 84 AS col1 @@ -10366,8 +10489,12 @@ SELECT 92 * + + 61 # Datafusion - Expected - -79 # Datafusion - Expected - 84 # Datafusion - Expected - 713 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col2" at position 0 and "Int64\(83\) \+ Int64\(5\) \+ Int64\(38\) \* Int64\(29\) \+ Int64\(48\) \+ Int64\(\-7\) \* Int64\(75\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 79 AS col2, + 84 AS col1, + 83 + 5 + + 38 * + ( 29 ) + 48 + - 7 * + 75 AS col2 +---- +-79 +713 +84 query I rowsort SELECT 82 * 0 @@ -10484,8 +10611,11 @@ SELECT + 7 * - 80 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / Int64\(\-26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT + CAST ( NULL AS FLOAT8 ) AS col1, - CAST ( NULL AS INTEGER ) / - 26 AS col1 +---- +NULL +NULL query I rowsort SELECT ALL COALESCE ( - - 95, - 72, + + 75 * - 92 ) @@ -10617,8 +10747,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 5460 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(\-1\) \* Int64\(\-70\) AS col0" at position 0 and "Int64\(13\) / Int64\(35\) \- Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 78 * - 1 * - 70 AS col0, + 13 / + 35 - 97 AS col0 +---- +-97 +5460 query I rowsort SELECT - + CASE + + 96 WHEN + - 61 THEN + 94 ELSE NULL END * - + 82 AS col0 @@ -10628,8 +10761,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 8428 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \* Int64\(\-86\) AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 98 * - 86 col2, + 74 AS col2 +---- +74 +8428 query I rowsort SELECT + 81 * + 56 + - 57 AS col2 @@ -10698,8 +10834,11 @@ SELECT ALL + 5 + ( 95 ) + - 91 * - - 99 * + COALESCE ( CASE - 50 WHEN COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, - 79 AS col0 +---- +-79 +1 query I rowsort SELECT - ( - 46 ) col0 @@ -10838,8 +10977,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 60 AS col1, + COUNT ( * ) AS col1 +---- +-60 +1 query I rowsort label-2050 SELECT - 29 * - 9 * + + 4 * - ( - + 66 ) * COUNT ( 56 ) AS col0 @@ -10906,8 +11048,11 @@ SELECT 85 + + 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - 168 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(8\) AS col1" at position 0 and "Int64\(\-91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 * + + 8 AS col1, - 91 AS col1 +---- +-91 +168 query I rowsort label-2063 SELECT ALL + CASE + + 53 WHEN 27 * + + COUNT ( * ) THEN NULL WHEN + + ( - MIN ( DISTINCT + 75 ) ) + + 97 THEN ( - 44 ) ELSE NULL END + + 7 @@ -11564,8 +11709,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(84\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 + - CAST ( NULL AS INTEGER ) * + 84 AS col1, + 80 AS col1 +---- +80 +NULL query II rowsort SELECT 64, 36 AS col0 @@ -11897,8 +12045,12 @@ 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\(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\. +query III valuesort SELECT - - COUNT ( * ) AS col0, 33 + + SUM ( + 10 ) - - COUNT ( * ) + 28 + + 95 / - 97 AS col1, - COUNT ( * ) AS col1 +---- +-1 +1 +72 query I rowsort label-2251 SELECT - CAST ( 8 AS INTEGER ) + 83 @@ -11955,8 +12107,12 @@ SELECT DISTINCT + CAST ( SUM ( DISTINCT - 58 ) AS INTEGER ) + MAX ( + 24 ) AS co # Datafusion - Expected - -30 # Datafusion - Expected - -36 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \+ Int64\(\-71\) \- Int64\(32\) AS col0" at position 1 and "\(\- Int64\(\-31\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 30, + 67 + + - 71 - + 32 AS col0, - - 31 AS col0 +---- +-30 +-36 +31 query II rowsort SELECT 70, - 30 col1 @@ -13281,8 +13437,11 @@ SELECT COUNT ( * ) * - - CASE - + 59 WHEN - + 73 THEN + 72 ELSE - - ( - 98 ) END # 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\(9\) \* Int64\(9\) AS col2" at position 0 and "Int64\(23\) / \(\- Int64\(95\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + + 9 ) * ( + 9 ) AS col2, 23 / - + 95 AS col2 +---- +0 +81 query I rowsort label-2518 SELECT ALL + + 58 / + + ( + 58 ) * + COUNT ( DISTINCT + 31 ) @@ -13441,8 +13600,11 @@ SELECT - 34 * - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "Int64\(\-41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 62 AS col1, - 41 AS col1 +---- +-41 +62 query I rowsort label-2548 SELECT DISTINCT + COUNT ( * ) * + 19 * + - COALESCE ( + 76, + - COUNT ( * ) ) * COUNT ( * ) @@ -13659,8 +13821,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 AS col1, + 90 - + - COUNT ( * ) AS col1 +---- +50 +91 query I rowsort label-2590 SELECT - + COALESCE ( + 36, + + 19, + COUNT ( * ) ) * - 5 @@ -13905,8 +14070,11 @@ SELECT ALL - - 58 * - COUNT ( * ) * 52 # 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 "Int64\(33\) \+ Int64\(\-36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + 98 ) col2, 33 + - 36 AS col2 +---- +-3 +-98 query I rowsort SELECT DISTINCT - 9 * - COALESCE ( + NULLIF ( - ( - 19 ), + 45 ), + + 9 + + - 68 ) AS col2 @@ -14038,8 +14206,11 @@ 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\(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\. +query II valuesort SELECT ALL + 7 * + 39 * - COUNT ( * ) * - 98 + 64 + + 21 AS col0, - SUM ( ALL + 22 ) AS col0 +---- +-22 +26839 query I rowsort SELECT 10 + - ( 31 ) + - 94 @@ -14099,8 +14270,11 @@ SELECT + 35 + + 3 + CASE 85 WHEN + - AVG ( DISTINCT - 82 ) + 90 + + 32 * - 77 / # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(\-30\)\), min\(Int64\(96\)\)\) \+ Int64\(12\) \+ Int64\(\-66\) AS col1" at position 0 and "Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL NULLIF ( - - 30, + MIN ( 96 ) ) + + ( + 12 ) + + - 66 AS col1, - 80 AS col1 +---- +-24 +-80 query I rowsort label-2673 SELECT - COUNT ( * ) + - + 92 + - 11 + - 13 - 40 + + 25 * - CAST ( NULL AS INTEGER ) + - 48 * + 43 AS col1 @@ -14120,8 +14294,11 @@ SELECT ALL - 34 + + 18 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -117 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \+ \(\- Int64\(53\)\) AS col1" at position 0 and "Int64\(\-96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 + - + 53 AS col1, - 96 AS col1 +---- +-117 +-96 query I rowsort label-2677 SELECT - COUNT ( * ) + - 42 * CASE AVG ( + 18 ) WHEN - 79 THEN 33 + + + COUNT ( * ) ELSE NULL END / + ( + 69 ) AS col0 @@ -14372,8 +14549,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * - COUNT ( * ) * + SUM ( ALL + + 51 ) AS col1, 4 + + COUNT ( * ) + - MIN ( ALL + 15 ) AS col1 +---- +-10 +-51 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -14403,8 +14583,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 43 AS col0, - COUNT ( * ) AS col0 +---- +-1 +-43 query I rowsort SELECT NULLIF ( 66, + 49 ) + 79 col1 @@ -14470,8 +14653,11 @@ SELECT 62 * + + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 +---- +-1 +-1 query I rowsort SELECT DISTINCT + + 99 * - ( + 70 ) @@ -14820,8 +15006,11 @@ SELECT CAST ( - COALESCE ( - ( - MAX ( + - 47 ) ), - 8 + + COUNT ( * ) - + + 4 * # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - -228 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(47\) WHEN CAST\(NULL AS Int32\) \* Int64\(59\) \* \(\- max\(Int64\(97\)\)\) \- \(\- \(\- CASE Int64\(72\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN \(\- Int64\(88\)\) WHEN Int64\(\-15\) THEN Int64\(80\) \+ Int64\(68\) \* \(\- Int64\(\-59\)\) ELSE NULL END\)\) \+ Int64\(\-36\) \* Int64\(\-50\) THEN Int64\(46\) ELSE Int64\(\-49\) / Int64\(9\) \* \(\- \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) END AS col1" at position 0 and "Int64\(\-6\) \* \(\- coalesce\(Int64\(\-38\), Int64\(9\) \+ Int64\(\-62\) \+ nullif\(\(\- Int64\(33\)\), sum\(Int64\(38\)\)\) \* Int64\(3\) \* Int64\(10\) \* Int64\(\-51\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-228 +-5 query I rowsort label-2809 SELECT - 26 * - MAX ( - 17 ) * + + 45 + SUM ( ALL - 72 ) * + 77 col1 @@ -15244,8 +15433,11 @@ SELECT ALL ( - 21 ), 98 - - 8 * - - 16 AS col0 # 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 col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + ( - 89 ) col2, + 0 AS col2 +---- +0 +89 query I rowsort label-2888 SELECT ALL 57 - - 37 + - COUNT ( * ) + + - 80 * - 75 + 79 AS col2 @@ -15405,8 +15597,11 @@ SELECT - + 40 + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -8295 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) \* Int64\(45\) \* Int64\(2\) \* Int64\(92\) \- Int64\(15\) AS col2" at position 0 and "Int64\(\-24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 1 * + 45 * + 2 * 92 - + 15 AS col2, - 24 AS col2 +---- +-24 +-8295 query I rowsort label-2918 SELECT - 29 * - - CAST ( + + 79 AS INTEGER ) * - 23 @@ -15478,8 +15673,11 @@ SELECT DISTINCT + COUNT ( * ) + ( COUNT ( * ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \+ \(\- Int64\(\-1\)\) \+ \(\- Int64\(15\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(0\) \* Int64\(\-93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 21 + - - 1 + - + 15 * + COUNT ( * ) AS col2, 0 * + - 93 AS col2 +---- +0 +7 query I rowsort SELECT DISTINCT 59 * 36 * + ( - 95 ) AS col1 @@ -15577,8 +15775,11 @@ SELECT DISTINCT 74 * 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(42\) \+ Int64\(62\) \+ Int64\(43\) \+ Int64\(74\) \+ CASE Int64\(\-97\) WHEN Int64\(22\) \+ Int64\(59\) THEN NULL WHEN Int64\(80\) \* \(\- CAST\(NULL AS Int32\)\) / Int64\(46\) THEN \(\- \(\- \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\)\) ELSE NULL END \+ \(\- Int64\(85\)\) \- \(\- Int64\(77\)\) AS col0" at position 0 and "Int64\(13\) \+ Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +50 +NULL query I rowsort label-2950 SELECT ALL - + ( + NULLIF ( - COUNT ( - COALESCE ( - + 84, 69 ) ), - + 0 ) ) AS col0 @@ -15644,8 +15845,11 @@ SELECT ALL + 35 * + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -24468576 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \+ Int64\(95\) AS col1" at position 0 and "Int64\(66\) \* Int64\(\-58\) \* Int64\(68\) \* Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 62 + + 95 col1, 66 * - 58 * + 68 * + 94 col1 +---- +-24468576 +33 query I rowsort SELECT DISTINCT + 8 - - 58 @@ -15808,8 +16012,11 @@ SELECT DISTINCT 41 - - 65 * + 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col2" at position 0 and "Int64\(\-94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 29 AS col2, - 94 AS col2 +---- +-29 +-94 query II rowsort label-2993 SELECT ALL COUNT ( * ) AS col2, + 89 * + + 67 AS col1 @@ -16428,8 +16635,11 @@ SELECT 21 - + 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 AS col1, 86 AS col1 +---- +39 +86 query I rowsort SELECT DISTINCT - 55 + - + 80 @@ -16736,8 +16946,11 @@ SELECT DISTINCT - 67 * - - 45 * + MIN ( + + 26 ) + ( + 87 + - 72 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 48 AS col1, 59 AS col1 +---- +48 +59 query I rowsort label-3175 SELECT ALL + 95 / 21 + - 18 @@ -16921,8 +17134,11 @@ 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\(1\)\) AS count\(\*\)\) / Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 col1, - COUNT ( * ) / + 87 AS col1 +---- +0 +77 query I rowsort SELECT DISTINCT + - 62 + - + ( - 90 ) AS col0 @@ -17070,8 +17286,11 @@ SELECT DISTINCT 82 AS col0, 99 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - -13 -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\(\-28\)\) \+ \(\- nullif\(Int64\(14\), Int64\(43\) \* Int64\(60\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 10 AS col1, COUNT ( - 28 ) + - NULLIF ( + 14, 43 * 60 ) AS col1 +---- +-13 +10 query II rowsort SELECT - 67 + 71, 46 + 76 col0 @@ -17242,8 +17461,11 @@ SELECT - 68 - 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2673 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \* \(\- Int64\(\-33\)\) AS col2" at position 0 and "Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 * - - 33 AS col2, 79 AS col2 +---- +-2673 +79 query I rowsort label-3271 SELECT + + COUNT ( DISTINCT + NULLIF ( + 44, 30 + 19 ) ) * + 75 col1 @@ -17263,8 +17485,11 @@ SELECT ALL + 98 + + ( + 17 ) + 89 / - - 82 - + ( 50 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -127 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) \- Int64\(34\) AS col2" at position 0 and "Int64\(0\) \* \(\- \(\- Int64\(53\)\)\) \+ Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 93 - + 34 AS col2, + ( + 0 ) * - - ( 53 ) + + 0 col2 +---- +-127 +0 query II rowsort SELECT ALL - 29 + + 26 AS col2, - 68 @@ -17514,8 +17739,11 @@ SELECT ALL + 26 - - + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 134 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "Int64\(45\) \+ Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 AS col0, + 45 + + 89 AS col0 +---- +134 +8 query II rowsort label-3322 SELECT - CASE + 94 WHEN + 95 THEN + COUNT ( * ) * + 29 ELSE - - 58 END AS col1, ( + 39 ) + + ( - ( COUNT ( * ) ) ) @@ -17560,8 +17788,11 @@ 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 "Int64\(39\) / Int64\(\-94\) AS col1" at position 0 and "Int64\(72\) / Int64\(58\) \+ Int64\(55\) \+ Int64\(\-68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 39 / - 94 AS col1, 72 / 58 + 55 + - 68 AS col1 +---- +-12 +0 query I rowsort label-3330 SELECT ALL 86 / 98 @@ -17755,8 +17986,11 @@ SELECT + CASE COUNT ( * ) WHEN - - AVG ( + 54 ) + - 10 THEN CAST ( NULL AS INTEG # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - -35904 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(14\)\) \+ Int64\(\-25\) AS col1" at position 0 and "Int64\(24\) \* Int64\(17\) \* Int64\(\-88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + SUM ( + + 14 ) + + - 25 AS col1, 24 * 17 * - 88 AS col1 +---- +-11 +-35904 query I rowsort SELECT + 84 + - 88 @@ -17922,8 +18156,11 @@ SELECT ALL + + 42 AS col2, COUNT ( * ) * + + 34 - + 12 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CASE Int64\(97\) WHEN CAST\(Int64\(74\) AS Int32\) \+ Int64\(4\) THEN Int64\(\-3\) \* Int64\(36\) WHEN \(\- Int64\(2\)\) THEN Int64\(\-90\) ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END \- Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-1 +-19 query II rowsort label-3400 SELECT ALL + - 51 AS col1, + COUNT ( * ) * + 5 @@ -18648,8 +18885,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col0" at position 0 and "Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 43 AS col0, + 62 col0 +---- +43 +62 query I rowsort SELECT + 94 * - - 98 @@ -18951,8 +19191,11 @@ SELECT + COUNT ( * ) - - 39 AS col2, + 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(CAST\(NULL AS Int32\), Int64\(\-34\) \+ count\(Int64\(1\)\) AS count\(\*\), Int64\(91\)\) AS col1" at position 0 and "Int64\(29\) / Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COALESCE ( + + CAST ( NULL AS INTEGER ), - 34 + COUNT ( * ), + 91 ) AS col1, 29 / - 62 AS col1 +---- +-33 +0 query I rowsort SELECT 78 * 95 AS col0 @@ -19108,8 +19351,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 27 + 60 * - COUNT ( * ) AS col2, 2 col2 +---- +-33 +2 query I rowsort label-3625 SELECT - - MAX ( + CAST ( + - 36 AS INTEGER ) ) @@ -19379,8 +19625,11 @@ 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\(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\. +query II valuesort 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 +---- +-70 +661572 query I rowsort label-3677 SELECT DISTINCT + ( 81 ) * - NULLIF ( + SUM ( DISTINCT - 48 ), NULLIF ( - MIN ( ALL - - 94 ), + - 27 + NULLIF ( SUM ( + 2 ), COUNT ( * ) ) / + + 6 ) ) AS col2 @@ -19854,8 +20103,11 @@ SELECT + 61 * ( + SUM ( - 86 ) ) * 91 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - -3612 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col2" at position 0 and "Int64\(71\) \* \(\- Int64\(51\)\) \+ Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 46 col2, 71 * - + 51 + 9 AS col2 +---- +-3612 +-46 query I rowsort SELECT ALL - 93 + - ( - - 15 ) @@ -19948,8 +20200,11 @@ SELECT ( 53 ) * + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - -405 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* 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 II valuesort SELECT ALL 9 * - 45 col0, + 35 AS col0 +---- +-405 +35 query I rowsort SELECT 57 - - 86 @@ -20282,8 +20537,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -117 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-47\) \+ Int64\(\-70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col0, - 47 + - 70 AS col0 +---- +-117 +1 query I rowsort SELECT - 27 * 84 AS col0 @@ -20318,8 +20576,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- avg\(DISTINCT Int64\(\-29\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - - 34 + 76 AS col0, - NULLIF ( 21, - - COUNT ( * ) + - AVG ( DISTINCT - 29 ) ) AS col0 +---- +-21 +110 query II rowsort label-3856 SELECT - - COUNT ( * ), 59 AS col2 @@ -20801,8 +21062,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 - - 83 AS col2, - COUNT ( * ) AS col2 +---- +-1 +120 query I rowsort label-3949 SELECT - MIN ( + 29 ) * - 68 - COUNT ( * ) @@ -20953,8 +21217,11 @@ SELECT ALL 44 + - 74 + + - 85 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(0\) AS Int32\) AS col2" at position 0 and "Int64\(\-53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( 0 AS INTEGER ) AS col2, - 53 col2 +---- +-53 +0 query I rowsort SELECT ALL 57 * - + 14 * + + 25 @@ -20979,8 +21246,11 @@ SELECT - CASE + + 34 WHEN 51 - + 86 + + 15 THEN + 43 WHEN - ( + 83 ) THEN NULL E # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(61\), \(\- Int64\(89\)\) \* \(\- Int64\(\-20\)\) \* Int64\(16\)\)\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( + + 61, - + 89 * - - 20 * + 16 ) col2, 13 AS col2 +---- +-61 +13 query I rowsort label-3983 SELECT + 64 + - + 16 + + 20 * - ( 22 ) + + - 41 + - ( - COUNT ( + + NULLIF ( - - 56, 49 / - - 25 ) ) ) @@ -21032,8 +21302,11 @@ SELECT ALL + COUNT ( * ) AS col0, + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3700 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \* Int64\(50\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(66\) \* \(\- CASE Int64\(13\) WHEN Int64\(69\) \+ Int64\(88\) \* Int64\(\-99\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(57\) THEN Int64\(68\) \* \(\- Int64\(73\)\) ELSE NULL END\) \* Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +3700 +NULL query I rowsort label-3993 SELECT + ( + COUNT ( ALL 55 ) ) @@ -21324,8 +21597,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 66 * 61, 0 AS col0, - - COUNT ( * ) AS col0 +---- +0 +1 +4026 query I rowsort SELECT 91 + + 71 @@ -21921,8 +22198,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 23 AS col1, - 54 * + ( + + 6 ) + - COUNT ( * ) AS col1 +---- +-23 +-325 query II rowsort SELECT + 4 AS col0, 14 + - 14 @@ -21944,8 +22224,11 @@ SELECT ALL + 76 + - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* Int64\(\-89\) \* \(\- Int64\(\-56\)\) \* CAST\(NULL AS Int32\) / Int64\(\-70\) AS col0" at position 0 and "Int64\(74\) / Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 * - 89 * ( - - 56 ) * + CAST ( NULL AS INTEGER ) / + - 70 AS col0, 74 / 3 AS col0 +---- +24 +NULL query I rowsort SELECT 81 + + - 23 AS col1 @@ -22304,8 +22587,11 @@ SELECT ALL ( + 78 ) * - 49 * - 69 AS col2, - 63 * - 61 * + 75 + - - 84 - 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -803 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col0" at position 0 and "Int64\(73\) \* Int64\(\-11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 AS col0, 73 * - 11 AS col0 +---- +-803 +35 query II rowsort label-4236 SELECT + CAST ( NULL AS INTEGER ), 36 AS col2 @@ -22917,8 +23203,11 @@ SELECT - 17 + + + 77 + + - 48 AS col2 # 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 Int64\(\-64\) WHEN Int64\(\-23\) \- Int64\(17\) THEN Int64\(93\) \* CAST\(NULL AS Float64\) \+ Int64\(14\) WHEN Int64\(60\) THEN NULL END \* Int64\(3\) \+ Int64\(90\) AS col0" at position 0 and "Int64\(\-33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + CASE - 64 WHEN - 23 - 17 THEN 93 * + + CAST ( NULL AS FLOAT8 ) + 14 WHEN + 60 THEN NULL END * + 3 + + 90 AS col0, - 33 AS col0 +---- +-33 +NULL query I rowsort SELECT - COALESCE ( + - 52, 44 ) @@ -23099,8 +23388,11 @@ 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\(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\. +query II valuesort 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 +---- +-47 +NULL query I rowsort SELECT DISTINCT 93 * - 61 AS col2 @@ -23401,8 +23693,11 @@ 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 col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 1 AS col2, 24 AS col2 +---- +1 +24 query I rowsort SELECT ALL NULLIF ( + + 29, + 10 / + 23 ) @@ -23471,8 +23766,11 @@ SELECT - + 45 + 42 - + + 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CASE Int64\(\-18\) WHEN Int64\(68\) THEN Int64\(55\) ELSE \(\- CASE Int64\(70\) WHEN Int64\(40\) \+ Int64\(\-94\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-54\) WHEN Int64\(94\) THEN Int64\(26\) \* Int64\(3\) END\) END \+ \(\- Int64\(\-56\)\) \+ Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1 +NULL query II rowsort label-4457 SELECT + - 1 AS col2, - 75 + - COUNT ( * ) AS col1 @@ -23570,8 +23868,11 @@ SELECT + 3 + + 32 + 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 700 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col1" at position 0 and "Int64\(14\) \* Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 16 AS col1, + 14 * 50 AS col1 +---- +-16 +700 query II rowsort label-4476 SELECT DISTINCT COUNT ( * ) * + 52, 78 AS col1 @@ -23726,8 +24027,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 116 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(37\) AS col0" at position 0 and "\(\- nullif\(CAST\(NULL AS Int32\), Int64\(86\) \* Int64\(16\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 + + 37 AS col0, - NULLIF ( + CAST ( NULL AS INTEGER ), 86 * + + 16 ) AS col0 +---- +116 +NULL query I rowsort label-4505 SELECT ALL 15 * + COALESCE ( - CAST ( NULL AS INTEGER ), 69 + + 38 / - 44, + - 2 ) @@ -23787,8 +24091,11 @@ SELECT DISTINCT COUNT ( * ) + - - 78 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(71\) AS Int32\)\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( + 71 AS INTEGER ) AS col1, + 96 AS col1 +---- +-71 +96 query I rowsort label-4516 SELECT CASE - ( CASE 45 WHEN - 70 THEN 1 WHEN ( - 5 ) * 93 + + 40 THEN NULL END ) WHEN + CAST ( - 28 AS INTEGER ) THEN NULL ELSE + 84 END / + 26 @@ -24005,8 +24312,11 @@ 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\(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\. +query II valuesort SELECT - 21 * - COUNT ( * ) - + 67 AS col0, 13 * + 55 * + 22 AS col0 +---- +-46 +15730 query I rowsort label-4557 SELECT + - ( - 40 ) + - COUNT ( * ) + 91 AS col1 @@ -24214,8 +24524,11 @@ SELECT 70 * - + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \+ Int64\(41\) / Int64\(\-91\) AS col2" at position 0 and "Int64\(\-36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 98 + + 41 / + - 91 col2, ( - 36 ) AS col2 +---- +-36 +-98 query I rowsort SELECT DISTINCT + 89 + 6 col1 @@ -25448,8 +25761,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) + + 45 col0, + 48 + + 38 AS col0 +---- +46 +86 query I rowsort label-4837 SELECT ALL - 63 + - - 97 + + COUNT ( * ) * + - 83 * - + 47 + - + 67 * - 5 * 57 @@ -25518,8 +25834,11 @@ SELECT - 80 * - - 71, 75 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, 89 AS col0 +---- +1 +89 query I rowsort label-4850 SELECT - SUM ( + + 71 ) + + 63 * 1 * + 38 AS col0 @@ -25559,8 +25878,11 @@ SELECT ALL - + 51 * 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 117 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(89\) \+ \(\- Int64\(55\)\) \+ Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col0, - COUNT ( * ) + + 89 + - + 55 + + 84 AS col0 +---- +1 +117 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -25593,8 +25915,11 @@ SELECT + + MIN ( ALL 68 ) * + 30 # 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 "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 AS col0, + 18 AS col0 +---- +18 +65 query II rowsort SELECT ALL + + ( - 26 ) AS col1, + 11 AS col0 @@ -26130,8 +26455,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * + - 18 * + 71 * - - 24 * 99 col1, 17 AS col1 +---- +17 +3036528 query I rowsort SELECT ALL + 10 * - 47 AS col2 @@ -26168,8 +26496,11 @@ SELECT ALL ( + 96 ) * + CAST ( - 15 AS INTEGER ) - + + 45 AS col1, - 94 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2, + 14 AS col2 +---- +14 +NULL query I rowsort label-4971 SELECT ALL - 17 * - 64 / + + MAX ( - 8 ) + - CASE 38 WHEN 3 THEN 61 END * 50 + - 44 + 38 * CAST ( NULL AS INTEGER ) + COALESCE ( + COUNT ( * ) + COUNT ( * ), 1 ) AS col1 @@ -26334,8 +26665,11 @@ SELECT - 85 / 82 + + - ( + 39 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 AS col2, 56 AS col2 +---- +56 +91 query I rowsort label-5003 SELECT 48 / - 85 AS col1 @@ -26577,8 +26911,11 @@ SELECT DISTINCT COUNT ( - + ( + 96 ) ) / - 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27520 # Datafusion - Expected - 7227 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \* Int64\(8\) \* Int64\(40\) AS col1" at position 0 and "Int64\(99\) \* Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 86 * + 8 * + 40 AS col1, + 99 * + 73 AS col1 +---- +-27520 +7227 query I rowsort label-5049 SELECT 36 - + - COUNT ( * ) AS col2 @@ -26614,8 +26951,11 @@ SELECT + 97 * + ( 59 ) # 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 "Int64\(82\) / Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 AS col0, + 82 / 16 AS col0 +---- +-92 +5 query I rowsort label-5056 SELECT DISTINCT + ( - 64 ) / + - 1 AS col0 @@ -26696,8 +27036,11 @@ SELECT DISTINCT + 64, - 51 / - 59 * + COUNT ( * ) + - - 59 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 80 col0, 5 AS col0 +---- +5 +80 query I rowsort label-5071 SELECT + CAST ( 67 AS INTEGER ) + - 13 + 48 * - 66 AS col1 @@ -27103,8 +27446,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col0, 35 / - + COUNT ( * ) + + COUNT ( * ) - 31 AS col0 +---- +-1 +-65 query II rowsort SELECT + 87 col0, 63 AS col1 @@ -27126,8 +27472,11 @@ SELECT DISTINCT 43 AS col1, + 14 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 66 AS col1, 20 AS col1 +---- +-66 +20 query II rowsort SELECT DISTINCT - 41 AS col1, 50 AS col0 @@ -27420,8 +27769,12 @@ 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\(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\. +query III valuesort SELECT DISTINCT - - 19 * + - NULLIF ( 55, - MAX ( + 9 ) ) * - 56 + + - 28 + - 29 AS col1, - COUNT ( * ) AS col2, - 67 AS col2 +---- +-1 +-67 +58463 query I rowsort label-5208 SELECT DISTINCT - COUNT ( * ) + 28 + + - CAST ( - AVG ( 66 ) AS INTEGER ) * + ( + 84 ) AS col2 @@ -27476,8 +27829,11 @@ SELECT ALL + 88 + ( ( COUNT ( * ) ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 3621 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(9\), Int64\(90\)\) AS col0" at position 0 and "Int64\(51\) \* Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COALESCE ( 9, + 90 ) AS col0, 51 * 71 col0 +---- +3621 +9 query I rowsort SELECT ALL - - 72 + - 61 AS col0 @@ -27508,8 +27864,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 420 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(70\) AS col1" at position 0 and "sum\(\(\- Int64\(\-40\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 6 * 70 AS col1, + SUM ( - - 40 ) AS col1 +---- +40 +420 query I rowsort SELECT 45 * + - 37 @@ -27940,8 +28299,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -2400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "Int64\(40\) \* \(\- nullif\(Int64\(60\), \(\- \(\- Int64\(32\)\)\) \+ Int64\(25\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 AS col2, 40 * - + NULLIF ( + 60, - - ( 32 ) + + 25 ) AS col2 +---- +-2400 +54 query I rowsort label-5307 SELECT ALL + - 40 * - 12 * + ( + + 68 ) - COUNT ( * ) @@ -28000,8 +28362,11 @@ SELECT - 48 - + + 54 * - 46 / + COUNT ( * ) AS col2, COUNT ( * ) * + - COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - -440 -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\) \* Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 76 AS col0, - 55 * + 8 AS col0 +---- +-440 +76 query I rowsort SELECT - 62 + - - 8 + + + 78 + + 49 * - 36 + + + 18 * - 29 AS col2 @@ -28079,8 +28444,11 @@ 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 "Int64\(90\) / Int64\(70\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 90 / + 70 AS col1, + 44 AS col1 +---- +1 +44 query I rowsort label-5333 SELECT + 45 / 10 + - - 60 + - + COUNT ( * ) / 47 AS col1 @@ -28819,8 +29187,11 @@ SELECT ALL 7 + COALESCE ( + COUNT ( * ), ( MAX ( DISTINCT - 95 ) ), - 14 * + - 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 12 AS col0, 5 AS col0 +---- +12 +5 query I rowsort label-5475 SELECT ALL ( - 91 ) + 23 * + MAX ( - 61 ) AS col1 @@ -28961,8 +29332,11 @@ SELECT DISTINCT COUNT ( ALL - 44 ) AS col0, - 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 690 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(23\) AS col0" at position 0 and "Int64\(0\) \- Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 * 23 AS col0, 0 - + 30 AS col0 +---- +-30 +690 query I rowsort SELECT DISTINCT 72 + 93 + - 31 * - - 17 AS col2 @@ -29149,8 +29523,11 @@ SELECT - COALESCE ( + + 25, 25, - 82 * - NULLIF ( + 34, + + 88 * 1 ) + - 76 ) - # Datafusion - Datafusion expected results: # Datafusion - Expected - -2842 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-29\) AS Int32\) \* \(\- CAST\(Int64\(\-98\) AS Int32\)\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( - 29 AS INTEGER ) * - + CAST ( - 98 AS INTEGER ) col0, + 94 col0 +---- +-2842 +94 query I rowsort SELECT ALL + 23 + - 97 @@ -29213,8 +29590,11 @@ SELECT - 70 + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1303 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- CAST\(\(\- sum\(Int64\(\-86\)\)\) AS Int32\)\)\)\) \* Int64\(\-15\) \+ Int64\(13\) AS col0" at position 0 and "coalesce\(Int64\(\-14\), Int64\(\-12\) \+ CASE Int64\(88\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-75\)\) THEN NULL WHEN \(\- \(\- \(\- CAST\(NULL AS Float64\)\)\)\) THEN Int64\(\-74\) \* Int64\(41\) ELSE \(\- sum\(\(\- Int64\(\-69\)\)\)\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-14 +1303 query I rowsort label-5550 SELECT DISTINCT + - 7 / 83 @@ -29611,8 +29991,11 @@ 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\(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\. +query II valuesort 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 +---- +-38 +40 query I rowsort label-5626 SELECT + 13 / + 75 * - ( + COUNT ( - 36 ) ) * - COUNT ( * ) @@ -29720,8 +30103,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 144 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \- Int64\(\-87\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 57 - - 87 AS col1, 92 AS col1 +---- +144 +92 query I rowsort label-5646 SELECT - 89 * - + MAX ( + 28 ) + + COUNT ( * ) @@ -30016,8 +30402,11 @@ SELECT + 61 * 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ Int64\(\-24\) AS col2" at position 0 and "Int64\(\-32\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 91 ) + - 24 AS col2, - 32 + + COUNT ( * ) AS col2 +---- +-31 +67 query I rowsort SELECT DISTINCT 66 - - 62 * - - 31 @@ -30743,8 +31132,11 @@ SELECT 87 * COUNT ( * ) * - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 300 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(10\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 * 10 AS col1, 7 AS col1 +---- +300 +7 query I rowsort label-5841 SELECT ALL CAST ( - 47 AS INTEGER ) * 46 @@ -30855,8 +31247,11 @@ SELECT ALL - SUM ( - 14 ) - + - 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col0" at position 0 and "\(\- Int64\(\-92\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 AS col0, - ( - 92 ) AS col0 +---- +52 +92 query I rowsort label-5863 SELECT ALL MIN ( DISTINCT + NULLIF ( + 46, - - 65 + ( - + 59 ) + - 84 ) ) AS col0 @@ -31030,8 +31425,11 @@ SELECT - 9 * + ( ( 15 ) ) + + - 77 + - COUNT ( - 18 ) * + + 70 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(75\)\) AS col2" at position 0 and "Int64\(\-8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + + 75 ) col2, - 8 AS col2 +---- +-75 +-8 query I rowsort SELECT - + ( + 25 ) @@ -31397,8 +31795,11 @@ SELECT + 54 * - 28 * + 74 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 7134 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) / Int64\(\-34\) \- \(\- min\(Int64\(\-88\)\)\) AS col0" at position 0 and "Int64\(82\) \* \(\- Int64\(\-87\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 0 / - 34 - - + MIN ( ALL - 88 ) AS col0, + ( 82 ) * - - 87 AS col0 +---- +-88 +7134 query II rowsort SELECT - 79, + 65 * + - 6 AS col2 @@ -32006,8 +32407,11 @@ SELECT ALL + COUNT ( DISTINCT - 2 ) * - 6 * - 5 * 28 * + 15 * - + 12 * + + 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 87 AS col2, 82 AS col2 +---- +-87 +82 query II rowsort SELECT ALL - 81, - 91 AS col0 @@ -32171,8 +32575,11 @@ SELECT - 61 / 37 + + NULLIF ( + 71, + 11 * 16 * 16 / - 45 ) * - 82 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col1" at position 0 and "CASE Int64\(95\) WHEN Int64\(27\) THEN Int64\(\-39\) \* \(\- avg\(DISTINCT Int64\(76\)\)\) ELSE Int64\(\-71\) \* Int64\(22\) \+ avg\(DISTINCT Int64\(41\)\) END \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - 93 AS col1, + CASE 95 WHEN 27 THEN - 39 * - AVG ( DISTINCT 76 ) ELSE - 71 * 22 + + AVG ( DISTINCT 41 ) END * - CAST ( NULL AS INTEGER ) + + 30 AS col1 +---- +-93 +NULL query II rowsort SELECT ALL + 52, - 74 AS col0 @@ -32200,8 +32607,11 @@ SELECT + - 16 AS col1, + 86 * + - COUNT ( * ) * 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 1892 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "\(\- coalesce\(\(\- nullif\(\(\- Int64\(44\)\), Int64\(\-14\) \* \(\- Int64\(\-25\)\) / Int64\(21\) \+ \(\- Int64\(95\)\)\)\), Int64\(44\)\)\) \* Int64\(\-43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 6 AS col2, - COALESCE ( - NULLIF ( - + 44, - 14 * - - 25 / + 21 + - + 95 ), 44 ) * - 43 AS col2 +---- +1892 +6 query I rowsort label-6119 SELECT ALL - - MIN ( DISTINCT + - 94 ) * + 28 + + 23 * - 84 @@ -32559,8 +32969,11 @@ SELECT ALL + 28 / 71 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col2" at position 0 and "Int64\(\-53\) / CAST\(NULL AS Int32\) \* Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 71 AS col2, - 53 / + CAST ( NULL AS INTEGER ) * + + 74 AS col2 +---- +-71 +NULL query I rowsort SELECT ALL + 17 - + 37 @@ -33442,8 +33855,11 @@ SELECT ALL - COALESCE ( 30, - 85, - 77 * - 4 ) AS col0 # 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\(63\) AS col1" at position 0 and "Int64\(\-83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 63 AS col1, - 83 col1 +---- +-83 +63 query I rowsort label-6360 SELECT + 67 * - - CAST ( NULL AS INTEGER ) * - 43 + - 28 * 33 @@ -34046,8 +34462,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col2" at position 0 and "Int64\(33\) / Int64\(\-5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 14 AS col2, 33 / - 5 AS col2 +---- +-6 +14 query I rowsort SELECT 71 + 50 - - + 66 @@ -34164,8 +34583,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 2 AS col1, - COUNT ( * ) AS col1 +---- +-1 +2 query I rowsort label-6499 SELECT - 25 + - 4 + CAST ( NULL AS INTEGER ) + + 37 * - 12 * - + 34 * + 3 @@ -34196,8 +34618,11 @@ SELECT ALL + 43 * - ( ( COUNT ( * ) ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* Int64\(86\) AS col1" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 * 86 AS col1, CAST ( + COUNT ( * ) AS INTEGER ) AS col1 +---- +0 +1 query I rowsort SELECT 16 + - 25 @@ -34380,8 +34805,12 @@ SELECT - 35 * - - COUNT ( * ) # Datafusion - Expected - -26 # Datafusion - Expected - -44436 # Datafusion - Expected - 121 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \* Int64\(23\) \* Int64\(23\) AS col0" at position 1 and "Int64\(50\) \+ Int64\(71\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 23 + - + 45 + - 4 AS col1, - 84 * + + 23 * + + 23 AS col0, 50 + 71 AS col0 +---- +-26 +-44436 +121 query I rowsort label-6541 SELECT - 29 - + CAST ( MAX ( ALL 59 ) AS INTEGER ) @@ -34504,8 +34933,11 @@ SELECT 80, + 36 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col0" at position 0 and "Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 10 ) AS col0, 19 col0 +---- +-10 +19 query I rowsort SELECT - 13 * NULLIF ( - 9, + 47 + - 80 ) @@ -34817,8 +35249,11 @@ SELECT DISTINCT - COUNT ( DISTINCT + 38 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(60\) \+ Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, + 60 + + 38 AS col0 +---- +1 +98 query I rowsort label-6623 SELECT ALL + 80 / 87 @@ -35216,8 +35651,11 @@ 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\(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\. +query II valuesort 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 +---- +-41 +NULL query I rowsort label-6699 SELECT - 31 + - COUNT ( * ) col1 @@ -35400,8 +35838,11 @@ SELECT + 61 + - - SUM ( ALL + 75 ) + + 32 + + - 98 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2865 # Datafusion - Expected - 2574 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ \(\- Int64\(71\)\) \* Int64\(41\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-13\) AS col1" at position 0 and "Int64\(99\) \* Int64\(26\) \* \(\- \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 60 + - + 71 * 41 + + - COUNT ( * ) + - 13 AS col1, 99 * + 26 * - - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 +---- +-2865 +2574 query I rowsort SELECT - 66 + 79 * + CASE + 66 WHEN + ( - - 38 ) * + 19 THEN NULL WHEN + 41 * + 33 * - 26 - - + 1 THEN + 96 ELSE NULL END + - - NULLIF ( - 51, - 11 ) AS col0 @@ -35416,8 +35857,11 @@ SELECT + 78 / + + ( + 54 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, 45 AS col2 +---- +1 +45 query I rowsort SELECT - 30 + - 30 * + - ( + + 40 ) AS col2 @@ -35809,8 +36253,11 @@ SELECT ALL NULLIF ( + NULLIF ( - 0, - 75 ), + 68 + - - 70 ) - MAX ( - 9 ) + SUM # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) / Int64\(88\) AS col1" at position 0 and "sum\(Int64\(95\)\) / \(\- Int64\(\-46\)\) \* max\(Int64\(64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 / + 88 AS col1, SUM ( ALL 95 ) / ( - - 46 ) * MAX ( + + 64 ) AS col1 +---- +0 +128 query I rowsort label-6813 SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - CAST ( 19 AS INTEGER ) AS col1 @@ -36111,8 +36558,11 @@ SELECT ALL MAX ( ALL ( - - 78 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(5\) WHEN Int64\(\-67\) THEN Int64\(26\) \+ Int64\(70\) WHEN \(\- sum\(DISTINCT Int64\(27\)\)\) THEN Int64\(14\) \* Int64\(85\) \- max\(Int64\(\-20\)\) \* \(\- Int64\(\-51\)\) WHEN \(\- \(\- CAST\(\(\- Int64\(\-80\)\) AS Int32\)\)\) \* Int64\(\-27\) THEN NULL ELSE NULL END \+ Int64\(\-39\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1 +NULL query II rowsort label-6872 SELECT - 88 + + 40 AS col1, 68 / 98 + + 13 AS col0 @@ -36490,8 +36940,11 @@ SELECT DISTINCT ( - COALESCE ( - NULLIF ( - 69, + 12 ), - - 2 + 65, + ( + 18 ) * # 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 col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 0 AS col0, + 82 AS col0 +---- +0 +82 query I rowsort label-6944 SELECT MAX ( ALL 35 ) AS col0 @@ -36539,8 +36992,12 @@ 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\(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\. +query III valuesort SELECT - 62 col1, - 65 AS col0, - + ( 20 ) + ( + 22 ) - - 48 - + + COUNT ( * ) + - 95 * + - 83 * 12 * - + MAX ( DISTINCT ( + ( 88 ) ) ) * + 82 + + 70 + + + 35 * + 44 AS col0 +---- +-62 +-65 +-682776261 query I rowsort label-6953 SELECT 20 * + COUNT ( * ) + + 28 @@ -36783,8 +37240,11 @@ SELECT DISTINCT + 50 * + - COUNT ( - 43 ) / + COUNT ( - 81 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(50\)\) AS col0" at position 0 and "nullif\(\(\- Int64\(33\)\), Int64\(85\) \* Int64\(95\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( + 50 ) AS col0, NULLIF ( - + 33, + 85 * 95 ) AS col0 +---- +-33 +1 query I rowsort label-6999 SELECT + + COUNT ( * ) * + 42 * - NULLIF ( - 59, 50 * 59 ) + - 80 @@ -37017,8 +37477,11 @@ 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\(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\. +query II valuesort SELECT ALL - - ( - - COALESCE ( + 66, - 23 * + 75 - - NULLIF ( 8, - + 21 ), + + COUNT ( * ) + ( + 26 ) + - 72 ) ) AS col2, 1 + + + 43 * + 84 + 36 + - 82 / + 2 col2 +---- +3608 +66 query I rowsort SELECT DISTINCT - + 91 - - - NULLIF ( - 50, + 40 ) @@ -37131,8 +37594,11 @@ SELECT ALL - COALESCE ( NULLIF ( - 40, - 94 / - + 30 ), 20 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 9180 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col0" at position 0 and "Int64\(\-13\) \+ Int64\(\-89\) \- Int64\(99\) \* Int64\(\-94\) \- Int64\(63\) \+ Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 45 AS col0, ( + ( - 13 ) ) + - 89 - + 99 * + - 94 - + 63 + + 39 AS col0 +---- +-45 +9180 query I rowsort label-7065 SELECT 66 / 89 + + NULLIF ( + 50, + + 39 ) AS col0 @@ -37950,8 +38416,11 @@ SELECT DISTINCT + 14 / + - 24 # 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\(\-9\) / Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 45 ) AS col0, - 9 / 83 AS col0 +---- +-45 +0 query I rowsort SELECT + + 76 + + - 58 @@ -38287,8 +38756,11 @@ SELECT + MIN ( + - 30 ) * - COALESCE ( + 35, + SUM ( DISTINCT + 48 ) + - + 54 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - -4488 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col0" at position 0 and "Int64\(51\) \* Int64\(\-88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 84 AS col0, + 51 * - 88 AS col0 +---- +-4488 +-84 query I rowsort label-7284 SELECT ALL + MIN ( 86 ) AS col2 @@ -38556,14 +39028,20 @@ 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\(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\. +query II valuesort SELECT 40 + + 60 * - + COUNT ( * ) col1, - 86 + - - 32 * - + 45 * + 38 col1 +---- +-20 +-54806 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -404274 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "Int64\(99\) \* Int64\(64\) \* \(\- sum\(CAST\(Int64\(63\) AS Int32\)\)\) \+ \(\- Int64\(74\)\) \* \(\- Int64\(\-69\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 AS col2, + 99 * + 64 * + - SUM ( CAST ( ( 63 ) AS INTEGER ) ) + - ( + 74 ) * - - 69 AS col2 +---- +-404274 +17 query II rowsort SELECT + 71 AS col2, 95 AS col1 @@ -38596,8 +39074,11 @@ SELECT 69 AS col0, 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col2" at position 0 and "sum\(Int64\(35\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 8 AS col2, SUM ( ALL + 35 ) AS col2 +---- +-8 +35 query I rowsort label-7343 SELECT ALL - 69 * + ( + + 82 ) * - + 1 - + - ( MAX ( ALL - - 75 ) ) AS col2 @@ -38755,8 +39236,12 @@ SELECT + 75 * 47 # Datafusion - Expected - 37 # Datafusion - Expected - 76 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 1 and "Int64\(\-94\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + COALESCE ( 37, - + COUNT ( * ) * - COUNT ( * ) ), 76 AS col1, + - 94 AS col1 +---- +-94 +37 +76 query I rowsort SELECT - 28 + - 35 AS col2 @@ -38983,8 +39468,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 36 AS col0, 26 * - - 67 + - COUNT ( * ) + + 95 col0 +---- +1836 +36 query I rowsort SELECT ALL + 54 * - 61 @@ -39060,14 +39548,20 @@ SELECT + - 42 AS col1, - 70, COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 AS col2, - 79 AS col2 +---- +-79 +34 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col1" at position 0 and "Int64\(\-6\) \+ \(\- Int64\(\-25\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 93 AS col1, - 6 + - - 25 AS col1 +---- +-93 +19 query I rowsort SELECT ALL + 75 + - 58 col0 @@ -39231,8 +39725,11 @@ SELECT DISTINCT + + NULLIF ( + ( - - COUNT ( * ) ), + - 77 * + 68 / 8 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -596 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(\-36\) \+ Int64\(16\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 17 * - 36 + + 16 AS col2, 21 AS col2 +---- +-596 +21 query I rowsort label-7463 SELECT DISTINCT + MAX ( ALL + - ( 35 ) ) AS col0 @@ -39339,8 +39836,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + ( 88 ) + - + COUNT ( * ) AS col0, + 30 col0, - 60 +---- +-60 +30 +87 query I rowsort label-7484 SELECT - 20 * + 25 * - CAST ( NULL AS INTEGER ) * - 34 - 50 + SUM ( - 8 ) @@ -39395,8 +39896,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 71 AS col2, - 8 / COUNT ( * ) * - 71 AS col2 +---- +568 +71 query I rowsort SELECT DISTINCT + 40 * 39 @@ -39436,8 +39940,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 5 + + - 32 + + COUNT ( - - 82 ) AS col2, 62 - + 36 - - - COALESCE ( + 54, + COUNT ( * ) ) AS col2 +---- +-28 +-36 query I rowsort label-7502 SELECT ALL SUM ( ALL 48 ) + + COUNT ( * ) @@ -39521,8 +40028,11 @@ SELECT - 15 * + + 44 + + 8 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3558 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(24\) \* \(\- Int64\(\-96\)\) \- \(\- CAST\(Int64\(9\) AS Int32\)\) AS col2" at position 0 and "Int64\(97\) \+ coalesce\(\(\- CASE Int64\(45\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-79\) END\), Int64\(\-97\) \* Int64\(37\) \+ Int64\(\-25\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(41\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-3558 +NULL query I rowsort SELECT - ( - - 65 ) * - 39 AS col2 @@ -40381,8 +40891,11 @@ 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\(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\. +query IR valuesort 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 +---- +-53584 +142 query I rowsort label-7680 SELECT + + 41 + - MAX ( + + 44 ) AS col2 @@ -40655,8 +41168,11 @@ 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\(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\. +query II valuesort SELECT - 88 * 74 - + COUNT ( * ) * 48 AS col1, 51 AS col1 +---- +-6560 +51 query II rowsort label-7732 SELECT + 4 col2, 80 * - + COALESCE ( COUNT ( * ), - 82 + - + 29 ) * - 27 @@ -40799,8 +41315,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 20 + - COUNT ( * ) AS col0, 22 AS col0 +---- +19 +22 query I rowsort SELECT ALL + 25 + 47 @@ -40950,8 +41469,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(48\)\)\)\) AS col1" at position 0 and "Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - COUNT ( 48 ) AS col1, 24 AS col1 +---- +1 +24 query I rowsort SELECT DISTINCT - + 0 col0 @@ -40986,8 +41508,11 @@ SELECT ALL - 41 + + 99 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7040 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(\-88\) AS col0" at position 0 and "Int64\(\-67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 80 * - 88 AS col0, - 67 AS col0 +---- +-67 +-7040 query I rowsort label-7793 SELECT 94 / + 34 AS col1 @@ -41324,8 +41849,11 @@ SELECT - NULLIF ( + COUNT ( * ), AVG ( ALL + 60 ) * + SUM ( + 49 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(\-70\) / \(\- sum\(Int64\(74\)\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - CAST ( NULL AS INTEGER ) * - 70 / - SUM ( 74 ) / + COUNT ( * ) AS col0, 10 AS col0 +---- +10 +NULL query I rowsort label-7855 SELECT ALL + - ( - CAST ( NULL AS INTEGER ) ) / SUM ( + 2 ) + - - ( - 14 ) @@ -41389,8 +41917,12 @@ SELECT - 70 - - - 14 AS col0 # Datafusion - Expected - 10457 # Datafusion - Expected - 92 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* Int64\(10\) \* sum\(DISTINCT Int64\(37\)\) \- \(\- Int64\(97\)\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 28 * + 10 * SUM ( DISTINCT 37 ) - - + 97 AS col0, 92 AS col0, - COUNT ( * ) + + 60 AS col0 +---- +10457 +59 +92 query I rowsort label-7867 SELECT DISTINCT + 48 * + - 59 * - - COUNT ( * ) AS col0 @@ -42135,8 +42667,11 @@ SELECT ALL - - 71 - + + 60 + 67 + + + 73 # 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 "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 II valuesort SELECT DISTINCT + ( + 83 ) AS col0, 79 AS col0 +---- +79 +83 query I rowsort label-8014 SELECT ALL + 87 * - + ( - SUM ( ALL 93 ) ) AS col2 @@ -42524,8 +43059,11 @@ NULL # 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 "Int64\(77\) AS col2" at position 0 and "Int64\(21\) \* count\(Int64\(27\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 77 AS col2, 21 * COUNT ( + 27 ) AS col2 +---- +21 +77 query II rowsort label-8089 SELECT + + COUNT ( * ) AS col0, - 26 + ( + 41 ) AS col1 @@ -42886,8 +43424,11 @@ SELECT COUNT ( * ) / 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-12\)\) \* CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( ALL - 12 ) * CAST ( NULL AS INTEGER ) AS col2, + 89 AS col2 +---- +89 +NULL query I rowsort SELECT 82 - + 8 col1 @@ -43549,8 +44090,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * + 80 AS col2, - 23 + - NULLIF ( - 82, + + 16 ) AS col2 +---- +59 +80 query I rowsort label-8284 SELECT + COUNT ( * ) + + 2 AS col0 @@ -44680,8 +45224,11 @@ SELECT 79 / 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4465 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* Int64\(95\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 47 * 95 AS col1, COUNT ( * ) AS col1 +---- +1 +4465 query I rowsort SELECT DISTINCT - 60 - - + ( 13 ) AS col2 @@ -44737,8 +45284,11 @@ SELECT ALL + COUNT ( * ) + - 55 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 559 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \* \(\- \(\- coalesce\(Int64\(\-13\), Int64\(\-20\)\)\)\) \+ Int64\(24\) / CAST\(Int64\(87\) AS Int32\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 43 * - - COALESCE ( - 13, + - 20 ) + 24 / + CAST ( + 87 AS INTEGER ) AS col0, 83 AS col0 +---- +559 +83 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -44875,8 +45425,12 @@ SELECT ALL 65 * - 14 AS col0 # Datafusion - Expected - 1 # Datafusion - Expected - -1960 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-98\) \* Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + COUNT ( * ) AS col2, - 98 * + 20 AS col2, - 39 / - 11 + + 84 AS col1 +---- +-1960 +1 +87 query I rowsort SELECT DISTINCT + 86 * 6 @@ -45002,8 +45556,12 @@ SELECT ALL 21 * - 35 AS col2 # Datafusion - Expected - 16 # Datafusion - Expected - 48 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 16 AS col2, + 48, 6 AS col2 +---- +16 +48 +6 query I rowsort label-8559 SELECT DISTINCT MAX ( - CAST ( NULL AS INTEGER ) ) AS col2 @@ -45064,8 +45622,12 @@ SELECT - - COALESCE ( - 1, CASE 17 WHEN - + 89 THEN + COUNT ( * ) WHEN + + COUNT # Datafusion - Expected - 42 # Datafusion - Expected - -1206 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col1" at position 0 and "Int64\(18\) \* Int64\(\-67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 42 AS col1, + 18 * ( - 67 ) AS col1, + 77 AS col2 +---- +-1206 +42 +77 query II rowsort label-8571 SELECT ALL + - 41 AS col2, - NULLIF ( - COUNT ( * ), 87 ) AS col0 @@ -45216,8 +45778,11 @@ 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\(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\. +query II valuesort SELECT - ( + - COUNT ( * ) ) * - 37 * - 68 * 93 + - 32 * - 46 col1, - ( + + 35 ) - + - 7 * - 17 AS col1 +---- +-154 +235460 query I rowsort label-8600 SELECT DISTINCT + NULLIF ( + CAST ( NULL AS INTEGER ), 42 ) AS col0 @@ -45232,15 +45797,22 @@ SELECT ALL + - 24 / - - NULLIF ( 1, - MAX ( 56 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 143 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ Int64\(48\) AS col1" at position 0 and "Int64\(55\) \- Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 + + 48 AS col1, 55 - + + 88 AS col1 +---- +-33 +143 # Datafusion - Datafusion expected results: # Datafusion - Expected - -135 # Datafusion - Expected - 96 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 1 and "Int64\(49\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 77 + + - 58, 96 col0, + 49 AS col0 +---- +-135 +49 +96 query I rowsort label-8604 SELECT ALL 69 + CAST ( NULL AS INTEGER ) @@ -45265,8 +45837,11 @@ SELECT + - CAST ( - 27 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - -65968 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) \+ Int64\(\-51\) AS col1" at position 0 and "Int64\(\-38\) \* Int64\(62\) \* Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 44 + - 51 AS col1, - 38 * + 62 * 28 AS col1 +---- +-65968 +-95 query I rowsort SELECT ALL + - 32 + 48 * - 81 @@ -45345,8 +45920,11 @@ SELECT DISTINCT COUNT ( DISTINCT 50 ) + + - ( 6 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - -424 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- CAST\(\(\- Int64\(85\)\) AS Int32\)\)\) AS col1" at position 0 and "\(\- Int64\(80\)\) \+ Int64\(54\) \+ \(\- Int64\(38\)\) \+ Int64\(9\) \* Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) + - - CAST ( - + 85 AS INTEGER ) col1, - ( + 80 ) + + 54 + - + 38 + 9 * - 40 AS col1 +---- +-424 +-84 query I rowsort label-8624 SELECT 81 * + CAST ( NULL AS INTEGER ) + - CAST ( - 57 AS INTEGER ) + - - 27 / + + 51 @@ -45908,8 +46486,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 AS col2, + 41 + - COUNT ( * ) AS col2 +---- +12 +40 query I rowsort label-8732 SELECT ALL - - 10 * COUNT ( * ) AS col2 @@ -46238,8 +46819,11 @@ SELECT ALL + 39 * + 79 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5357 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(74\) \+ Int64\(29\) AS col1" at position 0 and "Int64\(13\) \* \(\- sum\(Int64\(37\)\)\) \* \(\- Int64\(26\)\) \* Int64\(44\) \+ Int64\(69\) \+ CAST\(NULL AS Int32\) \* Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 * 74 + 29 AS col1, 13 * - + SUM ( + 37 ) * - + 26 * 44 + + 69 + ( + + CAST ( NULL AS INTEGER ) ) * + + 84 AS col1 +---- +5357 +NULL query I rowsort label-8796 SELECT DISTINCT + - MIN ( ALL - 26 ) AS col1 @@ -46723,8 +47307,11 @@ SELECT + + COUNT ( * ) - 92 - - 66 + + ( - 2 ) AS col1 # 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\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 AS col1, 86 col1 +---- +72 +86 query I rowsort SELECT ALL - 53 * + 42 * + 2 col0 @@ -46750,8 +47337,11 @@ SELECT ALL - COUNT ( * ) * - + 82 - - - 57 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col1" at position 0 and "Int64\(53\) \+ Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 96 col1, + 53 + - 66 AS col1 +---- +-13 +96 query II rowsort SELECT ALL + + 62 AS col2, 29 @@ -47513,8 +48103,11 @@ SELECT - 20 + - 83 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 708 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col2" at position 0 and "coalesce\(Int64\(\-59\), Int64\(\-35\)\) \* Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 61 AS col2, + COALESCE ( - 59, - 35 ) * + - 12 AS col2 +---- +-61 +708 query II rowsort label-9040 SELECT ALL - ( 77 ) + - 15 + 9, + COUNT ( * ) AS col1 @@ -47601,8 +48194,12 @@ SELECT ALL 61 * + 62 * - 14 AS col2 # Datafusion - Expected - -19 # Datafusion - Expected - 8742 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(19\)\) AS col1" at position 0 and "Int64\(78\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - ( + 19 ) AS col1, 94 * ( + 93 ) col2, + 78 col1 +---- +-19 +78 +8742 query I rowsort label-9056 SELECT ( + COUNT ( * ) ) * - 62 * + + CASE + 84 WHEN - ( - 16 ) THEN NULL WHEN + + 9 THEN NULL WHEN 26 THEN - ( - 97 ) + + 95 ELSE NULL END + - ( - + 79 ) * + - 32 + + + 71 AS col0 @@ -47707,8 +48304,11 @@ SELECT 23 * - MIN ( ALL ( 51 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col1" at position 0 and "min\(DISTINCT \(\- Int64\(\-78\)\)\) \+ \(\- Int64\(\-66\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 AS col1, MIN ( DISTINCT - - 78 ) + - - 66 AS col1 +---- +-55 +144 query I rowsort label-9076 SELECT DISTINCT + 21 - MAX ( + 25 ) + NULLIF ( - ( + - 20 ), - CASE + + 63 WHEN - + COUNT ( * ) THEN + 74 + + 4 END ) AS col1 @@ -47742,8 +48342,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col2, 69 col2 +---- +-1 +69 query I rowsort SELECT ALL 20 + - - 79 + + + 92 * + 8 AS col2 @@ -47829,8 +48432,11 @@ SELECT + 91 - 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ \(\- Int64\(54\)\) AS col0" at position 0 and "\(\- Int64\(26\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 + - + 54 AS col0, - ( + ( + 26 ) ) AS col0 +---- +-12 +-26 query I rowsort SELECT - 33 * - 47 @@ -47860,8 +48466,11 @@ SELECT - 86 - - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "nullif\(count\(Int64\(1\)\) AS count\(\*\), coalesce\(count\(Int64\(1\)\) AS count\(\*\), count\(Int64\(1\)\) AS count\(\*\)\)\) \* avg\(Int64\(\-41\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RR valuesort SELECT ALL AVG ( ALL - - CAST ( NULL AS INTEGER ) ) AS col1, + NULLIF ( COUNT ( * ), + COALESCE ( COUNT ( * ), + COUNT ( * ) ) ) * + AVG ( - 41 ) AS col1 +---- +NULL +NULL query I rowsort label-9105 SELECT + 41 / + COALESCE ( + - COUNT ( * ), - COUNT ( * ) * - 57 ) + + 69 AS col2 @@ -48052,8 +48661,11 @@ SELECT - NULLIF ( + 92, 28 * 37 * - + 32 - + MIN ( DISTINCT COALESCE ( + 94, - + # 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\) AS col2" at position 0 and "Int64\(91\) / Int64\(92\) \* Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 AS col2, + 91 / + 92 * 36 AS col2 +---- +0 +67 query I rowsort SELECT ALL 44 + + 69 AS col1 @@ -48215,8 +48827,11 @@ SELECT ALL + 45 + + 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 13 AS col2, 36 AS col2 +---- +-13 +36 query I rowsort SELECT 87 * - ( + 10 ) @@ -48309,8 +48924,11 @@ SELECT DISTINCT - - NULLIF ( + 31, - NULLIF ( + 85, 8 ) + - AVG ( 40 ) / - COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-95\)\) AS col2" at position 0 and "Int64\(\-52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 95 AS col2, - 52 col2 +---- +-52 +95 query I rowsort label-9190 SELECT DISTINCT 34 - + + 2 * - 33 * + - COUNT ( * ) AS col1 @@ -48884,8 +49502,11 @@ SELECT DISTINCT - 9 * - COUNT ( ALL + + 88 ) * 5 * + 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col1" at position 0 and "Int64\(65\) \+ Int64\(\-17\) \+ Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 51 AS col1, + 65 + - 17 + - 25 AS col1 +---- +-51 +23 query I rowsort SELECT 87 * - 69 AS col2 @@ -48999,8 +49620,11 @@ SELECT ( 69 ) + ( - 45 ) - SUM ( - 41 ) + - 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 6461 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(91\) \* \(\- Int64\(\-71\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col2, COUNT ( * ) * 91 * - - 71 AS col2 +---- +1 +6461 query I rowsort label-9322 SELECT - 62 + - + MAX ( 80 ) @@ -49555,8 +50179,11 @@ 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\(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\. +query II valuesort 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 +---- +-34 +-35 query II rowsort SELECT ALL - 78 AS col0, - 59 @@ -49740,8 +50367,11 @@ SELECT ALL - NULLIF ( + COUNT ( ALL 38 ), MAX ( DISTINCT 33 ) ) + - 36 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(19\)\) \* \(\- Int64\(\-56\)\) \* Int64\(\-34\) \* Int64\(\-4\) \* Int64\(\-86\) \+ Int64\(62\) \+ sum\(Int64\(99\)\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-85\) \* CAST\(NULL AS Int32\) \- Int64\(25\) \+ \(\- Int64\(\-5\)\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + 19 ) * - - 56 * - 34 * - 4 * - 86 + + 62 + + SUM ( ALL + + ( + 99 ) ) * COUNT ( * ) / - 85 * + CAST ( NULL AS INTEGER ) - + 25 + - - 5 AS col0, + 65 AS col0 +---- +65 +NULL query I rowsort label-9463 SELECT DISTINCT 98 * - CAST ( NULL AS INTEGER ) * - - 79 AS col2 @@ -50862,8 +51492,11 @@ SELECT + 98 AS col1, - COUNT ( * ) + 74 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 27 col0, 27 col0 +---- +-27 +27 query I rowsort label-9682 SELECT ALL 27 + - ( + COUNT ( * ) ) - + 55 * 70 * NULLIF ( 49, - 71 + - COALESCE ( + 85, MIN ( 33 ), + 77 + - 26 ) ) @@ -50988,8 +51621,11 @@ SELECT ALL + COUNT ( * ) * 0 AS col1, 91 * + 55 + - 3 # 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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 44 AS col2, 56 AS col2 +---- +44 +56 query II rowsort label-9706 SELECT 81 AS col1, 35 / SUM ( ALL + 50 ) AS col2 @@ -51216,8 +51852,11 @@ SELECT + 56 + + + 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 10 AS col2, + 9 AS col2 +---- +10 +9 query I rowsort label-9750 SELECT DISTINCT 43 * COUNT ( * ) - - + CAST ( NULL AS INTEGER ) AS col0 @@ -51290,8 +51929,11 @@ SELECT + 89 * - ( + 78 ) + - MIN ( DISTINCT 40 ) + 42 + + 32 / + - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 84 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 9 AS col2, 84 AS col2 +---- +84 +9 query II rowsort SELECT - 42 AS col1, 9 @@ -51302,8 +51944,11 @@ SELECT - 42 AS col1, 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 AS col0, 81 AS col0 +---- +35 +81 query I rowsort SELECT + 3 * 30 AS col1 @@ -52246,8 +52891,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * - + 64 AS col1, + 13 AS col1 +---- +-64 +13 query I rowsort SELECT DISTINCT 77 * + 98 diff --git a/data/sqlite/random/expr/slt_good_15.slt b/data/sqlite/random/expr/slt_good_15.slt index b7b3eeb..e453544 100644 --- a/data/sqlite/random/expr/slt_good_15.slt +++ b/data/sqlite/random/expr/slt_good_15.slt @@ -65,8 +65,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( * ) col0, + 43 AS col0 +---- +1 +43 query I rowsort label-6 SELECT - MAX ( 62 ) + + - 52 AS col2 @@ -199,8 +202,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(84\)\) AS col2" at position 0 and "Int64\(\-99\) \* nullif\(CAST\(NULL AS Int32\), Int64\(\-99\) \* \(\- count\(DISTINCT Int64\(22\)\)\) \* CAST\(NULL AS Int32\) \+ Int64\(16\)\) \+ \(\- Int64\(\-22\)\) \- \(\- Int64\(\-79\)\) \+ Int64\(71\) \+ \(\- avg\(DISTINCT Int64\(\-91\)\)\) \* Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL - ( + 84 ) AS col2, ( + - 99 ) * + NULLIF ( CAST ( NULL AS INTEGER ), - 99 * - COUNT ( DISTINCT 22 ) * CAST ( NULL AS INTEGER ) + + 16 ) + - - 22 - - ( - 79 ) + + 71 + - AVG ( DISTINCT - 91 ) * + 3 AS col2 +---- +-84 +NULL query I rowsort label-31 SELECT ALL 19 * 21 / CASE + - NULLIF ( - + CASE 43 WHEN - + MAX ( - 98 ) THEN - 85 / + CAST ( NULLIF ( - 55, - 40 - + COUNT ( * ) * - CAST ( - 17 AS INTEGER ) * + 5 ) AS INTEGER ) ELSE NULL END, 63 ) WHEN - 80 THEN + COUNT ( * ) * - 20 WHEN - 55 / + COALESCE ( + 89, + 83 ) + 84 THEN + 9 + 16 END AS col1 @@ -389,8 +395,11 @@ SELECT DISTINCT 78 * 6 * + 89 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2664 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(72\) AS Int32\)\) \* Int64\(\-37\) AS col0" at position 0 and "CAST\(NULL AS Float64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL - CAST ( + 72 AS INTEGER ) * - 37 AS col0, + CAST ( NULL AS FLOAT8 ) col0 +---- +2664 +NULL query I rowsort label-67 SELECT 29 * COALESCE ( - 39, + MAX ( 65 ) * + ( - CASE ( + - 75 ) WHEN + 66 THEN + COUNT ( * ) * + ( 48 ) * 29 * + ( + + COALESCE ( + - 16, - 89 * 55 ) ) + - COUNT ( ALL 86 + + 96 * + 80 ) / + 26 END ), + CAST ( NULL AS INTEGER ) - 11 * - 53 ) - + COUNT ( * ) AS col2 @@ -931,8 +940,11 @@ SELECT ALL 37 + + ( - 28 ) * - + ( + ( 29 ) ) * - + COUNT ( * ) + + 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 201 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) / Int64\(\-13\) \+ Int64\(\-36\) \+ Int64\(46\) \* Int64\(2\) \- Int64\(7\) \* Int64\(\-21\) AS col2" at position 0 and "Int64\(63\) \+ Int64\(\-10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 / - 13 + - 36 + + 46 * + 2 - 7 * - 21 AS col2, 63 + + + ( + - 10 ) AS col2 +---- +201 +53 query I rowsort SELECT DISTINCT - ( + + 20 ) * 85 AS col1 @@ -1037,8 +1049,11 @@ SELECT - - COALESCE ( + 17, - + ( - ( 37 ) ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 20 col2, 98 AS col2 +---- +20 +98 query I rowsort label-189 SELECT DISTINCT - - COALESCE ( 61, - - 64 ) / COUNT ( * ) + 16 AS col2 @@ -1830,8 +1845,11 @@ SELECT ALL + 52 + - 77 + 88 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "Int64\(\-22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 AS col1, - 22 col1 +---- +-22 +92 query I rowsort label-338 SELECT - - 72 * + - 9 + + CAST ( NULL AS INTEGER ) + 48 + NULLIF ( + 33, + + 23 * - 45 + 0 - - 32 + - ( 6 ) + - + COUNT ( * ) * - + 43 + 91 + - 30 ) AS col1 @@ -2481,8 +2499,11 @@ SELECT + - 47 * + - CASE + AVG ( + - 11 ) WHEN - - 37 - + MIN ( DISTINCT + CAST # Datafusion - Datafusion expected results: # Datafusion - Expected - 12939 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT Int64\(\-57\)\)\) \* \(\- coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-97\) \+ sum\(Int64\(\-2\)\) \* max\(Int64\(65\)\), Int64\(14\)\)\) AS col0" at position 0 and "\(\- CAST\(Int64\(71\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( DISTINCT - 57 ) * + - COALESCE ( + - CAST ( NULL AS INTEGER ), - 97 + + SUM ( - 2 ) * MAX ( ALL 65 ), + 14 ) AS col0, - CAST ( + 71 AS INTEGER ) AS col0 +---- +-71 +12939 query I rowsort SELECT + + 46 + + + 17 + 27 col2 @@ -2672,8 +2693,11 @@ SELECT ALL - + COUNT ( * ) + - 88 + + - 96 * + - 76 + 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - -2670 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col1" at position 0 and "Int64\(\-30\) \* Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 66 col1, - 30 * + 89 col1 +---- +-2670 +-66 query I rowsort SELECT - 38 + + 67 * + 79 + - 3 col0 @@ -2705,8 +2729,12 @@ SELECT 90 + - 81 # Datafusion - Expected - 0 # Datafusion - Expected - 63 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 1 and "CAST\(Int64\(86\) AS Int32\) \+ \(\- Int64\(51\)\) \+ Int64\(\-96\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 50 / + 91, 63 AS col0, + ( CAST ( 86 AS INTEGER ) ) + - + 51 + - 96 col0 +---- +-61 +0 +63 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -3325,8 +3353,11 @@ SELECT ALL - 5 / 41 * + - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \+ Int64\(14\) \+ Int64\(\-7\) \* \(\- CAST\(NULL AS Float64\)\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT 31 + 14 + + ( - 7 ) * - ( CAST ( NULL AS FLOAT8 ) ) AS col2, 82 AS col2 +---- +82 +NULL query I rowsort SELECT DISTINCT + 33 * + + 95 col1 @@ -3346,8 +3377,11 @@ SELECT COUNT ( * ) + - 78 * - - 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ Int64\(52\) \+ \(\- nullif\(sum\(Int64\(16\)\), Int64\(10\)\)\) AS col2" at position 0 and "CAST\(CASE Int64\(\-24\) WHEN \(\- max\(Int64\(92\)\)\) THEN \(\- nullif\(Int64\(45\), \(\- Int64\(\-13\)\) / \(\- avg\(Int64\(57\)\)\)\)\) END AS Int32\) \+ Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 + + 52 + - NULLIF ( SUM ( ALL + 16 ), + + 10 ) AS col2, CAST ( + CASE - 24 WHEN - MAX ( ( 92 ) ) THEN + - NULLIF ( ( 45 ), - - 13 / - AVG ( 57 ) ) END AS INTEGER ) + 42 col2 +---- +61 +NULL query I rowsort SELECT ALL NULLIF ( + 81, - + 17 ) + - - 75 - - - 77 * + 42 @@ -3368,8 +3402,11 @@ SELECT - 99, 71 * 15 - + + 78 + MAX ( ALL - 94 ) / + 98 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- Int64\(0\)\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) + - - 0 AS col1, 46 AS col1 +---- +46 +NULL query I rowsort SELECT 60 + + 50 @@ -3455,8 +3492,11 @@ SELECT ALL - ( + + MAX ( DISTINCT - 68 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col2" at position 0 and "Int64\(\-22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 32 AS col2, ( - 22 ) AS col2 +---- +-22 +-32 query II rowsort label-645 SELECT 50 / - - 89 * - COALESCE ( + + NULLIF ( - 50, - + COUNT ( * ) ), - + ( + 66 ) / + COUNT ( * ) * - 30 + + CASE - 85 WHEN + COUNT ( * ) THEN 18 * - - 15 + + + CAST ( NULL AS INTEGER ) WHEN 73 THEN NULL END + + 57 + + 38 ) + + MIN ( + 98 ) AS col1, + 55 * 15 + 80 AS col2 @@ -3587,8 +3627,11 @@ SELECT DISTINCT - - CAST ( - + COUNT ( * ) AS INTEGER ) * + 45 * - ( 67 ) * 64 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(\-56\)\)\) AS col2" at position 0 and "Int64\(\-36\) / \(\- Int64\(83\)\) \* CAST\(Int64\(27\) AS Int32\) \+ Int64\(\-50\) \+ Int64\(\-36\) / Int64\(50\) \* Int64\(\-53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - + MAX ( DISTINCT + - 56 ) ) AS col2, - 36 / - + 83 * + CAST ( 27 AS INTEGER ) + - 50 + - 36 / 50 * + - 53 AS col2 +---- +-50 +56 query I rowsort label-668 SELECT - - ( - 84 ) + CAST ( NULL AS INTEGER ) + COUNT ( * ) @@ -3719,8 +3762,11 @@ SELECT ALL + COUNT ( DISTINCT - 60 ) / + NULLIF ( 24, + - ( 11 ) + - 51 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, 97 AS col1 +---- +1 +97 query I rowsort label-693 SELECT DISTINCT + CAST ( - 66 AS INTEGER ) / 19 * - + 39 @@ -3974,8 +4020,11 @@ SELECT ALL - 9 col0, + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -110 # Datafusion - Expected - 1473 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- \(\- CAST\(NULL AS Int32\)\)\), Int64\(\-81\) \* \(\- Int64\(\-99\)\) \+ \(\- Int64\(62\)\) \+ Int64\(\-28\) \* Int64\(1\)\) / nullif\(Int64\(69\), Int64\(71\)\) \+ Int64\(63\) \- Int64\(56\) AS col0" at position 0 and "Int64\(58\) \+ Int64\(24\) / \(\- nullif\(Int64\(34\), \(\- coalesce\(Int64\(1\), \(\- Int64\(82\)\) \* \(\- \(\- nullif\(Int64\(43\), Int64\(\-91\) \+ Int64\(46\) \+ Int64\(61\)\)\)\) \* Int64\(88\) \- Int64\(16\), count\(Int64\(1\)\) AS count\(\*\), Int64\(85\)\)\) \* Int64\(30\)\)\) \+ Int64\(\-29\) \+ Int64\(99\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(DISTINCT Int64\(39\)\)\) \+ Int64\(72\) \+ Int64\(26\) \* Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-110 +1473 query II rowsort label-742 SELECT SUM ( ALL 17 ) * 23 AS col0, CASE - - NULLIF ( + COUNT ( * ), - - ( 64 ) + MAX ( 72 ) ) WHEN - + COUNT ( * ) THEN + 23 END @@ -4156,8 +4205,11 @@ SELECT NULLIF ( + 48, CAST ( NULL AS INTEGER ) ) # 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 "Int64\(40\) AS col0" at position 0 and "Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 40 AS col0, - 65 col0 +---- +-65 +40 query I rowsort SELECT COALESCE ( + COALESCE ( + 40, 93 + 15 - 20 ), - + 11, + + 28 ) @@ -4299,8 +4351,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( - 14 ) AS col1, + 42 * + - COUNT ( * ) col1 +---- +-14 +-42 query II rowsort label-803 SELECT + 7 / - 39, 18 AS col0 @@ -4343,8 +4398,11 @@ SELECT ALL + 63 * - 69 AS col1, + COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + COUNT ( * ) ) AS col0, + 88 AS col0 +---- +1 +88 query I rowsort SELECT ALL - 99 * 52 * 41 @@ -4408,8 +4466,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2368 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(74\)\) \* Int64\(\-32\) AS col2" at position 0 and "Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 74 * + - 32 AS col2, - 96 AS col2 +---- +-96 +2368 query II rowsort label-823 SELECT 74 + + - 84 / - COUNT ( * ), + 71 AS col1 @@ -4598,8 +4659,11 @@ SELECT ALL - - 16 AS col2, 52 * - CAST ( 66 AS INTEGER ) * - - 83 - + COUNT ( * # 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 "Int64\(\-89\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 89 AS col0, 73 AS col0 +---- +-89 +73 query II rowsort SELECT ALL 75 AS col2, - NULLIF ( 92, + 52 ) @@ -5097,8 +5161,11 @@ SELECT 95 * + 83 AS col0, COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "Int64\(\-7\) \+ Int64\(77\) / Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 41 AS col1, - 7 + 77 / + 20 AS col1 +---- +-4 +41 query I rowsort SELECT ALL + + 45 + + - NULLIF ( - 66, - - ( + + ( + 12 ) ) ) col1 @@ -5219,8 +5286,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) * - 37 AS col0, - 95 AS col0 +---- +-95 +37 query I rowsort label-975 SELECT ( + + 46 ) + + + CAST ( NULL AS INTEGER ) @@ -5413,8 +5483,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + - 32 ) + + 15 col0, - COUNT ( * ) AS col0 +---- +-1 +47 query I rowsort label-1012 SELECT - - MAX ( + 76 ) @@ -5621,8 +5694,11 @@ SELECT ALL 28 - 99 + + 7 * + 0 * 22 AS col2, 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\(\(\- \(\- nullif\(Int64\(\-60\), Int64\(1\)\)\)\)\) 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 II valuesort SELECT DISTINCT COUNT ( - - NULLIF ( - 60, 1 ) ) AS col0, + 81 / - 46 AS col0 +---- +-1 +1 query I rowsort SELECT + - 51 + + + 19 @@ -6683,8 +6759,11 @@ SELECT DISTINCT 7 * 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 12 -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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 67 col1, 12 AS col1 +---- +12 +67 query I rowsort SELECT ALL 25 * + 31 @@ -6812,8 +6891,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 41 AS col0, COUNT ( * ) + - 20 AS col0 +---- +-19 +41 query II rowsort SELECT + - 65, - ( 0 ) AS col0 @@ -7095,8 +7177,12 @@ 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\(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\. +query III valuesort SELECT - + COUNT ( * ) AS col1, + 3 + 3 - + - 51 col1, 71 +---- +-1 +57 +71 query II rowsort label-1336 SELECT 97 AS col0, 48 + + ( + MAX ( + 2 ) ) * - - 7 @@ -7333,8 +7419,11 @@ SELECT - 41 * + + 34 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \+ \(\- \(\- sum\(\(\- Int64\(41\)\)\)\)\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 80 + - - SUM ( - ( 41 ) ) AS col1, + 21 AS col1 +---- +21 +39 query I rowsort label-1382 SELECT COUNT ( * ) / - 21 - - + 14 col0 @@ -7592,8 +7681,12 @@ SELECT ALL 6 * - 89 AS col0, + 82 # Datafusion - Expected - 8 # Datafusion - Expected - 26 # Datafusion - Expected - -462 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "max\(Int64\(\-7\)\) \* Int64\(66\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 8 AS col1, 34 + 91 / - + 11 AS col0, + MAX ( + - 7 ) * + 66 col1 +---- +-462 +26 +8 query I rowsort SELECT ( - + ( + 90 ) ) AS col0 @@ -7924,8 +8017,11 @@ SELECT ALL CASE + 37 WHEN 59 THEN + - COALESCE ( + 12, - 1 * - - 69 / 90 + - 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -627 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(71\) AS col0" at position 0 and "Int64\(19\) \* Int64\(33\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) + + 71 AS col0, + 19 * + 33 * - COUNT ( * ) AS col0 +---- +-627 +NULL query I rowsort SELECT - 73 * - 92 * 81 col0 @@ -8396,8 +8492,11 @@ SELECT 37 * - 47 + + 51 - 34 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-10\)\) / Int64\(15\) \+ Int64\(\-28\) \+ Int64\(20\) AS col2" at position 0 and "Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( - 10 ) / + 15 + - 28 + + 20 AS col2, - 98 col2 +---- +-8 +-98 query I rowsort label-1583 SELECT CAST ( + 82 AS INTEGER ) + 5 AS col1 @@ -8620,8 +8719,11 @@ 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\(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\. +query II valuesort SELECT ALL - + COUNT ( * ) AS col2, + 94 * 56 * + + 26 AS col2 +---- +-1 +136864 query II rowsort label-1625 SELECT + - COALESCE ( + + 75, 3 - - 81 - + MIN ( DISTINCT + NULLIF ( + 26, 73 ) ) * - 37 ) AS col1, 35 AS col2 @@ -8813,8 +8915,12 @@ SELECT ALL + 61 * 88 + + + 60 col1 # Datafusion - Expected - 66 # Datafusion - Expected - 1 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(66\), Int64\(83\) / Int64\(97\)\) AS col1" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT NULLIF ( + 66, 83 / + 97 ) AS col1, CAST ( + + COUNT ( * ) AS INTEGER ) AS col1, 67 col2 +---- +1 +66 +67 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -8842,8 +8948,11 @@ SELECT MAX ( + 18 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - -1008 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col2" at position 0 and "Int64\(\-12\) \* Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 25 AS col2, - 12 * + + 84 AS col2 +---- +-1008 +25 query I rowsort SELECT 32 * 78 - - 93 * + 82 @@ -9018,8 +9127,11 @@ 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\(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\. +query II valuesort SELECT ALL ( NULLIF ( + + MIN ( + ( - 38 ) ), 32 + + 26 ) ) * 40 * - COUNT ( * ) AS col1, COUNT ( * ) + 56 + + NULLIF ( 61, + ( + 25 ) ) + + - COUNT ( * ) * + 42 - - 56 * MIN ( 20 ) + + ( - ( + 87 ) ) AS col1 +---- +1109 +1520 query I rowsort label-1699 SELECT ( + 33 ) + + ( + - COALESCE ( CASE + 75 WHEN + + 14 THEN NULL ELSE + 2 / 91 END, - 38 / + 37 ) ) AS col1 @@ -9226,8 +9338,11 @@ SELECT + 54 + - MAX ( DISTINCT 2 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 33 AS col2, + COUNT ( * ) AS col2 +---- +1 +33 query I rowsort label-1740 SELECT DISTINCT + 29 * - - 50 * 37 * + - 14 - + 81 * - SUM ( DISTINCT + - 7 ) AS col1 @@ -9408,8 +9523,12 @@ SELECT ALL - COALESCE ( COUNT ( * ), 73 + CAST ( CASE + 73 WHEN 75 / + COUNT ( * # Datafusion - Expected - -73 # Datafusion - Expected - -75 # Datafusion - Expected - -5624 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col1" at position 0 and "Int64\(\-75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 73 col1, - 75 AS col1, - 6 + + 58 + - 66 * + COUNT ( * ) * + 1 * 86 +---- +-5624 +-73 +-75 query I rowsort label-1775 SELECT ALL + 31 * - COUNT ( * ) * + - 96 * 69 AS col0 @@ -9507,8 +9626,11 @@ SELECT ALL ( - 10 ) * - 43 + - MAX ( DISTINCT + NULLIF ( 43, 98 + - + 45 ) ) + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 179 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \- \(\- Int64\(98\)\) AS col2" at position 0 and "Int64\(\-19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 81 - - + 98 AS col2, - 19 col2 +---- +-19 +179 query I rowsort SELECT + COALESCE ( CASE + + ( - AVG ( ALL - 55 ) ) WHEN 72 / 61 THEN + 3 + 13 ELSE NULL END, + + 21 * - ( + + 54 ) + - 57 ) * + - 43 AS col0 @@ -9518,8 +9640,11 @@ SELECT + COALESCE ( CASE + + ( - AVG ( ALL - 55 ) ) WHEN 72 / 61 THEN + 3 + 13 E # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 63 ) AS col2, 41 AS col2 +---- +41 +63 query I rowsort SELECT + ( + 33 ) + + - 27 AS col1 @@ -9607,8 +9732,11 @@ SELECT DISTINCT + 0 * - 20 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "Int64\(77\) / CASE Int64\(42\) WHEN CASE Int64\(19\) WHEN Int64\(63\) THEN \(\- \(\- Int64\(\-81\)\)\) \+ Int64\(48\) \* Int64\(\-38\) WHEN CAST\(NULL AS Int32\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(56\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* sum\(DISTINCT Int64\(\-90\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(coalesce\(Int64\(10\), Int64\(1\)\) AS Int32\) \* Int64\(17\) \+ Int64\(55\) \* Int64\(74\) THEN count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-18\) \+ Int64\(64\) / Int64\(97\) ELSE NULL END \+ Int64\(55\) \* Int64\(64\) THEN Int64\(\-95\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +40 +NULL query I rowsort label-1812 SELECT DISTINCT + COUNT ( * ) + + COALESCE ( + - 75, 26 * 3 ) @@ -9857,8 +9985,11 @@ SELECT ALL 24 * + + 2 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 146 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \+ Int64\(52\) AS col0" at position 0 and "CAST\(Int64\(76\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 94 + + 52 AS col0, CAST ( + + 76 AS INTEGER ) AS col0 +---- +146 +76 query I rowsort label-1858 SELECT DISTINCT + 19 * + SUM ( ALL - + 84 ) AS col0 @@ -10370,8 +10501,11 @@ SELECT DISTINCT + + 47 + - 3 / - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3491 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) \* \(\- Int64\(\-76\)\) \+ \(\- Int64\(\-5\)\) AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - 46 ) * - ( - 76 ) + - - 5 AS col1, ( + + 8 ) AS col1 +---- +-3491 +8 query II rowsort label-1955 SELECT DISTINCT - 19 - + 0 AS col0, - COUNT ( * ) AS col2 @@ -10979,8 +11113,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-96\) \+ Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 7 AS col1, + ( - 70 ) * - 80 - - COUNT ( * ) * - 96 + 50 AS col1 +---- +5554 +7 query II rowsort label-2071 SELECT DISTINCT + 80 AS col1, SUM ( - + 46 ) @@ -11108,8 +11245,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -134 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(56\)\) AS col1" at position 0 and "Int64\(24\) \+ \(\- \(\- CAST\(Int64\(\-93\) AS Int32\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( DISTINCT + 56 ) AS col1, 24 + - - CAST ( - 93 AS INTEGER ) + + COUNT ( * ) - + 66 AS col1 +---- +-134 +56 query I rowsort label-2095 SELECT - 63 * + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - ( - 77 ) @@ -12165,8 +12305,11 @@ SELECT ALL - COUNT ( ALL - 23 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -21754997 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-37\)\)\) AS col1" at position 0 and "Int64\(50\) \+ Int64\(\-83\) \+ Int64\(77\) \* Int64\(92\) \* CAST\(Int64\(37\) AS Int32\) \* Int64\(\-83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + ( MIN ( - 37 ) ) col1, 50 + + ( + ( - 83 ) ) + 77 * 92 * + CAST ( 37 AS INTEGER ) * + - 83 AS col1 +---- +-21754997 +37 query I rowsort label-2296 SELECT ALL - CAST ( NULLIF ( - CASE WHEN NOT 40 < NULL THEN MIN ( + CAST ( NULL AS INTEGER ) ) ELSE NULL END, + 50 + 18 ) AS INTEGER ) AS col1 @@ -12401,8 +12544,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ \(\- \(\- CASE \(\- Int64\(51\)\) WHEN \(\- Int64\(51\)\) THEN NULL ELSE Int64\(26\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-37\) \+ CAST\(Int64\(80\) AS Int32\) \* Int64\(\-23\) END\)\) \+ Int64\(90\) \+ Int64\(\-75\) AS col0" at position 0 and "Int64\(\-8\) \+ Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-37 +NULL query I rowsort SELECT ALL - ( + COALESCE ( + 51, - ( - + 63 ) ) ) * - 82 + + + 54 * 46 + + - 76 @@ -12885,8 +13031,11 @@ SELECT ALL 94 - + 27, COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(61\), Int64\(\-28\)\)\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + NULLIF ( + 61, - 28 ) AS col1, + 45 AS col1 +---- +-61 +45 query I rowsort label-2432 SELECT + - COUNT ( * ) / - 32 AS col0 @@ -13175,8 +13324,11 @@ SELECT + 30 * - 30 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \+ \(\- coalesce\(\(\- sum\(DISTINCT Int64\(56\)\)\), Int64\(69\) \+ Int64\(30\) / Int64\(70\)\)\) AS col1" at position 0 and "Int64\(\-4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 99 + - COALESCE ( - SUM ( DISTINCT + 56 ), + 69 + + 30 / + 70 ) AS col1, - 4 AS col1 +---- +-4 +-43 query II rowsort label-2486 SELECT - COALESCE ( + CAST ( NULL AS INTEGER ), 29, + 7 - - CAST ( - - COALESCE ( - 92, - 20 ) AS INTEGER ) * - COUNT ( * ) * 88 ) AS col0, 26 + + + 59 AS col1 @@ -14041,8 +14193,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - -8010 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) / min\(Int64\(81\)\) \- Int64\(2\) AS col1" at position 0 and "Int64\(90\) \* Int64\(\-89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 / MIN ( ALL 81 ) - + + 2 col1, 90 * - 89 AS col1 +---- +-2 +-8010 query I rowsort label-2651 SELECT ALL - SUM ( ALL 86 ) @@ -14611,8 +14766,11 @@ SELECT ALL - 85 AS col1, - ( 55 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "Int64\(\-91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 AS col1, + ( - 91 ) AS col1 +---- +-91 +44 query I rowsort SELECT CASE + 46 WHEN + 97 + - 85 THEN - 75 - - 62 END + - 62 AS col1 @@ -14823,8 +14981,11 @@ SELECT - 80 * COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2697 # Datafusion - Expected - -2127 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(31\) AS col2" at position 0 and "CASE \(\- Int64\(95\)\) WHEN Int64\(71\) THEN NULL ELSE Int64\(\-96\) END \* Int64\(23\) \+ Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 87 * + + 31 AS col2, + CASE - ( 95 ) WHEN 71 THEN NULL ELSE - 96 END * + 23 + + 81 AS col2 +---- +-2127 +2697 query I rowsort label-2804 SELECT - 19 * - 49 * + - COUNT ( 41 ) + + 99 @@ -16425,8 +16586,11 @@ SELECT ALL 19 AS col0, + 85 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - -9118 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \* Int64\(16\) / Int64\(22\) AS col2" at position 0 and "Int64\(\-97\) \* Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 44 * 16 / + 22 AS col2, + ( - 97 ) * 94 col2 +---- +-9118 +32 query I rowsort label-3108 SELECT CAST ( NULL AS INTEGER ) / + COUNT ( DISTINCT - 6 ) * + 82 AS col1 @@ -16692,8 +16856,11 @@ SELECT 84 * - COUNT ( + 97 ) * COUNT ( * ) * 36 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT Int64\(62\)\)\) \+ \(\- Int64\(31\)\) \* Int64\(51\) / Int64\(26\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(80\) AS col1" at position 0 and "\(\- Int64\(75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( DISTINCT + ( + 62 ) ) + - + 31 * 51 / + 26 * - CAST ( NULL AS INTEGER ) * 80 AS col1, - ( + 75 ) col1 +---- +-75 +NULL query I rowsort SELECT + COALESCE ( 41, + 5 ) AS col0 @@ -17280,14 +17447,20 @@ SELECT DISTINCT + 71 + - 57 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col2" at position 0 and "Int64\(\-59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 50 AS col2, - 59 col2 +---- +-50 +-59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 AS col1, + 21 col1 +---- +21 +56 query II rowsort label-3272 SELECT - 2, + COUNT ( * ) * - 88 * + + 27 col2 @@ -17303,8 +17476,11 @@ SELECT 2 - + + 13 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 154 # Datafusion - Expected - -288736 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \- \(\- \(\- min\(Int64\(\-66\)\)\)\) AS col2" at position 0 and "Int64\(95\) \* Int64\(\-95\) \* Int64\(32\) \- Int64\(\-64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 88 - - - MIN ( - 66 ) col2, 95 * + - 95 * + 32 - - 64 AS col2 +---- +-288736 +154 query I rowsort label-3275 SELECT 47 * COALESCE ( 77, CASE COUNT ( * ) WHEN 22 THEN - + 32 * - 7 * - 89 * + COALESCE ( + + 74, + + 81 * - 97, + CAST ( - - 21 AS INTEGER ) ) WHEN - 83 * - 81 - - - 54 + - 36 THEN NULL END ) + - 21 * - 94 @@ -17314,8 +17490,11 @@ SELECT 47 * COALESCE ( 77, CASE COUNT ( * ) WHEN 22 THEN - + 32 * - 7 * - 89 * + # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "\(\- Int64\(5\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 57 AS col0, + ( - + 5 ) AS col0 +---- +-5 +57 query I rowsort SELECT + ( - - 22 ) * 3 @@ -17357,8 +17536,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, + 53 AS col2 +---- +-1 +53 query I rowsort label-3285 SELECT + NULLIF ( - + 52, - MIN ( - 96 ) * 5 * 79 + COUNT ( * ) * - + COALESCE ( 40, - 27 ) ) @@ -17373,8 +17555,11 @@ SELECT + + ( - 25 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 2876 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col2" at position 0 and "\(\- CAST\(Int64\(12\) AS Int32\)\) \+ Int64\(76\) \* Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 92 AS col2, - CAST ( ( 12 ) AS INTEGER ) + 76 * + 38 AS col2 +---- +2876 +92 query I rowsort label-3288 SELECT ( - + COUNT ( * ) ) * - + CAST ( NULL AS INTEGER ) * + 88 - + + 66 @@ -17400,8 +17585,11 @@ SELECT - - SUM ( DISTINCT - 18 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(4\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col1, + 4 + + + ( + - COUNT ( * ) ) AS col1 +---- +1 +3 query I rowsort label-3293 SELECT + ( 19 ) / ( + 3 ) @@ -17790,8 +17978,11 @@ SELECT DISTINCT 2 * + COALESCE ( - COUNT ( * ), - + 44 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 AS col0, - CAST ( NULL AS INTEGER ) AS col0 +---- +96 +NULL query I rowsort label-3369 SELECT 37 + - COUNT ( * ) * - - 74 @@ -17823,8 +18014,11 @@ SELECT DISTINCT - ( - SUM ( - + 96 ) ) AS col0 # 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 "Int64\(\-25\) AS col1" at position 0 and "Int64\(\-97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 25 AS col1, - 97 AS col1 +---- +-25 +-97 query I rowsort label-3375 SELECT ALL + + 73 + + + MAX ( - 24 ) + 33 + + 37 * + COUNT ( * ) AS col2 @@ -18067,8 +18261,11 @@ SELECT DISTINCT + MAX ( 17 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1322787375 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(63\) \* \(\- Int64\(\-65\)\) \* Int64\(\-59\) \* \(\- Int64\(75\)\) \* Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, 63 * - - 65 * - 59 * - + 75 * + 73 AS col0 +---- +1 +1322787375 query I rowsort SELECT + 50 * + 67 col1 @@ -18196,8 +18393,11 @@ SELECT + 27 + 73 + + CAST ( - 72 AS INTEGER ) - - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) / Int64\(88\) \* \(\- Int64\(\-55\)\) AS col2" at position 0 and "\(\- min\(Int64\(34\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 86 / + 88 * - + ( - 55 ) AS col2, - MIN ( ALL + + 34 ) AS col2 +---- +-34 +0 query I rowsort label-3447 SELECT - 19 * - - 47 + + SUM ( 4 ) @@ -18452,8 +18652,11 @@ 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\(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\. +query II valuesort SELECT ALL CASE 95 WHEN - + COUNT ( + 9 ) THEN 5 WHEN + 75 * + 63 * + MIN ( - + 42 ) THEN + COUNT ( * ) ELSE NULL END AS col2, 87 AS col2 +---- +87 +NULL query I rowsort SELECT ALL + 4 * - 25 - 98 @@ -18852,8 +19055,11 @@ SELECT DISTINCT COUNT ( * ) - - MIN ( DISTINCT - 14 ), 54 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\)" at position 0 and "Int64\(91\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 91, 91 +---- +91 +91 query II rowsort SELECT - 93 col0, - 21 AS col2 @@ -18968,8 +19174,11 @@ SELECT 18, 58 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37146 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \+ \(\- Int64\(92\)\) \- Int64\(89\) \* CAST\(\(\- \(\- nullif\(Int64\(26\), CAST\(CAST\(NULL AS Int32\) AS Int32\) \* Int64\(64\) \* Int64\(37\) \* \(\- \(\- Int64\(\-99\)\)\) / Int64\(94\) \+ Int64\(\-85\) \- Int64\(98\) \+ \(\- CASE Int64\(\-96\) WHEN Int64\(8\) \- Int64\(\-44\) THEN \(\- Int64\(29\)\) END\) \* Int64\(84\)\)\)\) AS Int32\) \* Int64\(\-16\) \* Int64\(\-1\) \+ Int64\(10\) AS col2" at position 0 and "Int64\(47\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(66\) \* \(\- coalesce\(Int64\(81\), nullif\(\(\- max\(Int64\(\-29\)\)\), Int64\(58\) \* Int64\(\-10\) \+ Int64\(38\)\) \+ Int64\(17\) \* Int64\(\-61\), Int64\(86\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-37146 +NULL query I rowsort label-3592 SELECT COUNT ( * ) - 13 AS col0 @@ -19132,8 +19341,11 @@ SELECT - 21 * - 29 + - 24 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-3\)\) AS col1" at position 0 and "nullif\(Int64\(\-44\), Int64\(53\)\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( - 3 ) AS col1, NULLIF ( - 44, + + 53 ) * CAST ( NULL AS INTEGER ) AS col1 +---- +-3 +NULL query II rowsort label-3623 SELECT - COUNT ( - - 0 ) AS col1, - 38 @@ -19258,8 +19470,11 @@ SELECT DISTINCT + COUNT ( * ) * + + 34 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "Int64\(\-59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 col2, - 59 AS col2 +---- +-59 +19 query II rowsort label-3646 SELECT ALL + 56 * + MAX ( DISTINCT 75 ), - 98 / + 61 AS col1 @@ -19306,8 +19521,11 @@ 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\(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\. +query II valuesort SELECT 54 AS col2, - CASE - - ( 67 ) WHEN - 62 THEN NULL WHEN - 47 * - 30 THEN - - COUNT ( * ) ELSE + + COUNT ( * ) * - - 74 + ( + 41 ) END + 15 AS col2 +---- +-100 +54 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -19483,8 +19701,11 @@ SELECT ALL - + 54 + - SUM ( - 57 ) # 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 "Int64\(63\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 AS col2, 20 AS col2 +---- +20 +63 query I rowsort label-3689 SELECT ALL - + 37 * + COALESCE ( SUM ( ALL - 51 ), + 74, + 48 * - 23 + + 82 ) @@ -19499,8 +19720,11 @@ SELECT DISTINCT + MAX ( - 52 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- CAST\(Int64\(89\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col0, - CAST ( 89 AS INTEGER ) AS col0 +---- +-89 +1 query I rowsort label-3692 SELECT - - 64 * + COUNT ( * ) - 45 / - - COUNT ( * ) @@ -19613,8 +19837,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 + - 38 AS col2, + 30 * - COUNT ( * ) AS col2 +---- +-30 +28 query I rowsort label-3713 SELECT 72 * NULLIF ( - 4, + NULLIF ( + NULLIF ( MAX ( ALL + 24 ), + - ( + 30 ) ), - + 25 ) ) * 69 @@ -19624,8 +19851,11 @@ SELECT 72 * NULLIF ( - 4, + NULLIF ( + NULLIF ( MAX ( ALL + 24 ), + - ( + 30 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5458 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ Int64\(75\) \* 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 II valuesort SELECT ALL + 92 + + 75 * - 74 AS col1, 67 col1 +---- +-5458 +67 query I rowsort SELECT ALL + 83 + + ( + - 4 ) + + 12 AS col2 @@ -20011,8 +20241,11 @@ SELECT - 96 * - + COUNT ( * ) * - 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 720 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) / Int64\(86\) AS col2" at position 0 and "Int64\(20\) \* Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 57 / + 86 AS col2, 20 * 36 AS col2 +---- +0 +720 query I rowsort SELECT DISTINCT - 48 - 68 AS col1 @@ -20211,8 +20444,11 @@ SELECT ALL 78 * + + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 70 col1, + COUNT ( * ) AS col1 +---- +1 +70 query I rowsort label-3829 SELECT + CAST ( + ( + 0 ) AS INTEGER ) AS col1 @@ -20237,8 +20473,11 @@ SELECT - 23 * + + 41 + - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 35 AS col2, + CAST ( NULL AS INTEGER ) AS col2 +---- +35 +NULL query I rowsort label-3834 SELECT DISTINCT + COUNT ( * ) * 18 * - + 63 AS col1 @@ -20258,8 +20497,11 @@ SELECT ALL + 83 + - 15 * - 75 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, + 83 AS col0 +---- +1 +83 query I rowsort SELECT ( + + 52 ) * - + NULLIF ( + 89, + - 61 ) @@ -20669,8 +20911,11 @@ SELECT ALL + 82 + + 46 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 101 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \- \(\- Int64\(74\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 27 - - + 74 AS col2, CAST ( NULL AS INTEGER ) AS col2 +---- +101 +NULL query II rowsort label-3916 SELECT ALL + COUNT ( * ) - + - 47 AS col1, 99 AS col2 @@ -21044,8 +21289,11 @@ SELECT ( - + 72 ) - 37 + 2 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 AS col2, + 59 AS col2 +---- +59 +68 query I rowsort label-3988 SELECT 50 * CAST ( NULL AS INTEGER ) + + 78 AS col2 @@ -21879,8 +22127,11 @@ SELECT - 14 * + 74 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 223 -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 "Int64\(6\) \+ \(\- Int64\(\-55\)\) \+ Int64\(\-18\) \* Int64\(\-9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT CAST ( NULL AS FLOAT8 ) AS col2, + 6 + - + ( - 55 ) + ( - 18 ) * - 9 AS col2 +---- +223 +NULL query I rowsort label-4148 SELECT DISTINCT 32 * - + COUNT ( * ) / - + 86 AS col0 @@ -23227,8 +23478,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2968 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \* Int64\(53\) AS col1" at position 0 and "max\(\(\- Int64\(\-16\)\)\) \+ Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 56 * 53 AS col1, MAX ( - - 16 ) + 46 col1 +---- +2968 +62 query I rowsort label-4405 SELECT NULLIF ( + SUM ( ALL - 76 ), - 40 + 60 ) + CAST ( 57 AS INTEGER ) * 38 AS col0 @@ -24024,8 +24278,11 @@ 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\(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\. +query II valuesort SELECT 31 * COUNT ( * ) * 78 AS col2, - 64 AS col2 +---- +-64 +2418 query I rowsort label-4557 SELECT - 81 * - MAX ( ALL 8 ) + 51 @@ -24155,8 +24412,11 @@ SELECT 7 + 91 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1302 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(\-31\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 * - 31 AS col1, 69 AS col1 +---- +-1302 +69 query I rowsort label-4582 SELECT ALL COUNT ( DISTINCT + 87 ) @@ -24186,8 +24446,11 @@ SELECT 67 * - - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- Int64\(6\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( - + 6 ) AS col0, COUNT ( * ) AS col0 +---- +-6 +1 query I rowsort label-4588 SELECT DISTINCT 24 / + 40 AS col0 @@ -24316,8 +24579,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 59 AS col1, 76 col1 +---- +59 +76 query I rowsort label-4613 SELECT + 8 / + + NULLIF ( CAST ( NULL AS INTEGER ), + 41 * - + 38 * - COUNT ( * ) ) @@ -24626,8 +24892,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-72\) \+ Int64\(\-78\) \* Int64\(\-92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 65 AS col2, + 56 * - - 74 + 48 - + COUNT ( * ) + - 72 + - 78 * - 92 AS col2 +---- +-65 +11295 query I rowsort label-4672 SELECT + - CASE 4 WHEN COUNT ( * ) * + 46 + 14 + - ( + 19 ) + 87 * + 8 * COUNT ( * ) THEN NULL ELSE ( + COALESCE ( - 83, - COUNT ( * ) + MAX ( DISTINCT + 77 ) ) ) END AS col1 @@ -24838,8 +25107,11 @@ SELECT ALL + 13 + - - ( COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "Int64\(\-29\) \+ Int64\(24\) \- Int64\(99\) \+ CAST\(NULL AS Int32\) \* Int64\(87\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-76\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(71\) \* Int64\(9\) \+ Int64\(83\) \+ \(\- Int64\(96\)\) \* Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 15 AS col2, - 29 + 24 - + 99 + + CAST ( NULL AS INTEGER ) * 87 * - COUNT ( * ) * - 76 / COUNT ( * ) * 71 * + 9 + 83 + - ( ( 96 ) ) * + 61 AS col2 +---- +15 +NULL query II rowsort label-4713 SELECT DISTINCT + ( - + 45 ) + COUNT ( * ), + 42 AS col1 @@ -24920,8 +25192,11 @@ SELECT - 23 + - 20 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- \(\- Int64\(\-64\)\)\)\) AS col2" at position 0 and "Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( - - ( - 64 ) ) AS col2, 8 AS col2 +---- +-64 +8 query I rowsort SELECT ALL - 51 * - 86 * + 2 AS col0 @@ -25214,8 +25489,11 @@ SELECT DISTINCT - 8 col0, - 62 * - ( + + 11 ) + - + 31 - + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 AS col1, + CAST ( NULL AS INTEGER ) AS col1 +---- +-31 +NULL query I rowsort label-4784 SELECT ALL 24 - - COUNT ( * ) * 15 AS col1 @@ -26028,8 +26306,11 @@ SELECT ALL + - 27 * + - COUNT ( * ) - + - ( - 42 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) / \(\- CAST\(\(\- Int64\(39\)\) AS Int32\)\) \+ \(\- Int64\(\-32\)\) AS col2" at position 0 and "Int64\(57\) / Int64\(\-34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 82 ) / - CAST ( - + 39 AS INTEGER ) + - - 32 AS col2, 57 / - 34 AS col2 +---- +-1 +34 query I rowsort label-4940 SELECT + 92 + - 37 + COALESCE ( COUNT ( + 75 ), - 40 ) * + 60 AS col2 @@ -26111,8 +26392,11 @@ SELECT ALL COUNT ( * ), - 75 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col1" at position 0 and "Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 col1, - 58 col1 +---- +-58 +96 query I rowsort label-4956 SELECT DISTINCT + COUNT ( ALL - 63 ) + 33 + + + COUNT ( * ) / 63 + + 97 + + 91 @@ -26304,8 +26588,11 @@ 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\(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\. +query II valuesort SELECT - 83 * + 52 AS col0, COUNT ( * ) / COUNT ( * ) * - 2 * 29 * 24 + 93 + - MAX ( DISTINCT + + 98 ) col0 +---- +-1397 +-4316 query I rowsort SELECT ALL 89 * + 20 AS col1 @@ -26624,8 +26911,11 @@ SELECT 20 * 57 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -127 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(0\)\) AS col2" at position 0 and "Int64\(\-48\) \+ \(\- Int64\(79\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MIN ( + + 0 ) AS col2, - 48 + - + 79 AS col2 +---- +-127 +0 query I rowsort label-5053 SELECT 95 * - COUNT ( * ) * + CASE + CAST ( - 84 AS FLOAT8 ) WHEN - + 40 THEN NULL WHEN - 86 THEN 62 + - - ( - + 56 ) ELSE - + 43 * + 39 * - ( - ( COUNT ( 68 ) ) ) * + 36 - - - 89 + - - ( - 52 ) / - 78 END @@ -26736,8 +27026,11 @@ SELECT + 53 / - + 87 + - + 56 - - 91 + + + 27 / 1 * 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - -121764 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* Int64\(\-42\) \* \(\- Int64\(\-42\)\) \+ \(\- Int64\(48\)\) AS col2" at position 0 and "Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 69 * - 42 * - - 42 + - + 48 AS col2, 80 AS col2 +---- +-121764 +80 query I rowsort SELECT + + 31 col2 @@ -26839,8 +27132,11 @@ SELECT ALL ( - ( 80 ) ) AS col0, 88 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- CAST\(Int64\(79\) AS Int32\)\)\)\) \+ coalesce\(Int64\(59\), Int64\(50\) \+ CASE Int64\(30\) WHEN Int64\(26\) THEN Int64\(71\) \* Int64\(81\) WHEN \(\- Int64\(\-97\)\) \* Int64\(8\) THEN NULL END \+ \(\- Int64\(58\)\) \* \(\- Int64\(\-17\)\)\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - - CAST ( 79 AS INTEGER ) ) + + + COALESCE ( 59, + 50 + + + CASE + + 30 WHEN 26 THEN + 71 * 81 WHEN - - 97 * + + 8 THEN NULL END + - + 58 * - - 17 ) AS col1, 69 AS col1 +---- +-20 +69 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -27061,8 +27357,11 @@ SELECT ALL - + 6 / - 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(81\)\) \- \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(26\) \- Int64\(96\) \* \(\- Int64\(89\)\) \* \(\- sum\(DISTINCT CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 81 - + - CAST ( NULL AS INTEGER ) AS col1, 26 - + 96 * - + 89 * - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 +---- +NULL +NULL query II rowsort label-5136 SELECT DISTINCT - 76 AS col0, 88 * - 3 * COUNT ( * ) @@ -27334,8 +27633,11 @@ SELECT ALL + 82 * - 8 + - 38 + 74 / + 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 69 AS col2 +---- +1 +69 query I rowsort SELECT 22 * + 42 - 32 * + 47 col2 @@ -27498,8 +27800,12 @@ SELECT - ( + - 79 ) AS col0, ( ( + ( 87 ) ) ) AS col2 # Datafusion - Expected - 145 # Datafusion - Expected - 37 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col1" at position 1 and "Int64\(75\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL NULLIF ( + 49, + + 27 ) + + + 96, + 37 AS col1, 75 AS col1 +---- +145 +37 +75 query I rowsort label-5217 SELECT DISTINCT 73 + COUNT ( * ) + 57 AS col2 @@ -27626,8 +27932,11 @@ SELECT ALL + 85 * - 70 - - 32 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1080 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \+ \(\- min\(\(\- Int64\(\-24\)\)\)\) \* Int64\(41\) AS col1" at position 0 and "\(\- coalesce\(Int64\(13\), count\(DISTINCT Int64\(64\)\)\)\) \+ \(\- count\(DISTINCT Int64\(29\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 96 + - + MIN ( - - 24 ) * + + 41 AS col1, - COALESCE ( + 13, COUNT ( DISTINCT 64 ) ) + - COUNT ( DISTINCT 29 ) AS col1 +---- +-1080 +-14 query I rowsort label-5240 SELECT DISTINCT 45 * + - CAST ( NULL AS INTEGER ) * - 10 / + 84 + + MAX ( + 22 ) @@ -27790,8 +28099,11 @@ SELECT + NULLIF ( + + 37, - - 68 + - + COUNT ( * ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 AS col2, + 0 col2 +---- +-70 +0 query I rowsort SELECT 25 * + 84 @@ -28330,8 +28642,11 @@ NULL # 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\(56\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 56 AS col2, 0 AS col2 +---- +0 +56 query I rowsort label-5373 SELECT 38 * CAST ( + 95 AS INTEGER ) + - 77 / - - CAST ( NULL AS INTEGER ) col2 @@ -28508,8 +28823,11 @@ SELECT DISTINCT - COALESCE ( + 24, - 90 * + - 58 / + NULLIF ( + MIN ( ALL - + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - -464 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(29\)\)\) \* Int64\(19\) \+ Int64\(87\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( 29 ) * 19 + + + 87 AS col0, 93 AS col0 +---- +-464 +93 query I rowsort SELECT - - 46 * 5 + - 67 * + 48 + - 23 * + 26 + 76 AS col0 @@ -28601,8 +28919,12 @@ SELECT DISTINCT + NULLIF ( - 44, - - 71 ) * 39 / 17 / 71 AS col0 # Datafusion - Expected - -34 # Datafusion - Expected - 3551 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \+ Int64\(\-40\) \+ \(\- Int64\(83\)\) AS col0" at position 0 and "Int64\(\-20\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 89 + + - 40 + - + 83 AS col0, + 97 * - CAST ( - 36 AS INTEGER ) + - ( + - 59 ) AS col2, ( ( - 20 ) ) AS col0 +---- +-20 +-34 +3551 query I rowsort label-5422 SELECT MAX ( DISTINCT - 84 ) * - 11 AS col1 @@ -28823,8 +29145,11 @@ SELECT ALL - 18 AS col0, + 14 * - - 18 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 "Int64\(3\) AS col0" at position 0 and "Int64\(\-68\) \* \(\- \(\- count\(Int64\(\-71\)\)\)\) \* coalesce\(Int64\(52\), Int64\(\-26\)\) \+ CASE Int64\(47\) WHEN Int64\(46\) \* Int64\(\-16\) \* nullif\(Int64\(\-90\), max\(DISTINCT Int64\(\-28\)\)\) THEN max\(Int64\(\-7\)\) \* Int64\(24\) ELSE NULL END \* \(\- Int64\(70\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 AS col0, - 68 * - ( - COUNT ( - 71 ) ) * COALESCE ( + 52, - 26 ) + + + CASE 47 WHEN 46 * + - 16 * NULLIF ( + - 90, + MAX ( DISTINCT - 28 ) ) THEN + + MAX ( - 7 ) * + 24 ELSE NULL END * - + 70 AS col0 +---- +3 +NULL query I rowsort SELECT - + 57 * - - 58 @@ -29017,8 +29342,11 @@ SELECT ALL COALESCE ( 29, - 90 / + CAST ( NULL AS INTEGER ), - 24 - + CAST ( NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - 125 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ Int64\(65\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 60 + 65 AS col2, COUNT ( * ) col2 +---- +1 +125 query II rowsort SELECT - 84 + + + 22 AS col1, 53 AS col0 @@ -29604,8 +29932,11 @@ SELECT ALL 53 col1, + 62 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col1" at position 0 and "Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 73 AS col1, - 66 AS col1 +---- +-66 +73 query I rowsort SELECT ALL 59 + - 7 AS col1 @@ -29821,8 +30152,11 @@ SELECT SUM ( + - ( - 3 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(70\) AS Int32\)\) AS col0" at position 0 and "Int64\(\-58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( + 70 AS INTEGER ) AS col0, - 58 AS col0 +---- +-58 +-70 query I rowsort label-5654 SELECT DISTINCT SUM ( - ( 70 ) ) - - 48 @@ -29848,8 +30182,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 + - + 92 AS col2, NULLIF ( + - 67, + 39 * - 81 + + COUNT ( * ) ) col2 +---- +-65 +-67 query I rowsort label-5659 SELECT + - 91 * 93 + - 56 + + 62 + - + 21 * 92 + - CAST ( NULL AS INTEGER ) AS col1 @@ -30806,8 +31143,11 @@ 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\(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\. +query II valuesort SELECT ALL + 0 AS col2, + CASE + - ( - 50 ) WHEN 65 + 86 + 89 + 48 * + COUNT ( * ) THEN + 97 * 80 + 3 ELSE - 68 END AS col2 +---- +-68 +0 query I rowsort SELECT DISTINCT 54 * ( - 56 ) + - + 6 @@ -31003,8 +31343,11 @@ SELECT ALL 15 - + + 66 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col2" at position 0 and "Int64\(\-81\) \- \(\- Int64\(81\)\) / \(\- Int64\(\-13\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 55 ) AS col2, + ( + - 81 ) - - + 81 / - - 13 AS col2 +---- +-55 +-75 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -31017,8 +31360,11 @@ SELECT DISTINCT 33 - - NULLIF ( + 85, - CAST ( + + 3 AS FLOAT8 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - -3003 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "CAST\(\(\- Int64\(39\)\) AS Int32\) \* Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( 87 ) AS col0, + CAST ( - + 39 AS INTEGER ) * 77 AS col0 +---- +-3003 +87 query II rowsort label-5882 SELECT DISTINCT + COALESCE ( + 47, ( - - 93 ) ) / 41 AS col1, - 82 * 50 / - 61 AS col2 @@ -31066,8 +31412,11 @@ SELECT DISTINCT + 44 + + COUNT ( * ) * 4 / NULLIF ( 84, - COUNT ( * ) / - ( + 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 80 col0, ( CAST ( NULL AS INTEGER ) ) * - 68 AS col0 +---- +80 +NULL query I rowsort label-5891 SELECT CAST ( NULL AS INTEGER ) + - - 89 @@ -32026,8 +32375,11 @@ SELECT ALL - 17 * 72 + + - 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \- Int64\(\-57\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 19 - - 57 col2, + 4 AS col2 +---- +4 +76 query I rowsort label-6078 SELECT - 7 * + ( + - 2 ) + 22 * COALESCE ( 55, - CAST ( NULL AS INTEGER ), + ( COALESCE ( 48, + COUNT ( * ) + 93, + 76 + + 34 * + 61, 98 ) ) * + 77 ) @@ -32642,8 +32994,11 @@ SELECT - 70 * CAST ( - - 75 AS INTEGER ) * 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2411 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(66\) \+ \(\- Int64\(97\)\) AS col2" at position 0 and "Int64\(\-1\) \* CASE \(\- Int64\(\-44\)\) WHEN Int64\(35\) \+ Int64\(23\) THEN NULL WHEN Int64\(59\) / Int64\(5\) \+ Int64\(93\) THEN Int64\(\-23\) END \- Int64\(\-59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 38 * + 66 + - ( 97 ) col2, ( + - 1 ) * + CASE - ( ( - 44 ) ) WHEN + 35 + 23 THEN NULL WHEN + 59 / 5 + 93 THEN - 23 END - - 59 AS col2 +---- +2411 +NULL query I rowsort SELECT - 81 - 27 - + 70 + + ( - - 8 ) + - 69 * + 16 AS col0 @@ -32680,8 +33035,12 @@ 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\(1\)\) AS count\(\*\)\), Int64\(7\)\) \+ Int64\(\-89\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ( + ( - 51 ) ) AS col2, - 31 AS col0, 54 + + 51 / NULLIF ( - + COUNT ( * ), 7 ) + - 89 AS col2 +---- +-31 +-51 +-86 query I rowsort label-6201 SELECT + CAST ( - + 48 AS INTEGER ) - 67 * + ( + + 9 ) @@ -32711,8 +33070,11 @@ SELECT - - ( + ( - ( + 0 ) ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "count\(\(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Float64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 63 AS col1, COUNT ( + - CAST ( - CAST ( NULL AS INTEGER ) AS FLOAT8 ) ) AS col1 +---- +0 +63 query I rowsort label-6207 SELECT + + COUNT ( DISTINCT - + 61 ) * - + CASE + COUNT ( * ) WHEN - - 88 * + - COUNT ( * ) THEN 89 * + + 11 + + NULLIF ( - 12, COUNT ( * ) * 9 ) ELSE NULLIF ( - 54, + 9 / 15 + 61 ) END @@ -32761,8 +33123,12 @@ NULL # Datafusion - Expected - 84 # Datafusion - Expected - -16 # Datafusion - Expected - -3608 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(84\)\) AS col0" at position 0 and "\(\- Int64\(41\)\) \* Int64\(88\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + MIN ( 84 ) AS col0, ( CAST ( - 16 AS INTEGER ) ), - + 41 * + 88 AS col0 +---- +-16 +-3608 +84 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -33022,8 +33388,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col2" at position 0 and "Int64\(20\) \- Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 AS col2, 20 - 8 AS col2 +---- +12 +67 query I rowsort SELECT ALL 46 - - - 25 @@ -33281,8 +33650,11 @@ SELECT ALL - 75 * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) AS col1" at position 0 and "Int64\(73\) \+ \(\- count\(DISTINCT Int64\(25\)\)\) / Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - CAST ( NULL AS FLOAT8 ) AS col1, 73 + - COUNT ( DISTINCT + 25 ) / + 40 col1 +---- +73 +NULL query I rowsort label-6315 SELECT + 52 / + - 68 @@ -33298,8 +33670,12 @@ SELECT + + 6 + - 87 AS col0 # Datafusion - Expected - 35 # Datafusion - Expected - 89 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-35\)\) AS col2" at position 0 and "Int64\(22\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - 35 col2, 89 col0, 22 AS col2 +---- +22 +35 +89 query I rowsort label-6318 SELECT ( - COALESCE ( COUNT ( * ), + 55 - - 44 ) ) @@ -33653,8 +34029,11 @@ SELECT 34 + 42 + + COALESCE ( - 4, + 42 + 40, + 88 - - SUM ( DISTINCT + - 48 ) - # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(21\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 21 AS col1, COUNT ( * ) AS col1 +---- +-21 +1 query I rowsort label-6385 SELECT SUM ( - + 94 ) AS col1 @@ -33763,8 +34142,11 @@ SELECT 10 * - + 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- Int64\(\-96\)\)\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( - - 96 ) AS col0, + 97 AS col0 +---- +96 +97 query I rowsort label-6405 SELECT 59 + + CASE 69 WHEN + 13 THEN + + COUNT ( * ) WHEN + 80 * + 60 + + 22 THEN NULL ELSE NULL END * - 15 + COUNT ( * ) @@ -33804,8 +34186,11 @@ SELECT 37 + - + 58 / COALESCE ( + 83, + + 46 / + CAST ( + - 88 AS INTEGER ) * + # Datafusion - Datafusion expected results: # Datafusion - Expected - 72128 # Datafusion - Expected - 3905 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \* Int64\(92\) \* Int64\(\-8\) AS col0" at position 0 and "Int64\(71\) \* Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 98 * 92 * - 8 col0, 71 * 55 AS col0 +---- +3905 +72128 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -34778,8 +35163,11 @@ SELECT 78 * + NULLIF ( - 58, 18 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 72 col1, + 47 AS col1 +---- +47 +72 query I rowsort SELECT ALL 59 * 15 AS col1 @@ -34870,8 +35258,11 @@ SELECT ALL COUNT ( * ) + - - 92 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 3034 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col1" at position 0 and "Int64\(74\) \* Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 AS col1, + 74 * 41 AS col1 +---- +3034 +72 query I rowsort label-6614 SELECT DISTINCT CASE - 47 WHEN + 88 * - 30 * + - 9 THEN - + 78 + + + COALESCE ( - 89, + 58 / + - 29 ) * 41 ELSE NULL END * + - MAX ( - 6 ) @@ -34991,8 +35382,11 @@ SELECT - COUNT ( * ) - - 85 * - - 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col2" at position 0 and "max\(Int64\(57\)\) \- \(\- Int64\(50\)\) / Int64\(\-1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 57 AS col2, MAX ( ( 57 ) ) - - + 50 / - 1 AS col2 +---- +57 +7 query II rowsort label-6637 SELECT 82 + - 69 AS col2, - ( 55 ) / - COUNT ( ALL + 97 ) @@ -35512,8 +35906,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) + + - 32 * 81 AS col1, + MAX ( ALL - ( + 44 ) ) col1 +---- +-2591 +-44 query I rowsort SELECT ALL - 37 + + - 49 AS col2 @@ -35734,8 +36131,11 @@ SELECT ALL + ( + - 78 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col0" at position 0 and "Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 AS col0, - 42 AS col0 +---- +-10 +-42 query II rowsort SELECT ALL + 51 AS col1, - 96 + - + 9 AS col0 @@ -35860,8 +36260,11 @@ SELECT DISTINCT + COALESCE ( 66, - - MAX ( - 44 ) * + - 9 ) + + - 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \+ Int64\(33\) \+ nullif\(\(\- Int64\(\-12\)\), Int64\(\-40\) \- Int64\(47\)\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 3 + + 33 + + ( NULLIF ( - - 12, - 40 - 47 ) ) col0, + 46 AS col0 +---- +46 +48 query I rowsort label-6804 SELECT ALL + - ( + - MIN ( - 3 ) ) + 4 AS col0 @@ -35898,8 +36301,11 @@ 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\(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\. +query II valuesort SELECT ALL + CASE - - 32 WHEN + + 7 * + COUNT ( * ) THEN NULL ELSE 52 END AS col1, 64 AS col1 +---- +52 +64 query I rowsort label-6811 SELECT + + CAST ( 31 AS INTEGER ) / SUM ( + 47 ) AS col0 @@ -35930,8 +36336,12 @@ SELECT ALL 81 * 10 + + 63 # Datafusion - Expected - -12 # Datafusion - Expected - 6992 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* Int64\(92\) AS col0" at position 1 and "Int64\(36\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 50 + 62 / - COUNT ( * ) AS col2, 76 * 92 AS col0, 36 AS col0 +---- +-12 +36 +6992 query I rowsort label-6817 SELECT ALL 78 / + 78 - - CASE + - 28 WHEN + - 90 * 2 THEN NULL ELSE + + 29 END - + + 0 / + - COUNT ( * ) * COUNT ( * ) * + - 61 * - COUNT ( * ) @@ -36978,8 +37388,11 @@ SELECT ALL - 26 * 22 AS col1, 83 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 4700 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) AS col0" at position 0 and "Int64\(50\) \* Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - 13 ) AS col0, 50 * + 94 AS col0 +---- +-13 +4700 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -37064,8 +37477,11 @@ SELECT + - MIN ( DISTINCT + 32 ) + - + 40 + + 95 * 26 * + 42 * - 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - -750 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(\-25\) AS col0" at position 0 and "Int64\(\-48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 30 * - 25 col0, - 48 AS col0 +---- +-48 +-750 query I rowsort SELECT + 76 + - + 64 @@ -37306,8 +37722,11 @@ SELECT + MAX ( ALL - - 2 ) AS col0, - 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "Int64\(13\) \+ Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 78 AS col2, 13 + + ( 71 ) AS col2 +---- +78 +84 query I rowsort label-7078 SELECT ALL + COUNT ( ALL + - ( - 59 ) ) * + 51 / + 6 + + 74 + 69 @@ -37449,8 +37868,11 @@ 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\(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\. +query II valuesort SELECT ALL - 19 * - 71 - - 30 + - - 92 + - 47 * + 23 * 37 AS col1, COUNT ( * ) + + ( + CASE WHEN NULL < 92 THEN 13 ELSE NULL END ) AS col1 +---- +-38526 +NULL query I rowsort SELECT + - 14 + + 28 AS col0 @@ -37480,8 +37902,11 @@ SELECT NULLIF ( + - COUNT ( * ), ( COUNT ( * ) ) + + 88 + + COUNT ( * ) - - - MA # Datafusion - Datafusion expected results: # Datafusion - Expected - 2624 # Datafusion - Expected - -850 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \* Int64\(\-41\) AS col2" at position 0 and "Int64\(17\) \* \(\- Int64\(50\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 64 * - 41 AS col2, + 17 * - + ( 50 ) AS col2 +---- +-850 +2624 query I rowsort SELECT ALL COALESCE ( + + 61, - - 36, + 82 ) * - - 9 AS col2 @@ -37533,8 +37958,11 @@ SELECT DISTINCT 20 * - 90 + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5811 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \+ Int64\(\-66\) \* Int64\(\-89\) AS col0" at position 0 and "sum\(Int64\(\-93\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 63 + + - 66 * - 89 AS col0, SUM ( ALL - 93 ) AS col0 +---- +-93 +5811 query I rowsort label-7121 SELECT COUNT ( * ) * + 30 - 21 + + COUNT ( + - 84 ) AS col2 @@ -37596,8 +38024,11 @@ SELECT - 51 + + 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(61\)\) AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 61 AS col1, 28 AS col1 +---- +-61 +28 query I rowsort SELECT - ( + 89 ) + + 60 @@ -37617,8 +38048,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col2, 22 + - - 39 AS col2 +---- +-1 +61 query I rowsort SELECT + 47 - - 95 col1 @@ -37911,8 +38345,11 @@ SELECT ALL - 73 * + - COALESCE ( + 77, - 27 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 41 AS col0, - 16 AS col0 +---- +-16 +41 query I rowsort SELECT 93 * 83 AS col0 @@ -38009,8 +38446,11 @@ SELECT 82 * - NULLIF ( + COUNT ( * ), 88 * + 54 + 61 + COUNT ( * ) + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col1" at position 0 and "Int64\(\-65\) / \(\- min\(Int64\(\-67\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 31 col1, - 65 / - MIN ( ALL - 67 ) AS col1 +---- +0 +31 query I rowsort SELECT ALL + 25 + - 80 AS col2 @@ -38259,8 +38699,11 @@ SELECT ( - - NULLIF ( - + ( + COUNT ( * ) ), + 96 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -585 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* \(\- Int64\(39\)\) AS col1" at position 0 and "Int64\(\-65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 15 * - + 39 col1, - 65 AS col1 +---- +-585 +-65 query II rowsort label-7258 SELECT ALL + ( - CAST ( NULL AS INTEGER ) ), - 54 / 26 col1 @@ -38277,8 +38720,11 @@ SELECT ALL + MIN ( ALL 16 ) * - 48 + + COUNT ( * ) + + 72 + 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 "nullif\(Int64\(42\), Int64\(35\)\) AS col1" at position 0 and "Int64\(13\) \* Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( + 42, + 35 ) AS col1, 13 * - 0 col1 +---- +0 +42 query I rowsort label-7261 SELECT ALL + 14 * + - CAST ( NULL AS INTEGER ) + + 69 + - 14 @@ -38979,8 +39425,11 @@ SELECT ALL + COUNT ( * ) * 27 col1, 9 - - ( + ( - 40 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "Int64\(\-48\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 17 col1, - 48 + + + COUNT ( * ) AS col1 +---- +-47 +17 query I rowsort SELECT ALL + - 34 * - 57 * - 64 @@ -39004,8 +39453,11 @@ SELECT 29 * + 26 + - ( 70 ) - + - 7 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 col0" at position 0 and "sum\(\(\- Int64\(\-83\)\)\) / Int64\(\-81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 51 AS col0, + SUM ( ALL - - 83 ) / - 81 AS col0 +---- +-1 +-51 query II rowsort label-7396 SELECT - + SUM ( - 13 ) * - COUNT ( * ) * + 30, COUNT ( * ) AS col2 @@ -39076,8 +39528,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col0" at position 0 and "Int64\(26\) / Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 25 AS col0, 26 / + 6 AS col0 +---- +-25 +4 query I rowsort SELECT 84 * ( - 89 ) AS col0 @@ -39087,8 +39542,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 AS col0, 30 + + 34 - + - COUNT ( * ) AS col0 +---- +21 +65 query I rowsort SELECT - 70 * + 15 + - - 16 + 66 + + + 12 + - 98 @@ -39330,8 +39788,11 @@ SELECT 38 - - 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 col2, + 60 AS col2 +---- +60 +66 query I rowsort SELECT 54 * + 95 @@ -40651,8 +41112,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 39 AS col2, 54 AS col2 +---- +-39 +54 query II rowsort label-7712 SELECT ALL + 55 AS col1, - COUNT ( * ) AS col0 @@ -41424,8 +41888,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \- sum\(Int64\(17\)\) \* Int64\(23\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - 50 / - COALESCE ( - 20, + AVG ( ALL + 29 ) + ( - 44 ) ) + + 75 AS col2, COALESCE ( + 51, COUNT ( * ) - ( SUM ( ALL + 17 ) ) * + 23 ) AS col2 +---- +51 +72.5 query II rowsort SELECT ALL + 95 AS col0, + 91 AS col1 @@ -41516,8 +41983,11 @@ SELECT ALL 84 AS col1, 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "nullif\(Int64\(42\), Int64\(67\) / Int64\(\-53\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, NULLIF ( + + 42, + ( 67 ) / - 53 ) AS col1 +---- +1 +42 query I rowsort SELECT - 92 * + 83 + 43 AS col0 @@ -41889,8 +42359,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 16 col1, COUNT ( * ) + + + 78 AS col1 +---- +16 +79 query II rowsort label-7947 SELECT DISTINCT - COUNT ( * ) AS col1, - 47 + - COUNT ( * ) @@ -42296,8 +42769,11 @@ SELECT ALL - MIN ( - + 9 ) # 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\(35\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 AS col0, 41 AS col0 +---- +35 +41 query I rowsort label-8026 SELECT ( + 8 ) + COUNT ( * ) AS col1 @@ -42347,8 +42823,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 210 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(75\)\)\) AS col0" at position 0 and "Int64\(78\) \+ Int64\(84\) \+ Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + MAX ( DISTINCT 75 ) AS col0, + 78 + + 84 + + 48 AS col0 +---- +-75 +210 query II rowsort SELECT - + 81, 65 AS col0 @@ -42618,8 +43097,11 @@ SELECT - ( + - 11 ) * + - COUNT ( * ) + + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - -7047 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-59\), Int64\(\-71\)\) AS col2" at position 0 and "Int64\(\-91\) \* Int64\(77\) \+ Int64\(\-40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL NULLIF ( - 59, - 71 ) AS col2, - 91 * + 77 + + - 40 AS col2 +---- +-59 +-7047 query I rowsort SELECT - 44 + - 85 col0 @@ -42686,8 +43168,11 @@ SELECT ALL + + 65 * - 30 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2597 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) \* \(\- Int64\(53\)\) AS col1" at position 0 and "Int64\(67\) \+ CASE \(\- CASE \(\- nullif\(Int64\(68\), Int64\(\-94\) \* \(\- Int64\(\-14\)\) \- Int64\(83\) \* Int64\(\-40\)\)\) WHEN \(\- Int64\(20\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-57\) \* Int64\(82\) \* Int64\(\-44\) \+ coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(93\)\) THEN Int64\(88\) ELSE NULL END\) WHEN Int64\(37\) THEN \(\- avg\(DISTINCT Int64\(52\)\)\) WHEN Int64\(\-45\) THEN count\(Int64\(1\)\) AS count\(\*\) \- CAST\(NULL AS Int32\) END \* Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +2597 +NULL query II rowsort label-8101 SELECT - - 6 * 70 + - COUNT ( * ) AS col0, 94 @@ -42838,8 +43323,11 @@ SELECT COUNT ( ALL 49 ) + + + 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4675 # Datafusion - Expected - -1681 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* Int64\(\-85\) AS col0" at position 0 and "Int64\(\-41\) \* Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 55 * - 85 col0, - 41 * + 41 AS col0 +---- +-1681 +-4675 query I rowsort SELECT 5 + 20 AS col1 @@ -42985,8 +43473,12 @@ NULL # Datafusion - Expected - 85 # Datafusion - Expected - -1 # Datafusion - Expected - -288 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col0" at position 0 and "Int64\(73\) / Int64\(\-63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 85 col0, + 73 / - 63 AS col0, + 48 * - + 6 AS col0 +---- +-1 +-288 +85 query I rowsort label-8157 SELECT DISTINCT - SUM ( - 86 ) @@ -43216,8 +43708,12 @@ SELECT - + 57 AS col2, - 10 AS col1 # Datafusion - Expected - 19 # Datafusion - Expected - 82524 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "Int64\(6\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 19 AS col0, + 23 * 78 * + 46 col2, + 6 col0 +---- +19 +6 +82524 query II rowsort label-8200 SELECT ALL + COUNT ( * ), COUNT ( * ) AS col1 @@ -43876,8 +44372,11 @@ SELECT - CAST ( ( 12 ) AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(58\)\) AS Int32\)\) AS col0" at position 0 and "Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( - + 58 AS INTEGER ) AS col0, + 62 AS col0 +---- +58 +62 query I rowsort SELECT ALL 33 + + 71 @@ -43969,8 +44468,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 62 AS col0, 65 AS col0 +---- +-62 +65 query II rowsort label-8342 SELECT DISTINCT - 7 * + 78 * + ( 57 ) * - 74 + + 35 AS col2, + COUNT ( * ) * + 44 - - 62 + + 72 @@ -43987,8 +44489,11 @@ SELECT + + 64, 36 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7181 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(96\)\) \* Int64\(\-75\) \+ Int64\(\-19\) AS col1" at position 0 and "Int64\(\-50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + 96 ) * + - 75 + - 19 AS col1, - 50 AS col1 +---- +-50 +7181 query II rowsort SELECT ALL - 97 col1, + 21 * + + 13 @@ -44090,8 +44595,11 @@ SELECT COUNT ( * ) * - 80 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1611 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ Int64\(57\) \* \(\- Int64\(\-27\)\) \- Int64\(\-36\) \+ \(\- nullif\(Int64\(\-26\), Int64\(14\) \* Int64\(\-19\)\)\) \+ \(\- Int64\(64\)\) \+ Int64\(\-11\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 + + 57 * - ( - 27 ) - + - 36 + + - NULLIF ( + - 26, ( 14 ) * - 19 ) + - + 64 + + - 11 AS col1, ( + 80 ) AS col1 +---- +1611 +80 query II rowsort SELECT 88 * - - 34, 99 - - 88 col2 @@ -44179,8 +44687,11 @@ SELECT DISTINCT COUNT ( * ) + - - 80 + ( + 78 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / Int64\(\-15\) AS col2" at position 0 and "Int64\(12\) \+ \(\- Int64\(\-79\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - CAST ( NULL AS INTEGER ) / - 15 AS col2, + ( 12 ) + - - 79 AS col2 +---- +91 +NULL query I rowsort label-8381 SELECT 32 * - - 74 + NULLIF ( - CAST ( - 98 AS INTEGER ), - - 76 + ( + 81 ) ) / + CAST ( NULL AS INTEGER ) AS col2 @@ -44298,8 +44809,11 @@ SELECT DISTINCT + COALESCE ( + 55, - 50 / 54 * + 12 + - 15 / COUNT ( * ) * COALE # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 AS col0, - 42 col0 +---- +-42 +57 query I rowsort label-8403 SELECT ALL + COUNT ( + + 53 ) * - 67 + + + ( - + ( - 14 ) ) AS col1 @@ -44370,8 +44884,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col2" at position 0 and "Int64\(54\) / \(\- Int64\(22\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 47 AS col2, 54 / - + 22 AS col2 +---- +-2 +-47 query I rowsort label-8417 SELECT ALL 37 * - 59 + + COUNT ( * ) / - - 33 AS col0 @@ -45306,14 +45823,20 @@ SELECT ALL 96 - 14 * - 73 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 "sum\(Int64\(\-49\)\) \- \(\- Int64\(\-17\)\) \+ nullif\(Int64\(55\), Int64\(\-43\)\) AS col0" at position 0 and "Int64\(\-54\) \+ \(\- Int64\(\-5\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + SUM ( + - 49 ) - - - 17 + NULLIF ( + 55, ( + - 43 ) ) AS col0, - 54 + - - 5 AS col0 +---- +-11 +-49 # 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\(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\. +query II valuesort SELECT ( COUNT ( * ) ) * MIN ( ALL + + 70 ) AS col1, 56 col1 +---- +56 +70 query I rowsort SELECT DISTINCT 89 * + 31 AS col1 @@ -45340,8 +45863,11 @@ 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\(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\. +query II valuesort SELECT ALL + + COUNT ( * ) * - 73 AS col0, ( 25 ) * + 67 * - 24 AS col0 +---- +-40200 +-73 query II rowsort SELECT + 32 - - 21, 36 col1 @@ -45665,8 +46191,11 @@ SELECT + 71 * + - COUNT ( * ) + + 74 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 14 col2, 46 AS col2 +---- +14 +46 query II rowsort label-8662 SELECT ALL + + 54 AS col0, CASE + 9 WHEN NULLIF ( CAST ( NULL AS INTEGER ), - + COUNT ( * ) ) THEN NULL WHEN 54 + + CAST ( NULL AS FLOAT8 ) + ( - COUNT ( * ) ) * + 87 THEN NULL ELSE 38 END AS col2 @@ -45834,8 +46363,11 @@ 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\(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\. +query II valuesort SELECT - 35 + - + 7 AS col1, ( COUNT ( * ) ) + - 10 * - + CASE - - 34 WHEN 49 THEN + 69 * + 80 * + ( + MAX ( ALL 25 ) ) END AS col1 +---- +-42 +NULL query I rowsort SELECT DISTINCT + 39 * - 54 AS col0 @@ -45891,8 +46423,11 @@ SELECT 39 + - 16 + - 12 * + COUNT ( * ) * + 11 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "CAST\(CAST\(NULL AS Int32\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 AS col0, CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col0 +---- +34 +NULL query I rowsort label-8703 SELECT COUNT ( * ) + - - 0 col2 @@ -46358,8 +46893,11 @@ 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\(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\. +query II valuesort SELECT + + 24 AS col2, + 39 + - COALESCE ( + 92, - + 59 ) + - 35 + ( - COUNT ( * ) ) / NULLIF ( 53, - - NULLIF ( 77, + - 92 + COUNT ( * ) ) ) col2 +---- +-88 +24 query I rowsort label-8793 SELECT DISTINCT COUNT ( * ) * 85 + - 43 + ( - 26 ) * + 97 AS col0 @@ -46525,8 +47063,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 74 AS col2, - COUNT ( * ) AS col2 +---- +-1 +74 query I rowsort SELECT DISTINCT - 29 + ( + 97 ) @@ -47558,8 +48099,11 @@ SELECT ALL + 6 * - COUNT ( * ) + COUNT ( + - 84 ) * + CAST ( + 15 AS INTEGER ) * # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - -2744 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-97\)\)\) AS col0" at position 0 and "Int64\(49\) \* Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( - 97 ) AS col0, 49 * - 56 col0 +---- +-2744 +-97 query I rowsort label-9023 SELECT + 51 * - + 32 - ( - COUNT ( * ) ) + + COUNT ( * ) AS col1 @@ -47797,8 +48341,11 @@ SELECT 21 + 52 AS col1 # 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\(61\) \+ 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 II valuesort SELECT DISTINCT 61 + - 61 col2, 85 col2 +---- +0 +85 query I rowsort SELECT NULLIF ( - 36, + 15 * - + 5 * + NULLIF ( - 51, - 83 ) / - 40 + - 46 ) + - 77 AS col1 @@ -47957,8 +48504,11 @@ SELECT DISTINCT - CASE 92 WHEN - - CAST ( - - 63 AS INTEGER ) THEN + 79 * - + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "coalesce\(Int64\(\-10\), \(\- \(\- CAST\(NULL AS Int32\)\)\)\) \- Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col2, + COALESCE ( + - 10, - - CAST ( NULL AS INTEGER ) ) - + 63 AS col2 +---- +-73 +1 query II rowsort SELECT 57, 22 * + 53 AS col1 @@ -48549,8 +49099,11 @@ SELECT ALL - CAST ( - AVG ( + ( + 80 ) ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col0" at position 0 and "Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 97 AS col0, + 37 AS col0 +---- +-97 +37 query I rowsort label-9216 SELECT - 50 * NULLIF ( 31, COUNT ( * ) * COALESCE ( 56, + 87 + + 74 ) + 81 ) + 59 * 56 @@ -48606,8 +49159,11 @@ SELECT 80 + - COALESCE ( - ( - 33 ), - 56 * 73 ) 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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 95 AS col0, 19 AS col0 +---- +-95 +19 query I rowsort SELECT + COALESCE ( + ( 74 ), + 62, - 64 * + CASE 51 * 14 WHEN ( - 15 ) * 13 THEN - 35 END, - 0 ) @@ -49779,8 +50335,11 @@ SELECT ALL COUNT ( - + 65 ) / 75 * + + 28 * - + MIN ( ALL 26 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ \(\- Int64\(\-80\)\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "coalesce\(Int64\(3\), Int64\(\-86\)\) \* Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 53 + - - 80 * CAST ( NULL AS INTEGER ) AS col1, + COALESCE ( 3, + - 86 ) * 19 AS col1 +---- +57 +NULL query I rowsort SELECT 8 - COALESCE ( - 65, CASE + 65 WHEN 97 THEN NULL WHEN + 89 * - 20 * 43 + - + 28 THEN NULL ELSE 3 + - 90 * - 95 END ) AS col1 @@ -50695,8 +51254,11 @@ SELECT + 17 * - 9 * - + COUNT ( * ) col2, - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 4132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- max\(DISTINCT Int64\(0\)\)\), Int64\(\-67\) \+ Int64\(44\)\)\) AS col1" at position 0 and "Int64\(82\) \+ min\(Int64\(\-81\)\) \* Int64\(\-50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( - MAX ( DISTINCT + 0 ), - 67 + 44 ) AS col1, 82 + + MIN ( ALL - 81 ) * - 50 AS col1 +---- +0 +4132 query I rowsort SELECT ALL + 38 + - - 14 * 3 - - 89 AS col2 @@ -50860,8 +51422,11 @@ SELECT ALL MIN ( + + 13 ) * + 47 + + 38, + SUM ( ALL + 53 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 61 AS col0, + 11 AS col0 +---- +11 +61 query II rowsort SELECT DISTINCT - 22, 14 * + - 4 AS col2 @@ -51095,8 +51660,11 @@ SELECT ALL 11 AS col1, 88 + - 43 * + 92 - - 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 63 AS col0, 42 col0 +---- +42 +63 query I rowsort label-9701 SELECT COUNT ( * ) * 16 col2 @@ -51190,8 +51758,11 @@ SELECT 16 * - - 71 # 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 "Int64\(\-21\) AS col1" at position 0 and "Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 21 AS col1, 24 AS col1 +---- +-21 +24 query I rowsort SELECT ALL 96 - - + 93 @@ -51401,8 +51972,11 @@ SELECT + + 2 - 91 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(\-6\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 14 * + - 6 col1, + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 +---- +-84 +NULL query I rowsort SELECT + + ( + - 89 ) + - 29 + 68 AS col2 @@ -51910,8 +52484,11 @@ SELECT 97 / + 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1650 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* \(\- Int64\(66\)\) AS col1" at position 0 and "Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 25 * - ( + 66 ) AS col1, - 46 AS col1 +---- +-1650 +-46 query II rowsort SELECT 8 + + 29 AS col0, ( 44 ) - - + 11 @@ -52102,8 +52679,11 @@ 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\(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\. +query II valuesort SELECT ALL NULLIF ( + - COUNT ( * ), + - 41 ) AS col1, + 57 + + - 75 / 14 - MIN ( + 38 ) + - 68 * - - 72 - + - 38 * 15 + + 16 AS col1 +---- +-1 +-4296 query I rowsort SELECT - 58 + 8 col0 @@ -52139,8 +52719,11 @@ SELECT ALL + 5 + + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col1" at position 0 and "Int64\(94\) \- Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 AS col1, + 94 - + + 83 AS col1 +---- +11 +28 query I rowsort SELECT ALL 24 + 10 AS col1 @@ -52382,8 +52965,11 @@ SELECT + COUNT ( * ) * + - 44 * - 20 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -130832 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* \(\- Int64\(68\)\) \* Int64\(52\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 * - + 68 * + 52 AS col1, 63 col1 +---- +-130832 +63 query II rowsort label-9945 SELECT 82 + + ( + 5 ), - 69 * COALESCE ( + 54, - COUNT ( * ), + - 16 - 14 + - COUNT ( * ) + + COUNT ( * ) * + COUNT ( + 10 ) + COUNT ( * ) * + - COUNT ( * ) ) AS col2 diff --git a/data/sqlite/random/expr/slt_good_16.slt b/data/sqlite/random/expr/slt_good_16.slt index 82d206c..0a97a6c 100644 --- a/data/sqlite/random/expr/slt_good_16.slt +++ b/data/sqlite/random/expr/slt_good_16.slt @@ -136,8 +136,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 5346 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \* Int64\(\-54\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 99 * - 54 AS col2, 82 col2 +---- +5346 +82 query II rowsort label-19 SELECT DISTINCT - 53 * - ( + 90 ) col1, COUNT ( DISTINCT 80 ) AS col0 @@ -328,8 +331,12 @@ NULL # Datafusion - Expected - -30 # Datafusion - Expected - NULL # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE CASE Int64\(68\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN \(\- CAST\(Int64\(69\) AS Int32\)\) ELSE Int64\(\-77\) \* Int64\(29\) \* Int64\(1\) / \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) END WHEN Int64\(\-56\) THEN Int64\(\-70\) ELSE NULL END / \(\- \(\- \(\- nullif\(\(\- Int64\(\-73\)\), avg\(DISTINCT Int64\(\-94\)\) \+ Int64\(72\)\)\)\)\) AS col2" at position 1 and "Int64\(\-97\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IRI valuesort 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 +---- +-30 +-97 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -357,8 +364,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) / 87 col2, + ( - - COUNT ( * ) ) AS col2 +---- +0 +1 query I rowsort label-60 SELECT DISTINCT + 70 + - COUNT ( * ) @@ -753,8 +763,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "coalesce\(\(\- \(\- Int64\(\-9\)\)\), Int64\(39\) \* \(\- Int64\(88\)\) \+ min\(Int64\(22\)\) \* Int64\(70\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, + COALESCE ( - - ( - 9 ), 39 * - + 88 + MIN ( ALL + ( + 22 ) ) * + + 70 ) AS col0 +---- +-9 +NULL query I rowsort label-134 SELECT DISTINCT - 24 / - 28 * CASE CAST ( - 30 AS INTEGER ) WHEN - 56 THEN - + 6 WHEN - 68 THEN + 28 * + CAST ( + - 8 AS INTEGER ) * ( + 50 ) + CASE - 20 WHEN + 56 + CAST ( + + 79 AS INTEGER ) + 86 THEN - - 37 * COUNT ( * ) WHEN 20 * + - 41 THEN NULL ELSE + - 30 END WHEN - 64 THEN NULL ELSE NULL END + - + ( - 11 ) AS col0 @@ -810,8 +823,11 @@ SELECT ALL + - 79, 63 * 23 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(14\)\) / \(\- \(\- Int64\(57\)\)\) \+ \(\- Int64\(\-11\)\) AS col2" at position 0 and "Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( ALL + 14 ) / - - ( + 57 ) + - ( - 11 ) AS col2, + 80 AS col2 +---- +11 +80 query I rowsort label-145 SELECT ALL + MIN ( - 95 ) AS col0 @@ -857,8 +873,11 @@ SELECT - 7 * - + 21 + - + 1 * + 63 + + - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8375 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(91\)\) \* \(\- Int64\(92\)\) \+ Int64\(3\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 91 * + + ( - + 92 ) + 3 AS col1, 13 AS col1 +---- +13 +8375 query II rowsort SELECT 94 col0, 14 @@ -1092,8 +1111,11 @@ SELECT DISTINCT COUNT ( * ) * + 80 - - COUNT ( * ) * + 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 80 AS col0, 30 AS col0 +---- +-80 +30 query II rowsort label-198 SELECT 48 AS col1, - ( + + COUNT ( * ) ) @@ -1438,8 +1460,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-95\) \+ Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 95 * + + ( 84 ) AS col2, COUNT ( * ) * + - 95 + - 16 col2 +---- +-111 +-7980 query I rowsort SELECT ALL 15 + + - 21 @@ -1627,8 +1652,11 @@ SELECT ALL - COALESCE ( - 4, 3 ) + 87 + + + 88 + - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -1209 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-78\)\) AS col2" at position 0 and "Int64\(25\) \* Int64\(\-30\) \+ Int64\(77\) \+ \(\- \(\- Int64\(\-15\)\)\) \* Int64\(36\) \+ Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 78 col2, + 25 * - 30 + + 77 + - ( - ( - 15 ) ) * 36 + + 4 AS col2 +---- +-1209 +78 query I rowsort SELECT DISTINCT - + 46 + 92 * 72 @@ -1870,8 +1898,11 @@ SELECT DISTINCT COUNT ( * ) / 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 231 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "Int64\(33\) \* Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 80 AS col1, + 33 * + 7 AS col1 +---- +231 +80 query II rowsort SELECT + 58 AS col0, - 32 + - - COALESCE ( - 45, + 27, + 16 - - 52 ) AS col2 @@ -2344,8 +2375,11 @@ SELECT ALL + 28 + + - 76 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 58 col2, + 13 AS col2 +---- +13 +58 query I rowsort SELECT ALL - 92 + - 5 col2 @@ -2447,8 +2481,11 @@ 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\(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\. +query RI valuesort 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 +---- +-26520 +11 query I rowsort SELECT + 20 + + 34 + + 57 @@ -2585,8 +2622,11 @@ 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\(1\)\) AS count\(\*\)\) / Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 46 + - 91 AS col1, - COUNT ( * ) / + 34 AS col1 +---- +-45 +0 query I rowsort SELECT ALL - 62 - + 46 AS col1 @@ -3259,8 +3299,11 @@ SELECT COUNT ( * ) AS col2, - 19 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(76\)\) \* \(\- sum\(DISTINCT CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( DISTINCT 76 ) * - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2, - CAST ( NULL AS INTEGER ) + - 15 AS col2 +---- +NULL +NULL query I rowsort label-609 SELECT ALL + COUNT ( * ) * 23 + 43 @@ -3506,8 +3549,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3870 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \* Int64\(45\) AS col0" at position 0 and "Int64\(15\) / Int64\(\-21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 86 * + + 45 AS col0, 15 / - 21 col0 +---- +-3870 +0 query I rowsort SELECT ALL + - 33 - - + 31 @@ -3667,8 +3713,11 @@ 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\(1\)\) AS count\(\*\), Int64\(\-85\) \* max\(DISTINCT Int64\(\-18\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 AS col2, + COALESCE ( COUNT ( * ), - 85 * + + MAX ( DISTINCT - 18 ) ) AS col2 +---- +-10 +1 query I rowsort label-686 SELECT ALL - 49 * + CASE + + CAST ( NULL AS FLOAT8 ) WHEN - COALESCE ( CASE + SUM ( ALL - 54 ) WHEN + NULLIF ( + + COUNT ( * ), - - 38 ) THEN NULL ELSE + - 8 / - 7 + 6 - + + 49 + - 89 * - AVG ( - + 24 ) + + 36 END, 50 ) THEN NULL WHEN + - 52 - - 10 THEN - COUNT ( * ) + + 36 - - 87 / - 84 WHEN MAX ( + NULLIF ( - - 22, 16 ) ) THEN NULL ELSE NULL END AS col0 @@ -4481,8 +4530,11 @@ SELECT + COUNT ( * ) * NULLIF ( - SUM ( - - 81 ), + 55 / - COUNT ( - 94 ) ) AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \+ Int64\(\-51\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 12 + - 51 AS col1, + 79 AS col1 +---- +-39 +79 query I rowsort label-845 SELECT + NULLIF ( + 70, + + 21 ) - + CAST ( 0 AS INTEGER ) * + 68 @@ -4861,8 +4913,11 @@ 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\(1\)\) AS count\(\*\)\) \- Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 43 AS col2, - COUNT ( * ) - - 13 AS col2 +---- +12 +43 query I rowsort SELECT - + 91 * 66 AS col0 @@ -4872,8 +4927,11 @@ SELECT - + 91 * 66 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 1140 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col0" at position 0 and "Int64\(38\) \* max\(Int64\(30\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 AS col0, 38 * + MAX ( + 30 ) AS col0 +---- +-82 +1140 query II rowsort label-920 SELECT + - 11 / + 9 AS col1, - CASE + COUNT ( + 73 ) WHEN + + SUM ( + 18 ) * - 21 THEN - 41 END @@ -4950,8 +5008,11 @@ SELECT DISTINCT + 91 * - - 33 + 14 * 98 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1794 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \* \(\- Int64\(23\)\) AS col2" at position 0 and "Int64\(\-20\) \- Int64\(95\) \+ Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 78 * - + 23 AS col2, - 20 - + + 95 + 26 AS col2 +---- +-89 +1794 query I rowsort SELECT - 11 * ( + ( - + 84 ) ) AS col2 @@ -5025,8 +5086,11 @@ SELECT ALL - ( - 42 ) * + 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- Int64\(11\)\)\)\) \- \(\- Int64\(\-75\)\) AS col2" at position 0 and "max\(Int64\(\-14\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( - + 11 ) - - - 75 AS col2, + MAX ( - 14 ) AS col2 +---- +-14 +-86 query I rowsort SELECT - 32 * - 40 - 48 @@ -5703,8 +5767,12 @@ SELECT ALL 59 * - 94 * - 18 AS col2 # Datafusion - Expected - 74 # Datafusion - Expected - -96900 # Datafusion - Expected - 131 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(74\), \(\- Int64\(\-60\)\) \* CAST\(NULL AS Int32\) \+ Int64\(\-84\) \+ Int64\(\-85\)\) AS col2" at position 0 and "CASE Int64\(45\) WHEN Int64\(46\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(27\) ELSE Int64\(82\) END \+ Int64\(49\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-96900 +131 +74 query I rowsort label-1078 SELECT ALL CASE - 1 WHEN + - 24 + + 35 * - 25 THEN NULL WHEN + 74 THEN + 92 WHEN + ( + 27 ) THEN NULL WHEN ( - + COUNT ( * ) ) THEN NULL END AS col1 @@ -5738,8 +5806,11 @@ SELECT + 93 * + 53 * - 29 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 2327 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(68\) \- Int64\(\-75\) \+ Int64\(56\) \* \(\- Int64\(\-39\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) col2, + 68 - + ( - 75 ) + + 56 * - - 39 AS col2 +---- +1 +2327 query II rowsort SELECT DISTINCT + 49, + 12 * COALESCE ( - 17, - 70, + 52 + + 10 * - 66 ) * + + 60 + - 30 + ( + 98 ) AS col1 @@ -6712,8 +6783,11 @@ SELECT + 16 - - 98 * - + NULLIF ( 24, + + 34 * - - 51 - - 1 + + 72 / + NULLIF ( # 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 "Int64\(15\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 15 AS col0, 41 AS col0 +---- +15 +41 query I rowsort label-1270 SELECT - 18 / + 99 + - 28 AS col2 @@ -6794,8 +6868,11 @@ SELECT DISTINCT - 52 - - 27 + + ( + + ( + + 95 ) ) * - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE \(\- Int64\(\-35\)\) WHEN Int64\(80\) THEN NULL WHEN \(\- Int64\(66\)\) / Int64\(41\) THEN Int64\(42\) \- Int64\(\-87\) ELSE NULL END\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CASE - - 35 WHEN 80 THEN NULL WHEN - + 66 / 41 THEN 42 - + - 87 ELSE NULL END AS col2, + COUNT ( * ) AS col2 +---- +1 +NULL query I rowsort SELECT 71 * - - 34 + 50 AS col1 @@ -6908,8 +6985,11 @@ SELECT DISTINCT CAST ( + 49 AS INTEGER ) + 51 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 100 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(99\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- nullif\(Int64\(\-79\), count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) + + 99 * COUNT ( * ) AS col2, - NULLIF ( - 79, + COUNT ( * ) ) AS col2 +---- +100 +79 query I rowsort SELECT DISTINCT - 34 * 95 + - 37 @@ -7069,8 +7149,11 @@ SELECT ALL ( - 19 ) - - + 93 + - COUNT ( * ) + - - 44 + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 1 AS col0 +---- +1 +NULL query II rowsort label-1338 SELECT - 58 * + 1 * + COUNT ( * ) + + NULLIF ( - 33, + CASE - + COUNT ( * ) WHEN + + 83 THEN + MIN ( 15 ) WHEN + - 98 THEN + 37 END / - + 20 + - 62 ) + - SUM ( DISTINCT - + 95 ) AS col0, 40 AS col1 @@ -7118,8 +7201,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 45 + + 64 AS col1, - COUNT ( * ) AS col1 +---- +-1 +19 query I rowsort label-1346 SELECT DISTINCT 45 / - 82 AS col2 @@ -7304,8 +7390,11 @@ SELECT + 85 + - 40 / - 77 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1517 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(37\) \* Int64\(41\) AS col2" at position 0 and "coalesce\(Int64\(6\), \(\- Int64\(0\)\) \* nullif\(\(\- Int64\(49\)\), Int64\(49\)\) \* CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(72\)\)\), count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-46\) \+ Int64\(48\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) * + 37 * 41 AS col2, COALESCE ( 6, ( - - 0 ) * NULLIF ( - + 49, + 49 ) * CAST ( NULL AS INTEGER ) + - + COUNT ( + 72 ), + COUNT ( * ) / - 46 + 48 ) AS col2 +---- +-1517 +6 query I rowsort label-1382 SELECT ALL CASE + + MAX ( ALL + + 75 ) WHEN - 19 THEN + 36 END / - - 57 * + COUNT ( * ) * ( + - 30 ) AS col2 @@ -7394,8 +7483,11 @@ SELECT ALL NULLIF ( COUNT ( * ), + - CASE - 72 WHEN 49 THEN - 51 * - + 16 END + # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 37 col0, COUNT ( * ) col0 +---- +1 +37 query I rowsort label-1399 SELECT - 11 / 92 AS col2 @@ -7511,8 +7603,11 @@ SELECT 76 * 32 + 9 - - NULLIF ( + MAX ( ALL - 21 ), + 21 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - -337272 -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\) \* Int64\(92\) \* max\(Int64\(\-47\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 59 AS col0, 78 * + 92 * + MAX ( - 47 ) AS col0 +---- +-337272 +-59 query I rowsort SELECT + + 97 * 66 * + 46 + + 15 * - + 22 @@ -7565,8 +7660,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 33 AS col1, COUNT ( DISTINCT + 86 ) / - - COUNT ( * ) AS col1 +---- +1 +33 query I rowsort label-1432 SELECT DISTINCT + NULLIF ( COUNT ( * ), - 56 ) @@ -7603,8 +7701,11 @@ SELECT + 7 * 43 + + 10 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col2" at position 0 and "coalesce\(Int64\(\-20\), Int64\(\-80\) \+ \(\- max\(Int64\(10\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 78 AS col2, COALESCE ( - 20, - 80 + - MAX ( ALL 10 ) ) AS col2 +---- +-20 +-78 query I rowsort SELECT + - 23 * + + 57 * + 19 AS col0 @@ -7630,14 +7731,20 @@ SELECT + 35 * - 7 * + ( - + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-60\)\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 60 ) AS col1, 87 AS col1 +---- +60 +87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \+ Int64\(81\) AS col2" at position 0 and "CAST\(sum\(\(\- Int64\(98\)\)\) AS Int32\) \- Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 13 + + 81 AS col2, CAST ( SUM ( - + 98 ) AS INTEGER ) - + 46 AS col2 +---- +-144 +94 query I rowsort SELECT DISTINCT - 58 + 75 * 21 - - 38 + - + 73 + - 1 * - + 28 @@ -7761,8 +7868,11 @@ SELECT 52 / + - 88 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 106 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ \(\- Int64\(\-9\)\) AS col0" at position 0 and "\(\- nullif\(coalesce\(Int64\(\-33\), \(\- nullif\(Int64\(\-93\), Int64\(47\) / \(\- CASE Int64\(58\) WHEN Int64\(\-37\) \* Int64\(\-11\) THEN NULL WHEN \(\- min\(Int64\(\-89\)\)\) THEN Int64\(\-30\) END\) \* Int64\(77\) \* Int64\(79\) \* Int64\(55\) \+ \(\- coalesce\(Int64\(\-88\), Int64\(17\) \+ Int64\(42\) / Int64\(45\)\)\)\)\) \- coalesce\(Int64\(25\), Int64\(\-62\)\)\), Int64\(94\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 97 + - - 9 AS col0, - NULLIF ( COALESCE ( - 33, - NULLIF ( - 93, + 47 / - + CASE + 58 WHEN - 37 * - 11 THEN NULL WHEN - MIN ( - 89 ) THEN - 30 END * 77 * + + 79 * 55 + - COALESCE ( + ( + - 88 ), ( + 17 ) + 42 / + 45 ) ) - COALESCE ( + 25, - 62 ) ), 94 ) AS col0 +---- +106 +33 query I rowsort label-1469 SELECT ALL - 17 + + 88 + + + CAST ( NULL AS INTEGER ) AS col1 @@ -7902,8 +8012,11 @@ SELECT ALL - + 76 + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - -162 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) \+ Int64\(\-69\) \+ Int64\(\-90\) AS col1" at position 0 and "Int64\(36\) \+ Int64\(\-19\) \+ Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 + + - 69 + - 90 AS col1, + 36 + ( - 19 ) + + 66 AS col1 +---- +-162 +83 query II rowsort SELECT DISTINCT - 95 + 14 * + 5 AS col2, 63 col1 @@ -7924,8 +8037,11 @@ SELECT DISTINCT - - 34 + - NULLIF ( 39, - 96 ) * + - NULLIF ( + 6, + 22 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - -2686 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-71\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(84\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(6\) \+ Int64\(\-64\) \+ Int64\(87\)\) AS col0" at position 0 and "Int64\(\-34\) \* \(\- min\(DISTINCT Int64\(\-79\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( + - 71, COUNT ( * ) + + + 84 + - COUNT ( * ) + 6 + - 64 + 87 ) col0, - 34 * - MIN ( DISTINCT - 79 ) * COUNT ( * ) AS col0 +---- +-2686 +-71 query I rowsort label-1499 SELECT DISTINCT - 13 + 12 * - COUNT ( * ) + - - CAST ( - - 97 AS INTEGER ) + 78 + + COUNT ( * ) AS col2 @@ -8234,8 +8350,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) + 15 AS col2, - SUM ( + + 28 ) col2 +---- +-28 +16 query I rowsort label-1558 SELECT - ( + ( 80 ) ) + CAST ( - COUNT ( * ) AS INTEGER ) @@ -8346,8 +8465,11 @@ SELECT - 64 AS col0, + 38 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -2935 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "Int64\(\-84\) \* \(\- CAST\(\(\- Int64\(36\)\) AS Int32\)\) \+ \(\- Int64\(\-89\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 AS col2, - 84 * - CAST ( - + 36 AS INTEGER ) + - - 89 AS col2 +---- +-2935 +71 query II rowsort SELECT ALL + 37, 81 * - 49 AS col0 @@ -8572,8 +8694,11 @@ SELECT DISTINCT - 23 + - - 16 + - - 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 612 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(12\) \* Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, 12 * + 51 AS col0 +---- +1 +612 query I rowsort label-1622 SELECT MIN ( ALL 20 ) @@ -8635,8 +8760,12 @@ 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\(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\. +query III valuesort 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 +---- +-26 +-4862 +-635 query II rowsort SELECT - 64 AS col2, + 16 AS col0 @@ -8710,8 +8839,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "Int64\(\-91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 17 AS col1, - 91 AS col1 +---- +-91 +17 query I rowsort SELECT ALL + CASE + + 56 WHEN - 76 - + 52 THEN - + 39 * + ( 12 ) - - - 39 + COALESCE ( 71, + 8, 3 ) * 45 + - 10 END @@ -9045,8 +9177,11 @@ SELECT ALL - 47 + 73 + + 10 * ( - + 54 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-2\) \- Int64\(\-21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 AS col0, - CAST ( NULL AS INTEGER ) * - 2 - - 21 AS col0 +---- +69 +NULL query I rowsort SELECT 89 * + 4 @@ -9118,8 +9253,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 + 32 AS col2, - COUNT ( * ) * 3 AS col2 +---- +-3 +73 query I rowsort label-1724 SELECT + MIN ( + + 1 ) AS col2 @@ -9139,8 +9277,11 @@ SELECT 54 * 49 * + + 98 + 90 col2 # 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\)" at position 0 and "Int64\(\-34\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 34, - 34 +---- +-34 +-34 query I rowsort label-1728 SELECT DISTINCT + 82 / 52 @@ -9171,8 +9312,12 @@ NULL # Datafusion - Expected - -42 # Datafusion - Expected - NULL # Datafusion - Expected - -2847 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col0" at position 0 and "Int64\(39\) \* Int64\(\-73\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 42 AS col0, 96 + + - 24 / + + CAST ( NULL AS INTEGER ) AS col1, + + 39 * - 73 AS col0 +---- +-2847 +-42 +NULL query I rowsort label-1734 SELECT - COUNT ( - + 15 ) @@ -9387,8 +9532,11 @@ SELECT DISTINCT - 39 / - + 94 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE WHEN NOT Int64\(96\) <= Int64\(67\) \* CAST\(min\(DISTINCT Int64\(\-77\)\) AS Int32\) THEN \(\- CAST\(NULL AS Float64\)\) END AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + CASE WHEN NOT + 96 <= + 67 * + + CAST ( MIN ( DISTINCT - 77 ) AS INTEGER ) THEN - CAST ( NULL AS FLOAT8 ) END AS col0, 85 AS col0 +---- +85 +NULL query I rowsort label-1775 SELECT - MAX ( ALL 10 ) / + + MAX ( 71 ) * + 56 + - 43 - + CAST ( - 21 AS INTEGER ) + 98 + - 29 + 73 + + 7 / 4 * - 49 * - CAST ( 17 AS INTEGER ) - - 21 - 48 @@ -9666,8 +9814,11 @@ SELECT - COUNT ( * ) * - + 96 + - 57 + + 35 # 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 "nullif\(Int64\(64\), \(\- Int64\(18\)\)\) AS col1" at position 0 and "Int64\(\-48\) \* CAST\(NULL AS Float64\) \- max\(Int64\(94\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT NULLIF ( ( 64 ), - + 18 ) AS col1, ( + - 48 ) * CAST ( NULL AS FLOAT8 ) - + MAX ( + 94 ) AS col1 +---- +64 +NULL query I rowsort SELECT 82 * - 1 * - 48 @@ -9866,8 +10017,11 @@ SELECT + - 84 / 11 + + 94 * - 27 + ( + 54 ) * + + 76 - - - COUNT ( * ) * COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -697 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) \* Int64\(41\) AS col2" at position 0 and "sum\(Int64\(49\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 17 * 41 AS col2, + SUM ( ALL + 49 ) AS col2 +---- +-697 +49 query I rowsort label-1865 SELECT ALL + CASE 92 WHEN + MAX ( ALL - 84 ) + - - 42 THEN - 56 WHEN - 99 * + MAX ( 36 ) THEN - - 65 ELSE NULL END @@ -10080,8 +10234,11 @@ SELECT ALL - 8 * - COUNT ( * ) + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "min\(DISTINCT Int64\(\-62\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( COUNT ( * ) ) AS col1, MIN ( DISTINCT + - 62 ) AS col1 +---- +-62 +1 query I rowsort label-1904 SELECT DISTINCT - NULLIF ( - COUNT ( * ), 98 - + 96 ) * + 30 + 97 @@ -10670,8 +10827,11 @@ SELECT ALL 32 * - 95 + - 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CASE CAST\(NULL AS Int32\) WHEN \(\- Int64\(60\)\) THEN Int64\(24\) \+ Int64\(54\) WHEN \(\- Int64\(43\)\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) + CASE CAST ( NULL AS INTEGER ) WHEN - ( + + 60 ) THEN + ( + 24 ) + 54 WHEN - + 43 THEN NULL ELSE - COUNT ( * ) END AS col2, 58 AS col2 +---- +-2 +58 query I rowsort SELECT ALL + + 94 * + 26 + + ( - 43 ) AS col1 @@ -10773,14 +10933,20 @@ SELECT ALL + 59 - - ( 18 ) + 59 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 AS col1, 45 col1 +---- +45 +99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 163 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col0" at position 0 and "Int64\(76\) \- \(\- Int64\(62\)\) \+ \(\- coalesce\(\(\- Int64\(\-49\)\), \(\- Int64\(73\)\), Int64\(15\), \(\- Int64\(\-18\)\)\)\) \+ Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 AS col0, ( + + 76 ) - - + 62 + - COALESCE ( - - 49, - + 73, + + 15, - - 18 ) + + 74 AS col0 +---- +163 +91 query I rowsort SELECT + NULLIF ( - 4, 85 ) * ( + 89 ) AS col2 @@ -11259,8 +11425,11 @@ 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\(\-47\)\) AS col0" at position 0 and "Int64\(\-76\) / Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 47 ) AS col0, - 76 / + 73 AS col0 +---- +-1 +47 query I rowsort SELECT ALL + 73 + + + 80 @@ -11580,8 +11749,11 @@ SELECT DISTINCT - 2 + - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-27\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 27 AS col1, + COUNT ( * ) col1 +---- +1 +27 query I rowsort label-2190 SELECT ALL + ( 88 ) + + - 56 * + CAST ( + + 13 AS INTEGER ) + + - 3 @@ -11732,8 +11904,11 @@ SELECT DISTINCT + COUNT ( * ) * + SUM ( DISTINCT - - 62 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 7 AS col2, 96 AS col2 +---- +7 +96 query I rowsort label-2217 SELECT ALL COUNT ( * ) * - + COUNT ( * ) * - MAX ( DISTINCT 95 ) + - 49 AS col2 @@ -11875,8 +12050,11 @@ SELECT + 62 + - + NULLIF ( - ( - COUNT ( * ) ), - 44 * + 41 ) * - 42 + - NULLIF # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) \+ Int64\(46\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 91 + 46 AS col0, 93 col0 +---- +-45 +93 query II rowsort label-2244 SELECT DISTINCT MAX ( DISTINCT + 95 ) AS col0, + 41 AS col1 @@ -11905,8 +12083,11 @@ SELECT - 43 / - 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \* CAST\(NULL AS Float64\) AS col0" at position 0 and "Int64\(\-8\) \* Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - 55 * CAST ( NULL AS FLOAT8 ) AS col0, - 8 * 25 AS col0 +---- +-200 +NULL query I rowsort label-2249 SELECT - COALESCE ( 55, - COUNT ( + - 89 ), + + COUNT ( * ) ) - + 80 @@ -11958,8 +12139,11 @@ SELECT DISTINCT 74 * - + 40 - 71 * 78 + - 17 - COALESCE ( 13, + + CAST ( NULL AS # Datafusion - Datafusion expected results: # Datafusion - Expected - -1073 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(\-28\) \- Int64\(\-45\) / Int64\(29\) \+ \(\- Int64\(\-18\)\) AS col0" at position 0 and "coalesce\(Int64\(82\), Int64\(21\) \+ Int64\(\-36\), Int64\(\-84\), \(\- Int64\(\-99\)\)\) \+ \(\- Int64\(\-85\)\) \+ \(\- Int64\(\-45\)\) \* \(\- coalesce\(Int64\(\-63\), sum\(\(\- Int64\(\-73\)\)\), CASE Int64\(\-16\) WHEN Int64\(59\) THEN \(\- Int64\(17\)\) \- Int64\(\-46\) \+ Int64\(23\) / Int64\(70\) WHEN Int64\(13\) THEN NULL WHEN Int64\(\-27\) THEN NULL ELSE NULL END, Int64\(91\) \* Int64\(\-25\)\)\) \+ Int64\(\-1\) \- Int64\(\-97\) \+ \(\- CAST\(NULL AS Int32\)\) / \(\- Int64\(41\)\) \* Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 39 * - 28 - - 45 / 29 + - - 18 AS col0, COALESCE ( + 82, 21 + - 36, - 84, - - 99 ) + - - 85 + - - 45 * - COALESCE ( - 63, + + SUM ( - - 73 ), + CASE - 16 WHEN + 59 THEN - + 17 - - 46 + 23 / 70 WHEN 13 THEN NULL WHEN - 27 THEN NULL ELSE NULL END, + 91 * + - 25 ) + - 1 - + - 97 + - CAST ( NULL AS INTEGER ) / - + 41 * + + 23 AS col0 +---- +-1073 +NULL query I rowsort label-2259 SELECT + - COUNT ( * ) * - + 97 + + 44 * 28 * - 70 * + + COUNT ( * ) * - 93 AS col0 @@ -12850,8 +13034,11 @@ SELECT COALESCE ( - 86, 55 * ( 49 * 79 ) ) + 56 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col2" at position 0 and "Int64\(41\) \+ coalesce\(Int64\(91\), CAST\(Int64\(61\) AS Int32\) \* Int64\(4\) \- Int64\(68\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 AS col2, 41 + COALESCE ( 91, CAST ( 61 AS INTEGER ) * 4 - 68 * - COUNT ( * ) ) - + 51 AS col2 +---- +79 +81 query I rowsort label-2432 SELECT ALL ( + - SUM ( 10 ) ) + 55 * 40 AS col1 @@ -13134,8 +13321,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 24 ) AS col0, 33 AS col0 +---- +-24 +33 query I rowsort SELECT DISTINCT - 28 + 9 @@ -13226,8 +13416,11 @@ SELECT + 2 + + ( 38 ) - - 59 AS 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 "nullif\(Int64\(3\), Int64\(76\)\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL NULLIF ( 3, 76 ) col2, 37 AS col2 +---- +3 +37 query II rowsort label-2504 SELECT - 94, + COUNT ( * ) col0 @@ -13402,8 +13595,11 @@ SELECT COALESCE ( - + 42, + 88 * - - CASE + COUNT ( * ) WHEN - 89 THEN 51 WHEN C # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 col0, + 82 AS col0 +---- +-81 +82 query I rowsort SELECT NULLIF ( + - 29, + - 46 ) * - ( - 76 ) @@ -13828,8 +14024,11 @@ SELECT + 17 / - 66 + + 51 # 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 col0" at position 0 and "Int64\(41\) \+ \(\- \(\- Int64\(95\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 61 AS col0, + 41 + + ( - - ( + 95 ) ) AS col0 +---- +-61 +136 query II rowsort label-2618 SELECT ALL + 98, - 80 / - + 10 AS col0 @@ -13856,8 +14055,12 @@ SELECT + + ( - + ( 64 ) ) * + 2 # Datafusion - Expected - -22 # Datafusion - Expected - 91 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \+ Int64\(\-15\) / \(\- Int64\(48\)\) \+ Int64\(\-32\) AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 10 + - 15 / - + 48 + + - 32 AS col2, + 91 AS col2, - + 92 AS col2 +---- +-22 +-92 +91 query II rowsort label-2623 SELECT + CAST ( + 40 AS INTEGER ) AS col0, ( + COUNT ( * ) ) @@ -14401,8 +14604,11 @@ SELECT - + 62 + + + 65 AS col2 # 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\(78\) \+ Int64\(\-73\) AS col0" at position 0 and "Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 78 + - 73 AS col0, - 92 col0 +---- +-92 +5 query I rowsort label-2728 SELECT + 0 * + - CAST ( 79 AS INTEGER ) AS col2 @@ -14890,8 +15096,11 @@ SELECT 38 + + - 11 + + 77 + - 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 6992 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \+ Int64\(\-98\) \+ \(\- \(\- \(\- nullif\(count\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\), Int64\(\-81\)\)\)\)\) AS col0" at position 0 and "Int64\(\-92\) \* Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 1 + - 98 + - - ( - NULLIF ( + + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ), - 81 ) ) AS col0, - 92 * + - 76 AS col0 +---- +-97 +6992 query I rowsort SELECT DISTINCT + + 14 * - 1 * - 14 @@ -16090,8 +16299,11 @@ SELECT 25 * 12 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "Int64\(42\) / CAST\(Int64\(\-4\) AS Int32\) \+ \(\- min\(DISTINCT Int64\(\-91\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 25 AS col1, 42 / + CAST ( - 4 AS INTEGER ) + ( - + MIN ( DISTINCT - 91 ) ) AS col1 +---- +25 +81 query I rowsort label-3048 SELECT DISTINCT NULLIF ( + 91, + 57 * + 20 ) + + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) col0 @@ -16101,8 +16313,11 @@ 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 "Int64\(\-86\) AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 86 AS col2, 46 AS col2 +---- +-86 +46 query I rowsort SELECT ALL - 13 + - + 63 AS col1 @@ -16572,8 +16787,11 @@ 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\(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\. +query II valuesort SELECT ALL + 24 / 89 + + COUNT ( * ) * 81 AS col0, + 75 AS col0 +---- +75 +81 query I rowsort label-3141 SELECT DISTINCT - ( - 44 ) / 69 - 8 + 83 + 41 AS col2 @@ -16901,8 +17119,11 @@ SELECT 37 + COUNT ( * ) * + 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col0" at position 0 and "Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 69 AS col0, - 25 AS col0 +---- +-25 +-69 query I rowsort SELECT DISTINCT + 90 - + - 12 AS col2 @@ -17054,8 +17275,11 @@ 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\(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\. +query II valuesort SELECT ALL CASE - + COUNT ( - + 58 ) WHEN - ( - - ( - - COUNT ( * ) ) ) THEN - - 80 - - + 39 END col0, - 62 AS col0 +---- +-62 +119 query I rowsort SELECT - 37 * - 43 @@ -17221,8 +17445,11 @@ SELECT DISTINCT 13 + + + 65 # 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\(82\) \+ Int64\(\-36\) \- Int64\(\-85\) 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 II valuesort SELECT ALL + 82 + - 36 - - 85 AS col2, COUNT ( + 22 ) AS col2 +---- +1 +131 query I rowsort label-3263 SELECT CAST ( + 86 AS INTEGER ) + - 48 @@ -17373,8 +17600,11 @@ 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\(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\. +query II valuesort SELECT ALL COALESCE ( 67, 18, COUNT ( * ) ) AS col2, - ( COUNT ( 77 ) ) col2 +---- +-1 +67 query I rowsort label-3292 SELECT ALL + CASE - 84 WHEN + ( - 79 ) THEN 88 * + 84 + + 31 WHEN 53 * + + COUNT ( * ) / + AVG ( 88 ) + + MAX ( ALL + + 44 ) THEN NULL ELSE NULL END AS col2 @@ -17924,8 +18154,11 @@ SELECT DISTINCT COUNT ( * ) - + 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - -490 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(70\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- CASE \(\- Int64\(\-46\)\) WHEN Int64\(96\) \* Int64\(34\) THEN NULL WHEN Int64\(38\) \* \(\- Int64\(87\)\) THEN CAST\(Int64\(\-49\) AS Int32\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-490 +NULL query II rowsort label-3398 SELECT DISTINCT - 38 - 99 col2, + COALESCE ( + 29, - 23 * - 40 ) / + - 87 @@ -18104,8 +18337,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * + - 97 * - 92 AS col2, COUNT ( * ) - + 39 AS col2 +---- +-38 +8924 query I rowsort label-3431 SELECT MIN ( DISTINCT 61 ) * - - 68 - COUNT ( ALL - 3 ) AS col2 @@ -18125,8 +18361,11 @@ SELECT 99 * - 18 * + COALESCE ( + SUM ( ALL + 80 ), - - 22 * + COUNT ( * ), + 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* Int64\(\-8\) \* Int64\(74\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-55\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 97 * + - 8 * + + ( + 74 ) * COUNT ( * ) - - 55 + ( CAST ( NULL AS INTEGER ) ) col2, + ( + 21 ) AS col2 +---- +21 +NULL query II rowsort label-3435 SELECT ALL - 70, + NULLIF ( - COUNT ( * ), COUNT ( * ) ) col0 @@ -18586,8 +18825,11 @@ SELECT 88 * + 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col2" at position 0 and "Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 AS col2, 8 AS col2 +---- +-90 +8 query I rowsort label-3524 SELECT ALL - 37 - - - 77 * + 13 + + 17 * + COUNT ( - 53 ) @@ -18686,8 +18928,12 @@ SELECT ALL + + 53 + - 80 * 98 col1 # Datafusion - Expected - 63 # Datafusion - Expected - 6 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col0" at position 1 and "Int64\(\-24\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - - 63 AS col1, 6 AS col0, - 24 AS col0 +---- +-24 +6 +63 query I rowsort label-3542 SELECT ALL - COUNT ( * ) - + - COUNT ( * ) + + + 65 @@ -18914,8 +19160,11 @@ SELECT 19 AS col0, 75 * + - 49 * + 64 * 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 0 and "Int64\(12\) \+ \(\- Int64\(\-3\)\) \+ \(\- CAST\(\(\- Int64\(\-38\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 AS col1, 12 + - - 3 + - CAST ( - - 38 AS INTEGER ) AS col1 +---- +-23 +89 query I rowsort label-3585 SELECT ALL + 1 / - 30 AS col0 @@ -19591,8 +19840,11 @@ SELECT ALL COUNT ( * ) * - + 3 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4453 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(73\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 61 * 73 AS col1, 44 AS col1 +---- +44 +4453 query II rowsort label-3713 SELECT + ( - 46 ), 25 * - 33 + + COUNT ( ALL - + 4 ) * + 42 col2 @@ -19948,8 +20200,11 @@ SELECT DISTINCT - COUNT ( ( + ( - 27 ) ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1458 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* Int64\(81\) AS col1" at position 0 and "Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 * 81 AS col1, - 80 AS col1 +---- +-80 +1458 query I rowsort label-3779 SELECT - SUM ( ALL + - 91 ) * + - 60 + 23 / - 54 * + 86 + - 42 + - NULLIF ( 36, - 12 ) @@ -20070,8 +20325,11 @@ SELECT 28 * + + 21 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 AS col2, 96 col2 +---- +6 +96 query II rowsort SELECT 41 AS col1, + 82 @@ -20208,8 +20466,11 @@ SELECT + COUNT ( * ) + 79 / + 96 * ( - - 86 ) 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 "Int64\(13\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 col2, + 27 AS col2 +---- +13 +27 query I rowsort SELECT DISTINCT 38 * - NULLIF ( + 11, + + 20 ) * - - 36 * + 15 @@ -20277,8 +20538,12 @@ SELECT + 73 AS col0, - 79 # Datafusion - Expected - NULL # Datafusion - Expected - 4272 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) / Int64\(\-35\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(35\) \* Int64\(\-1\) \+ Int64\(76\)\) \- \(\- \(\- CASE Int64\(\-6\) WHEN max\(Int64\(89\)\) THEN Int64\(\-52\) WHEN \(\- Int64\(\-89\)\) THEN Int64\(57\) \* Int64\(\-81\) \+ CAST\(NULL AS Int32\) \+ Int64\(40\) END\)\) AS col2" at position 0 and "Int64\(93\) \* \(\- \(\- sum\(Int64\(46\)\)\)\) \- Int64\(\-71\) \- Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +4272 +9 +NULL query I rowsort label-3841 SELECT + NULLIF ( + 12, CAST ( NULL AS INTEGER ) + + 1 ) AS col1 @@ -20424,8 +20689,11 @@ SELECT 84 * 95 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) \* Int64\(1\) AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 46 * + ( + 1 ) AS col0, + 86 AS col0 +---- +-46 +86 query I rowsort label-3868 SELECT - + 73 * - ( - 75 ) + - + COUNT ( * ) / - + MAX ( 68 ) * - - 52 * + 12 + - 85 @@ -20592,8 +20860,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \* Int64\(\-8\) \* Int64\(63\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 18 * - 8 * + 63 * - + ( + CAST ( NULL AS INTEGER ) ) AS col2, 68 AS col2 +---- +68 +NULL query II rowsort label-3899 SELECT DISTINCT MAX ( + - 55 ) AS col1, 81 @@ -20764,8 +21035,11 @@ SELECT + ( + + 65 ) * - 2 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(82\) \+ Int64\(45\) \- Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) col0, 82 + 45 - 76 AS col0 +---- +51 +NULL query II rowsort label-3932 SELECT ALL COALESCE ( 55, - ( + - 39 ) + - 46 - NULLIF ( - ( 46 ), CAST ( NULL AS INTEGER ) + + SUM ( DISTINCT - 64 ) / + 51 ) * - 0 * + + 79, 59 ) AS col0, - MAX ( ( + 6 ) ) + - 35 @@ -21582,8 +21856,11 @@ SELECT ALL - COUNT ( * ) / + 29 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 106 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(90\)\)\) AS col0" at position 0 and "Int64\(81\) \+ Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( + 90 ) AS col0, 81 + 25 AS col0 +---- +-90 +106 query I rowsort label-4093 SELECT ALL - NULLIF ( + COUNT ( + - 16 ), - 99 ) @@ -21760,8 +22037,11 @@ 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\(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\. +query II valuesort 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 +---- +86 +NULL query I rowsort label-4127 SELECT ALL + 82 + - ( - - ( COUNT ( * ) ) ) @@ -21866,8 +22146,12 @@ SELECT + COUNT ( * ) + ( + 85 ) AS col2 # Datafusion - Expected - 96 # Datafusion - Expected - 1364 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "Int64\(\-98\) \+ Int64\(\-34\) \* Int64\(\-43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 96 AS col2, - 98 + - 34 * - 43 AS col2, 23 AS col0 +---- +1364 +23 +96 query I rowsort label-4147 SELECT + 76 + CAST ( NULL AS INTEGER ) + CAST ( + 43 AS INTEGER ) + - + 55 - - + 32 * CASE CAST ( + 61 AS INTEGER ) WHEN 28 THEN 74 * - 98 END @@ -22002,8 +22286,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(60\)\) AS Int32\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( - + 60 AS INTEGER ) AS col0, + COUNT ( * ) col0 +---- +1 +60 query I rowsort label-4172 SELECT - 43 / - 93 @@ -22286,8 +22573,11 @@ SELECT ALL + - 73 + + 3 * - + 84 AS col2, COALESCE ( - 53, + 48 ) * - COALESCE ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 1194 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(42\) \+ \(\- Int64\(66\)\) AS col0" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 30 * 42 + - + 66 AS col0, CAST ( - COUNT ( * ) AS INTEGER ) col0 +---- +-1 +1194 query I rowsort SELECT DISTINCT 3 + - + 41 AS col0 @@ -22503,8 +22793,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -4252 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \- Int64\(\-71\) \* max\(DISTINCT Int64\(\-60\)\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 - - 71 * + MAX ( DISTINCT + - 60 ) AS col1, 22 AS col1 +---- +-4252 +22 query I rowsort label-4265 SELECT ALL - + COUNT ( - 3 ) @@ -22683,8 +22976,11 @@ SELECT DISTINCT - - ( + 82 ) / - COUNT ( * ) - 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) / Int64\(46\) \+ \(\- Int64\(\-49\)\) AS col0" at position 0 and "Int64\(44\) \- Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 30 / + 46 + - - 49 AS col0, 44 - 64 AS col0 +---- +-20 +49 query I rowsort label-4300 SELECT ALL - 43 * - 64 * + COUNT ( ALL - - 15 ) * + 20 + - - SUM ( - 60 ) @@ -22715,8 +23011,11 @@ SELECT ALL 28 * - 74 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 124 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- Int64\(\-49\)\)\) \+ Int64\(67\) \+ Int64\(8\) AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( - + ( - 49 ) ) + + + 67 + + 8 AS col1, 57 AS col1 +---- +124 +57 query I rowsort label-4306 SELECT + - NULLIF ( + - 83, - COUNT ( * ) ) @@ -22823,14 +23122,20 @@ SELECT ALL - 40 - ( + 19 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 2993 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-78\), Int64\(22\)\)\) AS col1" at position 0 and "Int64\(\-22\) \+ \(\- Int64\(\-67\)\) \* Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - NULLIF ( - 78, + 22 ) ) AS col1, - 22 + - - 67 * 45 col1 +---- +2993 +78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -3214 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "Int64\(99\) \* Int64\(\-32\) \- Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 col1, + 99 * + - 32 - 46 AS col1 +---- +-3214 +48 query I rowsort label-4327 SELECT - + 76 * 50 * + CAST ( 9 AS INTEGER ) @@ -22915,8 +23220,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) + + 15 AS col0, + 83 * - 21 AS col0 +---- +-1743 +16 query I rowsort SELECT DISTINCT 13 + - + 46 + + - NULLIF ( - 76, 88 ) * - + 8 AS col1 @@ -23036,8 +23344,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- \(\- Int64\(\-72\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 * - 87 * - + 86 AS col2, COUNT ( * ) * - ( - - 72 ) AS col2 +---- +-72 +97266 query I rowsort label-4366 SELECT 65 / - + 69 - + - 85 + + - 27 @@ -23112,8 +23423,11 @@ SELECT DISTINCT + 30 / 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col0" at position 0 and "Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 22 AS col0, - 25 AS col0 +---- +-22 +-25 query I rowsort label-4380 SELECT COUNT ( * ) * - ( + - 50 ) + + 6 @@ -23128,8 +23442,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \- Int64\(90\) \+ Int64\(46\) \+ Int64\(7\) / Int64\(\-15\) \* Int64\(5\) AS col1" at position 0 and "Int64\(\-98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 59 - 90 + + 46 + + + 7 / + - 15 * + 5 AS col1, - 98 AS col1 +---- +-98 +15 query I rowsort label-4383 SELECT DISTINCT - 31 * - + COUNT ( * ) @@ -23203,8 +23520,11 @@ SELECT + - 75 * COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, + 25 AS col1 +---- +1 +25 query I rowsort label-4397 SELECT SUM ( ALL + 47 ) @@ -23502,8 +23822,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) AS col0" at position 0 and "count\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 1 AS col0, + COUNT ( + CAST ( NULL AS INTEGER ) ) AS col0 +---- +-1 +0 query I rowsort label-4454 SELECT - MAX ( - + 91 ) + + CASE 73 WHEN + 46 THEN + - COUNT ( * ) + 38 * 15 ELSE + CASE + 51 WHEN - CASE + 0 WHEN - + ( - 71 ) THEN - CAST ( NULL AS FLOAT8 ) * - 5 ELSE - 13 END / 34 THEN 4 ELSE NULL END + ( + 93 ) END @@ -23636,8 +23959,11 @@ SELECT ALL - 21, 96 + + 23 - - 2 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col0" at position 0 and "Int64\(\-39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 AS col0, - 39 AS col0 +---- +-39 +6 query I rowsort SELECT DISTINCT 82 + 17 @@ -24321,8 +24647,11 @@ SELECT ALL ( + ( CASE ( COUNT ( * ) ) WHEN + + COUNT ( * ) THEN - ( + - 18 ) END # Datafusion - Datafusion expected results: # Datafusion - Expected - 593 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-85\)\) \- Int64\(33\) \* Int64\(\-18\) AS col2" at position 0 and "min\(\(\- nullif\(Int64\(\-57\), Int64\(88\) \* \(\- CAST\(NULL AS Int32\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( + - COUNT ( * ), - 85 ) - + 33 * - 18 AS col2, MIN ( - NULLIF ( + - 57, + + 88 * - CAST ( NULL AS INTEGER ) ) ) AS col2 +---- +57 +593 query I rowsort label-4608 SELECT ALL COUNT ( * ) / 45 * + 74 * 26 @@ -24870,8 +25199,11 @@ SELECT ALL - 43 + + - 54 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 AS col0, + 14 AS col0 +---- +14 +56 query I rowsort SELECT 81 + + 65 @@ -25664,8 +25996,11 @@ SELECT ALL - COUNT ( ALL - 68 ) 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 col0" at position 0 and "Int64\(\-12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 9 AS col0, - 12 AS col0 +---- +-12 +-9 query I rowsort label-4864 SELECT ( + 47 ) * - + MAX ( ALL 52 ) + 59 @@ -25782,8 +26117,11 @@ SELECT ALL 18 + - - 2 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col1, - 37 AS col1 +---- +-37 +NULL query II rowsort SELECT - 30, - 7 AS col1 @@ -26138,8 +26476,11 @@ SELECT ALL 71 * - 94 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 27 AS col1, + COUNT ( * ) AS col1 +---- +-27 +1 query II rowsort SELECT DISTINCT + 80 * 34 AS col1, 36 @@ -26990,8 +27331,11 @@ SELECT - - 86 * + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(82\) AS Int32\)\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( + ( 82 ) AS INTEGER ) AS col2, + 98 AS col2 +---- +-82 +98 query I rowsort SELECT + 21 + - 44 @@ -27200,8 +27544,11 @@ SELECT DISTINCT - 77, + 71 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 col0" at position 0 and "CASE Int64\(87\) WHEN \(\- Int64\(70\)\) THEN Int64\(78\) WHEN \(\- Int64\(\-15\)\) THEN NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 AS col0, CASE 87 WHEN - + 70 THEN 78 WHEN - - 15 THEN NULL END AS col0 +---- +51 +NULL query I rowsort SELECT + + ( + - 81 ) + 69 AS col1 @@ -27316,8 +27663,11 @@ 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\(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\. +query II valuesort SELECT ALL + CASE + 22 WHEN + 97 + 16 THEN - 67 + + + COUNT ( DISTINCT 34 ) * - COUNT ( * ) + 86 * 71 END AS col1, + 63 AS col1 +---- +63 +NULL query II rowsort label-5173 SELECT - 69 * 33 AS col2, - MAX ( + - 80 ) + - MIN ( + NULLIF ( - 78, - 11 ) ) AS col0 @@ -27328,8 +27678,11 @@ SELECT - 69 * 33 AS col2, - MAX ( + - 80 ) + - MIN ( + NULLIF ( - 78, - 11 ) ) A # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -105 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) \- Int64\(28\) AS col1" at position 0 and "Int64\(\-91\) \- Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) - 28 AS col1, - 91 - 14 AS col1 +---- +-105 +NULL query I rowsort label-5175 SELECT ALL + MIN ( 60 ) AS col2 @@ -27405,8 +27758,11 @@ SELECT ALL + 12 - 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 60 AS col2, 35 AS col2 +---- +35 +60 query II rowsort label-5190 SELECT ALL 77 - - 21 * - 56, - COUNT ( * ) AS col0 @@ -27543,8 +27899,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 AS col2, 71 AS col2 +---- +-31 +71 query I rowsort SELECT DISTINCT + 2 - + 52 AS col2 @@ -28619,8 +28978,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 4207 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-39\)\) AS Int32\) \+ min\(Int64\(7\)\) \+ Int64\(\-12\) AS col1" at position 0 and "Int64\(\-20\) \+ \(\- Int64\(\-11\)\) \- \(\- Int64\(34\)\) \+ \(\- Int64\(\-51\)\) \* Int64\(\-82\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - - 39 AS INTEGER ) + MIN ( + 7 ) + - 12 AS col1, - 20 + - - 11 - - + 34 + - ( - 51 ) * + - 82 * - + COUNT ( * ) AS col1 +---- +34 +4207 query I rowsort label-5418 SELECT 87 + + + COALESCE ( - 23, ( COUNT ( * ) ) * - + 26 - + + 56 ) AS col2 @@ -28673,8 +29035,12 @@ 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\(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\. +query III valuesort SELECT ALL - + 65 + + 86 + - + COUNT ( * ) AS col0, + MIN ( ALL 50 ) + + 49 + - 98 * 46, + + 98 col0 +---- +-4409 +20 +98 query I rowsort SELECT - + ( - 37 ) AS col1 @@ -28743,8 +29109,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) - NULLIF ( - - 78, - + 55 ) col0, - 96 / + - COUNT ( * ) AS col0 +---- +-77 +96 query I rowsort label-5441 SELECT 55 - COUNT ( * ) @@ -28823,8 +29192,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col1" at position 0 and "Int64\(\-69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 18 AS col1, - 69 AS col1 +---- +-18 +-69 query I rowsort label-5456 SELECT NULLIF ( - - 2, + - 23 ) * - SUM ( + 85 ) * - ( + COUNT ( ALL + 52 ) ) * - COALESCE ( SUM ( + 95 ), 25 ) AS col0 @@ -28999,8 +29371,11 @@ SELECT ALL CAST ( 86 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1189 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \- \(\- CAST\(Int64\(9\) AS Int32\)\) \* Int64\(17\) \* Int64\(8\) AS col1" at position 0 and "min\(Int64\(15\)\) \- CAST\(NULL AS Int32\) \* \(\- coalesce\(Int64\(\-65\), Int64\(\-61\) \+ Int64\(26\)\)\) \+ Int64\(\-99\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-67\) \+ Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1189 +NULL query II rowsort label-5489 SELECT CAST ( + 98 AS INTEGER ) AS col1, - 68 AS col0 @@ -29042,8 +29417,11 @@ 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\(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\. +query II valuesort SELECT - 41 * + 35 * - COUNT ( * ) AS col1, 21 * + 62 AS col1 +---- +1302 +1435 query I rowsort SELECT ALL 6 + + - 97 @@ -29113,8 +29491,11 @@ SELECT DISTINCT - 31 * - 39 * ( COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "nullif\(Int64\(28\), \(\- Int64\(80\)\) \* Int64\(\-9\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 82 col2, NULLIF ( + 28, + - ( + 80 ) * - 9 ) AS col2 +---- +28 +82 query I rowsort label-5511 SELECT - CASE - - 34 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN + COUNT ( * ) THEN 67 * + + 96 - COUNT ( * ) + - 60 END + + + 66 + + - COALESCE ( + 97, 47 * 48 * 46 ) * 99 AS col1 @@ -29414,8 +29795,12 @@ SELECT DISTINCT CAST ( 60 AS INTEGER ) * 65 + + 26 # Datafusion - Expected - -76 # Datafusion - Expected - 18 # 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 "min\(Int64\(18\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 76 AS col1, + MIN ( + 18 ) AS col1, CAST ( NULL AS INTEGER ) + 69 + 54 / 54 + 36 + + 67 * + 58 AS col0 +---- +-76 +18 +NULL query I rowsort label-5568 SELECT 15 - SUM ( 97 ) AS col1 @@ -29894,8 +30279,11 @@ SELECT DISTINCT - 11 - + + 70 + - COUNT ( * ) * - 42 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "Int64\(53\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 2 AS col0, + 53 + COUNT ( * ) AS col0 +---- +2 +54 query I rowsort label-5662 SELECT COUNT ( - 36 ) + - 20 AS col0 @@ -30618,8 +31006,11 @@ SELECT DISTINCT ( COALESCE ( - 84, 99 * - - 54 * 36 + - 14 ) ) - COUNT ( * ) AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "Int64\(9\) \* \(\- Int64\(10\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 46 AS col0, 9 * + - ( + 10 ) col0 +---- +-90 +46 query I rowsort label-5801 SELECT ALL + 1 - - - 2 * - - CAST ( + 26 AS INTEGER ) * + + ( + - 36 ) AS col1 @@ -30827,14 +31218,20 @@ SELECT 15 + + 93 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1037 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(61\) AS col1" at position 0 and "Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 * + 61 AS col1, 98 AS col1 +---- +1037 +98 # 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\(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\. +query II valuesort SELECT - 22 + - + COUNT ( * ) AS col0, + COUNT ( DISTINCT + - 1 ) col0 +---- +-23 +1 query I rowsort label-5842 SELECT ( + COUNT ( ALL + 90 ) ) AS col0 @@ -30962,8 +31359,11 @@ SELECT COUNT ( DISTINCT + - 17 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- sum\(Int64\(56\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, - SUM ( ALL + + 56 ) AS col2 +---- +-56 +1 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -31451,8 +31851,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 98 AS col0, + COUNT ( * ) + - 64 col0 +---- +-63 +98 query II rowsort SELECT ALL 0 AS col1, + 97 @@ -31646,8 +32049,11 @@ SELECT ALL - COUNT ( * ) * - - ( ( - - 49 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) / Int64\(\-18\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 41 / + - 18 AS col1, 74 AS col1 +---- +2 +74 query I rowsort SELECT ALL + 55 * + + 75 * + 39 @@ -32475,8 +32881,11 @@ SELECT ALL 19 / - - 13 - + 0 / - MAX ( - ( + 55 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-10\)\) AS Int32\) AS col1" at position 0 and "Int64\(1\) \+ Int64\(64\) \- CAST\(Int64\(41\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - - 10 AS INTEGER ) AS col1, + 1 + + + 64 - + CAST ( + 41 AS INTEGER ) AS col1 +---- +10 +24 query I rowsort label-6153 SELECT + COUNT ( * ) + - 70 * - ( - + 85 ) + - 79 * 52 / - 28 AS col1 @@ -32599,8 +33008,11 @@ SELECT ALL 87 * + - 47 * + 70 * 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 2 AS col1, 23 col1 +---- +2 +23 query I rowsort label-6177 SELECT 62 * 17 * - COUNT ( * ) * - COUNT ( * ) AS col0 @@ -33072,8 +33484,11 @@ SELECT 22 + - - 2 * + COUNT ( * ) + 86 # 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 "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 II valuesort SELECT 77 col0, ( - - 21 ) AS col0 +---- +21 +77 query II rowsort label-6268 SELECT - 19 AS col1, 44 + COUNT ( * ) + + 93 / NULLIF ( + CAST ( - 44 AS INTEGER ), 91 * + 7 ) / - 56 AS col2 @@ -33110,8 +33525,11 @@ SELECT DISTINCT 9 * + + 93 * + 84 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 15 AS col1, 7 col1 +---- +15 +7 query I rowsort label-6275 SELECT ALL + ( - ( CAST ( + 26 AS INTEGER ) ) ) - + COUNT ( * ) @@ -33176,8 +33594,11 @@ SELECT + 63 * - 29 * + + 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-59\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 59 AS col0, COUNT ( * ) AS col0 +---- +1 +59 query I rowsort SELECT ALL + 2 + + - 79 + - + 71 col2 @@ -33269,8 +33690,11 @@ 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\(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\. +query II valuesort SELECT ALL CASE - - 10 WHEN + 99 + COUNT ( * ) THEN + 4 / + COUNT ( * ) END / - 70 AS col2, + 17 col2 +---- +17 +NULL query I rowsort label-6305 SELECT DISTINCT - - CAST ( - 90 AS INTEGER ) AS col2 @@ -33657,8 +34081,11 @@ SELECT - 36 * + ( - COUNT ( * ) ) + + 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(93\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col2, 93 + COUNT ( * ) AS col2 +---- +-1 +94 query II rowsort label-6376 SELECT DISTINCT - 45 AS col2, 26 * + - CAST ( NULL AS INTEGER ) / - 74 + 44 * + - 38 @@ -33747,8 +34174,11 @@ SELECT ALL + - 94 + + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 40 AS col2, + 69 AS col2 +---- +40 +69 query II rowsort SELECT ALL - + NULLIF ( 94, - 0 ) + + 15 * - 22 AS col2, 58 AS col1 @@ -33795,8 +34225,11 @@ SELECT + - 17 * + 72 * + + COUNT ( * ) - - 21 - 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 453096 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \* Int64\(87\) \* Int64\(\-62\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 84 * + + 87 * - 62 AS col2, + 94 AS col2 +---- +453096 +94 query I rowsort SELECT 96 - - 18 AS col2 @@ -33924,8 +34357,11 @@ SELECT DISTINCT + ( 13 ) + 55 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6285 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \* Int64\(21\) / Int64\(47\) \* Int64\(\-95\) \+ Int64\(\-16\) \+ Int64\(21\) \+ Int64\(70\) \* Int64\(\-79\) AS col0" at position 0 and "Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 20 * ( + + 21 ) / 47 * - 95 + - 16 + 21 + 70 * - 79 AS col0, ( 32 ) AS col0 +---- +-6285 +32 query I rowsort label-6427 SELECT ALL - SUM ( DISTINCT 71 ) - + 20 @@ -34118,8 +34554,11 @@ SELECT - - ( - 47 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(Int64\(\-87\) AS Int32\) AS col1" at position 0 and "Int64\(\-19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) * + CAST ( - 87 AS INTEGER ) AS col1, - 19 AS col1 +---- +-19 +-87 query I rowsort label-6464 SELECT ALL MIN ( ALL + + 99 ) AS col1 @@ -34247,8 +34686,11 @@ 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\(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\. +query II valuesort SELECT ALL - NULLIF ( COUNT ( * ), - 71 ) AS col1, 39 * 67 AS col1 +---- +-1 +2613 query I rowsort SELECT ALL - 6 - - 32 @@ -34351,8 +34793,11 @@ SELECT 6 - + 62 + 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) * COUNT ( * ) col2, + 10 col2 +---- +1 +10 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -34417,8 +34862,11 @@ SELECT ( + - 2 ) * + + 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "nullif\(Int64\(89\), Int64\(29\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 56 - - + COUNT ( * ) col2, NULLIF ( 89, 29 ) + + COUNT ( * ) AS col2 +---- +57 +90 query I rowsort label-6521 SELECT 66 * - NULLIF ( - 69, 78 ) + - - COUNT ( * ) * + 44 / + 93 * 89 + + 39 + + 48 AS col2 @@ -34538,8 +34986,11 @@ SELECT DISTINCT COUNT ( + 44 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\)" at position 0 and "Int64\(97\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 97, 97 +---- +97 +97 query I rowsort SELECT DISTINCT 34 + - 86 @@ -34836,8 +35287,11 @@ SELECT + + 56 + + 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1352 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-26\)\) \* Int64\(52\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 26 * 52 AS col1, 38 AS col1 +---- +1352 +38 query I rowsort SELECT DISTINCT + + 5 col1 @@ -34888,8 +35342,11 @@ SELECT + 7, + 44 / - 95 * + - ( - 30 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3456 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* \(\- Int64\(67\)\) \- Int64\(39\) AS col2" at position 0 and "Int64\(\-51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 51 * - ( 67 ) - 39 AS col2, - 51 AS col2 +---- +-3456 +-51 query II rowsort SELECT + 34 AS col1, - 81 @@ -35136,8 +35593,11 @@ SELECT - 17 AS col0, 62 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 126 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ CAST\(Int64\(35\) AS Int32\) AS col0" at position 0 and "coalesce\(max\(DISTINCT Int64\(\-55\)\), Int64\(\-5\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 + CAST ( 35 AS INTEGER ) AS col0, COALESCE ( MAX ( DISTINCT - 55 ), + - 5 ) AS col0 +---- +-55 +126 query I rowsort label-6657 SELECT MAX ( ALL 96 ) * + + 5 - - 85 AS col0 @@ -35436,8 +35896,11 @@ SELECT ALL ( + + ( 43 ) ) col2 # 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\(45\)\) / Int64\(69\) AS col0" at position 0 and "Int64\(63\) \+ Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + ( 45 ) / + 69 AS col0, 63 + + 41 AS col0 +---- +0 +104 query I rowsort label-6715 SELECT ALL + - COUNT ( ALL + - 76 ) @@ -35491,8 +35954,12 @@ 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\(1\)\) AS count\(\*\) \* Int64\(6\) \* Int64\(29\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 1 + 24 col0, + 27 + - 24, COUNT ( * ) * + 6 * + 29 col0 +---- +174 +25 +3 query I rowsort SELECT ALL 21 + + 31 @@ -35512,8 +35979,11 @@ SELECT 91 * 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col1" at position 0 and "Int64\(\-29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 67 AS col1, - 29 AS col1 +---- +-29 +67 query I rowsort label-6729 SELECT ALL 85 - - SUM ( + - 83 ) * - 1 AS col0 @@ -36066,8 +36536,11 @@ SELECT ALL + ( + COUNT ( * ) ) + - 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT Int64\(58\)\) \* Int64\(4\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( DISTINCT + 58 ) * 4 + + COUNT ( * ) col0, + 11 col0 +---- +11 +5 query I rowsort label-6833 SELECT 4 + + 30 / 72 @@ -36310,8 +36783,11 @@ SELECT + COUNT ( * ) * + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 2911 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "Int64\(41\) \* Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90 AS col2, 41 * + 71 AS col2 +---- +2911 +90 query II rowsort label-6881 SELECT + - 10 AS col1, 75 * + - MIN ( DISTINCT - + ( 21 ) ) * + 26 AS col0 @@ -36476,8 +36952,11 @@ SELECT DISTINCT + - COUNT ( * ) / COUNT ( * ) + 45 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1311 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* Int64\(23\) AS col1" at position 0 and "coalesce\(Int64\(14\), Int64\(68\), count\(Int64\(26\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 57 * + + 23 AS col1, COALESCE ( + + 14, + 68, + + COUNT ( ALL 26 ) ) AS col1 +---- +1311 +14 query I rowsort label-6913 SELECT ALL + 15 * - - 65 + + - 69 - CASE + + CAST ( NULL AS INTEGER ) WHEN - 75 + - + MAX ( 91 ) * + - 5 THEN 22 END @@ -36560,8 +37039,12 @@ 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\(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\. +query RII valuesort SELECT ALL NULLIF ( - + 17, COUNT ( * ) * AVG ( 7 ) ) * + 95 AS col2, + 61 * + + ( - + COUNT ( * ) ), - 30 AS col2 +---- +-1615 +-30 +-61 query I rowsort SELECT ALL 62 + + - 76 * + 14 col2 @@ -36639,8 +37122,11 @@ SELECT 94 + + 91 * COUNT ( * ) col0, 69 # 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\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 81 AS col0, 38 AS col0 +---- +-81 +38 query II rowsort label-6944 SELECT + 36, COUNT ( * ) AS col0 @@ -36734,8 +37220,11 @@ SELECT + - 10 * CASE COUNT ( * ) WHEN + - 32 THEN + 77 + - 31 WHEN 55 THEN NULL # 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 "Int64\(\-83\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 83 AS col2, + 7 AS col2 +---- +-83 +7 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -36783,8 +37272,11 @@ SELECT DISTINCT - 63 + + 34 / 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(62\) \+ max\(DISTINCT Int64\(45\)\) \- Int64\(\-66\) \+ \(\- \(\- min\(Int64\(87\)\)\)\) \+ Int64\(\-74\) / Int64\(\-26\)\)\) \+ Int64\(\-83\) AS col1" at position 0 and "Int64\(97\) \* Int64\(\-55\) \* Int64\(48\) / CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-84 +NULL query I rowsort label-6970 SELECT ALL MIN ( DISTINCT - 66 ) + - 49 @@ -36836,8 +37328,11 @@ SELECT - 5 * ( + - 52 ) - + COUNT ( * ) + + + 92 * - 25 * - 58 AS col0, - 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 5712 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \- Int64\(98\) AS col0" at position 0 and "Int64\(\-68\) \* Int64\(\-84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 23 - 98 AS col0, - 68 * - 84 AS col0 +---- +-75 +5712 query I rowsort label-6980 SELECT 65 / + 85 * CAST ( NULL AS INTEGER ) AS col0 @@ -37045,8 +37540,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \+ Int64\(85\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 65 ) + 85 AS col0, 14 AS col0 +---- +14 +20 query I rowsort label-7020 SELECT - 2 / - 85 * 49 AS col2 @@ -37132,8 +37630,11 @@ SELECT - 97 + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 174 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) \- Int64\(\-8\) \* sum\(Int64\(32\)\) AS col2" at position 0 and "Int64\(96\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 82 - - 8 * + SUM ( ALL + 32 ) AS col2, + ( + 96 ) * + COUNT ( * ) AS col2 +---- +174 +96 query I rowsort SELECT DISTINCT + 10 * + 34 AS col1 @@ -37404,8 +37905,11 @@ SELECT DISTINCT - + 16 col1 # 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 "\(\- nullif\(Int64\(\-21\), Int64\(\-38\) \+ \(\- \(\- Int64\(64\)\)\)\)\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - NULLIF ( + - 21, - 38 + - - ( + 64 ) ) col2, 84 AS col2 +---- +21 +84 query I rowsort SELECT 3 * + 96 @@ -37640,8 +38144,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + 63 ) AS col1, + 86 + 85 + - COUNT ( * ) AS col1 +---- +170 +63 query I rowsort label-7133 SELECT ALL 41 * + CAST ( + + COUNT ( * ) AS INTEGER ) + 23 AS col0 @@ -38303,8 +38810,11 @@ SELECT ALL - 79 - 83 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 45 AS col1, + 39 AS col1 +---- +-45 +39 query I rowsort label-7263 SELECT ALL - 43 * - - COUNT ( * ) AS col2 @@ -38345,8 +38855,11 @@ SELECT DISTINCT - 89 / - 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 95 AS col1, + 35 col1 +---- +35 +95 query I rowsort SELECT ALL - COALESCE ( + + 59, + 84 ) * + 48 AS col0 @@ -38798,8 +39311,11 @@ SELECT + 68 * CAST ( + - 11 AS INTEGER ), 20 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 5713 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* Int64\(13\) AS col0" at position 0 and "Int64\(\-75\) \* Int64\(\-75\) \+ Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 7 * + ( + 13 ) col0, - 75 * - 75 + + 88 AS col0 +---- +5713 +91 query I rowsort label-7358 SELECT + 73 * - 43 - + - SUM ( - 42 ) + - 73 - 39 @@ -38907,8 +39423,11 @@ SELECT - 64 AS col1, NULLIF ( + 26, - 6 * - - NULLIF ( + 96, COUNT ( * ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 29807 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(55\)\)\) AS col0" at position 0 and "max\(Int64\(\-28\)\) \* Int64\(\-18\) \* \(\- CAST\(Int64\(\-59\) AS Int32\)\) \+ CAST\(Int64\(\-97\) \+ Int64\(12\) \* max\(Int64\(14\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( + 55 ) AS col0, MAX ( - 28 ) * + - 18 * - CAST ( - 59 AS INTEGER ) + CAST ( + ( ( - 97 ) ) + 12 * MAX ( + 14 ) AS INTEGER ) AS col0 +---- +-55 +29807 query I rowsort label-7378 SELECT ALL 77 + 81 - - ( + 88 ) + - COUNT ( * ) col1 @@ -39680,8 +40199,11 @@ SELECT + + 25 - + MIN ( 36 ) + 60 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 109 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ Int64\(59\) \+ avg\(\(\- Int64\(14\)\)\) / CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(83\) \+ Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + 8 + + 59 + AVG ( - + 14 ) / ( + CAST ( NULL AS INTEGER ) ) AS col2, + 83 + + 26 AS col2 +---- +109 +NULL query I rowsort SELECT ALL 99 + - 67 AS col1 @@ -39752,8 +40274,11 @@ SELECT ALL + 26 + - - COUNT ( * ) AS col0 # 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 "Int64\(43\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 43 AS col1, + 88 AS col1 +---- +43 +88 query I rowsort SELECT - 21 + + + 90 @@ -40642,8 +41167,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 25 AS col0, - 27 * + 51 * - COUNT ( * ) AS col0 +---- +1377 +25 query I rowsort SELECT - ( + + 54 ) + - 75 AS col0 @@ -40658,8 +41186,11 @@ SELECT ALL + - ( - 30 ) + - + 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 60 AS col1, COUNT ( * ) AS col1 +---- +-60 +1 query I rowsort SELECT ALL 86 + 33 AS col2 @@ -40784,8 +41315,11 @@ SELECT - 38 * + + 11 * - - 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CASE Int64\(\-3\) WHEN Int64\(\-91\) THEN count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) ELSE NULL END\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - - CASE - 3 WHEN - 91 THEN COUNT ( * ) * + CAST ( NULL AS INTEGER ) ELSE NULL END ) AS col1, COUNT ( * ) AS col1 +---- +1 +NULL query I rowsort label-7741 SELECT ALL - ( - 53 ) * - 86 + + CAST ( - 78 AS INTEGER ) - + - 21 @@ -41328,8 +41862,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col2" at position 0 and "Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 45 AS col2, - 20 AS col2 +---- +-20 +45 query I rowsort SELECT ALL 88 * + 1 + + 46 @@ -41509,8 +42046,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 21 * - NULLIF ( - COUNT ( + 4 ), - + 25 * + 27 * - COUNT ( * ) ) AS col1, 49 AS col1 +---- +-21 +49 query II rowsort label-7879 SELECT ALL 61 * - 73 col2, CAST ( NULL AS INTEGER ) * - 49 * - 23 + 16 + + 7 + + + 65 AS col0 @@ -41957,8 +42497,11 @@ 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\(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\. +query II valuesort 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 +---- +-315900 +62 query I rowsort label-7963 SELECT - CAST ( + + 54 AS INTEGER ) - - + 52 AS col0 @@ -42036,8 +42579,11 @@ SELECT + 15 + - 59 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 4464 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 0 and "Int64\(62\) \* Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 89 AS col1, + 62 * + 72 AS col1 +---- +4464 +89 query II rowsort label-7978 SELECT ALL + COUNT ( * ) col0, - 9 AS col1 @@ -42237,8 +42783,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 584 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \+ Int64\(\-1\) \+ Int64\(18\) \* Int64\(31\) AS col0" at position 0 and "coalesce\(Int64\(42\), Int64\(\-54\) \+ Int64\(\-76\), Int64\(81\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 27 + - 1 + + 18 * + 31 AS col0, COALESCE ( 42, - 54 + + ( - 76 ), 81 ) AS col0 +---- +42 +584 query II rowsort SELECT 40 AS col0, - 38 @@ -43166,8 +43715,11 @@ SELECT COUNT ( ALL + 96 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1685 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(21\) \* count\(DISTINCT Int64\(72\)\) \* Int64\(27\) \* Int64\(\-35\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(26\) \* Int64\(64\) \+ Int64\(22\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) / 21 * COUNT ( DISTINCT + 72 ) * + 27 * - 35 * - COUNT ( * ) AS col0, ( 26 ) * + 64 + 22 - + COUNT ( * ) col0 +---- +0 +1685 query I rowsort label-8193 SELECT + COALESCE ( - - CAST ( NULL AS INTEGER ), - COUNT ( * ) * + MIN ( ALL - - 59 ) ) * - 59 @@ -43635,8 +44187,11 @@ SELECT + - COUNT ( * ) - - - 89 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(46\) \+ Int64\(75\) / Int64\(45\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) * + 46 + + 75 / 45 * COUNT ( * ) AS col0, ( + 6 ) AS col0 +---- +-45 +6 query I rowsort label-8283 SELECT + CASE 59 WHEN + 57 THEN COUNT ( ALL + 22 ) WHEN 37 THEN - 71 ELSE NULL END AS col2 @@ -43750,8 +44305,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 AS col1, - COUNT ( * ) * - 58 col1 +---- +-90 +58 query I rowsort label-8305 SELECT ALL + + 4 * - 79 + + 62 + + 71 + - + CAST ( - 18 AS INTEGER ) AS col2 @@ -43926,8 +44484,11 @@ SELECT DISTINCT - CAST ( - NULLIF ( + 74, - + 17 ) AS INTEGER ) - COALESCE ( 79, # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 24 * + - CAST ( NULL AS INTEGER ) AS col1, - 85 AS col1 +---- +-85 +NULL query I rowsort SELECT ALL + - 7 * + 60 @@ -44567,8 +45128,11 @@ SELECT DISTINCT + - CASE - COALESCE ( - 89, + 30 ) WHEN - 70 * + + 66 + + 69 * + # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 17 AS col1, + 79 AS col1 +---- +17 +79 query II rowsort SELECT + 62 - 41, 0 + 75 AS col0 @@ -44723,8 +45287,11 @@ SELECT 64 + - 87 + + 35 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 928 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-16\)\) \* coalesce\(\(\- Int64\(\-58\)\), \(\- Int64\(\-61\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CASE Int64\(50\) WHEN CAST\(NULL AS Int32\) THEN Int64\(97\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 16 * + COALESCE ( - - 58, - - 61 / + - COUNT ( * ) ) AS col2, COUNT ( * ) + + CASE + 50 WHEN + CAST ( NULL AS INTEGER ) THEN + 97 END AS col2 +---- +928 +NULL query II rowsort SELECT ALL + - 3 - 56 col0, ( 73 ) * - + 7 + 94 * + 27 * 6 @@ -45914,8 +46481,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(25\) \+ Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 + + - 72 AS col2, - COUNT ( * ) * + 25 + + 72 AS col2 +---- +3 +47 query I rowsort label-8718 SELECT DISTINCT COUNT ( * ) + + + 35 + - + MAX ( + 70 ) AS col1 @@ -46851,8 +47421,11 @@ SELECT 81 * 60 * - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(\-11\)\) AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( DISTINCT + - 11 ) AS col0, 34 AS col0 +---- +-11 +34 query I rowsort label-8899 SELECT DISTINCT COUNT ( * ) * + 49 - - COUNT ( * ) AS col2 @@ -47260,8 +47833,12 @@ 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\(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\. +query III valuesort SELECT 93 col1, 18 col0, 29 * - 46 + + CASE - 41 WHEN - 92 + COUNT ( * ) THEN ( - 16 ) WHEN + 31 THEN NULL END AS col0 +---- +18 +93 +NULL query I rowsort SELECT 25 + 81 AS col2 @@ -47351,8 +47928,11 @@ SELECT 57 - + - NULLIF ( 92, 65 ) + ( - 49 ) + 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5229 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* Int64\(63\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + 83 ) * + ( 63 ) AS col1, 59 AS col1 +---- +5229 +59 query I rowsort SELECT ( - 99 ) + - ( - 61 ) @@ -47714,8 +48294,11 @@ SELECT - + 98 * - 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 367983 # Datafusion - Expected - 286 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* Int64\(59\) \* Int64\(63\) AS col0" at position 0 and "\(\- CASE WHEN Int64\(50\) IS NULL THEN NULL WHEN NOT NULL IS NOT NULL THEN Int64\(11\) ELSE Int64\(33\) \+ CAST\(\(\- max\(DISTINCT CAST\(NULL AS Float64\)\)\) AS Int32\) END\) \* Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 99 * + + 59 * 63 AS col0, - CASE WHEN 50 IS NULL THEN NULL WHEN NOT NULL IS NOT NULL THEN 11 ELSE 33 + + CAST ( - MAX ( DISTINCT + ( CAST ( NULL AS FLOAT8 ) ) ) AS INTEGER ) END * - 26 AS col0 +---- +286 +367983 query II rowsort label-9063 SELECT + + 29 + + ( - + 6 ) + + ( - - SUM ( + 52 ) ) col0, 2 @@ -48339,8 +48922,11 @@ SELECT DISTINCT NULLIF ( 1, + - 16 ) + - 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2911 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \+ Int64\(43\) \* Int64\(70\) \+ Int64\(0\) AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 99 + ( + 43 ) * 70 + + - 0 AS col2, + ( + 65 ) AS col2 +---- +2911 +65 query I rowsort label-9182 SELECT ALL + 80 / NULLIF ( + 51, + - 67 + 1 * - 12 * NULLIF ( - 15, 38 ) ) - - + 66 - 96 + - MIN ( ALL + 86 ) @@ -48355,8 +48941,11 @@ SELECT + 51 / 51 - - + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(65\)\) AS Int32\) AS col1" at position 0 and "Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - + 65 AS INTEGER ) AS col1, ( - 13 ) AS col1 +---- +-13 +-65 query I rowsort label-9185 SELECT CAST ( + + SUM ( ALL 10 ) AS INTEGER ) AS col0 @@ -48469,8 +49058,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) col0, 30 AS col0 +---- +-1 +30 query II rowsort SELECT - 28, ( - - 72 ) * + + 42 - 61 - 4 col0 @@ -48646,14 +49238,20 @@ SELECT ALL - 48 * + + 3 + - 9 + ( + 65 ) / - COUNT ( - ( - - COALESCE ( - - COAL # 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\(18\) \+ Int64\(6\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 18 + 6 AS col0, 56 col0 +---- +24 +56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2705 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) \+ Int64\(41\) \* \(\- Int64\(\-66\)\) \+ Int64\(58\) AS col0" at position 0 and "Int64\(\-22\) \+ \(\- CAST\(\(\- Int64\(\-53\)\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 59 + + + 41 * - - 66 + 58 AS col0, - 22 + - CAST ( - ( - 53 ) AS INTEGER ) AS col0 +---- +-75 +2705 query I rowsort label-9241 SELECT ALL - 99 * ( + 81 ) / + - 76 + - - 31 AS col0 @@ -48704,8 +49302,11 @@ SELECT DISTINCT MAX ( DISTINCT + 79 ) * - ( - 95 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 90 AS col0, COUNT ( * ) AS col0 +---- +1 +90 query I rowsort label-9251 SELECT ALL - 48 / + 63 @@ -49145,8 +49746,11 @@ SELECT 95 * + 92 - - + 30 * 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(69\)\) / Int64\(84\) \+ \(\- Int64\(17\)\) \+ Int64\(46\) AS col1" at position 0 and "Int64\(8\) / \(\- coalesce\(Int64\(\-19\), Int64\(24\), Int64\(23\)\)\) \- Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - + 69 ) / 84 + - + 17 + 46 AS col1, 8 / - COALESCE ( - 19, + 24, 23 ) - + 24 AS col1 +---- +-24 +29 query I rowsort label-9334 SELECT ALL CAST ( NULL AS INTEGER ) - - MAX ( DISTINCT + 22 ) col1 @@ -49227,8 +49831,11 @@ SELECT 26 * - 20 + - 87 * - + 36, 78 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 41 AS col1, + 14 col1 +---- +14 +41 query II rowsort label-9350 SELECT DISTINCT - 72 + + - ( - - 50 ), - 40 + + CAST ( MIN ( ALL - 2 ) AS INTEGER ) AS col2 @@ -50124,14 +50731,20 @@ 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\(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\. +query II valuesort SELECT ALL + + COUNT ( * ) * + 27 + - 19 AS col2, + 16 AS col2 +---- +16 +8 # 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\(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\. +query II valuesort 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 +---- +-21 +1 query I rowsort SELECT NULLIF ( - NULLIF ( - - 90, + 74 ), - + 36 ) col0 @@ -50173,8 +50786,11 @@ SELECT - ( - 51 ) / + - NULLIF ( + 4, + 6 ) + - - 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, - 85 AS col0 +---- +-85 +1 query I rowsort SELECT DISTINCT - 32 * 43 @@ -50295,8 +50911,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col2, - 34 * 29 + ( NULLIF ( - 55, + 87 ) ) - - 33 AS col2 +---- +-1 +-1008 query I rowsort label-9553 SELECT DISTINCT 5 - + + 50 * + 87 + + COUNT ( * ) + + - COUNT ( * ) / + 76 @@ -50529,8 +51148,11 @@ SELECT ALL 71 + + 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 130131 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "Int64\(26\) \* Int64\(82\) \* \(\- Int64\(\-61\)\) \- Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 40 AS col1, 26 * + 82 * - - 61 - - 79 AS col1 +---- +130131 +40 query I rowsort SELECT DISTINCT 0 + - 71 @@ -50630,8 +51252,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) * + + 78 * 56 AS col1, - 76 AS col1 +---- +-4368 +-76 query I rowsort SELECT - 13 * 1 * + 6 @@ -50707,8 +51332,11 @@ SELECT ALL + 55 + - - 7 + - + MAX ( 25 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - -8371 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "Int64\(87\) \* \(\- Int64\(97\)\) \+ Int64\(89\) \+ Int64\(\-21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 AS col0, + 87 * - + 97 + + 89 + - 21 AS col0 +---- +-8371 +32 query II rowsort SELECT + 97 AS col1, - 60 * + + 54 @@ -51131,8 +51759,11 @@ SELECT DISTINCT + + NULLIF ( + - 25, 13 - 23 + + 53 * + + CAST ( NULL AS INTEGER # 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 "Int64\(43\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 43 AS col2, + 35 AS col2 +---- +35 +43 query I rowsort SELECT ALL + 14 + - 83 col1 @@ -51525,8 +52156,12 @@ SELECT + SUM ( - 70 ) col1 # Datafusion - Expected - -97 # Datafusion - Expected - 1 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col0" at position 0 and "Int64\(37\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + - 97 col0, COUNT ( DISTINCT 1 ), + 37 AS col0 +---- +-97 +1 +37 query I rowsort SELECT - 71 * + - 99 AS col1 @@ -51565,8 +52200,11 @@ SELECT ALL COALESCE ( 0, - - 5 - - + ( - ( + 19 ) ), 87 * - 22 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \+ Int64\(63\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 5 + + 63 col0, + 40 AS col0 +---- +40 +58 query I rowsort SELECT ALL + COALESCE ( + 52, - + 54, - ( + 93 ) ) + + - 61 + - 63 AS col1 @@ -52213,8 +52851,11 @@ SELECT DISTINCT - COALESCE ( - - ( + COUNT ( * ) ), NULLIF ( + 81, 25 ) + - SUM # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \+ \(\- Int64\(\-24\)\) \* \(\- Int64\(\-1\)\) AS col1" at position 0 and "\(\- Int64\(83\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 34 + - - 24 * - - 1 AS col1, ( - + 83 ) AS col1 +---- +-83 +58 query I rowsort SELECT ALL - ( 49 ) * - 86 AS col2 @@ -52335,8 +52976,12 @@ SELECT ALL + 53 * + 36 + - + 61 # Datafusion - Expected - -63 # Datafusion - Expected - 25 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \+ nullif\(Int64\(14\), 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 III valuesort SELECT + - 77 + + ( + NULLIF ( + 14, - 74 ) ) AS col1, 25 AS col1, - 40 +---- +-40 +-63 +25 query I rowsort label-9935 SELECT + 24 * + COUNT ( * ) + + 3 AS col2 diff --git a/data/sqlite/random/expr/slt_good_17.slt b/data/sqlite/random/expr/slt_good_17.slt index e8c7b8d..d38a8a7 100644 --- a/data/sqlite/random/expr/slt_good_17.slt +++ b/data/sqlite/random/expr/slt_good_17.slt @@ -668,8 +668,11 @@ SELECT ALL - - 8 * SUM ( DISTINCT + 36 ) * - - NULLIF ( 40, + COALESCE ( - 75, - # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col0" at position 0 and "CAST\(Int64\(\-74\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 5 AS col0, CAST ( - 74 AS INTEGER ) AS col0 +---- +-74 +5 query I rowsort label-119 SELECT ALL + 76 * - ( + + 9 ) + 12 + + NULLIF ( + - 50, 67 * - 20 - + COUNT ( * ) + + + 75 * ( - 89 ) ) col1 @@ -775,8 +778,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) * - 25 AS col1, + COUNT ( ALL 0 ) AS col1 +---- +1 +25 query I rowsort label-139 SELECT DISTINCT + 34 / - 43 * + + SUM ( - NULLIF ( 28, + 26 ) ) col1 @@ -1169,8 +1175,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, 50 AS col0 +---- +-1 +50 query II rowsort SELECT 94 * - - ( - 34 ) AS col0, + 18 @@ -1281,8 +1290,11 @@ SELECT DISTINCT - NULLIF ( - COUNT ( DISTINCT + NULLIF ( - 29, 3 * + - 90 * - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 46 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 85 AS col2, 46 AS col2 +---- +46 +85 query I rowsort SELECT ALL 64 * - 28 + ( - ( - 17 ) ) @@ -1571,8 +1583,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1100 # Datafusion - Expected - -2279 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \+ Int64\(81\) \+ Int64\(\-82\) \* Int64\(\-12\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-12\) \+ Int64\(\-81\) \* Int64\(28\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 34 + 81 + - 82 * - 12 + + COUNT ( * ) AS col0, - 12 + - 81 * 28 + COUNT ( * ) AS col0 +---- +-2279 +1100 query I rowsort label-288 SELECT ALL ( 55 ) + - COUNT ( * ) col2 @@ -1745,8 +1760,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \+ Int64\(12\) / Int64\(68\) AS col1" at position 0 and "Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 15 + + 12 / + 68 AS col1, - 33 AS col1 +---- +-33 +15 query I rowsort SELECT 3 + - 53 AS col0 @@ -1783,8 +1801,11 @@ SELECT 38 + - ( - - 48 ) col1, 78 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 9 AS col1, 51 AS col1 +---- +-9 +51 query II rowsort SELECT DISTINCT - 80 AS col2, 88 @@ -3095,8 +3116,11 @@ SELECT + COUNT ( * ) AS col2, 38 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-88\) \- Int64\(13\) \- count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(33\) / CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, - COUNT ( * ) * - 88 - + 13 - + COUNT ( * ) + - COUNT ( * ) + 33 / CAST ( NULL AS INTEGER ) AS col0 +---- +1 +NULL query II rowsort label-582 SELECT MIN ( + 80 ) col0, + 83 / + + 16 AS col2 @@ -3712,8 +3736,11 @@ SELECT 89 * + COALESCE ( - 28, - + ( - 19 ) / - 32, + 15 + - 88 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(20\), \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT NULLIF ( + 20, - + CAST ( NULL AS INTEGER ) ) AS col2, 15 AS col2 +---- +15 +20 query II rowsort label-699 SELECT DISTINCT COUNT ( * ), 73 / + MAX ( ALL 71 ) AS col1 @@ -3979,8 +4006,11 @@ SELECT - 61 * + 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) \+ Int64\(54\) AS col1" at position 0 and "Int64\(\-11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 67 + 54 AS col1, - 11 col1 +---- +-11 +-13 query I rowsort label-750 SELECT ALL - CASE + - COUNT ( 63 ) WHEN - 79 * + - 28 THEN MIN ( DISTINCT + 67 ) WHEN 88 THEN - 82 ELSE + - 12 END * COUNT ( DISTINCT 93 ) + COUNT ( * ) @@ -4282,8 +4312,11 @@ SELECT ALL - 87 + 37 + 67 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "\(\- nullif\(Int64\(\-29\), \(\- Int64\(\-22\)\) \+ CAST\(Int64\(\-71\) AS Int32\)\)\) \- Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 78 col0, - NULLIF ( + - 29, - - 22 + + CAST ( + - 71 AS INTEGER ) ) - + - 65 AS col0 +---- +78 +94 query I rowsort label-807 SELECT 26 - 6 + + - 86 / 79 @@ -4603,8 +4636,11 @@ SELECT ALL + 55 AS col2, 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 349 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ Int64\(97\) \+ Int64\(10\) \+ Int64\(62\) \+ Int64\(94\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 86 + + 97 + + 10 + + 62 + 94 AS col0, 90 AS col0 +---- +349 +90 query I rowsort SELECT - 51 * + 42 @@ -4812,8 +4848,12 @@ NULL # Datafusion - Expected - -65 # Datafusion - Expected - 37 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 65 AS col1, 37 col1, 40 + 0 AS col1 +---- +-65 +37 +40 query I rowsort label-907 SELECT ALL - NULLIF ( + 11, 53 * + 93 + - 67 + + + 75 + + + COUNT ( * ) ) AS col2 @@ -4845,8 +4885,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(45\) \* Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 53 AS col1, + ( + 5 ) * - COUNT ( * ) + 45 * + 68 AS col1 +---- +-53 +3055 query II rowsort label-913 SELECT - + CAST ( NULL AS INTEGER ) AS col0, - 68 col2 @@ -4992,8 +5035,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + COUNT ( * ) ) col1, - 6 AS col1 +---- +-1 +-6 query I rowsort SELECT ALL 21 * + ( - 79 ) AS col0 @@ -5213,8 +5259,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 28380 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col1" at position 0 and "Int64\(44\) \* Int64\(43\) \* coalesce\(Int64\(15\), \(\- \(\- max\(Int64\(30\)\)\)\) \* Int64\(34\) \* Int64\(\-66\) \* \(\- count\(DISTINCT Int64\(78\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 68 AS col1, 44 * 43 * + COALESCE ( 15, - - MAX ( + 30 ) * 34 * - 66 * + - COUNT ( DISTINCT 78 ) ) AS col1 +---- +-68 +28380 query I rowsort SELECT + 8 - - 16 @@ -5308,8 +5357,11 @@ SELECT + 98 + - 96 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -508 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- Int64\(\-10\)\)\) AS col2" at position 0 and "\(\- coalesce\(Int64\(85\), Int64\(\-10\)\)\) / Int64\(24\) \+ Int64\(\-70\) \+ \(\- min\(Int64\(23\)\)\) \- Int64\(66\) \* Int64\(5\) \+ Int64\(7\) \+ Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( - - 10 ) AS col2, - COALESCE ( + 85, - 10 ) / 24 + + - 70 + - MIN ( + 23 ) - 66 * 5 + 7 + - 89 AS col2 +---- +-508 +1 query I rowsort SELECT + 33 * 68 @@ -5819,8 +5871,11 @@ SELECT - - 98 - + 23 + + 68 + - 46 # 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 "Int64\(81\) AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 81 AS col2, + 15 AS col2 +---- +15 +81 query I rowsort label-1099 SELECT 29 * + - COALESCE ( + 78, 61 ) + + MAX ( DISTINCT 60 ) * + + 86 AS col1 @@ -6138,8 +6193,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 47 AS col2, 15 col2 +---- +-47 +15 query I rowsort SELECT DISTINCT 37 * - 99 @@ -6354,8 +6412,11 @@ SELECT ALL + + MAX ( + 3 ) * - + 97 * + - 74 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6144 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \* Int64\(\-96\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 64 * + - 96 AS col2, + COUNT ( * ) AS col2 +---- +1 +6144 query I rowsort SELECT DISTINCT 34 * 62 AS col1 @@ -6598,8 +6659,11 @@ SELECT ALL ( - COUNT ( DISTINCT 99 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - -4221 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-28\)\)\) \* Int64\(\-19\) \+ \(\- Int64\(58\)\) \+ \(\- Int64\(82\)\) / Int64\(96\) \+ Int64\(\-21\) \* Int64\(\-27\) AS col0" at position 0 and "Int64\(\-79\) \* Int64\(63\) \+ Int64\(\-28\) \* \(\- Int64\(27\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( ALL - 28 ) * + - 19 + - + 58 + - ( + + 82 ) / 96 + - 21 * + - 27 AS col0, - 79 * 63 + - 28 * - + 27 AS col0 +---- +-23 +-4221 query I rowsort label-1246 SELECT DISTINCT - 5 / + 45 AS col1 @@ -6920,8 +6984,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 72 AS col1, 10 col1 +---- +-72 +10 query I rowsort SELECT ( + 12 ) * - 8 @@ -6946,8 +7013,11 @@ SELECT CAST ( - 55 AS INTEGER ) + + 54 # 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 col2" at position 0 and "Int64\(46\) \+ \(\- Int64\(57\)\) \- Int64\(\-18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 18 AS col2, 46 + - + 57 - - 18 col2 +---- +-18 +7 query I rowsort SELECT + 21 * + 85 @@ -7010,8 +7080,11 @@ SELECT - + 41 AS col0, + 42 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col1" at position 0 and "Int64\(55\) / \(\- Int64\(22\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 AS col1, 55 / - + 22 AS col1 +---- +-2 +77 query I rowsort SELECT ALL 7 + 78 AS col1 @@ -7328,8 +7401,11 @@ SELECT ALL 66 AS col0, + 20 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -75768 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col2" at position 0 and "Int64\(\-44\) \* Int64\(21\) \* Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 18 col2, - 44 * 21 * + 82 AS col2 +---- +-75768 +18 query I rowsort label-1385 SELECT 8 * - - NULLIF ( - 25, COUNT ( 51 ) ) @@ -8177,8 +8253,11 @@ SELECT DISTINCT + CAST ( - 60 AS INTEGER ) - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 62 -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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 87 AS col0, 62 AS col0 +---- +62 +87 query I rowsort label-1547 SELECT MAX ( DISTINCT 15 ) AS col0 @@ -8364,8 +8443,11 @@ SELECT ( - - 52 ) AS col2, 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-80\) AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(99\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - 80 AS INTEGER ) col1, + COUNT ( * ) * + 99 * COUNT ( * ) AS col1 +---- +-80 +99 query I rowsort label-1581 SELECT ALL + 40 * - 41 - + + ( - MIN ( 53 ) ) col0 @@ -8427,8 +8509,11 @@ SELECT ALL - 21 * + + 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - -673 # Datafusion - Expected - -144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(99\)\)\) \* Int64\(\-15\) \+ \(\- CAST\(Int64\(\-61\) AS Int32\)\) \+ Int64\(82\) \* min\(DISTINCT Int64\(\-28\)\) \- max\(Int64\(\-77\)\) AS col0" at position 0 and "Int64\(3\) \* Int64\(\-48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + MAX ( 99 ) * + - 15 + - CAST ( - 61 AS INTEGER ) + + 82 * + + MIN ( DISTINCT - 28 ) - MAX ( ALL - 77 ) AS col0, 3 * - 48 AS col0 +---- +-144 +-673 query I rowsort label-1593 SELECT ALL + CAST ( - - 35 AS INTEGER ) AS col1 @@ -8438,8 +8523,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 89 + + 92 AS col2, - COUNT ( * ) + 7 col2 +---- +3 +6 query I rowsort label-1595 SELECT - - CAST ( NULL AS INTEGER ) - - 75 + - 96 * - 96 / + 50 AS col0 @@ -8687,8 +8775,11 @@ SELECT COUNT ( * ) + + 7 + - COUNT ( * ) + 75 * COUNT ( * ) # 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 "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 II valuesort SELECT - 51 AS col0, ( + - 54 ) AS col0 +---- +-51 +-54 query I rowsort label-1642 SELECT SUM ( ALL + - CAST ( NULL AS INTEGER ) ) AS col0 @@ -9406,8 +9497,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* CAST\(NULL AS Int32\) / Int64\(1\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 * CAST ( NULL AS INTEGER ) / + 1 AS col0, COUNT ( * ) AS col0 +---- +1 +NULL query I rowsort SELECT ALL - 75 + + 4 AS col1 @@ -9839,8 +9933,11 @@ 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\(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\. +query II valuesort 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 +---- +85 +NULL query I rowsort label-1858 SELECT ALL - 25 + - COALESCE ( - 55, + - 70, - + 1 * - - 56 / - 48 + - - ( + - NULLIF ( 53, + 65 ) ) / + - 81 * MAX ( - + 73 ) ) * 46 * - + 33 @@ -9967,8 +10064,11 @@ SELECT ALL - 66 AS col2, + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col2" at position 0 and "Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 67 AS col2, 25 AS col2 +---- +25 +67 query II rowsort SELECT ALL 26 AS col1, + 43 @@ -10196,8 +10296,11 @@ SELECT + 84 * - 86 + - 62 + - - 98 / - CASE - SUM ( DISTINCT + - NULLIF ( - - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1376 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* Int64\(32\) AS col1" at position 0 and "Int64\(54\) / Int64\(\-78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 43 * 32 AS col1, + 54 / - 78 AS col1 +---- +0 +1376 query I rowsort label-1924 SELECT ALL - NULLIF ( + 10, 52 ) * - COALESCE ( + - 72, + 70, 19 * - COUNT ( ALL - 45 ) ) AS col2 @@ -11055,8 +11158,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "Int64\(\-5\) \* Int64\(\-47\) \- Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 AS col2, - 5 * + - 47 - 53 col2 +---- +182 +78 query I rowsort label-2092 SELECT 40 - - + 35 - - 62 / + 29 AS col0 @@ -11134,8 +11240,11 @@ SELECT ALL - NULLIF ( 32, AVG ( DISTINCT 53 ) ) # 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\(2\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 AS col0, 7 AS col0 +---- +2 +7 query I rowsort SELECT ALL + ( - 97 ) * - 4 @@ -11301,8 +11410,11 @@ SELECT ALL - 46 * - 23 * + 43 * + 76 * - 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + ( 64 ) AS col1, + 42 AS col1 +---- +42 +64 query I rowsort label-2140 SELECT + 90 / + 20 + 80 + COUNT ( * ) AS col1 @@ -11656,8 +11768,11 @@ SELECT DISTINCT + + 94 / 62 * + 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "Int64\(\-47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 90 AS col0, - 47 AS col0 +---- +-47 +90 query I rowsort label-2209 SELECT 51 - COUNT ( * ) - - COUNT ( * ) @@ -11678,8 +11793,12 @@ SELECT ALL + 52 * - 21 col1 # Datafusion - Expected - 74 # Datafusion - Expected - 1844 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col0" at position 0 and "Int64\(19\) \* Int64\(97\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + + 74 AS col0, + 19 * + + 97 + COUNT ( * ) AS col0, + + COUNT ( - 9 ) AS col1 +---- +1 +1844 +74 query I rowsort SELECT 20 - - 94 + 10 + - 90 + 97 @@ -11705,8 +11824,12 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(35\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 71 AS col2, ( - ( 75 ) ) AS col0, + NULLIF ( + - NULLIF ( - 27, + 9 ), 89 / - COUNT ( * ) + + 35 ) AS col2 +---- +-71 +-75 +27 query I rowsort SELECT DISTINCT ( - 63 ) + - 54 + 78 * 85 + 19 AS col0 @@ -11751,8 +11874,11 @@ SELECT ALL 37 * 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -104 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ max\(Int64\(\-6\)\) \- \(\- Int64\(\-70\)\) / Int64\(\-14\) AS col0" at position 0 and "Int64\(\-95\) \- \(\- CAST\(min\(DISTINCT Int64\(\-8\)\) AS Int32\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) + + MAX ( - 6 ) - - - 70 / - 14 col0, - 95 - - CAST ( MIN ( DISTINCT - 8 ) AS INTEGER ) + - COUNT ( * ) col0 +---- +-104 +0 query I rowsort label-2227 SELECT ( COUNT ( * ) ) * + ( - COUNT ( ( 94 ) ) ) @@ -11762,8 +11888,11 @@ SELECT ( COUNT ( * ) ) * + ( - COUNT ( ( 94 ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 148 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ Int64\(82\) AS col2" at position 0 and "Int64\(\-70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 66 + 82 AS col2, - 70 AS col2 +---- +-70 +148 query I rowsort SELECT 64 - + 12 AS col0 @@ -11914,8 +12043,11 @@ SELECT - 96 * 17 * 97 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5305 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \- Int64\(58\) \* Int64\(90\) AS col1" at position 0 and "Int64\(20\) \+ \(\- Int64\(\-11\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 85 - 58 * 90 AS col1, 20 + - - 11 AS col1 +---- +-5305 +31 query I rowsort SELECT ALL CASE - + 88 WHEN 44 + + 51 - 30 THEN + 10 END AS col1 @@ -12325,8 +12457,11 @@ SELECT DISTINCT - - 51 + - COUNT ( * ) * + 75 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -149 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "Int64\(\-50\) \+ Int64\(\-99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 AS col1, - 50 + - 99 AS col1 +---- +-149 +90 query I rowsort SELECT DISTINCT + 42 + + 8 * + 47 + 38 AS col0 @@ -12347,8 +12482,11 @@ SELECT ALL + 84, 36 - + COUNT ( * ) col0 # 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 "\(\- nullif\(Int64\(39\), \(\- Int64\(9\)\)\)\) \+ Int64\(\-79\) \+ Int64\(78\) \+ Int64\(43\) AS col0" at position 0 and "Int64\(\-57\) \- coalesce\(Int64\(\-87\), Int64\(42\), Int64\(59\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - NULLIF ( + 39, - + 9 ) + + - 79 + + 78 + 43 AS col0, - 57 - COALESCE ( - 87, + 42, 59 ) AS col0 +---- +3 +30 query I rowsort SELECT NULLIF ( + - 7, + 19 ) AS col0 @@ -12389,8 +12527,11 @@ SELECT COUNT ( 6 ) + - 72 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col0" at position 0 and "\(\- Int64\(\-27\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 94 col0, - ( + - 27 ) col0 +---- +-94 +27 query II rowsort SELECT ALL - 99 * 78 AS col1, - 50 + - - 36 * - + 27 @@ -12507,8 +12648,11 @@ SELECT - 7 + + 5 + - 27 + 71 + ( - 15 ) / - COALESCE ( - - 41, ( - 62 ) ) * - 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col1" at position 0 and "Int64\(\-17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 55 AS col1, - 17 AS col1 +---- +-17 +-55 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -12873,8 +13017,11 @@ SELECT ALL - + ( 29 ) * - ( + 39 ) AS col2, - 63 / + + ( + ( - 94 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 68 AS col2 +---- +1 +68 query I rowsort label-2440 SELECT ALL + + ( + 77 ) / CAST ( NULL AS INTEGER ) * - 3 * + + 44 * + 75 - 15 - - - ( + 73 ) AS col2 @@ -13767,8 +13914,11 @@ SELECT 63 + COUNT ( * ) * + - 98, + 2 * CAST ( - - 32 AS INTEGER ) AS col2 # 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 col0" at position 0 and "Int64\(\-23\) / coalesce\(Int64\(56\), Int64\(19\) \+ \(\- avg\(Int64\(\-98\)\)\), Int64\(\-42\) / Int64\(\-90\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - + 7 AS col0, - 23 / COALESCE ( + 56, + 19 + - AVG ( - 98 ), - 42 / - 90 ) AS col0 +---- +-0.410714285714 +-7 query I rowsort label-2609 SELECT 22 + + 55 * - CAST ( 20 AS INTEGER ) * + - 33 * + - 18 AS col0 @@ -13808,8 +13958,11 @@ SELECT ALL - + 40 + - + 42 / COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(CASE Int64\(69\) WHEN Int64\(64\) \+ \(\- Int64\(\-41\)\) \* Int64\(40\) \- Int64\(9\) \+ Int64\(14\) THEN Int64\(39\) \* \(\- Int64\(\-89\)\) \- Int64\(\-73\) \+ Int64\(20\) / Int64\(37\) \* Int64\(14\) WHEN \(\- min\(Int64\(\-4\)\)\) \* \(\- Int64\(61\) \* Int64\(76\) \+ Int64\(24\)\) THEN Int64\(4\) \* Int64\(4\) \- Int64\(55\) \* Int64\(34\) WHEN CASE Int64\(95\) WHEN Int64\(\-12\) THEN Int64\(\-64\) \+ Int64\(\-40\) / Int64\(54\) END THEN NULL ELSE NULL END AS Int32\)\) \- Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +84 +NULL query I rowsort label-2617 SELECT 12 + + + MAX ( 66 ) - + + 10 + ( - 79 ) / 56 * - CASE + 79 WHEN 97 THEN - + ( + 50 ) + - 89 END @@ -13834,8 +13987,11 @@ SELECT 89 * + 63 * + MAX ( DISTINCT - 20 ) * 14 # 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\(\-69\) / Int64\(49\) \+ Int64\(21\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 69 / + + 49 + 21 AS col1, 84 AS col1 +---- +20 +84 query II rowsort label-2622 SELECT 93 + - 3 + + 47 * + + COUNT ( ALL - - 38 ), CAST ( NULL AS INTEGER ) AS col0 @@ -14348,8 +14504,11 @@ SELECT ALL 62 * - 26 * 72 + + 67 + + 68 + + 5 - - - 64 + + 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(CAST\(NULL AS Int32\), \(\- Int64\(48\)\)\)\) \* Int64\(\-71\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( CAST ( NULL AS INTEGER ), - + 48 ) * - 71 AS col1, + 53 AS col1 +---- +53 +NULL query I rowsort label-2720 SELECT - - SUM ( + 3 ) AS col0 @@ -14386,8 +14545,11 @@ SELECT ALL 2 + - - 46 / + - 79 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \+ Int64\(20\) AS col1" at position 0 and "\(\- Int64\(66\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 24 + + 20 AS col1, - ( + + 66 ) AS col1 +---- +-66 +44 query I rowsort label-2727 SELECT ALL 66 + CASE + 68 WHEN - 28 THEN + + 96 / - 79 WHEN - SUM ( DISTINCT 87 ) THEN NULL END @@ -14437,8 +14599,11 @@ 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\(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\. +query II valuesort SELECT ALL - - NULLIF ( - + 69, + COUNT ( * ) - 5 ) * + 83 AS col0, SUM ( 40 ) AS col0 +---- +-5727 +40 query I rowsort SELECT - ( - - 78 ) + 36 AS col2 @@ -14514,8 +14679,11 @@ SELECT + 60 + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \+ coalesce\(\(\- nullif\(Int64\(58\), Int64\(\-34\)\)\), Int64\(38\)\) \- Int64\(47\) AS col0" at position 0 and "Int64\(6\) \* \(\- Int64\(\-2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 78 + COALESCE ( - NULLIF ( 58, + - 34 ), + 38 ) - 47 AS col0, 6 * - ( - 2 ) AS col0 +---- +-27 +12 query I rowsort label-2751 SELECT ALL - 1 * - + CAST ( NULL AS INTEGER ) AS col2 @@ -14736,8 +14904,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT ( + - COUNT ( * ) ) AS col2, 10 + - 96 + + 57 AS col2 +---- +-1 +-29 query II rowsort label-2794 SELECT - COUNT ( * ) * - 4 col2, 47 @@ -14984,8 +15155,12 @@ NULL # Datafusion - Expected - 28 # Datafusion - Expected - 1 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 28 AS col1, + COUNT ( * ) AS col1, + - 95 col0 +---- +-95 +1 +28 query I rowsort label-2841 SELECT 30 + + ( - - SUM ( + CAST ( - 93 AS INTEGER ) ) ) + + COUNT ( * ) - + COUNT ( * ) @@ -15604,8 +15779,11 @@ SELECT ALL + ( + CASE + 44 WHEN SUM ( - - 85 ) THEN NULL WHEN 9 THEN NULL ELSE - # Datafusion - Datafusion expected results: # Datafusion - Expected - -5273100 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \* Int64\(42\) \* Int64\(93\) \* Int64\(18\) AS col2" at position 0 and "Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 75 * + 42 * + 93 * 18 AS col2, - 30 AS col2 +---- +-30 +-5273100 query I rowsort label-2959 SELECT ALL + COALESCE ( + NULLIF ( + 96, - 68 / 52 + - - 55 / - 27 ), 78 * - - 71, 41 * - 87 - - COUNT ( * ) + 17 + - 62 / - - 55 * CAST ( NULL AS INTEGER ) * + + 93 * - + 97 * - + 72 ) @@ -15660,8 +15838,12 @@ SELECT COUNT ( - CAST ( ( - 28 ) AS INTEGER ) ) / - MAX ( ALL + + 45 ) # Datafusion - Expected - 27 # Datafusion - Expected - -42 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(42\)\)\) AS col2" at position 1 and "Int64\(48\) \+ \(\- \(\- Int64\(\-58\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 27 col0, - SUM ( ALL 42 ) AS col2, + 48 + - - ( - 58 ) AS col2 +---- +-10 +-42 +27 query I rowsort label-2969 SELECT ALL COUNT ( * ) * 82 + 26 AS col1 @@ -16641,8 +16823,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "Int64\(\-89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 42 col0, - 89 col0 +---- +-89 +42 query I rowsort SELECT ALL 49 * + 81 @@ -17082,8 +17267,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(\-54\) \* Int64\(41\) \* Int64\(\-18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 AS col2, - COUNT ( * ) + + - 54 * + + 41 * - 18 AS col2 +---- +39851 +56 query I rowsort label-3241 SELECT DISTINCT + COUNT ( * ) / - - 29 AS col0 @@ -17441,8 +17629,12 @@ SELECT 87 + 30 # Datafusion - Expected - 43 # Datafusion - Expected - 2961 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col0" at position 0 and "Int64\(47\) \* Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 43 AS col0, + 47 * 63 AS col0, + 14 + - - 16 + - 15 +---- +15 +2961 +43 query II rowsort label-3310 SELECT ALL NULLIF ( - 42, MIN ( DISTINCT 64 ) ) + 43, 66 - + - COUNT ( * ) - + + 71 * - + 33 AS col0 @@ -17879,8 +18071,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 69 * - COUNT ( * ) AS col2, 30 AS col2 +---- +-69 +30 query II rowsort label-3393 SELECT DISTINCT COUNT ( * ) AS col0, - 31 + 24 AS col1 @@ -17947,8 +18142,11 @@ SELECT - CASE + - 49 WHEN - + 89 THEN NULL ELSE CAST ( 38 AS INTEGER ) * + 7 + + # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \+ Int64\(\-81\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CASE avg\(Int64\(7\)\) WHEN Int64\(\-45\) THEN NULL WHEN \(\- nullif\(Int64\(93\), Int64\(73\)\)\) \+ \(\- Int64\(21\)\) \* Int64\(54\) THEN NULL ELSE Int64\(55\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-45 +55 query I rowsort label-3406 SELECT DISTINCT - 30 + + COUNT ( * ) + 10 @@ -17974,8 +18172,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 * - 82 * 41 - 83 + + - 60 + NULLIF ( 67, 56 + + ( + 62 ) ) * - COUNT ( * ) AS col0, + 46 AS col0 +---- +-269170 +46 query I rowsort label-3411 SELECT + CAST ( + - 87 AS INTEGER ) / + 91 + + - 98 AS col2 @@ -18300,8 +18501,11 @@ SELECT 54 * COALESCE ( - + 36, + 39 ) + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - -1485 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col2" at position 0 and "Int64\(55\) \* Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 12 col2, 55 * - 27 AS col2 +---- +-12 +-1485 query I rowsort label-3473 SELECT DISTINCT + CAST ( + - 5 AS INTEGER ) AS col0 @@ -18353,8 +18557,11 @@ SELECT ALL 89 * - + COUNT ( * ) + + - 11 * + 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -136 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CASE Int64\(40\) WHEN Int64\(\-61\) \+ Int64\(\-62\) THEN \(\- \(\- \(\- Int64\(\-73\)\)\)\) ELSE \(\- \(\- nullif\(Int64\(13\), Int64\(72\)\)\)\) \+ Int64\(\-28\) \+ Int64\(13\) \+ Int64\(\-35\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(99\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + COUNT ( * ) AS col2, CASE + 40 WHEN - 61 + - 62 THEN - - ( - - 73 ) ELSE - - NULLIF ( + 13, 72 ) + - 28 + 13 + + - 35 * COUNT ( * ) - 99 END AS col2 +---- +-136 +1 query I rowsort label-3483 SELECT ALL - 22 * 18 + - + 84 * COUNT ( * ) + - CAST ( NULL AS INTEGER ) @@ -18406,8 +18613,11 @@ 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\(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\. +query II valuesort SELECT - 82 AS col2, COUNT ( * ) * + - CASE + + COUNT ( * ) WHEN + COALESCE ( - ( + + 67 ), + COUNT ( 36 ) ) THEN - - 10 + + 89 END AS col2 +---- +-82 +NULL query I rowsort label-3493 SELECT DISTINCT - 39 * CAST ( NULL AS INTEGER ) AS col1 @@ -18417,8 +18627,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 90 AS col2, + 8 AS col2 +---- +8 +90 query II rowsort SELECT - 48 col0, 87 @@ -18757,8 +18970,11 @@ SELECT - MIN ( ALL + - 82 ) + 14 + + 44 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col1" at position 0 and "CASE \(\- Int64\(2\)\) WHEN \(\- \(\- CAST\(NULL AS Float64\)\)\) THEN Int64\(\-15\) WHEN Int64\(18\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 31 AS col1, CASE - + 2 WHEN - - CAST ( NULL AS FLOAT8 ) THEN - 15 WHEN + 18 THEN NULL END AS col1 +---- +31 +NULL query I rowsort SELECT + 37 + + 35 AS col2 @@ -19511,8 +19727,11 @@ SELECT ALL NULLIF ( 73, NULLIF ( - 37, - 65 ) * 18 ) * 22 - + 43 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 80 AS col2, + 54 col2 +---- +54 +80 query I rowsort SELECT ALL 46 * + 69 @@ -19617,8 +19836,11 @@ SELECT + - 45 * - - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 19 -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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 71 AS col1, + 19 AS col1 +---- +19 +71 query I rowsort label-3723 SELECT ALL CAST ( NULL AS INTEGER ) + - 91 @@ -19999,8 +20221,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 58 col1, 96 + + ( - - 40 ), 53 + + 7 + 70 * - COUNT ( * ) col1 +---- +-10 +-58 +136 query I rowsort label-3796 SELECT ALL SUM ( + 40 ) AS col0 @@ -20045,8 +20271,11 @@ SELECT 32 * + 66 * - + 64 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, + ( 83 ) AS col0 +---- +1 +83 query I rowsort label-3805 SELECT DISTINCT SUM ( - CASE + 5 WHEN + 18 THEN 37 * - 73 END ) @@ -20389,8 +20618,11 @@ SELECT ALL + 33 / 9 AS 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 "Int64\(3\) AS col2" at position 0 and "Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 AS col2, - 2 AS col2 +---- +-2 +3 query I rowsort label-3871 SELECT ALL CAST ( + 89 AS INTEGER ) + - 98 @@ -20971,8 +21203,11 @@ SELECT + - 76 + COALESCE ( + 64, - 90 * + 96 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-9\)\) \+ \(\- Int64\(8\)\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + SUM ( ALL + - 9 ) + - ( + 8 ) AS col2, 37 AS col2 +---- +-17 +37 query I rowsort label-3982 SELECT - 13 + 49 + + 95 * + 54 + + - COALESCE ( - - COUNT ( * ), - COUNT ( * ) ) + - 67 @@ -21074,8 +21309,11 @@ SELECT CAST ( + 44 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 190 # Datafusion - Expected - -3807 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \- Int64\(\-59\) \+ Int64\(92\) AS col0" at position 0 and "Int64\(\-81\) \* \(\- Int64\(\-47\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 - - 59 + 92 AS col0, - 81 * - - 47 col0 +---- +-3807 +190 # Datafusion - Data was automatically updated based on comparison db results # Datafusion - Previous results: @@ -21307,8 +21545,11 @@ SELECT - - 72 + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6375 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(75\)\) \* Int64\(\-85\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \- Int64\(\-3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + SUM ( DISTINCT + 75 ) * - 85 col1, + CAST ( NULL AS INTEGER ) - - 3 AS col1 +---- +-6375 +NULL query I rowsort SELECT ALL - 88 * - 31 @@ -21451,8 +21692,11 @@ SELECT ALL - 32 * + 78, - 11 * - 60 + CAST ( + - 94 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 1100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(9\) AS Int32\)\) AS col0" at position 0 and "Int64\(55\) \* CAST\(Int64\(20\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( 9 AS INTEGER ) AS col0, 55 * + CAST ( + 20 AS INTEGER ) col0 +---- +-9 +1100 query I rowsort SELECT ALL NULLIF ( - 42, - + 64 * - 40 ) @@ -21685,8 +21929,11 @@ SELECT ALL COUNT ( * ) + - + 86 + 78 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col1" at position 0 and "Int64\(\-20\) \+ Int64\(75\) / Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 AS col1, - 20 + 75 / + + 46 AS col1 +---- +-19 +-70 query I rowsort label-4117 SELECT 95 * - SUM ( + 36 ) @@ -21956,8 +22203,11 @@ SELECT + 92 * - COUNT ( * ) + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 66 + + COUNT ( * ) AS col1, + 9 AS col1 +---- +67 +9 query I rowsort SELECT ALL + + 83 * 42 * + + 94 - + 88 AS col2 @@ -22027,8 +22277,11 @@ SELECT ALL + 53 + - + NULLIF ( - - 40, + - ( + COUNT ( * ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(61\)\)\) AS col2" at position 0 and "Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - MIN ( + + 61 ) ) AS col2, 76 AS col2 +---- +-61 +76 query I rowsort SELECT DISTINCT ( NULLIF ( + + 29, - - 85 ) ) @@ -23197,8 +23450,11 @@ SELECT + 3 * - 3 * - + MIN ( + 84 ) + + CASE + 94 WHEN - - 99 + - COUNT ( * ) + # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "min\(\(\- CAST\(Int64\(11\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 26 AS col0, MIN ( + - CAST ( 11 AS INTEGER ) ) AS col0 +---- +-11 +26 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -23398,8 +23654,11 @@ SELECT ALL + + 14 AS col2, 99 + - 57 AS col0 # 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\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 89 AS col0, + 61 AS col0 +---- +-89 +61 query II rowsort SELECT + 98, + 94 * + - 39 AS col0 @@ -23410,8 +23669,11 @@ SELECT + 98, + 94 * + - 39 AS 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 col2" at position 0 and "Int64\(75\) \+ Int64\(\-75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 AS col2, 75 + - 75 AS col2 +---- +-20 +0 query I rowsort label-4446 SELECT - COUNT ( * ) / 24 - - NULLIF ( + 34, - 56 - - 14 ) * + 66 @@ -23587,8 +23849,11 @@ SELECT ALL + 55 * + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 757 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \+ \(\- Int64\(\-81\)\) AS col0" at position 0 and "Int64\(7\) \+ \(\- Int64\(13\)\) \* \(\- Int64\(61\)\) \+ Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 96 + - - 81 AS col0, + 7 + - + 13 * - ( + 61 ) + - 43 AS col0 +---- +-15 +757 query II rowsort label-4480 SELECT ALL + 38 + 55, - 36 / + 67 + 23 + + 77 AS col1 @@ -23845,8 +24110,11 @@ SELECT ALL NULLIF ( + COUNT ( * ), + AVG ( 15 ) ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 1479 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(12\), Int64\(85\)\)\) \+ \(\- CASE Int64\(\-60\) WHEN Int64\(23\) THEN Int64\(\-25\) / \(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(\-6\)\) / Int64\(57\) / \(\- CASE Int64\(66\) WHEN Int64\(\-42\) THEN CAST\(\(\- Int64\(72\)\) AS Int32\) ELSE NULL END\) \+ \(\- sum\(DISTINCT Int64\(\-72\)\)\) / Int64\(20\) ELSE Int64\(\-26\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\) / Int64\(80\) AS col1" at position 0 and "Int64\(\-93\) \+ Int64\(93\) \* Int64\(16\) \+ Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-12 +1479 query I rowsort label-4529 SELECT DISTINCT - 70 / + - CAST ( 3 AS INTEGER ) AS col1 @@ -24133,8 +24401,12 @@ 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\(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\. +query III valuesort SELECT COUNT ( * ), NULLIF ( - - 18, + 15 * - COUNT ( * ) * + 74 ) AS col0, - - 82 AS col0 +---- +1 +18 +82 query II rowsort label-4584 SELECT - 44 * + 14 + - ( - 27 ) / - + ( - 60 ) col2, 97 + - + 47 + - 65 + + 54 - + + ( - 87 ) AS col0 @@ -24241,8 +24513,11 @@ SELECT + 16 AS col0, + 71 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 AS col2, 4 col2 +---- +4 +91 query II rowsort SELECT ( - 87 ) * COALESCE ( - 44, - - 98, 12 ) + 25 AS col1, 20 col2 @@ -25196,8 +25471,11 @@ SELECT + 33 * + + 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 38 AS col2, 85 AS col2 +---- +38 +85 query I rowsort label-4783 SELECT ALL - NULLIF ( - - 77, - 90 - - 87 / - + COUNT ( + 78 ) * + COALESCE ( + CAST ( NULL AS INTEGER ), + 86 ) / 42 * COUNT ( * ) * 99 * - + 24 ) * 25 + 43 - + 80 col1 @@ -25229,8 +25507,11 @@ SELECT ALL 59 * ( - 99 ) + + MAX ( + + 4 ) AS col2 # 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 "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 94 AS col1, 0 AS col1 +---- +0 +94 query I rowsort label-4789 SELECT + ( - + COUNT ( * ) ) + 37 AS col0 @@ -25542,8 +25823,11 @@ SELECT 43 * + SUM ( + 48 ) * 75 + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - 334 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col2" at position 0 and "Int64\(\-32\) \+ Int64\(\-61\) \* Int64\(\-6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 34 AS col2, - 32 + - 61 * - 6 AS col2 +---- +-34 +334 query I rowsort label-4848 SELECT ALL - 58 - NULLIF ( MIN ( DISTINCT 81 ), 38 + - ( + 34 ) + + 97 + + + COUNT ( * ) ) @@ -25865,8 +26149,11 @@ SELECT - 91 + + COUNT ( ALL 7 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 AS col2, - CAST ( NULL AS INTEGER ) / - 29 col2 +---- +76 +NULL query II rowsort label-4911 SELECT + - 88 - 51 + - 26 AS col0, ( - - COUNT ( * ) ) AS col1 @@ -26150,8 +26437,11 @@ SELECT ( + COUNT ( * ) ) * - ( + 47 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \* Int64\(2\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT CAST ( NULL AS FLOAT8 ) * 2 AS col1, + 75 AS col1 +---- +75 +NULL query I rowsort SELECT ALL - NULLIF ( + 72, + 93 ) @@ -26579,8 +26869,11 @@ SELECT DISTINCT 93 * - 76 + + 52 + + + 15 + + + 5 * 80 * - + ( - + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1118 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* CAST\(Int64\(\-59\) AS Int32\) \+ Int64\(\-56\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 18 * CAST ( - 59 AS INTEGER ) + - 56 AS col0, 35 AS col0 +---- +-1118 +35 query I rowsort label-5046 SELECT - COUNT ( * ) - - MIN ( + 98 ) + + - ( - MIN ( - 71 ) ) AS col0 @@ -26961,8 +27254,11 @@ SELECT ALL - COUNT ( * ) - NULLIF ( + + 50, - 35 ) AS col0, 68 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(68\)\) AS col2" at position 0 and "\(\- min\(Int64\(69\)\)\) / Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 68 AS col2, - MIN ( + ( + 69 ) ) / 77 AS col2 +---- +-68 +0 query I rowsort label-5117 SELECT COUNT ( * ) / + 29 * - COUNT ( * ) * + ( - 92 ) @@ -27015,8 +27311,11 @@ 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\(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\. +query II valuesort SELECT + 85 AS col0, ( + SUM ( DISTINCT 57 ) ) + + COUNT ( * ) + - - 94 + + + 74 / - 53 + - 40 + - - 24 AS col0 +---- +135 +85 query I rowsort label-5127 SELECT COUNT ( * ) + + 44 @@ -27138,8 +27437,11 @@ SELECT 81 * ( + - 28 ) + + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(93\)\)\) \* Int64\(\-97\) AS col1" at position 0 and "Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - COUNT ( + 93 ) * - 97 AS col1, 95 AS col1 +---- +95 +97 query I rowsort SELECT DISTINCT + + 25 col1 @@ -27363,8 +27665,11 @@ SELECT ( + + COUNT ( * ) ) - - 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2240 # Datafusion - Expected - -585 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* \(\- Int64\(28\)\) AS col0" at position 0 and "Int64\(87\) \+ Int64\(21\) \* Int64\(\-32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 80 * - + 28 AS col0, 87 + + + 21 * + ( - 32 ) AS col0 +---- +-2240 +-585 query I rowsort SELECT ALL 56 * - 27 @@ -27524,8 +27829,11 @@ SELECT MIN ( + 94 ) + + MIN ( ALL ( - COALESCE ( 33, - - 41 ) ) ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(74\)\) / Int64\(49\) AS col2" at position 0 and "Int64\(32\) \+ Int64\(\-28\) \+ Int64\(52\) \- max\(DISTINCT Int64\(87\)\) \+ Int64\(\-4\) \* Int64\(\-15\) \* CASE Int64\(24\) WHEN Int64\(\-71\) \* \(\- Int64\(5\)\) THEN NULL WHEN Int64\(\-26\) \+ Int64\(\-94\) \- Int64\(\-16\) \+ \(\- CASE Int64\(57\) WHEN \(\- Int64\(64\)\) THEN NULL WHEN Int64\(29\) THEN \(\- Int64\(\-44\)\) \* \(\- nullif\(Int64\(2\), Int64\(\-48\) \* nullif\(\(\- avg\(Int64\(\-75\)\)\), Int64\(\-34\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(32\)\)\)\) \* Int64\(66\) \* \(\- Int64\(\-87\)\) WHEN nullif\(\(\- coalesce\(Int64\(\-30\), Int64\(\-85\)\)\), CAST\(Int64\(\-48\) AS Int32\)\) THEN Int64\(\-77\) ELSE Int64\(85\) \* \(\- Int64\(\-2\)\) \* \(\- nullif\(Int64\(5\), Int64\(98\) \* min\(DISTINCT \(\- Int64\(\-21\)\)\) \* Int64\(94\) \* nullif\(Int64\(57\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(11\) \* Int64\(89\)\) \+ max\(Int64\(\-77\)\)\)\) \* Int64\(\-94\) END\) \* Int64\(26\) THEN Int64\(\-16\) \+ Int64\(97\) \* \(\- coalesce\(Int64\(17\) \+ Int64\(\-31\), Int64\(97\) \* Int64\(37\)\)\) ELSE NULL END \+ Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +0 +NULL query I rowsort label-5226 SELECT ( + 65 ) * + + 62 + + - COUNT ( * ) AS col2 @@ -28029,8 +28337,11 @@ SELECT ALL + COUNT ( 35 ) + + + 40 + 74 * - 91 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 AS col0, 2 AS col0 +---- +2 +92 query I rowsort SELECT 24 + 32 + - 26 @@ -29035,8 +29346,11 @@ SELECT - - 21 + 81 + - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -104 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* \(\- Int64\(2\)\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 52 * + + ( - + 2 ) AS col0, + 88 col0 +---- +-104 +88 query II rowsort label-5516 SELECT + - 12, + COUNT ( * ) AS col1 @@ -29160,8 +29474,11 @@ SELECT ALL 26 / 32 * - 62 * 61 * + 9 * - COALESCE ( - 25, + - 11 + + + CASE + SU # Datafusion - Datafusion expected results: # Datafusion - Expected - -161 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* Int64\(\-10\) \- Int64\(\-5\) \+ Int64\(64\) AS col0" at position 0 and "Int64\(33\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 23 * - 10 - - 5 + + 64 AS col0, + 33 * COUNT ( * ) AS col0 +---- +-161 +33 query I rowsort label-5539 SELECT + COUNT ( DISTINCT - - 77 ) AS col1 @@ -29191,8 +29508,11 @@ SELECT DISTINCT + 62 * + + COALESCE ( 68, - 73 ) * + - COALESCE ( + CASE + ( 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(85\), \(\- Int64\(\-40\)\)\) AS col1" at position 0 and "Int64\(19\) \+ Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + NULLIF ( + 85, - ( - 40 ) ) AS col1, + 19 + + + 10 AS col1 +---- +29 +85 query I rowsort SELECT ALL - 35 * - 10 AS col1 @@ -29203,8 +29523,12 @@ SELECT ALL - 35 * - 10 AS col1 # Datafusion - Expected - 23 # Datafusion - Expected - -3283 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col0" at position 0 and "Int64\(52\) \* \(\- CASE Int64\(52\) WHEN Int64\(86\) THEN \(\- coalesce\(Int64\(45\), Int64\(48\)\)\) END\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 23 AS col0, + ( - 45 ) * 74 + 90 - + CAST ( 98 AS INTEGER ) + 55 col1, + 52 * - CASE 52 WHEN 86 THEN - COALESCE ( + 45, 48 ) END AS col0 +---- +-3283 +23 +NULL query I rowsort SELECT + 99 * + - 34 @@ -29581,8 +29905,11 @@ SELECT DISTINCT + COUNT ( * ) + + - 87 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -475 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) / Int64\(\-30\) AS col2" at position 0 and "\(\- Int64\(25\)\) \* Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 4 / - 30 AS col2, - ( + 25 ) * 19 AS col2 +---- +-475 +0 query I rowsort label-5620 SELECT - CAST ( + COUNT ( CAST ( + 88 AS INTEGER ) ) AS INTEGER ) * + - 60 + + + 31 + - + CASE - MIN ( DISTINCT - 17 ) WHEN 76 THEN + - 62 ELSE NULL END + - - 6 + + 77 * - COUNT ( * ) AS col1 @@ -29735,8 +30062,11 @@ SELECT - 68 * MAX ( DISTINCT + 45 ) * - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col1, - 73 AS col1 +---- +-73 +NULL query I rowsort label-5650 SELECT ALL CAST ( - - 66 AS INTEGER ) * + - COUNT ( - - 75 ) * + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + 68 @@ -30202,8 +30532,12 @@ SELECT - 70 AS col1, 5 + - 2 AS col2 # Datafusion - Expected - 36 # 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 1 and "\(\- count\(nullif\(coalesce\(coalesce\(Int64\(\-74\), Int64\(86\) \* Int64\(\-81\) \- Int64\(\-43\), Int64\(\-15\)\), Int64\(61\)\), \(\- Int64\(93\)\)\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 36, + 34 AS col1, - COUNT ( ALL NULLIF ( + + COALESCE ( + + COALESCE ( + - 74, + 86 * + - 81 - - 43, - 15 ), + + 61 ), - ( 93 ) ) ) AS col1 +---- +-1 +34 +36 query II rowsort SELECT ALL + 13 AS col2, - 76 * + 20 @@ -30376,8 +30710,11 @@ SELECT ALL + 13 - 2 + ( + 1 ) * - ( + CAST ( COALESCE ( + - 0, 9 * 48 * - 41 ) A # Datafusion - Datafusion expected results: # Datafusion - Expected - 238 # Datafusion - Expected - 134 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* Int64\(34\) AS col0" at position 0 and "max\(\(\- Int64\(\-38\)\)\) \+ Int64\(98\) \+ Int64\(\-35\) / Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 7 * 34 AS col0, + MAX ( ALL - - 38 ) + 98 + - 35 / + + 14 col0 +---- +134 +238 query I rowsort SELECT - + 2 * ( + 67 ) AS col0 @@ -30576,8 +30913,11 @@ SELECT ALL + 75 * COALESCE ( + + 96, - 0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 AS col1, + 39 AS col1 +---- +39 +91 query I rowsort SELECT ALL 20 * 57 @@ -30703,8 +31043,11 @@ SELECT ALL + 6 / 12 * + 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \+ \(\- Int64\(35\)\) AS col2" at position 0 and "Int64\(\-17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 + - + 35 AS col2, - 17 AS col2 +---- +-17 +45 query I rowsort label-5832 SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) @@ -30893,8 +31236,11 @@ SELECT + COUNT ( * ) * 26 + 96 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, - 88 AS col0 +---- +-88 +1 query I rowsort SELECT + + 35 * + - 84 @@ -31035,8 +31381,12 @@ SELECT DISTINCT 55 * - - COUNT ( * ) * + COUNT ( DISTINCT - 26 ), - 1 AS col0 # Datafusion - Expected - 13 # Datafusion - Expected - 96 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 13 AS col2, 96 AS col1, COUNT ( * ) AS col2 +---- +1 +13 +96 query II rowsort SELECT ALL 8 AS col0, 35 AS col1 @@ -31296,8 +31646,12 @@ SELECT DISTINCT - NULLIF ( - 26, COUNT ( 41 ) ) AS col1 # Datafusion - Expected - -5777 # Datafusion - Expected - -2376 # Datafusion - Expected - -145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(88\)\)\) \* \(\- Int64\(\-66\)\) \+ Int64\(31\) AS col2" at position 0 and "Int64\(\-47\) \+ Int64\(\-98\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - SUM ( ALL + 88 ) * - - 66 + 31 AS col2, 44 * - 54, - 47 + - 98 AS col2 +---- +-145 +-2376 +-5777 query I rowsort SELECT 12 + - ( - 25 ) @@ -31433,8 +31787,11 @@ SELECT + - 4 / + 33 + - ( + 7 ), + 35 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 16 AS col2, 30 AS col2 +---- +-16 +30 query I rowsort label-5971 SELECT - 56 + 39 * CAST ( COUNT ( ALL 34 ) AS INTEGER ) * COUNT ( * ) + - - 7 + + 0 + + - CASE - 2 WHEN - 7 * + 92 THEN NULL WHEN SUM ( ALL 36 ) THEN NULL ELSE - + COUNT ( * ) END @@ -32530,8 +32887,11 @@ SELECT ALL + 1 * + 99 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -317630 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(64\)\) \* Int64\(73\) \* Int64\(\-68\) \+ Int64\(66\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - COUNT ( * ) * + ( - + 64 ) * 73 * - 68 + 66 col1, COUNT ( * ) AS col1 +---- +-317630 +1 query I rowsort label-6181 SELECT ALL + 74 * - 1 * + - 15 + - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) * - 68 * - 74 - + 55 + 55 @@ -32636,8 +32996,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( COUNT ( DISTINCT - 44 ), + 16 + - 34 ) * - + COUNT ( * ) AS col1, - 19 AS col1 +---- +-19 +1 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -32862,8 +33225,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + + + 11 AS col1, + ( - CASE 66 WHEN - 14 THEN NULL ELSE - - 89 END ) AS col1 +---- +-89 +12 query I rowsort SELECT - 35 + - 17 * + - 34 AS col2 @@ -33130,8 +33496,11 @@ SELECT ALL COALESCE ( - - 69, - MIN ( - - CAST ( - - 92 AS INTEGER ) ), + COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - 1824 # Datafusion - Expected - -966 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(coalesce\(Int64\(24\), \(\- Int64\(\-25\)\) \* Int64\(36\) \* \(\- sum\(DISTINCT Int64\(\-52\)\)\)\), Int64\(\-80\)\) \* \(\- Int64\(\-76\)\) AS col1" at position 0 and "Int64\(69\) \* Int64\(\-14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + NULLIF ( + COALESCE ( + 24, - - 25 * + + 36 * + - SUM ( DISTINCT - 52 ) ), - 80 ) * - - 76 AS col1, 69 * - 14 AS col1 +---- +-966 +1824 query I rowsort SELECT - 33 * 50 * + - 14 @@ -33370,8 +33739,12 @@ SELECT - CAST ( + 66 AS INTEGER ) # Datafusion - Expected - -1120 # Datafusion - Expected - 178524 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) \* Int64\(80\) \+ \(\- Int64\(4\)\) / Int64\(29\) AS col0" at position 0 and "Int64\(87\) \* Int64\(38\) \* Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 14 * 80 + - ( 4 ) / + 29 AS col0, 87 * + + 38 * + 54 AS col0, 80 AS col1 +---- +-1120 +178524 +80 query I rowsort SELECT + 19 + - 75 @@ -33596,8 +33969,11 @@ SELECT 81 * + COUNT ( DISTINCT + 68 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3200 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* nullif\(Int64\(96\), Int64\(\-11\)\) \+ Int64\(\-64\) AS col2" at position 0 and "Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 34 * + NULLIF ( 96, - 11 ) + - 64 col2, - 16 AS col2 +---- +-16 +3200 query I rowsort label-6382 SELECT + MAX ( + 64 ) col1 @@ -34197,8 +34573,11 @@ NULL # 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\(\-12\) AS col1" at position 0 and "\(\- coalesce\(Int64\(\-1\), Int64\(\-55\)\)\) / \(\- max\(Int64\(37\)\)\) \+ Int64\(\-75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 12 col1, - COALESCE ( - 1, - 55 ) / - MAX ( ( + 37 ) ) + - 75 AS col1 +---- +-12 +-75 query I rowsort SELECT 29 * - + 73 @@ -34209,8 +34588,12 @@ SELECT 29 * - + 73 # Datafusion - Expected - 48 # Datafusion - Expected - 514 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col0" at position 0 and "Int64\(11\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 48 AS col0, - COUNT ( * ) - 40 * SUM ( + 92 ) / + - 8 + + 55 col1, 11 AS col0 +---- +11 +48 +514 query I rowsort SELECT 19 * - 58 * + 19 @@ -34285,8 +34668,12 @@ SELECT 24 * + 72 - 17 * - 99 * COALESCE ( CASE - - 44 WHEN - - CASE 36 WHEN + ( # Datafusion - Expected - 34 # Datafusion - Expected - -88 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "Int64\(88\) \* \(\- count\(DISTINCT Int64\(2\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 34 AS col2, + 88 * + - COUNT ( DISTINCT + 2 ) AS col2, + + 76 +---- +-88 +34 +76 query I rowsort label-6511 SELECT - CASE CAST ( 37 AS INTEGER ) WHEN + - CASE - + 30 WHEN 38 + - 42 * 69 THEN NULL WHEN - 13 * + - 1 - - 99 + - CASE + 78 WHEN 95 + 74 THEN - 91 * - 71 WHEN ( + ( + 60 ) ) * + COUNT ( * ) * 79 THEN 14 WHEN + 51 THEN NULL ELSE NULL END + - 77 * - 99 * 51 THEN + - 48 ELSE + + 83 * + COALESCE ( + + NULLIF ( + 35, - 65 ), - 72, + COALESCE ( - - 78, + 11 ) ) + CAST ( 0 AS FLOAT8 ) * + 54 * 34 END THEN SUM ( 43 ) END AS col0 @@ -34296,8 +34683,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* CAST\(NULL AS Int32\) \+ avg\(Int64\(75\)\) \+ \(\- Int64\(\-86\)\) AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT 80 * + CAST ( NULL AS INTEGER ) + AVG ( + + 75 ) + - + ( - 86 ) AS col2, 31 AS col2 +---- +31 +NULL query I rowsort SELECT ALL - 69 * 81 * 95 col2 @@ -34387,8 +34777,12 @@ SELECT ALL COALESCE ( - 60, - - 89 ), 92 AS col2 # Datafusion - Expected - 7040 # Datafusion - Expected - -2980 # Datafusion - Expected - -1680 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \* Int64\(70\) \+ Int64\(\-40\) AS col1" at position 1 and "Int64\(48\) \* Int64\(\-35\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 80 * + 88, - 42 * + 70 + - 40 AS col1, 48 * - 35 AS col1 +---- +-1680 +-2980 +7040 query I rowsort label-6529 SELECT ALL ( - 93 ) + - CASE + 65 WHEN 44 / + - ( - 30 ) THEN + 81 WHEN - SUM ( - 34 ) * - ( 39 ) * 56 THEN - 25 WHEN - 56 + + 93 THEN + + 54 ELSE NULL END @@ -34605,8 +34999,11 @@ SELECT DISTINCT SUM ( + + 59 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -224 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "Int64\(4\) \* Int64\(\-56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 AS col2, + 4 * + - 56 AS col2 +---- +-224 +16 query I rowsort SELECT ALL + 4 - + - 62 + + - 18 * - - 11 @@ -34907,8 +35304,11 @@ SELECT DISTINCT - 91 + - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -53288 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \* min\(DISTINCT Int64\(16\)\) \* Int64\(22\) \+ Int64\(\-56\) \- Int64\(24\) AS col0" at position 0 and "min\(Int64\(\-88\)\) \+ Int64\(95\) \* \(\- Int64\(80\)\) \* Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + CAST ( NULL AS FLOAT8 ) * MIN ( DISTINCT + + 16 ) * 22 + - 56 - 24 AS col0, MIN ( ALL + - 88 ) + 95 * - + 80 * 7 AS col0 +---- +-53288 +NULL query I rowsort label-6628 SELECT - - MIN ( + 59 ) @@ -35390,8 +35790,11 @@ SELECT ALL - 71 - + MAX ( 2 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 34 AS col2, - 29 AS col2 +---- +-29 +34 query I rowsort label-6721 SELECT - 6 / COUNT ( * ) AS col2 @@ -37368,8 +37771,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1144 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* Int64\(44\) AS col0" at position 0 and "Int64\(\-54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 * + 44 AS col0, - 54 AS col0 +---- +-54 +1144 query I rowsort label-7100 SELECT DISTINCT - 80 / + - 7 * - 1 @@ -37486,8 +37892,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 42 + - + COUNT ( * ) AS col2, + 32 AS col2 +---- +32 +41 query I rowsort label-7123 SELECT - CASE + SUM ( DISTINCT + 89 ) WHEN - 97 + - - ( - AVG ( DISTINCT + 40 ) ) * + COUNT ( * ) - + + 29 THEN NULL WHEN 40 THEN 75 / - MIN ( 57 ) END AS col1 @@ -37836,8 +38245,12 @@ SELECT ALL 87 / 83 * + 66 * + CAST ( - + ( + ( - + 53 ) ) AS INTEGER ) + + ( - 7 # Datafusion - Expected - -92 # Datafusion - Expected - 73 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(92\)\) AS col2" at position 0 and "\(\- \(\- \(\- \(\- avg\(DISTINCT CAST\(NULL AS Int32\)\)\)\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort SELECT - + 92 AS col2, 73, - - ( - - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) col2 +---- +-92 +73 +NULL query II rowsort label-7191 SELECT - - 38 AS col2, + 87 * COUNT ( - 66 ) + - NULLIF ( - - 45, 66 ) @@ -38065,8 +38478,11 @@ SELECT ALL ( - + COUNT ( * ) ) + + - 78 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 73 AS col0, ( + COUNT ( * ) ) AS col0 +---- +-73 +1 query I rowsort label-7233 SELECT ALL 0 + + MAX ( DISTINCT + + 45 ) + ( - 16 ) - + 5 AS col1 @@ -38238,8 +38654,11 @@ SELECT - 60 * 39 AS col2 # 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\(66\) \+ Int64\(79\) AS col2" at position 0 and "count\(DISTINCT Int64\(\-70\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 66 + 79 AS col2, + COUNT ( DISTINCT - 70 ) col2 +---- +1 +145 query I rowsort SELECT ALL - ( - - 9 ) * - 95 AS col0 @@ -38436,8 +38855,11 @@ SELECT - 77 * - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 29 AS col1, 55 AS col1 +---- +-29 +55 query II rowsort label-7304 SELECT - NULLIF ( 97, + 55 + - 78 ) + + 74 + 76 * - 67 + 53 AS col2, - COUNT ( * ) AS col1 @@ -38623,8 +39045,11 @@ SELECT - 27 AS col2, - MIN ( DISTINCT + 79 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 104 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 0 and "Int64\(81\) \- Int64\(\-23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 35 AS col2, 81 - - 23 AS col2 +---- +104 +35 query II rowsort SELECT DISTINCT + 38 AS col1, 83 AS col2 @@ -39003,8 +39428,11 @@ SELECT COUNT ( DISTINCT 41 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-21\)\) AS col2" at position 0 and "min\(DISTINCT Int64\(\-58\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 21 AS col2, ( MIN ( DISTINCT - 58 ) ) AS col2 +---- +-58 +21 query II rowsort label-7412 SELECT + - 65 - 28 * + + CASE + 78 WHEN + COALESCE ( - COUNT ( * ), + + COUNT ( * ) ) THEN NULL ELSE - 69 / - + 14 END + - 20 + + 79 col2, - 92 AS col0 @@ -39347,8 +39775,11 @@ SELECT 60 * - 44 * + COALESCE ( - 95, + - 83 * 49 * + - 9 + + 95 + + + MIN ( + ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 AS col1, - COUNT ( * ) * + COUNT ( * ) AS col1 +---- +-1 +67 query II rowsort SELECT - 96 AS col2, COALESCE ( - 71, + 83 * + 95 + 57 ) @@ -40207,8 +40638,11 @@ SELECT - 42 + - ( - 60 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) AS col1" at position 0 and "Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 26 ) AS col1, 95 AS col1 +---- +-26 +95 query I rowsort label-7639 SELECT - 47 + COUNT ( * ) + COUNT ( * ) * + 15 AS col2 @@ -40253,8 +40687,11 @@ 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\(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\. +query II valuesort SELECT + 27 - 49 + - COUNT ( * ) * - + 22 AS col0, 27 * - + 6 + - ( 94 ) AS col0 +---- +-256 +0 query I rowsort SELECT + 41 - + 16 AS col2 @@ -40800,8 +41237,11 @@ SELECT ALL + COUNT ( * ) * + + 36 / - + 45 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- max\(Int64\(42\)\)\), \(\- Int64\(\-58\)\) / CAST\(NULL AS Int32\) \+ CASE Int64\(84\) WHEN Int64\(16\) THEN Int64\(94\) \+ count\(Int64\(1\)\) AS count\(\*\) ELSE Int64\(49\) \* Int64\(63\) END \- Int64\(70\)\) \* Int64\(2\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-84 +NULL query I rowsort SELECT ALL - NULLIF ( - + 71, 73 ) AS col1 @@ -40866,8 +41306,11 @@ SELECT ALL 6 / - + 82 + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT ALL + 19 AS col2, - 16 AS col2 +---- +-16 +19 query I rowsort SELECT + 65 * + 77 AS col2 @@ -40892,8 +41335,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) + + + 82 * - 37 * + 41 - + 36 AS col2, - 99 AS col2 +---- +-124431 +-99 query I rowsort SELECT ALL + ( 57 ) AS col0 @@ -41138,8 +41584,11 @@ 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\(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\. +query II valuesort SELECT 43 AS col1, - NULLIF ( + COUNT ( * ), 98 * + NULLIF ( - COALESCE ( + - 59, - 87 + + + MIN ( DISTINCT + 31 ) ), + 89 * 15 * 75 / + 57 ) + + 2 / + 40 + 63 ) - + 84 AS col1 +---- +-85 +43 query I rowsort label-7817 SELECT DISTINCT + 20 + COUNT ( * ) AS col2 @@ -41447,8 +41896,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 * + + 23 + ( - 56 ) AS col1, COUNT ( * ) * + 17 AS col1 +---- +-1919 +17 query I rowsort label-7877 SELECT ALL + 55 / - 18 @@ -41566,8 +42018,11 @@ SELECT - CASE - 77 WHEN - ( - 35 ) * 98 + + + 35 + + 16 THEN NULL WHEN + - 43 * # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \+ Int64\(26\) AS col0" at position 0 and "Int64\(30\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 63 + 26 col0, 30 * + - CAST ( NULL AS INTEGER ) col0 +---- +-37 +NULL query I rowsort label-7899 SELECT ( - 38 ) + 38 + - COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col0 @@ -41703,8 +42158,12 @@ SELECT NULLIF ( ( - 14 ), + - 40 ) + 65 AS col2 # Datafusion - Expected - 44 # Datafusion - Expected - NULL # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 and "\(\- Int64\(\-26\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 44, 95 + + CAST ( NULL AS INTEGER ) AS col2, - - 26 AS col2 +---- +26 +44 +NULL query I rowsort label-7925 SELECT COUNT ( + + 75 ) + 17 - - ( - 16 ) * MIN ( - 38 ) * - + 76 @@ -41935,8 +42394,11 @@ SELECT + + MAX ( 88 ) - + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 col0, CAST ( NULL AS INTEGER ) AS col0 +---- +48 +NULL query II rowsort SELECT 86, - 62 AS col0 @@ -41947,8 +42409,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 34 AS col1, 34 * - COUNT ( * ) AS col1 +---- +-34 +34 query II rowsort label-7971 SELECT - CAST ( NULL AS INTEGER ) col0, 22 @@ -42362,8 +42827,11 @@ SELECT 54 * - 21 * + 97 AS col0, 15 / - 84 * 41 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1482 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(\-38\)\)\) \* Int64\(39\) AS col0" at position 0 and "Int64\(56\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - MAX ( - 38 ) * 39 AS col0, 56 + + COUNT ( * ) AS col0 +---- +1482 +57 query II rowsort label-8049 SELECT + 38, - MAX ( + 83 ) * - 42 + - - 91 + 88 + 54 AS col1 @@ -42642,8 +43110,11 @@ 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\(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\. +query II valuesort SELECT + ( 33 ) + - 16 * - + COUNT ( * ) col1, + 69 - + 11 AS col1 +---- +49 +58 query II rowsort SELECT - 95 * 67 AS col2, + 37 @@ -42941,8 +43412,11 @@ SELECT + 1 - - + 97 + - - 41 * - MAX ( ALL + 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-6\)\)\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + SUM ( ALL - 6 ) AS col1, 13 AS col1 +---- +13 +6 query I rowsort SELECT + ( - - ( + ( - 39 ) ) ) - 8 + - 22 @@ -43225,8 +43699,11 @@ SELECT ALL + MIN ( DISTINCT 60 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(85\)\) / CAST\(NULL AS Int32\) \+ \(\- Int64\(1\)\) \- \(\- CASE Int64\(90\) WHEN Int64\(55\) THEN NULL WHEN Int64\(\-93\) / Int64\(\-73\) THEN Int64\(33\) / \(\- Int64\(\-36\)\) END\) \* Int64\(\-81\) AS col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +9 +NULL query II rowsort label-8214 SELECT + + ( + 46 ) / 95 * + 77 AS col0, 59 @@ -43619,8 +44096,11 @@ SELECT ALL + 30 + - 60 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col1" at position 0 and "Int64\(60\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 col1, 60 * + + COUNT ( * ) AS col1 +---- +12 +60 query I rowsort label-8287 SELECT ALL - - COUNT ( + 67 ) * - - 58 @@ -44750,8 +45230,11 @@ SELECT DISTINCT - 7 + + 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 26 AS col0, 76 AS col0 +---- +26 +76 query II rowsort label-8504 SELECT 58 AS col1, ( COUNT ( ( - 8 ) ) ) @@ -45198,8 +45681,11 @@ SELECT ALL + 40 * + 93 + - 53 - + 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 44 AS col2, 95 AS col2 +---- +44 +95 query I rowsort label-8589 SELECT ALL - 75 * COUNT ( * ) - 7 @@ -45527,8 +46013,11 @@ SELECT 98 + + 48 + - 77 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - -110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "Int64\(\-5\) \+ max\(Int64\(\-33\)\) \+ Int64\(\-72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 38 ) AS col0, - 5 + + MAX ( - 33 ) + - 72 AS col0 +---- +-110 +38 query I rowsort SELECT - 49 + - 36 col0 @@ -45563,8 +46052,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * + - 42 AS col0, + 74 AS col0 +---- +-42 +74 query I rowsort SELECT + 0 * + 38 * - 60 * - + 89 + + 71 @@ -45957,8 +46449,11 @@ SELECT DISTINCT + - ( - 71 ) / - - 7 + + COUNT ( * ), 45 * - - 72 * - + 75 AS co # 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\(74\) / Int64\(\-40\) \+ Int64\(59\) \+ Int64\(20\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 74 / - 40 + + 59 + + + 20 col1, 22 AS col1 +---- +22 +78 query I rowsort SELECT DISTINCT 12 * + 52 @@ -46627,8 +47122,11 @@ SELECT ALL CAST ( 9 AS INTEGER ) + COALESCE ( - 31, - + 54 ) 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 Float64\) \+ Int64\(\-58\) \* Int64\(32\) AS col0" at position 0 and "Int64\(34\) \+ Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT CAST ( NULL AS FLOAT8 ) + - 58 * + ( + + 32 ) AS col0, 34 + 26 AS col0 +---- +60 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -46855,8 +47353,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 78 col1, + 55 AS col1 +---- +55 +78 query III rowsort label-8905 SELECT ALL - NULLIF ( - + CASE + - 70 WHEN + 94 + - 26 * - + 30 - + 90 THEN NULL ELSE 52 END, 14 / - + 53 ) AS col2, 74 col0, COUNT ( + - ( 94 ) ) @@ -46868,8 +47369,11 @@ SELECT ALL - NULLIF ( - + CASE + - 70 WHEN + 94 + - 26 * - + 30 - + 90 THEN NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* Int64\(18\) \- Int64\(\-55\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(22\) \+ Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 73 * + ( 18 ) - + - 55 + - CAST ( NULL AS INTEGER ) AS col1, + 22 + 28 AS col1 +---- +50 +NULL query I rowsort label-8907 SELECT + 64 * 32 * - - 60 / - ( 20 ) + 35 + 19 @@ -47291,8 +47795,11 @@ SELECT - 2 * + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \+ \(\- Int64\(45\)\) AS col1" at position 0 and "Int64\(23\) / \(\- Int64\(52\)\) \+ Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 67 + - + 45 AS col1, 23 / - + 52 + + 84 AS col1 +---- +22 +84 query II rowsort label-8987 SELECT ALL + COUNT ( * ) + 63 AS col0, + COALESCE ( - 45, 36 ) * + 98 + CAST ( NULL AS INTEGER ) @@ -47511,8 +48018,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -116 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) \+ Int64\(\-38\) \+ \(\- Int64\(21\)\) AS col1" at position 0 and "Int64\(\-64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 57 + - 38 + - + 21 AS col1, - 64 AS col1 +---- +-116 +-64 query II rowsort label-9027 SELECT COUNT ( * ) * + 78 + ( - 40 ) col2, ( - 74 ) * - + COUNT ( * ) * - 38 @@ -47875,8 +48385,12 @@ 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\(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\. +query III valuesort SELECT - 18 / + - ( - 45 ) + + 57 AS col1, + 24 * CASE COUNT ( * ) WHEN - COUNT ( * ) THEN NULL ELSE - 30 END AS col0, - COUNT ( - 35 ) AS col0 +---- +-1 +-720 +57 query I rowsort label-9097 SELECT + 30 * + 88 + - - CASE - 69 WHEN + COUNT ( DISTINCT 9 ) THEN - 33 ELSE - COUNT ( * ) END @@ -47886,8 +48400,11 @@ SELECT + 30 * + 88 + - - CASE - 69 WHEN + COUNT ( DISTINCT 9 ) THEN - 33 ELSE - # Datafusion - Datafusion expected results: # Datafusion - Expected - -81928 # Datafusion - Expected - -1587 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* Int64\(11\) \* \(\- coalesce\(Int64\(98\), sum\(DISTINCT Int64\(\-66\)\)\)\) AS col1" at position 0 and "Int64\(\-69\) \* Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 76 * + + 11 * - COALESCE ( 98, + + SUM ( DISTINCT - 66 ) ) AS col1, - 69 * 23 AS col1 +---- +-1587 +-81928 query II rowsort label-9099 SELECT DISTINCT + COUNT ( * ), 90 AS col1 @@ -47963,14 +48480,20 @@ SELECT - 12 + 11 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-79\)\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 79 AS col0, + 94 AS col0 +---- +79 +94 # 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 "Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 32 AS col1, 1 AS col1 +---- +1 +32 query II rowsort SELECT ALL 82, - 88 * + 91 AS col2 @@ -48301,8 +48824,11 @@ 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\(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\. +query II valuesort SELECT ALL ( + 9 ) / COUNT ( * ) * - - 52 col0, - ( MIN ( + 58 ) ) AS col0 +---- +-58 +468 query I rowsort label-9177 SELECT ALL + 60 * 71 + - CASE 88 WHEN - COUNT ( * ) * - 42 + + 7 + 22 / + + 27 * + 65 THEN + - CASE 53 WHEN - 26 THEN - 12 WHEN + COUNT ( * ) THEN NULL END * 95 ELSE NULL END + + + 56 AS col2 @@ -48683,8 +49209,12 @@ SELECT + 12 * + COUNT ( * ) + + - SUM ( - + 29 ) # Datafusion - Expected - 20 # Datafusion - Expected - 42 # Datafusion - Expected - 2459 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(\-42\)\)\) AS col0" at position 1 and "Int64\(96\) / Int64\(\-99\) \+ Int64\(9\) \- Int64\(0\) \- Int64\(\-25\) \* Int64\(98\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 87 / - ( - 23 ) * COUNT ( * ) + 17, ( - MAX ( - 42 ) ) AS col0, + 96 / - 99 + 9 - - 0 - - 25 * + + 98 AS col0 +---- +20 +2459 +42 query I rowsort label-9250 SELECT 51 * NULLIF ( - NULLIF ( + 20, + - ( - COUNT ( * ) ) ), COUNT ( * ) ) + - 52 * + + 60 @@ -48719,8 +49249,11 @@ SELECT + 16 + - - COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + 0 AS col2 +---- +0 +1 query I rowsort SELECT - 39 * 46 - - - 81 AS col0 @@ -48969,8 +49502,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col1" at position 0 and "Int64\(\-34\) \+ Int64\(69\) \+ Int64\(\-52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 1 AS col1, - 34 + 69 + + - 52 AS col1 +---- +-17 +1 query II rowsort SELECT 87, + 14 AS col0 @@ -49268,8 +49804,11 @@ 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\(1\)\) AS count\(\*\)\) / Int64\(67\) \* \(\- Int64\(55\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - MIN ( - - 16 ) ) AS col0, - COUNT ( * ) / + 67 * - + 55 AS col0 +---- +0 +16 query I rowsort label-9362 SELECT DISTINCT - CASE - ( - CASE 47 WHEN MIN ( DISTINCT - 22 ) THEN - 29 - + ( - - COUNT ( * ) ) ELSE NULL END ) WHEN + 72 THEN - + 38 - COUNT ( * ) WHEN + + 38 * + 54 THEN + 21 END AS col1 @@ -49299,8 +49838,11 @@ SELECT - 47 * 30 - + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1610 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* CAST\(nullif\(Int64\(46\), Int64\(76\)\) AS Int32\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 35 * + CAST ( NULLIF ( 46, + 76 ) AS INTEGER ) AS col2, + 90 AS col2 +---- +1610 +90 query I rowsort SELECT + 84 * 40 * + + 33 + - 46 + - 3 @@ -49691,8 +50233,11 @@ SELECT + - 91 + - 1 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "count\(Int64\(18\)\) / CAST\(NULL AS Int32\) \- Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 90 AS col1, + COUNT ( ALL + 18 ) / + CAST ( NULL AS INTEGER ) - + - 46 col1 +---- +90 +NULL query I rowsort label-9444 SELECT DISTINCT MAX ( DISTINCT + 17 ) AS col1 @@ -49964,8 +50509,11 @@ 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\(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\. +query II valuesort 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 +---- +-18 +5 query II rowsort SELECT - 6, + 33 - 86 AS col2 @@ -50049,8 +50597,11 @@ SELECT DISTINCT - - COALESCE ( - - 26, 86, - + 39 ) / + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col2" at position 0 and "sum\(Int64\(57\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 99 col2, + SUM ( ALL 57 ) AS col2 +---- +-99 +57 query I rowsort label-9512 SELECT MAX ( DISTINCT - 34 ) / + 64 AS col2 @@ -50194,8 +50745,11 @@ SELECT - 39 / - 48 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1, 55 AS col1 +---- +55 +NULL query I rowsort label-9539 SELECT MIN ( DISTINCT - - 70 ) @@ -50384,8 +50938,12 @@ SELECT DISTINCT + 38 * + NULLIF ( + 72, - 92 - - COUNT ( * ) + + ( - 40 ) ) + - # Datafusion - Expected - -1031 # Datafusion - Expected - 56 # Datafusion - Expected - 254 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \* Int64\(46\) \- Int64\(\-57\) \- Int64\(32\) \+ Int64\(94\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + - 25 * + 46 - - 57 - 32 + + 94 AS col0, 56 AS col0, - - ( - - 16 ) * 22 + + - 66 + - 32 AS col0 +---- +-1031 +254 +56 query I rowsort SELECT + 21 - - - 32 AS col1 @@ -51098,8 +51656,11 @@ SELECT ALL 82, - 72 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(82\)\) AS Int32\) \+ Int64\(36\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - + 82 AS INTEGER ) + + 36 AS col0, 92 AS col0 +---- +-46 +92 query I rowsort label-9710 SELECT SUM ( DISTINCT + 72 ) + + 53 @@ -51597,8 +52158,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(79\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "CASE Int64\(65\) WHEN Int64\(10\) THEN Int64\(91\) \* Int64\(\-35\) \* Int64\(79\) END \- CAST\(Int64\(59\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) * 79 * + CAST ( NULL AS INTEGER ) AS col0, CASE 65 WHEN + + 10 THEN 91 * + - 35 * 79 END - + CAST ( 59 AS INTEGER ) col0 +---- +NULL +NULL query I rowsort label-9804 SELECT + 86 / - NULLIF ( + 94, COUNT ( * ) * + COUNT ( * ) / + 80 ) @@ -51982,8 +52546,11 @@ SELECT DISTINCT - - 32 * 28 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + COUNT ( * ) AS col1, - 88 AS col1 +---- +-88 +1 query I rowsort label-9877 SELECT ALL - + NULLIF ( + - 52, + - 3 + 90 + 58 + 27 / 61 ) * + + 14 - + COUNT ( + 37 ) AS col1 @@ -52334,8 +52901,11 @@ SELECT ALL - 64 * + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2232 # Datafusion - Expected - 4656 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* Int64\(72\) AS col1" at position 0 and "\(\- nullif\(\(\- max\(DISTINCT Int64\(48\)\)\), Int64\(96\)\)\) \* Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 * + + 72 AS col1, - NULLIF ( - MAX ( DISTINCT + 48 ), + 96 ) * 97 AS col1 +---- +2232 +4656 query I rowsort label-9943 SELECT DISTINCT + + ( - 19 ) * COUNT ( * ) AS col1 @@ -52368,8 +52938,11 @@ SELECT ALL - CAST ( SUM ( DISTINCT CAST ( - - 21 AS INTEGER ) ) AS INTEGER ) AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 3136 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \* \(\- Int64\(\-56\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 * - - 56 col1, CAST ( NULL AS INTEGER ) * + - 40 AS col1 +---- +3136 +NULL query II rowsort label-9949 SELECT - ( - 81 ) AS col1, COUNT ( * ) * 23 @@ -52411,8 +52984,11 @@ SELECT COUNT ( * ) + + 1 * + 77 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 63 col2, 14 AS col2 +---- +14 +63 query II rowsort label-9957 SELECT - 64, - COUNT ( * ) AS col2 @@ -52439,8 +53015,11 @@ SELECT DISTINCT 91 * COUNT ( * ) * - + 76 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col0" at position 0 and "Int64\(81\) \+ Int64\(\-69\) / Int64\(26\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 AS col0, 81 + - 69 / + 26 + COUNT ( * ) col0 +---- +71 +80 query I rowsort SELECT ( - 87 ) - - - 20 AS col1 @@ -52465,8 +53044,11 @@ SELECT ALL + COALESCE ( + - COUNT ( * ), - 65, 19 ) * - COALESCE ( - ( - 65 ), - # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(74\)\) AS col2" at position 0 and "Int64\(\-19\) \+ Int64\(\-70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 74 col2, - 19 + - 70 AS col2 +---- +-74 +-89 query I rowsort label-9967 SELECT + - CAST ( - CAST ( - - MIN ( + - 65 ) AS INTEGER ) AS INTEGER ) AS col2 diff --git a/data/sqlite/random/expr/slt_good_18.slt b/data/sqlite/random/expr/slt_good_18.slt index 9762d4a..5965dd9 100644 --- a/data/sqlite/random/expr/slt_good_18.slt +++ b/data/sqlite/random/expr/slt_good_18.slt @@ -871,8 +871,11 @@ SELECT - - 2 * COUNT ( * ) col1 # 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 col0" at position 0 and "Int64\(\-32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 16 AS col0, ( - 32 ) AS col0 +---- +-16 +-32 query I rowsort SELECT ALL 80 + + - 45 AS col0 @@ -1206,8 +1209,11 @@ SELECT ALL - ( + - 96 ) - - 67 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col2" at position 0 and "Int64\(76\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 AS col2, 76 - + + COUNT ( * ) AS col2 +---- +50 +75 query I rowsort label-231 SELECT DISTINCT - ( - COALESCE ( - 18, COUNT ( ALL 61 ) * 92, + 23 / + 76 ) ) / 44 @@ -1227,8 +1233,11 @@ SELECT MAX ( ALL + 59 ) * + + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - -261096 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col2" at position 0 and "Int64\(86\) \* \(\- Int64\(\-92\)\) \* Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 5 AS col2, + 86 * - - 92 * - 33 AS col2 +---- +-261096 +-5 query I rowsort label-235 SELECT SUM ( DISTINCT + - 76 ) @@ -1255,8 +1264,11 @@ SELECT DISTINCT - 43 col2, - COUNT ( * ) * - - 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col2" at position 0 and "Int64\(17\) \+ \(\- Int64\(14\)\) \+ Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 14 AS col2, 17 + - + 14 + + - 30 col2 +---- +-14 +-27 query I rowsort label-240 SELECT MAX ( ALL - 17 ) col1 @@ -1501,8 +1513,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( COUNT ( * ) ) AS col0, 91 col0 +---- +-1 +91 query I rowsort SELECT + - NULLIF ( + 72, - + 98 + - 97 + 38 * + + 52 ) AS col1 @@ -2075,8 +2090,11 @@ 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\(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\. +query II valuesort SELECT ALL - COALESCE ( - COUNT ( * ), 42 ) + 11 AS col0, 81 col0 +---- +12 +81 query I rowsort SELECT - 61 - - 50 @@ -2248,8 +2266,11 @@ SELECT DISTINCT 3 + - COUNT ( * ) + + CAST ( + 26 AS INTEGER ) AS col2 # 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 "Int64\(0\) \* Int64\(79\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 * 79 AS col1, 67 AS col1 +---- +0 +67 query II rowsort SELECT DISTINCT 67 - - 54, - 62 - + - 84 AS col2 @@ -2315,8 +2336,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1496 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \* Int64\(17\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 88 * + 17 AS col1, + 44 AS col1 +---- +-1496 +44 query I rowsort label-443 SELECT DISTINCT - ( - CASE - 90 WHEN + - 83 THEN NULL WHEN + - 65 THEN 34 * COUNT ( * ) + SUM ( + 17 ) WHEN - MAX ( ALL - + 77 ) THEN + 7 ELSE NULL END ) col0 @@ -2782,8 +2806,11 @@ SELECT ALL 91 / 18 / COUNT ( * ) - + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col1" at position 0 and "Int64\(\-81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 49 AS col1, - 81 AS col1 +---- +-81 +49 query I rowsort SELECT - 15 * - - 58 AS col0 @@ -2809,8 +2836,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) / Int64\(28\) \- Int64\(\-13\) \* Int64\(\-77\) \- CAST\(NULL AS Int32\) \- Int64\(\-18\) AS col0" at position 0 and "Int64\(79\) / \(\- \(\- max\(Int64\(49\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 34 / 28 - - 13 * - 77 - + CAST ( NULL AS INTEGER ) - + ( ( + - 18 ) ) AS col0, + 79 / - - MAX ( 49 ) AS col0 +---- +1 +NULL query I rowsort label-536 SELECT - 79 * + - ( - - CAST ( NULL AS INTEGER ) ) * + - 96 + + CAST ( NULL AS INTEGER ) / CAST ( 16 AS INTEGER ) + - - 53 AS col1 @@ -2846,8 +2876,11 @@ SELECT DISTINCT + COALESCE ( 74, - CAST ( + MAX ( 55 ) AS INTEGER ), + 54 + + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 2150 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* Int64\(25\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "coalesce\(Int64\(1\), Int64\(21\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 86 * 25 * COUNT ( * ) AS col0, + COALESCE ( 1, 21 ) AS col0 +---- +1 +2150 query I rowsort label-543 SELECT DISTINCT + COALESCE ( MAX ( ALL 60 ), - COUNT ( * ), 33 + 35 ) * 73 + - - COUNT ( * ) + - 39 / 56 AS col2 @@ -2913,8 +2946,11 @@ SELECT ALL - 21 * + 33 - 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 34 AS col0, 85 AS col0 +---- +34 +85 query I rowsort label-556 SELECT DISTINCT 60 - - - ( + 33 ) + 7 / + - 24 @@ -3056,8 +3092,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 + - COUNT ( * ) AS col1, 15 AS col1 +---- +-91 +15 query I rowsort SELECT DISTINCT - CASE - 14 WHEN - CASE 4 WHEN + + 11 THEN - + 37 END THEN NULL WHEN - 29 + + 16 THEN NULL ELSE - - 7 END AS col1 @@ -3082,8 +3121,11 @@ SELECT + 79 + + - 5 * - 94 + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(97\), avg\(Int64\(76\)\)\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT NULLIF ( + + 97, AVG ( + 76 ) ) AS col1, ( 55 ) AS col1 +---- +55 +97 query I rowsort SELECT ALL - 3 * - 80 * + + 30 * 9 * 36 @@ -3293,8 +3335,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col1, 28 + - SUM ( DISTINCT - 89 ) AS col1 +---- +-1 +117 query I rowsort SELECT + 20 + + - ( + - 12 ) @@ -4646,8 +4691,11 @@ SELECT - 81 AS col1, 83 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 1050 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col2" at position 0 and "Int64\(\-70\) \* Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 38 col2, - 70 * - 15 AS col2 +---- +1050 +38 query I rowsort label-888 SELECT ALL + COUNT ( * ) * + 76 * + 14 @@ -4773,8 +4821,11 @@ SELECT ALL + 30 * + + CAST ( - 30 AS INTEGER ) + 25, 75 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 "nullif\(\(\- \(\- count\(DISTINCT Int64\(81\)\)\)\), Int64\(39\)\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( - - COUNT ( DISTINCT + 81 ), 39 ) AS col1, 12 col1 +---- +1 +12 query I rowsort label-911 SELECT + COUNT ( * ) * - ( COUNT ( * ) ) + - CAST ( ( + 23 ) AS INTEGER ) - + 78 + + + 57 @@ -5096,8 +5147,11 @@ SELECT DISTINCT - 26 * 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15275520 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* Int64\(52\) \* Int64\(\-48\) \* \(\- Int64\(72\)\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 85 * + 52 * - 48 * - + 72 AS col0, 58 AS col0 +---- +15275520 +58 query I rowsort label-969 SELECT ALL NULLIF ( 66, + COUNT ( * ) / + 49 * - - ( 70 ) / - - 66 + + 12 ) AS col0 @@ -5389,8 +5443,11 @@ SELECT ALL 21 * + ( + 24 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col2" at position 0 and "CASE Int64\(33\) WHEN Int64\(43\) THEN NULL WHEN \(\- Int64\(\-21\)\) THEN Int64\(7\) END \* \(\- nullif\(\(\- \(\- coalesce\(\(\- \(\- CAST\(NULL AS Int32\)\)\), \(\- \(\- Int64\(66\)\)\)\)\)\), Int64\(44\) \+ coalesce\(Int64\(95\), Int64\(17\) \+ Int64\(\-76\)\) \* Int64\(\-90\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(83\) \* Int64\(68\) \- CASE \(\- count\(\(\- Int64\(86\)\)\)\) WHEN coalesce\(Int64\(75\), Int64\(50\)\) THEN NULL ELSE Int64\(\-68\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-27 +NULL query I rowsort SELECT 98 + - 38 AS col0 @@ -5421,8 +5478,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "Int64\(\-32\) \- Int64\(\-15\) \+ Int64\(55\) \* CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(57\)\) \+ Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 AS col1, - 32 - - 15 + + + ( + 55 ) * CAST ( NULL AS INTEGER ) + COUNT ( * ) + - + 57 + - 56 AS col1 +---- +19 +NULL query I rowsort label-1031 SELECT 52 + + 31 / - 19 @@ -5533,8 +5593,11 @@ SELECT + 17 * + 47 + - 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col1" at position 0 and "Int64\(\-67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 28 AS col1, - 67 AS col1 +---- +-28 +-67 query I rowsort SELECT + 36 + - 29 @@ -5705,8 +5768,11 @@ SELECT COALESCE ( ( + NULLIF ( 59, + COUNT ( ALL - - 15 ) * - ( + - 3 ) ) ), - C # Datafusion - Datafusion expected results: # Datafusion - Expected - 3467285 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* Int64\(22\) \+ Int64\(16\) \* \(\- Int64\(66\)\) \* Int64\(45\) \* \(\- CAST\(Int64\(73\) AS Int32\)\) \+ \(\- Int64\(\-85\)\) AS col1" at position 0 and "Int64\(89\) / Int64\(56\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-11\) \+ Int64\(\-29\) THEN Int64\(46\) \* Int64\(95\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +3467285 +NULL query I rowsort label-1084 SELECT + 66 * + 23 + - COALESCE ( + + 52, - + COUNT ( * ) + + - 68 + 78 * + - 54 ) * 32 @@ -5799,8 +5865,12 @@ NULL # Datafusion - Expected - 123 # Datafusion - Expected - 58 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-44\)\) \- Int64\(\-79\) AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + - ( - 44 ) - - 79 col2, + 58 AS col2, 52 AS col0 +---- +123 +52 +58 query II rowsort label-1102 SELECT ALL 76 / NULLIF ( - + 87, - + 75 ), + 3 AS col0 @@ -5929,8 +5999,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 8550 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(2\), Int64\(78\) \* Int64\(51\)\) AS col1" at position 0 and "Int64\(90\) \* Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COALESCE ( + 2, + 78 * + 51 ) AS col1, 90 * + 95 col1 +---- +2 +8550 query I rowsort SELECT ( - + 39 ) AS col0 @@ -6125,8 +6198,12 @@ SELECT 57 + + + 53 AS col2 # Datafusion - Expected - 2252 # Datafusion - Expected - -40 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \+ Int64\(0\) \- Int64\(67\) \+ \(\- Int64\(\-42\)\) \- \(\- Int64\(85\)\) \* \(\- Int64\(\-26\)\) AS col1" at position 0 and "Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 67 + - 0 - + + 67 + - - 42 - - + 85 * - - 26 AS col1, ( - 40 ) col1, - 41 +---- +-40 +-41 +2252 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -6185,8 +6262,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-11\)\) \+ Int64\(3\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + - 11 ) + + 3 AS col0, 51 AS col0 +---- +14 +51 query I rowsort label-1173 SELECT ALL - CASE + - 66 WHEN - CASE - 50 WHEN 91 * - ( - 84 ) + 79 THEN + ( 52 ) WHEN - ( - + AVG ( - - COALESCE ( 27, - 19 ) ) ) THEN + 22 * 88 + ( COALESCE ( + 34, + NULLIF ( - ( + SUM ( - ( - 78 ) ) ), 61 + - - 8 ), + 83 * + 83 * COUNT ( - 77 ) ) ) ELSE NULL END / + + 7 THEN NULL WHEN + 78 THEN NULL ELSE - 34 END @@ -6283,8 +6363,11 @@ SELECT + 91, 83 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col2" at position 0 and "\(\- max\(Int64\(33\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 94 AS col2, - MAX ( 33 ) AS col2 +---- +-33 +-94 query I rowsort label-1191 SELECT ALL 90 * - 1 / + 92 @@ -6339,8 +6422,11 @@ 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\(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\. +query II valuesort SELECT + - COUNT ( * ) + 47 * 41 * + 95 AS col2, 14 * - COALESCE ( + - 99, - ( ( - COUNT ( * ) ) ) ) AS col2 +---- +1386 +183064 query I rowsort SELECT - - COALESCE ( - - 87, 47 + - + 56 ) * + - 74 @@ -6644,8 +6730,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 col2, - 73 * - - COUNT ( * ) AS col2 +---- +-73 +33 query I rowsort SELECT ALL + 34 + + 58 * ( - + 31 ) AS col0 @@ -6655,8 +6744,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col1, - 4 + + 44 - - 58 + - - 69 AS col1 +---- +-1 +167 query I rowsort SELECT ALL - + 81 + + + 91 @@ -6728,14 +6820,20 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 99 * - - 20 * - COUNT ( * ) AS col2, 18 col2 +---- +18 +1980 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col1" at position 0 and "Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 55 AS col1, 4 col1 +---- +4 +55 query I rowsort label-1275 SELECT - 17 * - 74 + - 41 / - - 10 + - 4 - + SUM ( 45 ) / - COUNT ( * ) @@ -6898,8 +6996,11 @@ SELECT ALL SUM ( - 19 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) / Int64\(61\) / Int64\(\-93\) / Int64\(89\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 / + 61 / - 93 / + 89 * + COUNT ( * ) AS col1, + 60 col1 +---- +0 +60 query I rowsort SELECT + 26 + + + 70 * 48 @@ -7165,8 +7266,11 @@ SELECT DISTINCT - 21 * - - 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col0" at position 0 and "Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 AS col0, - 64 AS col0 +---- +-64 +44 query I rowsort label-1358 SELECT - - 3 + + + MAX ( ALL - 65 ) + - - 3 * + ( - COUNT ( + - 7 ) ) - 95 * + 72 AS col0 @@ -7199,8 +7303,12 @@ SELECT - 39 * + 17 - - + 66 # Datafusion - Expected - 45 # Datafusion - Expected - -93 # Datafusion - Expected - 2205 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \+ \(\- Int64\(19\)\) AS col2" at position 1 and "Int64\(35\) \* \(\- Int64\(\-63\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 45, ( - 74 ) + - + 19 col2, 35 * - - 63 AS col2 +---- +-93 +2205 +45 query I rowsort label-1363 SELECT COUNT ( ALL + 87 ) * - 58 / + 81 + + 70 * - 21 AS col2 @@ -7497,8 +7605,11 @@ SELECT ALL 59 AS col0, 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col1, 66 AS col1 +---- +66 +NULL query I rowsort SELECT - 72 + - 45 @@ -7895,8 +8006,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 84 AS col1, + 2 AS col1 +---- +2 +84 query I rowsort label-1498 SELECT 86 * 30 + 43 + + + NULLIF ( + CASE WHEN NOT + 51 IS NOT NULL THEN + 6 * + + COUNT ( * ) + + 42 - 77 ELSE NULL END, + 87 * 73 + + 13 ) / 53 AS col2 @@ -7939,8 +8053,11 @@ SELECT SUM ( DISTINCT - + 30 ) + + 8 AS col1 # 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 col2" at position 0 and "Int64\(14\) / Int64\(20\) \* \(\- Int64\(\-35\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 41 AS col2, 14 / 20 * - - 35 col2 +---- +-41 +0 query I rowsort label-1506 SELECT DISTINCT 38 * + + CAST ( + - 35 AS INTEGER ) * 78 AS col0 @@ -8378,8 +8495,11 @@ SELECT 20 + - NULLIF ( + ( + + 11 ), - 72 ) / + + 25 # 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\(24\) WHEN Int64\(36\) THEN count\(Int64\(78\)\) WHEN \(\- Int64\(\-87\)\) THEN NULL END\) \* Int64\(\-49\) \* Int64\(8\) \* Int64\(21\) \+ Int64\(\-5\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CASE 24 WHEN + + 36 THEN COUNT ( ALL + + 78 ) WHEN - - 87 THEN NULL END * - 49 * 8 * + + 21 + - 5 col0, + 97 col0 +---- +97 +NULL query I rowsort SELECT 36 * - 84 @@ -8394,8 +8514,11 @@ 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\(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\. +query II valuesort SELECT ALL + + COUNT ( * ) - + - NULLIF ( + 34, - 52 * + NULLIF ( + + 88, 39 ) * - 50 ) + 75 * - 41 * - 99 * - + 36 AS col2, - 3 AS col2 +---- +-10959265 +-3 query I rowsort label-1593 SELECT MAX ( DISTINCT + + 13 ) / 53 - COUNT ( * ) AS col1 @@ -9091,8 +9214,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 AS col0, 95 AS col0 +---- +62 +95 query I rowsort SELECT DISTINCT + + 91 * 51 + 81 - 46 * - 30 AS col0 @@ -9153,8 +9279,11 @@ SELECT 4 / - COUNT ( + 94 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2000 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* Int64\(\-50\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 * - 50 AS col1, + 97 col1 +---- +-2000 +97 query II rowsort label-1740 SELECT ALL 8 / 39, - MIN ( + + 15 ) AS col2 @@ -9635,8 +9764,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - 1338 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col1" at position 0 and "\(\- nullif\(Int64\(47\), min\(Int64\(91\)\)\)\) \+ Int64\(89\) \+ Int64\(72\) \* Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 43 AS col1, - NULLIF ( + 47, + MIN ( + 91 ) ) + 89 + 72 * 18 col1 +---- +-43 +1338 query I rowsort label-1833 SELECT DISTINCT - CASE - + ( + 16 ) WHEN + 5 * - COALESCE ( - + 70, 3 * + ( COUNT ( * ) ) - 55 ) + + 33 + - 50 / + ( - 54 * - 48 ) THEN NULL WHEN + 43 THEN NULL WHEN + 59 THEN NULL ELSE 22 + 64 END * - 55 @@ -9656,8 +9788,11 @@ SELECT ALL 92 + - + 42 + + 53 * + 62 + + 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 240 -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\(\-3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 35 AS col1, - 80 * - 3 AS col1 +---- +240 +35 query I rowsort SELECT 22 + - 56 + + 43 AS col1 @@ -9677,8 +9812,11 @@ SELECT + 59 + - - 34 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(87\)\) AS col1" at position 0 and "Int64\(\-24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 87 AS col1, - 24 AS col1 +---- +-24 +-87 query I rowsort SELECT DISTINCT 79 + + + 25 AS col1 @@ -9769,8 +9907,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * + 34 col1, 10 + + 87 AS col1 +---- +-34 +97 query I rowsort label-1859 SELECT ALL + + ( - SUM ( - 22 ) ) * COUNT ( * ) * 33 * - + COUNT ( * ) AS col1 @@ -9837,8 +9978,11 @@ SELECT DISTINCT COUNT ( - - ( 93 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 104 # Datafusion - Expected - 732 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \+ \(\- Int64\(\-78\)\) AS col1" at position 0 and "Int64\(61\) \* Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 26 + - ( - 78 ) AS col1, 61 * + 12 AS col1 +---- +104 +732 query II rowsort SELECT DISTINCT - 62 * + 72 col0, + 10 AS col2 @@ -9922,8 +10066,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 2010 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(67\) \* \(\- \(\- sum\(Int64\(30\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, + 67 * - - SUM ( ALL ( 30 ) ) AS col1 +---- +1 +2010 query I rowsort label-1887 SELECT CAST ( + - 0 AS INTEGER ) * + 68 @@ -10420,8 +10567,11 @@ SELECT 12 * + 11 * + 51 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 34 AS col1, + 39 AS col1 +---- +-34 +39 query I rowsort SELECT ALL 59 * 3 AS col0 @@ -10759,8 +10909,11 @@ NULL # 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 col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 19 AS col1, + 46 AS col1 +---- +-19 +46 query I rowsort SELECT - 48 + - 72 + + + 49 * 11 @@ -11046,8 +11199,11 @@ SELECT DISTINCT - 22 + + 88 col2, + COUNT ( - 26 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \+ Int64\(\-63\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- CASE Int64\(20\) WHEN \(\- count\(Int64\(45\)\)\) THEN NULL ELSE CAST\(NULL AS Int32\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 41 + - 63 AS col1, COUNT ( * ) / - CASE + + 20 WHEN - COUNT ( 45 ) THEN NULL ELSE CAST ( NULL AS INTEGER ) END AS col1 +---- +-22 +NULL query I rowsort label-2102 SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + 36 * - 29 * - 42 + - 62 * + 15 AS col2 @@ -11152,8 +11308,11 @@ SELECT ALL 41 * + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 51 AS col2, + 32 AS col2 +---- +32 +51 query I rowsort SELECT DISTINCT + 78 * + + 87 @@ -11173,8 +11332,11 @@ SELECT - 32 * 63 * + + 68 * - 44 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \+ Int64\(\-8\) \+ Int64\(73\) AS col0" at position 0 and "Int64\(\-23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 17 + - 8 + 73 AS col0, - 23 AS col0 +---- +-23 +82 query I rowsort label-2126 SELECT ALL - - NULLIF ( + 44, ( - 86 ) ) + - 64 + - 51 + - CAST ( - 16 AS INTEGER ) + - 12 * + 65 * + - 44 - - - 8 + + 13 + - COUNT ( * ) * - ( MAX ( - 36 ) ) / + 88 AS col2 @@ -11219,8 +11381,11 @@ SELECT DISTINCT - + 92 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col2" at position 0 and "Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 59 AS col2, 39 AS col2 +---- +39 +59 query I rowsort SELECT - 84 * + - 59 AS col0 @@ -11457,8 +11622,11 @@ SELECT CAST ( - - 61 AS INTEGER ) # 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 "min\(DISTINCT \(\- Int64\(3\)\)\) AS col2" at position 0 and "Int64\(\-86\) / Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MIN ( DISTINCT - ( + 3 ) ) AS col2, - 86 / 82 AS col2 +---- +-1 +-3 query I rowsort SELECT DISTINCT 66 * - - 88 * - 13 @@ -11673,8 +11841,11 @@ SELECT 43 - - 79 + ( 52 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "CAST\(Int64\(\-38\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 40 AS col1, ( + CAST ( - 38 AS INTEGER ) ) AS col1 +---- +-38 +40 query I rowsort label-2221 SELECT DISTINCT - MIN ( - ( + 14 ) ) @@ -11722,8 +11893,12 @@ SELECT ALL - 45 - - 94 # Datafusion - Expected - 5 # Datafusion - Expected - NULL # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-68\) AS Int32\)\) / \(\- Int64\(\-12\)\) AS col2" at position 0 and "Int64\(\-5\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - CAST ( - 68 AS INTEGER ) / - - 12 AS col2, 88 / 61 * CAST ( NULL AS INTEGER ), - 5 col2 +---- +-5 +5 +NULL query II rowsort label-2230 SELECT - 50 + + COUNT ( * ) * 14, - 7 + + 28 AS col1 @@ -11823,8 +11998,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - 259202 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(\-85\)\) AS col0" at position 0 and "Int64\(99\) \+ Int64\(71\) \* \(\- Int64\(64\)\) \* Int64\(\-57\) \- \(\- Int64\(85\)\) \- Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( DISTINCT + - 85 ) AS col0, 99 + + 71 * - + 64 * + - 57 - - + 85 - ( - 10 ) AS col0 +---- +-85 +259202 query I rowsort label-2248 SELECT COUNT ( * ) + - MIN ( - + 27 ) @@ -11921,8 +12099,11 @@ 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\(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\. +query II valuesort SELECT - NULLIF ( + - COUNT ( * ), + ( + 95 ) ) AS col1, 20 + + - 86 + 31 + + 32 + 85 + + + 76 * - 98 + COUNT ( * ) * + COUNT ( * ) / 40 * 3 AS col1 +---- +-7366 +1 query I rowsort label-2266 SELECT ALL - - COUNT ( * ) * - 32 @@ -11973,8 +12154,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 24 + MIN ( - 4 ) AS col1, COALESCE ( + + COUNT ( * ), 89 ) + + + 67 + + COUNT ( * ) * + 85 col1 +---- +153 +20 query I rowsort SELECT DISTINCT 42 * + 70 AS col2 @@ -12168,8 +12352,11 @@ SELECT DISTINCT 12 + + 73 * - - 37 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 36 -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\) \- Int64\(\-67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 AS col1, - 31 - - 67 AS col1 +---- +36 +86 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -12597,8 +12784,11 @@ SELECT + + 10 + + 18 + - 2 + 40 * + + COALESCE ( 53, + ( - 10 ), + 45 / COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 96 AS col2, + 6 AS col2 +---- +6 +96 query I rowsort label-2392 SELECT + - ( - 82 ) + ( + CAST ( + 30 AS INTEGER ) ) @@ -12670,8 +12860,11 @@ 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 count\(\*\)\) \+ Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 55 AS col1, 8 * COALESCE ( + + 43, COUNT ( * ) ) + + 1 AS col1 +---- +345 +55 query I rowsort label-2406 SELECT + COUNT ( * ) * - + 82 + + ( 87 ) - - - 83 * + 24 * + - 55 - + 27 * - 39 * + COUNT ( * ) @@ -12697,8 +12890,11 @@ 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\(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\. +query II valuesort SELECT - 36 * + - COUNT ( * ) AS col2, 22 * + 12 AS col2 +---- +264 +36 query I rowsort label-2411 SELECT + SUM ( ALL 21 ) AS col1 @@ -13008,8 +13204,11 @@ SELECT 51 * 63 + + MAX ( DISTINCT - 50 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(89\)\) AS col0" at position 0 and "\(\- CAST\(CASE Int64\(38\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- Int64\(\-89\)\)\) \- Int64\(54\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Float64\)\) \* Int64\(51\) \+ Int64\(47\) THEN Int64\(28\) WHEN Int64\(94\) THEN \(\- Int64\(33\)\) ELSE NULL END AS Int32\)\) \* Int64\(\-96\) / Int64\(65\) \+ Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-89 +NULL query I rowsort SELECT 69 + + 46 + 70 * 78 * - 25 * + ( - 38 ) @@ -13055,8 +13254,11 @@ SELECT ALL SUM ( DISTINCT - - 87 ) + 24 AS col1 # 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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 84 AS col1, 7 AS col1 +---- +-84 +7 query II rowsort SELECT ALL 37 AS col1, 96 + + - 91 AS col0 @@ -13114,8 +13316,11 @@ SELECT DISTINCT - 16 - 4 * - 67 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(81\)\) AS col0" at position 0 and "Int64\(\-38\) \+ \(\- nullif\(Int64\(\-45\), Int64\(99\)\)\) \+ Int64\(68\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 81 AS col0, - 38 + - NULLIF ( - 45, + + 99 ) + + 68 * COUNT ( * ) col0 +---- +-81 +75 query I rowsort label-2489 SELECT ALL - COUNT ( DISTINCT - - 36 ) @@ -13131,8 +13336,12 @@ 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\(1\)\) AS count\(\*\) \- \(\- Int64\(98\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 2 - - - 48 col1, COUNT ( * ) - - + 98 AS col1, - 68 AS col0 +---- +-50 +-68 +99 query I rowsort label-2492 SELECT - + ( - CAST ( 2 AS INTEGER ) ) AS col2 @@ -13782,8 +13991,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -9408 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \* Int64\(\-96\) \* Int64\(\-49\) 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 II valuesort SELECT DISTINCT + - 2 * - 96 * - 49 AS col2, - COUNT ( + + 30 ) AS col2 +---- +-1 +-9408 query I rowsort SELECT - 70 + + + 13 @@ -13909,8 +14121,11 @@ 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\(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\. +query II valuesort SELECT ALL - + 82 * + COUNT ( * ) + - - 85 * + 56 * - - 97 + + - 42 col0, - 65 col0 +---- +-65 +461596 query I rowsort label-2641 SELECT - + 98 / - - 79 + 70 @@ -14233,8 +14448,11 @@ SELECT ALL 58 + 24 * 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 20 AS col1, COUNT ( * ) AS col1 +---- +1 +20 query I rowsort label-2701 SELECT ALL + COUNT ( * ) + 48 AS col2 @@ -14515,8 +14733,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * 95 + - + 77 + - COALESCE ( - 95, - + COUNT ( 76 ) ) + + 61 AS col2, + 50 AS col2 +---- +174 +50 query III rowsort label-2755 SELECT DISTINCT 10 AS col0, ( - COUNT ( * ) ), CAST ( + 54 AS INTEGER ) * + 79 + + COUNT ( * ) + + 35 AS col1 @@ -14755,8 +14976,11 @@ SELECT ALL + + 51 * - 67 - - 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 782 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \+ count\(DISTINCT CAST\(Int64\(\-95\) AS Int32\)\) \+ Int64\(48\) \* Int64\(\-80\) / \(\- count\(\(\- Int64\(87\)\)\)\) \- Int64\(23\) \+ Int64\(\-35\) / Int64\(21\) \+ Int64\(13\) \+ \(\- \(\- Int64\(\-57\)\)\) \+ Int64\(\-63\) \- count\(Int64\(1\)\) AS count\(\*\) \* \(\- sum\(Int64\(73\)\)\) / Int64\(13\) \+ \(\- Int64\(32\)\) \* Int64\(92\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +69 +782 query II rowsort label-2800 SELECT 26, 82 + + 65 + NULLIF ( + CAST ( NULL AS INTEGER ), + - 63 / 99 ) * 11 * ( + 52 ) + + - ( - 68 ) AS col2 @@ -15325,8 +15549,11 @@ SELECT ALL 46 * + 44 + 52 * - - 96 + - + COUNT ( * ) + - 39 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 159 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \- Int64\(11\) \+ max\(Int64\(88\)\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 82 - 11 + + MAX ( + 88 ) AS col1, + 53 AS col1 +---- +159 +53 query I rowsort label-2909 SELECT ALL MAX ( ALL - - 21 ) * 6 col2 @@ -15372,8 +15599,11 @@ SELECT COUNT ( * ) - + 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 97 col1, 47 col1 +---- +47 +97 query I rowsort SELECT ALL + 18 * 66 AS col0 @@ -15545,8 +15775,11 @@ SELECT ( 28 ) + + + 34 + 53 * 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6930 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(90\) AS col1" at position 0 and "CAST\(Int64\(\-74\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 77 * 90 AS col1, + CAST ( ( - 74 ) AS INTEGER ) AS col1 +---- +-74 +6930 query I rowsort SELECT ALL 12 + + 33 @@ -15657,8 +15890,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 45 AS col0, - COUNT ( * ) AS col0 +---- +-1 +-45 query II rowsort label-2972 SELECT DISTINCT - + COUNT ( * ) AS col1, + 69 * 77 AS col0 @@ -15996,8 +16232,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) col1, 6 AS col1 +---- +-1 +6 query I rowsort label-3035 SELECT - 4 * 85 * + + CAST ( NULL AS INTEGER ) @@ -16023,8 +16262,11 @@ SELECT + 86 + 95 + + 16 AS col0, 96 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 col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 col2, + 1 col2 +---- +1 +35 query I rowsort SELECT ALL - - 31 * 45 @@ -16086,8 +16328,11 @@ SELECT + - COUNT ( ALL + - 88 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -21919 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(47\), \(\- Int64\(54\)\) \+ Int64\(0\) / min\(Int64\(\-45\)\) \+ \(\- Int64\(61\)\), CAST\(NULL AS Int32\) \* count\(Int64\(\-46\)\) \+ Int64\(\-23\)\)\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(1\) \+ Int64\(\-50\) \+ Int64\(75\) \+ Int64\(\-95\) \* Int64\(21\) \* Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( + + 47, - + 54 + 0 / MIN ( ALL + - 45 ) + - ( 61 ), CAST ( NULL AS INTEGER ) * + COUNT ( ALL - 46 ) + + - 23 ) / + CAST ( NULL AS INTEGER ) AS col1, + 1 + ( - 50 ) + 75 + - 95 * + 21 * 11 AS col1 +---- +-21919 +NULL query I rowsort SELECT - 22 * - + 96 * 20 + - 22 + + + 30 * 33 @@ -16347,8 +16592,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, 90 AS col1 +---- +-1 +90 query II rowsort SELECT DISTINCT + 79 AS col1, + 48 + - 65 + 53 @@ -16804,8 +17052,11 @@ NULL # 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 "Int64\(29\) AS col0" at position 0 and "Int64\(62\) \- Int64\(\-8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 AS col0, 62 - + - 8 AS col0 +---- +29 +70 query I rowsort label-3186 SELECT DISTINCT + 21 + COUNT ( * ) * + + 65 AS col2 @@ -17703,8 +17954,11 @@ SELECT + 90 / - 87 + - 65 - 50 * - 17 + 18 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 6 AS col1, 33 AS col1 +---- +33 +6 query I rowsort label-3360 SELECT + - CASE + COUNT ( * ) WHEN + ( - 60 ) THEN NULL WHEN + 41 THEN - COUNT ( DISTINCT 60 ) END + 93 AS col2 @@ -18069,8 +18323,11 @@ SELECT 90 * 2 + - 37 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 1132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col2" at position 0 and "Int64\(44\) \+ Int64\(64\) \* \(\- Int64\(\-17\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 83 AS col2, 44 + + 64 * - - 17 AS col2 +---- +-83 +1132 query I rowsort label-3430 SELECT DISTINCT - COALESCE ( - + 68, + - 56, - - MIN ( - - 60 ) * 89 ) AS col2 @@ -18231,8 +18488,11 @@ SELECT COUNT ( * ) - NULLIF ( + + 34, + 63 * 71 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- Int64\(85\)\), \(\- avg\(Int64\(\-73\)\)\)\)\) AS col0" at position 0 and "Int64\(3\) \* Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - + NULLIF ( - + 85, - AVG ( ALL - 73 ) ) AS col0, 3 * 49 AS col0 +---- +147 +85 query I rowsort SELECT - ( 50 ) + 35 @@ -18321,8 +18581,12 @@ SELECT ALL - 29 * - 63 + - 19 + - 37 # Datafusion - Expected - 46 # Datafusion - Expected - 7 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(46\) AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(20\) \+ Int64\(14\) \+ \(\- Int64\(77\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(20\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + CAST ( 46 AS INTEGER ) AS col0, + 7 AS col2, COUNT ( * ) * + 20 + 14 + - + 77 + COUNT ( * ) * 20 AS col0 +---- +-23 +46 +7 query I rowsort label-3478 SELECT - 88 + - + CAST ( - + 46 AS INTEGER ) AS col2 @@ -18513,8 +18777,11 @@ SELECT DISTINCT + 25 * - ( - 14 ) + - - 27 + - 13 * + + 48 * 95 + 15 / + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) / Int64\(43\) / Int64\(54\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 23 / 43 / + 54 col2, 49 col2 +---- +0 +49 query II rowsort label-3515 SELECT ALL + 31, - CAST ( - - ( - 57 ) AS INTEGER ) AS col2 @@ -18874,8 +19141,11 @@ 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\(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\. +query II valuesort SELECT + ( + COUNT ( * ) ) * - ( 54 ) * - 0 AS col0, 36 * - - 30 AS col0 +---- +0 +1080 query I rowsort label-3585 SELECT + COUNT ( + - 24 ) @@ -19396,8 +19666,12 @@ SELECT ALL + ( + 41 ) + + 35 AS col0 # Datafusion - Expected - 2080 # Datafusion - Expected - 46 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* min\(Int64\(80\)\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 26 * + MIN ( ALL + 80 ) AS col1, 46 AS col1, + 19 + + 58 +---- +2080 +46 +77 query II rowsort label-3683 SELECT ALL - 65, CAST ( NULL AS INTEGER ) / - - COUNT ( * ) AS col2 @@ -20035,8 +20309,11 @@ SELECT DISTINCT 41 + + 21 + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 101 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \+ 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 II valuesort SELECT ALL 76 + + + 25 AS col0, 72 AS col0 +---- +101 +72 query I rowsort SELECT 95 * + 6 * 93 AS col1 @@ -20191,8 +20468,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, 71 col0 +---- +1 +71 query I rowsort SELECT + 92 + - ( + 36 ) AS col1 @@ -20212,8 +20492,11 @@ SELECT - 37 * - COUNT ( * ) + + + COUNT ( * ) / + ( - MIN ( 78 ) ) * - 25 + + MA # 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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 59 col1, - 46 AS col1 +---- +-46 +59 query I rowsort label-3838 SELECT - 56 / + 21 @@ -20442,8 +20725,11 @@ 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\(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\. +query II valuesort SELECT + + COUNT ( * ) * + 83 AS col0, 79 col0 +---- +79 +83 query I rowsort label-3881 SELECT - ( ( COUNT ( * ) ) ) col0 @@ -20790,8 +21076,11 @@ SELECT DISTINCT 14 - + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - -132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col2" at position 0 and "Int64\(6\) \* \(\- count\(\(\- Int64\(91\)\)\)\) \* Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 93 AS col2, + 6 * - COUNT ( - + 91 ) * + 22 AS col2 +---- +-132 +93 query I rowsort label-3948 SELECT - 63 - 26 + - 44 + COUNT ( * ) + + 35 * + 5 + + - COUNT ( + 27 ) * 81 AS col2 @@ -20801,8 +21090,11 @@ SELECT - 63 - 26 + - 44 + COUNT ( * ) + + 35 * + 5 + + - COUNT ( + 27 ) * 81 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "CAST\(Int64\(97\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 16 AS col1, CAST ( 97 AS INTEGER ) AS col1 +---- +16 +97 query I rowsort label-3950 SELECT + CAST ( - 10 AS INTEGER ) AS col1 @@ -20897,8 +21189,11 @@ SELECT - 78 * - + 70 * - - 4 + - - 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 80 ) AS col2, 20 AS col2 +---- +20 +80 query I rowsort SELECT + COALESCE ( 80, + 59 ) @@ -21077,8 +21372,11 @@ SELECT ALL ( COALESCE ( + - 50, - + ( - 44 ), ( + + 42 ) / 18 - 90 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(1\) \* Int64\(\-24\) / Int64\(\-55\) \- \(\- CAST\(Int64\(57\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) col1, + 1 * - 24 / - 55 - - CAST ( 57 AS INTEGER ) AS col1 +---- +1 +57 query I rowsort label-4003 SELECT - COUNT ( * ) * - - 48 * - 86 AS col0 @@ -21125,8 +21423,11 @@ SELECT ALL - 9, - 86 + 9 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 1870 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(22\) \* Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 62 AS col2, 22 * 85 AS col2 +---- +1870 +62 query I rowsort label-4012 SELECT DISTINCT - 59 - - 96 * + 4 / + COUNT ( * ) AS col0 @@ -21858,8 +22159,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col2, - MIN ( - - 83 ) * 75 - - - 70 AS col2 +---- +-1 +-6295 query I rowsort SELECT ALL 74 + - 70 @@ -22122,8 +22426,11 @@ SELECT ( - MIN ( ALL + 80 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(21\) \* CAST\(NULL AS Int32\) \* Int64\(27\) AS col1" at position 0 and "nullif\(\(\- \(\- Int64\(13\)\)\), \(\- Int64\(\-53\)\)\) \* \(\- Int64\(72\)\) \- CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 42 * + + 21 * CAST ( NULL AS INTEGER ) * 27 AS col1, + NULLIF ( - - ( 13 ), - - 53 ) * - + 72 - CAST ( NULL AS INTEGER ) AS col1 +---- +NULL +NULL query I rowsort label-4199 SELECT DISTINCT COUNT ( * ) * + CAST ( NULL AS INTEGER ) * COALESCE ( - - 36, - 31 + 0 / - + COUNT ( * ) + - - COUNT ( * ) + COUNT ( * ), + 30 * - 52, + - 55 ) + + - COUNT ( * ) + + 89 / - 71 AS col0 @@ -22184,8 +22491,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 132608 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \* Int64\(74\) \* Int64\(\-64\) AS col2" at position 0 and "max\(CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 28 * 74 * + - 64 AS col2, MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 +---- +132608 +NULL query I rowsort label-4211 SELECT - CAST ( NULL AS INTEGER ) - 87 @@ -22345,8 +22655,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 31 AS col2, - 57 - COUNT ( * ) * + 93 AS col2 +---- +-150 +-31 query II rowsort label-4242 SELECT ALL 63 + + 23 AS col0, CAST ( + + NULLIF ( - 66, COUNT ( * ) ) AS INTEGER ) / + ( - 51 ) * + COUNT ( * ) AS col2 @@ -22873,8 +23186,11 @@ SELECT + 30 AS col1, 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "CASE Int64\(52\) WHEN Int64\(60\) THEN \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-86\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 77 AS col0, CASE + 52 WHEN 60 THEN + - CAST ( NULL AS INTEGER ) * ( - 86 ) END AS col0 +---- +77 +NULL query I rowsort label-4343 SELECT DISTINCT + + CAST ( - 81 AS INTEGER ) @@ -22945,8 +23261,11 @@ SELECT + 99 * 37 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- nullif\(Int64\(25\), Int64\(6\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 16 / COUNT ( * ) col1, - NULLIF ( 25, 6 ) AS col1 +---- +-25 +16 query I rowsort label-4357 SELECT - 22 / + 92 * + 13 * - - MAX ( DISTINCT - 47 ) @@ -23023,8 +23342,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 + 28 col0, ( - COUNT ( * ) ) AS col0 +---- +-1 +40 query I rowsort label-4372 SELECT CASE 50 WHEN - MAX ( ALL 91 ) THEN - 99 * + + ( - 3 ) ELSE NULL END * - 5 @@ -23500,8 +23822,11 @@ SELECT - 15 * 61 / + COALESCE ( - + 43, + 12 - 3, + - 50 + + 89 + COUNT ( + + 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1102 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) \* \(\- Int64\(80\)\) \+ Int64\(62\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 13 * - + ( + 80 ) + 62 AS col0, 70 AS col0 +---- +1102 +70 query II rowsort SELECT - 39 AS col1, 52 @@ -23517,8 +23842,11 @@ SELECT DISTINCT + 86 * 41 # 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 "Int64\(\-12\) AS col2" at position 0 and "Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 12 AS col2, - 2 AS col2 +---- +-12 +-2 query II rowsort SELECT ALL 75 * + - 55, + 3 AS col1 @@ -23575,8 +23903,11 @@ SELECT ALL + ( - 36 ) + - + SUM ( DISTINCT + 5 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \+ Int64\(\-18\) AS col1" at position 0 and "Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 4 + - 18 AS col1, - 94 AS col1 +---- +-22 +-94 query I rowsort SELECT DISTINCT + 7 * - 76 @@ -23851,8 +24182,11 @@ SELECT + 1 * + COUNT ( * ) * 98, ( - - 89 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "Int64\(\-23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 col0, - 23 col0 +---- +-23 +95 query I rowsort SELECT + COALESCE ( - 80, 14, - 23 * - + 73 + - 47 + - + 3 - 35 ) @@ -23913,8 +24247,11 @@ SELECT 11 * + 92 * - - 13 # 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\(17\) / Int64\(71\) AS col2" at position 0 and "Int64\(56\) / min\(Int64\(\-76\)\) \* \(\- Int64\(\-8\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 / + 71 col2, 56 / MIN ( ALL - 76 ) * - - 8 AS col2 +---- +0 +0 query I rowsort SELECT ALL 86 + + - 44 @@ -24173,8 +24510,11 @@ SELECT ALL - SUM ( ALL - 7 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16835000 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* Int64\(\-26\) \* Int64\(70\) \* Int64\(37\) \* \(\- coalesce\(Int64\(25\), Int64\(82\), Int64\(20\)\)\) AS col0" at position 0 and "sum\(Int64\(59\)\) \- Int64\(\-6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 10 * - 26 * 70 * + + 37 * - COALESCE ( + + 25, + 82, 20 ) AS col0, SUM ( ( ( 59 ) ) ) - - 6 AS col0 +---- +16835000 +65 query I rowsort label-4591 SELECT ALL - + COUNT ( * ) * - 91 * - 20 + + CAST ( NULL AS INTEGER ) AS col0 @@ -24370,8 +24710,11 @@ SELECT + 57 + + - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 4050 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(2\)\) AS col0" at position 0 and "Int64\(94\) \+ Int64\(92\) \* Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 2 AS col0, 94 + + 92 * 43 AS col0 +---- +-2 +4050 query II rowsort label-4628 SELECT ALL + COUNT ( * ), + ( 21 ) AS col1 @@ -24387,8 +24730,11 @@ SELECT ALL NULLIF ( - - 3, + - 95 ) * + 86 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col2" at position 0 and "Int64\(\-9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 49 AS col2, - 9 AS col2 +---- +-49 +-9 query II rowsort SELECT - 43 AS col1, + ( - 8 ) @@ -24601,8 +24947,11 @@ SELECT MIN ( ALL + 28 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2002 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* Int64\(91\) \* Int64\(11\) AS col0" at position 0 and "Int64\(\-72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 2 * 91 * + + 11 col0, - 72 AS col0 +---- +-72 +2002 query I rowsort label-4672 SELECT MIN ( DISTINCT 84 ) AS col0 @@ -24612,8 +24961,11 @@ SELECT MIN ( DISTINCT 84 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(93\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col0, 93 / + COUNT ( * ) AS col0 +---- +1 +93 query II rowsort label-4674 SELECT ALL 96 + - - 11 * - 26 AS col1, - SUM ( ALL - + 65 ) + 82 + 62 @@ -25267,8 +25619,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 35 + 38 AS col0, - COUNT ( * ) AS col0 +---- +-1 +3 query I rowsort label-4798 SELECT + 95 * + - NULLIF ( - - 61, - - COUNT ( * ) ) + - + ( - COUNT ( * ) ) + - - 85 - - 97 * - 83 + + ( - 73 ) - + 73 / - 47 + - COALESCE ( + + 81, + 63, SUM ( + - 82 ) * 10 + - COUNT ( * ) ) + - 61 AS col2 @@ -25369,8 +25724,11 @@ SELECT - ( - 93 ) + - 48, + 94 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "Int64\(\-30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 78 AS col0, - 30 AS col0 +---- +-30 +78 query I rowsort label-4817 SELECT DISTINCT CASE + 32 WHEN + + 94 THEN - + 98 * - 8 + - - COUNT ( * ) WHEN - + 29 + + + COUNT ( * ) + COUNT ( * ) * 60 THEN NULL END * - 57 AS col2 @@ -25402,8 +25760,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 98 AS col2, + ( - COUNT ( * ) ) AS col2 +---- +-1 +-98 query I rowsort SELECT + 13 + - 28 @@ -25603,8 +25964,11 @@ SELECT ALL - COALESCE ( + - 53, - - COUNT ( * ), + - 71 * + - 55 / - 51 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2320 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(17\) AS col2" at position 0 and "Int64\(80\) \* Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) * + 17 AS col2, 80 * + 29 AS col2 +---- +2320 +NULL query I rowsort SELECT 15 * + 79 + + 55 + - + ( - 84 ) + - - 54 / 7 / + 85 * - 82 + + CASE + - 14 WHEN + + 85 THEN 89 ELSE NULL END * - 79 + + 57 + - + 15 AS col1 @@ -26138,8 +26502,11 @@ SELECT DISTINCT 57 + - - 59 - + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col0" at position 0 and "Int64\(96\) \+ \(\- CAST\(Int64\(62\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 AS col0, 96 + + - CAST ( + 62 AS INTEGER ) AS col0 +---- +34 +6 query II rowsort SELECT + 59 AS col2, 58 + 34 @@ -26601,8 +26968,11 @@ SELECT ALL 76 * - COALESCE ( - COUNT ( * ), 2 * - 34 + + 20 ) + - MAX ( 55 + - 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 851 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* \(\- Int64\(\-34\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(23\) \+ \(\- Int64\(\-47\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 25 * - - 34 + + COUNT ( * ) AS col0, 23 + - - 47 AS col0 +---- +70 +851 query I rowsort SELECT DISTINCT + ( + ( + NULLIF ( + 50, 92 ) ) ) @@ -26651,8 +27021,11 @@ SELECT + 64 AS col1, 82 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ \(\- Int64\(34\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 99 AS col2, - CAST ( NULL AS INTEGER ) + - + 34 AS col2 +---- +-99 +NULL query II rowsort label-5066 SELECT ALL COUNT ( * ), 43 * - 49 AS col2 @@ -26919,8 +27292,11 @@ SELECT 65 + - 42 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2614 # Datafusion - Expected - -736 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) \+ Int64\(27\) \* Int64\(\-94\) AS col1" at position 0 and "Int64\(46\) \* Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 76 + + 27 * + - 94 AS col1, 46 * - 16 col1 +---- +-2614 +-736 query I rowsort label-5115 SELECT DISTINCT + 22 + + 55 * + COUNT ( * ) @@ -26977,8 +27353,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 * - COUNT ( - - 48 ) - - - 48 * + 55 AS col2, - ( COUNT ( * ) ) AS col2 +---- +-1 +-2640 query II rowsort label-5126 SELECT DISTINCT - - ( + CAST ( NULL AS INTEGER ) ), ( 19 ) * 30 AS col2 @@ -27040,8 +27419,11 @@ SELECT DISTINCT 91 + - - MAX ( 80 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 74 AS col1, + CAST ( NULL AS INTEGER ) col1 +---- +74 +NULL query I rowsort SELECT DISTINCT 67 + + 51 col1 @@ -27090,8 +27472,11 @@ SELECT - MIN ( + 41 ) AS col1 # 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 "Int64\(96\) AS col1" at position 0 and "Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 96 AS col1, - 60 AS col1 +---- +-60 +96 query I rowsort label-5147 SELECT DISTINCT 44 + + 18 + + + COUNT ( * ) * COUNT ( * ) - + ( + - 1 ) @@ -27272,8 +27657,11 @@ SELECT DISTINCT ( - 6 ), + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -132 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \- Int64\(71\) AS col1" at position 0 and "Int64\(23\) \- Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 61 - + + 71 col1, 23 - 55 AS col1 +---- +-132 +-32 query I rowsort label-5182 SELECT - 78 / - + 78 @@ -27345,8 +27733,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-53\)\) AS col1" at position 0 and "Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - - 53 ) AS col1, - 43 AS col1 +---- +-43 +53 query I rowsort label-5196 SELECT - CAST ( + SUM ( DISTINCT 18 ) AS INTEGER ) AS col2 @@ -27432,8 +27823,11 @@ SELECT COALESCE ( - 47, + ( 63 ), - + 63 ), + ( + - 88 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 850 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "Int64\(34\) \* Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 col1, 34 * + 25 AS col1 +---- +17 +850 query I rowsort SELECT + 61 + - ( - ( ( + - 67 ) ) ) AS col0 @@ -28043,8 +28437,11 @@ SELECT - 2 * - + 70 # 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 "Int64\(54\) \+ Int64\(\-23\) \+ Int64\(92\) AS col0" at position 0 and "Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 54 + - 23 + 92 AS col0, - 91 AS col0 +---- +-91 +123 query I rowsort label-5329 SELECT DISTINCT 78 / - 9 AS col0 @@ -28472,8 +28869,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col0, - 30 + - MIN ( ALL + 54 ) AS col0 +---- +-1 +-84 query I rowsort SELECT + ( - 23 ) * 98 col0 @@ -28562,8 +28962,11 @@ SELECT ALL - MAX ( 93 ) * + 66 - - 63 + - 97 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6674 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* \(\- nullif\(Int64\(\-94\), \(\- Int64\(62\)\) \+ Int64\(0\) \+ Int64\(\-81\)\)\) AS col2" at position 0 and "Int64\(\-14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 71 * - NULLIF ( + - 94, - + 62 + + - 0 + - 81 ) AS col2, - 14 col2 +---- +-14 +6674 query I rowsort label-5427 SELECT DISTINCT + - 68 * + 30 - + 36 + + CAST ( NULL AS INTEGER ) + 26 + + 32 * + COUNT ( * ) col2 @@ -28791,8 +29194,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- avg\(Int64\(57\)\)\) \* Int64\(40\) \* \(\- \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(30\) THEN NULL WHEN Int64\(\-22\) \* count\(Int64\(7\)\) THEN \(\- Int64\(\-11\)\) \* Int64\(\-89\) \+ Int64\(\-30\) \+ Int64\(82\) WHEN Int64\(71\) THEN NULL END\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +-95 +NULL query I rowsort SELECT DISTINCT 27 + - + 52 AS col1 @@ -28981,8 +29387,11 @@ SELECT + 77 * - + 47 + + CAST ( - - 61 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 881 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \+ \(\- \(\- sum\(DISTINCT Int64\(41\)\)\)\) \+ \(\- CAST\(NULL AS Float64\)\) AS col2" at position 0 and "Int64\(16\) \* sum\(Int64\(51\)\) \+ Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL 38 + - - SUM ( DISTINCT + 41 ) + + - CAST ( NULL AS FLOAT8 ) AS col2, + 16 * SUM ( ALL + 51 ) + + + 65 AS col2 +---- +881 +NULL query II rowsort label-5506 SELECT 93 - 53, - COUNT ( * ) + + 69 AS col1 @@ -29552,8 +29961,11 @@ 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\(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\. +query II valuesort SELECT ALL - + COUNT ( * ) + 30 AS col0, - COUNT ( DISTINCT + + 89 ) - 24 col0 +---- +-25 +29 query I rowsort SELECT 98 * ( 49 ) + 98 - - 91 - + 25 - + 79 * + 87 AS col1 @@ -29789,8 +30201,11 @@ SELECT + 25 / + + ( + 96 ) * 13, + 64 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 32 AS col1, COUNT ( * ) AS col1 +---- +1 +32 query I rowsort SELECT - 39 + - 60 + COALESCE ( 61, - 10 ) + - ( 60 ) * + 46 @@ -29805,8 +30220,11 @@ SELECT ALL MIN ( + 37 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -838 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "Int64\(13\) \* \(\- Int64\(69\)\) \+ Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 17 AS col1, 13 * - + 69 + ( + 59 ) AS col1 +---- +-838 +17 query I rowsort SELECT - 66 + + - 50 col0 @@ -29934,8 +30352,11 @@ SELECT 48 * + - 59 + 81 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 "max\(Int64\(\-45\)\) 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 II valuesort SELECT DISTINCT + MAX ( - 45 ) AS col0, - COUNT ( 80 ) AS col0 +---- +-1 +-45 query I rowsort label-5686 SELECT ALL + CAST ( - 41 AS INTEGER ) @@ -29945,8 +30366,11 @@ SELECT ALL + CAST ( - 41 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-85\)\)\) AS col1" at position 0 and "Int64\(\-44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - MIN ( - 85 ) AS col1, - 44 col1 +---- +-44 +85 query I rowsort SELECT + + 31 + + 67 + - 42 @@ -30541,8 +30965,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - -2765 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col0" at position 0 and "Int64\(\-79\) \* \(\- Int64\(\-35\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - 58 ) AS col0, - 79 * - - 35 AS col0 +---- +-2765 +-58 query I rowsort label-5801 SELECT + - CASE + 58 WHEN 56 * + 15 + + - 94 + - COALESCE ( - MIN ( ALL + - CAST ( NULL AS INTEGER ) ), 43 ) / 52 THEN NULL WHEN - - 50 / - 60 + - 87 THEN + ( + 69 ) + MAX ( ALL - + 79 ) ELSE NULL END + - 17 @@ -30792,14 +31219,20 @@ SELECT DISTINCT 59 * CAST ( + 27 AS INTEGER ) / + 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7540 # Datafusion - Expected - 4400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \+ \(\- max\(Int64\(2\)\)\) \+ min\(Int64\(\-99\)\) \* \(\- min\(Int64\(76\)\)\) 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 II valuesort SELECT ALL 18 + - MAX ( 2 ) + + + MIN ( - 99 ) * - MIN ( ALL + 76 ) AS col2, 50 * + 88 AS col2 +---- +4400 +7540 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2493 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \+ \(\- Int64\(\-72\)\) \* Int64\(33\) \+ \(\- Int64\(\-54\)\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 63 + - - 72 * 33 + - - 54 AS col0, 31 AS col0 +---- +2493 +31 query I rowsort label-5849 SELECT + SUM ( + - 7 ) * 30 col0 @@ -31216,8 +31649,11 @@ SELECT + + 22 * + CAST ( MAX ( DISTINCT + 75 ) AS INTEGER ) - + - 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col0" at position 0 and "Int64\(\-61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 10 col0, - 61 col0 +---- +-61 +10 query II rowsort label-5929 SELECT 99, + 77 / - - 29 - - - 6 AS col0 @@ -31352,8 +31788,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) - + MIN ( ALL - + 62 ) / + 13 + + + 10 col2, COUNT ( * ) / 67 / - + 94 AS col2 +---- +0 +15 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -31452,8 +31891,11 @@ SELECT ALL 62 + + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CASE \(\- \(\- CAST\(NULL AS Int32\)\)\) WHEN Int64\(78\) THEN Int64\(\-20\) \+ Int64\(67\) ELSE Int64\(25\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, CASE - - CAST ( NULL AS INTEGER ) WHEN 78 THEN - 20 + + 67 ELSE + 25 * ( - + COUNT ( * ) ) END AS col0 +---- +-1 +-25 query II rowsort SELECT 10 col1, + 76 @@ -31511,8 +31953,11 @@ SELECT - 30 AS col0, - MAX ( DISTINCT CAST ( - 36 AS INTEGER ) ) * + - 91 + ( + # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(98\)\)\) \- Int64\(94\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - + 98 ) - + 94 AS col0, 4 AS col0 +---- +4 +4 query I rowsort label-5984 SELECT COALESCE ( + 8, - - 34 * + COUNT ( * ) - + 26 ) * + ( - COUNT ( * ) ) AS col2 @@ -31553,8 +31998,11 @@ SELECT + 59 + - ( COUNT ( * ) ) * - 72 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - -1971 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col1" at position 0 and "CAST\(\(\- coalesce\(CAST\(NULL AS Int32\), \(\- Int64\(\-73\)\), Int64\(65\)\)\) AS Int32\) \* Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 44 AS col1, CAST ( - COALESCE ( + + CAST ( NULL AS INTEGER ), - - 73, 65 ) AS INTEGER ) * + 27 col1 +---- +-1971 +-44 query I rowsort label-5992 SELECT ALL CAST ( + + 92 AS INTEGER ) @@ -31981,8 +32429,11 @@ SELECT + 62 * + + 7 * - 18 * - COALESCE ( - 32, - NULLIF ( - + 80, + - 79 ) * 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "Int64\(57\) \+ Int64\(69\) \+ Int64\(\-24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 74 col2, 57 + 69 + - 24 AS col2 +---- +102 +74 query I rowsort label-6074 SELECT DISTINCT + ( CASE MAX ( - ( - + 37 ) ) WHEN COUNT ( * ) * + COUNT ( * ) THEN NULL ELSE 50 * + + 27 END ) @@ -32251,8 +32702,11 @@ SELECT MAX ( - + 57 ) - + 1 + + 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col2" at position 0 and "Int64\(\-27\) \+ min\(Int64\(48\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 AS col2, - 27 + + MIN ( + 48 ) AS col2 +---- +-81 +21 query I rowsort label-6125 SELECT DISTINCT MAX ( DISTINCT 58 ) @@ -32288,8 +32742,11 @@ 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\(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\. +query II valuesort SELECT ALL 72 + 92 + COALESCE ( + 31, + - COUNT ( * ) * + 25, + 64 ) + - 8 * 14 AS col1, 94 AS col1 +---- +83 +94 query II rowsort SELECT DISTINCT 7 AS col0, - ( + 83 ) @@ -32778,8 +33235,11 @@ SELECT DISTINCT COALESCE ( + 76, 96 + - 53 * + 14, + - MIN ( ALL 36 ) / + - 16 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -139 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col0" at position 0 and "\(\- Int64\(85\)\) \+ Int64\(\-54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 9 AS col0, - ( 85 ) + - 54 AS col0 +---- +-139 +9 query I rowsort SELECT ALL 77 * - + 91 @@ -33300,8 +33760,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -192 # Datafusion - Expected - -3654 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \* Int64\(\-48\) AS col2" at position 0 and "Int64\(58\) \* Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4 * + - 48 AS col2, + 58 * - 63 AS col2 +---- +-192 +-3654 query I rowsort SELECT DISTINCT + + 76 + - - 18 @@ -33327,8 +33790,11 @@ SELECT - 95 * - - ( + 21 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) / 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 II valuesort SELECT ALL 34 / + + 87 AS col1, - 76 col1 +---- +-76 +0 query I rowsort SELECT ALL 39 - 81 @@ -33380,8 +33846,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-51\) \* Int64\(0\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) * - 51 * + 0 AS col1, + COUNT ( * ) + + + 51 AS col1 +---- +52 +NULL query II rowsort label-6340 SELECT + 56 / + CAST ( NULL AS INTEGER ) + - - COUNT ( * ), CAST ( NULL AS INTEGER ) * 44 @@ -33603,8 +34072,12 @@ SELECT - 14 / 3 * - 38 * + COUNT ( * ) - + COALESCE ( 7, 49 ) * 34 * + 45 # Datafusion - Expected - -30 # Datafusion - Expected - 62 # Datafusion - Expected - -7519 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(30\)\) AS col1" at position 0 and "Int64\(45\) \+ Int64\(89\) \* Int64\(\-85\) \+ count\(DISTINCT Int64\(\-60\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ( - + 30 ) AS col1, ( NULLIF ( + + 62, - 62 / + + 41 ) ), 45 + + 89 * - 85 + COUNT ( DISTINCT - 60 ) AS col1 +---- +-30 +-7519 +62 query II rowsort label-6381 SELECT + COUNT ( * ) col2, + ( ( - 74 ) ) * ( + 92 ) AS col1 @@ -33710,8 +34183,11 @@ SELECT - 43, + 42 + 76 + + ( - 44 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col2" at position 0 and "Int64\(57\) \+ Int64\(4\) \+ Int64\(\-55\) \+ Int64\(22\) / Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 AS col2, + 57 + + 4 + - 55 + 22 / + + 52 AS col2 +---- +18 +6 query I rowsort label-6401 SELECT - - 23 + - - 41 - 7 * - CAST ( - CASE + 41 WHEN - MAX ( - - 52 ) THEN NULL ELSE + 52 - 51 END AS INTEGER ) @@ -33936,8 +34412,11 @@ SELECT DISTINCT 78 + - - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col2" at position 0 and "min\(DISTINCT Int64\(62\)\) / Int64\(\-8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 45 AS col2, + MIN ( DISTINCT 62 ) / - 8 AS col2 +---- +-45 +-7 query I rowsort label-6444 SELECT ALL COALESCE ( 68, + COUNT ( * ), + 43 * - + 6 * + 81 - 26 + + 67 + + - 32 / - - 7 + + - COALESCE ( + 36, 56 / 38, + COUNT ( * ) + - 2 + + CAST ( NULL AS INTEGER ) ) ) + - + 60 @@ -34004,8 +34483,11 @@ SELECT - 46 - - + 47 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(51\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 col1, COUNT ( * ) + + COUNT ( * ) - 51 - COUNT ( * ) AS col1 +---- +-50 +36 query I rowsort SELECT 24 * - 24 * - - 3 + 79 AS col0 @@ -34767,8 +35249,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, + 27 AS col0 +---- +27 +NULL query I rowsort SELECT DISTINCT - 22 * - - 24 col2 @@ -34878,8 +35363,11 @@ SELECT DISTINCT + 29 / - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -3956 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(46\) \* Int64\(\-86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, 46 * + - 86 col0 +---- +-3956 +1 query I rowsort SELECT + 76 + + ( - - 43 ) @@ -35213,8 +35701,11 @@ SELECT DISTINCT + ( - - NULLIF ( 48, + 83 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-4\)\) \* \(\- max\(DISTINCT Int64\(24\)\)\) AS col2" at position 0 and "Int64\(30\) \+ Int64\(\-48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 4 * + - MAX ( DISTINCT + 24 ) AS col2, 30 + - 48 AS col2 +---- +-18 +-96 query I rowsort SELECT ALL + 43 * - CASE + 50 WHEN - 84 THEN NULL WHEN 9 THEN 52 WHEN + 27 * 37 + 45 THEN 73 END @@ -35667,8 +36158,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) - - 11 * + + 88 - - 54 AS col1, - 1 AS col1 +---- +-1 +1023 query I rowsort label-6776 SELECT + CAST ( + NULLIF ( + 66, 21 + - + 50 ) AS INTEGER ) + - 95 - + 91 + - COUNT ( * ) * + COUNT ( * ) AS col0 @@ -35713,8 +36207,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) * - 64 * 60 AS col2, 80 * 41 AS col2 +---- +-3840 +3280 query I rowsort SELECT ALL - 47 * + 23 @@ -36077,8 +36574,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "sum\(DISTINCT Int64\(\-52\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 4 AS col2, SUM ( DISTINCT + - 52 ) col2 +---- +-52 +4 query I rowsort SELECT + 67 - + 43 + 25 @@ -36093,14 +36593,20 @@ 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\(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\. +query II valuesort SELECT + 76 * + + 72 + + - COUNT ( * ) AS col0, 38 * - 47 col0 +---- +-1786 +5471 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-54\), Int64\(33\)\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( - 54, + 33 ) AS col0, 82 col0 +---- +-54 +82 query I rowsort label-6860 SELECT 77 * - + MAX ( DISTINCT + NULLIF ( - 52, 20 ) ) + 64 * - - 72 @@ -36192,8 +36698,11 @@ SELECT ALL 23 / 11 * - - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 2607 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "Int64\(33\) \* Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( 71 ) AS col1, + 33 * 79 AS col1 +---- +2607 +71 query I rowsort SELECT - COALESCE ( - 57, 84 * 4 * - - 15 ) col1 @@ -36313,8 +36822,11 @@ SELECT ALL + + COUNT ( DISTINCT + 33 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 10 col1, 94 AS col1 +---- +10 +94 query I rowsort label-6899 SELECT CAST ( + - 63 AS INTEGER ) AS col2 @@ -37076,8 +37588,12 @@ SELECT 40 * + - 18 - + 34 / + - 75 col1, 21 * - ( - 66 ) # Datafusion - Expected - 41 # Datafusion - Expected - 74 # 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 "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 41 AS col2, 74 AS col2, + ( + CASE 32 WHEN - 19 THEN + + ( + 91 ) WHEN - 57 * - - 12 + + ( - - COUNT ( * ) ) / - + CAST ( NULL AS INTEGER ) * - - ( - 78 ) + - - 29 THEN NULL END ) + + MAX ( 25 - 56 ) +---- +41 +74 +NULL query I rowsort label-7041 SELECT 38 / + + 97 AS col2 @@ -37118,8 +37634,11 @@ SELECT - 22 + 97 - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 106 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \+ Int64\(99\) AS col2" at position 0 and "coalesce\(Int64\(\-51\), Int64\(75\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 + 99 AS col2, + COALESCE ( - 51, + 75 ) AS col2 +---- +-51 +106 query I rowsort label-7049 SELECT ALL - CAST ( NULL AS INTEGER ) + - 81 @@ -37259,8 +37778,12 @@ SELECT + 29 * - ( + + 6 ) * - - SUM ( + + 75 ) / - + NULLIF ( - CASE WHEN 95 IS # Datafusion - Expected - 309032 # Datafusion - Expected - 67 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) / Int64\(\-13\) \- Int64\(\-67\) AS col2" at position 1 and "coalesce\(Int64\(63\), Int64\(53\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 9 - COUNT ( * ) + + 37 * + 96 * + 87, + 2 / - 13 - - 67 AS col2, + COALESCE ( 63, + 53 ) AS col2 +---- +309032 +63 +67 query I rowsort SELECT - + ( 39 ) AS col0 @@ -37881,8 +38404,11 @@ SELECT ALL - 76 AS col0, - 84 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \+ Int64\(67\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + 14 ) + 67 col0, 58 AS col0 +---- +58 +81 query I rowsort label-7193 SELECT DISTINCT - 99 + - CAST ( NULL AS INTEGER ) + + ( - 11 ) * - 34 / ( 12 ) / - + 56 @@ -37928,8 +38454,11 @@ 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\(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\. +query II valuesort SELECT ALL 12 - + 46 + - MAX ( - 22 ) + - 29 + COUNT ( * ) + + 45 AS col0, 81 AS col0 +---- +5 +81 query I rowsort SELECT 94 * 47 @@ -38019,8 +38548,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \+ \(\- Int64\(75\)\) AS col2" at position 0 and "Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 9 + - + 75 AS col2, 25 col2 +---- +-84 +25 query I rowsort label-7219 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 69 * 51 + - 88 @@ -38083,8 +38615,12 @@ SELECT ALL NULLIF ( - 40, + 3 ) # Datafusion - Expected - NULL # Datafusion - Expected - 71 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 and "Int64\(68\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL NULLIF ( + CAST ( NULL AS INTEGER ), + 83 ) AS col2, 70 + COUNT ( * ) AS col1, 68 AS col1 +---- +68 +71 +NULL query I rowsort label-7231 SELECT + 70 + + - COUNT ( * ) @@ -38418,8 +38954,11 @@ SELECT COUNT ( * ) * 10 * 47 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) / Int64\(\-77\) AS col1" at position 0 and "Int64\(21\) \+ nullif\(Int64\(55\), Int64\(\-80\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 53 / - 77 AS col1, + 21 + NULLIF ( + 55, - 80 ) col1 +---- +0 +76 query I rowsort SELECT 33 * 55 @@ -38519,8 +39058,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - - 93 * 39 + - COUNT ( * ) + ( NULLIF ( + 40, ( + + 40 ) - + 71 / 31 * 82 - + + COALESCE ( - 82, - COUNT ( * ) * 16 ) * - + 2 * - + 57 ) ) AS col1, ( - 6 ) AS col1 +---- +-6 +3666 query II rowsort SELECT 45 * - + 19 AS col0, + 17 AS col2 @@ -38584,8 +39126,11 @@ SELECT DISTINCT 12 * - + COUNT ( * ) * + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 320 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \* Int64\(80\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4 * + 80 * + + COUNT ( * ) AS col0, + ( COUNT ( * ) ) AS col0 +---- +1 +320 query I rowsort label-7327 SELECT DISTINCT MIN ( - 91 ) + - ( 29 ) AS col2 @@ -38681,8 +39226,11 @@ SELECT DISTINCT SUM ( DISTINCT 84 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -444600 # Datafusion - Expected - -550539 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* Int64\(15\) \* Int64\(78\) \* Int64\(\-4\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-83\) \* \(\- count\(DISTINCT Int64\(71\)\)\) \* Int64\(67\) \* Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 95 * 15 * 78 * - 4 / COUNT ( * ) AS col0, + ( + - 83 ) * - COUNT ( DISTINCT + 71 ) * + + 67 * - 99 AS col0 +---- +-444600 +-550539 query I rowsort label-7346 SELECT DISTINCT - 84 / - CAST ( NULL AS INTEGER ) * 7 @@ -39477,8 +40025,11 @@ SELECT - - 17 + + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col1" at position 0 and "Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 AS col1, - 27 AS col1 +---- +-27 +46 query I rowsort label-7499 SELECT + NULLIF ( + 43, - + 36 ) + - + 18 * + MIN ( - + 45 ) * + 36 AS col1 @@ -39499,8 +40050,12 @@ SELECT COALESCE ( - 57, + 25 + - - COUNT ( * ) ) + + COUNT ( * ) # Datafusion - Expected - 58 # Datafusion - Expected - NULL # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "avg\(Int64\(\-63\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IRI valuesort SELECT ALL 58 AS col2, AVG ( ALL - 63 ) + - CAST ( NULL AS INTEGER ) AS col2, - 97 col0 +---- +-97 +58 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -39755,8 +40310,11 @@ SELECT 11 - SUM ( DISTINCT + 32 ) / 14 + - + 82 + - + COUNT ( * ) + + COALESCE ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \+ Int64\(27\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 62 + ( + ( 27 ) ) + + COUNT ( * ) AS col2, + 3 AS col2 +---- +3 +90 query II rowsort label-7551 SELECT - 36 / 94 + + - 48, - 20 AS col2 @@ -39925,8 +40483,11 @@ SELECT - + CASE ( + CASE - 12 WHEN + 3 THEN 9 * 7 * 41 + + - 44 END ) WHEN - + 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 AS col1, 78 AS col1 +---- +-70 +78 query I rowsort SELECT - CASE - + NULLIF ( + 98, 75 ) WHEN + 47 THEN 45 END @@ -40151,8 +40712,11 @@ SELECT + 87 - NULLIF ( 66, 89 - + SUM ( - 77 ) / 71 ), 94 * + 91 + - - 87 + COUN # Datafusion - Datafusion expected results: # Datafusion - Expected - -3985 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(CAST\(Int64\(75\) AS Int32\) AS Int32\)\), Int64\(1\)\) \* Int64\(54\) \+ Int64\(65\) AS col2" at position 0 and "Int64\(\-36\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( + ( - + CAST ( + CAST ( ( 75 ) AS INTEGER ) AS INTEGER ) ), + 1 ) * 54 + + 65 AS col2, - 36 + + COUNT ( * ) AS col2 +---- +-35 +-3985 query I rowsort label-7627 SELECT CAST ( 43 AS INTEGER ) * - 37 * - 2 AS col1 @@ -40410,8 +40974,11 @@ SELECT MAX ( DISTINCT + 18 ) 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 col2" at position 0 and "nullif\(\(\- \(\- CASE sum\(DISTINCT Int64\(87\)\) WHEN Int64\(\-1\) \+ Int64\(\-97\) \+ \(\- Int64\(\-22\)\) THEN Int64\(\-70\) WHEN Int64\(\-20\) THEN NULL WHEN Int64\(11\) THEN Int64\(91\) ELSE NULL END\)\), Int64\(\-46\) / Int64\(29\) \* Int64\(\-85\) \- Int64\(\-58\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 53 AS col2, + NULLIF ( - - CASE SUM ( DISTINCT 87 ) WHEN - 1 + - 97 + - - 22 THEN - 70 WHEN - 20 THEN NULL WHEN + 11 THEN + + 91 ELSE NULL END, - 46 / 29 * + - 85 - - 58 ) AS col2 +---- +-53 +NULL query I rowsort SELECT DISTINCT 11 - - 82 AS col0 @@ -40703,8 +41270,11 @@ SELECT ALL - NULLIF ( + COUNT ( * ), 61 + COUNT ( - CAST ( NULL AS INTEGER ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1890 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(90\)\) \* Int64\(21\) AS col2" at position 0 and "Int64\(\-52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MAX ( 90 ) * + 21 AS col2, - 52 AS col2 +---- +-52 +1890 query II rowsort SELECT 13 AS col1, 66 @@ -40964,8 +41534,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - -6232 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(75\) AS Int32\)\) AS col1" at position 0 and "Int64\(92\) \* \(\- \(\- CAST\(\(\- Int64\(66\)\) AS Int32\)\)\) \- Int64\(98\) \- max\(Int64\(62\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( + 75 AS INTEGER ) AS col1, 92 * - - CAST ( - + 66 AS INTEGER ) - 98 - + MAX ( 62 ) AS col1 +---- +-6232 +-75 query I rowsort label-7782 SELECT ALL + COUNT ( * ) - - COALESCE ( ( - 85 ), 87 * - - 58 ) AS col2 @@ -40975,8 +41548,11 @@ SELECT ALL + COUNT ( * ) - - COALESCE ( ( - 85 ), 87 * - - 58 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 112 # Datafusion - Expected - -1718 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \+ Int64\(97\) AS col1" at position 0 and "Int64\(\-42\) \+ \(\- Int64\(59\)\) \- Int64\(\-33\) \* Int64\(\-49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 15 + + + 97 AS col1, - 42 + - ( 59 ) - - 33 * + - 49 AS col1 +---- +-1718 +112 query I rowsort SELECT 74 * 68 + 20 @@ -41199,8 +41775,12 @@ SELECT - ( + 25 ) * 94 # Datafusion - Expected - 48 # Datafusion - Expected - 135 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col2" at position 0 and "Int64\(58\) \+ max\(Int64\(77\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 48 AS col2, 58 + + + MAX ( ALL 77 ) AS col2, - + 50 + - + 6 AS col2 +---- +-56 +135 +48 query I rowsort label-7827 SELECT ALL - ( + + 66 ) + + - CAST ( 46 AS INTEGER ) @@ -41277,8 +41857,11 @@ SELECT ALL 82 / + COUNT ( * ) - - 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 3598 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "Int64\(\-79\) \* Int64\(\-45\) \+ Int64\(36\) \+ Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 93 AS col1, - 79 * - 45 + 36 + + 7 AS col1 +---- +3598 +93 query I rowsort label-7842 SELECT + ( 16 ) / + 26 AS col1 @@ -41471,8 +42054,11 @@ SELECT + 51 col2, 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 894 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "Int64\(64\) \* Int64\(13\) \+ Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 AS col0, + 64 * 13 + + + 62 AS col0 +---- +81 +894 query I rowsort label-7879 SELECT 95 + 62 * CAST ( NULL AS INTEGER ) @@ -41819,8 +42405,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(81\)\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + SUM ( 81 ) AS col1, 44 AS col1 +---- +44 +81 query II rowsort SELECT DISTINCT - 4 * 20 * 54, - 2 AS col1 @@ -41847,8 +42436,11 @@ SELECT - 11 - - 96 + SUM ( DISTINCT - 49 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1045 # Datafusion - Expected - 124 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* Int64\(\-29\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(62\) \* Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 36 * - 29 + + COUNT ( * ) AS col2, 62 * + 2 AS col2 +---- +1045 +124 query I rowsort SELECT ALL + 87 * 56 AS col2 @@ -42169,8 +42761,11 @@ SELECT ALL + 90 - + 16 * - - 12 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 140 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "Int64\(73\) \+ Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + + 43 ) AS col1, ( + 73 ) + ( + 67 ) AS col1 +---- +140 +43 query I rowsort SELECT DISTINCT + NULLIF ( 38, - - 36 ) @@ -43320,8 +43915,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 AS col1, - ( COUNT ( * ) ) + 30 AS col1 +---- +29 +30 query I rowsort SELECT 9 * + 50 @@ -43955,8 +44553,11 @@ SELECT DISTINCT 85 * - 16 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + + 42 ) AS col0, 63 AS col0 +---- +42 +63 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -44102,8 +44703,11 @@ SELECT ALL 44 * - + 52 * + 15 * + - 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "Int64\(87\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 AS col2, + 87 * - CAST ( NULL AS INTEGER ) AS col2 +---- +90 +NULL query II rowsort label-8383 SELECT ALL - - 60 AS col2, + ( + 76 ) + - - CASE + - 16 WHEN - 87 THEN NULLIF ( - - 43, 20 + - COUNT ( - 67 ) ) ELSE - 46 END @@ -44544,8 +45148,12 @@ SELECT DISTINCT 69 / + - 46 col2 # Datafusion - Expected - -66 # Datafusion - Expected - 20 # Datafusion - Expected - -148 -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\)\) \+ \(\- Int64\(95\)\) \+ Int64\(39\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 66 AS col0, 20 AS col1, - + 92 + - + 95 + + + 39 AS col0 +---- +-148 +-66 +20 query I rowsort label-8467 SELECT ALL - COALESCE ( 28, - - 19 - + + COUNT ( * ) ) @@ -44570,8 +45178,11 @@ SELECT 23 / + 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "Int64\(16\) \* nullif\(CASE Int64\(25\) WHEN \(\- Int64\(\-71\)\) \* \(\- Int64\(60\)\) \+ Int64\(55\) \+ coalesce\(Int64\(\-39\), CAST\(NULL AS Int32\)\) \+ Int64\(74\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(55\) \* Int64\(87\) THEN count\(Int64\(1\)\) AS count\(\*\) END, Int64\(47\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +81 +NULL query I rowsort SELECT DISTINCT - 92 + - ( + 86 ) @@ -44623,8 +45234,11 @@ SELECT + - 71 * - 12 * - 19 + + 87 # 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 col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 57 AS col1, 96 col1 +---- +-57 +96 query I rowsort label-8482 SELECT 16 + COUNT ( * ) + + 45 + + - 0 AS col1 @@ -44687,8 +45301,11 @@ SELECT DISTINCT + 76 * - 50 * 48 + - - CAST ( + 19 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \- Int64\(56\) AS col0" at position 0 and "Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 83 - + 56 AS col0, - 60 col0 +---- +-60 +27 query I rowsort label-8494 SELECT ALL - NULLIF ( - 32, - COUNT ( * ) * + 18 * + 25 ) * - 39 * - COALESCE ( 37, - 78 ) * + COUNT ( * ) * + + 41 + - 32 + 53 AS col2 @@ -45027,8 +45644,11 @@ SELECT - + COUNT ( * ) + + - 95 AS col1 # 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\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 81 AS col0, - 38 AS col0 +---- +-38 +81 query I rowsort label-8558 SELECT - 47 / 35 + + + 30 * - ( + + 63 ) @@ -45207,8 +45827,11 @@ SELECT 77 * - - 46 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3995 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* \(\- Int64\(47\)\) AS col1" at position 0 and "Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 85 * - ( 47 ) col1, 71 AS col1 +---- +-3995 +71 query I rowsort SELECT 87 + - 80 @@ -45290,8 +45913,11 @@ SELECT - 21 * 98 - + 64 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -744 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) \* Int64\(21\) \+ Int64\(54\) AS col0" at position 0 and "Int64\(\-91\) \+ \(\- \(\- CASE avg\(DISTINCT \(\- Int64\(\-60\)\)\) WHEN Int64\(87\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(67\) \* Int64\(60\) \+ \(\- CAST\(NULL AS Int32\)\) THEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(37\) \- Int64\(21\) WHEN Int64\(65\) THEN NULL END\)\) \* Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-744 +NULL query II rowsort SELECT + 72 + - 39 + - 53 col0, - 71 @@ -45383,8 +46009,11 @@ SELECT + SUM ( 77 ) + 2 + + ( + + COUNT ( * ) ) * 43, 19 - 23 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col1" at position 0 and "Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 AS col1, - 32 AS col1 +---- +-32 +55 query II rowsort SELECT 93, + 56 AS col0 @@ -45433,8 +46062,12 @@ SELECT ALL + 76 / + - 33 # Datafusion - Expected - 0 # Datafusion - Expected - 51 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 1 and "\(\- Int64\(24\)\) \* count\(DISTINCT Int64\(57\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 0, 51 AS col2, - + 24 * + COUNT ( DISTINCT 57 ) AS col2 +---- +-24 +0 +51 query I rowsort label-8636 SELECT + 54 * + MIN ( DISTINCT - - 27 ) + - + 27 / + + 38 AS col2 @@ -45738,14 +46371,20 @@ SELECT ALL + 60 + - + 66 + - NULLIF ( - COUNT ( * ), - + 31 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "Int64\(15\) \+ Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 45 col1, + 15 + + 48 col1 +---- +45 +63 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(81\) \+ Int64\(94\) AS col2" at position 0 and "min\(Int64\(63\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + CAST ( NULL AS INTEGER ) + + 81 + + 94 AS col2, + MIN ( ALL + 63 ) AS col2 +---- +63 +NULL query I rowsort label-8693 SELECT + 67 + - COUNT ( * ) - - + 61 + + 36 @@ -45828,8 +46467,11 @@ SELECT ALL + + MAX ( DISTINCT - 0 ) * - 58 * 16 / - ( - + 55 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 AS col2, 55 AS col2 +---- +55 +94 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -46145,8 +46787,11 @@ 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\(Int64\(1\)\) AS count\(\*\) / \(\- min\(Int64\(\-26\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 24 AS col1, COUNT ( * ) / - MIN ( ALL ( - 26 ) ) AS col1 +---- +0 +24 query II rowsort SELECT 5, - 6 col0 @@ -46334,8 +46979,11 @@ SELECT + MIN ( + - NULLIF ( - - NULLIF ( 40, - 35 ), + 3 / 89 / - 28 * + 45 ) ) # 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 "Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 57 AS col0, - 1 AS col0 +---- +-1 +57 query I rowsort label-8804 SELECT ALL COUNT ( * ) - + + SUM ( ALL - - 19 ) col2 @@ -46606,8 +47254,11 @@ SELECT ALL 57, + 7 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - -2790 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col2" at position 0 and "max\(Int64\(31\)\) \* Int64\(\-90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 AS col2, MAX ( + 31 ) * + - 90 AS col2 +---- +-2790 +-58 query I rowsort label-8856 SELECT COALESCE ( - 54, - COUNT ( ALL + - 25 ) + + + COUNT ( ALL + 9 ) ) / - - COUNT ( * ) col0 @@ -46654,14 +47305,20 @@ SELECT + - 93 / + COUNT ( * ) + - - 51 AS col0, + ( 44 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 42 AS col2, 8 AS col2 +---- +42 +8 # 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\(1\)\) AS count\(\*\) \+ Int64\(\-55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 88 AS col1, COUNT ( * ) + - 55 AS col1 +---- +-54 +88 query I rowsort SELECT - 10 * - - 89 AS col1 @@ -47170,8 +47827,11 @@ SELECT ALL - 76 + + ( COUNT ( * ) ) * + 68 + - - 22 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \+ Int64\(\-14\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 83 + - 14 AS col1, COUNT ( * ) col1 +---- +1 +69 query II rowsort SELECT ALL + 42 AS col1, - 4 AS col0 @@ -47248,8 +47908,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - -6545 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-93\)\) AS col0" at position 0 and "Int64\(85\) \* \(\- Int64\(77\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 93 AS col0, 85 * - + 77 AS col0 +---- +-6545 +93 query II rowsort SELECT + + 70 AS col2, + 87 AS col0 @@ -48208,8 +48871,12 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(78\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + + 94 / + 71 col1, - 10, 97 + - COUNT ( * ) * 78 AS col1 +---- +-10 +1 +19 query I rowsort label-9159 SELECT DISTINCT - NULLIF ( 62, + - 27 * - 81 * - NULLIF ( - 50, + COUNT ( * ) ) ) / - COUNT ( * ) + + 70 @@ -48327,8 +48994,11 @@ SELECT ALL - 41 * + - 64 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 45 AS col0, + 79 AS col0 +---- +45 +79 query I rowsort label-9182 SELECT DISTINCT CASE + 28 WHEN COUNT ( ALL - 89 ) THEN - 31 WHEN + 27 * - MIN ( DISTINCT + + 17 ) + 8 * COUNT ( * ) * + - 61 * - + MAX ( - + 70 ) + 53 THEN + + COUNT ( * ) + + 7 ELSE NULL END * - CAST ( - 65 AS INTEGER ) * - + 13 AS col2 @@ -48392,8 +49062,11 @@ SELECT DISTINCT - ( - 97 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col0" at position 0 and "Int64\(89\) \+ Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 2 AS col0, 89 + - 25 col0 +---- +-2 +64 query I rowsort SELECT ALL - 32 * - + 74 * + 59 @@ -49028,8 +49701,11 @@ 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\(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\. +query II valuesort 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 +---- +3895 +NULL query II rowsort label-9313 SELECT + 48 AS col0, ( + COUNT ( * ) ) + - - 99 + - + 84 * 78 @@ -49171,8 +49847,11 @@ SELECT - - 66 * 47 * + - 19 + + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + + 41 ) AS col2, + 16 AS col2 +---- +16 +41 query I rowsort label-9340 SELECT + COUNT ( + 48 ) @@ -49988,8 +50667,11 @@ SELECT ( + 16 ) * 96 + 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 830208 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-94\) \* Int64\(92\) \* Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 51 + + COUNT ( * ) AS col2, - 94 * + + 92 * - 96 AS col2 +---- +52 +830208 query I rowsort SELECT ALL - 39 + 78 @@ -50130,8 +50812,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 41 AS col1, - 87 AS col1 +---- +-87 +41 query II rowsort label-9523 SELECT - 42, + COUNT ( * ) AS col2 @@ -50304,8 +50989,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 AS col2, COUNT ( * ) AS col2 +---- +1 +35 query II rowsort label-9556 SELECT DISTINCT 88 AS col0, - COUNT ( * ) * + - SUM ( - - 46 ) @@ -50611,8 +51299,11 @@ SELECT ALL NULLIF ( + 76, CAST ( + 4 AS INTEGER ) ) * - + 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col1" at position 0 and "sum\(Int64\(\-92\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 60 col1, SUM ( ALL - 92 ) AS col1 +---- +-60 +-92 query I rowsort label-9614 SELECT DISTINCT ( COUNT ( 76 ) ) * 45 AS col0 @@ -50671,8 +51362,11 @@ SELECT 44 / - - 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - -4275 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col1" at position 0 and "\(\- nullif\(Int64\(\-25\), Int64\(\-92\)\)\) \+ Int64\(20\) \- Int64\(60\) \* Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 59 AS col1, - NULLIF ( - 25, - 92 ) + + + 20 - + 60 * + + 72 AS col1 +---- +-4275 +-59 query I rowsort label-9625 SELECT DISTINCT + 5 + - 3 * CAST ( - 51 AS INTEGER ) * - - 72 @@ -50754,20 +51448,30 @@ 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\(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\. +query III valuesort SELECT COUNT ( * ) * 54 + - 83 AS col0, 16 col0, - ( 96 ) * 18 * - + 67 + - - NULLIF ( + + 73, - + ( - 11 ) * CAST ( NULL AS INTEGER ) / - 71 ) AS col1 +---- +-29 +115849 +16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 2635 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col2" at position 0 and "Int64\(\-85\) \* Int64\(\-31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 AS col2, - 85 * + - 31 AS col2 +---- +2635 +88 # 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\(1\)\) AS count\(\*\)\) \* Int64\(\-40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 96 col0, + 94 + - COUNT ( * ) * + - 40 AS col0 +---- +134 +96 query I rowsort SELECT + 70 + + 62 @@ -50853,8 +51557,11 @@ SELECT ALL 49 + - 30 + - 57 + - 94 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \+ \(\- Int64\(\-34\)\) / Int64\(95\) \+ Int64\(23\) \* CAST\(NULL AS Int32\) \* Int64\(34\) \* Int64\(33\) AS col1" at position 0 and "Int64\(88\) \+ \(\- Int64\(73\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 72 + - - 34 / + 95 + 23 * + CAST ( NULL AS INTEGER ) * 34 * 33 AS col1, + 88 + - + 73 AS col1 +---- +15 +NULL query I rowsort SELECT ALL 31 + - + 61 + 75 - - - 74 * 27 + - 9 @@ -50888,8 +51595,11 @@ 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\(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\. +query II valuesort SELECT + 25 + - + COUNT ( * ) AS col1, - 67 * - + 9 col1 +---- +24 +603 query I rowsort label-9665 SELECT - 94 + CAST ( - ( + COALESCE ( 77, + - 77 + + - 31, + COUNT ( * ) ) ) AS INTEGER ) @@ -52061,8 +52771,11 @@ SELECT ( + + 63 ) * + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col2" at position 0 and "Int64\(5\) \+ coalesce\(\(\- Int64\(18\)\), count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(86\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 25 AS col2, 5 + + COALESCE ( - + 18, COUNT ( * ) * + COUNT ( ALL + 86 ) ) * COUNT ( * ) AS col2 +---- +-13 +-25 query I rowsort label-9894 SELECT 62 + - 13 / + ( - COUNT ( ALL 38 ) ) AS col0 @@ -52166,8 +52879,11 @@ SELECT ALL + 55 * 59 * + 16 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 499343040 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-72\)\) AS col1" at position 0 and "Int64\(\-14\) \* Int64\(72\) \* Int64\(62\) \* Int64\(\-94\) \* Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 72 AS col1, - 14 * + 72 * + + 62 * - 94 * + 85 AS col1 +---- +499343040 +72 query I rowsort label-9913 SELECT + COUNT ( * ) * + 87 col0 @@ -52537,8 +53253,11 @@ SELECT DISTINCT - - 24 * + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(max\(DISTINCT Int64\(0\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(28\) / Int64\(63\) \- \(\- Int64\(65\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( MAX ( DISTINCT + 0 ) AS INTEGER ) AS col1, 28 / + 63 - - + 65 AS col1 +---- +0 +65 query I rowsort label-9984 SELECT - SUM ( - ( - + NULLIF ( - CAST ( NULL AS INTEGER ), - - 90 ) ) ) + + 38 @@ -52548,8 +53267,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - -6825 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col0" at position 0 and "Int64\(91\) \* Int64\(\-75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 49 AS col0, + 91 * - 75 AS col0 +---- +-49 +-6825 query I rowsort SELECT DISTINCT - 53 * 7 col1 diff --git a/data/sqlite/random/expr/slt_good_19.slt b/data/sqlite/random/expr/slt_good_19.slt index 32fed39..cfc014b 100644 --- a/data/sqlite/random/expr/slt_good_19.slt +++ b/data/sqlite/random/expr/slt_good_19.slt @@ -582,8 +582,11 @@ 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\(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\. +query II valuesort SELECT + 45 * + COUNT ( * ) - 22 col1, + ( + COUNT ( * ) ) / 43 AS col1 +---- +0 +23 query I rowsort label-104 SELECT DISTINCT - MIN ( + - 60 ) AS col2 @@ -1195,8 +1198,11 @@ SELECT - COUNT ( * ) / - + 75 * 44 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 72 AS col1, + 60 AS col1 +---- +60 +72 query I rowsort label-219 SELECT ALL - MAX ( DISTINCT - 9 ) + + + COUNT ( - 8 ) / - 64 AS col0 @@ -1595,8 +1601,11 @@ SELECT ALL 42 * 54 + + 41 + + COUNT ( * ) * - 21 - ( - + 77 ) * 68 / 11 + - 94 + # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 48 AS col2, 57 col2 +---- +-48 +57 query I rowsort label-295 SELECT DISTINCT - CAST ( 73 AS INTEGER ) * COALESCE ( - COUNT ( * ), - MIN ( + 73 ) ) - 85 / - 31 + + - 31 AS col2 @@ -1953,8 +1962,11 @@ SELECT ALL + 49 + - 16 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -150 # Datafusion - Expected - -748 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(58\)\) \+ Int64\(\-92\) AS col0" at position 0 and "Int64\(34\) \* Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + ( 58 ) + - 92 AS col0, + 34 * - 22 AS col0 +---- +-150 +-748 query I rowsort SELECT + 40 - - 88 + + + 41 + + 92 * 23 * 47 AS col1 @@ -2105,8 +2117,11 @@ SELECT - COUNT ( * ) AS col0, - 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 15 AS col0, CAST ( NULL AS INTEGER ) * + - 72 col0 +---- +15 +NULL query I rowsort label-393 SELECT 15 + - - CAST ( - 18 AS INTEGER ) * 45 @@ -2177,8 +2192,11 @@ SELECT DISTINCT + 55 * - - 42 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -4704 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(43\)\) AS col0" at position 0 and "Int64\(3\) \* Int64\(90\) \* Int64\(\-7\) \+ Int64\(\-67\) \* min\(DISTINCT Int64\(42\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( + + 43 ) AS col0, 3 * + 90 * - 7 + + - 67 * + + ( + MIN ( DISTINCT + 42 ) ) AS col0 +---- +-4704 +43 query I rowsort SELECT DISTINCT - 69 - 95 @@ -2330,8 +2348,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(8\)\) / Int64\(46\) AS col1" at position 0 and "nullif\(\(\- Int64\(\-49\)\), Int64\(\-86\)\) \+ Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 8 / 46 AS col1, + NULLIF ( - - 49, - 86 ) + 27 AS col1 +---- +0 +76 query I rowsort label-436 SELECT DISTINCT - + 83 / + 92 * - 88 @@ -2846,8 +2867,11 @@ SELECT ALL - + 9 + - 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1870 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-19\), Int64\(\-95\)\)\) \* nullif\(Int64\(97\), \(\- min\(DISTINCT Int64\(96\)\)\) \* Int64\(28\)\) \+ Int64\(27\) AS col2" at position 0 and "Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + NULLIF ( - 19, - 95 ) * NULLIF ( 97, - MIN ( DISTINCT ( + 96 ) ) * 28 ) + + 27 col2, + 76 AS col2 +---- +1870 +76 query I rowsort label-536 SELECT DISTINCT + + 97 + - - MAX ( 77 ) + 91 + + 54 + - 37 AS col1 @@ -3465,8 +3489,11 @@ SELECT + 59 + - 21 - ( - 3 ) * - 14 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 163 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \+ Int64\(92\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* coalesce\(Int64\(\-24\), Int64\(\-47\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 71 + 92 AS col0, - CAST ( NULL AS INTEGER ) * + + COALESCE ( - 24, - 47 ) AS col0 +---- +163 +NULL query I rowsort label-651 SELECT - CASE 81 WHEN - + 80 THEN 63 ELSE - + COUNT ( * ) + + 68 + + + 86 * - + 99 END @@ -3590,8 +3617,11 @@ 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\(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\. +query II valuesort SELECT ALL - 33 * + - 41 * + 63 * - + 89 + - 78 + - + 52 + - 69 + - 98 / - COUNT ( * ) - - 65 * 91 AS col1, 34 AS col1 +---- +-7580457 +34 query I rowsort label-675 SELECT - 7 * CASE + 39 WHEN COUNT ( * ) * - ( + CAST ( - + 85 AS INTEGER ) ) THEN NULLIF ( - 26, - 45 ) ELSE + ( 85 ) END * ( NULLIF ( + 45, COUNT ( + 91 ) ) ) + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 @@ -3801,8 +3831,11 @@ SELECT 22 + - 43 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 "Int64\(90\) AS col1" at position 0 and "Int64\(\-21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 90 AS col1, - 21 AS col1 +---- +-21 +90 query I rowsort SELECT 38 + - 18 @@ -3907,8 +3940,11 @@ SELECT ALL - MIN ( ALL 73 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(23\)\) AS col1" at position 0 and "Int64\(\-29\) \+ Int64\(6\) \* Int64\(\-10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( + 23 ) AS col1, ( - 29 ) + 6 * - 10 AS col1 +---- +-89 +23 query I rowsort label-735 SELECT + + 86 / 46 + + 26 @@ -4405,8 +4441,11 @@ SELECT 52 - - ( - 56 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 13 AS col2, + 17 AS col2 +---- +13 +17 query I rowsort SELECT 68 * - 38 AS col1 @@ -4424,8 +4463,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 87 col0, COUNT ( * ) AS col0 +---- +-87 +1 query I rowsort SELECT 57 * - + 39 AS col2 @@ -4450,8 +4492,11 @@ SELECT 86 + + 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 4512 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col1" at position 0 and "Int64\(96\) \* Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 16 AS col1, 96 * 47 AS col1 +---- +-16 +4512 query I rowsort label-839 SELECT + ( + 18 ) / + - 10 @@ -4588,8 +4633,12 @@ SELECT 70, 15 AS col2 # Datafusion - Expected - 71 # Datafusion - Expected - 0 # Datafusion - Expected - 38155 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "\(\- Int64\(47\)\) \* Int64\(73\) \+ Int64\(4\) \* Int64\(1\) \+ Int64\(78\) \- Int64\(\-12\) \* Int64\(36\) \* Int64\(96\) \+ Int64\(32\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 71 AS col2, 62 / - - MIN ( 88 ), + ( - + 47 ) * 73 + + 4 * + 1 + 78 - - 12 * 36 * 96 + 32 AS col2 +---- +0 +38155 +71 query I rowsort label-865 SELECT ( - 45 ) * 16 / + 31 AS col2 @@ -4649,8 +4698,12 @@ SELECT - - 17 + + 84 # Datafusion - Expected - -1524 # Datafusion - Expected - 37 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \* Int64\(23\) \+ Int64\(\-58\) \- Int64\(\-29\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 65 * + 23 + ( - 58 ) - - 29 * COUNT ( * ) col0, ( 38 ) - + COUNT ( * ) col1, 66 AS col0 +---- +-1524 +37 +66 query I rowsort SELECT + COALESCE ( + 12, 65 ) @@ -4895,8 +4948,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, COUNT ( * ) col0 +---- +1 +1 query II rowsort SELECT ALL 44 * - 96 + 19, 46 AS col2 @@ -5302,8 +5358,12 @@ SELECT ALL 47 - 4 AS col2 # Datafusion - Expected - 77 # Datafusion - Expected - -64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-64\) AS Int32\) AS col1" at position 1 and "Int64\(\-92\) \* CAST\(NULL AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 77, + CAST ( - 64 AS INTEGER ) AS col1, - 92 * + CAST ( NULL AS INTEGER ) AS col1 +---- +-64 +77 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -5442,8 +5502,12 @@ 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\(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\. +query III valuesort SELECT ALL + COUNT ( * ), 6 * + + ( - 2 ) AS col0, + + COUNT ( * ) +---- +-12 +1 +1 query I rowsort label-1025 SELECT - COUNT ( * ) + + + 33 + + - 66 AS col1 @@ -6168,8 +6232,11 @@ SELECT ALL - COUNT ( * ) * + 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) / \(\- Int64\(12\)\) \+ Int64\(21\) AS col2" at position 0 and "Int64\(\-47\) / \(\- Int64\(21\)\) \+ Int64\(64\) \+ Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 61 / - + 12 + 21 AS col2, - 47 / - + 21 + + 64 + + 48 AS col2 +---- +114 +16 query I rowsort SELECT ALL + 57 * + 28 @@ -6287,8 +6354,11 @@ SELECT - 94 AS col2, + 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 5006 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col2" at position 0 and "\(\- min\(Int64\(\-75\)\)\) \* Int64\(67\) \- Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 AS col2, - MIN ( - 75 ) * 67 - 19 AS col2 +---- +3 +5006 query I rowsort label-1186 SELECT ALL COUNT ( * ) * - 96 * + - 75 AS col0 @@ -6749,8 +6819,11 @@ SELECT - 55 * + MIN ( + - 6 ) + - 60 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 689 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) \* Int64\(\-53\) AS col0" at position 0 and "Int64\(67\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 13 * - 53 AS col0, + 67 - + COUNT ( * ) AS col0 +---- +66 +689 query I rowsort label-1275 SELECT ALL - 74 * - 98 - - COUNT ( DISTINCT + 47 ) * - + 69 @@ -7731,8 +7804,11 @@ SELECT ALL - - 83 / + 42 + - MAX ( + 99 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "nullif\(nullif\(\(\- CAST\(NULL AS Float64\)\), Int64\(\-79\) \* Int64\(99\) \+ Int64\(73\) \* nullif\(Int64\(30\), Int64\(31\)\)\), Int64\(\-97\)\) / Int64\(76\) \- Int64\(\-42\) \* Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +NULL +NULL query I rowsort label-1467 SELECT COUNT ( - - ( + 38 ) ) * + 20 * 49 AS col2 @@ -7879,8 +7955,11 @@ SELECT + NULLIF ( - - ( + - 99 ), + COUNT ( * ) ) # 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 "Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 70 AS col2, - 79 AS col2 +---- +-79 +70 query I rowsort label-1496 SELECT ALL + - MIN ( ALL 18 ) col1 @@ -8302,8 +8381,11 @@ SELECT ALL 34 + - + 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -1770 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "sum\(Int64\(30\)\) \* nullif\(Int64\(\-59\), Int64\(36\) / Int64\(\-60\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 AS col2, SUM ( 30 ) * NULLIF ( + ( + - 59 ), + + 36 / + - 60 ) AS col2 +---- +-1770 +86 query I rowsort label-1577 SELECT ALL MAX ( + + 93 ) * 32 @@ -8344,8 +8426,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + 12 * + 39 + + COUNT ( * ) * + 88 AS col0, 40 * - SUM ( 2 ) col0 +---- +-80 +556 query I rowsort label-1585 SELECT ALL + COUNT ( * ) / 19 * - + 9 AS col0 @@ -8355,8 +8440,11 @@ SELECT ALL + COUNT ( * ) / 19 * - + 9 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 129 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col1" at position 0 and "Int64\(95\) \+ Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 62 AS col1, 95 + 34 AS col1 +---- +-62 +129 query I rowsort SELECT 75 * - 50 + - 16 AS col2 @@ -8438,8 +8526,11 @@ SELECT + 82 - 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 88 * + CAST ( NULL AS INTEGER ) AS col1, 21 AS col1 +---- +21 +NULL query I rowsort SELECT ALL 47 * - - 87 col1 @@ -8523,8 +8614,11 @@ SELECT 2 * 42 + - 23 + 90 + - + COUNT ( * ) + - - CASE - + 82 WHEN CAST ( NULL A # Datafusion - Datafusion expected results: # Datafusion - Expected - -1496 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* Int64\(68\) AS col0" at position 0 and "min\(\(\- Int64\(39\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 22 * + 68 AS col0, MIN ( - + 39 ) col0 +---- +-1496 +-39 query II rowsort label-1619 SELECT MIN ( DISTINCT 35 ), + 91 AS col0 @@ -9588,8 +9682,11 @@ NULL # 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\(92\) AS col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 92 AS col2, 9 AS col2 +---- +9 +92 query I rowsort label-1821 SELECT DISTINCT MAX ( + 56 ) / COUNT ( * ) col1 @@ -9656,8 +9753,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) / + 64 * 31 + - COUNT ( * ) / + + 46 * - 89 AS col0, 98 AS col0 +---- +0 +98 query II rowsort label-1833 SELECT 1 AS col0, + MAX ( DISTINCT - 18 ) @@ -9839,8 +9939,11 @@ SELECT ALL 73 * + - ( + + 41 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(40\), Int64\(36\) \- Int64\(41\), Int64\(81\) \* \(\- min\(\(\- Int64\(83\)\)\)\) \* CAST\(NULL AS Int32\) \+ nullif\(Int64\(\-68\), \(\- count\(\(\- coalesce\(\(\- Int64\(\-74\)\), Int64\(62\)\)\)\)\)\)\) \+ Int64\(\-77\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( + + 40, + 36 - 41, 81 * - MIN ( - + 83 ) * + CAST ( NULL AS INTEGER ) + + + NULLIF ( - 68, - COUNT ( ALL - + COALESCE ( - - 74, 62 ) ) ) ) + - 77 col2, 52 col2 +---- +-37 +52 query I rowsort label-1868 SELECT + CAST ( NULL AS INTEGER ) * + 17 @@ -9958,8 +10061,11 @@ SELECT 27, 41 * - 92 AS col1 # 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 "Int64\(2\) AS col1" at position 0 and "Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 2 col1, - 27 AS col1 +---- +-27 +2 query I rowsort SELECT ALL + 21 + + NULLIF ( 40, - + 8 ) @@ -10331,14 +10437,20 @@ SELECT DISTINCT - COALESCE ( - 80, 40 * NULLIF ( - - 40, 13 - + SUM ( + - 40 ) - # Datafusion - Datafusion expected results: # Datafusion - Expected - -103 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \- \(\- Int64\(\-46\)\) \+ CAST\(\(\- coalesce\(\(\- Int64\(8\)\), Int64\(23\), Int64\(79\)\)\) AS Int32\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-11\) \+ Int64\(\-54\) \+ Int64\(\-35\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), CASE \(\- Int64\(80\)\) WHEN Int64\(\-71\) \- Int64\(91\) \+ \(\- Int64\(98\)\) \+ Int64\(76\) \* Int64\(39\) THEN Int64\(\-2\) \- Int64\(65\) \* Int64\(74\) WHEN max\(Int64\(64\)\) THEN NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-1 +-103 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 col1, + 73 AS col1 +---- +73 +81 query I rowsort label-1964 SELECT + 34 + + 67 + + 73 - - 19 * + - COUNT ( * ) @@ -10475,8 +10587,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int32\) AS Float64\) AS col0" at position 0 and "Int64\(20\) / Int64\(21\) \* Int64\(99\) \* Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS FLOAT8 ) col0, + 20 / + 21 * + 99 * + 40 AS col0 +---- +0 +NULL query I rowsort label-1990 SELECT ALL 76 / - 2 AS col2 @@ -10533,14 +10648,20 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col1, - 13 + 68 - 71 / - 97 col1 +---- +-1 +55 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - 22 ) AS col0, 88 AS col0 +---- +-22 +88 query I rowsort label-2002 SELECT ALL + - COUNT ( * ) / + 61 * + 25 @@ -10729,8 +10850,11 @@ 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\(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\. +query II valuesort SELECT - NULLIF ( - 98, - - COUNT ( * ) ) * - 38 + - 16 * ( - 58 ) AS col2, + ( - NULLIF ( 31, + - 24 + COUNT ( * ) ) ) AS col2 +---- +-2796 +-31 query I rowsort SELECT DISTINCT - 48 * - - 12 * - 47 AS col0 @@ -10832,8 +10956,11 @@ SELECT 61 * + 25 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 col0, + 2 AS col0 +---- +2 +78 query II rowsort label-2058 SELECT 87 - MIN ( 83 ) AS col0, - COUNT ( * ) @@ -10978,8 +11105,11 @@ SELECT ALL 59 * 47 * - - 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3120 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* Int64\(78\) AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 40 * 78 col1, + 78 AS col1 +---- +3120 +78 query I rowsort label-2085 SELECT + CAST ( NULL AS INTEGER ) * + 75 @@ -11373,8 +11503,11 @@ SELECT 96 + 52 + + - 19 + 42 / - 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1953 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \- \(\- Int64\(\-40\)\) \* sum\(Int64\(\-48\)\) \+ Int64\(13\) / Int64\(55\) \+ \(\- 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 II valuesort SELECT ALL + 33 - - - 40 * SUM ( - 48 ) + + 13 / 55 + - + 0 col0, 90 AS col0 +---- +1953 +90 query I rowsort label-2161 SELECT DISTINCT - 81 / - ( + 49 ) @@ -11431,8 +11564,11 @@ 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\(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\. +query II valuesort SELECT ALL COALESCE ( - - COUNT ( * ), COUNT ( * ) - 2 ) AS col0, + 78 * - - 79 + - 5 + 51 * - COUNT ( * ) / - 81 + + COALESCE ( 80, - 81 / + 2 ) col0 +---- +1 +6237 query I rowsort label-2172 SELECT DISTINCT 26 + COUNT ( * ) AS col1 @@ -11639,8 +11775,11 @@ SELECT + 22 * + - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 52 AS col1, 39 col1 +---- +39 +52 query I rowsort label-2212 SELECT + COUNT ( + - 65 ) @@ -11871,8 +12010,11 @@ SELECT ( - 9 ) - - 22 + SUM ( + 47 ) - + 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 190 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col0" at position 0 and "Int64\(19\) \* Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 75 col0, 19 * + 10 col0 +---- +-75 +190 query I rowsort SELECT 64 + - + 55 @@ -12112,14 +12254,20 @@ SELECT + 57 + - 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -2394 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col0" at position 0 and "Int64\(48\) \* Int64\(\-49\) \- \(\- Int64\(31\)\) \+ Int64\(76\) \* Int64\(68\) / Int64\(\-70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 4 AS col0, + 48 * - 49 - - + 31 + 76 * 68 / + - 70 AS col0 +---- +-2394 +4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -3504 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "Int64\(\-73\) \* Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 56 AS col2, - 73 * + 48 AS col2 +---- +-3504 +56 query I rowsort SELECT + 80 - + ( 9 ) * 71 @@ -12135,8 +12283,11 @@ SELECT ALL 15 AS col1, + 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "Int64\(2\) \* Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 67 AS col0, 2 * ( + 36 ) col0 +---- +67 +72 query I rowsort label-2305 SELECT DISTINCT 25 + - + MIN ( - 70 ) + - 13 * 69 @@ -12463,8 +12614,11 @@ SELECT ALL - COUNT ( * ) * - COUNT ( * ) * 31 * 58 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 278 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* Int64\(6\) \+ Int64\(80\) AS col2" at position 0 and "Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 33 * 6 + + 80 AS col2, - 37 col2 +---- +-37 +278 query II rowsort SELECT 98 AS col1, + 43 @@ -12556,8 +12710,11 @@ SELECT 59 - - + COUNT ( * ) + - - 97 + COUNT ( * ) * - + CAST ( - + 80 AS INTEGE # Datafusion - Datafusion expected results: # Datafusion - Expected - 840 # Datafusion - Expected - 4021 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(28\) AS col1" at position 0 and "Int64\(52\) \* Int64\(76\) \+ \(\- nullif\(Int64\(8\), Int64\(85\)\)\) \+ Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 * 28 AS col1, 52 * 76 + - + NULLIF ( + 8, + 85 ) + + 77 AS col1 +---- +4021 +840 query I rowsort label-2385 SELECT COALESCE ( - NULLIF ( - - 71, - ( + CAST ( NULL AS INTEGER ) ) ), + 94, + + 97 ) + - 91 col2 @@ -12602,8 +12759,11 @@ SELECT ALL NULLIF ( - + 39, 52 * - CASE + - 96 WHEN 40 THEN 58 WHEN ( 8 ) * - + # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(DISTINCT Int64\(\-74\)\)\) \* Int64\(75\) AS col1" at position 0 and "Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( DISTINCT + - 74 ) * + ( + + 75 ) AS col1, - 79 AS col1 +---- +-75 +-79 query I rowsort label-2394 SELECT ALL COALESCE ( + - COUNT ( ALL + - 79 ), COUNT ( * ) / 82, 18 ) AS col0 @@ -12818,8 +12978,11 @@ SELECT ALL - NULLIF ( 76, + + 3 - + COUNT ( * ) * - - 39 ) / + 76 + - 66 + - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2985840 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \* Int64\(26\) \* Int64\(15\) \* Int64\(87\) AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 88 * 26 * + 15 * + 87 col1, 8 AS col1 +---- +-2985840 +8 query I rowsort label-2436 SELECT - 5 / + 7 @@ -12965,8 +13128,11 @@ SELECT ALL 49 * + - 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 113 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col0" at position 0 and "Int64\(97\) \+ Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 29 col0, ( + 97 ) + 16 col0 +---- +113 +29 query I rowsort SELECT DISTINCT - 93 - - + 20 AS col1 @@ -13824,8 +13990,11 @@ SELECT DISTINCT + 87 * 23 + + - 83 * + 49 * - 77 * 37 * COUNT ( * ) + + + CAST ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) AS col2" at position 0 and "Int64\(46\) \- Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 74 AS col2, 46 - + 6 AS col2 +---- +-74 +40 query I rowsort label-2626 SELECT ALL - + 95 * 44 * 10 + + COUNT ( + 12 ) col2 @@ -13966,8 +14135,11 @@ SELECT COALESCE ( - 66, + COALESCE ( 9, + 31 + - - 19 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2310 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \* Int64\(66\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 35 * 66 AS col0, + 12 AS col0 +---- +-2310 +12 query I rowsort label-2652 SELECT ALL + 85 * + - COUNT ( * ) + - - ( - + 8 ) + + 96 + - - COUNT ( * ) + 82 + - 53 / - ( - 7 ) @@ -14055,8 +14227,11 @@ SELECT ALL - 49 * + - 52 * + COUNT ( DISTINCT + ( + ( + + 83 ) ) ) AS col0, + 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, 36 AS col0 +---- +1 +36 query I rowsort label-2669 SELECT - COUNT ( * ) + - 37 - - ( - 39 ) @@ -14285,8 +14460,12 @@ SELECT DISTINCT - - 52 + - 89 * - + 21 AS col1 # Datafusion - Expected - -52 # Datafusion - Expected - -3052 # Datafusion - Expected - 1887 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(21\), Int64\(22\)\) \+ \(\- Int64\(73\)\) AS col0" at position 0 and "Int64\(\-23\) \* \(\- Int64\(82\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL NULLIF ( + 21, + 22 ) + - + 73 AS col0, - 35 * 86 + + - 42, - 23 * - + 82 + COUNT ( * ) AS col0 +---- +-3052 +-52 +1887 query I rowsort SELECT ALL - 69 * 14 * 26 @@ -15326,14 +15505,20 @@ SELECT ALL + 38 - - 4 + - + 44 * SUM ( ( + 0 ) ) - + + 87 + + + 76 AS col1, 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5082 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-77\) AS Int32\) \* Int64\(\-66\) \* \(\- \(\- count\(Int64\(23\)\)\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( - 77 AS INTEGER ) * - 66 * - - COUNT ( 23 ) AS col1, - COUNT ( * ) col1 +---- +-1 +5082 # 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * 22 * + 97 col1, + 72 AS col1 +---- +2134 +72 query I rowsort SELECT DISTINCT ( 82 ) col1 @@ -16199,8 +16384,11 @@ SELECT DISTINCT + - 80 - - - 37 - - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col1" at position 0 and "Int64\(71\) \+ \(\- Int64\(44\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 96 AS col1, + 71 + - + 44 AS col1 +---- +27 +96 query I rowsort SELECT DISTINCT - 60 col1 @@ -16241,8 +16429,11 @@ SELECT - COUNT ( * ) / - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -800 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) / Int64\(58\) AS col2" at position 0 and "Int64\(\-48\) \+ Int64\(8\) \* Int64\(\-94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( 68 ) / 58 AS col2, - 48 + + 8 * - 94 AS col2 +---- +-800 +1 query I rowsort label-3088 SELECT DISTINCT + 48 / 3 - 87 / + 81 + + 50 @@ -16604,8 +16795,11 @@ SELECT + - 54 - - 11 / - COUNT ( DISTINCT - COALESCE ( + 31, + 49 ) ) AS col1 # 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\(DISTINCT Int64\(91\)\) AS col1" at position 0 and "Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( DISTINCT 91 ) AS col1, - 84 AS col1 +---- +-84 +1 query I rowsort label-3157 SELECT - ( + SUM ( + 97 ) ) + + 37 @@ -16679,8 +16873,11 @@ SELECT ALL - 57 * + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6440 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ \(\- Int64\(74\)\) \* Int64\(\-87\) AS col1" at position 0 and "Int64\(\-53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 2 + - + 74 * + - 87 AS col1, - 53 col1 +---- +-53 +6440 query I rowsort label-3171 SELECT ALL SUM ( - - CAST ( NULL AS INTEGER ) ) AS col2 @@ -16716,8 +16913,11 @@ SELECT + 69, 2 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6047 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) \* Int64\(84\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CASE Int64\(83\) WHEN \(\- CAST\(Int64\(30\) AS Int32\)\) \* Int64\(5\) THEN Int64\(71\) \+ Int64\(53\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 72 * + 84 + COUNT ( * ) AS col2, + CASE + 83 WHEN - CAST ( + 30 AS INTEGER ) * + ( 5 ) THEN ( + 71 ) + + 53 END AS col2 +---- +-6047 +NULL query II rowsort SELECT + 27, + 37 AS col2 @@ -17132,8 +17332,11 @@ SELECT ALL ( - NULLIF ( 49, - 79 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7118 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* \(\- max\(Int64\(73\)\)\) \* count\(Int64\(32\)\) \+ Int64\(60\) \* \(\- Int64\(87\)\) AS col0" at position 0 and "Int64\(\-9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 26 * ( - MAX ( ALL 73 ) ) * COUNT ( ALL 32 ) + + 60 * - + 87 AS col0, - 9 AS col0 +---- +-7118 +-9 query I rowsort label-3257 SELECT - - NULLIF ( 12, COUNT ( * ) ) @@ -17992,8 +18195,11 @@ SELECT + 51 + 29 + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 23 AS col2, 6 AS col2 +---- +-23 +6 query I rowsort label-3417 SELECT ALL + COUNT ( * ) * 78 + 93 * 54 @@ -18090,8 +18296,11 @@ SELECT + 34 + 82 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2280 # Datafusion - Expected - 7820 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \* \(\- coalesce\(sum\(DISTINCT Int64\(57\)\), Int64\(90\) \* Int64\(33\)\)\) AS col1" at position 0 and "Int64\(92\) \* Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 40 * - + COALESCE ( + SUM ( DISTINCT + 57 ), + 90 * 33 ) AS col1, + 92 * + + 85 AS col1 +---- +2280 +7820 query I rowsort SELECT ALL - 22 * - 43 AS col1 @@ -18280,8 +18489,11 @@ SELECT 4 * + + 37 * + + 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2496 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-96\)\) \* \(\- Int64\(\-26\)\) AS col0" at position 0 and "Int64\(\-2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - 96 ) * - - 26 AS col0, - 2 AS col0 +---- +-2 +2496 query I rowsort label-3471 SELECT - ( - 62 ) * - + CAST ( COUNT ( * ) AS INTEGER ) * + 49 + - 4 * + 71 col0 @@ -19294,8 +19506,11 @@ SELECT + + COUNT ( * ) * 78 + + 4 AS col1 # 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\(3\) \+ \(\- Int64\(\-46\)\) AS col2" at position 0 and "Int64\(\-21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 3 + - - 46 AS col2, - 21 AS col2 +---- +-21 +49 query I rowsort label-3664 SELECT - - 55 / 41 * 31 + + 74 AS col2 @@ -19554,8 +19769,11 @@ SELECT 64 * + 74 * + - NULLIF ( - - 82, + - 32 / - - ( + + 69 ) * + 19 * - 40 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(CAST\(NULL AS Int32\)\) \* \(\- Int64\(\-51\)\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL ( + AVG ( CAST ( NULL AS INTEGER ) ) ) * - - 51 AS col1, 99 AS col1 +---- +99 +NULL query I rowsort label-3712 SELECT ALL ( COUNT ( * ) ) * - - 37 AS col0 @@ -19742,8 +19960,11 @@ SELECT + MAX ( DISTINCT 36 ) + + 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col0" at position 0 and "Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 83 AS col0, 62 col0 +---- +-83 +62 query I rowsort SELECT - + 65 + - 39 @@ -19774,8 +19995,11 @@ NULL # 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\(21\) WHEN \(\- Int64\(58\)\) THEN Int64\(\-42\) \* Int64\(9\) WHEN Int64\(24\) THEN \(\- Int64\(\-39\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 65 AS col1, CASE 21 WHEN - + 58 THEN - 42 * 9 WHEN + 24 THEN - - 39 END AS col1 +---- +-65 +NULL query I rowsort SELECT - 57 * + 98 @@ -19832,8 +20056,12 @@ SELECT ALL COALESCE ( + - 52, + 98 ) * - COUNT ( * ) + 10 # Datafusion - Expected - -73 # Datafusion - Expected - 2120 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(\-73\)\) AS col2" at position 0 and "\(\- Int64\(\-52\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + SUM ( DISTINCT - 73 ) col2, 53 * 40, - - 52 AS col2 +---- +-73 +2120 +52 query I rowsort SELECT DISTINCT - 62 * + 81 col1 @@ -20615,8 +20843,11 @@ SELECT + + 60 / - 95 * - - CAST ( + - 62 AS INTEGER ) + + 62 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -456 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(33\)\) \* Int64\(12\) \+ Int64\(\-60\) AS col2" at position 0 and "Int64\(\-40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 33 * + 12 + - 60 AS col2, - 40 AS col2 +---- +-40 +-456 query I rowsort label-3913 SELECT + - 16 + + CAST ( NULL AS INTEGER ) + - 57 AS col1 @@ -20654,8 +20885,11 @@ SELECT - + MIN ( DISTINCT - 24 ) * + 12 - - NULLIF ( 38, - 85 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1764 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* Int64\(\-63\) AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 28 * + - 63 col0, 59 AS col0 +---- +-1764 +59 query II rowsort SELECT 82 AS col0, - 48 @@ -20746,8 +20980,11 @@ NULL # 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 "\(\- Int64\(1\)\) AS col2" at position 0 and "sum\(Int64\(80\)\) \+ Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 1 col2, + SUM ( 80 ) + 46 col2 +---- +-1 +126 query I rowsort SELECT ALL + + 10 + 47 * 16 + - 6 AS col2 @@ -20880,8 +21117,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -679 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* \(\- Int64\(97\)\) AS col0" at position 0 and "\(\- Int64\(67\)\) / Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 * - + 97 AS col0, - ( 67 ) / + 51 AS col0 +---- +-1 +-679 query I rowsort label-3962 SELECT ALL - CASE - 0 WHEN + COUNT ( * ) THEN 96 END @@ -21052,8 +21292,11 @@ SELECT DISTINCT 7 + - 52 + 4 * - 88 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - -4560 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "Int64\(16\) \* Int64\(15\) \* Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 34 AS col0, + 16 * + 15 * - 19 AS col0 +---- +-4560 +34 query I rowsort label-3995 SELECT 42 * COUNT ( * ) + - + 9 * + 64 @@ -21317,8 +21560,11 @@ SELECT DISTINCT - + MIN ( DISTINCT - 86 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 897 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col2" at position 0 and "Int64\(69\) \* Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 27 AS col2, + ( 69 ) * 13 AS col2 +---- +-27 +897 query I rowsort SELECT ( + 94 ) * + 31 * + - 84 + - ( + NULLIF ( - + 23, ( - + 55 ) ) ) AS col1 @@ -21721,8 +21967,11 @@ SELECT MAX ( 6 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1505 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \* Int64\(35\) AS col1" at position 0 and "Int64\(2\) \+ Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 43 * + 35 AS col1, 2 + 82 AS col1 +---- +-1505 +84 query I rowsort label-4122 SELECT DISTINCT 7 - - + COALESCE ( + 17, + 47 * + NULLIF ( + + 6, + - 70 + CASE + + 99 WHEN + - 39 * + 26 THEN 85 END + + + 0 * + SUM ( DISTINCT - 50 ) / 73 ) + - 55 + + - 61, 67 * 57 - + - 46 + + COALESCE ( + 35, + 84 ) * + + 0 * - - 27 + + 98 ) @@ -21804,8 +22053,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) + + SUM ( 75 ) AS col2, 51 AS col2 +---- +51 +74 query I rowsort label-4138 SELECT + COUNT ( * ) + - - 99 + + 71 @@ -22556,8 +22808,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - ( - COUNT ( * ) ) col1, 41 AS col1 +---- +1 +41 query I rowsort label-4283 SELECT ALL 66 * - 29 * + 56 + + 93 / 79 @@ -22962,8 +23217,11 @@ SELECT ALL - 35 + + 52 - - 64 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-72\)\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 72 AS col0, + 43 AS col0 +---- +43 +72 query I rowsort SELECT 24 * - 22 AS col0 @@ -23013,8 +23271,11 @@ SELECT - COUNT ( ALL - 94 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 91 + COUNT ( * ) AS col2, + 77 col2 +---- +-90 +77 query I rowsort SELECT + 96 * - 56 * 94 * 36 @@ -23049,14 +23310,20 @@ SELECT + ( + - 91 ) + - 86 / + + 63 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -3936 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \+ Int64\(55\) AS col2" at position 0 and "Int64\(\-41\) \* Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 13 + 55 AS col2, - 41 * + 96 col2 +---- +-3936 +68 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1615 # Datafusion - Expected - 1320 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* \(\- Int64\(85\)\) AS col2" at position 0 and "Int64\(\-44\) \* \(\- Int64\(30\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 19 * - + 85 AS col2, - 44 * - + 30 AS col2 +---- +-1615 +1320 query I rowsort SELECT + 25 * 8 @@ -23565,8 +23832,11 @@ SELECT ALL - COUNT ( * ) + + + COUNT ( * ) AS col0, ( - + 0 ) # 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\(\-3\) \* Int64\(\-6\) AS col1" at position 0 and "Int64\(59\) / nullif\(\(\- Int64\(91\)\), Int64\(82\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 3 * + - 6 AS col1, 59 / + + ( NULLIF ( - + 91, + 82 ) ) AS col1 +---- +0 +18 query I rowsort label-4475 SELECT COALESCE ( + 18, - 81 / + 61, 76 ) * NULLIF ( 9, - + CAST ( ( COUNT ( * ) ) AS INTEGER ) ) col2 @@ -24509,8 +24779,11 @@ SELECT 39 * + ( - + COUNT ( DISTINCT - 19 ) ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col1" at position 0 and "Int64\(97\) \* CAST\(NULL AS Int32\) \* Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 18 AS col1, 97 * + CAST ( NULL AS INTEGER ) * 28 AS col1 +---- +-18 +NULL query I rowsort label-4656 SELECT 5 * 5 + + SUM ( DISTINCT ( 38 ) ) AS col1 @@ -24614,8 +24887,11 @@ SELECT ALL + 84 / - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \- 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 II valuesort SELECT ALL 21 - + 7 AS col2, - 65 AS col2 +---- +-65 +14 query II rowsort SELECT ALL - 32 - - 98 AS col0, - COALESCE ( 20, 52 ) @@ -24979,8 +25255,11 @@ SELECT - 78 * - COALESCE ( COUNT ( * ), - 99 + - 73 + 63 * + NULLIF ( MIN ( ALL # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 402 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \+ Int64\(63\) \* Int64\(0\) AS col2" at position 0 and "Int64\(12\) \* Int64\(83\) / Int64\(78\) \+ Int64\(\-78\) \* Int64\(\-5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( 70 ) + + 63 * 0 col2, + 12 * 83 / + 78 + - 78 * - 5 AS col2 +---- +402 +70 query I rowsort label-4747 SELECT - 90 + - SUM ( DISTINCT - 58 ) @@ -26115,8 +26394,11 @@ 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\(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\. +query IR valuesort SELECT + COUNT ( * ) * - 71 * + - 76 AS col2, + CASE + + COUNT ( * ) WHEN + 64 THEN AVG ( ALL 82 ) + - - 84 WHEN + - 49 THEN NULL END AS col2 +---- +5396 +NULL query I rowsort label-4963 SELECT DISTINCT + COUNT ( * ) + - + 37 * + COUNT ( * ) AS col2 @@ -26153,8 +26435,11 @@ 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\(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\. +query II valuesort SELECT - - COUNT ( * ) / 57 + - - 72 * NULLIF ( 88, + 3 + - 54 + + 84 ) AS col0, + ( + - 87 ) * + 32 col0 +---- +-2784 +6336 query I rowsort SELECT ALL - - 8 * - 88 * + 67 @@ -26180,8 +26465,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) - - 77 AS col2, + 11 + + 50 + + 44 * + 9 AS col2 +---- +457 +76 query I rowsort SELECT - + 40 + + + 78 AS col1 @@ -26222,8 +26510,11 @@ SELECT ALL + 57 * - ( - 30 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -1539 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col2" at position 0 and "Int64\(81\) \* Int64\(\-19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 col2, 81 * - 19 AS col2 +---- +-1539 +60 query I rowsort label-4983 SELECT DISTINCT + 48 * - COUNT ( * ) @@ -26722,8 +27013,11 @@ SELECT 28 * 55 col1 # 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\(\-15\) AS col1" at position 0 and "Int64\(66\) \* Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 15 AS col1, 66 * - 40 AS col1 +---- +-15 +-2640 query I rowsort label-5078 SELECT - - 95 / + 5 + - - CAST ( NULL AS INTEGER ) - + 12 * - 78 + - COUNT ( * ) @@ -26744,8 +27038,11 @@ SELECT COALESCE ( - 68, + - COUNT ( DISTINCT ( - + 23 ) ), + 43 ) + - 22 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(91\)\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 91 AS col1, 65 AS col1 +---- +-91 +65 query II rowsort SELECT - 26, + 56 AS col2 @@ -26936,8 +27233,11 @@ SELECT - - MAX ( + 4 ) * SUM ( ALL 17 ) * - 59 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 82 col0, + 7 AS col0 +---- +7 +82 query II rowsort SELECT ALL + - 94 * + + 87, 49 * 59 col1 @@ -27609,8 +27909,11 @@ SELECT DISTINCT + ( + + ( COUNT ( * ) ) ) * - + 31 / + 78 + + NULLIF ( + 9, MIN # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(\-71\) \+ Int64\(95\) \+ nullif\(CASE Int64\(68\) WHEN Int64\(\-4\) THEN Int64\(79\) END, Int64\(\-95\)\) AS col2" at position 0 and "\(\- Int64\(\-40\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 49 * - 71 + + 95 + NULLIF ( + + CASE + 68 WHEN - 4 THEN 79 END, + - 95 ) AS col2, - ( - 40 ) AS col2 +---- +40 +NULL query I rowsort label-5247 SELECT 14 * 5 - + COUNT ( ALL - + 38 ) AS col0 @@ -27666,8 +27969,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, 54 AS col0 +---- +-1 +54 query I rowsort label-5258 SELECT ALL SUM ( DISTINCT - - 9 ) col0 @@ -27720,8 +28026,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) * 69 AS col2, 66 AS col2 +---- +66 +69 query II rowsort SELECT 2 + 38 AS col0, - 8 AS col2 @@ -27913,8 +28222,11 @@ SELECT + MAX ( DISTINCT - + 89 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1861 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(\-90\) \+ Int64\(29\) AS col2" at position 0 and "Int64\(81\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 21 * - 90 + + 29 col2, 81 * + + COUNT ( * ) AS col2 +---- +-1861 +81 query I rowsort label-5305 SELECT CAST ( NULL AS INTEGER ) * MIN ( DISTINCT + 61 ) AS col1 @@ -27991,8 +28303,11 @@ SELECT ALL + - ( - + 42 ) * + 53 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - CAST ( NULL AS INTEGER ) AS col1, + 34 col1 +---- +34 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -28087,8 +28402,12 @@ 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\(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\. +query III valuesort 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 +---- +41 +444912 +NULL query II rowsort label-5337 SELECT DISTINCT ( + COUNT ( * ) ), + 38 + 55 * + 79 * 43 AS col1 @@ -28304,8 +28623,11 @@ SELECT - COALESCE ( 91, - ( + COUNT ( * ) ), NULLIF ( - 93, - + 39 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col1, - 30 AS col1 +---- +-30 +NULL query I rowsort SELECT DISTINCT + 43 * + 97 AS col1 @@ -28376,8 +28698,11 @@ SELECT DISTINCT 10 + 70 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* \(\- max\(DISTINCT Int64\(0\)\)\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 * - MAX ( DISTINCT - 0 ) AS col1, + 34 AS col1 +---- +0 +34 query I rowsort label-5392 SELECT + 6 * - + COUNT ( * ) + - - 26 - + - 14 @@ -28811,8 +29136,11 @@ SELECT + SUM ( DISTINCT + ( + 99 ) ) * - 12 # 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 "Int64\(\-81\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 81 AS col1, + 14 AS col1 +---- +-81 +14 query I rowsort SELECT - 47 + - 48 @@ -28975,8 +29303,11 @@ SELECT 1 * ( - 43 ) * CASE + 29 WHEN + 88 THEN NULL ELSE 84 * - 85 END + + 36 + # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-29\)\) \* Int64\(\-72\) \* \(\- Int64\(\-4\)\) / CASE Int64\(\-56\) WHEN Int64\(\-32\) \- Int64\(99\) \+ \(\- \(\- coalesce\(\(\- Int64\(68\)\), Int64\(\-56\) \* \(\- Int64\(29\)\) \+ Int64\(92\) \+ count\(Int64\(1\)\) AS count\(\*\), \(\- min\(\(\- Int64\(\-8\)\)\)\) \* \(\- Int64\(31\)\), \(\- Int64\(54\)\)\)\)\) THEN Int64\(9\) \+ Int64\(\-1\) END \+ Int64\(46\) \* Int64\(\-24\) / \(\- Int64\(94\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +87 +NULL query I rowsort SELECT - 48 - + 15 col1 @@ -28991,8 +29322,11 @@ SELECT COUNT ( DISTINCT + 19 ) AS col0 # 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\(\-6\) \* Int64\(3\) AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 6 * + 3 AS col2, 74 AS col2 +---- +-18 +74 query I rowsort label-5506 SELECT ALL - MIN ( ALL + 23 ) @@ -29181,8 +29515,11 @@ SELECT COALESCE ( + + 91, - 21 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 558 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "Int64\(9\) \* Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 20 AS col0, + 9 * 62 AS col0 +---- +20 +558 query II rowsort label-5542 SELECT ALL ( - + COUNT ( * ) ) * + 41 + 73 * 1 / - MIN ( DISTINCT 90 ) + + ( + - 20 ), 0 + - 89 AS col0 @@ -29682,14 +30019,20 @@ SELECT 26 * - 32 * - 21, - 91 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(85\)\) AS col2" at position 0 and "Int64\(42\) \+ Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 85 col2, ( + + 42 ) + + ( 3 ) AS col2 +---- +-85 +45 # 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 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 II valuesort SELECT ALL + COUNT ( * ) + ( 1 ) AS col0, 85 AS col0 +---- +2 +85 query I rowsort SELECT ALL 58 * + - 64 AS col1 @@ -29734,8 +30077,11 @@ SELECT 80 * + COUNT ( * ) * - 27 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1050 # Datafusion - Expected - -199578 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(25\) AS col1" at position 0 and "Int64\(\-62\) \* \(\- Int64\(87\)\) \* Int64\(\-37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 42 * 25 AS col1, - 62 * - + 87 * + - 37 AS col1 +---- +-199578 +1050 query I rowsort label-5649 SELECT - 0 / CASE + + 61 WHEN + - 37 * - - 51 + - + 18 THEN NULL WHEN + COUNT ( * ) * + - NULLIF ( - 38, 46 * - + CAST ( NULL AS INTEGER ) * + 33 ) + + 52 - - 87 * + - 8 * + 78 / - 94 - 93 THEN NULL ELSE - 14 END - + COALESCE ( + 41, 91 / + 22 * + 7 ) / - - COUNT ( * ) @@ -29884,8 +30230,11 @@ SELECT + 41 + - - 79 + + 96 AS col2, - 31 + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col1" at position 0 and "Int64\(19\) \+ Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 AS col1, 19 + + 38 AS col1 +---- +37 +57 query I rowsort SELECT + 59 * + - 9 * - - 38 AS col0 @@ -29956,8 +30305,11 @@ SELECT ALL + + 14 * - NULLIF ( + - 88, 53 ) + + - 15 * - CAST ( - COUNT ( ( + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 659 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-48\)\) \* \(\- \(\- Int64\(14\)\)\) \+ Int64\(\-6\) \+ Int64\(\-91\) \+ Int64\(\-3\) \* Int64\(\-28\) AS col1" at position 0 and "\(\- Int64\(79\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 48 * - - ( + 14 ) + + - 6 + + ( - 91 ) + - 3 * - 28 AS col1, + ( - + 79 ) AS col1 +---- +-79 +659 query I rowsort label-5692 SELECT DISTINCT + 87 * COUNT ( * ) + - 95 - - ( - ( - + 64 ) ) * 14 AS col1 @@ -30013,8 +30365,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 25 + - COUNT ( * ) AS col2, 46 AS col2 +---- +-26 +46 query I rowsort SELECT DISTINCT + 48 * - 73 @@ -30034,8 +30389,11 @@ SELECT - 96 * + 4 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(8\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) * + + 8 AS col2, + COUNT ( * ) AS col2 +---- +1 +8 query II rowsort SELECT ALL ( 44 ), 29 col0 @@ -30051,8 +30409,11 @@ SELECT ALL + 49 * - - 45 * - - 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col2, + 3 AS col2 +---- +3 +NULL query I rowsort label-5710 SELECT DISTINCT CAST ( + 45 AS INTEGER ) @@ -30402,8 +30763,11 @@ 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\(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\. +query IR valuesort 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 +---- +-77 +NULL query II rowsort label-5777 SELECT 94 AS col1, CAST ( 77 AS INTEGER ) / - - 78 + 18 + + - 37 @@ -30521,8 +30885,11 @@ SELECT - 99 * + + COUNT ( * ) + + 77 * COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 36 AS col2, 31 AS col2 +---- +31 +36 query II rowsort label-5800 SELECT - + 29 * + CAST ( + + 47 AS INTEGER ) * - 37, COUNT ( * ) * 77 * - - 65 AS col1 @@ -30667,8 +31034,11 @@ SELECT + + 1 * + - 47 * COALESCE ( + - CAST ( NULL AS INTEGER ), - 26 ) * - 92 + # Datafusion - Datafusion expected results: # Datafusion - Expected - -6048 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* Int64\(\-63\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 96 * - 63 AS col1, 79 AS col1 +---- +-6048 +79 query I rowsort label-5828 SELECT + CAST ( NULL AS INTEGER ) / 74 + CAST ( NULL AS INTEGER ) AS col1 @@ -30737,8 +31107,11 @@ SELECT DISTINCT + SUM ( ALL + - 2 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) / nullif\(Int64\(33\), \(\- Int64\(\-55\)\)\) \* \(\- Int64\(65\)\) \+ Int64\(\-48\) AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 0 / ( NULLIF ( + 33, - - 55 ) ) * - ( + 65 ) + - 48 col1, 39 AS col1 +---- +-48 +39 query I rowsort label-5841 SELECT DISTINCT - 90 * + - 71 - MAX ( DISTINCT 31 ) @@ -30748,8 +31121,11 @@ SELECT DISTINCT - 90 * + - 71 - MAX ( DISTINCT 31 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 545 # Datafusion - Expected - 112 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* Int64\(42\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(93\) \+ Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 13 * + 42 - + COUNT ( * ) col0, + 93 + + 19 AS col0 +---- +112 +545 query I rowsort label-5843 SELECT + MIN ( - NULLIF ( 78, 48 + - 22 ) ) @@ -30774,8 +31150,11 @@ 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\(1\)\) AS count\(\*\)\), Int64\(15\) \+ Int64\(\-47\)\) / Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 86 col1, NULLIF ( - COUNT ( * ), + 15 + + - 47 ) / - 20 AS col1 +---- +-86 +0 query I rowsort label-5848 SELECT DISTINCT COALESCE ( 30, - 45 - + 16 + + + 4 / 6 + + 10 + + - 51 + 43 * + 15 + + 10 * + 96 * + 66 / + 74, + - COUNT ( * ) + - CASE + + 16 WHEN 38 + + + 83 THEN - 36 ELSE NULL END ) AS col0 @@ -30911,8 +31290,11 @@ SELECT ( - 56 ) + - + 43 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43542 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* Int64\(\-44\) \* \(\- Int64\(\-30\)\) \- Int64\(\-18\) AS col2" at position 0 and "\(\- max\(\(\- Int64\(\-97\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 33 * - 44 * - - 30 - + - 18 AS col2, - MAX ( ALL - - 97 ) col2 +---- +-43542 +-97 query II rowsort label-5874 SELECT ALL - 5, COUNT ( * ) * - + NULLIF ( 0, 86 / + + 29 ) AS col2 @@ -31015,8 +31397,11 @@ SELECT DISTINCT - - 77 + - 8 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 2828 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col0" at position 0 and "Int64\(40\) \* Int64\(73\) \- Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 AS col0, 40 * ( + 73 ) - 92 AS col0 +---- +-90 +2828 query I rowsort SELECT - 25 - + - 99 AS col2 @@ -31891,8 +32276,11 @@ SELECT - SUM ( ALL - 13 ), + 86 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + 93 ) AS col1, 66 AS col1 +---- +66 +93 query I rowsort label-6061 SELECT - COUNT ( * ) * - - COUNT ( - 18 ) @@ -32150,8 +32538,11 @@ SELECT + 39 AS col1, 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - -512 # Datafusion - Expected - 2536 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(\-64\)\) \* Int64\(8\) AS col2" at position 0 and "Int64\(98\) \* Int64\(26\) \+ min\(DISTINCT Int64\(\-12\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( DISTINCT + - 64 ) * + 8 AS col2, 98 * 26 + + MIN ( DISTINCT - 12 ) AS col2 +---- +-512 +2536 query I rowsort label-6110 SELECT + + NULLIF ( + - 59, - 32 * + MAX ( + 99 ) + 47 + - - 78 ) @@ -33829,8 +34220,11 @@ SELECT DISTINCT + 46 + + 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1810 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \+ Int64\(61\) \* \(\- Int64\(\-31\)\) AS col1" at position 0 and "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 + + 61 * - - 31 AS col1, 58 col1 +---- +1810 +58 query I rowsort label-6432 SELECT + 86 + 94 + - 3 / + + 4 * 42 - + 29 AS col1 @@ -34279,8 +34673,11 @@ SELECT NULLIF ( + 21, - 70 * - 68 + - 65 * - 29 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, 96 AS col0 +---- +1 +96 query I rowsort SELECT - 41 + 92 AS col2 @@ -34310,8 +34707,11 @@ SELECT SUM ( DISTINCT - 20 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 96 col2, 39 AS col2 +---- +39 +96 query I rowsort label-6524 SELECT + CASE + 17 WHEN - - COUNT ( * ) * + 49 + ( COUNT ( * ) ) THEN + - 26 END + + + 3 + - CASE + 97 WHEN MAX ( DISTINCT + 12 ) / + 83 THEN 1 END @@ -34448,8 +34848,11 @@ 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\(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\. +query II valuesort SELECT + + 5 AS col2, + CASE + - COUNT ( * ) WHEN 83 THEN + 84 ELSE NULL END - - 34 AS col2 +---- +5 +NULL query II rowsort label-6550 SELECT 91 AS col0, 74 * - - MIN ( - 35 ) @@ -34554,8 +34957,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 193 # Datafusion - Expected - -3230 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ Int64\(96\) AS col2" at position 0 and "Int64\(\-38\) \* Int64\(\-85\) \* \(\- \(\- \(\- count\(DISTINCT Int64\(\-96\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 97 + 96 AS col2, - 38 * - 85 * - - ( - COUNT ( DISTINCT - 96 ) ) AS col2 +---- +-3230 +193 query II rowsort label-6570 SELECT - COUNT ( * ) + - + 46 + 79 - 80 + - + 97, 97 AS col0 @@ -34703,8 +35109,11 @@ SELECT 12 - 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 AS col2, + COUNT ( * ) AS col2 +---- +1 +37 query I rowsort label-6599 SELECT COALESCE ( - ( + + 36 ), + - 18 - - - ( - 50 ), - 84 * + + 29 * - 0 ) * COALESCE ( 14, 5, 36 + COUNT ( * ) ) / 5 @@ -34763,8 +35172,11 @@ SELECT ALL 41 - 97 / - 79 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10716 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(2\) \* Int64\(94\) \* Int64\(\-57\) AS col0" at position 0 and "CASE Int64\(\-98\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN \(\- CAST\(NULL AS Int32\)\) \* Int64\(71\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) * + 2 * + 94 * - 57 AS col0, + CASE - 98 WHEN + COUNT ( * ) THEN + - CAST ( NULL AS INTEGER ) * 71 ELSE NULL END AS col0 +---- +10716 +NULL query I rowsort label-6610 SELECT DISTINCT + 27 / + 5 / + 1 AS col0 @@ -34892,8 +35304,11 @@ SELECT ALL - + CAST ( 53 AS INTEGER ) * - 22 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 270 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* \(\- Int64\(\-15\)\) AS col0" at position 0 and "nullif\(max\(\(\- Int64\(97\)\)\), nullif\(Int64\(8\), Int64\(34\)\)\) / Int64\(\-62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 18 * - - 15 AS col0, + NULLIF ( MAX ( - + 97 ), ( + NULLIF ( + + 8, + + 34 ) ) ) / - 62 AS col0 +---- +1 +270 query I rowsort SELECT - 73 + - - 29 + - 39 @@ -35114,8 +35529,11 @@ SELECT ALL + COUNT ( * ) + 71 * + ( 95 ) - + 65 # 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\(DISTINCT Int64\(76\)\)\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( DISTINCT + + 76 ) AS col1, 93 AS col1 +---- +-1 +93 query II rowsort label-6677 SELECT ALL ( + + 59 ), - NULLIF ( + COUNT ( * ), - + 85 ) * + + 21 AS col0 @@ -35177,8 +35595,11 @@ SELECT + + 17 / - 18 + MAX ( 42 ) + + - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 AS col0, 46 AS col0 +---- +16 +46 query I rowsort label-6689 SELECT - 5 * + COUNT ( DISTINCT + 51 ) AS col1 @@ -35307,8 +35728,12 @@ NULL # Datafusion - Expected - -19 # Datafusion - Expected - -42 # Datafusion - Expected - 492575 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col2" at position 1 and "Int64\(85\) \* \(\- max\(Int64\(61\)\)\) \* Int64\(\-95\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 45 + - 64 col0, - 42 col2, + 85 * - MAX ( + 61 ) * + - 95 AS col2 +---- +-19 +-42 +492575 query I rowsort SELECT ALL - 44 * + + 16 @@ -35437,8 +35862,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 17 AS col0, + COUNT ( * ) * - 77 col0 +---- +-77 +17 query I rowsort label-6738 SELECT + ( - - COALESCE ( COALESCE ( - 83, COUNT ( DISTINCT - - 48 ) ), 67 * + ( + CASE + - 22 WHEN 21 + CAST ( NULL AS INTEGER ) THEN NULL WHEN 99 + - ( - 8 ) THEN + + 18 ELSE - 26 - + - 16 * 57 END ), 32 * - 44 ) ) / - NULLIF ( + 18 - - 57, + 0 ) @@ -35556,8 +35984,12 @@ NULL # Datafusion - Expected - 2368 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 and "Int64\(97\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 43 * + + 54 + + COUNT ( * ) * + 46, - CAST ( NULL AS INTEGER ) AS col0, + 97 AS col0 +---- +2368 +97 +NULL query I rowsort label-6760 SELECT ALL + 24 * + CAST ( NULL AS INTEGER ) col1 @@ -35670,8 +36102,12 @@ SELECT + ( - 94 ) + - - ( + - 54 ) # Datafusion - Expected - 5138 # Datafusion - Expected - -15 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) \+ Int64\(88\) / Int64\(\-56\) AS col2" at position 1 and "Int64\(\-75\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + COALESCE ( 60, COUNT ( DISTINCT 13 ) * + - 52, + - COUNT ( * ) ) / + SUM ( DISTINCT + ( 60 ) ) + + 7 + + + 76 / 7 * 57 * + 9, - 14 + + + 88 / + - 56 col2, - 75 AS col2 +---- +-15 +-75 +5138 query I rowsort label-6782 SELECT DISTINCT - 60 / - + 27 + - + COALESCE ( + COUNT ( * ), + COUNT ( ALL + - 99 ) * + CAST ( 59 AS INTEGER ) ) AS col0 @@ -35957,8 +36393,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(7\) \* Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 / - - 50 AS col0, COALESCE ( - - ( - 22 ), 3 * ( COUNT ( * ) ) ) * 7 * + 4 AS col0 +---- +-616 +0 query I rowsort label-6835 SELECT ALL - - ( + COUNT ( * ) ) / + 50 AS col0 @@ -36217,8 +36656,11 @@ SELECT + 62, 96 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) col2, - 34 AS col2 +---- +-34 +1 query I rowsort label-6885 SELECT DISTINCT ( + ( CAST ( NULL AS INTEGER ) ) ) * + - 74 @@ -36630,8 +37072,11 @@ SELECT - + 22 + COUNT ( ALL - 2 ) + + + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - -4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(50\)\) AS col2" at position 0 and "Int64\(50\) \* \(\- max\(\(\- Int64\(\-87\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 50 AS col2, 50 * - MAX ( - - 87 ) AS col2 +---- +-4350 +-50 query I rowsort SELECT ALL - 41 + 24 @@ -36739,8 +37184,11 @@ SELECT - 88 / - + 10 + + 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(24\)\) AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - + 24 ) AS col2, + 65 AS col2 +---- +-24 +65 query I rowsort label-6986 SELECT NULLIF ( - 1, - MAX ( DISTINCT - 93 ) ) AS col0 @@ -36761,8 +37209,11 @@ SELECT + 98 * + 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 8 AS col1, + 35 AS col1 +---- +35 +8 query I rowsort SELECT ALL + + 83 * + 23 @@ -36803,8 +37254,11 @@ SELECT DISTINCT NULLIF ( + 23, ( NULLIF ( + 11, - 0 ) ) / 43 * - + 78 + - 78 ) * # Datafusion - Datafusion expected results: # Datafusion - Expected - -32680 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(\-8\) \* Int64\(\-95\) \* Int64\(\-43\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 + - 8 * + - 95 * - 43 AS col0, 29 col0 +---- +-32680 +29 query I rowsort SELECT - 70 * + 50 AS col0 @@ -36999,8 +37453,11 @@ SELECT ALL ( 87 ) - - SUM ( 71 ) * + 11 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-57\) AS Int32\) \- \(\- Int64\(77\)\) AS col1" at position 0 and "Int64\(\-95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( - 57 AS INTEGER ) - - + 77 AS col1, - 95 col1 +---- +-95 +20 query I rowsort SELECT 58 + + + 38 - - COALESCE ( + 67, NULLIF ( - 19, + 77 ) * - 59, + + 40 ) * + - 6 @@ -37532,8 +37989,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, 78 * + - 37 col2 +---- +-1 +-2886 query II rowsort label-7138 SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, 40 + COUNT ( * ) @@ -37976,8 +38436,11 @@ SELECT + COALESCE ( - + COUNT ( * ), 29 * 16 ) * - 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "Int64\(12\) \+ Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 AS col0, + 12 + + 75 AS col0 +---- +26 +87 query I rowsort SELECT - 7 + - 13 * 51 * - 80 AS col0 @@ -38175,8 +38638,11 @@ SELECT DISTINCT - 59 * - COUNT ( * ) + - - 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ \(\- Int64\(76\)\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 + - + 76 AS col2, 27 AS col2 +---- +-39 +27 query I rowsort SELECT 38 * 8 @@ -38742,8 +39208,11 @@ SELECT + 4 + - + ( - 33 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3784 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* Int64\(43\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(78\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 88 * 43 AS col1, - COUNT ( * ) * + 78 + COUNT ( * ) AS col1 +---- +-77 +3784 query I rowsort label-7371 SELECT - ( + 92 ) + + 43 * + COUNT ( - 21 ) + 72 @@ -39074,8 +39543,11 @@ SELECT ALL - 97 * + - 88 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \+ Int64\(\-8\) AS col2" at position 0 and "coalesce\(Int64\(6\), Int64\(18\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 + - 8 AS col2, COALESCE ( + 6, + 18 ) AS col2 +---- +6 +79 query I rowsort label-7434 SELECT DISTINCT - ( + - SUM ( + 34 ) ) @@ -39288,8 +39760,11 @@ SELECT - MAX ( 6 ) 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 col1" at position 0 and "count\(Int64\(57\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 96 AS col1, + COUNT ( 57 ) col1 +---- +1 +96 query I rowsort label-7475 SELECT ALL - ( + CAST ( + + 19 AS INTEGER ) ) + 1 AS col0 @@ -39383,8 +39858,11 @@ SELECT DISTINCT - 52 * 36 * - 57 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - -3506 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(79\)\) AS col2" at position 0 and "Int64\(22\) \- Int64\(\-36\) \* \(\- Int64\(14\)\) \* \(\- Int64\(\-7\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MAX ( DISTINCT + 79 ) AS col2, 22 - + - 36 * - ( 14 ) * - + ( + - 7 ) AS col2 +---- +-3506 +79 query I rowsort label-7493 SELECT DISTINCT - 71 / 23 + 41 + - 47 * - MAX ( - 59 ) + 97 + 76 * + 11 AS col2 @@ -39569,8 +40047,11 @@ SELECT 61 / 7 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) \- Int64\(46\) AS col1" at position 0 and "Int64\(\-8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 29 ) - + 46 AS col1, - 8 AS col1 +---- +-75 +-8 query I rowsort label-7529 SELECT - SUM ( 96 ) - - 2 AS col0 @@ -39668,8 +40149,11 @@ 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\(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\. +query II valuesort SELECT ALL 11 * - - COUNT ( * ) AS col0, + 14 AS col0 +---- +11 +14 query I rowsort SELECT 53 * 38 - - + 53 + - 77 * 66 @@ -40205,8 +40689,12 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(74\) \+ Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - 64 AS col1, + COUNT ( * ) + 74 + + 53 col1, + + 97 +---- +128 +64 +97 query I rowsort SELECT - ( + 75 ) + 60 AS col0 @@ -40283,8 +40771,11 @@ 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\(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\. +query II valuesort SELECT 70 / - COUNT ( * ) AS col2, + NULLIF ( 62, 73 ) AS col2 +---- +-70 +62 query I rowsort label-7664 SELECT 80 * - MIN ( DISTINCT - 8 ) @@ -40707,8 +41198,11 @@ SELECT ALL ( - 87 ) - + 22 + 33 - + 97 * + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col0" at position 0 and "Int64\(\-42\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-34\) \+ Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 84 AS col0, ( + - 42 ) * - CAST ( NULL AS INTEGER ) * - 34 + 79 AS col0 +---- +-84 +NULL query I rowsort SELECT ALL - 82 - - 37 AS col2 @@ -41352,8 +41846,11 @@ SELECT ALL - 43 + 36 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 219 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col0" at position 0 and "Int64\(3\) \* Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 62 AS col0, ( 3 ) * 73 col0 +---- +219 +62 query I rowsort label-7872 SELECT ALL - COALESCE ( ( - CASE 61 WHEN - 12 * 14 + 5 THEN - COUNT ( * ) END ), 14 - + COUNT ( * ) ) + 57 @@ -42599,8 +43096,11 @@ SELECT DISTINCT - 25 / + ( + CAST ( 21 AS INTEGER ) ) + - 56 + + 46 + + NULLIF ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 1026 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(45\)\) AS Int32\) / max\(Int64\(82\)\) \+ Int64\(64\) AS col0" at position 0 and "Int64\(27\) \* Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( - + 45 AS INTEGER ) / MAX ( 82 ) + 64 AS col0, 27 * + 38 AS col0 +---- +1026 +64 query II rowsort label-8113 SELECT ALL + 48, + 46 * - COUNT ( * ) AS col2 @@ -42849,8 +43349,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 128 # Datafusion - Expected - -1281 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \+ Int64\(60\) AS col2" at position 0 and "min\(Int64\(\-21\)\) \* Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 + + ( 60 ) AS col2, MIN ( ALL - 21 ) * 61 AS col2 +---- +-1281 +128 query I rowsort SELECT DISTINCT + 95 + - 17 @@ -43247,8 +43750,11 @@ SELECT COUNT ( * ) / 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - COUNT ( * ) ) AS col1, COUNT ( * ) AS col1 +---- +1 +1 query I rowsort SELECT ALL + 1 + + 99 col2 @@ -43421,8 +43927,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2346 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(\-46\) \* Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 50 * - - CAST ( NULL AS INTEGER ) AS col0, - 46 * 51 AS col0 +---- +-2346 +NULL query I rowsort label-8268 SELECT COALESCE ( + + 54, 3 ) * + COUNT ( * ) / + 71 col2 @@ -43496,8 +44005,11 @@ 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\(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\. +query II valuesort SELECT - - 87 col2, + 90 * - - 11 + + COALESCE ( + 82, + 88 * COUNT ( * ) + - 63 * + ( + COUNT ( * ) ) - ( COUNT ( * ) ) + - + 48 ) + + 11 / 22 * - 9 col2 +---- +1072 +87 query I rowsort label-8282 SELECT - + 31 * + CAST ( NULL AS INTEGER ) * + + 92 * + - 31 @@ -43507,8 +44019,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -174 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) \+ nullif\(Int64\(\-81\), Int64\(30\) \* coalesce\(\(\- Int64\(38\)\), \(\- Int64\(8\)\), Int64\(28\) \+ \(\- Int64\(14\)\), Int64\(63\)\) \- \(\- Int64\(\-23\)\)\) AS col0" at position 0 and "Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 93 + + NULLIF ( - 81, 30 * COALESCE ( - + 38, - + 8, 28 + - ( 14 ), + 63 ) - - - 23 ) col0, + 71 AS col0 +---- +-174 +71 query II rowsort label-8284 SELECT - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) * - 60 @@ -43603,8 +44118,11 @@ SELECT DISTINCT - 45 * - - 87 * 78 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(94\) WHEN Int64\(\-23\) \* Int64\(41\) \* \(\- Int64\(\-97\)\) THEN \(\- Int64\(46\)\) WHEN CAST\(Int64\(\-52\) AS Int32\) THEN Int64\(66\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(25\) WHEN Int64\(\-15\) THEN NULL END \+ Int64\(\-30\) / \(\- Int64\(32\)\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +85 +NULL query I rowsort label-8302 SELECT - 56 / + 34 AS col1 @@ -43620,8 +44138,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) / Int64\(74\) AS col1" at position 0 and "max\(\(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 3 / + 74 AS col1, + MAX ( + - CAST ( NULL AS INTEGER ) ) col1 +---- +0 +NULL query I rowsort SELECT DISTINCT + ( 18 ) AS col0 @@ -44329,8 +44850,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -108039 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \* Int64\(47\) \* Int64\(46\) \+ \(\- Int64\(\-61\)\) AS col2" at position 0 and "Int64\(61\) \+ Int64\(\-62\) / Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 50 * 47 * + 46 + - - 61 AS col2, 61 + + - 62 / + 74 col2 +---- +-108039 +61 query I rowsort SELECT - - NULLIF ( - ( - 62 ), + 62 ) / + - 42 - + 18 @@ -44401,8 +44925,11 @@ NULL # 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\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 AS col0, 82 AS col0 +---- +82 +86 query I rowsort SELECT 89 * + 25 * 90 @@ -44622,8 +45149,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col1, 83 / 17 AS col1 +---- +-1 +4 query I rowsort label-8495 SELECT DISTINCT - COUNT ( * ) * + - 7 @@ -44748,8 +45278,11 @@ SELECT DISTINCT + - CAST ( - - ( + 80 ) AS INTEGER ) AS col0, COUNT ( * ) * + 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14726206 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* Int64\(\-70\) \* Int64\(75\) \* Int64\(51\) \+ Int64\(\-53\) \+ Int64\(97\) AS col0" at position 0 and "Int64\(\-78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 55 * - 70 * 75 * + 51 + - 53 + 97 AS col0, - 78 AS col0 +---- +-14726206 +-78 query II rowsort label-8517 SELECT ALL + 49 col1, 95 + + + 69 * - 85 + 80 * - 94 + - 23 - ( COUNT ( * ) ) @@ -44843,8 +45376,11 @@ SELECT + 7 + ( + + 78 ) * + COUNT ( * ), - 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 136171 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ Int64\(61\) AS col0" at position 0 and "Int64\(32\) \* Int64\(56\) \* Int64\(76\) \+ Int64\(\-21\) \+ \(\- Int64\(0\)\) / Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 29 + + 61 AS col0, 32 * + 56 * 76 + - 21 + - + 0 / + - 80 col0 +---- +136171 +90 query I rowsort SELECT + + NULLIF ( + 56, - 7 ) + + + 67 * + 61 * - + 79 AS col0 @@ -45296,8 +45832,11 @@ SELECT 40 + - 70 + + 59 * MIN ( + 68 ) * - 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41140 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* Int64\(85\) \* coalesce\(Int64\(44\), Int64\(91\)\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 * + 85 * COALESCE ( + 44, + + 91 ) AS col2, 36 AS col2 +---- +36 +41140 query I rowsort SELECT DISTINCT 43 * + + 45 @@ -45691,8 +46230,11 @@ SELECT 75 + - + 49 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5280 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(55\)\) \* \(\- max\(\(\- Int64\(96\)\)\)\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( ALL 55 ) * - + MAX ( ALL - + 96 ) AS col2, + 13 col2 +---- +13 +5280 query I rowsort label-8698 SELECT 84 * - + COUNT ( * ) AS col0 @@ -45733,8 +46275,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(92\) \+ Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 16 ) AS col0, 92 + + 36 AS col0 +---- +128 +16 query I rowsort SELECT DISTINCT + 83 * + ( + 83 ) AS col1 @@ -45812,8 +46357,11 @@ 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 col2" at position 0 and "count\(\(\- Int64\(30\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 AS col2, + COUNT ( ALL - + 30 ) AS col2 +---- +1 +11 query I rowsort label-8721 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - 82 AS col2 @@ -45966,8 +46514,11 @@ SELECT + 19 + + 9 + - NULLIF ( - 91, - ( + 78 ) ) * + 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - -189 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "Int64\(\-93\) \+ Int64\(\-96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 87 col1, - 93 + + - 96 AS col1 +---- +-189 +87 query I rowsort label-8751 SELECT DISTINCT COUNT ( * ) / - 83 @@ -46112,8 +46663,11 @@ SELECT DISTINCT CAST ( + + SUM ( ALL + + 18 ) AS INTEGER ) AS col1 # 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 "\(\- max\(DISTINCT Int64\(\-15\)\)\) \+ Int64\(49\) \+ Int64\(10\) AS col0" at position 0 and "Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( DISTINCT + ( - 15 ) ) + 49 + + 10 AS col0, 37 AS col0 +---- +37 +74 query I rowsort label-8778 SELECT + 14 - + COUNT ( * ) col2 @@ -46414,8 +46968,11 @@ SELECT - COALESCE ( + 80, + + 55 * + 37, COUNT ( * ) ) * + 88 + 8 + - - 83 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, + 23 AS col1 +---- +1 +23 query I rowsort label-8833 SELECT ALL 5 / - + COUNT ( * ) AS col1 @@ -46615,8 +47172,11 @@ 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\(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\. +query II valuesort SELECT + 78 + + + 39 + - COUNT ( * ) AS col2, + 16 - - 4 AS col2 +---- +116 +20 query I rowsort label-8870 SELECT + COUNT ( * ) + - 23 * + ( - 73 ) @@ -46730,8 +47290,11 @@ SELECT DISTINCT 28 * 14 * - 19 + - 79 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "Int64\(\-22\) \+ Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 61 col0, - 22 + + 1 AS col0 +---- +-21 +61 query I rowsort label-8892 SELECT - 32 / 26 / - 79 AS col2 @@ -47826,8 +48389,11 @@ SELECT - COUNT ( * ) * + - 81 AS col0 # 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 col2" at position 0 and "Int64\(\-69\) \- Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 6 AS col2, - 69 - 93 col2 +---- +-162 +-6 query I rowsort label-9099 SELECT - MAX ( ALL - 48 ) AS col0 @@ -47919,8 +48485,11 @@ SELECT + - 2 * - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col1" at position 0 and "Int64\(13\) \+ Int64\(71\) / Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 65 AS col1, 13 + + 71 / 19 col1 +---- +16 +65 query I rowsort SELECT + 29 + - + 36 @@ -48736,8 +49305,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 31 AS col0, - 34 + - COUNT ( * ) col0 +---- +-35 +31 query I rowsort SELECT 77 * 71 + 38 @@ -48758,8 +49330,12 @@ SELECT DISTINCT - 4 + + 23 # Datafusion - Expected - -132600 # Datafusion - Expected - 169344 # Datafusion - Expected - 7125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* Int64\(68\) \* Int64\(\-39\) AS col2" at position 0 and "Int64\(56\) \* Int64\(72\) \* Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 50 * 68 * - 39 AS col2, 56 * 72 * + 42 AS col2, - 75 * - 95 AS col2 +---- +-132600 +169344 +7125 query I rowsort SELECT + ( - 68 ) * - 6 + + 71 + - 36 - - 84 * + 99 AS col1 @@ -48878,8 +49454,11 @@ SELECT 17 * - 59 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-19\)\) \* Int64\(\-31\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( COUNT ( ALL - 19 ) ) * - 31 AS col1, 7 AS col1 +---- +-31 +7 query I rowsort label-9298 SELECT 2 - - COUNT ( + 29 ) @@ -48977,8 +49556,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-66\), count\(Int64\(1\)\) AS count\(\*\) \- Int64\(21\) \+ Int64\(\-90\)\)\) \+ Int64\(2\) \+ Int64\(\-86\) AS col1" at position 0 and "nullif\(\(\- \(\- max\(Int64\(97\)\)\)\), CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- Int64\(22\)\) THEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(41\)\) ELSE CAST\(NULL AS Int32\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-18 +97 query I rowsort SELECT - - 46 * + 11 * - 3 AS col1 @@ -49862,8 +50444,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \+ Int64\(81\) AS col1" at position 0 and "sum\(\(\- Int64\(46\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 13 + + + 81 AS col1, + SUM ( - + 46 ) AS col1 +---- +-46 +94 query I rowsort SELECT ALL 25 * - 92 @@ -50070,8 +50655,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) AS col2" at position 0 and "CASE Int64\(\-16\) WHEN Int64\(51\) \* Int64\(74\) THEN Int64\(3\) \* count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-54\) \* Int64\(\-65\) THEN Int64\(\-75\) ELSE Int64\(0\) \* count\(Int64\(74\) \* Int64\(92\)\) END \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-13 +0 query I rowsort SELECT ALL + 37 + + 55 AS col0 @@ -50222,8 +50810,11 @@ SELECT ALL - 52, + 47 + + COALESCE ( - 62, - 77 + - NULLIF ( COUNT ( 73 ), NULLI # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "Int64\(\-47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 58 AS col0, - 47 AS col0 +---- +-47 +58 query I rowsort SELECT 32 * - 81 - - - 19 col0 @@ -50640,8 +51231,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -249570 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* Int64\(\-45\) \* Int64\(59\) AS col1" at position 0 and "Int64\(\-25\) \* Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 94 * + - 45 * 59 AS col1, - 25 * - 1 AS col1 +---- +-249570 +25 query II rowsort SELECT ALL + 71 AS col1, + 12 AS col0 @@ -50981,8 +51575,11 @@ 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\(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\. +query II valuesort SELECT CASE 39 WHEN ( - + 80 ) * COUNT ( * ) * - 40 THEN - 1 END - - 71 AS col0, 91 * - 53 AS col0 +---- +-4823 +NULL query I rowsort SELECT 0 * + 79 @@ -51192,8 +51789,11 @@ SELECT ALL 49 * + 2 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col0" at position 0 and "Int64\(23\) \+ nullif\(CAST\(NULL AS Int32\), Int64\(93\) \+ Int64\(24\)\) \+ Int64\(94\) \+ \(\- min\(Int64\(7\)\)\) \+ Int64\(\-49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 71 AS col0, + 23 + + NULLIF ( CAST ( NULL AS INTEGER ), 93 + 24 ) + 94 + - MIN ( ALL + 7 ) + - 49 AS col0 +---- +-71 +NULL query I rowsort label-9742 SELECT ALL COUNT ( * ) * + 5 + + - 17 @@ -51220,8 +51820,11 @@ SELECT + 72 AS col2, - 26 + 67 + + + 78 + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 27 AS col2, 48 AS col2 +---- +-27 +48 query I rowsort label-9747 SELECT + ( 3 ) - + COUNT ( * ) @@ -51517,8 +52120,11 @@ 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\(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\. +query II valuesort 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 +---- +-1 +7400 query I rowsort label-9805 SELECT DISTINCT - COALESCE ( + COUNT ( * ), + 34 * 1 / + SUM ( - + 45 ), - 24 ) / 62 * - 38 / + - 78 AS col0 @@ -51655,8 +52261,11 @@ SELECT + 42 * - 33 - + - 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(7\)\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - + 7 ) AS col0, 14 AS col0 +---- +-7 +14 query I rowsort label-9832 SELECT ALL + SUM ( - + 60 ) * - ( - CASE 42 WHEN ( - - ( + 57 ) ) + + + 23 * - + ( + 86 ) + - 16 THEN - 72 ELSE NULL END ) AS col0 @@ -51736,8 +52345,11 @@ SELECT + 48 + 53 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 176 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ Int64\(44\) \+ Int64\(79\) AS col1" at position 0 and "CAST\(Int64\(58\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 + + 44 + + 79 AS col1, CAST ( + 58 AS INTEGER ) AS col1 +---- +176 +58 query I rowsort SELECT + 12 * - 85 AS col0 @@ -51788,8 +52400,11 @@ SELECT + NULLIF ( - 82, + ( - 49 ) + 30 * 96 ) * + 16 * + MIN ( ALL - - 8 ) AS c # 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 "Int64\(1\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 1 AS col2, + 94 AS col2 +---- +1 +94 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -51987,8 +52602,11 @@ SELECT ALL ( + + 44 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, - 11 AS col0 +---- +-11 +1 query II rowsort label-9894 SELECT 25 col0, + COALESCE ( + + MAX ( ALL 83 ), 17 ) @@ -52291,8 +52909,11 @@ SELECT ALL + SUM ( - 4 ) 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 "\(\- min\(Int64\(\-52\)\)\) AS col2" at position 0 and "count\(DISTINCT Int64\(56\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - ( + MIN ( ALL - 52 ) ) AS col2, COUNT ( DISTINCT + 56 ) AS col2 +---- +1 +52 query I rowsort label-9952 SELECT 66 / 87 + + - 90 @@ -52531,8 +53152,11 @@ SELECT ALL + 46 + 26 * 30 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 29 AS col2, 2 col2 +---- +2 +29 query I rowsort label-9998 SELECT ALL - NULLIF ( 99, 0 * SUM ( DISTINCT - 84 ) * - 2 ) AS col1 diff --git a/data/sqlite/random/expr/slt_good_2.slt b/data/sqlite/random/expr/slt_good_2.slt index c3062ad..40c45ba 100644 --- a/data/sqlite/random/expr/slt_good_2.slt +++ b/data/sqlite/random/expr/slt_good_2.slt @@ -369,8 +369,11 @@ SELECT 58 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -558 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* \(\- CAST\(Int64\(31\) AS Int32\)\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 18 * + - CAST ( 31 AS INTEGER ) AS col0, 67 AS col0 +---- +-558 +67 query I rowsort label-65 SELECT DISTINCT COUNT ( DISTINCT - CASE CAST ( NULL AS INTEGER ) WHEN - - 52 THEN + 67 * 38 * - + 29 END ) + - 21 AS col2 @@ -805,8 +808,11 @@ SELECT 41 * + 99 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -2613 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col1" at position 0 and "Int64\(67\) \* Int64\(\-39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 35 AS col1, + 67 * - 39 AS col1 +---- +-2613 +35 query I rowsort SELECT ALL 86 AS col1 @@ -1368,8 +1374,11 @@ SELECT ALL - 18 + - 0 * 12 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- Int64\(\-25\)\)\) \+ Int64\(\-90\) AS col0" at position 0 and "Int64\(63\) / Int64\(\-58\) \+ Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( - - 25 ) + + - 90 AS col0, 63 / - 58 + + 75 AS col0 +---- +-89 +74 query I rowsort SELECT - 39 AS col2 @@ -1629,8 +1638,12 @@ SELECT ALL - 44 AS col0 # Datafusion - Expected - 97 # Datafusion - Expected - 24 # Datafusion - Expected - -7341 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \+ \(\- CAST\(Int64\(94\) AS Int32\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- Int64\(53\)\) \+ Int64\(89\) \* Int64\(\-81\) \+ Int64\(\-79\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 3 + - CAST ( + 94 AS INTEGER ) * - COUNT ( * ) AS col0, 24, - ( + 53 ) + + 89 * - 81 + - 79 AS col0 +---- +-7341 +24 +97 query I rowsort label-308 SELECT ALL COUNT ( * ) - + COUNT ( * ) * - MIN ( 67 ) AS col2 @@ -1782,8 +1795,11 @@ 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\(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\. +query II valuesort SELECT - 19 * + COUNT ( * ) + + 98 + + CASE 63 WHEN 57 THEN + 81 ELSE NULL END + + 84 AS col1, - COUNT ( * ) AS col1 +---- +-1 +NULL query I rowsort SELECT + 53 AS col1 @@ -2146,8 +2162,12 @@ SELECT ALL + 15 # Datafusion - Expected - 30 # Datafusion - Expected - -31 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col2" at position 1 and "Int64\(\-80\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 30, - 31 AS col2, - 80 col2 +---- +-31 +-80 +30 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -2329,8 +2349,11 @@ 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\(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\. +query II valuesort SELECT ALL 14 + - ( - SUM ( + 7 ) ) - - NULLIF ( + 68, + + 38 / + - 5 + + ( - 43 ) ) + + NULLIF ( + COUNT ( * ), - COUNT ( * ) + 54 ) * + 12 AS col1, 25 * - ( - 57 ) AS col1 +---- +101 +1425 query I rowsort SELECT ALL - 89 AS col1 @@ -2444,8 +2467,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - ( - + 44 ) ) col0, COUNT ( * ) * + 83 AS col0 +---- +-44 +83 query I rowsort SELECT 58 * - 5 + - + 9 @@ -2954,8 +2980,11 @@ SELECT DISTINCT + 0 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4272 # Datafusion - Expected - 551 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \* Int64\(48\) AS col0" at position 0 and "Int64\(7\) \* Int64\(68\) \+ Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 89 * + 48 AS col0, 7 * + 68 + 75 col0 +---- +-4272 +551 query I rowsort SELECT 12 AS col2 @@ -3477,8 +3506,11 @@ SELECT ALL + COUNT ( * ) * 1 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - -7791 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-93\)\) AS col2" at position 0 and "CAST\(Int64\(61\) AS Int32\) \* Int64\(\-91\) \+ Int64\(35\) \* Int64\(\-64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 93 AS col2, CAST ( + 61 AS INTEGER ) * + - 91 + 35 * - 64 AS col2 +---- +-7791 +93 query I rowsort SELECT + - 6 AS col1 @@ -3533,8 +3565,11 @@ 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\(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\. +query II valuesort 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 +---- +-792 +41 query I rowsort SELECT + 50 AS col0 @@ -3884,8 +3919,11 @@ SELECT + 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(85\)\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 85 AS col0, 65 AS col0 +---- +-85 +65 query I rowsort SELECT DISTINCT 24 @@ -4032,8 +4070,11 @@ SELECT ALL 85 / 51 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 26 ) AS col0, 10 AS col0 +---- +-26 +10 query I rowsort label-772 SELECT + CAST ( NULL AS INTEGER ) @@ -4123,8 +4164,11 @@ SELECT COUNT ( ALL - 4 ) * - 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- count\(\(\- coalesce\(Int64\(70\), Int64\(\-69\), Int64\(97\)\)\)\)\) WHEN Int64\(4\) \- \(\- Int64\(24\)\) THEN NULL WHEN count\(Int64\(70\)\) \+ Int64\(\-58\) THEN \(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(47\)\) END AS col1" at position 0 and "Int64\(94\) \+ Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CASE - COUNT ( - COALESCE ( 70, - 69, 97 ) ) WHEN 4 - - ( 24 ) THEN NULL WHEN COUNT ( ALL + 70 ) + + - 58 THEN - + CAST ( NULL AS INTEGER ) * - + 47 END AS col1, 94 + - 90 col1 +---- +4 +NULL query I rowsort label-790 SELECT - + CAST ( NULL AS INTEGER ) AS col0 @@ -4189,8 +4233,11 @@ SELECT ALL - 78 * - 59 * + 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-87\)\) \* Int64\(68\) / Int64\(25\) \+ nullif\(Int64\(91\), Int64\(\-2\)\) \* CASE \(\- min\(Int64\(63\)\)\) WHEN Int64\(\-45\) \* Int64\(79\) \- Int64\(\-78\) THEN Int64\(\-30\) WHEN Int64\(89\) \- \(\- Int64\(\-35\)\) THEN CAST\(NULL AS Int32\) ELSE NULL END AS col0" at position 0 and "Int64\(\-3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-3 +NULL query I rowsort SELECT CASE WHEN ( NULL ) IS NULL THEN - 94 WHEN NOT NULL IS NULL THEN + 75 END @@ -4661,8 +4708,11 @@ SELECT ( 1 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1575 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(37\), \(\- Int64\(\-89\)\)\) \* Int64\(\-42\) \+ 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 II valuesort SELECT NULLIF ( + + 37, - - 89 ) * ( - 42 ) + + - 21 AS col2, - 40 AS col2 +---- +-1575 +-40 query I rowsort SELECT + - 42 - - 70 @@ -4698,8 +4748,12 @@ SELECT - - 72 # Datafusion - Expected - 8 # Datafusion - Expected - 97 # Datafusion - Expected - 1739 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "\(\- coalesce\(Int64\(61\), Int64\(61\)\)\) \- Int64\(24\) \* Int64\(\-75\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 8 AS col2, 97, - + COALESCE ( 61, + 61 ) - + 24 * - 75 AS col2 +---- +1739 +8 +97 query II rowsort label-900 SELECT ALL 83, 78 * - 47 * 48 * - MAX ( 81 ) - 55 AS col0 @@ -4874,8 +4928,11 @@ SELECT - 9 * - 41 + + 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1433226 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \* Int64\(\-15\) \* Int64\(91\) \* Int64\(\-42\) \+ Int64\(\-24\) \* \(\- count\(DISTINCT Int64\(\-35\)\)\) AS col2" at position 0 and "max\(Int64\(69\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 25 * - 15 * 91 * - 42 + - 24 * - COUNT ( DISTINCT - 35 ) AS col2, MAX ( 69 ) AS col2 +---- +-1433226 +69 query I rowsort SELECT + - 8 AS col2 @@ -5038,8 +5095,11 @@ SELECT - NULLIF ( - COUNT ( * ), 37 ) * 56 + COUNT ( * ) * - - 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - -918815 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col0" at position 0 and "Int64\(98\) \* Int64\(\-95\) \* Int64\(98\) \+ Int64\(\-27\) \+ Int64\(89\) \* \(\- Int64\(72\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 49 AS col0, + 98 * - 95 * + 98 + + - 27 + + + ( + 89 ) * - + 72 col0 +---- +-49 +-918815 query I rowsort SELECT + 58 AS col1 @@ -5234,8 +5294,11 @@ SELECT - + 27 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 51 AS col0, + 65 AS col0 +---- +51 +65 query I rowsort SELECT ALL 79 @@ -5409,8 +5472,11 @@ 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\(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\. +query II valuesort SELECT 29 / - 73 * - COUNT ( * ) - + - 72 AS col2, NULLIF ( - 91, + 59 + + + COUNT ( * ) ) AS col2 +---- +-91 +72 query I rowsort label-1036 SELECT DISTINCT - - SUM ( ALL + 72 ) @@ -5531,8 +5597,11 @@ SELECT 29 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -111 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE WHEN Int64\(95\) IS NULL THEN NULL ELSE Int64\(96\) \+ Int64\(14\) \+ Int64\(1\) END\) AS col0" at position 0 and "Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CASE WHEN 95 IS NULL THEN NULL ELSE 96 + + 14 + 1 END AS col0, - 29 col0 +---- +-111 +-29 query I rowsort SELECT - 91 + - 49 * 24 * - + 41 AS col2 @@ -5764,8 +5833,11 @@ SELECT + - 30 * + ( + 19 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(32\) WHEN Int64\(75\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-66\) / Int64\(58\) THEN Int64\(\-86\) \+ Int64\(\-38\) / Int64\(\-71\) WHEN \(\- Int64\(\-53\)\) THEN Int64\(14\) ELSE NULL END AS col0" at position 0 and "Int64\(73\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +73 +NULL query I rowsort label-1106 SELECT MAX ( DISTINCT + 59 ) @@ -5915,8 +5987,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- min\(Int64\(51\)\)\) \+ Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + COUNT ( * ) AS col2, - MIN ( ALL + 51 ) + 58 AS col2 +---- +1 +7 query I rowsort label-1135 SELECT - 96 / + - ( - 35 ) + 55 AS col1 @@ -6311,8 +6386,11 @@ SELECT ALL + 64 + - ( - 19 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 AS col0, 45 AS col0 +---- +32 +45 query I rowsort SELECT ALL - NULLIF ( + - 68, + 27 ) AS col2 @@ -6905,8 +6983,11 @@ 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\(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\. +query II valuesort SELECT CASE + 43 WHEN 68 THEN + 60 WHEN 49 THEN NULL WHEN + + 49 THEN - COUNT ( * ) ELSE - 2 END col1, + 47 AS col1 +---- +-2 +47 query I rowsort SELECT ALL + 93 AS col2 @@ -7154,8 +7235,11 @@ SELECT 73 - - CASE - + 99 WHEN - 74 * - NULLIF ( CASE + - 42 WHEN - + 62 + + + N # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col0" at position 0 and "CAST\(Int64\(23\) AS Int32\) \+ Int64\(69\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 9 AS col0, + CAST ( 23 AS INTEGER ) + + 69 + + COUNT ( * ) + - 80 AS col0 +---- +-9 +13 query I rowsort label-1376 SELECT 83 * 26 * - - COUNT ( * ) @@ -7244,8 +7328,11 @@ SELECT + SUM ( - 54 ) * - 67 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 62 AS col2, 95 AS col2 +---- +62 +95 query I rowsort SELECT ALL 84 AS col1 @@ -7720,8 +7807,11 @@ SELECT ALL - 6 * - - 23 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -666 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(9\) \* \(\- Int64\(74\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, 9 * + ( - + 74 ) col0 +---- +-666 +1 query I rowsort SELECT + - 42 * - 67 @@ -8286,8 +8376,11 @@ SELECT ALL - 77 * COALESCE ( - + 98, - + 91 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1034 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \* Int64\(\-47\) AS col0" at position 0 and "Int64\(\-6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 22 * - 47 AS col0, - 6 AS col0 +---- +-1034 +-6 query I rowsort label-1595 SELECT - COUNT ( * ) - + 90 @@ -8322,8 +8415,11 @@ SELECT DISTINCT + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 63 AS col1, 19 AS col1 +---- +19 +63 query I rowsort label-1602 SELECT - 93 / + 50 - - - CAST ( + ( + 72 ) AS INTEGER ) @@ -8695,8 +8791,11 @@ SELECT 2 + - 88 col0 # 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\(\-1\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 1 AS col2, 6 AS col2 +---- +-1 +6 query I rowsort SELECT 11 + + - 49 AS col0 @@ -8762,8 +8861,11 @@ SELECT 92 - - + ( - - ( - + 19 ) ) * ( 89 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1581 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(51\) \* Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col2, ( 51 ) * + 31 AS col2 +---- +1581 +NULL query I rowsort label-1686 SELECT 23 * + - 28 + + - CAST ( NULL AS INTEGER ) * - - 13 AS col0 @@ -9559,8 +9661,11 @@ SELECT ALL 48 AS col1, - COUNT ( * ) * - 23 + 39 # 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 col1" at position 0 and "Int64\(36\) \+ \(\- Int64\(\-43\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 AS col1, + 36 + - - 43 AS col1 +---- +-70 +79 query I rowsort SELECT - 18 AS col1 @@ -11918,8 +12023,11 @@ SELECT + 72 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6030 # Datafusion - Expected - 2448 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \* Int64\(67\) AS col0" at position 0 and "Int64\(36\) \* Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 * + + 67 col0, 36 * + 68 AS col0 +---- +-6030 +2448 query I rowsort label-2304 SELECT - CASE 94 WHEN CASE + 8 WHEN + - 1 THEN NULL WHEN - NULLIF ( + ( - 15 ), + 12 * 93 ) THEN NULL ELSE + COUNT ( * ) END / 92 THEN NULL WHEN ( 75 ) / 51 THEN + 30 + + 40 ELSE NULL END + - 42 @@ -11970,8 +12078,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ), COUNT ( * ) +---- +1 +1 query I rowsort label-2314 SELECT DISTINCT + COUNT ( * ) AS col1 @@ -12443,8 +12554,11 @@ SELECT ALL 55 / 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -370736 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* Int64\(68\) \* max\(\(\- Int64\(94\)\)\) AS col0" at position 0 and "\(\- \(\- nullif\(Int64\(84\), Int64\(\-65\) / Int64\(57\) \- Int64\(61\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 * 68 * + MAX ( - + 94 ) AS col0, + ( - - NULLIF ( + + 84, - 65 / + 57 - + 61 ) ) AS col0 +---- +-370736 +84 query I rowsort SELECT ALL - 93 @@ -12485,8 +12599,11 @@ SELECT 57 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -148512 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* Int64\(\-34\) \* Int64\(91\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 * - 34 * 91 AS col1, + 42 AS col1 +---- +-148512 +42 query I rowsort label-2413 SELECT COUNT ( NULLIF ( + 20, - 56 ) ) * + 28 * - 8 * + + 29 @@ -13067,8 +13184,11 @@ SELECT - 8 * - 58 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - -4423 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "Int64\(79\) \* Int64\(\-56\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 61 AS col0, + 79 * - 56 + + COUNT ( * ) AS col0 +---- +-4423 +61 query I rowsort label-2527 SELECT - - COALESCE ( - - 12, + - 62 * - 20 ) * - 98 * - - ( - COUNT ( * ) ) AS col0 @@ -13272,8 +13392,11 @@ SELECT + COUNT ( * ) / + 79 + - ( + MAX ( - 95 ) ) + + 58 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, + 91 AS col2 +---- +1 +91 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -13395,8 +13518,11 @@ SELECT COUNT ( * ) * + 62 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "Int64\(17\) / Int64\(\-83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 AS col1, + 17 / - 83 AS col1 +---- +0 +48 query I rowsort label-2588 SELECT CASE WHEN + 19 IN ( 52, - MIN ( DISTINCT 48 ) - - 85 * 20 * - 95 - COUNT ( * ) * + 82 ) THEN + MIN ( + 81 ) - 18 WHEN NOT COUNT ( ALL - 85 ) < ( 17 * COUNT ( * ) ) THEN + 55 ELSE NULL END + + COUNT ( * ) * - CAST ( CAST ( 58 AS INTEGER ) * 93 AS INTEGER ) @@ -13406,8 +13532,11 @@ 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 "Int64\(3\) \+ \(\- Int64\(70\)\) AS col1" at position 0 and "Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 3 + - + 70 AS col1, - 16 col1 +---- +-16 +-67 query I rowsort SELECT - 10 @@ -13976,8 +14105,11 @@ SELECT - 11 + - + 29 + - - 81 + + - 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 86 ) AS col0, + 63 AS col0 +---- +-86 +63 query I rowsort SELECT 13 AS col1 @@ -14031,8 +14163,12 @@ SELECT MAX ( - 37 ) AS col2 # Datafusion - Expected - 1 # Datafusion - Expected - 78 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - + COUNT ( * ) / + 6 * + + 7 + COUNT ( * ) col1, + 78 col0, + COUNT ( * ) AS col0 +---- +1 +1 +78 query I rowsort SELECT + 71 @@ -14435,8 +14571,11 @@ SELECT DISTINCT COUNT ( * ) * - 89 col2, 14 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\(89\)\) \+ \(\- CASE Int64\(48\) WHEN Int64\(\-64\) THEN Int64\(16\) END\) AS col2" at position 0 and "Int64\(\-21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - + 89 ) + - CASE + 48 WHEN - 64 THEN 16 END AS col2, - 21 col2 +---- +-21 +NULL query II rowsort label-2788 SELECT - 48, + 75 * + COALESCE ( - - 20, - 69, + + 7 - 81 / - 93 ) AS col0 @@ -15168,8 +15307,11 @@ SELECT ALL - ( COUNT ( * ) ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \- Int64\(63\) AS col2" at position 0 and "Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 2 - 63 AS col2, - 96 AS col2 +---- +-65 +-96 query I rowsort SELECT ALL - 88 @@ -15224,8 +15366,11 @@ SELECT ALL ( COALESCE ( + 53, + - 99 + + 60 * - + 16 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 273 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(41\) \+ Int64\(43\) \+ Int64\(52\) \+ min\(Int64\(62\)\) \+ count\(Int64\(\-40\)\) \* Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 * - CAST ( NULL AS INTEGER ) AS col1, 41 + 43 + + + ( 52 ) + + MIN ( ALL + 62 ) + + COUNT ( ( - 40 ) ) * 75 AS col1 +---- +273 +NULL query I rowsort label-2941 SELECT - + CASE WHEN 39 IS NULL THEN - NULLIF ( + 81, + COUNT ( * ) * + 50 ) + + - ( 41 ) + + COUNT ( * ) END @@ -16035,8 +16180,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * - - 28 * + 1 AS col1, 22 + - + MAX ( + 27 ) + + 31 AS col1 +---- +26 +28 query I rowsort SELECT ( + 43 ) + - 84 * - 68 @@ -16923,8 +17071,11 @@ SELECT + 90 + + 16 - + 62 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, - 92 col2 +---- +-92 +1 query II rowsort label-3269 SELECT ALL - 99 AS col2, ( + COUNT ( * ) ) + + + 13 + 56 * 31 * - 60 @@ -17292,8 +17443,11 @@ 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\(1\)\) AS count\(\*\) \+ \(\- Int64\(66\)\) \+ sum\(Int64\(68\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 32 AS col1, + 59 * + COUNT ( * ) + + - ( + + 66 ) + SUM ( 68 ) AS col1 +---- +-32 +61 query I rowsort SELECT DISTINCT + 9 @@ -17919,8 +18073,11 @@ SELECT ALL - COALESCE ( CASE + - 28 WHEN 54 THEN NULL WHEN - COUNT ( * ) * NULLI # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - -26460 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col0" at position 0 and "Int64\(\-7\) \* \(\- Int64\(\-84\)\) \* Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 23 AS col0, - 7 * - - 84 * + + 45 AS col0 +---- +-23 +-26460 query I rowsort SELECT ALL - 62 @@ -18096,8 +18253,11 @@ SELECT 68 AS col1, COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 141 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-16\), \(\- Int64\(41\)\), Int64\(39\)\) AS col0" at position 0 and "Int64\(73\) \+ Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( - 16, - + 41, + 39 ) AS col0, 73 + + 68 AS col0 +---- +-16 +141 query I rowsort SELECT 16 + 44 AS col0 @@ -19278,8 +19438,11 @@ 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\(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\. +query RI valuesort 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 +---- +56 +NULL query I rowsort SELECT ALL CASE ( - 28 ) WHEN + - 24 * - 45 THEN - ( 12 ) END AS col1 @@ -19854,8 +20017,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - CASE + CASE + 84 WHEN + 3 THEN - + 96 ELSE NULL END WHEN - 93 THEN - + COUNT ( * ) END AS col2, 11 + - 17 AS col2 +---- +-6 +NULL query I rowsort label-3832 SELECT 40 + - COALESCE ( - 74, + + 62 + - - 69, 87 - 61 + + 16 + CAST ( NULL AS INTEGER ) * - + 53 * - 11 ) AS col2 @@ -20603,8 +20769,11 @@ SELECT + 69 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 851 # Datafusion - Expected - 490 -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 "Int64\(14\) \* Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 23 * 37 AS col1, 14 * 35 AS col1 +---- +490 +851 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -20699,8 +20868,11 @@ SELECT 34 + + 51 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) \+ Int64\(\-31\) AS col0" at position 0 and "\(\- nullif\(Int64\(\-57\), Int64\(\-52\)\)\) \+ Int64\(\-69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 46 + - 31 AS col0, - NULLIF ( - 57, - 52 ) + - 69 AS col0 +---- +-12 +-77 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -21349,8 +21521,12 @@ 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\(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\. +query III valuesort SELECT ALL - + SUM ( DISTINCT - - 62 ) - - - 42 AS col0, COALESCE ( - COUNT ( * ), - COUNT ( 86 ) * + + ( 57 ) / 62 - - 99 ) AS col0, + 21 +---- +-1 +-104 +21 query I rowsort label-4116 SELECT COUNT ( * ) + - - 2 col0 @@ -21675,8 +21851,12 @@ 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\(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\. +query III valuesort 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 +---- +-29 +-67680 +43 query I rowsort SELECT 28 col1 @@ -21994,8 +22174,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) * - MAX ( + 66 ) AS col0, 30 col0 +---- +30 +66 query I rowsort SELECT ALL 97 @@ -22060,8 +22243,11 @@ SELECT ALL 59 + + CASE 53 WHEN - + 45 * + COUNT ( CASE - 64 WHEN + 53 + + 56 + - # Datafusion - Datafusion expected results: # Datafusion - Expected - -3432 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* \(\- Int64\(44\)\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 * - + 44 AS col1, 37 AS col1 +---- +-3432 +37 query I rowsort label-4253 SELECT ALL - 80 + ( - 4 ) - + CAST ( - COUNT ( 92 ) AS INTEGER ) @@ -23114,8 +23300,11 @@ SELECT 22 * + 1 * + + 71 AS col2 # 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 "Int64\(\-3\) AS col2" at position 0 and "Int64\(7\) \* coalesce\(Int64\(13\), Int64\(\-69\) \* Int64\(\-80\), Int64\(\-25\) \+ Int64\(\-85\) \* Int64\(\-55\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 AS col2, 7 * COALESCE ( 13, - 69 * ( - 80 ), - 25 + - 85 * ( - 55 ) ) AS col2 +---- +-3 +91 query I rowsort SELECT 41 col1 @@ -23205,8 +23394,11 @@ SELECT ALL 33 + + - 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "CAST\(Int64\(99\) AS Int32\) \* Int64\(0\) \+ Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 AS col1, CAST ( + 99 AS INTEGER ) * 0 + + 47 AS col1 +---- +47 +84 query I rowsort SELECT ALL ( - 60 ) + + + 68 AS col2 @@ -24779,8 +24971,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * 26 / + 34 AS col0, 60 AS col0 +---- +0 +60 query I rowsort SELECT + 93 AS col1 @@ -25517,8 +25712,11 @@ SELECT ALL 27 / + 36 * - 79 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, - COUNT ( * ) AS col0 +---- +-1 +1 query I rowsort SELECT + 44 col1 @@ -25996,8 +26194,11 @@ SELECT ALL + 43 * + 47 + + + 12, - 93 AS col0 # 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 "Int64\(\-79\) AS col0" at position 0 and "Int64\(\-9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 79 AS col0, - 9 AS col0 +---- +-79 +-9 query I rowsort label-5014 SELECT + - 74 / ( + 7 ) AS col2 @@ -27341,8 +27542,11 @@ SELECT + 17 + - 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 77 AS col1, 28 AS col1 +---- +28 +77 query I rowsort SELECT - + 20 AS col2 @@ -27792,8 +27996,11 @@ SELECT - 91 * - NULLIF ( + 97, + 63 * + 4 + + 86 * - 99 + CAST ( - 99 AS INTEGER # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "Int64\(\-81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 AS col1, - 81 AS col1 +---- +-81 +38 query I rowsort SELECT + + NULLIF ( 89, + 7 ) AS col2 @@ -29256,8 +29463,11 @@ SELECT ALL - + SUM ( ALL + 80 ) + + + ( - - NULLIF ( + + 72, + COALESCE ( - COUN # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - -440 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \+ \(\- Int64\(\-48\)\) AS col2" at position 0 and "Int64\(98\) \+ Int64\(57\) \+ nullif\(Int64\(7\), \(\- Int64\(94\)\)\) \* \(\- Int64\(85\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 + - - 48 AS col2, 98 + + 57 + + NULLIF ( + 7, - + 94 ) * - + 85 AS col2 +---- +-440 +83 query I rowsort SELECT + 86 AS col2 @@ -29674,8 +29884,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(64\) \* \(\- Int64\(\-16\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 47 AS col2, + NULLIF ( + 27, MAX ( DISTINCT - 10 ) * 58 + + 89 + - 63 * - 70 * COUNT ( * ) - 64 * - - 16 ) AS col2 +---- +27 +47 query I rowsort SELECT - - 83 + + 0 AS col2 @@ -30645,8 +30858,12 @@ SELECT - 34 * - 56 # Datafusion - Expected - 7 # Datafusion - Expected - -2 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) / Int64\(36\) AS col0" at position 1 and "Int64\(44\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 7 * + COUNT ( * ), - 99 / 36 AS col0, 44 AS col0 +---- +-2 +44 +7 query I rowsort SELECT ALL - - ( 35 ) @@ -31304,8 +31521,11 @@ SELECT ALL + - 58 * COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) / Int64\(2\) \+ Int64\(\-77\) AS col1" at position 0 and "Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 / + ( + + 2 ) + - 77 AS col1, 70 AS col1 +---- +-49 +70 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -31556,8 +31776,11 @@ SELECT ALL + 22 + - COUNT ( ALL + + NULLIF ( + 33, - 70 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 124 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \+ Int64\(\-94\) \+ Int64\(\-26\) AS col1" at position 0 and "Int64\(44\) \- Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 81 + - 94 + - 26 AS col1, 44 - - 80 AS col1 +---- +-39 +124 query I rowsort SELECT ALL 44 AS col0 @@ -31654,8 +31877,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, + 49 AS col1 +---- +1 +49 query I rowsort label-6105 SELECT + ( - - 58 ) * - 29 * - MAX ( - 41 ) AS col0 @@ -31782,8 +32008,12 @@ SELECT - COALESCE ( COUNT ( * ), - - ( + + 44 ), + MIN ( DISTINCT + 4 ) ) AS col # Datafusion - Expected - 86 # Datafusion - Expected - -48092 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col1" at position 0 and "Int64\(58\) \* Int64\(69\) \* \(\- \(\- Int64\(\-12\)\)\) \- min\(Int64\(68\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 86 AS col1, ( 58 ) * 69 * - ( - - 12 ) - + MIN ( ALL + ( + 68 ) ) AS col1, + 30 +---- +-48092 +30 +86 query I rowsort SELECT ALL + 50 * - - 88 * + + 48 col1 @@ -31991,8 +32221,11 @@ SELECT DISTINCT + 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 108 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ Int64\(67\) \- Int64\(\-71\) / Int64\(28\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 39 + + 67 - - 71 / + 28 AS col2, 14 AS col2 +---- +108 +14 query I rowsort SELECT ALL - 87 AS col0 @@ -32104,8 +32337,11 @@ SELECT ALL + 35 * - 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) AS col2" at position 0 and "Int64\(\-62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 26 AS col2, - 62 AS col2 +---- +-26 +-62 query I rowsort SELECT DISTINCT 7 AS col2 @@ -32506,8 +32742,11 @@ 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\(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\. +query II valuesort SELECT NULLIF ( + + 8, - - COALESCE ( - 47, + 77, 47 ) * - + 47 + + COUNT ( * ) + + SUM ( DISTINCT + - 32 ) * - + 62 ) AS col1, 12 * - 69 + + 33 + + - ( - 54 ) AS col1 +---- +-741 +8 query I rowsort label-6269 SELECT 20 / - 40 * + 68 + - 90 AS col1 @@ -32537,8 +32776,11 @@ 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\(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\. +query II valuesort SELECT COALESCE ( - + COUNT ( * ), 85 * + 81 * - 52 + + ( - + 58 ) - 57 + + 32 * 30 ) AS col1, 58 AS col1 +---- +-1 +58 query I rowsort SELECT ALL + 5 AS col2 @@ -32598,8 +32840,11 @@ SELECT ALL - 58 / 31 + + COALESCE ( - SUM ( DISTINCT + 28 ), 69 + + 23 + - 77 * # Datafusion - Datafusion expected results: # Datafusion - Expected - -1612 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-52\)\) \* min\(Int64\(\-31\)\) AS col2" at position 0 and "\(\- coalesce\(Int64\(37\), Int64\(40\), Int64\(57\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 52 * MIN ( - 31 ) AS col2, - COALESCE ( + + 37, + 40, + + 57 ) AS col2 +---- +-1612 +-37 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -32872,8 +33117,11 @@ SELECT ALL + + 98 / + 70 + + - 49 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* \(\- CAST\(NULL AS Int32\)\) \+ \(\- Int64\(\-35\)\) \* Int64\(12\) \- Int64\(34\) \- \(\- Int64\(27\)\) \+ \(\- Int64\(\-36\)\) \- Int64\(46\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 * - CAST ( NULL AS INTEGER ) + - - 35 * 12 - 34 - - ( 27 ) + - - 36 - 46 / + ( + + COUNT ( * ) ) col1, - 12 AS col1 +---- +-12 +NULL query I rowsort label-6339 SELECT ALL - ( CASE - 25 WHEN + CAST ( - 14 AS INTEGER ) THEN - + 50 WHEN 51 THEN 84 * - + ( + - NULLIF ( - - COUNT ( * ), - 81 ) ) * - 9 + 36 * + 42 - - 0 * + + COUNT ( * ) END ) * ( + CAST ( + - 48 AS INTEGER ) ) + 97 + + 80 / COUNT ( * ) * 43 AS col1 @@ -32994,8 +33242,11 @@ SELECT ALL 98 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ \(\- Int64\(\-63\)\) \+ Int64\(66\) \* \(\- \(\- sum\(Int64\(\-66\)\)\)\) \* \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN CASE CAST\(\(\- Int64\(99\)\) AS Int32\) WHEN Int64\(19\) THEN NULL ELSE Int64\(4\) END THEN Int64\(58\) \* Int64\(13\) \- min\(DISTINCT CAST\(Int64\(90\) AS Int32\)\) END\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +19 +NULL query I rowsort SELECT ALL 56 AS col2 @@ -33159,8 +33410,11 @@ SELECT ALL + 61 * + - ( - 36 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8932 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \+ Int64\(50\) \* \(\- sum\(Int64\(13\)\)\) \* Int64\(14\) \+ \(\- \(\- min\(Int64\(23\)\)\)\) \+ Int64\(71\) \+ count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 73 + + 50 * + - SUM ( 13 ) * ( + + 14 ) + - - MIN ( 23 ) + + 71 + + + COUNT ( * ) * + + COUNT ( * ) AS col2, 16 AS col2 +---- +-8932 +16 query I rowsort SELECT ALL - 89 * - ( 16 ) AS col0 @@ -33438,8 +33692,12 @@ SELECT - 52 AS col1 # Datafusion - Expected - 5281 # Datafusion - Expected - NULL # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ Int64\(73\) \* Int64\(\-8\) \* \(\- Int64\(9\)\) AS col0" at position 0 and "Int64\(\-46\) \+ \(\- Int64\(\-4\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 25 + 73 * - 8 * - + 9 AS col0, 8 * CAST ( NULL AS INTEGER ) * - 57, + - 46 + - - 4 AS col0 +---- +-42 +5281 +NULL query I rowsort SELECT + - 30 + - 83 AS col2 @@ -34844,8 +35102,12 @@ SELECT COALESCE ( - - CASE ( + + COALESCE ( + + 50, + 92 * - 56 + COUNT ( * ) ) # Datafusion - Expected - 66 # Datafusion - Expected - -64 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "Int64\(\-44\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 66 AS col1, - 76 + + 12 AS col2, - 44 AS col1 +---- +-44 +-64 +66 query I rowsort label-6723 SELECT 85 * 35 / - + 23 + + 6 @@ -35299,8 +35561,11 @@ SELECT ALL COALESCE ( + - 36, + - 59, 63 + 30 - 45 * 55 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -132 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) \+ Int64\(\-65\) AS col0" at position 0 and "\(\- max\(DISTINCT Int64\(42\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 67 + + - 65 AS col0, - MAX ( DISTINCT + 42 ) AS col0 +---- +-132 +-42 query I rowsort label-6810 SELECT - CASE 81 WHEN - + 9 THEN - MAX ( DISTINCT - + 97 ) WHEN - + 20 + + 83 * 68 THEN NULL ELSE NULL END - MIN ( ALL + 42 ) @@ -35473,8 +35738,11 @@ SELECT ALL COUNT ( * ) + + - 44 # 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\) AS col0" at position 0 and "Int64\(66\) \+ Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 AS col0, 66 + + - 15 col0 +---- +47 +51 query II rowsort label-6844 SELECT - 65, + COUNT ( - + 60 ) * 7 * ( CAST ( NULL AS INTEGER ) ) AS col1 @@ -36117,8 +36385,11 @@ SELECT + COUNT ( * ) + + - 27 * - 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - -190 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col1" at position 0 and "Int64\(\-95\) \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 AS col1, - 95 * + + 2 AS col1 +---- +-190 +-82 query I rowsort label-6967 SELECT + 78 + MIN ( - + ( - + 46 ) ) - 66 AS col1 @@ -36404,8 +36675,11 @@ SELECT DISTINCT - 38 + - + 23 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4144 # Datafusion - Expected - 8827 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \* Int64\(56\) AS col2" at position 0 and "Int64\(91\) \* Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 74 * + + 56 col2, 91 * 97 AS col2 +---- +4144 +8827 query I rowsort SELECT ALL - 16 + + 92 AS col2 @@ -36440,8 +36714,11 @@ SELECT + 1 * + SUM ( + NULLIF ( - 28, 97 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(32\) \+ Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 92 ) col0, + CAST ( NULL AS INTEGER ) + + 32 + 40 AS col0 +---- +-92 +NULL query I rowsort SELECT 68 col1 @@ -36600,8 +36877,11 @@ SELECT DISTINCT + 67 + + NULLIF ( - 34, - COUNT ( - - 79 ) ) - - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 104182911 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \+ \(\- Int64\(\-87\)\) \* Int64\(\-18\) \* Int64\(28\) \* Int64\(\-36\) \* Int64\(66\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 63 + - - 87 * + - 18 * + 28 * - 36 * 66 AS col0, 78 col0 +---- +104182911 +78 query I rowsort SELECT + 33 + 24 @@ -37316,8 +37596,11 @@ SELECT ALL + COUNT ( * ) * - 49 / 98 + - + ( + 47 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1556 # Datafusion - Expected - 2126 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(33\)\) \+ \(\- \(\- coalesce\(Int64\(\-38\), Int64\(44\), Int64\(79\) \* CAST\(NULL AS Int32\) \* Int64\(38\) \* Int64\(29\)\)\)\) \+ Int64\(99\) \* Int64\(\-15\) AS col2" at position 0 and "Int64\(69\) \* \(\- \(\- nullif\(Int64\(32\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) \- Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + 33 ) + - - COALESCE ( - 38, 44, + 79 * CAST ( NULL AS INTEGER ) * 38 * + 29 ) + + 99 * - 15 col2, 69 * - - NULLIF ( + + 32, + - COUNT ( * ) ) - + 82 AS col2 +---- +-1556 +2126 query II rowsort label-7199 SELECT ALL COUNT ( ALL 20 ) AS col1, - 87 col0 @@ -37795,8 +38078,11 @@ SELECT ALL - COUNT ( * ) * 87 + 26 + - 60 * 96 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - -2435 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col0" at position 0 and "Int64\(26\) \* \(\- Int64\(95\)\) \+ Int64\(43\) \+ Int64\(\-8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 10 col0, 26 * - + 95 + 43 + + ( - 8 ) AS col0 +---- +-2435 +10 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -38187,14 +38473,20 @@ SELECT 34 * - - 99 + - - 85 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(21\)\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 21 col1, + 46 AS col1 +---- +-21 +46 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \+ Int64\(42\) \- Int64\(99\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 5 + + 42 - 99 AS col1, + 55 AS col1 +---- +-52 +55 query I rowsort SELECT - + 68 @@ -38460,8 +38752,11 @@ SELECT - - 3 * 97 - 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1647 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-27\) \* CAST\(Int64\(61\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, - 27 * + CAST ( 61 AS INTEGER ) AS col1 +---- +-1647 +1 query I rowsort label-7419 SELECT - 20 / - - COUNT ( * ) - + COUNT ( * ) @@ -38614,8 +38909,11 @@ SELECT - + 59 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-22\)\)\) AS col0" at position 0 and "Int64\(\-63\) \+ Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - - 22 ) AS col0, - 63 + 30 AS col0 +---- +-22 +-33 query II rowsort SELECT - + 81 * - 6, 74 * - 87 AS col0 @@ -39530,8 +39828,12 @@ SELECT 41 * 57 + - + 41 + - - 62 AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 12 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT CAST ( NULL AS INTEGER ) AS col1, 12 AS col1, 80 + COALESCE ( - + MAX ( 2 ), + 50 ) +---- +12 +78 +NULL query I rowsort SELECT ALL + 7 AS col1 @@ -39924,8 +40226,11 @@ SELECT ALL COUNT ( - 71 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 5865 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col1" at position 0 and "Int64\(85\) \* Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 97 AS col1, + 85 * + + 69 AS col1 +---- +5865 +97 query I rowsort label-7700 SELECT 11 * - NULLIF ( + 45, + SUM ( + 87 ) ) @@ -40028,8 +40333,11 @@ SELECT + 37, 24 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 "nullif\(Int64\(\-21\), \(\- Int64\(\-67\)\)\) / max\(DISTINCT Int64\(11\)\) \- Int64\(\-16\) AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + NULLIF ( - 21, - - 67 ) / + + MAX ( DISTINCT 11 ) - - 16 AS col2, 1 col2 +---- +1 +15 query I rowsort SELECT ALL + ( - - 95 ) @@ -40661,8 +40969,11 @@ SELECT + - ( - 16 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col2" at position 0 and "Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 91 AS col2, + 39 AS col2 +---- +39 +91 query I rowsort SELECT + 89 * - 4 col2 @@ -41071,8 +41382,11 @@ SELECT - CAST ( CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 991 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) \+ Int64\(57\) \* Int64\(19\) AS col2" at position 0 and "\(\- coalesce\(Int64\(10\), Int64\(60\)\)\) \* Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 92 + + 57 * + 19 AS col2, - COALESCE ( + 10, 60 ) * 7 col2 +---- +-70 +991 query II rowsort label-7921 SELECT DISTINCT - 49 AS col1, - COUNT ( * ) @@ -41641,8 +41955,11 @@ SELECT ALL + 67 * + 57 * + 74 - + + 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "Int64\(\-41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 17 AS col0, - 41 AS col0 +---- +-41 +17 query I rowsort label-8032 SELECT ALL - MIN ( + + 48 ) @@ -42739,8 +43056,11 @@ SELECT ALL - NULLIF ( + + 97, 77 * COUNT ( * ) / 19 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 109 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col1" at position 0 and "Int64\(29\) \* coalesce\(Int64\(3\), Int64\(5\)\) \+ Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 59 AS col1, 29 * + COALESCE ( + 3, + + 5 ) + 22 AS col1 +---- +-59 +109 query II rowsort SELECT DISTINCT + - 52 + + 22 + - 60 + - 92, - 54 * + 98 AS col2 @@ -43132,8 +43452,11 @@ SELECT ALL + ( 91 ) + - + 33 + + COALESCE ( + 60, + - 51, 5 * - - 95 + + - ( + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 820 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* Int64\(20\) AS col1" at position 0 and "Int64\(47\) / Int64\(\-81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 41 * + ( 20 ) AS col1, + 47 / + - 81 AS col1 +---- +0 +820 query I rowsort label-8320 SELECT ALL 47 + + ( - + 98 ) / - + 41 AS col2 @@ -43231,8 +43554,11 @@ 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\(Int64\(1\)\) AS count\(\*\) / nullif\(Int64\(22\), \(\- Int64\(11\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 78 col0, COUNT ( * ) / NULLIF ( + 22, - + 11 ) AS col0 +---- +0 +78 query I rowsort SELECT DISTINCT + + 51 AS col1 @@ -43262,8 +43588,11 @@ SELECT ALL + 47 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 2948 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \* Int64\(1\) AS col1" at position 0 and "Int64\(67\) \* Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 7 * + 1 AS col1, 67 * + + 44 AS col1 +---- +-7 +2948 query I rowsort label-8345 SELECT + CAST ( - 69 AS INTEGER ) + - - COUNT ( * ) @@ -43570,8 +43899,11 @@ SELECT DISTINCT 89 * + + 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 70 AS col1, 2 AS col1 +---- +2 +70 query I rowsort SELECT ALL - 88 AS col0 @@ -43796,8 +44128,11 @@ SELECT ALL NULLIF ( - + SUM ( 37 ), - CAST ( NULL AS INTEGER ) + - + 64 ) * + - # 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\(\-4\) \+ \(\- CAST\(NULL AS Float64\)\) \* \(\- \(\- min\(Int64\(67\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 76 AS col0, - 4 + - CAST ( NULL AS FLOAT8 ) * - - ( MIN ( ALL + 67 ) ) AS col0 +---- +76 +NULL query I rowsort label-8448 SELECT ALL 48 + + 33 + - 55 / - 25 @@ -43913,8 +44248,11 @@ SELECT DISTINCT NULLIF ( + - 37, 12 * + COALESCE ( + 99, + 60 ) + 35 + + 50 ) AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "Int64\(\-21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 41 AS col1, - 21 AS col1 +---- +-21 +41 query I rowsort label-8470 SELECT 86 / + 69 AS col1 @@ -43991,8 +44329,11 @@ SELECT ALL - 4 + - 92 + + 82 / - 83 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7238 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(94\) AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 77 * + 94 AS col1, 8 AS col1 +---- +7238 +8 query II rowsort label-8484 SELECT - 19 + - 89, + 55 / NULLIF ( - - ( 3 ), + 71 ) col0 @@ -44034,8 +44375,11 @@ SELECT COALESCE ( COUNT ( * ), 52 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 732 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(33\) \* Int64\(23\) \+ Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 32 / + COUNT ( * ) AS col0, 33 * + + 23 + - 27 AS col0 +---- +-32 +732 query I rowsort SELECT ALL + 33 AS col0 @@ -45280,8 +45624,11 @@ SELECT + COUNT ( * ) - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col0" at position 0 and "CAST\(NULL AS Int32\) / Int64\(27\) \* Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 25 AS col0, CAST ( NULL AS INTEGER ) / + 27 * 60 AS col0 +---- +-25 +NULL query I rowsort label-8738 SELECT + 58 * 19 + + COUNT ( * ) @@ -45802,8 +46149,11 @@ SELECT - CAST ( + 29 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4290 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(\-55\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 78 * + - 55 col0, ( 40 ) col0 +---- +-4290 +40 query I rowsort label-8839 SELECT DISTINCT 45 / 5 - + ( - + 77 ) * + - COUNT ( * ) @@ -45904,8 +46254,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 57 AS col1, + COUNT ( * ), 93 * - - COUNT ( * ) AS col1 +---- +-57 +1 +93 query I rowsort SELECT DISTINCT 29 * - 32 @@ -46768,8 +47122,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 AS col1, ( + 87 ) AS col1 +---- +78 +87 query I rowsort label-9022 SELECT ALL 94 + - 4 + - COUNT ( * ) @@ -46901,8 +47258,11 @@ SELECT NULLIF ( + + COALESCE ( + 30, 17 + - 34, + 42 * + NULLIF ( - COUNT ( * ), # Datafusion - Datafusion expected results: # Datafusion - Expected - -41423 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(\-74\) \* Int64\(7\) \+ Int64\(17\) AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 * - 74 * + 7 + 17 AS col0, + 5 col0 +---- +-41423 +5 query I rowsort SELECT DISTINCT + 16 + + 49 @@ -47345,8 +47705,11 @@ 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\(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\. +query II valuesort SELECT NULLIF ( - 87, COUNT ( * ) + COUNT ( * ) ) AS col1, SUM ( - - 24 ) - 91 AS col1 +---- +-67 +-87 query I rowsort label-9133 SELECT - CAST ( + + 28 AS INTEGER ) AS col2 @@ -47401,8 +47764,11 @@ SELECT + 17 + 4 - + 85 * + + 88 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \+ \(\- Int64\(\-67\)\) \* Int64\(1\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 23 + - - 67 * + 1 AS col0, 67 AS col0 +---- +44 +67 query I rowsort SELECT DISTINCT ( 8 ) @@ -47493,8 +47859,11 @@ SELECT DISTINCT - 59 + - - 50 AS col1 # 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 col0" at position 0 and "Int64\(0\) / Int64\(\-82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 42 AS col0, + 0 / - 82 AS col0 +---- +0 +42 query I rowsort SELECT + - 6 AS col0 @@ -47558,8 +47927,11 @@ SELECT ALL - - 98, 82 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -1196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col2" at position 0 and "Int64\(71\) \+ sum\(Int64\(29\)\) \+ \(\- Int64\(16\)\) \* Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 60 col2, 71 + SUM ( + 29 ) + - + 16 * + 81 AS col2 +---- +-1196 +60 query I rowsort label-9173 SELECT ALL ( 58 ) - - - 40 + + COUNT ( * ) + + 51 AS col0 @@ -48169,8 +48541,11 @@ SELECT + COUNT ( * ) - - 52 - + - 92 * + 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(89\)\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 89 AS col1, 15 AS col1 +---- +-89 +15 query II rowsort SELECT ALL - 39 - - 72 AS col2, 43 col0 @@ -48694,8 +49069,11 @@ SELECT ALL + 36 * - 91 * - - 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 277685 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE \(\- Int64\(\-74\)\) WHEN Int64\(31\) THEN Int64\(43\) \* \(\- count\(\(\- Int64\(\-42\)\)\)\) / Int64\(\-9\) ELSE Int64\(18\) END\) \+ Int64\(64\) AS col2" at position 0 and "Int64\(37\) \* Int64\(95\) \* Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CASE - - 74 WHEN + 31 THEN 43 * - COUNT ( - - 42 ) / - 9 ELSE + 18 END + + 64 AS col2, 37 * + 95 * + 79 AS col2 +---- +277685 +46 query I rowsort label-9389 SELECT + CAST ( - 62 AS INTEGER ) / + 45 AS col0 @@ -48960,8 +49338,11 @@ SELECT ALL - 60 - + 70 AS col2 # 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\(19\) AS col2" at position 0 and "Int64\(\-93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 AS col2, - 93 AS col2 +---- +-93 +19 query I rowsort label-9441 SELECT + ( - + 14 ) / + 64 * + + COUNT ( * ) * + ( - + 37 ) AS col2 @@ -49045,8 +49426,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -113 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-28\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(84\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(21\) \- Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) + - 28 + - + COUNT ( * ) * + + 84 * + COUNT ( * ) AS col0, + 21 - + 26 AS col0 +---- +-113 +-5 query I rowsort SELECT + - 81 AS col2 @@ -49253,8 +49637,11 @@ SELECT 10 * - 92 + + 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 2010 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "Int64\(74\) \* Int64\(9\) \+ Int64\(21\) \* Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 AS col2, + 74 * 9 + + 21 * + 64 AS col2 +---- +2010 +81 query I rowsort SELECT + + 83 @@ -49523,8 +49910,11 @@ SELECT DISTINCT 95 * 61 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -111 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(2\) \- Int64\(42\) AS col2" at position 0 and "\(\- CASE Int64\(15\) WHEN \(\- CASE \(\- Int64\(\-38\)\) WHEN Int64\(42\) THEN NULL WHEN Int64\(65\) THEN Int64\(\-94\) ELSE CAST\(NULL AS Int32\) END\) \+ \(\- CAST\(Int64\(\-51\) AS Int32\)\) THEN NULL ELSE Int64\(94\) \+ Int64\(17\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 * 2 - 42 AS col2, - CASE + 15 WHEN - ( CASE - - 38 WHEN + + 42 THEN NULL WHEN 65 THEN - 94 ELSE + + CAST ( NULL AS INTEGER ) END ) + - CAST ( - 51 AS INTEGER ) THEN NULL ELSE + 94 + + + 17 END AS col2 +---- +-111 +8 query I rowsort label-9550 SELECT ALL + ( COUNT ( * ) ) col2 @@ -49857,8 +50247,11 @@ SELECT + 75 * + 96 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \+ Int64\(68\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(CAST\(NULL AS Int32\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 + + 68 AS col2, COUNT ( * ) + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 +---- +-13 +NULL query I rowsort SELECT - 57 + - + 61 AS col2 @@ -49941,8 +50334,11 @@ SELECT - - 60 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- coalesce\(CAST\(coalesce\(Int64\(93\), Int64\(\-55\), Int64\(27\)\) AS Int32\), \(\- Int64\(73\)\), Int64\(\-14\) \+ Int64\(5\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 37 * - + COUNT ( * ) AS col1, - ( + COALESCE ( ( CAST ( + + COALESCE ( 93, - 55, 27 ) AS INTEGER ) ), - + 73, + - 14 + 5 ) ) AS col1 +---- +-37 +-93 query II rowsort label-9629 SELECT COALESCE ( + COUNT ( * ), - - 59 * - ( + - 93 ) + - - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - 34, + - 86 ) AS col2, 88 * 71 - - + COUNT ( * ) + - ( - CASE 67 WHEN - 70 THEN NULL WHEN - - 11 / - - MIN ( DISTINCT - 5 ) + + + 60 THEN + + 78 END ) * - 1 @@ -50256,8 +50652,11 @@ SELECT SUM ( + 33 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 19 AS col2, + COUNT ( * ) AS col2 +---- +1 +19 query I rowsort SELECT DISTINCT - 70 + ( + + ( - - 40 ) ) @@ -51089,8 +51488,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) - + 61 + 63 col0, - 41 AS col0 +---- +-41 +3 query I rowsort label-9849 SELECT DISTINCT - 7 / NULLIF ( - - 10, + 20 ) @@ -51479,8 +51881,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col1" at position 0 and "Int64\(\-30\) \- \(\- Int64\(85\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 86 AS col1, - 30 - - ( + 85 ) AS col1 +---- +55 +86 query I rowsort SELECT - 30 + + 35 AS col0 @@ -51663,8 +52068,11 @@ SELECT 67 * + 45 + 21 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 AS col0, COUNT ( * ) AS col0 +---- +-20 +1 query II rowsort label-9959 SELECT ALL - ( + - 19 ) + - 64 col0, CAST ( - - 59 AS INTEGER ) + - 45 * - CAST ( NULL AS INTEGER ) AS col2 diff --git a/data/sqlite/random/expr/slt_good_20.slt b/data/sqlite/random/expr/slt_good_20.slt index d7e4c67..59a078d 100644 --- a/data/sqlite/random/expr/slt_good_20.slt +++ b/data/sqlite/random/expr/slt_good_20.slt @@ -180,8 +180,11 @@ SELECT DISTINCT 30 + - 8 / - ( + 59 ) # 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 "Int64\(\-5\) AS col0" at position 0 and "Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 5 AS col0, - 26 AS col0 +---- +-26 +-5 query I rowsort label-27 SELECT COUNT ( * ) + 2 @@ -363,8 +366,11 @@ 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\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-62\)\) \+ \(\- Int64\(\-85\)\) \+ Int64\(\-44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 23 * + 64 AS col0, - 86 * - 18 * - + COUNT ( * ) + - - 62 + - - 85 + - 44 AS col0 +---- +-1445 +1472 query I rowsort SELECT DISTINCT 96 * + + 73 + - + 30 @@ -493,8 +499,11 @@ SELECT 10 AS col0, - 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 42 AS col2, + 85 AS col2 +---- +-42 +85 query I rowsort SELECT DISTINCT - 77 + + 58 AS col0 @@ -514,8 +523,11 @@ SELECT ALL - 50 + - 71 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "Int64\(12\) \+ Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 53 AS col0, 12 + + 64 AS col0 +---- +53 +76 query I rowsort SELECT ALL ( - - COALESCE ( - 84, 82 ) ) AS col0 @@ -602,8 +614,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -143 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \+ CASE Int64\(73\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-15\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(18\) \* \(\- Int64\(\-37\)\) THEN NULL WHEN Int64\(62\) THEN NULL ELSE Int64\(\-82\) END \+ Int64\(20\) AS col1" at position 0 and "Int64\(53\) \+ max\(DISTINCT Int64\(\-95\)\) \+ coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(12\) \+ Int64\(46\) \+ \(\- Int64\(\-87\)\)\) \* CAST\(NULL AS Int32\) \* Int64\(\-98\) \* Int64\(\-21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-143 +NULL query I rowsort label-107 SELECT - 80 * 70 * CAST ( NULL AS INTEGER ) + + + COUNT ( * ) AS col0 @@ -618,8 +633,11 @@ SELECT + 39 * + + NULLIF ( + - 29, + 75 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) \* Int64\(\-88\) \+ \(\- avg\(CAST\(NULL AS Float64\)\)\) \* Int64\(\-89\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - 49 * - 88 + + - AVG ( + CAST ( NULL AS FLOAT8 ) ) * + - 89 + + CAST ( NULL AS INTEGER ) col0, + COUNT ( * ) + + + COUNT ( * ) AS col0 +---- +2 +NULL query I rowsort label-110 SELECT 98 * - 36 - ( ( - 5 ) ) + - 34 + + 82 / 77 AS col1 @@ -988,8 +1006,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1236 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* \(\- Int64\(65\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 19 * - + 65 - + COUNT ( * ) AS col1, 43 AS col1 +---- +-1236 +43 query I rowsort label-181 SELECT + CAST ( + 33 AS INTEGER ) AS col1 @@ -1040,8 +1061,11 @@ SELECT - 96 AS col1, + MAX ( DISTINCT COALESCE ( 19, ( + 82 ) ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 AS col2, ( 77 ) col2 +---- +69 +77 query II rowsort SELECT ALL 98, 16 AS col1 @@ -1145,8 +1169,11 @@ SELECT + 76 * 77 - + + 47 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 33 AS col2, COUNT ( * ) AS col2 +---- +-33 +1 query II rowsort SELECT + 84 AS col2, + 8 + + 21 AS col0 @@ -1796,8 +1823,11 @@ SELECT 83 * 48 + 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(81\)\) / \(\- \(\- Int64\(69\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- nullif\(Int64\(88\), Int64\(\-5\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MAX ( + + 81 ) / - - ( + 69 ) * COUNT ( * ) AS col2, - NULLIF ( + 88, - 5 ) AS col2 +---- +-88 +1 query I rowsort SELECT + + 14 * 63 * + 27 AS col2 @@ -1848,8 +1878,11 @@ SELECT ALL + + 50 + ( - + COUNT ( * ) ) * + 72 + - 82 / - 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 2744 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "Int64\(98\) \* Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 8 AS col2, 98 * + 28 col2 +---- +2744 +8 query I rowsort label-344 SELECT - COALESCE ( - CAST ( - 10 AS INTEGER ), 35 ) AS col1 @@ -2073,8 +2106,11 @@ SELECT ( - + 4 ) * - 80 * - - COUNT ( * ) * ( - + 34 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 384 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* Int64\(8\) AS col1" at position 0 and "Int64\(95\) \+ Int64\(99\) \* Int64\(1\) \+ \(\- CASE CAST\(NULL AS Int32\) WHEN Int64\(\-58\) THEN NULL WHEN Int64\(\-53\) THEN NULL ELSE Int64\(71\) \* Int64\(\-11\) \- Int64\(12\) \* Int64\(\-81\) / Int64\(29\) \+ Int64\(\-27\) \+ Int64\(89\) \+ \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \+ Int64\(86\) \+ count\(\(\- Int64\(35\)\)\) END\) \+ CASE \(\- sum\(Int64\(45\)\)\) WHEN \(\- \(\- CASE Int64\(70\) WHEN Int64\(22\) \+ sum\(DISTINCT Int64\(\-72\)\) \+ Int64\(39\) THEN Int64\(12\) \+ Int64\(45\) ELSE NULL END\)\) THEN nullif\(Int64\(25\), sum\(Int64\(\-85\)\) \* Int64\(\-45\)\) \* Int64\(90\) WHEN Int64\(\-52\) THEN NULL ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +384 +NULL query I rowsort SELECT 61 * - ( + 19 ) @@ -2784,8 +2820,11 @@ SELECT ALL - 36 AS col2, - 84 * + + 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(20\)\) AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 20 AS col2, 44 AS col2 +---- +-20 +44 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -3618,8 +3657,11 @@ SELECT + CASE SUM ( + CASE - 65 WHEN - 8 THEN + 98 WHEN 56 THEN NULL ELSE NULL E # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "Int64\(92\) / Int64\(\-41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 AS col0, 92 / - 41 AS col0 +---- +-2 +59 query II rowsort label-680 SELECT - - COUNT ( * ) AS col2, ( - + COUNT ( * ) ) * ( COUNT ( 43 ) ) + + NULLIF ( - 32, + CAST ( NULL AS INTEGER ) ) AS col0 @@ -3955,8 +3997,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - 26333 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(26\)\) AS col2" at position 0 and "Int64\(76\) \* Int64\(80\) \+ \(\- Int64\(93\)\) \+ Int64\(76\) \* sum\(\(\- Int64\(39\)\)\) \- \(\- Int64\(15\)\) \* Int64\(\-42\) \* Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 26 AS col2, + 76 * 80 + - ( + 93 ) + 76 * SUM ( + - ( 39 ) ) - - ( 15 ) * - 42 * + - 37 AS col2 +---- +-26 +26333 query I rowsort SELECT ALL + 83 - + + 20 @@ -4268,8 +4313,11 @@ SELECT - 70 * 75 - 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1443 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT \(\- Int64\(64\)\)\) \* CAST\(Int64\(21\) AS Int32\) \+ Int64\(\-99\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( DISTINCT - ( + 64 ) ) * CAST ( 21 AS INTEGER ) + - 99 AS col2, COUNT ( * ) AS col2 +---- +-1443 +1 query I rowsort label-801 SELECT ALL CAST ( NULL AS INTEGER ) * - 58 + + ( - 45 ) + - + 44 + - - COALESCE ( - 65, + 38 * + 47 * - 70 + - 11 ) + - 53 AS col2 @@ -4391,8 +4439,12 @@ SELECT ALL - ( + - 76 ) - 69 AS col2 # Datafusion - Expected - -89 # Datafusion - Expected - 647 # Datafusion - Expected - 476 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* \(\- Int64\(\-12\)\) \+ Int64\(23\) AS col1" at position 1 and "Int64\(34\) \* Int64\(14\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 89, 52 * - - 12 + + 23 AS col1, 34 * + 14 AS col1 +---- +-89 +476 +647 query II rowsort SELECT 41 AS col0, 24 @@ -4682,8 +4734,11 @@ SELECT ALL 89 * - COUNT ( * ) + COUNT ( * ) + + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - -174890 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) \* Int64\(39\) \* Int64\(68\) \+ Int64\(54\) \+ Int64\(23\) \+ Int64\(65\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 66 * ( 39 ) * 68 + 54 + + 23 + + 65 AS col1, 20 AS col1 +---- +-174890 +20 query II rowsort label-879 SELECT ALL + - COUNT ( + 68 ), + 92 + - NULLIF ( 22, + 84 * NULLIF ( + 83, - 86 * + - COUNT ( * ) ) + - CAST ( + - 5 AS INTEGER ) ) AS col2 @@ -4851,8 +4906,11 @@ SELECT - - 58 / + - 62 AS col0 # 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\(\-33\) / Int64\(\-23\) \+ 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 II valuesort SELECT + - 33 / - 23 + 17 AS col0, 15 AS col0 +---- +15 +18 query I rowsort label-911 SELECT DISTINCT + + 22 * + - 97 - CAST ( - - 57 AS INTEGER ) @@ -5815,8 +5873,11 @@ SELECT - 21 * + + ( 92 ) + MIN ( - 41 ) * 14 + + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 8 col1, + COUNT ( * ) AS col1 +---- +1 +8 query I rowsort SELECT DISTINCT - 97 + + - 23 @@ -5897,8 +5958,11 @@ SELECT 90 + - - NULLIF ( + + COUNT ( * ), - 4 ) * - 39 # 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\(35\) \- Int64\(57\) AS col2" at position 0 and "\(\- CASE Int64\(\-65\) WHEN Int64\(12\) \+ min\(Int64\(13\)\) / Int64\(41\) THEN Int64\(65\) WHEN Int64\(47\) THEN Int64\(\-26\) \* Int64\(40\) \+ Int64\(\-40\) \* Int64\(\-30\) WHEN Int64\(\-7\) THEN Int64\(73\) ELSE Int64\(61\) END\) \+ Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 35 - 57 AS col2, - CASE + - 65 WHEN 12 + MIN ( ALL 13 ) / + 41 THEN 65 WHEN 47 THEN - 26 * + 40 + - 40 * - 30 WHEN - 7 THEN 73 ELSE 61 END + 8 AS col2 +---- +-22 +-53 query I rowsort SELECT 99 + + 22 @@ -6425,8 +6489,12 @@ SELECT - ( - MAX ( 76 ) ) * + - 62 * - 62 + - 71 + + 60 - + COUNT ( DISTINCT + 4 # Datafusion - Expected - 1 # Datafusion - Expected - 62 # Datafusion - Expected - -118 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 1 and "Int64\(\-33\) \+ Int64\(\-70\) \+ Int64\(\-15\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + + COUNT ( + 68 ) col1, 62 AS col2, - 33 + - 70 + + - 15 AS col2 +---- +-118 +1 +62 query I rowsort label-1215 SELECT CAST ( + 10 AS INTEGER ) col2 @@ -6982,8 +7050,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "max\(Int64\(62\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 4 AS col2, MAX ( + 62 ) AS col2 +---- +4 +62 query I rowsort SELECT ALL 24 + - + 51 + + - 61 @@ -7543,8 +7614,11 @@ SELECT ALL + COALESCE ( COUNT ( * ), + 48 ) - - 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2848 # Datafusion - Expected - -13778 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \* Int64\(32\) AS col0" at position 0 and "Int64\(83\) \* Int64\(2\) \* Int64\(\-83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 89 * + + 32 AS col0, 83 * 2 * - 83 col0 +---- +-13778 +2848 query I rowsort label-1429 SELECT + 42 + + - MIN ( - + 47 ) + - 85 * + 11 AS col0 @@ -7656,8 +7730,11 @@ SELECT 93 * + CAST ( - ( - 68 ) AS INTEGER ) - COUNT ( * ), - 60 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 156 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \+ Int64\(96\) \+ \(\- Int64\(31\)\) \+ Int64\(10\) AS col0" at position 0 and "\(\- sum\(Int64\(39\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 81 + + 96 + - ( + 31 ) + + 10 AS col0, - SUM ( ALL + 39 ) AS col0 +---- +-39 +156 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -7985,8 +8062,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(6\) \* Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col0, 6 * 18 AS col0 +---- +108 +NULL query I rowsort label-1513 SELECT ALL 56 * 86 * - + COUNT ( * ) AS col2 @@ -8026,8 +8106,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 59 + + ( + - 80 ) AS col0, + 45 / - - COUNT ( * ) AS col0 +---- +-139 +45 query I rowsort SELECT ALL + ( + 36 ) * + 84 @@ -8780,8 +8863,11 @@ SELECT ALL + 58 + - + ( - 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 2475 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \+ \(\- Int64\(72\)\) AS col1" at position 0 and "Int64\(25\) \* Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 + - + 72 col1, 25 * 99 AS col1 +---- +-5 +2475 query I rowsort label-1668 SELECT CAST ( NULL AS INTEGER ) * - + MAX ( DISTINCT - COALESCE ( + + ( - 91 ), - 88 * + - 16 ) ) @@ -8812,8 +8898,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(\-79\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 32 - + 40 AS col0, + ( COUNT ( * ) ) * - - 79 AS col0 +---- +-8 +79 query I rowsort SELECT ALL + + 14 * - 93 AS col1 @@ -9116,8 +9205,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 96 * - + COUNT ( * ) AS col0, 51 AS col0 +---- +-96 +51 query II rowsort label-1731 SELECT + + 85 + 78 col2, COUNT ( * ) * + 20 * - NULLIF ( + 36, + ( + + 37 ) ) / CASE + 28 WHEN + 63 THEN NULL ELSE + ( + - CASE - ( + 36 ) WHEN + 17 THEN 94 WHEN 99 + 35 THEN NULL ELSE + SUM ( ALL - 58 ) END ) * + - 1 * + 27 - + 32 END @@ -9305,8 +9397,11 @@ SELECT + + COUNT ( * ) * + - 3 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 13 AS col0, ( 88 ) AS col0 +---- +13 +88 query II rowsort SELECT + 46, 96 AS col2 @@ -9539,8 +9634,11 @@ SELECT ( 38 ) + - + 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 820 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* \(\- Int64\(82\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 10 ) * - + 82 AS col0, + COUNT ( * ) AS col0 +---- +1 +820 query I rowsort label-1810 SELECT ALL + NULLIF ( - 33, - - 53 + 95 ) * - COUNT ( * ) AS col0 @@ -9637,8 +9735,11 @@ SELECT ALL 35 * COUNT ( * ) - + 25 + - + SUM ( 36 ) + - - 58 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3806 # Datafusion - Expected - -4284 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* \(\- \(\- coalesce\(Int64\(52\), Int64\(34\)\)\)\) \+ Int64\(10\) AS col0" at position 0 and "Int64\(\-51\) \* Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 73 * - - COALESCE ( + 52, + 34 ) + + + 10 AS col0, - 51 * + 84 AS col0 +---- +-4284 +3806 query I rowsort label-1828 SELECT - 8 * + COALESCE ( COUNT ( * ), - - NULLIF ( - 28, + - 51 ) * + 3 / 37, - 12 * - - 29, + - 37 * 36 ) AS col1 @@ -9685,8 +9786,11 @@ SELECT + ( 48 ) * + 27, + 43 + 51 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 74 AS col2, - 38 AS col2 +---- +-38 +74 query I rowsort label-1837 SELECT DISTINCT NULLIF ( 30, - 1 ) * + 61 + 92 * 95 * CAST ( NULL AS INTEGER ) @@ -9819,8 +9923,11 @@ SELECT COALESCE ( - + 3, - + 81, + 97 - + COUNT ( * ) + - 99 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4575 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(20\)\) \+ Int64\(74\) \* Int64\(61\) \+ Int64\(81\) AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 20 ) + 74 * 61 + + 81 AS col1, 3 AS col1 +---- +3 +4575 query I rowsort label-1863 SELECT - 51 / - + 4 @@ -10144,8 +10251,11 @@ SELECT - COUNT ( - 60 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(38\)\) \+ Int64\(\-36\) AS col1" at position 0 and "Int64\(\-78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 38 + - 36 AS col1, - 78 AS col1 +---- +-74 +-78 query I rowsort label-1926 SELECT ALL + 32 / + 93 + - + 96 AS col2 @@ -10226,8 +10336,11 @@ 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\(1\)\) AS count\(\*\)\) \- Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 17 AS col2, - 23 / - COUNT ( * ) - 88 AS col2 +---- +-65 +17 query I rowsort SELECT - 34 * - 6 @@ -10944,8 +11057,11 @@ SELECT ALL + 97 * + 65 + + + 51 col2 # 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 col1" at position 0 and "Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 25 AS col1, - 61 AS col1 +---- +-61 +25 query II rowsort SELECT ALL - 47 * + 73 + 14 + + 46 AS col2, - 27 AS col1 @@ -11018,8 +11134,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \- \(\- \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\)\) AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 - - - CAST ( - COUNT ( * ) AS INTEGER ) AS col1, + 23 AS col1 +---- +23 +45 query I rowsort label-2095 SELECT COUNT ( * ) * + NULLIF ( - 85, + COUNT ( * ) + + + 19 * + + 69 ) @@ -11167,8 +11286,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(19\)\) \+ Int64\(66\) AS col0" at position 0 and "Int64\(38\) \* CASE Int64\(\-86\) WHEN Int64\(\-1\) THEN Int64\(\-56\) \- Int64\(80\) ELSE NULL END \+ Int64\(0\) \* \(\- Int64\(20\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( ALL + 19 ) + + 66 AS col0, 38 * + CASE + - 86 WHEN - 1 THEN - 56 - ( + 80 ) ELSE NULL END + - 0 * - + 20 AS col0 +---- +67 +NULL query II rowsort label-2123 SELECT ALL 47 AS col0, 62 * - + 81 + - - COUNT ( * ) + 22 * COUNT ( * ) * + - 6 @@ -11608,8 +11730,11 @@ 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\(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\. +query II valuesort SELECT ALL ( + + COUNT ( * ) ) / 8 AS col0, 43 AS col0 +---- +0 +43 query II rowsort label-2207 SELECT ALL - + 19 AS col0, + ( CAST ( NULL AS INTEGER ) ) @@ -11643,8 +11768,11 @@ SELECT + 42 AS col0, 91 * 51 + 6 / 1 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col1" at position 0 and "Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 31 AS col1, - 20 AS col1 +---- +-20 +-31 query II rowsort label-2213 SELECT + 88, + COUNT ( * ) * 15 AS col2 @@ -11752,8 +11880,12 @@ 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\(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\. +query IIR valuesort 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 +---- +-85 +39 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -11794,8 +11926,11 @@ SELECT 80 + + + 61 - - + 92 * - 29 * - - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 23 AS col0, 55 AS col0 +---- +23 +55 query I rowsort label-2240 SELECT DISTINCT - MAX ( DISTINCT - 22 ) @@ -11919,8 +12054,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(72\) \* Int64\(50\) \* Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 68 * 26 AS col0, - COUNT ( * ) * 72 * 50 * 0 AS col0 +---- +0 +1768 query I rowsort label-2264 SELECT DISTINCT - SUM ( + + 41 ) AS col1 @@ -12450,8 +12588,11 @@ SELECT 13 / + - 53 * + + COUNT ( * ) AS col1 # 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 "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 AS col2, + 6 col2 +---- +31 +6 query I rowsort SELECT DISTINCT 2 + + 93 - 92 AS col0 @@ -12652,8 +12793,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 92 AS col1, + 74 AS col1 +---- +74 +92 query II rowsort SELECT DISTINCT + 66 AS col0, - 85 @@ -13200,8 +13344,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) * - ( - 84 ) AS col0, COALESCE ( + - 89, - - 86, + + 21 / + MAX ( DISTINCT 17 ) ) col0 +---- +-89 +84 query I rowsort label-2509 SELECT DISTINCT - COUNT ( * ) - + 70 @@ -13767,8 +13914,11 @@ SELECT 72 + + + 51 / - - 17 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -4862 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "Int64\(14\) \+ Int64\(\-92\) \* Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 AS col1, 14 + - 92 * 53 AS col1 +---- +-4862 +82 query I rowsort SELECT 56 - + - 64 AS col2 @@ -14156,8 +14306,11 @@ SELECT + 48 - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -864 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "Int64\(\-12\) \* max\(\(\- Int64\(\-72\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 41 col1, - 12 * + MAX ( - - 72 ) AS col1 +---- +-864 +41 query I rowsort label-2697 SELECT ALL COALESCE ( + 72, 62 ) + - ( - - COALESCE ( - ( + MAX ( 80 ) ), 55 + - SUM ( - 96 ) * - 88 ) ) * + 34 col1 @@ -14245,8 +14398,11 @@ SELECT DISTINCT - NULLIF ( - COUNT ( * ), 39 ) AS col0 # 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 "Int64\(1\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 1 AS col1, 11 AS col1 +---- +1 +11 query I rowsort label-2714 SELECT ( + ( + - CAST ( NULL AS INTEGER ) ) ) + - 55 + + 7 * CAST ( NULL AS INTEGER ) @@ -14266,8 +14422,11 @@ 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\(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\. +query IR valuesort 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 +---- +-1 +NULL query I rowsort SELECT 82 * 4 @@ -14384,8 +14543,11 @@ SELECT COUNT ( DISTINCT - 95 ) 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\(\-31\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 AS col1, 10 col1 +---- +-31 +10 query II rowsort label-2740 SELECT - CAST ( NULL AS INTEGER ) AS col2, - 12 + 29 AS col0 @@ -14442,8 +14604,11 @@ SELECT + CASE - 57 WHEN - 22 THEN + - 3 + + 90 ELSE - - 93 END # Datafusion - Datafusion expected results: # Datafusion - Expected - 4500 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(50\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90 * + 50 col2, + 47 AS col2 +---- +4500 +47 query II rowsort label-2751 SELECT + 8 / 67 AS col2, - ( - - 43 ) * 93 / - - 91 - 38 @@ -14636,8 +14801,11 @@ 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\(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\. +query II valuesort SELECT + - 23 + - COUNT ( * ) - 85 AS col2, + 49 * - 8 * + 78 AS col2 +---- +-109 +-30576 query I rowsort label-2786 SELECT + COUNT ( * ) / + 94 AS col2 @@ -14882,8 +15050,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(Int64\(\-16\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 * + ( COUNT ( * ) ) col2, CAST ( + - 16 AS INTEGER ) AS col2 +---- +-16 +80 query II rowsort label-2834 SELECT - 50 AS col0, COUNT ( * ) * - COUNT ( * ) col1 @@ -14955,8 +15126,11 @@ SELECT 16 + - - 17 - 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 146 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \- Int64\(10\) \+ Int64\(97\) AS col2" at position 0 and "Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 - + 10 + + 97 AS col2, 57 AS col2 +---- +146 +57 query I rowsort label-2848 SELECT COUNT ( * ) / MIN ( ALL + 81 ) * + 10 AS col1 @@ -15142,8 +15316,11 @@ SELECT + 56 / - 85 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 61 col1, + 11 col1 +---- +-61 +11 query II rowsort label-2884 SELECT DISTINCT + + 48 AS col1, - 58 + 23 + - CAST ( - 31 AS INTEGER ) * + 72 AS col2 @@ -15411,8 +15588,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 7 AS col0, - 29 AS col0 +---- +-29 +7 query I rowsort SELECT 90 + - 5 AS col2 @@ -15564,8 +15744,11 @@ SELECT ALL - + COUNT ( * ) + 80 * 74 # 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\(\-7\) \+ Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 52 col2, - 7 + 87 AS col2 +---- +-52 +80 query I rowsort label-2964 SELECT + + MIN ( DISTINCT + 11 ) @@ -15880,8 +16063,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 68 + + 1 / + 18 col1, COUNT ( * ) + - 90 AS col1 +---- +-68 +-89 query I rowsort label-3024 SELECT DISTINCT + ( - - COALESCE ( - ( NULLIF ( + + 11, SUM ( - 24 ) - - NULLIF ( + ( + + CAST ( NULL AS INTEGER ) ), - 12 * + 23 * + + 34 * + + 38 + + COUNT ( * ) * 57 ) - + 90 * + 87 ) ), 66 + - 90 ) ) + 92 / 66 AS col2 @@ -16019,8 +16205,11 @@ SELECT ALL COALESCE ( - - CASE + 4 WHEN - 0 + + 88 + + - 79 * + 19 THEN NULL WHE # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 2180 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(60\)\) AS col1" at position 0 and "Int64\(61\) \* Int64\(66\) \+ Int64\(\-26\) \* coalesce\(Int64\(71\), \(\- max\(DISTINCT Int64\(22\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( 60 ) AS col1, + 61 * + 66 + - 26 * + COALESCE ( 71, - MAX ( DISTINCT + 22 ) ) AS col1 +---- +2180 +60 query I rowsort label-3051 SELECT DISTINCT ( COUNT ( * ) ) * + 29 AS col0 @@ -16301,8 +16490,11 @@ SELECT ALL 2 * + + ( + CAST ( ( 82 ) AS INTEGER ) ) 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 col0" at position 0 and "\(\- min\(DISTINCT CASE Int64\(78\) WHEN Int64\(\-30\) THEN \(\- \(\- Int64\(42\)\)\) / Int64\(62\) \+ \(\- Int64\(80\)\) ELSE NULL END\)\) \* Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 AS col0, - MIN ( DISTINCT + + CASE + 78 WHEN - 30 THEN - - ( 42 ) / 62 + - ( 80 ) ELSE NULL END ) * + + 36 AS col0 +---- +81 +NULL query II rowsort label-3104 SELECT ALL 98, COUNT ( ALL + 9 ) AS col0 @@ -16358,8 +16550,11 @@ SELECT DISTINCT 54 * + - ( 22 ) * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col1" at position 0 and "Int64\(\-68\) \+ Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 68 AS col1, - 68 + 68 AS col1 +---- +0 +68 query I rowsort SELECT DISTINCT + NULLIF ( + 65, 75 ) AS col2 @@ -16988,8 +17183,11 @@ SELECT + NULLIF ( + COUNT ( * ), + 48 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1090 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(11\)\) \* Int64\(99\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( DISTINCT + 11 ) * + 99 + COUNT ( * ) AS col0, 86 AS col0 +---- +1090 +86 query I rowsort label-3235 SELECT ALL - 65 * + COALESCE ( - 21, COUNT ( * ) ) * + - 1 + + 36 + - 32 AS col2 @@ -17173,8 +17371,12 @@ SELECT - 96 * MIN ( + - 26 ) * - 20 - - - 92 + COUNT ( * ) # Datafusion - Expected - -22 # Datafusion - Expected - 65 # Datafusion - Expected - -1292 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(22\)\)\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - MAX ( 22 ) AS col1, 65 AS col1, + 76 * + SUM ( DISTINCT - 17 ) AS col2 +---- +-1292 +-22 +65 query I rowsort label-3269 SELECT + 88 * 48 + COALESCE ( 10, 23 * + 47 * + SUM ( - 97 ), - 12 ) AS col1 @@ -17422,8 +17624,11 @@ SELECT ALL - 79 + - 10 AS col1, 7 # 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 col2" at position 0 and "\(\- nullif\(Int64\(29\), \(\- Int64\(65\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + 2 ) AS col2, - NULLIF ( 29, - + 65 ) AS col2 +---- +-2 +-29 query I rowsort SELECT ALL + 52 * - 88 col2 @@ -17479,8 +17684,11 @@ SELECT 7 * COUNT ( ALL + + 58 ) * 92 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 126 # Datafusion - Expected - 360 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \- Int64\(\-65\) AS col2" at position 0 and "Int64\(10\) \* \(\- Int64\(\-36\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 61 - - 65 AS col2, 10 * - - 36 AS col2 +---- +126 +360 query I rowsort label-3326 SELECT - COUNT ( * ) * 63 * - - 57 @@ -17748,8 +17956,11 @@ SELECT + 66 - 64 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col2" at position 0 and "\(\- Int64\(86\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 73 AS col2, - ( + 86 ) AS col2 +---- +-73 +-86 query I rowsort label-3378 SELECT ALL - + SUM ( ALL + + NULLIF ( + + NULLIF ( 50, - - 67 ), + 93 - + + 1 ) ) * - MAX ( DISTINCT + 58 ) + - - 34 AS col0 @@ -17834,8 +18045,11 @@ SELECT - 19 * - 90 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2646 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(63\) AS col2" at position 0 and "Int64\(\-76\) \+ Int64\(\-1\) \- \(\- coalesce\(Int64\(56\), Int64\(21\)\)\) \+ \(\- Int64\(\-53\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 42 * 63 AS col2, - 76 + + - 1 - - COALESCE ( 56, 21 ) + - - 53 AS col2 +---- +2646 +32 query I rowsort SELECT + ( - + 67 ) AS col1 @@ -18056,8 +18270,11 @@ SELECT + + ( - ( + 82 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) AS col2 +---- +1 +NULL query I rowsort label-3436 SELECT DISTINCT - + 70 + + COUNT ( * ) * - 54 + 56 AS col2 @@ -18470,8 +18687,11 @@ SELECT - 26 * + ( + 27 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 83 AS col1, 85 col1 +---- +-83 +85 query I rowsort SELECT - NULLIF ( + 96, + 74 ) @@ -18705,8 +18925,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -544 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \* Int64\(8\) AS col2" at position 0 and "Int64\(\-73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 68 * 8 AS col2, - 73 AS col2 +---- +-544 +-73 query I rowsort label-3558 SELECT ALL + 75 + - 72 * + + COUNT ( * ) AS col1 @@ -18840,8 +19063,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "Int64\(\-72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 95 col0, - 72 col0 +---- +-72 +95 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -18877,8 +19103,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-30\) \* Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 32 AS col1, CAST ( NULL AS INTEGER ) * - 30 * + 13 col1 +---- +32 +NULL query I rowsort label-3590 SELECT ALL + + 50 - 64 * COALESCE ( + COUNT ( * ), COUNT ( * ) * + + 3 ) @@ -18957,8 +19186,11 @@ SELECT ALL + - 54 * + 8 + + 30 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "\(\- Int64\(\-13\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 AS col2, - ( + ( + - 13 ) ) AS col2 +---- +13 +76 query I rowsort SELECT NULLIF ( + 39, ( 2 ) ) @@ -19145,8 +19377,11 @@ SELECT DISTINCT + NULLIF ( + 74, - + 46 + - CAST ( - + 39 AS FLOAT8 ) + + 57 ) / # 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 "Int64\(\-78\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 78 AS col2, + 38 AS col2 +---- +-78 +38 query I rowsort SELECT 7 * 85 @@ -19285,8 +19520,11 @@ SELECT - - COALESCE ( + + 46, + - 91 - - 62, - 7 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 20650 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col1" at position 0 and "Int64\(\-59\) \* Int64\(10\) \* Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 AS col1, - 59 * + 10 * - 35 col1 +---- +20650 +75 query I rowsort SELECT ALL - 37 + - + 71 + + - 98 + - 5 @@ -19485,8 +19723,11 @@ SELECT + MIN ( + + 64 ) + - 85 + - + 45 AS col0, - 77 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -36466 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col2" at position 0 and "min\(Int64\(72\)\) \+ Int64\(94\) \+ \(\- Int64\(61\)\) / Int64\(30\) \+ Int64\(33\) \* Int64\(74\) \* Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 3 col2, MIN ( 72 ) + + 94 + - + 61 / + 30 + 33 * 74 * - 15 AS col2 +---- +-36466 +3 query I rowsort SELECT DISTINCT + + 34 + 40 + + 83 + - - 92 * - + 96 * 79 * - + 29 @@ -19763,8 +20004,11 @@ SELECT DISTINCT + COUNT ( * ) AS col2, + 76 / + 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) / nullif\(\(\- Int64\(\-79\)\), count\(Int64\(1\)\) AS count\(\*\) / \(\- \(\- sum\(CAST\(NULL AS Int32\)\)\)\) \* Int64\(\-37\) \+ \(\- Int64\(48\)\) \* Int64\(74\)\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 41 / + + NULLIF ( - - 79, COUNT ( * ) / - - SUM ( CAST ( NULL AS INTEGER ) ) * - 37 + - + 48 * 74 ) AS col2, + ( 10 ) AS col2 +---- +0 +10 query I rowsort label-3753 SELECT - SUM ( - - 14 ) * + MIN ( - ( - 93 ) ) * + 98 @@ -19844,8 +20088,11 @@ SELECT 32 + + - 67 AS col2, - 42 * + COUNT ( * ) * - 48 - + + 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ \(\- Int64\(\-19\)\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 + - - 19 AS col2, 6 AS col2 +---- +6 +61 query II rowsort label-3768 SELECT ALL ( - 19 ) / + ( 30 ) * - 18 * MIN ( ALL - COALESCE ( 93, 97 + - CAST ( NULL AS INTEGER ), + + 69 + - 91 + + - 60 + + ( + 51 ) ) ) * + - 64 + - 9 + - 41 + 6 + 85 + + - 89 / 15, - 23 * - 47 - - 14 + - 85 col2 @@ -20077,8 +20324,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 88 AS col1, 5 AS col1 +---- +-88 +5 query II rowsort label-3810 SELECT CAST ( - - 30 AS INTEGER ) * + + 57 + - ( + 42 ) AS col2, + 81 @@ -20614,8 +20864,11 @@ SELECT ALL SUM ( - 7 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2075 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col2" at position 0 and "Int64\(\-25\) \* Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 1 AS col2, - 25 * 83 AS col2 +---- +-2075 +1 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -20733,8 +20986,11 @@ NULL # 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 "Int64\(1\) / Int64\(\-97\) AS col1" at position 0 and "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 1 / + - 97 AS col1, 58 AS col1 +---- +0 +58 query I rowsort label-3935 SELECT + CAST ( + - 38 AS INTEGER ) * + 52 AS col1 @@ -20835,8 +21091,11 @@ 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\(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\. +query II valuesort SELECT - 39 / 95 * - COUNT ( * ) * - - 61 AS col2, - 14 * + + 6 * - COUNT ( * ) * + COUNT ( ALL + 80 ) + - 91 AS col2 +---- +-7 +0 query I rowsort SELECT ALL + 50 * - 88 + + - 7 AS col2 @@ -20846,8 +21105,11 @@ SELECT ALL + 50 * - 88 + + - 7 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3708 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(18\)\) \* Int64\(\-16\) \* Int64\(\-13\) \+ Int64\(36\) AS col1" at position 0 and "Int64\(\-3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 18 * - 16 * - 13 + + + 36 AS col1, - 3 AS col1 +---- +-3 +-3708 query I rowsort label-3957 SELECT + SUM ( DISTINCT + 2 ) AS col0 @@ -21188,8 +21450,11 @@ SELECT ALL + COUNT ( * ) * 47 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 "Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 89 col1, - 43 AS col1 +---- +-43 +89 query I rowsort label-4021 SELECT 42 * - + ( - SUM ( + 79 ) ) - + ( - COUNT ( * ) ) / - 85 / 34 @@ -21288,8 +21553,11 @@ SELECT 53 * + 10 + + - 7 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(33\)\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( 33 ) AS col1, ( + + 69 ) AS col1 +---- +-33 +69 query I rowsort label-4040 SELECT ALL - ( ( 28 ) ) * - + CAST ( NULL AS INTEGER ) @@ -21432,8 +21700,11 @@ SELECT + 29 + - 91 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 1404 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "Int64\(18\) \* Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 AS col2, 18 * + 78 AS col2 +---- +1404 +85 query I rowsort SELECT ALL - - 5 * 90 + 73 - 10 + + 95 * + 38 + 51 - + 80 AS col0 @@ -22836,8 +23107,12 @@ SELECT + + COUNT ( * ) * - - 71 - - 38 # Datafusion - Expected - -88 # Datafusion - Expected - 33 # 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 "Int64\(\-56\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 88 AS col0, 33, + - 56 AS col0 +---- +-56 +-88 +33 query II rowsort label-4340 SELECT ALL 38 col0, 50 - - COUNT ( * ) + 44 + + COALESCE ( - 62, - 30 * - 79 ) * NULLIF ( + 14 + 74, 44 + 9 ) col1 @@ -22909,8 +23184,11 @@ SELECT DISTINCT 32 + + COALESCE ( 43, + - 12 / - NULLIF ( + COUNT ( * ), AVG ( D # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 79 ) AS col0, 48 col0 +---- +-79 +48 query I rowsort label-4353 SELECT - + 13 * - CASE + + 43 WHEN 13 * 43 THEN + 70 + - 98 WHEN + 72 THEN + 76 END + + ( + MAX ( - 24 ) ) @@ -23160,8 +23438,11 @@ SELECT DISTINCT - ( - 83 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 162032 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* Int64\(52\) \* Int64\(41\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 76 * + 52 * 41 AS col1, + 38 AS col1 +---- +162032 +38 query I rowsort SELECT ALL + ( + + 78 ) * 21 @@ -23828,8 +24109,11 @@ SELECT ALL 71 + - + 17 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ Int64\(6\) AS col2" at position 0 and "\(\- CASE \(\- Int64\(43\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(50\) / \(\- Int64\(\-54\)\) \- \(\- CAST\(NULL AS Int32\)\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 + 6 AS col2, - CASE - + 43 WHEN COUNT ( * ) THEN + 50 / - - 54 - + ( + - CAST ( NULL AS INTEGER ) ) END AS col2 +---- +8 +NULL query II rowsort label-4531 SELECT - SUM ( DISTINCT - 99 ), + 28 AS col1 @@ -23897,8 +24181,12 @@ SELECT DISTINCT + NULLIF ( 88, ( - COUNT ( * ) ) + - 4 * + - 15 + 91 + - 16 - ( # Datafusion - Expected - -54 # Datafusion - Expected - -2506 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \- \(\- Int64\(\-82\)\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 28 - - - 82 AS col0, + 68 + - 39 * - - 66 col2, 38 AS col0 +---- +-2506 +-54 +38 query I rowsort label-4544 SELECT - - 70 / + 43 AS col0 @@ -24435,8 +24723,11 @@ SELECT ALL - ( - - 67 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 158 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \+ \(\- max\(Int64\(6\)\)\) AS col0" at position 0 and "max\(\(\- Int64\(\-88\)\)\) \+ Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 24 + - MAX ( + 6 ) AS col0, + MAX ( - ( - 88 ) ) + + 70 col0 +---- +158 +18 query I rowsort label-4647 SELECT ALL 78 / 94 AS col0 @@ -24665,8 +24956,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- CAST\(Int64\(\-67\) AS Int32\)\), count\(Int64\(1\)\) AS count\(\*\) / Int64\(17\)\) AS col2" at position 0 and "coalesce\(min\(Int64\(16\)\), Int64\(\-28\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + NULLIF ( - CAST ( - 67 AS INTEGER ), COUNT ( * ) / 17 ) AS col2, COALESCE ( + MIN ( 16 ), + - 28 ) col2 +---- +16 +67 query II rowsort SELECT - 83 * - - 7 + - 41 col1, 71 AS col0 @@ -24846,8 +25140,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 13169813 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \- min\(Int64\(\-47\)\) \* Int64\(25\) \* Int64\(77\) / \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(59\) \+ Int64\(24\) \- \(\- \(\- max\(DISTINCT \(\- Int64\(\-85\)\)\)\)\) \* Int64\(\-51\) \* Int64\(98\) \* Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 - MIN ( ALL + - 47 ) * + 25 * + 77 / - CAST ( NULL AS INTEGER ) AS col0, + 59 + + 24 - - - MAX ( DISTINCT - - 85 ) * - 51 * 98 * 31 AS col0 +---- +13169813 +NULL query II rowsort label-4725 SELECT + 53 AS col0, - 80 / 8 + 98 AS col1 @@ -25286,8 +25583,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) col2, 81 + + - COUNT ( * ) + + 5 AS col2 +---- +-1 +85 query I rowsort label-4810 SELECT DISTINCT - ( NULLIF ( - + 71, COUNT ( * ) ) ) @@ -25777,8 +26077,11 @@ SELECT DISTINCT - - MIN ( ALL - 96 ) * + 74 + - 87 # 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 "Int64\(74\) AS col2" at position 0 and "Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 74 AS col2, + 51 AS col2 +---- +51 +74 query I rowsort label-4903 SELECT COUNT ( * ) / + 36 @@ -26029,8 +26332,11 @@ SELECT - 53 + - + 37 * + - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col0, 26 AS col0 +---- +26 +NULL query I rowsort label-4952 SELECT - COALESCE ( COUNT ( * ), - 32, - - 19 ) @@ -26382,8 +26688,11 @@ SELECT 90 + + 68 + - 89 + + 26 / 50 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(23\)\)\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( 23 ) col2, + 24 AS col2 +---- +-23 +24 query I rowsort label-5019 SELECT 0 + CAST ( 58 AS INTEGER ) @@ -26652,8 +26961,11 @@ SELECT - 35 + + 66, 14 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7872 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \* Int64\(\-82\) AS col1" at position 0 and "Int64\(61\) \- Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 96 * - 82 AS col1, + 61 - + 83 col1 +---- +-22 +7872 query I rowsort label-5070 SELECT ALL + NULLIF ( + MIN ( - - 42 ), COUNT ( * ) ) @@ -26720,8 +27032,11 @@ SELECT 4 + + - COUNT ( * ) + 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(69\)\) AS col0" at position 0 and "\(\- nullif\(\(\- Int64\(23\)\), Int64\(\-69\) \+ \(\- Int64\(99\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( + 69 ) AS col0, - NULLIF ( - + 23, - 69 + - + 99 ) AS col0 +---- +23 +69 query I rowsort SELECT DISTINCT ( + 77 ) * + - 23 @@ -27111,8 +27426,11 @@ SELECT - 10 + COUNT ( * ) - 92 + 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 2017 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "Int64\(22\) \* Int64\(95\) \+ Int64\(78\) \+ \(\- Int64\(\-31\)\) \+ Int64\(\-20\) \- Int64\(50\) \* Int64\(78\) / Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 25 col0, 22 * 95 + 78 + - - 31 + + + ( - 20 ) - + 50 * 78 / + 24 AS col0 +---- +2017 +25 query II rowsort SELECT - 36, 7 AS col2 @@ -27350,8 +27668,11 @@ SELECT 15 - - + ( COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 4891 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "sum\(Int64\(73\)\) \* \(\- Int64\(\-67\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 66 AS col1, + SUM ( + 73 ) * - - 67 col1 +---- +4891 +66 query I rowsort SELECT 89 + + 30 @@ -27945,8 +28266,11 @@ SELECT + + 37 / 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 AS col2, 66 AS col2 +---- +46 +66 query I rowsort label-5320 SELECT ALL + CASE + 43 WHEN COUNT ( * ) + COALESCE ( MAX ( DISTINCT - 88 ), + 58 * - + 91 ) THEN 82 END AS col2 @@ -28074,8 +28398,11 @@ SELECT DISTINCT - COALESCE ( + - 82, - 32 + + 63, + CAST ( - 77 AS INTEGER ), - # Datafusion - Datafusion expected results: # Datafusion - Expected - -4717 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \* Int64\(\-53\) AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 89 * - 53 AS col0, + 54 AS col0 +---- +-4717 +54 query I rowsort SELECT 5 + + 83 col1 @@ -28233,14 +28560,20 @@ SELECT 60 + 40 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 0 and "Int64\(25\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 AS col0, 25 * CAST ( NULL AS INTEGER ) AS col0 +---- +96 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col0" at position 0 and "Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 73 col0, - 43 AS col0 +---- +-43 +-73 query I rowsort SELECT - 32 * - 36 + + + 54 * + 52 col0 @@ -28250,8 +28583,11 @@ SELECT - 32 * - 36 + + + 54 * + 52 col0 # 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\(76\) AS col1" at position 0 and "Int64\(\-98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 76 col1, - 98 AS col1 +---- +-98 +76 query I rowsort SELECT ALL - 95 * + 75 AS col1 @@ -28712,8 +29048,12 @@ 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\(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\. +query III valuesort SELECT COALESCE ( - - 33, + 42 + - 74 + COUNT ( * ) ) * + 27 * 88 AS col2, MIN ( + - 13 ) col2, - + 68 * + 34 + - COUNT ( * ) + + MIN ( ALL 8 ) +---- +-13 +-2305 +78408 query I rowsort label-5465 SELECT 44 / - 10 + 23 + + + 96 - + + COALESCE ( + 26, + COUNT ( * ) + + - 25 + COUNT ( * ) * - + ( - + 9 ) ) * - 23 @@ -29033,8 +29373,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 AS col0, - COUNT ( * ) AS col0 +---- +-1 +21 query I rowsort SELECT - 83 * ( - 76 ) * + + 70 + - 76 - - - 11 * 94 @@ -29182,8 +29525,11 @@ SELECT ALL + + COALESCE ( - 2, - + SUM ( + 52 ), COALESCE ( + + 31, + + 55 * CAS # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \+ Int64\(\-37\) / CASE \(\- Int64\(\-66\)\) WHEN \(\- Int64\(23\)\) THEN count\(Int64\(1\)\) AS count\(\*\) END AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 44 ) + - 37 / CASE - - 66 WHEN - ( + 23 ) THEN + COUNT ( * ) END AS col2, + COUNT ( * ) AS col2 +---- +1 +NULL query I rowsort SELECT - - 64 * 53 AS col2 @@ -29198,8 +29544,11 @@ SELECT - + ( - 42 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(\-49\)\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( ( + + MAX ( DISTINCT - 49 ) ) ) col0, + 68 AS col0 +---- +-49 +68 query I rowsort label-5557 SELECT ALL - CASE - ( 49 ) WHEN + 23 THEN NULL WHEN + + 47 THEN COUNT ( * ) END * + - 28 @@ -29553,8 +29902,11 @@ 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\(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\. +query II valuesort 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 +---- +-1 +33 query I rowsort label-5625 SELECT SUM ( - 42 ) * + + 58 - + 54 - + ( + NULLIF ( - 79, - MIN ( ALL + 74 ) + 69 ) ) + - + 45 @@ -30249,8 +30601,11 @@ SELECT ALL - 70 * ( - - 29 ) + + 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1357 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(23\) \- Int64\(56\) \+ Int64\(10\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 * + 23 - 56 + ( 10 ) col1, COUNT ( * ) AS col1 +---- +1 +1357 query I rowsort SELECT ALL 38 * - 58 + + 14 * + - 6 @@ -30994,8 +31349,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - -459 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col0" at position 0 and "Int64\(\-27\) \* Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 56 ) AS col0, - 27 * + 17 AS col0 +---- +-459 +-56 query II rowsort label-5904 SELECT ALL + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col0, MAX ( DISTINCT 77 ) + + CAST ( NULL AS INTEGER ) @@ -31264,8 +31622,11 @@ SELECT ALL - 80 AS col0, 44 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 77 AS col0, 18 AS col0 +---- +18 +77 query I rowsort SELECT ( 77 ) * + 75 AS col0 @@ -31766,8 +32127,11 @@ SELECT ALL - 47 / - COALESCE ( - CAST ( NULL AS INTEGER ), 73, - 83 + + + 1 * + # 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\(\-23\) \+ Int64\(\-47\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 23 + - 47 col1, 62 AS col1 +---- +-70 +62 query I rowsort label-6051 SELECT ALL + CASE 95 WHEN - + 12 THEN - - 12 * CASE + ( - - 45 ) WHEN - 29 / + COUNT ( * ) * + 1 + + 85 * 30 THEN NULL ELSE NULLIF ( 65, - 7 / + 21 + - CASE + ( - 88 ) WHEN + 64 + + 72 THEN 23 END * - 48 ) END + - 71 / + COUNT ( DISTINCT + ( - 21 ) * + 31 ) END AS col0 @@ -31798,8 +32162,11 @@ SELECT 58 * + + 58 + + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 130 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \+ Int64\(54\) AS col1" at position 0 and "Int64\(76\) \+ Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 + + 54 AS col1, 76 + - 90 AS col1 +---- +-14 +130 query I rowsort SELECT ALL + 31 * - 79 @@ -31840,8 +32207,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) / 28 AS col2, 54 * - 40 AS col2 +---- +-2160 +0 query I rowsort label-6065 SELECT + COUNT ( * ) / - COUNT ( * ) + - - 37 col1 @@ -31866,8 +32236,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) / Int64\(27\) AS col0" at position 0 and "Int64\(\-70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 / 27 AS col0, - 70 AS col0 +---- +-70 +2 query I rowsort SELECT DISTINCT 26 * + + 86 + 9 AS col2 @@ -31882,8 +32255,11 @@ SELECT 35 / ( + 69 ) * 94 - 43 + + 0 - - - MIN ( - 24 ) + + - 56 / CAST ( 73 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ Int64\(28\) AS col0" at position 0 and "Int64\(37\) \+ Int64\(3\) \* Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 61 + + 28 AS col0, 37 + + 3 * 10 AS col0 +---- +67 +89 query I rowsort label-6073 SELECT + COUNT ( + 36 ) AS col2 @@ -32029,8 +32405,11 @@ SELECT - 9 * 42 * - + 56 * - 35 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \+ Int64\(\-51\) \- Int64\(29\) \+ Int64\(59\) \+ \(\- Int64\(94\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 + - 51 - 29 + 59 + - + 94 col2, CAST ( NULL AS INTEGER ) AS col2 +---- +-21 +NULL query I rowsort label-6101 SELECT DISTINCT + + 23 * 1 * 16 + 50 + COUNT ( * ) / - 25 @@ -32229,8 +32608,11 @@ SELECT - + 67 * + + 0 / + + 28 + - - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(62\)\) AS col2" at position 0 and "Int64\(5\) \+ \(\- Int64\(16\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 62 AS col2, 5 + - + 16 AS col2 +---- +-11 +-62 query I rowsort SELECT ALL + + 46 * - 72 @@ -32256,8 +32638,11 @@ SELECT ALL - - 70 * - 88 * - - 28 * - - 74 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 AS col0, 79 AS col0 +---- +72 +79 query I rowsort SELECT ALL - 9 * + - 8 @@ -32288,8 +32673,11 @@ SELECT - 76 + + MAX ( ALL - 30 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + 63 ) AS col0, 87 AS col0 +---- +63 +87 query I rowsort label-6150 SELECT - 23 * - - CAST ( NULL AS INTEGER ) AS col0 @@ -32321,8 +32709,11 @@ SELECT - 92 * ( - + 37 ) * 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 4536 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(84\) AS Int32\) AS col2" at position 0 and "Int64\(84\) \* Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( + 84 AS INTEGER ) AS col2, + 84 * 54 AS col2 +---- +4536 +84 query I rowsort label-6156 SELECT + ( + - 83 ) * - 1 / 90 / - + ( 44 ) @@ -32357,8 +32748,11 @@ 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\(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\. +query II valuesort SELECT - 33 * - COUNT ( * ) AS col0, - 86 + + COUNT ( * ) / + - COUNT ( * ) * - 1 AS col0 +---- +-85 +33 query I rowsort SELECT + 39 * - 9 @@ -32380,14 +32774,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 13 ) AS col2, - 13 AS col2 +---- +-13 +13 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - -4416 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col1" at position 0 and "Int64\(64\) \* Int64\(\-69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 87 ) AS col1, 64 * - 69 AS col1 +---- +-4416 +-87 query II rowsort SELECT DISTINCT - 10 * 16 AS col1, + 98 @@ -32754,8 +33154,11 @@ SELECT ALL - 72 * - + COUNT ( - 17 ) * 14 + 35 + + 62 / - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-67\)\) / CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / CASE WHEN sum\(\(\- Int64\(\-4\)\)\) <= Int64\(46\) THEN Int64\(\-6\) \+ Int64\(72\) WHEN count\(Int64\(1\)\) AS count\(\*\) > NULL AND Int64\(19\) \+ CAST\(Int64\(92\) AS Int32\) NOT IN \(\[Int64\(67\)\]\) THEN NULL END \+ CASE avg\(CAST\(NULL AS Float64\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-61\) \* Int64\(43\) ELSE NULL END / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +NULL +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -32907,8 +33310,11 @@ SELECT ALL + 23 AS col0, 13 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - -959 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(34\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-96\) \* \(\- Int64\(10\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( 34, - + COUNT ( * ) ) AS col1, COUNT ( * ) - - 96 * - + 10 * COUNT ( * ) AS col1 +---- +-34 +-959 query I rowsort label-6267 SELECT - 94 * + COUNT ( * ) - - - 57 + - 24 AS col1 @@ -32949,8 +33355,11 @@ SELECT ALL + 82 + 41 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col0" at position 0 and "Int64\(\-2\) \+ Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 80 AS col0, - 2 + 96 AS col0 +---- +-80 +94 query I rowsort label-6275 SELECT COUNT ( ALL - 26 ) AS col1 @@ -33147,8 +33556,12 @@ SELECT ALL - COUNT ( * ) - + 97 * + 21 * - 41 # Datafusion - Expected - NULL # Datafusion - Expected - 1513 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- Int64\(\-32\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 91 + - CAST ( NULL AS INTEGER ) col0, - 62 + + 35 * + 45, - - 32 AS col0 +---- +1513 +32 +NULL query I rowsort label-6312 SELECT 94 / + COUNT ( * ) col2 @@ -33378,8 +33791,11 @@ SELECT - 47 * - - 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col2" at position 0 and "\(\- Int64\(48\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 91 AS col2, ( - + 48 ) AS col2 +---- +-48 +-91 query I rowsort label-6357 SELECT DISTINCT + CASE - + AVG ( - 87 ) WHEN + 47 - CASE 78 WHEN AVG ( DISTINCT + - 11 ) - + 60 THEN NULL ELSE + 69 + - COALESCE ( 97, + 80 + + 45 + 90 * + 59 / - ( + 45 ), - AVG ( DISTINCT - 66 ) ) END * 88 THEN NULL WHEN 20 THEN + CAST ( + 31 AS INTEGER ) + 70 / 25 END @@ -33441,8 +33857,11 @@ SELECT + 60 * - 54 * 81 + 24 - 37 / 34 AS col2 # 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\(33\) \- \(\- Int64\(\-5\)\) AS col2" at position 0 and "Int64\(\-82\) / \(\- Int64\(91\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 33 - - - 5 col2, - 82 / - + 91 AS col2 +---- +0 +28 query II rowsort SELECT + ( + - 79 ), 5 AS col2 @@ -33504,8 +33923,11 @@ SELECT + 91 + + - 87 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ Int64\(5\) AS col2" at position 0 and "Int64\(\-58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 4 + + 5 AS col2, - 58 col2 +---- +-58 +9 query III rowsort SELECT DISTINCT - ( - 69 ) * 91 * - - 53 AS col2, 3 AS col1, 75 @@ -33790,8 +34212,11 @@ SELECT 98 * 58 + + 62 * - - 27 + + + 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 AS col1, + CAST ( NULL AS INTEGER ) + 49 AS col1 +---- +30 +NULL query I rowsort label-6435 SELECT DISTINCT + COALESCE ( - 25, - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) / + 14 * - 34 @@ -34454,8 +34879,11 @@ SELECT + + 77 / 47 + 85 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2380 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(14\) \* Int64\(5\) AS col0" at position 0 and "Int64\(34\) / Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 34 * + 14 * 5 AS col0, 34 / 66 AS col0 +---- +0 +2380 query I rowsort label-6562 SELECT 40 / - CAST ( NULL AS INTEGER ) * - - 54 AS col1 @@ -34916,8 +35344,11 @@ SELECT ALL + 49 / - - 23 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / Int64\(74\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) / + ( + 74 ) AS col1, 15 AS col1 +---- +15 +NULL query I rowsort SELECT 47 * - 99 AS col0 @@ -34947,8 +35378,11 @@ SELECT ALL + 50 + - + 67 - CAST ( 74 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 col0, + COUNT ( * ) AS col0 +---- +1 +33 query I rowsort label-6656 SELECT + CAST ( NULL AS INTEGER ) + + + 19 @@ -35160,8 +35594,11 @@ SELECT + + ( + + 92 ) * 48 * - + 83 AS col0, COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 748 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \* Int64\(34\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 22 * + 34 col0, 48 AS col0 +---- +48 +748 query I rowsort label-6697 SELECT 21 * + CAST ( NULL AS INTEGER ) + + 31 * + + 50 AS col1 @@ -35373,8 +35810,11 @@ SELECT 81 * - + MAX ( DISTINCT - + 69 ) * + 77 * - COUNT ( * ) - 16 + - 35 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 15 AS col2, COUNT ( * ) col2 +---- +1 +15 query I rowsort label-6737 SELECT ALL 10 / - MAX ( ALL + + 16 ) + 16 AS col0 @@ -36155,8 +36595,11 @@ SELECT DISTINCT 15 * + - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 78 col1, + ( 27 ) AS col1 +---- +27 +78 query I rowsort SELECT ALL - 42 + ( + 15 ) AS col0 @@ -36282,8 +36725,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - + 24 * + - COUNT ( * ) AS col0, - 93 * + 3 AS col0 +---- +-279 +24 query III rowsort label-6910 SELECT ALL 83 col1, 76 * - COUNT ( * ) * + 70 col0, - - ( - CAST ( NULL AS INTEGER ) ) @@ -36476,8 +36922,11 @@ SELECT - 9 + + 34 # 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 "Int64\(\-32\) AS col1" at position 0 and "Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 32 AS col1, - 16 AS col1 +---- +-16 +-32 query I rowsort label-6947 SELECT - 85 + - + CAST ( NULL AS INTEGER ) AS col0 @@ -36593,8 +37042,11 @@ SELECT + 22 AS col2, 0 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -106650 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-54\)\) AS col0" at position 0 and "max\(CAST\(Int64\(5\) AS Int32\)\) \* Int64\(27\) \* \(\- nullif\(Int64\(79\), \(\- Int64\(49\)\) \* \(\- min\(Int64\(\-49\)\)\) \+ Int64\(19\) \* Int64\(92\)\)\) \* \(\- nullif\(\(\- Int64\(10\)\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- min\(Int64\(40\)\)\) \+ Int64\(74\) \* Int64\(33\) \+ Int64\(52\) \+ Int64\(\-45\) \* Int64\(0\) / Int64\(\-17\) \+ Int64\(43\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-106650 +54 query II rowsort SELECT ALL - 62 AS col1, - 41 * - + 0 * CASE - 70 WHEN - ( - + 92 ) - 8 THEN - 16 * - - 52 END * + 71 @@ -36610,8 +37062,11 @@ SELECT ALL - - MAX ( ALL - 97 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col0" at position 0 and "\(\- Int64\(\-43\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 23 AS col0, + ( - ( - 43 ) ) AS col0 +---- +23 +43 query I rowsort label-6972 SELECT + 81 + - COUNT ( - 19 ) * - 84 @@ -36678,8 +37133,11 @@ SELECT ( - MIN ( DISTINCT - - 23 ) ) * - - 94 * ( - 32 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -924 # Datafusion - Expected - 1970 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \* Int64\(37\) \+ Int64\(60\) \+ \(\- min\(Int64\(\-78\)\)\) \+ \(\- Int64\(79\)\) \* Int64\(\-17\) AS col0" at position 0 and "Int64\(29\) \* Int64\(65\) \+ Int64\(85\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 65 * + 37 + 60 + - ( MIN ( - 78 ) ) + - ( + + 79 ) * - 17 AS col0, + 29 * + 65 + + 85 * COUNT ( * ) AS col0 +---- +-924 +1970 query I rowsort SELECT 36 + + + 90 @@ -36786,8 +37244,11 @@ SELECT ALL 31 + - - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 187632 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \+ Int64\(20\) \+ Int64\(70\) \* \(\- Int64\(40\)\) \* \(\- min\(Int64\(67\)\)\) \+ \(\- Int64\(\-64\)\) AS col0" at position 0 and "Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 52 + + 20 + + 70 * - + 40 * - MIN ( ALL 67 ) + - - 64 AS col0, - 15 AS col0 +---- +-15 +187632 query I rowsort label-7006 SELECT + + NULLIF ( + COUNT ( * ), + 26 ) AS col2 @@ -36803,8 +37264,11 @@ SELECT + 50 AS col1, + 39 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -96444 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(\(\- CASE Int64\(29\) WHEN Int64\(\-51\) THEN NULL WHEN \(\- Int64\(\-29\)\) \* \(\- Int64\(\-87\)\) THEN Int64\(\-65\) WHEN \(\- Int64\(7\)\) THEN NULL END\)\)\) AS col2" at position 0 and "CAST\(Int64\(\-83\) AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-43\) \* Int64\(\-27\) \+ Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort 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 +---- +-96444 +NULL query I rowsort SELECT ALL + 42 + + + 71 + - + 63 AS col0 @@ -36885,8 +37349,11 @@ SELECT ALL - 66 * COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2120 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(\-37\) AS Int32\)\)\) \* Int64\(55\) \+ Int64\(\-85\) AS col0" at position 0 and "Int64\(27\) \+ Int64\(\-4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - CAST ( - 37 AS INTEGER ) * ( + 55 ) + - 85 AS col0, + 27 + + - 4 AS col0 +---- +-2120 +23 query I rowsort label-7025 SELECT DISTINCT - 55 + + - CASE 91 WHEN + + 28 THEN - 24 * ( + 6 ) + - + ( + COALESCE ( 38, + + COUNT ( + 53 ) ) ) WHEN 14 THEN + 65 END col2 @@ -36965,8 +37432,11 @@ SELECT + 15 / 18 AS col2, ( - NULLIF ( + 36, - COUNT ( * ) ) ) / - COUNT ( * ) # 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\(\-37\) WHEN Int64\(\-40\) THEN \(\- Int64\(97\)\) \- \(\- Int64\(46\)\) END AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CASE + ( + - 37 ) WHEN - 40 THEN - + 97 - - + 46 END col0, 27 AS col0 +---- +27 +NULL query II rowsort SELECT + 14, 61 AS col1 @@ -37489,8 +37959,11 @@ 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\(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\. +query II valuesort SELECT ALL 74 * + + 68 + - COUNT ( * ) * + 84 col2, - 99 / 87 + + 19 AS col2 +---- +18 +4948 query I rowsort label-7140 SELECT ALL + MIN ( + 59 ) * 49 AS col2 @@ -37825,8 +38298,11 @@ SELECT + 84, + 38 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "\(\- sum\(DISTINCT Int64\(50\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 AS col1, - SUM ( DISTINCT + 50 ) AS col1 +---- +-50 +87 query II rowsort label-7204 SELECT DISTINCT - + 52, - CAST ( NULL AS INTEGER ) * - + CAST ( - + 50 AS INTEGER ) col0 @@ -37837,8 +38313,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 39 AS col0, + COUNT ( * ) AS col0 +---- +-39 +1 query II rowsort SELECT + 44, - 66 AS col1 @@ -38036,8 +38515,11 @@ SELECT COALESCE ( + + 52, - 3 - - - 42 + - COUNT ( * ), 47 * + 37 + + 95 ) * 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3078 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(CASE count\(nullif\(Int64\(\-58\), \(\- Int64\(\-86\)\)\)\) WHEN Int64\(86\) \* Int64\(\-49\) THEN Int64\(\-12\) END AS Int32\)\) \* Int64\(13\) \+ coalesce\(Int64\(59\), Int64\(\-67\), \(\- Int64\(87\)\) \* coalesce\(Int64\(\-83\), max\(DISTINCT Int64\(46\)\) / Int64\(20\) \+ coalesce\(Int64\(\-38\), Int64\(\-25\) \+ Int64\(41\)\)\) \* Int64\(1\)\) \* Int64\(\-11\) AS col2" at position 0 and "Int64\(\-57\) \* CAST\(sum\(Int64\(\-54\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( CASE + COUNT ( + + NULLIF ( + - 58, - - 86 ) ) WHEN 86 * - 49 THEN - 12 END AS INTEGER ) * 13 + + COALESCE ( 59, - 67, - + 87 * COALESCE ( + - 83, + MAX ( DISTINCT 46 ) / 20 + COALESCE ( - 38, + - 25 + + 41 ) ) * 1 ) * - 11 AS col2, - 57 * + CAST ( SUM ( - 54 ) AS INTEGER ) AS col2 +---- +3078 +NULL query I rowsort label-7243 SELECT ALL - 14 + + COUNT ( * ) @@ -38086,8 +38568,11 @@ 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\(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\. +query II valuesort SELECT + 39 + + COUNT ( * ) + - 83 AS col2, - 53 AS col2 +---- +-43 +-53 query I rowsort label-7252 SELECT ALL 45 + - 38 / 32 @@ -38140,8 +38625,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( - 44, - 12 * + 3 / - - ( 19 ) / 10 - - 69, + 64 ) AS col2, COUNT ( * ) + - 49 AS col2 +---- +-48 +44 query I rowsort SELECT DISTINCT 1 * + + 28 AS col1 @@ -39893,8 +40381,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 AS col1, COUNT ( * ) * - 43 AS col1 +---- +-43 +89 query I rowsort SELECT 43 * - + 8 * + 83 @@ -40170,8 +40661,11 @@ SELECT - 3 * - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - -311766 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-44\) AS Int32\) AS col2" at position 0 and "coalesce\(Int64\(\-10\), Int64\(\-39\)\) \+ Int64\(76\) \- Int64\(\-36\) \* Int64\(2\) \* \(\- Int64\(71\)\) \* Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( + + ( - 44 ) AS INTEGER ) AS col2, + COALESCE ( - 10, - 39 ) + + 76 - - 36 * 2 * - + 71 * 61 col2 +---- +-311766 +-44 query I rowsort SELECT ALL + COALESCE ( 94, + - 83 ) * - 55 AS col0 @@ -40325,8 +40819,11 @@ SELECT + - SUM ( ALL 33 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2280 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* min\(Int64\(\-60\)\) AS col0" at position 0 and "Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 38 * MIN ( ALL - 60 ) AS col0, 84 AS col0 +---- +-2280 +84 query I rowsort label-7685 SELECT DISTINCT - COALESCE ( 12, + + COUNT ( * ), - - ( + + NULLIF ( + COUNT ( * ), SUM ( 73 ) ) ) * 67 ) / - - 24 - + 32 + - NULLIF ( COUNT ( * ), 71 ) + + 47 @@ -40426,8 +40923,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 71 AS col0, - CASE + 27 WHEN 47 THEN 83 ELSE NULL END / + + 31 * + 86 - - COUNT ( * ) col0 +---- +-71 +NULL query I rowsort label-7704 SELECT - ( + - SUM ( - 58 ) ) / + 27 + + 86 * + CASE WHEN NOT ( - 36 ) BETWEEN + 21 AND ( 96 ) AND 53 + + ( + CAST ( NULL AS INTEGER ) ) NOT IN ( COUNT ( * ) + - 60 ) THEN CAST ( NULL AS INTEGER ) WHEN NOT - 64 * 96 + 15 * - COUNT ( * ) <= ( 10 * + 27 ) THEN + ( + 42 ) ELSE + COUNT ( * ) + ( + 57 + - ( 78 ) * 57 ) END * 89 + 55 @@ -40462,8 +40962,11 @@ SELECT + COUNT ( * ) - - ( + COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col0" at position 0 and "Int64\(\-21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 AS col0, - 21 AS col0 +---- +-21 +9 query I rowsort label-7711 SELECT + MIN ( DISTINCT - 49 ) * + + 80 @@ -40626,8 +41129,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 / - + COUNT ( * ) AS col2, + 65 col2 +---- +64 +65 query II rowsort label-7742 SELECT ALL - 74 * + 33 AS col2, + MIN ( DISTINCT 0 ) + - 22 AS col1 @@ -40791,8 +41297,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 84 AS col2, - COUNT ( * ) AS col2 +---- +-1 +-84 query II rowsort SELECT - 62 - + 23 + + + 94 AS col0, 87 * 46 * - + ( + CASE + 8 WHEN - 82 / + 76 THEN 6 * + 35 * + 11 END ) + 14 AS col2 @@ -41196,8 +41705,11 @@ SELECT DISTINCT 8 * - 10 + - 19 * 39 * - - 84 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col0" at position 0 and "Int64\(60\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 72 AS col0, + 60 * - - CAST ( NULL AS INTEGER ) AS col0 +---- +72 +NULL query I rowsort SELECT 96 + - ( - 5 ) - 9 - - + 38 * 29 * - 57 + 77 - + ( 21 ) @@ -41519,8 +42031,11 @@ SELECT - COALESCE ( - 23, - + CAST ( + 50 AS INTEGER ), + 15, 98 ) + + 77 AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(CAST\(\(\- Int64\(84\)\) AS Int32\)\)\) AS col1" at position 0 and "Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( CAST ( - + 84 AS INTEGER ) ) AS col1, - 58 AS col1 +---- +-1 +-58 query I rowsort SELECT - 1 + 7 @@ -41659,8 +42174,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(\-14\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 * + - 14 AS col0, + COUNT ( * ) AS col0 +---- +-42 +1 query II rowsort SELECT ALL + 27 - - + 65 col1, 61 AS col2 @@ -42169,8 +42687,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) + - + 95 AS col1, 92 - + - 40 + 7 AS col1 +---- +-94 +139 query I rowsort label-8036 SELECT ALL 63 - 15 + - + CAST ( NULL AS INTEGER ) * 37 @@ -42370,8 +42891,11 @@ SELECT - - 93, 94 * - 2 - + 7 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 37 AS col2, + 7 AS col2 +---- +-37 +7 query II rowsort SELECT DISTINCT - 14 AS col2, - 1 AS col1 @@ -42505,8 +43029,11 @@ SELECT - + CAST ( ( - 60 ) AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(92\), Int64\(\-21\) \* Int64\(68\) \+ Int64\(\-55\) \* Int64\(83\) \* Int64\(84\), Int64\(62\) \- Int64\(37\)\)\) \* CAST\(NULL AS Int32\) \* \(\- avg\(Int64\(\-9\)\)\) AS col1" at position 0 and "max\(DISTINCT Int64\(\-89\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT - COALESCE ( 92, - 21 * 68 + - 55 * 83 * 84, 62 - 37 ) * CAST ( NULL AS INTEGER ) * - AVG ( ALL - 9 ) AS col1, MAX ( DISTINCT - 89 ) AS col1 +---- +-89 +NULL query I rowsort SELECT DISTINCT - 18 * + - 76 @@ -42586,8 +43113,11 @@ SELECT ALL - 55 + - 39 + + 57, 34 * 93 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 370 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "Int64\(74\) \* \(\- Int64\(\-5\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 76 AS col0, 74 * - - 5 col0 +---- +370 +76 query I rowsort label-8114 SELECT + CASE - 13 WHEN + + 8 THEN + 24 / - + 25 * + 10 - + - ( - COUNT ( * ) ) + - + 99 END @@ -42935,8 +43465,11 @@ SELECT 40 - + 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3121 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* Int64\(\-42\) \+ \(\- \(\- Int64\(90\)\)\) \+ Int64\(\-61\) AS col1" at position 0 and "Int64\(53\) \- Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + 75 ) * - 42 + - - ( 90 ) + + ( - 61 ) AS col1, 53 - 40 AS col1 +---- +-3121 +13 query I rowsort label-8179 SELECT DISTINCT + SUM ( ALL - 2 ) * 97 AS col1 @@ -43079,8 +43612,11 @@ SELECT ALL + - ( + NULLIF ( + + ( + + 79 ), + 29 * - 77 + 19 ) ) + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 78 AS col2, COUNT ( * ) AS col2 +---- +-78 +1 query I rowsort SELECT - 97 * + 15 AS col2 @@ -43278,8 +43814,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -372 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \+ sum\(DISTINCT Int64\(90\)\) \- Int64\(\-27\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(57\) \- Int64\(39\) \* Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 47 + + + SUM ( DISTINCT + 90 ) - - 27 + - + COUNT ( * ) - COUNT ( * ) AS col1, 57 - + 39 * + + 11 col1 +---- +-372 +68 query I rowsort SELECT - 67 - + 35 * - 82 AS col1 @@ -43757,8 +44296,12 @@ SELECT ALL + CAST ( + + 60 AS INTEGER ) col0 # Datafusion - Expected - 0 # Datafusion - Expected - 41 # Datafusion - Expected - 2745 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-48\)\) / Int64\(\-95\) \* coalesce\(Int64\(64\), Int64\(69\), Int64\(31\) \+ \(\- Int64\(\-15\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CASE \(\- Int64\(91\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(36\) \* Int64\(24\) THEN Int64\(\-2\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-79\) \* Int64\(35\) / Int64\(\-25\) \* Int64\(\-35\) END\) / Int64\(\-60\) AS col2" at position 0 and "Int64\(45\) \* Int64\(61\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +0 +2745 +41 query II rowsort label-8336 SELECT ALL + 57 AS col2, COUNT ( * ) @@ -44026,8 +44569,11 @@ SELECT + 56 AS col2, - 8 + - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 col2, - 27 AS col2 +---- +-27 +58 query I rowsort SELECT ALL + 40 + + + 51 col1 @@ -44047,8 +44593,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 17 AS col1, + 34 AS col1 +---- +-17 +34 query I rowsort label-8390 SELECT ALL + 40 - - 80 * - ( + ( + + MIN ( ALL - 24 ) ) ) AS col0 @@ -44099,8 +44648,11 @@ SELECT + 82 * - + 6 # 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\) AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 35 AS col1, 8 AS col1 +---- +-35 +8 query I rowsort label-8400 SELECT ALL MIN ( ALL 96 ) AS col1 @@ -44152,8 +44704,11 @@ 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\(Int64\(1\)\) AS count\(\*\) / sum\(\(\- Int64\(21\)\)\) \* Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 98 + - + 43 - 42 * 5 AS col1, + COUNT ( * ) / + SUM ( - + 21 ) * 30 AS col1 +---- +-351 +0 query I rowsort label-8410 SELECT ALL ( - 96 ) + COUNT ( 9 ) - + + 94 AS col1 @@ -44298,8 +44853,11 @@ SELECT NULLIF ( 14, - 68 / + 63 + - + 68 - + - 15 * - 0 + - 66 * 47 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, 22 col1 +---- +1 +22 query I rowsort label-8438 SELECT COUNT ( - + 21 ) @@ -44329,8 +44887,11 @@ 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\(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\. +query II valuesort SELECT + CASE ( + 8 ) WHEN - COUNT ( * ) THEN 59 + - 92 ELSE NULL END - - 87 + + NULLIF ( + 52, COUNT ( * ) * + - 65 + - 4 ) * + 10 AS col2, - 24 AS col2 +---- +-24 +NULL query I rowsort label-8444 SELECT + NULLIF ( + 72, 55 * - - COUNT ( * ) ) + CASE - - 37 WHEN CAST ( - 51 AS INTEGER ) THEN NULL WHEN - + 55 THEN - - 45 * 14 * - - 76 END @@ -44494,8 +45055,11 @@ SELECT ( - 45 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4369 # Datafusion - Expected - -219 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(73\) AS Int32\)\) \* Int64\(\-59\) \+ Int64\(62\) AS col1" at position 0 and "Int64\(\-8\) / Int64\(77\) \- Int64\(\-41\) \+ \(\- Int64\(34\)\) \+ Int64\(86\) \* Int64\(58\) / Int64\(\-22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( 73 AS INTEGER ) * - 59 + + 62 AS col1, - 8 / 77 - + - 41 + - + 34 + + + 86 * 58 / - 22 AS col1 +---- +-219 +4369 query I rowsort label-8476 SELECT + 70 / - SUM ( + 49 ) @@ -45238,8 +45802,11 @@ SELECT 68 + - NULLIF ( + 43, - + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 105 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(35\) AS col2" at position 0 and "CASE \(\- Int64\(\-1\)\) WHEN \(\- Int64\(\-83\)\) THEN NULL WHEN Int64\(14\) THEN Int64\(\-20\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CASE Int64\(61\) WHEN Int64\(\-74\) \* Int64\(\-1\) \* Int64\(24\) \* \(\- CASE Int64\(\-55\) WHEN Int64\(80\) \+ \(\- min\(Int64\(12\)\)\) \* Int64\(\-94\) \* Int64\(74\) / Int64\(\-78\) THEN \(\- Int64\(50\)\) \* Int64\(6\) WHEN Int64\(64\) \* Int64\(\-26\) / CASE Int64\(44\) WHEN Int64\(86\) \+ Int64\(74\) THEN Int64\(\-84\) ELSE NULL END THEN Int64\(\-33\) END\) \- Int64\(\-72\) THEN Int64\(\-69\) \* \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \+ Int64\(\-76\) WHEN Int64\(33\) \* Int64\(9\) \+ Int64\(21\) THEN NULL WHEN Int64\(21\) THEN NULL END\) END \* Int64\(\-52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +105 +NULL query I rowsort label-8618 SELECT DISTINCT - 50 + - COUNT ( * ) AS col0 @@ -45795,8 +46362,11 @@ SELECT 13 + - 53 + + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22573 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-57\) \* Int64\(6\) \* Int64\(66\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) + + - 57 * 6 * 66 col0, COUNT ( * ) AS col0 +---- +-22573 +1 query I rowsort label-8724 SELECT DISTINCT MAX ( ALL 96 ) + 81 / + - 15 AS col0 @@ -46160,8 +46730,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 22 AS col2, 5 - 28 + - - 48 + - + COUNT ( * ) AS col2 +---- +22 +24 query I rowsort label-8794 SELECT - + NULLIF ( - 14, - - ( - ( - 94 ) ) ) + + COUNT ( * ) / 42 @@ -46219,8 +46792,11 @@ SELECT - CASE 38 WHEN - + 3 * + + 34 * + 54 THEN NULL ELSE - 97 + 72 END AS col2 # 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 "Int64\(\-15\) / Int64\(27\) AS col0" at position 0 and "Int64\(\-75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 15 / + 27 AS col0, - 75 AS col0 +---- +-75 +0 query II rowsort label-8805 SELECT - 54 * COUNT ( * ), 80 AS col0 @@ -46639,8 +47215,11 @@ 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\(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\. +query II valuesort 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 +---- +3395 +NULL query I rowsort label-8884 SELECT ALL - CASE - 11 WHEN COUNT ( * ) + - 90 THEN - 26 * 86 - COALESCE ( CAST ( NULL AS INTEGER ), + 38, + - 31 ) + + 27 ELSE COUNT ( * ) + 21 END @@ -47478,8 +48057,11 @@ SELECT + COUNT ( * ) * + COUNT ( * ) * + - COUNT ( DISTINCT + 43 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 3543 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(5\)\)\) AS col0" at position 0 and "Int64\(39\) \+ Int64\(48\) \* Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( ALL - + 5 ) AS col0, 39 + 48 * + 73 AS col0 +---- +-5 +3543 query I rowsort label-9050 SELECT + CASE 99 WHEN NULLIF ( + - 96, ( 79 ) / 92 - + ( + ( - 57 ) + ( + COUNT ( * ) ) ) ) THEN ( 51 ) ELSE 88 END * COUNT ( * ) @@ -47832,8 +48414,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col0" at position 0 and "Int64\(1\) \- coalesce\(Int64\(\-51\), Int64\(26\), coalesce\(Int64\(\-32\), Int64\(\-36\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 72 AS col0, 1 - COALESCE ( - 51, 26, COALESCE ( - 32, - 36 ) ) AS col0 +---- +52 +72 query I rowsort label-9119 SELECT ALL + 3 + + - COUNT ( * ) col2 @@ -47979,8 +48564,11 @@ SELECT 35 + + 92, - MAX ( DISTINCT + 87 ) * 58 - + 80 + CASE WHEN ( + 25 ) > 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(10\) / \(\- \(\- CAST\(NULL AS Int32\)\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(Int64\(\-17\) AS Int32\) \* Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, 10 / - - CAST ( NULL AS INTEGER ) / + - COUNT ( * ) + + CAST ( - 17 AS INTEGER ) * + 43 AS col2 +---- +-1 +NULL query I rowsort SELECT DISTINCT - 65 + + + 58 + + 43 @@ -48006,8 +48594,11 @@ SELECT 65 + COUNT ( * ) AS col1, - COUNT ( * ) # 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\(1\) \- 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 II valuesort SELECT 1 - + + 46 col0, + 31 AS col0 +---- +-45 +31 query I rowsort label-9152 SELECT + 89 * + 99 + + 10 + + 65 + + 18 * + + 45 * COUNT ( * ) * + COALESCE ( 58, 79 / - 53 + - MIN ( 29 ) ) + + COUNT ( * ) * 33 * 58 AS col0 @@ -48493,8 +49084,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 92 + - + 83 AS col2, 41 / - COUNT ( * ) AS col2 +---- +-41 +9 query I rowsort label-9246 SELECT ALL - NULLIF ( SUM ( 19 ), + 93 ) * + 15 + - + 3 AS col1 @@ -48526,8 +49120,11 @@ SELECT 7 * 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 4186 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "Int64\(91\) \* \(\- Int64\(\-46\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 71 AS col1, 91 * - - 46 col1 +---- +4186 +71 query I rowsort SELECT 26 + 91 @@ -48849,8 +49446,11 @@ SELECT + 36 + - COUNT ( * ) / + 90 * - COUNT ( * ) * - 8 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 1029 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \+ Int64\(2\) AS col1" at position 0 and "Int64\(\-49\) \* Int64\(\-21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 23 + + + 2 AS col1, - 49 * - 21 AS col1 +---- +-21 +1029 query I rowsort label-9311 SELECT ALL ( 49 ) + - 62 / 30 @@ -49246,8 +49846,11 @@ SELECT + 31 * + - ( - 71 ) + ( + ( - - COALESCE ( - + 92, + 34 ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 41830 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) / Int64\(38\) AS col0" at position 0 and "Int64\(\-47\) \* \(\- Int64\(\-89\)\) \* Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 70 / 38 AS col0, - 47 * - - 89 * - 10 AS col0 +---- +1 +41830 query II rowsort SELECT ALL - - 28 + 25 AS col2, - ( - - 97 ) AS col1 @@ -49328,8 +49931,11 @@ SELECT - 48 * + 70 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3454 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \* Int64\(94\) \+ Int64\(70\) AS col2" at position 0 and "Int64\(\-21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 36 * + 94 + + + 70 AS col2, - 21 AS col2 +---- +-21 +3454 query I rowsort label-9402 SELECT SUM ( - 13 ) AS col0 @@ -49406,8 +50012,11 @@ SELECT DISTINCT 53 * + - 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 17 AS col2, COUNT ( * ) AS col2 +---- +1 +17 query I rowsort label-9417 SELECT + COUNT ( * ) + CAST ( + AVG ( ALL - 20 ) AS INTEGER ) AS col0 @@ -49491,8 +50100,11 @@ SELECT - COUNT ( * ) * - 0 - - + 84 - + + 50 + - 79 / + 24 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col1, 2 AS col1 +---- +2 +NULL query I rowsort label-9433 SELECT - SUM ( ALL 60 ) * + NULLIF ( COUNT ( * ), COUNT ( DISTINCT 19 ) * + - CASE + - AVG ( - + 77 ) WHEN - 77 THEN + 98 + - COALESCE ( + 3, + 74 ) * 45 WHEN + 13 THEN NULL END ) + + 84 + - 95 * - 7 AS col1 @@ -49553,8 +50165,11 @@ SELECT + CAST ( 16 AS INTEGER ) + - 38 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col1" at position 0 and "Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 21 AS col1, 61 AS col1 +---- +21 +61 query I rowsort SELECT + 86 * + + 66 AS col0 @@ -49624,8 +50239,11 @@ SELECT ALL 33 + 87 + + + 20 / + + ( + 83 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT - 19 AS col2, 84 AS col2 +---- +-19 +84 query II rowsort SELECT ALL 72 * + - 33 + - 50 * + + 89 col2, + 69 @@ -49993,8 +50611,11 @@ SELECT - COALESCE ( - 16, 72 + + 70 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 47 * COUNT ( * ) AS col0, + 33 AS col0 +---- +33 +47 query I rowsort label-9528 SELECT - 53 / 63 / + 22 @@ -51109,8 +51730,11 @@ 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\(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\. +query II valuesort 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 +---- +45 +NULL query I rowsort label-9741 SELECT ALL COUNT ( * ) * - - 95 AS col1 @@ -51256,8 +51880,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * + 16 AS col1, - 27 AS col1 +---- +-27 +16 query I rowsort SELECT ALL + 54 + - 21 col1 @@ -51545,8 +52172,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 21 AS col0, COUNT ( * ) * 19 AS col0 +---- +19 +21 query I rowsort SELECT ALL - 0 + - + 90 @@ -51614,8 +52244,11 @@ SELECT SUM ( 81 ) * + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 19 AS col0, COUNT ( * ) AS col0 +---- +-19 +1 query I rowsort SELECT 78 * 53 + - - 58 - 34 AS col0 @@ -51691,8 +52324,11 @@ SELECT 16 * 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ Int64\(\-70\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 + - 70 AS col1, COUNT ( * ) AS col1 +---- +-47 +1 query I rowsort label-9850 SELECT ALL 53 + - 88 - - + COUNT ( * ) - 16 @@ -52096,8 +52732,11 @@ SELECT - 94 - 91 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -109 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \+ Int64\(\-97\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-75\) THEN Int64\(\-1\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 12 + - 97 AS col2, CAST ( NULL AS INTEGER ) * - CASE - COUNT ( * ) WHEN + - 75 THEN + - 1 END col2 +---- +-109 +NULL query I rowsort SELECT + 17 + - 72 * - 14 @@ -52436,8 +53075,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 / 13 * - + COUNT ( * ) AS col2, 67 AS col2 +---- +-1 +67 query I rowsort label-9993 SELECT 57 / + ( + + COUNT ( * ) ) AS col1 @@ -52452,8 +53094,11 @@ SELECT 67 * - 54 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1937 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \+ Int64\(60\) \* Int64\(32\) AS col1" at position 0 and "\(\- min\(DISTINCT \(\- Int64\(\-48\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 17 + + 60 * + 32 AS col1, - ( + MIN ( DISTINCT - - 48 ) ) col1 +---- +-48 +1937 query II rowsort label-9996 SELECT 41 - - 61 / + 75 AS col1, + NULLIF ( - - 3, + COUNT ( * ) ) * 40 + 34 diff --git a/data/sqlite/random/expr/slt_good_21.slt b/data/sqlite/random/expr/slt_good_21.slt index e0e5ec1..2cae93f 100644 --- a/data/sqlite/random/expr/slt_good_21.slt +++ b/data/sqlite/random/expr/slt_good_21.slt @@ -753,8 +753,11 @@ SELECT 24 * + + 78 + 52 - 61 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -52440 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(67\)\) AS col2" at position 0 and "Int64\(92\) \* Int64\(\-57\) \* Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( ALL 67 ) AS col2, 92 * - 57 * 10 AS col2 +---- +-52440 +67 query II rowsort label-135 SELECT DISTINCT - 6 * + + 35, - CAST ( + + COUNT ( DISTINCT CAST ( - 26 AS FLOAT8 ) ) AS INTEGER ) AS col2 @@ -838,8 +841,11 @@ 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\(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\. +query II valuesort SELECT - CASE - 74 WHEN + 51 THEN - 34 ELSE + COUNT ( * ) END col2, 46 AS col2 +---- +-1 +46 query II rowsort label-151 SELECT - + ( - 31 ), 72 + - 40 * 52 + + + COALESCE ( + 17, + ( + + 88 ) * + + COALESCE ( - 0, - - 90 * 62 + ( - + 41 ) ) + - ( + 25 ) + - COUNT ( - 18 ) ) AS col0 @@ -926,8 +932,11 @@ SELECT + + 70 * - + 3 + + + 96 + + + 20 * 92 * COUNT ( * ) * + 84 * + - 32 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-89\)\) AS col0" at position 0 and "Int64\(\-71\) \+ \(\- Int64\(\-48\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 89 col0, - 71 + - - 48 AS col0 +---- +-23 +89 query I rowsort label-167 SELECT + + 26 + + ( - + 33 ) + + 91 * - + 31 * - CAST ( NULL AS INTEGER ) + + 89 + + 61 - - 5 + - + COUNT ( * ) + - 65 + + MIN ( 79 ) * + 66 + + COUNT ( * ) + + 20 / + 63 + - NULLIF ( - 55, - 56 + + 51 * + ( + 54 ) + + 39 * - 7 ) @@ -1171,8 +1180,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1104 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* \(\- Int64\(92\)\) AS col1" at position 0 and "Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 12 * - ( + 92 ) AS col1, ( - 35 ) AS col1 +---- +-1104 +-35 query I rowsort label-214 SELECT 95 / - 79 @@ -1787,8 +1799,11 @@ 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 col2" at position 0 and "count\(\(\- Int64\(\-89\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 83 AS col2, + COUNT ( - - 89 ) col2 +---- +-83 +1 query I rowsort SELECT ALL - + ( 1 ) AS col1 @@ -1819,8 +1834,11 @@ SELECT - 30 * + 22 # 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\), Int64\(55\)\)\)\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - COALESCE ( 28, 55 ) AS col0, 36 AS col0 +---- +28 +36 query II rowsort SELECT + - 32 AS col1, - 11 * + 77 * - 72 AS col2 @@ -2066,8 +2084,11 @@ SELECT + + 29 + - 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 220 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(38\)\) \- Int64\(52\) AS col0" at position 0 and "Int64\(4\) \* Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + ( 38 ) - 52 AS col0, + 4 * + 55 AS col0 +---- +-90 +220 query I rowsort SELECT ALL COALESCE ( - 0, - 83 ) @@ -2144,8 +2165,11 @@ 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\(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\. +query II valuesort SELECT ALL + NULLIF ( COUNT ( * ), + 24 ) AS col0, 58 AS col0 +---- +1 +58 query I rowsort label-397 SELECT DISTINCT NULLIF ( 72, + + 7 * + 16 + 37 ) / ( + SUM ( - + 47 ) ) + + 63 @@ -2187,8 +2211,12 @@ SELECT - 77 * - + COUNT ( * ) - + 16 # Datafusion - Expected - 43 # Datafusion - Expected - 42 # Datafusion - Expected - 4750 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 1 and "Int64\(95\) \* Int64\(50\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 43, 42 AS col2, + 95 * + 50 AS col2 +---- +42 +43 +4750 query I rowsort SELECT - 10 * 68 AS col1 @@ -2245,8 +2273,11 @@ SELECT 71 + + 39 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col1" at position 0 and "Int64\(7\) \+ \(\- \(\- count\(Int64\(96\)\)\)\) \+ Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 37 AS col1, 7 + - - COUNT ( + 96 ) + + 17 AS col1 +---- +25 +37 query II rowsort SELECT ALL - 22 col2, 98 AS col1 @@ -2638,8 +2669,11 @@ SELECT ALL + 59 - - 45 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* CASE Int64\(\-82\) WHEN Int64\(36\) \+ coalesce\(Int64\(\-95\), Int64\(13\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(78\) THEN NULL WHEN Int64\(63\) THEN \(\- Int64\(99\)\) \+ Int64\(57\) \+ Int64\(89\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-22\) ELSE NULL END AS col2" at position 0 and "Int64\(\-31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-31 +NULL query II rowsort SELECT DISTINCT + 85 AS col2, + 6 @@ -2886,8 +2920,11 @@ SELECT DISTINCT - 50 + - 33 / + 95 + 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 421262 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "Int64\(62\) \+ Int64\(\-65\) \* \(\- coalesce\(Int64\(90\), \(\- \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(99\) THEN NULL WHEN \(\- CAST\(NULL AS Int32\)\) THEN \(\- \(\- max\(DISTINCT Int64\(67\)\)\)\) \+ Int64\(\-81\) END\)\), Int64\(99\)\)\) \* Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +4 +421262 query II rowsort SELECT 39 AS col1, - 29 AS col0 @@ -3381,8 +3418,11 @@ SELECT - 22 * 78 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "Int64\(84\) \+ Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 AS col1, 84 + + 32 col1 +---- +116 +44 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -3820,8 +3860,11 @@ SELECT ALL MIN ( - 86 ) col0 # 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 "Int64\(\-66\) AS col1" at position 0 and "Int64\(2\) / \(\- Int64\(\-85\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 66 AS col1, 2 / - - 85 AS col1 +---- +-66 +0 query II rowsort SELECT 12, ( + + 26 ) col1 @@ -4014,8 +4057,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "Int64\(\-45\) \+ Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 col0, - 45 + 39 AS col0 +---- +-6 +46 query I rowsort SELECT + ( - NULLIF ( + 21, - 22 ) ) + + + 53 * - 46 * 13 AS col2 @@ -4389,8 +4435,11 @@ SELECT ALL 33 - - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "Int64\(\-96\) \+ Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 22 AS col1, - 96 + + 13 col1 +---- +-83 +22 query I rowsort SELECT ALL + 17 - 80 col2 @@ -4562,8 +4611,11 @@ SELECT + + 90 * 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(57\) WHEN Int64\(\-47\) THEN NULL ELSE Int64\(\-87\) END\) AS col0" at position 0 and "Int64\(6\) / Int64\(\-69\) \- Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CASE + 57 WHEN - 47 THEN NULL ELSE - 87 END AS col0, 6 / - 69 - + 22 AS col0 +---- +-22 +87 query I rowsort label-861 SELECT ALL 42 * + 84 * + COUNT ( ALL + - 28 ) + + 69 AS col0 @@ -4598,8 +4650,11 @@ SELECT - 44 * + COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 156 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-97\)\) \+ Int64\(59\) AS col2" at position 0 and "\(\- nullif\(Int64\(38\), Int64\(70\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 97 + 59 AS col2, - NULLIF ( 38, + 70 ) col2 +---- +-38 +156 query I rowsort label-868 SELECT ALL + - 35 + + CAST ( NULL AS INTEGER ) @@ -4865,8 +4920,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 72 AS col2, + 82 AS col2 +---- +-72 +82 query I rowsort SELECT 8 * 7 AS col2 @@ -4986,8 +5044,11 @@ SELECT - 20 - + 77 + - 92 + + + 96 * 97 * + CAST ( - 54 AS INTEGER ) * - 60 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - -2475 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "Int64\(\-75\) \* \(\- Int64\(\-33\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 AS col1, ( + - 75 ) * - + ( - 33 ) AS col1 +---- +-2475 +25 query I rowsort label-941 SELECT - SUM ( ALL - + 38 ) + + + MIN ( - 64 ) - - + 78 AS col0 @@ -5182,8 +5243,11 @@ SELECT + 27 * - - 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 245 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "Int64\(35\) \* Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 AS col1, + 35 * + + 7 AS col1 +---- +245 +93 query I rowsort label-979 SELECT + 45 / + 19 col2 @@ -5306,8 +5370,11 @@ SELECT ALL 84 * - COUNT ( * ) + COALESCE ( 57, - 59, 58 * + 73 * - + COALESCE ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - -427 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \- Int64\(6\) \+ Int64\(90\) AS col0" at position 0 and "Int64\(5\) \+ Int64\(48\) \* \(\- Int64\(9\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 - 6 + 90 col0, 5 + + 48 * - + 9 AS col0 +---- +-427 +29 query I rowsort SELECT + 24 * 66 + 31 AS col0 @@ -5571,8 +5638,11 @@ SELECT 26 - + 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - -1634 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col0" at position 0 and "Int64\(86\) \* Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 17 AS col0, + 86 * + - 19 AS col0 +---- +-1634 +-17 query I rowsort SELECT 68 + 24 * - 56 + - 31 @@ -5725,14 +5795,20 @@ SELECT 81 + + NULLIF ( 55, - + 91 + 25 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 AS col1, COUNT ( * ) AS col1 +---- +1 +3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 73 AS col2, 5 AS col2 +---- +5 +73 query I rowsort label-1084 SELECT + 96 + 86 - - 82 + - 62 * + + 15 - + - 29 * + MAX ( DISTINCT - 19 ) + - 42 AS col2 @@ -6013,8 +6089,11 @@ 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 "Int64\(\-92\) \* Int64\(\-26\) \* Int64\(0\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 * - 26 * + 0 AS col0, 64 AS col0 +---- +0 +64 query I rowsort SELECT ( - - 78 ) AS col1 @@ -6225,8 +6304,11 @@ SELECT 61 + - + 30 + + 13 / 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5508 # Datafusion - Expected - -320 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* Int64\(\-81\) 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 II valuesort SELECT 68 * - 81 AS col1, 5 * - 64 AS col1 +---- +-320 +-5508 query I rowsort SELECT 71 + - - 45 AS col0 @@ -6599,8 +6681,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - COUNT ( * ) AS col0, + 26 col0 +---- +-1 +26 query I rowsort SELECT - + 21 + + + 53 @@ -6625,8 +6710,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col2" at position 0 and "Int64\(62\) \* count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(14\) / coalesce\(CAST\(Int64\(51\) AS Int32\), Int64\(\-57\) \+ Int64\(38\)\) \* Int64\(84\) \+ Int64\(18\) \- Int64\(\-87\) \- Int64\(87\) \+ Int64\(\-40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 38 AS col2, 62 * COUNT ( * ) + + COUNT ( * ) + + 14 / COALESCE ( CAST ( + 51 AS INTEGER ), - 57 + + 38 ) * + 84 + + 18 - - 87 - + 87 + - 40 AS col2 +---- +38 +41 query I rowsort label-1256 SELECT - - 95 / - ( 94 ) AS col1 @@ -6776,8 +6864,11 @@ SELECT ALL - SUM ( + 89 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1139 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) \* Int64\(\-67\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 17 * + - 67 AS col0, CAST ( NULL AS INTEGER ) AS col0 +---- +1139 +NULL query I rowsort SELECT - + 71 * - + ( + NULLIF ( 71, 12 ) ) * - 22 * - ( - 31 ) + - 49 AS col2 @@ -6956,8 +7047,11 @@ SELECT - 9 * + 6 * COUNT ( DISTINCT - 52 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 99 AS col2, 86 AS col2 +---- +-99 +86 query II rowsort label-1318 SELECT ALL - + COUNT ( * ) AS col2, - COUNT ( * ) + - 26 @@ -7309,8 +7403,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) / + 7 * + 50 col0, 69 * - - 35 col0 +---- +0 +2415 query I rowsort label-1385 SELECT + + MAX ( DISTINCT + 74 ) @@ -7390,8 +7487,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 4 AS col2, - COUNT ( * ) AS col2 +---- +-1 +4 query I rowsort SELECT 21 + + + 37 @@ -7418,8 +7518,11 @@ SELECT DISTINCT 67 AS col2, 29 - + 84 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "Int64\(0\) \* \(\- Int64\(77\)\) \* Int64\(4\) \* Int64\(56\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 51 AS col0, + 0 * + - ( + 77 ) * + 4 * + 56 / COUNT ( * ) AS col0 +---- +0 +51 query I rowsort label-1405 SELECT ALL 28 + + MAX ( + 54 ) + - 13 @@ -8031,8 +8134,12 @@ SELECT 9 * 25 col1 # Datafusion - Expected - 95 # Datafusion - Expected - -1683 # Datafusion - Expected - 815 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* Int64\(\-17\) AS col1" at position 1 and "Int64\(36\) \* Int64\(24\) \- Int64\(49\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 95, 99 * + - 17 AS col1, 36 * + 24 - + 49 col1 +---- +-1683 +815 +95 query I rowsort label-1519 SELECT 85 / - 67 + - 45 AS col2 @@ -8042,8 +8149,11 @@ 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\(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\. +query II valuesort SELECT ALL + 76 + - + COUNT ( * ) + + 86 AS col0, ( 10 ) * - COUNT ( * ) AS col0 +---- +-10 +161 query II rowsort SELECT ALL - 50 AS col1, 20 + - 88 @@ -8104,8 +8214,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-70 +NULL query I rowsort SELECT + 78 * - 1 @@ -8579,8 +8692,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * COUNT ( 83 ) + + - NULLIF ( COUNT ( * ), 53 ) * + 15 * - - 52 AS col0, SUM ( ( 42 ) ) AS col0 +---- +-779 +42 query I rowsort SELECT + 13 + - 77 * + 69 AS col2 @@ -8785,8 +8901,11 @@ SELECT DISTINCT 77 AS col1, 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 5740 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col0" at position 0 and "Int64\(70\) \* nullif\(Int64\(82\), \(\- CAST\(Int64\(26\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 36 AS col0, 70 * + + NULLIF ( + 82, - CAST ( + 26 AS INTEGER ) ) col0 +---- +36 +5740 query I rowsort SELECT ALL + 0 + - 18 - + 84 * + + 11 @@ -8973,8 +9092,11 @@ SELECT ALL 58 AS col1, 60 + 35 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - -24633 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "\(\- min\(Int64\(\-18\)\)\) \+ Int64\(3\) \* Int64\(\-83\) \* Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 27 AS col0, - MIN ( ALL - 18 ) + 3 * - 83 * 99 AS col0 +---- +-24633 +27 query I rowsort SELECT + - ( 53 ) @@ -9274,8 +9396,11 @@ SELECT - 46 AS col0, + 93 * - 28 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 AS col0, + COUNT ( * ) AS col0 +---- +1 +13 query I rowsort SELECT ALL 31 * - - 84 AS col2 @@ -9479,8 +9604,11 @@ SELECT DISTINCT + 44 * + ( 58 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "sum\(DISTINCT Int64\(95\)\) \- Int64\(8\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 * COUNT ( * ) AS col2, + SUM ( DISTINCT 95 ) - + + 8 + - - CAST ( NULL AS INTEGER ) * 45 AS col2 +---- +37 +NULL query I rowsort label-1796 SELECT - ( + SUM ( ALL - + 27 ) ) @@ -9948,8 +10076,11 @@ SELECT ( + - 2 ) / 24 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2064 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \* Int64\(86\) AS col1" at position 0 and "Int64\(99\) \+ Int64\(\-24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 24 * + 86 AS col1, + 99 + + - 24 AS col1 +---- +-2064 +75 query I rowsort label-1884 SELECT 88 * + - 74 + + - COALESCE ( + 95, COUNT ( * ) + - - 36 ) @@ -10203,8 +10334,11 @@ SELECT ALL + 66 * 26 - + - 96 + - + 26 * - 84 * - 16 + - - COALESCE ( + 46, - 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 73 AS col0, + 86 AS col0 +---- +-73 +86 query I rowsort SELECT DISTINCT + + 93 * + 64 @@ -10214,8 +10348,11 @@ SELECT DISTINCT + + 93 * + 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 50 AS col2, 74 AS col2 +---- +-50 +74 query I rowsort SELECT ALL - + 92 * + + 13 * + 89 - 69 @@ -10265,8 +10402,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col1" at position 0 and "nullif\(\(\- Int64\(78\)\), \(\- max\(DISTINCT Int64\(53\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 AS col1, NULLIF ( - + 78, - MAX ( DISTINCT 53 ) ) AS col1 +---- +-10 +-78 query I rowsort SELECT ALL + 51 * + 41 @@ -10562,8 +10702,11 @@ SELECT ALL + 50 + + 45 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\(54\) \+ \(\- CASE Int64\(97\) WHEN Int64\(\-36\) THEN Int64\(\-19\) WHEN \(\- Int64\(84\)\) THEN NULL ELSE NULL END\) \* Int64\(47\) \* Int64\(\-77\) \- Int64\(85\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 54 + - CASE 97 WHEN - 36 THEN - 19 WHEN - + 84 THEN NULL ELSE NULL END * ( + + 47 ) * - 77 - + + 85 AS col2, 20 AS col2 +---- +20 +NULL query I rowsort SELECT ALL ( + + ( 82 ) ) + + 16 @@ -10777,8 +10920,11 @@ SELECT 87 * 57 + 50 * - 55 + COALESCE ( - + COUNT ( * ), 56 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3697 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(6\) \* Int64\(\-16\) \+ Int64\(77\) \- Int64\(30\) AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 39 * 6 * - 16 + + ( + + 77 ) - 30 col1, 35 AS col1 +---- +-3697 +35 query I rowsort label-2041 SELECT - + COUNT ( * ) + 55 AS col0 @@ -10911,8 +11057,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 43 / + COALESCE ( - + 80, + 9 ) * + 46 AS col2, - COUNT ( * ) AS col2 +---- +-1 +0 query I rowsort label-2067 SELECT ALL + ( - - 43 ) / COUNT ( * ) + + 17 AS col0 @@ -10978,8 +11127,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + + 19 ) + + ( - COUNT ( * ) ) AS col0, 85 AS col0 +---- +-20 +85 query I rowsort label-2080 SELECT - MAX ( DISTINCT - 45 ) AS col2 @@ -11055,8 +11207,11 @@ SELECT COUNT ( * ) + - + ( - + 31 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 53 AS col2, 95 AS col2 +---- +53 +95 query I rowsort SELECT ALL 13 * 28 @@ -11119,8 +11274,11 @@ SELECT DISTINCT ( - - 24 ) + + + COUNT ( * ) # 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 col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 24 AS col1, 59 AS col1 +---- +24 +59 query I rowsort SELECT ALL 46 + + 58 col0 @@ -11300,8 +11458,11 @@ 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\(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\. +query RI valuesort 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 +---- +4 +NULL query I rowsort label-2140 SELECT COALESCE ( + ( + - 87 ), + MIN ( 37 ), + 93 ) - + + 76 @@ -12100,8 +12261,11 @@ SELECT + COUNT ( - + 43 ) * - + 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(86\)\)\) AS col0" at position 0 and "Int64\(0\) \* CAST\(Int64\(52\) AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - + 86 ) AS col0, 0 * CAST ( 52 AS INTEGER ) * COUNT ( * ) AS col0 +---- +0 +86 query II rowsort label-2297 SELECT ALL + ( 80 ) AS col2, + SUM ( DISTINCT - - 42 ) @@ -12292,8 +12456,12 @@ SELECT COALESCE ( - 52, - CAST ( NULL AS INTEGER ), + - 17 / 12 ) * + 66 AS col0 # Datafusion - Expected - 17 # Datafusion - Expected - 82 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 17 AS col1, 82 AS col1, COALESCE ( - + 10, - 48 - + - 55 ) col2 +---- +-10 +17 +82 query I rowsort label-2333 SELECT ALL - SUM ( DISTINCT - ( - 93 ) ) - - + ( + 21 ) AS col1 @@ -12369,8 +12537,11 @@ SELECT 82 + - + COUNT ( * ) * + - 63 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 126 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col2" at position 0 and "Int64\(97\) \- Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 86 AS col2, + 97 - - 29 AS col2 +---- +-86 +126 query II rowsort SELECT 41 col2, + 74 AS col0 @@ -12466,8 +12637,11 @@ SELECT ALL - - 48, - 88 * 20 / 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 110 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \+ Int64\(79\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 31 + 79 AS col2, + 98 AS col2 +---- +110 +98 query I rowsort SELECT ALL + 48 - + - 80 col0 @@ -12636,14 +12810,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -187 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-37\), Int64\(39\) \* Int64\(37\)\)\) / Int64\(\-23\) AS col0" at position 0 and "Int64\(3\) \* Int64\(\-35\) \- Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( - 37, + + 39 * + 37 ) / - 23 AS col0, 3 * - 35 - 82 col0 +---- +-1 +-187 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 80 AS col2 +---- +1 +80 query II rowsort label-2400 SELECT - 3 * + 66 * + + SUM ( ALL - NULLIF ( - - 64, + - 20 ) ), + ( - 58 ) AS col0 @@ -12686,8 +12866,11 @@ SELECT - MIN ( DISTINCT 0 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \- \(\- Int64\(\-85\)\) \+ Int64\(\-35\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 - + ( - - 85 ) + - 35 AS col0, + 64 AS col0 +---- +-83 +64 query I rowsort label-2407 SELECT + ( - - MIN ( - 54 ) ) - 34 * - 41 @@ -12760,8 +12943,11 @@ SELECT - + 3 * - - COUNT ( * ) * 12 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 2054 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col1" at position 0 and "Int64\(26\) \* Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 86 AS col1, 26 * + 79 AS col1 +---- +-86 +2054 query I rowsort label-2421 SELECT ALL + 14 / 46 * + 23 - - ( 6 ) * 39 + - 23 @@ -12894,8 +13080,11 @@ SELECT DISTINCT 30 - + 95 + - + 55 * + 99, + 20 / - ( - + 76 ) + 5 * - 95 + 63 A # Datafusion - Datafusion expected results: # Datafusion - Expected - 104 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ Int64\(64\) AS col2" at position 0 and "Int64\(\-53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 40 + + 64 AS col2, - 53 AS col2 +---- +-53 +104 query I rowsort label-2447 SELECT ALL + CASE - 83 WHEN - 38 * 68 THEN NULL ELSE + - CAST ( NULL AS INTEGER ) END @@ -13145,8 +13334,11 @@ SELECT 56 - 35 * - 6 + 19 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -230942 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(58\) \+ \(\- Int64\(6\)\) \* min\(Int64\(\-14\)\) \* Int64\(55\) \* Int64\(\-50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, + 58 + - + 6 * MIN ( ALL - 14 ) * + 55 * + - 50 col0 +---- +-230942 +1 query I rowsort label-2496 SELECT CASE - 82 WHEN + 93 / 74 THEN - - 26 END / - - CASE - CAST ( + - ( - 97 ) AS FLOAT8 ) WHEN CAST ( 0 AS INTEGER ) * 17 THEN + 57 / - 52 END + - ( 45 + - CAST ( NULL AS INTEGER ) ) * 82 @@ -13509,8 +13701,11 @@ SELECT DISTINCT - 52, 49 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 29 AS col2, + 93 col2 +---- +-29 +93 query I rowsort label-2565 SELECT 0 / - 26 AS col0 @@ -13708,8 +13903,11 @@ SELECT 29 + - - 4 + 62 + ( - 53 ) * - 76 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(9\)\) AS col2" at position 0 and "Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( 9 ) AS col2, 80 AS col2 +---- +80 +9 query II rowsort SELECT ALL 31 * 20 AS col2, - 9 * + 29 @@ -13925,8 +14123,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 67 AS col0, - CAST ( NULL AS INTEGER ) AS col0 +---- +67 +NULL query II rowsort SELECT + NULLIF ( 3, + 1 ), - ( + - 77 ) + + 16 AS col0 @@ -14083,8 +14284,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 12 AS col2, 84 * COUNT ( * ) + - 23 AS col2 +---- +12 +61 query I rowsort label-2675 SELECT DISTINCT + MIN ( + - 91 ) * - 92 * - - COUNT ( DISTINCT + 65 ) * + + 93 * CAST ( NULL AS INTEGER ) AS col0 @@ -14504,8 +14708,11 @@ SELECT DISTINCT + - MAX ( ALL 66 ) * 87 * + 43 + - 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) / \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 62 / - + CAST ( NULL AS INTEGER ) AS col2, + 78 AS col2 +---- +78 +NULL query I rowsort label-2755 SELECT ALL 18 * - + 55 + - COUNT ( * ) AS col0 @@ -14898,8 +15105,11 @@ SELECT - 33 AS col1, - 5 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "\(\- count\(Int64\(28\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 37 AS col2, - COUNT ( ALL 28 ) AS col2 +---- +-1 +37 query I rowsort label-2829 SELECT ALL + COUNT ( * ) * - 18 col0 @@ -14944,8 +15154,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) + + + 90 AS col0, 74 AS col0 +---- +74 +91 query I rowsort label-2838 SELECT + MIN ( + - 74 ) - + + 61 * - 46 + CASE + COUNT ( * ) WHEN MAX ( ALL - + NULLIF ( + 18, + + COALESCE ( - 90, 82 * + + 78 * - + 1 + 61 ) ) ) THEN + - 65 + + + 13 + 29 * - 28 ELSE + 94 END @@ -15117,8 +15330,12 @@ SELECT ALL MIN ( ALL + 81 ) # Datafusion - Expected - 108 # Datafusion - Expected - -26 # Datafusion - Expected - 870 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \+ Int64\(26\) AS col1" at position 0 and "Int64\(\-26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 82 + + 26 AS col1, - 26 AS col1, - MAX ( - 87 ) * 10 AS col1 +---- +-26 +108 +870 query II rowsort SELECT - - 33 - + + 21, - 79 AS col2 @@ -15935,8 +16152,11 @@ 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\)\) 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\. +query II valuesort SELECT - COALESCE ( - + ( 39 ), + + 53 + - ( - + 7 ) + + 20 + + - MIN ( ALL - 2 ) * - + COUNT ( * ) + + 1 / + ( + - 28 ) * + 91, - + MAX ( DISTINCT - - 69 ) ) * 34 AS col2, COUNT ( * ) * - 17 AS col2 +---- +-17 +1326 query I rowsort label-3025 SELECT - 77 * - COUNT ( - 61 ) AS col0 @@ -15977,8 +16197,11 @@ SELECT - COUNT ( * ) * + SUM ( - 73 ) + - 23 + 22 / - ( SUM ( - 95 ) ) AS col1 # 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 "Int64\(37\) \+ Int64\(\-5\) AS col2" at position 0 and "Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 + - 5 AS col2, - 88 AS col2 +---- +-88 +32 query I rowsort label-3033 SELECT - MIN ( + + 59 ) * - + 81 + 42 AS col0 @@ -16047,8 +16270,11 @@ SELECT ALL 45, - 40 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-60\)\)\) \- Int64\(60\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - SUM ( ALL - 60 ) - 60 AS col0, + 40 AS col0 +---- +0 +40 query I rowsort label-3046 SELECT ALL - 96 * + COUNT ( * ) * 31 * + 14 AS col2 @@ -16626,8 +16852,11 @@ SELECT ALL - 53 * - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col1" at position 0 and "Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 66 AS col1, 56 AS col1 +---- +-66 +56 query II rowsort SELECT - 97 AS col2, 72 @@ -17252,8 +17481,11 @@ SELECT ALL + 54 / 40 - + 63 + 10 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-55\)\) AS col0" at position 0 and "Int64\(4\) \* Int64\(3\) / Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 55 AS col0, 4 * + 3 / - 90 AS col0 +---- +0 +55 query I rowsort label-3274 SELECT ALL 94 + - COUNT ( * ) * 51 - - 65 @@ -17449,8 +17681,11 @@ SELECT - - 22 * - 89 - + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(\(\- Int64\(70\)\), \(\- nullif\(Int64\(72\), \(\- Int64\(\-38\)\)\)\) / Int64\(\-73\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) AS col0" at position 0 and "count\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - NULLIF ( + ( - ( + 70 ) ), - NULLIF ( 72, - - 38 ) / - 73 * - COUNT ( * ) ) AS col0, + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 +---- +-70 +0 query I rowsort SELECT 91 * 11 * 42 @@ -17665,8 +17900,11 @@ SELECT DISTINCT ( ( + - 44 ) ) 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\(\-7\) \- \(\- coalesce\(Int64\(67\), \(\- Int64\(\-50\)\)\)\) \- Int64\(55\) \+ Int64\(54\) AS col1" at position 0 and "Int64\(46\) / \(\- count\(Int64\(\-35\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 7 - - + COALESCE ( + 67, - - 50 ) - 55 + + 54 AS col1, 46 / + ( - COUNT ( - 35 ) ) AS col1 +---- +-46 +59 query I rowsort label-3351 SELECT - COALESCE ( + + 50, + + NULLIF ( + 64, + 39 * + 0 + NULLIF ( + COUNT ( * ), + - 69 ) ) / 87 ) @@ -18270,8 +18508,11 @@ SELECT ALL 15, + 46 + - 36 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(52\)\) AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 52 AS col0, + 53 AS col0 +---- +-52 +53 query I rowsort label-3466 SELECT + COUNT ( * ) + NULLIF ( - 69, - + 61 / CAST ( + NULLIF ( - + ( - 27 ), 73 ) AS INTEGER ) ) AS col1 @@ -18631,8 +18872,11 @@ SELECT - + ( 7 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ \(\- min\(DISTINCT Int64\(\-32\)\)\) \+ \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(\-10\)\) \* sum\(Int64\(73\)\) THEN \(\- nullif\(Int64\(88\), Int64\(68\)\)\) WHEN CASE Int64\(\-3\) WHEN Int64\(\-13\) THEN NULL WHEN Int64\(62\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-71\) END THEN NULL ELSE NULL END\) AS col0" at position 0 and "Int64\(97\) \* Int64\(\-38\) \+ Int64\(\-83\) \+ CAST\(NULL AS Int32\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +NULL +NULL query I rowsort SELECT + 56 + 14 @@ -18942,8 +19186,11 @@ SELECT + ( 1 ) + - - 38 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "Int64\(6\) \* Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 59 col0, + 6 * + 19 AS col0 +---- +114 +59 query I rowsort SELECT + 58 + + 66 AS col2 @@ -19034,8 +19281,11 @@ SELECT + CAST ( - + 9 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col0" at position 0 and "Int64\(85\) / \(\- CASE Int64\(91\) WHEN Int64\(50\) / Int64\(26\) THEN Int64\(\-11\) ELSE NULL END\) \* Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 75 AS col0, 85 / - + CASE + + 91 WHEN 50 / 26 THEN - 11 ELSE NULL END * + 80 col0 +---- +75 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -20306,8 +20556,11 @@ SELECT DISTINCT - 17 * + + 23 * - 20 + 10 AS col1 # 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 "Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 col1, + 1 AS col1 +---- +1 +69 query I rowsort label-3856 SELECT - MAX ( DISTINCT + + 26 ) AS col0 @@ -20747,8 +21000,11 @@ SELECT - 54 + 81 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col2" at position 0 and "\(\- Int64\(6\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 AS col2, ( - + 6 ) AS col2 +---- +-6 +80 query I rowsort label-3942 SELECT ALL 24 / + + COUNT ( * ) @@ -21034,8 +21290,11 @@ SELECT DISTINCT - 54 / - 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ Int64\(51\) AS col1" at position 0 and "\(\- sum\(Int64\(63\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 42 + 51 AS col1, - SUM ( 63 ) AS col1 +---- +-63 +93 query I rowsort SELECT ALL + - 75 * - - 29 * - 51 @@ -21045,8 +21304,11 @@ SELECT ALL + - 75 * - - 29 * - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - -540 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-21\)\) AS Int32\) / Int64\(66\) \+ Int64\(90\) \* Int64\(\-6\) AS col2" at position 0 and "Int64\(\-6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - - 21 AS INTEGER ) / + 66 + 90 * - 6 AS col2, ( - 6 ) AS col2 +---- +-540 +-6 query I rowsort SELECT ALL - 10 + + 48 + + 4 * + 37 * - 96 AS col1 @@ -21113,8 +21375,11 @@ SELECT ALL 6 - - 90 + + - 37 + + + 74 + + - 19 * 47 + - MIN ( + - CAST ( - 79 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col2" at position 0 and "CAST\(max\(Int64\(26\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 AS col2, CAST ( + MAX ( 26 ) AS INTEGER ) AS col2 +---- +18 +26 query I rowsort label-4012 SELECT COUNT ( * ) * MIN ( - 8 ) * + COUNT ( * ) @@ -21282,8 +21547,12 @@ NULL # Datafusion - Expected - -106 # Datafusion - Expected - NULL # Datafusion - Expected - 256 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / \(\- Int64\(0\)\) \* \(\- Int64\(\-6\)\) AS col0" at position 1 and "Int64\(20\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(11\) \+ Int64\(36\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL ( - 48 ) - - SUM ( DISTINCT - 58 ) AS col2, - CAST ( NULL AS INTEGER ) / - - 0 * - - 6 AS col0, 20 * + COUNT ( * ) * 11 + + 36 AS col0 +---- +-106 +256 +NULL query I rowsort SELECT 58 + - ( - 30 ) * + 47 + 99 @@ -21341,8 +21610,11 @@ SELECT CASE - + ( + NULLIF ( + 70, 32 / + 47 ) ) WHEN - 44 THEN NULL WHEN + + CA # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- count\(Int64\(96\)\)\), Int64\(57\)\) AS col0" at position 0 and "Int64\(84\) \* CAST\(NULL AS Int32\) \* \(\- coalesce\(Int64\(\-54\), Int64\(\-74\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ Int64\(\-18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( + - COUNT ( + 96 ), + 57 ) col0, 84 * + CAST ( NULL AS INTEGER ) * - COALESCE ( - 54, - 74 / - COUNT ( * ) ) + - 18 AS col0 +---- +-1 +NULL query I rowsort label-4054 SELECT ALL 25 * + 5 + - MIN ( ALL + 62 ) AS col2 @@ -21652,8 +21924,12 @@ NULL # Datafusion - Expected - 10 # Datafusion - Expected - -56201 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ Int64\(2\) AS col1" at position 0 and "Int64\(59\) \+ \(\- Int64\(24\)\) \+ min\(Int64\(44\)\) \+ Int64\(\-15\) \* Int64\(67\) \* Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 8 + + 2 AS col1, + 59 + - + 24 + + + MIN ( 44 ) + - 15 * + + 67 * + 56 AS col1, + COUNT ( * ) AS col0 +---- +-56201 +1 +10 query II rowsort label-4114 SELECT ALL COUNT ( * ) + - 13, - 19 AS col0 @@ -21716,8 +21992,11 @@ SELECT ALL 24 * - - 84 / + - SUM ( ALL 82 ) + 20 AS 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 "Int64\(\-3\) AS col0" at position 0 and "Int64\(6\) / Int64\(\-39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 3 AS col0, 6 / - 39 AS col0 +---- +-3 +0 query I rowsort label-4126 SELECT - 21 / + 41 @@ -21991,8 +22270,11 @@ SELECT + 99 + 53 - + - 88 + - 84 * + 61 # 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\(68\)\)\)\)\) AS col1" at position 0 and "Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - - ( - + 68 ) ) AS col1, - 86 AS col1 +---- +-86 +68 query I rowsort label-4179 SELECT DISTINCT COUNT ( * ) * - 2 @@ -22684,8 +22966,11 @@ SELECT - 12 + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 75600 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \- Int64\(\-28\) AS col1" at position 0 and "Int64\(18\) \* Int64\(84\) \* Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 18 - - 28 AS col1, 18 * + 84 * ( + 50 ) AS col1 +---- +46 +75600 query I rowsort label-4310 SELECT DISTINCT CASE COUNT ( * ) WHEN 73 THEN COUNT ( * ) END col2 @@ -22957,8 +23242,11 @@ SELECT + 88 * + COUNT ( ALL - + 53 ) * - 65 + - 61 + - 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col1" at position 0 and "Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 53 AS col1, + 24 AS col1 +---- +-53 +24 query II rowsort SELECT ALL - 37 AS col0, 6 @@ -23032,8 +23320,11 @@ SELECT DISTINCT + COALESCE ( + MAX ( + - 67 ), - CASE + 18 WHEN - CASE - 25 WHEN # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- nullif\(\(\- Int64\(\-2\)\), \(\- Int64\(99\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 74 + COUNT ( * ) AS col0, - NULLIF ( - - 2, - + ( + + 99 ) ) AS col0 +---- +-2 +-73 query II rowsort label-4375 SELECT 31 + - 7 AS col2, COUNT ( * ) @@ -23259,8 +23550,11 @@ 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\(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\. +query II valuesort SELECT ALL 50 * + - COUNT ( * ) - + 18 col0, 13 col0 +---- +-68 +13 query I rowsort label-4419 SELECT ALL - SUM ( DISTINCT + 53 ) * 62 + + - 14 AS col2 @@ -23281,8 +23575,11 @@ SELECT ALL - 38 * - 43 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-56\)\) AS col1" at position 0 and "Int64\(\-53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - ( + - 56 ) ) col1, - 53 AS col1 +---- +-53 +56 query I rowsort label-4423 SELECT DISTINCT - - 20 * - 79 + - ( COUNT ( * ) ) @@ -23428,8 +23725,11 @@ SELECT + 86 + + COUNT ( * ) + 91 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 8 AS col0, 27 AS col0 +---- +27 +8 query I rowsort SELECT + 63 + - - 26 + - 7 + + - 70 + NULLIF ( + 38, + 91 ) AS col1 @@ -23491,8 +23791,11 @@ SELECT + 50 * - 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) \* Int64\(20\) \+ Int64\(1\) \+ Int64\(8\) \- CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(12\) AS col2" at position 0 and "Int64\(44\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 54 * + 20 + 1 + 8 - + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * + 12 AS col2, + 44 * COUNT ( * ) - + 73 AS col2 +---- +-29 +NULL query II rowsort SELECT + 60 AS col0, + 85 + - 61 @@ -23559,8 +23862,11 @@ SELECT - 53 * + - CAST ( - 71 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\)" at position 0 and "Int64\(74\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + + 74 ), 74 +---- +74 +74 query I rowsort label-4476 SELECT DISTINCT - CASE - SUM ( DISTINCT 89 ) WHEN - ( ( ( + 14 ) ) ) + - 39 THEN + + 85 * + - 88 END * - COUNT ( * ) - - + 75 + - 88 + 17 * - - COALESCE ( 83, - + 41, + COUNT ( * ) + + - COUNT ( * ), + 14 * - 92 ) / - 38 @@ -23806,8 +24112,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(87\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(49\) \+ Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 87 AS col1, CAST ( NULL AS INTEGER ) * + 49 + + 23 AS col1 +---- +-87 +NULL query I rowsort SELECT ALL 22 + ( 1 ) AS col2 @@ -23920,8 +24229,11 @@ SELECT DISTINCT - 67 * ( + 31 ) + 0 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ coalesce\(Int64\(44\), Int64\(\-66\), \(\- max\(Int64\(\-13\)\)\)\) \* Int64\(12\) \+ CASE Int64\(37\) WHEN Int64\(32\) \+ Int64\(70\) THEN \(\- Int64\(\-50\)\) WHEN \(\- Int64\(\-54\)\) THEN NULL END \+ Int64\(40\) AS col0" at position 0 and "Int64\(62\) \- Int64\(\-20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 8 + + COALESCE ( 44, - 66, + - MAX ( ALL - 13 ) ) * + 12 + CASE + 37 WHEN 32 + + + 70 THEN - - 50 WHEN - - 54 THEN NULL END + + 40 AS col0, 62 - - 20 AS col0 +---- +82 +NULL query I rowsort label-4544 SELECT ALL + COUNT ( 24 ) @@ -24137,8 +24449,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-80\)\)\) AS col1" at position 0 and "Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - - 80 ) AS col1, - 56 col1 +---- +-56 +-80 query I rowsort label-4586 SELECT - 63 / - 89 + + + 99 @@ -24399,8 +24714,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * - 90 AS col1, + 19 AS col1 +---- +-90 +19 query I rowsort SELECT - ( - 57 ) AS col2 @@ -24542,8 +24860,12 @@ SELECT - - ( + 1 ) * + 65 col0 # Datafusion - Expected - -6 # Datafusion - Expected - 7 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 1 and "Int64\(\-5\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - MAX ( ALL - ( - 6 ) ), 7 AS col2, - 5 AS col2 +---- +-5 +-6 +7 query I rowsort SELECT - 13 - 91 AS col1 @@ -24615,8 +24937,11 @@ SELECT 78 * + - 39 * 8 + - 49 col2, 30 + + COUNT ( DISTINCT 44 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) \* Int64\(2\) AS col2" at position 0 and "Int64\(\-55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 15 * + 2 AS col2, - 55 AS col2 +---- +-30 +-55 query I rowsort label-4678 SELECT CAST ( - 75 AS INTEGER ) AS col0 @@ -25023,8 +25348,11 @@ SELECT ALL + CAST ( 40 AS INTEGER ) * + 58 + COUNT ( * ) * - + 48 # 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\(28\) AS col1" at position 0 and "Int64\(\-37\) / Int64\(\-9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 28 AS col1, - 37 / - 9 AS col1 +---- +28 +4 query I rowsort label-4756 SELECT DISTINCT - - 18 * - NULLIF ( - - 93, 67 ) * - COUNT ( * ) - + 48 * + COUNT ( * ) @@ -25487,8 +25815,11 @@ 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\(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\. +query II valuesort SELECT ALL + NULLIF ( + 97, - - COUNT ( * ) ) - + 88 AS col0, + 72 AS col0 +---- +72 +9 query I rowsort label-4845 SELECT DISTINCT - COUNT ( DISTINCT 26 ) @@ -25525,8 +25856,11 @@ SELECT - 53 - MAX ( DISTINCT + 69 ) # 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 "\(\- Int64\(45\)\) / Int64\(52\) \+ Int64\(7\) \+ Int64\(20\) AS col2" at position 0 and "Int64\(50\) \- Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 45 / + 52 + + 7 + + 20 AS col2, 50 - + - 15 AS col2 +---- +27 +65 query I rowsort label-4852 SELECT CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col2 @@ -26269,8 +26603,11 @@ SELECT ALL 23 + 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-44\) \+ Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) col0, - 44 + 47 AS col0 +---- +3 +NULL query I rowsort SELECT ALL 36 - NULLIF ( ( - 57 ), + 86 ) AS col1 @@ -26373,8 +26710,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * - + ( + 22 ) / - 66 AS col1, 83 * + - 66 AS col1 +---- +-5478 +0 query I rowsort label-5014 SELECT + NULLIF ( COUNT ( * ), COUNT ( * ) + - 1 * + - 6 ) @@ -26389,8 +26729,11 @@ SELECT - 79 * 80 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \* \(\- Int64\(\-24\)\) \+ \(\- Int64\(\-46\)\) \+ 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 RI valuesort SELECT ALL CAST ( NULL AS FLOAT8 ) * - - 24 + - - 46 + + - 39 AS col1, 55 AS col1 +---- +55 +NULL query I rowsort label-5017 SELECT + - COUNT ( * ) - - 51 @@ -26425,8 +26768,11 @@ NULL # 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\(\-37\) / Int64\(61\) AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 37 / 61 AS col1, 33 AS col1 +---- +0 +33 query I rowsort label-5024 SELECT ALL - 82 * + 89 + - COUNT ( * ) - - SUM ( 61 ) @@ -26436,8 +26782,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 89 * - + COUNT ( * ) * + 31 * - 57 col2, COUNT ( ALL + - 22 ) AS col2 +---- +-157263 +1 query I rowsort label-5026 SELECT ALL MIN ( DISTINCT + 13 ) AS col0 @@ -26574,8 +26923,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 50 AS col1, 93 + COUNT ( * ) * 30 col1 +---- +123 +50 query I rowsort label-5052 SELECT ALL 55 * 98 * + COUNT ( * ) AS col0 @@ -26730,8 +27082,11 @@ SELECT ALL - ( - + 48 ) + - 57 - - 24 * + - NULLIF ( - 82, + - 73 ) + + 82 * 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 39 AS col0, + 58 AS col0 +---- +-39 +58 query I rowsort SELECT DISTINCT + 16 * 4 + - - 66 - - + 19 + + + 30 * - + 81 @@ -27018,8 +27373,11 @@ SELECT + 4 + + MIN ( ALL + 50 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - -1769 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col0" at position 0 and "Int64\(29\) \* \(\- Int64\(61\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 col0, 29 * - + 61 AS col0 +---- +-1769 +93 query I rowsort SELECT ALL 86 + + NULLIF ( + 16, + 86 * 16 - 40 ) * + 5 @@ -27341,8 +27699,12 @@ 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\(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\. +query III valuesort SELECT + NULLIF ( - 19, + 93 ) * + + 76 - + CAST ( - 9 AS INTEGER ), - 16 + + - COUNT ( * ) AS col1, - 57 AS col1 +---- +-1435 +-17 +-57 query I rowsort SELECT 61 - 18 * + ( - + 90 ) @@ -27357,8 +27719,11 @@ SELECT 97 * + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -340 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* \(\- nullif\(Int64\(5\), \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "Int64\(\-71\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 * + - ( + NULLIF ( + 5, - CAST ( NULL AS INTEGER ) ) ) AS col1, - 71 * COUNT ( * ) AS col1 +---- +-340 +-71 query I rowsort SELECT 45 * - ( - 17 ) + - 88 AS col2 @@ -27392,8 +27757,11 @@ SELECT + COALESCE ( - SUM ( DISTINCT + 71 ), - 22 ) - + 11 * + 36 * + 84 * 42 + # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 4636 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \+ \(\- Int64\(\-24\)\) \+ \(\- Int64\(21\)\) AS col0" at position 0 and "Int64\(61\) \* Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 9 + - - 24 + - + 21 AS col0, 61 * 76 AS col0 +---- +-6 +4636 query I rowsort label-5209 SELECT ALL - + COUNT ( * ) + - 19 @@ -27501,8 +27869,12 @@ SELECT ALL 70 - - 35 / + 42 AS col1 # Datafusion - Expected - 1 # Datafusion - Expected - -16 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "max\(Int64\(45\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT COUNT ( * ) AS col1, 49 + - 83 + 18 AS col2, + + MAX ( + 45 ) col1 +---- +-16 +1 +45 query I rowsort label-5229 SELECT ALL 46 * + 9 * + + COUNT ( ALL - 48 ) @@ -27533,8 +27905,11 @@ SELECT + 29 / COUNT ( * ) + 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col0" at position 0 and "\(\- CASE Int64\(\-13\) WHEN Int64\(\-8\) THEN \(\- Int64\(\-35\)\) WHEN CAST\(\(\- \(\- CAST\(CAST\(Int64\(\-26\) AS Int32\) AS Int32\)\)\) AS Float64\) THEN NULL END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 10 AS col0, - CASE - 13 WHEN - 8 THEN - - 35 WHEN + CAST ( - ( - CAST ( CAST ( - 26 AS INTEGER ) AS INTEGER ) ) AS FLOAT8 ) THEN NULL END AS col0 +---- +-10 +NULL query II rowsort label-5235 SELECT DISTINCT - COUNT ( * ) col0, CAST ( NULL AS INTEGER ) @@ -27571,8 +27946,11 @@ SELECT ALL + 59 * 50 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, + 81 AS col2 +---- +1 +81 query I rowsort label-5242 SELECT ALL + MIN ( ALL + - 5 ) + - 88 AS col1 @@ -27603,8 +27981,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 5574 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \+ Int64\(\-26\) \+ Int64\(69\) \* Int64\(80\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 80 + - 26 + 69 * + 80 AS col1, ( + 92 ) AS col1 +---- +5574 +92 query II rowsort label-5248 SELECT DISTINCT - 65 AS col0, COUNT ( * ) AS col1 @@ -27797,8 +28178,11 @@ 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\(Int64\(1\)\) AS count\(\*\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 14 + + + 39 AS col0, + CASE 95 WHEN + 56 THEN + 42 + 50 WHEN + 17 THEN NULL ELSE + COUNT ( * ) END AS col0 +---- +1 +25 query I rowsort SELECT - 69 * + 16 + + 80 - + 75 - 1 AS col1 @@ -29142,8 +29526,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col0" at position 0 and "Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 62 AS col0, - 68 AS col0 +---- +-62 +-68 query II rowsort label-5547 SELECT DISTINCT 74, - CAST ( NULL AS INTEGER ) col2 @@ -29329,14 +29716,20 @@ SELECT 12 * + 34 + - 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - -5624 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-25\)\)\) / \(\- count\(Int64\(77\)\)\) AS col1" at position 0 and "min\(Int64\(\-76\)\) \* Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + SUM ( ALL - 25 ) / - COUNT ( ALL + 77 ) AS col1, + MIN ( + - 76 ) * 74 AS col1 +---- +-25 +-5624 # 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 "Int64\(89\) / Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 45 AS col0, 89 / + 24 AS col0 +---- +3 +45 query I rowsort SELECT + 89 - + + 50 AS col1 @@ -30344,8 +30737,11 @@ SELECT + 75 + - CAST ( - 40 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3268 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* \(\- Int64\(\-38\)\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 86 * - - 38 AS col0, 78 AS col0 +---- +3268 +78 query I rowsort label-5773 SELECT DISTINCT - 89 * - SUM ( - + 93 ) @@ -30521,8 +30917,11 @@ SELECT 50 + + - 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -149 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col2" at position 0 and "Int64\(\-67\) \+ \(\- Int64\(82\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 AS col2, - 67 + - + 82 AS col2 +---- +-149 +48 query II rowsort SELECT - 61 col0, + 53 @@ -30803,8 +31202,11 @@ SELECT DISTINCT 61 / - 65 + - + 38 * - 54 + - + 5 - + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - -415 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(70\)\) AS col2" at position 0 and "Int64\(51\) \+ Int64\(\-61\) \* \(\- Int64\(\-7\)\) \+ Int64\(\-39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + 70 ) col2, 51 + - 61 * - - 7 + - 39 AS col2 +---- +-415 +-70 query I rowsort label-5861 SELECT + 49 / - COUNT ( - 45 ) + + ( - + 87 ) AS col0 @@ -31086,8 +31488,11 @@ SELECT DISTINCT ( + + 6 ) * - 19 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) * + 19 col1 +---- +1 +19 query I rowsort label-5914 SELECT + 72 + - + 79 + COALESCE ( CAST ( NULL AS INTEGER ), + COUNT ( * ) ) + + COUNT ( * ) + - 67 + + 47 * + - 61 * + CASE AVG ( - 4 ) WHEN MAX ( DISTINCT - 86 ) THEN 9 ELSE NULL END * - - 35 + - 61 * 81 AS col0 @@ -31148,8 +31553,11 @@ 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\(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\. +query II valuesort SELECT + - 49 + 81 * + COUNT ( * ) + + 70 AS col1, + 71 AS col1 +---- +102 +71 query I rowsort label-5925 SELECT ALL COUNT ( DISTINCT + 25 ) / + 3 * - + CAST ( + - 28 AS INTEGER ) * - 22 @@ -31746,8 +32154,11 @@ SELECT ALL + ( + 2 ) * + MIN ( - 31 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 AS col1, - 27 col1 +---- +-27 +22 query II rowsort label-6040 SELECT 33 * - + COUNT ( * ) + + - 87 + 59 - - CAST ( NULL AS INTEGER ) col1, 71 + + - 69 @@ -31892,8 +32303,11 @@ SELECT MAX ( DISTINCT + NULLIF ( 87, - 77 + - + 41 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \- \(\- Int64\(\-67\)\) AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 69 - - - 67 AS col0, 33 AS col0 +---- +2 +33 query I rowsort SELECT + NULLIF ( 94, - + ( 12 ) ) * 17 AS col0 @@ -31965,8 +32379,11 @@ SELECT ALL COALESCE ( - 28, ( + 26 ) ) * 52 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col0" at position 0 and "count\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 27 AS col0, + COUNT ( CAST ( NULL AS INTEGER ) ) AS col0 +---- +-27 +0 query I rowsort label-6082 SELECT CASE + 16 WHEN + 44 THEN NULL ELSE - + COUNT ( * ) END + - COUNT ( * ) * - ( - ( - - ( 72 ) ) ) @@ -32507,8 +32924,11 @@ SELECT DISTINCT 4 AS col1, + 45 / 53 * - 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25970 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(35\)\) \+ Int64\(39\) \* Int64\(19\) \* Int64\(35\) AS col1" at position 0 and "Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( ALL + 35 ) + + 39 * 19 * 35 AS col1, + 25 AS col1 +---- +25 +25970 query I rowsort label-6184 SELECT + COUNT ( - 76 ) col1 @@ -32593,8 +33013,11 @@ SELECT - 38 * 80 AS col1 # 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 "Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 col1, - 13 AS col1 +---- +-13 +3 query I rowsort label-6200 SELECT + 8 + - - COUNT ( * ) / 76 * - - 69 @@ -32791,8 +33214,11 @@ 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\(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\. +query IR valuesort 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 +---- +30 +NULL query I rowsort SELECT ALL - 71 + + 69 col0 @@ -33180,8 +33606,12 @@ NULL # Datafusion - Expected - 42 # Datafusion - Expected - 540 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 42 AS col0, - 27 * - + 20 AS col2, + + 73 AS col0 +---- +42 +540 +73 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -33743,8 +34173,11 @@ SELECT ALL 31 / - ( + 7 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -6241 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \+ Int64\(\-71\) \* Int64\(88\) AS col1" at position 0 and "Int64\(\-57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 + - 71 * 88 AS col1, - 57 AS col1 +---- +-57 +-6241 query I rowsort label-6416 SELECT DISTINCT SUM ( ALL - 99 ) * + 31 * + + 78 + - 85 + 29 * - 62 * - CASE - 8 WHEN + 20 / 9 + - + COUNT ( * ) + - + 41 THEN NULL ELSE + + 54 + + - 93 * - 33 END + - 87 * NULLIF ( + 49, + COUNT ( 49 ) * 91 ) AS col1 @@ -34069,8 +34502,11 @@ SELECT ALL 49 AS col1, - 25 + + 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(32\) \+ Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 32 + + ( 43 ) AS col1 +---- +1 +75 query I rowsort label-6479 SELECT ALL CAST ( + - 68 AS INTEGER ) AS col0 @@ -34261,8 +34697,11 @@ SELECT - COUNT ( * ) * - - NULLIF ( + - NULLIF ( - 43, CASE WHEN ( NOT - COUNT ( # 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\(59\) \+ Int64\(23\) AS col2" at position 0 and "\(\- Int64\(96\)\) / Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 59 + + 23 AS col2, - ( + 96 ) / 89 col2 +---- +-1 +82 query I rowsort label-6516 SELECT 17 + + SUM ( - - 31 ) @@ -34458,8 +34897,11 @@ SELECT + 84 + - 74 AS col0, MAX ( - 48 ) + - 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3440 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* Int64\(80\) AS col1" at position 0 and "Int64\(\-77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 43 * 80 AS col1, - 77 AS col1 +---- +-77 +3440 query I rowsort label-6553 SELECT - CASE - 15 WHEN - - 73 THEN - 57 WHEN + - 94 * + COUNT ( * ) * - 45 + 21 * + + NULLIF ( - COUNT ( * ), - COUNT ( * ) ) - + - 73 * - ( + 55 ) * - 83 THEN - 14 WHEN COUNT ( * ) THEN NULL WHEN CAST ( + 73 AS INTEGER ) * COUNT ( * ) + - 23 THEN NULL END AS col0 @@ -34643,8 +35085,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-40\) \- Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 21 * 0 * + 37 AS col1, + COUNT ( * ) + - 40 - + 71 AS col1 +---- +-110 +0 query II rowsort SELECT DISTINCT 20 AS col0, + 32 col1 @@ -34726,14 +35171,20 @@ SELECT DISTINCT - ( ( + + 18 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1628 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT Int64\(55\)\) \- max\(\(\- Int64\(46\)\)\) \- \(\- Int64\(\-23\)\) \* Int64\(\-70\) \+ Int64\(\-29\) AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( DISTINCT + + 55 ) - MAX ( - + 46 ) - - - 23 * - 70 + - 29 col0, 55 AS col0 +---- +1628 +55 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- 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\. +query II valuesort 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 +---- +0 +NULL query I rowsort SELECT COALESCE ( - + 28, + 53 * - 56 ) * + 38 AS col1 @@ -34876,8 +35327,11 @@ SELECT DISTINCT - 14 * - COUNT ( * ) + + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1806 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(\(\- Int64\(83\)\) AS Int32\) \+ \(\- min\(DISTINCT Int64\(86\)\)\) \+ Int64\(\-21\) \* \(\- CAST\(\(\- Int64\(78\)\) AS Int32\)\) AS col1" at position 0 and "CASE Int64\(\-9\) WHEN Int64\(\-90\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN Int64\(43\) \* Int64\(79\) END \+ \(\- Int64\(71\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-1806 +NULL query II rowsort label-6634 SELECT 72 col2, 33 / 39 @@ -34946,8 +35400,11 @@ SELECT DISTINCT - MIN ( ALL 48 ) * - 36 + - 29 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col1" at position 0 and "CASE \(\- Int64\(45\)\) WHEN \(\- Int64\(\-56\)\) THEN NULL ELSE Int64\(69\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 90 AS col1, CASE - + 45 WHEN - - 56 THEN NULL ELSE 69 END AS col1 +---- +-90 +69 query I rowsort SELECT 61 * + 87 AS col0 @@ -35253,8 +35710,11 @@ SELECT - COUNT ( * ) * - ( 8 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) / Int64\(15\) AS col2" at position 0 and "Int64\(10\) / CAST\(Int64\(26\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 90 / 15 AS col2, 10 / CAST ( + 26 AS INTEGER ) AS col2 +---- +-6 +0 query I rowsort SELECT - - 29 + 39 AS col1 @@ -35288,8 +35748,11 @@ SELECT - + 17, 77 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - -7560 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "Int64\(54\) \* Int64\(\-35\) \* Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 30 AS col1, 54 * - 35 * + 4 AS col1 +---- +-7560 +30 query II rowsort SELECT ALL - 73 * - 43 AS col1, 83 * 35 AS col0 @@ -35450,8 +35913,11 @@ SELECT DISTINCT + COUNT ( * ) / 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* count\(Int64\(81\)\) AS col1" at position 0 and "min\(DISTINCT Int64\(\-14\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 * + + COUNT ( 81 ) AS col1, + MIN ( DISTINCT - 14 ) col1 +---- +-14 +45 query II rowsort SELECT DISTINCT 38 AS col1, 57 AS col0 @@ -35571,8 +36037,11 @@ 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\(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\. +query II valuesort SELECT ALL - + 56 AS col2, COALESCE ( + + 43, + 39 * COUNT ( * ), 82 ) + - - 95 - - - 62 + - 56 * - 82 * 31 + - 31 AS col2 +---- +-56 +142397 query I rowsort label-6766 SELECT + 15 * + + 84 + COUNT ( * ) col2 @@ -36199,8 +36668,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 54 + - COUNT ( * ) AS col1, + 7 col1 +---- +53 +7 query I rowsort label-6887 SELECT COUNT ( DISTINCT 94 ) @@ -36274,8 +36746,11 @@ SELECT 71 * + 15 + - - 92 + + 36 * 52 * + + 78 AS col0, + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) AS col2 +---- +1 +NULL query II rowsort SELECT - 4 AS col2, NULLIF ( + - 45, + - 66 / 89 ) AS col1 @@ -36359,8 +36834,11 @@ SELECT DISTINCT + SUM ( DISTINCT + 23 ) AS col0 # 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\(\-17\) AS col1" at position 0 and "Int64\(\-59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 17 AS col1, - 59 AS col1 +---- +-17 +-59 query I rowsort SELECT ALL - 28 + + - 47 @@ -36396,8 +36874,11 @@ 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\(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\. +query II valuesort SELECT + 51 / + + 71 + + + 59 AS col1, 23 * - + CASE + + 83 WHEN + ( - 31 ) THEN - 76 END * + + COUNT ( * ) * 87 * + 12 + 48 + + - 77 AS col1 +---- +59 +NULL query II rowsort label-6923 SELECT ALL + 5, CAST ( NULL AS INTEGER ) * - 66 * + 13 * + COUNT ( * ) * - 50 * CAST ( NULL AS INTEGER ) * - CASE - 58 WHEN - 88 THEN NULL WHEN + 14 THEN - + 41 / - 9 * + CAST ( 89 AS INTEGER ) / 12 + CAST ( 44 AS INTEGER ) - + 88 + 19 + - 37 END AS col1 @@ -37589,8 +38070,11 @@ SELECT 96 * SUM ( ALL + 45 ) * + 63 * + 99 - + 17 # 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\)\)\) AS col0" at position 0 and "coalesce\(Int64\(\-95\), Int64\(86\), Int64\(30\), Int64\(8\) \+ Int64\(30\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - SUM ( + ( + 2 ) ) AS col0, COALESCE ( + - 95, 86, 30, + 8 + 30 ) AS col0 +---- +-2 +-95 query I rowsort label-7154 SELECT DISTINCT - COUNT ( * ) * + 52 + 19 + - 11 + CAST ( + 95 AS INTEGER ) * - 15 @@ -37726,8 +38210,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-72\) \+ Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 91 col2, COUNT ( * ) + - 72 + + 16 AS col2 +---- +-55 +91 query I rowsort label-7180 SELECT DISTINCT COUNT ( * ) * COUNT ( + + 15 ) * + 15 - + + 33 * - 22 @@ -37753,8 +38240,12 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(97\) \* Int64\(\-96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 0 AS col0, + COUNT ( * ) + 97 * - 96 AS col0, + - 31 AS col2 +---- +-31 +-9311 +0 query I rowsort SELECT - NULLIF ( + 77, + 93 ) @@ -37764,8 +38255,11 @@ SELECT - NULLIF ( + 77, + 93 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 1075 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col1" at position 0 and "Int64\(25\) \* Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 2 AS col1, 25 * + + 43 AS col1 +---- +1075 +2 query I rowsort label-7187 SELECT - NULLIF ( - - 27, 93 + - COUNT ( * ) * - - CAST ( + COUNT ( * ) AS INTEGER ) ) @@ -37843,8 +38337,11 @@ SELECT ALL 92 * - 77 - + - 99 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 2 AS col0, + 42 col0 +---- +-2 +42 query I rowsort label-7202 SELECT DISTINCT + MIN ( - 50 ) AS col1 @@ -37922,8 +38419,11 @@ SELECT DISTINCT + COUNT ( * ) + CAST ( - 5 AS INTEGER ) * + 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2832 # Datafusion - Expected - 4092 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) \* Int64\(48\) AS col0" at position 0 and "Int64\(\-51\) \* Int64\(\-80\) \+ Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 59 * + + 48 AS col0, - 51 * - 80 + + 12 AS col0 +---- +-2832 +4092 query I rowsort label-7217 SELECT DISTINCT + NULLIF ( + 60, MAX ( - 15 ) ) + - 57 + COALESCE ( + 68, 12, 80 * - 85 ) AS col2 @@ -38195,8 +38695,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ \(\- Int64\(\-47\)\) AS col1" at position 0 and "Int64\(\-2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 + - - 47 col1, + ( - 2 ) AS col1 +---- +-2 +80 query I rowsort SELECT NULLIF ( + 27, - ( + 91 ) * ( + 24 ) ) * - + ( 70 ) AS col0 @@ -38376,8 +38879,11 @@ 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\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(82\)\) \* Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 71 AS col2, - COUNT ( * ) + - + 82 * - 4 AS col2 +---- +327 +71 query I rowsort label-7304 SELECT ALL 70 * - ( + 31 ) + + SUM ( DISTINCT - 30 ) @@ -38615,8 +39121,12 @@ SELECT ALL ( + 7 ) * 90 # Datafusion - Expected - 31 # Datafusion - Expected - 59 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 31 AS col0, + 59 AS col0, - 89 + 42 AS col0 +---- +-47 +31 +59 query I rowsort label-7349 SELECT - NULLIF ( - COUNT ( DISTINCT - 76 ), - 89 - - 14 + COUNT ( * ) * + CAST ( - 93 AS INTEGER ) * - 53 ) * - + 5 * 44 @@ -38643,8 +39153,11 @@ SELECT - 22 / 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col1" at position 0 and "nullif\(\(\- min\(Int64\(\-67\)\)\), Int64\(30\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 AS col1, + NULLIF ( - + MIN ( - 67 ), + 30 ) col1 +---- +-10 +67 query II rowsort SELECT - 32 AS col1, ( - 97 ) + + - 79 @@ -38666,8 +39179,11 @@ SELECT ALL - 94, - 40 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -134 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) \+ Int64\(\-41\) \+ nullif\(Int64\(\-64\), Int64\(17\) \* Int64\(31\)\) AS col2" at position 0 and "Int64\(\-47\) \- Int64\(80\) \+ Int64\(80\) / Int64\(23\) \* Int64\(\-20\) \* \(\- count\(Int64\(\-85\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 29 + - 41 + + NULLIF ( - 64, 17 * + + 31 ) col2, ( + - 47 ) - 80 + 80 / 23 * - 20 * - ( + COUNT ( - 85 ) ) AS col2 +---- +-134 +-67 query II rowsort label-7358 SELECT 13 col0, 16 * + CAST ( - 54 AS INTEGER ) AS col2 @@ -38987,8 +39503,11 @@ SELECT ALL - CAST ( - 10 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-72\), Int64\(75\) \* Int64\(97\)\) AS col2" at position 0 and "Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COALESCE ( - 72, 75 * + 97 ) AS col2, + 51 AS col2 +---- +-72 +51 query I rowsort label-7419 SELECT ALL - + 97 - - 33 / + 85 col1 @@ -39211,8 +39730,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 88 AS col2, 33 AS col2 +---- +-88 +33 query I rowsort SELECT ALL + 52 + + + 82 @@ -39406,8 +39928,11 @@ SELECT DISTINCT + + 28 * - - 19 # 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\(\-11\) \* Int64\(\-4\) \+ min\(Int64\(\-11\)\) AS col0" at position 0 and "Int64\(\-58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 11 * + - 4 + MIN ( - 11 ) col0, - 58 AS col0 +---- +-58 +33 query I rowsort label-7500 SELECT ALL + SUM ( - 42 ) * + 52 AS col2 @@ -39461,8 +39986,11 @@ SELECT DISTINCT + ( + - 66 ) / - 4 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 170560 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col0" at position 0 and "Int64\(\-52\) \* \(\- \(\- sum\(Int64\(\-82\)\)\)\) \* Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 10 AS col0, - 52 * ( - - SUM ( ALL - 82 ) ) * 40 col0 +---- +-10 +170560 query I rowsort label-7510 SELECT - CAST ( - 46 AS INTEGER ) + - 13 col0 @@ -39477,8 +40005,11 @@ SELECT - 94 + + 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 AS col2, + 47 AS col2 +---- +47 +79 query I rowsort label-7513 SELECT ALL - 33 + - CAST ( NULL AS INTEGER ) AS col1 @@ -39728,8 +40259,11 @@ NULL # 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 "sum\(Int64\(4\)\) \- \(\- Int64\(\-46\)\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( + 4 ) - - - 46 AS col0, + 39 AS col0 +---- +-42 +39 query I rowsort SELECT DISTINCT + 76 * - + 17 AS col1 @@ -39780,8 +40314,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + ( - COUNT ( * ) ) * + 10 * - 24 AS col0, - 89 / + - 96 AS col0 +---- +0 +240 query I rowsort label-7570 SELECT DISTINCT + 10 / ( + 89 ) AS col2 @@ -39863,8 +40400,11 @@ 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\(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\. +query II valuesort SELECT 98 * 11 - - COUNT ( * ) + 52 - 63 + + + 72 * SUM ( DISTINCT + 85 ) * - COUNT ( DISTINCT 76 ) + ( + - COUNT ( * ) ) * + 74 * - + 13 AS col1, 45 * - - 75 AS col1 +---- +-4090 +3375 query I rowsort label-7586 SELECT ALL - COUNT ( * ) - - + 93 AS col1 @@ -39983,8 +40523,11 @@ NULL # 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\(\-4\) / \(\- Int64\(\-56\)\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 4 / - - 56 AS col2, 30 AS col2 +---- +0 +30 query I rowsort label-7609 SELECT + + MIN ( ALL - 21 ) * - + 81 * + 17 + - 78 AS col2 @@ -40007,8 +40550,11 @@ SELECT ALL - 54 + 21 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 735 # Datafusion - Expected - 262028 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) \* \(\- Int64\(15\)\) AS col0" at position 0 and "min\(DISTINCT Int64\(42\)\) \* Int64\(65\) \* max\(\(\- Int64\(\-96\)\)\) \+ Int64\(\-52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 49 * - + 15 col0, + MIN ( DISTINCT + 42 ) * 65 * + MAX ( - - 96 ) + - 52 AS col0 +---- +262028 +735 query I rowsort label-7613 SELECT 87 + CAST ( + 16 AS INTEGER ) + - 62 - + - 71 / 93 + - 10 AS col0 @@ -40078,8 +40624,11 @@ SELECT COUNT ( * ) + - - 61 + + 43 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, - COUNT ( * ) + + ( + + 43 ) AS col1 +---- +1 +42 query I rowsort label-7627 SELECT DISTINCT + 93 + + 20 - - CAST ( - - 55 AS INTEGER ) * - 8 @@ -40574,8 +41123,11 @@ 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\(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\. +query IR valuesort SELECT DISTINCT + 27 + + + ( COUNT ( * ) ) * 3 AS col2, - 0 / - COUNT ( * ) * + AVG ( DISTINCT 42 ) + - + CAST ( NULL AS FLOAT8 ) / - 55 * - 10 AS col2 +---- +30 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -40977,8 +41529,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) * + - COUNT ( + 41 ) + 87 + - + 87 * - + 21 AS col1, 99 AS col1 +---- +1913 +99 query II rowsort label-7798 SELECT ALL 81 * - 30 + - - COUNT ( 18 ) * - COUNT ( * ) + - 56 + - 75 / + 24, MIN ( + ( - 82 ) ) * - - 12 AS col2 @@ -41182,8 +41737,11 @@ SELECT ALL 76 + - - 95 / + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 44 AS col1, 35 AS col1 +---- +35 +44 query I rowsort label-7836 SELECT ALL + COUNT ( * ) + - 58 * 83 @@ -41250,8 +41808,11 @@ SELECT 49 * - 21 AS col2, + 31 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3705 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(\-95\) AS col0" at position 0 and "Int64\(89\) \- Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 * + - 95 AS col0, ( + 89 ) - + 87 col0 +---- +-3705 +2 query I rowsort SELECT ALL + 92 * NULLIF ( + - 2, 31 ) col1 @@ -41389,8 +41950,11 @@ SELECT ALL COUNT ( * ) - + + 89 + - 15 / - COUNT ( + - 92 ) + - 43 AS col0, MIN # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "Int64\(99\) / Int64\(79\) \* Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 11 AS col1, 99 / 79 * + 27 AS col1 +---- +11 +27 query I rowsort SELECT + 36 + - 66 AS col0 @@ -41485,8 +42049,11 @@ 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\(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\. +query II valuesort 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 +---- +-4420 +-64874 query I rowsort SELECT DISTINCT - - 70 * 7 - - 46 + 41 @@ -41759,8 +42326,11 @@ SELECT ALL + 61 + - + 23 * - 67 * 77 # 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 "count\(Int64\(81\)\) \+ Int64\(19\) AS col0" at position 0 and "\(\- \(\- Int64\(91\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( ALL 81 ) + + 19 AS col0, - ( - + 91 ) col0 +---- +20 +91 query I rowsort label-7947 SELECT ALL 64 + COUNT ( * ) + - 97 AS col2 @@ -42181,8 +42751,11 @@ SELECT MIN ( ALL + + 76 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -107 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \- Int64\(72\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 35 - 72 AS col1, COUNT ( * ) AS col1 +---- +-107 +1 query I rowsort SELECT DISTINCT - 82 * 82 - + 11 * + 20 @@ -42271,8 +42844,12 @@ SELECT ALL 54 * - 92 * - COUNT ( * ) # Datafusion - Expected - -1064 # Datafusion - Expected - 92 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(16\)\) \+ \(\- Int64\(14\)\) \+ CAST\(Int64\(\-47\) AS Int32\) \* Int64\(22\) AS col2" at position 0 and "max\(Int64\(92\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - ( + + 16 ) + - + 14 + + CAST ( - 47 AS INTEGER ) * 22 AS col2, + MAX ( ALL 92 ) * COUNT ( * ) AS col2, + 55 AS col2 +---- +-1064 +55 +92 query I rowsort SELECT DISTINCT + NULLIF ( + 96, 68 ) AS col0 @@ -42849,8 +43426,12 @@ SELECT ALL 61 / + + 19 + + 30 * - 98, + 8 col0 # Datafusion - Expected - -1322 # Datafusion - Expected - 50 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) / coalesce\(\(\- Int64\(\-17\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(7\)\) \+ Int64\(\-83\) \* Int64\(17\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(88\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 16 / + + COALESCE ( - ( - 17 ), - COUNT ( * ) / + 7 ) + + - 83 * + 17 + COUNT ( * ) + 88 * + COUNT ( * ) AS col2, 50 AS col2, 10 +---- +-1322 +10 +50 query I rowsort SELECT + 16 + 3 @@ -43109,8 +43690,11 @@ SELECT DISTINCT + MIN ( ALL + 52 ) * + + 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - 966 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \* Int64\(\-42\) AS col0" at position 0 and "CASE Int64\(\-8\) WHEN Int64\(9\) THEN \(\- Int64\(13\)\) ELSE Int64\(\-83\) END \* \(\- CASE Int64\(\-78\) WHEN Int64\(72\) THEN Int64\(\-49\) END\) \+ Int64\(59\) \+ \(\- Int64\(51\)\) / Int64\(\-81\) \+ \(\- Int64\(19\)\) \* Int64\(50\) \+ Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 23 * - 42 AS col0, CASE - 8 WHEN 9 THEN - + 13 ELSE - 83 END * + - CASE - 78 WHEN + 72 THEN - 49 END + + 59 + - + 51 / + - 81 + - + 19 * 50 + 66 AS col0 +---- +966 +NULL query I rowsort label-8205 SELECT - SUM ( - ( - ( 1 ) ) ) * + 48 + - - 78 - + - 20 * - 14 + 4 / 7 / - ( - + CASE + + COUNT ( * ) WHEN - + 15 + 93 * + 22 THEN - 33 WHEN + + 73 THEN - 43 WHEN + 39 + - 40 THEN - COUNT ( * ) ELSE + 7 END ) * 19 @@ -44140,8 +44724,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 82 / + 43 AS col2, - ( COUNT ( * ) ) AS col2 +---- +-1 +1 query I rowsort label-8402 SELECT - 99 / 58 * - + 69 AS col2 @@ -44305,8 +44892,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 91 AS col2 +---- +1 +91 query I rowsort label-8433 SELECT + CAST ( NULL AS INTEGER ) + - + CASE - - 7 WHEN AVG ( ALL ( - + 59 ) ) * - + 25 * + - 8 * 29 THEN + - 74 END AS col0 @@ -44894,8 +45484,11 @@ SELECT DISTINCT 35 * - ( + - 47 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 97 AS col2, + 5 AS col2 +---- +5 +97 query I rowsort SELECT 33 + + + 3 @@ -45742,8 +46335,11 @@ SELECT + 84 + - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 6887 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "Int64\(\-97\) \* Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 AS col2, - 97 * - 71 AS col2 +---- +2 +6887 query II rowsort label-8709 SELECT DISTINCT + 89 AS col1, + COUNT ( * ) AS col2 @@ -46628,8 +47224,11 @@ 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\(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\. +query II valuesort 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 +---- +10 +29 query II rowsort label-8881 SELECT ALL 12 AS col2, - ( - CAST ( + - 74 AS INTEGER ) ) + 97 AS col1 @@ -46707,8 +47306,11 @@ SELECT ALL + + SUM ( DISTINCT - 78 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col1" at position 0 and "Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 40 AS col1, - 27 AS col1 +---- +-27 +-40 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -46721,8 +47323,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 51 col1, + 75 AS col1 +---- +-51 +75 query II rowsort label-8898 SELECT + - COUNT ( * ) AS col2, + 96 @@ -46828,8 +47433,11 @@ 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 "Int64\(93\) \+ CAST\(NULL AS Float64\) AS col2" at position 0 and "Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL 93 + CAST ( NULL AS FLOAT8 ) AS col2, + 83 col2 +---- +83 +NULL query I rowsort SELECT - 69 * + 97 @@ -46901,8 +47509,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 - - + 59 AS col2, 87 / - COUNT ( * ) AS col2 +---- +-87 +80 query I rowsort label-8932 SELECT + 59 * + COUNT ( * ) * + COUNT ( * ) @@ -47043,8 +47654,11 @@ SELECT 31 + + 57 + + 79 * - 56 + - - 65 + COALESCE ( + 89, ( + 22 ) * + - COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(14\) \+ Int64\(73\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 AS col0, + COUNT ( * ) * + + 14 + + 73 * + CAST ( NULL AS INTEGER ) AS col0 +---- +25 +NULL query I rowsort label-8959 SELECT 40 + CASE + + ( - COUNT ( * ) ) WHEN - + 19 THEN + 18 WHEN + - 89 * + COUNT ( * ) * + 31 * - + 46 / 77 + - ( - 26 ) THEN NULL END AS col2 @@ -47115,8 +47729,11 @@ SELECT DISTINCT - + ( - 10 ) AS col0 # 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\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 32 AS col2, 31 AS col2 +---- +-32 +31 query II rowsort SELECT ALL - 48, 43 + - 29 AS col0 @@ -47208,8 +47825,11 @@ SELECT 41 + + 50 * + + ( + 99 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 63 AS col0, COUNT ( * ) AS col0 +---- +-63 +1 query I rowsort SELECT DISTINCT NULLIF ( + + 29, - 73 ) + + 20 @@ -47264,8 +47884,11 @@ SELECT - 41 - + + 40 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col1" at position 0 and "Int64\(\-71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 57 col1, + ( - 71 ) AS col1 +---- +-71 +57 query I rowsort SELECT - 54 - + 64 @@ -47854,8 +48477,11 @@ SELECT ALL 59 * - 13 + - 14 + + - 26 * - 50 + + 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - -223684 # Datafusion - Expected - 2139 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(54\)\) \* \(\- Int64\(74\)\) \* Int64\(\-56\) \- Int64\(\-92\) AS col2" at position 0 and "Int64\(23\) \* Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 54 * + - ( 74 ) * - 56 - - 92 AS col2, 23 * + 93 AS col2 +---- +-223684 +2139 query I rowsort label-9115 SELECT ALL + + 57 * - + 90 + + 3 / + + COUNT ( * ) AS col2 @@ -48064,8 +48690,11 @@ SELECT DISTINCT 44 * - - 72 + + + 56 * + 98 * + 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 5893 -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\) \* \(\- Int64\(\-71\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 22 AS col2, + 83 * - - 71 AS col2 +---- +22 +5893 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -48106,8 +48735,11 @@ SELECT - + COUNT ( DISTINCT + 15 ) * + 11 + 17 AS col1, - 91 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 53 AS col0, 52 AS col0 +---- +52 +53 query I rowsort label-9163 SELECT + CAST ( NULL AS INTEGER ) * MIN ( ALL + + 13 ) AS col1 @@ -48597,8 +49229,11 @@ SELECT MIN ( ALL 64 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) / \(\- coalesce\(Int64\(70\), Int64\(54\), Int64\(74\) \* Int64\(35\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 34 / - COALESCE ( 70, 54, 74 * 35 ) col1, COUNT ( * ) col1 +---- +0 +1 query I rowsort SELECT - 45 * - 81 @@ -48881,8 +49516,11 @@ SELECT ALL - + 23 + + 89 + 81 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 199 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col2" at position 0 and "Int64\(90\) \+ Int64\(69\) \+ Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 59 AS col2, + 90 + 69 + + + 40 col2 +---- +199 +59 query II rowsort SELECT 77, 64 col0 @@ -48925,8 +49563,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - COUNT ( * ) AS col2, + ( + - 41 ) AS col2 +---- +-41 +1 query I rowsort SELECT ALL 82 * - 21 AS col1 @@ -48963,8 +49604,11 @@ SELECT ALL 46 * - 37 * - NULLIF ( + 46, - 2 * + 40 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) / \(\- Int64\(\-99\)\) AS col1" at position 0 and "Int64\(\-95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 / - - 99 AS col1, - 95 AS col1 +---- +-95 +0 query I rowsort SELECT 24 * - 58 + + + 66 @@ -49154,8 +49798,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - NULLIF ( - 19, - COUNT ( * ) ) AS col2, - 85 * - SUM ( - + 67 ) AS col2 +---- +-5695 +19 query I rowsort label-9362 SELECT - + CAST ( + - COALESCE ( 22, 33, + + 39 ) AS INTEGER ) @@ -49488,8 +50135,11 @@ SELECT ALL - ( ( - 36 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - -339917 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(5\) AS Int32\) \+ Int64\(\-74\) AS col2" at position 0 and "Int64\(18\) \+ Int64\(\-53\) \+ \(\- Int64\(\-57\)\) \- Int64\(\-59\) \* Int64\(\-80\) \* Int64\(72\) \+ \(\- Int64\(99\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + COUNT ( * ) ) + + CAST ( 5 AS INTEGER ) + + - 74 AS col2, 18 + - 53 + - - 57 - - 59 * - 80 * + 72 + - + 99 AS col2 +---- +-339917 +-68 query I rowsort SELECT DISTINCT - ( + 90 ) * + + 71 + + 91 AS col0 @@ -49499,8 +50149,11 @@ SELECT DISTINCT - ( + 90 ) * + + 71 + + 91 AS col0 # 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 col0" at position 0 and "Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 36 col0, - 1 AS col0 +---- +-1 +-36 query I rowsort label-9428 SELECT CAST ( + + 50 AS INTEGER ) * 10 AS col2 @@ -49510,8 +50163,11 @@ SELECT CAST ( + + 50 AS INTEGER ) * 10 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-12\) \+ Int64\(\-2\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, - 12 + - 2 + - + COUNT ( * ) AS col1 +---- +-15 +1 query II rowsort SELECT 23 AS col1, - 14 AS col0 @@ -49647,8 +50303,12 @@ SELECT + 86 * - 26 * + + 86 AS col1 # Datafusion - Expected - 67 # Datafusion - Expected - 43 # 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 "Int64\(24\) \- \(\- Int64\(98\)\) / \(\- CAST\(NULL AS Float64\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort SELECT ALL + 67 col0, ( + - 26 ) + 69, 24 - - + ( + + 98 ) / - CAST ( NULL AS FLOAT8 ) AS col0 +---- +43 +67 +NULL query II rowsort label-9455 SELECT ALL + 51 * COUNT ( DISTINCT - 7 ) - - 80 * + 47 * COUNT ( * ) - 15 * 63 + + - 81 AS col2, 97 * COUNT ( + 42 ) @@ -49886,8 +50546,11 @@ SELECT 25 * - 74 + 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2253 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* nullif\(Int64\(\-74\), nullif\(\(\- Int64\(\-22\)\), Int64\(\-25\) \* Int64\(\-19\) \* Int64\(52\)\) \+ Int64\(52\) \* CASE \(\- Int64\(\-52\)\) WHEN Int64\(55\) THEN Int64\(46\) ELSE count\(Int64\(1\)\) AS count\(\*\) END\) \+ \(\- min\(Int64\(33\)\)\) AS col1" at position 0 and "Int64\(30\) \+ CAST\(Int64\(\-8\) AS Float64\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-20\) \* \(\- nullif\(Int64\(11\), Int64\(92\) \- CAST\(NULL AS Int32\) \+ Int64\(97\) \* Int64\(85\)\)\) \+ Int64\(72\) \* Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +-2253 +NULL query I rowsort label-9500 SELECT - + 56 / + + 18 @@ -50124,8 +50787,12 @@ SELECT 32 - 10 AS col0 # Datafusion - Expected - 66 # Datafusion - Expected - -45 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col0" at position 1 and "Int64\(4\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 42 + - COUNT ( DISTINCT 17 ) + - - 25 AS col1, - 45 AS col0, 4 AS col0 +---- +-45 +4 +66 query I rowsort label-9546 SELECT ALL + ( - - 22 ) - CASE + 34 WHEN - 77 THEN NULL ELSE + ( - 22 ) END - 70 + - SUM ( + 57 ) + 47 AS col0 @@ -50273,8 +50940,11 @@ 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\(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\. +query II valuesort 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 +---- +-33 +0 query I rowsort SELECT ALL NULLIF ( - 33, - 85 ) - - 17 * 26 AS col1 @@ -50348,8 +51018,11 @@ SELECT + 10 - + ( - 68 ) + + 40 + + ( + COUNT ( * ) ) - - SUM ( - 8 ) * + COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "Int64\(\-70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 2 col0, - 70 col0 +---- +-70 +2 query I rowsort label-9587 SELECT + 86 + + 40 + - COUNT ( * ) @@ -50656,8 +51329,12 @@ SELECT ALL + CAST ( + 61 AS INTEGER ) + - 90 # Datafusion - Expected - 68 # Datafusion - Expected - 114816 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 68 col0, 82 * 28 / 87 * + + CAST ( + 48 AS INTEGER ) * 92, + 38 AS col0 +---- +114816 +38 +68 query II rowsort label-9645 SELECT 56 / + + CAST ( NULL AS INTEGER ) + + 54 - + 29, CAST ( NULL AS INTEGER ) * + 16 col2 @@ -50765,8 +51442,11 @@ SELECT DISTINCT + 36 + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) \+ \(\- Int64\(\-24\)\) AS col1" at position 0 and "Int64\(\-4\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 82 + - - 24 AS col1, - 4 / COUNT ( * ) AS col1 +---- +-4 +-58 query I rowsort SELECT 66 * + 16 * 41 col1 @@ -51258,8 +51938,11 @@ SELECT + COUNT ( * ) + - + 94 * - 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1258 # Datafusion - Expected - 628866 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(17\) AS Int32\) \* Int64\(74\) AS col2" at position 0 and "max\(Int64\(98\)\) \* Int64\(93\) \* Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + 17 AS INTEGER ) * 74 AS col2, MAX ( + + 98 ) * 93 * + 69 col2 +---- +1258 +628866 query I rowsort label-9761 SELECT 17 + 87 + - COUNT ( * ) * + 99 + + 44 * 43 AS col2 @@ -51477,8 +52160,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 21 AS col0, 63 + - COUNT ( * ) AS col0 +---- +21 +62 query I rowsort SELECT 80 * + 55 AS col2 @@ -51709,8 +52395,11 @@ SELECT + 61 / - - 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(86\)\) \+ Int64\(66\) \+ Int64\(\-11\) AS col0" at position 0 and "Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 86 + 66 + + - 11 AS col0, ( - 60 ) AS col0 +---- +-31 +-60 query I rowsort SELECT + + 75 * 63 AS col2 @@ -51751,8 +52440,11 @@ 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 "Int64\(52\) / Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 94 col0, 52 / 59 AS col0 +---- +-94 +0 query II rowsort SELECT + + 58, + 52 AS col1 @@ -52088,8 +52780,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, 45 AS col2 +---- +-1 +45 query II rowsort SELECT 4 AS col0, + 26 + - 48 @@ -52237,8 +52932,11 @@ 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\(1\)\) AS count\(\*\)\) \* \(\- Int64\(82\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 0 AS col1, - COUNT ( * ) * - + 82 AS col1 +---- +0 +82 query II rowsort label-9947 SELECT ALL + ( + 41 ) AS col1, + CAST ( - + 30 AS INTEGER ) @@ -52338,8 +53036,11 @@ SELECT + 96 + + 57 + - - 20 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ Int64\(74\) AS col2" at position 0 and "Int64\(71\) \+ Int64\(\-73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 2 + + + 74 AS col2, 71 + - 73 AS col2 +---- +-2 +76 query I rowsort label-9966 SELECT + 37 * + CASE + - 61 WHEN 75 THEN NULL WHEN 40 * - 1 + + COUNT ( * ) + + 55 + - + 58 / 54 THEN COUNT ( * ) END + + 33 AS col1 diff --git a/data/sqlite/random/expr/slt_good_22.slt b/data/sqlite/random/expr/slt_good_22.slt index e5f6d77..a150c3b 100644 --- a/data/sqlite/random/expr/slt_good_22.slt +++ b/data/sqlite/random/expr/slt_good_22.slt @@ -114,8 +114,11 @@ SELECT DISTINCT + COALESCE ( + 7, + + 56 * - CAST ( NULL AS INTEGER ) + 46 - CAS # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col2" at position 0 and "count\(Int64\(18\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 29 col2, COUNT ( + 18 ) col2 +---- +-29 +1 query I rowsort SELECT ALL 57 + - 19 + 18 AS col1 @@ -206,8 +209,11 @@ SELECT - MIN ( + CAST ( - + 90 AS INTEGER ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(52\)\) AS col2" at position 0 and "coalesce\(Int64\(61\), \(\- Int64\(29\)\) \* Int64\(\-27\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + ( + + 52 ) col2, COALESCE ( + 61, - + 29 * - 27 ) AS col2 +---- +-52 +61 query II rowsort SELECT + 61 * + + 34 AS col1, 41 + - 98 @@ -376,8 +382,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 22 col2, + MIN ( + 81 ) / - - ( COUNT ( * ) ) AS col2 +---- +-22 +81 query I rowsort label-65 SELECT - COUNT ( DISTINCT + 71 ) + - - 33 @@ -443,8 +452,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 39 / 34 AS col1, COUNT ( * ) + - 43 AS col1 +---- +-42 +1 query I rowsort SELECT + 10 * + 88 * + - 33 AS col1 @@ -469,8 +481,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col1" at position 0 and "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 81 AS col1, 58 AS col1 +---- +58 +81 query I rowsort SELECT 21 * - 46 + + + 39 * + 53 + + 73 AS col2 @@ -922,8 +937,11 @@ SELECT ALL - + 47 * 11 + - 61 + 55 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col0" at position 0 and "nullif\(Int64\(57\), coalesce\(Int64\(33\), CASE CAST\(NULL AS Int32\) WHEN Int64\(\-91\) THEN Int64\(\-72\) \+ Int64\(\-3\) \* \(\- Int64\(86\)\) \- Int64\(89\) END \* \(\- Int64\(\-52\)\) \- Int64\(\-18\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(56\) \* count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(\(\- Int64\(\-51\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +57 +85 query I rowsort SELECT + - ( + 62 ) + - 61 @@ -968,8 +986,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) / - 22 AS col1, 24 AS col1 +---- +0 +24 query I rowsort SELECT ALL ( + 7 ) col1 @@ -1762,8 +1783,11 @@ SELECT ALL + - 78 + 92 # 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\(\-8\)\) AS col2" at position 0 and "Int64\(6\) \+ Int64\(49\) / Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 8 AS col2, 6 + + 49 / 52 AS col2 +---- +6 +8 query I rowsort SELECT ALL 50 * 86 col1 @@ -1921,8 +1945,11 @@ SELECT 89 / 58 * + - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \+ Int64\(26\) AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 34 + + 26 AS col2, 31 AS col2 +---- +-8 +31 query I rowsort SELECT DISTINCT - - 96 + 11 @@ -2080,8 +2107,11 @@ SELECT ALL + 38 + + 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - -680 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col1" at position 0 and "Int64\(40\) \* Int64\(\-17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 49 AS col1, 40 * - 17 AS col1 +---- +-49 +-680 query I rowsort SELECT 4 + + 58 @@ -2214,8 +2244,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 41 col0, COUNT ( * ) * ( + + 11 ) AS col0 +---- +11 +41 query II rowsort label-421 SELECT ALL ( + 35 ) * - COUNT ( * ) + + 22 AS col1, + COUNT ( * ) @@ -2437,8 +2470,11 @@ SELECT ALL 55 / 58 + 9 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "Int64\(\-54\) \+ Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 7 ) col0, - 54 + + 98 AS col0 +---- +44 +7 query I rowsort SELECT - ( - + 61 ) * - - 4 * - 64 @@ -2833,8 +2869,11 @@ SELECT DISTINCT - + 65 * - 97 + + 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-64\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 64 * COUNT ( * ) AS col0, 63 col0 +---- +63 +64 query I rowsort SELECT - ( + ( - 44 ) ) + 37 col1 @@ -2960,8 +2999,11 @@ SELECT + 26 - - + 50 AS col2 # 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 "CASE Int64\(\-12\) WHEN Int64\(19\) THEN NULL WHEN Int64\(\-19\) \+ \(\- Int64\(60\)\) THEN Int64\(51\) END AS col1" at position 0 and "count\(DISTINCT \(\- Int64\(\-6\)\)\) \* Int64\(29\) / Int64\(\-45\) \* Int64\(\-50\) \+ Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CASE - 12 WHEN + + 19 THEN NULL WHEN - 19 + - + 60 THEN + + 51 END AS col1, COUNT ( DISTINCT - - 6 ) * 29 / + - 45 * - 50 + 70 AS col1 +---- +70 +NULL query I rowsort SELECT ALL 8 * + + COALESCE ( + 9, - 62, - 27 * + 70 * + 55 ) @@ -3046,8 +3088,11 @@ SELECT - + 15 + - MAX ( + - 6 ), - 17 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col0" at position 0 and "nullif\(Int64\(53\), \(\- max\(DISTINCT \(\- Int64\(59\)\)\)\) \* Int64\(\-58\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 AS col0, NULLIF ( 53, - + MAX ( DISTINCT - + 59 ) * - 58 ) AS col0 +---- +53 +89 query I rowsort label-581 SELECT ALL CASE + 21 WHEN - CASE - COUNT ( * ) WHEN + - COUNT ( - - 80 ) THEN 36 / + 90 END THEN - + 67 END @@ -3072,8 +3117,11 @@ SELECT - 92 + 11 * + + 32 AS col1 # 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 "Int64\(\-3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 10 AS col0, - 3 AS col0 +---- +-3 +10 query I rowsort label-586 SELECT DISTINCT MAX ( DISTINCT - 31 ) * - + 33 AS col0 @@ -3095,8 +3143,11 @@ 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\(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\. +query II valuesort SELECT - 19 AS col0, - CASE + COUNT ( * ) WHEN - 92 THEN + 12 END AS col0 +---- +-19 +NULL query II rowsort label-590 SELECT ALL CAST ( NULL AS INTEGER ) AS col1, 78 AS col2 @@ -3200,8 +3251,11 @@ 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\(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\. +query II valuesort 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 +---- +-49 +NULL query I rowsort label-610 SELECT ALL - 99 - - COUNT ( * ) AS col0 @@ -3718,8 +3772,11 @@ SELECT 67 * + + 60 + 54 AS col2, 56 * 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2262 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* max\(Int64\(\-87\)\) AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 * + MAX ( ALL + - 87 ) col0, 5 AS col0 +---- +-2262 +5 query I rowsort label-709 SELECT ALL + COUNT ( * ) * - - 80 * + - COALESCE ( 38, - COALESCE ( - 14, + 7 * - + 82 * + 97 + - - 44 + - 88 * + COUNT ( + 35 ) * - 57 ), ( 29 ) ) @@ -3992,8 +4049,11 @@ SELECT 63 + - 29 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - -4761 -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\) \+ Int64\(54\) \- Int64\(67\) \* max\(Int64\(73\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 50 AS col2, + 76 + 54 - 67 * + MAX ( 73 ) AS col2 +---- +-4761 +-50 query I rowsort label-762 SELECT ALL - + 0 + 87 * + MAX ( DISTINCT 68 ) + - NULLIF ( CAST ( - 63 AS INTEGER ), + 90 ) / 51 + + + MAX ( + + 44 ) col1 @@ -4076,8 +4136,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -7662 # Datafusion - Expected - 577 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \* \(\- Int64\(\-94\)\) \+ Int64\(\-48\) AS col1" at position 0 and "Int64\(85\) \- Int64\(77\) \+ Int64\(16\) \* Int64\(41\) \- Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 * - - 94 + - 48 AS col1, + 85 - 77 + 16 * 41 - 87 AS col1 +---- +-7662 +577 query I rowsort SELECT + 48 + + - 51 @@ -4334,8 +4397,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 33 AS col1, 60 AS col1 +---- +33 +60 query II rowsort SELECT 63 col1, 46 @@ -4645,8 +4711,11 @@ SELECT 96 * + 19 * 25 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 "\(\- CAST\(NULL AS Float64\)\) \* \(\- Int64\(1\)\) \+ Int64\(\-65\) AS col0" at position 0 and "Int64\(79\) / Int64\(\-35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - CAST ( NULL AS FLOAT8 ) * - + 1 + - 65 AS col0, 79 / - 35 AS col0 +---- +-2 +NULL query I rowsort label-887 SELECT 58 + - NULLIF ( 44, - 10 ) + + COUNT ( * ) @@ -5073,8 +5142,11 @@ SELECT ALL - 95 + 99 col1 # 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 "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 57 AS col0, + 38 AS col0 +---- +-57 +38 query II rowsort label-969 SELECT ALL + 32 + - - SUM ( + + 2 ) col2, - 23 @@ -5570,8 +5642,11 @@ SELECT - 15 / SUM ( DISTINCT 79 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2236 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \* nullif\(Int64\(\-86\), sum\(DISTINCT Int64\(\-46\)\)\) AS col2" at position 0 and "\(\- coalesce\(Int64\(\-59\), Int64\(\-24\) / Int64\(\-7\) \* Int64\(\-18\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 26 * + NULLIF ( - 86, + ( + + SUM ( DISTINCT - 46 ) ) ) AS col2, - ( COALESCE ( - 59, - 24 / - 7 * - 18 ) ) AS col2 +---- +2236 +59 query I rowsort SELECT - 7 * + + 72 + - 68 AS col1 @@ -5693,8 +5768,11 @@ SELECT 17, - 70 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-93\) \+ \(\- Int64\(37\)\) \+ \(\- Int64\(41\)\) \* count\(DISTINCT \(\- CAST\(nullif\(Int64\(35\), Int64\(90\)\) AS Int32\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CASE Int64\(\-38\) WHEN Int64\(\-69\) THEN NULL ELSE Int64\(31\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +31 +45 query II rowsort label-1087 SELECT ALL 45 AS col2, COUNT ( * ) col1 @@ -5780,8 +5858,12 @@ SELECT ALL + COUNT ( * ) + 83 * + 19 + - 14 # Datafusion - Expected - -20 # Datafusion - Expected - 81 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \+ Int64\(\-63\) AS col1" at position 0 and "Int64\(9\) \+ \(\- Int64\(\-72\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 43 + + ( - 63 ) AS col1, 9 + - - 72 AS col1, - + COALESCE ( + ( + + MIN ( - 15 ) ), - 95 + - - 22, + - 6 * + + 59 ) AS col1 +---- +-20 +15 +81 query I rowsort label-1103 SELECT DISTINCT + CAST ( - - MAX ( - 45 ) AS INTEGER ) + + - 5 @@ -5796,8 +5878,11 @@ SELECT 7 * - 14 - - COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(94\)\) AS col2" at position 0 and "CASE \(\- Int64\(61\)\) WHEN \(\- Int64\(\-73\)\) THEN Int64\(88\) END / count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( 94 ) AS col2, + CASE - + 61 WHEN - - 73 THEN + ( 88 ) END / COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 +---- +-94 +NULL query I rowsort label-1106 SELECT DISTINCT + SUM ( DISTINCT - - ( - 60 ) ) + + 78 AS col2 @@ -5918,8 +6003,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ Int64\(37\) \+ Int64\(3\) \+ \(\- \(\- Int64\(\-58\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* nullif\(CASE Int64\(26\) WHEN Int64\(81\) THEN NULL ELSE \(\- Int64\(95\)\) END, Int64\(\-68\)\) / Int64\(28\) AS col1" at position 0 and "CAST\(Int64\(98\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +76 +98 query I rowsort label-1129 SELECT + COUNT ( ALL - - 56 ) @@ -6048,8 +6136,11 @@ SELECT DISTINCT - 96 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 157 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(64\), CAST\(Int64\(61\) AS Int32\) / Int64\(10\) \+ \(\- min\(\(\- Int64\(\-66\)\)\)\)\) \+ Int64\(4\) AS col1" at position 0 and "Int64\(87\) \- Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL NULLIF ( 64, + CAST ( 61 AS INTEGER ) / 10 + - + MIN ( - ( + - 66 ) ) ) + 4 col1, + 87 - + - 70 AS col1 +---- +157 +68 query I rowsort label-1154 SELECT ALL 74 + - 5 * - - COUNT ( * ) @@ -6381,8 +6472,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 195544 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col2" at position 0 and "Int64\(97\) \* min\(Int64\(96\)\) \* Int64\(21\) \- Int64\(\-36\) \- Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 3 AS col2, + 97 * + MIN ( ALL + + 96 ) * 21 - - 36 - ( + 44 ) AS col2 +---- +195544 +3 query I rowsort label-1218 SELECT ALL 32 * - + 72 * + NULLIF ( + ( - CAST ( COALESCE ( + - 62, - - 16 * + 21 ) AS INTEGER ) ), - + ( + COALESCE ( - 23, + 78 * - 93 ) ) * + 6 * + + 54 / 29 - + + 31 * - 54 + + 42 * + - 84 * + 24 ) col2 @@ -6830,8 +6924,11 @@ SELECT ALL - 42 * 71 / - COUNT ( * ) + + + MAX ( 56 ) * + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-55\)\) AS col1" at position 0 and "Int64\(25\) \* Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 55 AS col1, + 25 * 5 AS col1 +---- +125 +55 query I rowsort label-1304 SELECT ALL + CASE - 53 WHEN + - CAST ( - + 68 AS INTEGER ) / + - 29 * - + 94 THEN + CAST ( NULL AS INTEGER ) ELSE 28 END - - ( - 48 ) @@ -7131,8 +7228,11 @@ SELECT + NULLIF ( + - CAST ( 85 AS INTEGER ), + 95 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "Int64\(5\) \* CAST\(NULL AS Int32\) \+ Int64\(\-5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 AS col2, ( + 5 ) * + CAST ( NULL AS INTEGER ) + - 5 AS col2 +---- +86 +NULL query II rowsort SELECT ALL + + 95 AS col2, 24 AS col0 @@ -7456,8 +7556,11 @@ SELECT DISTINCT 49 * - + 34 - 75 + + 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 129 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ Int64\(81\) AS col2" at position 0 and "nullif\(\(\- \(\- CAST\(NULL AS Int32\)\)\), Int64\(57\) / Int64\(20\)\) \+ Int64\(97\) \* Int64\(12\) \- count\(DISTINCT CAST\(CAST\(NULL AS Int32\) AS Int32\)\) \* \(\- Int64\(14\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 + 81 AS col2, NULLIF ( - - CAST ( NULL AS INTEGER ), + + 57 / + 20 ) + + 97 * + 12 - COUNT ( DISTINCT + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) * - + 14 AS col2 +---- +129 +NULL query II rowsort SELECT + ( - 49 ), 19 AS col0 @@ -7489,8 +7592,11 @@ SELECT ALL - COUNT ( * ) - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - -5313 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \+ Int64\(\-5\) AS col2" at position 0 and "Int64\(69\) \* \(\- Int64\(77\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 + - 5 AS col2, + 69 * - + 77 AS col2 +---- +-5313 +19 query I rowsort label-1428 SELECT DISTINCT ( - + CAST ( - 55 AS INTEGER ) ) @@ -7540,8 +7646,11 @@ 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\(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\. +query II valuesort SELECT ALL - - 26 + 87 - 52 col2, - COUNT ( * ) / - 3 + - + COUNT ( * ) + + - 54 * - - 85 * - - 68 + + 16 * - COALESCE ( ( - 93 ), - - 47, - - 47 ) * - 53 * - 18 AS col2 +---- +1107431 +61 query I rowsort label-1438 SELECT ALL + + COUNT ( * ) + 19 - + - 90 * - + 28 AS col1 @@ -7971,8 +8080,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 79 + + + ( 93 ) col2, - 66 - - ( + + 50 ) - - COUNT ( * ) AS col2 +---- +-15 +172 query I rowsort label-1520 SELECT - + CAST ( - + MAX ( ALL + + 47 ) AS INTEGER ) * - 1 AS col1 @@ -8035,8 +8147,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col1" at position 0 and "coalesce\(Int64\(61\), Int64\(\-12\), sum\(Int64\(63\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 AS col1, + COALESCE ( 61, - 12, SUM ( + + 63 ) ) AS col1 +---- +-58 +61 query I rowsort SELECT 77 * + 7 AS col1 @@ -8209,8 +8324,11 @@ SELECT 41 + - 47 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 149 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "Int64\(91\) \+ Int64\(\-8\) \- Int64\(\-2\) \+ Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 96 AS col2, 91 + - 8 - - 2 + 64 AS col2 +---- +149 +96 query I rowsort SELECT ALL - + 0 * + - 73 AS col0 @@ -8263,8 +8381,12 @@ SELECT 13 * + - 7 AS col0, 58 + + 78 AS col1 # Datafusion - Expected - 84 # Datafusion - Expected - 4690 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* max\(Int64\(70\)\) AS col1" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(count\(Int64\(71\)\) AS Int32\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 83 - - COUNT ( * ), + 67 * + MAX ( 70 ) AS col1, COUNT ( * ) - + - CAST ( + COUNT ( ALL + 71 ) AS INTEGER ) AS col1 +---- +2 +4690 +84 query II rowsort SELECT ALL 31 + + 75, - 99 * - 26 AS col0 @@ -8374,8 +8496,11 @@ SELECT DISTINCT + + 93 / 12, 24 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2016 # Datafusion - Expected - 148 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* Int64\(21\) AS col2" at position 0 and "Int64\(96\) \+ Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 96 * + + 21 AS col2, 96 + + 52 AS col2 +---- +148 +2016 query I rowsort label-1595 SELECT ALL + 58 * + SUM ( DISTINCT - 98 ) + - 67 @@ -8471,8 +8596,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - COUNT ( * ) col0, 68 col0 +---- +-1 +68 query I rowsort label-1613 SELECT + 82 + COUNT ( * ) * - 60 + + + 68 @@ -8955,8 +9083,11 @@ SELECT ALL 18 * 63 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - -957 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col0" at position 0 and "Int64\(29\) \* Int64\(\-33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 72 col0, 29 * - 33 AS col0 +---- +-957 +72 query I rowsort SELECT 47 * - - 27 @@ -8966,8 +9097,11 @@ SELECT 47 * - - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col2, 81 AS col2 +---- +1 +81 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -8991,8 +9125,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-41\)\) AS col0" at position 0 and "Int64\(66\) \- CAST\(NULL AS Int32\) \+ Int64\(90\) \* \(\- Int64\(1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 41 AS col0, 66 - CAST ( NULL AS INTEGER ) + 90 * - + ( 1 ) AS col0 +---- +41 +NULL query I rowsort label-1711 SELECT + 66 * CASE - + ( ( - ( 84 ) ) ) WHEN - 81 THEN - CAST ( NULL AS INTEGER ) * - - 44 + 83 + - 2 - - 82 * - + COUNT ( * ) * - COUNT ( * ) END @@ -9207,8 +9344,11 @@ SELECT DISTINCT + NULLIF ( 95, - CAST ( NULL AS INTEGER ) ) * + ( - 81 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 110 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) / Int64\(12\) \- \(\- Int64\(90\)\) \+ Int64\(13\) AS col2" at position 0 and "Int64\(92\) \+ \(\- Int64\(\-71\)\) / Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 86 / + + ( + 12 ) - - ( 90 ) + 13 col2, 92 + - - 71 / + 44 AS col2 +---- +110 +93 query I rowsort SELECT - 97 * NULLIF ( 41, 42 ) @@ -9409,8 +9549,11 @@ SELECT ALL - MAX ( - + 10 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ \(\- Int64\(6\)\) AS col0" at position 0 and "count\(Int64\(46\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) + - + ( ( 6 ) ) col0, COUNT ( 46 ) AS col0 +---- +1 +NULL query I rowsort SELECT 31 + - 9 AS col0 @@ -10437,8 +10580,11 @@ SELECT MAX ( DISTINCT - 34 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-40\)\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - + ( - 40 ) ) AS col1, 2 col1 +---- +2 +40 query I rowsort label-1993 SELECT ALL COUNT ( - 70 ) * - 10 - + + CASE 9 WHEN AVG ( ALL - 70 ) / - COUNT ( * ) THEN NULL WHEN - 72 + 20 * + CAST ( + 48 + + 26 AS INTEGER ) THEN NULLIF ( 34, COUNT ( - ( + CAST ( ( 95 ) AS INTEGER ) ) ) ) ELSE 26 END AS col2 @@ -10691,8 +10837,12 @@ SELECT ALL 82 + + + COALESCE ( - ( - 12 ), + - CAST ( NULL AS INTEGER ) * + 31 ) # Datafusion - Expected - -16 # Datafusion - Expected - 6 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 16 AS col2, + 6 AS col2, NULLIF ( 11, 3 + ( 13 ) ) AS col1 +---- +-16 +11 +6 query I rowsort SELECT ALL - 91 + + 87 @@ -10749,8 +10899,11 @@ SELECT + - 24 AS col2, 97 / - + 17 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 83 AS col2, 81 AS col2 +---- +-83 +81 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -10865,8 +11018,11 @@ SELECT COUNT ( * ) * + + 78 * 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(7\)\) / Int64\(86\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MAX ( + 7 ) / ( + 86 ) + + - CAST ( NULL AS INTEGER ) AS col1, 94 AS col1 +---- +94 +NULL query I rowsort label-2074 SELECT DISTINCT + - 13 - + 9 - + MAX ( + ( 97 ) ) * + + NULLIF ( 2, 6 * 92 ) * 8 AS col2 @@ -11169,8 +11325,11 @@ 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\(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\. +query II valuesort 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 +---- +82 +NULL query I rowsort label-2133 SELECT + 18 * SUM ( - + 62 ) AS col0 @@ -11450,8 +11609,11 @@ SELECT - MIN ( - 10 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -7128 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(\-99\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 * ( - 99 ) col2, + CAST ( NULL AS INTEGER ) AS col2 +---- +-7128 +NULL query I rowsort SELECT - 98 * + 14 + - 92 AS col2 @@ -11698,8 +11860,11 @@ SELECT DISTINCT 46 * 81 + - 23 + + COUNT ( - + 65 ) + + + COALESCE ( - 73, + 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* \(\- count\(DISTINCT Int64\(\-71\)\)\) \+ Int64\(91\) AS col0" at position 0 and "Int64\(84\) \+ \(\- Int64\(64\)\) / Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( + 95 ) * - + COUNT ( DISTINCT + - 71 ) + + 91 AS col0, 84 + - + 64 / + 11 AS col0 +---- +-4 +79 query I rowsort label-2234 SELECT + CASE + + CAST ( + 30 AS INTEGER ) WHEN - + 77 + + + ( + COUNT ( * ) ) THEN - 41 + 36 + + - 75 + - - ( - ( + + 63 ) ) END + 79 AS col1 @@ -12182,8 +12347,11 @@ SELECT DISTINCT + COUNT ( * ) * - 58 + - 50 - - 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col0" at position 0 and "Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 62 AS col0, - 10 AS col0 +---- +-10 +62 query II rowsort label-2326 SELECT + 24, - 26 / - + 88 col0 @@ -12529,8 +12697,11 @@ SELECT ALL - - ( + - 11 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \+ Int64\(47\) AS col1" at position 0 and "Int64\(\-30\) \+ Int64\(\-49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 70 + + 47 col1, - 30 + - 49 AS col1 +---- +-23 +-79 query II rowsort label-2392 SELECT 56 * + + COUNT ( * ) * 53 - + ( - 22 ) + + NULLIF ( 30, + 50 ) AS col2, + COUNT ( * ) AS col0 @@ -12563,8 +12734,11 @@ SELECT ALL - 83 col1, - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \- \(\- sum\(\(\- Int64\(\-2\)\)\)\) AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 7 - - SUM ( ALL - - 2 ) AS col2, 74 AS col2 +---- +74 +9 query I rowsort label-2398 SELECT - NULLIF ( + 30, CASE 87 WHEN + 49 THEN NULL ELSE MAX ( - 30 ) END ) * - 82 * - 64 + 68 @@ -12870,8 +13044,11 @@ SELECT ALL + 29 - - - 2 AS col2, - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -1504 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(35\)\) AS col1" at position 0 and "Int64\(16\) \* \(\- nullif\(Int64\(94\), Int64\(90\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MAX ( 35 ) col1, + 16 * - NULLIF ( 94, + 90 ) AS col1 +---- +-1504 +35 query I rowsort label-2456 SELECT - 23 * COUNT ( - + 51 ) AS col2 @@ -13147,8 +13324,11 @@ SELECT 53 * 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col2" at position 0 and "Int64\(15\) \- Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 AS col2, + 15 - + + 20 AS col2 +---- +-5 +25 query I rowsort label-2510 SELECT DISTINCT + 27 + + COUNT ( * ) + + + COUNT ( - 86 ) + + 78 + + CAST ( + + 0 AS INTEGER ) * + - CASE 63 WHEN ( + 65 ) THEN - - 72 + + + 66 * - 33 - + 44 * + 88 WHEN + COUNT ( * ) - - 94 THEN - - 84 * - ( - - COUNT ( * ) ) ELSE NULL END AS col2 @@ -13516,8 +13696,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 18 * + - 18 + - 13 AS col1, - COUNT ( * ) AS col1 +---- +-1 +-337 query I rowsort label-2579 SELECT + 23 * - MIN ( 57 ) @@ -13602,8 +13785,11 @@ SELECT ALL - COUNT ( * ) * + 25 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3367 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) \* Int64\(\-91\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 37 * - 91 AS col1, + 2 col1 +---- +2 +3367 query I rowsort SELECT ALL 1 + + 15 AS col1 @@ -14148,8 +14334,11 @@ SELECT ALL 5 + - MAX ( ALL 17 ) # 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\(10\) \+ Int64\(80\) AS col1" at position 0 and "Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 10 + 80 col1, 77 AS col1 +---- +77 +90 query I rowsort SELECT - 16 - - - 46 @@ -14413,8 +14602,11 @@ SELECT 14 * - COUNT ( * ) * + + 42 + + 25 - + - COALESCE ( + + ( + + 20 ), - 24 # 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\(1\) \* Int64\(34\) / Int64\(\-79\) \* Int64\(68\) AS col0" at position 0 and "Int64\(\-42\) \+ Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 * + 34 / - 79 * 68 AS col0, - 42 + 49 AS col0 +---- +0 +7 query I rowsort label-2750 SELECT 7 / + - 13 @@ -15123,8 +15315,11 @@ SELECT ALL 99 + - 98 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 19 col0, + 16 AS col0 +---- +16 +19 query I rowsort SELECT + 82 * 56 * - ( 68 ) AS col0 @@ -15297,8 +15492,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - - ( - - COUNT ( * ) ) * + COUNT ( * ) / - 48 AS col0, COALESCE ( + ( + 64 ), SUM ( - 82 ) ) col0 +---- +0 +64 query I rowsort label-2918 SELECT ALL - - COUNT ( * ) * + + 38 + + 31 AS col2 @@ -15849,8 +16047,11 @@ SELECT ALL 94 * 2 + + - 16 + - 29 * + 76 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2344 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* Int64\(54\) \+ Int64\(22\) AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 43 * 54 + 22 AS col2, + 44 AS col2 +---- +2344 +44 query II rowsort label-3022 SELECT DISTINCT 80 col1, + 24 * - COUNT ( - 59 ) @@ -16170,8 +16371,11 @@ SELECT - 47 / + 77 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \+ Int64\(57\) AS col2" at position 0 and "Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 22 + + + 57 AS col2, 25 AS col2 +---- +25 +79 query I rowsort SELECT 15 * + 27 + 90 - - 37 * - 77 @@ -16537,8 +16741,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(55\) \+ Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 24 + + MIN ( DISTINCT + 54 ) + + 48 * 69 col0, + ( - COUNT ( * ) ) * ( 55 ) + + + 67 AS col0 +---- +12 +3342 query I rowsort label-3151 SELECT + 89 + - 92 * - 84 + - + COUNT ( * ) @@ -16808,8 +17015,11 @@ SELECT COUNT ( 92 ) + - 89 * COUNT ( * ) - 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1136 # Datafusion - Expected - 169 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* nullif\(Int64\(16\), Int64\(14\)\) AS col1" at position 0 and "Int64\(65\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(29\) / count\(Int64\(1\)\) AS count\(\*\) \+ coalesce\(Int64\(74\), Int64\(73\) \* Int64\(\-32\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 * + + NULLIF ( 16, 14 ) AS col1, 65 + COUNT ( * ) + + 29 / + + COUNT ( * ) + + COALESCE ( + 74, 73 * - 32 + + + CAST ( - COUNT ( * ) AS INTEGER ) ) AS col1 +---- +1136 +169 query I rowsort label-3203 SELECT ALL 44 - + + COUNT ( * ) * + 48 * - 26 AS col2 @@ -16900,8 +17110,11 @@ SELECT ALL + 8 / - 16 AS col0, 35 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 164 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(\-56\) \+ \(\- nullif\(\(\- Int64\(55\)\), Int64\(\-18\) \* Int64\(\-91\)\)\) \+ \(\- Int64\(\-86\)\) 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 II valuesort SELECT 79 + - 56 + - NULLIF ( - + 55, - 18 * - 91 ) + - - 86 col0, COUNT ( ALL - 19 ) AS col0 +---- +1 +164 query I rowsort SELECT ALL 29 + - - 89 * + 41 AS col2 @@ -17169,8 +17382,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col2" at position 0 and "Int64\(\-3\) / Int64\(88\) \* Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 65 AS col2, - 3 / + 88 * + 35 AS col2 +---- +-65 +0 query I rowsort label-3270 SELECT - 48 - - 45 * NULLIF ( - 28, + 92 * + 84 + + SUM ( DISTINCT 57 ) ) * 64 @@ -17211,8 +17427,11 @@ SELECT ALL + 73 / COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 2 AS col0, + COUNT ( * ) AS col0 +---- +-2 +1 query I rowsort label-3278 SELECT DISTINCT + + COUNT ( * ) / - + 21 @@ -17400,8 +17619,11 @@ SELECT + 63 + 34 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 2720 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "Int64\(40\) \* Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 74 AS col1, 40 * 68 AS col1 +---- +2720 +74 query I rowsort label-3313 SELECT SUM ( ALL 9 ) col2 @@ -17712,8 +17934,11 @@ SELECT 30 - 41 - 48 * ( 22 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 5005 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "Int64\(55\) \* Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 AS col2, + 55 * 91 AS col2 +---- +37 +5005 query I rowsort label-3372 SELECT 39 + + - CAST ( NULL AS INTEGER ) * COALESCE ( - CAST ( + ( - + 60 ) AS INTEGER ), + 88 ) AS col1 @@ -17876,8 +18101,11 @@ SELECT DISTINCT COUNT ( * ) / + 26 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 111 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \+ \(\- Int64\(84\)\) AS col2" at position 0 and "Int64\(25\) \+ Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 + - + 84 AS col2, 25 + + 86 AS col2 +---- +111 +3 query I rowsort SELECT + 34 * - 2 AS col2 @@ -17908,8 +18136,11 @@ SELECT + 21 * - + 11, 87 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 549 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \+ \(\- CAST\(NULL AS Int32\)\) \* \(\- sum\(\(\- Int64\(84\)\)\)\) \+ Int64\(\-45\) AS col0" at position 0 and "Int64\(49\) \+ max\(DISTINCT Int64\(\-20\)\) \* Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 89 + - CAST ( NULL AS INTEGER ) * + - SUM ( ALL - + 84 ) + - 45 AS col0, 49 + MAX ( DISTINCT - 20 ) * - 25 AS col0 +---- +549 +NULL query I rowsort label-3409 SELECT ALL CAST ( NULL AS INTEGER ) + - - 95 @@ -18897,8 +19128,11 @@ SELECT 67 * + 19 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 104 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col1" at position 0 and "Int64\(29\) \+ Int64\(80\) \+ \(\- \(\- Int64\(\-5\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 AS col1, 29 + 80 + - ( - - 5 ) col1 +---- +1 +104 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -19040,8 +19274,11 @@ SELECT + 82 * 39 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -2769 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "Int64\(\-8\) \* Int64\(36\) \+ \(\- Int64\(62\)\) \* Int64\(40\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 63 AS col2, - 8 * + 36 + - + 62 * + 40 - + + COUNT ( * ) col2 +---- +-2769 +63 query I rowsort SELECT - 34 - + 71 * - 26 + - 43 @@ -19692,8 +19929,11 @@ SELECT - SUM ( DISTINCT - ( - + 38 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ Int64\(\-59\) \+ Int64\(82\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 16 + - 59 + 82 AS col2, 14 AS col2 +---- +14 +39 query I rowsort label-3754 SELECT MAX ( ALL - 70 ) @@ -19810,8 +20050,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(72\) \+ Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 - 38 col2, COUNT ( * ) + + 72 + - 79 AS col2 +---- +-6 +8 query I rowsort SELECT + 22 - - 47 @@ -20036,8 +20279,11 @@ SELECT ALL - 2 / + ( + 70 ) + + + 31 AS col1 # 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 "Int64\(63\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + 63 ) AS col2, + 20 AS col2 +---- +20 +63 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -20356,8 +20602,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col0" at position 0 and "\(\- CAST\(\(\- nullif\(\(\- CAST\(Int64\(14\) AS Int32\)\), Int64\(46\) / Int64\(3\) \+ Int64\(\-28\)\)\) AS Int32\)\) \+ Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 35 ) AS col0, - CAST ( - NULLIF ( - + CAST ( 14 AS INTEGER ), + 46 / + 3 + + - 28 ) AS INTEGER ) + + 86 AS col0 +---- +-35 +72 query I rowsort label-3880 SELECT ALL 52 * - MIN ( - + 97 ) @@ -20647,8 +20896,12 @@ SELECT 27 + MIN ( + 80 ) # Datafusion - Expected - 63 # Datafusion - Expected - -40 # Datafusion - Expected - 1575 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col2" at position 1 and "Int64\(35\) \* Int64\(45\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 63 AS col1, - 40 AS col2, + 35 * 45 AS col2 +---- +-40 +1575 +63 query I rowsort label-3936 SELECT ALL - ( + ( - - 69 ) ) / + - 47 + SUM ( 3 ) + + 32 AS col2 @@ -20843,8 +21096,11 @@ SELECT DISTINCT 58 + + - 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 142 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \- Int64\(\-44\) AS col1" at position 0 and "max\(Int64\(59\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 98 - + ( - 44 ) AS col1, + MAX ( ALL 59 ) AS col1 +---- +142 +59 query I rowsort label-3973 SELECT DISTINCT 22 + - - 28 + - CASE - COUNT ( * ) WHEN + ( - + COUNT ( * ) ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) * 42 * - - 76 * - + 10 * + 20 - + 27 * + - CASE - 36 WHEN ( COUNT ( * ) ) * - + 92 THEN - COUNT ( * ) ELSE NULL END END + - CASE 27 + 50 * ( - 43 + + 59 / - 78 ) WHEN - ( - 20 ) THEN - 41 WHEN + 78 - + 57 THEN - ( 27 ) - 74 * - MAX ( + 92 ) END / + 10 col2 @@ -21418,8 +21674,11 @@ 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\(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\. +query II valuesort 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 +---- +-61 +441898200 query I rowsort SELECT ALL - 7 * - 39 AS col0 @@ -21708,8 +21967,11 @@ SELECT + 52 * + + COALESCE ( - 88, - - ( - 16 ) * + + 45 + - 70, 47 ) * 98 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-26\)\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MIN ( - 26 ) AS col1, 75 AS col1 +---- +-26 +75 query I rowsort SELECT - 40 + 39 * + - 57 AS col0 @@ -21923,8 +22185,11 @@ SELECT ALL 50 + 19 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 1092 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(44\)\) AS col1" at position 0 and "Int64\(84\) \* Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 44 AS col1, + 84 * + 13 AS col1 +---- +-44 +1092 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -21992,8 +22257,11 @@ SELECT - 6 * 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 17 AS col2, + 91 AS col2 +---- +17 +91 query I rowsort SELECT + 15 - ( - 37 ) AS col0 @@ -22493,8 +22761,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -181085 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "Int64\(0\) \+ \(\- \(\- coalesce\(Int64\(19\), Int64\(95\) \+ Int64\(5\) \+ Int64\(\-98\) / count\(Int64\(1\)\) AS count\(\*\) / \(\- CAST\(NULL AS Int32\)\) / Int64\(\-3\), Int64\(31\)\)\)\) \+ Int64\(88\) \* Int64\(49\) \* \(\- Int64\(42\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 3 col1, 0 + - - COALESCE ( 19, 95 + + + 5 + - 98 / COUNT ( * ) / - + CAST ( NULL AS INTEGER ) / - 3, + 31 ) + 88 * 49 * - + 42 AS col1 +---- +-181085 +3 query I rowsort SELECT + 61 * - 57 AS col2 @@ -22671,8 +22942,11 @@ SELECT COALESCE ( - 54, + CAST ( - - 45 AS INTEGER ) - + ( - ( - 25 ) ) / 90 * - # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col2" at position 0 and "Int64\(\-83\) / Int64\(\-73\) \+ Int64\(\-80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 43 AS col2, - 83 / - 73 + - 80 AS col2 +---- +-43 +-79 query II rowsort label-4323 SELECT COUNT ( + - 7 ) + + 62 / COUNT ( * ), COUNT ( * ) col2 @@ -22773,8 +23047,11 @@ 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\(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\. +query II valuesort SELECT + - ( + COUNT ( * ) ) * + + 97 AS col0, + 49 + ( + 16 ) col0 +---- +-97 +65 query II rowsort SELECT + - 84, 50 + - 60 AS col2 @@ -23157,8 +23434,11 @@ SELECT ALL - 13 + - 54 + + 41 / + 73 + + MAX ( + 76 ) * - 42, SUM ( ALL - + 13 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-24\) \+ Int64\(11\) \+ Int64\(55\) \* Int64\(\-17\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(21\) / Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, - 24 + + + 11 + 55 * - 17 * - CAST ( NULL AS INTEGER ) * 21 / + 92 AS col2 +---- +1 +NULL query I rowsort label-4415 SELECT ALL + 41 + + + MAX ( - 42 ) + - 83 / + 56 @@ -23256,8 +23536,11 @@ SELECT + 68 AS col0, COUNT ( - - 96 ) + - 8 + + COALESCE ( - - COUNT ( * ), - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) col2, 35 col2 +---- +1 +35 query I rowsort SELECT ALL 56 * 36 AS col2 @@ -23272,8 +23555,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 882 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "Int64\(98\) \* Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 74 AS col2, + 98 * 9 col2 +---- +74 +882 query I rowsort SELECT ALL 99 * 77 AS col2 @@ -23319,8 +23605,11 @@ SELECT + CASE 42 WHEN + CAST ( - 82 AS INTEGER ) THEN NULL ELSE - + 69 * + COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - 150 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ Int64\(59\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 91 + 59 AS col0, + 48 AS col0 +---- +150 +48 query II rowsort label-4445 SELECT - COALESCE ( + 24, + NULLIF ( + 21, + - 49 + + - 6 * - - 15 ) ) AS col1, 45 - - ( - NULLIF ( - + 37, 74 / CAST ( NULL AS INTEGER ) ) ) + 0 + - 56 - - 47 * - 62 * - 39 AS col0 @@ -23421,8 +23710,11 @@ 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\(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\. +query II valuesort SELECT + 82 AS col0, 42 + COUNT ( * ) / COUNT ( ALL 66 ) + + COUNT ( * ) - + - COALESCE ( - - 8, - 92 ) * - COUNT ( * ) AS col0 +---- +36 +82 query I rowsort label-4465 SELECT + CAST ( NULL AS INTEGER ) / - 12 * COUNT ( * ) @@ -23515,8 +23807,11 @@ 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\(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\. +query II valuesort SELECT + ( + - COUNT ( * ) ) * - 55 + - 99 AS col2, + 53 * - COUNT ( * ) * + 39 AS col2 +---- +-2067 +-44 query I rowsort label-4482 SELECT DISTINCT COALESCE ( - + 82, MIN ( DISTINCT - - 82 ) ) * + 49 * + 5 AS col2 @@ -23552,8 +23847,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 34 AS col0, ( - 58 ) + - 83 + - COUNT ( * ) AS col0 +---- +-142 +34 query I rowsort SELECT + + 86 * - 27 - + + 77 + - 48 AS col1 @@ -23627,8 +23925,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -6400 # Datafusion - Expected - -104 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(\-80\) AS col0" at position 0 and "Int64\(\-91\) \+ Int64\(\-13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 * - 80 AS col0, - 91 + - 13 AS col0 +---- +-104 +-6400 query I rowsort label-4503 SELECT 83 + - 8 + 5 / + NULLIF ( - 69, - 57 ) * - + 16 + + 21 - + - 96 @@ -23991,8 +24292,11 @@ SELECT - + COALESCE ( NULLIF ( + - 10, - 82 ), - 8 / - 99 * CAST ( + 45 AS INTEG # Datafusion - Datafusion expected results: # Datafusion - Expected - 4029 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \* \(\- max\(DISTINCT Int64\(51\)\)\) AS col0" at position 0 and "\(\- min\(Int64\(21\)\)\) \* min\(CAST\(NULL AS Float64\)\) \+ Int64\(44\) \+ Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT - 79 * - + MAX ( DISTINCT + 51 ) AS col0, - MIN ( ALL + + 21 ) * + + MIN ( ALL + CAST ( NULL AS FLOAT8 ) ) + 44 + - 76 AS col0 +---- +4029 +NULL query I rowsort SELECT ALL + 21 + + 66 @@ -24007,15 +24311,22 @@ SELECT DISTINCT - MAX ( DISTINCT + CAST ( - 21 AS INTEGER ) ) * - 65 + + 9 - ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -8075 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "Int64\(94\) \* Int64\(\-85\) \+ Int64\(85\) / \(\- count\(coalesce\(Int64\(48\), Int64\(95\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 82 col1, 94 * - 85 + + + 85 / - + COUNT ( ALL COALESCE ( + 48, 95 ) ) AS col1 +---- +-8075 +82 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2688 # Datafusion - Expected - 177 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- \(\- Int64\(95\)\)\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(82\) \* Int64\(\-29\) \+ Int64\(\-71\), Int64\(\-92\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(82\) AS col2" at position 1 and "CAST\(NULL AS Int32\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 28 * - + 96, COALESCE ( - - ( + 95 ), + COUNT ( * ) * + 82 * + - 29 + - 71, - 92, - COUNT ( * ) ) + 82 AS col2, + CAST ( NULL AS INTEGER ) AS col2 +---- +-2688 +177 +NULL query II rowsort label-4575 SELECT 46 AS col1, + 63 + - + NULLIF ( + COUNT ( * ), - 56 + - NULLIF ( - - COALESCE ( + 56, - - 14 + MAX ( 94 ) * - + 12 ), + 78 ) ) @@ -24057,8 +24368,11 @@ SELECT + 62 * - + 87 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2232 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* Int64\(36\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 62 * 36 AS col2, 30 AS col2 +---- +2232 +30 query I rowsort label-4583 SELECT CASE - - 97 WHEN + 94 THEN NULL ELSE - + CASE 47 WHEN + 31 / - 84 * - 99 THEN - 26 WHEN + - 83 + - 29 THEN COUNT ( * ) WHEN 71 / + COUNT ( * ) THEN NULL END + CAST ( NULL AS INTEGER ) END / ( + 40 ) + + 82 + + - ( + NULLIF ( + 50, - 37 ) ) * + 95 / + - COUNT ( * ) AS col2 @@ -24104,8 +24418,11 @@ SELECT + 19 * + 68 + + 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7608 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* Int64\(96\) \+ Int64\(9\) \* Int64\(3\) \+ Int64\(45\) AS col0" at position 0 and "Int64\(28\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + - 80 ) * + 96 + 9 * + 3 + 45 AS col0, 28 + COUNT ( * ) AS col0 +---- +-7608 +29 query I rowsort label-4592 SELECT DISTINCT - + 54 * 12 + - MIN ( ALL - + 12 ) @@ -24136,8 +24453,11 @@ SELECT + 13 + - 24 # 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 col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 32 col0, 9 AS col0 +---- +-32 +9 query II rowsort SELECT - 40 + 68 AS col0, - 3 AS col1 @@ -24447,8 +24767,11 @@ SELECT ALL - 16, 54 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 99 AS col2, 29 AS col2 +---- +29 +99 query I rowsort SELECT 6 * + - 22 - + - 96 @@ -24885,8 +25208,11 @@ SELECT 42 * + 66 * 7 + - + 59 - - + 64 * - 9 * + - COUNT ( * ) * - - 57 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) AS col2" at position 0 and "coalesce\(Int64\(92\), Int64\(10\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 7 AS col2, COALESCE ( + 92, + 10 ) col2 +---- +-7 +92 query I rowsort SELECT DISTINCT 62 * + 87 * + 24 @@ -25026,8 +25352,11 @@ SELECT + + 91 AS col0, - 83 / 35 / + 63 # 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 "min\(Int64\(\-3\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 15 AS col2, MIN ( - 3 ) AS col2 +---- +-3 +15 query I rowsort SELECT DISTINCT 56 + - - 52 + 0 @@ -25063,8 +25392,11 @@ SELECT ALL - + 94 + SUM ( + 97 ) + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 2705 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* Int64\(0\) \+ Int64\(69\) AS col2" at position 0 and "Int64\(16\) \+ \(\- nullif\(Int64\(37\), count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-71\) \- Int64\(67\) \+ \(\- Int64\(\-96\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- nullif\(Int64\(95\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(35\)\) / \(\- nullif\(Int64\(\-39\), CAST\(\(\- Int64\(73\)\) AS Int32\) / Int64\(14\) \+ Int64\(\-65\)\)\) \+ Int64\(36\) \+ \(\- count\(Int64\(\-50\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +2705 +69 query I rowsort label-4773 SELECT ALL ( - 12 ) / 39 AS col0 @@ -25829,8 +26161,11 @@ SELECT + MIN ( ALL + 33 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 494 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(26\)\) \* nullif\(Int64\(19\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(9\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-37\) \* Int64\(21\) / Int64\(81\)\) AS col1" at position 0 and "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( ALL 26 ) * NULLIF ( 19, + COUNT ( * ) * + 9 - ( - COUNT ( * ) ) + - 37 * + 21 / 81 ) AS col1, - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 +---- +-1 +494 query I rowsort SELECT NULLIF ( + 33, - - 51 ) * - 34 + - ( - + 39 ) AS col0 @@ -25851,8 +26186,11 @@ SELECT + COUNT ( * ) AS col1, + 3 + ( - - MIN ( ALL + 67 ) ) + 16 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -710 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* \(\- \(\- Int64\(\-67\)\)\) \+ Int64\(46\) \+ Int64\(\-19\) AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 * - - ( + - 67 ) + ( 46 ) + - 19 AS col1, + 52 AS col1 +---- +-710 +52 query I rowsort SELECT ALL + 21 + - - 65 + 14 @@ -26081,8 +26419,11 @@ SELECT ALL 5 * + + 61 + - 25 / - 99 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(72\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - + 72 ) AS col1, + ( COUNT ( * ) ) AS col1 +---- +-72 +1 query I rowsort label-4966 SELECT ALL - 26 * 73 + + 92 / ( - 64 ) AS col1 @@ -26132,8 +26473,11 @@ SELECT ALL - ( ( - 42 ) ) * + 68 + 98 # 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 "nullif\(Int64\(\-64\), Int64\(50\)\) AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( - 64, + 50 ) AS col0, 5 AS col0 +---- +-64 +5 query I rowsort SELECT DISTINCT + - 6 * + 22 @@ -26371,8 +26715,11 @@ SELECT - + 86 * + 18 - - CAST ( + 59 AS INTEGER ) AS col2, + COALESCE ( + 88, + # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 115 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(62\)\) AS col0" at position 0 and "Int64\(30\) \+ Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 62 col0, + 30 + + 85 AS col0 +---- +-62 +115 query I rowsort SELECT 74 * + ( 23 ) + + - ( - 89 ) AS col0 @@ -27219,8 +27566,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 2550 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col0" at position 0 and "Int64\(30\) \* Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 68 AS col0, + 30 * 85 col0 +---- +-68 +2550 query I rowsort label-5184 SELECT DISTINCT - MIN ( ALL + 97 ) @@ -27982,8 +28332,11 @@ 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\(\-48\) \+ Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 72 col1, - 48 + 79 col1 +---- +31 +72 query I rowsort SELECT DISTINCT + 35 * + - 29 + - 87 @@ -28283,8 +28636,11 @@ SELECT DISTINCT - 7 + + - ( 75 ) + + + 35 - 60 / 23 + 72 * 77 * + COALESCE ( - - # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) AS col1" at position 0 and "nullif\(Int64\(0\), \(\- \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Float64\)\)\) \+ Int64\(95\) \+ Int64\(33\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - 13 AS col1, ( NULLIF ( - 0, - - CAST ( COUNT ( * ) AS FLOAT8 ) + + 95 + 33 ) ) AS col1 +---- +-13 +0 query I rowsort label-5390 SELECT 25 * - - ( CASE + - 54 WHEN - + SUM ( - 0 ) THEN NULL WHEN 23 THEN NULL ELSE - 55 END ) + - 91 * + 16 col2 @@ -28359,8 +28715,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, 98 * + 72 col0 +---- +-1 +7056 query I rowsort SELECT ( 94 ) * 25 AS col2 @@ -28644,8 +29003,12 @@ 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\(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\. +query III valuesort SELECT - + COUNT ( * ) + - MIN ( - 91 ), + COUNT ( * ) * + - 32 col1, 83 AS col1 +---- +-32 +83 +90 query I rowsort label-5457 SELECT + - ( - 26 ) * - 44 - MIN ( + + 94 ) AS col1 @@ -28697,8 +29060,11 @@ SELECT - + 97 * - - CASE + + 11 WHEN + 64 THEN NULL ELSE + 92 * - 6 END + 85 col # 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\) AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + ( 25 ) AS col2, + 44 AS col2 +---- +25 +44 query I rowsort label-5467 SELECT DISTINCT - 17 / 23 + COUNT ( * ) * + 38 @@ -28817,8 +29183,11 @@ SELECT 92 / - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 AS col2, 27 AS col2 +---- +27 +93 query I rowsort label-5490 SELECT CASE 12 WHEN ( + 19 ) * COUNT ( * ) * - 18 THEN NULL ELSE - + 40 END AS col0 @@ -29180,8 +29549,11 @@ SELECT 89, - 50 * - - COUNT ( * ) - + 6 + + - 72 * + 32 - - - 44 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5042 # Datafusion - Expected - 3320 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* coalesce\(Int64\(\-75\), \(\- Int64\(18\)\), Int64\(7\) \* \(\- Int64\(90\)\) / Int64\(\-10\) \- \(\- Int64\(\-29\)\)\) \+ \(\- sum\(Int64\(17\)\)\) AS col2" at position 0 and "Int64\(40\) \* Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 * + + COALESCE ( - 75, - + 18, + 7 * - + 90 / - 10 - - - 29 ) + + - SUM ( ALL + 17 ) AS col2, 40 * + 83 AS col2 +---- +-5042 +3320 query I rowsort SELECT - 30 * - 49 AS col0 @@ -29360,8 +29732,11 @@ SELECT + 54 * 89 * 86 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(30\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col0, 30 / COUNT ( * ) AS col0 +---- +30 +NULL query I rowsort label-5595 SELECT COUNT ( * ) * 63 + + COUNT ( * ) * 42 + + + COUNT ( * ) @@ -29377,8 +29752,11 @@ SELECT + 7, 65 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 5499 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 0 and "Int64\(76\) \* Int64\(72\) \- \(\- Int64\(27\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 70 AS col0, 76 * 72 - - + 27 AS col0 +---- +5499 +70 query I rowsort label-5598 SELECT ALL COALESCE ( - 17, 15 ) * - 19 * - COUNT ( - 37 ) + + 60 + - MAX ( DISTINCT + 5 ) + 97 + MIN ( ALL 89 ) + + 72 * - 28 * + COUNT ( - + CAST ( NULL AS INTEGER ) ) @@ -29495,8 +29873,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(67\) \+ Int64\(\-32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 27 + 13 AS col0, - COUNT ( * ) * + + 67 + + - 32 col0 +---- +-14 +-99 query II rowsort label-5621 SELECT ALL ( - 81 ), + 65 * + CAST ( NULL AS INTEGER ) AS col2 @@ -29793,8 +30174,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(\-39\) \+ Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 25 AS col2, ( COUNT ( * ) ) / - 39 + + 94 AS col2 +---- +25 +94 query I rowsort label-5678 SELECT + 14 * + - 26 + COUNT ( * ) AS col2 @@ -29871,14 +30255,20 @@ SELECT + 38 + 70 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-5\) \* \(\- max\(Int64\(9\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) * - 5 * - MAX ( ALL + 9 ) AS col1, CAST ( NULL AS INTEGER ) AS col1 +---- +45 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) / \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(85\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 / - CAST ( NULL AS INTEGER ) AS col0, 85 / + COUNT ( * ) AS col0 +---- +85 +NULL query I rowsort SELECT + 43 + - 91 + - 73 @@ -30506,8 +30896,11 @@ SELECT ALL 37 * - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 3757 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col1" at position 0 and "nullif\(Int64\(75\), \(\- Int64\(\-13\)\)\) \* Int64\(49\) \+ Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 79 AS col1, NULLIF ( + 75, - - 13 ) * 49 + + 82 AS col1 +---- +3757 +79 query I rowsort label-5814 SELECT ALL - 59 - - + COUNT ( * ) @@ -30679,8 +31072,11 @@ 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\)\) 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\. +query II valuesort SELECT NULLIF ( - COUNT ( * ), 1 + COUNT ( * ) ) AS col0, COUNT ( + + 82 ) + - ( + NULLIF ( - - 95, 74 ) ) + 18 AS col0 +---- +-1 +-76 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -31023,8 +31419,11 @@ SELECT ALL + + COUNT ( * ) + MAX ( - 73 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-22\)\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 22 AS col2, 41 AS col2 +---- +22 +41 query II rowsort label-5912 SELECT + 27, - CASE - COUNT ( * ) WHEN - 93 THEN + - 14 ELSE NULL END + + COUNT ( * ) / + SUM ( DISTINCT + 30 ) + 9 + - - 12 * + - COUNT ( * ) + - 58 - - 26 / - - 4 AS col1 @@ -31122,8 +31521,11 @@ SELECT ALL - 50, - 30 + + 65 col0 # 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\(9\) \+ Int64\(15\) AS col2" at position 0 and "Int64\(\-3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 9 + 15 AS col2, - 3 AS col2 +---- +-3 +24 query I rowsort label-5930 SELECT ALL - + 78 / + COUNT ( * ) @@ -32066,8 +32468,12 @@ 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\(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\. +query IRI valuesort 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 +---- +38 +95 +NULL query I rowsort label-6109 SELECT DISTINCT - NULLIF ( CAST ( - 15 AS INTEGER ), + 53 * + + 80 + + NULLIF ( 58, 37 ) / + 52 * ( + 17 ) + + 27 * 91 - - 58 ) AS col1 @@ -32171,14 +32577,20 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col2, + NULLIF ( 2, 22 * + - 78 - COUNT ( * ) ) + + + 19 * - SUM ( - 31 ) + 95 AS col2 +---- +-1 +686 # Datafusion - Datafusion expected results: # Datafusion - Expected - -525 # Datafusion - Expected - -587 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* \(\- Int64\(75\)\) AS col0" at position 0 and "Int64\(8\) \* CAST\(\(\- min\(Int64\(77\)\)\) AS Int32\) \+ Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 * - ( + 75 ) AS col0, 8 * + CAST ( - MIN ( ALL + 77 ) AS INTEGER ) + 29 AS col0 +---- +-525 +-587 query I rowsort label-6130 SELECT CAST ( + 38 AS INTEGER ) + + - NULLIF ( 75, + + NULLIF ( 44, + - SUM ( + 2 ) * + + 93 * - + 94 + - - 42 + - COUNT ( * ) + - 39 + + - 60 + - - 76 / + 77 * + 21 * + + COUNT ( - + 75 ) * - ( + 84 ) + ( 48 ) + + - 99 + - 44 + COUNT ( * ) * 6 ) ) AS col2 @@ -32255,8 +32667,11 @@ 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 col2" at position 0 and "count\(Int64\(44\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 25 AS col2, COUNT ( ALL 44 ) AS col2 +---- +-25 +1 query I rowsort label-6145 SELECT - ( + COUNT ( * ) ) + - 49 + + - 62 @@ -32907,8 +33322,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- Int64\(53\)\), Int64\(14\) \* Int64\(77\)\)\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - NULLIF ( - ( + 53 ), + 14 * + + 77 ) AS col0, + 81 AS col0 +---- +53 +81 query I rowsort SELECT DISTINCT - - 49 * + + 16 * + - 43 @@ -32965,8 +33383,11 @@ SELECT + 3 - - 60 # 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 "Int64\(3\) AS col1" at position 0 and "max\(Int64\(80\)\) \+ Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 3 AS col1, + MAX ( + + 80 ) + 82 AS col1 +---- +162 +3 query I rowsort label-6281 SELECT + 79 / 29 @@ -33241,8 +33662,11 @@ 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\(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\. +query II valuesort SELECT - 36 * - 21 + - SUM ( - 62 ) * - 52 * - + 63 * ( - + COUNT ( * ) ) + + 25 AS col1, + 8 + + 59 AS col1 +---- +-202331 +67 query I rowsort label-6332 SELECT - + 51 * + + NULLIF ( + 56, + ( - NULLIF ( - - 28, - ( + + 32 ) + + 30 ) ) ) + - 42 + - ( - 46 ) + - 0 + + 38 + + - 88 * + COUNT ( * ) AS col1 @@ -33721,8 +34145,11 @@ SELECT ALL - 3 * 52 + + 50 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 270 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \* Int64\(\-6\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 45 * - 6 AS col0, 91 AS col0 +---- +270 +91 query I rowsort label-6424 SELECT + COUNT ( * ) / 93 * 38 @@ -33850,8 +34277,12 @@ SELECT 41 * + + 70 # Datafusion - Expected - 39 # Datafusion - Expected - 93 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col0" at position 0 and "nullif\(CAST\(Int64\(10\) AS Int32\), \(\- coalesce\(Int64\(33\), \(\- Int64\(91\)\)\)\) \* Int64\(57\)\) \+ Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 39 AS col0, NULLIF ( + CAST ( 10 AS INTEGER ), - COALESCE ( + 33, - + 91 ) * + 57 ) + + 83 AS col0, + 20 + - 82 * - COUNT ( * ) * - - COUNT ( * ) * - COUNT ( * ) AS col1 +---- +-62 +39 +93 query I rowsort label-6449 SELECT ( + 33 ) + ( - + 13 ) - - - CAST ( 29 AS INTEGER ) * 60 AS col0 @@ -33935,8 +34366,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - COUNT ( * ) AS col2, + 18 AS col2 +---- +-1 +18 query I rowsort SELECT - 86 + + + ( - - 34 ) + + 87 AS col2 @@ -34023,8 +34457,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 5700 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* Int64\(95\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 60 * + 95 AS col0, 29 AS col0 +---- +29 +5700 query I rowsort label-6482 SELECT DISTINCT - 6 * - - COUNT ( * ) @@ -34471,8 +34908,11 @@ SELECT - 26, + ( - 52 ) + - 46 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -100 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) \+ Int64\(\-62\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 38 + - 62 col2, 4 AS col2 +---- +-100 +4 query I rowsort label-6567 SELECT DISTINCT + CAST ( - - 59 AS INTEGER ) AS col1 @@ -34841,8 +35281,12 @@ NULL # Datafusion - Expected - -84 # Datafusion - Expected - 98 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \+ Int64\(68\) / Int64\(30\) AS col2" at position 0 and "Int64\(\-11\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - 86 + 68 / + 30 AS col2, 98 AS col1, - 11 AS col2 +---- +-11 +-84 +98 query I rowsort label-6635 SELECT - + 75 + - - 35 + 14 * - SUM ( ALL + - 38 ) AS col1 @@ -35678,8 +36122,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 41 AS col2, 88 AS col2 +---- +41 +88 query I rowsort label-6800 SELECT SUM ( ALL - 82 ) @@ -35736,8 +36183,11 @@ SELECT - ( - + 92 ) 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\(55\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 55 AS col2, + ( + + 99 ) AS col2 +---- +55 +99 query I rowsort label-6811 SELECT - + 61 * COUNT ( * ) / + COUNT ( * ) AS col0 @@ -36153,8 +36603,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \+ \(\- max\(Int64\(89\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 27 col1, COUNT ( * ) + - MAX ( ALL + 89 ) AS col1 +---- +-88 +27 query I rowsort SELECT ALL + - ( 29 ) - 78 @@ -36191,8 +36644,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(10\)\) AS col1" at position 0 and "Int64\(\-76\) / Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 10 AS col1, - 76 / + 38 AS col1 +---- +-10 +-2 query I rowsort SELECT - - 48 + - 95 + + 84 AS col0 @@ -36456,8 +36912,11 @@ SELECT 32 * 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "Int64\(\-7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 AS col0, - 7 AS col0 +---- +-7 +67 query I rowsort label-6947 SELECT 39 / - 85 * - 24 @@ -36724,8 +37183,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT ( - COUNT ( * ) ) AS col0, 66 * + COUNT ( * ) * + + 79 + - 50 AS col0 +---- +-1 +5164 query I rowsort label-6998 SELECT - + 51 / 86 AS col1 @@ -37023,8 +37485,12 @@ SELECT - 0 + + 15 * 10 * - 61 * + COUNT ( * ) * - 82 AS col0, + 6 AS col1 # Datafusion - Expected - NULL # Datafusion - Expected - -11340 # Datafusion - Expected - -77 -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\(36\) \* Int64\(21\) \* Int64\(\-15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RII valuesort SELECT DISTINCT CAST ( NULL AS FLOAT8 ) AS col1, + 36 * + 21 * + - 15 AS col1, - 77 +---- +-11340 +-77 +NULL query II rowsort SELECT + 77 + + 64 AS col1, 16 * - 46 @@ -37058,8 +37524,11 @@ 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\)\) AS count\(\*\)\) \+ Int64\(\-1\) / Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 64 * + ( - + 21 ) * - 87 AS col2, - 65 - - - ( - 67 ) + - - 95 * - + 44 + - COUNT ( * ) + - 1 / 24 AS col2 +---- +-4179 +116928 query I rowsort SELECT + 26 * + 28 * + 78 + - 41 AS col2 @@ -37223,8 +37692,11 @@ SELECT 52 + - - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 126 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ Int64\(\-61\) AS col0" at position 0 and "Int64\(2\) \* Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 + + - 61 AS col0, 2 * + 63 AS col0 +---- +0 +126 query II rowsort label-7092 SELECT ALL - 45 / + 26 AS col2, 36 @@ -37690,8 +38162,11 @@ SELECT ALL - 61 * + 40, COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3430 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(35\)\) \* 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 II valuesort SELECT ALL - + 35 * 98 col1, 11 AS col1 +---- +-3430 +11 query I rowsort label-7180 SELECT DISTINCT - 17 * - - COUNT ( * ) * - - MAX ( + + 28 ) + - 54 @@ -37753,8 +38228,11 @@ SELECT - 18 + 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3493 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* Int64\(74\) \+ Int64\(\-59\) AS col1" at position 0 and "Int64\(92\) \* CASE min\(Int64\(26\)\) WHEN Int64\(69\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN nullif\(Int64\(\-14\), count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-56\)\) THEN CAST\(Int64\(68\) AS Int32\) \+ Int64\(39\) / Int64\(88\) ELSE NULL END / Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +3493 +NULL query I rowsort label-7192 SELECT DISTINCT 89 * - + ( COUNT ( * ) ) * - 57 + + CASE WHEN NOT - 74 IS NOT NULL THEN NULL ELSE MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) END @@ -37934,8 +38412,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(75\) \+ Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 27 AS col1, COUNT ( * ) * 75 + + 59 col1 +---- +-27 +134 query I rowsort label-7227 SELECT 27 * COUNT ( * ) * + 50 @@ -37973,8 +38454,12 @@ SELECT 42 AS col0, MAX ( ( + 40 ) ) AS col1 # Datafusion - Expected - 59 # Datafusion - Expected - -6958 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \+ \(\- Int64\(82\)\) \* Int64\(85\) AS col0" at position 1 and "Int64\(50\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - CASE COALESCE ( + + 89, 58 ) WHEN - + 27 THEN NULL ELSE - 59 END, 12 + - + 82 * 85 AS col0, 50 AS col0 +---- +-6958 +50 +59 query I rowsort SELECT + 70 * 1 * - 98 + - CASE - ( 74 ) WHEN + 16 THEN 10 + - + 40 + - - 23 ELSE + - 99 END AS col2 @@ -38037,8 +38522,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4731 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(30\) WHEN count\(Int64\(19\)\) THEN NULL ELSE CAST\(NULL AS Int32\) \* \(\- Int64\(\-48\)\) END AS col2" at position 0 and "sum\(Int64\(\-83\)\) \* Int64\(\-57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CASE + 30 WHEN + COUNT ( ALL + 19 ) THEN NULL ELSE CAST ( NULL AS INTEGER ) * - - 48 END AS col2, SUM ( - 83 ) * - 57 AS col2 +---- +4731 +NULL query I rowsort label-7246 SELECT + COALESCE ( + COUNT ( * ), - 73 * - 6 - CAST ( NULL AS INTEGER ) ) AS col2 @@ -38054,8 +38542,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1479 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* CAST\(Int64\(17\) AS Int32\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 * + CAST ( + 17 AS INTEGER ) AS col0, + CAST ( NULL AS INTEGER ) AS col0 +---- +1479 +NULL query I rowsort label-7249 SELECT 50 / + ( + 24 ) - - 63 @@ -38368,8 +38859,11 @@ 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\(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\. +query II valuesort 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 +---- +0 +34 query I rowsort label-7308 SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - CAST ( 8 AS INTEGER ) AS col0 @@ -39084,8 +39578,12 @@ SELECT - NULLIF ( + + 85, - CASE + 59 WHEN - - 16 * + 47 + + 78 + + 78 + + 63 * # Datafusion - Expected - -1 # Datafusion - Expected - 4 # Datafusion - Expected - -49 -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\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - COUNT ( 69 ) AS col1, 4 AS col1, - 66 + + MAX ( + 17 ) col0 +---- +-1 +-49 +4 query II rowsort label-7444 SELECT + 68 * - 80 AS col0, 55 / - + 77 AS col2 @@ -39106,8 +39604,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) - - 6 col2, 65 AS col2 +---- +65 +7 query I rowsort label-7448 SELECT - 34 / + CAST ( COUNT ( * ) AS INTEGER ) - + + 60 AS col2 @@ -39230,8 +39731,11 @@ SELECT - 7 * 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8028 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(97\)\) \* Int64\(\-75\) \+ Int64\(80\) \+ \(\- Int64\(\-64\)\) \- \(\- Int64\(\-23\)\) \* Int64\(35\) \+ Int64\(\-89\) \+ Int64\(\-3\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( + 97 ) * + - 75 + + + 80 + - - 64 - - - 23 * 35 + - 89 + - 3 col2, 2 AS col2 +---- +-8028 +2 query I rowsort label-7471 SELECT ALL + 11 * + COALESCE ( - - 31, 47 * - - CAST ( NULL AS INTEGER ), + - 61 ) * - 57 @@ -39360,8 +39864,11 @@ SELECT 46 + + 0 + 3 * + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \* \(\- CAST\(CAST\(NULL AS Float64\) AS Int32\)\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 95 * - CAST ( + ( + CAST ( NULL AS FLOAT8 ) ) AS INTEGER ) AS col2, + 99 col2 +---- +99 +NULL query I rowsort label-7496 SELECT CAST ( NULL AS INTEGER ) + + + 81 - + 92 AS col1 @@ -39676,8 +40183,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * + 99 AS col2, + 7 * + 88 AS col2 +---- +616 +99 query I rowsort label-7557 SELECT ( - COUNT ( * ) ) + - 81 @@ -39707,8 +40217,11 @@ SELECT ALL - NULLIF ( + 96, COUNT ( * ) ) + + 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 25 AS col1, - CAST ( NULL AS INTEGER ) col1 +---- +25 +NULL query I rowsort label-7563 SELECT + MIN ( - 89 ) + - - 36 - + + 45 + + 88 * NULLIF ( 40, 41 ) @@ -39801,8 +40314,11 @@ SELECT ALL - CAST ( + + 20 AS INTEGER ) * 48, - 53 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -780 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \* Int64\(\-39\) AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 20 * - 39 AS col1, 32 AS col1 +---- +-780 +32 query I rowsort label-7581 SELECT DISTINCT - CASE - - 28 WHEN - + 82 THEN NULL ELSE - COUNT ( * ) END @@ -39975,8 +40491,11 @@ SELECT ALL - NULLIF ( - 51, - 72 * - ( - 5 ) * 43 * ( - ( + 6 ) ) * - + ( - - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 75 AS col2, 87 AS col2 +---- +-75 +87 query II rowsort label-7614 SELECT DISTINCT - 78, 79 * + CASE - + ( + 32 ) WHEN COALESCE ( - MIN ( ALL - - 97 ), + 10 ) THEN - ( - + 58 ) WHEN + 13 THEN NULL END AS col1 @@ -40418,8 +40937,11 @@ SELECT ALL 40 AS col0, 49 * - 59 # 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\(\-67\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 67 AS col1, + 87 AS col1 +---- +-67 +87 query I rowsort SELECT 86 + 77 AS col2 @@ -40765,8 +41287,11 @@ SELECT ALL + 62 * 11 * - - 12 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2184 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-56\)\) \* Int64\(39\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 56 * 39 AS col1, + 45 AS col1 +---- +2184 +45 query I rowsort label-7762 SELECT - ( + 87 ) * + COALESCE ( ( - + 16 ), - NULLIF ( - - 55, - + 55 / - MAX ( DISTINCT + 21 ) * - COALESCE ( - 94, - 34 + + 45 - - 37 ) * 30 + - + 66 ) + + - 40 ) * 70 * COUNT ( * ) * 18 * + 10 @@ -41240,8 +41765,11 @@ SELECT + 27 * + 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col1" at position 0 and "count\(Int64\(10\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 10 AS col1, COUNT ( ALL 10 ) AS col1 +---- +-10 +1 query II rowsort label-7854 SELECT COUNT ( DISTINCT - NULLIF ( 46, CAST ( NULL AS INTEGER ) * + 70 ) ) col2, 22 * + 72 * - 55 @@ -41334,8 +41862,11 @@ SELECT - 82 + - + 34 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -69360 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "Int64\(\-60\) \* \(\- Int64\(\-17\)\) \* Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 73 AS col0, - 60 * - ( + - 17 ) * 68 AS col0 +---- +-69360 +73 query II rowsort SELECT 79 col0, - 47 * + - 50 AS col1 @@ -41428,8 +41959,11 @@ SELECT + 28 + - 20, + 34 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 22 col0, 2 AS col0 +---- +2 +22 query I rowsort label-7890 SELECT - COUNT ( * ) * - 57 @@ -41529,8 +42063,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + 80 ) col0, + 68 AS col0 +---- +68 +80 query I rowsort label-7908 SELECT ( - + 38 ) * - 78 + - 69 - - 9 + - NULLIF ( + COUNT ( + 81 ), + 28 ) @@ -41588,8 +42125,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \- Int64\(81\) AS col1" at position 0 and "Int64\(20\) \+ Int64\(\-38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 92 - 81 AS col1, 20 + - 38 AS col1 +---- +-18 +11 query I rowsort label-7919 SELECT + 69 + + - 22 * COUNT ( ALL - 68 ) @@ -41707,8 +42247,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, - 71 AS col0 +---- +-1 +-71 query I rowsort SELECT ALL - 24 + - 88 col2 @@ -41998,8 +42541,11 @@ SELECT - + 34 + - 56 + - + 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1496 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \+ Int64\(\-89\) \+ Int64\(\-15\) \* Int64\(93\) AS col0" at position 0 and "nullif\(CAST\(Int64\(40\) AS Int32\), Int64\(\-29\) \* \(\- Int64\(4\)\) \- Int64\(29\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 12 + + - 89 + - 15 * + 93 AS col0, NULLIF ( CAST ( 40 AS INTEGER ), - 29 * - + ( + 4 ) - 29 ) AS col0 +---- +-1496 +40 query I rowsort label-7997 SELECT ALL + MIN ( 79 ) + - 29 + - - 87 + + + 62 + - 2 @@ -42412,8 +42958,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 477841 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col1" at position 0 and "Int64\(89\) \* Int64\(59\) \* Int64\(91\) \+ Int64\(6\) / nullif\(Int64\(12\), Int64\(\-58\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 AS col1, + 89 * + 59 * 91 + + 6 / + NULLIF ( + 12, - 58 ) AS col1 +---- +477841 +68 query I rowsort label-8075 SELECT DISTINCT + COUNT ( * ) * + + 81 + - 82 AS col2 @@ -42753,8 +43302,11 @@ SELECT - 81 * - ( - 46 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-15\)\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(10\) / CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - - 15 ) AS col0, - COUNT ( * ) - 10 / CAST ( NULL AS INTEGER ) AS col0 +---- +-15 +NULL query I rowsort label-8140 SELECT ALL 28 / 9 AS col1 @@ -42994,8 +43546,11 @@ SELECT ALL + 28 * - 24 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(67\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(19\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(8\)\) END \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CASE - COUNT ( * ) WHEN - COUNT ( * ) + 67 THEN - COUNT ( * ) * - + 19 + - COUNT ( * ) * + - ( 8 ) END + + COUNT ( * ) AS col2, + 64 AS col2 +---- +64 +NULL query I rowsort SELECT 47 * + 94 + - 97 + NULLIF ( - 52, + 70 / + ( - 27 ) ) @@ -44758,14 +45313,20 @@ SELECT ALL + COALESCE ( + COUNT ( * ), + 76 + - - 62 ) / 46 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - -56082 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "Int64\(\-53\) \+ Int64\(\-85\) \- Int64\(\-63\) \* Int64\(\-37\) \* Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 40 AS col1, - 53 + - 85 - - 63 * - 37 * 24 col1 +---- +-56082 +40 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col2" at position 0 and "Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 44 AS col2, - 95 AS col2 +---- +-44 +-95 query II rowsort label-8527 SELECT ( - 95 ) + - ( + 47 ) AS col2, COUNT ( * ) @@ -44859,8 +45420,11 @@ NULL # 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 "\(\- coalesce\(Int64\(\-49\), Int64\(50\)\)\) \+ Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 62 col1, - COALESCE ( + - 49, 50 ) + + - 36 col1 +---- +-62 +13 query I rowsort label-8544 SELECT ALL 67 * + CAST ( NULL AS INTEGER ) * + 43 AS col2 @@ -45148,8 +45712,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3952 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(76\) \* Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 12 + - + ( - CAST ( NULL AS INTEGER ) ) AS col0, 76 * + + 52 AS col0 +---- +3952 +NULL query I rowsort SELECT DISTINCT - 57 * - 56 @@ -45654,8 +46221,11 @@ SELECT 15, 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "min\(DISTINCT Int64\(72\)\) \+ CAST\(NULL AS Int32\) \* Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, + MIN ( DISTINCT 72 ) + + CAST ( NULL AS INTEGER ) * 30 AS col1 +---- +-1 +NULL query I rowsort label-8697 SELECT ALL - CASE + COALESCE ( - - 9, + + 34 + COUNT ( * ) ) WHEN + NULLIF ( + COUNT ( * ), - 30 * - 62 + - 76 * - 15 * + 40 - - COUNT ( * ) ) THEN 89 END AS col0 @@ -45808,8 +46378,11 @@ SELECT + 28 / + ( + 89 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) / \(\- min\(DISTINCT Int64\(54\)\)\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 40 / - MIN ( DISTINCT + 54 ) AS col1, 14 AS col1 +---- +0 +14 query II rowsort SELECT ALL 75 * + - 33 AS col2, 67 + 43 + + + 58 + - 92 - - 97 + - + 85 * - + 60 @@ -45977,8 +46550,11 @@ SELECT - MAX ( ALL + 12 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "Int64\(11\) \+ Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + ( 24 ) ) AS col1, 11 + + 71 AS col1 +---- +24 +82 query I rowsort SELECT ALL - NULLIF ( 21, ( 65 ) ) * 26 @@ -46089,8 +46665,11 @@ SELECT + COUNT ( - 25 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 AS col0, - 56 AS col0 +---- +-56 +90 query I rowsort label-8779 SELECT CAST ( + + 52 AS INTEGER ) + ( + + 73 ) AS col1 @@ -46293,8 +46872,11 @@ SELECT 50 + 37 / - ( + 78 ) * - 18 * 42 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 13 AS col0, 33 col0 +---- +13 +33 query I rowsort label-8818 SELECT NULLIF ( + + 13, + COUNT ( * ) * - - 82 * + 9 * + MIN ( ALL 15 ) + SUM ( - 15 ) + - 95 ) * + + 51 @@ -46406,8 +46988,11 @@ SELECT 7, 95 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + COUNT ( * ) AS col2 +---- +1 +1 query I rowsort SELECT - 31 - 37 AS col0 @@ -46493,8 +47078,11 @@ SELECT - ( + 62 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 AS col2, 36 AS col2 +---- +36 +7 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -46656,8 +47244,11 @@ SELECT 68 * + 43, + COUNT ( + - 59 ) * - - 40 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 462 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(22\) 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 II valuesort SELECT ALL 21 * 22 AS col1, - COUNT ( 33 ) AS col1 +---- +-1 +462 query I rowsort label-8887 SELECT 75 + + COALESCE ( - - 13, 48 * + 23 - + 92, - NULLIF ( 81, + 51 ) * + MIN ( DISTINCT + 4 ) + - 82 ) + - - 46 AS col1 @@ -46708,8 +47299,11 @@ SELECT + COALESCE ( + + 13, - + ( - - 40 ) / + - 40 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 630 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* Int64\(18\) AS col1" at position 0 and "Int64\(68\) \- \(\- Int64\(\-67\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 35 * 18 col1, + 68 - - - 67 AS col1 +---- +1 +630 query I rowsort label-8897 SELECT SUM ( ALL 28 ) col2 @@ -46725,8 +47319,11 @@ 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\(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\. +query II valuesort SELECT 88 * COUNT ( * ) * + 47 AS col2, + ( 3 ) AS col2 +---- +3 +4136 query I rowsort label-8900 SELECT ALL - COUNT ( 71 ) @@ -46813,8 +47410,11 @@ SELECT ALL - 32 * COUNT ( * ) * - 75 AS col2, 2 * 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 5480 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col2" at position 0 and "Int64\(79\) \* Int64\(69\) \+ max\(DISTINCT Int64\(29\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 83 AS col2, + 79 * 69 + MAX ( DISTINCT 29 ) AS col2 +---- +-83 +5480 query II rowsort SELECT 46 AS col0, + ( + - 23 ) + 97 @@ -47228,8 +47828,11 @@ SELECT DISTINCT - + MIN ( DISTINCT + 32 ) # 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\(\-32\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 32 AS col1, + 72 AS col1 +---- +-32 +72 query I rowsort label-8996 SELECT COUNT ( * ) * - 23 - + COUNT ( * ) AS col2 @@ -47275,8 +47878,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 71 AS col0, 65 AS col0 +---- +65 +71 query I rowsort SELECT 88 + + - 81 @@ -47302,8 +47908,11 @@ SELECT COUNT ( * ) * - 5 AS col0, + 60 * + 41 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 33 AS col0, + 25 col0 +---- +25 +33 query II rowsort label-9010 SELECT 13 + - 85 AS col1, 83 + CASE COUNT ( * ) WHEN - COUNT ( * ) THEN + + 67 ELSE NULL END @@ -48485,8 +49094,11 @@ SELECT ALL 93, - 68 * + 40 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col0" at position 0 and "Int64\(98\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 94 AS col0, + 98 + + + COUNT ( * ) AS col0 +---- +-94 +99 query I rowsort SELECT ALL 19 + + 36 - 98 * + ( + 40 ) * + + 60 + - - 46 @@ -48511,8 +49123,11 @@ SELECT ALL 80 + - 49 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col1, 37 AS col1 +---- +1 +37 query I rowsort label-9239 SELECT - SUM ( 53 ) @@ -48808,8 +49423,11 @@ SELECT 32 * COUNT ( + + 52 ) AS col0, NULLIF ( + 30, - CASE 18 WHEN 80 THEN NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \+ coalesce\(Int64\(\-87\), Int64\(\-38\)\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 + + COALESCE ( - 87, ( + - 38 ) ) AS col0, 68 AS col0 +---- +-84 +68 query I rowsort label-9295 SELECT MIN ( 18 ) AS col1 @@ -48888,8 +49506,11 @@ SELECT DISTINCT + 27 * - COALESCE ( 48, + CAST ( NULL AS INTEGER ) + 73 * + 20 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) \+ Int64\(\-94\) \* Int64\(\-1\) \+ Int64\(22\) / \(\- Int64\(28\)\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 72 + - 94 * - 1 + + 22 / - + ( 28 ) AS col2, 84 AS col2 +---- +22 +84 query II rowsort SELECT - 92 AS col2, NULLIF ( 39, + - 29 ) @@ -48980,8 +49601,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) * + + 92 + 77 AS col0, + 55 AS col0 +---- +169 +55 query I rowsort SELECT - 99 + - 6 + - 80 @@ -49006,8 +49630,11 @@ SELECT + MAX ( DISTINCT + - 46 ) # 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 "Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 67 AS col0, 3 AS col0 +---- +3 +67 query I rowsort SELECT + 86 * 66 AS col1 @@ -49287,8 +49914,11 @@ SELECT CAST ( 97 AS INTEGER ) * - 17 * - 58 + - 34, + 43 + COALESCE ( - 41, + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 1080 # Datafusion - Expected - -2430 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* Int64\(\-30\) AS col0" at position 0 and "Int64\(54\) \* Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 36 * - 30 AS col0, 54 * - 45 AS col0 +---- +-2430 +1080 query I rowsort label-9384 SELECT 6 + COUNT ( 72 ) AS col2 @@ -49318,8 +49948,11 @@ SELECT ALL + COUNT ( * ) / - 39 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(\-23\)\)\) AS col0" at position 0 and "Int64\(92\) \+ Int64\(14\) \- Int64\(40\) \+ \(\- CAST\(NULL AS Int32\)\) / Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MAX ( - ( - 23 ) ) AS col0, 92 + 14 - 40 + - CAST ( NULL AS INTEGER ) / 48 AS col0 +---- +23 +NULL query I rowsort label-9390 SELECT 24 * - 14 * - 85 + 40 * - COUNT ( * ) AS col0 @@ -49424,8 +50057,11 @@ SELECT ALL - 22 - 62 AS col1 # 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 col1" at position 0 and "max\(Int64\(18\)\) / Int64\(44\) \* Int64\(76\) \* \(\- Int64\(24\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 29 AS col1, MAX ( + 18 ) / + 44 * 76 * - + 24 AS col1 +---- +0 +29 query I rowsort SELECT DISTINCT - NULLIF ( - 78, - - 58 ) @@ -49471,8 +50107,11 @@ SELECT 90 * + 72 * 9 * + MAX ( DISTINCT - - 31 ) * + - 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-21\)\) AS col1" at position 0 and "Int64\(20\) \- Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 21 AS col1, 20 - 46 AS col1 +---- +-26 +21 query II rowsort label-9418 SELECT ALL COALESCE ( + - COUNT ( * ), COUNT ( * ) * + 81 ) AS col0, + 95 @@ -49509,8 +50148,11 @@ SELECT ALL 38 + 11 * - COUNT ( - 84 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1560 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \+ \(\- Int64\(\-97\)\) \* \(\- Int64\(16\)\) AS col0" at position 0 and "Int64\(\-96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 8 + - - 97 * - + 16 AS col0, - 96 AS col0 +---- +-1560 +-96 query I rowsort SELECT 69 - + - 13 * + + 44 @@ -49525,8 +50167,11 @@ SELECT - MIN ( - - 2 ) AS col2 # 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\(\-10\)\)\) \+ Int64\(2\) \- coalesce\(\(\- Int64\(84\)\), \(\- Int64\(3\)\)\) AS col2" at position 0 and "Int64\(17\) / Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + + ( - - 10 ) ) + + 2 - COALESCE ( ( - + 84 ), - + 3 ) AS col2, + 17 / - 20 AS col2 +---- +0 +76 query I rowsort SELECT + + 3 + + + 0 AS col0 @@ -49580,8 +50225,11 @@ 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\(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\. +query II valuesort SELECT + 22 + + + SUM ( ALL + - 39 ) + + - 96 - + - ( + COUNT ( * ) ) * + + 64 / 38 * - 61 / + 86 + - - COUNT ( * ) - - 76 * + MAX ( 99 ) AS col2, MIN ( ALL + + 16 ) AS col2 +---- +16 +7412 query I rowsort label-9438 SELECT + 10 / - + 79 @@ -49721,8 +50369,11 @@ SELECT ALL - - 99 + 81 + - 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 118 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(40\) AS col0" at position 0 and "Int64\(10\) / Int64\(8\) \+ Int64\(43\) \+ Int64\(74\) / \(\- \(\- count\(DISTINCT Int64\(27\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 58 * + ( - CAST ( NULL AS INTEGER ) ) * 40 AS col0, + 10 / + + 8 + 43 + 74 / - - COUNT ( DISTINCT 27 ) AS col0 +---- +118 +NULL query I rowsort label-9466 SELECT DISTINCT MAX ( + + ( 54 ) ) @@ -49963,8 +50614,12 @@ 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\)\) 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\. +query III valuesort SELECT ALL 61, - ( 95 ) / 51 AS col2, - COALESCE ( MAX ( - + 42 ), ( COUNT ( * ) ) * 1 + - 93 ) * - 4 + - - 6 AS col2 +---- +-1 +-162 +61 query II rowsort SELECT DISTINCT 67, + 75 AS col1 @@ -50125,8 +50780,11 @@ SELECT ALL + 22 * + + 28 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) / Int64\(56\) AS col1" at position 0 and "Int64\(6\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 / + 56 AS col1, 6 * + COUNT ( * ) AS col1 +---- +1 +6 query I rowsort label-9542 SELECT DISTINCT + COALESCE ( - + 40, - - 62 / + 73 * COUNT ( * ) ) * - COUNT ( * ) AS col1 @@ -50693,8 +51351,11 @@ SELECT 1 + 45 - - 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\)" at position 0 and "Int64\(96\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 96, + 96 +---- +96 +96 query I rowsort label-9651 SELECT + SUM ( ALL + 74 ) @@ -50854,8 +51515,11 @@ SELECT + 66 * 77 / - 70 - - 39 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 AS col2, 63 AS col2 +---- +53 +63 query II rowsort SELECT + 39 + 74 AS col0, - 20 + - - 65 AS col1 @@ -51125,8 +51789,11 @@ SELECT - 63, - 14 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "coalesce\(\(\- CASE \(\- Int64\(97\)\) WHEN \(\- Int64\(87\)\) THEN NULL WHEN Int64\(84\) THEN NULL WHEN \(\- \(\- min\(Int64\(\-35\)\)\)\) THEN NULL ELSE Int64\(48\) END\), Int64\(48\), \(\- Int64\(60\)\) \+ Int64\(15\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 AS col2, COALESCE ( - CASE - + 97 WHEN - + 87 THEN NULL WHEN 84 THEN NULL WHEN - - MIN ( - 35 ) THEN NULL ELSE 48 END, 48, - + 60 + + 15 ) AS col2 +---- +-48 +8 query I rowsort SELECT DISTINCT 33 + + 35 + - - 85 AS col0 @@ -51543,8 +52210,11 @@ SELECT + 8 * - - 39 * + 3 * 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) / Int64\(\-89\) \+ Int64\(50\) AS col2" at position 0 and "CAST\(Int64\(\-97\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 36 / + + ( - 89 ) + + 50 AS col2, CAST ( + - 97 AS INTEGER ) AS col2 +---- +-97 +50 query II rowsort label-9813 SELECT CAST ( 59 AS INTEGER ) AS col2, + 80 * - - 5 @@ -51710,8 +52380,11 @@ SELECT DISTINCT 20 + + + 56 * ( - - 40 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - -43689 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ Int64\(45\) AS col0" at position 0 and "Int64\(\-26\) \* Int64\(\-33\) \* Int64\(\-51\) \+ Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 + + + 45 AS col0, - 26 * - 33 * + - 51 + + 69 AS col0 +---- +-43689 +70 query I rowsort SELECT ALL 19 * + ( + + 98 ) * - + 14 col0 @@ -51927,8 +52600,11 @@ SELECT + ( - 72 ) + + 97, 53 * + CAST ( - + 43 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 315 # Datafusion - Expected - -2242 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) / Int64\(8\) \* Int64\(\-45\) AS col2" at position 0 and "\(\- CAST\(sum\(\(\- Int64\(\-59\)\)\) AS Int32\)\) \* Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 59 / 8 * - 45 AS col2, - CAST ( + SUM ( ALL - - 59 ) AS INTEGER ) * + 38 AS col2 +---- +-2242 +315 query I rowsort label-9887 SELECT - 35 * 65 * - 21 + COUNT ( * ) @@ -52097,8 +52773,11 @@ SELECT DISTINCT + - CAST ( - + 89 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3612 # Datafusion - Expected - -146 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(86\) AS col2" at position 0 and "Int64\(\-70\) \- Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 42 * + 86 AS col2, - 70 - + 76 AS col2 +---- +-146 +3612 query I rowsort label-9919 SELECT DISTINCT - 28 / + 5 + 63 diff --git a/data/sqlite/random/expr/slt_good_23.slt b/data/sqlite/random/expr/slt_good_23.slt index 2254f8f..b8f017c 100644 --- a/data/sqlite/random/expr/slt_good_23.slt +++ b/data/sqlite/random/expr/slt_good_23.slt @@ -370,8 +370,11 @@ SELECT + 59 + - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 87 AS col2, 96 AS col2 +---- +-87 +96 query I rowsort label-65 SELECT - - CASE - 58 WHEN + + 18 THEN NULL WHEN COUNT ( * ) * + CASE WHEN NOT NULL <> NULL THEN 63 * - 22 END THEN - 11 ELSE CASE COUNT ( * ) WHEN 96 THEN + 80 ELSE NULL END / - 71 + + CASE + COUNT ( * ) + + 23 WHEN + ( + MAX ( + 96 ) ) THEN 59 END END AS col2 @@ -557,8 +560,11 @@ SELECT DISTINCT 49 - 90 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1794 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-78\)\) \* Int64\(23\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 78 * + 23 AS col2, + 30 AS col2 +---- +1794 +30 query I rowsort SELECT ALL - 53 * + + ( 67 ) + + 15 @@ -734,8 +740,11 @@ SELECT ALL - + SUM ( - 70 ) AS col2 # 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 "Int64\(0\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 AS col0, 23 AS col0 +---- +0 +23 query I rowsort label-135 SELECT ALL - + COUNT ( * ) * 98 + - ( - 53 ) AS col2 @@ -1430,8 +1439,11 @@ SELECT DISTINCT - 6 * - ( + - 76 ) + ( + 30 ) col2, 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7178 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \* Int64\(97\) AS col1" at position 0 and "Int64\(\-41\) \* \(\- Int64\(\-4\)\) \+ Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 74 * + + 97 AS col1, - 41 * - - 4 + + 82 AS col1 +---- +-82 +7178 query I rowsort SELECT ALL 79 * 88 AS col1 @@ -1576,8 +1588,11 @@ SELECT ALL - 87 + + 70 + + 86 + - 76 + + 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "Int64\(\-41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 64 AS col1, - 41 AS col1 +---- +-41 +64 query I rowsort label-297 SELECT - SUM ( - - 3 ) @@ -1700,8 +1715,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -198 # Datafusion - Expected - 327611 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* Int64\(\-99\) AS col2" at position 0 and "Int64\(21\) \+ \(\- Int64\(\-41\)\) \* Int64\(\-94\) \* \(\- Int64\(85\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 2 * + - 99 AS col2, + 21 + - ( - 41 ) * - 94 * - + 85 AS col2 +---- +-198 +327611 query I rowsort label-320 SELECT DISTINCT - 46 * ( + + CAST ( - AVG ( - - 94 ) AS INTEGER ) ) * - + ( 67 ) * 3 + - + ( 34 ) + - 28 + 25 AS col1 @@ -1903,8 +1921,11 @@ SELECT DISTINCT + 78 / 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - 259 # Datafusion - Expected - -5852 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* Int64\(37\) 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 II valuesort SELECT 7 * 37 AS col2, 76 * - + 77 AS col2 +---- +-5852 +259 query II rowsort SELECT 13 + 88, 5 col1 @@ -1935,8 +1956,11 @@ SELECT COUNT ( - 50 ) - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( 40 ) AS col1, + 44 AS col1 +---- +40 +44 query I rowsort SELECT - 1 + - + 5 AS col1 @@ -2525,8 +2549,11 @@ SELECT ALL - ( COALESCE ( + 70, + ( - 37 ) * 83 * + 64 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 6142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col1" at position 0 and "Int64\(83\) \* Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 22 col1, 83 * + + 74 col1 +---- +-22 +6142 query II rowsort label-477 SELECT DISTINCT - 93 AS col2, - 93 - - 78 / 24 AS col1 @@ -2537,8 +2564,11 @@ 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\(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\. +query II valuesort SELECT 32 * - COUNT ( * ) AS col0, 70 + - - SUM ( - - 15 ) col0 +---- +-32 +85 query II rowsort SELECT 67 * + 92, + 82 AS col2 @@ -2614,8 +2644,11 @@ SELECT - + COUNT ( * ) * + 10 + + 0 + - 46 + - COUNT ( - + 76 ) + - - 86 + - 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 19 AS col2, 5 col2 +---- +-19 +5 query I rowsort SELECT - 21 * + 19 @@ -2641,8 +2674,12 @@ SELECT ( + ( - - 83 ) ) AS col0 # Datafusion - Expected - -86 # Datafusion - Expected - 1 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) / Int64\(86\) AS col1" at position 1 and "Int64\(\-73\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 86, + ( + 93 ) / + 86 AS col1, - 73 AS col1 +---- +-73 +-86 +1 query I rowsort label-499 SELECT SUM ( ALL 39 ) * + 63 @@ -3227,8 +3264,11 @@ SELECT ALL - - COUNT ( DISTINCT + 69 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 50 AS col0, + COUNT ( * ) AS col0 +---- +-50 +1 query I rowsort label-611 SELECT - 48 * + NULLIF ( + - 0, 98 - + + 48 + - 6 / - COUNT ( DISTINCT - - 29 ) + + 93 + - 78 ) * 6 AS col2 @@ -3243,8 +3283,11 @@ SELECT - + 43 * + 46 + + ( + 28 ) * - 87 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 0 and "Int64\(\-89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 32 AS col1, - 89 AS col1 +---- +-89 +32 query I rowsort SELECT ALL - - NULLIF ( + 2, 50 ) @@ -3338,8 +3381,11 @@ SELECT DISTINCT MIN ( ALL - - 80 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- Int64\(22\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 83 * + COUNT ( * ) AS col1, - ( + 22 ) AS col1 +---- +-22 +83 query I rowsort SELECT ALL 42 - + 95 @@ -3440,8 +3486,11 @@ SELECT ALL 33 * COUNT ( * ) + + 85 * - + 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 154 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col0" at position 0 and "Int64\(63\) \+ Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 24 AS col0, + 63 + 91 AS col0 +---- +154 +24 query I rowsort label-651 SELECT DISTINCT + + COUNT ( * ) * + 63 * + CAST ( + - 44 AS INTEGER ) + + + COUNT ( * ) * - 24 + - + CAST ( NULL AS INTEGER ) AS col2 @@ -3462,8 +3511,11 @@ SELECT ALL + 31 * + - 20 + + + 9 * + 35 + 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 64 AS col1, - 82 AS col1 +---- +-82 +64 query I rowsort label-655 SELECT NULLIF ( - CAST ( - 46 AS INTEGER ), - 11 + COUNT ( * ) ) AS col1 @@ -3828,8 +3880,12 @@ SELECT ALL COUNT ( * ) - + 11 * - 72 AS col0, + CAST ( - 13 AS INTEGER ) + - 60 # Datafusion - Expected - -64 # Datafusion - Expected - 0 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 64 AS col2, COUNT ( ALL 76 ) + - + COUNT ( * ), 24 AS col2 +---- +-64 +0 +24 query I rowsort SELECT 90 + + 2 @@ -4124,8 +4180,11 @@ SELECT - 20 AS col0, 84 - 51 + + 24 / - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, 42 col2 +---- +42 +NULL query I rowsort label-781 SELECT ALL CAST ( + ( + 64 ) AS INTEGER ) AS col0 @@ -4279,8 +4338,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col0" at position 0 and "\(\- min\(DISTINCT Int64\(\-81\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 28 AS col0, - MIN ( DISTINCT - 81 ) AS col0 +---- +-28 +81 query I rowsort SELECT 72 * 65 * + 78 AS col0 @@ -4562,8 +4624,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -184 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \+ \(\- Int64\(89\)\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 95 + - ( + 89 ) AS col0, + 91 AS col0 +---- +-184 +91 query II rowsort label-864 SELECT ALL + NULLIF ( + + 89, + - 17 ), 89 + COUNT ( * ) * - + NULLIF ( - 54, + 37 * COUNT ( * ) ) col0 @@ -4685,8 +4750,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 96 * 36 col0, - COUNT ( * ) AS col0 +---- +-1 +3456 query I rowsort label-887 SELECT + 1 * - ( + ( + SUM ( DISTINCT + 78 ) ) ) / NULLIF ( + 15, + 38 ) / + + 38 AS col2 @@ -4864,8 +4932,11 @@ SELECT DISTINCT + 28 * COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 43 AS col1, - 56 AS col1 +---- +-56 +43 query I rowsort label-922 SELECT 33 + + NULLIF ( + - CAST ( NULL AS INTEGER ), MAX ( - 72 ) + - + COUNT ( DISTINCT - - 88 ) ) AS col0 @@ -4953,14 +5024,20 @@ SELECT ( + 65 ) + + 30 AS col1, + 86 * 27 + + 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 92 AS col2, + CAST ( NULL AS INTEGER ) AS col2 +---- +-92 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \+ sum\(DISTINCT Int64\(99\)\) AS col0" at position 0 and "Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 79 + + SUM ( DISTINCT 99 ) AS col0, + ( - 66 ) AS col0 +---- +-66 +20 query I rowsort SELECT ALL - + NULLIF ( 47, 61 ) col1 @@ -5027,8 +5104,11 @@ SELECT 14 + + 28 * - + 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 40 col2, 99 AS col2 +---- +40 +99 query I rowsort SELECT DISTINCT + 79 * + - 53 AS col1 @@ -5325,8 +5405,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\)" at position 0 and "Int64\(45\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 45, 45 +---- +45 +45 query I rowsort label-1010 SELECT + COUNT ( * ) / - MIN ( - 80 ) AS col1 @@ -5671,8 +5754,11 @@ SELECT + 37 * + 82 + - COUNT ( * ) * + 78 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col2" at position 0 and "\(\- sum\(Int64\(11\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 16 AS col2, - SUM ( ALL 11 ) AS col2 +---- +-11 +-16 query I rowsort SELECT ALL + 62 - + 3 col2 @@ -6092,8 +6178,11 @@ SELECT DISTINCT - 20 * 86 / 46 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "Int64\(\-8\) \+ Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 23 AS col1, - 8 + + 53 AS col1 +---- +23 +45 query I rowsort SELECT ALL 25 * 53 * + + 60 @@ -6532,8 +6621,11 @@ SELECT ALL + COALESCE ( + - 66, 77 ) AS col2, - 72 + - - 50 - ( + 30 ) + 4 * - - # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- sum\(Int64\(61\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, + ( - + SUM ( + 61 ) ) AS col0 +---- +-61 +1 query I rowsort SELECT - - 79 - - - NULLIF ( + 13, - 55 ) @@ -6549,8 +6641,12 @@ SELECT - 2 / - COUNT ( * ) # Datafusion - Expected - -67 # Datafusion - Expected - -2 # Datafusion - Expected - 1760 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) AS col0" at position 0 and "Int64\(\-2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 67 col0, - 2 AS col0, 32 * - - 55 +---- +-2 +-67 +1760 query I rowsort SELECT + ( 99 ) * 68 @@ -6937,8 +7033,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, + 68 AS col1 +---- +-1 +68 query I rowsort label-1317 SELECT + CAST ( NULL AS INTEGER ) + + 39 AS col0 @@ -7063,8 +7162,11 @@ SELECT + + MAX ( ALL + 58 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 57 AS col1, 59 col1 +---- +57 +59 query I rowsort label-1341 SELECT ALL + 56 * NULLIF ( + CAST ( - COUNT ( * ) AS INTEGER ), - 48 ) + - - 62 AS col0 @@ -7350,8 +7452,11 @@ SELECT ALL 82 + - 34 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(52\), \(\- Int64\(\-45\)\) \+ Int64\(38\) \+ Int64\(71\) \* \(\- Int64\(\-64\)\) \* Int64\(18\) / Int64\(10\) / Int64\(25\) / Int64\(7\) \* Int64\(\-28\) \+ \(\- max\(Int64\(89\)\)\) / \(\- Int64\(59\)\)\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( + ( 52 ), - - 45 + + 38 + + + 71 * - - 64 * 18 / 10 / 25 / + 7 * - 28 + - MAX ( + 89 ) / - + 59 ) AS col2, 42 AS col2 +---- +42 +52 query I rowsort SELECT + 74 + + - 89 @@ -9227,8 +9332,11 @@ SELECT ALL - NULLIF ( + 70, 21 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 185 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \+ Int64\(54\) \- \(\- \(\- Int64\(\-60\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 71 + 54 - - - ( - 60 ) col0, COUNT ( * ) AS col0 +---- +1 +185 query I rowsort label-1757 SELECT ( + 34 ) * - + MAX ( ALL + 1 ) + + 70 @@ -9620,8 +9728,11 @@ 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\(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\. +query II valuesort SELECT COALESCE ( + - 14, + 57 ) AS col0, COALESCE ( + + 30, + + 47 * 59 + + COUNT ( * ) + + 65 * 53 + MAX ( ( 75 ) ) * + 49 ) * 60 - 10 AS col0 +---- +-14 +1790 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -9715,8 +9826,11 @@ 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\(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\. +query II valuesort SELECT - - 45 + - - 94 + + 60 AS col1, CASE + 59 WHEN + + COUNT ( * ) / + 98 + + + 9 * - 52 THEN 35 END / 94 AS col1 +---- +199 +NULL query II rowsort label-1849 SELECT - + 28 AS col0, - 96 / 69 AS col2 @@ -9989,8 +10103,11 @@ SELECT COUNT ( * ) * 39 * + 23 + + 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- CAST\(Int64\(\-27\) AS Int32\) AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) - CAST ( - 27 AS INTEGER ) col2, + 86 col2 +---- +28 +86 query I rowsort label-1902 SELECT COUNT ( * ) + - 55 AS col0 @@ -10104,8 +10221,11 @@ NULL # 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 "Int64\(83\) \+ coalesce\(Int64\(9\), Int64\(77\)\) AS col1" at position 0 and "Int64\(78\) \+ Int64\(\-55\) \+ Int64\(63\) \+ Int64\(\-51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 83 + + COALESCE ( + + ( + + 9 ), 77 ) AS col1, + 78 + - 55 + + 63 + - 51 AS col1 +---- +35 +92 query I rowsort SELECT + 70 * 75 + - + 93 + - 93 AS col1 @@ -10550,8 +10670,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 12 col2, - COUNT ( * ) col2 +---- +-1 +-12 query I rowsort label-2008 SELECT + MIN ( 38 ) @@ -10868,8 +10991,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(90\) \* \(\- Int64\(88\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 AS col2, + COALESCE ( + 66, + COALESCE ( - - 8, + 78 - + + 91 + + ( - SUM ( DISTINCT 53 ) ) * + + COUNT ( * ) * + 90 * - + 88 ) ) AS col2 +---- +6 +66 query I rowsort label-2068 SELECT - ( - 48 ) + + + COUNT ( DISTINCT - 7 ) @@ -11021,8 +11147,11 @@ SELECT DISTINCT - 65 / - 15 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 94 AS col2, - 27 AS col2 +---- +-27 +94 query I rowsort SELECT DISTINCT - 68 * - 52 / + 23 + + 33 + - - 46 + + CASE - 38 WHEN - 1 THEN - 89 END @@ -11330,8 +11459,11 @@ 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\(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\. +query II valuesort SELECT ALL - 95 AS col0, 91 * + 74 + - + 88 + + 2 * + SUM ( DISTINCT - 53 ) * - COUNT ( * ) * SUM ( DISTINCT - 49 ) + + MAX ( ALL - 91 ) * - + 68 AS col0 +---- +-95 +7640 query I rowsort label-2156 SELECT SUM ( ALL - + 96 ) * - - 77 @@ -11388,8 +11520,11 @@ SELECT ALL - 16 + + 63 * + - 53 + CAST ( 87 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 52 AS col2, + 55 AS col2 +---- +-52 +55 query I rowsort label-2167 SELECT DISTINCT CAST ( - CAST ( 46 AS INTEGER ) AS INTEGER ) AS col1 @@ -11880,8 +12015,11 @@ SELECT + 25 * - - CASE - + 75 WHEN - 21 THEN NULL WHEN + 15 THEN COUNT ( * ) ELS # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 AS col2, - 76 AS col2 +---- +-76 +81 query I rowsort label-2261 SELECT ALL COUNT ( * ) + - 8 @@ -11891,8 +12029,11 @@ SELECT ALL COUNT ( * ) + - 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, 85 AS col1 +---- +85 +NULL query I rowsort label-2263 SELECT CAST ( - + 82 AS INTEGER ) / 33 - - 42 + - - 39 / + + 62 + + - 50 * - - 20 AS col1 @@ -11902,8 +12043,11 @@ 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 count\(\*\) \* Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 col0, COUNT ( * ) * - 1 AS col0 +---- +-1 +62 query I rowsort label-2265 SELECT 71 * - 94 * + - 20 * - - ( COUNT ( * ) ) @@ -12250,8 +12394,11 @@ SELECT - - 22 * + 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 427 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col0" at position 0 and "Int64\(7\) \* Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 25 AS col0, 7 * + 61 AS col0 +---- +-25 +427 query I rowsort label-2330 SELECT ALL + 27 * + 12 + - NULLIF ( + 52, + COUNT ( - - 57 ) * + COALESCE ( - 17, + 67 ) - + CASE 5 WHEN + + COUNT ( * ) * - COUNT ( * ) + + - 38 THEN NULL ELSE 30 * + - 46 END ) * - - 20 + + 19 / COALESCE ( - 67, - 13 * + 95, + + NULLIF ( + 40, COUNT ( * ) ) ) AS col1 @@ -12514,8 +12661,11 @@ SELECT 72 + - COUNT ( * ) * - 71 AS col1 # 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\(\-63\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 63 AS col0, 29 col0 +---- +-63 +29 query II rowsort label-2381 SELECT ALL 65 AS col1, 50 * - - MAX ( DISTINCT - 56 ) @@ -12749,8 +12899,11 @@ SELECT ALL + ( - + 76 ) + - 45 + ( - + COUNT ( * ) ) * + 85 + MAX ( + ( + 28 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 40 + COUNT ( * ) AS col0, + 42 col0 +---- +-39 +42 query I rowsort SELECT - ( - ( - 69 ) ) col2 @@ -12914,8 +13067,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 45 + - COUNT ( * ) col2, + 97 col2 +---- +-46 +97 query I rowsort label-2455 SELECT DISTINCT ( COUNT ( * ) ) + + NULLIF ( - COUNT ( * ), - ( + - 47 ) ) * - 80 @@ -13001,8 +13157,11 @@ SELECT - + 10 + 53 AS col2, 53 / + ( 35 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 4 - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0 +---- +-5 +NULL query I rowsort label-2472 SELECT + - 87 * - 2 + - CASE - + 45 WHEN - 8 + - COALESCE ( 16, - ( 30 ) ) + + CASE + 34 WHEN ( - 14 ) THEN + + 50 END * - - 75 + - NULLIF ( - 14, - - 82 ) THEN 58 * + COALESCE ( 2, + 96 + - 24 - + + MIN ( ALL + 39 ) / - COALESCE ( - CAST ( AVG ( 84 ) AS INTEGER ), + 92 * 9, - ( 9 ) * 12, 49 / + 4 ) * - 17 * ( COUNT ( DISTINCT 22 ) / + ( 11 - + 98 * - 42 ) - - 63 * - SUM ( DISTINCT + 86 ) ) ) END * 50 @@ -13268,8 +13427,11 @@ 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\(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\. +query II valuesort SELECT 13 - - 73 - COUNT ( * ) - - 79 * + + 79 + - - MAX ( 69 ) AS col0, 51 * - 23 AS col0 +---- +-1173 +6395 query I rowsort label-2521 SELECT DISTINCT 81 * + - COUNT ( * ) @@ -13451,8 +13613,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(80\) \* Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 16 * + ( - 24 ) AS col1, COUNT ( * ) * + 80 * - 40 AS col1 +---- +-3200 +384 query I rowsort label-2556 SELECT - - COUNT ( * ) * - - 3 col1 @@ -13930,8 +14095,11 @@ SELECT 22 * - CASE - 85 WHEN 62 + - + COUNT ( * ) THEN 88 ELSE + NULLIF ( - 41, # Datafusion - Datafusion expected results: # Datafusion - Expected - 2744792 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ \(\- \(\- Int64\(\-85\)\)\) \- coalesce\(Int64\(13\), Int64\(37\)\) \* Int64\(46\) \* \(\- Int64\(90\)\) \* Int64\(51\) AS col2" at position 0 and "Int64\(\-86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 + - ( - - 85 ) - COALESCE ( 13, + 37 ) * + 46 * - + 90 * + 51 AS col2, - 86 AS col2 +---- +-86 +2744792 query II rowsort label-2648 SELECT ALL 19 AS col2, COUNT ( * ) * - 9 @@ -14267,8 +14435,11 @@ SELECT - - 92 / - 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 AS col1, + 23 AS col1 +---- +23 +65 query I rowsort SELECT 72 * - + 21 * 8 @@ -14669,8 +14840,11 @@ SELECT + 81 * + 17 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) / \(\- CAST\(Int64\(\-73\) AS Int32\)\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 22 / + - CAST ( - 73 AS INTEGER ) AS col0, 95 AS col0 +---- +0 +95 query I rowsort SELECT + 34 + 30 @@ -14781,8 +14955,11 @@ SELECT - 96 + 41 - + 88 * 4 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 AS col0, 77 AS col0 +---- +77 +96 query I rowsort label-2812 SELECT COALESCE ( - - 74, + COUNT ( * ) * + 71 ) AS col2 @@ -15144,8 +15321,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col2" at position 0 and "Int64\(12\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 97 AS col2, 12 + + COUNT ( * ) AS col2 +---- +13 +97 query I rowsort label-2881 SELECT DISTINCT + COUNT ( * ) * - 50 * - 25 AS col2 @@ -15352,8 +15532,11 @@ SELECT ALL 37 / + + ( + 27 ) + + - 61 * - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 104 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col2" at position 0 and "Int64\(13\) \* Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 29 ) AS col2, 13 * 8 AS col2 +---- +-29 +104 query I rowsort label-2920 SELECT ALL + 90 * - + MIN ( - 43 ) AS col2 @@ -15519,8 +15702,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-15\) \+ Int64\(22\) \+ Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-21 +1838 query I rowsort label-2952 SELECT ALL NULLIF ( - + 62, - CAST ( - 96 AS INTEGER ) ) + 49 AS col2 @@ -15916,8 +16102,11 @@ SELECT ALL + NULLIF ( - 88, + 24 + + MAX ( CASE + 42 WHEN 33 THEN NULL ELSE 94 E # Datafusion - Datafusion expected results: # Datafusion - Expected - -667 # Datafusion - Expected - -420 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) \* Int64\(23\) AS col2" at position 0 and "Int64\(35\) \* Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 29 * ( 23 ) AS col2, + 35 * - 12 AS col2 +---- +-420 +-667 query I rowsort label-3027 SELECT DISTINCT + MIN ( 5 ) AS col0 @@ -15998,14 +16187,20 @@ SELECT ALL + 92 * - - 27 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-73\), Int64\(0\) \+ Int64\(\-45\), Int64\(33\)\)\) AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( + - 73, - 0 + + - 45, 33 ) AS col0, 53 AS col0 +---- +53 +73 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(1\)\) \* \(\- coalesce\(nullif\(max\(Int64\(85\)\), Int64\(\-51\) \* Int64\(62\) \* Int64\(18\) \- CASE Int64\(74\) WHEN Int64\(32\) THEN Int64\(13\) \* Int64\(3\) \- Int64\(\-34\) \+ Int64\(91\) / \(\- Int64\(62\)\) \- Int64\(\-62\) END \- Int64\(72\)\), Int64\(\-9\) \* Int64\(2\), Int64\(78\)\)\) \* Int64\(\-58\) \* CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 1 ) * - COALESCE ( + NULLIF ( MAX ( 85 ), + - 51 * 62 * + 18 - CASE 74 WHEN + 32 THEN + 13 * + 3 - - 34 + + 91 / - + 62 - - 62 END - + 72 ), - 9 * + 2, + 78 ) * - 58 * CAST ( NULL AS INTEGER ) AS col2, 49 AS col2 +---- +49 +NULL query II rowsort label-3043 SELECT CASE + 6 WHEN - 15 THEN + + 58 + - CAST ( NULL AS INTEGER ) / - + 85 WHEN AVG ( ALL - + 94 ) + + CASE 58 WHEN 9 * + 22 + 45 + 10 * COALESCE ( - - 84, + + 67 ) + + 22 + + 67 * + 30 / 32 + 21 THEN - + 32 + 80 + ( - MAX ( - + 72 ) ) * - AVG ( DISTINCT COALESCE ( - + 98, - 40 ) ) / - + COUNT ( * ) + 14 + - COALESCE ( 26, - 15 * COUNT ( * ) + - - COUNT ( * ) - 22 + + 16 ) ELSE NULL END + + 24 THEN NULL END AS col2, + MAX ( DISTINCT + - 78 ) - - + 79 AS col1 @@ -16107,8 +16302,11 @@ SELECT - - COUNT ( * ) - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col0, COUNT ( * ) - + 15 AS col0 +---- +-14 +1 query I rowsort label-3063 SELECT + + ( - COUNT ( * ) ) + + 0 AS col0 @@ -16338,8 +16536,11 @@ SELECT - MIN ( 65 ) 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 "CASE Int64\(28\) WHEN \(\- CASE Int64\(7\) WHEN \(\- nullif\(Int64\(\-55\), Int64\(\-73\) \- Int64\(\-46\)\)\) THEN Int64\(\-45\) END\) THEN Int64\(\-95\) \* Int64\(46\) \* Int64\(24\) END AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CASE 28 WHEN - + CASE 7 WHEN - NULLIF ( - 55, + - 73 - - 46 ) THEN - 45 END THEN - 95 * + 46 * 24 END AS col2, 20 AS col2 +---- +20 +NULL query I rowsort label-3108 SELECT ALL + 67 + COUNT ( * ) + - 80 + 16 - COUNT ( * ) - + 26 / - 95 + NULLIF ( - + 27, 50 + - + 9 - 19 ) AS col1 @@ -16557,8 +16758,11 @@ SELECT DISTINCT + NULLIF ( - + 22, 49 * + - CAST ( + 73 AS INTEGER ) + + - 87 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -97916 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* Int64\(72\) / Int64\(73\) / Int64\(55\) \+ Int64\(\-78\) \* \(\- nullif\(Int64\(15\), Int64\(89\)\)\) \* \(\- Int64\(84\)\) \+ Int64\(\-14\) \* \(\- min\(Int64\(26\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 40 * 72 / 73 / + 55 + + - 78 * + - NULLIF ( 15, + ( 89 ) ) * + ( - + 84 ) + - 14 * - MIN ( 26 ) AS col1, COUNT ( * ) AS col1 +---- +-97916 +1 query I rowsort label-3150 SELECT - 3 + + COALESCE ( CASE + 34 WHEN - 80 / + - 25 THEN + + 93 + - + 15 END, - - 93 ) - - NULLIF ( - COALESCE ( - - COUNT ( * ), - 92 ), - 68 ) / 63 * + + 35 * 76 * + + 28 + - + ( - - 9 ) AS col0 @@ -16593,8 +16797,11 @@ SELECT ALL - 69 + - 15 - 19 * + 15 * + + 39 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 3840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-70\)\)\) \+ \(\- Int64\(\-77\)\) \+ Int64\(\-19\) AS col0" at position 0 and "Int64\(40\) \* Int64\(24\) \* CAST\(Int64\(4\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - - 70 ) + - - 77 + - 19 AS col0, 40 * 24 * + CAST ( 4 AS INTEGER ) AS col0 +---- +-12 +3840 query II rowsort label-3157 SELECT ALL - + 21 / + - 54 AS col0, 24 + + 70 @@ -17341,8 +17548,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + COUNT ( * ) ) AS col2, 29 AS col2 +---- +-1 +29 query I rowsort SELECT ALL 92 - + + 86 AS col1 @@ -17437,8 +17647,11 @@ SELECT 22 + - + 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col2" at position 0 and "\(\- sum\(DISTINCT Int64\(\-94\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 AS col2, - SUM ( DISTINCT ( + ( + - 94 ) ) ) AS col2 +---- +36 +94 query II rowsort SELECT DISTINCT 34 AS col2, 88 * + 78 AS col1 @@ -18380,8 +18593,11 @@ SELECT - + NULLIF ( - COUNT ( * ), 10 * + 43 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -201 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(3\) \* Int64\(\-67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, 3 * - 67 AS col2 +---- +-201 +1 query I rowsort label-3500 SELECT ALL + + 74 / - CAST ( - 92 AS INTEGER ) @@ -18462,8 +18678,11 @@ SELECT + COUNT ( * ) - + - ( + 36 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 167444 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ Int64\(42\) \* Int64\(74\) \* Int64\(53\) \+ Int64\(\-92\) \* \(\- Int64\(29\)\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 52 + 42 * + 74 * + 53 + - 92 * - + 29 AS col0, + 96 col0 +---- +167444 +96 query I rowsort label-3516 SELECT DISTINCT 58 + MAX ( - ( + 50 ) ) AS col2 @@ -18729,8 +18948,11 @@ SELECT ALL - COALESCE ( - COUNT ( * ), + - 32 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(47\)\) AS col1" at position 0 and "Int64\(55\) \+ Int64\(\-9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + 47 ) AS col1, + 55 + - 9 AS col1 +---- +-47 +46 query I rowsort label-3567 SELECT 49 * + + 65 + COUNT ( * ) AS col0 @@ -18944,8 +19166,11 @@ SELECT - - COUNT ( * ) AS col2, + 13 AS col0 # 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 "Int64\(58\) / Int64\(68\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 58 / + 68 AS col1, + 79 AS col1 +---- +0 +79 query I rowsort label-3607 SELECT + ( + 85 ) / 41 AS col0 @@ -19175,8 +19400,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col1, 16 AS col1 +---- +16 +NULL query I rowsort label-3651 SELECT + 3 + + COALESCE ( + + 94, - ( + 89 ), - COUNT ( * ) ) + + COUNT ( DISTINCT + - 10 ) + - + COUNT ( * ) @@ -19396,8 +19624,11 @@ SELECT DISTINCT - 85 AS col0, - 7 * + 72 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(88\)\) AS col0" at position 0 and "sum\(DISTINCT Int64\(19\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 88 AS col0, + SUM ( DISTINCT + + 19 ) * COUNT ( * ) AS col0 +---- +-88 +19 query I rowsort label-3693 SELECT - COALESCE ( + 97, + 9, COUNT ( * ) + - 83 * - 63, + ( COUNT ( * ) ) * + 24 * + 54 - - COUNT ( * ) ) @@ -19576,8 +19807,11 @@ 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\(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\. +query II valuesort SELECT - - 48 + + + 73 + 30 AS col2, COUNT ( * ) + NULLIF ( + - 30, ( - 26 ) / + 86 ) col2 +---- +-29 +151 query I rowsort label-3727 SELECT - - 31 * 38 / CAST ( NULL AS INTEGER ) AS col0 @@ -19623,8 +19857,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 84 * + 65 - + - 24 + 28 - - 47 * - ( COUNT ( * ) ) AS col1, 45 AS col1 +---- +-5455 +45 query II rowsort SELECT ALL - 85 * - 64 AS col1, - 41 * + - NULLIF ( + 87, + NULLIF ( - 8, - 56 ) * + - 7 ) @@ -20195,8 +20432,11 @@ SELECT DISTINCT + COUNT ( * ) * - 79 * + - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(\-88\) \* coalesce\(Int64\(1\), Int64\(\-42\) / Int64\(73\) \+ Int64\(68\) \* Int64\(\-79\) \* \(\- Int64\(46\)\) \+ Int64\(\-34\)\) \+ CAST\(NULL AS Int32\) \* Int64\(95\) \+ \(\- nullif\(Int64\(10\), \(\- nullif\(Int64\(17\), Int64\(79\) \* Int64\(47\) \+ Int64\(67\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +89 +NULL query I rowsort label-3843 SELECT ALL - 29 * + ( + - 90 ) * COUNT ( * ) + - + 10 - COUNT ( * ) + + + 59 @@ -20329,8 +20569,11 @@ SELECT DISTINCT - - 78 + + 49 + - - 17 * - 93 # 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 "Int64\(3\) AS col2" at position 0 and "Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 3 AS col2, 8 AS col2 +---- +3 +8 query I rowsort SELECT DISTINCT + 69 * + 4 @@ -20404,8 +20647,11 @@ SELECT ALL 93 / 8 * + 69 * - 28 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 149 # Datafusion - Expected - 3510 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \- Int64\(\-51\) AS col2" at position 0 and "CAST\(\(\- Int64\(\-45\)\) AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 98 - - 51 AS col2, CAST ( + ( - - 45 ) AS INTEGER ) * + COUNT ( * ) * 78 AS col2 +---- +149 +3510 query I rowsort SELECT - CASE 17 WHEN - 22 + - - 24 + 76 + - 91 + + + AVG ( - 90 ) + + - 3 * + 80 / + 85 * - - 68 * 18 * 51 * - ( - 21 ) THEN + 96 - + 48 * + 73 + + 71 ELSE NULL END AS col2 @@ -20676,8 +20922,11 @@ SELECT ALL - 45, - 64 AS col2 # 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 "Int64\(54\) / Int64\(\-82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 2 AS col2, 54 / + - 82 col2 +---- +0 +2 query I rowsort label-3931 SELECT DISTINCT + 65 / - - COALESCE ( 29, - 7 ) @@ -20687,8 +20936,11 @@ SELECT DISTINCT + 65 / - - COALESCE ( 29, - 7 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col0" at position 0 and "\(\- CASE Int64\(\-73\) WHEN \(\- \(\- Int64\(36\)\)\) \* Int64\(60\) / Int64\(\-36\) \* \(\- avg\(DISTINCT Int64\(30\)\)\) \* Int64\(49\) \+ Int64\(\-43\) THEN NULL WHEN Int64\(23\) THEN NULL WHEN Int64\(\-56\) THEN Int64\(\-82\) \* Int64\(98\) \+ Int64\(84\) END\) \* count\(Int64\(1\)\) AS count\(\*\) \+ nullif\(coalesce\(Int64\(41\), Int64\(13\) \- Int64\(\-10\) \* Int64\(33\)\), Int64\(\-31\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-22 +NULL query I rowsort label-3933 SELECT 60 / 53 AS col0 @@ -20703,8 +20955,11 @@ 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\(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\. +query II valuesort 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 +---- +86 +NULL query I rowsort label-3936 SELECT ALL CAST ( NULL AS INTEGER ) - - 71 + - + MIN ( ALL - 0 ) @@ -20736,8 +20991,11 @@ SELECT ALL - + ( - - 97 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 1150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col0" at position 0 and "Int64\(50\) \* Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 29 AS col0, + 50 * 23 AS col0 +---- +-29 +1150 query II rowsort label-3942 SELECT DISTINCT - - 57 AS col2, + COUNT ( - CAST ( NULL AS INTEGER ) ) @@ -20828,8 +21086,11 @@ SELECT 51 - + 95, 43 + - + 13 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3823824 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* Int64\(87\) \* Int64\(16\) \* Int64\(\-67\) AS col2" at position 0 and "Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 41 * + 87 * + 16 * + - 67 AS col2, - 98 AS col2 +---- +-3823824 +-98 query I rowsort label-3959 SELECT DISTINCT CAST ( NULL AS INTEGER ) + 9 AS col0 @@ -21178,8 +21439,11 @@ SELECT + 33 * 63 + + 98 - CASE + 89 WHEN - + 32 THEN NULL ELSE - + COUNT ( + + ( # 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\(\-45\) AS col1" at position 0 and "Int64\(30\) \+ Int64\(60\) \+ Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 45 AS col1, + ( 30 ) + 60 + + 7 AS col1 +---- +-45 +97 query II rowsort SELECT DISTINCT - 18 + - 15 * 42 * 23 AS col1, - 13 @@ -21512,8 +21776,11 @@ SELECT - 60 + + - 72 + + ( + 18 ) * + 30 # 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 col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 AS col2, ( + + 52 ) AS col2 +---- +12 +52 query I rowsort label-4090 SELECT - - CAST ( NULL AS INTEGER ) / - + 8 + - - 68 @@ -21523,8 +21790,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "Int64\(82\) \+ Int64\(52\) / Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 84 col0, 82 + + 52 / + 48 AS col0 +---- +83 +84 query I rowsort SELECT - 26 + COALESCE ( - 98, - + COALESCE ( + 90, - + 59 ) * - + 17 ) @@ -21715,8 +21985,11 @@ SELECT DISTINCT + - ( - 73 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(4\), Int64\(\-84\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + NULLIF ( 4, - 84 ) AS col0, COUNT ( * ) AS col0 +---- +1 +4 query I rowsort label-4129 SELECT CAST ( + - 20 AS INTEGER ) AS col0 @@ -21746,8 +22019,11 @@ SELECT ALL + COALESCE ( + + COUNT ( * ), - 7, + - COALESCE ( - MIN ( ALL - 45 ), # Datafusion - Datafusion expected results: # Datafusion - Expected - 138 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* Int64\(9\) \+ Int64\(\-69\) AS col0" at position 0 and "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 23 * 9 + - 69 AS col0, + 61 AS col0 +---- +138 +61 query I rowsort SELECT 79 * 90 - + 7 AS col1 @@ -21807,8 +22083,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5016 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-6\)\) \* \(\- Int64\(11\)\) \* Int64\(\-76\) AS col2" at position 0 and "coalesce\(Int64\(83\), \(\- sum\(CAST\(NULL AS Int32\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( ALL - 6 ) * - ( + 11 ) * - 76 AS col2, + COALESCE ( + + 83, - SUM ( + + CAST ( NULL AS INTEGER ) ) ) AS col2 +---- +-5016 +83 query I rowsort SELECT ALL + 77 * - 60 @@ -21923,8 +22202,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "Int64\(\-59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 AS col1, - 59 AS col1 +---- +-59 +39 query I rowsort SELECT ALL - ( + 48 ) AS col2 @@ -21995,8 +22277,11 @@ SELECT 3 + + + ( 50 ) * - 41 * 40 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5127 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ Int64\(58\) \* \(\- min\(DISTINCT \(\- Int64\(\-90\)\)\)\) AS col0" at position 0 and "Int64\(\-95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 + + 58 * - MIN ( DISTINCT - - 90 ) AS col0, - 95 AS col0 +---- +-5127 +-95 query I rowsort SELECT DISTINCT - 90 - + 15 AS col0 @@ -22715,8 +23000,11 @@ SELECT + MIN ( ALL + - 28 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 5600 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- Int64\(3\)\) \* Int64\(82\) AS col0" at position 0 and "Int64\(80\) \* Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + CAST ( NULL AS INTEGER ) + - ( + + ( + 3 ) ) * + 82 AS col0, 80 * + + 70 AS col0 +---- +5600 +NULL query I rowsort label-4318 SELECT ALL COUNT ( DISTINCT ( + 88 ) ) - - - CASE + COUNT ( * ) WHEN 86 * - - 75 + + 36 + - + 45 * + 34 + - 96 THEN + 71 + - 45 ELSE NULL END AS col0 @@ -22743,8 +23031,11 @@ SELECT ALL 8 AS col0, 73 + + COUNT ( * ) + + 40 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - -6006 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col2" at position 0 and "Int64\(66\) \* Int64\(\-91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 59 AS col2, 66 * + - 91 AS col2 +---- +-6006 +59 query II rowsort SELECT DISTINCT 12, + 41 + - 83 AS col1 @@ -23019,8 +23310,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + MAX ( DISTINCT + ( - 14 ) ) AS col1, + 92 + + COUNT ( * ) + - 35 AS col1 +---- +-14 +58 query I rowsort SELECT ALL + ( + + 61 ) @@ -23061,8 +23355,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) * - + 41 col2, + 61 / + MAX ( DISTINCT 12 ) AS col2 +---- +41 +5 query I rowsort SELECT + - 75 * + 53 + 5 AS col2 @@ -23123,8 +23420,11 @@ SELECT ALL 73 + - 61 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "Int64\(87\) \+ \(\- Int64\(\-14\)\) \+ \(\- CAST\(NULL AS Int32\)\) / Int64\(57\) \* max\(Int64\(33\)\) / \(\- Int64\(\-38\)\) \+ Int64\(80\) \* Int64\(\-89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 AS col0, 87 + - - 14 + - CAST ( NULL AS INTEGER ) / + 57 * + MAX ( ALL + 33 ) / - - 38 + 80 * + ( - 89 ) AS col0 +---- +38 +NULL query I rowsort SELECT DISTINCT - 9 + + + 11 @@ -23170,8 +23470,11 @@ SELECT 48 - + + NULLIF ( + 16, 31 ) + - + 63 + - 52 / + - 3 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 873 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col2" at position 0 and "Int64\(9\) \* \(\- Int64\(\-97\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 51 AS col2, 9 * - + ( - 97 ) AS col2 +---- +-51 +873 query II rowsort SELECT - + 93 AS col0, + 85 @@ -23488,8 +23791,11 @@ NULL # 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\) AS col1" at position 0 and "Int64\(\-23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 77 AS col1, + ( - 23 ) AS col1 +---- +-23 +77 query II rowsort label-4465 SELECT - 30 / + - COUNT ( * ) + - 82, + 52 + - COALESCE ( + 83, 81 * 13, - - 69 * 67 ) + + 79 / COUNT ( * ) AS col0 @@ -23593,8 +23899,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 7 AS col0, - COUNT ( * ) AS col0 +---- +-1 +7 query I rowsort label-4485 SELECT + MIN ( ALL + 67 ) @@ -23614,8 +23923,11 @@ SELECT + MIN ( + + 83 ) * + 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1820 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(26\) \* Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, 26 * + 70 AS col2 +---- +1 +1820 query II rowsort SELECT DISTINCT 72 * - 86, - 80 AS col0 @@ -23637,8 +23949,12 @@ SELECT 14 * 22 # Datafusion - Expected - -73 # Datafusion - Expected - -82 # Datafusion - Expected - -1968 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col2" at position 0 and "Int64\(\-82\) \* Int64\(24\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 73 AS col2, COUNT ( * ) * COUNT ( * ) + + - 83 AS col0, - 82 * 24 AS col2 +---- +-1968 +-73 +-82 query I rowsort label-4493 SELECT - 49 * MIN ( DISTINCT + + 43 ) AS col2 @@ -23764,8 +24080,11 @@ SELECT ALL + 0 * - + 31 AS col1, ( - 1 ) * - - 23 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -128 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) \- Int64\(82\) AS col0" at position 0 and "Int64\(\-47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 46 - 82 AS col0, - 47 AS col0 +---- +-128 +-47 query II rowsort label-4517 SELECT 42 * - - 84, - 43 + + 0 / - 41 AS col2 @@ -23926,8 +24245,11 @@ SELECT 78 * - + 30 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col0" at position 0 and "Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 23 AS col0, 44 AS col0 +---- +-23 +44 query I rowsort label-4548 SELECT + 83 * COUNT ( * ) + 8 * - + CASE COUNT ( * ) WHEN + 13 THEN + 40 ELSE NULL END @@ -23982,8 +24304,11 @@ SELECT - 95 * + MIN ( ALL - 26 ) * + 8 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col0, 63 AS col0 +---- +1 +63 query I rowsort label-4559 SELECT - 71 / + - CAST ( NULL AS INTEGER ) @@ -24366,8 +24691,11 @@ SELECT ALL - 43 * 76 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-38\) AS Int32\)\) \- Int64\(31\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - CAST ( + - 38 AS INTEGER ) - 31 AS col0, 75 AS col0 +---- +7 +75 query I rowsort SELECT DISTINCT - 10 * + + ( + 70 ) @@ -24587,8 +24915,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 65 AS col0, COUNT ( * ) + + - 32 AS col0 +---- +-31 +-65 query II rowsort label-4674 SELECT COUNT ( * ) + + 15, - 3 * + 6 AS col0 @@ -25937,8 +26268,11 @@ SELECT - + ( - - 2 ), - MIN ( + + 85 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 93 -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 "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 77 / + + 9 col0, + 93 col0 +---- +-8 +93 query I rowsort label-4934 SELECT + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / 69 AS col1 @@ -26223,8 +26557,11 @@ SELECT 40 * - 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "Int64\(\-11\) \+ CAST\(NULL AS Int32\) \* Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 29 AS col1, - 11 + + CAST ( NULL AS INTEGER ) * 86 col1 +---- +29 +NULL query I rowsort label-4987 SELECT ALL - COUNT ( - 24 ) @@ -26271,8 +26608,11 @@ 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\(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\. +query II valuesort SELECT 27 AS col0, CASE COUNT ( * ) WHEN - - 17 + 96 THEN NULL WHEN - + ( 77 ) / + COALESCE ( 28 * - 27, 22 + - 0 ) THEN - COUNT ( * ) END col0 +---- +27 +NULL query I rowsort label-4996 SELECT + SUM ( 15 ) / - - COUNT ( * ) AS col0 @@ -26593,8 +26933,11 @@ SELECT - - NULLIF ( - + 71, - ( 46 ) ) + 97 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - -300 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col2" at position 0 and "Int64\(58\) / Int64\(11\) \* \(\- Int64\(60\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 60 AS col2, 58 / 11 * - + 60 AS col2 +---- +-300 +-60 query I rowsort label-5058 SELECT ALL COUNT ( * ) * + 37 * 49 + 58 + - COUNT ( DISTINCT + 66 ) * - 50 AS col0 @@ -26789,8 +27132,11 @@ SELECT - + 83 * 95 AS col1, 26 * + 35 + 50 * + - 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1001 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(77\)\) \* Int64\(13\) AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 77 * 13 AS col1, 78 col1 +---- +-1001 +78 query I rowsort label-5095 SELECT ALL - 55 / - CAST ( NULL AS INTEGER ) AS col1 @@ -27048,8 +27394,11 @@ SELECT ALL - 64 + - 48 # 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 "Int64\(\-20\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 AS col0, 49 AS col0 +---- +-20 +49 query I rowsort label-5144 SELECT COUNT ( * ) + - + 60 + - - 91 @@ -27475,8 +27824,11 @@ SELECT ALL + + 74 + - - 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col1" at position 0 and "Int64\(\-83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 2 AS col1, - 83 AS col1 +---- +-83 +2 query I rowsort label-5226 SELECT MIN ( DISTINCT + NULLIF ( + 56, - 23 * 64 ) ) * - 82 * - ( - 53 ) * COUNT ( * ) AS col1 @@ -27812,8 +28164,11 @@ SELECT - SUM ( ALL 70 ) AS col1 # 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\(93\) AS col2" at position 0 and "Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 AS col2, - 49 AS col2 +---- +-49 +93 query I rowsort label-5290 SELECT - SUM ( - 25 ) AS col1 @@ -27841,8 +28196,11 @@ SELECT - COALESCE ( MIN ( 15 ), - 62 + - COUNT ( * ) + - COUNT ( * ) + + 59, - 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 7332 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(78\) \* Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, + 78 * 94 AS col2 +---- +1 +7332 query I rowsort label-5295 SELECT ALL 66 / - ( + 16 ) col0 @@ -27862,8 +28220,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 351 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) \* Int64\(\-27\) AS col2" at position 0 and "Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 13 * - 27 AS col2, 92 AS col2 +---- +351 +92 query II rowsort SELECT ALL + 80, 41 AS col1 @@ -27919,8 +28280,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4224 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \* Int64\(64\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 66 * + 64 AS col0, + 79 AS col0 +---- +4224 +79 query II rowsort label-5309 SELECT DISTINCT + 39 AS col2, - 97 * + COALESCE ( - + MIN ( - 9 ), - 95 * + 48 + 52, + 36 ) + + 93 @@ -28228,14 +28592,20 @@ SELECT ALL - 80 - + NULLIF ( NULLIF ( + 95, - 98 ), - 16 + - - 83 * + 22 + ( + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 376 # Datafusion - Expected - -115 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-4\) AS Int32\) \* Int64\(\-94\) AS col2" at position 0 and "Int64\(\-72\) \+ Int64\(\-43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( - 4 AS INTEGER ) * - 94 AS col2, - 72 + - 43 AS col2 +---- +-115 +376 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, COUNT ( * ) * ( - 90 ) AS col2 +---- +-90 +1 query I rowsort SELECT 10 * 19 @@ -28807,8 +29177,11 @@ 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\(1\)\) AS count\(\*\)\) \* \(\- Int64\(62\)\) \+ Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 59 + + + MIN ( + 56 ) - + 45 * 49 * + 71 col1, - COUNT ( * ) * + - ( + 62 ) + - 47 AS col1 +---- +-156440 +15 query I rowsort label-5477 SELECT + COUNT ( DISTINCT 53 ) AS col2 @@ -29123,8 +29496,11 @@ SELECT ALL + + 22 + 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 104 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-63\)\) \+ Int64\(41\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 63 + ( + 41 ) AS col0, 97 AS col0 +---- +104 +97 query I rowsort label-5538 SELECT ALL + + COUNT ( * ) + - 37 @@ -29253,8 +29629,11 @@ SELECT + 24 * 97 / + - 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3384 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \* Int64\(94\) AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 36 * + 94 AS col0, + 34 AS col0 +---- +3384 +34 query I rowsort SELECT ( + ( - 73 ) ) @@ -29469,8 +29848,11 @@ SELECT DISTINCT - 59 + - - 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 177 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "Int64\(78\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- CAST\(Int64\(99\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 col0, + 78 * + + ( + COUNT ( * ) ) + - ( - CAST ( 99 AS INTEGER ) ) AS col0 +---- +177 +59 query II rowsort label-5604 SELECT ALL - 46 AS col2, - 38 + + COUNT ( - - 77 ) AS col0 @@ -29627,8 +30009,11 @@ SELECT 81 * - SUM ( - - 94 ) * + 6 AS col0, - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - -120 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* coalesce\(Int64\(51\), Int64\(89\) \* \(\- Int64\(64\)\) / Int64\(51\) \* Int64\(82\) \+ Int64\(\-87\)\) / \(\- Int64\(63\)\) \+ Int64\(11\) \+ Int64\(17\) \+ Int64\(0\) \* Int64\(32\) \* Int64\(\-50\) \* \(\- Int64\(80\)\) \+ Int64\(\-96\) \- Int64\(43\) / Int64\(\-2\) \+ Int64\(\-41\) AS col0" at position 0 and "Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 * COALESCE ( 51, 89 * - + 64 / + 51 * 82 + - 87 ) / - + 63 + + 11 + + + 17 + - 0 * 32 * + - 50 * - + 80 + - 96 - + 43 / + - 2 + - 41 AS col0, - 80 AS col0 +---- +-120 +-80 query II rowsort SELECT + + 9 + + + 85, 51 * 70 col0 @@ -29650,8 +30035,11 @@ SELECT DISTINCT + + COALESCE ( 68, - + 68 * + 68 + - - 42, 75 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 AS col1, 65 col1 +---- +65 +88 query II rowsort SELECT ALL + 63 AS col2, 52 AS col1 @@ -29714,8 +30102,11 @@ SELECT + - COUNT ( * ) * + 10 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 col0, 46 AS col0 +---- +12 +46 query I rowsort SELECT ALL 67 + 68 col1 @@ -29906,8 +30297,11 @@ SELECT - SUM ( DISTINCT NULLIF ( - 60, 56 ) ) * - 78 + 34 * + 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-57\) \* Int64\(85\) / Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, - 57 * 85 / + + 67 AS col0 +---- +-72 +1 query I rowsort label-5685 SELECT ( - 8 ) / + 57 - - 19 + + 13 @@ -30377,14 +30771,20 @@ SELECT - - ( 44 ) / + ( + 1 ) + + 7 + - + 85 + - - 3 / - NULLIF ( MAX ( + 21 ), # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 190 -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\(95\)\)\) \+ Int64\(96\) \+ Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 97 AS col1, COUNT ( - + 95 ) + + 96 + 93 AS col1 +---- +190 +97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - -6231 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col1" at position 0 and "Int64\(67\) \* Int64\(\-93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 55 AS col1, + 67 * - 93 AS col1 +---- +-6231 +55 query II rowsort SELECT + + 14, 93 AS col1 @@ -30407,8 +30807,11 @@ SELECT 19 * 6 / - + 85 + 19 AS col0, + 96 + - - 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 1288548 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "Int64\(\-82\) \* Int64\(\-81\) \* Int64\(97\) \* Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 65 AS col0, - 82 * + - 81 * 97 * + 2 AS col0 +---- +1288548 +65 query I rowsort label-5781 SELECT - NULLIF ( 68, - + 73 * + + 75 + - - COUNT ( * ) + + 59 + + CAST ( NULL AS INTEGER ) * + - 61 * + - 95 + + - COUNT ( * ) ) * + + 3 + ( 7 ) @@ -30504,8 +30907,11 @@ SELECT 97 / + MIN ( + + 48 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1216 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* Int64\(38\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 * 38 AS col1, + 22 AS col1 +---- +1216 +22 query I rowsort label-5800 SELECT DISTINCT - NULLIF ( + 75, 25 + - - COUNT ( * ) ) AS col1 @@ -30746,8 +31152,11 @@ SELECT 66 + + + ( 75 ) + COUNT ( * ) AS col1, + 76 - + NULLIF ( 75, - - 59 ) + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "min\(Int64\(33\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 16 col1, MIN ( 33 ) AS col1 +---- +16 +33 query III rowsort label-5846 SELECT + 23 + - 75 * COUNT ( * ) AS col0, + 1 / 95 - 12, + + 46 AS col1 @@ -31112,8 +31521,11 @@ SELECT NULLIF ( 25, + CAST ( NULL AS INTEGER ) + 98 + 42 ) * - ( + ( + 28 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 65 * - CAST ( NULL AS INTEGER ) AS col0, 6 AS col0 +---- +6 +NULL query I rowsort SELECT 0 * + 17 AS col1 @@ -31324,8 +31736,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / Int64\(22\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) / 22 col2, 54 AS col2 +---- +54 +NULL query I rowsort label-5954 SELECT COUNT ( - + 96 ) * + 55 @@ -31416,14 +31831,20 @@ SELECT DISTINCT 31 * - - 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 86 AS col1, 65 AS col1 +---- +65 +86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 178 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "Int64\(93\) \+ Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 38 AS col0, 93 + 85 AS col0 +---- +178 +38 query I rowsort label-5973 SELECT + 71 + - 76 - + COUNT ( * ) @@ -31448,8 +31869,11 @@ SELECT + 65 * 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 97 AS col2, 34 AS col2 +---- +-97 +34 query II rowsort SELECT ALL 49 AS col1, 12 + ( + 14 ) col0 @@ -31987,8 +32411,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) + + + 10 AS col1, + ( - 70 ) AS col1 +---- +-70 +11 query II rowsort label-6081 SELECT DISTINCT + COUNT ( * ) AS col0, + 19 AS col1 @@ -32092,8 +32519,11 @@ SELECT - NULLIF ( + COUNT ( - 33 ), - 72 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(96\), \(\- CAST\(NULL AS Int32\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(93\) \+ \(\- Int64\(1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( + 96, - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) ) + + + COUNT ( * ) AS col2, 93 + - + 1 AS col2 +---- +92 +97 query I rowsort SELECT - 41 * - 59 AS col2 @@ -32358,14 +32788,20 @@ SELECT COALESCE ( - + 51, - + ( + - 1 ) - + 30 + + 23 * - + 9 * 44 + 50 * ( 76 ) # 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 "\(\- CASE Int64\(89\) WHEN \(\- min\(DISTINCT Int64\(\-90\)\)\) THEN \(\- Int64\(11\)\) 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 II valuesort SELECT ALL - CASE + 89 WHEN - MIN ( DISTINCT - 90 ) THEN - + 11 END AS col2, 58 AS col2 +---- +58 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(56\)\) AS col2" at position 0 and "Int64\(\-26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + 56 ) AS col2, - 26 AS col2 +---- +-26 +-56 query II rowsort label-6153 SELECT ALL - 85 - 53 + - COUNT ( * ) + NULLIF ( + COUNT ( * ), 9 ) * - NULLIF ( - + 24, COUNT ( * ) - COUNT ( + 46 ) + - 2 * + 36 + - + 1 ) AS col0, + 63 * 64 col1 @@ -32991,8 +33427,11 @@ SELECT - 11 + 93 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 4543 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(\-21\)\) AS col0" at position 0 and "Int64\(\-59\) \* \(\- sum\(\(\- Int64\(\-77\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( DISTINCT + - 21 ) AS col0, - 59 * - + SUM ( ALL - - 77 ) AS col0 +---- +-21 +4543 query I rowsort SELECT - 78 + + 46 * + 84 AS col2 @@ -33023,8 +33462,12 @@ SELECT 79 * + + 76 # Datafusion - Expected - -4783 # Datafusion - Expected - 2 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* \(\- nullif\(\(\- \(\- Int64\(\-94\)\)\), \(\- Int64\(44\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-98\)\)\) \* \(\- Int64\(50\)\) \* Int64\(\-8\) \* Int64\(0\) / Int64\(\-48\) \* Int64\(25\) / \(\- Int64\(81\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-31\) \+ Int64\(\-90\) \+ CAST\(Int64\(\-74\) AS Int32\) \* Int64\(63\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-4783 +-95 +2 query I rowsort label-6278 SELECT SUM ( DISTINCT + - 79 ) + - + 66 + - + ( ( MAX ( + - 9 ) ) ) @@ -33170,8 +33613,11 @@ SELECT ALL 83 * + + CAST ( + + 0 AS INTEGER ) + - - 56 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - -141 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col1" at position 0 and "Int64\(\-96\) \+ Int64\(\-45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 AS col1, - 96 + + - 45 AS col1 +---- +-141 +-55 query I rowsort label-6306 SELECT ALL 23 / + + 45 AS col1 @@ -33415,8 +33861,11 @@ SELECT + 46 * - - 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 53 AS col2, + 79 AS col2 +---- +53 +79 query I rowsort SELECT - 22 * 13 @@ -34041,8 +34490,11 @@ SELECT + 24 + - 11, - 8 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2905 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \* Int64\(83\) AS col2" at position 0 and "Int64\(\-22\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 35 * 83 AS col2, - 22 * - CAST ( NULL AS INTEGER ) AS col2 +---- +-2905 +NULL query I rowsort SELECT + 94 * - 51 AS col0 @@ -35085,8 +35537,11 @@ SELECT - 74, 33 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 AS col1, COUNT ( * ) col1 +---- +1 +84 query II rowsort SELECT - 7 AS col1, 92 AS col0 @@ -35368,8 +35823,11 @@ SELECT ALL 5 + - + 77 * + COUNT ( * ) * 99 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -588525 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \+ Int64\(33\) AS col2" at position 0 and "Int64\(7\) \* coalesce\(Int64\(95\), Int64\(\-28\), Int64\(\-71\) \+ \(\- coalesce\(Int64\(82\), \(\- \(\- Int64\(47\)\)\), Int64\(90\) / Int64\(79\)\)\)\) \* Int64\(\-15\) \* Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 45 + + 33 AS col2, 7 * + COALESCE ( + 95, - 28, - 71 + + - COALESCE ( ( + 82 ), - - ( + + 47 ), + 90 / 79 ) ) * ( - 15 * ( 59 ) ) AS col2 +---- +-588525 +78 query I rowsort label-6729 SELECT ( - 55 ) + COUNT ( * ) + - 10 @@ -35540,8 +35998,11 @@ SELECT 73 - ( - 9 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col0" at position 0 and "Int64\(\-38\) \+ \(\- Int64\(18\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 5 AS col0, - 38 + - + 18 AS col0 +---- +-5 +-56 query I rowsort label-6762 SELECT 82 - - 64 - CASE 46 WHEN - - 92 THEN + + ( - 82 ) WHEN - 25 THEN + 47 * + 68 ELSE NULL END + - + COUNT ( 1 ) @@ -35642,8 +36103,11 @@ SELECT + COUNT ( * ) AS col1, - 76 + + ( - - 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -338272 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* \(\- Int64\(88\)\) \* Int64\(62\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 62 * - + 88 * + 62 AS col1, COUNT ( * ) AS col1 +---- +-338272 +1 query I rowsort label-6781 SELECT ALL 69 * + - MAX ( CAST ( + - 75 AS INTEGER ) ) + + 14 + - CAST ( + 96 AS INTEGER ) * 97 @@ -35776,8 +36240,11 @@ SELECT ALL - NULLIF ( - - ( + 77 ), - NULLIF ( - + 8, 20 * CAST ( NULL AS INTEGE # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-35\)\) \* count\(DISTINCT Int64\(24\)\) \* count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "nullif\(Int64\(66\), coalesce\(count\(Int64\(1\)\) AS count\(\*\), count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(55\) \- Int64\(5\)\) / Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 35 * COUNT ( DISTINCT 24 ) * + COUNT ( * ) / COUNT ( * ) AS col1, + NULLIF ( 66, COALESCE ( COUNT ( * ), COUNT ( * ) ) * + + 55 - 5 ) / 43 AS col1 +---- +1 +35 query I rowsort label-6807 SELECT - ( + CAST ( NULL AS INTEGER ) ) + - 25 AS col0 @@ -35948,8 +36415,11 @@ SELECT - 16 - + 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 72 AS col2, + 45 AS col2 +---- +-72 +45 query I rowsort label-6840 SELECT + CAST ( + - 77 AS INTEGER ) * - - 57 + - 91 * + 84 @@ -36018,8 +36488,11 @@ SELECT ALL - NULLIF ( - 63, - + ( 80 ) * - AVG ( DISTINCT + 70 ) + - 92 + + 92 + # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 61 AS col1, 67 AS col1 +---- +61 +67 query I rowsort SELECT DISTINCT + 44 + - - 92 @@ -36137,8 +36610,11 @@ SELECT 98 + + NULLIF ( + COUNT ( * ), - COALESCE ( - 10, - COUNT ( - - 32 ) ) * # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 39 AS col1, + 73 col1 +---- +39 +73 query II rowsort SELECT ALL 44 + - - 61 * - - 68 * - + 53 col2, COALESCE ( + + 23, - + 63 ) AS col0 @@ -36313,8 +36789,11 @@ SELECT ALL - MAX ( ALL 43 ) + + - SUM ( ALL + - 70 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) / Int64\(\-61\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 27 / - 61 AS col0, + COUNT ( * ) AS col0 +---- +0 +1 query I rowsort SELECT ALL + 53 + 87 AS col1 @@ -36622,8 +37101,11 @@ SELECT - 34 / - - 55 + + 68 + 56 + 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col1" at position 0 and "Int64\(\-4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 37 AS col1, + ( - 4 ) AS col1 +---- +-37 +-4 query I rowsort label-6966 SELECT ALL + 95 * 86 * + 37 - + CAST ( NULL AS INTEGER ) + + 63 * - 12 @@ -36903,8 +37385,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 83 AS col0, 63 AS col0 +---- +63 +83 query I rowsort label-7021 SELECT ALL - 20 * + - 7 * + CAST ( NULL AS INTEGER ) + - 20 AS col1 @@ -37001,8 +37486,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(21\) \- Int64\(44\) \- Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 76 AS col0, COUNT ( * ) + + 21 - 44 - + 77 AS col0 +---- +-99 +76 query I rowsort label-7040 SELECT - COUNT ( + ( - + 24 ) ) AS col1 @@ -37096,8 +37584,11 @@ SELECT ALL + + 34, - ( - COALESCE ( - - 93, + 30 + - 40 ) ) - + 58 AS col1, - CO # Datafusion - Datafusion expected results: # Datafusion - Expected - 450 # Datafusion - Expected - 2552 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(63\)\) \* Int64\(\-7\) \+ Int64\(9\) AS col2" at position 0 and "Int64\(88\) \* Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 63 * + ( - 7 ) + + 9 AS col2, 88 * + 29 AS col2 +---- +2552 +450 query II rowsort SELECT + 5 col0, + NULLIF ( - + 31, - ( + + 38 ) + + 61 ) @@ -37226,8 +37717,11 @@ SELECT + 51 + ( - + 20 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 5135 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \- CAST\(Int64\(66\) AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- CAST\(NULL AS Int32\) \* Int64\(\-52\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(47\) \+ Int64\(53\) \* CASE nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(38\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN Int64\(58\) \+ Int64\(86\) \* Int64\(68\) \+ \(\- \(\- CAST\(Int64\(88\) AS Int32\)\)\) \* Int64\(53\) \+ \(\- Int64\(6\)\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(0\) THEN Int64\(68\) ELSE Int64\(96\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +5135 +NULL query I rowsort SELECT + 69 * - 0 AS col1 @@ -37273,8 +37767,11 @@ SELECT - 62 / + + 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19097 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(coalesce\(\(\- Int64\(20\)\), Int64\(\-65\), Int64\(96\) / Int64\(\-7\) \+ Int64\(\-98\), \(\- Int64\(\-61\)\) \* Int64\(6\)\), Int64\(\-25\)\)\) / \(\- CAST\(Int64\(58\) AS Int32\)\) \+ \(\- Int64\(5\)\) \* Int64\(91\) \* Int64\(42\) \+ Int64\(13\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COALESCE ( + COALESCE ( - + 20, - 65, ( 96 ) / - 7 + - 98, - - 61 * 6 ), - 25 ) / - CAST ( 58 AS INTEGER ) + - + 5 * + 91 * + 42 + + 13 AS col0, 81 AS col0 +---- +-19097 +81 query I rowsort label-7092 SELECT ALL - 23 * + - 75 - - CASE + 14 WHEN + COUNT ( + ( - 83 ) ) - - 93 THEN - 36 WHEN + + CAST ( 12 AS INTEGER ) THEN NULL END @@ -37320,8 +37817,11 @@ SELECT ( - - ( + CASE + CAST ( NULLIF ( - + 27, 29 + ( - 79 ) ) AS INTEGER ) WHE # Datafusion - Datafusion expected results: # Datafusion - Expected - -7337 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(99\)\) AS Int32\) \* \(\- Int64\(\-43\)\) \+ Int64\(\-55\) \* Int64\(56\) AS col0" at position 0 and "Int64\(16\) \* nullif\(count\(Int64\(82\)\), Int64\(90\) \* Int64\(62\) \+ \(\- CAST\(Int64\(76\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - + 99 AS INTEGER ) * - - 43 + - 55 * + 56 AS col0, + 16 * + NULLIF ( + + COUNT ( ALL 82 ), + 90 * 62 + - CAST ( 76 AS INTEGER ) ) AS col0 +---- +-7337 +16 query II rowsort SELECT DISTINCT - 27 + + - 43, NULLIF ( + 34, 19 ) AS col0 @@ -37569,8 +38069,11 @@ SELECT 45 + - 39 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(49\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 56 + + COUNT ( * ) AS col1, + 49 * + COUNT ( * ) / - 62 AS col1 +---- +0 +57 query I rowsort SELECT 55 + ( 3 ) @@ -37904,8 +38407,11 @@ SELECT 58 + + 94 * 73 * - + 69 * - 10 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) AS col1" at position 0 and "count\(Int64\(\-2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 26 AS col1, ( + + COUNT ( - 2 ) ) AS col1 +---- +-26 +1 query I rowsort SELECT - 69 + - 26 + + 88 * + - 62 AS col0 @@ -37951,8 +38457,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + + 11 AS col1, 92 AS col1 +---- +12 +92 query I rowsort label-7221 SELECT ALL + CAST ( + 3 AS INTEGER ) + - 48 col0 @@ -38072,8 +38581,11 @@ SELECT COUNT ( * ) / - - 51 AS col2, - 99 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \- \(\- Int64\(\-55\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 - - - 55 AS col2, COUNT ( * ) AS col2 +---- +-49 +1 query I rowsort label-7243 SELECT ALL MIN ( 53 ) * - 59 + - 99 @@ -38268,8 +38780,11 @@ SELECT ALL + COUNT ( * ) / + 40 + - - 31 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-60\)\) \* CAST\(NULL AS Int32\) \* CASE Int64\(20\) WHEN Int64\(\-63\) \+ Int64\(5\) THEN Int64\(61\) WHEN CAST\(Int64\(67\) AS Int32\) THEN NULL ELSE Int64\(\-83\) END / Int64\(\-9\) \* Int64\(42\) \+ \(\- nullif\(Int64\(87\), Int64\(\-64\)\)\) \+ Int64\(98\) \* Int64\(\-83\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +0 +NULL query I rowsort SELECT ALL 82 * - - 75 + + 62 AS col1 @@ -38952,8 +39467,11 @@ SELECT DISTINCT + 95 + + 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "\(\- Int64\(42\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 31 AS col2, - ( 42 ) AS col2 +---- +-42 +31 query I rowsort SELECT - - 26 + - 61 @@ -39058,8 +39576,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-35\), Int64\(2\), Int64\(34\) \+ Int64\(40\) \* Int64\(\-16\), Int64\(\-93\) \* Int64\(\-32\) \+ Int64\(30\)\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( - 35, 2, 34 + + + 40 * - 16, - 93 * - 32 + + 30 ) AS col0, 82 AS col0 +---- +-35 +82 query I rowsort label-7433 SELECT + COALESCE ( - - 49, 2 ) * + 30 - + 31 + - - ( - 24 ) + - COUNT ( * ) AS col2 @@ -39080,8 +39601,11 @@ SELECT ALL - 4 / + 45 AS col0, CAST ( NULLIF ( + 90, + COUNT ( * ) + + - 31 + + # Datafusion - Datafusion expected results: # Datafusion - Expected - -7569 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(\-87\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 87 * - 87 col1, 9 AS col1 +---- +-7569 +9 query II rowsort label-7437 SELECT ALL COUNT ( * ) * + CASE - AVG ( + 44 ) WHEN + COUNT ( * ) THEN + COALESCE ( - 13, - + COUNT ( * ) ) * - 6 END, ( - - 27 ) AS col1 @@ -39189,8 +39713,11 @@ SELECT ALL + ( + + 98 ) - + - 61 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -143 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-11\) AS Int32\) \* Int64\(13\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( CAST ( + - 11 AS INTEGER ) ) * + 13 AS col1, + 36 AS col1 +---- +-143 +36 query I rowsort label-7457 SELECT 58 / - CASE - 89 WHEN 27 / 5 + - - 8 THEN - 32 ELSE + COALESCE ( + 93, 4 + + 98 ) * - - 95 END - - COUNT ( + - 64 ) * - 7 * - MAX ( - 19 ) + - CAST ( NULL AS INTEGER ) AS col0 @@ -39504,8 +40031,11 @@ SELECT - 14 * - 26 * + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, 40 AS col1 +---- +1 +40 query I rowsort SELECT + 36 - 65 AS col1 @@ -40037,8 +40567,11 @@ SELECT ( + - 85 ) + - - 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - + COUNT ( * ) AS INTEGER ) AS col1, 13 AS col1 +---- +-1 +13 query I rowsort SELECT - - ( ( + 44 ) ) @@ -42281,8 +42814,11 @@ SELECT 12 / + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 AS col2, COUNT ( * ) AS col2 +---- +1 +50 query II rowsort SELECT 13, - ( 18 ) AS col0 @@ -42650,8 +43186,11 @@ SELECT ALL 90 + COUNT ( - - 26 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ sum\(Int64\(12\)\) AS col1" at position 0 and "Int64\(\-2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 25 + + SUM ( + + 12 ) AS col1, - 2 AS col1 +---- +-2 +37 query I rowsort label-8122 SELECT - + CAST ( NULL AS INTEGER ) * MAX ( - - 7 ) / - 57 AS col2 @@ -42706,8 +43245,11 @@ SELECT - 91 + + + COALESCE ( - - 41, + + 17, + + 72 ) + 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col1 +---- +1 +NULL query I rowsort label-8133 SELECT ALL COUNT ( * ) / + 61 - - + 11 + - 80 * + 52 AS col0 @@ -42742,8 +43284,11 @@ SELECT + 45 / + 96 + - + COUNT ( * ) * 14 * - + CAST ( + 69 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col0" at position 0 and "Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 55 AS col0, - 92 AS col0 +---- +-92 +55 query I rowsort label-8140 SELECT - SUM ( ALL 49 ) * + ( + NULLIF ( 83, + 3 * - 8 ) ) @@ -42897,8 +43442,11 @@ SELECT DISTINCT ( - NULLIF ( + 95, + - 57 / + - 41 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 97 AS col2, 98 AS col2 +---- +97 +98 query I rowsort SELECT ALL - + 72 col2 @@ -43005,8 +43553,11 @@ 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\(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\. +query RI valuesort 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 +---- +-1594 +NULL query I rowsort label-8191 SELECT ALL - 48 * + COUNT ( * ) * 97 * - - COUNT ( * ) * 81 AS col2 @@ -43123,8 +43674,11 @@ SELECT 41 + + 87 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -338 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \* \(\- Int64\(\-42\)\) \+ coalesce\(max\(Int64\(\-86\)\), Int64\(\-61\)\) AS col2" at position 0 and "Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 6 * - - 42 + + COALESCE ( + MAX ( ALL - 86 ), - 61 ) col2, - 96 col2 +---- +-338 +-96 query I rowsort label-8213 SELECT + NULLIF ( - COUNT ( DISTINCT 48 ), 72 ) @@ -43139,8 +43693,11 @@ 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\(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\. +query II valuesort 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 +---- +3999 +NULL query I rowsort label-8216 SELECT DISTINCT - COUNT ( * ) * + CASE - 9 WHEN CAST ( + 41 AS INTEGER ) THEN - + COALESCE ( + 60, - - 6 ) + 37 END @@ -43161,8 +43718,11 @@ SELECT DISTINCT + 23 * - + 48 + + 0 AS col0, - 94 + 29 + + - COUNT ( * ) - + + C # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 5073 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col1" at position 0 and "Int64\(57\) \* Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 69 AS col1, + 57 * + 89 AS col1 +---- +5073 +69 query I rowsort SELECT DISTINCT + 56 + + 29 @@ -43707,8 +44267,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 96 AS col2, 57 AS col2 +---- +57 +96 query I rowsort label-8325 SELECT DISTINCT + 60 / - - 12 @@ -43764,8 +44327,11 @@ SELECT DISTINCT + SUM ( + + 77 ) * - 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "max\(Int64\(51\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, MAX ( + 51 ) AS col0 +---- +1 +51 query II rowsort label-8336 SELECT + 83, COUNT ( DISTINCT - 51 ) * - COUNT ( * ) * - + 19 AS col0 @@ -44541,8 +45107,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(4\)\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 4 ) AS col0, 39 AS col0 +---- +-4 +39 query I rowsort label-8483 SELECT DISTINCT 32 - + 15 + - 87 / + COUNT ( * ) AS col1 @@ -44615,8 +45184,11 @@ SELECT - - 60 * - + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 275057 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(78\)\) \* \(\- Int64\(\-82\)\) \* Int64\(\-43\) \- Int64\(\-29\) AS col1" at position 0 and "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 78 * - - 82 * - 43 - - 29 col1, 41 col1 +---- +275057 +41 query I rowsort SELECT - + 91 * + + 68 + + 75 + + 58 col0 @@ -44865,8 +45437,11 @@ SELECT DISTINCT + 21 * - 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 477262474 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* Int64\(22\) \* \(\- Int64\(50\)\) \* Int64\(65\) \* Int64\(\-89\) \+ \(\- Int64\(26\)\) AS col2" at position 0 and "Int64\(46\) / sum\(DISTINCT Int64\(22\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 * 22 * + - ( ( + 50 ) ) * + 65 * - 89 + - + 26 col2, 46 / + SUM ( DISTINCT + + 22 ) AS col2 +---- +2 +477262474 query I rowsort SELECT 84 * + + 26 AS col2 @@ -44881,8 +45456,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, 63 / - 47 AS col1 +---- +-1 +-1 query II rowsort label-8546 SELECT 46 col0, MIN ( ALL - 70 ) @@ -44926,8 +45504,11 @@ SELECT ALL - SUM ( DISTINCT + 84 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - -760 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col0" at position 0 and "CAST\(Int64\(10\) AS Int32\) \* Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 10 AS col0, CAST ( 10 AS INTEGER ) * - 76 AS col0 +---- +-760 +10 query I rowsort SELECT ALL + 15 * - + 87 @@ -44963,8 +45544,11 @@ SELECT ALL 11 + - 22 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 col1, + 21 AS col1 +---- +12 +21 query II rowsort label-8561 SELECT - 50 AS col0, 93 * - COUNT ( * ) + + + MAX ( DISTINCT + - 8 ) + 90 * NULLIF ( + 56, - + 18 * + 75 ) + CASE - 77 WHEN 21 THEN COUNT ( * ) WHEN COUNT ( * ) THEN NULL END @@ -45080,8 +45664,11 @@ SELECT - 66 * + - 52 - + NULLIF ( - 18, - + 6 ) + + - 88 * + 94 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 137 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \+ Int64\(99\) AS col2" at position 0 and "nullif\(Int64\(\-26\), Int64\(\-5\) \+ Int64\(42\) \* Int64\(15\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 38 + 99 AS col2, NULLIF ( - 26, - 5 + + 42 * + 15 ) AS col2 +---- +-26 +137 query I rowsort label-8583 SELECT DISTINCT + - 17 + + MIN ( DISTINCT + - 20 ) col1 @@ -45346,8 +45933,12 @@ SELECT DISTINCT + 72 * - COUNT ( * ) * + + 18 AS col1 # Datafusion - Expected - 42 # Datafusion - Expected - 34 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col1" at position 0 and "Int64\(36\) \- Int64\(2\) \- \(\- \(\- \(\- sum\(DISTINCT Int64\(1\)\)\)\)\) \* sum\(Int64\(20\)\) / \(\- Int64\(58\)\) \* Int64\(6\) \* Int64\(67\) \* Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 42 AS col1, + 36 - + 2 - - - ( - SUM ( DISTINCT + + 1 ) ) * + SUM ( ALL 20 ) / - + 58 * + 6 * + 67 * + 9 AS col1, 1 AS col2 +---- +1 +34 +42 query I rowsort label-8634 SELECT ALL NULLIF ( + + 89, - 21 ) + ( - MIN ( + 80 ) ) @@ -45554,8 +46145,11 @@ SELECT DISTINCT - - 6 - + 58 AS col1, - 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 324 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \* Int64\(9\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 * + + 9 col2, COUNT ( * ) col2 +---- +1 +324 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -45706,8 +46300,11 @@ NULL # 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 "Int64\(30\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 30 AS col2, + 82 AS col2 +---- +30 +82 query I rowsort label-8703 SELECT - - COUNT ( * ) * - 28 AS col1 @@ -45997,8 +46594,11 @@ SELECT DISTINCT + 10 * - 86 AS col0 # 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\(19\) AS col2" at position 0 and "Int64\(\-93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 19 AS col2, - 93 AS col2 +---- +-93 +19 query I rowsort SELECT ALL ( - + 20 ) * + + COALESCE ( + 49, + + 16, + - 18 ) AS col1 @@ -46432,8 +47032,11 @@ SELECT ALL + - 90 + + 27 - + - COUNT ( * ) 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 "Int64\(\-76\) \+ \(\- Int64\(5\)\) AS col2" at position 0 and "Int64\(43\) \+ CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - 76 + - + 5 AS col2, + 43 + CAST ( NULL AS FLOAT8 ) col2 +---- +-81 +NULL query I rowsort label-8840 SELECT - 45 / - 87 @@ -46443,8 +47046,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) * - 66 col0, - 54 col0 +---- +-54 +66 query I rowsort label-8842 SELECT ALL 15 / - 76 + + ( - 96 ) - - 60 - + 5 @@ -46743,8 +47349,11 @@ SELECT ALL - 74 + + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(26\)\) AS col0" at position 0 and "Int64\(\-71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( 26 ) AS col0, - 71 AS col0 +---- +-26 +-71 query I rowsort label-8898 SELECT ALL - MIN ( + 87 ) * - + 44 @@ -46840,8 +47449,11 @@ SELECT ALL 24 / + 14 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(18\), Int64\(\-23\) \* Int64\(92\)\) AS col0" at position 0 and "Int64\(\-42\) \+ max\(Int64\(\-7\)\) \* \(\- \(\- coalesce\(Int64\(\-5\), CASE Int64\(18\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(3\) \+ Int64\(59\) \- Int64\(46\) THEN Int64\(\-61\) \+ Int64\(58\) \+ Int64\(62\) \- Int64\(22\) \* nullif\(\(\- CAST\(\(\- CASE Int64\(\-11\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-99\) END\) AS Int32\)\), Int64\(\-37\) \* Int64\(84\)\) / Int64\(13\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN coalesce\(Int64\(\-83\), Int64\(\-45\) \- Int64\(52\)\) END\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-7 +18 query I rowsort label-8916 SELECT - - MAX ( - + 70 ) @@ -46924,8 +47536,11 @@ SELECT ALL - COUNT ( * ) AS col1, + 11 * - 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ \(\- CAST\(NULL AS Int32\)\) \+ CAST\(Int64\(76\) AS Int32\) \* CASE Int64\(17\) WHEN Int64\(\-23\) THEN CAST\(NULL AS Int32\) \- Int64\(\-37\) \* Int64\(60\) END AS col1" at position 0 and "Int64\(\-42\) \+ Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 + - CAST ( NULL AS INTEGER ) + + CAST ( + 76 AS INTEGER ) * CASE 17 WHEN - 23 THEN CAST ( NULL AS INTEGER ) - + - 37 * 60 END AS col1, - 42 + 93 AS col1 +---- +51 +NULL query I rowsort label-8932 SELECT ALL - 70 * MAX ( - 28 ) * + - 77 + + 81 + - COALESCE ( 77, - CASE + 1 WHEN - COALESCE ( + - ( + 70 ), ( + + 90 ) + - 11 + + 73 ) * + 20 THEN NULL WHEN 68 * - ( COUNT ( * ) ) * + 44 THEN + COUNT ( * ) END + + 59, - 91 + - 40 ) @@ -47107,8 +47722,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- CASE Int64\(41\) WHEN Int64\(15\) \* Int64\(\-25\) \+ Int64\(50\) \- Int64\(68\) \* Int64\(\-48\) \* Int64\(\-14\) THEN Int64\(43\) ELSE NULL END\) AS Int32\)\) \* Int64\(\-80\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( - CASE 41 WHEN 15 * - 25 + 50 - + 68 * - 48 * + - 14 THEN + 43 ELSE NULL END AS INTEGER ) * + - 80 AS col0, 70 AS col0 +---- +70 +NULL query I rowsort SELECT ALL 96 * - COALESCE ( - - 28, + + 57 ) @@ -47229,8 +47847,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-26\)\) \+ \(\- Int64\(\-47\)\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 26 + - - 47 AS col0, 50 AS col0 +---- +50 +73 query II rowsort SELECT - 5 AS col2, 47 * + 12 + - 27 * - + 51 * + 49 - - + 9 AS col1 @@ -47288,8 +47909,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - -70225 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- Int64\(\-82\)\)\)\) AS col1" at position 0 and "CAST\(\(\- Int64\(39\)\) AS Int32\) \* Int64\(36\) \* Int64\(50\) \+ Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( - - 82 ) AS col1, + CAST ( - + 39 AS INTEGER ) * + 36 * 50 + - 25 AS col1 +---- +-70225 +-82 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -47554,8 +48178,11 @@ SELECT SUM ( ALL 81 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19925227 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \+ Int64\(68\) \* Int64\(65\) \* \(\- Int64\(\-46\)\) \* Int64\(\-98\) \+ Int64\(95\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 38 + + 68 * 65 * - - 46 * - 98 + 95 AS col1, + COUNT ( * ) AS col1 +---- +-19925227 +1 # Datafusion - Data was automatically updated based on comparison db results # Datafusion - Previous results: @@ -47991,8 +48618,11 @@ SELECT ALL + 98 * + 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col0" at position 0 and "Int64\(\-28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 AS col0, - 28 col0 +---- +-28 +-81 query II rowsort SELECT DISTINCT 82, - 28 * + 94 AS col1 @@ -48320,8 +48950,12 @@ SELECT DISTINCT + MIN ( + + 40 ) + + 40 # Datafusion - Expected - -5250767 # Datafusion - Expected - NULL # Datafusion - Expected - 2768 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \+ \(\- nullif\(Int64\(70\), Int64\(19\)\)\) \+ Int64\(\-21\) \+ \(\- Int64\(\-53\)\) \* Int64\(\-79\) \* \(\- coalesce\(Int64\(\-19\), coalesce\(Int64\(85\), \(\- Int64\(\-61\)\) \- Int64\(65\), Int64\(\-65\)\), Int64\(80\) \* Int64\(\-41\) \- Int64\(78\) \+ \(\- \(\- Int64\(65\)\)\) \* Int64\(55\) \+ Int64\(91\) \* max\(Int64\(\-94\)\) \* Int64\(76\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(43\) / count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(66\) \- Int64\(88\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-5250767 +2768 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -48561,8 +49195,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(\-78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - COUNT ( * ) ) AS col2, ( - 78 ) AS col2 +---- +-78 +1 query I rowsort label-9241 SELECT COALESCE ( + COALESCE ( - + 86, 16 ), - - 96, + CAST ( NULL AS INTEGER ) ) @@ -49002,8 +49639,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 13 / - 1 AS col2, COUNT ( * ) + 42 AS col2 +---- +13 +43 query I rowsort SELECT ALL 70 * 43 + + 11 + - 63 col2 @@ -49024,8 +49664,11 @@ 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\(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\. +query II valuesort SELECT NULLIF ( - COUNT ( * ), + - 50 + + ( + - CASE - 40 WHEN 90 + 57 THEN 38 * - COUNT ( * ) ELSE NULL END ) ) AS col1, 84 AS col1 +---- +-1 +84 query I rowsort label-9331 SELECT - MAX ( DISTINCT + 52 ) / + - SUM ( - 44 ) AS col1 @@ -49642,8 +50285,11 @@ SELECT + 61 / + - 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4446 # Datafusion - Expected - -98 -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\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 78 * + 57 AS col2, - 98 AS col2 +---- +-98 +4446 query II rowsort SELECT 68 AS col2, + ( 26 ) @@ -49761,8 +50407,11 @@ SELECT - - 25 * + NULLIF ( - + 23, - 24 ) * + ( - + 76 ) - + 95 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\) \* Int64\(28\) \* max\(DISTINCT \(\- Int64\(40\)\)\) \- Int64\(\-19\) AS col0" at position 0 and "Int64\(73\) \- Int64\(29\) / max\(Int64\(\-92\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) * + 28 * MAX ( DISTINCT - + 40 ) - - 19 AS col0, 73 - + 29 / + MAX ( + - 92 ) AS col0 +---- +73 +NULL query II rowsort SELECT DISTINCT + - 46 * + - 12 * + 68 + - 86 AS col1, 17 @@ -50072,8 +50721,11 @@ 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\(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\. +query II valuesort SELECT 30 col1, + COUNT ( * ) + 52 * - + ( 92 ) + + + NULLIF ( 69, + 11 ) col1 +---- +-4714 +30 query I rowsort SELECT 69 * + 81 + - 19 * - 18 + - 14 AS col1 @@ -51285,8 +51937,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(\-3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 73 * - 25 AS col2, 42 * + COUNT ( * ) - + - 3 AS col2 +---- +1825 +45 query I rowsort label-9766 SELECT DISTINCT - 91 * + ( - 12 ) * NULLIF ( + COALESCE ( - 95, + + 46 - + CAST ( + 87 AS INTEGER ), - ( - - 75 ), - 43, + 22 ), 21 ) + 2 AS col1 @@ -51548,8 +52203,11 @@ SELECT 44 AS col0, 95 * + COUNT ( + 70 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-13\), \(\- Int64\(29\)\)\) AS col1" at position 0 and "\(\- Int64\(14\)\) \- sum\(Int64\(38\)\) \+ Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COALESCE ( - 13, - + 29 ) AS col1, - ( 14 ) - SUM ( 38 ) + + - 36 AS col1 +---- +-13 +-88 query I rowsort SELECT DISTINCT ( 98 ) @@ -52017,8 +52675,11 @@ SELECT DISTINCT 81 - - - 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - -456 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) AS col1" at position 0 and "Int64\(6\) \* Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + - 21 ) AS col1, + 6 * - 76 col1 +---- +-21 +-456 query I rowsort label-9908 SELECT CASE - MAX ( + 8 ) WHEN - - 57 * - CAST ( NULL AS INTEGER ) THEN + 36 * 73 * + 94 + 44 + + 45 + - 2 - CAST ( - 83 AS INTEGER ) WHEN + 77 THEN NULL END + - 17 col2 @@ -52192,8 +52853,11 @@ SELECT 43 - + 75 / + 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 17 AS col0, + 91 AS col0 +---- +-17 +91 query I rowsort label-9942 SELECT ALL - ( + 55 ) + + COUNT ( * ) - + - 9 @@ -52404,8 +53068,11 @@ SELECT ALL + NULLIF ( + 24, + 45 ) * ( - 59 ) - - 67 + 46 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 126 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "Int64\(43\) \+ Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + 65 ) AS col0, + 43 + 83 AS col0 +---- +126 +65 query II rowsort label-9983 SELECT - 64 + - 14 + + ( - 85 ), - 44 + + + CAST ( COUNT ( * ) AS INTEGER ) AS col2 diff --git a/data/sqlite/random/expr/slt_good_24.slt b/data/sqlite/random/expr/slt_good_24.slt index 5590c1b..b16700d 100644 --- a/data/sqlite/random/expr/slt_good_24.slt +++ b/data/sqlite/random/expr/slt_good_24.slt @@ -272,8 +272,11 @@ SELECT - - ( + 74 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) \+ Int64\(27\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 44 + 27 + + COUNT ( * ) AS col0, ( - 31 ) AS col0 +---- +-16 +-31 query I rowsort label-45 SELECT DISTINCT + 22 + - - ( ( + COUNT ( * ) ) ) @@ -322,8 +325,12 @@ SELECT ALL 60 + + + 82 # Datafusion - Expected - 76 # Datafusion - Expected - 95 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 1 and "Int64\(\-11\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 76 AS col2, 95 AS col1, - 11 AS col1 +---- +-11 +76 +95 query I rowsort SELECT ALL ( - 92 ) + NULLIF ( - - 5, + 27 ) @@ -465,8 +472,11 @@ SELECT + COUNT ( - 90 ) + - NULLIF ( + 45, ( - + COALESCE ( + + ( + - 74 ), - + # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - -3654 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col0" at position 0 and "Int64\(63\) \* \(\- Int64\(58\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 73 AS col0, 63 * + - ( + 58 ) AS col0 +---- +-3654 +-73 query I rowsort label-81 SELECT ALL - - NULLIF ( + 34, + 55 / MIN ( DISTINCT 27 ) + + 43 ) + + + 93 AS col1 @@ -517,8 +527,11 @@ SELECT DISTINCT - + SUM ( ALL + 10 ) + 60 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 598 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col1" at position 0 and "Int64\(26\) \* max\(DISTINCT Int64\(23\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 8 col1, 26 * MAX ( DISTINCT + 23 ) col1 +---- +-8 +598 query I rowsort label-91 SELECT ALL COALESCE ( + 23, - COUNT ( * ), 12 * - 12 + + 14 * + - 40 + 1 ) AS col0 @@ -747,8 +760,11 @@ SELECT - 61 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 93 AS col1 +---- +1 +93 # Datafusion - Data was automatically updated based on comparison db results # Datafusion - Previous results: @@ -771,8 +787,11 @@ SELECT ALL - 7 * - 57 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col2" at position 0 and "\(\- min\(\(\- Int64\(55\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 72 AS col2, - MIN ( - + 55 ) AS col2 +---- +-72 +55 query I rowsort label-138 SELECT ALL COUNT ( DISTINCT 92 ) AS col0 @@ -1030,8 +1049,11 @@ SELECT DISTINCT 98 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -240 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(\-80\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 * - 80 AS col1, CAST ( NULL AS INTEGER ) AS col1 +---- +-240 +NULL query I rowsort label-189 SELECT ALL + 69 / - + 63 @@ -1821,8 +1843,11 @@ SELECT 93 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "Int64\(\-62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 AS col2, - 62 AS col2 +---- +-62 +63 query I rowsort label-344 SELECT ALL 71 + - + COUNT ( * ) * - 88 + COUNT ( * ) AS col2 @@ -1969,8 +1994,11 @@ SELECT ALL + 37 + - + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(51\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 51 AS col1, CAST ( NULL AS INTEGER ) AS col1 +---- +-51 +NULL query I rowsort label-372 SELECT ALL - - COALESCE ( - - CASE + + 10 WHEN 2 * + COUNT ( * ) - - 59 * - 52 THEN CAST ( 16 AS INTEGER ) * - 83 WHEN + 14 THEN NULL WHEN 6 * 55 + 10 THEN NULL ELSE 58 + + CAST ( NULL AS INTEGER ) END, 0 / + 59 ) + - 42 @@ -2001,8 +2029,11 @@ SELECT 77 * + ( + + MAX ( ALL 51 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) col1, + 46 AS col1 +---- +46 +NULL query I rowsort SELECT 62 - - 70 * 38 AS col0 @@ -2694,8 +2725,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3782 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(\-62\) AS col2" at position 0 and "\(\- max\(DISTINCT Int64\(\-72\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 61 * + - 62 AS col2, - MAX ( DISTINCT - 72 ) AS col2 +---- +-3782 +72 query I rowsort SELECT - 0 * - + 48 + + + 11 * 64 @@ -2827,8 +2861,11 @@ SELECT 15 * 17 * + 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 AS col2, + 61 col2 +---- +28 +61 query I rowsort SELECT - 93 * - 59 col1 @@ -3015,8 +3052,11 @@ SELECT ALL + 33 + + + 80 + - COUNT ( * ) * 66 - + 22 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- Int64\(\-85\)\)\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( - - 85 ) AS col2, - CAST ( NULL AS INTEGER ) AS col2 +---- +-85 +NULL query II rowsort label-573 SELECT - 76 + 61, - NULLIF ( - + 73, + 7 + - + MIN ( ALL + - 52 ) ) * 39 AS col1 @@ -3274,8 +3314,11 @@ SELECT 29, - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -820 # Datafusion - Expected - 616 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(53\)\) \- Int64\(59\) \* \(\- Int64\(\-13\)\) AS col1" at position 0 and "Int64\(56\) \* Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 53 - + 59 * - - 13 col1, + 56 * + 11 AS col1 +---- +-820 +616 query I rowsort SELECT 26 * - - 58 * - - 68 @@ -3426,8 +3469,11 @@ 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\(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\. +query II valuesort 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 +---- +44 +NULL query I rowsort SELECT 15 * + - 98 @@ -3448,8 +3494,11 @@ SELECT 87, 20 + - 18 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 95 AS col2, + 71 AS col2 +---- +-95 +71 query I rowsort SELECT DISTINCT - 69 @@ -3562,8 +3611,11 @@ SELECT + 17, 28 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- Int64\(57\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 + COUNT ( * ) AS col0, - ( + 57 ) col0 +---- +-57 +57 query I rowsort label-679 SELECT - MIN ( ALL - 3 ) @@ -3701,8 +3753,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) * + - SUM ( ALL 3 ) AS col2, 28 col2 +---- +28 +3 query I rowsort SELECT - 81 * + 33 AS col1 @@ -3873,8 +3928,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 21 AS col2, 82 AS col2 +---- +21 +82 query I rowsort SELECT - 58 * + - 54 @@ -4250,8 +4308,11 @@ SELECT MAX ( ALL + 23 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col1" at position 0 and "\(\- CAST\(\(\- avg\(CAST\(\(\- Int64\(\-92\)\) AS Int32\)\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 17 AS col1, - CAST ( - + AVG ( CAST ( - - 92 AS INTEGER ) ) AS INTEGER ) col1 +---- +-17 +92 query III rowsort SELECT - 74, - ( 65 ) AS col0, + 44 * 51 * 33 + + 24 AS col1 @@ -4311,14 +4372,20 @@ SELECT + 43 + - - 9 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - -7007 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col2" at position 0 and "Int64\(91\) \* CAST\(\(\- nullif\(Int64\(77\), Int64\(2\) \+ \(\- Int64\(\-52\)\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 AS col2, 91 * + CAST ( - NULLIF ( + 77, + 2 + - ( - 52 ) ) AS INTEGER ) AS col2 +---- +-7007 +-81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 98 AS col0, 64 AS col0 +---- +64 +98 query I rowsort label-822 SELECT - 79 + 93 + COUNT ( * ) * + + 25 @@ -4461,8 +4528,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 83 AS col1, 13 AS col1 +---- +13 +83 query I rowsort label-849 SELECT + 98 + - ( 56 ) * + + COUNT ( * ) @@ -4868,8 +4938,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 82 * - ( 53 ) AS col0, - 83 + - - COUNT ( * ) AS col0 +---- +-4346 +-82 query I rowsort SELECT DISTINCT 64 AS col0 @@ -5026,8 +5099,11 @@ SELECT 50 - - + 24 * + NULLIF ( + 79, 99 * - 79 ) # 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 "Int64\(\-35\) \+ Int64\(38\) AS col0" at position 0 and "Int64\(\-86\) \+ Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 35 + + 38 AS col0, - 86 + + 55 AS col0 +---- +-31 +3 query I rowsort label-957 SELECT 59 - + 99 * - + COALESCE ( - 38, MAX ( ALL - 57 ) / + 77 + + - 47 ) + - - 8 / 17 / - 50 AS col2 @@ -5522,8 +5598,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(\-77\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 AS col1, COUNT ( * ) * - - 77 AS col1 +---- +1 +77 query I rowsort SELECT 3 * - 10 * + 73 * - 29 * + 22 AS col1 @@ -5754,8 +5833,11 @@ SELECT ALL - 34 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "CAST\(Int64\(31\) AS Int32\) / \(\- Int64\(9\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( 99 ) AS col1, CAST ( 31 AS INTEGER ) / - + 9 AS col1 +---- +-3 +99 query II rowsort label-1098 SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ), + 90 / COUNT ( * ) * - COUNT ( * ) * + 85 + + 55 + + ( + COUNT ( * ) ) * - + 24 * - 8 * 19 + - ( - 51 ) - + CASE - + 82 WHEN + - 63 THEN NULL WHEN + 24 + - 97 THEN - - 7 END - - 85 AS col2 @@ -6006,8 +6088,11 @@ SELECT + 30 + + 79 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -1691 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-17\)\) AS col0" at position 0 and "nullif\(Int64\(\-89\), \(\- CAST\(Int64\(48\) AS Int32\)\)\) \* \(\- Int64\(\-19\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 17 AS col0, NULLIF ( - 89, + - CAST ( + 48 AS INTEGER ) ) * - - 19 AS col0 +---- +-1691 +17 query I rowsort label-1146 SELECT ALL COUNT ( ALL + 7 ) / COUNT ( * ) * 13 * + COALESCE ( 57, - - CAST ( 84 AS INTEGER ) ) @@ -6495,8 +6580,11 @@ SELECT ALL 10 / - + 6, - CAST ( 98 AS INTEGER ) / 98 + + 93 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-49\)\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 49 AS col2, 23 AS col2 +---- +23 +49 query II rowsort label-1239 SELECT ALL - - NULLIF ( CAST ( - 10 AS INTEGER ), + + 25 ) AS col1, 52 + + 12 AS col2 @@ -6527,8 +6615,11 @@ SELECT 34 + 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "coalesce\(Int64\(\-90\), count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col2, COALESCE ( - 90, COUNT ( * ) ) col2 +---- +-90 +1 query I rowsort label-1245 SELECT - + CASE - 74 WHEN - COUNT ( DISTINCT - - 21 ) + + CASE 64 WHEN ( - - COUNT ( * ) ) + - - 16 THEN NULL WHEN + 88 * - 56 / 47 / - 57 * - + 50 THEN + + 85 ELSE NULL END + - - 87 THEN 91 END @@ -6605,8 +6696,11 @@ 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\(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\. +query II valuesort SELECT - COALESCE ( - + COUNT ( * ), - 91 + - 17, + + 57 ) AS col0, 91 AS col0 +---- +1 +91 query I rowsort label-1259 SELECT ALL MIN ( DISTINCT - 1 ) @@ -6875,8 +6969,11 @@ SELECT - COUNT ( * ) / - - 75 # 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 col0" at position 0 and "Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 AS col0, - 68 AS col0 +---- +-68 +5 query I rowsort label-1311 SELECT 52 * - COUNT ( * ) + + 42 / + CAST ( NULL AS INTEGER ) + + ( - - 33 ) @@ -7078,8 +7175,11 @@ SELECT 73 + + COUNT ( * ) - + + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) \+ Int64\(21\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 93 + + + 21 AS col2, 6 AS col2 +---- +-72 +6 query I rowsort SELECT ALL 27 + + - 79 AS col0 @@ -7397,8 +7497,11 @@ SELECT DISTINCT 64 * + COUNT ( * ) AS 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\) AS col1" at position 0 and "Int64\(\-19\) \+ Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + CAST ( NULL AS FLOAT8 ) AS col1, - 19 + + 42 AS col1 +---- +23 +NULL query I rowsort label-1410 SELECT - MAX ( DISTINCT + 10 ) * 34 * - CAST ( 56 AS INTEGER ) * + - COUNT ( DISTINCT 15 ) @@ -7585,8 +7688,11 @@ SELECT + + 33 col0, - ( - - 30 ) * + + 3 + + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6276 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* CAST\(Int64\(\-59\) AS Int32\) \+ \(\- Int64\(93\)\) \* \(\- Int64\(\-18\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 78 * + CAST ( - 59 AS INTEGER ) + + ( - + 93 ) * - - 18 * + + COUNT ( * ) AS col1, - 43 AS col1 +---- +-43 +-6276 query III rowsort SELECT + 59 + - + 19 AS col1, 6 AS col2, + 76 + + 94 + + 55 @@ -7673,14 +7779,20 @@ SELECT + 45 * + 30 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -199584 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(\-44\) \* Int64\(63\) AS col1" at position 0 and "Int64\(12\) \+ \(\- nullif\(CAST\(NULL AS Int32\), Int64\(\-44\) \* CAST\(NULL AS Int32\) \+ Int64\(\-5\) \* Int64\(\-58\) \+ Int64\(\-94\)\)\) \- Int64\(\-70\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 * - 44 * 63 AS col1, 12 + - NULLIF ( + + CAST ( NULL AS INTEGER ), - 44 * + CAST ( NULL AS INTEGER ) + + - 5 * - 58 + + - 94 ) - - 70 * + COUNT ( * ) AS col1 +---- +-199584 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \- \(\- Int64\(15\)\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 - - + 15 AS col0, + 12 AS col0 +---- +12 +93 query I rowsort SELECT 17 col0 @@ -7925,8 +8037,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1406 # Datafusion - Expected - -87472 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(37\) \* \(\- \(\- CAST\(\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-82\), Int64\(39\) \* Int64\(98\) \* avg\(Int64\(69\)\)\)\) AS Int32\)\)\) AS col2" at position 0 and "Int64\(88\) \* Int64\(14\) \* Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 * 37 * - - CAST ( - COALESCE ( COUNT ( * ), - 82, + 39 * 98 * AVG ( + 69 ) ) AS INTEGER ) AS col2, 88 * 14 * + - 71 AS col2 +---- +-1406 +-87472 query I rowsort SELECT ALL + 34 * 5 AS col0 @@ -8593,8 +8708,11 @@ SELECT ALL 91 + - COALESCE ( - 52, + 84 * + + NULLIF ( - 51, 94 + + 6 ), 97 * + # Datafusion - Datafusion expected results: # Datafusion - Expected - 142 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \+ Int64\(92\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 50 + 92 AS col2, 24 AS col2 +---- +142 +24 query I rowsort label-1636 SELECT ALL - + 6 + + SUM ( - - 20 ) / - 81 AS col0 @@ -8625,8 +8743,12 @@ SELECT + - 14 col1 # Datafusion - Expected - -1 # Datafusion - Expected - 64 # Datafusion - Expected - -80 -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\(\-93\) \+ \(\- Int64\(\-13\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - + COUNT ( ALL - + 52 ) col2, 64, - 93 + - - 13 AS col2 +---- +-1 +-80 +64 query I rowsort SELECT - 37 * - 60 @@ -9395,8 +9517,11 @@ SELECT DISTINCT - COUNT ( * ) / - 70 * 46 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 326784 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(74\) \* CAST\(Int64\(69\) AS Int32\) \* Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 AS col2, + 74 * CAST ( + 69 AS INTEGER ) * 64 AS col2 +---- +326784 +62 query I rowsort label-1788 SELECT DISTINCT MIN ( ALL - 3 ) @@ -9983,8 +10108,11 @@ SELECT DISTINCT - + 33 * + + 14 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -1944 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-15\)\) AS col1" at position 0 and "Int64\(\-72\) \* Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 15 AS col1, - 72 * + + 27 col1 +---- +-1944 +15 query I rowsort SELECT ALL 52 - - 70 col0 @@ -10220,8 +10348,11 @@ SELECT 16 * + - 63 - + NULLIF ( 61, - 89 ) + + 80 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 99 + - - CAST ( NULL AS INTEGER ) AS col0, - 60 AS col0 +---- +-60 +NULL query I rowsort SELECT 39 col2 @@ -10549,8 +10680,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 2 AS col0, + NULLIF ( + - 82, + COUNT ( * ) ) AS col0 +---- +-82 +2 query I rowsort SELECT DISTINCT + ( 50 ) AS col0 @@ -10643,8 +10777,11 @@ SELECT + 5 + - + 96 + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 119 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(7\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 17 * 7 AS col2, + 48 AS col2 +---- +119 +48 query I rowsort SELECT DISTINCT ( - 66 ) + + 53 * 30 @@ -10852,8 +10989,11 @@ SELECT NULLIF ( + + 35, 29 + + 96 ) + 89 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 28 AS col2, 23 AS col2 +---- +23 +28 query I rowsort SELECT DISTINCT ( 17 ) + + 55 @@ -11019,8 +11159,11 @@ 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\(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\. +query II valuesort SELECT 41 AS col0, - CASE - - 20 WHEN 88 THEN + COUNT ( * ) ELSE NULL END - + MAX ( DISTINCT - ( + 67 ) ) / - 60 AS col0 +---- +41 +NULL query II rowsort label-2100 SELECT - 66 * - COUNT ( - - 53 ) * + + 79, - CAST ( + 65 AS INTEGER ) * + 7 col2 @@ -11287,8 +11430,11 @@ SELECT ALL CAST ( 70 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - -624 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col0" at position 0 and "Int64\(\-27\) \* Int64\(25\) \+ Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 60 AS col0, - 27 * + 25 + + 51 AS col0 +---- +-60 +-624 query I rowsort SELECT ALL ( - 71 ) col2 @@ -11840,8 +11986,11 @@ SELECT DISTINCT - 80 + 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 AS col0, + 7 AS col0 +---- +-92 +7 query I rowsort SELECT - 10 * 0 @@ -11851,8 +12000,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col2, + 17 + + + COUNT ( * ) + + 0 AS col2 +---- +-1 +18 query I rowsort SELECT ALL - 62 + + 24 AS col0 @@ -11917,8 +12069,11 @@ SELECT ( + + CAST ( + - CAST ( - MIN ( - 41 ) AS INTEGER ) AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 col1, 48 col1 +---- +48 +65 query I rowsort label-2276 SELECT - CASE - 53 WHEN - 17 THEN 10 + + 99 / + COUNT ( ALL 2 * CAST ( NULL AS INTEGER ) ) END AS col2 @@ -12419,8 +12574,11 @@ SELECT DISTINCT + 72 * COUNT ( * ) + - 16 + + 31 * SUM ( 87 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -1677 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(43\) \* Int64\(\-39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 * COUNT ( * ) AS col2, + 43 * - 39 AS col2 +---- +-1677 +80 query I rowsort SELECT ALL - ( + - 95 ) @@ -12666,8 +12824,11 @@ SELECT ( + 61 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col0" at position 0 and "max\(Int64\(91\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + 74 ) AS col0, MAX ( + ( + 91 ) ) AS col0 +---- +74 +91 query I rowsort SELECT - CASE - - ( - + 19 ) WHEN - 29 THEN + - 1 ELSE NULL END * 7 + - 84 AS col1 @@ -12782,8 +12943,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 5475 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "Int64\(75\) \* Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 col1, + 75 * 73 AS col1 +---- +5475 +80 query I rowsort SELECT ALL 45 - - 3 @@ -13202,8 +13366,11 @@ SELECT ALL 69 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6525 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(\-75\) AS col2" at position 0 and "Int64\(82\) \* \(\- Int64\(0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 87 * + ( - 75 ) AS col2, + 82 * - + 0 AS col2 +---- +-6525 +0 query II rowsort label-2523 SELECT DISTINCT COUNT ( * ), + COUNT ( * ) col1 @@ -13747,8 +13914,11 @@ SELECT 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 79 - + + COUNT ( * ) col0, 51 col0 +---- +51 +78 query I rowsort label-2628 SELECT CAST ( + 34 AS INTEGER ) * - 19 col0 @@ -13909,8 +14079,11 @@ SELECT - 44, 5 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 46 AS col2, + 52 col2 +---- +46 +52 query I rowsort SELECT 29 + + + 97 @@ -14141,8 +14314,11 @@ SELECT + CAST ( 82 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 132 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ Int64\(95\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 + + + 95 AS col1, 65 AS col1 +---- +132 +65 query I rowsort label-2704 SELECT NULLIF ( - MIN ( DISTINCT 72 ), 2 ) AS col2 @@ -14564,8 +14740,11 @@ SELECT ( - 61 ) + + ( + 91 ) + + + COUNT ( * ) # 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 "Int64\(28\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 AS col1, + 26 AS col1 +---- +26 +28 query I rowsort SELECT ALL + - 50 * 13 * + 28 @@ -14717,8 +14896,11 @@ SELECT ALL - 13 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-11\)\) AS col2" at position 0 and "CAST\(nullif\(\(\- Int64\(23\)\), Int64\(20\)\) AS Int32\) \* \(\- count\(\(\- Int64\(24\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( - 11 ) AS col2, CAST ( + NULLIF ( + ( - + 23 ), 20 ) AS INTEGER ) * - COUNT ( - + 24 ) AS col2 +---- +-11 +23 query I rowsort SELECT + 84 * - 65 + - 6 @@ -14826,8 +15008,12 @@ SELECT ALL + 81 * - - 43 col0, + 97 / + + 27 # Datafusion - Expected - -1602 # Datafusion - Expected - 81 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \* \(\- Int64\(\-34\)\) \- Int64\(4\) AS col2" at position 0 and "\(\- Int64\(12\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 47 * - - 34 - 4 AS col2, + 15 + + 66 AS col1, - + 12 + + + COUNT ( * ) AS col2 +---- +-11 +-1602 +81 query I rowsort label-2835 SELECT ALL 16 / - + NULLIF ( 50, 69 / COALESCE ( 69, + 10 ) + - CAST ( NULL AS INTEGER ) - - - 48 * + - 41 * 20 * 90 / NULLIF ( + 75, + 41 ) * - 85 ) @@ -14848,8 +15034,11 @@ SELECT DISTINCT 34 * - 62 * - COALESCE ( + 50, - 83 ) + - + 35 # 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 "Int64\(0\) AS col0" at position 0 and "Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 AS col0, 62 col0 +---- +0 +62 query II rowsort label-2839 SELECT - 13, SUM ( DISTINCT 34 ) * + 74 * 98 AS col2 @@ -15508,8 +15697,12 @@ SELECT + 96 + - 48 AS col0 # Datafusion - Expected - -1 # Datafusion - Expected - 2 # Datafusion - Expected - -977 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(49\) \+ Int64\(\-57\) \* \(\- Int64\(\-18\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - COUNT ( * ) * COUNT ( * ) AS col0, 79 / + 31, + 49 + - 57 * - - 18 AS col0 +---- +-1 +-977 +2 query I rowsort SELECT + 72 + 61 - + + 67 @@ -15530,8 +15723,11 @@ SELECT - COUNT ( * ) * - 53 + + - 12 + + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 56 AS col0, + 98 AS col0 +---- +56 +98 query I rowsort label-2968 SELECT + CASE + - 56 WHEN + 24 / - 85 - 40 * 51 + - 4 + - 91 THEN NULL WHEN - - COUNT ( * ) THEN - CAST ( 32 AS INTEGER ) + 99 + COALESCE ( + COUNT ( + - ( - 59 ) ), + + 49 ) + - CASE 37 WHEN + + 19 / + - COUNT ( * ) * - 98 THEN NULL WHEN + NULLIF ( - 1, - 35 * 76 ) THEN NULL WHEN + ( 22 ) - - 70 THEN + 75 END - + 66 / 5 * SUM ( ALL - 56 + + CAST ( - 67 AS INTEGER ) / - 3 ) END @@ -15541,8 +15737,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "CASE Int64\(54\) WHEN Int64\(8\) \+ Int64\(\-38\) THEN Int64\(25\) \* Int64\(46\) \+ Int64\(30\) \+ Int64\(12\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 63 AS col1, + CASE 54 WHEN + 8 + - 38 THEN + + 25 * + + 46 + + 30 + + 12 ELSE NULL END AS col1 +---- +63 +NULL query II rowsort label-2970 SELECT ALL + - COUNT ( * ) AS col2, 86 AS col1 @@ -15666,8 +15865,11 @@ SELECT ALL - - 61 * - 56 + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 55 col0, 68 AS col0 +---- +55 +68 query I rowsort SELECT ALL 42 * + 88 + 69 AS col1 @@ -16092,8 +16294,12 @@ 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\(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\. +query III valuesort SELECT 1 * + COUNT ( * ) / + - 37 * 75 AS col0, - 90 AS col0, + 76 * + + 71 + - 86 +---- +-90 +0 +5310 query I rowsort label-3074 SELECT 36 * + CAST ( - 92 AS INTEGER ) @@ -16164,8 +16370,11 @@ SELECT + 2 * + 16 * + 73 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-24\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + MIN ( - 24 ) AS col2, COUNT ( * ) AS col2 +---- +1 +24 query I rowsort SELECT ALL - + 29 AS col2 @@ -16253,8 +16462,11 @@ SELECT ALL - 22 + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - -6181 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col2" at position 0 and "Int64\(52\) \+ Int64\(69\) \* Int64\(\-89\) \+ \(\- \(\- \(\- Int64\(92\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 93 AS col2, + 52 + 69 * + - 89 + - - ( - + 92 ) AS col2 +---- +-6181 +93 query I rowsort label-3105 SELECT - MAX ( DISTINCT - 34 ) @@ -17125,8 +17337,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4860 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* CAST\(\(\- nullif\(Int64\(\-54\), Int64\(32\) \* Int64\(42\) \+ Int64\(\-19\) \+ CASE Int64\(\-16\) WHEN \(\- Int64\(74\)\) \* Int64\(\-20\) THEN NULL WHEN Int64\(73\) THEN NULL ELSE Int64\(\-16\) \* Int64\(90\) END\)\) AS Int32\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90 * CAST ( + - NULLIF ( + - 54, 32 * + 42 + - 19 + + CASE ( - 16 ) WHEN - + 74 * - 20 THEN NULL WHEN + 73 THEN NULL ELSE - 16 * 90 END ) AS INTEGER ) AS col1, 66 AS col1 +---- +4860 +66 query I rowsort label-3273 SELECT - COUNT ( * ) - + + 20 @@ -17382,8 +17597,11 @@ SELECT 79 + - - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1022 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* Int64\(\-14\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- \(\- nullif\(nullif\(Int64\(73\), \(\- Int64\(42\)\) \* Int64\(65\) \+ \(\- Int64\(42\)\) \- Int64\(42\) \* \(\- Int64\(20\)\) \* \(\- max\(\(\- coalesce\(Int64\(78\), \(\- Int64\(79\)\)\)\)\)\) \+ Int64\(\-77\) \* Int64\(52\) \- Int64\(\-21\) / CASE Int64\(81\) WHEN Int64\(\-58\) THEN Int64\(33\) \+ Int64\(\-78\) ELSE NULL END \+ min\(\(\- CAST\(NULL AS Int32\)\)\)\), count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-1022 +-72 query I rowsort SELECT DISTINCT + + ( 72 ) * ( + 80 ) + - - 83 AS col0 @@ -17451,8 +17669,12 @@ 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\(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\. +query III valuesort SELECT DISTINCT + 28 + + 3, + 67 * - COUNT ( * ) + - 21 AS col0, + COUNT ( - 51 ) * MIN ( 55 ) AS col0 +---- +-88 +31 +55 query I rowsort SELECT ALL 32 col0 @@ -17482,8 +17704,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COALESCE ( + 48, COUNT ( * ) ) AS col0, 48 AS col0 +---- +48 +48 query I rowsort SELECT DISTINCT + - 12 @@ -17627,8 +17852,11 @@ SELECT DISTINCT SUM ( DISTINCT + 48 ) # 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 col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 AS col2, + 93 AS col2 +---- +30 +93 query I rowsort SELECT - 73 + - - 36 @@ -17702,8 +17930,11 @@ 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\(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\. +query II valuesort SELECT - - COUNT ( * ) AS col2, 47 - - 62 + + 27 * + - MIN ( + - 35 ) AS col2 +---- +1 +1054 query I rowsort label-3381 SELECT + COUNT ( * ) * 71 + + - COUNT ( * ) - - 47 AS col1 @@ -18001,8 +18232,11 @@ SELECT COUNT ( 4 ) * NULLIF ( - 62, + 36 * ( + 25 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 321408 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* Int64\(36\) \* \(\- Int64\(\-93\)\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 96 * + 36 * - - 93 AS col2, 56 AS col2 +---- +321408 +56 query II rowsort SELECT 98 col1, + ( + + 81 ) @@ -18138,8 +18372,11 @@ SELECT 20 + + 95 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col2" at position 0 and "Int64\(\-45\) \+ Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 5 col2, - 45 + + 70 AS col2 +---- +25 +5 query II rowsort label-3466 SELECT COUNT ( * ) AS col0, 80 @@ -18550,8 +18787,11 @@ SELECT ALL - 20, - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 AS col1, 62 AS col1 +---- +62 +76 query I rowsort SELECT ALL - 94 col2 @@ -19290,8 +19530,11 @@ SELECT ALL - SUM ( + 64 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "Int64\(45\) \* Int64\(67\) \* Int64\(67\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 AS col0, 45 * + 67 * 67 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) col0 +---- +63 +NULL query I rowsort label-3685 SELECT MIN ( DISTINCT 33 ) - - 14 AS col1 @@ -19467,8 +19710,12 @@ SELECT + 20 * - - 51, 52 * + - 85 * + 35 AS col1 # Datafusion - Expected - 21 # Datafusion - Expected - -94 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col1" at position 1 and "Int64\(38\) / Int64\(\-93\) \* \(\- Int64\(74\)\) \* Int64\(93\) \* \(\- \(\- count\(Int64\(\-11\)\)\)\) \+ Int64\(\-21\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - MIN ( ALL - + 21 ) AS col2, - 94 AS col1, 38 / + - 93 * - + 74 * 93 * - - COUNT ( - 11 ) + - 21 AS col1 +---- +-21 +-94 +21 query I rowsort label-3719 SELECT DISTINCT - + COUNT ( * ) / COUNT ( DISTINCT - 26 ) * 86 + - MAX ( DISTINCT + 17 ) AS col1 @@ -19612,8 +19859,11 @@ SELECT ( - MAX ( + - 11 ) ) - - 72 * - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 44 AS col2, 32 col2 +---- +32 +44 query I rowsort label-3747 SELECT ALL - 66 / + 94 @@ -19757,8 +20007,11 @@ SELECT - 14 - + CAST ( + 56 AS INTEGER ) * + 78 + - COUNT ( * ) * + 44 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 col2" at position 0 and "Int64\(\-77\) \* \(\- CAST\(NULL AS Float64\)\) \+ Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL ( + 83 ) col2, - 77 * - CAST ( NULL AS FLOAT8 ) + + 80 col2 +---- +83 +NULL query I rowsort SELECT + 31 * 1 AS col2 @@ -20317,8 +20570,11 @@ SELECT ALL ( + COUNT ( * ) ) + - - 31 * + 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 176 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(\-95\)\)\) \+ Int64\(81\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MAX ( - - 95 ) + 81 AS col0, 4 AS col0 +---- +176 +4 query I rowsort label-3883 SELECT SUM ( + 26 ) @@ -20881,8 +21137,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) + + 91 AS col0, COUNT ( - - 20 ) * + 91 col0 +---- +90 +91 query I rowsort label-3993 SELECT ALL + 68 / - MIN ( + - 24 ) @@ -21583,8 +21842,11 @@ SELECT ALL - + MAX ( ALL + + 98 ) 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\(57\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 AS col1, 0 AS col1 +---- +0 +57 query I rowsort SELECT ALL - + 59 AS col1 @@ -22013,8 +22275,11 @@ SELECT DISTINCT + + 39 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "Int64\(\-26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 78 AS col2, + ( - 26 ) AS col2 +---- +-26 +78 query I rowsort label-4213 SELECT DISTINCT + COUNT ( * ) col2 @@ -22049,8 +22314,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 99 AS col2, 73 AS col2 +---- +73 +99 query I rowsort label-4220 SELECT + 8 / - 48 AS col0 @@ -22065,8 +22333,11 @@ SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- coalesce\(Int64\(\-46\), Int64\(46\) \* \(\- \(\- \(\- Int64\(1\)\)\)\) \+ Int64\(29\) / Int64\(\-53\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, - COALESCE ( - 46, 46 * - ( - - ( 1 ) ) + 29 / - 53 ) AS col0 +---- +1 +46 query I rowsort label-4223 SELECT CASE - 82 WHEN 3 / + - 58 + - 89 THEN - 66 + 46 WHEN MAX ( ALL + CAST ( - 63 AS INTEGER ) ) THEN NULL END AS col2 @@ -22231,8 +22502,11 @@ SELECT ALL 32 + CASE ( - COUNT ( * ) ) WHEN + ( - 13 ) * 64 + COUNT ( * ) THEN N # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 4 col0, 91 col0 +---- +-4 +91 query I rowsort label-4254 SELECT ALL - 11 * - COALESCE ( - 34, + COUNT ( * ) + + 19 ) AS col1 @@ -22252,8 +22526,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 22 AS col0, 98 / - + ( - + COUNT ( * ) ) AS col0 +---- +-22 +98 query I rowsort label-4258 SELECT - COUNT ( 1 ) @@ -22441,8 +22718,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - COUNT ( * ) ) AS col2, 52 col2 +---- +-1 +52 query I rowsort label-4295 SELECT ALL + COUNT ( * ) * - COUNT ( * ) + - 19 AS col0 @@ -23304,8 +23584,11 @@ SELECT 71 + ( - + 25 ) + - 60 + + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(50\)\) AS col0" at position 0 and "Int64\(46\) \+ Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( ALL + 50 ) col0, + 46 + - 56 AS col0 +---- +-10 +50 query I rowsort label-4462 SELECT 81 + ( + - COUNT ( * ) ) / + + 60 AS col2 @@ -23516,8 +23799,11 @@ SELECT ALL 61 + CAST ( + 83 AS INTEGER ) * - 72 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "Int64\(\-37\) \+ Int64\(96\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 col2, - 37 + 96 + - CAST ( NULL AS INTEGER ) AS col2 +---- +2 +NULL query I rowsort SELECT - 31 * + 41 * + + 75 @@ -23879,8 +24165,11 @@ SELECT DISTINCT - + NULLIF ( - 98, + 85 / 19 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- Int64\(61\)\) \- Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) / COUNT ( * ) AS col1, ( - ( + 61 ) ) - - 79 AS col1 +---- +1 +18 query I rowsort SELECT ALL - + NULLIF ( + 26, + + 43 * - - 74 ) + - 5 + 13 AS col1 @@ -23926,8 +24215,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + + 59 ) + - COUNT ( * ) AS col2, 65 col2 +---- +58 +65 query I rowsort SELECT 52 AS col0 @@ -24280,8 +24572,11 @@ SELECT ALL + 26 + - 81 * + 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col1" at position 0 and "Int64\(\-62\) / Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 89 AS col1, - 62 / + 11 AS col1 +---- +-5 +-89 query I rowsort label-4651 SELECT ALL - SUM ( DISTINCT 50 ) + CASE CASE + 66 WHEN + NULLIF ( + 15, + 90 * - AVG ( + 62 ) - - 45 ) THEN 75 ELSE NULL END WHEN + CASE - + 78 WHEN + - 95 THEN - - CASE 43 WHEN 35 THEN NULL WHEN 79 THEN - 6 * + 4 + 92 END / + CAST ( - 13 * + 7 + 96 AS INTEGER ) WHEN COUNT ( * ) THEN NULL WHEN 78 THEN NULL ELSE 10 END THEN + 3 * - CASE 54 * 95 WHEN - 26 THEN 14 WHEN 3 * - 23 THEN NULL END END @@ -24601,8 +24896,11 @@ SELECT + 21 * - 19 * 19 * + 85 + - + NULLIF ( 25, - NULLIF ( 87, - 93 * - 83 + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 696 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \+ Int64\(96\) \+ Int64\(30\) AS col1" at position 0 and "Int64\(58\) \* \(\- Int64\(\-12\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 83 + + 96 + 30 AS col1, 58 * - - 12 AS col1 +---- +43 +696 query I rowsort label-4712 SELECT 75 + + COUNT ( * ) col0 @@ -24643,8 +24941,11 @@ SELECT 17 + + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(35\), \(\- max\(DISTINCT \(\- Int64\(53\)\)\)\) \* Int64\(53\) \+ Int64\(85\) \+ Int64\(99\)\) \+ Int64\(18\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COALESCE ( 35, + - MAX ( DISTINCT - + 53 ) * 53 + + 85 + 99 ) + + 18 AS col2, + ( 67 ) AS col2 +---- +53 +67 query I rowsort SELECT - - 50 @@ -24721,8 +25022,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( - 42 ) col1, - 49 * + - COUNT ( * ) AS col1 +---- +1 +49 query I rowsort label-4735 SELECT ALL + 86 / 64 AS col2 @@ -25039,8 +25343,11 @@ SELECT - ( - 89 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2465 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* Int64\(85\) AS col0" at position 0 and "Int64\(\-33\) / Int64\(\-24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 29 ) * + 85 AS col0, - 33 / - 24 AS col0 +---- +1 +2465 query I rowsort SELECT ALL - 39 * - 19 AS col2 @@ -25207,8 +25514,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(17\)\) AS col1" at position 0 and "Int64\(\-31\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(25\) / Int64\(\-90\) \+ Int64\(\-91\) THEN Int64\(12\) WHEN min\(Int64\(47\)\) \+ \(\- CAST\(Int64\(3\) AS Int32\)\) \* Int64\(\-36\) THEN Int64\(81\) \* Int64\(\-76\) \+ Int64\(15\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-17 +NULL query I rowsort label-4826 SELECT DISTINCT ( - - 82 ) + + 32 / 29 + - COUNT ( * ) @@ -25308,8 +25618,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 5 / CAST ( NULL AS INTEGER ) AS col1, 53 AS col1 +---- +53 +NULL query I rowsort SELECT DISTINCT - 26 AS col0 @@ -25428,8 +25741,12 @@ SELECT 44 * 37 # Datafusion - Expected - -86 # Datafusion - Expected - NULL # Datafusion - Expected - 32 -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\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 86 AS col2, + CASE - + 71 WHEN + + 35 * - + 72 + 0 - - - 49 + + + 12 * - 44 * - COUNT ( * ) THEN NULL WHEN + 56 / COUNT ( * ) THEN - 5 + 16 END AS col0, 32 AS col2 +---- +-86 +32 +NULL query I rowsort label-4868 SELECT ALL 25 + - NULLIF ( + CAST ( 91 AS INTEGER ), - - 38 ) + + 87 AS col0 @@ -25474,8 +25791,11 @@ SELECT - 47 - 79 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 39 col1, - 58 AS col1 +---- +-58 +39 query I rowsort label-4877 SELECT + 76 * - - 52 - 22 / - 38 AS col2 @@ -25500,8 +25820,11 @@ SELECT DISTINCT + 16 * + + 54 * - 7 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -210 # Datafusion - Expected - 5194 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) / Int64\(25\) \* Int64\(\-70\) AS col1" at position 0 and "Int64\(98\) \* Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 93 / 25 * - 70 col1, 98 * + 53 AS col1 +---- +-210 +5194 query I rowsort label-4882 SELECT - 63 / + 26 + COUNT ( * ) + + COUNT ( * ) * + 62 col0 @@ -25907,8 +26230,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 69 - - 92 * 77 col0, COUNT ( * ) * 65 AS col0 +---- +65 +7015 query I rowsort SELECT ALL - 11 * - 78 @@ -25938,8 +26264,11 @@ 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\(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\. +query II valuesort 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 +---- +-68 +6203 query I rowsort SELECT + 29 AS col0 @@ -26305,8 +26634,11 @@ SELECT DISTINCT + + 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 493 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- Int64\(86\)\)\) AS col1" at position 0 and "Int64\(33\) \* Int64\(13\) \- \(\- Int64\(64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MIN ( - + 86 ) AS col1, 33 * + + 13 - - + 64 AS col1 +---- +-86 +493 query I rowsort SELECT DISTINCT + - ( ( + 78 ) ) @@ -26760,8 +27092,11 @@ SELECT DISTINCT 82 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 99 AS col2, 67 AS col2 +---- +67 +99 query II rowsort SELECT + 55 + - ( - - 88 ) AS col0, 96 AS col2 @@ -26796,8 +27131,11 @@ SELECT ALL 8 + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 99 AS col0, - 27 AS col0 +---- +-27 +99 query I rowsort SELECT - - 1 @@ -27448,8 +27786,11 @@ SELECT ALL 94 * + 33 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) / Int64\(82\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 / + + 82 AS col2, 14 AS col2 +---- +0 +14 query I rowsort SELECT ALL - 59 + 5 - - 71 @@ -27535,8 +27876,11 @@ SELECT - ( 89 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-18\)\) \* Int64\(2\) \- Int64\(46\) \- \(\- Int64\(\-85\)\) AS col1" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \* Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - 18 ) * + 2 - 46 - - - 85 AS col1, - CAST ( - COUNT ( * ) AS INTEGER ) * + 88 AS col1 +---- +-95 +88 query I rowsort label-5270 SELECT ALL + 13 / 28 - + - 63 @@ -27881,8 +28225,11 @@ SELECT COALESCE ( 7, - + 49 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(4\) WHEN \(\- sum\(Int64\(\-24\)\)\) THEN \(\- Int64\(\-18\)\) \* Int64\(93\) END AS col1" at position 0 and "Int64\(96\) \+ Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CASE 4 WHEN + - SUM ( ALL + - 24 ) THEN + ( - - 18 ) * + 93 END AS col1, 96 + 14 AS col1 +---- +110 +NULL query I rowsort SELECT + 37 * 43 @@ -28084,8 +28431,11 @@ SELECT NULLIF ( CAST ( 58 AS INTEGER ), + 37 * - NULLIF ( - COUNT ( ALL 99 ), AV # 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\(22\) \+ Int64\(26\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 + 26 AS col1, + 51 col1 +---- +48 +51 query I rowsort label-5374 SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - + COUNT ( * ) @@ -28486,8 +28836,11 @@ SELECT DISTINCT + 1 * + - 47 * + - 85 * - + 70 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -316 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* Int64\(\-35\) \+ \(\- Int64\(\-67\)\) \+ \(\- 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 II valuesort SELECT 10 * - 35 + - - 67 + - + 33 AS col2, + 52 AS col2 +---- +-316 +52 query I rowsort SELECT NULLIF ( 11, - 51 ) @@ -28667,8 +29020,11 @@ SELECT ( + + 47 ) + + 13 + - 1 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* \(\- Int64\(4\)\) \+ Int64\(96\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(40\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 * - ( 4 ) + 96 + - - COUNT ( * ) * + COUNT ( * ) col0, + 40 + COUNT ( * ) AS col0 +---- +41 +41 query I rowsort label-5487 SELECT 47 / 91 AS col1 @@ -29254,8 +29610,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) +---- +1 +1 query II rowsort label-5600 SELECT CAST ( NULL AS INTEGER ) AS col1, 43 @@ -29276,8 +29635,11 @@ 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\(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\. +query RI valuesort 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 +---- +28 +NULL query II rowsort SELECT ALL + 18, 1 AS col1 @@ -29411,8 +29773,11 @@ SELECT ALL 54 + - 83 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) / Int64\(27\) AS col1" at position 0 and "Int64\(65\) \+ Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 / + 27 AS col1, 65 + 5 col1 +---- +2 +70 query I rowsort label-5629 SELECT 92 + 84 * CASE 60 WHEN + - COUNT ( * ) + + NULLIF ( - 41, - 91 + CAST ( NULL AS INTEGER ) + - 33 + - ( - - 48 ) * 8 ) + + + 14 * - 58 * - - COUNT ( DISTINCT - 93 ) THEN NULL ELSE + CASE + - MIN ( + CAST ( + + 12 AS INTEGER ) ) WHEN COUNT ( * ) THEN + + 95 * + 54 + - - 56 * - 81 + + - ( - 95 ) END * + 68 - + - 36 * - 99 - + 53 + ( + 17 ) + - - COALESCE ( MIN ( + 14 ), - - COUNT ( * ) * 91 * - 25 + + - 83 ) END @@ -29586,8 +29951,11 @@ SELECT ALL - - 78 + + 82 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - -2262 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "Int64\(39\) \* Int64\(\-58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 AS col0, 39 * - 58 AS col0 +---- +-2262 +69 query I rowsort SELECT DISTINCT 1 * 16 AS col0 @@ -29693,8 +30061,11 @@ SELECT DISTINCT + 45 * 26 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 86 AS col2, + COUNT ( * ) AS col2 +---- +1 +86 query I rowsort SELECT + - 6 + + + 3 @@ -30072,8 +30443,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +25 +NULL query I rowsort SELECT DISTINCT + 95 AS col0 @@ -30293,8 +30667,11 @@ SELECT DISTINCT - + CAST ( - 32 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - -116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col1" at position 0 and "Int64\(\-52\) \- Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 96 AS col1, - 52 - + 64 AS col1 +---- +-116 +-96 query I rowsort SELECT ALL - + 93 AS col1 @@ -30314,8 +30691,11 @@ SELECT + 76 * 24 AS col1 # 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 "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 II valuesort SELECT + - 63 AS col0, 27 AS col0 +---- +-63 +27 query I rowsort label-5801 SELECT + NULLIF ( COUNT ( * ), - - 2 * - + 44 ) @@ -30499,8 +30879,12 @@ 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\(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\. +query RII valuesort 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 +---- +-6 +39 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -31404,8 +31788,11 @@ SELECT ALL - 82 * - - ( - 19 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(48\)\) AS col2" at position 0 and "Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( 48 ) AS col2, 43 AS col2 +---- +1 +43 query I rowsort SELECT ALL + NULLIF ( - + 3, - - 99 ) @@ -31960,8 +32347,11 @@ SELECT 46 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -911 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-70\) \* Int64\(13\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 32 + - COUNT ( * ) AS col1, - 70 * 13 - COUNT ( * ) col1 +---- +-911 +31 query I rowsort label-6119 SELECT + CAST ( NULL AS INTEGER ) + + 22 AS col2 @@ -31971,8 +32361,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1702 # Datafusion - Expected - 546 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* Int64\(74\) AS col2" at position 0 and "count\(Int64\(\-36\)\) \* Int64\(21\) \* Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 23 * + + 74 AS col2, COUNT ( - 36 ) * + + 21 * 26 AS col2 +---- +1702 +546 query I rowsort SELECT DISTINCT + 6 * - - 77 @@ -32105,8 +32498,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( - COUNT ( * ) ) col1, + 48 AS col1 +---- +-1 +48 query I rowsort SELECT - 77 * - - COALESCE ( - 39, + 85 ) AS col2 @@ -32148,8 +32544,11 @@ SELECT ALL + 37 * 52 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col1" at position 0 and "Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 29 AS col1, 6 AS col1 +---- +-29 +6 query II rowsort label-6155 SELECT + 5 + + 55 * - + 56 * - 70 * MAX ( 40 ) AS col0, - ( + - NULLIF ( ( 2 ), 16 * + 85 ) ) @@ -32206,8 +32605,12 @@ SELECT 98 + 76 AS col2 # Datafusion - Expected - 54 # Datafusion - Expected - 2302 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 54 AS col2, 61 * + - ( - 38 ) + 25 - 41, + + 23 AS col2 +---- +23 +2302 +54 query I rowsort SELECT 8 + 79 AS col0 @@ -32244,8 +32647,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ max\(Int64\(\-92\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-52\) / Int64\(\-33\) AS col2" at position 0 and "CAST\(Int64\(\-3\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 + MAX ( - 92 ) + - - COUNT ( * ) * - 52 / - 33 AS col2, CAST ( - 3 AS INTEGER ) AS col2 +---- +-3 +-34 query I rowsort SELECT 44 * + 70 @@ -32347,8 +32753,11 @@ SELECT ( + ( 13 ) ) + 34 * - + 58 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-11\)\) \+ Int64\(\-94\) \+ Int64\(22\) AS col1" at position 0 and "Int64\(28\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(85\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( - 11 ) + - 94 + 22 AS col1, 28 / - + COUNT ( * ) + + 85 * + COUNT ( * ) AS col1 +---- +-71 +57 query I rowsort SELECT 70 * + - 43 @@ -32854,8 +33263,11 @@ SELECT - 95 AS col0, + ( + 82 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT - 12 AS col1, + ( 94 ) col1 +---- +-12 +94 query I rowsort label-6290 SELECT DISTINCT 50 / + + 72 @@ -33389,8 +33801,11 @@ 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\(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\. +query II valuesort SELECT + - COUNT ( * ) + - + 30 AS col0, + 91 AS col0 +---- +-31 +91 query I rowsort label-6392 SELECT - COALESCE ( MIN ( DISTINCT - - 45 ), - CAST ( NULL AS INTEGER ) + - COUNT ( * ) ) * - - 42 + - 72 @@ -33582,8 +33997,11 @@ SELECT ( - - 78 ) - + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -8536 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col1" at position 0 and "Int64\(97\) \* Int64\(\-88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 AS col1, + 97 * - 88 AS col1 +---- +-8536 +94 query II rowsort label-6429 SELECT DISTINCT NULLIF ( + COUNT ( * ), 54 + 46 * + + 10 ) + + + 13, - 88 col1 @@ -33599,8 +34017,11 @@ SELECT ALL ( 20 ) + 70 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5978 # Datafusion - Expected - 3100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(61\)\)\) \* nullif\(Int64\(\-98\), Int64\(99\) \* Int64\(89\)\) AS col2" at position 0 and "Int64\(62\) \* max\(Int64\(50\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - MIN ( ALL 61 ) ) * + + NULLIF ( - 98, + 99 * 89 ) AS col2, 62 * + + MAX ( 50 ) AS col2 +---- +3100 +5978 query I rowsort label-6432 SELECT 42 * - - CASE - 46 WHEN + - 58 + 5 * - 34 THEN + 81 / + 28 + + COUNT ( * ) / + - 63 * 14 - - + 60 / - 42 + - + 48 WHEN + + 45 THEN 22 WHEN - MIN ( 8 ) THEN NULL END * COUNT ( * ) @@ -34197,8 +34618,11 @@ 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\(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\. +query II valuesort SELECT ALL + 86 * + - COUNT ( * ) AS col1, - 89 * - - 5 AS col1 +---- +-445 +-86 query I rowsort label-6547 SELECT + + CASE + 71 WHEN + + 22 + - 21 THEN - COUNT ( * ) WHEN COALESCE ( + 22, + CASE - MIN ( DISTINCT - 80 ) WHEN - COALESCE ( + COUNT ( * ), 12 + - + MAX ( 6 ) + - + 60 ) * - + 32 - 93 * 47 * 81 THEN + 30 + + 10 * + ( + 29 ) ELSE NULL END ) THEN NULL END / - 33 + 41 * + 79 @@ -34507,8 +34931,11 @@ SELECT ALL 62 * + 91 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 54126 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "Int64\(\-82\) \+ Int64\(11\) \* Int64\(77\) \* \(\- Int64\(\-64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 AS col1, - 82 + + 11 * 77 * - - 64 AS col1 +---- +54126 +59 query I rowsort label-6605 SELECT + 27 + - 37 + - CASE + - 60 WHEN COUNT ( * ) / + - COUNT ( * ) * + + 12 * - MIN ( - 27 ) THEN NULL WHEN + 18 THEN NULL ELSE + + CAST ( NULL AS INTEGER ) * + + 34 * + - CAST ( NULL AS INTEGER ) END + - CAST ( NULL AS INTEGER ) * - 35 @@ -34611,8 +35038,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) / + 6 + 98 * - 17 * + 83 * 42 AS col0, 60 AS col0 +---- +-5807676 +60 query I rowsort label-6624 SELECT ALL - 52 * MAX ( ALL COALESCE ( - NULLIF ( - 13, 12 / + 33 - + + 89 ), 12 ) ) - 61 @@ -34709,8 +35139,11 @@ 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\(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\. +query II valuesort SELECT ALL ( + 76 ) AS col1, + 86 + + + COUNT ( * ) - 30 - + CASE - - COUNT ( * ) WHEN COUNT ( * ) THEN + 64 * + 16 ELSE + 55 END AS col1 +---- +-967 +76 query I rowsort SELECT ALL ( + 26 ) AS col1 @@ -36372,8 +36805,12 @@ SELECT ALL 81 + - 16 # Datafusion - Expected - 87 # Datafusion - Expected - 64 # 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 "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 87 AS col1, 64 col1, - ( - COUNT ( * ) ) col2 +---- +1 +64 +87 query I rowsort label-6962 SELECT ALL - COALESCE ( - - COUNT ( * ), + 27 ) + 21 * + - 63 AS col1 @@ -36764,8 +37201,11 @@ 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\(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\. +query II valuesort SELECT NULLIF ( - COALESCE ( + COUNT ( * ), - 29 + + 96 * - 76 * - 18 ), 14 + + 23 ) AS col0, - 97 - 51 AS col0 +---- +-1 +-148 query II rowsort label-7038 SELECT - 83 * - 34 - + CAST ( NULL AS INTEGER ) AS col2, 62 * - COUNT ( * ) * - - COUNT ( * ) col1 @@ -36833,8 +37273,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 + - 18 / - + COUNT ( * ) AS col0, - 76 AS col0 +---- +-76 +50 query I rowsort SELECT DISTINCT - 59 + - 55 AS col1 @@ -37066,8 +37509,11 @@ SELECT - - COUNT ( ALL + + 54 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 588 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(61\), \(\- Int64\(\-36\)\), Int64\(37\)\)\) AS col0" at position 0 and "Int64\(\-7\) \* Int64\(\-84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COALESCE ( + + 61, - - 36, + 37 ) col0, - 7 * - 84 col0 +---- +-61 +588 query II rowsort SELECT DISTINCT - - 31 + + 68 col0, 19 * + + 72 @@ -37129,8 +37575,11 @@ SELECT DISTINCT + + COUNT ( DISTINCT - 26 ) * 29 * - 83 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + 55 ) AS col0, COUNT ( * ) AS col0 +---- +1 +55 query I rowsort SELECT 65 + - ( + 64 ) AS col2 @@ -37403,8 +37852,11 @@ SELECT + MIN ( DISTINCT 42 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 49 AS col1, 91 AS col1 +---- +49 +91 query II rowsort label-7159 SELECT ALL + + 16 AS col1, - CAST ( COUNT ( * ) AS INTEGER ) AS col0 @@ -37654,8 +38106,11 @@ SELECT ALL + 55 * 2 + 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 819 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\), Int64\(3\) \* avg\(DISTINCT Int64\(66\)\)\) \- max\(CAST\(NULL AS Int32\)\) \+ Int64\(\-67\) \+ Int64\(\-56\) \+ \(\- min\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\)\) \* \(\- Int64\(42\)\) \* Int64\(46\) \- Int64\(\-73\) \* Int64\(21\) AS col2" at position 0 and "Int64\(21\) \* Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort 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 +---- +819 +NULL query I rowsort SELECT ALL - 16 + 55 @@ -37823,8 +38278,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 15 AS col2, - 20 AS col2 +---- +-20 +15 query I rowsort label-7239 SELECT ALL - COUNT ( * ) + - - 99 + - + 21 @@ -37834,8 +38292,11 @@ 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\(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\. +query II valuesort 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 +---- +76 +NULL query I rowsort label-7241 SELECT - - SUM ( ALL + 55 ) * 19 + + 48 * + 83 AS col0 @@ -38186,8 +38647,11 @@ SELECT ALL - 22 * COUNT ( * ) / - + 88 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -187 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) \+ Int64\(36\) \* Int64\(35\) \+ Int64\(\-7\) \+ Int64\(82\) \+ Int64\(\-55\) \* Int64\(26\) AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 + + 36 * + 35 + - 7 + 82 + - 55 * + + 26 AS col2, 40 AS col2 +---- +-187 +40 query I rowsort label-7309 SELECT DISTINCT - 49 / - - COUNT ( * ) AS col0 @@ -38215,8 +38679,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col2" at position 0 and "Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 78 AS col2, ( + - 98 ) AS col2 +---- +-78 +-98 query I rowsort SELECT - 38 + + 88 @@ -38725,14 +39192,20 @@ SELECT ALL + ( 18 ) - 93 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(82\), Int64\(58\) \+ \(\- Int64\(\-18\)\) \+ \(\- CAST\(Int64\(80\) AS Int32\)\) \* Int64\(94\) \- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "nullif\(CASE Int64\(\-21\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN Int64\(67\) \* Int64\(\-18\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-18\) ELSE NULL END, \(\- Int64\(\-77\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +82 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1967625 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* \(\- CASE CAST\(NULL AS Int32\) WHEN Int64\(\-32\) THEN Int64\(\-73\) \* Int64\(\-84\) WHEN Int64\(61\) \* Int64\(22\) \+ Int64\(\-21\) \* \(\- CAST\(NULL AS Int32\)\) / count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE min\(DISTINCT Int64\(40\)\) \* Int64\(\-71\) \+ \(\- coalesce\(Int64\(75\), Int64\(\-54\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-30\)\)\) END\) \* Int64\(45\) AS col2" at position 0 and "Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-95 +1967625 query I rowsort SELECT DISTINCT ( - 81 ) @@ -39170,8 +39643,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-70\)\) AS col2" at position 0 and "Int64\(\-31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 70 AS col2, - 31 AS col2 +---- +-31 +70 query I rowsort label-7496 SELECT ALL + - 15 + CASE 95 WHEN - - 59 - + - 99 * + + 81 + - 86 / + 28 + 92 + - + COUNT ( * ) * + COUNT ( * ) THEN NULL ELSE - 20 * - COUNT ( * ) END @@ -39412,8 +39888,11 @@ SELECT ALL - 73 * + COALESCE ( 1, - 22, + 44 + - + ( + 41 ) ) # 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 "Int64\(5\) \- Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 AS col0, 5 - 5 col0 +---- +-3 +0 query I rowsort SELECT 5 AS col0 @@ -39623,8 +40102,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + 97 * - + COUNT ( * ) AS col1, - 72 + - - MIN ( + 6 ) + + 9 * + - ( + COUNT ( * ) ) AS col1 +---- +-75 +-97 query I rowsort SELECT 99 + - 29 AS col1 @@ -39701,8 +40183,12 @@ SELECT + COUNT ( * ) / - COUNT ( * ) + - - 63 AS col1 # Datafusion - Expected - -1603 # Datafusion - Expected - 12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col1" at position 1 and "CAST\(NULL AS Float64\) \* Int64\(57\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort SELECT ALL - - 95 + - + 22 * + + 81 + + 84 AS col0, 12 AS col1, CAST ( NULL AS FLOAT8 ) * 57 col1 +---- +-1603 +12 +NULL query I rowsort SELECT ALL - - 14 @@ -39794,8 +40280,11 @@ SELECT ALL COUNT ( * ) + - + 3 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 16 AS col0, 7 AS col0 +---- +16 +7 query I rowsort SELECT ALL 14 + + 41 col0 @@ -40494,8 +40983,11 @@ SELECT + 7 * - 59 + - 10 / + 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col1" at position 0 and "\(\- Int64\(94\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 35 AS col1, - ( + + 94 ) AS col1 +---- +-35 +-94 query I rowsort label-7754 SELECT COUNT ( * ) + - + 57 + + + COUNT ( * ) + + 56 / 8 @@ -41004,8 +41496,11 @@ SELECT - COALESCE ( COUNT ( * ), - 51, - 71 * + 40 * - 73 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2046 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(31\) \* Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, + 31 * - 66 AS col1 +---- +-2046 +1 query I rowsort SELECT - ( - - 13 ) @@ -41510,8 +42005,11 @@ SELECT ALL 79 * 31 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4324 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \* coalesce\(Int64\(94\), Int64\(\-78\)\) AS col0" at position 0 and "nullif\(Int64\(61\), Int64\(98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 * + COALESCE ( + 94, + - 78 ) AS col0, NULLIF ( + 61, ( 98 ) ) AS col0 +---- +4324 +61 query I rowsort label-7950 SELECT CASE - 97 WHEN 33 * - 31 THEN + COUNT ( * ) WHEN - 13 THEN NULL ELSE NULL END * - 91 + + + CAST ( + 68 AS INTEGER ) @@ -42479,8 +42977,11 @@ SELECT - MAX ( ALL 21 ) + + - 79 AS col1, + 9 + + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 50 AS col2, 94 col2 +---- +50 +94 query I rowsort SELECT + 79 * ( - NULLIF ( + 44, - + 43 ) ) * - - 97 AS col0 @@ -42495,8 +42996,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * + 42 * + 18 AS col2, 0 AS col2 +---- +0 +756 query II rowsort label-8139 SELECT DISTINCT + COUNT ( * ) * - + 85 * - + 82, - 13 / COUNT ( * ) * - ( - 15 ) * 86 + 14 + - 84 AS col1 @@ -43003,14 +43507,20 @@ SELECT - 57 * - ( SUM ( - 15 ) ) AS col2, + COUNT ( * ) + - - MIN ( DISTINCT - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -9067 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(11\) \* Int64\(0\) \+ Int64\(47\) \+ Int64\(98\) \* Int64\(\-93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) col2, + 11 * - 0 + 47 + + 98 * - 93 AS col2 +---- +-9067 +1 # 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\(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\. +query II valuesort SELECT ( - - 27 ) / + - 32 + COUNT ( * ) + - 93 + + 1 AS col0, + 97 + - 90 AS col0 +---- +-91 +7 query I rowsort label-8236 SELECT DISTINCT - 23 * + 98 * + - CAST ( 99 AS INTEGER ) @@ -43020,8 +43530,11 @@ SELECT DISTINCT - 23 * + 98 * + - CAST ( 99 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 61 AS col1, 78 AS col1 +---- +61 +78 query I rowsort label-8238 SELECT - 3 / + 33 + + 77 @@ -43114,8 +43627,11 @@ SELECT - 46 * + - 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(16\) / Int64\(29\) \* Int64\(86\) \* \(\- Int64\(22\)\) \* Int64\(\-24\) \+ \(\- CAST\(NULL AS Float64\)\) / Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + COUNT ( * ) AS col1, 16 / 29 * 86 * - + 22 * - 24 + + ( + - CAST ( NULL AS FLOAT8 ) ) / 9 col1 +---- +1 +NULL query I rowsort label-8256 SELECT COALESCE ( + SUM ( DISTINCT 6 ), - 19 * COUNT ( * ), COUNT ( * ) * - + 2 + 85 ) AS col1 @@ -43471,8 +43987,11 @@ SELECT ALL - + 4 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 2964 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-26\), Int64\(26\)\)\) AS col0" at position 0 and "Int64\(52\) \* \(\- Int64\(\-57\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - NULLIF ( - 26, + 26 ) col0, 52 * - - 57 AS col0 +---- +26 +2964 query I rowsort label-8324 SELECT - CAST ( - 86 AS INTEGER ) AS col2 @@ -43776,8 +44295,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -181 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \+ Int64\(\-35\) \- Int64\(68\) AS col1" at position 0 and "Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 78 + + - 35 - + 68 AS col1, ( - 80 ) AS col1 +---- +-181 +-80 query I rowsort SELECT ALL ( + 17 ) col1 @@ -44270,8 +44792,11 @@ SELECT ALL - 55 - SUM ( - 30 ) - - COUNT ( * ) # 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 "Int64\(97\) / Int64\(\-78\) AS col1" at position 0 and "Int64\(\-71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 97 / + - 78 col1, - 71 AS col1 +---- +-1 +-71 query I rowsort label-8479 SELECT 51 * - 7 + - ( 81 ) + COUNT ( * ) + CASE WHEN NULL BETWEEN - ( - 29 ) AND NULL THEN - - COUNT ( * ) END + COUNT ( - - 5 ) * 14 @@ -44742,8 +45267,11 @@ SELECT DISTINCT - 39 * - 82 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -1890 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-28\) AS Int32\) \+ Int64\(45\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(45\) \* Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( - 28 AS INTEGER ) + + 45 + - + ( - + COUNT ( * ) ) col0, 45 * - 42 AS col0 +---- +-1890 +18 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -44937,8 +45465,11 @@ 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 "\(\- CASE Int64\(\-90\) WHEN Int64\(\-87\) THEN Int64\(20\) END\) \* Int64\(\-51\) \+ Int64\(\-31\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CASE - 90 WHEN - 87 THEN + + 20 END * - 51 + - 31 col0, 4 AS col0 +---- +4 +NULL query I rowsort SELECT 90 col0 @@ -44948,8 +45479,11 @@ SELECT 90 col0 # 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 "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 II valuesort SELECT ALL - 14 col0, + 67 AS col0 +---- +-14 +67 query I rowsort label-8609 SELECT 62 + - 89 + + COUNT ( * ) + + + 96 * + + CAST ( 11 AS INTEGER ) AS col2 @@ -45147,8 +45681,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(8\) \- Int64\(\-89\) \+ Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( ALL 73 ) * - + 50 AS col0, COUNT ( * ) * + 8 - - 89 + 38 AS col0 +---- +-50 +135 query I rowsort label-8646 SELECT + ( + - COUNT ( * ) ) * + 74 @@ -45163,8 +45700,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -4493016 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) / Int64\(69\) AS col1" at position 0 and "Int64\(1\) \* Int64\(\-93\) \* \(\- CASE Int64\(17\) WHEN Int64\(\-89\) THEN NULL ELSE Int64\(33\) \* Int64\(61\) \* Int64\(\-24\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 4 / + 69 AS col1, 1 * - 93 * - CASE + 17 WHEN - 89 THEN NULL ELSE + + 33 * + 61 * - 24 END AS col1 +---- +-4493016 +0 query I rowsort label-8649 SELECT - COALESCE ( + - ( + 11 ), - - 56, + MIN ( DISTINCT ( - 22 ) ) + + CAST ( + COALESCE ( - COUNT ( * ), 57, + + 37 * + 81 ) AS INTEGER ) / 71 * - + NULLIF ( - + 6, + 92 + + COUNT ( * ) + - ( + 2 ) / - 94 ) + MAX ( ALL - 83 ), + 10 ) / + - NULLIF ( - + 69, - - 36 * 15 ) AS col0 @@ -45267,8 +45807,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT MIN ( DISTINCT - 1 ) + NULLIF ( 32, + - ( - COUNT ( * ) ) ) + - 12 + - - 76 * - 9 * 1 AS col2, - 68 AS col2 +---- +-665 +-68 query I rowsort SELECT - + 14 @@ -45423,8 +45966,11 @@ SELECT - CAST ( - 13 AS INTEGER ) * - - 6 - + 31 * + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 67 col2, + 75 AS col2 +---- +67 +75 query I rowsort label-8699 SELECT - 35 + + ( CAST ( + 37 AS INTEGER ) ) @@ -45439,8 +45985,11 @@ SELECT DISTINCT 78 * + ( + MIN ( 28 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 AS col0, 28 AS col0 +---- +28 +70 query I rowsort label-8702 SELECT ALL + NULLIF ( - CAST ( NULL AS INTEGER ), - 83 * + COUNT ( - - ( 59 ) ) * 99 ) AS col1 @@ -45455,8 +46004,11 @@ SELECT ALL - COUNT ( * ) * - + 82 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2904 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(\-69\) \* \(\- Int64\(74\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(91\) \* CAST\(Int64\(32\) AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(52\) \+ Int64\(93\), Int64\(38\) \+ nullif\(CAST\(NULL AS Int32\), Int64\(\-49\)\)\)\) \- sum\(Int64\(9\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +2904 +NULL query I rowsort label-8705 SELECT ALL - 62 * COUNT ( * ) + - 39 + - 80 + + 92 * COUNT ( * ) AS col1 @@ -45466,8 +46018,11 @@ SELECT ALL - 62 * COUNT ( * ) + - 39 + - 80 + + 92 * COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \- \(\- nullif\(\(\- Int64\(55\)\), Int64\(57\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- nullif\(Int64\(47\), \(\- CAST\(\(\- Int64\(19\)\) AS Float64\)\)\)\) \* Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 7 AS col1, + COUNT ( * ) + + CAST ( NULL AS INTEGER ) - - NULLIF ( - + 55, + + 57 ) + + COUNT ( * ) + - + NULLIF ( 47, + - CAST ( - + 19 AS FLOAT8 ) ) * - 27 AS col1 +---- +7 +NULL query I rowsort SELECT - - 26 col0 @@ -45477,8 +46032,11 @@ 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\(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\. +query II valuesort SELECT ALL + + COUNT ( * ) * - 98 + - 19 AS col0, - 51 / + 5 col0 +---- +-10 +-117 query I rowsort label-8709 SELECT + 29 * + + COUNT ( * ) col0 @@ -46940,8 +47498,11 @@ SELECT - COALESCE ( + 93, + 93 ) * + 67 + + COALESCE ( - CASE + - 24 WHEN + 8 TH # Datafusion - Datafusion expected results: # Datafusion - Expected - 2754 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* Int64\(54\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 * + 54 AS col1, + 51 AS col1 +---- +2754 +51 query II rowsort label-8987 SELECT DISTINCT - 90 AS col0, 21 * 16 * - CASE - 99 WHEN - + ( + - 1 ) * - + 2 + - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + - + 92 THEN NULL WHEN + 28 THEN + ( + ( + 28 ) ) END + + + 71 AS col1 @@ -47050,8 +47611,11 @@ 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\(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\. +query II valuesort SELECT + 90 AS col0, COUNT ( * ) / - MIN ( ALL 88 ) * + + 47 + + 90 AS col0 +---- +90 +90 query I rowsort label-9008 SELECT 65 * - MIN ( DISTINCT - 14 ) AS col2 @@ -47450,8 +48014,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 + 32 col2, + COUNT ( * ) * + 5 AS col2 +---- +5 +64 query I rowsort SELECT - 49 * - 71 * - + 32 @@ -47542,8 +48109,11 @@ SELECT ALL + COUNT ( * ) * - 99 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \+ Int64\(28\) AS col0" at position 0 and "Int64\(13\) \+ Int64\(71\) \+ CAST\(NULL AS Int32\) \* \(\- Int64\(\-86\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 + 28 col0, 13 + 71 + CAST ( NULL AS INTEGER ) * - - 86 col0 +---- +18 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -47931,8 +48501,12 @@ NULL # Datafusion - Expected - -507091184 # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(\-16\)\)\) \- Int64\(56\) \* Int64\(\-30\) \* Int64\(\-49\) \* Int64\(80\) \* Int64\(77\) AS col2" at position 0 and "Int64\(1\) \+ \(\- \(\- CAST\(\(\- CASE \(\- Int64\(27\)\) WHEN \(\- Int64\(7\)\) THEN NULL WHEN Int64\(85\) \+ Int64\(\-33\) \+ \(\- avg\(Int64\(\-59\)\)\) \* Int64\(\-6\) THEN Int64\(\-31\) END\) AS Int32\)\)\) / \(\- Int64\(\-3\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - MAX ( DISTINCT + - 16 ) - 56 * - 30 * - 49 * 80 * + 77 AS col2, ( + ( - - 97 ) ), 1 + - - CAST ( + - CASE + - ( + 27 ) WHEN - ( 7 ) THEN NULL WHEN + 85 + + - 33 + - + AVG ( - 59 ) * - 6 THEN - 31 END AS INTEGER ) / - ( - 3 ) col2 +---- +-507091184 +97 +NULL query I rowsort label-9175 SELECT + ( - 69 ) + 87 + - - COUNT ( * ) AS col0 @@ -48495,8 +49069,11 @@ 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\(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\. +query II valuesort SELECT + ( - - COUNT ( * ) ) + - 59 AS col1, COALESCE ( - COUNT ( * ), 82, - 77 * - - 88 ) AS col1 +---- +-1 +-58 query II rowsort label-9284 SELECT ALL - ( + COUNT ( - - 44 ) ), 21 AS col0 @@ -48562,8 +49139,11 @@ SELECT COALESCE ( - 49, + 62 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, + 37 AS col1 +---- +1 +37 query I rowsort label-9297 SELECT CASE 14 WHEN - COALESCE ( - 78, - + 90 - - + COALESCE ( + 60, + - 18 ) ) + + 79 + + COUNT ( * ) * + 72 THEN COUNT ( * ) ELSE + - 85 * - NULLIF ( + 26, + 98 * + ( - - COUNT ( * ) ) - - + 84 - + NULLIF ( - 94, 89 - - COUNT ( * ) ) ) END * + - ( - CAST ( NULL AS INTEGER ) ) * - ( + - 91 ) / 48 + + - 82 @@ -50284,8 +50864,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1, 80 AS col1 +---- +80 +NULL query I rowsort label-9630 SELECT - 5 + + 95 * - 43 + - + COUNT ( * ) col2 @@ -50425,8 +51008,11 @@ SELECT 10 + + 41 + - + COALESCE ( + 45, - 37 + 19 ) * 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 130 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \+ Int64\(59\) \+ Int64\(70\) AS col0" at position 0 and "Int64\(\-40\) / Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 1 + + + 59 + 70 AS col0, - 40 / + ( 9 ) AS col0 +---- +-4 +130 query I rowsort label-9657 SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 60 @@ -50666,8 +51252,11 @@ 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\(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\. +query II valuesort 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 +---- +-65 +NULL query I rowsort SELECT ALL 13 * - 28 * 7 @@ -50829,8 +51418,11 @@ SELECT ALL + 85 + - + 98 + + - 52 / 10 - + 25 * + 95 / - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(Int64\(10\) AS Int32\)\) AS col0" at position 0 and "CASE Int64\(89\) WHEN Int64\(59\) THEN NULL ELSE Int64\(33\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 36 + COUNT ( * ) + - CAST ( 10 AS INTEGER ) AS col0, CASE + 89 WHEN + 59 THEN NULL ELSE 33 END AS col0 +---- +-45 +33 query I rowsort SELECT - + COALESCE ( 58, + 82 * 9 ) AS col1 @@ -51046,8 +51638,11 @@ SELECT - - 23 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4554 # Datafusion - Expected - 171 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \* Int64\(\-69\) AS col1" at position 0 and "Int64\(19\) \* Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 66 * + - 69 col1, 19 * + 9 AS col1 +---- +-4554 +171 query I rowsort label-9776 SELECT ALL - 62 + 8 + + MAX ( DISTINCT + - 56 ) @@ -51082,8 +51677,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col0, + 24 AS col0 +---- +24 +NULL query I rowsort SELECT - 95 * + 29 AS col2 @@ -51578,8 +52176,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(94\) \+ Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( + 14 ) * 33 AS col2, - 25 * + + COUNT ( * ) * + 94 + + 57 AS col2 +---- +-2293 +462 query I rowsort label-9878 SELECT DISTINCT + - SUM ( ALL + - 97 ) AS col0 diff --git a/data/sqlite/random/expr/slt_good_25.slt b/data/sqlite/random/expr/slt_good_25.slt index 13fc4b0..115a7ee 100644 --- a/data/sqlite/random/expr/slt_good_25.slt +++ b/data/sqlite/random/expr/slt_good_25.slt @@ -96,8 +96,11 @@ SELECT DISTINCT + 90 * - - 39 * ( + 69 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- Int64\(\-9\)\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) * - - 9 AS col1, ( 44 ) AS col1 +---- +44 +NULL query I rowsort SELECT ALL + 72 * + 70 * - - 28 @@ -281,8 +284,11 @@ SELECT - ( + ( + - 81 ) ) + - 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2791 # Datafusion - Expected - 560 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) \+ Int64\(\-38\) \* Int64\(\-75\) AS col0" at position 0 and "Int64\(56\) \* Int64\(10\) \+ Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 59 + - 38 * - 75 col0, + 56 * 10 + + - 0 AS col0 +---- +2791 +560 query I rowsort label-47 SELECT ALL ( - COUNT ( * ) ) AS col1 @@ -419,8 +425,11 @@ SELECT ALL 50 * - + 93 + + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -872 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "Int64\(\-83\) \* \(\- \(\- CAST\(Int64\(9\) AS Int32\)\)\) \+ Int64\(\-26\) \+ \(\- Int64\(99\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 89 AS col2, + ( + - 83 ) * - - CAST ( + 9 AS INTEGER ) + - 26 + - ( + 99 ) AS col2 +---- +-872 +89 query I rowsort SELECT + - 94 @@ -541,8 +550,11 @@ SELECT 22 * - 32 * MIN ( 27 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- Int64\(68\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 65 AS col1, CAST ( NULL AS INTEGER ) + - + ( + 68 ) AS col1 +---- +-65 +NULL query I rowsort SELECT ALL - - 34 + - + 64 @@ -787,8 +799,12 @@ SELECT - + 72 * ( - - 65 ) AS col0 # Datafusion - Expected - -3886 # Datafusion - Expected - 35 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(35\), Int64\(\-56\), CAST\(Int64\(30\) AS Int32\), \(\- Int64\(75\)\) \* Int64\(67\)\) AS col2" at position 1 and "Int64\(52\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + 67 * 58, + COALESCE ( + 35, - 56, ( + CAST ( 30 AS INTEGER ) ), - + 75 * + 67 ) AS col2, 52 AS col2 +---- +-3886 +35 +52 query I rowsort SELECT DISTINCT + 83 AS col1 @@ -891,8 +907,11 @@ SELECT ALL - 16 * 12 + 46 * + 54 AS col0, - 69 * - 15 * + 48 * + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-15\) \+ \(\- Int64\(75\)\) \* \(\- \(\- sum\(CAST\(NULL AS Int32\)\)\)\) \- Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, - 15 + - + 75 * - ( - SUM ( + CAST ( NULL AS INTEGER ) ) ) - ( - 6 ) AS col1 +---- +1 +NULL query I rowsort label-164 SELECT - 74 * - + CASE - - CAST ( NULL AS INTEGER ) WHEN + - 35 THEN 58 END * + 55 * + - 76 * + 90 + - CASE COUNT ( + 15 ) WHEN - 53 THEN NULL WHEN 93 * 39 - COUNT ( * ) - + + 47 / + NULLIF ( - + 6, 5 ) * - 64 - 64 THEN - 18 ELSE + 0 END + + 3 @@ -1016,8 +1035,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) / \(\- Int64\(\-48\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- Int64\(28\)\) / Int64\(\-50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 85 / - - 48 AS col2, CAST ( NULL AS INTEGER ) + - + 28 / - 50 AS col2 +---- +1 +NULL query I rowsort SELECT ALL 72 * - 65 AS col1 @@ -1104,8 +1126,11 @@ SELECT ALL + 11 * + ( - 29 ) + - 62 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + COUNT ( * ) ) col1, + COUNT ( * ) AS col1 +---- +1 +1 query I rowsort label-205 SELECT ALL + 27 * + 40 - - COUNT ( * ) + - 60 @@ -1924,8 +1949,11 @@ SELECT COUNT ( * ) + + + 19 + - 9 AS col2, 12 + 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \- Int64\(96\) / Int64\(\-80\) AS col0" at position 0 and "Int64\(10\) \+ CAST\(\(\- Int64\(\-1\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 - 96 / - 80 AS col0, + 10 + + CAST ( - - 1 AS INTEGER ) AS col0 +---- +11 +62 query I rowsort SELECT ALL - 97 col2 @@ -2573,8 +2601,11 @@ SELECT + COUNT ( * ) * + 48 AS col2 # 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 col2" at position 0 and "Int64\(58\) / Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 23 AS col2, 58 / - 81 col2 +---- +-23 +0 query I rowsort SELECT + - 61 + - 65 AS col0 @@ -2614,8 +2645,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 90 AS col1, - 6 AS col1 +---- +-6 +90 query II rowsort label-491 SELECT + - 82, 10 / + + 16 * - 44 + 33 + 11 * - SUM ( ALL + - 74 ) AS col1 @@ -2674,8 +2708,11 @@ SELECT COUNT ( * ) * 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 588 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(14\) AS col2" at position 0 and "Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 42 * 14 AS col2, - 76 AS col2 +---- +-76 +588 query I rowsort SELECT DISTINCT - 33 + - 92 * 34 @@ -2858,8 +2895,12 @@ SELECT ( - 64 ) + + 41 AS col2 # Datafusion - Expected - 66 # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "\(\- count\(Int64\(66\)\)\) \* Int64\(\-57\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-33\) \* \(\- CAST\(Int64\(74\) AS Int32\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 66 AS col0, COALESCE ( ( + + COUNT ( * ) ), + 84 + + 55 ), + - COUNT ( 66 ) * - 57 * - CAST ( NULL AS INTEGER ) + - 33 * - CAST ( + 74 AS INTEGER ) AS col0 +---- +1 +66 +NULL query I rowsort label-537 SELECT ALL MAX ( + 68 ) + 56 @@ -2879,8 +2920,11 @@ 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 col1" at position 0 and "Int64\(45\) / Int64\(\-81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 13 AS col1, + 45 / - 81 AS col1 +---- +-13 +0 query II rowsort label-541 SELECT CASE 7 WHEN 79 / - COUNT ( * ) + - - COUNT ( 91 ) + + + 95 + - 41 + - CASE - MIN ( DISTINCT + 90 ) WHEN - 14 + + 81 * 50 THEN 87 WHEN + + 96 THEN + + 13 WHEN - - 34 THEN NULL ELSE - - SUM ( DISTINCT 91 ) / ( - - 64 ) END * - + 7 THEN - 98 - - - CAST ( NULL AS INTEGER ) ELSE NULL END + 67 AS col1, 21 @@ -2891,8 +2935,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -2989 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(49\) \* \(\- Int64\(61\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( 37 ) / + COUNT ( * ) AS col1, 49 * - + 61 AS col1 +---- +-2989 +37 query I rowsort SELECT 75 * - 86 + - 10 * - 76 * - 4 AS col0 @@ -3561,8 +3608,11 @@ SELECT ALL + 9 + - 84 / + 78 # 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 col2" at position 0 and "CASE \(\- Int64\(38\)\) WHEN Int64\(0\) THEN NULL WHEN Int64\(\-96\) THEN NULL ELSE Int64\(77\) END \+ Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 94 col2, + CASE - + 38 WHEN + 0 THEN NULL WHEN - 96 THEN NULL ELSE + 77 END + + - 79 col2 +---- +-2 +-94 query I rowsort SELECT + 25 + - 26 * + 9 @@ -3877,8 +3927,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(DISTINCT \(\- Int64\(86\)\)\) \* Int64\(39\) \* CAST\(Int64\(\-7\) AS Float64\) \- Int64\(21\) \* Int64\(58\) / \(\- CAST\(NULL AS Int32\)\) \+ Int64\(75\) AS col2" at position 0 and "\(\- CAST\(\(\- Int64\(2\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + AVG ( DISTINCT - + 86 ) * + + 39 * + + CAST ( + - 7 AS FLOAT8 ) - + + 21 * 58 / - CAST ( NULL AS INTEGER ) + + 75 AS col2, - CAST ( - + 2 AS INTEGER ) AS col2 +---- +2 +NULL query I rowsort SELECT - ( + 99 ) * + 48 @@ -3988,8 +4041,11 @@ 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\(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\. +query II valuesort SELECT ALL + 93 AS col1, - CASE + + 18 WHEN + - COUNT ( * ) + 15 * + ( + 27 ) THEN NULL WHEN - + 11 THEN - - ( 30 ) END * 4 AS col1 +---- +93 +NULL query I rowsort label-753 SELECT - ( - 77 ) * CAST ( NULL AS INTEGER ) * - 10 + - COUNT ( * ) + + - ( ( - COALESCE ( 39, - ( + 14 ), 38 ) ) ) + + + MIN ( DISTINCT + 96 ) AS col1 @@ -4410,8 +4466,11 @@ 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\(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\. +query II valuesort 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 +---- +-300 +1718 query II rowsort label-833 SELECT ALL + 91, 11 / 94 AS col2 @@ -5371,8 +5430,12 @@ SELECT DISTINCT ( + - NULLIF ( - 65, CAST ( NULL AS INTEGER ) ) ) * 44 AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 19 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, 19 AS col1, 32 col0 +---- +19 +32 +NULL query II rowsort SELECT 70, 63 AS col2 @@ -5972,8 +6035,11 @@ SELECT ALL + 65 - + 88 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 800 # Datafusion - Expected - -168 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(\-80\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(28\) \* Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 10 * - 80 * + COUNT ( * ) AS col1, 28 * - 6 AS col1 +---- +-168 +800 query I rowsort label-1132 SELECT DISTINCT COUNT ( * ) / - 43 AS col2 @@ -6177,14 +6243,20 @@ SELECT DISTINCT COUNT ( * ) * - - 57 * + COUNT ( - 61 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "Int64\(\-3\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(34\) \+ \(\- CAST\(\(\- \(\- coalesce\(coalesce\(Int64\(73\), \(\- Int64\(41\)\)\), Int64\(\-63\) \* Int64\(49\)\)\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 95 col2, ( + - 3 ) * + + COUNT ( * ) / + 34 + + - CAST ( - - COALESCE ( + COALESCE ( 73, - + 41 ), - 63 * + 49 ) AS INTEGER ) col2 +---- +-73 +95 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 AS col2, 58 AS col2 +---- +-48 +58 query I rowsort label-1173 SELECT ALL NULLIF ( + CAST ( 12 AS INTEGER ), - 52 ) - - 53 / - 68 / 6 * + + CASE - NULLIF ( + 24, - 51 ) WHEN + 69 THEN NULL WHEN + 86 * + COUNT ( * ) * - CASE - 22 WHEN 79 THEN - 25 + - - 55 WHEN CAST ( NULL AS INTEGER ) THEN - 22 / + NULLIF ( + CAST ( NULL AS INTEGER ), + 34 ) WHEN - - 86 + 12 + + MAX ( DISTINCT + ( + + 45 ) ) * ( 18 ) + 70 + 6 * + 42 THEN 0 ELSE NULL END - + COUNT ( * ) THEN NULL ELSE - 94 END + + COUNT ( * ) @@ -6403,8 +6475,11 @@ SELECT 84 + - + 50 / + - 80 * - - 63 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ \(\- Int64\(72\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 86 + - + 72 AS col0, + COUNT ( * ) col0 +---- +1 +14 query I rowsort label-1215 SELECT DISTINCT 4 + 57 - + COUNT ( * ) * + 92 * COUNT ( * ) col0 @@ -6420,8 +6495,11 @@ 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\(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\. +query II valuesort SELECT ALL 39 + - + COUNT ( * ) AS col2, 23 * - 90 AS col2 +---- +-2070 +38 query I rowsort SELECT + + 38 + - + 63 AS col2 @@ -6752,8 +6830,11 @@ SELECT - COALESCE ( 24, - 34 * - - 95 - 23 * - 4, - 89, + 64 * - 95 ) * - 66 col # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 6 / COUNT ( * ) col0, 63 AS col0 +---- +-6 +63 query I rowsort label-1280 SELECT ALL 72 / + ( + + CASE 49 WHEN 27 THEN NULL ELSE - 99 END ) + + + ( - 12 ) @@ -7632,8 +7713,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 AS col2, + COUNT ( * ) - 3 AS col2 +---- +-2 +34 query I rowsort label-1451 SELECT ALL + - 89 + + 63 * 46 * + CASE WHEN CAST ( NULL AS INTEGER ) IS NULL THEN NULL WHEN NOT ( NULL ) NOT BETWEEN 0 AND ( NULL ) THEN MAX ( 45 ) + - 69 ELSE 69 - 28 END @@ -7643,8 +7727,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 8 AS col1, COUNT ( * ) col1 +---- +1 +8 query I rowsort SELECT ALL + 1 + - 1 AS col1 @@ -8245,14 +8332,20 @@ SELECT ALL + + 90 / + + 93 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col1, 64 col1 +---- +64 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) AS col0" at position 0 and "Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 1 AS col0, 62 AS col0 +---- +-1 +62 query I rowsort SELECT - 68 * - 87 * - 48 + + 47 @@ -8315,8 +8408,11 @@ SELECT + 25 col0 # 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 "Int64\(70\) \+ \(\- Int64\(82\)\) AS col2" at position 0 and "Int64\(\-92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 70 + - + 82 AS col2, - 92 col2 +---- +-12 +-92 query I rowsort label-1583 SELECT ALL COALESCE ( + 16, - ( 84 ) ) * - CAST ( NULL AS INTEGER ) + + + ( + 24 ) * - CAST ( + 24 AS INTEGER ) @@ -8485,8 +8581,11 @@ SELECT + COALESCE ( - 4, 45 ) AS col0, 11 col1 # 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\(0\) / Int64\(\-22\) \* Int64\(\-60\) AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 / + - 22 * - 60 AS col1, 28 AS col1 +---- +0 +28 query I rowsort SELECT ALL - 48 + - 49 + - 89 AS col0 @@ -8536,8 +8635,11 @@ 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\(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\. +query II valuesort SELECT + 34 AS col2, SUM ( DISTINCT + 65 ) / + + ( + - 55 ) + + - COUNT ( * ) * 44 * + + 71 - - MIN ( ALL + 25 ) AS col2 +---- +-3100 +34 query I rowsort label-1626 SELECT + MIN ( ALL + 65 ) @@ -8594,8 +8696,11 @@ SELECT - MAX ( 44 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col1" at position 0 and "Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 41 col1, - 16 AS col1 +---- +-16 +-41 query I rowsort label-1637 SELECT ALL - CASE - COUNT ( * ) WHEN - + ( - COUNT ( * ) ) THEN SUM ( - - 33 ) / 74 * + - MAX ( ALL - 32 ) END @@ -10102,8 +10207,11 @@ SELECT - NULLIF ( + + 39, 89 * - 62 + + 84 * + 34 + + 40 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 AS col0, + 25 col0 +---- +25 +76 query I rowsort SELECT ALL 45 * + - 84 @@ -10264,8 +10372,11 @@ SELECT - 74 * ( 53 ) * - + 58 + 67 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col0" at position 0 and "Int64\(93\) \- Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 97 AS col0, + 93 - + + 15 AS col0 +---- +78 +97 query I rowsort SELECT DISTINCT 88 * 34 col0 @@ -10697,8 +10808,12 @@ 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\(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\. +query III valuesort SELECT ALL COUNT ( * ) + + 53 * - CAST ( NULL AS INTEGER ) + - 65, + COUNT ( * ) + - ( - 36 ) AS col2, 44 * - 0 + - 74 AS col2 +---- +-74 +37 +NULL query I rowsort SELECT - + 67 AS col2 @@ -10733,8 +10848,11 @@ SELECT - - 75 + - 82 - - 90 + 43 # 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\(\-69\) \+ Int64\(51\) AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 69 + + + 51 AS col2, 62 AS col2 +---- +-18 +62 query I rowsort SELECT ALL + + 76 + - + 62 AS col1 @@ -10953,8 +11071,11 @@ 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\(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\. +query II valuesort SELECT ALL - ( - - COUNT ( * ) ) - - 44 AS col2, 88 AS col2 +---- +43 +88 query I rowsort SELECT - - 7 AS col2 @@ -11081,8 +11202,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + 46 AS col2, COUNT ( * ) - + NULLIF ( - 99, 38 ) + 77 * - 70 AS col2 +---- +-5290 +46 query I rowsort SELECT ALL + 62 * - 73 * + 77 @@ -11205,8 +11329,11 @@ SELECT 76 * - 75 + - 64 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 17 col0, 53 AS col0 +---- +17 +53 query II rowsort label-2142 SELECT - 28, COUNT ( + - 28 ) AS col1 @@ -11223,8 +11350,11 @@ SELECT - SUM ( ALL + 48 ) AS col2, SUM ( DISTINCT - - 25 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \- \(\- Int64\(46\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 4 - - + 46 AS col1, + COUNT ( * ) AS col1 +---- +1 +42 query I rowsort label-2145 SELECT + 84 * + 73 * + 82 * - 6 + - COUNT ( + 66 ) AS col0 @@ -11350,8 +11480,11 @@ SELECT ALL - 48 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 846 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ Int64\(\-87\) AS col2" at position 0 and "Int64\(47\) \* Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 57 + - 87 AS col2, + 47 * + 18 col2 +---- +-30 +846 query I rowsort label-2169 SELECT DISTINCT ( - - 1 ) + + 30 * + COUNT ( * ) @@ -11393,8 +11526,11 @@ SELECT ALL 15 * 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \+ \(\- CAST\(Int64\(40\) AS Int32\)\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 23 + + - CAST ( + 40 AS INTEGER ) AS col2, 61 col2 +---- +-63 +61 query I rowsort SELECT + - 57 AS col0 @@ -11435,8 +11571,11 @@ SELECT COUNT ( * ) + - CAST ( CAST ( 38 AS INTEGER ) AS INTEGER ) / 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 411804 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-81\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(81\) \* Int64\(82\) \* Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 81 * COUNT ( * ) AS col0, 81 * 82 * 62 AS col0 +---- +411804 +81 query I rowsort label-2185 SELECT 59 + + 61 / + 3 + - 48 AS col1 @@ -12531,8 +12670,11 @@ SELECT ALL - 23 * + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 168 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \+ Int64\(90\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + + 78 ) + + + 90 AS col2, 11 AS col2 +---- +11 +168 query I rowsort label-2395 SELECT - MIN ( DISTINCT - ( + - 90 ) ) * - + 45 AS col2 @@ -13077,8 +13219,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 83 ) - - 64 / 13 / + + ( + - 98 ) * + 80 AS col1, + COUNT ( * ) - 66 AS col1 +---- +-65 +83 query II rowsort label-2500 SELECT MIN ( DISTINCT - + 58 ), 7 AS col0 @@ -13199,8 +13344,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col0, - 11 + + 40 + + 59 AS col0 +---- +-1 +88 query I rowsort SELECT - - 12 + 78 @@ -13357,8 +13505,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 440 # Datafusion - Expected - -969 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* Int64\(8\) AS col0" at position 0 and "Int64\(\-17\) \* Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 55 * + 8 AS col0, - 17 * + 57 AS col0 +---- +-969 +440 query II rowsort SELECT DISTINCT + - 3 + + 99 col1, - 50 col0 @@ -13526,8 +13677,11 @@ SELECT - COALESCE ( - ( 96 ), 73 ) + + 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -91112 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-3\)\) AS col0" at position 0 and "Int64\(76\) \* Int64\(\-48\) \* Int64\(25\) \+ Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 3 AS col0, 76 * - 48 * 25 + + 88 AS col0 +---- +-91112 +3 query II rowsort label-2585 SELECT DISTINCT + 39 + - + COUNT ( * ) + - COUNT ( * ) / + ( - 89 ) + 96 AS col1, + ( 1 ) col0 @@ -13607,8 +13761,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(Int64\(16\) AS Int32\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 * + COUNT ( * ) AS col1, ( + CAST ( + + 16 AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) AS col1 +---- +47 +NULL query I rowsort label-2600 SELECT DISTINCT + ( + CASE - - 79 WHEN + COUNT ( * ) THEN NULL WHEN + 41 / - 63 THEN + - MIN ( DISTINCT - 65 ) * 27 WHEN - ( ( + + 16 ) ) THEN + 34 - - 62 ELSE NULL END ) / - 81 AS col0 @@ -14361,8 +14518,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + 34 / - NULLIF ( COUNT ( * ), - 95 ) AS col1, ( + 29 ) * + 89 - 92 * - 58 * - 45 AS col1 +---- +-237539 +-34 query I rowsort SELECT 56 * - 10 AS col0 @@ -14605,8 +14765,11 @@ SELECT - 26 * - 95 AS col2, + 44 * + 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1519 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(0\) AS Int32\)\) \* \(\- CASE \(\- Int64\(28\)\) WHEN Int64\(70\) \* \(\- \(\- Int64\(\-47\)\)\) THEN Int64\(50\) END\) \- Int64\(82\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(18\), Int64\(38\) \* Int64\(8\) / Int64\(76\)\) \* \(\- Int64\(80\)\) \+ Int64\(\-58\) \+ \(\- nullif\(\(\- nullif\(Int64\(40\), Int64\(76\) \* Int64\(86\) \* Int64\(86\)\)\), \(\- Int64\(\-72\)\) \* Int64\(9\) \+ \(\- Int64\(64\)\)\)\) \- CASE Int64\(\-97\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN Int64\(21\) ELSE Int64\(\-14\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(75\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-1519 +NULL query I rowsort SELECT - 2 * - 99 AS col1 @@ -15000,8 +15163,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-79\) \- Int64\(63\) / Int64\(\-89\) \+ Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col1, - 79 - + 63 / - 89 + + 67 AS col1 +---- +-12 +NULL query I rowsort SELECT ALL + + 33 + + 93 + + 80 + - 84 @@ -15609,8 +15775,12 @@ SELECT DISTINCT ( - + 17 ) / 6 AS col1 # Datafusion - Expected - NULL # Datafusion - Expected - -3777 # Datafusion - Expected - -4050 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-4\) AS col2" at position 0 and "Int64\(7\) \+ \(\- Int64\(\-88\)\) \* Int64\(\-43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT CAST ( NULL AS INTEGER ) * - 4 AS col2, 7 + - - 88 * - 43 AS col2, - 54 * + 75 AS col0 +---- +-3777 +-4050 +NULL query I rowsort label-2980 SELECT ALL + COUNT ( * ) * - - CASE - + COUNT ( * ) WHEN - - 11 THEN NULL ELSE - ( 19 ) / - - 5 + - 96 END AS col1 @@ -15837,8 +16007,11 @@ SELECT + SUM ( ALL 78 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -4116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- sum\(DISTINCT CAST\(NULL AS Int32\)\)\)\) / \(\- \(\- Int64\(99\)\)\) \* max\(Int64\(91\)\) AS col0" at position 0 and "Int64\(42\) \* Int64\(\-98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) / - ( - + 99 ) * MAX ( ALL + 91 ) AS col0, 42 * - 98 AS col0 +---- +-4116 +NULL query I rowsort SELECT DISTINCT - + 72 AS col2 @@ -15938,8 +16111,11 @@ SELECT ALL COALESCE ( + NULLIF ( + + 48, - + 63 * - 10 + 48 / - 42 + - 55 + 68 ) # 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\(13\) AS col1" at position 0 and "Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 AS col1, ( + 70 ) AS col1 +---- +13 +70 query I rowsort label-3044 SELECT - MIN ( ALL + + 78 ) @@ -17861,8 +18037,11 @@ SELECT CAST ( - + 93 AS INTEGER ) * 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col1" at position 0 and "min\(\(\- Int64\(26\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 col1, MIN ( - + 26 ) AS col1 +---- +-26 +46 query I rowsort label-3416 SELECT ALL 57 - + CAST ( NULL AS INTEGER ) AS col2 @@ -17945,8 +18124,11 @@ SELECT 63 + + + COALESCE ( 76, 40 ) + + 57 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 49 AS col1 +---- +1 +49 query I rowsort SELECT ( - + 12 ) * + 75 AS col0 @@ -17967,8 +18149,11 @@ SELECT + NULLIF ( + 33, COUNT ( + NULLIF ( + 18, - - 72 ) ) ) * + 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 AS col2, 75 col2 +---- +58 +75 query I rowsort label-3436 SELECT 32 - 2 + 94 * 90 - - - 61 + - + 88 + - CASE + 37 WHEN - 1 * MIN ( DISTINCT - 44 ) THEN 15 ELSE NULL END / - 38 AS col0 @@ -18325,8 +18510,11 @@ SELECT ALL - COUNT ( - - 1 ) # 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\(34\) AS col0" at position 0 and "Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 34 AS col0, - 64 AS col0 +---- +-64 +34 query I rowsort label-3505 SELECT ALL - - 38 - COUNT ( * ) AS col2 @@ -18751,8 +18939,11 @@ SELECT - 80 / + 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(78\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 19 + + COUNT ( * ) * 78 AS col0, COUNT ( * ) AS col0 +---- +1 +97 query I rowsort label-3586 SELECT - + ( ( + COUNT ( * ) ) ) * 36 * 21 AS col0 @@ -18762,8 +18953,11 @@ SELECT - + ( ( + COUNT ( * ) ) ) * 36 * 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "Int64\(66\) \+ nullif\(Int64\(18\), CASE Int64\(37\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(20\) \+ \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) THEN Int64\(31\) \* CAST\(Int64\(32\) AS Int32\) ELSE Int64\(\-42\) \+ CASE Int64\(41\) WHEN Int64\(32\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-96\) THEN NULL WHEN Int64\(88\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN Int64\(65\) \+ coalesce\(Int64\(93\), Int64\(5\)\) WHEN Int64\(29\) THEN Int64\(\-85\) END / Int64\(60\) END \* Int64\(\-68\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +84 +86 query I rowsort SELECT ( - - 48 ) @@ -18832,8 +19026,12 @@ 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\(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\. +query III valuesort 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 +---- +12 +4 +NULL query I rowsort SELECT + 73 - - 79 @@ -18951,8 +19149,11 @@ SELECT ALL 14 / + 79 * - COUNT ( * ) + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(48\) / Int64\(82\) \* Int64\(47\) \* Int64\(\-75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, + 48 / + 82 * 47 * - 75 AS col0 +---- +0 +1 query I rowsort label-3623 SELECT 32 * - COUNT ( * ) * 9 - 19 AS col1 @@ -18992,8 +19193,11 @@ SELECT ALL + 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - -360 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* Int64\(\-24\) AS col0" at position 0 and "Int64\(47\) \* Int64\(61\) / \(\- Int64\(\-47\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 15 * - 24 col0, 47 * 61 / - - 47 AS col0 +---- +-360 +61 query I rowsort label-3631 SELECT DISTINCT - 95 * + + 91 * + - MAX ( ALL + 3 ) - 28 + + 94 * + 34 @@ -19225,8 +19429,11 @@ SELECT ALL + 6 + + 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col1" at position 0 and "Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 37 AS col1, - 82 AS col1 +---- +-37 +-82 query I rowsort label-3676 SELECT DISTINCT - ( + COUNT ( * ) ) * + 19 AS col1 @@ -19697,8 +19904,11 @@ SELECT + 8 + 66 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "Int64\(75\) \+ Int64\(65\) / Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 44 AS col1, 75 + + + 65 / + 95 AS col1 +---- +44 +75 query I rowsort label-3769 SELECT + 48 * CASE - 19 WHEN - + 41 * + + COUNT ( * ) * 91 THEN NULL WHEN - + 72 THEN + + 69 * 78 ELSE + 10 * + 58 + - 44 - + 46 + + - 43 * - + 34 END AS col0 @@ -20095,8 +20305,11 @@ SELECT ALL - - 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) / Int64\(22\) \+ Int64\(\-31\) \- \(\- Int64\(\-75\)\) \+ \(\- \(\- min\(Int64\(76\)\)\)\) AS col2" at position 0 and "Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 / + 22 + + ( - 31 ) - - - 75 + + ( - - MIN ( 76 ) ) AS col2, + 32 AS col2 +---- +-29 +32 query I rowsort label-3845 SELECT MAX ( + 66 ) * + 97 + - 97 @@ -20433,8 +20646,12 @@ SELECT ALL - 46 + + - 59 AS col1 # Datafusion - Expected - 128 # Datafusion - Expected - -2210 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \+ Int64\(66\) AS col0" at position 0 and "CASE coalesce\(CAST\(NULL AS Int32\), Int64\(\-38\) \* Int64\(35\) / CAST\(Int64\(\-14\) AS Int32\) \+ Int64\(87\)\) WHEN \(\- \(\- Int64\(26\)\)\) / Int64\(61\) \* Int64\(30\) THEN NULL WHEN Int64\(55\) THEN Int64\(82\) END \+ Int64\(\-90\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 62 + + 66 AS col0, - COUNT ( * ) * 34 * 65, + CASE COALESCE ( CAST ( NULL AS INTEGER ), - 38 * 35 / CAST ( + - 14 AS INTEGER ) + ( + 87 ) ) WHEN - - ( 26 ) / + + 61 * + ( + 30 ) THEN NULL WHEN + 55 THEN + 82 END + - 90 AS col0 +---- +-2210 +128 +NULL query I rowsort SELECT - NULLIF ( 97, - - 51 * - 66 * + + 75 ) + + 56 @@ -20975,8 +21192,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 66 AS col0, - ( + CAST ( NULL AS INTEGER ) ) * + ( CAST ( NULL AS INTEGER ) ) AS col0 +---- +66 +NULL query I rowsort SELECT ALL + 61 + + + ( - 70 ) + - 21 col1 @@ -22040,8 +22260,11 @@ SELECT ALL + ( - 37 ) * + COALESCE ( - - 19, 33 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \+ Int64\(\-77\) AS col1" at position 0 and "Int64\(33\) \* Int64\(2\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 67 + - 77 AS col1, 33 * 2 + + COUNT ( * ) AS col1 +---- +-10 +67 query I rowsort SELECT - 6 + - - 34 AS col0 @@ -22365,8 +22588,11 @@ SELECT ALL 60 * - 81 - - + 7 + + + 1 / - COUNT ( * ) - + 96 * + 28 - + 58 AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - 806 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* nullif\(Int64\(25\), Int64\(\-12\)\) \+ Int64\(6\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 32 * NULLIF ( 25, - 12 ) + + 6 AS col0, ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) col0 +---- +806 +NULL query I rowsort SELECT + ( - - ( + - NULLIF ( - 40, - - 87 ) ) ) AS col1 @@ -22438,8 +22664,11 @@ 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\(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\. +query II valuesort SELECT - 43 + - COUNT ( * ) * + - 30 AS col1, 70 AS col1 +---- +-13 +70 query I rowsort label-4292 SELECT - 54 * CAST ( NULL AS INTEGER ) @@ -23037,8 +23266,11 @@ SELECT ALL - 96 * 37 * + + 27 * - 38 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - -4293 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "Int64\(\-53\) \* Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 13 AS col2, - 53 * + 81 col2 +---- +-4293 +13 query II rowsort label-4407 SELECT 20 AS col1, + SUM ( DISTINCT - 13 ) / NULLIF ( + 57, + COUNT ( * ) - 75 + - + ( + - NULLIF ( - 32, + - ( - 41 ) ) ) ) @@ -23404,8 +23636,11 @@ SELECT ALL + + COALESCE ( 43, 97 - + 25, + + ( 71 ) / - MAX ( + 29 ), + MIN ( 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -748 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \* Int64\(28\) \+ Int64\(\-48\) AS col2" at position 0 and "Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 25 * 28 + - 48 AS col2, - 33 AS col2 +---- +-33 +-748 query II rowsort label-4476 SELECT - 90 * - - 65 * - COUNT ( * ) AS col2, 30 + 79 @@ -23565,8 +23800,11 @@ SELECT CAST ( - 49 AS INTEGER ) - + 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col2" at position 0 and "Int64\(\-82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 25 AS col2, - 82 col2 +---- +-25 +-82 query I rowsort label-4507 SELECT MAX ( DISTINCT + 47 ) * + + MAX ( DISTINCT 68 ) AS col0 @@ -23702,8 +23940,12 @@ SELECT DISTINCT + 83 * - + COUNT ( * ) # Datafusion - Expected - 32 # Datafusion - Expected - 1 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 32 AS col1, COUNT ( * ) AS col1, - 91 / + + 95 + - 3 +---- +-3 +1 +32 query I rowsort label-4533 SELECT ALL + - COUNT ( * ) * + 21 @@ -24081,8 +24323,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * + - 85 + + - 3 AS col0, - 78 col0 +---- +-78 +-88 query I rowsort label-4604 SELECT - 76 * + NULLIF ( 54, + ( + NULLIF ( 28, + - 6 + + + 28 ) ) ) * - - ( - + 64 ) + 12 - + + ( NULLIF ( + + COUNT ( * ), COALESCE ( 57, + 72, - 19 ) ) ) + + - 74 * + - 49 AS col1 @@ -24664,8 +24909,11 @@ SELECT ALL ( - 72 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 18 col1, + 44 col1 +---- +18 +44 query I rowsort SELECT - 64 * + 4 AS col0 @@ -24772,8 +25020,11 @@ SELECT + - ( + 93 ) * - + 35 + 63 # 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 "Int64\(\-1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 4 AS col2, - 1 col2 +---- +-1 +-4 query I rowsort label-4735 SELECT ALL - 58 / - 38 + NULLIF ( - COUNT ( * ), + CASE + 81 WHEN 63 THEN + - 41 ELSE NULL END ) / + - NULLIF ( ( + 25 ), + COALESCE ( - - COUNT ( * ), 50 ) ) @@ -25270,8 +25521,11 @@ SELECT - 33 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - -870 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \- Int64\(70\) AS col2" at position 0 and "Int64\(30\) \* Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 51 - + + 70 AS col2, 30 * - 29 AS col2 +---- +-19 +-870 query I rowsort SELECT + + 18 * - - 62 * - 60 @@ -25898,8 +26152,11 @@ SELECT ALL + 30 + - 15 * 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -3532 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "Int64\(51\) \- Int64\(41\) \+ \(\- Int64\(\-77\)\) \* Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 AS col1, 51 - 41 + - ( - 77 ) * + - 46 AS col1 +---- +-3532 +33 query I rowsort SELECT - 13 * + 20 @@ -25924,8 +26181,11 @@ SELECT DISTINCT + 12 + + 58 + 91 * + CASE - COUNT ( * ) WHEN - + 47 THEN 82 ELSE # Datafusion - Datafusion expected results: # Datafusion - Expected - 1596 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(\-84\)\)\) \* Int64\(19\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( - 84 ) * + 19 AS col2, COUNT ( * ) AS col2 +---- +1 +1596 query I rowsort label-4957 SELECT DISTINCT - 40 / + 83 @@ -25971,8 +26231,11 @@ SELECT ALL + 23 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, COUNT ( * ) AS col1 +---- +1 +1 query I rowsort label-4966 SELECT DISTINCT - COUNT ( * ) * 76 + 74 - + + 93 + 16 AS col1 @@ -26110,8 +26373,11 @@ SELECT - 54 + 25 * - 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int32\) AS Float64\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS FLOAT8 ) AS col1, + 13 AS col1 +---- +13 +NULL query I rowsort SELECT ALL - 36 * + - 62 @@ -26270,8 +26536,12 @@ 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\(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\. +query III valuesort SELECT ALL 26 col2, + 56 * 71, 42 + NULLIF ( - CASE - 52 WHEN - 20 * + 32 + - COUNT ( * ) THEN + + 27 * + 36 ELSE - - 53 + + 97 END, - 5 ) col2 +---- +-108 +26 +3976 query I rowsort SELECT DISTINCT 7 - - 9 @@ -26781,8 +27051,11 @@ SELECT ( - 25 ) + + 52 - + COUNT ( DISTINCT - 69 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 8 -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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 AS col0, 8 AS col0 +---- +8 +82 query I rowsort label-5124 SELECT 46 * - COUNT ( * ) @@ -27782,8 +28055,11 @@ 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 "\(\- CAST\(NULL AS Float64\)\) AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - CAST ( NULL AS FLOAT8 ) AS col2, + 46 AS col2 +---- +46 +NULL query I rowsort label-5318 SELECT + 94 * - 20 * - 49 * 81 + COUNT ( * ) / + 54 @@ -27904,8 +28180,11 @@ SELECT - + 73 + - 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 5986 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(67\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(74\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col1, 67 + - + COUNT ( * ) + + 74 * + 80 AS col1 +---- +5986 +NULL query I rowsort SELECT ALL + 93 + - 43 @@ -28052,8 +28331,11 @@ SELECT ( - NULLIF ( 75, 83 * 67 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) * + COUNT ( * ) AS col0, - COUNT ( * ) AS col0 +---- +-1 +1 query I rowsort label-5370 SELECT ALL + 31 * + COUNT ( * ) + + - 33 * + NULLIF ( + + 9, 57 * 35 * + + 95 - + - 7 + - 21 ) AS col0 @@ -28401,8 +28683,11 @@ SELECT DISTINCT 77 * - CAST ( 91 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \+ Int64\(\-10\) \- count\(Int64\(85\)\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 36 + + - 10 - COUNT ( ( + + ( + 85 ) ) ) AS col0, 67 AS col0 +---- +25 +67 query II rowsort SELECT 58 AS col1, 7 @@ -28419,8 +28704,11 @@ 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\(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\. +query II valuesort 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 +---- +-34 +2361 query I rowsort SELECT 31 + - 17 @@ -28581,8 +28869,11 @@ SELECT 3 + 80 + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1141 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ Int64\(\-31\) \+ Int64\(80\) \+ Int64\(30\) \* Int64\(35\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 42 + - 31 + + + 80 + + 30 * + 35 AS col2, 38 AS col2 +---- +1141 +38 query I rowsort label-5471 SELECT COUNT ( * ) + + + 98 + 29 - - 96 * + 19 @@ -29078,8 +29369,11 @@ SELECT + 48 * - + 5 * + + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - -732 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* Int64\(\-61\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 12 * - 61 col2, 3 AS col2 +---- +-732 +3 query I rowsort SELECT - 24 + - + 79 @@ -29279,8 +29573,11 @@ SELECT DISTINCT - 57 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 3696 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(0\)\) \* Int64\(\-2\) \* Int64\(22\) \- Int64\(29\) AS col1" at position 0 and "Int64\(66\) \* Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - - 0 ) * + - 2 * 22 - 29 AS col1, 66 * + 56 AS col1 +---- +-29 +3696 query I rowsort SELECT ( + 26 ) + 60 AS col2 @@ -29733,8 +30030,11 @@ SELECT DISTINCT + SUM ( DISTINCT + 72 ), - 80 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-4\) AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( + - 4 AS INTEGER ) col2, + COUNT ( * ) AS col2 +---- +-4 +1 query I rowsort label-5688 SELECT - COUNT ( 63 ) + MIN ( - + COALESCE ( - 2, + NULLIF ( + 48, + - 85 ) ) ) + + - 17 AS col1 @@ -29870,8 +30170,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - COUNT ( * ) ) AS col1, + 35 AS col1 +---- +-1 +35 query II rowsort SELECT + - 58 + + + 82 AS col0, + 65 * - 76 @@ -29938,8 +30241,11 @@ SELECT - 78 * - + ( - - COUNT ( + ( + - 55 ) ) ) + 31 AS col2, + 81 + - + 41 + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "Int64\(\-22\) \+ CAST\(Int64\(50\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 10 AS col2, - 22 + CAST ( 50 AS INTEGER ) AS col2 +---- +10 +28 query II rowsort SELECT 91 AS col2, + 14 @@ -30023,8 +30329,11 @@ SELECT - 57 + 49 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - -21619 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col1" at position 0 and "Int64\(29\) \+ Int64\(82\) \* Int64\(66\) \* Int64\(\-4\) / count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 AS col1, 29 + 82 * 66 * - 4 / + COUNT ( * ) * + COUNT ( * ) AS col1 +---- +-21619 +69 query I rowsort SELECT 63 + - 75 AS col2 @@ -30482,8 +30791,11 @@ SELECT ALL + ( 19 ) + + - 54 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, + 16 col2 +---- +1 +16 query I rowsort SELECT - 36 + + - 3 AS col1 @@ -30560,8 +30872,11 @@ SELECT ALL CAST ( - + 58 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1500 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* Int64\(\-30\) AS col2" at position 0 and "sum\(DISTINCT Int64\(19\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 50 * - 30 AS col2, SUM ( DISTINCT 19 ) AS col2 +---- +-1500 +19 query I rowsort label-5846 SELECT - COUNT ( * ) + + 42 + - 35 - + SUM ( + - 4 ) @@ -31219,8 +31534,11 @@ SELECT DISTINCT ( - + 77 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "Int64\(\-33\) \+ \(\- Int64\(45\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 36 AS col1, - 33 + - + 45 AS col1 +---- +-78 +36 query I rowsort SELECT 93 + + 48 @@ -31362,8 +31680,12 @@ SELECT DISTINCT 6 + - 9 - 85 * 66 AS col2 # Datafusion - Expected - 61 # Datafusion - Expected - 0 # 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 "\(\- Int64\(\-97\)\) / max\(Int64\(25\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 61 col1, + 0 AS col0, - - 97 / MAX ( ALL + + 25 ) AS col1 +---- +0 +3 +61 query I rowsort label-6000 SELECT 84 / - ( + + COUNT ( * ) ) AS col0 @@ -31443,8 +31765,11 @@ SELECT DISTINCT - 63 AS col0, - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(32\), Int64\(21\) \* \(\- Int64\(82\)\) \- Int64\(55\) \- Int64\(29\) \- CAST\(Int64\(81\) AS Float64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + 67 col0, + CAST ( NULL AS INTEGER ) * + COALESCE ( COUNT ( * ), + + 32, 21 * ( - + ( + 82 ) ) - + + 55 - + 29 - + CAST ( 81 AS FLOAT8 ) ) AS col0 +---- +67 +NULL query II rowsort SELECT ALL 94, + 89 AS col0 @@ -31898,8 +32223,11 @@ SELECT ALL - + 2 + + - ( - 80 ) + + 55 * + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - -2640 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \- Int64\(10\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(11\) \- CAST\(Int64\(61\) AS Int32\) \+ Int64\(\-37\) \* Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 6 - + ( + 10 ) AS col1, ( + COUNT ( * ) ) * 11 - CAST ( 61 AS INTEGER ) + + - 37 * 70 AS col1 +---- +-16 +-2640 query I rowsort SELECT ALL 45 + 96 AS col2 @@ -32008,8 +32336,11 @@ SELECT - 43 / 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6153 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) \* Int64\(23\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(66\)\) \* Int64\(88\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "sum\(Int64\(\-50\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 15 * 23 + COUNT ( * ) + - ( + 66 ) * + + 88 - COUNT ( * ) AS col2, SUM ( - 50 ) AS col2 +---- +-50 +-6153 query I rowsort SELECT ALL + 57 + 50 col2 @@ -32118,8 +32449,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( + + 25, - - 31, - 50 ) * 7 AS col2, MIN ( ALL + 66 ) * - COUNT ( * ) AS col2 +---- +-66 +175 query I rowsort SELECT ( - 29 ) * + 9 * + - 42 + 56 + + 61 * ( - 48 ) * - 51 - + 33 AS col0 @@ -32192,8 +32526,11 @@ SELECT ALL - ( - COUNT ( * ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 55 AS col2, + 41 col2 +---- +-55 +41 query I rowsort SELECT ALL + + 10 + + 8 AS col1 @@ -32310,8 +32647,11 @@ SELECT - 28 / 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -207 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* Int64\(\-16\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "min\(DISTINCT Int64\(\-41\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 13 * - 16 + + + ( + COUNT ( * ) ) AS col1, + MIN ( DISTINCT + - 41 ) col1 +---- +-207 +-41 query I rowsort SELECT ALL 60 * - + 60 + 3 AS col2 @@ -32563,8 +32903,11 @@ SELECT - + 54 * - 83 # 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\(\-65\) / Int64\(30\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 65 / 30 col2, 54 AS col2 +---- +-2 +54 query I rowsort SELECT DISTINCT - + 4 @@ -32597,8 +32940,11 @@ SELECT + 62 + 43 * - MIN ( DISTINCT - 58 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(57\)\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( + 57 ) AS col2, 89 AS col2 +---- +57 +89 query I rowsort label-6232 SELECT ALL - + NULLIF ( - 76, - + 99 - - COUNT ( * ) ) AS col0 @@ -32981,8 +33327,11 @@ SELECT - 12 * - 70 * - 72 AS col0, + 2 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 860 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* Int64\(23\) \+ 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 II valuesort SELECT ALL + 37 * 23 + + 9 AS col2, - 54 AS col2 +---- +-54 +860 query I rowsort SELECT DISTINCT 59 * 42 @@ -33043,8 +33392,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col1, + 10 AS col1 +---- +-1 +10 query I rowsort SELECT DISTINCT ( - 90 ) @@ -33241,8 +33593,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(\-3\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( DISTINCT - 23 ) AS col0, COUNT ( * ) * - - 3 AS col0 +---- +23 +3 query I rowsort label-6355 SELECT DISTINCT - 86 / - 72 @@ -33380,8 +33735,11 @@ SELECT ( 13 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* nullif\(Int64\(\-88\), Int64\(\-46\) \* Int64\(12\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \* Int64\(60\) \+ Int64\(92\)\) AS col2" at position 0 and "\(\- coalesce\(Int64\(19\), Int64\(\-50\)\)\) \- Int64\(\-28\) / Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) * NULLIF ( - 88, - 46 * 12 + + + CAST ( - COUNT ( * ) AS INTEGER ) * + 60 + 92 ) AS col2, - COALESCE ( + 19, + - 50 ) - + - 28 / + 83 AS col2 +---- +-19 +88 query I rowsort label-6382 SELECT ALL + 42 + + + COUNT ( * ) @@ -33493,8 +33851,11 @@ 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\(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\. +query II valuesort SELECT ALL - - ( + 24 ) + CASE + COUNT ( * ) WHEN - 25 THEN - 78 + 55 ELSE NULL END AS col0, + 11 AS col0 +---- +11 +NULL query I rowsort label-6404 SELECT - - CAST ( - ( + + 46 ) AS INTEGER ) @@ -33689,8 +34050,11 @@ 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 count\(\*\)\) \* Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 70 AS col1, - COUNT ( * ) * 1 AS col1 +---- +-1 +70 query I rowsort SELECT - - 73 @@ -33786,8 +34150,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 506 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 0 and "sum\(Int64\(38\)\) \* Int64\(11\) \+ Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 28 AS col0, + ( + + SUM ( 38 ) ) * 11 + + + 88 AS col0 +---- +28 +506 query II rowsort SELECT 53 AS col1, - NULLIF ( - ( + ( + - 58 ) ), - - 53 - - - 91 ) @@ -34328,8 +34695,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - -220 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col2" at position 0 and "Int64\(4\) \* Int64\(\-55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 61 AS col2, 4 * - 55 AS col2 +---- +-220 +-61 query I rowsort SELECT 50 * 63 col2 @@ -34664,8 +35034,11 @@ SELECT + 36 AS col2, + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4928 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ Int64\(82\) \* Int64\(\-61\) \- \(\- \(\- CAST\(Int64\(\-90\) AS Int32\)\)\) \+ Int64\(\-95\) \+ \(\- Int64\(53\)\) \+ Int64\(99\) AS col2" at position 0 and "Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 33 + 82 * - 61 - - - CAST ( - 90 AS INTEGER ) + - 95 + - + 53 + + 99 AS col2, - 25 AS col2 +---- +-25 +-4928 query I rowsort label-6629 SELECT ALL 36 + - COUNT ( * ) - + 7 + + 48 @@ -35255,8 +35628,11 @@ SELECT ALL SUM ( ALL + + 51 ) * COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 4026 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(73\), \(\- Int64\(75\)\) \* Int64\(16\)\) AS col2" at position 0 and "Int64\(44\) \* Int64\(92\) \+ Int64\(\-22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( + 73, - ( + 75 ) * 16 ) AS col2, + 44 * + 92 + + - 22 AS col2 +---- +4026 +73 query I rowsort SELECT ALL + 90 AS col0 @@ -35369,8 +35745,11 @@ SELECT - 11 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -153 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \- Int64\(93\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 60 - 93 AS col2, + 88 AS col2 +---- +-153 +88 query II rowsort label-6765 SELECT ALL - 92 * + - CAST ( NULL AS INTEGER ), 62 AS col2 @@ -35386,8 +35765,11 @@ SELECT ALL - ( + - 77 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4160 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(52\) AS col2" at position 0 and "Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 * + 52 AS col2, + 76 col2 +---- +4160 +76 query I rowsort label-6768 SELECT 51 * + SUM ( + 23 ) + + + 74 @@ -35527,8 +35909,11 @@ SELECT 44 + COALESCE ( 69, + + 32 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1731 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-24\)\) \- Int64\(27\) \* Int64\(\-65\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( - 24 ) - 27 * - 65 AS col2, + 4 AS col2 +---- +1731 +4 query I rowsort label-6794 SELECT DISTINCT + 70 * + NULLIF ( + - MIN ( + 79 ), - 11 ) - - COUNT ( * ) - - COUNT ( * ) AS col2 @@ -37107,8 +37492,11 @@ SELECT - ( 71 ) + + 79 * + COUNT ( * ) AS col0, - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 33 col0, 80 col0 +---- +33 +80 query I rowsort SELECT 13 * 1 + - 57 @@ -37155,8 +37543,11 @@ 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\(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\. +query II valuesort SELECT + ( + 90 ) + - COUNT ( * ) col2, + 52 - - - 55 AS col2 +---- +-3 +89 query I rowsort label-7109 SELECT ALL + 94 / - 70 @@ -37534,8 +37925,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- min\(Int64\(44\)\)\)\) / avg\(\(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(\-11\) AS col2" at position 0 and "Int64\(0\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT - ( + - MIN ( 44 ) ) / AVG ( ALL - CAST ( NULL AS INTEGER ) ) + - 11 AS col2, + 0 * - COUNT ( * ) AS col2 +---- +0 +NULL query I rowsort SELECT DISTINCT + 93 AS col0 @@ -38092,8 +38486,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 45 AS col0, 85 AS col0 +---- +-45 +85 query I rowsort label-7286 SELECT ALL + - MAX ( - + CAST ( NULL AS INTEGER ) ) AS col0 @@ -38336,8 +38733,11 @@ SELECT 65 * - 32 # 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\(DISTINCT Int64\(46\)\) AS col2" at position 0 and "max\(DISTINCT Int64\(\-85\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( DISTINCT 46 ) AS col2, MAX ( DISTINCT - 85 ) AS col2 +---- +-85 +1 query I rowsort SELECT ALL - + 14 * 27 AS col0 @@ -38467,8 +38867,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * 62 * + 56 + + 40 AS col2, 96 col2 +---- +3512 +96 query I rowsort SELECT DISTINCT - 84 col2 @@ -39071,8 +39474,11 @@ SELECT 58 / 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col2" at position 0 and "Int64\(\-45\) \+ Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 25 AS col2, - 45 + 22 AS col2 +---- +-23 +-25 query I rowsort SELECT ALL 26 col2 @@ -39292,8 +39698,11 @@ SELECT ALL - + 40 + - 56, - 22 * - - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3190 # Datafusion - Expected - 89 -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 "Int64\(0\) \* Int64\(54\) \+ \(\- Int64\(\-89\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 * + 55 AS col1, ( 0 ) * 54 + - - 89 AS col1 +---- +-3190 +89 query I rowsort label-7512 SELECT ALL - + 28 / NULLIF ( 3, - - COUNT ( * ) ) @@ -39488,8 +39897,11 @@ SELECT DISTINCT 86 * - 50 AS col1 # 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 "CASE Int64\(89\) WHEN Int64\(10\) / Int64\(25\) \* Int64\(\-91\) THEN NULL WHEN Int64\(\-4\) THEN NULL WHEN Int64\(36\) THEN Int64\(\-78\) END AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CASE 89 WHEN 10 / + + 25 * - 91 THEN NULL WHEN - 4 THEN NULL WHEN 36 THEN - 78 END AS col2, + 96 AS col2 +---- +96 +NULL query II rowsort SELECT 5 AS col2, 9 AS col0 @@ -39530,8 +39942,11 @@ SELECT + - 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 18 ) AS col0, - 22 AS col0 +---- +-22 +18 query I rowsort SELECT ( - 43 ) @@ -39703,8 +40118,11 @@ SELECT ( + 81 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 23055 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(87\) \* Int64\(53\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 5 * + 87 * 53 * + COUNT ( * ) AS col0, 9 AS col0 +---- +23055 +9 query I rowsort label-7591 SELECT DISTINCT - SUM ( DISTINCT - - 94 ) @@ -40193,8 +40611,12 @@ SELECT DISTINCT SUM ( DISTINCT + - 1 ) col0 # Datafusion - Expected - -83 # Datafusion - Expected - 7407 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(49\)\) \+ \(\- Int64\(34\)\) AS col2" at position 0 and "Int64\(76\) \* Int64\(98\) \- Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - + 49 + - + 34 AS col2, + 76 * 98 - + 41 col2, 4 +---- +-83 +4 +7407 query I rowsort SELECT DISTINCT + 94 + 45 @@ -40377,8 +40799,11 @@ SELECT ALL - + 35 + + 77 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83538 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \* Int64\(63\) \* Int64\(51\) \+ Int64\(\-20\) / \(\- Int64\(\-35\)\) AS col0" at position 0 and "Int64\(8\) \* Int64\(48\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 26 * 63 * + + 51 + - 20 / + - ( - 35 ) AS col0, 8 * + 48 + + CAST ( NULL AS INTEGER ) AS col0 +---- +-83538 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -40698,8 +41123,11 @@ SELECT ALL 92 * 84 + + ( + + 39 ) / - 87 + 56 * + 73 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 col0, + 12 col0 +---- +12 +45 query I rowsort label-7780 SELECT ALL - 78 * - 67 * - - COUNT ( * ) * + 79 + NULLIF ( - - 46, - 59 * - + COUNT ( * ) - - 9 ) @@ -40973,8 +41401,11 @@ SELECT ALL + 92 * - COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 96 AS col0, 83 AS col0 +---- +83 +96 query I rowsort label-7832 SELECT + MAX ( - + 35 ) * - - MAX ( ALL + 77 ) @@ -41041,8 +41472,11 @@ SELECT - 16 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(60\) \- Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 64 / + COUNT ( * ) AS col1, + 60 - 77 AS col1 +---- +-17 +-64 query II rowsort SELECT 4 + + - 53, 39 AS col0 @@ -41227,8 +41661,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 21 * + 68 * - 21 AS col0, - 97 + + 14 * + - COUNT ( * ) AS col0 +---- +-111 +29988 query I rowsort label-7881 SELECT - 69 + 67 / + + 72 * + 47 * + 48 - - 25 * - + 79 * + 0 + + ( - - 14 ) AS col2 @@ -41631,8 +42068,11 @@ SELECT ALL + 0 * - 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "Int64\(\-76\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 46 col2, - 76 + CAST ( NULL AS INTEGER ) AS col2 +---- +46 +NULL query I rowsort SELECT ALL - + 10 * + 20 @@ -41930,8 +42370,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( 8 ) AS col1, + COUNT ( * ) * - 8 AS col1 +---- +-8 +8 query I rowsort label-8015 SELECT MIN ( - + 32 ) @@ -42019,8 +42462,11 @@ SELECT ALL 55 + + COALESCE ( COUNT ( * ), - 62, + 67 * - 21 + - - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 105 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ \(\- Int64\(\-52\)\) AS col2" at position 0 and "Int64\(68\) \- \(\- Int64\(15\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 53 + - - 52 AS col2, 68 - - + 15 AS col2 +---- +105 +83 query II rowsort label-8032 SELECT ALL - - MIN ( + ( + 52 ) ), 82 + - + ( CAST ( 77 AS INTEGER ) ) AS col2 @@ -42112,8 +42558,11 @@ SELECT ALL + COUNT ( * ) - COUNT ( * ) + + 85 - - 2 + + - 62 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-70\) WHEN Int64\(7\) THEN NULL WHEN \(\- Int64\(98\)\) \* Int64\(\-61\) THEN \(\- nullif\(Int64\(41\), \(\- Int64\(29\)\)\)\) \* \(\- coalesce\(CAST\(NULL AS Int32\), Int64\(\-13\)\)\) END AS col1" at position 0 and "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CASE + - 70 WHEN 7 THEN NULL WHEN - + 98 * - 61 THEN - + NULLIF ( + ( 41 ), - + 29 ) * - COALESCE ( + CAST ( NULL AS INTEGER ), - 13 ) END AS col1, 41 AS col1 +---- +41 +NULL query I rowsort SELECT - - 62 AS col2 @@ -42343,8 +42792,11 @@ 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\(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\. +query II valuesort SELECT - - 64 AS col2, + 36 * NULLIF ( - 8, + 22 + + COUNT ( * ) + - 26 / 66 - + COUNT ( - - 10 ) ) * - - COUNT ( DISTINCT + 83 ) + - 74 AS col2 +---- +-362 +64 query I rowsort label-8093 SELECT + ( + 25 ) + - COUNT ( * ) * - SUM ( + + 84 ) * NULLIF ( - - 62, COUNT ( * ) ) / 28 + 61 * 30 @@ -42790,8 +43242,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 AS col1, + COUNT ( * ) AS col1 +---- +1 +71 query I rowsort label-8179 SELECT DISTINCT CAST ( NULL AS INTEGER ) + 9 AS col2 @@ -42948,8 +43403,12 @@ 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\(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\. +query III valuesort SELECT ALL - + 16 * - 8 + - NULLIF ( - 58, - COUNT ( * ) ) * - 96 AS col2, NULLIF ( + 48, + COUNT ( * ) + - + 23 - - 18 - + - 53 * + 66 * - 65 ), - 70 AS col2 +---- +-5440 +-70 +48 query I rowsort label-8209 SELECT ALL + 58 * + SUM ( ALL NULLIF ( + 12, 83 + - + 11 ) ) - + 72 + + - 83 + + 81 + - - 73 + + 85 / + 92 @@ -43283,8 +43742,11 @@ SELECT ALL ( + 70 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col1" at position 0 and "Int64\(\-96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 22 col1, - 96 AS col1 +---- +-22 +-96 query I rowsort label-8273 SELECT + COUNT ( * ) * + ( - 80 ) * - MIN ( + 21 ) - + + 64 * + + 50 * MAX ( DISTINCT + 22 ) @@ -43379,8 +43841,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 68 AS col0, - COUNT ( * ) AS col0 +---- +-1 +-68 query I rowsort label-8291 SELECT ALL 70 + - 13 + - + COUNT ( * ) + + - COUNT ( * ) + + 81 * + 17 * - - 4 + MAX ( ALL 39 ) AS col2 @@ -43415,8 +43880,11 @@ 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\(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\. +query II valuesort 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 +---- +340 +NULL query I rowsort SELECT NULLIF ( + 35, - 64 ) * - ( + - 42 ) + 48 col1 @@ -43767,8 +44235,11 @@ SELECT ALL + - CAST ( + ( - + 16 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -536 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col2" at position 0 and "Int64\(\-66\) \+ Int64\(22\) \+ max\(\(\- Int64\(\-82\)\)\) \* Int64\(\-6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 20 col2, - 66 + + 22 + MAX ( - - 82 ) * - 6 AS col2 +---- +-536 +20 query I rowsort SELECT ALL + ( - 34 ) @@ -44082,8 +44553,11 @@ 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\(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\. +query II valuesort SELECT - CASE - 95 WHEN + COUNT ( * ) + + COUNT ( * ) THEN 85 END col1, - 35 * + 83 AS col1 +---- +-2905 +NULL query II rowsort label-8425 SELECT - ( + - 94 ), + ( - MIN ( ALL + - 63 ) ) + - 66 * COUNT ( * ) AS col0 @@ -44454,8 +44928,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 98 * + 42 * - 81 AS col2, - COUNT ( * ) AS col2 +---- +-1 +-333396 query I rowsort SELECT DISTINCT + 49 + - 58 AS col2 @@ -44929,8 +45406,11 @@ SELECT - 68 * + 26 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3381 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) \* Int64\(49\) AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 69 * + 49 col1, + 43 AS col1 +---- +-3381 +43 query I rowsort label-8586 SELECT - 21 * COUNT ( * ) @@ -45065,8 +45545,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 29 / + CASE + + CAST ( + 12 AS FLOAT8 ) WHEN + 86 THEN + 42 + - + 23 END * COALESCE ( COUNT ( * ), COUNT ( * ) ) + + 78 AS col1, 17 AS col1 +---- +17 +NULL query II rowsort label-8612 SELECT + - 65 - + 77 + - + 90, - CASE - - 76 WHEN - + 29 + - MAX ( DISTINCT + 58 ) THEN NULL WHEN - 61 - + - 38 * + 37 THEN CAST ( NULL AS INTEGER ) - + - 57 + - 27 WHEN - 80 THEN - 18 END * - + MAX ( ALL 80 ) + + + 22 AS col1 @@ -45335,8 +45818,11 @@ SELECT 31 * - - 29 * - - 32 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col1" at position 0 and "Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 AS col1, - 82 AS col1 +---- +-82 +72 query I rowsort label-8663 SELECT ALL ( - - 12 ) + - COUNT ( * ) * 18 @@ -46005,8 +46491,11 @@ SELECT ALL + 97 - + 93 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 159 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col0" at position 0 and "Int64\(90\) \+ Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 AS col0, 90 + 69 col0 +---- +159 +31 query I rowsort SELECT + 43 col1 @@ -46460,8 +46949,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 27 + + 33 + + 39 AS col2, + 56 + - 14 + 49 * - 37 * - COUNT ( * ) AS col2 +---- +1855 +99 query I rowsort label-8881 SELECT ALL 96 / 18 @@ -46672,8 +47164,11 @@ SELECT DISTINCT + COALESCE ( - 78, + - COUNT ( ALL + CASE - - CAST ( NULL AS INT # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1825 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(39\) \+ Int64\(94\) \* Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col0, + 39 + + 94 * 19 AS col0 +---- +1825 +NULL query I rowsort label-8922 SELECT + ( + + 6 ) / + + 42 + - 9 + - - COUNT ( * ) col2 @@ -46736,8 +47231,11 @@ SELECT DISTINCT + + 35 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 95 AS col1, 26 AS col1 +---- +-95 +26 query I rowsort label-8934 SELECT ALL + + MAX ( ALL + - 84 ) @@ -46762,8 +47260,11 @@ SELECT - - 35 * COUNT ( * ) * 93 - + - SUM ( ALL 66 ) * 4 + - COUNT ( * ) AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(10\)\) AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 10 AS col0, 27 AS col0 +---- +-10 +27 query II rowsort label-8939 SELECT ALL - - COUNT ( * ) AS col2, + 41 col0 @@ -47105,8 +47606,12 @@ SELECT 90 + 24 # Datafusion - Expected - 22 # Datafusion - Expected - -8 # Datafusion - Expected - -247 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "\(\- max\(\(\- Int64\(45\)\)\)\) \+ Int64\(4\) \* Int64\(\-73\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 22 AS col1, ( + MIN ( ALL - 8 ) ), - + MAX ( ALL + ( - + 45 ) ) + + 4 * - 73 AS col1 +---- +-247 +-8 +22 query I rowsort SELECT DISTINCT + ( + + 41 ) AS col2 @@ -47866,8 +48371,11 @@ SELECT ALL + COUNT ( DISTINCT + 20 ) # 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 "\(\- \(\- coalesce\(Int64\(29\), Int64\(\-15\), Int64\(55\) \* Int64\(\-71\)\)\)\) 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 II valuesort SELECT - - COALESCE ( + 29, - 15, 55 * - 71 ) AS col0, - COUNT ( - 53 ) AS col0 +---- +-1 +29 query I rowsort SELECT DISTINCT - 40 + - 21 * + + 11 AS col1 @@ -48324,8 +48832,11 @@ SELECT - 94 + - MAX ( ALL - 90 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 101 # Datafusion - Expected - 7462 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ Int64\(68\) AS col2" at position 0 and "Int64\(82\) \* Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 + + 68 AS col2, + 82 * 91 AS col2 +---- +101 +7462 query I rowsort label-9234 SELECT + MAX ( 86 ) AS col0 @@ -48745,8 +49256,11 @@ SELECT ALL ( - - 64 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \+ Int64\(55\) AS col0" at position 0 and "Int64\(17\) \+ \(\- Int64\(51\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 9 + + 55 col0, + 17 + - + 51 AS col0 +---- +-34 +64 query I rowsort label-9315 SELECT - 25 / - 85 @@ -48917,8 +49431,11 @@ SELECT ALL + 5 * - SUM ( + 34 ) * + 95 + + - 92 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 73 AS col0, COUNT ( * ) AS col0 +---- +1 +73 query I rowsort SELECT ALL 24 col2 @@ -49006,8 +49523,11 @@ SELECT DISTINCT - - ( - 9 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(42\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, 42 * - COUNT ( * ) AS col0 +---- +-42 +NULL query I rowsort SELECT ALL + + 91 + + 83 @@ -49496,8 +50016,11 @@ SELECT - - 13 AS col2, + COUNT ( 92 ) / + CAST ( 18 AS INTEGER ) - 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3855 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \* Int64\(\-94\) \+ count\(Int64\(53\)\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 41 * - 94 + COUNT ( + + 53 ) AS col1, 92 AS col1 +---- +3855 +92 query I rowsort label-9459 SELECT ALL 80 / + - COUNT ( * ) AS col0 @@ -49727,8 +50250,11 @@ SELECT ALL 79 * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1404 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* Int64\(6\) \* Int64\(\-13\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 * 6 * - 13 AS col0, 92 AS col0 +---- +-1404 +92 query I rowsort label-9503 SELECT ALL - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) * + ( MIN ( + 85 ) ) * + - COUNT ( DISTINCT + 23 ) + - 80 AS col0 @@ -50146,8 +50672,11 @@ 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\(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\. +query II valuesort 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 +---- +40325 +NULL query I rowsort SELECT DISTINCT + 83 + 26 @@ -50289,8 +50818,11 @@ SELECT ALL COUNT ( * ) + - + 5 * - 61 + - CAST ( - 17 AS INTEGER ) AS col0, + CO # Datafusion - Datafusion expected results: # Datafusion - Expected - -2206 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \* Int64\(93\) \- Int64\(\-26\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 24 * + 93 - + - 26 AS col0, + 30 AS col0 +---- +-2206 +30 query I rowsort SELECT ALL 92 col2 @@ -50342,8 +50874,11 @@ SELECT DISTINCT 90 - 35 + - 30 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ CASE Int64\(\-75\) WHEN \(\- min\(DISTINCT Int64\(12\)\)\) \* Int64\(57\) THEN \(\- Int64\(7\)\) END \+ Int64\(\-30\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 + CASE - 75 WHEN - MIN ( DISTINCT + 12 ) * + + 57 THEN ( - + 7 ) END + - 30 AS col0, + COUNT ( * ) AS col0 +---- +1 +NULL query II rowsort label-9621 SELECT 59 * CAST ( + ( 71 ) AS INTEGER ) AS col2, + 38 AS col1 @@ -50375,8 +50910,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) col2, - 71 / - 28 AS col2 +---- +-1 +2 query I rowsort SELECT + 84 col0 @@ -50897,8 +51435,11 @@ SELECT + - COUNT ( ALL 32 ) * + 77 * 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "CAST\(Int64\(\-34\) AS Int32\) \+ Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 AS col2, + ( + + CAST ( + - 34 AS INTEGER ) ) + 0 AS col2 +---- +-34 +17 query I rowsort SELECT DISTINCT 67 * - + ( - + ( - + 99 ) ) @@ -51511,8 +52052,11 @@ SELECT + - ( 58 ) * + + 96 + + 28 / 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1500 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* Int64\(\-30\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 50 * - 30 AS col2, + 82 AS col2 +---- +-1500 +82 query I rowsort label-9844 SELECT ALL + 76 * - CAST ( + - CASE 40 WHEN 19 / - + 36 + - 96 + + 33 + + MAX ( ALL + 60 ) + COUNT ( * ) + 73 * + - COALESCE ( 42, - - 83 ) / - COUNT ( 57 ) THEN - 44 * + 51 WHEN - CAST ( NULL AS INTEGER ) THEN NULL END AS INTEGER ) * + ( COUNT ( * ) ) + 40 @@ -51968,8 +52512,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-98\), Int64\(5\) \+ coalesce\(count\(DISTINCT Int64\(\-61\)\), Int64\(\-95\) \+ CAST\(NULL AS Int32\) / Int64\(\-26\) \+ Int64\(\-88\)\) \+ Int64\(\-57\) \+ Int64\(56\)\) \+ \(\- count\(Int64\(\-69\)\)\) \+ CAST\(Int64\(20\) AS Int32\) / Int64\(98\) \* Int64\(21\) \- Int64\(\-56\) AS col0" at position 0 and "Int64\(\-13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( - 98, + 5 + + COALESCE ( COUNT ( DISTINCT - 61 ), + - 95 + CAST ( NULL AS INTEGER ) / ( - 26 ) + - 88 ) + - 57 + 56 ) + + - COUNT ( + - 69 ) + + CAST ( + + 20 AS INTEGER ) / 98 * + 21 - - 56 AS col0, - 13 AS col0 +---- +-13 +-43 query I rowsort SELECT ALL - 51 AS col1 @@ -52057,8 +52604,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) - 43 AS col1, - 35 * 51 AS col1 +---- +-1785 +-44 query I rowsort SELECT ALL - - 91 * 89 * - 19 @@ -52073,8 +52623,11 @@ SELECT - + 12 * - - 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - -320731 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \* Int64\(\-74\) \* Int64\(\-51\) \+ Int64\(59\) AS col0" at position 0 and "Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 85 * - 74 * - 51 + 59 AS col0, - 65 AS col0 +---- +-320731 +-65 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -52328,8 +52881,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 78 AS col1, 80 AS col1 +---- +-78 +80 query I rowsort label-9999 SELECT ALL - + 32 + ( - + COUNT ( * ) ) diff --git a/data/sqlite/random/expr/slt_good_26.slt b/data/sqlite/random/expr/slt_good_26.slt index 58d48e9..a0698a9 100644 --- a/data/sqlite/random/expr/slt_good_26.slt +++ b/data/sqlite/random/expr/slt_good_26.slt @@ -312,8 +312,11 @@ SELECT - 91, 60 * + - 2 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 92 AS col0, 96 AS col0 +---- +92 +96 query II rowsort label-54 SELECT ALL 43 AS col2, 3 * - - CASE - ( + 62 ) WHEN + - 14 * - - 87 THEN NULL WHEN - 73 * 66 * + CAST ( 57 AS INTEGER ) THEN - 12 END * - 52 * + 68 @@ -448,8 +451,11 @@ SELECT 68 * 89 / ( + + 9 ) + - ( - CAST ( COUNT ( * ) AS INTEGER ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 AS col2, 23 AS col2 +---- +-55 +23 query I rowsort label-80 SELECT - 61 * - 2 + - ( + 95 ) - - - 39 * - 69 * SUM ( ALL + 71 ) AS col0 @@ -562,8 +568,11 @@ SELECT DISTINCT - 50 * NULLIF ( + + 83, - COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44768 # Datafusion - Expected - 145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(19\), sum\(\(\- Int64\(74\)\)\)\)\) \* Int64\(\-84\) \* \(\- Int64\(28\)\) \+ coalesce\(Int64\(\-80\), Int64\(34\)\) AS col0" at position 0 and "Int64\(81\) \- \(\- Int64\(6\)\) \+ Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - NULLIF ( + 19, SUM ( - + 74 ) ) * - 84 * - + 28 + + + COALESCE ( - 80, + 34 ) AS col0, + 81 - - ( + 6 ) + + 58 AS col0 +---- +-44768 +145 query I rowsort label-101 SELECT - COALESCE ( - MIN ( DISTINCT - + 42 ), 94 / + 66 / + + COUNT ( * ) ) AS col1 @@ -803,8 +812,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) col1, 78 AS col1 +---- +-1 +78 query I rowsort SELECT - ( + - 91 ) col0 @@ -845,8 +857,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 AS col2, - COUNT ( * ) * + 27 AS col2 +---- +-27 +80 query I rowsort SELECT DISTINCT 80 + 31 + + 48 + 28 * - 62 * 1 * - + ( 79 ) + + - 59 AS col1 @@ -998,8 +1013,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- Int64\(69\)\)\)\) AS col0" at position 0 and "Int64\(8\) \+ min\(DISTINCT Int64\(\-43\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MIN ( - + 69 ) AS col0, 8 + MIN ( DISTINCT - 43 ) AS col0 +---- +-35 +69 query II rowsort SELECT 25 + + - 30, - 18 + 29 * - + 2 AS col2 @@ -1335,8 +1353,11 @@ SELECT + 56 * COUNT ( DISTINCT 72 ) AS col2, 84 + - 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \- \(\- Int64\(2\)\) \* \(\- Int64\(\-2\)\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 - - + 2 * - - 2 AS col0, 36 AS col0 +---- +36 +95 query I rowsort label-247 SELECT ( - + CASE - - ( 43 ) WHEN 34 THEN - 13 * + - 40 - 6 WHEN COUNT ( - + 76 ) + + 0 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END ) * + 8 / - 12 - + 77 + + 2 * 47 AS col2 @@ -2148,8 +2169,11 @@ SELECT DISTINCT - 53 * + + SUM ( - 57 ) / + COUNT ( * ) - + 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(15\)\) AS col0" at position 0 and "Int64\(\-33\) \+ Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 15 AS col0, ( + - 33 ) + - 56 AS col0 +---- +-15 +-89 query I rowsort label-404 SELECT DISTINCT - + 63 + + MAX ( + 98 ) @@ -4710,8 +4734,11 @@ SELECT ALL + 16 * 11 + 44 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-90\) AS Int32\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - 90 AS INTEGER ) AS col2, + 87 AS col2 +---- +-90 +87 query I rowsort label-896 SELECT - CASE - 78 WHEN - 7 * - - 60 + - 48 THEN ( 51 ) * - + 0 * + 21 ELSE COUNT ( * ) + - + COUNT ( 75 ) END + - 80 @@ -4866,8 +4893,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 AS col2, COUNT ( * ) * + 86 col2 +---- +86 +98 query I rowsort label-927 SELECT COALESCE ( - 51, - 19 ) - + CAST ( 57 AS INTEGER ) / + 80 * + COUNT ( * ) * 89 AS col0 @@ -4889,8 +4919,11 @@ SELECT ALL - 28 AS col2, - 59 # 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 "Int64\(89\) \+ Int64\(\-88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 99 AS col0, 89 + ( - 88 ) AS col0 +---- +-99 +1 query I rowsort label-931 SELECT CASE - 49 WHEN - - CAST ( NULL AS INTEGER ) * - AVG ( - CAST ( NULL AS INTEGER ) ) * - - NULLIF ( + COALESCE ( 68, - COUNT ( * ) ), + 8 ) * + 67 + - + 36 + + COUNT ( * ) THEN NULLIF ( - 93, 82 ) / + 21 - MAX ( ALL + 74 ) ELSE NULL END - - 56 col1 @@ -4985,8 +5018,11 @@ SELECT 50 / 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - CAST ( NULL AS INTEGER ) AS col2, + 78 AS col2 +---- +78 +NULL query I rowsort SELECT 27 + - ( 98 ) AS col1 @@ -5812,8 +5848,11 @@ SELECT ALL - COUNT ( * ) * - 49 + + 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 AS col2, + 58 AS col2 +---- +48 +58 query I rowsort SELECT + 76 + - + 62 AS col1 @@ -5893,8 +5932,11 @@ SELECT + 72, 10 + - + 93 * - NULLIF ( + ( - 41 ), - 47 ) + + - 59 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -383 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \* Int64\(7\) \+ Int64\(58\) AS col0" at position 0 and "CASE coalesce\(avg\(DISTINCT \(\- \(\- Int64\(88\)\)\)\), Int64\(69\)\) WHEN Int64\(\-58\) THEN Int64\(60\) END \+ Int64\(\-66\) \- \(\- CAST\(NULL AS Int32\)\) \+ coalesce\(Int64\(\-9\), CASE coalesce\(Int64\(10\), Int64\(21\), count\(Int64\(1\)\) AS count\(\*\)\) WHEN coalesce\(Int64\(\-68\), Int64\(87\) \+ Int64\(76\) \* CASE Int64\(6\) / Int64\(\-80\) WHEN Int64\(59\) \+ \(\- nullif\(Int64\(73\) \- Int64\(15\) / Int64\(22\), Int64\(78\) \+ \(\- sum\(Int64\(74\) \+ CAST\(NULL AS Int32\)\)\)\)\) \* Int64\(\-85\) THEN Int64\(57\) \* Int64\(93\) \+ coalesce\(Int64\(\-38\), Int64\(3\)\) \* Int64\(\-43\) WHEN Int64\(78\) \+ \(\- Int64\(44\) \+ Int64\(49\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN NULL END, Int64\(33\) \* Int64\(\-56\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(76\), Int64\(\-93\) \* Int64\(\-36\)\) \+ \(\- Int64\(87\) \+ Int64\(11\)\) \* Int64\(96\) THEN Int64\(\-37\) ELSE count\(Int64\(1\)\) AS count\(\*\) / Int64\(78\) END \* Int64\(57\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-383 +NULL query I rowsort label-1121 SELECT 92 * + - CAST ( - 89 AS INTEGER ) * - ( 30 ) + - 98 + + COUNT ( + 88 ) + + + 81 + + COUNT ( * ) @@ -6333,8 +6375,11 @@ SELECT ( 61 ) + + + 80 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 81 col2, 72 AS col2 +---- +72 +81 query II rowsort SELECT - 34, 67 * - + 59 * + 52 AS col1 @@ -6499,8 +6544,11 @@ SELECT - - 78 + + 76 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 1045 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(19\) \* Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 47 AS col2, 19 * + + 55 AS col2 +---- +1045 +47 query II rowsort label-1237 SELECT ALL COALESCE ( - NULLIF ( - 34, - COALESCE ( + 83, 8, + 69 ) ), - + 75 + COUNT ( ALL - 73 ) ) AS col0, - 90 + CAST ( COUNT ( * ) AS INTEGER ) + - 53 AS col2 @@ -7403,8 +7451,11 @@ SELECT DISTINCT - NULLIF ( + 50, + 13 * + ( 56 ) + COUNT ( * ) ) * 78 - - 57 + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 77 col0, 38 col0 +---- +38 +77 query I rowsort label-1409 SELECT + 24 * 1 * + COUNT ( * ) AS col2 @@ -7466,8 +7517,11 @@ SELECT ALL MIN ( DISTINCT - - 52 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 40 + + COUNT ( * ) AS col1, 75 AS col1 +---- +41 +75 query I rowsort label-1421 SELECT ALL - 8 + - COUNT ( * ) + 2 * - 44 AS col0 @@ -7738,8 +7792,11 @@ SELECT ALL - 25 col0 # 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\(\-35\) AS col0" at position 0 and "Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 35 AS col0, 44 AS col0 +---- +-35 +44 query I rowsort SELECT ALL + - 80 * - - 89 @@ -7795,8 +7852,12 @@ SELECT 76 / 55 AS col1 # Datafusion - Expected - 49 # Datafusion - Expected - -32 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col1" at position 0 and "Int64\(43\) \+ \(\- Int64\(75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 49 col1, + 43 + - + ( + 75 ) AS col1, + - 26 AS col0 +---- +-26 +-32 +49 query I rowsort SELECT ALL - + 75 + + + 61 + + 94 * + 68 @@ -7963,8 +8024,11 @@ SELECT DISTINCT COUNT ( * ) * 41 / + 90 + + 87 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1942 # Datafusion - Expected - 154 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) \* Int64\(\-38\) \- Int64\(34\) \+ Int64\(83\) \+ Int64\(48\) \+ Int64\(46\) \+ Int64\(51\) AS col2" at position 0 and "Int64\(78\) \+ \(\- Int64\(\-76\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 46 * - 38 - + 34 + + + 83 + 48 + + + 46 + 51 col2, + 78 + - - 76 AS col2 +---- +154 +1942 query I rowsort SELECT ALL + 32 * - 40 - - 17 AS col0 @@ -8718,8 +8782,11 @@ SELECT - COUNT ( + 80 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "Int64\(\-29\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(30\) \* Int64\(\-17\) \* Int64\(8\) \- Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 AS col1, ( - 29 ) + + - CAST ( NULL AS INTEGER ) + + 30 * - 17 * 8 - 80 AS col1 +---- +88 +NULL query I rowsort SELECT + 10 * 88 AS col2 @@ -8770,8 +8837,12 @@ SELECT + - 7 * + 68 AS col1 # Datafusion - Expected - -34 # Datafusion - Expected - 19 # Datafusion - Expected - 6992 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(34\) AS Int32\)\) AS col0" at position 0 and "Int64\(\-38\) \* \(\- Int64\(46\)\) \* \(\- Int64\(\-4\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - CAST ( + ( + 34 ) AS INTEGER ) AS col0, 19 + + COUNT ( * ) / + - 84, - 38 * - ( + 46 ) * - - 4 AS col0 +---- +-34 +19 +6992 query I rowsort SELECT ( 48 ) @@ -8948,8 +9019,11 @@ SELECT + COUNT ( * ) + - 55 * + 81 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -1278 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(48\)\)\) AS col1" at position 0 and "Int64\(30\) \+ Int64\(72\) \+ Int64\(\-23\) \* Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( 48 ) AS col1, 30 + 72 + - 23 * + 60 AS col1 +---- +-1 +-1278 query I rowsort SELECT + ( - + 92 ) AS col1 @@ -9187,8 +9261,12 @@ SELECT 60, + 72 * + COUNT ( * ) + - COUNT ( * ) AS col0 # Datafusion - Expected - 80 # Datafusion - Expected - 0 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col0" at position 0 and "\(\- Int64\(\-4\)\) \- Int64\(75\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 80 AS col0, - 0, - - 4 - 75 AS col0 +---- +-71 +0 +80 query II rowsort SELECT ALL - 69, - 18 AS col1 @@ -9246,14 +9324,20 @@ SELECT ALL 56 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 col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 AS col0, 34 AS col0 +---- +14 +34 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(91\)\) AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 91 AS col0, 33 AS col0 +---- +-91 +33 query I rowsort label-1765 SELECT ALL - 25 + - CAST ( NULL AS INTEGER ) @@ -9675,8 +9759,11 @@ SELECT 8 - 72 * - - 62 * - CASE WHEN NOT ( NOT ( NOT NULL IS NULL ) ) THEN 23 EL # 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\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 87 AS col1, + 51 col1 +---- +51 +87 query I rowsort SELECT 54 - + ( 38 ) @@ -9797,8 +9884,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -163 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) \+ Int64\(\-71\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 + - 71 col2, 69 AS col2 +---- +-163 +69 query I rowsort SELECT + COALESCE ( - + 55, + 94 * - 43 ) AS col1 @@ -10154,8 +10244,11 @@ SELECT ALL + + 15, 64 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 270 # Datafusion - Expected - 3234 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* Int64\(5\) AS col2" at position 0 and "Int64\(\-42\) \* Int64\(\-77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 54 * 5 AS col2, - 42 * - 77 AS col2 +---- +270 +3234 query I rowsort label-1937 SELECT ALL ( - 7 ) * - + CASE + - COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE 88 END + - 51 + 21 * - - 3 @@ -10424,8 +10517,11 @@ SELECT - 61 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "Int64\(\-14\) \+ Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 13 col2, - 14 + 94 AS col2 +---- +13 +80 query II rowsort label-1989 SELECT - 14, NULLIF ( 70, 46 ) * 96 * - CAST ( - - ( - 54 ) AS INTEGER ) AS col2 @@ -10436,8 +10532,11 @@ SELECT - 14, NULLIF ( 70, 46 ) * 96 * - CAST ( - - ( - 54 ) AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "sum\(Int64\(\-94\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 15 AS col2, SUM ( - 94 ) AS col2 +---- +-94 +15 query I rowsort SELECT ALL 87 - + 47 AS col0 @@ -10460,8 +10559,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 24 AS col0, + 30 AS col0 +---- +24 +30 query I rowsort SELECT DISTINCT 76 AS col2 @@ -10619,8 +10721,11 @@ SELECT ALL 70 - 54 / + + 13 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(21\), Int64\(84\) \* Int64\(10\) / \(\- min\(\(\- CAST\(Int64\(13\) AS Int32\)\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COALESCE ( + 21, 84 * 10 / + - MIN ( + - CAST ( 13 AS INTEGER ) ) ) AS col0, + COUNT ( * ) * - + COUNT ( * ) * 24 AS col0 +---- +-24 +21 query I rowsort label-2025 SELECT 23 * CAST ( NULL AS INTEGER ) + + COUNT ( * ) - 91 AS col2 @@ -11008,8 +11113,11 @@ SELECT 77 * + 3 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \+ Int64\(53\) AS col1" at position 0 and "Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 + + 53 AS col1, - 61 AS col1 +---- +-61 +65 query I rowsort label-2099 SELECT + 69 * + + 89 * - + 63 * - CASE - 46 WHEN - + 72 THEN - 51 + - + 82 * - 17 * 29 + + 73 + + + 2 WHEN 5 + - COUNT ( * ) + + + 12 * + - 50 * - 84 THEN NULL END @@ -11251,8 +11359,12 @@ SELECT - 72 + + 78 * COUNT ( DISTINCT + 28 ) # Datafusion - Expected - -75 # Datafusion - Expected - -13775 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(75\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + ( 75 ) AS col1, + 19 * - - 25 * + - 29, COUNT ( * ) AS col1 +---- +-13775 +-75 +1 query I rowsort label-2146 SELECT + COUNT ( ALL + - 47 ) * - + 41 + - 38 AS col0 @@ -12423,8 +12535,11 @@ SELECT DISTINCT + 14 * 29 * + + 98 # 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 col2" at position 0 and "count\(Int64\(80\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 AS col2, COUNT ( + + 80 ) col2 +---- +1 +39 query I rowsort SELECT ALL + 81 - + 12 @@ -13041,8 +13156,11 @@ 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 "CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT 66 AS col2, CAST ( NULL AS FLOAT8 ) AS col2 +---- +66 +NULL query II rowsort SELECT + ( - 52 ) * - - 27 + 40 AS col1, - 23 @@ -13217,8 +13335,11 @@ SELECT 46 * + 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \* 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 II valuesort SELECT ALL - 23 * - 1 col2, 68 col2 +---- +23 +68 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -13287,8 +13408,11 @@ SELECT DISTINCT COUNT ( 56 ) + 32 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(33\) AS col2" at position 0 and "Int64\(44\) / \(\- Int64\(\-51\)\) / \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-79\) \+ Int64\(39\) \- Int64\(\-52\) \* Int64\(78\) \* Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) * + 33 AS col2, 44 / - - 51 / - CAST ( NULL AS INTEGER ) + - 79 + + 39 - - 52 * 78 * - 96 AS col2 +---- +NULL +NULL query I rowsort label-2540 SELECT ALL - 47 + + NULLIF ( - ( - CAST ( - CAST ( + CAST ( + 56 AS INTEGER ) AS INTEGER ) AS INTEGER ) ), + 85 * 96 ) * 56 @@ -13600,8 +13724,11 @@ SELECT DISTINCT + 50 * 65 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(4\)\) AS col0" at position 0 and "Int64\(\-44\) \+ \(\- CAST\(Int64\(98\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( + 4 ) AS col0, - 44 + - CAST ( 98 AS INTEGER ) AS col0 +---- +-142 +4 query I rowsort label-2600 SELECT ALL + CAST ( + 47 AS INTEGER ) @@ -13652,8 +13779,11 @@ SELECT DISTINCT 56 + - COUNT ( * ) + - + SUM ( DISTINCT + 26 ) / 30, + 20 AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - 7872 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* Int64\(82\) AS col1" at position 0 and "Int64\(81\) \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 96 * 82 AS col1, 81 + + CAST ( NULL AS INTEGER ) col1 +---- +7872 +NULL query I rowsort label-2610 SELECT ALL - 21 + + + CAST ( + - 18 AS INTEGER ) AS col0 @@ -13753,8 +13883,11 @@ SELECT 72 / + COUNT ( * ) + - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, - 33 AS col2 +---- +-33 +1 query I rowsort label-2629 SELECT - 86 * - 8 * + + COUNT ( * ) @@ -13920,8 +14053,11 @@ SELECT NULLIF ( + ( 29 ), - + COUNT ( * ) + 76 ) + + 49 # 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\(2\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 2 AS col1, 88 AS col1 +---- +2 +88 query II rowsort SELECT DISTINCT 53 AS col0, 12 + + 33 AS col1 @@ -14175,8 +14311,12 @@ NULL # Datafusion - Expected - 91 # Datafusion - Expected - -62 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 91 * + COUNT ( * ) AS col1, - 62 AS col1, MAX ( ALL - + 72 ) +---- +-62 +-72 +91 query I rowsort label-2707 SELECT CAST ( + + 45 AS INTEGER ) + 58 * 28 + ( + 35 ) @@ -14224,8 +14364,11 @@ 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\(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\. +query II valuesort SELECT + - ( - COALESCE ( + - MIN ( - 54 ), COUNT ( * ) * - + 27 + - 13 ) ) AS col0, 74 AS col0 +---- +54 +74 query I rowsort SELECT + 90 + - - ( + 20 ) @@ -14303,8 +14446,11 @@ SELECT DISTINCT + 22 + + 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 AS col1, 36 AS col1 +---- +36 +36 query I rowsort SELECT ALL 33 + - 21 AS col0 @@ -14425,8 +14571,11 @@ SELECT + + 72 / 15 col2 # 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\(66\) \* Int64\(45\) / Int64\(75\) AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 66 * 45 / + 75 AS col1, 43 col1 +---- +39 +43 query II rowsort SELECT ALL + - 91, - 68 AS col2 @@ -14443,8 +14592,11 @@ SELECT + + 9, 85 - - 25 + + + 2 / + ( + ( 7 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 44 col0, + 25 AS col0 +---- +25 +44 query II rowsort SELECT 78 AS col0, + 72 @@ -14455,8 +14607,11 @@ SELECT 78 AS col0, + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 2444 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "Int64\(47\) \* Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 86 AS col2, + 47 * 52 AS col2 +---- +2444 +86 query II rowsort SELECT ALL + + 58, + ( - - 37 ) AS col0 @@ -14816,8 +14971,11 @@ NULL # 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\(DISTINCT Int64\(47\)\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( DISTINCT 47 ) col1, + 9 AS col1 +---- +1 +9 query I rowsort label-2828 SELECT ALL 57 - - - COUNT ( * ) AS col2 @@ -15817,8 +15975,11 @@ SELECT + 10 + + ( + 0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 676 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(73\)\) / CAST\(NULL AS Int32\) \* Int64\(15\) \* Int64\(51\) \- \(\- CAST\(NULL AS Float64\)\) AS col0" at position 0 and "Int64\(52\) \* Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - + 73 / + CAST ( NULL AS INTEGER ) * 15 * 51 - + - CAST ( NULL AS FLOAT8 ) AS col0, 52 * 13 AS col0 +---- +676 +NULL query I rowsort label-3019 SELECT - - 98 * + - 61 - - SUM ( ALL + - 36 ) @@ -16250,8 +16411,11 @@ SELECT ALL 13 / + 42 # 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 "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 82 AS col1, 3 col1 +---- +-82 +3 query I rowsort SELECT + + 41 * + ( + 7 ) + 10 + - 79 @@ -16663,8 +16827,11 @@ 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\(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\. +query II valuesort SELECT + - COUNT ( * ) AS col0, 69 - 52 AS col0 +---- +-1 +17 query I rowsort label-3182 SELECT ALL 55 - - 85 + - + COUNT ( * ) / + + COUNT ( DISTINCT + + 83 ) @@ -17281,8 +17448,11 @@ SELECT + - 7 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 27 AS col2, 41 AS col2 +---- +27 +41 query II rowsort label-3298 SELECT - 38, + 50 + COUNT ( * ) AS col0 @@ -17299,8 +17469,11 @@ SELECT - COUNT ( * ), 89 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 645 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(93\) AS Int32\) \* Int64\(7\) \- Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 60 AS col1, COUNT ( * ) + + + CAST ( 93 AS INTEGER ) * + 7 - 7 col1 +---- +60 +645 query I rowsort label-3301 SELECT ALL - 10 * + COALESCE ( + 16, 89, + + 89 * - 47 ) * - ( COUNT ( * ) ) @@ -17477,8 +17650,11 @@ SELECT ALL 64 * - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col1" at position 0 and "Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 31 ) AS col1, - 94 AS col1 +---- +-94 +31 query I rowsort SELECT 86 + + + 48 + - - 32 + - + 64 * 26 AS col0 @@ -17856,8 +18032,11 @@ SELECT - + ( + COALESCE ( + ( - 5 ), ( - CAST ( - 0 AS INTEGER ) ) * 20 + - 35 - # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 155 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(92\) WHEN Int64\(\-68\) \+ Int64\(33\) \* Int64\(70\) \+ \(\- CAST\(Int64\(\-40\) AS Int32\)\) THEN Int64\(\-76\) END\) \- Int64\(62\) / \(\- Int64\(57\)\) AS col1" at position 0 and "Int64\(97\) \- sum\(DISTINCT Int64\(\-58\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CASE 92 WHEN - 68 + + 33 * + 70 + - CAST ( - 40 AS INTEGER ) THEN + - 76 END - 62 / - + 57 AS col1, + 97 - SUM ( DISTINCT - 58 ) AS col1 +---- +155 +NULL query I rowsort SELECT DISTINCT + 13 * 55 @@ -18081,8 +18260,11 @@ 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\(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\. +query II valuesort SELECT - 95 AS col1, + NULLIF ( - COUNT ( * ), - 34 * 27 * - - 60 + - 84 + SUM ( + 34 ) ) AS col1 +---- +-1 +-95 query I rowsort SELECT 72 * - + 17 col0 @@ -18391,8 +18573,11 @@ SELECT - 97 - - 32 * - 96 + + NULLIF ( 28, + + 8 / - + 67 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 7 AS col0, 81 AS col0 +---- +7 +81 query I rowsort SELECT DISTINCT - 1 + + + 30 AS col0 @@ -18856,8 +19041,11 @@ SELECT + 11 - - 2 / + + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 AS col2, + COUNT ( * ) - + - CAST ( NULL AS INTEGER ) AS col2 +---- +81 +NULL query II rowsort label-3600 SELECT ALL - 46 AS col0, - COUNT ( * ) / - + 26 @@ -18903,14 +19091,20 @@ SELECT NULLIF ( 18, MIN ( ALL - 66 ) + ( - + COALESCE ( 63, + COUNT ( * ) ) ) + # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 AS col0, 2 AS col0 +---- +2 +61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col2" at position 0 and "Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 61 AS col2, - 76 AS col2 +---- +-76 +61 query I rowsort SELECT 6 + - 88 AS col0 @@ -18925,8 +19119,11 @@ SELECT 42 * 55 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 1608 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col2" at position 0 and "Int64\(24\) \* Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 AS col2, 24 * + + 67 AS col2 +---- +1608 +69 query I rowsort SELECT DISTINCT 20 AS col1 @@ -18996,8 +19193,11 @@ SELECT - - 93 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 57 AS col0, 72 AS col0 +---- +57 +72 query I rowsort SELECT ALL + 91 * + + 69 AS col2 @@ -19384,8 +19584,11 @@ SELECT DISTINCT SUM ( - - 5 ) * - - 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -279 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) / Int64\(41\) \+ Int64\(\-3\) \* Int64\(93\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 8 / + 41 + + - 3 * + + 93 AS col2, 6 AS col2 +---- +-279 +6 query I rowsort label-3701 SELECT ALL - MAX ( ALL 79 ) AS col1 @@ -19459,8 +19662,11 @@ SELECT DISTINCT + 16 * + 61 + - 16 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) \+ Int64\(97\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 58 + + 97 AS col1, 16 col1 +---- +16 +39 query I rowsort label-3715 SELECT ALL + + 60 - - NULLIF ( - COUNT ( * ), - + 19 ) * - 54 @@ -19475,8 +19681,11 @@ SELECT DISTINCT - - 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2494 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) \- Int64\(83\) \+ \(\- Int64\(86\)\) \* Int64\(\-30\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 3 - + 83 + - + 86 * - 30 AS col1, 26 AS col1 +---- +2494 +26 query II rowsort SELECT ALL 42 col1, + 50 + + 69 @@ -19658,8 +19867,11 @@ SELECT + 57 * - 51 AS col0, 17 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( CAST ( NULL AS INTEGER ) ) col2, 11 AS col2 +---- +11 +NULL query I rowsort label-3752 SELECT MAX ( DISTINCT 66 ) * 1 * + - 62 + COUNT ( * ) + - - 43 * - 8 + - 39 + - + ( + - 14 ) * - 8 + + 11 - - MIN ( ALL - 84 ) @@ -19726,8 +19938,11 @@ SELECT ALL - 82 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + 28 ) AS col1, 45 AS col1 +---- +28 +45 query II rowsort label-3765 SELECT - COUNT ( * ) + 65 col2, 82 AS col0 @@ -20525,8 +20740,11 @@ SELECT - 98 * - - COUNT ( * ) + 84 + 27 * 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 82 AS col1, - CAST ( NULL AS INTEGER ) * 82 AS col1 +---- +82 +NULL query I rowsort SELECT ALL + ( + + 68 ) AS col2 @@ -20541,8 +20759,11 @@ SELECT - 40 * - ( - - 45 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(34\), Int64\(72\) \* \(\- Int64\(98\)\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + NULLIF ( + 34, 72 * - + 98 ) AS col2, CAST ( NULL AS INTEGER ) * + - 74 AS col2 +---- +34 +NULL query I rowsort label-3918 SELECT ALL + MAX ( ALL + 73 ) AS col1 @@ -20552,8 +20773,11 @@ 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\(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\. +query IR valuesort 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 +---- +15 +NULL query I rowsort SELECT - 33 * 32 * + 78 * - + 51 col1 @@ -20769,8 +20993,11 @@ SELECT ALL - COUNT ( * ) AS col0, + 17 + - - 99 + - 54 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83424 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) \* Int64\(79\) \* Int64\(24\) AS col0" at position 0 and "Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 44 * + 79 * + 24 col0, - 99 AS col0 +---- +-83424 +-99 query I rowsort SELECT DISTINCT - ( 39 ) @@ -21752,8 +21979,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -74 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 73 col2, - 74 AS col2 +---- +-74 +73 query I rowsort SELECT ALL 85 + + - 18 AS col1 @@ -22550,8 +22780,11 @@ SELECT - 10 + + 95 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col0" at position 0 and "Int64\(\-58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 73 col0, - 58 AS col0 +---- +-58 +-73 query II rowsort label-4308 SELECT - COUNT ( * ) AS col2, + 59 AS col0 @@ -23000,8 +23233,11 @@ SELECT 33 * - 37 * - 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) / Int64\(7\) AS col2" at position 0 and "Int64\(\-50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 / + 7 AS col2, - 50 AS col2 +---- +-50 +5 query I rowsort SELECT ALL - NULLIF ( - - ( 58 ), + 61 ) * + 47 AS col0 @@ -23294,8 +23530,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + SUM ( ALL + 44 ) + 83 + + 97 / - + 43 col1, 46 + + - 67 + - COUNT ( * ) * + 64 AS col1 +---- +-85 +125 query I rowsort SELECT - + 68 * - + 0 + - + 2 AS col1 @@ -23496,8 +23735,11 @@ SELECT + 34 + - 38 + + 21 * - 68 + + 48 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col1" at position 0 and "coalesce\(Int64\(\-39\), \(\- CAST\(NULL AS Int32\)\), Int64\(\-17\) / Int64\(\-95\) / Int64\(\-72\) \- Int64\(92\) \+ coalesce\(Int64\(85\), Int64\(26\) \* Int64\(\-46\), Int64\(56\) \* Int64\(76\)\) \* Int64\(16\) \* Int64\(88\) \+ Int64\(58\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 36 AS col1, COALESCE ( - 39, - CAST ( NULL AS INTEGER ), - 17 / - 95 / - 72 - 92 + + COALESCE ( + 85, 26 * - 46, 56 * 76 ) * 16 * 88 + + 58 ) AS col1 +---- +-36 +-39 query I rowsort label-4489 SELECT ALL 8 * + NULLIF ( - CAST ( NULL AS INTEGER ), 3 + - - 71 ) + COUNT ( ALL - 80 ) / + ( - ( + 77 ) ) @@ -23544,8 +23786,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 76440 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) \* Int64\(39\) \* Int64\(\-40\) AS col2" at position 0 and "Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 49 * 39 * + - 40 AS col2, - 4 AS col2 +---- +-4 +76440 query I rowsort label-4498 SELECT DISTINCT - CASE CAST ( - CAST ( - 25 AS INTEGER ) AS INTEGER ) WHEN - 93 * + 71 + - 75 / + 19 + COUNT ( * ) + + 79 THEN 23 END / 35 * + 50 @@ -23624,8 +23869,11 @@ 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\(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\. +query II valuesort SELECT 61 * - - 6 + 22 - + COUNT ( * ) + + 37 * 20 + 75 - + 56 * - 24 * - - 60 AS col1, COUNT ( * ) / + - 72 / + 28 AS col1 +---- +0 +81842 query I rowsort SELECT ALL + + 90 AS col0 @@ -23930,8 +24178,11 @@ SELECT 81 * - - NULLIF ( + 52, + - 38 ) + - - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(97\)\) AS col1" at position 0 and "Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 97 col1, 4 AS col1 +---- +-97 +4 query I rowsort label-4571 SELECT + 79 - + 50 * 32 + NULLIF ( - 13, 50 * - 29 ) / - + 16 AS col2 @@ -24445,8 +24696,11 @@ SELECT ALL - + 52 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 "Int64\(\-69\) AS col2" at position 0 and "Int64\(84\) / Int64\(95\) \* Int64\(\-90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 69 AS col2, 84 / 95 * - 90 AS col2 +---- +-69 +0 query II rowsort label-4670 SELECT MIN ( DISTINCT - - 60 ) AS col1, - 92 @@ -25452,8 +25706,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- Int64\(\-98\)\) / \(\- Int64\(26\)\) \- Int64\(36\) \+ Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, - ( - 98 ) / - + 26 - + 36 + + 0 AS col2 +---- +-39 +1 query I rowsort SELECT ALL - 4 col1 @@ -25778,14 +26035,20 @@ SELECT - 35 * + 4 * + + NULLIF ( - - 29, - 95 ) # 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\)" at position 0 and "Int64\(55\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 55, 55 +---- +55 +55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(14\) / \(\- Int64\(44\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, + COUNT ( * ) * 14 / - + 44 AS col2 +---- +0 +1 query I rowsort SELECT DISTINCT + 75 AS col0 @@ -26075,8 +26338,11 @@ SELECT ALL 66 + + 48 # 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\(85\) \- Int64\(68\) \+ Int64\(11\) AS col0" at position 0 and "Int64\(47\) / \(\- Int64\(99\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 - + 68 + 11 AS col0, 47 / - + 99 col0 +---- +0 +28 query I rowsort label-4980 SELECT MAX ( DISTINCT 1 ) * - 57 / - - 28 @@ -26888,8 +27154,11 @@ SELECT + ( - 65 ) * + ( - - 0 ) + - + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 82 - + COUNT ( * ) AS col0, 68 AS col0 +---- +68 +81 query I rowsort label-5135 SELECT DISTINCT - CASE - 38 WHEN + NULLIF ( + 82, 24 / 27 ) + + - SUM ( 12 ) THEN + - 31 END * - - 0 col0 @@ -27165,8 +27434,11 @@ SELECT ALL - 48 * + CAST ( 22 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ CASE Int64\(84\) WHEN min\(\(\- Int64\(\-66\)\)\) \+ Int64\(84\) THEN Int64\(\-93\) END \+ \(\- Int64\(\-83\)\) \+ Int64\(13\) AS col0" at position 0 and "CASE Int64\(58\) WHEN Int64\(\-67\) \+ Int64\(84\) \+ Int64\(0\) \* Int64\(\-78\) THEN Int64\(12\) \* \(\- Int64\(\-90\)\) END / Int64\(91\) \+ Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 + + CASE 84 WHEN + MIN ( - - 66 ) + + 84 THEN - 93 END + - - 83 + 13 AS col0, CASE 58 WHEN - 67 + + 84 + + 0 * - 78 THEN + 12 * - ( + - 90 ) END / 91 + + 59 AS col0 +---- +NULL +NULL query I rowsort SELECT ALL - 76 - - 44 AS col0 @@ -27252,8 +27524,11 @@ SELECT - 78 AS col2, COUNT ( * ) * + 20 + + 93 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \+ Int64\(\-81\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 27 + - 81 AS col0, + COUNT ( * ) AS col0 +---- +-54 +1 query I rowsort label-5204 SELECT ALL - 1 * SUM ( DISTINCT - 88 ) AS col1 @@ -27437,8 +27712,12 @@ SELECT 10 / CASE - COUNT ( * ) WHEN + 79 THEN NULL WHEN 6 * - + 65 + 20 + + + 68 # Datafusion - Expected - NULL # Datafusion - Expected - 32 # Datafusion - Expected - 261 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE coalesce\(Int64\(5\), \(\- Int64\(\-49\)\) \- Int64\(\-81\) \+ \(\- Int64\(\-42\)\) \+ Int64\(\-61\) / Int64\(77\) \* Int64\(4\) / Int64\(63\) / Int64\(38\)\) WHEN Int64\(11\) \* Int64\(\-31\) \- Int64\(\-7\) \+ Int64\(\-4\) THEN \(\- Int64\(65\)\) END\) AS col0" at position 0 and "Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - CASE + + COALESCE ( 5, - - 49 - - 81 + - - 42 + - 61 / + ( 77 ) * + 4 / 63 / + 38 ) WHEN + + 11 * + - 31 - - 7 + - 4 THEN - + 65 END AS col0, 32 col0, 9 * + ( + + 29 ) +---- +261 +32 +NULL query II rowsort label-5239 SELECT - MIN ( 93 ) AS col0, ( + + COALESCE ( - - 55, 45, + SUM ( + + 45 ) ) ) + + 66 @@ -27474,8 +27753,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3094 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(93\) \- Int64\(68\) AS col0" at position 0 and "Int64\(\-81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 34 * 93 - + 68 AS col0, - 81 col0 +---- +-81 +3094 query I rowsort label-5246 SELECT + 59 / 37 * + - COALESCE ( 83, - 14 * + - NULLIF ( + COUNT ( * ), + COUNT ( * ) ) + - - 7 ) + - CASE + 36 WHEN + 19 * MIN ( 3 ) + + CASE + 57 WHEN - - COALESCE ( - - 86, + 19 * + 25 ) / - COALESCE ( 86, MIN ( ALL + 5 ) ) THEN - 22 + + MIN ( + 95 ) END - + 69 THEN NULL WHEN + 80 THEN NULL WHEN + + SUM ( - - 88 ) THEN 90 ELSE 33 END AS col0 @@ -27536,8 +27818,11 @@ SELECT ALL 76 * - COUNT ( * ) * + 47 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* Int64\(74\) AS col2" at position 0 and "Int64\(23\) \+ Int64\(67\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + CAST ( NULL AS INTEGER ) + - ( - - COUNT ( * ) ) * 74 AS col2, 23 + 67 + + - COUNT ( * ) * + 29 AS col2 +---- +61 +NULL query I rowsort label-5258 SELECT ALL + COUNT ( * ) + + 18 @@ -27668,8 +27953,11 @@ SELECT ( - + SUM ( DISTINCT + 34 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + + 22 ) AS col0, 43 AS col0 +---- +22 +43 query I rowsort label-5283 SELECT DISTINCT + CAST ( NULL AS INTEGER ) col0 @@ -27932,8 +28220,11 @@ SELECT - - 33 AS col2 # 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 "\(\- CASE \(\- Int64\(84\)\) WHEN Int64\(\-76\) THEN Int64\(76\) WHEN Int64\(\-59\) THEN \(\- coalesce\(Int64\(48\), Int64\(\-72\) \* Int64\(\-76\)\)\) \+ \(\- max\(Int64\(79\)\)\) END\) \* coalesce\(Int64\(6\), Int64\(26\)\) AS col0" at position 0 and "Int64\(\-36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CASE ( - + 84 ) WHEN + - 76 THEN + 76 WHEN - 59 THEN + - COALESCE ( + 48, - 72 * - 76 ) + - MAX ( + 79 ) END * + COALESCE ( 6, 26 ) AS col0, - 36 AS col0 +---- +-36 +NULL query I rowsort SELECT - 32 col2 @@ -28214,8 +28505,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 35 * - COUNT ( * ) AS col1, - COUNT ( * ) AS col1, 21 AS col2 +---- +-1 +21 +35 query I rowsort SELECT + ( + - 33 ) * - 11 col1 @@ -28413,8 +28708,11 @@ SELECT 9 / - 83 * - 51 + + + 86 + 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 52 AS col0, COUNT ( * ) AS col0 +---- +-52 +1 query I rowsort label-5426 SELECT + ( + SUM ( 86 ) ) @@ -28652,8 +28950,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( COUNT ( * ) ) AS col1, + 45 AS col1 +---- +-1 +45 query II rowsort label-5472 SELECT DISTINCT + + COUNT ( * ) * - - 50 + - 31 / - 65 AS col2, 91 AS col0 @@ -28815,8 +29116,12 @@ SELECT - ( - - MAX ( DISTINCT - - 46 ) ) * + + 73 - MIN ( + 34 ) - 71 # Datafusion - Expected - 19 # Datafusion - Expected - 1 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "count\(DISTINCT Int64\(18\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 19 AS col2, COUNT ( DISTINCT + 18 ) col2, 53 + + - ( + 85 ) - 57 +---- +-89 +1 +19 query I rowsort SELECT DISTINCT + - 79 AS col1 @@ -28994,8 +29299,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, + 51 AS col2 +---- +-1 +51 query I rowsort label-5536 SELECT + - 81 / - + 41 AS col2 @@ -29173,8 +29481,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 * - COUNT ( * ) AS col0, 49 AS col0 +---- +-39 +49 query I rowsort label-5570 SELECT MAX ( + - 29 ) + + CAST ( - 10 AS INTEGER ) @@ -29481,8 +29792,11 @@ 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\(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\. +query II valuesort 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 +---- +79 +9 query II rowsort SELECT ALL 64 * - 89 AS col2, ( + + 91 ) @@ -29805,8 +30119,11 @@ SELECT DISTINCT 39 + + 33 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\(87\) \+ \(\- Int64\(46\)\) \+ \(\- Int64\(\-5\)\) \* \(\- Int64\(7\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 47 AS col1, 87 + - + 46 + - - 5 * - + 7 AS col1 +---- +47 +6 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -30000,8 +30317,11 @@ SELECT ALL - 60 * 49 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 51 AS col0, 31 AS col0 +---- +-51 +31 query II rowsort label-5728 SELECT - 86 / - 86, + 6 col1 @@ -30069,8 +30389,12 @@ SELECT 26 + - 15 + 46 col2 # Datafusion - Expected - 5916 # Datafusion - Expected - -160 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(68\) AS col0" at position 0 and "\(\- Int64\(75\)\) \+ Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 87 * + 68 AS col0, + ( - + 75 ) + - 85 AS col0, + COALESCE ( - + CAST ( NULL AS INTEGER ), + 37 / + 30, + + 27 ) AS col1 +---- +-160 +1 +5916 query I rowsort SELECT 78 * + + 0 * - 34 AS col2 @@ -30288,8 +30612,11 @@ SELECT ALL - - 30 * COUNT ( * ) * + 5 * + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "Int64\(74\) \* Int64\(33\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90 AS col0, 74 * 33 + + CAST ( NULL AS INTEGER ) AS col0 +---- +90 +NULL query I rowsort label-5782 SELECT DISTINCT - COALESCE ( - 74, 7 ) * - COUNT ( * ) + 26 + - 58 @@ -30365,8 +30692,11 @@ SELECT DISTINCT 5 * 15 - - + COUNT ( ALL - 29 ) / 46 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 768 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \* Int64\(\-48\) AS col1" at position 0 and "Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 16 * + - 48 AS col1, - 20 AS col1 +---- +-20 +768 query I rowsort SELECT - 0 * - - ( 59 ) @@ -30425,8 +30755,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -158 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \* Int64\(2\) AS col0" at position 0 and "\(\- min\(DISTINCT Int64\(63\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 79 * 2 AS col0, - MIN ( DISTINCT 63 ) AS col0 +---- +-158 +-63 query I rowsort label-5808 SELECT + CASE 6 WHEN 18 THEN NULL WHEN - NULLIF ( - - 46, + 91 + + 79 + - MAX ( + + 25 ) + 66 - + ( 4 ) ) * + COUNT ( * ) * - 58 THEN + - 54 END * + 69 + - + 43 @@ -32038,8 +32371,11 @@ SELECT ALL - + COUNT ( - - 18 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -990 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-45\)\)\) \* Int64\(\-22\) AS col0" at position 0 and "Int64\(75\) \+ Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + SUM ( - 45 ) * - 22 AS col0, 75 + + 10 AS col0 +---- +-990 +85 query I rowsort SELECT DISTINCT - 42 AS col1 @@ -32621,8 +32957,11 @@ SELECT ALL 28 AS col1, 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \- Int64\(42\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 47 - 42 AS col1, + 55 col1 +---- +-89 +55 query I rowsort label-6236 SELECT - COALESCE ( - + 42, COUNT ( * ) ) + MAX ( DISTINCT - + 8 ) + - + 85 @@ -32664,8 +33003,12 @@ NULL # Datafusion - Expected - 50 # Datafusion - Expected - -16 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col1" at position 0 and "Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 50 col1, - 16 AS col1, 34 AS col0 +---- +-16 +34 +50 query I rowsort SELECT + 0 + 75 AS col2 @@ -32846,8 +33189,11 @@ SELECT - + 80 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -7852 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(42\)\)\) AS col0" at position 0 and "\(\- nullif\(\(\- Int64\(\-91\)\), Int64\(43\)\)\) \* Int64\(87\) \+ Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( 42 ) AS col0, - NULLIF ( - - 91, 43 ) * 87 + 65 AS col0 +---- +-1 +-7852 query II rowsort label-6278 SELECT ALL 97 * 47 + + - 45 col0, CAST ( 19 AS INTEGER ) * + 65 AS col1 @@ -33585,8 +33931,11 @@ SELECT MAX ( + 2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 12 AS col2 +---- +1 +12 query I rowsort SELECT ALL + - ( 13 ) col2 @@ -33741,8 +34090,11 @@ SELECT ALL + 14 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -670 # Datafusion - Expected - 3854 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* Int64\(\-67\) AS col0" at position 0 and "Int64\(47\) \* Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 10 * - 67 col0, 47 * + + 82 AS col0 +---- +-670 +3854 query I rowsort SELECT + ( 5 ) AS col2 @@ -33784,8 +34136,12 @@ SELECT DISTINCT - 30 * - 85 AS col2, + 82 # Datafusion - Expected - -1 # Datafusion - Expected - 43 # Datafusion - Expected - 1067 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col2" at position 1 and "Int64\(97\) \* Int64\(11\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 98 / - 80, 43 AS col2, + 97 * + 11 AS col2 +---- +-1 +1067 +43 query I rowsort SELECT 49 * 47 + 77 AS col1 @@ -33955,8 +34311,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 AS col0, 64 / 13 + COUNT ( * ) + - 22 AS col0 +---- +-17 +47 query I rowsort SELECT DISTINCT - 26 - + - 13 AS col1 @@ -34563,8 +34922,11 @@ 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\(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\. +query II valuesort SELECT + ( + COUNT ( * ) ) * + - 51 - 32 AS col0, ( - + 88 ) AS col0 +---- +-83 +-88 query I rowsort label-6607 SELECT + 74 * - - COUNT ( + + CAST ( - 94 AS INTEGER ) ) AS col0 @@ -34657,8 +35019,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2860 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(13\)\)\)\) \* Int64\(5\) \* 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 II valuesort SELECT ALL - - MAX ( ALL + 13 ) * 5 * + 44 AS col2, - 93 AS col2 +---- +-93 +2860 query I rowsort label-6625 SELECT DISTINCT + 22 / - + 25 * 3 col2 @@ -34668,8 +35033,11 @@ SELECT DISTINCT + 22 / - + 25 * 3 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(42\)\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 42 AS col2, + 78 AS col2 +---- +-42 +78 query I rowsort SELECT 69 * 27 AS col0 @@ -34679,8 +35047,11 @@ SELECT 69 * 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(45\) \- Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) col2, 45 - + 92 AS col2 +---- +-47 +1 query I rowsort label-6629 SELECT SUM ( + 82 ) AS col0 @@ -35090,8 +35461,11 @@ SELECT - COALESCE ( - COALESCE ( 64, - 4 ), + COALESCE ( 0, - + 56 + + 4 - + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3936 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* Int64\(48\) AS col0" at position 0 and "Int64\(34\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 82 * + + 48 AS col0, 34 * COUNT ( * ) AS col0 +---- +34 +3936 query I rowsort label-6708 SELECT ( + 42 ) * + 73 * - + CASE 72 WHEN + - COUNT ( * ) THEN 34 ELSE + 32 END * - 49 * 16 * COUNT ( * ) * - + 4 + + 68 + - CAST ( + 98 AS INTEGER ) + 31 @@ -35549,8 +35923,11 @@ SELECT 27 - - MAX ( + 90 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 50 col1, 88 AS col1 +---- +-50 +88 query I rowsort SELECT DISTINCT - - 73 + - 59 AS col0 @@ -35649,8 +36026,11 @@ SELECT DISTINCT 99 * SUM ( - 59 ), 95 + 63 + + + 91 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- Int64\(58\)\)\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( - + 58 ) AS col1, 19 AS col1 +---- +-58 +19 query I rowsort SELECT 32 * + 6 AS col0 @@ -35797,8 +36177,11 @@ SELECT - 99 + - 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 88 AS col0, + COUNT ( * ) AS col0 +---- +1 +88 query I rowsort SELECT DISTINCT CASE ( - 98 ) WHEN - 87 THEN 44 END @@ -36317,8 +36700,11 @@ NULL # 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 "Int64\(38\) / \(\- Int64\(78\)\) \* Int64\(\-86\) \* Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 90 col0, + 38 / - + 78 * - 86 * 16 AS col0 +---- +0 +90 query I rowsort label-6943 SELECT DISTINCT - COUNT ( * ) + - + 57 + + - 1 @@ -36795,8 +37181,11 @@ SELECT DISTINCT - COALESCE ( + 47, + 90, + + ( - + ( + CASE + 22 WHEN + CAST ( N # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 5 AS col2, 94 AS col2 +---- +5 +94 query II rowsort SELECT + + 48, 35 * + 21 AS col0 @@ -37014,8 +37403,11 @@ SELECT DISTINCT 57 * + - SUM ( ALL 36 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) \* coalesce\(Int64\(33\), \(\- Int64\(\-83\)\) / Int64\(\-38\) \+ count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(80\) AS col1" at position 0 and "max\(Int64\(\-75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - - ( CAST ( NULL AS INTEGER ) ) ) * + COALESCE ( 33, - - 83 / ( - 38 ) + + COUNT ( * ) ) + + 80 AS col1, MAX ( ALL - 75 ) AS col1 +---- +-75 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -37095,14 +37487,20 @@ SELECT - ( + - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 97 AS col1, 80 AS col1 +---- +80 +97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col2" at position 0 and "Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 75 AS col2, - 38 AS col2 +---- +-38 +75 query I rowsort SELECT + 55 + - 79 @@ -37279,8 +37677,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 18 col0, ( - + 96 ) * + COUNT ( * ) + - 64 AS col0 +---- +-160 +-18 query I rowsort SELECT - 26 + + 93 * + + 89 @@ -37493,8 +37894,11 @@ SELECT - - 94 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 54720 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* Int64\(8\) AS col2" at position 0 and "nullif\(Int64\(\-32\), Int64\(0\)\) \* Int64\(\-95\) \* Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 10 * + 8 col2, + NULLIF ( - 32, - 0 ) * - 95 * + 18 AS col2 +---- +54720 +80 query I rowsort label-7164 SELECT ALL - 83 * ( + CASE - + COUNT ( * ) WHEN 6 THEN - + 71 ELSE NULL END ) + + + 83 - + 31 @@ -37608,8 +38012,11 @@ 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\(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\. +query II valuesort SELECT ALL 54 * COUNT ( * ) + 69 AS col2, + 90 AS col2 +---- +123 +90 query I rowsort SELECT + 85 * 50 + + 44 @@ -37711,8 +38118,11 @@ SELECT DISTINCT ( + + 54 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 55 AS col1, 15 AS col1 +---- +15 +55 query I rowsort label-7206 SELECT DISTINCT CAST ( + + 23 AS INTEGER ) @@ -37999,8 +38409,11 @@ SELECT - 45 + + 94 + + 82 * - 92 * + 45 * - 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) \+ Int64\(85\) \+ Int64\(\-59\) AS col2" at position 0 and "Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 13 + 85 + - 59 AS col2, - 63 AS col2 +---- +-63 +13 query I rowsort SELECT - 56 * - + 56 AS col2 @@ -38343,8 +38756,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2016 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) / CAST\(NULL AS Int32\) \* Int64\(99\) AS col2" at position 0 and "Int64\(\-42\) \* Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 3 / + CAST ( NULL AS INTEGER ) * 99 AS col2, - 42 * 48 AS col2 +---- +-2016 +NULL query I rowsort SELECT + 62 + - + 71 * - + 86 - COALESCE ( 17, - ( + - 60 ) * 65, - - 46 ) * 25 + - 46 AS col2 @@ -38714,8 +39130,11 @@ 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\(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\. +query II valuesort SELECT ALL - + COUNT ( + 94 ) + - NULLIF ( + 60, - 11 * 28 - - - COUNT ( * ) ) AS col2, 54 + - 80 AS col2 +---- +-26 +-61 query I rowsort SELECT - 34 + - 61 AS col0 @@ -39166,15 +39585,22 @@ SELECT DISTINCT 11 * - 92 + + 85 * + 61 * 70 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 81 AS col2, COUNT ( * ) AS col2 +---- +1 +81 # 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\(1\)\) AS count\(\*\) \+ Int64\(77\) \* Int64\(83\) \* Int64\(\-4\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 11 AS col2, - 97 AS col1, + 77 + + COUNT ( * ) + + + 77 * + ( + + ( + 83 ) ) * + - 4 AS col1 +---- +-25486 +-97 +11 query II rowsort SELECT DISTINCT 60 AS col1, 89 @@ -39201,8 +39627,12 @@ NULL # Datafusion - Expected - -64 # Datafusion - Expected - 34 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(64\) AS Int32\)\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - CAST ( + 64 AS INTEGER ) AS col2, + ( + 34 ) AS col1, 95 AS col2 +---- +-64 +34 +95 query I rowsort label-7489 SELECT - + 7 / 42 @@ -39313,8 +39743,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2, + COUNT ( * ) * 2 col2 +---- +2 +NULL query I rowsort label-7511 SELECT + 57 * + SUM ( ALL 33 ) + + 35 @@ -39520,8 +39953,11 @@ SELECT DISTINCT - 90 AS col2, 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 44 AS col1, + 97 AS col1 +---- +-44 +97 query I rowsort SELECT ALL ( - 58 ) @@ -40951,8 +41387,11 @@ SELECT DISTINCT + + COUNT ( * ) / CASE + 38 WHEN + COUNT ( * ) * 83 / 5 THEN 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 93 AS col0, 78 AS col0 +---- +78 +93 query II rowsort SELECT - 21 AS col1, - 75 @@ -41016,8 +41455,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 87 AS col2, + COUNT ( * ) + + + 79 AS col2 +---- +-87 +80 query I rowsort SELECT DISTINCT + 64 + + + 79 @@ -41400,8 +41842,11 @@ SELECT - COUNT ( ALL + ( 98 ) ) 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 col1" at position 0 and "Int64\(42\) / Int64\(\-71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 45 AS col1, 42 / - 71 AS col1 +---- +-45 +0 query I rowsort SELECT - - 32 AS col1 @@ -41652,8 +42097,11 @@ SELECT DISTINCT 3 / + - 67 * + - 88 col1 # 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 "Int64\(30\) AS col0" at position 0 and "Int64\(\-30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 30 AS col0, - 30 AS col0 +---- +-30 +30 query I rowsort SELECT 98 + 77 @@ -41777,8 +42225,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 18 * + 3 + + + 86 AS col1, 6 * - COUNT ( * ) AS col1 +---- +-6 +32 query II rowsort label-7986 SELECT ALL + CAST ( NULL AS INTEGER ), NULLIF ( + 66, NULLIF ( + - NULLIF ( + 14, - 59 * + - 29 + + MIN ( - 35 ) ), COALESCE ( 57, MAX ( ALL + ( + 61 ) ) ) / 54 + + 78 ) * 49 ) AS col0 @@ -41814,8 +42265,11 @@ SELECT + 37 + + - 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3654 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) \* Int64\(42\) AS col0" at position 0 and "Int64\(60\) / Int64\(72\) \* \(\- \(\- \(\- max\(Int64\(76\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 87 * + 42 AS col0, 60 / 72 * - + ( - - MAX ( 76 ) ) AS col0 +---- +-3654 +0 query I rowsort SELECT ALL + 12 * + ( 54 ) @@ -42006,8 +42460,11 @@ SELECT - + ( + ( - 32 ) ) + - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "Int64\(12\) \+ max\(DISTINCT Int64\(81\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 59 AS col0, 12 + + MAX ( DISTINCT + 81 ) AS col0 +---- +59 +93 query I rowsort label-8029 SELECT ALL - + 28 * - COUNT ( * ) * 28 @@ -42048,8 +42505,12 @@ SELECT + 66, 90 AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - -23 # Datafusion - Expected - 2866 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "sum\(DISTINCT \(\- Int64\(23\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 65 / + CAST ( NULL AS INTEGER ) AS col1, SUM ( DISTINCT - + 23 ) col1, 68 * + ( + 43 ) + + - 58 +---- +-23 +2866 +NULL query I rowsort SELECT - - 6 * 15 * 15 - - + 7 @@ -42141,8 +42602,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) * 64 col0, CASE - + 20 WHEN - + ( 18 ) THEN + 36 + + 95 * COALESCE ( + ( 76 ), + 66 ) ELSE NULL END col0 +---- +64 +NULL query I rowsort SELECT + 71 * 31 AS col2 @@ -42958,8 +43422,11 @@ SELECT NULLIF ( - MAX ( ALL - 22 ), - 52 ) AS col1, 75 AS col0 # 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 "Int64\(87\) AS col2" at position 0 and "\(\- Int64\(\-25\)\) \+ Int64\(\-45\) \+ Int64\(3\) / \(\- \(\- sum\(DISTINCT Int64\(3\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 87 AS col2, - ( - 25 ) + + - 45 + 3 / - - SUM ( DISTINCT + + 3 ) AS col2 +---- +-19 +87 query I rowsort SELECT - 85 * - ( 2 ) AS col0 @@ -42980,8 +43447,11 @@ SELECT 17 AS col1, COUNT ( * ) * - - 7 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 AS col0, 13 AS col0 +---- +13 +52 query I rowsort label-8214 SELECT ALL + 83 + - 13 + + + CAST ( + 92 AS INTEGER ) * - 56 + + CAST ( SUM ( + 36 ) AS INTEGER ) * 35 AS col0 @@ -43151,8 +43621,11 @@ SELECT 51 - - 96, 23 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \* CAST\(CAST\(NULL AS Int32\) AS Int32\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 24 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, + 54 col2 +---- +54 +NULL query I rowsort label-8246 SELECT 57 * - MIN ( ALL + + 9 ) @@ -43319,8 +43792,11 @@ 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\(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\. +query II valuesort SELECT + 1 / CASE + + 26 WHEN - 12 * + 96 THEN + - 18 * + COUNT ( * ) + + 15 END AS col1, 58 * + 6 col1 +---- +348 +NULL query I rowsort SELECT ALL 85 + + 22 col1 @@ -43448,8 +43924,11 @@ SELECT ( 90 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 94 ) AS col0, + COUNT ( * ) col0 +---- +1 +94 query I rowsort label-8304 SELECT ALL 26 / + 37 + 75 AS col0 @@ -44237,8 +44716,11 @@ SELECT ALL - 85 / 29 AS col1, COUNT ( 9 ) * 90 + + NULLIF ( + SUM ( ALL 42 ), 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \- CAST\(NULL AS Int32\) \- Int64\(\-86\) \* Int64\(12\) \+ Int64\(\-96\) \* coalesce\(Int64\(88\), Int64\(23\)\) \* coalesce\(Int64\(\-61\), \(\- Int64\(32\)\) \+ Int64\(57\), CAST\(\(\- coalesce\(Int64\(\-77\), Int64\(32\)\)\) AS Int32\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1 +NULL query I rowsort label-8454 SELECT ALL - 61 + + - SUM ( + + 75 ) * + - 51 * + 69 AS col2 @@ -44794,8 +45276,11 @@ SELECT - 37 + - 23 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- count\(Int64\(47\)\)\) / Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 19 * + CAST ( NULL AS INTEGER ) AS col1, - COUNT ( ALL + 47 ) / + + 61 AS col1 +---- +0 +NULL query I rowsort label-8561 SELECT ALL + MAX ( ALL + 97 ) AS col0 @@ -44912,8 +45397,12 @@ NULL # Datafusion - Expected - 2 # Datafusion - Expected - 92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CASE \(\- \(\- max\(\(\- \(\- Int64\(45\)\)\)\)\)\) WHEN Int64\(\-14\) \* \(\- CASE \(\- Int64\(12\)\) WHEN \(\- coalesce\(Int64\(\-33\), Int64\(62\), Int64\(\-72\) \+ Int64\(76\)\)\) \* Int64\(41\) THEN \(\- \(\- sum\(\(\- Int64\(56\)\)\)\)\) \* Int64\(89\) END\) \* Int64\(\-15\) \* Int64\(74\) THEN Int64\(\-12\) \* Int64\(69\) \- CAST\(Int64\(16\) AS Int32\) WHEN Int64\(83\) THEN NULL ELSE NULL END \* Int64\(53\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +2 +92 +NULL query I rowsort label-8583 SELECT - 45 * 24 + 57 / + CAST ( NULL AS INTEGER ) @@ -45058,8 +45547,11 @@ SELECT ALL 97 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1168 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* Int64\(73\) AS col2" at position 0 and "Int64\(82\) \+ Int64\(75\) \+ Int64\(\-87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 16 * + 73 AS col2, 82 + + 75 + - 87 AS col2 +---- +1168 +70 query I rowsort label-8611 SELECT ALL + 62 + - 2 * + CASE 6 WHEN - 87 THEN - 75 END * - - 46 + - COUNT ( - - 78 ) @@ -45278,8 +45770,11 @@ SELECT 14 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 "\(\- \(\- \(\- max\(Int64\(\-68\)\)\)\)\) / Int64\(35\) AS col2" at position 0 and "Int64\(\-62\) \* \(\- count\(Int64\(\-59\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - ( - MAX ( ALL - 68 ) ) ) / 35 col2, - 62 * - + COUNT ( + - 59 ) AS col2 +---- +1 +62 query I rowsort SELECT ALL + 58 * + 64 AS col2 @@ -45788,8 +46283,11 @@ SELECT COALESCE ( + 66, - 90 * - 23, + + 1 ) + 88 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 1508 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "Int64\(30\) \+ Int64\(24\) \* \(\- Int64\(\-60\)\) \+ Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( 16 ) AS col1, + 30 + + 24 * - - 60 + + + 38 AS col1 +---- +1508 +16 query I rowsort label-8751 SELECT ( - COUNT ( * ) ) * + + 22 * - 96 + 98 col0 @@ -45907,8 +46405,11 @@ SELECT ALL ( - + COUNT ( * ) ) + + - 76 + + 35 * 92 + + - 32 + - 2 - + 59 * + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 AS col0, + 64 AS col0 +---- +54 +64 query I rowsort label-8774 SELECT - CASE ( + CAST ( - + 9 AS INTEGER ) ) WHEN + - 21 THEN + 80 END @@ -46438,8 +46939,11 @@ SELECT ALL - 86 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 col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 29 AS col1, 29 col1 +---- +-29 +29 query I rowsort label-8877 SELECT + 54 / + 99 + + 86 @@ -46743,8 +47247,11 @@ SELECT ALL - COUNT ( * ) + - COUNT ( ALL - 4 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 160 # Datafusion - Expected - -2950 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \+ Int64\(64\) AS col0" at position 0 and "Int64\(\-59\) \* Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 96 + 64 AS col0, - 59 * + 50 AS col0 +---- +-2950 +160 query I rowsort label-8935 SELECT DISTINCT + + 21 + SUM ( ALL - CASE + 4 WHEN 26 THEN + + 23 - 58 - - 46 - - 56 - 88 END ) - - + 59 + - COUNT ( * ) * - 59 AS col0 @@ -46919,8 +47426,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(79\)\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 79 AS col0, 30 AS col0 +---- +-79 +30 query I rowsort label-8969 SELECT ALL 50 + - 90 + + 84 + - 65 + COUNT ( * ) * + + ( - 32 ) + + 64 * 43 AS col1 @@ -46930,8 +47440,11 @@ 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\(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\. +query II valuesort SELECT - COALESCE ( - + 19, - 53 ) + + 47 * - COUNT ( * ) + - 55 AS col1, 7 - + - 32 - SUM ( ALL - 28 ) + - 42 AS col1 +---- +-83 +25 query II rowsort label-8971 SELECT - - COUNT ( * ) AS col0, 78 * COUNT ( * ) + 26 @@ -47956,8 +48469,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -6389 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) \* Int64\(69\) \+ Int64\(96\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 94 * 69 + + + 96 + + COUNT ( * ) AS col2, 59 AS col2 +---- +-6389 +59 query I rowsort SELECT - - 47 * - 79 @@ -48284,8 +48800,11 @@ SELECT DISTINCT + + 54 + - 64 / + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- Int64\(\-57\)\)\) \+ \(\- Int64\(\-35\)\) / Int64\(\-22\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + SUM ( - - 57 ) + - - 35 / - 22 AS col0, + COUNT ( * ) AS col0 +---- +1 +56 query I rowsort label-9230 SELECT COUNT ( * ) + - + COUNT ( * ) AS col2 @@ -48310,8 +48829,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(28\) \* Int64\(0\) \- Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, 28 * + + 0 - 39 col0 +---- +-39 +1 query I rowsort label-9235 SELECT DISTINCT - 58 + + 2 + - COALESCE ( + ( + - ( - 23 ) ), 63 * - - COUNT ( * ) + - - 79 * + - 10, - - 19 * - ( - - 71 ) ) * + COUNT ( + + 15 ) AS col2 @@ -48425,8 +48947,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 81 * 6 AS col2, 72 / - 55 - + 91 * + COUNT ( * ) + - 72 AS col2 +---- +-164 +-486 query I rowsort label-9257 SELECT 83 * + 77 * - 83 + + 4 + - 91 + - + 50 + + 69 * + COUNT ( * ) AS col0 @@ -49760,8 +50285,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 32 + + + 54 AS col1, - COUNT ( * ) AS col1 +---- +-1 +86 query I rowsort SELECT ALL - - 38 AS col0 @@ -49781,8 +50309,11 @@ SELECT DISTINCT - + 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 100 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(19\) \+ \(\- count\(Int64\(62\)\)\) / \(\- Int64\(34\) \* Int64\(90\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 + COUNT ( * ) AS col2, 19 + - + COUNT ( 62 ) / - ( 34 * 90 ) col2 +---- +100 +19 query II rowsort SELECT 86 * - 79 AS col0, - 51 @@ -49983,8 +50514,11 @@ SELECT + - 47 - 25 * + 41 + - 41 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "\(\- nullif\(Int64\(\-67\), Int64\(87\) \- Int64\(50\)\)\) \+ Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 62 AS col1, - NULLIF ( - 67, 87 - 50 ) + 9 AS col1 +---- +62 +76 query I rowsort SELECT ALL + + ( + + 47 ) AS col2 @@ -50293,8 +50827,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(73\) \* \(\- Int64\(\-98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 61 * + 15 AS col0, COUNT ( * ) + 73 * - - 98 AS col0 +---- +-915 +7155 query I rowsort SELECT 96 + - + 82 @@ -50370,8 +50907,11 @@ SELECT MIN ( - 50 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(67\)\) AS col0" at position 0 and "Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + ( + 67 ) AS col0, - 27 AS col0 +---- +-27 +-67 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -50479,8 +51019,11 @@ SELECT ALL - 47 - + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col0" at position 0 and "Int64\(\-98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 16 AS col0, - 98 AS col0 +---- +-16 +-98 query I rowsort SELECT ALL + 75 * + - 85 @@ -51345,8 +51888,11 @@ SELECT ALL 29 * + + COALESCE ( + 53, + + 2, + + 51 * - - 19 * + 83 + - 80 + COUN # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-24\)\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - 24 ) AS col1, 51 AS col1 +---- +24 +51 query I rowsort label-9817 SELECT ALL - ( + COUNT ( * ) ) + + 82 * + COUNT ( - 76 ) @@ -51531,8 +52077,11 @@ 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\(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\. +query II valuesort SELECT + NULLIF ( + - COUNT ( * ), - 18 / 62 ) AS col1, 20 AS col1 +---- +-1 +20 query I rowsort label-9852 SELECT 99 * COUNT ( * ) * - 16 + + SUM ( + 96 ) @@ -51924,8 +52473,11 @@ SELECT 36 * - MAX ( - + 29 ) + 67 + - 50 + 92 / + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 129 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-72\)\) \- \(\- Int64\(57\)\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 72 - ( - + 57 ) AS col2, 84 AS col2 +---- +129 +84 query I rowsort SELECT DISTINCT - 46 AS col2 @@ -51974,8 +52526,11 @@ SELECT + + 89 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - -6208 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col2" at position 0 and "Int64\(\-97\) \* \(\- Int64\(\-64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 33 AS col2, - 97 * - - 64 AS col2 +---- +-33 +-6208 query I rowsort label-9936 SELECT + - 39 * - 7 * + + 62 + MIN ( DISTINCT + 29 ) - - - 7 / + 48 col1 diff --git a/data/sqlite/random/expr/slt_good_27.slt b/data/sqlite/random/expr/slt_good_27.slt index a86bf61..4bc1983 100644 --- a/data/sqlite/random/expr/slt_good_27.slt +++ b/data/sqlite/random/expr/slt_good_27.slt @@ -150,8 +150,12 @@ SELECT ALL - 5 + + COUNT ( * ) * + - 73 AS col1 # Datafusion - Expected - 52 # Datafusion - Expected - -5 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) / Int64\(81\) \+ Int64\(52\) AS col0" at position 0 and "Int64\(\-5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 38 / + 81 + + 52 AS col0, - 5 AS col0, + - 5 +---- +-5 +-5 +52 query I rowsort label-22 SELECT CASE - + 11 WHEN + CAST ( ( + 31 ) AS INTEGER ) / COUNT ( - + 66 ) THEN 51 * - + COUNT ( * ) ELSE - 52 END * - + COUNT ( * ) AS col1 @@ -211,8 +215,11 @@ SELECT - - 97 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(20\)\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 20 AS col2, 20 col2 +---- +-20 +20 query I rowsort SELECT ALL + 19 - 24 + - 52 @@ -606,8 +613,11 @@ SELECT ( - 49 ) 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\(\-43\) / Int64\(82\) AS col0" at position 0 and "Int64\(4\) \+ Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 43 / 82 AS col0, 4 + + 78 AS col0 +---- +0 +82 query I rowsort label-110 SELECT - 36 / - 75 * - 94 + 5 + - CAST ( NULL AS INTEGER ) @@ -795,8 +805,11 @@ SELECT ALL + 77 + + - 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ Int64\(\-78\) AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 4 + - 78 col1, 90 AS col1 +---- +-74 +90 query II rowsort SELECT ALL - ( - 44 ), + 51 AS col2 @@ -995,8 +1008,11 @@ SELECT 91 / + 61 + - NULLIF ( - 88, + - 95 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 91 AS col2, + 53 AS col2 +---- +-91 +53 query I rowsort SELECT 62 + - 47 col2 @@ -1216,8 +1232,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- coalesce\(Int64\(\-80\), Int64\(\-53\)\)\)\) AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - - COALESCE ( - 80, - 53 ) ) AS col2, 62 AS col2 +---- +-80 +62 query I rowsort SELECT - 28 * CASE - - 47 WHEN 67 * - 13 THEN NULL ELSE + ( + 4 ) END * + 73 @@ -1346,8 +1365,11 @@ SELECT - COUNT ( * ) - 57 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CASE Int64\(95\) WHEN Int64\(71\) \* Int64\(53\) \* coalesce\(\(\- Int64\(\-42\)\), Int64\(\-24\) / Int64\(85\), Int64\(5\)\) THEN \(\- coalesce\(Int64\(30\), Int64\(\-45\) \+ Int64\(\-82\), Int64\(19\)\)\) / \(\- Int64\(\-27\)\) \+ \(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(\-2\)\) WHEN \(\- Int64\(10\)\) \+ Int64\(41\) THEN Int64\(3\) \* Int64\(\-31\) \* Int64\(\-49\) ELSE NULL END\) AS Int32\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( - + CASE + 95 WHEN 71 * + 53 * + + COALESCE ( - - 42, - 24 / 85, + 5 ) THEN + - COALESCE ( + 30, + - 45 + - 82, + 19 ) / - - 27 + - CAST ( NULL AS INTEGER ) * - - 2 WHEN - + 10 + 41 THEN + 3 * + - 31 * - 49 ELSE NULL END AS INTEGER ) AS col1, + 15 AS col1 +---- +15 +NULL query I rowsort label-252 SELECT DISTINCT ( CAST ( + 85 AS INTEGER ) ) @@ -2255,8 +2277,11 @@ NULL # 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 "\(\- Int64\(9\)\) / \(\- Int64\(\-84\)\) \* \(\- \(\- \(\- coalesce\(Int64\(47\), Int64\(\-68\), Int64\(70\)\)\)\)\) AS col0" at position 0 and "Int64\(54\) \+ Int64\(21\) \- Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 9 / - - 84 * - ( - - COALESCE ( + + 47, - 68, 70 ) ) AS col0, 54 + + 21 - + 32 AS col0 +---- +0 +43 query I rowsort SELECT ALL + + 47 + - - 72 AS col2 @@ -2529,8 +2554,11 @@ SELECT ALL 13 * + 61 + COUNT ( - + 92 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col0" at position 0 and "CAST\(Int64\(37\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 61 AS col0, CAST ( + 37 AS INTEGER ) AS col0 +---- +-61 +37 query I rowsort label-480 SELECT COUNT ( DISTINCT - 6 ) AS col0 @@ -2540,8 +2568,11 @@ SELECT COUNT ( DISTINCT - 6 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 32 AS col0, 24 AS col0 +---- +-32 +24 query II rowsort SELECT + 39 AS col1, + 25 @@ -2819,8 +2850,11 @@ SELECT DISTINCT - 44 * 91 + - - 13 + 82 * + 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 215 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-15\)\) \+ \(\- Int64\(16\)\) AS col1" at position 0 and "Int64\(20\) \+ Int64\(86\) \+ Int64\(39\) \+ \(\- Int64\(\-70\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 15 + - + 16 AS col1, + 20 + 86 + 39 + - - 70 AS col1 +---- +-1 +215 query I rowsort SELECT ALL + 50 + + ( 93 ) @@ -3062,8 +3096,11 @@ 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\(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\. +query II valuesort SELECT 26 + + 58 AS col1, COUNT ( * ) * - ( - - COALESCE ( + 79, - - NULLIF ( - + COUNT ( * ), - 54 ), 57 ) ) col1 +---- +-79 +84 query I rowsort SELECT 32 * 6 * - ( - + 77 ) AS col2 @@ -3286,8 +3323,11 @@ SELECT 86 / - 16 + - 64 * + 19 AS col1 # 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 "Int64\(34\) \+ \(\- count\(\(\- Int64\(18\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 95 AS col1, 34 + - COUNT ( - ( 18 ) ) AS col1 +---- +33 +95 query I rowsort label-624 SELECT + MAX ( - 99 ) AS col1 @@ -3990,8 +4030,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - + 57 + - COUNT ( * ) + + 8 * - 46 col1, + 61 * + 79 + + CASE 36 WHEN 1 THEN NULL WHEN 97 THEN - - 26 END AS col1 +---- +-426 +NULL query I rowsort label-757 SELECT ALL COUNT ( - 97 ) + + - 55 @@ -4178,8 +4221,11 @@ 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\(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\. +query IR valuesort SELECT 49 AS col0, SUM ( CAST ( NULL AS FLOAT8 ) ) / 92 * + + COUNT ( * ) * 54 + + AVG ( - 75 ) * - 51 AS col0 +---- +49 +NULL query I rowsort label-793 SELECT + 7 + + CAST ( + + ( - + 93 ) AS INTEGER ) - - COUNT ( * ) col1 @@ -4199,8 +4245,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-42\) \* Int64\(13\) \+ \(\- CAST\(NULL AS Float64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - COUNT ( * ) AS col2, - 42 * + 13 + + - CAST ( NULL AS FLOAT8 ) AS col2 +---- +-1 +NULL query I rowsort SELECT 11 - + + 53 + - - 56 AS col2 @@ -4314,8 +4363,11 @@ SELECT ALL 17 * + 29 * + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 2880 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(60\), Int64\(\-23\), Int64\(43\)\)\) AS col2" at position 0 and "Int64\(48\) \* Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COALESCE ( + 60, + - 23, 43 ) AS col2, 48 * 60 AS col2 +---- +-60 +2880 query I rowsort label-819 SELECT COUNT ( * ) * - 58 @@ -4351,8 +4403,11 @@ SELECT 11, 11 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 171 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \+ \(\- Int64\(\-90\)\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 + - - 90 AS col0, + 48 AS col0 +---- +171 +48 query I rowsort SELECT 85 * - 45 * 47 AS col0 @@ -4367,8 +4422,11 @@ SELECT ALL + COUNT ( * ) * + 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col2" at position 0 and "Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 col2, 72 col2 +---- +24 +72 query I rowsort label-829 SELECT ALL - 52 + + + NULLIF ( 28, 13 ) * + + 34 * - NULLIF ( + 29, - 0 * - COUNT ( * ) ) + 4 col0 @@ -4430,8 +4488,12 @@ SELECT DISTINCT - NULLIF ( - + ( + + 32 ), 81 ) - 25 AS col2 # Datafusion - Expected - 41 # Datafusion - Expected - -38 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "Int64\(\-80\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 41 col2, - ( - 33 ) + - 71, - 80 AS col2 +---- +-38 +-80 +41 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -4605,8 +4667,11 @@ SELECT + 5 + SUM ( 17 ) - 85 - + - MIN ( - - 20 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2012 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \- \(\- \(\- CASE \(\- CAST\(NULL AS Int32\)\) WHEN Int64\(\-11\) THEN NULL WHEN Int64\(\-34\) THEN Int64\(81\) ELSE Int64\(\-15\) \+ Int64\(20\) \* \(\- CAST\(Int64\(96\) AS Int32\)\) END\)\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 77 - - - CASE - CAST ( NULL AS INTEGER ) WHEN - 11 THEN NULL WHEN - 34 THEN 81 ELSE - 15 + 20 * - ( + CAST ( + ( 96 ) AS INTEGER ) ) END AS col0, 35 AS col0 +---- +2012 +35 query I rowsort SELECT - 19 + 88 - - 64 @@ -5288,14 +5353,20 @@ SELECT DISTINCT + 5 AS col2, + COUNT ( * ) # 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\(\-97\)\) \* Int64\(48\) \+ \(\- CASE Int64\(\-41\) WHEN Int64\(48\) THEN Int64\(66\) END\) AS col1" at position 0 and "Int64\(41\) / \(\- Int64\(85\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 97 * + 48 + - CASE - 41 WHEN 48 THEN + 66 END AS col1, 41 / - ( 85 ) AS col1 +---- +0 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 AS col0, 5 AS col0 +---- +12 +5 query II rowsort SELECT ALL + + 77 AS col0, - 76 * - 58 AS col2 @@ -5529,8 +5600,11 @@ SELECT ALL + 27 / + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4351033 # Datafusion - Expected - -343038 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- sum\(Int64\(48\)\)\), Int64\(0\)\) \* \(\- \(\- min\(DISTINCT \(\- Int64\(\-23\)\)\)\)\) \* Int64\(\-73\) \* Int64\(54\) \+ Int64\(56\) \* Int64\(\-17\) \+ Int64\(17\) AS col2" at position 0 and "Int64\(32\) \+ sum\(Int64\(\-58\)\) \* Int64\(\-91\) \* \(\- Int64\(65\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( - SUM ( ALL + 48 ), 0 ) * - - MIN ( DISTINCT - - 23 ) * - 73 * 54 + 56 * - 17 + + 17 col2, + 32 + + SUM ( - 58 ) * - 91 * - + 65 AS col2 +---- +-343038 +4351033 query I rowsort label-1051 SELECT DISTINCT 95 * + - 5 / - COUNT ( * ) @@ -5670,8 +5744,11 @@ SELECT NULLIF ( 53, + 40 ) + - 43 * 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 24 AS col0, 78 AS col0 +---- +-24 +78 query I rowsort label-1078 SELECT + + COUNT ( * ) * - 57 * - - 52 + - + 63 @@ -6645,8 +6722,11 @@ 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\(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\. +query IR valuesort 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 +---- +-51 +10 query I rowsort SELECT ALL 77 * + 45 @@ -6794,8 +6874,11 @@ SELECT ALL + 0 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( COUNT ( * ) ) AS col2, - COUNT ( * ) * + + 74 AS col2 +---- +-74 +1 query I rowsort label-1297 SELECT ALL - 76 / - + 61 @@ -6885,8 +6968,11 @@ SELECT DISTINCT - COUNT ( * ) * - 48 + + - 27 * + 17 * 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 10 * COUNT ( * ) col0, 45 AS col0 +---- +10 +45 query I rowsort SELECT ALL + + 42 + - + 31 * + + 62 * + + 77 * - 63 AS col2 @@ -7370,8 +7456,11 @@ SELECT ALL + 89 * + NULLIF ( - 94, - 88 * + ( - 72 ) ) * - 20 * + COALESCE ( - 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \- Int64\(\-23\) AS col2" at position 0 and "\(\- Int64\(\-11\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 - + - 23 col2, - ( - 11 ) AS col2 +---- +11 +42 query I rowsort label-1408 SELECT + COUNT ( + - 64 ) * + - 69 * - 95 + 77 + + 18 @@ -7430,8 +7519,11 @@ SELECT DISTINCT 4 + - 86 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- \(\- CAST\(NULL AS Float64\)\)\), Int64\(\-84\) \- \(\- avg\(\(\- Int64\(\-21\)\)\)\)\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + NULLIF ( - - CAST ( NULL AS FLOAT8 ), + - 84 - - AVG ( - - 21 ) ) col1, + 54 AS col1 +---- +54 +NULL query I rowsort SELECT DISTINCT 73 * + - 51 + - + 68 @@ -7474,8 +7566,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - COUNT ( * ) ) AS col1, - 78 AS col1 +---- +-1 +-78 query I rowsort label-1427 SELECT ALL + - SUM ( DISTINCT - + 64 ) * CAST ( - 31 AS INTEGER ) + - + 83 - 9 AS col2 @@ -7560,8 +7655,11 @@ SELECT ALL - 13 * + 21 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 26390 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ Int64\(\-61\) \+ Int64\(65\) AS col1" at position 0 and "Int64\(7\) \* Int64\(\-65\) \* Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 58 + - 61 + + + 65 AS col1, + 7 * - 65 * + - 58 AS col1 +---- +26390 +62 query I rowsort SELECT DISTINCT - 4 + - 95 @@ -7824,8 +7922,11 @@ SELECT ALL - 64 * + MIN ( + 75 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 170 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \+ Int64\(98\) AS col2" at position 0 and "Int64\(\-27\) / \(\- Int64\(\-53\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 + + 98 col2, - 27 / - - 53 AS col2 +---- +0 +170 query I rowsort label-1494 SELECT 8 / + + 16 @@ -8208,8 +8309,11 @@ SELECT - COALESCE ( + + 23, + 56 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CASE Int64\(53\) WHEN Int64\(\-73\) \* Int64\(\-16\) \+ Int64\(81\) \+ Int64\(35\) \* Int64\(\-17\) THEN NULL WHEN Int64\(87\) THEN NULL WHEN \(\- nullif\(\(\- CASE nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-94\)\) WHEN Int64\(19\) THEN nullif\(Int64\(62\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) END\), Int64\(\-77\) \+ Int64\(\-71\) \* Int64\(51\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(64\) / Int64\(29\) \+ Int64\(39\) ELSE Int64\(92\) / Int64\(84\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1 +1 query I rowsort label-1568 SELECT ALL MAX ( - 96 ) / 11 * 58 * ( + 32 ) * + - CAST ( + 94 AS INTEGER ) - + 4 @@ -8372,8 +8476,11 @@ SELECT DISTINCT 85 * - 2 - + MAX ( DISTINCT 9 ) * 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CASE max\(DISTINCT Int64\(\-62\)\) WHEN \(\- nullif\(max\(Int64\(\-60\)\), Int64\(40\)\)\) \* \(\- Int64\(1\)\) THEN Int64\(80\) WHEN min\(DISTINCT CAST\(NULL AS Int32\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE NULL END \* Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1 +NULL query I rowsort label-1598 SELECT + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 @@ -9170,8 +9277,11 @@ SELECT - 63 + - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - -168 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "\(\- Int64\(\-6\)\) \* \(\- min\(\(\- CAST\(\(\- nullif\(Int64\(28\), Int64\(12\) / Int64\(92\) \+ \(\- Int64\(69\)\)\)\) AS Int32\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 col2, - ( - 6 ) * - + MIN ( ALL - CAST ( - NULLIF ( + 28, + 12 / 92 + - ( 69 ) ) AS INTEGER ) ) AS col2 +---- +-168 +7 query II rowsort label-1751 SELECT 42 AS col1, NULLIF ( - 25, - 84 + 7 * - + 23 / - COUNT ( * ) ) AS col2 @@ -9420,8 +9530,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(59\) / Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 - - + 23 + + 18 AS col0, COUNT ( * ) - 59 / + + 64 col0 +---- +1 +133 query I rowsort label-1799 SELECT 51 * + - COALESCE ( + + ( + - 24 ), - 68 / + - 23 ) - + 32 - + COUNT ( * ) - COALESCE ( 86, + - COUNT ( * ) * - 62 + + + NULLIF ( - + 41, + 94 ) ) @@ -9476,8 +9589,11 @@ SELECT ALL ( - 80 ) - + 21 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 153 # Datafusion - Expected - 232 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ Int64\(55\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-8\) \* Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 98 + 55 * + COUNT ( * ) AS col2, + COUNT ( * ) * - 8 * - 29 col2 +---- +153 +232 query I rowsort SELECT + 92 * - + 20 AS col1 @@ -9812,8 +9928,11 @@ SELECT ALL 3 * - 68 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col0" at position 0 and "\(\- Int64\(\-5\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 21 AS col0, ( - - 5 ) AS col0 +---- +21 +5 query I rowsort SELECT DISTINCT + 18 + - 99 AS col0 @@ -9964,8 +10083,11 @@ SELECT 36 + + 20 / 85 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 71 AS col0, + 55 AS col0 +---- +-71 +55 query I rowsort SELECT 42 * + 91 * - CASE 87 WHEN - 28 * + + 78 THEN - 28 WHEN - 75 THEN - - 17 END @@ -10141,8 +10263,11 @@ SELECT ALL 34 + - - ( - COUNT ( * ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ Int64\(55\) AS col1" at position 0 and "Int64\(\-65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 + + + 55 AS col1, - 65 AS col1 +---- +-65 +94 query I rowsort label-1939 SELECT + COALESCE ( - + 51, + MIN ( DISTINCT - ( - 66 ) ) * 61 ) AS col0 @@ -10192,8 +10317,11 @@ SELECT - + 16 + 22 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 260001 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* \(\- max\(\(\- Int64\(57\)\)\)\) \* \(\- Int64\(\-57\)\) \* count\(Int64\(97\)\) \+ Int64\(81\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 * - MAX ( - + 57 ) * - - 57 * + COUNT ( 97 ) + 81 col2, + 23 AS col2 +---- +23 +260001 query I rowsort SELECT ALL 84 + 36 col0 @@ -10347,8 +10475,11 @@ SELECT DISTINCT + 88 * - 63 + - 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 9 AS col1, - 60 AS col1 +---- +-60 +9 query I rowsort SELECT COALESCE ( + ( + 96 ), + - 55, + - 33 ) AS col2 @@ -10637,8 +10768,11 @@ SELECT ALL - 9 + + + 30 * 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8526 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \* \(\- nullif\(Int64\(87\), Int64\(59\)\)\) 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 II valuesort SELECT DISTINCT - 98 * - + NULLIF ( + + 87, + 59 ) col0, - MIN ( + - 58 ) AS col0 +---- +58 +8526 query II rowsort label-2033 SELECT - ( + ( ( + - 66 ) ) ) + + CASE - MAX ( DISTINCT + - 49 ) WHEN + 17 THEN - 2 END, 16 col0 @@ -10996,8 +11130,11 @@ SELECT + 21 + 58, - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col1" at position 0 and "CAST\(Int64\(\-73\) AS Int32\) \+ Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 90 AS col1, + CAST ( - 73 AS INTEGER ) + - 18 AS col1 +---- +-90 +-91 query I rowsort label-2101 SELECT DISTINCT + - CASE + 34 WHEN + 1 * + 37 + - - 61 THEN - 50 ELSE 94 END * - + 94 + - + SUM ( - 8 ) * + 82 + - 56 * - 6 * - + NULLIF ( + 32, + + 97 ) + + 30 AS col1 @@ -11098,8 +11235,11 @@ SELECT - 39 * - - ( + - 60 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -310 # Datafusion - Expected - 30 -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\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 31 * + 10 AS col0, ( + 30 ) AS col0 +---- +-310 +30 query I rowsort label-2121 SELECT - COUNT ( * ) + 36 @@ -11522,8 +11662,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(34\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + MIN ( + 34 ) AS col2, COUNT ( * ) AS col2 +---- +1 +34 query I rowsort SELECT - 34 * - - 69 + + 66 @@ -11813,8 +11956,11 @@ SELECT ALL + 72 * + - 34 + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 998 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-39\), \(\- CAST\(NULL AS Int32\)\), Int64\(91\)\) \* \(\- Int64\(26\)\) \+ Int64\(\-16\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( - 39, + - CAST ( NULL AS INTEGER ), + 91 ) * - + 26 + - 16 AS col1, + 76 col1 +---- +76 +998 query I rowsort SELECT ALL - 87 * 28 AS col2 @@ -12255,8 +12401,11 @@ SELECT ALL 57 / + - 76 - ( - 62 ) + + 33 + COUNT ( * ) * 20 / - + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 98 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 60 AS col2, 98 AS col2 +---- +60 +98 query I rowsort SELECT ALL 98 col2 @@ -12622,8 +12771,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 58 + + 43 + + 43 AS col2, - 9 + - COUNT ( * ) AS col2 +---- +-10 +28 query I rowsort label-2413 SELECT DISTINCT - COALESCE ( CAST ( + NULLIF ( + 50, - 35 ) AS INTEGER ), - - MAX ( - 4 ) ) @@ -12719,8 +12871,12 @@ 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\(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\. +query III valuesort SELECT ALL NULLIF ( + - 3, - MAX ( ALL - - 72 ) ) * + ( - COUNT ( * ) ) col2, 65, - + 51 col2 +---- +-51 +3 +65 query I rowsort SELECT ALL 46 col0 @@ -12861,8 +13017,11 @@ SELECT - 51 AS col2, 74 col0 # 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 "Int64\(\-48\) AS col2" at position 0 and "Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 48 AS col2, 32 AS col2 +---- +-48 +32 query II rowsort label-2459 SELECT ALL - COUNT ( * ) AS col0, + NULLIF ( + 66, + - ( 62 ) ) AS col1 @@ -12995,8 +13154,11 @@ 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\(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\. +query II valuesort SELECT + ( + - COUNT ( * ) ) col1, 84 * - 93 + - 6 + COUNT ( - 92 ) / - 11 + + - COUNT ( * ) AS col1 +---- +-1 +-7819 query I rowsort label-2484 SELECT - MAX ( ALL - 17 ) * - 27 AS col0 @@ -13109,8 +13271,11 @@ SELECT - 46 + - 30 + + 26 * ( + + 0 ) / 20 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col0" at position 0 and "Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 AS col0, 16 AS col0 +---- +16 +9 query I rowsort label-2506 SELECT ALL + 38 + + COUNT ( * ) @@ -13398,8 +13563,11 @@ SELECT 94 + 32, - 89 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 143408 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* Int64\(91\) \* \(\- Int64\(\-45\)\) \+ \(\- Int64\(\-83\)\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 * + 91 * - - 45 + + ( - - 83 ) AS col2, 68 AS col2 +---- +143408 +68 query I rowsort SELECT ALL - NULLIF ( + - 32, + 90 ) @@ -13879,8 +14047,11 @@ SELECT - 62 * NULLIF ( - - 36, - 89 * + 2 / - + 38 - COUNT ( * ) + + - 29 / - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \+ Int64\(74\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 43 + 74 AS col2, COUNT ( * ) AS col2 +---- +1 +31 query I rowsort label-2653 SELECT ( 42 ) / - - ( 90 ) @@ -14014,8 +14185,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 9 + - + COUNT ( * ) * + 88 * + 74 AS col1, ( - 59 ) + - COUNT ( * ) AS col1 +---- +-60 +-6521 query I rowsort SELECT ALL + 55 + + 60 AS col2 @@ -14036,8 +14210,11 @@ SELECT + 33 AS col0, 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-15\)\) AS col0" at position 0 and "Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 15 AS col0, - 25 AS col0 +---- +-25 +15 query II rowsort label-2683 SELECT + 19 * + CASE 64 WHEN + COUNT ( * ) THEN + MAX ( 87 ) ELSE + CAST ( NULL AS INTEGER ) + - - 62 END col2, 43 @@ -16541,14 +16718,20 @@ SELECT + + 19 + - 76 / + NULLIF ( + 4, + 16 ) - + 14 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 0 and "Int64\(\-86\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(20\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 96 AS col0, - 86 + + COUNT ( * ) * 20 / + COUNT ( * ) AS col0 +---- +-66 +96 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 89 AS col1, 19 AS col1 +---- +-89 +19 query I rowsort label-3168 SELECT + 74 / - 64 @@ -16619,8 +16802,11 @@ SELECT 30 * + - 35 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3441 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \* Int64\(37\) AS col0" at position 0 and "Int64\(\-44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 93 * + 37 AS col0, - 44 AS col0 +---- +-44 +3441 query I rowsort SELECT DISTINCT + 84 * + 56 * - 40 @@ -17166,8 +17352,11 @@ SELECT ALL - 35 + + - 66 # 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\(80\) \+ Int64\(\-28\) \+ Int64\(\-36\) AS col2" at position 0 and "Int64\(1\) / Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 80 + - 28 + - 36 AS col2, + 1 / + 43 AS col2 +---- +0 +16 query I rowsort label-3286 SELECT - 67 + + - COALESCE ( - COUNT ( * ), + - 30 ) * - + CAST ( + 81 AS INTEGER ) AS col0 @@ -17303,8 +17492,11 @@ 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\(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\. +query II valuesort SELECT 42 + - - 50 * + COUNT ( * ) * - - 83 * + 54 AS col0, 4 AS col0 +---- +224142 +4 query I rowsort SELECT ALL - 29 col2 @@ -17764,8 +17956,11 @@ SELECT + - 96 + - 54 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col1" at position 0 and "Int64\(11\) \* CAST\(NULL AS Int32\) \+ Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 50 col1, 11 * + CAST ( NULL AS INTEGER ) + + + 13 AS col1 +---- +50 +NULL query I rowsort label-3399 SELECT - - 46 * + - SUM ( + + 4 ) AS col1 @@ -18263,8 +18458,11 @@ SELECT DISTINCT - 26, 34 / - + 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 AS col1, + 35 col1 +---- +35 +39 query I rowsort label-3495 SELECT COUNT ( * ) + + 98 col1 @@ -18377,8 +18575,11 @@ SELECT DISTINCT 39 - 30 + + 41 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 146 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col0" at position 0 and "Int64\(92\) \+ Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 col0, 92 + 54 col0 +---- +146 +33 query I rowsort SELECT DISTINCT - - 30 - + 15 AS col1 @@ -19275,8 +19476,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 AS col1, 21 * + + COUNT ( * ) * 64 col1 +---- +1344 +24 query I rowsort label-3689 SELECT + 31 * CAST ( 67 AS INTEGER ) @@ -19497,8 +19701,11 @@ SELECT 83 * + 55 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \+ Int64\(59\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 4 + + 59 col2, COUNT ( * ) col2 +---- +1 +55 query I rowsort label-3731 SELECT 75 / - + 74 + 40 - - 87 + COUNT ( * ) * 82 * - 71 - + 9 - - 59 @@ -20184,8 +20391,11 @@ SELECT 72 * + - 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - -3348 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "Int64\(\-36\) \* CAST\(Int64\(93\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 col1, - 36 * + CAST ( 93 AS INTEGER ) AS col1 +---- +-3348 +38 query I rowsort SELECT ALL + 12 * - 57 AS col0 @@ -20217,8 +20427,11 @@ SELECT CAST ( + - ( 5 ) AS INTEGER ) * - - 16 * - - 8 + + COUNT ( * ), - ( NULLI # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 63 AS col0, 73 AS col0 +---- +-63 +73 query I rowsort label-3871 SELECT ALL 92 / + COUNT ( * ) AS col2 @@ -20816,8 +21029,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) - 30 + - - 79 * - 21 * + 89 AS col2, 86 col2 +---- +-147680 +86 query I rowsort SELECT 99 * + 8 @@ -20877,8 +21093,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(75\)\) / \(\- Int64\(82\)\) \- Int64\(45\) \+ Int64\(45\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( + + 75 ) / + - ( + 82 ) - 45 + 45 AS col1, 80 AS col1 +---- +0 +80 query I rowsort SELECT 68 * - 42 @@ -21119,8 +21338,11 @@ SELECT ALL + - NULLIF ( - ( + 56 ), + COUNT ( * ) * - 79 * + MAX ( 7 ) + - 19 + # 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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - 30 ) AS col1, - 18 AS col1 +---- +-18 +-30 query I rowsort SELECT - 91 * 81 - 98 AS col0 @@ -21156,8 +21378,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 87 AS col2, + 26 AS col2 +---- +-87 +26 query I rowsort label-4051 SELECT DISTINCT + - COUNT ( * ) * 13 @@ -21187,8 +21412,11 @@ SELECT + ( + - 14 ) * + 46 * + - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 101 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \+ Int64\(34\) AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 67 + 34 AS col0, 27 AS col0 +---- +101 +27 query I rowsort SELECT - 25 + 10 AS col1 @@ -21710,8 +21938,11 @@ SELECT + COUNT ( * ) / ( + + 12 ) * + 13 * 12 / + 58 + - 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1056 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* Int64\(64\) \+ \(\- Int64\(31\)\) \+ Int64\(63\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 16 * 64 + - + 31 + + 63 AS col1, 12 AS col1 +---- +1056 +12 query I rowsort SELECT 56 * + 21 @@ -21848,8 +22079,11 @@ SELECT ALL - ( - 5 ) / + + 32 + - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 72 AS col0 +---- +72 +NULL query I rowsort SELECT + - 28 AS col0 @@ -21892,8 +22126,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "Int64\(\-9\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 4 col2, - 9 + + COUNT ( * ) AS col2 +---- +-8 +4 query I rowsort label-4190 SELECT - ( 93 ) * - - CAST ( NULL AS INTEGER ) AS col0 @@ -22298,8 +22535,11 @@ SELECT ALL - MIN ( ALL - + ( + 95 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -399840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col0" at position 0 and "Int64\(21\) \* Int64\(\-14\) \* Int64\(85\) \* Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4 AS col0, + 21 * + - 14 * 85 * + 16 AS col0 +---- +-399840 +4 query I rowsort SELECT 60 * - 55 + - 98 AS col1 @@ -22451,8 +22691,12 @@ SELECT ALL - MAX ( DISTINCT + 42 ) # Datafusion - Expected - 110 # Datafusion - Expected - 23 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-42\)\) \+ Int64\(68\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - ( - 42 ) + + 68 AS col2, + 23 AS col2, 77 AS col1 +---- +110 +23 +77 query I rowsort SELECT DISTINCT CASE - 52 WHEN - 97 THEN - 23 * + ( - 51 ) END @@ -22721,8 +22965,11 @@ SELECT + ( - 97 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - -4260 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "Int64\(\-60\) \* Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 51 AS col2, - 60 * 71 AS col2 +---- +-4260 +51 query I rowsort label-4347 SELECT ALL + 59 / - 64 * 48 - 25 AS col2 @@ -23961,8 +24208,11 @@ SELECT ALL - COUNT ( * ) / - + COALESCE ( - 95, + 38 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \+ Int64\(\-12\) AS col1" at position 0 and "\(\- Int64\(86\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 2 + + - 12 AS col1, - ( 86 ) col1 +---- +-14 +-86 query I rowsort label-4586 SELECT ALL 82 * + + NULLIF ( + 4, ( + 15 ) * - COUNT ( * ) ) + COUNT ( ALL + 79 ) col2 @@ -24187,8 +24437,11 @@ SELECT ALL + 80 + + 72 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "Int64\(\-48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 65 AS col0, - 48 AS col0 +---- +-48 +65 query I rowsort SELECT ALL 78 + - + ( 70 ) AS col2 @@ -24243,8 +24496,11 @@ SELECT DISTINCT - 90 / + ( 43 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - -715 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col2" at position 0 and "Int64\(55\) \* \(\- Int64\(13\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 AS col2, 55 * - + 13 AS col2 +---- +-715 +39 query I rowsort SELECT 75 - 67 @@ -24482,8 +24738,11 @@ SELECT DISTINCT + 71 * - 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) \* CAST\(NULL AS Int32\) \- Int64\(13\) \- Int64\(\-51\) AS col2" at position 0 and "\(\- sum\(Int64\(\-38\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 13 * ( + CAST ( NULL AS INTEGER ) ) - + 13 - - 51 AS col2, - SUM ( ALL - 38 ) AS col2 +---- +38 +NULL query I rowsort SELECT ALL - - 86 + 47 * 35 + - 0 * 93 @@ -25762,8 +26021,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 1 + - COUNT ( * ) AS col1, 72 AS col1 +---- +0 +72 query I rowsort label-4933 SELECT 84 + + MAX ( - 76 ) @@ -26064,8 +26326,11 @@ SELECT + ( + NULLIF ( 96, - SUM ( ALL + - 42 ) ) ) * - 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 * COUNT ( * ) AS col1, 92 AS col1 +---- +-31 +92 query I rowsort label-4990 SELECT + 75 + + COUNT ( * ) * - 24 AS col1 @@ -26203,8 +26468,13 @@ SELECT 73 / + 18 + + + 5 - - + COUNT ( * ) + + 50 AS col2 # Datafusion - Expected - 87 # Datafusion - Expected - -65 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 1 and "Int64\(\-67\) AS col0" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIII valuesort SELECT + NULLIF ( - COUNT ( * ), + 10 ), 87 AS col0, + ( - 65 ) AS col1, - 67 AS col0 +---- +-1 +-65 +-67 +87 query I rowsort SELECT - 54 + - 96 AS col2 @@ -26268,8 +26538,11 @@ NULL # 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 "Int64\(64\) / \(\- \(\- Int64\(12\)\)\) AS col0" at position 0 and "Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 64 / + ( - - ( + 12 ) ) AS col0, - 73 AS col0 +---- +-73 +5 query I rowsort label-5028 SELECT + - 84 + - CAST ( - - 4 AS INTEGER ) / CASE + CAST ( NULL AS INTEGER ) WHEN ( ( + ( - 13 ) ) ) * 51 THEN NULL WHEN - MIN ( - 23 ) / - 11 THEN - 58 END / + 93 AS col0 @@ -26499,8 +26772,12 @@ SELECT + 62 + - - 89 # Datafusion - Expected - -103579 # Datafusion - Expected - -67 # Datafusion - Expected - 3225 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) \- Int64\(\-77\) \* \(\- Int64\(\-84\)\) \* Int64\(\-16\) AS col0" at position 0 and "sum\(Int64\(\-98\)\) \+ Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 91 - + - 77 * - - 84 * + - 16 AS col0, + SUM ( + - 98 ) + + + 31 AS col0, 43 * 75 + - COUNT ( * ) / - 31 +---- +-103579 +-67 +3225 query II rowsort SELECT - 92, 22 + 32 + - 59 AS col0 @@ -26609,8 +26886,11 @@ SELECT ALL - + MAX ( 80 ) # 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 col0" at position 0 and "Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 AS col0, + ( - 76 ) AS col0 +---- +-76 +77 query I rowsort label-5093 SELECT - - CASE - NULLIF ( + 2, 56 / - 66 * + ( - + CAST ( + + 25 AS INTEGER ) ) ) WHEN 69 * - 85 + COUNT ( * ) THEN - 85 WHEN 72 THEN NULL END * + 23 + 22 @@ -26771,8 +27051,11 @@ SELECT ALL COUNT ( * ) * - COUNT ( * ) * + ( + 98 ) + - 81 * + COUNT ( * ) AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col0" at position 0 and "Int64\(94\) \- Int64\(33\) / Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 29 AS col0, 94 - + 33 / - 90 AS col0 +---- +29 +94 query I rowsort SELECT - 89 * - + 68 @@ -28102,8 +28385,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 50 * + + 21 + - COUNT ( * ) AS col2, 5 col2 +---- +-1051 +5 query I rowsort SELECT - 63 + + 23 @@ -28614,8 +28900,11 @@ SELECT ALL + 97 * - 96 - - COALESCE ( + COALESCE ( + - COUNT ( * ), + + 76 ), + # Datafusion - Datafusion expected results: # Datafusion - Expected - 4566 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \+ \(\- Int64\(48\)\) \* Int64\(\-19\) \+ \(\- Int64\(\-59\)\) \- min\(Int64\(\-41\)\) \* Int64\(87\) AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 + - ( + + 48 ) * - 19 + + - ( - 59 ) - MIN ( - 41 ) * + + 87 col1, 40 AS col1 +---- +40 +4566 query II rowsort SELECT ALL - + 33 AS col1, - 7 @@ -29392,8 +29681,11 @@ SELECT ALL COALESCE ( + 3, + + NULLIF ( - 88, - 26 ) * 53 / 76 + - 39 ) * ( - CO # Datafusion - Datafusion expected results: # Datafusion - Expected - 329163 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \+ Int64\(53\) \+ Int64\(\-95\) \* \(\- Int64\(35\)\) \* Int64\(99\) AS col1" at position 0 and "Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 65 + + + 53 + - 95 * - + 35 * 99 col1, - 80 AS col1 +---- +-80 +329163 query I rowsort SELECT DISTINCT 10 + - 74 + - - 25 * 7 + 64 @@ -29532,8 +29824,11 @@ SELECT - NULLIF ( - + 36, - 54 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "\(\- sum\(Int64\(\-72\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 6 AS col2, - SUM ( - 72 ) + + + COUNT ( * ) AS col2 +---- +6 +73 query II rowsort SELECT ALL 58 AS col1, - 82 AS col2 @@ -29945,8 +30240,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(72\)\) \+ Int64\(20\) \* Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 69 * - - 26 * + 40 AS col1, COUNT ( * ) * - + 72 + + 20 * + 24 AS col1 +---- +408 +71760 query I rowsort SELECT 45 * - - 20 AS col1 @@ -30417,8 +30715,11 @@ SELECT ALL + 83 - + 1 / + + 72 - - - 36 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8706 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(30\) \+ Int64\(48\) \+ \(\- Int64\(\-30\)\) \+ \(\- Int64\(90\)\) \* nullif\(Int64\(86\), Int64\(81\)\) \+ Int64\(9\) \+ Int64\(27\) \* \(\- nullif\(Int64\(39\), CAST\(Int64\(89\) AS Float64\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - COUNT ( * ) / + 30 + + 48 + - - 30 + - + 90 * NULLIF ( + 86, 81 ) + + + 9 + + 27 * - NULLIF ( 39, + CAST ( + + 89 AS FLOAT8 ) ) AS col0, + CAST ( NULL AS INTEGER ) col0 +---- +-8706 +NULL query I rowsort SELECT - 47 + - 83 AS col2 @@ -31321,8 +31622,11 @@ 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\(1\)\) AS count\(\*\)\) \- Int64\(\-46\)\) \+ Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 AS col2, 79 + + COALESCE ( + 71, + ( - + COUNT ( * ) ) - - 46 ) + 51 AS col2 +---- +201 +66 query I rowsort SELECT 93 + - - 68 @@ -31347,8 +31651,11 @@ SELECT 73 * + MAX ( - 52 ) * + 42 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 col2, + ( + 94 ) AS col2 +---- +90 +94 query I rowsort SELECT ALL 58 * - - 24 * - ( + 44 ) @@ -31595,8 +31902,11 @@ SELECT - 82 - + + CASE COUNT ( * ) WHEN + 62 THEN NULL ELSE - ( - 10 ) + - 57 EN # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) / Int64\(6\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 45 / + 6 AS col1, 37 AS col1 +---- +-7 +37 query I rowsort SELECT ALL + 94 col2 @@ -31784,8 +32094,11 @@ SELECT + 92 + - - COUNT ( * ) + - 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 22 col2, - 29 AS col2 +---- +-29 +22 query II rowsort label-6078 SELECT ALL CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col2 @@ -32263,8 +32576,11 @@ SELECT DISTINCT - ( - + 37 ) * + COALESCE ( - 92, - 26, - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "Int64\(63\) \- Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 76 AS col2, + 63 - + 51 AS col2 +---- +12 +76 query I rowsort SELECT DISTINCT + ( 92 ) @@ -32448,8 +32764,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT CASE COUNT ( * ) WHEN + 50 THEN + - 32 ELSE - - COUNT ( * ) END AS col2, + 25 col2 +---- +1 +25 query I rowsort SELECT DISTINCT ( + 0 ) @@ -32535,8 +32854,11 @@ SELECT ALL 25 * - 10 + - 11 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5117 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* Int64\(36\) \+ Int64\(77\) \* Int64\(52\) \+ \(\- Int64\(0\)\) \- Int64\(87\) \+ Int64\(\-60\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 * + 36 + + + 77 * + 52 + - + 0 - + 87 + - 60 AS col2, COUNT ( * ) col2 +---- +1 +5117 query I rowsort SELECT ALL 83 - - 90 AS col2 @@ -32775,8 +33097,11 @@ SELECT COUNT ( * ) + + 5 * - + 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1649 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(97\) AS col2" at position 0 and "Int64\(39\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 * + 97 AS col2, 39 / + COUNT ( * ) AS col2 +---- +1649 +39 query I rowsort SELECT ALL 16 * 75 @@ -33461,8 +33786,11 @@ SELECT ALL - COUNT ( * ) * SUM ( - + 92 ) + - 78 + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 658 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \* Int64\(9\) AS col0" at position 0 and "Int64\(18\) \+ Int64\(32\) \* \(\- Int64\(\-20\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 8 * + 9 AS col0, 18 + 32 * - - 20 AS col0 +---- +-72 +658 query I rowsort SELECT + + 95 col1 @@ -33707,8 +34035,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 87 * - ( + - 84 ) * + + 15 AS col1, + 24 * - + COUNT ( * ) AS col1 +---- +-109620 +-24 query I rowsort label-6448 SELECT ALL + ( - 62 ) * + COUNT ( * ) AS col0 @@ -34634,8 +34965,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 3010 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "Int64\(35\) \* Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 col1, + 35 * 86 AS col1 +---- +3010 +60 query I rowsort SELECT 9 + - 13 AS col2 @@ -35227,8 +35561,12 @@ SELECT + + ( + + 86 ) # Datafusion - Expected - -43 # Datafusion - Expected - 31 # Datafusion - Expected - 4292 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col0" at position 1 and "min\(\(\- Int64\(\-74\)\)\) \* Int64\(58\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - 43, 31 AS col0, MIN ( - - 74 ) * + 58 col0 +---- +-43 +31 +4292 query I rowsort SELECT ALL + 79 * + - 88 @@ -35348,8 +35686,11 @@ SELECT + COUNT ( * ) * - 9 * + NULLIF ( + 36, + ( 1 ) + 2 * 81 ) + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-41\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( - 41 ) * COUNT ( * ) AS col0, - 46 col0 +---- +-41 +-46 query I rowsort label-6763 SELECT 78 * + MIN ( + NULLIF ( + 8, - 96 / + 64 + + - 50 ) ) @@ -35426,8 +35767,11 @@ SELECT DISTINCT 41 * 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - -50778 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "Int64\(93\) \* \(\- Int64\(\-78\)\) \* Int64\(\-7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 col1, 93 * - - 78 * - 7 AS col1 +---- +-50778 +76 query I rowsort label-6778 SELECT ( 50 ) * + 37 + - + SUM ( DISTINCT + + 4 ) @@ -36037,8 +36381,11 @@ SELECT 35 * + 50 * + 26 + - 96 * + - 31 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7165 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ Int64\(\-96\) \+ Int64\(77\) \* \(\- Int64\(\-94\)\) AS col1" at position 0 and "Int64\(60\) \+ Int64\(\-26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 23 + - 96 + 77 * - - 94 AS col1, + ( 60 ) + - 26 AS col1 +---- +34 +7165 query I rowsort SELECT DISTINCT 82 * 45 @@ -36058,8 +36405,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 355 # Datafusion - Expected - 784 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(71\) AS col2" at position 0 and "Int64\(8\) \* Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 * + 71 AS col2, 8 * + 98 AS col2 +---- +355 +784 query I rowsort label-6900 SELECT COUNT ( * ) * - COUNT ( * ) * - 77 @@ -36142,8 +36492,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 40 AS col2, - COUNT ( * ) AS col2 +---- +-1 +40 query I rowsort label-6916 SELECT ALL - + 28 + + MAX ( 40 ) AS col2 @@ -36673,8 +37026,11 @@ SELECT COUNT ( * ) * - NULLIF ( - + 0, - 12 ) + 76 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - -1848 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col0" at position 0 and "Int64\(84\) \* \(\- Int64\(22\)\) \* Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 11 AS col0, + 84 * - + 22 * + 1 AS col0 +---- +-11 +-1848 query I rowsort label-7018 SELECT 53 / CASE WHEN NOT - 21 IS NULL THEN + CASE CASE + 1 WHEN + 55 THEN - - 30 ELSE + 41 * 16 END WHEN - 90 * + + ( + 42 ) / - 60 THEN NULL WHEN - ( + 85 ) + 83 / + 6 THEN CASE COUNT ( * ) WHEN 34 + - 20 THEN 36 * 89 + + 25 * + ( 65 * 27 ) WHEN COUNT ( * ) + - 83 THEN + SUM ( + 23 ) ELSE 14 END ELSE + 89 * 49 END * + 75 ELSE - 32 * 92 END AS col2 @@ -36721,8 +37077,11 @@ SELECT 24 + - COUNT ( - 83 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \- \(\- count\(DISTINCT Int64\(39\)\)\) AS col2" at position 0 and "Int64\(\-37\) \+ \(\- Int64\(26\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 - + - COUNT ( DISTINCT 39 ) AS col2, - 37 + - + 26 AS col2 +---- +-63 +60 query I rowsort label-7027 SELECT CAST ( NULL AS INTEGER ) + + - 14 + - 39 * - ( + 89 ) AS col1 @@ -36784,8 +37143,11 @@ SELECT ALL 79 - + - 5 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 "Int64\(8\) \- Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 19 AS col2, 8 - + + 9 AS col2 +---- +-1 +-19 query I rowsort SELECT 1 + - - 93 col2 @@ -37864,8 +38226,11 @@ SELECT DISTINCT + 74 * + 29 AS col1, CAST ( - + 58 AS INTEGER ) # 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\) AS col1" at position 0 and "Int64\(\-89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 26 col1, - 89 col1 +---- +-89 +26 query I rowsort label-7248 SELECT + SUM ( ALL - 77 ) AS col0 @@ -37928,8 +38293,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), + COUNT ( * ) +---- +1 +1 query I rowsort SELECT + NULLIF ( - 38, - 14 ) + + 22 + + - 5 @@ -37955,8 +38323,11 @@ SELECT + 39 + + + 21 + + 9 * - 90 - 6 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "Int64\(46\) / CAST\(\(\- Int64\(43\)\) AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 AS col2, + 46 / + CAST ( - ( + 43 ) AS INTEGER ) + - COUNT ( * ) AS col2 +---- +-2 +85 query I rowsort SELECT DISTINCT + 78 * - + 13 @@ -37987,14 +38358,20 @@ SELECT - 89 - - 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -7029 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col1" at position 0 and "Int64\(71\) \* Int64\(\-99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 AS col1, 71 * - 99 AS col1 +---- +-7029 +28 # 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\(10\) WHEN Int64\(84\) THEN Int64\(33\) / Int64\(74\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 46 AS col2, CASE 10 WHEN + 84 THEN 33 / + + 74 ELSE NULL END col2 +---- +-46 +NULL query I rowsort label-7272 SELECT DISTINCT + SUM ( 55 ) @@ -38210,8 +38587,11 @@ SELECT 38 / 51 + - NULLIF ( - SUM ( - 57 ), - 56 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "Int64\(\-31\) \- Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 AS col0, - 31 - + + 1 AS col0 +---- +-32 +8 query I rowsort label-7313 SELECT 58 / - ( + 15 ) @@ -38547,8 +38927,11 @@ SELECT DISTINCT COALESCE ( + 62, 82, - 52 ) + 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \- Int64\(\-88\) \+ Int64\(\-52\) AS col0" at position 0 and "Int64\(\-67\) \+ Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 12 - - 88 + - 52 col0, - 67 + - 10 AS col0 +---- +-77 +48 query I rowsort SELECT + 74 + 55 - 70 - - 76 * - + 22 * - NULLIF ( - 11, - 54 ) * + 8 AS col1 @@ -38695,8 +39078,12 @@ SELECT ALL + COALESCE ( - + 9, CASE + 54 WHEN + 75 * 13 THEN - + 17 / + ( + 21 ) # Datafusion - Expected - 12 # Datafusion - Expected - NULL # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "CAST\(count\(\(\- Int64\(\-96\)\)\) AS Float64\) \+ CASE \(\- CAST\(Int64\(34\) AS Int32\)\) WHEN Int64\(\-11\) \+ Int64\(17\) \* Int64\(39\) \- Int64\(99\) THEN Int64\(\-34\) \- Int64\(10\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IRI valuesort SELECT 12 AS col2, + ( CAST ( COUNT ( - - 96 ) AS FLOAT8 ) ) + CASE - CAST ( 34 AS INTEGER ) WHEN - 11 + 17 * + 39 - 99 THEN - 34 - + 10 ELSE NULL END col2, + - ( - + 26 ) AS col0 +---- +12 +26 +NULL query I rowsort label-7406 SELECT ALL + ( + + 33 ) * + + COUNT ( * ) @@ -38732,8 +39119,11 @@ SELECT 32 + 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - -632 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* Int64\(\-79\) AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 8 * - 79 AS col1, 90 col1 +---- +-632 +90 query I rowsort label-7413 SELECT ALL - COUNT ( ( + + 44 ) ) @@ -38743,8 +39133,11 @@ SELECT ALL - COUNT ( ( + + 44 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 63 AS col2, 95 AS col2 +---- +-63 +95 query I rowsort label-7415 SELECT ALL 61 / 83 col1 @@ -38859,8 +39252,12 @@ SELECT + - ( + 4 ) AS col1 # Datafusion - Expected - -44 # Datafusion - Expected - 54 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col0" at position 1 and "\(\- \(\- \(\- Int64\(88\)\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 44 AS col1, 54 AS col0, - - ( - + 88 ) AS col0 +---- +-44 +-88 +54 query I rowsort label-7437 SELECT COUNT ( * ) + - 3 * COALESCE ( - 60, + 17 ) AS col0 @@ -38886,8 +39283,11 @@ SELECT ALL COUNT ( * ) AS col1, ( + 39 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 91 AS col1, 0 AS col1 +---- +0 +91 query I rowsort label-7442 SELECT - - MAX ( DISTINCT - 61 ) AS col0 @@ -39145,8 +39545,11 @@ 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\(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\. +query II valuesort SELECT - NULLIF ( - COUNT ( * ), + + COUNT ( * ) ) AS col0, - 65 * + 52 col0 +---- +-3380 +1 query II rowsort label-7492 SELECT + 26 + + MIN ( DISTINCT - 22 ) + - 71 AS col1, 42 @@ -39676,8 +40079,11 @@ SELECT 82, 59 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(41\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( + 41 ) AS col2, COUNT ( * ) AS col2 +---- +1 +41 query I rowsort SELECT ( - - 12 ) + + 48 * 84 + + - 85 * + + 58 AS col1 @@ -40059,8 +40465,11 @@ 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\(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\. +query II valuesort SELECT MAX ( - 70 ) * + MAX ( + - 86 ) * + CASE - 59 WHEN COUNT ( * ) THEN NULL ELSE + 42 END + + 49 * - 13 * - + 23 AS col1, + 96 AS col1 +---- +267491 +96 query I rowsort SELECT + 76 col2 @@ -40794,8 +41203,11 @@ SELECT 66 * 24, 31 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4981 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ Int64\(5\) \+ Int64\(81\) \* Int64\(\-62\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 + + 5 + 81 * - 62 - COUNT ( * ) AS col0, - 81 AS col0 +---- +-4981 +-81 query I rowsort label-7804 SELECT NULLIF ( - + 88, 53 ) + - MAX ( ALL 59 ) @@ -41412,8 +41824,11 @@ SELECT + 61 * 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -139 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(57\), Int64\(78\)\)\) \- Int64\(82\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( + 57, 78 ) - + ( 82 ) AS col2, + 69 AS col2 +---- +-139 +69 query II rowsort label-7922 SELECT - 77 / + COUNT ( * ) + + + 16, + 27 AS col2 @@ -41569,8 +41984,11 @@ SELECT DISTINCT - 62 / + - CASE CAST ( + + 67 AS INTEGER ) WHEN - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 30 AS col1, + 42 AS col1 +---- +30 +42 query I rowsort SELECT DISTINCT + 62 * + 55 @@ -42680,8 +43098,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-60\)\) AS col0" at position 0 and "Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 60 AS col0, - 27 AS col0 +---- +-27 +60 query II rowsort SELECT - 76, ( + + 0 ) * + 53 + + 72 - 74 col2 @@ -43042,8 +43463,11 @@ SELECT 60 / COUNT ( * ) * + 25 * - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -4486 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \+ Int64\(41\) \+ Int64\(90\) / \(\- Int64\(70\)\) AS col0" at position 0 and "Int64\(2\) \- \(\- count\(Int64\(68\)\)\) \* Int64\(66\) \* Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 + + 41 + 90 / + - ( + 70 ) AS col0, 2 - + - COUNT ( ALL + 68 ) * + 66 * ( - 68 ) col0 +---- +-4486 +74 query I rowsort label-8232 SELECT ALL + 37 / - 61 AS col1 @@ -44115,8 +44539,11 @@ SELECT ALL - 56 / - 89 # 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\(13\) AS col1" at position 0 and "Int64\(\-98\) \+ Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 13 AS col1, - 98 + + 7 AS col1 +---- +-91 +13 query I rowsort label-8442 SELECT + 90 + + - 30 * - CAST ( 5 AS INTEGER ) @@ -44566,8 +44993,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -3700 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "Int64\(50\) \* Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 68 ) AS col2, 50 * - 74 col2 +---- +-3700 +68 query II rowsort label-8529 SELECT + - COALESCE ( + + 4, + 56 ), 26 / 78 AS col1 @@ -44619,8 +45049,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -156 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \- Int64\(79\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 78 - 79 + COUNT ( * ) AS col1, + COUNT ( * ) + - 52 AS col1 +---- +-156 +-51 query II rowsort label-8539 SELECT - - 34 * 85, COUNT ( DISTINCT 14 ) * + 40 AS col0 @@ -44753,8 +45186,11 @@ SELECT + MAX ( - 9 ) * + + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) / Int64\(\-82\) / count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 99 / + - 82 / + COUNT ( * ) + + COUNT ( * ) AS col1, COUNT ( * ) * 30 AS col1 +---- +2 +30 query I rowsort label-8564 SELECT - - 9 * SUM ( DISTINCT + 69 ) * 17 + - + 22 * + 18 @@ -44806,8 +45242,11 @@ SELECT DISTINCT + 19 * - - 68 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 45 AS col1, + 65 col1 +---- +45 +65 query I rowsort label-8574 SELECT ALL 23 * - + SUM ( DISTINCT - 19 ) AS col1 @@ -45325,8 +45764,11 @@ SELECT - COUNT ( CAST ( NULL AS INTEGER ) ) + + 73 + 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col1" at position 0 and "Int64\(\-71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 81 AS col1, - 71 AS col1 +---- +-71 +81 query I rowsort label-8674 SELECT DISTINCT 68 * + NULLIF ( - + 52, + ( 77 ) ) + + - CASE + + 50 WHEN - MIN ( 95 ) THEN - - 46 * + - 89 + - ( 10 ) END col2 @@ -45370,8 +45812,11 @@ SELECT ALL - 83 * - 88 - - 87 * + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 80 * + COUNT ( * ) AS col1, 53 col1 +---- +53 +80 query I rowsort label-8682 SELECT ALL - 8 * - - 37 * - - CASE + CASE - 92 WHEN + 13 + - 48 THEN 14 * + + 3 ELSE - 25 END WHEN - 45 THEN + + COUNT ( * ) + + COUNT ( ALL 21 ) WHEN + 6 THEN COUNT ( ALL COALESCE ( 47, + 69 ) ) END * ( + 2 ) @@ -45522,8 +45967,11 @@ 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\(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\. +query II valuesort 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 +---- +-1 +85001374 query I rowsort label-8711 SELECT 13 * COALESCE ( 20, - 47 / - + 78 + - 79 ) AS col2 @@ -45564,8 +46012,11 @@ 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\(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\. +query II valuesort 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 +---- +16 +NULL query II rowsort SELECT ALL 67 AS col2, + 76 col1 @@ -46118,8 +46569,11 @@ 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\(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\. +query II valuesort SELECT - - 58 - COUNT ( * ) - - 81 AS col1, 53 AS col1 +---- +138 +53 query I rowsort label-8824 SELECT - - 52 * COUNT ( - + 44 ) + - COUNT ( * ) @@ -46385,8 +46839,11 @@ SELECT ALL - ( - ( - + MIN ( ALL - - 55 ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \- Int64\(63\) AS col1" at position 0 and "Int64\(48\) / max\(Int64\(\-7\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 65 - + 63 col1, 48 / MAX ( ALL ( - 7 ) ) AS col1 +---- +-6 +2 query I rowsort label-8875 SELECT ALL + COUNT ( * ) - - - 44 + - 91 AS col2 @@ -46411,8 +46868,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * - + COUNT ( * ) AS col1, 28 + 21 AS col1 +---- +-1 +49 query I rowsort label-8880 SELECT + ( + NULLIF ( + 26, COUNT ( * ) - + 86 ) ) @@ -48132,8 +48592,11 @@ SELECT - - 33 AS col1, - ( + - 44 ) + - 73 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 352 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "Int64\(88\) \* Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 58 AS col0, 88 * + + 4 AS col0 +---- +352 +58 query I rowsort label-9208 SELECT - + COALESCE ( - 86, + 31 * 66 / + - ( - - COUNT ( * ) ) ) - + 1 @@ -48237,8 +48700,12 @@ SELECT + 31 * COUNT ( 43 ) # Datafusion - Expected - 78 # Datafusion - Expected - 168 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "Int64\(86\) \+ Int64\(49\) \- Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + ( 78 ) AS col2, 86 + + 49 - - 33 AS col2, COUNT ( * ) + - + 89 +---- +-88 +168 +78 query I rowsort SELECT DISTINCT - 6 * + + 29 AS col1 @@ -48248,8 +48715,11 @@ SELECT DISTINCT - 6 * + + 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(84\) AS Int32\) AS col2" at position 0 and "Int64\(\-12\) \+ Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + 84 AS INTEGER ) AS col2, - 12 + + 98 AS col2 +---- +84 +86 query I rowsort label-9230 SELECT DISTINCT - COUNT ( * ) / 36 - 6 @@ -48970,8 +49440,11 @@ 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\(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\. +query II valuesort 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 +---- +NULL +NULL query I rowsort SELECT ALL 57 * - 60 @@ -49193,8 +49666,11 @@ SELECT 98 * - COUNT ( * ) * - + COUNT ( DISTINCT 14 ) * - + 83 * 0 * + 49 + 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col1" at position 0 and "Int64\(4\) \+ Int64\(11\) \+ Int64\(49\) \* Int64\(0\) \* Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 72 AS col1, + 4 + 11 + + ( 49 ) * + + 0 * + 94 AS col1 +---- +-72 +15 query I rowsort label-9410 SELECT ALL ( - - COUNT ( * ) ) + 40 AS col1 @@ -49254,8 +49730,11 @@ SELECT ALL 52 AS col1, + 96 * + - 79 - 28 * - 20 / 1 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 AS col2, ( + 68 ) AS col2 +---- +68 +70 query II rowsort label-9421 SELECT - 54 AS col2, + 80 + ( - COUNT ( * ) ) @@ -49313,8 +49792,12 @@ SELECT + + ( - NULLIF ( - + COUNT ( * ), 11 ) ) + - - 87 # Datafusion - Expected - -305 # Datafusion - Expected - 21 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(5\)\) \- Int64\(\-25\) \* Int64\(\-12\) AS col0" at position 0 and "Int64\(\-40\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + 5 - - 25 * - 12 AS col0, + 21, - 40 AS col0 +---- +-305 +-40 +21 query I rowsort SELECT ALL - + 88 - 73 AS col0 @@ -49488,8 +49971,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- CAST\(\(\- Int64\(\-4\)\) AS Int32\)\) AS Int32\)\) \* Int64\(23\) AS col0" at position 0 and "\(\- count\(Int64\(\-30\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( - + CAST ( - - 4 AS INTEGER ) AS INTEGER ) * + 23 AS col0, - COUNT ( - 30 ) col0 +---- +-1 +92 query I rowsort label-9465 SELECT DISTINCT CAST ( COALESCE ( + - 29, - - 80, NULLIF ( - CASE 63 WHEN 14 / + - 97 THEN + COUNT ( * ) / + - 87 END, - - 28 ) + - - 42 ) AS INTEGER ) AS col1 @@ -49679,8 +50165,11 @@ SELECT DISTINCT + 0 / + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5662 # Datafusion - Expected - 1886 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \* Int64\(\-69\) \+ Int64\(73\) AS col2" at position 0 and "Int64\(41\) \* Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 * - 69 + + 73 AS col2, ( + + 41 ) * + 46 AS col2 +---- +1886 +5662 query I rowsort SELECT 50 * - + 30 @@ -49892,8 +50381,11 @@ SELECT + 88 + + 45 * - 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, - 35 AS col1 +---- +-35 +1 query I rowsort label-9541 SELECT ( - - 32 ) / + - 21 @@ -49951,8 +50443,11 @@ NULL # 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 "Int64\(90\) AS col0" at position 0 and "Int64\(\-4\) \* Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 col0, - 4 * + + 54 AS col0 +---- +-216 +90 query II rowsort label-9552 SELECT DISTINCT COUNT ( * ) * 12, - 29 AS col0 @@ -50787,8 +51282,11 @@ SELECT ALL 55, ( + + 88 ) AS col2 # 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 "Int64\(10\) AS col1" at position 0 and "Int64\(51\) / Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 10 AS col1, + 51 / 53 AS col1 +---- +0 +10 query I rowsort label-9712 SELECT ( + SUM ( + + 33 ) ) @@ -50814,8 +51312,11 @@ SELECT + - 93 * 1 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 0 and "min\(Int64\(86\)\) \+ Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 35 AS col2, MIN ( + 86 ) + + 39 AS col2 +---- +125 +35 query II rowsort label-9717 SELECT ALL 26 / + + COUNT ( * ) * 1 AS col1, 94 @@ -51394,8 +51895,11 @@ 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\(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\. +query IR valuesort SELECT + SUM ( DISTINCT + - 25 ) AS col0, - CAST ( - NULLIF ( + 1, + COUNT ( * ) ) AS FLOAT8 ) + COUNT ( * ) * 23 AS col0 +---- +-25 +NULL query I rowsort SELECT ALL 74 * + 26 * + 94 * + 49 + - 90 + 73 AS col2 @@ -51970,8 +52474,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(\-12\) \* Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 76 / - + 45 AS col1, + 43 + - - ( - 92 ) - + COUNT ( * ) - - 12 * 26 col1 +---- +1 +262 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -52075,8 +52582,11 @@ SELECT + 15 + - 50 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "max\(Int64\(79\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 92 AS col1, + MAX ( + + 79 ) AS col1 +---- +79 +92 query I rowsort SELECT + 33 - 76 * - 19 AS col1 @@ -52262,8 +52772,11 @@ SELECT ALL + COUNT ( * ) / - 75 * + 6 AS col2, 3 * + 93 * 36 * - COUNT ( * ) * ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "min\(DISTINCT Int64\(2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 99 AS col2, MIN ( DISTINCT ( + 2 ) ) AS col2 +---- +2 +99 query I rowsort SELECT + ( 22 ) * - 23 diff --git a/data/sqlite/random/expr/slt_good_28.slt b/data/sqlite/random/expr/slt_good_28.slt index 4d81eca..75e0f5a 100644 --- a/data/sqlite/random/expr/slt_good_28.slt +++ b/data/sqlite/random/expr/slt_good_28.slt @@ -374,8 +374,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) / Int64\(\-16\) \+ Int64\(93\) AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 / - 16 + 93 AS col2, 91 AS col2 +---- +91 +92 query I rowsort label-65 SELECT DISTINCT - 15 * + MIN ( 8 ) * - 80 @@ -406,8 +409,12 @@ SELECT 6 / COALESCE ( - MAX ( + 82 ), + 45 * 23 * - - 38, + + 92 + + + 41 ) AS c # Datafusion - Expected - 0 # Datafusion - Expected - -1450 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \* \(\- Int64\(\-58\)\) AS col0" at position 1 and "Int64\(\-54\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 70 / - + 77 AS col1, - 25 * + ( - - 58 ) AS col0, - 54 AS col0 +---- +-1450 +-54 +0 query I rowsort SELECT + 10 * + - 34 - - 31 AS col2 @@ -427,8 +434,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "min\(Int64\(8\)\) \+ Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, MIN ( + + 8 ) + - 29 AS col0 +---- +-21 +NULL query I rowsort label-75 SELECT MAX ( 38 ) AS col1 @@ -623,8 +633,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 49 AS col2, 52 AS col2 +---- +49 +52 query I rowsort SELECT - + 14 * - 7 @@ -775,8 +788,11 @@ SELECT + 47 * + COALESCE ( + + 75, + 5 * - - 31 * 35 ) * + 26 + + - 59 * + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 109 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(4\)\) / Int64\(44\) AS col2" at position 0 and "Int64\(26\) \+ Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 4 / 44 AS col2, + 26 + + + 83 AS col2 +---- +0 +109 query I rowsort SELECT + 69 - + 60 + - 19 AS col2 @@ -837,8 +853,11 @@ SELECT 31 - - 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col0" at position 0 and "Int64\(32\) \+ Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 AS col0, 32 + 38 AS col0 +---- +21 +70 query I rowsort label-154 SELECT ALL + ( + + 36 ) / + + 72 col0 @@ -1138,8 +1157,11 @@ SELECT DISTINCT 80 + 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 AS col2, + 97 AS col2 +---- +16 +97 query I rowsort label-210 SELECT ALL 92 - - + ( CAST ( - NULLIF ( - 22, 50 + + + 12 + + 99 / 72 ) AS INTEGER ) ) * 36 AS col0 @@ -1382,8 +1404,11 @@ SELECT DISTINCT ( + COUNT ( * ) ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 702 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "coalesce\(Int64\(13\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-8\) \* \(\- Int64\(\-22\)\) \+ Int64\(\-84\) \+ Int64\(30\) / Int64\(72\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(36\) \* Int64\(37\) \- Int64\(43\) \* Int64\(97\)\) \* Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col1, COALESCE ( ( 13 ), COUNT ( * ) * - 8 * - - 22 + - 84 + + 30 / 72 + COUNT ( * ) * + + 36 * 37 - 43 * 97 ) * 54 AS col1 +---- +702 +NULL query I rowsort label-257 SELECT DISTINCT CAST ( + 53 AS INTEGER ) AS col1 @@ -1440,8 +1465,11 @@ SELECT ALL 23 + + 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4337 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* Int64\(\-62\) \+ Int64\(65\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 71 * + - 62 + + 65 AS col1, 69 AS col1 +---- +-4337 +69 query I rowsort SELECT + 13 col0 @@ -2098,8 +2126,11 @@ SELECT - 11 + + 6 / NULLIF ( - 28, - 1 * - 10 * - - 68 * + 45 * ( + NULLIF ( 51, # Datafusion - Datafusion expected results: # Datafusion - Expected - 26568 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(82\)\) \* Int64\(6\) \* Int64\(54\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( + 82 ) * + 6 * + ( 54 ) AS col1, + COUNT ( * ) col1 +---- +1 +26568 query I rowsort SELECT 0 * 91 @@ -2199,8 +2230,11 @@ SELECT 99 col0 # 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 col2" at position 0 and "Int64\(\-92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 29 AS col2, - 92 AS col2 +---- +-92 +29 query I rowsort SELECT ALL 44 + - 79 + - 36 @@ -2263,8 +2297,11 @@ SELECT DISTINCT - 92 - CASE - 62 WHEN + 20 THEN NULL WHEN + 45 THEN - 4 * 97 ELS # 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 "Int64\(54\) AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 54 AS col2, 65 AS col2 +---- +54 +65 query I rowsort SELECT 97 + + CASE - - 46 WHEN + 31 + + 89 THEN NULL WHEN - 48 - 90 THEN - + 14 WHEN - 36 * + 33 THEN 7 END @@ -2316,8 +2353,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 81 AS col2, 31 * + 28 * + ( - ( - COUNT ( * ) ) ) AS col2 +---- +-81 +868 query I rowsort SELECT 56 * - 11 col1 @@ -2455,8 +2495,11 @@ SELECT + 49 + - 96 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4180 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* \(\- Int64\(\-76\)\) AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 55 * - - 76 AS col1, 32 AS col1 +---- +32 +4180 query I rowsort SELECT + 25 + - 48 @@ -2601,8 +2644,11 @@ SELECT ALL - 32 * - - COUNT ( * ) - 45 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 4118 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "\(\- min\(DISTINCT nullif\(Int64\(71\), \(\- \(\- nullif\(\(\- Int64\(\-98\)\), Int64\(\-48\)\)\)\) \* \(\- Int64\(3\)\) \* Int64\(7\)\)\)\) \* Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 17 AS col1, - MIN ( DISTINCT + NULLIF ( + 71, - ( + - NULLIF ( - - 98, + ( - 48 ) ) ) * - + 3 * + 7 ) ) * - 58 AS col1 +---- +17 +4118 query I rowsort label-489 SELECT ALL + 82 / + + SUM ( DISTINCT - - 19 ) AS col0 @@ -3412,8 +3458,11 @@ SELECT - 42 + + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(98\) AS Int32\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( + + 98 AS INTEGER ) AS col0, 90 AS col0 +---- +90 +98 query I rowsort SELECT DISTINCT 3 + + + 91 * 42 @@ -3846,8 +3895,11 @@ SELECT DISTINCT 80 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 "Int64\(83\) AS col1" at position 0 and "Int64\(69\) \- Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 83 AS col1, 69 - + 76 AS col1 +---- +-7 +83 query I rowsort SELECT DISTINCT 91 col1 @@ -3857,8 +3909,11 @@ SELECT DISTINCT 91 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 42 AS col0, + 30 AS col0 +---- +30 +42 query I rowsort SELECT 50 - 88 + + - 56 AS col0 @@ -3888,8 +3943,11 @@ SELECT - MAX ( DISTINCT - - 89 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col1" at position 0 and "Int64\(70\) / Int64\(46\) \+ \(\- Int64\(\-67\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 53 AS col1, 70 / 46 + - - 67 AS col1 +---- +-53 +68 query I rowsort label-734 SELECT 44 / - 20 @@ -3983,8 +4041,11 @@ SELECT ALL - 39 * - 0 + - 14 * + + 1 * + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-35\) \+ \(\- \(\- Int64\(49\)\)\) \- \(\- CASE \(\- Int64\(64\)\) WHEN Int64\(\-75\) \+ Int64\(4\) \* \(\- coalesce\(Int64\(60\), Int64\(96\)\)\) THEN CAST\(CASE \(\- Int64\(32\)\) WHEN Int64\(55\) \* Int64\(2\) \* Int64\(40\) THEN Int64\(22\) ELSE NULL END AS Int32\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(44\) THEN NULL ELSE NULL END\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- \(\- \(\- Int64\(\-7\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-7 +NULL query I rowsort SELECT ALL - 74 * - 63 + - 79 AS col0 @@ -4042,8 +4103,11 @@ SELECT - 68 * 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4085 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* Int64\(\-95\) AS col2" at position 0 and "Int64\(\-4\) \* Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 43 * - 95 AS col2, - 4 * 3 col2 +---- +-12 +-4085 query I rowsort label-762 SELECT - MAX ( DISTINCT - 96 ) @@ -4058,8 +4122,11 @@ SELECT DISTINCT ( - 87 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1862 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(38\) AS col1" at position 0 and "Int64\(59\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 49 * 38 AS col1, 59 * COUNT ( * ) col1 +---- +1862 +59 query I rowsort label-765 SELECT + COUNT ( * ) * 16 * + 41 * COUNT ( * ) col2 @@ -4121,8 +4188,11 @@ 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\(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\. +query II valuesort 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 +---- +-13 +NULL query I rowsort SELECT DISTINCT - ( - + 11 ) * + + 99 + + 90 AS col1 @@ -4280,8 +4350,11 @@ SELECT ALL 80 + + + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - -3654 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \+ CAST\(Int64\(86\) AS Int32\) AS col1" at position 0 and "Int64\(\-42\) \* Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 50 + CAST ( + 86 AS INTEGER ) AS col1, - 42 * + 87 AS col1 +---- +-3654 +36 query I rowsort SELECT ALL 20 + + 3 @@ -4335,8 +4408,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 27 - + 36 * - + 69 AS col2, + 88 + - COUNT ( * ) AS col2 +---- +2457 +87 query I rowsort SELECT ALL - + 5 AS col0 @@ -4515,8 +4591,11 @@ SELECT COUNT ( * ) * + 82 - 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2022 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* Int64\(\-50\) \+ Int64\(28\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 * - 50 + ( + 28 ) AS col1, 21 AS col1 +---- +-2022 +21 query I rowsort label-850 SELECT CASE + 89 WHEN + 68 THEN - - COUNT ( * ) / - + 6 * 99 + + 71 + CAST ( NULL AS INTEGER ) * 28 END AS col2 @@ -4585,8 +4664,11 @@ SELECT + 49 * 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(91\)\) \+ Int64\(\-64\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( + + 91 ) + - 64 AS col1, 7 AS col1 +---- +27 +7 query I rowsort SELECT ALL + ( - - ( - ( + + 8 ) ) ) AS col2 @@ -5146,8 +5228,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(79\)\) \* Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 76 col1, COALESCE ( + - 63, + 27 + - COALESCE ( - 65, 61 + ( + 22 + COUNT ( 11 ) / + 76 ) ), + COUNT ( * ) - 79 ) * - 35 AS col1 +---- +2205 +76 query II rowsort SELECT 78 AS col0, 64 @@ -5895,8 +5980,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, + 99 AS col1 +---- +1 +99 query I rowsort SELECT + 7 * + + 81 + - 50 + - 37 + - + 3 @@ -5906,8 +5994,11 @@ SELECT + 7 * + + 81 + - 50 + - 37 + - + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -180 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(\-60\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* min\(Int64\(\-17\)\) \+ Int64\(\-84\) \+ Int64\(10\) \* Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 3 * - 60 col1, + CAST ( NULL AS INTEGER ) * + MIN ( - 17 ) + - 84 + 10 * + 55 col1 +---- +-180 +NULL query I rowsort label-1121 SELECT + COUNT ( * ) * 12 + - 53 col0 @@ -5984,8 +6075,11 @@ SELECT ALL COUNT ( + 44 ) AS col0, - 37 AS 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\(Int64\(54\)\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( ALL 54 ) AS col2, 55 AS col2 +---- +1 +55 query I rowsort label-1135 SELECT DISTINCT - COUNT ( DISTINCT - - 8 ) * + CAST ( NULL AS INTEGER ) - + 17 + + - 95 + + 49 @@ -6066,8 +6160,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 47 * - + COUNT ( * ) AS col1, + 6 AS col1 +---- +47 +6 query II rowsort label-1151 SELECT + 31 + + - COUNT ( * ) col2, 74 + 48 + 60 + 91 @@ -6433,8 +6530,11 @@ SELECT ALL - CAST ( - 15 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -108 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) \+ Int64\(\-39\) AS col2" at position 0 and "Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 69 + - 39 AS col2, 76 AS col2 +---- +-108 +76 query I rowsort label-1221 SELECT DISTINCT + 6 / + ( - 99 ) AS col0 @@ -6499,8 +6599,11 @@ SELECT ALL - ( + 8 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 41 -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\(\-61\)\) WHEN Int64\(\-92\) THEN Int64\(9\) ELSE max\(Int64\(41\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 45 AS col1, CASE - - 61 WHEN - 92 THEN 9 ELSE + MAX ( + 41 ) END AS col1 +---- +41 +45 query I rowsort SELECT 22 * + 25 AS col2 @@ -6976,8 +7079,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(35\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 1 ) AS col1, NULLIF ( ( 24 ), COUNT ( * ) + + 35 ) AS col1 +---- +-1 +24 query I rowsort SELECT + 62 + + ( 70 ) * - + 1 + 49 AS col0 @@ -7169,14 +7275,20 @@ SELECT NULLIF ( 18, + - CAST ( - CASE - SUM ( ALL + 77 ) WHEN + + 87 THEN + 86 / # 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 "Int64\(62\) / \(\- min\(Int64\(46\)\)\) AS col0" at position 0 and "nullif\(Int64\(79\), Int64\(\-8\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 / - + MIN ( ALL + 46 ) AS col0, NULLIF ( + 79, - 8 ) AS col0 +---- +-1 +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\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, - COUNT ( * ) col1 +---- +-1 +-1 query I rowsort label-1364 SELECT ALL COUNT ( * ) * + 31 @@ -7610,8 +7722,11 @@ SELECT + 77 * 64 AS col2, - 89 * - 71 * + + 94 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) AS col1, - COUNT ( * ) AS col1 +---- +-1 +1 query I rowsort label-1448 SELECT - 65 - - + 18 / CASE NULLIF ( + - 27, 90 ) WHEN + MIN ( + + CAST ( NULL AS FLOAT8 ) ) * COUNT ( * ) - - - 26 THEN + 61 * + CAST ( 91 AS INTEGER ) + - 9 + + NULLIF ( 92, + 70 ) ELSE NULL END AS col1 @@ -7647,8 +7762,11 @@ SELECT + 98 * - 66 + + 88 + 37 - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(76\) AS col0" at position 0 and "Int64\(\-94\) \+ Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) * 76 AS col0, - 94 + + 51 AS col0 +---- +-43 +NULL query I rowsort SELECT ALL 29 * - 42 @@ -7941,8 +8059,11 @@ SELECT DISTINCT - - 72 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - -2184 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-42\) \* \(\- CAST\(\(\- max\(DISTINCT Int64\(52\)\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 47 + + COUNT ( * ) AS col2, - 42 * - CAST ( + - MAX ( DISTINCT + 52 ) AS INTEGER ) col2 +---- +-2184 +-46 query I rowsort label-1511 SELECT DISTINCT 16 * 7 * + 82 * - COUNT ( * ) - 54 / 79 @@ -7993,8 +8114,11 @@ SELECT DISTINCT 89 * + - MIN ( DISTINCT + 47 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -4116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col1" at position 0 and "Int64\(84\) \* \(\- Int64\(49\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 AS col1, + 84 * - + 49 AS col1 +---- +-4116 +85 query I rowsort label-1521 SELECT NULLIF ( COUNT ( * ), 69 + - 86 + - 21 ) + COUNT ( 67 ) AS col1 @@ -8118,8 +8242,11 @@ SELECT 21 - + COUNT ( + + 55 ) col1, - 33 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "coalesce\(Int64\(\-83\), Int64\(\-42\), Int64\(\-39\)\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-75\) \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 AS col1, + COALESCE ( - 83, - 42, - 39 ) * + COUNT ( * ) / - 75 + + CAST ( NULL AS INTEGER ) AS col1 +---- +64 +NULL query I rowsort label-1544 SELECT ALL - + NULLIF ( - + COUNT ( * ), + 7 ) @@ -8416,8 +8543,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 83 + + 76 + + 56 + - 26 / - 78 + COUNT ( * ) + - + 51 * - + COUNT ( * ) * + 7 + 76 AS col1, + 59 AS col1 +---- +483 +59 query I rowsort SELECT ALL 21 + 1 AS col0 @@ -8513,8 +8643,11 @@ SELECT ALL - 87 - + 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 102258 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col0" at position 0 and "Int64\(26\) \* Int64\(69\) \* Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 86 AS col0, 26 * + + 69 * 57 AS col0 +---- +-86 +102258 query II rowsort label-1619 SELECT 87 AS col2, 0 / - - 46 @@ -9161,8 +9294,11 @@ SELECT + COUNT ( 66 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) / CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-77\)\) \- \(\- Int64\(99\)\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 80 / + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - - 77 - - + 99 AS col0, 95 AS col0 +---- +95 +NULL query I rowsort SELECT 1 + + 6 col1 @@ -9747,8 +9883,11 @@ SELECT - 0 * - 6 + 36 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(4\) / Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 98 * + COUNT ( * ) AS col0, + 4 / + 42 AS col0 +---- +-98 +0 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -9825,8 +9964,11 @@ SELECT + 13, ( + 39 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col2, + 13 AS col2 +---- +13 +NULL query I rowsort SELECT ALL - 46 + + 56 AS col2 @@ -10211,8 +10353,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* Int64\(80\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(91\) \- Int64\(89\) \+ Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 18 * + 80 + CAST ( NULL AS INTEGER ) AS col2, + 91 - + 89 + 7 AS col2 +---- +9 +NULL query I rowsort label-1942 SELECT + COUNT ( DISTINCT + 31 ) AS col1 @@ -10389,14 +10534,20 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 38 * 7 / ( + 76 ) * 64 - - + COALESCE ( 11, - ( 84 ) + - 34 ) * - COUNT ( * ) col2, 3 + - 11 * + 39 * - COUNT ( * ) AS col2 +---- +-203 +432 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(62\)\) AS col1" at position 0 and "\(\- nullif\(Int64\(\-94\), Int64\(96\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 62 AS col1, - NULLIF ( - 94, 96 ) AS col1 +---- +-62 +94 query I rowsort SELECT ALL - - ( - 72 ) @@ -10465,8 +10616,12 @@ SELECT ALL + 74 * 52 * + 8 AS col2 # Datafusion - Expected - 111 # Datafusion - Expected - -15 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \- \(\- Int64\(73\)\) AS col0" at position 0 and "Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 38 - - + 73 AS col0, - 15 AS col0, + 85 +---- +-15 +111 +85 query I rowsort label-1990 SELECT 38 + - 58 * + - 98 + CAST ( NULL AS INTEGER ) * + SUM ( - 16 ) * + 24 + - + COUNT ( * ) AS col2 @@ -10632,8 +10787,11 @@ SELECT + NULLIF ( CASE - + 83 WHEN - 3 THEN + CAST ( NULL AS INTEGER ) + 46 - - # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 83 AS col0, + COUNT ( * ) col0 +---- +-83 +1 query I rowsort label-2022 SELECT DISTINCT ( + 86 ) / - COUNT ( * ) @@ -10999,8 +11157,11 @@ SELECT ALL ( + + COUNT ( * ) ) + - 63 + + - 75 * MAX ( DISTINCT 1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - -1372 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(55\)\) AS col0" at position 0 and "CAST\(Int64\(98\) AS Int32\) \* Int64\(\-14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 55 AS col0, CAST ( + 98 AS INTEGER ) * + - 14 AS col0 +---- +-1372 +-55 query I rowsort label-2093 SELECT ALL - CAST ( NULLIF ( + 25, - 27 ) AS INTEGER ) + - 93 + + - ( + 19 ) * CAST ( 62 AS INTEGER ) * - - 3 + - CAST ( NULL AS INTEGER ) + + + 39 @@ -11094,8 +11255,11 @@ SELECT DISTINCT + 93 / - - 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 99 AS col1, 60 AS col1 +---- +-99 +60 query I rowsort label-2111 SELECT - 41 * - + 6 * - 61 + + NULLIF ( - + CASE + ( - + 45 ) WHEN - 54 * + 76 THEN 80 + 45 - + 58 + - COUNT ( * ) * - 31 + - 85 * 68 ELSE NULL END, - 33 - + 85 ) AS col2 @@ -11511,8 +11675,11 @@ SELECT CAST ( - + 99 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 7227 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col1" at position 0 and "Int64\(99\) \* Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 84 AS col1, 99 * 73 AS col1 +---- +-84 +7227 query I rowsort label-2191 SELECT - 27 * 13 * - - COUNT ( * ) AS col2 @@ -11890,8 +12057,11 @@ SELECT 82 * + ( + 26 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 148 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* Int64\(18\) / \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(67\) \+ \(\- Int64\(\-81\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 * + 18 / - + CAST ( NULL AS INTEGER ) AS col0, 67 + - - 81 AS col0 +---- +148 +NULL query II rowsort label-2265 SELECT 89 - - ( - - 14 ), ( + + CAST ( SUM ( ALL + ( - 74 ) ) AS INTEGER ) ) AS col2 @@ -12203,8 +12373,12 @@ SELECT - 73 AS col0, 7 - + 26 AS col1 # Datafusion - Expected - 84 # Datafusion - Expected - 0 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) / \(\- Int64\(\-76\)\) AS col2" at position 1 and "Int64\(2\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 84, 66 / + ( - - 76 ) col2, + + 2 AS col2 +---- +0 +2 +84 query I rowsort label-2324 SELECT ALL + COUNT ( * ) + - - 39 * COUNT ( * ) * - 93 + - + 12 + + - 67 + 33 + - 3 * COUNT ( * ) * + - 98 @@ -12480,8 +12654,11 @@ SELECT 58 + - 99 + 30 * + COUNT ( * ) * CASE + - 25 WHEN - 46 + + 68 THEN 59 ELS # 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\(39\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 AS col2, + 24 col2 +---- +24 +39 query I rowsort label-2378 SELECT + 57 * - COUNT ( * ) + + + 22 col0 @@ -12553,8 +12730,11 @@ SELECT ALL + 27 * - 19 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 119 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col2" at position 0 and "nullif\(sum\(Int64\(25\)\), min\(Int64\(80\)\)\) \+ Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 AS col2, + NULLIF ( + SUM ( 25 ), MIN ( 80 ) ) + + 94 AS col2 +---- +119 +27 query I rowsort label-2392 SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) AS col1 @@ -13509,8 +13689,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(15\)\) \* Int64\(15\) \+ Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 80 AS col2, + COUNT ( * ) * - + 15 * + 15 + 71 AS col2 +---- +-154 +80 query I rowsort label-2575 SELECT ALL + MAX ( + 28 ) AS col2 @@ -13586,8 +13769,11 @@ 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 "\(\- nullif\(Int64\(\-22\), \(\- min\(Int64\(\-39\)\)\)\)\) AS col0" at position 0 and "Int64\(\-3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( - 22, - + MIN ( ALL - 39 ) ) AS col0, - 3 AS col0 +---- +-3 +22 query I rowsort label-2590 SELECT ALL - 10 - - COUNT ( DISTINCT + + 70 ) + + 43 * + ( - 73 ) AS col0 @@ -14537,8 +14723,11 @@ SELECT 80 * - 22 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \+ Int64\(18\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 15 + 18 AS col2, 50 AS col2 +---- +33 +50 query I rowsort SELECT DISTINCT ( + ( + 24 ) ) AS col0 @@ -14624,8 +14813,11 @@ SELECT ALL + 17 + ( - + COALESCE ( - - 54, - 95 ) ) - 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \+ Int64\(\-29\) \+ Int64\(\-19\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 + - 29 + - 19 col2, 71 AS col2 +---- +14 +71 query I rowsort label-2791 SELECT DISTINCT COUNT ( * ) + - - ( 29 ) + COUNT ( * ) / + 94 AS col2 @@ -14706,8 +14898,11 @@ SELECT + 61 * 51 * + 25 - 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(18\)\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 18 AS col2, 42 AS col2 +---- +-18 +42 query I rowsort label-2807 SELECT DISTINCT - CASE + 63 WHEN COUNT ( * ) / - - CAST ( NULL AS INTEGER ) / + 60 + 11 + 86 * 73 THEN 4 * - 29 END * + 8 AS col0 @@ -14941,8 +15136,11 @@ SELECT - - 66 + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-9\) / Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col0, - 9 / 22 col0 +---- +0 +1 query I rowsort label-2853 SELECT + COUNT ( DISTINCT 59 ) / + - 20 * 1 AS col2 @@ -14963,8 +15161,12 @@ 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\(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\. +query III valuesort SELECT ALL COUNT ( * ) + + + 23 AS col2, MIN ( 48 ) AS col0, - - 42 AS col2 +---- +24 +42 +48 query I rowsort label-2857 SELECT ALL COUNT ( ALL 27 ) AS col1 @@ -15282,8 +15484,11 @@ SELECT 98 AS col1, + COUNT ( 90 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col0" at position 0 and "Int64\(25\) \+ max\(\(\- Int64\(52\)\)\) \+ count\(DISTINCT Int64\(11\)\) \* Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 35 AS col0, 25 + + + MAX ( - + 52 ) + + COUNT ( DISTINCT ( + 11 ) ) * + + 16 AS col0 +---- +-11 +-35 query I rowsort label-2917 SELECT ALL CAST ( 11 AS INTEGER ) + + 60 @@ -15644,8 +15849,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-20\) \* Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 60 AS col0, + 73 + - COUNT ( * ) * - 20 * + - 60 AS col0 +---- +-1127 +60 query I rowsort label-2986 SELECT + CASE - CASE - 37 WHEN - - ( + - COALESCE ( + 46, - + ( + 36 ) ) ) * - + 65 * - 43 + - 3 THEN NULL WHEN + 21 THEN 85 + 55 WHEN - 61 THEN - COUNT ( * ) * + 64 ELSE 27 END WHEN - 87 * 49 + 45 THEN COUNT ( * ) WHEN 3 THEN CASE - COUNT ( * ) WHEN + 51 + COUNT ( * ) THEN ( ( + 18 ) ) + + 39 ELSE NULL END * - 38 + - 19 ELSE 59 END + COUNT ( * ) / 48 @@ -15717,8 +15925,11 @@ SELECT ALL COUNT ( * ) * - - 15 # 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 col2" at position 0 and "Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 44 AS col2, 83 AS col2 +---- +-44 +83 query I rowsort label-3000 SELECT DISTINCT + 46 / - 51 * + CASE AVG ( DISTINCT + 35 ) WHEN COUNT ( * ) + MIN ( ALL 49 ) THEN - - 37 WHEN - 41 THEN NULL WHEN - NULLIF ( + 79, 61 * + 6 ) * 27 THEN NULL WHEN 86 THEN 56 ELSE NULL END - - 61 AS col2 @@ -15779,8 +15990,11 @@ SELECT + + 39 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1940 # Datafusion - Expected - -3915 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* Int64\(\-38\) \+ Int64\(\-60\) \+ \(\- CAST\(Int64\(\-58\) AS Int32\)\) AS col0" at position 0 and "Int64\(45\) \* \(\- Int64\(87\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 51 * - 38 + + - 60 + - CAST ( - 58 AS INTEGER ) AS col0, 45 * - + 87 col0 +---- +-1940 +-3915 query I rowsort label-3012 SELECT - NULLIF ( - - 82, - - CASE + 68 WHEN + COUNT ( * ) * - - 98 THEN NULL WHEN 35 THEN - 1 ELSE + 41 * 75 END + + 31 ) / - 37 AS col0 @@ -16192,8 +16406,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(Int64\(84\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, + CAST ( + 84 AS INTEGER ) AS col2 +---- +1 +84 query I rowsort label-3090 SELECT 25 + COUNT ( DISTINCT + 21 ) col1 @@ -16214,8 +16431,11 @@ SELECT + COUNT ( * ) AS col0, + COUNT ( * ) AS col1 # 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 "Int64\(\-66\) AS col0" at position 0 and "\(\- Int64\(10\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 66 AS col0, - ( 10 ) AS col0 +---- +-10 +-66 query I rowsort SELECT + 52 * - - 39 @@ -16225,8 +16445,11 @@ SELECT + 52 * - - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1350 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* min\(Int64\(\-18\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 75 * + MIN ( ALL - 18 ) AS col1, - CAST ( NULL AS INTEGER ) + + 5 AS col1 +---- +-1350 +NULL query I rowsort SELECT DISTINCT - ( + + 76 ) - - 94 AS col0 @@ -16322,8 +16545,11 @@ SELECT + ( - ( - 26 ) ) AS col1, + ( SUM ( - 28 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4334 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* \(\- Int64\(55\)\) \- Int64\(\-19\) \* Int64\(94\) \+ Int64\(\-8\) \+ Int64\(32\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(81\)\) \+ \(\- \(\- CAST\(Int64\(55\) AS Int32\)\)\) AS col1" at position 0 and "CASE Int64\(\-76\) WHEN Int64\(\-19\) THEN Int64\(\-12\) WHEN sum\(Int64\(7\)\) THEN NULL END \* Int64\(28\) \- Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-4334 +NULL query I rowsort SELECT ALL + - 23 @@ -16360,8 +16586,12 @@ SELECT DISTINCT + 29 AS col1 # Datafusion - Expected - 72 # Datafusion - Expected - NULL # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col1" at position 0 and "Int64\(75\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + + 72 AS col1, + 75 + - + ( - CAST ( NULL AS INTEGER ) ) AS col1, - 52 +---- +-52 +72 +NULL query II rowsort SELECT DISTINCT + 19 AS col2, 43 @@ -16606,8 +16836,11 @@ SELECT ALL - CAST ( NULLIF ( - COUNT ( * ), 73 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(66\) \+ Int64\(48\) \+ Int64\(16\) \+ Int64\(97\) \* Int64\(25\) \* \(\- Int64\(98\)\) \+ \(\- count\(\(\- Int64\(\-90\)\)\)\) \* Int64\(\-99\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(42\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 AS col0, - COALESCE ( COUNT ( * ), 66 + + 48 + + 16 + 97 * 25 * - + 98 + - COUNT ( - - 90 ) * - 99 + - CAST ( NULL AS INTEGER ) * + + 42 ) col0 +---- +-1 +18 query I rowsort SELECT ALL - ( 59 ) AS col0 @@ -17173,8 +17406,11 @@ SELECT CAST ( + 85 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col0" at position 0 and "max\(DISTINCT Int64\(\-69\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 33 AS col0, MAX ( DISTINCT - 69 ) AS col0 +---- +-69 +33 query I rowsort SELECT + ( - 37 ) AS col1 @@ -17311,8 +17547,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + 87 + - + ( COUNT ( * ) ) + - 65 AS col2, 45 AS col2 +---- +21 +45 query I rowsort label-3306 SELECT CAST ( NULL AS INTEGER ) - - ( - COUNT ( * ) ) AS col0 @@ -17550,8 +17789,11 @@ SELECT 97 * + 97 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-92\)\) AS col0" at position 0 and "Int64\(\-14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 92 AS col0, - 14 AS col0 +---- +-14 +92 query I rowsort label-3353 SELECT 16 / + 26 + + 53 + ( ( 14 ) ) AS col1 @@ -17796,8 +18038,11 @@ SELECT DISTINCT - CASE + 53 WHEN - + 79 THEN 85 * + CASE 39 WHEN + ( + CASE + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col0" at position 0 and "max\(Int64\(\-49\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 AS col0, MAX ( ALL - 49 ) AS col0 +---- +-49 +50 query I rowsort label-3400 SELECT DISTINCT + + COALESCE ( SUM ( - + 25 ), - 82 ) AS col0 @@ -17833,8 +18078,11 @@ SELECT - + 94 * 73 + 60 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col0" at position 0 and "count\(Int64\(41\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 2 col0, + ( COUNT ( 41 ) ) AS col0 +---- +-2 +1 query I rowsort label-3407 SELECT ALL - - 78 * SUM ( DISTINCT - ( - 94 ) ) - + 17 + 86 + 77 * 67 * - - 75 * - 7 * 89 - - + 48 AS col0 @@ -17994,8 +18242,12 @@ SELECT ALL 17 * 89 + - COUNT ( * ) + - 94 # Datafusion - Expected - -43 # Datafusion - Expected - -221100 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) \* \(\- Int64\(\-50\)\) \* Int64\(66\) AS col2" at position 1 and "Int64\(\-40\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 70 + 27 AS col0, - 67 * - - 50 * + 66 AS col2, - 40 AS col2 +---- +-221100 +-40 +-43 query I rowsort SELECT ALL + 38 - + + 62 * - 76 AS col2 @@ -18455,8 +18707,11 @@ 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\(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\. +query II valuesort SELECT ALL 23 / 1 + - - COUNT ( * ) AS col1, 44 AS col1 +---- +24 +44 query I rowsort SELECT ALL + 50 * - - 49 col2 @@ -18519,8 +18774,11 @@ SELECT ALL + 16 AS col1, 63 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, 70 AS col1 +---- +1 +70 query I rowsort SELECT ALL + 30 + - 90 AS col0 @@ -18632,8 +18890,11 @@ SELECT - 89 AS col0, + 62 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 162 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) AS col1" at position 0 and "Int64\(72\) \+ \(\- Int64\(\-54\)\) \- Int64\(\-36\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 6 AS col1, + 72 + - - 54 - + - 36 * + COUNT ( * ) AS col1 +---- +-6 +162 query I rowsort label-3559 SELECT ALL 84 / + + 82 AS col1 @@ -18733,8 +18994,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + 72 * 7 - + + 95 * - - SUM ( DISTINCT - 91 ) + - COUNT ( * ) + 57 AS col0, 30 AS col0 +---- +30 +9205 query I rowsort label-3578 SELECT - NULLIF ( + 59, + - 22 - - COUNT ( * ) ) + ( - 83 ) @@ -18820,8 +19084,11 @@ SELECT DISTINCT 83, - 43 * - 67 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, 54 AS col1 +---- +1 +54 query I rowsort SELECT 31 * - 59 + + 47 AS col1 @@ -19130,8 +19397,11 @@ SELECT ALL 87 * - - 63 * + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 792 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) / Int64\(37\) AS col2" at position 0 and "Int64\(72\) \* Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 86 / 37 AS col2, + 72 * + 11 AS col2 +---- +-2 +792 query I rowsort label-3653 SELECT + COUNT ( * ) + + CASE 33 WHEN - 93 - + 97 THEN + - 49 + + 40 * + COALESCE ( 70, - 39 ) / ( ( + COUNT ( * ) ) ) + - 8 - - + MIN ( 72 ) * + MIN ( - + CAST ( NULL AS INTEGER ) ) WHEN + 88 THEN NULL END AS col1 @@ -19279,8 +19549,11 @@ SELECT DISTINCT - + 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* avg\(Int64\(\-86\)\) \+ Int64\(5\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - CAST ( NULL AS INTEGER ) * + AVG ( - 86 ) + ( 5 ) AS col2, 42 AS col2 +---- +42 +NULL query I rowsort SELECT 64 * + + 15 @@ -19583,8 +19856,11 @@ SELECT - COUNT ( - 35 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* Int64\(2\) AS col1" at position 0 and "Int64\(64\) \+ count\(DISTINCT Int64\(92\)\) \- Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 28 * 2 AS col1, 64 + COUNT ( DISTINCT + + 92 ) - 86 AS col1 +---- +-21 +56 query I rowsort label-3740 SELECT + COUNT ( * ) + + 31 + 21 + 19 AS col0 @@ -19918,8 +20194,11 @@ SELECT ALL + - 30 + + 15 + 79 - + + 15 / + 79 # 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\(35\)\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 35 AS col0, + 42 AS col0 +---- +-35 +42 query II rowsort label-3804 SELECT DISTINCT - 19 + - 23 / - + COUNT ( * ), 15 * + 51 AS col0 @@ -20018,8 +20297,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) / - 19 AS col0, + 63 AS col0 +---- +0 +63 query I rowsort SELECT 98 - + 22 AS col1 @@ -20300,8 +20582,11 @@ SELECT + 69 * + ( + + 32 ) # 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 col0" at position 0 and "\(\- count\(Int64\(\-18\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 66 col0, - COUNT ( - 18 ) AS col0 +---- +-1 +66 query I rowsort SELECT DISTINCT + 32 * - + 34 @@ -20326,8 +20611,11 @@ SELECT ALL - 9 * + CAST ( + ( - 77 ) AS INTEGER ) - + + 5 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col0" at position 0 and "sum\(Int64\(36\)\) \- Int64\(77\) \+ Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 89 AS col0, SUM ( ALL 36 ) - + 77 + 13 AS col0 +---- +-28 +89 query I rowsort label-3882 SELECT + 10 * - - 9 * MAX ( DISTINCT - 83 ) col0 @@ -20447,8 +20735,11 @@ SELECT - 40 * + 25 + + 40 + + - 82 * - 89 * - 58 col0 # 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\(34\) \+ \(\- Int64\(78\)\) AS col1" at position 0 and "Int64\(\-34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 34 + - + 78 col1, - 34 AS col1 +---- +-34 +-44 query I rowsort label-3905 SELECT - 53 * + 8 * + CAST ( NULL AS INTEGER ) * 64 AS col2 @@ -20479,8 +20770,11 @@ SELECT DISTINCT + MIN ( + 3 ) AS col1 # 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\(\-93\)\) \- Int64\(20\) AS col2" at position 0 and "Int64\(98\) / Int64\(63\) \+ \(\- Int64\(49\)\) / \(\- Int64\(96\)\) \+ Int64\(\-3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 93 - + 20 AS col2, 98 / 63 + - + 49 / - + 96 + - 3 AS col2 +---- +-2 +73 query II rowsort SELECT - 53, + 81 AS col0 @@ -20593,8 +20887,11 @@ SELECT + 88 + COUNT ( * ) * 96 * + 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 4370 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(98\) WHEN Int64\(36\) \* Int64\(91\) THEN NULL ELSE Int64\(\-16\) END AS col0" at position 0 and "Int64\(\-46\) \* \(\- min\(Int64\(95\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CASE + 98 WHEN + 36 * + 91 THEN NULL ELSE - 16 END AS col0, - 46 * - MIN ( ALL + 95 ) AS col0 +---- +-16 +4370 query I rowsort label-3933 SELECT + ( + 14 ) * - - CAST ( NULL AS INTEGER ) + + + 26 @@ -20697,8 +20994,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 19 AS col0, 56 * - - COUNT ( * ) AS col0 +---- +19 +56 query I rowsort label-3953 SELECT 50 + - COUNT ( * ) + + 55 * - 38 + 29 AS col0 @@ -20956,8 +21256,11 @@ 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\(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\. +query II valuesort SELECT + 8 * + COUNT ( * ) * 44 + - 63 + ( - - COUNT ( ALL + + 7 ) ) col2, 91 AS col2 +---- +290 +91 query I rowsort label-4001 SELECT COALESCE ( + NULLIF ( - 4, - + 48 + + - 22 + - 1 * 92 * - + CASE COALESCE ( - + NULLIF ( 31, - + 35 + + 44 ), 2, + + 94 + + 31 ) WHEN + 22 * - 90 THEN NULL WHEN - COUNT ( - 16 ) - + 54 * - 30 / CASE + 83 WHEN + 13 THEN + + 44 ELSE NULL END - + 21 THEN - + COUNT ( * ) WHEN - COUNT ( * ) THEN - - MAX ( DISTINCT - 6 ) * - ( + 56 ) * + + 4 * + 26 * - - 46 + + 90 * + 26 * + 69 ELSE - 59 END + + COUNT ( * ) ), - CAST ( NULL AS INTEGER ) ) @@ -21457,8 +21760,11 @@ SELECT ALL - + ( - MIN ( + 95 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 55 AS col2, + COUNT ( * ) AS col2 +---- +-55 +1 query I rowsort label-4096 SELECT ALL 25 * + COUNT ( * ) * 61 * - COUNT ( * ) * - 39 * + 19 + - + 82 + + CAST ( NULL AS INTEGER ) / - 93 @@ -21488,8 +21794,11 @@ SELECT 90 * + 59 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3230 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(95\) AS col2" at position 0 and "Int64\(16\) \- CAST\(NULL AS Int32\) \- Int64\(62\) / count\(Int64\(45\)\) \+ Int64\(69\) \* Int64\(0\) \* \(\- \(\- \(\- nullif\(Int64\(0\), Int64\(52\) \+ Int64\(85\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 * 95 AS col2, + 16 - + CAST ( NULL AS INTEGER ) - 62 / + + COUNT ( ALL 45 ) + 69 * - 0 * - - ( - NULLIF ( 0, 52 + 85 ) ) AS col2 +---- +3230 +NULL query I rowsort SELECT - 33 * 2 + - 40 + 18 AS col2 @@ -21911,8 +22220,11 @@ SELECT COALESCE ( 76, - ( - COUNT ( * ) ) / - 96 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -582388 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* Int64\(\-79\) \* Int64\(76\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 97 * + ( - 79 ) * + 76 AS col0, 96 AS col0 +---- +-582388 +96 query I rowsort label-4183 SELECT 7 * + 96 * + 87 * 19 + + + 68 * + 48 - + - 85 - + CAST ( 20 AS INTEGER ) + - + SUM ( + ( + 85 ) ) + 7 * 33 * - MIN ( DISTINCT - 51 ) AS col0 @@ -22250,8 +22562,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 62 AS col0, 22 * - NULLIF ( 63, COUNT ( * ) ) col0 +---- +-1386 +-62 query I rowsort SELECT + + COALESCE ( - 98, - 92 * - 97 ) AS col0 @@ -22385,8 +22700,11 @@ SELECT 25 + - 82 * - 85 + - 34 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 112 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "Int64\(16\) \* CAST\(\(\- Int64\(\-7\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 3 AS col1, 16 * CAST ( - - 7 AS INTEGER ) AS col1 +---- +112 +3 query I rowsort SELECT ALL + 55 + - + 39 + + - 36 @@ -22494,8 +22812,11 @@ SELECT - + 98 / - 35 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 345 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-23\)\) \* Int64\(15\) AS col1" at position 0 and "Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 23 * + 15 AS col1, + 77 col1 +---- +345 +77 query I rowsort SELECT ALL 65 * + 34 * - 41 @@ -22643,8 +22964,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - 86 / + - COUNT ( * ) col2, 16 AS col2, + 53 + - 48 col2 +---- +-86 +16 +5 query II rowsort label-4325 SELECT DISTINCT 59 AS col0, - CASE 99 WHEN - 23 THEN - 15 / - 17 WHEN 4 THEN NULL WHEN - COUNT ( * ) THEN NULL END @@ -23580,8 +23905,11 @@ SELECT 48 + + CAST ( + MAX ( DISTINCT 87 ) AS INTEGER ) * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 68 AS col0, 14 AS col0 +---- +14 +68 query I rowsort label-4509 SELECT 54 / + 19 col1 @@ -23724,8 +24052,11 @@ SELECT ALL + 70 * - 59 * + COUNT ( ALL 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col0" at position 0 and "Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 AS col0, - 64 AS col0 +---- +-64 +91 query I rowsort SELECT 72 * + 68 @@ -23849,8 +24180,11 @@ SELECT - ( + SUM ( + - 76 ) ) # 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\(\-18\) \+ \(\- Int64\(\-11\)\) AS col0" at position 0 and "Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 18 + - - 11 AS col0, + 3 AS col0 +---- +-7 +3 query I rowsort SELECT ALL - - 32 * + 6 - + - 46 + + 97 col2 @@ -24062,8 +24396,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col2, - 87 * - ( 50 ) AS col2 +---- +-1 +4350 query I rowsort label-4602 SELECT + - 70 + - - COUNT ( DISTINCT - 67 ) AS col0 @@ -24305,8 +24642,12 @@ SELECT COALESCE ( 56, - COUNT ( * ) / - 96 * 32 ) * 67 # Datafusion - Expected - 39 # Datafusion - Expected - 74 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(74\)\) AS col0" at position 1 and "\(\- Int64\(\-37\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 2 + - - 41, SUM ( 74 ) AS col0, - - 37 AS col0 +---- +37 +39 +74 query I rowsort SELECT ALL NULLIF ( + 35, + ( - 67 ) ) AS col2 @@ -25547,8 +25888,11 @@ SELECT DISTINCT 44 + - 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 41041 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "Int64\(41\) \* Int64\(\-11\) \* Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 77 AS col0, 41 * - 11 * - 91 AS col0 +---- +41041 +77 # Datafusion - Data was automatically updated based on comparison db results # Datafusion - Previous results: @@ -25960,8 +26304,11 @@ SELECT + 97 + + - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 AS col1, + COUNT ( * ) AS col1 +---- +1 +2 query I rowsort label-4966 SELECT - COUNT ( DISTINCT + 71 ) @@ -26026,8 +26373,11 @@ 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\(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\. +query II valuesort SELECT + 57 + - COUNT ( * ) + - 58 col2, 35 AS col2 +---- +-2 +35 query I rowsort label-4979 SELECT - NULLIF ( + - 75, COALESCE ( 15, + - 0 ) * - COUNT ( + 14 ) + - 25 ) + - 74 * - 15 * - COUNT ( * ) + - 97 @@ -26511,8 +26861,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 82 AS col2, 29 AS col2 +---- +29 +82 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -26540,8 +26893,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 68 AS col1, + 93 col1 +---- +68 +93 query I rowsort label-5075 SELECT + 53 * + 63 + + - 52 / + - NULLIF ( 74, 44 ) * - 10 @@ -26890,8 +27246,11 @@ SELECT ALL + ( CAST ( ( + MAX ( ALL 97 ) ) AS INTEGER ) ) / + 78 + 4 * - COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) / Int64\(99\) \+ Int64\(44\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 79 / 99 + 44 col0, 14 AS col0 +---- +14 +44 query I rowsort SELECT + 49 + + 2 @@ -26916,8 +27275,11 @@ SELECT + 36 * - - COALESCE ( 97, 24, 25 ) + - - 35 + 9 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(23\) WHEN \(\- Int64\(57\)\) THEN Int64\(20\) ELSE Int64\(\-24\) END AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CASE + 23 WHEN - + 57 THEN + 20 ELSE - 24 END AS col2, COUNT ( * ) AS col2 +---- +-24 +1 query I rowsort SELECT ( - 86 ) AS col1 @@ -27319,8 +27681,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 / + 74 col0, - ( + COUNT ( * ) ) AS col0 +---- +-1 +1 query I rowsort SELECT ALL + 24 * + + 74 col1 @@ -27920,8 +28285,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 75 AS col0, + 19 col2, + - COUNT ( * ) AS col0 +---- +-1 +19 +75 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -28115,8 +28484,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col1, 24 + - - ( - - 16 ) col1 +---- +-1 +40 query I rowsort label-5369 SELECT + ( - 96 ) * + - 38 - - + CAST ( NULL AS INTEGER ) @@ -28221,8 +28593,11 @@ SELECT + ( - CASE + CASE - 97 WHEN - ( 98 ) * - 54 THEN 48 * COALESCE ( + CASE + # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \- Int64\(31\) AS col1" at position 0 and "Int64\(\-25\) \* Int64\(2\) \+ \(\- Int64\(\-63\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 60 - 31 AS col1, - 25 * 2 + - - 63 AS col1 +---- +13 +29 query II rowsort label-5388 SELECT MAX ( DISTINCT + + 65 ), COALESCE ( 18, + 3 - - 65 ) * + 24 - - 92 - + + COUNT ( ALL - 69 ) + + - 8 - - CAST ( NULL AS INTEGER ) AS col0 @@ -28233,8 +28608,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-31\)\) \* Int64\(\-54\) \* \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(53\) \- \(\- sum\(Int64\(13\)\)\)\)\) \* Int64\(64\) \+ CAST\(NULL AS Int32\) \+ Int64\(52\) \+ Int64\(45\) \+ Int64\(\-94\) AS col0" at position 0 and "Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( + - 31 ) * - 54 * - COALESCE ( + + COUNT ( * ), + 53 - + - SUM ( 13 ) ) * + + 64 + CAST ( NULL AS INTEGER ) + + 52 + + + 45 + - 94 col0, 52 AS col0 +---- +52 +NULL query II rowsort SELECT ALL NULLIF ( + + 26, + COALESCE ( - 46, - 65 ) * 68 + + + 92 * + - 20 - - - 71 ) * + 87 AS col1, - 86 AS col2 @@ -28546,8 +28924,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 119 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \+ Int64\(72\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 47 + ( + 72 ) AS col0, 98 AS col0 +---- +119 +98 query I rowsort SELECT ALL 51 + + - 2 + + 36 * 0 + + 15 @@ -28960,8 +29341,11 @@ SELECT + 25 + - 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(39\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) col0, COUNT ( 39 ) AS col0 +---- +1 +NULL query I rowsort label-5530 SELECT + NULLIF ( + - 80, - + MIN ( + 15 ) ) @@ -29160,8 +29544,11 @@ SELECT COUNT ( * ) * + 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - -54738684 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \+ Int64\(\-80\) AS col1" at position 0 and "Int64\(62\) \* Int64\(91\) \* \(\- Int64\(\-99\)\) \* Int64\(\-98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 10 + - 80 AS col1, 62 * + 91 * - - 99 * + - 98 AS col1 +---- +-54738684 +-70 query I rowsort label-5568 SELECT - + 11 * + 72 + + 72 + - + 18 * + 5 * - COUNT ( * ) + - CAST ( + CAST ( - 26 AS INTEGER ) AS INTEGER ) AS col0 @@ -29852,8 +30239,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(86\)\) AS col0" at position 0 and "Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( 86 ) AS col0, - 68 AS col0 +---- +-68 +-86 query I rowsort SELECT DISTINCT 20 + - 38 @@ -29879,8 +30269,11 @@ SELECT DISTINCT 6 AS col0, COUNT ( * ) AS col1 # 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 "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 II valuesort SELECT ALL 58 AS col2, 91 AS col2 +---- +58 +91 query I rowsort SELECT 49 * - 29 AS col1 @@ -29925,8 +30318,11 @@ SELECT ALL 30 * 38 / - + 13 # 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 col1" at position 0 and "Int64\(\-31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 32 AS col1, - 31 AS col1 +---- +-31 +32 query I rowsort label-5713 SELECT ( + 45 ) + + 71 - + NULLIF ( - NULLIF ( MAX ( DISTINCT - 23 ), + ( - + 47 ) * + + 8 ), - 10 - + 26 ) * + COUNT ( * ) * 91 @@ -29987,8 +30383,12 @@ SELECT DISTINCT - - 28 AS col0, + 25 - - 91 AS col2 # Datafusion - Expected - 69 # Datafusion - Expected - 58 # Datafusion - Expected - 9236 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-69\)\) AS col1" at position 0 and "\(\- sum\(Int64\(\-58\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - ( - 69 ) AS col1, - SUM ( - 58 ) AS col1, 86 * + 70 + + + 67 * + 48 AS col0 +---- +58 +69 +9236 query I rowsort SELECT + 72 * + 44 AS col2 @@ -30079,8 +30479,11 @@ SELECT 13 / 78 * ( + 97 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(95\) \+ Int64\(\-39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 49 + COUNT ( * ) AS col2, + 95 + - 39 AS col2 +---- +50 +56 query I rowsort label-5741 SELECT 58 + - 84 + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 @@ -30476,15 +30879,22 @@ SELECT + 65 * - - ( MAX ( - - 95 ) ), - 40 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) / Int64\(35\) / \(\- \(\- max\(Int64\(78\)\)\)\) AS col0" at position 0 and "Int64\(\-12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 35 / 35 / - - MAX ( + + 78 ) AS col0, - 12 AS col0 +---- +-12 +0 # Datafusion - Datafusion expected results: # 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\(1\)\) AS count\(\*\) \+ Int64\(94\) \+ Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 9 * - 48 col0, + COUNT ( * ) + 94 + + 83 AS col0, 67 +---- +-432 +178 +67 query I rowsort SELECT 10 + ( + 82 ) * - 57 + - 47 @@ -30693,8 +31103,11 @@ SELECT ALL + 63 - - 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 AS col2, COUNT ( * ) AS col2 +---- +-3 +1 query I rowsort label-5858 SELECT - 96 / - 67 + - 11 AS col0 @@ -30801,8 +31214,11 @@ SELECT ALL + COUNT ( * ) * COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1726 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* \(\- Int64\(\-97\)\) \+ \(\- Int64\(\-67\)\) \- Int64\(\-10\) AS col1" at position 0 and "CAST\(CAST\(coalesce\(Int64\(\-79\), Int64\(\-63\), Int64\(37\)\) AS Int32\) AS Int32\) \* \(\- CASE Int64\(68\) WHEN Int64\(48\) \+ Int64\(67\) THEN \(\- Int64\(\-92\)\) \+ Int64\(0\) END\) \+ Int64\(\-92\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(73\) / Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1726 +NULL query I rowsort SELECT + 50 * - 45 AS col2 @@ -31009,8 +31425,11 @@ SELECT - + ( + 45 ) + - 89 * - 38 * + 40 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + COUNT ( * ) ) col0, 51 AS col0 +---- +1 +51 query I rowsort label-5919 SELECT 48 / - - ( + 36 ) @@ -31030,8 +31449,11 @@ SELECT ALL - 50 + 16 / - 87 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \+ Int64\(\-8\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 + - 8 + COUNT ( * ) AS col0, 10 AS col0 +---- +10 +31 query II rowsort label-5923 SELECT - 93, COUNT ( * ) + 25 AS col0 @@ -31370,8 +31792,11 @@ SELECT - COALESCE ( + 69, 16 * + 22 - + 6 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \+ \(\- nullif\(Int64\(80\), Int64\(32\) \* Int64\(\-13\) \- CAST\(CAST\(Int64\(93\) AS Float64\) AS Int32\)\)\) AS col0" at position 0 and "count\(Int64\(7\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 7 + - NULLIF ( + 80, + 32 * - 13 - + CAST ( + CAST ( + 93 AS FLOAT8 ) AS INTEGER ) ) AS col0, COUNT ( + 7 ) AS col0 +---- +-73 +1 query I rowsort label-5988 SELECT - COALESCE ( - 29, + + CAST ( NULL AS INTEGER ) * 89 + - + 22 + + 80 + 27 / COUNT ( * ) ) col2 @@ -31417,8 +31842,11 @@ SELECT DISTINCT 65 * - + 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -159 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* \(\- \(\- count\(\(\- coalesce\(\(\- Int64\(87\)\), Int64\(33\)\)\)\)\)\) AS col2" at position 0 and "Int64\(34\) \+ CASE Int64\(\-39\) WHEN \(\- Int64\(59\)\) THEN NULL ELSE Int64\(\-98\) END \+ Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 * - ( - COUNT ( ALL - COALESCE ( - + 87, + 33 ) ) ) AS col2, + 34 + + CASE + - 39 WHEN + + ( - + 59 ) THEN NULL ELSE - 98 END + + - 95 AS col2 +---- +-159 +95 query I rowsort label-5997 SELECT ALL - 61 * MIN ( DISTINCT 45 ) + + 67 * + - ( 40 ) + 2 @@ -31438,8 +31866,11 @@ 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\(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\. +query II valuesort 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 +---- +-1447 +NULL query I rowsort SELECT - 14 * - - 20 + + 32 * 13 @@ -31581,8 +32012,11 @@ SELECT + - 33 * + 84 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT \(\- Int64\(99\)\)\)\) AS col1" at position 0 and "Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + SUM ( DISTINCT - + 99 ) AS col1, - 61 col1 +---- +-61 +99 query I rowsort label-6029 SELECT + - 83 / - - MIN ( ALL - 16 ) @@ -31986,8 +32420,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( ( + + 7 ) ) AS col1, + 29 * COUNT ( * ) * + 37 AS col1 +---- +1073 +7 query I rowsort label-6106 SELECT + 69 + COALESCE ( - - CASE + 36 WHEN 55 THEN + 6 + + + 72 ELSE + COALESCE ( - 54, - 83 * 43 - 70 + + COUNT ( * ), + 5 ) END, - 56 ) AS col1 @@ -32012,8 +32449,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - COUNT ( * ) col1, - 85 AS col1 +---- +-1 +-85 query I rowsort label-6111 SELECT ALL + ( - SUM ( + + 84 ) ) AS col1 @@ -32739,8 +33179,11 @@ SELECT + 90 / - 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 826 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "Int64\(14\) \* Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 40 AS col1, + ( + 14 ) * 59 col1 +---- +40 +826 query I rowsort label-6254 SELECT ALL COUNT ( * ) / - 48 @@ -33064,8 +33507,11 @@ SELECT ALL - COUNT ( * ) * CASE 48 WHEN 52 - - 40 THEN NULL WHEN + 58 + + 99 * 2 # 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\(DISTINCT Int64\(\-86\)\)\)\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - COUNT ( DISTINCT - 86 ) AS col0, + 36 col0 +---- +1 +36 query I rowsort label-6317 SELECT ALL + 74 + COUNT ( * ) AS col0 @@ -33141,8 +33587,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-20\) \* Int64\(89\) \* Int64\(\-14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 96 AS col2, ( + COUNT ( * ) ) * - 20 * + 89 * - 14 AS col2 +---- +24920 +96 query I rowsort SELECT ALL - 17 * - - 14 @@ -33157,8 +33606,11 @@ SELECT 26 - + 71 + + 92 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 2585 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "Int64\(47\) \* \(\- \(\- coalesce\(Int64\(55\), Int64\(79\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 4 AS col2, + 47 * - ( - COALESCE ( + + 55, 79 ) ) AS col2 +---- +2585 +4 query I rowsort label-6335 SELECT ALL + 91 + - ( - 68 ) + - COUNT ( * ) col1 @@ -33256,14 +33708,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col2, - COUNT ( * ) AS col2 +---- +-1 +-1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(\-18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - COUNT ( * ) AS col0, - 18 col0 +---- +-18 +1 query I rowsort SELECT ALL 76 - + ( 43 ) AS col0 @@ -33502,8 +33960,11 @@ SELECT + 53 AS col2, 54 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 3965 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "min\(Int64\(61\)\) \* Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) col0, MIN ( ALL + 61 ) * + 65 col0 +---- +1 +3965 query I rowsort label-6400 SELECT + - CAST ( 78 AS INTEGER ) AS col2 @@ -33597,8 +34058,11 @@ SELECT ALL + 67 * + - 0 * - + 7 + - SUM ( - 75 ) + 79 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(48\)\)\) AS col0" at position 0 and "Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( DISTINCT + + 48 ) AS col0, - 94 AS col0 +---- +-48 +-94 query II rowsort label-6418 SELECT - ( COUNT ( * ) ), - 73 + + 56 AS col2 @@ -33625,8 +34089,12 @@ SELECT DISTINCT - ( CAST ( + 99 AS INTEGER ) ) * + 33 AS col2 # Datafusion - Expected - 58 # Datafusion - Expected - -72 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col1" at position 1 and "Int64\(87\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 27 + 31 AS col0, - 72 AS col1, 87 AS col1 +---- +-72 +58 +87 query I rowsort label-6423 SELECT DISTINCT - CAST ( + AVG ( DISTINCT + 98 ) AS INTEGER ) + - 56 + 83 * - - 78 @@ -34652,8 +35120,11 @@ 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\(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\. +query II valuesort 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 +---- +-3854 +97 query I rowsort SELECT ALL 9 * + 66 * 19 AS col0 @@ -35365,8 +35836,11 @@ SELECT ALL - CAST ( - COALESCE ( + 18, 56 - - - 67 * ( + COUNT ( * ) ), AVG ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "Int64\(1\) \* Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 63 AS col2, 1 * + 75 AS col2 +---- +63 +75 query I rowsort label-6758 SELECT 34 - - 74 / + 53 AS col2 @@ -35984,8 +36458,11 @@ SELECT ALL - CAST ( ( + 59 ) AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "nullif\(Int64\(15\), Int64\(7\) / Int64\(\-31\) \+ Int64\(\-49\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 28 + + COUNT ( * ) col0, NULLIF ( 15, 7 / + ( - 31 ) + - 49 ) AS col0 +---- +-27 +15 query II rowsort SELECT + 17 AS col1, 1 col2 @@ -36009,8 +36486,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 585 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col1" at position 0 and "\(\- CAST\(Int64\(45\) AS Int32\)\) \* \(\- Int64\(13\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 38 AS col1, - CAST ( 45 AS INTEGER ) * - + 13 AS col1 +---- +-38 +585 query I rowsort label-6881 SELECT ALL - CASE WHEN NOT + COUNT ( * ) IS NOT NULL THEN + + 84 END @@ -36095,8 +36575,11 @@ SELECT + 17 + - 96 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(\-48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 62 col2, - 48 AS col2 +---- +-48 +62 query I rowsort SELECT DISTINCT + COALESCE ( 23, + 31 ) @@ -36250,8 +36733,11 @@ SELECT DISTINCT 99 * + 49 * COUNT ( * ) * - 58 + - + NULLIF ( COALESCE ( + + ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 658 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "Int64\(23\) \* Int64\(25\) \+ Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 8 AS col2, 23 * + + 25 + 83 AS col2 +---- +658 +8 query I rowsort label-6928 SELECT + 93 + SUM ( 86 ) @@ -36261,8 +36747,11 @@ SELECT + 93 + SUM ( 86 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "Int64\(\-31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 60 col1, - 31 AS col1 +---- +-31 +60 query I rowsort label-6930 SELECT - NULLIF ( + + 77, COUNT ( * ) + - 65 ) @@ -36591,8 +37080,11 @@ SELECT DISTINCT + 22 * COUNT ( * ) / 26 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "Int64\(\-39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 55 AS col2, - 39 AS col2 +---- +-39 +55 query I rowsort SELECT ALL + 5 * - 10 @@ -36756,8 +37248,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 24 * ( 60 ) - - - COUNT ( * ) AS col1, + COALESCE ( ( - 29 ), + - COUNT ( * ) ) AS col1 +---- +-29 +1439 query I rowsort SELECT ALL 99 * + + ( - 96 ) * ( - 78 ) - + - 10 AS col1 @@ -36834,8 +37329,11 @@ SELECT - 7 - - + COUNT ( * ) AS col0, - 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4875 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* Int64\(65\) AS col2" at position 0 and "Int64\(\-83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 75 * 65 AS col2, - 83 col2 +---- +-83 +4875 query I rowsort label-7039 SELECT - - 48 + + - COUNT ( * ) / - + COUNT ( * ) @@ -37148,8 +37646,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 63 AS col2, + 41 AS col2 +---- +-63 +41 query I rowsort label-7100 SELECT ALL + 87 + + CAST ( NULL AS INTEGER ) @@ -37457,8 +37958,11 @@ SELECT DISTINCT COUNT ( * ) AS col2, + COUNT ( * ) - + 75 * - 50 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \- Int64\(44\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 - ( + + 44 ) * COUNT ( * ) AS col1, 9 AS col1 +---- +-92 +9 query I rowsort label-7159 SELECT DISTINCT COUNT ( * ) * - 76 + 18 + + 71 - + 19 + - + 20 / + - CASE - 14 WHEN + 52 THEN NULL ELSE 42 + + 38 END * - - 47 + + 62 + + + MAX ( DISTINCT + 63 ) @@ -37700,8 +38204,12 @@ 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\(1\)\) AS count\(\*\) \* Int64\(76\) \* Int64\(96\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort 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 +---- +-3432 +6 +NULL query I rowsort label-7204 SELECT 46 / - 78 * SUM ( 85 ) * + 54 * - + MAX ( + - 3 ) + + 8 * + 73 AS col0 @@ -37931,8 +38439,11 @@ SELECT ALL + 60 + 63 - + 22 + + - 70 * + 56 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 AS col0, 73 AS col0 +---- +73 +91 query I rowsort SELECT 69 * + + 74 + + 42 * - 7 @@ -38783,8 +39294,11 @@ SELECT DISTINCT - CAST ( + COUNT ( + 2 ) AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(10\) / Int64\(38\) \+ CAST\(NULL AS Int32\) \* Int64\(\-70\) AS col2" at position 0 and "Int64\(74\) \+ Int64\(\-69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 61 * + 10 / 38 + CAST ( NULL AS INTEGER ) * - 70 col2, 74 + - 69 AS col2 +---- +5 +NULL query I rowsort SELECT 40 * - 73 @@ -39847,8 +40361,11 @@ SELECT - + 10 + + - 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(51\) \+ \(\- CAST\(Int64\(9\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - COUNT ( * ) AS col2, 51 + - CAST ( + 9 AS INTEGER ) AS col2 +---- +-1 +42 query I rowsort label-7615 SELECT + + 41 / + + ( - - 63 ) + - - 62 + - 34 / - 34 + - 6 @@ -40153,8 +40670,11 @@ SELECT DISTINCT - 46 / + - 68 * 61 + + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(\-26\) AS col1" at position 0 and "min\(Int64\(\-65\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 * - 26 col1, + MIN ( - 65 ) col1 +---- +-65 +-78 query I rowsort SELECT 91 * - 75 @@ -40297,8 +40817,12 @@ SELECT - 58 + + 80 * - 83 # Datafusion - Expected - 5852 # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \* Int64\(\-19\) \* Int64\(11\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 28 * - 19 * + + 11 AS col2, + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col2 +---- +1 +5852 +NULL query II rowsort SELECT 81 AS col0, - 60 * - 23 AS col2 @@ -40569,8 +41093,11 @@ SELECT 59 * COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1430 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \+ Int64\(98\) \+ Int64\(\-61\) \+ Int64\(\-81\) \* Int64\(18\) AS col2" at position 0 and "Int64\(\-33\) \* Int64\(0\) \* Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 9 + + 98 + + - 61 + - 81 * + 18 AS col2, - 33 * + 0 * - 15 AS col2 +---- +-1430 +0 query I rowsort SELECT 49 * + + 20 @@ -40798,8 +41325,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT + + 49 * 71 * - CAST ( NULL AS FLOAT8 ) - - COUNT ( * ) col2, - ( COUNT ( * ) ) AS col2 +---- +-1 +NULL query I rowsort label-7798 SELECT DISTINCT + 19 / 98 @@ -41158,8 +41688,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) + - MAX ( ALL - 34 ) AS col2, ( 52 ) AS col2 +---- +35 +52 query I rowsort SELECT + ( - 33 ) col2 @@ -41277,8 +41810,11 @@ SELECT ALL - 19 * - COUNT ( DISTINCT + + 90 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2668 # Datafusion - Expected - 119 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) \* Int64\(\-58\) AS col2" at position 0 and "Int64\(95\) \+ Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 46 * - 58 AS col2, + 95 + 24 AS col2 +---- +119 +2668 query I rowsort label-7890 SELECT 68 * + COUNT ( * ) AS col0 @@ -41367,8 +41903,11 @@ SELECT - 29 - + 0 / - ( + 87 ) / - COALESCE ( + - 38, - + 86 / - - 8 + - - 74 * # 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\(55\) \- \(\- Int64\(\-33\)\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 55 - - - 33 AS col2, 12 AS col2 +---- +12 +22 query I rowsort SELECT ALL - + 13 col0 @@ -42592,8 +43131,11 @@ SELECT DISTINCT + 6 * - 41 + + COALESCE ( - 53, + CAST ( 49 AS INTEGER ) / + 86, # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col2" at position 0 and "Int64\(\-99\) \+ Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 67 AS col2, - 99 + + 4 AS col2 +---- +-95 +67 query I rowsort SELECT + 45 * 77 @@ -42649,8 +43191,12 @@ SELECT 3 - + + 99 * 26 # Datafusion - Expected - 14 # Datafusion - Expected - 1 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col2" at position 0 and "\(\- CAST\(\(\- Int64\(\-70\)\) AS Int32\)\) \+ Int64\(88\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 14 col2, COUNT ( * ) AS col0, - CAST ( - - 70 AS INTEGER ) + + 88 AS col2 +---- +1 +14 +18 query I rowsort label-8155 SELECT COUNT ( * ) / + - ( COUNT ( * ) ) * + - ( + - CASE + - 85 WHEN + ( 61 ) THEN 29 + 45 ELSE NULL END ) AS col0 @@ -43910,8 +44456,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -97088 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "Int64\(64\) \* Int64\(41\) \* \(\- Int64\(37\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 89 col2, 64 * + 41 * - + 37 col2 +---- +-97088 +89 query I rowsort SELECT - 98 * + 17 @@ -44431,8 +44980,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 9 ) AS col1, - COUNT ( * ) AS col1 +---- +-1 +9 query I rowsort SELECT ALL - 22 * - 40 + 48 AS col0 @@ -44580,8 +45132,11 @@ SELECT 11 * + 20 / + NULLIF ( COUNT ( * ), - 97 + + 27 * + + 93 / 48 ) col0 # 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 col2" at position 0 and "count\(Int64\(17\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 41 + 46 col2, ( + COUNT ( + 17 ) ) AS col2 +---- +1 +87 query II rowsort SELECT ALL 80 + - 99 AS col0, + 58 @@ -44711,8 +45266,11 @@ SELECT ALL 58 + + ( + 58 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ Int64\(\-92\) \+ Int64\(8\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 95 + - 92 + ( + 8 ) AS col2, 30 col2 +---- +11 +30 query II rowsort label-8546 SELECT DISTINCT 46, + COUNT ( * ) / - 78 * - 79 AS col2 @@ -44791,8 +45349,11 @@ SELECT 2 / + + 63 + - 43 + - 55 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 281659 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(13\)\) AS col1" at position 0 and "Int64\(84\) \+ Int64\(\-68\) \* Int64\(\-44\) \* Int64\(95\) \- Int64\(73\) \+ Int64\(\-54\) \* Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 13 AS col1, 84 + - 68 * - 44 * + 95 - 73 + - 54 * + 48 AS col1 +---- +-13 +281659 query II rowsort label-8561 SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, + NULLIF ( 13, - 18 - + 62 ) * - 15 + CAST ( NULL AS INTEGER ) + + 21 * 40 * + 44 AS col1 @@ -44952,8 +45513,11 @@ SELECT - 39 - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \- Int64\(\-11\) AS col0" at position 0 and "Int64\(\-62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 45 - - 11 AS col0, - 62 AS col0 +---- +-62 +56 query I rowsort SELECT + 51 * - 91 AS col1 @@ -45150,8 +45714,11 @@ SELECT + 45 + - 69 AS col2 # 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 col2" at position 0 and "Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 AS col2, - 38 AS col2 +---- +-38 +57 query II rowsort label-8630 SELECT + 21 + - 11 + 39, - COUNT ( * ) col1 @@ -46238,8 +46805,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(98\), Int64\(72\) \* count\(Int64\(88\)\)\)\) AS col0" at position 0 and "Int64\(\-7\) \- Int64\(16\) \+ min\(\(\- nullif\(Int64\(49\), Int64\(82\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( 98, 72 * COUNT ( 88 ) ) AS col0, - 7 - 16 + + + MIN ( ALL - NULLIF ( + 49, + 82 ) ) AS col0 +---- +-72 +-98 query II rowsort SELECT ALL 84 col1, - 66 - + 98 @@ -46345,8 +46915,11 @@ SELECT + COALESCE ( - 68, + - COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "Int64\(\-34\) / Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 AS col2, - 34 / 14 AS col2 +---- +-2 +8 query II rowsort SELECT DISTINCT + + 97 col2, 28 @@ -46410,8 +46983,11 @@ SELECT ALL 60 + - 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \+ Int64\(\-71\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 20 + - 71 AS col2, 35 AS col2 +---- +-51 +35 query I rowsort SELECT - ( + 78 ) + + + 73 + - 41 * 11 AS col2 @@ -46534,8 +47110,11 @@ SELECT ALL + 90 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3102 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* Int64\(94\) AS col2" at position 0 and "Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 33 * 94 AS col2, - 27 AS col2 +---- +-27 +3102 query I rowsort SELECT + 44 * + - ( - 98 ) @@ -46654,8 +47233,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4209 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \* Int64\(\-85\) \+ Int64\(21\) \- Int64\(13\) \* \(\- Int64\(\-93\)\) \+ Int64\(85\) \* Int64\(9\) \+ Int64\(57\) \+ Int64\(69\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 53 * - 85 + 21 - + + 13 * - - 93 + 85 * 9 + + 57 + + 69 + + COUNT ( * ) AS col1, - 38 AS col1 +---- +-38 +4209 query I rowsort label-8915 SELECT + + 83 + + CAST ( - 98 AS INTEGER ) + + 82 + + + COUNT ( ALL + + ( + 51 ) ) @@ -46819,8 +47401,11 @@ SELECT + 3 + 97 * COUNT ( - 27 ) * + + COUNT ( * ) - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3904 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-64\) \* min\(Int64\(61\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col2, - 64 * + MIN ( 61 ) col2 +---- +-3904 +NULL query I rowsort label-8947 SELECT 16 / + 91 col1 @@ -47153,8 +47738,11 @@ SELECT - 73 - - + 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "Int64\(15\) \+ Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 AS col0, + 15 + + 77 AS col0 +---- +14 +92 query I rowsort label-9012 SELECT ALL MAX ( + 27 ) @@ -47389,8 +47977,11 @@ SELECT ALL + - 44 / + + 73 * COALESCE ( - COUNT ( * ), 24 * + COUNT ( * ) + + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col0" at position 0 and "nullif\(Int64\(27\), Int64\(14\) \* CASE Int64\(19\) WHEN Int64\(56\) \+ Int64\(89\) \- max\(DISTINCT CAST\(NULL AS Float64\)\) \* Int64\(94\) THEN \(\- Int64\(42\)\) \+ Int64\(84\) END / Int64\(12\) / Int64\(85\) \+ Int64\(72\) \+ \(\- Int64\(74\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 93 col0, NULLIF ( + 27, 14 * + CASE + 19 WHEN 56 + 89 - + MAX ( DISTINCT CAST ( NULL AS FLOAT8 ) ) * + 94 THEN - + 42 + + 84 END / 12 / 85 + 72 + - + 74 ) AS col0 +---- +27 +93 query II rowsort label-9057 SELECT ALL + 80, + 4 * + COUNT ( * ) * + COUNT ( * ) AS col2 @@ -47769,8 +48360,11 @@ SELECT DISTINCT + - 91 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2439 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(30\) \+ Int64\(99\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 78 * 30 + 99 AS col2, + COUNT ( * ) AS col2 +---- +1 +2439 query I rowsort SELECT ALL + NULLIF ( + 94, 0 + - - 71 ) AS col2 @@ -48129,8 +48723,11 @@ SELECT 14, 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \- CASE Int64\(\-59\) WHEN CASE Int64\(32\) WHEN Int64\(55\) THEN NULL WHEN Int64\(\-68\) \* \(\- CAST\(Int64\(84\) AS Int32\)\) THEN NULL ELSE Int64\(75\) END \+ \(\- \(\- avg\(Int64\(75\)\)\)\) \+ sum\(\(\- Int64\(51\)\)\) \* Int64\(43\) \+ Int64\(33\) / Int64\(\-87\) \- \(\- Int64\(\-34\)\) \+ Int64\(\-83\) THEN Int64\(45\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE Int64\(0\) END AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +22 +59 query I rowsort label-9199 SELECT ALL + 50 / 24 @@ -48338,8 +48935,11 @@ SELECT MIN ( + 4 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(2\) AS col0" at position 0 and "Int64\(\-83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 * + 2 AS col0, - 83 col0 +---- +-83 +28 query I rowsort label-9239 SELECT ALL - CASE - 73 WHEN SUM ( - 7 ) THEN - CASE COUNT ( * ) WHEN 63 THEN - MIN ( 2 ) * - COUNT ( * ) * + 49 + + 26 WHEN 4 THEN NULL WHEN 44 THEN NULL ELSE - 88 + + + 66 + - 33 * + + COUNT ( * ) / - 44 / 11 END END @@ -48453,8 +49053,11 @@ SELECT DISTINCT 76, - ( + - 93 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - -3298 -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\(\-34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 AS col0, + 97 * - 34 AS col0 +---- +-3298 +42 query II rowsort SELECT + 86 * + 17 * - 74 AS col0, 46 AS col1 @@ -48572,8 +49175,11 @@ SELECT - + 53 - - 22 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 166796 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(\-92\) \* Int64\(\-37\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 49 * - 92 * - 37 AS col1, + 9 AS col1 +---- +166796 +9 query I rowsort SELECT - 18 * 56 col2 @@ -48913,8 +49519,11 @@ SELECT ALL - 49 * - 8 + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - -87840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(Int64\(53\) AS Int32\)\) AS col2" at position 0 and "Int64\(61\) \* \(\- \(\- sum\(Int64\(32\)\)\)\) \* Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) * - CAST ( 53 AS INTEGER ) AS col2, 61 * - - SUM ( ALL + 32 ) * - 45 col2 +---- +-87840 +53 query I rowsort label-9350 SELECT CAST ( NULL AS INTEGER ) * + - 11 - - + 37 / - COUNT ( * ) @@ -49094,8 +49703,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 26 * + 5 + - COUNT ( * ) * - + 93 * - ( 81 ) AS col0, 72 AS col0 +---- +-7403 +72 query I rowsort label-9385 SELECT - 30 * - + 33 + - + 38 - + - COUNT ( * ) * 82 @@ -49637,8 +50249,11 @@ 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\(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\. +query II valuesort SELECT ALL + + COUNT ( * ) * 26 AS col0, 62 / + + 22 AS col0 +---- +2 +26 query I rowsort label-9489 SELECT 90 * SUM ( DISTINCT - 69 ) + - 13 @@ -50041,8 +50656,11 @@ SELECT - 47 AS col2, COUNT ( * ) * + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "nullif\(Int64\(\-49\), Int64\(98\)\) \+ \(\- \(\- sum\(Int64\(\-52\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 58 col2, + NULLIF ( - 49, 98 ) + - - SUM ( ALL + - 52 ) AS col2 +---- +-101 +58 query I rowsort SELECT ( 30 ) col0 @@ -50492,8 +51110,11 @@ SELECT + ( + - 12 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -483 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* Int64\(\-69\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 7 * - 69 AS col1, ( + COUNT ( * ) ) AS col1 +---- +-483 +1 query I rowsort label-9655 SELECT ALL + MAX ( ALL 5 ) AS col2 @@ -50964,8 +51585,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(\-14\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 48 AS col2, + COUNT ( * ) * - - 14 AS col2 +---- +-48 +14 query I rowsort SELECT - 32 AS col1 @@ -51446,8 +52070,11 @@ SELECT ALL + COUNT ( * ) + - COUNT ( * ) + + 35 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \+ \(\- coalesce\(Int64\(\-54\), Int64\(65\), Int64\(\-51\)\)\) AS col2" at position 0 and "Int64\(74\) \+ Int64\(\-55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 97 + - COALESCE ( - 54, 65, - 51 ) AS col2, 74 + - 55 AS col2 +---- +-43 +19 query I rowsort SELECT ALL - 80 @@ -51580,8 +52207,11 @@ SELECT + 23 + 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-53\) \+ CAST\(Int64\(\-63\) AS Float64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + - 51 AS col0, - CAST ( NULL AS INTEGER ) * - 53 + + CAST ( - 63 AS FLOAT8 ) AS col0 +---- +-51 +NULL query I rowsort SELECT - 37 * 74 @@ -51734,8 +52364,11 @@ SELECT 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-38\)\) AS col0" at position 0 and "Int64\(93\) \+ Int64\(\-75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 38 AS col0, 93 + - 75 col0 +---- +18 +38 query I rowsort label-9897 SELECT DISTINCT - COUNT ( * ) + + - 44 * - - 13 - - NULLIF ( 96, + ( CAST ( NULL AS INTEGER ) ) / 54 ) - - 97 + 84 * 48 + + 62 * - 20 * + + 33 - 3 AS col2 @@ -51928,8 +52561,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + - 6 AS col1, 22 AS col1 +---- +-5 +22 query I rowsort label-9935 SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 93 AS col0 diff --git a/data/sqlite/random/expr/slt_good_29.slt b/data/sqlite/random/expr/slt_good_29.slt index 5f62563..9ab9e9e 100644 --- a/data/sqlite/random/expr/slt_good_29.slt +++ b/data/sqlite/random/expr/slt_good_29.slt @@ -244,8 +244,11 @@ SELECT ALL + 34 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 693 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(37\) \+ Int64\(97\) \+ CASE Int64\(78\) WHEN \(\- Int64\(\-49\)\) THEN NULL ELSE Int64\(27\) \+ \(\- Int64\(60\)\) END AS col1" at position 0 and "\(\- max\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 * + 37 + 97 + + CASE + 78 WHEN - - 49 THEN NULL ELSE 27 + - ( 60 ) END AS col1, - MAX ( - CAST ( NULL AS INTEGER ) ) AS col1 +---- +693 +NULL query I rowsort SELECT ALL + 82 AS col0 @@ -339,8 +342,11 @@ SELECT 32 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(65\) / Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 59 + - + CAST ( NULL AS INTEGER ) AS col1, + ( 65 ) / + + 17 AS col1 +---- +3 +NULL query I rowsort label-58 SELECT + COUNT ( * ) * 0 AS col1 @@ -1651,8 +1657,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 AS col0, 38 * - COUNT ( * ) AS col0 +---- +-38 +0 query I rowsort SELECT NULLIF ( 96, + 37 + - 0 ) * + + 49 + + 55 @@ -2035,8 +2044,11 @@ SELECT DISTINCT + 87 / + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5200 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(\-65\) \* \(\- count\(DISTINCT Int64\(\-92\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 * - 65 * - COUNT ( DISTINCT - 92 ) col2, COUNT ( * ) AS col2 +---- +1 +5200 query I rowsort SELECT ALL 89 AS col0 @@ -2142,8 +2154,11 @@ SELECT + - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 49 -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\(92\)\)\) \* Int64\(\-49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 25 AS col0, - COUNT ( + 92 ) * - 49 col0 +---- +-25 +49 query I rowsort SELECT - 58 @@ -2265,8 +2280,11 @@ SELECT DISTINCT + 34 * 21 - + 21 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 255583 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) AS col1" at position 0 and "Int64\(34\) \* Int64\(80\) \* \(\- sum\(Int64\(\-94\)\)\) \- Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - 74 ) col1, 34 * + 80 * - + SUM ( - 94 ) - + 97 AS col1 +---- +-74 +255583 query I rowsort SELECT ALL 1 AS col1 @@ -2917,8 +2935,11 @@ SELECT ALL - 69 + 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(min\(Int64\(13\)\) AS Int32\) AS col1" at position 0 and "Int64\(49\) / Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 - - COUNT ( * ) * CAST ( + MIN ( 13 ) AS INTEGER ) AS col1, 49 / 49 AS col1 +---- +1 +84 query I rowsort SELECT - + 86 AS col1 @@ -3617,8 +3638,11 @@ SELECT DISTINCT - 75 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 70 -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 "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 89 + - 58 AS col2, 70 AS col2 +---- +31 +70 query I rowsort label-697 SELECT CAST ( NULL AS INTEGER ) * - COALESCE ( + 57, + + 92 ) AS col2 @@ -3965,8 +3989,11 @@ SELECT + CAST ( - ( ( + NULLIF ( - + NULLIF ( + - 76, 78 * + + 30 + 0 - MIN ( DI # 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 "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 40 AS col0, 63 AS col0 +---- +-40 +63 query II rowsort SELECT ALL + 42, - 54 col0 @@ -5390,8 +5417,11 @@ SELECT ALL - + 74 * 57 + - 36 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ min\(\(\- CAST\(Int64\(78\) AS Int32\)\)\) AS col1" at position 0 and "Int64\(\-39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 93 + + MIN ( - CAST ( 78 AS INTEGER ) ) AS col1, - 39 AS col1 +---- +-39 +15 query I rowsort SELECT ALL - 34 - 2 @@ -5803,8 +5833,11 @@ SELECT ALL + 85 + - - ( + NULLIF ( ( + 3 ), + + 33 + - 85 + 48 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2200 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(55\), \(\- \(\- Int64\(84\)\)\) \+ Int64\(\-29\) \* Int64\(\-66\)\)\) \* Int64\(\-40\) AS col1" at position 0 and "\(\- CASE Int64\(84\) WHEN Int64\(45\) THEN Int64\(78\) \+ Int64\(\-11\) \+ Int64\(15\) \* Int64\(\-99\) / Int64\(\-72\) WHEN Int64\(29\) \* Int64\(64\) THEN Int64\(52\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( + 55, - - ( 84 ) + + - 29 * - 66 ) * - 40 col1, - CASE + 84 WHEN 45 THEN + + 78 + - 11 + + 15 * - 99 / + - 72 WHEN 29 * + 64 THEN 52 END AS col1 +---- +2200 +NULL query I rowsort SELECT ALL 93 AS col1 @@ -5814,14 +5847,20 @@ SELECT ALL 93 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- sum\(Int64\(38\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) col0, - SUM ( + 38 ) AS col0 +---- +-38 +1 # 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 47 AS col1, 35 + - COUNT ( * ) AS col1 +---- +-47 +34 query I rowsort SELECT ALL NULLIF ( - 36, - - 67 - + 6 - 3 + - + 70 + + - 28 ) @@ -6859,8 +6898,11 @@ SELECT + 44 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2765 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- Int64\(19\)\)\)\) \+ CASE \(\- Int64\(46\)\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN \(\- Int64\(\-65\)\) END AS col1" at position 0 and "Int64\(\-79\) \* \(\- nullif\(Int64\(\-35\), \(\- Int64\(\-2\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MAX ( - + 19 ) + CASE - + ( + ( 46 ) ) WHEN - CAST ( NULL AS INTEGER ) THEN - - 65 END AS col1, - 79 * + - NULLIF ( - 35, - - 2 ) AS col1 +---- +-2765 +NULL query I rowsort SELECT 28 @@ -7185,8 +7227,11 @@ SELECT DISTINCT - 41 - - 19 + - - 72 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - -28710 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col1" at position 0 and "Int64\(33\) \* Int64\(\-58\) \* Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 49 AS col1, 33 * - 58 * 15 AS col1 +---- +-28710 +-49 query II rowsort label-1389 SELECT DISTINCT - 11 AS col2, + 96 + 99 + + + COUNT ( * ) @@ -7212,8 +7257,11 @@ SELECT - 48 * + 73 + 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col1" at position 0 and "Int64\(\-81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 AS col1, - 81 AS col1 +---- +-81 +14 query I rowsort label-1394 SELECT - 59 / + 77 @@ -7551,8 +7599,11 @@ 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\(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\. +query II valuesort SELECT ALL 15 col0, - 60 / + COUNT ( * ) + + 38 + - NULLIF ( - 28, - COUNT ( DISTINCT + 26 ) ) col0 +---- +15 +6 query I rowsort SELECT - 16 @@ -7755,8 +7806,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( + 61, + 88 * - 75 ) col1, 57 * - COUNT ( * ) col1 +---- +-57 +61 query I rowsort SELECT ALL + 50 AS col1 @@ -7898,8 +7952,11 @@ SELECT - - 14 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + MAX ( CAST ( NULL AS INTEGER ) ) AS col1, + 72 AS col1 +---- +72 +NULL query I rowsort SELECT DISTINCT + 38 + - 50 AS col0 @@ -8970,8 +9027,11 @@ SELECT COUNT ( * ) * - - NULLIF ( - + 0, + 84 * - 95 ) + - + COUNT ( * ) * - 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - -140 # Datafusion - Expected - 5820 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \* Int64\(35\) AS col2" at position 0 and "Int64\(60\) \* Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 4 * 35 AS col2, 60 * + + 97 AS col2 +---- +-140 +5820 query I rowsort SELECT ALL - 62 col1 @@ -9107,8 +9167,11 @@ SELECT 14 + 20 + 57 * 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \- Int64\(21\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(84\) \+ Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 - 21 * + COUNT ( * ) AS col1, 84 + 17 AS col1 +---- +101 +29 query I rowsort SELECT ALL 31 AS col1 @@ -9857,8 +9920,11 @@ SELECT DISTINCT - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 AS col2, 83 AS col2 +---- +42 +83 query I rowsort SELECT 77 AS col1 @@ -10638,8 +10704,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 17 col0, - 22 + - COUNT ( * ) AS col0 +---- +-23 +17 query I rowsort SELECT ALL 39 @@ -11030,8 +11099,11 @@ SELECT ALL - - 36 / + 23 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-17\) AS col1" at position 0 and "Int64\(\-35\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) + + - 17 AS col1, - 35 * + + COUNT ( * ) AS col1 +---- +-35 +NULL query I rowsort SELECT DISTINCT - 31 @@ -11306,8 +11378,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 13 * - 20 * + 32 * - - 36 + + NULLIF ( + - 7, + 47 ) + 60 col0, COUNT ( * ) * - 78 AS col0 +---- +-299467 +-78 query I rowsort SELECT DISTINCT 49 + 10 @@ -11439,8 +11514,11 @@ SELECT ALL + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 126 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) 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 II valuesort SELECT ( 3 ) AS col2, + 37 + 89 col2 +---- +126 +3 query I rowsort label-2209 SELECT - + 91 * + + COALESCE ( + 16, - 39 * + COUNT ( * ) ) * + + 19 AS col1 @@ -11697,8 +11775,11 @@ SELECT DISTINCT 48 + - - 35 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-8\) \- Int64\(\-62\) \- \(\- Int64\(\-35\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, - 8 - - 62 - - - 35 AS col2 +---- +19 +NULL query I rowsort SELECT DISTINCT + 91 + + ( + 53 ) AS col0 @@ -12603,8 +12684,11 @@ 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\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-79\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( + 72 ) AS col1, 47 + - + 56 + + NULLIF ( - ( - NULLIF ( - + 20, - + 55 + - + 70 ) ), - - COUNT ( * ) + - 79 ) col1 +---- +-29 +1 query II rowsort label-2435 SELECT 1 * + 8, 53 + + - ( + COUNT ( * ) ) + + + 48 AS col1 @@ -14372,8 +14456,11 @@ SELECT + 42 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(23\) \+ Int64\(\-85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 AS col2, + 23 + - 85 AS col2 +---- +-62 +47 query I rowsort label-2780 SELECT - MIN ( DISTINCT 99 ) * ( 39 ) + - 5 + - - 71 + 10 @@ -14763,8 +14850,11 @@ SELECT DISTINCT - + 18 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 131 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(56\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 75 + 56 AS col2, + COUNT ( * ) AS col2 +---- +1 +131 query I rowsort SELECT DISTINCT - 98 AS col1 @@ -14824,8 +14914,11 @@ SELECT ALL - MAX ( ALL 20 ) + - + ( - + COUNT ( - - 46 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 88 col0, + 64 AS col0 +---- +-88 +64 query I rowsort SELECT ALL + 54 + 75 AS col2 @@ -15159,8 +15252,11 @@ SELECT - 78 + + 89 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "CASE Int64\(57\) WHEN Int64\(45\) THEN Int64\(18\) \* \(\- avg\(Int64\(64\)\)\) WHEN Int64\(60\) THEN NULL END \+ Int64\(33\) \* Int64\(\-94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL ( 37 ) AS col2, CASE 57 WHEN 45 THEN + 18 * - + AVG ( 64 ) WHEN 60 THEN NULL END + + 33 * - 94 AS col2 +---- +37 +NULL query I rowsort SELECT - 54 AS col0 @@ -15407,8 +15503,11 @@ SELECT 81 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 "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 AS col1, + 17 AS col1 +---- +16 +17 query I rowsort SELECT DISTINCT - 18 * + 17 AS col2 @@ -15570,8 +15669,11 @@ SELECT ALL - 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 530625 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \+ \(\- Int64\(\-67\)\) \+ \(\- Int64\(16\)\) \* Int64\(\-4\) AS col1" at position 0 and "Int64\(61\) \+ \(\- Int64\(73\)\) \* Int64\(\-79\) \* Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 96 + + ( - - 67 ) + - + 16 * - 4 col1, + ( + 61 ) + + - ( 73 ) * - 79 * ( + 92 ) AS col1 +---- +35 +530625 query I rowsort SELECT + + 16 col0 @@ -15700,8 +15802,11 @@ SELECT COUNT ( * ) + + 8 # 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 col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 57 AS col2, 16 AS col2 +---- +-57 +16 query II rowsort SELECT ALL 6 AS col0, 68 * - + 14 @@ -16645,8 +16750,11 @@ SELECT 25 * + + 76 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, 14 AS col2 +---- +1 +14 query I rowsort label-3220 SELECT NULLIF ( - - 84, + + COUNT ( * ) ) * + 59 * + - 23 * COUNT ( * ) * - NULLIF ( + 17, + - 86 * + CASE + - 20 WHEN - COUNT ( * ) * + 37 THEN - 39 WHEN - 54 THEN + 22 END / + 97 ) * 6 AS col0 @@ -16681,8 +16789,11 @@ SELECT - ( - - 30 ) / + - 36 + - + 27 + + + 74 # 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\(5\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 5 AS col0, 0 AS col0 +---- +0 +5 query I rowsort SELECT ALL + - 45 @@ -16698,8 +16809,12 @@ SELECT - - 5 * 60 + + 39 * + 15 AS col2 # Datafusion - Expected - -46 # Datafusion - Expected - 15 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col1" at position 1 and "Int64\(59\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + ( NULLIF ( 46, + 63 ) ) * - COUNT ( * ) AS col2, 15 AS col1, + 59 AS col1 +---- +-46 +15 +59 query I rowsort label-3230 SELECT + + COUNT ( * ) * + 80 AS col0 @@ -17237,8 +17352,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) + - 30 + - 13 + + 80 * + - 97 col2, 92 AS col2 +---- +-7804 +92 query I rowsort SELECT 50 AS col2 @@ -17353,8 +17471,11 @@ SELECT - 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col2" at position 0 and "Int64\(\-10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 97 AS col2, - 10 AS col2 +---- +-10 +-97 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -17552,8 +17673,11 @@ SELECT - 31 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CASE Int64\(\-92\) WHEN Int64\(\-78\) THEN Int64\(35\) WHEN Int64\(0\) THEN NULL END\), Int64\(90\) / Int64\(45\) \+ Int64\(12\), Int64\(0\)\) \- Int64\(29\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( - CASE + - 92 WHEN - 78 THEN + + ( + + 35 ) WHEN 0 THEN NULL END, 90 / + 45 + + 12, - 0 ) - + ( + ( + 29 ) ) AS col1, + 93 AS col1 +---- +-15 +93 query I rowsort label-3394 SELECT - 19 * - NULLIF ( + 4, + + ( + COUNT ( * ) ) * + 12 - + - 94 - + 75 * ( + 58 ) / - 90 ) @@ -17838,8 +17962,11 @@ SELECT + + 92 + 87 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 AS col1, 13 AS col1 +---- +13 +57 query I rowsort SELECT - + 23 AS col2 @@ -19190,8 +19317,11 @@ SELECT - 60 * 42 + 61 + + COUNT ( * ) + + COUNT ( * ) + + 55 + + - CAST ( + ( + # Datafusion - Datafusion expected results: # Datafusion - Expected - 2146 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* nullif\(Int64\(74\), \(\- CAST\(\(\- Int64\(82\)\) AS Float64\)\)\) AS col2" at position 0 and "\(\- \(\- Int64\(\-2\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT 29 * NULLIF ( 74, - CAST ( - ( 82 ) AS FLOAT8 ) ) AS col2, - ( - - 2 ) AS col2 +---- +-2 +2146 query I rowsort SELECT ALL - ( 27 ) * + 15 * - + 91 @@ -20056,8 +20186,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 71 AS col2, 60 AS col2 +---- +-71 +60 query I rowsort label-3878 SELECT COUNT ( * ) + COUNT ( * ) * + - 98 AS col2 @@ -20487,8 +20620,11 @@ SELECT ALL + 62 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) / CAST\(Int64\(\-14\) AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "coalesce\(Int64\(43\), \(\- Int64\(29\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 97 / + ( CAST ( - 14 AS INTEGER ) ) + - COUNT ( * ) AS col0, + COALESCE ( 43, - + 29 ) AS col0 +---- +-7 +43 query I rowsort SELECT DISTINCT + 39 @@ -21675,8 +21811,11 @@ SELECT ALL 96 + + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* \(\- count\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col0" at position 0 and "Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 92 * - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0, - 26 AS col0 +---- +-26 +0 query I rowsort label-4190 SELECT 12 * - MAX ( ALL + + 94 ) @@ -21995,8 +22134,11 @@ SELECT + 2 + + COALESCE ( 8, + ( 50 ), - - ( - 98 ) * - + ( - COUNT ( * ) ) ) / # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-87\)\) AS col2" at position 0 and "Int64\(52\) \+ CASE Int64\(3\) WHEN \(\- CAST\(Int64\(43\) AS Float64\)\) THEN Int64\(75\) \+ \(\- Int64\(3\)\) \- \(\- Int64\(\-60\)\) WHEN Int64\(\-77\) THEN Int64\(47\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - ( - 87 ) ) AS col2, 52 + CASE + 3 WHEN - CAST ( + 43 AS FLOAT8 ) THEN + 75 + - + 3 - - - 60 WHEN - 77 THEN 47 END AS col2 +---- +87 +NULL query I rowsort label-4252 SELECT + + CAST ( NULL AS INTEGER ) AS col2 @@ -22123,8 +22265,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -847 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* Int64\(77\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 11 * + 77 AS col1, 96 AS col1 +---- +-847 +96 query I rowsort SELECT - 95 + - 21 + - 48 * + 31 + 90 AS col1 @@ -22670,8 +22815,11 @@ SELECT ALL - 25 + + 47 * - 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col1" at position 0 and "Int64\(24\) / Int64\(41\) \- Int64\(94\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 36 AS col1, 24 / 41 - + 94 + + COUNT ( * ) AS col1 +---- +-36 +-93 query I rowsort SELECT ALL 47 @@ -23844,8 +23992,11 @@ SELECT DISTINCT - 3 * + + 19 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(46\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \- Int64\(\-37\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- coalesce\(Int64\(44\), Int64\(57\) \+ count\(Int64\(81\)\) \+ \(\- Int64\(\-27\)\) \+ coalesce\(Int64\(40\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-98\)\) / Int64\(99\)\)\) \- Int64\(15\) \* CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\) / Int64\(93\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +33 +NULL query I rowsort SELECT - 13 AS col1 @@ -23901,8 +24052,11 @@ SELECT + COUNT ( * ) - + 87 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 41 AS col0, + CAST ( NULL AS INTEGER ) + + 44 AS col0 +---- +41 +NULL query I rowsort SELECT ALL 92 @@ -24152,8 +24306,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 57 AS col0, - COUNT ( * ) AS col0 +---- +-1 +-57 query I rowsort SELECT ALL 13 col1 @@ -24308,8 +24465,12 @@ NULL # Datafusion - Expected - 41 # Datafusion - Expected - -8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT Int64\(\-41\)\)\) AS col1" at position 0 and "min\(DISTINCT Int64\(\-8\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort SELECT ALL + + ( - MIN ( DISTINCT + - 41 ) ) AS col1, MIN ( DISTINCT + ( - 8 ) ) AS col1, - - CASE + CAST ( NULL AS FLOAT8 ) WHEN 86 THEN - COUNT ( * ) END + + CAST ( NULL AS FLOAT8 ) AS col1 +---- +-8 +41 +NULL query I rowsort SELECT ALL 76 - 14 * - - 96 * ( ( - 69 ) ) @@ -26274,8 +26435,12 @@ SELECT 25 # Datafusion - Expected - -66 # Datafusion - Expected - -6 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(66\)\) AS col0" at position 0 and "Int64\(\-6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + 66 AS col0, - 6 AS col0, + + NULLIF ( + + 79, - COUNT ( * ) ) +---- +-6 +-66 +79 query I rowsort SELECT ALL + 48 - - + 20 @@ -26362,8 +26527,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) * - 81 AS col2, - 37 AS col2 +---- +-37 +81 query I rowsort SELECT + 70 AS col0 @@ -26675,8 +26843,11 @@ 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\(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\. +query II valuesort 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 +---- +-69 +0 query II rowsort SELECT 81, + 52 * + 77 col0 @@ -27116,8 +27287,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 AS col0, COUNT ( * ) AS col0 +---- +1 +11 query I rowsort SELECT - 56 AS col2 @@ -27348,8 +27522,12 @@ SELECT + 76 - 94 # Datafusion - Expected - -62 # Datafusion - Expected - 62 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col0" at position 0 and "Int64\(87\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 62 AS col0, + 62 AS col1, 87 AS col0 +---- +-62 +62 +87 query I rowsort label-5288 SELECT ALL 58 - - COUNT ( * ) + + 11 / + ( + NULLIF ( - - ( + - 25 ), + 68 / - 17 ) ) * + - CAST ( NULL AS INTEGER ) * COUNT ( ALL 21 ) AS col1 @@ -27416,15 +27594,22 @@ SELECT ALL - 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, - 75 AS col1 +---- +-75 +1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 67 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col2" at position 0 and "\(\- Int64\(0\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 98 AS col2, 67, - - 0 col2 +---- +0 +67 +98 query I rowsort label-5302 SELECT DISTINCT + SUM ( DISTINCT - 1 ) col1 @@ -27464,8 +27649,11 @@ 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\(1\)\) AS count\(\*\), Int64\(79\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 51 AS col1, COALESCE ( 30, + + COUNT ( * ), + 79 ) AS col1 +---- +-51 +30 query I rowsort SELECT - - 33 * - 99 - + + 51 AS col2 @@ -27495,8 +27683,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, 97 AS col2 +---- +-1 +97 query II rowsort SELECT ALL + - 44 + - + 81 AS col2, ( - 76 ) @@ -27888,8 +28079,12 @@ SELECT NULLIF ( + + 79, + 19 + - 50 ) + 9 * + 53 # Datafusion - Expected - 2 # Datafusion - Expected - 173 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \+ Int64\(92\) \+ Int64\(\-58\) / \(\- sum\(Int64\(56\)\)\) AS col2" at position 1 and "Int64\(\-12\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 2, 80 + + + 92 + - 58 / - SUM ( 56 ) AS col2, - 12 AS col2 +---- +-12 +173 +2 query I rowsort SELECT 23 AS col1 @@ -27943,8 +28138,11 @@ SELECT - + 61, + 60 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-48\)\) AS col0" at position 0 and "CAST\(Int64\(43\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 48 AS col0, + CAST ( 43 AS INTEGER ) AS col0 +---- +43 +48 query I rowsort SELECT - + 73 * - 56 @@ -28038,8 +28236,11 @@ SELECT COALESCE ( 63, - COUNT ( * ) * COUNT ( * ) ) AS col0, + 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-58\), Int64\(11\), Int64\(46\)\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COALESCE ( + - 58, + 11, + 46 ) AS col0, + 51 AS col0 +---- +-58 +51 query I rowsort label-5420 SELECT DISTINCT + COUNT ( * ) * + + 62 * - 94 * + CAST ( NULL AS INTEGER ) @@ -28464,8 +28665,11 @@ SELECT ALL - 47 col0 # 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 "Int64\(0\) AS col0" at position 0 and "Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 col0, 84 AS col0 +---- +0 +84 query I rowsort label-5503 SELECT ALL 82 + COUNT ( ALL - 86 ) AS col0 @@ -28712,14 +28916,20 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 4 * NULLIF ( + + 22, 82 / - - 22 + 33 + - 34 * + - 38 - + - 47 ) * + 67 * 4 * + - 82 AS col0, 46 / - - COUNT ( * ) AS col0 +---- +-1933888 +46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(18\)\) AS col1" at position 0 and "nullif\(Int64\(49\), Int64\(\-63\)\) \+ Int64\(65\) / \(\- max\(Int64\(\-90\)\)\) \* \(\- Int64\(\-13\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( DISTINCT 18 ) AS col1, + NULLIF ( 49, - 63 ) + + 65 / - MAX ( - 90 ) * - - 13 col1 +---- +18 +49 query II rowsort label-5552 SELECT SUM ( + 96 ) AS col1, + 20 * + ( + - MIN ( CAST ( + 83 AS INTEGER ) ) ) AS col2 @@ -29078,8 +29288,11 @@ SELECT DISTINCT 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \+ Int64\(46\) AS col2" at position 0 and "min\(Int64\(\-25\)\) / Int64\(\-78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 36 + 46 col2, MIN ( ALL - 25 ) / - 78 AS col2 +---- +0 +82 query I rowsort label-5622 SELECT + 35 + 12 / - + COUNT ( * ) AS col2 @@ -30329,8 +30542,11 @@ SELECT - 12 + - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 858 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(52\) AS Int32\)\) \* Int64\(\-14\) \+ Int64\(40\) \+ Int64\(90\) AS col1" at position 0 and "\(\- count\(Int64\(62\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( 52 AS INTEGER ) * + - 14 + 40 + 90 AS col1, - COUNT ( ALL 62 ) AS col1 +---- +-1 +858 query I rowsort label-5862 SELECT DISTINCT + CASE - - 79 WHEN + - ( + 99 ) - - 22 + + + 89 THEN + COUNT ( * ) END AS col1 @@ -30829,8 +31045,11 @@ SELECT + 22 / + 99 + - + NULLIF ( - 35, 60 / + - 34 * + CAST ( NULL AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 128 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \- Int64\(\-99\) AS col2" at position 0 and "Int64\(\-30\) \+ Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 - - 99 col2, - 30 + + 37 AS col2 +---- +128 +7 query I rowsort SELECT ALL - 41 @@ -31697,8 +31916,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 AS col0, 66 AS col0 +---- +50 +66 query II rowsort SELECT ALL 25, 18 * - + 29 AS col0 @@ -31809,8 +32031,11 @@ SELECT NULLIF ( + + 7, 19 ) + - 48 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col1" at position 0 and "Int64\(1\) \+ Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 14 AS col1, ( 1 ) + + - 87 AS col1 +---- +-86 +14 query I rowsort label-6147 SELECT 95 + COALESCE ( + COUNT ( * ), + 66 ) * - 90 AS col2 @@ -31967,8 +32192,11 @@ SELECT DISTINCT - 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 732 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(12\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 * + 12 AS col0, 68 AS col0 +---- +68 +732 query I rowsort SELECT DISTINCT - 16 + - 5 @@ -33051,8 +33279,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) / 54 AS col1, - 9 AS col1 +---- +-9 +0 query I rowsort label-6387 SELECT DISTINCT - 40 * NULLIF ( + 67, + + CAST ( NULL AS INTEGER ) ) @@ -33235,8 +33466,12 @@ SELECT ALL 10 AS col0 # Datafusion - Expected - 32 # Datafusion - Expected - 69 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(66\) \- count\(Int64\(9\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 32 * + COUNT ( * ) AS col2, 69, 66 - COUNT ( 9 ) AS col2 +---- +32 +65 +69 query I rowsort SELECT - 17 AS col0 @@ -33869,8 +34104,11 @@ SELECT + 76 * 10 * 53 * - CAST ( + 57 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col2" at position 0 and "Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 AS col2, + ( - 30 ) AS col2 +---- +-30 +77 query I rowsort label-6547 SELECT - 28 / - NULLIF ( 29, - 41 ) * + + 10 @@ -34027,8 +34265,11 @@ SELECT - 82 * + 7 + + 29 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 3060 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-32\)\) AS col2" at position 0 and "Int64\(34\) \* Int64\(\-90\) \* \(\- count\(Int64\(\-49\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 32 AS col2, 34 * - 90 * - COUNT ( - 49 ) AS col2 +---- +3060 +32 query II rowsort SELECT DISTINCT - - 71 AS col1, + 76 AS col2 @@ -34161,8 +34402,11 @@ SELECT + 97 + - - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4664 # Datafusion - Expected - -2950 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* Int64\(\-53\) AS col1" at position 0 and "Int64\(\-50\) \* Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 * - 53 AS col1, - 50 * + 59 col1 +---- +-2950 +-4664 query I rowsort SELECT + 52 AS col1 @@ -34218,8 +34462,11 @@ SELECT DISTINCT - 85 AS col0, COUNT ( * ) + - + ( 11 ) # 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\(77\) AS col2" at position 0 and "sum\(Int64\(14\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 AS col2, SUM ( ALL 14 ) AS col2 +---- +14 +77 query I rowsort SELECT ALL + 60 * - 36 AS col0 @@ -34341,8 +34588,11 @@ NULL # 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\(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\. +query II valuesort SELECT ALL + + 23 * COUNT ( * ) * + - COUNT ( * ) * 29 AS col1, + 85 AS col1 +---- +-667 +85 query I rowsort SELECT 47 AS col2 @@ -34362,8 +34612,11 @@ SELECT ALL - 64 * + + ( + 25 ) - + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col1" at position 0 and "\(\- coalesce\(Int64\(98\), coalesce\(\(\- Int64\(\-85\)\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(30\), Int64\(92\) \* Int64\(7\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(3\), Int64\(70\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 59 AS col1, - COALESCE ( 98, COALESCE ( - - 85, + COUNT ( * ) + 30, 92 * + 7 - + - COUNT ( * ) + 3, 70 ) ) + COUNT ( * ) AS col1 +---- +-59 +-97 query I rowsort label-6641 SELECT ALL + + COUNT ( * ) AS col0 @@ -34472,8 +34725,11 @@ SELECT - 45 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* Int64\(43\) AS col0" at position 0 and "Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 2 * + 43 AS col0, - 64 AS col0 +---- +-64 +86 query I rowsort SELECT - 51 AS col2 @@ -34581,8 +34837,11 @@ SELECT + + 90 * + 55 + - 64 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1365 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(35\) AS col0" at position 0 and "\(\- Int64\(37\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 * + 35 AS col0, - ( 37 ) AS col0 +---- +-37 +1365 query I rowsort SELECT 73 * - - CASE - 16 WHEN - 40 * 31 + 96 * 57 * + + 2 THEN NULL ELSE 72 END + + 95 col2 @@ -36484,8 +36743,11 @@ SELECT 56 * - + 81 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 6853 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col0" at position 0 and "Int64\(\-89\) \* Int64\(\-77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 97 AS col0, - 89 * - 77 AS col0 +---- +6853 +97 query I rowsort label-7055 SELECT 63 + + ( COUNT ( * ) ) @@ -37166,8 +37428,11 @@ SELECT ALL 95, - 35 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT 13 AS col0, + 72 col0 +---- +13 +72 query I rowsort label-7190 SELECT COUNT ( * ) + + 7 AS col0 @@ -37252,8 +37517,11 @@ SELECT DISTINCT 45, - MAX ( - - ( + 70 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(23\), Int64\(88\) \* Int64\(\-18\)\)\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( 23, + + 88 * + - 18 ) AS col1, 81 AS col1 +---- +-23 +81 query I rowsort label-7205 SELECT ALL - COUNT ( * ) + + - 4 * 24 - - COUNT ( * ) AS col1 @@ -37384,8 +37652,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + + 6 AS col0, - ( + 89 ) AS col0 +---- +-89 +7 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -37398,8 +37669,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * 35 AS col2, - 15 AS col2 +---- +-15 +35 query I rowsort SELECT DISTINCT - 98 @@ -37577,8 +37851,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 AS col0, COUNT ( * ) * 3 AS col0 +---- +3 +38 query I rowsort label-7267 SELECT ALL SUM ( - 56 ) AS col0 @@ -37708,8 +37985,11 @@ SELECT ALL + 36 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) \+ Int64\(59\) AS col2" at position 0 and "Int64\(60\) \* Int64\(42\) \+ Int64\(47\) \+ Int64\(84\) \* \(\- Int64\(\-60\)\) / \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 30 + + ( + 59 ) col2, 60 * + 42 + + 47 + 84 * - - 60 / - CAST ( NULL AS INTEGER ) col2 +---- +29 +NULL query I rowsort label-7291 SELECT ALL + NULLIF ( - 70, - COUNT ( * ) ) AS col2 @@ -38054,8 +38334,11 @@ SELECT ALL 69 # 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\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 71 AS col2, 27 AS col2 +---- +27 +71 query I rowsort SELECT ALL 22 + - 98 @@ -38504,8 +38787,11 @@ SELECT COUNT ( * ) * + ( 50 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 14 AS col0, + 29 AS col0 +---- +-14 +29 query I rowsort SELECT - 61 col1 @@ -38528,8 +38814,11 @@ SELECT - + 70 + - NULLIF ( - ( + 10 ), ( + AVG ( + - 51 ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -114 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-92\), \(\- \(\- CAST\(Int64\(\-17\) AS Int32\)\)\)\) \+ Int64\(\-22\) AS col1" at position 0 and "Int64\(4\) \+ max\(Int64\(19\)\) \+ Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + NULLIF ( + - 92, - - CAST ( - 17 AS INTEGER ) ) + + - 22 AS col1, 4 + MAX ( 19 ) + 54 AS col1 +---- +-114 +77 query I rowsort SELECT - 9 AS col2 @@ -39094,8 +39383,12 @@ SELECT ALL - - 45 + - 54 + - 45 AS col2 # Datafusion - Expected - -6 # Datafusion - Expected - -95 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col2" at position 1 and "Int64\(27\) \+ Int64\(42\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT NULLIF ( + - 6, ( + - 36 ) ), - 95 AS col2, + 27 + 42 AS col2 +---- +-6 +-95 +69 query I rowsort label-7558 SELECT ALL + + 32 + + - CAST ( + + 12 AS INTEGER ) AS col2 @@ -39369,8 +39662,11 @@ SELECT + 42 AS col0, 95 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col1" at position 0 and "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 59 AS col1, 58 AS col1 +---- +-59 +58 query I rowsort SELECT ALL + - 78 @@ -41446,8 +41742,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -576 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-12\)\)\) \* Int64\(48\) AS col0" at position 0 and "\(\- coalesce\(Int64\(30\), Int64\(74\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(88\) \+ Int64\(79\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- min\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - - 12 ) * + 48 AS col0, - COALESCE ( + 30, 74 ) * - COUNT ( * ) - 88 + + 79 / - COUNT ( * ) - MIN ( CAST ( NULL AS INTEGER ) ) AS col0 +---- +-576 +NULL query I rowsort SELECT 77 - + + 95 @@ -41992,8 +42291,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ Int64\(\-17\) AS col2" at position 0 and "Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 4 + + - 17 col2, 76 AS col2 +---- +-13 +76 query I rowsort label-8120 SELECT DISTINCT - + 30 / 27 + + - ( - + 88 ) @@ -42145,8 +42447,11 @@ 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\(1\)\) AS count\(\*\)\) \- Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 83 AS col2, - COUNT ( * ) - + + 76 AS col2 +---- +-77 +83 query I rowsort label-8150 SELECT - + COALESCE ( + - 88, + COUNT ( * ) * - - SUM ( DISTINCT + 0 ) / - + CAST ( NULL AS INTEGER ) + COUNT ( + + 49 ) * MAX ( ALL + 70 ) + COUNT ( * ), - 66 ) + + - COALESCE ( - 56, - + 76, + CASE - + 35 WHEN - + 2 THEN NULL WHEN - 55 THEN NULL WHEN ( + 57 ) * - 85 + COUNT ( * ) THEN COUNT ( ALL 68 ) * - 99 + - NULLIF ( 96, ( 98 ) ) ELSE NULL END + 99 ) AS col0 @@ -42186,8 +42491,11 @@ SELECT 70 * 79 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "Int64\(48\) \- Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 AS col0, 48 - 90 AS col0 +---- +-42 +58 query I rowsort label-8158 SELECT DISTINCT - - 70 + - - COUNT ( * ) * + - 56 @@ -42847,8 +43155,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 43 AS col0, - COALESCE ( + - ( + 64 ), 69 + - 46, 37 - COUNT ( * ) ) AS col0 +---- +-43 +64 query II rowsort label-8287 SELECT ALL 54, - 5 * 68 + + COUNT ( * ) + 96 + + CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col0 @@ -43778,8 +44089,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 144160 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(\-53\) \* Int64\(40\) \* Int64\(\-2\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 * + - 53 * 40 * - 2 AS col0, - CAST ( NULL AS INTEGER ) * + - 1 col0 +---- +144160 +NULL query I rowsort SELECT ALL 27 AS col1 @@ -43900,8 +44214,11 @@ SELECT DISTINCT - 7 - + 97 AS col1, 98 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1066 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* \(\- Int64\(41\)\) AS col1" at position 0 and "Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 * - + 41 AS col1, - 33 AS col1 +---- +-1066 +-33 query I rowsort label-8489 SELECT 26 * - 2 * COUNT ( * ) * 8 + - ( + MIN ( DISTINCT 91 ) ) + - + 19 - + + 75 * + - MAX ( DISTINCT - 55 ) AS col2 @@ -44102,8 +44419,11 @@ SELECT ALL + 87 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16185 # Datafusion - Expected - 2016 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) \* \(\- \(\- min\(Int64\(83\)\)\)\) \* \(\- Int64\(65\)\) AS col1" at position 0 and "Int64\(56\) \* Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 * - - ( + MIN ( 83 ) ) * - ( 65 ) AS col1, 56 * + + 36 AS col1 +---- +16185 +2016 query II rowsort SELECT DISTINCT + 0, 75 AS col0 @@ -44401,8 +44721,11 @@ SELECT ALL + 14 - - 68 + + 39 + - 89 * - 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(56\), Int64\(23\) \- 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 II valuesort SELECT DISTINCT NULLIF ( + + 56, 23 - 19 ) AS col1, 7 AS col1 +---- +56 +7 query I rowsort label-8586 SELECT ALL 70 - + 10 + 82 + - CASE + ( - - 33 ) WHEN + 22 + 58 THEN 50 + - COALESCE ( - COUNT ( * ), 55 * - + ( - 86 ) ) END - - 48 @@ -44776,8 +45099,11 @@ SELECT + 34 AS col2, - COALESCE ( + 54, + + 48 ) + - - ( 97 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col1" at position 0 and "CASE \(\- Int64\(\-87\)\) WHEN Int64\(\-52\) \* Int64\(\-1\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-35\) THEN \(\- count\(DISTINCT Int64\(\-96\)\)\) END \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 76 AS col1, + CASE - - 87 WHEN - 52 * - 1 + - - COUNT ( * ) + + - 35 THEN - COUNT ( DISTINCT - 96 ) END * CAST ( NULL AS INTEGER ) AS col1 +---- +-76 +NULL query I rowsort SELECT ALL 42 - 96 @@ -44861,8 +45187,11 @@ SELECT - - 85 * + 72 * MAX ( + 21 ) * CAST ( - 31 AS INTEGER ) - + 63 col1, 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 988 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- sum\(DISTINCT Int64\(52\)\)\) AS Int32\)\) \* Int64\(19\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( - SUM ( DISTINCT 52 ) AS INTEGER ) * + 19 AS col0, 1 AS col0 +---- +1 +988 query I rowsort label-8675 SELECT ALL - CAST ( NULL AS INTEGER ) + + - 92 * - 90 * + CAST ( NULL AS INTEGER ) col2 @@ -45051,8 +45380,11 @@ SELECT - ( + COUNT ( * ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col1" at position 0 and "Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 91 AS col1, - 47 AS col1 +---- +-47 +-91 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -45070,8 +45402,11 @@ 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\(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\. +query II valuesort SELECT ALL NULLIF ( - + 31, + 7 * - 42 / - - 77 + - 83 * + - ( 83 ) + - 5 + 14 * COUNT ( * ) / - MIN ( ALL - 52 ) ) AS col0, + 46 col0 +---- +-31 +46 query I rowsort SELECT ALL 3 + - 51 AS col0 @@ -45871,8 +46206,11 @@ SELECT DISTINCT SUM ( DISTINCT 43 ) * + - 12 * - COALESCE ( - 61, 75 + - 56, - 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - -322 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \* Int64\(\-15\) \+ Int64\(83\) AS col2" at position 0 and "Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 * - 15 + 83 AS col2, - 45 AS col2 +---- +-322 +-45 query I rowsort label-8870 SELECT + 38 / - 25 @@ -45897,8 +46235,11 @@ SELECT 89 * + + 97 # 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\(DISTINCT Int64\(\-4\)\) \+ Int64\(\-83\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( DISTINCT - 4 ) + - 83 AS col2, 13 AS col2 +---- +-82 +13 query I rowsort SELECT ALL - 95 AS col2 @@ -46175,8 +46516,11 @@ SELECT - COUNT ( * ), 93 * + COUNT ( * ) + - 87 + NULLIF ( - - 81, 90 * - 31 ) A # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col1" at position 0 and "\(\- nullif\(\(\- Int64\(\-40\)\), Int64\(\-57\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 AS col1, - NULLIF ( - - 40, + - 57 ) AS col1 +---- +-40 +81 query I rowsort label-8929 SELECT DISTINCT MAX ( DISTINCT + + 33 ) AS col0 @@ -46247,8 +46591,11 @@ SELECT - 59 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* CAST\(NULL AS Int32\) \* Int64\(6\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-72\)\) \+ Int64\(\-93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 36 * + CAST ( NULL AS INTEGER ) * + 6 col1, COUNT ( * ) + - - 72 + - 93 AS col1 +---- +-20 +NULL query I rowsort label-8943 SELECT + NULLIF ( - SUM ( ALL - 81 ), - 4 * - + NULLIF ( + 27, - 37 ) ) @@ -47669,8 +48016,11 @@ SELECT ALL - COALESCE ( - - CAST ( + 51 AS INTEGER ), + 7, - 43 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col2" at position 0 and "min\(Int64\(87\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 68 ) AS col2, + MIN ( + 87 ) AS col2 +---- +-68 +87 query II rowsort label-9221 SELECT ALL - 33 / - + 65, - 58 AS col1 @@ -48078,8 +48428,11 @@ SELECT + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 46 col2, - 79 AS col2 +---- +-79 +46 query I rowsort SELECT + 43 * 9 @@ -48476,8 +48829,11 @@ SELECT DISTINCT 21 AS col2 # 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\(25\)" at position 0 and "Int64\(25\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 25, 25 +---- +25 +25 query I rowsort label-9375 SELECT DISTINCT + + COUNT ( * ) * + MAX ( + 85 ) + - 99 * - 31 * COUNT ( * ) - - 29 @@ -49477,8 +49833,11 @@ SELECT COUNT ( * ) / - 94 - - 48 AS col2 # 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 col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 18 AS col0, + 63 AS col0 +---- +-18 +63 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -50182,8 +50541,11 @@ SELECT ALL - 45 AS col2, 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-83\)\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 83 AS col2, + 34 AS col2 +---- +34 +83 query I rowsort SELECT ALL - ( 30 ) + - 80 AS col1 @@ -50583,8 +50945,11 @@ SELECT ALL + - 10 + - SUM ( + 41 ) * - 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 AS col2, + 62 AS col2 +---- +31 +62 query I rowsort SELECT - 44 + + 27 AS col1 @@ -50773,8 +51138,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5460 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* \(\- Int64\(65\)\) \+ Int64\(\-12\) / Int64\(\-41\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 * - + 65 + - 12 / + - 41 AS col2, COUNT ( * ) AS col2 +---- +-5460 +1 query I rowsort label-9820 SELECT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col0 @@ -50930,8 +51298,12 @@ SELECT ALL - 56 col0 # Datafusion - Expected - 59 # Datafusion - Expected - -7 # Datafusion - Expected - 5580 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) / Int64\(12\) AS col2" at position 1 and "Int64\(93\) \* Int64\(60\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 59, - 90 / 12 AS col2, + 93 * 60 AS col2 +---- +-7 +5580 +59 query I rowsort label-9850 SELECT ALL COUNT ( + - 65 ) + + 14 diff --git a/data/sqlite/random/expr/slt_good_3.slt b/data/sqlite/random/expr/slt_good_3.slt index e1c80e8..05927d5 100644 --- a/data/sqlite/random/expr/slt_good_3.slt +++ b/data/sqlite/random/expr/slt_good_3.slt @@ -66,8 +66,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 AS col2, 27 AS col2 +---- +0 +27 query II rowsort SELECT DISTINCT + ( 7 ) + + 89 col1, - 19 + 46 AS col0 @@ -369,8 +372,11 @@ SELECT ( + 50 ) * + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-92\) \- Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, - 92 - + - 47 AS col1 +---- +-45 +1 query I rowsort label-64 SELECT ALL + + 39 + 79 / + 34 AS col1 @@ -1108,8 +1114,11 @@ SELECT ALL 34 * 45 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) / Int64\(\-35\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 / - 35 AS col1, COUNT ( * ) AS col1 +---- +-1 +1 query I rowsort label-205 SELECT DISTINCT 28 + COUNT ( * ) / + + 32 AS col1 @@ -1385,8 +1394,11 @@ SELECT - 5 / - - 28 + + - COALESCE ( - 33, - 56 * - + CASE - 64 WHEN + 7 THEN + # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col1" at position 0 and "Int64\(\-99\) \+ Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + ( - 69 ) ) col1, - 99 + + 58 AS col1 +---- +-41 +-69 query II rowsort label-257 SELECT + + 88 + + - 59, - 67 / - - 93 AS col0 @@ -1493,8 +1505,11 @@ SELECT + COALESCE ( 44, + + 83 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 5963 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \- Int64\(83\) \* Int64\(48\) / Int64\(54\) \* sum\(Int64\(\-82\)\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 23 - + 83 * 48 / 54 * + + SUM ( - 82 ) AS col2, 45 AS col2 +---- +45 +5963 query II rowsort SELECT + 56, - 82 AS col2 @@ -1819,8 +1834,11 @@ SELECT DISTINCT COUNT ( - 31 ) * - 75 + NULLIF ( 76, + - 65 + - + CAST ( + COALE # 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 "coalesce\(Int64\(66\), \(\- coalesce\(Int64\(28\), nullif\(\(\- Int64\(74\)\), \(\- Int64\(\-61\)\)\) \+ Int64\(42\)\)\)\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COALESCE ( + ( + 66 ), + - COALESCE ( + 28, + NULLIF ( - + 74, - - 61 ) + 42 ) ) AS col0, 0 AS col0 +---- +0 +66 query III rowsort label-338 SELECT + 77 AS col2, 7 + - - MAX ( - 11 ), + - CAST ( NULL AS INTEGER ) AS col0 @@ -1969,8 +1987,11 @@ SELECT + COUNT ( * ) * - 10 + + + 37 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 145 -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\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 57 col2, 29 * 5 AS col2 +---- +145 +57 query I rowsort SELECT + 19 + 69 + - + 68 AS col2 @@ -2215,8 +2236,11 @@ SELECT 45 + - 54 # 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 "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 16 AS col1, 3 col1 +---- +-16 +3 query II rowsort label-412 SELECT 19, 14 * - SUM ( 78 ) AS col1 @@ -2287,8 +2311,11 @@ 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\(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\. +query II valuesort SELECT 85 + - 5 * 72 AS col1, COUNT ( * ) * - COUNT ( ALL - + ( 90 ) ) * - + 14 + + 77 + - - 27 AS col1 +---- +-275 +118 query I rowsort label-425 SELECT 95 / - 61 @@ -2767,8 +2794,11 @@ SELECT DISTINCT + 92 / COUNT ( * ) + 84 - + COUNT ( * ) - + COALESCE ( - + 23, + # 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 col0" at position 0 and "\(\- Int64\(\-49\)\) \+ max\(Int64\(\-46\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 63 AS col0, ( - - 49 ) + + MAX ( - 46 ) col0 +---- +3 +63 query I rowsort label-518 SELECT CAST ( - COUNT ( * ) AS INTEGER ) col2 @@ -2977,8 +3007,12 @@ SELECT DISTINCT - MIN ( ALL - 44 ) AS col2 # Datafusion - Expected - 1050 # Datafusion - Expected - 124 # Datafusion - Expected - 3970 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* \(\- Int64\(\-30\)\) AS col0" at position 0 and "Int64\(\-42\) \* Int64\(\-96\) \+ Int64\(\-62\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 35 * - - 30 AS col0, - SUM ( - 93 ) + 31 AS col2, - 42 * - 96 + + - 62 col0 +---- +1050 +124 +3970 query II rowsort label-558 SELECT 97 * + 59 + NULLIF ( + CAST ( MIN ( ALL + COALESCE ( - 38, 77 ) ) AS INTEGER ), - + 53 * + + 7 + 39 * - CAST ( NULL AS INTEGER ) + + 95 - - + COUNT ( * ) / - 11 + - COUNT ( * ) * - 79 ), 89 AS col1 @@ -3116,14 +3150,20 @@ SELECT - 39 * + 71 # 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 "Int64\(3\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 3 AS col0, + 66 AS col0 +---- +3 +66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) / Int64\(\-15\) \+ Int64\(6\) AS col2" at position 0 and "Int64\(77\) \+ Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 72 / - 15 + + 6 AS col2, + 77 + - 89 AS col2 +---- +-12 +2 query I rowsort label-585 SELECT COALESCE ( - - 57, + - 24 / - 19 / - 64 * + 84 / + 37 * 23 + + 75, + + 67 * 25 ) AS col2 @@ -3248,8 +3288,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col2" at position 0 and "Int64\(\-97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 32 AS col2, - 97 AS col2 +---- +-32 +-97 query I rowsort SELECT ALL - 92 + 91 @@ -3301,8 +3344,11 @@ SELECT DISTINCT COALESCE ( - + 4, - 69 * - 37 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-59\)\) AS col0" at position 0 and "Int64\(\-32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 59 ) AS col0, - 32 AS col0 +---- +-32 +59 query I rowsort SELECT + 75 * + 7 AS col2 @@ -3502,8 +3548,11 @@ SELECT COUNT ( * ) + + - 51 - + 81 + + 77 * + 25 * + - 80 * - 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5737 # Datafusion - Expected - -94698 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* Int64\(\-95\) \+ Int64\(\-37\) AS col0" at position 0 and "Int64\(15\) \* Int64\(\-77\) \* Int64\(82\) \+ Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 * - 95 + - 37 AS col0, 15 * - 77 * + 82 + + + 12 AS col0 +---- +-5737 +-94698 query I rowsort SELECT 33 + - 65 @@ -3675,8 +3724,12 @@ SELECT ALL - COUNT ( ALL 57 ) # Datafusion - Expected - -59 # Datafusion - Expected - 38 # 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 "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 59 AS col1, + 38 AS col1, - 3 +---- +-3 +-59 +38 query I rowsort SELECT ALL 70 * - 96 @@ -3834,8 +3887,11 @@ SELECT 76 - - - COUNT ( * ) 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 "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 25 AS col0, + 1 AS col0 +---- +1 +25 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -4352,8 +4408,11 @@ SELECT - - ( + - 60 ) AS col1 # 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\(74\) \+ Int64\(\-72\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 74 + + - 72 AS col1, ( + + 2 ) AS col1 +---- +2 +2 query I rowsort label-816 SELECT DISTINCT - COUNT ( * ) * 62 AS col0 @@ -4373,8 +4432,11 @@ SELECT 23 - + + 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \+ Int64\(\-8\) / \(\- \(\- CASE Int64\(\-83\) WHEN Int64\(46\) THEN NULL ELSE \(\- Int64\(\-29\)\) \* Int64\(\-38\) END\)\) AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 + - 8 / - + ( + ( - + CASE - 83 WHEN + 46 THEN NULL ELSE - - 29 * - 38 END ) ) AS col0, + ( + 5 ) col0 +---- +5 +54 query I rowsort SELECT + ( - ( + - 48 ) ) + + 32 @@ -5071,8 +5133,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-5\) \- Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 + - ( - 87 ) col2, + COUNT ( * ) * + - 5 - + + 68 AS col2 +---- +-73 +131 query I rowsort label-952 SELECT - COUNT ( * ) + + NULLIF ( - + 23, - - MIN ( ALL + 82 ) + + - 55 + - CASE + 28 WHEN + - 34 THEN + 13 * - COUNT ( * ) * + - NULLIF ( - 13, 87 ) + + COUNT ( * ) WHEN + ( - 20 ) THEN NULL END + 47 + 86 * + ( 61 ) / 36 + + 54 ) * - COUNT ( * ) col2 @@ -5772,8 +5837,11 @@ SELECT DISTINCT + COUNT ( ALL + - 60 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "Int64\(32\) \+ Int64\(\-75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 AS col2, + 32 + - 75 AS col2 +---- +-43 +46 query I rowsort label-1087 SELECT - - ( + COUNT ( + - 36 ) ) * - 43 AS col1 @@ -5898,8 +5966,11 @@ SELECT ALL COALESCE ( + 28, 15, - 34 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - -123 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col1" at position 0 and "\(\- min\(Int64\(68\)\)\) \+ \(\- Int64\(93\)\) \+ Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - 65 ) AS col1, - MIN ( + 68 ) + - + 93 + + 38 AS col1 +---- +-123 +-65 query II rowsort label-1111 SELECT DISTINCT SUM ( + ( - + ( - 22 ) ) ), - 44 AS col1 @@ -6000,8 +6071,11 @@ SELECT ALL NULLIF ( + 75, - 37 ) * + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col0" at position 0 and "Int64\(\-69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 80 col0, - 69 AS col0 +---- +-69 +-80 query I rowsort SELECT DISTINCT + 59 * + - 7 @@ -6278,8 +6352,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col1, 73 AS col1 +---- +-1 +73 query I rowsort label-1185 SELECT ALL SUM ( - 53 ) col2 @@ -6304,8 +6381,11 @@ 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\(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\. +query II valuesort 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 +---- +-265608 +-8 query I rowsort label-1190 SELECT DISTINCT - 86 * + COUNT ( * ) + - 95 col1 @@ -6410,8 +6490,11 @@ SELECT - - 53 * - 37 * - 98 # 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 "Int64\(\-47\) \+ Int64\(\-70\) \* nullif\(min\(DISTINCT Int64\(28\)\), Int64\(\-1\) \+ Int64\(29\)\) AS col0" at position 0 and "Int64\(\-44\) \+ Int64\(\-40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 47 + - 70 * NULLIF ( + MIN ( DISTINCT + 28 ), - 1 + + + 29 ) AS col0, - 44 + + - 40 AS col0 +---- +-84 +NULL query I rowsort SELECT ALL + 89 * - ( + + 74 ) @@ -6534,8 +6617,11 @@ SELECT ALL 4 / 89 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(64\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) - - + 64 + + COUNT ( * ) AS col0, + 99 AS col0 +---- +64 +99 query I rowsort label-1234 SELECT ALL - - MAX ( - 77 ) AS col2 @@ -6659,8 +6745,11 @@ SELECT COUNT ( * ) - ( - MAX ( DISTINCT - 41 ) ) col1, COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 134 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \+ \(\- Int64\(88\)\) \+ Int64\(\-43\) AS col2" at position 0 and "Int64\(76\) \- Int64\(\-58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 78 + - ( + 88 ) + - 43 AS col2, 76 - - 58 AS col2 +---- +-53 +134 query I rowsort SELECT 17 + - 32 + + + 13 - - 13 + + 98 * + - 35 @@ -7002,8 +7091,11 @@ SELECT - NULLIF ( 51, - CAST ( + 85 AS INTEGER ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col0" at position 0 and "min\(Int64\(41\)\) \+ Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 15 col0, MIN ( ALL 41 ) + 43 AS col0 +---- +-15 +84 query I rowsort SELECT + 4 + + 94 @@ -7178,8 +7270,11 @@ SELECT DISTINCT + 46 * - - 95 - + 29 + + + 83 / + 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 162 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "Int64\(81\) \+ \(\- Int64\(\-81\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 99 AS col1, + 81 + - - 81 / COUNT ( * ) AS col1 +---- +162 +99 query I rowsort SELECT + 55 + + + 81 AS col0 @@ -7442,8 +7537,11 @@ SELECT - 92, 53 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 181 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \+ Int64\(63\) \+ Int64\(37\) AS col0" at position 0 and "nullif\(Int64\(60\), Int64\(0\) \- Int64\(\-25\) \* Int64\(\-70\) \* Int64\(62\) \* Int64\(55\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 + + 63 + + 37 AS col0, NULLIF ( + 60, 0 - - 25 * - 70 * 62 * + 55 ) AS col0 +---- +181 +60 query I rowsort label-1405 SELECT ALL - 26 + COUNT ( * ) @@ -8768,8 +8866,11 @@ 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\(1\)\) AS count\(\*\)\) / Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 35 / + + 53 AS col2, - COUNT ( * ) / + + 87 AS col2 +---- +0 +0 query I rowsort SELECT 19 * + 6 AS col2 @@ -9010,8 +9111,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + - 51 ) AS col2, - COUNT ( * ) AS col2 +---- +-1 +51 query II rowsort label-1708 SELECT - 61 + - - 12 AS col1, + COUNT ( * ) @@ -9829,8 +9933,12 @@ SELECT 54 * 51 AS col2 # Datafusion - Expected - -4197 # Datafusion - Expected - -116 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* Int64\(2\) \* Int64\(\-29\) AS col1" at position 1 and "Int64\(59\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 60 + - ( - NULLIF ( - 43, - - 59 * 7 ) ) * 99 AS col0, 2 * 2 * - 29 AS col1, + 59 AS col1 +---- +-116 +-4197 +59 query I rowsort SELECT ALL - ( - 62 ) AS col1 @@ -10008,8 +10116,11 @@ SELECT ALL + ( + - 72 ) * + 56 * - COALESCE ( - 83, - 97 - CASE - 94 WHEN + - 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 76 AS col2, 13 AS col2 +---- +-76 +13 query I rowsort label-1897 SELECT DISTINCT - CASE CASE 2 WHEN - 54 THEN 0 WHEN 9 THEN NULL WHEN ( 42 ) THEN + 64 ELSE + 77 * - - COALESCE ( 56, - NULLIF ( - COUNT ( * ), - 25 + - 34 ) + + 70 / 75, 65 * - 78 ) END WHEN SUM ( DISTINCT 85 ) THEN - ( + ( + 91 ) ) + 14 END AS col2 @@ -10369,8 +10480,11 @@ SELECT + - 20 + + 60 col1, + 84 * - - 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- min\(Int64\(24\)\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) * - + MIN ( ALL 24 ) AS col2, CAST ( NULL AS INTEGER ) AS col2 +---- +-24 +NULL query I rowsort SELECT + 86 + + + 84 @@ -10665,8 +10779,12 @@ SELECT COUNT ( * ) * + + 67 / ( - - 91 ) * - 38 * - - 61 - + 97 + COUNT ( 26 ) c # Datafusion - Expected - -1 # Datafusion - Expected - 1 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - COUNT ( * ) col2, COUNT ( * ) col2, + - NULLIF ( + 77, MIN ( 65 ) * - + 49 ) +---- +-1 +-77 +1 query I rowsort label-2024 SELECT COUNT ( DISTINCT - + COALESCE ( 94, - - 13 ) ) AS col2 @@ -10681,8 +10799,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(3\) AS Int32\)\) AS col1" at position 0 and "Int64\(0\) \+ Int64\(65\) \+ CAST\(Int64\(\-30\) AS Int32\) \+ Int64\(\-30\) \+ sum\(Int64\(3\)\) \+ Int64\(\-29\) \+ \(\- sum\(Int64\(\-55\)\)\) / Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + CAST ( + + 3 AS INTEGER ) AS col1, 0 + 65 + + + CAST ( + - 30 AS INTEGER ) + - 30 + + + SUM ( ALL + 3 ) + - 29 + - SUM ( ALL - 55 ) / - 66 col1 +---- +-21 +-3 query II rowsort label-2027 SELECT DISTINCT - COUNT ( * ) AS col1, - 57 * - + 3 * - 0 @@ -10756,8 +10877,11 @@ 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 "Int64\(52\) \+ Int64\(\-53\) AS col1" at position 0 and "Int64\(\-64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 52 + - 53 AS col1, ( - 64 ) AS col1 +---- +-1 +-64 query I rowsort SELECT 53 + 87 AS col2 @@ -11430,8 +11554,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, COUNT ( * ) / 44 AS col2 +---- +-1 +0 query I rowsort SELECT DISTINCT - 35 * - + ( + - 2 ) @@ -11841,8 +11968,11 @@ SELECT + ( + 39 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-67\), count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( - 67, COUNT ( * ) ) AS col2, CAST ( NULL AS INTEGER ) AS col2 +---- +67 +NULL query I rowsort label-2248 SELECT ALL + - 77 * + - ( + COUNT ( * ) ) * 57 + + 92 + + 6 AS col1 @@ -12677,8 +12807,11 @@ SELECT ALL + COALESCE ( + COUNT ( * ), + 43 * - 94 - + ( + COUNT ( * ) ) ) * - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, - ( - COUNT ( * ) ) + - 53 AS col1 +---- +-52 +1 query I rowsort SELECT 38 + - 70 @@ -12763,8 +12896,11 @@ SELECT + - COUNT ( * ) * 34 + - 89 AS col2, + 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 col1, 60 AS col1 +---- +17 +60 query II rowsort label-2425 SELECT DISTINCT MAX ( DISTINCT + 81 ) * CAST ( NULL AS INTEGER ) AS col1, 52 * - 97 - - + 73 AS col2 @@ -12781,8 +12917,12 @@ 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\(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\. +query III valuesort SELECT ALL 95 * 66 * - 72 - - COUNT ( * ) AS col0, 79 / - + 8 AS col0, - - 1 + - 90 +---- +-451439 +-89 +-9 query I rowsort SELECT ALL 82 * - 78 AS col0 @@ -12908,8 +13048,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 396 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ Int64\(\-6\) AS col2" at position 0 and "sum\(DISTINCT \(\- Int64\(\-36\)\)\) \* \(\- Int64\(\-11\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 25 + + - 6 AS col2, SUM ( DISTINCT ( - - 36 ) ) * - - 11 AS col2 +---- +19 +396 query II rowsort label-2452 SELECT ALL + - COUNT ( DISTINCT - 16 ) * - COUNT ( * ) / + 90 AS col1, + 88 @@ -12968,8 +13111,12 @@ 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\(1\)\) AS count\(\*\) \* Int64\(61\) \* Int64\(\-55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 12 * 38 AS col1, COUNT ( * ) * 61 * + - 55 col1, + 12 +---- +-3355 +-456 +12 query I rowsort SELECT - - 85 + 52 AS col1 @@ -13193,8 +13340,11 @@ SELECT 85 * 39 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 + + COUNT ( * ) AS col2, - 14 AS col2 +---- +-14 +72 query II rowsort SELECT ALL ( 76 ) AS col1, - 40 AS col2 @@ -13227,8 +13377,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 94 col2, + 30 AS col2 +---- +30 +94 query I rowsort SELECT DISTINCT - ( + 16 ) * 9 @@ -13335,8 +13488,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2730 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-91\) AS Int32\)\) \* Int64\(\-30\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( - 91 AS INTEGER ) * - 30 AS col1, 99 AS col1 +---- +-2730 +99 query I rowsort label-2531 SELECT DISTINCT - CASE + 84 WHEN 32 THEN COUNT ( 82 ) * - + 90 * - ( - + 52 ) + 80 + + - 68 + + 16 END AS col2 @@ -13664,8 +13820,11 @@ SELECT COUNT ( - - 73 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 93 AS col1, 17 AS col1 +---- +-93 +17 query I rowsort SELECT ALL 22 - + 84 AS col0 @@ -14021,8 +14180,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(20\) \* Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MAX ( DISTINCT - - 36 ) * - 76 + + 0 AS col2, 64 * + COUNT ( * ) + + 20 * + ( 33 ) col2 +---- +2736 +724 query I rowsort SELECT + - ( + 20 ) * + 95 col1 @@ -14057,14 +14219,20 @@ SELECT ALL MIN ( - 37 ) / + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col0" at position 0 and "Int64\(21\) \- Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 88 AS col0, 21 - 63 AS col0 +---- +-42 +-88 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-62\)\) \+ \(\- nullif\(Int64\(83\), Int64\(\-91\)\)\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 62 + - NULLIF ( 83, - 91 ) AS col1, 79 col1 +---- +-21 +79 query I rowsort label-2669 SELECT - 13 * + ( - CASE - 98 WHEN - ( - 21 ) - - 15 + - + CAST ( + 65 AS INTEGER ) THEN NULL WHEN - + 25 THEN + 59 WHEN + 22 THEN NULL END ) + + 44 + + COALESCE ( 32, + - 25 ) @@ -14259,8 +14427,11 @@ SELECT ALL 97 + + SUM ( 43 ) + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -510 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "Int64\(85\) \* Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 AS col1, 85 * - 6 AS col1 +---- +-510 +48 query I rowsort label-2707 SELECT DISTINCT + 97 / - + 48 AS col2 @@ -14462,8 +14633,11 @@ SELECT 20 + ( - - 99 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \- Int64\(9\) AS col0" at position 0 and "Int64\(\-88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 40 - + 9 AS col0, - 88 AS col0 +---- +-49 +-88 query I rowsort label-2745 SELECT 91 * + ( COALESCE ( + 53, + + 40 * 34 * - 14 / - 74 ) ) AS col0 @@ -14917,8 +15091,12 @@ SELECT ALL - ( - 8 ) + + + ( + - 51 ) AS col2 # Datafusion - Expected - -62 # Datafusion - Expected - 78 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 1 and "\(\- Int64\(93\)\) \+ Int64\(47\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 62, + 78 AS col2, - + 93 + + 47 col2 +---- +-46 +-62 +78 query I rowsort label-2831 SELECT COUNT ( * ) * + 49 * + 35 AS col2 @@ -14972,8 +15150,11 @@ SELECT - 12 * + + 64 + 25 * - COUNT ( * ) * + - 70 AS col2, 62 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94375 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(\-39\) \* Int64\(29\) \+ Int64\(\-41\) \* Int64\(95\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 * - 39 * + 29 + - 41 * 95 AS col1, + 96 AS col1 +---- +-94375 +96 query I rowsort label-2841 SELECT CAST ( NULL AS INTEGER ) + + 13 col0 @@ -15028,8 +15209,11 @@ SELECT ALL 71 + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(57\) WHEN Int64\(84\) \* count\(Int64\(94\)\) \* Int64\(\-22\) THEN \(\- Int64\(\-42\)\) END \+ Int64\(93\) AS col1" at position 0 and "Int64\(94\) / Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CASE 57 WHEN + + 84 * + COUNT ( 94 ) * - 22 THEN - - 42 END + + 93 AS col1, 94 / + 71 AS col1 +---- +1 +NULL query II rowsort label-2851 SELECT DISTINCT COUNT ( * ) + 76, SUM ( ALL - 37 ) AS col2 @@ -15351,8 +15535,11 @@ SELECT DISTINCT + 76 * - 16 + 91 * 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - 71 ) col0, 92 col0 +---- +-71 +92 query II rowsort label-2913 SELECT - + 55 / + - 69, + 81 * 68 + + - ( CASE + 72 WHEN - 90 * + 85 + - COALESCE ( 84, - + ( + COUNT ( * ) ) + 60, + 25 / 41 ) THEN + - 72 * 22 - - 36 - - + 93 WHEN 15 THEN - 38 END ) * 22 AS col0 @@ -15642,8 +15829,11 @@ SELECT ALL - 99 + MAX ( + + 95 ) + 38 * - - 56 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 AS col2, COUNT ( * ) AS col2 +---- +1 +23 query II rowsort SELECT - 84, 71 AS col1 @@ -15734,8 +15924,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(81\) \+ \(\- Int64\(\-78\)\) \* Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 88 - - + 46 col2, - COUNT ( * ) + + 81 + - - 78 * + 81 AS col2 +---- +134 +6398 query I rowsort SELECT DISTINCT 27 * + 80 + 32 @@ -15766,8 +15959,11 @@ SELECT - - 56 AS col0, + 51 * 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 570570 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(2\)\) AS col0" at position 0 and "Int64\(\-77\) \* Int64\(95\) \* Int64\(\-78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 2 AS col0, - 77 * + + 95 * - 78 col0 +---- +-2 +570570 query II rowsort label-2992 SELECT ALL - MAX ( DISTINCT + + 59 ) + - - 11 * + + COUNT ( * ) col0, 20 @@ -15808,8 +16004,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col1, 15 * - 91 AS col1 +---- +-1 +-1365 query I rowsort SELECT ALL - 96 + - - 59 @@ -17490,8 +17689,11 @@ SELECT ALL + COUNT ( * ) + 78 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6631 # Datafusion - Expected - -128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \+ nullif\(Int64\(79\), Int64\(35\)\) \* Int64\(85\) AS col0" at position 0 and "Int64\(\-82\) \+ Int64\(\-1\) \* Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 84 + NULLIF ( 79, 35 ) * 85 AS col0, + ( - 82 ) + - 1 * 46 AS col0 +---- +-128 +6631 query I rowsort SELECT DISTINCT + 26 * 18 * - 25 @@ -17572,8 +17774,11 @@ SELECT ALL + 29 * + - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1875 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \* Int64\(25\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 75 * + ( 25 ) AS col0, - 0 col0 +---- +-1875 +0 query I rowsort label-3336 SELECT 76 + + - COUNT ( * ) AS col1 @@ -17746,8 +17951,11 @@ SELECT + + 55 * + + 95 + ( 83 ) * + + ( - ( + ( + + 13 ) ) ) * 47 - - 64 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col2" at position 0 and "Int64\(\-40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 68 AS col2, - 40 AS col2 +---- +-40 +-68 query I rowsort label-3369 SELECT ALL 73 / 8 + - - 25 @@ -17783,8 +17991,11 @@ SELECT + - COUNT ( * ) * - 5 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 3762 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-32\), Int64\(\-56\)\)\) AS col1" at position 0 and "Int64\(\-57\) \* Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + NULLIF ( - 32, - 56 ) AS col1, - 57 * - 66 col1 +---- +32 +3762 query I rowsort label-3376 SELECT + 1 * CASE + + 11 WHEN + + 38 - + + 75 * CAST ( NULL AS INTEGER ) THEN - + 3 WHEN 40 * + 13 THEN NULL WHEN 14 THEN 86 WHEN - COALESCE ( 77, 69 ) THEN 88 END @@ -17825,8 +18036,11 @@ SELECT - 89 / + - 71 AS col2, + 60 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\)\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 35 ) AS col0, + 1 AS col0 +---- +1 +35 query I rowsort SELECT + 36 - - 88 @@ -17935,14 +18149,20 @@ SELECT + 4 + + 22, 57 + - COUNT ( * ) - - 56 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(max\(\(\- Int64\(15\)\)\) AS Int32\) AS col0" at position 0 and "\(\- nullif\(Int64\(\-73\), \(\- Int64\(\-48\)\) \* Int64\(37\) \* Int64\(31\) \+ Int64\(\-32\) \- Int64\(62\) \* \(\- count\(Int64\(78\)\)\) \+ Int64\(40\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( + MAX ( ALL - + 15 ) AS INTEGER ) AS col0, - NULLIF ( - 73, - - 48 * + 37 * + 31 + - 32 - + + 62 * - COUNT ( 78 ) + + 40 ) AS col0 +---- +-15 +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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( ALL ( - + 87 ) ) AS col2, - 54 * - + COUNT ( * ) AS col2 +---- +-87 +54 query I rowsort label-3406 SELECT DISTINCT 12 * - 70 / - COUNT ( * ) + - 10 * CAST ( - - 46 AS INTEGER ) * - - COALESCE ( - 55, 16 * + + 20 * + 58 + 75, - ( 29 ) ) AS col2 @@ -18255,8 +18475,11 @@ 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\(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\. +query II valuesort SELECT 80 AS col1, 84 * + COUNT ( * ) + - 41 * + - NULLIF ( + + 27, + - COUNT ( * ) ) AS col1 +---- +1191 +80 query I rowsort SELECT 95 * + 54 @@ -18948,8 +19171,11 @@ SELECT + 56 * - 11 # 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\(\-97\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 97 AS col0, 24 col0 +---- +-97 +24 query II rowsort label-3599 SELECT DISTINCT COUNT ( * ) + - 48 * 85 AS col1, + 35 col2 @@ -19316,8 +19542,11 @@ SELECT - - 0 * - 69 * + - 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1178 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \* \(\- Int64\(\-19\)\) AS col2" at position 0 and "Int64\(\-52\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-14\) \+ Int64\(58\) \+ Int64\(95\) \* Int64\(\-90\) \* Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 62 * - - 19 AS col2, - 52 * - CAST ( NULL AS INTEGER ) + + - 14 + 58 + 95 * - 90 * + 79 col2 +---- +-1178 +NULL query II rowsort label-3667 SELECT 55 * - 16 + + MAX ( ALL 74 ) * - + 32 AS col1, 26 @@ -19391,8 +19620,11 @@ SELECT 62 + - 41 * - + COUNT ( * ) - + 70 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2621 # Datafusion - Expected - 2590 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ Int64\(76\) \* \(\- Int64\(\-34\)\) AS col1" at position 0 and "Int64\(74\) \* Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 + 76 * - - 34 AS col1, 74 * 35 AS col1 +---- +2590 +2621 query I rowsort SELECT ALL 95 * + 1 @@ -19469,8 +19701,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - -6559 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col0" at position 0 and "Int64\(99\) \+ Int64\(\-34\) \- Int64\(69\) \* Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 44 AS col0, 99 + - 34 - + 69 * 96 AS col0 +---- +-44 +-6559 query I rowsort label-3696 SELECT DISTINCT 52 - - + COUNT ( * ) AS col2 @@ -19491,8 +19726,11 @@ SELECT ALL + 26 * + SUM ( DISTINCT + + 41 ) * + 5 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(Int64\(\-96\) AS Int32\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) * COUNT ( * ) - - CAST ( - 96 AS INTEGER ) AS col0, COUNT ( * ) col0 +---- +-97 +1 query I rowsort SELECT ALL 72 * - 72 - 16 + - 96 * - + 61 * 88 * 49 @@ -19538,8 +19776,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), ( + COUNT ( * ) ) +---- +1 +1 query I rowsort SELECT 39 * 47 AS col2 @@ -19724,8 +19965,11 @@ SELECT ALL 86 + + - 53 AS col1, 15 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1134 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \* Int64\(42\) AS col2" at position 0 and "\(\- Int64\(\-12\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 27 * 42 AS col2, - ( + - 12 ) AS col2 +---- +-1134 +12 query I rowsort SELECT ALL - 59 + 91 AS col1 @@ -20093,8 +20337,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 16 AS col1, ( - + COUNT ( * ) ) * + - 50 AS col1 +---- +-16 +50 query I rowsort label-3816 SELECT ALL - NULLIF ( - + 3, - COUNT ( * ) ) AS col0 @@ -20140,8 +20387,11 @@ 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\(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\. +query II valuesort SELECT 99 - + - COUNT ( * ) col2, + 79 * SUM ( + + 13 ) * 69 AS col2 +---- +100 +70863 query I rowsort label-3825 SELECT MAX ( + - 43 ) * - 11 col2 @@ -20160,8 +20410,12 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - -118 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(\(\- CAST\(NULL AS Int32\)\)\)\) \* Int64\(11\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query RII valuesort SELECT ALL - AVG ( + - CAST ( NULL AS INTEGER ) ) * 11 col1, - 65 - 53, + 12 AS col1 +---- +-118 +12 +NULL query I rowsort SELECT ALL + 16 + 71 * - 46 + - 22 @@ -20805,8 +21059,11 @@ SELECT DISTINCT - 7 + + + 93 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 372 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "Int64\(31\) \* Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 AS col2, + 31 * + 12 AS col2 +---- +372 +41 query I rowsort SELECT DISTINCT ( - + ( - 64 ) ) + 15 - - - 44 * - 6 + - 74 @@ -20831,8 +21088,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2268 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \- \(\- Int64\(\-40\)\) \+ Int64\(81\) AS col0" at position 0 and "Int64\(12\) \+ Int64\(\-40\) \* Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL CAST ( NULL AS FLOAT8 ) - - ( - 40 ) + + 81 AS col0, 12 + - 40 * 57 AS col0 +---- +-2268 +NULL query I rowsort SELECT NULLIF ( 17, NULLIF ( + 44, ( - 70 ) ) ) * + 87 * + 59 col2 @@ -21436,8 +21696,11 @@ SELECT ALL + ( + 24 ) - 47 * + - 88 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, 68 AS col2 +---- +1 +68 query I rowsort SELECT 24 + - 66 @@ -21482,8 +21745,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(29\) / \(\- max\(DISTINCT Int64\(76\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 29 / - MAX ( DISTINCT 76 ) col2 +---- +0 +1 query I rowsort label-4078 SELECT MIN ( ALL - + 66 ) @@ -21629,8 +21895,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + 23 * - COUNT ( * ) AS col2, + 61 * - 3 * 38 + 62 AS col2 +---- +-23 +-6892 query I rowsort SELECT ALL - 69 + - 97 AS col0 @@ -21645,8 +21914,11 @@ SELECT - 4 + 58 - - - 19 # 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 "Int64\(87\) / Int64\(58\) \* \(\- count\(Int64\(19\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 75 AS col1, + 87 / 58 * - COUNT ( ALL 19 ) AS col1 +---- +-1 +-75 query II rowsort label-4109 SELECT DISTINCT + COUNT ( * ) AS col2, CAST ( - 18 AS INTEGER ) + 85 @@ -21860,8 +22132,11 @@ SELECT ALL + 31 + + ( - - 98 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 98 AS col2, 47 AS col2 +---- +-98 +47 query I rowsort SELECT 33 * - - 20 @@ -22410,8 +22685,11 @@ SELECT DISTINCT COUNT ( * ) + - 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(58\)\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 58 AS col1, 67 col1 +---- +-58 +67 query I rowsort SELECT ALL - 42 + - 45 AS col0 @@ -22513,8 +22791,11 @@ SELECT 51 + - 78 + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3621 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) \* \(\- sum\(Int64\(\-71\)\)\) AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 51 * - SUM ( - 71 ) AS col0, + 33 AS col0 +---- +-3621 +33 query I rowsort SELECT 93 * + 21 @@ -22640,8 +22921,11 @@ SELECT CAST ( - - 92 AS INTEGER ) * + - 25 + + 31 * + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -135 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) \+ sum\(DISTINCT Int64\(\-89\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 46 + + SUM ( DISTINCT - 89 ) AS col2, COUNT ( * ) AS col2 +---- +-135 +1 query I rowsort SELECT + 15 + 9 @@ -22712,8 +22996,11 @@ SELECT NULLIF ( + 99, + + 76 * - 52 * - 34 - + 12 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* Int64\(\-19\) \+ Int64\(\-8\) AS col0" at position 0 and "Int64\(\-48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 1 * - 19 + - 8 AS col0, - 48 AS col0 +---- +-27 +-48 query I rowsort SELECT - 17 + 58 @@ -22926,8 +23213,11 @@ SELECT ALL 29 / + - 85 + 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - 144 # Datafusion - Expected - -276 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* \(\- Int64\(\-24\)\) AS col0" at position 0 and "Int64\(\-92\) \* Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 6 * - - 24 AS col0, - 92 * + 3 AS col0 +---- +-276 +144 query I rowsort SELECT + ( - 17 ) - + - 64 - 60 * 83 AS col2 @@ -23346,8 +23636,12 @@ SELECT ALL - - 47 col1 # Datafusion - Expected - -210 # Datafusion - Expected - 4 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) \* Int64\(7\) AS col2" at position 0 and "Int64\(38\) / Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 30 * 7 AS col2, + 38 / 9 AS col2, - 24 AS col2 +---- +-210 +-24 +4 query I rowsort label-4432 SELECT ALL CASE - + 29 WHEN + - 25 * 57 * - 36 THEN - 8 + + + 49 + 51 * + 66 WHEN - COUNT ( * ) * - 3 THEN + + MAX ( 33 ) ELSE NULL END * 92 + + 39 AS col0 @@ -23391,8 +23685,12 @@ 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\(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\. +query III valuesort SELECT + 32 * - + CAST ( 83 AS INTEGER ) - - COUNT ( * ), + NULLIF ( 62, - 25 * + 51 / COUNT ( * ) ) AS col2, - 93 + - 3 * + 55 + + ( + + 35 ) + - 39 AS col2 +---- +-262 +-2655 +62 query I rowsort SELECT DISTINCT + 68 * + + NULLIF ( - 45, - 74 + - + 58 ) @@ -23990,8 +24288,11 @@ SELECT ALL 0 * + 80 # 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 col1" at position 0 and "Int64\(53\) \+ Int64\(\-39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 AS col1, 53 + - 39 AS col1 +---- +-48 +14 query I rowsort label-4556 SELECT DISTINCT COALESCE ( - 78, 15 * 79 * + 75 * + - 4, + SUM ( ALL 69 ) ) + - 13 AS col2 @@ -24058,8 +24359,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 10 ) AS col1, COUNT ( * ) * 87 AS col1 +---- +-10 +87 query I rowsort SELECT - 0 * + - 35 - 62 AS col2 @@ -24327,8 +24631,11 @@ SELECT 71 * + + 92 + + 43 AS col1 # 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 "Int64\(31\) AS col1" at position 0 and "Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( 31 ) AS col1, - 82 AS col1 +---- +-82 +31 query I rowsort label-4618 SELECT + MAX ( ALL - 14 ) - - - MAX ( - 72 ) * - COUNT ( * ) @@ -24394,8 +24701,11 @@ SELECT ALL - + 86 + COALESCE ( + + MAX ( ALL 38 ), - ( + + 89 ) * 28 ) * - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 1600 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col0" at position 0 and "Int64\(50\) \* \(\- max\(DISTINCT nullif\(Int64\(\-32\), Int64\(99\) \* Int64\(76\) \* Int64\(84\) / nullif\(Int64\(17\), \(\- Int64\(81\)\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 93 AS col0, 50 * - MAX ( DISTINCT NULLIF ( - 32, 99 * 76 * 84 / + NULLIF ( 17, - + 81 ) ) ) col0 +---- +-93 +1600 query II rowsort label-4631 SELECT + 48, ( + 6 ) * - CASE - - 82 WHEN - + 98 * 44 * - 16 + - + ( + 12 ) * - 14 + + + 83 + + 0 THEN + + 47 * - 88 + - + 92 END + - COUNT ( * ) + - COUNT ( * ) AS col0 @@ -25433,8 +25743,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) * + 70 AS col1, 12 AS col1 +---- +-70 +12 query I rowsort label-4832 SELECT ALL - 37 - COUNT ( * ) @@ -25744,8 +26057,12 @@ 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\(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\. +query III valuesort SELECT ALL 33 AS col2, 35 + - COUNT ( * ) / - + 15 AS col1, + COUNT ( DISTINCT + 72 ) * 89 AS col1 +---- +33 +35 +89 query I rowsort label-4892 SELECT DISTINCT - + MIN ( ALL - - 45 ) * CAST ( NULLIF ( + - 57, 0 ) AS INTEGER ) * - 66 + COUNT ( * ) col1 @@ -25755,8 +26072,11 @@ SELECT DISTINCT - + MIN ( ALL - - 45 ) * CAST ( NULLIF ( + - 57, 0 ) AS INTEGER # 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 "Int64\(69\) AS col1" at position 0 and "Int64\(\-69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 AS col1, - 69 AS col1 +---- +-69 +69 query I rowsort SELECT - 37 + - - 13 @@ -26025,8 +26345,11 @@ SELECT + ( + - 66 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 45 AS col0, 14 AS col0 +---- +14 +45 query I rowsort label-4946 SELECT ( + + CAST ( 92 AS INTEGER ) ) AS col2 @@ -26056,8 +26379,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + 38 AS col1, + CASE + 2 WHEN + - COUNT ( * ) THEN COUNT ( * ) ELSE 68 + + 55 END * - 66 + NULLIF ( COUNT ( * ), 86 / - 11 ) AS col1 +---- +-8117 +38 query I rowsort label-4952 SELECT + 9 - - CAST ( NULL AS INTEGER ) / + 89 - + 57 AS col1 @@ -26082,8 +26408,11 @@ SELECT DISTINCT NULLIF ( - 44, + 15 * NULLIF ( + 83, + 67 / - - 58 + - 7 / - ( + # 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 "Int64\(\-54\) AS col1" at position 0 and "Int64\(39\) \+ Int64\(34\) \+ \(\- Int64\(22\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 54 AS col1, + 39 + ( 34 ) + - + 22 col1 +---- +-54 +51 query II rowsort SELECT DISTINCT - + 50 AS col2, 39 @@ -26584,8 +26913,11 @@ SELECT ALL + - 41 / - 12 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 51 AS col1, 17 AS col1 +---- +-51 +17 query I rowsort SELECT DISTINCT 16 * - 61 + - 47 - 28 AS col1 @@ -26792,8 +27124,11 @@ SELECT DISTINCT ( + 98 ) + + MAX ( - ( + + 16 ) ) * ( + 4 ) + - COUNT ( * ) AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 99 AS col1, 45 AS col1 +---- +45 +99 query I rowsort label-5093 SELECT 19 * + MAX ( DISTINCT - 26 ) @@ -26980,8 +27315,11 @@ SELECT DISTINCT + SUM ( ALL 89 ) * - ( - 4 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 140 # Datafusion - Expected - -379 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \* Int64\(\-2\) AS col1" at position 0 and "coalesce\(Int64\(\-20\), Int64\(70\)\) \* Int64\(19\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 * - 2 AS col1, + COALESCE ( + - 20, + + 70 ) * 19 + COUNT ( * ) AS col1 +---- +-379 +140 query I rowsort label-5129 SELECT - 57 * - - COUNT ( * ) + - + 5 + + 71 - COUNT ( * ) / - + 88 AS col0 @@ -27042,8 +27380,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 9 * + 96 AS col2, COUNT ( * ) * - 84 AS col2 +---- +-84 +864 query I rowsort SELECT ALL - ( - - 14 ) * - 4 @@ -27170,8 +27511,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- nullif\(Int64\(5\), Int64\(29\)\)\)\)\) AS col1" at position 0 and "Int64\(70\) \- count\(nullif\(CAST\(\(\- Int64\(\-1\)\) AS Int32\), Int64\(43\)\)\) \+ Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - + ( - - NULLIF ( 5, + + 29 ) ) ) AS col1, 70 - + COUNT ( + + NULLIF ( + + CAST ( - - 1 AS INTEGER ), + 43 ) ) + - 32 AS col1 +---- +-5 +37 query I rowsort SELECT + 86 + + + 1 + - 45 AS col1 @@ -27337,8 +27681,12 @@ SELECT COALESCE ( - 13, + + 45 ) + + 40 # Datafusion - Expected - 61 # Datafusion - Expected - -36480 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "Int64\(32\) \* \(\- CASE Int64\(15\) WHEN Int64\(1\) THEN NULL ELSE Int64\(24\) \* Int64\(48\) \+ coalesce\(\(\- sum\(\(\- Int64\(\-36\)\)\)\), sum\(Int64\(99\)\)\) \+ Int64\(24\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 61 AS col0, + 32 * - ( CASE + 15 WHEN + 1 THEN NULL ELSE + 24 * 48 + COALESCE ( - SUM ( - - 36 ), SUM ( + + 99 ) ) + + 24 END ) col0, + - 10 + + 26 * - COUNT ( * ) +---- +-36 +-36480 +61 query I rowsort label-5198 SELECT COUNT ( * ) / - 44 * 38 @@ -27401,8 +27749,11 @@ SELECT 25 / 83 - + COUNT ( * ) AS col1 # 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 "Int64\(\-42\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 42 AS col2, 36 col2 +---- +-42 +36 query I rowsort label-5210 SELECT ALL - + ( - - 90 ) + + 2 + - CASE + 76 WHEN - + 5 / 63 * ( + 17 ) + + - ( 33 ) + - + 20 + + COUNT ( * ) * + CASE + 81 WHEN - 78 THEN - SUM ( DISTINCT 2 ) / - 15 + 27 END + + 22 THEN NULL ELSE 33 + - 0 END * 47 * + 26 @@ -28011,8 +28362,11 @@ SELECT ALL 86 + - 84 + - COUNT ( * ) + 78 * - - MAX ( - 49 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -2201 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "Int64\(\-71\) \* \(\- Int64\(\-31\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 9 AS col2, - 71 * - - 31 AS col2 +---- +-2201 +9 query I rowsort SELECT 69 * 58 @@ -28042,8 +28396,11 @@ SELECT DISTINCT 85 * + - ( - 67 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- \(\- Int64\(28\)\) \* Int64\(50\) AS col0" at position 0 and "Int64\(\-28\) / Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) - - + 28 * 50 AS col0, - 28 / 45 AS col0 +---- +0 +NULL query I rowsort SELECT - 3 * - 70 @@ -28114,8 +28471,12 @@ SELECT 38 + - 47 + - 78 + - 81 / - + 9 # Datafusion - Expected - -7014 # Datafusion - Expected - 36 # Datafusion - Expected - -4726 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* \(\- CASE Int64\(\-44\) WHEN Int64\(\-86\) \+ \(\- Int64\(\-39\)\) THEN NULL ELSE Int64\(\-49\) / Int64\(\-28\) \+ Int64\(81\) END\) \+ Int64\(38\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 86 * + ( + - CASE - 44 WHEN + - 86 + - - 39 THEN NULL ELSE - 49 / - 28 + + 81 END ) + 38 AS col0, 36 AS col0, + 64 * - 75 - - + 74 AS col2 +---- +-4726 +-7014 +36 query I rowsort label-5346 SELECT ALL - - 66 + 52 + COUNT ( * ) AS col0 @@ -28237,8 +28598,12 @@ 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\(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\. +query III valuesort SELECT COUNT ( * ), + 48 col1, - COUNT ( * ) * 73 * + + 55 + 22 / + 12 AS col1 +---- +-4014 +1 +48 query I rowsort SELECT + 15 - + - 1 + - 10 @@ -28301,8 +28666,11 @@ SELECT + + 29 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(25\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-42\) \+ Int64\(38\) \- count\(Int64\(1\)\) AS count\(\*\) / Int64\(77\) \* Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) * - + 25 - - COUNT ( * ) + - 42 + + 38 - + COUNT ( * ) / + + 77 * + - 19 AS col0 +---- +1 +NULL query I rowsort label-5381 SELECT ALL MIN ( 77 ) + - 52 @@ -28373,8 +28741,11 @@ SELECT + 99 + + + 10 * + 59 * 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \+ Int64\(67\) AS col2" at position 0 and "sum\(Int64\(24\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 81 + 67 AS col2, SUM ( 24 ) AS col2 +---- +-14 +24 query I rowsort label-5395 SELECT ALL COUNT ( * ) * - ( - CAST ( - 82 AS INTEGER ) ) @@ -28535,8 +28906,11 @@ SELECT + 39 / - 35 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col0" at position 0 and "min\(DISTINCT Int64\(32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 59 AS col0, MIN ( DISTINCT + + 32 ) AS col0 +---- +-59 +32 query I rowsort SELECT 81 * + 14 AS col2 @@ -28745,8 +29119,11 @@ SELECT DISTINCT - 29 - - + ( - 96 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4420 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* Int64\(85\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 52 * + 85 col1, + 12 AS col1 +---- +12 +4420 query I rowsort SELECT ALL - 22 * - 73 @@ -28974,8 +29351,11 @@ SELECT + ( SUM ( 81 ) ) + - 39 col1 # 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 "Int64\(46\) AS col2" at position 0 and "Int64\(\-92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 46 AS col2, - 92 AS col2 +---- +-92 +46 query II rowsort label-5511 SELECT + SUM ( DISTINCT - 9 ) * - ( + CASE WHEN NULL >= COUNT ( * ) THEN - ( - + 10 ) * + 87 END ) - + 75 * - 1, + COUNT ( * ) AS col0 @@ -29566,8 +29946,11 @@ SELECT DISTINCT 86 * - - 30 + - 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- Int64\(92\)\)\)\) AS col1" at position 0 and "\(\- Int64\(\-76\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( - + 92 ) AS col1, - ( + - 76 ) AS col1 +---- +-1 +76 query I rowsort SELECT - + 11 * + COALESCE ( + 10, + + 17 ) * + + 16 col0 @@ -29754,8 +30137,11 @@ 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\(1\)\) AS count\(\*\)\), Int64\(14\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 64 AS col1, - NULLIF ( + - COUNT ( * ), + 14 ) AS col1 +---- +1 +64 query I rowsort label-5660 SELECT ALL + - 30 / - 78 + - SUM ( + 72 ) @@ -30066,8 +30452,11 @@ SELECT - ( - 60 ) * 68 - + 56 # 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 "min\(Int64\(86\)\) AS col0" at position 0 and "Int64\(29\) / Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MIN ( ALL + 86 ) AS col0, 29 / + 65 col0 +---- +0 +86 query I rowsort SELECT + 20 + + + ( - 82 ) @@ -30328,8 +30717,12 @@ NULL # Datafusion - Expected - -1824 # 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 1 and "Int64\(1\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL NULLIF ( - - 38, + + 85 ) * - 48 AS col2, - 43 AS col0, + + 1 AS col0 +---- +-1824 +-43 +1 query I rowsort SELECT + 68 + + 41 + - ( 61 ) * - + 15 * - + 33 @@ -30556,8 +30949,11 @@ SELECT DISTINCT 88 * NULLIF ( + - 93, - 67 / + 86 - + SUM ( - - 61 ) ) * + + 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(92\)\) AS col0" at position 0 and "max\(Int64\(61\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 92 AS col0, MAX ( 61 ) AS col0 +---- +-92 +61 query II rowsort label-5812 SELECT ALL + ( + + 99 ) * + 89 AS col2, + 40 * 59 - MAX ( DISTINCT - 36 ) AS col1 @@ -30647,8 +31043,11 @@ SELECT DISTINCT + 48 * 2 * 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \+ \(\- CASE Int64\(31\) WHEN Int64\(39\) THEN Int64\(12\) \- Int64\(\-33\) \* \(\- Int64\(\-17\)\) ELSE Int64\(\-95\) END\) AS col0" at position 0 and "max\(DISTINCT Int64\(\-60\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) + + - CASE + 31 WHEN + + 39 THEN + 12 - - 33 * - - 17 ELSE - 95 END AS col0, MAX ( DISTINCT ( - 60 ) ) AS col0 +---- +-60 +96 query II rowsort SELECT + 33, 47 col2 @@ -30854,8 +31253,12 @@ SELECT + 93 + - + 34 # Datafusion - Expected - 77 # Datafusion - Expected - 7 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col1" at position 1 and "Int64\(36\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 69 + + 8, 7 AS col1, 36 col1 +---- +36 +7 +77 query I rowsort label-5867 SELECT ALL CAST ( - 26 AS INTEGER ) * + + 68 * - 64 + 20 * - + 35 AS col1 @@ -31627,8 +32030,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 15 / 50 / - + MIN ( DISTINCT 82 ) * 67 * 58 - + 21 AS col0, - 3 + - COUNT ( * ) AS col0 +---- +-21 +-4 query I rowsort SELECT + 85 * 69 @@ -31706,8 +32112,11 @@ SELECT 85 * - 84 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1460 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \* Int64\(73\) AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 20 * + 73 AS col1, 31 AS col1 +---- +1460 +31 query I rowsort SELECT DISTINCT 20 + + 56 AS col0 @@ -34026,8 +34435,11 @@ SELECT + 74 - 41 AS col0 # 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 "sum\(Int64\(\-46\)\) AS col1" at position 0 and "Int64\(\-8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( - 46 ) AS col1, - 8 AS col1 +---- +-46 +-8 query I rowsort label-6474 SELECT + MIN ( - 88 ) + - 12 @@ -34364,8 +34776,11 @@ SELECT - 1 * - SUM ( + - 41 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / \(\- Int64\(\-21\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - + CAST ( NULL AS INTEGER ) ) / - - 21 col0, - COUNT ( * ) col0 +---- +-1 +NULL query I rowsort SELECT ALL - 30 + + + 24 + + 47 * - 45 AS col2 @@ -34640,8 +35055,11 @@ SELECT - ( + - 2 ) + + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - -4176 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col0" at position 0 and "Int64\(58\) \* Int64\(\-72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - 85 ) AS col0, 58 * - 72 AS col0 +---- +-4176 +-85 query I rowsort label-6593 SELECT - CAST ( - 12 AS INTEGER ) - - COUNT ( * ) + + 54 + + - 2 * - ( + + 26 ) + 86 + + 43 * 63 AS col2 @@ -35269,8 +35687,11 @@ SELECT + 80 * + MIN ( + 40 ) * + 16 + - 79 - + 73 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) \+ Int64\(\-2\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 44 + + - 2 AS col0, 9 AS col0 +---- +-46 +9 query I rowsort SELECT ALL 83 + + - 14 * + - 57 @@ -35893,8 +36314,11 @@ 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\(1\)\) AS count\(\*\) \+ \(\- \(\- Int64\(\-78\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 AS col2, + COUNT ( * ) + - - ( - 78 ) AS col2 +---- +-77 +33 query I rowsort label-6831 SELECT - 49 + - - 44 + + - 83 * + 89 / COUNT ( * ) + - 65 AS col1 @@ -35929,8 +36353,11 @@ SELECT ALL - 48 - - 69 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "sum\(\(\- Int64\(5\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, + SUM ( ALL - ( + 5 ) ) AS col1 +---- +-5 +1 query I rowsort SELECT + 79 * + - 59 + + - 22 AS col2 @@ -36236,8 +36663,11 @@ SELECT 17 * + + 57 * COUNT ( * ) * - 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col1" at position 0 and "\(\- Int64\(94\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 79 AS col1, - ( + ( + 94 ) ) - ( COUNT ( * ) ) col1 +---- +-79 +-95 query II rowsort SELECT ALL 80 AS col2, 39 AS col1 @@ -36907,8 +37337,11 @@ SELECT DISTINCT 18 * - 33, 57 + 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) / Int64\(99\) AS col0" at position 0 and "Int64\(\-50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 30 / 99 col0, - 50 AS col0 +---- +-50 +0 query I rowsort label-7024 SELECT ALL - 99 * + + COUNT ( * ) / - + CAST ( NULL AS INTEGER ) AS col0 @@ -37072,8 +37505,11 @@ 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\(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\. +query II valuesort SELECT - SUM ( 92 ) + + + ( - COALESCE ( + + COUNT ( * ), MAX ( + 52 ) / 6 + + 85 + + + ( 26 ) ) ) AS col1, 56 col1 +---- +-93 +56 query I rowsort label-7055 SELECT ALL 42 * + 48 - + + ( 96 ) + - COALESCE ( - 1, + 33, + 62 / + 8 - - + 14 ) * + COALESCE ( 84, 19 + + - 73, + 40 * - 35 ) * 45 @@ -37108,8 +37544,11 @@ 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\(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\. +query II valuesort 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 +---- +-202340 +186 query II rowsort label-7062 SELECT ALL + - 74 AS col0, + COUNT ( * ) @@ -37530,8 +37969,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -11616332 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col0" at position 0 and "Int64\(94\) \* Int64\(\-13\) \* Int64\(98\) \* Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 AS col0, 94 * - 13 * 98 * 97 AS col0 +---- +-11616332 +31 query II rowsort SELECT 67 AS col2, + 58 @@ -37878,8 +38320,11 @@ SELECT - - ( - 34 ) * + + 41 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3780 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* Int64\(54\) AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 70 * 54 AS col0, 59 col0 +---- +3780 +59 query I rowsort label-7207 SELECT - MAX ( ALL - 18 ) col2 @@ -38159,8 +38604,11 @@ SELECT DISTINCT + 92 + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 889 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(29\) AS col2" at position 0 and "Int64\(59\) \+ \(\- Int64\(10\)\) \* Int64\(\-83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) + + 29 AS col2, 59 + - + 10 * - 83 col2 +---- +889 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -38836,8 +39284,11 @@ SELECT ALL COALESCE ( 25, 0 ) * - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 AS col0, CAST ( NULL AS INTEGER ) * 95 AS col0 +---- +65 +NULL query I rowsort label-7390 SELECT ALL COUNT ( * ) * + + 45 * - CASE CAST ( NULL AS INTEGER ) WHEN ( + 17 ) THEN NULL ELSE + - 75 * + 69 * + COUNT ( * ) * - + COUNT ( * ) END AS col1 @@ -38888,8 +39339,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - -6434160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col0" at position 0 and "max\(Int64\(85\)\) \* Int64\(76\) \* Int64\(83\) \* Int64\(\-12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 62 AS col0, MAX ( + 85 ) * 76 * 83 * - 12 AS col0 +---- +-62 +-6434160 query I rowsort label-7400 SELECT ALL + 98 + - 47 + - ( + SUM ( + 8 ) ) @@ -39287,8 +39741,11 @@ SELECT + 57 * 20 + + 19 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 16 AS col0, 24 AS col0 +---- +16 +24 query I rowsort label-7477 SELECT - ( - SUM ( ALL + + 87 ) ) @@ -40092,8 +40549,11 @@ SELECT DISTINCT + ( ( + 29 ) ) * - - 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col0" at position 0 and "CAST\(Int64\(20\) AS Int32\) \+ Int64\(\-58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 AS col0, CAST ( 20 AS INTEGER ) + - 58 col0 +---- +-38 +52 query I rowsort SELECT 52 * - - ( + + 92 ) * + 35 + + 19 @@ -40267,14 +40727,20 @@ SELECT ALL - 76 * + + 52 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col1" at position 0 and "Int64\(\-24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 AS col1, - 24 AS col1 +---- +-24 +67 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) AS col0" at position 0 and "Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 74 AS col0, - 99 AS col0 +---- +-74 +-99 query I rowsort SELECT 61 - + + 55 @@ -40634,8 +41100,11 @@ SELECT - 93 - + + 87 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(80\)\) AS col0" at position 0 and "coalesce\(\(\- Int64\(0\)\), CASE Int64\(88\) WHEN Int64\(44\) \* Int64\(\-90\) THEN nullif\(Int64\(7\), Int64\(26\) \* \(\- Int64\(\-84\)\)\) END, Int64\(43\) \* \(\- Int64\(48\)\)\) \+ Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 80 AS col0, COALESCE ( - - 0, CASE + 88 WHEN + 44 * - 90 THEN + NULLIF ( 7, 26 * - - 84 ) END, 43 * - + 48 ) + 49 AS col0 +---- +-80 +49 query II rowsort label-7733 SELECT ALL ( - CAST ( 91 AS INTEGER ) ) col2, - 11 AS col1 @@ -41337,8 +41806,11 @@ SELECT DISTINCT - 44 - + 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - -506250 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(\-75\) \* Int64\(75\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 90 * - 75 * + 75 AS col1, + 74 col1 +---- +-506250 +74 query I rowsort SELECT ALL 43 - + 82 @@ -41418,8 +41890,11 @@ SELECT DISTINCT 25 col2, COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "Int64\(\-35\) / Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 27 AS col0, - 35 / 74 AS col0 +---- +0 +27 query I rowsort SELECT COALESCE ( + 95, - + 94 ) + - - 88 @@ -41670,8 +42145,11 @@ SELECT + CAST ( - 53 AS INTEGER ) * + 25 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, 40 col0 +---- +1 +40 query II rowsort label-7931 SELECT - 54 / + COALESCE ( 88, 69 + 35 ) AS col1, 93 * - 45 + + 74 - 99 + - 38 @@ -41718,14 +42196,20 @@ SELECT ALL - 37 + + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 AS col0, + 73 AS col0 +---- +26 +73 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col1, 76 AS col1 +---- +76 +NULL query I rowsort label-7941 SELECT - 76 - 14 + + 87 / 47 * - CAST ( NULL AS INTEGER ) + 55 AS col2 @@ -42623,8 +43107,11 @@ SELECT 40 * - 83 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \+ min\(Int64\(2\)\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 + + MIN ( + 2 ) AS col0, + 60 AS col0 +---- +48 +60 query I rowsort label-8117 SELECT + 65 * - CASE - + 53 WHEN - 2 THEN + COUNT ( * ) + - COALESCE ( 84, 46 ) WHEN - COUNT ( * ) / 72 THEN + SUM ( ALL 42 ) ELSE ( 77 ) + + 48 END - COUNT ( * ) * + 82 AS col1 @@ -42878,8 +43365,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 92 -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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 94 AS col1, 92 col1 +---- +92 +94 query I rowsort SELECT - - 66 * - - ( 61 ) @@ -43047,8 +43537,11 @@ SELECT + + COALESCE ( 61, - - 58 * 5 + - COUNT ( * ) + - 62 * 75 * + 78 + 22 - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 748 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-17\)\) \* Int64\(44\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 17 * + + 44 AS col1, - 0 AS col1 +---- +0 +748 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -43260,8 +43753,11 @@ SELECT + COUNT ( * ) AS col1, CAST ( 98 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1124 # Datafusion - Expected - -156476 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \- Int64\(15\) \* Int64\(\-76\) AS col0" at position 0 and "\(\- nullif\(Int64\(51\), Int64\(65\)\)\) \* CAST\(\(\- Int64\(\-52\)\) AS Int32\) \* Int64\(57\) \+ nullif\(Int64\(68\) \+ count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\), Int64\(12\) \+ Int64\(50\)\) \* Int64\(\-77\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-156476 +1124 query I rowsort SELECT ALL - - NULLIF ( - + 16, + 88 ) - - + 95 + + + 68 AS col1 @@ -43698,8 +44194,12 @@ SELECT ALL + - NULLIF ( - COUNT ( * ), + COUNT ( * ) ) / + 64 * 23 * ( - - 82 ) # Datafusion - Expected - -4 # Datafusion - Expected - 16 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 4 AS col1, 16 AS col1, + 25 +---- +-4 +16 +25 query I rowsort label-8323 SELECT DISTINCT + - 65 * + - 87 + + 90 + - 6 + + 99 + - - 79 * COUNT ( * ) * 62 / - 6 @@ -43886,8 +44386,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ \(\- Int64\(60\)\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 + - + 60 col2, 11 AS col2 +---- +11 +33 query I rowsort SELECT + 37 * - + 18 AS col2 @@ -45309,8 +45812,12 @@ SELECT 54 + - 75 # Datafusion - Expected - 58 # Datafusion - Expected - 0 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "Int64\(0\) \* Int64\(12\) \* Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 58 AS col2, - 0 * + 12 * 27 AS col2, - 23 col2 +---- +-23 +0 +58 query I rowsort label-8629 SELECT 28 * MAX ( + 22 ) @@ -45588,14 +46095,20 @@ SELECT CAST ( - 81 AS INTEGER ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1164 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* CAST\(NULL AS Int32\) \* Int64\(12\) AS col2" at position 0 and "Int64\(93\) \+ sum\(Int64\(\-63\)\) \* CASE \(\- \(\- sum\(Int64\(79\)\)\)\) WHEN Int64\(6\) THEN Int64\(93\) ELSE max\(\(\- CASE Int64\(29\) WHEN \(\- CAST\(NULL AS Int32\)\) \* Int64\(10\) \+ Int64\(89\) THEN NULL ELSE Int64\(17\) END\)\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 30 * CAST ( NULL AS INTEGER ) * 12 AS col2, 93 + + SUM ( ALL - 63 ) * + + CASE - - SUM ( + 79 ) WHEN + 6 THEN 93 ELSE MAX ( ALL - CASE 29 WHEN - CAST ( NULL AS INTEGER ) * + + 10 + 89 THEN NULL ELSE + 17 END ) END AS col2 +---- +1164 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 57 col2, 54 AS col2 +---- +54 +57 query I rowsort SELECT + 59 * - 21 AS col0 @@ -45676,8 +46189,11 @@ SELECT ALL ( + + 40 ) * - 21 AS col0, 18 * + 88 * - - 94 * 3 * + 87 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - -40824 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "Int64\(\-36\) \* Int64\(63\) \* Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 2 AS col2, - 36 * + + 63 * + + 18 AS col2 +---- +-40824 +2 query I rowsort SELECT DISTINCT - 84 + 36 @@ -45750,8 +46266,11 @@ SELECT ALL + + 48 * + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 5 AS col2, + 37 AS col2 +---- +-5 +37 query II rowsort label-8713 SELECT + + COUNT ( * ) col2, 18 + 58 AS col0 @@ -45767,8 +46286,11 @@ SELECT + - COALESCE ( COUNT ( * ), - - 36, - 8, COUNT ( * ) ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CASE Int64\(65\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-99\) \+ Int64\(61\) END\)\) AS col2" at position 0 and "Int64\(65\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - CASE ( + 65 ) WHEN + + COUNT ( * ) THEN - 99 + 61 END AS col2, + 65 + - CAST ( NULL AS INTEGER ) col2 +---- +NULL +NULL query I rowsort SELECT ALL - NULLIF ( + ( 13 ), + 8 ) * + - 74 AS col0 @@ -46111,8 +46633,11 @@ 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\(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\. +query II valuesort SELECT ALL 18 AS col0, - 73 * 83 * - + 47 + COUNT ( * ) - COUNT ( * ) - - + 65 * + + 59 AS col0 +---- +18 +288608 query II rowsort SELECT ALL ( + - 49 ) + - + 6 - - 74 * 38 * - - 90 AS col2, 29 AS col1 @@ -46377,8 +46902,12 @@ SELECT 57 / 75 * 53 + + NULLIF ( + 78, + 42 + - 75 - 11 ) + - 5 AS col1 # Datafusion - Expected - -7623 # Datafusion - Expected - 92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* Int64\(\-77\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 99 * - 77 col0, 92 AS col0, CAST ( NULL AS INTEGER ) AS col2 +---- +-7623 +92 +NULL query I rowsort SELECT ALL 11 * + 12 @@ -46465,8 +46994,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(11\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 0 + + 11 AS col2, COUNT ( * ) AS col2 +---- +1 +11 query I rowsort label-8848 SELECT ( - COUNT ( * ) ) + 73 @@ -47119,8 +47651,11 @@ SELECT DISTINCT - 75 + + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col1" at position 0 and "Int64\(74\) \+ Int64\(\-42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 29 AS col1, 74 + - 42 AS col1 +---- +-29 +32 query I rowsort label-8972 SELECT 82 + COUNT ( * ) / - + COUNT ( * ) + - ( 55 ) AS col2 @@ -47261,8 +47796,11 @@ SELECT ALL - 62 + 6 / - NULLIF ( ( + + 73 ), - + 96 * 59 ) * + - 50 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - -2565 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \+ Int64\(33\) AS col1" at position 0 and "Int64\(\-27\) \* Int64\(95\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 89 + + 33 AS col1, - 27 * + 95 * COUNT ( * ) AS col1 +---- +-2565 +-56 query II rowsort label-8999 SELECT ALL + COUNT ( + - 55 ) + + + 70 AS col2, + 34 @@ -47367,8 +47905,11 @@ SELECT - - CASE ( - 45 ) WHEN + 82 THEN NULL ELSE + 74 END # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 2365 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-55\) \* Int64\(\-43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 36 / COUNT ( * ) AS col2, - 55 * + - 43 AS col2 +---- +2365 +36 query I rowsort SELECT ALL + 86 * - + 81 + 48 AS col1 @@ -48075,8 +48616,11 @@ SELECT + - COUNT ( * ) * - 22, 55 + - ( COUNT ( * ) ) / - 24 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \+ Int64\(\-26\) \+ \(\- Int64\(\-78\)\) AS col1" at position 0 and "Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 36 + - 26 + - ( + - 78 ) col1, - 82 AS col1 +---- +-82 +88 query I rowsort SELECT ALL + 50 + + 47 AS col0 @@ -48153,8 +48697,11 @@ SELECT ALL COALESCE ( MAX ( + 45 ), CAST ( 43 AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -350 # Datafusion - Expected - 62092 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \* Int64\(5\) AS col0" at position 0 and "Int64\(76\) \* Int64\(43\) \* Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 * 5 col0, + 76 * + 43 * 19 col0 +---- +-350 +62092 query II rowsort SELECT + ( + 80 ), 58 AS col1 @@ -48444,8 +48991,11 @@ SELECT ( - ( - 35 ) ) # 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 col0" at position 0 and "sum\(Int64\(\-73\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 55 col0, SUM ( - 73 ) AS col0 +---- +-73 +55 query I rowsort label-9223 SELECT 10 - - CASE + 74 WHEN + 48 THEN NULL WHEN - 2 THEN NULL ELSE 93 * - COUNT ( * ) + - 78 + + MAX ( DISTINCT 89 ) + - 44 END * + 46 col0 @@ -48839,8 +49389,11 @@ SELECT DISTINCT 21 * - 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 68 ) col1, 9 AS col1 +---- +-68 +9 query I rowsort SELECT - 50 + NULLIF ( - ( + 83 ), - 69 * + - 95 * - 8 ) + + 50 AS col2 @@ -48881,8 +49434,11 @@ SELECT - 90 / - 58 + - ( 48 ), 72 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1468 # Datafusion - Expected - -148 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-30\)\) / Int64\(\-28\) \+ Int64\(1\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(71\) \- Int64\(27\) \* Int64\(57\) AS col0" at position 0 and "Int64\(2\) \* CAST\(Int64\(\-74\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 30 / - 28 + + + 1 * - - COUNT ( * ) + 71 - + 27 * + 57 col0, 2 * + CAST ( + - 74 AS INTEGER ) AS col0 +---- +-1468 +-148 query II rowsort label-9306 SELECT + 22 * - COUNT ( * ) + - CAST ( + CASE - - 16 WHEN - 29 - + 87 THEN NULL WHEN 36 THEN + - 90 END AS INTEGER ) * + NULLIF ( - - 45, 64 ) AS col2, 69 @@ -49037,8 +49593,12 @@ SELECT COUNT ( 42 ) AS col0 # Datafusion - Expected - 1679 # Datafusion - Expected - -78 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \* Int64\(\-73\) AS col0" at position 0 and "Int64\(\-43\) \- Int64\(\-37\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 23 * - 73 AS col0, - 78 AS col2, + - 43 - - 37 AS col0 +---- +-6 +-78 +1679 query II rowsort SELECT 37 - - 62, - ( + 32 ) AS col2 @@ -49066,8 +49626,11 @@ SELECT ALL 20 * - COUNT ( * ) - + - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3192 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \+ Int64\(\-38\) \* Int64\(85\) AS col2" at position 0 and "Int64\(46\) \+ nullif\(Int64\(\-84\), Int64\(77\) \* Int64\(\-18\) \+ \(\- CAST\(NULL AS Int32\)\) \* nullif\(Int64\(86\), Int64\(75\) \* Int64\(96\) / \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Float64\)\)\) / Int64\(53\) \- Int64\(\-97\) \* Int64\(41\) \+ Int64\(47\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +-3192 +-38 query II rowsort label-9340 SELECT DISTINCT - 88 + - - 82 + + ( + - 71 ) + 40 + - 66 * - 13 - - COALESCE ( 92, + 12 * - COUNT ( * ), - 68 * - 2, + 49 * 20 + - 87 * + COUNT ( * ) + 49 ) * + ( - + ( + - ( - 7 ) ) ) * + 53 + 58 + - COUNT ( * ) + 24 - ( 74 ) + + 88 - + + 71 AS col0, 31 @@ -49126,8 +49689,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(\-98\) / \(\- Int64\(13\)\) \+ Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 AS col1, - COUNT ( * ) + - 98 / - + 13 + + 86 col1 +---- +44 +92 query I rowsort SELECT - 2 * 30 - + - 48 + - 93 * + 4 @@ -50025,8 +50591,12 @@ SELECT ALL + 64 AS col1, + 4 # Datafusion - Expected - -92 # Datafusion - Expected - -540 # Datafusion - Expected - -1288 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(92\)\) \+ Int64\(0\) AS col1" at position 0 and "min\(DISTINCT Int64\(15\)\) \* Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + ( + 92 ) + 0 AS col1, MIN ( DISTINCT 15 ) * + - 36 AS col1, 29 * COUNT ( * ) - + 77 + 31 * + MIN ( - 40 ) col2 +---- +-1288 +-540 +-92 query I rowsort label-9524 SELECT ALL COUNT ( * ) / - 30 + + 89 @@ -50077,8 +50647,11 @@ SELECT - - COALESCE ( - 43, - 83 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-99\) / \(\- CASE Int64\(29\) WHEN Int64\(78\) \+ Int64\(54\) \+ Int64\(45\) / Int64\(\-11\) \+ Int64\(44\) THEN count\(Int64\(1\)\) AS count\(\*\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, - 99 / - CASE + 29 WHEN + 78 + + 54 + 45 / - 11 + + 44 THEN + COUNT ( * ) END AS col2 +---- +1 +NULL query I rowsort SELECT ALL + + ( 23 ) + + ( - - 74 ) @@ -50276,8 +50849,11 @@ 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\(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\. +query II valuesort 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 +---- +-27 +NULL query II rowsort SELECT ALL 29 AS col1, 98 @@ -51276,8 +51852,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, - 15 AS col0 +---- +-15 +1 query I rowsort SELECT ALL + ( - 36 ) - 6 AS col2 @@ -51536,8 +52115,11 @@ SELECT + + CAST ( + CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) * - + COALESC # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "Int64\(22\) \+ Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 44 AS col2, 22 + + ( + 22 ) AS col2 +---- +44 +44 query I rowsort SELECT ALL - + 13 * + 5 AS col1 @@ -51833,8 +52415,11 @@ SELECT 61 * + - 68 * - - 59 AS col2, + 82 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 817 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col0" at position 0 and "Int64\(\-43\) \* Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 32 AS col0, - 43 * - 19 col0 +---- +-32 +817 query I rowsort label-9874 SELECT 67 - 70 * + - NULLIF ( - 64, 27 * + CAST ( NULL AS INTEGER ) ) AS col1 @@ -51995,8 +52580,11 @@ SELECT - 57 - + 4 + - + COALESCE ( + COUNT ( * ), 33 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 46 -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\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + SUM ( DISTINCT 87 ) AS col2, + 46 AS col2 +---- +46 +87 query I rowsort SELECT - CASE + 58 WHEN + 37 THEN + + 73 WHEN 44 THEN NULL WHEN + 82 * - + 65 THEN NULL ELSE NULL END / + 62 + - 34 + + 82 AS col2 @@ -52173,8 +52761,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 AS col1, + COUNT ( * ) AS col1 +---- +1 +39 query I rowsort SELECT + ( 48 ) + 10 AS col0 @@ -52316,8 +52907,11 @@ SELECT 48 + - 62 + - - 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col0" at position 0 and "coalesce\(Int64\(13\), Int64\(83\), Int64\(63\) \* \(\- CAST\(Int64\(\-14\) AS Int32\)\) \* Int64\(55\) \* Int64\(96\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 78 AS col0, COALESCE ( 13, + 83, 63 * - CAST ( - 14 AS INTEGER ) * + 55 * 96 ) AS col0 +---- +-78 +13 query I rowsort label-9966 SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - COUNT ( ALL - 71 ) @@ -52368,8 +52962,11 @@ SELECT 94 * + + 42 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "Int64\(\-7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 AS col0, - 7 AS col0 +---- +-7 +26 query I rowsort label-9976 SELECT + CASE - 80 WHEN - 76 THEN COUNT ( * ) * COALESCE ( + - 35, CASE - + AVG ( + 4 ) WHEN + ( + 19 ) THEN 63 * + 72 + + COUNT ( * ) END / + CAST ( 13 / 63 + - COUNT ( * ) AS INTEGER ) ) * + CAST ( - 90 * - CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN 99 THEN + ( 74 ) ELSE NULL END AS col1 @@ -52425,8 +53022,11 @@ SELECT + 66 AS col2, + ( - - COUNT ( * ) ) * - - 91 * - 56 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- \(\- CAST\(Int64\(\-26\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 2 col2, + COUNT ( * ) / - - CAST ( - 26 AS INTEGER ) AS col2 +---- +-2 +0 query II rowsort SELECT + + 89 AS col2, - 23 diff --git a/data/sqlite/random/expr/slt_good_30.slt b/data/sqlite/random/expr/slt_good_30.slt index cb961f4..33fb8b7 100644 --- a/data/sqlite/random/expr/slt_good_30.slt +++ b/data/sqlite/random/expr/slt_good_30.slt @@ -588,8 +588,11 @@ 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\(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\. +query II valuesort SELECT ALL 62 / - - 53 + - MIN ( + - 70 ) + - - COUNT ( * ) / - SUM ( 44 ) AS col2, + 33 AS col2 +---- +33 +71 query I rowsort label-107 SELECT - + CAST ( NULL AS INTEGER ) * - 81 @@ -641,8 +644,11 @@ SELECT ALL - CAST ( 55 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(74\)\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 74 AS col1, + 34 col1 +---- +-74 +34 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -873,8 +879,11 @@ SELECT ALL - 91, + COALESCE ( + 45, + + 69 * - 66 * COALESCE ( + 35, - ( - 0 ), # 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 col1" at position 0 and "Int64\(46\) \- Int64\(42\) \+ Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 62 AS col1, 46 - 42 + - 1 AS col1 +---- +-62 +3 query I rowsort SELECT DISTINCT + COALESCE ( - 84, 73, ( - 23 ) + - - 22 ) + + + 10 @@ -1503,14 +1512,20 @@ SELECT 15 - - 62 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 col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 60 AS col2, 1 AS col2 +---- +1 +60 # 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\(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\. +query II valuesort SELECT COUNT ( * ) + 48 AS col2, ( + + CASE + 24 WHEN - - 45 / - - COALESCE ( - ( + + MAX ( - 58 ) ), 84 ) THEN 50 ELSE + 68 * - 72 + - 37 + - 92 END ) AS col2 +---- +-5025 +49 query I rowsort SELECT ALL CASE - ( - 7 ) WHEN 65 + + 53 + 60 * + 31 THEN - + ( + ( - - 88 ) ) WHEN + 54 THEN NULL WHEN - 89 + 59 - - 23 * + + 80 + 32 THEN + 97 + + + 20 ELSE NULL END col0 @@ -1813,8 +1828,11 @@ SELECT ALL + 25 col1, - ( + 47 ) + - COUNT ( * ) + - 44 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-72\) \* Int64\(\-78\) \* \(\- Int64\(\-44\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \- CASE Int64\(\-46\) WHEN Int64\(\-50\) THEN NULL WHEN CAST\(Int64\(20\) AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(75\) \+ Int64\(2\) THEN Int64\(\-26\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1 +NULL query I rowsort label-344 SELECT COUNT ( * ) / + + 58 + + 89 @@ -2345,8 +2363,11 @@ SELECT - ( COUNT ( * ) ) / 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col1" at position 0 and "Int64\(92\) \+ \(\- coalesce\(CAST\(NULL AS Int32\), Int64\(73\)\)\) / Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 23 AS col1, 92 + - COALESCE ( + + CAST ( NULL AS INTEGER ), + 73 ) / 9 col1 +---- +-23 +84 query I rowsort SELECT ALL - 32 + COALESCE ( 68, - - 24 ) @@ -2398,8 +2419,11 @@ SELECT 42 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \+ Int64\(\-47\) \+ Int64\(56\) / Int64\(28\) AS col0" at position 0 and "Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + ( 80 ) ) + - 47 + + 56 / + 28 AS col0, - 25 AS col0 +---- +-25 +35 query I rowsort label-456 SELECT - 6 + - + COUNT ( * ) AS col2 @@ -2477,8 +2501,11 @@ NULL # 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 "Int64\(\-46\) AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 46 AS col1, + 17 AS col1 +---- +-46 +17 query I rowsort label-471 SELECT COALESCE ( 71, - 40 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), + 85 ) AS col0 @@ -2683,8 +2710,11 @@ SELECT ALL + - 80 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(73\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 73 ) + COUNT ( * ) + - ( + CAST ( NULL AS INTEGER ) ) AS col0, 18 AS col0 +---- +18 +NULL query I rowsort SELECT + 0 @@ -2757,8 +2787,11 @@ SELECT ALL 1 + - + 88 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 col1" at position 0 and "Int64\(\-65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 21 AS col1, - 65 AS col1 +---- +-21 +-65 query I rowsort SELECT ALL 25 + + 26 @@ -2890,14 +2923,20 @@ 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\(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\. +query II valuesort SELECT 22 AS col2, - 68 * - NULLIF ( - 56, + 30 + - 8 + - 10 + 95 * - NULLIF ( COUNT ( * ), 13 * - 45 ) / + - NULLIF ( 31, + 38 ) ) AS col2 +---- +-3808 +22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "CAST\(\(\- sum\(Int64\(36\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 22 AS col2, CAST ( ( - SUM ( + ( 36 ) ) ) AS INTEGER ) AS col2 +---- +-36 +22 query I rowsort label-550 SELECT ALL - ( - + COUNT ( * ) ) / 37 + + 15 @@ -2979,8 +3018,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(\-3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 73 * - 25 AS col2, 42 * + COUNT ( * ) - + - 3 AS col2 +---- +1825 +45 query I rowsort label-566 SELECT DISTINCT - 91 * + ( - 12 ) * NULLIF ( + COALESCE ( - 95, + + 46 - + CAST ( + 87 AS INTEGER ), - ( - - 75 ), - 43, + 22 ), 21 ) + 2 AS col1 @@ -3267,8 +3309,11 @@ SELECT 44 AS col0, 95 * + COUNT ( + 70 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-13\), \(\- Int64\(29\)\)\) AS col1" at position 0 and "\(\- Int64\(14\)\) \- sum\(Int64\(38\)\) \+ Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COALESCE ( - 13, - + 29 ) AS col1, - ( 14 ) - SUM ( 38 ) + + - 36 AS col1 +---- +-13 +-88 query I rowsort SELECT DISTINCT ( 98 ) @@ -3940,8 +3985,11 @@ SELECT 43 - + 75 / + 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 17 AS col0, + 91 AS col0 +---- +-17 +91 query I rowsort label-753 SELECT ALL - ( + 55 ) + + COUNT ( * ) - + - 9 @@ -4172,8 +4220,11 @@ SELECT ALL + NULLIF ( + 24, + 45 ) * ( - 59 ) - - 67 + 46 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 126 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "Int64\(43\) \+ Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + 65 ) AS col0, + 43 + 83 AS col0 +---- +126 +65 query II rowsort label-798 SELECT - 64 + - 14 + + ( - 85 ), - 44 + + + CAST ( COUNT ( * ) AS INTEGER ) AS col2 @@ -4509,8 +4560,11 @@ SELECT - - ( + 74 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) \+ Int64\(27\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 44 + 27 + + COUNT ( * ) AS col0, ( - 31 ) AS col0 +---- +-16 +-31 query I rowsort label-862 SELECT DISTINCT + 22 + - - ( ( + COUNT ( * ) ) ) @@ -4559,8 +4613,12 @@ SELECT ALL 60 + + + 82 # Datafusion - Expected - 76 # Datafusion - Expected - 95 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 1 and "Int64\(\-11\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 76 AS col2, 95 AS col1, - 11 AS col1 +---- +-11 +76 +95 query I rowsort SELECT ALL ( - 92 ) + NULLIF ( - - 5, + 27 ) @@ -4707,8 +4765,11 @@ SELECT + COUNT ( - 90 ) + - NULLIF ( + 45, ( - + COALESCE ( + + ( + - 74 ), - + # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - -3654 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col0" at position 0 and "Int64\(63\) \* \(\- Int64\(58\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 73 AS col0, 63 * + - ( + 58 ) AS col0 +---- +-3654 +-73 query I rowsort label-899 SELECT ALL - - NULLIF ( + 34, + 55 / MIN ( DISTINCT 27 ) + + 43 ) + + + 93 AS col1 @@ -4759,8 +4820,11 @@ SELECT DISTINCT - + SUM ( ALL + 10 ) + 60 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 598 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col1" at position 0 and "Int64\(26\) \* max\(DISTINCT Int64\(23\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 8 col1, 26 * MAX ( DISTINCT + 23 ) col1 +---- +-8 +598 query I rowsort label-909 SELECT ALL COALESCE ( + 23, - COUNT ( * ), 12 * - 12 + + 14 * + - 40 + 1 ) AS col0 @@ -4999,8 +5063,11 @@ SELECT - 61 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 93 AS col1 +---- +1 +93 # Datafusion - Data was automatically updated based on comparison db results # Datafusion - Previous results: @@ -5023,8 +5090,11 @@ SELECT ALL - 7 * - 57 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col2" at position 0 and "\(\- min\(\(\- Int64\(55\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 72 AS col2, - MIN ( - + 55 ) AS col2 +---- +-72 +55 query I rowsort label-958 SELECT ALL COUNT ( DISTINCT 92 ) AS col0 @@ -5302,8 +5372,11 @@ SELECT DISTINCT 98 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -240 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(\-80\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 * - 80 AS col1, CAST ( NULL AS INTEGER ) AS col1 +---- +-240 +NULL query I rowsort label-1013 SELECT ALL + 69 / - + 63 @@ -6176,8 +6249,11 @@ SELECT 93 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "Int64\(\-62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 AS col2, - 62 AS col2 +---- +-62 +63 query I rowsort label-1184 SELECT ALL 71 + - + COUNT ( * ) * - 88 + COUNT ( * ) AS col2 @@ -6320,8 +6396,11 @@ SELECT ALL + 37 + - + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(51\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 51 AS col1, CAST ( NULL AS INTEGER ) AS col1 +---- +-51 +NULL query I rowsort label-1212 SELECT ALL - - COALESCE ( - - CASE + + 10 WHEN 2 * + COUNT ( * ) - - 59 * - 52 THEN CAST ( 16 AS INTEGER ) * - 83 WHEN + 14 THEN NULL WHEN 6 * 55 + 10 THEN NULL ELSE 58 + + CAST ( NULL AS INTEGER ) END, 0 / + 59 ) + - 42 @@ -6352,8 +6431,11 @@ SELECT 77 * + ( + + MAX ( ALL 51 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) col1, + 46 AS col1 +---- +46 +NULL query I rowsort SELECT 62 - - 70 * 38 AS col0 @@ -7090,8 +7172,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3782 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(\-62\) AS col2" at position 0 and "\(\- max\(DISTINCT Int64\(\-72\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 61 * + - 62 AS col2, - MAX ( DISTINCT - 72 ) AS col2 +---- +-3782 +72 query I rowsort SELECT - 0 * - + 48 + + + 11 * 64 @@ -7228,8 +7313,11 @@ SELECT 15 * 17 * + 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 AS col2, + 61 col2 +---- +28 +61 query I rowsort SELECT - 93 * - 59 col1 @@ -7421,8 +7509,11 @@ SELECT ALL + 33 + + + 80 + - COUNT ( * ) * 66 - + 22 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- Int64\(\-85\)\)\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( - - 85 ) AS col2, - CAST ( NULL AS INTEGER ) AS col2 +---- +-85 +NULL query II rowsort label-1424 SELECT - 76 + 61, - NULLIF ( - + 73, + 7 + - + MIN ( ALL + - 52 ) ) * 39 AS col1 @@ -7684,8 +7775,11 @@ SELECT 29, - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -820 # Datafusion - Expected - 616 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(53\)\) \- Int64\(59\) \* \(\- Int64\(\-13\)\) AS col1" at position 0 and "Int64\(56\) \* Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 53 - + 59 * - - 13 col1, + 56 * + 11 AS col1 +---- +-820 +616 query I rowsort SELECT 26 * - - 58 * - - 68 @@ -7836,8 +7930,11 @@ 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\(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\. +query II valuesort 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 +---- +44 +NULL query I rowsort SELECT 15 * + - 98 @@ -7858,8 +7955,11 @@ SELECT 87, 20 + - 18 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 95 AS col2, + 71 AS col2 +---- +-95 +71 query I rowsort SELECT DISTINCT - 69 @@ -7972,8 +8072,11 @@ SELECT + 17, 28 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- Int64\(57\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 + COUNT ( * ) AS col0, - ( + 57 ) col0 +---- +-57 +57 query I rowsort label-1531 SELECT - MIN ( ALL - 3 ) @@ -7993,8 +8096,11 @@ SELECT - 26 + + 90 * + 34 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 6 AS col2, + 28 AS col2 +---- +28 +6 query I rowsort label-1535 SELECT ALL - 58 + SUM ( + 37 ) AS col2 @@ -8117,8 +8223,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) * + - SUM ( ALL 3 ) AS col2, 28 col2 +---- +28 +3 query I rowsort SELECT - 81 * + 33 AS col1 @@ -8299,8 +8408,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 21 AS col2, 82 AS col2 +---- +21 +82 query I rowsort SELECT - 58 * + - 54 @@ -8691,8 +8803,11 @@ SELECT MAX ( ALL + 23 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col1" at position 0 and "\(\- CAST\(\(\- avg\(CAST\(\(\- Int64\(\-92\)\) AS Int32\)\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 17 AS col1, - CAST ( - + AVG ( CAST ( - - 92 AS INTEGER ) ) AS INTEGER ) col1 +---- +-17 +92 query I rowsort SELECT ALL - 29 AS col0 @@ -8757,14 +8872,20 @@ SELECT + 43 + - - 9 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - -7007 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col2" at position 0 and "Int64\(91\) \* CAST\(\(\- nullif\(Int64\(77\), Int64\(2\) \+ \(\- Int64\(\-52\)\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 AS col2, 91 * + CAST ( - NULLIF ( + 77, + 2 + - ( - 52 ) ) AS INTEGER ) AS col2 +---- +-7007 +-81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 98 AS col0, 64 AS col0 +---- +64 +98 query I rowsort label-1681 SELECT - 79 + 93 + COUNT ( * ) * + + 25 @@ -8917,8 +9038,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 83 AS col1, 13 AS col1 +---- +13 +83 query I rowsort label-1710 SELECT + 98 + - ( 56 ) * + + COUNT ( * ) @@ -9345,8 +9469,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 82 * - ( 53 ) AS col0, - 83 + - - COUNT ( * ) AS col0 +---- +-4346 +-82 query I rowsort SELECT DISTINCT 64 AS col0 @@ -9508,8 +9635,11 @@ SELECT 50 - - + 24 * + NULLIF ( + 79, 99 * - 79 ) # 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 "Int64\(\-35\) \+ Int64\(38\) AS col0" at position 0 and "Int64\(\-86\) \+ Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 35 + + 38 AS col0, - 86 + + 55 AS col0 +---- +-31 +3 query I rowsort label-1823 SELECT 59 - + 99 * - + COALESCE ( - 38, MAX ( ALL - 57 ) / + 77 + + - 47 ) + - - 8 / 17 / - 50 AS col2 @@ -10039,8 +10169,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(\-77\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 AS col1, COUNT ( * ) * - - 77 AS col1 +---- +1 +77 query I rowsort SELECT 3 * - 10 * + 73 * - 29 * + 22 AS col1 @@ -10286,8 +10419,11 @@ SELECT ALL - 34 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "CAST\(Int64\(31\) AS Int32\) / \(\- Int64\(9\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( 99 ) AS col1, CAST ( 31 AS INTEGER ) / - + 9 AS col1 +---- +-3 +99 query II rowsort label-1974 SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ), + 90 / COUNT ( * ) * - COUNT ( * ) * + 85 + + 55 + + ( + COUNT ( * ) ) * - + 24 * - 8 * 19 + - ( - 51 ) - + CASE - + 82 WHEN + - 63 THEN NULL WHEN + 24 + - 97 THEN - - 7 END - - 85 AS col2 @@ -10553,8 +10689,11 @@ SELECT + 30 + + 79 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -1691 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-17\)\) AS col0" at position 0 and "nullif\(Int64\(\-89\), \(\- CAST\(Int64\(48\) AS Int32\)\)\) \* \(\- Int64\(\-19\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 17 AS col0, NULLIF ( - 89, + - CAST ( + 48 AS INTEGER ) ) * - - 19 AS col0 +---- +-1691 +17 query I rowsort label-2025 SELECT ALL COUNT ( ALL + 7 ) / COUNT ( * ) * 13 * + COALESCE ( 57, - - CAST ( 84 AS INTEGER ) ) @@ -11067,8 +11206,11 @@ SELECT ALL 10 / - + 6, - CAST ( 98 AS INTEGER ) / 98 + + 93 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-49\)\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 49 AS col2, 23 AS col2 +---- +23 +49 query II rowsort label-2123 SELECT ALL - - NULLIF ( CAST ( - 10 AS INTEGER ), + + 25 ) AS col1, 52 + + 12 AS col2 @@ -11104,8 +11246,11 @@ SELECT 34 + 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "coalesce\(Int64\(\-90\), count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col2, COALESCE ( - 90, COUNT ( * ) ) col2 +---- +-90 +1 query I rowsort label-2130 SELECT - + CASE - 74 WHEN - COUNT ( DISTINCT - - 21 ) + + CASE 64 WHEN ( - - COUNT ( * ) ) + - - 16 THEN NULL WHEN + 88 * - 56 / 47 / - 57 * - + 50 THEN + + 85 ELSE NULL END + - - 87 THEN 91 END @@ -11182,8 +11327,11 @@ 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\(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\. +query II valuesort SELECT - COALESCE ( - + COUNT ( * ), - 91 + - 17, + + 57 ) AS col0, 91 AS col0 +---- +1 +91 query I rowsort label-2144 SELECT ALL MIN ( DISTINCT - 1 ) @@ -11457,8 +11605,11 @@ SELECT - COUNT ( * ) / - - 75 # 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 col0" at position 0 and "Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 AS col0, - 68 AS col0 +---- +-68 +5 query I rowsort label-2197 SELECT 52 * - COUNT ( * ) + + 42 / + CAST ( NULL AS INTEGER ) + + ( - - 33 ) @@ -11660,8 +11811,11 @@ SELECT 73 + + COUNT ( * ) - + + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) \+ Int64\(21\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 93 + + + 21 AS col2, 6 AS col2 +---- +-72 +6 query I rowsort SELECT ALL 27 + + - 79 AS col0 @@ -11984,8 +12138,11 @@ SELECT DISTINCT 64 * + COUNT ( * ) AS 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\) AS col1" at position 0 and "Int64\(\-19\) \+ Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + CAST ( NULL AS FLOAT8 ) AS col1, - 19 + + 42 AS col1 +---- +23 +NULL query I rowsort label-2297 SELECT - MAX ( DISTINCT + 10 ) * 34 * - CAST ( 56 AS INTEGER ) * + - COUNT ( DISTINCT 15 ) @@ -12171,8 +12328,11 @@ SELECT + + 33 col0, - ( - - 30 ) * + + 3 + + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6276 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* CAST\(Int64\(\-59\) AS Int32\) \+ \(\- Int64\(93\)\) \* \(\- Int64\(\-18\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 78 * + CAST ( - 59 AS INTEGER ) + + ( - + 93 ) * - - 18 * + + COUNT ( * ) AS col1, - 43 AS col1 +---- +-43 +-6276 query III rowsort SELECT + 59 + - + 19 AS col1, 6 AS col2, + 76 + + 94 + + 55 @@ -12259,14 +12419,20 @@ SELECT + 45 * + 30 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -199584 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(\-44\) \* Int64\(63\) AS col1" at position 0 and "Int64\(12\) \+ \(\- nullif\(CAST\(NULL AS Int32\), Int64\(\-44\) \* CAST\(NULL AS Int32\) \+ Int64\(\-5\) \* Int64\(\-58\) \+ Int64\(\-94\)\)\) \- Int64\(\-70\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 * - 44 * 63 AS col1, 12 + - NULLIF ( + + CAST ( NULL AS INTEGER ), - 44 * + CAST ( NULL AS INTEGER ) + + - 5 * - 58 + + - 94 ) - - 70 * + COUNT ( * ) AS col1 +---- +-199584 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \- \(\- Int64\(15\)\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 - - + 15 AS col0, + 12 AS col0 +---- +12 +93 query I rowsort SELECT 17 col0 @@ -12515,8 +12681,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1406 # Datafusion - Expected - -87472 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(37\) \* \(\- \(\- CAST\(\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-82\), Int64\(39\) \* Int64\(98\) \* avg\(Int64\(69\)\)\)\) AS Int32\)\)\) AS col2" at position 0 and "Int64\(88\) \* Int64\(14\) \* Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 * 37 * - - CAST ( - COALESCE ( COUNT ( * ), - 82, + 39 * 98 * AVG ( + 69 ) ) AS INTEGER ) AS col2, 88 * 14 * + - 71 AS col2 +---- +-1406 +-87472 query I rowsort SELECT ALL + 34 * 5 AS col0 @@ -13218,8 +13387,11 @@ SELECT ALL 91 + - COALESCE ( - 52, + 84 * + + NULLIF ( - 51, 94 + + 6 ), 97 * + # Datafusion - Datafusion expected results: # Datafusion - Expected - 142 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \+ Int64\(92\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 50 + 92 AS col2, 24 AS col2 +---- +142 +24 query I rowsort label-2531 SELECT ALL - + 6 + + SUM ( - - 20 ) / - 81 AS col0 @@ -13250,8 +13422,12 @@ SELECT + - 14 col1 # Datafusion - Expected - -1 # Datafusion - Expected - 64 # Datafusion - Expected - -80 -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\(\-93\) \+ \(\- Int64\(\-13\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - + COUNT ( ALL - + 52 ) col2, 64, - 93 + - - 13 AS col2 +---- +-1 +-80 +64 query I rowsort SELECT - 37 * - 60 @@ -14039,8 +14215,11 @@ SELECT DISTINCT - COUNT ( * ) / - 70 * 46 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 326784 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(74\) \* CAST\(Int64\(69\) AS Int32\) \* Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 AS col2, + 74 * CAST ( + 69 AS INTEGER ) * 64 AS col2 +---- +326784 +62 query I rowsort label-2687 SELECT DISTINCT MIN ( ALL - 3 ) @@ -14636,8 +14815,11 @@ SELECT DISTINCT - + 33 * + + 14 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -1944 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-15\)\) AS col1" at position 0 and "Int64\(\-72\) \* Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 15 AS col1, - 72 * + + 27 col1 +---- +-1944 +15 query I rowsort SELECT DISTINCT 41 @@ -14903,8 +15085,11 @@ SELECT 16 * + - 63 - + NULLIF ( 61, - 89 ) + + 80 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 99 + - - CAST ( NULL AS INTEGER ) AS col0, - 60 AS col0 +---- +-60 +NULL query I rowsort SELECT 39 col2 @@ -15252,8 +15437,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 2 AS col0, + NULLIF ( + - 82, + COUNT ( * ) ) AS col0 +---- +-82 +2 query I rowsort SELECT DISTINCT + ( 50 ) AS col0 @@ -15346,8 +15534,11 @@ SELECT + 5 + - + 96 + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 119 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(7\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 17 * 7 AS col2, + 48 AS col2 +---- +119 +48 query I rowsort SELECT DISTINCT ( - 66 ) + + 53 * 30 @@ -15555,8 +15746,11 @@ SELECT NULLIF ( + + 35, 29 + + 96 ) + 89 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 28 AS col2, 23 AS col2 +---- +23 +28 query I rowsort SELECT DISTINCT ( 17 ) + + 55 @@ -15727,8 +15921,11 @@ 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\(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\. +query II valuesort SELECT 41 AS col0, - CASE - - 20 WHEN 88 THEN + COUNT ( * ) ELSE NULL END - + MAX ( DISTINCT - ( + 67 ) ) / - 60 AS col0 +---- +41 +NULL query II rowsort label-3012 SELECT - 66 * - COUNT ( - - 53 ) * + + 79, - CAST ( + 65 AS INTEGER ) * + 7 col2 @@ -15990,8 +16187,11 @@ SELECT ALL CAST ( 70 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - -624 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col0" at position 0 and "Int64\(\-27\) \* Int64\(25\) \+ Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 60 AS col0, - 27 * + 25 + + 51 AS col0 +---- +-60 +-624 query I rowsort SELECT ALL ( - 71 ) col2 @@ -16558,8 +16758,11 @@ SELECT DISTINCT - 80 + 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 AS col0, + 7 AS col0 +---- +-92 +7 query I rowsort SELECT - 10 * 0 @@ -16569,8 +16772,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col2, + 17 + + + COUNT ( * ) + + 0 AS col2 +---- +-1 +18 query I rowsort SELECT ALL - 62 + + 24 AS col0 @@ -16640,8 +16846,11 @@ SELECT ALL 48 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 col1, 48 col1 +---- +48 +65 query I rowsort label-3191 SELECT - CASE - 53 WHEN - 17 THEN 10 + + 99 / + COUNT ( ALL 2 * CAST ( NULL AS INTEGER ) ) END AS col2 @@ -17149,8 +17358,11 @@ SELECT DISTINCT + 72 * COUNT ( * ) + - 16 + + 31 * SUM ( 87 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -1677 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(43\) \* Int64\(\-39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 * COUNT ( * ) AS col2, + 43 * - 39 AS col2 +---- +-1677 +80 query I rowsort SELECT ALL - ( + - 95 ) @@ -17401,8 +17613,11 @@ SELECT ( + 61 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col0" at position 0 and "max\(Int64\(91\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + 74 ) AS col0, MAX ( + ( + 91 ) ) AS col0 +---- +74 +91 query I rowsort SELECT + 99 AS col0 @@ -17527,8 +17742,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 5475 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "Int64\(75\) \* Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 col1, + 75 * 73 AS col1 +---- +5475 +80 query I rowsort SELECT ALL 45 - - 3 @@ -17957,8 +18175,11 @@ SELECT ALL 69 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6525 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(\-75\) AS col2" at position 0 and "Int64\(82\) \* \(\- Int64\(0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 87 * + ( - 75 ) AS col2, + 82 * - + 0 AS col2 +---- +-6525 +0 query II rowsort label-3445 SELECT DISTINCT COUNT ( * ), + COUNT ( * ) col1 @@ -18522,8 +18743,11 @@ SELECT 97 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 79 - + + COUNT ( * ) col0, 51 col0 +---- +51 +78 query I rowsort label-3554 SELECT CAST ( + 34 AS INTEGER ) * - 19 col0 @@ -18684,8 +18908,11 @@ SELECT - 44, 5 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 46 AS col2, + 52 col2 +---- +46 +52 query I rowsort SELECT 29 + + + 97 @@ -18921,8 +19148,11 @@ SELECT + CAST ( 82 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 132 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ Int64\(95\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 + + + 95 AS col1, 65 AS col1 +---- +132 +65 query I rowsort label-3631 SELECT NULLIF ( - MIN ( DISTINCT 72 ), 2 ) AS col2 @@ -19349,8 +19579,11 @@ SELECT ( - 61 ) + + ( + 91 ) + + + COUNT ( * ) # 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 "Int64\(28\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 AS col1, + 26 AS col1 +---- +26 +28 query I rowsort SELECT ALL + - 50 * 13 * + 28 @@ -19508,8 +19741,11 @@ SELECT ALL - 13 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-11\)\) AS col2" at position 0 and "CAST\(nullif\(\(\- Int64\(23\)\), Int64\(20\)\) AS Int32\) \* \(\- count\(\(\- Int64\(24\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( - 11 ) AS col2, CAST ( + NULLIF ( + ( - + 23 ), 20 ) AS INTEGER ) * - COUNT ( - + 24 ) AS col2 +---- +-11 +23 query I rowsort SELECT + 84 * - 65 + - 6 @@ -19627,8 +19863,12 @@ SELECT ALL + 81 * - - 43 col0, + 97 / + + 27 # Datafusion - Expected - -1602 # Datafusion - Expected - 81 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \* \(\- Int64\(\-34\)\) \- Int64\(4\) AS col2" at position 0 and "\(\- Int64\(12\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 47 * - - 34 - 4 AS col2, + 15 + + 66 AS col1, - + 12 + + + COUNT ( * ) AS col2 +---- +-11 +-1602 +81 query I rowsort label-3766 SELECT ALL 16 / - + NULLIF ( 50, 69 / COALESCE ( 69, + 10 ) + - CAST ( NULL AS INTEGER ) - - - 48 * + - 41 * 20 * 90 / NULLIF ( + 75, + 41 ) * - 85 ) @@ -19649,8 +19889,11 @@ SELECT DISTINCT 34 * - 62 * - COALESCE ( + 50, - 83 ) + - + 35 # 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 "Int64\(0\) AS col0" at position 0 and "Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 AS col0, 62 col0 +---- +0 +62 query II rowsort label-3770 SELECT - 13, SUM ( DISTINCT 34 ) * + 74 * 98 AS col2 @@ -20319,8 +20562,12 @@ SELECT + 96 + - 48 AS col0 # Datafusion - Expected - -1 # Datafusion - Expected - 2 # Datafusion - Expected - -977 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(49\) \+ Int64\(\-57\) \* \(\- Int64\(\-18\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - COUNT ( * ) * COUNT ( * ) AS col0, 79 / + 31, + 49 + - 57 * - - 18 AS col0 +---- +-1 +-977 +2 query I rowsort SELECT - 99 col0 @@ -20351,8 +20598,11 @@ SELECT - COUNT ( * ) * - 53 + + - 12 + + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 56 AS col0, + 98 AS col0 +---- +56 +98 query I rowsort label-3904 SELECT + CASE + - 56 WHEN + 24 / - 85 - 40 * 51 + - 4 + - 91 THEN NULL WHEN - - COUNT ( * ) THEN - CAST ( 32 AS INTEGER ) + 99 + COALESCE ( + COUNT ( + - ( - 59 ) ), + + 49 ) + - CASE 37 WHEN + + 19 / + - COUNT ( * ) * - 98 THEN NULL WHEN + NULLIF ( - 1, - 35 * 76 ) THEN NULL WHEN + ( 22 ) - - 70 THEN + 75 END - + 66 / 5 * SUM ( ALL - 56 + + CAST ( - 67 AS INTEGER ) / - 3 ) END @@ -20362,8 +20612,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "CASE Int64\(54\) WHEN Int64\(8\) \+ Int64\(\-38\) THEN Int64\(25\) \* Int64\(46\) \+ Int64\(30\) \+ Int64\(12\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 63 AS col1, + CASE 54 WHEN + 8 + - 38 THEN + + 25 * + + 46 + + 30 + + 12 ELSE NULL END AS col1 +---- +63 +NULL query II rowsort label-3906 SELECT ALL + - COUNT ( * ) AS col2, 86 AS col1 @@ -20498,8 +20751,11 @@ SELECT ALL - - 61 * - 56 + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 55 col0, 68 AS col0 +---- +55 +68 query I rowsort SELECT ALL 42 * + 88 + 69 AS col1 @@ -20949,8 +21205,12 @@ 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\(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\. +query III valuesort SELECT 1 * + COUNT ( * ) / + - 37 * 75 AS col0, - 90 AS col0, + 76 * + + 71 + - 86 +---- +-90 +0 +5310 query I rowsort label-4017 SELECT 36 * + CAST ( - 92 AS INTEGER ) @@ -21026,8 +21286,11 @@ SELECT + 2 * + 16 * + 73 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-24\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + MIN ( - 24 ) AS col2, COUNT ( * ) AS col2 +---- +1 +24 query I rowsort SELECT ALL - + 29 AS col2 @@ -21119,8 +21382,11 @@ SELECT ALL - 22 + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - -6181 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col2" at position 0 and "Int64\(52\) \+ Int64\(69\) \* Int64\(\-89\) \+ \(\- \(\- \(\- Int64\(92\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 93 AS col2, + 52 + 69 * + - 89 + - - ( - + 92 ) AS col2 +---- +-6181 +93 query I rowsort label-4050 SELECT - MAX ( DISTINCT - 34 ) @@ -22036,8 +22302,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4860 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* CAST\(\(\- nullif\(Int64\(\-54\), Int64\(32\) \* Int64\(42\) \+ Int64\(\-19\) \+ CASE Int64\(\-16\) WHEN \(\- Int64\(74\)\) \* Int64\(\-20\) THEN NULL WHEN Int64\(73\) THEN NULL ELSE Int64\(\-16\) \* Int64\(90\) END\)\) AS Int32\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90 * CAST ( + - NULLIF ( + - 54, 32 * + 42 + - 19 + + CASE ( - 16 ) WHEN - + 74 * - 20 THEN NULL WHEN + 73 THEN NULL ELSE - 16 * 90 END ) AS INTEGER ) AS col1, 66 AS col1 +---- +4860 +66 query I rowsort label-4227 SELECT - COUNT ( * ) - + + 20 @@ -22312,8 +22581,11 @@ SELECT 79 + - - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1022 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* Int64\(\-14\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- \(\- nullif\(nullif\(Int64\(73\), \(\- Int64\(42\)\) \* Int64\(65\) \+ \(\- Int64\(42\)\) \- Int64\(42\) \* \(\- Int64\(20\)\) \* \(\- max\(\(\- coalesce\(Int64\(78\), \(\- Int64\(79\)\)\)\)\)\) \+ Int64\(\-77\) \* Int64\(52\) \- Int64\(\-21\) / CASE Int64\(81\) WHEN Int64\(\-58\) THEN Int64\(33\) \+ Int64\(\-78\) ELSE NULL END \+ min\(\(\- CAST\(NULL AS Int32\)\)\)\), count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-1022 +-72 query I rowsort SELECT DISTINCT + + ( 72 ) * ( + 80 ) + - - 83 AS col0 @@ -22386,8 +22658,12 @@ 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\(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\. +query III valuesort SELECT DISTINCT + 28 + + 3, + 67 * - COUNT ( * ) + - 21 AS col0, + COUNT ( - 51 ) * MIN ( 55 ) AS col0 +---- +-88 +31 +55 query I rowsort SELECT ALL 32 col0 @@ -22417,8 +22693,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COALESCE ( + 48, COUNT ( * ) ) AS col0, 48 AS col0 +---- +48 +48 query I rowsort SELECT DISTINCT + - 12 @@ -22556,8 +22835,11 @@ SELECT DISTINCT SUM ( DISTINCT + 48 ) # 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 col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 AS col2, + 93 AS col2 +---- +30 +93 query I rowsort SELECT - 73 + - - 36 @@ -22636,8 +22918,11 @@ 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\(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\. +query II valuesort SELECT - - COUNT ( * ) AS col2, 47 - - 62 + + 27 * + - MIN ( + - 35 ) AS col2 +---- +1 +1054 query I rowsort label-4340 SELECT + COUNT ( * ) * 71 + + - COUNT ( * ) - - 47 AS col1 @@ -22965,8 +23250,11 @@ SELECT COUNT ( 4 ) * NULLIF ( - 62, + 36 * ( + 25 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 321408 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* Int64\(36\) \* \(\- Int64\(\-93\)\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 96 * + 36 * - - 93 AS col2, 56 AS col2 +---- +321408 +56 query II rowsort SELECT 98 col1, + ( + + 81 ) @@ -23107,8 +23395,11 @@ SELECT 20 + + 95 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col2" at position 0 and "Int64\(\-45\) \+ Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 5 col2, - 45 + + 70 AS col2 +---- +25 +5 query II rowsort label-4432 SELECT COUNT ( * ) AS col0, 80 @@ -23539,8 +23830,11 @@ SELECT ALL - 20, - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 AS col1, 62 AS col1 +---- +62 +76 query I rowsort SELECT ALL - 94 col2 @@ -24304,8 +24598,11 @@ SELECT ALL - SUM ( + 64 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "Int64\(45\) \* Int64\(67\) \* Int64\(67\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 AS col0, 45 * + 67 * 67 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) col0 +---- +63 +NULL query I rowsort label-4660 SELECT MIN ( DISTINCT 33 ) - - 14 AS col1 @@ -24496,8 +24793,12 @@ SELECT + 20 * - - 51, 52 * + - 85 * + 35 AS col1 # Datafusion - Expected - 21 # Datafusion - Expected - -94 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col1" at position 1 and "Int64\(38\) / Int64\(\-93\) \* \(\- Int64\(74\)\) \* Int64\(93\) \* \(\- \(\- count\(Int64\(\-11\)\)\)\) \+ Int64\(\-21\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - MIN ( ALL - + 21 ) AS col2, - 94 AS col1, 38 / + - 93 * - + 74 * 93 * - - COUNT ( - 11 ) + - 21 AS col1 +---- +-21 +-94 +21 query I rowsort label-4697 SELECT DISTINCT - + COUNT ( * ) / COUNT ( DISTINCT - 26 ) * 86 + - MAX ( DISTINCT + 17 ) AS col1 @@ -24646,8 +24947,11 @@ SELECT ( - MAX ( + - 11 ) ) - - 72 * - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 44 AS col2, 32 col2 +---- +32 +44 query I rowsort label-4726 SELECT ALL - 66 / + 94 @@ -24801,8 +25105,11 @@ SELECT - 14 - + CAST ( + 56 AS INTEGER ) * + 78 + - COUNT ( * ) * + 44 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 col2" at position 0 and "Int64\(\-77\) \* \(\- CAST\(NULL AS Float64\)\) \+ Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL ( + 83 ) col2, - 77 * - CAST ( NULL AS FLOAT8 ) + + 80 col2 +---- +83 +NULL query I rowsort SELECT + 31 * 1 AS col2 @@ -25402,8 +25709,11 @@ SELECT ALL ( + COUNT ( * ) ) + - - 31 * + 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 176 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(\-95\)\)\) \+ Int64\(81\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MAX ( - - 95 ) + 81 AS col0, 4 AS col0 +---- +176 +4 query I rowsort label-4872 SELECT SUM ( + 26 ) @@ -25991,8 +26301,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) + + 91 AS col0, COUNT ( - - 20 ) * + 91 col0 +---- +90 +91 query I rowsort label-4987 SELECT ALL + 68 / - MIN ( + - 24 ) @@ -26718,8 +27031,11 @@ SELECT ALL - + MAX ( ALL + + 98 ) 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\(57\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 AS col1, 0 AS col1 +---- +0 +57 query I rowsort SELECT ALL - + 59 AS col1 @@ -27183,8 +27499,11 @@ SELECT DISTINCT + + 39 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "Int64\(\-26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 78 AS col2, + ( - 26 ) AS col2 +---- +-26 +78 query I rowsort label-5219 SELECT DISTINCT + COUNT ( * ) col2 @@ -27219,8 +27538,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 99 AS col2, 73 AS col2 +---- +73 +99 query I rowsort label-5226 SELECT + 8 / - 48 AS col0 @@ -27235,8 +27557,11 @@ SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- coalesce\(Int64\(\-46\), Int64\(46\) \* \(\- \(\- \(\- Int64\(1\)\)\)\) \+ Int64\(29\) / Int64\(\-53\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, - COALESCE ( - 46, 46 * - ( - - ( 1 ) ) + 29 / - 53 ) AS col0 +---- +1 +46 query I rowsort label-5229 SELECT CASE - 82 WHEN 3 / + - 58 + - 89 THEN - 66 + 46 WHEN MAX ( ALL + CAST ( - 63 AS INTEGER ) ) THEN NULL END AS col2 @@ -27401,8 +27726,11 @@ SELECT ALL 32 + CASE ( - COUNT ( * ) ) WHEN + ( - 13 ) * 64 + COUNT ( * ) THEN N # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 4 col0, 91 col0 +---- +-4 +91 query I rowsort label-5260 SELECT ALL - 11 * - COALESCE ( - 34, + COUNT ( * ) + + 19 ) AS col1 @@ -27422,8 +27750,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 22 AS col0, 98 / - + ( - + COUNT ( * ) ) AS col0 +---- +-22 +98 query I rowsort label-5264 SELECT - COUNT ( 1 ) @@ -27626,8 +27957,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - COUNT ( * ) ) AS col2, 52 col2 +---- +-1 +52 query I rowsort label-5304 SELECT ALL + COUNT ( * ) * - COUNT ( * ) + - 19 AS col0 @@ -28514,8 +28848,11 @@ SELECT 71 + ( - + 25 ) + - 60 + + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(50\)\) AS col0" at position 0 and "Int64\(46\) \+ Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( ALL + 50 ) col0, + 46 + - 56 AS col0 +---- +-10 +50 query I rowsort label-5476 SELECT 81 + ( + - COUNT ( * ) ) / + + 60 AS col2 @@ -28736,8 +29073,11 @@ SELECT ALL 61 + CAST ( + 83 AS INTEGER ) * - 72 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "Int64\(\-37\) \+ Int64\(96\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 col2, - 37 + 96 + - CAST ( NULL AS INTEGER ) AS col2 +---- +2 +NULL query I rowsort SELECT - 31 * + 41 * + + 75 @@ -29099,8 +29439,11 @@ SELECT DISTINCT - + NULLIF ( - 98, + 85 / 19 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- Int64\(61\)\) \- Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) / COUNT ( * ) AS col1, ( - ( + 61 ) ) - - 79 AS col1 +---- +1 +18 query I rowsort SELECT ALL - + NULLIF ( + 26, + + 43 * - - 74 ) + - 5 + 13 AS col1 @@ -29151,8 +29494,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + + 59 ) + - COUNT ( * ) AS col2, 65 col2 +---- +58 +65 query I rowsort SELECT 52 AS col0 @@ -29520,8 +29866,11 @@ SELECT ALL + 26 + - 81 * + 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col1" at position 0 and "Int64\(\-62\) / Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 89 AS col1, - 62 / + 11 AS col1 +---- +-5 +-89 query I rowsort label-5671 SELECT ALL - SUM ( DISTINCT 50 ) + CASE CASE + 66 WHEN + NULLIF ( + 15, + 90 * - AVG ( + 62 ) - - 45 ) THEN 75 ELSE NULL END WHEN + CASE - + 78 WHEN + - 95 THEN - - CASE 43 WHEN 35 THEN NULL WHEN 79 THEN - 6 * + 4 + 92 END / + CAST ( - 13 * + 7 + 96 AS INTEGER ) WHEN COUNT ( * ) THEN NULL WHEN 78 THEN NULL ELSE 10 END THEN + 3 * - CASE 54 * 95 WHEN - 26 THEN 14 WHEN 3 * - 23 THEN NULL END END @@ -29856,8 +30205,11 @@ SELECT + 21 * - 19 * 19 * + 85 + - + NULLIF ( 25, - NULLIF ( 87, - 93 * - 83 + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 696 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \+ Int64\(96\) \+ Int64\(30\) AS col1" at position 0 and "Int64\(58\) \* \(\- Int64\(\-12\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 83 + + 96 + 30 AS col1, 58 * - - 12 AS col1 +---- +43 +696 query I rowsort label-5735 SELECT 75 + + COUNT ( * ) col0 @@ -29898,8 +30250,11 @@ SELECT 17 + + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(35\), \(\- max\(DISTINCT \(\- Int64\(53\)\)\)\) \* Int64\(53\) \+ Int64\(85\) \+ Int64\(99\)\) \+ Int64\(18\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COALESCE ( 35, + - MAX ( DISTINCT - + 53 ) * 53 + + 85 + 99 ) + + 18 AS col2, + ( 67 ) AS col2 +---- +53 +67 query I rowsort SELECT - - 50 @@ -29981,8 +30336,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( - 42 ) col1, - 49 * + - COUNT ( * ) AS col1 +---- +1 +49 query I rowsort label-5759 SELECT ALL + 86 / 64 AS col2 @@ -30339,8 +30697,11 @@ SELECT - ( - 89 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2465 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* Int64\(85\) AS col0" at position 0 and "Int64\(\-33\) / Int64\(\-24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 29 ) * + 85 AS col0, - 33 / - 24 AS col0 +---- +1 +2465 query I rowsort SELECT ALL - 39 * - 19 AS col2 @@ -30517,8 +30878,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(17\)\) AS col1" at position 0 and "Int64\(\-31\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(25\) / Int64\(\-90\) \+ Int64\(\-91\) THEN Int64\(12\) WHEN min\(Int64\(47\)\) \+ \(\- CAST\(Int64\(3\) AS Int32\)\) \* Int64\(\-36\) THEN Int64\(81\) \* Int64\(\-76\) \+ Int64\(15\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-17 +NULL query I rowsort label-5860 SELECT DISTINCT ( - - 82 ) + + 32 / 29 + - COUNT ( * ) @@ -30739,8 +31103,12 @@ SELECT 44 * 37 # Datafusion - Expected - -86 # Datafusion - Expected - NULL # Datafusion - Expected - 32 -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\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 86 AS col2, + CASE - + 71 WHEN + + 35 * - + 72 + 0 - - - 49 + + + 12 * - 44 * - COUNT ( * ) THEN NULL WHEN + 56 / COUNT ( * ) THEN - 5 + 16 END AS col0, 32 AS col2 +---- +-86 +32 +NULL query I rowsort label-5903 SELECT ALL 25 + - NULLIF ( + CAST ( 91 AS INTEGER ), - - 38 ) + + 87 AS col0 @@ -30785,8 +31153,11 @@ SELECT - 47 - 79 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 39 col1, - 58 AS col1 +---- +-58 +39 query I rowsort label-5912 SELECT + 76 * - - 52 - 22 / - 38 AS col2 @@ -30811,8 +31182,11 @@ SELECT DISTINCT + 16 * + + 54 * - 7 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -210 # Datafusion - Expected - 5194 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) / Int64\(25\) \* Int64\(\-70\) AS col1" at position 0 and "Int64\(98\) \* Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 93 / 25 * - 70 col1, 98 * + 53 AS col1 +---- +-210 +5194 query I rowsort label-5917 SELECT - 63 / + 26 + COUNT ( * ) + + COUNT ( * ) * + 62 col0 @@ -31243,8 +31617,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 69 - - 92 * 77 col0, COUNT ( * ) * 65 AS col0 +---- +65 +7015 query I rowsort SELECT ALL - 11 * - 78 @@ -31274,8 +31651,11 @@ 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\(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\. +query II valuesort 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 +---- +-68 +6203 query I rowsort SELECT + 29 AS col0 @@ -31646,8 +32026,11 @@ SELECT DISTINCT + + 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 493 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- Int64\(86\)\)\) AS col1" at position 0 and "Int64\(33\) \* Int64\(13\) \- \(\- Int64\(64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MIN ( - + 86 ) AS col1, 33 * + + 13 - - + 64 AS col1 +---- +-86 +493 query I rowsort SELECT DISTINCT + - ( ( + 78 ) ) @@ -32136,8 +32519,11 @@ SELECT + 77 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 99 AS col2, 67 AS col2 +---- +67 +99 query II rowsort SELECT + 55 + - ( - - 88 ) AS col0, 96 AS col2 @@ -32172,8 +32558,11 @@ SELECT ALL 8 + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 99 AS col0, - 27 AS col0 +---- +-27 +99 query I rowsort SELECT - - 1 @@ -32874,8 +33263,11 @@ SELECT ALL 94 * + 33 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) / Int64\(82\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 / + + 82 AS col2, 14 AS col2 +---- +0 +14 query I rowsort SELECT ALL - 59 + 5 - - 71 @@ -32961,8 +33353,11 @@ SELECT - ( 89 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-18\)\) \* Int64\(2\) \- Int64\(46\) \- \(\- Int64\(\-85\)\) AS col1" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \* Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - 18 ) * + 2 - 46 - - - 85 AS col1, - CAST ( - COUNT ( * ) AS INTEGER ) * + 88 AS col1 +---- +-95 +88 query I rowsort label-6328 SELECT ALL + 13 / 28 - + - 63 @@ -33307,8 +33702,11 @@ SELECT COALESCE ( 7, - + 49 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(4\) WHEN \(\- sum\(Int64\(\-24\)\)\) THEN \(\- Int64\(\-18\)\) \* Int64\(93\) END AS col1" at position 0 and "Int64\(96\) \+ Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CASE 4 WHEN + - SUM ( ALL + - 24 ) THEN + ( - - 18 ) * + 93 END AS col1, 96 + 14 AS col1 +---- +110 +NULL query I rowsort SELECT + 37 * 43 @@ -33510,8 +33908,11 @@ SELECT NULLIF ( CAST ( 58 AS INTEGER ), + 37 * - NULLIF ( - COUNT ( ALL 99 ), AV # 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\(22\) \+ Int64\(26\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 + 26 AS col1, + 51 col1 +---- +48 +51 query I rowsort SELECT ALL - 93 @@ -33927,8 +34328,11 @@ SELECT DISTINCT + 1 * + - 47 * + - 85 * - + 70 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -316 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* Int64\(\-35\) \+ \(\- Int64\(\-67\)\) \+ \(\- 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 II valuesort SELECT 10 * - 35 + - - 67 + - + 33 AS col2, + 52 AS col2 +---- +-316 +52 query I rowsort SELECT NULLIF ( 11, - 51 ) @@ -34108,8 +34512,11 @@ SELECT ( + + 47 ) + + 13 + - 1 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* \(\- Int64\(4\)\) \+ Int64\(96\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(40\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 * - ( 4 ) + 96 + - - COUNT ( * ) * + COUNT ( * ) col0, + 40 + COUNT ( * ) AS col0 +---- +41 +41 query I rowsort label-6548 SELECT 47 / 91 AS col1 @@ -34735,8 +35142,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) +---- +1 +1 query II rowsort label-6669 SELECT CAST ( NULL AS INTEGER ) AS col1, 43 @@ -34757,8 +35167,11 @@ 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\(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\. +query RI valuesort 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 +---- +28 +NULL query II rowsort SELECT ALL + 18, 1 AS col1 @@ -34892,8 +35305,11 @@ SELECT ALL 54 + - 83 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) / Int64\(27\) AS col1" at position 0 and "Int64\(65\) \+ Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 / + 27 AS col1, 65 + 5 col1 +---- +2 +70 query I rowsort label-6698 SELECT 92 + 84 * CASE 60 WHEN + - COUNT ( * ) + + NULLIF ( - 41, - 91 + CAST ( NULL AS INTEGER ) + - 33 + - ( - - 48 ) * 8 ) + + + 14 * - 58 * - - COUNT ( DISTINCT - 93 ) THEN NULL ELSE + CASE + - MIN ( + CAST ( + + 12 AS INTEGER ) ) WHEN COUNT ( * ) THEN + + 95 * + 54 + - - 56 * - 81 + + - ( - 95 ) END * + 68 - + - 36 * - 99 - + 53 + ( + 17 ) + - - COALESCE ( MIN ( + 14 ), - - COUNT ( * ) * 91 * - 25 + + - 83 ) END @@ -35077,8 +35493,11 @@ SELECT ALL - - 78 + + 82 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - -2262 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "Int64\(39\) \* Int64\(\-58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 AS col0, 39 * - 58 AS col0 +---- +-2262 +69 query I rowsort SELECT DISTINCT 1 * 16 AS col0 @@ -35194,8 +35613,11 @@ SELECT DISTINCT + 45 * 26 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 86 AS col2, + COUNT ( * ) AS col2 +---- +1 +86 query I rowsort SELECT + - 6 + + + 3 @@ -35588,8 +36010,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +25 +NULL query I rowsort SELECT + 16 AS col1 @@ -35824,8 +36249,11 @@ SELECT DISTINCT - + CAST ( - 32 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - -116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col1" at position 0 and "Int64\(\-52\) \- Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 96 AS col1, - 52 - + 64 AS col1 +---- +-116 +-96 query I rowsort SELECT ALL - + 93 AS col1 @@ -35845,8 +36273,11 @@ SELECT + 76 * 24 AS col1 # 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 "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 II valuesort SELECT + - 63 AS col0, 27 AS col0 +---- +-63 +27 query I rowsort label-6880 SELECT + NULLIF ( COUNT ( * ), - - 2 * - + 44 ) @@ -36030,8 +36461,12 @@ 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\(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\. +query RII valuesort 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 +---- +-6 +39 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -36975,8 +37410,11 @@ SELECT ALL - 82 * - - ( - 19 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(48\)\) AS col2" at position 0 and "Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( 48 ) AS col2, 43 AS col2 +---- +1 +43 query I rowsort SELECT ALL + NULLIF ( - + 3, - - 99 ) @@ -37561,8 +37999,11 @@ SELECT 46 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -911 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-70\) \* Int64\(13\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 32 + - COUNT ( * ) AS col1, - 70 * 13 - COUNT ( * ) col1 +---- +-911 +31 query I rowsort label-7212 SELECT + CAST ( NULL AS INTEGER ) + + 22 AS col2 @@ -37572,8 +38013,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1702 # Datafusion - Expected - 546 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* Int64\(74\) AS col2" at position 0 and "count\(Int64\(\-36\)\) \* Int64\(21\) \* Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 23 * + + 74 AS col2, COUNT ( - 36 ) * + + 21 * 26 AS col2 +---- +1702 +546 query I rowsort SELECT DISTINCT + 6 * - - 77 @@ -37711,8 +38155,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( - COUNT ( * ) ) col1, + 48 AS col1 +---- +-1 +48 query I rowsort SELECT ( + 62 ) @@ -37759,8 +38206,11 @@ SELECT ALL + 37 * 52 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col1" at position 0 and "Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 29 AS col1, 6 AS col1 +---- +-29 +6 query II rowsort label-7250 SELECT + 5 + + 55 * - + 56 * - 70 * MAX ( 40 ) AS col0, - ( + - NULLIF ( ( 2 ), 16 * + 85 ) ) @@ -37812,8 +38262,12 @@ SELECT 98 + 76 AS col2 # Datafusion - Expected - 54 # Datafusion - Expected - 2302 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 54 AS col2, 61 * + - ( - 38 ) + 25 - 41, + + 23 AS col2 +---- +23 +2302 +54 query I rowsort SELECT 8 + 79 AS col0 @@ -37850,8 +38304,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ max\(Int64\(\-92\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-52\) / Int64\(\-33\) AS col2" at position 0 and "CAST\(Int64\(\-3\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 + MAX ( - 92 ) + - - COUNT ( * ) * - 52 / - 33 AS col2, CAST ( - 3 AS INTEGER ) AS col2 +---- +-3 +-34 query I rowsort SELECT 44 * + 70 @@ -37958,8 +38415,11 @@ SELECT ( + ( 13 ) ) + 34 * - + 58 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-11\)\) \+ Int64\(\-94\) \+ Int64\(22\) AS col1" at position 0 and "Int64\(28\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(85\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( - 11 ) + - 94 + 22 AS col1, 28 / - + COUNT ( * ) + + 85 * + COUNT ( * ) AS col1 +---- +-71 +57 query I rowsort SELECT 70 * + - 43 @@ -38469,8 +38929,11 @@ SELECT - 95 AS col0, + ( + 82 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT - 12 AS col1, + ( 94 ) col1 +---- +-12 +94 query I rowsort label-7386 SELECT DISTINCT 50 / + + 72 @@ -38822,8 +39285,11 @@ SELECT - + 54 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 113 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "Int64\(24\) \- Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 AS col2, 24 - - 89 col2 +---- +113 +8 query II rowsort SELECT ALL - 87 AS col2, - 93 col0 @@ -39030,8 +39496,11 @@ 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\(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\. +query II valuesort SELECT + - COUNT ( * ) + - + 30 AS col0, + 91 AS col0 +---- +-31 +91 query I rowsort label-7493 SELECT - COALESCE ( MIN ( DISTINCT - - 45 ), - CAST ( NULL AS INTEGER ) + - COUNT ( * ) ) * - - 42 + - 72 @@ -39233,8 +39702,11 @@ SELECT ( - - 78 ) - + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -8536 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col1" at position 0 and "Int64\(97\) \* Int64\(\-88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 AS col1, + 97 * - 88 AS col1 +---- +-8536 +94 query II rowsort label-7532 SELECT DISTINCT NULLIF ( + COUNT ( * ), 54 + 46 * + + 10 ) + + + 13, - 88 col1 @@ -39250,8 +39722,11 @@ SELECT ALL ( 20 ) + 70 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5978 # Datafusion - Expected - 3100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(61\)\)\) \* nullif\(Int64\(\-98\), Int64\(99\) \* Int64\(89\)\) AS col2" at position 0 and "Int64\(62\) \* max\(Int64\(50\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - MIN ( ALL 61 ) ) * + + NULLIF ( - 98, + 99 * 89 ) AS col2, 62 * + + MAX ( 50 ) AS col2 +---- +3100 +5978 query I rowsort label-7535 SELECT 42 * - - CASE - 46 WHEN + - 58 + 5 * - 34 THEN + 81 / + 28 + + COUNT ( * ) / + - 63 * 14 - - + 60 / - 42 + - + 48 WHEN + + 45 THEN 22 WHEN - MIN ( 8 ) THEN NULL END * COUNT ( * ) @@ -39863,8 +40338,11 @@ 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\(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\. +query II valuesort SELECT ALL + 86 * + - COUNT ( * ) AS col1, - 89 * - - 5 AS col1 +---- +-445 +-86 query I rowsort label-7653 SELECT + + CASE + 71 WHEN + + 22 + - 21 THEN - COUNT ( * ) WHEN COALESCE ( + 22, + CASE - MIN ( DISTINCT - 80 ) WHEN - COALESCE ( + COUNT ( * ), 12 + - + MAX ( 6 ) + - + 60 ) * - + 32 - 93 * 47 * 81 THEN + 30 + + 10 * + ( + 29 ) ELSE NULL END ) THEN NULL END / - 33 + 41 * + 79 @@ -40183,8 +40661,11 @@ SELECT ALL 62 * + 91 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 54126 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "Int64\(\-82\) \+ Int64\(11\) \* Int64\(77\) \* \(\- Int64\(\-64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 AS col1, - 82 + + 11 * 77 * - - 64 AS col1 +---- +54126 +59 query I rowsort label-7713 SELECT + 27 + - 37 + - CASE + - 60 WHEN COUNT ( * ) / + - COUNT ( * ) * + + 12 * - MIN ( - 27 ) THEN NULL WHEN + 18 THEN NULL ELSE + + CAST ( NULL AS INTEGER ) * + + 34 * + - CAST ( NULL AS INTEGER ) END + - CAST ( NULL AS INTEGER ) * - 35 @@ -40283,8 +40764,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) / + 6 + 98 * - 17 * + 83 * 42 AS col0, 60 AS col0 +---- +-5807676 +60 query I rowsort label-7731 SELECT ALL - 52 * MAX ( ALL COALESCE ( - NULLIF ( - 13, 12 / + 33 - + + 89 ), 12 ) ) - 61 @@ -40387,8 +40871,11 @@ 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\(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\. +query II valuesort SELECT ALL ( + 76 ) AS col1, + 86 + + + COUNT ( * ) - 30 - + CASE - - COUNT ( * ) WHEN COUNT ( * ) THEN + 64 * + 16 ELSE + 55 END AS col1 +---- +-967 +76 query I rowsort SELECT ALL ( + 26 ) AS col1 @@ -42099,8 +42586,12 @@ SELECT ALL 81 + - 16 # Datafusion - Expected - 87 # Datafusion - Expected - 64 # 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 "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 87 AS col1, 64 col1, - ( - COUNT ( * ) ) col2 +---- +1 +64 +87 query I rowsort label-8080 SELECT ALL - COALESCE ( - - COUNT ( * ), + 27 ) + 21 * + - 63 AS col1 @@ -42511,8 +43002,11 @@ 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\(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\. +query II valuesort SELECT NULLIF ( - COALESCE ( + COUNT ( * ), - 29 + + 96 * - 76 * - 18 ), 14 + + 23 ) AS col0, - 97 - 51 AS col0 +---- +-1 +-148 query II rowsort label-8160 SELECT - 83 * - 34 - + CAST ( NULL AS INTEGER ) AS col2, 62 * - COUNT ( * ) * - - COUNT ( * ) col1 @@ -42590,8 +43084,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 + - 18 / - + COUNT ( * ) AS col0, - 76 AS col0 +---- +-76 +50 query I rowsort SELECT DISTINCT - 59 + - 55 AS col1 @@ -42833,8 +43330,11 @@ SELECT - - COUNT ( ALL + + 54 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 588 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(61\), \(\- Int64\(\-36\)\), Int64\(37\)\)\) AS col0" at position 0 and "Int64\(\-7\) \* Int64\(\-84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COALESCE ( + + 61, - - 36, + 37 ) col0, - 7 * - 84 col0 +---- +-61 +588 query II rowsort SELECT DISTINCT - - 31 + + 68 col0, 19 * + + 72 @@ -42896,8 +43396,11 @@ SELECT DISTINCT + + COUNT ( DISTINCT - 26 ) * 29 * - 83 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + 55 ) AS col0, COUNT ( * ) AS col0 +---- +1 +55 query I rowsort SELECT 65 + - ( + 64 ) AS col2 @@ -43440,8 +43943,11 @@ SELECT ALL + 55 * 2 + 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 819 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\), Int64\(3\) \* avg\(DISTINCT Int64\(66\)\)\) \- max\(CAST\(NULL AS Int32\)\) \+ Int64\(\-67\) \+ Int64\(\-56\) \+ \(\- min\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\)\) \* \(\- Int64\(42\)\) \* Int64\(46\) \- Int64\(\-73\) \* Int64\(21\) AS col2" at position 0 and "Int64\(21\) \* Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort 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 +---- +819 +NULL query I rowsort SELECT ALL - 16 + 55 @@ -43614,8 +44120,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 15 AS col2, - 20 AS col2 +---- +-20 +15 query I rowsort label-8370 SELECT ALL - COUNT ( * ) + - - 99 + - + 21 @@ -43625,8 +44134,11 @@ 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\(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\. +query II valuesort 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 +---- +76 +NULL query I rowsort label-8372 SELECT - - SUM ( ALL + 55 ) * 19 + + 48 * + 83 AS col0 @@ -43997,8 +44509,11 @@ SELECT ALL - 22 * COUNT ( * ) / - + 88 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -187 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) \+ Int64\(36\) \* Int64\(35\) \+ Int64\(\-7\) \+ Int64\(82\) \+ Int64\(\-55\) \* Int64\(26\) AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 + + 36 * + 35 + - 7 + 82 + - 55 * + + 26 AS col2, 40 AS col2 +---- +-187 +40 query I rowsort label-8444 SELECT DISTINCT - 49 / - - COUNT ( * ) AS col0 @@ -44026,8 +44541,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col2" at position 0 and "Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 78 AS col2, ( + - 98 ) AS col2 +---- +-78 +-98 query I rowsort SELECT - 38 + + 88 @@ -44561,14 +45079,20 @@ SELECT ALL + ( 18 ) - 93 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(82\), Int64\(58\) \+ \(\- Int64\(\-18\)\) \+ \(\- CAST\(Int64\(80\) AS Int32\)\) \* Int64\(94\) \- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "nullif\(CASE Int64\(\-21\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN Int64\(67\) \* Int64\(\-18\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-18\) ELSE NULL END, \(\- Int64\(\-77\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +82 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1967625 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* \(\- CASE CAST\(NULL AS Int32\) WHEN Int64\(\-32\) THEN Int64\(\-73\) \* Int64\(\-84\) WHEN Int64\(61\) \* Int64\(22\) \+ Int64\(\-21\) \* \(\- CAST\(NULL AS Int32\)\) / count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE min\(DISTINCT Int64\(40\)\) \* Int64\(\-71\) \+ \(\- coalesce\(Int64\(75\), Int64\(\-54\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-30\)\)\) END\) \* Int64\(45\) AS col2" at position 0 and "Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-95 +1967625 query I rowsort SELECT DISTINCT ( - 81 ) @@ -45021,8 +45545,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-70\)\) AS col2" at position 0 and "Int64\(\-31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 70 AS col2, - 31 AS col2 +---- +-31 +70 query I rowsort label-8639 SELECT ALL + - 15 + CASE 95 WHEN - - 59 - + - 99 * + + 81 + - 86 / + 28 + 92 + - + COUNT ( * ) * + COUNT ( * ) THEN NULL ELSE - 20 * - COUNT ( * ) END @@ -45278,8 +45805,11 @@ SELECT ALL - 73 * + COALESCE ( 1, - 22, + 44 + - + ( + 41 ) ) # 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 "Int64\(5\) \- Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 AS col0, 5 - 5 col0 +---- +-3 +0 query I rowsort SELECT 5 AS col0 @@ -45478,8 +46008,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + 97 * - + COUNT ( * ) AS col1, - 72 + - - MIN ( + 6 ) + + 9 * + - ( + COUNT ( * ) ) AS col1 +---- +-75 +-97 query I rowsort SELECT 99 + - 29 AS col1 @@ -45556,8 +46089,12 @@ SELECT + COUNT ( * ) / - COUNT ( * ) + - - 63 AS col1 # Datafusion - Expected - -1603 # Datafusion - Expected - 12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col1" at position 1 and "CAST\(NULL AS Float64\) \* Int64\(57\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort SELECT ALL - - 95 + - + 22 * + + 81 + + 84 AS col0, 12 AS col1, CAST ( NULL AS FLOAT8 ) * 57 col1 +---- +-1603 +12 +NULL query I rowsort SELECT ALL - - 14 @@ -45649,8 +46186,11 @@ SELECT ALL COUNT ( * ) + - + 3 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 16 AS col0, 7 AS col0 +---- +16 +7 query I rowsort SELECT ALL 14 + + 41 col0 @@ -46369,8 +46909,11 @@ SELECT ALL + 33 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col1" at position 0 and "\(\- Int64\(94\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 35 AS col1, - ( + + 94 ) AS col1 +---- +-35 +-94 query I rowsort label-8902 SELECT COUNT ( * ) + - + 57 + + + COUNT ( * ) + + 56 / 8 @@ -46883,8 +47426,11 @@ SELECT - COALESCE ( COUNT ( * ), - 51, - 71 * + 40 * - 73 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2046 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(31\) \* Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, + 31 * - 66 AS col1 +---- +-2046 +1 query I rowsort SELECT - ( - - 13 ) @@ -47409,8 +47955,11 @@ SELECT ALL 79 * 31 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4324 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \* coalesce\(Int64\(94\), Int64\(\-78\)\) AS col0" at position 0 and "nullif\(Int64\(61\), Int64\(98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 * + COALESCE ( + 94, + - 78 ) AS col0, NULLIF ( + 61, ( 98 ) ) AS col0 +---- +4324 +61 query I rowsort label-9103 SELECT CASE - 97 WHEN 33 * - 31 THEN + COUNT ( * ) WHEN - 13 THEN NULL ELSE NULL END * - 91 + + + CAST ( + 68 AS INTEGER ) @@ -48413,8 +48962,11 @@ SELECT - MAX ( ALL 21 ) + + - 79 AS col1, + 9 + + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 50 AS col2, 94 col2 +---- +50 +94 query I rowsort SELECT + 79 * ( - NULLIF ( + 44, - + 43 ) ) * - - 97 AS col0 @@ -48429,8 +48981,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * + 42 * + 18 AS col2, 0 AS col2 +---- +0 +756 query II rowsort label-9299 SELECT DISTINCT + COUNT ( * ) * - + 85 * - + 82, - 13 / COUNT ( * ) * - ( - 15 ) * 86 + 14 + - 84 AS col1 @@ -48962,14 +49517,20 @@ SELECT - 57 * - ( SUM ( - 15 ) ) AS col2, + COUNT ( * ) + - - MIN ( DISTINCT - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -9067 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(11\) \* Int64\(0\) \+ Int64\(47\) \+ Int64\(98\) \* Int64\(\-93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) col2, + 11 * - 0 + 47 + + 98 * - 93 AS col2 +---- +-9067 +1 # 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\(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\. +query II valuesort SELECT ( - - 27 ) / + - 32 + COUNT ( * ) + - 93 + + 1 AS col0, + 97 + - 90 AS col0 +---- +-91 +7 query I rowsort label-9401 SELECT DISTINCT - 23 * + 98 * + - CAST ( 99 AS INTEGER ) @@ -48979,8 +49540,11 @@ SELECT DISTINCT - 23 * + 98 * + - CAST ( 99 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 61 AS col1, 78 AS col1 +---- +61 +78 query I rowsort label-9403 SELECT - 3 / + 33 + + 77 @@ -49073,8 +49637,11 @@ SELECT - 46 * + - 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(16\) / Int64\(29\) \* Int64\(86\) \* \(\- Int64\(22\)\) \* Int64\(\-24\) \+ \(\- CAST\(NULL AS Float64\)\) / Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + COUNT ( * ) AS col1, 16 / 29 * 86 * - + 22 * - 24 + + ( + - CAST ( NULL AS FLOAT8 ) ) / 9 col1 +---- +1 +NULL query I rowsort label-9421 SELECT COALESCE ( + SUM ( DISTINCT 6 ), - 19 * COUNT ( * ), COUNT ( * ) * - + 2 + 85 ) AS col1 @@ -49435,8 +50002,11 @@ SELECT ALL - + 4 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 2964 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-26\), Int64\(26\)\)\) AS col0" at position 0 and "Int64\(52\) \* \(\- Int64\(\-57\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - NULLIF ( - 26, + 26 ) col0, 52 * - - 57 AS col0 +---- +26 +2964 query I rowsort label-9490 SELECT - CAST ( - 86 AS INTEGER ) AS col2 @@ -49765,8 +50335,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -181 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \+ Int64\(\-35\) \- Int64\(68\) AS col1" at position 0 and "Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 78 + + - 35 - + 68 AS col1, ( - 80 ) AS col1 +---- +-181 +-80 query I rowsort SELECT ALL ( + 17 ) col1 @@ -50289,8 +50862,11 @@ SELECT ALL - 55 - SUM ( - 30 ) - - COUNT ( * ) # 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 "Int64\(97\) / Int64\(\-78\) AS col1" at position 0 and "Int64\(\-71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 97 / + - 78 col1, - 71 AS col1 +---- +-1 +-71 query I rowsort label-9656 SELECT 51 * - 7 + - ( 81 ) + COUNT ( * ) + CASE WHEN NULL BETWEEN - ( - 29 ) AND NULL THEN - - COUNT ( * ) END + COUNT ( - - 5 ) * 14 @@ -50771,8 +51347,11 @@ SELECT DISTINCT - 39 * - 82 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -1890 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-28\) AS Int32\) \+ Int64\(45\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(45\) \* Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( - 28 AS INTEGER ) + + 45 + - + ( - + COUNT ( * ) ) col0, 45 * - 42 AS col0 +---- +-1890 +18 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -50971,8 +51550,11 @@ 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 "\(\- CASE Int64\(\-90\) WHEN Int64\(\-87\) THEN Int64\(20\) END\) \* Int64\(\-51\) \+ Int64\(\-31\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CASE - 90 WHEN - 87 THEN + + 20 END * - 51 + - 31 col0, 4 AS col0 +---- +4 +NULL query I rowsort SELECT 90 col0 @@ -50982,8 +51564,11 @@ SELECT 90 col0 # 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 "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 II valuesort SELECT ALL - 14 col0, + 67 AS col0 +---- +-14 +67 query I rowsort label-9789 SELECT 62 + - 89 + + COUNT ( * ) + + + 96 * + + CAST ( 11 AS INTEGER ) AS col2 @@ -51181,8 +51766,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(8\) \- Int64\(\-89\) \+ Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( ALL 73 ) * - + 50 AS col0, COUNT ( * ) * + 8 - - 89 + 38 AS col0 +---- +-50 +135 query I rowsort label-9826 SELECT + ( + - COUNT ( * ) ) * + 74 @@ -51197,8 +51785,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -4493016 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) / Int64\(69\) AS col1" at position 0 and "Int64\(1\) \* Int64\(\-93\) \* \(\- CASE Int64\(17\) WHEN Int64\(\-89\) THEN NULL ELSE Int64\(33\) \* Int64\(61\) \* Int64\(\-24\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 4 / + 69 AS col1, 1 * - 93 * - CASE + 17 WHEN - 89 THEN NULL ELSE + + 33 * + 61 * - 24 END AS col1 +---- +-4493016 +0 query I rowsort label-9829 SELECT - COALESCE ( + - ( + 11 ), - - 56, + MIN ( DISTINCT ( - 22 ) ) + + CAST ( + COALESCE ( - COUNT ( * ), 57, + + 37 * + 81 ) AS INTEGER ) / 71 * - + NULLIF ( - + 6, + 92 + + COUNT ( * ) + - ( + 2 ) / - 94 ) + MAX ( ALL - 83 ), + 10 ) / + - NULLIF ( - + 69, - - 36 * 15 ) AS col0 @@ -51250,8 +51841,11 @@ SELECT ALL + 52 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT \(\- CAST\(Int64\(\-22\) AS Int32\)\)\) AS col1" at position 0 and "Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( DISTINCT - CAST ( - 22 AS INTEGER ) ) col1, - 5 AS col1 +---- +-5 +22 query I rowsort SELECT DISTINCT + 26 AS col0 @@ -51317,8 +51911,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT MIN ( DISTINCT - 1 ) + NULLIF ( 32, + - ( - COUNT ( * ) ) ) + - 12 + - - 76 * - 9 * 1 AS col2, - 68 AS col2 +---- +-665 +-68 query I rowsort SELECT - + 14 @@ -51478,8 +52075,11 @@ SELECT - CAST ( - 13 AS INTEGER ) * - - 6 - + 31 * + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 67 col2, + 75 AS col2 +---- +67 +75 query I rowsort label-9883 SELECT - 35 + + ( CAST ( + 37 AS INTEGER ) ) @@ -51494,8 +52094,11 @@ SELECT DISTINCT 78 * + ( + MIN ( 28 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 AS col0, 28 AS col0 +---- +28 +70 query I rowsort label-9886 SELECT ALL + NULLIF ( - CAST ( NULL AS INTEGER ), - 83 * + COUNT ( - - ( 59 ) ) * 99 ) AS col1 @@ -51510,8 +52113,11 @@ SELECT ALL - COUNT ( * ) * - + 82 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2904 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(\-69\) \* \(\- Int64\(74\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(91\) \* CAST\(Int64\(32\) AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(52\) \+ Int64\(93\), Int64\(38\) \+ nullif\(CAST\(NULL AS Int32\), Int64\(\-49\)\)\)\) \- sum\(Int64\(9\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +2904 +NULL query I rowsort label-9889 SELECT ALL - 62 * COUNT ( * ) + - 39 + - 80 + + 92 * COUNT ( * ) AS col1 @@ -51521,8 +52127,11 @@ SELECT ALL - 62 * COUNT ( * ) + - 39 + - 80 + + 92 * COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \- \(\- nullif\(\(\- Int64\(55\)\), Int64\(57\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- nullif\(Int64\(47\), \(\- CAST\(\(\- Int64\(19\)\) AS Float64\)\)\)\) \* Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 7 AS col1, + COUNT ( * ) + + CAST ( NULL AS INTEGER ) - - NULLIF ( - + 55, + + 57 ) + + COUNT ( * ) + - + NULLIF ( 47, + - CAST ( - + 19 AS FLOAT8 ) ) * - 27 AS col1 +---- +7 +NULL query I rowsort SELECT - - 26 col0 @@ -51532,8 +52141,11 @@ 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\(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\. +query II valuesort SELECT ALL + + COUNT ( * ) * - 98 + - 19 AS col0, - 51 / + 5 col0 +---- +-10 +-117 query I rowsort label-9893 SELECT + 29 * + + COUNT ( * ) col0 diff --git a/data/sqlite/random/expr/slt_good_31.slt b/data/sqlite/random/expr/slt_good_31.slt index 229bb9c..4d01c0d 100644 --- a/data/sqlite/random/expr/slt_good_31.slt +++ b/data/sqlite/random/expr/slt_good_31.slt @@ -980,8 +980,11 @@ SELECT - COALESCE ( + 93, + 93 ) * + 67 + + COALESCE ( - CASE + - 24 WHEN + 8 TH # Datafusion - Datafusion expected results: # Datafusion - Expected - 2754 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* Int64\(54\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 * + 54 AS col1, + 51 AS col1 +---- +2754 +51 query II rowsort label-179 SELECT DISTINCT - 90 AS col0, 21 * 16 * - CASE - 99 WHEN - + ( + - 1 ) * - + 2 + - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + - + 92 THEN NULL WHEN + 28 THEN + ( + ( + 28 ) ) END + + + 71 AS col1 @@ -1095,8 +1098,11 @@ 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\(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\. +query II valuesort SELECT + 90 AS col0, COUNT ( * ) / - MIN ( ALL 88 ) * + + 47 + + 90 AS col0 +---- +90 +90 query I rowsort SELECT - + 18 @@ -1525,8 +1531,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 + 32 col2, + COUNT ( * ) * + 5 AS col2 +---- +5 +64 query I rowsort SELECT - 49 * - 71 * - + 32 @@ -1617,8 +1626,11 @@ SELECT ALL + COUNT ( * ) * - 99 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \+ Int64\(28\) AS col0" at position 0 and "Int64\(13\) \+ Int64\(71\) \+ CAST\(NULL AS Int32\) \* \(\- Int64\(\-86\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 + 28 col0, 13 + 71 + CAST ( NULL AS INTEGER ) * - - 86 col0 +---- +18 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -2011,8 +2023,12 @@ NULL # Datafusion - Expected - -507091184 # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(\-16\)\)\) \- Int64\(56\) \* Int64\(\-30\) \* Int64\(\-49\) \* Int64\(80\) \* Int64\(77\) AS col2" at position 0 and "Int64\(1\) \+ \(\- \(\- CAST\(\(\- CASE \(\- Int64\(27\)\) WHEN \(\- Int64\(7\)\) THEN NULL WHEN Int64\(85\) \+ Int64\(\-33\) \+ \(\- avg\(Int64\(\-59\)\)\) \* Int64\(\-6\) THEN Int64\(\-31\) END\) AS Int32\)\)\) / \(\- Int64\(\-3\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - MAX ( DISTINCT + - 16 ) - 56 * - 30 * - 49 * 80 * + 77 AS col2, ( + ( - - 97 ) ), 1 + - - CAST ( + - CASE + - ( + 27 ) WHEN - ( 7 ) THEN NULL WHEN + 85 + + - 33 + - + AVG ( - 59 ) * - 6 THEN - 31 END AS INTEGER ) / - ( - 3 ) col2 +---- +-507091184 +97 +NULL query I rowsort label-375 SELECT + ( - 69 ) + 87 + - - COUNT ( * ) AS col0 @@ -2606,8 +2622,11 @@ 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\(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\. +query II valuesort SELECT + ( - - COUNT ( * ) ) + - 59 AS col1, COALESCE ( - COUNT ( * ), 82, - 77 * - - 88 ) AS col1 +---- +-1 +-58 query II rowsort label-490 SELECT ALL - ( + COUNT ( - - 44 ) ), 21 AS col0 @@ -2673,8 +2692,11 @@ SELECT COALESCE ( - 49, + 62 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, + 37 AS col1 +---- +1 +37 query I rowsort label-503 SELECT CASE 14 WHEN - COALESCE ( - 78, - + 90 - - + COALESCE ( + 60, + - 18 ) ) + + 79 + + COUNT ( * ) * + 72 THEN COUNT ( * ) ELSE + - 85 * - NULLIF ( + 26, + 98 * + ( - - COUNT ( * ) ) - - + 84 - + NULLIF ( - 94, 89 - - COUNT ( * ) ) ) END * + - ( - CAST ( NULL AS INTEGER ) ) * - ( + - 91 ) / 48 + + - 82 @@ -4452,8 +4474,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1, 80 AS col1 +---- +80 +NULL query I rowsort label-848 SELECT - 5 + + 95 * - 43 + - + COUNT ( * ) col2 @@ -4598,8 +4623,11 @@ SELECT 10 + + 41 + - + COALESCE ( + 45, - 37 + 19 ) * 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 130 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \+ Int64\(59\) \+ Int64\(70\) AS col0" at position 0 and "Int64\(\-40\) / Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 1 + + + 59 + 70 AS col0, - 40 / + ( 9 ) AS col0 +---- +-4 +130 query I rowsort label-876 SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 60 @@ -4839,8 +4867,11 @@ 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\(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\. +query II valuesort 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 +---- +-65 +NULL query I rowsort SELECT ALL 13 * - 28 * 7 @@ -5007,8 +5038,11 @@ SELECT ALL + 85 + - + 98 + + - 52 / 10 - + 25 * + 95 / - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(Int64\(10\) AS Int32\)\) AS col0" at position 0 and "CASE Int64\(89\) WHEN Int64\(59\) THEN NULL ELSE Int64\(33\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 36 + COUNT ( * ) + - CAST ( 10 AS INTEGER ) AS col0, CASE + 89 WHEN + 59 THEN NULL ELSE 33 END AS col0 +---- +-45 +33 query I rowsort SELECT - + COALESCE ( 58, + 82 * 9 ) AS col1 @@ -5239,8 +5273,11 @@ SELECT - - 23 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4554 # Datafusion - Expected - 171 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \* Int64\(\-69\) AS col1" at position 0 and "Int64\(19\) \* Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 66 * + - 69 col1, 19 * + 9 AS col1 +---- +-4554 +171 query I rowsort label-999 SELECT ALL - 62 + 8 + + MAX ( DISTINCT + - 56 ) @@ -5275,8 +5312,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col0, + 24 AS col0 +---- +24 +NULL query I rowsort SELECT - 95 * + 29 AS col2 @@ -5776,8 +5816,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(94\) \+ Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( + 14 ) * 33 AS col2, - 25 * + + COUNT ( * ) * + 94 + + 57 AS col2 +---- +-2293 +462 query I rowsort label-1102 SELECT DISTINCT + - SUM ( ALL + - 97 ) AS col0 @@ -6504,8 +6547,11 @@ SELECT ALL 79 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- Int64\(\-9\)\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) * - - 9 AS col1, ( 44 ) AS col1 +---- +44 +NULL query I rowsort SELECT ALL + 72 * + 70 * - - 28 @@ -6699,8 +6745,11 @@ SELECT - ( + ( + - 81 ) ) + - 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2791 # Datafusion - Expected - 560 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) \+ Int64\(\-38\) \* Int64\(\-75\) AS col0" at position 0 and "Int64\(56\) \* Int64\(10\) \+ Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 59 + - 38 * - 75 col0, + 56 * 10 + + - 0 AS col0 +---- +2791 +560 query I rowsort label-1278 SELECT ALL ( - COUNT ( * ) ) AS col1 @@ -6837,8 +6886,11 @@ SELECT ALL 50 * - + 93 + + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -872 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "Int64\(\-83\) \* \(\- \(\- CAST\(Int64\(9\) AS Int32\)\)\) \+ Int64\(\-26\) \+ \(\- Int64\(99\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 89 AS col2, + ( + - 83 ) * - - CAST ( + 9 AS INTEGER ) + - 26 + - ( + 99 ) AS col2 +---- +-872 +89 query I rowsort SELECT + - 94 @@ -6963,8 +7015,11 @@ SELECT 22 * - 32 * MIN ( 27 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- Int64\(68\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 65 AS col1, CAST ( NULL AS INTEGER ) + - + ( + 68 ) AS col1 +---- +-65 +NULL query I rowsort SELECT ALL - - 34 + - + 64 @@ -7214,8 +7269,12 @@ SELECT - + 72 * ( - - 65 ) AS col0 # Datafusion - Expected - -3886 # Datafusion - Expected - 35 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(35\), Int64\(\-56\), CAST\(Int64\(30\) AS Int32\), \(\- Int64\(75\)\) \* Int64\(67\)\) AS col2" at position 1 and "Int64\(52\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + 67 * 58, + COALESCE ( + 35, - 56, ( + CAST ( 30 AS INTEGER ) ), - + 75 * + 67 ) AS col2, 52 AS col2 +---- +-3886 +35 +52 query I rowsort SELECT ALL + + 89 @@ -7333,8 +7392,11 @@ SELECT COUNT ( + 73 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-15\) \+ \(\- Int64\(75\)\) \* \(\- \(\- sum\(CAST\(NULL AS Int32\)\)\)\) \- Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, - 15 + - + 75 * - ( - SUM ( + CAST ( NULL AS INTEGER ) ) ) - ( - 6 ) AS col1 +---- +1 +NULL query I rowsort label-1400 SELECT - 74 * - + CASE - - CAST ( NULL AS INTEGER ) WHEN + - 35 THEN 58 END * + 55 * + - 76 * + 90 + - CASE COUNT ( + 15 ) WHEN - 53 THEN NULL WHEN 93 * 39 - COUNT ( * ) - + + 47 / + NULLIF ( - + 6, 5 ) * - 64 - 64 THEN - 18 ELSE + 0 END + + 3 @@ -7458,8 +7520,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) / \(\- Int64\(\-48\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- Int64\(28\)\) / Int64\(\-50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 85 / - - 48 AS col2, CAST ( NULL AS INTEGER ) + - + 28 / - 50 AS col2 +---- +1 +NULL query I rowsort SELECT ALL 72 * - 65 AS col1 @@ -7546,8 +7611,11 @@ SELECT ALL + 11 * + ( - 29 ) + - 62 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + COUNT ( * ) ) col1, + COUNT ( * ) AS col1 +---- +1 +1 query I rowsort label-1441 SELECT ALL + 27 * + 40 - - COUNT ( * ) + - 60 @@ -8395,8 +8463,11 @@ SELECT COUNT ( * ) + + + 19 + - 9 AS col2, 12 + 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \- Int64\(96\) / Int64\(\-80\) AS col0" at position 0 and "Int64\(10\) \+ CAST\(\(\- Int64\(\-1\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 - 96 / - 80 AS col0, + 10 + + CAST ( - - 1 AS INTEGER ) AS col0 +---- +11 +62 query I rowsort SELECT ALL - 97 col2 @@ -9048,8 +9119,11 @@ SELECT + COUNT ( * ) * + 48 AS col2 # 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 col2" at position 0 and "Int64\(58\) / Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 23 AS col2, 58 / - 81 col2 +---- +-23 +0 query I rowsort SELECT + - 61 + - 65 AS col0 @@ -9094,8 +9168,11 @@ SELECT ALL 51 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 90 AS col1, - 6 AS col1 +---- +-6 +90 query II rowsort label-1734 SELECT + - 82, 10 / + + 16 * - 44 + 33 + 11 * - SUM ( ALL + - 74 ) AS col1 @@ -9154,8 +9231,11 @@ SELECT COUNT ( * ) * 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 588 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(14\) AS col2" at position 0 and "Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 42 * 14 AS col2, - 76 AS col2 +---- +-76 +588 query I rowsort SELECT DISTINCT - 33 + - 92 * 34 @@ -9353,8 +9433,12 @@ SELECT ( - 64 ) + + 41 AS col2 # Datafusion - Expected - 66 # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "\(\- count\(Int64\(66\)\)\) \* Int64\(\-57\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-33\) \* \(\- CAST\(Int64\(74\) AS Int32\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 66 AS col0, COALESCE ( ( + + COUNT ( * ) ), + 84 + + 55 ), + - COUNT ( 66 ) * - 57 * - CAST ( NULL AS INTEGER ) + - 33 * - CAST ( + 74 AS INTEGER ) AS col0 +---- +1 +66 +NULL query I rowsort label-1783 SELECT ALL MAX ( + 68 ) + 56 @@ -9374,8 +9458,11 @@ 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 col1" at position 0 and "Int64\(45\) / Int64\(\-81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 13 AS col1, + 45 / - 81 AS col1 +---- +-13 +0 query II rowsort label-1787 SELECT CASE 7 WHEN 79 / - COUNT ( * ) + - - COUNT ( 91 ) + + + 95 + - 41 + - CASE - MIN ( DISTINCT + 90 ) WHEN - 14 + + 81 * 50 THEN 87 WHEN + + 96 THEN + + 13 WHEN - - 34 THEN NULL ELSE - - SUM ( DISTINCT 91 ) / ( - - 64 ) END * - + 7 THEN - 98 - - - CAST ( NULL AS INTEGER ) ELSE NULL END + 67 AS col1, 21 @@ -9386,8 +9473,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -2989 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(49\) \* \(\- Int64\(61\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( 37 ) / + COUNT ( * ) AS col1, 49 * - + 61 AS col1 +---- +-2989 +37 query I rowsort SELECT 75 * - 86 + - 10 * - 76 * - 4 AS col0 @@ -10061,8 +10151,11 @@ SELECT ALL + 9 + - 84 / + 78 # 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 col2" at position 0 and "CASE \(\- Int64\(38\)\) WHEN Int64\(0\) THEN NULL WHEN Int64\(\-96\) THEN NULL ELSE Int64\(77\) END \+ Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 94 col2, + CASE - + 38 WHEN + 0 THEN NULL WHEN - 96 THEN NULL ELSE + 77 END + + - 79 col2 +---- +-2 +-94 query I rowsort SELECT + 25 + - 26 * + 9 @@ -10392,8 +10485,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(DISTINCT \(\- Int64\(86\)\)\) \* Int64\(39\) \* CAST\(Int64\(\-7\) AS Float64\) \- Int64\(21\) \* Int64\(58\) / \(\- CAST\(NULL AS Int32\)\) \+ Int64\(75\) AS col2" at position 0 and "\(\- CAST\(\(\- Int64\(2\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + AVG ( DISTINCT - + 86 ) * + + 39 * + + CAST ( + - 7 AS FLOAT8 ) - + + 21 * 58 / - CAST ( NULL AS INTEGER ) + + 75 AS col2, - CAST ( - + 2 AS INTEGER ) AS col2 +---- +2 +NULL query I rowsort SELECT - ( + 99 ) * + 48 @@ -10503,8 +10599,11 @@ 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\(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\. +query II valuesort SELECT ALL + 93 AS col1, - CASE + + 18 WHEN + - COUNT ( * ) + 15 * + ( + 27 ) THEN NULL WHEN - + 11 THEN - - ( 30 ) END * 4 AS col1 +---- +93 +NULL query I rowsort label-2003 SELECT - ( - 77 ) * CAST ( NULL AS INTEGER ) * - 10 + - COUNT ( * ) + + - ( ( - COALESCE ( 39, - ( + 14 ), 38 ) ) ) + + + MIN ( DISTINCT + 96 ) AS col1 @@ -10950,8 +11049,11 @@ 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\(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\. +query II valuesort 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 +---- +-300 +1718 query II rowsort label-2088 SELECT ALL + 91, 11 / 94 AS col2 @@ -10989,8 +11091,11 @@ SELECT DISTINCT - - CAST ( - 61 AS INTEGER ) * 95 + + - 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, 96 AS col1 +---- +1 +96 query II rowsort label-2095 SELECT - COUNT ( * ) + 61 AS col1, 46 * - - 92 AS col2 @@ -11930,8 +12035,12 @@ SELECT DISTINCT ( + - NULLIF ( - 65, CAST ( NULL AS INTEGER ) ) ) * 44 AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 19 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, 19 AS col1, 32 col0 +---- +19 +32 +NULL query II rowsort SELECT 70, 63 AS col2 @@ -12566,8 +12675,11 @@ SELECT ALL + 65 - + 88 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 800 # Datafusion - Expected - -168 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(\-80\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(28\) \* Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 10 * - 80 * + COUNT ( * ) AS col1, 28 * - 6 AS col1 +---- +-168 +800 query I rowsort label-2397 SELECT DISTINCT COUNT ( * ) / - 43 AS col2 @@ -12776,14 +12888,20 @@ SELECT DISTINCT COUNT ( * ) * - - 57 * + COUNT ( - 61 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "Int64\(\-3\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(34\) \+ \(\- CAST\(\(\- \(\- coalesce\(coalesce\(Int64\(73\), \(\- Int64\(41\)\)\), Int64\(\-63\) \* Int64\(49\)\)\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 95 col2, ( + - 3 ) * + + COUNT ( * ) / + 34 + + - CAST ( - - COALESCE ( + COALESCE ( 73, - + 41 ), - 63 * + 49 ) AS INTEGER ) col2 +---- +-73 +95 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 AS col2, 58 AS col2 +---- +-48 +58 query I rowsort label-2439 SELECT ALL NULLIF ( + CAST ( 12 AS INTEGER ), - 52 ) - - 53 / - 68 / 6 * + + CASE - NULLIF ( + 24, - 51 ) WHEN + 69 THEN NULL WHEN + 86 * + COUNT ( * ) * - CASE - 22 WHEN 79 THEN - 25 + - - 55 WHEN CAST ( NULL AS INTEGER ) THEN - 22 / + NULLIF ( + CAST ( NULL AS INTEGER ), + 34 ) WHEN - - 86 + 12 + + MAX ( DISTINCT + ( + + 45 ) ) * ( 18 ) + 70 + 6 * + 42 THEN 0 ELSE NULL END - + COUNT ( * ) THEN NULL ELSE - 94 END + + COUNT ( * ) @@ -13002,8 +13120,11 @@ SELECT 84 + - + 50 / + - 80 * - - 63 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ \(\- Int64\(72\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 86 + - + 72 AS col0, + COUNT ( * ) col0 +---- +1 +14 query I rowsort SELECT DISTINCT 19 AS col1 @@ -13023,8 +13144,11 @@ 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\(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\. +query II valuesort SELECT ALL 39 + - + COUNT ( * ) AS col2, 23 * - 90 AS col2 +---- +-2070 +38 query I rowsort SELECT + + 38 + - + 63 AS col2 @@ -13370,8 +13494,11 @@ SELECT - COALESCE ( 24, - 34 * - - 95 - 23 * - 4, - 89, + 64 * - 95 ) * - 66 col # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 6 / COUNT ( * ) col0, 63 AS col0 +---- +-6 +63 query I rowsort label-2550 SELECT ALL 72 / + ( + + CASE 49 WHEN 27 THEN NULL ELSE - 99 END ) + + + ( - 12 ) @@ -14310,8 +14437,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 AS col2, + COUNT ( * ) - 3 AS col2 +---- +-2 +34 query I rowsort label-2733 SELECT ALL + - 89 + + 63 * 46 * + CASE WHEN CAST ( NULL AS INTEGER ) IS NULL THEN NULL WHEN NOT ( NULL ) NOT BETWEEN 0 AND ( NULL ) THEN MAX ( 45 ) + - 69 ELSE 69 - 28 END @@ -14321,8 +14451,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 8 AS col1, COUNT ( * ) col1 +---- +1 +8 query I rowsort SELECT ALL + 1 + - 1 AS col1 @@ -14923,14 +15056,20 @@ SELECT ALL + + 90 / + + 93 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col1, 64 col1 +---- +64 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) AS col0" at position 0 and "Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 1 AS col0, 62 AS col0 +---- +-1 +62 query I rowsort SELECT - 68 * - 87 * - 48 + + 47 @@ -14993,8 +15132,11 @@ SELECT + 25 col0 # 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 "Int64\(70\) \+ \(\- Int64\(82\)\) AS col2" at position 0 and "Int64\(\-92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 70 + - + 82 AS col2, - 92 col2 +---- +-12 +-92 query I rowsort label-2865 SELECT ALL COALESCE ( + 16, - ( 84 ) ) * - CAST ( NULL AS INTEGER ) + + + ( + 24 ) * - CAST ( + 24 AS INTEGER ) @@ -15163,8 +15305,11 @@ SELECT + COALESCE ( - 4, 45 ) AS col0, 11 col1 # 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\(0\) / Int64\(\-22\) \* Int64\(\-60\) AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 / + - 22 * - 60 AS col1, 28 AS col1 +---- +0 +28 query I rowsort SELECT ALL - 48 + - 49 + - 89 AS col0 @@ -15214,8 +15359,11 @@ 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\(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\. +query II valuesort SELECT + 34 AS col2, SUM ( DISTINCT + 65 ) / + + ( + - 55 ) + + - COUNT ( * ) * 44 * + + 71 - - MIN ( ALL + 25 ) AS col2 +---- +-3100 +34 query I rowsort label-2908 SELECT + MIN ( ALL + 65 ) @@ -15282,8 +15430,11 @@ SELECT 66 + + 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col1" at position 0 and "Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 41 col1, - 16 AS col1 +---- +-16 +-41 query I rowsort label-2921 SELECT ALL - CASE - COUNT ( * ) WHEN - + ( - COUNT ( * ) ) THEN SUM ( - - 33 ) / 74 * + - MAX ( ALL - 32 ) END @@ -16825,8 +16976,11 @@ SELECT - NULLIF ( + + 39, 89 * - 62 + + 84 * + 34 + + 40 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 AS col0, + 25 col0 +---- +25 +76 query I rowsort SELECT ALL 45 * + - 84 @@ -16992,8 +17146,11 @@ SELECT - 74 * ( 53 ) * - + 58 + 67 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col0" at position 0 and "Int64\(93\) \- Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 97 AS col0, + 93 - + + 15 AS col0 +---- +78 +97 query I rowsort SELECT DISTINCT 88 * 34 col0 @@ -17445,8 +17602,12 @@ 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\(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\. +query III valuesort SELECT ALL COUNT ( * ) + + 53 * - CAST ( NULL AS INTEGER ) + - 65, + COUNT ( * ) + - ( - 36 ) AS col2, 44 * - 0 + - 74 AS col2 +---- +-74 +37 +NULL query I rowsort SELECT - + 67 AS col2 @@ -17486,8 +17647,11 @@ SELECT - - 75 + - 82 - - 90 + 43 # 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\(\-69\) \+ Int64\(51\) AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 69 + + + 51 AS col2, 62 AS col2 +---- +-18 +62 query I rowsort SELECT ALL + + 76 + - + 62 AS col1 @@ -17711,8 +17875,11 @@ 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\(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\. +query II valuesort SELECT ALL - ( - - COUNT ( * ) ) - - 44 AS col2, 88 AS col2 +---- +43 +88 query I rowsort SELECT - - 7 AS col2 @@ -17839,8 +18006,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + 46 AS col2, COUNT ( * ) - + NULLIF ( - 99, 38 ) + 77 * - 70 AS col2 +---- +-5290 +46 query I rowsort SELECT ALL + 62 * - 73 * + 77 @@ -17963,8 +18133,11 @@ SELECT 76 * - 75 + - 64 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 17 col0, 53 AS col0 +---- +17 +53 query II rowsort label-3440 SELECT - 28, COUNT ( + - 28 ) AS col1 @@ -17981,8 +18154,11 @@ SELECT - SUM ( ALL + 48 ) AS col2, SUM ( DISTINCT - - 25 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \- \(\- Int64\(46\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 4 - - + 46 AS col1, + COUNT ( * ) AS col1 +---- +1 +42 query I rowsort SELECT ALL 1 AS col2 @@ -18113,8 +18289,11 @@ SELECT ALL - 48 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 846 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ Int64\(\-87\) AS col2" at position 0 and "Int64\(47\) \* Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 57 + - 87 AS col2, + 47 * + 18 col2 +---- +-30 +846 query I rowsort label-3468 SELECT DISTINCT ( - - 1 ) + + 30 * + COUNT ( * ) @@ -18156,8 +18335,11 @@ SELECT ALL 15 * 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \+ \(\- CAST\(Int64\(40\) AS Int32\)\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 23 + + - CAST ( + 40 AS INTEGER ) AS col2, 61 col2 +---- +-63 +61 query I rowsort SELECT + - 57 AS col0 @@ -18198,8 +18380,11 @@ SELECT COUNT ( * ) + - CAST ( CAST ( 38 AS INTEGER ) AS INTEGER ) / 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 411804 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-81\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(81\) \* Int64\(82\) \* Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 81 * COUNT ( * ) AS col0, 81 * 82 * 62 AS col0 +---- +411804 +81 query I rowsort label-3484 SELECT 59 + + 61 / + 3 + - 48 AS col1 @@ -19302,8 +19487,11 @@ SELECT ALL - 23 * + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 168 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \+ Int64\(90\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + + 78 ) + + + 90 AS col2, 11 AS col2 +---- +11 +168 query I rowsort label-3696 SELECT - MIN ( DISTINCT - ( + - 90 ) ) * - + 45 AS col2 @@ -19868,8 +20056,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 83 ) - - 64 / 13 / + + ( + - 98 ) * + 80 AS col1, + COUNT ( * ) - 66 AS col1 +---- +-65 +83 query I rowsort SELECT + 39 AS col1 @@ -19995,8 +20186,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col0, - 11 + + 40 + + 59 AS col0 +---- +-1 +88 query I rowsort SELECT - - 12 + 78 @@ -20168,8 +20362,11 @@ SELECT 81 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 440 # Datafusion - Expected - -969 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* Int64\(8\) AS col0" at position 0 and "Int64\(\-17\) \* Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 55 * + 8 AS col0, - 17 * + 57 AS col0 +---- +-969 +440 query II rowsort SELECT DISTINCT + - 3 + + 99 col1, - 50 col0 @@ -20337,8 +20534,11 @@ SELECT - COALESCE ( - ( 96 ), 73 ) + + 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -91112 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-3\)\) AS col0" at position 0 and "Int64\(76\) \* Int64\(\-48\) \* Int64\(25\) \+ Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 3 AS col0, 76 * - 48 * 25 + + 88 AS col0 +---- +-91112 +3 query II rowsort label-3894 SELECT DISTINCT + 39 + - + COUNT ( * ) + - COUNT ( * ) / + ( - 89 ) + 96 AS col1, + ( 1 ) col0 @@ -20418,8 +20618,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(Int64\(16\) AS Int32\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 * + COUNT ( * ) AS col1, ( + CAST ( + + 16 AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) AS col1 +---- +47 +NULL query I rowsort label-3909 SELECT DISTINCT + ( + CASE - - 79 WHEN + COUNT ( * ) THEN NULL WHEN + 41 / - 63 THEN + - MIN ( DISTINCT - 65 ) * 27 WHEN - ( ( + + 16 ) ) THEN + 34 - - 62 ELSE NULL END ) / - 81 AS col0 @@ -21192,8 +21395,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + 34 / - NULLIF ( COUNT ( * ), - 95 ) AS col1, ( + 29 ) * + 89 - 92 * - 58 * - 45 AS col1 +---- +-237539 +-34 query I rowsort SELECT 56 * - 10 AS col0 @@ -21436,8 +21642,11 @@ SELECT - 26 * - 95 AS col2, + 44 * + 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1519 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(0\) AS Int32\)\) \* \(\- CASE \(\- Int64\(28\)\) WHEN Int64\(70\) \* \(\- \(\- Int64\(\-47\)\)\) THEN Int64\(50\) END\) \- Int64\(82\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(18\), Int64\(38\) \* Int64\(8\) / Int64\(76\)\) \* \(\- Int64\(80\)\) \+ Int64\(\-58\) \+ \(\- nullif\(\(\- nullif\(Int64\(40\), Int64\(76\) \* Int64\(86\) \* Int64\(86\)\)\), \(\- Int64\(\-72\)\) \* Int64\(9\) \+ \(\- Int64\(64\)\)\)\) \- CASE Int64\(\-97\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN Int64\(21\) ELSE Int64\(\-14\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(75\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-1519 +NULL query I rowsort SELECT - 2 * - 99 AS col1 @@ -21851,8 +22060,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-79\) \- Int64\(63\) / Int64\(\-89\) \+ Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col1, - 79 - + 63 / - 89 + + 67 AS col1 +---- +-12 +NULL query I rowsort SELECT ALL + + 33 + + 93 + + 80 + - 84 @@ -22459,8 +22671,12 @@ SELECT DISTINCT ( - + 17 ) / 6 AS col1 # Datafusion - Expected - NULL # Datafusion - Expected - -3777 # Datafusion - Expected - -4050 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-4\) AS col2" at position 0 and "Int64\(7\) \+ \(\- Int64\(\-88\)\) \* Int64\(\-43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT CAST ( NULL AS INTEGER ) * - 4 AS col2, 7 + - - 88 * - 43 AS col2, - 54 * + 75 AS col0 +---- +-3777 +-4050 +NULL query I rowsort label-4297 SELECT ALL + COUNT ( * ) * - - CASE - + COUNT ( * ) WHEN - - 11 THEN NULL ELSE - ( 19 ) / - - 5 + - 96 END AS col1 @@ -22687,8 +22903,11 @@ SELECT + SUM ( ALL 78 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -4116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- sum\(DISTINCT CAST\(NULL AS Int32\)\)\)\) / \(\- \(\- Int64\(99\)\)\) \* max\(Int64\(91\)\) AS col0" at position 0 and "Int64\(42\) \* Int64\(\-98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) / - ( - + 99 ) * MAX ( ALL + 91 ) AS col0, 42 * - 98 AS col0 +---- +-4116 +NULL query I rowsort SELECT DISTINCT - + 72 AS col2 @@ -22798,8 +23017,11 @@ SELECT ALL COALESCE ( + NULLIF ( + + 48, - + 63 * - 10 + 48 / - 42 + - 55 + 68 ) # 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\(13\) AS col1" at position 0 and "Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 AS col1, ( + 70 ) AS col1 +---- +13 +70 query I rowsort label-4363 SELECT - MIN ( ALL + + 78 ) @@ -24749,8 +24971,11 @@ SELECT CAST ( - + 93 AS INTEGER ) * 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col1" at position 0 and "min\(\(\- Int64\(26\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 col1, MIN ( - + 26 ) AS col1 +---- +-26 +46 query I rowsort label-4741 SELECT ALL 57 - + CAST ( NULL AS INTEGER ) AS col2 @@ -24838,8 +25063,11 @@ SELECT 63 + + + COALESCE ( 76, 40 ) + + 57 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 49 AS col1 +---- +1 +49 query I rowsort SELECT ( - + 12 ) * + 75 AS col0 @@ -25217,8 +25445,11 @@ SELECT ALL - COUNT ( - - 1 ) # 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\(34\) AS col0" at position 0 and "Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 34 AS col0, - 64 AS col0 +---- +-64 +34 query I rowsort label-4831 SELECT ALL - - 38 - COUNT ( * ) AS col2 @@ -25648,8 +25879,11 @@ SELECT - 80 / + 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(78\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 19 + + COUNT ( * ) * 78 AS col0, COUNT ( * ) AS col0 +---- +1 +97 query I rowsort label-4913 SELECT - + ( ( + COUNT ( * ) ) ) * 36 * 21 AS col0 @@ -25659,8 +25893,11 @@ SELECT - + ( ( + COUNT ( * ) ) ) * 36 * 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "Int64\(66\) \+ nullif\(Int64\(18\), CASE Int64\(37\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(20\) \+ \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) THEN Int64\(31\) \* CAST\(Int64\(32\) AS Int32\) ELSE Int64\(\-42\) \+ CASE Int64\(41\) WHEN Int64\(32\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-96\) THEN NULL WHEN Int64\(88\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN Int64\(65\) \+ coalesce\(Int64\(93\), Int64\(5\)\) WHEN Int64\(29\) THEN Int64\(\-85\) END / Int64\(60\) END \* Int64\(\-68\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +84 +86 query I rowsort SELECT ( - - 48 ) @@ -25729,8 +25966,12 @@ 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\(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\. +query III valuesort 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 +---- +12 +4 +NULL query I rowsort SELECT + 73 - - 79 @@ -25853,8 +26094,11 @@ SELECT + - 8 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(48\) / Int64\(82\) \* Int64\(47\) \* Int64\(\-75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, + 48 / + 82 * 47 * - 75 AS col0 +---- +0 +1 query I rowsort label-4951 SELECT 32 * - COUNT ( * ) * 9 - 19 AS col1 @@ -25894,8 +26138,11 @@ SELECT ALL + 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - -360 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* Int64\(\-24\) AS col0" at position 0 and "Int64\(47\) \* Int64\(61\) / \(\- Int64\(\-47\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 15 * - 24 col0, 47 * 61 / - - 47 AS col0 +---- +-360 +61 query I rowsort label-4959 SELECT DISTINCT - 95 * + + 91 * + - MAX ( ALL + 3 ) - 28 + + 94 * + 34 @@ -26137,8 +26384,11 @@ SELECT ALL + 6 + + 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col1" at position 0 and "Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 37 AS col1, - 82 AS col1 +---- +-37 +-82 query I rowsort label-5006 SELECT DISTINCT - ( + COUNT ( * ) ) * + 19 AS col1 @@ -26624,8 +26874,11 @@ SELECT + 8 + 66 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "Int64\(75\) \+ Int64\(65\) / Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 44 AS col1, 75 + + + 65 / + 95 AS col1 +---- +44 +75 query I rowsort label-5102 SELECT + 48 * CASE - 19 WHEN - + 41 * + + COUNT ( * ) * 91 THEN NULL WHEN - + 72 THEN + + 69 * 78 ELSE + 10 * + 58 + - 44 - + 46 + + - 43 * - + 34 END AS col0 @@ -27022,8 +27275,11 @@ SELECT ALL - - 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) / Int64\(22\) \+ Int64\(\-31\) \- \(\- Int64\(\-75\)\) \+ \(\- \(\- min\(Int64\(76\)\)\)\) AS col2" at position 0 and "Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 / + 22 + + ( - 31 ) - - - 75 + + ( - - MIN ( 76 ) ) AS col2, + 32 AS col2 +---- +-29 +32 query I rowsort label-5178 SELECT MAX ( + 66 ) * + 97 + - 97 @@ -27365,8 +27621,12 @@ SELECT ALL - 46 + + - 59 AS col1 # Datafusion - Expected - 128 # Datafusion - Expected - -2210 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \+ Int64\(66\) AS col0" at position 0 and "CASE coalesce\(CAST\(NULL AS Int32\), Int64\(\-38\) \* Int64\(35\) / CAST\(Int64\(\-14\) AS Int32\) \+ Int64\(87\)\) WHEN \(\- \(\- Int64\(26\)\)\) / Int64\(61\) \* Int64\(30\) THEN NULL WHEN Int64\(55\) THEN Int64\(82\) END \+ Int64\(\-90\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 62 + + 66 AS col0, - COUNT ( * ) * 34 * 65, + CASE COALESCE ( CAST ( NULL AS INTEGER ), - 38 * 35 / CAST ( + - 14 AS INTEGER ) + ( + 87 ) ) WHEN - - ( 26 ) / + + 61 * + ( + 30 ) THEN NULL WHEN + 55 THEN + 82 END + - 90 AS col0 +---- +-2210 +128 +NULL query I rowsort SELECT - NULLIF ( 97, - - 51 * - 66 * + + 75 ) + + 56 @@ -27917,8 +28177,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 66 AS col0, - ( + CAST ( NULL AS INTEGER ) ) * + ( CAST ( NULL AS INTEGER ) ) AS col0 +---- +66 +NULL query I rowsort SELECT ALL + 61 + + + ( - 70 ) + - 21 col1 @@ -29036,8 +29299,11 @@ SELECT ALL - + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \+ Int64\(\-77\) AS col1" at position 0 and "Int64\(33\) \* Int64\(2\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 67 + - 77 AS col1, 33 * 2 + + COUNT ( * ) AS col1 +---- +-10 +67 query I rowsort SELECT - 6 + - - 34 AS col0 @@ -29371,8 +29637,11 @@ SELECT ALL 60 * - 81 - - + 7 + + + 1 / - COUNT ( * ) - + 96 * + 28 - + 58 AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - 806 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* nullif\(Int64\(25\), Int64\(\-12\)\) \+ Int64\(6\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 32 * NULLIF ( 25, - 12 ) + + 6 AS col0, ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) col0 +---- +806 +NULL query I rowsort SELECT + ( - - ( + - NULLIF ( - 40, - - 87 ) ) ) AS col1 @@ -29444,8 +29713,11 @@ 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\(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\. +query II valuesort SELECT - 43 + - COUNT ( * ) * + - 30 AS col1, 70 AS col1 +---- +-13 +70 query I rowsort SELECT ALL ( 35 ) @@ -30445,8 +30717,11 @@ SELECT ALL + + COALESCE ( 43, 97 - + 25, + + ( 71 ) / - MAX ( + 29 ), + MIN ( 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -748 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \* Int64\(28\) \+ Int64\(\-48\) AS col2" at position 0 and "Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 25 * 28 + - 48 AS col2, - 33 AS col2 +---- +-33 +-748 query II rowsort label-5832 SELECT - 90 * - - 65 * - COUNT ( * ) AS col2, 30 + 79 @@ -30606,8 +30881,11 @@ SELECT CAST ( - 49 AS INTEGER ) - + 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col2" at position 0 and "Int64\(\-82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 25 AS col2, - 82 col2 +---- +-25 +-82 query I rowsort label-5863 SELECT MAX ( DISTINCT + 47 ) * + + MAX ( DISTINCT 68 ) AS col0 @@ -30748,8 +31026,12 @@ SELECT DISTINCT + 83 * - + COUNT ( * ) # Datafusion - Expected - 32 # Datafusion - Expected - 1 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 32 AS col1, COUNT ( * ) AS col1, - 91 / + + 95 + - 3 +---- +-3 +1 +32 query I rowsort label-5890 SELECT ALL + - COUNT ( * ) * + 21 @@ -31127,8 +31409,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * + - 85 + + - 3 AS col0, - 78 col0 +---- +-78 +-88 query I rowsort label-5961 SELECT - 76 * + NULLIF ( 54, + ( + NULLIF ( 28, + - 6 + + + 28 ) ) ) * - - ( - + 64 ) + 12 - + + ( NULLIF ( + + COUNT ( * ), COALESCE ( 57, + 72, - 19 ) ) ) + + - 74 * + - 49 AS col1 @@ -31725,8 +32010,11 @@ SELECT ALL ( - 72 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 18 col1, + 44 col1 +---- +18 +44 query I rowsort SELECT - 64 * + 4 AS col0 @@ -31833,8 +32121,11 @@ SELECT + - ( + 93 ) * - + 35 + 63 # 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 "Int64\(\-1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 4 AS col2, - 1 col2 +---- +-1 +-4 query I rowsort label-6095 SELECT ALL - 58 / - 38 + NULLIF ( - COUNT ( * ), + CASE + 81 WHEN 63 THEN + - 41 ELSE NULL END ) / + - NULLIF ( ( + 25 ), + COALESCE ( - - COUNT ( * ), 50 ) ) @@ -32341,8 +32632,11 @@ SELECT - 33 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - -870 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \- Int64\(70\) AS col2" at position 0 and "Int64\(30\) \* Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 51 - + + 70 AS col2, 30 * - 29 AS col2 +---- +-19 +-870 query I rowsort SELECT + + 18 * - - 62 * - 60 @@ -32988,8 +33282,11 @@ SELECT ALL + 30 + - 15 * 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -3532 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "Int64\(51\) \- Int64\(41\) \+ \(\- Int64\(\-77\)\) \* Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 AS col1, 51 - 41 + - ( - 77 ) * + - 46 AS col1 +---- +-3532 +33 query I rowsort SELECT - 13 * + 20 @@ -33014,8 +33311,11 @@ SELECT DISTINCT + 12 + + 58 + 91 * + CASE - COUNT ( * ) WHEN - + 47 THEN 82 ELSE # Datafusion - Datafusion expected results: # Datafusion - Expected - 1596 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(\-84\)\)\) \* Int64\(19\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( - 84 ) * + 19 AS col2, COUNT ( * ) AS col2 +---- +1 +1596 query I rowsort label-6323 SELECT DISTINCT - 40 / + 83 @@ -33061,8 +33361,11 @@ SELECT ALL + 23 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, COUNT ( * ) AS col1 +---- +1 +1 query I rowsort label-6332 SELECT DISTINCT - COUNT ( * ) * 76 + 74 - + + 93 + 16 AS col1 @@ -33200,8 +33503,11 @@ SELECT - 54 + 25 * - 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int32\) AS Float64\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS FLOAT8 ) AS col1, + 13 AS col1 +---- +13 +NULL query I rowsort SELECT ALL - 36 * + - 62 @@ -33355,8 +33661,12 @@ 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\(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\. +query III valuesort SELECT ALL 26 col2, + 56 * 71, 42 + NULLIF ( - CASE - 52 WHEN - 20 * + 32 + - COUNT ( * ) THEN + + 27 * + 36 ELSE - - 53 + + 97 END, - 5 ) col2 +---- +-108 +26 +3976 query I rowsort SELECT DISTINCT 7 - - 9 @@ -33881,8 +34191,11 @@ SELECT ( - 25 ) + + 52 - + COUNT ( DISTINCT - 69 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 8 -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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 AS col0, 8 AS col0 +---- +8 +82 query I rowsort label-6492 SELECT 46 * - COUNT ( * ) @@ -34886,8 +35199,11 @@ 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 "\(\- CAST\(NULL AS Float64\)\) AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - CAST ( NULL AS FLOAT8 ) AS col2, + 46 AS col2 +---- +46 +NULL query I rowsort label-6687 SELECT + 94 * - 20 * - 49 * 81 + COUNT ( * ) / + 54 @@ -35008,8 +35324,11 @@ SELECT - + 73 + - 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 5986 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(67\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(74\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col1, 67 + - + COUNT ( * ) + + 74 * + 80 AS col1 +---- +5986 +NULL query I rowsort SELECT ALL + 93 + - 43 @@ -35156,8 +35475,11 @@ SELECT ( - NULLIF ( 75, 83 * 67 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) * + COUNT ( * ) AS col0, - COUNT ( * ) AS col0 +---- +-1 +1 query I rowsort label-6739 SELECT ALL + 31 * + COUNT ( * ) + + - 33 * + NULLIF ( + + 9, 57 * 35 * + + 95 - + - 7 + - 21 ) AS col0 @@ -35515,8 +35837,11 @@ SELECT DISTINCT 77 * - CAST ( 91 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \+ Int64\(\-10\) \- count\(Int64\(85\)\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 36 + + - 10 - COUNT ( ( + + ( + 85 ) ) ) AS col0, 67 AS col0 +---- +25 +67 query II rowsort SELECT 58 AS col1, 7 @@ -35533,8 +35858,11 @@ 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\(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\. +query II valuesort 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 +---- +-34 +2361 query I rowsort SELECT 31 + - 17 @@ -35695,8 +36023,11 @@ SELECT 3 + 80 + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1141 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ Int64\(\-31\) \+ Int64\(80\) \+ Int64\(30\) \* Int64\(35\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 42 + - 31 + + + 80 + + 30 * + 35 AS col2, 38 AS col2 +---- +1141 +38 query I rowsort label-6842 SELECT COUNT ( * ) + + + 98 + 29 - - 96 * + 19 @@ -36192,8 +36523,11 @@ SELECT + 48 * - + 5 * + + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - -732 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* Int64\(\-61\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 12 * - 61 col2, 3 AS col2 +---- +-732 +3 query I rowsort SELECT - 24 + - + 79 @@ -36388,8 +36722,11 @@ SELECT DISTINCT - 57 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 3696 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(0\)\) \* Int64\(\-2\) \* Int64\(22\) \- Int64\(29\) AS col1" at position 0 and "Int64\(66\) \* Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - - 0 ) * + - 2 * 22 - 29 AS col1, 66 * + 56 AS col1 +---- +-29 +3696 query I rowsort SELECT ( + 26 ) + 60 AS col2 @@ -36841,8 +37178,11 @@ SELECT DISTINCT + SUM ( DISTINCT + 72 ), - 80 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-4\) AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( + - 4 AS INTEGER ) col2, + COUNT ( * ) AS col2 +---- +-4 +1 query I rowsort label-7058 SELECT - COUNT ( 63 ) + MIN ( - + COALESCE ( - 2, + NULLIF ( + 48, + - 85 ) ) ) + + - 17 AS col1 @@ -36978,8 +37318,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - COUNT ( * ) ) AS col1, + 35 AS col1 +---- +-1 +35 query II rowsort SELECT + - 58 + + + 82 AS col0, + 65 * - 76 @@ -37046,8 +37389,11 @@ SELECT - 78 * - + ( - - COUNT ( + ( + - 55 ) ) ) + 31 AS col2, + 81 + - + 41 + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "Int64\(\-22\) \+ CAST\(Int64\(50\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 10 AS col2, - 22 + CAST ( 50 AS INTEGER ) AS col2 +---- +10 +28 query II rowsort SELECT 91 AS col2, + 14 @@ -37131,8 +37477,11 @@ SELECT - 57 + 49 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - -21619 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col1" at position 0 and "Int64\(29\) \+ Int64\(82\) \* Int64\(66\) \* Int64\(\-4\) / count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 AS col1, 29 + 82 * 66 * - 4 / + COUNT ( * ) * + COUNT ( * ) AS col1 +---- +-21619 +69 query I rowsort SELECT 63 + - 75 AS col2 @@ -37600,8 +37949,11 @@ SELECT ALL + ( 19 ) + + - 54 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, + 16 col2 +---- +1 +16 query I rowsort SELECT - 36 + + - 3 AS col1 @@ -37678,8 +38030,11 @@ SELECT ALL CAST ( - + 58 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1500 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* Int64\(\-30\) AS col2" at position 0 and "sum\(DISTINCT Int64\(19\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 50 * - 30 AS col2, SUM ( DISTINCT 19 ) AS col2 +---- +-1500 +19 query I rowsort label-7218 SELECT - COUNT ( * ) + + 42 + - 35 - + SUM ( + - 4 ) @@ -38357,8 +38712,11 @@ SELECT DISTINCT ( - + 77 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "Int64\(\-33\) \+ \(\- Int64\(45\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 36 AS col1, - 33 + - + 45 AS col1 +---- +-78 +36 query I rowsort SELECT 93 + + 48 @@ -38505,8 +38863,12 @@ SELECT DISTINCT 6 + - 9 - 85 * 66 AS col2 # Datafusion - Expected - 61 # Datafusion - Expected - 0 # 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 "\(\- Int64\(\-97\)\) / max\(Int64\(25\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 61 col1, + 0 AS col0, - - 97 / MAX ( ALL + + 25 ) AS col1 +---- +0 +3 +61 query I rowsort label-7377 SELECT 84 / - ( + + COUNT ( * ) ) AS col0 @@ -38586,8 +38948,11 @@ SELECT DISTINCT - 63 AS col0, - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(32\), Int64\(21\) \* \(\- Int64\(82\)\) \- Int64\(55\) \- Int64\(29\) \- CAST\(Int64\(81\) AS Float64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + 67 col0, + CAST ( NULL AS INTEGER ) * + COALESCE ( COUNT ( * ), + + 32, 21 * ( - + ( + 82 ) ) - + + 55 - + 29 - + CAST ( 81 AS FLOAT8 ) ) AS col0 +---- +67 +NULL query II rowsort SELECT ALL 94, + 89 AS col0 @@ -39062,8 +39427,11 @@ SELECT ALL - + 2 + + - ( - 80 ) + + 55 * + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - -2640 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \- Int64\(10\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(11\) \- CAST\(Int64\(61\) AS Int32\) \+ Int64\(\-37\) \* Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 6 - + ( + 10 ) AS col1, ( + COUNT ( * ) ) * 11 - CAST ( 61 AS INTEGER ) + + - 37 * 70 AS col1 +---- +-16 +-2640 query I rowsort SELECT ALL 45 + 96 AS col2 @@ -39172,8 +39540,11 @@ SELECT - 43 / 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6153 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) \* Int64\(23\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(66\)\) \* Int64\(88\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "sum\(Int64\(\-50\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 15 * 23 + COUNT ( * ) + - ( + 66 ) * + + 88 - COUNT ( * ) AS col2, SUM ( - 50 ) AS col2 +---- +-50 +-6153 query I rowsort SELECT ALL + 57 + 50 col2 @@ -39282,8 +39653,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( + + 25, - - 31, - 50 ) * 7 AS col2, MIN ( ALL + 66 ) * - COUNT ( * ) AS col2 +---- +-66 +175 query I rowsort SELECT ( - 29 ) * + 9 * + - 42 + 56 + + 61 * ( - 48 ) * - 51 - + 33 AS col0 @@ -39478,8 +39852,11 @@ SELECT - 28 / 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -207 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* Int64\(\-16\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "min\(DISTINCT Int64\(\-41\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 13 * - 16 + + + ( + COUNT ( * ) ) AS col1, + MIN ( DISTINCT + - 41 ) col1 +---- +-207 +-41 query I rowsort SELECT ALL 60 * - + 60 + 3 AS col2 @@ -39731,8 +40108,11 @@ SELECT - + 54 * - 83 # 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\(\-65\) / Int64\(30\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 65 / 30 col2, 54 AS col2 +---- +-2 +54 query I rowsort SELECT DISTINCT - + 4 @@ -39765,8 +40145,11 @@ SELECT + 62 + 43 * - MIN ( DISTINCT - 58 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(57\)\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( + 57 ) AS col2, 89 AS col2 +---- +57 +89 query I rowsort label-7614 SELECT ALL - + NULLIF ( - 76, - + 99 - - COUNT ( * ) ) AS col0 @@ -40159,8 +40542,11 @@ SELECT - 12 * - 70 * - 72 AS col0, + 2 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 860 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* Int64\(23\) \+ 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 II valuesort SELECT ALL + 37 * 23 + + 9 AS col2, - 54 AS col2 +---- +-54 +860 query I rowsort SELECT DISTINCT 59 * 42 @@ -40221,8 +40607,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col1, + 10 AS col1 +---- +-1 +10 query I rowsort SELECT DISTINCT ( - 90 ) @@ -40424,8 +40813,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(\-3\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( DISTINCT - 23 ) AS col0, COUNT ( * ) * - - 3 AS col0 +---- +23 +3 query I rowsort label-7740 SELECT DISTINCT - 86 / - 72 @@ -40563,8 +40955,11 @@ SELECT ( 13 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* nullif\(Int64\(\-88\), Int64\(\-46\) \* Int64\(12\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \* Int64\(60\) \+ Int64\(92\)\) AS col2" at position 0 and "\(\- coalesce\(Int64\(19\), Int64\(\-50\)\)\) \- Int64\(\-28\) / Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) * NULLIF ( - 88, - 46 * 12 + + + CAST ( - COUNT ( * ) AS INTEGER ) * + 60 + 92 ) AS col2, - COALESCE ( + 19, + - 50 ) - + - 28 / + 83 AS col2 +---- +-19 +88 query I rowsort label-7767 SELECT ALL + 42 + + + COUNT ( * ) @@ -40681,8 +41076,11 @@ 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\(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\. +query II valuesort SELECT ALL - - ( + 24 ) + CASE + COUNT ( * ) WHEN - 25 THEN - 78 + 55 ELSE NULL END AS col0, + 11 AS col0 +---- +11 +NULL query I rowsort label-7790 SELECT - - CAST ( - ( + + 46 ) AS INTEGER ) @@ -40882,8 +41280,11 @@ 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 count\(\*\)\) \* Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 70 AS col1, - COUNT ( * ) * 1 AS col1 +---- +-1 +70 query I rowsort SELECT - - 73 @@ -40968,8 +41369,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 506 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 0 and "sum\(Int64\(38\)\) \* Int64\(11\) \+ Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 28 AS col0, + ( + + SUM ( 38 ) ) * 11 + + + 88 AS col0 +---- +28 +506 query II rowsort SELECT 53 AS col1, - NULLIF ( - ( + ( + - 58 ) ), - - 53 - - - 91 ) @@ -41514,8 +41918,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - -220 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col2" at position 0 and "Int64\(4\) \* Int64\(\-55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 61 AS col2, 4 * - 55 AS col2 +---- +-220 +-61 query I rowsort SELECT 50 * 63 col2 @@ -41875,8 +42282,11 @@ SELECT + 36 AS col2, + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4928 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ Int64\(82\) \* Int64\(\-61\) \- \(\- \(\- CAST\(Int64\(\-90\) AS Int32\)\)\) \+ Int64\(\-95\) \+ \(\- Int64\(53\)\) \+ Int64\(99\) AS col2" at position 0 and "Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 33 + 82 * - 61 - - - CAST ( - 90 AS INTEGER ) + - 95 + - + 53 + + 99 AS col2, - 25 AS col2 +---- +-25 +-4928 query I rowsort label-8020 SELECT ALL 36 + - COUNT ( * ) - + 7 + + 48 @@ -42486,8 +42896,11 @@ SELECT ALL SUM ( ALL + + 51 ) * COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 4026 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(73\), \(\- Int64\(75\)\) \* Int64\(16\)\) AS col2" at position 0 and "Int64\(44\) \* Int64\(92\) \+ Int64\(\-22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( + 73, - ( + 75 ) * 16 ) AS col2, + 44 * + 92 + + - 22 AS col2 +---- +4026 +73 query I rowsort SELECT ALL + 90 AS col0 @@ -42600,8 +43013,11 @@ SELECT - 11 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -153 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \- Int64\(93\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 60 - 93 AS col2, + 88 AS col2 +---- +-153 +88 query II rowsort label-8160 SELECT ALL - 92 * + - CAST ( NULL AS INTEGER ), 62 AS col2 @@ -42622,8 +43038,11 @@ SELECT + + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4160 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(52\) AS col2" at position 0 and "Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 * + 52 AS col2, + 76 col2 +---- +4160 +76 query I rowsort label-8164 SELECT 51 * + SUM ( + 23 ) + + + 74 @@ -42763,8 +43182,11 @@ SELECT 44 + COALESCE ( 69, + + 32 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1731 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-24\)\) \- Int64\(27\) \* Int64\(\-65\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( - 24 ) - 27 * - 65 AS col2, + 4 AS col2 +---- +1731 +4 query I rowsort label-8190 SELECT DISTINCT + 70 * + NULLIF ( + - MIN ( + 79 ), - 11 ) - - COUNT ( * ) - - COUNT ( * ) AS col2 @@ -44397,8 +44819,11 @@ SELECT - ( 71 ) + + 79 * + COUNT ( * ) AS col0, - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 33 col0, 80 col0 +---- +33 +80 query I rowsort SELECT 13 * 1 + - 57 @@ -44445,8 +44870,11 @@ 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\(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\. +query II valuesort SELECT + ( + 90 ) + - COUNT ( * ) col2, + 52 - - - 55 AS col2 +---- +-3 +89 query I rowsort label-8516 SELECT ALL + 94 / - 70 @@ -44829,8 +45257,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- min\(Int64\(44\)\)\)\) / avg\(\(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(\-11\) AS col2" at position 0 and "Int64\(0\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT - ( + - MIN ( 44 ) ) / AVG ( ALL - CAST ( NULL AS INTEGER ) ) + - 11 AS col2, + 0 * - COUNT ( * ) AS col2 +---- +0 +NULL query I rowsort SELECT DISTINCT + 93 AS col0 @@ -45402,8 +45833,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 45 AS col0, 85 AS col0 +---- +-45 +85 query I rowsort label-8697 SELECT ALL + - MAX ( - + CAST ( NULL AS INTEGER ) ) AS col0 @@ -45656,8 +46090,11 @@ SELECT 65 * - 32 # 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\(DISTINCT Int64\(46\)\) AS col2" at position 0 and "max\(DISTINCT Int64\(\-85\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( DISTINCT 46 ) AS col2, MAX ( DISTINCT - 85 ) AS col2 +---- +-85 +1 query I rowsort SELECT ALL - + 14 * 27 AS col0 @@ -45787,8 +46224,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * 62 * + 56 + + 40 AS col2, 96 col2 +---- +3512 +96 query I rowsort SELECT DISTINCT - 84 col2 @@ -46401,8 +46841,11 @@ SELECT 58 / 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col2" at position 0 and "Int64\(\-45\) \+ Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 25 AS col2, - 45 + 22 AS col2 +---- +-23 +-25 query I rowsort SELECT ALL 26 col2 @@ -46642,8 +47085,11 @@ SELECT ALL - + 40 + - 56, - 22 * - - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3190 # Datafusion - Expected - 89 -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 "Int64\(0\) \* Int64\(54\) \+ \(\- Int64\(\-89\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 * + 55 AS col1, ( 0 ) * 54 + - - 89 AS col1 +---- +-3190 +89 query I rowsort label-8931 SELECT ALL - + 28 / NULLIF ( 3, - - COUNT ( * ) ) @@ -46838,8 +47284,11 @@ SELECT DISTINCT 86 * - 50 AS col1 # 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 "CASE Int64\(89\) WHEN Int64\(10\) / Int64\(25\) \* Int64\(\-91\) THEN NULL WHEN Int64\(\-4\) THEN NULL WHEN Int64\(36\) THEN Int64\(\-78\) END AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CASE 89 WHEN 10 / + + 25 * - 91 THEN NULL WHEN - 4 THEN NULL WHEN 36 THEN - 78 END AS col2, + 96 AS col2 +---- +96 +NULL query II rowsort SELECT 5 AS col2, 9 AS col0 @@ -46880,8 +47329,11 @@ SELECT + - 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 18 ) AS col0, - 22 AS col0 +---- +-22 +18 query I rowsort SELECT ( - 43 ) @@ -47053,8 +47505,11 @@ SELECT ( + 81 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 23055 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(87\) \* Int64\(53\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 5 * + 87 * 53 * + COUNT ( * ) AS col0, 9 AS col0 +---- +23055 +9 query I rowsort label-9010 SELECT DISTINCT - SUM ( DISTINCT - - 94 ) @@ -47552,8 +48007,12 @@ SELECT DISTINCT SUM ( DISTINCT + - 1 ) col0 # Datafusion - Expected - -83 # Datafusion - Expected - 7407 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(49\)\) \+ \(\- Int64\(34\)\) AS col2" at position 0 and "Int64\(76\) \* Int64\(98\) \- Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - + 49 + - + 34 AS col2, + 76 * 98 - + 41 col2, 4 +---- +-83 +4 +7407 query I rowsort SELECT DISTINCT + 94 + 45 @@ -47741,8 +48200,11 @@ SELECT ALL - + 35 + + 77 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83538 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \* Int64\(63\) \* Int64\(51\) \+ Int64\(\-20\) / \(\- Int64\(\-35\)\) AS col0" at position 0 and "Int64\(8\) \* Int64\(48\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 26 * 63 * + + 51 + - 20 / + - ( - 35 ) AS col0, 8 * + 48 + + CAST ( NULL AS INTEGER ) AS col0 +---- +-83538 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -48062,8 +48524,11 @@ SELECT ALL 92 * 84 + + ( + + 39 ) / - 87 + 56 * + 73 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 col0, + 12 col0 +---- +12 +45 query I rowsort label-9202 SELECT ALL - 78 * - 67 * - - COUNT ( * ) * + 79 + NULLIF ( - - 46, - 59 * - + COUNT ( * ) - - 9 ) @@ -48332,8 +48797,11 @@ SELECT ALL + 92 * - COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 96 AS col0, 83 AS col0 +---- +83 +96 query I rowsort label-9253 SELECT + MAX ( - + 35 ) * - - MAX ( ALL + 77 ) @@ -48400,8 +48868,11 @@ SELECT - 16 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(60\) \- Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 64 / + COUNT ( * ) AS col1, + 60 - 77 AS col1 +---- +-17 +-64 query II rowsort SELECT 4 + + - 53, 39 AS col0 @@ -48586,8 +49057,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 21 * + 68 * - 21 AS col0, - 97 + + 14 * + - COUNT ( * ) AS col0 +---- +-111 +29988 query I rowsort label-9302 SELECT - 69 + 67 / + + 72 * + 47 * + 48 - - 25 * - + 79 * + 0 + + ( - - 14 ) AS col2 @@ -49000,8 +49474,11 @@ SELECT ALL + 0 * - 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "Int64\(\-76\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 46 col2, - 76 + CAST ( NULL AS INTEGER ) AS col2 +---- +46 +NULL query I rowsort SELECT ALL - + 10 * + 20 @@ -49299,8 +49776,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( 8 ) AS col1, + COUNT ( * ) * - 8 AS col1 +---- +-8 +8 query I rowsort label-9438 SELECT MIN ( - + 32 ) @@ -49388,8 +49868,11 @@ SELECT ALL 55 + + COALESCE ( COUNT ( * ), - 62, + 67 * - 21 + - - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 105 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ \(\- Int64\(\-52\)\) AS col2" at position 0 and "Int64\(68\) \- \(\- Int64\(15\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 53 + - - 52 AS col2, 68 - - + 15 AS col2 +---- +105 +83 query II rowsort label-9455 SELECT ALL - - MIN ( + ( + 52 ) ), 82 + - + ( CAST ( 77 AS INTEGER ) ) AS col2 @@ -49486,8 +49969,11 @@ SELECT ALL + COUNT ( * ) - COUNT ( * ) + + 85 - - 2 + + - 62 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-70\) WHEN Int64\(7\) THEN NULL WHEN \(\- Int64\(98\)\) \* Int64\(\-61\) THEN \(\- nullif\(Int64\(41\), \(\- Int64\(29\)\)\)\) \* \(\- coalesce\(CAST\(NULL AS Int32\), Int64\(\-13\)\)\) END AS col1" at position 0 and "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CASE + - 70 WHEN 7 THEN NULL WHEN - + 98 * - 61 THEN - + NULLIF ( + ( 41 ), - + 29 ) * - COALESCE ( + CAST ( NULL AS INTEGER ), - 13 ) END AS col1, 41 AS col1 +---- +41 +NULL query I rowsort SELECT - - 62 AS col2 @@ -49722,8 +50208,11 @@ 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\(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\. +query II valuesort SELECT - - 64 AS col2, + 36 * NULLIF ( - 8, + 22 + + COUNT ( * ) + - 26 / 66 - + COUNT ( - - 10 ) ) * - - COUNT ( DISTINCT + 83 ) + - 74 AS col2 +---- +-362 +64 query I rowsort label-9518 SELECT + ( + 25 ) + - COUNT ( * ) * - SUM ( + + 84 ) * NULLIF ( - - 62, COUNT ( * ) ) / 28 + 61 * 30 @@ -50169,8 +50658,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 AS col1, + COUNT ( * ) AS col1 +---- +1 +71 query I rowsort label-9604 SELECT DISTINCT CAST ( NULL AS INTEGER ) + 9 AS col2 @@ -50332,8 +50824,12 @@ 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\(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\. +query III valuesort SELECT ALL - + 16 * - 8 + - NULLIF ( - 58, - COUNT ( * ) ) * - 96 AS col2, NULLIF ( + 48, + COUNT ( * ) + - + 23 - - 18 - + - 53 * + 66 * - 65 ), - 70 AS col2 +---- +-5440 +-70 +48 query I rowsort label-9635 SELECT ALL + 58 * + SUM ( ALL NULLIF ( + 12, 83 + - + 11 ) ) - + 72 + + - 83 + + 81 + - - 73 + + 85 / + 92 @@ -50773,8 +51269,11 @@ SELECT - - 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, COUNT ( * ) AS col1 +---- +1 +1 query II rowsort SELECT ALL + + 2 AS col1, 78 + - 43 @@ -50815,8 +51314,11 @@ SELECT ALL SUM ( ALL + 89 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int32\) AS Float64\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS FLOAT8 ) AS col1, + 13 AS col1 +---- +13 +NULL query I rowsort SELECT ALL - - NULLIF ( 78, - - 91 * + - 64 ) @@ -51125,8 +51627,11 @@ SELECT + MAX ( - - 78 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) * + COUNT ( * ) AS col0, - COUNT ( * ) AS col0 +---- +-1 +1 query I rowsort SELECT + - 15 col2 @@ -51395,8 +51900,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - COUNT ( * ) ) AS col1, + 35 AS col1 +---- +-1 +35 query I rowsort SELECT DISTINCT 88 - + + 86 col1 @@ -51850,8 +52358,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(57\)\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( + 57 ) AS col2, 89 AS col2 +---- +57 +89 query I rowsort SELECT NULLIF ( + 25, 5 ) + - - 70 diff --git a/data/sqlite/random/expr/slt_good_32.slt b/data/sqlite/random/expr/slt_good_32.slt index 700700f..4ac9034 100644 --- a/data/sqlite/random/expr/slt_good_32.slt +++ b/data/sqlite/random/expr/slt_good_32.slt @@ -396,8 +396,11 @@ SELECT ALL - COUNT ( 29 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 33 col0, 80 col0 +---- +33 +80 query I rowsort label-71 SELECT SUM ( DISTINCT 92 ) @@ -975,8 +978,11 @@ SELECT + - MIN ( ALL 60 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 col0, + 12 col0 +---- +12 +45 query I rowsort label-183 SELECT ALL + + MAX ( ALL + 66 ) @@ -2921,8 +2927,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) col1, 78 AS col1 +---- +-1 +78 query I rowsort SELECT - ( + - 91 ) col0 @@ -5036,8 +5045,11 @@ SELECT ALL ( - 67 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 AS col1, 36 AS col1 +---- +36 +36 query I rowsort label-977 SELECT - COUNT ( * ) + - - 19 AS col0 @@ -5133,8 +5145,11 @@ SELECT + + 41 # 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\(DISTINCT Int64\(47\)\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( DISTINCT 47 ) col1, + 9 AS col1 +---- +1 +9 query I rowsort label-996 SELECT ALL COUNT ( * ) * + 41 AS col0 @@ -5602,8 +5617,11 @@ SELECT - COUNT ( * ) + - - 79 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col1" at position 0 and "Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 31 ) AS col1, - 94 AS col1 +---- +-94 +31 query I rowsort SELECT + 51 col1 @@ -5859,8 +5877,11 @@ SELECT - + 22 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 AS col2, + COUNT ( * ) - + - CAST ( NULL AS INTEGER ) AS col2 +---- +81 +NULL query I rowsort SELECT 67 col2 @@ -6444,8 +6465,11 @@ SELECT DISTINCT - + MAX ( - 19 ) * + 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col0" at position 0 and "Int64\(\-58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 73 col0, - 58 AS col0 +---- +-58 +-73 query II rowsort label-1249 SELECT - COUNT ( * ) AS col2, + 59 AS col0 @@ -6506,8 +6530,11 @@ SELECT 98 + - 91 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) / Int64\(7\) AS col2" at position 0 and "Int64\(\-50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 / + 7 AS col2, - 50 AS col2 +---- +-50 +5 query I rowsort label-1261 SELECT COUNT ( * ) - - 87 AS col0 @@ -7304,8 +7331,11 @@ SELECT ALL - - 19 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 52 AS col0, COUNT ( * ) AS col0 +---- +-52 +1 query I rowsort label-1416 SELECT ALL - 40 + - - COUNT ( * ) * - COUNT ( * ) @@ -7409,8 +7439,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 * - COUNT ( * ) AS col0, 49 AS col0 +---- +-39 +49 query I rowsort SELECT ALL - - 2 @@ -7592,8 +7625,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 51 AS col0, 31 AS col0 +---- +-51 +31 query I rowsort label-1471 SELECT ALL - COUNT ( * ) + - 46 AS col2 @@ -8698,8 +8734,11 @@ SELECT DISTINCT ( + + 54 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 55 AS col1, 15 AS col1 +---- +15 +55 query I rowsort SELECT - 58 + - 41 AS col2 @@ -9074,8 +9113,11 @@ SELECT 54 * 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 44 AS col1, + 97 AS col1 +---- +-44 +97 query I rowsort label-1761 SELECT CAST ( NULL AS INTEGER ) - COUNT ( * ) @@ -9291,8 +9333,11 @@ SELECT 3, 62 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 93 AS col0, 78 AS col0 +---- +78 +93 query I rowsort SELECT ALL - 31 + - 90 @@ -10157,8 +10202,11 @@ SELECT ALL - 40 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 col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 29 AS col1, 29 col1 +---- +-29 +29 query I rowsort label-1971 SELECT ALL + COALESCE ( - COUNT ( * ), 29 / + + 41 ) * 95 @@ -10387,8 +10435,11 @@ SELECT + - 77 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6389 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) \* Int64\(69\) \+ Int64\(96\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 94 * 69 + + + 96 + + COUNT ( * ) AS col2, 59 AS col2 +---- +-6389 +59 query I rowsort label-2016 SELECT DISTINCT 29 * CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - 99 @@ -10431,8 +10482,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( ALL - ( - CAST ( NULL AS INTEGER ) ) ) AS col2, + 50 AS col2 +---- +0 +50 query I rowsort SELECT ( - 55 ) AS col2 @@ -10773,8 +10827,11 @@ SELECT MIN ( - 50 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(67\)\) AS col0" at position 0 and "Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + ( + 67 ) AS col0, - 27 AS col0 +---- +-27 +-67 query I rowsort SELECT - - 50 AS col0 @@ -11110,8 +11167,11 @@ SELECT - - 97 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(20\)\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 20 AS col2, 20 col2 +---- +-20 +20 query I rowsort SELECT ALL - - 4 AS col0 @@ -11538,8 +11598,11 @@ SELECT 86 / - 16 + - 64 * + 19 AS col1 # 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 "Int64\(34\) \+ \(\- count\(\(\- Int64\(18\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 95 AS col1, 34 + - COUNT ( - ( 18 ) ) AS col1 +---- +33 +95 query I rowsort SELECT ALL + + 64 @@ -11837,8 +11900,11 @@ SELECT DISTINCT + + 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 AS col0, 5 AS col0 +---- +12 +5 query I rowsort label-2297 SELECT - CAST ( NULL AS INTEGER ) + 0 AS col0 @@ -11868,8 +11934,11 @@ SELECT ALL - + 26 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 24 AS col0, 78 AS col0 +---- +-24 +78 query I rowsort label-2303 SELECT - 68 * SUM ( DISTINCT 6 ) col1 @@ -12786,8 +12855,11 @@ SELECT ( 86 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(34\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + MIN ( + 34 ) AS col2, COUNT ( * ) AS col2 +---- +1 +34 query I rowsort SELECT DISTINCT + - 2 AS col1 @@ -15830,8 +15902,11 @@ SELECT + 16 * - COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 22 col2, - 29 AS col2 +---- +-29 +22 query II rowsort label-3075 SELECT ALL CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col2 @@ -15995,8 +16070,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT CASE COUNT ( * ) WHEN + 50 THEN + - 32 ELSE - - COUNT ( * ) END AS col2, + 25 col2 +---- +1 +25 query I rowsort SELECT DISTINCT + ( + + 27 ) AS col0 @@ -16542,8 +16620,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 40 AS col2, - COUNT ( * ) AS col2 +---- +-1 +40 query I rowsort SELECT ALL - ( - 87 ) AS col0 @@ -16802,8 +16883,11 @@ SELECT CAST ( 43 AS INTEGER ) # 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\) AS col1" at position 0 and "Int64\(\-89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 26 col1, - 89 col1 +---- +-89 +26 query I rowsort label-3264 SELECT DISTINCT + SUM ( 55 ) @@ -16828,8 +16912,11 @@ SELECT - + 84 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "Int64\(\-31\) \- Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 AS col0, - 31 - + + 1 AS col0 +---- +-32 +8 query I rowsort SELECT 19 * + + 77 AS col1 @@ -17237,8 +17324,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 30 AS col1, + 42 AS col1 +---- +30 +42 query I rowsort SELECT ALL + 23 + + + 56 AS col2 @@ -20272,8 +20362,11 @@ SELECT + ( 2 ) * 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -4802 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "Int64\(49\) \* \(\- Int64\(98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 84 AS col0, 49 * - + 98 AS col0 +---- +-4802 +84 query I rowsort SELECT ALL - 55 col1 @@ -20732,8 +20825,11 @@ SELECT DISTINCT - 94 * MAX ( DISTINCT - 43 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(79\)\) AS col0" at position 0 and "Int64\(82\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( 79 ) AS col0, 82 + + + COUNT ( * ) col0 +---- +-79 +83 query I rowsort label-4031 SELECT SUM ( - + 46 ) AS col2 @@ -20783,8 +20879,11 @@ SELECT ALL - 76 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 30 AS col1, + 59 AS col1 +---- +30 +59 query I rowsort label-4041 SELECT ALL + 81 * - COUNT ( * ) AS col1 @@ -22175,8 +22274,11 @@ SELECT DISTINCT - + 67 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 AS col2, - CAST ( NULL AS INTEGER ) AS col2 +---- +-48 +NULL query II rowsort SELECT - 99 AS col1, + ( - 4 ) @@ -22347,8 +22449,11 @@ SELECT 18 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 76 AS col2, + 31 AS col2 +---- +31 +76 query I rowsort SELECT - NULLIF ( - 1, 29 ) AS col0 @@ -23404,8 +23509,11 @@ SELECT ALL - ( 84 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 111 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-5\)\) AS col2" at position 0 and "Int64\(17\) \- min\(Int64\(\-94\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 5 AS col2, + 17 - MIN ( - 94 ) AS col2 +---- +111 +5 query I rowsort SELECT DISTINCT ( + + 85 ) AS col1 @@ -25546,8 +25654,11 @@ SELECT SUM ( + 12 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 AS col2, + 97 AS col2 +---- +16 +97 query I rowsort label-4965 SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) @@ -25710,8 +25821,11 @@ SELECT - 43 AS col1, 63 * - + ( 5 ) + 47 # 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 "Int64\(54\) AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 54 AS col2, 65 AS col2 +---- +54 +65 query I rowsort label-4996 SELECT DISTINCT - 49 / 10 AS col2 @@ -26480,8 +26594,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, - COUNT ( * ) col1 +---- +-1 +-1 query II rowsort SELECT - 76, 30 AS col0 @@ -26553,8 +26670,11 @@ SELECT ALL 19 + + 2 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) AS col1, - COUNT ( * ) AS col1 +---- +-1 +1 query I rowsort SELECT - ( 5 ) AS col1 @@ -26682,8 +26802,11 @@ SELECT DISTINCT - 34 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 102258 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col0" at position 0 and "Int64\(26\) \* Int64\(69\) \* Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 86 AS col0, 26 * + + 69 * 57 AS col0 +---- +-86 +102258 query I rowsort SELECT ALL - NULLIF ( 20, ( - 36 ) ) @@ -27826,8 +27949,11 @@ SELECT ALL - + COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(Int64\(84\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, + CAST ( + 84 AS INTEGER ) AS col2 +---- +1 +84 query I rowsort SELECT ALL 70 - - 26 + + - 75 col2 @@ -28193,8 +28319,11 @@ SELECT ALL 23 AS col0, 2 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, 54 AS col1 +---- +1 +54 query I rowsort label-5483 SELECT ALL + COUNT ( + 2 ) @@ -28381,8 +28510,11 @@ SELECT DISTINCT - 5 * 16 # 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 col0" at position 0 and "\(\- count\(Int64\(\-18\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 66 col0, - COUNT ( - 18 ) AS col0 +---- +-1 +66 query II rowsort SELECT ALL + 30 col1, + 69 @@ -28869,8 +29001,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 68 AS col0, 14 AS col0 +---- +14 +68 query II rowsort label-5616 SELECT ALL 26 AS col2, - COUNT ( * ) AS col1 @@ -29234,8 +29369,11 @@ SELECT DISTINCT SUM ( - - 10 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 AS col1, + COUNT ( * ) AS col1 +---- +1 +2 query I rowsort SELECT ALL + 98 col0 @@ -29466,8 +29604,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 / + 74 col0, - ( + COUNT ( * ) ) AS col0 +---- +-1 +1 query I rowsort SELECT DISTINCT + + 38 AS col0 @@ -29548,8 +29689,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 75 AS col0, + 19 col2, + - COUNT ( * ) AS col0 +---- +-1 +19 +75 query I rowsort label-5748 SELECT - MIN ( - - 77 ) AS col2 @@ -30027,8 +30172,11 @@ SELECT ALL + - 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + COUNT ( * ) ) col0, 51 AS col0 +---- +1 +51 query I rowsort label-5842 SELECT DISTINCT - - CAST ( + 74 AS INTEGER ) AS col2 @@ -30094,8 +30242,11 @@ SELECT ALL 83 * + 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT \(\- Int64\(99\)\)\)\) AS col1" at position 0 and "Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + SUM ( DISTINCT - + 99 ) AS col1, - 61 col1 +---- +-61 +99 query I rowsort SELECT DISTINCT - + 30 AS col1 @@ -30196,8 +30347,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - COUNT ( * ) col1, - 85 AS col1 +---- +-1 +-85 query I rowsort label-5874 SELECT ALL + ( - SUM ( + + 84 ) ) AS col1 @@ -31302,8 +31456,11 @@ SELECT ALL 94 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(51\) \+ \(\- CAST\(Int64\(9\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - COUNT ( * ) AS col2, 51 + - CAST ( + 9 AS INTEGER ) AS col2 +---- +-1 +42 query I rowsort label-6091 SELECT - ( + ( + CAST ( NULL AS INTEGER ) ) ) AS col2 @@ -31971,8 +32128,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 9 ) AS col1, - COUNT ( * ) AS col1 +---- +-1 +9 query I rowsort SELECT ALL - 22 * - 40 + 48 AS col0 @@ -33682,8 +33842,11 @@ SELECT - 53 * - 94 * - - 33 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7854 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(42\) \* Int64\(\-11\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 * 42 * - 11 AS col0, CAST ( NULL AS INTEGER ) AS col0 +---- +-7854 +NULL query I rowsort label-6555 SELECT - CAST ( MIN ( DISTINCT - + 30 ) AS INTEGER ) @@ -33834,8 +33997,11 @@ SELECT - - 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-70\) AS Int32\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - 70 AS INTEGER ) AS col1, ( + CAST ( NULL AS INTEGER ) ) AS col1 +---- +-70 +NULL query I rowsort label-6585 SELECT ( - ( + COUNT ( * ) ) ) AS col1 @@ -33907,8 +34073,11 @@ NULL # 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\(22\) AS col1" at position 0 and "\(\- Int64\(6\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 22 AS col1, - ( 6 ) col1 +---- +-6 +22 query I rowsort label-6599 SELECT - MIN ( - - 60 ) @@ -34009,8 +34178,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(61\) \+ Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 AS col0, COUNT ( * ) + 61 + + 89 AS col0 +---- +12 +151 query I rowsort SELECT + + 6 AS col1 @@ -34165,8 +34337,11 @@ SELECT + NULLIF ( - 51, - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col1" at position 0 and "Int64\(87\) \+ \(\- Int64\(92\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 41 col1, 87 + + - ( + 92 ) * + COUNT ( * ) AS col1 +---- +-41 +-5 query I rowsort label-6649 SELECT + COUNT ( * ) * 7 @@ -34944,8 +35119,12 @@ SELECT ALL MAX ( 61 ) col2 # Datafusion - Expected - 92 # Datafusion - Expected - 73 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col0" at position 0 and "Int64\(\-81\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 92 AS col0, + 73, - 81 AS col0 +---- +-81 +73 +92 query I rowsort SELECT DISTINCT + - 91 @@ -36142,8 +36321,11 @@ SELECT ALL 95 AS col0, 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- CAST\(Int64\(\-57\) AS Int32\)\)\)\) AS col2" at position 0 and "Int64\(\-61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( ALL - CAST ( + - 57 AS INTEGER ) ) AS col2, - 61 AS col2 +---- +-1 +-61 query I rowsort label-7034 SELECT DISTINCT ( + COUNT ( * ) ) @@ -36203,8 +36385,11 @@ SELECT ALL CAST ( 13 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "Int64\(\-90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 4 AS col2, - 90 AS col2 +---- +-90 +4 query I rowsort SELECT ALL + - 29 @@ -36332,8 +36517,11 @@ SELECT 93 + + 65 AS col0 # 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 "Int64\(\-90\) AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 AS col2, + 74 AS col2 +---- +-90 +74 query I rowsort SELECT ( 60 ) AS col2 @@ -36393,8 +36581,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) col0, 12 AS col0 +---- +-1 +12 query I rowsort label-7083 SELECT - COUNT ( * ) * CAST ( + 19 AS INTEGER ) @@ -36474,8 +36665,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * - COUNT ( * ) * - 26 * - MIN ( DISTINCT 91 ) AS col0, 3 AS col0 +---- +-2366 +3 query I rowsort SELECT ALL + ( - - 42 ) @@ -36556,8 +36750,11 @@ SELECT ALL - CAST ( + 41 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 71 AS col2, COUNT ( * ) AS col2 +---- +-71 +1 query I rowsort label-7114 SELECT - MIN ( DISTINCT 79 ) @@ -37819,8 +38016,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 44 - - COUNT ( * ) col2, 18 col2 +---- +-43 +18 query I rowsort SELECT ALL + ( - 58 ) @@ -39078,8 +39278,11 @@ SELECT ALL + 82 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 AS col1, + 4 AS col1 +---- +4 +41 query I rowsort SELECT DISTINCT - - 15 AS col0 @@ -39149,8 +39352,11 @@ SELECT DISTINCT 26 * - COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + COUNT ( * ) AS col1, COUNT ( * ) AS col1 +---- +1 +1 query II rowsort label-7619 SELECT DISTINCT + 23 AS col1, CAST ( - + 38 AS INTEGER ) @@ -39305,8 +39511,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, + 49 col2 +---- +1 +49 query I rowsort label-7649 SELECT CASE COUNT ( * ) WHEN + - COUNT ( * ) - COUNT ( * ) THEN NULL ELSE + 45 END @@ -39710,8 +39919,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col2, - 16 AS col2 +---- +-16 +NULL query I rowsort SELECT + - 36 AS col0 @@ -39822,8 +40034,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 col1, - COUNT ( * ) AS col1 +---- +-1 +25 query I rowsort SELECT + 0 AS col2 @@ -40047,8 +40262,11 @@ SELECT COUNT ( * ) * - 92 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, ( - 24 ) AS col1 +---- +-24 +1 query I rowsort label-7794 SELECT + COUNT ( * ) * 5 @@ -40664,8 +40882,11 @@ SELECT DISTINCT + + 70 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 81 AS col1, 60 AS col1 +---- +60 +81 query I rowsort label-7914 SELECT DISTINCT + ( + - COUNT ( * ) ) AS col2 @@ -41753,8 +41974,12 @@ SELECT 71 * 4 # Datafusion - Expected - NULL # Datafusion - Expected - 77 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT CAST ( NULL AS INTEGER ) AS col2, 77 AS col2, - 84 * - COUNT ( * ) AS col2 +---- +77 +84 +NULL query I rowsort SELECT 26 col1 @@ -42391,8 +42616,11 @@ SELECT DISTINCT - COUNT ( * ) * - 22 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(79\)\) AS Int32\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - + 79 AS INTEGER ) AS col0, 93 AS col0 +---- +-79 +93 query I rowsort label-8247 SELECT + COUNT ( ALL 71 ) @@ -42462,8 +42690,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(\-47\)\)\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( - 47 ) AS col2, + 99 AS col2 +---- +-1 +99 query I rowsort SELECT ALL + 77 col2 @@ -43136,8 +43367,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-58\)\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( - 58 ) AS col2, + 55 AS col2 +---- +-58 +55 query I rowsort label-8393 SELECT DISTINCT MAX ( - + 67 ) * + 27 AS col2 @@ -43304,8 +43538,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, 90 AS col2 +---- +-1 +90 query I rowsort label-8425 SELECT DISTINCT + ( + COUNT ( * ) ) col0 @@ -43442,8 +43679,11 @@ SELECT ALL COUNT ( * ) + - 71 + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- Int64\(22\)\)\)\) AS col0" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - MIN ( ALL - + 22 ) AS col0, - CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 +---- +1 +22 query I rowsort label-8451 SELECT ALL - ( MAX ( ALL + 60 ) ) + - 34 @@ -43513,8 +43753,11 @@ SELECT DISTINCT 61 AS col2, - 68 * 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 81 AS col0, CAST ( NULL AS INTEGER ) AS col0 +---- +81 +NULL query I rowsort label-8464 SELECT CAST ( + 19 AS INTEGER ) @@ -43828,8 +44071,11 @@ SELECT - - 53 * - - 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, + 90 AS col1 +---- +1 +90 query I rowsort label-8526 SELECT ALL COUNT ( * ) * 95 * + ( + + ( COUNT ( * ) ) ) * + - COUNT ( * ) * + - ( - 71 ) @@ -45326,8 +45572,11 @@ SELECT + ( 33 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - COUNT ( * ) ) AS col0, COUNT ( * ) col0 +---- +-1 +1 query II rowsort label-8818 SELECT ALL + COUNT ( * ) AS col2, 32 @@ -45844,8 +46093,11 @@ SELECT 82 + + - 3 AS col1 # 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 "Int64\(32\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 32 col1, + 88 AS col1 +---- +32 +88 query I rowsort SELECT ALL 86 AS col1 @@ -46595,8 +46847,11 @@ SELECT - 35 * + 86 AS col1, 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 28 + + COUNT ( * ) AS col1, + COUNT ( * ) AS col1 +---- +1 +29 query I rowsort label-9067 SELECT + COUNT ( * ) * 2 @@ -46695,8 +46950,11 @@ SELECT + COUNT ( + 1 ) AS col2 # 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 "Int64\(52\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 52 AS col0, 49 AS col0 +---- +49 +52 query I rowsort label-9086 SELECT + COUNT ( * ) + + + 43 AS col2 @@ -46762,8 +47020,11 @@ SELECT ALL ( + 6 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 5 col1, 2 AS col1 +---- +-5 +2 query I rowsort SELECT + COALESCE ( - 41, + 47 ) col1 @@ -48009,8 +48270,11 @@ SELECT DISTINCT 8 AS col0, - 98 + - 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 16 AS col0, + 10 AS col0 +---- +10 +16 query I rowsort SELECT - 1 + + 83 @@ -49477,8 +49741,11 @@ SELECT + 30 - + ( 96 ) + - - 91 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-70\) AS Int32\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - 70 AS INTEGER ) AS col2, + 0 AS col2 +---- +-70 +0 query I rowsort label-9625 SELECT ALL - 22 / + 46 * - - COUNT ( * ) + - - 79 @@ -49573,8 +49840,11 @@ SELECT DISTINCT 77 / - 82 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "Int64\(50\) \+ Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 82 AS col0, 50 + + + 5 col0 +---- +55 +82 query I rowsort SELECT + 70 * + 62 AS col1 @@ -49859,8 +50129,11 @@ SELECT ALL ( + 70 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col1" at position 0 and "Int64\(\-96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 22 col1, - 96 AS col1 +---- +-22 +-96 query I rowsort label-9699 SELECT + COUNT ( * ) * + ( - 80 ) * - MIN ( + 21 ) - + + 64 * + + 50 * MAX ( DISTINCT + 22 ) @@ -49955,8 +50228,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 68 AS col0, - COUNT ( * ) AS col0 +---- +-1 +-68 query I rowsort label-9717 SELECT ALL 70 + - 13 + - + COUNT ( * ) + + - COUNT ( * ) + + 81 * + 17 * - - 4 + MAX ( ALL 39 ) AS col2 @@ -49991,8 +50267,11 @@ 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\(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\. +query II valuesort 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 +---- +340 +NULL query I rowsort SELECT NULLIF ( + 35, - 64 ) * - ( + - 42 ) + 48 col1 @@ -50348,8 +50627,11 @@ SELECT ALL + 78 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -536 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col2" at position 0 and "Int64\(\-66\) \+ Int64\(22\) \+ max\(\(\- Int64\(\-82\)\)\) \* Int64\(\-6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 20 col2, - 66 + + 22 + MAX ( - - 82 ) * - 6 AS col2 +---- +-536 +20 query I rowsort SELECT ALL + ( - 34 ) @@ -50658,8 +50940,11 @@ 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\(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\. +query II valuesort SELECT - CASE - 95 WHEN + COUNT ( * ) + + COUNT ( * ) THEN 85 END col1, - 35 * + 83 AS col1 +---- +-2905 +NULL query I rowsort SELECT - - 4 AS col1 @@ -51040,8 +51325,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 98 * + 42 * - 81 AS col2, - COUNT ( * ) AS col2 +---- +-1 +-333396 query I rowsort SELECT DISTINCT + 49 + - 58 AS col2 diff --git a/data/sqlite/random/expr/slt_good_33.slt b/data/sqlite/random/expr/slt_good_33.slt index cb1e27f..f00de0f 100644 --- a/data/sqlite/random/expr/slt_good_33.slt +++ b/data/sqlite/random/expr/slt_good_33.slt @@ -116,8 +116,11 @@ SELECT - 68 * + 26 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3381 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) \* Int64\(49\) AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 69 * + 49 col1, + 43 AS col1 +---- +-3381 +43 query I rowsort label-16 SELECT - 21 * COUNT ( * ) @@ -257,8 +260,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 29 / + CASE + + CAST ( + 12 AS FLOAT8 ) WHEN + 86 THEN + 42 + - + 23 END * COALESCE ( COUNT ( * ), COUNT ( * ) ) + + 78 AS col1, 17 AS col1 +---- +17 +NULL query II rowsort label-43 SELECT + - 65 - + 77 + - + 90, - CASE - - 76 WHEN - + 29 + - MAX ( DISTINCT + 58 ) THEN NULL WHEN - 61 - + - 38 * + 37 THEN CAST ( NULL AS INTEGER ) - + - 57 + - 27 WHEN - 80 THEN - 18 END * - + MAX ( ALL 80 ) + + + 22 AS col1 @@ -532,8 +538,11 @@ SELECT 31 * - - 29 * - - 32 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col1" at position 0 and "Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 AS col1, - 82 AS col1 +---- +-82 +72 query I rowsort label-95 SELECT ALL ( - - 12 ) + - COUNT ( * ) * 18 @@ -1202,8 +1211,11 @@ SELECT ALL + 97 - + 93 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 159 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col0" at position 0 and "Int64\(90\) \+ Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 AS col0, 90 + 69 col0 +---- +159 +31 query I rowsort SELECT + 43 col1 @@ -1657,8 +1669,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 27 + + 33 + + 39 AS col2, + 56 + - 14 + 49 * - 37 * - COUNT ( * ) AS col2 +---- +1855 +99 query I rowsort label-313 SELECT ALL 96 / 18 @@ -1869,8 +1884,11 @@ SELECT DISTINCT + COALESCE ( - 78, + - COUNT ( ALL + CASE - - CAST ( NULL AS INT # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1825 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(39\) \+ Int64\(94\) \* Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col0, + 39 + + 94 * 19 AS col0 +---- +1825 +NULL query I rowsort label-354 SELECT + ( + + 6 ) / + + 42 + - 9 + - - COUNT ( * ) col2 @@ -1933,8 +1951,11 @@ SELECT DISTINCT + + 35 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 95 AS col1, 26 AS col1 +---- +-95 +26 query I rowsort label-366 SELECT ALL + + MAX ( ALL + - 84 ) @@ -1959,8 +1980,11 @@ SELECT - - 35 * COUNT ( * ) * 93 - + - SUM ( ALL 66 ) * 4 + - COUNT ( * ) AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(10\)\) AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 10 AS col0, 27 AS col0 +---- +-10 +27 query II rowsort label-371 SELECT ALL - - COUNT ( * ) AS col2, + 41 col0 @@ -2307,8 +2331,12 @@ SELECT 90 + 24 # Datafusion - Expected - 22 # Datafusion - Expected - -8 # Datafusion - Expected - -247 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "\(\- max\(\(\- Int64\(45\)\)\)\) \+ Int64\(4\) \* Int64\(\-73\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 22 AS col1, ( + MIN ( ALL - 8 ) ), - + MAX ( ALL + ( - + 45 ) ) + + 4 * - 73 AS col1 +---- +-247 +-8 +22 query I rowsort SELECT DISTINCT + ( + + 41 ) AS col2 @@ -3083,8 +3111,11 @@ SELECT ALL + COUNT ( DISTINCT + 20 ) # 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 "\(\- \(\- coalesce\(Int64\(29\), Int64\(\-15\), Int64\(55\) \* Int64\(\-71\)\)\)\) 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 II valuesort SELECT - - COALESCE ( + 29, - 15, 55 * - 71 ) AS col0, - COUNT ( - 53 ) AS col0 +---- +-1 +29 query I rowsort SELECT DISTINCT - 40 + - 21 * + + 11 AS col1 @@ -3545,8 +3576,11 @@ SELECT + 34 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 101 # Datafusion - Expected - 7462 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ Int64\(68\) AS col2" at position 0 and "Int64\(82\) \* Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 + + 68 AS col2, + 82 * 91 AS col2 +---- +101 +7462 query I rowsort label-671 SELECT + MAX ( 86 ) AS col0 @@ -3966,8 +4000,11 @@ SELECT ALL ( - - 64 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \+ Int64\(55\) AS col0" at position 0 and "Int64\(17\) \+ \(\- Int64\(51\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 9 + + 55 col0, + 17 + - + 51 AS col0 +---- +-34 +64 query I rowsort label-752 SELECT - 25 / - 85 @@ -4148,8 +4185,11 @@ SELECT ALL + 5 * - SUM ( + 34 ) * + 95 + + - 92 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 73 AS col0, COUNT ( * ) AS col0 +---- +1 +73 query I rowsort SELECT ALL 24 col2 @@ -4237,8 +4277,11 @@ SELECT DISTINCT - - ( - 9 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(42\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, 42 * - COUNT ( * ) AS col0 +---- +-42 +NULL query I rowsort SELECT ALL + + 91 + + 83 @@ -4732,8 +4775,11 @@ SELECT - - 13 AS col2, + COUNT ( 92 ) / + CAST ( 18 AS INTEGER ) - 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3855 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \* Int64\(\-94\) \+ count\(Int64\(53\)\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 41 * - 94 + COUNT ( + + 53 ) AS col1, 92 AS col1 +---- +3855 +92 query I rowsort label-899 SELECT ALL 80 / + - COUNT ( * ) AS col0 @@ -4978,8 +5024,11 @@ SELECT ALL 79 * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1404 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* Int64\(6\) \* Int64\(\-13\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 * 6 * - 13 AS col0, 92 AS col0 +---- +-1404 +92 query I rowsort label-946 SELECT ALL - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) * + ( MIN ( + 85 ) ) * + - COUNT ( DISTINCT + 23 ) + - 80 AS col0 @@ -5401,8 +5450,11 @@ 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\(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\. +query II valuesort 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 +---- +40325 +NULL query I rowsort SELECT DISTINCT + 83 + 26 @@ -5544,8 +5596,11 @@ SELECT ALL COUNT ( * ) + - + 5 * - 61 + - CAST ( - 17 AS INTEGER ) AS col0, + CO # Datafusion - Datafusion expected results: # Datafusion - Expected - -2206 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \* Int64\(93\) \- Int64\(\-26\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 24 * + 93 - + - 26 AS col0, + 30 AS col0 +---- +-2206 +30 query I rowsort SELECT ALL 92 col2 @@ -5602,8 +5657,11 @@ SELECT DISTINCT 90 - 35 + - 30 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ CASE Int64\(\-75\) WHEN \(\- min\(DISTINCT Int64\(12\)\)\) \* Int64\(57\) THEN \(\- Int64\(7\)\) END \+ Int64\(\-30\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 + CASE - 75 WHEN - MIN ( DISTINCT + 12 ) * + + 57 THEN ( - + 7 ) END + - 30 AS col0, + COUNT ( * ) AS col0 +---- +1 +NULL query II rowsort label-1066 SELECT 59 * CAST ( + ( 71 ) AS INTEGER ) AS col2, + 38 AS col1 @@ -5635,8 +5693,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) col2, - 71 / - 28 AS col2 +---- +-1 +2 query I rowsort SELECT + 84 col0 @@ -6162,8 +6223,11 @@ SELECT + - COUNT ( ALL 32 ) * + 77 * 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "CAST\(Int64\(\-34\) AS Int32\) \+ Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 AS col2, + ( + + CAST ( + - 34 AS INTEGER ) ) + 0 AS col2 +---- +-34 +17 query I rowsort SELECT DISTINCT 67 * - + ( - + ( - + 99 ) ) @@ -6786,8 +6850,11 @@ SELECT + - ( 58 ) * + + 96 + + 28 / 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1500 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* Int64\(\-30\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 50 * - 30 AS col2, + 82 AS col2 +---- +-1500 +82 query I rowsort label-1292 SELECT ALL + 76 * - CAST ( + - CASE 40 WHEN 19 / - + 36 + - 96 + + 33 + + MAX ( ALL + 60 ) + COUNT ( * ) + 73 * + - COALESCE ( 42, - - 83 ) / - COUNT ( 57 ) THEN - 44 * + 51 WHEN - CAST ( NULL AS INTEGER ) THEN NULL END AS INTEGER ) * + ( COUNT ( * ) ) + 40 @@ -7253,8 +7320,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-98\), Int64\(5\) \+ coalesce\(count\(DISTINCT Int64\(\-61\)\), Int64\(\-95\) \+ CAST\(NULL AS Int32\) / Int64\(\-26\) \+ Int64\(\-88\)\) \+ Int64\(\-57\) \+ Int64\(56\)\) \+ \(\- count\(Int64\(\-69\)\)\) \+ CAST\(Int64\(20\) AS Int32\) / Int64\(98\) \* Int64\(21\) \- Int64\(\-56\) AS col0" at position 0 and "Int64\(\-13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( - 98, + 5 + + COALESCE ( COUNT ( DISTINCT - 61 ), + - 95 + CAST ( NULL AS INTEGER ) / ( - 26 ) + - 88 ) + - 57 + 56 ) + + - COUNT ( + - 69 ) + + CAST ( + + 20 AS INTEGER ) / 98 * + 21 - - 56 AS col0, - 13 AS col0 +---- +-13 +-43 query I rowsort SELECT ALL - 51 AS col1 @@ -7357,8 +7427,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) - 43 AS col1, - 35 * 51 AS col1 +---- +-1785 +-44 query I rowsort SELECT ALL - - 91 * 89 * - 19 @@ -7373,8 +7446,11 @@ SELECT - + 12 * - - 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - -320731 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \* Int64\(\-74\) \* Int64\(\-51\) \+ Int64\(59\) AS col0" at position 0 and "Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 85 * - 74 * - 51 + 59 AS col0, - 65 AS col0 +---- +-320731 +-65 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -7631,8 +7707,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 78 AS col1, 80 AS col1 +---- +-78 +80 query I rowsort label-1453 SELECT ALL - + 32 + ( - + COUNT ( * ) ) @@ -7914,8 +7993,11 @@ SELECT - 91, 60 * + - 2 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 92 AS col0, 96 AS col0 +---- +92 +96 query II rowsort label-1508 SELECT ALL 43 AS col2, 3 * - - CASE - ( + 62 ) WHEN + - 14 * - - 87 THEN NULL WHEN - 73 * 66 * + CAST ( 57 AS INTEGER ) THEN - 12 END * - 52 * + 68 @@ -8050,8 +8132,11 @@ SELECT 68 * 89 / ( + + 9 ) + - ( - CAST ( COUNT ( * ) AS INTEGER ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 AS col2, 23 AS col2 +---- +-55 +23 query I rowsort label-1534 SELECT - 61 * - 2 + - ( + 95 ) - - - 39 * - 69 * SUM ( ALL + 71 ) AS col0 @@ -8164,8 +8249,11 @@ SELECT DISTINCT - 50 * NULLIF ( + + 83, - COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44768 # Datafusion - Expected - 145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(19\), sum\(\(\- Int64\(74\)\)\)\)\) \* Int64\(\-84\) \* \(\- Int64\(28\)\) \+ coalesce\(Int64\(\-80\), Int64\(34\)\) AS col0" at position 0 and "Int64\(81\) \- \(\- Int64\(6\)\) \+ Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - NULLIF ( + 19, SUM ( - + 74 ) ) * - 84 * - + 28 + + + COALESCE ( - 80, + 34 ) AS col0, + 81 - - ( + 6 ) + + 58 AS col0 +---- +-44768 +145 query I rowsort label-1555 SELECT - COALESCE ( - MIN ( DISTINCT - + 42 ), 94 / + 66 / + + COUNT ( * ) ) AS col1 @@ -8410,8 +8498,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) col1, 78 AS col1 +---- +-1 +78 query I rowsort SELECT - ( + - 91 ) col0 @@ -8457,8 +8548,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 AS col2, - COUNT ( * ) * + 27 AS col2 +---- +-27 +80 query I rowsort SELECT DISTINCT 80 + 31 + + 48 + 28 * - 62 * 1 * - + ( 79 ) + + - 59 AS col1 @@ -8615,8 +8709,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- Int64\(69\)\)\)\) AS col0" at position 0 and "Int64\(8\) \+ min\(DISTINCT Int64\(\-43\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MIN ( - + 69 ) AS col0, 8 + MIN ( DISTINCT - 43 ) AS col0 +---- +-35 +69 query II rowsort SELECT 25 + + - 30, - 18 + 29 * - + 2 AS col2 @@ -8959,8 +9056,11 @@ SELECT + 56 * COUNT ( DISTINCT 72 ) AS col2, 84 + - 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \- \(\- Int64\(2\)\) \* \(\- Int64\(\-2\)\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 - - + 2 * - - 2 AS col0, 36 AS col0 +---- +36 +95 query I rowsort label-1705 SELECT ( - + CASE - - ( 43 ) WHEN 34 THEN - 13 * + - 40 - 6 WHEN COUNT ( - + 76 ) + + 0 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END ) * + 8 / - 12 - + 77 + + 2 * 47 AS col2 @@ -9782,8 +9882,11 @@ SELECT DISTINCT - 53 * + + SUM ( - 57 ) / + COUNT ( * ) - + 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(15\)\) AS col0" at position 0 and "Int64\(\-33\) \+ Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 15 AS col0, ( + - 33 ) + - 56 AS col0 +---- +-15 +-89 query I rowsort label-1864 SELECT DISTINCT - + 63 + + MAX ( + 98 ) @@ -12398,8 +12501,11 @@ SELECT ALL + 16 * 11 + 44 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-90\) AS Int32\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - 90 AS INTEGER ) AS col2, + 87 AS col2 +---- +-90 +87 query I rowsort label-2367 SELECT - CASE - 78 WHEN - 7 * - - 60 + - 48 THEN ( 51 ) * - + 0 * + 21 ELSE COUNT ( * ) + - + COUNT ( 75 ) END + - 80 @@ -12554,8 +12660,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 AS col2, COUNT ( * ) * + 86 col2 +---- +86 +98 query I rowsort label-2398 SELECT COALESCE ( - 51, - 19 ) - + CAST ( 57 AS INTEGER ) / + 80 * + COUNT ( * ) * 89 AS col0 @@ -12577,8 +12686,11 @@ SELECT ALL - 28 AS col2, - 59 # 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 "Int64\(89\) \+ Int64\(\-88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 99 AS col0, 89 + ( - 88 ) AS col0 +---- +-99 +1 query I rowsort label-2402 SELECT CASE - 49 WHEN - - CAST ( NULL AS INTEGER ) * - AVG ( - CAST ( NULL AS INTEGER ) ) * - - NULLIF ( + COALESCE ( 68, - COUNT ( * ) ), + 8 ) * + 67 + - + 36 + + COUNT ( * ) THEN NULLIF ( - 93, 82 ) / + 21 - MAX ( ALL + 74 ) ELSE NULL END - - 56 col1 @@ -12673,8 +12785,11 @@ SELECT 50 / 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - CAST ( NULL AS INTEGER ) AS col2, + 78 AS col2 +---- +78 +NULL query I rowsort SELECT 27 + - ( 98 ) AS col1 @@ -13526,8 +13641,11 @@ SELECT ALL - COUNT ( * ) * - 49 + + 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 AS col2, + 58 AS col2 +---- +48 +58 query I rowsort SELECT + 76 + - + 62 AS col1 @@ -13607,8 +13725,11 @@ SELECT + 72, 10 + - + 93 * - NULLIF ( + ( - 41 ), - 47 ) + + - 59 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -383 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \* Int64\(7\) \+ Int64\(58\) AS col0" at position 0 and "CASE coalesce\(avg\(DISTINCT \(\- \(\- Int64\(88\)\)\)\), Int64\(69\)\) WHEN Int64\(\-58\) THEN Int64\(60\) END \+ Int64\(\-66\) \- \(\- CAST\(NULL AS Int32\)\) \+ coalesce\(Int64\(\-9\), CASE coalesce\(Int64\(10\), Int64\(21\), count\(Int64\(1\)\) AS count\(\*\)\) WHEN coalesce\(Int64\(\-68\), Int64\(87\) \+ Int64\(76\) \* CASE Int64\(6\) / Int64\(\-80\) WHEN Int64\(59\) \+ \(\- nullif\(Int64\(73\) \- Int64\(15\) / Int64\(22\), Int64\(78\) \+ \(\- sum\(Int64\(74\) \+ CAST\(NULL AS Int32\)\)\)\)\) \* Int64\(\-85\) THEN Int64\(57\) \* Int64\(93\) \+ coalesce\(Int64\(\-38\), Int64\(3\)\) \* Int64\(\-43\) WHEN Int64\(78\) \+ \(\- Int64\(44\) \+ Int64\(49\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN NULL END, Int64\(33\) \* Int64\(\-56\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(76\), Int64\(\-93\) \* Int64\(\-36\)\) \+ \(\- Int64\(87\) \+ Int64\(11\)\) \* Int64\(96\) THEN Int64\(\-37\) ELSE count\(Int64\(1\)\) AS count\(\*\) / Int64\(78\) END \* Int64\(57\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-383 +NULL query I rowsort label-2597 SELECT 92 * + - CAST ( - 89 AS INTEGER ) * - ( 30 ) + - 98 + + COUNT ( + 88 ) + + + 81 + + COUNT ( * ) @@ -14057,8 +14178,11 @@ SELECT ( 61 ) + + + 80 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 81 col2, 72 AS col2 +---- +72 +81 query II rowsort SELECT - 34, 67 * - + 59 * + 52 AS col1 @@ -14228,8 +14352,11 @@ SELECT - - 78 + + 76 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 1045 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(19\) \* Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 47 AS col2, 19 * + + 55 AS col2 +---- +1045 +47 query II rowsort label-2716 SELECT ALL COALESCE ( - NULLIF ( - 34, - COALESCE ( + 83, 8, + 69 ) ), - + 75 + COUNT ( ALL - 73 ) ) AS col0, - 90 + CAST ( COUNT ( * ) AS INTEGER ) + - 53 AS col2 @@ -15152,8 +15279,11 @@ SELECT - - 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 77 col0, 38 col0 +---- +38 +77 query I rowsort label-2892 SELECT + 24 * 1 * + COUNT ( * ) AS col2 @@ -15215,8 +15345,11 @@ SELECT ALL MIN ( DISTINCT - - 52 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 40 + + COUNT ( * ) AS col1, 75 AS col1 +---- +41 +75 query I rowsort label-2904 SELECT ALL - 8 + - COUNT ( * ) + 2 * - 44 AS col0 @@ -15492,8 +15625,11 @@ SELECT ALL - 25 col0 # 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\(\-35\) AS col0" at position 0 and "Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 35 AS col0, 44 AS col0 +---- +-35 +44 query I rowsort SELECT ALL + - 80 * - - 89 @@ -15549,8 +15685,12 @@ SELECT 76 / 55 AS col1 # Datafusion - Expected - 49 # Datafusion - Expected - -32 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col1" at position 0 and "Int64\(43\) \+ \(\- Int64\(75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 49 col1, + 43 + - + ( + 75 ) AS col1, + - 26 AS col0 +---- +-26 +-32 +49 query I rowsort SELECT ALL - + 75 + + + 61 + + 94 * + 68 @@ -15717,8 +15857,11 @@ SELECT DISTINCT COUNT ( * ) * 41 / + 90 + + 87 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1942 # Datafusion - Expected - 154 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) \* Int64\(\-38\) \- Int64\(34\) \+ Int64\(83\) \+ Int64\(48\) \+ Int64\(46\) \+ Int64\(51\) AS col2" at position 0 and "Int64\(78\) \+ \(\- Int64\(\-76\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 46 * - 38 - + 34 + + + 83 + 48 + + + 46 + 51 col2, + 78 + - - 76 AS col2 +---- +154 +1942 query I rowsort SELECT ALL + 32 * - 40 - - 17 AS col0 @@ -16477,8 +16620,11 @@ SELECT - COUNT ( + 80 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "Int64\(\-29\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(30\) \* Int64\(\-17\) \* Int64\(8\) \- Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 AS col1, ( - 29 ) + + - CAST ( NULL AS INTEGER ) + + 30 * - 17 * 8 - 80 AS col1 +---- +88 +NULL query I rowsort SELECT + 10 * 88 AS col2 @@ -16529,8 +16675,12 @@ SELECT + - 7 * + 68 AS col1 # Datafusion - Expected - -34 # Datafusion - Expected - 19 # Datafusion - Expected - 6992 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(34\) AS Int32\)\) AS col0" at position 0 and "Int64\(\-38\) \* \(\- Int64\(46\)\) \* \(\- Int64\(\-4\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - CAST ( + ( + 34 ) AS INTEGER ) AS col0, 19 + + COUNT ( * ) / + - 84, - 38 * - ( + 46 ) * - - 4 AS col0 +---- +-34 +19 +6992 query I rowsort SELECT ( 48 ) @@ -16707,8 +16857,11 @@ SELECT + COUNT ( * ) + - 55 * + 81 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -1278 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(48\)\)\) AS col1" at position 0 and "Int64\(30\) \+ Int64\(72\) \+ Int64\(\-23\) \* Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( 48 ) AS col1, 30 + 72 + - 23 * + 60 AS col1 +---- +-1 +-1278 query I rowsort SELECT + ( - + 92 ) AS col1 @@ -16946,8 +17099,12 @@ SELECT 60, + 72 * + COUNT ( * ) + - COUNT ( * ) AS col0 # Datafusion - Expected - 80 # Datafusion - Expected - 0 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col0" at position 0 and "\(\- Int64\(\-4\)\) \- Int64\(75\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 80 AS col0, - 0, - - 4 - 75 AS col0 +---- +-71 +0 +80 query II rowsort SELECT ALL - 69, - 18 AS col1 @@ -17005,14 +17162,20 @@ SELECT ALL 56 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 col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 AS col0, 34 AS col0 +---- +14 +34 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(91\)\) AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 91 AS col0, 33 AS col0 +---- +-91 +33 query I rowsort label-3250 SELECT ALL - 25 + - CAST ( NULL AS INTEGER ) @@ -17434,8 +17597,11 @@ SELECT 8 - 72 * - - 62 * - CASE WHEN NOT ( NOT ( NOT NULL IS NULL ) ) THEN 23 EL # 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\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 87 AS col1, + 51 col1 +---- +51 +87 query I rowsort SELECT 54 - + ( 38 ) @@ -17556,8 +17722,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -163 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) \+ Int64\(\-71\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 + - 71 col2, 69 AS col2 +---- +-163 +69 query I rowsort SELECT + COALESCE ( - + 55, + 94 * - 43 ) AS col1 @@ -17918,8 +18087,11 @@ SELECT ALL + + 15, 64 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 270 # Datafusion - Expected - 3234 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* Int64\(5\) AS col2" at position 0 and "Int64\(\-42\) \* Int64\(\-77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 54 * 5 AS col2, - 42 * - 77 AS col2 +---- +270 +3234 query I rowsort label-3423 SELECT ALL ( - 7 ) * - + CASE + - COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE 88 END + - 51 + 21 * - - 3 @@ -18183,8 +18355,11 @@ SELECT - 61 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "Int64\(\-14\) \+ Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 13 col2, - 14 + 94 AS col2 +---- +13 +80 query II rowsort label-3474 SELECT - 14, NULLIF ( 70, 46 ) * 96 * - CAST ( - - ( - 54 ) AS INTEGER ) AS col2 @@ -18195,8 +18370,11 @@ SELECT - 14, NULLIF ( 70, 46 ) * 96 * - CAST ( - - ( - 54 ) AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "sum\(Int64\(\-94\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 15 AS col2, SUM ( - 94 ) AS col2 +---- +-94 +15 query I rowsort SELECT ALL 87 - + 47 AS col0 @@ -18219,8 +18397,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 24 AS col0, + 30 AS col0 +---- +24 +30 query I rowsort SELECT DISTINCT 76 AS col2 @@ -18378,8 +18559,11 @@ SELECT ALL 70 - 54 / + + 13 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(21\), Int64\(84\) \* Int64\(10\) / \(\- min\(\(\- CAST\(Int64\(13\) AS Int32\)\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COALESCE ( + 21, 84 * 10 / + - MIN ( + - CAST ( 13 AS INTEGER ) ) ) AS col0, + COUNT ( * ) * - + COUNT ( * ) * 24 AS col0 +---- +-24 +21 query I rowsort label-3510 SELECT 23 * CAST ( NULL AS INTEGER ) + + COUNT ( * ) - 91 AS col2 @@ -18767,8 +18951,11 @@ SELECT 77 * + 3 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \+ Int64\(53\) AS col1" at position 0 and "Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 + + 53 AS col1, - 61 AS col1 +---- +-61 +65 query I rowsort label-3584 SELECT + 69 * + + 89 * - + 63 * - CASE - 46 WHEN - + 72 THEN - 51 + - + 82 * - 17 * 29 + + 73 + + + 2 WHEN 5 + - COUNT ( * ) + + + 12 * + - 50 * - 84 THEN NULL END @@ -19015,8 +19202,12 @@ SELECT - 72 + + 78 * COUNT ( DISTINCT + 28 ) # Datafusion - Expected - -75 # Datafusion - Expected - -13775 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(75\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + ( 75 ) AS col1, + 19 * - - 25 * + - 29, COUNT ( * ) AS col1 +---- +-13775 +-75 +1 query I rowsort label-3632 SELECT + COUNT ( ALL + - 47 ) * - + 41 + - 38 AS col0 @@ -20197,8 +20388,11 @@ SELECT DISTINCT + 14 * 29 * + + 98 # 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 col2" at position 0 and "count\(Int64\(80\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 AS col2, COUNT ( + + 80 ) col2 +---- +1 +39 query I rowsort SELECT ALL + 81 - + 12 @@ -20835,8 +21029,11 @@ 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 "CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT 66 AS col2, CAST ( NULL AS FLOAT8 ) AS col2 +---- +66 +NULL query II rowsort SELECT + ( - 52 ) * - - 27 + 40 AS col1, - 23 @@ -21011,8 +21208,11 @@ SELECT 46 * + 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \* 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 II valuesort SELECT ALL - 23 * - 1 col2, 68 col2 +---- +23 +68 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -21081,8 +21281,11 @@ SELECT DISTINCT COUNT ( 56 ) + 32 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(33\) AS col2" at position 0 and "Int64\(44\) / \(\- Int64\(\-51\)\) / \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-79\) \+ Int64\(39\) \- Int64\(\-52\) \* Int64\(78\) \* Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) * + 33 AS col2, 44 / - - 51 / - CAST ( NULL AS INTEGER ) + - 79 + + 39 - - 52 * 78 * - 96 AS col2 +---- +NULL +NULL query I rowsort label-4032 SELECT ALL - 47 + + NULLIF ( - ( - CAST ( - CAST ( + CAST ( + 56 AS INTEGER ) AS INTEGER ) AS INTEGER ) ), + 85 * 96 ) * 56 @@ -21405,8 +21608,11 @@ SELECT DISTINCT + 50 * 65 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(4\)\) AS col0" at position 0 and "Int64\(\-44\) \+ \(\- CAST\(Int64\(98\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( + 4 ) AS col0, - 44 + - CAST ( 98 AS INTEGER ) AS col0 +---- +-142 +4 query I rowsort label-4094 SELECT ALL + CAST ( + 47 AS INTEGER ) @@ -21457,8 +21663,11 @@ SELECT DISTINCT 56 + - COUNT ( * ) + - + SUM ( DISTINCT + 26 ) / 30, + 20 AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - 7872 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* Int64\(82\) AS col1" at position 0 and "Int64\(81\) \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 96 * 82 AS col1, 81 + + CAST ( NULL AS INTEGER ) col1 +---- +7872 +NULL query I rowsort label-4104 SELECT ALL - 21 + + + CAST ( + - 18 AS INTEGER ) AS col0 @@ -21558,8 +21767,11 @@ SELECT 72 / + COUNT ( * ) + - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, - 33 AS col2 +---- +-33 +1 query I rowsort label-4123 SELECT - 86 * - 8 * + + COUNT ( * ) @@ -21727,8 +21939,11 @@ SELECT NULLIF ( + ( 29 ), - + COUNT ( * ) + 76 ) + + 49 # 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\(2\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 2 AS col1, 88 AS col1 +---- +2 +88 query II rowsort SELECT DISTINCT 53 AS col0, 12 + + 33 AS col1 @@ -21982,8 +22197,12 @@ NULL # Datafusion - Expected - 91 # Datafusion - Expected - -62 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 91 * + COUNT ( * ) AS col1, - 62 AS col1, MAX ( ALL - + 72 ) +---- +-62 +-72 +91 query I rowsort label-4202 SELECT CAST ( + + 45 AS INTEGER ) + 58 * 28 + ( + 35 ) @@ -22036,8 +22255,11 @@ 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\(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\. +query II valuesort SELECT + - ( - COALESCE ( + - MIN ( - 54 ), COUNT ( * ) * - + 27 + - 13 ) ) AS col0, 74 AS col0 +---- +54 +74 query I rowsort SELECT + 90 + - - ( + 20 ) @@ -22115,8 +22337,11 @@ SELECT DISTINCT + 22 + + 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 AS col1, 36 AS col1 +---- +36 +36 query I rowsort SELECT ALL 33 + - 21 AS col0 @@ -22237,8 +22462,11 @@ SELECT + + 72 / 15 col2 # 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\(66\) \* Int64\(45\) / Int64\(75\) AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 66 * 45 / + 75 AS col1, 43 col1 +---- +39 +43 query II rowsort SELECT ALL + - 91, - 68 AS col2 @@ -22255,8 +22483,11 @@ SELECT + + 9, 85 - - 25 + + + 2 / + ( + ( 7 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 44 col0, + 25 AS col0 +---- +25 +44 query II rowsort SELECT 78 AS col0, + 72 @@ -22267,8 +22498,11 @@ SELECT 78 AS col0, + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 2444 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "Int64\(47\) \* Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 86 AS col2, + 47 * 52 AS col2 +---- +2444 +86 query II rowsort SELECT ALL + + 58, + ( - - 37 ) AS col0 @@ -22623,8 +22857,11 @@ NULL # 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\(DISTINCT Int64\(47\)\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( DISTINCT 47 ) col1, + 9 AS col1 +---- +1 +9 query I rowsort label-4323 SELECT ALL 57 - - - COUNT ( * ) AS col2 @@ -23644,8 +23881,11 @@ SELECT + 10 + + ( + 0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 676 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(73\)\) / CAST\(NULL AS Int32\) \* Int64\(15\) \* Int64\(51\) \- \(\- CAST\(NULL AS Float64\)\) AS col0" at position 0 and "Int64\(52\) \* Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - + 73 / + CAST ( NULL AS INTEGER ) * 15 * 51 - + - CAST ( NULL AS FLOAT8 ) AS col0, 52 * 13 AS col0 +---- +676 +NULL query I rowsort label-4518 SELECT - - 98 * + - 61 - - SUM ( ALL + - 36 ) @@ -24077,8 +24317,11 @@ SELECT ALL 13 / + 42 # 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 "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 82 AS col1, 3 col1 +---- +-82 +3 query I rowsort SELECT + + 41 * + ( + 7 ) + 10 + - 79 @@ -24495,8 +24738,11 @@ 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\(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\. +query II valuesort SELECT + - COUNT ( * ) AS col0, 69 - 52 AS col0 +---- +-1 +17 query I rowsort label-4682 SELECT ALL 55 - - 85 + - + COUNT ( * ) / + + COUNT ( DISTINCT + + 83 ) @@ -25123,8 +25369,11 @@ SELECT + - 7 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 27 AS col2, 41 AS col2 +---- +27 +41 query II rowsort label-4800 SELECT - 38, + 50 + COUNT ( * ) AS col0 @@ -25141,8 +25390,11 @@ SELECT - COUNT ( * ), 89 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 645 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(93\) AS Int32\) \* Int64\(7\) \- Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 60 AS col1, COUNT ( * ) + + + CAST ( 93 AS INTEGER ) * + 7 - 7 col1 +---- +60 +645 query I rowsort label-4803 SELECT ALL - 10 * + COALESCE ( + 16, 89, + + 89 * - 47 ) * - ( COUNT ( * ) ) @@ -25324,8 +25576,11 @@ SELECT ALL 64 * - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col1" at position 0 and "Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 31 ) AS col1, - 94 AS col1 +---- +-94 +31 query I rowsort SELECT 86 + + + 48 + - - 32 + - + 64 * 26 AS col0 @@ -25716,8 +25971,11 @@ SELECT - + ( + COALESCE ( + ( - 5 ), ( - CAST ( - 0 AS INTEGER ) ) * 20 + - 35 - # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 155 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(92\) WHEN Int64\(\-68\) \+ Int64\(33\) \* Int64\(70\) \+ \(\- CAST\(Int64\(\-40\) AS Int32\)\) THEN Int64\(\-76\) END\) \- Int64\(62\) / \(\- Int64\(57\)\) AS col1" at position 0 and "Int64\(97\) \- sum\(DISTINCT Int64\(\-58\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CASE 92 WHEN - 68 + + 33 * + 70 + - CAST ( - 40 AS INTEGER ) THEN + - 76 END - 62 / - + 57 AS col1, + 97 - SUM ( DISTINCT - 58 ) AS col1 +---- +155 +NULL query I rowsort SELECT DISTINCT + 13 * 55 @@ -25941,8 +26199,11 @@ 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\(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\. +query II valuesort SELECT - 95 AS col1, + NULLIF ( - COUNT ( * ), - 34 * 27 * - - 60 + - 84 + SUM ( + 34 ) ) AS col1 +---- +-1 +-95 query I rowsort SELECT 72 * - + 17 col0 @@ -26251,8 +26512,11 @@ SELECT - 97 - - 32 * - 96 + + NULLIF ( 28, + + 8 / - + 67 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 7 AS col0, 81 AS col0 +---- +7 +81 query I rowsort SELECT DISTINCT - 1 + + + 30 AS col0 @@ -26721,8 +26985,11 @@ SELECT + 11 - - 2 / + + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 AS col2, + COUNT ( * ) - + - CAST ( NULL AS INTEGER ) AS col2 +---- +81 +NULL query II rowsort label-5106 SELECT ALL - 46 AS col0, - COUNT ( * ) / - + 26 @@ -26768,14 +27035,20 @@ SELECT NULLIF ( 18, MIN ( ALL - 66 ) + ( - + COALESCE ( 63, + COUNT ( * ) ) ) + # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 AS col0, 2 AS col0 +---- +2 +61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col2" at position 0 and "Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 61 AS col2, - 76 AS col2 +---- +-76 +61 query I rowsort SELECT 6 + - 88 AS col0 @@ -26790,8 +27063,11 @@ SELECT 42 * 55 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 1608 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col2" at position 0 and "Int64\(24\) \* Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 AS col2, 24 * + + 67 AS col2 +---- +1608 +69 query I rowsort SELECT DISTINCT 20 AS col1 @@ -26857,8 +27133,11 @@ SELECT DISTINCT + 24 + - + 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 57 AS col0, 72 AS col0 +---- +57 +72 query I rowsort SELECT ALL + 91 * + + 69 AS col2 @@ -27255,8 +27534,11 @@ SELECT DISTINCT SUM ( - - 5 ) * - - 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -279 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) / Int64\(41\) \+ Int64\(\-3\) \* Int64\(93\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 8 / + 41 + + - 3 * + + 93 AS col2, 6 AS col2 +---- +-279 +6 query I rowsort label-5209 SELECT ALL - MAX ( ALL 79 ) AS col1 @@ -27335,8 +27617,11 @@ SELECT DISTINCT + 16 * + 61 + - 16 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) \+ Int64\(97\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 58 + + 97 AS col1, 16 col1 +---- +16 +39 query I rowsort label-5224 SELECT ALL + + 60 - - NULLIF ( - COUNT ( * ), - + 19 ) * - 54 @@ -27351,8 +27636,11 @@ SELECT DISTINCT - - 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2494 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) \- Int64\(83\) \+ \(\- Int64\(86\)\) \* Int64\(\-30\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 3 - + 83 + - + 86 * - 30 AS col1, 26 AS col1 +---- +2494 +26 query II rowsort SELECT ALL 42 col1, + 50 + + 69 @@ -27534,8 +27822,11 @@ SELECT + 57 * - 51 AS col0, 17 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( CAST ( NULL AS INTEGER ) ) col2, 11 AS col2 +---- +11 +NULL query I rowsort label-5261 SELECT MAX ( DISTINCT 66 ) * 1 * + - 62 + COUNT ( * ) + - - 43 * - 8 + - 39 + - + ( + - 14 ) * - 8 + + 11 - - MIN ( ALL - 84 ) @@ -27602,8 +27893,11 @@ SELECT ALL - 82 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + 28 ) AS col1, 45 AS col1 +---- +28 +45 query II rowsort label-5274 SELECT - COUNT ( * ) + 65 col2, 82 AS col0 @@ -28421,8 +28715,11 @@ SELECT - 98 * - - COUNT ( * ) + 84 + 27 * 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 82 AS col1, - CAST ( NULL AS INTEGER ) * 82 AS col1 +---- +82 +NULL query I rowsort SELECT ALL + ( + + 68 ) AS col2 @@ -28437,8 +28734,11 @@ SELECT - 40 * - ( - - 45 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(34\), Int64\(72\) \* \(\- Int64\(98\)\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + NULLIF ( + 34, 72 * - + 98 ) AS col2, CAST ( NULL AS INTEGER ) * + - 74 AS col2 +---- +34 +NULL query I rowsort label-5431 SELECT ALL + MAX ( ALL + 73 ) AS col1 @@ -28448,8 +28748,11 @@ 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\(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\. +query IR valuesort 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 +---- +15 +NULL query I rowsort SELECT - 33 * 32 * + 78 * - + 51 col1 @@ -28670,8 +28973,11 @@ SELECT ALL - COUNT ( * ) AS col0, + 17 + - - 99 + - 54 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83424 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) \* Int64\(79\) \* Int64\(24\) AS col0" at position 0 and "Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 44 * + 79 * + 24 col0, - 99 AS col0 +---- +-83424 +-99 query I rowsort SELECT DISTINCT - ( 39 ) @@ -29673,8 +29979,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -74 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 73 col2, - 74 AS col2 +---- +-74 +73 query I rowsort SELECT ALL 85 + + - 18 AS col1 @@ -30475,8 +30784,11 @@ SELECT - 10 + + 95 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col0" at position 0 and "Int64\(\-58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 73 col0, - 58 AS col0 +---- +-58 +-73 query II rowsort label-5827 SELECT - COUNT ( * ) AS col2, + 59 AS col0 @@ -30931,8 +31243,11 @@ SELECT 33 * - 37 * - 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) / Int64\(7\) AS col2" at position 0 and "Int64\(\-50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 / + 7 AS col2, - 50 AS col2 +---- +-50 +5 query I rowsort SELECT ALL - NULLIF ( - - ( 58 ), + 61 ) * + 47 AS col0 @@ -31235,8 +31550,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + SUM ( ALL + 44 ) + 83 + + 97 / - + 43 col1, 46 + + - 67 + - COUNT ( * ) * + 64 AS col1 +---- +-85 +125 query I rowsort SELECT - + 68 * - + 0 + - + 2 AS col1 @@ -31437,8 +31755,11 @@ SELECT + 34 + - 38 + + 21 * - 68 + + 48 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col1" at position 0 and "coalesce\(Int64\(\-39\), \(\- CAST\(NULL AS Int32\)\), Int64\(\-17\) / Int64\(\-95\) / Int64\(\-72\) \- Int64\(92\) \+ coalesce\(Int64\(85\), Int64\(26\) \* Int64\(\-46\), Int64\(56\) \* Int64\(76\)\) \* Int64\(16\) \* Int64\(88\) \+ Int64\(58\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 36 AS col1, COALESCE ( - 39, - CAST ( NULL AS INTEGER ), - 17 / - 95 / - 72 - 92 + + COALESCE ( + 85, 26 * - 46, 56 * 76 ) * 16 * 88 + + 58 ) AS col1 +---- +-36 +-39 query I rowsort label-6011 SELECT ALL 8 * + NULLIF ( - CAST ( NULL AS INTEGER ), 3 + - - 71 ) + COUNT ( ALL - 80 ) / + ( - ( + 77 ) ) @@ -31559,8 +31880,11 @@ 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\(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\. +query II valuesort SELECT 61 * - - 6 + 22 - + COUNT ( * ) + + 37 * 20 + 75 - + 56 * - 24 * - - 60 AS col1, COUNT ( * ) / + - 72 / + 28 AS col1 +---- +0 +81842 query I rowsort SELECT ALL + + 90 AS col0 @@ -31865,8 +32189,11 @@ SELECT 81 * - - NULLIF ( + 52, + - 38 ) + - - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(97\)\) AS col1" at position 0 and "Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 97 col1, 4 AS col1 +---- +-97 +4 query I rowsort label-6092 SELECT + 79 - + 50 * 32 + NULLIF ( - 13, 50 * - 29 ) / - + 16 AS col2 @@ -32390,8 +32717,11 @@ SELECT ALL - + 52 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 "Int64\(\-69\) AS col2" at position 0 and "Int64\(84\) / Int64\(95\) \* Int64\(\-90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 69 AS col2, 84 / 95 * - 90 AS col2 +---- +-69 +0 query II rowsort label-6193 SELECT MIN ( DISTINCT - - 60 ) AS col1, - 92 @@ -33396,8 +33726,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- Int64\(\-98\)\) / \(\- Int64\(26\)\) \- Int64\(36\) \+ Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, - ( - 98 ) / - + 26 - + 36 + + 0 AS col2 +---- +-39 +1 query I rowsort SELECT ALL - 4 col1 @@ -33732,14 +34065,20 @@ SELECT - 35 * + 4 * + + NULLIF ( - - 29, - 95 ) # 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\)" at position 0 and "Int64\(55\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 55, 55 +---- +55 +55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(14\) / \(\- Int64\(44\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, + COUNT ( * ) * 14 / - + 44 AS col2 +---- +0 +1 query II rowsort label-6449 SELECT + - CAST ( NULL AS INTEGER ), SUM ( ALL - + 51 ) + - 44 AS col0 @@ -34035,8 +34374,11 @@ SELECT ALL 66 + + 48 # 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\(85\) \- Int64\(68\) \+ Int64\(11\) AS col0" at position 0 and "Int64\(47\) / \(\- Int64\(99\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 - + 68 + 11 AS col0, 47 / - + 99 col0 +---- +0 +28 query I rowsort label-6506 SELECT MAX ( DISTINCT 1 ) * - 57 / - - 28 @@ -34853,8 +35195,11 @@ SELECT + ( - 65 ) * + ( - - 0 ) + - + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 82 - + COUNT ( * ) AS col0, 68 AS col0 +---- +68 +81 query I rowsort label-6662 SELECT DISTINCT - CASE - 38 WHEN + NULLIF ( + 82, 24 / 27 ) + + - SUM ( 12 ) THEN + - 31 END * - - 0 col0 @@ -35135,8 +35480,11 @@ SELECT ALL - 48 * + CAST ( 22 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ CASE Int64\(84\) WHEN min\(\(\- Int64\(\-66\)\)\) \+ Int64\(84\) THEN Int64\(\-93\) END \+ \(\- Int64\(\-83\)\) \+ Int64\(13\) AS col0" at position 0 and "CASE Int64\(58\) WHEN Int64\(\-67\) \+ Int64\(84\) \+ Int64\(0\) \* Int64\(\-78\) THEN Int64\(12\) \* \(\- Int64\(\-90\)\) END / Int64\(91\) \+ Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 + + CASE 84 WHEN + MIN ( - - 66 ) + + 84 THEN - 93 END + - - 83 + 13 AS col0, CASE 58 WHEN - 67 + + 84 + + 0 * - 78 THEN + 12 * - ( + - 90 ) END / 91 + + 59 AS col0 +---- +NULL +NULL query I rowsort SELECT ALL - 76 - - 44 AS col0 @@ -35222,8 +35570,11 @@ SELECT - 78 AS col2, COUNT ( * ) * + 20 + + 93 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \+ Int64\(\-81\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 27 + - 81 AS col0, + COUNT ( * ) AS col0 +---- +-54 +1 query I rowsort label-6732 SELECT ALL - 1 * SUM ( DISTINCT - 88 ) AS col1 @@ -35407,8 +35758,12 @@ SELECT 10 / CASE - COUNT ( * ) WHEN + 79 THEN NULL WHEN 6 * - + 65 + 20 + + + 68 # Datafusion - Expected - NULL # Datafusion - Expected - 32 # Datafusion - Expected - 261 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE coalesce\(Int64\(5\), \(\- Int64\(\-49\)\) \- Int64\(\-81\) \+ \(\- Int64\(\-42\)\) \+ Int64\(\-61\) / Int64\(77\) \* Int64\(4\) / Int64\(63\) / Int64\(38\)\) WHEN Int64\(11\) \* Int64\(\-31\) \- Int64\(\-7\) \+ Int64\(\-4\) THEN \(\- Int64\(65\)\) END\) AS col0" at position 0 and "Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - CASE + + COALESCE ( 5, - - 49 - - 81 + - - 42 + - 61 / + ( 77 ) * + 4 / 63 / + 38 ) WHEN + + 11 * + - 31 - - 7 + - 4 THEN - + 65 END AS col0, 32 col0, 9 * + ( + + 29 ) +---- +261 +32 +NULL query II rowsort label-6767 SELECT - MIN ( 93 ) AS col0, ( + + COALESCE ( - - 55, 45, + SUM ( + + 45 ) ) ) + + 66 @@ -35444,8 +35799,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3094 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(93\) \- Int64\(68\) AS col0" at position 0 and "Int64\(\-81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 34 * 93 - + 68 AS col0, - 81 col0 +---- +-81 +3094 query I rowsort label-6774 SELECT + 59 / 37 * + - COALESCE ( 83, - 14 * + - NULLIF ( + COUNT ( * ), + COUNT ( * ) ) + - - 7 ) + - CASE + 36 WHEN + 19 * MIN ( 3 ) + + CASE + 57 WHEN - - COALESCE ( - - 86, + 19 * + 25 ) / - COALESCE ( 86, MIN ( ALL + 5 ) ) THEN - 22 + + MIN ( + 95 ) END - + 69 THEN NULL WHEN + 80 THEN NULL WHEN + + SUM ( - - 88 ) THEN 90 ELSE 33 END AS col0 @@ -35511,8 +35869,11 @@ SELECT ALL 76 * - COUNT ( * ) * + 47 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* Int64\(74\) AS col2" at position 0 and "Int64\(23\) \+ Int64\(67\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + CAST ( NULL AS INTEGER ) + - ( - - COUNT ( * ) ) * 74 AS col2, 23 + 67 + + - COUNT ( * ) * + 29 AS col2 +---- +61 +NULL query I rowsort label-6787 SELECT ALL + COUNT ( * ) + + 18 @@ -35643,8 +36004,11 @@ SELECT ( - + SUM ( DISTINCT + 34 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + + 22 ) AS col0, 43 AS col0 +---- +22 +43 query I rowsort label-6812 SELECT DISTINCT + CAST ( NULL AS INTEGER ) col0 @@ -35912,8 +36276,11 @@ SELECT - - 33 AS col2 # 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 "\(\- CASE \(\- Int64\(84\)\) WHEN Int64\(\-76\) THEN Int64\(76\) WHEN Int64\(\-59\) THEN \(\- coalesce\(Int64\(48\), Int64\(\-72\) \* Int64\(\-76\)\)\) \+ \(\- max\(Int64\(79\)\)\) END\) \* coalesce\(Int64\(6\), Int64\(26\)\) AS col0" at position 0 and "Int64\(\-36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CASE ( - + 84 ) WHEN + - 76 THEN + 76 WHEN - 59 THEN + - COALESCE ( + 48, - 72 * - 76 ) + - MAX ( + 79 ) END * + COALESCE ( 6, 26 ) AS col0, - 36 AS col0 +---- +-36 +NULL query I rowsort SELECT - 32 col2 @@ -36194,8 +36561,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 35 * - COUNT ( * ) AS col1, - COUNT ( * ) AS col1, 21 AS col2 +---- +-1 +21 +35 query I rowsort SELECT + ( + - 33 ) * - 11 col1 @@ -36393,8 +36764,11 @@ SELECT ALL - + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 52 AS col0, COUNT ( * ) AS col0 +---- +-52 +1 query I rowsort label-6956 SELECT + ( + SUM ( 86 ) ) @@ -36637,8 +37011,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( COUNT ( * ) ) AS col1, + 45 AS col1 +---- +-1 +45 query II rowsort label-7003 SELECT DISTINCT + + COUNT ( * ) * - - 50 + - 31 / - 65 AS col2, 91 AS col0 @@ -36800,8 +37177,12 @@ SELECT - ( - - MAX ( DISTINCT - - 46 ) ) * + + 73 - MIN ( + 34 ) - 71 # Datafusion - Expected - 19 # Datafusion - Expected - 1 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "count\(DISTINCT Int64\(18\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 19 AS col2, COUNT ( DISTINCT + 18 ) col2, 53 + + - ( + 85 ) - 57 +---- +-89 +1 +19 query I rowsort SELECT DISTINCT + - 79 AS col1 @@ -36979,8 +37360,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, + 51 AS col2 +---- +-1 +51 query I rowsort label-7067 SELECT + - 81 / - + 41 AS col2 @@ -37158,8 +37542,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 * - COUNT ( * ) AS col0, 49 AS col0 +---- +-39 +49 query I rowsort label-7101 SELECT MAX ( + - 29 ) + + CAST ( - 10 AS INTEGER ) @@ -37466,8 +37853,11 @@ 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\(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\. +query II valuesort 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 +---- +79 +9 query II rowsort SELECT ALL 64 * - 89 AS col2, ( + + 91 ) @@ -37795,8 +38185,11 @@ SELECT DISTINCT 39 + + 33 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\(87\) \+ \(\- Int64\(46\)\) \+ \(\- Int64\(\-5\)\) \* \(\- Int64\(7\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 47 AS col1, 87 + - + 46 + - - 5 * - + 7 AS col1 +---- +47 +6 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -37990,8 +38383,11 @@ SELECT ALL - 60 * 49 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 51 AS col0, 31 AS col0 +---- +-51 +31 query II rowsort label-7260 SELECT - 86 / - 86, + 6 col1 @@ -38069,8 +38465,12 @@ SELECT - 27 AS col1 # Datafusion - Expected - 5916 # Datafusion - Expected - -160 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(68\) AS col0" at position 0 and "\(\- Int64\(75\)\) \+ Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 87 * + 68 AS col0, + ( - + 75 ) + - 85 AS col0, + COALESCE ( - + CAST ( NULL AS INTEGER ), + 37 / + 30, + + 27 ) AS col1 +---- +-160 +1 +5916 query I rowsort SELECT 78 * + + 0 * - 34 AS col2 @@ -38288,8 +38688,11 @@ SELECT ALL - - 30 * COUNT ( * ) * + 5 * + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "Int64\(74\) \* Int64\(33\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90 AS col0, 74 * 33 + + CAST ( NULL AS INTEGER ) AS col0 +---- +90 +NULL query I rowsort label-7316 SELECT DISTINCT - COALESCE ( - 74, 7 ) * - COUNT ( * ) + 26 + - 58 @@ -38370,8 +38773,11 @@ SELECT DISTINCT 5 * 15 - - + COUNT ( ALL - 29 ) / 46 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 768 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \* Int64\(\-48\) AS col1" at position 0 and "Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 16 * + - 48 AS col1, - 20 AS col1 +---- +-20 +768 query I rowsort SELECT - 0 * - - ( 59 ) @@ -38430,8 +38836,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -158 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \* Int64\(2\) AS col0" at position 0 and "\(\- min\(DISTINCT Int64\(63\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 79 * 2 AS col0, - MIN ( DISTINCT 63 ) AS col0 +---- +-158 +-63 query I rowsort label-7343 SELECT + CASE 6 WHEN 18 THEN NULL WHEN - NULLIF ( - - 46, + 91 + + 79 + - MAX ( + + 25 ) + 66 - + ( 4 ) ) * + COUNT ( * ) * - 58 THEN + - 54 END * + 69 + - + 43 @@ -40668,8 +41077,11 @@ SELECT ALL 28 AS col1, 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \- Int64\(42\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 47 - 42 AS col1, + 55 col1 +---- +-89 +55 query I rowsort label-7779 SELECT - COALESCE ( - + 42, COUNT ( * ) ) + MAX ( DISTINCT - + 8 ) + - + 85 @@ -40711,8 +41123,12 @@ NULL # Datafusion - Expected - 50 # Datafusion - Expected - -16 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col1" at position 0 and "Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 50 col1, - 16 AS col1, 34 AS col0 +---- +-16 +34 +50 query I rowsort SELECT + 0 + 75 AS col2 @@ -40903,8 +41319,11 @@ SELECT - + 80 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -7852 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(42\)\)\) AS col0" at position 0 and "\(\- nullif\(\(\- Int64\(\-91\)\), Int64\(43\)\)\) \* Int64\(87\) \+ Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( 42 ) AS col0, - NULLIF ( - - 91, 43 ) * 87 + 65 AS col0 +---- +-1 +-7852 query II rowsort label-7823 SELECT ALL 97 * 47 + + - 45 col0, CAST ( 19 AS INTEGER ) * + 65 AS col1 @@ -41652,8 +42071,11 @@ SELECT MAX ( + 2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 12 AS col2 +---- +1 +12 query I rowsort SELECT ALL + - ( 13 ) col2 @@ -41808,8 +42230,11 @@ SELECT ALL + 14 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -670 # Datafusion - Expected - 3854 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* Int64\(\-67\) AS col0" at position 0 and "Int64\(47\) \* Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 10 * - 67 col0, 47 * + + 82 AS col0 +---- +-670 +3854 query I rowsort SELECT + ( 5 ) AS col2 @@ -41851,8 +42276,12 @@ SELECT DISTINCT - 30 * - 85 AS col2, + 82 # Datafusion - Expected - -1 # Datafusion - Expected - 43 # Datafusion - Expected - 1067 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col2" at position 1 and "Int64\(97\) \* Int64\(11\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 98 / - 80, 43 AS col2, + 97 * + 11 AS col2 +---- +-1 +1067 +43 query I rowsort SELECT 49 * 47 + 77 AS col1 @@ -42017,8 +42446,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 AS col0, 64 / 13 + COUNT ( * ) + - 22 AS col0 +---- +-17 +47 query I rowsort SELECT DISTINCT - 26 - + - 13 AS col1 @@ -42635,8 +43067,11 @@ 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\(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\. +query II valuesort SELECT + ( + COUNT ( * ) ) * + - 51 - 32 AS col0, ( - + 88 ) AS col0 +---- +-83 +-88 query I rowsort label-8155 SELECT + 74 * - - COUNT ( + + CAST ( - 94 AS INTEGER ) ) AS col0 @@ -42729,8 +43164,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2860 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(13\)\)\)\) \* Int64\(5\) \* 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 II valuesort SELECT ALL - - MAX ( ALL + 13 ) * 5 * + 44 AS col2, - 93 AS col2 +---- +-93 +2860 query I rowsort label-8173 SELECT DISTINCT + 22 / - + 25 * 3 col2 @@ -42740,8 +43178,11 @@ SELECT DISTINCT + 22 / - + 25 * 3 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(42\)\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 42 AS col2, + 78 AS col2 +---- +-42 +78 query I rowsort SELECT 69 * 27 AS col0 @@ -42751,8 +43192,11 @@ SELECT 69 * 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(45\) \- Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) col2, 45 - + 92 AS col2 +---- +-47 +1 query I rowsort label-8177 SELECT SUM ( + 82 ) AS col0 @@ -43162,8 +43606,11 @@ SELECT - COALESCE ( - COALESCE ( 64, - 4 ), + COALESCE ( 0, - + 56 + + 4 - + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3936 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* Int64\(48\) AS col0" at position 0 and "Int64\(34\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 82 * + + 48 AS col0, 34 * COUNT ( * ) AS col0 +---- +34 +3936 query I rowsort label-8256 SELECT ( + 42 ) * + 73 * - + CASE 72 WHEN + - COUNT ( * ) THEN 34 ELSE + 32 END * - 49 * 16 * COUNT ( * ) * - + 4 + + 68 + - CAST ( + 98 AS INTEGER ) + 31 @@ -43631,8 +44078,11 @@ SELECT 27 - - MAX ( + 90 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 50 col1, 88 AS col1 +---- +-50 +88 query I rowsort SELECT DISTINCT - - 73 + - 59 AS col0 @@ -43731,8 +44181,11 @@ SELECT DISTINCT 99 * SUM ( - 59 ), 95 + 63 + + + 91 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- Int64\(58\)\)\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( - + 58 ) AS col1, 19 AS col1 +---- +-58 +19 query I rowsort SELECT 32 * + 6 AS col0 @@ -43884,8 +44337,11 @@ SELECT - 99 + - 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 88 AS col0, + COUNT ( * ) AS col0 +---- +1 +88 query I rowsort SELECT DISTINCT CASE ( - 98 ) WHEN - 87 THEN 44 END @@ -44409,8 +44865,11 @@ NULL # 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 "Int64\(38\) / \(\- Int64\(78\)\) \* Int64\(\-86\) \* Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 90 col0, + 38 / - + 78 * - 86 * 16 AS col0 +---- +0 +90 query I rowsort label-8495 SELECT DISTINCT - COUNT ( * ) + - + 57 + + - 1 @@ -44892,8 +45351,11 @@ SELECT DISTINCT - COALESCE ( + 47, + 90, + + ( - + ( + CASE + 22 WHEN + CAST ( N # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 5 AS col2, 94 AS col2 +---- +5 +94 query II rowsort SELECT + + 48, 35 * + 21 AS col0 @@ -45126,8 +45588,11 @@ SELECT DISTINCT 57 * + - SUM ( ALL 36 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) \* coalesce\(Int64\(33\), \(\- Int64\(\-83\)\) / Int64\(\-38\) \+ count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(80\) AS col1" at position 0 and "max\(Int64\(\-75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - - ( CAST ( NULL AS INTEGER ) ) ) * + COALESCE ( 33, - - 83 / ( - 38 ) + + COUNT ( * ) ) + + 80 AS col1, MAX ( ALL - 75 ) AS col1 +---- +-75 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -45207,14 +45672,20 @@ SELECT - ( + - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 97 AS col1, 80 AS col1 +---- +80 +97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col2" at position 0 and "Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 75 AS col2, - 38 AS col2 +---- +-38 +75 query I rowsort SELECT + 55 + - 79 @@ -45391,8 +45862,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 18 col0, ( - + 96 ) * + COUNT ( * ) + - 64 AS col0 +---- +-160 +-18 query I rowsort SELECT - 26 + + 93 * + + 89 @@ -45605,8 +46079,11 @@ SELECT - - 94 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 54720 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* Int64\(8\) AS col2" at position 0 and "nullif\(Int64\(\-32\), Int64\(0\)\) \* Int64\(\-95\) \* Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 10 * + 8 col2, + NULLIF ( - 32, - 0 ) * - 95 * + 18 AS col2 +---- +54720 +80 query I rowsort label-8720 SELECT ALL - 83 * ( + CASE - + COUNT ( * ) WHEN 6 THEN - + 71 ELSE NULL END ) + + + 83 - + 31 @@ -45720,8 +46197,11 @@ 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\(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\. +query II valuesort SELECT ALL 54 * COUNT ( * ) + 69 AS col2, + 90 AS col2 +---- +123 +90 query I rowsort SELECT + 85 * 50 + + 44 @@ -45822,8 +46302,11 @@ SELECT DISTINCT ( + + 54 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 55 AS col1, 15 AS col1 +---- +15 +55 query I rowsort label-8762 SELECT DISTINCT CAST ( + + 23 AS INTEGER ) @@ -46110,8 +46593,11 @@ SELECT - 45 + + 94 + + 82 * - 92 * + 45 * - 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) \+ Int64\(85\) \+ Int64\(\-59\) AS col2" at position 0 and "Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 13 + 85 + - 59 AS col2, - 63 AS col2 +---- +-63 +13 query I rowsort SELECT - 56 * - + 56 AS col2 @@ -46454,8 +46940,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2016 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) / CAST\(NULL AS Int32\) \* Int64\(99\) AS col2" at position 0 and "Int64\(\-42\) \* Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 3 / + CAST ( NULL AS INTEGER ) * 99 AS col2, - 42 * 48 AS col2 +---- +-2016 +NULL query I rowsort SELECT + 62 + - + 71 * - + 86 - COALESCE ( 17, - ( + - 60 ) * 65, - - 46 ) * 25 + - 46 AS col2 @@ -46840,8 +47329,11 @@ 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\(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\. +query II valuesort SELECT ALL - + COUNT ( + 94 ) + - NULLIF ( + 60, - 11 * 28 - - - COUNT ( * ) ) AS col2, 54 + - 80 AS col2 +---- +-26 +-61 query I rowsort SELECT - 34 + - 61 AS col0 @@ -47297,15 +47789,22 @@ SELECT DISTINCT 11 * - 92 + + 85 * + 61 * 70 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 81 AS col2, COUNT ( * ) AS col2 +---- +1 +81 # 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\(1\)\) AS count\(\*\) \+ Int64\(77\) \* Int64\(83\) \* Int64\(\-4\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 11 AS col2, - 97 AS col1, + 77 + + COUNT ( * ) + + + 77 * + ( + + ( + 83 ) ) * + - 4 AS col1 +---- +-25486 +-97 +11 query II rowsort SELECT DISTINCT 60 AS col1, 89 @@ -47332,8 +47831,12 @@ NULL # Datafusion - Expected - -64 # Datafusion - Expected - 34 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(64\) AS Int32\)\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - CAST ( + 64 AS INTEGER ) AS col2, + ( + 34 ) AS col1, 95 AS col2 +---- +-64 +34 +95 query I rowsort label-9049 SELECT - + 7 / 42 @@ -47449,8 +47952,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2, + COUNT ( * ) * 2 col2 +---- +2 +NULL query I rowsort label-9072 SELECT + 57 * + SUM ( ALL 33 ) + + 35 @@ -47657,8 +48163,11 @@ SELECT DISTINCT - 90 AS col2, 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 44 AS col1, + 97 AS col1 +---- +-44 +97 query I rowsort SELECT ALL ( - 58 ) @@ -49098,8 +49607,11 @@ SELECT DISTINCT + + COUNT ( * ) / CASE + 38 WHEN + COUNT ( * ) * 83 / 5 THEN 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 93 AS col0, 78 AS col0 +---- +78 +93 query II rowsort SELECT - 21 AS col1, - 75 @@ -49163,8 +49675,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 87 AS col2, + COUNT ( * ) + + + 79 AS col2 +---- +-87 +80 query I rowsort SELECT DISTINCT + 64 + + + 79 @@ -49556,8 +50071,11 @@ SELECT + - 95 + + 2 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 col1" at position 0 and "Int64\(42\) / Int64\(\-71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 45 AS col1, 42 / - 71 AS col1 +---- +-45 +0 query I rowsort SELECT - - 32 AS col1 @@ -49808,8 +50326,11 @@ SELECT DISTINCT 3 / + - 67 * + - 88 col1 # 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 "Int64\(30\) AS col0" at position 0 and "Int64\(\-30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 30 AS col0, - 30 AS col0 +---- +-30 +30 query I rowsort SELECT 98 + 77 @@ -49933,8 +50454,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 18 * + 3 + + + 86 AS col1, 6 * - COUNT ( * ) AS col1 +---- +-6 +32 query II rowsort label-9551 SELECT ALL + CAST ( NULL AS INTEGER ), NULLIF ( + 66, NULLIF ( + - NULLIF ( + 14, - 59 * + - 29 + + MIN ( - 35 ) ), COALESCE ( 57, MAX ( ALL + ( + 61 ) ) ) / 54 + + 78 ) * 49 ) AS col0 @@ -49970,8 +50494,11 @@ SELECT + 37 + + - 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3654 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) \* Int64\(42\) AS col0" at position 0 and "Int64\(60\) / Int64\(72\) \* \(\- \(\- \(\- max\(Int64\(76\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 87 * + 42 AS col0, 60 / 72 * - + ( - - MAX ( 76 ) ) AS col0 +---- +-3654 +0 query I rowsort SELECT ALL + 12 * + ( 54 ) @@ -50156,8 +50683,11 @@ SELECT - + ( + ( - 32 ) ) + - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "Int64\(12\) \+ max\(DISTINCT Int64\(81\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 59 AS col0, 12 + + MAX ( DISTINCT + 81 ) AS col0 +---- +59 +93 query I rowsort label-9593 SELECT ALL - + 28 * - COUNT ( * ) * 28 @@ -50203,8 +50733,12 @@ SELECT + 66, 90 AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - -23 # Datafusion - Expected - 2866 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "sum\(DISTINCT \(\- Int64\(23\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 65 / + CAST ( NULL AS INTEGER ) AS col1, SUM ( DISTINCT - + 23 ) col1, 68 * + ( + 43 ) + + - 58 +---- +-23 +2866 +NULL query I rowsort SELECT - - 6 * 15 * 15 - - + 7 @@ -50296,8 +50830,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) * 64 col0, CASE - + 20 WHEN - + ( 18 ) THEN + 36 + + 95 * COALESCE ( + ( 76 ), + 66 ) ELSE NULL END col0 +---- +64 +NULL query I rowsort SELECT + 71 * 31 AS col2 @@ -51708,8 +52245,12 @@ SELECT DISTINCT - + 16 * - CAST ( - 74 AS INTEGER ) AS col1 # Datafusion - Expected - 26 # Datafusion - Expected - -13651 # Datafusion - Expected - -1376 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* Int64\(17\) \* Int64\(\-11\) AS col1" at position 1 and "\(\- CAST\(\(\- Int64\(\-92\)\) AS Int32\)\) \* Int64\(0\) \- Int64\(32\) \* Int64\(43\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 26, 73 * 17 * - 11 AS col1, - CAST ( - - 92 AS INTEGER ) * + 0 - 32 * 43 col1 +---- +-13651 +-1376 +26 query I rowsort label-9894 SELECT - + COALESCE ( - 66, + MIN ( + 71 ) + 86 / - 29 ) * COUNT ( * ) AS col1 @@ -51796,8 +52337,11 @@ SELECT DISTINCT - 68 * - - 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6120 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \* Int64\(90\) AS col2" at position 0 and "Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 68 * 90 AS col2, - 76 AS col2 +---- +-6120 +-76 query I rowsort label-9911 SELECT + NULLIF ( COUNT ( * ), + 76 + + 77 ) @@ -51833,8 +52377,11 @@ 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\(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\. +query II valuesort 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 +---- +-1244 +NULL query II rowsort label-9918 SELECT ALL COUNT ( * ) * + 25, 86 AS col0 @@ -51976,8 +52523,11 @@ SELECT 15 * + + 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 1649 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col1" at position 0 and "Int64\(17\) \* Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 AS col1, + 17 * 97 AS col1 +---- +1649 +37 query I rowsort label-9945 SELECT DISTINCT + NULLIF ( - 32, + MAX ( ALL - - 85 ) * 93 * - COUNT ( ALL + 8 ) ) - COUNT ( * ) / - 66 AS col1 diff --git a/data/sqlite/random/expr/slt_good_34.slt b/data/sqlite/random/expr/slt_good_34.slt index 67db2c7..f6afa95 100644 --- a/data/sqlite/random/expr/slt_good_34.slt +++ b/data/sqlite/random/expr/slt_good_34.slt @@ -499,8 +499,11 @@ SELECT DISTINCT - 56 + MAX ( + - 29 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 121032 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ Int64\(\-19\) \* \(\- nullif\(\(\- Int64\(65\)\), Int64\(44\)\)\) \* Int64\(\-98\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(64\) \+ Int64\(\-11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 2 + - 19 * - NULLIF ( - + 65, 44 ) * + - 98 * + COUNT ( * ) col0, + 64 + - 11 AS col0 +---- +121032 +53 query I rowsort SELECT 49 + 39 AS col2 @@ -735,8 +738,11 @@ SELECT ALL + ( + - COUNT ( ALL + ( ( + 95 ) ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 21483 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "nullif\(Int64\(31\), avg\(Int64\(\-34\)\)\) \* Int64\(33\) \* Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + 76 AS col0, NULLIF ( + 31, + + AVG ( - 34 ) ) * + 33 * 21 AS col0 +---- +21483 +76 query I rowsort label-133 SELECT - 58 * - 0 + + 71 + CAST ( + + 82 AS INTEGER ) AS col0 @@ -1289,8 +1295,12 @@ 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\(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\. +query III valuesort SELECT ALL 24 col1, COALESCE ( + 51, CASE - + COUNT ( * ) WHEN + 24 THEN 11 WHEN + + COUNT ( * ) THEN NULL END ) * + 84 AS col1, + 43 +---- +24 +4284 +43 query II rowsort SELECT DISTINCT - - 33 AS col0, 26 AS col2 @@ -1495,8 +1505,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(coalesce\(Int64\(35\), Int64\(41\) \+ Int64\(11\) \- Int64\(46\)\), Int64\(39\) \* max\(DISTINCT Int64\(39\)\) \* CAST\(Int64\(31\) AS Int32\)\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(7\) \* Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - NULLIF ( COALESCE ( 35, 41 + 11 - + 46 ), ( 39 ) * + + MAX ( DISTINCT 39 ) * + CAST ( + + 31 AS INTEGER ) ) AS col1, - ( COUNT ( * ) ) * + + COUNT ( * ) / + 7 * - 56 AS col1 +---- +-35 +0 query I rowsort SELECT - ( - + 62 ) + - NULLIF ( - 95, 43 ) + - + 68 * + 8 @@ -1976,8 +1989,11 @@ 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\(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\. +query II valuesort SELECT 99 * + 50 * 8 * + - 29 * - 75 AS col1, 55 / CASE + 29 WHEN - 41 THEN 70 + COUNT ( * ) WHEN 48 + - 39 THEN NULL END AS col1 +---- +86130000 +NULL query I rowsort label-365 SELECT DISTINCT 57 * + COUNT ( * ) - - - 54 * + 46 @@ -2170,8 +2186,11 @@ SELECT - 37 * - COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 120 # Datafusion - Expected - -2703 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \- Int64\(\-77\) AS col0" at position 0 and "\(\- Int64\(\-53\)\) \* Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 43 - - 77 AS col0, - ( - 53 ) * + - 51 AS col0 +---- +-2703 +120 query II rowsort label-402 SELECT ALL 80 AS col2, 24 + + CAST ( NULL AS INTEGER ) AS col0 @@ -2309,8 +2328,11 @@ SELECT ALL + - 22 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -298351 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col2" at position 0 and "Int64\(67\) \* Int64\(73\) \* Int64\(\-61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 88 AS col2, + 67 * + 73 * - 61 AS col2 +---- +-298351 +88 query I rowsort label-428 SELECT ALL - CASE + 41 WHEN 76 * - COUNT ( * ) + - - 57 * - - 10 + + - AVG ( + - 97 ) + - 54 THEN + COUNT ( * ) WHEN - ( 16 ) THEN - + 7 + 42 END * - 10 + ( 23 ) + 40 @@ -2346,8 +2368,11 @@ SELECT ALL + 22 + + 16 / - COALESCE ( + + 87, - + 1 * + CASE - 16 WHEN - + 14 TH # Datafusion - Datafusion expected results: # Datafusion - Expected - 2644 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \- \(\- Int64\(48\)\) \* Int64\(55\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 4 - - + 48 * 55 AS col1, 22 AS col1 +---- +22 +2644 query I rowsort SELECT + 20 * - 95 col0 @@ -2574,8 +2599,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 36 AS col0, 94 + + 88 * - COUNT ( * ) AS col0 +---- +36 +6 query I rowsort label-479 SELECT 99 + + + COUNT ( * ) + - 91 + - 2 * COUNT ( * ) @@ -2730,8 +2758,11 @@ SELECT DISTINCT MAX ( ALL + + 3 ) * - 36 * + ( 92 ) 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 "Int64\(53\) / Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 1 AS col1, + 53 / + + 53 AS col1 +---- +1 +1 query I rowsort SELECT ALL 84 - + 9 @@ -2746,8 +2777,11 @@ SELECT - 53 * - 94 * - - 33 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7854 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(42\) \* Int64\(\-11\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 * 42 * - 11 AS col0, CAST ( NULL AS INTEGER ) AS col0 +---- +-7854 +NULL query II rowsort label-512 SELECT + 62 + - - 6 + + 49 AS col0, NULLIF ( - 83, + 90 ) / + 23 + - 72 @@ -2915,8 +2949,11 @@ SELECT ALL - 0 * - 78 * - ( + COUNT ( DISTINCT - + 87 ) ) AS col1, - 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1312 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) \* Int64\(20\) \+ \(\- max\(Int64\(\-28\)\)\) AS col1" at position 0 and "Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 67 * + 20 + - MAX ( ALL - 28 ) AS col1, 98 AS col1 +---- +-1312 +98 query I rowsort label-544 SELECT ALL + 41 * + + COUNT ( * ) - - COUNT ( * ) + 71 + - - 48 + + - 83 AS col0 @@ -3370,8 +3407,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(1\) WHEN Int64\(11\) THEN Int64\(\-97\) \+ \(\- \(\- Int64\(33\)\)\) \* Int64\(\-48\) ELSE Int64\(\-66\) \+ \(\- Int64\(\-53\)\) END \+ Int64\(\-11\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CASE ( + 1 ) WHEN 11 THEN - 97 + - + ( - + 33 ) * - 48 ELSE - 66 + - - 53 END + - 11 col1, + 69 AS col1 +---- +-24 +69 query I rowsort label-629 SELECT - 73 / - 51 - 75 + - 91 AS col1 @@ -3386,8 +3426,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 * - - ( - 31 ) AS col2, COUNT ( * ) * 64 AS col2 +---- +-558 +64 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -3736,8 +3779,11 @@ SELECT - NULLIF ( - - 10, - 8 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* Int64\(4\) AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 * + 4 AS col2, + 96 AS col2 +---- +32 +96 query I rowsort SELECT ALL 14 * + 72 @@ -3747,8 +3793,11 @@ SELECT ALL 14 * + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-70\) AS Int32\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - 70 AS INTEGER ) AS col1, ( + CAST ( NULL AS INTEGER ) ) AS col1 +---- +-70 +NULL query I rowsort label-701 SELECT + NULLIF ( 60, + NULLIF ( + 3, - + 15 * - - ( 74 ) + + - 96 ) * + + MIN ( + + 19 ) ) col2 @@ -4119,8 +4168,11 @@ SELECT + ( + - 47 ) * + 3 * + 10 * + MIN ( - 46 ) * - 64 - - 72 + + 41 / + - SUM # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "nullif\(Int64\(\-10\), \(\- Int64\(63\)\) \* Int64\(\-41\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col2, + NULLIF ( - 10, - + 63 * - 41 ) AS col2 +---- +-10 +1 query II rowsort label-773 SELECT ALL - COUNT ( * ) AS col0, 96 AS col2 @@ -4179,8 +4231,11 @@ SELECT ALL - 14 + + - 68 # 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\(22\) AS col1" at position 0 and "\(\- Int64\(6\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 22 AS col1, - ( 6 ) col1 +---- +-6 +22 query I rowsort label-784 SELECT DISTINCT + NULLIF ( COUNT ( * ), + 35 * - 46 ) + - COUNT ( * ) @@ -4381,8 +4436,11 @@ SELECT - 46 - + 59 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -726 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* Int64\(33\) AS col2" at position 0 and "CAST\(Int64\(\-37\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 22 * 33 AS col2, + CAST ( - 37 AS INTEGER ) AS col2 +---- +-37 +-726 query I rowsort label-822 SELECT DISTINCT + - SUM ( ALL - 6 ) * 90 * - - 63 AS col2 @@ -4628,8 +4686,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \+ sum\(\(\- Int64\(33\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 61 + + MAX ( - 12 ) / - 89 AS col0, + COUNT ( * ) + + SUM ( - + 33 ) AS col0 +---- +-32 +61 query I rowsort label-869 SELECT 37 + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - COUNT ( * ) @@ -4743,8 +4804,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * + 73 + 62 / + - 64 AS col1, - 9 AS col1 +---- +-9 +73 query I rowsort SELECT ALL - + 6 AS col1 @@ -4806,8 +4870,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(61\) \+ Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 AS col0, COUNT ( * ) + 61 + + 89 AS col0 +---- +12 +151 query I rowsort label-903 SELECT - MIN ( - 57 ) @@ -4870,8 +4937,11 @@ SELECT DISTINCT 14 col2, 79 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-20\)\) \+ Int64\(\-47\) AS col0" at position 0 and "Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + - 20 ) + - 47 AS col0, 45 AS col0 +---- +-27 +45 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -5090,8 +5160,12 @@ SELECT 42 * - 6 + + 73 - 65 col1 # Datafusion - Expected - 44 # Datafusion - Expected - -89 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(89\)\)\) AS col2" at position 1 and "\(\- CAST\(min\(Int64\(14\)\) AS Int32\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 44 AS col0, - SUM ( DISTINCT ( 89 ) ) AS col2, + - CAST ( MIN ( 14 ) AS INTEGER ) AS col2 +---- +-14 +-89 +44 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -5315,8 +5389,11 @@ SELECT ALL - 44 - - + 46 * 77, + 2 * + ( CAST ( 5 AS INTEGER ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - -129 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col1" at position 0 and "Int64\(\-83\) \+ Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 49 AS col1, + ( + - 83 ) + + - 46 AS col1 +---- +-129 +49 query I rowsort SELECT 0 * - + ( + - 44 ) AS col1 @@ -5605,8 +5682,11 @@ SELECT - COUNT ( * ) - + + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 808 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) \* Int64\(\-9\) \- Int64\(96\) \+ Int64\(67\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(59\) \+ Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 93 * + - 9 - 96 + + 67 AS col1, CAST ( NULL AS INTEGER ) * 59 + + 41 AS col1 +---- +808 +NULL query I rowsort SELECT DISTINCT - + 72 * 6 AS col1 @@ -5945,8 +6025,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(84\) \- \(\- Int64\(71\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 20 * - 97 AS col2, COUNT ( * ) * + 84 - - + 71 AS col2 +---- +-1940 +155 query I rowsort SELECT 82 * - 35 * + + 61 + - 89 * - + 64 AS col0 @@ -5961,8 +6044,11 @@ SELECT + NULLIF ( - 51, - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col1" at position 0 and "Int64\(87\) \+ \(\- Int64\(92\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 41 col1, 87 + + - ( + 92 ) * + COUNT ( * ) AS col1 +---- +-41 +-5 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -6194,8 +6280,11 @@ 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\(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\. +query II valuesort SELECT + 84 + + - COUNT ( * ) AS col2, + ( 85 ) + - 33 AS col2 +---- +52 +83 query I rowsort SELECT ALL 58 + + + NULLIF ( + - 41, 81 * - 1 - ( 69 ) ) @@ -6883,8 +6972,11 @@ SELECT 66 + - + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 50 AS col2, ( + + COUNT ( * ) ) AS col2 +---- +-50 +1 query I rowsort label-1294 SELECT ALL MIN ( ALL - 36 ) @@ -7328,8 +7420,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 36 AS col0, - COUNT ( * ) + 34 AS col0 +---- +33 +36 query I rowsort SELECT - 74 + - - 10 + - - ( - 51 ) AS col2 @@ -8727,8 +8822,11 @@ SELECT + 87 * - ( 69 ) + + 18 AS col2 # 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 "Int64\(38\) AS col1" at position 0 and "Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 38 AS col1, 68 AS col1 +---- +38 +68 query I rowsort label-1655 SELECT ALL + 21 / - 34 @@ -8771,8 +8869,11 @@ SELECT 23, 40 + + + 36 + 61 * - 26 + SUM ( 92 ) AS col0 # 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 "Int64\(13\) / \(\- Int64\(\-67\)\) AS col0" at position 0 and "Int64\(28\) / Int64\(\-76\) \+ Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 / - - 67 AS col0, 28 / + - 76 + - 22 AS col0 +---- +-22 +0 query I rowsort label-1663 SELECT COUNT ( * ) * - 43 col0 @@ -8802,8 +8903,11 @@ SELECT 97 - 45 + 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col1" at position 0 and "Int64\(\-41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 14 AS col1, - 41 AS col1 +---- +-41 +14 query I rowsort label-1669 SELECT COUNT ( * ) * + + 11 col2 @@ -8844,8 +8948,11 @@ 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\(1\)\) AS count\(\*\), Int64\(\-82\)\) \+ Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 3 AS col1, - 74 * + COALESCE ( + + 86, COUNT ( * ), - 82 ) + 38 AS col1 +---- +-3 +-6326 query I rowsort label-1677 SELECT 18 * - - 94 * - COUNT ( * ) @@ -8893,8 +9000,11 @@ SELECT - 0 / 4 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(74\)\) AS col1" at position 0 and "Int64\(\-95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 74 AS col1, - 95 col1 +---- +-74 +-95 query I rowsort label-1686 SELECT - - NULLIF ( - 46, + CAST ( NULL AS INTEGER ) * 71 / 27 * - COUNT ( * ) * COUNT ( * ) + - 67 + CAST ( - ( + ( 2 ) ) AS INTEGER ) ) * CAST ( NULL AS INTEGER ) + + MAX ( 57 ) AS col0 @@ -9039,8 +9149,11 @@ SELECT 36 * + 11 * + 60, 10 + + 59 AS col2, - 5 * + 44 AS col0 # 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\(\-25\) \+ Int64\(\-27\) \+ nullif\(\(\- Int64\(23\)\), Int64\(28\)\) AS col2" at position 0 and "Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 25 + - 27 + NULLIF ( - + 23, 28 ) AS col2, 57 AS col2 +---- +-75 +57 query I rowsort label-1713 SELECT + 21 * - + 43 + - 66 * - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * ( - + MAX ( DISTINCT - 4 ) ) + 8 @@ -9101,8 +9214,11 @@ SELECT - COUNT ( * ) * + 44 + - - 52 * - + 75 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* CAST\(NULL AS Int32\) \+ Int64\(\-9\) AS col1" at position 0 and "CASE WHEN NOT Int64\(18\) IS NOT NULL THEN NULL ELSE \(\- \(\- CAST\(NULL AS Int32\)\)\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +NULL +NULL query I rowsort label-1725 SELECT DISTINCT 19 / - + 81 AS col0 @@ -9446,8 +9562,11 @@ SELECT - + COUNT ( DISTINCT 61 ) AS col2, - COALESCE ( + ( - + 57 ), + 81, - COA # Datafusion - Datafusion expected results: # Datafusion - Expected - 4358 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \+ Int64\(93\) \* \(\- Int64\(\-45\)\) \+ Int64\(77\) AS col0" at position 0 and "Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 96 + + + 93 * - - 45 + 77 col0, - 90 AS col0 +---- +-90 +4358 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -9935,8 +10054,11 @@ 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\(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\. +query II valuesort SELECT + 70 * - CASE + 25 WHEN 68 THEN - + COUNT ( * ) ELSE NULL END AS col2, + 48 AS col2 +---- +48 +NULL query I rowsort SELECT - 76 + + - ( + 44 ) @@ -10289,8 +10411,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + 5 * - + COUNT ( * ) * + SUM ( - + 45 ) AS col1, - MAX ( ALL 28 ) AS col1 +---- +-28 +225 query I rowsort SELECT DISTINCT + 96 + - + 91 @@ -10417,8 +10542,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) / \(\- Int64\(96\)\) \+ Int64\(\-10\) \* \(\- Int64\(\-3\)\) AS col0" at position 0 and "Int64\(24\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 29 / - + 96 + - 10 * - - 3 AS col0, + 24 + + CAST ( NULL AS INTEGER ) AS col0 +---- +-30 +NULL query I rowsort label-1974 SELECT ( + MIN ( DISTINCT + 38 ) ) * - 79 @@ -10752,21 +10880,31 @@ SELECT + - 17 * + 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 2108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-81\)\)\) AS col2" at position 0 and "Int64\(8\) \+ Int64\(70\) \* \(\- Int64\(\-30\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( - 81 ) AS col2, + 8 + + 70 * ( - ( - 30 ) ) col2 +---- +2108 +81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 73 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col0" at position 0 and "Int64\(\-81\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 92 AS col0, + 73, - 81 AS col0 +---- +-81 +73 +92 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col0" at position 0 and "Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 71 AS col0, 84 AS col0 +---- +-71 +84 query I rowsort SELECT DISTINCT + - 49 AS col1 @@ -10803,8 +10941,11 @@ SELECT ALL + + COALESCE ( CAST ( NULL AS INTEGER ), + - 93, + - MIN ( ALL - - ( # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1422 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / Int64\(60\) \+ Int64\(\-6\) \* Int64\(31\) \* Int64\(\-55\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(79\) \* \(\- \(\- max\(\(\- Int64\(18\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) / 60 + - 6 * 31 * - 55 * + + COUNT ( * ) AS col1, 79 * - - MAX ( - + 18 ) AS col1 +---- +-1422 +NULL query I rowsort label-2046 SELECT - + CAST ( + ( 64 ) AS INTEGER ) * - - 76 AS col0 @@ -10884,8 +11025,11 @@ 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\(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\. +query II valuesort SELECT ALL - 57 * - COUNT ( * ) AS col0, COALESCE ( - 41, 19 + - - 94 + 89 + + 12, - + 16, + - 11 ) + 19 AS col0 +---- +-22 +57 query I rowsort SELECT 47 - + 69 AS col1 @@ -11195,8 +11339,11 @@ SELECT + COALESCE ( + + CAST ( - ( - 63 ) AS INTEGER ), 28 ) + + 84 + - + NULLIF # 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\(DISTINCT \(\- Int64\(\-62\)\)\) AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( DISTINCT - - 62 ) AS col1, 35 AS col1 +---- +1 +35 query I rowsort label-2121 SELECT + 73 * - COUNT ( * ) + 69 AS col2 @@ -11237,8 +11384,11 @@ 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\(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\. +query II valuesort 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 +---- +-27 +24 query II rowsort label-2129 SELECT - 81 / - COUNT ( * ) AS col0, 95 @@ -11490,8 +11640,11 @@ SELECT ALL + ( + 74 ) # 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 "Int64\(\-27\) AS col2" at position 0 and "\(\- Int64\(\-24\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 27 AS col2, - ( - 24 ) col2 +---- +-27 +24 query I rowsort label-2177 SELECT DISTINCT + COUNT ( * ) * + - 83 * - 10 @@ -11532,15 +11685,22 @@ SELECT 60 - - 26 + + + 13 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(31\) \+ \(\- \(\- CAST\(CAST\(Int64\(54\) AS Int32\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, 31 + - - CAST ( CAST ( + + 54 AS INTEGER ) AS INTEGER ) col2 +---- +85 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -6889 # Datafusion - Expected - 10 # Datafusion - Expected - -2400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 1 and "Int64\(\-48\) \* \(\- Int64\(\-50\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 83 * + 83 + COUNT ( * ) / 45 * + 34 * - 75 col0, 10 AS col2, - 48 * - - 50 AS col2 +---- +-2400 +-6889 +10 query I rowsort SELECT ALL - 39 + + 22 @@ -11647,8 +11807,11 @@ SELECT ( - - 84 ) # 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\(0\) \* CAST\(NULL AS Float64\) \+ coalesce\(Int64\(85\), Int64\(30\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL - 75 AS col1, - 0 * + CAST ( NULL AS FLOAT8 ) + COALESCE ( 85, + 30 ) col1 +---- +-75 +NULL query II rowsort SELECT - - 78, 88 * - 30 AS col0 @@ -11731,8 +11894,11 @@ 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\(1\)\) AS count\(\*\)\) / Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 98 ) * + + 91 * + 48 * - - 18 + 47 * 66 AS col0, 15 * - COUNT ( * ) / 24 AS col0 +---- +-7702050 +0 query I rowsort label-2222 SELECT + CAST ( - COUNT ( * ) AS INTEGER ) / CASE AVG ( ALL - + 12 ) WHEN - 16 * - 0 * COUNT ( * ) + + CAST ( 84 AS INTEGER ) THEN NULL ELSE + ( + 87 ) END * 69 + + - 57 col2 @@ -12381,8 +12547,11 @@ SELECT 36 * - 82 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 55 AS col2, + 98 AS col2 +---- +55 +98 query I rowsort label-2346 SELECT ALL - COUNT ( * ) * - - 57 * - 19 * - CASE WHEN NOT + 95 = + + AVG ( ALL + 2 ) THEN + - 60 END * 11 @@ -12558,8 +12727,11 @@ SELECT 29 + 72 + - 58 - - 9 + - CASE 33 WHEN + ( + - COUNT ( DISTINCT - - 57 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col1" at position 0 and "Int64\(\-73\) \+ count\(Int64\(36\)\) \+ Int64\(\-11\) \* \(\- Int64\(10\)\) \+ \(\- Int64\(96\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 10 AS col1, - 73 + COUNT ( 36 ) + + - 11 * - + 10 + - + 96 AS col1 +---- +-58 +10 query II rowsort SELECT DISTINCT 61 AS col0, - ( + 13 ) * 65 - 72 @@ -12570,8 +12742,11 @@ SELECT DISTINCT 61 AS col0, - ( + 13 ) * 65 - 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ Int64\(18\) AS col2" at position 0 and "Int64\(\-48\) \* count\(Int64\(98\)\) \- Int64\(\-10\) \+ sum\(Int64\(6\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 + 18 AS col2, - 48 * + COUNT ( 98 ) - - 10 + + SUM ( + + 6 ) AS col2 +---- +-32 +57 query I rowsort SELECT + 40 + + 26 AS col0 @@ -12720,8 +12895,12 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - 85 # Datafusion - Expected - 34 -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\(34\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT COUNT ( + 2 ) AS col0, 85, 34 AS col0 +---- +1 +34 +85 query I rowsort SELECT DISTINCT ( + 18 ) @@ -13440,8 +13619,11 @@ SELECT ALL - - 44 * - + 54 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "Int64\(95\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 9 AS col1, 95 / + COUNT ( * ) col1 +---- +9 +95 query I rowsort label-2548 SELECT ALL - 36 / + 77 @@ -13949,8 +14131,11 @@ SELECT ALL + - 58 * - 79 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 350350 # Datafusion - Expected - 1971 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-13\)\) \* Int64\(11\) \* Int64\(49\) \* Int64\(50\) 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 II valuesort SELECT - - 13 * + 11 * + 49 * + + 50 AS col1, 27 * + 73 AS col1 +---- +1971 +350350 query II rowsort label-2641 SELECT SUM ( ALL - 9 ) col2, + 40 AS col1 @@ -14226,14 +14411,20 @@ SELECT ALL 18, - 64 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "Int64\(\-58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 AS col0, - 58 col0 +---- +-58 +98 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col2" at position 0 and "Int64\(60\) \* Int64\(\-2\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 77 AS col2, + 60 * - 2 * CAST ( NULL AS INTEGER ) AS col2 +---- +-77 +NULL query II rowsort SELECT - 86 AS col0, 3 AS col2 @@ -14398,8 +14589,11 @@ NULL # 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 "\(\- Int64\(28\)\) AS col2" at position 0 and "Int64\(44\) \+ Int64\(54\) \- Int64\(\-75\) \+ Int64\(87\) \* \(\- count\(\(\- coalesce\(Int64\(\-37\), \(\- Int64\(\-40\)\) \+ Int64\(4\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 28 AS col2, + 44 + 54 - + - 75 + 87 * - + COUNT ( ALL - COALESCE ( - 37, - - 40 + 4 ) ) col2 +---- +-28 +86 query II rowsort SELECT ALL - 50, - 50 AS col0 @@ -14691,8 +14885,11 @@ SELECT ALL + 19 / + 35 + CAST ( + 82 AS INTEGER ) - 42 + NULLIF ( ( 55 ), - 61 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 51 AS col0, 71 AS col0 +---- +51 +71 query I rowsort label-2782 SELECT ALL + - 18 / + + CAST ( + AVG ( + + ( - 43 ) ) AS INTEGER ) + - - 16 AS col2 @@ -16182,8 +16379,11 @@ SELECT DISTINCT + - 18 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "Int64\(\-37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 AS col0, - 37 AS col0 +---- +-37 +65 query I rowsort SELECT ALL - + 67 * - ( + 41 ) @@ -16206,8 +16406,12 @@ SELECT + + 38, + 35 * + - 85 AS col1 # Datafusion - Expected - -82 # Datafusion - Expected - -12 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col1" at position 0 and "\(\- Int64\(10\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - 82 AS col1, - 12 AS col0, - + 10 col1 +---- +-10 +-12 +-82 query I rowsort label-3070 SELECT DISTINCT - - COUNT ( + 80 ) AS col1 @@ -16380,8 +16584,11 @@ SELECT 9 * + 41 AS col0, - 86 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \+ \(\- nullif\(Int64\(74\), Int64\(64\)\)\) \+ Int64\(\-4\) \* Int64\(\-27\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 + - NULLIF ( 74, + 64 ) + - 4 * + - 27 AS col1, ( + 69 ) AS col1 +---- +41 +69 query I rowsort label-3103 SELECT ALL + NULLIF ( - ( + MAX ( - + 94 ) ), - ( + COUNT ( * ) ) * + + ( 63 ) * 67 - - COUNT ( * ) ) * + 79 @@ -16438,8 +16645,11 @@ SELECT 42 + - - 50 - 75 + - 16 * + 40 * 47 * - 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \- CAST\(\(\- Int64\(\-13\)\) AS Float64\) \* CASE Int64\(72\) WHEN \(\- avg\(Int64\(\-88\)\)\) THEN Int64\(80\) ELSE NULL END AS col2" at position 0 and "CASE \(\- Int64\(82\)\) WHEN Int64\(55\) \* \(\- Int64\(23\)\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(9\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(\(\- Int64\(\-66\)\) AS Int32\) END THEN Int64\(49\) \* Int64\(\-37\) \* coalesce\(Int64\(84\), Int64\(49\) \* max\(Int64\(\-61\)\), Int64\(\-48\)\) ELSE NULL END \* Int64\(8\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-81\) \+ Int64\(\-66\) \+ Int64\(\-4\) / Int64\(2\) \* Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort 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 +---- +NULL +NULL query I rowsort label-3113 SELECT 51 / - COUNT ( * ) @@ -17389,8 +17599,11 @@ SELECT ALL - 2 + - 92 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "Int64\(\-38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 AS col1, - 38 AS col1 +---- +-38 +60 query I rowsort label-3299 SELECT ALL - + 58 + + + COUNT ( * ) @@ -17762,8 +17975,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col0" at position 0 and "Int64\(\-97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 AS col0, - 97 AS col0 +---- +-97 +89 query I rowsort label-3372 SELECT + 64 * - MAX ( DISTINCT 17 ) @@ -18192,8 +18408,11 @@ 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\(1\)\) AS count\(\*\)\)\)\) / Int64\(52\) \* Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 45 AS col1, 3 + - ( - ( - COUNT ( * ) ) ) / 52 * 71 AS col1 +---- +3 +45 query I rowsort SELECT 5 + - 99 @@ -18991,8 +19210,11 @@ 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\(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\. +query II valuesort SELECT ALL - COALESCE ( - 41, - COUNT ( * ) ) + COUNT ( * ) / - 36 * 74 * + 74 AS col0, - 51 AS col0 +---- +-51 +41 query I rowsort SELECT 17 - + 74 AS col0 @@ -19215,8 +19437,11 @@ SELECT - 89 - - - 4 + + + 4 * - - 68 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- CAST\(Int64\(\-57\) AS Int32\)\)\)\) AS col2" at position 0 and "Int64\(\-61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( ALL - CAST ( + - 57 AS INTEGER ) ) AS col2, - 61 AS col2 +---- +-1 +-61 query I rowsort SELECT DISTINCT ( - - 59 ) AS col0 @@ -19252,8 +19477,11 @@ SELECT DISTINCT ( + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + COUNT ( * ) ) AS col2, 76 AS col2 +---- +1 +76 query I rowsort label-3653 SELECT + 69 * CAST ( NULL AS INTEGER ) * - 47 @@ -19673,8 +19901,11 @@ SELECT + 83 / - 21 - - 10 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col0" at position 0 and "Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 93 AS col0, 19 AS col0 +---- +19 +93 query I rowsort SELECT 78 - - 25 AS col2 @@ -19779,8 +20010,11 @@ SELECT ALL + MIN ( DISTINCT + - 43 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "Int64\(\-90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 4 AS col2, - 90 AS col2 +---- +-90 +4 query I rowsort label-3753 SELECT 34 - - 52 + - - 59 * 14 * CAST ( NULL AS INTEGER ) + 10 + 13 / 55 * - 83 * - COUNT ( * ) * - 4 @@ -20262,8 +20496,11 @@ SELECT COUNT ( DISTINCT + 76 ) * COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ Int64\(7\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-67\) AS col1" at position 0 and "CAST\(\(\- Int64\(36\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 69 + + 7 + + + COUNT ( * ) * - 67 col1, CAST ( - + 36 AS INTEGER ) AS col1 +---- +-36 +9 query I rowsort label-3845 SELECT 95 / - 49 @@ -20795,8 +21032,11 @@ SELECT MAX ( - 34 ) AS col2 # 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\(8\) \* Int64\(99\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 8 * 99 AS col1, 75 col1 +---- +75 +792 query I rowsort SELECT DISTINCT 55 col2 @@ -21010,8 +21250,11 @@ SELECT 93 + + 65 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -227010 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* Int64\(69\) \* Int64\(\-94\) AS col1" at position 0 and "Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( 35 ) * + 69 * + - 94 AS col1, + 18 AS col1 +---- +-227010 +18 query I rowsort SELECT ALL - ( + - 13 ) - + COALESCE ( - 21, - 35 ) AS col1 @@ -21044,8 +21287,11 @@ SELECT + NULLIF ( - 51, - 98 / 87 + - CAST ( COUNT ( * ) AS FLOAT8 ) ) + - 56 AS # 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 "Int64\(\-90\) AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 AS col2, + 74 AS col2 +---- +-90 +74 query I rowsort SELECT ( 60 ) AS col2 @@ -21378,8 +21624,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) col0, 12 AS col0 +---- +-1 +12 query I rowsort SELECT DISTINCT 81 + + 62 @@ -21448,8 +21697,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* \(\- sum\(Int64\(91\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 67 AS col1, COUNT ( * ) * - SUM ( 91 ) AS col1 +---- +-91 +67 query I rowsort label-4072 SELECT 93 * + 4 * 91 + 27 / + - ( + 25 ) @@ -21749,8 +22001,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col2, COALESCE ( + - 92, - - 87 * - 3, + + ( + - COALESCE ( + 13, + 27, + COALESCE ( 47, - 53, - + ( + 3 ) ) - 65 ) ) ) * - ( - + 72 ) * - - 8 * - 89 + 8 AS col2 +---- +-1 +4716296 query II rowsort SELECT 72 col2, + 82 AS col1 @@ -22026,8 +22281,11 @@ SELECT + 49 + + 51 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(53\) AS Int32\)\) AS col2" at position 0 and "max\(Int64\(16\)\) \- Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( 53 AS INTEGER ) AS col2, MAX ( 16 ) - 79 AS col2 +---- +-53 +-63 query I rowsort SELECT ALL - 8 * - - 5 AS col0 @@ -22047,8 +22305,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * - COUNT ( * ) * - 26 * - MIN ( DISTINCT 91 ) AS col0, 3 AS col0 +---- +-2366 +3 query I rowsort SELECT + + 16 - + 76 AS col2 @@ -22058,8 +22319,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - + NULLIF ( + 33, - - NULLIF ( 94, COUNT ( * ) * + 36 + + NULLIF ( + 61, 65 ) * - 55 ) * - 23 ) / + 96 * - 17 + - - 92 AS col1, ( + + 87 ) AS col1 +---- +87 +92 query I rowsort label-4187 SELECT ALL CASE - ( + + 10 ) WHEN - MIN ( ALL - - CAST ( NULL AS INTEGER ) ) THEN + + 71 + + 15 END * + SUM ( + 56 ) * - 97 / + 31 + + - 5 AS col2 @@ -22393,8 +22657,11 @@ SELECT ALL - 67 AS col0, COUNT ( DISTINCT - - 87 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \- \(\- Int64\(48\)\) AS col0" at position 0 and "\(\- Int64\(\-2\)\) \+ Int64\(\-11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 46 - - + 48 AS col0, ( - - 2 ) + - 11 AS col0 +---- +-9 +94 query II rowsort SELECT ALL - 13 AS col0, - 85 * + - 91 AS col1 @@ -22497,8 +22764,11 @@ SELECT + 62 * + - 74 + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2009 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* \(\- Int64\(\-1\)\) \- Int64\(82\) \+ Int64\(27\) \* 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 II valuesort SELECT 12 * - - 1 - + 82 + 27 * + 77 AS col0, + 62 AS col0 +---- +2009 +62 query I rowsort label-4271 SELECT + 80 / + 29 AS col2 @@ -22558,8 +22828,11 @@ SELECT - 26 + - 48 - + COUNT ( + 73 ) * - 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - -108 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(45\)\), Int64\(\-13\)\) \+ Int64\(\-63\) AS col1" at position 0 and "Int64\(1\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL NULLIF ( ( - + 45 ), - 13 ) + - 63 AS col1, 1 + - - CAST ( NULL AS INTEGER ) AS col1 +---- +-108 +NULL query I rowsort label-4283 SELECT SUM ( + 97 ) @@ -22826,8 +23099,11 @@ SELECT DISTINCT SUM ( ALL - 83 ) * 68 * 46 + - 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 35 AS col2, 4 AS col2 +---- +35 +4 query I rowsort label-4334 SELECT + COUNT ( ALL + 4 ) AS col2 @@ -23298,8 +23574,11 @@ SELECT ALL 63 - + + COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 92 col2, COUNT ( * ) AS col2 +---- +1 +92 query II rowsort SELECT ALL 44 AS col1, 3 @@ -23457,8 +23736,11 @@ SELECT ALL + - NULLIF ( - NULLIF ( + - 76, + 9 + + COUNT ( * ) + + 72 / + 68 ), # 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 "Int64\(\-6\) AS col2" at position 0 and "nullif\(Int64\(69\), Int64\(47\) \* Int64\(66\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 6 AS col2, + NULLIF ( + 69, + 47 * + 66 ) AS col2 +---- +-6 +69 query I rowsort label-4454 SELECT - 50 * - - MIN ( DISTINCT - 21 ) + - 61 @@ -23586,8 +23868,11 @@ SELECT + 84 / 95 * - 90 / + 75 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3840 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* Int64\(\-40\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 96 * - 40 AS col1, COUNT ( * ) AS col1 +---- +-3840 +1 query I rowsort SELECT + ( + - 46 ) @@ -23848,8 +24133,11 @@ SELECT ALL 85 * - - 73 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-24\)\) AS col2" at position 0 and "Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 24 AS col2, 92 AS col2 +---- +24 +92 query II rowsort SELECT 9, 83 AS col2 @@ -24255,8 +24543,11 @@ SELECT - COALESCE ( + + CASE - 49 WHEN + 12 THEN NULL WHEN + ( - + 94 ) THEN - - # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \- Int64\(\-69\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 86 - + - 69 AS col0, 95 AS col0 +---- +-17 +95 query I rowsort label-4605 SELECT CASE - - 31 WHEN - MAX ( ALL + - 79 ) THEN NULL ELSE - 15 END @@ -24266,8 +24557,11 @@ SELECT CASE - - 31 WHEN - MAX ( ALL + - 79 ) THEN NULL ELSE - 15 END # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(\(\- Int64\(70\)\) AS Int32\)\), Int64\(2\), Int64\(59\) \* Int64\(\-60\)\) \+ Int64\(16\) \+ \(\- coalesce\(Int64\(90\), \(\- Int64\(76\)\) \* Int64\(18\) / Int64\(21\), \(\- \(\- Int64\(5\)\)\)\)\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( - CAST ( - + 70 AS INTEGER ), 2, ( + + 59 ) * - 60 ) + + 16 + - ( COALESCE ( + 90, - + 76 * + + 18 / 21, - + ( - + 5 ) ) ) col0, 98 col0 +---- +-4 +98 query II rowsort label-4607 SELECT DISTINCT 31 * - 6 * - 70 - 44 + - COUNT ( * ) + + 54 AS col2, 65 AS col0 @@ -24838,8 +25132,11 @@ NULL # 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 col2" at position 0 and "Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 67 col2, 57 AS col2 +---- +57 +67 query I rowsort SELECT + + 70 * + 45 * + 53 AS col1 @@ -24866,8 +25163,12 @@ 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\(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\. +query III valuesort SELECT - 80 * 29 col0, COUNT ( * ) + - 89 * - 63 * + 96 * + + 15 col0, - - 91 * 86 AS col2 +---- +-2320 +7826 +8074081 query I rowsort label-4718 SELECT + SUM ( - 71 ) AS col0 @@ -25406,8 +25707,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col2" at position 0 and "Int64\(\-91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 92 AS col2, - 91 AS col2 +---- +-91 +92 query I rowsort label-4820 SELECT - COUNT ( * ) + + + 47 * + - 87 AS col0 @@ -25660,8 +25964,11 @@ SELECT DISTINCT - 83 + - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 248 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(27\)\), Int64\(\-39\) \* Int64\(67\) \+ Int64\(77\) \+ count\(Int64\(1\)\) AS count\(\*\), Int64\(55\) \* Int64\(\-99\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- sum\(CAST\(Int64\(31\) AS Int32\)\)\) \+ Int64\(68\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(53\) AS col1" at position 0 and "Int64\(31\) \* Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +248 +63 query I rowsort SELECT + 0 + + 36 col2 @@ -25781,8 +26088,12 @@ SELECT + COUNT ( * ) / + - ( 69 ) # Datafusion - Expected - 14 # Datafusion - Expected - 1 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-74\) AS Int32\)\) \+ Int64\(\-60\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - CAST ( + ( - 74 ) AS INTEGER ) + - 60 AS col2, COUNT ( * ) AS col2, - 63 AS col2 +---- +-63 +1 +14 query I rowsort SELECT + - 37 col1 @@ -25840,8 +26151,12 @@ SELECT DISTINCT + 21 + - 96 # Datafusion - Expected - 82 # Datafusion - Expected - NULL # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \- Int64\(7\) AS col0" at position 0 and "Int64\(\-30\) \+ \(\- sum\(DISTINCT Int64\(\-49\)\)\) \- Int64\(\-51\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 89 - 7 AS col0, - 83 / - CAST ( - CASE CAST ( 26 AS FLOAT8 ) WHEN + 48 THEN NULL ELSE CAST ( NULL AS INTEGER ) * - 45 * - 28 END AS INTEGER ) * + - 73, + - 30 + - SUM ( DISTINCT - 49 ) - + - 51 AS col0 +---- +70 +82 +NULL query I rowsort label-4902 SELECT DISTINCT + MIN ( DISTINCT - - 27 ) * CAST ( NULL AS INTEGER ) @@ -25891,8 +26206,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 * 88 * 47 AS col0, COUNT ( * ) * + - 20 col0 +---- +-20 +248160 query I rowsort SELECT 34 - - ( - 67 ) * 32 col0 @@ -27349,8 +27667,11 @@ SELECT ALL MAX ( DISTINCT + - 57 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 AS col1, - 30 AS col1 +---- +-30 +90 query II rowsort label-5195 SELECT DISTINCT 44, NULLIF ( + + COUNT ( * ), + + 6 * 13 + 5 * + 49 + + - COUNT ( * ) + - 22 ) * - 8 AS col1 @@ -27904,8 +28225,11 @@ SELECT ALL - 72 * 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 7743 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-78\), Int64\(49\)\)\) AS col0" at position 0 and "Int64\(87\) \* \(\- \(\- Int64\(89\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + NULLIF ( - 78, 49 ) AS col0, 87 * - - ( + 89 ) AS col0 +---- +7743 +78 query I rowsort label-5301 SELECT ALL - + CASE + - 92 WHEN - CASE - + 19 WHEN + + MAX ( ALL 57 ) THEN NULL WHEN - 26 + - + 27 THEN NULL ELSE 46 END THEN CAST ( NULL AS INTEGER ) * 32 ELSE CASE 66 WHEN + COUNT ( * ) / ( NULLIF ( - CASE MAX ( + 55 ) WHEN 10 + - COUNT ( * ) THEN - 69 * + 88 WHEN + 3 THEN NULL ELSE NULL END, 46 * + NULLIF ( + CAST ( CASE 21 WHEN + 34 THEN + 31 WHEN + COUNT ( * ) THEN 26 + 28 END AS FLOAT8 ) * + AVG ( + 85 ), 13 ) + + COUNT ( * ) ) ) - 38 * 89 THEN NULL ELSE 60 END - - 29 END @@ -27988,8 +28312,11 @@ SELECT ALL 2 + 4 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 2496 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "Int64\(64\) \* Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 0 AS col0, 64 * + 39 AS col0 +---- +0 +2496 query I rowsort SELECT DISTINCT - 88 * 94 AS col2 @@ -28078,8 +28405,11 @@ SELECT - 56 * - 44 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 1794 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col0" at position 0 and "Int64\(69\) \* Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 AS col0, + 69 * + 26 AS col0 +---- +1794 +52 query I rowsort SELECT DISTINCT - 94 * + 29 - - + 44 @@ -28877,8 +29207,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 27 AS col0, - 74 - - COUNT ( * ) + 81 * COALESCE ( 36, - COUNT ( DISTINCT + + 66 ) ) AS col0 +---- +27 +2843 query I rowsort label-5487 SELECT - + 44 * - CAST ( ( - - COUNT ( * ) ) AS INTEGER ) / - - 90 * COUNT ( * ) * + + 98 @@ -29595,8 +29928,11 @@ SELECT + 37 + 32 + + - 92 - - - COUNT ( * ) - + - COUNT ( * ) / + ( - 60 ) * - + # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-80\)\) \+ Int64\(3\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( ALL - 80 ) + + 3 AS col0, + COUNT ( * ) AS col0 +---- +-77 +1 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -29610,8 +29946,12 @@ NULL # Datafusion - Expected - 86 # Datafusion - Expected - -43 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "Int64\(56\) \+ Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 86 AS col0, + 56 + - 99 AS col0, + ( + 35 ) +---- +-43 +35 +86 query I rowsort label-5625 SELECT DISTINCT CAST ( + 41 AS INTEGER ) @@ -29777,8 +30117,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(\-8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 * - - COUNT ( * ) AS col2, - 8 AS col2 +---- +-8 +35 query II rowsort SELECT - 21, 12 AS col0 @@ -29988,8 +30331,11 @@ SELECT DISTINCT - CAST ( COALESCE ( + 92, - + 1 ) AS INTEGER ) * - 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-12\) / CASE Int64\(\-97\) WHEN \(\- nullif\(Int64\(59\), Int64\(\-19\)\)\) \* \(\- Int64\(36\)\) THEN Int64\(52\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 + COUNT ( * ) AS col1, - 12 / + + CASE - 97 WHEN - NULLIF ( + 59, + - 19 ) * - + 36 THEN + 52 END col1 +---- +36 +NULL query II rowsort label-5698 SELECT 44 + + 90 * ( 20 ) + + 93, CAST ( NULL AS INTEGER ) AS col1 @@ -30579,8 +30925,11 @@ SELECT + 51 * NULLIF ( COUNT ( * ), - COUNT ( * ) + + 18 ) - 8 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col2" at position 0 and "Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 59 AS col2, - 13 AS col2 +---- +-13 +-59 query I rowsort label-5810 SELECT COUNT ( * ) + 36 * CASE + MIN ( + 44 ) WHEN + AVG ( ALL + 73 ) THEN NULL WHEN 23 * + 46 + COUNT ( * ) + + + MIN ( 17 ) + - 96 THEN + 90 ELSE 30 * + 4 + + - 20 + ( 8 ) END @@ -30724,8 +31073,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-27\) \* Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 29 / + 26 - + ( + - 82 ) AS col2, COUNT ( * ) * - 27 * + 61 col2 +---- +-1647 +83 query I rowsort SELECT DISTINCT 37 + - 7 * - 62 AS col1 @@ -31352,8 +31704,11 @@ SELECT ALL + 44 * - 10 AS col2, 19 # 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 "\(\- nullif\(\(\- Int64\(48\)\), Int64\(\-94\) \+ \(\- Int64\(78\)\)\)\) AS col0" at position 0 and "count\(DISTINCT Int64\(\-19\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( - + 48, - 94 + - + 78 ) col0, COUNT ( DISTINCT - 19 ) AS col0 +---- +1 +48 query I rowsort label-5958 SELECT - MIN ( 80 ) + + + COUNT ( * ) @@ -31810,8 +32165,12 @@ SELECT + 95 * + 75 + - - 10 AS col0 # Datafusion - Expected - 2 # Datafusion - Expected - -45 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col0" at position 1 and "Int64\(\-20\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 2, - 45 AS col0, - 20 AS col0 +---- +-20 +-45 +2 query I rowsort SELECT - 38 + + 68 - 86 * + + 25 AS col1 @@ -32162,8 +32521,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), sum\(DISTINCT CASE WHEN NOT NULL IS NOT NULL THEN \(\- \(\- coalesce\(Int64\(\-84\), Int64\(83\), Int64\(64\)\)\)\) ELSE Int64\(17\) END\)\)\) AS col1" at position 0 and "\(\- CASE Int64\(1\) WHEN Int64\(\-79\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-26\) \* Int64\(92\) WHEN Int64\(91\) THEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- sum\(Int64\(10\)\)\) WHEN CAST\(NULL AS Int32\) THEN NULL END\) \* CASE \(\- nullif\(Int64\(\-23\), Int64\(46\)\)\) WHEN Int64\(80\) THEN Int64\(\-24\) \* Int64\(25\) WHEN coalesce\(\(\- \(\- coalesce\(Int64\(48\), \(\- nullif\(Int64\(67\), \(\- count\(\(\- CAST\(Int64\(92\) AS Int32\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(13\)\)\)\)\), Int64\(48\), Int64\(62\) \* CASE WHEN NOT Int64\(97\) IS NULL THEN Int64\(\-67\) END\) THEN NULL ELSE Int64\(16\) \+ Int64\(98\) END \+ Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1 +NULL query I rowsort SELECT DISTINCT - 51 * 45 AS col1 @@ -32317,8 +32679,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 44 - - COUNT ( * ) col2, 18 col2 +---- +-43 +18 query I rowsort label-6138 SELECT - MAX ( DISTINCT NULLIF ( + + 64, - 13 + + 86 ) ) * + 7 @@ -33142,8 +33507,11 @@ SELECT - + 64 + - 33 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col0" at position 0 and "\(\- CAST\(CAST\(NULL AS Int32\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 89 col0, - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col0 +---- +-89 +NULL query II rowsort label-6297 SELECT - - 1 * - + 43 / + + 18, - 65 AS col1 @@ -33174,8 +33542,11 @@ SELECT - 57 * ( 21 ) - + 2 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(DISTINCT Int64\(34\)\)\) \* \(\- Int64\(92\)\) AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + COUNT ( DISTINCT 34 ) * - + 92 AS col1, + 57 AS col1 +---- +57 +92 query I rowsort SELECT ALL ( + - 50 ) col2 @@ -33638,8 +34009,11 @@ SELECT - 38 AS col1, 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\)" at position 0 and "Int64\(39\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 39, 39 +---- +39 +39 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -33709,8 +34083,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * - 52 * 76 + 47 AS col2, 4 AS col2 +---- +-3905 +4 query I rowsort SELECT + 63 col1 @@ -33840,8 +34217,11 @@ SELECT + ( - 66 ) * COUNT ( ALL CAST ( NULL AS FLOAT8 ) ) * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 0 * COUNT ( * ) AS col0, - ( COUNT ( * ) ) AS col0 +---- +-1 +0 query I rowsort label-6429 SELECT - 58 + + CAST ( + 86 AS INTEGER ) / - 49 - 11 @@ -33932,8 +34312,11 @@ SELECT + + ( COALESCE ( MAX ( ALL CAST ( NULL AS INTEGER ) ), + 25 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(56\)\), Int64\(11\) \* nullif\(Int64\(12\), Int64\(30\)\)\) AS col2" at position 0 and "Int64\(41\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COALESCE ( - + 56, + 11 * + NULLIF ( + + 12, + 30 ) ) AS col2, 41 + + CAST ( NULL AS INTEGER ) col2 +---- +-56 +NULL query I rowsort label-6447 SELECT + CASE 14 WHEN + 69 THEN + 45 ELSE NULL END * - COUNT ( * ) AS col2 @@ -34010,8 +34393,11 @@ SELECT DISTINCT - 5 - - 20 + + 28 * + - 14 # 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 "Int64\(92\) \+ \(\- Int64\(43\)\) \+ count\(Int64\(48\)\) AS col0" at position 0 and "\(\- max\(Int64\(29\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 + - + 43 + COUNT ( + 48 ) AS col0, + ( - MAX ( + 29 ) ) AS col0 +---- +-29 +50 query II rowsort SELECT 65, ( + 1 ) * + 97 AS col2 @@ -34253,8 +34639,11 @@ SELECT - 97 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(58\)\) \+ Int64\(24\) AS col0" at position 0 and "Int64\(\-45\) \+ Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 58 + 24 AS col0, - 45 + - 25 AS col0 +---- +-34 +-70 query I rowsort label-6507 SELECT - 40 * + COUNT ( * ) col2 @@ -34573,8 +34962,11 @@ SELECT DISTINCT COALESCE ( - 32, + + 47, + - ( AVG ( + 8 ) ) * + 16 ) / + CAST ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 561 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* \(\- Int64\(\-21\)\) \+ min\(\(\- Int64\(90\)\)\) AS col1" at position 0 and "Int64\(\-16\) \+ Int64\(0\) \+ Int64\(\-21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 31 * - - 21 + + MIN ( - + 90 ) AS col1, - 16 + 0 + - 21 AS col1 +---- +-37 +561 query I rowsort SELECT + 93 + + - 54 AS col1 @@ -34716,8 +35108,11 @@ 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\(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\. +query II valuesort SELECT - COALESCE ( + + COUNT ( * ), + 88 * + 98 + + COUNT ( * ) ) AS col1, + 26 col1 +---- +-1 +26 query I rowsort SELECT ALL + ( - + 27 ) + - 84 col1 @@ -34825,8 +35220,11 @@ SELECT ALL + 1 + + + ( - 25 ) + + 4 AS col0, - 42 * 53 * ( - - 94 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -31374 # Datafusion - Expected - -1982 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* nullif\(Int64\(28\), Int64\(\-94\)\) \* Int64\(\-45\) \+ Int64\(55\) \+ Int64\(28\) \+ Int64\(43\) AS col1" at position 0 and "Int64\(\-31\) \* Int64\(66\) \+ Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 * NULLIF ( + + 28, - 94 ) * - 45 + + 55 + 28 + 43 col1, - 31 * 66 + 64 AS col1 +---- +-1982 +-31374 query I rowsort SELECT - 37 * - 25 * + 36 - + - 1 @@ -35708,8 +36106,11 @@ SELECT ALL 7 * 78 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 60 AS col0, 67 AS col0 +---- +60 +67 query I rowsort SELECT + 36 + - 92 @@ -36264,8 +36665,11 @@ SELECT + 84 AS col2, 78 - + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 123840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col0" at position 0 and "Int64\(60\) \* Int64\(24\) \* Int64\(86\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 87 AS col0, + 60 * + 24 * 86 * + COUNT ( * ) AS col0 +---- +-87 +123840 query I rowsort label-6894 SELECT + 20 / - - 44 + + NULLIF ( - + 13, - + 25 + 13 ) + 73 * COUNT ( * ) * - 29 AS col0 @@ -36507,8 +36911,11 @@ SELECT - NULLIF ( - MAX ( ALL - ( + 70 ) ), - - 61 + - 90 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(83\) \+ Int64\(\-66\) \+ \(\- count\(Int64\(\-51\)\)\) \- Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, 83 + - 66 + - COUNT ( ALL - 51 ) - + 37 AS col2 +---- +-21 +1 query I rowsort SELECT + 45 * 20 + - 40 col1 @@ -36697,8 +37104,11 @@ SELECT - 45 * - + 24 AS col2 # 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 "\(\- max\(Int64\(\-31\)\)\) AS col0" at position 0 and "Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MAX ( - 31 ) AS col0, - 99 AS col0 +---- +-99 +31 query I rowsort label-6974 SELECT - + CASE COUNT ( * ) WHEN - - 12 * + 36 * 37 THEN - 75 WHEN - 29 THEN - 73 + - 41 END AS col1 @@ -37138,8 +37548,11 @@ SELECT ALL + COUNT ( * ) * COUNT ( * ) / + + 43 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \+ Int64\(\-15\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( ( - 18 ) ) + - 15 col1, 72 AS col1 +---- +-33 +72 query I rowsort SELECT DISTINCT - - 30 + 0 AS col2 @@ -37196,8 +37609,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(\-42\)\) \* \(\- min\(DISTINCT Int64\(57\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 1 * + 27 * + 4 AS col0, - 38 - + COUNT ( * ) * ( - - 42 ) * - MIN ( DISTINCT + + 57 ) AS col0 +---- +108 +2356 query I rowsort label-7071 SELECT - COALESCE ( 60, COUNT ( DISTINCT NULLIF ( + 51, + 50 ) ), + 66 ) AS col0 @@ -37405,8 +37821,11 @@ SELECT + NULLIF ( + COUNT ( * ), 86 ) * - 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 49049 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- coalesce\(Int64\(\-77\), Int64\(85\), Int64\(92\)\)\) \* Int64\(7\) \* Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - COALESCE ( + - 77, 85, 92 ) * + 7 * 91 AS col2 +---- +49049 +NULL query I rowsort label-7112 SELECT + 41 + - 34 / + CAST ( + + COUNT ( * ) AS INTEGER ) @@ -37433,8 +37852,11 @@ SELECT + 96 / - 94 * COUNT ( * ) + 7 * + + 83 + - 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(nullif\(\(\- CAST\(NULL AS Int32\)\), count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 0 and "Int64\(76\) \+ \(\- max\(Int64\(\-22\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULLIF ( - CAST ( NULL AS INTEGER ), + COUNT ( * ) ) AS INTEGER ) col1, 76 + - MAX ( - 22 ) AS col1 +---- +98 +NULL query I rowsort label-7117 SELECT ALL + 36 / + COUNT ( * ) + - + 96 @@ -37521,8 +37943,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 93 AS col1, - COUNT ( * ) AS col1 +---- +-1 +93 query I rowsort label-7134 SELECT + COUNT ( * ) * + + 98 @@ -38245,8 +38670,11 @@ SELECT 6 * 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-16\)\) \* count\(DISTINCT CAST\(NULL AS Int32\)\) \+ \(\- \(\- CASE Int64\(67\) WHEN Int64\(\-67\) \- Int64\(97\) \* Int64\(\-47\) \* Int64\(\-31\) THEN \(\- Int64\(31\)\) END\)\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( - - 16 ) * + + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) + - - CASE + 67 WHEN - 67 - + 97 * - 47 * - 31 THEN - + 31 END col1, 45 AS col1 +---- +45 +NULL query I rowsort SELECT ALL - 33 + 29 + + 14 AS col1 @@ -38338,8 +38766,11 @@ SELECT DISTINCT 19 AS col1, ( + 6 ) / - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col0" at position 0 and "Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 72 col0, + 19 col0 +---- +19 +72 query II rowsort label-7291 SELECT 17, COUNT ( * ) * + + 3 * 18 AS col2 @@ -38463,8 +38894,11 @@ SELECT + 63 * - - 65 + 17 * - + 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "Int64\(\-37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 AS col1, - 37 AS col1 +---- +-37 +41 query I rowsort label-7315 SELECT ( + ( + + 43 ) ) + + COUNT ( * ) + MAX ( - 2 ) + - 65 / 95 AS col1 @@ -38510,14 +38944,20 @@ SELECT 18 + + ( - 57 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) / Int64\(87\) AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 34 / + + 87 AS col1, + 50 AS col1 +---- +0 +50 # Datafusion - Datafusion expected results: # Datafusion - Expected - -136 # Datafusion - Expected - -421 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) \+ Int64\(\-90\) AS col0" at position 0 and "Int64\(64\) \* Int64\(\-7\) \+ Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 46 + - 90 AS col0, 64 * + - 7 + + 27 AS col0 +---- +-136 +-421 query I rowsort SELECT - 52 * - - 78 AS col2 @@ -38728,8 +39168,11 @@ SELECT + 5 - 36 * - + 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col0" at position 0 and "Int64\(\-1\) \* Int64\(60\) / coalesce\(Int64\(\-53\), nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(23\)\) \+ Int64\(98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 23 AS col0, - 1 * + 60 / + + COALESCE ( - 53, + NULLIF ( - + CAST ( NULL AS INTEGER ), + 23 ) + + 98 ) AS col0 +---- +1 +23 query I rowsort label-7366 SELECT + 92 + - + COUNT ( * ) / - 4 * + 15 @@ -38979,8 +39422,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - NULLIF ( 49, + COUNT ( * ) / + 40 ) col0, + 24 * + 79 AS col0 +---- +-49 +1896 query I rowsort label-7415 SELECT CASE + 39 WHEN 81 THEN + 59 WHEN + 3 / + 27 THEN - 11 ELSE SUM ( ALL 23 ) END + + 21 AS col1 @@ -39116,8 +39562,11 @@ 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 "coalesce\(Int64\(38\), Int64\(\-40\) / Int64\(\-25\) \+ Int64\(\-92\)\) \+ Int64\(95\) / Int64\(28\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( + 38, + - 40 / - 25 + - 92 ) + ( + 95 ) / + 28 AS col0, 56 AS col0 +---- +41 +56 query I rowsort label-7441 SELECT CAST ( - COUNT ( * ) AS INTEGER ) * - 53 col1 @@ -39384,8 +39833,11 @@ SELECT ALL ( 59 ) - 74 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - 173 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-81\) AS Int32\) AS col1" at position 0 and "Int64\(5\) \* Int64\(18\) \- \(\- Int64\(83\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - 81 AS INTEGER ) AS col1, + 5 * 18 - ( - + 83 ) * COUNT ( * ) AS col1 +---- +-81 +173 query II rowsort label-7492 SELECT ALL 52 / - - 46 AS col0, + 11 AS col2 @@ -39514,8 +39966,11 @@ SELECT ALL - 2 + - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col1" at position 0 and "Int64\(\-22\) \+ count\(Int64\(29\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 96 col1, + ( - 22 ) + COUNT ( + + 29 ) AS col1 +---- +-21 +96 query III rowsort label-7517 SELECT COUNT ( * ) - + 13 + + 71 AS col1, COUNT ( * ), - 97 + + CAST ( + + 5 AS INTEGER ) AS col2 @@ -39747,8 +40202,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 * + 4 col0, 51 / + 30 + - - COUNT ( * ) AS col0 +---- +192 +2 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -39766,8 +40224,11 @@ SELECT COALESCE ( + - COUNT ( * ), + 14 + COUNT ( ALL - 36 ) * - 61, + 93 ) # 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\(66\) \* Int64\(\-21\) \+ CASE Int64\(\-76\) WHEN Int64\(56\) THEN avg\(Int64\(81\)\) WHEN Int64\(\-14\) \- Int64\(38\) \* \(\- Int64\(10\)\) \+ Int64\(\-13\) / Int64\(33\) THEN NULL END \* Int64\(88\) AS col1" at position 0 and "Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT 66 * + - 21 + + ( + CASE - 76 WHEN 56 THEN + AVG ( ALL 81 ) WHEN - 14 - + 38 * - + 10 + - 13 / + 33 THEN NULL END ) * + 88 AS col1, 70 AS col1 +---- +70 +NULL query I rowsort label-7565 SELECT ALL 87 * - - 28 * 88 + - COUNT ( * ) AS col2 @@ -39902,8 +40363,11 @@ SELECT + 33 + - + 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) AS col1" at position 0 and "Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 26 AS col1, - 33 AS col1 +---- +-26 +-33 query I rowsort SELECT - COALESCE ( + 82, + - 63, - + 73 ) AS col0 @@ -40393,8 +40857,11 @@ SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) + COUNT ( 21 ) + - 67 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -432 # Datafusion - Expected - -143276 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* Int64\(12\) AS col0" at position 0 and "Int64\(\-98\) \* Int64\(\-34\) \* \(\- max\(Int64\(43\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 36 * 12 AS col0, - 98 * ( - 34 ) * - MAX ( + + 43 ) col0 +---- +-143276 +-432 query I rowsort label-7686 SELECT DISTINCT COUNT ( * ) + + 92 + + 93 * - - 74 * - SUM ( ALL + 14 ) - - SUM ( ALL 21 ) AS col0 @@ -41082,8 +41549,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 70 AS col1, 13 * 71 / CASE - 62 WHEN - COUNT ( * ) THEN - 14 END * + - 34 AS col1 +---- +-70 +NULL query I rowsort label-7816 SELECT 9 * COUNT ( * ) col1 @@ -41186,8 +41656,11 @@ SELECT ( + 1 ) + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- \(\- \(\- Int64\(\-29\)\)\)\)\) \+ \(\- CAST\(NULL AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(49\)\) \* Int64\(\-61\) AS col2" at position 0 and "\(\- Int64\(3\)\) / Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( - - ( - - 29 ) ) + - CAST ( NULL AS INTEGER ) + COUNT ( * ) * - + 49 * - 61 AS col2, - ( + 3 ) / + ( 29 ) AS col2 +---- +0 +NULL query I rowsort label-7836 SELECT 6 / + ( - CAST ( NULL AS INTEGER ) ) @@ -41439,14 +41912,20 @@ SELECT ALL - MIN ( 93 ) / 82 * - 53 * + 89 + - ( + 23 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 AS col1, + 4 AS col1 +---- +4 +41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col1" at position 0 and "Int64\(10\) \+ \(\- CAST\(NULL AS Float64\)\) \- Int64\(\-8\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + 81 AS col1, 10 + - CAST ( NULL AS FLOAT8 ) - + - 8 / COUNT ( * ) AS col1 +---- +81 +NULL query I rowsort label-7886 SELECT + + CASE NULLIF ( + ( - - CAST ( NULL AS INTEGER ) ), NULLIF ( - 20, + 75 ) * + + 67 * + 57 ) WHEN + + 14 THEN - 20 / + + 71 * - 40 * + - 19 END @@ -41466,8 +41945,11 @@ SELECT DISTINCT + 86 / 69 + + SUM ( - 57 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -4575 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(0\) \* Int64\(2\) \+ \(\- Int64\(75\)\) \* Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, + 0 * + + 2 + - + 75 * + 61 AS col2 +---- +-4575 +1 query I rowsort SELECT DISTINCT + + 10 @@ -41533,8 +42015,11 @@ SELECT DISTINCT - 18 * - - 19 * + ( + + MIN ( + + 46 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1840 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) / Int64\(91\) \+ Int64\(23\) \* \(\- Int64\(\-80\)\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( 65 ) / 91 + + + 23 * - - 80 AS col2, 18 AS col2 +---- +18 +1840 query I rowsort label-7902 SELECT COUNT ( * ) / + 71 AS col0 @@ -41853,8 +42338,11 @@ SELECT DISTINCT + + CASE 30 WHEN + ( - 69 ) - + + 65 THEN - 13 * + 61 + + - 84 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 133 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ \(\- CAST\(\(\- min\(Int64\(75\)\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 58 + + - CAST ( + - ( MIN ( + 75 ) ) AS INTEGER ) col1, + 78 AS col1 +---- +133 +78 query I rowsort label-7963 SELECT 48 / 62 / + 77 * + 8 - - + 42 AS col2 @@ -42075,8 +42563,11 @@ SELECT - 34 * + 35 + - - 62 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + COUNT ( * ) AS col1, COUNT ( * ) AS col1 +---- +1 +1 query II rowsort SELECT + 46 AS col0, 7 @@ -42674,8 +43165,11 @@ SELECT DISTINCT 10 / + - 58 * - 70 * + 44 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - -1682 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "Int64\(\-77\) \- \(\- nullif\(Int64\(38\), Int64\(65\)\)\) \+ \(\- coalesce\(Int64\(31\), Int64\(29\) \* Int64\(29\) \+ Int64\(\-48\)\)\) \* \(\- Int64\(\-53\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 76 AS col0, - 77 - - NULLIF ( + 38, 65 ) + - COALESCE ( 31, + 29 * + 29 + + + ( - 48 ) ) * - - 53 col0 +---- +-1682 +76 query I rowsort SELECT ALL - 29 * - 49 AS col2 @@ -42990,8 +43484,11 @@ SELECT + MAX ( - 58 ) + - 90 col2 # 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 "Int64\(31\) AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 col2, 91 col2 +---- +31 +91 query I rowsort SELECT 15 * - + 23 @@ -43233,8 +43730,11 @@ SELECT ALL COUNT ( * ) + CASE - 46 WHEN ( ( - CAST ( NULL AS FLOAT8 ) ) ) THEN - # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "Int64\(72\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 AS col1, 72 * - - CAST ( NULL AS INTEGER ) AS col1 +---- +3 +NULL query I rowsort label-8223 SELECT DISTINCT 40 + + - COUNT ( * ) / - 66 @@ -43255,8 +43755,11 @@ SELECT ALL + 14 AS col2, + COALESCE ( - 61, + CAST ( - + 13 AS INTEGER ) * + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, + 49 col2 +---- +1 +49 query I rowsort SELECT ALL 38 * - 99 + + 58 AS col2 @@ -43281,8 +43784,11 @@ SELECT ALL + ( 3 ) # 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 "Int64\(68\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 68 AS col1, 72 AS col1 +---- +68 +72 query I rowsort label-8232 SELECT NULLIF ( CAST ( + 73 AS INTEGER ), - - COUNT ( + + 75 ) / - 66 + 38 ) @@ -43554,8 +44060,11 @@ SELECT ALL 51 - + 2 # 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 "Int64\(96\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 96 AS col0, + 64 AS col0 +---- +64 +96 query I rowsort SELECT DISTINCT - 81 * - + 61 col1 @@ -43757,14 +44266,20 @@ 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\(1\)\) AS count\(\*\)\) / Int64\(49\) \- Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 AS col1, - ( + COUNT ( * ) ) / + 49 - + 38 AS col1 +---- +-38 +57 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - -440647 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col2" at position 0 and "Int64\(93\) \+ Int64\(\-79\) \* nullif\(\(\- Int64\(\-60\)\), Int64\(\-29\)\) \* Int64\(93\) \- Int64\(\-80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 19 AS col2, 93 + - 79 * + NULLIF ( + ( - - 60 ), - 29 ) * + 93 - - 80 col2 +---- +-19 +-440647 query II rowsort SELECT ALL 20, + 24 AS col0 @@ -43803,8 +44318,11 @@ SELECT DISTINCT - + COUNT ( * ) * - 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3471 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(10\) \+ Int64\(63\) \+ Int64\(12\) \- Int64\(2\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-39\) \* Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - CAST ( NULL AS INTEGER ) * + 10 + 63 + + 12 - + + 2 * + COUNT ( * ) AS col2, - 39 * - 89 AS col2 +---- +3471 +NULL query II rowsort SELECT 61 AS col2, - 33 @@ -43821,8 +44339,11 @@ SELECT + + 83, COUNT ( DISTINCT + + 20 ) * - - 93 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) / Int64\(\-56\) AS col0" at position 0 and "nullif\(Int64\(32\), \(\- \(\- count\(DISTINCT Int64\(76\)\)\)\) \+ Int64\(2\) \+ CAST\(min\(Int64\(25\)\) AS Int32\)\) \- \(\- Int64\(\-40\)\) \+ \(\- Int64\(65\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 44 / - 56 AS col0, NULLIF ( + 32, - - COUNT ( DISTINCT 76 ) + 2 + + CAST ( + + MIN ( ALL 25 ) AS INTEGER ) ) - + - ( - 40 ) + - + 65 AS col0 +---- +-73 +0 query I rowsort label-8336 SELECT + 53 - + - MAX ( ALL + 72 ) AS col1 @@ -44192,8 +44713,11 @@ SELECT + 10 col0, 19 - - 17 + + - 4 * - ( - COUNT ( * ) ) * + - 83 - + 60 + ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col0" at position 0 and "Int64\(\-62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 71 AS col0, - 62 col0 +---- +-62 +71 query II rowsort label-8406 SELECT ALL + 7 - 71 / + NULLIF ( 24, - 61 * - 94 ) AS col2, + 99 @@ -44328,8 +44852,11 @@ 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\(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\. +query II valuesort SELECT ALL 15 + - COUNT ( * ) + - + COUNT ( * ) * + + 84 col0, + 9 AS col0 +---- +-70 +9 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -45523,8 +46050,11 @@ SELECT ALL ( + 78 ) * + 75 AS col1, 90 * + 62 * + 27 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 AS col0, - 26 AS col0 +---- +-26 +99 query I rowsort label-8662 SELECT DISTINCT 4 * CAST ( NULL AS INTEGER ) * + 81 AS col0 @@ -45589,8 +46119,11 @@ SELECT + 50 + + CASE - - 84 WHEN + + 6 THEN - + 53 WHEN 35 - COUNT ( * ) / - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 64 AS col2, + 84 AS col2 +---- +64 +84 query I rowsort label-8675 SELECT CAST ( + + COUNT ( * ) AS INTEGER ) @@ -45833,8 +46366,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col2, - 16 AS col2 +---- +-16 +NULL query I rowsort SELECT + 9 - 81 AS col0 @@ -45849,8 +46385,11 @@ SELECT DISTINCT 58 - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 56 AS col2, 67 AS col2 +---- +-56 +67 query II rowsort SELECT 1 AS col2, ( + + ( - 24 ) ) * + 2 @@ -46581,8 +47120,11 @@ SELECT DISTINCT + ( - 61 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 2 AS col1, + COUNT ( * ) AS col1 +---- +1 +2 query I rowsort label-8866 SELECT ALL 40 * 27 * COUNT ( * ) AS col0 @@ -46749,8 +47291,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 col1, - COUNT ( * ) AS col1 +---- +-1 +25 query II rowsort SELECT + 48 AS col0, - 72 @@ -47307,8 +47852,11 @@ SELECT 56 + - COUNT ( * ) - 94 - + 52 + - + 69 * 67 * + 38 + - 31 / + - 69 # 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 "Int64\(92\) \- Int64\(69\) AS col1" at position 0 and "Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 - + + 69 AS col1, 70 AS col1 +---- +23 +70 query I rowsort SELECT 66 + + 46 @@ -47348,8 +47896,11 @@ SELECT DISTINCT - 17 + 42 * + + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 2860 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(\-47\) AS col1" at position 0 and "Int64\(\-94\) \* CASE Int64\(7\) WHEN Int64\(97\) / \(\- coalesce\(Int64\(18\), Int64\(\-38\) \* Int64\(80\) \+ \(\- \(\- CASE Int64\(84\) WHEN avg\(Int64\(49\)\) THEN Int64\(39\) WHEN Int64\(54\) \* Int64\(\-93\) \- Int64\(9\) \* Int64\(24\) THEN coalesce\(Int64\(99\), Int64\(64\)\) / Int64\(53\) END\)\) \+ Int64\(62\) \* CASE Int64\(\-54\) WHEN CAST\(NULL AS Int32\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-18\) \+ Int64\(\-51\) WHEN count\(Int64\(1\)\) AS count\(\*\) / Int64\(58\) THEN Int64\(5\) ELSE NULL END, Int64\(36\) / Int64\(\-19\)\)\) \- Int64\(18\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(58\) \* Int64\(51\) ELSE Int64\(\-30\) END \+ Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-47 +2860 query I rowsort SELECT 81 * + + 94 @@ -47640,8 +48191,11 @@ SELECT DISTINCT 39 + ( - + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- Int64\(\-19\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, ( - - 19 ) AS col2 +---- +1 +19 query I rowsort SELECT + 68 + - 86 @@ -47729,14 +48283,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 60 AS col0, 57 col0 +---- +-60 +57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 AS col1, 18 AS col1 +---- +18 +40 query I rowsort label-9089 SELECT - 41 * + + CAST ( NULL AS INTEGER ) + + - 88 AS col2 @@ -47761,8 +48321,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 3 * - COUNT ( * ) AS col2, 13 AS col2 +---- +-3 +13 query I rowsort label-9094 SELECT - ( - + COUNT ( * ) ) * COUNT ( * ) @@ -48028,8 +48591,11 @@ SELECT COUNT ( * ) * - 90 # 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 col2" at position 0 and "\(\- count\(\(\- Int64\(\-4\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 46 AS col2, - COUNT ( ALL - - 4 ) AS col2 +---- +-1 +46 query I rowsort label-9144 SELECT DISTINCT 19 / 48 AS col2 @@ -48183,8 +48749,11 @@ SELECT DISTINCT COUNT ( DISTINCT + + 29 ) * - - 60 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6460 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \* Int64\(76\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 85 * 76 AS col1, COUNT ( * ) AS col1 +---- +-6460 +1 query I rowsort label-9174 SELECT ALL COUNT ( ALL 34 ) @@ -48599,8 +49168,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, ( - 24 ) AS col1 +---- +-24 +1 query I rowsort label-9255 SELECT ALL 70 + - MIN ( DISTINCT + 93 ) - - CASE - CASE COUNT ( * ) WHEN + 83 THEN - + 63 END WHEN + - 50 THEN - 14 WHEN - - 97 / - + SUM ( - 77 ) THEN NULL END * + - 56 / - CASE - + SUM ( + 50 ) WHEN - 30 THEN NULL WHEN + COALESCE ( - 14, + - 15 / - 65 + COUNT ( * ), - 59 ) THEN - 29 + 4 * COUNT ( * ) END AS col1 @@ -48620,8 +49192,11 @@ SELECT + COUNT ( * ) * 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -85196 -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\(19\) \* Int64\(59\) \* Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( - 54 ) AS col1, + 19 * + + 59 * + - 76 AS col1 +---- +-1 +-85196 query I rowsort SELECT ALL + + 84 - + 53 @@ -48940,8 +49515,11 @@ SELECT - 44 / 99 - - 27 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 153 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) AS col2" at position 0 and "\(\- coalesce\(Int64\(\-9\), \(\- Int64\(64\)\)\)\) \* Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 1 AS col2, - COALESCE ( - 9, - + 64 ) * 17 AS col2 +---- +-1 +153 query I rowsort label-9320 SELECT - 62 / - + 13 + + 31 * + 42 - - 50 * 29 col2 @@ -49014,8 +49592,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 4246 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(60\)\) AS col1" at position 0 and "\(\- Int64\(66\)\) \+ Int64\(44\) \* Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 60 AS col1, - ( 66 ) + + 44 * 98 AS col1 +---- +-60 +4246 query I rowsort SELECT DISTINCT - 9 + 22 @@ -49198,8 +49779,11 @@ 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\(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\. +query II valuesort SELECT ALL 64 AS col1, 76 + + 21 - + COUNT ( * ) / + + COUNT ( + + 84 ) + MAX ( DISTINCT 83 ) * - 4 AS col1 +---- +-236 +64 query I rowsort label-9369 SELECT ALL - 96 + + 48 + + ( - + 2 ) * - CASE + 97 WHEN COUNT ( 34 ) * 13 THEN NULL WHEN - 14 / 3 * + - MIN ( 88 ) + - + 75 + - + 39 - COUNT ( * ) * + 44 THEN + + 9 + - NULLIF ( - 98, - + 15 ) * - - 42 * + + 26 END * COALESCE ( 0, COUNT ( * ), COUNT ( * ) ) / COUNT ( * ) col1 @@ -49223,14 +49807,20 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 73 AS col1, + COUNT ( * ) * + - 51 AS col1 +---- +-51 +73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "Int64\(22\) \+ Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 AS col1, 22 + 69 AS col1 +---- +60 +91 query I rowsort SELECT ALL 27 col1 @@ -49539,8 +50129,11 @@ SELECT + 40 - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "count\(DISTINCT CAST\(NULL AS Int32\)\) \* Int64\(28\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 43 AS col1, COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * 28 + + COUNT ( * ) + 43 AS col1 +---- +43 +44 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -49558,8 +50151,11 @@ SELECT - COUNT ( * ) * + 14 + + + 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - -4784 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "\(\- min\(Int64\(52\)\)\) \* Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 32 col0, - MIN ( + + 52 ) * + 92 col0 +---- +-4784 +32 query I rowsort SELECT ALL - 98 - - ( + 56 ) AS col0 @@ -49575,8 +50171,12 @@ SELECT - - 92 + 47 - - + 14 AS col0 # Datafusion - Expected - 48 # Datafusion - Expected - -17 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 48 AS col0, - 17, + 67 AS col0 +---- +-17 +48 +67 query I rowsort label-9441 SELECT ALL + 23 / - 52 AS col0 @@ -49835,8 +50435,11 @@ SELECT ALL 72 + + 68 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col2" at position 0 and "CASE Int64\(55\) WHEN Int64\(\-52\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(26\) THEN Int64\(32\) \- Int64\(38\) \+ Int64\(\-9\) \* Int64\(\-19\) \+ Int64\(98\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(80\)\) \* Int64\(\-6\) \+ Int64\(22\) \* CAST\(Int64\(\-36\) AS Int32\) \* Int64\(\-37\) ELSE NULL END \* Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-2 +NULL query I rowsort SELECT 95 * - 53 @@ -49918,8 +50521,11 @@ SELECT 21 + - - 85 # 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 "Int64\(37\) / Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 8 AS col0, + 37 / + + 12 AS col0 +---- +-8 +3 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -50605,8 +51211,11 @@ SELECT + 3 / - - ( 29 ) # 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\(42\) / Int64\(19\) AS col2" at position 0 and "Int64\(23\) \+ Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 42 / + + 19 col2, + 23 + - 16 AS col2 +---- +2 +7 query II rowsort label-9638 SELECT ALL - NULLIF ( 37, 80 ) * + COUNT ( * ) + COUNT ( * ) AS col0, 65 AS col1 @@ -50669,8 +51278,11 @@ SELECT ALL 72 + - NULLIF ( - 55, + - COUNT ( * ) ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1928 # Datafusion - Expected - -1628 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \- Int64\(99\) \* Int64\(20\) AS col1" at position 0 and "\(\- CASE Int64\(35\) WHEN \(\- max\(Int64\(7\)\)\) \* Int64\(52\) THEN NULL ELSE Int64\(37\) \* min\(DISTINCT Int64\(44\)\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 - 99 * + 20 AS col1, - CASE + + 35 WHEN - MAX ( 7 ) * + 52 THEN NULL ELSE 37 * + + MIN ( DISTINCT 44 ) END AS col1 +---- +-1628 +-1928 query II rowsort SELECT 41 * - 24, 24 col1 @@ -50986,8 +51598,11 @@ SELECT COALESCE ( - + 52, - + MIN ( - 98 ) * 92, + + ( + - NULLIF ( - 4, + 81 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) \* Int64\(63\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 1 * + 63 AS col0, 39 AS col0 +---- +-63 +39 query II rowsort label-9710 SELECT CAST ( + 58 AS INTEGER ) AS col0, 3 * CAST ( NULL AS INTEGER ) @@ -51073,8 +51688,11 @@ SELECT ALL - COUNT ( + 20 ) - - SUM ( DISTINCT - + 11 ) * 21 / + + 93 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1367520 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-74\)\) \* Int64\(11\) \* \(\- Int64\(60\)\) \* \(\- Int64\(\-28\)\) AS col1" at position 0 and "Int64\(\-50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 74 * 11 * - + 60 * - - 28 AS col1, - 50 AS col1 +---- +-1367520 +-50 query I rowsort SELECT + 21 + + 38 col1 @@ -51126,8 +51744,11 @@ SELECT ALL 67 * COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) / Int64\(86\) \* Int64\(71\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 / 86 * 71 AS col2, ( + 53 ) AS col2 +---- +0 +53 query I rowsort label-9735 SELECT ALL COUNT ( * ) * - 4 * 87 @@ -51278,8 +51899,12 @@ NULL # Datafusion - Expected - -14 # Datafusion - Expected - 15 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 1 and "Int64\(\-83\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 14 AS col0, 15 AS col2, - 83 AS col2 +---- +-14 +-83 +15 query I rowsort label-9764 SELECT 98 * + 92 * - COUNT ( * ) AS col1 @@ -51495,8 +52120,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 101 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ Int64\(10\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 91 + + + 10 col2, + ( + 61 ) AS col2 +---- +101 +61 query I rowsort SELECT 4 - 33 AS col1 @@ -52153,8 +52781,11 @@ SELECT 71, 81 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 AS col2, 68 AS col2 +---- +68 +87 query I rowsort label-9929 SELECT + 13 / + - NULLIF ( + 5, + 91 * - 81 * + + 70 * - 28 - + COUNT ( - 26 ) ) diff --git a/data/sqlite/random/expr/slt_good_35.slt b/data/sqlite/random/expr/slt_good_35.slt index 2b5122e..6e27e64 100644 --- a/data/sqlite/random/expr/slt_good_35.slt +++ b/data/sqlite/random/expr/slt_good_35.slt @@ -552,8 +552,11 @@ SELECT - 76 * - 22 * + COUNT ( * ) + 95 + - ( + 78 ) * 65 / + SUM ( DISTINCT - ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 81 AS col1, 60 AS col1 +---- +60 +81 query I rowsort SELECT - ( - - 31 ) * + 46 col1 @@ -573,8 +576,11 @@ SELECT DISTINCT + ( + - COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -152 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(79\) \* Int64\(\-3\) \+ Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 37 AS col0, 79 * - 3 + 85 AS col0 +---- +-152 +37 query II rowsort label-105 SELECT ALL - - 64 * - 36 * + - COUNT ( 61 ) + 71 * + 63 AS col1, - 64 * - 0 @@ -1165,8 +1171,11 @@ SELECT + COUNT ( * ) + + 61 - - + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 782 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* nullif\(Int64\(23\), \(\- Int64\(49\)\) \* CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- Int64\(76\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 34 * NULLIF ( 23, - + 49 * + CAST ( NULL AS INTEGER ) ) AS col0, + ( - + 76 ) AS col0 +---- +-76 +782 query I rowsort label-217 SELECT SUM ( ALL - 15 ) @@ -1808,8 +1817,11 @@ SELECT DISTINCT - NULLIF ( - 81, - 21 * + 59 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "Int64\(95\) \- Int64\(66\) \+ Int64\(\-37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 66 col0, 95 - 66 + - 37 AS col0 +---- +-8 +66 query I rowsort label-344 SELECT + MIN ( - 24 ) AS col1 @@ -2110,8 +2122,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col1" at position 0 and "Int64\(\-53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 AS col1, - 53 AS col1 +---- +-53 +46 query I rowsort SELECT DISTINCT - 67 + - 35 @@ -2920,8 +2935,11 @@ SELECT ALL + + ( + - 75 ) / + 39 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col1" at position 0 and "Int64\(51\) \+ Int64\(\-2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 4 AS col1, 51 + - 2 AS col1 +---- +-4 +49 query I rowsort label-558 SELECT 63 / - + 69 @@ -3040,8 +3058,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) + - 44 AS col2 +---- +-45 +NULL query I rowsort label-581 SELECT COUNT ( * ) + + COUNT ( * ) - + + 81 @@ -3518,8 +3539,12 @@ NULL # Datafusion - Expected - 201 # Datafusion - Expected - 111 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \+ \(\- Int64\(\-89\)\) \+ Int64\(98\) AS col2" at position 0 and "Int64\(94\) \+ Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 14 + - - 89 + + 98 AS col2, 94 + + 17 AS col2, - 42 +---- +-42 +111 +201 query I rowsort label-672 SELECT 45 / - + 28 @@ -3982,8 +4007,11 @@ 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\(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\. +query II valuesort SELECT + ( + 41 ) * - COUNT ( * ) * 36 * - 76 * + 26 * - 93 + ( + COALESCE ( + NULLIF ( + 87, - 13 ), + + 35 ) ) AS col1, 83 + + + 52 * 47 AS col1 +---- +-271241481 +2527 query I rowsort label-761 SELECT + ( + COUNT ( * ) ) - + 62 AS col1 @@ -4013,8 +4041,11 @@ SELECT ALL 30 * + - 19 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 255881 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* Int64\(79\) \* Int64\(79\) AS col2" at position 0 and "\(\- CASE \(\- nullif\(Int64\(\-59\), Int64\(93\)\)\) WHEN Int64\(95\) \+ \(\- coalesce\(Int64\(41\), Int64\(74\) \+ Int64\(66\)\)\) THEN Int64\(\-8\) \+ Int64\(55\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 41 * 79 * + + 79 col2, - CASE - NULLIF ( + - 59, + 93 ) WHEN + + 95 + - COALESCE ( + 41, + 74 + 66 ) THEN - 8 + 55 END col2 +---- +255881 +NULL query I rowsort SELECT + ( + 48 ) AS col2 @@ -4224,15 +4255,22 @@ SELECT ALL + 11 + 73 / + 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "Int64\(13\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 63 AS col2, 13 * COUNT ( * ) AS col2 +---- +13 +63 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1371 # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 and "CASE WHEN nullif\(Int64\(\-55\), Int64\(17\) \+ count\(Int64\(\-18\)\)\) IS NOT NULL THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(29\) \* Int64\(\-3\) \+ Int64\(13\) \* count\(DISTINCT Int64\(22\)\) IS NOT NULL THEN NULL ELSE NULL END / Int64\(98\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-1371 +0 +1 query I rowsort label-807 SELECT 75 * COALESCE ( - + 43, 31 * + - COUNT ( * ) ) + + COUNT ( * ) @@ -4383,8 +4421,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1997 # Datafusion - Expected - -7964 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(96\) \* Int64\(20\) AS col1" at position 0 and "Int64\(72\) \- Int64\(82\) \* Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 + + 96 * + 20 AS col1, 72 - + + 82 * + 98 AS col1 +---- +-7964 +1997 query I rowsort SELECT 64 * - NULLIF ( 0, - 98 ) @@ -4603,8 +4644,11 @@ SELECT - 35 * 37 * + 82 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "Int64\(7\) \+ Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 66 col1, 7 + - 46 col1 +---- +-39 +66 query I rowsort label-878 SELECT ALL + SUM ( + ( + + 75 ) ) * - 52 + - 76 + 30 + - - 35 + + + 23 * + 5 - + 39 AS col0 @@ -4796,8 +4840,11 @@ SELECT 12 + COUNT ( * ) + - 77 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3780 # Datafusion - Expected - -2516 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* Int64\(\-60\) AS col2" at position 0 and "Int64\(\-68\) \* \(\- min\(Int64\(\-37\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 63 * - 60 col2, - 68 * - MIN ( + - 37 ) AS col2 +---- +-2516 +-3780 query I rowsort label-915 SELECT - 50 / 5 * + 32 AS col2 @@ -5941,8 +5988,11 @@ SELECT ALL + - 62 * + 70 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(39\)\) \+ \(\- Int64\(\-16\)\) \+ Int64\(48\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 39 + - - 16 + + 48 AS col2, 50 col2 +---- +25 +50 query I rowsort label-1134 SELECT - 85 * 81 / 74 @@ -6411,8 +6461,11 @@ 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\(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\. +query II valuesort SELECT - 48 AS col2, - 7 / - + COALESCE ( - 87, - COUNT ( * ) ) * COALESCE ( + + 19, + - 84, - 69 + - ( 52 ) ) + - COUNT ( * ) + + 60 + - + 94 AS col2 +---- +-35 +-48 query II rowsort label-1224 SELECT COUNT ( * ) * - - 67 + + + CASE + COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) / + ( + CAST ( - ( ( 32 ) ) AS INTEGER ) ) THEN NULL WHEN 61 + - 97 THEN NULL ELSE - 5 END AS col0, 18 @@ -6454,8 +6507,11 @@ SELECT DISTINCT - NULLIF ( + 58, 46 ), MIN ( 60 ) * 90 + + - 89 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 138 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col1" at position 0 and "\(\- Int64\(\-86\)\) \+ Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 33 AS col1, - ( + - 86 ) + 52 AS col1 +---- +-33 +138 query I rowsort label-1232 SELECT 71 + - 78 + + 52 - - 84 / + 2 @@ -6565,8 +6621,11 @@ SELECT ( + + 2 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1995 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) \* Int64\(35\) AS col0" at position 0 and "Int64\(\-72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 57 * ( + 35 ) AS col0, - 72 AS col0 +---- +-1995 +-72 query II rowsort SELECT ALL - 24 col0, 31 * + 81 + 13 * - 83 @@ -6938,8 +6997,11 @@ SELECT 37 * - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* Int64\(59\) AS col2" at position 0 and "Int64\(\-69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 1 * + + 59 AS col2, - 69 AS col2 +---- +-69 +59 query II rowsort label-1325 SELECT ALL 86, COUNT ( * ) * - - 59 / + + CAST ( NULL AS INTEGER ) + + CASE + 12 WHEN + - COUNT ( * ) THEN NULL WHEN 12 THEN - 42 ELSE NULL END AS col1 @@ -7081,8 +7143,12 @@ SELECT ALL - + 48 AS col1, 58 AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 77 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT CAST ( NULL AS INTEGER ) AS col2, 77 AS col2, - 84 * - COUNT ( * ) AS col2 +---- +77 +84 +NULL query I rowsort SELECT 43 - + 57 AS col1 @@ -7429,8 +7495,11 @@ SELECT ALL + - 93 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) AS col0" at position 0 and "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 52 AS col0, + 61 AS col0 +---- +-52 +61 query I rowsort SELECT + - 82 AS col1 @@ -8109,8 +8178,11 @@ SELECT - + 87 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 357 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* Int64\(51\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 7 * 51 AS col2, 68 AS col2 +---- +357 +68 query I rowsort label-1547 SELECT ALL - + 58 - - 74 / - + ( + 24 ) @@ -8173,8 +8245,11 @@ SELECT + 2, 13 / + - 74 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \+ Int64\(\-76\) \* Int64\(75\) \* Int64\(1\) \+ CAST\(NULL AS Int32\) \+ Int64\(\-75\) / min\(DISTINCT \(\- Int64\(\-17\)\)\) AS col0" at position 0 and "sum\(Int64\(93\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 17 + - 76 * 75 * + 1 + + + CAST ( NULL AS INTEGER ) + - 75 / + MIN ( DISTINCT - - 17 ) AS col0, SUM ( ALL + 93 ) col0 +---- +93 +NULL query I rowsort label-1559 SELECT 44 * + - 37 - - 67 + 19 / + 98 + + - 72 + + 65 @@ -8219,8 +8294,11 @@ 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\(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\. +query II valuesort SELECT + - 41 AS col1, + 62 + + CASE - + MAX ( ALL 0 ) WHEN + 34 THEN - + 51 * + COUNT ( * ) / 48 END * + 61 + 94 + 71 + 27 AS col1 +---- +-41 +NULL query II rowsort label-1568 SELECT ALL COUNT ( * ) col1, 72 + - 41 @@ -8774,8 +8852,11 @@ SELECT + 58 / 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 50 AS col0, 31 AS col0 +---- +31 +50 query I rowsort label-1672 SELECT ALL - COUNT ( * ) / + 20 AS col0 @@ -9080,8 +9161,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(\-99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 49 AS col2, - COUNT ( * ) + + - 99 AS col2 +---- +-100 +49 query I rowsort label-1730 SELECT - 17 / + - 94 @@ -9138,8 +9222,11 @@ 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\(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\. +query II valuesort SELECT ALL + 89 AS col0, CASE 35 WHEN - 9 + - 16 / + SUM ( DISTINCT - - ( + 87 ) ) THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE + 54 END AS col0 +---- +54 +89 query I rowsort SELECT + NULLIF ( 42, + 72 ) @@ -10028,8 +10115,11 @@ SELECT + CAST ( CAST ( + 48 AS INTEGER ) AS INTEGER ) AS col2, + COUNT ( * ) + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 14 AS col0, + 21 col0 +---- +14 +21 query I rowsort SELECT + 35 - 47 @@ -10164,8 +10254,11 @@ SELECT ALL - 38 + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- Int64\(77\)\) AS col0" at position 0 and "coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(\-35\)\) \+ Int64\(14\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - ( + 77 ) col0, + COALESCE ( + COUNT ( * ), - - 35 + + 14 ) AS col0 +---- +1 +NULL query I rowsort label-1935 SELECT ALL + 89 + - + COUNT ( * ) col0 @@ -11500,8 +11593,11 @@ SELECT DISTINCT + 10 * - - 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(79\)\) AS Int32\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - + 79 AS INTEGER ) AS col0, 93 AS col0 +---- +-79 +93 query I rowsort label-2197 SELECT ALL COUNT ( * ) / + - 40 + 1 * CAST ( NULL AS INTEGER ) col1 @@ -12043,8 +12139,11 @@ SELECT ALL 76 * - COALESCE ( - CAST ( + 8 AS INTEGER ), 6 - - - 3 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(\-47\)\)\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( - 47 ) AS col2, + 99 AS col2 +---- +-1 +99 query I rowsort label-2301 SELECT 7 / 92 + 52 + 40 * - + 89 @@ -12260,8 +12359,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 AS col1, - COUNT ( * ) AS col1 +---- +-1 +54 query I rowsort label-2343 SELECT - 15 / - 4 * ( + ( - - NULLIF ( + COUNT ( - + 22 ), + 40 ) ) ) - - + 80 AS col0 @@ -12403,8 +12505,11 @@ SELECT DISTINCT + 26 * COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 27 col0, + 29 AS col0 +---- +27 +29 query I rowsort label-2371 SELECT 38 + + 4 + 84 * - COUNT ( * ) * 89 @@ -12637,8 +12742,11 @@ SELECT DISTINCT + 68 + - ( - 15 ) AS col1, + MAX ( ALL 58 ) + - 22 * + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2650 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \* Int64\(\-53\) AS col0" at position 0 and "Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 50 * - 53 AS col0, + 32 AS col0 +---- +2650 +32 query I rowsort label-2415 SELECT - 74 * COUNT ( * ) col1 @@ -13000,8 +13108,11 @@ SELECT DISTINCT - 95 * - + 92 * 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 6302 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* Int64\(58\) \* Int64\(23\) \* Int64\(87\) \* \(\- nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-6\) / Int64\(96\) \+ \(\- \(\- coalesce\(Int64\(79\), \(\- Int64\(86\)\)\)\)\)\)\) AS col1" at position 0 and "Int64\(31\) \* Int64\(\-41\) \* Int64\(\-5\) \- nullif\(Int64\(53\), Int64\(92\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 * + 58 * + 23 * 87 * + - NULLIF ( - + CAST ( NULL AS INTEGER ), - 6 / + 96 + + ( - - COALESCE ( 79, - + 86 ) ) ) AS col1, 31 * - 41 * - 5 - NULLIF ( + 53, 92 ) AS col1 +---- +6302 +NULL query I rowsort label-2484 SELECT 31 + - 57 + 12 + - + 51 / + - 32 AS col2 @@ -13542,8 +13653,11 @@ SELECT - 31 * - COUNT ( * ) + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col1" at position 0 and "Int64\(\-18\) \+ \(\- Int64\(3\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 AS col1, - 18 + - + 3 AS col1 +---- +-21 +75 query I rowsort label-2588 SELECT + + 14 / - 96 + + ( + COALESCE ( - 78, - 58 ) ) + - + 41 + + MIN ( DISTINCT 52 ) @@ -13625,8 +13739,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -108416 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* \(\- Int64\(16\)\) \* Int64\(77\) AS col2" at position 0 and "Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 * - + 16 * + 77 AS col2, - 74 col2 +---- +-108416 +-74 query I rowsort label-2603 SELECT + COALESCE ( - MIN ( NULLIF ( - + 55, + 78 * + - 23 + + 6 ) ), + 69 * + + 98 * + - CAST ( - - 1 AS INTEGER ) ) @@ -13799,8 +13916,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 97 col0, - 39 * - COUNT ( * ) AS col0 +---- +39 +97 query I rowsort SELECT 75 + + - 74 col0 @@ -14350,8 +14470,11 @@ SELECT ALL + - 39 / + 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 228 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-10\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(19\) \* Int64\(12\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 10 + ( COUNT ( * ) ) AS col0, 19 * 12 * + COUNT ( * ) AS col0 +---- +11 +228 query I rowsort label-2741 SELECT - - 4 - - - 6 / - 86 - - - 49 @@ -14438,8 +14561,11 @@ SELECT 1 + + 62 * 41 + - 13 + - 68 + + - 94 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col2" at position 0 and "Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 33 AS col2, - 38 AS col2 +---- +-38 +33 query II rowsort SELECT 38 * + - 48 * + - ( + + 34 ) * - 29 + - 6 AS col1, ( + + 21 ) col0 @@ -14657,8 +14783,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(92\)\) AS col1" at position 0 and "Int64\(65\) / Int64\(\-67\) \+ Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( DISTINCT + 92 ) AS col1, + 65 / + - 67 + ( + + 21 ) AS col1 +---- +21 +92 query I rowsort label-2799 SELECT ALL + 80 * ( + COUNT ( * ) ) col2 @@ -14907,8 +15036,11 @@ SELECT ALL - COUNT ( * ) * + - 33 # 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 "Int64\(\-3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 40 AS col2, - 3 col2 +---- +-3 +40 query I rowsort label-2847 SELECT + 7 * ( - + 1 ) * - - 9 * 37 + + COUNT ( * ) * - 20 * 90 / - + ( - 54 ) + 9 / 19 + + + 9 * + 85 AS col1 @@ -15176,8 +15308,11 @@ SELECT - 54 * ( - - 74 ) + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 155 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col2" at position 0 and "Int64\(82\) \+ Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 AS col2, + 82 + + + 73 AS col2 +---- +155 +50 query I rowsort SELECT ALL - 83 - - - 30 @@ -15411,8 +15546,11 @@ SELECT ALL + MAX ( 2 ) * - NULLIF ( 75, - - 20 - + COUNT ( * ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(37\) \+ Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, 37 + 58 AS col0 +---- +1 +95 query I rowsort label-2945 SELECT ALL 79 + + NULLIF ( - 72, - 50 ) * 16 * + NULLIF ( + + 10, - + 56 * + + 24 * - - ( - + 83 ) + - COUNT ( * ) ) AS col1 @@ -15528,8 +15666,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1204 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* Int64\(\-43\) AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 28 * + - 43 AS col2, 1 AS col2 +---- +-1204 +1 query I rowsort label-2967 SELECT 48 * COUNT ( * ) + 11 @@ -15921,8 +16062,11 @@ SELECT DISTINCT - 86 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2432 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* Int64\(38\) 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 II valuesort SELECT 64 * 38 AS col2, + COUNT ( 49 ) AS col2 +---- +1 +2432 query I rowsort label-3042 SELECT ALL - 59 * - + MIN ( + 63 ) @@ -15953,8 +16097,11 @@ SELECT + COUNT ( * ) * - 98 + - - ( 55 ) AS col0, - 85 * 73 * COUNT ( * ) * + - # 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 "Int64\(\-87\) / Int64\(\-62\) AS col1" at position 0 and "Int64\(47\) \+ Int64\(\-69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 87 / - 62 AS col1, ( 47 ) + - 69 AS col1 +---- +-22 +1 query I rowsort label-3048 SELECT - COALESCE ( + + 16, + + MIN ( - ( - 43 ) ) + + - 99 ) @@ -16038,8 +16185,11 @@ SELECT ALL 63 * 90 - + 43 AS col2, 42 # 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 "Int64\(\-90\) AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 90 col1, 23 col1 +---- +-90 +23 query I rowsort label-3064 SELECT CAST ( NULL AS INTEGER ) - + + 99 * + - 70 @@ -16219,8 +16369,11 @@ SELECT ALL 58 * 44, + 90 * + MIN ( + - 11 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "Int64\(\-44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 63 AS col1, - 44 AS col1 +---- +-44 +63 query I rowsort label-3097 SELECT + COUNT ( * ) + + 62 + + - 23 * 39 AS col0 @@ -16297,8 +16450,12 @@ SELECT - + 15 / - 15 AS col2 # Datafusion - Expected - 1 # Datafusion - Expected - 60 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(94\), CAST\(Int64\(60\) AS Int32\) \* Int64\(\-78\) \+ Int64\(\-90\)\) \+ Int64\(\-34\) AS col1" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + COUNT ( * ), NULLIF ( 94, + CAST ( + 60 AS INTEGER ) * - 78 + ( + - 90 ) ) + + - 34 AS col1, + + COUNT ( * ) AS col1 +---- +1 +1 +60 query II rowsort label-3111 SELECT - + 30 + - 38 * - COALESCE ( - - 75, + - CAST ( - 82 AS INTEGER ), CAST ( NULL AS INTEGER ), MAX ( ALL 6 ) ), 68 AS col0 @@ -16345,8 +16502,11 @@ SELECT 89 * - + 30 - + 57 + - 98 AS col2, + COUNT ( * ) # 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\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 AS col0, + 92 AS col0 +---- +6 +92 query I rowsort label-3120 SELECT + CAST ( - 68 AS INTEGER ) + - 82 AS col2 @@ -16484,8 +16644,11 @@ SELECT DISTINCT - - 2 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1220 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* max\(DISTINCT Int64\(33\)\) \+ Int64\(65\) AS col1" at position 0 and "Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 * + + MAX ( DISTINCT + 33 ) + + ( 65 ) AS col1, 89 AS col1 +---- +1220 +89 query III rowsort label-3146 SELECT DISTINCT 60 + SUM ( ALL - 17 ) * - 49 * - + 57 AS col2, 24 + NULLIF ( 75, + 75 ) * 27 AS col1, + + MAX ( + 89 ) + - 86 @@ -16852,8 +17015,11 @@ SELECT + 44 / - 15 + - 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-58\)\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( - 58 ) AS col2, + 55 AS col2 +---- +-58 +55 query II rowsort SELECT + 35 + + 98, - 87 AS col2 @@ -17144,8 +17310,11 @@ SELECT ALL 98 * - - 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col0" at position 0 and "Int64\(75\) \+ \(\- Int64\(97\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 71 AS col0, 75 + - + 97 AS col0 +---- +-22 +-71 query I rowsort SELECT ALL 92 - + 79 @@ -17738,8 +17907,11 @@ SELECT + 67 + - + 79 + 52 * - 55 * + 15 * 3 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(54\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + ( + + 54 ) AS col1, COUNT ( * ) AS col1 +---- +-54 +1 query II rowsort SELECT ALL + 73 + - 3 AS col2, - 35 AS col1 @@ -17954,14 +18126,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, 90 AS col2 +---- +-1 +90 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-62\) / Int64\(\-78\) / Int64\(29\) \* \(\- CAST\(NULL AS Int32\)\) THEN NULL WHEN Int64\(53\) THEN Int64\(22\) \+ Int64\(63\) \+ \(\- \(\- Int64\(82\)\)\) \* Int64\(22\) \+ Int64\(25\) \+ Int64\(11\) END / Int64\(24\) AS col2" at position 0 and "max\(Int64\(\-3\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-3 +NULL query II rowsort SELECT ALL 52 AS col2, + 24 @@ -18362,8 +18540,11 @@ SELECT DISTINCT ( 78 ) * - - 48 AS col2 # 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 "Int64\(55\) AS col2" at position 0 and "Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 AS col2, 22 AS col2 +---- +22 +55 query I rowsort label-3503 SELECT DISTINCT - + CAST ( COALESCE ( - - 30, - - 73 ) AS INTEGER ) AS col1 @@ -18378,8 +18559,11 @@ SELECT ALL - COALESCE ( + - CASE + - 96 WHEN 39 THEN - + 85 ELSE NULL END, + - 4 # 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 "Int64\(\-74\) AS col2" at position 0 and "Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 74 col2, + 51 AS col2 +---- +-74 +51 query I rowsort SELECT - 58 * + - 32 AS col0 @@ -18630,8 +18814,11 @@ SELECT DISTINCT + 26 * 56 * + CASE - 62 WHEN - 75 THEN - ( 93 ) + + ( - 38 ) ELS # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- Int64\(22\)\)\)\) AS col0" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - MIN ( ALL - + 22 ) AS col0, - CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 +---- +1 +22 query I rowsort label-3554 SELECT + COUNT ( * ) + + 54 @@ -18694,8 +18881,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-2\), Int64\(40\) \+ Int64\(6\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 + - + 94 * + - 29 AS col2, - 64 * - + COALESCE ( - + MAX ( ALL - NULLIF ( + ( 22 ), + 68 ) ), + COUNT ( * ) * ( - 2 ), 40 + 6 ) AS col2 +---- +1408 +2753 query I rowsort label-3566 SELECT ALL ( - ( - CASE + COALESCE ( + 70, - + 9 ) WHEN 45 * COUNT ( * ) * - 40 THEN NULL WHEN - 75 * + COUNT ( * ) THEN - + COUNT ( * ) ELSE NULL END ) ) * + 84 / 1 + - CASE 1 WHEN + 69 THEN + MIN ( - 83 ) + - 19 * + + COUNT ( 85 ) + - 19 ELSE NULL END / 92 @@ -18779,8 +18969,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CASE + 55 WHEN + 74 * - 33 THEN + 22 / 37 END AS col2, 88 + + + 89 * - COUNT ( * ) col2 +---- +-1 +NULL query I rowsort SELECT ALL + 99 * - 3 * 53 * - 87 AS col0 @@ -18980,8 +19173,11 @@ SELECT ALL - 67 + - + MIN ( DISTINCT + + 45 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 81 AS col0, CAST ( NULL AS INTEGER ) AS col0 +---- +81 +NULL query II rowsort SELECT 98 AS col2, + 75 @@ -19337,8 +19533,11 @@ SELECT 52 - 88 + - + 40 * - + CAST ( - COUNT ( 30 ) AS INTEGER ) + - 10 / - 89, # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col2" at position 0 and "Int64\(21\) \+ Int64\(\-55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 87 AS col2, 21 + - 55 AS col2 +---- +-34 +-87 query I rowsort label-3688 SELECT ALL - MIN ( ALL + 49 ) @@ -19528,14 +19727,20 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( + 57, 81, + 30 * + - 4 * + 21 + + - 22 ) col1, 38 + + COUNT ( * ) + 65 AS col1 +---- +104 +57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(11\) \* Int64\(\-16\) \+ CASE Int64\(47\) WHEN Int64\(\-5\) \* sum\(CAST\(NULL AS Float64\)\) \- Int64\(\-3\) THEN Int64\(17\) \+ CAST\(NULL AS Int32\) WHEN Int64\(45\) \* Int64\(\-63\) / Int64\(\-77\) \- count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +63 +NULL query II rowsort label-3726 SELECT - 69 + + COUNT ( * ) * + - 19 + - + 23, MIN ( + 37 ) AS col0 @@ -20186,8 +20391,11 @@ SELECT DISTINCT 89 AS col1, 61 * + - 28 * - 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 AS col1, 32 AS col1 +---- +32 +89 query I rowsort label-3855 SELECT - SUM ( + + ( 14 ) ) * - COUNT ( * ) @@ -21086,8 +21294,11 @@ SELECT - 51 * - - 75 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, + 90 AS col1 +---- +1 +90 query II rowsort SELECT ALL + 41 AS col2, - 19 AS col0 @@ -21126,8 +21337,11 @@ SELECT ALL COUNT ( * ) * 95 * + ( + + ( COUNT ( * ) ) ) * + - COUNT ( * ) * + - # 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 "Int64\(51\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 AS col0, 56 AS col0 +---- +51 +56 query II rowsort label-4036 SELECT ALL - NULLIF ( + 28, 9 ) AS col1, CAST ( - CAST ( + + 11 AS INTEGER ) AS INTEGER ) + 64 @@ -21634,8 +21848,12 @@ SELECT + 51 * 51 * ( ( + CAST ( + COALESCE ( - + 21, + CAST ( NULL AS INTEGER ) # Datafusion - Expected - 30 # Datafusion - Expected - -1 # Datafusion - Expected - -1242 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 30 AS col1, - 1 AS col1, - + 23 * + + 54 AS col2 +---- +-1 +-1242 +30 query II rowsort label-4134 SELECT DISTINCT + COUNT ( * ) AS col1, + 19 + + + COALESCE ( 91, + 21, ( - 95 ) ) @@ -21759,14 +21977,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(12\)\)\) AS col1" at position 0 and "Int64\(52\) \+ \(\- \(\- min\(\(\- Int64\(45\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MIN ( ALL + 12 ) AS col1, 52 + - - MIN ( - + 45 ) AS col1 +---- +-12 +7 # 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\(94\) \+ Int64\(\-31\) AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 94 + - 31 AS col0, 59 AS col0 +---- +59 +63 query I rowsort SELECT ALL NULLIF ( - 70, - - ( 30 ) * + + 8 - + 80 * + 3 + 92 * - 54 + - 45 ) @@ -22109,8 +22333,11 @@ SELECT DISTINCT - NULLIF ( 40, + NULLIF ( + ( - - 8 ), - - 86 ) * + 74 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(4\) \+ Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 16 col0, 4 + + 39 col0 +---- +16 +43 query II rowsort SELECT DISTINCT + 99, + 8 + - - 70 AS col1 @@ -22157,8 +22384,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \+ \(\- Int64\(\-68\)\) 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 II valuesort SELECT ALL - 89 + - - 68 AS col2, ( - - MIN ( 68 ) ) AS col2 +---- +-21 +68 query I rowsort label-4235 SELECT ALL + CAST ( NULL AS INTEGER ) * - + 54 AS col0 @@ -22558,8 +22788,12 @@ SELECT DISTINCT 91 AS col0, + MIN ( - 38 ) * - + 85 # Datafusion - Expected - 42 # Datafusion - Expected - 79 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 42 AS col2, 79 AS col2, 16 +---- +16 +42 +79 query I rowsort SELECT 49 + - 67 * 7 col0 @@ -22574,8 +22808,11 @@ SELECT DISTINCT - 17 / - - 25 * - - ( + COALESCE ( - 97, - + COUNT ( + 26 ) * - # 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\(8\)\) \- \(\- Int64\(8\)\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + 8 ) - - + ( + + 8 ) AS col0, 72 AS col0 +---- +0 +72 query I rowsort label-4315 SELECT 33 * 51 / + NULLIF ( + 6, + - COUNT ( * ) ) @@ -23545,8 +23782,11 @@ SELECT DISTINCT - 30 * - ( - SUM ( 44 ) ) + + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "\(\- coalesce\(CASE Int64\(26\) WHEN Int64\(\-38\) THEN \(\- CAST\(Int64\(\-65\) AS Int32\)\) \* \(\- Int64\(\-52\)\) \+ \(\- Int64\(\-78\)\) WHEN Int64\(\-82\) \* Int64\(\-19\) THEN NULL WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN Int64\(38\) END, Int64\(79\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-79 +14 query I rowsort label-4502 SELECT DISTINCT + 23 + 97 / - 90 @@ -23790,8 +24030,11 @@ SELECT DISTINCT + 7 * - 30 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(98\)\) AS col0" at position 0 and "Int64\(\-54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( ( + 98 ) ) AS col0, - 54 col0 +---- +-54 +98 query I rowsort SELECT + + 68 * - - 8 * + 38 - 92 AS col0 @@ -24133,8 +24376,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3404 # Datafusion - Expected - 2679 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* \(\- \(\- nullif\(Int64\(\-37\), Int64\(79\)\)\)\) AS col1" at position 0 and "Int64\(57\) \* Int64\(47\) \+ Int64\(51\) / Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 * - - NULLIF ( - 37, + + 79 ) AS col1, 57 * + 47 + 51 / 97 AS col1 +---- +-3404 +2679 query I rowsort label-4613 SELECT - 25 + COUNT ( * ) * - COUNT ( * ) * + 15 @@ -25366,8 +25612,11 @@ SELECT DISTINCT - ( + + 32 ) * - + 38 * + 20, COALESCE ( 68, + COALESCE ( - COUN # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \- Int64\(57\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 70 - + 57 AS col0, COUNT ( * ) AS col0 +---- +1 +13 query I rowsort SELECT 43 * - 17 + - 27 * - 49 * + 47 AS col1 @@ -25437,8 +25686,11 @@ SELECT ALL 99 * SUM ( DISTINCT + + ( - - 72 ) ) AS col2, + 94 * + 74 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col2" at position 0 and "min\(Int64\(8\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 57 AS col2, MIN ( + 8 ) AS col2 +---- +-57 +8 query I rowsort label-4861 SELECT ALL + ( - 34 ) + CAST ( NULL AS INTEGER ) + + 15 AS col0 @@ -25468,8 +25720,11 @@ SELECT SUM ( DISTINCT - 8 ) - + 85 + + 59 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col1" at position 0 and "Int64\(\-75\) \+ Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 63 AS col1, - 75 + 53 AS col1 +---- +-22 +-63 query II rowsort SELECT 24, 27 * + 27 AS col0 @@ -25485,8 +25740,11 @@ SELECT - - COUNT ( + + 59 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 2306 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "Int64\(26\) \- \(\- Int64\(\-60\)\) \* Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 63 AS col2, + 26 - - - 60 * - 38 AS col2 +---- +2306 +63 query II rowsort label-4870 SELECT ALL + COUNT ( * ) col1, - 64 AS col2 @@ -25523,8 +25781,11 @@ SELECT 31 * + ( + - 71 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3588 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- \(\- nullif\(Int64\(39\), max\(Int64\(85\)\)\)\)\), Int64\(\-49\) \* \(\- count\(DISTINCT Int64\(0\)\)\) \* \(\- Int64\(11\)\) \+ coalesce\(\(\- CAST\(Int64\(40\) AS Int32\)\), Int64\(5\)\) \+ Int64\(\-71\) \+ Int64\(\-98\)\) \* Int64\(92\) AS col2" at position 0 and "CASE Int64\(79\) WHEN Int64\(37\) \- Int64\(\-56\) \- Int64\(\-70\) THEN \(\- Int64\(67\)\) WHEN Int64\(56\) \* min\(Int64\(99\)\) \* \(\- Int64\(86\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(DISTINCT Int64\(\-62\)\) THEN NULL ELSE NULL END \* Int64\(\-62\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +3588 +NULL query I rowsort label-4877 SELECT MAX ( + 98 ) AS col2 @@ -25534,8 +25795,11 @@ SELECT MAX ( + 98 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -211 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \* Int64\(4\) \- Int64\(39\) AS col0" at position 0 and "Int64\(\-33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 43 * 4 - + 39 col0, - 33 col0 +---- +-211 +-33 query I rowsort label-4879 SELECT CAST ( NULL AS INTEGER ) * - MIN ( DISTINCT + 67 ) AS col1 @@ -25597,8 +25861,11 @@ SELECT - 86 + 55, + ( - 65 ) AS col1 # 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 "Int64\(39\) \+ Int64\(\-40\) AS col0" at position 0 and "Int64\(71\) \+ Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 39 + + - 40 AS col0, 71 + + 14 AS col0 +---- +-1 +85 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -26499,8 +26766,12 @@ SELECT DISTINCT + - 76 AS col0 # Datafusion - Expected - 23 # Datafusion - Expected - -2992 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \* Int64\(88\) AS col2" at position 1 and "Int64\(26\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 3 * + 20 + - 37, - 34 * 88 AS col2, 26 AS col2 +---- +-2992 +23 +26 query II rowsort label-5064 SELECT ALL + 39 * - - 14 + - - 86 - - - 74 + ( - ( COALESCE ( - 46, - 40 ) ) ) + + 96 - COUNT ( + - ( + + 46 ) ) * + 31 / + + 58 + + - ( + + COUNT ( * ) ) * + 77 * - 11 + SUM ( + - 4 ) + + 26, - NULLIF ( + - 3, 49 ) AS col2 @@ -26605,8 +26876,11 @@ SELECT 30 - + 21 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 AS col0, 59 AS col0 +---- +18 +59 query I rowsort label-5084 SELECT MAX ( ALL 54 ) * + 81 * + 4 + + - COUNT ( * ) * - ( 66 ) * - COALESCE ( 30, - CAST ( NULL AS INTEGER ) ) + - 80 + - 27 + 52 * + - 98 + + 53 AS col2 @@ -26637,8 +26911,11 @@ SELECT 34 AS col2, - COUNT ( * ) - - 16 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 col2, ( 66 ) AS col2 +---- +-82 +66 query II rowsort label-5090 SELECT ALL 34 AS col1, + COUNT ( * ) * 10 AS col0 @@ -26855,8 +27132,11 @@ SELECT 85 + + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2705 # Datafusion - Expected - -3366 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \- Int64\(\-15\) \+ Int64\(\-29\) \* Int64\(95\) AS col1" at position 0 and "Int64\(\-66\) \* sum\(\(\- Int64\(\-51\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 35 - + - 15 + - 29 * 95 AS col1, - 66 * + + SUM ( ALL - - 51 ) AS col1 +---- +-2705 +-3366 query I rowsort SELECT + ( - 87 ) * 20 + NULLIF ( + 6, - 85 - + + 4 ) @@ -27296,8 +27576,11 @@ SELECT 70 + - 7 col2 # 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 "\(\- Int64\(\-1\)\) AS col0" at position 0 and "Int64\(66\) \- Int64\(\-7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 1 AS col0, 66 - - 7 AS col0 +---- +1 +73 query I rowsort SELECT ALL + 40 + + 24 AS col2 @@ -27333,8 +27616,11 @@ SELECT - - 29 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 53 col0, 2 AS col0 +---- +-53 +2 query I rowsort label-5224 SELECT - 53 + - COUNT ( * ) @@ -28086,8 +28372,11 @@ SELECT ALL + MAX ( ALL + 59 ) + - 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col1" at position 0 and "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 27 AS col1, + 58 AS col1 +---- +-27 +58 query I rowsort label-5371 SELECT COUNT ( * ) * - + ( 4 ) AS col2 @@ -28097,8 +28386,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 32 AS col2, COUNT ( * ) - - 37 AS col2 +---- +32 +38 query I rowsort label-5373 SELECT COUNT ( * ) * ( - 64 ) @@ -28180,8 +28472,11 @@ SELECT 65 * 9 - + 24 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 5885 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "Int64\(64\) \* Int64\(92\) \+ Int64\(\-3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 8 col2, 64 * + 92 + - 3 AS col2 +---- +5885 +8 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -28565,8 +28860,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(\-25\)\), Int64\(69\) / Int64\(\-43\)\) AS col2" at position 0 and "Int64\(\-62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( - - 25, 69 / - 43 ) AS col2, - 62 col2 +---- +-62 +25 query I rowsort label-5462 SELECT + ( CASE + - 83 WHEN COUNT ( * ) - 21 THEN NULL WHEN + + COUNT ( * ) * - - 4 THEN + - ( - NULLIF ( + 31, + - CAST ( NULL AS INTEGER ) * - COALESCE ( - - 33, - 42, 42 ) + - 1 ) ) ELSE NULL END ) @@ -29441,8 +29739,11 @@ SELECT ( - + COUNT ( * ) ) * + COUNT ( ALL 37 ) + + 79 * + 22 # 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\(\-2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 43 AS col1, - 2 AS col1 +---- +-2 +-43 query I rowsort SELECT 78 * + 31 col2 @@ -29759,8 +30060,11 @@ SELECT ALL + 37 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / Int64\(13\) / Int64\(61\) \* \(\- CASE Int64\(95\) WHEN Int64\(25\) \+ \(\- avg\(CAST\(NULL AS Int32\)\)\) THEN CAST\(NULL AS Int32\) WHEN Int64\(96\) THEN NULL END\) / coalesce\(Int64\(\-89\), Int64\(31\) \* CAST\(\(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(53\) \* Int64\(99\)\)\) AS Int32\) \+ Int64\(22\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +8 +NULL query I rowsort label-5695 SELECT - CAST ( + ( - - 10 ) AS INTEGER ) / - 66 AS col0 @@ -29897,8 +30201,11 @@ SELECT - - 3 + + + ( 7 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -831 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \- Int64\(\-41\) AS col1" at position 0 and "Int64\(29\) \* Int64\(\-29\) \+ min\(DISTINCT Int64\(10\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 49 - - 41 AS col1, + 29 * + - 29 + + + MIN ( DISTINCT + 10 ) col1 +---- +-831 +90 query I rowsort label-5721 SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) AS col0 @@ -30522,8 +30829,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 71 * - - 19 * - 98 * - + 23 AS col0, ( 31 ) * - COUNT ( * ) col0 +---- +-31 +3040646 query II rowsort label-5840 SELECT ALL 77 + COUNT ( * ), - 93 AS col1 @@ -30642,8 +30952,11 @@ SELECT ALL + MAX ( + - 1 ), - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* Int64\(\-23\) \+ Int64\(33\) \+ Int64\(\-91\) / Int64\(61\) \+ Int64\(\-30\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 63 * - 23 + 33 + - 91 / 61 + - 30 * - CAST ( NULL AS INTEGER ) AS col1, + 21 AS col1 +---- +21 +NULL query I rowsort label-5863 SELECT ALL + + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) @@ -31035,8 +31348,11 @@ SELECT + - 80 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "coalesce\(Int64\(\-16\), CAST\(Int64\(81\) AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\), Int64\(\-94\) \* \(\- Int64\(\-17\)\) \+ Int64\(17\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 57 col0, COALESCE ( ( - 16 ), CAST ( 81 AS INTEGER ) * - + COUNT ( * ) * COUNT ( * ), + - 94 * - + ( - 17 ) + + 17 ) col0 +---- +-16 +57 query I rowsort label-5939 SELECT ALL COUNT ( * ) * - + 18 + - 29 AS col1 @@ -31257,8 +31573,12 @@ SELECT + 25 * 45 # Datafusion - Expected - NULL # Datafusion - Expected - -11799 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* Int64\(\-44\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(76\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 96 * + - 44 + - - CAST ( NULL AS INTEGER ) AS col0, + 23 * - 19 * 27, 76 AS col0 +---- +-11799 +76 +NULL query I rowsort SELECT ( - 85 ) AS col1 @@ -31421,8 +31741,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 99 AS col1, - COUNT ( * ) AS col1 +---- +-1 +-99 query I rowsort label-6012 SELECT + COUNT ( DISTINCT + + 23 ) AS col1 @@ -31453,8 +31776,11 @@ 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\(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\. +query II valuesort SELECT - 65 * 87 * + - 59 * 4 - + 0 * + 81 * - + MAX ( 41 ) + - COUNT ( * ) AS col2, 65 - - 74 AS col2 +---- +1334579 +139 query I rowsort label-6018 SELECT DISTINCT + COUNT ( * ) * 75 AS col2 @@ -31568,8 +31894,11 @@ SELECT ALL + 85 * COUNT ( * ) + - 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ Int64\(\-71\) AS col0" at position 0 and "Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 + - 71 AS col0, - 90 AS col0 +---- +-16 +-90 query I rowsort label-6040 SELECT + + ( + 69 ) * + - CAST ( NULL AS INTEGER ) - 21 * + + 76 @@ -31814,14 +32143,21 @@ SELECT + 36 + + 53 AS col2 # Datafusion - Expected - -1 # Datafusion - Expected - -1509569 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(25\) \* \(\- min\(Int64\(1\)\)\) \* Int64\(48\) \* Int64\(37\) \* Int64\(34\) \+ CAST\(\(\- Int64\(\-31\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - COUNT ( * ) AS col1, + 25 * - MIN ( + 1 ) * + 48 * + 37 * + 34 + CAST ( - - 31 AS INTEGER ) AS col1, + + 31 col0 +---- +-1 +-1509569 +31 # 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\(1\)\) AS count\(\*\) \* Int64\(9\)\)\)\) \+ Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-28 +-9408 query I rowsort label-6088 SELECT ALL COUNT ( * ) * + 66 AS col1 @@ -31892,8 +32228,11 @@ SELECT ALL ( + 38 ) * ( + - 68 ) + - + 14 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - COUNT ( * ) ) AS col0, COUNT ( * ) col0 +---- +-1 +1 query I rowsort label-6102 SELECT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + SUM ( ALL - 70 ) + + 78 * + - 44 + + + 84 @@ -32067,8 +32406,11 @@ SELECT ALL COUNT ( ALL 76 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2664 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) \* Int64\(\-72\) AS col0" at position 0 and "Int64\(\-18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 37 * + - 72 AS col0, - 18 AS col0 +---- +-18 +2664 query I rowsort label-6135 SELECT + 42 + - - 74 - - CAST ( NULL AS INTEGER ) * - - 60 * - - ( + 87 ) - + 63 + + COUNT ( * ) + - 25 + - 79 @@ -32488,8 +32830,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -238 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(\-14\) AS col1" at position 0 and "CAST\(NULL AS Float64\) \+ \(\- Int64\(\-29\)\) \+ \(\- Int64\(\-32\)\) \+ Int64\(78\) \* \(\- min\(Int64\(\-59\)\)\) \- \(\- nullif\(Int64\(6\), Int64\(79\) \* Int64\(\-71\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT + ( 17 ) * + ( - 14 ) AS col1, CAST ( NULL AS FLOAT8 ) + - ( + - 29 ) + - - 32 + 78 * + - MIN ( - 59 ) - - + NULLIF ( ( + + 6 ), 79 * - 71 ) AS col1 +---- +-238 +NULL query I rowsort label-6214 SELECT ALL + - 32 / + COUNT ( * ) - 11 - - - 58 - - + 79 @@ -32546,8 +32891,11 @@ SELECT DISTINCT - 16 * - - 23 + - - 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col1" at position 0 and "Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + ( + - 12 ) AS col1, - 82 AS col1 +---- +-12 +-82 query II rowsort label-6225 SELECT ALL - 8 * - NULLIF ( - + COUNT ( * ), 99 * 42 * - 76 + - 63 / + 8 ) + + - 37, - 59 AS col1 @@ -32846,8 +33194,11 @@ SELECT ALL 76 + - + 34 * - 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 83 col2, 55 AS col2 +---- +-83 +55 query I rowsort label-6283 SELECT ALL 58 + + COUNT ( * ) + + 46 + 99 * + 86 * + CASE + ( + + COUNT ( * ) ) WHEN COUNT ( * ) THEN NULL WHEN - - COUNT ( * ) THEN 88 END + 89 * 21 + - 7 AS col1 @@ -32980,8 +33331,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) + CASE 18 WHEN + 97 THEN - 16 END AS col2, 50 / 88 AS col2 +---- +0 +NULL query II rowsort SELECT ALL - ( 5 ) AS col1, - 42 * - - 66 @@ -33678,8 +34032,11 @@ 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\(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\. +query II valuesort 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 +---- +1680 +40 query I rowsort label-6441 SELECT ALL - CAST ( - - 12 AS INTEGER ) @@ -33745,8 +34102,11 @@ SELECT + + 36 * - MAX ( + 53 ) * + 32 * - 60 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT - 90 AS col1, 2 AS col1 +---- +-90 +2 query I rowsort SELECT ALL - 55 + - 38 @@ -34662,8 +35022,11 @@ SELECT - - 52 * - ( + 56 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -870 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "Int64\(87\) \* \(\- Int64\(10\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 64 AS col1, 87 * - ( + 10 ) AS col1 +---- +-870 +64 query I rowsort label-6629 SELECT DISTINCT + ( COALESCE ( - - 19, - + 76 * - COUNT ( * ) ) ) @@ -34766,8 +35129,11 @@ 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\(1\)\) AS count\(\*\) \- \(\- Int64\(67\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( - + 11, + 90 ) AS col2, COUNT ( * ) - - + 67 AS col2 +---- +11 +68 query I rowsort label-6649 SELECT ALL + + COUNT ( * ) / - ( - 79 ) @@ -34938,8 +35304,11 @@ SELECT COUNT ( * ) + + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 558 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-62\) \* Int64\(\-9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 49 + ( COUNT ( * ) ) AS col1, - 62 * + - 9 AS col1 +---- +50 +558 query I rowsort SELECT + 19 + - COALESCE ( + - ( 45 ), + 76, + 53 ) @@ -35556,8 +35925,11 @@ SELECT - 62 * - 26 AS col2 # 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 "Int64\(32\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 32 col1, + 88 AS col1 +---- +32 +88 query I rowsort SELECT DISTINCT 88 col2 @@ -36337,8 +36709,12 @@ SELECT ALL 89, + 10 AS col2 # Datafusion - Expected - -61 # Datafusion - Expected - 7138 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* Int64\(83\) AS col0" at position 1 and "min\(Int64\(\-31\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL COUNT ( * ) + - 62 AS col1, 86 * 83 AS col0, ( + MIN ( - 31 ) ) AS col0 +---- +-31 +-61 +7138 query I rowsort SELECT 67 * - 87 AS col2 @@ -37071,8 +37447,11 @@ 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\(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\. +query II valuesort SELECT ( + 11 ) * - COUNT ( * ) - 51 * 46 AS col1, 60 AS col1 +---- +-2357 +60 query I rowsort SELECT 17 + - 62 + 89 * + 21 + - 24 AS col2 @@ -37217,8 +37596,11 @@ SELECT ALL MAX ( ALL + + 56 ) * + - 4 + - ( + COUNT ( * ) ) + - 64 AS col0, 77 A # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col2" at position 0 and "CAST\(Int64\(20\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 59 ) col2, + CAST ( + 20 AS INTEGER ) AS col2 +---- +20 +59 query I rowsort label-7119 SELECT + CASE - + 51 WHEN + - COUNT ( DISTINCT - 40 ) THEN NULL WHEN + ( - COUNT ( * ) ) THEN - + COUNT ( * ) END AS col2 @@ -37299,8 +37681,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, + 46 AS col1 +---- +-1 +46 query I rowsort label-7135 SELECT - + COUNT ( * ) + 10 * + 97 + CASE + 21 WHEN 54 THEN 79 END @@ -37357,8 +37742,11 @@ SELECT + 41 + + 57 / - 99 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 140 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \+ Int64\(75\) AS col2" at position 0 and "Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 65 + + 75 AS col2, - 95 AS col2 +---- +-95 +140 query I rowsort label-7146 SELECT ALL + 54 / + ( - CAST ( - 30 AS INTEGER ) ) + - 54 @@ -38495,8 +38883,11 @@ SELECT - 68 * - COALESCE ( + ( + 29 ), + COUNT ( * ) * 97, + SUM ( ALL 41 ) + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col0" at position 0 and "Int64\(\-21\) \+ Int64\(96\) \- Int64\(\-53\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 AS col0, - 21 + + 96 - - 53 * COUNT ( * ) AS col0 +---- +128 +3 query I rowsort label-7366 SELECT - ( + MAX ( ALL - 30 ) ) + 42 * ( + 69 * - 61 ) @@ -39238,8 +39629,11 @@ SELECT - COUNT ( * ) + + + ( + 33 ) + - 81 * - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - -2520 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col2" at position 0 and "Int64\(28\) \* CAST\(Int64\(\-90\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 22 AS col2, + 28 * + CAST ( - 90 AS INTEGER ) AS col2 +---- +-22 +-2520 query I rowsort label-7508 SELECT - COUNT ( * ) + + - 55 + + 55 * 89 AS col0 @@ -39510,8 +39904,11 @@ SELECT DISTINCT 39 * + CAST ( + ( + - AVG ( ( + + 49 ) ) ) AS INTEGER ) * + 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 136 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(73\) AS col2" at position 0 and "\(\- coalesce\(\(\- max\(DISTINCT \(\- CAST\(Int64\(72\) AS Int32\)\)\)\), sum\(Int64\(72\)\) \- Int64\(24\)\)\) \+ CASE Int64\(1\) WHEN Int64\(84\) THEN Int64\(21\) \+ count\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(97\), Int64\(49\)\) END \* Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +136 +NULL query I rowsort SELECT 70 * - 93 col0 @@ -40001,8 +40398,11 @@ SELECT - - 5 / COALESCE ( + - COUNT ( * ), + 0 ) * 19 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 109 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "Int64\(90\) \+ Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( 9 ) AS col2, 90 + + + 19 AS col2 +---- +109 +9 query I rowsort SELECT ALL 12 * - 19 AS col2 @@ -40615,8 +41015,11 @@ 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\(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\. +query IR valuesort 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 +---- +-376 +61 query I rowsort SELECT - 74 * + 79 + + + 5 @@ -41032,8 +41435,11 @@ SELECT ALL - 50 / 28 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col2" at position 0 and "\(\- Int64\(33\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 AS col2, - ( 33 ) AS col2 +---- +-33 +65 query I rowsort SELECT - + ( - - 39 ) col2 @@ -41389,8 +41795,11 @@ SELECT - + 3 * + + 58 # 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 col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 43 AS col1, + 64 AS col1 +---- +-43 +64 query II rowsort label-7921 SELECT - - COUNT ( * ) - + 96 / - 22, COUNT ( * ) col0 @@ -41469,8 +41878,11 @@ SELECT - NULLIF ( - 54, 50 + - + COALESCE ( - + 81, - 37 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 28 + + COUNT ( * ) AS col1, + COUNT ( * ) AS col1 +---- +1 +29 query I rowsort label-7936 SELECT ALL + 24 / - - ( - - ( + 57 ) ) + 42 @@ -41784,8 +42196,12 @@ SELECT ALL 95 AS col1, 15 # Datafusion - Expected - -48 # 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 1 and "CASE \(\- \(\- \(\- CASE \(\- Int64\(\-90\)\) WHEN Int64\(48\) THEN Int64\(\-49\) / \(\- Int64\(56\)\) \- Int64\(\-31\) \* Int64\(\-52\) \* Int64\(\-73\) \+ \(\- \(\- CAST\(Int64\(\-56\) AS Float64\)\)\) WHEN Int64\(\-75\) THEN NULL ELSE Int64\(2\) \* Int64\(\-97\) \- Int64\(68\) \+ Int64\(66\) END\)\)\) WHEN coalesce\(Int64\(\-86\), Int64\(89\)\) THEN Int64\(70\) ELSE NULL END AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 48 col0, + 72 AS col1, CASE - ( - - CASE - - 90 WHEN + 48 THEN - 49 / - + 56 - - 31 * + - 52 * - 73 + + ( - - CAST ( + + ( - 56 ) AS FLOAT8 ) ) WHEN - 75 THEN NULL ELSE + 2 * - 97 - + 68 + 66 END ) WHEN COALESCE ( - 86, + 89 ) THEN + 70 ELSE NULL END AS col1 +---- +-48 +72 +NULL query II rowsort SELECT - 51 col1, + 27 @@ -42012,14 +42428,21 @@ SELECT ALL - 54 * + - 50 AS col1 # Datafusion - Expected - 1 # Datafusion - Expected - 83 # Datafusion - Expected - -150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 and "Int64\(\-46\) \- min\(nullif\(Int64\(54\), Int64\(56\) \+ Int64\(10\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(50\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - COUNT ( * ) + + CAST ( + + 2 AS INTEGER ) AS col1, 84 - + COUNT ( * ) col2, - 46 - + MIN ( NULLIF ( + 54, + 56 + + 10 ) ) + + - COUNT ( * ) * + 50 AS col2 +---- +-150 +1 +83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63388 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \* Int64\(\-53\) \* Int64\(23\) AS col1" at position 0 and "Int64\(89\) \+ Int64\(41\) / Int64\(78\) \* Int64\(\-78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 52 * - 53 * + 23 AS col1, + 89 + + 41 / 78 * - 78 AS col1 +---- +63388 +89 query I rowsort SELECT + 58 * - COALESCE ( 30, - 4, 76 ) @@ -42161,8 +42584,11 @@ SELECT + 84 * + + 24 + + 13 * + 11 + + 49 + - 66 - 49 + SUM ( + 17 ) AS col2 # 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 "Int64\(52\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 52 AS col0, 49 AS col0 +---- +49 +52 query I rowsort label-8067 SELECT + COUNT ( * ) + + + 43 AS col2 @@ -42533,8 +42959,11 @@ SELECT + + COALESCE ( 91, + CASE + - 26 WHEN + 41 * + 59 / + 44 THEN + 71 WHEN + # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 5 col1, 2 AS col1 +---- +-5 +2 query I rowsort SELECT - 74 * + 68 - 92 + + 40 AS col0 @@ -42730,8 +43159,11 @@ NULL # 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\(36\) / Int64\(37\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 / 37 AS col2, 87 AS col2 +---- +0 +87 query I rowsort label-8176 SELECT 42 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) @@ -42889,8 +43321,11 @@ SELECT DISTINCT - 42 + COUNT ( * ) * 94 + - - 50 + COUNT ( * ) + + 37 * + 52 + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 83655 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "Int64\(\-65\) \* CAST\(Int64\(\-99\) AS Int32\) \* Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 AS col1, - 65 * + CAST ( - 99 AS INTEGER ) * + 13 AS col1 +---- +17 +83655 query I rowsort SELECT 61 + - + 91 AS col2 @@ -43475,8 +43910,11 @@ SELECT ALL 14, 94 + 26 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 339 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \+ Int64\(6\) \* Int64\(42\) AS col1" at position 0 and "Int64\(\-7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 + 6 * ( + 42 ) AS col1, - 7 AS col1 +---- +-7 +339 query I rowsort SELECT 6 + 63 @@ -43548,8 +43986,11 @@ SELECT ALL ( - 20 ) + - + 34 * 56 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 AS col2, + ( + 55 ) AS col2 +---- +36 +55 query I rowsort SELECT + COALESCE ( + 36, 54 ) AS col0 @@ -43705,8 +44146,11 @@ 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\(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\. +query II valuesort SELECT ALL - 0 + + + COUNT ( * ) * - - 95 AS col2, + 30 AS col2 +---- +30 +95 query II rowsort label-8362 SELECT DISTINCT SUM ( ALL 12 ), + 89 AS col2 @@ -43844,8 +44288,11 @@ SELECT ALL 5 * - + 70 * + 48 / - COUNT ( * ) / + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 275 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* min\(Int64\(25\)\) AS col1" at position 0 and "count\(DISTINCT Int64\(\-9\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 11 * MIN ( ALL + 25 ) AS col1, + COUNT ( DISTINCT + - 9 ) AS col1 +---- +1 +275 query I rowsort SELECT + 16 * 55 @@ -44291,8 +44738,11 @@ 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\(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\. +query II valuesort 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 +---- +11 +62902 query I rowsort SELECT ALL 87 + - + 52 col2 @@ -44324,8 +44774,12 @@ SELECT ALL + 13 * - CAST ( 52 AS INTEGER ) AS col0, 37 AS col1 # Datafusion - Expected - -63 # Datafusion - Expected - -1 # Datafusion - Expected - 7613 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col1" at position 0 and "Int64\(45\) / Int64\(\-31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 63 AS col1, 45 / - 31 AS col1, + 98 * + 78 + - + 31 +---- +-1 +-63 +7613 query I rowsort SELECT 11 + + 98 @@ -44572,8 +45026,11 @@ SELECT ALL NULLIF ( - 77, - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, - 30 col1 +---- +-30 +1 query II rowsort SELECT ALL + 82 * - 59 AS col1, 11 + + 1 - 91 @@ -44633,8 +45090,11 @@ SELECT DISTINCT ( - - 64 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1333 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(31\)\) \* Int64\(43\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 31 * 43 AS col2, 68 AS col2 +---- +-1333 +68 query I rowsort SELECT ALL 48 + + 0 + - 72 + + 87 + 12 @@ -45036,8 +45496,11 @@ SELECT 37 + - 57 * 23 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -185220 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "Int64\(90\) \* Int64\(49\) \* Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 86 AS col0, 90 * + 49 * - 42 AS col0 +---- +-185220 +86 query I rowsort SELECT ALL - 77 - + 77 @@ -45798,8 +46261,11 @@ SELECT - + 34 * 62 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4716 # Datafusion - Expected - 904 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \* Int64\(49\) \+ Int64\(\-97\) \* Int64\(37\) AS col0" at position 0 and "Int64\(12\) \* Int64\(76\) \+ \(\- Int64\(8\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 23 * + 49 + - 97 * 37 AS col0, + 12 * + 76 + - ( 8 ) AS col0 +---- +-4716 +904 query II rowsort label-8759 SELECT ALL + + 58 AS col0, - NULLIF ( 74, 82 / + 46 + 80 + - SUM ( - 90 ) ) @@ -45956,8 +46422,11 @@ SELECT DISTINCT - 24 + + MAX ( ALL - - 66 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -150 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(97\)\) \+ Int64\(\-53\) AS col1" at position 0 and "Int64\(42\) / Int64\(\-33\) \+ \(\- count\(nullif\(Int64\(16\), \(\- CAST\(Int64\(\-5\) AS Int32\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 97 + - 53 AS col1, + 42 / - 33 + - COUNT ( NULLIF ( + 16, + - CAST ( - 5 AS INTEGER ) ) ) AS col1 +---- +-150 +-2 query I rowsort SELECT DISTINCT - + 1 + + 78 @@ -46176,8 +46645,11 @@ SELECT DISTINCT - + 61 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col0" at position 0 and "\(\- min\(Int64\(\-11\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 92 AS col0, - MIN ( ALL + - 11 ) AS col0 +---- +-92 +11 query II rowsort label-8831 SELECT - 70 * - 0 / - 80 AS col2, 61 @@ -46731,8 +47203,11 @@ SELECT - - 62 * + 20 + + 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "coalesce\(\(\- Int64\(19\)\), Int64\(86\)\) \+ Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col0, COALESCE ( - + 19, + + 86 ) + + + 97 col0 +---- +1 +78 query I rowsort SELECT - - 93 - - - 4 @@ -46769,8 +47244,12 @@ SELECT - 81 / 27 # Datafusion - Expected - 87 # Datafusion - Expected - 86 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- sum\(Int64\(87\)\)\)\) AS Int32\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL CAST ( - - SUM ( + 87 ) AS INTEGER ) AS col0, 86, + 9 AS col0 +---- +86 +87 +9 query I rowsort label-8940 SELECT - 8 - - COUNT ( * ) AS col0 @@ -47812,8 +48291,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2800 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \* Int64\(70\) 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 II valuesort SELECT ALL + - 40 * + 70 col1, - COUNT ( - ( 65 ) ) AS col1 +---- +-1 +-2800 query I rowsort SELECT DISTINCT + + 72 AS col0 @@ -47997,8 +48479,12 @@ SELECT - 55 * - 55 - + 33 AS col0 # Datafusion - Expected - 21 # Datafusion - Expected - 252 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col2" at position 0 and "Int64\(4\) \* Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 21 AS col2, + 4 * + 63 AS col2, + CASE + CAST ( COUNT ( * ) AS INTEGER ) WHEN - CAST ( COALESCE ( - COUNT ( * ), + 64 ) AS INTEGER ) / - 60 + 77 THEN NULL WHEN 7 + + 81 THEN NULL WHEN - 86 * 7 THEN - NULLIF ( + 0, 58 ) END +---- +21 +252 +NULL query I rowsort label-9181 SELECT - 64 / + 89 @@ -48183,8 +48669,11 @@ SELECT + 90 + - 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col0" at position 0 and "Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 40 col0, - 19 AS col0 +---- +-19 +-40 query II rowsort label-9217 SELECT 82 + + CAST ( + 39 AS INTEGER ) + + 66, 92 AS col1 @@ -48318,8 +48807,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1896 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(86\), Int64\(\-87\)\)\) \+ Int64\(\-42\) \* \(\- CAST\(NULL AS Float64\)\) AS col2" at position 0 and "Int64\(24\) \* Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - NULLIF ( 86, - 87 ) + - 42 * - CAST ( NULL AS FLOAT8 ) AS col2, 24 * + 79 col2 +---- +1896 +NULL query I rowsort SELECT DISTINCT + 91 + - 82 * - - 59 AS col2 @@ -48391,14 +48883,20 @@ SELECT ALL 37 - 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9025 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* \(\- Int64\(\-95\)\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 95 * - - 95 AS col0, 35 AS col0 +---- +35 +9025 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4200 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* Int64\(\-50\) AS col0" at position 0 and "Int64\(60\) \+ Int64\(4\) \+ \(\- Int64\(12\)\) / Int64\(97\) \* sum\(Int64\(81\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 84 * - 50 AS col0, ( 60 ) + + + 4 + - + 12 / 97 * SUM ( 81 ) AS col0 +---- +-4200 +64 query I rowsort SELECT ALL - 15 - 76 col0 @@ -48728,8 +49226,11 @@ SELECT ALL + ( - + 52 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -7900 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "Int64\(64\) \* Int64\(3\) \* Int64\(\-41\) \+ max\(Int64\(\-28\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( - CAST ( NULL AS INTEGER ) ) col1, 64 * 3 * + - 41 + MAX ( + - 28 ) AS col1 +---- +-7900 +NULL query I rowsort SELECT - 65 + ( - + ( + 80 ) ) AS col1 @@ -49298,8 +49799,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col2" at position 0 and "CAST\(Int64\(\-5\) AS Int32\) \+ Int64\(25\) / Int64\(\-18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + - 75 ) AS col2, CAST ( - 5 AS INTEGER ) + + 25 / - 18 col2 +---- +-6 +-75 query I rowsort label-9427 SELECT + 51 * - - 28 + 69 + - 30 - - 45 - 9 - + - 49 / 18 AS col0 @@ -49520,8 +50024,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 col2, 99 AS col2 +---- +77 +99 query I rowsort SELECT ALL + - 5 AS col0 @@ -49647,8 +50154,11 @@ SELECT 97 - + ( + 18 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -340 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(34\), Int64\(38\)\) \* \(\- min\(Int64\(10\)\)\) AS col0" at position 0 and "Int64\(\-72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( 34, + 38 ) * - MIN ( ALL + 10 ) AS col0, - 72 AS col0 +---- +-340 +-72 query I rowsort label-9494 SELECT ALL COUNT ( * ) - - 32 * + + 91 @@ -50154,8 +50664,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(25\) \* Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 41 AS col0, COUNT ( * ) * + 25 * 68 AS col0 +---- +-41 +1700 query II rowsort SELECT ALL + - 24, - 55 + + - 58 * - 37 AS col0 @@ -50570,8 +51083,11 @@ SELECT - - 65 + - 0, 24 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -390 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) \* Int64\(26\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 15 * 26 AS col1, 67 col1 +---- +-390 +67 query I rowsort SELECT + + 90 + - 6 AS col0 @@ -50923,8 +51439,11 @@ SELECT 25 * 1 AS col2, + 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 29 AS col1, + 48 AS col1 +---- +29 +48 query I rowsort label-9739 SELECT 41 * + COUNT ( * ) + 37 + + COUNT ( * ) * + MIN ( 78 ) * 17 + - - 36 AS col0 @@ -51245,8 +51764,11 @@ SELECT + 43 + + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 16 AS col0, + 10 AS col0 +---- +10 +16 query I rowsort label-9800 SELECT + 18 / - 88 / + - 84 / 73 + - - 82 @@ -51828,8 +52350,11 @@ SELECT ALL - 23 * + 12 * + ( - + COUNT ( * ) ) * - 56 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 "Int64\(9\) \* \(\- nullif\(Int64\(\-42\), Int64\(\-42\)\)\) \+ Int64\(\-40\) AS col2" at position 0 and "Int64\(69\) / Int64\(\-91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 9 * + ( - NULLIF ( + - 42, - 42 ) ) + - 40 AS col2, + 69 / - 91 AS col2 +---- +0 +NULL query II rowsort label-9913 SELECT 48 AS col2, - CAST ( NULL AS INTEGER ) + 36 diff --git a/data/sqlite/random/expr/slt_good_36.slt b/data/sqlite/random/expr/slt_good_36.slt index 429d3a6..293dfb2 100644 --- a/data/sqlite/random/expr/slt_good_36.slt +++ b/data/sqlite/random/expr/slt_good_36.slt @@ -571,8 +571,11 @@ 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\(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\. +query RI valuesort SELECT + COUNT ( * ) - - - CAST ( NULL AS FLOAT8 ) * + 87 + + + 13 col0, 6 / MIN ( ALL - 56 ) AS col0 +---- +0 +NULL query I rowsort SELECT - - 78 AS col1 @@ -742,8 +745,11 @@ SELECT DISTINCT - COUNT ( * ) - - 72 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-84\)\) AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( - - 84 AS INTEGER ) AS col2, - COUNT ( * ) * + + 38 AS col2 +---- +-38 +84 query I rowsort SELECT DISTINCT + - 90 * 21 @@ -939,8 +945,11 @@ SELECT COUNT ( * ) + - + 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col2" at position 0 and "Int64\(\-96\) \+ \(\- \(\- Int64\(28\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 AS col2, - 96 + - - ( + 28 ) AS col2 +---- +-68 +-70 query I rowsort SELECT DISTINCT + ( + 20 ) AS col2 @@ -1573,8 +1582,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 - - 26 col0, COUNT ( * ) * + 3 AS col0 +---- +108 +3 query I rowsort SELECT ( + 65 ) @@ -1590,8 +1602,11 @@ SELECT 59 / COUNT ( * ), - 18 * - SUM ( 34 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7482 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(\-86\) AS col0" at position 0 and "\(\- Int64\(\-67\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 * - 86 AS col0, - ( - 67 ) AS col0 +---- +-7482 +67 query I rowsort label-293 SELECT ALL - NULLIF ( CAST ( NULL AS INTEGER ), 6 ) col0 @@ -2027,8 +2042,11 @@ SELECT ALL + ( 84 ) - - 66 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 84 AS col1, + 69 AS col1 +---- +-84 +69 query II rowsort label-377 SELECT DISTINCT - 55 AS col2, 74 * 57 / 13 + + 96 @@ -2206,8 +2224,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 99935 # Datafusion - Expected - 2412 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-60\) AS Int32\) \* \(\- sum\(\(\- Int64\(\-17\)\)\)\) \* Int64\(98\) \+ Int64\(\-25\) AS col1" at position 0 and "Int64\(60\) \+ Int64\(55\) \* Int64\(41\) \+ Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( - 60 AS INTEGER ) * + - SUM ( - - 17 ) * + + 98 + + - 25 col1, + 60 + + 55 * + 41 + 97 AS col1 +---- +2412 +99935 query II rowsort label-411 SELECT ALL - 88, 62 / - 70 AS col0 @@ -2292,8 +2313,11 @@ SELECT ALL 6 + - 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 13 AS col0, + 36 AS col0 +---- +13 +36 query I rowsort SELECT DISTINCT - COALESCE ( - 82, - 49 ) AS col1 @@ -2329,8 +2353,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col0, ( - 39 ) * - + 17 * 14 * + 84 * - - SUM ( DISTINCT + - 4 ) AS col0 +---- +-1 +-3118752 query II rowsort SELECT ALL - 64 + - 55 AS col1, 39 @@ -3200,8 +3227,11 @@ SELECT - ( - 24 ) + - + COUNT ( * ) AS col1 # 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 "max\(\(\- Int64\(\-46\)\)\) AS col0" at position 0 and "Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MAX ( ALL - - 46 ) col0, + 11 AS col0 +---- +11 +46 query I rowsort label-599 SELECT + COUNT ( + + 33 ) * + + 42 col2 @@ -3319,8 +3349,12 @@ SELECT NULLIF ( - NULLIF ( - + 36, + 12 * - + 41 ), - 37 * - 56 * + - ( 70 ) + - # Datafusion - Expected - 37 # Datafusion - Expected - 11 # Datafusion - Expected - 1121 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* Int64\(1\) AS col0" at position 0 and "Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 37 * 1 AS col0, 11 AS col0, - + 25 * - - ( - + 41 ) + + 58 + 38 +---- +11 +1121 +37 query I rowsort label-622 SELECT - COUNT ( DISTINCT - + 29 ) * + CASE MAX ( ALL + NULLIF ( + - 94, - 81 ) ) WHEN + 82 THEN - - COALESCE ( 31, COUNT ( * ), MAX ( DISTINCT - - 42 ), + 54 ) - + 77 END @@ -3474,8 +3508,11 @@ SELECT 67 * + 67 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col2" at position 0 and "Int64\(\-18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 col2, - 18 AS col2 +---- +-18 +33 query I rowsort label-652 SELECT 86 / - 70 AS col2 @@ -4668,8 +4705,11 @@ SELECT DISTINCT + - 32 + + 37 / 30 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90 AS col1, + COUNT ( * ) AS col1 +---- +1 +90 query I rowsort label-885 SELECT DISTINCT COALESCE ( - 19, - ( COUNT ( * ) ) ) @@ -4841,8 +4881,11 @@ SELECT 96 + 5 * + 7 * + + 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - -817 # Datafusion - Expected - -1500 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* \(\- Int64\(43\)\) AS col2" at position 0 and "Int64\(60\) \* Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 19 * - + 43 col2, + 60 * - 25 col2 +---- +-1500 +-817 query I rowsort SELECT - ( + 13 ) AS col0 @@ -4867,8 +4910,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -913 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* Int64\(\-83\) AS col2" at position 0 and "\(\- max\(Int64\(18\)\)\) / Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 11 * ( - 83 ) AS col2, - MAX ( + 18 ) / 38 AS col2 +---- +-913 +0 query I rowsort label-924 SELECT ALL COALESCE ( - 49, + 15, + - 37 ) * - 71 + 58 / + 9 @@ -5234,8 +5280,11 @@ SELECT + 47 * + 10 - - 10 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 82 AS col0, 75 col0 +---- +-82 +75 query I rowsort label-995 SELECT - - 89 + - 36 + + 26 - - + 18 / 36 * + - 10 * 66 col0 @@ -6016,8 +6065,12 @@ SELECT + 54 * - MIN ( 76 ) # Datafusion - Expected - -53 # Datafusion - Expected - 2352 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* Int64\(98\) AS col1" at position 1 and "\(\- coalesce\(\(\- Int64\(8\)\), \(\- Int64\(\-30\)\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + CAST ( - + 53 AS INTEGER ), 24 * + + 98 AS col1, - COALESCE ( - + 8, - - 30 ) col1 +---- +-53 +2352 +8 query II rowsort SELECT ALL + 0 AS col0, 75 @@ -6493,8 +6546,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 75 ) + - 22 * + 67 AS col0, COUNT ( * ) + 40 AS col0 +---- +-1399 +41 query I rowsort label-1236 SELECT + CASE NULLIF ( + CASE - 13 WHEN - 64 THEN - 20 + - 91 * 4 * + COUNT ( * ) ELSE COALESCE ( - MIN ( ALL 9 ), + 22 / + + 86 / + 81 + - 92 / 23 ) + 89 END, 74 + - COUNT ( * ) ) WHEN + 74 THEN NULL ELSE + 87 + - 0 END AS col1 @@ -6800,8 +6856,11 @@ SELECT 83 + - - 19 * - 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \+ Int64\(40\) AS col1" at position 0 and "Int64\(\-71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 10 + 40 AS col1, - 71 AS col1 +---- +-71 +30 query I rowsort SELECT DISTINCT + 56 * 26 col0 @@ -6936,8 +6995,11 @@ SELECT COUNT ( * ) * 23 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2568 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \+ Int64\(29\) \+ Int64\(13\) \* \(\- Int64\(8\)\) \+ Int64\(68\) \+ Int64\(48\) \* Int64\(\-54\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 31 + + 29 + 13 * - + 8 + + + 68 + 48 * - 54 AS col2, 23 AS col2 +---- +-2568 +23 query I rowsort label-1320 SELECT + COUNT ( ALL - 42 ) AS col2 @@ -6947,8 +7009,11 @@ SELECT + COUNT ( ALL - 42 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col2, + 61 AS col2 +---- +61 +NULL query II rowsort SELECT DISTINCT 78, + 62 AS col1 @@ -7342,8 +7407,11 @@ SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -438984 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(22\)\) AS col1" at position 0 and "Int64\(99\) \* \(\- sum\(DISTINCT Int64\(\-85\)\)\) \* Int64\(\-44\) \+ Int64\(\-9\) \* Int64\(83\) \* Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( 22 ) AS col1, 99 * - SUM ( DISTINCT + - 85 ) * - 44 + - 9 * + 83 * + + 92 AS col1 +---- +-438984 +22 query I rowsort label-1397 SELECT MAX ( ALL 21 ) @@ -7574,8 +7642,11 @@ SELECT ALL - NULLIF ( - + 31, COUNT ( * ) - CASE - 2 WHEN SUM ( 88 ) * 44 THEN - # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- 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 II valuesort SELECT - - 9 AS col2, 54 AS col2 +---- +54 +9 query I rowsort SELECT - 34 * - + 26 + 39 @@ -7875,8 +7946,11 @@ SELECT - COALESCE ( 18, - CAST ( - 57 AS INTEGER ) ) * 28 * ( - 48 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-70\) AS Int32\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - 70 AS INTEGER ) AS col2, + 0 AS col2 +---- +-70 +0 query II rowsort label-1500 SELECT - COUNT ( * ) * 58, + 8 AS col0 @@ -8567,8 +8641,11 @@ SELECT - ( + + COUNT ( - ( - + 36 ) ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "Int64\(50\) \+ Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 82 AS col0, 50 + + + 5 col0 +---- +55 +82 query I rowsort SELECT + 70 * + 62 AS col1 @@ -8634,8 +8711,11 @@ 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\(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\. +query II valuesort SELECT ALL 87 * - - COUNT ( * ) + + + 52 + - + 14 AS col0, - 2 AS col0 +---- +-2 +125 query II rowsort SELECT DISTINCT + + 45 col2, - 68 @@ -9064,14 +9144,20 @@ SELECT + + COUNT ( DISTINCT 62 ) # 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 col2" at position 0 and "Int64\(\-97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 59 AS col2, - 97 AS col2 +---- +-97 +59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 92 AS col1, 41 AS col1 +---- +41 +92 query I rowsort label-1728 SELECT MIN ( + 66 ) @@ -9514,8 +9600,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col1" at position 0 and "Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 85 AS col1, - 66 AS col1 +---- +-66 +-85 query I rowsort label-1815 SELECT 61 / MAX ( ALL 35 ) / 47 + + - 96 @@ -10274,8 +10363,11 @@ SELECT ALL + ( + SUM ( - 71 ) ) / 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col0" at position 0 and "\(\- \(\- Int64\(\-64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 19 AS col0, - ( ( - - 64 ) ) AS col0 +---- +-19 +-64 query I rowsort label-1963 SELECT - - MAX ( 71 ) @@ -10341,8 +10433,12 @@ SELECT - 88 + + - ( ( 77 ) ) + - 83 AS col0 # Datafusion - Expected - 552 # Datafusion - Expected - -9365 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* \(\- \(\- \(\- sum\(Int64\(\-13\)\)\)\)\) \+ Int64\(58\) AS col0" at position 0 and "Int64\(\-95\) \* \(\- Int64\(\-99\)\) \+ Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 38 * - - ( - SUM ( ALL + + ( - 13 ) ) ) + + + 58 AS col0, - 95 * - - 99 + + + 40 AS col0, + NULLIF ( - 59, 29 ) AS col0 +---- +-59 +-9365 +552 query II rowsort label-1976 SELECT + 23 col1, COUNT ( * ) AS col0 @@ -10354,8 +10450,12 @@ SELECT + 23 col1, COUNT ( * ) AS col0 # Datafusion - Expected - 32 # Datafusion - Expected - -52 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 0 and "Int64\(\-52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 32 AS col1, - 52 AS col1, + 23 AS col1 +---- +-52 +23 +32 query I rowsort SELECT ALL - 88 * - + 42 + 53 * 44 @@ -10381,8 +10481,12 @@ SELECT - 4 * + 68 AS col2 # Datafusion - Expected - 16151 # Datafusion - Expected - 97 # Datafusion - Expected - -3108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) / Int64\(3\) \* Int64\(\-37\) \* Int64\(\-15\) \- Int64\(\-93\) \- \(\- Int64\(\-37\)\) AS col1" at position 0 and "\(\- Int64\(68\)\) \* Int64\(45\) \+ \(\- Int64\(48\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 88 / 3 * - 37 * + - 15 - + - 93 - - - 37 col1, 97, - + 68 * 45 + - + 48 AS col1 +---- +-3108 +16151 +97 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -10560,8 +10664,11 @@ SELECT CAST ( + 29 AS INTEGER ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1480 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \* Int64\(20\) AS col2" at position 0 and "Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 74 * 20 AS col2, 8 AS col2 +---- +-1480 +8 query II rowsort label-2016 SELECT + 86 + + MAX ( ALL + 67 ) * - - CAST ( NULL AS INTEGER ) + - 16 * 72 + - + ( + + 38 ) * + CAST ( NULL AS INTEGER ) / - NULLIF ( - - 55, MAX ( + 0 ) * - - 99 + 97 ), + 51 AS col1 @@ -11104,8 +11211,11 @@ SELECT - - 88 * - + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 22 AS col1, + ( + 42 ) AS col1 +---- +-22 +42 query I rowsort SELECT DISTINCT + - 4 AS col2 @@ -11234,8 +11344,11 @@ SELECT 78 AS col1, + 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - -150 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-81\)\) \+ \(\- Int64\(69\)\) AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( + + ( - 81 ) ) + - + 69 AS col1, 33 AS col1 +---- +-150 +33 query II rowsort SELECT ALL + 93 AS col2, 16 col1 @@ -11314,8 +11427,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 AS col1, - COUNT ( * ) AS col1 +---- +-1 +95 query I rowsort SELECT ALL + 62 + 65 + 34 @@ -11718,8 +11834,11 @@ SELECT ALL MIN ( ALL + - 86 ) * + ( - - 31 ) * + + SUM ( - - ( + 33 ) ) * + + 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 198 # Datafusion - Expected - 1110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \+ \(\- Int64\(\-85\)\) \+ Int64\(46\) AS col2" at position 0 and "Int64\(\-37\) \* Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 67 + - - 85 + + 46 AS col2, - 37 * - 30 AS col2 +---- +1110 +198 query I rowsort label-2235 SELECT DISTINCT + + 43 * + CAST ( NULL AS INTEGER ) / - 8 * + 96 AS col1 @@ -11729,8 +11848,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col2" at position 0 and "Int64\(\-65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 91 AS col2, - 65 AS col2 +---- +-65 +91 query I rowsort label-2237 SELECT ALL 55 * ( + 46 ) * + + 19 + + - 67 + - 16 / - 42 @@ -11912,8 +12034,11 @@ SELECT ALL NULLIF ( - COUNT ( * ), + - 8 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 134 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \- Int64\(\-70\) AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 64 - - 70 AS col1, 33 AS col1 +---- +134 +33 query I rowsort SELECT - + 58 * - ( - - 84 ) * + 98 @@ -12054,8 +12179,11 @@ SELECT ALL CAST ( + + COUNT ( * ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 87 AS col2, 60 AS col2 +---- +60 +87 query I rowsort label-2300 SELECT ALL - 93 / 51 @@ -12244,8 +12372,11 @@ SELECT ALL + 58 - - - 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - 957 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(85\)\) AS col1" at position 0 and "Int64\(33\) \* \(\- Int64\(\-29\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 85 col1, + 33 * - - 29 AS col1 +---- +-85 +957 query I rowsort label-2336 SELECT ALL 64 * + COUNT ( * ) * + + COUNT ( 96 ) @@ -12507,8 +12638,11 @@ SELECT ALL CAST ( 72 AS INTEGER ) + 89 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( + CAST ( NULL AS INTEGER ) ) AS col0, 89 AS col0 +---- +89 +NULL query II rowsort SELECT ALL - 8 + - + 89, - 12 AS col2 @@ -12529,8 +12663,11 @@ SELECT DISTINCT NULLIF ( NULLIF ( - ( - - 0 ), - 40 ), + - 57 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -1340 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(28\)\) \+ Int64\(84\) AS col2" at position 0 and "Int64\(67\) \* \(\- \(\- coalesce\(Int64\(\-20\), Int64\(51\) / Int64\(19\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 28 + + + 84 AS col2, 67 * - - COALESCE ( - 20, 51 / + 19 ) AS col2 +---- +-1340 +56 query I rowsort label-2391 SELECT ALL MAX ( ALL - - ( 17 ) ) * - 75 @@ -14003,8 +14140,11 @@ SELECT - 84 + + 20 * - 19 * - 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1210 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(22\)\) \* Int64\(55\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + ( + 22 ) * + 55 col2, + 59 AS col2 +---- +-1210 +59 query I rowsort label-2676 SELECT - 57 * + 74 + + MIN ( ALL - 83 ) * + 94 * - 9 - - 12 AS col0 @@ -14069,8 +14209,11 @@ SELECT ALL - + 94 + 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(26\)\) \- Int64\(0\) / Int64\(\-83\) AS col2" at position 0 and "Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 26 - - 0 / - 83 AS col2, 51 AS col2 +---- +-26 +51 query II rowsort label-2688 SELECT - COUNT ( * ) col0, CAST ( - 64 AS INTEGER ) + - - 59 + + 92 * - COUNT ( * ) AS col1 @@ -14259,8 +14402,11 @@ SELECT DISTINCT - + 83 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col2" at position 0 and "Int64\(79\) \+ Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 24 AS col2, 79 + - 13 AS col2 +---- +-24 +66 query I rowsort SELECT - 27 + + + 59 AS col1 @@ -15084,8 +15230,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 58 AS col0, COUNT ( * ) AS col0 +---- +-58 +1 query I rowsort label-2881 SELECT - 54 * + SUM ( - 61 ) * + 63 + + 70 + 51 @@ -16240,8 +16389,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -887 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \+ Int64\(18\) \* \(\- Int64\(52\)\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 49 + + 18 * - + 52 AS col0, 49 AS col0 +---- +-887 +49 query I rowsort SELECT 91 + 24 @@ -16596,8 +16748,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 AS col1, + 59 col1 +---- +11 +59 query I rowsort label-3170 SELECT ALL COUNT ( * ) - 5 col2 @@ -17035,8 +17190,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 131 # Datafusion - Expected - -18289 -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 "Int64\(71\) \* Int64\(\-89\) \+ Int64\(21\) \* \(\- Int64\(\-95\)\) \* \(\- Int64\(6\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 88 + 43 AS col1, 71 * - 89 + 21 * - - 95 * - + 6 col1 +---- +-18289 +131 query I rowsort label-3252 SELECT ALL + 66 + + + 0 + 17 * - + COUNT ( * ) @@ -17062,8 +17220,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - SUM ( DISTINCT - 7 ) AS col0, - COUNT ( * ) AS col0, + - 44 AS col2 +---- +-1 +-44 +7 query I rowsort SELECT ALL - - 29 @@ -17526,8 +17688,11 @@ SELECT ALL COUNT ( DISTINCT 12 ) + + - 13 + COUNT ( * ) + + 19 * + 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "Int64\(\-71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 73 AS col0, - 71 col0 +---- +-71 +73 query I rowsort SELECT ALL 38 + 35 AS col2 @@ -17701,8 +17866,11 @@ SELECT DISTINCT COALESCE ( + 56, + + ( + 67 ), NULLIF ( - 82, + 76 + 18 + - 95 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 158 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ Int64\(61\) AS col0" at position 0 and "Int64\(17\) \* Int64\(\-8\) \- Int64\(65\) \- Int64\(\-19\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 97 + 61 AS col0, + 17 * - 8 - + 65 - - 19 * - CAST ( NULL AS INTEGER ) AS col0 +---- +158 +NULL query II rowsort SELECT 45 AS col0, + 15 @@ -18706,8 +18874,11 @@ NULL # 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 "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 19 AS col1, 0 AS col1 +---- +0 +19 query I rowsort SELECT + + 63 * - - 73 + + - 63 AS col2 @@ -18956,8 +19127,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) / Int64\(\-44\) AS col0" at position 0 and "\(\- \(\- CAST\(Int64\(\-39\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 3 / - 44 AS col0, - ( + - CAST ( - 39 AS INTEGER ) ) AS col0 +---- +-39 +0 query I rowsort SELECT 86 + 63 AS col0 @@ -19035,8 +19209,11 @@ SELECT 44 * 92 AS 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 "Int64\(0\)" at position 0 and "Int64\(0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 0, 0 +---- +0 +0 query I rowsort label-3632 SELECT ALL 20 + - CASE 44 WHEN - + 78 THEN NULL WHEN 84 * 6 + CAST ( - 40 AS INTEGER ) THEN - SUM ( 62 ) ELSE NULL END @@ -19073,8 +19250,11 @@ SELECT - 19 AS col2, + COUNT ( * ) * 50 + + - 91 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-52\), Int64\(11\)\) AS col1" at position 0 and "Int64\(5\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL NULLIF ( - 52, + 11 ) AS col1, + 5 * + COUNT ( * ) AS col1 +---- +-52 +5 query II rowsort SELECT DISTINCT + 27 AS col1, - 15 AS col2 @@ -19116,8 +19296,11 @@ 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\(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\. +query II valuesort SELECT 1 * COUNT ( * ) * 54 AS col2, + 32 * + + 76 AS col2 +---- +2432 +54 query II rowsort SELECT ALL - 45 AS col0, + 22 @@ -19672,8 +19855,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col2, 23 / 89 col2 +---- +-1 +0 query II rowsort label-3754 SELECT COUNT ( * ) + + - 47, - COUNT ( - ( 46 ) ) AS col1 @@ -19828,8 +20014,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 82 + + - COUNT ( * ) AS col0, - COUNT ( * ) AS col0 +---- +-1 +-83 query II rowsort SELECT 51 * - 13 - - 55 - - 19 * - 16 * - - ( 24 ) AS col2, 32 @@ -20014,8 +20203,11 @@ SELECT ALL + - 67 * + 37 + - 65 + - ( 12 ) + - - 53 * + + 0 + 84 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 59 AS col2, + 2 AS col2 +---- +-59 +2 query II rowsort label-3818 SELECT - + 37 + - 24 + + - COUNT ( * ) AS col1, - 83 @@ -20602,8 +20794,11 @@ SELECT ALL SUM ( + 41 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4250 # Datafusion - Expected - 171 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* Int64\(85\) AS col0" at position 0 and "Int64\(19\) \* Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 50 * + 85 AS col0, 19 * + 9 col0 +---- +171 +4250 query I rowsort label-3931 SELECT ALL - COUNT ( 20 ) - + 0 + - 81 @@ -20762,8 +20957,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(22\) \* Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 25 AS col1, + COUNT ( * ) * 22 * + - 87 AS col1 +---- +-1914 +25 query I rowsort label-3962 SELECT MAX ( + 8 ) AS col2 @@ -21268,8 +21466,11 @@ SELECT ALL + 35 / + + 49 * - 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, 20 AS col0 +---- +1 +20 query II rowsort label-4057 SELECT - - 93, - NULLIF ( + 15, + 77 ) * NULLIF ( + - ( - - MAX ( DISTINCT + - 85 ) ), - 54 ) / + 84 - + 59 AS col2 @@ -21345,8 +21546,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 61 AS col1, + 44 AS col1 +---- +44 +61 query I rowsort SELECT + ( + 30 ) @@ -21371,8 +21575,11 @@ SELECT ALL - 38 * + 53 + - 21 * + 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "Int64\(93\) / Int64\(83\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 43 AS col1, + 93 / + + 83 + COUNT ( * ) AS col1 +---- +2 +43 query I rowsort label-4076 SELECT DISTINCT + COUNT ( * ) * - 19 + - - 98 + 96 AS col0 @@ -21564,8 +21771,11 @@ SELECT + 41 * - + MIN ( - ( - + 96 ) ) + CAST ( - 27 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 113 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ Int64\(47\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 66 + + 47 AS col0, 17 AS col0 +---- +113 +17 query I rowsort label-4113 SELECT SUM ( DISTINCT + 20 ) + - - 3 @@ -21701,8 +21911,11 @@ SELECT - 62, + COALESCE ( 13, ( ( - 8 ) ), COUNT ( DISTINCT + 92 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "Int64\(\-93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 63 AS col1, - 93 AS col1 +---- +-93 +63 query I rowsort label-4139 SELECT SUM ( DISTINCT 46 ) + + + 97 + + 14 col2 @@ -21757,8 +21970,11 @@ SELECT DISTINCT 90 + CAST ( - ( + COALESCE ( + + 34, + - NULLIF ( + 96, 76 ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - -5948 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col2" at position 0 and "Int64\(74\) \- \(\- Int64\(\-70\)\) \* \(\- Int64\(\-86\)\) \+ \(\- \(\- nullif\(Int64\(\-2\), \(\- Int64\(\-85\)\)\)\)\) \+ Int64\(44\) / Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 97 AS col2, 74 - - - 70 * - - 86 + - - NULLIF ( - 2, - - 85 ) + 44 / + 53 AS col2 +---- +-5948 +97 query I rowsort SELECT ALL 25 + 42 @@ -21809,8 +22025,11 @@ SELECT 22 + - 13 AS col0 # 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 "Int64\(81\) / Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 AS col1, 81 / + 43 AS col1 +---- +1 +67 query I rowsort label-4160 SELECT ALL + CAST ( - - 73 AS INTEGER ) @@ -22658,8 +22877,11 @@ SELECT + + ( - COUNT ( DISTINCT 94 ) ) + ( 65 ) / + 66 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "Int64\(33\) \- Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 AS col0, 33 - 88 AS col0 +---- +-55 +7 query I rowsort label-4325 SELECT 98 * - - 61 + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0 @@ -23307,8 +23529,11 @@ SELECT 96 + - COUNT ( * ) + + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 AS col0, 8 col0 +---- +17 +8 query I rowsort label-4450 SELECT 67 * 16 + + CASE - - NULLIF ( + + 61, 61 + - COUNT ( * ) ) WHEN - 80 THEN + ( 47 ) - 32 ELSE NULL END AS col1 @@ -23460,8 +23685,11 @@ SELECT + + 8 + + 82 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 6025 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col1" at position 0 and "Int64\(44\) \* Int64\(\-68\) \* \(\- Int64\(2\)\) \+ Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 21 AS col1, + 44 * - 68 * - + 2 + 41 AS col1 +---- +21 +6025 query I rowsort SELECT + - NULLIF ( - 94, - 99 + + + 22 + - 97 * - - 13 ) + - 79 @@ -23576,8 +23804,11 @@ SELECT DISTINCT + COALESCE ( 44, + + COUNT ( * ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \+ Int64\(\-24\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 21 + - 24 AS col1, + 42 AS col1 +---- +-45 +42 query I rowsort label-4502 SELECT ALL + 9 / + + 94 AS col1 @@ -23691,8 +23922,11 @@ SELECT - 96 * + 7 + + + 39 + 31 - + + 25 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "max\(Int64\(\-27\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 66 AS col0, MAX ( - 27 ) AS col0 +---- +-27 +66 query II rowsort label-4524 SELECT 41 * + 69 + - + 35 * 5 AS col0, - 93 / - + COALESCE ( + + CAST ( NULL AS INTEGER ), - COUNT ( * ) * + 59 ) - - 54 AS col1 @@ -24280,8 +24514,11 @@ SELECT + 12, 41 * 57 + + 95 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 16 AS col1, + 49 col1 +---- +-16 +49 query I rowsort SELECT ALL - 40 * - 69 @@ -24526,8 +24763,11 @@ SELECT DISTINCT - 10 + + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(14\) \* Int64\(20\) \- \(\- CASE Int64\(\-7\) WHEN Int64\(34\) THEN Int64\(\-8\) END\) \+ Int64\(49\) \* CAST\(NULL AS Int32\) \* Int64\(57\) \+ Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 66 col1, + COUNT ( * ) / 14 * + 20 - - CASE - 7 WHEN 34 THEN - 8 END + + 49 * + CAST ( NULL AS INTEGER ) * + 57 + + 89 col1 +---- +66 +NULL query II rowsort label-4686 SELECT ALL 20 col1, SUM ( ALL + 75 ) - COUNT ( * ) + - + 63 * + 22 @@ -24985,8 +25225,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 AS col0, 89 col0 +---- +40 +89 query I rowsort SELECT - - 9 * 69 @@ -25451,8 +25694,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 29 * + 70 - + - 72 * - 13 - + + 42 - + - COUNT ( * ) AS col2, + 96 AS col2 +---- +1053 +96 query I rowsort label-4861 SELECT - COALESCE ( + 36, + 35, + 9 * - 31 ) / + - ( + + ( COUNT ( * ) ) ) col0 @@ -27004,8 +27250,12 @@ SELECT ALL MAX ( ALL + 0 ) / + - 19 AS col1 # Datafusion - Expected - -68 # Datafusion - Expected - 1 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(68\)\) AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - ( 68 ) AS col2, 1 AS col2, - - 87 AS col1 +---- +-68 +1 +87 query II rowsort label-5160 SELECT ALL 72 + - - 50 * 78 + COUNT ( * ) * - 6 AS col2, - COUNT ( * ) @@ -27293,8 +27543,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) * 86 AS col0, 97 AS col0 +---- +86 +97 query I rowsort label-5215 SELECT + 43 + - 24 / + 94 * 64 AS col0 @@ -27342,8 +27595,11 @@ SELECT ALL - 28 * - - 42 + - 37 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 "nullif\(Int64\(41\), Int64\(\-26\) \- Int64\(\-70\)\) AS col0" at position 0 and "Int64\(16\) / Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( + 41, - 26 - - 70 ) AS col0, 16 / - 15 AS col0 +---- +-1 +41 query I rowsort label-5224 SELECT - ( - 85 ) * 51 + - + COUNT ( * ) + 6 / + 77 + - 20 - + + NULLIF ( - 1, - 81 * 23 * + 61 + + - 36 + - ( + 79 ) ) @@ -27609,8 +27865,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col1" at position 0 and "Int64\(20\) \+ Int64\(\-15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 68 AS col1, 20 + - 15 AS col1 +---- +5 +68 query I rowsort SELECT 26 + + 97 AS col2 @@ -28041,8 +28300,11 @@ SELECT ALL 4 / + COALESCE ( + 82, + MAX ( ( - 61 ) ) ) + 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) / \(\- nullif\(Int64\(\-86\), Int64\(93\) \+ Int64\(\-33\)\)\) \+ Int64\(57\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 54 / - NULLIF ( - 86, 93 + - 33 ) + + + 57 AS col2, 45 AS col2 +---- +45 +57 query II rowsort label-5356 SELECT ALL 22 / + 67 * - - CAST ( NULL AS INTEGER ) + 79, - 30 * + 46 AS col0 @@ -28408,8 +28670,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) * ( COUNT ( - + ( 24 ) ) ) + 17 AS col0, + 1 AS col0 +---- +1 +16 query I rowsort label-5426 SELECT ALL - SUM ( 56 ) @@ -29206,8 +29471,11 @@ SELECT - 77 + + 50 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -135707 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(51\) \* Int64\(\-70\) \- CAST\(Int64\(47\) AS Int32\) AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 38 * 51 * - 70 - CAST ( 47 AS INTEGER ) AS col0, + 5 AS col0 +---- +-135707 +5 query II rowsort SELECT DISTINCT + 41 AS col1, + 81 @@ -29293,8 +29561,11 @@ SELECT - SUM ( ALL - 43 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -233766 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-81\)\) \* Int64\(\-78\) \* Int64\(37\) AS col2" at position 0 and "Int64\(48\) / \(\- Int64\(\-65\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 81 * + - 78 * + + 37 AS col2, 48 / - - 65 AS col2 +---- +-233766 +0 query I rowsort SELECT + 66 * - 81 @@ -29734,8 +30005,11 @@ SELECT NULLIF ( + + 93, + - 55 ) AS col0 # 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\(30\) AS col1" at position 0 and "Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 30 AS col1, - 84 AS col1 +---- +-84 +30 query I rowsort SELECT + ( + 80 ) * - + 86 col0 @@ -30419,8 +30693,11 @@ 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\(1\)\) AS count\(\*\)\), Int64\(56\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COALESCE ( + 64, - 37 + + 66 ) AS col0, 30 - - + NULLIF ( - + COUNT ( * ), + + 56 ) AS col0 +---- +-64 +29 query I rowsort SELECT + ( NULLIF ( - 90, - - 4 ) ) @@ -30701,8 +30978,11 @@ SELECT ALL - COUNT ( ALL 66 ) + - 38 + COUNT ( ALL + 39 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col2" at position 0 and "max\(Int64\(95\)\) \+ Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 AS col2, MAX ( 95 ) + 5 AS col2 +---- +-31 +100 query I rowsort label-5865 SELECT + 84 + - COUNT ( * ) * COUNT ( * ) AS col0 @@ -30745,8 +31025,11 @@ SELECT ALL + CASE + - 50 WHEN 11 THEN NULL ELSE - - COUNT ( * ) + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1182 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \- CASE Int64\(\-67\) WHEN \(\- CAST\(NULL AS Int32\)\) \+ Int64\(73\) \+ Int64\(\-9\) \+ Int64\(83\) \+ Int64\(\-36\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(88\) THEN NULL WHEN max\(Int64\(9\)\) THEN \(\- Int64\(\-40\)\) ELSE \(\- Int64\(\-62\)\) \* Int64\(\-19\) \- Int64\(23\) END AS col1" at position 0 and "Int64\(86\) \+ Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1182 +43 query II rowsort SELECT ALL - - 21 - - 5 - + 23 + - 39 AS col1, 53 @@ -31528,8 +31811,11 @@ SELECT DISTINCT - 20, COALESCE ( 65, + COUNT ( * ) ) * 67 col0 # 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 "Int64\(53\) AS col1" at position 0 and "Int64\(12\) \+ count\(Int64\(\-67\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 53 AS col1, 12 + COUNT ( - 67 ) col1 +---- +13 +53 query I rowsort SELECT 62 * 37 AS col2 @@ -31763,8 +32049,11 @@ SELECT - 91 * 8 - + 66 + + + 20 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ Int64\(8\) AS col2" at position 0 and "Int64\(\-18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 + + + 8 AS col2, - 18 col2 +---- +-18 +45 query I rowsort label-6070 SELECT CASE - - 59 WHEN - + 8 + + 56 + - 33 THEN NULL ELSE 38 + + COUNT ( * ) END * 54 AS col2 @@ -32492,8 +32781,11 @@ SELECT - - ( + CASE + ( - ( 42 ) ) WHEN 98 THEN NULL ELSE - + 84 END ) + - 24 + # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "CASE \(\- avg\(\(\- Int64\(\-22\)\)\)\) WHEN Int64\(8\) \+ \(\- Int64\(13\)\) \+ \(\- CAST\(NULL AS Int32\)\) / Int64\(\-42\) THEN Int64\(\-93\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-99\) WHEN Int64\(84\) / Int64\(50\) THEN NULL ELSE min\(Int64\(50\)\) \* count\(Int64\(1\)\) AS count\(\*\) END / Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +10 +25 query I rowsort label-6209 SELECT - + COUNT ( * ) + 11 AS col2 @@ -32914,8 +33206,11 @@ SELECT DISTINCT + - 80 + + COALESCE ( - - NULLIF ( - + 13, 52 ), - 66 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col1" at position 0 and "\(\- Int64\(\-30\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 94 AS col1, ( - - 30 ) AS col1 +---- +30 +94 query I rowsort SELECT ALL + + 30 + - 89 @@ -33061,8 +33356,11 @@ SELECT ALL - NULLIF ( + - 64, 98 ) + COALESCE ( + + 12, + COUNT ( * ) / COALESCE # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "sum\(Int64\(58\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 AS col2, + SUM ( ALL + 58 ) + COUNT ( * ) AS col2 +---- +56 +59 query I rowsort label-6318 SELECT ALL + 73 + + CASE + + COUNT ( * ) WHEN + + COALESCE ( 80, - - 20 + 36, - 95 / + 1 / - - 26 ) THEN 25 END + + 30 AS col0 @@ -33107,8 +33405,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(28\) \* Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 88 AS col0, - COUNT ( * ) * + 28 * 48 AS col0 +---- +-1344 +88 query I rowsort SELECT ALL + ( 71 ) col0 @@ -33251,8 +33552,12 @@ NULL # Datafusion - Expected - -75 # Datafusion - Expected - 7132 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col2" at position 0 and "Int64\(22\) \- Int64\(90\) \* Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + ( - 75 ) AS col2, 22 - 90 * - 79 col2, + + 75 +---- +-75 +7132 +75 query I rowsort label-6353 SELECT DISTINCT - - COUNT ( * ) + - 77 AS col2 @@ -33676,8 +33981,11 @@ SELECT 16 / - 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60900 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(29\) \* Int64\(84\) AS col0" at position 0 and "Int64\(\-11\) \+ Int64\(4\) \+ \(\- Int64\(84\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 * 29 * + 84 AS col0, - 11 + + 4 + - + 84 AS col0 +---- +-91 +60900 query I rowsort SELECT 96 + 64 @@ -34075,8 +34383,11 @@ SELECT ALL - COALESCE ( - - 62, + + 65, - 47 ) * - + 69 + + 74, + 17 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, 21 AS col1 +---- +21 +NULL query II rowsort SELECT ALL + + 56, 37 AS col1 @@ -34151,8 +34462,11 @@ SELECT ALL COUNT ( 88 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -465 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \+ Int64\(\-55\) \+ nullif\(Int64\(\-24\), Int64\(\-51\) / \(\- Int64\(\-65\)\)\) \* Int64\(19\) AS col1" at position 0 and "Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 + - 55 + + + NULLIF ( - 24, - 51 / - - 65 ) * + + 19 AS col1, - 84 AS col1 +---- +-465 +-84 query I rowsort SELECT - 11 * - + 76 AS col2 @@ -34183,8 +34497,11 @@ SELECT DISTINCT COUNT ( 3 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -342 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \* Int64\(57\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 6 * + 57 AS col2, 12 AS col2 +---- +-342 +12 query I rowsort label-6531 SELECT DISTINCT 93 / - NULLIF ( 61, 11 / 86 ) * COUNT ( * ) @@ -34205,8 +34522,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(91\)\)\) AS col2" at position 0 and "\(\- CAST\(\(\- coalesce\(Int64\(\-83\), Int64\(64\)\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( + 91 ) AS col2, - CAST ( + - COALESCE ( - 83, + 64 ) AS INTEGER ) AS col2 +---- +-83 +91 query I rowsort label-6535 SELECT ALL - 11 * - + 61 / 20 @@ -34893,8 +35213,11 @@ SELECT COALESCE ( + 12, - 65 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6624 # Datafusion - Expected - -907 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* \(\- sum\(DISTINCT Int64\(68\)\)\) \+ Int64\(\-96\) AS col1" at position 0 and "Int64\(71\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* Int64\(\-12\) \+ Int64\(\-55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 96 * - SUM ( DISTINCT + 68 ) + - 96 AS col1, + 71 * CAST ( COUNT ( * ) AS INTEGER ) * + - 12 + - 55 AS col1 +---- +-6624 +-907 query I rowsort SELECT ALL 4 * + 2 * + 30 @@ -34950,8 +35273,11 @@ 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\(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\. +query II valuesort 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 +---- +16 +NULL query II rowsort label-6676 SELECT ALL + COUNT ( * ) AS col1, + ( 33 ) col2 @@ -35311,8 +35637,11 @@ SELECT - ( 80 ) + + COUNT ( * ) * + ( COUNT ( * ) ) + 83 col1 # 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 col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 19 AS col0, 86 col0 +---- +-19 +86 query II rowsort label-6743 SELECT DISTINCT + 62 AS col2, + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + + 23 @@ -35674,8 +36003,11 @@ SELECT ALL + NULLIF ( + ( 56 ), - + 64 ) + + - COUNT ( * ) - + 66 * - COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - 3134 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \+ Int64\(49\) \* Int64\(63\) AS col2" at position 0 and "Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 47 + + 49 * 63 AS col2, + 57 col2 +---- +3134 +57 query I rowsort label-6812 SELECT - ( - MAX ( DISTINCT + + 33 ) ) + - 36 AS col2 @@ -35752,8 +36084,12 @@ SELECT ALL + 75 * - 97 * - - 27 AS col1 # Datafusion - Expected - 37 # Datafusion - Expected - -6528 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(\-99\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 37 AS col0, 17 * 96 * + - 4, - 99 AS col0 +---- +-6528 +-99 +37 query I rowsort label-6826 SELECT 94 + - MAX ( DISTINCT 48 ) AS col1 @@ -35798,8 +36134,12 @@ SELECT DISTINCT 51 * + 45 # Datafusion - Expected - -1709 # Datafusion - Expected - 39 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* CAST\(max\(Int64\(\-20\)\) AS Int32\) \+ Int64\(79\) \+ Int64\(92\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 94 * + CAST ( + + MAX ( ALL - 20 ) AS INTEGER ) + + + 79 + 92 AS col0, 39, 58 AS col0 +---- +-1709 +39 +58 query I rowsort label-6834 SELECT ALL - 71 * 84 * - 42 * COALESCE ( + 98, + + 28, + 69 ) + - CAST ( NULL AS INTEGER ) @@ -35951,8 +36291,11 @@ SELECT - - 63 + 54 - - 82 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(30\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( ALL 30 ) AS col1, COUNT ( * ) AS col1 +---- +1 +1 query I rowsort label-6863 SELECT ALL - + CAST ( NULL AS INTEGER ) * 35 + ( - 72 ) AS col1 @@ -36024,8 +36367,11 @@ SELECT + 95 + - 21 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 49 AS col1, + 20 col1 +---- +20 +49 query I rowsort SELECT + 47 * - 13 AS col1 @@ -36157,8 +36503,11 @@ SELECT + - 5 * + 82 + - 86 + - 14 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col1" at position 0 and "Int64\(65\) / min\(Int64\(1\)\) \- Int64\(\-2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 50 col1, + 65 / + MIN ( 1 ) - - 2 AS col1 +---- +-50 +67 query I rowsort SELECT - + 65 * 26 - + 73 AS col0 @@ -36173,8 +36522,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) + COUNT ( 29 ) AS col0, - 63 AS col0 +---- +-63 +0 query II rowsort SELECT ALL + - 51 AS col2, - 35 * - 20 @@ -36400,8 +36752,11 @@ SELECT 84 + - COUNT ( * ) - - 74 * - 64 * - - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12755 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(\-92\) \+ \(\- Int64\(59\)\) \* CAST\(Int64\(93\) AS Int32\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 79 * - 92 + - + 59 * CAST ( 93 AS INTEGER ) AS col0, 12 col0 +---- +-12755 +12 query I rowsort label-6949 SELECT ALL - ( - CASE - + 26 WHEN - ( + 94 ) THEN NULL WHEN - 49 THEN NULL WHEN - 80 THEN NULL WHEN + - 79 * + 84 THEN NULL ELSE - 15 END ) + + CAST ( NULL AS INTEGER ) AS col2 @@ -36411,8 +36766,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 AS col0, COUNT ( * ) AS col0 +---- +1 +28 query I rowsort label-6951 SELECT COUNT ( * ) + 29 @@ -36849,8 +37207,11 @@ SELECT DISTINCT - SUM ( - + CAST ( + - 92 AS INTEGER ) ) * + 85 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1428 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* Int64\(28\) AS col0" at position 0 and "Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 * 28 AS col0, + 84 AS col0 +---- +1428 +84 query I rowsort label-7036 SELECT ALL + - 11 * + SUM ( ALL - CAST ( + + 49 AS INTEGER ) ) @@ -37289,8 +37650,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(61\) \* \(\- Int64\(3\)\) \* Int64\(76\) \* \(\- Int64\(\-31\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \- CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 95 * COUNT ( * ) * + 61 * - + 3 * + 76 * - - 31 + + COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col0, 91 AS col0 +---- +91 +NULL query I rowsort SELECT + - 1 AS col1 @@ -37940,8 +38304,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-43\)\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( - 43 ) AS col0, 8 AS col0 +---- +-43 +8 query I rowsort label-7244 SELECT - ( + - 78 ) * + - 22 + + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * - 46 @@ -38119,8 +38486,12 @@ SELECT ( + 13 ) * - NULLIF ( - + 20, - + 51 / ( + 73 ) / 93 - - 87 + CAST ( NULL # Datafusion - Expected - NULL # Datafusion - Expected - -81 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(33\) \* \(\- Int64\(90\)\) \+ \(\- nullif\(\(\- Int64\(\-33\)\), \(\- \(\- \(\- Int64\(\-86\)\)\)\)\)\) \* \(\- Int64\(\-55\)\) \* Int64\(58\) AS col0" at position 0 and "\(\- Int64\(\-75\)\) \+ coalesce\(Int64\(\-99\), Int64\(39\) \+ Int64\(\-70\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT CAST ( NULL AS INTEGER ) + 33 * - + 90 + - NULLIF ( - - 33, - - ( - ( - 86 ) ) ) * - - 55 * 58 AS col0, - 81, - - 75 + COALESCE ( - 99, 39 + - 70 ) AS col0 +---- +-24 +-81 +NULL query I rowsort SELECT ALL 9 * - 9 @@ -38316,8 +38687,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 AS col0, - COUNT ( * ) AS col0 +---- +-1 +87 query I rowsort SELECT 66 * + 90 col1 @@ -38694,8 +39068,11 @@ SELECT ( ( + 89 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 43 AS col1, 7 AS col1 +---- +43 +7 query I rowsort label-7388 SELECT ALL 17 * - 19 * + 27 + - COALESCE ( + + 37, + MIN ( ALL - CAST ( - + 80 AS INTEGER ) ) ) / - 74 @@ -38744,8 +39121,11 @@ SELECT - + COALESCE ( 96, 30 - CAST ( NULL AS INTEGER ), - COUNT ( + 79 ) ) AS c # 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 col1" at position 0 and "Int64\(\-45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 67 AS col1, - 45 AS col1 +---- +-45 +67 query I rowsort SELECT - - 55 * - 7 + + 85 @@ -39116,8 +39496,11 @@ SELECT + COALESCE ( + - 58, - 49 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\) \+ Int64\(90\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + CAST ( - - COUNT ( * ) AS INTEGER ) + + 90 col0, 96 AS col0 +---- +91 +96 query I rowsort SELECT ALL ( - 2 ) @@ -39314,8 +39697,11 @@ SELECT - ( NULLIF ( - - 34, + - 47 + + COUNT ( * ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - -389312 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "Int64\(\-88\) \* Int64\(56\) \* \(\- Int64\(\-79\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 87 AS col1, - 88 * 56 * - - 79 AS col1 +---- +-389312 +87 query II rowsort label-7506 SELECT ALL + 27 AS col0, COUNT ( * ) + 97 + 42 / + 46 * + + 74 * + - 18 - 25 AS col1 @@ -39326,8 +39712,11 @@ SELECT ALL + 27 AS col0, COUNT ( * ) + 97 + 42 / + 46 * + + 74 * + - 18 - 25 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-12\) AS Int32\)\) \+ Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 70 AS col1, - CAST ( - 12 AS INTEGER ) + ( 2 ) AS col1 +---- +14 +70 query II rowsort SELECT + - 11 * - 94 AS col0, - 2 @@ -39369,8 +39758,11 @@ SELECT DISTINCT COUNT ( * ) * + - 49 * + COUNT ( * ) + - 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 6458 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \+ \(\- Int64\(33\)\) \+ \(\- \(\- CAST\(NULL AS Float64\)\)\) \+ Int64\(66\) AS col1" at position 0 and "\(\- sum\(nullif\(Int64\(28\), Int64\(94\)\)\)\) \+ \(\- max\(DISTINCT Int64\(23\)\)\) \* min\(Int64\(3\)\) \* Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + 38 + - + 33 + - - CAST ( NULL AS FLOAT8 ) + + 66 AS col1, - SUM ( NULLIF ( 28, + 94 ) ) + - MAX ( DISTINCT 23 ) * + MIN ( 3 ) * - 94 AS col1 +---- +6458 +NULL query I rowsort SELECT - + 19 AS col1 @@ -39499,8 +39891,11 @@ SELECT ALL + + 56 + + - 10 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(\-59\) AS col0" at position 0 and "Int64\(91\) \- Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) + - 59 AS col0, + 91 - + + 63 AS col0 +---- +28 +NULL query I rowsort SELECT 77 * - 98 + - 8 * + 41 @@ -39691,8 +40086,11 @@ SELECT + COUNT ( * ) * + 55 + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - -2385 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \+ \(\- count\(Int64\(\-38\)\)\) \- Int64\(0\) AS col1" at position 0 and "Int64\(\-9\) \* \(\- Int64\(\-5\)\) \* Int64\(53\) \+ Int64\(\-30\) / Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 78 + - COUNT ( ALL + - 38 ) - + 0 AS col1, - 9 * - - 5 * + 53 + - 30 / + 90 AS col1 +---- +-2385 +-79 query I rowsort label-7577 SELECT 56 * - NULLIF ( + + CASE + 0 WHEN 92 + + 82 THEN COUNT ( * ) / + - ( - + 34 ) - - 82 + + ( + 79 ) WHEN - 74 THEN 54 * - + ( - 40 ) * - ( 3 ) END, 28 + + 53 * CASE - CAST ( NULL AS INTEGER ) WHEN + + 2 THEN + - 34 END - + + 58 ) AS col1 @@ -39754,8 +40152,11 @@ SELECT ALL + 68 * - + ( - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(3\) \* Int64\(87\) \* CAST\(NULL AS Int32\) \* Int64\(85\) \* Int64\(\-81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) - COUNT ( * ) AS col1, 3 * + 87 * CAST ( NULL AS INTEGER ) * 85 * - 81 AS col1 +---- +-2 +NULL query II rowsort label-7589 SELECT DISTINCT 44 * - 89 AS col2, - COALESCE ( - - COUNT ( * ), + + 85 * + 30 ) + 53 AS col1 @@ -39878,8 +40279,11 @@ SELECT + 99 + - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 65 AS col1, 16 AS col1 +---- +16 +65 query II rowsort label-7612 SELECT + 64, - CAST ( NULL AS INTEGER ) AS col0 @@ -39925,8 +40329,11 @@ NULL # 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 col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 AS col1, 42 AS col1 +---- +42 +5 query I rowsort label-7621 SELECT ALL + 72 + - 56 + + + COALESCE ( - 10, 44 ) + CAST ( NULL AS INTEGER ) AS col0 @@ -40481,8 +40888,11 @@ SELECT ALL 73 - MIN ( + - 18 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(48\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, - COUNT ( * ) * - + 48 col1 +---- +1 +48 query I rowsort SELECT - 91 + 88 AS col1 @@ -40723,8 +41133,11 @@ SELECT ALL - 34 * 99 + 53 + + 81 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1955 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-23\)\) \* Int64\(85\) AS col2" at position 0 and "\(\- count\(DISTINCT Int64\(7\)\)\) \- \(\- Int64\(71\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 23 * + 85 AS col2, - COUNT ( DISTINCT + 7 ) - - ( 71 ) col2 +---- +1955 +70 query I rowsort label-7777 SELECT DISTINCT COUNT ( ALL + - 81 ) AS col0 @@ -40957,8 +41370,11 @@ 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\(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\. +query II valuesort 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 +---- +1326 +94 query I rowsort SELECT 55 + - 99 * + 92 * 47 @@ -41013,8 +41429,11 @@ SELECT ALL 66 AS col0, + 89 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 1632 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col2" at position 0 and "Int64\(\-76\) \+ min\(DISTINCT Int64\(22\)\) \* Int64\(78\) \+ Int64\(59\) / Int64\(\-7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 18 AS col2, - 76 + MIN ( DISTINCT 22 ) * + 78 + + + 59 / - 7 col2 +---- +1632 +18 query II rowsort SELECT 32, 6 * 65 col2 @@ -41057,8 +41476,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, 62 * - COUNT ( * ) AS col0 +---- +-1 +-62 query I rowsort label-7840 SELECT COUNT ( * ) * + 55 * 45 @@ -41068,8 +41490,11 @@ SELECT COUNT ( * ) * + 55 * 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 42 AS col0, 37 AS col0 +---- +37 +42 query I rowsort label-7842 SELECT DISTINCT - - ( + - 14 ) * + CAST ( COALESCE ( MAX ( - 99 ), CASE + 48 WHEN + 53 * 88 THEN NULL WHEN 7 * + 73 THEN NULL ELSE 89 / + COUNT ( * ) + SUM ( DISTINCT + 0 ) END / CASE + COUNT ( * ) WHEN ( NULLIF ( - ( 58 ), 59 ) ) * 28 + + 44 THEN 6 * + 89 END ) AS INTEGER ) * 13 + - 6 * ( 76 ) + - 29 @@ -41519,8 +41944,11 @@ SELECT ALL - 55 col2, 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2249 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* Int64\(22\) \+ Int64\(93\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 * 22 + 93 AS col1, 16 col1 +---- +16 +2249 query I rowsort SELECT DISTINCT - - ( + 88 ) @@ -41600,8 +42028,11 @@ SELECT 45 * - 86 # 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\(80\) \* Int64\(0\) AS col2" at position 0 and "Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 * + + 0 AS col2, 51 AS col2 +---- +0 +51 query I rowsort SELECT DISTINCT - 51 + + 56 + 64 @@ -41652,8 +42083,11 @@ 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\(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\. +query II valuesort SELECT + ( + 8 ) * - + COUNT ( * ) - + 30 AS col0, 99 AS col0 +---- +-38 +99 query I rowsort SELECT DISTINCT - 22 * 33 + 25 @@ -41930,8 +42364,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col1" at position 0 and "\(\- Int64\(12\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 AS col1, - ( + 12 ) AS col1 +---- +-12 +37 query I rowsort label-8004 SELECT + + NULLIF ( 86, - SUM ( + CAST ( - 59 AS INTEGER ) ) * 50 * 10 + - 65 ) AS col0 @@ -42397,8 +42834,11 @@ SELECT ALL 36 AS col0, COUNT ( * ) * + 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 41 AS col2, 53 AS col2 +---- +41 +53 query I rowsort SELECT DISTINCT + 12 + 30 AS col1 @@ -42872,8 +43312,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 * 76 * - - COUNT ( * ) AS col2, 18 AS col2 +---- +18 +4560 query I rowsort SELECT 8 - + - 5 AS col1 @@ -42903,8 +43346,11 @@ SELECT ( 58 ) - 43 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "count\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) \* Int64\(\-22\) \- Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 49 col2, COUNT ( ALL - - ( + CAST ( NULL AS INTEGER ) ) ) * - 22 - + - 89 AS col2 +---- +49 +89 query II rowsort label-8189 SELECT 92 + + 15, CAST ( NULL AS INTEGER ) + + + 85 AS col2 @@ -42966,8 +43412,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(22\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 91 AS col0, COUNT ( * ) + + COUNT ( + 22 ) AS col0 +---- +-91 +2 query I rowsort label-8201 SELECT ALL COUNT ( * ) + 42 AS col2 @@ -43373,8 +43822,11 @@ SELECT DISTINCT + 86 * - 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "Int64\(13\) \* Int64\(84\) / Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 38 AS col1, 13 * ( 84 ) / + + 73 AS col1 +---- +14 +38 query I rowsort label-8278 SELECT + 32 / 8 * + - 78 + - ( - 27 ) AS col2 @@ -43960,8 +44412,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 38 AS col1, 94 AS col1 +---- +38 +94 query I rowsort label-8390 SELECT + + 79 / - 2 @@ -43998,8 +44453,11 @@ SELECT DISTINCT - 23 * - 29 - ( - + 17 ) * - 63 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 col1, 14 AS col1 +---- +14 +55 query I rowsort label-8397 SELECT + 60 / - - 24 AS col0 @@ -44119,8 +44577,11 @@ 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\(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\. +query II valuesort SELECT + MAX ( ALL + 65 ) + + - 79 * + NULLIF ( + - NULLIF ( + 26, 97 / - - 19 + + COUNT ( * ) + - COUNT ( * ) * + COUNT ( * ) + 96 ), 20 ) AS col1, 52 AS col1 +---- +2119 +52 query I rowsort label-8421 SELECT + 9 / - - 41 AS col1 @@ -44441,8 +44902,11 @@ SELECT 29 * + - 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 AS col1, COUNT ( * ) col1 +---- +1 +7 query I rowsort label-8483 SELECT 9 / - 97 + + COUNT ( * ) @@ -44657,8 +45121,12 @@ SELECT - 78 - 95 AS col2 # Datafusion - Expected - 87 # Datafusion - Expected - 15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(15\), Int64\(53\)\) AS col0" at position 1 and "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + + 87, NULLIF ( + 15, + + 53 ) AS col0, - - CAST ( NULL AS INTEGER ) AS col0 +---- +15 +87 +NULL query I rowsort SELECT - 41 * + 37 @@ -44851,8 +45319,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT NULLIF ( - + MAX ( 84 ), 62 + COUNT ( * ) ) / COUNT ( * ) + + - COALESCE ( - 61, 7 / - 12 ) AS col0, 81 + - 93 AS col0 +---- +-12 +-23 query I rowsort SELECT DISTINCT + 72 + 48 @@ -44888,8 +45359,11 @@ 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\(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\. +query II valuesort SELECT + COALESCE ( 93, 40 + - SUM ( DISTINCT - 98 ) ) * + COUNT ( * ) + + 14 AS col0, 48 AS col0 +---- +107 +48 query I rowsort label-8569 SELECT + 96 * - 93 * + COUNT ( * ) @@ -44982,8 +45456,11 @@ SELECT 92 - + - 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 34 AS col1, 55 col1 +---- +34 +55 query I rowsort label-8587 SELECT + 28 / - + 96 AS col1 @@ -45087,8 +45564,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \- max\(Int64\(84\)\) AS col2" at position 0 and "sum\(Int64\(21\)\) \* count\(Int64\(17\)\) \+ Int64\(7\) \* count\(Int64\(\-48\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 - + MAX ( + 84 ) AS col2, SUM ( 21 ) * + COUNT ( ALL + 17 ) + + 7 * + COUNT ( - 48 ) AS col2 +---- +28 +4 query I rowsort label-8607 SELECT - COUNT ( * ) * - 68 AS col0 @@ -45395,8 +45875,12 @@ SELECT DISTINCT + + 73, COUNT ( * ) * 6 / - 35 AS col0 # Datafusion - Expected - 30 # Datafusion - Expected - NULL # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \+ nullif\(\(\- CAST\(Int64\(\-4\) AS Int32\)\), Int64\(34\) \+ CAST\(NULL AS Float64\)\) \* Int64\(\-64\) \* \(\- \(\- Int64\(61\)\)\) \* CAST\(NULL AS Int32\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 and "Int64\(65\) \+ \(\- sum\(Int64\(74\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IRI valuesort SELECT DISTINCT + 30 AS col1, + 15 + + NULLIF ( - CAST ( - 4 AS INTEGER ), + 34 + + + CAST ( NULL AS FLOAT8 ) ) * - 64 * - ( ( - + 61 ) ) * + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col2, ( + 65 ) + - SUM ( 74 ) AS col2 +---- +-9 +30 +NULL query I rowsort SELECT + NULLIF ( + 75, + + ( NULLIF ( NULLIF ( + - 21, + COALESCE ( 73, - 96 * + 82 ) ), + 10 + 18 / - 11 * - 23 * 90 ) ) ) AS col0 @@ -45482,8 +45966,11 @@ SELECT ALL + COUNT ( * ) / COALESCE ( + + 54, + 57, 92 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 165 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \+ Int64\(95\) AS col0" at position 0 and "Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 + 95 AS col0, 19 col0 +---- +165 +19 query II rowsort SELECT COALESCE ( - 97, + 82 ) - 33, 85 + 73 AS col0 @@ -45739,8 +46226,11 @@ SELECT COUNT ( * ) + - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 161 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \+ Int64\(94\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 67 + 94 AS col0, 90 col0 +---- +161 +90 query I rowsort label-8731 SELECT DISTINCT - ( CASE + 98 WHEN 89 / + - ( ( - MAX ( DISTINCT - 60 ) ) ) THEN NULL WHEN 10 THEN NULL ELSE 45 END ) - + - 10 + 31 * - 86 + 10 @@ -46247,8 +46737,11 @@ SELECT 30 - - 8 + + - 41 * - 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 72 AS col0, 82 AS col0 +---- +-72 +82 query I rowsort label-8829 SELECT ALL 37 * + COUNT ( * ) @@ -46478,8 +46971,11 @@ SELECT DISTINCT COUNT ( * ) * + 53 + - 82 * - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "Int64\(\-80\) \+ Int64\(\-72\) / \(\- Int64\(23\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 20 AS col0, - 80 + - 72 / + - ( 23 ) * COUNT ( * ) AS col0 +---- +-77 +20 query II rowsort label-8874 SELECT COUNT ( * ), 4 / ( - 48 ) AS col2 @@ -46554,8 +47050,11 @@ SELECT DISTINCT COUNT ( * ) + + 33 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 27 AS col2, 62 AS col2 +---- +27 +62 query I rowsort label-8888 SELECT ALL MIN ( DISTINCT + 33 ) + - 74 AS col0 @@ -46902,8 +47401,11 @@ SELECT ALL 49 + 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col1" at position 0 and "max\(Int64\(22\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 65 AS col1, MAX ( ALL + 22 ) AS col1 +---- +22 +65 query I rowsort label-8951 SELECT ALL 31 + CASE + COUNT ( * ) WHEN 83 THEN NULL ELSE - 84 END * + 39 col0 @@ -46934,8 +47436,11 @@ SELECT ALL 19 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -7742 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "Int64\(\-98\) \* \(\- Int64\(\-79\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 26 AS col0, - 98 * - - 79 AS col0 +---- +-7742 +26 query I rowsort label-8957 SELECT DISTINCT 36 * + COUNT ( * ) @@ -47465,8 +47970,11 @@ SELECT + CAST ( - 45 AS INTEGER ) col2 # 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 "Int64\(45\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 45 AS col0, 2 AS col0 +---- +2 +45 query II rowsort label-9060 SELECT + 80 AS col0, - COUNT ( * ) @@ -47794,8 +48302,11 @@ SELECT COUNT ( * ) + + 58 * 7 col2, + 63 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -225 # Datafusion - Expected - 3784 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* \(\- coalesce\(Int64\(75\), Int64\(33\) / Int64\(83\) \+ \(\- max\(Int64\(54\)\)\) \+ Int64\(49\)\)\) AS col2" at position 0 and "max\(\(\- Int64\(\-44\)\)\) \* Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 * - COALESCE ( 75, 33 / + 83 + - + MAX ( ALL + 54 ) + 49 ) AS col2, MAX ( ALL - - 44 ) * 86 AS col2 +---- +-225 +3784 query I rowsort label-9123 SELECT DISTINCT MIN ( 6 ) @@ -47838,8 +48349,11 @@ SELECT - + SUM ( ALL - 3 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 6429634 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col2" at position 0 and "Int64\(\-94\) \* Int64\(\-60\) \* Int64\(20\) \* Int64\(57\) \+ \(\- nullif\(Int64\(\-34\), Int64\(79\) \* Int64\(26\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 col2, - 94 * - 60 * + 20 * + 57 + + - NULLIF ( - 34, + 79 * + 26 ) AS col2 +---- +40 +6429634 query II rowsort SELECT ( - 40 ) + + - 15, + ( - 6 ) * + 57 col2 @@ -47947,8 +48461,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) \+ Int64\(62\) / \(\- Int64\(10\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-1\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + - 56 ) + 62 / - ( 10 ) * + COUNT ( * ) + + - 1 AS col0, + COUNT ( * ) AS col0 +---- +-63 +1 query I rowsort SELECT + ( - ( 92 ) ) col2 @@ -48339,8 +48856,11 @@ SELECT ALL - NULLIF ( 61, - 71 + COALESCE ( COUNT ( * ), 66 ) + + 70 / - 99 + - # Datafusion - Datafusion expected results: # Datafusion - Expected - -3091 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* \(\- \(\- Int64\(\-64\)\)\) \+ Int64\(\-83\) AS col0" at position 0 and "Int64\(29\) \+ CASE \(\- Int64\(\-88\)\) WHEN sum\(Int64\(75\)\) \* min\(DISTINCT Int64\(37\)\) \* Int64\(4\) \- \(\- Int64\(48\)\) THEN NULL WHEN Int64\(67\) \+ Int64\(96\) THEN coalesce\(Int64\(\-31\), Int64\(82\) \+ Int64\(98\)\) ELSE Int64\(55\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 * - + ( - - 64 ) + - 83 AS col0, 29 + + + CASE - - 88 WHEN + SUM ( ALL 75 ) * MIN ( DISTINCT + 37 ) * + 4 - - + 48 THEN NULL WHEN 67 + 96 THEN + COALESCE ( - 31, + 82 + + 98 ) ELSE + 55 END col0 +---- +-3091 +84 query I rowsort label-9226 SELECT ALL 8 + 30 + MAX ( + + 78 ) @@ -48484,8 +49004,11 @@ SELECT - - 89 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1392 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* Int64\(24\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 * + + 24 AS col1, CAST ( NULL AS INTEGER ) AS col1 +---- +1392 +NULL query I rowsort label-9253 SELECT 94 + - + 66 + MAX ( ALL - 75 ) @@ -48646,8 +49169,11 @@ SELECT ALL + 46 + + - 81 + 50 AS col1, - 53 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -329522 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \* Int64\(61\) \* Int64\(73\) AS col0" at position 0 and "Int64\(\-38\) \- coalesce\(\(\- Int64\(\-9\)\), Int64\(\-43\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 74 * + 61 * 73 AS col0, - 38 - + COALESCE ( - - 9, + - 43 ) AS col0 +---- +-329522 +-47 query I rowsort SELECT DISTINCT 32 + + 10 AS col0 @@ -49979,8 +50505,11 @@ SELECT + 37 + + 67 * COUNT ( * ) + - SUM ( ALL 22 ) * 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) col1 +---- +1 +NULL query I rowsort label-9546 SELECT ALL 86 * - - 79 + - - COUNT ( * ) AS col2 @@ -50118,8 +50647,11 @@ SELECT CAST ( - 54 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - -5244 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(55\) AS Int32\) AS col0" at position 0 and "Int64\(69\) \* Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + 55 AS INTEGER ) AS col0, 69 * + - 76 AS col0 +---- +-5244 +55 query I rowsort label-9572 SELECT + CAST ( + 24 AS INTEGER ) AS col1 @@ -50158,8 +50690,11 @@ SELECT + NULLIF ( - ( - - 34 ), 49 * + CAST ( - - ( - 89 ) AS FLOAT8 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1436 -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\(15\) \* Int64\(95\) \+ \(\- Int64\(\-11\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + CAST ( NULL AS FLOAT8 ) AS col0, 15 * + + 95 + - - 11 AS col0 +---- +1436 +NULL query I rowsort SELECT ALL 48 * - 33 AS col2 @@ -51038,8 +51573,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - + 13 ) - + 34 AS col2, + 25 + - - COUNT ( * ) AS col2 +---- +-47 +26 query I rowsort label-9748 SELECT + COALESCE ( 69, NULLIF ( + ( - 30 ), - - COUNT ( * ) ) + + 49 ) * 3 * 1 - + - 63 AS col0 @@ -51151,8 +51689,11 @@ SELECT ALL 36 + - + MIN ( 63 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 146 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \+ Int64\(59\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 + 59 AS col0, + 22 AS col0 +---- +146 +22 query I rowsort SELECT DISTINCT - 10 + + 55 @@ -51177,8 +51718,11 @@ SELECT - - 79 / + 40 + - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1632 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \* nullif\(Int64\(\-34\), Int64\(11\)\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 * + NULLIF ( - 34, + 11 ) AS col2, 90 AS col2 +---- +1632 +90 query I rowsort SELECT + - 99 col0 @@ -51620,8 +52164,11 @@ SELECT ALL 93 * + + 21 + + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 42 ) AS col0, 45 AS col0 +---- +42 +45 query I rowsort label-9861 SELECT ALL ( - 11 ) * - 41 * + CAST ( NULL AS INTEGER ) + 6 col2 @@ -51870,8 +52417,11 @@ SELECT 16 + 85 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col1, 51 AS col1 +---- +1 +51 query I rowsort label-9908 SELECT 96 / + - 23 diff --git a/data/sqlite/random/expr/slt_good_37.slt b/data/sqlite/random/expr/slt_good_37.slt index 081ec22..060569f 100644 --- a/data/sqlite/random/expr/slt_good_37.slt +++ b/data/sqlite/random/expr/slt_good_37.slt @@ -111,8 +111,11 @@ SELECT - + 93 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 354 # Datafusion - Expected - 1326 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(59\), Int64\(\-60\)\) \* Int64\(6\) AS col1" at position 0 and "Int64\(29\) \+ Int64\(27\) \* Int64\(47\) \+ Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COALESCE ( + 59, - 60 ) * + 6 col1, + 29 + + 27 * 47 + + 28 AS col1 +---- +1326 +354 query I rowsort SELECT ALL 84 * 10 @@ -200,8 +203,11 @@ SELECT 17 * NULLIF ( - 51, - 81 ) - 72 * - - CAST ( 60 AS INTEGER ) # 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\(79\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 79 AS col0, + 93 AS col0 +---- +79 +93 query I rowsort SELECT ALL + - 68 - + 26 @@ -335,8 +341,11 @@ SELECT 60 / ( + - 78 ) * - 51 - + 71 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 "Int64\(35\) \- Int64\(36\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 35 - 36 AS col2, + 69 AS col2 +---- +-1 +69 query II rowsort label-56 SELECT MIN ( ALL - 34 ), + 62 AS col1 @@ -726,8 +735,11 @@ SELECT ALL + 34 + - - 20 + + 5 * + COUNT ( * ) AS col1, MIN ( DISTINCT - NULLIF # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(92\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, COUNT ( + 92 ) AS col1 +---- +1 +1 query I rowsort label-130 SELECT ALL - COUNT ( * ) / + COUNT ( * ) * - - ( - - 1 ) AS col1 @@ -1219,8 +1231,11 @@ SELECT + COUNT ( * ) - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(CAST\(Int64\(\-32\) AS Int32\), Int64\(33\)\) / Int64\(47\) / \(\- Int64\(\-79\)\) \* Int64\(55\) AS col0" at position 0 and "Int64\(\-8\) \+ Int64\(\-46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( CAST ( - 32 AS INTEGER ), 33 ) / 47 / - - 79 * + 55 AS col0, - 8 + - 46 AS col0 +---- +-54 +0 query I rowsort label-225 SELECT ALL + 18 + + CAST ( NULL AS INTEGER ) - 96 AS col1 @@ -1361,8 +1376,11 @@ SELECT ALL COUNT ( * ) * + 16 # 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\(53\) \+ Int64\(\-96\) AS col1" at position 0 and "\(\- count\(Int64\(7\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 53 + + + ( - 96 ) col1, - COUNT ( ALL 7 ) col1 +---- +-1 +-43 query I rowsort label-253 SELECT DISTINCT 12 + + COUNT ( * ) @@ -1561,8 +1579,12 @@ SELECT - 41 AS col0, + NULLIF ( - 6, + 97 ) AS col2 # Datafusion - Expected - 47 # Datafusion - Expected - -42 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \- min\(Int64\(60\)\) AS col0" at position 1 and "Int64\(\-31\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 47 col1, 18 - + MIN ( + 60 ) AS col0, - 31 AS col0 +---- +-31 +-42 +47 query II rowsort label-291 SELECT - 97, 36 * 62 + - + MAX ( ALL 3 ) AS col0 @@ -1945,14 +1967,20 @@ SELECT COALESCE ( + 83, + SUM ( + + 94 ) * - 17 + - - COUNT ( * ) + - COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 14 AS col1, 81 AS col1 +---- +14 +81 # 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\(20\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 20 AS col2, 36 AS col2 +---- +20 +36 query I rowsort label-365 SELECT ALL MAX ( ALL - 96 ) * + + MAX ( + 39 ) + - - MAX ( ALL - 45 ) - - 62 @@ -2257,8 +2285,11 @@ 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\(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\. +query II valuesort SELECT ALL - 36 - 67 + 65 AS col1, - 30 + + ( - 61 ) * + - COUNT ( * ) + + - COUNT ( * ) + + + 56 * 59 * + 2 col1 +---- +-38 +6638 query II rowsort label-423 SELECT ALL 69, + COUNT ( * ) + + 84 + + + 23 * 6 AS col1 @@ -2471,8 +2502,12 @@ SELECT - 78 + - MAX ( ALL - CAST ( 13 AS INTEGER ) ) * 91 # Datafusion - Expected - 96 # Datafusion - Expected - 75 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 96 AS col1, 75 AS col1, + 0 AS col0 +---- +0 +75 +96 query I rowsort SELECT ALL - 14 * + - 65 AS col2 @@ -2482,8 +2517,11 @@ SELECT ALL - 14 * + - 65 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(40\)\) AS col1" at position 0 and "Int64\(0\) \- Int64\(51\) \+ \(\- Int64\(\-99\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( 40 ) AS col1, + 0 - + 51 + - - 99 AS col1 +---- +40 +48 query I rowsort SELECT ALL - 14 * 83 AS col2 @@ -2696,8 +2734,11 @@ SELECT ALL 58 + 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) \+ \(\- 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 II valuesort SELECT - 29 + - - 48 AS col0, + 14 AS col0 +---- +14 +19 query I rowsort label-506 SELECT - 5 + - 28 - - CASE - - AVG ( - + 38 ) WHEN - 31 * 20 + + ( - 15 ) * + 63 THEN - 50 WHEN + - CAST ( NULL AS INTEGER ) * - + 77 + - 44 THEN NULL ELSE NULL END - + 98 * - + 40 * + + 57 / 79 @@ -2798,8 +2839,12 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-87\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 12 AS col1, ( + COALESCE ( - ( + 43 ), + COUNT ( * ) ) ), COUNT ( * ) + - 87 AS col1 +---- +-43 +-86 +12 query II rowsort SELECT DISTINCT 14, 79 AS col2 @@ -2815,8 +2860,11 @@ SELECT ALL + 14 * - + 24 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 0 and "Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 AS col2, 57 AS col2 +---- +26 +57 query I rowsort label-529 SELECT COUNT ( * ) + + - 77 + - 27 AS col0 @@ -2858,8 +2906,11 @@ SELECT COALESCE ( 66, - + 0 * + - 62 * + + 91 ) * - 36 # 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 col2" at position 0 and "Int64\(\-3\) / nullif\(Int64\(\-99\), Int64\(11\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 46 AS col2, - 3 / + NULLIF ( - 99, + + 11 ) AS col2 +---- +0 +46 query I rowsort label-537 SELECT NULLIF ( + 4, 58 ) / + 75 @@ -2869,8 +2920,11 @@ SELECT NULLIF ( + 4, 58 ) / + 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - -10205 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "Int64\(1\) \+ Int64\(21\) \* Int64\(\-27\) \* Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 AS col2, + 1 + + 21 * - 27 * + 18 AS col2 +---- +-10205 +12 query I rowsort label-539 SELECT + 11 / - 88 @@ -3328,8 +3382,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(63\), Int64\(28\)\) AS col1" at position 0 and "Int64\(\-46\) \+ Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( 63, + 28 ) AS col1, - 46 + + 9 AS col1 +---- +-37 +63 query I rowsort SELECT + 11 * - - 17 @@ -3361,8 +3418,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 291194 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* Int64\(81\) \* Int64\(63\) \+ Int64\(\-64\) \+ \(\- Int64\(79\)\) \- Int64\(80\) \+ Int64\(27\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(DISTINCT Int64\(65\)\) \- Int64\(\-25\) \* \(\- Int64\(39\)\) \* Int64\(\-44\) / Int64\(4\) AS col2" at position 0 and "sum\(DISTINCT \(\- CAST\(\(\- nullif\(Int64\(4\), Int64\(\-78\)\)\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +291194 +4 query I rowsort label-634 SELECT + ( - ( - 38 ) ) * CAST ( NULL AS INTEGER ) AS col1 @@ -3692,8 +3752,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \- \(\- \(\- Int64\(87\)\)\) AS col0" at position 0 and "Int64\(36\) / Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 61 ) - + - ( - ( 87 ) ) AS col0, 36 / 4 AS col0 +---- +-26 +9 query I rowsort SELECT + 66 * + 0 * 49 AS col2 @@ -3755,8 +3818,11 @@ SELECT ALL + 38 * COUNT ( * ) AS col0 # 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 "Int64\(\-55\) AS col0" at position 0 and "Int64\(\-2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 55 AS col0, - 2 col0 +---- +-2 +-55 query II rowsort label-707 SELECT ALL - 68, + ( - + 84 ) * + - 98 + + 57 * 78 * - COUNT ( DISTINCT + 77 ) + - + 94 AS col0 @@ -4363,8 +4429,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, - 70 AS col1 +---- +-1 +-70 query I rowsort label-823 SELECT ALL - MAX ( ALL - 81 ) AS col0 @@ -4848,15 +4917,22 @@ SELECT - 5 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -864 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* Int64\(\-27\) AS col2" at position 0 and "Int64\(\-59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 * - 27 AS col2, - 59 AS col2 +---- +-59 +-864 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 54 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \- Int64\(35\) AS col1" at position 1 and "Int64\(12\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 18 - 82 AS col2, + 89 - + + ( + 35 ) AS col1, 12 AS col1 +---- +-64 +12 +54 query I rowsort SELECT ALL 53 - - 97 AS col0 @@ -4901,8 +4977,11 @@ SELECT COUNT ( * ) / - 24 * 14 * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- min\(\(\- \(\- nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-85\)\)\)\)\)\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) * - MIN ( ALL - - NULLIF ( - CAST ( NULL AS INTEGER ), - 85 ) ) AS col1, 65 AS col1 +---- +65 +NULL query I rowsort SELECT + 14 * - + 14 * 35 AS col2 @@ -5086,8 +5165,11 @@ SELECT - COUNT ( * ) + - 10 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -462 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col2" at position 0 and "Int64\(77\) \* Int64\(\-6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 3 AS col2, 77 * + - 6 col2 +---- +-462 +3 query I rowsort label-961 SELECT DISTINCT 13 / 41 @@ -5491,8 +5573,11 @@ SELECT 86 * - 47 * 78 + - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - -112728 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* Int64\(21\) \* Int64\(\-61\) AS col1" at position 0 and "Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 88 * + 21 * - 61 AS col1, 89 AS col1 +---- +-112728 +89 query I rowsort SELECT ALL 41 + 86 @@ -7170,8 +7255,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 0 AS col2, 34 AS col2 +---- +0 +34 query II rowsort SELECT 27 col0, 27 AS col1 @@ -7234,8 +7322,11 @@ SELECT ALL SUM ( ALL 61 ) * + 84 * + 91 + + 22 AS col1, + ( ( - 85 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1527 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* Int64\(\-17\) \- Int64\(3\) \- Int64\(51\) \* Int64\(\-58\) AS col0" at position 0 and "Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 * - 17 - 3 - 51 * - 58 col0, - 22 AS col0 +---- +-22 +1527 query I rowsort SELECT ALL + 57 + + ( + 72 ) AS col2 @@ -7387,8 +7478,11 @@ SELECT ( + - 78 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) col0, - COUNT ( * ) * 46 AS col0 +---- +-46 +NULL query I rowsort SELECT + 47 + - - 47 @@ -8394,8 +8488,11 @@ SELECT ( 24 ) + 80 + + MAX ( DISTINCT NULLIF ( 65, ( - - 83 ) / + 59 * - 56 - 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "Int64\(\-78\) \* CAST\(NULL AS Int32\) \* \(\- Int64\(56\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 79 AS col0, - 78 * + CAST ( NULL AS INTEGER ) * - + 56 AS col0 +---- +79 +NULL query I rowsort SELECT 93 + - 11 @@ -8492,8 +8589,11 @@ SELECT ALL + ( - - CAST ( 72 AS INTEGER ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - -914 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) / \(\- Int64\(86\)\) \* Int64\(\-14\) \+ Int64\(10\) AS col1" at position 0 and "Int64\(\-29\) \* Int64\(30\) \+ \(\- Int64\(44\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 27 / - + 86 * - 14 + + 10 AS col1, - 29 * 30 + - + 44 AS col1 +---- +-914 +10 query I rowsort SELECT - 40 * + - 16 - + 9 AS col2 @@ -8548,8 +8648,11 @@ SELECT + 58 / COALESCE ( + 3, - COUNT ( * ) ) * 95 + + COUNT ( * ) - MAX ( DISTI # Datafusion - Datafusion expected results: # Datafusion - Expected - -4928 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(77\), \(\- max\(Int64\(52\)\)\) / Int64\(77\)\) \* \(\- coalesce\(Int64\(64\), Int64\(\-31\) \* \(\- CAST\(Int64\(\-28\) AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL NULLIF ( + + 77, - MAX ( 52 ) / + 77 ) * - COALESCE ( + 64, - 31 * - CAST ( + - 28 AS INTEGER ) + + ( + + COUNT ( * ) ) ) AS col1, - 20 AS col1 +---- +-20 +-4928 query I rowsort label-1633 SELECT + MIN ( 71 ) @@ -9315,8 +9418,11 @@ SELECT + 6 + - 95 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col0" at position 0 and "Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 65 ) AS col0, - 92 AS col0 +---- +-65 +-92 query I rowsort label-1776 SELECT ALL + MAX ( + 21 ) @@ -10071,8 +10177,12 @@ SELECT + CAST ( + 55 AS INTEGER ) # Datafusion - Expected - 68 # Datafusion - Expected - NULL # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* Int64\(\-32\) \* CAST\(NULL AS Float64\) \* CAST\(NULL AS Int32\) \* Int64\(\-60\) AS col1" at position 1 and "\(\- Int64\(60\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IRI valuesort SELECT DISTINCT + 68, + 51 * - 32 * CAST ( NULL AS FLOAT8 ) * + CAST ( NULL AS INTEGER ) * - 60 AS col1, - + 60 AS col1 +---- +-60 +68 +NULL query I rowsort SELECT + 75 * + 32 * + 57 @@ -10143,8 +10253,11 @@ SELECT + + 74, + 90 - - 75 * 80 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -740 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-57\) \* Int64\(13\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, - 57 * 13 + + COUNT ( * ) AS col1 +---- +-1 +-740 query I rowsort label-1934 SELECT ALL + 6 / SUM ( DISTINCT + ( + + 34 ) ) @@ -10238,8 +10351,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(Int64\(45\)\) \* \(\- Int64\(19\)\) \- Int64\(6\) \+ CASE WHEN NOT Int64\(\-43\) IS NOT NULL THEN Int64\(83\) \* sum\(\(\- Int64\(\-32\)\)\) \+ Int64\(30\) ELSE NULL END \* Int64\(25\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort 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 +---- +1 +NULL query I rowsort label-1951 SELECT ALL COUNT ( * ) * + - 84 * 13 @@ -10370,8 +10486,11 @@ 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\(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\. +query II valuesort SELECT ALL 73 + + 44 * - 22 * - 32 col2, + NULLIF ( + 87, + COUNT ( * ) ) * - ( 21 ) - - - 19 * - SUM ( DISTINCT + 45 ) AS col2 +---- +-972 +31049 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -11099,8 +11218,12 @@ SELECT DISTINCT + 58 * + + 32 + - 62 AS col1 # Datafusion - Expected - -6317 # Datafusion - Expected - 59 # Datafusion - Expected - 1071 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* \(\- Int64\(78\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(17\) \* Int64\(63\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ( 81 ) * - + 78 + COUNT ( * ) AS col1, 59 AS col2, + 17 * 63 AS col1 +---- +-6317 +1071 +59 query I rowsort label-2117 SELECT + NULLIF ( - - 30, - - CASE + COUNT ( * ) WHEN + 85 THEN 72 END ) AS col2 @@ -11472,8 +11595,11 @@ SELECT ALL - 91 + 0 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(70\) WHEN \(\- CASE Int64\(39\) WHEN Int64\(75\) THEN NULL WHEN Int64\(\-92\) \+ Int64\(98\) \* \(\- Int64\(41\)\) THEN \(\- Int64\(\-28\)\) \- Int64\(17\) END\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN Int64\(12\) \+ \(\- Int64\(53\)\) / Int64\(\-68\) END \* \(\- Int64\(\-97\)\) \* Int64\(32\) AS col2" at position 0 and "CAST\(Int64\(25\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +25 +NULL query I rowsort SELECT ALL 70 + + 64 @@ -11768,8 +11894,11 @@ SELECT COUNT ( * ) + + 57 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 "Int64\(15\) / Int64\(56\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 15 / 56 AS col1, 63 AS col1 +---- +0 +63 query I rowsort SELECT 86 * 41 AS col1 @@ -11829,8 +11958,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + - 10 ) / 63 AS col1, - COUNT ( * ) AS col1 +---- +-1 +0 query I rowsort SELECT + 78 + - 18 @@ -11861,8 +11993,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 49 + + 32 AS col0, + COUNT ( * ) + + 6 AS col0 +---- +-17 +7 query I rowsort SELECT - + 65 AS col1 @@ -12073,8 +12208,11 @@ SELECT + NULLIF ( - 40, - 33 * - CAST ( NULL AS INTEGER ) + + 37 ) + + - 15 AS c # 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 "Int64\(54\) AS col1" at position 0 and "Int64\(\-55\) \+ coalesce\(Int64\(4\), Int64\(20\) \- \(\- Int64\(55\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 54 AS col1, - 55 + COALESCE ( + + 4, 20 - - + 55 ) AS col1 +---- +-51 +54 query I rowsort SELECT + 21 * 70 - - 7 col0 @@ -12489,8 +12627,11 @@ SELECT 71 + COUNT ( * ) AS 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 col2" at position 0 and "Int64\(50\) / CASE Int64\(9\) WHEN Int64\(29\) THEN Int64\(78\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 AS col2, 50 / + CASE 9 WHEN 29 THEN + 78 ELSE NULL END col2 +---- +37 +NULL query I rowsort SELECT 9 + 96 + + ( - 3 ) @@ -12690,8 +12831,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( COUNT ( * ) ) AS col2, 99 AS col2 +---- +-1 +99 query II rowsort label-2421 SELECT - ( - 5 ) AS col1, CASE - CAST ( - 99 AS INTEGER ) WHEN 38 THEN NULL WHEN 52 / + 21 + - 25 + + 90 THEN NULL WHEN + 9 THEN - 5 * - 43 + + 67 END + + 12 AS col2 @@ -12857,8 +13001,11 @@ SELECT ALL + + COALESCE ( + 72, - + 46, + SUM ( - 32 ) * - - 32 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -790 # Datafusion - Expected - 126 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \+ Int64\(30\) \* Int64\(\-28\) AS col2" at position 0 and "Int64\(32\) \+ coalesce\(\(\- Int64\(\-94\)\), Int64\(51\) \+ Int64\(98\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 50 ) + 30 * - 28 AS col2, 32 + COALESCE ( - - 94, 51 + + 98 ) AS col2 +---- +-790 +126 query I rowsort label-2452 SELECT ALL 23 * + + 77 * + CAST ( - + ( 52 ) AS INTEGER ) + - + NULLIF ( 93, + 33 ) @@ -13650,8 +13797,11 @@ SELECT - ( 52 ), + 32 * + 24 + - 69 + + 54 col1 # 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 "Int64\(40\) / Int64\(\-60\) AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 40 / - 60 AS col1, 23 AS col1 +---- +0 +23 query II rowsort SELECT 5 * + 68 AS col0, 85 * + + 37 @@ -13849,8 +13999,11 @@ SELECT - 47 * 33 + + + 47 + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - -5913 -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\) \* Int64\(\-73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 52 AS col2, 81 * - 73 AS col2 +---- +-5913 +52 query II rowsort label-2642 SELECT ALL COUNT ( * ) col2, + 34 / 97 * 35 * - + 17 / - - NULLIF ( - - 5, + - 52 ) * + 19 * - - ( - 7 ) * - 99 + 22 @@ -14196,8 +14349,11 @@ SELECT ALL 26 + 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "Int64\(\-51\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 31 AS col2, - 51 / COUNT ( * ) AS col2 +---- +-51 +31 query I rowsort label-2708 SELECT 29 + - 50 - + 96 / 6 + COUNT ( * ) * - - 75 @@ -14224,8 +14380,11 @@ SELECT 65, + 64 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col1" at position 0 and "Int64\(\-22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 AS col1, - 22 AS col1 +---- +-22 +-70 query II rowsort SELECT 38 AS col2, 31 AS col0 @@ -14358,8 +14517,11 @@ SELECT ALL - 96 * 2 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 41 AS col1, + 21 AS col1 +---- +21 +41 query II rowsort label-2737 SELECT + 58 AS col2, 3 / + COUNT ( * ) + + 21 @@ -14541,8 +14703,11 @@ SELECT DISTINCT + 49 / + MAX ( DISTINCT - 91 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -266 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(\-7\) AS col1" at position 0 and "Int64\(\-67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 38 * + - 7 AS col1, + ( + - 67 ) AS col1 +---- +-266 +-67 query I rowsort label-2772 SELECT ALL + 31 * + + COUNT ( * ) @@ -14838,8 +15003,12 @@ SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 # Datafusion - Expected - NULL # Datafusion - Expected - 17 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE min\(Int64\(93\)\) WHEN Int64\(42\) THEN Int64\(\-60\) WHEN Int64\(59\) THEN Int64\(\-63\) \* \(\- Int64\(\-28\)\) \+ Int64\(79\) END AS col0" at position 0 and "\(\- Int64\(\-92\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL CASE + MIN ( + 93 ) WHEN 42 THEN - 60 WHEN 59 THEN + - 63 * - - 28 + + + 79 END AS col0, 17, - - 92 AS col0 +---- +17 +92 +NULL query II rowsort label-2829 SELECT DISTINCT 14 * - 89 + + - 47 / 89 col0, 33 @@ -15700,8 +15869,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 79 AS col0, 22 AS col0 +---- +-79 +22 query I rowsort label-2994 SELECT ALL - - MIN ( + 80 ) @@ -16223,8 +16395,11 @@ SELECT + 46 * CASE + - 71 WHEN - 77 THEN NULL ELSE + - CAST ( - - 60 AS INTEGER # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col1" at position 0 and "Int64\(84\) \+ \(\- Int64\(88\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 AS col1, + 84 + - + 88 AS col1 +---- +-4 +79 query I rowsort SELECT + 80 * - 23 * - 42 AS col1 @@ -16376,8 +16551,11 @@ SELECT DISTINCT - COUNT ( DISTINCT + + 52 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4512 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* Int64\(47\) AS col2" at position 0 and "Int64\(\-62\) / Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 * 47 AS col2, - 62 / + 97 AS col2 +---- +0 +4512 query I rowsort label-3124 SELECT ALL - COUNT ( * ) * 50 @@ -16882,8 +17060,11 @@ SELECT ALL COALESCE ( - - 1, - 70 * - 36 ) AS col0, - 73 * + + 75 + 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \- Int64\(\-30\) / Int64\(78\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- coalesce\(Int64\(83\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(76\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 - - 30 / 78 * + COUNT ( * ) col1, ( - COALESCE ( 83, ( - COUNT ( * ) ) * 76 ) ) AS col1 +---- +-55 +-83 query I rowsort label-3222 SELECT ALL NULLIF ( - + NULLIF ( COALESCE ( COUNT ( * ), - + 35 * 63 / - CAST ( 60 AS INTEGER ) + + 96 + ( 49 ), - 23 * - CASE COUNT ( * ) WHEN 70 + ( 83 + + 45 / + ( + 88 + - 79 ) ) THEN NULL ELSE 2 - 76 * 82 END - 82 * 94 ), - NULLIF ( 13, + 23 / 5 ) ), - MIN ( + 31 ) + - 25 * - 59 ) AS col0 @@ -16914,8 +17095,11 @@ SELECT DISTINCT - 47 / - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - -162 # Datafusion - Expected - 111 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \+ Int64\(\-73\) AS col1" at position 0 and "Int64\(98\) \+ Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 89 + + - 73 AS col1, 98 + + 13 AS col1 +---- +-162 +111 query I rowsort label-3228 SELECT ALL + + NULLIF ( - 80, - COUNT ( * ) ) - - 47 @@ -17249,8 +17433,11 @@ SELECT ALL - 12 AS col1, 9 + + 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col2" at position 0 and "Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 AS col2, 17 AS col2 +---- +17 +57 query I rowsort label-3291 SELECT 21 * - + COUNT ( * ) @@ -17287,8 +17474,11 @@ 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\(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\. +query II valuesort SELECT - 95 AS col1, 30 + - 88 * - COALESCE ( + 83, + 87 / - + COUNT ( * ) - + + 7, - 40 ) * - + 21 + 33 / 3 col1 +---- +-153343 +-95 query I rowsort SELECT ( 70 ) - - - 65 col2 @@ -17368,8 +17558,11 @@ SELECT DISTINCT + 78 + NULLIF ( - 37, - + COUNT ( * ) / + 50 ) + - 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - -4164 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col1" at position 0 and "Int64\(77\) \* Int64\(\-55\) \+ Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 19 AS col1, 77 * - 55 + + 71 AS col1 +---- +-19 +-4164 query II rowsort SELECT - 65 * + + 58, - 79 AS col0 @@ -17710,8 +17903,11 @@ SELECT - - 37 + - MIN ( DISTINCT - + 30 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - -2926 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(63\)\) \+ \(\- Int64\(26\)\) \+ Int64\(28\) AS col2" at position 0 and "Int64\(38\) \* Int64\(\-77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 63 + - + 26 + + 28 col2, ( 38 ) * - 77 AS col2 +---- +-2926 +-61 query I rowsort SELECT + + 57 - + 18 @@ -18106,8 +18302,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 605 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col0" at position 0 and "Int64\(11\) \* Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 AS col0, 11 * + + 55 AS col0 +---- +605 +9 query I rowsort label-3452 SELECT ALL + 56 + + 68 + 36 + CASE - 10 WHEN - COUNT ( * ) + 96 + - + 6 THEN NULL ELSE 15 END * 99 / + ( + - 37 ) @@ -18168,8 +18367,11 @@ SELECT - 43 / - 47 + + + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -101388 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(17\) \* Int64\(3\) \* Int64\(71\) \* \(\- Int64\(28\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 17 * + 3 * + + 71 * - + 28 AS col0 +---- +-101388 +NULL query I rowsort label-3464 SELECT COALESCE ( + COUNT ( * ), - - 21 ) AS col2 @@ -18277,8 +18479,11 @@ SELECT DISTINCT - 63 * 55 * + 54 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(50\)\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + + 50 ) AS col2, 16 AS col2 +---- +-50 +16 query I rowsort label-3483 SELECT ALL + 29 * + COUNT ( * ) * 67 @@ -18343,8 +18548,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) / + 98 * - + 86 AS col1, MAX ( ALL + + 2 ) * + 85 col1 +---- +0 +170 query I rowsort label-3495 SELECT DISTINCT + COUNT ( * ) * - 27 * - ( + - 48 ) @@ -18359,8 +18567,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \- \(\- nullif\(Int64\(\-70\), Int64\(76\) \+ Int64\(\-48\)\)\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 38 - - + NULLIF ( - 70, + 76 + - 48 ) col0, - 0 AS col0 +---- +-32 +0 query I rowsort label-3498 SELECT - 67 + - MIN ( + 45 ) @@ -18523,8 +18734,11 @@ SELECT ( + 10 ) + - - 5 # 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 "count\(Int64\(47\)\) \+ Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 97 AS col1, COUNT ( + 47 ) + + ( + 45 ) col1 +---- +46 +97 query I rowsort label-3529 SELECT ( - MIN ( 79 ) ) / + 48 + + + 59 @@ -18706,8 +18920,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 99 * - COUNT ( * ) AS col1, - 49 AS col1 +---- +-49 +-99 query I rowsort SELECT ALL - + 6 * ( 61 ) @@ -18750,8 +18967,11 @@ SELECT 46 + - 19 * 29 * 58 * + - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78724 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* Int64\(25\) \* Int64\(\-67\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "nullif\(Int64\(46\), count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 * 25 * - 67 + COUNT ( * ) AS col2, NULLIF ( + + 46, + COUNT ( * ) ) AS col2 +---- +-78724 +46 query I rowsort label-3571 SELECT 36 * 33 + - - 69 + + CASE + - MAX ( - 64 ) WHEN COUNT ( DISTINCT 45 ) THEN NULL ELSE + - COUNT ( * ) / 36 / - + CAST ( NULL AS INTEGER ) END AS col0 @@ -19441,8 +19661,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2788 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* \(\- Int64\(68\)\) / Int64\(2\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 82 * - + 68 / 2 AS col0, 18 AS col0 +---- +-2788 +18 query II rowsort label-3702 SELECT 15 - + SUM ( ALL + 98 ) + + 28 AS col1, - SUM ( ALL 47 ) * CAST ( NULL AS INTEGER ) col0 @@ -19500,8 +19723,11 @@ SELECT ALL - 48 / + 39 AS 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\)\) AS col1" at position 0 and "Int64\(25\) / Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 67 AS col1, 25 / + 78 AS col1 +---- +0 +67 query II rowsort SELECT DISTINCT + 10, 2 AS col1 @@ -19589,8 +19815,11 @@ SELECT ( 88 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 77 * COUNT ( * ) AS col1, + 23 col1 +---- +-77 +23 query II rowsort label-3730 SELECT + 9 / 70 AS col1, 42 + + - 44 AS col2 @@ -19903,8 +20132,11 @@ 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\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-87\)\) \* Int64\(37\) \* \(\- Int64\(60\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 AS col1, 8 + - COUNT ( * ) * - - 87 * + + 37 * + - ( + 60 ) col1 +---- +193148 +56 query II rowsort SELECT ALL 0 AS col2, 53 @@ -20003,8 +20235,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* Int64\(72\) \* Int64\(27\) \+ \(\- Int64\(\-60\)\) \+ CASE Int64\(\-15\) WHEN Int64\(38\) THEN NULL WHEN Int64\(\-89\) THEN Int64\(\-48\) \* Int64\(62\) \- \(\- Int64\(59\)\) END \+ \(\- nullif\(CAST\(NULL AS Int32\), \(\- Int64\(\-86\)\) \* Int64\(14\)\)\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( + 91 ) * + 72 * + + 27 + - - 60 + + CASE - 15 WHEN + 38 THEN NULL WHEN + - 89 THEN - 48 * 62 - ( - + 59 ) END + + - NULLIF ( CAST ( NULL AS INTEGER ), - - 86 * + 14 ) AS col1, + 16 AS col1 +---- +16 +NULL query II rowsort SELECT + 30 AS col0, - 22 AS col2 @@ -20250,8 +20485,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1334 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(19\)\) \* \(\- min\(Int64\(\-69\)\)\) \+ \(\- nullif\(\(\- count\(DISTINCT Int64\(\-80\)\)\), Int64\(\-51\) \* \(\- avg\(Int64\(\-87\)\)\)\)\) \* Int64\(\-37\) \+ 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 RI valuesort SELECT ALL ( - + 19 ) * - MIN ( - 69 ) + - NULLIF ( - COUNT ( DISTINCT - 80 ), - 51 * - AVG ( - 87 ) ) * - 37 + 14 AS col0, - 67 AS col0 +---- +-1334 +-67 query I rowsort SELECT + + 18 * + 84 @@ -20966,8 +21204,12 @@ SELECT DISTINCT - 75 * - 37, 55 col0 # Datafusion - Expected - -66 # Datafusion - Expected - 1 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 and "Int64\(23\) \+ Int64\(69\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 66, COUNT ( * ) col0, ( + 23 ) + + 69 AS col0 +---- +-66 +1 +92 query II rowsort label-3996 SELECT + + COUNT ( * ) + + COALESCE ( - 23, - + 30, - 72 ) + - + 20 AS col0, ( + 96 ) + + 96 * COUNT ( * ) @@ -21002,8 +21244,12 @@ NULL # Datafusion - Expected - 62 # Datafusion - Expected - 61 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 62 AS col2, + ( 67 ) - 6, 49 AS col2 +---- +49 +61 +62 query I rowsort label-4002 SELECT DISTINCT + COALESCE ( + CAST ( NULL AS INTEGER ), - + COUNT ( * ) ) * - + 59 AS col0 @@ -21174,8 +21420,11 @@ SELECT - 94 + + COUNT ( ALL - 64 ) + + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) / Int64\(59\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 / 59 AS col2, COUNT ( * ) col2 +---- +-1 +1 query I rowsort label-4035 SELECT ALL - COUNT ( * ) * - - 92 * - + COUNT ( * ) @@ -21271,8 +21520,11 @@ SELECT 40, - COUNT ( * ) * 57 + 81 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 27 AS col1, + 87 AS col1 +---- +-27 +87 query II rowsort label-4053 SELECT 54 AS col1, COUNT ( * ) AS col2 @@ -21841,8 +22093,11 @@ SELECT DISTINCT + 40, 65 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -2053 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col2" at position 0 and "Int64\(15\) \+ Int64\(22\) \* Int64\(\-94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 43 AS col2, + 15 + + 22 * + - 94 AS col2 +---- +-2053 +43 query I rowsort SELECT + 2 - - 17 @@ -21990,8 +22245,11 @@ SELECT MAX ( ALL 30 ) - - 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 171216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) / Int64\(\-84\) AS col0" at position 0 and "Int64\(72\) \* Int64\(82\) \* Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 / - 84 AS col0, + 72 * + 82 * + 29 AS col0 +---- +0 +171216 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -22116,8 +22374,11 @@ SELECT 37 * - 67 # 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 Int64\(\-46\) WHEN Int64\(5\) / Int64\(25\) THEN Int64\(98\) \* \(\- \(\- max\(\(\- \(\- Int64\(13\)\)\)\)\)\) / Int64\(40\) END AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( CASE - 46 WHEN + 5 / + + 25 THEN + 98 * - - MAX ( ALL - - ( 13 ) ) / + 40 END ) AS col2, 29 AS col2 +---- +29 +NULL query I rowsort label-4214 SELECT ALL MIN ( + 79 ) @@ -22566,8 +22827,11 @@ SELECT ALL COALESCE ( - 32, - 93 * + + 65, - 10 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - -15 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 92 AS col2, - 15 AS col2 +---- +-15 +-92 query I rowsort SELECT - ( + - 1 ) * ( 34 ) AS col1 @@ -22672,8 +22936,11 @@ SELECT 88 + 42 + - 77 - - CAST ( - ( - 90 ) AS INTEGER ) * - + 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \- Int64\(43\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 49 - 43 AS col1, COUNT ( * ) col1 +---- +1 +6 query II rowsort label-4319 SELECT - 13 col0, COUNT ( * ) col2 @@ -22949,8 +23216,12 @@ SELECT ALL 62 + 57 / - - 60 AS col1 # Datafusion - Expected - 52 # Datafusion - Expected - 1 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(52\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + COUNT ( * ) * + 52 AS col1, + COUNT ( * ) AS col1, + 65 col1 +---- +1 +52 +65 query II rowsort label-4371 SELECT DISTINCT - 87 / + + 78 AS col0, + 24 @@ -23723,8 +23994,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) + - + 14 + + 26 * + 46 AS col2, 15 + - 35 AS col2 +---- +-20 +1181 query I rowsort label-4519 SELECT DISTINCT - 77 * - COUNT ( * ) + + 87 * + COUNT ( * ) * - 53 @@ -24076,8 +24350,11 @@ SELECT ALL - ( - 54 ) / 91 * - + 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + COUNT ( * ) AS col1, COUNT ( * ) AS col1 +---- +-1 +1 query I rowsort SELECT DISTINCT + - ( + 41 ) + 36 AS col2 @@ -24147,8 +24424,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 127 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(\-15\) / Int64\(95\) \* Int64\(74\) \- Int64\(\-52\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 75 + - 15 / + 95 * ( 74 ) - - 52 AS col0, ( + 60 ) AS col0 +---- +127 +60 query I rowsort SELECT ALL + 95 + - ( - 66 ) @@ -24306,8 +24586,11 @@ SELECT + ( - 61 ), ( - - 1 ) + - 94 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-10\) \+ Int64\(\-83\) AS col1" at position 0 and "count\(\(\- Int64\(\-45\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - 10 + ( - 83 ) col1, + COUNT ( - - 45 ) AS col1 +---- +1 +NULL query I rowsort SELECT + + ( - 50 ) + + + 27 @@ -25534,8 +25817,11 @@ SELECT 70 * + 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - -121 # Datafusion - Expected - 122 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \+ Int64\(23\) \* sum\(\(\- Int64\(2\)\)\) AS col0" at position 0 and "Int64\(55\) \+ Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 75 + + 23 * + SUM ( - + 2 ) AS col0, 55 + + 67 AS col0 +---- +-121 +122 query I rowsort label-4869 SELECT ALL - MAX ( ALL + + 6 ) AS col0 @@ -25735,8 +26021,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - -15 -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\(\-91\)\)\) \+ \(\- Int64\(14\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( ALL + 98 ) AS col2, - COUNT ( ALL - 91 ) + - + 14 col2 +---- +-15 +98 query I rowsort label-4907 SELECT DISTINCT COALESCE ( - 58, CAST ( - 63 AS INTEGER ) * - 48 ) @@ -25782,8 +26071,11 @@ SELECT - 42 * - - ( 70 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -141 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \+ Int64\(\-93\) AS col1" at position 0 and "Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 + + - 93 AS col1, 82 AS col1 +---- +-141 +82 query I rowsort SELECT DISTINCT 83 * - 54 col0 @@ -25854,8 +26146,11 @@ SELECT - NULLIF ( 86, 55 + 61 ) * + + MIN ( - 87 ) + + ( - 83 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 5220 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \+ Int64\(\-53\) AS col1" at position 0 and "Int64\(90\) \* \(\- \(\- Int64\(58\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 + - 53 AS col1, 90 * - - ( + 58 ) AS col1 +---- +-84 +5220 query I rowsort label-4930 SELECT - + 83 / 8 * ( - CASE SUM ( + + CAST ( NULL AS INTEGER ) ) WHEN + 23 THEN 67 END ) AS col1 @@ -26764,8 +27059,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 101 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(14\) / \(\- Int64\(38\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 99 + + COUNT ( * ) - + + 14 / - + ( + 38 ) + COUNT ( * ) AS col2, + 96 AS col2 +---- +101 +96 query I rowsort SELECT - 31 * + 97 * + 67 + - 14 AS col0 @@ -26832,8 +27130,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) 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 II valuesort SELECT 58 AS col0, + SUM ( ALL 42 ) AS col0 +---- +42 +58 query I rowsort SELECT ALL COALESCE ( 33, 40 ) @@ -27241,8 +27542,11 @@ SELECT + COUNT ( + 44 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5062 # Datafusion - Expected - 1955598 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \- Int64\(78\) \* Int64\(64\) AS col1" at position 0 and "Int64\(11\) \+ max\(\(\- Int64\(\-23\)\)\) \* Int64\(47\) \* Int64\(67\) \* Int64\(27\) \+ Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 70 - 78 * + 64 AS col1, 11 + MAX ( - - 23 ) * + + 47 * + + 67 * 27 + + 58 AS col1 +---- +-5062 +1955598 query I rowsort SELECT - + 44 AS col1 @@ -27338,8 +27642,11 @@ SELECT + 48 AS col0, - 42 col1 # 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 "Int64\(0\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 AS col2, + 69 AS col2 +---- +0 +69 query I rowsort SELECT 83 * 98 @@ -27531,8 +27838,11 @@ SELECT DISTINCT - ( + 14 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 102 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ Int64\(73\) AS col0" at position 0 and "max\(Int64\(89\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 29 + 73 col0, MAX ( ALL + + 89 ) col0 +---- +102 +89 query I rowsort label-5250 SELECT - COUNT ( * ) * COUNT ( * ) + + 64 @@ -27677,8 +27987,11 @@ SELECT + 31 + COALESCE ( COUNT ( * ), 94, 73 + + 50 * + 2 / - 34 * + MIN ( 6 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 33 AS col0, + CAST ( NULL AS INTEGER ) AS col0 +---- +-33 +NULL query I rowsort label-5278 SELECT + COUNT ( * ) + + + 96 @@ -28125,8 +28438,12 @@ SELECT ALL + 20 * + 95 # Datafusion - Expected - -26 # Datafusion - Expected - -588 # Datafusion - Expected - -540 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) AS col2" at position 0 and "Int64\(55\) / Int64\(58\) \+ Int64\(\-12\) \* Int64\(45\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 26 AS col2, - 6 * 98 AS col0, 55 / 58 + - 12 * + 45 AS col2 +---- +-26 +-540 +-588 query I rowsort label-5364 SELECT ALL - + SUM ( ALL - 48 ) col2 @@ -28810,8 +29127,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-91\) \+ Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 * - + 40 * ( + 50 ) AS col0, + COUNT ( * ) * - 91 + + 9 col0 +---- +-152000 +-82 query I rowsort label-5495 SELECT ALL COUNT ( * ) / - COUNT ( * ) AS col0 @@ -29580,8 +29900,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 85 AS col0, 58 AS col0 +---- +-85 +58 query I rowsort label-5641 SELECT ALL - COUNT ( * ) * 33 AS col1 @@ -29616,8 +29939,11 @@ SELECT 26 - - 46 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - -225 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "Int64\(5\) \* Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 10 AS col2, 5 * - 45 col2 +---- +-225 +10 query II rowsort SELECT 86 col0, + 16 @@ -29690,8 +30016,11 @@ SELECT 77 * - - ( + 4 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -123 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(61\)\) \+ Int64\(\-53\) AS col1" at position 0 and "Int64\(\-54\) \+ Int64\(\-69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( DISTINCT + + 61 ) + + - 53 AS col1, - 54 + + - 69 AS col1 +---- +-123 +8 query I rowsort SELECT NULLIF ( 81, 5 ) * - 10 AS col1 @@ -29948,8 +30277,12 @@ SELECT DISTINCT 32 col0 # Datafusion - Expected - -2592 # Datafusion - Expected - 8624 # Datafusion - Expected - 1452 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* Int64\(88\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 and "Int64\(\-22\) \* Int64\(\-66\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 72 * - + MAX ( DISTINCT 36 ) AS col0, + 98 * + 88 * + COUNT ( * ) AS col1, - 22 * + - 66 col1 +---- +-2592 +1452 +8624 query I rowsort SELECT DISTINCT + 63 * 64 AS col0 @@ -30067,8 +30400,11 @@ SELECT - 47 * + + COUNT ( * ) * 62 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- CAST\(Int64\(\-44\) AS Int32\)\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Float64\) \+ \(\- Int64\(\-91\)\) \+ \(\- Int64\(20\)\) \+ Int64\(34\) \* Int64\(13\) THEN NULL ELSE coalesce\(Int64\(\-40\), Int64\(2\)\) END\) \+ Int64\(34\) AS col1" at position 0 and "Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-60 +74 query I rowsort SELECT 24 + - 96 @@ -30347,8 +30683,11 @@ SELECT + + 76 - - MIN ( 74 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3534 # Datafusion - Expected - -230 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* CAST\(Int64\(93\) AS Int32\) AS col2" at position 0 and "Int64\(\-90\) \* Int64\(2\) \- Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 38 * + CAST ( + + 93 AS INTEGER ) AS col2, - 90 * + 2 - + + 50 AS col2 +---- +-230 +3534 query I rowsort label-5784 SELECT ( + SUM ( DISTINCT + + 64 ) ) AS col2 @@ -30419,8 +30758,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) \- sum\(Int64\(\-71\)\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 29 - SUM ( - 71 ) col1, + 53 AS col1 +---- +42 +53 query I rowsort label-5797 SELECT - COUNT ( * ) + + - 56 - - ( + 53 ) @@ -30906,8 +31248,11 @@ SELECT ALL - 83 * + 16 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 86 col1, 2 AS col1 +---- +2 +86 query I rowsort label-5890 SELECT 64 / - 48 @@ -31822,8 +32167,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 42 ) col1, - 35 / + 86 * - - COUNT ( * ) AS col1 +---- +0 +42 query I rowsort label-6064 SELECT ALL 24 + + 94 + 26 + + - COUNT ( * ) - - SUM ( - + 65 ) @@ -32078,8 +32426,11 @@ SELECT + + 65 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1848 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(44\) AS col2" at position 0 and "CASE \(\- Int64\(63\)\) WHEN \(\- Int64\(\-76\)\) THEN NULL WHEN Int64\(35\) \- Int64\(21\) THEN \(\- Int64\(\-52\)\) END \+ Int64\(\-16\) \- Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 * + 44 AS col2, CASE - + 63 WHEN - - 76 THEN NULL WHEN + 35 - + 21 THEN - - 52 END + - 16 - + 11 AS col2 +---- +1848 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -32636,8 +32987,12 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(34\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 7, 28 * - 42 AS col1, - COUNT ( * ) + + 34 AS col1 +---- +-1176 +-7 +33 query I rowsort SELECT - 88 * 26 @@ -32936,8 +33291,11 @@ SELECT ( 99 ) + 9 * + - ( - + 95 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(70\)\) \- Int64\(5\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 70 - + 5 AS col1, COUNT ( * ) AS col1 +---- +-75 +1 query I rowsort label-6274 SELECT - MAX ( DISTINCT + 65 ) * 89 AS col1 @@ -32987,8 +33345,12 @@ SELECT DISTINCT - - 76 # Datafusion - Expected - 0 # Datafusion - Expected - -31 # Datafusion - Expected - 139 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) / Int64\(64\) AS col0" at position 0 and "Int64\(\-16\) / Int64\(47\) \+ Int64\(73\) \+ Int64\(67\) \+ Int64\(\-69\) / Int64\(58\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 18 / 64 AS col0, + 40 + + COUNT ( * ) + - 72, - 16 / + 47 + 73 + 67 + - 69 / + 58 AS col0 +---- +-31 +0 +139 query I rowsort label-6283 SELECT ALL + 16 * 30 * - ( - + COUNT ( * ) ) AS col1 @@ -33394,8 +33756,11 @@ 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\(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\. +query II valuesort SELECT + COALESCE ( + NULLIF ( - 98, + 64 ), - COUNT ( * ) ) + - - 39 - - ( + 42 ) * + 66 AS col0, - 50 + + COUNT ( * ) - ( 27 ) - 4 * - - 61 - - 61 * 8 - - - 31 * + SUM ( - 48 ) AS col0 +---- +1656 +2713 query I rowsort label-6361 SELECT DISTINCT - 37 / - 19 + - + 11 + 44 * - COUNT ( * ) + 25 + + COUNT ( * ) / 39 col2 @@ -34562,8 +34927,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(\-11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 AS col1, - COUNT ( * ) + - 11 AS col1 +---- +-12 +22 query I rowsort label-6587 SELECT + - COUNT ( * ) / 61 * + 97 + - + CASE - 27 WHEN CAST ( 64 AS INTEGER ) * + 16 THEN 76 END @@ -35044,8 +35412,11 @@ SELECT ALL 53 AS col2, - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(88\)\) AS col1" at position 0 and "Int64\(\-8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 88 col1, - 8 AS col1 +---- +-8 +-88 query I rowsort label-6679 SELECT + ( + CASE - 10 WHEN - CAST ( + 0 AS INTEGER ) THEN NULL WHEN - + 27 THEN - + 39 WHEN - 9 THEN NULL END ) @@ -35267,8 +35638,11 @@ SELECT ALL + CASE ( 0 ) WHEN - + CAST ( NULL AS INTEGER ) / - 77 THEN NULL ELSE # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 4368 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col1" at position 0 and "Int64\(\-56\) \* Int64\(\-78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 42 AS col1, - 56 * - 78 AS col1 +---- +42 +4368 query I rowsort SELECT + 93 + + 67 @@ -35431,8 +35805,11 @@ SELECT 97 * + 58 # 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 "Int64\(9\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 9 AS col0, + 2 col0 +---- +2 +9 query I rowsort SELECT DISTINCT NULLIF ( - 82, - - 3 * - 11 ) * + 11 @@ -35506,8 +35883,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col2" at position 0 and "CAST\(Int64\(22\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 82 AS col2, + CAST ( 22 AS INTEGER ) AS col2 +---- +-82 +22 query I rowsort label-6767 SELECT ( - 34 ) + - - NULLIF ( - - 95, - 31 ) - - + SUM ( + 44 ) @@ -36062,8 +36442,11 @@ SELECT DISTINCT 10 * - COUNT ( - 5 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(96\)\) AS col2" at position 0 and "nullif\(CASE nullif\(Int64\(\-83\), Int64\(\-50\) \* Int64\(50\) / Int64\(15\) \* \(\- Int64\(47\)\) \- Int64\(44\)\) WHEN Int64\(\-81\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ sum\(Int64\(\-71\)\) THEN Int64\(17\) WHEN Int64\(40\) \* Int64\(3\) THEN NULL END, Int64\(38\) \* Int64\(53\) \+ \(\- CAST\(Int64\(42\) \+ Int64\(\-33\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-96 +NULL query I rowsort SELECT + 34 - - 71 + + - 14 + + 84 * - 81 - 2 * + + 25 @@ -36183,8 +36566,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * - 4 + 13 + - 57 AS col0, ( + 32 ) AS col0 +---- +-48 +32 query I rowsort SELECT ALL + 37 + + 29 - - 81 @@ -36400,8 +36786,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col2" at position 0 and "Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 14 AS col2, - 45 AS col2 +---- +-45 +14 query I rowsort label-6936 SELECT + 32 + 24 / 4 / - 63 AS col2 @@ -37087,8 +37476,11 @@ SELECT + 49 * - 29 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3080 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(40\) AS Int32\)\) \* Int64\(\-77\) AS col0" at position 0 and "coalesce\(Int64\(54\), Int64\(\-76\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( 40 AS INTEGER ) * ( - 77 ) AS col0, COALESCE ( + 54, - 76 ) AS col0 +---- +3080 +54 query I rowsort SELECT - + 61 - ( 69 ) AS col0 @@ -37622,8 +38014,11 @@ SELECT ALL - + NULLIF ( 45, - + 58 / - - 37 + - COUNT ( * ) + 41 * 1 / - + COALE # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- CAST\(NULL AS Float64\)\)\)\) \* \(\- CASE Int64\(59\) WHEN Int64\(\-87\) / \(\- \(\- Int64\(\-57\)\)\) \- Int64\(\-16\) \+ Int64\(90\) \* Int64\(\-52\) \* Int64\(60\) / Int64\(\-29\) \* \(\- CAST\(Int64\(\-30\) AS Int32\)\) THEN Int64\(\-93\) / Int64\(\-28\) \* Int64\(\-68\) WHEN Int64\(71\) THEN NULL ELSE NULL END\) AS col0" at position 0 and "CAST\(count\(Int64\(0\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - MAX ( - CAST ( NULL AS FLOAT8 ) ) * - CASE + 59 WHEN - 87 / - - ( - 57 ) - - 16 + + 90 * - 52 * + 60 / + - 29 * + - CAST ( - 30 AS INTEGER ) THEN - 93 / - 28 * - 68 WHEN + 71 THEN NULL ELSE NULL END AS col0, CAST ( + + COUNT ( 0 ) AS INTEGER ) col0 +---- +1 +NULL query II rowsort label-7169 SELECT DISTINCT - - COUNT ( DISTINCT - 65 ) AS col1, 17 @@ -38028,8 +38423,11 @@ SELECT ALL + + 83 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 24 AS col2, 53 AS col2 +---- +24 +53 query I rowsort label-7246 SELECT + CAST ( - NULLIF ( + + 73, - - 98 ) AS INTEGER ) @@ -38558,8 +38956,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -118 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \- Int64\(17\) \- Int64\(2\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 99 - 17 - + 2 AS col2, 48 AS col2 +---- +-118 +48 query I rowsort SELECT + 11 * + - 6 @@ -38850,8 +39251,11 @@ SELECT ALL + - 38 * - 40 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 17011 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* Int64\(53\) AS col0" at position 0 and "Int64\(\-11\) \+ Int64\(\-72\) \+ Int64\(74\) \* \(\- Int64\(21\)\) \* \(\- max\(DISTINCT Int64\(11\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 * + 53 AS col0, - 11 + - 72 + 74 * - + 21 * + - MAX ( DISTINCT + 11 ) AS col0 +---- +0 +17011 query I rowsort label-7401 SELECT + COUNT ( * ) * + 56 AS col2 @@ -38989,8 +39393,11 @@ SELECT DISTINCT + ( 65 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \+ \(\- \(\- Int64\(\-93\)\)\) AS col2" at position 0 and "Int64\(48\) \+ Int64\(50\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 99 + - - ( - 93 ) AS col2, 48 + 50 + + - ( - ( CAST ( NULL AS INTEGER ) ) ) AS col2 +---- +6 +NULL query I rowsort SELECT DISTINCT ( - 59 ) + - 72 + - 77 AS col0 @@ -39192,8 +39599,12 @@ SELECT - ( + COUNT ( * ) ) / - - 49 # Datafusion - Expected - 2 # Datafusion - Expected - -133 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \+ Int64\(\-18\) AS col1" at position 0 and "Int64\(\-39\) \+ Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 20 + - 18 AS col1, - 39 + - 94 AS col1, + COUNT ( * ) * COALESCE ( + 68, + 76 ) AS col1 +---- +-133 +2 +68 query I rowsort label-7465 SELECT + 63 * 84 + - COUNT ( * ) + - COUNT ( * ) AS col2 @@ -39228,14 +39639,20 @@ SELECT + + COUNT ( * ) * - 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(3\)\) AS col2" at position 0 and "coalesce\(Int64\(0\), Int64\(88\) \* Int64\(47\) \* Int64\(\-93\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( + 3 ) AS col2, + COALESCE ( - 0, + + 88 * 47 * - 93 ) col2 +---- +0 +1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3026 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(\-89\) AS col0" at position 0 and "\(\- Int64\(\-63\)\) / \(\- coalesce\(Int64\(\-24\), Int64\(\-80\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 34 * - 89 AS col0, - ( - 63 ) / - + COALESCE ( - 24, - 80 ) AS col0 +---- +-3026 +2 query I rowsort label-7473 SELECT ALL SUM ( + - 90 ) @@ -39544,8 +39961,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) col1, 24 AS col1 +---- +-1 +24 query II rowsort SELECT + 10, - CASE + + 33 WHEN + 30 THEN NULL WHEN - - 18 THEN - 95 ELSE NULL END * + + 58 + - 54 * - 59 col0 @@ -40347,8 +40767,11 @@ SELECT DISTINCT 50 * + 5 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10240 # Datafusion - Expected - -2496 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(64\) \* Int64\(32\) AS col2" at position 0 and "Int64\(52\) \* Int64\(\-48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 5 * + 64 * 32 AS col2, 52 * + - 48 AS col2 +---- +-2496 +10240 query II rowsort SELECT 52, 77 col1 @@ -40710,8 +41133,11 @@ SELECT ALL 38 + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 498432 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 0 and "\(\- Int64\(88\)\) \* Int64\(\-59\) \* \(\- Int64\(\-96\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 AS col1, - ( + + 88 ) * - 59 * - - 96 AS col1 +---- +498432 +91 query I rowsort label-7757 SELECT DISTINCT + MAX ( ALL 38 ) * + 22 @@ -40748,8 +41174,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), COUNT ( * ) +---- +1 +1 query I rowsort label-7764 SELECT MAX ( DISTINCT - 63 ) AS col2 @@ -40780,8 +41209,11 @@ SELECT ALL - 31 * 89 + + 24 col2, 85 / + COUNT ( * ) - - + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col1" at position 0 and "Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 93 AS col1, + 77 AS col1 +---- +-93 +77 query I rowsort SELECT 44 * + 31 * - 13 + - 48 + - 25 AS col2 @@ -40874,8 +41306,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) + 16 AS col2, + 25 AS col2 +---- +17 +25 query II rowsort label-7787 SELECT DISTINCT - 69 AS col0, - COUNT ( * ) @@ -41830,8 +42265,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(83\) \* Int64\(23\) \* \(\- Int64\(\-24\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4 AS col1, + COUNT ( * ) + 83 * 23 * - - 24 AS col1 +---- +4 +45817 query I rowsort label-7970 SELECT - 56 + - 62 / - 93 AS col0 @@ -42212,8 +42650,11 @@ SELECT ALL - COUNT ( - 62 ) * - 6 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- sum\(Int64\(\-47\)\)\) \- Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col1, ( + - SUM ( - 47 ) ) - 23 AS col1 +---- +24 +NULL query I rowsort SELECT ALL + 26 + + 60 @@ -42228,8 +42669,11 @@ SELECT - 82 + + 78 * + - 12 * + ( + + 1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1128 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ \(\- Int64\(\-59\)\) \* Int64\(\-20\) AS col0" at position 0 and "Int64\(98\) \+ \(\- Int64\(4\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 52 + - - 59 * - 20 AS col0, 98 + - + 4 AS col0 +---- +-1128 +94 query I rowsort SELECT ALL - 34 * - 76 @@ -42371,8 +42815,11 @@ SELECT + 37 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 310068 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) \* \(\- Int64\(66\)\) \* \(\- Int64\(\-87\)\) \* Int64\(18\) AS col0" at position 0 and "Int64\(58\) / Int64\(79\) \* \(\- Int64\(81\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 3 * - + 66 * - - 87 * 18 col0, ( 58 ) / + 79 * - + 81 AS col0 +---- +0 +310068 query I rowsort label-8072 SELECT + + COUNT ( * ) + 44 * + 51 AS col1 @@ -43046,8 +43493,11 @@ SELECT + COUNT ( * ) AS col1, MAX ( 47 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col1" at position 0 and "Int64\(3\) \* Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 21 AS col1, 3 * + 14 AS col1 +---- +21 +42 query II rowsort SELECT ALL + 5, 47 AS col0 @@ -43098,8 +43548,11 @@ SELECT ALL NULLIF ( 69, - 81 + 46 ) * + 82 AS col0 # 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\)" at position 0 and "Int64\(90\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90, 90 +---- +90 +90 query I rowsort SELECT + 51 * NULLIF ( + - 78, 94 - 3 * 47 ) AS col1 @@ -43779,8 +44232,11 @@ SELECT - ( 52 ) * - + 87 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(\-55\)\)\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( - 55 ) AS col0, 17 col0 +---- +17 +55 query I rowsort label-8345 SELECT - - COUNT ( + ( + - 9 ) ) / + COUNT ( * ) AS col0 @@ -44047,8 +44503,11 @@ SELECT - - 18 + + 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(82\), Int64\(84\) \* \(\- Int64\(\-39\)\), Int64\(35\) \+ Int64\(\-25\)\)\) AS col1" at position 0 and "Int64\(\-63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COALESCE ( + 82, 84 * - - 39, + + 35 + + - 25 ) AS col1, - 63 AS col1 +---- +-63 +-82 query I rowsort label-8396 SELECT + MAX ( DISTINCT CAST ( - 57 AS INTEGER ) ) * + 98 + + - 9 + + 38 * + 21 * - + 87 + + 51 * - COUNT ( * ) @@ -44410,8 +44869,11 @@ SELECT ALL + 21 + + 35 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1497 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ Int64\(\-18\) \* Int64\(83\) \+ Int64\(\-28\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 25 + - 18 * + ( 83 ) + - 28 AS col2, + 3 AS col2 +---- +-1497 +3 query I rowsort SELECT ALL - 41 + ( + + 58 ) + - 18 @@ -44580,8 +45042,11 @@ SELECT 33 * 69 + - 2 # 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 "Int64\(65\) AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 65 AS col1, + 39 AS col1 +---- +39 +65 query I rowsort label-8499 SELECT ALL + CASE - COUNT ( * ) WHEN AVG ( ALL - 20 ) THEN + 86 END @@ -44903,8 +45368,11 @@ SELECT ALL COALESCE ( - CAST ( + 92 AS INTEGER ), 6, + 40 * + + 79 + - COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -611 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "Int64\(34\) \- Int64\(\-21\) \+ Int64\(18\) \* Int64\(\-37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 64 AS col0, 34 - - 21 + + 18 * + - 37 AS col0 +---- +-611 +64 query II rowsort SELECT 33 AS col2, 75 @@ -45381,8 +45849,11 @@ 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\(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\. +query II valuesort SELECT - + 45 + + COUNT ( * ) + + 71 AS col1, ( 52 ) AS col1 +---- +27 +52 query I rowsort SELECT ALL + + 48 AS col0 @@ -45809,8 +46280,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-78\) \+ Int64\(\-66\) \+ Int64\(76\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 85 AS col2, + COALESCE ( 37, + 76, + - COUNT ( * ) * + - 78 + + - 66 + 76 ) AS col2 +---- +37 +85 query I rowsort SELECT ALL - 20 - 25 @@ -45993,8 +46467,11 @@ 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\(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\. +query II valuesort SELECT - NULLIF ( COUNT ( * ), - - 90 ) * + + 39 AS col0, - COUNT ( * ) AS col0 +---- +-1 +-39 query I rowsort label-8765 SELECT + 49 + - ( + 38 ) + - CASE 10 WHEN + ( + - 57 ) THEN NULL WHEN - SUM ( DISTINCT - 86 ) THEN + 70 + - CASE 92 WHEN + 60 THEN - ( 75 ) WHEN + 43 THEN NULL ELSE + + NULLIF ( 64, - + 97 / 17 ) / 52 + - 43 END * 28 END * COUNT ( * ) @@ -46191,8 +46668,11 @@ SELECT ALL - ( - 25 ) / - 68 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 3900 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col0" at position 0 and "Int64\(50\) \* \(\- Int64\(\-78\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 84 AS col0, 50 * - - 78 col0 +---- +-84 +3900 query I rowsort SELECT 23 * - 63 AS col2 @@ -46212,8 +46692,11 @@ 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\(1\)\) AS count\(\*\)\), Int64\(\-16\) \* Int64\(92\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 0 AS col2, COALESCE ( - COUNT ( * ), - 16 * 92 ) AS col2 +---- +-1 +0 query I rowsort label-8806 SELECT 42 / + 65 AS col0 @@ -46512,8 +46995,11 @@ SELECT COUNT ( * ) + - 2 * + 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7570 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(81\)\) \* Int64\(\-93\) \+ Int64\(\-37\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + + MIN ( 81 ) ) * - 93 + + + ( - 37 ) AS col1, 65 AS col1 +---- +-7570 +65 query I rowsort SELECT + - 19 + - 9 AS col2 @@ -46702,8 +47188,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -150 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) \- Int64\(63\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 87 - + + 63 AS col0, + 40 AS col0 +---- +-150 +40 query I rowsort SELECT + 57 * - 98 AS col2 @@ -47146,8 +47635,11 @@ SELECT DISTINCT 66 * + 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1321 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-7\)\) / Int64\(18\) \+ \(\- CAST\(Int64\(\-63\) AS Int32\)\) \+ Int64\(\-22\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(20\) \* Int64\(64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 7 / 18 + + - CAST ( - 63 AS INTEGER ) + - 22 / + COUNT ( * ) + + 20 * + 64 AS col2, COUNT ( * ) AS col2 +---- +1 +1321 query I rowsort SELECT + - 86 * - 47 @@ -47324,8 +47816,11 @@ SELECT ALL + ( - CAST ( + - 51 AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -3736 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 0 and "Int64\(7\) \* \(\- Int64\(\-53\)\) \- Int64\(60\) \- \(\- Int64\(\-71\)\) \* Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 89 AS col1, 7 * - - 53 - 60 - - - 71 * + 57 AS col1 +---- +-3736 +89 query II rowsort label-9015 SELECT ALL + - CASE + 44 WHEN + SUM ( + + 64 ) * + 75 THEN - 1 WHEN CAST ( NULL AS INTEGER ) * - + COUNT ( * ) THEN + 38 END AS col2, CAST ( + 12 AS INTEGER ) + + + 42 @@ -47563,8 +48058,11 @@ SELECT NULLIF ( - 54, 7 / COUNT ( * ) * + 9 ) * 91 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 43 AS col0, 96 AS col0 +---- +-43 +96 query I rowsort label-9060 SELECT COUNT ( * ) + 78 col0 @@ -47608,8 +48106,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * - + COUNT ( * ) * + - 15 + - 82 AS col1, - 38 * 5 + + ( - 45 ) col1 +---- +-235 +-67 query I rowsort SELECT 52 * 47 @@ -47710,8 +48211,11 @@ 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\(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\. +query II valuesort SELECT ALL + 64 + + - 6 - + 83 / - COUNT ( * ) AS col0, - 44 + 59 * - + 29 AS col0 +---- +-1755 +141 query I rowsort label-9087 SELECT - CAST ( NULL AS INTEGER ) + + 35 + 13 + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) - + - 27 * - - COALESCE ( - CASE + 34 WHEN 95 + - + NULLIF ( - + 50, - - AVG ( ALL + 5 ) * + - MAX ( 31 ) ) THEN - 26 / 72 + + CASE + + COUNT ( * ) WHEN 20 * 68 + + 32 THEN NULL WHEN - 58 THEN NULL WHEN - + 77 THEN - 17 END WHEN - 27 THEN NULL END, + CASE + 69 WHEN 79 * + ( 50 ) THEN 54 + - 47 * ( 47 ) ELSE - 42 * - CAST ( 93 * + SUM ( DISTINCT 18 ) AS INTEGER ) + - 67 * 29 END, + 15 + + 55 ) @@ -48065,8 +48569,11 @@ SELECT ALL - 92 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "Int64\(\-83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 AS col0, - 83 AS col0 +---- +-83 +87 query I rowsort label-9155 SELECT ALL ( 42 ) - - COUNT ( * ) + + - ( - 48 ) * - 13 AS col2 @@ -48656,8 +49163,11 @@ SELECT ALL COUNT ( * ) * - + 87 + - 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col2" at position 0 and "Int64\(2\) \- coalesce\(CAST\(Int64\(92\) AS Int32\), \(\- Int64\(11\)\), Int64\(\-21\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 66 ) AS col2, 2 - + + COALESCE ( + CAST ( + ( ( + + 92 ) ) AS INTEGER ), - + 11, - 21 ) AS col2 +---- +-90 +66 query I rowsort label-9268 SELECT - + 87 + - COUNT ( * ) AS col0 @@ -48755,8 +49265,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 135 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT \(\- Int64\(\-77\)\)\) \- Int64\(\-82\) \+ Int64\(\-24\) \* count\(\(\- coalesce\(Int64\(64\), \(\- Int64\(\-50\)\)\)\)\) AS col2" at position 0 and "Int64\(\-32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( DISTINCT - - 77 ) - - 82 + + - 24 * COUNT ( - COALESCE ( 64, - - 50 ) ) col2, - 32 col2 +---- +-32 +135 query I rowsort label-9287 SELECT SUM ( ALL COALESCE ( - 54, - - 61 ) ) * - - CASE - COUNT ( DISTINCT - + 56 ) WHEN CAST ( 28 AS INTEGER ) THEN NULL ELSE + - 50 END * - 75 AS col2 @@ -48973,8 +49486,11 @@ SELECT DISTINCT 37 * + 10 * COUNT ( * ) * 88 + - - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "Int64\(\-8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 98 AS col0, - 8 AS col0 +---- +-8 +98 query I rowsort label-9329 SELECT + 59 * - 39 + 93 * - COUNT ( * ) * - 81 @@ -49046,8 +49562,11 @@ 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\(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\. +query II valuesort SELECT ALL 63 - + COUNT ( * ) + + + 16 + 87 AS col0, NULLIF ( - 82, + + 48 / 81 * - 15 ) + - 13 * + + 12 AS col0 +---- +-238 +165 query I rowsort label-9342 SELECT + - 33 / - + 30 @@ -49183,8 +49702,11 @@ SELECT ALL + COALESCE ( + 56, - 63, + - COUNT ( * ) ) * 24 + 17 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 "\(\- sum\(\(\- CAST\(NULL AS Float64\)\)\)\) AS col2" at position 0 and "Int64\(\-71\) \+ Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT + - SUM ( ALL - CAST ( NULL AS FLOAT8 ) ) AS col2, - 71 + 91 AS col2 +---- +20 +NULL query II rowsort SELECT DISTINCT + 92 * 99 AS col2, + 48 @@ -49250,8 +49772,11 @@ SELECT DISTINCT + 15 * CAST ( + - 67 AS INTEGER ) - + 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-30\) AS col2" at position 0 and "Int64\(98\) \+ CAST\(NULL AS Int32\) \* CASE Int64\(15\) WHEN Int64\(\-84\) THEN NULL WHEN Int64\(11\) \- Int64\(36\) THEN \(\- Int64\(\-49\)\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1 +NULL query I rowsort label-9380 SELECT MIN ( - 47 ) @@ -49355,8 +49880,11 @@ SELECT DISTINCT - 33 col2, SUM ( DISTINCT + - 54 ) * + - 31 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-56\)\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 56 AS col2, + 7 col2 +---- +56 +7 query II rowsort SELECT - 77 AS col0, 65 @@ -49383,8 +49911,11 @@ SELECT ALL - + 91 / - 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 30 AS col1, 23 AS col1 +---- +23 +30 query I rowsort label-9405 SELECT + COUNT ( * ) / + 27 * 72 @@ -49777,8 +50308,11 @@ SELECT + 47 + + - 76 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - -2774 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col0" at position 0 and "\(\- max\(Int64\(38\)\)\) \* Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 62 col0, - MAX ( ALL + 38 ) * + 73 AS col0 +---- +-2774 +-62 query I rowsort SELECT ALL 74 * + 66 * - 36 + + COALESCE ( + 81, 58 ) @@ -50154,8 +50688,11 @@ SELECT 84 * 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 4977 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) / Int64\(31\) \* Int64\(2\) AS col0" at position 0 and "Int64\(79\) \* Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 25 / + 31 * 2 col0, 79 * + 63 AS col0 +---- +0 +4977 query I rowsort label-9553 SELECT 90 / 30 AS col0 @@ -50805,8 +51342,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "Int64\(3\) \- Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 AS col2, ( + 3 ) - + 46 AS col2 +---- +-43 +44 query I rowsort label-9676 SELECT COALESCE ( - COUNT ( * ), + + CAST ( NULL AS INTEGER ) - COUNT ( * ) ) + 60 - - 98 @@ -50873,8 +51413,11 @@ SELECT 9 - - + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) * - + CAST ( NULL AS INTEGER ) col0, 80 AS col0 +---- +80 +NULL query I rowsort label-9689 SELECT ALL + COUNT ( * ) + 14 + + 56 + 8 * + 51 * - - 61 AS col2 @@ -51256,8 +51799,11 @@ SELECT DISTINCT ( - + 49 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(28\)\) AS col0" at position 0 and "Int64\(92\) \+ Int64\(\-70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( ALL 28 ) AS col0, + 92 + + ( + - 70 ) AS col0 +---- +22 +28 query I rowsort label-9761 SELECT + CAST ( 42 AS INTEGER ) + 45 + - COUNT ( * ) * - + 87 * - - COUNT ( * ) @@ -52025,8 +52571,11 @@ SELECT DISTINCT - 8 * + - 10 + - MIN ( ALL - 85 ) + 40 AS col1 # 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\(24\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 24 AS col2, + 37 AS col2 +---- +24 +37 query I rowsort label-9910 SELECT CAST ( COUNT ( * ) AS INTEGER ) + + + 12 * 21 diff --git a/data/sqlite/random/expr/slt_good_38.slt b/data/sqlite/random/expr/slt_good_38.slt index 92664da..8c0353c 100644 --- a/data/sqlite/random/expr/slt_good_38.slt +++ b/data/sqlite/random/expr/slt_good_38.slt @@ -164,8 +164,11 @@ SELECT DISTINCT 29 * + + 89 * + 51 * + + COALESCE ( - ( - + 85 ), 13 / 87 ) / + # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "Int64\(97\) \* max\(Int64\(34\)\) \* CASE CASE Int64\(\-80\) WHEN Int64\(32\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-32\) / Int64\(47\) END WHEN Int64\(28\) THEN NULL ELSE Int64\(17\) END \+ CAST\(NULL AS Int32\) \* Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +7 +NULL query I rowsort label-24 SELECT - 0 + 2 + NULLIF ( - + 64, + COUNT ( * ) * COUNT ( * ) * ( 50 ) + - 95 / - COUNT ( * ) ) AS col1 @@ -253,8 +256,11 @@ SELECT + 61 * - COUNT ( * ) * 96 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / Int64\(\-57\) \- Int64\(\-90\) / Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 85 AS col1, ( CAST ( NULL AS INTEGER ) ) / - 57 - - 90 / + - 86 AS col1 +---- +-85 +NULL query I rowsort label-41 SELECT DISTINCT - ( 28 ) - - COUNT ( * ) AS col0 @@ -1070,8 +1076,11 @@ SELECT 52 - 35 + - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 AS col2, COUNT ( * ) AS col2 +---- +1 +40 query II rowsort SELECT + 56 AS col2, + ( 42 ) AS col0 @@ -1149,8 +1158,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 89 AS col2, - 2 AS col2 +---- +-2 +89 query I rowsort SELECT 33 + + - 62 AS col2 @@ -1452,8 +1464,11 @@ SELECT ALL 37 / + - 97, - 47 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-16\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - - 16 ) AS col1, + COUNT ( * ) AS col1 +---- +1 +16 query I rowsort SELECT ALL 46 * 97 + + ( 26 ) AS col0 @@ -1830,8 +1845,11 @@ 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\(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\. +query II valuesort SELECT COALESCE ( 57, - COUNT ( * ), 98 * + - 5 + + + 8 + 17 ) * - + NULLIF ( - 51, - COUNT ( * ) + - - 34 ) col1, 17 AS col1 +---- +17 +2907 query I rowsort label-342 SELECT ALL ( + 6 ) + ( + COUNT ( * ) ) AS col1 @@ -2496,8 +2514,11 @@ SELECT 94 * 2 * + 26 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1764 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* Int64\(\-21\) AS col0" at position 0 and "min\(Int64\(95\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 84 * - 21 AS col0, MIN ( ALL + + ( + 95 ) ) AS col0 +---- +-1764 +95 query II rowsort label-469 SELECT + MIN ( + 36 ), - 78 + CAST ( NULL AS INTEGER ) * - 84 col0 @@ -2936,8 +2957,11 @@ SELECT DISTINCT - ( + 6 ) * + - 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4690159 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(94\)\) \* Int64\(33\) \* Int64\(27\) \* Int64\(56\) \- sum\(DISTINCT \(\- Int64\(65\)\)\) AS col2" at position 0 and "min\(Int64\(86\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - ( 94 ) * 33 * + 27 * + 56 - SUM ( DISTINCT - + 65 ) AS col2, MIN ( ALL + 86 ) AS col2 +---- +-4690159 +86 query II rowsort label-553 SELECT COUNT ( * ) * 72 AS col2, - 10 @@ -2989,8 +3013,11 @@ SELECT DISTINCT - 49 * 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-37\) \+ Int64\(\-42\) AS col0" at position 0 and "Int64\(\-10\) / \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) * - 37 + - 42 AS col0, - 10 / + - CAST ( NULL AS INTEGER ) AS col0 +---- +-79 +NULL query I rowsort label-563 SELECT - 67 / + 98 * + 58 + + 67 - 54 + + 11 @@ -3356,8 +3383,11 @@ SELECT + 64 * - 99 + 67 + - 65 * + NULLIF ( - COALESCE ( + 33, + - 86 - - - 6 + # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) col0, 3 AS col0 +---- +1 +3 query I rowsort label-632 SELECT CAST ( + + 71 AS INTEGER ) @@ -3553,8 +3583,11 @@ SELECT COUNT ( * ) * + - ( + 31 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-6\), Int64\(24\)\) \+ Int64\(11\) AS col0" at position 0 and "\(\- Int64\(\-27\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + NULLIF ( - 6, + 24 ) + 11 AS col0, - ( - 27 ) col0 +---- +27 +5 query I rowsort SELECT DISTINCT - 70 + + 87 @@ -3684,8 +3717,11 @@ SELECT + 47 + - + COUNT ( * ) / - 11 * + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \* Int64\(40\) \* Int64\(29\) \* CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - 84 ) * + + 40 * + 29 * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2, + 94 AS col2 +---- +94 +NULL query I rowsort SELECT - 70 * + - 54 @@ -3873,8 +3909,11 @@ 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\(60\) \+ \(\- Int64\(28\)\) AS col2" at position 0 and "count\(DISTINCT Int64\(78\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 60 + - + 28 AS col2, + COUNT ( DISTINCT 78 ) AS col2 +---- +1 +32 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -3963,8 +4002,11 @@ SELECT ALL + 7 - - - 80 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 AS col2, + CAST ( NULL AS INTEGER ) AS col2 +---- +85 +NULL query I rowsort SELECT 90 col1 @@ -4216,8 +4258,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 2 ) col0, - COUNT ( * ) AS col0 +---- +-1 +2 query II rowsort label-794 SELECT ALL + 36 + + 55 AS col1, + MAX ( + ( - - 77 ) ) col2 @@ -4274,8 +4319,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) / + 98 AS col0, - 70 AS col0 +---- +-70 +0 query I rowsort label-805 SELECT ALL + ( 1 ) + 8 / - ( - 16 ) AS col2 @@ -4859,8 +4907,11 @@ SELECT ALL MIN ( + - 81 ) + - 48 - + 2 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-27\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* coalesce\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), count\(\(\- Int64\(\-50\)\)\) \- Int64\(74\)\) / Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) * - 27 / COUNT ( * ) col0, COUNT ( * ) * COALESCE ( - + ( - COUNT ( * ) ), COUNT ( - - 50 ) - + 74 ) / 83 col0 +---- +-27 +0 query I rowsort SELECT ALL 59 + - - 92 AS col0 @@ -4875,8 +4926,11 @@ SELECT ( - COUNT ( * ) ) * + 42 * - + 6 + + 36 + 38 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 59 AS col0, 85 AS col0 +---- +-59 +85 query I rowsort SELECT 94 * - 77 * 82 @@ -5025,8 +5079,11 @@ SELECT ALL - + ( 38 ) # 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 "Int64\(\-76\) \* count\(\(\- CASE Int64\(\-90\) WHEN Int64\(\-40\) THEN Int64\(47\) END\)\) AS col1" at position 0 and "Int64\(94\) \+ Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 76 * + COUNT ( - CASE - 90 WHEN + - 40 THEN 47 END ) AS col1, + 94 + + 4 AS col1 +---- +0 +98 query II rowsort SELECT + 40, - 58 AS col1 @@ -5142,14 +5199,20 @@ SELECT + CAST ( - 97 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \+ Int64\(\-54\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 50 + + - 54 AS col0, 36 AS col0 +---- +-4 +36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / 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 II valuesort SELECT COUNT ( * ) / + - 89 AS col2, 72 AS col2 +---- +0 +72 query II rowsort SELECT ALL - + 33 + - 91, + 28 AS col2 @@ -5898,8 +5961,11 @@ SELECT + 20 AS col1, + 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col0" at position 0 and "Int64\(80\) / Int64\(9\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 28 col0, ( + 80 ) / + 9 + COUNT ( * ) AS col0 +---- +-28 +9 query I rowsort label-1118 SELECT ALL + COALESCE ( + ( 48 ), COUNT ( * ) ) AS col1 @@ -5966,8 +6032,11 @@ SELECT - 71, 67 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4050 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-54\)\) \* Int64\(75\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + SUM ( - 54 ) * + 75 AS col0, 75 col0 +---- +-4050 +75 query II rowsort SELECT ALL 43 AS col0, 60 @@ -6179,8 +6248,11 @@ SELECT - ( - + 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) \+ Int64\(\-42\) \+ Int64\(99\) AS col1" at position 0 and "Int64\(\-71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 82 + - 42 + 99 AS col1, - 71 AS col1 +---- +-25 +-71 query I rowsort SELECT + 12 * - 21 AS col1 @@ -6389,8 +6461,11 @@ SELECT ALL 18 + 85 - + - NULLIF ( 73, - 47 / + 40 ) / - 56 - - + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 AS col1, 38 AS col1 +---- +38 +58 query II rowsort label-1213 SELECT ALL 84 AS col2, - COUNT ( * ) + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) @@ -6485,8 +6560,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + COUNT ( * ) col2, - 95 AS col2 +---- +-1 +-95 query I rowsort label-1231 SELECT ALL - MAX ( + 63 ) @@ -6579,8 +6657,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - - COUNT ( * ) col2, COUNT ( * ) * 8 col2 +---- +1 +8 query I rowsort label-1249 SELECT 16 - + 42 + CAST ( - 38 AS INTEGER ) + ( - - MIN ( DISTINCT 20 ) ) + + 12 * + + 3 @@ -7145,8 +7226,12 @@ SELECT DISTINCT - 99 + + 68 - 8 + + 86 # Datafusion - Expected - 11 # Datafusion - Expected - -59 # Datafusion - Expected - -1264 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-59\), Int64\(5\) \* Int64\(9\) \+ Int64\(24\) \+ \(\- CASE Int64\(4\) WHEN Int64\(36\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(43\) THEN min\(Int64\(85\)\) \+ Int64\(35\) WHEN \(\- Int64\(9\)\) \* nullif\(Int64\(39\), CAST\(NULL AS Float64\) \- Int64\(32\)\) \+ Int64\(71\) THEN NULL ELSE NULL END\) / Int64\(46\)\) AS col0" at position 1 and "nullif\(\(\- count\(Int64\(\-43\)\)\), Int64\(\-94\) \+ Int64\(\-67\)\) \* \(\- CAST\(Int64\(54\) AS Int32\)\) \* Int64\(\-22\) / count\(Int64\(1\)\) AS count\(\*\) \+ \(\- max\(DISTINCT Int64\(76\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-1264 +-59 +11 query I rowsort label-1358 SELECT ALL 10 + COALESCE ( 64, + - SUM ( ALL + - ( - 59 ) ) ) * - 76 @@ -7279,8 +7364,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) / - 22 AS col1, 95 * SUM ( DISTINCT + 87 ) AS col1 +---- +0 +8265 query II rowsort SELECT ALL + 56, 10 AS col2 @@ -7381,8 +7469,11 @@ SELECT ALL - + 43 - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \- \(\- coalesce\(Int64\(\-9\), \(\- sum\(Int64\(49\)\)\) \* Int64\(70\) \* Int64\(65\) \+ Int64\(\-62\) \+ Int64\(0\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 AS col2, CAST ( NULL AS INTEGER ) - - COALESCE ( - 9, - SUM ( + + 49 ) * + + 70 * + 65 + - 62 + + - 0 ) AS col2 +---- +88 +NULL query I rowsort label-1403 SELECT ALL 95 - - 87 + MAX ( + + 74 ) * + - 30 @@ -7424,8 +7515,11 @@ SELECT ALL + CAST ( COUNT ( DISTINCT - - 59 ) AS INTEGER ) * - 16 + + ( + 29 ) + # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col1" at position 0 and "Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 AS col1, 95 col1 +---- +68 +95 query I rowsort label-1411 SELECT ALL + 40 / - - 70 AS col0 @@ -7829,8 +7923,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 44 + + 55 * - + 55 * - COUNT ( * ) AS col2, 66 col2 +---- +2981 +66 query II rowsort label-1488 SELECT DISTINCT + 53 * - 3 col0, + 67 + - - MAX ( ALL 67 ) * COUNT ( ALL - 92 ) @@ -8558,8 +8655,11 @@ SELECT + 29 + - 1 + ( 71 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 309 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col2" at position 0 and "Int64\(10\) \* \(\- Int64\(\-31\)\) \+ Int64\(72\) / Int64\(\-67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 46 col2, 10 * - - 31 + 72 / - 67 AS col2 +---- +-46 +309 query I rowsort SELECT - 92 * ( - 39 ) + 56 AS col2 @@ -9125,8 +9225,11 @@ SELECT ( - + 68 ) + - 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col2" at position 0 and "Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 24 AS col2, 32 AS col2 +---- +-24 +32 query II rowsort label-1739 SELECT 68 / 29 + - CAST ( NULL AS INTEGER ), CAST ( + COUNT ( * ) AS INTEGER ) * + 94 - 0 AS col0 @@ -9176,8 +9279,11 @@ SELECT ALL - ( 61 ) AS col1 # 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\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 AS col2, + 23 col2 +---- +23 +27 query II rowsort SELECT + 78, 83 AS col2 @@ -9704,8 +9810,11 @@ SELECT + MAX ( ALL 68 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -104 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \- \(\- Int64\(\-95\)\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 9 ) - - - 95 AS col2, 82 col2 +---- +-104 +82 query I rowsort label-1850 SELECT ALL - COALESCE ( - + 33, + 17 ) * 93 + 57 * + 81 + ( MAX ( ALL 42 ) ) * - ( ( 59 ) ) AS col0 @@ -10191,8 +10300,11 @@ SELECT - COUNT ( * ) * COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col0" at position 0 and "Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 AS col0, - 91 AS col0 +---- +-82 +-91 query I rowsort SELECT DISTINCT + 20 + + 81 @@ -10611,8 +10723,11 @@ SELECT ALL 23 * - - 3 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col0" at position 0 and "Int64\(32\) \+ Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 AS col0, + 32 + + 82 AS col0 +---- +114 +44 query I rowsort SELECT ALL + 66 * - 34 AS col0 @@ -10660,8 +10775,11 @@ SELECT ( + - SUM ( DISTINCT + 82 ) ) / - 67 AS col1, 46 # 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\(\(\- Int64\(\-47\)\), Int64\(97\)\) \* CASE Int64\(58\) WHEN Int64\(98\) THEN Int64\(74\) \+ \(\- Int64\(34\)\) ELSE NULL 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 II valuesort SELECT ALL NULLIF ( - - 47, + 97 ) * + CASE + 58 WHEN 98 THEN + 74 + - + 34 ELSE NULL END col0, + 23 AS col0 +---- +23 +NULL query I rowsort SELECT 89 * + ( - + 8 ) * - + 31 AS col2 @@ -10686,8 +10804,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(CAST\(Int64\(76\) AS Int32\)\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( + CAST ( 76 AS INTEGER ) ) AS col2, + 94 AS col2 +---- +1 +94 query I rowsort SELECT DISTINCT 19 * + 14 @@ -11158,8 +11279,11 @@ SELECT ( + - 71 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(\(\- Int64\(63\)\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 34 AS col0, - COUNT ( * ) + - CAST ( + - ( + 63 ) AS INTEGER ) col0 +---- +34 +62 query I rowsort label-2127 SELECT + 28 / + 66 @@ -11289,8 +11413,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 AS col1, 7 AS col1 +---- +11 +7 query I rowsort SELECT + CASE 32 WHEN - - 90 + 54 * - + 9 THEN - 15 / + 78 END * - 42 + + + 78 @@ -11898,8 +12025,11 @@ SELECT + + COUNT ( ALL - 56 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(71\)\)\) AS col1" at position 0 and "nullif\(Int64\(0\), Int64\(\-82\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( - + ( - + 71 ) ) col1, NULLIF ( + 0, + - 82 ) AS col1 +---- +0 +71 query I rowsort SELECT - 1 * ( 71 ) @@ -12076,8 +12206,11 @@ SELECT COUNT ( * ) * COUNT ( * ) * - 88 * + 41 + + 3 + + 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 9326 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 0 and "Int64\(\-97\) \* Int64\(\-96\) \+ Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 AS col1, - 97 * - 96 + 14 AS col1 +---- +9326 +95 query I rowsort label-2302 SELECT - COUNT ( * ) * + - 8 @@ -12388,8 +12521,11 @@ 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 "Int64\(26\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 26 AS col2, 2 col2 +---- +2 +26 query I rowsort SELECT - - 24 + + 6 AS col2 @@ -12508,8 +12644,11 @@ 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\(1\)\) AS count\(\*\) \+ \(\- Int64\(59\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( CASE 29 WHEN - + 96 - 69 THEN + 78 ELSE NULL END ) / - 27 AS col0, COUNT ( * ) + + ( - + 59 ) AS col0 +---- +-58 +NULL query II rowsort label-2383 SELECT DISTINCT 3 * + 87 AS col2, + CAST ( 74 AS INTEGER ) / - COALESCE ( + NULLIF ( + 66, + 44 ), + COUNT ( + CASE + 88 WHEN 41 * + + 91 THEN - 8 END ), 41 ) @@ -12678,8 +12817,12 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - -4556 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT COUNT ( * ) AS col2, ( - 52 ) * 88 + - - ( 20 ) AS col0, 52 AS col2 +---- +-4556 +1 +52 query I rowsort SELECT ALL 26 + + + 29 + - 8 @@ -13077,8 +13220,11 @@ SELECT ALL 49 - - 61 AS col2, 34 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2970 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-66\)\) \* Int64\(45\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - - 66 ) * + + 45 AS col0, COUNT ( * ) AS col0 +---- +1 +2970 query I rowsort label-2492 SELECT DISTINCT MIN ( - 70 ) @@ -13562,8 +13708,11 @@ 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\(1\)\) AS count\(\*\), Int64\(\-77\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 21 - - + COALESCE ( - + 97, - - 11 + + 6, - - 1, 61 ) AS col2, + COALESCE ( + COUNT ( * ), - 77 ) AS col2 +---- +-118 +1 query I rowsort label-2582 SELECT DISTINCT SUM ( ALL + 20 ) AS col2 @@ -13590,8 +13739,11 @@ SELECT - ( - 53 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -6355 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col2" at position 0 and "Int64\(\-91\) \* Int64\(69\) \- Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 3 col2, - 91 * 69 - + 76 AS col2 +---- +-6355 +3 query II rowsort label-2587 SELECT ALL NULLIF ( COUNT ( * ), - + 12 ) * 65 * - - 60 AS col2, + COUNT ( * ) * 41 @@ -13949,8 +14101,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-35\) \+ Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 27 AS col0, + 67 + - COUNT ( * ) * - 35 + - 94 AS col0 +---- +27 +8 query I rowsort label-2656 SELECT DISTINCT + - 81 * - 79 + + 40 * + + 59 * - COALESCE ( - 77, + ( - MAX ( ALL - 98 ) ) ) @@ -14003,8 +14158,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 6636 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col1" at position 0 and "Int64\(\-84\) \* Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 31 AS col1, - 84 * + - 79 AS col1 +---- +31 +6636 query I rowsort label-2665 SELECT - MAX ( 73 ) - - 5 @@ -14035,8 +14193,11 @@ SELECT 55 * - + 68 * + 11 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5760 # Datafusion - Expected - -774 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(64\) AS col2" at position 0 and "Int64\(18\) \* Int64\(\-43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 * + 64 col2, + 18 * - 43 AS col2 +---- +-774 +5760 query I rowsort SELECT ALL - 56 * - + 69 @@ -14267,8 +14428,11 @@ SELECT ALL + 63 + 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "coalesce\(Int64\(\-4\), Int64\(0\), Int64\(\-73\), Int64\(76\) \* \(\- nullif\(min\(Int64\(1\)\), Int64\(\-11\) \* Int64\(22\) \- coalesce\(Int64\(19\), \(\- CAST\(NULL AS Int32\)\)\)\)\)\) \* CASE Int64\(\-65\) WHEN Int64\(75\) \+ Int64\(14\) \* min\(DISTINCT Int64\(15\)\) \+ Int64\(62\) / Int64\(\-98\) THEN NULL WHEN Int64\(21\) / \(\- CASE \(\- Int64\(\-73\)\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN \(\- Int64\(85\)\) END\) \* Int64\(\-19\) \* Int64\(53\) THEN NULL WHEN Int64\(0\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(31\) END \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +NULL +NULL query I rowsort label-2715 SELECT - + COUNT ( * ) + 53 * - - 63 @@ -14599,8 +14763,11 @@ SELECT 15 + + - 72 / - NULLIF ( 10, CASE - 17 WHEN + NULLIF ( + - 46, AVG ( DIST # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col1" at position 0 and "Int64\(\-88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 17 AS col1, - 88 AS col1 +---- +-17 +-88 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -14768,8 +14935,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 13 AS col1, + 46 AS col1 +---- +13 +46 query I rowsort SELECT 96 + + 71 AS col0 @@ -14887,8 +15057,11 @@ SELECT - - 55, 70 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "Int64\(7\) \+ Int64\(\-64\) \+ Int64\(\-61\) \+ Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 43 AS col1, 7 + - 64 + - 61 + + + ( + + 76 ) AS col1 +---- +-42 +43 query I rowsort SELECT DISTINCT 83 * - 68 * 51 AS col2 @@ -15241,8 +15414,11 @@ 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\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 AS col0, + 58 AS col0 +---- +17 +58 query II rowsort label-2897 SELECT ALL - - 86 * - 78 * + 54 AS col2, + 99 * + 61 * - ( 13 ) - - - SUM ( + - 1 ) @@ -15454,8 +15630,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * 20 AS col2, 18 AS col2 +---- +18 +20 query I rowsort SELECT DISTINCT NULLIF ( 72, - 34 ) @@ -15880,8 +16059,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 86 + + 19 * - 12 + + - 25 - - - 95 AS col0, - COUNT ( * ) col0 +---- +-1 +-434 query I rowsort label-3018 SELECT ALL 26 / - 8 AS col0 @@ -17163,8 +17345,11 @@ SELECT ALL 80 * 42, 7 * - - 91 + + 20 / 5 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 100 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(33\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-6\) \* Int64\(26\), \(\- nullif\(Int64\(83\), Int64\(66\)\)\) \+ Int64\(\-73\)\) \- Int64\(\-99\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( + COUNT ( * ), 33 * ( + COUNT ( * ) ) * - 6 * + 26, - NULLIF ( + + 83, + 66 ) + - 73 ) - - 99 AS col1, + CAST ( NULL AS INTEGER ) + - 85 col1 +---- +100 +NULL query I rowsort label-3258 SELECT ALL COALESCE ( + 2, + - 37 ) * + NULLIF ( - COUNT ( * ), + + 22 + - 38 ) + + - 98 @@ -17940,8 +18125,11 @@ SELECT + COUNT ( * ) + + - 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(69\) \+ sum\(Int64\(\-85\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, + 69 + SUM ( - 85 ) AS col2 +---- +-16 +1 query I rowsort SELECT + 85 + COALESCE ( - 66, 3 ) * 82 AS col0 @@ -18386,8 +18574,11 @@ SELECT ALL - 94 / - 40 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2407 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \+ \(\- Int64\(89\)\) \* Int64\(\-28\) AS col2" at position 0 and "Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 85 + - + 89 * - 28 AS col2, + 25 AS col2 +---- +2407 +25 query I rowsort SELECT - 37 * - COALESCE ( + 32, + NULLIF ( 66, 84 ) - - 61 ) @@ -18555,8 +18746,11 @@ SELECT ALL + ( - - 59 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, 6 AS col1 +---- +1 +6 query I rowsort SELECT + COALESCE ( + + 51, - 88 ) @@ -19555,8 +19749,11 @@ SELECT ALL 19 * 45 * + COUNT ( * ) * 6 AS col1, + 62 + 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -117 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ Int64\(\-29\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(70\) \* CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-34\) \- Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 + - 29 + + - COUNT ( * ) - + 70 * + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col1, - 34 - + + 83 AS col1 +---- +-117 +NULL query II rowsort SELECT 73, 8 AS col1 @@ -19636,8 +19833,11 @@ SELECT 26 + - 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 41 AS col2, 54 AS col2 +---- +41 +54 query I rowsort label-3731 SELECT DISTINCT + MIN ( ALL + 36 ) @@ -19925,8 +20125,11 @@ SELECT ALL + 27 * - - COUNT ( * ) + 85 + + 11 + + 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 AS col0, + 21 AS col0 +---- +21 +85 query I rowsort SELECT - - 44 + - 55 AS col0 @@ -19999,8 +20202,11 @@ SELECT 77 AS col2, + COALESCE ( - + 69, - 80, + ( - + 30 ) * - 87 + + + 21 + - 6 # 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\) AS col0" at position 0 and "Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 AS col0, - 45 AS col0 +---- +-10 +-45 query II rowsort SELECT + 47 * 55 + - - 59, 47 col1 @@ -20872,8 +21078,11 @@ SELECT DISTINCT 53 + + - CASE + SUM ( ALL - 64 ) WHEN - 64 THEN 1 * - + 81 * - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -1837 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(85\)\) AS col2" at position 0 and "Int64\(\-72\) \- Int64\(98\) \* Int64\(18\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( DISTINCT + 85 ) AS col2, - 72 - 98 * 18 - + COUNT ( * ) AS col2 +---- +-1837 +85 query I rowsort SELECT + ( - - 75 ) @@ -21089,8 +21298,11 @@ SELECT DISTINCT + 57 - 68 + + 53 + + - 51 / + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 4478 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "Int64\(50\) \* \(\- Int64\(\-88\)\) \- Int64\(\-78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 64 AS col1, + 50 * - - 88 - - 78 AS col1 +---- +4478 +64 query I rowsort label-4009 SELECT ALL - COUNT ( * ) * + NULLIF ( 83, - 95 ) AS col0 @@ -21250,8 +21462,11 @@ SELECT DISTINCT + 91 AS col1, 46 / 70 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-41\)\) \+ Int64\(\-30\) \+ Int64\(\-44\) \- Int64\(39\) \- Int64\(16\) / CAST\(Int64\(\-51\) AS Int32\) \* Int64\(51\) \* Int64\(\-92\) / Int64\(79\) AS col1" at position 0 and "Int64\(89\) \* coalesce\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-75\) \+ Int64\(55\), Int64\(\-63\) / Int64\(\-94\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-38\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-72 +89 query II rowsort SELECT + 48 AS col2, 20 @@ -21776,8 +21991,11 @@ SELECT + MIN ( DISTINCT + 53 ) + + + 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(84\) AS Int32\)\) AS col1" at position 0 and "count\(\(\- CASE Int64\(96\) WHEN \(\- nullif\(Int64\(78\), Int64\(\-35\) \+ Int64\(\-72\)\)\) \- Int64\(83\) \+ Int64\(32\) \* Int64\(\-56\) THEN Int64\(\-32\) ELSE Int64\(52\) END\)\) \+ Int64\(77\) / Int64\(\-46\) \+ Int64\(51\) \+ Int64\(14\) / Int64\(\-99\) \+ Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + CAST ( + + 84 AS INTEGER ) col1, COUNT ( ALL - CASE ( + + ( + 96 ) ) WHEN - + NULLIF ( + 78, ( - 35 ) + - 72 ) - + ( + 83 ) + 32 * - 56 THEN - 32 ELSE + 52 END ) + ( 77 ) / + - 46 + + 51 + + 14 / + - 99 + + 91 col1 +---- +-84 +142 query I rowsort SELECT DISTINCT 15 + 92 * + 82 + + 78 + 1 AS col1 @@ -21994,8 +22212,11 @@ SELECT 35 * - 26 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 AS col1, + 67 AS col1 +---- +42 +67 query II rowsort SELECT ALL 86 AS col0, 16 @@ -22145,8 +22366,11 @@ 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\(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\. +query II valuesort SELECT + 94 * - + 68 * + + COUNT ( * ) - - + 19 AS col0, - 12 - + + 31 AS col0 +---- +-43 +-6373 query II rowsort SELECT + 64 * - + 98 AS col1, 75 @@ -22162,8 +22386,11 @@ SELECT ALL + 16 / COALESCE ( 73, ( + + ( + COUNT ( * ) ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -282 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(\-94\) AS col0" at position 0 and "Int64\(\-87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 * - 94 AS col0, - 87 AS col0 +---- +-282 +-87 query I rowsort SELECT 17 * 75 + - 4 AS col2 @@ -22249,8 +22476,11 @@ SELECT DISTINCT 75 + - + 29 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 213398 # Datafusion - Expected - 2646 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) \* Int64\(59\) \* Int64\(\-74\) \+ Int64\(\-67\) \* Int64\(8\) AS col1" at position 0 and "Int64\(42\) \* Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 49 * + 59 * + - 74 + - 67 * + + 8 AS col1, + 42 * 63 AS col1 +---- +213398 +2646 query I rowsort label-4231 SELECT ALL + 8 * - + ( - 7 ) + - + 12 + + COUNT ( * ) + 67 col1 @@ -22388,8 +22618,11 @@ SELECT ALL + 58 * + 61 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - -1148 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(13\)\) \+ Int64\(\-48\) AS col0" at position 0 and "Int64\(28\) \* Int64\(\-41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MAX ( 13 ) + - 48 AS col0, 28 * + - 41 AS col0 +---- +-1148 +-35 query I rowsort SELECT + 43 - 51 AS col1 @@ -22678,8 +22911,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) / + COALESCE ( ( + - COALESCE ( + + 53, + 83 + - 1 ) ), 32 ) * - 50 AS col0, 85 AS col0 +---- +0 +85 query I rowsort SELECT + 1 + - 7 * + - 12 * - 39 @@ -22838,8 +23074,11 @@ SELECT ALL + 32 * - 38 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-66\), Int64\(\-4\)\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT NULLIF ( - 66, + - 4 ) AS col2, 36 AS col2 +---- +-66 +36 query I rowsort SELECT ALL 26 * + - 58 @@ -22880,8 +23119,11 @@ SELECT - 72 + CASE + 41 WHEN + - 13 * 98 THEN NULL ELSE COUNT ( * ) END - 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 45 AS col0, 41 AS col0 +---- +41 +45 query I rowsort label-4352 SELECT - + CAST ( - CAST ( NULL AS FLOAT8 ) AS INTEGER ) / + - 16 + + 34 + + 36 AS col2 @@ -22912,8 +23154,11 @@ SELECT - 25 * - 21 + - COALESCE ( + - 10, 11 + + 68 ) + 22 * ( + - 57 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "\(\- Int64\(76\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 AS col0, ( - + 76 ) AS col0 +---- +-76 +32 query I rowsort label-4358 SELECT COUNT ( * ) / + 93 + + 53 @@ -23002,8 +23247,11 @@ SELECT + 71 * - COUNT ( ALL - 59 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -33582 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "Int64\(30\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(14\) \+ CAST\(Int64\(\-9\) AS Int32\) \* Int64\(\-84\) \* \(\- Int64\(55\)\) \+ \(\- \(\- \(\- Int64\(\-97\)\)\)\) \* \(\- \(\- Int64\(82\)\)\) \- \(\- sum\(DISTINCT Int64\(7\)\)\) / Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 43 AS col1, 30 / COUNT ( * ) + + 14 + CAST ( - 9 AS INTEGER ) * - 84 * + ( - + 55 ) + - - ( - - 97 ) * + - ( - + 82 ) - - + SUM ( DISTINCT 7 ) / 87 AS col1 +---- +-33582 +43 query I rowsort label-4375 SELECT + 88 - + + 21 + CAST ( + CASE + 72 WHEN 88 - 64 THEN NULL ELSE + COALESCE ( - 57, - 53, + 10 ) + + 97 END AS INTEGER ) * 22 @@ -23288,8 +23536,11 @@ SELECT - 29 + - 2 # 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 "\(\- nullif\(\(\- Int64\(17\)\), Int64\(\-49\) \+ Int64\(\-9\) / Int64\(3\)\)\) AS col2" at position 0 and "\(\- min\(Int64\(61\)\)\) \+ Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( - + 17, - 49 + - 9 / + 3 ) AS col2, - MIN ( ALL 61 ) + + 54 col2 +---- +-7 +17 query I rowsort SELECT ALL - CASE + 81 WHEN + - 66 THEN NULL ELSE 28 END * + - 83 AS col1 @@ -23314,8 +23565,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(79\), Int64\(\-14\)\)\) AS col0" at position 0 and "Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( + + 79, - 14 ) AS col0, + 74 col0 +---- +-79 +74 query I rowsort label-4434 SELECT COUNT ( * ) + - 21 + + 70 + + 87 AS col0 @@ -23444,8 +23698,11 @@ SELECT ALL - + 67 + + NULLIF ( + + 29, 77 + 54 ) * MIN ( ALL - 77 ) # 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 "Int64\(\-60\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 60 AS col0, 64 AS col0 +---- +-60 +64 query I rowsort label-4458 SELECT - 71 * + SUM ( ALL COALESCE ( - 75, + 94 / - 58 ) ) + - COUNT ( + - 3 ) + 28 AS col1 @@ -23976,8 +24233,11 @@ NULL # 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 "coalesce\(Int64\(33\), \(\- Int64\(87\)\)\) / Int64\(\-75\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COALESCE ( + 33, - + 87 ) / + - 75 AS col2, 30 AS col2 +---- +0 +30 query I rowsort label-4560 SELECT ALL + + ( + 58 ) / 48 AS col0 @@ -24390,8 +24650,11 @@ SELECT DISTINCT 91 * + 15 * 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(33\)\) AS col1" at position 0 and "CASE Int64\(\-16\) WHEN Int64\(65\) THEN Int64\(75\) WHEN Int64\(92\) / \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) \+ Int64\(46\) THEN Int64\(\-49\) ELSE NULL END \* Int64\(\-20\) \+ Int64\(77\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +33 +NULL query I rowsort label-4638 SELECT DISTINCT 4 * + + COUNT ( * ) * + - MAX ( ALL - - 92 ) + + ( COALESCE ( + 65, - 96 ) ) + - + 96 - - 37 * + - 14 + + + 86 AS col0 @@ -24411,8 +24674,11 @@ SELECT ALL 79 * - 72 + + 8 * - 73 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3984 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* \(\- \(\- Int64\(77\)\)\) \+ Int64\(9\) \* Int64\(12\) \* Int64\(\-23\) AS col2" at position 0 and "Int64\(\-93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 * - - ( + 77 ) + ( + 9 ) * 12 * - 23 AS col2, ( - 93 ) AS col2 +---- +-93 +3984 query I rowsort SELECT - 7 * - 26 * + ( + - 62 ) * 52 @@ -24728,8 +24994,11 @@ SELECT 40 col1, + 32 + + ( 29 ) + + - 58 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - ( - CAST ( NULL AS INTEGER ) ) ) / - COUNT ( * ) AS col2, - 22 AS col2 +---- +-22 +NULL query II rowsort SELECT + 32, 22 * 28 col1 @@ -25144,8 +25413,11 @@ SELECT ( ( - COALESCE ( 61, - 76 * 76 ) ) ) AS col1, + 96 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -671 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* Int64\(\-14\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 48 * - 14 + COUNT ( * ) AS col0, 89 AS col0 +---- +-671 +89 query I rowsort label-4781 SELECT - 35 * + COUNT ( * ) / - - 55 @@ -25204,8 +25476,11 @@ SELECT DISTINCT - + 94 * - - ( - 74 ) + + ( + + 38 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 AS col1, COUNT ( * ) col1 +---- +-48 +1 query I rowsort SELECT ALL ( 49 ) @@ -25376,8 +25651,11 @@ SELECT 17 * + - 28 * + 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7068 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* \(\- Int64\(93\)\) AS col0" at position 0 and "Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 * - + 93 AS col0, 62 AS col0 +---- +-7068 +62 query I rowsort label-4825 SELECT 63 - + 27 / 26 + + + 7 @@ -25422,15 +25700,22 @@ SELECT 45 * - ( + + 46 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 24 col0, + CAST ( NULL AS INTEGER ) AS col0 +---- +24 +NULL # Datafusion - Datafusion expected results: # 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\(1\)\) AS count\(\*\)\) \* Int64\(43\) \+ Int64\(76\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 76 AS col2, + 91 - - COUNT ( * ), - COUNT ( * ) * + 43 + + 76 AS col2 +---- +33 +76 +92 query I rowsort SELECT 22 * - - 18 AS col2 @@ -25895,8 +26180,11 @@ 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\(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\. +query II valuesort SELECT ALL + 14 * 75 col2, - COALESCE ( - 12, + + 89 * - 61 * + 69 - + + 70 + - 69 + + COUNT ( * ), - ( - + 46 ) * + - ( + 16 ) * + - 31 * + MAX ( + ( - 70 ) ) + 37 - + 33 ) col2 +---- +1050 +12 query I rowsort label-4923 SELECT - 55 / - 83 AS col0 @@ -26127,8 +26415,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 335 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* count\(Int64\(1\)\) AS count\(\*\) \+ coalesce\(\(\- Int64\(\-37\)\), Int64\(43\)\) \+ nullif\(\(\- Int64\(19\)\), max\(DISTINCT Int64\(66\)\) \+ Int64\(25\)\) \* \(\- Int64\(15\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 * + + COUNT ( * ) + COALESCE ( - - 37, 43 ) + + NULLIF ( - + ( 19 ), MAX ( DISTINCT + + 66 ) + + + 25 ) * - + 15 + + COUNT ( * ) AS col1, + ( COUNT ( * ) ) col1 +---- +1 +335 query I rowsort SELECT + 97 - + 36 @@ -27076,8 +27367,11 @@ SELECT ALL - ( + 31 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, + ( 1 ) AS col0 +---- +1 +1 query I rowsort SELECT - ( + 7 ) * 45 + 35 col0 @@ -27401,8 +27695,11 @@ SELECT ALL ( ( - + COUNT ( * ) ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \+ Int64\(72\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 53 + 72 AS col0, 73 AS col0 +---- +19 +73 query I rowsort label-5213 SELECT ALL + MIN ( ALL - 20 ) + + COUNT ( ALL + 69 ) AS col0 @@ -27458,8 +27755,11 @@ SELECT - 54 * - 88 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, - 51 AS col0 +---- +-51 +1 query I rowsort label-5224 SELECT + CAST ( - 51 AS INTEGER ) @@ -27611,8 +27911,12 @@ SELECT DISTINCT 7, 15 AS col1 # Datafusion - Expected - 54 # Datafusion - Expected - 58 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 1 and "Int64\(\-19\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 54, 58 AS col1, - 19 AS col1 +---- +-19 +54 +58 query I rowsort SELECT DISTINCT + 19 * 27 @@ -27632,8 +27936,11 @@ SELECT DISTINCT 71 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 22 AS col0, + COUNT ( * ) AS col0 +---- +1 +22 query I rowsort label-5257 SELECT COUNT ( * ) * 98 AS col0 @@ -27985,8 +28292,11 @@ 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\(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\. +query II valuesort SELECT ALL - 34 * COUNT ( * ) - - - 93 AS col0, + 83 AS col0 +---- +-127 +83 query I rowsort SELECT + + 37 AS col0 @@ -28522,8 +28832,11 @@ 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\(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\. +query II valuesort SELECT - MIN ( ALL + 82 ) * - 95 + + 39 * - - NULLIF ( 8, + - COUNT ( * ) ) col2, + COUNT ( * ) - + 83 AS col2 +---- +-82 +8102 query I rowsort label-5427 SELECT ALL 76 * + MIN ( + 45 ) AS col0 @@ -28533,8 +28846,11 @@ 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\(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\. +query II valuesort SELECT - CASE COUNT ( * ) WHEN - 17 THEN 73 ELSE SUM ( - 8 ) * - - COUNT ( * ) END - + 24 - - - 11 AS col0, - ( - + 69 ) AS col0 +---- +-27 +69 query II rowsort SELECT - 36 AS col2, 89 * + 68 + - ( 50 ) @@ -28928,8 +29244,11 @@ SELECT DISTINCT - 0 col0, 15 * + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \- Int64\(64\) \+ Int64\(\-60\) \* Int64\(\-95\) \* Int64\(\-76\) \* Int64\(91\) \* CASE \(\- Int64\(71\)\) WHEN Int64\(\-14\) \* \(\- CAST\(NULL AS Int32\)\) \- Int64\(79\) THEN Int64\(\-15\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 AS col1, CAST ( NULL AS INTEGER ) - 64 + - 60 * - 95 * - 76 * 91 * CASE - + 71 WHEN - 14 * - CAST ( NULL AS INTEGER ) - + 79 THEN + - 15 END AS col1 +---- +93 +NULL query I rowsort SELECT 83 * + 7 * + - 18 * 70 AS col0 @@ -29028,8 +29347,12 @@ SELECT DISTINCT MIN ( ALL + 80 ) AS col2 # Datafusion - Expected - -1 # Datafusion - Expected - -94 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \+ Int64\(4\) \* CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\) AS col2" at position 1 and "Int64\(\-30\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - COUNT ( * ), ( + - 98 ) + + 4 * + CAST ( - - COUNT ( * ) AS INTEGER ) AS col2, - 30 AS col2 +---- +-1 +-30 +-94 query I rowsort label-5521 SELECT ALL + 15 - - COALESCE ( + 0, COUNT ( * ) + + 65 + - 40 - - 48 * COUNT ( * ) ) AS col2 @@ -29356,8 +29679,11 @@ 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\(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\. +query II valuesort SELECT + 92 * - 15 * + 62 AS col1, + COUNT ( * ) + - + COALESCE ( - 25, - + COUNT ( * ) * + 43 * 71 + - 99 + - + COALESCE ( + 71, + 73 ) * + ( - 19 ) * 39 ) AS col1 +---- +-85560 +26 query II rowsort label-5585 SELECT 79, + 53 + - NULLIF ( - - 26, + CASE - 72 WHEN + - 8 THEN 41 - + COUNT ( * ) WHEN - 34 - + ( - 98 ) THEN - - CAST ( NULL AS INTEGER ) END / - + ( + 31 ) * - 75 * 21 ) * - 4 AS col1 @@ -29653,8 +29979,11 @@ SELECT DISTINCT + 29 / 5 * - 35 * 9 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(95\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 95 * - CAST ( NULL AS INTEGER ) AS col1, 81 col1 +---- +81 +NULL query I rowsort SELECT ALL 21 * + - 2 * - 86 @@ -29700,8 +30029,11 @@ SELECT 77 + - ( + 78 ) * - 74 * + - 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 4 AS col2, 91 AS col2 +---- +-4 +91 query II rowsort SELECT ALL 5 col2, - 79 @@ -30218,8 +30550,11 @@ SELECT - 59 * - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 57 col0, 88 AS col0 +---- +-57 +88 query I rowsort SELECT ALL + 67 * + + 7 @@ -30244,8 +30579,11 @@ SELECT ALL + NULLIF ( + 70, NULLIF ( COUNT ( * ), ( + 38 ) ) ) * - + 60 * + - MI # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "min\(\(\- Int64\(33\)\)\) \+ Int64\(26\) \+ Int64\(\-93\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, MIN ( - + 33 ) + + 26 + - 93 * - CAST ( NULL AS INTEGER ) + + + 50 AS col0 +---- +NULL +NULL query I rowsort SELECT 54 * - 54 * - 29 + - + 94 AS col0 @@ -31271,8 +31609,11 @@ SELECT + - COALESCE ( - 59, - 77 ) + - 12 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col0" at position 0 and "Int64\(84\) \* CASE Int64\(35\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN \(\- Int64\(93\)\) \* Int64\(9\) \* Int64\(57\) / Int64\(\-9\) \+ CAST\(NULL AS Int32\) \+ Int64\(89\) ELSE NULL END \* Int64\(\-18\) \- Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 9 AS col0, 84 * CASE + 35 WHEN + - ( + + CAST ( NULL AS INTEGER ) ) THEN - + 93 * + 9 * 57 / - 9 + + CAST ( NULL AS INTEGER ) + + 89 ELSE NULL END * - 18 - + 32 AS col0 +---- +-9 +NULL query I rowsort SELECT ALL - 73 * 63 + - - 15 AS col0 @@ -31421,8 +31762,11 @@ SELECT - 35 * 37 * + CAST ( - 2 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2400 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* Int64\(60\) AS col0" at position 0 and "Int64\(92\) \- Int64\(86\) / Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 40 * + 60 AS col0, 92 - 86 / ( + 54 ) col0 +---- +2400 +91 query I rowsort label-5977 SELECT ALL SUM ( ALL - 46 ) @@ -31646,8 +31990,11 @@ SELECT ALL SUM ( DISTINCT + ( + 25 ) ) + + + 5 + COUNT ( * ) + - 32 / - ( - 41 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - -283392 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- Int64\(\-14\)\), Int64\(44\)\)\) AS col0" at position 0 and "Int64\(\-41\) \* Int64\(72\) \* \(\- sum\(DISTINCT Int64\(\-96\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - NULLIF ( - - 14, + 44 ) AS col0, - 41 * 72 * - SUM ( DISTINCT - 96 ) AS col0 +---- +-14 +-283392 query I rowsort label-6020 SELECT - + 15 * + CAST ( - 57 AS INTEGER ) + + - COUNT ( * ) + - - 59 @@ -32001,8 +32348,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col1, - 19 * - 79 * - + 81 AS col1 +---- +-1 +-121581 query I rowsort SELECT ALL ( - NULLIF ( - 2, - 59 + + 76 ) ) @@ -32204,8 +32554,11 @@ SELECT DISTINCT ( + 80 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col0" at position 0 and "Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 29 AS col0, - 90 AS col0 +---- +-90 +29 query I rowsort SELECT DISTINCT - 1 * - 42 @@ -32530,8 +32883,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \+ \(\- min\(DISTINCT Int64\(11\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 11 / - 49 - + 65 AS col2, COUNT ( * ) + - MIN ( DISTINCT + + 11 ) AS col2 +---- +-10 +-65 query I rowsort SELECT ALL 90 * - 75 @@ -32824,8 +33180,11 @@ SELECT 98, COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 35 AS col0, COUNT ( * ) AS col0 +---- +-35 +1 query I rowsort label-6245 SELECT ALL - COUNT ( DISTINCT + 1 ) @@ -33333,8 +33692,11 @@ SELECT ALL + 1 * + 90 * 28 * 3 * 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2223 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \- Int64\(98\) \* Int64\(22\) \+ Int64\(98\) / Int64\(\-2\) \+ Int64\(25\) \+ Int64\(6\) \* Int64\(0\) AS col1" at position 0 and "\(\- \(\- Int64\(53\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 43 - + 98 * + ( + 22 ) + 98 / - 2 + 25 + 6 * - 0 col1, - ( - + 53 ) AS col1 +---- +-2223 +53 query I rowsort SELECT ALL - - ( + 55 ) AS col1 @@ -33719,8 +34081,12 @@ SELECT ALL MAX ( DISTINCT - 27 ) * - 12 * - - COUNT ( * ) + 97 # Datafusion - Expected - 89 # Datafusion - Expected - 92 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col0" at position 0 and "Int64\(\-41\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 89 col0, - ( - + NULLIF ( + 34, + - COUNT ( * ) ) ) + + ( - - 58 ), - 41 AS col0 +---- +-41 +89 +92 query I rowsort label-6416 SELECT ALL CASE + - 90 WHEN + 59 THEN NULL WHEN - 99 THEN 57 END * 51 + - COALESCE ( - + 74, 90 ) + - 62 - + 94 / + + COUNT ( * ) + + + 70 * + + COUNT ( * ) @@ -33910,8 +34276,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -166250 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(35\) \* \(\- CASE Int64\(93\) WHEN \(\- Int64\(26\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE \(\- coalesce\(Int64\(\-95\), Int64\(50\), Int64\(19\) \+ Int64\(62\)\)\) \* Int64\(50\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, + 35 * - CASE 93 WHEN - + 26 THEN - COUNT ( * ) ELSE - COALESCE ( + - 95, 50, + 19 + + 62 ) * + + 50 END AS col1 +---- +-166250 +1 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -34089,8 +34458,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(75\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - MAX ( 75 ) AS col1, COUNT ( * ) AS col1 +---- +1 +75 query I rowsort SELECT + 62 * - 47 + 51 + 19 AS col2 @@ -34100,8 +34472,11 @@ SELECT + 62 * - 47 + 51 + 19 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) 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 II valuesort SELECT + 87 AS col2, SUM ( DISTINCT + 61 ) AS col2 +---- +61 +87 query I rowsort label-6488 SELECT 51 / - - 99 + 28 * + 16 + 44 AS col1 @@ -34142,8 +34517,11 @@ SELECT + 8, 78 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4484 # Datafusion - Expected - -180 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* Int64\(76\) AS col2" at position 0 and "Int64\(60\) \* Int64\(\-3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + 59 ) * + 76 AS col2, 60 * - 3 col2 +---- +-180 +4484 query II rowsort SELECT ALL 21 AS col0, + 84 AS col2 @@ -34229,8 +34607,11 @@ SELECT DISTINCT + 12 + + 20 / 92 * + 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 41 col1, - 66 AS col1 +---- +-66 +41 query I rowsort SELECT 85 + - + 20 * + 2 AS col2 @@ -34409,8 +34790,11 @@ SELECT ALL ( + ( + 2 ) ) - - 18 * - 28 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3472 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* Int64\(56\) AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 62 * + 56 AS col1, + 28 AS col1 +---- +28 +3472 query I rowsort SELECT + - 87 - - 50 @@ -34728,8 +35112,11 @@ SELECT 78 * 25 * - - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 107 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) AS col0" at position 0 and "Int64\(74\) \+ Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 13 col0, 74 + 33 AS col0 +---- +-13 +107 query II rowsort SELECT 94 AS col2, - NULLIF ( - 95, + 38 ) @@ -34850,8 +35237,11 @@ SELECT ALL - 16 * - 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ Int64\(\-59\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 93 + + - 59 AS col1, + 45 AS col1 +---- +34 +45 query I rowsort label-6629 SELECT ALL - 52 + - + 57 - - MAX ( DISTINCT - 33 ) - + 69 * 67 AS col0 @@ -34896,8 +35286,11 @@ SELECT ALL - 26 - 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 86 * COUNT ( * ) AS col1, 96 AS col1 +---- +86 +96 query I rowsort SELECT ALL 3 - - ( - + 86 ) AS col2 @@ -34932,8 +35325,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 * + 75 / + 15 AS col2, - COUNT ( * ) AS col2 +---- +-1 +40 query I rowsort label-6645 SELECT + COUNT ( * ) * - - 56 + 13 AS col0 @@ -35250,8 +35646,11 @@ SELECT + 40 + + + 93 AS col0, 73 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \- Int64\(\-89\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 26 - - 89 AS col1, + 45 col1 +---- +45 +63 query I rowsort label-6706 SELECT - 33 / + 99 @@ -36528,8 +36927,11 @@ SELECT ALL - - 33 * + NULLIF ( - 67, + COUNT ( * ) + + - 37 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -1707869 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \+ Int64\(27\) AS col0" at position 0 and "Int64\(11\) \- Int64\(69\) \* Int64\(28\) \* Int64\(17\) \* Int64\(52\) \+ Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 27 + + 27 AS col0, + 11 - + 69 * + + 28 * + 17 * + 52 + 8 AS col0 +---- +-1707869 +0 query I rowsort label-6956 SELECT - + 58 * - - SUM ( 28 ) AS col1 @@ -36689,8 +37091,11 @@ 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\(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\. +query II valuesort SELECT ALL + 36 + - 98 AS col1, 63 + 59 + 50 - - 80 * + COUNT ( * ) * - COALESCE ( + 49 + - 2, 3 ) AS col1 +---- +-3588 +-62 query I rowsort label-6987 SELECT SUM ( + 88 ) * - COUNT ( * ) + - 63 + 92 + + COUNT ( * ) AS col2 @@ -37523,8 +37928,11 @@ SELECT 87 + 14 + + COALESCE ( + NULLIF ( - 7, - + 91 / + + 93 + - MIN ( DISTINCT # Datafusion - Datafusion expected results: # Datafusion - Expected - -600 # Datafusion - Expected - -2464 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(\-24\) AS col1" at position 0 and "Int64\(88\) \* Int64\(2\) \* \(\- min\(\(\- Int64\(\-14\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 * - 24 AS col1, + 88 * 2 * + - MIN ( - - 14 ) AS col1 +---- +-2464 +-600 query I rowsort label-7145 SELECT DISTINCT - MAX ( - + 41 ) AS col2 @@ -38318,8 +38726,11 @@ SELECT + 52 * - - 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \+ \(\- count\(DISTINCT \(\- nullif\(Int64\(\-53\), Int64\(\-17\)\)\)\)\) \+ Int64\(29\) AS col0" at position 0 and "Int64\(\-6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 34 + + - COUNT ( DISTINCT - ( + NULLIF ( - 53, - 17 ) ) ) + + 29 col0, - 6 AS col0 +---- +-6 +62 query I rowsort label-7297 SELECT + 93 / - - 85 AS col0 @@ -38496,8 +38907,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 20 AS col2, COUNT ( * ) + - 70 AS col2 +---- +-69 +20 query I rowsort label-7331 SELECT + SUM ( DISTINCT + - 34 ) * - + CAST ( - 84 AS INTEGER ) AS col0 @@ -38598,8 +39012,11 @@ 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\(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\. +query II valuesort SELECT ALL 42 AS col1, + 45 + COUNT ( * ) + + 45 * - 98 - - 88 + 80 * 2 AS col1 +---- +-4116 +42 query I rowsort SELECT ALL + + 42 * + + ( + 95 ) + - - 14 @@ -38726,8 +39143,11 @@ SELECT ALL 85 + - + 25 + - COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3017 # Datafusion - Expected - 1145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-46\) \+ Int64\(6\) \+ CAST\(\(\- \(\- Int64\(44\)\)\) AS Int32\) \+ Int64\(15\) \+ Int64\(33\) \* \(\- count\(Int64\(56\)\)\) \* Int64\(91\) \+ Int64\(\-7\) AS col2" at position 0 and "Int64\(75\) \* Int64\(15\) \+ Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 26 ) * COUNT ( * ) + - 46 + 6 + + CAST ( - ( - + 44 ) AS INTEGER ) + 15 + + 33 * + - COUNT ( + ( + 56 ) ) * + 91 + - 7 AS col2, 75 * + 15 + + 20 AS col2 +---- +-3017 +1145 query I rowsort label-7375 SELECT DISTINCT 79 * 38 * + 17 * MAX ( + CAST ( - 45 AS INTEGER ) ) @@ -38946,8 +39366,11 @@ 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\(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\. +query II valuesort SELECT + + COUNT ( * ) * MAX ( DISTINCT - - 90 ) + - 73 * + 28 col0, - 48 AS col0 +---- +-1954 +-48 query I rowsort SELECT + - 97 + 18 @@ -39107,8 +39530,11 @@ SELECT - 96 * - CAST ( + - 57 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 787 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(79\) \+ Int64\(12\) \* coalesce\(Int64\(59\), Int64\(94\) \* \(\- \(\- Int64\(\-10\)\)\) \* count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( COUNT ( * ) ) AS col1, + 79 + + 12 * + COALESCE ( 59, + 94 * - - ( - 10 ) * COUNT ( * ) ) col1 +---- +1 +787 query I rowsort label-7448 SELECT - COALESCE ( - COUNT ( * ), + 80 + - 70 * 85 ) + + 61 + - - COUNT ( * ) @@ -39149,8 +39575,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 91 AS col0, 66 * - - COUNT ( * ) AS col0 +---- +-91 +66 query I rowsort SELECT - 65 * - 38 col0 @@ -39387,8 +39816,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 99 - - + 11 + 94 AS col0, + 38 * - - COUNT ( * ) AS col0 +---- +38 +6 query I rowsort label-7502 SELECT + COUNT ( * ) + + CAST ( + 51 AS INTEGER ) @@ -39919,8 +40351,11 @@ SELECT - + COUNT ( * ) + - 1 - 78 * 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- avg\(Int64\(85\)\)\) AS Int32\)\) / Int64\(\-63\) \+ Int64\(74\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( - AVG ( ALL + + 85 ) AS INTEGER ) / - 63 + 74 AS col1, 80 AS col1 +---- +73 +80 query I rowsort SELECT ALL + - 34 - - 91 AS col0 @@ -40003,8 +40438,11 @@ 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\(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\. +query II valuesort SELECT 59 / - 75 + 6 * COUNT ( * ) * MIN ( DISTINCT - + 87 ) AS col2, + 37 + + + 75 AS col2 +---- +-522 +112 query I rowsort SELECT ALL + 76 * - 98 * + - 21 @@ -40014,8 +40452,11 @@ SELECT ALL + 76 * - 98 * + - 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 65 AS col0, 96 AS col0 +---- +65 +96 query II rowsort SELECT + 19 AS col0, 13 * + + 29 @@ -40109,8 +40550,11 @@ SELECT COALESCE ( + 38, COUNT ( * ) ) * - MIN ( 40 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col1" at position 0 and "Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 AS col1, - 87 AS col1 +---- +-87 +69 query I rowsort label-7639 SELECT COALESCE ( + + 90, - COUNT ( * ) ) + - 88 AS col2 @@ -40520,8 +40964,11 @@ 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\(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\. +query II valuesort SELECT 10 * COUNT ( * ) + + 58 AS col0, 86 AS col0 +---- +68 +86 query I rowsort SELECT - - 93 * + 7 AS col2 @@ -40656,8 +41103,12 @@ 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\(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\. +query III valuesort 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 +---- +-2 +18 +37 query I rowsort label-7744 SELECT + CAST ( + - 48 AS INTEGER ) * 31 @@ -40766,8 +41217,12 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 16 AS col0, - COUNT ( * ) * + 16 AS col0, 4 +---- +-16 +16 +4 query I rowsort SELECT 19 + + 44 AS col2 @@ -40940,8 +41395,11 @@ SELECT 38 + + 37 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, - 74 col1 +---- +-74 +1 query II rowsort SELECT - 14 AS col1, - 65 + + + 51 * + + 20 AS col0 @@ -41829,8 +42287,11 @@ 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\(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\. +query II valuesort SELECT 94 * - - 30 + + + COALESCE ( - 29, - COUNT ( * ) * - 0 ) AS col0, + 66 col0 +---- +2791 +66 query I rowsort label-7967 SELECT + ( - + 19 ) * 44 * + + 52 * + ( 63 ) + - COUNT ( * ) / - 31 + - + 29 + + - 6 @@ -42128,8 +42589,11 @@ SELECT DISTINCT - 94 * + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 83 AS col1, COUNT ( * ) AS col1 +---- +1 +83 query I rowsort label-8024 SELECT DISTINCT MAX ( ALL - 51 ) * + + 0 / + COUNT ( * ) AS col2 @@ -42712,8 +43176,11 @@ SELECT ALL + 90 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 73 AS col0, + 35 AS col0 +---- +35 +73 query I rowsort SELECT DISTINCT 38 + COALESCE ( - - 61, + - ( + 29 ) + + 86 ) * + 86 * - 1 col1 @@ -43952,8 +44419,11 @@ SELECT DISTINCT - ( - - 59 ) * + 19 * + - 20 * - + NULLIF ( - 63, + + 90 ), - CO # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 6678 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CASE Int64\(48\) WHEN \(\- Int64\(40\)\) \+ \(\- Int64\(\-5\)\) THEN Int64\(68\) WHEN CASE Int64\(96\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(38\) THEN Int64\(6\) \* Int64\(91\) ELSE NULL END THEN Int64\(98\) END AS Int32\) \+ Int64\(94\) AS col0" at position 0 and "\(\- Int64\(\-35\)\) \+ min\(Int64\(\-73\)\) \* Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +6678 +NULL query I rowsort label-8368 SELECT - 58 - + 7 + - - 3 + + COUNT ( * ) * + 34 * - 96 * - 60 + - SUM ( + 0 ) + - + 29 * + ( + - 58 ) * 82 AS col2 @@ -44068,8 +44538,12 @@ SELECT 26 * 68 * + - 93 # Datafusion - Expected - -3205 # Datafusion - Expected - 88 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* Int64\(\-98\) \+ Int64\(29\) AS col1" at position 0 and "Int64\(25\) / \(\- Int64\(62\)\) \- Int64\(\-88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 33 * + - 98 + 29 col1, 25 / - + 62 - + - 88 col1, - + ( + + 82 ) +---- +-3205 +-82 +88 query I rowsort label-8390 SELECT DISTINCT 79 + - + SUM ( DISTINCT + 41 ) * 69 + + COUNT ( * ) - CAST ( ( - + COUNT ( * ) ) AS INTEGER ) / - 13 * - - MAX ( + 31 ) * - 37 @@ -44175,8 +44649,12 @@ SELECT 67 AS col1, - 90 + + COUNT ( * ) # Datafusion - Expected - -98 # Datafusion - Expected - 37 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- coalesce\(\(\- Int64\(37\)\), \(\- Int64\(\-3\)\) \+ Int64\(\-1\)\)\) AS Int32\) AS col1" at position 1 and "Int64\(31\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 98, CAST ( - COALESCE ( - + 37, - - 3 + + - 1 ) AS INTEGER ) AS col1, + 31 AS col1 +---- +-98 +31 +37 query II rowsort SELECT ALL - 65 + + + 53 * + 86 col2, 33 AS col0 @@ -45285,8 +45763,11 @@ SELECT ALL + 22 / 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "Int64\(75\) \+ Int64\(\-40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 45 col0, 75 + - 40 AS col0 +---- +35 +45 query I rowsort SELECT 24 + + 80 @@ -45488,8 +45969,11 @@ SELECT DISTINCT 79 * + COUNT ( * ) + 16 + + 65 + 68 * - 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 328524 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \- Int64\(51\) \* Int64\(70\) \* Int64\(\-92\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 84 - + 51 * 70 * + - 92 AS col1, + 7 AS col1 +---- +328524 +7 query I rowsort SELECT ( - 11 ) @@ -45519,8 +46003,11 @@ SELECT - NULLIF ( - - COUNT ( * ), - - 67 + - + 28 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - -1196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "Int64\(46\) \* Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 25 AS col0, 46 * + - 26 AS col0 +---- +-1196 +25 query I rowsort label-8670 SELECT + 16 * + - 55 * - 26 * NULLIF ( - 76, + - 11 ) + - 91 * MIN ( + 90 ) @@ -46220,8 +46707,11 @@ SELECT - MIN ( + 73 ) + COUNT ( ALL - ( CAST ( NULL AS INTEGER ) ) ) - - 85 AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 58 AS col0, COUNT ( * ) AS col0 +---- +1 +58 query I rowsort label-8806 SELECT ALL + CASE + 85 WHEN + + COUNT ( + + 94 ) * + CASE + 14 WHEN - - COUNT ( * ) * - - COUNT ( * ) + + + 94 THEN NULL WHEN + COUNT ( * ) * COUNT ( * ) + 37 * + 18 THEN 82 END THEN NULL WHEN - 87 + 88 * - 25 THEN COUNT ( * ) END @@ -46362,8 +46852,11 @@ 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\(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\. +query II valuesort 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 +---- +-93 +27 query I rowsort SELECT + 65 + 91 * NULLIF ( - + 47, CASE + - 54 WHEN - 6 THEN ( 22 ) WHEN - + 80 + 67 THEN + 5 END ) + - 3 * 43 AS col1 @@ -47323,8 +47816,11 @@ SELECT DISTINCT + 41 + + - 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col0" at position 0 and "Int64\(24\) \+ CAST\(NULL AS Int32\) / \(\- Int64\(\-46\)\) \* Int64\(\-38\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- nullif\(Int64\(0\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-41\)\)\) \+ Int64\(\-26\) \+ CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-48\) THEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* nullif\(Int64\(\-40\) \* Int64\(\-37\) \- Int64\(\-26\), Int64\(\-64\) \+ sum\(Int64\(89\)\) \* sum\(DISTINCT Int64\(26\)\)\) ELSE Int64\(9\) \* Int64\(\-2\) END THEN Int64\(28\) WHEN Int64\(\-14\) THEN NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-50 +NULL query I rowsort label-9019 SELECT ALL 49 + COUNT ( * ) @@ -47339,8 +47835,11 @@ SELECT DISTINCT 53 + + COUNT ( + 91 ) * COUNT ( - 85 ) * 67 * NULLIF ( + + 66, + # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - 131 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col1" at position 0 and "Int64\(62\) \+ Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 11 AS col1, + 62 + + + 69 col1 +---- +-11 +131 query I rowsort label-9022 SELECT COUNT ( * ) / 9 * + 10 + + ( 43 ) @@ -47414,8 +47913,11 @@ SELECT ALL 49 * COUNT ( * ) col2, 68 - - CAST ( CAST ( + 88 AS INTEGER ) AS INTE # 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\(\-53\) \* Int64\(0\) \* Int64\(0\) \* Int64\(54\) \+ Int64\(54\) AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 53 * + 0 * + 0 * 54 + + 54 col1, 3 AS col1 +---- +3 +54 query I rowsort label-9036 SELECT ( + + 50 ) * - 64 + - ( 58 ) + - COALESCE ( CASE + - 91 WHEN 52 * - 6 * + SUM ( + 49 ) * - COUNT ( * ) * - - COUNT ( ALL + 83 ) * + 67 * - 36 + - MIN ( - 83 + CAST ( NULL AS INTEGER ) ) + CASE - 9 WHEN 32 / 3 THEN 6 WHEN - CASE + 66 WHEN CASE + COUNT ( * ) WHEN - 12 THEN 85 * - 28 END + 84 * - 42 THEN + 70 * ( + 84 ) WHEN NULLIF ( 53, 42 ) THEN NULL END * 71 THEN - 66 * + 16 END THEN 43 * 12 END, 16 + 32 * 72 ) + - 51 @@ -47716,8 +48218,11 @@ SELECT - + 31 + - ( - 68 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - -247 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "Int64\(5\) \+ Int64\(\-21\) \* Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 11 col1, 5 + - 21 * 12 AS col1 +---- +-247 +11 query I rowsort SELECT DISTINCT + - 59 @@ -48040,8 +48545,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col1" at position 0 and "Int64\(\-50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 22 AS col1, - 50 AS col1 +---- +-22 +-50 query I rowsort SELECT DISTINCT + ( + - 56 ) AS col2 @@ -48213,8 +48721,11 @@ SELECT 67 + + 15 / COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -136 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* Int64\(\-68\) AS col2" at position 0 and "Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 * - 68 col2, 32 AS col2 +---- +-136 +32 query I rowsort label-9185 SELECT + 11 * - - 90 + - CAST ( NULL AS INTEGER ) @@ -48444,8 +48955,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 + + 11 AS col2, - COUNT ( * ) AS col2 +---- +-1 +48 query I rowsort SELECT - - 51 AS col2 @@ -48769,8 +49283,11 @@ SELECT + 93 / + 38, + 22 * + + 78 * + 41 AS col0 # 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 "Int64\(6\) \* Int64\(13\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 * + + 13 AS col2, + 38 AS col2 +---- +38 +78 query I rowsort label-9293 SELECT ALL + COUNT ( * ) + - - MIN ( + 44 ) + - - ( 61 ) @@ -48828,8 +49345,11 @@ 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\(Int64\(1\)\) AS count\(\*\), \(\- sum\(DISTINCT Int64\(9\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 13 AS col1, 15 + + COUNT ( + COALESCE ( + ( 20 ), + + 31 * - 24, 39 ) ) + + 67 - - COALESCE ( - 77, 8 * 3, + 23 ) * COALESCE ( + COUNT ( * ), + - SUM ( DISTINCT + 9 ) ) AS col1 +---- +-13 +6 query I rowsort label-9304 SELECT DISTINCT - 71 * - + 94 * + CASE 44 WHEN + 64 THEN NULL WHEN + CAST ( - + 61 AS INTEGER ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) + + - 30 END * - + 73 * - 10 @@ -49165,8 +49685,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 48 / 75 AS col1, + 77 * - 1 + 77 * - COUNT ( * ) AS col1 +---- +-154 +0 query II rowsort label-9368 SELECT - ( + - 18 ) AS col1, + 83 + MAX ( - - 50 ) * + 23 @@ -49388,8 +49911,11 @@ SELECT - NULLIF ( + + COUNT ( - ( + ( - - 27 ) ) ), - ( 10 ) ) # 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\(60\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 60 col2, 13 AS col2 +---- +13 +60 query I rowsort label-9411 SELECT DISTINCT 21 * + COUNT ( * ) * - 66 + - COUNT ( * ) - 72 + + 51 AS col2 @@ -49850,8 +50376,11 @@ 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\(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\. +query II valuesort SELECT ALL + - COUNT ( * ) + - + 87 * + 59 / + COUNT ( * ) + - 83 + + 31 col1, + 5 - 29 AS col1 +---- +-24 +-5186 query I rowsort label-9500 SELECT + COALESCE ( - 40, + 15, + + 41, - - COUNT ( * ) - + 97 + 90 ) / + COUNT ( 82 ) @@ -50083,8 +50612,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 66 + 4 + - 0 + + + 86 - + 76 * - COUNT ( * ) AS col1, + 80 AS col1 +---- +232 +80 query II rowsort SELECT 25 AS col1, + 68 AS col2 @@ -50194,8 +50726,11 @@ SELECT + ( + + 28 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 91 AS col2, 24 AS col2 +---- +24 +91 query I rowsort SELECT ALL 67 - - 37 AS col2 @@ -50588,8 +51123,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, 47 AS col2 +---- +-1 +47 query I rowsort label-9638 SELECT ALL COUNT ( + - 11 ) AS col1 @@ -50725,8 +51263,11 @@ SELECT - NULLIF ( - + 99, - 18 * - - 44 + - + 50 * - 13 ) + 50 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-9\)\) AS col0" at position 0 and "Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( + - 9 ) col0, + 52 col0 +---- +1 +52 query I rowsort label-9664 SELECT ALL COUNT ( ALL 50 ) @@ -50908,8 +51449,11 @@ SELECT ALL - 34 * 1 * COUNT ( * ) + + - MAX ( ALL + 57 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5968 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* \(\- Int64\(\-91\)\) \+ Int64\(\-71\) \+ Int64\(\-58\) AS col1" at position 0 and "\(\- count\(DISTINCT \(\- Int64\(\-80\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 67 * - - 91 + - 71 + - 58 AS col1, - COUNT ( DISTINCT - - 80 ) AS col1 +---- +-1 +5968 query I rowsort SELECT DISTINCT - 51 * 90 + 15 + - - 10 @@ -50924,14 +51468,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 3690 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col2" at position 0 and "Int64\(82\) \* Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 4 AS col2, + 82 * + 45 AS col2 +---- +-4 +3690 # 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\(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\. +query II valuesort SELECT + 65 - + - COUNT ( * ) + - 16 + + 76 * 72 * - COUNT ( * ) col0, - 30 AS col0 +---- +-30 +-5422 query I rowsort label-9703 SELECT - 71 / - CAST ( NULL AS INTEGER ) * COUNT ( ALL - + 80 ) @@ -51133,8 +51683,11 @@ SELECT DISTINCT 1 * + - COUNT ( * ) * - - ( 22 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -580 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* Int64\(\-10\) AS col1" at position 0 and "Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 * - 10 AS col1, - 47 AS col1 +---- +-47 +-580 query II rowsort SELECT ALL 47 * + 65 AS col2, 60 AS col1 @@ -51308,8 +51861,11 @@ SELECT ( 45 ) * - 92 + - 62 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, - 54 AS col1 +---- +-54 +1 query I rowsort label-9775 SELECT ALL 36 / - 8 @@ -51463,8 +52019,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -2430 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(23\)\) AS col2" at position 0 and "Int64\(\-30\) \* Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + SUM ( ALL + ( 23 ) ) AS col2, - 30 * + 81 AS col2 +---- +-2430 +23 query I rowsort SELECT ALL COALESCE ( + 2, 56 ) * + 28 @@ -51965,8 +52524,11 @@ SELECT ALL 71 + + 24 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -109 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ \(\- Int64\(87\)\) \+ Int64\(\-52\) AS col1" at position 0 and "Int64\(\-65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 30 + - + 87 + - 52 AS col1, - 65 AS col1 +---- +-109 +-65 query II rowsort SELECT + 53 AS col0, - 94 * 55 AS col1 diff --git a/data/sqlite/random/expr/slt_good_39.slt b/data/sqlite/random/expr/slt_good_39.slt index d1d337d..e3599f5 100644 --- a/data/sqlite/random/expr/slt_good_39.slt +++ b/data/sqlite/random/expr/slt_good_39.slt @@ -439,8 +439,11 @@ SELECT DISTINCT 52 * 63 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col2" at position 0 and "\(\- CASE sum\(Int64\(13\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) / Int64\(3\) THEN Int64\(\-47\) \* Int64\(36\) \* Int64\(\-70\) \* avg\(Int64\(\-61\)\) \* Int64\(77\) WHEN Int64\(33\) \+ CAST\(NULL AS Int32\) \+ Int64\(\-87\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-86\)\) THEN NULL END\) \+ Int64\(78\) \* CASE Int64\(2\) WHEN Int64\(84\) THEN \(\- CAST\(Int64\(34\) AS Int32\)\) \* Int64\(81\) END \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +59 +NULL query I rowsort SELECT DISTINCT + 73 + + 74 AS col0 @@ -669,8 +672,11 @@ SELECT ALL - 35 * + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-30\)\) \+ Int64\(20\) AS col2" at position 0 and "Int64\(65\) \+ Int64\(52\) \* Int64\(0\) \* Int64\(58\) \* Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 30 + 20 AS col2, 65 + + ( + + 52 ) * - 0 * 58 * - 38 AS col2 +---- +50 +65 query II rowsort label-121 SELECT - + MIN ( + 1 ) AS col0, + NULLIF ( ( + COUNT ( * ) ), - ( - - 81 ) ) @@ -2217,8 +2223,11 @@ SELECT ALL + - 74 * - 46 + ( 56 ) * 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-11\)\)\) AS col1" at position 0 and "Int64\(80\) \+ Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - SUM ( ALL - 11 ) AS col1, + 80 + + 80 AS col1 +---- +11 +160 query II rowsort label-421 SELECT 65 * 25 AS col1, - 2 * COUNT ( DISTINCT + 9 ) * 59 @@ -2629,8 +2638,11 @@ SELECT ALL 24 + + 76 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) / \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(0\) \* \(\- Int64\(7\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 83 / - - CAST ( NULL AS INTEGER ) AS col0, + 0 * - + 7 AS col0 +---- +0 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -2896,8 +2908,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) + 16 col0, 77 col0 +---- +17 +77 query I rowsort SELECT + 90 * - 49 + + 71 + ( 25 ) - - 88 AS col0 @@ -3013,8 +3028,11 @@ SELECT - 35 * - + 65 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "Int64\(12\) \+ Int64\(59\) \+ nullif\(Int64\(\-19\), Int64\(\-15\) \+ \(\- Int64\(91\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 29 AS col1, 12 + 59 + NULLIF ( + - 19, - 15 + - + 91 ) AS col1 +---- +29 +52 query I rowsort label-574 SELECT - 53 / + - 55 AS col1 @@ -3060,8 +3078,11 @@ SELECT DISTINCT 22 * + 55 * - COUNT ( * ) * - 5 AS col0, + 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 86 AS col0, 49 AS col0 +---- +49 +86 query I rowsort label-583 SELECT - 62 * - COUNT ( * ) + - 13 - - 10 + + - 62 @@ -3434,8 +3455,11 @@ SELECT ALL - + 47 * + 2 * + 91 * COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- min\(DISTINCT Int64\(66\)\)\), \(\- \(\- count\(Int64\(21\)\)\)\)\) AS col0" at position 0 and "Int64\(\-88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COALESCE ( - MIN ( DISTINCT + + 66 ), - - COUNT ( 21 ) ) AS col0, - 88 AS col0 +---- +-66 +-88 query I rowsort label-654 SELECT ALL + - 80 * - COUNT ( * ) AS col1 @@ -3640,8 +3664,12 @@ SELECT DISTINCT + + 3 + - 30 col0 # Datafusion - Expected - 3 # Datafusion - Expected - -1610 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-40\)\) / Int64\(12\) AS col2" at position 0 and "\(\- \(\- count\(Int64\(16\)\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - - 40 / + + 12 AS col2, 70 * - 23, - - COUNT ( ALL + 16 ) col2 +---- +-1610 +1 +3 query I rowsort SELECT + 1 + - + 7 AS col1 @@ -3733,8 +3761,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-9\) AS Int32\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + - 9 AS INTEGER ) AS col0, 21 AS col0 +---- +-9 +21 query I rowsort label-711 SELECT + MAX ( ( + 73 ) ) AS col0 @@ -3811,8 +3842,11 @@ SELECT SUM ( ALL - 13 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2624 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(32\) \* Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 32 * - 82 AS col1 +---- +-2624 +1 query I rowsort label-726 SELECT ALL SUM ( 76 ) AS col1 @@ -3902,14 +3936,20 @@ SELECT 59 + + MIN ( + 47 ) - + 31 * 44 * 47 * - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col0" at position 0 and "Int64\(9\) / Int64\(\-13\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 42 AS col0, + ( + 9 ) / - 13 - + COUNT ( * ) col0 +---- +-1 +-42 # 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\(1\)\) AS count\(\*\) \* Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +-10 +NULL query I rowsort label-745 SELECT ALL COUNT ( * ) * 15 * - 13 @@ -4150,8 +4190,11 @@ SELECT ALL - - 50 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 96 AS col2 +---- +1 +96 query I rowsort SELECT ALL + 49 - + + 18 AS col1 @@ -4552,8 +4595,12 @@ SELECT + + NULLIF ( 49, 85 * - 82 + + 23 * + 53 - + COUNT ( * ) ) * - 43 * - + 9 # Datafusion - Expected - 45 # Datafusion - Expected - 66 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 1 and "Int64\(\-84\) \- \(\- nullif\(Int64\(80\), Int64\(48\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 45 col2, 66 AS col1, - 84 - - NULLIF ( + 80, 48 ) AS col1 +---- +-4 +45 +66 query I rowsort SELECT - + 71 - - 80 col0 @@ -5489,8 +5536,11 @@ SELECT - 53 * + + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 AS col1, + ( + + 81 ) col1 +---- +14 +81 query I rowsort label-1044 SELECT ALL CASE + - COALESCE ( - 2, - 35 * + NULLIF ( + + 22, - 42 ) + - 56 * 32, 67 ) WHEN - CASE - 62 WHEN + 86 THEN - - 51 ELSE - 17 + - 95 END * - 60 + 7 - - COUNT ( * ) * 10 / + - 31 - + 15 + + COALESCE ( - - 85, 82 + - + 90 ) * CAST ( + + 32 AS FLOAT8 ) THEN NULL ELSE MIN ( ALL 51 ) + CAST ( NULL AS INTEGER ) END @@ -5603,8 +5653,11 @@ SELECT ALL - MAX ( ALL - + 62 ) * + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2745 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \* coalesce\(\(\- Int64\(61\)\), Int64\(80\), min\(Int64\(0\)\)\) AS col0" at position 0 and "Int64\(7\) / Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 45 * COALESCE ( - + 61, 80, MIN ( ALL + + 0 ) ) AS col0, 7 / - 90 col0 +---- +0 +2745 query I rowsort label-1066 SELECT DISTINCT - COALESCE ( + ( CAST ( NULL AS INTEGER ) ), + 97 ) / 57 * + 74 + - COUNT ( * ) + + 82 @@ -5701,8 +5754,11 @@ SELECT + NULLIF ( + + 61, - + 74 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -1296 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(\-58\)\), Int64\(\-20\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(57\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(59\) \* Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( - - 58, - 20 ) * COUNT ( * ) AS col1, 57 * - COUNT ( * ) - + ( 59 ) * 21 AS col1 +---- +-1296 +58 query I rowsort label-1084 SELECT + COUNT ( * ) + + 90 + 78 * - 59 AS col0 @@ -5764,8 +5820,11 @@ SELECT ALL - 75 + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \+ Int64\(\-3\) AS col2" at position 0 and "Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 16 + - 3 AS col2, + 76 AS col2 +---- +-19 +76 query I rowsort label-1096 SELECT ALL 22 + ( - COUNT ( ALL - 99 ) ) AS col1 @@ -6113,8 +6172,11 @@ 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\(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\. +query II valuesort SELECT + 29 AS col0, 20 + COUNT ( * ) + + COUNT ( * ) + + 85 + COUNT ( - 83 ) * - 78 AS col0 +---- +29 +29 query II rowsort SELECT 24 col1, - 89 @@ -6140,8 +6202,11 @@ SELECT 3 + + 75 * - 82 + 47 + + 28 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \- Int64\(\-46\) \+ \(\- CAST\(\(\- Int64\(\-53\)\) AS Int32\)\) AS col0" at position 0 and "\(\- min\(Int64\(\-18\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 86 - - 46 + - CAST ( - - 53 AS INTEGER ) col0, - MIN ( - 18 ) AS col0 +---- +18 +79 query II rowsort SELECT ALL 40 AS col1, - ( + + 61 ) @@ -6207,8 +6272,11 @@ SELECT DISTINCT + COUNT ( * ) * 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) / CAST\(Int64\(92\) AS Int32\) \* Int64\(56\) AS col2" at position 0 and "Int64\(\-82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 37 / CAST ( 92 AS INTEGER ) * 56 col2, - 82 AS col2 +---- +-82 +0 query I rowsort label-1181 SELECT DISTINCT - 26 / - COUNT ( * ) @@ -6306,8 +6374,11 @@ 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\(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\. +query II valuesort 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 +---- +-1579 +-40 query I rowsort SELECT ALL + ( 19 ) AS col0 @@ -6638,14 +6709,20 @@ SELECT DISTINCT - ( 55 ) * - + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ Int64\(64\) AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4 + + 64 AS col2, 15 AS col2 +---- +15 +68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5678 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \- Int64\(75\) \+ Int64\(72\) \* Int64\(80\) AS col0" at position 0 and "Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 7 - + 75 + 72 * 80 AS col0, - 60 AS col0 +---- +-60 +5678 query I rowsort label-1264 SELECT DISTINCT COUNT ( * ) * SUM ( ALL - + 42 ) AS col1 @@ -6675,8 +6752,11 @@ SELECT 17 * ( + NULLIF ( COUNT ( * ), - - 21 * - 4 * 78 ) ) + + - MIN ( 23 ) * - # Datafusion - Datafusion expected results: # Datafusion - Expected - 119 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \- Int64\(\-93\) AS col0" at position 0 and "Int64\(\-28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 26 - - 93 col0, - 28 AS col0 +---- +-28 +119 query I rowsort label-1270 SELECT DISTINCT - CASE - 96 WHEN 12 THEN NULL WHEN 95 THEN MIN ( NULLIF ( + + 52, + + 16 ) ) + - + 88 ELSE NULL END * + + 31 * + 23 col2 @@ -6816,8 +6896,11 @@ SELECT ALL + 48 * 48 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-58\) \+ \(\- Int64\(41\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col0, - 58 + - ( 41 ) AS col0 +---- +-99 +1 query I rowsort label-1297 SELECT - 40 + - 40 + - + 28 / + 78 @@ -7019,8 +7102,11 @@ SELECT ALL MIN ( - 11 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- Int64\(\-83\)\)\) AS col1" at position 0 and "CAST\(count\(\(\- CAST\(\(\- Int64\(\-87\)\) AS Int32\)\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( ALL - - 83 ) AS col1, + CAST ( COUNT ( - + CAST ( - - 87 AS INTEGER ) ) AS INTEGER ) col1 +---- +1 +83 query I rowsort SELECT - 28 + 0 + + + 85 AS col1 @@ -7280,8 +7366,11 @@ SELECT + + SUM ( ALL + NULLIF ( - 98, + + 9 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \- Int64\(90\) AS col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 16 - + 90 AS col2, 9 AS col2 +---- +-74 +9 query I rowsort SELECT ALL - + 29 * 76 AS col1 @@ -7529,8 +7618,11 @@ SELECT + - CAST ( - 10 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col0" at position 0 and "Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 85 AS col0, 87 AS col0 +---- +85 +87 query II rowsort label-1432 SELECT ALL COUNT ( * ) * - - ( + + 48 ) AS col1, + COUNT ( * ) @@ -7626,8 +7718,12 @@ 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\(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\. +query III valuesort 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 +---- +104 +5296 +78 query I rowsort label-1450 SELECT ALL 69 * 35 / 13 * - 68 - 4 AS col0 @@ -7930,8 +8026,11 @@ SELECT ALL - 12, 16 + + 81 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT 63 AS col0, + 41 AS col0 +---- +41 +63 query I rowsort SELECT DISTINCT - ( - 0 ) AS col1 @@ -8031,8 +8130,11 @@ SELECT DISTINCT CAST ( + MAX ( DISTINCT - 44 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col0" at position 0 and "CAST\(Int64\(\-32\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 15 col0, CAST ( + - 32 AS INTEGER ) AS col0 +---- +-15 +-32 query I rowsort label-1529 SELECT 1 / + - 22 @@ -8059,8 +8161,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - COUNT ( * ) ) col0, 81 AS col0 +---- +1 +81 query I rowsort SELECT ALL - 97 * + 31 @@ -8404,8 +8509,11 @@ 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\(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\. +query II valuesort SELECT ALL + 19 + - ( + COUNT ( * ) ) AS col2, COUNT ( ALL 47 ) AS col2 +---- +1 +18 query II rowsort label-1599 SELECT 43 AS col1, 27 * 60 + - CASE + 40 WHEN - - 59 * - - 31 - - 1 + - - 70 THEN 66 / - - COUNT ( * ) + + 23 END @@ -8507,8 +8615,11 @@ SELECT ALL - CASE + 13 WHEN MAX ( DISTINCT - 50 ) THEN NULL ELSE - + 39 * + ( 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CASE Int64\(\-1\) WHEN Int64\(13\) THEN Int64\(\-52\) / Int64\(23\) \+ Int64\(38\) ELSE Int64\(41\) END\) AS Int32\) / \(\- Int64\(\-71\)\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - CASE - 1 WHEN + 13 THEN + + ( - 52 ) / 23 + + + 38 ELSE + 41 END AS INTEGER ) / - - 71 AS col2, 66 col2 +---- +0 +66 query I rowsort SELECT 20 + + 34 AS col1 @@ -8569,8 +8680,11 @@ SELECT + ( - COALESCE ( - 65, 30 ) ) + - 92 + SUM ( 93 ) * 14 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col0" at position 0 and "Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 28 ) AS col0, 19 AS col0 +---- +-28 +19 query I rowsort SELECT + ( - - 0 ) * 21 + - + 71 @@ -9003,8 +9117,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 63 + - 48 * - - COUNT ( * ) AS col0, 67 AS col0 +---- +-111 +67 query I rowsort label-1714 SELECT DISTINCT - NULLIF ( + 77, - - 20 * + 35 * + - 26 + - + 30 + + CASE 57 WHEN + 47 * - 15 THEN NULL ELSE + MIN ( 7 ) END ) * - 72 * 98 AS col2 @@ -9282,8 +9399,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-72\) \+ Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 * - 56 AS col1, - MIN ( ALL + + 27 ) + + 52 * + COALESCE ( + + NULLIF ( - SUM ( DISTINCT 71 ), + 83 ), + + COUNT ( * ) ) * - 72 + + 38 AS col1 +---- +-4760 +265835 query I rowsort SELECT 91 + 72 + + 91 * 45 * 80 * + + 96 @@ -9308,8 +9428,11 @@ SELECT DISTINCT NULLIF ( - + 21, - 62 ) * - 17 * - - 21 * + 41 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-42\)\) \* CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - ( - 42 ) ) * + + CAST ( NULL AS INTEGER ) AS col2, 34 col2 +---- +34 +NULL query I rowsort label-1771 SELECT COUNT ( * ) * + 47 * - MIN ( ALL + 3 ) AS col2 @@ -9482,8 +9605,11 @@ SELECT ALL + CASE COUNT ( * ) WHEN + COUNT ( + + 79 ) / - COUNT ( * ) THEN NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 3280 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "Int64\(40\) \* Int64\(82\) \+ count\(Int64\(\-70\)\) / \(\- Int64\(\-22\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 38 AS col0, 40 * + + 82 + COUNT ( + - 70 ) / - - 22 AS col0 +---- +3280 +38 query I rowsort label-1804 SELECT DISTINCT - COUNT ( * ) + - 80 @@ -10593,8 +10719,11 @@ 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\(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\. +query II valuesort 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 +---- +-84 +NULL query I rowsort label-2020 SELECT DISTINCT 15 - - 75 + - 56 / - + 72 AS col2 @@ -10659,8 +10788,11 @@ SELECT ALL - 8 AS col1, 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col0" at position 0 and "Int64\(\-53\) \- \(\- Int64\(10\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 45 AS col0, - 53 - - + 10 AS col0 +---- +-43 +-45 query I rowsort SELECT + 39 * + - 56 * + + 24 * - 54 + - 84 - 32 * 75 @@ -10802,8 +10934,11 @@ SELECT 39 + + 48 * + - 50 + - 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1914 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(87\)\) \* nullif\(Int64\(\-22\), \(\- Int64\(\-50\)\)\) AS col0" at position 0 and "Int64\(54\) \+ Int64\(15\) \+ Int64\(\-37\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( 87 ) * NULLIF ( - 22, - - 50 ) AS col0, 54 + + + 15 + - 37 * COUNT ( * ) AS col0 +---- +1914 +32 query I rowsort SELECT 45 * - + 13 * - 23 AS col1 @@ -11701,8 +11836,11 @@ SELECT + + 87 + - 8 + 44 * 33 AS col1, 90 * - COUNT ( * ) + - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - 116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col2" at position 0 and "Int64\(69\) \+ Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 96 AS col2, 69 + 47 col2 +---- +-96 +116 query II rowsort SELECT + 16 + + 75 AS col2, 99 * - 81 @@ -11756,8 +11894,11 @@ SELECT + - 60 / + + 48 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "Int64\(\-67\) \+ Int64\(\-34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 74 AS col2, - 67 + + - 34 col2 +---- +-101 +74 query II rowsort SELECT 92 AS col2, 62 + - 91 + + - 85 @@ -12129,8 +12270,11 @@ SELECT DISTINCT - - 2 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(89\), 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 II valuesort SELECT DISTINCT - NULLIF ( + 89, 7 ) AS col2, + 91 AS col2 +---- +-89 +91 query I rowsort label-2312 SELECT ALL + + COUNT ( * ) + - + 28 AS col2 @@ -12241,8 +12385,11 @@ SELECT ALL SUM ( ALL - 23 ) + + 89 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5746 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(46\), Int64\(67\) \- Int64\(15\), Int64\(\-43\)\) \+ \(\- Int64\(\-95\)\) \* Int64\(60\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COALESCE ( + 46, + 67 - + 15, - 43 ) + - - 95 * + 60 AS col1, 55 AS col1 +---- +55 +5746 query I rowsort label-2334 SELECT ALL + MIN ( DISTINCT - 61 ) AS col1 @@ -12681,8 +12828,11 @@ SELECT ALL - + 98 - + 32 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -354 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* \(\- Int64\(59\)\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 * + - ( ( + + 59 ) ) AS col0, 94 AS col0 +---- +-354 +94 query I rowsort SELECT DISTINCT + - 73 * + 57 + 95 col2 @@ -12795,8 +12945,11 @@ SELECT ALL 57 + - MIN ( + 92 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2366 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \* \(\- CAST\(NULL AS Int32\)\) \* sum\(DISTINCT Int64\(84\)\) \+ Int64\(3\) AS col2" at position 0 and "Int64\(91\) \* Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 20 * - + CAST ( NULL AS INTEGER ) * + SUM ( DISTINCT 84 ) + + + 3 AS col2, + 91 * + ( + + 26 ) AS col2 +---- +2366 +NULL query I rowsort SELECT 36 - - 95 @@ -12993,8 +13146,11 @@ SELECT DISTINCT CASE - NULLIF ( + COALESCE ( 55, - 77, 80 * + - 91 ), + 9 ) WHEN # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 AS col0, 98 AS col0 +---- +38 +98 query I rowsort SELECT ALL NULLIF ( - 93, - + 42 ) + - 49 AS col0 @@ -13430,8 +13586,11 @@ SELECT ALL + 16 + - 48 * - MAX ( 49 ) * - 16 + 81 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 870 # Datafusion - Expected - -24168 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \* Int64\(\-17\) \+ \(\- Int64\(65\)\) AS col0" at position 0 and "nullif\(\(\- Int64\(53\)\), Int64\(\-72\)\) \* Int64\(76\) \* Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 55 * - 17 + - + 65 AS col0, NULLIF ( - + 53, - 72 ) * 76 * + + 6 AS col0 +---- +-24168 +870 query I rowsort SELECT ALL - + 93 + + 13 - 51 AS col0 @@ -14091,8 +14250,12 @@ 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\(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\. +query III valuesort 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 +---- +-193682 +94 +NULL query I rowsort SELECT ALL 14 + + 30 @@ -14230,8 +14393,11 @@ 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\(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\. +query II valuesort SELECT 42 - COUNT ( * ) + - 96 AS col2, 99 AS col2 +---- +-55 +99 query I rowsort SELECT CASE + 31 WHEN - + 38 THEN + 3 END * + 63 AS col0 @@ -14459,8 +14625,11 @@ SELECT + - 11 + 2 * + COUNT ( * ) + - + 1 - + MIN ( + ( + 6 ) ) + - - 78 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - -120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(48\)\)\) AS col2" at position 0 and "Int64\(26\) \* Int64\(\-5\) \+ Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MAX ( - + 48 ) AS col2, 26 * - 5 + + 10 col2 +---- +-120 +-48 query I rowsort SELECT + - ( + - 59 ) * + - 85 AS col0 @@ -14476,8 +14645,11 @@ SELECT ALL 47 AS col0, + 75 * - 62 * + 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CAST\(NULL AS Float64\)\) \* Int64\(\-37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT COUNT ( * ) AS col1, - CAST ( NULL AS FLOAT8 ) * - 37 AS col1 +---- +1 +NULL query II rowsort SELECT ALL - 57 AS col2, 77 @@ -14703,8 +14875,11 @@ SELECT DISTINCT ( + - 19 ) + ( - 6 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(65\) AS col2" at position 0 and "Int64\(\-39\) \+ \(\- Int64\(\-8\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 65 AS col2, - 39 + - - 8 AS col2 +---- +-31 +NULL query I rowsort SELECT DISTINCT + COALESCE ( 86, + 4, 5 ) + 46 + ( 24 ) AS col0 @@ -14854,8 +15029,11 @@ SELECT 66 + + 75 * + CAST ( COUNT ( * ) AS INTEGER ) + + 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1565 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \+ Int64\(\-20\) \* Int64\(\-76\) AS col2" at position 0 and "Int64\(\-57\) \+ Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 45 + - 20 * - 76 AS col2, - 57 + 88 AS col2 +---- +1565 +31 query I rowsort label-2828 SELECT DISTINCT - + 82 / + COUNT ( * ) AS col1 @@ -15201,8 +15379,11 @@ SELECT + - 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 AS col2, + CAST ( NULL AS INTEGER ) AS col2 +---- +70 +NULL query I rowsort SELECT DISTINCT - 77 * + 12 * + - 64 - + 55 @@ -15228,8 +15409,11 @@ SELECT + - 0 * - 48 * - 33 * - 97 * - - 93 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "Int64\(88\) \+ sum\(Int64\(11\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 71 AS col2, 88 + SUM ( ALL + 11 ) AS col2 +---- +71 +99 query I rowsort label-2900 SELECT MAX ( DISTINCT - + ( + 18 ) ) @@ -15376,8 +15560,12 @@ SELECT ALL - - 94, 48 AS col0 # Datafusion - Expected - 37 # Datafusion - Expected - 2478 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* Int64\(52\) \+ Int64\(\-18\) AS col2" at position 1 and "\(\- coalesce\(Int64\(64\), Int64\(13\)\)\) \+ max\(Int64\(82\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - - 37 AS col1, + 48 * 52 + - 18 AS col2, - COALESCE ( + + 64, 13 ) + MAX ( 82 ) AS col2 +---- +18 +2478 +37 query II rowsort label-2928 SELECT DISTINCT - COUNT ( * ), - 75 + - 49 + NULLIF ( 5, COUNT ( - 50 ) / - - 81 + 7 + - - 12 / - 19 ) col0 @@ -15393,8 +15581,11 @@ SELECT - ( - + 82 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(60\)\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 60 AS col0, + 21 AS col0 +---- +-60 +21 query I rowsort label-2931 SELECT - 38 / COALESCE ( 86, - 14 + - 76 ) * - 62 - + 76 @@ -15608,8 +15799,11 @@ SELECT 99 + - 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, 94 AS col2 +---- +94 +NULL query I rowsort SELECT 80 * + 89 AS col2 @@ -15681,8 +15875,11 @@ SELECT - 19 / - 40 * + - 24 * - + 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -3894 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "Int64\(66\) \* Int64\(\-59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 18 AS col1, 66 * - 59 AS col1 +---- +-3894 +18 query I rowsort label-2985 SELECT + COUNT ( * ) + + 93 @@ -15713,8 +15910,11 @@ SELECT + + 53 + - COUNT ( * ) + - COUNT ( * ) * + 71 + + 56 + 62 * - + 54 + + 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col2" at position 0 and "Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 86 AS col2, 8 col2 +---- +-86 +8 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -16481,8 +16681,11 @@ 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\(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\. +query II valuesort SELECT + 85 * 89 * - COUNT ( * ) AS col1, 58 * + - 82 AS col1 +---- +-4756 +-7565 query I rowsort SELECT - 91 * - - COALESCE ( + + ( - 11 ), 18 ) AS col2 @@ -16981,8 +17184,11 @@ SELECT ALL - 66 * + 95 * + 75 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 135720 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* \(\- Int64\(29\)\) \* Int64\(\-78\) AS col1" at position 0 and "min\(Int64\(50\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 60 * - + 29 * + - 78 AS col1, MIN ( ALL + 50 ) AS col1 +---- +135720 +50 query I rowsort label-3232 SELECT - + 55 * + + 38 * + - SUM ( - 14 ) AS col0 @@ -17063,8 +17269,11 @@ SELECT ALL - 45 - 7 * + 84 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \- Int64\(5\) \* Int64\(83\) \* \(\- CAST\(Int64\(\-5\) AS Int32\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 30 - 5 * + + 83 * - + CAST ( - 5 AS INTEGER ) * - CAST ( NULL AS INTEGER ) col2, 51 AS col2 +---- +51 +NULL query II rowsort label-3247 SELECT - COUNT ( * ) col1, + NULLIF ( - 5, + 80 ) @@ -17112,8 +17321,11 @@ SELECT ALL + ( - + 69 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 AS col1, 95 AS col1 +---- +11 +95 query I rowsort label-3256 SELECT + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) / 74 AS col0 @@ -17139,8 +17351,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 59 AS col0, 43 AS col0 +---- +43 +59 query I rowsort SELECT ( 82 ) AS col1 @@ -17324,8 +17539,11 @@ SELECT DISTINCT - - 66 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2934 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \+ Int64\(\-19\) \+ Int64\(40\) \* \(\- Int64\(73\)\) \+ Int64\(80\) \+ \(\- max\(Int64\(85\)\)\) AS col0" at position 0 and "Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 10 + - 19 + 40 * - + 73 + + + 80 + - MAX ( + 85 ) AS col0, - 15 AS col0 +---- +-15 +-2934 query I rowsort SELECT - ( + 79 ) - - - 13 AS col1 @@ -18460,8 +18678,11 @@ 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\(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\. +query II valuesort SELECT ALL 32 + COUNT ( * ) + + - 39 AS col2, - 26 col2 +---- +-26 +-6 query I rowsort label-3511 SELECT MAX ( + - 57 ) + - + 57 + COUNT ( * ) * 45 @@ -19457,8 +19678,11 @@ SELECT ALL 6 * - - 38 * + 98 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* count\(DISTINCT Int64\(89\)\) AS col1" at position 0 and "Int64\(\-26\) \+ \(\- Int64\(\-11\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 * COUNT ( DISTINCT + 89 ) AS col1, - 26 + - - 11 AS col1 +---- +-15 +37 query I rowsort SELECT ALL + 21 + - 60 @@ -19839,8 +20063,11 @@ SELECT ALL - 21 / 72 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- Int64\(22\)\)\)\) AS col0" at position 0 and "Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( ALL - + 22 ) AS col0, - 26 AS col0 +---- +-1 +-26 query I rowsort label-3779 SELECT DISTINCT MAX ( + 40 ) - + 87 + + - 71 + + 90 + + - 9 + - COUNT ( ALL 59 ) + - 39 * 45 @@ -20362,8 +20589,11 @@ SELECT ALL COUNT ( ALL - 83 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\)" at position 0 and "Int64\(95\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 95, 95 +---- +95 +95 query I rowsort SELECT + 54 + - ( 99 ) + 69 - 0 + + 9 * - 48 col1 @@ -20514,8 +20744,11 @@ SELECT + - CAST ( - 22 AS INTEGER ) + + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 58 AS col0, + 94 AS col0 +---- +58 +94 query II rowsort SELECT - ( 10 ), - 37 * + 56 col2 @@ -20702,8 +20935,11 @@ 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\(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\. +query II valuesort 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 +---- +193 +35 query I rowsort label-3944 SELECT ALL - COALESCE ( + + 82, + + 28, + + COUNT ( * ) ) @@ -21315,8 +21551,11 @@ 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\(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\. +query II valuesort SELECT 61 + SUM ( + 79 ) * COUNT ( * ) + + 81 * - 55 AS col0, + 49 + COALESCE ( - COUNT ( * ), 64 + - COUNT ( * ) + - - 48, + 93 + + 5 ) * - - 9 AS col0 +---- +-4315 +40 query I rowsort label-4062 SELECT CASE 88 WHEN 42 + 3 / - 29 THEN NULL WHEN - + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - + CAST ( - NULLIF ( - 56, - MIN ( ALL - 78 ) * 16 ) AS FLOAT8 ) + + 54 * 84 THEN NULL ELSE - 91 END * + 91 AS col1 @@ -22236,8 +22475,11 @@ SELECT + 36 + + ( - - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - -241740 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "Int64\(34\) \* Int64\(90\) \* \(\- Int64\(79\)\) \+ Int64\(0\) \* Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 AS col1, + 34 * + 90 * - + 79 + + 0 * 48 AS col1 +---- +-241740 +30 query I rowsort label-4238 SELECT ALL CASE - - CAST ( NULL AS FLOAT8 ) WHEN - + 16 + + 21 + + - 78 THEN NULL ELSE + COUNT ( * ) - + + 15 END AS col1 @@ -22327,8 +22569,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col1" at position 0 and "Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 99 AS col1, 61 AS col1 +---- +-99 +61 query I rowsort label-4255 SELECT + NULLIF ( CAST ( NULL AS INTEGER ), 69 ) @@ -22499,8 +22744,11 @@ SELECT DISTINCT - - 99 + + + 6 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(\-36\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(36\) \+ \(\- max\(DISTINCT Int64\(94\)\)\) \- Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( + - ( + - 36 ) AS INTEGER ) AS col1, 36 + + - MAX ( DISTINCT + + 94 ) - - 27 col1 +---- +-31 +-36 query I rowsort SELECT ALL + 78 + + - 18 @@ -22531,8 +22779,11 @@ SELECT 93 / - + 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col0" at position 0 and "Int64\(\-35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 AS col0, - 35 AS col0 +---- +-35 +39 query I rowsort label-4293 SELECT DISTINCT NULLIF ( - 7, + - 47 ) - - - CAST ( - 98 AS INTEGER ) + + - 90 AS col2 @@ -22774,8 +23025,11 @@ 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\(1\)\) AS count\(\*\)\), Int64\(79\)\) \+ \(\- Int64\(\-41\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( 19, + 79 ) + ( + 18 ) * 19 * + 14 * + 31 + 57 AS col2, COUNT ( + 96 ) / COALESCE ( + 93, + 11 + + + 90 * - COUNT ( * ), + 79 ) + - - 41 AS col2 +---- +148504 +41 query I rowsort label-4338 SELECT ALL 70 * + - COUNT ( * ) @@ -23751,8 +24005,11 @@ 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\(1\)\) AS count\(\*\), Int64\(\-25\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 15 ) AS col1, 67 / + - ( - 76 ) - + 42 * ( - - 98 ) * + MIN ( + - 43 ) * 99 * NULLIF ( COUNT ( * ), - 25 ) AS col1 +---- +15 +17521812 query I rowsort SELECT ALL + ( + 38 ) @@ -23798,8 +24055,11 @@ SELECT ALL + - 76 * - 1 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(50\)\) \* count\(Int64\(96\)\) AS col0" at position 0 and "Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 50 * + + COUNT ( + ( 96 ) ) AS col0, - 43 AS col0 +---- +-43 +-50 query I rowsort label-4533 SELECT DISTINCT - MAX ( DISTINCT 86 ) * 54 + - COUNT ( * ) + + 65 + - CAST ( + 20 AS INTEGER ) + - MAX ( - NULLIF ( + 95, + 38 ) ) * + 65 * + - 20 AS col0 @@ -24198,8 +24458,11 @@ 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\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(\-22\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 24 ) AS col2, - 81 * + 64 + - 37 + - - COUNT ( * ) + - - 22 AS col2 +---- +-5198 +24 query I rowsort SELECT DISTINCT - 49 * 11 AS col1 @@ -24235,8 +24498,11 @@ SELECT - NULLIF ( + - 98, 44 ) * + 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \+ Int64\(97\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 53 + 97 AS col1, 45 AS col1 +---- +44 +45 query I rowsort label-4616 SELECT DISTINCT + CAST ( - ( + + 60 ) AS INTEGER ) AS col0 @@ -24266,8 +24532,11 @@ SELECT ( + - 94 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - -457 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-22\) AS Int32\) AS col0" at position 0 and "CAST\(Int64\(7\) AS Int32\) \* \(\- Int64\(70\)\) \- Int64\(37\) \+ Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( - 22 AS INTEGER ) AS col0, CAST ( + 7 AS INTEGER ) * - + 70 - 37 + + 70 AS col0 +---- +-22 +-457 query I rowsort SELECT - - 90 * 48 AS col2 @@ -24311,8 +24580,11 @@ SELECT ALL + + 63 * - 73 + 37 + - COALESCE ( - 32, - 2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5880 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(98\)\) AS Int32\) \* Int64\(60\) AS col2" at position 0 and "CASE \(\- coalesce\(Int64\(\-40\), \(\- Int64\(91\)\)\)\) WHEN Int64\(\-34\) \* Int64\(0\) \* \(\- Int64\(72\)\) THEN NULL WHEN Int64\(\-43\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(55\) \* \(\- avg\(DISTINCT \(\- \(\- nullif\(\(\- Int64\(\-39\)\), Int64\(96\)\)\)\)\)\) \- Int64\(61\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(41\) END \+ Int64\(37\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +-5880 +NULL query II rowsort label-4630 SELECT ALL + + SUM ( + + 98 ) AS col0, - 99 + - COUNT ( * ) @@ -24997,8 +25269,11 @@ SELECT ALL - 46 / + 38 + + 76 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 97 AS col0, 81 AS col0 +---- +-97 +81 query II rowsort SELECT ALL + + 43, + 54 col1 @@ -25123,8 +25398,11 @@ SELECT COALESCE ( - 98, - 75 ) + 25 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \+ Int64\(20\) AS col1" at position 0 and "Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 74 + 20 AS col1, + 18 AS col1 +---- +18 +94 query I rowsort label-4785 SELECT + NULLIF ( COUNT ( DISTINCT - 59 ), - 43 ) AS col2 @@ -25159,8 +25437,11 @@ SELECT ALL + CAST ( - + 3 AS INTEGER ) / 39 / - + 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(90\)\) AS col2" at position 0 and "sum\(Int64\(23\)\) \+ CAST\(Int64\(\-57\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + + 90 ) AS col2, + SUM ( ALL 23 ) + + CAST ( - 57 AS INTEGER ) AS col2 +---- +-34 +-90 query I rowsort SELECT 22 * - ( + 11 ) + + - 54 AS col0 @@ -25402,8 +25683,11 @@ SELECT ALL + ( + COUNT ( 72 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5852 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) \* \(\- Int64\(\-77\)\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 76 * - - 77 AS col0, 40 AS col0 +---- +-5852 +40 query I rowsort label-4838 SELECT + MIN ( - 68 ) * + 2 * - 93 @@ -25589,8 +25873,11 @@ SELECT ALL - 87 * - 56 + + + 77 * - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8073407 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* Int64\(4\) \+ Int64\(29\) \- Int64\(94\) \* Int64\(44\) \* Int64\(97\) \* Int64\(20\) \+ Int64\(51\) \* Int64\(18\) \* \(\- coalesce\(Int64\(54\), \(\- coalesce\(Int64\(98\), Int64\(\-48\) \* Int64\(71\) \+ Int64\(42\)\)\), Int64\(\-37\)\)\) \+ Int64\(64\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 22 * 4 + + + 29 - + 94 * 44 * 97 * 20 + 51 * + 18 * - COALESCE ( ( 54 ), - COALESCE ( + 98, + ( + - 48 ) * + 71 + 42 ), - 37 ) + + 64 AS col1, 97 AS col1 +---- +-8073407 +97 query I rowsort label-4874 SELECT ALL 16 * - COUNT ( + + 15 ) + + - 53 @@ -25691,8 +25978,11 @@ SELECT + 43 * + 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 305 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* Int64\(18\) \+ Int64\(71\) AS col2" at position 0 and "Int64\(\-54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 13 * + 18 + 71 AS col2, ( - 54 ) AS col2 +---- +-54 +305 query I rowsort SELECT + 26 + - 1 @@ -25774,8 +26064,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col1, + 63 AS col1 +---- +-1 +63 query II rowsort label-4910 SELECT DISTINCT ( - 98 ) + + ( + 76 ), - CAST ( + + ( - 49 ) AS INTEGER ) AS col1 @@ -26112,8 +26405,11 @@ SELECT ALL + MIN ( ALL + + 72 ) + - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 AS col0, + 43 AS col0 +---- +16 +43 query I rowsort label-4975 SELECT ALL + SUM ( - - 54 ) * - 59 @@ -26186,8 +26482,11 @@ SELECT DISTINCT + - COUNT ( ALL + 84 ) AS col2 # 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 col0" at position 0 and "Int64\(\-50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 99 AS col0, - 50 AS col0 +---- +-50 +-99 query II rowsort label-4989 SELECT ALL - - 51 * 24 * - ( 21 ) + - + 74 * 28, - COUNT ( * ) + + COUNT ( * ) + - 8 AS col0 @@ -26261,8 +26560,11 @@ SELECT + 78 + + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \+ Int64\(\-19\) AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 54 + + - 19 AS col1, 50 AS col1 +---- +35 +50 query I rowsort SELECT + 30 + 0 AS col1 @@ -26346,8 +26648,11 @@ SELECT DISTINCT + COUNT ( * ) * 36, + 65 + + 30 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 196 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* Int64\(2\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 98 * 2 col2, 10 col2 +---- +10 +196 query I rowsort label-5018 SELECT ALL + - 99 * + COUNT ( + 18 ) * + 78 + + 62 AS col1 @@ -26382,8 +26687,11 @@ 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\(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\. +query II valuesort SELECT - - 40 * + 77 + NULLIF ( - 45, + COUNT ( * ) * + CASE - + COUNT ( * ) WHEN + 8 THEN - - 65 END ) AS col0, + 11 + + SUM ( + ( + 96 ) ) AS col0 +---- +107 +3035 query I rowsort label-5025 SELECT ALL - 30 * - COUNT ( DISTINCT 58 ) AS col0 @@ -26560,8 +26868,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - ( - + COUNT ( * ) ) - + ( + 48 ) col0, - 49 * - 96 AS col0 +---- +-47 +4704 query I rowsort SELECT ALL - 6 * - 17 * - 41 @@ -27278,8 +27589,11 @@ SELECT ALL - 38 * - 62 * + - 51 + - - 92 * + 22 * + 95 AS col2 # 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 "Int64\(\-19\) \+ \(\- Int64\(\-22\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 62 col2, - 19 + - - 22 AS col2 +---- +3 +62 query I rowsort SELECT DISTINCT 93 * + 2 - - 42 AS col2 @@ -27917,8 +28231,11 @@ SELECT ( 87 ) * - 74 + - 46 + - 93 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(56\)\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 56 AS col0, 93 AS col0 +---- +-56 +93 query I rowsort label-5325 SELECT ALL 11 * + + CAST ( - ( 9 ) AS INTEGER ) + - 14 + + 15 AS col1 @@ -29399,8 +29716,11 @@ SELECT + COUNT ( * ) * + - 84 * 99 + - 24 * - COUNT ( * ) + 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- Int64\(\-40\)\)\)\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( ALL - - 40 ) AS col1, 88 AS col1 +---- +-1 +88 query I rowsort SELECT ALL + 23 + 42 + - 57 col0 @@ -29463,8 +29783,11 @@ SELECT DISTINCT + 71 + - - 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2490 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \* Int64\(19\) \* Int64\(68\) \+ Int64\(\-33\) \+ Int64\(62\) \+ Int64\(65\) AS col0" at position 0 and "Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 2 * + + 19 * 68 + + - 33 + 62 + + 65 AS col0, - 25 AS col0 +---- +-2490 +-25 query I rowsort label-5622 SELECT + MIN ( - + 99 ) + - + 71 col0 @@ -29565,8 +29888,12 @@ SELECT ALL + 56 * - - 14 AS col2 # Datafusion - Expected - 2 # Datafusion - Expected - 1518 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* Int64\(66\) \* Int64\(1\) AS col2" at position 1 and "Int64\(9\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 2 * COUNT ( * ) AS col1, 23 * 66 * 1 AS col2, ( + + 9 ) AS col2 +---- +1518 +2 +9 query I rowsort label-5641 SELECT - MAX ( ALL 34 ) * - NULLIF ( + NULLIF ( + + 29, + - 58 + ( 36 ) * - 78 - - - COALESCE ( + CAST ( - 25 AS INTEGER ), - COUNT ( * ) ) ), NULLIF ( 91, CASE + 39 WHEN 31 THEN 99 WHEN + 41 THEN MAX ( - 21 ) ELSE + 61 END ) * - ( 65 ) ) * + 81 @@ -30015,8 +30342,11 @@ SELECT - 82 * - 30 * 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col0" at position 0 and "Int64\(16\) \- Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 97 AS col0, 16 - + 76 AS col0 +---- +-60 +-97 query I rowsort SELECT DISTINCT - 80 + - + 32 + + + ( + - 58 ) col2 @@ -30143,8 +30473,11 @@ SELECT DISTINCT + - 8 * CAST ( - 87 AS INTEGER ) * - 44 + + 10 * 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 AS col2, 75 AS col2 +---- +54 +75 query I rowsort label-5748 SELECT - NULLIF ( - COUNT ( ALL 87 ), NULLIF ( COUNT ( * ), + 97 ) + + 89 - - 26 + + + CASE 46 WHEN 54 THEN + - 32 ELSE + - COUNT ( * ) END * 4 / + 98 / + 9 ) @@ -30422,8 +30755,11 @@ SELECT 46 + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col1" at position 0 and "Int64\(\-39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + 79 ) AS col1, + ( - 39 ) col1 +---- +-39 +79 query I rowsort label-5801 SELECT ALL 29 + COUNT ( * ) AS col0 @@ -30977,8 +31313,11 @@ 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\(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\. +query II valuesort SELECT - - COALESCE ( - COUNT ( * ), + 38 ) AS col0, 15 AS col0 +---- +-1 +15 query I rowsort label-5908 SELECT 44 - + + CASE CAST ( 48 AS INTEGER ) WHEN + COUNT ( * ) * 55 THEN - COUNT ( * ) - ( + 12 ) - CASE - NULLIF ( + - 20, + 19 ) WHEN 32 * + CASE + 64 WHEN 37 + ( - MAX ( DISTINCT - - 65 ) ) * AVG ( 57 ) THEN NULL WHEN + 0 THEN NULL ELSE - 94 + 45 * + 83 END + 94 THEN 90 WHEN + 66 - 7 / + 96 THEN 59 - - 97 END WHEN COUNT ( DISTINCT + 82 ) * 32 + COUNT ( * ) THEN NULL ELSE NULL END AS col1 @@ -31343,8 +31682,11 @@ SELECT + 90 * + 47 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11605 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \* Int64\(4\) \+ Int64\(59\) \+ Int64\(\-76\) \* Int64\(59\) \* Int64\(92\) / Int64\(\-35\) AS col2" at position 0 and "Int64\(\-28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 60 * + 4 + 59 + + - 76 * 59 * 92 / + - 35 AS col2, - 28 col2 +---- +-28 +11605 query I rowsort label-5977 SELECT ALL COUNT ( * ) * 18 AS col2 @@ -31543,8 +31885,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 41 AS col2, COUNT ( * ) AS col2 +---- +1 +41 query I rowsort label-6015 SELECT - + SUM ( ALL - 98 ) AS col1 @@ -31927,8 +32272,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ), COUNT ( * ) +---- +1 +1 query II rowsort SELECT 31 AS col0, + 22 + 27 + - 48 + - 64 * 32 @@ -32079,8 +32427,11 @@ SELECT - 85 * - 32 + ( - - ( 26 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 15 col0, 73 AS col0 +---- +15 +73 query I rowsort label-6116 SELECT ALL + + MAX ( + NULLIF ( - ( - + 97 ), 61 ) ) @@ -32409,8 +32760,11 @@ SELECT ALL - - 14 / + + 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 83 AS col1, 2 AS col1 +---- +2 +83 query I rowsort label-6178 SELECT + ( + CASE 92 WHEN - ( - 50 ) THEN 60 ELSE + + MIN ( + - 7 ) END ) AS col0 @@ -32447,8 +32801,11 @@ 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\(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\. +query IR valuesort 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 +---- +1360 +NULL query I rowsort label-6185 SELECT DISTINCT 87 / 79 AS col2 @@ -32702,8 +33059,11 @@ SELECT ALL + 79 / 13 AS col0 # 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 "Int64\(86\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 86 AS col1, 29 AS col1 +---- +29 +86 query I rowsort label-6233 SELECT ALL - 76 * - 46 + - 44 + - 29 / 98 * 57 AS col1 @@ -32724,8 +33084,11 @@ SELECT ALL 7 * - + 3 + + COUNT ( * ) + - ( 96 ) + + - 63 + + + 41 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 56 AS col1 +---- +1 +56 query I rowsort label-6237 SELECT COUNT ( DISTINCT - 75 ) AS col2 @@ -32810,8 +33173,11 @@ 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\(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\. +query II valuesort SELECT - - COUNT ( * ) AS col1, + 62 + - 65 AS col1 +---- +-3 +1 query I rowsort SELECT + 54 * 64 @@ -33334,8 +33700,11 @@ SELECT - - 70 + - - 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 AS col0, 21 col0 +---- +21 +67 query I rowsort SELECT - - 0 col0 @@ -33612,8 +33981,11 @@ SELECT 99 + - 30 * + ( 91 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-15\)\) AS Int32\) / Int64\(8\) AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - - 15 AS INTEGER ) / + 8 AS col2, 64 col2 +---- +1 +64 query I rowsort label-6407 SELECT 6 * - COUNT ( * ) @@ -33802,8 +34174,11 @@ SELECT MAX ( - + 77 ) - + 6 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 AS col2, 59 AS col2 +---- +-48 +59 query I rowsort SELECT DISTINCT 62 + - 84 + 46 @@ -33905,8 +34280,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 10 * + 46 AS col2, - COUNT ( * ) AS col2 +---- +-1 +460 query I rowsort SELECT - 90 * 25 + 44 - + + 28 + ( + 22 ) @@ -33927,8 +34305,11 @@ SELECT 74 + - - 82 - - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 75 / - COUNT ( * ) AS col0, ( + COUNT ( * ) ) AS col0 +---- +-75 +1 query I rowsort SELECT - 81 + - 42 + - 82 @@ -34537,8 +34918,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, 93 AS col2 +---- +1 +93 query I rowsort label-6583 SELECT COALESCE ( - - 94, - + 70 - - - COALESCE ( + 99, - - 59 ) / - 39 + + 8 + 67 + - + ( - COUNT ( * ) ) * + NULLIF ( - - 0, 90 + - COUNT ( * ) ) + + 97 + + COUNT ( * ) + + COUNT ( * ) * 68 * - - 68 * - CAST ( - 27 AS INTEGER ) ) AS col2 @@ -34662,8 +35046,11 @@ SELECT ALL - COUNT ( * ) / + 85 - - + 89 + + 93 + + + ( - + 48 ) + - 89 + 38 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 3379 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \* Int64\(\-42\) \+ \(\- Int64\(23\)\) AS col1" at position 0 and "Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 81 * - 42 + - ( 23 ) AS col1, - 70 AS col1 +---- +-70 +3379 query I rowsort label-6607 SELECT ALL - MAX ( + ( + - 10 ) ) * - + 57 @@ -34761,8 +35148,11 @@ SELECT NULLIF ( - 27, 29 * + 81 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 276 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(3\)\) \* \(\- Int64\(92\)\) AS col0" at position 0 and "Int64\(80\) / Int64\(\-44\) \+ Int64\(\-14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 3 * - + 92 AS col0, 80 / - 44 + - 14 AS col0 +---- +-15 +276 query I rowsort label-6626 SELECT SUM ( ALL - - 95 ) * - 46 - 42 + + - COUNT ( * ) AS col0 @@ -34864,8 +35254,11 @@ SELECT DISTINCT COUNT ( * ) / 64 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 col2, + 79 AS col2 +---- +54 +79 query I rowsort SELECT ALL 28 * + 94 @@ -35068,8 +35461,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(10\)\) AS col2" at position 0 and "Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( 10 ) AS col2, - 27 col2 +---- +-10 +-27 query I rowsort SELECT ALL 5 * + 38 * + 38 * + 23 + - - 76 * + 28 * 93 AS col1 @@ -35491,8 +35887,11 @@ 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 "Int64\(\-3\) AS col2" at position 0 and "Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 3 AS col2, 92 AS col2 +---- +-3 +92 query II rowsort label-6766 SELECT DISTINCT + 29 - + COUNT ( * ) - - 64 * - CAST ( - + NULLIF ( - + 53, - CAST ( - 30 AS INTEGER ) ) AS INTEGER ) + - 32 * - + COUNT ( + 48 ), + 79 AS col0 @@ -35747,8 +36146,11 @@ SELECT ALL - - 27 + - 16 * + COUNT ( * ) * - ( - 18 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - -824 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) / coalesce\(Int64\(17\), Int64\(\-49\), Int64\(31\)\) AS col1" at position 0 and "Int64\(16\) \+ Int64\(31\) \+ Int64\(\-43\) \+ \(\- min\(DISTINCT Int64\(23\)\)\) \* Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 49 / COALESCE ( 17, + - 49, + 31 ) col1, 16 + + 31 + - 43 + - + MIN ( DISTINCT 23 ) * + 36 col1 +---- +-824 +2 query I rowsort label-6814 SELECT DISTINCT + + 61 * + SUM ( + - 93 ) @@ -35901,8 +36303,11 @@ SELECT - CASE 59 WHEN + 89 / + 79 * + 34 THEN 16 ELSE + - 43 END # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 AS col1, 2 AS col1 +---- +2 +93 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -35940,8 +36345,11 @@ 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\(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\. +query II valuesort SELECT ALL + 84 AS col0, 22 * + + COUNT ( * ) + + 2 - + 78 - + 14 * - 97 AS col0 +---- +1304 +84 query I rowsort label-6849 SELECT CAST ( + 82 AS INTEGER ) AS col2 @@ -38162,8 +38570,11 @@ SELECT ALL + COUNT ( * ) / - - 25 + + 29 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 41 AS col1, ( 22 ) AS col1 +---- +22 +41 query I rowsort label-7281 SELECT DISTINCT COUNT ( * ) * + 57 + - 91 * 26 AS col1 @@ -38268,8 +38679,11 @@ SELECT + COUNT ( * ) / + 79 + - COALESCE ( + 83, + + ( + + COUNT ( * ) ) - ( - - # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "coalesce\(Int64\(4\), Int64\(3\), Int64\(\-84\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 2 col0, COALESCE ( 4, + 3, - 84 ) AS col0 +---- +2 +4 query I rowsort label-7301 SELECT - + MAX ( - 94 ) @@ -38328,8 +38742,11 @@ SELECT 44 AS col0, - 99 AS col2, + 38 + - 91 + - 64 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 2461 -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\(87\) \* Int64\(28\) \- Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( - 56 ) AS col2, + 87 * + 28 - - 25 col2 +---- +-1 +2461 query II rowsort SELECT + - 4, - 67 AS col1 @@ -38967,8 +39384,11 @@ SELECT - CASE COUNT ( * ) WHEN + + 85 THEN NULL WHEN 71 - + 37 * + + 20 + - 76 T # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, 89 AS col0 +---- +1 +89 query I rowsort label-7434 SELECT SUM ( DISTINCT + 2 ) + - 60 @@ -38999,8 +39419,11 @@ SELECT ALL 63 * + - 35 * + - 26 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 2229 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col1" at position 0 and "Int64\(75\) \+ Int64\(74\) \+ Int64\(96\) \+ Int64\(31\) \* nullif\(\(\- min\(Int64\(\-64\)\)\), Int64\(\-24\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 AS col1, 75 + + 74 + 96 + + 31 * + + NULLIF ( + - MIN ( - 64 ), + ( - 24 ) ) col1 +---- +2229 +47 # Datafusion - Data was automatically updated based on comparison db results # Datafusion - Previous results: @@ -39125,8 +39548,11 @@ SELECT + 60 * - + 93, COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "Int64\(\-31\) \+ Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 74 AS col1, - 31 + - 18 AS col1 +---- +-49 +74 query I rowsort label-7463 SELECT + - CAST ( + 75 AS INTEGER ) + + + 12 AS col0 @@ -39354,8 +39780,12 @@ SELECT - COUNT ( * ) * + MAX ( + + 15 ) # Datafusion - Expected - -165 # Datafusion - Expected - 18 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \+ Int64\(8\) \* Int64\(\-21\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 3 + 8 * - 21 AS col2, 18, COUNT ( * ) AS col2 +---- +-165 +1 +18 query II rowsort SELECT - 6 AS col0, 88 @@ -39413,14 +39843,20 @@ SELECT ALL - 16 + - - 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- coalesce\(Int64\(94\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col0, ( - ( + COALESCE ( 94, + - COUNT ( * ) ) ) ) + COUNT ( * ) AS col0 +---- +-93 +NULL # 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 "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 II valuesort SELECT - 80 AS col1, + 88 AS col1 +---- +-80 +88 query I rowsort label-7519 SELECT + NULLIF ( - 47, + 25 * - NULLIF ( + - 87, NULLIF ( - COUNT ( * ), + 31 * + COUNT ( * ) ) ) * - 25 * + ( - - COALESCE ( + + 52, - ( + + COUNT ( * ) ) ) ) ) * - - COUNT ( * ) * 98 AS col0 @@ -39745,15 +40181,22 @@ SELECT ALL - 26 * - - 31 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3014 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- \(\- CAST\(Int64\(21\) AS Int32\)\)\) WHEN Int64\(62\) THEN Int64\(43\) / count\(Int64\(1\)\) AS count\(\*\) ELSE NULL END AS col2" at position 0 and "nullif\(\(\- Int64\(\-82\)\), Int64\(90\) \+ Int64\(\-54\) \* \(\- nullif\(sum\(Int64\(10\)\), Int64\(88\)\)\)\) \* Int64\(47\) \+ Int64\(24\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(72\) \* Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +3014 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 578 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(17\) \* Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 37 col0, 17 * 34 AS col0, + + COUNT ( * ) / - - 57 +---- +0 +37 +578 query I rowsort SELECT DISTINCT 89 * 2 * 87 * - + 61 AS col1 @@ -40046,8 +40489,11 @@ SELECT ALL ( - 83 ) + - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, COUNT ( * ) / - 81 AS col2 +---- +0 +1 query II rowsort SELECT ALL - 75, 85 AS col0 @@ -40150,8 +40596,11 @@ SELECT DISTINCT + 80 / + 37 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 "Int64\(3\) / Int64\(\-59\) AS col2" at position 0 and "\(\- nullif\(Int64\(21\), Int64\(\-38\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 / - 59 col2, + ( - NULLIF ( 21, + - 38 ) ) AS col2 +---- +-21 +0 query I rowsort SELECT 9 * - 26 AS col2 @@ -40176,8 +40625,11 @@ SELECT ALL + 54 * + ( - - ( - 67 ) ) 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 "CASE Int64\(90\) WHEN Int64\(31\) THEN \(\- Int64\(\-67\)\) \+ Int64\(22\) WHEN min\(DISTINCT Int64\(66\)\) THEN NULL WHEN \(\- \(\- avg\(\(\- Int64\(\-30\)\)\)\)\) \* count\(DISTINCT \(\- Int64\(\-73\)\)\) \* Int64\(6\) / \(\- Int64\(11\)\) \+ Int64\(\-86\) \+ Int64\(1\) THEN NULL END AS col2" at position 0 and "Int64\(\-19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CASE 90 WHEN + 31 THEN - - 67 + 22 WHEN + MIN ( DISTINCT + 66 ) THEN NULL WHEN - - AVG ( ALL - - 30 ) * + + COUNT ( DISTINCT - - 73 ) * + 6 / - + 11 + - 86 + + + 1 THEN NULL END AS col2, - 19 AS col2 +---- +-19 +NULL query II rowsort label-7662 SELECT ALL - 65 * + + 36 + + NULLIF ( ( + 80 ), - - 89 * 48 ) AS col0, 7 + - COALESCE ( COALESCE ( 86, - 85 ), - ( - ( 78 ) ) - + 71, + + 80 + + - 84 + + - COUNT ( * ) ) * - + 91 AS col1 @@ -40288,8 +40740,11 @@ SELECT 53, - 87 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - -1224 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col1" at position 0 and "Int64\(\-51\) \* \(\- Int64\(\-24\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 49 AS col1, - 51 * - - 24 AS col1 +---- +-1224 +-49 query II rowsort label-7682 SELECT 59, + ( + 31 ) + + COUNT ( DISTINCT + CASE + 22 WHEN 27 - + 25 THEN + ( - 24 ) END ) AS col1 @@ -40641,8 +41096,11 @@ SELECT ALL - SUM ( 14 ) * 76 # 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 "max\(Int64\(99\)\) / \(\- Int64\(\-94\)\) AS col2" at position 0 and "coalesce\(Int64\(78\), Int64\(\-67\) \+ Int64\(6\) \* Int64\(21\), Int64\(\-87\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( ALL 99 ) / - - 94 AS col2, COALESCE ( + 78, - 67 + + 6 * + 21, - 87 ) AS col2 +---- +1 +78 query I rowsort SELECT DISTINCT 21 * - 87 AS col1 @@ -40703,8 +41161,11 @@ 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\(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\. +query II valuesort SELECT ALL + 44 * - 15 - - 18 AS col2, COUNT ( * ) + + MAX ( - 25 ) + + + 62 + - 81 * + 15 * - 1 AS col2 +---- +-642 +1253 query I rowsort label-7761 SELECT ALL + CAST ( - + 56 AS INTEGER ) @@ -40738,8 +41199,11 @@ SELECT ALL + - COUNT ( * ) * MIN ( DISTINCT 76 ) / 73 * ( - + ( - - NULLIF ( - ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 AS col0, - 90 AS col0 +---- +-90 +95 query II rowsort SELECT + 95 + - 71 + - - 81 * - 11 * + - 39 col0, - 76 @@ -40791,8 +41255,11 @@ SELECT DISTINCT - 74 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1105 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* \(\- min\(Int64\(\-13\)\)\) AS col2" at position 0 and "\(\- Int64\(11\)\) / CAST\(\(\- Int64\(49\)\) AS Int32\) \+ \(\- Int64\(44\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 85 * + - MIN ( ALL + - 13 ) AS col2, - ( + + ( 11 ) ) / + CAST ( - + 49 AS INTEGER ) + - + 44 AS col2 +---- +-44 +1105 query I rowsort SELECT + ( - 34 ) + 67 AS col2 @@ -40897,8 +41364,11 @@ SELECT ALL ( 50 ) - - + COUNT ( * ) * 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col1" at position 0 and "Int64\(10\) \- CAST\(Int64\(69\) AS Int32\) \+ Int64\(51\) \+ Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 83 AS col1, + 10 - CAST ( 69 AS INTEGER ) + + 51 + + 61 AS col1 +---- +-83 +53 query II rowsort label-7797 SELECT DISTINCT - CASE 16 WHEN + + 13 * - COUNT ( * ) - + NULLIF ( + + 40, + 35 * - 39 ) THEN + + 81 ELSE NULL END AS col2, + 18 / - 97 AS col0 @@ -41004,8 +41474,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 76 AS col2, COUNT ( * ) - 50 AS col2 +---- +-49 +76 query I rowsort SELECT DISTINCT + - 80 + - 67 + - 8 * - 38 @@ -41538,8 +42011,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(35\) \* Int64\(\-86\) \+ Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 + + - 2 AS col1, + ( + + COUNT ( * ) ) + 35 * - 86 + 41 AS col1 +---- +-2968 +44 query I rowsort label-7918 SELECT + - 48 * - + 11 * - COUNT ( * ) + + + COALESCE ( - COUNT ( * ), - + COUNT ( * ) + COUNT ( * ) / 35 ) @@ -41731,8 +42207,12 @@ 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\(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\. +query III valuesort 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 +---- +-58 +82 +90 query I rowsort label-7954 SELECT + COUNT ( - 53 ) AS col2 @@ -41785,8 +42265,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 83 AS col1, 59 AS col1 +---- +-83 +59 query I rowsort SELECT DISTINCT - ( - 37 ) col2 @@ -42057,8 +42540,12 @@ SELECT + - 70 AS col1 # Datafusion - Expected - -19 # Datafusion - Expected - -441 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(63\)\)\) \* Int64\(7\) AS col2" at position 1 and "Int64\(89\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - COALESCE ( + CAST ( 19 AS INTEGER ), MAX ( 61 ), + - MAX ( 66 ) ), - SUM ( DISTINCT + 63 ) * + 7 AS col2, 89 AS col2 +---- +-19 +-441 +89 query II rowsort label-8016 SELECT ALL 71 * - COUNT ( * ) col1, 47 @@ -42283,8 +42770,11 @@ SELECT ALL 61 + + 99 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \* Int64\(58\) / \(\- \(\- Int64\(60\)\)\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 * 58 / - - ( 60 ) col0, + 2 AS col0 +---- +-29 +2 query I rowsort SELECT - 88 * + + 71 + - 23 AS col2 @@ -42478,8 +42968,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 66 - + ( - 91 ) AS col0, NULLIF ( 7, + COUNT ( * ) ) AS col0 +---- +25 +7 query I rowsort label-8095 SELECT SUM ( - 48 ) AS col2 @@ -42687,8 +43180,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * + + ( + 7 ) * + + ( ( 96 ) ) AS col2, - 71 + 4 AS col2 +---- +-67 +-672 query I rowsort label-8135 SELECT + NULLIF ( + + 3, + ( - - ( + 12 ) ) + + CASE + + COUNT ( * ) WHEN 81 * ( - SUM ( DISTINCT + 98 ) ) THEN 37 WHEN - NULLIF ( - 98, + 33 ) THEN NULL WHEN - ( + - 12 ) / - 5 * - COUNT ( * ) + 69 * 7 + - + 10 THEN - COALESCE ( - 57, COUNT ( * ) ) END ) / - 63 + + COUNT ( * ) / - - 92 + + 5 @@ -42994,8 +43490,12 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-65\) \* Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 2 * - - 41 * + 69 AS col2, + COUNT ( * ) * - 65 * 5 col2, - - COUNT ( * ) * 77 * + CAST ( + 60 AS INTEGER ) + + + 54 +---- +-325 +4674 +5658 query I rowsort SELECT 63 - - CASE - 55 WHEN - 11 THEN - 37 END + - 86 @@ -43082,8 +43582,12 @@ SELECT ALL 18 / 82 # Datafusion - Expected - 1806 # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-3\)\) \* max\(Int64\(53\)\) \+ \(\- \(\- Int64\(\-61\)\)\) \* Int64\(\-27\) AS col0" at position 0 and "Int64\(48\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - 3 * + + MAX ( 53 ) + - - ( + - 61 ) * - 27 AS col0, 48 * - CAST ( NULL AS INTEGER ) * 30 AS col0, - ( + + 99 ) +---- +-99 +1806 +NULL query I rowsort SELECT DISTINCT + ( 34 ) * - 27 AS col1 @@ -43247,8 +43751,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(79\), Int64\(97\) \+ \(\- Int64\(\-67\)\) \+ Int64\(3\) \+ Int64\(44\)\)\) \+ \(\- max\(DISTINCT \(\- Int64\(48\)\)\)\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( 79, + 97 + - - 67 + 3 + 44 ) + - MAX ( DISTINCT - + ( + + 48 ) ) AS col1, + 60 AS col1 +---- +-31 +60 query I rowsort SELECT ALL NULLIF ( - 32, - ( - 99 ) ) @@ -43504,8 +44011,11 @@ SELECT ALL + 6 * + 87 * 69 * 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35340 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-95\)\) \* Int64\(31\) \* Int64\(12\) AS col1" at position 0 and "Int64\(24\) / Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 95 * 31 * 12 AS col1, + 24 / + 46 AS col1 +---- +0 +35340 query I rowsort label-8291 SELECT - 60 * + MAX ( - 98 ) + + 14 @@ -43832,8 +44342,11 @@ SELECT ALL ( - 60 ) * - + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \+ \(\- Int64\(\-72\)\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 + - - 72 AS col0, 83 AS col0 +---- +83 +94 query I rowsort SELECT + 51 * + 87 @@ -44368,8 +44881,11 @@ 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\(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\. +query II valuesort SELECT ALL ( - COUNT ( * ) ) + 16 AS col0, 91 * - ( + 33 ) AS col0 +---- +-3003 +15 query I rowsort label-8456 SELECT + CAST ( + 90 AS INTEGER ) * - 43 @@ -44389,8 +44905,11 @@ SELECT DISTINCT 32 + + 60 * + + 72 * + NULLIF ( - + 92, NULLIF ( - + 23, - + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 4616 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col2" at position 0 and "Int64\(14\) \+ Int64\(\-59\) \* Int64\(\-78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 46 AS col2, + 14 + + - 59 * - 78 AS col2 +---- +-46 +4616 query I rowsort SELECT ALL COALESCE ( + - 85, - - 35 ) col2 @@ -44492,8 +45011,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1380 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \+ Int64\(\-18\) \* Int64\(\-82\) \+ \(\- Int64\(65\)\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 31 * CAST ( + - COUNT ( * ) AS INTEGER ) + - 18 * + ( - 82 ) + - + 65 AS col1, 84 AS col1 +---- +1380 +84 query II rowsort label-8480 SELECT 25 - + - 62 - 97 + - 4, 40 / - 70 AS col0 @@ -45793,8 +46315,11 @@ SELECT 25 * - 67 AS col0 # 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 "Int64\(32\) \- Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 AS col1, + 32 - + 35 AS col1 +---- +-3 +63 query I rowsort label-8733 SELECT ALL + COUNT ( * ) * + - 30 * + 27 AS col0 @@ -46501,8 +47026,11 @@ SELECT ALL + 8 AS col1, 13 / - - COALESCE ( - COALESCE ( + - 87, ( + 16 ) ), 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - -114670 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col0" at position 0 and "Int64\(\-29\) \* Int64\(\-44\) \* Int64\(\-90\) \- Int64\(\-86\) \+ Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 23 AS col0, - 29 * - 44 * + - 90 - - 86 + + 84 AS col0 +---- +-114670 +-23 query I rowsort label-8870 SELECT DISTINCT + COALESCE ( + 47, CASE + 9 WHEN + NULLIF ( - 36, - 1 ) + 48 THEN 41 WHEN + COUNT ( * ) / + 9 + AVG ( DISTINCT - 33 ) THEN NULL END ) + COUNT ( * ) @@ -46584,8 +47112,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 6308 # Datafusion - Expected - -7896 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* Int64\(96\) \+ Int64\(68\) AS col0" at position 0 and "Int64\(94\) \* \(\- Int64\(84\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 * + 96 + + 68 AS col0, 94 * - + 84 AS col0 +---- +-7896 +6308 query I rowsort SELECT + 88 * - 94 - - ( ( 49 ) ) - + - 19 @@ -47128,8 +47659,11 @@ SELECT ALL + + MAX ( ALL + 17 ) + - + COUNT ( * ) + - 72 # 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\(NULL AS Float64\)\)\) \- \(\- CAST\(Int64\(83\) AS Float64\)\) AS col1" at position 0 and "Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - - CAST ( NULL AS FLOAT8 ) - - + CAST ( + 83 AS FLOAT8 ) AS col1, + 89 AS col1 +---- +89 +NULL query I rowsort SELECT ALL - - 33 AS col2 @@ -47181,8 +47715,11 @@ SELECT + 95, NULLIF ( + - 67, + 20 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col1" at position 0 and "Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 71 AS col1, 18 AS col1 +---- +-71 +18 query I rowsort label-9001 SELECT ALL + ( - 28 ) * - 8 + + MIN ( DISTINCT 67 ) / 51 @@ -47471,8 +48008,12 @@ NULL # Datafusion - Expected - 122 # Datafusion - Expected - 48 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(26\), CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ sum\(DISTINCT Int64\(96\)\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - NULLIF ( 26, CAST ( + COUNT ( * ) AS INTEGER ) ) * - COUNT ( * ) + SUM ( DISTINCT + 96 ) AS col1, + 48 AS col1, 11 col0 +---- +11 +122 +48 query II rowsort label-9055 SELECT - MIN ( - 28 ) AS col1, 90 * + CAST ( NULL AS INTEGER ) / + - ( - 25 ) col0 @@ -47772,8 +48313,11 @@ SELECT ALL COUNT ( * ) + 51 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1327 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* Int64\(76\) \+ Int64\(91\) \+ Int64\(20\) AS col1" at position 0 and "Int64\(76\) \* Int64\(15\) \* CAST\(\(\- CAST\(CASE Int64\(\-23\) WHEN Int64\(71\) THEN Int64\(0\) / max\(Int64\(2\)\) END AS Int32\)\) AS Int32\) / nullif\(Int64\(13\) \+ \(\- Int64\(63\) \+ Int64\(13\)\), \(\- Int64\(55\)\) \+ Int64\(97\) \* Int64\(90\)\) \+ nullif\(Int64\(2\), Int64\(1\) \* Int64\(\-71\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(25\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1327 +NULL query I rowsort SELECT 33 * 63 @@ -47927,8 +48471,11 @@ SELECT 76 / - 88 - + 60 * + 43 + + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -720 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(27\)\) AS col2" at position 0 and "Int64\(\-90\) \* Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( + 27 ) AS col2, - 90 * + 8 AS col2 +---- +-720 +1 query II rowsort label-9141 SELECT DISTINCT - - MIN ( - 2 ) * + + NULLIF ( + COUNT ( ALL + 7 ), - + 1 * 64 + 23 ) + + - 3 + + 47 + + COUNT ( * ) * + + 51, 63 AS col1 @@ -48046,8 +48593,11 @@ SELECT + - 1 - + + 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 0 and "\(\- CAST\(Int64\(\-68\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 13 AS col0, - CAST ( - 68 AS INTEGER ) AS col0 +---- +13 +68 query I rowsort label-9164 SELECT + 87 / - 26 @@ -48170,8 +48720,11 @@ SELECT + 13 + - + 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(54\)\) AS col0" at position 0 and "Int64\(\-2\) \- Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - + 54 ) AS col0, - 2 - + 40 AS col0 +---- +-42 +-54 query II rowsort label-9188 SELECT ALL + 97 AS col0, + COUNT ( * ) / 74 @@ -48508,8 +49061,11 @@ SELECT DISTINCT - 0 * + - 16 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "\(\- min\(Int64\(37\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( 22 ) col1, - MIN ( 37 ) AS col1 +---- +-37 +22 query I rowsort SELECT ALL - 67 * - 80 @@ -49165,8 +49721,11 @@ SELECT ALL 71 * 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col2" at position 0 and "min\(Int64\(\-17\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 col2, MIN ( - 17 ) AS col2 +---- +-17 +72 query I rowsort label-9380 SELECT ALL COUNT ( DISTINCT - - 36 ) * + + 23 AS col1 @@ -49266,8 +49825,11 @@ SELECT 80 - - 75 AS col2 # 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 "Int64\(46\) AS col2" at position 0 and "Int64\(\-92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 AS col2, - 92 col2 +---- +-92 +46 query II rowsort label-9398 SELECT COUNT ( * ) AS col0, + COUNT ( * ) * 67 @@ -49310,8 +49872,11 @@ SELECT + CAST ( - 12 AS INTEGER ) - + - 75 + + - 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3685 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* Int64\(67\) AS col2" at position 0 and "Int64\(91\) \- count\(\(\- Int64\(31\)\)\) \* Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 55 * + 67 AS col2, 91 - COUNT ( - + 31 ) * 1 AS col2 +---- +3685 +90 query II rowsort label-9406 SELECT ALL - 9 + - 33 AS col2, + CAST ( - 98 AS INTEGER ) AS col0 @@ -49525,8 +50090,11 @@ SELECT DISTINCT 24 * NULLIF ( + 65, - 15 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(52\) AS Int32\)\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - CAST ( + 52 AS INTEGER ) ) col1, 49 AS col1 +---- +-52 +49 query I rowsort label-9446 SELECT - 53 * + CASE + - CAST ( NULL AS INTEGER ) WHEN + 75 THEN 77 WHEN - - 95 THEN 30 WHEN - 66 * - - 88 THEN NULL ELSE - - 22 END AS col2 @@ -50453,8 +51021,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col1" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 72 AS col1, + CAST ( COUNT ( * ) AS INTEGER ) * + 36 AS col1 +---- +-72 +36 query II rowsort SELECT 89 AS col0, - 7 + - - 92 AS col1 @@ -50710,8 +51281,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(\-58\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( + 12 ) col2, COUNT ( * ) * - - 58 col2 +---- +12 +58 query I rowsort label-9670 SELECT + MIN ( + 40 ) @@ -50862,8 +51436,11 @@ SELECT 95 * 36 - + 22 + + 94 * 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 600 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* Int64\(15\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 40 * 15 * + COUNT ( * ) AS col1, + 29 AS col1 +---- +29 +600 query II rowsort SELECT ALL + 20 col2, - 70 AS col1 @@ -51130,8 +51707,11 @@ SELECT 92 * - + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 312 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) \+ \(\- Int64\(\-54\)\) AS col0" at position 0 and "Int64\(3\) \* \(\- CASE Int64\(19\) WHEN Int64\(77\) \* Int64\(85\) THEN Int64\(\-63\) \* Int64\(29\) \+ \(\- max\(\(\- Int64\(55\)\)\)\) \* Int64\(66\) \+ \(\- nullif\(Int64\(\-72\), sum\(Int64\(47\)\)\)\) \+ Int64\(\-75\) WHEN Int64\(50\) \+ Int64\(\-26\) THEN Int64\(55\) \* \(\- Int64\(\-42\)\) / Int64\(75\) ELSE \(\- Int64\(96\)\) END\) \+ Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 14 + - - 54 AS col0, 3 * - + CASE + + 19 WHEN + 77 * + + 85 THEN - 63 * 29 + - MAX ( - + 55 ) * + + 66 + - NULLIF ( - 72, + SUM ( 47 ) ) + + - 75 WHEN 50 + - 26 THEN + 55 * - - 42 / 75 ELSE - + 96 END + + 24 col0 +---- +312 +40 query I rowsort SELECT + 95 * + 7 AS col1 @@ -51199,8 +51779,11 @@ SELECT 30 * + ( + + 22 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 242 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* Int64\(\-11\) AS col2" at position 0 and "Int64\(\-92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 22 * - 11 col2, - 92 AS col2 +---- +-92 +242 query I rowsort SELECT ALL + 67 + - 81 AS col2 @@ -51797,8 +52380,11 @@ SELECT ALL - 3 * - 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4104 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(54\)\)\) \* \(\- Int64\(76\)\) AS col2" at position 0 and "Int64\(\-87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MIN ( ALL + 54 ) * - + 76 col2, - 87 AS col2 +---- +-87 +4104 query I rowsort SELECT + 16 * - 99 + + + 51 col0 @@ -51859,14 +52445,20 @@ SELECT DISTINCT 12 + COALESCE ( COALESCE ( - 98, 45 ), + 84 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 1218 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col2" at position 0 and "Int64\(21\) \* Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 83 col2, 21 * 58 AS col2 +---- +1218 +83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "CASE Int64\(51\) WHEN \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(72\)\)\) THEN Int64\(8\) \+ \(\- CAST\(Int64\(82\) AS Int32\)\) / \(\- Int64\(4\)\) \* Int64\(89\) / Int64\(\-66\) \- Int64\(45\) WHEN \(\- sum\(DISTINCT Int64\(\-34\)\)\) THEN \(\- Int64\(\-32\)\) WHEN \(\- Int64\(\-16\)\) \* Int64\(61\) \+ Int64\(\-88\) THEN NULL ELSE NULL END \+ sum\(Int64\(1\)\) / Int64\(\-75\) \+ Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +40 +NULL query I rowsort label-9891 SELECT 74 * - - COALESCE ( + - 8, 91 * MIN ( DISTINCT - - 11 ), + NULLIF ( - CASE + + 3 WHEN + + 14 + COUNT ( * ) - + COUNT ( * ) - + ( + 1 ) * - 61 THEN - 68 WHEN 6 + - 11 THEN 55 ELSE NULL END, + 98 + 44 ) ) AS col1 @@ -51897,8 +52489,12 @@ SELECT DISTINCT 63 / - + 94 AS col1 # Datafusion - Expected - 367500 # Datafusion - Expected - -451586 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* Int64\(75\) \* Int64\(50\) AS col0" at position 0 and "nullif\(nullif\(Int64\(27\), Int64\(\-5\) \* Int64\(93\)\), coalesce\(Int64\(86\), Int64\(5\)\) \+ Int64\(5\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 98 * 75 * + ( 50 ) AS col0, + ( + ( - 59 ) ) * 86 * 89 AS col2, + NULLIF ( NULLIF ( 27, - 5 * 93 ), + COALESCE ( + 86, + 5 ) + + + 5 ) AS col0 +---- +-451586 +27 +367500 query I rowsort SELECT 64 * + + 7 @@ -52115,8 +52711,12 @@ SELECT ALL 11 * - MAX ( + 27 ) # Datafusion - Expected - 74 # Datafusion - Expected - 91 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(74\)\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT MAX ( ALL + 74 ) AS col0, 91 AS col0, - + 28 AS col2 +---- +-28 +74 +91 query II rowsort label-9938 SELECT DISTINCT - 73 * + 80, - MAX ( DISTINCT - 87 ) col0 @@ -52231,8 +52831,11 @@ 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\(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\. +query II valuesort SELECT ALL - 2 * + 4 AS col2, - NULLIF ( + - 82, - 23 ) * - COUNT ( * ) + - + 27 / + + ( - 71 ) + + 66 * - + 34 AS col2 +---- +-2326 +-8 query I rowsort SELECT DISTINCT + 88 col1 diff --git a/data/sqlite/random/expr/slt_good_4.slt b/data/sqlite/random/expr/slt_good_4.slt index cc73b2f..5a02637 100644 --- a/data/sqlite/random/expr/slt_good_4.slt +++ b/data/sqlite/random/expr/slt_good_4.slt @@ -179,8 +179,11 @@ SELECT + COUNT ( - 89 ) + COUNT ( * ) AS col1 # 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 col2" at position 0 and "Int64\(39\) \+ Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 21 AS col2, 39 + + 17 AS col2 +---- +-21 +56 query II rowsort label-28 SELECT + 39 + + ( - - 67 ) AS col1, - 69 + COUNT ( * ) @@ -286,8 +289,11 @@ SELECT + + 26 AS col2, ( SUM ( DISTINCT - - 44 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT - 62 col2, 47 AS col2 +---- +-62 +47 query I rowsort SELECT - 22 * - - 53 @@ -584,8 +590,11 @@ 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\(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\. +query II valuesort SELECT ALL - - COUNT ( * ) * + + COUNT ( * ) + + 58 col1, + ( 94 ) * + COUNT ( * ) * 99 AS col1 +---- +59 +9306 query I rowsort SELECT ALL + 75 + - 84 AS col0 @@ -732,8 +741,11 @@ SELECT + - 54 / - + 26 + - ( + 54 ) - - - 21 * - COUNT ( * ) * + 80 * 92 + + 3 c # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 69 col2, 5 AS col2 +---- +-69 +5 query I rowsort label-134 SELECT ALL - - COUNT ( DISTINCT - 62 ) + 51 @@ -764,8 +776,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 AS col2, - COUNT ( * ) AS col2 +---- +-1 +53 query II rowsort SELECT - 4 AS col0, 78 AS col2 @@ -894,8 +909,11 @@ 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\(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\. +query II valuesort SELECT + - 73 + - - COALESCE ( - 70, 47, COUNT ( * ) + + SUM ( DISTINCT - - 2 ) ) col2, 93 AS col2 +---- +-143 +93 query II rowsort label-165 SELECT + ( + - COUNT ( * ) ) * 69, + COALESCE ( - 31, - 44 - - 51 ) + COUNT ( * ) + CAST ( - + 42 AS INTEGER ) * 38 AS col1 @@ -997,8 +1015,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-13\) \+ Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 65 AS col0, COUNT ( * ) * - 13 + + 31 AS col0 +---- +18 +65 query II rowsort label-184 SELECT ALL - 31 AS col2, + COALESCE ( - - COUNT ( DISTINCT - 57 ), + 51 + - + 99 ) col0 @@ -1062,8 +1083,11 @@ SELECT ALL - 11 + 69 * - - 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ \(\- coalesce\(Int64\(55\), \(\- nullif\(Int64\(57\), Int64\(45\) \* avg\(Int64\(16\)\)\)\), Int64\(\-91\) \* \(\- Int64\(\-75\)\)\)\) \+ \(\- Int64\(\-89\)\) AS col1" at position 0 and "Int64\(23\) \+ Int64\(73\) \- CAST\(Int64\(49\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT + 57 + + - COALESCE ( + 55, + - NULLIF ( + 57, + + 45 * + AVG ( + 16 ) ), - 91 * - + ( - 75 ) ) + - - 89 col1, 23 + + 73 - CAST ( 49 AS INTEGER ) AS col1 +---- +47 +91 query II rowsort SELECT 5 * 24, 31 + - 48 * + 85 AS col1 @@ -1106,8 +1130,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 44 * - - 69 * - + 75 + - COUNT ( * ) AS col2, + 13 AS col2 +---- +13 +227699 query I rowsort SELECT ALL + 18 * - 87 + - 77 AS col0 @@ -1168,8 +1195,12 @@ NULL # Datafusion - Expected - -63 # Datafusion - Expected - 129 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT \(\- Int64\(\-63\)\)\)\) AS col0" at position 0 and "Int64\(\-49\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - MIN ( DISTINCT - - 63 ) AS col0, ( + COUNT ( * ) ) / + MIN ( ALL + 54 ) + - - 14 - + + 53 + - + NULLIF ( + ( + - 48 ), + 78 ) / 6 * ( + 21 ), + - 49 col0 +---- +-49 +-63 +129 query I rowsort label-215 SELECT DISTINCT - CAST ( + 6 AS INTEGER ) @@ -1414,8 +1445,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(\-59\)\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(53\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) - - - 59 / + COUNT ( * ) + + 53 AS col0, + CAST ( NULL AS INTEGER ) AS col0 +---- +-5 +NULL query I rowsort label-262 SELECT + ( COUNT ( 84 ) ) + 10 - + - 99 * + + 67 AS col2 @@ -1949,8 +1983,11 @@ SELECT ALL - 19 + + 47 + 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 115 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-29\)\) \+ Int64\(85\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 29 ) + 85 + + COUNT ( * ) AS col2, ( + 32 ) AS col2 +---- +115 +32 query I rowsort SELECT ALL + 56 + + 3 AS col0 @@ -2160,8 +2197,11 @@ SELECT - 97 AS col0, + 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2128 # Datafusion - Expected - 106 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* Int64\(\-52\) \+ Int64\(24\) \+ Int64\(58\) \* Int64\(82\) AS col0" at position 0 and "Int64\(81\) \+ Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 51 * - 52 + + 24 + 58 * + 82 AS col0, + 81 + 25 AS col0 +---- +106 +2128 query I rowsort SELECT DISTINCT - 74 - + - 32 + + 14 col1 @@ -2191,8 +2231,11 @@ SELECT 34 * 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 76 AS col2, 86 AS col2 +---- +76 +86 query I rowsort SELECT + 70 + - - 33 AS col2 @@ -2408,8 +2451,11 @@ SELECT - COALESCE ( + - 10, - 19 ) * + 98 * - ( - - 90 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 2523 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col0" at position 0 and "Int64\(\-2\) \* Int64\(\-37\) \+ Int64\(79\) \* Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 AS col0, - 2 * - 37 + + 79 * 31 AS col0 +---- +2523 +88 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -2456,8 +2502,11 @@ SELECT ALL 51 / + 62 # 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\(91\) / Int64\(\-98\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 91 / - 98 AS col2, + 11 AS col2 +---- +0 +11 query I rowsort label-459 SELECT DISTINCT + 37 * - 65 * + COALESCE ( + - 87, 99 + - 31 + - 69 * + - CASE + - 79 WHEN - 24 THEN MAX ( DISTINCT + + 64 ) + - 12 * + 73 * 55 END * COUNT ( * ) + 12, + CASE - - 0 WHEN + + COUNT ( * ) * - 68 + COUNT ( * ) - - 73 / + 25 THEN - 79 * - COUNT ( * ) * + 6 + MIN ( DISTINCT - 52 ) WHEN + NULLIF ( 52, 58 ) / 66 THEN NULL WHEN 84 - + 43 THEN COUNT ( * ) END ) @@ -2604,8 +2653,11 @@ SELECT ALL - + 93 - 41 - + + 8 * + 77 * + - 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + COUNT ( * ) ) AS col1, - COUNT ( * ) AS col1 +---- +-1 +1 query I rowsort label-486 SELECT - 12 / + - 88 + - CAST ( NULL AS INTEGER ) + 10 AS col2 @@ -2648,8 +2700,11 @@ SELECT + - 94 + - + 84 # 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\(88\) \+ Int64\(\-13\) AS col0" at position 0 and "count\(\(\- coalesce\(Int64\(27\), \(\- Int64\(76\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 88 + - 13 col0, COUNT ( ALL - COALESCE ( 27, - + 76 ) ) AS col0 +---- +1 +75 query I rowsort label-494 SELECT ALL 58 * - - CAST ( NULL AS INTEGER ) / 53 @@ -2716,8 +2771,11 @@ SELECT ( + + COUNT ( + - 70 ) ) col1 # 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 col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 75 AS col2, + 45 col2 +---- +45 +75 query I rowsort label-507 SELECT DISTINCT CAST ( NULL AS INTEGER ) / - MAX ( CAST ( NULL AS INTEGER ) ) * + COUNT ( DISTINCT + + 64 ) + + 54 @@ -2792,8 +2850,11 @@ SELECT NULLIF ( 90, + 64 * - COUNT ( + + 73 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "CAST\(\(\- Int64\(\-45\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 16 AS col1, + CAST ( - - 45 AS INTEGER ) AS col1 +---- +16 +45 query I rowsort label-521 SELECT + 31 * + - 56 * 62 * - + 82 + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + 10 @@ -2911,8 +2972,11 @@ SELECT CAST ( - 45 AS INTEGER ) * + - 5 * + 54 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3354 # Datafusion - Expected - 182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(86\) AS col0" at position 0 and "Int64\(89\) \+ Int64\(94\) \+ Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 * + 86 AS col0, + 89 + 94 + - 1 AS col0 +---- +182 +3354 query I rowsort label-544 SELECT ALL 86 - COUNT ( * ) AS col0 @@ -3216,8 +3280,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 2035 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col2" at position 0 and "Int64\(20\) \* Int64\(97\) \+ Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 AS col2, 20 * + 97 + + 95 AS col2 +---- +-92 +2035 query I rowsort SELECT - - 14 * NULLIF ( - 76, + + 86 * - 76 ) + + - 30 AS col0 @@ -3268,14 +3335,20 @@ SELECT ALL MAX ( ALL - 22 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - -8232 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col0" at position 0 and "\(\- min\(\(\- Int64\(98\)\)\)\) \+ Int64\(\-85\) \* Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 98 col0, - MIN ( - + 98 ) + - 85 * 98 AS col0 +---- +-8232 +-98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -2520 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col2" at position 0 and "sum\(Int64\(90\)\) \* Int64\(\-28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( 43 ) AS col2, SUM ( ALL + 90 ) * + - 28 AS col2 +---- +-2520 +43 query II rowsort SELECT - 11 AS col0, 71 @@ -3374,8 +3447,11 @@ SELECT + - 86 AS col0, NULLIF ( + 17, 85 + + + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 AS col2, 62 AS col2 +---- +55 +62 query I rowsort SELECT + + 92 * + + 90 + - 65 + - 2 AS col1 @@ -3462,8 +3538,11 @@ SELECT - 91 + - 99 - + 5 * - 72 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 109 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(CAST\(\(\- max\(\(\- \(\- Int64\(\-27\)\)\)\)\) AS Float64\) AS Int32\)\) AS col2" at position 0 and "Int64\(99\) \- nullif\(\(\- Int64\(10\)\), Int64\(32\) \+ max\(DISTINCT Int64\(36\)\) / Int64\(\-25\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( CAST ( - + MAX ( - - ( + - 27 ) ) AS FLOAT8 ) AS INTEGER ) col2, 99 - NULLIF ( - + 10, 32 + + MAX ( DISTINCT + + 36 ) / - 25 ) AS col2 +---- +-27 +109 query I rowsort SELECT ALL + 39 + + ( + 53 ) + - 7 AS col1 @@ -3666,8 +3745,11 @@ SELECT 27 - 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 63 AS col0, COUNT ( * ) AS col0 +---- +1 +63 query I rowsort label-685 SELECT + SUM ( - 52 ) AS col1 @@ -3798,8 +3880,11 @@ SELECT ALL - 48 * 20 * ( + 20 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 + + COUNT ( * ) AS col1, + 99 AS col1 +---- +94 +99 query I rowsort label-710 SELECT 2 + + 93 - - COUNT ( * ) + - CASE - - 64 WHEN - 96 * - 51 + - - 63 * 41 + - + 32 THEN + + 50 END - + 82 / - 53 @@ -4216,8 +4301,12 @@ NULL # Datafusion - Expected - 26 # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 0 and "\(\- count\(Int64\(\-45\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + + 26 AS col2, COUNT ( * ) / + + 95 + + COUNT ( * ) AS col1, + - COUNT ( ALL - 45 ) AS col2 +---- +-1 +1 +26 query I rowsort label-790 SELECT + 77 * + SUM ( + 68 ) + + SUM ( - ( 43 ) ) + - 94 AS col0 @@ -4324,8 +4413,11 @@ 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\(39\) \- Int64\(18\) AS col1" at position 0 and "Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 - 18 AS col1, + 6 AS col1 +---- +21 +6 query I rowsort SELECT ALL - 18 + 70 + - 19 - 29 AS col0 @@ -4805,8 +4897,11 @@ SELECT DISTINCT + ( 50 ) / - + 11 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(83\), Int64\(94\)\)\) AS col0" at position 0 and "coalesce\(Int64\(\-76\), Int64\(24\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COALESCE ( 83, 94 ) col0, COALESCE ( - 76, + 24 ) AS col0 +---- +-76 +-83 query I rowsort SELECT - 89 + + + 44 @@ -5113,8 +5208,11 @@ SELECT ALL + MIN ( ALL - - 7 ) * 95 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 "Int64\(\-1\) AS col0" at position 0 and "Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - 1 ) AS col0, 15 AS col0 +---- +-1 +15 query I rowsort SELECT DISTINCT + + 3 * + 3 @@ -5303,8 +5401,11 @@ SELECT ALL - + 14 * 84 * - ( - 97 ) + - 39 * COUNT ( ALL 8 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 3685 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col2" at position 0 and "Int64\(67\) \* Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 40 AS col2, 67 * + 55 AS col2 +---- +3685 +40 query I rowsort label-993 SELECT DISTINCT + COALESCE ( - 67, - 55 ) / 40 * 44 + + 21 + - - 91 / - 97 * 8 + - + CAST ( NULL AS INTEGER ) @@ -5335,8 +5436,11 @@ SELECT ALL + + 6 / 14 * - 43 + + 40 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -562590 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-28\)\)\) / Int64\(\-73\) \* \(\- Int64\(\-28\)\) \+ Int64\(\-95\) \* \(\- Int64\(\-63\)\) \* Int64\(94\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - ( - 28 ) / - 73 * - - 28 + + ( - 95 ) * - - 63 * + + 94 AS col2, 10 AS col2 +---- +-562590 +10 query I rowsort SELECT ALL + 51 + - 96 col1 @@ -5352,8 +5456,11 @@ SELECT + 56 AS col0, + ( + 50 ) * + 88 * + 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(92\) / min\(\(\- Int64\(87\)\)\) AS col1" at position 0 and "CAST\(Int64\(73\) AS Int32\) \+ \(\- Int64\(62\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 * 92 / + MIN ( - + 87 ) AS col1, + CAST ( + 73 AS INTEGER ) + - + 62 AS col1 +---- +-14 +11 query I rowsort label-1002 SELECT ALL - 65 / - 17 * - + CAST ( NULL AS INTEGER ) AS col1 @@ -5483,8 +5590,11 @@ SELECT + 78 / + NULLIF ( 95, - ( - 52 ) ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -123257 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) \+ Int64\(79\) \* Int64\(\-24\) \* Int64\(65\) AS col1" at position 0 and "Int64\(\-63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 17 + + + 79 * + - 24 * 65 AS col1, - 63 AS col1 +---- +-123257 +-63 query II rowsort label-1027 SELECT ( + 12 ) AS col1, + COUNT ( * ) * + COALESCE ( + 7, - 3, COALESCE ( 64, + CAST ( NULL AS INTEGER ), + 38 ) ) AS col0 @@ -5639,8 +5749,11 @@ SELECT ALL + - 19 * - - 19 + + 23 - 87 * + + ( + + 76 ) + + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col1" at position 0 and "Int64\(\-71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 79 AS col1, - 71 AS col1 +---- +-71 +79 query II rowsort SELECT DISTINCT + 26 AS col1, - 27 @@ -5741,8 +5854,11 @@ SELECT ALL - 79 + - - 17 # 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 col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 AS col2, + 28 AS col2 +---- +22 +28 query II rowsort SELECT ALL + 15 + - 29 AS col0, - 93 + - 97 AS col1 @@ -6267,8 +6383,11 @@ SELECT DISTINCT - 19 * - 14 * + ( - - SUM ( + + 49 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 830 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) \* \(\- Int64\(56\)\) \+ Int64\(46\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 14 * - ( + 56 ) + 46 AS col0, 75 AS col0 +---- +75 +830 query I rowsort label-1176 SELECT COUNT ( ALL - 18 ) - - - 55 AS col2 @@ -6318,8 +6437,11 @@ SELECT + 72 + 57 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7315 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* Int64\(\-77\) AS col0" at position 0 and "Int64\(\-67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 95 * + - 77 AS col0, - 67 AS col0 +---- +-67 +-7315 query I rowsort label-1186 SELECT ALL SUM ( 95 ) - - 56 @@ -7124,8 +7246,11 @@ SELECT ALL + 31 AS col1, + ( - 63 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col2" at position 0 and "sum\(Int64\(\-10\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 24 AS col2, SUM ( - 10 ) AS col2 +---- +-10 +-24 query I rowsort label-1344 SELECT DISTINCT 38 * CASE + 9 WHEN COUNT ( * ) THEN COALESCE ( + 77, 41 ) + 31 END @@ -7352,8 +7477,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * - 89 + - + COUNT ( * ) AS col1, - 41 * - + ( 81 ) AS col1 +---- +-90 +3321 query I rowsort label-1389 SELECT 90 * + ( + CAST ( - 4 AS INTEGER ) ) @@ -7384,8 +7512,11 @@ 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\(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\. +query II valuesort SELECT ALL 20 + - COUNT ( * ) + + 71 AS col1, 41 AS col1 +---- +41 +90 query II rowsort SELECT ALL 99 AS col0, 67 * + - 9 * - 70 @@ -7636,8 +7767,12 @@ SELECT 6 * 65 - - + COALESCE ( + + 52, ( + 79 ) + 66, 3 ) AS col1 # Datafusion - Expected - -15 # Datafusion - Expected - 85988 # Datafusion - Expected - 360 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col2" at position 0 and "Int64\(\-74\) \* Int64\(\-14\) \* Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 15 AS col2, - 74 * - 14 * + + 83 AS col2, + 53 * + COUNT ( * ) + 36 * 7 - - 55 +---- +-15 +360 +85988 query I rowsort SELECT DISTINCT - ( + 9 ) col0 @@ -8074,8 +8209,11 @@ 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\(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\. +query II valuesort SELECT + COALESCE ( + 62, + - 52 ) + + 60 * + + 10 AS col0, + COUNT ( * ) * + COUNT ( * ) - 20 + NULLIF ( - 61, NULLIF ( ( 89 ), 55 + 58 ) ) AS col0 +---- +-80 +662 query I rowsort label-1526 SELECT 29 + - COALESCE ( NULLIF ( - 95, 67 ), - + ( + MAX ( ALL + 40 ) ) ) * + - 49 * 99 @@ -8184,8 +8322,11 @@ SELECT + + 65 * - 30 * 96 + 41 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4766 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \+ \(\- Int64\(\-66\)\) \* 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 II valuesort SELECT + - 80 + - - 66 * + - 71 AS col2, ( + 66 ) AS col2 +---- +-4766 +66 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -8259,8 +8400,11 @@ SELECT - + MAX ( + + 37 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -112346 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(92\) \* CASE Int64\(26\) WHEN \(\- Int64\(\-93\)\) THEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN Int64\(88\) THEN Int64\(\-43\) WHEN Int64\(25\) THEN NULL ELSE Int64\(62\) \+ \(\- Int64\(36\)\) END \* Int64\(\-47\) \+ max\(DISTINCT Int64\(78\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-112346 +1 query I rowsort label-1561 SELECT - COUNT ( * ) * - - 13 @@ -8424,8 +8568,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 25 AS col0, COUNT ( * ) * + 61 AS col0 +---- +25 +61 query II rowsort SELECT - NULLIF ( 55, - 42 ) + - 80 AS col1, 73 AS col2 @@ -8682,8 +8829,11 @@ SELECT + + 38 / - - ( - + 82 ) + - + COUNT ( * ) + 81 * - 38 * + 50 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -95760 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-33\)\) AS col2" at position 0 and "Int64\(24\) \* \(\- Int64\(95\)\) \* Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 33 col2, 24 * - ( + + 95 ) * + 42 AS col2 +---- +-95760 +33 query I rowsort SELECT 19 + - + 54 AS col2 @@ -9180,8 +9330,11 @@ SELECT DISTINCT + - 63 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col0" at position 0 and "Int64\(\-71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 76 AS col0, - 71 AS col0 +---- +-71 +-76 query I rowsort SELECT - 87 * 85 AS col1 @@ -9484,8 +9637,11 @@ SELECT + - 87 - 57 / + + 70 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-56\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, COUNT ( * ) * - 56 * + + COUNT ( * ) AS col2 +---- +-56 +1 query I rowsort label-1793 SELECT - + COUNT ( * ) + 51 AS col0 @@ -9523,8 +9679,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col2" at position 0 and "Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 AS col2, - 13 AS col2 +---- +-13 +33 query I rowsort SELECT + 3 + + 54 AS col0 @@ -9945,8 +10104,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 32 AS col0, COUNT ( * ) col0 +---- +1 +32 query I rowsort SELECT ALL - + 79 * - 78 @@ -9956,8 +10118,11 @@ SELECT ALL - + 79 * - 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col1" at position 0 and "\(\- max\(Int64\(\-3\)\)\) / min\(Int64\(53\)\) \* CASE \(\- Int64\(\-47\)\) WHEN \(\- Int64\(13\)\) THEN avg\(\(\- nullif\(Int64\(1\), nullif\(Int64\(\-69\), Int64\(37\) \+ Int64\(95\) \+ Int64\(\-77\)\)\)\)\) ELSE NULL END \* Int64\(\-92\) \- Int64\(65\) \+ Int64\(\-51\) \* Int64\(\-61\) \* Int64\(37\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +-55 +NULL query I rowsort label-1882 SELECT - 27 / + 33 + - + 73 + - + 50 * + CASE + 73 WHEN 21 THEN - + 29 ELSE NULL END * - ( - + 97 ) + + 9 - + 41 * + 52 + - COUNT ( * ) * - COUNT ( * ) * ( - 47 ) col0 @@ -10109,8 +10274,11 @@ SELECT ALL COUNT ( * ) - COUNT ( * ) + 53 + 30 / 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 2960 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-16\)\) AS col2" at position 0 and "Int64\(80\) \* \(\- Int64\(\-37\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 16 AS col2, 80 * - + ( - 37 ) AS col2 +---- +16 +2960 query II rowsort label-1911 SELECT + 25 col0, 8 * + COUNT ( * ) + + 78 AS col1 @@ -10344,8 +10512,11 @@ SELECT + + ( + SUM ( - + 29 ) ) + - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \+ Int64\(1\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(79\) \* avg\(DISTINCT Int64\(\-64\)\) \* \(\- sum\(Int64\(\-81\)\)\) \* Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL + 11 + 1 col2, - CAST ( NULL AS INTEGER ) * + 79 * ( + AVG ( DISTINCT + - 64 ) ) * + - SUM ( ALL - 81 ) * + 91 col2 +---- +12 +NULL query I rowsort label-1955 SELECT ALL - NULLIF ( 31, + + 85 * - 94 ) + - - 55 / - 76 AS col2 @@ -10360,8 +10531,11 @@ SELECT - - 31 + + ( + 49 ) / - 82 * + 23 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(90\)\) AS col0" at position 0 and "Int64\(87\) \+ \(\- Int64\(\-95\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 90 ) AS col0, 87 + - - 95 AS col0 +---- +-90 +182 query I rowsort SELECT + + 56 * - 41 col2 @@ -10621,8 +10795,11 @@ SELECT + 11 - + 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- max\(DISTINCT coalesce\(\(\- Int64\(\-57\)\), \(\- Int64\(\-33\)\), Int64\(38\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( COUNT ( * ) ) AS col1, - MAX ( DISTINCT COALESCE ( ( - - 57 ), - ( + - 33 ), 38 ) ) + + COUNT ( * ) AS col1 +---- +-1 +-56 query I rowsort SELECT ALL + 55 + ( - 58 ) @@ -11259,8 +11436,11 @@ SELECT 8 / ( - 60 ) + - 62, 58 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* Int64\(\-14\) \+ Int64\(30\) \+ Int64\(38\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-46\) \* \(\- Int64\(95\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 11 * - 14 + + 30 + 38 * - ( - + COUNT ( * ) ) * - 46 * - + 95 + - CAST ( NULL AS INTEGER ) AS col2, ( - 5 ) AS col2 +---- +-5 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -11774,8 +11954,11 @@ 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\(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\. +query II valuesort 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 +---- +-54 +38 query I rowsort label-2227 SELECT ALL - CASE 62 WHEN - COALESCE ( - - 82, - NULLIF ( + 60, - COUNT ( DISTINCT - + COALESCE ( 26, - 77 ) ) - + + 27 ) + - - 89, + 10 ) * + COUNT ( * ) * 78 THEN - 61 - 28 END @@ -11887,8 +12070,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) + + 85 AS col1, 63 * - - COUNT ( * ) * - + 92 AS col1 +---- +-5796 +84 query I rowsort label-2249 SELECT ALL MAX ( DISTINCT - 80 ) + - 5 + + 68 @@ -11930,8 +12116,11 @@ 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\(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\. +query II valuesort SELECT - 65 AS col0, COUNT ( * ) * - + COUNT ( * ) + 58 AS col0 +---- +-65 +57 query I rowsort SELECT + 31 + - 17 @@ -12048,8 +12237,11 @@ SELECT + - 24 * - 2 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col1" at position 0 and "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 62 AS col1, + 58 AS col1 +---- +-62 +58 query I rowsort label-2280 SELECT + + 49 * + CASE + 57 WHEN + 69 THEN NULL WHEN - 95 + + 23 + 50 THEN ( - 99 ) * + CAST ( NULL AS INTEGER ) END - + - 4 + - 95 col1 @@ -12316,8 +12508,11 @@ SELECT ALL - + ( - 68 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 97 AS col2, + 96 AS col2 +---- +96 +97 query II rowsort SELECT + 41 * - COALESCE ( - 98, 93 ) + - ( - 37 ) * ( - 1 ) + + - 79 + 36, - 20 * 63 col1 @@ -12820,8 +13015,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * + + 16 + - COUNT ( * ) AS col0, 68 / 99 + + 46 + - 4 - - 94 * - - 28 AS col0 +---- +-17 +2674 query I rowsort label-2427 SELECT ALL - 55 * MAX ( - 97 ) @@ -12857,8 +13055,11 @@ SELECT 0 * - 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - -345 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ \(\- \(\- sum\(Int64\(\-8\)\)\)\) \* Int64\(48\) AS col2" at position 0 and "Int64\(\-2\) \- Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 39 + - - SUM ( - 8 ) * + 48 col2, - 2 - + 90 AS col2 +---- +-345 +-92 query II rowsort label-2434 SELECT 68 AS col1, + CAST ( NULL AS INTEGER ) AS col2 @@ -13182,8 +13383,11 @@ SELECT - + COUNT ( DISTINCT + 24 ) * + - 84 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 640 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-59\)\) \+ \(\- Int64\(\-16\)\) \+ Int64\(12\) \* Int64\(56\) \+ Int64\(\-49\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( - 59 ) + - ( + - 16 ) + + 12 * + ( + 56 ) + - 49 col2, 26 AS col2 +---- +26 +640 query I rowsort label-2497 SELECT - + COUNT ( + 3 ) AS col0 @@ -13417,8 +13621,11 @@ SELECT ALL + 19 AS col1, + 70 + COUNT ( * ) # 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 "coalesce\(Int64\(\-60\), Int64\(81\) \- Int64\(19\), Int64\(75\) \+ Int64\(90\)\) AS col2" at position 0 and "Int64\(53\) / count\(Int64\(\-43\)\) / Int64\(91\) \* Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( + - 60, 81 - 19, + 75 + 90 ) AS col2, 53 / COUNT ( - 43 ) / 91 * + + 95 AS col2 +---- +-60 +0 query I rowsort SELECT ALL 51 * + 94 + + 57 + - - 1 * 79 AS col1 @@ -13629,8 +13836,11 @@ SELECT 38 - - - 33 + + - 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5265 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \* Int64\(\-65\) AS col0" at position 0 and "Int64\(\-67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 * + - 65 AS col0, - 67 AS col0 +---- +-67 +5265 query I rowsort SELECT 69 + + 23 + - - 93 * 24 @@ -13670,8 +13880,11 @@ SELECT MAX ( + 7 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col2" at position 0 and "Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 90 AS col2, ( + - 95 ) AS col2 +---- +-90 +-95 query I rowsort label-2588 SELECT MAX ( - 2 ) @@ -13743,8 +13956,11 @@ SELECT DISTINCT - 33 * + + 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(95\) \* Int64\(\-30\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col0, 95 * - 30 + - CAST ( NULL AS INTEGER ) AS col0 +---- +1 +NULL query II rowsort label-2602 SELECT + 59 AS col0, CASE + 53 WHEN + - 18 THEN 25 WHEN 15 / - 41 * - 65 - + CAST ( NULL AS INTEGER ) * + 30 - + COUNT ( * ) + + MIN ( + + 32 ) + + - 44 * 49 * + - 43 THEN - - 22 + 1 + + SUM ( - 70 ) WHEN - + COUNT ( * ) * 31 * - 90 THEN NULL END + COALESCE ( CAST ( - 71 AS INTEGER ), - + 26 + - 71 / + ( + 4 ) ) AS col2 @@ -14035,8 +14251,11 @@ SELECT 83 AS col0, - COALESCE ( + 81, 27 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 col2, COUNT ( * ) AS col2 +---- +1 +18 query I rowsort label-2658 SELECT ALL + 2 / - - 81 * - 92 - - 32 + + 58 * ( + + 12 ) @@ -14176,8 +14395,11 @@ SELECT 45 - + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "Int64\(5\) \- \(\- CAST\(NULL AS Int32\)\) \* Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 68 AS col2, 5 - - CAST ( NULL AS INTEGER ) * + 94 AS col2 +---- +68 +NULL query I rowsort label-2685 SELECT CASE + 63 WHEN + COUNT ( * ) THEN NULL WHEN CAST ( + - 39 AS INTEGER ) * - ( 13 ) / 25 + - 65 + - 99 * 7 + - 71 THEN + 8 * + + 55 * 61 + - 13 + - + 0 END - - 23 @@ -14344,8 +14566,11 @@ SELECT ALL - 11 * 25, - ( + - 86 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 88868 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-20\)\) AS col1" at position 0 and "Int64\(26\) \* Int64\(37\) \* Int64\(86\) \+ Int64\(68\) \+ \(\- Int64\(74\)\) \* nullif\(Int64\(\-82\), Int64\(\-68\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + MIN ( - 20 ) AS col1, 26 * 37 * + 86 + + 68 + - + 74 * + NULLIF ( - 82, - 68 ) AS col1 +---- +-20 +88868 query I rowsort SELECT ( - 5 ) + - 91 AS col2 @@ -15445,8 +15670,11 @@ SELECT + COALESCE ( + COUNT ( * ), + 71 + + 5, - 62 * + COUNT ( * ) ) * 84 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 105 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(47\) \+ Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 47 + 58 AS col1 +---- +1 +105 query I rowsort label-2930 SELECT - 67 - - 66 * CAST ( NULL AS INTEGER ) * 74 @@ -15806,8 +16034,11 @@ SELECT + COUNT ( * ) - - + 76 * - 6 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \- \(\- CAST\(\(\- Int64\(\-71\)\) AS Int32\)\) / Int64\(\-73\) AS col2" at position 0 and "\(\- CAST\(NULL AS Float64\)\) \+ Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + 24 - + - CAST ( - - 71 AS INTEGER ) / + - 73 AS col2, - CAST ( NULL AS FLOAT8 ) + + 67 AS col2 +---- +24 +NULL query I rowsort SELECT ALL COALESCE ( 12, + 29 * 59, - 4 + - - 7 ) AS col2 @@ -16026,8 +16257,11 @@ SELECT ALL ( - COUNT ( * ) ) * - CASE WHEN - 38 IS NOT NULL THEN ( - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(43\) AS Int32\) AS col1" at position 0 and "Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( + + 43 AS INTEGER ) AS col1, - 12 AS col1 +---- +-12 +43 query I rowsort SELECT - 51 + - + 8 + - 63 AS col2 @@ -16673,8 +16907,11 @@ SELECT SUM ( CAST ( - 22 AS INTEGER ) ) + - - 22 + 56 - + 53 * + - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 26 AS col1, 83 AS col1 +---- +26 +83 query I rowsort SELECT + 95 + 78 @@ -16689,8 +16926,11 @@ SELECT 49 + 88 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29376 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \* Int64\(24\) \* Int64\(34\) AS col1" at position 0 and "Int64\(\-53\) / Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 * 24 * ( + + 34 ) AS col1, - 53 / 81 AS col1 +---- +0 +29376 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -16876,8 +17116,11 @@ SELECT + - ( + 65 ) - + - SUM ( - 84 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 816 # Datafusion - Expected - -4249 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(24\) AS col2" at position 0 and "coalesce\(Int64\(75\), Int64\(\-14\)\) \+ Int64\(76\) \+ Int64\(88\) \* \(\- Int64\(50\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 34 * 24 col2, COALESCE ( + 75, - 14 ) + 76 + + 88 * - ( + 50 ) / COUNT ( * ) AS col2 +---- +-4249 +816 query I rowsort label-3205 SELECT DISTINCT COUNT ( * ) + + 61 * 16 / CASE - ( - 68 ) WHEN 31 * - 71 * + 43 THEN + 47 * - 19 + 80 + 81 * 38 END @@ -16943,8 +17186,11 @@ SELECT - 41 / - 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 4 AS col1, 21 AS col1 +---- +21 +4 query I rowsort label-3218 SELECT - COUNT ( * ) + - 53 AS col0 @@ -17057,8 +17303,11 @@ SELECT + + COUNT ( - 73 ) + + 27 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-89\)\) AS col2" at position 0 and "coalesce\(Int64\(\-34\), \(\- max\(Int64\(54\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 89 AS col2, COALESCE ( - 34, - + MAX ( ALL + 54 ) ) AS col2 +---- +-34 +89 query II rowsort label-3239 SELECT ALL 29, 90 / + CAST ( NULL AS INTEGER ) AS col2 @@ -17690,8 +17939,12 @@ 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\(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\. +query III valuesort 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 +---- +-15 +-81 +4608 query I rowsort SELECT DISTINCT + 45 + + + 55 + + 1 + + 96 + - 1 AS col2 @@ -17890,8 +18143,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 57 col0, 65 AS col0 +---- +57 +65 query I rowsort label-3394 SELECT ALL 88 - NULLIF ( + - CAST ( NULL AS INTEGER ), 49 ) @@ -18279,8 +18535,11 @@ SELECT ALL - 96 * + 48 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col2" at position 0 and "Int64\(22\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 AS col2, + 22 * + COUNT ( * ) AS col2 +---- +22 +52 query I rowsort SELECT + 34 * - COALESCE ( + 11, + 61 ) AS col0 @@ -18310,8 +18569,11 @@ SELECT ALL + 42 + - 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "Int64\(\-63\) \+ Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 31 AS col2, - 63 + + 7 col2 +---- +-56 +31 query I rowsort label-3474 SELECT DISTINCT + 37 + + COUNT ( * ) @@ -18356,8 +18618,11 @@ SELECT + COUNT ( * ) + - - 73 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 111 # Datafusion - Expected - 5310 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \+ Int64\(28\) AS col2" at position 0 and "Int64\(3\) \* Int64\(\-74\) \+ nullif\(\(\- \(\- CASE Int64\(11\) WHEN CASE WHEN Int64\(87\) != Int64\(92\) \* Int64\(43\) AND NOT Int64\(\-72\) \* Int64\(82\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-84\) IS NULL THEN Int64\(90\) WHEN NOT NULL > Int64\(\-29\) THEN Int64\(68\) ELSE \(\- coalesce\(nullif\(Int64\(7\), Int64\(97\)\), \(\- CASE Int64\(93\) WHEN Int64\(3\) \* Int64\(\-65\) \+ Int64\(\-86\) THEN Int64\(71\) / Int64\(\-95\) WHEN Int64\(1\) / Int64\(48\) THEN NULL ELSE Int64\(34\) / CAST\(Int64\(98\) / Int64\(45\) AS Int32\) END\)\)\) END THEN NULL WHEN min\(Int64\(77\)\) THEN \(\- max\(Int64\(11\)\)\) \* Int64\(74\) \+ Int64\(32\) ELSE Int64\(\-73\) END\)\), Int64\(\-14\) \+ Int64\(51\)\) \+ Int64\(95\) \* Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +111 +5310 query I rowsort SELECT ALL + 52 * - - 44 col0 @@ -18616,8 +18881,12 @@ SELECT MIN ( - - 36 ) + - - MIN ( 62 ) # Datafusion - Expected - 3010 # Datafusion - Expected - 30 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* Int64\(43\) AS col1" at position 0 and "Int64\(50\) \+ Int64\(\-21\) \+ Int64\(\-80\) / \(\- sum\(Int64\(46\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 70 * + 43 AS col1, 50 + - 21 + ( - 80 ) / - SUM ( + 46 ) AS col1, - - 62 AS col0 +---- +30 +3010 +62 query I rowsort SELECT 5 + 52 AS col2 @@ -18845,8 +19114,11 @@ 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\(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\. +query II valuesort SELECT 70 * - - COUNT ( * ) + - 38 AS col0, 99 + + 94 AS col0 +---- +193 +32 query I rowsort label-3575 SELECT + COUNT ( ALL + ( + + 24 ) ) + - + 61 AS col2 @@ -18856,8 +19128,11 @@ SELECT + COUNT ( ALL + ( + + 24 ) ) + - + 61 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(50\) \+ Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, 50 + 51 col0 +---- +1 +101 query I rowsort label-3577 SELECT ALL - 73 * NULLIF ( + 93, - CAST ( NULL AS INTEGER ) + - 90 ) * 13 * COUNT ( * ) + + ( 93 ) AS col0 @@ -18949,8 +19224,11 @@ SELECT ALL + ( + + 57 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* Int64\(\-21\) \* Int64\(\-36\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 45 * - 21 * + - 36 + - - CAST ( NULL AS INTEGER ) col2, 25 AS col2 +---- +25 +NULL query II rowsort label-3595 SELECT - 5 + - - 39 + + MIN ( 34 ) AS col0, 48 / + 40 + 8 AS col2 @@ -19012,8 +19290,11 @@ SELECT ALL - ( - - 64 ) * + 50 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\(83\)\) \+ \(\- Int64\(\-71\)\) AS col1" at position 0 and "Int64\(\-52\) \* \(\- \(\- Int64\(0\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 83 + - - 71 AS col1, - 52 * - - ( 0 ) col1 +---- +-12 +0 query I rowsort label-3607 SELECT - - 13 * 35 + - COUNT ( * ) * + COUNT ( * ) * - 46 / - - 93 * - - 16 @@ -19362,8 +19643,11 @@ SELECT ALL - CAST ( + 42 AS INTEGER ) * 13 - + 71 * - 84 + + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-57\)\) AS col1" at position 0 and "\(\- Int64\(\-70\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 57 AS col1, - ( - 70 ) AS col1 +---- +57 +70 query I rowsort label-3674 SELECT ALL - COUNT ( * ) + 96 * + 5 AS col1 @@ -19509,8 +19793,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-51\)\) \+ Int64\(\-3\) AS col1" at position 0 and "Int64\(10\) / \(\- Int64\(\-78\)\) \+ Int64\(78\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 51 + + - 3 AS col1, 10 / - - 78 + 78 + + COUNT ( * ) + COUNT ( * ) AS col1 +---- +48 +80 query II rowsort label-3702 SELECT + ( 37 ) AS col2, COUNT ( * ) @@ -19826,8 +20113,11 @@ SELECT + CAST ( + ( + 97 ) AS INTEGER ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69649 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- Int64\(23\)\)\)\) / Int64\(43\) \+ Int64\(\-22\) \+ Int64\(61\) \* Int64\(30\) \* \(\- Int64\(\-38\)\) \- \(\- count\(Int64\(\-80\)\)\) \+ \(\- \(\- Int64\(73\)\)\) \+ Int64\(57\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - MIN ( - + 23 ) / + 43 + - 22 + + 61 * + 30 * - - 38 - - + COUNT ( + - 80 ) + - - ( 73 ) + + + 57 AS col2, + 54 AS col2 +---- +54 +69649 query I rowsort label-3764 SELECT - CASE - - 38 WHEN + 19 THEN NULL WHEN 72 THEN - 47 WHEN - 47 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END @@ -19987,8 +20277,11 @@ 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\(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\. +query II valuesort 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 +---- +81 +NULL query I rowsort label-3796 SELECT 3 * - + 98 + - COUNT ( * ) @@ -20028,8 +20321,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col2, 11 AS col2 +---- +1 +11 query I rowsort SELECT + + NULLIF ( - 58, 88 * + 71 ) + 16 AS col0 @@ -20131,8 +20427,11 @@ SELECT ALL + 97 * + ( - 92 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col2" at position 0 and "\(\- coalesce\(Int64\(\-26\), Int64\(\-63\)\)\) \+ Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 AS col2, - COALESCE ( + - 26, - 63 ) + 48 AS col2 +---- +74 +84 query I rowsort label-3823 SELECT DISTINCT SUM ( - 20 ) * - 18 AS col2 @@ -20550,8 +20849,11 @@ SELECT ALL - COUNT ( DISTINCT + 20 ), 23 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- coalesce\(Int64\(\-85\), \(\- CASE Int64\(32\) WHEN count\(Int64\(\-90\)\) \* \(\- Int64\(\-18\)\) \+ CAST\(NULL AS Float64\) \* Int64\(83\) THEN count\(Int64\(1\)\) AS count\(\*\) ELSE Int64\(\-97\) END\)\)\)\) AS col1" at position 0 and "CAST\(\(\- count\(DISTINCT Int64\(43\)\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-1 +-85 query II rowsort label-3903 SELECT DISTINCT 16 * - 88 AS col2, + 73 / - 91 @@ -21218,8 +21520,11 @@ SELECT ALL - 26 * - - MAX ( ALL + + 12 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7254 # Datafusion - Expected - -4674 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \- \(\- CASE WHEN NOT NULL < Int64\(71\) THEN Int64\(88\) ELSE Int64\(\-83\) \* Int64\(88\) END\) \- Int64\(8\) AS col0" at position 0 and "Int64\(71\) \* Int64\(\-67\) \- Int64\(\-83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 - - CASE WHEN NOT NULL < 71 THEN 88 ELSE - 83 * + ( + 88 ) END - 8 col0, + 71 * - 67 - - 83 AS col0 +---- +-4674 +-7254 query I rowsort SELECT ALL + 54 + - + 17 @@ -21686,8 +21991,12 @@ SELECT DISTINCT - - 66, 37 AS col2 # Datafusion - Expected - 21 # Datafusion - Expected - -12 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col2" at position 0 and "Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 21 col2, - 12 AS col2, + 5 AS col0 +---- +-12 +21 +5 query I rowsort label-4117 SELECT NULLIF ( + 64, ( + SUM ( - - 27 ) ) ) * - SUM ( DISTINCT - - 66 ) + + 47 @@ -21986,8 +22295,11 @@ SELECT ALL - COALESCE ( - + 57, + 54 / - 16 ) + CAST ( + NULLIF ( + - ( - 4 ), - # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \- Int64\(\-61\) AS col2" at position 0 and "Int64\(65\) / Int64\(\-90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 9 - + - 61 AS col2, 65 / - 90 AS col2 +---- +0 +52 query I rowsort label-4174 SELECT + + COUNT ( * ) - + - 48 @@ -21997,8 +22309,11 @@ SELECT + + COUNT ( * ) - + - 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4047 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* Int64\(57\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 71 * + + 57 AS col1, 87 AS col1 +---- +4047 +87 query I rowsort SELECT DISTINCT 25 * 86 @@ -22393,8 +22708,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 13322 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col1" at position 0 and "Int64\(12\) \* Int64\(34\) \* Int64\(32\) \+ coalesce\(Int64\(8\), Int64\(43\), Int64\(\-88\) \- Int64\(\-76\)\) \* Int64\(\-29\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- CASE Int64\(\-42\) WHEN \(\- avg\(Int64\(52\)\)\) \+ Int64\(71\) THEN CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(98\) THEN Int64\(98\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN Int64\(\-64\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-77\) END ELSE coalesce\(count\(Int64\(1\)\) AS count\(\*\), count\(Int64\(61\)\) \* Int64\(\-41\) \+ Int64\(\-47\) \* Int64\(\-66\), Int64\(85\) \+ Int64\(14\)\) \+ Int64\(\-35\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-44 +13322 query I rowsort label-4252 SELECT DISTINCT ( + COUNT ( * ) ) + + CASE 60 WHEN 43 THEN - 74 END * 6 @@ -22424,8 +22742,11 @@ SELECT 21 * - - ( COUNT ( 67 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -3196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-94\) \* \(\- Int64\(\-34\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, - 94 * - - 34 AS col2 +---- +-3196 +1 query I rowsort label-4258 SELECT 62 - - + 73 / + - 77 + + - 13 @@ -22919,8 +23240,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1566 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(27\) \* Int64\(\-58\) AS col2" at position 0 and "CAST\(Int64\(57\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) * 27 * - 58 AS col2, CAST ( 57 AS INTEGER ) AS col2 +---- +-1566 +57 query I rowsort label-4353 SELECT COUNT ( * ) + 29 + - + 8 @@ -23152,8 +23476,11 @@ 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\(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\. +query II valuesort 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 +---- +-1064150 +20 query I rowsort label-4397 SELECT DISTINCT + COUNT ( DISTINCT - ( ( 27 ) ) ) AS col1 @@ -23706,8 +24033,11 @@ SELECT DISTINCT - 45 + NULLIF ( + 18, 16 ) * COUNT ( * ) # 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 "Int64\(79\) / Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 AS col1, 79 / + 62 AS col1 +---- +1 +21 query I rowsort SELECT - 68 + - 61 @@ -23807,8 +24137,11 @@ SELECT + 86 + + 68 + - - COUNT ( * ) + + 92 * - ( 4 / + 1 + - 41 * 10 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 83 AS col0, 64 AS col0 +---- +-83 +64 query I rowsort SELECT ALL + ( 38 ) * + 84 AS col1 @@ -23928,8 +24261,11 @@ 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\(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\. +query II valuesort SELECT ALL ( + 70 ) AS col0, CASE 57 WHEN - COUNT ( * ) THEN NULL ELSE - 65 END AS col0 +---- +-65 +70 query I rowsort SELECT DISTINCT NULLIF ( - 69, - 99 + 62 + + 28 * 67 ) @@ -23980,8 +24316,11 @@ SELECT + COUNT ( * ) + - COALESCE ( MIN ( ALL - 28 ), - 26 + + CAST ( - 40 + COU # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-27\)\) AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - - 27 ) col2, + 46 AS col2 +---- +27 +46 query I rowsort SELECT + - 96 * - ( 0 ) @@ -24342,8 +24681,11 @@ SELECT ALL + - 6 + - 60 * - - 91 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 89 col2, ( - 16 ) AS col2 +---- +-16 +89 query I rowsort SELECT ALL 49 * + ( + 71 ) @@ -24389,8 +24731,12 @@ SELECT DISTINCT 38 - ( + 46 ) AS col1 # Datafusion - Expected - -77 # Datafusion - Expected - 11 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-15\)\) \+ \(\- Int64\(\-10\)\) AS col1" at position 1 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT MAX ( ALL - + 77 ) AS col2, + COUNT ( - 15 ) + - - 10 AS col1, - CAST ( NULL AS INTEGER ) AS col1 +---- +-77 +11 +NULL query I rowsort label-4640 SELECT ALL - COUNT ( * ) - 18 @@ -24475,8 +24821,11 @@ SELECT + ( COUNT ( * ) ) * ( 81 ) + ( + + 87 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3315 # Datafusion - Expected - 79712 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* Int64\(39\) AS col0" at position 0 and "Int64\(\-22\) \+ Int64\(4\) \+ Int64\(67\) \* Int64\(\-70\) \* Int64\(\-17\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 85 * 39 AS col0, ( + - 22 ) + + 4 + + + 67 * - 70 * - 17 / COUNT ( * ) AS col0 +---- +3315 +79712 query I rowsort label-4656 SELECT NULLIF ( 14, - + CAST ( - COALESCE ( CASE - SUM ( ALL 1 ) WHEN - ( + COUNT ( * ) ) - 11 THEN 75 * - 99 ELSE - 16 END, 7 + + SUM ( 15 ), - ( 4 ) ) AS INTEGER ) ) * MIN ( 39 * + 44 ) + 5 AS col1 @@ -24665,8 +25014,11 @@ SELECT DISTINCT + NULLIF ( + CAST ( 7 AS INTEGER ), - 38 / + 6 + 69 / + 51 * + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-38\)\) \+ Int64\(61\) \- CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 38 + 61 - + CAST ( NULL AS INTEGER ) AS col2, - 46 AS col2 +---- +-46 +NULL query II rowsort SELECT + + 36 AS col1, + 63 AS col2 @@ -24692,8 +25044,11 @@ SELECT - 84 * - NULLIF ( 10, + COUNT ( * ) * COUNT ( * ) + + 42 ) # 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 col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 24 AS col1, + 81 AS col1 +---- +-24 +81 query I rowsort SELECT DISTINCT + + 80 * - + 74 AS col0 @@ -24918,8 +25273,11 @@ SELECT ALL + - 48 * ( + 94 ) * - + COUNT ( - + 79 ) + - - 66 - - 1 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + 71 ) * - CAST ( NULL AS INTEGER ) col2, COUNT ( * ) AS col2 +---- +1 +NULL query I rowsort label-4741 SELECT + 43 + + - COUNT ( * ) AS col2 @@ -25042,8 +25400,11 @@ SELECT + 63 + + 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 162 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(69\) \+ Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col1, 69 + 93 AS col1 +---- +1 +162 query II rowsort SELECT - 82, + 1 - 76 AS col0 @@ -25064,8 +25425,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COALESCE ( - + MIN ( - 42 ), - + 32, + 99, + - COUNT ( * ) ) + ( - + COUNT ( * ) ) * + 25 AS col0, 72 AS col0 +---- +17 +72 query I rowsort label-4769 SELECT - 33 * - COUNT ( * ) @@ -25076,8 +25440,12 @@ SELECT - 33 * - COUNT ( * ) # Datafusion - Expected - -1 # Datafusion - Expected - 47 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col1" at position 1 and "Int64\(\-5\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - COUNT ( * ), 47 AS col1, - 5 AS col1 +---- +-1 +-5 +47 query I rowsort label-4771 SELECT - 50 / + 13 @@ -25352,8 +25720,11 @@ SELECT DISTINCT - - 71 + + 49 col0, + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(64\), \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( 64, - CAST ( NULL AS INTEGER ) ) AS col0, + 76 AS col0 +---- +64 +76 query I rowsort SELECT - 94 * 4 AS col1 @@ -25731,8 +26102,12 @@ NULL # Datafusion - Expected - 61 # Datafusion - Expected - 660 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col2" at position 0 and "Int64\(\-22\) \* \(\- Int64\(30\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 61 AS col2, - 22 * - + 30 AS col2, + + COALESCE ( + CAST ( NULL AS INTEGER ), - 75, - ( - 54 ) ) +---- +-75 +61 +660 query I rowsort label-4895 SELECT ALL 10 / 77 AS col2 @@ -25792,8 +26167,11 @@ SELECT + ( + ( 29 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 13691 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- Int64\(\-79\)\)\) \- \(\- Int64\(19\)\) \* nullif\(Int64\(38\), Int64\(22\)\) \* Int64\(19\) \+ \(\- \(\- min\(Int64\(51\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) + - + ( - - 79 ) - - + 19 * + NULLIF ( 38, 22 ) * + 19 + - - MIN ( 51 ) col0 +---- +13691 +NULL query II rowsort label-4907 SELECT - COUNT ( * ) * + + 88 / - 27, 92 col2 @@ -25830,8 +26208,11 @@ SELECT - 14 * - + NULLIF ( + 81, + 89 * + - 78 + - 43 + - + 77 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1454 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* Int64\(\-39\) \+ Int64\(20\) \+ nullif\(\(\- Int64\(31\)\), Int64\(23\)\) AS col2" at position 0 and "Int64\(13\) \- Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 37 * - 39 + 20 + NULLIF ( - + 31, 23 ) AS col2, + 13 - + + 0 AS col2 +---- +-1454 +13 query I rowsort label-4914 SELECT ALL CAST ( + ( + - COUNT ( * ) ) AS INTEGER ) @@ -26934,8 +27315,11 @@ SELECT ALL - 30 * ( + 30 ) + + + 42 AS col1, + 96 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\(63\) AS col0" at position 0 and "count\(Int64\(55\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 63 AS col0, COUNT ( + 55 ) col0 +---- +1 +63 query I rowsort label-5122 SELECT ALL - - COUNT ( * ) * + SUM ( - + 42 ) + + - 12 - + ( + 79 ) * - - 32 * - MAX ( 25 ) @@ -27243,8 +27627,11 @@ SELECT COUNT ( * ) * + COALESCE ( - - COALESCE ( 78, + 65, + - 65 ), - CAST ( NU # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -5918226 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(Int64\(\-22\)\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-6\) \- Int64\(28\) \* Int64\(99\) \* Int64\(35\) \* Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT AVG ( + ( - 22 ) ) + CAST ( NULL AS INTEGER ) AS col0, - 6 - 28 * 99 * + 35 * 61 AS col0 +---- +-5918226 +NULL query I rowsort SELECT DISTINCT + - 7 - + 57 @@ -27947,8 +28334,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort 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 +---- +-14 +50 +5727 query I rowsort label-5313 SELECT ALL SUM ( - + 69 ) + 15 @@ -28001,8 +28392,11 @@ SELECT ALL - 80 col2, 15 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 AS col2, 61 AS col2 +---- +61 +72 query I rowsort SELECT ( + 44 ) * + - 78 AS col2 @@ -28073,8 +28467,11 @@ SELECT ALL 89 + - + 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT - 71 AS col0, 83 col0 +---- +-71 +83 query I rowsort label-5337 SELECT + 72 * COUNT ( * ) AS col2 @@ -28255,8 +28652,11 @@ 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\(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\. +query II valuesort 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 +---- +91 +NULL query I rowsort label-5371 SELECT - + MIN ( ALL - 5 ) + + 34 @@ -28498,8 +28898,12 @@ 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\(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\. +query III valuesort 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 +---- +-16 +84 +NULL query II rowsort SELECT - 13, + ( + - 70 ) AS col1 @@ -28570,8 +28974,11 @@ SELECT DISTINCT - 88 + + - 40 + - + 31 * + 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 2574 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col0" at position 0 and "Int64\(99\) \* min\(\(\- Int64\(\-26\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 59 AS col0, + 99 * + MIN ( ALL - - 26 ) AS col0 +---- +-59 +2574 query I rowsort label-5432 SELECT 18 * + ( MIN ( + 29 ) ) AS col2 @@ -28602,8 +29009,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(\(\- Int64\(29\)\)\)\)\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - + COUNT ( ALL + - ( 29 ) ) ) col0, 96 AS col0 +---- +1 +96 query I rowsort label-5438 SELECT + 66 * 40 / - NULLIF ( - 22, - - CASE 96 WHEN + 4 THEN 7 WHEN 47 * - 49 * + - ( + + CASE - 19 WHEN - COUNT ( * ) THEN + 80 END ) THEN + 15 * - 23 WHEN 97 THEN 97 END + 8 ) @@ -28796,8 +29206,11 @@ SELECT ALL - + 82 * ( + 33 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 52 AS col2, 6 AS col2 +---- +52 +6 query I rowsort label-5475 SELECT ALL COALESCE ( + 69, - 20 - - 32 - 59 + COUNT ( * ) * - CASE + - 98 WHEN - 37 + - AVG ( DISTINCT - 42 ) * + 8 THEN 40 + - CAST ( + COALESCE ( 71, CASE + 35 WHEN + COUNT ( * ) THEN - 83 * + + 90 WHEN - 47 THEN NULL ELSE NULL END / 21 - - 11, + 62 ) AS INTEGER ) ELSE + - 63 * + + CAST ( - - 36 AS INTEGER ) END ) * + + 12 * - + 38 + + CAST ( - 5 AS INTEGER ) AS col2 @@ -28903,8 +29316,11 @@ SELECT + - 6 + + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 AS col0, COUNT ( * ) AS col0 +---- +1 +53 query I rowsort SELECT - + 21 * 6 + + 76 * + - 80 + + 3 * + 54 AS col1 @@ -28914,8 +29330,11 @@ SELECT - + 21 * 6 + + 76 * + - 80 + + 3 * + 54 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - -3795 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col2" at position 0 and "Int64\(\-55\) \* Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 27 AS col2, - 55 * + + 69 AS col2 +---- +-27 +-3795 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -28928,14 +29347,20 @@ NULL # 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 "Int64\(75\) / Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 AS col2, 75 / + 45 AS col2 +---- +1 +17 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \+ count\(DISTINCT Int64\(81\)\) AS col1" at position 0 and "Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 65 + + COUNT ( DISTINCT 81 ) AS col1, - 94 AS col1 +---- +-64 +-94 query I rowsort label-5501 SELECT ALL + 63 * - COALESCE ( - COALESCE ( COUNT ( * ), 25 ), 31 ) + 87 AS col2 @@ -29247,8 +29672,11 @@ 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\(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\. +query II valuesort 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 +---- +49 +72 query I rowsort label-5559 SELECT ALL - + 50 + - - COUNT ( + 82 ) + + 56 @@ -29288,8 +29716,11 @@ SELECT ALL + 85 + - 46 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2131 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \+ Int64\(31\) \* Int64\(69\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 8 + + 31 * 69 AS col1, COUNT ( * ) AS col1 +---- +1 +2131 query I rowsort label-5567 SELECT 36 * + NULLIF ( + + 29, - SUM ( - - 66 ) + 34 ) AS col2 @@ -30174,8 +30605,11 @@ SELECT + 10 * - - 79 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 84 AS col0, - CAST ( NULL AS INTEGER ) AS col0 +---- +-84 +NULL query I rowsort label-5734 SELECT ALL 94 + + - COUNT ( DISTINCT ( - 67 ) ) * 23 + - COUNT ( + 9 ) col2 @@ -30415,8 +30849,11 @@ SELECT 29 * - + 55 * 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(31\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) + + 31 AS col2, + 34 col2 +---- +34 +NULL query I rowsort SELECT DISTINCT - - 28 col1 @@ -30522,8 +30959,12 @@ NULL # Datafusion - Expected - -95 # Datafusion - Expected - -149 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col1" at position 0 and "Int64\(70\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 95 AS col1, - ( + 87 ) - + ( - - COALESCE ( + 62, + SUM ( DISTINCT ( + - 64 ) ) + - 15 + 88 / - 99 + - 61 * 45 ) ), 70 AS col1 +---- +-149 +-95 +70 query II rowsort SELECT 54 col2, 96 * 73 @@ -30624,8 +31065,11 @@ SELECT 77 * 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(DISTINCT Int64\(65\)\)\) \+ Int64\(\-53\) AS col0" at position 0 and "CASE Int64\(78\) WHEN \(\- Int64\(48\)\) \- \(\- Int64\(76\)\) / Int64\(48\) THEN NULL ELSE Int64\(19\) END \- Int64\(\-12\) \- Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( DISTINCT + 65 ) + + - 53 AS col0, + CASE + + 78 WHEN - + 48 - - + 76 / + ( + 48 ) THEN NULL ELSE + 19 END - - 12 - + 75 AS col0 +---- +-44 +-54 query I rowsort SELECT + CASE + - 35 WHEN + 54 THEN - 31 ELSE NULL END @@ -30961,8 +31405,11 @@ SELECT DISTINCT - 49 + ( 54 ) + + 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4216 # Datafusion - Expected - 2520 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \* \(\- Int64\(\-68\)\) AS col0" at position 0 and "Int64\(42\) \* Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 62 * + ( - - 68 ) AS col0, 42 * 60 AS col0 +---- +-4216 +2520 query I rowsort SELECT + COALESCE ( - 17, 56, + + 50 * 68 * + 77 * + 55 ) @@ -31060,8 +31507,11 @@ 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\(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\. +query II valuesort 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 +---- +7 +NULL query I rowsort label-5900 SELECT COUNT ( DISTINCT 69 ) + + MAX ( DISTINCT 81 ) @@ -31386,8 +31836,11 @@ SELECT + 59 - 18 + - COUNT ( DISTINCT - + 77 ) + - - NULLIF ( 35, + COUNT ( 66 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 4919 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(91\) \* Int64\(53\) \+ Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) col1, 91 * + ( + + 53 ) + 96 AS col1 +---- +1 +4919 query I rowsort label-5963 SELECT + + NULLIF ( 99, + COUNT ( * ) ) AS col1 @@ -31491,8 +31944,11 @@ SELECT - 14 + - 86 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 159768 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col0" at position 0 and "min\(DISTINCT Int64\(68\)\) \* Int64\(45\) \* Int64\(52\) \+ Int64\(72\) \* Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 38 ) AS col0, + MIN ( DISTINCT + 68 ) * 45 * 52 + 72 * 9 AS col0 +---- +-38 +159768 query I rowsort label-5983 SELECT + CAST ( + 72 AS INTEGER ) AS col0 @@ -31609,8 +32065,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 57024 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(77\) AS Int32\) AS col0" at position 0 and "Int64\(64\) \* CASE Int64\(\-91\) WHEN Int64\(\-47\) \* Int64\(58\) THEN NULL ELSE Int64\(\-27\) \* Int64\(\-33\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( 77 AS INTEGER ) AS col0, 64 * CASE - 91 WHEN - 47 * + 58 THEN NULL ELSE - 27 * - 33 END AS col0 +---- +57024 +77 query I rowsort label-6006 SELECT MIN ( DISTINCT - + 82 ) + - - 87 + CAST ( NULL AS INTEGER ) AS col2 @@ -32243,8 +32702,11 @@ SELECT DISTINCT - + ( 86 ) + - 72 + - 72 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CASE Int64\(94\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-30\) THEN min\(Int64\(5\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, + CASE ( + 94 ) WHEN + COUNT ( * ) + - 30 THEN + MIN ( 5 ) WHEN COUNT ( * ) THEN NULL END AS col1 +---- +1 +NULL query I rowsort label-6130 SELECT + COUNT ( ALL 30 ) @@ -33587,8 +34049,11 @@ SELECT 63, + 4 / - 37 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1290 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* Int64\(\-30\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 43 * - 30 AS col2, 97 AS col2 +---- +-1290 +97 query I rowsort SELECT ALL 2 * + 32 AS col2 @@ -33633,8 +34098,11 @@ SELECT ( - 38 ) + - 75 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(70\) WHEN CAST\(NULL AS Int32\) \* Int64\(\-15\) THEN \(\- Int64\(52\)\) END \* Int64\(0\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CASE + + 70 WHEN + CAST ( NULL AS INTEGER ) * + - 15 THEN - + 52 END * - 0 AS col0, 65 AS col0 +---- +65 +NULL query II rowsort SELECT + 76 AS col0, + 87 - + 96 @@ -33790,8 +34258,11 @@ SELECT 1 * - + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-99\), Int64\(92\)\) AS col1" at position 0 and "Int64\(\-59\) \+ Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( - 99, + + 92 ) AS col1, - 59 + 36 AS col1 +---- +-23 +-99 query I rowsort label-6422 SELECT 46 / 39 @@ -34840,8 +35311,11 @@ SELECT - + 37 + + + ( COALESCE ( 26, - - 18 ) ), 64 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(86\) \+ Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) + COUNT ( * ) AS col2, + 86 + + 96 AS col2 +---- +0 +182 query I rowsort SELECT DISTINCT - + 96 + - - 37 @@ -35698,8 +36172,11 @@ SELECT ( 25 ) AS col1, + 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 832 # Datafusion - Expected - 880 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) \+ Int64\(77\) \* Int64\(12\) AS col2" at position 0 and "Int64\(91\) / Int64\(9\) \* Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 92 + 77 * + 12 AS col2, 91 / 9 * + 88 AS col2 +---- +832 +880 query I rowsort SELECT ALL - - 79 + + 40 - - 40 - - 34 * 4 @@ -36304,8 +36781,11 @@ SELECT - 43 + + + 31 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(5\) \- Int64\(\-51\) \+ \(\- Int64\(28\)\) \* CAST\(NULL AS Int32\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 37 AS col1, + COUNT ( * ) * 5 - - 51 + ( - + 28 ) * + CAST ( NULL AS INTEGER ) / COUNT ( * ) + + 87 AS col1 +---- +-37 +NULL query II rowsort label-6894 SELECT - - 12 * + COUNT ( * ) - - - 75 * - 30 - + - 59 + + 88 AS col0, 82 * - 21 @@ -36486,8 +36966,11 @@ SELECT - COUNT ( + 61 ) * - 67 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) / Int64\(\-94\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 8 / + - 94 AS col2, COUNT ( * ) AS col2 +---- +0 +1 query I rowsort label-6929 SELECT + CASE CAST ( + + COUNT ( * ) AS INTEGER ) WHEN + 12 * - + 26 + + 87 + + 39 + - 44 THEN - 99 - + ( + + 32 ) ELSE NULL END AS col1 @@ -37785,8 +38268,11 @@ SELECT ALL + 27 * - - 5 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - 171 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \+ Int64\(86\) / Int64\(89\) / min\(Int64\(2\)\) AS col1" at position 0 and "coalesce\(Int64\(73\), Int64\(43\)\) \+ Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 36 + + 86 / 89 / + MIN ( + 2 ) col1, COALESCE ( + + 73, + 43 ) + + 98 AS col1 +---- +-36 +171 query II rowsort label-7179 SELECT DISTINCT + COUNT ( * ) + + 47 - + 86, + 6 AS col1 @@ -37802,8 +38288,11 @@ 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\(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\. +query II valuesort SELECT - ( 84 ) + - 80 + - + CASE + + 61 WHEN - COUNT ( * ) THEN - 52 + + 64 / 15 END / - 45 col1, 92 AS col1 +---- +92 +NULL query I rowsort SELECT ALL CASE WHEN NOT NULL > 75 THEN NULL ELSE + - 4 END AS col1 @@ -38029,8 +38518,11 @@ SELECT ALL COUNT ( - 90 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, + ( 4 ) AS col0 +---- +1 +4 query I rowsort SELECT - 17 + + 72 AS col2 @@ -38835,8 +39327,11 @@ SELECT 81 / + COUNT ( * ) 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 col2" at position 0 and "Int64\(\-1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 23 AS col2, - 1 col2 +---- +-1 +-23 query I rowsort label-7380 SELECT ALL MIN ( ALL - 81 ) + + ( - + 60 ) AS col0 @@ -38867,8 +39362,11 @@ SELECT ALL 35 + + 0 + - + 49 * - - COUNT ( * ) + + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 4 AS col0, COUNT ( * ) AS col0 +---- +1 +4 query I rowsort label-7386 SELECT ALL 87 + + + COUNT ( DISTINCT + 86 ) @@ -38933,8 +39431,11 @@ SELECT ALL - COALESCE ( 1, - - CAST ( NULL AS INTEGER ) - + CASE + COUNT ( * ) W # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col0" at position 0 and "Int64\(50\) \+ Int64\(\-77\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 15 AS col0, + 50 + - 77 * COUNT ( * ) AS col0 +---- +-15 +-27 query II rowsort SELECT 8 AS col0, 94 @@ -39082,8 +39583,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- max\(DISTINCT Int64\(3\)\)\) \+ Int64\(\-4\) \* Int64\(95\) \- Int64\(\-18\) \* Int64\(\-89\) \* Int64\(\-27\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) * - MAX ( DISTINCT + 3 ) + - 4 * + + 95 - - 18 * - 89 * + - 27 AS col2, 85 AS col2 +---- +85 +NULL query I rowsort SELECT + 99 * 7 * + + 19 AS col2 @@ -39219,8 +39723,11 @@ 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\(1\)\) AS count\(\*\)\)\)\) \+ Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 23 col2, - COALESCE ( + 6, - + COUNT ( * ) ) + 77 AS col2 +---- +-23 +71 query I rowsort SELECT - ( 63 ) + - ( - 10 ) @@ -39240,8 +39747,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 24 + + 87 * - 26 AS col2, + 48 + COALESCE ( - - COUNT ( * ), 72, + 88 + - 71 ) - + 14 + 41 * + 37 * + 9 AS col2 +---- +-2238 +13688 query I rowsort SELECT ALL - 20 + 4 col1 @@ -39345,8 +39855,12 @@ SELECT - 35 / COUNT ( ALL - - 35 ) AS col2 # Datafusion - Expected - 72 # Datafusion - Expected - 850 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(52\), Int64\(60\)\) \* Int64\(12\) \+ Int64\(50\) \- Int64\(\-87\) \+ Int64\(89\) AS col1" at position 1 and "Int64\(\-2\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + - 72 * + + CAST ( - COUNT ( * ) AS INTEGER ), NULLIF ( + 52, + 60 ) * 12 + 50 - - 87 + ( + 89 ) AS col1, - 2 AS col1 +---- +-2 +72 +850 query I rowsort label-7477 SELECT ALL 92 / - COUNT ( * ) @@ -39484,8 +39998,11 @@ SELECT MIN ( ALL - 34 ) - 41 + - - 92 * + ( - 20 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \+ Int64\(\-41\) \+ Int64\(\-97\) \+ \(\- \(\- 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 II valuesort SELECT ALL 72 + - 41 + - 97 + + - ( - - 14 ) AS col0, - 61 AS col0 +---- +-61 +-80 query I rowsort SELECT ALL 30 + - 8 @@ -39628,8 +40145,11 @@ SELECT + 57 + - - COUNT ( * ) * - + CAST ( - 31 AS INTEGER ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 0 and "nullif\(Int64\(\-9\), Int64\(62\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 58 AS col1, NULLIF ( - 9, 62 ) AS col1 +---- +-9 +58 query I rowsort label-7531 SELECT ALL COUNT ( * ) * - + 90 AS col0 @@ -40103,8 +40623,11 @@ SELECT + 36 - - - 51 AS col2 # 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 col2" at position 0 and "Int64\(34\) \+ Int64\(\-3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 AS col2, + 34 + - 3 col2 +---- +31 +61 query II rowsort label-7619 SELECT - + 77, 46 / + + 68 - 12 AS col2 @@ -40348,8 +40871,11 @@ SELECT ALL + 83 * - - COUNT ( * ) + 64 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 454930 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \* nullif\(\(\- Int64\(67\)\), max\(Int64\(35\)\)\) \* Int64\(97\) AS col0" at position 0 and "Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 * NULLIF ( - + 67, + MAX ( + 35 ) ) * + 97 AS col0, 71 AS col0 +---- +454930 +71 query I rowsort label-7664 SELECT 36 * - - 1 + - - COUNT ( * ) @@ -41068,8 +41594,11 @@ SELECT - 88 + - - COUNT ( * ) * - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(35\) AS Int32\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( + 35 AS INTEGER ) col0, + COUNT ( * ) AS col0 +---- +-35 +1 query I rowsort SELECT - CASE + ( + 99 ) WHEN + 40 THEN 28 END * - 52 AS col1 @@ -41432,8 +41961,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -185 # Datafusion - Expected - 6732 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \+ Int64\(\-77\) \+ min\(\(\- Int64\(80\)\)\) AS col2" at position 0 and "coalesce\(Int64\(99\), Int64\(11\)\) \* Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 28 + - 77 + + MIN ( - + 80 ) AS col2, COALESCE ( + 99, 11 ) * 68 AS col2 +---- +-185 +6732 query I rowsort SELECT ALL 17 + - 41 @@ -41449,8 +41981,11 @@ SELECT 65 + - 36, 64 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 140 -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\(41\)\)\) \- Int64\(\-67\) \+ Int64\(4\) \* \(\- Int64\(\-18\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 AS col0, + COUNT ( - + 41 ) - + - 67 + 4 * - - 18 AS col0 +---- +-90 +140 query I rowsort label-7878 SELECT ( + - COUNT ( * ) ) + 50 + 76 * - 21 + + 8 AS col2 @@ -41547,8 +42082,11 @@ 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\(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\. +query II valuesort 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 +---- +138 +14 query I rowsort label-7897 SELECT - ( - ( + MIN ( DISTINCT 37 ) ) ) * COUNT ( * ) - COUNT ( * ) + - 46 AS col2 @@ -41558,8 +42096,11 @@ SELECT - ( - ( + MIN ( DISTINCT 37 ) ) ) * COUNT ( * ) - COUNT ( * ) + - 46 AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) * - 12 AS col0 +---- +1 +NULL query I rowsort label-7899 SELECT ALL 71 * - ( COUNT ( ALL + NULLIF ( - 31, - CAST ( + 99 AS INTEGER ) * + 2 ) ) ) + + 78 / 92 AS col1 @@ -41913,8 +42454,11 @@ 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\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-69\)\) \* Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 14 AS col1, - COUNT ( * ) + - - 69 * 18 AS col1 +---- +1241 +14 query I rowsort label-7968 SELECT - - 87 * - COUNT ( * ) + - ( 84 ) @@ -42353,8 +42897,11 @@ SELECT COUNT ( * ) AS col1, - 94 * 26 * - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col0" at position 0 and "Int64\(81\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(\-66\) \+ Int64\(18\) \* Int64\(\-79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 99 AS col0, 81 * + - ( - CAST ( NULL AS INTEGER ) ) * - 66 + + 18 * - 79 AS col0 +---- +-99 +NULL query I rowsort SELECT ALL - 46 * + 22 + - 46 @@ -42863,8 +43410,11 @@ 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\(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\. +query II valuesort SELECT - + 4 * + ( - MIN ( DISTINCT - - 94 ) ) * - 3 * - COUNT ( * ) + - + 21 AS col2, - 40 col2 +---- +-40 +1107 query I rowsort label-8149 SELECT + - ( - 82 ) * - + COUNT ( * ) * - - 76 AS col0 @@ -42990,8 +43540,12 @@ NULL # Datafusion - Expected - 94 # Datafusion - Expected - -4602 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col0" at position 0 and "Int64\(6\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 94 AS col0, + 59 * - 78 AS col1, 6 AS col0 +---- +-4602 +6 +94 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -43202,8 +43756,11 @@ 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\(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\. +query II valuesort SELECT ( ( + + 21 ) ) + + COUNT ( * ) + + + COUNT ( * ) * 25 AS col0, - 85 AS col0 +---- +-85 +47 query I rowsort label-8214 SELECT DISTINCT 52 * CAST ( NULL AS INTEGER ) @@ -43218,8 +43775,11 @@ SELECT ALL - ( 14 ) - 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 AS col2, 87 AS col2 +---- +37 +87 query I rowsort label-8217 SELECT DISTINCT 4 - - COUNT ( * ) AS col2 @@ -43679,8 +44239,11 @@ SELECT 63 * + 30 + 80 + - - 57 + - - 42 * + 76 * + - 28, MAX ( ALL 59 ) AS col2 # 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 "Int64\(69\) / Int64\(44\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 69 / + 44 AS col0, + 49 AS col0 +---- +1 +49 query I rowsort SELECT DISTINCT COALESCE ( + 69, - 64, - 24 ) AS col2 @@ -43794,8 +44357,11 @@ SELECT 54 * + + COUNT ( - - 63 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 77 AS col1, COUNT ( * ) AS col1 +---- +1 +77 query I rowsort label-8327 SELECT DISTINCT COUNT ( * ) * 47 * 6 @@ -44565,8 +45131,12 @@ SELECT 31 + - 98 # Datafusion - Expected - 45 # Datafusion - Expected - 7 # Datafusion - Expected - -182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "Int64\(40\) \+ \(\- Int64\(33\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 45 col1, + 40 + - + 33 AS col1, - 13 * + 14 +---- +-182 +45 +7 query I rowsort SELECT ALL 70 * + 63 @@ -44883,8 +45453,12 @@ SELECT CAST ( - + 79 AS INTEGER ) AS col0, + 51 # Datafusion - Expected - 84 # Datafusion - Expected - 4374 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* CAST\(Int64\(81\) AS Int32\) AS col0" at position 1 and "Int64\(\-20\) / \(\- count\(DISTINCT Int64\(92\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 84 AS col1, + 54 * CAST ( + 81 AS INTEGER ) AS col0, + - 20 / - COUNT ( DISTINCT 92 ) AS col0 +---- +20 +4374 +84 query I rowsort SELECT - + 46 * + + 87 AS col1 @@ -44895,8 +45469,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + + 27 AS col0, - COUNT ( * ) AS col0, + 93 - 74 +---- +-1 +19 +27 query I rowsort SELECT ALL + - ( - 39 ) col0 @@ -45068,8 +45646,11 @@ 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\(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\. +query II valuesort SELECT ALL - - MIN ( DISTINCT + + 6 ) AS col2, COUNT ( * ) + - 69 + 86 - + + 23 * + + SUM ( - 12 ) AS col2 +---- +294 +6 query I rowsort label-8567 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - 13 * + 91 * - 91 * 70 col0 @@ -45298,8 +45879,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -462 # Datafusion - Expected - -114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* Int64\(\-14\) AS col0" at position 0 and "Int64\(67\) \+ Int64\(\-84\) \+ \(\- Int64\(97\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 33 * - 14 AS col0, 67 + - 84 + - ( 97 ) AS col0 +---- +-114 +-462 query I rowsort label-8610 SELECT ALL + NULLIF ( - 87, + COUNT ( * ) ) + + 75 AS col2 @@ -45910,8 +46494,11 @@ SELECT ALL + COUNT ( * ) + NULLIF ( + + 88, 84 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -112 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \+ \(\- Int64\(96\)\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 16 + - + 96 col2, 97 AS col2 +---- +-112 +97 query I rowsort SELECT ALL + 57 + + 94 + + - 61 * 74 AS col0 @@ -46062,8 +46649,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col0" at position 0 and "Int64\(23\) \- Int64\(\-53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 93 AS col0, + 23 - - 53 AS col0 +---- +-93 +76 query I rowsort SELECT ALL 91 + + 42 @@ -46156,8 +46746,11 @@ SELECT - 51 / 76 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(86\)\) AS Int32\) AS col1" at position 0 and "Int64\(78\) \- Int64\(1\) / Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - + 86 AS INTEGER ) AS col1, 78 - + + 1 / 62 AS col1 +---- +-86 +78 query I rowsort label-8775 SELECT ALL + COUNT ( ALL 24 ) @@ -46780,8 +47373,11 @@ SELECT + - NULLIF ( COUNT ( * ), + 41 ) / - 78 * 74 col1 # 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 col1" at position 0 and "Int64\(4\) \+ Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 34 ) AS col1, + 4 + + ( + 5 ) AS col1 +---- +-34 +9 query I rowsort label-8891 SELECT + CAST ( NULL AS INTEGER ) + 42 AS col2 @@ -47435,8 +48031,12 @@ 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\(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\. +query III valuesort SELECT + + COUNT ( * ) AS col1, + 58 col0, - COUNT ( * ) - - 57 + - + 43 + - COUNT ( * ) * + 94 AS col0 +---- +-81 +1 +58 query I rowsort label-9015 SELECT DISTINCT + + NULLIF ( - COUNT ( + + 84 ), - COUNT ( * ) + - 19 ) col0 @@ -48060,8 +48660,11 @@ 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\(1\)\) AS count\(\*\) \+ \(\- Int64\(13\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 AS col1, COUNT ( * ) + - + 13 AS col1 +---- +-12 +44 query I rowsort label-9134 SELECT DISTINCT + 53 * - 67 * - 60 + + NULLIF ( - 38, + - ( - - 34 ) + - COUNT ( * ) ) * 16 + NULLIF ( ( + - 86 ), - 59 ) - 72 AS col1 @@ -48077,8 +48680,11 @@ SELECT DISTINCT - 99 AS col0, 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(90\)\) AS col2" at position 0 and "Int64\(16\) \+ \(\- Int64\(\-80\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 90 col2, 16 + - - 80 AS col2 +---- +-90 +96 query I rowsort label-9137 SELECT ALL + NULLIF ( + 36, - - COUNT ( * ) ) * - - 48 * + 35 AS col2 @@ -48181,8 +48787,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \+ CAST\(\(\- \(\- CAST\(NULL AS Int32\)\)\) AS Int32\) \- \(\- Int64\(68\)\) \+ Int64\(77\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-49\) \* Int64\(45\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-27\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) - - + 68 + + 77 - - COUNT ( * ) + - 49 * + 45 / - COUNT ( * ) * - 27 col0, 72 AS col0 +---- +72 +NULL query I rowsort label-9157 SELECT ( - MIN ( + - 58 ) ) + 76 * 56 + + 71 AS col1 @@ -48282,8 +48891,11 @@ SELECT ALL + NULLIF ( 8, - CAST ( NULL AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1089 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \+ Int64\(36\) \+ min\(Int64\(44\)\) \* min\(Int64\(24\)\) \+ Int64\(25\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 28 + 36 + MIN ( + 44 ) * MIN ( 24 ) + + 25 AS col0, 50 col0 +---- +1089 +50 query I rowsort label-9176 SELECT DISTINCT 85 + COUNT ( DISTINCT - + 6 ) AS col1 @@ -49445,8 +50057,11 @@ SELECT + 82 / + - 88 + - + ( SUM ( - 19 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - -3441 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-2\)\) AS col1" at position 0 and "Int64\(\-32\) \+ \(\- Int64\(\-67\)\) \+ Int64\(\-44\) \* Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 2 AS col1, - 32 + - - 67 + - 44 * 79 AS col1 +---- +-3441 +2 query I rowsort label-9399 SELECT + ( - 15 ) - + COUNT ( * ) AS col1 @@ -49709,8 +50324,11 @@ 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\(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\. +query IR valuesort SELECT ALL + 27 * + 42 * 69 AS col2, + CAST ( NULL AS FLOAT8 ) + - COUNT ( * ) - 4 * - COUNT ( * ) AS col2 +---- +78246 +NULL query II rowsort label-9450 SELECT + 2 + + + ( - 9 ) AS col0, 6 / CAST ( 42 AS INTEGER ) col2 @@ -49813,8 +50431,11 @@ SELECT DISTINCT 10 + + ( - - COUNT ( * ) ) + + 1 + ( - 17 ) / 6 * NULLIF ( - 62, # Datafusion - Datafusion expected results: # Datafusion - Expected - 1200 # Datafusion - Expected - 88 -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 "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 30 * 40 AS col1, + 88 AS col1 +---- +1200 +88 query I rowsort SELECT ALL COALESCE ( - + 93, 63 ) @@ -50305,8 +50926,11 @@ SELECT - 51, 46 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col0" at position 0 and "Int64\(\-17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 62 AS col0, - 17 col0 +---- +-17 +62 query I rowsort SELECT ALL - - 19 - + 0 + + + 35 @@ -50601,8 +51225,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- coalesce\(Int64\(3\), CASE Int64\(\-67\) WHEN min\(Int64\(87\)\) / Int64\(76\) \* Int64\(8\) \+ Int64\(4\) \+ Int64\(4\) THEN Int64\(92\) ELSE NULL END, Int64\(\-86\), Int64\(59\)\)\) \+ Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col1, - COALESCE ( 3, + + CASE - 67 WHEN + + MIN ( 87 ) / + 76 * + 8 + 4 + 4 THEN 92 ELSE NULL END, - 86, + 59 ) + 18 AS col1 +---- +15 +NULL query I rowsort SELECT DISTINCT - 5 - 78 @@ -51042,8 +51669,11 @@ SELECT COALESCE ( - 15, ( + 63 ), 87 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- sum\(Int64\(9\)\)\), Int64\(\-64\) \* Int64\(\-77\) \+ Int64\(\-96\) \* \(\- \(\- Int64\(\-7\)\)\)\) AS col1" at position 0 and "Int64\(\-51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COALESCE ( - SUM ( ALL + 9 ), - 64 * - 77 + - 96 * - - ( - 7 ) ) AS col1, - 51 AS col1 +---- +-51 +-9 query I rowsort SELECT - 33 * - 32 @@ -51328,8 +51958,11 @@ SELECT - 90 * + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 127 # Datafusion - Expected - 1220 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \+ \(\- Int64\(\-78\)\) AS col2" at position 0 and "Int64\(42\) \* Int64\(31\) \+ Int64\(\-82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 49 + - - 78 col2, + 42 * 31 + ( - 82 ) AS col2 +---- +1220 +127 query I rowsort label-9755 SELECT DISTINCT MAX ( DISTINCT + 68 ) * + 37 @@ -51602,8 +52235,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 6487 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(94\)\) AS col1" at position 0 and "Int64\(94\) \* Int64\(70\) \+ Int64\(\-76\) \- Int64\(36\) \+ Int64\(\-57\) \- Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 94 AS col1, + 94 * + 70 + + - 76 - 36 + - 57 - + - 76 col1 +---- +-94 +6487 query I rowsort SELECT + 81 * 30 * + + 39 + + - 59 - - 97 @@ -51837,8 +52473,11 @@ SELECT ALL 34, - 14 + 65 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col1" at position 0 and "Int64\(3\) \+ Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 AS col1, 3 + 33 AS col1 +---- +36 +86 query I rowsort label-9851 SELECT CAST ( NULL AS INTEGER ) + 17 @@ -52566,8 +53205,11 @@ SELECT ALL + ( ( COUNT ( * ) ) ) + + ( + 27 ) * - SUM ( ALL + 73 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 AS col2, 21 col2 +---- +21 +64 query I rowsort SELECT ALL 60 + + 17 * + 11 * 74 diff --git a/data/sqlite/random/expr/slt_good_40.slt b/data/sqlite/random/expr/slt_good_40.slt index ed425fc..ff5918d 100644 --- a/data/sqlite/random/expr/slt_good_40.slt +++ b/data/sqlite/random/expr/slt_good_40.slt @@ -526,8 +526,11 @@ SELECT 29 * - 83 - + 94 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) col1, + 21 AS col1 +---- +1 +21 query II rowsort label-91 SELECT + 43 col2, + COUNT ( * ) * + CAST ( 86 AS INTEGER ) @@ -1539,8 +1542,11 @@ SELECT ALL - 79 + + + NULLIF ( + - ( + + ( + 20 ) ), - COALESCE ( 39, - + COALES # 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\(53\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 AS col2, 7 AS col2 +---- +53 +7 query I rowsort SELECT + 16 * - 5 + - 78 AS col1 @@ -1654,8 +1660,11 @@ SELECT 8 * - 57 * COALESCE ( + + 22, - NULLIF ( - 95, - COUNT ( * ) + + + SUM ( # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(26\) AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE max\(Int64\(22\)\) WHEN Int64\(27\) \+ \(\- Int64\(78\)\) \- Int64\(89\) \* Int64\(25\) THEN NULL WHEN Int64\(95\) \* Int64\(40\) THEN Int64\(93\) WHEN avg\(Int64\(\-90\)\) THEN NULL END\) \+ Int64\(91\) \* \(\- Int64\(\-10\)\) \* Int64\(61\) \- Int64\(\-52\) \* Int64\(46\) \* Int64\(\-73\) AS col1" at position 0 and "Int64\(\-21\) \* \(\- CASE \(\- CASE count\(DISTINCT \(\- Int64\(\-90\)\)\) WHEN \(\- count\(Int64\(81\)\)\) \* Int64\(\-67\) THEN CAST\(CAST\(NULL AS Int32\) AS Int32\) ELSE coalesce\(Int64\(75\), Int64\(\-72\) \+ Int64\(54\) \* Int64\(22\)\) END\) WHEN Int64\(66\) THEN NULL WHEN Int64\(69\) \+ Int64\(3\) THEN NULL ELSE Int64\(4\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +84 +NULL query I rowsort SELECT ( + 67 ) - + 32 AS col0 @@ -1918,8 +1927,11 @@ SELECT - CAST ( - 7 AS INTEGER ) # 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 col2" at position 0 and "Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 22 AS col2, + 76 AS col2 +---- +-22 +76 query I rowsort label-356 SELECT DISTINCT + - 57 * - COUNT ( * ) AS col1 @@ -2018,8 +2030,11 @@ SELECT - MIN ( DISTINCT - + 88 ) + + 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 121 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(min\(DISTINCT Int64\(\-88\)\), \(\- max\(Int64\(\-23\)\)\) \* \(\- nullif\(Int64\(0\), Int64\(56\) \+ Int64\(71\)\)\) \+ Int64\(52\), Int64\(34\) \* \(\- nullif\(Int64\(\-86\), Int64\(51\)\)\)\) AS col0" at position 0 and "Int64\(65\) \+ Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( + + MIN ( DISTINCT - 88 ), - MAX ( ALL - 23 ) * - + NULLIF ( - 0, + 56 + 71 ) + 52, + 34 * - NULLIF ( - 86, 51 ) ) AS col0, + 65 + + 56 AS col0 +---- +-88 +121 query II rowsort SELECT ALL - 32 * 68 + + + 68 + + 19 AS col1, 69 AS col2 @@ -3284,8 +3299,11 @@ SELECT + + 14 + + 40 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "Int64\(63\) \+ Int64\(75\) \+ Int64\(0\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN sum\(Int64\(73\)\) THEN \(\- Int64\(58\)\) \- count\(Int64\(1\)\) AS count\(\*\) ELSE CASE WHEN NOT Int64\(71\) NOT IN \(\[Int64\(75\) \- min\(DISTINCT Int64\(\-25\) \+ Int64\(74\)\)\]\) THEN Int64\(\-10\) WHEN NULL >= min\(CASE CASE Int64\(14\) WHEN Int64\(50\) \+ Int64\(\-49\) THEN NULL ELSE Int64\(57\) \+ Int64\(9\) END WHEN Int64\(\-49\) \+ Int64\(80\) THEN Int64\(71\) \* Int64\(15\) \+ Int64\(47\) WHEN Int64\(88\) \+ CAST\(NULL AS Int32\) THEN Int64\(\-81\) \+ nullif\(Int64\(98\), Int64\(80\) \+ Int64\(\-78\)\) \* Int64\(26\) WHEN Int64\(94\) THEN NULL ELSE NULL END\) THEN NULL END \- Int64\(\-60\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +22 +NULL query I rowsort label-618 SELECT + 65 * CAST ( NULL AS INTEGER ) + + - ( - 92 ) - - + 73 * 23 + - 67 @@ -3844,8 +3862,11 @@ SELECT DISTINCT 99 * + - ( - 20 ) * - 26 / COUNT ( * ) + - ( - COUNT ( * ) ) / + # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(\-77\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(\-39\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - ( + MAX ( + - 77 ) ) + + + COUNT ( * ) AS col1, + COUNT ( - 39 ) AS col1 +---- +1 +78 query II rowsort SELECT - 48 * + + 9 AS col2, + 79 @@ -4115,8 +4136,11 @@ SELECT 88 / 88 * - ( + + 91 ) / 90 * + 71 + ( - 79 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col2" at position 0 and "Int64\(50\) \* Int64\(0\) \- Int64\(\-60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 57 AS col2, 50 * 0 - - 60 col2 +---- +-57 +60 query I rowsort SELECT ALL + 88 + - - 13 @@ -4289,8 +4313,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( DISTINCT 39 ) * + 64 * - + 38 * - COUNT ( * ) * 36 * - COUNT ( * ) AS col2, - 34 AS col2 +---- +-34 +-87552 query I rowsort label-808 SELECT 99 + + 10 - 86 + - + SUM ( NULLIF ( - 3, - 14 + + - 59 ) ) @@ -4419,8 +4446,11 @@ SELECT ALL + + 32 * - - 21, - 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 131 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "Int64\(82\) \+ \(\- Int64\(\-33\)\) \+ Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 AS col2, + 82 + - - 33 + 16 AS col2 +---- +131 +7 query I rowsort label-833 SELECT COUNT ( * ) + + 77 AS col1 @@ -4507,8 +4537,11 @@ SELECT + 9 + - 55 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 95 AS col2, ( + 34 ) AS col2 +---- +34 +95 query I rowsort label-850 SELECT ALL + COUNT ( * ) * - + 30 + + - ( 68 ) + - - 71 @@ -4849,8 +4882,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 21 col2, - COUNT ( * ) AS col2 +---- +-1 +21 query I rowsort label-915 SELECT 31 + ( - NULLIF ( - MAX ( - + CAST ( 37 AS INTEGER ) ), 19 * - 83 ) ) AS col1 @@ -4972,8 +5008,11 @@ SELECT DISTINCT - + ( - NULLIF ( - ( + + 18 ), + COALESCE ( - CAST ( - - 76 AS I # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 AS col2, 48 col2 +---- +48 +50 query I rowsort label-939 SELECT DISTINCT + SUM ( ALL + 71 ) + ( + 80 ) + + 77 * CASE + - 87 WHEN - + 52 THEN NULL WHEN 50 THEN + - 54 / + NULLIF ( 61, + + 44 ) ELSE + + COUNT ( * ) + - - MAX ( ALL 48 ) END AS col2 @@ -5022,8 +5061,11 @@ SELECT ALL 11 AS col0, + 48 + 43 + - - 90 * + 39 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, + 82 AS col2 +---- +1 +82 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -5195,8 +5237,11 @@ SELECT - 17 * - - 57 * - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-21\)\) AS col2" at position 0 and "Int64\(\-65\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( - 21 ) AS col2, - 65 * + COUNT ( * ) AS col2 +---- +-21 +-65 query I rowsort label-980 SELECT + 81 + + CAST ( + 26 AS INTEGER ) @@ -5241,8 +5286,11 @@ SELECT - 51 + + 5 + + - 14 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + - 82 ) col1, 21 AS col1 +---- +-82 +21 query I rowsort SELECT ALL 73 * + 24 AS col1 @@ -5442,8 +5490,11 @@ SELECT + 27 * - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4880 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* Int64\(57\) \+ Int64\(\-6\) \+ Int64\(\-28\) \* Int64\(67\) \+ Int64\(55\) \- Int64\(59\) \* Int64\(\-74\) \- \(\- coalesce\(Int64\(\-7\), Int64\(\-78\) \* \(\- min\(Int64\(\-56\)\)\), \(\- Int64\(\-50\)\)\)\) \* Int64\(\-82\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 * + 57 + - 6 + - 28 * 67 + + 55 - 59 * - 74 - - COALESCE ( + ( - 7 ), - 78 * + - MIN ( - 56 ), - - 50 ) * + - 82 AS col2, 48 col2 +---- +48 +4880 query I rowsort label-1026 SELECT - COUNT ( * ) * - 67 @@ -5590,8 +5641,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + - 97 AS col0, - COUNT ( * ) * 64 AS col0 +---- +-64 +-96 query I rowsort SELECT 50 * - 76 @@ -6445,8 +6499,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 19253 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-48\), Int64\(66\)\) \- \(\- sum\(DISTINCT Int64\(\-54\)\)\) \- Int64\(\-71\) \+ max\(DISTINCT Int64\(55\)\) AS col1" at position 0 and "Int64\(12\) \* Int64\(63\) \+ sum\(Int64\(\-18\)\) \+ Int64\(72\) / Int64\(24\) \* Int64\(37\) \* min\(Int64\(\-20\)\) \+ Int64\(\-7\) \* \(\- Int64\(55\)\) \* Int64\(54\) \+ Int64\(61\) / \(\- Int64\(46\)\) \+ Int64\(\-54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( - 48, 66 ) - - SUM ( DISTINCT + - 54 ) - + - 71 + MAX ( DISTINCT + 55 ) AS col1, 12 * + 63 + + SUM ( - 18 ) + 72 / ( 24 ) * + 37 * + MIN ( + - 20 ) + + - 7 * - + 55 * + 54 + + 61 / - + 46 + - 54 AS col1 +---- +19253 +24 query I rowsort label-1215 SELECT - COUNT ( * ) * - 13 AS col2 @@ -6997,8 +7054,11 @@ 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 "Int64\(\-9\) / Int64\(\-8\) AS col1" at position 0 and "Int64\(\-64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 9 / - 8 AS col1, - 64 AS col1 +---- +-64 +1 query I rowsort SELECT DISTINCT 68 * + - 78 AS col0 @@ -7093,8 +7153,11 @@ SELECT + MIN ( ALL - 49 ) / 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, - 33 AS col1 +---- +-33 +1 query I rowsort label-1341 SELECT ( + + 79 ) * + COUNT ( DISTINCT + 63 ) + 25 + - ( - + COUNT ( * ) ) * - + ( MIN ( 9 ) ) * 69 col0 @@ -7935,8 +7998,11 @@ SELECT + + 20 * + - MIN ( - CAST ( - 36 AS INTEGER ) ) - - + 81 * 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \+ nullif\(Int64\(50\), Int64\(\-6\) \* Int64\(\-29\)\) \+ Int64\(\-85\) \+ Int64\(43\) AS col2" at position 0 and "Int64\(\-34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 15 + + NULLIF ( + 50, - 6 * - 29 ) + - 85 + 43 AS col2, - 34 AS col2 +---- +-34 +23 query I rowsort label-1499 SELECT + - COALESCE ( - - 34, NULLIF ( 24, + 60 ) ) + + - CAST ( - + 58 AS INTEGER ) @@ -8069,8 +8135,11 @@ SELECT - 71 * + - ( - COUNT ( * ) ) - - 77 * + SUM ( DISTINCT ( + - 80 ) ) + - C # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(69\) \+ Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) col0, 69 + - 80 AS col0 +---- +-11 +NULL query II rowsort label-1525 SELECT CAST ( NULL AS INTEGER ) AS col0, - 69 @@ -8375,8 +8444,11 @@ SELECT DISTINCT SUM ( DISTINCT 99 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 6003 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "Int64\(69\) \* Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 AS col1, + 69 * + 87 AS col1 +---- +29 +6003 query I rowsort label-1583 SELECT ALL MIN ( + 90 ) @@ -8572,8 +8644,11 @@ SELECT + 4 + + - ( ( + 61 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 AS col0, 47 AS col0 +---- +27 +47 query I rowsort label-1621 SELECT ALL COALESCE ( - 49, - CASE + MAX ( 50 ) WHEN + 25 THEN 50 / + ( + COUNT ( * ) ) * CASE + 80 WHEN - 31 * + COUNT ( * ) THEN + CAST ( - 98 AS INTEGER ) WHEN + COALESCE ( + ( - - 74 ), - - 98 + 98 ) * + 22 + + 87 - 85 + 76 / + 44 * + CAST ( - AVG ( DISTINCT + 19 ) AS INTEGER ) THEN NULL END WHEN MAX ( - 30 ) * - CAST ( COUNT ( * ) AS INTEGER ) THEN NULL WHEN - 24 + + - ( 17 ) * ( 8 ) + + 12 THEN NULL END ) AS col2 @@ -8588,8 +8663,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT 14 AS col0, - 33 AS col0 +---- +-33 +14 query I rowsort label-1624 SELECT - 33 + 24 + + 57 * + + ( + COUNT ( * ) ) AS col2 @@ -8663,8 +8741,11 @@ SELECT 51, 71 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(nullif\(\(\- \(\- coalesce\(Int64\(\-77\), Int64\(53\)\)\)\), Int64\(\-35\)\) AS Int32\) AS col1" at position 0 and "Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( + NULLIF ( - - COALESCE ( - 77, + 53 ), - 35 ) AS INTEGER ) AS col1, - 62 AS col1 +---- +-62 +-77 query II rowsort label-1638 SELECT + - 73 + - - MIN ( - 37 ) * + + 11 * - MIN ( ALL + 2 ) col1, + 60 @@ -8714,14 +8795,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 86 col2, 50 AS col2 +---- +-86 +50 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col0" at position 0 and "count\(Int64\(22\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 55 AS col0, + COUNT ( + 22 ) AS col0 +---- +-55 +1 query I rowsort label-1648 SELECT CAST ( - CASE - 70 WHEN + 64 THEN 67 END AS INTEGER ) @@ -8890,8 +8977,11 @@ SELECT ALL COUNT ( * ) * 3, - 58 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 87 * + + COUNT ( * ) AS col1, 85 AS col1 +---- +-87 +85 query I rowsort label-1680 SELECT DISTINCT - SUM ( DISTINCT + 44 ) + - 58 * + 69 @@ -9025,8 +9115,11 @@ SELECT DISTINCT 6 AS col1, - 78 * 61 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - -2160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col2" at position 0 and "Int64\(90\) \* Int64\(\-24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 45 col2, 90 * - 24 AS col2 +---- +-2160 +-45 query I rowsort SELECT COALESCE ( + 82, ( - 0 ), - 60 + - 48 ) + + 39 @@ -9135,8 +9228,11 @@ SELECT DISTINCT + 64 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77805 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \* Int64\(95\) \* Int64\(\-21\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 39 * 95 * - 21 * + COUNT ( * ) col0, - 77 AS col0 +---- +-77 +77805 query I rowsort SELECT ALL 22 * - 29 col0 @@ -9161,8 +9257,11 @@ SELECT ALL - ( 97 ) * + - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - -281 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) \* \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(43\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(29\)\) \+ \(\- Int64\(36\)\) \* \(\- \(\- nullif\(Int64\(7\), Int64\(72\) \+ CASE \(\- Int64\(\-79\)\) WHEN Int64\(34\) THEN NULL WHEN \(\- CASE Int64\(48\) WHEN sum\(Int64\(\-40\)\) \+ avg\(Int64\(81\)\) \+ \(\- Int64\(\-18\)\) \* Int64\(\-46\) \+ Int64\(86\) THEN CAST\(Int64\(60\) AS Int32\) \+ Int64\(76\) \* Int64\(95\) \+ Int64\(3\) \- Int64\(82\) \+ Int64\(\-24\) / \(\- Int64\(64\)\) \* \(\- Int64\(94\)\) END\) THEN NULL WHEN Int64\(20\) \* Int64\(67\) \- Int64\(62\) \* Int64\(81\) THEN Int64\(29\) ELSE Int64\(90\) \- Int64\(96\) END \+ Int64\(57\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-281 +92 query I rowsort label-1730 SELECT + MIN ( - 36 ) * - 90 AS col0 @@ -9540,8 +9639,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 145 # Datafusion - Expected - 641732 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \- Int64\(\-63\) AS col2" at position 0 and "Int64\(82\) \* Int64\(86\) \* Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 - + - 63 AS col2, + 82 * 86 * + 91 col2 +---- +145 +641732 query I rowsort SELECT DISTINCT 80 * - 35 @@ -9931,8 +10033,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col0" at position 0 and "Int64\(\-8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 29 AS col0, - 8 col0 +---- +-29 +-8 query I rowsort label-1878 SELECT ALL NULLIF ( + 21, - 6 - + + CASE + 32 WHEN + 29 * 0 + - 33 + + SUM ( DISTINCT 30 ) THEN + + 93 WHEN + 38 * + 79 * 63 THEN NULL END * + 4 + - 45 + - 94 ) @@ -10015,8 +10120,11 @@ SELECT ALL - 87 * COUNT ( * ) + - 43 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-47\) AS col1" at position 0 and "Int64\(40\) \+ Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) + - 47 AS col1, + 40 + 51 AS col1 +---- +91 +NULL query I rowsort SELECT + 25 + 91 AS col2 @@ -10058,8 +10166,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 11 AS col1, 64 + - COUNT ( * ) AS col1 +---- +11 +63 query I rowsort label-1902 SELECT ALL - 66 * - + CAST ( NULL AS INTEGER ) * 28 - + COUNT ( + + 62 ) @@ -10090,8 +10201,11 @@ SELECT DISTINCT COUNT ( * ) * - 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1350 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(25\)\) \* Int64\(54\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + SUM ( ( + 25 ) ) * + + 54 AS col0, + 26 AS col0 +---- +1350 +26 query II rowsort label-1908 SELECT COUNT ( * ), 55 AS col1 @@ -10848,8 +10962,11 @@ SELECT DISTINCT 48 col1, 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "Int64\(69\) \+ Int64\(84\) / \(\- Int64\(\-98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 99 AS col0, + 69 + + 84 / - - 98 AS col0 +---- +69 +99 query I rowsort SELECT 16 * 17 AS col0 @@ -12065,8 +12182,11 @@ SELECT - MIN ( ALL + - 0 ) * + - 82 * + 97 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, - 1 AS col2 +---- +-1 +NULL query I rowsort label-2289 SELECT DISTINCT + CASE - - 82 WHEN - 72 THEN + COUNT ( * ) END * 93 + 86 / - 47 @@ -12172,8 +12292,12 @@ SELECT - 52 * - - 45 - - 7 / + - 92 * 11 + + NULLIF ( COUNT ( * ), - COUNT ( * ) # Datafusion - Expected - 76 # Datafusion - Expected - 83 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "Int64\(50\) \+ Int64\(17\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 76 AS col1, + 83 * COUNT ( * ) AS col2, + 50 + + 17 AS col1 +---- +67 +76 +83 query I rowsort SELECT ALL + + 81 - - 28 + 70 AS col1 @@ -12257,8 +12381,11 @@ SELECT CAST ( - 68 AS INTEGER ) * 49 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - 826 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col2" at position 0 and "Int64\(87\) \* \(\- \(\- Int64\(\-9\)\)\) \* \(\- count\(DISTINCT Int64\(66\)\)\) \+ Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 99 AS col2, + 87 * - ( - - 9 ) * - COUNT ( DISTINCT 66 ) + 43 AS col2 +---- +-99 +826 query I rowsort label-2326 SELECT 44 * - - 16 * - CASE + 36 WHEN COUNT ( * ) + - + 97 + 85 THEN COUNT ( ALL 11 ) + 13 WHEN + 97 + 15 THEN 59 WHEN + 32 THEN 22 + - ( 52 ) END col1 @@ -12387,8 +12514,11 @@ SELECT ALL - 65 - - + COALESCE ( + 35, + ( 73 ) / 55 * 53 ) - - 8 * 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 col2, COUNT ( * ) AS col2 +---- +1 +55 query I rowsort SELECT ALL - 85 - + 17 AS col1 @@ -12604,8 +12734,11 @@ SELECT ALL + COUNT ( * ) / + - 10 AS 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 "Int64\(3\) AS col2" at position 0 and "Int64\(\-94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 3 col2, - 94 col2 +---- +-94 +3 query I rowsort label-2392 SELECT 48 * 63 * - SUM ( + 29 ) + + 38 @@ -13589,8 +13722,11 @@ 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\(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\. +query II valuesort SELECT 4 * + 10 * - COALESCE ( - 48, COUNT ( * ) * + 2 ) AS col2, + 11 AS col2 +---- +11 +1920 query I rowsort SELECT DISTINCT 19 + - ( + 24 ) * + - 10 * - 75 AS col0 @@ -13981,8 +14117,11 @@ SELECT DISTINCT COUNT ( * ), - 11 + + - 84 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "min\(Int64\(5\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 AS col1, MIN ( + 5 ) col1 +---- +18 +5 query I rowsort label-2657 SELECT ALL CASE + 27 WHEN + - 1 * + ( + 13 ) * + - ( - + 24 ) * - CASE - 0 WHEN + - 42 + 40 + 13 * 81 + + 89 + - 67 THEN NULL WHEN + CAST ( - 75 AS INTEGER ) THEN - 84 + NULLIF ( 93 + + CASE - 26 WHEN COUNT ( * ) + 84 THEN - 75 * 22 + 77 WHEN 61 THEN NULL END, - 32 ) / - 76 WHEN 20 * - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) THEN 53 ELSE NULL END * ( + 73 ) + + 49 + + 79 * 62 + 90 THEN - 9 END @@ -14172,8 +14311,12 @@ 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\(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\. +query III valuesort 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 +---- +-59 +5 +NULL query I rowsort SELECT ALL + 23 + - 7 AS col0 @@ -14307,8 +14450,11 @@ 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\(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\. +query II valuesort SELECT ALL 18 AS col0, + 63 * + 44 * + COUNT ( * ) * NULLIF ( + MAX ( 29 ), - ( - COALESCE ( - + MAX ( - + COALESCE ( + 4, 73 ) ), 66 * - 86, + + 84 + + 71 ) ) ) AS col0 +---- +18 +80388 query I rowsort label-2719 SELECT ALL ( - SUM ( 2 ) ) + - COUNT ( * ) AS col1 @@ -14752,8 +14898,11 @@ SELECT ALL - - 63 + - + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ CAST\(NULL AS Int32\) / Int64\(\-45\) AS col0" at position 0 and "Int64\(71\) \+ \(\- Int64\(\-68\)\) \+ Int64\(\-88\) \+ Int64\(\-95\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 48 + CAST ( NULL AS INTEGER ) / - 45 AS col0, 71 + - - 68 + - 88 + + - 95 * + COUNT ( * ) AS col0 +---- +-44 +NULL query I rowsort label-2803 SELECT 41 + COUNT ( * ) + + COUNT ( 41 ) * + + CAST ( NULL AS INTEGER ) + + 51 * + 82 AS col1 @@ -14972,14 +15121,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 65 AS col1, ( + 49 ) col1 +---- +-65 +49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col1" at position 0 and "Int64\(16\) \- Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 AS col1, + 16 - + 65 AS col1 +---- +-49 +81 query I rowsort SELECT - 81 - + - CASE + 82 WHEN + 10 THEN - 62 END @@ -14994,8 +15149,11 @@ SELECT ALL - NULLIF ( - 3, + + MIN ( DISTINCT + 84 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-64\)\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 64 AS col2, + 55 AS col2 +---- +55 +64 query I rowsort label-2848 SELECT DISTINCT - - 93 * - - 80 * SUM ( + 85 ) + - CAST ( NULL AS INTEGER ) @@ -15049,8 +15207,11 @@ SELECT DISTINCT 73 * + - 74 * - + ( - COALESCE ( + 92, + + MAX ( ALL + 17 ) / + # Datafusion - Datafusion expected results: # Datafusion - Expected - 148 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \+ Int64\(58\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 90 + + 58 AS col0, 85 AS col0 +---- +148 +85 query I rowsort label-2858 SELECT MAX ( ALL + 29 ) @@ -15461,8 +15622,11 @@ SELECT 2 * - 86 + + 9 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5328 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \* Int64\(\-72\) AS col1" at position 0 and "min\(Int64\(8\)\) \+ Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 74 * - 72 col1, + MIN ( ALL + 8 ) + + 35 AS col1 +---- +43 +5328 query I rowsort SELECT 89 + - + 57 @@ -15568,8 +15732,11 @@ SELECT CAST ( - CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) + - 29 + 1, 65 * # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col0" at position 0 and "Int64\(\-4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 18 AS col0, - 4 AS col0 +---- +-18 +-4 query I rowsort SELECT ( 87 ) - - 82 + - - 61 * + 31 @@ -15897,8 +16064,11 @@ SELECT DISTINCT + NULLIF ( + 52, - - 95 + - NULLIF ( + 59, 49 + 67 ) + - 81 + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-88\)\) AS col0" at position 0 and "Int64\(\-41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 88 AS col0, - 41 AS col0 +---- +-41 +88 query I rowsort label-3020 SELECT ALL - 84 * NULLIF ( - 42, - SUM ( - + 62 ) * - 47 * COUNT ( * ) ) / + 83 + - - 18 @@ -16234,8 +16404,11 @@ 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\(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\. +query II valuesort SELECT + - COUNT ( * ) AS col1, - 8 * 92 * - 60 + + 42 AS col1 +---- +-1 +44202 query I rowsort label-3083 SELECT ALL 50 * MAX ( ALL - CAST ( NULL AS INTEGER ) ) @@ -16539,8 +16712,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + SUM ( 45 ) / + 85 + 82 + - COUNT ( * ) col1, + 15 AS col1 +---- +15 +81 query I rowsort label-3141 SELECT ALL + CAST ( + - 44 AS INTEGER ) @@ -16683,8 +16859,11 @@ SELECT ALL ( 33 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col0, + 81 AS col0 +---- +1 +81 query I rowsort SELECT - 89 + + 22 AS col0 @@ -17158,8 +17337,11 @@ SELECT + 22 - + - COALESCE ( 66, + 59 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(63\)\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 63 AS col0, + 42 AS col0 +---- +-63 +42 query I rowsort SELECT + + 6 + + 89 AS col0 @@ -17180,8 +17362,11 @@ SELECT ALL + 53 AS col1, 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col2" at position 0 and "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 AS col2, 70 AS col2 +---- +25 +70 query I rowsort label-3260 SELECT - + 68 * MIN ( 87 ) AS col1 @@ -17262,8 +17447,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- Int64\(18\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 48 / - COUNT ( * ) AS col0, - ( 18 ) AS col0 +---- +-18 +-48 query I rowsort label-3276 SELECT NULLIF ( + COUNT ( * ), - 43 / 77 - 42 ) AS col2 @@ -17596,8 +17784,12 @@ SELECT 89 - - 53 * + 2 + - - 51 AS col1 # Datafusion - Expected - -6 # Datafusion - Expected - 7613 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(96\) \- Int64\(\-29\) AS col0" at position 1 and "Int64\(\-72\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 6, 79 * + 96 - - 29 AS col0, + - 72 col0 +---- +-6 +-72 +7613 query I rowsort SELECT 30 + 14 @@ -17695,8 +17887,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, + 84 + 84 AS col2 +---- +-1 +168 query I rowsort label-3359 SELECT DISTINCT + + 29 * + 76 * - SUM ( 95 ) AS col2 @@ -17722,8 +17917,11 @@ SELECT ALL + 1 * + + 25 + COUNT ( 65 ) - - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(5\) \+ Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, 5 + + 20 AS col2 +---- +1 +25 query II rowsort SELECT DISTINCT - CASE 87 WHEN - 83 THEN NULL ELSE - 64 END, + 96 col2 @@ -17785,8 +17983,11 @@ SELECT ALL + CASE - 6 WHEN + 8 THEN + + 6 / + + CAST ( - CAST ( - + CAST ( - 5 A # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 77 AS col1, 34 AS col1 +---- +-77 +34 query II rowsort label-3376 SELECT DISTINCT ( + 51 ) * - ( - - 90 ), COUNT ( * ) AS col0 @@ -18830,8 +19031,11 @@ SELECT ALL + 13 + + 19 col0, - 99 # 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\(\-30\) \+ Int64\(17\) AS col2" at position 0 and "count\(Int64\(59\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 30 + + + 17 AS col2, COUNT ( + 59 ) col2 +---- +-13 +1 query I rowsort label-3575 SELECT DISTINCT + ( + - 33 ) * + COUNT ( * ) AS col0 @@ -19535,8 +19739,12 @@ SELECT DISTINCT COALESCE ( ( - + 2 ), - 84 ) AS col0 # Datafusion - Expected - 84 # Datafusion - Expected - 75 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 84 AS col2, 75 AS col2, + 74 +---- +74 +75 +84 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -19633,8 +19841,11 @@ SELECT CAST ( + 49 AS INTEGER ) * - - 17 * 18 + 57 / COALESCE ( - 64, + COALESCE # 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 "count\(Int64\(58\)\) \* Int64\(81\) / max\(Int64\(95\)\) AS col2" at position 0 and "Int64\(86\) \+ Int64\(28\) \+ Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( + 58 ) * + 81 / + MAX ( ALL + + 95 ) AS col2, + 86 + 28 + + 31 AS col2 +---- +0 +145 query I rowsort label-3727 SELECT + - COUNT ( ALL 57 ) @@ -19721,8 +19932,11 @@ SELECT 37 AS col2, - 0 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col1" at position 0 and "max\(Int64\(\-37\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 AS col1, MAX ( ALL - 37 ) AS col1 +---- +-37 +72 query I rowsort SELECT 22 * - 30 @@ -19800,8 +20014,11 @@ SELECT + - 34 + 39 / - 9 + 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "min\(Int64\(64\)\) / \(\- CAST\(Int64\(54\) AS Int32\)\) \+ \(\- Int64\(\-53\)\) \* Int64\(\-85\) \* Int64\(91\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 AS col0, + MIN ( 64 ) / + - CAST ( + 54 AS INTEGER ) + - - 53 * - 85 * 91 * + CAST ( NULL AS INTEGER ) AS col0 +---- +7 +NULL query II rowsort SELECT + 12 AS col2, + 58 @@ -20972,8 +21189,11 @@ SELECT DISTINCT - - 49 + - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 28 * - CAST ( NULL AS INTEGER ) AS col0, + 65 AS col0 +---- +65 +NULL query I rowsort label-3986 SELECT ALL COUNT ( + 80 ) + + SUM ( 21 ) col2 @@ -21186,8 +21406,12 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-76\) \+ Int64\(14\) / Int64\(\-7\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 37 / + - 54 AS col2, - 10 * - 11 AS col1, COUNT ( * ) * - 76 + 14 / - 7 AS col1 +---- +-78 +0 +110 query I rowsort label-4027 SELECT ALL + SUM ( + - 46 ) + + - 59 AS col0 @@ -21584,8 +21808,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 92 AS col2, 15 * 88 + + - 32 / - COUNT ( * ) + - SUM ( 72 ) - - + 47 * - COUNT ( * ) AS col2 +---- +1233 +92 query II rowsort SELECT ALL 45, - 22 AS col1 @@ -21632,8 +21859,11 @@ SELECT - 42 / + 33 + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 69 AS col2, 14 AS col2 +---- +14 +69 query II rowsort label-4112 SELECT 55 + + 32 * NULLIF ( + - CAST ( + 83 AS INTEGER ), + 36 ), 35 / - 60 * COUNT ( * ) - 51 * + CAST ( NULL AS INTEGER ) AS col0 @@ -21690,8 +21920,11 @@ SELECT 6 * 35 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col1" at position 0 and "min\(Int64\(62\)\) \+ Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 AS col1, MIN ( 62 ) + + 21 col1 +---- +47 +83 query I rowsort label-4123 SELECT ALL - + 44 * - COUNT ( * ) @@ -22213,8 +22446,11 @@ SELECT COUNT ( * ) * + 28 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 73 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 71 AS col2, 73 AS col2 +---- +71 +73 query I rowsort label-4224 SELECT ALL - - 62 - + + CAST ( NULL AS INTEGER ) * - + 91 AS col0 @@ -22631,8 +22867,11 @@ SELECT + NULLIF ( - 17, - - 81 ), 28 * 96 * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(CAST\(NULL AS Int32\)\)\) \* Int64\(68\) AS col2" at position 0 and "\(\- coalesce\(\(\- Int64\(40\)\), Int64\(97\), Int64\(\-93\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( ALL CAST ( NULL AS INTEGER ) ) * 68 col2, - COALESCE ( - + 40, 97, - 93 ) AS col2 +---- +0 +40 query I rowsort label-4302 SELECT DISTINCT 17 * + CAST ( NULL AS INTEGER ) + + 3 + + - 41 AS col2 @@ -23120,8 +23359,11 @@ SELECT DISTINCT - 30 / 48 + + 79 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col1" at position 0 and "Int64\(\-48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 39 AS col1, - 48 AS col1 +---- +-39 +-48 query II rowsort label-4396 SELECT + COUNT ( * ) * 52 AS col2, 93 AS col1 @@ -23132,8 +23374,11 @@ SELECT + COUNT ( * ) * 52 AS col2, 93 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - -219 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \+ Int64\(49\) \+ Int64\(\-8\) AS col2" at position 0 and "Int64\(27\) \- Int64\(\-3\) \* Int64\(\-82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + + 34 ) + 49 + - 8 AS col2, 27 - - 3 * - 82 AS col2 +---- +-219 +75 query I rowsort label-4398 SELECT ALL - CAST ( - 74 AS INTEGER ) AS col2 @@ -23774,8 +24019,11 @@ SELECT - CASE ( + + CAST ( + 83 AS FLOAT8 ) ) WHEN + 74 - + 82 + + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 7872653 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) / Int64\(\-25\) \- \(\- Int64\(\-71\)\) \+ Int64\(17\) \* Int64\(96\) \* \(\- Int64\(\-72\)\) \* Int64\(67\) \- Int64\(41\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 92 / + - 25 - - - 71 + + 17 * 96 * - - 72 * + 67 - + 41 AS col1, + 67 AS col1 +---- +67 +7872653 query II rowsort label-4519 SELECT + 62 AS col0, - 24 / - - COUNT ( DISTINCT 28 ) + 61 * 46 @@ -24672,8 +24920,11 @@ SELECT DISTINCT + 31 * - + 69 AS col0 # 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 "Int64\(66\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 66 AS col1, 10 AS col1 +---- +10 +66 query I rowsort SELECT - 30 * + 9 * 41 @@ -24990,8 +25241,11 @@ SELECT NULLIF ( COUNT ( * ), 4 * 94 + + + 51 ) * - MIN ( + - 58 ) / + 18 - + - C # Datafusion - Datafusion expected results: # Datafusion - Expected - -5076 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* Int64\(\-54\) AS col2" at position 0 and "Int64\(74\) / nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- CAST\(\(\- Int64\(14\)\) AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- avg\(Int64\(14\)\)\)\) \+ \(\- min\(DISTINCT Int64\(81\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 94 * + - 54 AS col2, 74 / NULLIF ( + + COUNT ( * ), - CAST ( - ( 14 ) AS INTEGER ) * + COUNT ( * ) * - - AVG ( + + 14 ) + + - MIN ( DISTINCT ( 81 ) ) ) * COUNT ( * ) - + 62 AS col2 +---- +-5076 +12 query II rowsort SELECT DISTINCT 5 * - 21, - NULLIF ( - + 37, - 80 ) AS col2 @@ -25144,8 +25398,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(0\)\) \* Int64\(84\)\) \* \(\- Int64\(\-63\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( + 99, 14 ) AS col1, COALESCE ( 59, 7 + 2, - - 79 * + COUNT ( * ) * - + 0 * 84 ) * - - 63 AS col1 +---- +3717 +99 query I rowsort SELECT - 69 + + 8 col0 @@ -25302,8 +25559,11 @@ SELECT - CAST ( + + 85 AS INTEGER ) - + + 62 + - - 53 + - 41 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "sum\(Int64\(52\)\) / \(\- Int64\(11\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + + 19 ) AS col2, + SUM ( ALL + + 52 ) / - + 11 AS col2 +---- +-4 +19 query I rowsort label-4806 SELECT ALL ( + CAST ( + + MIN ( ALL - 29 ) AS INTEGER ) ) @@ -25374,8 +25634,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 18 / - - 46 * + COUNT ( * ) * - 62 * - + 61 AS col2, 85 AS col2 +---- +0 +85 query I rowsort label-4820 SELECT - SUM ( ( 17 ) ) + 87 / 22 @@ -25514,8 +25777,11 @@ 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\(Int64\(1\)\) AS count\(\*\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 42 AS col1, CASE 28 WHEN + + 0 THEN + + COUNT ( * ) END AS col1 +---- +-42 +NULL query I rowsort label-4846 SELECT 78 / - - 75 @@ -25713,8 +25979,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - NULLIF ( NULLIF ( COUNT ( * ), 93 + - - 29 ), 53 * + + ( - 97 ) + + - 43 * - 35 ) * 22 * 6 * - 38 + + - 31 AS col2, 29 - - 13 col2 +---- +42 +4985 query II rowsort label-4884 SELECT DISTINCT - - 2, - 12 * + + 73 * + 47 * - MIN ( - - 77 ) * 58 AS col1 @@ -25814,8 +26083,11 @@ SELECT ALL - 2 * - - 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - -487542 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* Int64\(66\) \* Int64\(89\) AS col1" at position 0 and "CAST\(\(\- Int64\(\-12\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 83 * + 66 * 89 AS col1, CAST ( - - 12 AS INTEGER ) AS col1 +---- +-487542 +12 query I rowsort label-4903 SELECT ALL CASE + 9 WHEN 63 * + 53 + + 6 THEN 10 - - + 4 * COUNT ( * ) END AS col1 @@ -26119,8 +26391,11 @@ SELECT - - COUNT ( * ), - COALESCE ( - NULLIF ( - MIN ( 70 ), - 60 + COALESCE ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 AS col0, 54 AS col0 +---- +36 +54 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -26288,8 +26563,11 @@ SELECT 78 + ( - + 80 ) + 13 * + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(64\) AS Int32\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( 64 AS INTEGER ) AS col2, 71 AS col2 +---- +64 +71 query II rowsort label-4993 SELECT 70 / - 77 AS col2, 16 * - + 41 @@ -26311,8 +26589,11 @@ SELECT ALL - - ( - 65 ) / 44 * + - 56 AS col2, + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* CASE Int64\(66\) WHEN Int64\(0\) / Int64\(57\) / Int64\(\-8\) \+ Int64\(\-81\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(28\) THEN Int64\(26\) END \* Int64\(1\) \* Int64\(\-9\) \* Int64\(59\) \+ \(\- coalesce\(Int64\(\-59\), nullif\(Int64\(\-47\), Int64\(\-32\) / \(\- Int64\(74\)\) \+ \(\- CAST\(NULL AS Int32\)\) \+ \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\)\) \+ Int64\(\-90\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(41\)\) \+ Int64\(\-56\) \- Int64\(28\) \* Int64\(35\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* max\(Int64\(\-26\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-26 +NULL query I rowsort label-4997 SELECT 50 / + - COUNT ( ALL - - 35 ) @@ -26490,8 +26771,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 75504 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col1" at position 0 and "Int64\(\-26\) \* Int64\(33\) \* Int64\(\-88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 AS col1, - 26 * 33 * - 88 AS col1 +---- +72 +75504 query I rowsort label-5031 SELECT - - CAST ( - CASE + CASE - 48 WHEN 25 THEN + + 0 ELSE 64 END WHEN 3 * 1 THEN + 58 - + 48 ELSE 18 END AS INTEGER ) - 74 AS col0 @@ -26543,8 +26827,11 @@ SELECT DISTINCT - 76 * + 44 * + 52 * + ( + 5 ) # 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\(\(\- Int64\(91\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 col1, COUNT ( - + 91 ) AS col1 +---- +1 +17 query I rowsort label-5041 SELECT ( + 35 ) / - COUNT ( * ) + + ( 38 ) + - ( + 24 ) AS col0 @@ -26668,8 +26955,11 @@ SELECT 20 * - 56 * + 86 + - 78 * + 85 * - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - -848 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col1" at position 0 and "Int64\(92\) \+ Int64\(20\) \* Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 50 AS col1, 92 + 20 * - 47 AS col1 +---- +-848 +50 query I rowsort SELECT DISTINCT + 97 col1 @@ -27162,8 +27452,11 @@ SELECT + - COALESCE ( + 87, + 71 + - 27 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(14\) AS Int32\) AS col1" at position 0 and "max\(Int64\(99\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( + + 14 AS INTEGER ) AS col1, MAX ( + 99 ) AS col1 +---- +14 +99 query I rowsort label-5158 SELECT DISTINCT + + 61 * - - 18 - + CAST ( + + 66 AS INTEGER ) + - 50 @@ -27505,8 +27798,11 @@ SELECT DISTINCT - 26 * 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col0" at position 0 and "min\(Int64\(\-93\)\) \+ Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 22 AS col0, MIN ( - 93 ) + + 21 AS col0 +---- +-72 +22 query I rowsort label-5224 SELECT + COUNT ( DISTINCT 29 ) * + 54 @@ -27634,8 +27930,11 @@ SELECT ALL + 57 * + 70 * - + 44 - - 94 # 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 "Int64\(22\) / \(\- Int64\(32\)\) AS col2" at position 0 and "Int64\(\-57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 / - + 32 col2, - 57 AS col2 +---- +-57 +0 query I rowsort label-5249 SELECT DISTINCT + 16 * - COUNT ( * ) col1 @@ -27655,8 +27954,11 @@ SELECT 70 + - + 36 + - 72 / 25 * 29 # 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\(\-72\)\) / coalesce\(Int64\(98\), \(\- Int64\(\-26\)\) \+ Int64\(0\) / CASE \(\- Int64\(\-70\)\) WHEN Int64\(\-59\) THEN NULL ELSE Int64\(78\) END / Int64\(65\)\) \- Int64\(\-86\) AS col2" at position 0 and "Int64\(91\) \- Int64\(74\) \- Int64\(24\) \- Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + - 72 ) / COALESCE ( 98, - - 26 + 0 / + CASE - - 70 WHEN - 59 THEN NULL ELSE + 78 END / 65 ) - - 86 AS col2, 91 - 74 - 24 - 76 AS col2 +---- +-83 +86 query I rowsort SELECT ALL - - 59 AS col1 @@ -27681,8 +27983,11 @@ SELECT DISTINCT 21 * - ( - COUNT ( * ) ) * - - COUNT ( * ) * + 35 * 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3003 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* Int64\(\-54\) \+ min\(DISTINCT Int64\(\-52\)\) \+ Int64\(81\) \+ \(\- Int64\(63\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 55 * - 54 + MIN ( DISTINCT - 52 ) + 81 + - + 63 + + + COUNT ( * ) AS col0, 66 col0 +---- +-3003 +66 query II rowsort label-5258 SELECT ( + + 17 ) AS col2, COUNT ( * ) @@ -27801,8 +28106,11 @@ SELECT + 51 * - 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col0, 75 AS col0 +---- +1 +75 query I rowsort SELECT + - 81 + - 4 AS col2 @@ -28142,8 +28450,11 @@ SELECT ALL + + 61 + - COALESCE ( - COALESCE ( 7, MIN ( ALL + ( 31 ) ), - 52 * 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 211 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \+ Int64\(88\) \* Int64\(2\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 + + 88 * 2 AS col0, 68 AS col0 +---- +211 +68 query I rowsort SELECT - 44 * + 11 AS col0 @@ -28269,8 +28580,11 @@ SELECT ALL 4 * COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 AS col2, + 94 col2 +---- +42 +94 query I rowsort label-5369 SELECT CAST ( - 18 AS INTEGER ) * - 92 + - 18 * 16 / - 88 @@ -28305,8 +28619,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, 87 AS col1 +---- +-1 +87 query I rowsort label-5376 SELECT 11 + + - ( - COUNT ( * ) ) @@ -28336,8 +28653,11 @@ 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\(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\. +query II valuesort SELECT ALL + - NULLIF ( - - 41, + - 73 ) + - 20 * - - COUNT ( * ) + + 83 AS col0, 12 AS col0 +---- +12 +22 query I rowsort label-5382 SELECT DISTINCT NULLIF ( - - COUNT ( * ), + - CASE - COUNT ( * ) WHEN - + NULLIF ( - - COUNT ( * ), + CAST ( - 61 AS INTEGER ) ) THEN - 37 END ) @@ -28579,8 +28899,11 @@ SELECT + 24 AS col0, 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 2581 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "\(\- Int64\(29\)\) \* Int64\(\-89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 40 AS col0, - ( 29 ) * - 89 AS col0 +---- +2581 +40 query II rowsort SELECT + 81 col1, - 45 @@ -28596,8 +28919,11 @@ SELECT + CASE ( 65 ) WHEN CASE COUNT ( * ) WHEN 30 + + 41 THEN NULL WHEN + - 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12425 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* \(\- Int64\(\-17\)\) \* Int64\(14\) \+ Int64\(73\) / Int64\(\-27\) \- \(\- Int64\(\-41\)\) \+ Int64\(92\) AS col2" at position 0 and "Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 * - + ( - 17 ) * 14 + + 73 / - 27 - - - 41 + + 92 AS col2, 80 AS col2 +---- +12425 +80 query I rowsort label-5430 SELECT CAST ( ( 87 ) AS INTEGER ) AS col1 @@ -28679,8 +29005,11 @@ SELECT DISTINCT + + 29 * 33 + - + 5, + SUM ( - 32 ) + - COALESCE ( - 64, + - 88, # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 99 -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\(99\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 77 col1, MAX ( + + ( 99 ) ) AS col1 +---- +77 +99 query I rowsort label-5446 SELECT ALL 48 / - 16 AS col0 @@ -28842,8 +29171,11 @@ SELECT ALL - NULLIF ( - 30, - 10 * 54 + - 97 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ Int64\(\-39\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 + - 39 AS col1, 96 col1 +---- +-2 +96 query I rowsort label-5477 SELECT - 38 + CAST ( NULL AS INTEGER ) AS col1 @@ -29491,8 +29823,11 @@ SELECT 38 + - 44 * - + SUM ( 68 ) AS col1 # 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\) AS col1" at position 0 and "Int64\(91\) \- min\(Int64\(75\)\) \+ Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 7 AS col1, 91 - MIN ( ALL 75 ) + + 14 col1 +---- +30 +7 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -30008,8 +30343,11 @@ SELECT ALL - - ( - 71 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \- Int64\(80\) \+ Int64\(22\) AS col2" at position 0 and "Int64\(75\) \+ sum\(Int64\(\-43\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 26 - + 80 + + 22 AS col2, 75 + + SUM ( + ( - 43 ) ) AS col2 +---- +-84 +32 query I rowsort label-5703 SELECT DISTINCT 96 * - ( + 40 ) * + CASE - 58 WHEN 0 THEN NULL WHEN 97 + + 2 THEN NULL ELSE - 28 END + CAST ( + 18 AS INTEGER ) AS col2 @@ -30066,8 +30404,11 @@ SELECT ALL - 68 AS col1, - 40 * + COUNT ( * ) + 48 + 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - -118 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col2" at position 0 and "Int64\(\-95\) \+ Int64\(\-23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 AS col2, - 95 + - 23 AS col2 +---- +-118 +75 query I rowsort label-5714 SELECT ALL - CAST ( NULL AS INTEGER ) + - COALESCE ( - ( - 33 ), + + 44, - - COUNT ( DISTINCT 24 ) - - 44 ) + + 14 * - COUNT ( * ) AS col0 @@ -30185,8 +30526,11 @@ SELECT - ( + ( 3 ) ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col1" at position 0 and "\(\- sum\(Int64\(\-11\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 27 col1, + ( - SUM ( ALL + ( + ( - 11 ) ) ) ) col1 +---- +-27 +11 query I rowsort SELECT - ( 0 ) AS col1 @@ -30576,8 +30920,11 @@ SELECT + 50 - - 11 + - 14 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 1769 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) AS col1" at position 0 and "Int64\(33\) \* Int64\(56\) \+ Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 7 AS col1, 33 * 56 + + - 79 AS col1 +---- +-7 +1769 query I rowsort SELECT ALL 89 * + - 79 AS col0 @@ -30669,8 +31016,11 @@ SELECT ALL + COALESCE ( + 60, 22 + + ( + + 83 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(78\)\) AS col1" at position 0 and "Int64\(\-20\) \- \(\- count\(Int64\(\-15\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) * - + 78 AS col1, ( - 20 ) - - + COUNT ( - 15 ) + + COUNT ( * ) * CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 +---- +NULL +NULL query I rowsort SELECT 42 * 95 - 52 * - - ( + 65 ) @@ -31748,8 +32098,11 @@ SELECT + 58 AS col1, + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -203670 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "Int64\(\-45\) \* \(\- Int64\(\-73\)\) \* \(\- Int64\(\-62\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 AS col1, - 45 * - - 73 * - - 62 AS col1 +---- +-203670 +17 query II rowsort SELECT DISTINCT + NULLIF ( + - 3, 87 ) AS col2, NULLIF ( + + 41, - - 59 ) + - 35 AS col0 @@ -32102,8 +32455,11 @@ SELECT ALL - 44 / - 8 + - + 81 # 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\(27\)\) WHEN Int64\(39\) THEN Int64\(83\) 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 II valuesort SELECT DISTINCT - - CASE - + 27 WHEN + 39 THEN 83 ELSE NULL END AS col0, 3 AS col0 +---- +3 +NULL query I rowsort SELECT + - 31 AS col0 @@ -32281,8 +32637,11 @@ 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\(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\. +query II valuesort SELECT - 61 * + 51 - + NULLIF ( + - COUNT ( * ), COUNT ( * ) * - + 94 ) col1, 97 AS col1 +---- +-3110 +97 query II rowsort SELECT ALL - 53, + 70 * + 41 AS col0 @@ -32774,8 +33133,11 @@ SELECT ALL 99 * + 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col2" at position 0 and "Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 50 AS col2, 57 AS col2 +---- +-50 +57 query I rowsort label-6228 SELECT MAX ( - 21 ) + - 49 AS col2 @@ -33233,8 +33595,11 @@ SELECT ALL + SUM ( + 89 ) AS col0 # 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 "Int64\(26\) \* \(\- \(\- min\(Int64\(1\)\)\)\) AS col1" at position 0 and "\(\- Int64\(\-85\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 26 * - - MIN ( 1 ) col1, - ( - 85 ) col1 +---- +26 +85 query I rowsort SELECT - 43 * - 64 AS col2 @@ -33831,8 +34196,11 @@ SELECT ALL 67 / + - 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col1" at position 0 and "\(\- CASE Int64\(46\) WHEN Int64\(8\) \* Int64\(7\) \* CAST\(NULL AS Int32\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(19\) THEN CAST\(NULL AS Int32\) \* Int64\(34\) \* Int64\(84\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-69 +NULL query I rowsort SELECT - ( - 53 ) AS col1 @@ -33963,8 +34331,11 @@ 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\(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\. +query II valuesort 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 +---- +-4057 +NULL query I rowsort label-6454 SELECT ALL 37 * - - MIN ( - ( - 14 ) ) + - CAST ( + COUNT ( * ) AS INTEGER ) @@ -34238,8 +34609,11 @@ SELECT DISTINCT - 83 * - - COUNT ( * ) + - 4 + 20 + - 96 * CASE + - ( - 45 ) WHE # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "Int64\(23\) \+ Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 66 AS col0, 23 + + 93 AS col0 +---- +116 +66 query I rowsort SELECT - + CASE + 48 WHEN - ( - 57 ) THEN NULL WHEN + 92 * 88 THEN + + ( - 63 ) / - ( 53 ) END @@ -35539,8 +35913,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(70\)\) AS col0" at position 0 and "Int64\(\-86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 70 AS col0, - 86 col0 +---- +-70 +-86 query II rowsort label-6758 SELECT 80, NULLIF ( 42, + + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) AS col2 @@ -36508,8 +36885,11 @@ SELECT + COUNT ( * ) * - + 43 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 92 col1, 11 AS col1 +---- +-92 +11 query I rowsort SELECT + + 56 * + 49 AS col2 @@ -36607,8 +36987,11 @@ SELECT DISTINCT 39 + - + 83 / - + MIN ( + 12 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 328 # Datafusion - Expected - 388882 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \* Int64\(\-41\) AS col2" at position 0 and "Int64\(23\) \+ nullif\(\(\- Int64\(\-60\)\), Int64\(74\)\) \* Int64\(\-81\) \* Int64\(\-80\) \+ Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 8 * + - 41 AS col2, 23 + + NULLIF ( - - 60, 74 ) * - 81 * - 80 + + 59 AS col2 +---- +328 +388882 query II rowsort SELECT DISTINCT ( - - 76 ) col2, 89 AS col1 @@ -37467,8 +37850,11 @@ SELECT DISTINCT + + 12 + 64 * 62 + + 35 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-35\)\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 35 AS col2, + 11 AS col2 +---- +11 +35 query I rowsort SELECT ALL 49 + + 53 AS col0 @@ -37604,8 +37990,11 @@ SELECT 52 * COUNT ( - + 68 ) * + 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7743 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(89\) AS col0" at position 0 and "Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 * 89 AS col0, - 94 AS col0 +---- +-94 +7743 query I rowsort SELECT DISTINCT - 14 * + - 34 AS col2 @@ -37721,8 +38110,11 @@ SELECT ALL + 18 - - - 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 390 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col2" at position 0 and "Int64\(20\) \* Int64\(21\) \+ Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 10 AS col2, + 20 * 21 + + - 30 AS col2 +---- +-10 +390 query I rowsort label-7168 SELECT DISTINCT - 45 / 83 AS col0 @@ -38013,8 +38405,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( 14 ) AS col1, COUNT ( * ) * - COUNT ( * ) AS col1 +---- +-1 +14 query I rowsort label-7225 SELECT + - 62 + - - CAST ( + 44 AS INTEGER ) AS col2 @@ -38760,8 +39155,11 @@ SELECT DISTINCT 77 * + 58 / - COUNT ( * ) - ( 77 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 76 AS col2, + 73 AS col2 +---- +-76 +73 query I rowsort SELECT ALL + 26 * - 52 + - 50 AS col2 @@ -39564,8 +39962,11 @@ SELECT - + 30 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2960 # Datafusion - Expected - -2548 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \+ Int64\(33\) \* Int64\(90\) AS col2" at position 0 and "Int64\(49\) \* Int64\(\-52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 10 + 33 * + 90 AS col2, 49 * - 52 AS col2 +---- +-2548 +2960 query I rowsort label-7524 SELECT + COALESCE ( + 85, + + COUNT ( DISTINCT 7 ) + - 11, COUNT ( * ) / + 22 ) * 36 AS col2 @@ -39766,8 +40167,11 @@ SELECT DISTINCT ( - 59 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -153272 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(92\) \* \(\- count\(\(\- Int64\(5\)\)\)\) \* Int64\(17\) \* Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, + 92 * - COUNT ( - + 5 ) * 17 * 98 AS col2 +---- +-153272 +1 query I rowsort label-7563 SELECT + 42 / + COUNT ( * ) - + COALESCE ( + - 94, NULLIF ( 73, + 83 ) - - 27 ) @@ -40029,8 +40433,11 @@ SELECT COUNT ( * ) AS col0, CASE + - 41 WHEN - CAST ( + - 58 AS INTEGER ) + - 37 # 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 col0" at position 0 and "CAST\(NULL AS Float64\) \+ \(\- Int64\(\-92\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL + 11 AS col0, CAST ( NULL AS FLOAT8 ) + - - 92 AS col0 +---- +11 +NULL query I rowsort label-7612 SELECT + MIN ( ALL + 14 ) @@ -40192,8 +40599,11 @@ SELECT ALL COALESCE ( - + 81, + + 42 * + MAX ( DISTINCT + 6 ), - COUNT ( * ) ) * # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 286 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "min\(Int64\(\-26\)\) \* Int64\(\-11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) col0, MIN ( ALL + - 26 ) * - 11 AS col0 +---- +286 +NULL query I rowsort SELECT + 79 + 81 @@ -40238,8 +40648,11 @@ SELECT + 8 * + 65 + - - 2 / + CAST ( + 68 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 420 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-64\)\) AS col1" at position 0 and "count\(Int64\(77\)\) \* \(\- \(\- max\(DISTINCT Int64\(30\)\)\)\) \* Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MAX ( ALL - 64 ) col1, + COUNT ( + 77 ) * - - MAX ( DISTINCT + 30 ) * + + 14 AS col1 +---- +-64 +420 query I rowsort label-7653 SELECT ( CAST ( - - 36 AS INTEGER ) ) @@ -40299,8 +40712,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 67 AS col2, 5 * - 24 + - COUNT ( * ) AS col2 +---- +-121 +-67 query II rowsort SELECT + 21 + - - 20 AS col2, + 28 col1 @@ -40558,14 +40974,20 @@ SELECT + MIN ( DISTINCT 66 ) + - - ( + + 79 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - -126819 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col2" at position 0 and "Int64\(\-33\) \* Int64\(\-61\) \* Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 63 AS col2, - 33 * - 61 * - 63 AS col2 +---- +-126819 +-63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 1287 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "Int64\(39\) \* \(\- Int64\(\-33\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 63 AS col0, 39 * - - 33 AS col0 +---- +1287 +63 query I rowsort SELECT ALL + 83 * - - 28 AS col1 @@ -40609,8 +41031,11 @@ SELECT + 6 + - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- min\(Int64\(\-69\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - MIN ( ALL - 69 ) ) col1, + COUNT ( * ) col1 +---- +-69 +1 query I rowsort label-7724 SELECT + 19 + + 9 * + 6 * + CAST ( NULL AS INTEGER ) AS col0 @@ -40740,8 +41165,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \* Int64\(14\) \+ sum\(DISTINCT Int64\(\-97\)\) \+ nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-88\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 * + 14 + SUM ( DISTINCT - 97 ) + + NULLIF ( - CAST ( NULL AS INTEGER ), - 88 ) AS col1, - COUNT ( * ) / 8 AS col1 +---- +0 +NULL query I rowsort label-7749 SELECT + MIN ( ALL 77 ) * ( - 87 ) * 88 + - - COUNT ( * ) @@ -40993,8 +41421,11 @@ SELECT DISTINCT 26 + + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 AS col2, - CAST ( NULL AS INTEGER ) AS col2 +---- +54 +NULL query I rowsort label-7798 SELECT CAST ( COUNT ( * ) AS INTEGER ) * - 68 + + 65 AS col2 @@ -41333,8 +41764,11 @@ SELECT ALL + 30 * + 68 + + - 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 20 col2, 5 AS col2 +---- +20 +5 query II rowsort label-7862 SELECT ALL 36 * + - COUNT ( * ) + - 65 AS col1, + 43 @@ -41408,8 +41842,11 @@ SELECT DISTINCT NULLIF ( 11, + 88 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(11\) AS Int32\) AS col2" at position 0 and "Int64\(\-36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( + ( 11 ) AS INTEGER ) AS col2, - 36 AS col2 +---- +-36 +11 query I rowsort label-7876 SELECT - CASE WHEN COUNT ( * ) IS NULL THEN 76 / + ( + COALESCE ( + + 18, 9, - + 45 ) ) END + 8 @@ -41617,8 +42054,11 @@ SELECT ALL CAST ( + + 98 AS INTEGER ), 62 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2368 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \+ Int64\(37\) \- Int64\(45\) \* \(\- nullif\(Int64\(\-52\), Int64\(62\) \+ Int64\(1\)\)\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 65 + + 37 - 45 * - NULLIF ( - 52, + 62 + + 1 ) AS col0, + 7 AS col0 +---- +-2368 +7 query I rowsort SELECT ALL - - 12 + + 81 + - + 95 AS col0 @@ -41688,8 +42128,12 @@ SELECT + 78 / + 10 + - + 36 + - - 26 # Datafusion - Expected - 42 # Datafusion - Expected - 1 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 and "Int64\(\-74\) / \(\- coalesce\(\(\- sum\(Int64\(91\)\)\), \(\- Int64\(86\)\) \+ \(\- CASE Int64\(52\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(41\) WHEN Int64\(56\) \* Int64\(39\) THEN NULL WHEN Int64\(\-7\) THEN NULL WHEN CASE Int64\(30\) WHEN Int64\(21\) THEN count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(75\) \* Int64\(31\) THEN NULL ELSE Int64\(\-73\) END \- Int64\(11\) THEN Int64\(99\) \- Int64\(77\) \* CAST\(NULL AS Int32\) WHEN Int64\(62\) THEN NULL ELSE NULL END\) \+ Int64\(22\), Int64\(49\)\)\) \- count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-2 +1 +42 query I rowsort label-7929 SELECT 94 + + + CAST ( + 84 AS INTEGER ) @@ -41760,8 +42204,11 @@ SELECT 25 + - + 28 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 328 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "Int64\(30\) \* Int64\(8\) \+ Int64\(88\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 63 AS col2, 30 * 8 + 88 * + + COUNT ( * ) AS col2 +---- +328 +63 query I rowsort SELECT 4 + + + 67 * ( - + 53 ) @@ -41922,8 +42369,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 * + 16 col2, 75 - + - 41 - - ( + + COUNT ( * ) ) AS col2 +---- +117 +400 query I rowsort label-7973 SELECT + 66 * - + 79 + 5 + - CASE - 50 WHEN - - MAX ( ALL - - 70 ) THEN - 53 WHEN - - COUNT ( DISTINCT + 91 ) THEN NULL ELSE NULL END @@ -41938,8 +42388,11 @@ SELECT MIN ( 39 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 AS col0, 81 AS col0 +---- +53 +81 query I rowsort label-7976 SELECT + NULLIF ( - 92, + NULLIF ( + 44, - COUNT ( * ) ) ) @@ -41984,8 +42437,11 @@ SELECT - + 85 + - - 65 - + + 69 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 210 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* \(\- Int64\(\-3\)\) AS col0" at position 0 and "CAST\(\(\- Int64\(32\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 70 * - - 3 col0, CAST ( - + 32 AS INTEGER ) AS col0 +---- +-32 +210 query II rowsort label-7985 SELECT DISTINCT 40 * - + 32 AS col2, - COUNT ( * ) @@ -42176,8 +42632,11 @@ SELECT DISTINCT 24 * + - 27 + + ( + - NULLIF ( + - 3, - + 70 * - ( 29 ) * + 38 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1804 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \* Int64\(\-44\) AS col0" at position 0 and "Int64\(74\) \+ \(\- Int64\(\-25\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 41 * - 44 AS col0, ( 74 ) + - ( - 25 ) AS col0 +---- +1804 +99 query II rowsort label-8022 SELECT ALL + ( 92 ) AS col0, 78 / 62 AS col1 @@ -42640,8 +43099,11 @@ SELECT DISTINCT - COUNT ( ALL + - 98 ) + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(55\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- Int64\(\-49\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 55 ) AS col2, CAST ( NULL AS INTEGER ) + - - 49 AS col2 +---- +-55 +NULL query I rowsort label-8110 SELECT ALL + - MIN ( DISTINCT - 78 ) + MIN ( 71 ) @@ -42936,8 +43398,11 @@ SELECT DISTINCT 66 * - ( - - 12 ) AS col0 # 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\(91\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 91 AS col2, + 7 AS col2 +---- +7 +91 query I rowsort label-8167 SELECT COUNT ( * ) * + + 98 AS col1 @@ -43010,8 +43475,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 9 + COUNT ( * ) AS col2, 77 AS col2 +---- +10 +77 query I rowsort label-8181 SELECT 2 * - 7 * + + 66 / - - COUNT ( * ) + - + 98 + - 17 + + - 23 + + 94 AS col1 @@ -43026,8 +43494,11 @@ SELECT ALL - - 54 + + + 72 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 AS col2, + 41 AS col2 +---- +41 +94 query I rowsort label-8184 SELECT - 58 / - - COALESCE ( + + 31, - + 42 * - 66 + 70 ) + + - ( - - 36 ) AS col1 @@ -43158,8 +43629,11 @@ SELECT DISTINCT ( - COALESCE ( + CAST ( NULL AS INTEGER ), - + 61 * - 13 ) ) + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 112 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ Int64\(56\) AS col0" at position 0 and "Int64\(\-13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 56 + + 56 AS col0, - 13 AS col0 +---- +-13 +112 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -43207,14 +43681,20 @@ SELECT DISTINCT - - 28 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 110 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \+ Int64\(45\) AS col2" at position 0 and "Int64\(42\) / CAST\(Int64\(\-68\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 65 + + + 45 AS col2, 42 / CAST ( - 68 AS INTEGER ) AS col2 +---- +0 +110 # 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\(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\. +query II valuesort SELECT - ( + 61 ) AS col1, COUNT ( * ) * + - MAX ( 79 ) * + 70 + 29 + - 70 - 27 AS col1 +---- +-5598 +-61 query I rowsort label-8219 SELECT ALL - 73 * + 1 + - 10 - + + 58 * - COUNT ( 29 ) + - + 91 + ( CAST ( NULL AS INTEGER ) ) / - + 96 + - - 63 AS col0 @@ -43282,8 +43762,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 27 AS col2, - COUNT ( * ) AS col2 +---- +-1 +27 query II rowsort label-8232 SELECT - COUNT ( * ), + 13 AS col2 @@ -43539,8 +44022,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 146 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT \(\- Int64\(\-30\)\)\) \+ \(\- Int64\(32\)\) \+ Int64\(76\) \+ Int64\(\-25\) \* Int64\(56\) / Int64\(91\) \+ Int64\(87\) AS col0" at position 0 and "max\(\(\- Int64\(9\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MIN ( DISTINCT + ( - - 30 ) ) + - + 32 + 76 + - 25 * 56 / + 91 + + 87 AS col0, + MAX ( - + 9 ) AS col0 +---- +-9 +146 query I rowsort label-8280 SELECT DISTINCT CAST ( - CASE - - 53 WHEN - 61 THEN + + CAST ( 12 AS INTEGER ) / - CAST ( NULL AS FLOAT8 ) * + + 36 WHEN - - 22 * + 44 + ( - 40 ) + 61 THEN NULL ELSE 41 END AS INTEGER ) AS col2 @@ -43868,8 +44354,11 @@ SELECT ALL MIN ( DISTINCT 76 ) / + 17 # 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 "Int64\(3\) \+ Int64\(\-32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 95 AS col2, 3 + + - 32 AS col2 +---- +-29 +-95 query I rowsort label-8344 SELECT CASE + CAST ( 9 AS INTEGER ) WHEN + 57 THEN NULL ELSE + + 80 * 59 END * - COUNT ( * ) + - 51 AS col0 @@ -44386,8 +44875,11 @@ SELECT DISTINCT - ( 10 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - AVG ( + + CAST ( NULL AS INTEGER ) ) col2, + COUNT ( * ) AS col2 +---- +1 +NULL query I rowsort SELECT 62 * + 38 @@ -44662,8 +45154,12 @@ SELECT ALL - 27 * - + 52 * + 96 # Datafusion - Expected - 45 # Datafusion - Expected - 16 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 1 and "Int64\(25\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 45 col0, 16 AS col2, + 25 AS col2 +---- +16 +25 +45 query I rowsort SELECT ALL ( 59 ) AS col0 @@ -44688,8 +45184,11 @@ SELECT ALL 13 * - + 84 * + + MAX ( - - ( - 8 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(71\) AS col1" at position 0 and "Int64\(8\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \- Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) * 71 AS col1, 8 * - - CAST ( NULL AS INTEGER ) - + + 99 AS col1 +---- +-71 +NULL query I rowsort SELECT DISTINCT ( - 69 ) AS col0 @@ -44968,8 +45467,11 @@ SELECT + - 62 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4601 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* \(\- Int64\(9\)\) \* \(\- CAST\(Int64\(6\) AS Int32\)\) \+ \(\- Int64\(43\)\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 86 * - + 9 * - CAST ( + 6 AS INTEGER ) + - + 43 col1, 45 AS col1 +---- +45 +4601 query I rowsort label-8553 SELECT + 33 - 16 * - 93 * + - 43 * ( + COUNT ( * ) ) col2 @@ -45067,8 +45569,11 @@ SELECT ( - 64 ) * + - 10 + + 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col2" at position 0 and "Int64\(57\) \+ Int64\(\-44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 76 AS col2, 57 + - 44 col2 +---- +-76 +13 query I rowsort label-8571 SELECT DISTINCT 1 + - COUNT ( * ) @@ -45199,8 +45704,12 @@ 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\(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\. +query III valuesort 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 +---- +-12 +25 +50 query I rowsort label-8596 SELECT DISTINCT + + ( + ( - 39 ) ) * CAST ( NULL AS INTEGER ) @@ -45671,8 +46180,11 @@ SELECT 51 + + - 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 99 col1, 26 AS col1 +---- +26 +99 query II rowsort SELECT ALL 3 AS col0, 24 AS col2 @@ -46062,8 +46574,11 @@ SELECT DISTINCT 47 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 14 AS col2, + 95 col2 +---- +14 +95 query II rowsort label-8762 SELECT + 80 + MAX ( + 63 ) AS col2, 39 + + + 59 * - 21 + 42 + + 32 @@ -46110,8 +46625,11 @@ SELECT 20 / - 45 + - 31 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(9\) \+ Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MIN ( - + CAST ( NULL AS INTEGER ) ) AS col0, 9 + + 47 AS col0 +---- +56 +NULL query I rowsort label-8771 SELECT + CAST ( + 37 AS INTEGER ) @@ -46227,8 +46745,11 @@ SELECT DISTINCT - - 45 * 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 364865 # Datafusion - Expected - 1150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \- \(\- max\(DISTINCT Int64\(0\)\)\) \+ \(\- Int64\(23\)\) \+ Int64\(80\) \* Int64\(48\) \* Int64\(95\) AS col2" at position 0 and "Int64\(23\) \* Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 88 - - MAX ( DISTINCT 0 ) + - + 23 + + 80 * 48 * + + 95 AS col2, 23 * + 50 col2 +---- +1150 +364865 query I rowsort SELECT - + 72 + - ( - 12 ) AS col1 @@ -46444,8 +46965,11 @@ 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\(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\. +query II valuesort SELECT ALL - + COUNT ( * ) * - 80 * - COUNT ( * ) + 88 * - 9 AS col2, + 21 + COALESCE ( COUNT ( * ), - COUNT ( * ) * 92 + + 62, - 10 + 96 + 78 * + 42 * + COUNT ( * ) + - 68 ) AS col2 +---- +-872 +22 query I rowsort SELECT ALL - 64 * - - 77 * 44 AS col1 @@ -46597,8 +47121,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "Int64\(31\) \- Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 66 AS col0, 31 - 11 AS col0 +---- +20 +66 query II rowsort label-8863 SELECT + 21 AS col1, 52 + - + COUNT ( DISTINCT - 59 ) @@ -46713,8 +47240,11 @@ 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 col2" at position 0 and "Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( 3 ) AS col2, - 38 AS col2 +---- +-38 +3 query II rowsort label-8885 SELECT - 65 - + NULLIF ( + - 95, + 50 ) + + - COUNT ( * ), - 8 AS col1 @@ -47028,8 +47558,11 @@ SELECT ALL 38 + + 95 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 3216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col2" at position 0 and "Int64\(\-85\) \* Int64\(\-38\) \+ Int64\(54\) \+ \(\- Int64\(68\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 79 AS col2, - 85 * - 38 + 54 + - + 68 col2 +---- +3216 +79 query I rowsort label-8946 SELECT + + COALESCE ( + - 12, + - MAX ( DISTINCT + - 63 ) ) @@ -47844,8 +48377,11 @@ SELECT ALL 66 + - - 83 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 4620 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 0 and "Int64\(77\) \* Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 11 col0, 77 * 60 AS col0 +---- +11 +4620 query I rowsort label-9106 SELECT COUNT ( * ) + + 61 AS col0 @@ -48749,8 +49285,12 @@ SELECT ALL + 53 - 81 AS col2 # Datafusion - Expected - -2162 # Datafusion - Expected - 1 # Datafusion - Expected - -184058 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col2" at position 1 and "Int64\(87\) \* Int64\(\-23\) \* Int64\(92\) \+ Int64\(34\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - 47 * - 46 AS col1, 1 AS col2, + ( 87 ) * - 23 * + + 92 + 34 * COUNT ( * ) AS col2 +---- +-184058 +-2162 +1 query I rowsort label-9282 SELECT - - 31 - - 26 + - ( - COUNT ( * ) ) col0 @@ -48928,8 +49468,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(19\), Int64\(\-87\)\)\) AS col1" at position 0 and "Int64\(\-89\) / \(\- Int64\(\-38\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( 19, - 87 ) AS col1, - 89 / - - 38 AS col1 +---- +-19 +-2 query I rowsort SELECT + - 68 col1 @@ -48939,8 +49482,11 @@ SELECT + - 68 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 524472 # Datafusion - Expected - -170 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* \(\- Int64\(\-82\)\) \* Int64\(78\) AS col0" at position 0 and "Int64\(\-71\) \+ Int64\(\-3\) \- Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 82 * - - 82 * + + 78 AS col0, - 71 + - 3 - + 96 AS col0 +---- +-170 +524472 query I rowsort label-9318 SELECT + + 76 / + - 90 * + + 81 @@ -49008,8 +49554,11 @@ SELECT - 36 + - + 42 + + - 49 * 40 * - 52 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 240 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(40\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(80\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 * + 40 AS col0, COUNT ( * ) * + 80 + COUNT ( * ) AS col0 +---- +240 +81 query I rowsort label-9330 SELECT - 12 + - - COALESCE ( - 47, 24 * COUNT ( * ) / - ( 39 ) + + 63 * - 41 + 75, - 54 * 34 - - 25 ) @@ -49179,8 +49728,11 @@ SELECT ( + 62 ) / - 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 246 # Datafusion - Expected - 165 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(82\) AS Int32\) \+ min\(\(\- Int64\(\-95\)\)\) \+ Int64\(69\) AS col1" at position 0 and "Int64\(70\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(79\) \+ Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( + 82 AS INTEGER ) + + MIN ( ALL - - 95 ) + 69 AS col1, + 70 + + COUNT ( * ) / + + 79 + + 95 AS col1 +---- +165 +246 query I rowsort label-9363 SELECT DISTINCT COUNT ( * ) * 29 AS col0 @@ -49366,8 +49918,11 @@ SELECT ALL ( COUNT ( DISTINCT + 12 ) ) - 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 41 AS col1, + COUNT ( * ) AS col1 +---- +1 +41 query I rowsort SELECT ALL - 79 - + 75 AS col1 @@ -49444,8 +49999,11 @@ SELECT ALL + - 75 * 49 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 36414 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col2" at position 0 and "Int64\(17\) \* Int64\(63\) \* Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 95 AS col2, + 17 * + 63 * + 34 col2 +---- +-95 +36414 query I rowsort label-9413 SELECT - - 31 / - 7 @@ -50095,8 +50653,11 @@ SELECT ALL + 84 - - COUNT ( * ) + - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(17\) / Int64\(42\) AS col2" at position 0 and "Int64\(\-30\) \+ \(\- \(\- nullif\(Int64\(\-6\), \(\- CAST\(coalesce\(Int64\(\-14\), Int64\(2\) \* Int64\(90\) \- Int64\(10\), Int64\(46\) \+ Int64\(63\) \* count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\)\)\)\) \* Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 * 17 / + 42 col2, - 30 + - - NULLIF ( - 6, - CAST ( COALESCE ( - 14, 2 * + 90 - + 10, 46 + 63 * + + COUNT ( * ) ) AS INTEGER ) ) * ( + 3 ) AS col2 +---- +-48 +10 query I rowsort label-9537 SELECT + - 4 / + 32 * - 94 @@ -50183,8 +50744,11 @@ 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\(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\. +query II valuesort SELECT - COALESCE ( - 48, + 98, + - 35 * 89 + - + COUNT ( * ) * 38 + 41 ) * + 60 * + 7 * - 95 AS col2, COUNT ( * ) * - - COALESCE ( - 95, + + 90 ) AS col2 +---- +-1915200 +-95 query I rowsort label-9554 SELECT DISTINCT 73 / - COUNT ( * ) + - 62 AS col2 @@ -50204,8 +50768,11 @@ SELECT + ( - 51 ) + + - 0 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # 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 "Int64\(80\) \- Int64\(\-14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 81 col1, 80 - - 14 AS col1 +---- +81 +94 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -50292,8 +50859,12 @@ 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\(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\. +query III valuesort SELECT DISTINCT 70, - NULLIF ( + 94, + COUNT ( * ) * + NULLIF ( - - 82, 27 ) * + - 31 ) / 29 AS col1, + 36 + - 5 AS col1 +---- +-3 +31 +70 query I rowsort SELECT ALL 85 * 25 - - 49 @@ -50533,8 +51104,11 @@ SELECT COUNT ( DISTINCT 8 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 10080 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col1" at position 0 and "Int64\(4\) \* \(\- Int64\(84\)\) \* Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 18 AS col1, 4 * - + 84 * - 30 AS col1 +---- +-18 +10080 query I rowsort SELECT ALL 46 * + - NULLIF ( + ( - 18 ), - 76 ) - + 84 * 64 @@ -50648,8 +51222,11 @@ 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\(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\. +query II valuesort SELECT - 24 + + 68 + - - COUNT ( * ) * ( - 25 ) + - + 16 * - SUM ( - 17 ) * - + 35 AS col1, 17 + - 48 AS col1 +---- +-31 +9539 query I rowsort SELECT DISTINCT + ( + 49 ) + 78 * + + 39 @@ -52215,8 +52792,11 @@ SELECT CAST ( + - 53 AS INTEGER ) - - - 99 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 "Int64\(1\) AS col0" at position 0 and "\(\- \(\- Int64\(\-98\)\)\) \* \(\- count\(Int64\(\-55\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 1 AS col0, ( ( - - ( - 98 ) ) ) * - COUNT ( - 55 ) AS col0 +---- +1 +98 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] diff --git a/data/sqlite/random/expr/slt_good_41.slt b/data/sqlite/random/expr/slt_good_41.slt index c7037ca..f3ca889 100644 --- a/data/sqlite/random/expr/slt_good_41.slt +++ b/data/sqlite/random/expr/slt_good_41.slt @@ -266,8 +266,11 @@ SELECT ALL COALESCE ( - - 72, - - 52 * + COALESCE ( + 52, + + 1 ) + - + 66 ) * 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(0\) \* \(\- Int64\(\-97\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, + 0 * - - 97 AS col2 +---- +0 +1 query I rowsort SELECT ALL - 70 + - 6 AS col1 @@ -399,8 +402,11 @@ SELECT DISTINCT + + NULLIF ( MIN ( + + 9 ), + 82 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -9946 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(Int64\(74\), Int64\(62\)\)\)\) AS col1" at position 0 and "\(\- sum\(Int64\(94\)\)\) \* \(\- Int64\(\-88\)\) \- coalesce\(\(\- Int64\(\-18\)\), Int64\(99\) \* Int64\(\-24\) \+ \(\- Int64\(\-28\)\) \+ Int64\(\-67\), \(\- count\(\(\- Int64\(\-75\)\)\)\) \* \(\- CASE Int64\(\-81\) WHEN Int64\(\-66\) THEN Int64\(71\) \* Int64\(\-95\) \* CASE Int64\(26\) WHEN Int64\(\-83\) THEN Int64\(23\) END \- \(\- Int64\(22\)\) \+ CAST\(\(\- sum\(Int64\(53\)\)\) AS Int32\) \* \(\- CAST\(Int64\(32\) AS Int32\)\) \+ Int64\(29\) WHEN CASE Int64\(54\) WHEN Int64\(\-88\) \* Int64\(\-86\) THEN Int64\(78\) \* CAST\(NULL AS Int32\) END THEN NULL WHEN Int64\(74\) / CAST\(NULL AS Int32\) \+ Int64\(25\) THEN NULL END\)\) \* Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - + NULLIF ( + + 74, + 62 ) ) AS col1, - SUM ( ALL 94 ) * - - 88 - + + COALESCE ( - - 18, + 99 * - 24 + - - 28 + - 67, - COUNT ( ALL - - 75 ) * - CASE + - 81 WHEN + - 66 THEN 71 * - 95 * + + CASE 26 WHEN - 83 THEN + 23 END - - + 22 + CAST ( - SUM ( ALL 53 ) AS INTEGER ) * - CAST ( + 32 AS INTEGER ) + 29 WHEN CASE 54 WHEN - 88 * - 86 THEN + 78 * CAST ( NULL AS INTEGER ) END THEN NULL WHEN + 74 / ( CAST ( NULL AS INTEGER ) ) + 25 THEN NULL END ) * 93 AS col1 +---- +-9946 +74 query I rowsort SELECT + - 28 * + + 14 + - - 55 @@ -707,8 +713,12 @@ SELECT + COUNT ( DISTINCT - 54 ) AS col2 # Datafusion - Expected - 1200 # Datafusion - Expected - -6080 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(24\) AS col1" at position 0 and "Int64\(84\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 50 * - - COUNT ( * ) * + 24 AS col1, + 76 * + + MAX ( - 80 ) AS col0, 84 * + COUNT ( * ) AS col1 +---- +-6080 +1200 +84 query I rowsort label-127 SELECT DISTINCT + COUNT ( * ) * 98 + ( + + 84 ) AS col1 @@ -1195,8 +1205,11 @@ SELECT 20 AS col2, + COALESCE ( + 94, - + 53 ), + 86 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-50\)\) AS col1" at position 0 and "min\(Int64\(\-15\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 50 AS col1, MIN ( + - 15 ) AS col1 +---- +-15 +50 query I rowsort label-218 SELECT - 67 * - COUNT ( * ) @@ -1379,8 +1392,11 @@ SELECT ALL + 78 + 12 - + 10 / NULLIF ( - 55, - + 29 + + 85 + - COALESCE ( - 85, # Datafusion - Datafusion expected results: # Datafusion - Expected - 1935 # Datafusion - Expected - -18792 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(97\)\) \+ coalesce\(\(\- Int64\(\-31\)\), Int64\(81\) \- Int64\(\-86\)\) \* Int64\(66\) \+ \(\- min\(Int64\(14\)\)\) AS col0" at position 0 and "coalesce\(Int64\(\-6\), Int64\(\-61\), \(\- sum\(Int64\(\-26\)\)\)\) \* \(\- Int64\(58\)\) \* \(\- coalesce\(Int64\(54\), Int64\(78\) \* CASE Int64\(\-10\) WHEN Int64\(\-17\) THEN Int64\(90\) \+ Int64\(86\) ELSE NULL END\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 97 + COALESCE ( - - 31, 81 - - 86 ) * + + 66 + - + MIN ( ALL + 14 ) AS col0, COALESCE ( - 6, - 61, - ( SUM ( ALL - 26 ) ) ) * - + 58 * + ( - + COALESCE ( 54, 78 * + CASE + - 10 WHEN - 17 THEN 90 + 86 ELSE NULL END ) ) col0 +---- +-18792 +1935 query II rowsort SELECT ALL 80 * - 47, 49 AS col2 @@ -2069,8 +2085,12 @@ SELECT - MAX ( DISTINCT - + 80 ) + - 45 # Datafusion - Expected - 82 # Datafusion - Expected - -96 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "\(\- Int64\(37\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL ( + + 82 ) AS col0, NULLIF ( - + 96, + - 43 ), - + ( 37 ) AS col0 +---- +-37 +-96 +82 query I rowsort SELECT - NULLIF ( 4, - 19 * + 29 ) @@ -2453,8 +2473,11 @@ SELECT DISTINCT + 50 * + + 21, 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 261 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(91\)\)\) AS col1" at position 0 and "Int64\(3\) \* Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( + + 91 ) AS col1, 3 * + 87 AS col1 +---- +-91 +261 query I rowsort SELECT 27 + - 68 + + - 43 AS col0 @@ -2608,8 +2631,11 @@ 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\(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\. +query II valuesort SELECT - ( - COALESCE ( - 98, - 57, MIN ( ALL - + 53 ) * + - COUNT ( * ) ) ) * - 22 AS col2, 68 AS col2 +---- +2156 +68 query I rowsort SELECT - 70 * 46 @@ -3133,8 +3159,11 @@ SELECT DISTINCT ( 96 ) + + 42 AS col0, - 58 * + - COUNT ( * ) / 99 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \+ Int64\(67\) / Int64\(\-31\) AS col1" at position 0 and "Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 96 + + 67 / - 31 AS col1, 77 AS col1 +---- +77 +94 query I rowsort label-587 SELECT ALL CAST ( - 40 AS INTEGER ) + - 67 * + 89 @@ -3298,8 +3327,11 @@ SELECT - - 13 + 0 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 7252 -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\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 19 AS col2, + 98 * + 74 col2 +---- +-19 +7252 query I rowsort SELECT ALL + ( + 89 ) + + 34 @@ -4298,8 +4330,11 @@ SELECT 77 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \+ Int64\(42\) AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 26 + 42 AS col0, 59 AS col0 +---- +59 +68 query II rowsort label-813 SELECT 96 / + COUNT ( * ), + COUNT ( * ) AS col2 @@ -4727,8 +4762,12 @@ SELECT + + 42 + - 72 + CASE - 91 WHEN + NULLIF ( - 37, + COUNT ( * ) + 76 ) + ( # Datafusion - Expected - -94 # Datafusion - Expected - -26 # 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 "Int64\(2\) \* Int64\(\-29\) \- Int64\(\-32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 94 AS col0, 2 * - 29 - - 32 AS col0, - 0 +---- +-26 +-94 +0 query I rowsort label-895 SELECT + - 67 / - - 10 AS col1 @@ -4931,8 +4970,11 @@ SELECT DISTINCT + 83 + CAST ( - - 90 AS INTEGER ) + 57 + + COALESCE ( - + 17, + # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \+ Int64\(37\) AS col1" at position 0 and "Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 25 + + 37 col1, + 98 AS col1 +---- +12 +98 query I rowsort SELECT DISTINCT 46 * - 45 col0 @@ -5260,8 +5302,12 @@ NULL # Datafusion - Expected - -22698 # Datafusion - Expected - 92 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \* Int64\(\-26\) \* \(\- CAST\(Int64\(97\) AS Int32\)\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 9 * ( - 26 ) * - CAST ( 97 AS INTEGER ) col1, 92 AS col1, + 19 +---- +-22698 +19 +92 query II rowsort label-997 SELECT DISTINCT 41 AS col2, + MIN ( + CASE - ( + 15 ) WHEN 11 THEN NULL ELSE 27 / - + ( + + 83 ) * - 14 END ) AS col0 @@ -5462,8 +5508,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COALESCE ( COUNT ( * ), - + COUNT ( DISTINCT 58 ) * 50, - 83 ) AS col1, + 50 AS col1 +---- +1 +50 query I rowsort label-1036 SELECT 60 * + 70 * + COUNT ( * ) + - + COUNT ( * ) + 32 @@ -5636,8 +5685,11 @@ SELECT ALL 45 + 93 - 14 * + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -6876 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(77\) \* Int64\(\-90\) \- \(\- Int64\(54\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 4 + + + COUNT ( * ) AS col0, 77 * - 90 - - + 54 AS col0 +---- +-6876 +5 query I rowsort label-1068 SELECT COUNT ( * ) + - + 88 + 61 AS col1 @@ -5754,8 +5806,11 @@ SELECT ALL + 86 + 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 AS col1, COUNT ( * ) col1 +---- +1 +34 query I rowsort label-1091 SELECT 96 * 35 * + CAST ( - COALESCE ( 70, + 32 ) AS INTEGER ) + + + ( + 30 ) + - COUNT ( * ) * - + ( + + 17 ) * CASE COUNT ( * ) WHEN - CAST ( COUNT ( * ) AS INTEGER ) * 11 THEN + 64 * 25 END @@ -5782,8 +5837,11 @@ SELECT COALESCE ( + - 55, - - 59 ) + + - COUNT ( * ) * + 2 * + COUNT ( * ) - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 143 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "Int64\(94\) \+ Int64\(36\) \+ \(\- CAST\(Int64\(71\) AS Int32\)\) \+ Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 44 col2, 94 + + 36 + - CAST ( 71 AS INTEGER ) + + 84 AS col2 +---- +143 +44 query I rowsort label-1096 SELECT + COUNT ( - 39 ) * - 78 @@ -6301,8 +6359,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 10 * + 84, - 96 - - COUNT ( * ) AS col1, - + COUNT ( * ) AS col1 +---- +-1 +-95 +840 query II rowsort SELECT DISTINCT - 47, 0 AS col1 @@ -6381,8 +6443,11 @@ SELECT ALL 5 AS col1, + 24 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "Int64\(61\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 57 AS col0, 61 * + COUNT ( * ) AS col0 +---- +57 +61 query I rowsort SELECT ( 21 ) * + 53 - + + 49 @@ -6793,8 +6858,11 @@ SELECT DISTINCT 22 / + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1536 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(40\) \+ Int64\(16\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \- Int64\(\-41\) \* CAST\(Int64\(\-63\) AS Float64\) \* \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-13\) \* Int64\(36\) THEN Int64\(95\) \+ Int64\(\-51\) \+ Int64\(30\) \+ Int64\(21\) \+ Int64\(37\) \* Int64\(\-22\) \* \(\- Int64\(\-52\)\) \* Int64\(24\) \* count\(Int64\(1\)\) AS count\(\*\) END\) \* Int64\(11\) \+ Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +1536 +NULL query I rowsort label-1283 SELECT ALL COUNT ( * ) * CAST ( 40 AS INTEGER ) + - - 78 AS col2 @@ -7255,8 +7323,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(\-11\) / Int64\(\-52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 24 + - MAX ( - 61 ) AS col2, COUNT ( * ) - - 11 / - 52 AS col2 +---- +1 +85 query II rowsort label-1370 SELECT - + 22 AS col0, CAST ( NULL AS INTEGER ) @@ -7342,8 +7413,11 @@ SELECT ALL 44, - 55 + - 67 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5704 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \* Int64\(92\) AS col1" at position 0 and "coalesce\(Int64\(12\), min\(\(\- Int64\(22\)\)\)\) \+ Int64\(\-77\) \+ Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 62 * + 92 AS col1, + COALESCE ( 12, + MIN ( - ( + 22 ) ) ) + - 77 + 96 AS col1 +---- +-5704 +31 query II rowsort SELECT DISTINCT + 45 AS col2, 90 * - - 64 * - 57 + - - 83 @@ -7695,8 +7769,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 1617 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col1" at position 0 and "Int64\(77\) \* Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 col1, 77 * + + 21 col1 +---- +-10 +1617 query I rowsort SELECT DISTINCT 75 + + + 34 AS col1 @@ -7711,8 +7788,11 @@ SELECT ALL 34 + - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - -713 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-23\)\) \* Int64\(\-31\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - - 23 ) * - 31 AS col0, + 41 AS col0 +---- +-713 +41 query I rowsort label-1456 SELECT 89 * 93 * 9 - - ( - - COUNT ( * ) ) + SUM ( - 25 ) AS col0 @@ -8080,8 +8160,12 @@ SELECT DISTINCT - 16 * - 3 # Datafusion - Expected - 26 # Datafusion - Expected - 61 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "Int64\(1\) \+ Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 26 AS col1, 1 + + 60 AS col1, + - 35 +---- +-35 +26 +61 query I rowsort SELECT - 50 * + + ( + 40 ) AS col0 @@ -8561,8 +8645,11 @@ SELECT ALL 24 * - - 39 + + 26 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col1" at position 0 and "Int64\(75\) \+ Int64\(\-97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 56 AS col1, 75 + - 97 AS col1 +---- +-22 +56 query I rowsort SELECT ALL 49 * - + 61 + 38 @@ -8572,8 +8659,11 @@ SELECT ALL 49 * - + 61 + 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) / \(\- Int64\(30\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 / - ( + + 30 ) AS col1, COUNT ( * ) AS col1 +---- +-2 +1 query I rowsort SELECT ALL - 39 * ( 32 ) * - 86 + ( + 35 ) @@ -8668,8 +8758,11 @@ SELECT + 66 + - CAST ( + + 82 AS INTEGER ) AS col1, 42 + 34 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "Int64\(62\) \+ Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 42 AS col2, + 62 + + 46 AS col2 +---- +108 +42 query I rowsort SELECT + 27 * - 56 - - ( + + 62 ) * - + 84 + - 93 * + 15 @@ -8760,8 +8853,11 @@ 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\(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\. +query II valuesort SELECT ALL + 33 + COUNT ( * ) * + 23 AS col1, MIN ( DISTINCT 40 ) / + ( 62 ) * + 60 AS col1 +---- +0 +56 query II rowsort SELECT ALL - 4, + NULLIF ( 95, 60 ) AS col0 @@ -8885,8 +8981,11 @@ 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\(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\. +query II valuesort SELECT - 60 - - COUNT ( * ) AS col2, 16 * + 88 AS col2 +---- +-59 +1408 query I rowsort SELECT + - 33 * - + 65 @@ -9201,8 +9300,11 @@ 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\(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\. +query II valuesort 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 +---- +1 +6090 query I rowsort label-1740 SELECT ALL ( - + 50 ) / 58 @@ -9217,8 +9319,11 @@ SELECT ( 98 ) * 16 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / Int64\(\-31\) \* \(\- Int64\(\-33\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 74 AS col1, + CAST ( NULL AS INTEGER ) / + ( - 31 ) * + ( - - 33 ) AS col1 +---- +74 +NULL query I rowsort label-1743 SELECT DISTINCT ( - 15 ) / + SUM ( DISTINCT + 28 ) col1 @@ -9389,8 +9494,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-15\), nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(23\) \- \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-99\) \* Int64\(\-91\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(43\)\)\) AS col0" at position 0 and "Int64\(\-83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COALESCE ( - 15, NULLIF ( - COUNT ( * ), + 23 - - CAST ( NULL AS INTEGER ) + + - 99 * - 91 + + COUNT ( * ) - + + 43 ) ) AS col0, - 83 AS col0 +---- +-15 +-83 query II rowsort label-1776 SELECT + 31 - + - 84 AS col0, - NULLIF ( - MAX ( + + 22 ), + 25 ) * COALESCE ( + - COUNT ( * ), - - COUNT ( * ) ) + 81 AS col2 @@ -9479,8 +9587,11 @@ SELECT + + ( + 16 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1968 # Datafusion - Expected - 17 -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\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 82 * + ( 24 ) AS col1, 17 col1 +---- +-1968 +17 query I rowsort label-1793 SELECT ALL 27 / 29 * - COUNT ( * ) / MIN ( DISTINCT - 60 ) AS col2 @@ -10244,8 +10355,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + COUNT ( * ) ) AS col1, + 71 AS col1 +---- +1 +71 query I rowsort label-1940 SELECT + 48 * 17 + + COALESCE ( - 52, + CASE + 47 WHEN - COUNT ( * ) / - 85 THEN 42 + ( + 82 ) / - 47 END, - - 8 + 65 * + 64 + 71 / - SUM ( ALL + 54 ) * + + COUNT ( * ) ) col2 @@ -10354,8 +10468,11 @@ SELECT 4 / + NULLIF ( + 90, - COUNT ( * ) * - - NULLIF ( - 53, + 47 + + MIN ( AL # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \+ Int64\(10\) AS col1" at position 0 and "Int64\(11\) \+ Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 40 + 10 AS col1, 11 + + - 16 AS col1 +---- +-30 +-5 query I rowsort label-1961 SELECT DISTINCT + 69 / + NULLIF ( COALESCE ( + + CAST ( + 80 AS INTEGER ), - 64 ), - 53 ) * + + 13 + + + 54 @@ -10474,8 +10591,11 @@ SELECT DISTINCT 73 - + - 31 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 408 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "Int64\(\-12\) \* Int64\(\-34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 AS col2, - 12 * + - 34 col2 +---- +408 +89 query I rowsort label-1984 SELECT DISTINCT CAST ( NULL AS INTEGER ) * 34 AS col0 @@ -10612,8 +10732,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, 43 AS col0 +---- +1 +43 query I rowsort SELECT ALL 4 * + 86 * - 24 @@ -11002,8 +11125,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 53 AS col1, CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1 +---- +53 +NULL query I rowsort label-2085 SELECT ALL NULLIF ( 91, CAST ( NULL AS INTEGER ) ) @@ -11118,8 +11244,11 @@ SELECT DISTINCT + COUNT ( * ) / + + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7275 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* Int64\(75\) AS col0" at position 0 and "Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 97 * 75 AS col0, ( - 66 ) AS col0 +---- +-66 +7275 query I rowsort SELECT DISTINCT - 95 + - 48 @@ -11139,8 +11268,11 @@ SELECT DISTINCT - 25 / - 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2502 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* Int64\(\-63\) \+ Int64\(81\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 41 ) * - 63 + + 81 col2, 81 AS col2 +---- +-2502 +81 query I rowsort label-2111 SELECT + COUNT ( * ) / + 18 @@ -11628,8 +11760,11 @@ SELECT 2 * 40 + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -264 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) \* Int64\(5\) \+ Int64\(21\) AS col2" at position 0 and "Int64\(82\) \+ Int64\(\-42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 57 * 5 + 21 col2, + 82 + - 42 AS col2 +---- +-264 +40 query I rowsort label-2204 SELECT ALL SUM ( + 10 ) * CAST ( + 70 AS INTEGER ) + + + 16 + - ( - + 1 ) AS col1 @@ -12047,8 +12182,11 @@ SELECT - 35 * - 48 + + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "Int64\(9\) \+ \(\- Int64\(\-30\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 81 AS col2, 9 + - - 30 col2 +---- +39 +81 query II rowsort label-2285 SELECT ALL 33 AS col1, CAST ( NULL AS INTEGER ) * + ( - 76 ) col0 @@ -12231,8 +12369,11 @@ SELECT ALL + COUNT ( 12 ) * - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(37\)\) AS col2" at position 0 and "Int64\(93\) / \(\- Int64\(34\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( ALL + + 37 ) AS col2, 93 / - ( + 34 ) AS col2 +---- +-2 +37 query I rowsort label-2319 SELECT + 50 + + 3 + 26 + - 80 + COALESCE ( 90, + + 78 + COALESCE ( + - 3, + - 43 * + 4 * - COUNT ( * ) * - 81 + - COUNT ( * ) + 97 * 17 ) + - + ( + 27 ) + 29 * + 18, + - 51 ) / 4 + - COUNT ( * ) + + 67 * - 19 * 91 AS col0 @@ -12347,8 +12488,11 @@ SELECT DISTINCT + MAX ( + + 52 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(58\) AS Int32\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( + ( + 58 ) AS INTEGER ) AS col2, 63 col2 +---- +58 +63 query I rowsort SELECT - 91 + + 94 @@ -14250,8 +14394,11 @@ SELECT ALL + 59 AS col0, 99 * + 76 * - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 3900 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col0" at position 0 and "Int64\(60\) \* Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 10 AS col0, 60 * + 65 AS col0 +---- +-10 +3900 query I rowsort SELECT DISTINCT ( - 63 ) * + 72 * - - 16 @@ -14334,8 +14481,11 @@ SELECT + CAST ( + 43 AS INTEGER ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33264 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) \* Int64\(\-66\) \* Int64\(36\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 14 * - 66 * + ( + 36 ) col1, - CAST ( NULL AS INTEGER ) AS col1 +---- +33264 +NULL query II rowsort label-2724 SELECT + 44 * + + CAST ( NULL AS INTEGER ) * 51 * - 91 + 61 col2, 77 * - 84 AS col1 @@ -15075,8 +15225,11 @@ SELECT + 5 + - 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - -6495 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-66\) AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(34\) \* Int64\(\-73\) \- min\(DISTINCT \(\- Int64\(59\)\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* count\(DISTINCT Int64\(\-19\)\) AS col0" at position 0 and "Int64\(89\) \* Int64\(\-72\) \- Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( - 66 AS INTEGER ) * COUNT ( * ) / 34 * - 73 - + + MIN ( DISTINCT - + 59 ) * - - COUNT ( * ) * COUNT ( DISTINCT - 19 ) AS col0, 89 * - 72 - 87 AS col0 +---- +-14 +-6495 query II rowsort label-2865 SELECT DISTINCT COUNT ( * ), + 85 AS col2 @@ -15176,8 +15329,11 @@ 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\(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\. +query II valuesort SELECT + + 53 col1, CASE - 34 WHEN + 88 THEN - + COUNT ( * ) + 29 - + COUNT ( * ) WHEN 57 / - 22 THEN NULL END AS col1 +---- +53 +NULL query I rowsort SELECT + ( + 14 ) * - + 28 AS col1 @@ -15353,8 +15509,11 @@ 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\(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\. +query II valuesort 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 +---- +58 +NULL query I rowsort SELECT 22 * - 9 AS col1 @@ -15676,8 +15835,11 @@ SELECT - 31 - + + NULLIF ( - + ( + COUNT ( * ) ), + - NULLIF ( COALESCE ( + CAST # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - -271440 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col1" at position 0 and "Int64\(58\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- coalesce\(Int64\(60\), \(\- Int64\(91\)\) \* CAST\(\(\- max\(Int64\(58\)\)\) AS Int32\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 52 AS col1, + 58 * + + COUNT ( * ) * - COALESCE ( + 60, - + 91 * + CAST ( + - MAX ( ALL + 58 ) AS INTEGER ) - + ( - COUNT ( * ) ) ) * 78 AS col1 +---- +-271440 +52 query I rowsort label-2980 SELECT - MAX ( - - 35 ) @@ -15972,8 +16134,11 @@ 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\(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\. +query II valuesort SELECT ALL - 9 + + - COUNT ( * ) - + - 92 AS col1, + 31 AS col1 +---- +31 +82 query I rowsort SELECT DISTINCT + 81 + 95 @@ -16011,8 +16176,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 5760 # Datafusion - Expected - -2592 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(64\) AS col0" at position 0 and "Int64\(32\) \* Int64\(\-81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 90 * + 64 AS col0, 32 * + - 81 AS col0 +---- +-2592 +5760 query I rowsort label-3044 SELECT - 60 * + 33 * 32 - - - CAST ( 26 AS INTEGER ) @@ -16054,8 +16222,11 @@ SELECT 43, ( + 95 ) / 5 - + 96 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 1944 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col1" at position 0 and "Int64\(54\) \* Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 65 col1, 54 * 36 AS col1 +---- +-65 +1944 query I rowsort label-3052 SELECT 50 * + ( 49 ) * + 47 + - NULLIF ( - 66, 73 * - 7 - - 87 ) + - - COUNT ( - 31 ) * 8 - - 81 + - COUNT ( * ) @@ -16176,8 +16347,11 @@ SELECT ALL - ( + ( + 17 ) ) * + 14 # 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 "Int64\(9\) AS col2" at position 0 and "Int64\(\-68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 9 AS col2, - 68 col2 +---- +-68 +9 query I rowsort label-3076 SELECT - MIN ( - - 53 ) * + 32 * - + 47 + - COUNT ( * ) @@ -16542,8 +16716,11 @@ 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\(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\. +query II valuesort 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 +---- +1 +2589 query I rowsort SELECT ALL 47 * 67 @@ -16745,8 +16922,11 @@ SELECT ALL 41 + 19 # 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\(0\) \* Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 23 AS col1, 0 * 69 AS col1 +---- +0 +23 query I rowsort label-3184 SELECT ALL + 29 + - COUNT ( * ) + - + 11 * + + 13 * - 70 @@ -16876,8 +17056,11 @@ SELECT ALL 44 / 87 * + MAX ( + 3 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 * COUNT ( * ) AS col2, 89 AS col2 +---- +26 +89 query I rowsort label-3209 SELECT DISTINCT SUM ( + CAST ( NULL AS INTEGER ) ) AS col1 @@ -17998,8 +18181,11 @@ SELECT DISTINCT + + 35 + + COUNT ( ALL 97 ) + - MIN ( DISTINCT + 13 ) + - 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col0" at position 0 and "Int64\(\-55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 95 AS col0, - 55 AS col0 +---- +-55 +-95 query I rowsort label-3422 SELECT DISTINCT - COALESCE ( - 82, + 51, - - ( + - SUM ( DISTINCT - 77 ) ) ) + + - CAST ( + 65 AS INTEGER ) AS col1 @@ -18167,8 +18353,11 @@ SELECT ALL 64 - + + 20 + + 39 # 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\(58\) \+ Int64\(26\) AS col1" at position 0 and "Int64\(70\) / Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 + + + 26 AS col1, 70 / 45 col1 +---- +1 +84 query I rowsort SELECT ALL 62 - 53 + + 4 AS col1 @@ -18349,8 +18538,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col0" at position 0 and "Int64\(4\) \+ Int64\(\-70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 72 col0, + 4 + + - 70 AS col0 +---- +-66 +72 query I rowsort label-3490 SELECT + 99 + + + CAST ( NULL AS INTEGER ) @@ -18390,8 +18582,11 @@ SELECT ALL + 80 + - 17 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col1" at position 0 and "Int64\(22\) \- avg\(\(\- \(\- CASE Int64\(79\) WHEN Int64\(\-46\) THEN NULL WHEN Int64\(58\) THEN NULL WHEN Int64\(68\) THEN Int64\(\-38\) \+ Int64\(11\) \+ Int64\(\-52\) \* Int64\(\-25\) ELSE NULL END\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT + 70 AS col1, 22 - + + AVG ( ALL - - CASE + + 79 WHEN - 46 THEN NULL WHEN 58 THEN NULL WHEN 68 THEN + - 38 + 11 + + - 52 * - 25 ELSE NULL END ) AS col1 +---- +70 +NULL query I rowsort SELECT ALL - 6 + - - 60 @@ -18667,8 +18862,11 @@ SELECT DISTINCT - 72 * 66, 76 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(50\)\) AS col2" at position 0 and "Int64\(\-47\) \* CASE Int64\(55\) WHEN Int64\(18\) \+ \(\- nullif\(Int64\(84\), Int64\(45\)\)\) \+ \(\- \(\- nullif\(Int64\(57\), Int64\(23\) \+ CAST\(NULL AS Int32\)\)\)\) \+ Int64\(\-85\) \+ CAST\(Int64\(83\) AS Int32\) THEN \(\- Int64\(\-6\)\) \+ Int64\(\-43\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + 50 ) AS col2, - 47 * CASE + 55 WHEN + + 18 + + - NULLIF ( + 84, 45 ) + - - NULLIF ( 57, + 23 + + CAST ( NULL AS INTEGER ) ) + - 85 + + CAST ( 83 AS INTEGER ) THEN - - 6 + - 43 END col2 +---- +-50 +NULL query I rowsort SELECT NULLIF ( + - 26, 82 ) * + - 81 * - 71 AS col1 @@ -18886,8 +19084,11 @@ SELECT ALL - - COUNT ( * ), 77 * - 93 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - -102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-28\) AS col2" at position 0 and "Int64\(1\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(73\) \+ Int64\(\-30\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + COUNT ( * ) ) + - 28 col2, 1 + - COUNT ( * ) * 73 + + - 30 * COUNT ( * ) AS col2 +---- +-102 +-29 query I rowsort label-3593 SELECT - 58 / - CASE MIN ( + 12 ) WHEN + 15 THEN NULL ELSE 94 * - - 11 END @@ -18917,8 +19118,11 @@ SELECT DISTINCT - 51 * 11 * + 23 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(55\)\) AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 55 AS col0, 27 AS col0 +---- +-55 +27 query I rowsort label-3599 SELECT + COUNT ( * ) + 13 @@ -19074,8 +19278,11 @@ SELECT + 58 / 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* CASE Int64\(66\) WHEN Int64\(\-18\) THEN Int64\(98\) \* Int64\(\-50\) END \+ Int64\(61\) \* Int64\(22\) \+ \(\- Int64\(\-40\)\) \* \(\- Int64\(59\)\) AS col0" at position 0 and "Int64\(\-47\) \+ Int64\(\-30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 14 * + CASE 66 WHEN - 18 THEN + 98 * + - 50 END + 61 * 22 + - - 40 * - + 59 AS col0, - 47 + - 30 AS col0 +---- +-77 +NULL query I rowsort SELECT ALL + ( + 43 ) @@ -19125,14 +19332,20 @@ SELECT + + 25 * 64 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) \* Int64\(\-56\) \- Int64\(7\) \- Int64\(79\) \* \(\- Int64\(95\)\) \+ Int64\(26\) \+ Int64\(93\) \* Int64\(\-99\) \+ Int64\(\-16\) AS col0" at position 0 and "Int64\(\-88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 32 * - 56 - 7 - + 79 * - + 95 + + + 26 + + 93 * - 99 + + - 16 AS col0, - 88 AS col0 +---- +-88 +93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3700 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* Int64\(74\) AS col1" at position 0 and "Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 50 * + 74 AS col1, - 56 AS col1 +---- +-56 +3700 query I rowsort label-3641 SELECT - COALESCE ( 15, 85 + ( + 91 ) * + - 92 * 39 * - COUNT ( + + 20 ) * 5 ) AS col0 @@ -19299,8 +19512,11 @@ SELECT ( + COUNT ( * ) ) + - - 11 * ( - 88 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 81 AS col0, COUNT ( * ) AS col0 +---- +1 +81 query I rowsort label-3674 SELECT COUNT ( * ) + + + 51 / + 6 @@ -19395,8 +19611,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 7 AS col0, 10 + - 27 - + + COUNT ( * ) - + 71 AS col0 +---- +-89 +7 query I rowsort label-3692 SELECT + - COUNT ( 8 ) col1 @@ -19442,8 +19661,11 @@ SELECT ALL - - 85 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 1392 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "Int64\(48\) \* Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 81 AS col2, + 48 * + + 29 AS col2 +---- +1392 +81 query I rowsort label-3701 SELECT 68 * - CASE - 34 WHEN - ( 13 ) + - 77 THEN - MIN ( ALL - + 17 ) WHEN 42 + 93 THEN NULL END / + 15 * + 92 + + 4 * + 81 AS col0 @@ -19652,8 +19874,11 @@ SELECT + + 53 * 67 + - 87, 74 / + 7 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(94\) THEN count\(DISTINCT Int64\(80\)\) \+ Int64\(22\) END\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "min\(Int64\(88\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CASE - COUNT ( * ) WHEN + 94 THEN COUNT ( DISTINCT 80 ) + 22 END * + COUNT ( * ) AS col0, MIN ( 88 ) AS col0 +---- +88 +NULL query I rowsort SELECT - NULLIF ( 61, 25 ) - - - 36 @@ -19721,8 +19946,11 @@ SELECT ALL + 89 * + - 83 + + + ( + + ( + - 74 ) ) + - - 50 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \+ \(\- sum\(Int64\(\-16\)\)\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 53 + - + SUM ( + - 16 ) AS col2, 10 col2 +---- +-37 +10 query I rowsort label-3753 SELECT DISTINCT + 64 * + ( - COUNT ( * ) ) @@ -19843,8 +20071,11 @@ SELECT + - 44 col0, SUM ( ALL 93 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -279 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col1" at position 0 and "Int64\(50\) \+ Int64\(\-47\) \* Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 AS col1, 50 + - 47 * + 7 AS col1 +---- +-279 +28 query II rowsort label-3775 SELECT - 59 / + - 42 + - 37 AS col2, 65 + 44 @@ -20268,8 +20499,11 @@ SELECT + MIN ( DISTINCT + - 97 ) AS col0 # 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 "Int64\(\-3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 29 AS col2, ( - 3 ) AS col2 +---- +-29 +-3 query I rowsort SELECT + 68 * 82 + - - 68 @@ -20708,8 +20942,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "coalesce\(Int64\(\-5\), count\(Int64\(1\)\) AS count\(\*\), Int64\(63\) \* coalesce\(Int64\(\-4\), \(\- Int64\(\-65\)\) / Int64\(12\)\) \* \(\- Int64\(16\)\) \* Int64\(\-63\) \+ Int64\(99\), Int64\(83\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + CAST ( NULL AS INTEGER ) AS col2, COALESCE ( + ( - 5 ), COUNT ( * ), + 63 * + COALESCE ( - 4, - - 65 / 12 ) * - ( + + 16 ) * + - 63 + 99, 83 ) AS col2 +---- +-5 +NULL query I rowsort SELECT - 4 - + 79 AS col0 @@ -21344,8 +21581,11 @@ 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\(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\. +query II valuesort SELECT - 55 * + COUNT ( * ) + 10 AS col0, - COUNT ( * ) AS col0 +---- +-1 +-45 query I rowsort label-4060 SELECT - 24 + - CAST ( NULL AS INTEGER ) * - - 71 @@ -23047,8 +23287,11 @@ SELECT - 62 - 5 + + 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 AS col2, + 44 AS col2 +---- +44 +65 query I rowsort SELECT ALL ( - 67 ) AS col2 @@ -23325,8 +23568,11 @@ SELECT ALL + 97 + - 26 + + 24 - + 9 * + 91 * 43 AS col1, - 25 * - 55 + - ( NULLI # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \+ Int64\(\-38\) \+ Int64\(66\) \+ Int64\(59\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 79 + + - 38 + + 66 + 59 AS col1, CAST ( NULL AS INTEGER ) AS col1 +---- +8 +NULL query II rowsort SELECT ALL 5, - 39 + - 44 AS col2 @@ -23358,8 +23604,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 131140 # Datafusion - Expected - -25344 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* Int64\(20\) \* CAST\(Int64\(\-79\) AS Int32\) AS col2" at position 0 and "Int64\(44\) \* \(\- Int64\(48\)\) \* Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 83 * + 20 * + CAST ( - 79 AS INTEGER ) AS col2, 44 * - + 48 * + 12 AS col2 +---- +-25344 +131140 query I rowsort label-4449 SELECT - 68 / - - 2 AS col1 @@ -23406,8 +23655,11 @@ SELECT + NULLIF ( 58, 74 ) / + 5 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 col1" at position 0 and "\(\- CASE Int64\(97\) WHEN Int64\(41\) THEN Int64\(\-39\) / Int64\(\-61\) \+ Int64\(\-47\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 AS col1, - CASE + + 97 WHEN + 41 THEN - 39 / - 61 + - 47 END AS col1 +---- +51 +NULL query I rowsort label-4458 SELECT CAST ( - 85 AS INTEGER ) - - 36 - 55 AS col2 @@ -23503,8 +23755,11 @@ SELECT ALL 6 + - 26 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 141 # Datafusion - Expected - 128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ Int64\(77\) AS col1" at position 0 and "Int64\(\-58\) \- Int64\(31\) \* Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 64 + + 77 AS col1, ( - 58 ) - + 31 * - 6 AS col1 +---- +128 +141 query I rowsort SELECT ALL 76 * - 78 * + 64 @@ -23648,8 +23903,11 @@ SELECT DISTINCT + + 90 * 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3294 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(61\), Int64\(\-26\)\)\) \* Int64\(54\) AS col1" at position 0 and "min\(Int64\(15\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + COALESCE ( 61, - 26 ) * + 54 AS col1, + MIN ( 15 ) AS col1 +---- +-3294 +15 query I rowsort SELECT + 15 * + 49 * + 0 + ( - + 82 ) * + 23 @@ -23756,8 +24014,12 @@ SELECT DISTINCT + 61 * + COUNT ( * ) # Datafusion - Expected - 14 # Datafusion - Expected - 38 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(14\), Int64\(\-8\)\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL ( COALESCE ( 14, + ( + - 8 ) ) ) AS col0, + 38 AS col0, - + 70 + + 63 +---- +-7 +14 +38 query I rowsort SELECT DISTINCT + 52 * 53 @@ -23900,8 +24162,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3978 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* Int64\(86\) \+ Int64\(83\) \+ Int64\(25\) AS col1" at position 0 and "Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 45 * 86 + + 83 + + + 25 AS col1, 56 AS col1 +---- +3978 +56 query II rowsort label-4552 SELECT DISTINCT + 39, + COUNT ( * ) * - + COALESCE ( + + 52, + - 7, ( + + 58 ) ) / + - 88 * + + 53 * - CAST ( + 41 AS INTEGER ) AS col0 @@ -23917,8 +24182,11 @@ SELECT 46 * - 81 + - + 9 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -8910 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(90\) \* Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col0, + 90 * - 99 AS col0 +---- +-8910 +NULL query I rowsort label-4555 SELECT NULLIF ( - ( + + 17 ), - ( COUNT ( * ) ) - - 74 / - + 88 + + ( - + CASE - COALESCE ( - 29, 11, 85 * - CASE 37 WHEN + 21 THEN + COUNT ( * ) END, + 93 * + CASE 48 WHEN + 28 THEN NULL WHEN 45 THEN 67 * - 24 + - CAST ( 35 AS INTEGER ) ELSE NULL END ) WHEN 12 / COUNT ( * ) THEN 31 ELSE NULL END ) ) AS col1 @@ -23937,8 +24205,12 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - 4988 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* Int64\(86\) AS col2" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - CAST ( NULL AS INTEGER ) * - - 76, 58 * 86 col2, + COUNT ( * ) AS col2 +---- +1 +4988 +NULL query I rowsort SELECT ALL + ( - + 53 ) AS col0 @@ -24283,8 +24555,11 @@ 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\(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\. +query II valuesort SELECT ALL + - COUNT ( * ) * + + ( - + 28 ) AS col0, 91 AS col0 +---- +28 +91 query I rowsort label-4623 SELECT ( + CAST ( - - COUNT ( * ) AS INTEGER ) ) * - - COUNT ( * ) col1 @@ -24497,8 +24772,11 @@ SELECT ALL 82 * 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - -130 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \* Int64\(\-54\) / \(\- Int64\(\-9\)\) \+ \(\- \(\- Int64\(\-26\)\)\) \* Int64\(11\) AS col1" at position 0 and "Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 26 * - 54 / - - 9 + - - ( - 26 ) * 11 AS col1, + 4 AS col1 +---- +-130 +4 query I rowsort label-4664 SELECT ALL - - COUNT ( * ) / 31 + + 86 * + 54 AS col0 @@ -24508,8 +24786,11 @@ 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\(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\. +query II valuesort SELECT - + 45 + + ( + COUNT ( * ) ) / - COUNT ( * ) AS col1, 13 col1 +---- +-46 +13 query I rowsort label-4666 SELECT - - CASE - 7 WHEN - + 44 + + + 31 + + 26 + - - 92 * - NULLIF ( + 7, - CAST ( - + CASE + 46 WHEN + 77 THEN NULL ELSE + 65 END AS INTEGER ) * + COUNT ( * ) - 40 * COUNT ( * ) ) / 78 + MIN ( ( + 13 ) ) THEN - CASE COUNT ( 68 ) WHEN CAST ( NULL AS INTEGER ) THEN 10 + COUNT ( 14 - 36 * + 53 ) END WHEN 7 * + 33 THEN NULL WHEN 52 THEN 55 + - COUNT ( * ) ELSE NULL END + 56 * + 48 @@ -24894,8 +25175,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -767 # Datafusion - Expected - 5524 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ Int64\(96\) \* Int64\(\-9\) AS col2" at position 0 and "Int64\(96\) \* Int64\(58\) \+ Int64\(\-44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 97 + + 96 * + - 9 col2, + 96 * 58 + - 44 AS col2 +---- +-767 +5524 query II rowsort label-4740 SELECT 74 + + COUNT ( * ) AS col2, - 62 AS col1 @@ -25151,8 +25435,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) / - - 62 AS col0, 29 AS col0 +---- +0 +29 query I rowsort label-4788 SELECT ALL - COUNT ( * ) * + ( 60 ) * 20 - - 51 + + 23 + - 30 + + COALESCE ( + + 81, 39 ) * + CASE - + ( + 71 ) WHEN 11 / - 67 * CAST ( + - 52 AS INTEGER ) + COALESCE ( 14, 17 / ( + 7 * + 86 ) ) THEN - 36 WHEN 98 * + CAST ( NULL AS INTEGER ) THEN NULL END AS col0 @@ -25273,8 +25560,11 @@ SELECT - CAST ( + - 56 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-41\) AS Int32\) AS col0" at position 0 and "Int64\(\-87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( CAST ( - 41 AS INTEGER ) ) AS col0, - 87 AS col0 +---- +-41 +-87 query I rowsort label-4812 SELECT - MAX ( ALL 6 ) AS col2 @@ -25420,8 +25710,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 1465 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col1" at position 0 and "CAST\(Int64\(27\) AS Int32\) \* \(\- Int64\(\-51\)\) \+ \(\- Int64\(88\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 49 AS col1, + CAST ( + 27 AS INTEGER ) * - - 51 + - + 88 * - COUNT ( * ) col1 +---- +1465 +49 query I rowsort label-4838 SELECT + + MIN ( ALL COALESCE ( + + 93, + 80 / 74 - - 20 * + - 72 ) ) col0 @@ -25945,8 +26238,11 @@ SELECT + 43 - - - NULLIF ( + 66, - 98 * MIN ( 9 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col0" at position 0 and "Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 12 AS col0, 32 AS col0 +---- +-12 +32 query I rowsort label-4940 SELECT MAX ( + 40 ) @@ -26735,8 +27031,11 @@ SELECT + 96 AS col2, COUNT ( 90 ) AS col1 # 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\(97\) \+ Int64\(25\) / \(\- min\(CAST\(NULL AS Float64\)\)\) AS col0" at position 0 and "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT 97 + + 25 / - MIN ( CAST ( NULL AS FLOAT8 ) ) col0, ( + 61 ) AS col0 +---- +61 +NULL query I rowsort label-5091 SELECT + ( + - 89 ) / + - 38 AS col0 @@ -27229,8 +27528,11 @@ SELECT ALL ( - 47 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + + 49 ) AS col2, 60 col2 +---- +49 +60 query I rowsort label-5185 SELECT ALL COUNT ( * ) / - + MIN ( 49 ) @@ -27404,8 +27706,11 @@ SELECT COALESCE ( ( + 39 ), - 76 + - COALESCE ( + - ( + 66 ), + 86 ), - - MIN ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 17 col1, 30 AS col1 +---- +17 +30 query I rowsort label-5219 SELECT CASE 99 WHEN + 55 THEN NULL WHEN + COUNT ( * ) + - 18 THEN - MIN ( - ( - 74 ) ) ELSE 76 END AS col1 @@ -27431,8 +27736,11 @@ SELECT 92 * - + 56 - - 78, - 7 / - 37 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 69 AS col2, 74 col2 +---- +-69 +74 query I rowsort label-5224 SELECT ALL - COUNT ( * ) + + 41 @@ -27583,8 +27891,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 58 / + MAX ( ( - 79 ) ) AS col2, - 33 + + 47 + - 15 / - 65 + + 6 * - 38 * 96 * - COUNT ( * ) AS col2 +---- +0 +21902 query I rowsort label-5253 SELECT ALL 17 + ( - + NULLIF ( - + COUNT ( * ), + 90 ) ) @@ -27958,8 +28269,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \- Int64\(\-91\) / \(\- Int64\(\-13\)\) AS col0" at position 0 and "Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 75 - - 91 / - - 13 AS col0, + 32 col0 +---- +-68 +32 query I rowsort SELECT ALL + ( - 64 ) AS col0 @@ -28028,8 +28342,11 @@ SELECT DISTINCT - 13 * NULLIF ( - 78, - 12 ) * - ( + CAST ( + + CAST ( 50 AS INT # 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 "Int64\(98\) / Int64\(\-89\) AS col2" at position 0 and "Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( 98 ) / - 89 AS col2, + 43 AS col2 +---- +-1 +43 query I rowsort SELECT DISTINCT + 28 * + + NULLIF ( + ( + 0 ), 56 * + 22 + + 89 + - + 34 * 73 - + 38 ) * + - 74 col2 @@ -28481,8 +28798,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 96 AS col2, 94 AS col2 +---- +-96 +94 query I rowsort SELECT ALL - - NULLIF ( ( + 44 ), - + 55 * + 82 ) - - - 68 + + 56 AS col1 @@ -28764,8 +29084,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(93\), Int64\(90\) \* \(\- Int64\(\-76\)\), Int64\(42\)\)\) AS col0" at position 0 and "Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + - COALESCE ( + 93, + 90 * - - 76, + + ( + 42 ) ) ) AS col0, ( + - 73 ) AS col0 +---- +-73 +-93 query I rowsort SELECT DISTINCT ( 85 ) @@ -28780,8 +29103,11 @@ SELECT ALL ( + 52 ) # 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 "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - 71 ) AS col2, 1 AS col2 +---- +-71 +1 query I rowsort SELECT 8 * - 71 - + CASE 2 WHEN + - NULLIF ( - 25, - 83 ) THEN + - 74 END @@ -29265,8 +29591,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\)\)\) AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 22 + - 21 + + + COALESCE ( 49, + ( + 56 ) + - ( - NULLIF ( 59, COUNT ( * ) ) ) ) AS col1, + 52 AS col1 +---- +50 +52 query I rowsort SELECT - 57 - + ( - 17 ) AS col2 @@ -29450,8 +29779,11 @@ 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\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-20\)\) \* Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 AS col2, COUNT ( * ) + - - 20 * + 4 AS col2 +---- +19 +81 query I rowsort SELECT ALL + 54 * - 49 @@ -29743,8 +30075,11 @@ SELECT ALL MAX ( DISTINCT + 41 ) * - ( + 40 ) - 7 * - 31 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 74 col0, COUNT ( * ) AS col0 +---- +1 +74 query I rowsort SELECT 73 * - - 97 + COALESCE ( - 62, + 58 * - 59 ) @@ -30191,8 +30526,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 38 AS col0, CAST ( NULL AS INTEGER ) AS col0 +---- +38 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -30299,8 +30637,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 129 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) / sum\(\(\- Int64\(74\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(87\) \- Int64\(82\) \+ \(\- nullif\(Int64\(\-17\), sum\(Int64\(\-99\)\)\)\) \+ \(\- Int64\(\-19\)\) \+ Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 / + SUM ( - + 74 ) * + COUNT ( * ) AS col1, 87 - 82 + - NULLIF ( + - 17, ( SUM ( ALL - 99 ) ) ) + - ( - 19 ) + 88 AS col1 +---- +-1 +129 query I rowsort label-5770 SELECT 10 / - + 72 * - - SUM ( + + CAST ( + - 56 AS INTEGER ) ) AS col0 @@ -30749,8 +31090,11 @@ SELECT ALL - COUNT ( * ) + 79 + 21 / - 31 * + + 9 + 55 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col1" at position 0 and "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 21 AS col1, 41 AS col1 +---- +21 +41 query I rowsort label-5856 SELECT ALL 76 + + COUNT ( * ) @@ -30886,8 +31230,11 @@ SELECT ALL + 78 * + - 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \+ \(\- Int64\(79\)\) AS col0" at position 0 and "Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 + - + 79 AS col0, - 73 AS col0 +---- +-73 +10 query I rowsort SELECT DISTINCT - 86 + - + 28 AS col2 @@ -31988,8 +32335,11 @@ SELECT DISTINCT + COUNT ( * ) * - 16 * 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "Int64\(\-47\) \+ \(\- Int64\(8\)\) \- \(\- count\(DISTINCT Int64\(99\)\)\) \* Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 80 AS col1, - 47 + - + 8 - ( - COUNT ( DISTINCT 99 ) ) * + 30 col1 +---- +-25 +80 query I rowsort SELECT ALL + NULLIF ( + 99, 91 ) * + 80 + + 78 AS col2 @@ -32327,8 +32677,11 @@ SELECT 64 + + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 132 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ \(\- Int64\(\-95\)\) AS col1" at position 0 and "Int64\(81\) \+ Int64\(\-2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 + - - 95 AS col1, 81 + - 2 col1 +---- +132 +79 query I rowsort SELECT ALL - ( + - 14 ) AS col0 @@ -32500,8 +32853,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * + 69 AS col2, - COALESCE ( + 40, 51 ) + 74 + - + 27 * 77 AS col2 +---- +-2045 +69 query I rowsort label-6197 SELECT DISTINCT + MIN ( 46 ) + + 72 @@ -33106,8 +33462,11 @@ SELECT - SUM ( DISTINCT - 86 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 626 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col0" at position 0 and "Int64\(55\) \* \(\- \(\- nullif\(Int64\(11\), Int64\(84\)\)\)\) \+ Int64\(21\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 AS col0, + 55 * - - NULLIF ( + 11, + 84 ) + + 21 * + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 +---- +626 +91 query I rowsort label-6314 SELECT - COALESCE ( + - 81, + + 18, + 32 * - + MAX ( + 56 ) * 61 + - ( - - COUNT ( * ) ) * 80 ) @@ -33712,8 +34071,11 @@ SELECT SUM ( DISTINCT 88 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 14018 # Datafusion - Expected - -1073 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(94\), Int64\(\-77\)\) \* Int64\(\-2\) \* Int64\(\-75\) \+ Int64\(\-14\) \+ Int64\(\-68\) AS col1" at position 0 and "Int64\(\-37\) \* Int64\(\-29\) / Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( + + 94, + + ( - 77 ) ) * - 2 * - 75 + - 14 + - 68 AS col1, - 37 * + ( - 29 ) / + - 1 AS col1 +---- +-1073 +14018 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -33778,8 +34140,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- Int64\(\-66\)\)\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( - ( - 66 ) ) AS col2, + ( 78 ) AS col2 +---- +66 +78 query I rowsort SELECT + 79 * 91 @@ -33851,8 +34216,11 @@ NULL # 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\) \+ \(\- Int64\(\-65\)\) \+ \(\- Int64\(68\)\) AS col1" at position 0 and "\(\- max\(Int64\(\-29\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 60 + - - 65 + - + 68 AS col1, - MAX ( - 29 ) AS col1 +---- +-63 +29 query I rowsort SELECT DISTINCT - 5 + + 41 AS col0 @@ -33958,8 +34326,11 @@ SELECT - COUNT ( * ) * 31 * 56 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col0" at position 0 and "\(\- CAST\(Int64\(73\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 44 AS col0, - CAST ( + 73 AS INTEGER ) AS col0 +---- +-73 +44 query I rowsort label-6476 SELECT DISTINCT - 55 / - MAX ( 79 ) @@ -34972,8 +35343,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) * + 9 col0, 0 col0 +---- +0 +9 query I rowsort label-6668 SELECT COUNT ( DISTINCT 58 ) @@ -35790,8 +36164,11 @@ SELECT ALL ( - + COUNT ( ALL + ( - + 82 ) ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 29 AS col2, COUNT ( * ) AS col2 +---- +-29 +1 query II rowsort SELECT DISTINCT + 73 * + 23 col0, - 4 @@ -36480,8 +36857,11 @@ SELECT DISTINCT - 24 * - - 0 / COUNT ( - + 66 ) * + + ( - COALESCE ( 44, + ( - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7708 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* \(\- Int64\(44\)\) \+ Int64\(\-30\) \+ Int64\(55\) \* Int64\(\-62\) AS col0" at position 0 and "Int64\(78\) \+ Int64\(\-55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 97 * - + 44 + - 30 + + 55 * - 62 AS col0, 78 + - 55 AS col0 +---- +-7708 +23 query I rowsort label-6955 SELECT - NULLIF ( + + 79, + + CAST ( NULL AS INTEGER ) ) * - 45 + + + 99 AS col1 @@ -37357,8 +37737,12 @@ SELECT + + 23 * - + 62 * - COUNT ( * ) * - 97 * + 34 # Datafusion - Expected - 9 # Datafusion - Expected - NULL # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 9 AS col1, + CAST ( NULL AS INTEGER ) * 45 AS col1, + - CAST ( + - 20 AS INTEGER ) AS col2 +---- +20 +9 +NULL query I rowsort label-7120 SELECT DISTINCT + COUNT ( * ) * - - MIN ( - 8 ) * 51 AS col2 @@ -37495,8 +37879,11 @@ SELECT 14 * 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1520 # Datafusion - Expected - -5096 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* Int64\(80\) AS col1" at position 0 and "\(\- nullif\(Int64\(\-52\), CAST\(NULL AS Int32\)\)\) \* Int64\(\-98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 19 * + 80 col1, - NULLIF ( - 52, + CAST ( NULL AS INTEGER ) ) * - 98 AS col1 +---- +-5096 +1520 query I rowsort SELECT 24 + + 27 + - + 60 * - 10 AS col0 @@ -37522,8 +37909,11 @@ SELECT ( + COUNT ( * ) ) * - - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5304 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(68\) \* Int64\(\-2\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(39\) / \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 * + + 68 * - 2 * COUNT ( * ) AS col2, 39 / - CAST ( NULL AS INTEGER ) AS col2 +---- +-5304 +NULL query I rowsort label-7151 SELECT ALL CAST ( 5 AS INTEGER ) AS col2 @@ -37543,8 +37933,11 @@ SELECT - 29 + + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 AS col1, 92 AS col1 +---- +-20 +92 query I rowsort label-7155 SELECT ALL - CAST ( + 41 AS INTEGER ) + + - MIN ( 97 ) @@ -37611,8 +38004,11 @@ SELECT + 61 AS col1, + 33 - - + 54 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(94\)\) AS Int32\)\) AS col0" at position 0 and "Int64\(\-18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( - + 94 AS INTEGER ) AS col0, - 18 col0 +---- +-18 +94 query I rowsort SELECT ALL - 79 + + + 71 AS col0 @@ -37649,8 +38045,11 @@ SELECT DISTINCT COUNT ( * ) * + 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-38\)\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( ALL - 38 ) AS col0, 94 AS col0 +---- +-38 +94 query I rowsort label-7174 SELECT DISTINCT SUM ( - 82 ) * 18 * 35 / - COALESCE ( 31, + + 49 ) AS col0 @@ -37725,8 +38124,11 @@ SELECT - 76 * - 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 403 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \+ Int64\(51\) AS col1" at position 0 and "min\(Int64\(6\)\) \* \(\- coalesce\(Int64\(\-53\), Int64\(\-5\) \+ Int64\(52\)\)\) \+ \(\- Int64\(\-85\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 24 + 51 AS col1, MIN ( + 6 ) * - COALESCE ( + ( - 53 ), - 5 + + 52 ) + - - 85 AS col1 +---- +403 +75 query I rowsort label-7188 SELECT - - 69 * COUNT ( * ) AS col0 @@ -37887,8 +38289,11 @@ SELECT + ( 85 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-62\)\) \* Int64\(71\) \+ Int64\(\-44\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( - 62 ) * + + 71 + + ( - 44 ) + - + CAST ( NULL AS INTEGER ) AS col2, 51 col2 +---- +51 +NULL query I rowsort label-7219 SELECT DISTINCT + MAX ( DISTINCT + ( 44 ) ) / - ( 40 ) @@ -38257,8 +38662,11 @@ 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\(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\. +query II valuesort SELECT ALL - + 62 AS col2, + COUNT ( * ) * - + CASE 24 WHEN + 6 THEN + + 98 + - + 16 WHEN + 76 THEN - - 48 ELSE NULL END - 55 AS col2 +---- +-62 +NULL query I rowsort label-7290 SELECT DISTINCT - 85 - + 56 + - NULLIF ( - COUNT ( * ), + - 22 ) + - - 17 / NULLIF ( + 13, - 89 + - + CAST ( NULL AS INTEGER ) ) * + - CAST ( - ( + 89 ) AS INTEGER ) - + 44 AS col0 @@ -38383,8 +38791,11 @@ SELECT ALL + 84, - ( COUNT ( + + 96 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 23 col2, 49 AS col2 +---- +23 +49 query I rowsort SELECT DISTINCT 0 * - 48 * 29 * 5 * + 40 * 57 * ( + 76 ) AS col0 @@ -38594,8 +39005,11 @@ SELECT DISTINCT + COUNT ( ALL - 90 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6480 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* nullif\(Int64\(\-81\), Int64\(\-91\) \+ Int64\(22\) \+ min\(DISTINCT Int64\(44\)\) \* \(\- Int64\(\-33\)\)\) AS col1" at position 0 and "\(\- Int64\(2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + ( - 80 ) ) * + ( + NULLIF ( - 81, + - 91 + + 22 + + ( + MIN ( DISTINCT + 44 ) ) * - - 33 ) ) AS col1, ( + ( - + 2 ) ) AS col1 +---- +-2 +6480 query I rowsort label-7353 SELECT - COUNT ( ALL + 20 ) @@ -38726,8 +39140,11 @@ SELECT - 16 * - + 67 * 31 # 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\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 47 AS col1, 34 AS col1 +---- +-47 +34 query I rowsort label-7379 SELECT + + MIN ( ALL - 90 ) AS col1 @@ -39363,8 +39780,11 @@ SELECT 68 * + + 44 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 119 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \+ Int64\(48\) AS col1" at position 0 and "Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 + + 48 AS col1, - 18 col1 +---- +-18 +119 query I rowsort label-7501 SELECT + 96 * CAST ( - + 86 AS INTEGER ) + - 69 - 20 - SUM ( DISTINCT - 26 ) - 51 * - 40 @@ -40861,8 +41281,11 @@ SELECT ALL + + 48 * 92 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 3096 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-49\)\) AS col0" at position 0 and "Int64\(72\) \* Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 49 AS col0, + 72 * + 43 AS col0 +---- +3096 +49 query I rowsort SELECT + 32 * + - 82 @@ -40899,8 +41322,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col1" at position 0 and "\(\- CASE \(\- Int64\(92\)\) WHEN Int64\(52\) \+ \(\- Int64\(\-99\)\) \* \(\- max\(Int64\(\-5\)\)\) THEN Int64\(26\) ELSE CAST\(NULL AS Int32\) \* Int64\(\-14\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 22 AS col1, - CASE - + 92 WHEN 52 + - - 99 * + - MAX ( - 5 ) THEN 26 ELSE + CAST ( NULL AS INTEGER ) * - 14 END AS col1 +---- +-22 +NULL query I rowsort SELECT ALL - COALESCE ( - 92, 26 ) AS col0 @@ -40960,8 +41386,11 @@ SELECT DISTINCT - 65 + + ( 10 ) # 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 "Int64\(81\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 81 AS col0, 14 AS col0 +---- +14 +81 query II rowsort label-7812 SELECT ALL 33 AS col2, COUNT ( * ) @@ -40992,8 +41421,11 @@ SELECT ALL 65 + + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - -1852 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \- \(\- Int64\(\-46\)\) \+ nullif\(Int64\(95\), Int64\(4\) / Int64\(90\)\) \* Int64\(\-19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 92 col1, CAST ( - COUNT ( * ) AS INTEGER ) - - - 46 + NULLIF ( 95, 4 / + ( + 90 ) ) * - 19 col1 +---- +-1852 +92 query II rowsort label-7818 SELECT - MAX ( - 16 ) AS col1, - ( - + COALESCE ( + 80, + + 30, + 76 ) ) * - 87 + 50 col2 @@ -41437,8 +41869,11 @@ SELECT - NULLIF ( 52, - - 13 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, - 99 AS col1 +---- +-99 +1 query I rowsort label-7903 SELECT ALL NULLIF ( + NULLIF ( + - 19, 80 + - 23 * - COUNT ( * ) + - 1 ), - ( 56 ) ) + + 87 @@ -41815,8 +42250,11 @@ SELECT ALL MIN ( DISTINCT - - 45 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 330 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \* Int64\(\-6\) AS col2" at position 0 and "Int64\(23\) / Int64\(\-86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 * - 6 AS col2, 23 / - 86 AS col2 +---- +0 +330 query I rowsort label-7976 SELECT DISTINCT - ( + - COUNT ( * ) ) - 31 / - 46 AS col0 @@ -41945,8 +42383,11 @@ SELECT SUM ( 51 ) + + 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 1256 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col0" at position 0 and "Int64\(56\) \- Int64\(15\) \* Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 30 col0, 56 - 15 * - 80 AS col0 +---- +-30 +1256 query II rowsort label-8000 SELECT - 39, NULLIF ( 13, - - COALESCE ( + 38, + - 33 ) ) / - 97 + + NULLIF ( + 53, - COUNT ( * ) * - + CASE + 60 WHEN 92 * CAST ( NULL AS INTEGER ) + 25 / SUM ( + CASE 75 WHEN + 58 - 20 * + ( + 25 ) THEN NULL ELSE + 16 END ) THEN NULL WHEN 16 THEN 8 WHEN + 66 THEN NULL END * COUNT ( * ) + + 73 ) AS col2 @@ -42082,8 +42523,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \- Int64\(59\) AS col0" at position 0 and "Int64\(\-95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 7 - 59 AS col0, - 95 AS col0 +---- +-66 +-95 query I rowsort SELECT 59 * - 31 + - 93 @@ -42395,8 +42839,11 @@ SELECT DISTINCT CAST ( - 86 AS INTEGER ) AS col1, COUNT ( * ) 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 "\(\- sum\(Int64\(17\)\)\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - SUM ( ALL 17 ) AS col2, + 24 AS col2 +---- +-17 +24 query I rowsort SELECT + + 42 + + + 8 AS col0 @@ -42671,8 +43118,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 89 AS col1, + NULLIF ( - NULLIF ( + 79, - + 75 ), CAST ( NULL AS FLOAT8 ) / COUNT ( * ) ) AS col1 +---- +-79 +89 query I rowsort label-8139 SELECT 12 * - - 79 * - + 66 + + 62 + CAST ( + - NULLIF ( SUM ( + - 21 ), 56 + - - 43 ) AS INTEGER ) + + - COALESCE ( + 42, + 10 / + COUNT ( * ) + - COUNT ( * ) - + + 41 + + CASE - COUNT ( * ) WHEN MIN ( DISTINCT 7 ) THEN - 37 * COUNT ( * ) ELSE 40 END / + COALESCE ( + CASE WHEN COALESCE ( - 78, + CAST ( NULL AS FLOAT8 ) - 32, ( + COUNT ( * ) ) ) IS NOT NULL THEN NULL ELSE CASE COUNT ( * ) WHEN + 15 THEN - 72 + 11 END END, 8 / + 79 ) / 93 ) AS col0 @@ -43277,8 +43727,11 @@ SELECT ALL - COALESCE ( - COALESCE ( 38, + 62 ), + + 39 * + 90 ) + - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) / \(\- \(\- CASE Int64\(6\) WHEN \(\- CAST\(Int64\(70\) AS Int32\)\) \+ Int64\(36\) THEN Int64\(99\) END\)\) AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 / - - CASE + 6 WHEN - CAST ( 70 AS INTEGER ) + 36 THEN 99 END AS col2, + 31 AS col2 +---- +31 +NULL query I rowsort label-8252 SELECT COUNT ( * ) / + + 66 AS col2 @@ -43687,8 +44140,11 @@ SELECT ALL - - 39 / + - 44 # 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 "CAST\(NULL AS Float64\) AS col2" at position 0 and "Int64\(11\) / Int64\(63\) \+ Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + CAST ( NULL AS FLOAT8 ) AS col2, 11 / 63 + 95 AS col2 +---- +95 +NULL query I rowsort SELECT + 24 + + + 94 + + 47 * - + 41 + 19 @@ -43765,8 +44221,11 @@ NULL # 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 "\(\- \(\- count\(Int64\(10\)\)\)\) \+ Int64\(\-96\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( COUNT ( + 10 ) ) + - 96 col0, + 4 AS col0 +---- +-95 +4 query I rowsort SELECT ALL - 69 * + 31 AS col2 @@ -43796,8 +44255,11 @@ 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\(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\. +query II valuesort 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 +---- +-23 +1526 query I rowsort label-8351 SELECT - 1 * - 68 * CAST ( - 60 AS INTEGER ) AS col0 @@ -43989,8 +44451,11 @@ SELECT 9 + + 62 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\) AS col2" at position 0 and "Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 1 col2, 25 col2 +---- +-1 +25 query I rowsort label-8388 SELECT ALL 89 + 75 / + - COUNT ( * ) @@ -44064,8 +44529,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(38\) \* Int64\(\-18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 60 AS col0, 47 * + COUNT ( * ) * 38 * - 18 AS col0 +---- +-32148 +-60 query I rowsort SELECT DISTINCT - 11 * - - 46 AS col1 @@ -44174,8 +44642,11 @@ 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 "Int64\(94\) / \(\- min\(Int64\(82\)\)\) AS col0" at position 0 and "Int64\(70\) \+ Int64\(\-48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 94 / - MIN ( 82 ) AS col0, + 70 + - 48 AS col0 +---- +-1 +22 query I rowsort label-8423 SELECT + COUNT ( * ) * + 56 * - 91 @@ -44500,14 +44971,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-72\) \+ Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col1, COUNT ( * ) * - 72 + + 2 AS col1 +---- +-70 +1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2784 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-45\) WHEN Int64\(35\) THEN Int64\(18\) WHEN CAST\(Int64\(93\) AS Float64\) \* Int64\(24\) \+ Int64\(42\) THEN NULL ELSE NULL END AS col1" at position 0 and "Int64\(87\) \* Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CASE - 45 WHEN 35 THEN 18 WHEN CAST ( 93 AS FLOAT8 ) * + + 24 + + + 42 THEN NULL ELSE NULL END AS col1, 87 * + 32 AS col1 +---- +2784 +NULL query I rowsort label-8487 SELECT DISTINCT 59 / 22 + + + 26 + - CAST ( NULL AS INTEGER ) / - + 81 + + 62 @@ -44984,8 +45461,11 @@ SELECT DISTINCT 87 AS col1, 74 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -2739 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col0" at position 0 and "Int64\(37\) \* \(\- Int64\(74\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 6 AS col0, + 37 * - ( + 74 ) - + + COUNT ( * ) col0 +---- +-2739 +6 query I rowsort SELECT ALL + - 82 - - + 33 @@ -45277,8 +45757,11 @@ SELECT - 27 + + 44 * + 98 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2573 # Datafusion - Expected - -162 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(83\) AS Int32\)\) \* Int64\(\-31\) AS col2" at position 0 and "Int64\(2\) \* Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - CAST ( + 83 AS INTEGER ) ) * - 31 AS col2, 2 * + - 81 col2 +---- +-162 +2573 query I rowsort label-8635 SELECT DISTINCT + 43 + - + CAST ( NULL AS INTEGER ) - - - ( - 11 ) * 31 * + 5 AS col0 @@ -45294,8 +45777,11 @@ 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\(\-88\) / \(\- Int64\(46\)\) \+ Int64\(\-60\) 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 II valuesort SELECT ALL - 88 / - + 46 + + - 60 AS col0, COUNT ( ALL - 79 ) AS col0 +---- +-59 +1 query I rowsort SELECT + 42 * ( - COALESCE ( + 89, + 67, + 62 + + ( + 30 ) * 70, - NULLIF ( 54, + + 41 + 59 ) ) ) AS col1 @@ -45898,8 +46384,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 5247 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) / Int64\(6\) \+ Int64\(27\) AS col1" at position 0 and "Int64\(90\) \* Int64\(87\) \+ Int64\(63\) \* \(\- Int64\(41\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 20 / 6 + + 27 AS col1, 90 * + 87 + 63 * - + 41 AS col1 +---- +24 +5247 query I rowsort label-8755 SELECT DISTINCT ( 36 ) / - 98 + + + 8 @@ -46500,8 +46989,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 14 AS col2, COUNT ( * ) / 20 AS col2 +---- +0 +14 query I rowsort SELECT ALL 74 * 37 + + + 97 @@ -46844,8 +47336,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) * + 85 AS col2, 30 AS col2 +---- +30 +85 query I rowsort SELECT ALL 59 - + 24 * - 56 @@ -47210,8 +47705,11 @@ SELECT ALL + 50 / - 86 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 45 AS col2, 67 AS col2 +---- +45 +67 query I rowsort label-9006 SELECT ALL - COUNT ( * ) / - + 65 + COUNT ( ALL + COALESCE ( + 39, - 29 ) ) @@ -47405,8 +47903,11 @@ 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\(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\. +query II valuesort SELECT + CASE + + 10 WHEN - 7 THEN + 10 * + 0 * 62 + + 77 WHEN COUNT ( * ) THEN + - 82 END * 23 col0, - 53 - - 22 AS col0 +---- +-31 +NULL query I rowsort SELECT DISTINCT - 35 - + - 47 @@ -47485,8 +47986,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + 67 ) * - 0 + 95 + ( - + COUNT ( * ) ) AS col2, 23 AS col2 +---- +23 +94 query I rowsort label-9058 SELECT DISTINCT + 93 * + CASE - 64 WHEN - - COUNT ( * ) THEN 24 * + 55 END + + 89 col1 @@ -47596,8 +48100,11 @@ SELECT - 10 - - 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\)" at position 0 and "Int64\(24\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 24, 24 +---- +24 +24 query II rowsort label-9079 SELECT - 23 + ( 46 ), COUNT ( - 63 ) AS col0 @@ -48332,8 +48839,11 @@ SELECT ALL + COUNT ( * ) * - 50 * - - 28, 83 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 94 AS col1 +---- +1 +94 query I rowsort SELECT DISTINCT + 93 * + 86 AS col1 @@ -48414,8 +48924,11 @@ SELECT - ( - 92 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(59\)\) \* CAST\(Int64\(\-85\) AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(73\) THEN sum\(DISTINCT Int64\(\-75\)\) WHEN CAST\(NULL AS Int32\) \* Int64\(73\) \+ Int64\(\-10\) THEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-23\) \* \(\- Int64\(14\)\) \* \(\- Int64\(36\)\) \* coalesce\(\(\- Int64\(\-21\)\), Int64\(\-94\)\) \+ Int64\(29\) END\) AS col1" at position 0 and "CAST\(Int64\(28\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +28 +NULL query I rowsort SELECT ALL + - 97 - 52 + + 5 * - 38 + - 78 AS col0 @@ -48563,8 +49076,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 / + - 4 AS col2, - 71 / - COUNT ( * ) AS col2 +---- +-19 +71 query I rowsort label-9264 SELECT ALL - COUNT ( * ) + + 77 @@ -48720,8 +49236,11 @@ SELECT MIN ( DISTINCT - 51 ) * + + 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -1672 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ Int64\(96\) \+ Int64\(\-62\) AS col1" at position 0 and "Int64\(38\) \* Int64\(\-44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 + 96 + - 62 AS col1, 38 * - 44 AS col1 +---- +-1672 +74 query I rowsort SELECT 85 - + 22 @@ -50409,8 +50928,11 @@ SELECT + COUNT ( * ) + - - 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-12\)\) AS col0" at position 0 and "Int64\(\-57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( ALL - 12 ) AS col0, - 57 AS col0 +---- +-12 +-57 query I rowsort label-9621 SELECT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) @@ -50553,8 +51075,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 66 col1, + 36 AS col1 +---- +-66 +36 query I rowsort label-9649 SELECT 57 - + ( - COUNT ( * ) ) @@ -50680,8 +51205,11 @@ SELECT COUNT ( * ) * 17 + - + ( + 18 ) # 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 col0" at position 0 and "count\(DISTINCT coalesce\(\(\- Int64\(42\)\), Int64\(\-65\)\)\) / Int64\(\-89\) \* Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 77 AS col0, COUNT ( DISTINCT COALESCE ( - + 42, - 65 ) ) / - 89 * + 1 AS col0 +---- +-77 +0 query I rowsort SELECT 13 * + 16 AS col0 @@ -50793,8 +51321,11 @@ SELECT DISTINCT + + 33 * + + ( + + 57 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -496 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* Int64\(\-31\) AS col1" at position 0 and "Int64\(64\) \- Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 16 * - 31 AS col1, 64 - + 42 AS col1 +---- +-496 +22 query I rowsort SELECT ALL + 72 + - 24 @@ -50857,8 +51388,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) / 28 AS col1, 91 AS col1 +---- +0 +91 query I rowsort label-9706 SELECT DISTINCT + 96 / COUNT ( * ) @@ -51407,8 +51941,11 @@ SELECT NULLIF ( - - 75, 42 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 46 AS col2, ( 68 ) AS col2 +---- +46 +68 query I rowsort SELECT - COALESCE ( 37, - 18 + + 3 ) @@ -51601,8 +52138,11 @@ SELECT - 84 * + - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) AS col1" at position 0 and "Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 54 col1, - 30 AS col1 +---- +-30 +-54 query I rowsort label-9847 SELECT CAST ( + 33 AS INTEGER ) @@ -51936,8 +52476,11 @@ SELECT + COUNT ( * ), 83 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 16 AS col0, 55 AS col0 +---- +-16 +55 query I rowsort SELECT DISTINCT - 33 + + - 63 AS col1 @@ -52139,8 +52682,11 @@ SELECT + 39 * - - 17 * + 85 + + COUNT ( * ) + - 9 # 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\(36\) 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 II valuesort SELECT - + 24 / + 36 AS col1, COUNT ( 45 ) AS col1 +---- +0 +1 query II rowsort label-9948 SELECT - + COUNT ( * ) * - 65, CAST ( NULL AS INTEGER ) AS col2 diff --git a/data/sqlite/random/expr/slt_good_42.slt b/data/sqlite/random/expr/slt_good_42.slt index 2cfb089..21bd3a3 100644 --- a/data/sqlite/random/expr/slt_good_42.slt +++ b/data/sqlite/random/expr/slt_good_42.slt @@ -641,8 +641,11 @@ SELECT ALL 40 + - - 66 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 19 AS col0, + 6 AS col0 +---- +19 +6 query I rowsort label-117 SELECT ALL - 12 + - NULLIF ( - - 67, - CAST ( NULL AS INTEGER ) + 60 ) AS col2 @@ -1184,8 +1187,11 @@ SELECT - 70 + + + SUM ( ALL + - 28 ), + MIN ( 38 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, + 50 AS col1 +---- +1 +50 query I rowsort SELECT - 46 + + 24 * 93 AS col2 @@ -1584,8 +1590,11 @@ SELECT + 9 + - + 68 * + 30 AS col2, - 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col1" at position 0 and "Int64\(\-1\) \* Int64\(\-59\) / Int64\(\-24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 AS col1, - 1 * - 59 / - 24 AS col1 +---- +-2 +86 query I rowsort label-296 SELECT + 85 + + + COUNT ( * ) @@ -2108,8 +2117,11 @@ SELECT DISTINCT CAST ( - + 83 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-61\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COALESCE ( - 61, - COUNT ( * ) ) AS col2, + COUNT ( * ) AS col2 +---- +-61 +1 query I rowsort label-394 SELECT + 91 + - COUNT ( * ) AS col0 @@ -2190,8 +2202,11 @@ SELECT + 90 - 37 + 98 * - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(15\)\)\)\) \+ Int64\(25\) AS col0" at position 0 and "Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( ALL 15 ) + + 25 col0, + 71 col0 +---- +26 +71 query I rowsort label-410 SELECT + + 80 - COALESCE ( 34, 56 * + + NULLIF ( - ( - + 56 ), 73 ) * + 61 + + + 10 + - - SUM ( - 15 ) ) AS col0 @@ -2489,14 +2504,20 @@ SELECT DISTINCT - 13 * 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 9 AS col0, 27 AS col0 +---- +-9 +27 # 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 10 AS col0, + ( + 6 ) + - ( + COUNT ( * ) ) col0 +---- +10 +5 query I rowsort label-469 SELECT ALL ( MAX ( DISTINCT ( 27 ) ) ) * - + 48 AS col2 @@ -2629,8 +2650,11 @@ SELECT - 93 + - - ( + - 42 ) + - COUNT ( * ) AS col1, MIN ( DISTINCT 99 ) / 93 - # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 4 AS col1, + 15 col1 +---- +-4 +15 query I rowsort SELECT ALL - - ( 19 ) AS col2 @@ -3206,8 +3230,11 @@ SELECT ALL 10 + + + 21 # 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\(4\) / Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 12 AS col0, 4 / + 42 AS col0 +---- +-12 +0 query I rowsort label-605 SELECT ALL - NULLIF ( - 44, + 84 ) + + 50 / + 20 @@ -3406,8 +3433,11 @@ SELECT ALL + 99 * - MAX ( + 2 ) * 7 AS col0 # 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 col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 31 AS col1, 51 AS col1 +---- +-31 +51 query I rowsort SELECT DISTINCT ( - + 52 ) * + 80 AS col2 @@ -3540,8 +3570,11 @@ SELECT - 98 * - 53 * + 71 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -690 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* Int64\(\-69\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 10 * - 69 AS col0, COUNT ( * ) AS col0 +---- +-690 +1 query I rowsort label-668 SELECT - 15 - - COUNT ( * ) - 27 @@ -3642,8 +3675,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ Int64\(28\) AS col2" at position 0 and "Int64\(\-47\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 33 + + + 28 AS col2, - 47 * + COUNT ( * ) AS col2 +---- +-47 +61 query I rowsort SELECT ALL + 42 + ( - 84 ) + 51 col0 @@ -3799,8 +3835,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 33 AS col1, - ( - + COUNT ( * ) ) AS col1 +---- +-33 +1 query I rowsort label-717 SELECT DISTINCT + 83 * + + COUNT ( * ) @@ -4073,8 +4112,11 @@ SELECT ALL + 71 * - + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \- count\(DISTINCT Int64\(69\)\) AS col0" at position 0 and "nullif\(CAST\(NULL AS Int32\), \(\- Int64\(75\)\) \* \(\- Int64\(\-16\)\) \* Int64\(40\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 - COUNT ( DISTINCT + 69 ) AS col0, NULLIF ( CAST ( NULL AS INTEGER ), - + 75 * - - 16 * + 40 ) AS col0 +---- +98 +NULL query I rowsort label-769 SELECT DISTINCT CASE 14 WHEN + + 23 * - SUM ( - 78 ) THEN + 47 WHEN + COUNT ( * ) THEN - - COUNT ( ALL + - 99 ) ELSE NULL END @@ -4211,8 +4253,11 @@ SELECT 92 * 11 + + 94 + 83 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col2" at position 0 and "Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 29 AS col2, 22 AS col2 +---- +22 +29 query I rowsort label-794 SELECT ALL MAX ( ALL + + 98 ) - - 5 @@ -4286,8 +4331,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 AS col2, 62 / - 98 * - - 85 * + COUNT ( * ) * + 39 AS col2 +---- +0 +40 query I rowsort label-808 SELECT ALL + COUNT ( * ) + + 80 * + - COUNT ( * ) @@ -4738,8 +4786,11 @@ SELECT + COUNT ( * ), + 4 - - 50 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22359 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* Int64\(82\) \* Int64\(4\) \+ Int64\(55\) AS col2" at position 0 and "Int64\(\-18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 68 * 82 * + 4 + + + 55 AS col2, - 18 col2 +---- +-18 +22359 query I rowsort label-894 SELECT - + CASE + - 30 WHEN 57 THEN + 65 WHEN + - COUNT ( * ) THEN MIN ( + 42 ) END - + 47 * + + 91 @@ -4865,8 +4916,11 @@ SELECT DISTINCT 73 * - 1 + - - 60 + - + 68 * - COUNT ( * ) * - 30 * - CAST ( 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 246 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \* Int64\(\-9\) \+ Int64\(76\) \+ \(\- nullif\(\(\- Int64\(\-47\)\), Int64\(18\) \* Int64\(84\) / Int64\(46\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 24 * - 9 + + 76 + - ( NULLIF ( - - 47, + 18 * + 84 / + 46 ) ) + + COUNT ( * ) AS col2, - 82 AS col2 +---- +-82 +246 query I rowsort label-919 SELECT + 31 / - - 33 + - + 2 + - 23 * + 28 + + 79 @@ -4971,8 +5025,11 @@ SELECT DISTINCT CAST ( - CASE - + NULLIF ( + 18, + 22 ) WHEN - - COUNT ( * ) THE # 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 "coalesce\(Int64\(73\), Int64\(\-75\)\) AS col0" at position 0 and "Int64\(24\) / Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COALESCE ( + 73, - 75 ) AS col0, + ( 24 ) / + + 13 AS col0 +---- +1 +73 query I rowsort SELECT ALL + 15 * + 59 AS col0 @@ -5622,8 +5679,11 @@ SELECT + COUNT ( * ) * + 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -21383 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col0" at position 0 and "Int64\(\-38\) \* Int64\(11\) \* Int64\(51\) \+ Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 AS col0, - 38 * + 11 * 51 + - 65 AS col0 +---- +-21383 +80 query I rowsort SELECT ALL + 19 * + 93 + 95 AS col2 @@ -6286,8 +6346,11 @@ SELECT ALL - SUM ( + 91 ) * 65 + - 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) / \(\- Int64\(\-69\)\) \* \(\- sum\(\(\- CAST\(Int64\(65\) AS Int32\)\)\)\) AS col2" at position 0 and "Int64\(\-77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 43 / - - 69 * - SUM ( - + CAST ( + + 65 AS INTEGER ) ) AS col2, - 77 AS col2 +---- +-77 +0 query I rowsort label-1196 SELECT DISTINCT CASE + 65 WHEN COUNT ( * ) + - + 12 - - 89 + + AVG ( ALL 3 ) + 63 * CASE - 18 + 9 WHEN 96 THEN CASE - COUNT ( - 25 ) WHEN COUNT ( * ) THEN ( COUNT ( * ) ) * - 22 END WHEN 48 THEN 71 * 17 + 99 END * - 92 THEN - 81 / 87 WHEN 47 THEN 64 WHEN + 40 * SUM ( DISTINCT - 18 ) THEN NULL ELSE 51 END * 59 + - 29 * 0 AS col1 @@ -6486,8 +6549,11 @@ SELECT 59 * - CAST ( - 38 AS INTEGER ) + + + COUNT ( * ) * 47 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col2" at position 0 and "Int64\(62\) \+ Int64\(\-17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 5 AS col2, + 62 + + - 17 AS col2 +---- +-5 +45 query I rowsort label-1234 SELECT ALL 60 - - - NULLIF ( - - 76, + - 39 * 47 ) + - 28 / + COUNT ( * ) AS col2 @@ -6778,8 +6844,11 @@ SELECT ALL - - NULLIF ( - + 83, - 86 / + MIN ( + + 94 ) + - - 39 ) * - 51 + + 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(81\)\) / \(\- min\(Int64\(\-61\)\)\) \+ \(\- CAST\(Int64\(\-30\) AS Int32\)\) AS col0" at position 0 and "CAST\(NULL AS Float64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - + 81 / + - MIN ( ALL - 61 ) + + - CAST ( - 30 AS INTEGER ) col0, CAST ( NULL AS FLOAT8 ) AS col0 +---- +29 +NULL query I rowsort label-1287 SELECT ALL + 75 / - - 40 @@ -6809,8 +6878,11 @@ SELECT - 39 * 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - -353 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \* min\(DISTINCT Int64\(50\)\) \+ Int64\(97\) AS col0" at position 0 and "Int64\(\-8\) \* CAST\(NULL AS Int32\) \+ count\(DISTINCT \(\- \(\- coalesce\(Int64\(\-25\), Int64\(87\)\)\)\)\) \* Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 9 * MIN ( DISTINCT + 50 ) + 97 AS col0, - 8 * + + CAST ( NULL AS INTEGER ) + + COUNT ( DISTINCT - - COALESCE ( - 25, 87 ) ) * 11 AS col0 +---- +-353 +NULL query I rowsort SELECT - 85 + 66 @@ -6855,8 +6927,11 @@ SELECT DISTINCT ( + 28 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(93\)\)\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( 93 ) col2, 12 AS col2 +---- +-93 +12 query I rowsort label-1302 SELECT DISTINCT CAST ( 82 AS INTEGER ) @@ -6967,8 +7042,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 2205 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-15\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(65\) THEN \(\- coalesce\(CAST\(\(\- Int64\(\-64\)\) AS Int32\), Int64\(2\)\)\) ELSE Int64\(63\) \* Int64\(35\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 15 AS col1, COUNT ( * ) * + CASE + COUNT ( * ) WHEN 65 THEN - COALESCE ( CAST ( - - 64 AS INTEGER ), + 2 ) ELSE + 63 * 35 END AS col1 +---- +15 +2205 query I rowsort label-1323 SELECT DISTINCT - 97 + + COALESCE ( - 20, - CAST ( + 71 AS INTEGER ) - + 54 ) AS col1 @@ -7150,8 +7228,11 @@ SELECT 56 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 AS col2, 48 col2 +---- +48 +80 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -7169,8 +7250,11 @@ SELECT ALL + 87 * + 44 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "coalesce\(Int64\(\-42\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(\-80\)\) \+ Int64\(59\) \+ CAST\(NULL AS Int32\) / Int64\(14\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) col0, COALESCE ( - 42, - - COUNT ( * ) * - ( ( - 80 ) ) + ( ( + 59 ) ) + + CAST ( NULL AS INTEGER ) / 14 ) AS col0 +---- +-1 +-42 query I rowsort label-1361 SELECT 63 / - - 61 @@ -7376,8 +7460,12 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-91\) \* Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - 75 + + 5 AS col0, COUNT ( * ) + - 91 * 45 AS col0, + + 8 +---- +-4094 +-70 +8 query I rowsort label-1400 SELECT DISTINCT COUNT ( DISTINCT + 4 ) @@ -7579,8 +7667,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ), COUNT ( * ) +---- +1 +1 query I rowsort label-1440 SELECT - COUNT ( * ) - + COUNT ( * ) col2 @@ -7901,8 +7992,11 @@ SELECT + MIN ( ALL - 87 ), 49 + - + 8 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - -1078 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-41\)\) AS col2" at position 0 and "Int64\(98\) \* CAST\(CAST\(Int64\(\-11\) AS Int32\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( - 41 ) AS col2, 98 * CAST ( + CAST ( - 11 AS INTEGER ) AS INTEGER ) AS col2 +---- +-1078 +-41 query I rowsort SELECT + 60 - + - 97 AS col2 @@ -8283,8 +8377,11 @@ SELECT DISTINCT + 13 * + 51 + + 37 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \- Int64\(\-84\) \- Int64\(\-64\) AS col1" at position 0 and "Int64\(\-98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 55 - + ( - 84 ) - - 64 AS col1, - 98 AS col1 +---- +-98 +93 query I rowsort label-1576 SELECT - 91 - + - COUNT ( * ) + + 43 @@ -8687,8 +8784,11 @@ SELECT ALL 42 AS col1, 38 / - 77 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 64 AS col0, + 69 AS col0 +---- +64 +69 query I rowsort label-1654 SELECT ALL - 75 * + COUNT ( * ) + + 8 + 62 AS col0 @@ -8926,8 +9026,11 @@ 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\(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\. +query II valuesort 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 +---- +-8277 +14 query II rowsort label-1700 SELECT ALL - ( 17 ) AS col1, CAST ( + ( + 29 ) AS INTEGER ) @@ -8996,8 +9099,11 @@ 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\(1\)\) AS count\(\*\)\), Int64\(\-44\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 21 AS col2, - 83 - - COALESCE ( - COUNT ( * ), - 44 ) AS col2 +---- +-84 +21 query II rowsort SELECT - 25 AS col1, 43 + - - 98 AS col2 @@ -9041,14 +9147,21 @@ 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\(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\. +query III valuesort SELECT DISTINCT + 53 + + ( + 86 ) AS col1, + COUNT ( * ) AS col2, - COUNT ( * ) * + 25 + - - COALESCE ( + - 37, 30 ) * + - 15 AS col1 +---- +1 +139 +530 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "Int64\(\-46\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 59 AS col1, - 46 / + COUNT ( * ) col1 +---- +-46 +59 query I rowsort SELECT ALL - + 87 + + - ( 42 ) + - 88 AS col2 @@ -9084,8 +9197,11 @@ SELECT ALL + 29 * - - 33 + + 48 AS col1, + COALESCE ( - - 77, 51 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -10060050 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col0" at position 0 and "Int64\(67\) \* \(\- Int64\(55\)\) \* Int64\(42\) \* Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 col0, + 67 * - + 55 * + + 42 * 65 AS col0 +---- +-10060050 +71 query I rowsort label-1729 SELECT ALL + - 58 * CAST ( + SUM ( + 19 ) AS INTEGER ) @@ -9723,8 +9839,11 @@ SELECT ALL + 26 - + + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \+ Int64\(38\) AS col2" at position 0 and "Int64\(56\) \+ Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 + 38 AS col2, 56 + - 79 AS col2 +---- +-23 +47 query I rowsort SELECT 12 * 39 * + 56 col1 @@ -9928,8 +10047,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * - COUNT ( - 36 ) col0, + 26 + - 30 + + - ( 21 ) AS col0 +---- +-1 +-25 query I rowsort label-1888 SELECT SUM ( + - 80 ) @@ -10334,8 +10456,11 @@ 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\(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\. +query II valuesort SELECT ALL - ( + - ( - COUNT ( * ) ) ) col1, 54 + 12 AS col1 +---- +-1 +66 query I rowsort SELECT ALL - - 46 AS col1 @@ -10399,8 +10524,11 @@ SELECT COUNT ( * ) + + 46 AS col1 # 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 "Int64\(0\) AS col2" at position 0 and "Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 0 AS col2, - 81 AS col2 +---- +-81 +0 query I rowsort SELECT 22 + 46 + + 8 @@ -10464,8 +10592,11 @@ SELECT 16 + + - ( - ( - - 23 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 71 AS col0, + CAST ( NULL AS INTEGER ) AS col0 +---- +71 +NULL query I rowsort SELECT DISTINCT + 24 * - 85 @@ -10786,8 +10917,11 @@ SELECT - 54 * + 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 4365 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(48\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-97\) \* max\(DISTINCT Int64\(\-45\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + + MAX ( 48 ) ) + COUNT ( * ) AS col0, - 97 * + MAX ( DISTINCT - 45 ) AS col0 +---- +-47 +4365 query II rowsort SELECT ALL 42 * 49 * 98, + 72 col1 @@ -10989,8 +11123,12 @@ 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\(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\. +query III valuesort SELECT + 48 + - COUNT ( * ) AS col1, 27 * - COUNT ( * ) + - 40 col1, + - 84 +---- +-67 +-84 +47 query I rowsort label-2090 SELECT ALL - + 11 + - - 73 + + CAST ( ( - - ( - - 50 ) ) AS INTEGER ) @@ -11110,8 +11248,11 @@ SELECT 56 + - 54 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, 60 col1 +---- +1 +60 query I rowsort label-2114 SELECT ( - 91 ) + - 23 + + SUM ( DISTINCT 7 ) - - + 97 @@ -11383,8 +11524,11 @@ SELECT ALL + 59 + + 51 + 4 * - 62 col0, - 57 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 97 col0, + 35 AS col0 +---- +35 +97 query I rowsort SELECT DISTINCT + + 2 - - 79 * - 61 + - + 93 AS col1 @@ -12242,8 +12386,11 @@ SELECT + 74 * - - 20 - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(10\)\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 10 AS col0, + 80 AS col0 +---- +-10 +80 query I rowsort label-2332 SELECT - 87 / - 2 + + - 62 + + - 64 col2 @@ -12290,8 +12437,12 @@ SELECT - - 9 * + - 34 + + 67 # Datafusion - Expected - 65 # Datafusion - Expected - 37 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 1 and "Int64\(\-40\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 65 AS col0, 37 AS col2, - 40 AS col2 +---- +-40 +37 +65 query I rowsort SELECT 68 * 70 * 20 @@ -12572,8 +12723,11 @@ SELECT + 12 * - 69 # 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 col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 11 AS col0, 67 AS col0 +---- +11 +67 query I rowsort SELECT + 88 * + 72 @@ -12646,8 +12800,11 @@ SELECT + 25 - - ( + + 84 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col0" at position 0 and "Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 14 col0, 19 AS col0 +---- +-14 +19 query I rowsort label-2410 SELECT ALL + SUM ( ALL - 18 ) AS col1 @@ -12662,8 +12819,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 26 AS col0, - 80 AS col0 +---- +-80 +26 query II rowsort label-2413 SELECT DISTINCT - 86 * 34 + - MAX ( 7 ), - 65 AS col1 @@ -12707,8 +12867,11 @@ SELECT - + 73 + + MIN ( - 69 ) * - 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) col2, - 97 AS col2 +---- +-97 +NULL query I rowsort label-2420 SELECT - - 93 + + COUNT ( * ) AS col2 @@ -13030,8 +13193,12 @@ SELECT - ( - SUM ( ALL + 6 ) ) AS col2 # Datafusion - Expected - 99 # Datafusion - Expected - NULL # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-99\)\) AS col2" at position 0 and "Int64\(\-56\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - 99 AS col2, 83 * CAST ( NULL AS INTEGER ), - 56 AS col2 +---- +-56 +99 +NULL query I rowsort SELECT ALL NULLIF ( - - 24, - 79 ) AS col0 @@ -13249,8 +13416,11 @@ SELECT ALL + NULLIF ( - + COUNT ( * ), 54 + COALESCE ( - 78, - 19 ) ) - + + 50 * # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col1" at position 0 and "Int64\(\-95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 60 AS col1, ( + + ( - 95 ) ) AS col1 +---- +-60 +-95 query I rowsort SELECT ALL - + 37 * + - 91 @@ -13423,8 +13593,11 @@ SELECT + NULLIF ( - + 92, 79 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(99\), Int64\(\-52\), Int64\(\-33\) \- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COALESCE ( + 99, - 52, - 33 - + CAST ( NULL AS INTEGER ) ) col0, + 66 col0 +---- +66 +99 query II rowsort SELECT + 46 + + 15, + 63 AS col1 @@ -13719,8 +13892,11 @@ NULL # 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 col2" at position 0 and "Int64\(23\) / Int64\(\-78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 63 AS col2, 23 / - 78 AS col2 +---- +-63 +0 query I rowsort label-2614 SELECT - CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) AS col2 @@ -13881,8 +14057,11 @@ 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\(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\. +query II valuesort SELECT + 37 / - 92 * 20 + + COUNT ( * ) - + 31 - - ( COUNT ( * ) ) AS col2, + 62 AS col2 +---- +-29 +62 query I rowsort SELECT + 76 - - + 52 @@ -14415,8 +14594,11 @@ SELECT 48 / - + 72 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col2" at position 0 and "Int64\(\-77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 25 AS col2, - 77 col2 +---- +-77 +25 query I rowsort SELECT DISTINCT 49 * - 80 @@ -14473,8 +14655,11 @@ SELECT ALL + 78 + 94 * + + 14 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col2" at position 0 and "Int64\(\-91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 63 AS col2, - 91 AS col2 +---- +-63 +-91 query I rowsort SELECT DISTINCT - CASE - 23 WHEN 23 THEN NULL WHEN - 80 THEN NULL ELSE - 87 END * + 8 col2 @@ -15682,8 +15867,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 166 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-57\)\) \* CAST\(NULL AS Int32\) \- CAST\(NULL AS Float64\) \+ Int64\(91\) AS col2" at position 0 and "\(\- nullif\(sum\(DISTINCT \(\- Int64\(76\)\)\), Int64\(\-38\)\)\) \- Int64\(\-90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT MAX ( ALL - 57 ) * + CAST ( NULL AS INTEGER ) - CAST ( NULL AS FLOAT8 ) + 91 AS col2, - NULLIF ( + SUM ( DISTINCT - + 76 ), - 38 ) - - 90 AS col2 +---- +166 +NULL query II rowsort label-2993 SELECT - 69 * 30 AS col2, + MAX ( ALL - - 40 ) col1 @@ -15925,8 +16113,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2031 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \+ Int64\(\-12\) \+ Int64\(36\) \* Int64\(55\) AS col1" at position 0 and "Int64\(\-22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 + - 12 + 36 * + 55 AS col1, - 22 AS col1 +---- +-22 +2031 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -17123,8 +17314,11 @@ SELECT COALESCE ( - 17, + 1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-54\) AS Int32\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( - 54 AS INTEGER ) col2, + ( + 21 ) AS col2 +---- +-54 +21 query I rowsort SELECT + 52 + 47 AS col2 @@ -17711,8 +17905,11 @@ SELECT DISTINCT 78 AS col0, 69 * - + 49 + - + 47 - + COALESCE ( 5, - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 32 AS col0, COUNT ( * ) col0 +---- +-32 +1 query II rowsort label-3382 SELECT 20 AS col1, - CAST ( + 24 AS INTEGER ) @@ -18055,8 +18252,11 @@ SELECT DISTINCT + + 80 + + 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(92\)\) AS col2" at position 0 and "Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( 92 ) AS col2, - 37 AS col2 +---- +-37 +1 query I rowsort SELECT ALL + - 13 + - 0 AS col0 @@ -18256,8 +18456,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 60 AS col0, + CAST ( NULL AS INTEGER ) AS col0 +---- +-60 +NULL query I rowsort SELECT - + 57 + + - 61 * + + ( - ( 34 ) ) @@ -18979,8 +19182,11 @@ SELECT 61 * 13 * + COUNT ( * ) + + + 23 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) 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 II valuesort SELECT DISTINCT + 22 AS col2, ( - 81 ) + + - ( + - 56 ) col2 +---- +-25 +22 query I rowsort label-3624 SELECT ALL 96 / 19 + + 44 - - 94 / - 75 AS col2 @@ -19000,8 +19206,11 @@ SELECT 14 * + ( + 16 ) + - + COUNT ( * ) * + - 56 + 86 * - - 15 * - 32 * - - 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col2, 50 AS col2 +---- +50 +NULL query I rowsort SELECT DISTINCT 59 * + 31 AS col2 @@ -19119,8 +19328,11 @@ SELECT ALL - 14 - 70 # 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 "\(\- Int64\(3\)\) AS col1" at position 0 and "Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 3 AS col1, + 77 AS col1 +---- +-3 +77 query I rowsort label-3651 SELECT 49 / + 86 * NULLIF ( 29, + 80 / - - NULLIF ( 89, + - ( - + 99 ) * + 44 ) ) @@ -19273,8 +19485,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1584 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* max\(DISTINCT CAST\(Int64\(\-72\) AS Int32\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 22 * MAX ( DISTINCT + ( CAST ( + - 72 AS INTEGER ) ) ) AS col0, CAST ( NULL AS INTEGER ) AS col0 +---- +1584 +NULL query I rowsort label-3681 SELECT - 47 * - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1 @@ -19388,8 +19603,11 @@ SELECT ALL 65 * - 31 - - 5 + 98 * + 89, + 98 / - + 82 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 2464 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "sum\(Int64\(\-44\)\) \* \(\- \(\- \(\- Int64\(56\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 44 col1, SUM ( + - 44 ) * - - ( - + 56 ) col1 +---- +2464 +44 query II rowsort label-3703 SELECT ALL + NULLIF ( + + CAST ( NULL AS INTEGER ), - - 48 + - 66 * - MIN ( ALL - 18 ) - - + 86 - + 6 ) + - 24 + - - CAST ( - 24 AS INTEGER ) * 9 / + 90, + 68 * + + 64 AS col2 @@ -19481,8 +19699,11 @@ SELECT - 95 * + 45, 69 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 53 AS col1, 15 col1 +---- +15 +53 query I rowsort label-3720 SELECT ALL ( - COALESCE ( + 57, + - 82 * + 24 - + COUNT ( * ) * - - 87 ) ) AS col0 @@ -19739,8 +19960,11 @@ SELECT ALL + 90 + + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -1147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) / Int64\(89\) AS col2" at position 0 and "Int64\(31\) \* Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 99 / + 89 AS col2, 31 * - 37 col2 +---- +-1 +-1147 query I rowsort label-3769 SELECT 62 * - CAST ( NULL AS INTEGER ) + + 57 / NULLIF ( 48, - 37 ) @@ -20528,8 +20752,11 @@ SELECT + 40 AS col1, CAST ( 20 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 AS col1, - 87 AS col1 +---- +-87 +16 query I rowsort label-3917 SELECT ALL COUNT ( DISTINCT + 53 ) AS col0 @@ -20554,8 +20781,11 @@ SELECT 87 + - 73 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ Int64\(\-70\) AS col1" at position 0 and "Int64\(\-15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 30 + + - 70 AS col1, - 15 AS col1 +---- +-15 +-40 query I rowsort SELECT ALL 90 * 11 * + 45 AS col0 @@ -20636,8 +20866,11 @@ SELECT DISTINCT 11 - + - 1 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1792 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* Int64\(64\) AS col0" at position 0 and "Int64\(97\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 28 * + 64 AS col0, 97 + + + COUNT ( * ) AS col0 +---- +1792 +98 query I rowsort label-3938 SELECT 38 * - + COUNT ( * ) * - 4 @@ -20778,8 +21011,11 @@ SELECT + MIN ( 60 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - -126 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col2" at position 0 and "Int64\(14\) \* Int64\(\-9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 97 AS col2, 14 * - 9 AS col2 +---- +-126 +97 query I rowsort label-3965 SELECT MIN ( + CAST ( - 86 AS INTEGER ) ) / - ( + - 93 ) + 30 AS col0 @@ -21031,8 +21267,11 @@ SELECT - 76 * 28 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "CASE Int64\(\-17\) WHEN Int64\(18\) \* Int64\(17\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-76\)\) \+ Int64\(\-55\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(78\) THEN Int64\(\-26\) WHEN \(\- CASE sum\(Int64\(18\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- max\(Int64\(61\)\) \+ Int64\(97\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(27\) \- Int64\(\-59\) \+ \(\- CAST\(NULL AS Int32\)\) THEN CASE Int64\(\-33\) WHEN \(\- Int64\(\-70\)\) \* Int64\(4\) / \(\- max\(Int64\(\-20\)\)\) \- Int64\(\-73\) THEN Int64\(4\) \* Int64\(\-73\) \+ Int64\(\-66\) / Int64\(47\) WHEN CAST\(NULL AS Float64\) THEN Int64\(\-16\) WHEN Int64\(85\) \- Int64\(\-58\) THEN Int64\(20\) \* Int64\(62\) END \* Int64\(81\) ELSE Int64\(\-67\) END\) THEN NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +98 +NULL query I rowsort SELECT ALL + ( 4 ) @@ -21153,8 +21392,11 @@ 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\(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\. +query II valuesort SELECT 85 * + COUNT ( * ) + 33 * - 26 AS col0, + 81 + 46 AS col0 +---- +-773 +127 query I rowsort label-4036 SELECT ALL 46 * - MAX ( 52 ) + + 94 + - 99 * - CAST ( NULL AS INTEGER ) * + + 13 / - 52 + - COUNT ( * ) + - 53 AS col1 @@ -21427,8 +21669,11 @@ SELECT 74 * + 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3445 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* Int64\(53\) AS col1" at position 0 and "Int64\(79\) / Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 65 * 53 AS col1, 79 / + 36 col1 +---- +2 +3445 query I rowsort label-4088 SELECT - COUNT ( - 54 ) @@ -21707,8 +21952,11 @@ SELECT + - ( 74 ) * - + 41 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( + ( 83 ) ) AS col2, 90 AS col2 +---- +83 +90 query I rowsort label-4141 SELECT DISTINCT CASE + 16 WHEN + + COALESCE ( + 81, + 75 + + + 7 ) THEN NULL ELSE - - 94 END * - 59 * COUNT ( * ) @@ -21797,8 +22045,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(31\) \* \(\- Int64\(98\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 AS col1, 19 - + - COUNT ( * ) * + + 31 * - + 98 AS col1 +---- +-3019 +6 query I rowsort label-4158 SELECT 83 / 68 * - + 84 AS col1 @@ -21979,8 +22230,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MIN ( DISTINCT - - ( - 97 ) ) - - COUNT ( * ) AS col0, 82 AS col0 +---- +-96 +82 query I rowsort SELECT DISTINCT 81 * - 88 * + 98 AS col1 @@ -22258,8 +22512,11 @@ SELECT ALL CAST ( 1 AS INTEGER ), 46 AS col1 # 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 "Int64\(\-74\) AS col2" at position 0 and "Int64\(\-60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 74 AS col2, - 60 col2 +---- +-60 +-74 query II rowsort SELECT - 77 AS col0, + 30 + 14 * 4 AS col1 @@ -22416,8 +22673,12 @@ SELECT ALL 59 / + ( 72 ), - 24 AS col1 # Datafusion - Expected - -61 # Datafusion - Expected - 27 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(61\), \(\- nullif\(\(\- Int64\(11\)\), Int64\(50\) \+ coalesce\(\(\- coalesce\(Int64\(\-70\), \(\- Int64\(\-61\)\)\)\), count\(DISTINCT Int64\(77\)\)\)\)\) \+ Int64\(\-47\)\)\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - NULLIF ( 61, - NULLIF ( - + 11, + 50 + COALESCE ( - COALESCE ( + - 70, - - 61 ), COUNT ( DISTINCT + 77 ) ) ) + - 47 ) AS col1, 27 AS col1, - COUNT ( * ) col0 +---- +-1 +-61 +27 query I rowsort SELECT ALL + 32 * - 68 * + 24 AS col1 @@ -22583,8 +22844,11 @@ SELECT 57 * + 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-92\) \+ Int64\(8\) AS col2" at position 0 and "Int64\(16\) \+ Int64\(45\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) / - 92 + 8 AS col2, + ( + + 16 ) + 45 * + COUNT ( * ) AS col2 +---- +61 +8 query I rowsort SELECT ALL + 77 * + 85 @@ -22601,8 +22865,11 @@ SELECT ( 90 ) * - 5 col1 # Datafusion - Expected - -12 # Datafusion - Expected - NULL skipif postgres -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \+ \(\- Int64\(85\)\) AS col0" at position 0 and "CASE \(\- Int64\(50\)\) WHEN Int64\(36\) \+ CASE \(\- \(\- nullif\(Int64\(92\), min\(DISTINCT Int64\(17\)\) \+ Int64\(54\)\)\)\) WHEN Int64\(43\) \+ Int64\(3\) THEN Int64\(57\) \* Int64\(30\) \* Int64\(\-8\) WHEN \(\- Int64\(94\)\) \* Int64\(\-23\) THEN \(\- Int64\(30\)\) / Int64\(\-88\) / CAST\(Int64\(0\) AS Int32\) END THEN CAST\(Int64\(63\) AS Int32\) END \* Int64\(86\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-12 +NULL query I rowsort SELECT ALL 82 * + 30 AS col2 @@ -22633,8 +22900,11 @@ SELECT 37 + + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 AS col1, 70 AS col1 +---- +70 +84 query I rowsort label-4317 SELECT ALL - CAST ( NULL AS INTEGER ) + - 64 + - 85 + + + COUNT ( * ) / COUNT ( * ) @@ -23556,8 +23826,11 @@ SELECT ALL + CAST ( + CAST ( 78 AS INTEGER ) AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 91 AS col0, + 17 AS col0 +---- +17 +91 query I rowsort label-4496 SELECT + COALESCE ( + CASE - NULLIF ( 41, 31 * COUNT ( * ) ) WHEN 46 * + CAST ( - ( - 76 ) * + 98 AS INTEGER ) THEN NULLIF ( + COUNT ( * ), - COUNT ( * ) * 41 ) END, - 70 + MAX ( 26 ) ) AS col0 @@ -23745,8 +24018,11 @@ SELECT - 22 * - - COUNT ( * ) * + + MAX ( + 25 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 252 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \* Int64\(\-9\) AS col0" at position 0 and "Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 28 * - 9 AS col0, 37 AS col0 +---- +252 +37 query I rowsort label-4533 SELECT - COUNT ( + 73 ) + 59 @@ -24943,8 +25219,11 @@ SELECT ALL + 3 + 4 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5761 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \+ Int64\(65\) \* Int64\(88\) AS col1" at position 0 and "Int64\(\-49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 41 + + + 65 * + 88 AS col1, - 49 col1 +---- +-49 +5761 query I rowsort label-4763 SELECT ALL CAST ( - - 5 AS INTEGER ) + COALESCE ( - 8, - 51 ) + + + 34 * - ( NULLIF ( 38, - 55 ) ) @@ -24999,8 +25278,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 45 AS col1, - 17 - - COUNT ( * ) * 88 AS col1 +---- +45 +71 query I rowsort SELECT ALL + 36 * - 55 * + 54 @@ -25100,8 +25382,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col1" at position 0 and "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 86 col1, + 58 AS col1 +---- +-86 +58 query I rowsort label-4793 SELECT ALL + 73 * CAST ( NULL AS INTEGER ) + + 27 AS col2 @@ -25314,8 +25599,11 @@ 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\(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\. +query II valuesort SELECT - ( - COUNT ( * ) ) AS col1, - 36 + 51 AS col1 +---- +1 +15 query II rowsort label-4834 SELECT - SUM ( ALL 36 ) AS col0, 62 * - 93 @@ -25483,14 +25771,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - -3182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col2" at position 0 and "Int64\(37\) \* Int64\(\-86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 69 AS col2, + 37 * + - 86 AS col2 +---- +-3182 +-69 # Datafusion - Datafusion expected results: # Datafusion - Expected - 740 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(50\)\)\) \+ Int64\(\-48\) \+ Int64\(\-46\) \* Int64\(\-17\) \+ Int64\(56\) AS col2" at position 0 and "Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( 50 ) + + - 48 + - 46 * - 17 + + 56 AS col2, 8 AS col2 +---- +740 +8 query II rowsort label-4867 SELECT - 55, MIN ( DISTINCT - 10 ) + - + 0 AS col1 @@ -25752,8 +26046,12 @@ SELECT - COALESCE ( + COUNT ( * ), - + 24 / - 87 / - 8 + 16 ) # Datafusion - Expected - 1 # Datafusion - Expected - 1 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(94\) / Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT COUNT ( * ) AS col2, 94 / + 52 AS col2, - ( + 80 ) +---- +-80 +1 +1 query I rowsort SELECT + 11 - - - 37 @@ -26044,8 +26342,11 @@ SELECT - 45 + - 95 / + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - -5704 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-14\)\) AS col1" at position 0 and "Int64\(\-92\) \* Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 14 col1, - 92 * + 62 AS col1 +---- +-5704 +14 query I rowsort SELECT + - 13 col0 @@ -26355,8 +26656,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 57 col1, + 93 * ( - COUNT ( * ) ) AS col1 +---- +-93 +57 query I rowsort label-5032 SELECT COUNT ( * ) * + MAX ( DISTINCT NULLIF ( + + 47, - 95 ) ) * + 22 + + 13 + + 58 - 23 @@ -26582,8 +26886,11 @@ SELECT + COUNT ( DISTINCT + COALESCE ( + 68, + 46 + - 8 + ( 2 ) - - 97 / + 72 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -7372 # Datafusion - Expected - -240 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* \(\- Int64\(97\)\) AS col2" at position 0 and "Int64\(30\) \* Int64\(\-8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 76 * - + 97 AS col2, 30 * + - 8 AS col2 +---- +-240 +-7372 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -26685,8 +26992,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 162 -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\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 69 AS col2, + 9 * + 18 AS col2 +---- +-69 +162 query I rowsort SELECT 40 * - 79 AS col2 @@ -26962,8 +27272,11 @@ SELECT - - 97 AS col1, COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "Int64\(\-74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 99 AS col0, - 74 AS col0 +---- +-74 +99 query I rowsort SELECT - 82 + 12 @@ -27019,8 +27332,11 @@ SELECT - 52 * + COUNT ( * ) col0, - 23 + - 31 * 12 + - ( 36 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(43\)\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MAX ( + + 43 ) AS col2, 24 col2 +---- +24 +43 query I rowsort label-5159 SELECT ALL - 69 / + 81 * 44 + COUNT ( * ) AS col0 @@ -27266,14 +27582,20 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 1 AS col0, 91 * - - COUNT ( * ) AS col0 +---- +-1 +91 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 3705 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(82\)\) AS col0" at position 0 and "\(\- max\(Int64\(95\)\)\) \* Int64\(\-39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 82 AS col0, - MAX ( ALL + 95 ) * - 39 AS col0 +---- +-82 +3705 query II rowsort label-5207 SELECT 0 AS col2, - 35 + + - COUNT ( * ) * - 7 + + COUNT ( * ) + + 50 * - MIN ( - 93 ) * + COUNT ( * ) * - + 15 - - ( + 80 ) + - 8 * 36 AS col1 @@ -27985,8 +28307,11 @@ SELECT 3 + + + COUNT ( * ) + - 60 * - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col1" at position 0 and "Int64\(57\) \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 AS col1, + 57 * 2 AS col1 +---- +114 +5 query I rowsort SELECT DISTINCT 3 + + 48 @@ -28328,14 +28653,21 @@ SELECT - ( + MAX ( DISTINCT 70 ) ) + + 68 AS col0 # Datafusion - Expected - 28 # Datafusion - Expected - -21 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 28 AS col2, ( - 21 ), + 66 AS col2 +---- +-21 +28 +66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- Int64\(98\)\)\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + COUNT ( ALL - + 98 ) ) col0, + 79 AS col0 +---- +1 +79 query I rowsort label-5408 SELECT + COUNT ( DISTINCT - CAST ( + + 56 AS INTEGER ) ) AS col0 @@ -28573,8 +28905,11 @@ SELECT DISTINCT + 76 AS col2, 7 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "nullif\(\(\- Int64\(70\)\), Int64\(61\)\) / Int64\(\-54\) \+ Int64\(59\) \+ Int64\(\-58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, + NULLIF ( - ( 70 ), + 61 ) / - 54 + + + 59 + + - 58 col0 +---- +1 +2 query I rowsort label-5453 SELECT - ( + 83 ) + - COUNT ( * ) @@ -28682,8 +29017,11 @@ SELECT - + NULLIF ( 49, 22 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(65\)\) AS col2" at position 0 and "Int64\(\-14\) \+ Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 65 AS col2, - 14 + 54 AS col2 +---- +-65 +40 query I rowsort label-5474 SELECT CASE - - 49 WHEN - 28 * + 50 + - ( COUNT ( * ) ) * + 92 + + CASE + COUNT ( * ) WHEN + - 43 * - + 16 THEN NULL ELSE + - 6 * + 28 END * COUNT ( * ) THEN 48 WHEN 48 THEN 8 * - - 37 + + 58 * + COUNT ( * ) - + 64 + + 13 END * + 32 @@ -29603,8 +29941,12 @@ SELECT - 77 AS col1, + 63 # Datafusion - Expected - 44 # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +1 +44 +NULL query I rowsort label-5651 SELECT ALL + 3 / - 77 + + + 84 AS col2 @@ -29614,8 +29956,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + + COUNT ( * ), COUNT ( * ) +---- +1 +1 query I rowsort SELECT DISTINCT - - 25 * - + 87 * + 20 AS col1 @@ -29751,8 +30096,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2100 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \* \(\- 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 II valuesort SELECT - 25 * - - 84 AS col0, ( - 4 ) AS col0 +---- +-2100 +-4 query I rowsort label-5679 SELECT DISTINCT - COUNT ( * ) - + - COUNT ( * ) @@ -29881,8 +30229,12 @@ SELECT - 85, 48 * + 12 AS col0 # Datafusion - Expected - -88 # Datafusion - Expected - 145451 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* \(\- max\(\(\- Int64\(47\)\)\)\) \* \(\- Int64\(\-91\)\) \+ Int64\(33\) AS col0" at position 1 and "\(\- \(\- \(\- Int64\(\-46\)\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 88, 34 * - MAX ( - + 47 ) * - - 91 + 33 AS col0, - - ( - - 46 ) AS col0 +---- +-88 +145451 +46 query I rowsort label-5704 SELECT COUNT ( * ) / + + NULLIF ( + COUNT ( * ), - NULLIF ( 69, + 88 ) + + + COUNT ( * ) ) @@ -29897,8 +30249,11 @@ SELECT 57 * - - CAST ( + 40 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col2" at position 0 and "Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 AS col2, - 38 AS col2 +---- +-38 +33 query I rowsort SELECT DISTINCT 55 * + 86 @@ -29935,8 +30290,11 @@ SELECT - ( + ( 36 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5412 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(61\)\)\) \* \(\- Int64\(66\)\) \* Int64\(\-82\) AS col1" at position 0 and "Int64\(\-78\) \+ Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( ALL 61 ) * - + 66 * + - 82 AS col1, - 78 + + 9 AS col1 +---- +-5412 +-69 query I rowsort label-5714 SELECT 15 * + COUNT ( * ) + - ( - 96 ) @@ -30202,8 +30560,11 @@ 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\(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\. +query II valuesort SELECT ALL + 98 * + + 58 + - 8 + + COUNT ( * ) * 11 AS col2, 7 AS col2 +---- +5687 +7 query I rowsort label-5766 SELECT - ( + + MIN ( DISTINCT + - 95 ) ) * - 21 + 48 + + - 26 AS col0 @@ -30427,8 +30788,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( + 23, - - 26 * + COUNT ( * ) ) AS col0, + 63 col0 +---- +23 +63 query I rowsort label-5808 SELECT ALL ( - COALESCE ( + SUM ( ( - - 38 ) ), 27 * SUM ( 67 ) ) ) AS col0 @@ -30646,8 +31010,11 @@ SELECT ALL + + 45 + + NULLIF ( - - 83, - 54 ) * - 30, - COUNT ( * ) * - CASE + - # 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 "Int64\(16\) \+ Int64\(\-19\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 16 + - 19 AS col2, + 34 AS col2 +---- +-3 +34 query I rowsort SELECT - 55 * + 89 + - 18 * - 61 @@ -31213,8 +31580,11 @@ SELECT 60 AS col1, 13 + + 23 + - - COUNT ( ALL + 34 ) * ( + 49 ) + + + MAX ( + + # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - -79 -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\(79\), Int64\(18\) \* \(\- min\(DISTINCT Int64\(\-36\)\)\), Int64\(\-4\) \* Int64\(24\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 66 AS col2, - COALESCE ( 79, + + 18 * - + MIN ( DISTINCT + - 36 ), + - 4 * + 24 ) AS col2 +---- +-66 +-79 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -31278,8 +31648,11 @@ SELECT 94 / + 11 AS col0 # 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\) \- Int64\(66\) / Int64\(16\) / Int64\(44\) \* Int64\(\-19\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 28 ) - + + 66 / 16 / 44 * - 19 AS col2, 3 AS col2 +---- +-28 +3 query I rowsort label-5970 SELECT ( COALESCE ( + 18, CAST ( NULL AS INTEGER ) ) ) AS col2 @@ -31455,8 +31828,11 @@ SELECT - 53 * + 33 * 38 * - - 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1610 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* Int64\(70\) AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 23 * + 70 AS col2, 40 AS col2 +---- +1610 +40 query II rowsort label-6004 SELECT + SUM ( + NULLIF ( - 58, - + 53 * + - 78 ) ) AS col0, 77 * 35 - 76 col1 @@ -32365,8 +32741,11 @@ SELECT ALL - MAX ( + 27 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 AS col0, 71 AS col0 +---- +71 +77 query I rowsort label-6183 SELECT - 40 * 63 * + COUNT ( * ) + - 12 @@ -33101,8 +33480,11 @@ SELECT ALL - ( - - NULLIF ( 73, + 83 + - MIN ( + 53 ) / - 2 * + 11 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4464 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(62\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 * 62 AS col2, CAST ( NULL AS INTEGER ) + + - 30 AS col2 +---- +4464 +NULL query II rowsort SELECT ALL - 7 + - 50 - + - 49 AS col0, 8 @@ -33129,8 +33511,12 @@ SELECT ALL + 66 + + 30 # Datafusion - Expected - 0 # Datafusion - Expected - -67 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) AS col0" at position 1 and "\(\- Int64\(\-37\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - + COUNT ( - CAST ( NULL AS INTEGER ) ) AS col1, - 67 col0, - - 37 col0 +---- +-67 +0 +37 query I rowsort SELECT + COALESCE ( + - 6, - 10 ) * 27 AS col1 @@ -33211,8 +33597,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 AS col0, 98 AS col0 +---- +42 +98 query II rowsort label-6348 SELECT + 8 - SUM ( DISTINCT - 1 ) AS col1, + 64 @@ -33314,8 +33703,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 62 AS col2, 0 AS col2 +---- +0 +62 query I rowsort label-6367 SELECT DISTINCT + 93 * 82 + - ( - 82 ) + + MAX ( DISTINCT - - ( + ( - 91 ) ) ) * 40 * 50 @@ -33653,8 +34045,11 @@ SELECT + 99, 13 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 4023 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col1" at position 0 and "\(\- Int64\(75\)\) \* Int64\(\-53\) \+ sum\(DISTINCT Int64\(48\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 31 col1, + ( - ( + 75 ) ) * - 53 + + SUM ( DISTINCT 48 ) AS col1 +---- +-31 +4023 query I rowsort SELECT + COALESCE ( - 4, - + COALESCE ( + 29, 78 + 52 ), + 90, - 74 ) AS col1 @@ -33835,8 +34230,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT - 90 AS col1, - 2 AS col1 +---- +-2 +-90 query I rowsort label-6467 SELECT ALL - MAX ( ALL 96 ) - + + 13 AS col0 @@ -33889,8 +34287,11 @@ SELECT - 99 + - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 84 AS col1, 24 AS col1 +---- +24 +84 query I rowsort SELECT + 13 + - 3 * 11 @@ -34091,8 +34492,11 @@ SELECT - + 16 / COALESCE ( CAST ( NULL AS INTEGER ), + 89, 13 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2952 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-41\)\) \* Int64\(72\) AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 41 * + 72 AS col1, 40 AS col1 +---- +2952 +40 query I rowsort label-6515 SELECT ALL - 35 + + 38 + + COUNT ( * ) + - - 72 * + 11 @@ -34102,8 +34506,11 @@ SELECT ALL - 35 + + 38 + + COUNT ( * ) + - - 72 * + 11 # 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\(44\) \+ Int64\(36\) AS col1" at position 0 and "sum\(DISTINCT \(\- Int64\(21\)\)\) \+ Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 44 + + + 36 AS col1, + SUM ( DISTINCT + ( - + 21 ) ) + + 48 AS col1 +---- +27 +80 query I rowsort SELECT - 77 * - - 91 AS col1 @@ -34425,8 +34832,11 @@ SELECT DISTINCT 25 * - - 18 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col1, 9 col1 +---- +9 +NULL query I rowsort label-6578 SELECT 98 / + 76 AS col0 @@ -35123,8 +35533,11 @@ SELECT 42 * + 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 AS col2, COUNT ( * ) AS col2 +---- +1 +21 query I rowsort SELECT + - ( 78 ) AS col0 @@ -35537,8 +35950,11 @@ 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\(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\. +query II valuesort SELECT - 68 - COUNT ( * ) * COUNT ( ALL - - ( - 10 ) ) + - ( 82 ) AS col1, - 86 AS col1 +---- +-151 +-86 query I rowsort label-6793 SELECT - 85 + 42 - - + CAST ( + 45 AS INTEGER ) / + + 67 + 65 @@ -35728,8 +36144,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( ( - + ( 18 ) ) ) AS col2, + 50 - + COUNT ( * ) + + 98 AS col2 +---- +-18 +147 query I rowsort SELECT 30 + - 0 + - 89 * - - 96 @@ -36203,8 +36622,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) / 7 AS col1, + 71 * - 0 AS col1 +---- +0 +0 query I rowsort SELECT + 11 + + 30 AS col2 @@ -36282,8 +36704,11 @@ SELECT 52 + + 15 * + - 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 0 and "\(\- min\(DISTINCT Int64\(11\)\)\) / \(\- CAST\(NULL AS Int32\)\) \+ Int64\(28\) \+ Int64\(29\) / Int64\(36\) \* Int64\(\-5\) \- Int64\(39\) \- Int64\(54\) \+ Int64\(85\) \* avg\(Int64\(\-77\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + 58 col1, - MIN ( DISTINCT + 11 ) / - CAST ( NULL AS INTEGER ) + 28 + + 29 / ( + 36 ) * + - 5 - 39 - + 54 + + ( + 85 ) * + AVG ( - 77 ) AS col1 +---- +58 +NULL query I rowsort label-6935 SELECT ALL - SUM ( DISTINCT + 21 ) @@ -36452,8 +36877,11 @@ SELECT DISTINCT 90 + + CASE COUNT ( * ) WHEN + 74 + + + 19 + 61 * 79 THEN 31 + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 59 AS col0, - 65 AS col0 +---- +-65 +59 query I rowsort label-6967 SELECT 65 / 7 + - ( - CASE - 85 WHEN + ( + + 62 ) + + 40 THEN NULL WHEN 16 THEN + - COALESCE ( - 21, - SUM ( ALL + - ( 63 ) ) ) ELSE NULL END ) @@ -36616,8 +37044,11 @@ SELECT ALL + ( - - 31 ) + + 35 * + 82 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 AS col1, + COUNT ( * ) AS col1 +---- +-58 +1 query I rowsort label-6999 SELECT - + 76 * - ( - 33 ) + + COALESCE ( 8, - ( - + COUNT ( * ) ) ) col0 @@ -36703,8 +37134,11 @@ SELECT 71 / - 17 - - MIN ( 67 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4824 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(\-67\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 72 * - 67 AS col0, 40 AS col0 +---- +-4824 +40 query I rowsort SELECT + ( + 0 ) AS col1 @@ -37320,8 +37754,11 @@ 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\(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\. +query II valuesort SELECT ALL - 71 * + CASE - 11 WHEN - 24 + ( + 41 ) THEN - NULLIF ( + 41, + COUNT ( * ) + + 42 + + + 36 ) * 21 * - 64 END * - 84 AS col2, 95 * + 93 AS col2 +---- +8835 +NULL query I rowsort label-7134 SELECT - SUM ( + 69 ) @@ -37434,8 +37871,11 @@ SELECT DISTINCT + SUM ( ( 0 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1464 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(\-24\) AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 61 * - 24 AS col1, + 90 AS col1 +---- +-1464 +90 query I rowsort SELECT ALL - 39 * - 29 col1 @@ -37669,8 +38109,11 @@ SELECT ALL + 90 * - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \- \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-6\) AS col1" at position 0 and "coalesce\(Int64\(8\), \(\- Int64\(77\)\) \* Int64\(\-85\), Int64\(13\) \+ Int64\(\-88\) / Int64\(50\) \* Int64\(95\) \+ Int64\(56\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 81 - - CAST ( NULL AS INTEGER ) * - 6 AS col1, COALESCE ( 8, - + 77 * + - 85, + 13 + ( - 88 ) / + + 50 * 95 + + 56 ) AS col1 +---- +8 +NULL query I rowsort SELECT ALL 48 * 68 @@ -37917,8 +38360,11 @@ 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\(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\. +query II valuesort 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 +---- +3984 +NULL query I rowsort label-7248 SELECT ALL + NULLIF ( 44, 70 * - 0 / + - CAST ( NULL AS INTEGER ) - 3 + + 38 ) + + 58 - - 66 AS col1 @@ -37939,8 +38385,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 33 * - CAST ( NULL AS INTEGER ), - 92 + COUNT ( ( 83 ) ) + + + 52 + + ( + + 96 ) / 49 col1, + - COUNT ( * ) AS col1 +---- +-1 +-38 +NULL query I rowsort SELECT DISTINCT + 58 * + 28 @@ -38049,8 +38499,11 @@ SELECT DISTINCT - 23 + + 5 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 3796 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ \(\- Int64\(\-18\)\) \+ Int64\(45\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-33\) AS col0" at position 0 and "\(\- min\(Int64\(73\)\)\) \* \(\- CAST\(Int64\(52\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + + 60 ) + - - 18 + 45 + + + COUNT ( * ) + - 33 col0, - MIN ( + + 73 ) * + - CAST ( + 52 AS INTEGER ) AS col0 +---- +3796 +91 query I rowsort SELECT ALL ( - 12 ) AS col2 @@ -38358,8 +38811,12 @@ SELECT MAX ( 92 ) AS col1 # Datafusion - Expected - -64 # Datafusion - Expected - NULL # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(\-1\) \+ Int64\(\-77\) AS col1" at position 1 and "\(\- min\(\(\- CAST\(CAST\(Int64\(\-34\) AS Int32\) AS Int32\)\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 1 * - + 64, CAST ( NULL AS INTEGER ) + - 1 + - 77 AS col1, - MIN ( - CAST ( CAST ( + - 34 AS INTEGER ) AS INTEGER ) ) AS col1 +---- +-34 +-64 +NULL query II rowsort label-7331 SELECT CAST ( NULL AS INTEGER ) / - 30 AS col0, - 23 / 52 @@ -38570,8 +39027,12 @@ SELECT ALL + 88, + ( - 94 ) AS col0 # Datafusion - Expected - 7110 # Datafusion - Expected - 251 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* Int64\(78\) \+ Int64\(12\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 91 * + + 78 + 12 AS col1, 65 + 95 - - 91 col0, + 94 col1 +---- +251 +7110 +94 query I rowsort label-7371 SELECT + NULLIF ( 13, - + 80 + - + 32 * - NULLIF ( - NULLIF ( + - 87, 88 ), + + 0 * - 19 ) + + MAX ( - 56 ) ) @@ -38591,8 +39052,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ), COUNT ( * ) +---- +1 +1 query I rowsort SELECT DISTINCT ( - 46 ) * - 29 AS col0 @@ -38642,8 +39106,11 @@ SELECT - 4 / + MIN ( ALL + - 56 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2718 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* Int64\(65\) \+ \(\- Int64\(77\)\) AS col0" at position 0 and "\(\- nullif\(Int64\(\-95\), \(\- Int64\(\-37\)\) / Int64\(66\) \- Int64\(21\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 43 * + 65 + - + 77 AS col0, - NULLIF ( - 95, - - 37 / + 66 - + ( 21 ) ) AS col0 +---- +2718 +95 query II rowsort SELECT ALL + - CASE + ( - - 97 ) WHEN - 61 + - 66 THEN 38 WHEN - 73 * 94 THEN NULL END AS col0, + 24 AS col1 @@ -39250,8 +39717,11 @@ SELECT + 25 AS col0, - 73 * 90 AS col1 # 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\(33\) AS col2" at position 0 and "Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 33 col2, + 8 AS col2 +---- +33 +8 query I rowsort label-7499 SELECT DISTINCT + MIN ( DISTINCT 21 ) @@ -39439,8 +39909,11 @@ SELECT + 12 - + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39325 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* Int64\(\-65\) \* Int64\(55\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* CASE Int64\(21\) WHEN \(\- Int64\(95\)\) / Int64\(21\) THEN NULL WHEN Int64\(60\) THEN Int64\(3\) \- Int64\(42\) \- Int64\(73\) \- Int64\(64\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 11 * - 65 * 55 col0, CAST ( NULL AS INTEGER ) * CASE 21 WHEN - + 95 / + + 21 THEN NULL WHEN 60 THEN 3 - + + 42 - 73 - + 64 END AS col0 +---- +39325 +NULL query I rowsort label-7535 SELECT - 24 / - + COUNT ( * ) @@ -39511,8 +39984,11 @@ SELECT DISTINCT 11 + + + 63 * - ( 23 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 99 AS col0, + 29 col0 +---- +-99 +29 query I rowsort label-7549 SELECT ALL - 68 + + COUNT ( * ) AS col2 @@ -39604,8 +40080,11 @@ SELECT ALL - COALESCE ( 57, - - COUNT ( * ) / - 75 * + 12 / 10 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1232 # Datafusion - Expected - 177 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(77\) AS Int32\) \* Int64\(16\) AS col1" at position 0 and "Int64\(3\) \* Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + CAST ( + + 77 AS INTEGER ) ) * + 16 AS col1, 3 * + 59 AS col1 +---- +1232 +177 query I rowsort SELECT 49 * - 83 @@ -39854,8 +40333,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 21 AS col2, + 26 col2 +---- +-21 +26 query I rowsort SELECT + - 80 + - + 35 AS col0 @@ -40035,8 +40517,11 @@ SELECT + - 51 + - 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3102624 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \* Int64\(24\) \* \(\- Int64\(84\)\) \* \(\- nullif\(Int64\(57\), Int64\(55\)\)\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( 27 ) * 24 * - + 84 * - NULLIF ( 57, 55 ) AS col0, 9 AS col0 +---- +3102624 +9 query II rowsort SELECT - 5, 29 AS col0 @@ -41063,8 +41548,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col2" at position 0 and "Int64\(46\) / \(\- CASE WHEN Int64\(\-40\) IS NOT NULL THEN NULL WHEN \(\- nullif\(Int64\(\-35\), avg\(Int64\(9\)\)\)\) NOT IN \(\[Int64\(78\)\]\) THEN Int64\(52\) ELSE Int64\(63\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 50 AS col2, + 46 / - CASE WHEN ( - 40 ) IS NOT NULL THEN NULL WHEN - NULLIF ( - 35, AVG ( ALL + 9 ) ) NOT IN ( 78 ) THEN ( 52 ) ELSE + 63 END AS col2 +---- +50 +NULL query I rowsort SELECT - 30 * + - 16 @@ -41242,8 +41730,11 @@ SELECT ALL - 24 * + 55 + + 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 1267 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(20\) AS Int32\) AS col2" at position 0 and "Int64\(26\) \+ Int64\(51\) \+ Int64\(85\) \* Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( + 20 AS INTEGER ) col2, 26 + + 51 + 85 * + 14 AS col2 +---- +1267 +20 query I rowsort label-7881 SELECT 36 * + - 8 + + NULLIF ( + 46, - CAST ( 2 AS INTEGER ) ) - 0 @@ -41957,8 +42448,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(54\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 72 - 81 * + 72 AS col0, + NULLIF ( 93, - 84 - + 56 - + - COUNT ( * ) + 54 ) AS col0 +---- +-5760 +93 query I rowsort SELECT - 84 * - 24 * 85 AS col0 @@ -42034,8 +42528,11 @@ SELECT ALL - MIN ( DISTINCT 89 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 AS col0, 55 AS col0 +---- +32 +55 query II rowsort label-8035 SELECT ALL - 91 AS col0, + 47 / - + MIN ( ALL 73 ) + - + COALESCE ( + 7, + 3 ) + - - 73 + 51 * - 98 AS col1 @@ -42072,8 +42569,11 @@ 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\(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\. +query II valuesort SELECT + 23 AS col1, + CASE + 40 WHEN - 77 + - 26 THEN NULL WHEN - + 55 - + COUNT ( * ) THEN NULL ELSE - 3 END * ( 42 ) AS col1 +---- +-126 +23 query I rowsort label-8042 SELECT 27 / 61 @@ -42420,8 +42920,11 @@ SELECT + CASE WHEN ( - 73 ) IS NULL THEN NULL ELSE - 21 END / SUM ( NULLIF ( + + # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) \* \(\- Int64\(97\)\) \+ Int64\(34\) \+ \(\- CAST\(Int64\(58\) AS Int32\)\) AS col2" at position 0 and "Int64\(1\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(68\) \* \(\- count\(Int64\(\-25\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - CAST ( NULL AS FLOAT8 ) * - + 97 + + 34 + + - CAST ( + + 58 AS INTEGER ) AS col2, 1 * COUNT ( * ) * + 68 * - COUNT ( + - 25 ) AS col2 +---- +-68 +NULL query I rowsort label-8108 SELECT DISTINCT + - 31 * 27 * CAST ( NULL AS INTEGER ) @@ -42436,8 +42939,11 @@ SELECT DISTINCT CASE + - 76 WHEN - 31 * - ( MAX ( 41 ) ) * + 44 * + - SUM ( DIST # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * + 80 AS col1 +---- +80 +NULL query I rowsort SELECT DISTINCT + 94 * + - 55 AS col0 @@ -42647,8 +43153,11 @@ SELECT ALL + - CAST ( COALESCE ( - + 17, + + 48, + - 77, - MAX ( 98 ) * 36 - 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col0" at position 0 and "Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 10 AS col0, + 44 AS col0 +---- +10 +44 query I rowsort label-8151 SELECT + MIN ( DISTINCT - 73 ) * 68 col1 @@ -42683,8 +43192,11 @@ SELECT DISTINCT 63 * COUNT ( * ) * + 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(57\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, + COUNT ( + + 57 ) col0 +---- +1 +1 query II rowsort label-8158 SELECT + + 34 / + COUNT ( * ) + 69 + + - 9, COUNT ( - + 7 ) col2 @@ -42892,8 +43404,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) col1, + 61 AS col1 +---- +-1 +61 query I rowsort SELECT ALL - 33 + 87 + - 39 * - 96 + - 32 AS col0 @@ -43059,8 +43574,11 @@ SELECT DISTINCT - 66 * COUNT ( + 40 ) + + 84 / + 38 AS col0 # 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 col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 39 AS col2, + 63 AS col2 +---- +-39 +63 query I rowsort label-8231 SELECT ALL + 63 * + + 61 + - CAST ( NULL AS INTEGER ) @@ -43930,8 +44448,11 @@ SELECT ALL ( - 90 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 135 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \+ Int64\(41\) AS col0" at position 0 and "Int64\(15\) \* Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 25 + 41 AS col0, 15 * 9 AS col0 +---- +135 +16 query I rowsort label-8399 SELECT + 30 + - 15 / - - ( 5 ) @@ -44166,8 +44687,11 @@ 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\(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\. +query II valuesort SELECT MAX ( - NULLIF ( ( - 99 ), - 54 ) ) * - + 13 * - + 91 - 73 + 47 / + 74 AS col0, NULLIF ( + - 73, + 84 ) * - - COUNT ( * ) + - 41 + 18 * - 28 - - - 14 + 52 AS col0 +---- +-580 +117044 query I rowsort label-8445 SELECT - 49 * + + 58 - + ( - - 77 ) * + + CASE + 31 WHEN + 55 * 63 THEN 87 + - CAST ( + 85 AS INTEGER ) * - ( ( 48 ) ) + - 17 ELSE NULL END AS col0 @@ -44258,8 +44782,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) + + 12 + - ( - 52 ) AS col2, - 24 * 65 * + - 52 + + 97 * - + 46 * + 19 AS col2 +---- +-3658 +65 query I rowsort SELECT - NULLIF ( - + 19, + - 66 ) @@ -44594,8 +45121,11 @@ SELECT + NULLIF ( + 85, + CASE - ( - 60 ) WHEN + 54 THEN NULL WHEN 28 * - 71 * 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 159 # Datafusion - Expected - 3410 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* Int64\(57\) \+ Int64\(45\) AS col1" at position 0 and "Int64\(50\) \+ Int64\(\-3\) \* Int64\(20\) \* Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 2 * 57 + + 45 AS col1, 50 + - 3 * + 20 * - 56 AS col1 +---- +159 +3410 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -45301,8 +45831,11 @@ SELECT ALL 29 + + COUNT ( * ) * - 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(47\)\) AS col1" at position 0 and "sum\(Int64\(57\)\) / Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( 47 ) AS col1, SUM ( ALL + 57 ) / 11 AS col1 +---- +-47 +5 query II rowsort SELECT 37 * - 26 AS col1, 94 AS col0 @@ -45692,8 +46225,11 @@ SELECT ( - NULLIF ( 26, COUNT ( * ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-27\), Int64\(\-62\) \* \(\- Int64\(31\)\) \+ Int64\(96\) \+ Int64\(\-98\) / Int64\(36\), \(\- Int64\(\-66\)\) \- \(\- Int64\(\-31\)\) \+ Int64\(97\), Int64\(90\), Int64\(\-74\)\) AS col2" at position 0 and "Int64\(12\) \+ Int64\(\-32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( - 27, - 62 * - + 31 + + 96 + - 98 / 36, - - 66 - - - 31 + 97, 90, + - 74 ) AS col2, + 12 + - 32 AS col2 +---- +-20 +-27 query I rowsort SELECT - 58 - 10 @@ -45906,8 +46442,11 @@ SELECT 7 + - - 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col1" at position 0 and "\(\- Int64\(34\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 28 AS col1, ( - + 34 ) AS col1 +---- +-28 +-34 query I rowsort label-8776 SELECT ALL + COUNT ( * ) + + 10 @@ -46142,8 +46681,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3482 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \* Int64\(24\) \+ Int64\(\-14\) \* Int64\(54\) \+ Int64\(\-58\) \* 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 II valuesort SELECT + - 53 * + 24 + - 14 * 54 + - 58 * - 95 AS col0, - 80 AS col0 +---- +-80 +3482 query I rowsort label-8819 SELECT ALL + + ( COUNT ( * ) ) + - 90 * - + COUNT ( * ) @@ -46158,8 +46700,11 @@ SELECT + 19 * + 44 + 56 * + 58 # 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\(\-43\) \* Int64\(14\) \* \(\- sum\(Int64\(\-58\)\)\) \* Int64\(\-74\) \* \(\- CAST\(NULL AS Float64\)\) \* Int64\(41\) AS col0" at position 0 and "Int64\(57\) \+ \(\- Int64\(\-13\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - 43 * + 14 * - SUM ( - 58 ) * - 74 * - + CAST ( NULL AS FLOAT8 ) * + 41 AS col0, 57 + - - 13 AS col0 +---- +70 +NULL query I rowsort SELECT 2 * 29 @@ -46252,8 +46797,11 @@ SELECT CAST ( 84 AS INTEGER ) + 21 + - 12 + + 65 * - - COUNT ( * ) * + 6 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 "Int64\(46\) / \(\- Int64\(37\)\) AS col0" at position 0 and "Int64\(78\) / Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 46 / - + 37 AS col0, + 78 / + + 81 AS col0 +---- +-1 +0 query I rowsort label-8840 SELECT 97 + + CAST ( ( - 37 ) AS INTEGER ) * - 35 @@ -46462,8 +47010,11 @@ SELECT - 86 + + 1 AS col1 # 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 "Int64\(9\)" at position 0 and "Int64\(9\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 9, 9 +---- +9 +9 query I rowsort SELECT + 89 + ( + 26 ) AS col1 @@ -46488,8 +47039,11 @@ SELECT 77 / 12 - - - 19 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 81 AS col0, 50 AS col0 +---- +50 +81 query I rowsort label-8885 SELECT ALL + NULLIF ( 81, - 95 / CAST ( COUNT ( * ) AS INTEGER ) + 83 ) * - - ( + ( - COUNT ( * ) ) ) AS col1 @@ -46757,14 +47311,20 @@ SELECT 1 * + 63 + + 39 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 1404 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col1" at position 0 and "Int64\(26\) \* Int64\(54\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 15 AS col1, + 26 * + 54 / + COUNT ( * ) AS col1 +---- +1404 +15 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "Int64\(\-51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 col2, - 51 AS col2 +---- +-51 +17 query I rowsort SELECT 91 * 74 col2 @@ -47057,8 +47617,11 @@ SELECT ALL + 44 + ( + 40 ) + + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -1598 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \+ Int64\(50\) AS col2" at position 0 and "Int64\(\-94\) \* Int64\(17\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 44 + + 50 AS col2, - 94 * + 17 * COUNT ( * ) AS col2 +---- +-1598 +94 query II rowsort label-8994 SELECT DISTINCT 96 AS col0, - MIN ( + 81 ) @@ -47372,8 +47935,11 @@ SELECT + COALESCE ( + MAX ( DISTINCT + 76 ), + + 52 ) + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2871 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* Int64\(\-35\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(2\) \+ \(\- CAST\(Int64\(10\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 * - 35 + - COUNT ( * ) AS col1, + 2 + - CAST ( + 10 AS INTEGER ) AS col1 +---- +-2871 +-8 query I rowsort label-9054 SELECT - COUNT ( DISTINCT - 31 ) @@ -47608,8 +48174,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) + ( + 67 ) AS col2, 7 col2 +---- +68 +7 query I rowsort label-9099 SELECT DISTINCT + SUM ( DISTINCT + 73 ) @@ -47840,8 +48409,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 0 AS col0, - COUNT ( * ) + + 61 AS col0 +---- +0 +60 query I rowsort SELECT 64 + 44 AS col2 @@ -47934,8 +48506,11 @@ SELECT ALL - 91 / - - 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -4324 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- nullif\(Int64\(92\), Int64\(57\) \+ Int64\(\-7\)\)\) \* \(\- Int64\(\-47\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col2, - NULLIF ( + 92, 57 + + - 7 ) * - - 47 AS col2 +---- +-4324 +NULL query I rowsort SELECT 56 * - 73 AS col2 @@ -48075,8 +48650,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * + 70 * + 15 AS col2, 65 / + + 81 col2 +---- +0 +1050 query I rowsort label-9185 SELECT ALL COUNT ( * ) - - 6 @@ -48138,8 +48716,11 @@ SELECT + 90 * - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "Int64\(14\) \- coalesce\(Int64\(\-19\), Int64\(10\) / Int64\(25\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 15 AS col0, 14 - + COALESCE ( + - 19, + 10 / ( 25 ) ) AS col0 +---- +15 +33 query II rowsort label-9197 SELECT ALL + - 87 AS col2, - 20 / 57 @@ -48358,8 +48939,11 @@ SELECT + 1 * - 83 * + 0 + + 11 * CAST ( + COUNT ( * ) AS INTEGER ) + 60 + + 74 A # Datafusion - Datafusion expected results: # Datafusion - Expected - 1056 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-38\) / Int64\(\-80\) \+ Int64\(\-33\) \* count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(32\)\) AS col2" at position 0 and "min\(\(\- Int64\(\-68\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COALESCE ( - + CAST ( NULL AS INTEGER ), + - 38 / + ( - 80 ) + + - 33 * + + ( COUNT ( * ) ) ) * - + 32 AS col2, + MIN ( - - 68 ) AS col2 +---- +1056 +68 query I rowsort label-9240 SELECT DISTINCT + ( - 57 ) / - - COUNT ( * ) + - - 1 + - + 10 @@ -48712,8 +49296,11 @@ SELECT ALL + + 38 + + - 42 + - 91 # 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 "Int64\(3\) AS col0" at position 0 and "Int64\(\-9\) \+ Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 3 AS col0, - 9 + + 66 AS col0 +---- +3 +57 query I rowsort label-9307 SELECT + COUNT ( * ) + + 32 @@ -48803,8 +49390,12 @@ SELECT 96 * - 63 + - 43 AS col2 # Datafusion - Expected - -1 # Datafusion - Expected - 25 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "coalesce\(Int64\(\-54\), Int64\(83\) \* Int64\(27\) / Int64\(\-65\) / Int64\(\-47\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(24\), Int64\(\-33\) \+ Int64\(\-60\) \+ Int64\(70\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(19\) \+ \(\- CAST\(Int64\(80\) AS Int32\)\) / \(\- avg\(Int64\(10\)\)\) \+ Int64\(70\) \+ Int64\(88\) \* Int64\(\-41\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort 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 +---- +-1 +-54 +25 query I rowsort label-9324 SELECT ALL 9 + + + COUNT ( * ) + + + COALESCE ( - + 92, COUNT ( * ) ) + + ( + NULLIF ( + - 35, 38 * 46 + + 22 + 4 + + 21 ) ) AS col2 @@ -49260,8 +49851,11 @@ SELECT - CAST ( + CAST ( + 20 AS INTEGER ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-39\)\)\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - - 39 ) AS col0, 51 AS col0 +---- +-39 +51 query I rowsort SELECT 8 + - ( - + 76 ) col1 @@ -49957,8 +50551,11 @@ SELECT 14 + - + COUNT ( * ) + + - 9 * - 33 * 44 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - -840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) AS col1" at position 0 and "\(\- Int64\(40\)\) \* Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 26 AS col1, - ( 40 ) * 21 AS col1 +---- +-26 +-840 query I rowsort label-9547 SELECT 88 * - 32 * - COUNT ( * ) AS col0 @@ -49994,8 +50591,11 @@ SELECT 13 + + + 82 * + 77 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col2" at position 0 and "Int64\(\-80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 91 AS col2, - 80 AS col2 +---- +-80 +-91 query I rowsort label-9554 SELECT COUNT ( * ) / + + COUNT ( + 16 ) AS col1 @@ -50452,8 +51052,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 AS col1, - COUNT ( * ) AS col1 +---- +-1 +95 query II rowsort SELECT DISTINCT - + 87 col0, - 95 @@ -50634,8 +51237,11 @@ SELECT DISTINCT + + 10 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( + CAST ( NULL AS INTEGER ) ) AS col0, 89 AS col0 +---- +89 +NULL query I rowsort SELECT ALL 22 * + 17 col1 @@ -51017,8 +51623,11 @@ SELECT DISTINCT - CAST ( - 19 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 58 AS col0, COUNT ( * ) AS col0 +---- +-58 +1 query I rowsort label-9751 SELECT 31 / MIN ( 43 ) @@ -51155,8 +51764,11 @@ SELECT ALL 87 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -887 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \+ Int64\(18\) \* \(\- Int64\(52\)\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 49 + + 18 * - + 52 AS col0, 49 AS col0 +---- +-887 +49 query I rowsort SELECT ALL 50 + + 12 col1 @@ -51221,8 +51833,11 @@ SELECT + + 32 * - - 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 AS col1, + 59 col1 +---- +11 +59 query I rowsort SELECT - ( + 82 ) AS col0 @@ -52037,8 +52652,11 @@ SELECT + + 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "Int64\(33\) \- Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 AS col0, 33 - 88 AS col0 +---- +-55 +7 query I rowsort label-9948 SELECT 98 * - - 61 + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0 diff --git a/data/sqlite/random/expr/slt_good_43.slt b/data/sqlite/random/expr/slt_good_43.slt index d9cacd1..cff1431 100644 --- a/data/sqlite/random/expr/slt_good_43.slt +++ b/data/sqlite/random/expr/slt_good_43.slt @@ -1367,8 +1367,11 @@ SELECT DISTINCT + - 72 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, 21 AS col1 +---- +21 +NULL query I rowsort label-262 SELECT + COUNT ( * ) * 26 AS col0 @@ -1538,8 +1541,11 @@ SELECT + - COUNT ( * ) + + + COUNT ( * ) # 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 col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 19 AS col0, 86 col0 +---- +-19 +86 query II rowsort SELECT ( - - 64 ) AS col2, - 28 + 52 - + 91 + - 64 @@ -1661,8 +1667,11 @@ SELECT - 49 / 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 AS col0, COUNT ( * ) AS col0 +---- +1 +28 query I rowsort label-319 SELECT ALL COUNT ( - + 17 ) AS col0 @@ -2218,8 +2227,11 @@ SELECT ALL 57 * + - 9 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 col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 AS col1, 42 AS col1 +---- +42 +5 query I rowsort SELECT - 85 + - - NULLIF ( 75, + - 2 ) @@ -2285,8 +2297,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(48\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, - COUNT ( * ) * - + 48 col1 +---- +1 +48 query I rowsort SELECT ALL NULLIF ( - 94, + 67 ) AS col1 @@ -2466,8 +2481,11 @@ SELECT ALL - 33 * 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col1" at position 0 and "\(\- Int64\(12\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 AS col1, - ( + 12 ) AS col1 +---- +-12 +37 query I rowsort label-474 SELECT DISTINCT MIN ( DISTINCT 67 ) @@ -2639,8 +2657,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(22\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 91 AS col0, COUNT ( * ) + + COUNT ( + 22 ) AS col0 +---- +-91 +2 query I rowsort label-508 SELECT ALL - + MIN ( - 50 ) @@ -2790,8 +2811,11 @@ SELECT - 48 - + SUM ( ALL + 40 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 38 AS col1, 94 AS col1 +---- +38 +94 query I rowsort SELECT - 0 col2 @@ -3734,8 +3758,11 @@ SELECT NULLIF ( + ( + + 31 ), + - 76 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) col1 +---- +1 +NULL query I rowsort label-723 SELECT ALL 86 * - - 79 + - - COUNT ( * ) AS col2 @@ -3881,8 +3908,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - + 13 ) - + 34 AS col2, + 25 + - - COUNT ( * ) AS col2 +---- +-47 +26 query I rowsort SELECT - 75 - 67 @@ -3949,8 +3979,11 @@ SELECT - 85 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 42 ) AS col0, 45 AS col0 +---- +42 +45 query I rowsort label-764 SELECT ( + ( COUNT ( ALL + CAST ( NULL AS INTEGER ) ) ) ) @@ -3990,8 +4023,11 @@ SELECT ALL + 65 * COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col1, 51 AS col1 +---- +1 +51 query I rowsort label-772 SELECT ALL + 54 + + COUNT ( * ) @@ -4717,8 +4753,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, - 70 AS col1 +---- +-1 +-70 query I rowsort label-916 SELECT CAST ( NULL AS INTEGER ) + + 61 AS col2 @@ -4809,8 +4848,11 @@ SELECT DISTINCT 41 * + - 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- min\(\(\- \(\- nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-85\)\)\)\)\)\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) * - MIN ( ALL - - NULLIF ( - CAST ( NULL AS INTEGER ), - 85 ) ) AS col1, 65 AS col1 +---- +65 +NULL query I rowsort SELECT + 14 * - + 14 * 35 AS col2 @@ -5264,8 +5306,11 @@ SELECT + ( - - 15 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) col0, - COUNT ( * ) * 46 AS col0 +---- +-46 +NULL query I rowsort SELECT + 47 + - - 47 @@ -6787,8 +6832,11 @@ SELECT DISTINCT - 63 * 55 * + 54 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(50\)\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + + 50 ) AS col2, 16 AS col2 +---- +-50 +16 query I rowsort label-1318 SELECT 63 + + - COUNT ( * ) @@ -7626,8 +7674,11 @@ SELECT DISTINCT - 37 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + COUNT ( * ) AS col1, COUNT ( * ) AS col1 +---- +-1 +1 query I rowsort SELECT ALL 21 * - + 89 AS col1 @@ -9926,8 +9977,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), COUNT ( * ) +---- +1 +1 query I rowsort SELECT DISTINCT + 80 + + 48 @@ -11232,8 +11286,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 51 AS col2, - CASE WHEN NOT NULL NOT IN ( - COUNT ( * ) ) THEN ( - + 37 ) ELSE NULL END AS col2 +---- +-51 +NULL query I rowsort label-2180 SELECT 3 / - + COUNT ( * ) @@ -11319,8 +11376,11 @@ SELECT - ( + 68 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) * - + CAST ( NULL AS INTEGER ) col0, 80 AS col0 +---- +80 +NULL query I rowsort SELECT DISTINCT - - ( 23 ) col2 @@ -12032,8 +12092,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 2 ) col0, - COUNT ( * ) AS col0 +---- +-1 +2 query I rowsort SELECT 24 * - 78 @@ -12195,8 +12258,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) / + - 89 AS col2, 72 AS col2 +---- +0 +72 query I rowsort label-2367 SELECT DISTINCT + CAST ( - + 39 AS INTEGER ) AS col0 @@ -12425,8 +12491,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + COUNT ( * ) col2, - 95 AS col2 +---- +-1 +-95 query I rowsort label-2412 SELECT ALL + COUNT ( * ) + - - 82 col2 @@ -12980,8 +13049,11 @@ SELECT - COUNT ( * ) * COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col0" at position 0 and "Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 AS col0, - 91 AS col0 +---- +-82 +-91 query I rowsort label-2520 SELECT DISTINCT + COUNT ( * ) * 36 @@ -13044,8 +13116,11 @@ SELECT DISTINCT 15 - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(CAST\(Int64\(76\) AS Int32\)\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( + CAST ( 76 AS INTEGER ) ) AS col2, + 94 AS col2 +---- +1 +94 query I rowsort label-2532 SELECT + MIN ( ALL 87 ) AS col0 @@ -13149,8 +13224,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 AS col1, 7 AS col1 +---- +11 +7 query I rowsort label-2552 SELECT ALL SUM ( ALL 11 ) @@ -15070,8 +15148,11 @@ SELECT + SUM ( DISTINCT 27 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 AS col1, COUNT ( * ) col1 +---- +-48 +1 query I rowsort label-2923 SELECT + MIN ( ALL + 36 ) @@ -15117,8 +15198,11 @@ SELECT + 13 * 78 * 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 24 col0, + CAST ( NULL AS INTEGER ) AS col0 +---- +24 +NULL query I rowsort label-2932 SELECT DISTINCT COUNT ( * ) + + + 23 @@ -15364,8 +15448,11 @@ SELECT ALL - ( + 31 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, + ( 1 ) AS col0 +---- +1 +1 query I rowsort SELECT ( 71 ) * - ( 42 ) @@ -16283,8 +16370,11 @@ SELECT 1 + - + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(75\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - MAX ( 75 ) AS col1, COUNT ( * ) AS col1 +---- +1 +75 query II rowsort SELECT + 8, 78 AS col1 @@ -16413,8 +16503,11 @@ SELECT ALL - 16 * - 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 86 * COUNT ( * ) AS col1, 96 AS col1 +---- +86 +96 query I rowsort SELECT - - 57 AS col2 @@ -17501,8 +17594,11 @@ SELECT ALL + + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( - COUNT ( * ), - - COUNT ( * ) * COUNT ( * ) ) col2, COUNT ( * ) AS col2 +---- +-1 +1 query I rowsort label-3392 SELECT ALL - 54 * - + CAST ( NULL AS INTEGER ) AS col1 @@ -18295,8 +18391,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 + + 11 AS col2, - COUNT ( * ) AS col2 +---- +-1 +48 query I rowsort SELECT - - 51 AS col2 @@ -19218,8 +19317,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) + 16 col0, 77 col0 +---- +17 +77 query II rowsort label-3726 SELECT ALL + COUNT ( * ) AS col0, COUNT ( * ) @@ -19391,8 +19493,11 @@ SELECT ALL - - 50 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 96 AS col2 +---- +1 +96 query I rowsort label-3760 SELECT ALL - CAST ( 72 AS INTEGER ) AS col1 @@ -19887,8 +19992,11 @@ SELECT - + 64 / - 21 # 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 "Int64\(30\)" at position 0 and "Int64\(30\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30, + 30 +---- +30 +30 query I rowsort label-3858 SELECT ALL + COUNT ( * ) + - + 70 + + - 14 - - + 2 + + - COUNT ( * ) AS col0 @@ -19918,8 +20026,11 @@ SELECT DISTINCT COALESCE ( - CAST ( NULL AS INTEGER ), + 63 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col0" at position 0 and "CAST\(Int64\(\-32\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 15 col0, CAST ( + - 32 AS INTEGER ) AS col0 +---- +-15 +-32 query II rowsort label-3864 SELECT + - 49 AS col0, COUNT ( * ) AS col1 @@ -20415,8 +20526,11 @@ SELECT DISTINCT - - 2 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(89\), 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 II valuesort SELECT DISTINCT - NULLIF ( + 89, 7 ) AS col2, + 91 AS col2 +---- +-89 +91 query I rowsort label-3960 SELECT ALL + + COUNT ( * ) + - + 28 AS col2 @@ -20521,8 +20635,11 @@ SELECT ALL - + 98 - + 32 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -354 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* \(\- Int64\(59\)\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 * + - ( ( + + 59 ) ) AS col0, 94 AS col0 +---- +-354 +94 query II rowsort label-3981 SELECT DISTINCT 24, - COUNT ( * ) AS col0 @@ -20862,8 +20979,11 @@ SELECT + + ( + SUM ( 41 ) ) - 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 AS col2, + CAST ( NULL AS INTEGER ) AS col2 +---- +70 +NULL query II rowsort label-4046 SELECT DISTINCT COUNT ( * ), - 57 AS col2 @@ -20910,8 +21030,11 @@ SELECT ALL - + COUNT ( * ) / COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, 94 AS col2 +---- +94 +NULL query I rowsort SELECT ALL - ( - 39 ) + - 63 @@ -21627,8 +21750,11 @@ SELECT DISTINCT + + 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 58 AS col0, + 94 AS col0 +---- +58 +94 query I rowsort label-4195 SELECT ALL + COUNT ( * ) + + ( + 7 ) @@ -22203,8 +22329,11 @@ SELECT ALL - 19 / + + 68 col1, 93 + COUNT ( * ) + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 97 AS col0, 81 AS col0 +---- +-97 +81 query I rowsort label-4304 SELECT COUNT ( * ) * - 94 + + COUNT ( * ) col0 @@ -23255,8 +23384,11 @@ SELECT DISTINCT + + 58 # 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 "Int64\(86\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 86 AS col1, 29 AS col1 +---- +29 +86 query I rowsort SELECT DISTINCT ( 87 ) @@ -25526,8 +25658,11 @@ SELECT + 13 + - MIN ( ALL - 31 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 19 AS col1, - COUNT ( * ) + COUNT ( * ) col1 +---- +-19 +0 query I rowsort label-4954 SELECT MAX ( ALL - 2 ) AS col1 @@ -25641,8 +25776,11 @@ SELECT ALL COUNT ( DISTINCT - - 36 ) * + + 23 AS col1 # 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 "Int64\(46\) AS col2" at position 0 and "Int64\(\-92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 AS col2, - 92 col2 +---- +-92 +46 query I rowsort label-4976 SELECT + + ( - - ( - COUNT ( * ) ) ) AS col1 @@ -26191,8 +26329,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) col1, + 21 AS col1 +---- +1 +21 query II rowsort label-5083 SELECT + 43 col2, + COUNT ( * ) * + CAST ( 86 AS INTEGER ) @@ -26881,14 +27022,20 @@ SELECT + 83 + 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 AS col2, 48 col2 +---- +48 +50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, + 82 AS col2 +---- +1 +82 query II rowsort label-5216 SELECT ALL 20, - CAST ( - 84 AS INTEGER ) AS col0 @@ -27154,8 +27301,11 @@ SELECT 69 - 55 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, - 33 AS col1 +---- +-33 +1 query I rowsort label-5268 SELECT - 75 / + COUNT ( * ) col2 @@ -27324,14 +27474,20 @@ SELECT ALL + CAST ( - 8 AS INTEGER ) * - 74 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 AS col0, 47 AS col0 +---- +27 +47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT 14 AS col0, - 33 AS col0 +---- +-33 +14 query I rowsort SELECT ALL - 25 + - 70 @@ -27351,8 +27507,11 @@ SELECT ALL + MIN ( DISTINCT + + 44 ) * 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col0" at position 0 and "count\(Int64\(22\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 55 AS col0, + COUNT ( + 22 ) AS col0 +---- +-55 +1 query I rowsort label-5306 SELECT DISTINCT - 83 * - COUNT ( * ) AS col0 @@ -27915,8 +28074,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 col2, COUNT ( * ) AS col2 +---- +1 +55 query I rowsort label-5413 SELECT COUNT ( * ) - + COUNT ( * ) AS col1 @@ -27946,8 +28108,11 @@ SELECT DISTINCT ( - - 31 ) * ( - 62 ) # 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 "Int64\(3\) AS col2" at position 0 and "Int64\(\-94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 3 col2, - 94 col2 +---- +-94 +3 query I rowsort label-5419 SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + COUNT ( * ) @@ -28281,8 +28446,11 @@ SELECT DISTINCT - 27 * - + COUNT ( * ) / + - COUNT ( + - 86 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col1" at position 0 and "Int64\(16\) \- Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 AS col1, + 16 - + 65 AS col1 +---- +-49 +81 query II rowsort label-5484 SELECT ALL - - COUNT ( * ) AS col2, 79 @@ -28580,14 +28748,20 @@ SELECT - ( 55 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(63\)\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 63 AS col0, + 42 AS col0 +---- +-63 +42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col2" at position 0 and "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 AS col2, 70 AS col2 +---- +25 +70 query I rowsort SELECT DISTINCT + ( 81 ) @@ -29236,8 +29410,11 @@ SELECT DISTINCT - COUNT ( * ) + - + 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 69 AS col2, 14 AS col2 +---- +14 +69 query I rowsort label-5666 SELECT 62 / 98 @@ -29478,8 +29655,11 @@ SELECT - - 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - -219 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \+ Int64\(49\) \+ Int64\(\-8\) AS col2" at position 0 and "Int64\(27\) \- Int64\(\-3\) \* Int64\(\-82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + + 34 ) + 49 + - 8 AS col2, 27 - - 3 * - 82 AS col2 +---- +-219 +75 query I rowsort label-5712 SELECT ALL - CAST ( - 74 AS INTEGER ) AS col2 @@ -29874,8 +30054,11 @@ SELECT DISTINCT + 75 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -487542 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* Int64\(66\) \* Int64\(89\) AS col1" at position 0 and "CAST\(\(\- Int64\(\-12\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 83 * + 66 * 89 AS col1, CAST ( - - 12 AS INTEGER ) AS col1 +---- +-487542 +12 query I rowsort SELECT ALL ( - - 51 ) AS col2 @@ -30197,8 +30380,11 @@ SELECT ALL 4 * COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 AS col2, + 94 col2 +---- +42 +94 query II rowsort label-5851 SELECT 70, + COUNT ( ALL + - 83 ) AS col0 @@ -31381,8 +31567,11 @@ SELECT ALL + - 18 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 92 col1, 11 AS col1 +---- +-92 +11 query II rowsort label-6082 SELECT + + 10 + + COUNT ( * ) AS col1, 45 + + - 66 @@ -31799,8 +31988,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 420 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-64\)\) AS col1" at position 0 and "count\(Int64\(77\)\) \* \(\- \(\- max\(DISTINCT Int64\(30\)\)\)\) \* Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MAX ( ALL - 64 ) col1, + COUNT ( + 77 ) * - - MAX ( DISTINCT + 30 ) * + + 14 AS col1 +---- +-64 +420 query I rowsort SELECT 75 + - 87 AS col2 @@ -32044,8 +32236,11 @@ SELECT MIN ( 39 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 AS col0, 81 AS col0 +---- +53 +81 query I rowsort label-6211 SELECT + 14 + + + COUNT ( * ) AS col2 @@ -32386,8 +32581,11 @@ SELECT DISTINCT - ( 10 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - AVG ( + + CAST ( NULL AS INTEGER ) ) col2, + COUNT ( * ) AS col2 +---- +1 +NULL query I rowsort SELECT + + 71 col2 @@ -33257,8 +33455,11 @@ SELECT ALL + - 67 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 30 ) AS col2, + 99 AS col2 +---- +30 +99 query I rowsort label-6445 SELECT - 34 + COUNT ( ALL + + 50 ) @@ -33673,8 +33874,11 @@ SELECT - 12 * + COUNT ( * ) # 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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 84 col2, + 77 AS col2 +---- +-84 +77 query I rowsort label-6526 SELECT - 76 * 32 * + ( - CAST ( NULL AS INTEGER ) ) @@ -34136,8 +34340,11 @@ SELECT 57 * 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \+ Int64\(37\) AS col1" at position 0 and "Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 25 + + 37 col1, + 98 AS col1 +---- +12 +98 query I rowsort SELECT ALL - 80 - - - 51 AS col0 @@ -34220,8 +34427,11 @@ SELECT + 67 AS col0, 26 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 AS col1, COUNT ( * ) col1 +---- +1 +34 query I rowsort SELECT - ( + 42 ) AS col1 @@ -34801,8 +35011,11 @@ SELECT ALL - ( 98 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, 43 AS col0 +---- +1 +43 query I rowsort SELECT DISTINCT - ( - 94 ) AS col0 @@ -34858,8 +35071,11 @@ SELECT + 62 / - - COUNT ( DISTINCT 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 53 AS col1, CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1 +---- +53 +NULL query I rowsort SELECT DISTINCT ( - 5 ) col1 @@ -35478,8 +35694,11 @@ SELECT + COUNT ( 84 ) AS col1 # 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 "Int64\(9\) AS col2" at position 0 and "Int64\(\-68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 9 AS col2, - 68 col2 +---- +-68 +9 query I rowsort label-6877 SELECT CAST ( + - 17 AS INTEGER ) @@ -37191,8 +37410,11 @@ SELECT SUM ( - + 73 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 96 AS col2, 94 AS col2 +---- +-96 +94 query I rowsort SELECT ( 2 ) @@ -37349,8 +37571,11 @@ SELECT ALL - CAST ( + 16 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 74 col0, COUNT ( * ) AS col0 +---- +1 +74 query I rowsort label-7243 SELECT + 68 * - 99 * - - COUNT ( * ) @@ -37416,8 +37641,11 @@ SELECT - - 51 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 38 AS col0, CAST ( NULL AS INTEGER ) AS col0 +---- +38 +NULL query I rowsort SELECT DISTINCT 74 + 47 @@ -38562,8 +38790,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-38\)\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( ALL - 38 ) AS col0, 94 AS col0 +---- +-38 +94 query I rowsort label-7478 SELECT - - 69 * COUNT ( * ) AS col0 @@ -39026,8 +39257,11 @@ SELECT DISTINCT - 65 + + ( 10 ) # 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 "Int64\(81\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 81 AS col0, 14 AS col0 +---- +14 +81 query II rowsort label-7568 SELECT ALL 33 AS col2, COUNT ( * ) @@ -39457,8 +39691,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-72\) \+ Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col1, COUNT ( * ) * - 72 + + 2 AS col1 +---- +-70 +1 query I rowsort label-7651 SELECT - + COUNT ( * ) + - + COUNT ( ALL - - 23 ) AS col0 @@ -39978,8 +40215,11 @@ SELECT DISTINCT + ( + 99 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 94 AS col1 +---- +1 +94 query I rowsort label-7753 SELECT DISTINCT - 21 + - + COUNT ( DISTINCT + 67 ) @@ -40806,8 +41046,11 @@ SELECT ALL - 42 * 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-61\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COALESCE ( - 61, - COUNT ( * ) ) AS col2, + COUNT ( * ) AS col2 +---- +-61 +1 query I rowsort label-7914 SELECT + 91 + - COUNT ( * ) AS col0 @@ -41567,8 +41810,11 @@ SELECT ALL - COUNT ( * ) + - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ), COUNT ( * ) +---- +1 +1 query I rowsort label-8063 SELECT - COUNT ( * ) - + COUNT ( * ) col2 @@ -41761,8 +42007,11 @@ SELECT DISTINCT + 18 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "Int64\(\-46\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 59 AS col1, - 46 / + COUNT ( * ) col1 +---- +-46 +59 query I rowsort SELECT ALL - + 87 + + - ( 42 ) + - 88 AS col2 @@ -42108,8 +42357,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 97 col0, + 35 AS col0 +---- +35 +97 query I rowsort label-8167 SELECT - COUNT ( * ) + + 40 AS col2 @@ -43142,8 +43394,11 @@ SELECT - - 17 - + COALESCE ( - 22, - 58 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 60 AS col0, + CAST ( NULL AS INTEGER ) AS col0 +---- +-60 +NULL query I rowsort SELECT ALL ( 88 ) AS col2 @@ -43229,14 +43484,20 @@ SELECT + COUNT ( DISTINCT - 11 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col2, 50 AS col2 +---- +50 +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 "\(\- Int64\(3\)\) AS col1" at position 0 and "Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 3 AS col1, + 77 AS col1 +---- +-3 +77 query I rowsort SELECT ALL 73 + - - 4 AS col2 @@ -43406,8 +43667,11 @@ SELECT ALL - NULLIF ( + 8, 6 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 AS col1, - 87 AS col1 +---- +-87 +16 query I rowsort label-8417 SELECT ALL COUNT ( DISTINCT + 53 ) AS col0 @@ -44041,8 +44305,11 @@ SELECT + 85 * 43 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col1" at position 0 and "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 86 col1, + 58 AS col1 +---- +-86 +58 query I rowsort label-8541 SELECT + + CAST ( NULL AS INTEGER ) - 0 AS col2 @@ -44407,8 +44674,11 @@ SELECT ( + - 65 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- Int64\(98\)\)\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + COUNT ( ALL - + 98 ) ) col0, + 79 AS col0 +---- +1 +79 query I rowsort label-8612 SELECT + COUNT ( DISTINCT - CAST ( + + 56 AS INTEGER ) ) AS col0 @@ -44593,8 +44863,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + + COUNT ( * ), COUNT ( * ) +---- +1 +1 query I rowsort label-8648 SELECT DISTINCT + ( COUNT ( * ) ) * + - 61 AS col2 @@ -45241,8 +45514,11 @@ SELECT ALL + 89 * - COUNT ( * ) / COUNT ( - 0 ), + MIN ( ALL + 90 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col1, 9 col1 +---- +9 +NULL query I rowsort label-8775 SELECT 98 / + 76 AS col0 @@ -45348,8 +45624,11 @@ SELECT DISTINCT 40 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 AS col2, COUNT ( * ) AS col2 +---- +1 +21 query I rowsort SELECT + - ( 78 ) AS col0 @@ -45552,8 +45831,11 @@ SELECT + 56 * 78 + + 44 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 AS col1, + COUNT ( * ) AS col1 +---- +-58 +1 query I rowsort label-8836 SELECT DISTINCT 66 * MAX ( 61 ) AS col2 @@ -45645,8 +45927,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1464 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(\-24\) AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 61 * - 24 AS col1, + 90 AS col1 +---- +-1464 +90 query I rowsort SELECT ALL + ( 13 ) col1 @@ -45780,8 +46065,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ), COUNT ( * ) +---- +1 +1 query I rowsort label-8880 SELECT DISTINCT + 16 * - - SUM ( - CAST ( NULL AS INTEGER ) ) col1 @@ -45996,8 +46284,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 21 AS col2, + 26 col2 +---- +-21 +26 query I rowsort SELECT + - 80 + - + 35 AS col0 @@ -47365,8 +47656,11 @@ SELECT ( + 4 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 52 AS col1, COUNT ( * ) AS col1 +---- +1 +52 query I rowsort SELECT ( + 21 ) col0 @@ -47677,8 +47971,11 @@ SELECT DISTINCT CAST ( - 10 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 58 + COUNT ( * ) AS col2, 31 col2 +---- +31 +59 query I rowsort label-9246 SELECT DISTINCT COUNT ( * ) - - - 71 AS col2 @@ -47914,8 +48211,11 @@ SELECT COUNT ( + 9 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(\-79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - CAST ( NULL AS INTEGER ) AS col0, - 79 col0 +---- +-79 +NULL query I rowsort label-9291 SELECT ALL + - MIN ( ALL 19 ) col0 @@ -48358,8 +48658,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * 88 AS col0, 46 col0 +---- +46 +88 query I rowsort label-9378 SELECT ALL 46 + + + 54 / + 35 @@ -48471,8 +48774,11 @@ SELECT + COUNT ( * ) * - 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(92\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, - COUNT ( ALL 92 ) AS col0 +---- +-1 +1 query I rowsort label-9400 SELECT + COUNT ( DISTINCT ( 86 ) ) + + + MIN ( DISTINCT - 13 ) @@ -49176,8 +49482,11 @@ SELECT + 57 col1, 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "CAST\(\(\- Int64\(\-81\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 23 AS col2, CAST ( - - 81 AS INTEGER ) AS col2 +---- +23 +81 query I rowsort label-9537 SELECT + + CAST ( 27 AS INTEGER ) @@ -49279,8 +49588,11 @@ SELECT ALL - COUNT ( * ) / + ( COALESCE ( + 94, COUNT ( * ) ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 30 AS col0, + COUNT ( * ) AS col0 +---- +-30 +1 query I rowsort SELECT 89 * - + 69 + 4 AS col2 @@ -49933,8 +50245,11 @@ SELECT + 29 * - COUNT ( * ) AS col2 # 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\(42\) \* Int64\(0\) AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 * - 0 AS col1, 39 AS col1 +---- +0 +39 query I rowsort label-9684 SELECT + + SUM ( DISTINCT + + 53 ) @@ -49954,8 +50269,11 @@ SELECT DISTINCT 34 + + 77 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(39\)\)\) AS col0" at position 0 and "Int64\(\-89\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( 39 ) AS col0, - 89 * + COUNT ( * ) AS col0 +---- +-1 +-89 query I rowsort label-9688 SELECT ALL - MIN ( - + ( 54 ) ) + + 53 AS col1 @@ -50164,8 +50482,12 @@ SELECT + 98 * + - 51 AS col1 # Datafusion - Expected - 93 # Datafusion - Expected - -3771 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col2" at position 0 and "Int64\(60\) \* max\(CAST\(\(\- Int64\(64\)\) AS Int32\)\) \+ Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 93 AS col2, + 60 * + MAX ( CAST ( - + 64 AS INTEGER ) ) + 69 AS col2, 77 col0 +---- +-3771 +77 +93 query I rowsort SELECT + NULLIF ( 31, 48 * - 71 ) @@ -50288,8 +50610,11 @@ SELECT DISTINCT - CAST ( - 7 AS INTEGER ) + + - 48, - 15 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 52 AS col1, COUNT ( * ) AS col1 +---- +1 +52 query I rowsort SELECT ALL - + 46 + - + 55 AS col1 @@ -51317,8 +51642,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 53 AS col2, ( 90 ) AS col2 +---- +-53 +90 query I rowsort SELECT ALL 57 + 95 @@ -51510,8 +51838,11 @@ SELECT - 33 * + 46 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5139 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ Int64\(57\) \+ Int64\(56\) \* Int64\(89\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 98 + + 57 + 56 * + 89 col1, 19 AS col1 +---- +19 +5139 query I rowsort label-9982 SELECT + NULLIF ( 36, - 6 ) + - COUNT ( * ) AS col2 @@ -51578,8 +51909,11 @@ SELECT + 89 AS col0, 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -2618 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-5\)\) AS col0" at position 0 and "Int64\(\-77\) \* nullif\(Int64\(34\), \(\- Int64\(\-19\)\) \+ Int64\(\-52\) \* \(\- Int64\(\-78\)\) \* Int64\(\-12\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 5 col0, - 77 * NULLIF ( 34, - - 19 + - 52 * - - 78 * - 12 ) AS col0 +---- +-2618 +5 query I rowsort label-9995 SELECT + 45 * - COUNT ( * ) AS col2 diff --git a/data/sqlite/random/expr/slt_good_44.slt b/data/sqlite/random/expr/slt_good_44.slt index 6051b88..09c808d 100644 --- a/data/sqlite/random/expr/slt_good_44.slt +++ b/data/sqlite/random/expr/slt_good_44.slt @@ -361,8 +361,11 @@ SELECT + COUNT ( * ) * - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 600 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT \(\- Int64\(\-25\)\)\) \* Int64\(24\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( DISTINCT - - 25 ) * 24 AS col0, 48 AS col0 +---- +48 +600 query I rowsort SELECT + 90 * - - 28 * ( - 58 ) + - + 20 * + 61 + + - 55 AS col0 @@ -404,8 +407,11 @@ SELECT + SUM ( - 73 ) AS col2, + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \* count\(Int64\(1\)\) AS count\(\*\) \- count\(DISTINCT CAST\(NULL AS Int32\)\) AS col1" at position 0 and "max\(Int64\(25\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 78 * + COUNT ( * ) - + + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1, + MAX ( 25 ) AS col1 +---- +-78 +25 query I rowsort label-70 SELECT MIN ( ALL - 10 ) @@ -556,8 +562,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(22\)\) \- Int64\(25\) AS col0" at position 0 and "\(\- CAST\(Int64\(\-89\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 22 - 25 AS col0, - CAST ( - 89 AS INTEGER ) col0 +---- +-47 +89 query I rowsort label-98 SELECT DISTINCT - CAST ( - - 43 AS INTEGER ) @@ -947,8 +956,11 @@ SELECT - COUNT ( * ) AS col1, + 62 + - 93 AS col0 # 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\(29\) \* CASE \(\- \(\- \(\- Int64\(\-93\)\)\)\) WHEN Int64\(65\) THEN NULL WHEN Int64\(84\) / Int64\(29\) \* Int64\(\-79\) \+ Int64\(84\) \+ Int64\(76\) \+ \(\- Int64\(19\)\) \* Int64\(\-36\) \+ \(\- Int64\(8\)\) \* Int64\(\-30\) / Int64\(\-59\) THEN Int64\(2\) WHEN Int64\(\-53\) \- Int64\(86\) THEN NULL WHEN Int64\(\-1\) THEN Int64\(98\) \* max\(Int64\(59\) \* Int64\(89\)\) END \* Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 33 AS col0, + 29 * + + CASE - - ( - - 93 ) WHEN + 65 THEN NULL WHEN + 84 / + 29 * - 79 + 84 + + 76 + + ( - + 19 ) * - 36 + - ( + + 8 ) * - 30 / ( - 59 ) THEN 2 WHEN - 53 - 86 THEN NULL WHEN - 1 THEN + 98 * MAX ( 59 * 89 ) END * 10 AS col0 +---- +-33 +NULL query I rowsort label-174 SELECT + 36 + + 37 + + 91 * - 3 + 57 + 91 + - 23 + + - NULLIF ( 28, - + 16 - + 71 ) + - 11 + + 65 * - + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) * + 48 @@ -1010,8 +1022,11 @@ SELECT DISTINCT 4 + - - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \+ Int64\(22\) AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 70 + 22 AS col1, + 17 AS col1 +---- +-48 +17 query I rowsort SELECT 92 - 39 @@ -1460,8 +1475,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 58 + COUNT ( * ) AS col2, 31 col2 +---- +31 +59 query I rowsort label-274 SELECT DISTINCT 9 * + ( - CASE + 14 WHEN SUM ( - - CAST ( NULL AS INTEGER ) ) THEN - + 27 + NULLIF ( + + COALESCE ( + 42, 33 + - 18, + 32, - COUNT ( * ) ), - - CASE + COUNT ( * ) WHEN - 75 / + + 29 THEN NULL ELSE + - 45 * + 4 * CAST ( NULL AS INTEGER ) / + 24 END + - - 92 + + COUNT ( * ) * - CAST ( - 30 AS INTEGER ) ) ELSE NULL END ) - + 77 * 40 + COUNT ( * ) @@ -1710,8 +1728,11 @@ SELECT DISTINCT 9 AS col1, ( COUNT ( * ) ) * - - 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4186 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- CAST\(Int64\(23\) AS Int32\)\)\) \* Int64\(\-14\) \* Int64\(\-13\) AS col2" at position 0 and "Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( + - CAST ( + 23 AS INTEGER ) ) * + ( - 14 ) * - 13 AS col2, - 95 AS col2 +---- +-4186 +-95 query I rowsort SELECT COALESCE ( - NULLIF ( 20, + 17 ), + ( - + 41 ), - 50 ) * - 62 @@ -1787,8 +1808,11 @@ SELECT + 10 + + + 56 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - 4029 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col0" at position 0 and "Int64\(51\) \* Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 34 AS col0, + 51 * 79 AS col0 +---- +-34 +4029 query I rowsort SELECT - NULLIF ( + 43, - 84 + 42 ) AS col0 @@ -1853,8 +1877,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- Int64\(6\)\) / Int64\(\-29\) \+ Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 97 + + COUNT ( * ) col1, ( - + 6 ) / - 29 + 46 AS col1 +---- +46 +98 query I rowsort SELECT - 94 * + 61 + + 33 * + 40 @@ -2271,8 +2298,11 @@ SELECT 61 + COUNT ( * ) col2, - 76 / COALESCE ( + 4, 15 * + COUNT ( + 70 ) + + - # Datafusion - Datafusion expected results: # Datafusion - Expected - -576 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* \(\- Int64\(9\)\) AS col2" at position 0 and "Int64\(\-85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 * - + 9 AS col2, + ( - 85 ) AS col2 +---- +-576 +-85 query I rowsort label-427 SELECT 70 + COUNT ( * ) AS col1 @@ -2334,8 +2364,11 @@ SELECT - 70 * - 23 + - 59 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(3\) \+ Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) AS col0, 3 + + 85 AS col0 +---- +88 +NULL query I rowsort label-439 SELECT 60 * - ( - COALESCE ( 65, + - 5 / - COUNT ( * ) + - ( COUNT ( * ) ) ) ) + - + 68 AS col0 @@ -2657,8 +2690,11 @@ SELECT - + 63 + - + 64 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(28\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 28 col2, COUNT ( * ) AS col2 +---- +-28 +1 query I rowsort label-499 SELECT ALL + - 14 * + COUNT ( * ) @@ -2889,8 +2925,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-50\) \+ Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 91 AS col0, COUNT ( * ) * + - 50 + 64 AS col0 +---- +14 +91 query I rowsort SELECT 64 + + 48 @@ -3120,8 +3159,11 @@ SELECT DISTINCT 49 * - 7 * + + 15 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 147 # Datafusion - Expected - 127 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ Int64\(83\) AS col1" at position 0 and "\(\- sum\(Int64\(\-82\)\)\) \- \(\- Int64\(\-44\)\) \+ min\(Int64\(89\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 64 + + + 83 AS col1, - SUM ( - 82 ) - - - 44 + ( + MIN ( ALL + 89 ) ) AS col1 +---- +127 +147 query I rowsort SELECT + 73 + + + 20 AS col1 @@ -3392,8 +3434,11 @@ SELECT ALL + - COUNT ( - + NULLIF ( + 13, - - 92 ) ) * - 33 AS col1, 15 + COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(\-79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - CAST ( NULL AS INTEGER ) AS col0, - 79 col0 +---- +-79 +NULL query I rowsort SELECT + - 89 col0 @@ -4284,8 +4329,11 @@ SELECT - COALESCE ( + + 96, + - 79, - NULLIF ( - 36, - + 38 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-96\)\) AS col2" at position 0 and "Int64\(49\) \- Int64\(\-33\) \+ Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 96 AS col2, + 49 - - 33 + 19 AS col2 +---- +101 +96 query I rowsort SELECT ALL + 48 + + + 88 AS col2 @@ -4402,8 +4450,12 @@ 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\(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\. +query III valuesort 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 +---- +-63 +27 +NULL query I rowsort label-828 SELECT + 74 - COUNT ( * ) * - + CAST ( 28 AS INTEGER ) @@ -4553,8 +4605,11 @@ SELECT + NULLIF ( 35, + - COUNT ( * ) / - 9 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- nullif\(Int64\(\-29\), Int64\(\-52\)\)\) \+ Int64\(59\) AS col2" at position 0 and "Int64\(70\) \- CAST\(NULL AS Int32\) \* \(\- Int64\(\-5\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) * - NULLIF ( - 29, + - 52 ) + 59 AS col2, 70 - CAST ( NULL AS INTEGER ) * - - 5 AS col2 +---- +30 +NULL query II rowsort label-857 SELECT CASE - 33 WHEN + 65 THEN + + COUNT ( * ) / + COUNT ( * ) * 87 * - COUNT ( * ) * + + COUNT ( * ) + + ( - - 46 ) + + 70 + 81 * + + 15 WHEN 9 * 68 THEN NULL ELSE NULL END AS col1, + COUNT ( NULLIF ( - + 8, - ( - - CAST ( ( + + 9 ) AS INTEGER ) ) ) ) + 86 @@ -5139,8 +5194,11 @@ SELECT DISTINCT + - CASE + - 24 WHEN - 60 * + COUNT ( * ) THEN - MIN ( ALL + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -130597 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* Int64\(40\) \* Int64\(\-68\) \+ Int64\(16\) \- Int64\(53\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 * 40 * - 68 + 16 - + + 53 AS col2, 71 AS col2 +---- +-130597 +71 query I rowsort label-969 SELECT ALL - - 81 * + ( + - CAST ( NULL AS INTEGER ) ) AS col2 @@ -5419,8 +5477,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 * 35 AS col0, + 32 - 70 * - COUNT ( * ) col0 +---- +-3220 +102 query II rowsort label-1022 SELECT ALL CAST ( + 46 AS INTEGER ) AS col0, - CAST ( 37 AS INTEGER ) - COUNT ( * ) + + 49 + + 36 AS col1 @@ -5821,8 +5882,11 @@ 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\(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\. +query II valuesort 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 +---- +-44 +NULL query II rowsort SELECT ALL - ( - - ( + 35 ) ) * 30 AS col0, 84 AS col1 @@ -6650,8 +6714,11 @@ SELECT ALL + - 72, + COUNT ( * ) * + 90 + - 41 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col1" at position 0 and "Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 46 AS col1, 95 AS col1 +---- +-46 +95 query I rowsort SELECT + 15 - - 78 AS col0 @@ -6661,8 +6728,11 @@ SELECT + 15 - - 78 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 819 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "Int64\(63\) \* Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 14 AS col0, 63 * 13 AS col0 +---- +14 +819 query I rowsort label-1264 SELECT - - 54 * - - 62 + - NULLIF ( - 91, - 65 - - 64 * ( 28 * MAX ( DISTINCT + 27 ) ) ) AS col0 @@ -6897,8 +6967,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * 88 AS col0, 46 col0 +---- +46 +88 query I rowsort label-1309 SELECT + MIN ( ALL 43 ) AS col0 @@ -7329,8 +7402,12 @@ NULL # Datafusion - Expected - 43 # Datafusion - Expected - 0 # Datafusion - Expected - -80 -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 Int64\(10\)\) / Int64\(\-95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 43 AS col1, COUNT ( DISTINCT 10 ) / - 95 AS col1, - 80 +---- +-80 +0 +43 query I rowsort label-1392 SELECT - + 4 * - 88 * - - 40 * - 65 * + + COALESCE ( + COUNT ( * ), 47 ) AS col2 @@ -7963,8 +8040,11 @@ SELECT DISTINCT + 25 * 3 - - 19 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(92\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, - COUNT ( ALL 92 ) AS col0 +---- +-1 +1 query I rowsort label-1515 SELECT + COUNT ( DISTINCT ( 86 ) ) + + + MIN ( DISTINCT - 13 ) @@ -8105,8 +8185,11 @@ SELECT MIN ( 67 ) AS col0, 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "Int64\(61\) \* \(\- CAST\(NULL AS Int32\)\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 62 col1, ( 61 ) * - CAST ( NULL AS INTEGER ) / + COUNT ( * ) * - 73 AS col1 +---- +62 +NULL query I rowsort label-1542 SELECT + CAST ( 77 AS INTEGER ) - - ( + ( 58 ) ) col1 @@ -8236,8 +8319,11 @@ SELECT 49 + 97 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \+ Int64\(1\) AS col1" at position 0 and "Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 + 1 col1, - 87 AS col1 +---- +-87 +60 query I rowsort label-1566 SELECT SUM ( + 37 ) + - + 36 * + CAST ( NULL AS INTEGER ) + 8 + - NULLIF ( - 3, + + 45 ) @@ -8740,8 +8826,11 @@ SELECT CAST ( + - AVG ( + 19 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -229320 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(42\)\)\) \* Int64\(65\) \* Int64\(84\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( ALL + ( + + 42 ) ) * 65 * + 84 col0, + ( - CAST ( NULL AS INTEGER ) ) AS col0 +---- +-229320 +NULL query I rowsort SELECT + 73 * + - 2 + + 66 AS col2 @@ -8901,8 +8990,11 @@ SELECT COUNT ( * ) - + 82 + - + 84 * + - CASE - 83 WHEN 15 THEN NULL ELSE NULLIF # 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 "Int64\(89\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 AS col2, 73 AS col2 +---- +73 +89 query I rowsort SELECT 59 * - 10 @@ -8928,8 +9020,11 @@ SELECT 32, - 23 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col2" at position 0 and "Int64\(\-4\) \+ \(\- coalesce\(nullif\(\(\- Int64\(\-50\)\), \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(85\) / Int64\(48\) \- \(\- Int64\(68\)\)\)\)\), CAST\(NULL AS Int32\), Int64\(9\) \* Int64\(\-69\) \+ coalesce\(\(\- Int64\(\-26\)\), Int64\(\-13\), Int64\(\-16\) \- Int64\(66\) \* CAST\(Int64\(\-22\) \+ Int64\(\-93\) \* Int64\(\-31\) AS Int32\)\)\)\) \+ Int64\(7\) \* \(\- CASE Int64\(\-87\) WHEN Int64\(77\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(25\) \+ Int64\(60\)\) \* Int64\(\-94\) WHEN Int64\(41\) THEN Int64\(69\) \+ Int64\(25\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-43 +NULL query I rowsort label-1700 SELECT DISTINCT - 54 * + COUNT ( * ) @@ -9742,8 +9837,11 @@ SELECT ALL + 9 * + 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 AS col2, 63 col2 +---- +63 +96 query I rowsort label-1857 SELECT COUNT ( * ) + - 51 @@ -9932,8 +10030,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 783 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col2" at position 0 and "Int64\(87\) \* Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 29 AS col2, + 87 * 9 AS col2 +---- +-29 +783 query I rowsort SELECT ALL 25 * ( + 25 ) @@ -10149,8 +10250,11 @@ SELECT ALL + 34 * + 62 + - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1696 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(11\)\)\) \* Int64\(37\) \+ Int64\(\-43\) \* Int64\(30\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MAX ( + 11 ) * 37 + ( + - 43 ) * 30 + COUNT ( * ) AS col1, ( - 38 ) AS col1 +---- +-1696 +-38 query I rowsort label-1934 SELECT DISTINCT COUNT ( * ) * 78 + 97 + + 8 * + 12 @@ -10421,8 +10525,11 @@ SELECT DISTINCT COUNT ( - 75 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(50\) AS Int32\) \+ Int64\(\-32\) \- Int64\(14\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( 50 AS INTEGER ) + - 32 - 14 AS col0, + 75 AS col0 +---- +4 +75 query I rowsort label-1987 SELECT - 26 + + MAX ( NULLIF ( - 51, + 74 + 15 ) ) + - 47 AS col1 @@ -10882,14 +10989,21 @@ SELECT ALL + + 37 AS col0, + 96 # Datafusion - Expected - 2 # Datafusion - Expected - -63 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col1" at position 0 and "\(\- Int64\(\-7\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 2 AS col1, - 63, - - 7 AS col1 +---- +-63 +2 +7 # 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 col0" at position 0 and "Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 27 AS col0, + 3 AS col0 +---- +27 +3 query I rowsort SELECT ALL + - ( ( - 53 ) ) AS col0 @@ -10984,8 +11098,11 @@ SELECT DISTINCT + 67 / 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - -238128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(15\) AS col1" at position 0 and "Int64\(\-44\) \* Int64\(\-66\) \* max\(Int64\(\-82\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 5 * 15 AS col1, - 44 * + - 66 * MAX ( ALL + - 82 ) AS col1 +---- +-238128 +75 query I rowsort SELECT DISTINCT 78 - - 57 @@ -11146,8 +11263,11 @@ SELECT ALL + 38 * - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- Int64\(\-73\)\) WHEN Int64\(99\) \+ Int64\(1\) \+ Int64\(\-46\) \+ Int64\(52\) \* Int64\(2\) THEN \(\- CAST\(Int64\(\-49\) AS Int32\)\) \* Int64\(\-87\) WHEN Int64\(\-67\) \+ Int64\(46\) THEN NULL ELSE Int64\(\-25\) \* count\(Int64\(1\)\) AS count\(\*\) END AS col0" at position 0 and "Int64\(80\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-25 +80 query I rowsort SELECT DISTINCT 79 - + - 66 @@ -11241,8 +11361,11 @@ SELECT + 90 AS col2, - COALESCE ( + 84, 34 ) # 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 "\(\- Int64\(41\)\) \* CASE Int64\(\-48\) WHEN Int64\(80\) THEN \(\- Int64\(2\)\) \* \(\- Int64\(\-37\)\) ELSE NULL END \- Int64\(\-73\) \+ CAST\(NULL AS Float64\) AS col0" at position 0 and "Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - + 41 * CASE - 48 WHEN + 80 THEN - + 2 * - - 37 ELSE NULL END - + - 73 + CAST ( NULL AS FLOAT8 ) col0, + 74 AS col0 +---- +74 +NULL query I rowsort label-2142 SELECT DISTINCT + + 41 * + + MIN ( DISTINCT 17 ) @@ -11676,8 +11799,11 @@ SELECT 53 * + 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 AS col0, 8 AS col0 +---- +25 +8 query II rowsort label-2228 SELECT ALL 98 col2, COUNT ( 51 ) @@ -12449,8 +12575,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, 19 AS col1 +---- +-1 +19 query I rowsort SELECT + CASE - 78 WHEN - ( 24 ) THEN - 12 END + 56 + - 41 / - + 69 AS col2 @@ -12564,8 +12693,11 @@ SELECT ALL + + 66 AS col1, - 3 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "CAST\(\(\- Int64\(\-81\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 23 AS col2, CAST ( - - 81 AS INTEGER ) AS col2 +---- +23 +81 query I rowsort label-2397 SELECT + + CAST ( 27 AS INTEGER ) @@ -12591,8 +12723,11 @@ SELECT - + ( + + 42 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(90\), Int64\(\-86\) \* Int64\(83\)\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( 90, - 86 * 83 ) AS col0, 13 AS col0 +---- +13 +90 query I rowsort SELECT - 85 + - 75 @@ -12732,8 +12867,11 @@ 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\(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\. +query II valuesort 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 +---- +-6773804 +87 query I rowsort label-2429 SELECT + - CASE + MIN ( ( + 15 ) ) WHEN - + 41 - + - 99 THEN - + CASE + 34 WHEN - + 22 THEN - - ( 55 ) END + - MIN ( ALL + 20 ) END @@ -12761,8 +12899,11 @@ SELECT + 49 + + - 73 * - + 93 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col1" at position 0 and "Int64\(\-22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 49 AS col1, - 22 AS col1 +---- +-22 +49 query I rowsort label-2434 SELECT COALESCE ( - ( + 83 ), + 56 ) + CASE - + CAST ( 76 AS INTEGER ) WHEN + 8 + - CAST ( NULL AS INTEGER ) / - 4 * 26 THEN CAST ( NULL AS INTEGER ) END AS col2 @@ -12850,8 +12991,11 @@ SELECT COUNT ( * ) + 44 * - 68 * - + MIN ( DISTINCT + 36 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "Int64\(\-52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 AS col2, - 52 AS col2 +---- +-52 +13 query II rowsort label-2451 SELECT 48 AS col1, SUM ( NULLIF ( ( - - 99 ), - + 46 * 11 ) ) @@ -13160,8 +13304,11 @@ SELECT - COUNT ( + ( + 82 ) ), + 5 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 col0" at position 0 and "\(\- max\(Int64\(0\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 69 AS col0, - MAX ( + 0 ) AS col0 +---- +0 +69 query I rowsort label-2511 SELECT DISTINCT 24 + 4 * - - 40 * - CAST ( CAST ( 81 AS INTEGER ) AS INTEGER ) AS col1 @@ -13197,8 +13344,11 @@ SELECT + 41 * - - 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3807 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* Int64\(81\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 * ( + 81 ) AS col1, 26 AS col1 +---- +26 +3807 query II rowsort label-2518 SELECT + CAST ( NULL AS INTEGER ) + + 51 * + + CAST ( NULL AS INTEGER ) AS col0, + 69 @@ -13421,8 +13571,11 @@ SELECT ALL COUNT ( ALL - + 28 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 30 AS col0, + COUNT ( * ) AS col0 +---- +-30 +1 query II rowsort SELECT - 72, 51 AS col2 @@ -13653,8 +13806,11 @@ 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\(1\)\) AS count\(\*\) / \(\- Int64\(\-14\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 20 AS col1, + ( COUNT ( * ) ) / - ( - 14 ) AS col1 +---- +-20 +0 query I rowsort SELECT + ( + 25 ) * + + 71 + - 16 @@ -13675,8 +13831,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 57684 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col2" at position 0 and "Int64\(57\) \* Int64\(92\) \* Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 61 AS col2, 57 * + 92 * 11 AS col2 +---- +57684 +61 query I rowsort label-2610 SELECT ( 11 ) + 41 + - CASE + COUNT ( * ) WHEN + 5 THEN - 7 / - + NULLIF ( + COUNT ( * ), 18 ) * - 48 * + + 92 - - 9 * - 31 + - 76 + 45 + - 81 * - + COUNT ( * ) * + 5 END + 99 * - 98 + + - 26 @@ -13865,8 +14024,11 @@ SELECT + 64 - + 26 # 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 "nullif\(Int64\(20\), \(\- min\(Int64\(83\)\)\)\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( + + 20, + - MIN ( + 83 ) ) AS col2, + 85 AS col2 +---- +20 +85 query I rowsort SELECT ALL - 50 * - 76 + + 54 @@ -13984,8 +14146,11 @@ SELECT ALL + 55, + 37 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \+ Int64\(\-35\) / Int64\(65\) AS col1" at position 0 and "max\(Int64\(66\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 95 + - 35 / + + 65 AS col1, MAX ( + 66 ) AS col1 +---- +-95 +66 query I rowsort SELECT ALL + ( + 95 ) AS col0 @@ -14292,8 +14457,12 @@ SELECT - 1 + - ( - 58 ) col1 # Datafusion - Expected - -6 # 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 1 and "coalesce\(\(\- count\(DISTINCT \(\- Int64\(71\)\)\)\), Int64\(\-80\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 6, + 76 AS col0, COALESCE ( - + COUNT ( DISTINCT - + 71 ), - 80 ) AS col0 +---- +-1 +-6 +76 query I rowsort label-2728 SELECT - 15 + + COUNT ( * ) @@ -14388,8 +14557,11 @@ SELECT COUNT ( * ) * - 14 * 16 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \+ Int64\(29\) AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 83 + 29 AS col2, 96 col2 +---- +-54 +96 query I rowsort SELECT ALL 78 + + 81 @@ -14625,8 +14797,12 @@ SELECT ALL 79, NULLIF ( 70, - 87 ) col1 # Datafusion - Expected - 2136 # Datafusion - Expected - 9 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 1 and "Int64\(14\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT ( - - 89 ) * + 24 AS col0, + 9 AS col2, 14 col2 +---- +14 +2136 +9 query II rowsort SELECT ALL 32 AS col2, 55 * - 90 + - 49 @@ -16333,8 +16509,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- min\(Int64\(12\)\)\) / Int64\(\-35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 + + 67 AS col0, - 18 + + 28 - 27 + + - COUNT ( * ) + - MIN ( + 12 ) / - 35 AS col0 +---- +-18 +129 query I rowsort label-3123 SELECT ( - 78 ) * 11 * - ( 67 ) * COUNT ( * ) * + CAST ( NULL AS INTEGER ) * ( 81 * - CASE NULLIF ( COUNT ( * ), 88 * 28 + ( - 93 ) * + 45 ) * COUNT ( * ) WHEN + MIN ( ALL 30 ) + + 10 THEN NULL WHEN + 19 THEN + 56 - - 15 END ) AS col1 @@ -16470,8 +16649,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, 37 AS col2 +---- +-1 +37 query II rowsort SELECT ALL 11, + 62 * 16 * - 57 AS col2 @@ -16507,8 +16689,11 @@ 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\(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\. +query II valuesort SELECT + 4 * - MAX ( + 36 ) AS col0, - 33 * + COUNT ( * ) + - 5 + + 16 * 95 / + 69 AS col0 +---- +-144 +-16 query I rowsort label-3157 SELECT CASE - 99 WHEN - SUM ( 34 ) THEN NULL WHEN 49 THEN NULL WHEN - + 90 * + + 27 THEN NULL ELSE 44 * 81 END @@ -16534,8 +16719,11 @@ SELECT ALL + COUNT ( * ) * - - 31 + - 24 AS col1, - 99 * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col0" at position 0 and "Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 62 AS col0, + 62 col0 +---- +62 +62 query I rowsort SELECT DISTINCT - + 83 * 52 @@ -16566,8 +16754,11 @@ SELECT ALL + + MIN ( ALL + - 58 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - -3330 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col1" at position 0 and "Int64\(90\) \* \(\- Int64\(37\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 col1, 90 * - + 37 col1 +---- +-3330 +81 query I rowsort label-3168 SELECT + 37 * MAX ( DISTINCT + 83 ) + 80 + + + 68 * - 15 * + CAST ( 85 AS INTEGER ) * - 26 AS col0 @@ -16842,8 +17033,11 @@ SELECT 13 * + ( - 68 ) AS col1 # 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 col0" at position 0 and "coalesce\(\(\- Int64\(49\)\), Int64\(\-34\) / Int64\(89\) / \(\- Int64\(\-45\)\) \- Int64\(\-65\), Int64\(\-57\) \+ Int64\(21\) \+ Int64\(57\) \* Int64\(68\), \(\- Int64\(\-34\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 82 AS col0, COALESCE ( - + 49, - 34 / 89 / - - 45 - - 65, - 57 + + 21 + + 57 * 68, - ( - 34 ) ) AS col0 +---- +-49 +82 query I rowsort label-3221 SELECT DISTINCT - COALESCE ( - 65, - + ( 61 ) / - 26 - - COUNT ( * ) + - 24 + + COUNT ( * ) ) + + 94 AS col2 @@ -17089,8 +17283,12 @@ SELECT DISTINCT + - COUNT ( * ) * 25 AS col0 # Datafusion - Expected - -52 # Datafusion - Expected - 90 # 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 "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 52 AS col2, + 90 AS col2, - SUM ( CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) + + 1 + - - 97 * + - 83 - + 85 - + 80 AS col1 +---- +-52 +90 +NULL query I rowsort label-3267 SELECT - 20 + COUNT ( * ) * - + COUNT ( - - 45 ) AS col1 @@ -17500,8 +17698,11 @@ SELECT ALL 26 + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(35\)\) AS col2" at position 0 and "Int64\(\-74\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 35 AS col2, - 74 * COUNT ( * ) AS col2 +---- +-35 +-74 query I rowsort SELECT 7 * + 96 AS col0 @@ -17912,14 +18113,20 @@ SELECT ALL + MAX ( - + 16 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 0 AS col2, COUNT ( * ) AS col2 +---- +0 +1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2720 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-14\)\) \* Int64\(21\) \- Int64\(58\) \+ Int64\(91\) \+ \(\- min\(DISTINCT Int64\(54\)\)\) \+ Int64\(17\) \+ \(\- Int64\(16\)\) AS col2" at position 0 and "Int64\(\-68\) \* Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( - 14 ) * + + 21 - 58 + + 91 + - + MIN ( DISTINCT 54 ) + 17 + - + 16 AS col2, - 68 * + + 40 col2 +---- +-2720 +1 query I rowsort SELECT COALESCE ( 5, + + 19 - + 79 * + + 78 + - 50 ) AS col1 @@ -18029,8 +18236,11 @@ SELECT ALL 42 AS col2, + 84 - - 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3042 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(\-78\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 39 * - 78 AS col2, + 41 AS col2 +---- +-3042 +41 query II rowsort label-3443 SELECT + COUNT ( * ) AS col0, ( + 68 ) @@ -18063,8 +18273,11 @@ SELECT DISTINCT + MIN ( DISTINCT - - ( 86 ) ) * + 88 * - 90 AS col1 # 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 col2" at position 0 and "\(\- \(\- Int64\(\-99\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( 19 ) AS col2, - ( - - 99 ) AS col2 +---- +-99 +19 query I rowsort label-3449 SELECT - COUNT ( - 64 ) * - - 13 @@ -18404,8 +18617,11 @@ SELECT ALL MAX ( - 13 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-9\)\) AS col2" at position 0 and "CAST\(Int64\(37\) AS Int32\) \- Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 9 AS col2, CAST ( + 37 AS INTEGER ) - + 53 AS col2 +---- +-16 +9 query I rowsort SELECT ALL - 57 * - + 66 AS col2 @@ -19031,8 +19247,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + + - 19 AS col2, COUNT ( * ) * + 54 AS col2 +---- +-18 +54 query I rowsort label-3632 SELECT DISTINCT - ( - 70 ) + - CASE + NULLIF ( COALESCE ( - - CAST ( NULL AS INTEGER ), - + COUNT ( * ) + + 46 + 33 + CASE + 20 WHEN - 77 + + 30 + MAX ( - - 82 ) / 94 THEN NULL WHEN 23 + - 93 THEN 98 + 78 END * + COUNT ( * ) ), + + 22 / - 95 ) WHEN 42 THEN NULL WHEN - 28 * - ( 71 ) + + ( + 25 ) THEN 96 * COUNT ( * ) ELSE + 24 END + + CAST ( 51 AS INTEGER ) * SUM ( 55 ) * 50 @@ -19319,8 +19538,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, 83 AS col2 +---- +1 +83 query I rowsort label-3686 SELECT ALL + COUNT ( + + 73 ) AS col0 @@ -19628,8 +19850,11 @@ SELECT ALL + 10 * - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(16\) \* Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) col1, 16 * + 9 AS col1 +---- +144 +NULL query I rowsort SELECT 84 - - 23 * 22 * - + 8 @@ -20002,8 +20227,11 @@ SELECT - 73 / - 32 + ( + - 22 ) * 76 * 29 * + + 79 * - 68 + 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - -872 # Datafusion - Expected - 4717 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* Int64\(22\) / Int64\(6\) \- Int64\(91\) \* Int64\(13\) AS col0" at position 0 and "Int64\(89\) \* \(\- Int64\(\-53\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 85 * 22 / 6 - 91 * 13 AS col0, 89 * - - 53 col0 +---- +-872 +4717 query I rowsort SELECT + 98 + + CASE - + 57 WHEN - - 15 + + ( + - 22 ) - - 44 THEN - 97 + 86 ELSE NULL END @@ -20129,8 +20357,11 @@ 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\(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\. +query II valuesort SELECT + NULLIF ( COUNT ( * ), 81 ) AS col2, ( 94 ) + - 73 AS col2 +---- +1 +21 query I rowsort label-3839 SELECT - ( - 57 ) / - 40 + + 71 AS col1 @@ -20287,8 +20518,11 @@ SELECT 14 + + - COUNT ( * ), 4 * - - COUNT ( * ) * - 99 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2460 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) \* \(\- Int64\(\-30\)\) AS col2" at position 0 and "Int64\(93\) / Int64\(\-22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 82 * - - 30 col2, 93 / - 22 AS col2 +---- +-2460 +-4 query I rowsort SELECT ALL 17 - 53 AS col1 @@ -20514,8 +20748,11 @@ SELECT + 78 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col0" at position 0 and "Int64\(36\) \+ count\(Int64\(85\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 91 AS col0, 36 + + + COUNT ( ALL 85 ) AS col0 +---- +-91 +37 query I rowsort SELECT + ( + - 4 ) @@ -20714,8 +20951,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) / Int64\(37\) \+ Int64\(10\) \- Int64\(59\) AS col1" at position 0 and "Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 45 / + + 37 + 10 - + + 59 AS col1, 70 AS col1 +---- +-48 +70 query I rowsort SELECT - 64 * + 10 AS col0 @@ -20894,8 +21134,11 @@ SELECT + COUNT ( * ) * 85 + + + 18 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \+ Int64\(7\) AS col0" at position 0 and "Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 27 + + 7 AS col0, 76 AS col0 +---- +34 +76 query I rowsort label-3984 SELECT ALL - COALESCE ( ( - + MIN ( DISTINCT - 46 ) ), + - NULLIF ( + 77, + - COUNT ( * ) ) ) AS col0 @@ -20951,8 +21194,11 @@ SELECT + 40 + COUNT ( * ) / - 19 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \* Int64\(0\) \+ \(\- Int64\(22\)\) AS col2" at position 0 and "Int64\(96\) \+ \(\- coalesce\(Int64\(\-36\), Int64\(\-10\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 5 * + 0 + - + 22 AS col2, 96 + - COALESCE ( + - 36, - 10 ) AS col2 +---- +-22 +132 query I rowsort SELECT DISTINCT 47 * - 85 AS col0 @@ -21206,8 +21452,11 @@ 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\(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\. +query II valuesort SELECT - - ( + + COUNT ( * ) ) AS col1, - 44 AS col1 +---- +-44 +1 query I rowsort label-4043 SELECT - CASE + 74 WHEN - - 37 + + MIN ( DISTINCT 72 ) THEN NULL ELSE + NULLIF ( + ( + ( + COUNT ( * ) ) ), CASE - + COUNT ( + 97 ) WHEN + CAST ( NULL AS FLOAT8 ) THEN + 27 + - 48 ELSE NULL END + - 53 ) END * COUNT ( * ) + 84 * 36 / - 74 AS col1 @@ -21530,8 +21779,11 @@ 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\(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\. +query II valuesort 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 +---- +18 +6 query I rowsort label-4106 SELECT ALL 60 + 1 - - COUNT ( * ) @@ -21824,8 +22076,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( 8, - 98 ) AS col2, - COUNT ( * ) AS col2 +---- +-1 +8 query II rowsort label-4163 SELECT ALL + 9 AS col1, SUM ( + 6 ) * + 41 AS col2 @@ -22398,8 +22653,11 @@ SELECT 15, 71 AS col2 # 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 "Int64\(\-67\) / Int64\(44\) AS col1" at position 0 and "nullif\(Int64\(27\), Int64\(\-23\) \+ Int64\(\-22\)\) \+ Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 67 / 44 AS col1, + NULLIF ( + + 27, - 23 + - 22 ) + - 56 AS col1 +---- +-1 +-29 query II rowsort label-4271 SELECT DISTINCT 62 + - MAX ( + 41 ) * + + 88 AS col2, - 51 + - - 53 * - ( + - 21 ) AS col1 @@ -22909,8 +23167,11 @@ SELECT 92 * - + 50 AS col0, - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -7520 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(\-94\) AS col2" at position 0 and "Int64\(\-88\) / Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 * + - 94 AS col2, - 88 / + - 76 AS col2 +---- +-7520 +1 query I rowsort label-4368 SELECT 8 + + 0 + - ( + ( 87 ) ) * + + 69 * COUNT ( * ) AS col1 @@ -23543,8 +23804,11 @@ SELECT 80 * 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - -576 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(24\)\) \* Int64\(24\) \- Int64\(37\) / Int64\(\-61\) AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( 24 ) * 24 - 37 / - 61 AS col0, + 34 col0 +---- +-576 +34 query I rowsort label-4489 SELECT - 7 + + 35 + - 69 + + COALESCE ( + 9, - COALESCE ( + - 81, - 35 / 83, + - 4 ), + 77 ) * - 17 @@ -23652,8 +23916,11 @@ SELECT 17 * + 60 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 57 AS col0, 12 col0 +---- +12 +57 query I rowsort label-4509 SELECT ALL - MAX ( ALL - 65 ) AS col0 @@ -23680,8 +23947,12 @@ SELECT ALL + - COUNT ( + 21 ) / 94 AS col2 # Datafusion - Expected - -2441 # Datafusion - Expected - 141 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \* Int64\(72\) \+ Int64\(67\) \+ Int64\(12\) AS col1" at position 0 and "Int64\(58\) \+ Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 35 * + + 72 + + + 67 + 12 AS col1, 58 + + 83 col1, 4 AS col1 +---- +-2441 +141 +4 query I rowsort label-4514 SELECT ALL + + SUM ( - - 93 ) / + + 58 + 35 @@ -23717,8 +23988,11 @@ SELECT - 79 * + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 7 AS col2, - 15 AS col2 +---- +-15 +7 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -23741,8 +24015,11 @@ SELECT - MAX ( DISTINCT + 66 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5548 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* Int64\(73\) AS col2" at position 0 and "Int64\(96\) \+ Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 * 73 AS col2, + 96 + - 16 AS col2 +---- +5548 +80 query II rowsort label-4525 SELECT NULLIF ( + - 72, CAST ( MIN ( 55 ) AS INTEGER ) ) * ( + + 84 ) / 4 + + 89, 77 / - 53 AS col2 @@ -26025,8 +26302,12 @@ NULL # Datafusion - Expected - 69 # Datafusion - Expected - 57 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col1" at position 0 and "nullif\(Int64\(70\), Int64\(67\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 69 AS col1, 57 AS col2, + NULLIF ( + 70, 67 ) AS col1 +---- +57 +69 +70 query II rowsort SELECT ALL + 14 AS col2, - 27 AS col1 @@ -26365,8 +26646,12 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - -58 # Datafusion - Expected - 5147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-64\) \+ Int64\(\-75\) \+ coalesce\(Int64\(81\), Int64\(\-39\), count\(Int64\(91\)\) \+ Int64\(\-9\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 75 / + CAST ( NULL AS INTEGER ) AS col1, - 64 + + - 75 + + + COALESCE ( + 81, - 39, COUNT ( 91 ) + + - 9 ) col1, + - ( - 47 ) + 60 * + + COALESCE ( 85, 60 + 47 ) AS col0 +---- +-58 +5147 +NULL query I rowsort SELECT ( - + 97 ) * - 97 - - 45 - - - 29 + - 78 AS col2 @@ -26487,8 +26772,11 @@ SELECT DISTINCT + + ( + ( 74 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(60\)\) \+ Int64\(35\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 60 + + 35 AS col1, 74 AS col1 +---- +-25 +74 query I rowsort label-5050 SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 16 * + 87 + + 78 + - 33 * + 69 @@ -26606,8 +26894,11 @@ 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\(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\. +query II valuesort SELECT - 67 + - COUNT ( * ) + - 57 + + 73 / 22 + - COUNT ( * ) * 62 + + COUNT ( * ) + 80 + 2 / - - COUNT ( * ) AS col0, 69 / - COUNT ( * ) AS col0 +---- +-101 +-69 query I rowsort label-5072 SELECT + - 50 + COUNT ( * ) - 61 @@ -26670,8 +26961,11 @@ SELECT ALL + COUNT ( * ) * 52 * 28 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) 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 II valuesort SELECT 98 col2, SUM ( + 28 ) AS col2 +---- +28 +98 query I rowsort label-5084 SELECT ALL 69 + + 1 * - ( - MAX ( - NULLIF ( 98, 97 - - 6 ) ) ) - - ( 38 ) / + + CASE - - NULLIF ( + + 94, + 52 ) WHEN - + 54 + - 82 * - 7 THEN NULL WHEN MAX ( DISTINCT 55 ) THEN NULL ELSE COUNT ( 55 ) END AS col1 @@ -26739,8 +27033,11 @@ SELECT 28 AS col0, - 76 + + 79 + - + COALESCE ( 64, 1 + + - 17 / - 50 ) * 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - -463 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col0" at position 0 and "Int64\(\-20\) \* Int64\(30\) \+ Int64\(59\) \- Int64\(\-78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 92 col0, - 20 * + + 30 + + + 59 - + - 78 col0 +---- +-463 +92 query I rowsort label-5097 SELECT ALL 37 * + - MAX ( - - 31 ) AS col2 @@ -27656,8 +27953,11 @@ SELECT DISTINCT MIN ( DISTINCT 6 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 10 AS col1, + COUNT ( * ) AS col1 +---- +1 +10 query I rowsort SELECT ALL 39 + - + 47 col1 @@ -28034,8 +28334,11 @@ SELECT 52 + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col0" at position 0 and "Int64\(\-81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 23 AS col0, - 81 AS col0 +---- +-81 +23 query II rowsort label-5343 SELECT DISTINCT 30, 35 / - 7 AS col0 @@ -28542,8 +28845,11 @@ SELECT - COUNT ( * ) + - 24 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 146 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "Int64\(54\) \+ Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 19 col0, + 54 + + 92 AS col0 +---- +146 +19 query I rowsort label-5441 SELECT + 67 + COUNT ( * ) - + COUNT ( * ) + + 61 * 32 @@ -29098,8 +29404,12 @@ SELECT COUNT ( DISTINCT - 73 ) # Datafusion - Expected - 117 # Datafusion - Expected - 4 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CASE \(\- Int64\(\-93\)\) WHEN CAST\(\(\- Int64\(83\)\) AS Int32\) \+ sum\(\(\- CASE Int64\(\-86\) WHEN Int64\(0\) THEN Int64\(65\) END\)\) THEN NULL ELSE Int64\(\-49\) END\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-71 +117 +4 query I rowsort label-5546 SELECT + 43 / + - 26 col1 @@ -29436,8 +29746,11 @@ SELECT ALL + 4 / - 93 * - 12 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "Int64\(\-51\) \- nullif\(Int64\(\-45\), Int64\(47\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 68 AS col2, - 51 - NULLIF ( + - 45, 47 ) col2 +---- +-6 +68 query II rowsort label-5610 SELECT 34 AS col0, + 61 * - - 63 * - + 1 * + COUNT ( * ) + - 84 AS col1 @@ -29704,8 +30017,11 @@ SELECT - SUM ( ALL + 2 ) + + 29 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col0" at position 0 and "min\(DISTINCT Int64\(72\)\) / Int64\(29\) \- Int64\(\-6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 45 ) AS col0, MIN ( DISTINCT + 72 ) / + + 29 - + - 6 AS col0 +---- +-45 +8 query I rowsort label-5660 SELECT DISTINCT + CAST ( - 6 AS INTEGER ) AS col1 @@ -29886,8 +30202,11 @@ SELECT ALL - + 52 / - 57 * + - 11 * - - 23, 27 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3087 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(63\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 49 * + ( 63 ) AS col2, 34 AS col2 +---- +3087 +34 query I rowsort SELECT DISTINCT - + 2 * + - 5 * + 88 @@ -30153,8 +30472,11 @@ SELECT 57 + - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 80 col1, 77 AS col1 +---- +77 +80 query I rowsort SELECT ALL 37 * - 49 col0 @@ -30288,8 +30610,11 @@ SELECT DISTINCT 44 + - + 49 # 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 col1" at position 0 and "Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 col1, - 1 AS col1 +---- +-1 +6 query I rowsort SELECT ALL 79 + + + 15 AS col2 @@ -30324,8 +30649,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 77 AS col1, - 77 * - - 63 * COUNT ( * ) * + COUNT ( * ) + + 41 AS col1 +---- +-4810 +77 query II rowsort SELECT ALL 28 col0, 57 @@ -30418,8 +30746,11 @@ SELECT ALL + 26 AS col0, + 39 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 3519 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col1" at position 0 and "Int64\(51\) \* Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 AS col1, 51 * + 69 AS col1 +---- +3519 +37 query I rowsort SELECT + + NULLIF ( - 20, - 57 ) @@ -30429,8 +30760,11 @@ SELECT + + NULLIF ( - 20, - 57 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - CAST ( NULL AS INTEGER ) AS col2, 20 AS col2 +---- +20 +NULL query II rowsort SELECT 1 AS col0, 90 @@ -30483,8 +30817,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 AS col2, 23 AS col2 +---- +23 +44 query I rowsort SELECT ALL + COALESCE ( - 50, + + 47 ) AS col0 @@ -30687,8 +31024,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 * + 35 + - COUNT ( * ) AS col0, - 44 AS col0 +---- +-44 +3184 query II rowsort label-5846 SELECT 50 - + COUNT ( * ) + + 46 * + + COUNT ( * ) AS col1, + MIN ( + 21 ) AS col2 @@ -31025,8 +31365,11 @@ SELECT COALESCE ( + - COUNT ( * ), 90 * + 39 + 26, - - 9 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3225 # Datafusion - Expected - 3225 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* Int64\(\-93\) \- Int64\(38\) \- Int64\(88\) \+ Int64\(55\) / Int64\(18\) AS col1" at position 0 and "Int64\(\-75\) \* Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 36 * - 93 - 38 - + 88 + + 55 / + 18 AS col1, - 75 * - 43 AS col1 +---- +3225 +3225 query II rowsort SELECT + 15 * - + 54 * 68, 57 col0 @@ -31113,8 +31456,11 @@ SELECT + 77 + + 73 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -312 # Datafusion - Expected - 1739 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT \(\- Int64\(24\)\)\) \* Int64\(13\) AS col0" at position 0 and "Int64\(47\) \* Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( DISTINCT - + 24 ) * 13 AS col0, + 47 * 37 AS col0 +---- +-312 +1739 query I rowsort label-5926 SELECT ALL 73 * NULLIF ( 89, + + 62 ) / + 17 + - 42 @@ -31321,8 +31667,11 @@ 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\(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\. +query II valuesort SELECT ALL + 55 col2, CASE + - 94 WHEN - - COUNT ( * ) THEN + 99 - - 52 WHEN 1 * + 16 THEN + 2 END * 6 * - - 67 AS col2 +---- +55 +NULL query I rowsort label-5966 SELECT ( + 63 ) * 56 + - 18 + + COALESCE ( + - 58, + - COUNT ( * ) / - 44 ) + - + 88 * - 74 + + 2 @@ -31391,8 +31740,11 @@ SELECT 99, - 14 + 66 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(97\)\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 97 col2, 5 AS col2 +---- +-97 +5 query II rowsort SELECT ALL + 41, + 97 + 6 col1 @@ -31844,8 +32196,11 @@ SELECT ALL 1 - - 89 * 1 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1104 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* \(\- Int64\(92\)\) AS col1" at position 0 and "Int64\(\-49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 12 * - + 92 AS col1, - 49 AS col1 +---- +-1104 +-49 query I rowsort SELECT DISTINCT 42 * + 39 @@ -32052,8 +32407,11 @@ SELECT DISTINCT - 26 * 54 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 3102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(49\)\) AS col1" at position 0 and "Int64\(94\) \* Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 49 AS col1, 94 * 33 AS col1 +---- +-49 +3102 query I rowsort label-6105 SELECT + COUNT ( * ) * + 55 AS col2 @@ -32357,8 +32715,11 @@ SELECT 94 * - CAST ( + + 91 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(\-48\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 + - 48 AS col0, + 28 col0 +---- +-48 +28 query I rowsort label-6164 SELECT DISTINCT - 35 / 76 @@ -32471,8 +32832,11 @@ SELECT - 91 * - 0 / - 17 + + - 60 + 13 * - 47 * 68 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 AS col2, + 26 col2 +---- +26 +48 query I rowsort SELECT + 85 * - 79 @@ -32646,8 +33010,11 @@ SELECT + - ( 88 ) # 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\(\-38\) / Int64\(37\) \+ Int64\(78\) AS col1" at position 0 and "count\(Int64\(\-7\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 38 / + 37 + 78 AS col1, COUNT ( - 7 ) AS col1 +---- +1 +77 query I rowsort label-6220 SELECT - COUNT ( * ) * 37 AS col0 @@ -33378,8 +33745,11 @@ SELECT ALL + 62 + + - 4 * - ( COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - -47700 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col2" at position 0 and "Int64\(\-50\) \* Int64\(18\) \* Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 86 AS col2, - 50 * + 18 * + 53 col2 +---- +-47700 +-86 query II rowsort label-6363 SELECT 20 AS col2, - 62 / 60 col0 @@ -33416,8 +33786,11 @@ 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\(1\)\) AS count\(\*\), Int64\(26\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 99 col1, + NULLIF ( + COUNT ( * ), + 26 ) AS col1 +---- +-99 +1 query II rowsort label-6370 SELECT + 9, - MAX ( DISTINCT 78 ) col1 @@ -33547,8 +33920,11 @@ SELECT ALL COUNT ( * ) + - CAST ( - - COUNT ( 93 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-28\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 28 AS col2, - CAST ( NULL AS INTEGER ) AS col2 +---- +28 +NULL query I rowsort label-6395 SELECT ALL - + COUNT ( * ) + - - MIN ( - 3 ) + ( + 26 ) AS col1 @@ -33820,8 +34196,11 @@ SELECT DISTINCT COALESCE ( + - 19, - 4 / - - 87 * 15 / COUNT ( * ) + MIN ( - 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - -119 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \+ Int64\(\-33\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-20\) \+ \(\- Int64\(26\)\) \+ Int64\(\-73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 1 + + - 33 + COUNT ( * ) AS col1, - 20 + - + 26 + - 73 AS col1 +---- +-119 +-31 query I rowsort label-6448 SELECT ALL 83 + + + 34 + - + 20 + + 71 + + 18 / 74 @@ -33998,8 +34377,11 @@ SELECT DISTINCT ( - + 65 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8010 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* \(\- Int64\(89\)\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90 * - + 89 col2, + 69 AS col2 +---- +-8010 +69 query I rowsort label-6482 SELECT DISTINCT CAST ( - - 89 AS INTEGER ) @@ -34201,8 +34583,11 @@ SELECT 62 + + - 66 - 5 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - -5074 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ Int64\(88\) \- Int64\(81\) \+ Int64\(\-38\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(97\) \+ Int64\(\-38\) \+ Int64\(87\) \* Int64\(\-59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 + + 88 - + 81 + + - 38 / COUNT ( * ) AS col1, 97 + - 38 + 87 * - 59 AS col1 +---- +-5074 +-6 query II rowsort label-6521 SELECT DISTINCT + 48 * - COUNT ( * ) AS col2, 8 AS col0 @@ -34277,8 +34662,11 @@ SELECT + 87, 40 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 190 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \+ Int64\(33\) \+ \(\- Int64\(\-85\)\) AS col2" at position 0 and "Int64\(\-3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 72 + 33 + - + ( - 85 ) col2, - 3 AS col2 +---- +-3 +190 query I rowsort label-6535 SELECT COUNT ( * ) * + 15 * + COUNT ( * ) * + 4 AS col1 @@ -34429,8 +34817,11 @@ SELECT DISTINCT + + MIN ( + 96 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - -347760 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "Int64\(56\) \* Int64\(\-90\) \* Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 69 AS col0, 56 * - 90 * 69 AS col0 +---- +-347760 +69 query I rowsort label-6564 SELECT ALL + 34 * - + COUNT ( * ) AS col1 @@ -34529,8 +34920,11 @@ SELECT SUM ( DISTINCT 33 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6557 # Datafusion - Expected - 198144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* Int64\(\-79\) AS col1" at position 0 and "Int64\(\-96\) \* Int64\(86\) \* Int64\(\-24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 83 * - 79 col1, - 96 * 86 * - 24 AS col1 +---- +-6557 +198144 query I rowsort SELECT + ( 96 ) * + 65 @@ -34891,8 +35285,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 516 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "Int64\(\-43\) \* \(\- Int64\(12\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 col1, - 43 * - + 12 AS col1 +---- +25 +516 query I rowsort SELECT 1 * + - 73 AS col0 @@ -34959,8 +35356,11 @@ SELECT + 46 + 48 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(CAST\(Int64\(45\) AS Int32\), Int64\(\-66\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( + CAST ( 45 AS INTEGER ), - 66 ) AS col0, - COUNT ( * ) AS col0 +---- +-1 +45 query II rowsort label-6665 SELECT - + 92, COUNT ( ALL + 65 ) AS col2 @@ -35135,8 +35535,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \+ \(\- Int64\(\-46\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 41 + - - 46 col0, COUNT ( * ) AS col0 +---- +1 +87 query II rowsort label-6698 SELECT ALL - 51 + 88 + + 99 + + 60 / - 50, + 46 AS col1 @@ -35468,8 +35871,11 @@ SELECT - COUNT ( * ) * - 26 * + - 49 col0, 85 + + - 28 + - - 96 - ( + 25 ) * + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) / Int64\(5\) \+ Int64\(92\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 1 / + + 5 + + 92 AS col2, 27 AS col2 +---- +27 +92 query II rowsort label-6762 SELECT ALL - - COUNT ( * ) - - - ( - COUNT ( * ) ), 84 AS col1 @@ -35520,8 +35926,11 @@ SELECT COUNT ( * ) / + - 61 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 529200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) / Int64\(71\) AS col2" at position 0 and "Int64\(49\) \* Int64\(15\) \* Int64\(36\) \* Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 17 / + 71 AS col2, 49 * + 15 * + + 36 * + 20 AS col2 +---- +0 +529200 query I rowsort label-6772 SELECT CAST ( NULL AS INTEGER ) / - 27 * 55 + + 37 * - MIN ( ALL + CAST ( NULL AS INTEGER ) ) * - - 26 + + + 42 @@ -35676,8 +36085,11 @@ 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\(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\. +query II valuesort SELECT MIN ( - - 62 ) * + - COUNT ( * ) AS col2, + 45 * + + 44 col2 +---- +-62 +1980 query I rowsort label-6802 SELECT ALL 49 + - 72 + COUNT ( * ) AS col2 @@ -35912,8 +36324,11 @@ SELECT DISTINCT 23 * - NULLIF ( + 69, 24 + + ( - - 23 ) + 43 + 59 * + MAX ( + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - -129 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) / Int64\(\-79\) \* Int64\(\-68\) / Int64\(\-8\) \+ \(\- Int64\(\-42\)\) AS col1" at position 0 and "Int64\(\-33\) \- Int64\(97\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 67 / - 79 * + - 68 / - 8 + - ( - 42 ) AS col1, - 33 - + + 97 + + COUNT ( * ) AS col1 +---- +-129 +42 query I rowsort SELECT + + 99 col0 @@ -35960,8 +36375,11 @@ 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 col0" at position 0 and "\(\- Int64\(3\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 AS col0, - ( + 3 ) AS col0 +---- +-3 +70 query I rowsort label-6856 SELECT + 91 * - MAX ( DISTINCT + 35 ) + - - 41 * + - CAST ( NULL AS INTEGER ) @@ -36316,8 +36734,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(34\)\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 34 AS col2, 53 AS col2 +---- +-34 +53 query I rowsort label-6924 SELECT DISTINCT - - ( 47 ) + + 15 + COUNT ( * ) AS col0 @@ -36348,8 +36769,11 @@ 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\(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\. +query II valuesort 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 +---- +82100480 +NULL query I rowsort SELECT ( + 45 ) + 65 AS col2 @@ -37173,14 +37597,20 @@ SELECT - - SUM ( DISTINCT 80 ) * - - COUNT ( * ) AS col2, CASE - + COUNT ( * ) W # Datafusion - Datafusion expected results: # Datafusion - Expected - 317 # Datafusion - Expected - -696 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-88\)\) \* Int64\(3\) \+ Int64\(53\) AS col2" at position 0 and "Int64\(29\) \* Int64\(\-24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 88 * + 3 + 53 AS col2, 29 * - 24 AS col2 +---- +-696 +317 # 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 col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 71 AS col2, + 81 AS col2 +---- +71 +81 query I rowsort SELECT DISTINCT + + 20 * - + 45 @@ -37200,8 +37630,11 @@ SELECT ALL + - 70 + - + 53 + + - MAX ( + + ( 12 ) ) AS col0 # 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 "Int64\(28\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 AS col1, 36 AS col1 +---- +28 +36 query II rowsort SELECT ALL - 38 col2, - 97 @@ -37611,8 +38044,11 @@ SELECT + NULLIF ( - + 45, 46 * 83 ) / 80 + SUM ( ALL + 82 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 67 col1, 36 AS col1 +---- +36 +67 query I rowsort label-7169 SELECT 8 + - - ( - + CASE - 22 WHEN - 5 THEN NULL ELSE - ( - + 46 ) END ) * - 17 * - - ( - SUM ( 16 ) ) * + + 98 + 72 + - + 23 + - NULLIF ( - COUNT ( * ), - + 75 + + COUNT ( * ) ) * + 61 * - + 60 col2 @@ -37788,8 +38224,11 @@ SELECT ALL 64 + + - COUNT ( * ) * + + 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 392 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* Int64\(14\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 28 * 14 AS col1, + 65 AS col1 +---- +392 +65 query I rowsort label-7203 SELECT - - 22 + - CASE + + COUNT ( * ) WHEN + + CAST ( COUNT ( * ) AS INTEGER ) THEN + + 20 END @@ -38020,8 +38459,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 7680 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(96\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 * + 96 AS col2, + 95 AS col2 +---- +7680 +95 query I rowsort label-7247 SELECT ALL - COALESCE ( - 7, CASE + 94 WHEN + 97 THEN NULL ELSE 21 / - - 37 END, COUNT ( * ), 12 * COUNT ( * ) + ( - 18 ) + - COUNT ( * ) * - COUNT ( * ) / - COUNT ( * ) + - COUNT ( * ) / + 45 * - + COUNT ( * ) ) AS col1 @@ -38066,8 +38508,11 @@ SELECT 60 / + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \+ Int64\(63\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-72\) \* CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- CAST\(Int64\(\-55\) AS Int32\)\) / \(\- CAST\(Int64\(24\) AS Int32\)\) THEN Int64\(52\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(1\) ELSE NULL END \* \(\- Int64\(\-41\)\) \- Int64\(\-24\) \* CAST\(Int64\(\-96\) AS Int32\) AS col0" at position 0 and "Int64\(\-35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-35 +NULL query I rowsort label-7256 SELECT 76 + COUNT ( * ) / + ( 71 ) @@ -38373,8 +38818,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( + + NULLIF ( + 90, 82 ) ) col1, - COUNT ( * ) AS col1 +---- +-1 +90 query I rowsort label-7315 SELECT ALL 86 * 37 / + - COUNT ( * ) + SUM ( - 76 ) col0 @@ -38622,8 +39070,11 @@ SELECT + 93 + + - 57 AS col1, 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -6090 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) / \(\- Int64\(\-74\)\) AS col1" at position 0 and "Int64\(\-87\) \* \(\- \(\- Int64\(70\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 52 / - - 74 AS col1, - 87 * - - ( 70 ) col1 +---- +-6090 +0 query II rowsort label-7362 SELECT NULLIF ( - 45, + 25 ) AS col0, MIN ( - + 46 ) - - - 8 @@ -38826,8 +39277,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 97 AS col2, + COUNT ( * ) / - 2 AS col2 +---- +0 +97 query I rowsort SELECT DISTINCT + 12 * - + 11 * + 54 * ( + 54 ) @@ -39157,8 +39611,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COALESCE ( COUNT ( * ), + 19 ) col1, - 44 AS col1 +---- +-44 +1 query I rowsort label-7463 SELECT DISTINCT - 49 / CASE + 62 WHEN + AVG ( DISTINCT 74 ) THEN SUM ( + + 78 ) WHEN 72 THEN NULL WHEN - 46 * - - 40 + + 16 + + + 83 + + - 13 THEN - 23 END + + 24 @@ -39264,8 +39721,11 @@ SELECT ALL CAST ( 32 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "max\(Int64\(\-7\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, MAX ( ALL + - 7 ) col1 +---- +-7 +1 query I rowsort label-7483 SELECT ALL CASE 45 WHEN COALESCE ( 30, + 21 ) * - 79 - + - COALESCE ( ( - 15 ), + + 22 ) / + 64 * + 41 - - 62 THEN - + 2 ELSE COUNT ( * ) * + + 61 END @@ -39295,8 +39755,11 @@ SELECT DISTINCT - 12 * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col1" at position 0 and "Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 75 AS col1, 89 AS col1 +---- +-75 +89 query I rowsort SELECT - 48 * - 48 @@ -39355,8 +39818,11 @@ SELECT ALL 82 * - COUNT ( * ) AS col0, 19 * + 23 AS col2, 19 * + 49 * - COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "Int64\(\-35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 AS col0, - 35 AS col0 +---- +-35 +51 query I rowsort label-7500 SELECT ALL + ( - MIN ( DISTINCT - 69 ) ) + + NULLIF ( + + CASE + 54 WHEN - 85 - + 15 + - + ( + COUNT ( * ) ) + + 70 THEN NULL ELSE - COUNT ( * ) END, - 98 ) + + COALESCE ( - - 3, 69 ) * - + 11 @@ -39414,8 +39880,11 @@ SELECT + 51 AS col0, - 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(DISTINCT Int64\(61\)\)\) \- \(\- Int64\(16\)\) AS col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - COUNT ( DISTINCT + 61 ) ) - - + 16 AS col2, 9 AS col2 +---- +15 +9 query I rowsort label-7511 SELECT ALL - - COUNT ( + 41 ) * - - COUNT ( * ) * 2 @@ -39498,8 +39967,11 @@ SELECT + 68 * + CASE - - 96 WHEN 70 + - - 26 - 47 / - 67 THEN - - 74 WHEN - 61 T # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(52\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(73\)\)\) AS col0" at position 0 and "avg\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT - + COALESCE ( 52, - - COUNT ( * ) * + 73 ) AS col0, + AVG ( - CAST ( NULL AS INTEGER ) ) col0 +---- +-52 +NULL query I rowsort label-7526 SELECT ( + 91 ) * - + COUNT ( * ) AS col0 @@ -39680,8 +40152,11 @@ SELECT DISTINCT - CASE + COUNT ( * ) WHEN - - 87 THEN NULL WHEN + 84 THEN + - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ Int64\(\-85\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 + - 85 AS col0, + ( 96 ) AS col0 +---- +-16 +96 query I rowsort SELECT 79 * + 45 @@ -39783,8 +40258,11 @@ SELECT ALL + 2, + ( - 87 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 112 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "Int64\(88\) \+ nullif\(Int64\(24\), \(\- max\(Int64\(\-19\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 18 AS col1, 88 + + NULLIF ( + 24, + - MAX ( ALL - 19 ) ) col1 +---- +112 +18 query I rowsort label-7580 SELECT COUNT ( + 35 ) / - 72 + 46 @@ -39935,8 +40413,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 5 + - + 18 AS col2, + 19 * ( + - COUNT ( * ) ) AS col2 +---- +-13 +-19 query I rowsort label-7609 SELECT ALL MAX ( DISTINCT + 24 ) AS col2 @@ -40133,8 +40614,11 @@ 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\(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\. +query II valuesort SELECT ALL MIN ( ALL 73 ) + + - 50 - + MAX ( + 3 ) + 68 * 61 * - COUNT ( * ) * - + 86 * + - 54 AS col2, + 32 AS col2 +---- +-19263292 +32 query I rowsort SELECT ALL 21 col0 @@ -40203,14 +40687,20 @@ SELECT 49 / + 55 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col1" at position 0 and "Int64\(53\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 AS col1, + 53 - + + COUNT ( * ) AS col1 +---- +52 +77 # 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\(1\)\) AS count\(\*\)\) \* Int64\(32\) / Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 80 AS col2, - COUNT ( * ) * + 32 / + 57 AS col2 +---- +0 +80 query I rowsort label-7660 SELECT ALL CAST ( NULL AS INTEGER ) - 35 AS col2 @@ -40302,8 +40792,11 @@ 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\(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\. +query II valuesort SELECT - 54 AS col1, COALESCE ( + COUNT ( ALL - 23 ), - 31 * - COUNT ( * ) + - 41 * 5 * + 36 * - + 46 ) AS col1 +---- +-54 +1 query I rowsort SELECT - 76 * + 39 AS col1 @@ -40607,8 +41100,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(22\), Int64\(20\)\) AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + COALESCE ( + + 22, 20 ) ) col2, 44 AS col2 +---- +22 +44 query I rowsort SELECT ALL 58 * + 48 @@ -42353,8 +42849,11 @@ SELECT MAX ( - + 25 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 63 AS col1, - 16 AS col1 +---- +-16 +63 query I rowsort SELECT - 50 * - 5 - - 49 + 81 AS col2 @@ -43222,8 +43721,11 @@ SELECT - 82 * + 12 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 263494 # Datafusion - Expected - 3656 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) \* Int64\(\-77\) \* Int64\(59\) AS col1" at position 0 and "Int64\(91\) \* nullif\(Int64\(41\), Int64\(\-86\) \- Int64\(\-3\)\) \+ Int64\(\-75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 * - 77 * 59 AS col1, 91 * + NULLIF ( + + 41, + - 86 - - 3 ) + - 75 AS col1 +---- +263494 +3656 query I rowsort label-8241 SELECT ALL ( - CASE + + 60 WHEN COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN - COUNT ( * ) ELSE NULL END ) @@ -43241,8 +43743,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) col1, + 34 AS col1 +---- +34 +NULL query II rowsort label-8244 SELECT + COALESCE ( + 85, 14 * - COUNT ( * ) ) * - 28 * 53 AS col1, COALESCE ( + MIN ( DISTINCT 12 ), - MAX ( 97 ) ) * CAST ( NULL AS INTEGER ) AS col0 @@ -43512,8 +44017,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \- Int64\(71\) AS col2" at position 0 and "Int64\(57\) \* Int64\(\-77\) / \(\- Int64\(10\)\) \+ Int64\(\-98\) \* min\(Int64\(\-53\)\) \* Int64\(\-89\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(88\) / CASE Int64\(33\) WHEN \(\- CASE nullif\(Int64\(33\), \(\- coalesce\(Int64\(90\), \(\- CASE Int64\(21\) WHEN Int64\(\-53\) THEN Int64\(34\) END\) \+ count\(Int64\(52\)\)\)\)\) WHEN Int64\(12\) \* Int64\(59\) THEN Int64\(\-81\) \+ \(\- \(\- avg\(DISTINCT Int64\(24\)\)\) \+ CAST\(Int64\(\-63\) AS Float64\)\) / Int64\(\-64\) END\) \- avg\(DISTINCT Int64\(59\)\) THEN Int64\(33\) \+ Int64\(\-58\) \* Int64\(\-98\) WHEN Int64\(\-46\) THEN Int64\(\-9\) WHEN Int64\(\-77\) \+ CAST\(Int64\(\-64\) AS Int32\) THEN NULL ELSE NULL END \- Int64\(6\) \* Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-97 +NULL query I rowsort SELECT + - 73 AS col1 @@ -44003,8 +44511,11 @@ SELECT - - MIN ( ALL + - 73 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3744 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* Int64\(78\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 * + 78 col0, COUNT ( * ) AS col0 +---- +1 +3744 query I rowsort label-8391 SELECT + 79 + COUNT ( * ) - + - 6 * + + 37 AS col1 @@ -45589,8 +46100,11 @@ SELECT ALL 53 * 80 / + COUNT ( * ) - - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "\(\- min\(DISTINCT \(\- Int64\(56\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 16 col2, - MIN ( DISTINCT - ( 56 ) ) AS col2 +---- +16 +56 query I rowsort label-8692 SELECT ALL - - 9 * - 12 + 78 * + ( 16 ) - + + 56 * COUNT ( * ) @@ -45703,8 +46217,11 @@ 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\(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\. +query II valuesort 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 +---- +79 +NULL query II rowsort label-8713 SELECT - CAST ( + COUNT ( * ) AS INTEGER ), 64 AS col2 @@ -46385,8 +46902,12 @@ SELECT ALL + - SUM ( DISTINCT - - 13 ), 47 AS col0 # Datafusion - Expected - 1 # Datafusion - Expected - 51 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 1 and "coalesce\(Int64\(1\), Int64\(0\) \+ \(\- Int64\(4\)\), \(\- max\(\(\- CAST\(Int64\(73\) AS Int32\)\)\)\)\) \- \(\- Int64\(14\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + COUNT ( * ) AS col1, 51 AS col0, ( COALESCE ( + 1, 0 + - + 4, - MAX ( - CAST ( 73 AS INTEGER ) ) ) ) - - + 14 AS col0 +---- +1 +15 +51 query I rowsort label-8844 SELECT DISTINCT + - CASE + MIN ( + ( + 74 ) ) WHEN - - COUNT ( * ) THEN NULL ELSE + + 28 END @@ -46800,8 +47321,11 @@ SELECT ALL - 51 + - 26 * + COUNT ( * ) + 21 AS col1 # 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 "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 1 AS col2, 12 col2 +---- +1 +12 query I rowsort SELECT + - 63 AS col1 @@ -47221,8 +47745,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "Int64\(\-91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 AS col2, - 91 AS col2 +---- +-91 +95 query II rowsort label-9002 SELECT - 48, - COUNT ( * ) + 6 AS col2 @@ -47365,8 +47892,11 @@ SELECT - 66 * 44 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col0" at position 0 and "Int64\(\-68\) \+ Int64\(84\) \+ Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 36 AS col0, - 68 + 84 + + 5 AS col0 +---- +-36 +21 query I rowsort label-9029 SELECT 56 + - 36 * + 90 + - - COUNT ( * ) col0 @@ -47485,8 +48015,11 @@ SELECT 77 * + 62, + 69 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 121 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ Int64\(60\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 61 + + 60 col1, 72 AS col1 +---- +121 +72 query I rowsort label-9052 SELECT - MAX ( - 77 ) AS col1 @@ -47785,8 +48318,11 @@ SELECT DISTINCT 14 * - + 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col0" at position 0 and "\(\- nullif\(Int64\(\-71\), Int64\(81\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 44 AS col0, - NULLIF ( + ( - 71 ), + + 81 ) AS col0 +---- +44 +71 query II rowsort SELECT ALL + - 54, ( - 88 ) AS col1 @@ -48327,8 +48863,11 @@ SELECT - 23, + COUNT ( * ) 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 "Int64\(73\) AS col1" at position 0 and "Int64\(95\) \+ \(\- CASE Int64\(\-80\) WHEN Int64\(13\) \+ Int64\(31\) \+ Int64\(60\) \* \(\- Int64\(25\)\) THEN Int64\(23\) \+ Int64\(60\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 73 col1, + 95 + - + CASE + - 80 WHEN + + ( + 13 ) + + 31 + 60 * - + 25 THEN 23 + + 60 ELSE NULL END AS col1 +---- +73 +NULL query I rowsort SELECT - + 76 + + 95 @@ -48370,8 +48909,11 @@ SELECT + 34 * + ( 44 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(95\)\) AS col1" at position 0 and "Int64\(\-24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( 95 ) AS col1, - 24 AS col1 +---- +-24 +1 query I rowsort label-9220 SELECT DISTINCT + NULLIF ( - COUNT ( * ), + 16 ) @@ -48449,8 +48991,11 @@ SELECT ALL + + 91 col2 # 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 "count\(DISTINCT \(\- Int64\(\-1\)\)\) AS col1" at position 0 and "Int64\(45\) \* Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( DISTINCT - - 1 ) AS col1, + 45 * + 6 col1 +---- +1 +270 query I rowsort label-9235 SELECT - - COUNT ( DISTINCT + - 52 ) + + 51 AS col1 @@ -48771,8 +49316,11 @@ SELECT 21 + - COUNT ( * ) + - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18850 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(\-29\) \* Int64\(26\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 * + - 29 * ( + + 26 ) AS col2, - 0 AS col2 +---- +-18850 +0 query I rowsort label-9296 SELECT - 50 * COUNT ( * ) + + - ( - 9 ) + + 21 + - ( + - 42 ) * + COUNT ( * ) AS col1 @@ -48968,8 +49516,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 117452 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \* nullif\(\(\- \(\- CAST\(\(\- Int64\(89\)\) AS Int32\)\)\), \(\- \(\- Int64\(97\)\)\)\) \* Int64\(\-20\) \+ Int64\(\-49\) \+ Int64\(48\) \+ Int64\(\-27\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 66 * + NULLIF ( - - CAST ( - + ( 89 ) AS INTEGER ), - ( - + 97 ) ) * + - 20 + - 49 + 48 + - 27 col0, 67 AS col0 +---- +117452 +67 query I rowsort label-9334 SELECT DISTINCT CAST ( NULL AS INTEGER ) / - + COUNT ( * ) * + 52 col0 @@ -49173,8 +49724,11 @@ SELECT + 45 * 56 + - 6 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1750 # Datafusion - Expected - 2475 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* Int64\(50\) AS col0" at position 0 and "Int64\(25\) \* Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 * 50 AS col0, 25 * + 99 AS col0 +---- +1750 +2475 query I rowsort SELECT ALL + 52 + - 92 @@ -49418,8 +49972,11 @@ SELECT ALL - 1 + - 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 60 AS col0, 48 AS col0 +---- +-60 +48 query II rowsort SELECT ALL + 35 AS col1, 51 @@ -50283,8 +50840,11 @@ SELECT - 99 * 89 / 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "Int64\(\-39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 94 AS col2, - 39 AS col2 +---- +-39 +94 query I rowsort SELECT ALL + + ( - - 1 ) @@ -50331,8 +50891,11 @@ SELECT + MAX ( ALL 67 ) + + + 70 AS col2, 41 + + 7 + + 51 + - 49 * - 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 AS col2, + 82 col2 +---- +82 +92 query I rowsort SELECT - 37 * - 50 @@ -51942,8 +52505,11 @@ SELECT ALL 10 + - 21 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1392 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \* Int64\(58\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 24 * 58 AS col1, 7 AS col1 +---- +-1392 +7 query I rowsort label-9905 SELECT + COUNT ( * ) * + 50 * + ( - 82 ) + + 6 + + 10 @@ -52215,8 +52781,11 @@ SELECT 64 * + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - -107 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col1" at position 0 and "Int64\(\-44\) \- Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 2 AS col1, - 44 - 63 AS col1 +---- +-107 +-2 query II rowsort label-9957 SELECT ALL - 73 AS col1, ( - CAST ( - - NULLIF ( + - 99, - 10 * - CAST ( NULL AS FLOAT8 ) ) AS INTEGER ) ) + + COUNT ( * ) @@ -52300,8 +52869,11 @@ SELECT - 88, - 60 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 99 AS col0, 29 AS col0 +---- +29 +99 query I rowsort SELECT ALL - 31 * - 19 col2 @@ -52354,8 +52926,11 @@ SELECT - + COUNT ( * ) AS col2, + 78 + + 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) / \(\- Int64\(80\)\) \+ Int64\(56\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 4 / - + 80 + + 56 AS col2, COUNT ( * ) AS col2 +---- +1 +56 query I rowsort SELECT DISTINCT COALESCE ( + COALESCE ( + 18, 16 ), 74 * + 57 * - 61 * - - 34 ) * - 23 * 58 diff --git a/data/sqlite/random/expr/slt_good_45.slt b/data/sqlite/random/expr/slt_good_45.slt index a920d7d..f1c28ff 100644 --- a/data/sqlite/random/expr/slt_good_45.slt +++ b/data/sqlite/random/expr/slt_good_45.slt @@ -298,8 +298,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) / Int64\(96\) AS col2" at position 0 and "CAST\(Int64\(\-39\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - CAST ( NULL AS FLOAT8 ) / + 96 AS col2, + CAST ( - 39 AS INTEGER ) AS col2 +---- +-39 +NULL query I rowsort SELECT 12 * 45 col1 @@ -357,8 +360,12 @@ SELECT COUNT ( + 45 ) - + + 99 + 42 # Datafusion - Expected - 1 # Datafusion - Expected - NULL # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) \* Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT COUNT ( * ) AS col1, + COUNT ( * ) * CAST ( NULL AS INTEGER ) * - 82 col1, - 77 AS col2 +---- +-77 +1 +NULL query I rowsort SELECT 1 * - 68 @@ -810,8 +817,11 @@ SELECT + 77 col0, 24 * + 23 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 41 AS col1, + 92 AS col1 +---- +41 +92 query I rowsort label-146 SELECT ALL 29 * - + 18 * + 69 + - COUNT ( ALL - 49 ) - 10 - + 28 AS col1 @@ -1014,8 +1024,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 246 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "Int64\(14\) \- Int64\(\-95\) \- Int64\(\-46\) \+ \(\- coalesce\(Int64\(\-91\), Int64\(\-18\) / \(\- \(\- count\(\(\- \(\- coalesce\(Int64\(\-42\), Int64\(75\)\)\)\)\)\)\) \* Int64\(\-2\) \+ \(\- Int64\(\-5\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 AS col1, 14 - + - 95 - + - 46 + - COALESCE ( - 91, - 18 / - - COUNT ( - - COALESCE ( - 42, 75 ) ) * - 2 + - - 5 ) AS col1 +---- +246 +8 query I rowsort SELECT ( ( + 81 ) ) * - 21 @@ -1086,8 +1099,11 @@ SELECT 72 - COALESCE ( + + COUNT ( 42 ), - 96, + 5 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col0" at position 0 and "Int64\(90\) \+ Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 36 AS col0, ( 90 ) + - 45 AS col0 +---- +36 +45 query I rowsort SELECT - 41 - + - 4 @@ -1986,8 +2002,11 @@ SELECT - - 61 * - 62 + - COALESCE ( ( - 43 ), + 62 + 55 + ( 3 ) ) + - 40 * + + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "Int64\(\-18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 38 AS col0, - 18 AS col0 +---- +-18 +38 query I rowsort label-373 SELECT ALL + COALESCE ( - 97, - 10 ) * + COUNT ( * ) * COUNT ( * ) + + 13 AS col2 @@ -2096,8 +2115,11 @@ SELECT + 25 + 4 + - + CASE - + ( + COUNT ( * ) ) WHEN - 30 THEN - 59 * - + 57 + # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) / Int64\(\-56\) \* Int64\(\-46\) \+ Int64\(13\) AS col0" at position 0 and "Int64\(6\) \+ \(\- Int64\(66\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 42 / - 56 * + - 46 + 13 AS col0, 6 + - + 66 AS col0 +---- +-60 +13 query I rowsort label-394 SELECT ALL + 18 / + - 67 - - 93 + + 94 * - 1 @@ -2162,8 +2184,11 @@ SELECT + 62 + + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(36\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(\(\- min\(\(\- Int64\(5\)\)\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 36 AS col0, + COUNT ( * ) + + CAST ( - MIN ( - + 5 ) AS INTEGER ) AS col0 +---- +-36 +6 query I rowsort label-406 SELECT CAST ( NULL AS INTEGER ) + 25 + - 12 @@ -2193,8 +2218,11 @@ SELECT DISTINCT + 38 + + MIN ( ALL + 60 ) / 36 AS col0, COUNT ( * ) - - 91 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 27 col0, COUNT ( * ) col0 +---- +1 +27 query I rowsort SELECT ALL + 16 + + - 94 AS col1 @@ -2297,8 +2325,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) / + 55 AS col2, ( - 91 ) + - 82 + ( + 31 ) AS col2 +---- +-142 +0 query I rowsort label-431 SELECT ALL + 61 + - - 15 / - + MIN ( ALL + ( - - 47 ) ) * + 62 @@ -2485,8 +2516,11 @@ SELECT + 47 * - 95 * NULLIF ( - - 39, - COUNT ( * ) ) + + + COUNT ( * ) AS col1, # 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 "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 II valuesort SELECT + 10 AS col1, - 0 AS col1 +---- +0 +10 query II rowsort label-467 SELECT + - 72 AS col2, + 74 + - ( COUNT ( * ) ) * - - COUNT ( ( + 79 ) ) + + 54 @@ -2957,8 +2991,11 @@ SELECT ALL - 42 * - 55 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 55 AS col1, CAST ( NULL AS INTEGER ) AS col1 +---- +-55 +NULL query II rowsort label-557 SELECT + CAST ( 94 AS INTEGER ) / - + 3 - - - 38 col0, 51 + + COUNT ( ALL - + 37 ) AS col1 @@ -3500,8 +3537,11 @@ SELECT DISTINCT - 30, + COALESCE ( + + COALESCE ( + 68, - 67, + 76 ), + 19 ) * ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 74 AS col2, - 63 AS col2 +---- +-63 +74 query I rowsort label-659 SELECT DISTINCT + 41 + - COUNT ( * ) @@ -4057,8 +4097,12 @@ NULL # Datafusion - Expected - 54 # Datafusion - Expected - 15 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 54 col1, + 15 AS col1, 74 +---- +15 +54 +74 query I rowsort SELECT DISTINCT - - 54 * - 60 + + 45 AS col0 @@ -4279,8 +4323,11 @@ SELECT 64 * - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col0" at position 0 and "Int64\(11\) \- \(\- \(\- CAST\(\(\- Int64\(35\)\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 AS col0, 11 - - - CAST ( - + 35 AS INTEGER ) AS col0 +---- +46 +93 query I rowsort SELECT 54 * 99 @@ -4422,8 +4469,11 @@ SELECT NULLIF ( - NULLIF ( + - ( - CAST ( COUNT ( * ) AS INTEGER ) ), - + 40 * - # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -148 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "Int64\(\-12\) \* Int64\(18\) \+ Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 41 AS col1, - 12 * + 18 + 68 AS col1 +---- +-148 +41 query II rowsort label-831 SELECT DISTINCT - - COUNT ( * ) AS col0, 87 AS col1 @@ -4531,8 +4581,11 @@ SELECT ALL - MAX ( + 93 ) * 58 + - - SUM ( DISTINCT - 46 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(44\)\) / Int64\(\-9\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 44 / - 9 col0, - CAST ( NULL AS INTEGER ) AS col0 +---- +4 +NULL query I rowsort label-852 SELECT - + CAST ( NULL AS INTEGER ) + - - 78 @@ -4656,8 +4709,11 @@ SELECT ALL 60 * - 96 + - 24 + + 64 * + + 9 + 98 + 34 / 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8024 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* CAST\(Int64\(\-94\) AS Int32\) \+ Int64\(\-35\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(11\) \+ \(\- Int64\(38\)\)\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 85 * + CAST ( - 94 AS INTEGER ) + + - 35 + NULLIF ( + + COUNT ( * ), 11 + - + 38 ) AS col1, + 34 AS col1 +---- +-8024 +34 query I rowsort label-875 SELECT SUM ( DISTINCT 94 ) AS col1 @@ -4921,8 +4977,11 @@ SELECT COUNT ( * ) + 71 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 AS col2, 46 AS col2 +---- +35 +46 query II rowsort SELECT ALL 0 AS col0, 17 AS col2 @@ -5435,8 +5494,11 @@ SELECT ALL + 48 * + 58 + + 69 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -4453 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \- Int64\(19\) AS col2" at position 0 and "Int64\(61\) \* Int64\(\-73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 65 - + + 19 AS col2, 61 * - 73 AS col2 +---- +-4453 +46 query I rowsort SELECT + + 0 AS col2 @@ -5645,8 +5707,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, - 21 AS col2 +---- +-1 +-21 query I rowsort label-1063 SELECT DISTINCT 9 * - 78 / + - 3 @@ -5672,8 +5737,11 @@ SELECT MIN ( DISTINCT + COALESCE ( + 79, - 32, 95, - 86 * + CAST ( NULL AS INTEG # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col0" at position 0 and "Int64\(74\) \* CAST\(NULL AS Int32\) \* Int64\(21\) \* Int64\(\-48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 62 col0, + 74 * CAST ( NULL AS INTEGER ) * + 21 * + - 48 AS col0 +---- +-62 +NULL query II rowsort SELECT 88 - 99 AS col1, 60 AS col0 @@ -6135,8 +6203,11 @@ SELECT ( + 11 ) * 78 + + ( 78 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1014 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(78\), Int64\(25\) \* Int64\(87\) \- Int64\(\-99\)\)\) \* Int64\(13\) AS col0" at position 0 and "Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - NULLIF ( 78, + + 25 * + 87 - - 99 ) * 13 AS col0, + ( 20 ) AS col0 +---- +-1014 +20 query I rowsort label-1154 SELECT 18 * CAST ( 81 AS INTEGER ) @@ -7351,8 +7422,11 @@ SELECT + COUNT ( * ) / - 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -1207 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "\(\- \(\- Int64\(53\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- min\(Int64\(12\)\) \+ CAST\(\(\- Int64\(72\)\) AS Int32\) \+ Int64\(12\) \* Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 96 AS col2, - ( - + 53 ) * + + COUNT ( * ) - + MIN ( + 12 ) + CAST ( - + 72 AS INTEGER ) + + 12 * - 98 AS col2 +---- +-1207 +96 query I rowsort label-1383 SELECT DISTINCT + CAST ( - 37 AS INTEGER ) AS col2 @@ -8170,8 +8244,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 330 # Datafusion - Expected - 165 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \* Int64\(15\) AS col0" at position 0 and "Int64\(26\) \- Int64\(\-88\) \+ Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 22 * 15 AS col0, 26 - - 88 + 51 AS col0 +---- +165 +330 query I rowsort SELECT + 48 - 46 AS col0 @@ -8377,8 +8454,11 @@ SELECT DISTINCT + 91 * - 27 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 22 AS col0, 85 AS col0 +---- +22 +85 query I rowsort label-1586 SELECT 95 * - COUNT ( * ) * - 51 AS col0 @@ -8645,8 +8725,11 @@ SELECT + 14 * - 68 * + 60 * - 69 + + 87 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 76 AS col1, ( + 40 ) AS col1 +---- +40 +76 query I rowsort SELECT 91 * + - 31 * + 36 @@ -9028,8 +9111,11 @@ SELECT DISTINCT + 92 + + + 14 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col1" at position 0 and "Int64\(\-4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 AS col1, + ( - 4 ) col1 +---- +-4 +-48 query I rowsort label-1713 SELECT - COUNT ( - - CAST ( NULL AS INTEGER ) ) AS col2 @@ -9477,8 +9563,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col0" at position 0 and "Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 93 AS col0, 76 AS col0 +---- +76 +93 query I rowsort label-1800 SELECT DISTINCT - 85 / 42 @@ -9679,8 +9768,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -1879 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- CASE Int64\(19\) WHEN Int64\(\-11\) THEN Int64\(\-19\) WHEN Int64\(84\) THEN Int64\(4\) ELSE Int64\(\-27\) \* CAST\(Int64\(\-89\) AS Int32\) \+ Int64\(9\) \* Int64\(\-59\) END\) \- \(\- nullif\(Int64\(\-7\), Int64\(\-90\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-1879 +44 query I rowsort SELECT ALL - 29 - 51 AS col0 @@ -10264,8 +10356,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1058 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) \+ Int64\(6\) \+ Int64\(15\) \+ Int64\(34\) \* Int64\(\-30\) AS col0" at position 0 and "Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 59 + + 6 + + 15 + + 34 * + - 30 AS col0, - 19 AS col0 +---- +-1058 +-19 query II rowsort SELECT ALL + 0 * ( - + 48 ) AS col0, - 42 + 35 @@ -10355,8 +10450,11 @@ SELECT - 26 AS col2, COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col0" at position 0 and "coalesce\(Int64\(7\), Int64\(40\) \* Int64\(33\) \+ Int64\(\-12\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 28 AS col0, + COALESCE ( 7, + 40 * 33 + - 12 ) AS col0 +---- +-28 +7 query I rowsort label-1962 SELECT 90 + CASE + COUNT ( * ) WHEN + 18 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END AS col1 @@ -10695,8 +10793,11 @@ SELECT DISTINCT 48 * - + MIN ( ALL + 92 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1578 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* \(\- Int64\(51\)\) \- Int64\(99\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 * - + 51 - 99 AS col1, COUNT ( * ) AS col1 +---- +-1578 +1 query I rowsort label-2024 SELECT MIN ( ALL 70 ) AS col0 @@ -10834,8 +10935,11 @@ SELECT DISTINCT - CAST ( + COALESCE ( - 98, 44 / - CAST ( NULL AS INTEGER ) * - # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 2477 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "Int64\(93\) \* Int64\(26\) \+ Int64\(\-38\) \+ Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + + 59 ) AS col0, ( 93 ) * + 26 + - 38 + 97 AS col0 +---- +2477 +59 query I rowsort label-2051 SELECT DISTINCT + CAST ( + - 6 AS INTEGER ) AS col1 @@ -11120,8 +11224,11 @@ SELECT 26 + + - 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 13 AS col2, 88 AS col2 +---- +13 +88 query I rowsort label-2106 SELECT - COALESCE ( 39, - CAST ( COUNT ( * ) AS INTEGER ) ) AS col2 @@ -11196,8 +11303,11 @@ SELECT DISTINCT COUNT ( * ) * - 29 * - - COALESCE ( - + 62, - 71, - 55 / - 78 ) # 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\(3\) / Int64\(\-17\) AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 / + - 17 AS col1, + 86 AS col1 +---- +0 +86 query I rowsort SELECT ALL 94 + + - 9 * + 71 @@ -11232,8 +11342,11 @@ SELECT MIN ( ALL + ( + - 6 ) ) + 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 33 col1, - 47 col1 +---- +-47 +33 query I rowsort SELECT + - COALESCE ( + 87, - 60 * 63 + + 11 * + 82 + + - 98 ) @@ -11479,8 +11592,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * + 44 * + + SUM ( ALL + 39 ) + 53 - - 84 - + SUM ( + 23 ) col0, - 15 AS col0 +---- +-15 +-1602 query I rowsort label-2173 SELECT + CAST ( NULL AS INTEGER ) + - - 56 + + 35 AS col1 @@ -11708,8 +11824,11 @@ SELECT + ( - ( 33 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1054 # Datafusion - Expected - 1811 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \+ Int64\(67\) \* Int64\(15\) AS col0" at position 0 and "Int64\(\-27\) \* Int64\(\-66\) \+ Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 49 + + 67 * 15 col0, - 27 * - 66 + 29 col0 +---- +1054 +1811 query II rowsort SELECT - + 36, 12 AS col1 @@ -11765,8 +11884,11 @@ SELECT 83 + - + 69 + + - 64 + + + 60 * + CASE + 40 WHEN + ( - - 36 ) * 95 THEN N # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \- Int64\(11\) AS col0" at position 0 and "Int64\(32\) \+ \(\- CAST\(\(\- Int64\(\-47\)\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 - + 11 AS col0, + 32 + - CAST ( - + ( + - 47 ) AS INTEGER ) AS col0 +---- +-15 +8 query I rowsort label-2228 SELECT ALL + COUNT ( * ) - 42 + 75 col1 @@ -11978,8 +12100,11 @@ 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\(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\. +query II valuesort SELECT 93 * + CASE - - 46 WHEN + 87 THEN + - COUNT ( * ) END col1, COUNT ( * ) + 20 AS col1 +---- +21 +NULL query I rowsort SELECT 28 + - 87 AS col1 @@ -12195,8 +12320,11 @@ SELECT + 0 + - + 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 15 AS col0, 86 col0 +---- +15 +86 query I rowsort SELECT - 11 + 53 @@ -12222,8 +12350,11 @@ SELECT + MIN ( DISTINCT + 41 ) - + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 72 AS col2, + 5 AS col2 +---- +5 +72 query I rowsort SELECT + 64 + 24 @@ -12288,8 +12419,11 @@ SELECT + 39 * COUNT ( * ) + SUM ( DISTINCT - - 83 ) 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\(50\)\) \* \(\- nullif\(Int64\(40\), \(\- nullif\(Int64\(85\), Int64\(\-42\) \* Int64\(\-36\) \* Int64\(\-99\) \+ sum\(Int64\(\-40\)\) \+ Int64\(80\) \* Int64\(52\) / Int64\(9\)\)\)\)\) \+ \(\- CASE Int64\(\-62\) WHEN \(\- Int64\(\-83\)\) \+ \(\- Int64\(66\)\) THEN NULL WHEN Int64\(22\) THEN \(\- Int64\(54\)\) END\) \+ Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 11 col2, - ( 50 ) * - NULLIF ( + 40, - NULLIF ( + 85, - 42 * - 36 * - 99 + SUM ( - 40 ) + 80 * + 52 / 9 ) ) + - CASE - 62 WHEN - - 83 + + + ( - + 66 ) THEN NULL WHEN + 22 THEN - + 54 END + 85 AS col2 +---- +11 +NULL query I rowsort SELECT - - 90 + - 77 AS col1 @@ -12603,8 +12737,11 @@ SELECT ALL - - 81 + + 73 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 1292 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-15\)\) AS col2" at position 0 and "Int64\(\-68\) \* Int64\(\-19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 15 AS col2, - 68 * - 19 col2 +---- +1292 +15 query I rowsort SELECT + 8 + - - 76 AS col0 @@ -12639,8 +12776,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-25\) \+ Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL CAST ( NULL AS FLOAT8 ) col2, COUNT ( * ) * - 25 + 23 AS col2 +---- +-2 +NULL query I rowsort label-2392 SELECT DISTINCT + - 64 * + + CAST ( 67 AS INTEGER ) * + + 58 + + 11 AS col1 @@ -12662,8 +12802,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col0" at position 0 and "CAST\(NULL AS Float64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + 80 AS col0, CAST ( NULL AS FLOAT8 ) AS col0 +---- +80 +NULL query I rowsort label-2396 SELECT + COUNT ( * ) + + 39 AS col1 @@ -12925,8 +13068,11 @@ SELECT DISTINCT + 60 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, + 19 AS col0 +---- +1 +19 query I rowsort label-2448 SELECT + COALESCE ( 3, - COUNT ( * ) * + 80 - - - 11 ) + + COALESCE ( - - ( + 60 ), - 68 * 51 + + 21 ) @@ -13184,8 +13330,11 @@ SELECT DISTINCT COUNT ( * ) + 77, 1 + + + 66 + ( + - 73 ) * - + 3 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col0" at position 0 and "CAST\(coalesce\(\(\- CASE Int64\(\-10\) WHEN coalesce\(Int64\(37\), Int64\(\-73\) \* \(\- Int64\(34\)\)\) \- Int64\(20\) THEN NULL WHEN \(\- coalesce\(\(\- Int64\(26\)\), \(\- coalesce\(Int64\(11\), count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(\-89\)\)\)\) \* \(\- CAST\(NULL AS Float64\)\) \+ Int64\(22\) THEN NULL WHEN Int64\(\-91\) \* Int64\(42\) \* Int64\(\-72\) \+ Int64\(99\) THEN Int64\(20\) END\), CAST\(NULL AS Int32\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-76 +NULL query I rowsort label-2497 SELECT 93 * - 22 * SUM ( + 59 ) @@ -13408,8 +13557,11 @@ SELECT DISTINCT 47 - - - COUNT ( * ) + - 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 46 AS col1, COUNT ( * ) AS col1 +---- +1 +46 query I rowsort label-2540 SELECT ( + - ( + COUNT ( * ) ) ) @@ -13861,8 +14013,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(\-27\)\) AS col0" at position 0 and "\(\- Int64\(\-62\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + MIN ( DISTINCT - 27 ) ) AS col0, ( - - 62 ) AS col0 +---- +-27 +62 query I rowsort SELECT ALL - + 87 col0 @@ -13987,8 +14142,12 @@ NULL # Datafusion - Expected - -25 # Datafusion - Expected - 21 # Datafusion - Expected - -272 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col0" at position 0 and "coalesce\(Int64\(21\), Int64\(\-47\) \* Int64\(\-91\) \* Int64\(47\) \+ Int64\(76\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 25 AS col0, + COALESCE ( + 21, + - 47 * - 91 * + + 47 + + + 76 ) AS col0, - ( - + 68 ) * - 4 +---- +-25 +-272 +21 query II rowsort SELECT DISTINCT 89, 13 * 39 * + COALESCE ( 87, + 34 ) + + ( - 25 ) + 59 * - 76 AS col1 @@ -14325,8 +14484,11 @@ SELECT NULLIF ( + 47, - CAST ( NULL AS INTEGER ) + - COUNT ( * ) * COALESCE ( CA # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 582 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col1" at position 0 and "CAST\(Int64\(7\) AS Int32\) \* Int64\(83\) \+ Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 86 col1, CAST ( 7 AS INTEGER ) * + 83 + 1 AS col1 +---- +582 +86 query I rowsort SELECT ALL 78 * + 75 + - - 66 + + + 77 @@ -14853,8 +15015,11 @@ SELECT DISTINCT + - ( + 18 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 749 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col1" at position 0 and "Int64\(53\) \+ max\(Int64\(\-58\)\) \* Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 46 AS col1, 53 + MAX ( ALL - 58 ) * - 12 AS col1 +---- +46 +749 query I rowsort SELECT ( + 97 ) @@ -14918,8 +15083,11 @@ SELECT ALL + 61, - 50 + - ( - COUNT ( DISTINCT - - 32 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 64 AS col0, 78 AS col0 +---- +64 +78 query I rowsort label-2826 SELECT ALL + COALESCE ( + 14, - 4, - + 74 - - - COUNT ( * ) + MAX ( 44 ) ) AS col2 @@ -15059,8 +15227,11 @@ SELECT 16 * - 14 AS col2, + 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 139 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \+ Int64\(98\) AS col1" at position 0 and "sum\(Int64\(58\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 41 + + + ( + 98 ) AS col1, + SUM ( 58 ) AS col1 +---- +139 +58 query II rowsort SELECT 6 * 27 AS col1, 8 AS col2 @@ -15224,8 +15395,11 @@ SELECT 25 * + COUNT ( * ) * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 159 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-70\)\)\) \+ Int64\(89\) AS col1" at position 0 and "Int64\(86\) / Int64\(\-15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MIN ( ALL - 70 ) + 89 AS col1, 86 / + - 15 AS col1 +---- +-5 +159 query I rowsort SELECT ALL - 9 + 66 col0 @@ -15328,8 +15502,11 @@ SELECT 62 / - 38 # 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 "\(\- Int64\(77\)\) AS col0" at position 0 and "Int64\(\-40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 77 AS col0, - 40 col0 +---- +-40 +-77 query I rowsort SELECT DISTINCT ( - ( + + 98 ) ) @@ -15625,8 +15802,12 @@ SELECT DISTINCT + 64 * + 71 AS col0 # Datafusion - Expected - 51 # Datafusion - Expected - 25 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ Int64\(\-33\) AS col1" at position 1 and "Int64\(73\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 51 AS col2, 58 + - 33 AS col1, + 73 AS col1 +---- +25 +51 +73 query I rowsort label-2962 SELECT 55 / - ( + 62 ) + 53 + - + COUNT ( * ) * - 2 + + + COUNT ( * ) @@ -15855,8 +16036,11 @@ SELECT ALL 48 * - 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - -111456 # Datafusion - Expected - 139 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(81\)\) \* Int64\(43\) \* Int64\(32\) AS col2" at position 0 and "Int64\(40\) \+ Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + 81 ) * + + 43 * + 32 AS col2, + 40 + + 99 AS col2 +---- +-111456 +139 query I rowsort SELECT DISTINCT - - 72 * 27 - - + 80 @@ -16242,8 +16426,11 @@ SELECT - MIN ( DISTINCT + 63 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 65 AS col1, 19 AS col1 +---- +-65 +19 query I rowsort SELECT ALL + 77 + - 21 @@ -17247,8 +17434,11 @@ SELECT - 69 + + ( - 92 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -105 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \+ \(\- Int64\(35\)\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 70 + - + 35 AS col0, 60 AS col0 +---- +-105 +60 query II rowsort label-3273 SELECT ALL CAST ( NULL AS INTEGER ) * 22 col1, - 28 @@ -17307,8 +17497,11 @@ SELECT + COUNT ( * ) * + + 36 * - 16 + 26 + 93 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 255 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* \(\- Int64\(\-3\)\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 * - - 3 AS col2, 6 AS col2 +---- +255 +6 query I rowsort label-3284 SELECT ALL - CASE 55 WHEN + + MIN ( DISTINCT - 79 ) + 28 THEN - 15 END AS col2 @@ -17440,8 +17633,12 @@ SELECT + COUNT ( * ) * NULLIF ( - ( - 13 ), 45 * ( 75 ) ) # Datafusion - Expected - -86 # Datafusion - Expected - 78 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col0" at position 0 and "min\(\(\- Int64\(\-78\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 86 AS col0, MIN ( ALL - - 78 ) AS col0, + COALESCE ( - 22, - 7, COUNT ( * ) ) AS col0 +---- +-22 +-86 +78 query I rowsort label-3310 SELECT - SUM ( DISTINCT - 15 ) AS col0 @@ -17679,8 +17876,11 @@ SELECT ALL - 0 / + 58 + + - 1 * - + 72 + 79 + - 49 AS col1 # 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\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 7 AS col0, 32 AS col0 +---- +32 +7 query II rowsort label-3356 SELECT - 77 AS col2, + 17 + + COUNT ( * ) + + 9 + COUNT ( * ) / - 17 / ( - 7 ) @@ -18409,8 +18609,11 @@ SELECT - 97 AS col1, NULLIF ( - + CAST ( - COUNT ( * ) AS INTEGER ), - COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(92\), Int64\(\-57\)\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( 92, - 57 ) AS col1, 19 col1 +---- +19 +92 query I rowsort label-3495 SELECT 20 + - ( CAST ( NULL AS INTEGER ) ) @@ -18479,8 +18682,11 @@ SELECT 17 * + 69 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 58 AS col0, 55 AS col0 +---- +-58 +55 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -18510,14 +18716,21 @@ SELECT DISTINCT - NULLIF ( + + 7, - 21 * - 49 * + - 3 ) AS col2 # Datafusion - Expected - 91 # Datafusion - Expected - -75 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col1" at position 1 and "Int64\(\-91\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 91, - 75 AS col1, - 91 AS col1 +---- +-75 +-91 +91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 4866 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(avg\(DISTINCT Int64\(\-90\)\) AS Int32\)\) AS col2" at position 0 and "Int64\(51\) \* Int64\(95\) \- Int64\(\-21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( CAST ( + AVG ( DISTINCT - 90 ) AS INTEGER ) ) AS col2, 51 * + + 95 - - 21 AS col2 +---- +4866 +90 query I rowsort label-3514 SELECT ALL - ( - 67 ) * + + CAST ( NULL AS INTEGER ) + - 54 + + - 85 @@ -18604,8 +18817,11 @@ SELECT ALL + COUNT ( * ) AS col1, - 71 * - + 78 * + 41 + - 95 * - ( + 68 ) + 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3929 # Datafusion - Expected - 3835 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(54\), \(\- Int64\(50\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(72\) \+ Int64\(41\) AS col1" at position 0 and "nullif\(nullif\(CAST\(Int64\(82\) AS Int32\), Int64\(\-46\) \* CASE Int64\(53\) WHEN CAST\(NULL AS Int32\) THEN Int64\(34\) \* CAST\(Int64\(27\) AS Int32\) \+ Int64\(\-10\) ELSE NULL END\), Int64\(33\) / Int64\(\-58\)\) / Int64\(66\) \+ Int64\(54\) \* Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +3835 +3929 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -18882,8 +19098,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ), + COUNT ( * ) +---- +1 +1 query I rowsort SELECT DISTINCT + 48 col1 @@ -19698,8 +19917,11 @@ SELECT + 90 - ( - - SUM ( + 70 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1548 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* Int64\(\-43\) AS col1" at position 0 and "Int64\(64\) \+ Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 36 * - 43 AS col1, 64 + + 25 AS col1 +---- +1548 +89 query II rowsort label-3739 SELECT DISTINCT + NULLIF ( + - 15, + 45 + - 0 ) * + 33 AS col1, + COUNT ( * ) / 98 @@ -19765,8 +19987,11 @@ SELECT DISTINCT - 0 * - 87 # 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 "sum\(DISTINCT Int64\(20\)\) \+ Int64\(\-21\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( DISTINCT 20 ) + - 21 AS col0, 0 AS col0 +---- +-1 +0 query I rowsort label-3752 SELECT 32 / - + 13 AS col1 @@ -19781,8 +20006,11 @@ SELECT ALL 58 + - 70 + 28 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 20 AS col0, 44 col0 +---- +20 +44 query I rowsort label-3755 SELECT ALL + 10 + + + 10 + + - 68 + - 39 - - ( SUM ( ALL + - NULLIF ( 58, 50 ) ) ) / - + 68 - - 85 * COUNT ( * ) col0 @@ -20126,8 +20354,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 56 ) * - 37 + SUM ( + 26 ) AS col1, + 31 * COUNT ( * ) + - 97 AS col1 +---- +-2046 +-66 query I rowsort SELECT DISTINCT + 1 * + 84 + - 48 @@ -20460,14 +20691,21 @@ SELECT + COALESCE ( 73, 29 ) AS col0 # Datafusion - Expected - 1 # Datafusion - Expected - 25 # Datafusion - Expected - -7387 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* Int64\(\-37\) \- max\(Int64\(14\)\) \+ Int64\(76\) AS col1" at position 1 and "Int64\(\-83\) \* Int64\(89\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + COUNT ( * ), CAST ( COUNT ( * ) AS INTEGER ) * + - 37 - + MAX ( + 14 ) + + 76 AS col1, - 83 * 89 AS col1 +---- +-7387 +1 +25 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3478 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(94\) \* Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1, + 94 * + + 37 AS col1 +---- +3478 +NULL query II rowsort SELECT ALL 43, + 91 AS col1 @@ -21460,8 +21698,11 @@ 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\(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\. +query II valuesort 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 +---- +-152 +-62 query I rowsort label-4074 SELECT DISTINCT + 84 * - - 40 * - COUNT ( * ) @@ -21997,8 +22238,11 @@ SELECT - + 55 / - + ( + - 49 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col0" at position 0 and "Int64\(\-46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 94 AS col0, - 46 AS col0 +---- +-46 +94 query I rowsort SELECT - - 21 - - 31 @@ -22473,8 +22717,11 @@ SELECT + 86 AS col1, 60 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col0" at position 0 and "\(\- nullif\(Int64\(21\), Int64\(32\)\)\) / CAST\(Int64\(62\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 2 AS col0, - NULLIF ( + 21, 32 ) / + CAST ( + 62 AS INTEGER ) AS col0 +---- +-2 +0 query II rowsort SELECT 21, 36 AS col2 @@ -22924,8 +23171,11 @@ SELECT - - 34 - - + ( 13 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 AS col0, 12 AS col0 +---- +12 +59 query I rowsort label-4353 SELECT ALL + 91 / 93 AS col0 @@ -22955,8 +23205,11 @@ SELECT + ( SUM ( 14 ) ) / 14 + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 128 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \- coalesce\(Int64\(\-48\), \(\- CAST\(Int64\(90\) AS Int32\)\) \* Int64\(20\), Int64\(23\) \* Int64\(\-24\), \(\- CAST\(\(\- Int64\(\-18\)\) AS Int32\)\)\) \+ Int64\(53\) AS col0" at position 0 and "Int64\(42\) \* count\(DISTINCT \(\- Int64\(20\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 27 - COALESCE ( - 48, - CAST ( 90 AS INTEGER ) * + 20, 23 * - 24, - CAST ( - - 18 AS INTEGER ) ) + 53 AS col0, 42 * COUNT ( DISTINCT - + 20 ) AS col0 +---- +128 +42 query I rowsort SELECT ALL + 0 col2 @@ -23134,8 +23387,11 @@ SELECT - 63 + - - 65 * 52 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 164025 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "Int64\(\-25\) \* \(\- Int64\(\-81\)\) \* Int64\(81\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 AS col1, - 25 * ( - - 81 ) * + ( + 81 ) * CAST ( + - COUNT ( * ) AS INTEGER ) col1 +---- +164025 +17 query I rowsort label-4394 SELECT + COUNT ( * ) + 75 AS col0 @@ -23951,8 +24207,11 @@ SELECT ALL 21 * - - SUM ( DISTINCT + - 40 ) * - 9 - + CASE SUM ( ALL - CAST ( NU # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-25\)\) AS col0" at position 0 and "Int64\(38\) \+ Int64\(\-52\) \- \(\- nullif\(\(\- sum\(\(\- Int64\(73\)\)\)\), Int64\(73\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 25 AS col0, 38 + - 52 - - NULLIF ( - + SUM ( - + 73 ), + 73 ) AS col0 +---- +25 +NULL query I rowsort label-4550 SELECT DISTINCT + 37 * - 27 + COUNT ( * ) + - - 86 + - 86 * + COALESCE ( + 85, - + COUNT ( - - 86 ) * + 35 + - ( 57 ) ) @@ -24012,8 +24271,12 @@ SELECT ALL 52 + + + COUNT ( * ) * + 78 * + - CAST ( AVG ( - - 37 ) AS INTEGER ) # Datafusion - Expected - -149850 # Datafusion - Expected - 98 # Datafusion - Expected - -5776 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(Int64\(45\), \(\- CAST\(NULL AS Int32\)\) \* Int64\(56\) \* Int64\(43\)\)\)\) \* Int64\(90\) \* Int64\(\-37\) AS col1" at position 0 and "Int64\(76\) \* Int64\(\-76\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ( - + ( ( - NULLIF ( ( 45 ), - CAST ( NULL AS INTEGER ) * 56 * + 43 ) ) ) ) * 90 * - 37 AS col1, 98 AS col2, + 76 * - 76 col1 +---- +-149850 +-5776 +98 query I rowsort label-4561 SELECT 74 * - 19 / - - CAST ( NULL AS INTEGER ) AS col1 @@ -24177,8 +24440,11 @@ NULL # 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 col0" at position 0 and "max\(Int64\(\-39\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 38 AS col0, + MAX ( ALL - 39 ) col0 +---- +-38 +-39 query II rowsort SELECT ALL - - 98 col0, 96 * - 13 @@ -24300,8 +24566,11 @@ SELECT DISTINCT SUM ( 19 ) * - 36 + - - 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-92\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 92 * COUNT ( * ) AS col0, 63 AS col0 +---- +63 +92 query I rowsort label-4616 SELECT DISTINCT - 87 + COUNT ( * ) @@ -25206,8 +25475,11 @@ SELECT DISTINCT 13 * - 49 + - 26 AS 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\(87\) / Int64\(\-20\) AS col2" at position 0 and "CASE Int64\(\-78\) WHEN Int64\(72\) THEN Int64\(\-1\) \+ Int64\(\-9\) END \+ Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 87 / + - 20 AS col2, + CASE - 78 WHEN 72 THEN - 1 + + - 9 END + 96 AS col2 +---- +-4 +NULL query I rowsort SELECT 1 - + 0 @@ -25217,8 +25489,11 @@ SELECT 1 - + 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) \- \(\- Int64\(\-12\)\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 14 - - - 12 AS col0, 21 AS col0 +---- +-26 +21 query I rowsort SELECT + 37 * + 64 * + + NULLIF ( + - 11, 72 ) AS col2 @@ -25292,8 +25567,11 @@ 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\(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\. +query II valuesort SELECT 21 - ( - - COUNT ( * ) ) AS col1, 41 - ( - + 97 ) - 71 AS col1 +---- +20 +67 query I rowsort label-4807 SELECT DISTINCT + COUNT ( * ) + - - 41 + - 89 AS col2 @@ -26526,8 +26804,11 @@ SELECT DISTINCT - CAST ( - COALESCE ( + 46, - 51 * COUNT ( * ) ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( 87 ) AS col1, 10 AS col1 +---- +10 +87 query I rowsort SELECT + - 18 + - 86 @@ -26998,8 +27279,12 @@ NULL # Datafusion - Expected - 59 # Datafusion - Expected - 10 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \+ \(\- Int64\(\-33\)\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 26 + - - 33 AS col0, 10 AS col0, + 44 + - ( 31 ) / 21 AS col0 +---- +10 +43 +59 query I rowsort SELECT + 38 * - 78 @@ -27171,8 +27456,11 @@ SELECT + COALESCE ( - + 65, + 51, + 41 * - 40 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - -228 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col2" at position 0 and "Int64\(\-76\) \* Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 21 AS col2, - 76 * 3 AS col2 +---- +-228 +21 query I rowsort label-5171 SELECT ALL + 2 / + + COUNT ( * ) AS col0 @@ -27307,8 +27595,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) AS col1, - 18 + - 13 AS col1 +---- +-1 +-31 query I rowsort SELECT ALL - 60 - + 48 * 43 @@ -27497,8 +27788,11 @@ SELECT SUM ( - 56 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(47\)\)\)\) AS col0" at position 0 and "Int64\(\-97\) \* \(\- Int64\(0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + ( - - MAX ( 47 ) ) AS col0, - 97 * - - 0 AS col0 +---- +0 +47 query I rowsort label-5232 SELECT ALL + COALESCE ( + 14, - 39 / - COUNT ( * ) * - 53, - 35 * + SUM ( 18 ) * - + 60 ) * + 84 + + 14 AS col2 @@ -27530,8 +27824,11 @@ SELECT - + 94 * - + 30 * 25, - 45 * + 94 * - COUNT ( DISTINCT - 82 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(14\) \- Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( + COUNT ( * ) ) * + COUNT ( * ) AS col0, 14 - + + 79 AS col0 +---- +-65 +1 query II rowsort SELECT DISTINCT - - NULLIF ( + 18, - 35 * - 36 ) * + 54 AS col0, 95 * 29 AS col2 @@ -27718,8 +28015,11 @@ SELECT DISTINCT + + 81, 47 * - + 94 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4385 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* Int64\(71\) \+ \(\- \(\- coalesce\(max\(DISTINCT Int64\(\-12\)\), Int64\(58\)\)\)\) \+ \(\- Int64\(42\)\) AS col2" at position 0 and "Int64\(\-51\) \- Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 61 * 71 + - - COALESCE ( MAX ( DISTINCT - 12 ), + 58 ) + - + 42 AS col2, - 51 - + + 28 AS col2 +---- +-4385 +-79 query I rowsort SELECT + 60 * - ( + 95 ) AS col0 @@ -28293,8 +28593,11 @@ SELECT 25 / - 41 - - - 15 / + 17 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -312 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "Int64\(32\) \- Int64\(\-43\) \* Int64\(\-8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 60 AS col1, + ( + 32 ) - - 43 * - 8 AS col1 +---- +-312 +60 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -28970,8 +29273,11 @@ SELECT NULLIF ( 25, COUNT ( * ) ), - SUM ( DISTINCT 3 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6648 # Datafusion - Expected - 720 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(52\) \+ Int64\(28\) \* \(\- max\(Int64\(75\)\)\) \* \(\- count\(Int64\(\-54\)\)\) \+ Int64\(\-6\) \+ Int64\(76\) \- Int64\(45\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(90\) \* Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 87 * + + 52 + 28 * + - MAX ( + 75 ) * + - COUNT ( ALL - 54 ) + - 6 + + 76 - 45 - COUNT ( * ) AS col0, + 90 * + ( 8 ) col0 +---- +6648 +720 query I rowsort SELECT + 49 * 28 AS col0 @@ -28981,8 +29287,11 @@ SELECT + 49 * 28 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, - 67 col1 +---- +-67 +1 query I rowsort label-5513 SELECT - 45 / ( + - 3 ) + + 15 + + + 7 @@ -29780,8 +30089,11 @@ SELECT + NULLIF ( - 7, + 33 ) * + COALESCE ( CASE + CASE - 49 WHEN + 68 * + - CA # Datafusion - Datafusion expected results: # Datafusion - Expected - 3150 # Datafusion - Expected - 5796 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(90\)\) \* \(\- Int64\(35\)\) AS col1" at position 0 and "Int64\(\-69\) \* \(\- Int64\(84\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( 90 ) * - + 35 AS col1, - 69 * - + 84 AS col1 +---- +3150 +5796 query II rowsort label-5666 SELECT DISTINCT + 0 / - - ( 53 ) * - - COALESCE ( - 35, + - 81 * - - 53 + + + 29 ) AS col1, 82 @@ -30442,8 +30754,11 @@ SELECT - - 51 col2, + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col2" at position 0 and "CAST\(nullif\(\(\- Int64\(59\)\), Int64\(\-8\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 85 AS col2, CAST ( NULLIF ( - + 59, - 8 ) AS INTEGER ) AS col2 +---- +-59 +-85 query I rowsort SELECT - - 95 + + 70 @@ -30579,8 +30894,11 @@ SELECT + 2 - 39 + - COUNT ( * ) + + - COALESCE ( ( ( COUNT ( * ) ) ), + - 73 / - # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "\(\- max\(DISTINCT Int64\(54\)\)\) \- Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + ( 92 ) ) AS col1, - MAX ( DISTINCT + 54 ) - - 60 AS col1 +---- +6 +92 query I rowsort SELECT + 11 * - - 3 AS col2 @@ -30699,8 +31017,11 @@ SELECT DISTINCT - ( 44 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47334 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(46\) \* Int64\(\-49\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 * + + 46 * - 49 AS col0, - CAST ( NULL AS INTEGER ) col0 +---- +-47334 +NULL query I rowsort label-5840 SELECT 92 + - COUNT ( * ) / + 61 + - 41 @@ -31172,8 +31493,11 @@ SELECT DISTINCT 91 AS col2, + 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 0 col2, 46 AS col2 +---- +0 +46 query I rowsort label-5930 SELECT 2 / - 9 AS col0 @@ -31351,8 +31675,11 @@ SELECT 31 - - + 15 * + ( 79 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \- Int64\(50\) AS col1" at position 0 and "nullif\(Int64\(58\), Int64\(9\)\) \+ Int64\(\-60\) \+ Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 - + 50 AS col1, + NULLIF ( 58, + 9 ) + + ( - 60 ) + 79 AS col1 +---- +-9 +77 query I rowsort label-5965 SELECT 47 * 3 * - CAST ( NULL AS INTEGER ) * - 34 * + CASE 51 WHEN + + 48 THEN NULL ELSE 63 * + 80 * ( - 48 ) END AS col0 @@ -31608,8 +31935,11 @@ SELECT DISTINCT + - 17 / 88 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 41 AS col2, 65 col2 +---- +41 +65 query I rowsort label-6014 SELECT ALL - 35 * + - NULLIF ( + + 76, SUM ( ALL 26 ) ) * + 50 + 79 * + 38 @@ -32095,8 +32425,11 @@ SELECT ALL + 63 * + ( - COUNT ( * ) ) AS col2 # 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\(52\)\) / Int64\(9\) AS col0" at position 0 and "Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 52 / 9 AS col0, - 92 AS col0 +---- +-5 +-92 query I rowsort label-6106 SELECT - + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + + 10 + + 68 * COUNT ( * ) @@ -32565,14 +32898,20 @@ SELECT ALL + 23 + - NULLIF ( + + 44, - 95 ) AS col1, 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2679 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \+ \(\- CAST\(NULL AS Int32\)\) \* \(\- sum\(CAST\(NULL AS Float64\)\)\) AS col1" at position 0 and "Int64\(57\) \* \(\- Int64\(47\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - 60 + - CAST ( NULL AS INTEGER ) * - SUM ( + + CAST ( NULL AS FLOAT8 ) ) AS col1, 57 * - + 47 AS col1 +---- +-2679 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-67\) AS Int32\)\) \+ Int64\(10\) AS col1" at position 0 and "min\(Int64\(2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - CAST ( + - 67 AS INTEGER ) ) + 10 AS col1, MIN ( ALL + 2 ) AS col1 +---- +2 +77 query I rowsort SELECT DISTINCT + 93 + - 22 AS col0 @@ -32764,8 +33103,11 @@ SELECT - 36 * - - 59 # 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 "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 21 AS col2, 3 AS col2 +---- +21 +3 query I rowsort label-6234 SELECT ALL + 52 / - - 29 @@ -32827,8 +33169,11 @@ SELECT ALL - CAST ( - AVG ( ALL 84 ) AS INTEGER ) * 98 - + - 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL ( - CAST ( NULL AS FLOAT8 ) ) col1, 8 AS col1 +---- +8 +NULL query II rowsort SELECT ALL 85, - 12 AS col0 @@ -32869,8 +33214,11 @@ SELECT + COALESCE ( - - 75, - CASE 49 WHEN + 48 THEN + - 3 + - - 62 END ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col1 +---- +1 +NULL query I rowsort label-6254 SELECT ALL 68 / - 81 * - 14 + - 36 + + COUNT ( ALL - + 74 ) @@ -33106,8 +33454,11 @@ SELECT ALL COUNT ( * ) * + - 12 # 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 "Int64\(54\) / \(\- Int64\(70\)\) AS col2" at position 0 and "Int64\(\-83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 54 / - + 70 AS col2, - 83 AS col2 +---- +-83 +0 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -33200,8 +33551,11 @@ SELECT 91 * + 7 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(43\) \* \(\- Int64\(73\)\) / Int64\(\-36\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, - COUNT ( * ) * 43 * - + 73 / - 36 + + + CAST ( NULL AS INTEGER ) AS col2 +---- +-1 +NULL query I rowsort SELECT ALL - 60 - + 11 @@ -33425,8 +33779,11 @@ SELECT + ( - 34 ) * 12 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(44\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(97\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \- Int64\(\-73\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 34 + + COUNT ( * ) + - ( + 44 ) * - CAST ( NULL AS INTEGER ) + + 97 * + - CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) - + - 73 AS col2, 7 AS col2 +---- +7 +NULL query II rowsort label-6361 SELECT - - COUNT ( - 37 ) AS col2, 97 - + 96 AS col0 @@ -33862,8 +34219,11 @@ SELECT 40 * + 10 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 125059449 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \* nullif\(Int64\(13\), \(\- Int64\(\-27\)\) \* Int64\(67\) \* Int64\(12\) \* Int64\(74\)\) \* Int64\(86\) \* \(\- Int64\(\-94\)\) \* Int64\(35\) \* \(\- count\(DISTINCT \(\- nullif\(Int64\(47\), Int64\(\-91\) / Int64\(\-23\) \* Int64\(\-99\)\)\)\)\) \+ \(\- Int64\(31\)\) AS col0" at position 0 and "Int64\(\-21\) \+ Int64\(\-52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 34 * NULLIF ( + 13, - ( - 27 ) * + + 67 * 12 * 74 ) * 86 * + - ( + - 94 ) * 35 * - COUNT ( DISTINCT - NULLIF ( + 47, - 91 / - 23 * + - 99 ) ) + - + 31 AS col0, - 21 + + - 52 AS col0 +---- +-73 +125059449 query I rowsort label-6445 SELECT COALESCE ( - 91, + - COUNT ( * ) ) + + 16 + + 60 * + - 19 * + 96 AS col2 @@ -33999,8 +34359,11 @@ SELECT - 40 * - - 97 + - + 7 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \+ Int64\(\-74\) AS col0" at position 0 and "\(\- CASE Int64\(11\) WHEN \(\- \(\- Int64\(8\)\)\) THEN NULL WHEN Int64\(44\) THEN Int64\(18\) ELSE NULL END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 68 + + - 74 col0, - CASE 11 WHEN - - ( 8 ) THEN NULL WHEN 44 THEN + + 18 ELSE NULL END AS col0 +---- +-6 +NULL query I rowsort SELECT ALL - ( + - 16 ) * + 27 - 46 AS col2 @@ -34082,8 +34445,11 @@ SELECT 76 * + + 16 + + 55 * + COALESCE ( 24, + ( - CAST ( + 92 AS INTEGER ) ) * # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- Int64\(\-73\)\)\) AS col1" at position 0 and "Int64\(\-68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MIN ( - ( + - 73 ) ) AS col1, ( - 68 ) AS col1 +---- +-68 +73 query I rowsort label-6486 SELECT ALL - 32 * - 43 * + - 78 + + COUNT ( + 12 ) @@ -34156,8 +34522,11 @@ SELECT - SUM ( - 80 ) * 16, - ( - NULLIF ( - 36, + AVG ( + 51 ) ) ) 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 "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 46 AS col1, 0 AS col1 +---- +-46 +0 query II rowsort label-6499 SELECT - + 39 * - 95 * + SUM ( 97 ) AS col0, + 10 @@ -34261,8 +34630,11 @@ 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\(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\. +query II valuesort SELECT + ( + + 30 ) AS col2, 77 / - COUNT ( * ) + - + 17 + - ( + 45 ) - - 57 * - 42 * + 81 AS col2 +---- +-194053 +30 query I rowsort SELECT + 17 + + ( - 42 ) @@ -34403,8 +34775,11 @@ SELECT ALL - CAST ( + 42 AS INTEGER ) # 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 "\(\- count\(DISTINCT Int64\(15\)\)\) \* \(\- Int64\(\-98\)\) AS col0" at position 0 and "Int64\(60\) \- Int64\(1\) \- Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( DISTINCT + + 15 ) * - - 98 col0, + 60 - + 1 - + + 86 AS col0 +---- +-27 +-98 query I rowsort label-6545 SELECT 28 / COUNT ( * ) @@ -34908,14 +35283,20 @@ SELECT COUNT ( * ) * - + 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 4026 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col0" at position 0 and "Int64\(48\) \+ Int64\(\-50\) \+ Int64\(76\) \* Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 AS col0, 48 + - 50 + 76 * + 53 AS col0 +---- +-82 +4026 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 83 AS col1, + COUNT ( * ) AS col1 +---- +1 +83 query I rowsort label-6646 SELECT COUNT ( * ) * - 75 * - - 44 * 69 AS col0 @@ -35257,8 +35638,11 @@ SELECT + ( - 97 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-96\) AS col0" at position 0 and "CAST\(Int64\(\-77\) AS Int32\) \+ Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) - - 96 AS col0, ( + CAST ( - 77 AS INTEGER ) ) + 48 col0 +---- +-29 +97 query I rowsort SELECT + 43 * - + 55 AS col1 @@ -36342,8 +36726,11 @@ SELECT + 81 + MAX ( DISTINCT - ( 78 ) ) * + 1 + + - 47 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 59 AS col1, 39 AS col1 +---- +39 +59 query II rowsort SELECT 16 + + + 10 + - - 47, - 22 AS col1 @@ -36443,8 +36830,11 @@ SELECT DISTINCT ( - 36 ) * 76 + - - 20 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 38340 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col2" at position 0 and "Int64\(20\) \* Int64\(27\) \* Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 27 AS col2, + 20 * 27 * + 71 AS col2 +---- +27 +38340 query I rowsort SELECT 88 + + + 88 @@ -36805,8 +37195,11 @@ SELECT - ( - ( + 87 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \+ Int64\(40\) / Int64\(44\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 + 40 / + 44 AS col2, 23 AS col2 +---- +23 +6 query II rowsort SELECT 63 col0, 14 @@ -37795,8 +38188,11 @@ SELECT ALL 95 AS col1, - COUNT ( * ) + + + 60 * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 1119 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col1" at position 0 and "Int64\(4\) \+ Int64\(43\) \+ Int64\(\-87\) \+ Int64\(\-61\) \* Int64\(\-19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 AS col1, 4 + 43 + - 87 + - 61 * - 19 AS col1 +---- +1119 +28 query I rowsort label-7199 SELECT CASE + + 66 WHEN NULLIF ( + + 35, + AVG ( ALL + 55 ) * 98 ) THEN - COUNT ( DISTINCT - 18 ) END / - 58 AS col0 @@ -39126,8 +39522,11 @@ SELECT 86 + - + ( + 55 ) / + 72 + - 46 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) 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 II valuesort SELECT - 29 AS col2, - MIN ( - 16 ) col2 +---- +-29 +16 query I rowsort SELECT ALL - 91 + - 5 @@ -39178,8 +39577,11 @@ SELECT DISTINCT - - MAX ( 99 ) + - + 19 + + 48 - + 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col2" at position 0 and "CAST\(NULL AS Int32\) / max\(DISTINCT \(\- Int64\(87\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 98 AS col2, CAST ( NULL AS INTEGER ) / MAX ( DISTINCT - + 87 ) AS col2 +---- +-98 +NULL query I rowsort SELECT ALL + + 33 + + 8 * + 85 AS col0 @@ -39189,8 +39591,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) AS col2, COUNT ( * ) * - 42 + 82 AS col2 +---- +-1 +40 query I rowsort SELECT + 95 * 59 @@ -39295,8 +39700,11 @@ SELECT ALL 34 + - 40 + - - 79 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \+ Int64\(98\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 60 + 98 AS col0, + 91 AS col0 +---- +38 +91 query I rowsort label-7485 SELECT DISTINCT 27 + - - CAST ( - 68 AS INTEGER ) / + - 71 * + 13 * - COUNT ( * ) + + 2 @@ -39811,8 +40219,11 @@ SELECT DISTINCT + 18 + + ( + 7 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ max\(DISTINCT Int64\(\-28\)\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 + MAX ( DISTINCT - 28 ) AS col0, + ( + 77 ) AS col0 +---- +70 +77 query I rowsort label-7585 SELECT CASE + SUM ( ALL + 46 ) WHEN - + CASE + + 12 WHEN 24 THEN 40 END THEN - - 75 WHEN + AVG ( DISTINCT + 9 ) THEN - 55 / + - 94 + + - 27 * - 29 * - - ( - + COUNT ( - 17 ) ) * - - 97 WHEN + 59 THEN - COUNT ( * ) * - 35 END * 71 * + 20 * - CAST ( NULL AS INTEGER ) AS col2 @@ -40093,8 +40504,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + + COUNT ( * ), + COUNT ( * ) +---- +1 +1 query I rowsort label-7639 SELECT - + CAST ( - 25 AS INTEGER ) * + ( + - 58 ) @@ -40359,8 +40773,11 @@ SELECT 33 * - 63 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 18 AS col1, - CAST ( NULL AS INTEGER ) AS col1 +---- +18 +NULL query I rowsort SELECT 4 - + - 26 AS col2 @@ -40658,8 +41075,11 @@ 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\(1\)\) AS count\(\*\) / \(\- \(\- Int64\(29\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 69 * - + 66 + + COUNT ( DISTINCT + - 96 ) AS col0, 37 + + COALESCE ( - 79, + 39 / - 47 - + - MIN ( ALL + 45 ) - COUNT ( * ) / - - ( 29 ) ) AS col0 +---- +-42 +-4553 query I rowsort label-7747 SELECT DISTINCT + NULLIF ( SUM ( DISTINCT - 69 ), - 43 * - 78 ) @@ -40772,8 +41192,11 @@ SELECT - NULLIF ( - 14, + 15 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4650 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \+ Int64\(63\) \* Int64\(73\) 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 II valuesort SELECT ALL 51 + + 63 * 73 AS col1, + 28 / - 6 AS col1 +---- +-4 +4650 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -40801,8 +41224,11 @@ SELECT - SUM ( + ( + ( + 35 ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 66 AS col2, 15 AS col2 +---- +15 +66 query I rowsort label-7774 SELECT - 24 * + COUNT ( * ) AS col2 @@ -41197,8 +41623,11 @@ SELECT ALL + 24 + 3 AS col2, + 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \+ Int64\(29\) AS col1" at position 0 and "\(\- Int64\(56\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 + 29 AS col1, ( - + 56 ) col1 +---- +-56 +35 query I rowsort label-7848 SELECT 13 / - 81 * - - 12 - + 40 + + CASE - 55 WHEN - + NULLIF ( - - 0, MIN ( ALL - + 19 ) ) THEN + 64 WHEN + + 56 THEN NULL ELSE NULL END + - ( 49 ) * 97 / + + 34 + + 64 / + - ( - CAST ( NULL AS INTEGER ) ) col2 @@ -41554,8 +41983,11 @@ 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\(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\. +query II valuesort SELECT - 84 + - ( COUNT ( * ) ) + 99 AS col2, - 43 col2 +---- +-43 +14 query I rowsort SELECT ALL 54 + + 63 @@ -41648,8 +42080,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2672 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(2\)\) \* Int64\(17\) \+ Int64\(25\) \* coalesce\(CAST\(Int64\(22\) AS Int32\), \(\- Int64\(\-22\)\)\) \+ Int64\(72\) \* Int64\(29\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( + 2 ) * + 17 + + 25 * + COALESCE ( + CAST ( + 22 AS INTEGER ), + ( - - 22 ) ) + 72 * 29 AS col2, 18 AS col2 +---- +18 +2672 query I rowsort label-7934 SELECT - 77 * + 64 * + + 80 * - + COUNT ( DISTINCT 25 ) + - 12 * - + 85 AS col1 @@ -41943,8 +42378,11 @@ SELECT ALL + 8 * - - ( ( + COUNT ( - 91 ) ) ) + + 80 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 0 and "\(\- Int64\(\-68\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 70 col0, + ( - - 68 ) AS col0 +---- +68 +70 query I rowsort label-7990 SELECT - 32 + - COALESCE ( 92, - 37, COUNT ( * ) ) + - MAX ( ALL + 67 ) - - 28 / + 86 @@ -41990,8 +42428,11 @@ SELECT + 12 * + + ( COUNT ( * ) ) / - 99 - COUNT ( * ) * + COUNT ( * ) * - COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - 577808 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* coalesce\(Int64\(67\), Int64\(63\), Int64\(7\)\) \* Int64\(88\) \* Int64\(98\) AS col2" at position 0 and "Int64\(73\) \* Int64\(\-89\) \+ \(\- Int64\(28\)\) \- CAST\(NULL AS Int32\) \* Int64\(\-22\) \+ Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) * COALESCE ( + 67, + 63, + 7 ) * 88 * + 98 AS col2, + ( + 73 ) * - 89 + - + 28 - + CAST ( NULL AS INTEGER ) * - 22 + 67 AS col2 +---- +577808 +NULL query I rowsort label-7999 SELECT + 46 + + MAX ( ALL ( + CAST ( NULL AS INTEGER ) ) ) * COUNT ( * ) + - NULLIF ( + + 76, - + COUNT ( * ) ) + - 69 + + 42 * - + COUNT ( * ) + + - 26 * + 72 @@ -42315,8 +42756,11 @@ SELECT ALL - 91 AS col2, + 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - -1358 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col0" at position 0 and "Int64\(\-76\) \+ \(\- Int64\(99\)\) \* Int64\(13\) \+ \(\- \(\- coalesce\(Int64\(5\), Int64\(17\), CASE Int64\(99\) WHEN \(\- Int64\(36\)\) THEN \(\- Int64\(60\)\) \* Int64\(\-62\) \* Int64\(\-65\) / \(\- Int64\(16\)\) \+ Int64\(18\) END \- \(\- count\(Int64\(\-94\)\)\) \* Int64\(58\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 30 AS col0, + ( + - 76 ) + - + 99 * + 13 + - - COALESCE ( 5, + + 17, CASE + + 99 WHEN - + 36 THEN - + 60 * - 62 * - 65 / - + 16 + 18 END - - COUNT ( - 94 ) * + 58 ) AS col0 +---- +-1358 +30 query I rowsort SELECT 81 * + - 3 AS col2 @@ -42726,8 +43170,11 @@ SELECT ALL + + MIN ( + 99 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 2335 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(4\) \+ Int64\(\-87\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-17\) \+ \(\- Int64\(\-56\)\) \* Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 34 * 4 + - 87 * COUNT ( * ) AS col2, - 17 + + - ( - 56 ) * + + 42 col2 +---- +2335 +49 query II rowsort SELECT - 87, + 38 + 72 col2 @@ -42841,8 +43288,11 @@ SELECT + 86 * - ( - 84 ) * - + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-27\)\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + ( + - 27 ) ) col0, 91 AS col0 +---- +27 +91 query I rowsort SELECT DISTINCT 15 * 61 @@ -43929,8 +44379,11 @@ SELECT - - 16 + 86 * 85 * - 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 340 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(10\) \* CAST\(Int64\(34\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 47 AS col2, + 10 * CAST ( 34 AS INTEGER ) AS col2 +---- +340 +47 query I rowsort label-8375 SELECT - + 47 * + SUM ( DISTINCT - 11 ) AS col0 @@ -43945,8 +44398,11 @@ SELECT ALL + + 94 * - 45 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "max\(\(\- Int64\(20\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 AS col0, + MAX ( ALL - + 20 ) AS col0 +---- +-20 +25 query I rowsort label-8378 SELECT - 30 * - - COUNT ( * ) AS col0 @@ -44309,8 +44765,11 @@ SELECT NULLIF ( + MAX ( + ( - - 11 ) ), + ( - 72 ) * + 40 - + ( - COUNT ( + 77 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "\(\- Int64\(48\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 AS col0, - ( + 48 ) AS col0 +---- +-48 +27 query I rowsort label-8450 SELECT ALL + 80 / + SUM ( ALL - 93 ) @@ -44364,8 +44823,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - -1447 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col0" at position 0 and "Int64\(53\) \* Int64\(51\) \+ Int64\(83\) \* Int64\(\-50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 97 AS col0, 53 * + 51 + 83 * - 50 AS col0 +---- +-1447 +97 query I rowsort SELECT ( + ( - - 24 ) ) * 21 @@ -44484,8 +44946,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 40 + + - COUNT ( * ) AS col0, 67 AS col0 +---- +39 +67 query I rowsort SELECT + 16 + 43 @@ -44698,8 +45163,11 @@ SELECT ALL 45 + - 31 # 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 Float64\) AS col1" at position 0 and "\(\- Int64\(52\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL CAST ( NULL AS FLOAT8 ) AS col1, ( - + 52 ) AS col1 +---- +-52 +NULL query II rowsort label-8524 SELECT + 68 + - 28 / 65, + 3 * - ( - 18 ) AS col2 @@ -44757,8 +45225,12 @@ SELECT DISTINCT + 82 - + 71 - + ( 75 ) + - 59 AS col1 # Datafusion - Expected - 56 # Datafusion - Expected - -216 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 56 AS col2, + SUM ( ALL + + 6 ) * - 36, 37 col2 +---- +-216 +37 +56 query I rowsort SELECT ALL 3 * + 46 * + 32 * + - 94 AS col1 @@ -44968,8 +45440,11 @@ SELECT - COALESCE ( - - 0, - 64 ) * 51 + + 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \+ Int64\(\-92\) / Int64\(\-89\) AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 35 + - 92 / + + ( - 89 ) AS col2, 74 AS col2 +---- +36 +74 query I rowsort SELECT DISTINCT - 57 + - 7 @@ -45382,8 +45857,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( 56 ) col0, - COUNT ( * ) * - 33 AS col0 +---- +1 +33 query I rowsort label-8652 SELECT DISTINCT 99 + + MIN ( - 17 ) / + 40 AS col1 @@ -45639,8 +46117,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -475 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ \(\- CAST\(Int64\(87\) AS Int32\)\) \+ \(\- Int64\(\-7\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* max\(Int64\(56\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 4 + - CAST ( + 87 AS INTEGER ) + - - 7 * COUNT ( * ) * MAX ( ALL + + 56 ) * - COUNT ( * ) AS col1, 48 AS col1 +---- +-475 +48 query I rowsort SELECT 89 - + 39 AS col0 @@ -46276,8 +46757,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - + COUNT ( * ) AS col0, - 15 * ( - - 16 ) * + + 92 * 86 - + 17 * SUM ( DISTINCT - NULLIF ( + NULLIF ( - + 87, 31 ), - 17 + + 80 * 92 ) ) AS col0 +---- +-1 +-1900359 query I rowsort SELECT DISTINCT - ( - 79 ) @@ -47270,8 +47754,11 @@ SELECT ALL ( - - 91 ) * + 0 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \+ Int64\(6\) AS col2" at position 0 and "Int64\(\-48\) / Int64\(34\) \+ Int64\(\-51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 10 + + 6 AS col2, - 48 / 34 + + - 51 AS col2 +---- +-52 +16 query II rowsort label-9013 SELECT ALL COALESCE ( COUNT ( * ), + + COUNT ( * ) * - + 6 ) * + - 88 + - 10 + 21 AS col1, - 5 col2 @@ -47806,8 +48293,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(38\), Int64\(\-5\)\) AS col2" at position 0 and "CASE Int64\(17\) WHEN \(\- sum\(DISTINCT Int64\(58\)\)\) THEN Int64\(\-37\) \* Int64\(44\) \* Int64\(66\) \* \(\- Int64\(\-88\)\) \+ Int64\(\-63\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( 38, - 5 ) AS col2, CASE + + 17 WHEN - + SUM ( DISTINCT + 58 ) THEN + - 37 * ( 44 ) * 66 * - - 88 + - 63 END AS col2 +---- +38 +NULL query I rowsort label-9114 SELECT 78 / - + 93 @@ -48112,8 +48602,11 @@ SELECT DISTINCT - 66 * - 21 * - COUNT ( * ) + - 32 + - ( 22 ) * + 51 * + - COALE # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 34 AS col2, + COUNT ( * ) AS col2 +---- +1 +34 query I rowsort label-9171 SELECT DISTINCT + + ( + COALESCE ( + COUNT ( * ), + 77 / - COUNT ( * ) + 69 + SUM ( 69 ) * 92 + + + 66 * + 98, + COUNT ( * ) ) ) AS col2 @@ -48458,8 +48951,11 @@ 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\(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\. +query II valuesort SELECT ALL - 4 * - COUNT ( * ) * 76 AS col2, - 50 AS col2 +---- +-50 +304 query I rowsort SELECT DISTINCT + 88 * - NULLIF ( 72, + 24 ) * + + ( + + 68 ) + + 19 AS col1 @@ -48541,8 +49037,12 @@ 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\(1\)\) AS count\(\*\), Int64\(47\)\), Int64\(84\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 55 + - - 66 AS col1, COALESCE ( + COALESCE ( + COUNT ( * ), + 47 ), + + 84 ) AS col1, - 39 * COUNT ( + 15 ) - - 51 AS col2 +---- +1 +12 +121 query I rowsort label-9254 SELECT ALL 68 + - CAST ( NULL AS INTEGER ) @@ -48944,8 +49444,11 @@ SELECT + 42 * + 83 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "\(\- CAST\(Int64\(90\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 AS col1, - CAST ( + 90 AS INTEGER ) AS col1 +---- +-90 +62 query I rowsort SELECT CASE WHEN ( NULL ) IS NULL THEN 14 ELSE + 78 END AS col0 @@ -49020,8 +49523,11 @@ SELECT ALL - COUNT ( * ) * + - CASE 42 WHEN 40 THEN NULL WHEN 65 + 81 THEN NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 127 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ \(\- Int64\(\-30\)\) AS col2" at position 0 and "coalesce\(Int64\(16\), Int64\(40\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 97 + - - 30 AS col2, COALESCE ( ( 16 ), 40 ) AS col2 +---- +127 +16 query I rowsort label-9346 SELECT ALL COUNT ( * ) * - 51 AS col1 @@ -49196,8 +49702,11 @@ SELECT DISTINCT 96 + + 13 * COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(16\)\) \+ Int64\(46\) AS col1" at position 0 and "Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 16 + + 46 AS col1, + 61 AS col1 +---- +30 +61 query I rowsort label-9380 SELECT - - COALESCE ( - + 57, - 9 + COUNT ( DISTINCT - 79 ) ) + - + 67 * - - 14 @@ -49704,8 +50213,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) / Int64\(\-3\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 78 / - 3 + + - CAST ( NULL AS INTEGER ) col1, + 71 AS col1 +---- +71 +NULL query I rowsort label-9475 SELECT COUNT ( * ) * - 11 AS col2 @@ -49733,8 +50245,11 @@ SELECT + - MAX ( DISTINCT - + 38 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 161 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-86\)\) \+ Int64\(75\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 86 ) + + 75 AS col2, ( + 38 ) AS col2 +---- +161 +38 query I rowsort SELECT DISTINCT + - 32 + 73 AS col0 @@ -49780,8 +50295,11 @@ SELECT DISTINCT + 92 * - 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ CASE Int64\(65\) WHEN \(\- Int64\(\-8\)\) THEN CAST\(NULL AS Int32\) END AS col1" at position 0 and "Int64\(\-50\) \+ count\(Int64\(33\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 75 + CASE + + 65 WHEN - - 8 THEN + CAST ( NULL AS INTEGER ) END AS col1, - 50 + + + COUNT ( + 33 ) AS col1 +---- +-49 +NULL query I rowsort SELECT ALL + 48 * + - 45 + 36 @@ -49856,8 +50374,11 @@ SELECT ALL 92 * - 21 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 27 AS col0, - 45 AS col0 +---- +-45 +27 query II rowsort SELECT DISTINCT 78 AS col2, 50 * 48 @@ -50502,8 +51023,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 2988 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "Int64\(36\) \* Int64\(\-83\) \* Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 AS col1, 36 * - 83 * + ( - 1 ) AS col1 +---- +2988 +90 query I rowsort SELECT ALL CASE + 84 WHEN - 36 THEN + 36 END / 85 AS col1 @@ -50797,8 +51321,11 @@ SELECT + COUNT ( DISTINCT - 5 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-75\)\) AS col2" at position 0 and "coalesce\(Int64\(85\), Int64\(11\) \* CAST\(NULL AS Int32\)\) \+ Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - ( - 75 ) AS col2, + COALESCE ( 85, 11 * CAST ( NULL AS INTEGER ) ) + 35 AS col2 +---- +120 +75 query I rowsort label-9683 SELECT - + 28 * + 10 + - COUNT ( * ) AS col2 @@ -50998,8 +51525,11 @@ SELECT ALL - 70 col0, - 95 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42107 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* Int64\(44\) \* \(\- Int64\(33\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 29 * + + 44 * - + 33 + + + COUNT ( * ) AS col0, - 78 col0 +---- +-42107 +-78 query I rowsort label-9721 SELECT 15 * + 49 * COUNT ( * ) col2 @@ -51363,8 +51893,11 @@ SELECT + 27 - - - SUM ( ALL - 26 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(72\), Int64\(79\) / Int64\(12\) \* count\(Int64\(1\)\) AS count\(\*\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(41\) / \(\- Int64\(\-17\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( 72, 79 / + 12 * + COUNT ( * ) / - COUNT ( * ) * + 41 / - - 17 ) AS col1, COUNT ( * ) col1 +---- +-72 +1 query I rowsort label-9791 SELECT + COUNT ( * ) - + 93 AS col0 @@ -51990,8 +52523,11 @@ SELECT - ( - 18 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col0" at position 0 and "Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 65 AS col0, ( + 15 ) AS col0 +---- +-65 +15 query I rowsort SELECT ALL + - 37 AS col1 @@ -52189,8 +52725,11 @@ 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\(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\. +query II valuesort 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 +---- +0 +100 query I rowsort label-9949 SELECT NULLIF ( - + 72, + 42 * - 88 + + 93 + CASE 74 WHEN 53 - + COUNT ( * ) THEN NULL ELSE - + 72 + - CAST ( + 60 AS INTEGER ) END ) * + 60 + + 43 * - 46 diff --git a/data/sqlite/random/expr/slt_good_46.slt b/data/sqlite/random/expr/slt_good_46.slt index d0eb176..2fef93a 100644 --- a/data/sqlite/random/expr/slt_good_46.slt +++ b/data/sqlite/random/expr/slt_good_46.slt @@ -1264,8 +1264,11 @@ SELECT - 4 * 37 + + + 68 * 86 * 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* \(\- Int64\(\-3\)\) AS col0" at position 0 and "\(\- \(\- \(\- Int64\(99\)\)\)\) / Int64\(\-17\) \* CASE Int64\(\-9\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(94\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \* Int64\(71\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +0 +NULL query I rowsort label-239 SELECT - ( + MIN ( ALL + 8 ) ) @@ -1621,8 +1624,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 94 * + 36 AS col0, - COUNT ( * ) col0 +---- +-1 +-3384 query I rowsort label-306 SELECT ALL 97 / 30 + COUNT ( * ) * + - NULLIF ( - NULLIF ( - NULLIF ( + 36, - COUNT ( * ) / + 10 ), ( + 86 ) + + 92 ), - COUNT ( * ) * 15 ) AS col2 @@ -2111,8 +2117,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) + - - MAX ( - 85 ) col2, + COALESCE ( 45, - - 45 ) - + - COUNT ( * ) * + - ( + + 21 ) * 85 + - 58 AS col2 +---- +-1798 +-84 query I rowsort label-399 SELECT 46 * + COUNT ( * ) - + 18 - - 11 + + 39 + + COUNT ( - 63 ) * + 27 * 48 AS col2 @@ -2636,8 +2645,12 @@ SELECT - ( - - COUNT ( 66 ) ) + ( + 92 ) # Datafusion - Expected - -45 # Datafusion - Expected - NULL # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) / CAST\(NULL AS Int32\) AS col1" at position 1 and "Int64\(71\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 45, - 83 / + + CAST ( NULL AS INTEGER ) AS col1, + 71 AS col1 +---- +-45 +71 +NULL query I rowsort SELECT 67 + + 80 + CASE - 57 WHEN - 29 * + 16 THEN NULL WHEN + - 19 THEN NULL ELSE 91 END * 49 + - + CASE - 74 WHEN - 7 / - + 25 * - + AVG ( DISTINCT + 11 ) THEN NULL ELSE + 19 + - 61 END + 5 @@ -2915,8 +2928,11 @@ SELECT - 5 / 75 / + - 73 + - + COUNT ( * ) * + - 23 - - 50 * 70 * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 119 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col0" at position 0 and "Int64\(33\) \+ Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 49 AS col0, 33 + + 86 col0 +---- +119 +49 query I rowsort label-551 SELECT + - COUNT ( * ) * MIN ( ALL 64 ) + MIN ( DISTINCT - 12 ) * + - MIN ( ALL - ( - 10 ) ) @@ -3187,8 +3203,12 @@ SELECT 18, COUNT ( * ) / - + 96 AS col2 # Datafusion - Expected - 0 # Datafusion - Expected - -2847 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) / Int64\(63\) / Int64\(\-62\) AS col0" at position 0 and "Int64\(39\) \* Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 75 / 63 / - 62 AS col0, 39 * ( - 73 ) AS col0, - + COUNT ( + + 61 ) AS col2 +---- +-1 +-2847 +0 query I rowsort label-602 SELECT 81 - + 53 * + - ( CAST ( NULL AS INTEGER ) ) / - MIN ( + 82 ) + + 68 AS col2 @@ -3385,8 +3405,11 @@ SELECT ALL - COALESCE ( - CAST ( NULL AS INTEGER ), - + COUNT ( * ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7623 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(99\) AS col1" at position 0 and "Int64\(\-22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 77 * + + 99 AS col1, - 22 AS col1 +---- +-22 +7623 query II rowsort SELECT - 47 * + - 28 AS col1, 5 * - + 33 * 8 * - - 75 @@ -3462,8 +3485,11 @@ SELECT DISTINCT - COALESCE ( + 46, + + CAST ( - - 42 AS INTEGER ), + - MAX ( ALL # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \- Int64\(\-15\) \+ Int64\(13\) AS col2" at position 0 and "Int64\(\-31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 1 - - 15 + + 13 AS col2, - 31 AS col2 +---- +-31 +29 query I rowsort label-654 SELECT - 7 / + COUNT ( * ) col1 @@ -3524,8 +3550,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS 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 IR valuesort SELECT DISTINCT + + 73 AS col2, - CAST ( NULL AS FLOAT8 ) AS col2 +---- +73 +NULL query I rowsort label-666 SELECT - ( + 91 ) * - - 87 / + 87 * + 13 * + + CASE - 78 WHEN + + 36 THEN 0 / - - MAX ( ALL 56 ) END * + 0 AS col0 @@ -3868,8 +3897,11 @@ SELECT ALL 51 + 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \- Int64\(\-33\) AS col0" at position 0 and "\(\- \(\- Int64\(\-32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 29 - + - 33 AS col0, - ( - - 32 ) col0 +---- +-32 +62 query I rowsort label-732 SELECT ALL - ( - 21 ) + COUNT ( * ) @@ -3888,8 +3920,12 @@ NULL # Datafusion - Expected - -2 # Datafusion - Expected - 12975 # Datafusion - Expected - -4015 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \+ Int64\(39\) AS col2" at position 0 and "Int64\(\-73\) \* Int64\(55\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 41 + + 39 AS col2, - 3 * + - 44 * - - 98 * + COUNT ( * ) + + NULLIF ( + + 39, + 89 * + 39 ), - 73 * 55 AS col2 +---- +-2 +-4015 +12975 query II rowsort label-735 SELECT DISTINCT - 47 - - - 28, - ( - 11 ) / + 26 - 33 AS col2 @@ -4522,8 +4558,11 @@ SELECT - MAX ( DISTINCT + 93 ) + - 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(10\), \(\- Int64\(\-20\)\) \* \(\- CASE Int64\(\-26\) WHEN CASE Int64\(68\) WHEN Int64\(78\) / Int64\(69\) \* Int64\(\-21\) THEN CAST\(Int64\(42\) AS Int32\) END THEN Int64\(72\) ELSE Int64\(\-59\) END\) \- min\(Int64\(28\)\) \* Int64\(\-70\)\)\) \+ Int64\(\-65\) AS col1" at position 0 and "Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - NULLIF ( 10, - - 20 * - CASE - 26 WHEN CASE 68 WHEN + ( 78 ) / 69 * - 21 THEN CAST ( 42 AS INTEGER ) END THEN + + 72 ELSE - 59 END - MIN ( 28 ) * + - 70 ) + - 65 AS col1, 77 AS col1 +---- +-75 +77 query II rowsort label-855 SELECT COUNT ( * ) * + + COUNT ( * ) AS col0, 45 @@ -5257,8 +5296,11 @@ SELECT ALL - 24 * + + ( + CAST ( + 84 AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -23760 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* Int64\(\-22\) \* Int64\(18\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 * - 22 * 18 AS col1, + 92 col1 +---- +-23760 +92 query II rowsort label-996 SELECT ALL 62, 32 + + MAX ( DISTINCT + 65 ) AS col2 @@ -5314,8 +5356,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 24 * 64 * + 4 + + - 61 + - COUNT ( * ) col1, - 20 AS col1 +---- +-20 +-6206 query I rowsort label-1007 SELECT - 77 * - CAST ( - 1 AS INTEGER ) * - - 33 + + 53 + - MAX ( - 11 ) * 48 @@ -5449,8 +5494,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 AS col1, 26 AS col1 +---- +0 +26 query I rowsort SELECT ALL 54 + + 26 AS col2 @@ -5516,8 +5564,12 @@ SELECT - ( + - 65 ) + - 11 AS col1 # Datafusion - Expected - -81 # Datafusion - Expected - -20 # 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 "Int64\(\-20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 81 AS col0, - 20 AS col0, - ( - CASE COUNT ( * ) WHEN - 17 + + 93 + + COALESCE ( - 9, + COUNT ( * ) + 31 * CASE WHEN NOT + COUNT ( * ) NOT BETWEEN + ( + CAST ( - ( + + 79 ) AS INTEGER ) ) AND NULL THEN 77 ELSE NULL END, 42 * COUNT ( * ) + + + 48 ) - - 33 THEN + COUNT ( * ) WHEN 69 THEN NULL WHEN 42 + - 73 THEN - - 96 END ) +---- +-20 +-81 +NULL query I rowsort label-1045 SELECT ALL - 18 + + + ( - + COUNT ( * ) ) * + 78 @@ -5883,8 +5935,11 @@ SELECT ALL + 3 + - + 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col1" at position 0 and "Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 69 AS col1, - 82 AS col1 +---- +-69 +-82 query I rowsort label-1111 SELECT ALL - 40 + + COALESCE ( - 19, COUNT ( * ), + - 94 ) + + 43 * 10 AS col1 @@ -6289,8 +6344,11 @@ SELECT + 32 + - 41 * 34, - 64 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1655 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(17\) \* Int64\(\-96\) \+ Int64\(\-57\) \+ Int64\(\-5\) \+ Int64\(40\) \+ \(\- count\(DISTINCT Int64\(80\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 17 * - 96 + - 57 + - 5 + 40 + - COUNT ( DISTINCT + 80 ) AS col2 +---- +-1655 +1 query I rowsort label-1187 SELECT - + MIN ( DISTINCT + 10 ) * 28 * - 15 @@ -6759,8 +6817,11 @@ SELECT + - COUNT ( * ) AS col2, 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + COUNT ( * ) AS col2, + 99 AS col2 +---- +1 +99 query I rowsort SELECT DISTINCT + + ( - - 68 ) AS col1 @@ -7232,8 +7293,11 @@ SELECT 17 + + ( - COUNT ( * ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "Int64\(\-59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 95 AS col0, - 59 AS col0 +---- +-59 +95 query I rowsort label-1365 SELECT COUNT ( DISTINCT - 13 ) * - 39 + + 76 @@ -7286,8 +7350,11 @@ SELECT 42 * - 20 * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 0 and "CAST\(Int64\(\-29\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 AS col0, + CAST ( - 29 AS INTEGER ) AS col0 +---- +-29 +11 query I rowsort label-1375 SELECT 49 + 91 * - + 51 - - - CAST ( NULL AS INTEGER ) AS col2 @@ -7374,8 +7441,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-1 +81 query I rowsort label-1392 SELECT + ( - NULLIF ( - 9, 55 * - 97 * + CAST ( NULL AS INTEGER ) / + 59 ) ) + + 45 col2 @@ -7625,8 +7695,11 @@ SELECT DISTINCT COUNT ( * ), ( - 38 ) * 65 + + - 31 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 536 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \* Int64\(15\) \+ Int64\(\-4\) AS col0" at position 0 and "Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 36 * + 15 + ( - 4 ) AS col0, - 99 col0 +---- +-99 +536 query I rowsort label-1439 SELECT ALL 19 + CAST ( - + 16 AS INTEGER ) * - 80 + - COUNT ( * ) * - - 80 * 92 @@ -7741,8 +7814,11 @@ SELECT 17 + + + COUNT ( * ) + - 54 + 38 / - SUM ( + - 95 ) * 17 - + - ( - 93 ) / # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(55\) AS col0" at position 0 and "Int64\(53\) \+ Int64\(28\) \+ \(\- CAST\(NULL AS Float64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT + ( 75 ) * - CAST ( NULL AS INTEGER ) + + + 55 AS col0, 53 + + 28 + - CAST ( NULL AS FLOAT8 ) col0 +---- +NULL +NULL query I rowsort SELECT 26 + - 32 @@ -8098,8 +8174,11 @@ NULL # 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\(\-80\) \* Int64\(61\) \* Int64\(31\) \+ Int64\(29\) \+ Int64\(\-2\) \* CASE Int64\(40\) WHEN \(\- Int64\(71\)\) THEN Int64\(78\) \+ Int64\(22\) ELSE NULL END AS col1" at position 0 and "Int64\(35\) \- Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 80 * + + 61 * + ( 31 ) + 29 + - 2 * CASE 40 WHEN - + 71 THEN 78 + + 22 ELSE NULL END AS col1, + 35 - 24 col1 +---- +11 +NULL query I rowsort SELECT ALL 12 * 34 + + 62 + 87 @@ -8448,8 +8527,11 @@ SELECT DISTINCT + ( - 81 ) + - ( 44 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 AS col1, + 19 AS col1 +---- +19 +9 query I rowsort SELECT ALL + 83 + + + 68 AS col1 @@ -8480,8 +8562,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + 29 + - - 31 + + - ( - 98 ) + + 65 + + + SUM ( NULLIF ( - 35, + + 96 ) ) * + - COUNT ( * ) * 83 AS col1, ( - 61 ) AS col1 +---- +-61 +3128 query I rowsort SELECT DISTINCT 88 * 18 @@ -8796,8 +8881,12 @@ SELECT + 41 * 66 AS col1 # Datafusion - Expected - 1711 # Datafusion - Expected - 56 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-30\) \* Int64\(57\) AS col0" at position 0 and "Int64\(\-82\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + COUNT ( * ) - - 30 * + 57 AS col0, + 55 + + COALESCE ( + COUNT ( + 33 ), 44 ) AS col2, - 82 - COUNT ( * ) AS col0 +---- +-83 +1711 +56 query I rowsort label-1662 SELECT DISTINCT 29 / 2 * - ( - 22 ) @@ -9968,8 +10057,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) col0, - COUNT ( * ) AS col0 +---- +-1 +-1 query I rowsort label-1892 SELECT DISTINCT 55 + - COUNT ( * ) + - 11 - NULLIF ( - + 12, + 70 * - 34 ) * - 77 @@ -11040,8 +11132,11 @@ SELECT + - 28 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) / Int64\(\-60\) \+ Int64\(78\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 / - 60 + ( 78 ) AS col0, 88 AS col0 +---- +78 +88 query I rowsort label-2098 SELECT DISTINCT + + 66 / - + 44 AS col2 @@ -11625,8 +11720,11 @@ SELECT DISTINCT - ( ( - + 10 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 119 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \- Int64\(\-44\) AS col0" at position 0 and "Int64\(\-71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 75 - + - 44 AS col0, ( - 71 ) AS col0 +---- +-71 +119 query II rowsort label-2207 SELECT DISTINCT - COALESCE ( + 51, - COUNT ( * ) ) * + + 46 AS col1, + 55 col0 @@ -11909,8 +12007,11 @@ SELECT ( 43 ) * + 29 * + 63, 13 / 6 * - 43 AS col0 # 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 "count\(DISTINCT \(\- Int64\(43\)\)\) \+ Int64\(43\) \+ Int64\(\-6\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( DISTINCT - + 43 ) + 43 + - 6 AS col2, + 99 AS col2 +---- +38 +99 query I rowsort SELECT DISTINCT 99 * + - 49 * - 13 @@ -12364,8 +12465,11 @@ SELECT MIN ( DISTINCT 17 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -125 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(73\)\) \+ \(\- nullif\(Int64\(52\), nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(47\) \- Int64\(0\)\) / Int64\(61\)\)\) AS col0" at position 0 and "Int64\(4\) / coalesce\(Int64\(21\), \(\- nullif\(Int64\(\-53\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-67\) \+ Int64\(36\)\)\) \- Int64\(\-24\) / CAST\(Int64\(36\) AS Int32\), Int64\(74\) \* Int64\(2\)\) \+ Int64\(48\) / Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-125 +1 query II rowsort label-2346 SELECT - - 86 AS col0, 15 - COUNT ( * ) AS col1 @@ -12871,8 +12975,11 @@ 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\(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\. +query IR valuesort SELECT ALL + 15 + - COUNT ( * ) AS col1, COUNT ( * ) - - + CAST ( NULL AS FLOAT8 ) * - 96 AS col1 +---- +14 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -13113,8 +13220,11 @@ SELECT + 74 + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 295 -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\) \+ Int64\(\-57\) \* Int64\(\-4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 AS col1, + 67 + - 57 * - 4 AS col1 +---- +19 +295 query II rowsort SELECT - - 75 AS col0, + 33 * + 95 col2 @@ -13505,8 +13615,11 @@ SELECT - 92, + 39 / - 93 * - 65 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4560 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(57\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + 80 ) * 57 AS col2, + 4 AS col2 +---- +4 +4560 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -13978,8 +14091,12 @@ SELECT 27 + 24 + 14 AS col0 # Datafusion - Expected - 1936 # Datafusion - Expected - -74 # Datafusion - Expected - 1357 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) AS col1" at position 1 and "Int64\(97\) / Int64\(1\) \- \(\- Int64\(\-30\)\) \* sum\(Int64\(\-42\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 17 * - COUNT ( * ) - 8 * 10 * + - 92 + - 81 * + 66 + - + 61, - 74 col1, + 97 / + 1 - - - 30 * SUM ( - 42 ) AS col1 +---- +-74 +1357 +1936 query I rowsort SELECT 36 + + 3 AS col0 @@ -14600,8 +14717,11 @@ SELECT ALL - 75 + + 50 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(72\)\)\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - ( - + 72 ) AS col0, 48 AS col0 +---- +48 +72 query I rowsort SELECT + 0 - + 6 @@ -14653,8 +14773,11 @@ SELECT COALESCE ( - 11, - 14, + ( + 56 ) * - 40 - COUNT ( * ) ) - 91 + - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \- Int64\(74\) AS col0" at position 0 and "Int64\(78\) \+ Int64\(22\) / Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 64 - 74 AS col0, 78 + 22 / + ( 39 ) col0 +---- +-10 +78 query II rowsort SELECT 46 * - - 89, 97 AS col1 @@ -15245,8 +15368,11 @@ SELECT + 37 + - 56 + + 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \+ Int64\(8\) \+ Int64\(37\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 + + 8 + + 37 col2, ( - 0 ) AS col2 +---- +0 +71 query I rowsort label-2897 SELECT ALL 90 - COUNT ( DISTINCT CAST ( + 49 AS FLOAT8 ) ) col1 @@ -15495,8 +15621,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 876 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) / \(\- Int64\(\-54\)\) AS col0" at position 0 and "Int64\(12\) \* Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 / - - 54 AS col0, 12 * 73 col0 +---- +1 +876 query I rowsort label-2944 SELECT + MIN ( + 34 ) + 96 @@ -15581,8 +15710,11 @@ 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\(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\. +query II valuesort SELECT - - 87 + + 0 AS col1, - COUNT ( * ) + - 57 + - + 71 * 59 + MAX ( ALL + + 65 ) / 75 + + NULLIF ( + MAX ( ALL - ( + - 73 ) ), + ( + - 57 ) + + 3 ) AS col1 +---- +-4174 +87 query I rowsort label-2960 SELECT ALL - 82 / + 56 * - - COUNT ( * ) / + COUNT ( * ) @@ -15933,8 +16065,11 @@ SELECT + 4 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(4\), \(\- Int64\(72\)\) \+ CAST\(NULL AS Int32\) \- sum\(Int64\(22\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( 4, + ( - + 72 ) + CAST ( NULL AS INTEGER ) - SUM ( + 22 ) ) AS col1, COUNT ( * ) * 44 AS col1 +---- +-4 +44 query II rowsort label-3027 SELECT 98 + 42 AS col0, + COUNT ( * ) @@ -16688,8 +16823,11 @@ SELECT + 93 + + 42 * + 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(32\), \(\- Int64\(59\)\)\)\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( + ( + 32 ), - ( 59 ) ) AS col2, 5 AS col2 +---- +-32 +5 query I rowsort label-3171 SELECT DISTINCT COUNT ( * ) / 37 AS col1 @@ -17010,8 +17148,11 @@ SELECT 50 - + ( + 50 ) AS col0 # 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 col0" at position 0 and "\(\- count\(\(\- Int64\(90\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 71 col0, - COUNT ( - + 90 ) AS col0 +---- +-1 +-71 query I rowsort label-3233 SELECT 24 + - 53 + - 75 - - + 29 + + CASE CAST ( + ( CASE 11 WHEN + 45 / + 69 + - ( - - 43 ) THEN NULL WHEN + 64 * + + 63 THEN + 19 + 64 ELSE NULL END ) AS INTEGER ) WHEN - + 93 * - - 57 THEN NULL ELSE - 64 + - + 61 - + 71 * - - 5 END + - + COALESCE ( 40, - - ( COUNT ( + 75 ) ), + + 97 ) * + ( + 40 ) * - + 39 * 92 AS col0 @@ -17068,8 +17209,12 @@ SELECT COUNT ( * ) * + 92 AS col2 # Datafusion - Expected - 42 # Datafusion - Expected - 97 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col1" at position 1 and "Int64\(25\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 42 AS col2, 97 AS col1, + ( + 25 ) AS col1 +---- +25 +42 +97 query II rowsort label-3244 SELECT - COUNT ( * ) AS col0, - 17 @@ -17372,8 +17517,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COALESCE ( + 40, - COUNT ( * ) + + 27 * COUNT ( * ) ) * + 30 AS col2, 62 + + - 79 + - - 58 AS col2 +---- +1200 +41 query II rowsort label-3302 SELECT ALL + 69 AS col2, - COUNT ( * ) @@ -17828,8 +17976,12 @@ SELECT ALL - ( + 59 ) + + MAX ( DISTINCT 0 ) AS col0 # Datafusion - Expected - 37 # Datafusion - Expected - 0 # Datafusion - Expected - 63180 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \+ Int64\(\-34\) AS col2" at position 1 and "Int64\(45\) \* Int64\(18\) \* Int64\(78\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 37, + 34 + - 34 AS col2, + 45 * + 18 * 78 AS col2 +---- +0 +37 +63180 query I rowsort label-3388 SELECT ALL 85 + 56 * - - NULLIF ( + 49, - 67 * + - 64 / + + 38 ) * - ( ( - 16 ) ) + - + ( - 69 ) + - COUNT ( * ) * + + 38 - - 31 - + 50 @@ -17849,8 +18001,11 @@ SELECT MIN ( DISTINCT ( - 58 ) ) * 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(22\) \+ Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, 22 + + 55 AS col1 +---- +77 +NULL query I rowsort SELECT DISTINCT CASE 84 WHEN - 3 THEN 89 - 82 WHEN 26 - 55 * + 46 THEN NULL END * 94 AS col1 @@ -19023,8 +19178,11 @@ 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\(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\. +query II valuesort SELECT - COALESCE ( - + 69, + - COUNT ( * ), + 65 ) AS col0, 76 / + 18 col0 +---- +4 +69 query II rowsort label-3622 SELECT 82 AS col2, - COALESCE ( - 71, - CAST ( NULL AS INTEGER ) * 43, - + 62 ) @@ -19120,8 +19278,11 @@ SELECT DISTINCT - 21 * - + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "\(\- min\(Int64\(22\)\)\) \+ Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 23 AS col2, - MIN ( + 22 ) + + + 83 col2 +---- +23 +61 query I rowsort label-3641 SELECT - COUNT ( * ) + ( + + 50 ) AS col2 @@ -19879,8 +20040,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 99 AS col1, COUNT ( * ) + - 43 * 61 * - - SUM ( ALL + + 69 ) AS col1 +---- +-180986 +-99 query I rowsort SELECT 41 * + 41 AS col0 @@ -20905,8 +21069,11 @@ SELECT + 77 / 9 + - - 87 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col1" at position 0 and "Int64\(72\) / Int64\(\-20\) \+ Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 62 AS col1, + 72 / - 20 + + 99 AS col1 +---- +-62 +96 query II rowsort SELECT DISTINCT + 6 AS col0, 70 + - 26 + - 99 @@ -20928,8 +21095,11 @@ SELECT - COUNT ( * ) + - 30 + + 48 / 44, 58 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col0" at position 0 and "Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 24 AS col0, 87 col0 +---- +24 +87 query I rowsort SELECT - 2 * + 73 + + 22 AS col0 @@ -21129,8 +21299,11 @@ SELECT DISTINCT + 27 * + 35 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 4101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "Int64\(99\) \+ Int64\(\-69\) \* \(\- Int64\(58\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 9 AS col2, 99 + - 69 * - + 58 AS col2 +---- +4101 +9 query I rowsort SELECT DISTINCT + ( 67 ) - 77 + - 25 * 30 @@ -21826,8 +21999,11 @@ SELECT DISTINCT + 19 * - - 85 AS col2, + 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - -247 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \+ Int64\(\-27\) \+ Int64\(\-96\) \+ \(\- Int64\(60\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 65 + - 27 + - 96 + - + 60 + + COUNT ( * ) AS col0, - COUNT ( * ) * + 22 AS col0 +---- +-22 +-247 query I rowsort label-4157 SELECT DISTINCT + COUNT ( * ) + - + COALESCE ( - - MIN ( - ( - 96 ) ), - 31 ) @@ -21911,8 +22087,11 @@ 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\(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\. +query II valuesort 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 +---- +-54 +0 query I rowsort label-4173 SELECT ALL 27 / 87 AS col0 @@ -21987,8 +22166,11 @@ SELECT ALL 36, 38 * + 26 - + COUNT ( ALL + 40 ) - SUM ( DISTINCT - + 18 ) AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - -4500 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col2" at position 0 and "Int64\(75\) \* Int64\(\-60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 38 col2, 75 * - 60 AS col2 +---- +-38 +-4500 query I rowsort label-4187 SELECT COUNT ( - 33 ) - - 93 * - - 75 AS col1 @@ -22105,8 +22287,11 @@ SELECT ALL + + 66 * 75 + + + 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5964 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* Int64\(\-84\) AS col1" at position 0 and "\(\- CASE Int64\(\-79\) WHEN coalesce\(Int64\(98\), Int64\(\-89\) \* \(\- CAST\(NULL AS Int32\)\) \- Int64\(\-28\) \* Int64\(\-34\)\) THEN min\(Int64\(21\)\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 * + ( - 84 ) AS col1, - CASE - 79 WHEN COALESCE ( + 98, + - 89 * - CAST ( NULL AS INTEGER ) - - 28 * - 34 ) THEN + MIN ( ALL + 21 ) ELSE NULL END AS col1 +---- +-5964 +NULL query I rowsort label-4208 SELECT DISTINCT + 45 * + 17 * - - 98 / - COUNT ( * ) AS col1 @@ -22158,8 +22343,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 103 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-49\)\) \+ Int64\(56\) \+ Int64\(\-2\) AS col2" at position 0 and "Int64\(63\) \- Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 49 + 56 + - 2 AS col2, + 63 - 80 col2 +---- +-17 +103 query I rowsort label-4218 SELECT ALL + SUM ( 23 ) + + 43 + 53 AS col1 @@ -23380,8 +23568,11 @@ 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\(1\)\) AS count\(\*\)\)\) \* Int64\(\-78\) \+ Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( - ( + 90 ), - 47 + 78 ) col1, - ( + + NULLIF ( + + 58, + COUNT ( * ) ) ) * - 78 + 76 AS col1 +---- +4600 +90 query I rowsort label-4453 SELECT ALL - 95 / + - 82 AS col0 @@ -23391,8 +23582,11 @@ SELECT ALL - 95 / + - 82 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6270 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* \(\- Int64\(92\)\) \+ Int64\(\-14\) AS col2" at position 0 and "Int64\(\-44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 68 * - + 92 + - 14 AS col2, - 44 AS col2 +---- +-44 +-6270 query I rowsort SELECT ALL 8 * - 87 AS col1 @@ -23572,8 +23766,12 @@ SELECT + - 72 * + COALESCE ( + 73, MAX ( + 18 ) + - COUNT ( * ) ) AS col1, 59 + # Datafusion - Expected - -55 # Datafusion - Expected - 0 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) / Int64\(87\) \* Int64\(\-57\) AS col1" at position 1 and "Int64\(68\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + 55, + 69 / + 87 * - 57 AS col1, + 68 AS col1 +---- +-55 +0 +68 query II rowsort SELECT - 46 AS col0, + 57 AS col2 @@ -23615,8 +23813,11 @@ SELECT + 56 + + 87 * + + 25 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(42\)\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - + 42 ) AS col1, 11 col1 +---- +-42 +11 query I rowsort label-4497 SELECT - SUM ( ALL - 27 ) * - 18 + 72 - 96 * 19 @@ -23815,8 +24016,11 @@ SELECT ALL - ( - + 86 ) / + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 AS col0, 83 AS col0 +---- +58 +83 query II rowsort label-4533 SELECT + 59, + 15 / + 40 AS col2 @@ -24010,8 +24214,11 @@ 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\(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\. +query II valuesort SELECT SUM ( DISTINCT + - 2 ) AS col0, NULLIF ( - COALESCE ( - 40, - 96 - + COUNT ( * ) + - 44 + + 49 ), + 96 + + + 60 ) AS col0 +---- +-2 +40 query I rowsort SELECT ALL 29 + - - 12 AS col2 @@ -24057,8 +24264,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 52 - + + 11 AS col1, - COUNT ( + 49 ) + + 61 / - + ( - 9 ), - - COUNT ( * ) AS col1 +---- +1 +41 +5 query II rowsort SELECT + 33 + + 20 * - 75 AS col1, 30 @@ -24272,8 +24483,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(\-89\)\), Int64\(60\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( - ( - 89 ), + + 60 ) AS col2, + COUNT ( * ) col2 +---- +1 +89 query I rowsort label-4619 SELECT ALL 51 / - - 55 @@ -24379,8 +24593,11 @@ SELECT DISTINCT + 91 + + COUNT ( * ) * + 50 * - 44 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \* CASE Int64\(\-30\) WHEN \(\- Int64\(43\)\) THEN NULL WHEN Int64\(\-14\) THEN Int64\(33\) \+ sum\(DISTINCT Int64\(67\)\) \* Int64\(\-95\) ELSE NULL END AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1 +NULL query I rowsort SELECT DISTINCT - 91 + 81 @@ -24611,8 +24828,11 @@ SELECT + + 0 * - + 58 col1 # 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\(DISTINCT Int64\(14\)\)\) / \(\- Int64\(\-62\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 AS col0, - COUNT ( DISTINCT 14 ) / - - 62 AS col0 +---- +0 +60 query I rowsort label-4683 SELECT DISTINCT + 60 * + NULLIF ( + 32, - 25 * - - 92 + + + 28 - - 16 * + - 5 ) + 68 / - 86 @@ -25632,8 +25852,11 @@ SELECT COUNT ( * ) - + ( - 32 ) * - CAST ( - 97 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -210 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT \(\- nullif\(Int64\(51\), \(\- Int64\(94\)\)\)\)\) \+ Int64\(53\) \* Int64\(\-3\) AS col0" at position 0 and "Int64\(97\) \- Int64\(58\) \+ coalesce\(Int64\(45\), Int64\(67\) \* Int64\(56\), \(\- Int64\(\-9\)\) \* Int64\(40\) \- Int64\(34\) \- Int64\(51\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MIN ( DISTINCT - + NULLIF ( + 51, + + ( - + 94 ) ) ) + 53 * - 3 AS col0, + 97 - + + 58 + COALESCE ( + + 45, 67 * + 56, - - 9 * + 40 - 34 - + + 51 ) * + COUNT ( * ) col0 +---- +-210 +84 query I rowsort SELECT ALL - 97 + + 8 AS col0 @@ -26214,8 +26437,11 @@ SELECT DISTINCT + 10 * - 17 * + - MIN ( 91 ) * - 81 col1, 75 * - 94 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3361 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \* Int64\(\-39\) \+ \(\- coalesce\(Int64\(71\), Int64\(53\)\)\) AS col0" at position 0 and "Int64\(9\) \+ \(\- \(\- Int64\(70\)\)\) / \(\- \(\- nullif\(Int64\(52\), Int64\(90\) \* Int64\(\-30\) \* Int64\(\-2\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 88 * + - 39 + - COALESCE ( 71, + + 53 ) AS col0, 9 + - - ( + + 70 ) / - - NULLIF ( + 52, + 90 * - 30 * - 2 ) col0 +---- +10 +3361 query I rowsort SELECT - ( + 80 ) * + 80 @@ -26251,8 +26477,11 @@ NULL # 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 "Int64\(78\) \+ max\(\(\- Int64\(69\)\)\) \+ \(\- Int64\(\-27\)\) \+ Int64\(\-37\) AS col1" at position 0 and "Int64\(\-31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 78 + + MAX ( - + 69 ) + - - 27 + - 37 AS col1, - 31 AS col1 +---- +-1 +-31 query I rowsort SELECT DISTINCT - 21 - + 46 - - - 62 + + - ( - + 83 ) AS col2 @@ -26287,8 +26516,11 @@ 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\(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\. +query II valuesort SELECT + + 7 / - COUNT ( * ) col2, + 15 * - 51 col2 +---- +-7 +-765 query I rowsort label-5002 SELECT - + 2 * + CAST ( + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) AS col1 @@ -26368,8 +26600,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, 36 * + 99 * + 63 AS col0 +---- +-1 +224532 query I rowsort SELECT 82 * 77 AS col1 @@ -27907,8 +28142,11 @@ SELECT 80 / MIN ( - + 81 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -361 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* Int64\(\-19\) AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 19 * - 19 AS col1, 52 AS col1 +---- +-361 +52 query I rowsort SELECT 95 + - 19 * - + 23 AS col0 @@ -27978,8 +28216,11 @@ SELECT DISTINCT - - 34 + SUM ( ALL 74 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 330 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-57\) AS col2" at position 0 and "CASE Int64\(58\) WHEN Int64\(\-28\) THEN NULL ELSE \(\- min\(Int64\(34\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-96\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) END \* Int64\(5\) \+ Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +330 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -28549,8 +28790,11 @@ SELECT ALL 38 + + + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 AS col1, COUNT ( * ) AS col1 +---- +1 +1 query I rowsort SELECT DISTINCT 73 + 80 AS col1 @@ -28639,8 +28883,12 @@ SELECT ALL - 20 - + + 77 # Datafusion - Expected - -54 # Datafusion - Expected - 46 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) AS col2" at position 0 and "Int64\(43\) \+ Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 54 AS col2, 43 + + 3 AS col2, NULLIF ( - - COUNT ( ALL - + 60 ), + + 70 ) AS col1 +---- +-54 +1 +46 query I rowsort SELECT 0 + - - 93 - - ( - + 65 ) @@ -29570,8 +29818,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 22 AS col1, + 53 / 98 + 32 + - COUNT ( * ) AS col1 +---- +22 +31 query I rowsort label-5630 SELECT - - MIN ( - 69 ) AS col1 @@ -29847,8 +30098,11 @@ SELECT ALL + 25 + + 61 + - + 90, 81 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3658 # Datafusion - Expected - 3330 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \* Int64\(59\) AS col2" at position 0 and "Int64\(\-45\) \* Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 62 * 59 AS col2, - 45 * + - 74 AS col2 +---- +-3658 +3330 query I rowsort SELECT ALL + 90 + 25 * + + 19 AS col0 @@ -29965,8 +30219,11 @@ SELECT ALL SUM ( DISTINCT + 85 ) / + - CASE + 79 WHEN 50 * 21 THEN NULL ELSE - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col1" at position 0 and "Int64\(86\) \* CAST\(NULL AS Int32\) \* Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 6 AS col1, + 86 * + CAST ( NULL AS INTEGER ) * + 75 AS col1 +---- +6 +NULL query I rowsort label-5706 SELECT ALL MIN ( + 13 ) + - - 42 * - 1 @@ -30058,8 +30315,11 @@ SELECT + 65 + + ( + COUNT ( * ) ) * + COUNT ( * ) + 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7924 # Datafusion - Expected - -5840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* \(\- CAST\(\(\- Int64\(\-12\)\) AS Int32\)\) \* sum\(Int64\(30\)\) \+ Int64\(4\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(58\) / Int64\(93\) \+ Int64\(\-80\) \* Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 22 * - + CAST ( - ( - 12 ) AS INTEGER ) * SUM ( 30 ) + 4 * + COUNT ( * ) AS col2, 58 / 93 + - 80 * 73 AS col2 +---- +-5840 +7924 query II rowsort label-5723 SELECT - ( - 86 ) + - - COUNT ( * ) AS col1, 96 @@ -30137,8 +30397,11 @@ SELECT DISTINCT + 0 * + COUNT ( * ) * - 11 + + COUNT ( * ) - 51 + + - 63 * + 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -4700 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "Int64\(50\) \* Int64\(\-94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 56 AS col2, + 50 * - 94 AS col2 +---- +-4700 +56 query I rowsort label-5738 SELECT DISTINCT + 40 * + 55 + - CASE + 26 WHEN - ( ( + - 11 ) ) + 76 * + 57 THEN NULL WHEN + - 17 / + + 10 THEN + 53 ELSE - MIN ( DISTINCT 77 ) * + 85 + - + 47 + 27 * + 50 END * + 91 AS col0 @@ -30205,8 +30468,11 @@ SELECT - NULLIF ( - 51, - - 60 + + 40 * - COUNT ( DISTINCT + 73 ) ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(43\)\) AS col2" at position 0 and "Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + + 43 ) AS col2, - 16 AS col2 +---- +-16 +-43 query I rowsort label-5751 SELECT + 89 * COUNT ( * ) AS col1 @@ -30388,8 +30654,12 @@ SELECT ALL + NULLIF ( 26, - + 62 - - + 1 / + 5 + + 66 ) * - SUM ( ALL 53 ), + ( # Datafusion - Expected - 39 # Datafusion - Expected - -47600 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col2" at position 0 and "Int64\(20\) \* \(\- Int64\(70\)\) \* nullif\(Int64\(34\), Int64\(\-60\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 39 AS col2, 20 * - + 70 * NULLIF ( + 34, - 60 ) AS col2, 51 +---- +-47600 +39 +51 query I rowsort label-5786 SELECT ( + 26 ) / + 29 @@ -30634,8 +30904,11 @@ SELECT - COUNT ( * ) + - - 1 / 61 + - MIN ( + + 96 ) # 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 "Int64\(\-13\) \+ Int64\(12\) AS col2" at position 0 and "\(\- Int64\(\-53\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 13 + + 12 AS col2, ( - - 53 ) col2 +---- +-1 +53 query I rowsort SELECT 47 * - - 74 @@ -30789,8 +31062,11 @@ SELECT ALL - 77 * - - 53 * - 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) / Int64\(40\) AS col2" at position 0 and "min\(Int64\(\-88\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 18 / + 40 col2, + MIN ( - 88 ) AS col2 +---- +-88 +0 query I rowsort label-5863 SELECT ALL 24 / + 7 AS col0 @@ -30960,8 +31236,11 @@ SELECT DISTINCT 54 * - - 20 # 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 "CASE \(\- Int64\(\-52\)\) WHEN Int64\(99\) THEN \(\- Int64\(\-21\)\) \+ Int64\(\-34\) \+ Int64\(\-83\) END AS col1" at position 0 and "Int64\(15\) \+ Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CASE - - 52 WHEN + + 99 THEN - - 21 + + - 34 + - 83 END AS col1, 15 + 55 AS col1 +---- +70 +NULL query I rowsort label-5896 SELECT ALL + 72 * ( + 61 ) / + - ( - 78 ) @@ -31176,8 +31455,11 @@ SELECT ALL MIN ( + 14 ) * 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5175 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* Int64\(\-69\) / \(\- count\(DISTINCT Int64\(4\)\)\) AS col0" at position 0 and "Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 75 * - 69 / + - COUNT ( DISTINCT + 4 ) AS col0, ( - 56 ) col0 +---- +-56 +5175 query II rowsort label-5937 SELECT DISTINCT + 23 - - COUNT ( * ) col0, 76 @@ -31477,8 +31759,11 @@ SELECT DISTINCT 59 * 40 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 93 ) AS col0, CAST ( NULL AS INTEGER ) col0 +---- +93 +NULL query II rowsort label-5993 SELECT + 6 * + 14 AS col2, CAST ( NULL AS INTEGER ) * + + CASE + 88 WHEN CASE - COUNT ( * ) WHEN - 67 THEN NULL WHEN MIN ( - 10 ) THEN NULL WHEN + - 5 THEN 65 + + + 97 END * - 71 THEN NULL WHEN + 49 * 93 THEN 82 END - - COUNT ( * ) @@ -31829,8 +32114,12 @@ NULL # Datafusion - Expected - 17 # Datafusion - Expected - 3558 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "\(\- Int64\(\-13\)\) \* Int64\(3\) \+ Int64\(99\) \+ Int64\(13\) \+ Int64\(\-93\) \* \(\- \(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 17 AS col1, - 45 * - 77 + + - 93 * - COUNT ( + + 66 ), - - 13 * 3 + + 99 + 13 + - 93 * - ( - - CAST ( NULL AS INTEGER ) ) AS col1 +---- +17 +3558 +NULL query II rowsort SELECT - 19 col2, - 0 @@ -31906,8 +32195,11 @@ SELECT 18 * - 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(50\)\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 50 AS col2, 78 AS col2 +---- +-50 +78 query II rowsort SELECT 20, + 84 AS col0 @@ -31939,8 +32231,12 @@ 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\(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\. +query III valuesort SELECT ALL + NULLIF ( - - NULLIF ( + ( - - 48 ), + COUNT ( * ) * 57 ), - 2 ) * 89 AS col2, + 7 + - 72 / + + 81 AS col1, 52 AS col2 +---- +4272 +52 +7 query I rowsort SELECT + ( + 81 ) @@ -32114,8 +32410,11 @@ SELECT + + ( + + 27 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -145 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) \+ Int64\(\-69\) AS col2" at position 0 and "Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 76 + - 69 AS col2, - 72 AS col2 +---- +-145 +-72 query I rowsort label-6112 SELECT DISTINCT + SUM ( ALL - - COALESCE ( 82, + 82 * + - ( 7 ) * + + 51, + - 50 ) ) @@ -32183,8 +32482,11 @@ 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\(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\. +query II valuesort SELECT ALL 54 AS col1, 9 + + COUNT ( * ) + 68 * + - 49 - - COALESCE ( + - COUNT ( * ), - - 44 / - 14 ) col1 +---- +-3323 +54 query I rowsort SELECT + 90 * 77 @@ -33009,8 +33311,12 @@ SELECT ALL + MAX ( - 35 ) + - 78 / 80 * + ( + 78 ) * + - NULLIF ( COUNT ( * ), + # Datafusion - Expected - 55 # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \+ \(\- Int64\(\-50\)\) AS col1" at position 0 and "Int64\(56\) / CAST\(NULL AS Int32\) \- Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort SELECT 5 + ( + - ( ( - 50 ) ) ) AS col1, 56 / + CAST ( NULL AS INTEGER ) - + 42 AS col1, CAST ( NULL AS FLOAT8 ) * - 4 +---- +55 +NULL +NULL query I rowsort label-6281 SELECT DISTINCT + ( - 47 ) * CAST ( - + COUNT ( * ) AS INTEGER ) @@ -33050,8 +33356,11 @@ SELECT 11 + - 25 * - 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col0" at position 0 and "nullif\(\(\- \(\- max\(DISTINCT Int64\(97\)\)\)\), \(\- Int64\(\-2\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 68 AS col0, NULLIF ( - - MAX ( DISTINCT + ( + + 97 ) ), - - 2 ) AS col0 +---- +68 +97 query I rowsort SELECT 27 - + ( 6 ) + - - 43 AS col2 @@ -33573,8 +33882,11 @@ SELECT - 36 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1650 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-22\) \* Int64\(\-75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - 22 * - 75 AS col2 +---- +1650 +NULL query I rowsort label-6389 SELECT ALL - 44 + - + 87 * + MAX ( DISTINCT - NULLIF ( - 41, - 37 ) ) + + MIN ( 68 ) AS col0 @@ -34314,8 +34626,11 @@ SELECT - 36 / + 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2985 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(5\)\) \* Int64\(54\) / CASE Int64\(56\) WHEN \(\- \(\- max\(Int64\(\-35\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE Int64\(10\) END \* \(\- Int64\(67\)\) \- Int64\(\-94\) \* Int64\(51\) \+ \(\- min\(Int64\(44\)\)\) / Int64\(88\) AS col2" at position 0 and "CASE WHEN NOT count\(CAST\(Int64\(\-75\) AS Int32\)\) NOT BETWEEN NULL AND NULL THEN Int64\(\-86\) \+ count\(Int64\(1\)\) AS count\(\*\) / CAST\(Int64\(\-23\) AS Float64\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +2985 +NULL query I rowsort label-6530 SELECT 99 * + + 10 + - - COUNT ( * ) - - MIN ( ALL - 6 ) * + MAX ( ALL 4 ) * SUM ( ( + - CASE CAST ( + 55 AS FLOAT8 ) WHEN - 0 * 23 - + 53 + - ( - 5 ) / - 16 * - - ( + - 46 ) THEN NULL WHEN - - CAST ( NULL AS INTEGER ) * - 27 * 59 - + 24 * 14 THEN NULL ELSE + - 46 - - - 54 END ) ) AS col0 @@ -34380,8 +34695,11 @@ SELECT COUNT ( * ) + - 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7830 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* 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 II valuesort SELECT 90 * + 87 AS col1, 76 AS col1 +---- +76 +7830 query I rowsort SELECT DISTINCT COALESCE ( - 15, 60 ) AS col1 @@ -34790,8 +35108,11 @@ SELECT DISTINCT + 59 * 69 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -145 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \- Int64\(97\) AS col2" at position 0 and "Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 48 - + 97 AS col2, 17 AS col2 +---- +-145 +17 query I rowsort label-6621 SELECT - 46 * 71 - + - CAST ( - + MIN ( ALL ( ( - CAST ( - 2 AS INTEGER ) ) ) ) AS INTEGER ) AS col0 @@ -34872,8 +35193,11 @@ SELECT + 88 * + 38 - - 38, 27 + 6 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(\-73\)\)\) \* \(\- Int64\(\-36\)\) \+ Int64\(\-39\) \+ \(\- Int64\(60\)\) \* Int64\(46\) \+ Int64\(74\) AS col0" at position 0 and "Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MAX ( ALL + - ( - 73 ) ) * - - 36 + - 39 + - + 60 * 46 + 74 AS col0, - 19 AS col0 +---- +-19 +-97 query I rowsort SELECT + 93 - + - 15 col1 @@ -35402,8 +35726,11 @@ SELECT + + 98 * - 12 # 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 "Int64\(40\) \+ Int64\(58\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 40 + 58 AS col0, + 22 AS col0 +---- +22 +98 query I rowsort label-6736 SELECT ALL 55 + + MIN ( + - 8 ) @@ -35683,8 +36010,11 @@ SELECT + CAST ( - 97 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 730 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) \* Int64\(1\) AS col0" at position 0 and "Int64\(14\) \* Int64\(87\) \+ Int64\(\-63\) \+ Int64\(73\) \+ Int64\(6\) \* Int64\(\-83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + - 3 ) * ( + 1 ) AS col0, 14 * + + 87 + - 63 + + 73 + 6 * - 83 AS col0 +---- +-3 +730 query I rowsort SELECT + 54 * + + 47 AS col0 @@ -35822,8 +36152,11 @@ SELECT 28 * 64 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \+ Int64\(64\) \+ Int64\(\-40\) AS col1" at position 0 and "nullif\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(72\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-43\) \* nullif\(\(\- Int64\(49\)\), \(\- Int64\(\-98\)\) \* Int64\(39\) \* Int64\(\-97\) \+ Int64\(43\) \+ \(\- CAST\(NULL AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-19\)\) \* Int64\(\-35\)\) \+ Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +22 +33 query I rowsort SELECT 18 * + + 75 @@ -36919,8 +37252,11 @@ 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\(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\. +query II valuesort SELECT - - 57 col2, SUM ( - 72 ) / COALESCE ( + ( - COUNT ( * ) ), + 70 * - 89, + 92 ) - 37 * - 21 AS col2 +---- +57 +849 query I rowsort label-7032 SELECT DISTINCT MAX ( 62 ) @@ -36951,8 +37287,11 @@ SELECT - ( + 93 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col0" at position 0 and "CAST\(Int64\(56\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 78 AS col0, CAST ( 56 AS INTEGER ) AS col0 +---- +-78 +56 query I rowsort label-7038 SELECT + 47 + + 6 * 10 + - COUNT ( * ) + + + 66 * - - MAX ( DISTINCT - 10 ) @@ -37005,8 +37344,12 @@ 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\(1\)\) AS count\(\*\) \* Int64\(7\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - COUNT ( * ) + 98 * - 12 col0, - ( - 64 ) AS col2, - 79 + 71 - COUNT ( * ) * 7 AS col2 +---- +-1177 +-15 +64 query II rowsort label-7048 SELECT ALL + 7 + + MAX ( ALL 35 ) AS col1, COUNT ( * ) * - 70 / 28 AS col0 @@ -37017,8 +37360,11 @@ 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\(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\. +query II valuesort 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 +---- +2130 +NULL query I rowsort label-7050 SELECT - NULLIF ( ( - + COUNT ( * ) ), 18 ) * - COUNT ( * ) AS col2 @@ -37099,8 +37445,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(\-61\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 58 + 53 AS col2, + COUNT ( * ) * - - 61 AS col2 +---- +111 +61 query I rowsort label-7066 SELECT + 45 / + + CASE - 13 WHEN - - 41 / + + COUNT ( * ) THEN - 48 END + COUNT ( * ) * - 66 @@ -37285,8 +37634,11 @@ SELECT - 70 + - 60 - - 24 * + NULLIF ( - 24, SUM ( ALL - 5 ) ) * + COUNT ( * ) + # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col1" at position 0 and "Int64\(85\) \- Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 35 AS col1, 85 - + 81 AS col1 +---- +35 +4 query I rowsort label-7102 SELECT ALL ( + 2 ) + CAST ( + - NULLIF ( + COUNT ( * ), + COUNT ( * ) * + - 69 + + - 45 ) AS INTEGER ) AS col2 @@ -37672,8 +38024,11 @@ SELECT DISTINCT - 98 * 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 AS col0, 25 AS col0 +---- +25 +80 query I rowsort SELECT ALL - 89 * + ( 90 ) @@ -37834,8 +38189,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * - 25 AS col0, 14 AS col0 +---- +-25 +14 query I rowsort label-7207 SELECT ALL - CASE + 79 WHEN + - 31 THEN - 77 * 47 WHEN - 96 THEN NULL ELSE + 33 + 9 + + CAST ( NULL AS INTEGER ) / 22 END * - 75 * + 3 @@ -37845,8 +38203,11 @@ NULL # 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\(DISTINCT Int64\(37\)\)\) AS col0" at position 0 and "Int64\(\-9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( DISTINCT 37 ) AS col0, - 9 AS col0 +---- +-1 +-9 query I rowsort label-7209 SELECT 90 + - 97 + + + ( - 85 ) + + COUNT ( * ) + 27 col1 @@ -37934,8 +38295,11 @@ SELECT 22 * 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(44\)\) AS col0" at position 0 and "Int64\(\-82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( DISTINCT 44 ) AS col0, - 82 AS col0 +---- +-82 +44 query I rowsort label-7226 SELECT MIN ( - + 53 ) @@ -38075,8 +38439,11 @@ SELECT DISTINCT 70 + + 62 * + ( 69 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 AS col2, 10 AS col2 +---- +10 +92 query I rowsort label-7253 SELECT + 87 * - - COUNT ( + 32 ) @@ -38086,8 +38453,11 @@ SELECT + 87 * - - COUNT ( + 32 ) # 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\) AS col2" at position 0 and "Int64\(17\) \+ \(\- Int64\(47\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 8 col2, 17 + - + ( + + 47 ) AS col2 +---- +-30 +8 query I rowsort label-7255 SELECT + 5 + + 66 * - COUNT ( DISTINCT + 34 ) * - 58 @@ -38751,8 +39121,11 @@ 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\(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\. +query II valuesort SELECT ALL + SUM ( ALL + 30 ) + - COUNT ( * ) * - 17 AS col1, 13 * + ( - ( + 2 ) ) * + 99 + - 50 + 74 col1 +---- +-2550 +47 query I rowsort SELECT - + 94 col1 @@ -38815,8 +39188,11 @@ SELECT + SUM ( DISTINCT + - 34 ) + - - 26 AS col2 # 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\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 47 ) AS col2, + 67 AS col2 +---- +47 +67 query II rowsort SELECT ( - 7 ) AS col1, 24 @@ -38827,8 +39203,11 @@ SELECT ( - 7 ) AS col1, 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 148 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col0" at position 0 and "Int64\(60\) \+ \(\- Int64\(\-88\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 65 ) AS col0, 60 + - - 88 AS col0 +---- +-65 +148 query I rowsort label-7394 SELECT + COUNT ( * ) - - 68 * - - COUNT ( * ) AS col2 @@ -39571,15 +39950,22 @@ SELECT ALL 16 - CAST ( COUNT ( * ) AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 121 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \+ Int64\(99\) AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 22 + + 99 AS col1, 50 AS col1 +---- +121 +50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 0 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 6 AS col2, 0 AS col2, - + 99 +---- +-99 +0 +6 query I rowsort label-7536 SELECT ALL NULLIF ( 88, + ( - COUNT ( * ) ) ) col2 @@ -39604,8 +39990,11 @@ SELECT + 86 * 31 * 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 20 AS col2, ( + 4 ) AS col2 +---- +20 +4 query II rowsort SELECT ALL + 21 AS col0, + 4 AS col2 @@ -40382,8 +40771,11 @@ SELECT DISTINCT - ( + ( COUNT ( * ) ) ) - 23 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col0" at position 0 and "min\(DISTINCT Int64\(78\)\) / Int64\(\-13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 AS col0, MIN ( DISTINCT 78 ) / - 13 AS col0 +---- +-6 +5 query II rowsort label-7690 SELECT + + 78, NULLIF ( - 75, COUNT ( 62 ) ) AS col2 @@ -40764,8 +41156,11 @@ SELECT - - 87 * + COALESCE ( - CAST ( NULL AS INTEGER ), 84, 97, + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) \+ Int64\(68\) AS col0" at position 0 and "Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 76 + 68 AS col0, 19 AS col0 +---- +-8 +19 query I rowsort label-7764 SELECT ALL MAX ( ALL - 31 ) @@ -41144,8 +41539,12 @@ NULL # Datafusion - Expected - 77 # Datafusion - Expected - -13 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(89\) / Int64\(46\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* nullif\(Int64\(\-33\), Int64\(57\) \* Int64\(\-72\) \+ Int64\(57\)\) \+ max\(DISTINCT CAST\(Int64\(19\) AS Int32\)\) AS col2" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 77 AS col1, + COUNT ( * ) - 89 / 46 * - COUNT ( * ) * NULLIF ( - 33, 57 * - 72 + 57 ) + MAX ( DISTINCT CAST ( + + 19 AS INTEGER ) ) col2, COUNT ( * ) AS col2 +---- +-13 +1 +77 query I rowsort SELECT DISTINCT + 62 - + 92 * + ( + - 24 ) AS col0 @@ -41923,8 +42322,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * ( + + 0 ) + - - 53 AS col1, - 32 AS col1 +---- +-32 +53 query I rowsort label-7987 SELECT ALL MAX ( DISTINCT 40 ) * 59 @@ -41954,8 +42356,11 @@ SELECT + MAX ( ALL - + ( + + CAST ( 82 AS INTEGER ) ) ) * 46 + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \+ Int64\(\-44\) / Int64\(\-97\) \* Int64\(45\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 + - 44 / - 97 * 45 AS col2, + 37 AS col2 +---- +31 +37 query I rowsort SELECT ALL - + 69 AS col2 @@ -42527,8 +42932,11 @@ SELECT DISTINCT + 79 + + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 396 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \+ Int64\(79\) AS col0" at position 0 and "Int64\(19\) \* Int64\(21\) \- \(\- Int64\(\-3\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 4 + + 79 AS col0, + 19 * + 21 - - - 3 * + COUNT ( * ) AS col0 +---- +396 +75 query I rowsort label-8104 SELECT ALL - MIN ( - 58 ) @@ -42665,8 +43073,11 @@ SELECT DISTINCT - - 29 + 4 + - COUNT ( * ) + - MAX ( DISTINCT 20 ) * - COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col2" at position 0 and "Int64\(\-44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 11 AS col2, - 44 AS col2 +---- +-11 +-44 query I rowsort label-8131 SELECT ALL - + CAST ( - - 24 AS INTEGER ) * - - 3 * + - 80 @@ -42713,8 +43124,11 @@ SELECT - 95 AS col2, - ( - - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 106 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 0 and "coalesce\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), \(\- Int64\(87\)\) \+ Int64\(\-48\) \* Int64\(62\), Int64\(67\) \+ Int64\(46\) \+ nullif\(nullif\(Int64\(\-48\), count\(Int64\(1\)\) AS count\(\*\) \+ min\(DISTINCT Int64\(28\)\) \+ CASE \(\- Int64\(\-3\)\) WHEN Int64\(\-57\) THEN \(\- CAST\(Int64\(41\) AS Int32\)\) END / Int64\(\-8\)\), Int64\(58\)\) \+ Int64\(\-80\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(94\) \- sum\(Int64\(\-11\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +106 +35 query II rowsort SELECT 95, - 94 + - 11 + - 77 * - 33 + + 35 * - 96 AS col2 @@ -43308,8 +43722,11 @@ SELECT DISTINCT - - NULLIF ( + - 87, NULLIF ( 80, 9 ) ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 5390 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col2" at position 0 and "Int64\(98\) \* \(\- Int64\(\-55\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 93 AS col2, 98 * - - 55 AS col2 +---- +-93 +5390 query II rowsort SELECT DISTINCT 16 AS col1, + 7 @@ -43411,8 +43828,11 @@ SELECT + COUNT ( * ) - - + 51 AS col0, 18 + - 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(\-79\)\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( ALL - - 79 ) AS col1, - CAST ( NULL AS INTEGER ) * 80 AS col1 +---- +79 +NULL query I rowsort SELECT - 20 - + 23 * + 71 * - 86 col1 @@ -43673,8 +44093,11 @@ SELECT ALL + - 58 / + - COUNT ( * ) + 23 # 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 col1" at position 0 and "Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 2 col1, - 79 col1 +---- +-2 +-79 query I rowsort label-8324 SELECT DISTINCT - 38 * - + 94 + + - 55 + - CAST ( NULL AS INTEGER ) + + 76 @@ -43859,8 +44282,11 @@ SELECT - 45 + - 52 + - + 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - -770 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col1" at position 0 and "Int64\(\-54\) \* \(\- Int64\(\-16\)\) \+ Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 AS col1, - 54 * - - 16 + ( 94 ) AS col1 +---- +-770 +98 query II rowsort SELECT 6, + 14 * + 48 col0 @@ -44327,8 +44753,13 @@ SELECT MIN ( - 19 ) # Datafusion - Expected - 18 # Datafusion - Expected - -24 # Datafusion - Expected - 145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \* Int64\(0\) \+ Int64\(16\) \+ \(\- Int64\(\-49\)\) / Int64\(67\) \* Int64\(33\) AS col1" at position 0 and "Int64\(89\) \+ Int64\(56\) AS col1" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIII valuesort SELECT - 21 * 0 + + 16 + + ( - - 49 ) / 67 * 33 AS col1, 18, + ( - 24 ) AS col0, + 89 + 56 AS col1 +---- +-24 +145 +16 +18 query I rowsort label-8446 SELECT ALL + - COUNT ( * ) * - 63 + 61 * + 94 @@ -44488,8 +44919,11 @@ 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\(1\)\) AS count\(\*\)\) \* \(\- \(\- Int64\(\-80\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 45 AS col0, - 99 * 4 * + - COUNT ( * ) * - - ( - 80 ) AS col0 +---- +-31680 +45 query I rowsort SELECT ALL - 92 + 59 @@ -44515,8 +44949,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 2 AS col1, COUNT ( * ) + 79 AS col1 +---- +-2 +80 query I rowsort label-8482 SELECT - ( - NULLIF ( + ( + COUNT ( * ) ), + + 3 ) ) AS col0 @@ -44635,8 +45072,11 @@ SELECT ALL - SUM ( ALL + - 1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 117 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \- Int64\(\-86\) AS col0" at position 0 and "Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 31 - + - 86 col0, 74 AS col0 +---- +117 +74 query I rowsort SELECT + + 26 AS col1 @@ -45322,8 +45762,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 AS col1, 67 - COUNT ( * ) / 66 col1 +---- +11 +67 query I rowsort SELECT 36 - + 99 @@ -45364,8 +45807,11 @@ SELECT DISTINCT - 29 + 45 * + 20 * + 47 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col1" at position 0 and "Int64\(\-33\) \- \(\- count\(Int64\(48\)\)\) \+ coalesce\(\(\- CAST\(\(\- Int64\(28\)\) AS Int32\)\) \+ Int64\(0\) \* Int64\(5\), Int64\(61\), CASE Int64\(\-23\) WHEN Int64\(36\) \* Int64\(27\) THEN Int64\(\-62\) \+ Int64\(\-26\) ELSE Int64\(1\) END \* Int64\(91\)\) \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 0 AS col1, - 33 - - COUNT ( 48 ) + COALESCE ( - CAST ( - ( 28 ) AS INTEGER ) + 0 * + 5, 61, CASE - 23 WHEN + 36 * + 27 THEN - 62 + - 26 ELSE + 1 END * + 91 ) * + 2 AS col1 +---- +0 +24 query I rowsort SELECT NULLIF ( - + 81, - 10 / - 84 ) @@ -45405,8 +45851,11 @@ SELECT ALL - 59 * 54 + + + 68 - COALESCE ( - 97, + 90 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(92\) \+ \(\- Int64\(77\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, 92 + - ( 77 ) AS col2 +---- +1 +15 query I rowsort label-8652 SELECT ALL + + 57 * - 84 * 97 + - ( + COALESCE ( 33, + SUM ( - 36 ), + 41 ) ) + + MIN ( 47 + 22 ) @@ -45817,8 +46266,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 154 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col0" at position 0 and "Int64\(79\) \+ Int64\(74\) \+ count\(Int64\(\-64\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 97 AS col0, 79 + 74 + COUNT ( + - 64 ) * + + COUNT ( * ) col0 +---- +154 +97 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -45852,8 +46304,11 @@ SELECT 26 + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "Int64\(44\) \+ Int64\(\-99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 AS col2, 44 + - 99 AS col2 +---- +-55 +13 query I rowsort SELECT ALL + 15 + + 78 AS col2 @@ -45915,8 +46370,11 @@ SELECT ALL - 43 * + + 98 * 37 # 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 "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 AS col1, + 9 AS col1 +---- +21 +9 query I rowsort label-8749 SELECT CASE + 66 WHEN + 11 THEN - COUNT ( * ) - + + 24 ELSE 38 END + - 6 AS col1 @@ -45931,8 +46389,11 @@ SELECT ALL + 79 + + - 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(50\)\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 50 AS col2, 68 AS col2 +---- +-50 +68 query II rowsort SELECT ALL + 52, + 90 AS col0 @@ -46025,8 +46486,11 @@ SELECT 49 - 96 + + SUM ( - 25 ) / + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-45\)\) AS col2" at position 0 and "Int64\(39\) \+ Int64\(\-73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( - 45 ) col2, + 39 + - 73 AS col2 +---- +-34 +-45 query I rowsort label-8770 SELECT SUM ( + 18 ) @@ -46698,8 +47162,11 @@ SELECT ALL 76 + - 56 * 29 + NULLIF ( - 33, + 11 ) - + + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \+ Int64\(\-11\) / Int64\(25\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 20 + + - 11 / 25 AS col1, 16 AS col1 +---- +16 +20 query II rowsort label-8900 SELECT + 59 * + 92 - - 55 AS col0, COALESCE ( 83, CASE - 32 WHEN - - 22 + - 54 THEN + 3 * - 89 + + COUNT ( * ) WHEN - 86 THEN NULL ELSE NULL END, - 56 ) + - 50 * - 48 AS col2 @@ -46915,8 +47382,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -138 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \+ Int64\(\-58\) AS col0" at position 0 and "Int64\(\-69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 80 + + - 58 col0, - 69 AS col0 +---- +-138 +-69 query I rowsort label-8941 SELECT + MAX ( 26 ) - + 72 - + - 23 AS col2 @@ -46964,8 +47434,11 @@ SELECT DISTINCT 73 * + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 + CAST ( NULL AS INTEGER ) AS col0, ( 4 ) AS col0 +---- +4 +NULL query I rowsort label-8950 SELECT + 14 * + MAX ( + 1 ) @@ -47693,8 +48166,11 @@ SELECT - 44 + 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col0, 0 AS col0 +---- +0 +NULL query I rowsort label-9090 SELECT ALL + 52 * + 61 - 6 + + COUNT ( + + 92 ) / - - 62 + - 66 @@ -47802,8 +48278,11 @@ SELECT DISTINCT + MAX ( ALL 78 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36068 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \+ Int64\(23\) \* Int64\(\-27\) \* Int64\(58\) AS col0" at position 0 and "Int64\(\-30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 50 + 23 * - 27 * 58 AS col0, - 30 AS col0 +---- +-30 +-36068 query II rowsort label-9110 SELECT ALL 16, 7 / + - 38 AS col2 @@ -48184,8 +48663,11 @@ SELECT DISTINCT - 78 AS col2, 56 / + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col0, - 45 col0 +---- +-45 +1 query I rowsort SELECT - + 26 - ( - - 49 ) @@ -48304,8 +48786,11 @@ SELECT ALL - + 89 * 13 * 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(72\)\) / sum\(Int64\(18\)\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 72 / SUM ( ( 18 ) ) col0, + 79 AS col0 +---- +-4 +79 query I rowsort label-9206 SELECT + - 55 + + CAST ( NULL AS INTEGER ) col1 @@ -48351,8 +48836,11 @@ SELECT ALL + 26 * + - 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col2, + 20 AS col2 +---- +1 +20 query I rowsort label-9215 SELECT 27 / - - 34 @@ -48400,8 +48888,11 @@ SELECT ALL 13 + - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col0" at position 0 and "Int64\(\-20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 AS col0, - 20 AS col0 +---- +-20 +72 query II rowsort label-9224 SELECT COUNT ( * ) + + 75 * - + 4 AS col2, 27 / - NULLIF ( + + 68, - + 98 / - ( 51 ) * + - COALESCE ( - 74, + - 61 * - ( - - COALESCE ( - + 77, - 74 - + 28 ) ) / + + COUNT ( * ) + + - MAX ( DISTINCT 44 ) * 15 ) ) @@ -48458,8 +48949,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COALESCE ( - 22, + 56 ) * + COUNT ( * ) - + 77 * - 92 AS col0, 55 + 20 AS col0 +---- +7106 +75 query I rowsort SELECT ALL + 90 * - - 42 AS col1 @@ -48611,14 +49105,20 @@ SELECT 23 * - 67 * ( + - COUNT ( * ) ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1421 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \* \(\- Int64\(\-20\)\) \+ Int64\(70\) \* Int64\(\-35\) \- Int64\(31\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 * - ( - 20 ) + 70 * - 35 - 31 AS col1, + 81 AS col1 +---- +-1421 +81 # 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\(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\. +query II valuesort SELECT 25 AS col1, + 10 - COUNT ( * ) * NULLIF ( 84, + 84 ) * - 76 + 57 / - COUNT ( * ) + 23 AS col1 +---- +25 +NULL query I rowsort label-9264 SELECT + CASE 68 WHEN 7 THEN - - 92 + - 54 + + 31 * - + MIN ( + + 77 ) WHEN - - ( + 10 ) THEN NULL END AS col1 @@ -48725,8 +49225,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col0" at position 0 and "Int64\(\-84\) \+ Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 88 col0, - 84 + 94 AS col0 +---- +10 +88 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -48913,8 +49416,11 @@ SELECT + 50 + 21 + 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "Int64\(\-9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 8 AS col1, - 9 AS col1 +---- +-9 +8 query I rowsort SELECT + 26 + - 11 AS col0 @@ -49370,8 +49876,11 @@ SELECT DISTINCT + - 57 * COUNT ( * ) * 59 / + + COUNT ( * ) - + + ( 93 ) + + + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 29 AS col2, 66 AS col2 +---- +-29 +66 query I rowsort label-9409 SELECT + + 12 / + 38 * 88 * + 40 @@ -49892,8 +50401,11 @@ SELECT ( - 14 ) + 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6425 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(97\) AS Int32\) \* Int64\(67\) \- Int64\(74\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( + 97 AS INTEGER ) * 67 - 74 AS col1, + 83 AS col1 +---- +6425 +83 query II rowsort label-9509 SELECT ALL - 42 * 81 AS col2, + 6 / - - 59 / + CAST ( NULL AS INTEGER ) @@ -50275,8 +50787,11 @@ SELECT - COALESCE ( + - 43, + + 17, + 55 * - 74 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, 61 AS col0 +---- +1 +61 query I rowsort label-9582 SELECT + MIN ( ( + - 59 ) ) * - CASE CAST ( NULL AS INTEGER ) WHEN + + 18 * - 55 + - COUNT ( * ) * - 86 THEN 79 + - 68 * 83 WHEN - 36 THEN NULL ELSE - + 18 END + - 5 AS col0 @@ -50407,8 +50922,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-91\) / Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 67 AS col1, COUNT ( * ) * - 91 / - 16 AS col1 +---- +5 +67 query I rowsort label-9606 SELECT CASE + + COALESCE ( + 24, - - 70 / + ( - 80 ) ) WHEN + 78 THEN NULL ELSE - 77 * + COUNT ( * ) END * - + 62 + - + COUNT ( * ) col0 @@ -50752,8 +51270,11 @@ SELECT - 1 + + ( + + 34 ) * + - 61 + + 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4040 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* Int64\(86\) \+ \(\- Int64\(2\)\) AS col0" at position 0 and "Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 47 * 86 + - + 2 AS col0, + 11 AS col0 +---- +11 +4040 query I rowsort label-9671 SELECT ALL + SUM ( DISTINCT + 33 ) * - MIN ( + + CASE + 5 WHEN + 75 * - - 88 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END ) + - + 73 AS col1 @@ -50783,8 +51304,11 @@ SELECT DISTINCT + - 56 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 846 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* \(\- \(\- nullif\(Int64\(13\), count\(Int64\(\-1\)\) \+ Int64\(70\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + ( 65 ) * - - NULLIF ( 13, COUNT ( ALL - 1 ) + + 70 ) + + COUNT ( * ) col2, + COUNT ( * ) AS col2 +---- +1 +846 query I rowsort label-9677 SELECT ALL + - 8 * - 80 + - - CAST ( 6 AS INTEGER ) @@ -50911,8 +51435,11 @@ SELECT ALL 19 * - + ( + - 81 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1125 # Datafusion - Expected - -2607 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(45\) AS col0" at position 0 and "Int64\(79\) \* \(\- coalesce\(Int64\(33\), Int64\(\-17\) \- Int64\(21\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 * + 45 AS col0, 79 * - COALESCE ( + 33, - 17 - + 21 ) AS col0 +---- +-2607 +1125 query I rowsort label-9702 SELECT + 31 + + COALESCE ( + 74, - + 94 + - MAX ( ALL + 47 ) + + ( 16 ) - + 41 ) + + 24 * + 82 @@ -51066,8 +51593,11 @@ SELECT 86 + - ( + ( + 72 ) ) - - 35 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 58 AS col2, 60 AS col2 +---- +58 +60 query I rowsort SELECT DISTINCT 78 + - 89 AS col1 @@ -51228,8 +51758,12 @@ SELECT 31 + + 72 # Datafusion - Expected - -106 # Datafusion - Expected - -14 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) \+ Int64\(\-12\) AS col0" at position 0 and "Int64\(38\) \- Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 94 + - 12 AS col0, + 38 - + 52 AS col0, + CASE + + 79 WHEN - ( + + CAST ( NULL AS FLOAT8 ) ) THEN - ( - + 18 ) * - 33 - + + 87 END * - - 49 + 58 + + 97 * - 87 * + + 37 + + 3 + - 7 + + ( - 35 ) - + 9 * - 89 AS col2 +---- +-106 +-14 +NULL query I rowsort label-9762 SELECT ALL + 31 + - CAST ( + 31 AS INTEGER ) AS col1 @@ -51532,8 +52066,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-35\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( ALL - 35 ) AS col1, COUNT ( * ) AS col1 +---- +-35 +1 query I rowsort label-9820 SELECT ALL - 39 / 13 + - 80 + - ( + + 34 ) AS col1 @@ -51680,8 +52217,11 @@ SELECT ALL + 96 AS col1, + 93 * - 2 + ( - 25 ) # 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 "\(\- Int64\(85\)\) AS col2" at position 0 and "Int64\(11\) \+ Int64\(\-3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 85 AS col2, + 11 + - 3 col2 +---- +-85 +8 query I rowsort SELECT DISTINCT - 34 * 53 @@ -52019,14 +52559,20 @@ SELECT ALL COUNT ( + + 14 ) * 68 * - 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10273536 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \* min\(Int64\(\-84\)\) \* Int64\(\-49\) \* Int64\(26\) AS col1" at position 0 and "CAST\(Int64\(54\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 96 * + MIN ( + - 84 ) * - 49 * + 26 AS col1, + CAST ( 54 AS INTEGER ) AS col1 +---- +-10273536 +54 # 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\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 0 and "Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COALESCE ( 32, - COUNT ( * ) ) AS col1, 4 AS col1 +---- +-32 +4 query I rowsort SELECT 39 * 34 @@ -52224,8 +52770,11 @@ SELECT + 50 AS col0, + 34 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -100 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- \(\- Int64\(27\)\)\), \(\- Int64\(2\)\) \+ Int64\(60\) \- CAST\(NULL AS Int32\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(\-10\) \+ Int64\(85\), Int64\(20\)\), Int64\(51\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(45\)\) \* nullif\(Int64\(42\), Int64\(69\) \* Int64\(51\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(58\)\) AS col0" at position 0 and "Int64\(77\) \+ Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-100 +52 query I rowsort SELECT + 14 * - 54 AS col0 diff --git a/data/sqlite/random/expr/slt_good_47.slt b/data/sqlite/random/expr/slt_good_47.slt index 37e2f29..49c07b4 100644 --- a/data/sqlite/random/expr/slt_good_47.slt +++ b/data/sqlite/random/expr/slt_good_47.slt @@ -1019,8 +1019,11 @@ SELECT - - 24 * - 71 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, 32 col1 +---- +1 +32 query I rowsort SELECT - 17 + - 0 AS col2 @@ -1107,8 +1110,12 @@ SELECT SUM ( + 37 ) AS col2 # Datafusion - Expected - 66 # Datafusion - Expected - 1550 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* Int64\(31\) AS col2" at position 1 and "Int64\(41\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT COALESCE ( MIN ( + + 66 ), 92 + + 95 ), 50 * + 31 AS col2, + 41 AS col2 +---- +1550 +41 +66 query I rowsort label-207 SELECT + + 46 * - 39 + + COUNT ( ALL + 27 ) * - - 40 * + 12 * - COUNT ( * ) AS col0 @@ -2264,8 +2271,11 @@ SELECT ALL + 75 * + 25 * + - 26 * 2 + + ( + 73 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-51\) \+ \(\- Int64\(1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col0, - 51 + - + 1 AS col0 +---- +-52 +NULL query I rowsort label-433 SELECT - 58 / - - 32 @@ -2409,14 +2419,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "coalesce\(Int64\(32\), Int64\(\-5\) \- Int64\(\-26\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 89 AS col2, COALESCE ( 32, + - 5 - - 26 ) AS col2 +---- +32 +89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 40 col1, 92 AS col1 +---- +40 +92 query I rowsort SELECT + 66 - - 47 + 82 * 81 @@ -2534,8 +2550,11 @@ SELECT - + 16 - + 32 * - + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "CAST\(Int64\(\-78\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 67 AS col0, CAST ( - 78 AS INTEGER ) AS col0 +---- +-78 +67 query I rowsort label-484 SELECT ALL 69 / + COUNT ( * ) + - - 52 + COUNT ( * ) + - 7 - - + COUNT ( * ) @@ -2675,14 +2694,20 @@ SELECT - 66 + NULLIF ( - 70, 39 ) # 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 "Int64\(\-69\) / Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + 18 ) AS col2, - 69 / + + 62 AS col2 +---- +-1 +18 # 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\(1\)\) AS count\(\*\)\)\), Int64\(89\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 84 * 33 AS col2, - 54 - NULLIF ( - + COALESCE ( + 13, 81, + COUNT ( * ) ), 89 ) AS col2 +---- +-2772 +-41 query I rowsort SELECT - 43 + + + 70 @@ -2777,8 +2802,11 @@ SELECT ALL - COALESCE ( + + 47, 98 + - 17 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(16\)\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-17\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - ( + 16 ) AS col1, - COUNT ( * ) * - - 17 * + + COUNT ( * ) col1 +---- +-17 +16 query I rowsort label-529 SELECT + CASE + 20 WHEN 33 THEN NULL ELSE + - 36 * - - 78 END * + COUNT ( ALL 2 ) col1 @@ -2850,8 +2878,12 @@ SELECT DISTINCT 90 + 3 * + 38 * 3 AS col0 # Datafusion - Expected - 17 # Datafusion - Expected - 169 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "Int64\(16\) \* Int64\(2\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 17 AS col0, + COUNT ( * ) * + 75 + - - 94, 16 * + 2 AS col0 +---- +169 +17 +32 query II rowsort SELECT ALL 87 col2, ( + 51 ) @@ -3573,8 +3605,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(\-43\) / Int64\(\-44\) \+ Int64\(\-51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 62 AS col1, COUNT ( * ) - + - 43 / - 44 + - 51 col1 +---- +-50 +-62 query I rowsort label-679 SELECT ALL + + 27 + COUNT ( * ) AS col1 @@ -4129,8 +4164,11 @@ SELECT ALL - 97 * + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \+ Int64\(\-4\) \+ Int64\(\-4\) / Int64\(\-26\) \+ Int64\(\-93\) AS col1" at position 0 and "Int64\(76\) \+ Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 + + - 4 + - 4 / - 26 + - 93 AS col1, + 76 + + 13 AS col1 +---- +-47 +89 query I rowsort SELECT ALL 73 col0 @@ -4479,8 +4517,11 @@ SELECT - - ( 38 ) * + + 73 + + SUM ( ALL - 45 ) / 85, 97 - + COUNT ( * ) AS col0 # 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\(26\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 26 AS col1, 91 AS col1 +---- +26 +91 query II rowsort label-850 SELECT ALL + - COUNT ( * ), SUM ( 63 ) * - 63 + 49 AS col1 @@ -5055,8 +5096,11 @@ SELECT ALL 25 * + + 63 * - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 414 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col1" at position 0 and "Int64\(7\) \* Int64\(53\) \+ Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 30 AS col1, + 7 * + 53 + 43 col1 +---- +-30 +414 query I rowsort SELECT - 70 * 76 + + - 88 @@ -5123,8 +5167,11 @@ SELECT ALL - + 48 + - 16 + - - CAST ( + - 67 AS INTEGER ) # 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 "Int64\(90\) AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90 AS col2, + 74 AS col2 +---- +74 +90 query I rowsort label-974 SELECT - - 42 / + + COUNT ( * ) + - 50 + - COUNT ( * ) - 24 * + + 82 * + SUM ( ALL 70 ) - + - 92 AS col0 @@ -5283,8 +5330,11 @@ SELECT + - 82 * + SUM ( DISTINCT 93 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ Int64\(42\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 30 + 42 AS col0, 4 AS col0 +---- +4 +72 query I rowsort label-1005 SELECT - + CAST ( - 56 AS INTEGER ) AS col2 @@ -5538,8 +5588,12 @@ SELECT 45 * - 89 # Datafusion - Expected - 45 # Datafusion - Expected - -38 # Datafusion - Expected - -4233 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \+ Int64\(39\) \+ \(\- Int64\(\-64\)\) / Int64\(88\) AS col1" at position 1 and "nullif\(Int64\(14\), Int64\(14\) \+ \(\- Int64\(1\)\) \+ CASE Int64\(10\) WHEN Int64\(\-76\) \+ Int64\(\-82\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-56\) END \+ \(\- CAST\(Int64\(\-25\) AS Int32\)\)\) \* Int64\(0\) \- Int64\(\-96\) \+ Int64\(\-3\) \+ Int64\(90\) \+ Int64\(69\) \* Int64\(\-64\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-38 +-4233 +45 query I rowsort label-1054 SELECT ALL + COUNT ( * ) + - 30 @@ -5754,8 +5808,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * + 88 * + 49 * - 89 AS col2, 85 + + 76 * - 63 AS col2 +---- +-4703 +383768 query I rowsort label-1095 SELECT + 71 + + CASE - 54 WHEN - 71 THEN NULL ELSE ( + ( + + 18 ) ) + + COUNT ( * ) END AS col2 @@ -5942,8 +5999,11 @@ SELECT 51 * + - 58 + + + 90 * + MAX ( DISTINCT - 26 ), + 0 * + 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col1" at position 0 and "coalesce\(Int64\(51\), CAST\(\(\- Int64\(93\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 38 AS col1, COALESCE ( 51, CAST ( - ( 93 ) AS INTEGER ) ) AS col1 +---- +-38 +51 query I rowsort label-1130 SELECT ALL - + 69 + + 40 * COUNT ( * ) AS col2 @@ -6262,8 +6322,11 @@ SELECT ALL - + NULLIF ( + + 31, + ( + 52 ) ) * 63 + - - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "\(\- coalesce\(Int64\(9\), Int64\(\-58\) \+ Int64\(95\) \* Int64\(80\)\)\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 11 ) AS col2, - COALESCE ( + 9, - 58 + 95 * + 80 ) + + CAST ( NULL AS INTEGER ) AS col2 +---- +11 +NULL query I rowsort label-1191 SELECT COUNT ( ALL - 31 ) @@ -6818,8 +6881,11 @@ NULL # 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 col2" at position 0 and "Int64\(\-68\) / Int64\(84\) \* \(\- Int64\(\-56\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 33 AS col2, - 68 / 84 * - - 56 col2 +---- +-33 +0 query I rowsort label-1296 SELECT - COUNT ( * ) * + COUNT ( * ) + + 39 + + NULLIF ( - 37, - - 54 ) * + COUNT ( * ) @@ -7044,8 +7110,11 @@ SELECT - + 35 * - + 36 * 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 4 AS col2, COUNT ( * ) AS col2 +---- +-4 +1 query I rowsort label-1339 SELECT ALL - 71 / COUNT ( * ) @@ -8061,8 +8130,11 @@ SELECT ALL - 74 * - - 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - 121 # Datafusion - Expected - 685 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ Int64\(23\) AS col2" at position 0 and "Int64\(11\) \* Int64\(59\) \+ min\(Int64\(36\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 + + 23 AS col2, 11 * 59 + + MIN ( 36 ) AS col2 +---- +121 +685 query I rowsort SELECT 8 + - - 49 @@ -8134,8 +8206,11 @@ SELECT + 6 * + 42, + 10 AS col0 # 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\(2\) \* Int64\(\-39\) 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 II valuesort SELECT 2 * - 39 AS col2, + MIN ( ALL - - 16 ) AS col2 +---- +-78 +16 query I rowsort label-1546 SELECT + 81 * + SUM ( DISTINCT - 25 ) @@ -8765,8 +8840,11 @@ SELECT ALL 83, + 37 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col1" at position 0 and "Int64\(\-92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 85 AS col1, - 92 col1 +---- +-92 +85 query II rowsort SELECT 19 AS col1, 11 * 79 AS col0 @@ -8831,8 +8909,11 @@ SELECT ALL + ( + 45 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ \(\- CAST\(NULL AS Int32\)\) \* min\(Int64\(\-12\)\) \* Int64\(\-62\) \+ Int64\(4\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 55 + + - CAST ( NULL AS INTEGER ) * MIN ( + - 12 ) * + - 62 + 4 AS col1, 51 AS col1 +---- +51 +NULL query II rowsort label-1679 SELECT + CASE + 94 WHEN - 68 - 15 * - 9 * - 10 THEN NULL ELSE + - COUNT ( * ) END AS col2, 30 + 88 * + - 82 AS col1 @@ -9205,8 +9286,11 @@ 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\(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\. +query II valuesort SELECT ALL NULLIF ( - COUNT ( * ), - + 30 ) AS col2, - COUNT ( * ) - - 49 + COUNT ( * ) + 24 + 30 + - 32 / ( ( + 69 ) ) AS col2 +---- +-1 +103 query I rowsort SELECT - + ( - 92 ) + + + 33 @@ -9326,8 +9410,11 @@ 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\(1\)\) AS count\(\*\), Int64\(51\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 * + - 92 AS col2, + 88 + - + COALESCE ( + COUNT ( * ), 51 ) AS col2 +---- +0 +87 query I rowsort SELECT ALL - 14 * - 37 + + - 16 @@ -9337,8 +9424,11 @@ SELECT ALL - 14 * - 37 + + - 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2225 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(91\)\)\) \- Int64\(22\) \* Int64\(97\) AS col0" at position 0 and "CASE \(\- Int64\(\-95\)\) WHEN Int64\(49\) THEN Int64\(\-26\) END \+ Int64\(\-69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MAX ( DISTINCT + 91 ) - + + 22 * + 97 AS col0, + CASE - - 95 WHEN + 49 THEN - 26 END + + - 69 AS col0 +---- +-2225 +NULL query I rowsort label-1775 SELECT ALL 63 - COALESCE ( - - 85, + CAST ( NULL AS INTEGER ) * + COUNT ( * ), 73 ) AS col2 @@ -9680,8 +9770,11 @@ SELECT ALL + - COALESCE ( - 69, - 19 + + 56 * - - 62 + 19 * - 85 ) * 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0 +---- +-1 +NULL query I rowsort SELECT ALL - 75 * + + 24 * + 48 * - 88 @@ -9691,8 +9784,11 @@ SELECT ALL - 75 * + + 24 * + 48 * - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col1" at position 0 and "Int64\(35\) \+ Int64\(\-42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 41 AS col1, 35 + - 42 AS col1 +---- +-41 +-7 query I rowsort SELECT ALL + ( - 90 ) @@ -9923,8 +10019,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "Int64\(3\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(91\) \- Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 99 AS col1, + 3 * - CAST ( NULL AS INTEGER ) + + + 91 - 12 AS col1 +---- +99 +NULL query I rowsort SELECT DISTINCT + 90 * 91 AS col2 @@ -9997,8 +10096,11 @@ SELECT ALL 31, COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 32 AS col2, + 78 AS col2 +---- +-32 +78 query I rowsort label-1900 SELECT ALL 45 - - 11 * 63 - COUNT ( * ) * + + 85 * 49 / - - 94 AS col0 @@ -10046,8 +10148,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ), COUNT ( * ) +---- +1 +1 query II rowsort SELECT DISTINCT - 66 AS col0, + ( 57 ) * - - 76 @@ -10944,8 +11049,11 @@ SELECT ALL + ( + MAX ( DISTINCT - + 39 ) ) col1 # 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 "Int64\(0\) AS col1" at position 0 and "Int64\(82\) \+ Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 AS col1, 82 + 9 AS col1 +---- +0 +91 query I rowsort SELECT + - 89 - 16 - 45 AS col1 @@ -11422,8 +11530,11 @@ SELECT ALL - 65 + + 91 + + + 13 + 82 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col0" at position 0 and "Int64\(29\) \+ Int64\(\-49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 98 AS col0, + 29 + - 49 AS col0 +---- +-20 +-98 query II rowsort label-2176 SELECT 76 + 95 AS col1, + CASE WHEN ( - 71 ) IS NULL THEN - ( 19 ) - + COUNT ( * ) END * + 60 @@ -11481,8 +11592,11 @@ SELECT ALL - COALESCE ( - - 21, - 51 + + ( CASE + 69 WHEN 21 + 42 THEN - ( + 6 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col0" at position 0 and "Int64\(60\) / Int64\(\-96\) \* Int64\(53\) \- nullif\(Int64\(12\), Int64\(4\) \+ CAST\(Int64\(\-15\) \- Int64\(3\) AS Int32\) \* avg\(CAST\(NULL AS Int32\) \* nullif\(Int64\(69\), Int64\(31\) \* CAST\(NULL AS Int32\)\) \+ Int64\(45\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT - 82 AS col0, + 60 / - 96 * 53 - NULLIF ( 12, 4 + CAST ( - 15 - + 3 AS INTEGER ) * + AVG ( ALL CAST ( NULL AS INTEGER ) * + NULLIF ( ( 69 ), + ( 31 ) * CAST ( NULL AS INTEGER ) ) + 45 ) ) AS col0 +---- +-12 +-82 query II rowsort SELECT ALL - 94, + 40 * - 52 AS col0 @@ -11602,8 +11716,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 48 AS col2, COUNT ( * ) + - 84 AS col2 +---- +-48 +-83 query I rowsort label-2209 SELECT 7 + - COUNT ( * ) * - + ( + 20 ) @@ -11642,8 +11759,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 * + - COUNT ( * ) AS col2, - COUNT ( * ) AS col2 +---- +-1 +-24 query I rowsort SELECT DISTINCT + 16 * + + 28 AS col1 @@ -11694,8 +11814,11 @@ SELECT 8 * + COUNT ( * ) * + + 57 - - NULLIF ( - COUNT ( * ), 60 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -15960 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) \* Int64\(20\) \* Int64\(14\) AS col0" at position 0 and "Int64\(3\) / Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 57 * 20 * 14 AS col0, + ( + 3 ) / 94 AS col0 +---- +-15960 +0 query I rowsort SELECT ALL + ( - + 74 ) @@ -11969,8 +12092,11 @@ SELECT ALL - 16 * - 25 col0, - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8075 # Datafusion - Expected - -7191 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* Int64\(85\) AS col2" at position 0 and "Int64\(87\) \+ Int64\(2\) \+ Int64\(\-91\) \* Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 95 * 85 AS col2, 87 + 2 + - 91 * + 80 AS col2 +---- +-7191 +8075 query I rowsort SELECT 30 + + + 12 - - + 40 @@ -12094,8 +12220,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(58\)\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( + + 58 ) AS col1, 53 AS col1 +---- +53 +58 query I rowsort SELECT ALL 20 * - - 93 AS col1 @@ -12299,8 +12428,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 76 col2, - COUNT ( * ) AS col2 +---- +-1 +76 query I rowsort SELECT + ( + + 10 ) * - - 87 + + 93 AS col0 @@ -12326,8 +12458,11 @@ SELECT - 9 AS col2, + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col2" at position 0 and "Int64\(0\) \+ Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 27 AS col2, + 0 + + 33 AS col2 +---- +-27 +33 query I rowsort label-2347 SELECT ALL + 60 / + COUNT ( * ) @@ -12400,8 +12535,11 @@ SELECT - COUNT ( * ) * + + COUNT ( * ) * + 31 * + 80 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 70 AS col0, + 80 col0 +---- +70 +80 query I rowsort label-2361 SELECT DISTINCT 75 + 80 / - - 65 @@ -12529,8 +12667,11 @@ SELECT ALL + 24, - 87 AS col2 # 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 "Int64\(98\) AS col1" at position 0 and "Int64\(36\) \+ Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 98 col1, 36 + + 48 AS col1 +---- +84 +98 query I rowsort SELECT ALL 38 * + 88 @@ -12626,8 +12767,11 @@ SELECT ALL NULLIF ( + + 51, - NULLIF ( - 65, 12 ) - - - 82 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 138 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \- Int64\(\-76\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 62 - - 76 AS col0, 0 col0 +---- +0 +138 query I rowsort SELECT ALL 23 * 38 * - 90 * 26 @@ -12688,8 +12832,11 @@ SELECT + SUM ( - - 87 ) + 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(42\) \+ Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 * + COUNT ( * ) AS col2, + ( 42 ) + 12 col2 +---- +-70 +54 query I rowsort SELECT ALL + 93 * 87 * - - 76 * 36 * - 20 + + 82 - + 59 - 16 AS col2 @@ -12721,8 +12868,11 @@ SELECT + + COALESCE ( - 52, + 51 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - -15 -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 "nullif\(Int64\(0\), Int64\(88\)\) \* \(\- Int64\(\-59\)\) \- Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 19 + + 26 AS col2, NULLIF ( + 0, + 88 ) * - - 59 - + 15 AS col2 +---- +-15 +45 query I rowsort SELECT DISTINCT - - 94 col0 @@ -12836,8 +12986,11 @@ 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 "Int64\(16\) 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 II valuesort SELECT DISTINCT 16 col0, + 76 / + + 60 AS col0 +---- +1 +16 query I rowsort label-2444 SELECT - 68 * + CAST ( NULL AS INTEGER ) @@ -13179,8 +13332,11 @@ SELECT 83 * MAX ( - 19 ) / - 68 - - + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 77 col0, 42 AS col0 +---- +42 +77 query I rowsort label-2510 SELECT ALL 92 + + - MIN ( + 17 ) / - 15 AS col2 @@ -13236,8 +13392,11 @@ SELECT DISTINCT - + 75 * + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 78 col2, - 49 AS col2 +---- +-49 +78 query I rowsort label-2521 SELECT COUNT ( DISTINCT 0 ) AS col1 @@ -13512,8 +13671,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 706 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-12\)\) \* Int64\(63\) \+ Int64\(\-50\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 12 * + 63 + + - 50 AS col0, 31 AS col0 +---- +31 +706 query I rowsort SELECT + 85 * 54 @@ -13558,8 +13720,11 @@ SELECT 13 * - 93 * + + 3 * - - 24 * - - 71 + + 35 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 86 AS col1, 73 AS col1 +---- +-86 +73 query I rowsort SELECT DISTINCT 88 * + 90 col2 @@ -13575,8 +13740,11 @@ SELECT 18, 38 * - 83 * - ( - 86 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 46 AS col0, 79 AS col0 +---- +46 +79 query I rowsort label-2585 SELECT ALL + 5 + SUM ( + 16 ) - - 48 AS col2 @@ -13744,8 +13912,11 @@ SELECT + 69 * + 87 AS col1, MAX ( DISTINCT + + 77 ) + - ( 35 ) / - - 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 25 -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 "Int64\(84\) \+ Int64\(\-59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 75 + - 52 col0, + 84 + + - 59 AS col0 +---- +23 +25 query I rowsort SELECT ALL 81 + 52 AS col2 @@ -13909,8 +14080,11 @@ SELECT 82 + 22 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 5280 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "Int64\(55\) \* Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 26 AS col1, + 55 * + + 96 AS col1 +---- +26 +5280 query I rowsort SELECT 89 * - - 24 @@ -14015,14 +14189,20 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, MIN ( - - NULLIF ( 19, - - 66 + + - 32 ) ) + - 67 AS col1 +---- +-1 +-48 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col2" at position 0 and "Int64\(43\) \+ Int64\(22\) \+ Int64\(32\) \+ Int64\(80\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-71\) \* \(\- Int64\(51\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 45 AS col2, 43 + + + 22 + 32 + + 80 * + - CAST ( NULL AS INTEGER ) * - 71 * + - ( 51 ) + - - COUNT ( * ) * + 55 AS col2 +---- +-45 +NULL query I rowsort SELECT 9 - 12 * - 94 AS col2 @@ -14274,8 +14454,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 30 + + 60 AS col0, 17 + - COUNT ( * ) AS col0 +---- +16 +30 query I rowsort SELECT - + 61 * + 10 * + 2 * - + 18 * COALESCE ( + + ( 11 ), - - 77 * - - 32 ) @@ -14872,8 +15055,11 @@ SELECT 18 + + + 54 * + + 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 AS col0, + 17 AS col0 +---- +17 +78 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -15349,8 +15535,11 @@ SELECT DISTINCT + CASE CASE 64 WHEN - - 6 + 30 THEN + + 89 / - 2 ELSE NULL END W # 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 "Int64\(\-84\) / Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 38 AS col2, - 84 / 98 col2 +---- +0 +38 query I rowsort label-2921 SELECT 18 + MAX ( - 79 ) @@ -15502,8 +15691,11 @@ SELECT - COUNT ( - 34 ) + - 31 + + ( - + COUNT ( * ) ) + 23 / - - 82 * 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - 124 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col0" at position 0 and "Int64\(73\) \- Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 89 AS col0, 73 - + - 51 AS col0 +---- +-89 +124 query I rowsort SELECT - + 67 col2 @@ -15768,8 +15960,11 @@ SELECT - ( - - COUNT ( * ) ) / - - MIN ( 10 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1389 # Datafusion - Expected - 2809 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* Int64\(56\) \- Int64\(67\) AS col1" at position 0 and "Int64\(\-53\) \* Int64\(\-53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 26 * 56 - + 67 AS col1, - 53 * + ( + - 53 ) AS col1 +---- +1389 +2809 query I rowsort label-3001 SELECT ALL + 63 * + 65 * COUNT ( * ) - - COUNT ( * ) + + SUM ( ALL + 77 ) + 25 + - MAX ( + 88 ) - - 79 AS col1 @@ -16804,8 +16999,11 @@ SELECT 77 * + 34 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "Int64\(78\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 14 AS col0, 78 * + CAST ( NULL AS INTEGER ) AS col0 +---- +14 +NULL query I rowsort SELECT 15 + 22 @@ -16830,8 +17028,11 @@ SELECT NULLIF ( - + SUM ( - + 15 ), - CASE - 57 WHEN - 4 + - 18 + - 47 THEN + 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 70 AS col2, 66 AS col2 +---- +66 +70 query I rowsort label-3204 SELECT ALL + + 27 / 33 * + COUNT ( * ) col0 @@ -17062,8 +17263,11 @@ SELECT DISTINCT - MIN ( + 88 ) * + 51 * + - 53 + + 72 + + + 35 + + 72 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \+ Int64\(\-19\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 31 + - 19 AS col2, + 0 AS col2 +---- +-50 +0 query I rowsort SELECT ALL 46 + + 67 AS col2 @@ -17209,8 +17413,11 @@ SELECT ALL - - 44 * - 66 + 65 + + + 85 * - 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, COUNT ( * ) / + 23 AS col0 +---- +0 +1 query II rowsort label-3276 SELECT + - 32, - COUNT ( * ) / 97 AS col2 @@ -17486,8 +17693,11 @@ SELECT 70 * + 58 + 62 - 78 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(44\)\) AS col1" at position 0 and "Int64\(\-53\) \+ \(\- Int64\(\-71\)\) \+ Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 44 AS col1, - 53 + - ( + - 71 ) + - 35 AS col1 +---- +-17 +-44 query I rowsort label-3329 SELECT ALL - MIN ( + 34 ) AS col2 @@ -17572,8 +17782,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 10 - - COUNT ( * ) AS col1, 43 AS col1 +---- +11 +43 query I rowsort SELECT - 92 * - - 78 AS col2 @@ -17583,8 +17796,11 @@ SELECT - 92 * - - 78 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 3212 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "Int64\(44\) \* \(\- Int64\(\-73\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 AS col2, + 44 * - - 73 AS col2 +---- +3212 +6 query I rowsort label-3348 SELECT DISTINCT COUNT ( * ) + - + NULLIF ( + COUNT ( * ), + COUNT ( * ) ) + + 8 AS col0 @@ -17632,8 +17848,11 @@ SELECT DISTINCT + 89 AS col2, - SUM ( + 72 ) - 65, - - 30 * 93 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col2" at position 0 and "Int64\(11\) \+ \(\- Int64\(35\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 99 AS col2, 11 + - + 35 AS col2 +---- +-24 +-99 query II rowsort SELECT + + 92, ( + - 76 ) AS col0 @@ -17927,8 +18146,11 @@ SELECT 34 - ( - MAX ( + 84 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\)" at position 0 and "Int64\(62\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 62, + 62 +---- +62 +62 query II rowsort SELECT ALL 64 col2, + 32 @@ -18047,8 +18269,11 @@ SELECT DISTINCT - CASE WHEN NULL IS NULL THEN COUNT ( * ) ELSE NULL END AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \- Int64\(\-26\) AS col2" at position 0 and "\(\- nullif\(Int64\(70\), count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\)\)\) \+ Int64\(\-26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 - - 26 AS col2, - NULLIF ( + 70, COUNT ( * ) + CAST ( NULL AS INTEGER ) ) + - 26 AS col2 +---- +-96 +70 query I rowsort label-3436 SELECT ALL - CAST ( + 88 AS INTEGER ) * - 80 * + 74 @@ -18539,8 +18764,11 @@ SELECT + 21 + + 0 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "Int64\(\-58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 81 AS col0, - 58 col0 +---- +-58 +81 query I rowsort label-3532 SELECT DISTINCT + COUNT ( * ) - + 48 + + 90 - - 25 + + + ( + 68 ) / CAST ( NULL AS INTEGER ) / + SUM ( DISTINCT + - 17 ) - NULLIF ( + 35, - 39 / 70 ) * ( + 48 ) * 10 * 77 + - 85 AS col1 @@ -18749,8 +18977,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - SUM ( + 50 ) AS col2, + ( + COUNT ( * ) ) * - 7 AS col2 +---- +-7 +50 query I rowsort SELECT - + 16 col0 @@ -18909,8 +19140,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col0, + MAX ( ALL - 47 ) AS col0 +---- +-1 +-47 query I rowsort SELECT - 76 + - - 47 @@ -20583,8 +20817,11 @@ SELECT ALL 2 * - CAST ( - ( + - NULLIF ( 93, 28 + - + ( 41 ) - + CAST ( NULL AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 126 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ Int64\(33\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 + 33 AS col2, 24 AS col2 +---- +126 +24 query I rowsort SELECT - ( - 40 ) * + 89 + + 74 * + 63 @@ -21315,8 +21552,11 @@ SELECT - 55 * - 2 * + 91 AS col2 # 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 "\(\- min\(Int64\(44\)\)\) \+ \(\- count\(Int64\(\-98\)\)\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( + 44 ) + - COUNT ( ALL - 98 ) AS col2, ( + 36 ) AS col2 +---- +-45 +36 query I rowsort SELECT + - 84 col0 @@ -22386,8 +22626,11 @@ SELECT - NULLIF ( - 41, COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 96 AS col1, 0 AS col1 +---- +0 +96 query I rowsort label-4273 SELECT CAST ( - 49 AS INTEGER ) AS col1 @@ -22557,8 +22800,11 @@ SELECT DISTINCT - MAX ( ALL - + 27 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(97\), Int64\(\-50\) \* \(\- coalesce\(\(\- \(\- Int64\(\-47\)\)\), Int64\(\-81\) \+ nullif\(CAST\(NULL AS Int32\), Int64\(77\) \+ Int64\(\-14\) \+ coalesce\(Int64\(\-60\), count\(Int64\(1\)\) AS count\(\*\)\)\) / Int64\(19\)\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COALESCE ( + 97, - 50 * - COALESCE ( - + ( - - 47 ), - 81 + NULLIF ( + CAST ( NULL AS INTEGER ), 77 + - 14 + + COALESCE ( - 60, + COUNT ( * ) ) ) / + 19 ) ) AS col0, + COUNT ( * ) AS col0 +---- +-97 +1 query I rowsort label-4306 SELECT 40 * - COUNT ( * ) AS col2 @@ -22922,8 +23168,11 @@ SELECT ALL 78 / - + 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(29\) AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + 29 AS INTEGER ) AS col2, + COUNT ( * ) AS col2 +---- +1 +29 query II rowsort label-4376 SELECT ALL + COUNT ( * ) AS col0, + 26 AS col1 @@ -24088,8 +24337,11 @@ SELECT ( + 50 ) / MIN ( DISTINCT + 98 ) * - 0 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \- Int64\(7\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- Int64\(83\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 22 - 7 AS col1, CAST ( NULL AS INTEGER ) + - + ( + + 83 ) AS col1 +---- +15 +NULL query I rowsort SELECT DISTINCT + 58 * 26 * 56 - 87 @@ -24136,8 +24388,11 @@ SELECT + + 12 + 58 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 109 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-87\) AS Int32\) AS col0" at position 0 and "Int64\(50\) \+ Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - 87 AS INTEGER ) AS col0, + 50 + 59 col0 +---- +-87 +109 query I rowsort label-4606 SELECT + - 49 * + - COUNT ( * ) - + 90 + + COUNT ( * ) @@ -24256,8 +24511,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 79 * + 6 - - COUNT ( * ) AS col2, 76 / - - 16 + - 88 - + COUNT ( ALL + 36 ) * + COUNT ( * ) + - 10 AS col2 +---- +-473 +-95 query II rowsort SELECT + 53 * + 87 * - 82 - - + 33 * - ( 33 ) AS col1, - 41 AS col2 @@ -24386,8 +24644,11 @@ SELECT ALL + 71 / + 88 + + 7 + 75 * + 22 * + + 75 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ Int64\(\-49\) AS col2" at position 0 and "Int64\(\-23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 85 + + - 49 AS col2, - 23 col2 +---- +-23 +36 query I rowsort label-4653 SELECT ALL + 94 / - 10 + CAST ( - ( + - 53 ) AS INTEGER ) + - 78 @@ -24778,8 +25039,11 @@ SELECT ALL + 15 - - 60 + 11 + - 40 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 650 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col2" at position 0 and "Int64\(10\) \* Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 9 AS col2, 10 * 65 AS col2 +---- +-9 +650 query II rowsort label-4727 SELECT COALESCE ( - + 19, COUNT ( * ), - + COUNT ( * ) * - + 89 / - 31 ) AS col0, 57 AS col2 @@ -25222,8 +25486,11 @@ SELECT DISTINCT - + CAST ( - + 27 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 833 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(89\) \* \(\- CASE Int64\(\-88\) WHEN Int64\(96\) THEN NULL WHEN avg\(DISTINCT Int64\(93\)\) \+ Int64\(5\) THEN NULL ELSE \(\- Int64\(0\)\) END\) / Int64\(\-85\) \+ \(\- Int64\(5\)\) \+ Int64\(20\) \* Int64\(42\) \+ Int64\(43\) / sum\(Int64\(\-18\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1 +833 query I rowsort label-4809 SELECT ALL CASE + 72 WHEN - CAST ( + - COUNT ( * ) AS INTEGER ) * + 56 * - + 29 THEN + ( + CAST ( - 1 AS INTEGER ) ) + + + 73 + + - 15 END - + - 57 AS col2 @@ -25371,8 +25638,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 95 + + 40 col0, COUNT ( * ) / 82 col0 +---- +-55 +0 query I rowsort label-4838 SELECT DISTINCT - - NULLIF ( + - COUNT ( * ), + 31 * + ( + 6 ) - - - 54 + + 0 - - 67 * + 37 + + 45 ) col2 @@ -25447,8 +25717,12 @@ NULL # Datafusion - Expected - 82 # Datafusion - Expected - 64 # Datafusion - Expected - 2561 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "Int64\(16\) \* Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 82 AS col1, + 16 * + + 4 AS col1, + 89 * 29 - + 20 +---- +2561 +64 +82 query II rowsort SELECT 17 AS col2, - 43 @@ -26508,8 +26782,11 @@ SELECT 73 + 51 AS col1, ( 76 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -756 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col1" at position 0 and "Int64\(21\) \* Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 AS col1, + 21 * - 36 AS col1 +---- +-756 +57 query I rowsort SELECT DISTINCT - NULLIF ( + 13, + 58 ) AS col2 @@ -26680,8 +26957,12 @@ 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\(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\. +query III valuesort SELECT ALL - 13, - COUNT ( * ) AS col0, 5 AS col0 +---- +-1 +-13 +5 query II rowsort SELECT 56 + - 94 + 58 * - 55 * - - 59 - 20, 4 col0 @@ -26725,8 +27006,11 @@ SELECT DISTINCT 25 * - 6 AS 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 "Int64\(1\) \* Int64\(52\) AS col1" at position 0 and "Int64\(\-37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 * 52 AS col1, - 37 AS col1 +---- +-37 +52 query I rowsort label-5090 SELECT ALL + 14 * - 36 * - - 7 * - - COUNT ( * ) AS col0 @@ -27510,8 +27794,11 @@ SELECT ALL + 81, - 76 * 66 + - COALESCE ( CAST ( NULL AS INTEGER ), 26 + - 71, ( # 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 "\(\- \(\- max\(\(\- Int64\(6\)\)\)\)\) \- \(\- count\(DISTINCT \(\- Int64\(\-38\)\)\)\) / Int64\(83\) \+ Int64\(9\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - MAX ( ALL - + 6 ) - - COUNT ( DISTINCT - - 38 ) / 83 + + + 9 AS col2, + 60 AS col2 +---- +3 +60 query I rowsort label-5241 SELECT ALL + CASE - COALESCE ( 16, 51, + 21 + - 4 - - CAST ( CASE + - MAX ( 74 ) WHEN 88 * + 19 + + 18 THEN NULL ELSE + 81 END AS INTEGER ) / + COUNT ( * ) ) WHEN - COUNT ( * ) * - - 68 * + 8 + + 31 + ( + COUNT ( * ) ) * 52 THEN - + 12 WHEN - 30 THEN - - CAST ( + 32 AS INTEGER ) END / - 25 * 49 AS col0 @@ -27521,8 +27808,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "Int64\(\-83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 99 AS col2, - 83 AS col2 +---- +-83 +99 query I rowsort SELECT + 39 * - 52 - + 37 col1 @@ -27558,8 +27848,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, 78 AS col0 +---- +-1 +78 query I rowsort label-5250 SELECT - CAST ( NULL AS INTEGER ) * - + 82 @@ -27753,8 +28046,11 @@ SELECT ALL + - COALESCE ( + 51, - 70 * + COALESCE ( + + 9, - 58 + + MIN ( - - 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 135564 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \* \(\- nullif\(Int64\(52\), \(\- Int64\(83\)\)\)\) \* min\(DISTINCT Int64\(33\)\) AS col1" at position 0 and "Int64\(\-39\) \- Int64\(\-4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 79 * - NULLIF ( + + 52, - + 83 ) * MIN ( DISTINCT + 33 ) AS col1, - 39 - - 4 AS col1 +---- +-35 +135564 query I rowsort label-5288 SELECT DISTINCT - 30 / - - 81 - + + 95 @@ -27820,8 +28116,11 @@ SELECT DISTINCT 59 / + 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col0" at position 0 and "Int64\(30\) \* Int64\(25\) / \(\- Int64\(11\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 22 AS col0, 30 * 25 / - + 11 AS col0 +---- +-68 +22 query I rowsort label-5301 SELECT DISTINCT 94 / + + 91 @@ -28049,8 +28348,11 @@ SELECT 35 * - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) \+ Int64\(23\) \+ Int64\(4\) \+ Int64\(62\) AS col2" at position 0 and "CAST\(Int64\(60\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 91 + + + 23 + + 4 + 62 AS col2, + CAST ( + 60 AS INTEGER ) AS col2 +---- +-2 +60 query I rowsort label-5344 SELECT + COUNT ( * ) - 46 @@ -28869,14 +29171,20 @@ SELECT 77 * - - MIN ( - + 28 ) + + COUNT ( * ) # 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\(91\) AS col2" at position 0 and "Int64\(\-22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 AS col2, - 22 AS col2 +---- +-22 +91 # 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 "Int64\(86\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 86 AS col1, 46 AS col1 +---- +46 +86 query I rowsort label-5503 SELECT + 37 - + - 44 / - + NULLIF ( 54, 14 ) + - ( + SUM ( DISTINCT 66 ) ) @@ -29076,8 +29384,11 @@ SELECT ALL - - 50 * 15 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-44\) AS col1" at position 0 and "Int64\(6\) / Int64\(\-31\) \- CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) / - 44 AS col1, 6 / + - 31 - + CAST ( NULL AS INTEGER ) col1 +---- +0 +NULL query I rowsort SELECT - + 9 * - 16 * + + 88 AS col0 @@ -29216,8 +29527,11 @@ SELECT + 77 - + 31 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "Int64\(68\) \- CAST\(NULL AS Float64\) \+ Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 59 AS col1, + 68 - + CAST ( NULL AS FLOAT8 ) + 92 col1 +---- +59 +NULL query I rowsort label-5569 SELECT ALL 65 * - + CAST ( 65 AS INTEGER ) * - 19 col2 @@ -30363,8 +30677,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-16\) \- Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 15 AS col1, COUNT ( * ) + - 16 - + ( + 48 ) AS col1 +---- +-63 +15 query II rowsort SELECT - + 84 AS col1, - 35 AS col0 @@ -30420,8 +30737,11 @@ SELECT + 61 - + 70 + + 0 AS col0 # 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 "\(\- sum\(Int64\(3\)\)\) AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( ALL 3 ) AS col1, 50 AS col1 +---- +-3 +50 query I rowsort label-5800 SELECT ALL CASE + 47 WHEN - - COALESCE ( + 75, COUNT ( * ) ) * 47 - - 25 THEN - - 61 - - - 59 WHEN 91 / 48 THEN + COUNT ( * ) * 24 + + 3 WHEN 78 THEN NULL END * + CASE + 34 * + 85 WHEN ( CASE 21 WHEN - 76 + - 61 * - COUNT ( * ) THEN - 32 WHEN 83 THEN NULL END ) + 9 * 88 THEN - 10 END @@ -30701,8 +31021,11 @@ SELECT + 25 + - COUNT ( - 0 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -533 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-8\), Int64\(5\) \- \(\- Int64\(22\)\)\) \* Int64\(77\) \+ Int64\(83\) AS col1" at position 0 and "Int64\(\-17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( - 8, + 5 - - + 22 ) * + + 77 + 83 AS col1, ( - 17 ) AS col1 +---- +-17 +-533 query I rowsort SELECT + - 58 * - 88 * - 28 + 25 @@ -30807,8 +31130,11 @@ SELECT ALL + 83 * 15, ( - - MIN ( DISTINCT - 89 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(86\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(13\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 21 * + + 86 + - CAST ( NULL AS INTEGER ) * + 13 AS col2, + COUNT ( * ) AS col2 +---- +1 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -30876,8 +31202,11 @@ SELECT + 16 * + - 36 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(43\)\) \+ Int64\(\-46\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(73\) \+ \(\- nullif\(Int64\(\-23\), Int64\(31\)\)\) AS col2" at position 0 and "CAST\(NULL AS Float64\) \* Int64\(77\) \* Int64\(60\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - + 43 + - 46 + COUNT ( * ) + + 73 + - + NULLIF ( - 23, 31 ) AS col2, CAST ( NULL AS FLOAT8 ) * 77 * + + 60 * + COUNT ( * ) col2 +---- +8 +NULL query I rowsort SELECT + - 89 * + 45 - - 1 - 5 @@ -30917,8 +31246,11 @@ SELECT + 19 + 85 + 61 * + CAST ( + 74 AS INTEGER ) + 8 AS col1 # 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 "Int64\(19\) / sum\(DISTINCT \(\- Int64\(\-39\)\)\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 19 / SUM ( DISTINCT - - 39 ) AS col0, 25 AS col0 +---- +0 +25 query II rowsort label-5894 SELECT ALL 81 AS col2, CAST ( 14 AS INTEGER ) @@ -31152,8 +31484,11 @@ SELECT 64 AS col0, + 53 # 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 "Int64\(99\) AS col2" at position 0 and "Int64\(60\) \+ Int64\(\-18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 col2, ( 60 ) + - 18 AS col2 +---- +42 +99 query I rowsort label-5939 SELECT - 35 - ( MIN ( DISTINCT + - 18 ) ) + 91 AS col0 @@ -31168,8 +31503,11 @@ SELECT - ( - COUNT ( CAST ( NULL AS INTEGER ) ) ) AS col1 # 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 col1" at position 0 and "Int64\(3\) \* Int64\(2\) \+ Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 22 AS col1, 3 * + 2 + + - 87 AS col1 +---- +-81 +22 query I rowsort SELECT ALL - 31 - - - ( + - 7 ) @@ -31494,8 +31832,11 @@ SELECT ALL MAX ( - 25 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 AS col0, 97 AS col0 +---- +19 +97 query I rowsort SELECT 67 - - 71 * - 21 @@ -32174,8 +32515,11 @@ SELECT 52 + + 42 + + 40 - - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col0" at position 0 and "Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 24 AS col0, 47 AS col0 +---- +24 +47 query I rowsort SELECT 1 * + + 95 + 62 @@ -32647,8 +32991,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 + - + 14 * 73 * + - 3 AS col0, - COUNT ( * ) + + 97 AS col0 +---- +3018 +96 query I rowsort SELECT ALL 88 * - - 21 * + - 62 AS col1 @@ -32856,8 +33203,11 @@ 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\(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\. +query II valuesort SELECT ALL - COALESCE ( - + 33, + - COUNT ( * ) + - ( + 74 ) - - - 13 + - 60 * 93 ) AS col2, 93 AS col2 +---- +33 +93 query I rowsort label-6261 SELECT DISTINCT - COUNT ( * ) + 70 + + - 78 + + 0 * 96 AS col1 @@ -33062,8 +33412,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 43560 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "Int64\(\-22\) \* \(\- Int64\(\-30\)\) \* CAST\(Int64\(\-66\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 16 AS col1, - 22 * - - 30 * CAST ( - 66 AS INTEGER ) AS col1 +---- +16 +43560 query II rowsort SELECT ALL + - 9 AS col2, 83 * + - 59 @@ -33171,8 +33524,11 @@ SELECT + 22 - + - 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 180 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ Int64\(82\) AS col1" at position 0 and "Int64\(15\) \- CAST\(NULL AS Int32\) \+ Int64\(\-42\) \* nullif\(Int64\(\-90\), Int64\(\-61\) \- Int64\(93\)\) \+ Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 98 + + 82 col1, 15 - CAST ( NULL AS INTEGER ) + - 42 * + NULLIF ( - 90, - 61 - 93 ) + + - 76 AS col1 +---- +180 +NULL query I rowsort label-6321 SELECT ALL + - COUNT ( * ) + - 51 @@ -33339,8 +33695,12 @@ SELECT COUNT ( * ) + - COUNT ( * ) / + ( - + 91 ) # Datafusion - Expected - 15 # Datafusion - Expected - 31 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col1" at position 0 and "\(\- nullif\(\(\- Int64\(33\)\), Int64\(99\)\)\) \+ Int64\(98\) / Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 15 col1, - NULLIF ( - + 33, 99 ) + + 98 / - 46 AS col1, + 27 AS col0 +---- +15 +27 +31 query I rowsort SELECT 37 * - + 30 @@ -33350,8 +33710,11 @@ SELECT 37 * - + 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 AS col2, + 24 col2 +---- +24 +41 query I rowsort label-6355 SELECT SUM ( ALL 73 ) @@ -33575,8 +33938,11 @@ SELECT ALL + + ( - 82 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1368 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) \* \(\- Int64\(\-18\)\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 76 * - - 18 col1, 0 AS col1 +---- +-1368 +0 query II rowsort label-6398 SELECT DISTINCT SUM ( + + 29 ) * + + COUNT ( * ) * + 96, - 25 col1 @@ -34010,8 +34376,11 @@ SELECT DISTINCT - 23 + - COUNT ( ALL 5 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - -2183 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-90\) \* CAST\(count\(DISTINCT Int64\(20\)\) AS Int32\) \+ \(\- Int64\(\-23\)\) \* \(\- CAST\(Int64\(91\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 + + - COUNT ( * ) AS col2, - 90 * + + CAST ( + COUNT ( DISTINCT + 20 ) AS INTEGER ) + - - 23 * - CAST ( + 91 AS INTEGER ) AS col2 +---- +-2183 +39 query I rowsort label-6480 SELECT ALL - COUNT ( * ) - 30 * - + NULLIF ( + 32, + 81 + - - MIN ( ALL - - 20 ) * - 19 ) * - + 93 @@ -34202,8 +34571,11 @@ 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\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-4\)\)\) \* \(\- Int64\(30\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 57 / - ( - 39 ) AS col2, NULLIF ( + + 45, - + COUNT ( * ) + - - 4 ) * - + ( 30 ) AS col2 +---- +-1 +-1350 query I rowsort label-6517 SELECT DISTINCT + COUNT ( * ) / - 40 * COUNT ( * ) AS col0 @@ -34703,8 +35075,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(32\) \* Int64\(\-31\)\) \+ \(\- Int64\(\-81\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 AS col1, COALESCE ( 89, COUNT ( - - 42 ) + - 57 - COUNT ( * ) / + 32 * - 31 ) + - ( - 81 ) AS col1 +---- +170 +54 query I rowsort SELECT 55 * + 38 AS col1 @@ -35099,8 +35474,11 @@ SELECT ALL CAST ( CAST ( ( 72 ) AS INTEGER ) AS INTEGER ) / + + 65 + - 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "Int64\(\-50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 38 col0, - 50 AS col0 +---- +-50 +38 query II rowsort label-6684 SELECT ALL - 49 * - 48 * - + 13 + - 6 AS col0, 18 / + COUNT ( * ) * + - COUNT ( * ) @@ -35504,8 +35882,11 @@ SELECT - CAST ( 89 AS INTEGER ) # 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 "Int64\(0\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 AS col2, 99 AS col2 +---- +0 +99 query I rowsort SELECT ALL + 32 + 86 col2 @@ -35663,8 +36044,11 @@ SELECT ALL 80 * - - CAST ( 8 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, + 95 AS col0 +---- +1 +95 query I rowsort SELECT ALL + 2 + + 36 @@ -36020,8 +36404,11 @@ SELECT DISTINCT 50 + - - 80 + 91 * - + 93 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -126552 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "Int64\(90\) \* Int64\(61\) \+ \(\- Int64\(\-63\)\) \+ \(\- Int64\(39\)\) \+ \(\- CAST\(Int64\(22\) AS Int32\)\) \* \(\- Int64\(\-87\)\) \* \(\- nullif\(Int64\(\-69\), \(\- Int64\(\-20\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 94 AS col2, + 90 * + 61 + - - 63 + - + 39 + - CAST ( + + 22 AS INTEGER ) * - - 87 * - NULLIF ( - 69, - - 20 ) AS col2 +---- +-126552 +94 query I rowsort label-6861 SELECT DISTINCT 78 / 54 + - 67 * 45 @@ -36118,8 +36505,11 @@ SELECT ALL 85 * ( - - 0 ) + - ( - + 82 ) / - 98 * 5 col0, SUM ( + - 56 ) + - 67 # 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 "max\(Int64\(37\)\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( ALL + 37 ) col0, 77 AS col0 +---- +37 +77 query I rowsort SELECT + 72 * + 22 + 32 - - 97 * - 78 AS col0 @@ -36699,8 +37089,12 @@ SELECT ALL - COUNT ( * ) * - 45 * + 52 # Datafusion - Expected - 4698 # Datafusion - Expected - -86 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* \(\- Int64\(\-54\)\) AS col2" at position 0 and "Int64\(43\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 87 * - - 54 AS col2, + NULLIF ( - 86, - 67 ), ( 43 ) + COUNT ( * ) col2 +---- +-86 +44 +4698 query I rowsort label-6988 SELECT ALL 90 / + - 78 + - COUNT ( * ) * + ( + + 30 ) - + + 21 col0 @@ -36776,8 +37170,11 @@ SELECT ALL 41 / 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5836 # Datafusion - Expected - -2641 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \- Int64\(\-24\) \+ Int64\(\-67\) \* Int64\(87\) \+ coalesce\(Int64\(\-31\), Int64\(\-51\)\) AS col2" at position 0 and "Int64\(\-28\) \* Int64\(96\) \+ min\(Int64\(47\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 0 - + ( - 24 ) + + - 67 * + 87 + COALESCE ( - 31, - 51 ) AS col2, - 28 * + 96 + + MIN ( ALL + + 47 ) AS col2 +---- +-2641 +-5836 query I rowsort label-7003 SELECT DISTINCT + CASE - 33 WHEN COUNT ( * ) THEN + + 25 + + 67 / - 91 - + 42 * 34 ELSE NULL END * + CAST ( - 56 AS INTEGER ) + - 96 + + MIN ( ALL 18 ) * - 90 col1 @@ -37672,8 +38069,11 @@ SELECT + + 34 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col1 +---- +1 +NULL query I rowsort label-7176 SELECT ALL + CASE - 57 WHEN - - COUNT ( * ) THEN + 54 / 82 ELSE - 73 * 0 END AS col2 @@ -37925,8 +38325,11 @@ SELECT DISTINCT 34 + + COUNT ( * ) + + + 46 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(35\) AS Int32\)\) AS col2" at position 0 and "Int64\(49\) / \(\- Int64\(68\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( + 35 AS INTEGER ) AS col2, 49 / - + 68 AS col2 +---- +-35 +0 query I rowsort label-7226 SELECT ( - - 30 ) / - - 48 @@ -38453,8 +38856,11 @@ SELECT - NULLIF ( - + ( - - 13 ), - 98 ) / 67 / 64 + - 27 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -113 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-67\)\) AS col1" at position 0 and "Int64\(\-18\) \+ Int64\(\-95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + ( - 67 ) AS col1, - 18 + - 95 AS col1 +---- +-113 +67 query I rowsort SELECT DISTINCT + 62 + + 52 @@ -39143,8 +39549,12 @@ SELECT ALL COALESCE ( + - 24, - - 39 * - COUNT ( * ) * + - 27 * ( 20 ) + - + 56 # Datafusion - Expected - -18 # Datafusion - Expected - 30 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col0" at position 1 and "Int64\(\-16\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 18, 30 col0, + - 16 AS col0 +---- +-16 +-18 +30 query I rowsort label-7462 SELECT - ( - ( + + 81 ) ) / + - 78 AS col1 @@ -39246,8 +39656,11 @@ SELECT - 73 * + - 93 + + + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2805 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* Int64\(33\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 85 * + + 33 AS col0, + 21 AS col0 +---- +21 +2805 query I rowsort label-7482 SELECT DISTINCT - COUNT ( * ) * + NULLIF ( - 93, + - 91 ) * - + 65 @@ -39393,8 +39806,11 @@ 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\(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\. +query II valuesort SELECT + COALESCE ( + COUNT ( * ), 7 ) AS col2, 78 * - + COUNT ( * ) col2 +---- +-78 +1 query I rowsort label-7510 SELECT - 75 * - CAST ( NULL AS INTEGER ) @@ -40009,8 +40425,11 @@ SELECT DISTINCT + COUNT ( * ) - 20, + CAST ( 35 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col0" at position 0 and "Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 71 AS col0, 87 AS col0 +---- +-71 +87 query II rowsort label-7628 SELECT CAST ( NULL AS INTEGER ), - ( COUNT ( * ) ) * + - 57 col0 @@ -40113,8 +40532,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 8370 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \* Int64\(90\) AS col1" at position 0 and "Int64\(32\) / Int64\(\-87\) \* Int64\(36\) \+ Int64\(\-49\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 93 * + 90 AS col1, ( ( 32 ) ) / - 87 * + 36 + - 49 + COUNT ( * ) AS col1 +---- +-48 +8370 query I rowsort label-7648 SELECT DISTINCT 57 + - COUNT ( * ) * - + 46 AS col1 @@ -40201,8 +40623,11 @@ SELECT DISTINCT + CAST ( 9 AS INTEGER ) AS col0, 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5490 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(\-90\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 61 * - 90 AS col2, 85 AS col2 +---- +-5490 +85 query I rowsort label-7664 SELECT ALL + - COUNT ( * ) * CASE + SUM ( DISTINCT 85 ) WHEN + 29 THEN NULL WHEN - NULLIF ( + 0, + 23 ) THEN - 82 END @@ -40447,8 +40872,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, 1 AS col2 +---- +-1 +1 query I rowsort label-7711 SELECT + MIN ( - ( + 98 ) ) @@ -41039,8 +41467,11 @@ SELECT + + NULLIF ( + 62, 14 ) + 83 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col0" at position 0 and "\(\- CASE Int64\(4\) WHEN Int64\(41\) \* CAST\(\(\- CASE \(\- avg\(DISTINCT Int64\(\-68\)\)\) WHEN Int64\(86\) THEN \(\- avg\(\(\- Int64\(\-97\)\)\)\) \- Int64\(\-61\) \* Int64\(\-20\) WHEN Int64\(\-60\) THEN Int64\(43\) ELSE NULL END\) AS Int32\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-1\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +9 +NULL query I rowsort SELECT ALL + 51 + + 63 @@ -41109,8 +41540,11 @@ SELECT - + 29 + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) / Int64\(\-20\) \+ \(\- Int64\(\-8\)\) \+ \(\- Int64\(12\)\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 94 / - 20 + - - 8 + - + 12 col2, ( + + 12 ) AS col2 +---- +0 +12 query I rowsort label-7834 SELECT - 57 * 48 / 67 AS col0 @@ -41204,14 +41638,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 632 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(8\) AS col0" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 79 * 8 AS col0, CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 +---- +-1 +632 # 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 79 + - 76 AS col1, + 59 - - COUNT ( * ) AS col1 +---- +3 +60 query I rowsort label-7853 SELECT - NULLIF ( - ( - + MAX ( ALL - 16 ) ), + 65 ) - - CAST ( NULL AS INTEGER ) AS col2 @@ -41319,8 +41759,11 @@ SELECT MIN ( DISTINCT - - 29 ) + + 21 # 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 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 IR valuesort SELECT + 24 AS col2, - CAST ( NULL AS FLOAT8 ) col2 +---- +24 +NULL query I rowsort SELECT ALL - 83 + 6 @@ -41831,8 +42274,11 @@ SELECT ALL 16 + 16 * - 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -2106 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \- Int64\(\-13\) AS col1" at position 0 and "Int64\(\-39\) \* \(\- Int64\(\-54\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 - + - 13 col1, - 39 * - ( - 54 ) AS col1 +---- +-2106 +73 query I rowsort label-7972 SELECT ALL + 24 / + ( + + 47 ) @@ -42039,8 +42485,12 @@ SELECT 4 + - 87 # Datafusion - Expected - 310 # Datafusion - Expected - -22 # Datafusion - Expected - 585 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ \(\- Int64\(88\)\) AS col0" at position 1 and "Int64\(\-9\) \* Int64\(\-65\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT COUNT ( * ) + 81 - - 46 / - - 79 * 71 + 19 * 12 AS col2, + 66 + ( - + 88 ) AS col0, - 9 * - 65 AS col0 +---- +-22 +310 +585 query II rowsort label-8011 SELECT ALL - MAX ( ALL + - 53 ) AS col0, 63 @@ -42056,8 +42506,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + - 93 AS col1, - 89 AS col1 +---- +-89 +-92 query I rowsort SELECT DISTINCT + 49 * + - 91 AS col1 @@ -42380,8 +42833,11 @@ SELECT - COALESCE ( + SUM ( DISTINCT + 40 ), - 9 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) / CAST\(NULL AS Int32\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 79 / + CAST ( NULL AS INTEGER ) AS col2, + CAST ( NULL AS INTEGER ) AS col2 +---- +NULL +NULL query I rowsort SELECT + 26 * + - 0 AS col1 @@ -42735,8 +43191,11 @@ 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\(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\. +query II valuesort SELECT + - 34 - + 23 col1, + 64 + - + ( - - 6 ) + + - NULLIF ( 38, + - COALESCE ( - 17, 63 * 6 * - 71 / - 35 * - - 7 + ( - 53 ) + - - 10 * - 2 ) ) + - COUNT ( * ) * + COUNT ( * ) * - 28 AS col1 +---- +-57 +48 query I rowsort SELECT ALL + 29 * - 11 @@ -42991,8 +43450,12 @@ 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\(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\. +query III valuesort SELECT ALL ( + COUNT ( * ) ) / + 12 * - 49 + - ( + 71 ) + - 88 * 64 AS col0, + 77 AS col0, COUNT ( * ) * - 97 * 95 +---- +-5703 +-9215 +77 query I rowsort SELECT + 63 * + 20 @@ -43530,8 +43993,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 93 AS col0, + CASE + 22 WHEN 45 THEN 63 WHEN + COALESCE ( - 99, COUNT ( * ) ) THEN NULL ELSE NULL END col0 +---- +93 +NULL query II rowsort SELECT ALL + 68 AS col1, 0 + + 94 @@ -43613,8 +44079,11 @@ SELECT - - 70 + - - COUNT ( * ) - + 92 * - 52 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * - 36 AS col1 +---- +-36 +NULL query I rowsort label-8312 SELECT DISTINCT 82 * + 49 + - NULLIF ( 79, - 94 ) + + COUNT ( DISTINCT - 54 ) AS col1 @@ -43649,8 +44118,11 @@ SELECT ALL NULLIF ( - 83, - 84 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col1" at position 0 and "Int64\(28\) \+ \(\- Int64\(\-27\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 50 AS col1, ( + 28 ) + - - 27 AS col1 +---- +-50 +55 query I rowsort SELECT DISTINCT - 13 - + 69 @@ -43805,8 +44277,11 @@ SELECT DISTINCT - SUM ( + - NULLIF ( + 49, 67 ) ) * - MIN ( + + 92 ) * - + 61 + # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "min\(Int64\(\-12\)\) \* CASE Int64\(\-88\) WHEN \(\- Int64\(18\)\) THEN Int64\(77\) \* Int64\(9\) \- Int64\(59\) WHEN Int64\(\-9\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 * - - CAST ( NULL AS INTEGER ) AS col1, MIN ( - 12 ) * + CASE - 88 WHEN - + 18 THEN + 77 * + 9 - 59 WHEN - 9 THEN NULL END AS col1 +---- +NULL +NULL query II rowsort SELECT - 39, 84 AS col2 @@ -43978,8 +44453,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 41 AS col0, COUNT ( * ) AS col0 +---- +1 +41 query II rowsort label-8381 SELECT 88 AS col0, - ( + COUNT ( * ) ) @@ -44087,8 +44565,11 @@ SELECT DISTINCT 91 + + - 73 + + 9 * ( + 84 ) * 75 * 25 * SUM ( DISTINCT + 55 ) + # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- Int64\(64\)\) WHEN Int64\(63\) \* Int64\(78\) \+ \(\- Int64\(\-58\)\) \* Int64\(69\) THEN NULL ELSE max\(DISTINCT Int64\(81\)\) END AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CASE - + 64 WHEN + ( + 63 ) * 78 + - - 58 * 69 THEN NULL ELSE MAX ( DISTINCT + 81 ) END AS col1, ( COUNT ( * ) ) AS col1 +---- +1 +81 query I rowsort SELECT ALL + 60 + COALESCE ( + 99, + + 4, + 4 ) + - - 69 @@ -44128,8 +44609,11 @@ SELECT ALL - 13 * + NULLIF ( - 74, 32 ) - - 3 - 53 / - - 55 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 103200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(66\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(15\) \* Int64\(80\) \* Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 66 + + COUNT ( * ) col2, 15 * 80 * 86 AS col2 +---- +-65 +103200 query I rowsort SELECT - 17 + 41 @@ -44436,8 +44920,11 @@ SELECT 2 - - - 17 * 71 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 24 AS col0, 66 col0 +---- +-24 +66 query I rowsort label-8470 SELECT ALL MIN ( - 83 ) - - + 85 @@ -44529,8 +45016,11 @@ SELECT ALL + 67 + - 69 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -800 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* Int64\(\-9\) \+ Int64\(13\) \+ Int64\(69\) AS col0" at position 0 and "Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 * + - 9 + 13 + + + 69 AS col0, - 60 AS col0 +---- +-60 +-800 query I rowsort label-8486 SELECT + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) @@ -44694,8 +45184,11 @@ SELECT ALL ( - + 81 ) * MAX ( 87 ) # 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 "Int64\(\-64\) \* Int64\(0\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 * - 0 AS col0, 21 AS col0 +---- +0 +21 query I rowsort SELECT DISTINCT + 40 * - 40 AS col0 @@ -44853,8 +45346,11 @@ SELECT - 39 + - + 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "Int64\(\-29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 36 AS col1, - 29 col1 +---- +-29 +36 query I rowsort label-8547 SELECT DISTINCT - 75 * + 25 + 82 * + 14 * - COUNT ( * ) AS col2 @@ -45155,8 +45651,12 @@ SELECT ALL + 16 * 3 AS col0 # Datafusion - Expected - 21 # Datafusion - Expected - 3880 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col2" at position 0 and "Int64\(\-40\) \* Int64\(\-97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 21 AS col2, - 40 * - 97 AS col2, CASE + - 75 WHEN - + 67 THEN NULL ELSE - + ( + - 30 ) + - + CAST ( NULL AS INTEGER ) END AS col2 +---- +21 +3880 +NULL query I rowsort SELECT ALL - 52 + - 23 col1 @@ -45806,8 +46306,11 @@ SELECT DISTINCT - COUNT ( * ) * - + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 416 # Datafusion - Expected - -140 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-16\), min\(Int64\(\-10\)\) / Int64\(50\) \+ Int64\(45\), Int64\(36\) \* \(\- max\(Int64\(45\)\)\) \* Int64\(\-8\)\)\) \* Int64\(26\) AS col1" at position 0 and "Int64\(4\) \* Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COALESCE ( - 16, + + MIN ( + - 10 ) / + + 50 + + 45, 36 * - MAX ( + 45 ) * - 8 ) * + 26 AS col1, 4 * - 35 AS col1 +---- +-140 +416 query I rowsort label-8729 SELECT DISTINCT - - MIN ( DISTINCT + 15 ) AS col0 @@ -47354,8 +47857,11 @@ 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\(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\. +query II valuesort SELECT ( - ( - COUNT ( * ) ) ) AS col0, 77 * - 99 + - - 32 * 36 AS col0 +---- +-6471 +1 query I rowsort SELECT ( - - 15 ) @@ -47479,8 +47985,11 @@ NULL # 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 "Int64\(70\) \+ Int64\(\-67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 90 col0, 70 + - 67 col0 +---- +3 +90 query I rowsort label-9056 SELECT ALL 14 * - 97 + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - 79 AS col1 @@ -47940,8 +48449,11 @@ SELECT DISTINCT 73 + - 90 + 93 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(36\)\) AS col1" at position 0 and "Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MAX ( 36 ) AS col1, 68 AS col1 +---- +36 +68 query I rowsort label-9143 SELECT - COALESCE ( - 61, + 49 / - + 31 + 80 ) @@ -48019,8 +48531,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(63\)\) AS col0" at position 0 and "Int64\(\-10\) \+ Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( - + 63 ) AS col0, - 10 + + + 8 AS col0 +---- +-2 +-63 query II rowsort SELECT ALL + + 64 AS col1, + NULLIF ( 83, 75 * + 38 ) AS col2 @@ -48481,8 +48996,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3397 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* \(\- Int64\(43\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 * - + 43 AS col1, COUNT ( * ) AS col1 +---- +-3397 +1 query I rowsort label-9246 SELECT 83 + COUNT ( * ) + - + 70 AS col2 @@ -48800,8 +49318,11 @@ 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\(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\. +query II valuesort SELECT ALL - + 18 + + - 8 + - COALESCE ( + COUNT ( + 98 ), + COUNT ( * ) ) + - 22 - - - 58 AS col0, + COALESCE ( - 77, - ( - ( + 74 ) ) * + 90 - - 77 + 13 * 88 ) col0 +---- +-107 +-77 query I rowsort label-9306 SELECT ALL - 69 + + ( + 8 ) + + COUNT ( * ) @@ -49182,8 +49703,12 @@ SELECT + 22 * 56 + + 46 + 17 / 85 + + 60 + 57 AS col0 # Datafusion - Expected - 52 # Datafusion - Expected - 12 # Datafusion - Expected - -450 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(52\)\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT MAX ( DISTINCT 52 ) AS col0, 12 AS col0, - MIN ( + 45 ) * 10 +---- +-450 +12 +52 query I rowsort label-9380 SELECT - ( + CASE + 20 WHEN 63 THEN - 19 END ) + CASE + 23 WHEN + 34 THEN + - COUNT ( * ) END + + - 1 * 67 AS col2 @@ -49258,8 +49783,11 @@ NULL # 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 col1" at position 0 and "Int64\(50\) / Int64\(\-29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 22 AS col1, 50 / - 29 AS col1 +---- +-1 +22 query I rowsort SELECT 99 * 82 AS col2 @@ -49543,8 +50071,11 @@ SELECT + 65 + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3781 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* Int64\(\-59\) \+ nullif\(Int64\(\-57\), \(\- Int64\(\-95\)\)\) \* Int64\(\-86\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 19 * - 59 + + NULLIF ( - 57, - ( - 95 ) ) * - 86 AS col2, 24 AS col2 +---- +24 +3781 query II rowsort SELECT DISTINCT 7 * + 81, - 68 AS col2 @@ -49768,8 +50299,11 @@ SELECT + 19 * - + 25 * 84 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2160 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(48\)\), Int64\(45\), Int64\(\-33\)\) \* Int64\(45\) AS col2" at position 0 and "Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COALESCE ( - + 48, 45, - 33 ) * 45 col2, - 38 AS col2 +---- +-2160 +-38 query I rowsort label-9493 SELECT + 46 * MAX ( 27 ) + - ( + COUNT ( * ) ) col1 @@ -50439,8 +50973,11 @@ SELECT 20 * - + 17 - - ( + + COUNT ( ALL - - 45 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ Int64\(\-87\) AS col1" at position 0 and "CASE Int64\(\-60\) WHEN Int64\(53\) THEN Int64\(17\) END \* CAST\(NULL AS Int32\) \* Int64\(87\) / Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 32 + - 87 AS col1, CASE + - 60 WHEN + + 53 THEN + 17 END * CAST ( NULL AS INTEGER ) * 87 / 71 AS col1 +---- +-55 +NULL query I rowsort label-9619 SELECT ALL 76 + + 89 - + 78 * + 53 * + COUNT ( DISTINCT + 78 ) AS col0 @@ -51004,8 +51541,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 col2, 81 col2 +---- +66 +81 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -51093,8 +51633,11 @@ SELECT + 39 * 44 - - 51 * - 18 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - -1379 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col2" at position 0 and "Int64\(15\) \+ Int64\(3\) \* \(\- Int64\(62\)\) \* sum\(\(\- Int64\(\-41\)\)\) \+ Int64\(\-76\) \* Int64\(\-82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 75 AS col2, 15 + + + 3 * - + 62 * SUM ( - - 41 ) + - 76 * - 82 AS col2 +---- +-1379 +-75 query I rowsort label-9743 SELECT + 22 / 53 / - - 17 @@ -51180,8 +51723,11 @@ SELECT + ( + 39 ) / + + ( + - 80 ) + 51 * + COUNT ( * ) + - + ( + 69 ) * COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \+ Int64\(41\) \+ Int64\(\-39\) \+ Int64\(\-21\) AS col1" at position 0 and "Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 + + 41 + - 39 + - 21 AS col1, - 82 AS col1 +---- +-82 +57 query I rowsort label-9760 SELECT ALL + COUNT ( * ) - + 63 AS col0 @@ -51257,8 +51803,11 @@ SELECT + 64 + 77 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -119 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ \(\- sum\(\(\- Int64\(\-90\)\)\)\) \- max\(Int64\(62\)\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 33 + - SUM ( - - 90 ) - MAX ( ALL + 62 ) AS col2, ( 71 ) AS col2 +---- +-119 +71 query II rowsort label-9774 SELECT DISTINCT + CASE + 45 WHEN ( 56 ) THEN + - COALESCE ( CAST ( NULL AS INTEGER ), + + ( - CAST ( NULL AS INTEGER ) ), - 95 / 86 * + 7 + - + 61 ) * + 40 WHEN - + 92 THEN NULL END, 73 * - + 92 + + 13 * - CAST ( NULL AS INTEGER ) @@ -51667,8 +52216,11 @@ SELECT 86 * + 64 AS col0, + 23 + + + 49 * + 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 440 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \* Int64\(20\) AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 * 20 AS col2, 40 AS col2 +---- +40 +440 query II rowsort label-9853 SELECT COUNT ( * ) + + + 86 + + + 22 + - SUM ( - + 75 ) AS col0, + 3 + COUNT ( * ) + 25 @@ -51759,8 +52311,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(Int64\(24\), Int64\(14\)\)\)\) AS col2" at position 0 and "\(\- Int64\(41\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - NULLIF ( 24, 14 ) col2, ( + + ( - + 41 ) ) col2 +---- +-41 +24 query I rowsort SELECT 51 + + 80 + - 43 AS col2 @@ -51903,8 +52458,11 @@ SELECT 83, + 55 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col0" at position 0 and "Int64\(\-13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 31 AS col0, - 13 col0 +---- +-13 +-31 query II rowsort label-9896 SELECT + - 59 * 58 * 1 AS col2, 9 * - 38 + - 49 * + + 40 + + CAST ( - + 62 AS INTEGER ) @@ -52344,8 +52902,11 @@ 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\(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\. +query II valuesort SELECT 49 + + 46 + + COUNT ( * ) * + 50 AS col0, ( - COUNT ( * ) ) AS col0 +---- +-1 +145 query I rowsort SELECT ALL - ( - + 8 ) diff --git a/data/sqlite/random/expr/slt_good_48.slt b/data/sqlite/random/expr/slt_good_48.slt index ebaf890..f4a9242 100644 --- a/data/sqlite/random/expr/slt_good_48.slt +++ b/data/sqlite/random/expr/slt_good_48.slt @@ -779,8 +779,11 @@ SELECT ALL 44 - 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 87 col2, + COUNT ( * ) col2 +---- +1 +87 query I rowsort SELECT DISTINCT - - 34 * - - 26 @@ -949,8 +952,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) * 49 col1, - COUNT ( * ) col1 +---- +-1 +-49 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -1386,8 +1392,11 @@ SELECT ALL 10 * - + 86 + 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -1426 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "Int64\(23\) \* Int64\(\-62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 col2, 23 * - 62 AS col2 +---- +-1426 +46 query II rowsort label-256 SELECT ALL - COUNT ( * ) col0, 9 * 80 @@ -1435,8 +1444,11 @@ SELECT ALL + - 39 + 9 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(79\)\) AS col0" at position 0 and "Int64\(\-13\) \- \(\- Int64\(95\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 79 AS col0, - 13 - - + 95 AS col0 +---- +-79 +82 query I rowsort label-265 SELECT DISTINCT 84 + - - MIN ( + 81 ) + + 82 + + 18 AS col0 @@ -2012,8 +2024,11 @@ SELECT ALL - ( - 55 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6600 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* \(\- Int64\(\-88\)\) AS col0" at position 0 and "Int64\(\-88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 * - - 88 AS col0, - 88 col0 +---- +-88 +6600 query I rowsort label-375 SELECT DISTINCT - COALESCE ( + + ( - + COUNT ( * ) ), + NULLIF ( + - 86, - - 47 ) + + 8 + + 4 + 6 + + 28 + 17 + - + MIN ( ALL + - 62 ) * + COALESCE ( 62, + CAST ( NULL AS INTEGER ) + + - ( + 48 ) ), 25 ) AS col1 @@ -3617,8 +3632,11 @@ SELECT ALL + + 14 col2, - 79 * 29 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -288 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \* Int64\(6\) AS col1" at position 0 and "\(\- CAST\(\(\- CASE Int64\(\-40\) WHEN Int64\(\-34\) \- Int64\(8\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN CAST\(NULL AS Int32\) \* Int64\(\-95\) \+ Int64\(4\) THEN NULL ELSE Int64\(5\) \* count\(Int64\(1\)\) AS count\(\*\) END\) AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-288 +5 query I rowsort label-685 SELECT ALL + MAX ( ALL - 18 ) * - COUNT ( * ) + 98 AS col0 @@ -4424,8 +4442,11 @@ 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\(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\. +query II valuesort SELECT + 21 AS col0, NULLIF ( + NULLIF ( 50, + + MAX ( - 53 ) * COUNT ( * ) + - ( + COUNT ( * ) ) + - ( 86 ) ), 41 ) col0 +---- +21 +50 query II rowsort label-838 SELECT 49, + ( + 3 ) / - 42 + + COUNT ( * ) * 41 * - 46 * - - 47 * 23 + + ( NULLIF ( 41, 71 ) ) * - ( + COUNT ( * ) ) col1 @@ -4488,14 +4509,20 @@ SELECT - 91 col0, - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 42 AS col2, 11 AS col2 +---- +-42 +11 # 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\(29\) / \(\- Int64\(12\)\) AS col1" at position 0 and "Int64\(\-26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 29 / - + 12 col1, - 26 col1 +---- +-2 +-26 query I rowsort label-850 SELECT ALL 73 + NULLIF ( + 37, - 74 * - NULLIF ( - 80, + 15 / - - 20 + - + 32 - - COALESCE ( + NULLIF ( - 86, + 54 * + 97 + MAX ( DISTINCT + 75 ) ), + 94 + 94, 99 ) - + 7 * + CASE 86 WHEN 55 THEN NULL WHEN - 83 * 25 + 46 THEN + 32 END + + 54 ) ) + 83 * - 82 @@ -4595,8 +4622,11 @@ 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 "Int64\(66\) \+ Int64\(\-62\) / Int64\(\-16\) AS col0" at position 0 and "Int64\(8\) / Int64\(\-61\) \* Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 + - 62 / - 16 AS col0, + 8 / - 61 * + ( - 15 ) AS col0 +---- +0 +69 query I rowsort SELECT ALL - 45 - - 23 AS col1 @@ -4621,8 +4651,11 @@ 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\(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\. +query II valuesort SELECT 53 + + 76 + - SUM ( DISTINCT + 73 ) + - + MAX ( 1 ) * + - COUNT ( * ) * + - 72 AS col2, 13 col2 +---- +-16 +13 query II rowsort label-875 SELECT DISTINCT + 63 * - 14, - MIN ( 19 ) col1 @@ -4665,8 +4698,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 27 * + 62 AS col2, 4 * - - 55 * + ( - 26 ) * + COUNT ( * ) * - 32 AS col2 +---- +1674 +183040 query I rowsort label-883 SELECT ALL + ( - + 57 ) * + COUNT ( * ) - - - 13 @@ -4681,8 +4717,11 @@ SELECT ALL - + 91 + SUM ( DISTINCT + + 50 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \+ Int64\(28\) AS col2" at position 0 and "Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 28 + + 28 AS col2, + ( - 81 ) AS col2 +---- +-81 +56 query II rowsort SELECT + ( + 35 ), 73 + CASE - 86 WHEN - - 31 THEN + 0 END AS col2 @@ -4718,8 +4757,11 @@ SELECT - SUM ( ALL - - 88 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 255 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(85\) AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 * + + 85 AS col1, 32 AS col1 +---- +255 +32 query I rowsort label-893 SELECT DISTINCT + CASE - 92 WHEN 99 THEN - + 71 * + 62 * - CAST ( NULL AS INTEGER ) * - + 84 WHEN - 81 THEN + + ( - - 39 ) END - + 8 / - + 16 AS col0 @@ -4734,8 +4776,11 @@ SELECT ALL + 49 * 48 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "count\(DISTINCT \(\- Int64\(\-70\)\)\) \* Int64\(75\) \+ Int64\(\-40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 74 AS col2, COUNT ( DISTINCT - - 70 ) * 75 + - 40 AS col2 +---- +35 +74 query II rowsort SELECT - 54 AS col1, - 87 @@ -5088,8 +5133,12 @@ SELECT - 95 + 35 AS col2, 84 * + 62 * + 4 - + + 76 # Datafusion - Expected - 1094 # Datafusion - Expected - 81 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \* nullif\(max\(DISTINCT Int64\(23\)\), Int64\(\-47\)\) \+ \(\- CAST\(Int64\(34\) AS Int32\)\) \+ Int64\(28\) \* Int64\(83\) AS col1" at position 0 and "Int64\(72\) \+ Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 52 * + NULLIF ( MAX ( DISTINCT + 23 ), - 47 ) + - CAST ( 34 AS INTEGER ) + 28 * + 83 col1, 72 + + ( + 9 ) AS col1, + 93 +---- +1094 +81 +93 query I rowsort label-963 SELECT ALL - - CAST ( NULL AS INTEGER ) * COUNT ( * ) + - CAST ( - COUNT ( * ) AS INTEGER ) col1 @@ -5295,8 +5344,11 @@ SELECT + 54 * + 62 - 46 * + 63 * 42 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -918 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \* Int64\(34\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 27 * 34 AS col0, + 35 AS col0 +---- +-918 +35 query I rowsort label-1001 SELECT 66 + COUNT ( * ) AS col0 @@ -5312,8 +5364,11 @@ SELECT ALL - 18 + + 84 AS col2, 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 AS col2, 45 col2 +---- +11 +45 query I rowsort SELECT 27 * + - 67 + + 93 @@ -5489,8 +5544,12 @@ 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\(1\)\) AS count\(\*\) \- Int64\(88\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT MIN ( ALL + + 65 ) AS col0, - 93, + COUNT ( * ) - 88 AS col0 +---- +-87 +-93 +65 query I rowsort label-1038 SELECT + 0 / COUNT ( * ) * + 10 @@ -5578,8 +5637,11 @@ SELECT ALL + COUNT ( - + 8 ), 1 # 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 "\(\- Int64\(46\)\) \+ Int64\(45\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 46 + + 45 AS col0, + ( + 7 ) AS col0 +---- +-1 +7 query I rowsort SELECT - - ( - 89 ) + + COALESCE ( 18, - 75 ) @@ -5651,8 +5713,11 @@ SELECT - - 28 - + 33 AS col1, 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-50\)\) AS col1" at position 0 and "Int64\(74\) \- Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 50 ) AS col1, 74 - + 23 AS col1 +---- +50 +51 query I rowsort SELECT - COALESCE ( + 25, + 28 ) col0 @@ -5797,8 +5862,11 @@ SELECT COUNT ( + 84 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-38\)\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 38 AS col1, 37 AS col1 +---- +37 +38 query I rowsort label-1094 SELECT + + COUNT ( * ) * 61 AS col2 @@ -6387,8 +6455,11 @@ SELECT - MIN ( + 31 ) - - 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(\-26\)\)\)\) AS col0" at position 0 and "Int64\(\-1\) \+ Int64\(\-5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - MAX ( - 26 ) col0, - 1 + - 5 col0 +---- +-26 +-6 query I rowsort label-1208 SELECT - 99 - CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col1 @@ -6807,8 +6878,11 @@ 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\(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\. +query II valuesort SELECT - + 63 * - COUNT ( * ) + + 86 - 19 AS col1, + 25 col1 +---- +130 +25 query I rowsort SELECT + - 49 * 34 + + - 51 AS col0 @@ -6930,8 +7004,11 @@ 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\(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\. +query II valuesort SELECT ALL ( 95 ) / - SUM ( - 90 ) * - COUNT ( * ) col0, + 99 + 53 AS col0 +---- +-1 +152 query I rowsort label-1312 SELECT ALL CAST ( NULL AS INTEGER ) * + 42 AS col1 @@ -7091,8 +7168,11 @@ SELECT MIN ( + COALESCE ( - 34, 26 * + 85, - 62 ) ) - + 12, 2 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -2178 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col1" at position 0 and "Int64\(66\) \* \(\- Int64\(33\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 56 col1, 66 * - + 33 AS col1 +---- +-2178 +56 query II rowsort SELECT - 57, + 85 AS col2 @@ -7426,8 +7506,11 @@ SELECT ALL ( - 14 ) + - 32 col0, - 9, - 45 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 10 col0, 83 AS col0 +---- +10 +83 query I rowsort SELECT ALL - 22 * - + 47 * 43 @@ -7534,8 +7617,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col2" at position 0 and "Int64\(63\) \* \(\- Int64\(82\)\) \* CASE Int64\(72\) WHEN Int64\(89\) THEN \(\- Int64\(53\)\) \+ Int64\(\-79\) END \* Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 25 ) AS col2, 63 * - + 82 * CASE + 72 WHEN 89 THEN - + 53 + - 79 END * + 95 AS col2 +---- +25 +NULL query I rowsort label-1425 SELECT - 30 * - MAX ( - 44 ) @@ -7570,8 +7656,11 @@ SELECT + ( - ( - 95 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -435 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(\-5\) \+ Int64\(\-2\) / Int64\(\-71\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 87 * - 5 + - 2 / - 71 AS col0, 43 AS col0 +---- +-435 +43 query I rowsort SELECT + 46 + - 10 AS col1 @@ -7637,8 +7726,11 @@ SELECT ALL + + 63 * - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2310 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* Int64\(70\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 33 * 70 AS col1, 59 AS col1 +---- +2310 +59 query I rowsort label-1445 SELECT DISTINCT + COUNT ( * ) * - 28 * + 43 AS col0 @@ -7968,8 +8060,12 @@ SELECT ALL - 33 AS col1, 80 # Datafusion - Expected - 947 # Datafusion - Expected - 100 # Datafusion - Expected - -293 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(75\)\), Int64\(48\) \+ Int64\(87\) \* coalesce\(\(\- Int64\(\-82\)\), CAST\(NULL AS Int32\) \* \(\- Int64\(\-97\)\) / Int64\(5\) \+ Int64\(90\)\) \+ Int64\(66\)\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(21\) AS col0" at position 1 and "Int64\(\-91\) \- Int64\(47\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-91\) \+ Int64\(\-66\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-293 +100 +947 query I rowsort label-1507 SELECT COUNT ( * ) * + 28 * - + 18 AS col2 @@ -7996,8 +8092,11 @@ SELECT ALL 68 AS col2, 85 - - + ( 94 ) * - COUNT ( * ) * - - 37 + 9 * + - 45 * 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 91 col1, COUNT ( * ) AS col1 +---- +1 +91 query I rowsort label-1512 SELECT DISTINCT - 89 / + ( + 71 ) @@ -8022,8 +8121,11 @@ SELECT + 51 * + 66 * - ( - - COALESCE ( - - 23, + - 16, 32 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-75\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 75 AS col0, + COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col0 +---- +75 +NULL query I rowsort label-1517 SELECT ALL + 64 + COUNT ( * ) @@ -8110,8 +8212,11 @@ SELECT ALL 12 * 13 - - 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \- \(\- Int64\(\-11\)\) \+ \(\- Int64\(14\)\) \+ \(\- CAST\(NULL AS Int32\)\) \* \(\- nullif\(\(\- Int64\(\-85\)\), Int64\(\-64\) \* max\(Int64\(\-83\)\) \+ CAST\(\(\- Int64\(15\)\) AS Int32\) \* Int64\(\-57\) \+ Int64\(72\) \* Int64\(51\) \+ Int64\(\-26\)\)\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 34 - - ( - 11 ) + - + 14 + - CAST ( NULL AS INTEGER ) * + - NULLIF ( - ( - 85 ), - 64 * + MAX ( ALL - 83 ) + + CAST ( - + 15 AS INTEGER ) * + - 57 + + 72 * + 51 + - 26 ) AS col0, + 23 AS col0 +---- +23 +NULL query II rowsort SELECT - 40 * - 51 AS col1, 87 * + - 66 @@ -8371,8 +8476,11 @@ SELECT DISTINCT - 37 + - 85 / - 62 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -940 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \+ Int64\(1\) \* Int64\(74\) \+ Int64\(84\) \+ Int64\(33\) \+ Int64\(\-30\) \* Int64\(37\) \+ CASE WHEN Int64\(70\) <= NULL THEN \(\- Int64\(51\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(75\) ELSE Int64\(62\) \+ Int64\(\-95\) END AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(47\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(10\)\) \* max\(Int64\(\-91\)\) \- Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-940 +NULL query II rowsort label-1583 SELECT DISTINCT + 46 * + - COUNT ( ALL - 66 ), ( COUNT ( * ) ) - 37 AS col2 @@ -8419,8 +8527,11 @@ SELECT ALL - 77 * 24 * + + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8232 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* Int64\(49\) \* CAST\(Int64\(21\) AS Int32\) AS col2" at position 0 and "Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 * + 49 * CAST ( + 21 AS INTEGER ) AS col2, - 30 AS col2 +---- +-30 +8232 query I rowsort label-1592 SELECT DISTINCT - 32 / + 7 / COUNT ( * ) AS col0 @@ -8934,8 +9045,11 @@ SELECT DISTINCT ( - 12 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- Int64\(\-29\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, - ( - 29 ) AS col0 +---- +1 +29 query I rowsort SELECT + - 52 + - 29 AS col0 @@ -9793,8 +9907,11 @@ SELECT - 43 * 78 + + 50 + + + 10, COUNT ( * ) * 48 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 83 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 AS col2, + 83 AS col2 +---- +83 +87 query I rowsort label-1854 SELECT DISTINCT 82 + + ( - + COUNT ( * ) ) AS col2 @@ -9923,8 +10040,11 @@ SELECT 48 + + CAST ( 80 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 117 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \+ Int64\(43\) AS col1" at position 0 and "\(\- Int64\(\-90\)\) / CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 74 + + 43 AS col1, - ( + - 90 ) / + CAST ( NULL AS INTEGER ) AS col1 +---- +117 +NULL query I rowsort label-1879 SELECT ALL + 62 + + COALESCE ( COUNT ( - 1 ), + - 5 * - 32 + + + 49 ) @@ -10031,8 +10151,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 89 AS col1, 38 col1 +---- +-89 +38 query I rowsort SELECT - 81 * 57 @@ -10128,8 +10251,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 57 AS col0, 75 * COUNT ( * ) * + COUNT ( * ) * 64 AS col0 +---- +4800 +57 query II rowsort SELECT - + 36 AS col2, + 43 AS col1 @@ -10360,8 +10486,11 @@ SELECT COUNT ( * ) - - 62 * + - 23 * + + 65 AS col2 # 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\(\-74\) / Int64\(65\) \* Int64\(59\) AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 74 / 65 * 59 AS col1, 3 col1 +---- +-59 +3 query I rowsort label-1962 SELECT ALL - MIN ( + - 7 ) @@ -10476,8 +10605,11 @@ SELECT ALL + - 48 col0, 51 * + + 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 124 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "Int64\(62\) \+ Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90 AS col0, 62 + 62 AS col0 +---- +124 +90 query I rowsort label-1984 SELECT - - COUNT ( ALL + 78 ) * + 63 AS col2 @@ -10609,8 +10741,11 @@ SELECT COUNT ( ALL - 29 ) # 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\(5\) \* Int64\(19\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 5 * 19 AS col0, 30 AS col0 +---- +30 +95 query I rowsort label-2009 SELECT - COUNT ( * ) / + CAST ( - 20 AS INTEGER ) @@ -10824,8 +10959,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 AS col2, 27 * - ( COUNT ( * ) ) AS col2 +---- +-27 +51 query I rowsort SELECT 11 + - 16 AS col0 @@ -11897,8 +12035,11 @@ SELECT ALL 76 + - MAX ( - 71 ) * + - 33 * + 0 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 261 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) \* Int64\(\-3\) AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 87 * - 3 col0, + 5 AS col0 +---- +261 +5 query I rowsort label-2258 SELECT - 5 / - + 58 @@ -12383,8 +12524,11 @@ SELECT - 83 / + 55 + 57 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 43 AS col0, + 66 AS col0 +---- +-43 +66 query I rowsort SELECT ALL 77 + + 55 * - + 74 AS col1 @@ -12623,8 +12767,11 @@ SELECT + 23 / 82 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 112 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ Int64\(\-50\) \+ nullif\(Int64\(93\), Int64\(56\) \+ Int64\(23\)\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 69 + + - 50 + NULLIF ( + 93, + 56 + + 23 ) AS col0, + 17 AS col0 +---- +112 +17 query I rowsort label-2399 SELECT + 45 + MIN ( - 4 ) - 97 AS col0 @@ -13345,8 +13492,11 @@ SELECT DISTINCT 58 AS col0, - 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 52 ) AS col0, 96 AS col0 +---- +52 +96 query I rowsort label-2538 SELECT - + MAX ( ALL - 48 ) @@ -13640,8 +13790,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 74 AS col2, COALESCE ( - 13, - - 18 / COUNT ( * ) ) AS col2 +---- +-13 +-74 query I rowsort label-2594 SELECT + CAST ( - 7 AS INTEGER ) AS col1 @@ -13749,8 +13902,11 @@ SELECT MIN ( ALL ( 62 ) ) * - 59 - + + ( 72 ) + - 41 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1860 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(62\) AS col2" at position 0 and "Int64\(13\) \+ Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 30 * + + 62 AS col2, + 13 + - 20 AS col2 +---- +-7 +1860 query I rowsort SELECT DISTINCT - ( - - 41 ) @@ -14101,8 +14257,11 @@ SELECT ALL 46 * + 36 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 AS col0, 13 AS col0 +---- +13 +66 query I rowsort label-2680 SELECT DISTINCT 75 + + COUNT ( * ) col2 @@ -14238,8 +14397,11 @@ SELECT ALL 14 * - 43 + + 42 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 18 AS col1, + 32 col1 +---- +-18 +32 query I rowsort SELECT ALL + + ( + + 0 ) @@ -14319,8 +14481,11 @@ SELECT ALL 20 + + 96 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3776 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ Int64\(\-86\) \* Int64\(44\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 + - 86 * + 44 AS col1, COUNT ( * ) AS col1 +---- +-3776 +1 query I rowsort label-2722 SELECT 79 + - NULLIF ( + - COUNT ( * ), + 41 ) col2 @@ -14401,8 +14566,11 @@ SELECT ALL + 67 + + - COUNT ( * ) + COALESCE ( + - COUNT ( * ), + 94 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\)" at position 0 and "Int64\(4\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4, + 4 +---- +4 +4 query I rowsort SELECT 99 + - 34 @@ -14960,8 +15128,11 @@ SELECT DISTINCT - 1 * 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col1" at position 0 and "\(\- Int64\(86\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 51 AS col1, - ( 86 ) AS col1 +---- +-86 +51 query I rowsort label-2844 SELECT DISTINCT - COUNT ( * ) + - - ( - + 60 ) @@ -15070,8 +15241,12 @@ SELECT 69 + - 41 # Datafusion - Expected - -28 # Datafusion - Expected - 11 # Datafusion - Expected - -111250 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 1 and "Int64\(50\) \* Int64\(\-89\) \* Int64\(25\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 28, + 11 AS col0, + 50 * - 89 * 25 AS col0 +---- +-111250 +-28 +11 query I rowsort label-2864 SELECT + SUM ( DISTINCT ( + CAST ( NULL AS INTEGER ) ) ) @@ -15302,8 +15477,11 @@ SELECT ALL + 37, 23 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 40 AS col2, + 34 AS col2 +---- +34 +40 query I rowsort label-2909 SELECT ALL 23 * 75 / MIN ( - - 3 ) + + - CAST ( NULL AS INTEGER ) - - 12 + - - 54 @@ -15344,8 +15522,12 @@ SELECT + 67 * - 19 AS col1 # Datafusion - Expected - 8248 # Datafusion - Expected - -52 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \* Int64\(89\) \+ \(\- Int64\(29\)\) AS col2" at position 0 and "Int64\(\-52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 93 * + 89 + - + 29 AS col2, - 52 AS col2, - 89 +---- +-52 +-89 +8248 query I rowsort SELECT ALL 6 * - 76 AS col2 @@ -15417,8 +15599,11 @@ SELECT DISTINCT - + 5 * - MIN ( DISTINCT - + 11 ), 96 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- min\(DISTINCT Int64\(89\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, - MIN ( DISTINCT ( + 89 ) ) AS col1 +---- +-89 +1 query I rowsort label-2931 SELECT ALL 32 / + - 60 * + - 23 + - + 70 / 40 + - 26 AS col0 @@ -15598,8 +15783,12 @@ SELECT 27 * + 40 # Datafusion - Expected - 46 # Datafusion - Expected - 1 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "Int64\(\-50\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 46 AS col0, COUNT ( ALL 0 ), - 50 AS col0 +---- +-50 +1 +46 query I rowsort label-2965 SELECT DISTINCT - CAST ( - + 54 AS INTEGER ) @@ -15655,8 +15844,12 @@ 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\(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\. +query III valuesort 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 +---- +-16 +-6030902 +-62 query I rowsort SELECT + - 6 * + + 92 + 28 AS col1 @@ -15911,8 +16104,11 @@ SELECT ALL - + 56 + - 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 160 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \+ Int64\(53\) \+ Int64\(63\) \+ Int64\(37\) \+ \(\- Int64\(67\)\) AS col0" at position 0 and "Int64\(\-55\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(93\) \* Int64\(\-15\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 74 + 53 + + 63 + + ( + 37 ) + - + 67 AS col0, - 55 + + COUNT ( * ) + 93 * - 15 * CAST ( NULL AS INTEGER ) AS col0 +---- +160 +NULL query I rowsort label-3024 SELECT - CASE + + 58 WHEN + ( + 19 ) THEN + + CAST ( - - 76 AS INTEGER ) ELSE 7 + + 58 + + 47 + + 66 END @@ -15927,8 +16123,11 @@ SELECT + 10 * - - CAST ( - AVG ( DISTINCT + + 78 ) AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( CAST ( NULL AS INTEGER ) ) AS col1, 87 AS col1 +---- +87 +NULL query II rowsort SELECT ALL CASE + 13 WHEN 64 + + 74 + + 59 THEN + 65 * - - 71 WHEN + 82 + + 52 THEN 93 ELSE - ( - 82 ) END - + 39, 17 * 43 AS col1 @@ -16077,8 +16276,11 @@ SELECT 8 + - ( + 11 ) * 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 AS col2, + 30 AS col2 +---- +30 +62 query I rowsort label-3055 SELECT 27 + COUNT ( * ) @@ -16796,8 +16998,11 @@ 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\(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\. +query II valuesort SELECT 68 * + COUNT ( * ) * - + 68 + - - 94 AS col0, 98 - 62 AS col0 +---- +-4530 +36 query I rowsort SELECT + ( - 69 ) @@ -17590,8 +17795,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2208 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \+ \(\- Int64\(68\)\) \+ \(\- count\(DISTINCT Int64\(89\)\)\) \+ Int64\(\-58\) \* sum\(DISTINCT Int64\(38\)\) AS col1" at position 0 and "Int64\(\-94\) / min\(Int64\(\-15\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 + - + 68 + - COUNT ( DISTINCT 89 ) + - 58 * + + SUM ( DISTINCT + 38 ) AS col1, - 94 / MIN ( - 15 ) AS col1 +---- +-2208 +6 query II rowsort SELECT 71 * + NULLIF ( + + 98, 19 ), + ( - 16 ) AS col2 @@ -17602,8 +17810,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 14 AS col1, - COUNT ( * ) AS col1 +---- +-1 +14 query I rowsort SELECT 61 * + + 47 @@ -17847,8 +18058,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + 14 * - CASE - 60 WHEN COUNT ( * ) THEN - ( COUNT ( * ) ) END + + 68 AS col0, - 24 * - 70 AS col0 +---- +1680 +NULL query I rowsort label-3393 SELECT ALL + MAX ( DISTINCT - ( + + 32 ) ) col1 @@ -18118,8 +18332,11 @@ SELECT ALL - ( - 16 ) * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2759 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \* Int64\(\-60\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 * + - 60 + + COUNT ( * ) AS col1, 92 col1 +---- +-2759 +92 query II rowsort label-3445 SELECT + 5 AS col2, - ( + 38 ) + - CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS INTEGER ) + 77 + 28 AS col0 @@ -18245,8 +18462,11 @@ SELECT 11 * + + COALESCE ( - CASE - - 21 WHEN 37 THEN + 98 ELSE MIN ( DISTINCT 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - -536 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \- Int64\(5\) \* Int64\(97\) \- Int64\(39\) AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 12 - + 5 * + 97 - + + 39 AS col1, 39 AS col1 +---- +-536 +39 query I rowsort label-3470 SELECT - ( + + SUM ( - + 54 ) ) + 20 AS col2 @@ -18513,8 +18733,11 @@ SELECT + NULLIF ( - 12, + 16 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 41 col1, COUNT ( * ) AS col1 +---- +1 +41 query I rowsort SELECT - 56 + - 72 * 88 AS col0 @@ -19329,8 +19552,11 @@ SELECT - 56 - + 4 col2, + 93 + 29 + 58 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -378 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "Int64\(\-54\) \* \(\- Int64\(\-7\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 99 AS col1, - 54 * - - 7 AS col1 +---- +-378 +99 query I rowsort label-3678 SELECT ALL CAST ( - + ( - + CASE 85 WHEN 76 + + - 8 THEN + 68 + 20 * 41 ELSE NULL END ) AS INTEGER ) @@ -19390,8 +19616,11 @@ SELECT DISTINCT + COUNT ( * ) AS col0, - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "Int64\(75\) \+ Int64\(51\) / Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 23 AS col1, 75 + 51 / ( + 93 ) AS col1 +---- +23 +75 query I rowsort label-3689 SELECT ALL + CASE - 80 WHEN + 41 THEN + + ( - + 73 ) * + 41 * - COUNT ( DISTINCT - + 66 ) ELSE NULL END / + SUM ( + - 47 ) + + + 11 - - - COUNT ( * ) - - + COUNT ( * ) + + 81 * - MIN ( DISTINCT 37 ) + 8 + - + 65 AS col1 @@ -19838,8 +20067,11 @@ SELECT + - 41 * + + 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "Int64\(\-52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 29 AS col1, - 52 AS col1 +---- +-52 +29 query I rowsort label-3774 SELECT + - MAX ( DISTINCT - - 11 ) @@ -20021,8 +20253,11 @@ SELECT DISTINCT - 46 * COUNT ( * ) * + 65 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6162 # Datafusion - Expected - -52210 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \* Int64\(\-77\) \+ Int64\(61\) \+ Int64\(18\) AS col2" at position 0 and "Int64\(65\) \+ \(\- Int64\(41\)\) \* Int64\(15\) \* Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 79 * + - 77 + + 61 + + 18 AS col2, + 65 + - + 41 * + 15 * + 85 AS col2 +---- +-52210 +6162 query I rowsort label-3809 SELECT + + COALESCE ( COALESCE ( + COUNT ( * ), - 37 + + - 95 * + 16, - 33 + + 41 + + - 34 ), + - CAST ( 23 AS INTEGER ) + - 59 ) @@ -20660,8 +20895,11 @@ SELECT 81 * + 88 * + 71 + 96 # 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 "Int64\(35\) AS col1" at position 0 and "Int64\(\-69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 35 col1, - 69 AS col1 +---- +-69 +35 query I rowsort label-3933 SELECT + 37 / + 11 AS col0 @@ -20743,8 +20981,11 @@ SELECT 41 AS col1, COUNT ( * ) + + - 35 / 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 1538 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "Int64\(\-37\) \+ Int64\(25\) \* Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 82 AS col1, - 37 + + + 25 * + 63 AS col1 +---- +1538 +82 query I rowsort SELECT - 24 * + 91 AS col2 @@ -20800,8 +21041,11 @@ SELECT - 99 + + - 74 - - 55 + - 1 # 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 col2" at position 0 and "Int64\(10\) / Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 94 AS col2, + 10 / + 57 AS col2 +---- +-94 +0 query II rowsort label-3960 SELECT DISTINCT COUNT ( * ), 84 AS col1 @@ -21728,8 +21972,11 @@ SELECT ALL + + 36 + COUNT ( * ) + - 6 col0, NULLIF ( + 23, - - 29 ) * COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 AS col2, + 82 AS col2 +---- +47 +82 query I rowsort label-4138 SELECT DISTINCT + 90 + - - COUNT ( * ) AS col0 @@ -21755,8 +22002,11 @@ SELECT ALL - - 58 AS col1, + 88 * + 0 * + - 56 / 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 68 AS col2, 52 AS col2 +---- +-68 +52 query II rowsort SELECT + 70, + 63 AS col0 @@ -22462,8 +22712,11 @@ SELECT - 55 / 14 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT Int64\(\-81\)\) \+ Int64\(11\) AS col0" at position 0 and "Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( DISTINCT - 81 ) + 11 AS col0, - 42 col0 +---- +-42 +12 query I rowsort SELECT DISTINCT + COALESCE ( 86, + 8 * + 48 ) col1 @@ -23528,8 +23781,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - - COUNT ( * ) ) AS col0, - 68 AS col0 +---- +-68 +1 query I rowsort SELECT + 74 + + 39 AS col2 @@ -23559,8 +23815,11 @@ SELECT DISTINCT - ( + 27 ) # 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 "Int64\(24\) \+ \(\- Int64\(73\)\) \+ \(\- Int64\(\-82\)\) / Int64\(96\) \* \(\- Int64\(\-60\)\) AS col0" at position 0 and "Int64\(37\) / Int64\(50\) \* Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 24 + - + 73 + - - 82 / + 96 * - - 60 AS col0, 37 / + 50 * + + 73 AS col0 +---- +-49 +0 query I rowsort label-4487 SELECT - + ( 4 ) * - 58 - - ( + SUM ( 48 ) ) + - + 5 / + 87 * + 32 + 59 - + 81 @@ -23958,8 +24217,11 @@ SELECT - + 4 * - 30 + - - 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, - ( + COUNT ( * ) ) / + + 60 AS col1 +---- +0 +NULL query I rowsort label-4563 SELECT ALL 5 * 28 + 20 + COUNT ( * ) + 25 * - COUNT ( * ) - 54 * 78 AS col1 @@ -23980,8 +24242,11 @@ SELECT + 85 * - 33 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) AS col2" at position 0 and "Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 67 ) AS col2, - 88 AS col2 +---- +-67 +-88 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -24019,8 +24284,11 @@ SELECT ALL COUNT ( * ) * - + 43 AS col1, - 84 + - 13 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 "count\(Int64\(\-4\)\) AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( - 4 ) AS col2, + ( + 58 ) AS col2 +---- +1 +58 query I rowsort SELECT + 60 * + 84 AS col1 @@ -24365,8 +24633,11 @@ SELECT - COUNT ( * ) * 81 * 24 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 4958 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "Int64\(67\) \* Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 22 AS col2, 67 * + 74 AS col2 +---- +22 +4958 query II rowsort label-4638 SELECT MAX ( DISTINCT + 39 ), + 74 AS col1 @@ -24652,8 +24923,11 @@ SELECT ALL + - 71 + - 65 + - SUM ( - 35 ) * - + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 648 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* \(\- CAST\(max\(Int64\(\-72\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 9 * + ( - CAST ( + MAX ( - 72 ) AS INTEGER ) ) AS col1, + 48 AS col1 +---- +48 +648 query I rowsort label-4691 SELECT - COALESCE ( - COUNT ( ALL + 62 ), + + 94 + - 30 ) AS col1 @@ -24768,8 +25042,11 @@ SELECT DISTINCT + 53 * 94 * - 77 * MAX ( - 25 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 col0, COUNT ( * ) AS col0 +---- +1 +32 query II rowsort label-4713 SELECT ( - ( - - 88 ) ) * 78 AS col0, - COUNT ( * ) @@ -24886,8 +25163,11 @@ SELECT 31 - - - 9 * 9 * - - 89 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "Int64\(42\) \+ \(\- Int64\(38\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 27 AS col0, 42 + - ( 38 ) col0 +---- +27 +4 query I rowsort label-4736 SELECT DISTINCT + NULLIF ( CAST ( 85 AS INTEGER ), + 98 * + 56 ) @@ -25055,8 +25335,11 @@ SELECT ( - COUNT ( * ) ) + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(\-64\)\)\)\) AS col1" at position 0 and "Int64\(87\) \+ \(\- Int64\(76\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - MAX ( ALL - 64 ) AS col1, 87 + - ( + 76 ) AS col1 +---- +-64 +11 query I rowsort SELECT + 8 * + 21 + 90 + - 18 AS col2 @@ -25082,8 +25365,11 @@ SELECT ALL COUNT ( * ) * - + 88 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 "Int64\(\-58\) / Int64\(46\) AS col1" at position 0 and "nullif\(Int64\(74\), Int64\(30\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 / + + 46 AS col1, NULLIF ( ( 74 ), + 30 ) AS col1 +---- +-1 +74 query I rowsort SELECT ALL + NULLIF ( - 13, - 53 ) col2 @@ -26118,8 +26404,11 @@ SELECT ALL + 1 * - 61, + 81 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - -868 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \+ Int64\(\-15\) AS col2" at position 0 and "Int64\(14\) \* Int64\(\-62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 28 + - 15 AS col2, 14 * - 62 col2 +---- +-868 +13 query I rowsort label-4971 SELECT DISTINCT 31 + - 84 * - CASE 43 WHEN COALESCE ( - AVG ( - 70 ), - + 8 * + ( - + 33 ) ) THEN NULL WHEN + 2 / + - 94 THEN - + 12 * + 74 + - COUNT ( * ) + CASE 70 WHEN 77 THEN + - NULLIF ( - 98, 3 + MAX ( - + 95 ) ) WHEN + 4 * + 43 + 55 THEN NULL ELSE + 45 END + + 97 + - + COUNT ( * ) / - + 4 END @@ -26249,8 +26538,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 70 * + - ( 19 ) AS col1, COUNT ( * ) / + 65 AS col1 +---- +-1330 +0 query I rowsort SELECT 73 * 17 AS col0 @@ -26779,8 +27071,11 @@ 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\(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\. +query II valuesort SELECT 38 / 11 + - - COUNT ( * ) - - 56 AS col1, 13 AS col1 +---- +13 +60 query I rowsort label-5097 SELECT 2 * 78 - CAST ( + + CAST ( - 41 AS INTEGER ) AS INTEGER ) + 39 + + + 87 / - NULLIF ( + 27, - 10 ) @@ -27220,8 +27515,11 @@ SELECT 88 * 41 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col1" at position 0 and "Int64\(17\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 AS col1, 17 + + COUNT ( * ) AS col1 +---- +18 +81 query I rowsort SELECT ALL ( 68 ) * + 53 AS col1 @@ -27267,8 +27565,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 65 AS col2, - COUNT ( * ) * 84 AS col2 +---- +-65 +-84 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -27344,8 +27645,11 @@ SELECT - COALESCE ( - - MAX ( DISTINCT + 15 ), + ( 24 ) ) * 75 - + + ( - 84 ) * # 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 "Int64\(\-49\) AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 49 col1, + 8 AS col1 +---- +-49 +8 query II rowsort label-5204 SELECT 36 / 59 * + COUNT ( * ) + - 86 * - 0 * + 88 col0, + COUNT ( * ) @@ -27985,8 +28289,12 @@ SELECT DISTINCT 63 * MIN ( DISTINCT + 84 ) AS col1 # Datafusion - Expected - 0 # Datafusion - Expected - -76 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-76\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 and "Int64\(44\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + ( + 20 ) + - 20, - ( - - 76 ) * + COUNT ( * ) AS col2, 44 + + COUNT ( * ) AS col2 +---- +-76 +0 +45 query I rowsort SELECT ALL - 83 + + 71 + - 63 AS col2 @@ -28011,8 +28319,11 @@ SELECT + CAST ( - - ( 77 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-96\), Int64\(\-80\)\)\) \* \(\- Int64\(\-84\)\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-38\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COALESCE ( - 96, + - 80 ) * - - 84 * - CAST ( NULL AS INTEGER ) * - 38 AS col2, COUNT ( * ) AS col2 +---- +1 +NULL query I rowsort SELECT DISTINCT - + 94 / + + 81 * + - CASE + 9 WHEN ( + 15 ) THEN + + 60 ELSE NULL END * - + NULLIF ( - 82, + 77 ) - 37 AS col0 @@ -28187,8 +28498,11 @@ SELECT DISTINCT NULLIF ( 47, + - CASE + 71 WHEN 78 THEN NULL WHEN + CAST ( NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "Int64\(55\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 92 AS col1, 55 * COUNT ( * ) AS col1 +---- +55 +92 query I rowsort SELECT + - 91 + 35 AS col0 @@ -28224,8 +28538,11 @@ SELECT - 85 * - 88 - + + 96 - + 36 * + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - 936 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(99\)\) AS col1" at position 0 and "Int64\(24\) \* Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 99 AS col1, 24 * 39 AS col1 +---- +-99 +936 query I rowsort SELECT + - 41 + 1 @@ -28536,8 +28853,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 33 * + + ( 68 ) AS col1, - COUNT ( * ) AS col1 +---- +-1 +-2244 query I rowsort SELECT DISTINCT 73 * 16 @@ -29401,8 +29721,11 @@ SELECT + 47 AS col2, + COUNT ( * ) + - 76 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - -3328 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col1" at position 0 and "Int64\(1\) \* Int64\(52\) \* Int64\(\-64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 69 AS col1, 1 * + 52 * - 64 AS col1 +---- +-3328 +69 query I rowsort label-5602 SELECT - CAST ( + 20 AS INTEGER ) * - 58 + 90 * + 75 AS col2 @@ -29482,8 +29805,11 @@ SELECT - 95 * + 11 * + 14 # 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\(1\) \* Int64\(69\) AS col1" at position 0 and "\(\- count\(\(\- Int64\(\-57\)\)\)\) / Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 1 * + 69 AS col1, - COUNT ( ALL - - 57 ) / 4 col1 +---- +0 +69 query I rowsort SELECT + CASE - - 86 WHEN - 26 THEN 40 / - 86 END AS col2 @@ -30256,8 +30582,11 @@ SELECT 71 / + + 45 - - 5 # 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 "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 30 AS col0, 0 AS col0 +---- +0 +30 query I rowsort SELECT ALL + ( 98 ) AS col2 @@ -30917,8 +31246,11 @@ SELECT ALL COUNT ( * ) * - 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53250 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(71\) \* Int64\(25\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 30 * 71 * 25 col0, COUNT ( * ) AS col0 +---- +1 +53250 query I rowsort SELECT - ( - 63 ) col2 @@ -30994,8 +31326,11 @@ SELECT DISTINCT - 19 / - - CAST ( + COUNT ( * ) AS INTEGER ) + - 22 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(34\) AS Int32\) AS col2" at position 0 and "Int64\(\-64\) \- Int64\(\-34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( 34 AS INTEGER ) AS col2, - 64 - + - 34 AS col2 +---- +-30 +34 query I rowsort label-5906 SELECT - COUNT ( * ) * 59 * + - 52 * + 73 col0 @@ -31151,8 +31486,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - -255 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "Int64\(\-51\) \* Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 53 AS col1, - 51 * ( + 5 ) AS col1 +---- +-255 +53 query II rowsort SELECT - 42, 19 * - 28 AS col0 @@ -31174,8 +31512,11 @@ SELECT ( - 76 ) * + - 69 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 5733 -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\(17\)\) \* Int64\(49\) \* Int64\(\-20\) \+ nullif\(Int64\(\-55\), sum\(DISTINCT Int64\(\-6\)\)\) \+ Int64\(72\) \* Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 0 AS col0, COUNT ( ALL + 17 ) * + 49 * - 20 + + NULLIF ( - 55, SUM ( DISTINCT + - 6 ) ) + + 72 * + 94 AS col0 +---- +0 +5733 query I rowsort label-5940 SELECT ALL 22 + + COUNT ( * ) / + - 26 * - + 14 * - 86 * COUNT ( * ) + 18 + + - 5 + - 84 * - 80 * - 59 * + - 58 @@ -31476,8 +31817,11 @@ SELECT - 4 + - COUNT ( * ) * + - COUNT ( * ) # 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 col2" at position 0 and "Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 20 AS col2, 80 AS col2 +---- +20 +80 query I rowsort label-5999 SELECT - COUNT ( * ) * - + 56 AS col1 @@ -31631,8 +31975,11 @@ SELECT MAX ( ALL - 47 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - -246 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col2" at position 0 and "Int64\(3\) \* Int64\(\-53\) \+ Int64\(\-87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 92 AS col2, + 3 * - 53 + - 87 AS col2 +---- +-246 +92 query II rowsort label-6029 SELECT - 94 AS col2, - 54 + + MIN ( ALL + 3 ) AS col0 @@ -32248,8 +32595,11 @@ SELECT + COUNT ( * ) + + 63 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(46\)\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( ( 46 ) ) AS col0, 85 AS col0 +---- +-46 +85 query I rowsort label-6146 SELECT DISTINCT ( - 43 ) * - + ( ( + 45 ) ) + + COALESCE ( - 97, - 55 - COUNT ( * ) * + - ( - 88 ) + + NULLIF ( 26, + + 74 / - 48 ) ) AS col1 @@ -32332,8 +32682,11 @@ 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\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-88\)\) \* Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 25 AS col0, 70 * - COUNT ( * ) * - - 88 * - 51 AS col0 +---- +25 +314160 query I rowsort label-6162 SELECT + COUNT ( * ) * - NULLIF ( - ( + 6 ), + + 83 ) * - + COUNT ( * ) * 99 * + 32 * - - 96 + + - 66 AS col1 @@ -32512,8 +32865,11 @@ SELECT DISTINCT 92 * + - ( 49 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 AS col1, CAST ( NULL AS INTEGER ) AS col1 +---- +78 +NULL query I rowsort label-6196 SELECT - 92 - + 30 * + COUNT ( * ) AS col2 @@ -32539,8 +32895,11 @@ SELECT ALL - COUNT ( * ) AS col1, 37 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(84\)\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 84 AS col0, + 73 col0 +---- +-84 +73 query I rowsort SELECT ALL + + 88 * - 76 AS col0 @@ -32726,8 +33085,11 @@ SELECT ALL - 35 / - - 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(29\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(46\) \+ Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - CAST ( - + 29 AS INTEGER ) AS col1, 46 + + 9 AS col1 +---- +29 +55 query I rowsort label-6237 SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 70 AS col2 @@ -32789,8 +33151,11 @@ SELECT + - 89 * + ( - 63 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -141 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \+ Int64\(\-57\) AS col1" at position 0 and "Int64\(\-21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 84 + - 57 AS col1, - 21 col1 +---- +-141 +-21 query I rowsort SELECT ALL 89 * - - 99 col1 @@ -33451,8 +33816,11 @@ SELECT ALL - 27 * - 84 * + 71 / COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 19 AS col0, 13 AS col0 +---- +-19 +13 query I rowsort label-6376 SELECT + 90 * - COUNT ( - 9 ) * - 51 * 52 @@ -33845,8 +34213,11 @@ SELECT - ( - CAST ( - 64 AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col1, COUNT ( * ) AS col1 +---- +1 +1 query I rowsort SELECT + 32 * - 74 - - + 62 AS col1 @@ -34106,8 +34477,11 @@ SELECT 68 * ( - - 21 ) + - NULLIF ( 39, - + CAST ( 13 AS FLOAT8 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2294 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \* sum\(Int64\(37\)\) AS col0" at position 0 and "Int64\(52\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 62 * + SUM ( ALL + 37 ) AS col0, 52 + + COUNT ( * ) AS col0 +---- +-2294 +53 query I rowsort SELECT - + 22 * - - 26 AS col0 @@ -34199,8 +34573,11 @@ SELECT ALL 94 + 85, 17 + + + 85 / 28 + 29 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 AS col2, - CAST ( NULL AS INTEGER ) AS col2 +---- +76 +NULL query I rowsort label-6520 SELECT - CASE - + 29 WHEN - 73 * + + 26 THEN CASE + + 43 WHEN 47 + - AVG ( + 75 ) THEN NULL ELSE - ( + + CASE + + 40 WHEN + - ( + 79 ) + + - ( + COALESCE ( 91, - + COUNT ( * ) * - COUNT ( * ) + 55 ) ) THEN + - 68 WHEN - + 18 THEN NULL ELSE NULL END ) + + + CAST ( - COUNT ( * ) AS INTEGER ) * - 32 * + 66 - - 43 * 34 * + ( 60 ) * - NULLIF ( - 11, 70 / + ( 91 * 89 ) - + 97 ) END - + 91 WHEN 75 THEN NULL END * 69 AS col2 @@ -34231,8 +34608,11 @@ SELECT - 10 + - ( - + 78 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3402 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* \(\- Int64\(\-42\)\) AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 81 * - - 42 AS col2, 44 AS col2 +---- +3402 +44 query I rowsort label-6526 SELECT ALL CASE - 71 WHEN - + 94 THEN 99 * + 2 * - 38 + + CAST ( - 97 AS INTEGER ) * + NULLIF ( + 85, + - 61 - + + 0 + + 91 ) ELSE NULL END * + - ( + + 99 ) / - COUNT ( * ) * - CAST ( NULL AS INTEGER ) @@ -34529,8 +34909,11 @@ SELECT 27 + + - 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "Int64\(\-49\) \- Int64\(\-14\) \+ \(\- count\(Int64\(13\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 AS col0, - 49 - - 14 + ( - + COUNT ( 13 ) ) AS col0 +---- +-36 +17 query I rowsort label-6582 SELECT 36 + - 10 + + 76 / COUNT ( * ) AS col0 @@ -34656,8 +35039,11 @@ SELECT ALL + MIN ( - - 41 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -424 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "Int64\(8\) \* Int64\(\-53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 60 AS col1, 8 * - 53 AS col1 +---- +-424 +60 query I rowsort SELECT - + ( - NULLIF ( 63, - 27 ) ) @@ -34714,8 +35100,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 57 + + 8 AS col0, + 80 / - - COUNT ( * ) col0 +---- +65 +80 query I rowsort label-6617 SELECT + 63 + - 33 * - SUM ( ALL - 73 ) + + NULLIF ( - COUNT ( * ), CAST ( NULL AS INTEGER ) ) @@ -34990,8 +35379,11 @@ SELECT - SUM ( ALL - 89 ) + - + COUNT ( * ) - + 84 - - - 35 + + 63 * - 96 + + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* count\(Int64\(1\)\) AS count\(\*\) \+ coalesce\(Int64\(79\), Int64\(29\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- \(\- CAST\(Int64\(93\) AS Float64\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT + 7 * + COUNT ( * ) + + + COALESCE ( + 79, + 29 ) AS col0, CAST ( NULL AS INTEGER ) * - + ( - CAST ( 93 AS FLOAT8 ) ) AS col0 +---- +86 +NULL query I rowsort label-6670 SELECT DISTINCT - MAX ( ALL + + 5 ) AS col0 @@ -35026,8 +35418,11 @@ SELECT 36 * + COUNT ( * ) * + 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -507 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "Int64\(\-39\) \* Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 AS col0, - 39 * 13 AS col0 +---- +-507 +60 query I rowsort SELECT 75 - ( 85 ) @@ -35065,8 +35460,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 34 AS col2, - COUNT ( * ) AS col2 +---- +-1 +-34 query I rowsort SELECT 61 + - 76 @@ -35426,8 +35824,11 @@ SELECT + ( + 32 ) AS col0 # 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\(68\) AS col1" at position 0 and "\(\- Int64\(45\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 68 AS col1, ( - + 45 ) AS col1 +---- +-45 +68 query I rowsort SELECT - 22 + 7 @@ -36085,8 +36486,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 131 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "nullif\(Int64\(57\), Int64\(26\) \- \(\- nullif\(\(\- Int64\(19\)\), Int64\(4\)\)\)\) \+ Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 AS col0, + NULLIF ( 57, + 26 - - NULLIF ( - + 19, 4 ) ) + + 74 AS col0 +---- +131 +56 query I rowsort label-6879 SELECT + + 13 + + 72 - + COUNT ( * ) @@ -37025,8 +37429,11 @@ SELECT ALL + ( - COUNT ( * ) ) + + + 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(32\) AS Int32\)\) \+ Int64\(\-85\) \- Int64\(\-75\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( + 32 AS INTEGER ) + - 85 - + - 75 AS col0, COUNT ( * ) AS col0 +---- +-42 +1 query I rowsort label-7057 SELECT 38 * + COUNT ( * ) @@ -37275,8 +37682,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + ( + + ( + COUNT ( * ) ) ) / + 42 AS col1, MAX ( - 62 ) / + COUNT ( * ) + - 63 AS col1 +---- +-125 +0 query I rowsort label-7104 SELECT ALL + CAST ( NULL AS INTEGER ) + - - 74 AS col0 @@ -37577,8 +37987,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(\-10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 72 AS col2, - COUNT ( * ) + ( - 10 ) AS col2 +---- +-11 +72 query I rowsort SELECT DISTINCT 3 + - 16 @@ -38557,8 +38970,11 @@ SELECT - CAST ( COUNT ( * ) AS INTEGER ) + - + 58 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 AS col1, + 83 AS col1 +---- +83 +88 query I rowsort SELECT - 86 * 92 @@ -38647,8 +39063,11 @@ SELECT + 91 col2, COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 54 AS col1, 27 col1 +---- +-54 +27 query I rowsort SELECT ALL + - ( + 25 ) AS col0 @@ -38700,8 +39119,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-41\) \+ CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + + 57 AS col2, + COUNT ( * ) * - 41 + CAST ( NULL AS FLOAT8 ) AS col2 +---- +57 +NULL query I rowsort SELECT DISTINCT + + 45 AS col0 @@ -38722,8 +39144,11 @@ SELECT + - 52 * + 56 + + 63 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1479 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-87\)\) AS Int32\) \* Int64\(17\) AS col0" at position 0 and "Int64\(\-28\) \- Int64\(72\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + + CAST ( - - 87 AS INTEGER ) ) * 17 AS col0, - 28 - 72 + + COUNT ( * ) AS col0 +---- +-99 +1479 query I rowsort label-7386 SELECT - 28 / + 22 @@ -39476,8 +39901,11 @@ SELECT 41 * + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(47\) \* CASE Int64\(\-86\) WHEN \(\- Int64\(64\)\) / Int64\(48\) THEN \(\- Int64\(\-28\)\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 76 AS col0, + CAST ( NULL AS INTEGER ) * 47 * CASE - 86 WHEN - + 64 / 48 THEN - - 28 ELSE NULL END AS col0 +---- +-76 +NULL query I rowsort SELECT 16 * 60 - + 78 AS col1 @@ -39672,8 +40100,11 @@ SELECT COUNT ( * ) - + ( + - 74 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2400 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(\-96\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 * - 96 AS col1, + 29 AS col1 +---- +-2400 +29 query I rowsort label-7566 SELECT COUNT ( * ) + + COUNT ( * ) / - 31 @@ -39684,8 +40115,12 @@ SELECT COUNT ( * ) + + COUNT ( * ) / - 31 # Datafusion - Expected - 1140 # Datafusion - Expected - 94 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col1" at position 1 and "Int64\(56\) \- Int64\(87\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 15 * + 76, 94 AS col1, + 56 - + + 87 AS col1 +---- +-31 +1140 +94 query I rowsort label-7568 SELECT 21 * - 55 + + SUM ( ALL - - 34 ) / 32 + + 45 AS col0 @@ -39905,8 +40340,11 @@ SELECT ALL 73 * + 51 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - -2640 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col1" at position 0 and "Int64\(2\) \* Int64\(96\) \* Int64\(\-14\) \+ Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 AS col1, 2 * + 96 * - 14 + 48 AS col1 +---- +-2640 +-31 query I rowsort SELECT ALL + 90 * + 6 - - CASE 5 WHEN - - COALESCE ( - 91, 26 + ( 0 ) ) THEN + 23 END col1 @@ -40124,8 +40562,11 @@ SELECT ALL 74 + 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "Int64\(\-92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 AS col1, - 92 AS col1 +---- +-92 +54 query I rowsort SELECT DISTINCT 9 + + 52 @@ -40689,8 +41130,11 @@ SELECT ALL + 48 * 10 / + CAST ( 83 AS INTEGER ) - + COUNT ( DISTINCT - 27 ) + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "Int64\(\-21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 44 AS col2, ( - 21 ) AS col2 +---- +-21 +44 query II rowsort label-7762 SELECT ALL 96 AS col1, + COUNT ( * ) * + - 35 @@ -40766,8 +41210,11 @@ SELECT + - 98 + COALESCE ( 2, - 49, - - 47 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col0" at position 0 and "Int64\(\-86\) \- Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 45 col0, - 86 - - 64 AS col0 +---- +-22 +-45 query I rowsort label-7777 SELECT ALL - + 85 + - CAST ( MIN ( ALL 37 ) AS INTEGER ) AS col0 @@ -40822,8 +41269,11 @@ SELECT ALL + + 18 + + 17 * + + 18 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 58 AS col0, 17 AS col0 +---- +17 +58 query I rowsort label-7788 SELECT - 26 / - 20 + - 93 + - 59 AS col1 @@ -40855,8 +41305,11 @@ SELECT ALL + 7 - + - ( - 44 ) # 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\(45\) / Int64\(\-33\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 45 / + - 33 AS col1, + 48 col1 +---- +-1 +48 query I rowsort label-7794 SELECT ALL - CAST ( - + 41 AS INTEGER ) col0 @@ -41019,14 +41472,20 @@ SELECT DISTINCT + 67 * + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2131 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) \* Int64\(\-26\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(97\) \* Int64\(\-1\) \* \(\- Int64\(14\)\) \- \(\- CAST\(NULL AS Int32\)\) \+ max\(Int64\(\-22\)\) \* \(\- Int64\(\-68\)\) \* Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 * - 26 + - + COUNT ( * ) AS col2, 97 * - 1 * - + 14 - - CAST ( NULL AS INTEGER ) + + MAX ( - 22 ) * - - 68 * 66 col2 +---- +2131 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 AS col0, - 94 AS col0 +---- +-94 +38 query I rowsort label-7826 SELECT ALL + ( + 10 ) - 83 + - SUM ( - 27 ) / + 29 * SUM ( DISTINCT 17 ) * - 13 * - 36 + + COUNT ( ALL + 85 ) / - 12 * 44 col0 @@ -41215,8 +41674,11 @@ SELECT + 10 * 50 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 80 AS col1, + 4 AS col1 +---- +4 +80 query I rowsort SELECT ALL + COALESCE ( + - 33, 11, - - 92 ) @@ -41413,8 +41875,11 @@ SELECT ALL ( - 60 ) / - 94 - - 57 col1 # 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 "max\(DISTINCT nullif\(\(\- Int64\(\-72\)\), \(\- CASE \(\- Int64\(62\)\) WHEN Int64\(83\) \* \(\- Int64\(78\)\) \+ Int64\(\-14\) THEN Int64\(\-94\) END\)\)\) AS col1" at position 0 and "Int64\(31\) \+ Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( DISTINCT NULLIF ( - - 72, - + CASE - + 62 WHEN + 83 * - ( + 78 ) + - 14 THEN - 94 END ) ) col1, + 31 + - 85 AS col1 +---- +-54 +72 query II rowsort label-7901 SELECT CAST ( + - 24 AS INTEGER ), + 54 + + 90 AS col1 @@ -41471,8 +41936,11 @@ SELECT 23 * 50 * 46 + - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col1" at position 0 and "Int64\(11\) \+ coalesce\(Int64\(\-62\), nullif\(Int64\(\-23\), Int64\(\-68\)\), coalesce\(\(\- Int64\(86\)\), Int64\(\-11\), Int64\(96\) \* Int64\(71\) / Int64\(\-79\) \* Int64\(40\) \* \(\- Int64\(0\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 62 ) col1, ( + 11 ) + COALESCE ( - 62, NULLIF ( ( + - 23 ), - 68 ), COALESCE ( - + 86, - 11, + 96 * 71 / - 79 * 40 * - - 0 ) ) AS col1 +---- +-51 +-62 query I rowsort SELECT ( + 22 ) AS col2 @@ -42464,8 +42932,11 @@ SELECT + 39 + - - 44 + + 29 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col1, - 90 AS col1 +---- +-90 +1 query II rowsort label-8100 SELECT ALL 38, ( + 18 ) * 54 * - SUM ( 0 ) + - 53 AS col0 @@ -42531,8 +43002,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) \+ \(\- CAST\(Int64\(27\) AS Int32\)\) AS col2" at position 0 and "Int64\(73\) \- CASE Int64\(\-67\) WHEN \(\- Int64\(\-6\)\) \* Int64\(\-58\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(63\) END \+ Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-93 +NULL query I rowsort label-8113 SELECT - - SUM ( - - 20 ) col2 @@ -42703,8 +43177,11 @@ SELECT - 78 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \+ Int64\(\-48\) AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 83 + - 48 AS col1, 28 AS col1 +---- +28 +35 query II rowsort label-8147 SELECT - 95 * 88 AS col0, - CAST ( NULL AS INTEGER ) * - - 14 + - 89 + ( - 86 ) / + 41 @@ -43049,8 +43526,11 @@ SELECT - ( - + 61 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 3675 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(0\)\) AS col0" at position 0 and "\(\- Int64\(\-49\)\) \* Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 0 col0, - ( - 49 ) * + 75 AS col0 +---- +0 +3675 query I rowsort label-8213 SELECT DISTINCT + COUNT ( * ) / 99 @@ -43140,8 +43620,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4227 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(52\) \+ nullif\(Int64\(73\), \(\- Int64\(80\)\)\) \+ Int64\(98\) AS col0" at position 0 and "Int64\(\-61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 * + 52 + NULLIF ( + + 73, - ( 80 ) ) + 98 AS col0, - 61 AS col0 +---- +-61 +4227 query I rowsort SELECT + COALESCE ( - 65, - - 6, 16 ) @@ -43291,8 +43774,11 @@ SELECT CAST ( - 0 AS INTEGER ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 291873 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* Int64\(51\) \* nullif\(Int64\(59\), Int64\(\-59\) / Int64\(36\)\) AS col1" at position 0 and "Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 97 * + 51 * NULLIF ( 59, - 59 / + 36 ) col1, - 85 AS col1 +---- +-85 +291873 query I rowsort label-8259 SELECT + 85 + 12 + - + 99 * - 17 * + + COUNT ( * ) * MIN ( - CAST ( 14 AS INTEGER ) ) AS col2 @@ -43965,8 +44451,11 @@ SELECT NULLIF ( + - 30, - 32 ) # 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 "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 32 AS col2, 1 AS col2 +---- +1 +32 query I rowsort SELECT ALL + 97 * + - 34 * + 45 @@ -44094,8 +44583,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 48 ) AS col1, + 98 AS col1 +---- +48 +98 query I rowsort label-8410 SELECT ALL - + CAST ( + ( + 86 ) AS INTEGER ) AS col0 @@ -44202,8 +44694,12 @@ SELECT ALL + ( 97 ) + - - 66 # Datafusion - Expected - 32 # Datafusion - Expected - -93 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 0 and "\(\- Int64\(\-2\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 32 AS col1, + MAX ( DISTINCT - ( - - 93 ) ) AS col0, - - 2 AS col1 +---- +-93 +2 +32 query II rowsort label-8431 SELECT 55 AS col1, COUNT ( * ) + - 27 + 9 AS col0 @@ -44622,8 +45118,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( ( 4 ) ) AS col2, - COUNT ( * ) AS col2 +---- +-1 +4 query I rowsort label-8512 SELECT ALL - + SUM ( 23 ) / - - 32 + - 16 @@ -44990,8 +45489,11 @@ 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\(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\. +query II valuesort SELECT + 19 + - - COUNT ( * ) AS col1, - COUNT ( DISTINCT + 95 ) AS col1 +---- +-1 +20 query I rowsort label-8580 SELECT DISTINCT - + 83 * + 25 / + + 51 * - CASE - 37 WHEN + MAX ( ALL + 52 ) / + 52 + + + 3 THEN COALESCE ( + - 3, + + 60 + 68 + - COUNT ( * ) ) END + 47 AS col2 @@ -45084,8 +45586,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(72\) / Int64\(\-75\) AS col0" at position 0 and "\(\- count\(DISTINCT Int64\(\-58\)\)\) / Int64\(87\) \* Int64\(17\) \* Int64\(9\) \+ Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) * + 72 / + - 75 AS col0, - COUNT ( DISTINCT + - 58 ) / 87 * 17 * + 9 + 32 col0 +---- +32 +NULL query I rowsort label-8598 SELECT - 7 + - 96 + - + COUNT ( * ) @@ -45344,8 +45849,11 @@ SELECT DISTINCT - - 41 * 60 / + + 79 - + 14, 68 + + NULLIF ( - + 28, - + MIN ( D # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) / Int64\(4\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 93 / 4 AS col1, COUNT ( * ) AS col1 +---- +-23 +1 query I rowsort SELECT ALL + 34 - - 32 * 41 + - 52 @@ -45690,8 +46198,11 @@ SELECT ALL + 70 AS col2, 20 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col0" at position 0 and "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 AS col0, + 61 AS col0 +---- +22 +61 query I rowsort SELECT + 74 + 7 AS col1 @@ -46182,8 +46693,11 @@ 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\(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\. +query II valuesort SELECT - ( - COUNT ( * ) ) + - ( 66 ) AS col1, + COUNT ( * ) * + - 41 col1 +---- +-41 +-65 query I rowsort SELECT DISTINCT - 23 + 80 @@ -46872,8 +47386,11 @@ SELECT 35 / - + 15 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(44\) \* CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 6 AS col2, COUNT ( * ) + + COALESCE ( COUNT ( * ), 44 * + CAST ( NULL AS INTEGER ) ) AS col2 +---- +-6 +2 query I rowsort SELECT + 7 * 69 + - 11 AS col1 @@ -46947,8 +47464,11 @@ SELECT ( COALESCE ( + + 43, + 63 + COUNT ( * ) * 57 ) ) + - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- CASE Int64\(\-40\) WHEN CAST\(NULL AS Int32\) THEN NULL WHEN Int64\(7\) THEN \(\- sum\(Int64\(66\)\)\) \* Int64\(42\) \+ Int64\(84\) END\)\) / Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +11 +NULL query I rowsort SELECT - ( - 2 ) AS col0 @@ -47364,8 +47884,11 @@ SELECT 69 AS col2, 77 + + + ( - - 50 ) + - MIN ( + 46 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 AS col1, + 59 col1 +---- +-20 +59 query II rowsort label-9041 SELECT - 22, - COALESCE ( CAST ( NULL AS INTEGER ), - - COALESCE ( - 28, + 65 ) ) * + 2 col1 @@ -47798,8 +48321,11 @@ SELECT ALL - 37 / - COALESCE ( - + 59, + - 68, + 34 * 57 / - - 99 - - + MAX ( DI # Datafusion - Datafusion expected results: # Datafusion - Expected - -3207 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-37\)\) \* Int64\(\-89\) \+ Int64\(86\) AS col1" at position 0 and "nullif\(Int64\(1\), Int64\(\-19\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 37 * - 89 + + 86 AS col1, NULLIF ( + 1, - 19 ) col1 +---- +-3207 +1 query I rowsort label-9123 SELECT ALL + 8 * 90 + + + 84 - - - NULLIF ( + - 26, + 4 * 68 + + MAX ( 42 ) ) AS col0 @@ -48470,8 +48996,12 @@ NULL # Datafusion - Expected - -82 # Datafusion - Expected - 16 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 1 and "min\(Int64\(76\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - - 82 * - COUNT ( * ), 16 col0, MIN ( + 76 ) AS col0 +---- +-82 +16 +76 query I rowsort label-9251 SELECT ALL - - NULLIF ( 1, + 11 * - + COUNT ( * ) + - + CAST ( + 41 AS INTEGER ) + + 44 * - 92 ) * 51 AS col0 @@ -48643,8 +49173,11 @@ SELECT ALL - COUNT ( * ) + CAST ( - - 87 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 407 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ Int64\(\-60\) \+ Int64\(33\) AS col1" at position 0 and "Int64\(37\) \* Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 + - 60 + 33 AS col1, + 37 * + 11 AS col1 +---- +-2 +407 query I rowsort label-9284 SELECT CASE - 86 WHEN - 74 THEN 25 WHEN - CAST ( + + 75 AS FLOAT8 ) * + 55 THEN NULL END + COUNT ( DISTINCT + 90 ) * - 98 + - COALESCE ( - - 5, - - 42 ) - COALESCE ( - 83, 81 / + 19 + - 74 ) AS col1 @@ -48988,14 +49521,20 @@ SELECT ALL + SUM ( ALL - - 75 ) + - 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 35 AS col0, 79 AS col0 +---- +35 +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\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, + COUNT ( * ) AS col1 +---- +1 +1 query I rowsort SELECT ALL 60 + 16 AS col2 @@ -49227,8 +49766,11 @@ SELECT ALL - - 56 * 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33921 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \* Int64\(\-94\) \* Int64\(90\) \+ Int64\(\-54\) \+ Int64\(34\) \+ Int64\(\-61\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 4 * - 94 * + 90 + - 54 + + + 34 + - 61 col1, 60 AS col1 +---- +-33921 +60 query I rowsort SELECT DISTINCT + 93 * + 20 AS col2 @@ -49313,8 +49855,11 @@ SELECT ALL 71 + + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - -312 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* Int64\(\-24\) AS col0" at position 0 and "Int64\(\-58\) \+ Int64\(\-40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 * - 24 AS col0, ( + - 58 ) + - 40 AS col0 +---- +-312 +-98 query I rowsort label-9412 SELECT ALL CAST ( NULL AS INTEGER ) + + 74 AS col0 @@ -49357,8 +49902,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) + - 43 AS col2, + 5 AS col2 +---- +-42 +5 query I rowsort SELECT DISTINCT - + 91 AS col0 @@ -49561,8 +50109,11 @@ SELECT DISTINCT + 45 * - 88 * - 83 + - ( MAX ( 57 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 121 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-84\)\) AS col0" at position 0 and "Int64\(31\) \+ Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 84 AS col0, + 31 + 90 AS col0 +---- +121 +84 query I rowsort label-9459 SELECT DISTINCT - - MAX ( ( + CAST ( + COALESCE ( 8, - 42 / - 33 ) AS INTEGER ) ) ) @@ -49793,8 +50344,11 @@ SELECT ALL + 73 * - 64 + + 10 + + 62 + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1640 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(65\) \+ Int64\(95\) \+ \(\- Int64\(20\)\) \* Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, 65 + 95 + + - ( 20 ) * + 90 AS col0 +---- +-1640 +1 query I rowsort label-9503 SELECT DISTINCT COUNT ( + 37 ) @@ -50166,8 +50720,12 @@ SELECT - NULLIF ( 73, 38 ) * - 61 * - COUNT ( - CAST ( NULL AS INTEGER ) ) * 52 # Datafusion - Expected - -42 # Datafusion - Expected - 89 # Datafusion - Expected - -63460 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 1 and "CAST\(Int64\(23\) AS Int32\) \* Int64\(30\) \* \(\- Int64\(92\)\) \- Int64\(\-64\) \+ Int64\(\-44\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - + 42, 89 AS col1, CAST ( + 23 AS INTEGER ) * + 30 * - + 92 - + - 64 + - 44 AS col1 +---- +-42 +-63460 +89 query I rowsort SELECT ALL + 62 + 90 @@ -50212,8 +50770,11 @@ SELECT 17 * 78 * + 21 * 87 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2548 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* Int64\(49\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 * 49 AS col2, 87 AS col2 +---- +2548 +87 query II rowsort label-9581 SELECT 33 + + + COUNT ( * ) + 47, 57 AS col2 @@ -50376,8 +50937,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 23 AS col1, - COUNT ( * ) AS col1 +---- +-1 +23 query I rowsort label-9613 SELECT ALL + COALESCE ( - ( CAST ( NULL AS INTEGER ) ), 61 * - 95 ) AS col2 @@ -50712,8 +51276,11 @@ SELECT ALL 78 / - 60 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 699 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- CASE WHEN NOT Int64\(95\) IS NOT NULL THEN Int64\(10\) ELSE Int64\(\-74\) END\) AS Int32\)\) AS col0" at position 0 and "Int64\(22\) \* Int64\(38\) \+ Int64\(\-56\) \- Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( - CASE WHEN NOT + 95 IS NOT NULL THEN + 10 ELSE + - 74 END AS INTEGER ) AS col0, ( 22 ) * 38 + - 56 - 81 AS col0 +---- +-74 +699 query I rowsort label-9675 SELECT 26 + COUNT ( * ) * 34 AS col1 @@ -51154,8 +51721,11 @@ SELECT CAST ( 66 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3621 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) \* \(\- Int64\(\-51\)\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 71 * - - 51 AS col0, 79 AS col0 +---- +-3621 +79 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I][I] @@ -52002,8 +52572,11 @@ SELECT DISTINCT - MAX ( 78 ), NULLIF ( 37, + + 87 + - + COUNT ( * ) * + 92 ) col # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* \(\- Int64\(95\)\) / Int64\(\-12\) \* Int64\(\-52\) \* Int64\(62\) \* Int64\(\-70\) \* Int64\(\-14\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 * - + 95 / + - 12 * - 52 * + 62 * - 70 * - 14 AS col2, 52 AS col2 +---- +0 +52 query I rowsort SELECT ( + + 98 ) * + 30 + - - ( 95 ) * + - 80 diff --git a/data/sqlite/random/expr/slt_good_49.slt b/data/sqlite/random/expr/slt_good_49.slt index 4d20235..4da16e3 100644 --- a/data/sqlite/random/expr/slt_good_49.slt +++ b/data/sqlite/random/expr/slt_good_49.slt @@ -151,8 +151,11 @@ SELECT - ( - - 21 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 143 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ \(\- Int64\(\-50\)\) AS col1" at position 0 and "Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 93 + - ( - 50 ) AS col1, + 82 AS col1 +---- +143 +82 query I rowsort label-22 SELECT 87 - 19 - + - 44 * + + 95 - - 52 * + + COUNT ( * ) / - COUNT ( * ) AS col2 @@ -188,8 +191,11 @@ SELECT ALL + 32 + + 90 / 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 34 AS col2, 67 AS col2 +---- +34 +67 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -327,8 +333,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col1, - 70 AS col1 +---- +-1 +-70 query I rowsort SELECT + 57 + + 55 AS col2 @@ -374,8 +383,11 @@ SELECT ALL 77 + 92 # 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\) \+ Int64\(\-45\) / Int64\(77\) \* \(\- Int64\(\-17\)\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 18 ) + - 45 / 77 * - - 17 AS col1, + 62 AS col1 +---- +-18 +62 query I rowsort SELECT 24 + - 12 col1 @@ -1057,8 +1069,11 @@ SELECT + 33 + + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 66 AS col1, 13 AS col1 +---- +-66 +13 query I rowsort SELECT ALL - + NULLIF ( - 80, 34 ) * - - 66 col1 @@ -1154,8 +1169,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(89\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 AS col0, CASE - + 46 WHEN - - 81 THEN 83 * - + 51 / + 61 * - - 91 + 93 * - COUNT ( * ) * 89 END AS col0 +---- +1 +NULL query I rowsort label-212 SELECT ALL + 89 + - COUNT ( * ) + - 12 / - 74 @@ -1293,8 +1311,11 @@ SELECT ALL + 81 AS col2, 99 * + COUNT ( * ) - + 6 / - - COUNT ( * ) + + + 0 AS c # 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\(Int64\(15\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 27 AS col2, COUNT ( ALL + + 15 ) AS col2 +---- +1 +27 query I rowsort label-238 SELECT DISTINCT + COUNT ( * ) * + - CASE 12 WHEN - 13 THEN - + 75 * - 85 END + + 33 + - + 64 AS col0 @@ -1408,8 +1429,11 @@ SELECT ALL NULLIF ( - 32, - - ( 57 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(84\) AS Int32\)\) AS col2" at position 0 and "Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( 84 AS INTEGER ) AS col2, + 8 AS col2 +---- +-84 +8 query I rowsort SELECT DISTINCT ( 88 ) @@ -1693,8 +1717,11 @@ SELECT 49 / + - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(28\)\) AS col0" at position 0 and "nullif\(min\(Int64\(2\)\), Int64\(84\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( 28 ) AS col0, + NULLIF ( + MIN ( ALL 2 ), 84 ) AS col0 +---- +-28 +2 query I rowsort label-315 SELECT MIN ( 62 ) / COUNT ( * ) AS col1 @@ -2043,8 +2070,11 @@ SELECT ALL 0 * - - 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2417 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* Int64\(34\) \+ Int64\(43\) \+ Int64\(96\) AS col1" at position 0 and "Int64\(20\) \- Int64\(43\) \+ Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 * + 34 + + 43 + + 96 AS col1, 20 - 43 + + + 72 col1 +---- +2417 +49 query I rowsort SELECT DISTINCT 29 * - 22 @@ -3528,8 +3558,11 @@ SELECT ALL + COALESCE ( 24, - ( MAX ( - 77 ) ) * 33 ) * 51 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \+ Int64\(23\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 + 23 AS col2, + 35 col2 +---- +13 +35 query I rowsort label-670 SELECT - 49 * - + SUM ( ALL - ( + 79 ) ) col2 @@ -3673,8 +3706,12 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - 3520 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(88\) \* Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT COUNT ( * ) AS col0, + 88 * 40 col0, 29 + - - 52 +---- +1 +3520 +81 query I rowsort label-697 SELECT ALL + COUNT ( ALL - 43 ) + + - 65 + 16 + + 30 AS col2 @@ -3796,8 +3833,11 @@ SELECT 96 * + 71 + - - 12 + + MIN ( DISTINCT + CASE WHEN ( + 51 ) >= ( - ( - 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - -670 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) \+ Int64\(1\) AS col1" at position 0 and "count\(DISTINCT Int64\(42\)\) \+ Int64\(88\) \+ Int64\(33\) \* Int64\(\-23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 76 + 1 AS col1, COUNT ( DISTINCT 42 ) + + 88 + + + 33 * - 23 AS col1 +---- +-670 +-75 query I rowsort SELECT + NULLIF ( - + 69, + 99 ) AS col2 @@ -4260,8 +4300,11 @@ SELECT DISTINCT 74 * + - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col1" at position 0 and "CAST\(Int64\(\-22\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 46 AS col1, ( CAST ( - 22 AS INTEGER ) ) AS col1 +---- +-22 +-46 query I rowsort label-808 SELECT DISTINCT 92 * 44 / SUM ( + + 35 ) * 86 + + CASE + + 82 WHEN + + 16 THEN + 28 ELSE + 67 END + + 3 * 36 @@ -4442,8 +4485,11 @@ SELECT + - ( + 69 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -184902 # Datafusion - Expected - 2419 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* \(\- Int64\(44\)\) \* Int64\(88\) \+ Int64\(36\) \* Int64\(\-79\) \+ Int64\(\-74\) AS col1" at position 0 and "Int64\(59\) \* Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 47 * - + 44 * 88 + + + ( 36 ) * - 79 + - 74 AS col1, + 59 * 41 AS col1 +---- +-184902 +2419 query I rowsort SELECT ALL 21 * + + 50 @@ -4707,8 +4753,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \+ CAST\(NULL AS Int32\) \* \(\- Int64\(19\)\) AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 42 ) + + CAST ( NULL AS INTEGER ) * - + 19 AS col1, + 23 AS col1 +---- +23 +NULL query II rowsort SELECT 62 AS col1, - 34 + + 66 @@ -4947,8 +4996,11 @@ SELECT 90 + - 31 + 74 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ Int64\(\-13\) AS col0" at position 0 and "Int64\(0\) \- Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 97 + - 13 AS col0, 0 - 5 AS col0 +---- +-5 +84 query I rowsort SELECT 57 + - + 81 @@ -5488,8 +5540,11 @@ 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\(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\. +query II valuesort SELECT ALL - 67 * - COALESCE ( - - 29, 31 / - + COUNT ( * ) ) AS col0, - 16 * - 43 AS col0 +---- +1943 +688 query I rowsort label-1043 SELECT DISTINCT NULLIF ( - CAST ( - 28 AS INTEGER ), 98 ) AS col0 @@ -5892,8 +5947,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 117 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-70\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(20\) \+ Int64\(52\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(45\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 70 + - CAST ( NULL AS INTEGER ) AS col2, 20 + + 52 + - - COUNT ( * ) * + + 45 * + COUNT ( * ) col2 +---- +117 +NULL query I rowsort label-1118 SELECT ALL + ( + + 10 ) * - - 17 + + COUNT ( * ) col0 @@ -5918,8 +5976,11 @@ SELECT - - 84 * + 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(9\)\)\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + MIN ( 9 ) AS col2, + 88 AS col2 +---- +-9 +88 query I rowsort label-1123 SELECT ALL - - 32 + 99 + COUNT ( * ) * 76 AS col2 @@ -5977,8 +6038,11 @@ SELECT + ( - - 30 ) AS col0, 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 101 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \- Int64\(\-87\) AS col2" at position 0 and "nullif\(Int64\(\-26\), Int64\(73\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 14 - - 87 AS col2, NULLIF ( - 26, 73 ) AS col2 +---- +-26 +101 query II rowsort label-1134 SELECT - + 8 / 38 AS col2, COUNT ( * ) @@ -6082,8 +6146,11 @@ SELECT + 72 + - 48 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 0 and "Int64\(3\) \* \(\- Int64\(7\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 AS col2, 3 * - + 7 AS col2 +---- +-21 +35 query I rowsort label-1154 SELECT + CASE - 44 WHEN + + 81 + + 90 THEN NULL WHEN + 31 * 51 + + MIN ( ALL + 12 ) THEN COUNT ( * ) * + 64 - + 19 ELSE - + 80 END * - + 52 + 48 * + 70 - + 61 AS col1 @@ -6471,8 +6538,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + 84 * ( - 52 ) + + + COALESCE ( 72, + - 23 * + 1 + 21 + 17 - - ( - 48 ) + - 37 * + - 17 * + - ( + COUNT ( * ) ) ) col2, 62 AS col2 +---- +-4296 +62 query I rowsort SELECT + + NULLIF ( - - 52, + 85 ) + 81 @@ -7208,8 +7278,11 @@ SELECT ALL + 16 + + COALESCE ( - CASE + COUNT ( * ) WHEN + COUNT ( * ) THEN NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 AS col2, 35 AS col2 +---- +35 +93 query I rowsort SELECT - 26 + + 32 - + 38 * - 53 * 21 * 76 AS col0 @@ -7411,8 +7484,11 @@ SELECT 50 + 58 + - - 64 * 92 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - -85008 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col0" at position 0 and "Int64\(46\) \* Int64\(28\) \* Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 87 AS col0, + 46 * + 28 * - 66 AS col0 +---- +-85008 +-87 query I rowsort SELECT + ( + - COALESCE ( + 79, + 63, - - 23 ) ) * + 28 + + + 56 @@ -7588,8 +7664,11 @@ 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\(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\. +query II valuesort SELECT - 66 * - 32 + + 45 AS col0, - COUNT ( * ) + + ( - - 69 ) - + COALESCE ( - 70, - 62 ) + - 23 / - 21 AS col0 +---- +139 +2157 query I rowsort label-1441 SELECT 44 / 12 * 23 * + 49 @@ -7761,8 +7840,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* \(\- Int64\(52\)\) \* Int64\(86\) \+ CASE Int64\(\-3\) WHEN \(\- CAST\(Int64\(97\) AS Int32\)\) THEN \(\- Int64\(73\)\) END \* sum\(DISTINCT Int64\(18\)\) / Int64\(58\) AS col2" at position 0 and "Int64\(78\) \- Int64\(\-36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 1 * - + 52 * 86 + CASE - 3 WHEN - CAST ( + 97 AS INTEGER ) THEN - + 73 END * SUM ( DISTINCT 18 ) / + 58 AS col2, + 78 - - 36 AS col2 +---- +114 +NULL query I rowsort label-1474 SELECT DISTINCT 41 + - - 69 + - 41 - - 64 / + 13 AS col2 @@ -7993,8 +8075,11 @@ 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\(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\. +query II valuesort SELECT 40 * - - COUNT ( * ) * + 36 AS col2, 71 AS col2 +---- +1440 +71 query I rowsort label-1519 SELECT COUNT ( * ) * + 35 * + 47 * - 11 @@ -8116,8 +8201,11 @@ SELECT 63 * - 41 + + - 7 + - - 53 col2 # 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 "Int64\(90\) / Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 68 AS col2, 90 / 69 AS col2 +---- +-68 +1 query I rowsort label-1543 SELECT COUNT ( * ) + - COUNT ( * ) col2 @@ -8328,8 +8416,11 @@ SELECT 95 / - 62 + - 84 # 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\(34\) \* CAST\(NULL AS Float64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ( 7 ) AS col1, 34 * + CAST ( NULL AS FLOAT8 ) col1 +---- +7 +NULL query I rowsort label-1583 SELECT ALL - ( + 79 ) / 42 @@ -8639,8 +8730,11 @@ SELECT DISTINCT - NULLIF ( + 46, + + 79 - + 31 + - - CAST ( 79 AS INTEGER ) ) AS # Datafusion - Datafusion expected results: # Datafusion - Expected - -1020 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* Int64\(\-15\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 * - 15 AS col0, 57 col0 +---- +-1020 +57 query II rowsort label-1643 SELECT 4 * + 4 AS col1, + ( - CAST ( NULL AS INTEGER ) ) + + 76 AS col0 @@ -8748,8 +8842,11 @@ SELECT - - COALESCE ( - 93, 67, - 51 + SUM ( 60 ) * + COUNT ( * ) ) * - 83 * - 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 972 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* 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 II valuesort SELECT 12 * 81 AS col0, ( 89 ) AS col0 +---- +89 +972 query I rowsort SELECT + ( 58 ) AS col1 @@ -9047,8 +9144,11 @@ SELECT - 5 + 62 / - - NULLIF ( 42, - 54 * + 12 ) + + 36 # 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 "Int64\(\-63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 98 col0, - 63 AS col0 +---- +-63 +98 query I rowsort SELECT - 19 + + 92 col0 @@ -9732,8 +9832,11 @@ SELECT + 40 * + - NULLIF ( + ( 25 ), - 39 + - - 53 ) AS col2, - 8 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -3185 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "Int64\(65\) \* Int64\(\-49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 8 AS col1, 65 * - 49 AS col1 +---- +-3185 +8 query I rowsort label-1849 SELECT - ( COALESCE ( 56, 36 * COUNT ( * ) * 14 * - 85 ) ) @@ -10269,8 +10372,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \+ CAST\(NULL AS Int32\) \+ Int64\(83\) \+ Int64\(44\) AS col0" at position 0 and "Int64\(14\) \- Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 + ( CAST ( NULL AS INTEGER ) ) + + 83 + 44 AS col0, 14 - + 45 AS col0 +---- +-31 +NULL query I rowsort SELECT + - 62 * - 35 @@ -10380,8 +10486,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* max\(\(\- Int64\(\-72\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 47 + 32 / + + 80 AS col2, + COUNT ( * ) * + MAX ( + - ( - 72 ) ) col2 +---- +-47 +72 query I rowsort label-1971 SELECT ALL - 38 / + 15 @@ -10396,8 +10505,11 @@ SELECT ALL - 66 - + + SUM ( + + ( + 96 ) ) # 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 col1" at position 0 and "count\(DISTINCT Int64\(64\)\) \- Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 AS col1, + COUNT ( DISTINCT 64 ) - 3 AS col1 +---- +-2 +95 query I rowsort SELECT - 20 * - + 72 @@ -10523,8 +10635,11 @@ SELECT DISTINCT NULLIF ( 15, + + NULLIF ( + - NULLIF ( - 52, - 83 ), + - 1 / + C # 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\(67\) WHEN Int64\(11\) THEN NULL WHEN Int64\(81\) \+ Int64\(\-26\) \- Int64\(\-76\) THEN Int64\(\-28\) 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 II valuesort SELECT ALL CASE + 67 WHEN + 11 THEN NULL WHEN + 81 + - 26 - - 76 THEN - 28 END AS col2, - 25 AS col2 +---- +-25 +NULL query I rowsort label-1999 SELECT + CASE + 19 WHEN - AVG ( 41 ) THEN - 84 END + - CAST ( NULL AS INTEGER ) * 87 - + - COUNT ( * ) + + + NULLIF ( - + 14, + + ( + 2 ) ) AS col1 @@ -10676,8 +10791,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 AS col0, + COUNT ( * ) + - 7 AS col0 +---- +-6 +54 query I rowsort SELECT DISTINCT 15 * 17 @@ -10851,8 +10969,11 @@ SELECT ALL 25, - ( - - 51 ) col2 # 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\(71\) \* CASE Int64\(\-50\) WHEN Int64\(\-16\) THEN \(\- Int64\(15\)\) WHEN Int64\(\-52\) \+ Int64\(43\) THEN NULL END \* \(\- Int64\(\-52\)\) \+ Int64\(\-49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 26 AS col0, + 71 * + CASE - 50 WHEN - 16 THEN - ( 15 ) WHEN + - 52 + 43 THEN NULL END * - - 52 + - 49 AS col0 +---- +-26 +NULL query I rowsort SELECT 56 + - 47 AS col1 @@ -10899,8 +11020,11 @@ SELECT 22 + - 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "Int64\(17\) \+ \(\- Int64\(\-27\)\) \+ Int64\(12\) \- Int64\(62\) \- \(\- CAST\(\(\- Int64\(\-35\)\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 AS col0, + 17 + - - 27 + + 12 - + 62 - + - CAST ( - ( + - 35 ) AS INTEGER ) col0 +---- +29 +51 query I rowsort label-2070 SELECT DISTINCT - COALESCE ( + - 68, 68 + + ( + COUNT ( - 48 ) ) * + COUNT ( * ) + + MIN ( + 38 ) - - 56 + - + 96 - 99, COUNT ( + ( + 69 ) ) + + CAST ( - - COUNT ( * ) AS INTEGER ), - ( - 4 ) ) * + MAX ( - 36 ) * + + 59 * - - CASE + 45 WHEN - COUNT ( * ) / + 81 * 75 THEN 16 ELSE + - 25 * - + 12 END @@ -10976,8 +11100,11 @@ SELECT ALL 13 * + 1 + - - 25 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( - CAST ( NULL AS INTEGER ) ) AS col2, 55 AS col2 +---- +55 +NULL query II rowsort label-2085 SELECT ALL + - 88 AS col2, + 80 * + + CASE - - COUNT ( * ) WHEN - - CAST ( NULL AS INTEGER ) + - - MIN ( - NULLIF ( 43, + - ( - ( + - 43 ) ) ) ) + - COUNT ( * ) THEN NULL WHEN - + SUM ( DISTINCT 49 ) / - 31 + + 61 + - + 5 + - - 56 * + 1 - + 30 * - CAST ( - 93 AS INTEGER ) * - 29 + - COUNT ( * ) / - - 99 THEN - - ( 23 ) * + CAST ( - ( + COALESCE ( + COUNT ( * ), 76 ) ) AS INTEGER ) * - 77 ELSE - 12 END * 25 + - 69 @@ -11253,8 +11380,11 @@ SELECT 36 * + 64 * - 89, 32 * + 34 * + 94 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "Int64\(\-62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 68 AS col2, - 62 AS col2 +---- +-62 +68 query I rowsort label-2138 SELECT - COUNT ( * ) + + + 99 AS col1 @@ -11322,8 +11452,11 @@ SELECT ALL - SUM ( - + 42 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - -1026 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(60\)\) AS col0" at position 0 and "CAST\(\(\- \(\- coalesce\(Int64\(\-27\), \(\- Int64\(92\)\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(11\)\), Int64\(97\)\)\)\) AS Int32\) \* Int64\(40\) \+ Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( 60 ) AS col0, + CAST ( - - COALESCE ( - 27, - + 92, + COUNT ( * ) * - + 11, 97 ) AS INTEGER ) * 40 + + + 54 AS col0 +---- +-1026 +-60 query I rowsort SELECT DISTINCT 16 * + + 52 @@ -11490,8 +11623,11 @@ SELECT ALL ( - 2 ) * 15 + - + 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, - 47 AS col0 +---- +-47 +1 query II rowsort label-2183 SELECT DISTINCT COUNT ( * ) * 84 + + 23, COUNT ( * ) AS col0 @@ -11977,8 +12113,11 @@ SELECT ALL - + COUNT ( * ) + + 60 * NULLIF ( 5, + 87 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - -2339 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col0" at position 0 and "\(\- CAST\(Int64\(78\) AS Int32\)\) \* Int64\(30\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 94 AS col0, - CAST ( + + 78 AS INTEGER ) * 30 + COUNT ( * ) AS col0 +---- +-2339 +-94 query I rowsort label-2280 SELECT 79 * + COUNT ( * ) * + 50 * + 15 @@ -12025,8 +12164,11 @@ SELECT COUNT ( * ) / + 7 AS col2 # 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 "Int64\(\-20\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 AS col1, ( + 49 ) AS col1 +---- +-20 +49 query I rowsort label-2289 SELECT COALESCE ( + 96, COUNT ( - 88 ), 75 ) + + 58 * - 42 @@ -12431,8 +12573,11 @@ 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\(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\. +query IR valuesort 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 +---- +1 +NULL query I rowsort label-2367 SELECT ALL COALESCE ( + - 80, 64 / + 38 ) @@ -12555,8 +12700,11 @@ SELECT 30 + - 8 + + 25 * + 47 AS col1, + 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - -300 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col2" at position 0 and "Int64\(2\) \* Int64\(1\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(63\) \- \(\- \(\- coalesce\(coalesce\(Int64\(87\), CASE Int64\(21\) WHEN CAST\(NULL AS Int32\) THEN NULL WHEN Int64\(45\) \- avg\(Int64\(12\) \+ Int64\(85\)\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(31\) THEN sum\(Int64\(\-7\)\) ELSE Int64\(44\) END \* Int64\(\-33\), Int64\(58\)\), Int64\(54\)\)\)\) \* Int64\(25\) / Int64\(77\) \* \(\- nullif\(Int64\(70\) \- Int64\(83\), Int64\(50\) \* Int64\(61\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-300 +-65 query II rowsort label-2391 SELECT - 58, 82 - + 10 - - SUM ( DISTINCT + - 50 ) + - 43 AS col2 @@ -13188,8 +13336,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1170 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* Int64\(26\) AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 45 * 26 AS col2, + 77 AS col2 +---- +1170 +77 query I rowsort label-2511 SELECT ALL + 73 / - + 8 + - 80 @@ -13235,8 +13386,11 @@ SELECT + 79 - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7280 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* Int64\(\-80\) AS col2" at position 0 and "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 91 * - 80 col2, - ( - CAST ( NULL AS INTEGER ) ) col2 +---- +-7280 +NULL query II rowsort label-2520 SELECT ALL + 80 * - 8 - - 36 + COUNT ( * ) AS col1, 43 + - 69 @@ -13670,8 +13824,11 @@ SELECT ALL + 25 * 92 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 441 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* Int64\(7\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 * + 7 AS col2, 0 AS col2 +---- +0 +441 query I rowsort SELECT DISTINCT + ( - 13 ) AS col2 @@ -14300,8 +14457,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) / + 95 AS col1, + COUNT ( ALL - 12 ) + COUNT ( * ) - - + 49 AS col1 +---- +0 +51 query I rowsort label-2723 SELECT ALL + 30 - - SUM ( + 0 ) AS col2 @@ -15042,8 +15202,11 @@ SELECT - 32 - + 13 # 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 "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 23 AS col0, + 72 AS col0 +---- +23 +72 query I rowsort SELECT DISTINCT 6 + 51 @@ -15283,8 +15446,11 @@ SELECT - COUNT ( * ) * + 1 / + + MIN ( 3 ) - - 54 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "CAST\(Int64\(14\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col2, CAST ( + 14 AS INTEGER ) AS col2 +---- +14 +NULL query I rowsort label-2909 SELECT + COUNT ( * ) + 83 AS col0 @@ -15443,8 +15609,11 @@ SELECT DISTINCT - + ( 10 ) * - 45 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "\(\- CASE WHEN Int64\(83\) IS NULL THEN NULL ELSE Int64\(82\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 20 col0, - CASE WHEN + 83 IS NULL THEN NULL ELSE + 82 END AS col0 +---- +-82 +20 query I rowsort label-2940 SELECT 2 / - + 60 @@ -15639,8 +15808,12 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(83\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 27 / + 12 AS col1, 8, + COUNT ( * ) * - + 83 AS col1 +---- +-83 +2 +8 query I rowsort SELECT + 70 * 55 + ( - 35 ) @@ -15730,8 +15903,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort SELECT + - 96 + - 52, - COUNT ( DISTINCT ( 99 ) ) AS col2, + + NULLIF ( - + AVG ( + + CAST ( NULL AS FLOAT8 ) ), - + ( - + COUNT ( * ) ) ) AS col2 +---- +-1 +-148 +NULL query II rowsort label-2994 SELECT ALL + MIN ( 14 ), - 95 + + + 97 AS col2 @@ -15799,8 +15976,11 @@ SELECT ALL 73 + 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - -114 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \+ \(\- Int64\(29\)\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 85 + - ( + + 29 ) AS col1, 10 AS col1 +---- +-114 +10 query II rowsort label-3007 SELECT 20 AS col2, + ( - COUNT ( * ) ) AS col0 @@ -16161,8 +16341,11 @@ SELECT ( - 86 ) * - 28 + + 43 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "nullif\(Int64\(\-87\), Int64\(\-68\) / \(\- Int64\(\-97\)\) \+ max\(\(\- nullif\(Int64\(16\), \(\- Int64\(70\)\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\)\)\)\)\) \* Int64\(36\) \* Int64\(99\) \- \(\- CAST\(NULL AS Float64\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(76\) \* Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +51 +NULL query I rowsort SELECT ALL + NULLIF ( - 51, 15 ) - - + 48 AS col1 @@ -16294,8 +16477,11 @@ SELECT ALL 89 AS col2, - 26 * + 80 + 80 * + + 22 * 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "Int64\(30\) \+ count\(DISTINCT CASE Int64\(\-70\) WHEN CAST\(NULL AS Int32\) THEN Int64\(43\) ELSE \(\- Int64\(\-49\)\) \* \(\- CAST\(NULL AS Float64\)\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 AS col0, + 30 + + COUNT ( DISTINCT + CASE - 70 WHEN + ( + + CAST ( NULL AS INTEGER ) ) THEN + 43 ELSE - - 49 * - CAST ( NULL AS FLOAT8 ) END ) AS col0 +---- +30 +98 query I rowsort SELECT 46 - - - 32 AS col1 @@ -16500,8 +16686,11 @@ 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\(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\. +query II valuesort SELECT 82 col1, - CASE + COUNT ( * ) WHEN - + 13 + - 69 THEN - 5 WHEN - 41 * 25 THEN NULL ELSE NULL END * - COUNT ( * ) AS col1 +---- +82 +NULL query I rowsort SELECT + 39 * + - 2 col2 @@ -16795,14 +16984,20 @@ SELECT DISTINCT + 98 * 60 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -103518 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) \* Int64\(71\) \* Int64\(27\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 54 * + 71 * 27 AS col1, + 67 AS col1 +---- +-103518 +67 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(97\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 97 AS col2, COUNT ( * ) col2 +---- +-97 +1 query I rowsort label-3196 SELECT DISTINCT - CAST ( - COUNT ( + + 3 ) AS INTEGER ) @@ -16858,8 +17053,11 @@ 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\(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\. +query II valuesort SELECT ALL 14 * - 79 AS col2, 30 * + + COALESCE ( ( + 61 ), - COUNT ( * ) * - COUNT ( * ) ) * - 56 + + 54 col2 +---- +-102426 +-1106 query I rowsort label-3207 SELECT ALL - 65 + + + COUNT ( * ) * + + 32 AS col0 @@ -17023,8 +17221,11 @@ SELECT + 50 + - - 46 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 4207 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "Int64\(45\) \* Int64\(93\) \+ Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 AS col1, 45 * 93 + + + 22 AS col1 +---- +39 +4207 query I rowsort SELECT ALL 43 * + 8 + - - 7 @@ -18135,8 +18336,11 @@ SELECT ALL - 88 * + 20 * - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 6882 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col2" at position 0 and "Int64\(74\) \* Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 83 col2, + 74 * + + 93 AS col2 +---- +-83 +6882 query II rowsort label-3449 SELECT 64 AS col1, 3 * + 55 * + MIN ( ALL + - COALESCE ( - + 38, - - COALESCE ( + 70, - - 42 + + 47 - + - 31 ) ) ) * + 74 AS col2 @@ -19247,8 +19451,11 @@ 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\(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\. +query II valuesort SELECT ( - + COUNT ( * ) ) AS col2, COALESCE ( + + 81, - COUNT ( * ) + - 76 ) AS col2 +---- +-1 +81 query II rowsort SELECT ( + - 31 ) col2, 76 * + - 83 * - 85 @@ -19274,8 +19481,11 @@ SELECT ( COUNT ( DISTINCT + ( - 11 ) ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col1" at position 0 and "CASE Int64\(\-5\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- CAST\(NULL AS Int32\)\) WHEN Int64\(97\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 42 ) AS col1, CASE - 5 WHEN + - COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) WHEN 97 THEN NULL END AS col1 +---- +-42 +NULL query I rowsort label-3663 SELECT + 13 * + CAST ( NULL AS INTEGER ) AS col1 @@ -19401,8 +19611,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 3612 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) / max\(DISTINCT Int64\(\-36\)\) AS col1" at position 0 and "\(\- Int64\(\-30\)\) \* \(\- Int64\(\-67\)\) \+ coalesce\(Int64\(\-54\), Int64\(38\)\) \+ Int64\(9\) \* Int64\(92\) \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + 61 ) / MAX ( DISTINCT + - 36 ) AS col1, - ( - 30 ) * + - ( - 67 ) + COALESCE ( - 54, + 38 ) + + 9 * 92 * + 2 AS col1 +---- +-1 +3612 query I rowsort SELECT ( ( 76 ) ) * + 44 AS col1 @@ -19435,8 +19648,11 @@ SELECT + 10, COUNT ( - CASE - - 98 WHEN 81 THEN 39 ELSE + 39 END ) * - 41 AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 5963 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(48\) \+ \(\- nullif\(Int64\(73\), \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(95\) \* CAST\(NULL AS Int32\)\)\)\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-71\)\) \* Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 77 + + 48 + - + NULLIF ( + + 73, - NULLIF ( + ( COUNT ( * ) ), 95 * + CAST ( NULL AS INTEGER ) ) ) AS col2, + ( - COUNT ( * ) ) + - ( - 71 ) * + 84 AS col2 +---- +52 +5963 query II rowsort SELECT DISTINCT - 91 AS col0, + 44 + - + 91 @@ -19447,8 +19663,11 @@ SELECT DISTINCT - 91 AS col0, + 44 + - + 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ Int64\(7\) \+ \(\- Int64\(27\)\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 42 + 7 + - + 27 AS col1, 38 AS col1 +---- +22 +38 query I rowsort SELECT ( - 37 ) * 54 * + 27 col1 @@ -19890,8 +20109,11 @@ SELECT + 20 * - 45 # 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 "Int64\(19\) / Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 AS col1, 19 / + + 67 AS col1 +---- +0 +89 query I rowsort SELECT + 85 + + 30 + - 22 @@ -20257,8 +20479,11 @@ SELECT 22, - 33 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col0" at position 0 and "Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 79 AS col0, 74 AS col0 +---- +-79 +74 query II rowsort SELECT ALL 80 AS col0, + 89 * - + ( + - 27 ) * + 44 @@ -20290,8 +20515,11 @@ SELECT DISTINCT + 83 * + 66 * + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 col0, + 50 col0 +---- +-48 +50 query I rowsort SELECT ALL 71 * - ( + 34 ) @@ -20326,8 +20554,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \* min\(\(\- Int64\(\-2\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 AS col1, - ( + 85 ) * - COUNT ( * ) * + + MIN ( ALL - - 2 ) AS col1 +---- +170 +27 query I rowsort label-3858 SELECT + 29 * - NULLIF ( + COUNT ( * ), 26 ) + + 69 AS col1 @@ -20368,8 +20599,11 @@ SELECT DISTINCT + + 44 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 35 AS col2 +---- +1 +35 query I rowsort label-3866 SELECT ALL + 69 * + COALESCE ( - 76, - 54 * 45 ) + - 99 * + COUNT ( * ) @@ -20588,8 +20822,11 @@ 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\(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\. +query RI valuesort SELECT ALL + - COUNT ( * ) / + - CAST ( NULL AS FLOAT8 ) AS col0, 42 AS col0 +---- +42 +NULL query I rowsort label-3908 SELECT ALL + SUM ( ALL 20 ) AS col1 @@ -21427,8 +21664,11 @@ SELECT - ( + 27 ) + - 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 918 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) AS col0" at position 0 and "Int64\(72\) \+ Int64\(94\) \* Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 74 col0, 72 + 94 * 9 AS col0 +---- +-74 +918 query I rowsort SELECT DISTINCT - 83 + 73 col1 @@ -21601,8 +21841,11 @@ 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\(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\. +query II valuesort SELECT 22 + - + COUNT ( * ) AS col0, + COUNT ( DISTINCT + - 1 ) col0 +---- +1 +21 query I rowsort label-4105 SELECT DISTINCT + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 46 + COUNT ( * ) * 90 col1 @@ -21674,8 +21917,11 @@ SELECT 96 - - - 48 + + ( + 77 ) * - COALESCE ( - 94, + 49 / - 76 ) * + COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 120960 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col2" at position 0 and "Int64\(\-20\) \* Int64\(89\) \* Int64\(\-68\) \+ Int64\(\-80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 38 AS col2, - 20 * + 89 * - 68 + + - 80 col2 +---- +120960 +38 query I rowsort SELECT ALL - 7 * - 44 AS col1 @@ -21710,8 +21956,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 60 AS col0, COUNT ( * ) / 27 AS col0 +---- +-60 +0 query I rowsort label-4126 SELECT + - CAST ( 14 AS INTEGER ) @@ -21820,8 +22069,11 @@ SELECT ALL + + 37 + SUM ( ALL 45 ) + + ( + + NULLIF ( - 74, 2 * 77 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 245 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ Int64\(65\) \- \(\- Int64\(19\)\) \* Int64\(5\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 85 + 65 - - + 19 * 5 AS col2, 94 AS col2 +---- +245 +94 query I rowsort SELECT - 90 - - - 8 * + 64 col1 @@ -22027,8 +22279,11 @@ SELECT ALL 85 * COUNT ( * ) + - 75 + + - 12 + + - NULLIF ( 65, 90 * 56 ) * ( + C # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\)" at position 0 and "Int64\(80\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 80, + 80 +---- +80 +80 query I rowsort label-4186 SELECT ALL 29 * 99 + ( + 24 ) / - + NULLIF ( - - ( - 26 ), - 33 ) AS col2 @@ -22043,8 +22298,11 @@ SELECT ALL 33 * - 1 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 AS col0, 81 AS col0 +---- +46 +81 query I rowsort label-4189 SELECT ALL 93 * 50 + + COUNT ( * ) @@ -22395,8 +22653,11 @@ SELECT + ( 13 ) * + - 74 + + 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 154 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col1" at position 0 and "Int64\(88\) \* Int64\(98\) / \(\- Int64\(\-56\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 68 AS col1, 88 * 98 / - - 56 AS col1 +---- +154 +68 query I rowsort label-4258 SELECT ALL + COUNT ( * ) / ( + 99 ) - CAST ( NULL AS INTEGER ) col2 @@ -22526,8 +22787,11 @@ SELECT + 76 + + + MAX ( - 35 ) * + - 99 AS col2 # 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 "Int64\(50\) \- Int64\(41\) AS col0" at position 0 and "Int64\(\-47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 50 - + + 41 col0, - 47 AS col0 +---- +-47 +9 query I rowsort SELECT + ( - 74 ) AS col2 @@ -22666,8 +22930,11 @@ SELECT DISTINCT - 50 - - 95 * - 29 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 957 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "Int64\(87\) \* Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 col0, + 87 * 11 AS col0 +---- +42 +957 query I rowsort SELECT - 41 + - - 86 * + 4 @@ -22766,8 +23033,11 @@ SELECT ALL + 10, 80 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 0 AS col0, 14 AS col0 +---- +0 +14 query I rowsort label-4329 SELECT DISTINCT - - 14 / - 7 + + CAST ( + 6 AS INTEGER ) @@ -22983,8 +23253,11 @@ SELECT ALL - + COUNT ( 79 ) * - 4 # 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 "Int64\(46\) / Int64\(\-5\) AS col1" at position 0 and "Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 / - 5 AS col1, - 76 AS col1 +---- +-76 +-9 query I rowsort SELECT 2 * + 60 AS col2 @@ -23098,8 +23371,11 @@ SELECT - - 22 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1696 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* Int64\(53\) AS col2" at position 0 and "Int64\(48\) \+ Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 32 * 53 AS col2, 48 + + + 7 AS col2 +---- +1696 +55 query I rowsort label-4391 SELECT + COUNT ( * ) + 95 * + ( + 84 ) * + COUNT ( * ) * + 87 - + 85 + - NULLIF ( - 11, - + 72 ) * + - 14 - 75 - 10 col1 @@ -23233,8 +23509,11 @@ SELECT + MIN ( DISTINCT - 10 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 107 # Datafusion - Expected - 5856 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \* \(\- coalesce\(Int64\(36\), Int64\(2\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) / Int64\(\-19\) \* Int64\(\-48\) \+ Int64\(73\)\)\) \- Int64\(58\) \+ Int64\(\-15\) AS col0" at position 0 and "Int64\(96\) \* \(\- Int64\(\-61\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 5 * - COALESCE ( 36, 2, COUNT ( * ) * - CAST ( NULL AS INTEGER ) / - 19 * + - 48 + + 73 ) - + 58 + - 15 AS col0, 96 * - - 61 AS col0 +---- +107 +5856 query II rowsort SELECT ALL 72 AS col1, 35 + + - 46 @@ -23558,8 +23837,11 @@ SELECT SUM ( - 75 ) * - 82 + + 23 + + + 27 * + 2 + - 38 * - + 71 + 21 # 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\(1\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 1 AS col2, + 26 AS col2 +---- +1 +26 query I rowsort label-4478 SELECT ALL 58 + + 66 / - - ( 15 ) + - ( - 9 ) @@ -23842,8 +24124,11 @@ SELECT ALL + 17, + 11 AS 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 "Int64\(\-17\) / Int64\(9\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 17 / + + 9 AS col1, 19 AS col1 +---- +-1 +19 query I rowsort label-4531 SELECT + CAST ( + + ( - ( + COUNT ( * ) ) ) AS INTEGER ) @@ -23905,8 +24190,11 @@ SELECT ALL MAX ( ( - 6 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -59215 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-6\)\) \+ Int64\(\-10\) \+ Int64\(43\) \* Int64\(17\) \* \(\- 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 II valuesort SELECT - ( - 6 ) + - 10 + 43 * 17 * - + ( 81 ) AS col0, + 75 AS col0 +---- +-59215 +75 query II rowsort label-4543 SELECT DISTINCT + COUNT ( * ) * + 98 AS col2, 95 * - ( - NULLIF ( - ( - COUNT ( * ) ), - COUNT ( * ) * - + 81 ) ) @@ -24257,8 +24545,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT MAX ( 72 ) - COALESCE ( + 97, + - 19, - - 67 + - + 91 * - - 20 - + COUNT ( * ) + - 11 / - 70, 61 ) + + MAX ( + - 91 ) AS col0, - 85 AS col0 +---- +-116 +-85 query I rowsort label-4611 SELECT NULLIF ( 21, ( + + COUNT ( - 98 ) ) ) * 12 AS col2 @@ -24918,8 +25209,11 @@ SELECT + COALESCE ( - CASE - - 82 WHEN ( + + COUNT ( * ) ) * + 86 + - + ( + 83 ) # 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 "Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 AS col0, - 92 AS col0 +---- +-92 +64 query II rowsort label-4737 SELECT 34 col1, 95 - CAST ( NULL AS INTEGER ) + - + 42 @@ -25439,8 +25733,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 AS col2, - COUNT ( * ) AS col2 +---- +-1 +61 query I rowsort SELECT - ( + 92 ) @@ -25896,8 +26193,11 @@ SELECT + 11 + 5 + - 70 * - + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -35962 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "Int64\(9\) \* Int64\(\-14\) \* Int64\(57\) \* Int64\(5\) \+ Int64\(\-40\) \+ CAST\(Int64\(\-12\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 AS col1, 9 * - 14 * 57 * + 5 + - 40 + + CAST ( - 12 AS INTEGER ) col1 +---- +-35962 +23 query I rowsort label-4924 SELECT ALL SUM ( ALL + - 94 ) @@ -26221,8 +26521,11 @@ SELECT ALL ( + 62 ) * + - 80 + - 88 + + + 17 + + + 0 * 11 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -3768 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col0" at position 0 and "\(\- max\(Int64\(\-49\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(77\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(69\) \+ \(\- Int64\(64\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 23 AS col0, - MAX ( - 49 ) * COUNT ( * ) * + COUNT ( * ) * + + 77 * - COUNT ( * ) + 69 + - + 64 * + COUNT ( * ) AS col0 +---- +-3768 +23 query I rowsort SELECT 53 + - 17 AS col0 @@ -26487,8 +26790,12 @@ SELECT ALL + MAX ( DISTINCT + 85 ) AS col2 # Datafusion - Expected - 18 # Datafusion - Expected - 1494 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col2" at position 0 and "sum\(Int64\(\-83\)\) \* Int64\(\-18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 18 col2, SUM ( ALL + - 83 ) * - 18 col2, 33 +---- +1494 +18 +33 query I rowsort label-5037 SELECT - 49 + - 59 * + - 59 * + 83 * + COUNT ( DISTINCT - 8 ) + - COUNT ( * ) * + 10 - 3 @@ -26544,8 +26851,11 @@ SELECT 48 AS col1, ( + + 72 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-65\)\) AS col0" at position 0 and "Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 65 AS col0, 15 AS col0 +---- +15 +65 query I rowsort SELECT ALL + 75 * + 6 @@ -26715,8 +27025,11 @@ SELECT ALL 18 / 83 + + 62 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 73 AS col1, COUNT ( * ) AS col1 +---- +1 +73 query I rowsort SELECT + 59 - + ( + 8 ) col1 @@ -26893,8 +27206,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL NULLIF ( 53, - 61 * - ( + - MAX ( - ( - 12 ) ) ) ) + + 37 AS col0, 40 * - 34 - - COUNT ( * ) AS col0 +---- +-1359 +90 query I rowsort SELECT - 37 * - - 84 + + - 47 AS col2 @@ -27065,8 +27381,11 @@ SELECT ALL ( + 50 ) * 53 + 57 + + 28 * - 67 * COUNT ( * ) - COUNT ( * ) * + 90 A # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 540 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) AS col2" at position 0 and "Int64\(27\) \* Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 1 AS col2, + 27 * 20 AS col2 +---- +-1 +540 query II rowsort SELECT + 20 AS col2, + 30 AS col1 @@ -27432,8 +27751,11 @@ SELECT ALL 81 / + 8 - - 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 100 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(40\)\) \+ Int64\(60\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( + 40 ) + + 60 AS col2, + 2 col2 +---- +100 +2 query I rowsort SELECT ALL - 39 - 46 col0 @@ -27596,8 +27918,11 @@ SELECT + + COUNT ( DISTINCT - + 27 ) AS col1 # 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\) AS col2" at position 0 and "Int64\(\-35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 46 AS col2, - 35 AS col2 +---- +-35 +-46 query I rowsort label-5248 SELECT ALL - NULLIF ( - CAST ( NULL AS INTEGER ), 62 ) @@ -27826,8 +28151,11 @@ SELECT + 12 + - 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \+ \(\- count\(Int64\(65\)\)\) AS col0" at position 0 and "Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 82 + - COUNT ( ALL + 65 ) AS col0, - 76 AS col0 +---- +-76 +81 query I rowsort SELECT - ( 99 ) AS col0 @@ -28136,8 +28464,11 @@ SELECT - 64 * + - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-8\)\) AS col0" at position 0 and "Int64\(16\) \+ \(\- Int64\(54\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 8 AS col0, 16 + - + 54 AS col0 +---- +-38 +8 query I rowsort SELECT ALL 47 + - + 28 * + + 21 AS col1 @@ -28222,8 +28553,11 @@ SELECT 87 * - ( + - 87 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 178 # Datafusion - Expected - 1632 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ Int64\(81\) AS col1" at position 0 and "Int64\(68\) \* \(\- Int64\(\-24\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 97 + + 81 AS col1, + 68 * ( - - 24 ) AS col1 +---- +1632 +178 query I rowsort SELECT 21 * 34 + - + 81 AS col2 @@ -28390,8 +28724,11 @@ SELECT - 88 * - - MIN ( - - 64 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, COUNT ( * ) AS col2 +---- +1 +1 query I rowsort SELECT - 56 * + ( - - 78 ) + + 31 @@ -28719,8 +29056,11 @@ SELECT ( - 55 ) * + - 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5143 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \* Int64\(51\) \+ Int64\(\-94\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 99 * + + 51 + - 94 AS col0, 93 AS col0 +---- +-5143 +93 query I rowsort SELECT 16 * + + ( + 51 ) AS col1 @@ -29007,8 +29347,11 @@ 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\(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\. +query IR valuesort SELECT + COUNT ( * ) + - 20 / 56 * - - 33 AS col2, + ( - - COUNT ( * ) ) / - CAST ( NULL AS FLOAT8 ) * 6 - + MIN ( - - 43 ) + 16 + - 2 * - 54 AS col2 +---- +1 +NULL query I rowsort SELECT + 0 + - 63 AS col2 @@ -29018,8 +29361,11 @@ SELECT + 0 + - 63 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 6 * COUNT ( * ) AS col1, - COUNT ( * ) * - 49 AS col1 +---- +-6 +49 query I rowsort SELECT - CASE 6 WHEN - 94 + + ( + ( - 56 ) ) THEN - 46 END + - 16 @@ -29547,8 +29893,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- nullif\(Int64\(45\), \(\- \(\- Int64\(29\)\)\) \- Int64\(17\) \- \(\- Int64\(\-57\)\)\)\) WHEN \(\- Int64\(\-65\)\) THEN Int64\(67\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN NULL ELSE Int64\(82\) END \* count\(Int64\(8\)\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + + CASE + - ( NULLIF ( + 45, - ( - + ( + 29 ) ) - 17 - - - 57 ) ) WHEN - - 65 THEN + 67 WHEN - + CAST ( NULL AS INTEGER ) THEN NULL ELSE 82 END ) * COUNT ( ALL + 8 ) AS col2, 26 AS col2 +---- +26 +82 query I rowsort SELECT 35 - + + 88 @@ -30307,8 +30656,11 @@ SELECT ALL 38 * 62 # 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 "Int64\(63\) / Int64\(\-77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - - 60 ) AS col0, 63 / - 77 AS col0 +---- +-60 +0 query I rowsort label-5772 SELECT DISTINCT - COALESCE ( + 11, - + 87 + - CASE 89 WHEN CAST ( 86 AS FLOAT8 ) THEN NULL ELSE COALESCE ( COUNT ( * ), - COUNT ( * ) * + MIN ( - 82 / 13 ) ) END ) col1 @@ -30376,8 +30728,11 @@ SELECT DISTINCT - 33 * + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \+ Int64\(44\) AS col2" at position 0 and "Int64\(64\) \+ Int64\(0\) / Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 60 + + + 44 AS col2, 64 + 0 / 42 AS col2 +---- +-16 +64 query I rowsort SELECT - 4 * 84 @@ -30519,8 +30874,11 @@ SELECT + 6 + - 15 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "CASE Int64\(\-50\) WHEN Int64\(75\) \+ Int64\(25\) THEN Int64\(\-43\) \+ Int64\(44\) WHEN max\(Int64\(\-9\)\) \+ Int64\(49\) THEN avg\(Int64\(36\)\) \+ Int64\(5\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + CAST ( NULL AS INTEGER ) AS col2, CASE - 50 WHEN 75 + + + 25 THEN - 43 + 44 WHEN + MAX ( - 9 ) + + 49 THEN AVG ( 36 ) + 5 END AS col2 +---- +NULL +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -30698,8 +31056,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col0" at position 0 and "\(\- Int64\(55\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 40 col0, ( - + 55 ) AS col0 +---- +-40 +-55 query I rowsort SELECT DISTINCT + 14 * 21 AS col0 @@ -30719,8 +31080,11 @@ SELECT ALL 10 - - COUNT ( + 46 ) + ( + + 47 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 62 AS col1, + 5 AS col1 +---- +5 +62 query I rowsort SELECT 85 * - 56 * 50 * 86 * - NULLIF ( + 94, 52 ) AS col1 @@ -30730,8 +31094,11 @@ SELECT 85 * - 56 * 50 * 86 * - NULLIF ( + 94, 52 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 59 AS col2, + 93 AS col2 +---- +-59 +93 query I rowsort SELECT ALL 56 * + ( + 10 ) AS col0 @@ -30807,8 +31174,11 @@ SELECT ALL 78 + 68 * + 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col2" at position 0 and "Int64\(\-26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 83 AS col2, - 26 AS col2 +---- +-26 +-83 query I rowsort label-5867 SELECT ALL - 89 + + COUNT ( * ) * 47 * + COUNT ( * ) * 39 @@ -30872,8 +31242,11 @@ SELECT DISTINCT + COUNT ( * ) / - 96 * 7 # 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 "min\(Int64\(\-81\)\) AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( + - 81 ) AS col1, + 3 AS col1 +---- +-81 +3 query I rowsort label-5879 SELECT COUNT ( * ) * + - 46 * - + 81 col0 @@ -32098,8 +32471,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 29 + + - 80 + - + ( + COUNT ( * ) ) AS col0, + 63 AS col0 +---- +-52 +63 query I rowsort SELECT 32 * - 77 AS col0 @@ -32452,8 +32828,11 @@ SELECT + 51 * + COALESCE ( - 39, - 54 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 1340 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col2" at position 0 and "Int64\(20\) \* \(\- Int64\(\-67\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 14 AS col2, + 20 * - - 67 AS col2 +---- +1340 +14 query I rowsort SELECT + 68 + 84 @@ -32483,8 +32862,11 @@ SELECT - NULLIF ( + SUM ( 64 ), + + MAX ( DISTINCT + 90 ) * ( + 9 ) + + COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 5824 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-29\) \+ sum\(\(\- Int64\(\-60\)\)\) \+ Int64\(\-72\) \+ sum\(Int64\(85\)\) \* Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) col0, - 29 + SUM ( - - 60 ) + - 72 + + SUM ( + 85 ) * + 69 col0 +---- +1 +5824 query I rowsort label-6187 SELECT DISTINCT + COALESCE ( - - 11, + 24, + 30 / - + 60 * + + 44 * + + 16 * + 47 ) @@ -32499,8 +32881,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(41\)\) \+ Int64\(75\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 41 + 75 col0, 58 col0 +---- +34 +58 query I rowsort label-6190 SELECT ALL 32 * + MIN ( - + 77 ) + - + CAST ( + 41 AS INTEGER ) @@ -32951,8 +33336,11 @@ 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\(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\. +query II valuesort SELECT - 80 * COALESCE ( 95, - 97, + 41 * 77 + + COUNT ( * ) * + 62 + - + 76 * - 50 ) AS col1, 94 col1 +---- +-7600 +94 query I rowsort label-6276 SELECT ALL ( - 69 ) * - 30 + + COALESCE ( - - COUNT ( * ), + 2 / + CAST ( NULL AS INTEGER ) + NULLIF ( - COUNT ( * ), 59 ), + - 12 + + + 44 * 25 + + 43 ) + + COALESCE ( + 54, + 22 ) @@ -33395,8 +33783,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, 30 AS col0 +---- +-1 +30 query II rowsort SELECT DISTINCT + 86 + - + 0 AS col2, + 17 @@ -33537,8 +33928,12 @@ SELECT COALESCE ( + 13, + + 70 / CASE + COUNT ( * ) WHEN 46 THEN - + 82 ELSE + - # Datafusion - Expected - 66 # Datafusion - Expected - NULL # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 1 and "Int64\(\-61\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 49 + - - 17 AS col0, CAST ( NULL AS INTEGER ) AS col2, - 61 AS col2 +---- +-61 +66 +NULL query I rowsort SELECT ALL + - 5 * + 53 * - + 81 * - 51 * - ( + 60 ) + + + 42 @@ -34643,8 +35038,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(7\) \+ Int64\(\-58\) AS col0" at position 0 and "Int64\(\-14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( ( ( + 3 ) ) ) * + 7 + - 58 AS col0, - 14 AS col0 +---- +-14 +-37 query II rowsort SELECT ALL 71, - 90 col0 @@ -35113,8 +35511,11 @@ SELECT + 44 * - 53 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) AS col1" at position 0 and "Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 52 AS col1, ( - 36 ) col1 +---- +-36 +-52 query I rowsort SELECT - 9 + + 41 AS col1 @@ -35340,8 +35741,11 @@ SELECT DISTINCT 58 + COALESCE ( + - 34, + 70 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4964 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \+ Int64\(17\) \+ CAST\(Int64\(81\) AS Int32\) \* Int64\(61\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 + 17 + + + CAST ( + + 81 AS INTEGER ) * 61 AS col1, + 7 AS col1 +---- +4964 +7 query I rowsort SELECT ALL + 64 * - - 79 @@ -35579,8 +35983,11 @@ SELECT MAX ( - - 71 ), - 14 * - COALESCE ( - 20, - 48, + - ( 56 ) + - NULLIF ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(24\)\) \* Int64\(\-57\) \+ Int64\(11\) \+ Int64\(88\) \+ Int64\(\-39\) \* Int64\(\-38\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-79\) \* Int64\(71\) \+ Int64\(90\) \+ Int64\(66\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 63 * + NULLIF ( COUNT ( * ), - + 24 * - 57 + + + 11 + + 88 + - 39 * - 38 + + + COUNT ( * ) - - 79 * + 71 + 90 + + + 66 ) AS col2, CAST ( NULL AS INTEGER ) AS col2 +---- +63 +NULL query I rowsort SELECT ALL - 82 * - 61 + + + ( + 89 ) @@ -35783,8 +36190,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -175259 # Datafusion - Expected - -126 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* Int64\(66\) \* \(\- Int64\(59\)\) \+ Int64\(\-29\) AS col1" at position 0 and "coalesce\(count\(\(\- Int64\(\-96\)\)\), Int64\(9\)\) \+ Int64\(\-36\) \+ Int64\(\-91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 45 * + + 66 * - + 59 + + ( + - 29 ) AS col1, COALESCE ( COUNT ( - - 96 ), + + 9 ) + - 36 + - 91 AS col1 +---- +-126 +-175259 query II rowsort label-6817 SELECT + CAST ( - + NULLIF ( + 31, + 75 + 40 ) AS INTEGER ) AS col0, - ( - 90 ) * + ( - 22 ) @@ -36253,8 +36663,11 @@ SELECT ALL + ( + - 56 ) * + COUNT ( * ) # 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 col0" at position 0 and "Int64\(29\) / Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 18 AS col0, + 29 / - 66 AS col0 +---- +0 +18 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -36337,8 +36750,11 @@ SELECT ALL 91 * 3 # 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 col1" at position 0 and "Int64\(\-81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 19 AS col1, - 81 col1 +---- +-81 +19 query I rowsort SELECT COALESCE ( - - 0, + 75, + - 56 ) @@ -36452,8 +36868,11 @@ SELECT + - 33 - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -604 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col0" at position 0 and "Int64\(\-15\) \* \(\- Int64\(\-34\)\) \+ \(\- min\(DISTINCT Int64\(94\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 68 AS col0, - 15 * - - 34 + + - MIN ( DISTINCT 94 ) AS col0 +---- +-604 +68 query II rowsort label-6941 SELECT ALL + 26, 80 * + COUNT ( * ) + - - COUNT ( * ) * + COUNT ( * ) / - 85 AS col2 @@ -36699,8 +37118,11 @@ SELECT COUNT ( * ) + - 66 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 54 AS col0, 92 AS col0 +---- +-54 +92 query I rowsort label-6988 SELECT COUNT ( * ) * + 97 * 74 * + + 64 @@ -36773,8 +37195,12 @@ SELECT 42 * + 38 # Datafusion - Expected - 65 # Datafusion - Expected - 48 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col1" at position 0 and "Int64\(11\) \+ Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 65 AS col1, 11 + + + 37 col1, COUNT ( * ) * - + 41 +---- +-41 +48 +65 query I rowsort SELECT - 6 + ( 41 ) + - - 25 AS col0 @@ -37044,8 +37470,11 @@ SELECT ALL COALESCE ( + - 37, COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \- Int64\(93\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 79 - 93 AS col0, CAST ( NULL AS INTEGER ) AS col0 +---- +-14 +NULL query I rowsort label-7052 SELECT ALL MIN ( - 38 ) AS col1 @@ -37624,8 +38053,11 @@ SELECT - 67 * - 11 + + 18, - 93 / ( - ( 65 ) ) * - 48 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col1" at position 0 and "Int64\(\-53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 73 ) AS col1, - 53 col1 +---- +-53 +-73 query I rowsort label-7162 SELECT - MIN ( - 66 ) / 29 + - 67 / + ( 94 ) @@ -37696,8 +38128,11 @@ SELECT NULLIF ( NULLIF ( + + 89, - 47 ), + 32 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4148 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \* \(\- coalesce\(\(\- Int64\(92\)\), sum\(Int64\(58\)\)\)\) \+ Int64\(26\) \* Int64\(\-18\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 40 ) * - COALESCE ( - + ( 92 ), SUM ( + 58 ) ) + + + 26 * - 18 AS col1, 29 AS col1 +---- +-4148 +29 query I rowsort label-7176 SELECT + 90 / + 8 @@ -37827,8 +38262,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 23 AS col2, 53 col2 +---- +-23 +53 query I rowsort label-7201 SELECT 82 * + + COUNT ( * ) AS col0 @@ -38078,8 +38516,11 @@ SELECT DISTINCT + ( + + 57 ) + 33 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 341936 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col0" at position 0 and "Int64\(71\) \* Int64\(86\) \* Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 91 AS col0, 71 * 86 * + + 56 AS col0 +---- +-91 +341936 query I rowsort label-7249 SELECT 62 * + COUNT ( + 19 ) @@ -38130,8 +38571,11 @@ SELECT ALL - ( 84 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 39 col0 +---- +39 +NULL query I rowsort SELECT + 29 + + 60 + 50 AS col2 @@ -38354,8 +38798,11 @@ SELECT + + 31 * - 9 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-28\)\) AS Int32\) \+ Int64\(\-61\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( - - 28 AS INTEGER ) + - 61 + CAST ( NULL AS INTEGER ) col2, + COUNT ( * ) * - 89 AS col2 +---- +-89 +NULL query I rowsort label-7301 SELECT + 10 * - + ( - 98 ) * + COUNT ( * ) @@ -39326,8 +39773,11 @@ SELECT MIN ( DISTINCT 28 ) + + 2 * - 89 * - 35 * 1 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 106 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col0" at position 0 and "Int64\(22\) \+ Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 28 AS col0, 22 + + + 84 AS col0 +---- +-28 +106 query I rowsort label-7491 SELECT ALL 26 + 56 * + MIN ( DISTINCT - + 76 ) + + 88 AS col2 @@ -39347,8 +39797,11 @@ SELECT ALL + 40 * CASE 29 WHEN + + COUNT ( * ) THEN NULL ELSE COUNT ( * ) END * # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 39 AS col1, 15 AS col1 +---- +-39 +15 query I rowsort label-7495 SELECT 97 * - + CAST ( - + 91 AS INTEGER ) col1 @@ -39675,8 +40128,11 @@ SELECT - - 83 / - + 87 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3906 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* Int64\(\-62\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 63 * ( - 62 ) AS col0, 24 AS col0 +---- +-3906 +24 query I rowsort label-7559 SELECT ALL + CASE + 93 WHEN - 10 THEN NULL WHEN - - 91 + + 82 * ( + ( + ( ( 67 ) ) ) ) + + CASE 74 + 24 WHEN 5 THEN NULL ELSE ( - 58 ) END THEN 39 / - COALESCE ( 83, CASE - 67 WHEN + 55 * - ( + 95 * + COALESCE ( - 10, 27, NULLIF ( 72, - 6 * - COUNT ( * ) ) * 36 + + ( - 8 + - COUNT ( * ) ), 22 ) ) + + 46 THEN 77 / - MAX ( 88 ) WHEN + NULLIF ( - 98, - NULLIF ( - CAST ( 54 AS INTEGER ), 22 ) ) THEN NULL END + - COALESCE ( 34, + 23 + 74 ), 43 * ( MAX ( ALL + 40 ) ) ) + + 99 * 28 END * + 92 + 40 * - 57 AS col0 @@ -39702,8 +40158,11 @@ SELECT ALL 66 * + + 1 + + + 81 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-62\)\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - - 62 ) AS col1, + 91 AS col1 +---- +62 +91 query I rowsort label-7564 SELECT 67 * 39 * + 92 + + 72 + + 89 + + COUNT ( * ) * 36 * 71 @@ -40036,8 +40495,11 @@ SELECT ALL - COUNT ( * ) + + CASE 13 WHEN 98 THEN + 60 + + 57 ELSE + 20 END # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(0\)\) \+ Int64\(\-19\) AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( 0 ) + + - 19 AS col0, + 27 AS col0 +---- +-19 +27 query I rowsort label-7628 SELECT DISTINCT + 22 / + 68 AS col0 @@ -40107,8 +40569,11 @@ 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\(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\. +query II valuesort 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 +---- +-63 +NULL query I rowsort label-7642 SELECT COUNT ( * ) + 66 AS col0 @@ -40661,8 +41126,11 @@ SELECT ALL - COUNT ( * ) * + 34 + - + COALESCE ( - 39, + + CAST ( 5 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2040 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(60\) AS col0" at position 0 and "max\(Int64\(\-18\)\) / coalesce\(Int64\(98\), Int64\(\-84\), Int64\(0\) / Int64\(89\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 34 * + 60 AS col0, MAX ( + ( - 18 ) ) / + COALESCE ( 98, - 84, + - 0 / + + 89 ) AS col0 +---- +0 +2040 query I rowsort label-7750 SELECT 90 * CAST ( 38 AS INTEGER ) * - 50 col0 @@ -40847,8 +41315,11 @@ 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\(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\. +query II valuesort SELECT ALL + 18 * - - ( + COUNT ( * ) ) * 32 AS col1, COUNT ( * ) * + 97 AS col1 +---- +576 +97 query I rowsort label-7785 SELECT - CASE - - COUNT ( * ) WHEN + ( + 55 ) THEN 72 * 44 END @@ -41054,8 +41525,11 @@ 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\(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\. +query II valuesort SELECT ALL 48 AS col1, + 67 + - + CASE 90 WHEN + + 60 + ( - - 18 ) THEN - - COUNT ( * ) WHEN 26 THEN NULL END + - - 30 * - + ( COUNT ( * ) ) AS col1 +---- +48 +NULL query II rowsort SELECT ALL - 62, 53 + - ( + 62 ) * + 69 AS col1 @@ -41323,8 +41797,11 @@ SELECT + 83, + 41 * + - 80 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "Int64\(\-26\) / CAST\(NULL AS Int32\) \+ Int64\(\-70\) \* Int64\(95\) \* Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( 96 ) AS col2, - 26 / CAST ( NULL AS INTEGER ) + + - 70 * + 95 * - 79 AS col2 +---- +96 +NULL query I rowsort SELECT 95 * 42 - 42 * 8 @@ -42303,8 +42780,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3024 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-72\)\) \* \(\- Int64\(42\)\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 72 * - + 42 AS col2, 88 AS col2 +---- +-3024 +88 query I rowsort label-8059 SELECT ALL + SUM ( + 42 ) AS col0 @@ -42795,8 +43275,12 @@ 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\(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\. +query III valuesort SELECT DISTINCT - 54 * + 12 + - ( + COUNT ( * ) ) AS col2, + 26 * - 7 + + + 51 AS col2, + 47 * + - 20 +---- +-131 +-649 +-940 query I rowsort SELECT DISTINCT + COALESCE ( + - 1, + + 21 * 92 ) AS col2 @@ -43178,8 +43662,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 28 AS col1, ( + 8 ) * 83 - - COUNT ( * ) AS col1 +---- +-28 +665 query I rowsort SELECT ALL - + 15 + ( - - 72 ) - - - 7 AS col2 @@ -43224,14 +43711,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - COUNT ( * ) col0, 29 AS col0 +---- +1 +29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3900 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* Int64\(52\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 * 52 AS col0, COUNT ( * ) AS col0 +---- +1 +3900 query II rowsort label-8234 SELECT 85 * - 61, + CASE + 85 WHEN + ( - - COALESCE ( - - 61, 48 + - 10 ) ) THEN + + 97 ELSE - 81 END + + ( + - CASE WHEN NOT - 31 = NULL THEN - - COALESCE ( - + 2, + 65 + - COUNT ( * ) ) END ) * - 74 * + 29 col2 @@ -43324,8 +43817,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * + 93 AS col1, - 85 + 74 + 23 * 62 AS col1 +---- +1415 +93 query I rowsort label-8252 SELECT COUNT ( * ) + - 12 / + - 61 AS col2 @@ -43335,8 +43831,11 @@ SELECT COUNT ( * ) + - 12 / + - 61 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 171 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(94\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 77 + 94 AS col1, + 67 AS col1 +---- +171 +67 query II rowsort SELECT 13 + 46 - - - 18 AS col1, ( + 79 ) @@ -43993,8 +44492,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -62366 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \* Int64\(10\) \* Int64\(79\) \+ Int64\(44\) AS col2" at position 0 and "CAST\(Int64\(0\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 79 * 10 * 79 + + + 44 AS col2, CAST ( 0 AS INTEGER ) AS col2 +---- +-62366 +0 query I rowsort label-8378 SELECT 34 / - 65 + - MIN ( 10 ) + + 43 @@ -44430,8 +44932,11 @@ SELECT DISTINCT ( COUNT ( * ) ) * - + 53 / - 64 * - 46 col0 # 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\(12\) / 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 II valuesort SELECT 12 / 71 col1, - 86 AS col1 +---- +-86 +0 query I rowsort SELECT 48 * 57 * 38 col1 @@ -44703,8 +45208,11 @@ SELECT + 82 * + 71 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4784 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \* Int64\(92\) AS col1" at position 0 and "Int64\(\-74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 52 * + ( 92 ) AS col1, - 74 AS col1 +---- +-4784 +-74 query I rowsort label-8512 SELECT ALL + CASE - COUNT ( * ) WHEN - 10 THEN NULL WHEN - 66 THEN - + 96 WHEN + 94 * - 22 THEN NULL ELSE + CAST ( COUNT ( * ) AS INTEGER ) END @@ -44943,8 +45451,11 @@ 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\(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\. +query II valuesort SELECT ALL 71 / - - COUNT ( * ) AS col0, 31 + - COUNT ( * ) AS col0 +---- +30 +71 query I rowsort SELECT DISTINCT 6 * 1 col2 @@ -45479,8 +45990,11 @@ SELECT ALL 97 + - 19 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT Int64\(18\)\) \+ \(\- Int64\(33\)\) AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( DISTINCT 18 ) + - + 33 AS col1, 17 AS col1 +---- +-32 +17 query I rowsort SELECT + 80 + - 86 @@ -45661,8 +46175,11 @@ SELECT ALL - - 88 + + - ( + 59 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \- Int64\(18\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) - 18 AS col2, 59 col2 +---- +59 +NULL query I rowsort label-8695 SELECT - 56 * + + ( - - CASE CAST ( NULL AS INTEGER ) WHEN + SUM ( ALL - 89 ) THEN + - 87 WHEN COUNT ( * ) + + 92 * + + NULLIF ( + COUNT ( * ), - AVG ( ALL - 9 ) * 20 + - CAST ( - 23 AS INTEGER ) + - COUNT ( * ) ) THEN NULL ELSE NULL END ) AS col1 @@ -45738,8 +46255,11 @@ SELECT 1 + - 35 + - MIN ( DISTINCT 23 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - -1400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \+ Int64\(\-21\) AS col1" at position 0 and "Int64\(40\) \* Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 59 + - 21 AS col1, + 40 * - 35 AS col1 +---- +-1400 +38 query I rowsort SELECT ALL ( - 44 ) + 15 * - - 38 - - + 50 AS col0 @@ -45821,8 +46341,11 @@ SELECT - ( - COUNT ( * ) ) + + - 21 + - 68 * - - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(95\)\)\) AS col0" at position 0 and "Int64\(91\) \+ CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( + ( - + 95 ) ) AS col0, 91 + + CAST ( NULL AS INTEGER ) + COUNT ( * ) / + + 67 AS col0 +---- +-95 +NULL query I rowsort SELECT ALL + 12 * + 38 col0 @@ -46239,8 +46762,11 @@ SELECT 7 * - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* count\(Int64\(56\)\) AS col1" at position 0 and "min\(Int64\(\-92\)\) \+ CAST\(Int64\(87\) AS Int32\) \+ \(\- \(\- CAST\(Int64\(82\) AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 * + COUNT ( 56 ) AS col1, MIN ( ALL + - 92 ) + + CAST ( + 87 AS INTEGER ) + - - CAST ( + 82 AS INTEGER ) AS col1 +---- +42 +77 query I rowsort SELECT DISTINCT 23 - - COALESCE ( - 86, 64, + 62 * - + 16 + + 12 - + + 52 ) + + 31 AS col2 @@ -46300,8 +46826,11 @@ SELECT + 10, 60 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(87\)\) \+ Int64\(54\) AS col0" at position 0 and "Int64\(82\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + 87 ) + + 54 AS col0, + 82 + COUNT ( * ) AS col0 +---- +-33 +83 query I rowsort label-8817 SELECT DISTINCT + - 91 + - 56 * - CASE - + 49 WHEN + + 52 * - - 84 + + + ( - + 94 ) THEN + COUNT ( * ) + + + 20 / + 42 + 10 + COUNT ( * ) / + 46 - + 50 / ( - - 9 ) END - - + 18 @@ -46363,8 +46892,11 @@ SELECT 91 / - + SUM ( ALL + 53 ) 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 "sum\(DISTINCT nullif\(\(\- CASE Int64\(90\) WHEN Int64\(95\) \* Int64\(46\) \+ Int64\(\-69\) THEN Int64\(25\) END\), Int64\(20\) \+ Int64\(44\)\)\) \* Int64\(\-3\) \* CASE \(\- Int64\(\-55\)\) WHEN \(\- Int64\(\-37\)\) \* Int64\(\-3\) \- \(\- \(\- avg\(Int64\(99\)\)\)\) THEN NULL WHEN \(\- Int64\(14\)\) \* Int64\(\-99\) THEN Int64\(0\) ELSE Int64\(58\) \- \(\- Int64\(\-83\)\) \* Int64\(19\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 45 AS col0, SUM ( DISTINCT + + NULLIF ( - CASE 90 WHEN 95 * + 46 + + - 69 THEN + ( + 25 ) END, 20 + + 44 ) ) * - 3 * + CASE - ( - 55 ) WHEN - - 37 * - 3 - - - AVG ( + + 99 ) THEN NULL WHEN - + 14 * - 99 THEN 0 ELSE + + 58 - - - 83 * 19 END AS col0 +---- +45 +NULL query II rowsort label-8829 SELECT ALL 97 AS col2, COUNT ( + 68 ) / + - 1 @@ -46390,8 +46922,11 @@ SELECT ALL + 45 / + NULLIF ( - - 61, 29 ) * + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 111 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(78\) \+ Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col0, 78 + 33 AS col0 +---- +1 +111 query I rowsort label-8834 SELECT 26 * - COUNT ( * ) AS col0 @@ -46659,8 +47194,11 @@ SELECT ALL + - 75 / - 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5475 # Datafusion - Expected - 1130976 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-73\)\) \* \(\- Int64\(75\)\) AS col0" at position 0 and "Int64\(24\) \* Int64\(33\) \* Int64\(\-17\) \* \(\- Int64\(84\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 73 * - + 75 AS col0, 24 * + 33 * - 17 * - + 84 AS col0 +---- +-5475 +1130976 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -46748,8 +47286,11 @@ SELECT ALL + COUNT ( * ) * + 66 + + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2824 # Datafusion - Expected - 100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* \(\- coalesce\(Int64\(\-35\), Int64\(\-6\)\)\) \+ Int64\(\-81\) AS col2" at position 0 and "CAST\(\(\- CAST\(Int64\(78\) AS Float64\)\) AS Int32\) \- Int64\(95\) \+ Int64\(0\) \+ Int64\(\-39\) \* Int64\(\-1\) \* Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 83 * - COALESCE ( + - 35, - 6 ) + - 81 AS col2, CAST ( - CAST ( + + 78 AS FLOAT8 ) AS INTEGER ) - + 95 + 0 + + - 39 * - 1 * + 7 AS col2 +---- +100 +2824 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -46762,8 +47303,11 @@ SELECT ALL + - NULLIF ( 10, - COALESCE ( 75, AVG ( ALL - + CAST ( + 57 AS FLOAT8 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col1" at position 0 and "Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + - 71 ) AS col1, 18 col1 +---- +-71 +18 query I rowsort label-8901 SELECT DISTINCT NULLIF ( ( - 51 ), + - 59 * CAST ( + ( ( + 11 ) ) AS INTEGER ) * - COUNT ( * ) + + COUNT ( 65 ) ) * - NULLIF ( - + COUNT ( * ), + - COUNT ( * ) ) + 71 AS col2 @@ -48271,8 +48815,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col0" at position 0 and "Int64\(99\) \- CAST\(Int64\(\-83\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 AS col0, + 99 - + CAST ( - 83 AS INTEGER ) AS col0 +---- +182 +6 query I rowsort SELECT ALL 64 + + 55 AS col0 @@ -48705,8 +49252,12 @@ SELECT - + 7 * 67 * + COUNT ( * ) * - MIN ( 15 ) + + + COUNT ( * ) + - 5 + - - 5 # Datafusion - Expected - 35 # Datafusion - Expected - NULL # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) / Int64\(6\) \- \(\- Int64\(43\)\) AS col0" at position 0 and "CAST\(NULL AS Float64\) \* Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IRI valuesort SELECT DISTINCT - 50 / + 6 - - + ( 43 ) col0, + CAST ( NULL AS FLOAT8 ) * + 5 AS col0, - 98 col0 +---- +-98 +35 +NULL query I rowsort label-9278 SELECT - 6 / - COUNT ( * ) + - 87 @@ -49084,8 +49635,11 @@ SELECT DISTINCT - 53 * + 63 * 58 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - -7349 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col0" at position 0 and "Int64\(94\) \* Int64\(\-79\) \+ \(\- max\(Int64\(\-77\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 43 col0, + 94 * - 79 + - + MAX ( - 77 ) AS col0 +---- +-43 +-7349 query I rowsort label-9353 SELECT CASE + + 9 WHEN + - 25 / - - COUNT ( * ) + + 0 / SUM ( 11 ) * + 82 + + - 53 THEN NULL WHEN + - 13 THEN - 72 + + 35 * - 36 END * 2 + 27 AS col2 @@ -49234,8 +49788,11 @@ SELECT - 44 AS col1, 45 / + - 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-57\)\) AS col1" at position 0 and "Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 57 AS col1, - 70 AS col1 +---- +-70 +57 query I rowsort label-9381 SELECT ALL + 39 + - COUNT ( * ) AS col0 @@ -49362,8 +49919,11 @@ SELECT + 5 + - 7 * - 32 * - - 94 # 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\(56\)\) \* Int64\(\-1\) AS col1" at position 0 and "Int64\(55\) / Int64\(\-94\) \* Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 56 * - 1 AS col1, + 55 / - 94 * - 58 AS col1 +---- +0 +56 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -49416,8 +49976,11 @@ SELECT - 51 - - + ( 51 ) + + 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - -245 # Datafusion - Expected - -5831 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* Int64\(\-7\) AS col2" at position 0 and "Int64\(\-99\) \* Int64\(59\) \+ Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 * - 7 AS col2, - 99 * + 59 + 10 col2 +---- +-245 +-5831 query II rowsort SELECT + ( - 4 ) col1, - 27 col2 @@ -49545,8 +50108,11 @@ SELECT DISTINCT - 88 + + - COUNT ( * ) + COUNT ( * ) * 93 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -159 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \+ Int64\(\-62\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( - 97 ) + - 62 AS col0, 7 AS col0 +---- +-159 +7 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -49672,8 +50238,11 @@ SELECT 4 + - 84 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1330 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \* Int64\(14\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / CAST\(NULL AS Int32\) \+ Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 95 * + 14 AS col0, + COUNT ( * ) / + CAST ( NULL AS INTEGER ) + - 60 AS col0 +---- +-1330 +NULL query I rowsort SELECT ( 47 ) + + - 79 AS col1 @@ -49979,8 +50548,11 @@ SELECT ALL + COUNT ( * ), 60 / SUM ( - - 41 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1736 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \* Int64\(56\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 31 ) * 56 AS col2, + 59 AS col2 +---- +-1736 +59 query I rowsort label-9523 SELECT + + 17 - + COUNT ( * ) - CASE - - 46 WHEN - + 26 THEN NULL WHEN - 73 * - + 32 THEN - 13 * - + 89 WHEN + 72 THEN NULL WHEN 78 THEN NULL ELSE - 80 END AS col0 @@ -50041,8 +50613,11 @@ SELECT - 54 * + NULLIF ( + CAST ( + 4 AS INTEGER ), - + 30 + + + ( + 77 ) ) AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, 96 AS col1 +---- +1 +96 query I rowsort SELECT ALL COALESCE ( - 89, - + 39 ) AS col2 @@ -50108,8 +50683,12 @@ SELECT ALL + 51 * - 6, + ( - 15 ) AS col1 # Datafusion - Expected - 12 # Datafusion - Expected - -819 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "\(\- Int64\(84\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 12 AS col0, 91 * - MIN ( DISTINCT + 9 ) AS col2, - + 84 AS col0 +---- +-819 +-84 +12 query I rowsort label-9547 SELECT ALL COUNT ( * ) * + 80 AS col0 @@ -50453,8 +51032,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 AS col1, 33 AS col1 +---- +33 +37 query I rowsort SELECT 29 + 30 * - 97 AS col1 @@ -50489,8 +51071,11 @@ SELECT 74 - + 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \+ CASE Int64\(19\) WHEN Int64\(88\) THEN Int64\(\-75\) END \* Int64\(\-34\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 + + CASE + + 19 WHEN + 88 THEN - 75 END * - 34 col1, + 53 AS col1 +---- +53 +NULL query II rowsort SELECT ALL - 94, 36 + 91 AS col2 @@ -50562,8 +51147,11 @@ SELECT DISTINCT - 36 + 63 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(\-98\)\)\) AS col0" at position 0 and "Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( ALL - - 98 ) AS col0, - 29 AS col0 +---- +-29 +98 query II rowsort SELECT 98 * - - 34 AS col0, 36 + 98 AS col2 @@ -51245,8 +51833,11 @@ SELECT - - 14 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \- Int64\(37\) \+ nullif\(CAST\(\(\- Int64\(\-55\)\) AS Int32\), Int64\(\-94\)\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 61 - 37 + NULLIF ( CAST ( - ( + - 55 ) AS INTEGER ), - 94 ) AS col2, 49 AS col2 +---- +49 +79 query I rowsort label-9762 SELECT + - 1 * + + COUNT ( * ) AS col0 @@ -51375,8 +51966,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-1\), CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COALESCE ( + - 1, + CAST ( NULL AS INTEGER ) ) AS col2, - 37 AS col2 +---- +-1 +-37 query I rowsort label-9786 SELECT ALL - + 51 - + + 62 / CAST ( NULL AS INTEGER ) + - 82 / + 82 AS col1 @@ -51500,8 +52094,11 @@ SELECT 7 * + MIN ( ALL 39 ) * + + 31 + 46 + + 65 - - 33 + 81 * + - ( 54 ) + + 73 # 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 "\(\- CASE Int64\(47\) WHEN Int64\(82\) THEN Int64\(\-45\) WHEN \(\- nullif\(Int64\(31\), \(\- \(\- coalesce\(Int64\(\-65\), Int64\(65\), Int64\(76\) / Int64\(50\) \+ Int64\(55\) \+ Int64\(\-95\)\)\)\)\)\) \* \(\- Int64\(\-90\)\) THEN \(\- Int64\(\-79\)\) END\) \* Int64\(46\) / Int64\(65\) \* Int64\(61\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CASE 47 WHEN 82 THEN ( - 45 ) WHEN - NULLIF ( + 31, - ( - COALESCE ( - 65, 65, + 76 / + 50 + 55 + - 95 ) ) ) * - - 90 THEN - - 79 END * + 46 / 65 * + 61 AS col0, 49 AS col0 +---- +49 +NULL query II rowsort label-9810 SELECT DISTINCT 75 * COUNT ( * ) AS col2, ( + - 94 ) AS col0 @@ -52033,8 +52630,11 @@ SELECT - 77 + + COUNT ( * ) col1 # 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\(0\) / Int64\(\-21\) \* Int64\(75\) \* \(\- count\(DISTINCT \(\- Int64\(44\)\)\)\) AS col0" at position 0 and "Int64\(\-72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 0 / - 21 * 75 * - COUNT ( DISTINCT - + 44 ) AS col0, - 72 AS col0 +---- +-72 +0 query I rowsort label-9909 SELECT ALL MAX ( ALL + + 92 ) AS col1 @@ -52233,8 +52833,11 @@ NULL # 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 col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 AS col2, + 98 AS col2 +---- +84 +98 query I rowsort SELECT DISTINCT 17 * 9 @@ -52358,8 +52961,12 @@ 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\(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\. +query III valuesort 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 +---- +-2 +48 +92 query I rowsort label-9969 SELECT + 80 * 54 + - 88 * - + CASE + 75 WHEN + 35 * + ( + - 42 ) THEN NULL WHEN - COUNT ( * ) * + 19 + - COUNT ( * ) THEN + 16 + - ( - + CASE - - 20 WHEN 9 * + + 98 * - + 38 THEN - 74 END ) + + 82 * + 21 * 1 ELSE 80 * - COUNT ( * ) / + - ( CASE WHEN ( NULL ) NOT IN ( - 71 ) THEN + 16 - 76 WHEN NOT ( NULL ) BETWEEN - SUM ( ALL + 85 ) * 43 AND NULL THEN NULL END ) END + + 56 * + 69 diff --git a/data/sqlite/random/expr/slt_good_5.slt b/data/sqlite/random/expr/slt_good_5.slt index 0f7fe9e..25c6b32 100644 --- a/data/sqlite/random/expr/slt_good_5.slt +++ b/data/sqlite/random/expr/slt_good_5.slt @@ -116,8 +116,11 @@ SELECT - 72 / + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT \(\- Int64\(68\)\)\) AS col0" at position 0 and "\(\- min\(Int64\(\-50\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MAX ( DISTINCT - + 68 ) AS col0, - MIN ( - 50 ) AS col0 +---- +-68 +50 query I rowsort label-16 SELECT ALL + ( 99 ) * + ( ( - 93 ) ) * + 36 * + 82 * + - COUNT ( + - 32 ) - + ( + 21 ) + - 96 + - 7 AS col2 @@ -287,8 +290,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) - - + 92 * 21 AS col2, + COUNT ( ALL 40 ) AS col2 +---- +1 +1931 query I rowsort label-47 SELECT CASE 20 WHEN - MAX ( DISTINCT - ( + - 23 ) ) * - 21 * + 28 THEN - - 34 WHEN - - 15 - + + 53 THEN - - 1 + - 6 * 82 * + 2 END AS col2 @@ -339,8 +345,11 @@ 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\(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\. +query II valuesort SELECT SUM ( DISTINCT - 39 ) * - 57 + - COUNT ( * ) - - - 10 AS col0, COALESCE ( 48, + + 41 ) / 48 * - - 62 + - + 94 AS col0 +---- +-32 +2212 query I rowsort SELECT ALL - 45 * + - 71 AS col1 @@ -436,8 +445,11 @@ SELECT 49 * - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "Int64\(\-74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 26 AS col0, - 74 col0 +---- +-74 +26 query II rowsort label-75 SELECT 80 AS col2, + 53 / - + 43 @@ -449,8 +461,12 @@ SELECT 80 AS col2, + 53 / - + 43 # Datafusion - Expected - NULL # Datafusion - Expected - -86805 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \* Int64\(62\) \+ Int64\(\-53\) \- Int64\(30\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN CAST\(NULL AS Int32\) \* Int64\(\-43\) THEN NULL WHEN avg\(Int64\(\-54\)\) THEN Int64\(\-89\) END AS col1" at position 0 and "Int64\(87\) \* Int64\(7\) \* Int64\(54\) \- Int64\(\-9\) \+ Int64\(57\) \* CAST\(Int64\(\-35\) AS Int32\) \* Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-86805 +1 +NULL query II rowsort label-77 SELECT 88, - 33 / + + 9 AS col1 @@ -1086,8 +1102,11 @@ SELECT ALL + + MIN ( ALL + 5 ) + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(42\)\)\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( ALL 42 ) AS col0, + 14 AS col0 +---- +-1 +14 query I rowsort SELECT ALL - 62 + 8 + - ( - + 71 ) AS col1 @@ -1411,8 +1430,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "Int64\(37\) \- Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 AS col0, + 37 - + - 19 col0 +---- +45 +56 query I rowsort SELECT ALL CASE - - 53 WHEN + 72 + 74 THEN + 13 END @@ -1442,14 +1464,20 @@ 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\(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\. +query II valuesort SELECT - 7 AS col1, COALESCE ( - 84, ( + COUNT ( * ) ) ) + - + 73 + - 25 * - - SUM ( DISTINCT 27 ) AS col1 +---- +-7 +-832 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "Int64\(\-67\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 9 AS col2, - 67 * + - CAST ( NULL AS INTEGER ) AS col2 +---- +9 +NULL query I rowsort label-266 SELECT - - 40 / - - MIN ( ALL 78 ) + - + 13 @@ -1470,8 +1498,11 @@ SELECT ( + - 18 ), + 53 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 83 col1, 90 AS col1 +---- +83 +90 query II rowsort SELECT + - 51, - 45 + + 27 col1 @@ -1637,8 +1668,11 @@ 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\(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\. +query II valuesort SELECT - 95 + + - CASE - 45 WHEN COUNT ( * ) * + COUNT ( * ) THEN NULL WHEN - 93 * - + 47 + + - COUNT ( * ) THEN + 94 END + + 31 col0, 85 AS col0 +---- +85 +NULL query I rowsort label-300 SELECT DISTINCT NULLIF ( 11, + SUM ( + 68 ) ) @@ -1648,8 +1682,11 @@ SELECT DISTINCT NULLIF ( 11, + SUM ( + 68 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(12\) \+ Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 83 - + COUNT ( * ) AS col1, + 12 + - 43 AS col1 +---- +-31 +82 query I rowsort label-302 SELECT - SUM ( + 49 ) * + 83 * COUNT ( DISTINCT - 17 ) - + 46 AS col2 @@ -2026,8 +2063,11 @@ 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 "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 54 AS col2, 3 AS col2 +---- +3 +54 query II rowsort SELECT DISTINCT + 31, 15 col0 @@ -2376,8 +2416,11 @@ 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\(1\)\) AS count\(\*\)\)\) \* Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 37 AS col1, MIN ( - 36 ) - - + 79 * 8 * - NULLIF ( + 4, + COUNT ( * ) ) * 36 AS col1 +---- +-37 +-91044 query I rowsort label-440 SELECT DISTINCT + MIN ( 36 ) @@ -2581,8 +2624,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 29 AS col2, + 28 col2 +---- +28 +29 query II rowsort label-480 SELECT + 83, - 76 + - + 67 - COUNT ( * ) AS col1 @@ -2625,8 +2671,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, - 4 AS col2 +---- +-1 +-4 query I rowsort SELECT - - 25 - + ( + - 6 ) @@ -2999,8 +3048,11 @@ SELECT 1 + 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 43 AS col1, 52 AS col1 +---- +43 +52 query I rowsort SELECT ALL ( + - 4 ) + + + 88 @@ -3304,8 +3356,11 @@ 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\(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\. +query II valuesort 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 +---- +-34 +NULL query I rowsort label-617 SELECT ALL NULLIF ( - - 80, - + 22 * - - COUNT ( * ) ) * 50 * - - CASE + 35 WHEN - 0 THEN - 83 ELSE + - 17 END @@ -3721,8 +3776,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 58 * - ( - - 4 ) + - + ( 27 ) col2, - COUNT ( * ) col2 +---- +-1 +-259 query I rowsort label-698 SELECT ALL + COUNT ( * ) + + 66 AS col0 @@ -3858,8 +3916,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "CAST\(Int64\(4\) AS Int32\) / nullif\(min\(Int64\(68\)\), \(\- Int64\(\-74\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) col0, CAST ( + 4 AS INTEGER ) / + NULLIF ( MIN ( + 68 ), + + ( - - 74 ) ) AS col0 +---- +0 +NULL query I rowsort SELECT ALL - 23 * + - 48 AS col1 @@ -3987,8 +4048,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + ( - COUNT ( * ) ) AS col2, - 6 AS col2, + ( - 38 ) AS col0 +---- +-1 +-38 +-6 query I rowsort label-749 SELECT DISTINCT + 8 * - + COUNT ( * ) AS col0 @@ -4102,8 +4167,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - -2240 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-73\), Int64\(76\) \* count\(Int64\(\-83\)\), \(\- max\(DISTINCT coalesce\(Int64\(\-38\), Int64\(23\) \* Int64\(25\)\)\)\)\) AS col2" at position 0 and "Int64\(35\) \* Int64\(\-64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COALESCE ( + - 73, 76 * COUNT ( - 83 ), - MAX ( DISTINCT + COALESCE ( - 38, 23 * + 25 ) ) ) AS col2, 35 * - 64 AS col2 +---- +-2240 +-73 query I rowsort label-771 SELECT + 52 * 97 + 74 + COUNT ( * ) + + 70 @@ -4205,8 +4273,11 @@ SELECT ALL + 60 * + + 13 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 AS col0, - 66 col0 +---- +-66 +90 query I rowsort label-790 SELECT ALL COUNT ( * ) - - - 11 / - 5 + 60 @@ -4256,8 +4327,11 @@ SELECT - 61 + ( + - 82 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col0" at position 0 and "Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 AS col0, - 45 AS col0 +---- +-45 +71 query II rowsort label-799 SELECT ALL - ( - 53 ) / - + 61 AS col0, 95 @@ -5036,14 +5110,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 115 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col2" at position 0 and "Int64\(94\) \+ Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 64 AS col2, 94 + + + 21 AS col2 +---- +115 +64 # 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\(1\)\) AS count\(\*\)\) \+ Int64\(\-34\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 AS col0, + COALESCE ( + 84, - COUNT ( * ) + - 34 ) AS col0 +---- +39 +84 query I rowsort label-952 SELECT ALL MAX ( 66 ) AS col2 @@ -5109,8 +5189,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) AS col0, 29 col0 +---- +-1 +29 query I rowsort SELECT + 90 * + 30 * 32 col0 @@ -5536,8 +5619,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 86 AS col2, - 83 / - COUNT ( * ) AS col2 +---- +-86 +83 query I rowsort label-1047 SELECT + 21 * + - 30 - - - COUNT ( + 25 ) + - - ( 48 ) + 28 * 92 @@ -5562,8 +5648,11 @@ SELECT COUNT ( * ) - + 18 * - 26 # 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\(69\) / Int64\(9\) \+ Int64\(68\) AS col2" at position 0 and "Int64\(36\) \+ Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 69 ) / 9 + + 68 AS col2, 36 + + 52 AS col2 +---- +75 +88 query I rowsort SELECT 79 * 18 - - 64 + ( - 67 ) AS col1 @@ -5968,8 +6057,11 @@ 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\(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\. +query II valuesort 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 +---- +54 +NULL query I rowsort label-1130 SELECT SUM ( DISTINCT 18 ) * + + 42 - 14 AS col1 @@ -6293,8 +6385,11 @@ SELECT 24 + - 39 + + 83 / + 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col1" at position 0 and "\(\- Int64\(42\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 73 AS col1, - ( + 42 ) AS col1 +---- +-42 +73 query I rowsort label-1192 SELECT ALL 42 * - + COUNT ( * ) * 97 AS col1 @@ -6449,8 +6544,11 @@ SELECT ALL + COALESCE ( - CAST ( NULL AS INTEGER ), - 44 * + 18 ) * + 99 + 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 131614 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(79\) AS Int32\) \* Int64\(98\) \* Int64\(17\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( + 79 AS INTEGER ) * + 98 * ( 17 ) col0, 78 AS col0 +---- +131614 +78 query II rowsort SELECT ALL 43 col2, 24 + - 43 @@ -6618,8 +6716,11 @@ 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\(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\. +query II valuesort SELECT + + COUNT ( * ) + + + 86 AS col0, + 13 + - 53 AS col0 +---- +-40 +87 query II rowsort label-1254 SELECT DISTINCT + - MIN ( 9 ) AS col1, 48 AS col2 @@ -6794,8 +6895,11 @@ SELECT ALL 97 AS col2, 35 / + 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - -5568 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "Int64\(\-64\) \* \(\- max\(Int64\(\-87\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 AS col2, - 64 * - MAX ( - 87 ) AS col2 +---- +-5568 +51 query I rowsort label-1287 SELECT ALL + ( - 0 ) + 21 / - - 39 @@ -6810,8 +6914,11 @@ SELECT ALL 19 + - 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1886 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ Int64\(\-10\) \* Int64\(\-92\) \+ \(\- Int64\(44\)\) \* Int64\(63\) \- Int64\(92\) AS col2" at position 0 and "Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 58 + - 10 * - 92 + - + 44 * + + 63 - 92 AS col2, + 22 AS col2 +---- +-1886 +22 query II rowsort SELECT ALL 8 AS col0, + 37 AS col1 @@ -6864,8 +6971,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 41 * - + 0 / 50 * + - COUNT ( * ) AS col1, + 78 * + + COALESCE ( - COUNT ( * ), - - 30 ) + 94 AS col1 +---- +0 +16 query I rowsort label-1300 SELECT SUM ( ALL - 65 ) / - NULLIF ( COUNT ( 68 ), - COUNT ( * ) * 11 ) @@ -6976,8 +7086,12 @@ SELECT - ( - + 53 ) AS col1 # Datafusion - Expected - -91 # Datafusion - Expected - -1463 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \* \(\- \(\- nullif\(Int64\(77\), Int64\(\-46\) \+ \(\- Int64\(\-16\)\)\)\)\) AS col1" at position 1 and "Int64\(\-97\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 91 col0, - 19 * - - NULLIF ( 77, - 46 + - - 16 ) AS col1, + ( + - 97 ) AS col1 +---- +-1463 +-91 +-97 query I rowsort SELECT COALESCE ( - 67, - 48 ) @@ -7167,8 +7281,11 @@ SELECT ALL + SUM ( + - 45 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3069 # Datafusion - Expected - -137240 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(31\), Int64\(50\), Int64\(\-51\)\) \* \(\- Int64\(99\)\) AS col2" at position 0 and "nullif\(Int64\(\-20\), Int64\(79\) \* Int64\(58\) \+ Int64\(\-65\)\) \* Int64\(73\) \* Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COALESCE ( + 31, + 50, + - 51 ) * - ( + 99 ) AS col2, NULLIF ( - 20, + + 79 * + 58 + - 65 ) * + 73 * 94 col2 +---- +-137240 +-3069 query II rowsort label-1357 SELECT DISTINCT + 36, SUM ( ALL - ( + 7 ) ) AS col1 @@ -7338,8 +7455,11 @@ SELECT COALESCE ( + 8, - 58 ) * + 34 + - - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - -291471 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "Int64\(\-46\) \* Int64\(\-88\) \* Int64\(\-72\) \+ Int64\(82\) \+ Int64\(97\) / \(\- Int64\(1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 30 col2, ( - 46 ) * - 88 * - 72 + + 82 + + 97 / - + 1 col2 +---- +-291471 +30 query I rowsort label-1389 SELECT + COUNT ( * ) * 78 AS col1 @@ -7938,8 +8058,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 col0, + COUNT ( * ) + 38 AS col0 +---- +39 +68 query I rowsort SELECT ALL 84 * - - 73 * + - 82 AS col1 @@ -8269,8 +8392,11 @@ SELECT COALESCE ( 53, - 41 ) / 83 * - - COUNT ( * ) / - 16 + + + COUNT ( * ) # 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\(\-41\) \* \(\- CAST\(NULL AS Float64\)\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - 41 * - + CAST ( NULL AS FLOAT8 ) col2, + 99 col2 +---- +99 +NULL query I rowsort label-1567 SELECT 93 / + 57 AS col0 @@ -8561,8 +8687,11 @@ SELECT - COUNT ( * ) - - - 2 * + 25 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 AS col0, 23 AS col0 +---- +23 +8 query I rowsort label-1623 SELECT ALL - 98 * + COUNT ( * ) AS col0 @@ -8607,8 +8736,11 @@ SELECT + - 50 / + 62 + + COUNT ( * ) + - + 72 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "Int64\(10\) \+ Int64\(70\) \+ Int64\(41\) / Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 74 AS col2, 10 + 70 + 41 / 45 AS col2 +---- +74 +80 query I rowsort SELECT ALL + 81 + + 84 * 88 col0 @@ -8872,8 +9004,11 @@ 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\(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\. +query II valuesort 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 +---- +119 +5856 query I rowsort SELECT + 37 * + 42 @@ -8906,8 +9041,11 @@ SELECT COUNT ( * ) + - 39 + + 67 AS col2 # 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 "Int64\(6\) / Int64\(57\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 6 / + ( 57 ) AS col2, 29 AS col2 +---- +0 +29 query I rowsort label-1688 SELECT DISTINCT COUNT ( * ) * + CAST ( 95 AS INTEGER ) AS col0 @@ -9685,8 +9823,11 @@ SELECT + COALESCE ( + 32, - 27 - 51 ) / 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 248 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* Int64\(31\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 8 * 31 AS col1, 19 AS col1 +---- +19 +248 query II rowsort label-1834 SELECT - - 89 + CASE AVG ( ALL - + 45 ) WHEN + + 56 * - + 35 * - 52 * + 50 THEN - + 63 * 44 WHEN + 33 * SUM ( + CAST ( - - ( 87 ) AS INTEGER ) ) THEN - 11 WHEN - 28 THEN SUM ( ALL 10 ) END AS col2, 39 * + 54 * - 88 * 40 @@ -9815,8 +9956,11 @@ SELECT + 29 AS col1, + 24 * - COALESCE ( NULLIF ( + - 77, COUNT ( * ) ), + COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - -3439 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \+ Int64\(95\) \* \(\- Int64\(37\)\) AS col0" at position 0 and "Int64\(90\) / Int64\(76\) \+ \(\- Int64\(51\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 76 + + + 95 * - + 37 AS col0, 90 / + 76 + - + 51 AS col0 +---- +-3439 +-50 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -9918,8 +10062,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - -289 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col2" at position 0 and "Int64\(6\) \* Int64\(\-55\) \+ Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 10 AS col2, 6 * - 55 + 41 col2 +---- +-10 +-289 query I rowsort label-1876 SELECT - MIN ( DISTINCT 84 ) @@ -9989,8 +10136,11 @@ SELECT ALL 54 col1, + COUNT ( * ) / 86 * 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\)" at position 0 and "Int64\(6\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 6, 6 +---- +6 +6 query I rowsort label-1889 SELECT 66 / + NULLIF ( CASE + 9 WHEN MIN ( DISTINCT + + NULLIF ( + 54, + + 10 ) ) * + 50 * 38 + 35 THEN NULL WHEN 22 - - 15 + 73 THEN - 1 WHEN - ( - 22 ) THEN NULL END, + 97 ) AS col0 @@ -10107,8 +10257,11 @@ SELECT 96 AS col2, + 53 * + + 87 # 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 "Int64\(31\) / Int64\(86\) / sum\(Int64\(92\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 59 AS col1, 31 / 86 / SUM ( + 92 ) AS col1 +---- +0 +59 query II rowsort label-1910 SELECT 96 * - - 35 + - - 59 - + CAST ( NULL AS INTEGER ), 66 * + 69 * - 15 AS col0 @@ -10131,8 +10284,11 @@ SELECT ALL + ( - - 16 ) - + SUM ( + 97 ) AS col2, COUNT ( 16 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1254 # Datafusion - Expected - 988 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(\-66\)\) AS Int32\)\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(19\) AS col0" at position 0 and "Int64\(15\) \* Int64\(66\) \+ \(\- Int64\(2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( - - 66 AS INTEGER ) / COUNT ( * ) * 19 col0, + 15 * 66 + - + 2 AS col0 +---- +-1254 +988 query I rowsort SELECT - 48 + 10 @@ -10271,8 +10427,11 @@ SELECT + 91 * COUNT ( * ) AS col0, - COUNT ( ALL + + 28 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "Int64\(60\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 AS col2, 60 / + COUNT ( * ) AS col2 +---- +41 +60 query I rowsort label-1941 SELECT - 72 * + + 46 * - 0 * - 81 / 52 @@ -10808,8 +10967,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) - 57 + 47 + - COUNT ( * ) - 63 - + - 28 * 48 * 67 / - + 51 AS col0, 45 * - + 47 * NULLIF ( - - 88, - - 57 + + - 16 ) + + 95 * + 97 AS col0 +---- +-176905 +-1838 query II rowsort SELECT DISTINCT 18 AS col2, 2 * + 2 @@ -10835,8 +10997,11 @@ SELECT ALL 4 / + 98 * SUM ( ALL - 51 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -529 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \+ Int64\(\-37\) \- Int64\(\-75\) \+ Int64\(58\) \+ Int64\(\-7\) \* Int64\(87\) AS col2" at position 0 and "Int64\(62\) \* Int64\(74\) / Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 16 + - 37 - - 75 + + 58 + - 7 * + 87 col2, 62 * 74 / + 64 col2 +---- +-529 +71 query II rowsort label-2049 SELECT DISTINCT 68 AS col1, COUNT ( * ) * + - 4 AS col2 @@ -11075,8 +11240,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) / 31 - - + COUNT ( * ) AS col2, 63 AS col2 +---- +1 +63 query I rowsort label-2095 SELECT DISTINCT 7 * - CAST ( NULL AS INTEGER ) * + 41 @@ -11153,8 +11321,11 @@ SELECT DISTINCT - ( 26 ) * + 1 - + + 60 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -819 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "Int64\(21\) \* Int64\(\-39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 48 AS col1, ( 21 ) * - 39 AS col1 +---- +-819 +48 query II rowsort SELECT DISTINCT + 69, 37 * + - 38 col0 @@ -11397,8 +11568,11 @@ SELECT ALL + COALESCE ( COUNT ( * ), COUNT ( * ) ) * - + 18 + 57 * 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 61 col1, 86 AS col1 +---- +-61 +86 query I rowsort label-2154 SELECT - 91 * - MIN ( + + 53 ) + - ( + COUNT ( * ) ) @@ -11645,8 +11819,11 @@ SELECT ALL 73 * - + 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - -192486 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(93\)\) \* Int64\(45\) \* Int64\(46\) \+ Int64\(24\) AS col0" at position 0 and "Int64\(\-13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 93 * + 45 * 46 + + 24 AS col0, - 13 AS col0 +---- +-13 +-192486 query I rowsort SELECT ALL - 79 * + - 17 - - + 8 @@ -11666,14 +11843,20 @@ SELECT - CASE + 13 WHEN + ( + 95 ) THEN NULL ELSE COUNT ( ALL + 57 ) END AS col2 # 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 "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 57 AS col0, 1 AS col0 +---- +-57 +1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1780 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-26\)\) \- \(\- Int64\(0\)\) \+ Int64\(\-56\) \- Int64\(93\) \* Int64\(\-19\) \+ coalesce\(Int64\(\-27\), \(\- max\(Int64\(\-27\)\)\) \- Int64\(\-41\)\) \+ Int64\(70\) AS col0" at position 0 and "Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 26 - - - 0 + - 56 - + + 93 * + - 19 + + COALESCE ( - 27, - MAX ( + - 27 ) - + - 41 ) + + 70 AS col0, - 64 AS col0 +---- +-64 +1780 query I rowsort label-2205 SELECT - - SUM ( - - 10 ) col0 @@ -11754,8 +11937,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 77 + + + 10 AS col1, COUNT ( * ) * 84 AS col1 +---- +84 +87 query I rowsort label-2219 SELECT ALL NULLIF ( 38, NULLIF ( 81, - 30 ) ) + + 44 - - COUNT ( * ) * - 76 + - - 38 @@ -12015,8 +12201,11 @@ SELECT DISTINCT - 69, + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(19\) \+ \(\- Int64\(\-50\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - CAST ( NULL AS INTEGER ) AS col2, 19 + - - 50 AS col2 +---- +69 +NULL query II rowsort label-2267 SELECT DISTINCT - COUNT ( * ), 69 col2 @@ -12110,8 +12299,11 @@ SELECT DISTINCT SUM ( ALL + + 98 ) AS col0, + NULLIF ( - 83, + COUNT ( * ) + - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) / Int64\(61\) \* Int64\(23\) \* \(\- Int64\(\-11\)\) \* Int64\(\-18\) / coalesce\(Int64\(13\), Int64\(41\), Int64\(\-94\)\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 24 / + 61 * 23 * - - 11 * - 18 / + COALESCE ( 13, + 41, - 94 ) AS col0, + 97 AS col0 +---- +0 +97 query I rowsort label-2285 SELECT DISTINCT + COUNT ( * ) * - 27 * - - 53 @@ -12374,8 +12566,11 @@ SELECT - - 66 - SUM ( + 51 ) - - + 89 + 71 - NULLIF ( 50, + + 44 * + 25 + 57 * - # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col2" at position 0 and "Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 59 AS col2, 51 col2 +---- +-59 +51 query I rowsort SELECT DISTINCT + 48 * - 57 @@ -12577,8 +12772,11 @@ SELECT 9 * + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-79\)\) AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + - 79 ) AS col2, 96 AS col2 +---- +79 +96 query I rowsort label-2373 SELECT 22 * + 42 * + SUM ( ALL - 8 ) @@ -13116,8 +13314,11 @@ SELECT ALL 46 + 35 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-5\), Int64\(88\)\) \- Int64\(72\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + NULLIF ( + - 5, 88 ) ) - 72 AS col2, 82 col2 +---- +-77 +82 query I rowsort SELECT 98 * + 0 col2 @@ -13684,8 +13885,11 @@ SELECT DISTINCT + + 54 + - 94 + 16 * - 8 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col2, 25 AS col2 +---- +1 +25 query I rowsort label-2587 SELECT ALL - CASE - 76 WHEN + COUNT ( * ) THEN 42 * + CAST ( NULL AS INTEGER ) ELSE NULL END @@ -14264,8 +14468,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 28 * + - COUNT ( * ) AS col1, + 16 * ( + 16 ) * + + 99 - 88 * + 33 + - 65 * 10 AS col1 +---- +-28 +21790 query I rowsort label-2701 SELECT SUM ( - 72 ) * - COUNT ( * ) + - ( - 42 ) + 51 @@ -14518,8 +14725,11 @@ SELECT ALL + 14 * NULLIF ( + 42, - + 28 ) * + 44 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 104 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col0" at position 0 and "Int64\(24\) \- Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 24 AS col0, 24 - + + ( - 80 ) AS col0 +---- +-24 +104 query I rowsort label-2749 SELECT ALL - 3 / + 30 AS col1 @@ -14611,8 +14821,11 @@ SELECT ALL + SUM ( DISTINCT + 43 ), 16 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 918 # Datafusion - Expected - 3131 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \* Int64\(\-27\) AS col2" at position 0 and "Int64\(40\) \* CASE Int64\(71\) WHEN Int64\(\-46\) \+ \(\- min\(DISTINCT \(\- CAST\(NULL AS Float64\)\)\)\) \* Int64\(57\) / Int64\(57\) THEN NULL WHEN coalesce\(Int64\(86\), Int64\(\-57\) \* Int64\(93\), count\(Int64\(83\)\)\) THEN count\(DISTINCT \(\- Int64\(97\)\)\) WHEN min\(DISTINCT Int64\(40\)\) THEN NULL ELSE Int64\(77\) END \+ Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 34 * + - 27 AS col2, 40 * + CASE + 71 WHEN - 46 + - MIN ( DISTINCT - + CAST ( NULL AS FLOAT8 ) ) * + 57 / 57 THEN NULL WHEN + COALESCE ( 86, - 57 * + 93, COUNT ( 83 ) ) THEN + COUNT ( DISTINCT - ( 97 ) ) WHEN + MIN ( DISTINCT 40 ) THEN NULL ELSE 77 END + 51 AS col2 +---- +3131 +918 query I rowsort label-2767 SELECT + NULLIF ( + + 40, + + 37 + - 56 ) * - + COUNT ( * ) col0 @@ -14743,8 +14956,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * + + 92 * + CASE COUNT ( * ) WHEN - 3 THEN + 37 ELSE NULL END AS col2, 45 * - 72 AS col2 +---- +-3240 +NULL query I rowsort label-2793 SELECT ALL - ( 39 ) * 16 - + 81 - + CASE + CAST ( NULL AS INTEGER ) WHEN 82 + + 26 THEN - 64 * + 50 / + COUNT ( * ) + 30 WHEN 97 THEN NULL END + 17 * + 88 * 27 AS col1 @@ -15358,8 +15574,11 @@ 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\(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\. +query II valuesort SELECT ALL - 10 * - COUNT ( * ) AS col1, - 92 * - - 13 col1 +---- +-1196 +10 query II rowsort SELECT ALL CASE - - 46 WHEN - 76 THEN + 98 END, 64 + + 16 + - + 58 + 61 col2 @@ -15526,8 +15745,11 @@ SELECT 79 AS col0, 57 + - 87 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 76 col0, 51 AS col0 +---- +51 +76 query I rowsort SELECT ALL 23 * 82 @@ -15723,8 +15945,11 @@ SELECT MAX ( - - ( - - 74 ) ) * - 42 - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "Int64\(\-18\) \+ Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 AS col0, - 18 + - 66 AS col0 +---- +-84 +51 query I rowsort label-2979 SELECT ALL + 84 + + - CASE + + 35 WHEN + - 14 * + + 41 THEN NULL WHEN + SUM ( + 75 ) * + 61 + - 46 THEN - 45 WHEN - CAST ( NULL AS INTEGER ) * - 51 THEN - 11 ELSE NULL END @@ -16127,8 +16352,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 AS col0, - 16 AS col0 +---- +-16 +99 query I rowsort label-3054 SELECT CAST ( + CAST ( 91 AS INTEGER ) AS INTEGER ) + + 68 AS col2 @@ -16471,8 +16699,11 @@ SELECT MIN ( + + 28 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ coalesce\(Int64\(60\), \(\- Int64\(51\)\) \+ Int64\(\-91\)\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 + + + COALESCE ( + 60, - ( + 51 ) + + - 91 ) AS col2, 37 AS col2 +---- +37 +92 query I rowsort SELECT - + 72 * - 5 @@ -16482,8 +16713,11 @@ SELECT - + 72 * - 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 "CAST\(NULL AS Float64\) AS col0" at position 0 and "Int64\(\-14\) \* Int64\(\-13\) \+ Int64\(\-88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT + CAST ( NULL AS FLOAT8 ) AS col0, - 14 * - 13 + - 88 col0 +---- +94 +NULL query I rowsort SELECT + - 97 + + 82 AS col1 @@ -16738,8 +16972,11 @@ SELECT 1 + - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29361 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* Int64\(14\) \* Int64\(\-25\) \+ Int64\(\-3\) \+ Int64\(42\) \+ Int64\(\-32\) / Int64\(76\) \* Int64\(18\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 84 * + 14 * - 25 + - 3 + + 42 + - 32 / 76 * 18 * + COUNT ( * ) AS col2, 63 col2 +---- +-29361 +63 query I rowsort SELECT 89 + + 4 AS col2 @@ -17269,8 +17506,11 @@ 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\(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\. +query II valuesort SELECT 93 AS col0, NULLIF ( - + ( - COUNT ( * ) ), + CASE 48 WHEN + + 51 THEN + 36 ELSE NULL END + ( 16 ) ) AS col0 +---- +1 +93 query I rowsort SELECT + 34 * - 69 @@ -17459,8 +17699,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( 78 ) + COUNT ( * ) + - 20 + - 95 + + 2 col1, - 2 AS col1 +---- +-111 +-2 query II rowsort SELECT DISTINCT 73 AS col0, 4 - 69 @@ -17530,8 +17773,11 @@ SELECT ALL + - 34 + + + 62 + + 40 * - 30 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-83\)\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 83 col2, 66 AS col2 +---- +66 +83 query I rowsort SELECT DISTINCT - 99 * + + 77 @@ -17610,8 +17856,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + COUNT ( * ) col2, 61 AS col2 +---- +-1 +61 query I rowsort SELECT DISTINCT + + 12 - + ( 86 ) + 68 * + + 56 * - - ( + ( 73 ) ) AS col1 @@ -17863,8 +18112,11 @@ NULL # 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 "sum\(Int64\(43\)\) \- \(\- Int64\(\-40\)\) AS col0" at position 0 and "Int64\(27\) \+ Int64\(\-8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + SUM ( ALL + 43 ) - - - 40 AS col0, 27 + - 8 AS col0 +---- +19 +3 query I rowsort SELECT + 98 * - 49 AS col1 @@ -18261,8 +18513,11 @@ SELECT 92 / - 57 - + - NULLIF ( - + 94, - CAST ( - NULLIF ( 64, - 43 ) AS INTEGE # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 381840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(67\) \* Int64\(77\) \* Int64\(74\) \+ Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 67 * 77 * 74 + + 74 AS col1 +---- +1 +381840 query I rowsort label-3456 SELECT - ( + MAX ( 30 ) ) * - + 58 + + - COUNT ( * ) @@ -18555,8 +18810,11 @@ 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\(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\. +query II valuesort SELECT 74 AS col2, 73 * + ( - COUNT ( * ) ) * - 94 + - + 77 + - + 34 + 23 - + 38 / COUNT ( * ) + - + 71 + COALESCE ( - + 74, + 90 + - 77 ) * 27 * + MIN ( 24 ) + - 98 - + - 48 AS col2 +---- +-41337 +74 query I rowsort SELECT COALESCE ( - 18, + 23 ) + + 44 AS col1 @@ -19044,8 +19302,12 @@ SELECT - + 90 + + 57 # Datafusion - Expected - 95 # Datafusion - Expected - -52 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "\(\- Int64\(\-51\)\) \+ Int64\(97\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(95\) \- count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \+ Int64\(29\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(70\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 95 AS col0, - 52 AS col1, - + ( + - 51 ) + 97 + COUNT ( * ) - + 95 - + + COUNT ( * ) + CAST ( NULL AS INTEGER ) + + 29 + COUNT ( * ) + 70 col0 +---- +-52 +95 +NULL query I rowsort label-3605 SELECT - + 25 * + 69 * 38 + - - 93 + SUM ( + 52 ) + + 37 col1 @@ -19797,8 +20059,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # 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 "Int64\(\-30\) \+ Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 50 AS col2, - 30 + + 18 AS col2 +---- +-12 +-50 query I rowsort label-3745 SELECT DISTINCT MIN ( + 36 ) / + + ( 38 ) - - 29 AS col0 @@ -20044,8 +20309,11 @@ SELECT DISTINCT + 77 * + 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3234 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(\-42\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 * + - 42 AS col1, + 79 AS col1 +---- +-3234 +79 query I rowsort label-3792 SELECT ALL + COUNT ( * ) * + 71 @@ -21048,8 +21316,11 @@ SELECT 81 * 73 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4148 # Datafusion - Expected - -2256 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-68\)\)\) \* Int64\(\-61\) AS col2" at position 0 and "Int64\(\-24\) \* Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - SUM ( + - 68 ) * - 61 AS col2, - 24 * + 94 AS col2 +---- +-2256 +-4148 query I rowsort label-3987 SELECT 2 * - - COUNT ( * ) / - 48 col0 @@ -21816,8 +22087,11 @@ SELECT DISTINCT CAST ( MIN ( + - 69 ) AS INTEGER ) * - 72 + 61 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col0" at position 0 and "Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 23 AS col0, + 62 AS col0 +---- +-23 +62 query I rowsort SELECT ALL + 37 * - + 20 * - CASE 56 WHEN - 79 THEN - 0 END * 40 + 62 @@ -21942,8 +22216,11 @@ SELECT DISTINCT + COALESCE ( + ( 30 ), + 92 ) * + 99 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 8 AS col2, 18 AS col2 +---- +-8 +18 query I rowsort label-4162 SELECT ALL - 93 * 32 * + COUNT ( * ) * NULLIF ( + 91, - 21 ) AS col1 @@ -22241,8 +22518,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 67 col0, - COUNT ( * ) + + 52 AS col0 +---- +-67 +51 query I rowsort SELECT + 48 * + + ( 6 ) * 84 + + 17 @@ -22781,8 +23061,11 @@ SELECT - 8 * - COUNT ( * ) + 71 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 75 AS col1, - CAST ( NULL AS INTEGER ) col1 +---- +75 +NULL query I rowsort label-4320 SELECT ALL + 28 / + - ( - ( - 81 ) ) @@ -22792,8 +23075,11 @@ SELECT ALL + 28 / + - ( - ( - 81 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-22\) \+ Int64\(\-49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col0, - 22 + - 49 AS col0 +---- +-71 +NULL query I rowsort label-4322 SELECT DISTINCT COUNT ( * ) / + COALESCE ( - + 99, ( - + COUNT ( * ) ), - 57 ) - - 15 - - 97 * + NULLIF ( + 85, 53 ) * - COUNT ( * ) @@ -22994,8 +23280,11 @@ SELECT 66 + 15 # 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 "Int64\(43\) / \(\- Int64\(53\)\) AS col0" at position 0 and "Int64\(23\) \+ Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 43 / - + 53 AS col0, 23 + 31 AS col0 +---- +0 +54 query I rowsort SELECT ALL + 39 + - 41 - + 88 @@ -23123,8 +23412,11 @@ SELECT COUNT ( * ) + - + 94 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -2871 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col1" at position 0 and "Int64\(33\) \* Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 73 AS col1, 33 * - 87 col1 +---- +-2871 +73 query I rowsort SELECT - 40 + + 31 @@ -23565,8 +23857,11 @@ SELECT - 65 * 10 + - 77 # 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\) \- \(\- CASE \(\- Int64\(\-40\)\) WHEN Int64\(\-71\) \+ sum\(Int64\(\-60\)\) \* Int64\(\-60\) THEN Int64\(64\) ELSE NULL END\) \- Int64\(\-56\) AS col2" at position 0 and "Int64\(\-43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT CAST ( NULL AS FLOAT8 ) - - + CASE - - 40 WHEN - 71 + + + SUM ( - 60 ) * - 60 THEN 64 ELSE NULL END - - 56 AS col2, - 43 AS col2 +---- +-43 +NULL query I rowsort SELECT ALL 97 * + 38 @@ -24015,14 +24310,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 80 AS col0, 98 AS col0 +---- +80 +98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 1332 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col2" at position 0 and "Int64\(37\) \* Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 27 AS col2, 37 * 36 AS col2 +---- +1332 +27 query I rowsort label-4557 SELECT DISTINCT COUNT ( * ) * + 3 - 40 * + COUNT ( * ) * - 26 * 22 AS col2 @@ -24220,8 +24521,11 @@ SELECT DISTINCT - COUNT ( * ) AS col2, - 19 + - 52 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col0" at position 0 and "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 64 AS col0, + 61 AS col0 +---- +-64 +61 query I rowsort SELECT + 52 * + 96 @@ -24491,8 +24795,11 @@ SELECT ALL 74 + - NULLIF ( 93, + 2 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 94 col0, 57 AS col0 +---- +-94 +57 query I rowsort label-4646 SELECT ALL COUNT ( ALL - CAST ( CAST ( NULL AS FLOAT8 ) AS INTEGER ) ) AS col1 @@ -24532,8 +24839,11 @@ SELECT + COALESCE ( - - ( NULLIF ( + - 99, + NULLIF ( + 27, + 25 ) * - - ( + - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col2" at position 0 and "Int64\(52\) \+ Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 62 AS col2, 52 + + 24 AS col2 +---- +-62 +76 query I rowsort label-4654 SELECT DISTINCT 66 / 89 @@ -24834,8 +25144,11 @@ SELECT 87 / - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- CASE \(\- Int64\(60\)\) WHEN \(\- coalesce\(Int64\(\-43\), Int64\(42\)\)\) \+ \(\- Int64\(\-23\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE Int64\(\-44\) \* Int64\(52\) END\) WHEN Int64\(\-44\) THEN Int64\(\-73\) END \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +NULL +NULL query I rowsort SELECT ( + 51 ) * - - 12 @@ -24882,8 +25195,11 @@ SELECT ALL + - 26 + + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "\(\- min\(\(\- Int64\(34\)\)\)\) \+ Int64\(\-24\) \+ Int64\(\-36\) \* Int64\(58\) \* \(\- CASE count\(Int64\(\-26\)\) WHEN Int64\(91\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* sum\(Int64\(\-3\)\) \+ Int64\(38\) \* Int64\(33\) THEN Int64\(11\) \+ Int64\(4\) ELSE CASE CAST\(Int64\(60\) AS Int32\) WHEN \(\- max\(Int64\(\-74\)\)\) \* Int64\(31\) THEN Int64\(31\) WHEN avg\(DISTINCT Int64\(41\)\) \+ Int64\(98\) THEN NULL ELSE NULL END \+ Int64\(\-25\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +3 +NULL query I rowsort label-4721 SELECT CAST ( NULL AS INTEGER ) / 25 @@ -24941,8 +25257,11 @@ SELECT - 82 * + CAST ( COUNT ( * ) AS INTEGER ) * - ( - + ( 59 ) ) + + + 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ \(\- Int64\(47\)\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 + - + 47 AS col2, 63 AS col2 +---- +-10 +63 query II rowsort label-4732 SELECT + 34 AS col0, 0 * CAST ( NULL AS INTEGER ) @@ -25009,8 +25328,11 @@ SELECT COUNT ( * ) * + 28 / + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-30\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 30 AS col2, COUNT ( * ) col2 +---- +1 +30 query I rowsort label-4745 SELECT ALL - COALESCE ( + - NULLIF ( 63, - NULLIF ( - + 33, + CAST ( CASE - CAST ( NULL AS INTEGER ) WHEN + - COUNT ( + + 22 ) THEN + - 91 * 76 - - MIN ( ALL - 99 ) * - - 31 END AS INTEGER ) * - + COALESCE ( 79, + 8 ) - + - 89 * + + 9 + + - 95 ) ), - 37 * + 18, 77 + - 42, 5 ) + 27 @@ -25046,8 +25368,11 @@ SELECT - COUNT ( * ) + + + MAX ( ALL 9 ) * + + 19 AS col0, COUNT ( * ) + - + ( + # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 71 AS col0, + 38 col0 +---- +-71 +38 query II rowsort label-4752 SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1, - 75 + + - 49 + 69 @@ -25088,8 +25413,11 @@ SELECT + 33 * - - 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \+ Int64\(98\) AS col2" at position 0 and "Int64\(6\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 42 + + 98 AS col2, + 6 * COUNT ( * ) AS col2 +---- +56 +6 query I rowsort label-4760 SELECT ALL + - NULLIF ( + - 71, ( + 7 ) * - - MIN ( 36 ) + COUNT ( * ) ) @@ -25337,8 +25665,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) \* max\(DISTINCT Int64\(98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 85 AS col0, - ( + - COUNT ( * ) ) * MAX ( DISTINCT 98 ) AS col0 +---- +-85 +98 query II rowsort label-4808 SELECT ALL + 72, ( SUM ( DISTINCT + 34 ) ) * + 20 AS col0 @@ -25541,8 +25872,11 @@ SELECT - 52 * - 17 # 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\(DISTINCT Int64\(48\)\)\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( DISTINCT 48 ) AS col2, 42 AS col2 +---- +-1 +42 query I rowsort SELECT DISTINCT + + 87 * - 9 @@ -25762,8 +26096,11 @@ SELECT - COUNT ( * ) + - 29 * - - 14 + + + COUNT ( * ) * CAST ( + 38 AS INTEGER # 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 "Int64\(\-91\) AS col1" at position 0 and "Int64\(\-74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 91 AS col1, ( - 74 ) AS col1 +---- +-74 +-91 query I rowsort label-4890 SELECT ALL CAST ( 33 AS INTEGER ) * + - 19 - + + NULLIF ( + 15, + 0 ) + - 55 AS col2 @@ -25886,8 +26223,11 @@ SELECT ALL 1 * + COUNT ( ALL - + 34 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-63\)\) AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 63 AS col1, + 17 AS col1 +---- +17 +63 query I rowsort label-4914 SELECT - COUNT ( - 58 ) AS col2 @@ -26009,8 +26349,11 @@ SELECT 23 * + 44 * + 69 + - ( 89 ) - - 86 + - 2 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1843 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* \(\- min\(Int64\(55\)\)\) \+ Int64\(27\) \* \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), coalesce\(Int64\(83\), Int64\(4\)\)\)\) \+ Int64\(\-30\) / Int64\(\-78\) \* Int64\(87\) \* Int64\(84\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / \(\- avg\(\(\- Int64\(82\)\)\)\) \* Int64\(0\) \+ Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +-1843 +NULL query I rowsort SELECT DISTINCT - + 6 col1 @@ -26284,8 +26627,11 @@ SELECT ALL 42 / 44 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 3649 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \+ \(\- Int64\(5\)\) AS col0" at position 0 and "Int64\(41\) \* Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 1 + - + 5 AS col0, + 41 * + 89 AS col0 +---- +-4 +3649 query I rowsort label-4990 SELECT DISTINCT NULLIF ( - 9, + + 49 - + ( - 98 ) + - COUNT ( * ) ) + + 7 * + + 28 @@ -26484,8 +26830,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- min\(Int64\(\-20\)\)\)\) / Int64\(\-88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 83 * - 51 * + 86 AS col1, - COUNT ( ALL + - 90 ) * COUNT ( * ) + - - MIN ( - 20 ) / - 88 AS col1 +---- +-1 +364038 query I rowsort SELECT DISTINCT 22 * + - 57 AS col0 @@ -26625,8 +26974,12 @@ SELECT ALL 25 - - 98 # Datafusion - Expected - 10 # Datafusion - Expected - -96 # Datafusion - Expected - 166 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col1" at position 1 and "Int64\(93\) \+ Int64\(73\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 10, - 96 AS col1, + 93 + 73 AS col1 +---- +-96 +10 +166 query I rowsort label-5056 SELECT ALL + 59 - - COUNT ( * ) @@ -26713,8 +27066,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 * - COUNT ( * ) AS col2, ( + 82 ) col2 +---- +-96 +82 query I rowsort SELECT DISTINCT 38 + 13 AS col2 @@ -26766,8 +27122,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT ( 30 ) - + - CASE - - 16 WHEN - COUNT ( * ) * + + 22 - + 47 THEN 59 ELSE + - 76 END * - + 56 AS col0, + 9 + + + 12 AS col0 +---- +21 +4286 query I rowsort SELECT 66 + + 43 + 61 @@ -26954,8 +27313,11 @@ SELECT DISTINCT 0 * - ( - COUNT ( + + ( 12 ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col1, + 93 col1 +---- +93 +NULL query I rowsort SELECT + 31 * 80 * + 37 * 14 AS col2 @@ -27041,8 +27403,12 @@ SELECT + 20 * + 32 * - 52 * + + 97 * 99 AS col0 # Datafusion - Expected - -2246 # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) \* Int64\(34\) \- Int64\(6\) \+ Int64\(4\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IRI valuesort SELECT DISTINCT - 66 * 34 - + 6 + + 4 col0, - ( - 47 ) + + + CAST ( NULL AS FLOAT8 ), + 2 AS col0 +---- +-2246 +2 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -27301,8 +27667,11 @@ SELECT 0 - - - 13 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 0 and "max\(Int64\(68\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 AS col0, + MAX ( + + 68 ) AS col0 +---- +68 +70 query I rowsort label-5184 SELECT DISTINCT SUM ( + 19 ) @@ -27721,8 +28090,11 @@ SELECT - ( - - 86 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 2580 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col0" at position 0 and "Int64\(30\) \* Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 22 AS col0, 30 * 86 col0 +---- +22 +2580 query I rowsort label-5263 SELECT DISTINCT ( + 49 ) / - NULLIF ( 13, - CAST ( NULL AS INTEGER ) ) + - + 81 @@ -27761,8 +28133,11 @@ SELECT 77 AS col1, + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 200756 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) / Int64\(79\) AS col0" at position 0 and "Int64\(\-39\) \* \(\- max\(Int64\(92\)\)\) \* Int64\(56\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(89\) \+ Int64\(\-87\) \+ Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - + CAST ( NULL AS INTEGER ) ) / + 79 AS col0, ( - 39 ) * - + MAX ( ALL 92 ) * + 56 + - + COUNT ( * ) / 89 + - 87 + + - 85 AS col0 +---- +200756 +NULL query II rowsort label-5270 SELECT ALL 2 + - COUNT ( * ) * 62 AS col2, + COUNT ( - 80 ) @@ -28025,8 +28400,11 @@ SELECT DISTINCT 95 * - 28 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \- Int64\(55\) \+ \(\- Int64\(73\)\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 - + 55 + + ( - + 73 ) AS col0, 29 AS col0 +---- +-53 +29 query I rowsort SELECT 10 * - 64 AS col0 @@ -28354,8 +28732,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( DISTINCT - + 71 ) col2, + COUNT ( * ) + - - COUNT ( * ) col2 +---- +-71 +2 query I rowsort label-5384 SELECT DISTINCT COUNT ( + 38 ) * + - COUNT ( * ) @@ -28482,8 +28863,11 @@ SELECT + + 57 * + + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- Int64\(79\)\) \+ Int64\(63\) \+ Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + CAST ( NULL AS INTEGER ) AS col1, + ( - ( 79 ) ) + 63 + + 58 AS col1 +---- +42 +NULL query I rowsort label-5407 SELECT + - 83 + - MIN ( ALL + 4 ) @@ -28765,8 +29149,11 @@ 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\(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\. +query II valuesort 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 +---- +57 +NULL query I rowsort SELECT ALL + 96 + + - 26 @@ -28909,8 +29296,11 @@ SELECT - 53 * - 62 + - 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \- Int64\(\-62\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 12 - - 62 AS col1, 92 col1 +---- +74 +92 query I rowsort SELECT - NULLIF ( 78, + 6 ) AS col1 @@ -28960,8 +29350,11 @@ SELECT ALL - + 65 * 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - -427 # Datafusion - Expected - 4740 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ Int64\(\-89\) \+ Int64\(9\) \* Int64\(\-44\) AS col1" at position 0 and "Int64\(76\) \* Int64\(62\) \- Int64\(\-28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 58 + - 89 + 9 * + - 44 AS col1, + 76 * 62 - - 28 AS col1 +---- +-427 +4740 query I rowsort SELECT + - 45 + - 17 - - + 29 AS col0 @@ -29320,8 +29713,11 @@ SELECT ALL - 32 + 55 + - + ( - - 29 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(39\)\) AS col2" at position 0 and "\(\- count\(Int64\(67\)\)\) \+ Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 39 AS col2, - COUNT ( + 67 ) + + 55 AS col2 +---- +-39 +54 query I rowsort label-5565 SELECT 88 * - - CAST ( NULL AS INTEGER ) @@ -29347,8 +29743,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + - + SUM ( + + ( - ( + 38 ) ) ) AS col1, 31 AS col1 +---- +31 +39 query I rowsort label-5570 SELECT 26 / + + 15 + + + COUNT ( * ) @@ -29424,8 +29823,11 @@ SELECT - NULLIF ( - + 52, - 53 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-28\), \(\- CAST\(Int64\(20\) AS Int32\)\) \* Int64\(62\)\) AS col2" at position 0 and "nullif\(Int64\(\-36\), count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COALESCE ( - 28, - CAST ( + 20 AS INTEGER ) * + 62 ) AS col2, NULLIF ( - 36, COUNT ( * ) ) AS col2 +---- +-28 +-36 query I rowsort label-5585 SELECT COUNT ( + 41 ) / + 7 + + - 23 * + 8 + + + 68 @@ -29511,8 +29913,11 @@ SELECT ALL - ( - - 61 ) + + COUNT ( * ) AS col2, + 1 + - + 40 - + 8 + - 50 + - 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3465 # Datafusion - Expected - -221632 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(99\)\) \* Int64\(\-35\) AS col2" at position 0 and "Int64\(44\) \+ Int64\(29\) \* Int64\(\-84\) \* Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( 99 ) * - 35 AS col2, 44 + 29 * - 84 * + 91 AS col2 +---- +-221632 +-3465 query I rowsort SELECT ALL + ( - NULLIF ( + + 6, 20 ) ) * + 5 AS col0 @@ -29547,14 +29952,20 @@ SELECT ALL + 1 * - 10 + + + ( - - 39 ) + 35 * + 93 + - 88 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1302 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(30\) \+ Int64\(26\) \+ Int64\(66\) \- Int64\(\-41\) \+ Int64\(\-1\) AS col1" at position 0 and "CASE \(\- min\(DISTINCT Int64\(72\)\)\) WHEN \(\- Int64\(61\)\) THEN NULL WHEN Int64\(\-20\) THEN count\(Int64\(\-27\)\) ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END \+ Int64\(\-81\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-82 +1302 # 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\(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\. +query II valuesort SELECT + 31 * 74 * + COUNT ( * ) - + 49 AS col1, - 76 AS col1 +---- +-76 +2245 query I rowsort label-5609 SELECT + SUM ( DISTINCT - 83 ) AS col1 @@ -31133,8 +31544,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - + COUNT ( * ) AS col2, + 63 / 55 col2 +---- +-1 +1 query I rowsort SELECT ALL 24 + 78 @@ -31382,8 +31796,11 @@ SELECT - 10 * + + 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \+ \(\- Int64\(66\)\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 54 + - + 66 AS col2, 71 AS col2 +---- +-12 +71 query I rowsort SELECT + - 28 * + 23 + 44 + - 6 @@ -31453,8 +31870,11 @@ SELECT ALL 83 + - - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63184716 # Datafusion - Expected - 137 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(\-49\) \* Int64\(\-43\) \* Int64\(\-14\) \* Int64\(\-51\) AS col2" at position 0 and "Int64\(97\) \+ \(\- Int64\(\-40\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 42 * - 49 * - 43 * - 14 * + - 51 AS col2, 97 + - - 40 AS col2 +---- +137 +63184716 query I rowsort label-5975 SELECT ALL + 89 + 32 * + ( - + 19 ) / 83 * + CASE + 43 WHEN - 14 + - - 79 THEN + + 37 + + MAX ( + 38 ) ELSE NULL END @@ -31546,8 +31966,11 @@ SELECT DISTINCT + 30 AS col1, ( - 38 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 64 AS col0, 78 AS col0 +---- +64 +78 query I rowsort SELECT + + 7 * + ( + 77 ) AS col0 @@ -32210,8 +32633,11 @@ SELECT - 40 * + COUNT ( * ) + 90 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5472 # Datafusion - Expected - -1239 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) \* \(\- Int64\(76\)\) AS col2" at position 0 and "Int64\(\-29\) \* Int64\(45\) \+ Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 72 * - + 76 AS col2, - 29 * 45 + 66 AS col2 +---- +-1239 +5472 query I rowsort label-6117 SELECT ALL 12 / + + COALESCE ( + - ( - - 45 ), + 95, - - 15 ) @@ -32400,8 +32826,11 @@ SELECT 19 + 36 + - NULLIF ( - - 86, + 35 ) AS col0, + 88 + - 82 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col2" at position 0 and "coalesce\(\(\- Int64\(10\)\), coalesce\(Int64\(\-47\), Int64\(88\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 93 AS col2, + COALESCE ( + ( - + 10 ), COALESCE ( - 47, + 88 ) ) AS col2 +---- +-10 +93 query I rowsort SELECT DISTINCT + 50 + + - 17 AS col1 @@ -32510,8 +32939,11 @@ SELECT 81 * - COUNT ( DISTINCT - ( + - CAST ( NULL AS INTEGER ) ) ) + - - COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col1" at position 0 and "Int64\(\-21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 55 AS col1, - 21 col1 +---- +-21 +-55 query II rowsort label-6175 SELECT DISTINCT - 94 AS col2, SUM ( ALL - NULLIF ( CAST ( - 41 AS INTEGER ), - 82 ) ) + CASE AVG ( DISTINCT - 96 ) WHEN 56 THEN NULL ELSE + 92 END @@ -32579,8 +33011,11 @@ SELECT + 75 * NULLIF ( COUNT ( * ), - CAST ( 33 AS INTEGER ) ) # 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 col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 19 AS col1, 66 AS col1 +---- +19 +66 query I rowsort SELECT ALL 97 + + - 27 AS col2 @@ -32690,8 +33125,11 @@ SELECT 76 * + 24 + 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( COUNT ( * ) ) AS col1, 71 AS col1 +---- +1 +71 query I rowsort label-6209 SELECT ALL + COUNT ( + + 4 ) @@ -32850,8 +33288,11 @@ SELECT ALL - 44 * + + 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "\(\- min\(DISTINCT Int64\(43\)\)\) \* Int64\(\-41\) \+ Int64\(29\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 9 AS col2, ( - MIN ( DISTINCT + 43 ) ) * + - 41 + + 29 + CAST ( NULL AS INTEGER ) AS col2 +---- +9 +NULL query I rowsort label-6240 SELECT ALL + 81 + COUNT ( * ) + 12 @@ -33306,8 +33747,11 @@ SELECT + 24 + + 8 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col2" at position 0 and "Int64\(38\) \* CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 11 col2, 38 * + CAST ( NULL AS INTEGER ) * COUNT ( * ) col2 +---- +-11 +NULL query I rowsort label-6326 SELECT ALL - 50 - + COUNT ( * ) + + 17 * + + 92 @@ -33343,8 +33787,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col1" at position 0 and "Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 AS col1, - 16 AS col1 +---- +-16 +98 query I rowsort label-6333 SELECT - ( 69 ) + + CAST ( NULL AS INTEGER ) * - 31 col1 @@ -34046,8 +34493,11 @@ SELECT ALL + + 71 * - - 64 + + 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col0" at position 0 and "Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 23 AS col0, + 87 col0 +---- +-23 +87 query I rowsort label-6466 SELECT - - 72 / - + 71 + 26 @@ -34195,8 +34645,11 @@ NULL # 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 col0" at position 0 and "Int64\(58\) / \(\- Int64\(17\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 AS col0, 58 / - ( + 17 ) AS col0 +---- +-3 +7 query I rowsort SELECT - 26 + + + 41 - - - 40 * + 22 + - 69 @@ -34503,8 +34956,11 @@ SELECT ( - 53 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 858 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "Int64\(33\) \* coalesce\(Int64\(26\), sum\(Int64\(\-58\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 59 AS col1, + 33 * + + COALESCE ( 26, + SUM ( ALL - 58 ) ) AS col1 +---- +59 +858 query I rowsort label-6552 SELECT + CAST ( NULL AS INTEGER ) * - 7 @@ -34793,8 +35249,11 @@ SELECT + NULLIF ( 13, - COALESCE ( - COALESCE ( + CASE + - MAX ( DISTINCT - - 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "CASE nullif\(Int64\(\-76\), \(\- CAST\(NULL AS Int32\)\) \* Int64\(26\) \+ \(\- Int64\(42\)\)\) WHEN CASE Int64\(43\) WHEN \(\- \(\- CAST\(NULL AS Int32\)\)\) THEN CAST\(NULL AS Int32\) END \- min\(Int64\(73\)\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE \(\- CASE Int64\(26\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-4\) THEN \(\- coalesce\(Int64\(\-77\), Int64\(50\)\)\) \+ Int64\(86\) \- Int64\(57\) \* Int64\(1\) ELSE NULL END\) \- \(\- Int64\(48\)\) / Int64\(19\) END \+ Int64\(\-67\) \* nullif\(Int64\(46\), Int64\(16\)\) \- \(\- max\(DISTINCT Int64\(26\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +64 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -35203,8 +35662,11 @@ SELECT ALL - 54 * - + 9 + + 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 441 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(\-35\) AS col1" at position 0 and "Int64\(\-30\) \+ Int64\(22\) \* Int64\(20\) \+ \(\- \(\- Int64\(31\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( - CAST ( NULL AS INTEGER ) ) + - 35 AS col1, - 30 + 22 * + 20 + - ( - + 31 ) col1 +---- +-35 +441 query I rowsort label-6685 SELECT ALL 89 / - - 80 AS col0 @@ -35310,8 +35772,11 @@ 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\(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\. +query II valuesort SELECT - NULLIF ( 79, + COUNT ( * ) ) col2, - 12 * 79 col2 +---- +-79 +-948 query I rowsort label-6705 SELECT - COALESCE ( + + 98, - COUNT ( * ) ) * + COUNT ( * ) * + 69 AS col0 @@ -35613,8 +36078,11 @@ SELECT ALL - SUM ( - 44 ) - + + COUNT ( * ) + - - 5 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col1" at position 0 and "Int64\(53\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 71 AS col1, 53 * + ( COUNT ( * ) ) AS col1 +---- +-71 +53 query I rowsort label-6762 SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + 51 col2 @@ -35881,8 +36349,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col1" at position 0 and "Int64\(\-31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 23 col1, - 31 col1 +---- +-23 +-31 query I rowsort SELECT - ( + ( - 49 ) ) + + 23 AS col2 @@ -35949,8 +36420,11 @@ 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\(1\)\) AS count\(\*\) \+ \(\- \(\- Int64\(6\)\)\) \* \(\- Int64\(\-9\)\)\) \- Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 82 AS col1, COALESCE ( - 88, SUM ( DISTINCT + + 90 ) - + COUNT ( * ) + - ( - + 6 ) * - - 9 ) - + + ( + + 29 ) AS col1 +---- +-117 +-82 query II rowsort label-6825 SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + COALESCE ( + 65, 28 ) * + + 86 + + - 72 * + 80, - 25 - 66 col0 @@ -36261,8 +36735,12 @@ SELECT ALL 16, 22 col1 # Datafusion - Expected - -77 # Datafusion - Expected - NULL # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-45\) AS col1" at position 1 and "Int64\(\-84\) \+ Int64\(73\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 44 + + + 50 / + - 19 - 31, CAST ( NULL AS INTEGER ) * - 45 AS col1, + - 84 + + 73 AS col1 +---- +-11 +-77 +NULL query II rowsort SELECT - 6 + - - 74 AS col1, 0 AS col2 @@ -36339,8 +36817,11 @@ SELECT ALL 86 * - - 70 + - - 63 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(52\), Int64\(55\)\)\) \+ Int64\(52\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( 52, + + 55 ) + 52 AS col2, 2 AS col2 +---- +0 +2 query I rowsort label-6898 SELECT + CAST ( NULL AS INTEGER ) * MAX ( ALL + 71 ) AS col2 @@ -36392,8 +36873,11 @@ SELECT + 21 * - 74 AS col2, 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2835 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* \(\- Int64\(\-63\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 * - - 63 + + - COUNT ( * ) + COUNT ( * ) AS col0, + 90 AS col0 +---- +2835 +90 query I rowsort SELECT + 48 + - - 54 AS col2 @@ -36455,8 +36939,11 @@ SELECT ALL 90 AS col0, - COUNT ( * ) + + 14 - + + COALESCE ( + 76, + - 59 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "Int64\(\-69\) \+ \(\- Int64\(\-40\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 41 col2, - 69 + + ( - - 40 ) AS col2 +---- +-29 +41 query I rowsort label-6919 SELECT DISTINCT COUNT ( 14 ) @@ -36650,8 +37137,11 @@ SELECT - MIN ( + - 9 ) AS col2 # 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 "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 88 AS col1, 58 AS col1 +---- +58 +88 query I rowsort SELECT 36 + + 73 * - + 54 AS col1 @@ -36708,8 +37198,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 * - 8 col2, ( - - 70 ) * - + COUNT ( * ) AS col2 +---- +-688 +-70 query I rowsort label-6968 SELECT + 77 * + COUNT ( * ) * COUNT ( * ) * - 91 + - COUNT ( * ) * - - 9 + - MAX ( - 43 ) AS col0 @@ -37010,8 +37503,11 @@ SELECT - 52 * - - 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - -993 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-12\)\)\) \+ Int64\(\-67\) \* \(\- \(\- max\(\(\- Int64\(\-15\)\)\)\)\) AS col1" at position 0 and "Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( MIN ( - 12 ) ) + - 67 * - - MAX ( - - 15 ) col1, 30 AS col1 +---- +-993 +30 query I rowsort label-7026 SELECT ALL CAST ( + - 8 AS INTEGER ) AS col2 @@ -37053,8 +37549,11 @@ SELECT ALL - 64 * + 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - -32130 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col1" at position 0 and "Int64\(27\) \* Int64\(\-70\) \* Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 50 col1, 27 * - 70 * + + 17 AS col1 +---- +-32130 +-50 query I rowsort label-7034 SELECT ALL - 20 / 7 + - 80 @@ -37402,8 +37901,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(\-5\) WHEN max\(DISTINCT \(\- Int64\(93\)\)\) THEN NULL ELSE Int64\(75\) \* \(\- max\(DISTINCT CAST\(NULL AS Int32\)\)\) \+ CAST\(NULL AS Int32\) END\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CASE - 5 WHEN + MAX ( DISTINCT - + 93 ) THEN NULL ELSE 75 * - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + + CAST ( NULL AS INTEGER ) END AS col1, 34 AS col1 +---- +34 +NULL query II rowsort SELECT + 77 AS col1, 49 @@ -37574,8 +38076,11 @@ SELECT ALL - - ( + 18 ) * - 95 - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 31 AS col2, 43 AS col2 +---- +31 +43 query I rowsort SELECT - - 54 + + + 87 @@ -37840,8 +38345,12 @@ SELECT + 2 + 11 AS col2 # Datafusion - Expected - 121 # Datafusion - Expected - 27 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \+ CAST\(Int64\(54\) AS Int32\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 67 + CAST ( 54 AS INTEGER ) AS col1, + 27, 48 AS col1 +---- +121 +27 +48 query I rowsort label-7184 SELECT ALL + - CAST ( NULL AS INTEGER ) * 77 @@ -39337,8 +39846,12 @@ SELECT - 51 * 91 AS col2 # Datafusion - Expected - 1180 # Datafusion - Expected - 70 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 59 * 20, 70 AS col0, + COUNT ( * ) AS col0 +---- +1 +1180 +70 query II rowsort label-7470 SELECT - MAX ( + - 84 ) + + ( + 96 ) + - - 68, + COUNT ( ALL - + 14 ) AS col2 @@ -39367,8 +39880,11 @@ SELECT ALL 15 - 39 - - 16 + - 63 + + COALESCE ( - 76, + 39 ) * + 10 * 31 * - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - -468422 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* \(\- Int64\(70\)\) \* Int64\(69\) \+ \(\- Int64\(\-88\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 97 * ( - + 70 ) * 69 + - - 88 AS col1, + COUNT ( * ) AS col1 +---- +-468422 +1 query I rowsort SELECT DISTINCT NULLIF ( + 77, - + 70 ) @@ -39490,8 +40006,11 @@ SELECT ALL - 90 * 83 * ( - CAST ( 4 AS INTEGER ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 86 col0, 15 AS col0 +---- +15 +86 query I rowsort label-7499 SELECT ALL + 48 * - 4 * + + 97 + - CAST ( - + 72 AS INTEGER ) * - COUNT ( ALL + - ( - 66 ) ) col1 @@ -39800,8 +40319,12 @@ SELECT 52 * + 97 # Datafusion - Expected - NULL # Datafusion - Expected - 83 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(NULL AS Int32\) AS Int32\) / Int64\(53\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / 53 + - - COUNT ( * ) AS col0, + 83, + 94 AS col0 +---- +83 +94 +NULL query I rowsort label-7559 SELECT ALL CASE - 18 WHEN - 66 THEN NULL WHEN 54 + - + MAX ( DISTINCT - - 22 ) + - 61 THEN - MIN ( ALL - 20 ) ELSE ( - 50 ) END AS col1 @@ -40345,8 +40868,11 @@ SELECT 4 * 86 AS col2, 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 col1, + 52 AS col1 +---- +52 +69 query II rowsort label-7663 SELECT ALL 88 / 7 * COUNT ( * ) AS col2, 15 AS col0 @@ -41184,8 +41710,12 @@ SELECT - COALESCE ( + 43, 51 * - MAX ( - 63 ) + - 48 / CAST ( NULL AS INTEGER ) # Datafusion - Expected - 2 # Datafusion - Expected - -1 # Datafusion - Expected - 155 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(22\)\) / Int64\(9\) 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 III valuesort SELECT MIN ( 22 ) / + 9 AS col1, - COUNT ( - 80 ) AS col1, - ( + 30 ) - - - 25 + + 70 * 3 +---- +-1 +155 +2 query I rowsort label-7820 SELECT + 24 + + - CAST ( + COALESCE ( CASE - CASE + + 73 WHEN - 6 + - 97 THEN - MAX ( DISTINCT - 38 ) WHEN + NULLIF ( - + 99, 78 ) * - + COALESCE ( SUM ( - 65 ), - 60 ) * - 48 THEN NULL END WHEN 11 THEN NULL WHEN - 17 THEN - MIN ( ALL 27 ) ELSE NULL END, + 60 * 65 ) AS INTEGER ) AS col0 @@ -41292,8 +41822,11 @@ SELECT COUNT ( * ) - - + 4 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) / \(\- Int64\(3\)\) \+ Int64\(75\) AS col2" at position 0 and "CAST\(Int64\(\-70\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 51 ) / - + 3 + + 75 col2, + CAST ( + - 70 AS INTEGER ) col2 +---- +-70 +58 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -41604,8 +42137,11 @@ SELECT ALL + NULLIF ( + - ( + 53 ), - 27 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-96\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( - 96 ) AS col0, COUNT ( * ) AS col0 +---- +-96 +1 query I rowsort SELECT DISTINCT 67 * + 64 + - 43 col0 @@ -41750,8 +42286,11 @@ SELECT DISTINCT - - COUNT ( * ) * 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "\(\- max\(Int64\(\-53\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 34 AS col2, + ( + - MAX ( + - 53 ) ) AS col2 +---- +34 +53 query I rowsort label-7926 SELECT DISTINCT CAST ( - - 57 AS INTEGER ) AS col2 @@ -42198,8 +42737,11 @@ NULL # 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\(\-53\) / Int64\(26\) AS col2" at position 0 and "Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 53 ) / 26 AS col2, + 80 AS col2 +---- +-2 +80 query I rowsort label-8010 SELECT - COUNT ( * ) * - 78 * + COUNT ( * ) - - 90 / - 9 AS col1 @@ -42382,8 +42924,11 @@ SELECT 55 + - 8 + - - NULLIF ( - - CASE + ( + 39 ) WHEN 88 THEN NULL WHEN 15 - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 1806000 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-24\)\) \* Int64\(25\) \* Int64\(\-43\) \* Int64\(70\) AS col0" at position 0 and "Int64\(\-82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( + - 24 ) * 25 * - 43 * + + 70 AS col0, - 82 AS col0 +---- +-82 +1806000 query I rowsort SELECT 0 * + ( - 19 ) * - NULLIF ( - 50, - ( - 29 ) * + 50 - - + 15 ) col2 @@ -42862,8 +43407,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 712 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \* Int64\(8\) AS col0" at position 0 and "Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 89 * + 8 col0, 87 AS col0 +---- +712 +87 query I rowsort SELECT 50 + - ( + - 40 ) + - ( + 76 ) @@ -42888,8 +43436,11 @@ SELECT DISTINCT - ( + + 7 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col2" at position 0 and "Int64\(\-96\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 91 col2, - 96 / COUNT ( * ) AS col2 +---- +-91 +-96 query I rowsort label-8141 SELECT ALL 46 * - - COUNT ( * ) AS col1 @@ -43124,8 +43675,11 @@ SELECT DISTINCT - 37 + + 22, 9 + - - 56 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-35\)\) \+ Int64\(33\) \+ Int64\(\-46\) \+ \(\- Int64\(\-74\)\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( - 35 ) + 33 + + - 46 + - - 74 AS col2, + 89 AS col2 +---- +62 +89 query I rowsort SELECT ALL 20 * - 29 * + - 17 AS col2 @@ -43903,8 +44457,11 @@ SELECT NULLIF ( - 1, - - 5 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(\-23\)\) AS Int32\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( + COUNT ( - 23 ) AS INTEGER ) AS col1, 87 AS col1 +---- +1 +87 query I rowsort SELECT DISTINCT 79 * - + 84 AS col0 @@ -44110,8 +44667,11 @@ SELECT - COUNT ( * ) * + 12 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -115 # Datafusion - Expected - -137632 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(26\)\)\) \+ Int64\(6\) \+ Int64\(\-95\) AS col2" at position 0 and "Int64\(92\) \* Int64\(17\) \* Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - SUM ( + 26 ) + + 6 + - 95 AS col2, ( 92 ) * ( + 17 ) * - 88 AS col2 +---- +-115 +-137632 query I rowsort label-8376 SELECT + MIN ( + + 84 ) @@ -44275,8 +44835,11 @@ SELECT ALL - 63 AS col2, - 61 * + 55 - - COUNT ( * ) + - - COUNT ( ALL - + 92 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 5538 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(39\)\) \* Int64\(2\) \* Int64\(\-71\) AS col0" at position 0 and "CASE Int64\(46\) WHEN \(\- nullif\(\(\- Int64\(\-98\)\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(72\) \- Int64\(\-43\) \* Int64\(0\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-87\)\)\) THEN Int64\(53\) \+ \(\- Int64\(\-56\)\) \+ \(\- \(\- Int64\(\-92\)\)\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +5538 +NULL query I rowsort SELECT COALESCE ( + - 45, - - 59 * - 38 ) * 30 * - 8 @@ -44349,8 +44912,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) + + + 83 AS col0, - 87 AS col0 +---- +-87 +84 query I rowsort SELECT ALL 75 + - + 74 AS col1 @@ -44443,8 +45009,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "Int64\(\-76\) \+ Int64\(24\) \+ \(\- nullif\(\(\- CAST\(Int64\(77\) AS Int32\)\), Int64\(17\) \* Int64\(6\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 10 AS col2, - 76 + + 24 + - NULLIF ( - CAST ( + + 77 AS INTEGER ), 17 * 6 ) col2 +---- +10 +25 query II rowsort label-8439 SELECT - 38, - COUNT ( DISTINCT + 91 ) AS col0 @@ -44455,14 +45024,20 @@ SELECT - 38, - COUNT ( DISTINCT + 91 ) AS col0 # 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\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 71 col0, 23 AS col0 +---- +-71 +23 # 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\) AS col0" at position 0 and "Int64\(\-11\) \+ Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 22 AS col0, - 11 + 0 AS col0 +---- +-11 +22 query II rowsort label-8442 SELECT + + 44 AS col1, + 75 / ( - SUM ( + 88 ) ) @@ -44530,8 +45105,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 18 AS col2, 89 * - COUNT ( * ) AS col2 +---- +-89 +18 query I rowsort SELECT DISTINCT - 29 + - 31 - - 68 @@ -44857,8 +45435,11 @@ SELECT - + MIN ( DISTINCT + 72 ) / - MIN ( ALL + - 41 ) + + ( + COUNT ( * ) ) AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(Int64\(\-79\) AS Int32\)\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) + - CAST ( - 79 AS INTEGER ) col0, + 8 AS col0 +---- +8 +80 query I rowsort SELECT ALL 4 * - 32 @@ -44904,8 +45485,11 @@ SELECT ALL 38 / + 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2812 # Datafusion - Expected - 4096 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) \* \(\- Int64\(\-37\)\) AS col0" at position 0 and "Int64\(64\) \* Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 76 * - - 37 AS col0, 64 * 64 col0 +---- +-2812 +4096 query I rowsort SELECT ALL - NULLIF ( - - 14, - - 9 ) @@ -45192,8 +45776,11 @@ SELECT ALL + 15 AS col0, 50, + 45 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5452 # Datafusion - Expected - -2132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* Int64\(\-58\) AS col0" at position 0 and "Int64\(26\) \* \(\- Int64\(82\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 94 * - 58 AS col0, 26 * - + 82 AS col0 +---- +-2132 +-5452 query I rowsort label-8581 SELECT NULLIF ( 45, - + 11 + 10 * ( 35 ) - + COUNT ( * ) ) @@ -45229,8 +45816,11 @@ SELECT ALL 43 * + 4 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(55\)\) AS col0" at position 0 and "\(\- count\(Int64\(84\)\)\) \* Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( + 55 ) col0, - COUNT ( ALL + 84 ) * + 17 AS col0 +---- +-17 +1 query I rowsort SELECT + 22 + - 18 + - 55 @@ -45293,8 +45883,11 @@ SELECT + 82 * + 41 * - 77 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(87\)\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 87 col2, 94 AS col2 +---- +-87 +94 query II rowsort label-8600 SELECT + COUNT ( * ), 86 + ( + + 37 ) * - - 56 + 18 AS col0 @@ -45612,8 +46205,11 @@ SELECT DISTINCT 33 + 5 * + ( - - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -158047 # Datafusion - Expected - -1564 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \+ Int64\(15\) \+ Int64\(76\) \* Int64\(\-32\) \* Int64\(65\) AS col0" at position 0 and "Int64\(74\) \* Int64\(15\) \- Int64\(37\) \* Int64\(72\) \+ Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 18 + 15 + 76 * - 32 * + 65 col0, 74 * 15 - + 37 * 72 + - 10 col0 +---- +-1564 +-158047 query II rowsort SELECT DISTINCT 85 + - 17 AS col0, 67 @@ -47416,8 +48012,12 @@ SELECT COUNT ( * ) - + - 80 AS col1 # Datafusion - Expected - 1 # Datafusion - Expected - 5092 # Datafusion - Expected - -945 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(27\) \+ Int64\(12\) \* Int64\(\-81\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT COUNT ( * ) AS col2, 76 * 67 AS col0, + + 27 + + + ( + 12 ) * - 81 AS col2 +---- +-945 +1 +5092 query I rowsort label-9011 SELECT ALL - CAST ( NULL AS INTEGER ) * + - 35 col0 @@ -47497,8 +48097,11 @@ SELECT DISTINCT - + ( - COUNT ( * ) ) * + + 30 + + COUNT ( ALL - 82 ) + + COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col1" at position 0 and "Int64\(\-78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 83 AS col1, - 78 AS col1 +---- +-78 +83 query I rowsort label-9027 SELECT - 0 * - - MIN ( ALL + + COALESCE ( 68, + - 67 * 50 ) ) + 51 * + 42 @@ -47676,8 +48279,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 40 AS col0, - 25 AS col0 +---- +-25 +40 query I rowsort label-9060 SELECT - 20 / + + SUM ( 40 ) @@ -47760,8 +48366,11 @@ SELECT + 23 - + 44 + + + 55 # 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\(3\) WHEN Int64\(8\) THEN Int64\(69\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 65 AS col1, CASE + + 3 WHEN + + 8 THEN 69 ELSE NULL END col1 +---- +65 +NULL query II rowsort SELECT DISTINCT + + 1, + ( + - 91 ) + - 24 + ( 72 ) AS col2 @@ -47826,8 +48435,11 @@ SELECT - 27 * 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3225 # Datafusion - Expected - 1296 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \* Int64\(75\) AS col0" at position 0 and "Int64\(16\) \* \(\- Int64\(\-81\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 43 * 75 AS col0, 16 * - - 81 AS col0 +---- +-3225 +1296 query I rowsort label-9087 SELECT ALL + NULLIF ( MAX ( DISTINCT + 99 ), MAX ( 26 ) ) * + + 22 + - NULLIF ( + 47, - 24 / COUNT ( * ) + 61 ) * NULLIF ( + 0, MAX ( - 17 ) * + 66 ) + COALESCE ( 31 + COUNT ( * ), + COUNT ( * ) ) AS col1 @@ -48161,8 +48773,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(61\) \* Int64\(\-37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 26 * - CASE - 78 WHEN - 37 THEN 52 END AS col0, - 55 * - + 74 * + 73 + + + COUNT ( * ) + 61 * - 37 AS col0 +---- +294854 +NULL query I rowsort SELECT DISTINCT 55 + - 26 + - 49 AS col1 @@ -48975,8 +49590,11 @@ SELECT COALESCE ( ( + + 29 ), ( - 28 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 0 and "CAST\(Int64\(7\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 col0, CAST ( 7 AS INTEGER ) AS col0 +---- +28 +7 query I rowsort SELECT + - 13 * + 69 AS col2 @@ -49288,8 +49906,11 @@ SELECT DISTINCT + 18 + 40 * + ( ( - 93 ) ) + 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "Int64\(75\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 22 AS col1, 75 + + COUNT ( * ) AS col1 +---- +22 +76 query II rowsort label-9364 SELECT ALL 72 + - + COUNT ( * ) / - 44 AS col0, - 16 * - ( + 18 ) * + COUNT ( * ) / + + 85 * + 44 + + 18 + + ( 55 ) + - CASE + 9 WHEN + 81 * - 49 THEN - 31 * COALESCE ( - COUNT ( * ), + 89 ) WHEN + 31 THEN 68 * 99 + - COALESCE ( + 44, - 42 ) ELSE NULL END * + 9 @@ -49347,14 +49968,20 @@ SELECT DISTINCT + 58 - + MIN ( ALL - 40 ) + + CAST ( + 77 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 2592 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "Int64\(36\) \* Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 AS col1, 36 * 72 AS col1 +---- +2592 +63 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- 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\. +query II valuesort SELECT ALL - COUNT ( * ) - + COUNT ( * ) * 2 AS col2, COUNT ( * ) + - - 35 + + + SUM ( + - 51 ) col2 +---- +-15 +-3 query I rowsort label-9376 SELECT DISTINCT - 14 / - 67 col0 @@ -49498,8 +50125,12 @@ SELECT COUNT ( * ) + - - ( - - 33 ) + - 38 AS col0 # Datafusion - Expected - 66 # Datafusion - Expected - -9 # 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 "Int64\(\-9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort SELECT 66 AS col2, - 9 AS col2, + - CAST ( NULL AS FLOAT8 ) +---- +-9 +66 +NULL query I rowsort SELECT ALL 31 + + 51 @@ -49550,8 +50181,11 @@ SELECT ALL 92 * + 66 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 33 AS col2, + 7 AS col2 +---- +33 +7 query I rowsort label-9413 SELECT + - NULLIF ( + 17, COUNT ( * ) ) * CAST ( + 44 AS INTEGER ) * 2 * + + COUNT ( * ) * MAX ( - 92 ) - - + 14 + + 15 + + 94 AS col2 @@ -49976,8 +50610,12 @@ 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\(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\. +query III valuesort SELECT COUNT ( * ) * - - 64 AS col1, - 66 / CAST ( + + 53 AS INTEGER ) AS col0, COALESCE ( - - 34, COUNT ( * ) ) * + NULLIF ( - - 17, + 35 ) + - 18 col1 +---- +-1 +560 +64 query II rowsort label-9494 SELECT 48 * - 57 AS col2, + 66 / + 90 + - + 84 / CASE - + COUNT ( * ) WHEN + 28 + 30 THEN NULL WHEN - SUM ( - - 62 ) * 79 THEN - 64 / 89 WHEN - - CASE + 4 WHEN + - ( 98 ) * + 57 + ( - 98 + + 51 ) THEN NULL WHEN + 58 / 64 THEN 42 END THEN NULL END * - CAST ( NULL AS INTEGER ) @@ -50361,8 +50999,11 @@ SELECT ALL - + 29 * - - 48 + - + 47 - - 5 * + 1 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 44 AS col1, 16 AS col1 +---- +16 +44 query I rowsort SELECT DISTINCT - 2 - + 61 AS col1 @@ -50392,8 +51033,11 @@ SELECT - - MAX ( - 42 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col1" at position 0 and "Int64\(14\) \+ Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 77 AS col1, + 14 + + 24 AS col1 +---- +-77 +38 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -50448,8 +51092,11 @@ SELECT + 67 / + + 70 * + - 91 * + ( 71 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 200 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CASE \(\- Int64\(66\)\) WHEN Int64\(68\) \* Int64\(\-85\) THEN NULL ELSE Int64\(85\) \+ Int64\(65\) \- Int64\(\-50\) END AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( CASE - + 66 WHEN + 68 * - 85 THEN NULL ELSE 85 + + 65 - - 50 END AS INTEGER ) AS col1, COUNT ( * ) AS col1 +---- +1 +200 query I rowsort SELECT 30 * - - 94 AS col0 @@ -50751,8 +51398,11 @@ SELECT - 73 AS col1, 27 * 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12667 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ \(\- Int64\(22\)\) \* coalesce\(Int64\(63\), Int64\(22\) \+ Int64\(\-97\) / Int64\(\-64\), Int64\(8\)\) \* \(\- Int64\(9\)\) \+ Int64\(76\) \- Int64\(\-79\) \+ \(\- nullif\(Int64\(2\), Int64\(0\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 + - + ( + 22 ) * + COALESCE ( + 63, + 22 + - 97 / - 64, + + 8 ) * - + 9 + + + 76 - + - 79 + - NULLIF ( + 2, ( + 0 ) ) AS col1, COUNT ( * ) AS col1 +---- +1 +12667 query I rowsort SELECT ALL + 69 + + + 62 AS col1 @@ -51147,8 +51797,11 @@ SELECT 80 AS col2, + ( + 83 ) / CAST ( - 56 AS INTEGER ) col1 # 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\(53\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 53 AS col2, 7 AS col2 +---- +53 +7 query II rowsort SELECT DISTINCT 4 AS col1, 94 @@ -51159,8 +51812,11 @@ SELECT DISTINCT 4 AS col1, 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \- \(\- \(\- nullif\(Int64\(51\), Int64\(99\)\)\)\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 13 - + - ( - + ( + NULLIF ( 51, 99 ) ) ) AS col1, 13 AS col1 +---- +-38 +13 query II rowsort SELECT 72 AS col2, - 36 * + 44 * 40 @@ -51666,8 +52322,11 @@ SELECT - ( 0 ) / 88 + - 1 + - 66 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) / CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(8\) / Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 32 / CAST ( NULL AS INTEGER ) AS col2, 8 / - 98 AS col2 +---- +0 +NULL query I rowsort label-9818 SELECT + 14 * 76 / 18 @@ -52059,8 +52718,11 @@ SELECT DISTINCT - 31 + 91 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 0 and "Int64\(53\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 58 AS col1, 53 + + COUNT ( * ) AS col1 +---- +54 +58 query II rowsort label-9893 SELECT 64 AS col0, COUNT ( * ) AS col2 @@ -52123,8 +52785,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) col2, - 70 + + COUNT ( DISTINCT + 37 ) AS col2 +---- +-1 +-69 query I rowsort label-9905 SELECT + + COUNT ( * ) / - - ( ( - + MAX ( DISTINCT + - 19 ) ) ) AS col1 @@ -52292,8 +52957,11 @@ SELECT - 29 - + 92 * - 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - -388 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(\-99\) WHEN \(\- Int64\(\-43\)\) THEN \(\- Int64\(94\)\) ELSE Int64\(\-25\) END\) \* Int64\(\-18\) \- Int64\(\-62\) AS col1" at position 0 and "Int64\(6\) / max\(Int64\(26\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CASE + - 99 WHEN - ( - 43 ) THEN - + 94 ELSE - 25 END * - 18 - + - 62 AS col1, 6 / + MAX ( + 26 ) AS col1 +---- +-388 +0 query I rowsort label-9937 SELECT + + COUNT ( * ) * - 1 diff --git a/data/sqlite/random/expr/slt_good_50.slt b/data/sqlite/random/expr/slt_good_50.slt index 0ec424a..f4b40e1 100644 --- a/data/sqlite/random/expr/slt_good_50.slt +++ b/data/sqlite/random/expr/slt_good_50.slt @@ -90,8 +90,11 @@ SELECT - 46 - - 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3956 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-60\)\) \+ CASE Int64\(5\) WHEN avg\(DISTINCT Int64\(\-40\)\) \* Int64\(0\) \* Int64\(\-90\) \+ Int64\(90\) \+ Int64\(\-49\) THEN \(\- Int64\(\-77\)\) / Int64\(19\) \* \(\- min\(\(\- Int64\(\-64\)\)\)\) END 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 II valuesort SELECT ALL ( - - 60 ) + + + CASE + ( + 5 ) WHEN + + AVG ( DISTINCT - 40 ) * + - 0 * + - 90 + 90 + - 49 THEN - - 77 / 19 * - + MIN ( - - 64 ) END col0, 92 * + 43 AS col0 +---- +3956 +NULL query I rowsort label-11 SELECT - 64 / - + 11 @@ -309,8 +312,11 @@ SELECT + 86, 91 / COUNT ( * ) * + + 6 * - + 85 + - 46 + + 6 * - + 49 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col1" at position 0 and "Int64\(\-51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 42 ) AS col1, - 51 AS col1 +---- +-51 +42 query I rowsort label-54 SELECT NULLIF ( - COUNT ( * ), - 18 * - - 34 + + 91 ) @@ -646,8 +652,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) / Int64\(59\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(\-32\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(36\) \+ CAST\(\(\- Int64\(66\)\) AS Int32\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 26 / 59 / - - COUNT ( * ) + - 32 * - - COUNT ( * ) + + 36 + + CAST ( - + 66 AS INTEGER ) col1, - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1 +---- +-62 +NULL query I rowsort SELECT ALL - ( 13 ) @@ -961,8 +970,11 @@ SELECT + 12 + + + 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7115 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ Int64\(77\) \* Int64\(\-93\) \- Int64\(56\) \+ Int64\(14\) AS col0" at position 0 and "count\(\(\- nullif\(Int64\(10\), Int64\(33\)\)\)\) \* Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 88 + + 77 * - 93 - 56 + 14 AS col0, COUNT ( ALL - NULLIF ( + 10, + 33 ) ) * - 92 col0 +---- +-7115 +-92 query I rowsort label-178 SELECT + 64 + - + 44 + - + SUM ( + + 22 ) AS col0 @@ -972,8 +984,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(76\)\) / Int64\(78\) / Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 24 AS col2, COUNT ( * ) * - + 76 / 78 / + ( 17 ) AS col2 +---- +0 +24 query I rowsort label-180 SELECT ALL + CASE - - 35 WHEN - - 5 THEN NULL ELSE NULLIF ( + 31, - COUNT ( * ) * + 57 ) END / + + 65 @@ -1185,8 +1200,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 0 and "Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 28 AS col0, - 85 AS col0 +---- +-85 +28 query II rowsort SELECT ALL 80 AS col2, + 13 AS col1 @@ -1321,8 +1339,11 @@ 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\(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\. +query II valuesort 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 +---- +98 +NULL query I rowsort SELECT ALL - + ( + 91 ) @@ -1360,8 +1381,12 @@ SELECT COUNT ( * ) * + 57 AS col0 # Datafusion - Expected - -51 # Datafusion - Expected - 92420 # 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 "Int64\(54\) \* Int64\(30\) \* Int64\(57\) \+ Int64\(61\) \- Int64\(\-45\) \+ \(\- Int64\(26\)\) / count\(DISTINCT Int64\(64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + 51 AS col0, + 54 * 30 * + 57 + + 61 - - 45 + - + 26 / + COUNT ( DISTINCT + 64 ) AS col0, - + 1 +---- +-1 +-51 +92420 query I rowsort SELECT DISTINCT - 52 * - 29 + + 35 AS col0 @@ -2136,8 +2161,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 * 80 AS col1, 27 * + COUNT ( * ) + + - 9 col1 +---- +18 +5200 query I rowsort SELECT 68 * 44 AS col0 @@ -2454,8 +2482,11 @@ SELECT + COUNT ( * ) * + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 97 AS col1, 5 col1 +---- +5 +97 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -3094,8 +3125,11 @@ SELECT DISTINCT - COUNT ( * ) * + 64 + + 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col2" at position 0 and "Int64\(\-93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 56 col2, - 93 AS col2 +---- +-56 +-93 query I rowsort label-584 SELECT - + COALESCE ( + 58, + 80, + 90 + + 75 ) * + 78 + - MAX ( ALL 5 ) AS col2 @@ -3115,8 +3149,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 79 col1, - COUNT ( * ) AS col1 +---- +-1 +-79 query I rowsort label-588 SELECT CAST ( 81 AS INTEGER ) @@ -3172,8 +3209,11 @@ SELECT 60 * - MAX ( 97 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1872 # Datafusion - Expected - 621 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \* Int64\(48\) AS col2" at position 0 and "Int64\(9\) \* Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 39 * + 48 AS col2, 9 * ( + + 69 ) AS col2 +---- +-1872 +621 query I rowsort SELECT ALL - - 13 * - - 87 * + - 75 AS col2 @@ -3517,8 +3557,12 @@ SELECT - COALESCE ( - 20, - 61 ) * 39 * + - 70 col1 # Datafusion - Expected - -4 # Datafusion - Expected - -699 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(4\), Int64\(53\) \- Int64\(\-47\)\)\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - COALESCE ( + 4, 53 - - 47 ) AS col2, CAST ( NULLIF ( + 41, - + 55 + + + 37 * - + 46 + 86 + 54 ) AS INTEGER ) * - ( 17 ) + 72 / - 70 - COUNT ( * ) AS col1, + 90 AS col2 +---- +-4 +-699 +90 query I rowsort label-664 SELECT ALL - 71 + + + 30 / + 37 AS col1 @@ -4356,8 +4400,11 @@ SELECT - NULLIF ( - 35, + 49 * - 79 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 2139 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "Int64\(93\) \* Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 40 AS col1, 93 * 23 AS col1 +---- +2139 +40 query I rowsort SELECT ALL + 19 - - 94 * + 41 * + 98 @@ -4499,8 +4546,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(49\) AS col0" at position 0 and "Int64\(61\) \- count\(Int64\(62\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) * 49 AS col0, + 61 - + COUNT ( + 62 ) AS col0 +---- +60 +NULL query I rowsort SELECT 78 * - - 16 AS col1 @@ -4578,8 +4628,11 @@ SELECT ALL - ( - - 6 ) + + 87, 9 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col0" at position 0 and "\(\- \(\- Int64\(\-16\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 52 AS col0, - ( - - 16 ) AS col0 +---- +-16 +52 query I rowsort SELECT 18 + - ( - 46 ) @@ -4884,8 +4937,11 @@ SELECT DISTINCT 83 + - ( - COUNT ( * ) ) + + 31 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, 91 AS col0 +---- +1 +91 query I rowsort SELECT + + 75 + + + 38 AS col1 @@ -5133,8 +5189,11 @@ SELECT ALL 9 * + COALESCE ( + 26, + 20 * + 44 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(74\) AS Int32\) / Int64\(25\) AS col2" at position 0 and "Int64\(\-52\) \+ \(\- count\(Int64\(\-2\)\)\) \+ Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( 74 AS INTEGER ) / + 25 AS col2, - 52 + - COUNT ( ALL - 2 ) + + 92 AS col2 +---- +2 +39 query II rowsort SELECT - 87 AS col0, - 15 + - 15 @@ -5161,8 +5220,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT ( + - COUNT ( * ) ) + - 79 / 81 AS col1, - 18 AS col1 +---- +-1 +-18 query I rowsort label-981 SELECT ALL - + CASE COUNT ( * ) WHEN + COUNT ( DISTINCT - + 65 ) + 46 THEN - 31 * CAST ( NULL AS INTEGER ) + 51 END AS col1 @@ -5423,8 +5485,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 56 AS col1, + 10 + + 67 * + COUNT ( * ) * 38 col1 +---- +2556 +56 query I rowsort label-1032 SELECT - COUNT ( * ) - + - 99 @@ -5551,8 +5616,11 @@ SELECT DISTINCT + - CAST ( + - COALESCE ( + ( + COUNT ( * ) ), + ( + - 1 ) - - 8 # 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 "Int64\(\-61\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 61 AS col1, 46 AS col1 +---- +-61 +46 query I rowsort label-1056 SELECT ALL - COUNT ( * ) * + - ( + COUNT ( * ) ) + + 71 + + 88 * - 88 * 10 @@ -5632,8 +5700,11 @@ SELECT SUM ( DISTINCT - - 84 ), + 72 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col2" at position 0 and "Int64\(\-73\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 71 AS col2, - 73 + COUNT ( * ) AS col2 +---- +-71 +-72 query I rowsort label-1071 SELECT ALL - 11 * + + COUNT ( * ) @@ -5667,8 +5738,11 @@ SELECT DISTINCT 50 + CAST ( - 17 AS INTEGER ) + - - 38 * - + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \+ Int64\(\-46\) AS col0" at position 0 and "Int64\(69\) \- Int64\(\-34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 26 + - 46 AS col0, + ( + 69 ) - - 34 col0 +---- +-20 +103 query I rowsort label-1077 SELECT ALL MIN ( - 4 ) - + ( COUNT ( * ) ) @@ -6315,8 +6389,11 @@ SELECT ALL - 66 + + 96 + NULLIF ( - COUNT ( * ), + 50 ) + + 19 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 990 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* Int64\(18\) AS col2" at position 0 and "Int64\(\-54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 55 * + 18 AS col2, - 54 AS col2 +---- +-54 +990 query I rowsort SELECT - + 86 + + ( + + 96 ) AS col0 @@ -6656,8 +6733,11 @@ SELECT 24, + MIN ( 31 ) / 67 + 97 * - - 34 * + 52 + + 11 * - - 47 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-4\)\) AS col2" at position 0 and "coalesce\(max\(Int64\(30\)\), Int64\(56\) \+ Int64\(63\), sum\(Int64\(85\)\) \* Int64\(7\) \* CAST\(Int64\(72\) AS Int32\) \+ Int64\(75\) \- \(\- count\(DISTINCT \(\- CASE Int64\(\-87\) WHEN Int64\(67\) \+ Int64\(63\) \* Int64\(0\) THEN Int64\(\-93\) ELSE \(\- coalesce\(Int64\(27\), Int64\(23\)\)\) \* Int64\(\-54\) END\)\)\) \+ Int64\(79\), Int64\(33\) \+ Int64\(\-59\)\) / \(\- CASE Int64\(\-40\) WHEN Int64\(\-86\) \* Int64\(\-47\) THEN Int64\(96\) \* Int64\(82\) ELSE Int64\(58\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 4 AS col2, + COALESCE ( MAX ( + 30 ), 56 + + 63, + SUM ( ALL + + 85 ) * + 7 * CAST ( + 72 AS INTEGER ) + + 75 - - COUNT ( DISTINCT - + CASE - 87 WHEN 67 + + 63 * 0 THEN - 93 ELSE - COALESCE ( 27, ( 23 ) ) * - 54 END ) + + 79, 33 + - 59 ) / - CASE - 40 WHEN - 86 * - 47 THEN + 96 * + 82 ELSE 58 END AS col2 +---- +0 +4 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -6722,8 +6802,11 @@ SELECT ALL - SUM ( 49 ) * + 86 + - 47 - - 17 # 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\(62\) AS col0" at position 0 and "Int64\(\-93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 62 AS col0, + ( - 93 ) AS col0 +---- +-93 +62 query II rowsort label-1277 SELECT + COUNT ( * ) + + + 67 + 28 + + 34 AS col1, - 15 @@ -6772,8 +6855,11 @@ SELECT ALL + ( 16 ) * + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - -952 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-30\)\) AS col1" at position 0 and "Int64\(68\) \* Int64\(\-14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MIN ( - 30 ) AS col1, 68 * + - 14 AS col1 +---- +-30 +-952 query I rowsort label-1286 SELECT 16 - - COUNT ( * ) + - 38 + + 11 @@ -7037,8 +7123,11 @@ SELECT + 27, - 80 * - 30 AS 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 col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 76 AS col1, 47 AS col1 +---- +47 +76 query I rowsort label-1335 SELECT - COUNT ( * ) * - + 93 * + 79 - - 38 AS col2 @@ -7669,8 +7758,11 @@ SELECT ALL ( + 32 ) * 52 + 77 # 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 "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 69 AS col2, 1 AS col2 +---- +1 +69 query I rowsort SELECT + 75 * 98 AS col2 @@ -7685,8 +7777,11 @@ SELECT 35 * + 68 * - + 43 + + + 97 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \+ Int64\(\-47\) AS col2" at position 0 and "Int64\(33\) / Int64\(89\) \+ Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 81 + - 47 AS col2, 33 / + + 89 + + 75 AS col2 +---- +34 +75 query I rowsort label-1459 SELECT - 45 * ( + MIN ( - - ( CAST ( NULL AS INTEGER ) ) ) ) * MAX ( - - ( - 30 ) ) + - - 34 + + + COUNT ( * ) - 66 * + - COALESCE ( - 35, + 55 + - + 2 ) * 61 / - 19 * - 25 - + - 87 + + + 27 + COUNT ( * ) col2 @@ -7780,8 +7875,12 @@ NULL # Datafusion - Expected - -3798 # Datafusion - Expected - -88 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-88\), Int64\(35\)\) AS col1" at position 1 and "Int64\(\-70\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + SUM ( 93 ) * - CAST ( + ( + + 44 ) AS INTEGER ) - 14 * - 21, NULLIF ( + - 88, 35 ) AS col1, - 70 col1 +---- +-3798 +-70 +-88 query I rowsort SELECT + 41 + - 61 AS col1 @@ -8378,8 +8477,11 @@ SELECT - ( COUNT ( * ) ) / + + SUM ( - - 16 ) + 81 - + 85 * + 41 * - COUNT ( DIS # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(57\) \- Int64\(\-8\) \- CAST\(Int64\(99\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, 57 - + ( - 8 ) - + CAST ( 99 AS INTEGER ) AS col2 +---- +-34 +1 query I rowsort label-1593 SELECT - CAST ( - 11 AS INTEGER ) + + 94 @@ -8400,8 +8502,11 @@ SELECT + COUNT ( 58 ) * + SUM ( + - 80 ) + COUNT ( * ) * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "Int64\(\-98\) \+ CASE Int64\(\-67\) WHEN \(\- min\(Int64\(\-27\)\)\) \- Int64\(61\) THEN coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(33\) \+ CAST\(Int64\(65\) AS Int32\), Int64\(49\)\) WHEN \(\- avg\(DISTINCT Int64\(\-52\)\)\) THEN Int64\(36\) \* Int64\(83\) \+ \(\- Int64\(\-32\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +18 +NULL query I rowsort label-1597 SELECT ALL + - COUNT ( * ) - + COUNT ( ALL + 3 ) @@ -8442,8 +8547,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 3256 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "Int64\(44\) \* Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 AS col2, 44 * 74 col2 +---- +3256 +7 query I rowsort SELECT - 77 * 13 AS col2 @@ -8458,8 +8566,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, 23 col1 +---- +-1 +23 query II rowsort label-1608 SELECT - 31 AS col1, - SUM ( - 72 ) * 77 + + + 34 AS col0 @@ -8715,8 +8826,11 @@ SELECT DISTINCT + + 56, 45 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 96 AS col0, + 30 AS col0 +---- +30 +96 query I rowsort label-1657 SELECT DISTINCT - MAX ( - + 87 ) * COUNT ( * ) AS col0 @@ -9052,8 +9166,12 @@ SELECT 32 / 85 - - + 49 AS col2 # Datafusion - Expected - 83 # Datafusion - Expected - -1512 # Datafusion - Expected - 3255 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \* Int64\(\-56\) AS col2" at position 1 and "Int64\(93\) \* Int64\(35\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - - 83, + 27 * - 56 AS col2, 93 * 35 col2 +---- +-1512 +3255 +83 query I rowsort SELECT DISTINCT + 88 + 66 @@ -9273,8 +9391,12 @@ SELECT DISTINCT + + 65 * - 45 + + 53 * - 80 - + - 24 * COUNT ( * ) + + + 60 * - # Datafusion - Expected - -58 # Datafusion - Expected - -64 # Datafusion - Expected - 4636645 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col2" at position 0 and "Int64\(\-42\) \+ Int64\(40\) \- Int64\(27\) \* Int64\(15\) \* Int64\(79\) \+ Int64\(\-73\) \* Int64\(51\) \* Int64\(\-38\) \* Int64\(33\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 58 AS col2, - 64, - 42 + 40 - 27 * 15 * + 79 + - 73 * + ( ( + 51 ) ) * - 38 * 33 AS col2 +---- +-58 +-64 +4636645 query II rowsort label-1761 SELECT DISTINCT - ( COUNT ( * ) ), + 48 AS col2 @@ -9301,8 +9423,11 @@ SELECT - + COUNT ( * ) / + 50 * - 78 - + + 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 1560 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "Int64\(40\) \* Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 96 AS col2, 40 * + + 39 AS col2 +---- +1560 +96 query I rowsort label-1766 SELECT 70 * + COUNT ( ALL 17 ) * - 70 @@ -9343,8 +9468,11 @@ SELECT DISTINCT + CAST ( - 7 AS INTEGER ), - 47 * + ( + + 5 ) + COUNT ( * ) / - # Datafusion - Datafusion expected results: # Datafusion - Expected - 161 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \+ Int64\(98\) AS col2" at position 0 and "Int64\(\-34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 63 + 98 AS col2, - 34 AS col2 +---- +-34 +161 query I rowsort label-1774 SELECT + ( + - COUNT ( * ) ) / + 11 @@ -9629,8 +9757,11 @@ SELECT + 30 * COUNT ( * ) - 74 * - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2352 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(42\)\) \* Int64\(56\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 42 * 56 * COUNT ( * ) col1, - 95 AS col1 +---- +-2352 +-95 query I rowsort label-1829 SELECT - CASE - 22 WHEN + ( + 61 ) THEN - 70 ELSE NULL END / ( COUNT ( * ) ) AS col1 @@ -10320,8 +10451,11 @@ SELECT - SUM ( - 49 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-4\) AS Int32\)" at position 0 and "Int64\(\-4\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - 4 AS INTEGER ), - 4 +---- +-4 +-4 query I rowsort label-1962 SELECT COALESCE ( COUNT ( * ), + + 89 ) - - + COALESCE ( + 79, + 98 ) + - + 34 @@ -10523,8 +10657,11 @@ SELECT + COALESCE ( - 30, 35 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 61 AS col1, 63 AS col1 +---- +-61 +63 query I rowsort SELECT ALL - - 3 AS col2 @@ -11121,8 +11258,12 @@ SELECT + COUNT ( * ) * + COUNT ( * ) + + 75 AS col2 # Datafusion - Expected - 2670 # Datafusion - Expected - -210 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \* Int64\(30\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 89 * + 30 AS col2, + 5 * + - 42, COUNT ( * ) AS col2 +---- +-210 +1 +2670 query II rowsort SELECT ALL - + 63 AS col0, 24 col2 @@ -11632,8 +11773,11 @@ SELECT DISTINCT - MAX ( DISTINCT + 74 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(min\(Int64\(36\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(\-83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( MIN ( + + 36 ) AS INTEGER ) AS col1, - 83 AS col1 +---- +-36 +-83 query I rowsort SELECT ALL 62 - - 87 @@ -11842,8 +11986,11 @@ SELECT ALL + 91 + + - COUNT ( - 68 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 65 AS col2 +---- +1 +65 query I rowsort label-2252 SELECT 27 + + 15 - 99 * - COUNT ( * ) @@ -12030,8 +12177,11 @@ SELECT - 56 * 62 * - 74 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(\-98\)\) AS col2" at position 0 and "Int64\(\-1\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( DISTINCT - 98 ) AS col2, - 1 + + + COUNT ( * ) AS col2 +---- +-98 +0 query I rowsort SELECT DISTINCT + ( + 71 ) col0 @@ -12452,8 +12602,11 @@ SELECT MIN ( DISTINCT + 96 ) + - - 16 - - + 55 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 3421 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col1" at position 0 and "Int64\(\-94\) \* Int64\(\-36\) \+ Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 38 AS col1, - 94 * + - 36 + 37 col1 +---- +-38 +3421 query I rowsort label-2369 SELECT ALL + 16 - - 47 + COUNT ( * ) / - - 50 - + 97 + + 26 AS col0 @@ -13089,8 +13242,11 @@ SELECT - 77 * 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col0" at position 0 and "Int64\(13\) \+ Int64\(31\) \- Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 56 AS col0, + 13 + 31 - + 81 col0 +---- +-37 +-56 query I rowsort SELECT DISTINCT ( - 47 ) * - 43 @@ -13163,8 +13319,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) * - 34 AS col2, 72 col2 +---- +34 +72 query I rowsort label-2506 SELECT ALL CAST ( NULL AS INTEGER ) + 31 + + 73 - 73 AS col2 @@ -13675,8 +13834,11 @@ SELECT - - 26, + ( + + 59 ) + + 77 * - + 76 + 90 * + 82 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col1" at position 0 and "Int64\(78\) / min\(Int64\(\-14\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 69 col1, + 78 / + MIN ( ALL - 14 ) AS col1 +---- +-5 +-69 query I rowsort label-2605 SELECT COALESCE ( + 95, + 51, - + 33 / - + COUNT ( * ) ) col1 @@ -13943,8 +14105,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 25 * + 78 * + 81 AS col1, COUNT ( * ) * - 56 col1 +---- +-56 +157950 query I rowsort label-2656 SELECT DISTINCT - ( + COALESCE ( + ( COALESCE ( - 66, - ( 54 ) / - 98 + + 40 * - COUNT ( * ), NULLIF ( 46, + COUNT ( * ) * + COUNT ( DISTINCT + 4 ) ) * + ( - 90 * - 93 + 0 ) ) ), 2 * 94 ) ) * - 64 - 49 @@ -13994,8 +14159,11 @@ SELECT - COALESCE ( - - 35, + CASE - 89 WHEN - - 9 - - - 55 THEN 24 WHEN + 64 TH # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col1" at position 0 and "Int64\(27\) / Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 96 AS col1, 27 / - 46 AS col1 +---- +0 +96 query I rowsort label-2666 SELECT + + 16 + - MAX ( - 37 ) AS col1 @@ -14405,8 +14573,11 @@ SELECT - CASE - 17 WHEN - - 88 THEN NULL ELSE 77 + ( - + 94 ) END * 43 * + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -98406 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-71\)\) \* Int64\(\-18\) \* \(\- Int64\(\-77\)\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 71 * - 18 * - - 77 AS col0, + 25 AS col0 +---- +-98406 +25 query I rowsort label-2743 SELECT - 3 + - NULLIF ( + 91, - 30 + CASE 74 WHEN + COUNT ( + 14 ) + - COALESCE ( + 6, + 70 ) THEN 3 * - 17 + 63 * 59 ELSE NULL END + - 55 ) + 84 * 62 @@ -14637,8 +14808,11 @@ SELECT DISTINCT ( + 7 ) * SUM ( - 90 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2496 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* Int64\(\-52\) AS col0" at position 0 and "Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 48 * - 52 AS col0, 20 AS col0 +---- +-2496 +20 query I rowsort label-2786 SELECT + - 83 * 47 * 80 * - CAST ( + + 31 AS INTEGER ) AS col2 @@ -14729,8 +14903,11 @@ SELECT ALL - 19 + - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 3772 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ Int64\(\-6\) AS col0" at position 0 and "Int64\(\-41\) \* Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 95 + - 6 col0, - 41 * - 92 AS col0 +---- +3772 +89 query I rowsort SELECT - 1 + + 7 @@ -14881,8 +15058,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 192 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(50\) AS Int32\)\) \+ \(\- CAST\(Int64\(\-75\) AS Int32\)\) AS col1" at position 0 and "Int64\(98\) \+ \(\- Int64\(\-94\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( 50 AS INTEGER ) + - CAST ( + - 75 AS INTEGER ) AS col1, + 98 + - - 94 AS col1 +---- +192 +25 query I rowsort SELECT ALL 25 + + 61 + - - 38 AS col0 @@ -15008,8 +15188,11 @@ SELECT 79 AS col0, ( 21 ) # 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 col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 47 AS col2, 54 AS col2 +---- +47 +54 query I rowsort label-2857 SELECT - 68 * + 0 + CAST ( + - 66 AS INTEGER ) @@ -15261,8 +15444,12 @@ SELECT 31 AS col2, - 61 col1 # Datafusion - Expected - -47 # Datafusion - Expected - 26 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 47 col0, ( 26 ), + + 31 AS col0 +---- +-47 +26 +31 query I rowsort SELECT ALL 96 + - 15 @@ -15743,8 +15930,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( + 35 ) AS col1, - COUNT ( * ) AS col1 +---- +-1 +35 query I rowsort SELECT + 0 * - 23 @@ -15871,8 +16061,11 @@ SELECT + 10 * 59 * - NULLIF ( COUNT ( * ), - 82 ) + 11 + + 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1980 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-6\), max\(Int64\(25\)\)\) \* Int64\(33\) \* Int64\(10\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( + - 6, + MAX ( ALL + 25 ) ) * 33 * + + 10 col2, 75 AS col2 +---- +-1980 +75 query I rowsort SELECT DISTINCT - 84 col0 @@ -16247,8 +16440,11 @@ SELECT - NULLIF ( - - ( - 8 ), + ( - COUNT ( * ) ) ) + - 86 + 95 + - - ( 63 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 1347 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-47\), \(\- Int64\(\-52\)\)\) AS col2" at position 0 and "Int64\(\-19\) \* Int64\(\-72\) \+ Int64\(\-21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT NULLIF ( - 47, - - 52 ) col2, - 19 * - 72 + - 21 AS col2 +---- +-47 +1347 query I rowsort SELECT ALL + 39 * 17 + + 4 AS col1 @@ -16763,8 +16959,11 @@ SELECT ALL 83 * - - COUNT ( * ) * - 15 + - + 97 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) \* \(\- count\(\(\- \(\- Int64\(1\)\)\)\)\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 66 * - COUNT ( ALL + - ( - + 1 ) ) AS col0, + 25 AS col0 +---- +25 +66 query I rowsort SELECT + - 66 + + 71 AS col1 @@ -16968,8 +17167,11 @@ SELECT + COALESCE ( 73, + 84 + + - 2 * - 35 * 84, 8 ) - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col2" at position 0 and "Int64\(\-35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 AS col2, - 35 AS col2 +---- +-35 +45 query I rowsort SELECT ALL + 61 * + - 18 @@ -17272,8 +17474,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 66 AS col0, 97 AS col0 +---- +66 +97 query I rowsort SELECT + 21 + + 34 @@ -17310,8 +17515,11 @@ 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\(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\. +query II valuesort SELECT ALL + 59 col2, 23 + - NULLIF ( - COUNT ( * ), - 39 + + COUNT ( * ) ) AS col2 +---- +24 +59 query I rowsort SELECT ALL + 96 * + 60 * 37 col2 @@ -17339,8 +17547,11 @@ SELECT 62 * + 75 + 36 * + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3115 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \* Int64\(35\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 89 * + 35 AS col0, 79 AS col0 +---- +-3115 +79 query I rowsort SELECT - 43 * + 40 @@ -17440,8 +17651,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(60\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + + 42 ) * 18 * + - 53 + - 83 AS col1, - 37 * + - NULLIF ( - + COALESCE ( 36, - + 34 + 76 ), 40 + + MIN ( 33 ) * + 85 + COUNT ( * ) * + 60 ) AS col1 +---- +-1332 +-40151 query II rowsort SELECT - 10 - - 97 AS col2, - 41 @@ -17460,8 +17674,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4221 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* Int64\(67\) AS col0" at position 0 and "Int64\(\-84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 63 * + 67 AS col0, - 84 AS col0 +---- +-84 +4221 query I rowsort label-3326 SELECT - + 11 * + MAX ( ALL 6 ) col0 @@ -17985,8 +18202,11 @@ SELECT ALL + 81 + + NULLIF ( + - 44, + 43 * 8 + + COUNT ( * ) + COUNT ( * ) * CO # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col1" at position 0 and "Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 AS col1, 6 AS col1 +---- +6 +85 query II rowsort SELECT ALL 55 AS col1, + ( + + 50 ) AS col2 @@ -18076,8 +18296,11 @@ SELECT ALL + MIN ( - + 17 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, - COUNT ( * ) + + 20 AS col1 +---- +1 +19 query II rowsort SELECT - 53 + - 78, 27 * - - 58 * + 57 AS col1 @@ -18410,8 +18633,11 @@ 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\(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\. +query II valuesort SELECT ALL + - 49 * COUNT ( * ) + + 6 col1, 29 AS col1 +---- +-43 +29 query I rowsort SELECT ALL ( - 93 ) * 62 AS col2 @@ -18682,8 +18908,11 @@ SELECT ALL COUNT ( * ) * 31 / + 18 + + + 9 + + 19 * - 15 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- sum\(Int64\(\-23\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, - SUM ( - 23 ) AS col0 +---- +1 +23 query I rowsort label-3560 SELECT + ( - + 13 ) * + - CAST ( - 24 AS INTEGER ) + - ( - 50 ) AS col2 @@ -18921,8 +19150,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * + 20 AS col2, 11 AS col2 +---- +11 +20 query I rowsort label-3605 SELECT 40 * 23 / - - 61 @@ -18990,8 +19222,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT + 52 AS col0, - 46 AS col0 +---- +-46 +52 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -19015,8 +19250,12 @@ SELECT 62 * + 33 - - 87 + - 89 * 35 # Datafusion - Expected - 88 # Datafusion - Expected - NULL # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- Int64\(\-88\)\)\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + MIN ( - - 88 ) AS col1, + CAST ( NULL AS INTEGER ) + - + 87, 88 AS col1 +---- +88 +88 +NULL query I rowsort label-3621 SELECT + COUNT ( DISTINCT - 0 ) @@ -19229,8 +19468,11 @@ SELECT + COALESCE ( COUNT ( * ), SUM ( ALL - + 78 ), 58 * 99 + - COUNT ( + + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4520 # Datafusion - Expected - -175 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \+ \(\- Int64\(51\)\) \* Int64\(\-89\) AS col2" at position 0 and "Int64\(\-95\) \+ Int64\(\-80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 19 + - + 51 * - 89 AS col2, - 95 + - 80 AS col2 +---- +-175 +4520 query I rowsort SELECT + ( 18 ) @@ -19926,8 +20168,11 @@ SELECT ALL 74 AS col2, - 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ Int64\(11\) AS col2" at position 0 and "Int64\(9\) \+ \(\- Int64\(96\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 61 + + + 11 AS col2, 9 + - + 96 AS col2 +---- +-87 +72 query I rowsort label-3793 SELECT ALL CASE + 23 WHEN + - COUNT ( * ) * - CAST ( + + CASE + 85 WHEN - 36 THEN + 76 * - 1 - - + 92 ELSE + + 61 * + COUNT ( * ) * - NULLIF ( + 29, - - AVG ( 61 ) * - - COUNT ( * ) ) + - 84 + - 72 * 66 END AS FLOAT8 ) / + - 58 THEN NULL WHEN + + 31 THEN - - 26 END AS col0 @@ -20014,8 +20259,11 @@ SELECT - 73 / - 14 + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(CAST\(Int64\(\-51\) AS Int32\), Int64\(65\)\) \* Int64\(\-66\) \- CAST\(NULL AS Int32\) \* \(\- Int64\(82\)\) AS col1" at position 0 and "CAST\(Int64\(\-57\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL NULLIF ( CAST ( - 51 AS INTEGER ), 65 ) * - 66 - + + CAST ( NULL AS INTEGER ) * - + 82 AS col1, + CAST ( + - 57 AS INTEGER ) AS col1 +---- +-57 +NULL query I rowsort SELECT + ( - + 55 ) @@ -20206,8 +20454,11 @@ SELECT DISTINCT - + ( - 55 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 78 AS col1, 87 AS col1 +---- +-78 +87 query II rowsort label-3846 SELECT + COUNT ( * ), - 26 * - + 85 AS col2 @@ -20778,8 +21029,11 @@ SELECT DISTINCT + 45 + - COUNT ( * ) + 68 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 62 + + COUNT ( * ) AS col1, 71 col1 +---- +63 +71 query I rowsort SELECT ALL + + 59 + + - 95 col0 @@ -20804,8 +21058,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \- Int64\(\-64\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 77 - - 64 AS col1, CAST ( NULL AS INTEGER ) / + 54 AS col1 +---- +-13 +NULL query I rowsort label-3962 SELECT 68 + + COUNT ( DISTINCT - - 0 ) * + - 92 * - 78 AS col2 @@ -20882,8 +21139,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(45\) \+ Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 col0, 32 + + ( - 89 ) + + 18 + - COUNT ( * ) * + 45 + 88 AS col0 +---- +4 +65 query II rowsort label-3976 SELECT 37, - COUNT ( * ) col2 @@ -21859,8 +22119,11 @@ SELECT ALL + + 74 * - 98 * - 34 + 27 / + 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT DISTINCT + 31 AS col0, 85 AS col0 +---- +31 +85 query I rowsort SELECT DISTINCT + - 2 AS col0 @@ -22166,8 +22429,11 @@ SELECT DISTINCT - 96 * + - 59 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col2" at position 0 and "Int64\(70\) \+ Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 59 AS col2, 70 + 75 AS col2 +---- +-59 +145 query I rowsort label-4225 SELECT 86 * + CASE 90 WHEN + 69 THEN NULL WHEN - + 52 + COUNT ( 54 + 57 * + 20 ) THEN - 12 / 67 ELSE NULLIF ( - COUNT ( ALL + 53 ), CASE 1 WHEN + ( + 72 ) THEN COALESCE ( 93, + 90 + - 83 * 58 ) ELSE NULL END ) END @@ -22187,8 +22453,11 @@ SELECT COALESCE ( - 29, - - 43 + + 6, 8 * MIN ( DISTINCT - CAST ( NULL AS INTEGE # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 49 AS col2, 83 AS col2 +---- +49 +83 query I rowsort label-4229 SELECT ( ( + COUNT ( * ) ) ) + + 92 @@ -22315,8 +22584,11 @@ SELECT ALL - - COUNT ( 16 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col0" at position 0 and "Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 89 AS col0, 47 AS col0 +---- +47 +89 query I rowsort label-4253 SELECT ALL - CAST ( + 96 AS INTEGER ) @@ -22609,8 +22881,11 @@ SELECT ALL ( 59 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 113 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \+ Int64\(24\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 89 + + + 24 AS col1, 67 AS col1 +---- +113 +67 query I rowsort SELECT - 68 * + 96 @@ -23669,8 +23944,12 @@ SELECT ALL + 90 - + + 61 * - - COUNT ( 31 ) AS col1 # Datafusion - Expected - 93 # Datafusion - Expected - -697 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(93\)\) AS col0" at position 0 and "Int64\(3\) \* count\(Int64\(8\)\) \+ \(\- Int64\(10\)\) \* Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL MIN ( ALL + 93 ) AS col0, + 3 * + COUNT ( ALL 8 ) + - ( + 10 ) * 70 AS col0, - + 37 +---- +-37 +-697 +93 query I rowsort SELECT 97 + - 19 + + 1 AS col0 @@ -23791,8 +24070,11 @@ 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\(1\)\) AS count\(\*\)\) \- Int64\(\-53\) END \* Int64\(\-19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 54 + + ( - 8 ) AS col2, CASE + SUM ( DISTINCT 20 ) WHEN + 1 + 30 THEN - 44 + + 6 - - 98 + - COUNT ( * ) - - 53 END * - 19 AS col2 +---- +-62 +NULL query I rowsort label-4532 SELECT + COUNT ( DISTINCT - + ( + 65 ) ) col0 @@ -23863,8 +24145,12 @@ 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\(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\. +query III valuesort SELECT - + COUNT ( * ) col0, + 49 - + 6 + - 44 + 1 * + - 10, - + 61 AS col0 +---- +-1 +-11 +-61 query I rowsort label-4545 SELECT - + ( + 54 ) + + + COALESCE ( - 51, - COALESCE ( + 16, - + COUNT ( * ) - - 49 + + ( - - 40 ) ) * + + 91 - 16 + + - COALESCE ( + COUNT ( * ), + COUNT ( * ) ) + + 98 * 52 ) + + 27 @@ -24028,8 +24314,11 @@ 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\(1\)\) AS count\(\*\)\) \+ \(\- \(\- Int64\(14\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 64 * - + ( - 26 ) * - + 9 * - + 16 AS col1, - COUNT ( * ) + - ( - + 14 ) AS col1 +---- +13 +239616 query I rowsort label-4576 SELECT ALL 33 * - + CAST ( NULL AS INTEGER ) @@ -24416,8 +24705,12 @@ SELECT + 19 * - 44 AS col1 # Datafusion - Expected - 79 # Datafusion - Expected - -66 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-79\)\) AS col2" at position 0 and "nullif\(Int64\(\-85\), Int64\(\-84\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(57\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-28\) \* Int64\(\-35\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-16\) \+ Int64\(42\) \* CAST\(NULL AS Int32\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-66 +-85 +79 query I rowsort label-4651 SELECT DISTINCT COUNT ( * ) * + - COUNT ( ALL - 85 ) col1 @@ -24544,8 +24837,11 @@ SELECT ALL + 18 - SUM ( ALL + 56 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 147 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \+ Int64\(96\) AS col0" at position 0 and "Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 51 + + 96 AS col0, - 65 AS col0 +---- +-65 +147 query I rowsort label-4675 SELECT ALL SUM ( ALL + 15 ) * 27 @@ -24653,8 +24949,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(\-96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CASE + ( + 84 ) WHEN - + 18 THEN 61 + + 69 WHEN + + 43 * - 65 THEN NULL END AS col1, COUNT ( * ) - - 96 AS col1 +---- +97 +NULL query I rowsort label-4695 SELECT SUM ( - - 23 ) * - 71 + + - ( + 41 ) * 2 * - 77 AS col0 @@ -25068,8 +25367,11 @@ SELECT - + NULLIF ( 92, CAST ( - - 48 AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 1658 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(\-47\) \- Int64\(\-85\) \+ Int64\(30\) \* Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 16 AS col0, - 47 - + - 85 + + 30 * + 54 col0 +---- +16 +1658 query I rowsort label-4774 SELECT 86 * - + COUNT ( * ) * ( + MAX ( + 76 ) ) @@ -25109,8 +25411,11 @@ SELECT ALL + 18 * 36 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 20 AS col2, 60 col2 +---- +20 +60 query I rowsort label-4782 SELECT - CAST ( + 24 AS INTEGER ) / ( + 30 ) + - COALESCE ( + 21, - - ( - NULLIF ( - 2, - 71 + + 70 ) ) + - CAST ( - 3 AS INTEGER ) * + 44 + 32 ) + - + CASE + 83 WHEN - - CASE - SUM ( + + 86 ) WHEN 16 THEN NULL WHEN - 15 THEN - 7 / + 19 ELSE - AVG ( - 91 ) END THEN 8 END AS col2 @@ -26471,8 +26776,11 @@ SELECT 77, - MAX ( - + 62 ) / - + 98 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "Int64\(\-29\) \+ Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 AS col2, - 29 + 79 AS col2 +---- +50 +6 query II rowsort label-5044 SELECT ALL + 68 col2, COUNT ( + 89 ) / + + 90 col1 @@ -26656,8 +26964,11 @@ SELECT ALL + COALESCE ( - COUNT ( + 13 ), - ( + 63 ) * 2 + + NULLIF ( 40, + 63 - # Datafusion - Datafusion expected results: # Datafusion - Expected - 376 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ Int64\(72\) \* \(\- Int64\(\-4\)\) AS col0" at position 0 and "Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 88 + + + 72 * - - 4 col0, + ( - 90 ) AS col0 +---- +-90 +376 query II rowsort label-5079 SELECT + COUNT ( * ) / + 58 * + COUNT ( * ), + 68 AS col2 @@ -26684,8 +26995,11 @@ SELECT + ( 89 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -217056 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \+ CASE Int64\(67\) WHEN Int64\(68\) THEN Int64\(\-42\) \+ Int64\(22\) ELSE Int64\(\-64\) \* Int64\(55\) / Int64\(97\) \* \(\- CAST\(NULL AS Float64\)\) END AS col2" at position 0 and "Int64\(68\) \* Int64\(42\) \* Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + 28 + CASE + 67 WHEN 68 THEN - 42 + 22 ELSE - 64 * + 55 / 97 * - CAST ( NULL AS FLOAT8 ) END col2, 68 * + 42 * - 76 AS col2 +---- +-217056 +NULL query I rowsort SELECT 53 * + 14 + 24 + - + 30 @@ -26848,8 +27162,11 @@ SELECT 58, - 14 * - COALESCE ( + - 45, 56 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - -67500 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(21\)\)\) AS col0" at position 0 and "\(\- nullif\(Int64\(45\), CAST\(NULL AS Int32\)\)\) \* Int64\(\-60\) \* Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - SUM ( + 21 ) col0, - NULLIF ( + ( 45 ), CAST ( NULL AS INTEGER ) ) * - 60 * - 25 AS col0 +---- +-21 +-67500 query I rowsort SELECT ALL + 93 + + 69 + - 14 AS col0 @@ -27152,8 +27469,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * 79 AS col2, 61 * - + SUM ( - 95 ) col2 +---- +5795 +79 query I rowsort label-5174 SELECT ALL 19 + + MIN ( + 64 ) AS col1 @@ -27263,8 +27583,11 @@ 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\(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\. +query II valuesort SELECT + 8 AS col0, + CASE - + 86 WHEN ( - COUNT ( * ) ) * - ( ( + - 36 ) ) * - ( - 44 ) THEN + 52 END + - + 55 AS col0 +---- +8 +NULL query I rowsort label-5195 SELECT + 33 * SUM ( + 22 ) col2 @@ -27609,8 +27932,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 971 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col1" at position 0 and "max\(DISTINCT Int64\(19\)\) \* Int64\(45\) \+ Int64\(26\) \+ Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 14 AS col1, MAX ( DISTINCT + 19 ) * 45 + + 26 + 90 AS col1 +---- +14 +971 query I rowsort label-5262 SELECT + NULLIF ( COALESCE ( + ( 8 ), - 31 * + - NULLIF ( 90, + 40 / + COALESCE ( - COUNT ( * ), 18 ) * 50 ) + COUNT ( * ) / 52 ), 43 ) AS col2 @@ -27752,8 +28078,12 @@ NULL # Datafusion - Expected - 18 # Datafusion - Expected - 6 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col1" at position 1 and "Int64\(\-63\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 18, 6 AS col1, + - 63 AS col1 +---- +-63 +18 +6 query I rowsort label-5289 SELECT ALL - COUNT ( * ) + MAX ( - 43 ) + + + COUNT ( * ) - 29 + 36 AS col2 @@ -27825,8 +28155,11 @@ SELECT ALL + + 85 * + - 12 + + 43 + + + 55 / COALESCE ( - 61, 56 + - MIN ( - - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-39\)\) / Int64\(81\) \+ Int64\(31\) \+ \(\- Int64\(\-22\)\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 39 / + 81 + + 31 + - - 22 col1, 74 AS col1 +---- +53 +74 query I rowsort label-5302 SELECT + - MIN ( DISTINCT + 35 ) @@ -28678,8 +29011,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\)" at position 0 and "Int64\(80\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80, + 80 +---- +80 +80 query I rowsort label-5464 SELECT ALL - - COUNT ( ALL 76 ) * + 8 @@ -28901,8 +29237,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 64 * - + 57 AS col2, - 20 / + ( - 25 ) * ( - NULLIF ( + - 43, - 34 ) ) + 35 + - COUNT ( * ) AS col2 +---- +-3648 +34 query I rowsort label-5506 SELECT ALL - ( + 83 ) * - 96 * + NULLIF ( + - 38, + - 71 / - + 47 ) * ( - COUNT ( ALL - 13 ) ) AS col2 @@ -29399,8 +29738,11 @@ SELECT CAST ( - ( 15 ) AS INTEGER ) * + 86 * - + 96 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(87\) \+ Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, 87 + 57 AS col2 +---- +1 +144 query II rowsort SELECT ALL - 11, - 12 * - 47 col0 @@ -29495,8 +29837,11 @@ SELECT 38 * + NULLIF ( 35, 42 ) AS col1, 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11754 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(\-8\) WHEN Int64\(38\) \- Int64\(35\) THEN NULL ELSE Int64\(\-55\) \+ Int64\(\-80\) END\) \* Int64\(\-86\) \+ Int64\(\-30\) \+ Int64\(\-63\) \+ Int64\(\-72\) \+ Int64\(\-28\) \+ Int64\(49\) AS col2" at position 0 and "Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CASE - 8 WHEN + + 38 - 35 THEN NULL ELSE - 55 + - 80 END * + - 86 + - 30 + - 63 + + - 72 + - 28 + 49 AS col2, + 39 col2 +---- +-11754 +39 query I rowsort label-5619 SELECT DISTINCT - SUM ( ALL - 90 ) * - 18 + + 23 * - 17 AS col2 @@ -30798,8 +31143,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - 2619 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col2" at position 0 and "Int64\(97\) \* Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 36 AS col2, + 97 * 27 AS col2 +---- +-36 +2619 query I rowsort SELECT ALL - 6 + - NULLIF ( - 97, - CASE 52 WHEN 2 THEN 20 ELSE NULL END * 98 ) col0 @@ -30932,8 +31280,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(41\) \+ Int64\(88\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 37 * + 22 AS col1, NULLIF ( - 5, - 70 ) / + ( + COUNT ( * ) * + 41 + 88 ) AS col1 +---- +0 +814 query I rowsort label-5899 SELECT + - 68 + + 32 + + 79 + CAST ( + ( - 74 ) AS INTEGER ) + + 31 * NULLIF ( 9, 1 ) * 95 AS col0 @@ -31047,8 +31398,11 @@ SELECT ALL COALESCE ( 27, 91 + 50 / + 82 + 18 * 1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - -1080 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) AS col0" at position 0 and "Int64\(54\) \* Int64\(\-20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 26 AS col0, + 54 * - 20 AS col0 +---- +-1080 +-26 query II rowsort SELECT ALL + 63 - + 66 + 50 AS col2, ( - 8 ) @@ -31211,8 +31565,11 @@ SELECT ALL - ( 13 ) + ( - - SUM ( - 39 ) ) * - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 32 AS col0, + 49 col0 +---- +32 +49 query I rowsort label-5953 SELECT + 17 + + + CAST ( NULL AS INTEGER ) + + 55 AS col2 @@ -31331,8 +31688,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 6 AS col1 +---- +1 +6 query I rowsort label-5975 SELECT ALL + 46 + + + 80 + - ( + COUNT ( * ) ) * - MIN ( ALL 13 ) * - COUNT ( * ) AS col0 @@ -31525,8 +31885,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-85\)\) AS col1" at position 0 and "Int64\(58\) \+ \(\- Int64\(\-26\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - 85 ) col1, 58 + - - 26 AS col1 +---- +84 +85 query I rowsort SELECT ALL - 98 - + NULLIF ( 4, + 88 ) * - + 92 + 97 AS col0 @@ -31633,8 +31996,11 @@ SELECT ALL COALESCE ( 64, - 7 ) * 83 - - ( + 7 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 125911 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "Int64\(83\) \* Int64\(\-41\) \* \(\- nullif\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), max\(\(\- Int64\(\-9\)\)\) \+ CAST\(NULL AS Int32\) \* Int64\(\-65\)\)\) \* Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 AS col1, 83 * + - 41 * - NULLIF ( + ( - - COUNT ( * ) ), + MAX ( - - 9 ) + CAST ( NULL AS INTEGER ) * - 65 ) * 37 AS col1 +---- +125911 +41 query I rowsort SELECT ALL + 97 + 2 @@ -31659,8 +32025,11 @@ SELECT DISTINCT - - COUNT ( * ) * - 90 + - MAX ( DISTINCT + 47 ) + + 52 + 13 - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) / Int64\(39\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(5\) \* \(\- Int64\(\-20\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 / 39 + COUNT ( * ) AS col1, 5 * - - 20 AS col1 +---- +100 +3 query I rowsort label-6038 SELECT ALL - - COUNT ( * ) * 43 * 59 / COUNT ( * ) + - 19 + + + MAX ( + CASE + 45 WHEN + 22 THEN NULL ELSE 7 END ) @@ -32197,8 +32566,11 @@ SELECT ALL 45 AS col2, ( 1 ) * ( + + 32 ) * - 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col1" at position 0 and "Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 5 AS col1, 70 AS col1 +---- +-5 +70 query I rowsort label-6139 SELECT ALL COUNT ( ( - + 83 ) ) @@ -32519,8 +32891,11 @@ SELECT - ( 93 ) * + - ( - ( - 29 ) ) / NULLIF ( + COUNT ( * ), - + 64 * - COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(43\) / count\(Int64\(\-98\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 40 * - COUNT ( * ) - + COUNT ( * ) AS col1, 43 / COUNT ( ALL - 98 ) AS col1 +---- +39 +43 query I rowsort label-6200 SELECT - ( - - 22 ) / + - 32 * + + 90 AS col1 @@ -32581,8 +32956,11 @@ SELECT - - 9 AS col2, + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col2" at position 0 and "\(\- Int64\(91\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 AS col2, ( - + 91 ) AS col2 +---- +-91 +52 query I rowsort label-6211 SELECT ALL - CASE - CAST ( - 25 AS INTEGER ) WHEN - - COUNT ( + + 24 ) THEN 2 END @@ -32984,8 +33362,11 @@ SELECT 84 AS col0, - COUNT ( * ) * + 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 66 col2, + 77 AS col2 +---- +-66 +77 query I rowsort SELECT + 80 - 35 AS col0 @@ -33092,8 +33473,11 @@ SELECT DISTINCT + ( - 1 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 20 AS col2, + 15 AS col2 +---- +15 +20 query I rowsort label-6307 SELECT - MIN ( DISTINCT + - 51 ) @@ -33595,8 +33979,11 @@ SELECT SUM ( DISTINCT 96 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, 68 AS col0 +---- +1 +68 query I rowsort label-6402 SELECT - ( + CASE - 49 WHEN + 18 THEN NULL WHEN 53 THEN NULL ELSE COUNT ( ALL + 81 ) END ) AS col1 @@ -33708,8 +34095,11 @@ SELECT - 48 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -72912 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* Int64\(\-93\) \* Int64\(49\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 16 * - 93 * 49 AS col0, + 28 col0 +---- +-72912 +28 query I rowsort label-6424 SELECT DISTINCT + - ( - COUNT ( * ) ) AS col1 @@ -33760,8 +34150,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 7178 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "Int64\(74\) \* Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 38 AS col0, 74 * + 97 AS col0 +---- +38 +7178 query II rowsort label-6434 SELECT DISTINCT 27 * + COUNT ( * ) - 39 * + 76 AS col2, - 75 * - 27 * + 70 AS col0 @@ -34140,8 +34533,11 @@ SELECT ALL + 67 * - - 80 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT ALL + 37 AS col2, ( - + 50 ) AS col2 +---- +-50 +37 query I rowsort SELECT - 50 + - 84 @@ -34166,8 +34562,11 @@ SELECT MAX ( 60 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(\-39\) / \(\- \(\- avg\(Int64\(\-87\)\)\)\) \+ \(\- CAST\(NULL AS Int32\)\) \+ CAST\(Int64\(\-19\) AS Int32\) \* Int64\(19\) \+ nullif\(CAST\(NULL AS Int32\), \(\- Int64\(\-30\)\) \+ Int64\(43\) \* Int64\(68\) \* \(\- Int64\(\-2\)\)\) \+ \(\- Int64\(53\)\) \* Int64\(86\) \+ min\(Int64\(49\)\) AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - 39 / - - AVG ( - 87 ) + - CAST ( NULL AS INTEGER ) + + CAST ( - 19 AS INTEGER ) * 19 + + + NULLIF ( CAST ( NULL AS INTEGER ), - - 30 + + 43 * + 68 * - - 2 ) + - + 53 * 86 + + MIN ( + 49 ) AS col1, + 3 AS col1 +---- +3 +NULL query II rowsort label-6510 SELECT ALL - 5 + + MAX ( ALL - 73 ), - 92 col0 @@ -34264,8 +34663,11 @@ SELECT - - 80, - NULLIF ( - 53, - AVG ( + - 50 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* \(\- coalesce\(Int64\(3\), Int64\(93\) \* Int64\(\-84\)\)\) AS col1" at position 0 and "sum\(\(\- Int64\(62\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 18 * + - COALESCE ( + 3, + 93 * + ( - 84 ) ) AS col1, + SUM ( ALL - + 62 ) AS col1 +---- +-54 +-62 query I rowsort label-6528 SELECT ALL + CASE - SUM ( + + 26 ) WHEN 70 THEN NULL ELSE - + 54 + - - 62 END @@ -34352,8 +34754,11 @@ 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\(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\. +query II valuesort SELECT ( + 6 ) AS col2, COUNT ( * ) / + 84 * - COUNT ( * ) * - - 65 AS col2 +---- +0 +6 query II rowsort label-6545 SELECT - 68 / - - 36 AS col0, - 53 @@ -34670,8 +35075,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 AS col1, 58 + + 77 - - COUNT ( * ) AS col1 +---- +136 +61 query I rowsort SELECT 1 * 80 AS col2 @@ -34944,8 +35352,11 @@ SELECT - 49 / + - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* Int64\(64\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- Int64\(\-68\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 * + 64 + - COUNT ( * ) * + ( + + CAST ( NULL AS INTEGER ) ) AS col0, ( - - 68 ) AS col0 +---- +68 +NULL query I rowsort SELECT - 25 * + - 25 AS col1 @@ -35081,8 +35492,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -191100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-86\), Int64\(\-89\)\) \* Int64\(0\) \* Int64\(94\) / Int64\(17\) AS col2" at position 0 and "Int64\(70\) \* Int64\(70\) \* Int64\(\-39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( - 86, - 89 ) * - 0 * 94 / + 17 AS col2, 70 * 70 * + - 39 AS col2 +---- +-191100 +0 query I rowsort label-6685 SELECT + 98 * + + 9 * - COALESCE ( - COUNT ( * ), + + 85, + 97 * - + 10 ) AS col0 @@ -35175,8 +35589,11 @@ SELECT ALL + 0 AS col2, COUNT ( * ) - - 24 + + + 15 + + + 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 48 AS col2, + COUNT ( * ) AS col2 +---- +1 +48 query II rowsort label-6703 SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) * + - 1, 52 AS col0 @@ -35240,8 +35657,11 @@ SELECT ALL - - 11, - 99 * + 30 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "Int64\(80\) \+ Int64\(\-31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 71 AS col1, 80 + - 31 AS col1 +---- +49 +71 query I rowsort SELECT ALL - 1 + + + 24 * - + 69 * 42 @@ -35287,8 +35707,11 @@ SELECT ALL + + ( - - 91 ) * - 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 16 AS col2, 38 AS col2 +---- +16 +38 query I rowsort label-6724 SELECT MAX ( ALL + 42 ) - - 69 AS col1 @@ -36001,8 +36424,11 @@ SELECT ALL - SUM ( + 47 ) * - COUNT ( + NULLIF ( - 17, + 3 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 11231 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(89\)\)\)\) AS col2" at position 0 and "Int64\(6\) \* Int64\(93\) \* Int64\(20\) \+ Int64\(70\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - MAX ( + + 89 ) AS col2, + 6 * 93 * + ( + + 20 ) + 70 + + COUNT ( * ) AS col2 +---- +11231 +89 query I rowsort SELECT ( - 81 ) * - 51 @@ -36037,8 +36463,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "Int64\(90\) \+ Int64\(60\) \+ min\(Int64\(\-98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 AS col0, 90 + + + ( + 60 ) + MIN ( - 98 ) AS col0 +---- +52 +59 query II rowsort SELECT 72, + 98 col0 @@ -36054,8 +36483,11 @@ SELECT ALL 55 + + COUNT ( * ) + - 34 - CASE + + 96 WHEN + 39 THEN NULL WHEN 39 T # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 AS col0, + COUNT ( * ) AS col0 +---- +1 +45 query I rowsort label-6871 SELECT ALL 31 + NULLIF ( 14, + COUNT ( ALL 55 ) + + + CAST ( NULL AS INTEGER ) ) col1 @@ -36672,8 +37104,11 @@ SELECT + - ( - - 3 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 91 AS col2, 20 AS col2 +---- +20 +91 query III rowsort label-6990 SELECT DISTINCT - 79 AS col1, 49 AS col2, - - CAST ( NULL AS INTEGER ) AS col0 @@ -36810,8 +37245,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 95 + 18 AS col0, + COUNT ( * ) * + - 45 AS col0 +---- +-45 +113 query I rowsort label-7015 SELECT ALL + SUM ( DISTINCT ( - - ( + 88 ) ) ) + - 71 + + + 33 AS col0 @@ -37197,8 +37635,11 @@ SELECT + 8 * - COUNT ( - 17 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 131 # Datafusion - Expected - 4860 -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\(81\) \* \(\- \(\- Int64\(60\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 + 90 AS col1, + 81 * - - ( + 60 ) AS col1 +---- +131 +4860 query I rowsort label-7088 SELECT SUM ( DISTINCT + 98 ) + - + 88 - + + COUNT ( * ) + + 78 / - COUNT ( * ) @@ -37254,8 +37695,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 col1, SUM ( - 61 ) + - 13 - + 27 - + 19 * + 61 * + NULLIF ( + 22, - COUNT ( * ) ) AS col1 +---- +-25599 +62 query I rowsort SELECT ALL 55 + + 90 AS col0 @@ -37300,8 +37744,11 @@ SELECT + 65 / 75 * + COUNT ( * ) + + - COUNT ( ALL 17 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \+ \(\- CAST\(Int64\(\-41\) AS Int32\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 + - + CAST ( + - 41 AS INTEGER ) AS col1, - COUNT ( * ) col1 +---- +-1 +48 query I rowsort label-7107 SELECT ALL + ( ( - 94 ) ) * + CAST ( NULL AS INTEGER ) * - MAX ( - 76 ) AS col1 @@ -37473,8 +37920,12 @@ SELECT ALL 33 AS col2, + COUNT ( * ) # Datafusion - Expected - 0 # Datafusion - Expected - 62 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) / \(\- nullif\(nullif\(Int64\(87\), Int64\(\-18\) \+ Int64\(\-77\) \+ Int64\(\-50\)\), Int64\(15\) \- Int64\(98\) \+ Int64\(\-72\) \+ Int64\(\-29\) \* Int64\(\-92\)\)\) AS col1" at position 0 and "min\(Int64\(62\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 77 / - NULLIF ( + NULLIF ( + 87, + - 18 + - 77 + - 50 ), + 15 - + 98 + - 72 + - 29 * - 92 ) AS col1, + MIN ( 62 ) AS col1, - COUNT ( * ) +---- +-1 +0 +62 query I rowsort SELECT ALL 16 * - 47 AS col0 @@ -37532,8 +37983,11 @@ SELECT NULLIF ( COALESCE ( ( + + 61 ), + 68, + 28 + - 82 ), - + 65 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 91 AS col1, 81 AS col1 +---- +-91 +81 query I rowsort SELECT ALL 54 * + - 69 + COALESCE ( ( + 76 ), - 20, + 30 * + 84 + + 96 ) * + 22 AS col0 @@ -38019,8 +38473,11 @@ 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\(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\. +query II valuesort SELECT - 11 * + 73 + - - COUNT ( * ) + + 61 AS col1, 97 AS col1 +---- +-741 +97 query III rowsort label-7242 SELECT ALL ( MAX ( DISTINCT + - 75 ) ) + 7 + COUNT ( * ), 14 + + + CAST ( NULL AS INTEGER ) AS col1, - 73 AS col2 @@ -38094,8 +38551,11 @@ SELECT + 48 + - 9 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(4\) AS col2" at position 0 and "CAST\(Int64\(\-63\) AS Int32\) \+ Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) - + - COUNT ( * ) * - COUNT ( * ) - 4 AS col2, CAST ( + - 63 AS INTEGER ) + + 26 AS col2 +---- +-37 +-4 query I rowsort SELECT ALL NULLIF ( + - 19, 88 ) @@ -38188,8 +38648,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\)" at position 0 and "Int64\(82\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 82, + 82 +---- +82 +82 query I rowsort SELECT - 55 * 80 @@ -38280,8 +38743,11 @@ SELECT - + 99 AS col0, + 37 + - 78 AS col1, - - 90 + 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48239066 # Datafusion - Expected - 5832 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \+ Int64\(91\) \* Int64\(\-93\) \* Int64\(76\) \* Int64\(75\) AS col2" at position 0 and "Int64\(\-72\) \* \(\- Int64\(81\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 34 + 91 * - 93 * + + 76 * 75 AS col2, - 72 * - + 81 AS col2 +---- +-48239066 +5832 query I rowsort SELECT ALL 40 + 62 + + - COALESCE ( + 41, + 34, + + 71 ) AS col2 @@ -38335,8 +38801,11 @@ SELECT + + 45 + - + 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(48\) AS col0" at position 0 and "Int64\(99\) \* Int64\(\-50\) \* Int64\(\-84\) \* CAST\(NULL AS Int32\) \- Int64\(\-50\) \+ Int64\(75\) \+ Int64\(\-75\) \* Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 40 - COUNT ( * ) * + 48 AS col0, 99 * - 50 * - 84 * + CAST ( NULL AS INTEGER ) - - 50 + 75 + - 75 * 12 AS col0 +---- +-88 +NULL query I rowsort SELECT + 60 * 85 @@ -38399,8 +38868,11 @@ SELECT + COALESCE ( - + 73, + 39 * 24, + + 33 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1708 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) / Int64\(\-77\) \+ Int64\(61\) \* Int64\(28\) AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 / - 77 + 61 * 28 col1, 52 AS col1 +---- +1708 +52 query I rowsort SELECT ( - 47 ) AS col2 @@ -38829,8 +39301,11 @@ SELECT 68 + 81 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-9\)\) AS col0" at position 0 and "Int64\(\-21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 9 AS col0, - 21 AS col0 +---- +-21 +9 query I rowsort SELECT 99 * - 52 @@ -38845,8 +39320,11 @@ SELECT DISTINCT - 45 + + - 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 0 and "Int64\(\-78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 96 AS col0, - 78 AS col0 +---- +-78 +96 query I rowsort SELECT ALL 36 + 85 @@ -39053,8 +39531,11 @@ SELECT + 96 + + 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, - 37 AS col2 +---- +-37 +1 query I rowsort SELECT - ( - 44 ) AS col0 @@ -39636,8 +40117,11 @@ SELECT + ( 56 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 42 AS col0, + ( + 38 ) AS col0 +---- +38 +42 query I rowsort label-7550 SELECT ALL CAST ( NULL AS INTEGER ) * + ( 65 ) @@ -39829,8 +40313,11 @@ SELECT DISTINCT - 15 / - + 16 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(67\) AS Int32\) AS col0" at position 0 and "Int64\(\-45\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(93\) \* Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( 67 AS INTEGER ) col0, - 45 + - CAST ( NULL AS INTEGER ) + 93 * 53 AS col0 +---- +67 +NULL query I rowsort label-7587 SELECT DISTINCT MIN ( DISTINCT 91 ) * - COUNT ( * ) + COUNT ( * ) * 0 + - 12 @@ -40295,8 +40782,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1248 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(32\) \* Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + CAST ( NULL AS INTEGER ) col0, 32 * + 39 AS col0 +---- +1248 +NULL query II rowsort label-7677 SELECT ALL + 91 AS col1, 9 * 3 / + - COUNT ( * ) + - + 64 @@ -40595,8 +41085,11 @@ SELECT + COUNT ( * ) / + 66 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col1" at position 0 and "\(\- nullif\(Int64\(84\), Int64\(4\) \* Int64\(51\) \* Int64\(\-8\) \- nullif\(Int64\(\-50\), Int64\(\-34\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 AS col1, - NULLIF ( 84, 4 * + 51 * - 8 - NULLIF ( + - 50, - 34 ) ) AS col1 +---- +-84 +85 query I rowsort label-7734 SELECT ALL 13 * + COUNT ( * ) AS col2 @@ -40611,8 +41104,11 @@ SELECT 3 * + 49 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col2" at position 0 and "Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 AS col2, - 76 col2 +---- +-76 +98 query I rowsort label-7737 SELECT 15 * - - CAST ( - 33 AS INTEGER ) AS col1 @@ -40632,8 +41128,11 @@ SELECT 93 * - 62 * - MIN ( - - 55 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col2" at position 0 and "Int64\(1\) \+ Int64\(\-59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 AS col2, + 1 + - 59 AS col2 +---- +-58 +79 query I rowsort label-7741 SELECT ALL - MIN ( + 59 ) @@ -40968,8 +41467,11 @@ SELECT ALL COUNT ( * ), - 42 + - - 54 / + + NULLIF ( - 30, 92 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 167 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(88\) \- Int64\(\-80\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 2 + + + COUNT ( * ) + 88 - - 80 * COUNT ( * ) AS col0, 89 AS col0 +---- +167 +89 query I rowsort SELECT DISTINCT - 63 * - + 57 col2 @@ -41106,8 +41608,11 @@ SELECT + SUM ( 17 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col1" at position 0 and "Int64\(\-14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 60 AS col1, - 14 AS col1 +---- +-14 +-60 query I rowsort label-7830 SELECT + 81 + + COUNT ( * ) @@ -42041,8 +42546,11 @@ 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\(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\. +query II valuesort SELECT - 25 * + 3 + + + 66 + + + 44 * + 60 * - 89 + - - 55 + + COUNT ( * ) * 45 AS col0, + 35 AS col0 +---- +-234869 +35 query I rowsort label-8009 SELECT 34 * 21 * - COUNT ( * ) AS col2 @@ -42067,8 +42575,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) END END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +156 +NULL query II rowsort label-8014 SELECT CAST ( NULL AS INTEGER ) AS col0, - COALESCE ( - COALESCE ( - - 86, NULLIF ( + - 65, - 11 + + + 34 ) * - - 63, ( - 32 ) ), - COUNT ( + 27 ) + + 3 * + + 37 ) AS col1 @@ -42101,8 +42612,11 @@ SELECT ALL + COUNT ( * ) + + + 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 82 col2, 12 AS col2 +---- +12 +82 query I rowsort SELECT DISTINCT + 4 - 74 - + 42 @@ -42877,8 +43391,11 @@ SELECT COUNT ( * ) - - 21 * + 19 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col0" at position 0 and "Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 84 AS col0, 16 AS col0 +---- +-84 +16 query I rowsort SELECT DISTINCT + 97 + - - 14 @@ -42931,8 +43448,11 @@ SELECT ALL - 79 - - 37 # 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 col1" at position 0 and "Int64\(86\) \+ CAST\(NULL AS Float64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 52 col1, + 86 + CAST ( NULL AS FLOAT8 ) AS col1 +---- +52 +NULL query I rowsort label-8178 SELECT ALL + 16 - + - COUNT ( * ) * ( - + 45 ) AS col0 @@ -43069,8 +43589,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col1" at position 0 and "CAST\(Int64\(72\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 12 AS col1, CAST ( + + 72 AS INTEGER ) AS col1 +---- +12 +72 query II rowsort SELECT ALL + - 24 * + - 36 + 4 + 70 col1, 17 + - 43 * + 26 * - + ( - 73 ) + 3 + + 7 col0 @@ -43290,8 +43813,11 @@ SELECT DISTINCT 84 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "\(\- max\(Int64\(26\)\)\) \- CAST\(Int64\(6\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 80 AS col1, - MAX ( 26 ) - CAST ( 6 AS INTEGER ) col1 +---- +-32 +80 query II rowsort SELECT ALL 33, 1 col1 @@ -43468,8 +43994,11 @@ SELECT DISTINCT + 47 - + 83 AS col0, - MAX ( + - ( ( - - 35 ) ) ) * - SUM ( + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) / Int64\(\-1\) AS col0" at position 0 and "\(\- min\(DISTINCT Int64\(57\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 38 / - 1 AS col0, - MIN ( DISTINCT + 57 ) AS col0 +---- +-38 +-57 query I rowsort SELECT ALL + 47 - + - COALESCE ( - 4, - 21 ) col0 @@ -43686,8 +44215,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ), COUNT ( * ) +---- +1 +1 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -43771,8 +44303,12 @@ SELECT - MIN ( ALL - ( - - 65 ) ) + COUNT ( DISTINCT 76 ) - COUNT ( * ) # Datafusion - Expected - 12 # Datafusion - Expected - -94 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* Int64\(7\) \+ Int64\(68\) \+ Int64\(\-12\) \* Int64\(42\) AS col0" at position 0 and "Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 64 * + 7 + 68 + - 12 * + + 42 AS col0, - 94 AS col0, 55 col0 +---- +-94 +12 +55 query II rowsort SELECT DISTINCT - 66, + 85 AS col2 @@ -43895,8 +44431,12 @@ 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\(1\)\) AS count\(\*\) \+ \(\- Int64\(95\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 85 * + 15, - 45 * + 62 AS col1, - 10 * + - 1 + + COUNT ( * ) + - + 95 AS col1 +---- +-1275 +-2790 +-84 query I rowsort SELECT ALL + 19 * - 86 + + - 64 col2 @@ -44394,8 +44934,11 @@ SELECT ALL MIN ( DISTINCT + 87 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 119 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ \(\- Int64\(\-59\)\) AS col1" at position 0 and "Int64\(13\) \* CAST\(NULL AS Int32\) \* \(\- coalesce\(Int64\(99\), Int64\(92\)\)\) \* Int64\(63\) \* Int64\(67\) \+ Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 60 + - - 59 AS col1, + 13 * CAST ( NULL AS INTEGER ) * - ( + COALESCE ( 99, 92 ) ) * + 63 * + 67 + 49 AS col1 +---- +119 +NULL query I rowsort label-8450 SELECT DISTINCT + 53 / - ( - + 44 ) @@ -45007,8 +45550,11 @@ SELECT - SUM ( - 17 ), - NULLIF ( - 59, + + ( + 20 ) * + SUM ( DISTINCT - 44 ) * # 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\(\-17\) / Int64\(99\) AS col1" at position 0 and "Int64\(2\) \+ \(\- Int64\(\-85\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 17 / 99 AS col1, + 2 + - - 85 col1 +---- +0 +87 query I rowsort SELECT - 93 * + 94 AS col0 @@ -45057,8 +45603,12 @@ SELECT ALL - ( + ( + + 69 ) ) * + 16 AS col2 # Datafusion - Expected - 230 # Datafusion - Expected - 51 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* \(\- Int64\(\-10\)\) AS col0" at position 0 and "Int64\(\-78\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 23 * - - 10 AS col0, - COUNT ( * ) + + 41 + - 65 + + - 76 * + - COUNT ( DISTINCT - 32 ), - 78 AS col0 +---- +-78 +230 +51 query II rowsort label-8576 SELECT + 71 * + 77 / - + CAST ( NULL AS INTEGER ) * + + 72 * 85 + 46 * + 57 AS col2, - 84 AS col1 @@ -45656,8 +46206,12 @@ SELECT + - 47 * + - COUNT ( * ) * + - 74 AS col1 # Datafusion - Expected - -51 # Datafusion - Expected - 53 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-60\)\) \* \(\- Int64\(\-53\)\) AS col0" at position 1 and "Int64\(8\) \+ Int64\(\-18\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 51, COUNT ( ALL + - 60 ) * - - 53 AS col0, + ( 8 ) + - 18 AS col0 +---- +-10 +-51 +53 query I rowsort SELECT ALL + 67 + 38 @@ -45805,8 +46359,11 @@ SELECT - 65 / + 77 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(\-72\)\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( DISTINCT - 72 ) AS col2, 48 AS col2 +---- +-72 +48 query I rowsort label-8720 SELECT - MIN ( - 37 ) AS col0 @@ -45843,8 +46400,11 @@ SELECT ALL 12 * ( + MAX ( 88 ) ) + - NULLIF ( - + 62, + MIN ( + 50 ) ) AS col0, # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(67\)\) \+ Int64\(19\) AS col0" at position 0 and "coalesce\(Int64\(11\), Int64\(99\)\) \* \(\- Int64\(\-10\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 67 + + 19 col0, COALESCE ( 11, 99 ) * - - 10 col0 +---- +-48 +110 query I rowsort SELECT ALL + + COALESCE ( + 43, - 17 ) + COALESCE ( - - 29, 62 ) * + + 2 @@ -45901,8 +46461,11 @@ SELECT DISTINCT - COUNT ( * ) - + 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 27 AS col2, 86 col2 +---- +-27 +86 query I rowsort label-8738 SELECT 63 * - + COUNT ( - 31 ) AS col1 @@ -46593,8 +47156,11 @@ SELECT - 79 * - COUNT ( * ), SUM ( DISTINCT + + ( - 77 ) ) / + COUNT ( * ) + - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 128 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ Int64\(96\) AS col1" at position 0 and "Int64\(91\) \* Int64\(58\) / Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 + + 96 AS col1, 91 * 58 / 91 AS col1 +---- +128 +58 query I rowsort SELECT DISTINCT - - ( 28 ) AS col2 @@ -46786,8 +47352,11 @@ SELECT - + 8 * 18 + + CAST ( - - 76 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 0 and "nullif\(Int64\(96\), Int64\(\-5\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 13 AS col0, NULLIF ( + 96, - 5 ) AS col0 +---- +13 +96 query I rowsort SELECT ALL 51 * - 61 @@ -46832,8 +47401,11 @@ SELECT + + 7 * 4 + + - 82 + 61 * + - 83 * - + 58 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 7 AS col2, + 36 AS col2 +---- +36 +7 query I rowsort label-8916 SELECT - 66 / + - 3 AS col0 @@ -47016,8 +47588,11 @@ 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\(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\. +query II valuesort SELECT + 95 + - + COUNT ( * ) + 32 AS col2, 67 * - - 18 AS col2 +---- +1206 +126 query I rowsort label-8951 SELECT ALL MIN ( + ( + 11 ) ) AS col2 @@ -47216,8 +47791,11 @@ SELECT ALL - 55 col0, 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -4620 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "Int64\(66\) \* \(\- Int64\(70\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 col1, 66 * - + 70 col1 +---- +-4620 +41 query II rowsort SELECT + 27, 83 col1 @@ -47533,8 +48111,11 @@ SELECT + - 70 + 26 + + 89 + 62 * 55 + - - 55 # 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\(60\)\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( 60 ) AS col1, 62 AS col1 +---- +1 +62 query I rowsort label-9049 SELECT + + CASE - + 65 WHEN + 93 + + + COUNT ( * ) * 29 + - + 13 + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * 72 * + 99 THEN + 81 + 71 END + - - 18 + COUNT ( * ) / - 86 AS col0 @@ -48939,15 +49520,22 @@ SELECT ALL - 79 + + + 33 * + + 67 # 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 col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 40 AS col2, + 36 AS col2 +---- +-40 +36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 64 # Datafusion - Expected - 24921 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col1" at position 0 and "Int64\(27\) \* Int64\(71\) \* Int64\(13\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 37 col1, 64 / + COUNT ( * ) AS col0, + 27 * + 71 * 13 AS col1 +---- +24921 +37 +64 query I rowsort label-9325 SELECT - COUNT ( + ( + + 99 ) ) @@ -48995,8 +49583,11 @@ SELECT ALL + 58 * - 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - -111 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "Int64\(\-70\) \+ Int64\(\-41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 AS col1, - 70 + + - 41 AS col1 +---- +-111 +76 query I rowsort label-9334 SELECT DISTINCT - + 75 * + COUNT ( * ) col2 @@ -49165,8 +49756,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT 90 col2, - 38 AS col2 +---- +-38 +90 query II rowsort SELECT 92, + 12 AS col2 @@ -49250,8 +49844,11 @@ SELECT - 46 * - 16 / COUNT ( * ) + - COUNT ( * ) + - + 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 134 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "Int64\(76\) \+ Int64\(51\) \- \(\- Int64\(7\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 53 AS col2, 76 + 51 - - + 7 AS col2 +---- +134 +53 query II rowsort label-9383 SELECT + COALESCE ( CAST ( NULL AS INTEGER ), - 5 * 71 ) AS col2, 73 AS col1 @@ -51063,8 +51660,11 @@ 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\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(\-70\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 89 * - 58 AS col2, - ( - COUNT ( * ) ) + - - 70 AS col2 +---- +-5162 +71 query I rowsort SELECT ALL + + 26 * - 86 @@ -52166,8 +52766,11 @@ SELECT DISTINCT + 58 * - + 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 1152 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "Int64\(32\) \* Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 22 AS col1, 32 * + 36 AS col1 +---- +1152 +22 query II rowsort SELECT DISTINCT + - 89 AS col1, - ( + 63 ) AS col0 diff --git a/data/sqlite/random/expr/slt_good_51.slt b/data/sqlite/random/expr/slt_good_51.slt index 4e525a3..5078308 100644 --- a/data/sqlite/random/expr/slt_good_51.slt +++ b/data/sqlite/random/expr/slt_good_51.slt @@ -220,8 +220,11 @@ SELECT 45, + 15 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "Int64\(\-82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 64 col0, - 82 AS col0 +---- +-82 +64 query II rowsort SELECT - 65 AS col0, 11 @@ -325,8 +328,11 @@ SELECT + 65 col0, ( - 63 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 129 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-2\)\) AS col1" at position 0 and "Int64\(75\) \+ Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( ALL - 2 ) AS col1, 75 + + + 54 AS col1 +---- +-2 +129 query I rowsort label-55 SELECT + - 4 + + COALESCE ( - 10, + - 23, - - 93 / COALESCE ( - CAST ( NULL AS INTEGER ), - - 93 ) / - 47 + 53 - + COUNT ( * ) + 81 + + COUNT ( * ) ) AS col1 @@ -1342,8 +1348,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - -8813 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col2" at position 0 and "Int64\(19\) \+ Int64\(\-96\) \* \(\- Int64\(\-92\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 91 col2, 19 + - 96 * - - 92 * COUNT ( * ) AS col2 +---- +-8813 +-91 query I rowsort label-245 SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 99 @@ -1424,8 +1433,11 @@ SELECT + 11 + - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-3\) \+ \(\- \(\- Int64\(\-70\)\)\) / coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-11\) \* Int64\(97\)\) \+ \(\- CASE CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(38\)\) \* Int64\(\-26\) THEN \(\- Int64\(14\)\) \* Int64\(56\) ELSE NULL END WHEN \(\- CAST\(Int64\(44\) AS Int32\)\) \+ \(\- Int64\(\-28\)\) \+ Int64\(\-51\) \* Int64\(\-9\) THEN Int64\(\-73\) \+ Int64\(14\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1 +NULL query I rowsort label-260 SELECT + COUNT ( * ) / 84 * - - 89 + - 45 @@ -1492,8 +1504,11 @@ 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\(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\. +query II valuesort SELECT - ( + ( + 51 ) ) AS col2, + COUNT ( * ) - + 40 + + + 38 * SUM ( + 90 ) AS col2 +---- +-51 +3381 query I rowsort SELECT 74 + - 30 @@ -1554,8 +1569,11 @@ SELECT + 92 * + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(58\), Int64\(\-95\) \+ Int64\(38\)\) AS col1" at position 0 and "Int64\(\-29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COALESCE ( + 58, - 95 + + 38 ) col1, - 29 col1 +---- +-29 +58 query I rowsort SELECT - 4 + + + 38 + + 50 * + 36 @@ -1897,8 +1915,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * - 28 AS col0, - 90 AS col0 +---- +-28 +-90 query I rowsort SELECT 62 * + 97 + 1 + - ( - 66 ) @@ -2110,8 +2131,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) + 19 AS col1, + 7 AS col1 +---- +18 +7 query I rowsort label-392 SELECT 4 - + ( + 57 ) + - + 4 - 25 - + + 68 + COALESCE ( + COUNT ( * ), + 35 ) * 30 / - + 70 * 76 / - 53 * COUNT ( * ) AS col0 @@ -2646,14 +2670,20 @@ 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 "Int64\(0\) AS col0" at position 0 and "min\(Int64\(68\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 0 AS col0, MIN ( 68 ) AS col0 +---- +0 +68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 AS col0, + 8 AS col0 +---- +17 +8 query I rowsort SELECT ( + 30 ) + - - 53 + - 71 AS col1 @@ -2716,8 +2746,11 @@ SELECT 39 + - + ( 24 ) * 88 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33480 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(93\) \* Int64\(\-5\) \+ max\(DISTINCT coalesce\(Int64\(19\), Int64\(\-75\) \+ Int64\(\-39\), \(\- Int64\(60\)\)\)\) / Int64\(\-61\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 * + 93 * - 5 + + MAX ( DISTINCT COALESCE ( + 19, - 75 + - 39, - + 60 ) ) / - 61 AS col1, 75 AS col1 +---- +-33480 +75 query I rowsort label-508 SELECT - 16 + + - COUNT ( * ) * 86 AS col2 @@ -2748,8 +2781,11 @@ SELECT ALL + - NULLIF ( 12, - 63 * 32 ) * + 29 / + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 2992 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-88\) \* Int64\(\-34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, - 88 * - 34 AS col1 +---- +1 +2992 query I rowsort SELECT ALL - 15 * 94 - + + 22 AS col0 @@ -2974,14 +3010,20 @@ SELECT - CAST ( 77 AS INTEGER ) - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5576 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* \(\- sum\(Int64\(68\)\)\) AS col0" at position 0 and "nullif\(Int64\(\-81\), \(\- Int64\(\-51\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 82 * + - SUM ( + 68 ) AS col0, NULLIF ( + - 81, - - 51 ) AS col0 +---- +-5576 +-81 # 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 64 * - COUNT ( * ) AS col1, 38 col1 +---- +-64 +38 query I rowsort SELECT ALL + 91 * - 97 col2 @@ -2996,8 +3038,11 @@ SELECT ALL + NULLIF ( 81, + 21 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 16 ) AS col0, + 66 AS col0 +---- +16 +66 query I rowsort SELECT DISTINCT + COALESCE ( - ( - - 80 ), + 1 ) @@ -3323,8 +3368,11 @@ SELECT DISTINCT COUNT ( * ) col2, - 44 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21371816 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* \(\- coalesce\(Int64\(94\), Int64\(45\) \+ Int64\(12\)\)\) \* nullif\(Int64\(\-98\), Int64\(99\)\) \* Int64\(40\) \- Int64\(\-24\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-19\) \- Int64\(\-5\) / CAST\(NULL AS Int32\) \* nullif\(Int64\(94\), Int64\(99\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +21371816 +NULL query I rowsort SELECT DISTINCT 45 + + 19 + - 9 AS col0 @@ -3461,8 +3509,11 @@ SELECT ALL + + 70 + - 63 * + ( 65 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(48\) AS col2" at position 0 and "Int64\(\-64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 59 + + - CAST ( NULL AS INTEGER ) + + 48 AS col2, - 64 AS col2 +---- +-64 +NULL query I rowsort SELECT DISTINCT - 50 * 10 col2 @@ -3651,8 +3702,11 @@ 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\(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\. +query II valuesort SELECT + MAX ( DISTINCT - 11 ) - + CASE 5 WHEN - + COUNT ( * ) THEN + - 22 ELSE NULL END col0, + MIN ( + - ( + 47 ) ) AS col0 +---- +-47 +NULL query I rowsort SELECT ALL NULLIF ( + - 59, + - 82 ) AS col0 @@ -3879,8 +3933,11 @@ 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\(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\. +query II valuesort SELECT ALL 75 - - - ( - - 36 ) AS col1, - 33 * + CASE - COUNT ( * ) WHEN + 93 THEN - COUNT ( - - CAST ( - 33 AS FLOAT8 ) ) ELSE COUNT ( * ) - 21 END * 19 AS col1 +---- +12540 +39 query I rowsort SELECT ALL ( - - 55 ) - - ( - 18 ) @@ -4213,8 +4270,11 @@ SELECT ALL + MAX ( DISTINCT - 88 ), COALESCE ( - CAST ( NULL AS INTEGER ), + + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1552 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* Int64\(49\) \+ \(\- \(\- min\(\(\- Int64\(65\)\)\)\)\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 * 49 + - - ( + + MIN ( ALL - + 65 ) ) AS col0, 66 AS col0 +---- +1552 +66 query I rowsort SELECT - 10 + - 53 AS col0 @@ -4365,8 +4425,11 @@ SELECT - ( + 70 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* \(\- CAST\(\(\- \(\- CASE Int64\(12\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-42\) THEN \(\- Int64\(33\)\) WHEN Int64\(\-57\) THEN Int64\(\-8\) ELSE NULL END\)\) AS Int32\)\) \- Int64\(31\) AS col1" at position 0 and "Int64\(\-80\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-80 +NULL query I rowsort SELECT ALL + 38 * 60 @@ -5417,8 +5480,11 @@ 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\(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\. +query II valuesort SELECT 36 AS col1, ( + 45 ) * COALESCE ( - - COUNT ( * ), + - 21 + 18, 65 ) + 63 AS col1 +---- +108 +36 query I rowsort label-1030 SELECT - COUNT ( ALL 88 ) @@ -6479,8 +6545,12 @@ NULL # Datafusion - Expected - -81 # Datafusion - Expected - -20 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \- Int64\(95\) AS col0" at position 0 and "Int64\(19\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 14 - 95 col0, + 60 - 11 + + - 69 AS col2, 19 AS col0 +---- +-20 +-81 +19 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -6580,8 +6650,11 @@ SELECT ALL COUNT ( * ) * - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( 71 ) + - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0 +---- +70 +NULL query I rowsort label-1250 SELECT ALL COUNT ( * ) + + 26 @@ -6671,8 +6744,11 @@ SELECT ALL 81 + - 79 # 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\) AS col0" at position 0 and "Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 75 col0, - 42 AS col0 +---- +-42 +75 query I rowsort label-1267 SELECT ALL - + 67 + - - COUNT ( * ) AS col2 @@ -7230,8 +7306,12 @@ SELECT + ( + 55 ) AS col1 # Datafusion - Expected - 78 # Datafusion - Expected - 75 # Datafusion - Expected - -376 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(75\) AS Int32\) AS col0" at position 1 and "\(\- sum\(DISTINCT Int64\(\-4\)\)\) \* \(\- Int64\(94\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 79 - + COUNT ( * ), CAST ( + 75 AS INTEGER ) AS col0, - SUM ( DISTINCT ( - 4 ) ) * - + 94 AS col0 +---- +-376 +75 +78 query I rowsort SELECT ALL - + ( + 87 ) AS col2 @@ -7246,8 +7326,11 @@ SELECT ALL - COUNT ( * ) * - 23 + 13 AS col0 # 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 "\(\- Int64\(20\)\) AS col1" at position 0 and "Int64\(\-95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 20 AS col1, - 95 col1 +---- +-20 +-95 query I rowsort SELECT 44 * + - 93 + - 73 + + 52 @@ -7263,8 +7346,11 @@ SELECT + 78 AS col1, COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* Int64\(\-57\) \+ Int64\(88\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 * - 57 + + 88 + + CAST ( NULL AS INTEGER ) AS col0, 96 AS col0 +---- +96 +NULL query I rowsort label-1378 SELECT 6 + - 1 / + 19 - + - 5 * + + 12 + + - 97 @@ -7450,8 +7536,11 @@ SELECT ALL + 88 * 93 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 6435 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(19\)\) \+ Int64\(82\) AS col2" at position 0 and "Int64\(99\) \* Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + 19 ) + + 82 AS col2, 99 * 65 AS col2 +---- +63 +6435 query I rowsort label-1414 SELECT - 4 + - 90 + + - 30 / - COUNT ( 69 ) @@ -7487,8 +7576,11 @@ SELECT - ( - 22 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 AS col2, - 81 AS col2 +---- +-81 +37 query I rowsort SELECT - 26 + - 76 @@ -8167,8 +8259,11 @@ SELECT + 42 - + 62 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col2" at position 0 and "Int64\(\-78\) \+ Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 47 AS col2, - 78 + 67 AS col2 +---- +-11 +-47 query I rowsort SELECT ALL + 9 + + 7 * - - 81 AS col1 @@ -8370,8 +8465,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1138 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) \+ Int64\(\-44\) \* Int64\(25\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 38 + - 44 * 25 AS col1, + CAST ( NULL AS INTEGER ) AS col1 +---- +-1138 +NULL query I rowsort label-1587 SELECT ALL - 80 + + 31 * + - COALESCE ( - 98, - 4, - MIN ( + 41 ) ) + - 91 AS col0 @@ -8580,8 +8678,12 @@ NULL # Datafusion - Expected - -553 # Datafusion - Expected - 58 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 1 and "Int64\(2\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 7 * + + ( + 79 ), 58 AS col1, + + 2 AS col1 +---- +-553 +2 +58 query II rowsort label-1626 SELECT - 80 * CAST ( NULL AS INTEGER ) * 7 AS col2, 31 @@ -8917,8 +9019,11 @@ SELECT DISTINCT - ( - 56 ) + 1 + + + 96 * MAX ( 27 ) + + 58 * - 63, 84 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-48\) \- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-68\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 62 * COUNT ( * ) AS col0, - 48 - NULLIF ( + + COUNT ( * ), - 68 ) col0 +---- +-49 +-62 query I rowsort SELECT DISTINCT 68 * - 12 * - - 10 @@ -9215,8 +9320,11 @@ SELECT COUNT ( * ) - + 23 - + + 6 + + 73 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-23\) AS Int32\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( + - 23 AS INTEGER ) AS col0, 1 AS col0 +---- +-23 +1 query I rowsort label-1747 SELECT + 8 * 96 / 8 AS col2 @@ -9397,8 +9505,11 @@ SELECT ALL - COUNT ( * ) * - COUNT ( * ) * 75 + - 46 + + 1 - + 80 + + 71 * 31 - # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -3430 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col1" at position 0 and "Int64\(35\) \* \(\- Int64\(98\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 96 AS col1, 35 * - + 98 AS col1 +---- +-3430 +96 query I rowsort label-1782 SELECT ALL + + ( - SUM ( + - CAST ( 96 AS INTEGER ) ) ) @@ -9478,8 +9589,11 @@ SELECT ALL NULLIF ( + + 69, - 67 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -261990 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(41\)\) \* Int64\(90\) \* Int64\(71\) AS col1" at position 0 and "Int64\(\-34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 41 ) * 90 * + 71 AS col1, - 34 AS col1 +---- +-261990 +-34 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -9774,8 +9888,11 @@ SELECT ALL + 4 / 75 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 124254 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col2" at position 0 and "sum\(DISTINCT Int64\(78\)\) \* \(\- Int64\(\-59\)\) \* Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 AS col2, SUM ( DISTINCT 78 ) * - - 59 * + 27 AS col2 +---- +124254 +33 query I rowsort SELECT 59 + - - 43 @@ -9852,14 +9969,20 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 AS col2, + COALESCE ( + 65, - 20 ) / + - COUNT ( * ) AS col2 +---- +-65 +92 # 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\(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\. +query IR valuesort SELECT 62 AS col2, + 81 * + COUNT ( * ) * COALESCE ( + - 39, + COUNT ( * ) / + COALESCE ( - ( - 78 ), + - ( - 73 ) * AVG ( DISTINCT + - 56 ) ) ) AS col2 +---- +-3159 +62 query I rowsort SELECT - 93 * - + 44 + 33 @@ -9976,8 +10099,11 @@ SELECT - + 4 col1, - 78 + + 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) col2, - 63 AS col2 +---- +-63 +1 query I rowsort SELECT DISTINCT - 56 * + 2 @@ -9998,8 +10124,11 @@ 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\(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\. +query II valuesort SELECT ALL - + COUNT ( * ) AS col2, 83 - - MIN ( DISTINCT - 45 ) + + + 58 + 0 AS col2 +---- +-1 +96 query I rowsort label-1894 SELECT 48 / - 57 + - 50 AS col2 @@ -10560,8 +10689,12 @@ SELECT ALL - 69 * - COUNT ( * ) # Datafusion - Expected - 65 # Datafusion - Expected - 43 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 65 AS col1, ( + 43 ) col1, - - 17 AS col1 +---- +17 +43 +65 query I rowsort label-2001 SELECT SUM ( + + 96 ) * - CASE + 54 WHEN - 22 THEN 8 END * 20 * 6 + + 0 + + 21 col0 @@ -10698,8 +10831,11 @@ SELECT DISTINCT + COUNT ( * ) - + 49 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "Int64\(\-94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 col2, - 94 AS col2 +---- +-94 +11 query II rowsort SELECT 46 AS col1, + 18 AS col0 @@ -11065,8 +11201,11 @@ SELECT ALL NULLIF ( COUNT ( * ), - 64 ) + - 74 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 165 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(66\) AS Int32\) \+ Int64\(99\) AS col2" at position 0 and "Int64\(\-85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( 66 AS INTEGER ) + 99 col2, - 85 AS col2 +---- +-85 +165 query I rowsort label-2097 SELECT ( + COUNT ( - 92 ) ) * NULLIF ( - 88, + 53 + + 48 + - 40 * + 60 * + 78 + + COUNT ( * ) ) * - 86 AS col0 @@ -11185,8 +11324,12 @@ SELECT + 10 * - ( - 60 ) # Datafusion - Expected - 74 # Datafusion - Expected - 53 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col0" at position 0 and "Int64\(\-53\) \- Int64\(\-16\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 74 AS col0, - COUNT ( * ) * + - COUNT ( * ) - - 52, - 53 - - 16 AS col0 +---- +-37 +53 +74 query I rowsort SELECT 13 - - 75 AS col0 @@ -11332,8 +11475,11 @@ SELECT + - 30 / 4 AS col0, - 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - -160 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \+ Int64\(\-96\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 + - 96 AS col0, 41 AS col0 +---- +-160 +41 query I rowsort label-2147 SELECT + COUNT ( * ) * - - CAST ( + - 52 AS INTEGER ) @@ -11541,8 +11687,11 @@ SELECT + - 18 / + 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7323 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* min\(Int64\(\-83\)\) \+ Int64\(\-19\) AS col0" at position 0 and "coalesce\(Int64\(32\), Int64\(82\) \+ Int64\(\-5\) \+ Int64\(6\) \+ Int64\(36\), Int64\(46\), Int64\(57\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 * + MIN ( - 83 ) + - 19 AS col0, COALESCE ( 32, + 82 + - 5 + 6 + + + 36, + 46, 57 ) AS col0 +---- +-7323 +32 query I rowsort label-2188 SELECT NULLIF ( - 76, + COUNT ( * ) + - - 23 - + COALESCE ( + COUNT ( * ), + 62 / - 69 + - + 46 ) ) @@ -11562,8 +11711,11 @@ SELECT - COUNT ( * ) * - - 50 * 51 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 84 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 12 AS col2, + 84 AS col2 +---- +12 +84 query I rowsort SELECT - 85 * - 19 AS col2 @@ -11624,8 +11776,11 @@ SELECT ALL - 54 * 39 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 94 AS col1, 59 AS col1 +---- +-94 +59 query I rowsort SELECT - 71 + - 77 AS col2 @@ -12471,8 +12626,11 @@ SELECT ALL + 12 * - 65 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\(\-7\) AS col0" at position 0 and "Int64\(\-26\) / Int64\(52\) \* \(\- Int64\(50\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 7 AS col0, - 26 / + + 52 * - + 50 AS col0 +---- +-7 +0 query I rowsort SELECT 56 + - 60 + - 41 * + 44 @@ -13860,8 +14018,11 @@ SELECT 77 + - MIN ( 31 ) * - 66 AS col0 # 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 "Int64\(38\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 38 AS col2, 68 AS col2 +---- +38 +68 query I rowsort label-2627 SELECT 95 - + - SUM ( DISTINCT - + 78 ) AS col0 @@ -14264,8 +14425,11 @@ SELECT + 67 + - + 49 + + - 13 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 93 AS col0, 24 AS col0 +---- +24 +93 query I rowsort label-2705 SELECT + 96 - - ( + 93 ) / + + 45 * - COUNT ( * ) AS col2 @@ -14691,8 +14855,12 @@ SELECT - SUM ( 30 ) # Datafusion - Expected - -24000 # Datafusion - Expected - 70 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(\-25\) \* Int64\(32\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 30 * - 25 * 32 AS col0, 70 AS col0, - - 8 +---- +-24000 +70 +8 query I rowsort SELECT - 36 + 50 @@ -15052,8 +15220,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 AS col0, + 76 * - - COUNT ( * ) AS col0 +---- +76 +89 query I rowsort label-2856 SELECT ALL ( - NULLIF ( + COUNT ( * ), - - 91 * + CAST ( NULL AS INTEGER ) + 74 + - CAST ( NULL AS INTEGER ) * - - 9 ) ) + 16 + 41 AS col1 @@ -15508,8 +15679,11 @@ SELECT DISTINCT + COALESCE ( - - 34, - 70 - + + 87, 23 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2175 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(14\) WHEN Int64\(\-45\) THEN Int64\(15\) \+ Int64\(35\) END \* Int64\(89\) AS col1" at position 0 and "Int64\(87\) \* Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CASE + 14 WHEN - 45 THEN + 15 + + 35 END * 89 AS col1, 87 * + 25 AS col1 +---- +2175 +NULL query I rowsort label-2944 SELECT ALL - COALESCE ( - + 77, - + 0 ) * - MAX ( + 59 ) + + 47 + - COUNT ( * ) AS col0 @@ -15535,8 +15709,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 18 AS col1, COUNT ( * ) / + 70 AS col1 +---- +0 +18 query I rowsort SELECT + ( - 98 ) col2 @@ -15928,8 +16105,11 @@ SELECT 88 * + + 75 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 5547 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col0" at position 0 and "Int64\(78\) \* \(\- Int64\(\-71\)\) \+ Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 AS col0, 78 * - - 71 + + 9 col0 +---- +54 +5547 query I rowsort label-3025 SELECT CAST ( NULL AS INTEGER ) / + ( 12 ) * - + CASE - 1 WHEN 3 THEN + 34 WHEN + 44 THEN NULL ELSE NULL END @@ -16082,8 +16262,11 @@ SELECT ALL - 72 / ( + 37 ) col0 # 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 "Int64\(3\) AS col0" at position 0 and "nullif\(Int64\(\-57\), Int64\(42\) \+ Int64\(34\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 3 AS col0, NULLIF ( - 57, + 42 + + 34 ) AS col0 +---- +-57 +3 query I rowsort label-3055 SELECT - 24 / 35 * + + 54 AS col0 @@ -16265,8 +16448,11 @@ SELECT - 19 * - COUNT ( * ) * MIN ( ALL 66 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(82\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(84\)\)\) \* Int64\(63\) \* Int64\(55\) \* Int64\(97\) \- \(\- CAST\(NULL AS Int32\)\) \* Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MAX ( 82 ) AS col1, - COUNT ( * ) * - COUNT ( 84 ) * + 63 * + + 55 * 97 - - CAST ( NULL AS INTEGER ) * + + 14 AS col1 +---- +82 +NULL query I rowsort label-3090 SELECT + ( + 6 ) + - - 52 / 1 @@ -16574,8 +16760,11 @@ SELECT COUNT ( * ) + - 43 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 "Int64\(1\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 AS col0, 68 AS col0 +---- +1 +68 query I rowsort label-3147 SELECT + + 41 * 69 * - 16 + ( COUNT ( * ) ) + + - CAST ( NULL AS INTEGER ) + - + 95 + - CASE - - ( 87 ) WHEN + ( + - COALESCE ( 68, - + MAX ( - + CAST ( NULL AS INTEGER ) ) - + - 49 * + COUNT ( DISTINCT 93 ) * 9 ) ) + + 65 THEN 26 - + 33 END AS col1 @@ -17120,8 +17309,11 @@ SELECT ALL - COUNT ( * ) AS col1, 46 + - 89 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 60 AS col2, + 45 AS col2 +---- +-60 +45 query I rowsort label-3252 SELECT 6 / + - 66 + + 18 AS col0 @@ -17784,8 +17976,11 @@ 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\(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\. +query II valuesort SELECT 77 + - 49 + COUNT ( * ) + 79 col1, 45 col1 +---- +108 +45 query I rowsort label-3379 SELECT + COUNT ( - - 96 ) col0 @@ -18136,8 +18331,11 @@ 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\(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\. +query II valuesort 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 +---- +-46 +61 query I rowsort label-3446 SELECT + COUNT ( * ) * - 0 + + - 94 + - 65 AS col1 @@ -18311,8 +18509,11 @@ SELECT DISTINCT 11 / + 77, - 8 + 8 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4360 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* Int64\(60\) \+ Int64\(11\) \* Int64\(20\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 69 * + 60 + + 11 * 20 AS col0, 40 AS col0 +---- +40 +4360 query I rowsort SELECT 5 + + 76 AS col1 @@ -18427,8 +18628,11 @@ SELECT 61 + 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 15 AS col2, + 75 AS col2 +---- +15 +75 query I rowsort label-3501 SELECT CASE + 81 WHEN - COUNT ( * ) THEN ( + 92 ) END + + 24 @@ -18862,8 +19066,12 @@ SELECT ALL CASE - + 41 WHEN + - COALESCE ( + - 70, + 65 ) THEN - - NULLIF ( + 6, # Datafusion - Expected - -54 # 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 1 and "Int64\(1\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - SUM ( ALL + 54 ) AS col0, 97 col2, 1 AS col2 +---- +-54 +1 +97 query I rowsort label-3584 SELECT - ( - COALESCE ( + 92, + + COUNT ( * ) ) ) AS col1 @@ -19025,8 +19233,11 @@ SELECT - 62 * + 85 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "Int64\(\-17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 AS col2, - 17 AS col2 +---- +-17 +-48 query I rowsort SELECT 80 + + 30 @@ -19274,8 +19485,12 @@ SELECT DISTINCT - 85 * 76 + 5 + - - 14 + COUNT ( * ) + - - MIN ( 44 ) * + - 71 + # Datafusion - Expected - 22 # Datafusion - Expected - 5025 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* Int64\(75\) AS col1" at position 1 and "Int64\(\-86\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 22 AS col0, + 67 * + 75 AS col1, - 86 AS col1 +---- +-86 +22 +5025 query I rowsort SELECT + NULLIF ( - + 87, - - 81 ) * - 15 @@ -19486,8 +19701,11 @@ SELECT + ( - ( - - 19 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - -334 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col2" at position 0 and "Int64\(\-10\) \* Int64\(49\) \+ Int64\(81\) \+ Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 col2, ( + - 10 ) * 49 + + 81 + + 75 AS col2 +---- +-334 +87 query I rowsort SELECT ALL - 24 col2 @@ -19823,8 +20041,11 @@ SELECT + 5 - + 87 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \+ Int64\(61\) AS col0" at position 0 and "Int64\(\-44\) / Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 35 + + + 61 AS col0, - 44 / 11 AS col0 +---- +-4 +26 query I rowsort SELECT DISTINCT ( + 0 ) AS col1 @@ -19926,8 +20147,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) / Int64\(11\) \+ Int64\(\-92\) AS col2" at position 0 and "Int64\(75\) \+ Int64\(\-11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 / + + 11 + - 92 AS col2, + 75 + - 11 AS col2 +---- +-87 +64 query II rowsort SELECT ALL + 65 AS col2, 1 + + + 49 + + + 55 @@ -20154,8 +20378,11 @@ SELECT DISTINCT + 53 / + + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 468143 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(0\) \- Int64\(96\) \* Int64\(\-53\) \* Int64\(92\) \+ Int64\(56\) \- Int64\(86\) / min\(DISTINCT Int64\(9\)\) AS col1" at position 0 and "Int64\(\-45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 39 * + 0 - 96 * - 53 * + + 92 + ( 56 ) - + 86 / + + MIN ( DISTINCT 9 ) AS col1, + ( - 45 ) AS col1 +---- +-45 +468143 query I rowsort label-3829 SELECT ALL + SUM ( 62 ) AS col1 @@ -20823,8 +21050,11 @@ SELECT MIN ( - 70 ) # 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\) AS col1" at position 0 and "Int64\(9\) \+ Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 AS col1, ( + 9 ) + + 9 col1 +---- +-48 +18 query I rowsort SELECT ALL ( 81 ) AS col1 @@ -21035,8 +21265,11 @@ SELECT 78 - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 164 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ Int64\(55\) \+ Int64\(87\) \+ Int64\(18\) AS col0" at position 0 and "Int64\(5\) \* Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4 + + 55 + + + 87 + + 18 AS col0, 5 * + 19 AS col0 +---- +164 +95 query I rowsort label-3998 SELECT - 40 * + + COUNT ( * ) - 99 AS col0 @@ -21320,8 +21553,11 @@ 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\(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\. +query II valuesort SELECT + 99 AS col2, 6 + 12 / + 66 + 83 + - + CASE + 7 WHEN - 95 * + 57 * + + 36 * - - 97 THEN COUNT ( * ) + + COUNT ( * ) END * 1 * - - COUNT ( * ) AS col2 +---- +99 +NULL query II rowsort SELECT + 10 AS col0, - 19 * 63 @@ -21626,8 +21862,12 @@ SELECT SUM ( ALL - + 64 ) AS col2 # Datafusion - Expected - 43 # Datafusion - Expected - NULL # Datafusion - Expected - 102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- min\(Int64\(93\)\)\) WHEN Int64\(\-54\) THEN Int64\(60\) \+ \(\- CAST\(NULL AS Int32\)\) \+ \(\- Int64\(49\)\) END AS col1" at position 1 and "coalesce\(Int64\(40\), Int64\(\-3\)\) \- Int64\(\-62\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 43, + CASE - + MIN ( + 93 ) WHEN - 54 THEN 60 + ( - CAST ( NULL AS INTEGER ) ) + - + 49 END AS col1, + COALESCE ( 40, - 3 ) - - 62 AS col1 +---- +102 +43 +NULL query I rowsort label-4111 SELECT MAX ( DISTINCT 54 ) / - + 13 AS col2 @@ -21674,8 +21914,11 @@ SELECT ALL 16 + + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col2" at position 0 and "Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 41 col2, + 72 col2 +---- +-41 +72 query I rowsort SELECT 83 + 66 AS col0 @@ -21876,14 +22119,20 @@ SELECT ( COUNT ( * ) ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) / Int64\(\-97\) \+ \(\- max\(Int64\(\-87\)\)\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 4 / + - 97 + - MAX ( ALL - 87 ) AS col0, 63 AS col0 +---- +63 +87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -396 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(3\)\) \* Int64\(9\) \+ Int64\(0\) AS col1" at position 0 and "Int64\(99\) \* Int64\(\-4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( 3 ) * + 9 + - 0 AS col1, + 99 * - 4 AS col1 +---- +-396 +9 query I rowsort label-4159 SELECT + + NULLIF ( + COUNT ( * ), 48 ) - - 57 * + CAST ( NULL AS INTEGER ) * - 93 - 61 + + - 56 / 7 * - - 72 @@ -21986,8 +22235,11 @@ SELECT - CAST ( + 42 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col0" at position 0 and "Int64\(65\) \+ Int64\(\-47\) \+ CAST\(NULL AS Int32\) / Int64\(82\) \* Int64\(51\) \- Int64\(19\) \+ Int64\(\-61\) \* Int64\(4\) / Int64\(21\) \* Int64\(\-33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 AS col0, 65 + - 47 + CAST ( NULL AS INTEGER ) / + 82 * + + 51 - 19 + - 61 * + 4 / + 21 * - 33 AS col0 +---- +-90 +NULL query I rowsort SELECT ALL 40 + + 80 AS col2 @@ -22007,8 +22259,11 @@ SELECT + 81 * + + 41 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(76\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col0, + 76 * CAST ( NULL AS INTEGER ) AS col0 +---- +NULL +NULL query I rowsort label-4183 SELECT ALL - COALESCE ( 42, + + 68 ) * CAST ( + + 54 AS INTEGER ) * 36 + 64 * + 48 @@ -23353,8 +23608,11 @@ SELECT DISTINCT COUNT ( * ) - 24, - 86 AS col0 # 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\(91\)\) \+ Int64\(50\) \- Int64\(29\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 91 + 50 - + 29 AS col2, 53 AS col2 +---- +-70 +53 query I rowsort label-4443 SELECT - - 16 / 65 @@ -23409,8 +23667,11 @@ SELECT - + COUNT ( * ) + - - 21 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1594 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(56\) \* \(\- Int64\(\-99\)\) \+ Int64\(83\) \* Int64\(\-86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, 56 * - - 99 + + 83 * - 86 AS col2 +---- +-1594 +1 query I rowsort label-4454 SELECT + ( COALESCE ( + 61, + MAX ( DISTINCT + 20 ) * + - COUNT ( * ) / 8 - + + 89 + 23 * 31 ) ) col2 @@ -23903,8 +24164,11 @@ SELECT ALL + COALESCE ( - - 20, - 54 ) / - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(93\)\) AS col1" at position 0 and "Int64\(18\) \+ Int64\(\-64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 93 AS col1, + 18 + - 64 AS col1 +---- +-46 +-93 query I rowsort SELECT + 58 - 14 + + 89 @@ -23930,8 +24194,11 @@ SELECT - ( 82 ) AS col1, - COALESCE ( + + 12, + 21 + 93, + 70 / 68 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(\-98\) \* Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 AS col1, + ( + CAST ( NULL AS INTEGER ) ) + - 98 * 73 col1 +---- +24 +NULL query I rowsort SELECT ALL NULLIF ( - 56, - 78 * + + 71 ) AS col0 @@ -24014,8 +24281,11 @@ SELECT ALL ( NULLIF ( - COUNT ( * ), - 30 * - 63 ) ) / ( + + COUNT ( * ) ) + - 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) \+ \(\- nullif\(Int64\(\-6\), \(\- Int64\(16\)\)\)\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 51 + - NULLIF ( - 6, - + 16 ) AS col0, 25 AS col0 +---- +-45 +25 query II rowsort label-4567 SELECT ALL + + 35 / + COUNT ( * ) + 15 + + + MIN ( DISTINCT + + 84 ) + 86 AS col2, COUNT ( * ) * - - 16 AS col0 @@ -25059,8 +25329,11 @@ SELECT ALL - - 63 + + + CAST ( 28 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 68 AS col1, COUNT ( * ) AS col1 +---- +-68 +1 query I rowsort SELECT ALL - + 71 + + 82 @@ -25171,8 +25444,11 @@ SELECT DISTINCT 0 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) AS col0, + COUNT ( * ) col0 +---- +1 +NULL query I rowsort label-4791 SELECT ALL - MAX ( ALL 44 ) AS col2 @@ -25267,8 +25543,11 @@ SELECT ALL + COUNT ( * ) * + CAST ( - + ( - + 33 ) AS INTEGER ) * + 57 * - 73 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 31904 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* Int64\(35\) \- Int64\(51\) \+ Int64\(25\) \* Int64\(\-83\) \* Int64\(\-14\) AS col0" at position 0 and "nullif\(Int64\(\-4\), Int64\(\-80\)\) / Int64\(61\) \+ Int64\(\-4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 83 * + 35 - + 51 + 25 * + - 83 * - 14 AS col0, NULLIF ( - 4, - 80 ) / + 61 + - 4 AS col0 +---- +-4 +31904 query I rowsort SELECT DISTINCT + 67 * - - 85 AS col0 @@ -25439,8 +25718,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) / + 68 * - COUNT ( - - 65 ) AS col0, + 51 AS col0 +---- +0 +51 query I rowsort label-4843 SELECT DISTINCT - COALESCE ( CAST ( NULL AS INTEGER ), - 18 ) / - + 39 + + + 12 AS col1 @@ -25740,8 +26022,11 @@ SELECT NULLIF ( + - 16, + - 65 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col2" at position 0 and "Int64\(89\) \+ Int64\(28\) \+ Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 AS col2, + 89 + 28 + 11 AS col2 +---- +128 +87 query I rowsort SELECT COALESCE ( - 51, - - 14 ) AS col1 @@ -25798,8 +26083,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 94 AS col0, 41 col0 +---- +41 +94 query II rowsort SELECT + 71 AS col2, 96 @@ -26094,8 +26382,11 @@ SELECT DISTINCT - + 55 * - + 77 + + + 97, - 16 * - 44 * 84 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-80\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 80 AS col1, + COUNT ( * ) AS col1 +---- +1 +80 query I rowsort label-4968 SELECT CAST ( + COUNT ( * ) AS INTEGER ) * 50 @@ -26229,8 +26520,11 @@ SELECT - - COUNT ( ALL + 92 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 442383 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* Int64\(58\) \* Int64\(93\) \+ Int64\(75\) 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 II valuesort SELECT ALL 82 * + 58 * 93 + + 75 AS col1, - 41 + - 55 AS col1 +---- +-96 +442383 query I rowsort label-4994 SELECT DISTINCT COUNT ( * ) * + 31 + 7 AS col1 @@ -26315,8 +26609,11 @@ SELECT - 29 + + 58 * + SUM ( DISTINCT + 67 ) * + 85 + - 20 + - 69 + + - 17 + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "\(\- Int64\(99\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 AS col1, - ( 99 ) AS col1 +---- +-99 +45 query II rowsort SELECT 26 AS col2, + 73 + + 95 @@ -26471,8 +26768,11 @@ SELECT ALL 54 * - 72 * - 15 - + 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 25 col2, 42 AS col2 +---- +-25 +42 query I rowsort label-5041 SELECT + CASE COUNT ( * ) WHEN CAST ( - - 60 AS INTEGER ) * - COUNT ( + + 91 ) THEN - ( - CAST ( - 87 AS INTEGER ) ) ELSE NULL END * + 80 + MAX ( DISTINCT - ( - ( 66 ) ) ) + - NULLIF ( - COUNT ( * ), + 4 ) / + ( 15 ) AS col0 @@ -26514,8 +26814,12 @@ SELECT - 19 * + COALESCE ( 54, + 24 / - - 49 + - 55 ) - 71 + - 76 / - - 26 # Datafusion - Expected - 51 # Datafusion - Expected - -91 # Datafusion - Expected - 1720 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* Int64\(\-42\) \* Int64\(\-68\) \- coalesce\(\(\- Int64\(\-91\)\), Int64\(68\)\) AS col0" at position 1 and "Int64\(20\) \* Int64\(86\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 51, 0 * + - 42 * + - 68 - + COALESCE ( - - 91, + 68 ) AS col0, + 20 * 86 AS col0 +---- +-91 +1720 +51 query II rowsort SELECT ALL + 89, + 68 * 91 AS col0 @@ -26989,8 +27293,11 @@ SELECT ALL 49 * 90 * + 41 + - 3 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 48 AS col2, + 10 AS col2 +---- +10 +48 query II rowsort SELECT - ( + + 94 ) + + 5 + - 64 AS col1, + 65 + + + 15 @@ -27214,8 +27521,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -287164 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(70\) \+ CAST\(Int64\(40\) AS Int32\) \- \(\- Int64\(\-75\)\) \* Int64\(65\) \* Int64\(58\) \+ \(\- Int64\(87\)\) \* \(\- Int64\(\-52\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, 70 + CAST ( 40 AS INTEGER ) - - - 75 * + 65 * + 58 + - + 87 * - - 52 AS col0 +---- +-287164 +1 query I rowsort SELECT ( + 73 ) AS col0 @@ -27360,8 +27670,11 @@ SELECT 34 + - 57 + + + ( - 31 ), + 69 / 24 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 7 col0, 46 AS col0 +---- +-7 +46 query I rowsort SELECT ALL - 47 + - ( - + 35 ) @@ -27387,8 +27700,11 @@ SELECT ALL 17, 2 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 col0" at position 0 and "\(\- count\(Int64\(56\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 98 AS col0, - COUNT ( ALL + 56 ) AS col0 +---- +-1 +-98 query I rowsort label-5215 SELECT DISTINCT 22 - 33 + - COUNT ( * ) AS col0 @@ -27525,8 +27841,11 @@ SELECT + COUNT ( * ) + + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 col2, + ( + COUNT ( * ) ) AS col2 +---- +1 +7 query I rowsort SELECT - 84 + - 72 * 3 @@ -27586,8 +27905,11 @@ SELECT 53 * + COUNT ( * ) # 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\(51\) \* count\(DISTINCT Int64\(\-46\)\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 51 * + COUNT ( DISTINCT - 46 ) AS col0, + 38 AS col0 +---- +38 +51 query I rowsort label-5252 SELECT ALL COUNT ( DISTINCT + 50 ) @@ -27612,8 +27934,11 @@ SELECT - COUNT ( - + 69 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(26\) WHEN \(\- coalesce\(Int64\(\-47\), \(\- avg\(Int64\(83\)\)\), Int64\(\-84\)\)\) THEN Int64\(86\) WHEN Int64\(\-36\) \+ Int64\(44\) THEN CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(\-98\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-30\)\) THEN NULL ELSE \(\- \(\- Int64\(\-98\)\)\) END \+ Int64\(1\) ELSE NULL END AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1 +NULL query I rowsort SELECT NULLIF ( + 73, - 28 ) @@ -27861,14 +28186,20 @@ SELECT - 82 * - COUNT ( 36 ) + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\)" at position 0 and "CAST\(NULL AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) +---- +NULL +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "Int64\(62\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE Int64\(16\) WHEN Int64\(25\) THEN Int64\(98\) \+ CAST\(Int64\(\-67\) AS Int32\) END\) \* Int64\(\-80\) \* Int64\(\-14\) \- Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 73 AS col0, 62 * + COUNT ( * ) * - CASE + 16 WHEN 25 THEN 98 + CAST ( - 67 AS INTEGER ) END * - 80 * - 14 - 54 col0 +---- +73 +NULL query II rowsort label-5306 SELECT DISTINCT - COUNT ( ALL - 36 ) * + - COUNT ( * ) - + + 56 + - + COUNT ( * ) + - - 94 * + + COUNT ( * ) + - + 51 + CASE + 59 WHEN 95 * CAST ( NULL AS INTEGER ) * - SUM ( DISTINCT + 92 ) THEN - SUM ( + 49 ) * + 44 * + 60 ELSE NULL END, 12 AS col0 @@ -28310,8 +28641,11 @@ SELECT DISTINCT - 26 + - + 11 + - 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - -216 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* \(\- nullif\(Int64\(3\), CASE \(\- Int64\(18\)\) WHEN Int64\(26\) THEN \(\- Int64\(63\)\) ELSE NULL END \* Int64\(\-41\)\)\) AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 72 * - NULLIF ( + 3, CASE - + 18 WHEN ( + 26 ) THEN - + 63 ELSE NULL END * - 41 ) AS col2, 58 AS col2 +---- +-216 +58 query II rowsort SELECT 66 AS col2, 83 AS col0 @@ -28352,8 +28686,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - -552 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(23\)\) AS col2" at position 0 and "Int64\(48\) \* Int64\(\-12\) \+ Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( 23 ) AS col2, + 48 * - 12 + + 24 AS col2 +---- +-23 +-552 query I rowsort label-5400 SELECT ALL SUM ( ALL - + 15 ) @@ -28595,8 +28932,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2251 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(24\)\) \* Int64\(36\) \+ Int64\(89\) \* 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 II valuesort SELECT ( MAX ( ALL + 24 ) ) * + 36 + + 89 * - 35 AS col0, - 93 AS col0 +---- +-2251 +-93 query I rowsort SELECT ALL 63 + - 51 @@ -29168,8 +29508,11 @@ SELECT + 27 col1, 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 86 AS col2, COUNT ( * ) AS col2 +---- +1 +86 query II rowsort label-5553 SELECT CAST ( NULL AS INTEGER ) AS col2, 37 @@ -29793,8 +30136,11 @@ 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\(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\. +query II valuesort SELECT + + COUNT ( * ) / + 7 * ( - 94 ) * + + COUNT ( * ) + - + COUNT ( ALL + 25 ) col1, - 47 * 92 - + 9 AS col1 +---- +-1 +-4333 query II rowsort label-5670 SELECT + + 82 - + - ( - + COUNT ( * ) ) + + 73, COALESCE ( - 55, 66 - + 63 * COUNT ( * ) ) * 99 + - + 66 + 81 + + + 61 * + + 36 AS col0 @@ -29830,8 +30176,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(43\) \+ \(\- CAST\(Int64\(\-60\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) * 43 + + - ( CAST ( - 60 AS INTEGER ) ) AS col2, - 4 AS col2 +---- +-4 +17 query I rowsort SELECT + 4 * - - 77 AS col0 @@ -30173,8 +30522,11 @@ SELECT DISTINCT - 15 / - CASE + - 51 WHEN - 37 * 37 * - - 14 * - AVG ( + 15 ) - # Datafusion - Datafusion expected results: # Datafusion - Expected - -5530 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(\-70\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 79 * - 70 AS col0, + 81 AS col0 +---- +-5530 +81 query I rowsort label-5742 SELECT ALL COUNT ( 63 ) AS col2 @@ -30338,8 +30690,11 @@ SELECT ALL - NULLIF ( - 19, - 40 ) * 42 - 40 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col2" at position 0 and "Int64\(\-33\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 98 AS col2, - 33 + COUNT ( * ) col2 +---- +-32 +98 query I rowsort label-5774 SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * + 0 - - - COUNT ( 74 ) AS col1 @@ -30706,8 +31061,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) / - 25 + 54 AS col1, 81 * 80 AS col1 +---- +54 +6480 query I rowsort SELECT + 51 * 30 + - 82 @@ -30717,8 +31075,11 @@ SELECT + 51 * 30 + - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -59268 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col0" at position 0 and "Int64\(82\) \- Int64\(\-50\) \+ CAST\(Int64\(\-50\) AS Int32\) \* Int64\(\-54\) \* \(\- Int64\(22\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 col0, 82 - + - 50 + CAST ( - 50 AS INTEGER ) * - 54 * - + 22 AS col0 +---- +-59268 +71 query II rowsort label-5848 SELECT COALESCE ( 23, + 68 - + 59, + 68 * + - 6 * - ( - + 87 ) ) / + + 5 + CASE 2 WHEN - 48 THEN - + COUNT ( * ) WHEN - AVG ( DISTINCT - + 57 ) THEN NULL ELSE NULL END, + 63 * + SUM ( DISTINCT + CASE 59 WHEN - - 91 THEN 30 WHEN - ( + 82 ) THEN NULL END ) * + 18 + - CAST ( NULL AS INTEGER ) + - 50 * + NULLIF ( - 52, + 4 * - COUNT ( * ) * - COUNT ( * ) + + CASE 90 WHEN - 92 THEN NULL WHEN + ( 26 ) / 90 * 96 + + ( - CAST ( NULL AS INTEGER ) ) THEN - 5 / + 6 * 22 ELSE NULL END + - 47 + + COUNT ( * ) / - 80 / MAX ( ALL + 62 ) + + 76 + - 80 * - 4 ) @@ -30739,8 +31100,11 @@ SELECT DISTINCT - CASE + - 61 WHEN - 38 THEN NULL ELSE + + 17 END col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col2" at position 0 and "Int64\(40\) \- Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 31 AS col2, + 40 - + 78 AS col2 +---- +-31 +-38 query I rowsort label-5852 SELECT ALL 15 + + 47 / - CAST ( NULL AS INTEGER ) AS col0 @@ -31277,8 +31641,11 @@ SELECT DISTINCT 97, - 16 * 34 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 99 AS col2, + 69 AS col2 +---- +-99 +69 query I rowsort SELECT 59 * + - 56 @@ -31514,8 +31881,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) * + + 12 AS col2, - 80 AS col2 +---- +-80 +12 query I rowsort label-6004 SELECT COUNT ( * ) + 52 AS col2 @@ -31677,8 +32047,11 @@ SELECT ALL - - 40 - - 75 # 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 col2" at position 0 and "Int64\(0\) \* Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 35 AS col2, + 0 * + 59 col2 +---- +-35 +0 query I rowsort label-6035 SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * 11 * - 16 @@ -32453,8 +32826,11 @@ 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\(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\. +query II valuesort 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 +---- +5762 +NULL query I rowsort SELECT + 38 * - + 98 - - 50 AS col2 @@ -32579,8 +32955,11 @@ SELECT ALL - 36 / ( 98 ) + + - 5 + - 10 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1975 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(79\) AS col2" at position 0 and "sum\(DISTINCT Int64\(12\)\) \* Int64\(\-3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + + 25 ) * + 79 AS col2, + SUM ( DISTINCT 12 ) * - 3 AS col2 +---- +-36 +1975 query I rowsort label-6208 SELECT + SUM ( ALL + - 32 ) + 24 @@ -32663,8 +33042,11 @@ SELECT 38 + 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 AS col0, 65 AS col0 +---- +25 +65 query I rowsort SELECT 48 * + 16 @@ -32865,8 +33247,11 @@ SELECT ALL - - 12 / - 10 + 97 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - -7380 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "Int64\(\-60\) \* \(\- Int64\(\-91\)\) \+ Int64\(20\) \* \(\- Int64\(96\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 55 AS col2, - 60 * - - 91 + 20 * - + 96 AS col2 +---- +-7380 +55 query I rowsort label-6263 SELECT + - COALESCE ( + 53, SUM ( DISTINCT 93 ) ) * - - 22 + SUM ( - 85 ) + + 3 / + 33 * + 52 @@ -33040,8 +33425,11 @@ SELECT + + 18 - - - 47 # 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 "\(\- max\(DISTINCT \(\- Int64\(\-51\)\)\)\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( DISTINCT - - 51 ) AS col0, + 38 AS col0 +---- +-51 +38 query I rowsort label-6296 SELECT ALL - 55 + 15 - COALESCE ( + COUNT ( * ), + - NULLIF ( + 79, 76 * 23 + + - 93 ), - 71 + + 53 ) * - - 86 AS col1 @@ -33082,8 +33470,11 @@ SELECT - + 28 - 4 - - 76 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3900 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-53\)\) \+ CAST\(NULL AS Float64\) AS col0" at position 0 and "\(\- coalesce\(Int64\(50\), Int64\(\-28\), Int64\(83\) \* Int64\(98\) \+ nullif\(\(\- Int64\(\-83\)\), CAST\(Int64\(51\) AS Int32\)\)\)\) \* Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - - 53 + + CAST ( NULL AS FLOAT8 ) AS col0, + ( - COALESCE ( + 50, + - 28, + 83 * 98 + NULLIF ( - - 83, CAST ( 51 AS INTEGER ) ) ) ) * 78 AS col0 +---- +-3900 +NULL query I rowsort label-6304 SELECT ALL CASE 41 WHEN + + 23 THEN NULL WHEN - COUNT ( * ) / - CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE 1 END THEN 53 ELSE + ( ( + 5 ) ) END @@ -33210,8 +33601,11 @@ SELECT + CAST ( + 81 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 75 AS col1, 76 col1 +---- +75 +76 query II rowsort SELECT DISTINCT + 63 AS col2, + 94 AS col1 @@ -33711,8 +34105,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) col1, - 46 col1 +---- +-1 +-46 query I rowsort label-6423 SELECT - 72 / 23 * + 76 AS col2 @@ -33955,8 +34352,11 @@ SELECT 38 * + 55 + - 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) \+ Int64\(91\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 32 + 91 AS col1, 81 col1 +---- +59 +81 query I rowsort SELECT ALL + 74 * 30 AS col2 @@ -34346,8 +34746,11 @@ SELECT CASE + - 34 WHEN CAST ( 30 AS INTEGER ) THEN - NULLIF ( COUNT ( - 0 ), + # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 2201 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 0 and "Int64\(50\) \* Int64\(44\) \* count\(Int64\(13\)\) \+ Int64\(0\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 89 AS col1, 50 * + 44 * COUNT ( + 13 ) + + - 0 + + + COUNT ( * ) col1 +---- +2201 +89 query I rowsort label-6543 SELECT - 14 + - + 35 + - COUNT ( * ) @@ -34367,8 +34770,11 @@ SELECT NULLIF ( COUNT ( * ), + 11 * 46 + - 79 - + 92 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 4565 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 0 and "Int64\(83\) \* Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 11 AS col0, 83 * 55 AS col0 +---- +11 +4565 query II rowsort label-6547 SELECT DISTINCT + NULLIF ( + 45, + COUNT ( ALL + 12 ) * + + 81 ), + 98 AS col1 @@ -34486,8 +34892,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col1" at position 0 and "Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 51 AS col1, - 60 AS col1 +---- +-60 +51 query II rowsort SELECT - 15 * 15 - + 11, + 94 - 52 AS col2 @@ -34924,8 +35333,11 @@ SELECT ALL - ( + 30 ) * - COALESCE ( + + 42, + COUNT ( CAST ( + 5 AS INTEGER ) ) # 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 "Int64\(\-54\) \+ Int64\(82\) \+ Int64\(31\) \+ Int64\(\-53\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 54 + + 82 + + 31 + - 53 AS col1, 5 AS col1 +---- +5 +6 query I rowsort label-6653 SELECT MAX ( - 7 ) AS col1 @@ -34958,8 +35370,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - -51 -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\) \+ Int64\(\-97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 19 AS col0, + 46 + - 97 AS col0 +---- +-51 +19 query I rowsort label-6659 SELECT + + 3 / - 6 * - 86 + + 65 col1 @@ -35353,8 +35768,12 @@ SELECT 61 * 85 # Datafusion - Expected - -36 # Datafusion - Expected - 3210 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* Int64\(49\) \+ Int64\(\-73\) AS col1" at position 1 and "\(\- CAST\(NULL AS Int32\)\) \* CAST\(\(\- Int64\(19\)\) AS Float64\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort SELECT ALL - CAST ( + - ( + - 36 ) AS INTEGER ) AS col2, + 67 * + 49 + - 73 AS col1, - CAST ( NULL AS INTEGER ) * CAST ( - + 19 AS FLOAT8 ) AS col1 +---- +-36 +3210 +NULL query I rowsort SELECT ALL - ( 38 ) + 24 + - 18 * + + 66 AS col2 @@ -35537,8 +35956,11 @@ 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\(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\. +query II valuesort 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 +---- +45 +NULL query I rowsort label-6769 SELECT + 43 / + COUNT ( * ) + + 51 AS col2 @@ -35569,8 +35991,11 @@ SELECT + CAST ( - 87 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 2656 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "Int64\(83\) \* Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 2 AS col0, 83 * 32 AS col0 +---- +2 +2656 query III rowsort label-6775 SELECT - - 3 - + + 45 AS col1, COUNT ( * ) / - 8 AS col2, + - 39 AS col0 @@ -36229,8 +36654,11 @@ SELECT ALL ( + - 4 ) AS col2 # 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\(\-25\) / Int64\(17\) \+ Int64\(77\) 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 II valuesort SELECT ALL - 25 / + 17 + 77 AS col1, COUNT ( 95 ) AS col1 +---- +1 +76 query I rowsort label-6900 SELECT - 16 + + + 30 + + + COUNT ( * ) * + - NULLIF ( + 96, 13 + + 53 ) AS col0 @@ -36729,8 +37157,11 @@ SELECT ALL 90 / + - 11 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 99 AS col0, COUNT ( * ) AS col0 +---- +-99 +1 query II rowsort label-6993 SELECT ALL - 44, - CAST ( - 45 AS INTEGER ) col2 @@ -36798,8 +37229,11 @@ SELECT ALL - CAST ( - 25 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 693 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* \(\- coalesce\(\(\- Int64\(76\)\), Int64\(26\)\)\) / Int64\(71\) \* Int64\(77\) AS col2" at position 0 and "nullif\(CAST\(NULL AS Int32\), Int64\(\-77\)\) \- Int64\(15\) \- \(\- coalesce\(Int64\(51\), \(\- coalesce\(Int64\(83\), Int64\(18\) \* Int64\(\-72\) \* \(\- Int64\(\-16\)\) \* Int64\(\-24\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +693 +NULL query II rowsort label-7006 SELECT DISTINCT NULLIF ( + ( + + 69 ), 31 + - ( - 87 ) ) col1, COALESCE ( - SUM ( ALL + 85 ), + 30 ) * 65 + 1 @@ -36971,8 +37405,12 @@ SELECT + 97 * + 9 + COALESCE ( - 23, - ( + + 28 ) * 20 + 78 ) AS col1 # Datafusion - Expected - 6338 # Datafusion - Expected - 2009 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(79\) \+ CAST\(Int64\(97\) AS Int32\) AS col1" at position 0 and "Int64\(11\) \+ \(\- coalesce\(Int64\(54\), \(\- Int64\(\-96\)\)\)\) \* \(\- min\(Int64\(37\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 79 * 79 + CAST ( + + 97 AS INTEGER ) AS col1, 11 + - COALESCE ( + + 54, - - 96 ) * - MIN ( 37 ) AS col1, - 27 - COUNT ( * ) AS col1 +---- +-28 +2009 +6338 query I rowsort label-7039 SELECT DISTINCT + + MAX ( 94 ) AS col2 @@ -37237,8 +37675,11 @@ SELECT 74, + 22 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 1488 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "Int64\(24\) \* Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 AS col2, + 24 * + 62 AS col2 +---- +1488 +82 query I rowsort label-7090 SELECT ALL CASE + ( ( - + AVG ( + 64 ) ) ) WHEN - 22 THEN + 22 * - CASE - 70 WHEN + SUM ( DISTINCT + 30 ) THEN MAX ( - 46 ) * 95 ELSE - + 63 / + - 45 END + - - 55 WHEN 39 * - COUNT ( DISTINCT - 25 ) THEN - 15 * - + SUM ( + + 65 ) - + COUNT ( * ) / 26 WHEN + 21 THEN - 93 END AS col1 @@ -37318,14 +37759,21 @@ SELECT ALL - - ( - + 34 ) + 87 / 61 AS col1 # Datafusion - Expected - -1 # Datafusion - Expected - 4991 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) AS col2" at position 0 and "Int64\(\-52\) \* \(\- Int64\(96\)\) \+ Int64\(\-1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort SELECT - 1 AS col2, - 52 * - + 96 + - 1 col2, NULLIF ( - - 53, + 88 * + 21 / + 5 * CAST ( NULL AS FLOAT8 ) * + - CAST ( NULL AS INTEGER ) / 68 ) AS col1 +---- +-1 +4991 +53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "Int64\(1\) \* Int64\(\-19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 12 AS col2, + 1 * - 19 AS col2 +---- +-19 +12 query I rowsort SELECT 10 + 2 AS col1 @@ -37668,8 +38116,11 @@ SELECT DISTINCT + 53 / + 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- CAST\(Int64\(43\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 19 AS col0, + COUNT ( * ) + - - CAST ( 43 AS INTEGER ) AS col0 +---- +-19 +44 query II rowsort label-7173 SELECT ALL - 31 * + + 66 + + + COUNT ( ALL - 67 ) + - 43 * - ( - COUNT ( ALL - 39 ) ), + 53 + ( + + 32 ) AS col2 @@ -37681,8 +38132,12 @@ SELECT ALL - 31 * + + 66 + + + COUNT ( ALL - 67 ) + - 43 * - ( - COUNT ( ALL - 3 # Datafusion - Expected - 0 # Datafusion - Expected - 9 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(38\)\)\) / Int64\(\-70\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + MAX ( ALL - + 38 ) / + - 70 AS col0, 9 col0, - 85 AS col0 +---- +-85 +0 +9 query I rowsort SELECT ALL 51 * - 13 + ( ( 68 ) ) AS col1 @@ -37784,8 +38239,11 @@ SELECT DISTINCT - - ( - 11 ) * + - 29 AS col1 # 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\(0\) \* \(\- Int64\(\-59\)\) \* Int64\(\-52\) / \(\- sum\(DISTINCT Int64\(64\)\)\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 0 * - - 59 * - 52 / - SUM ( DISTINCT 64 ) AS col1, 16 AS col1 +---- +0 +16 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -37904,8 +38362,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 40 AS col0, - COUNT ( * ) col0 +---- +-1 +-40 query I rowsort label-7215 SELECT ALL NULLIF ( + + 98, + COUNT ( * ) ) * ( + 26 ) - + + 95 @@ -38530,8 +38991,11 @@ SELECT - - ( - 92 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -258876 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) \* Int64\(54\) \* \(\- Int64\(\-51\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 94 * 54 * - - 51 AS col0, COUNT ( * ) AS col0 +---- +-258876 +1 query I rowsort label-7335 SELECT ALL ( + SUM ( 15 ) ) / + 89 * - 16 AS col2 @@ -39148,8 +39612,11 @@ SELECT ALL 19 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 73 AS col1, 48 AS col1 +---- +48 +73 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -39184,8 +39651,12 @@ 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\(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\. +query III valuesort 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 +---- +142 +35 +NULL query I rowsort SELECT ALL 59 * - - 76 @@ -39226,8 +39697,11 @@ SELECT - NULLIF ( + + 6, - 63 + - COALESCE ( + - 25, 77 * 67, + 8 ) + + COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 1290 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-17\)\) AS col2" at position 0 and "Int64\(15\) \* Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 17 AS col2, 15 * + + 86 AS col2 +---- +1290 +17 query I rowsort label-7466 SELECT DISTINCT - 9 / + ( + - 44 ) * - ( - 78 ) AS col0 @@ -40977,8 +41451,11 @@ SELECT + + 66 + - + 85 + - 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(4\)\), count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(70\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COALESCE ( - + 4, COUNT ( * ) ) AS col1, + CAST ( NULL AS INTEGER ) * 70 + COUNT ( * ) AS col1 +---- +-4 +NULL query I rowsort SELECT ALL + ( + NULLIF ( - 84, - - 62 * 95 + + 48 ) ) @@ -41008,8 +41485,11 @@ SELECT + 14 + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 139 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \+ 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 II valuesort SELECT + 54 + + 85 AS col2, 60 AS col2 +---- +139 +60 query I rowsort label-7814 SELECT ALL + 20 * 55 * - - COUNT ( * ) @@ -41085,8 +41565,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL CAST ( NULL AS FLOAT8 ) AS col0, + 71 + - COUNT ( * ) col0 +---- +70 +NULL query I rowsort SELECT DISTINCT + NULLIF ( 71, - - 52 ) * - - 60 AS col2 @@ -41259,8 +41742,11 @@ 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\(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\. +query II valuesort SELECT 95 + COUNT ( * ) * + + 25 + - 52 AS col1, ( + - 57 ) AS col1 +---- +-57 +68 query I rowsort label-7862 SELECT 2 / + 74 @@ -42247,8 +42733,11 @@ SELECT + 73 + + 65 + - 71 * 71 * - - NULLIF ( + 8, + 83 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \+ Int64\(52\) \+ Int64\(\-38\) \- Int64\(71\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 + + 52 + - 38 - ( 71 ) AS col1, + 34 AS col1 +---- +30 +34 query I rowsort SELECT DISTINCT + - 99 + 69 AS col2 @@ -42430,8 +42919,11 @@ SELECT COUNT ( * ) - - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 3786 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col1" at position 0 and "Int64\(11\) \- Int64\(\-41\) \* Int64\(90\) \+ Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 55 AS col1, + 11 - - 41 * + 90 + 85 col1 +---- +3786 +55 query II rowsort label-8087 SELECT ALL 7 AS col1, + COUNT ( * ) * - 18 @@ -43124,8 +43616,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 130696 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \* Int64\(\-78\) \* CAST\(\(\- Int64\(\-54\)\) AS Int32\) \+ Int64\(2\) \- \(\- Int64\(47\)\) \- Int64\(7\) \+ Int64\(82\) AS col2" at position 0 and "max\(Int64\(77\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 31 * + ( - 78 ) * + CAST ( - - 54 AS INTEGER ) + 2 - - + 47 - + 7 + + 82 AS col2, + MAX ( 77 ) AS col2 +---- +130696 +77 query I rowsort label-8216 SELECT ALL + 72 + - CAST ( NULL AS INTEGER ) @@ -43372,8 +43867,11 @@ SELECT DISTINCT ( + 16 ) / + ( 69 ) + + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 95 AS col1, + 69 AS col1 +---- +69 +95 query I rowsort label-8263 SELECT - + 60 / + + 78 + + 40 @@ -43430,8 +43928,11 @@ SELECT - COUNT ( * ), 97 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-59\) / Int64\(17\) \* \(\- CASE Int64\(47\) WHEN Int64\(8\) / Int64\(92\) THEN NULL WHEN Int64\(15\) \+ Int64\(\-65\) \* Int64\(70\) \* Int64\(77\) THEN Int64\(\-11\) END\) \* Int64\(79\) \+ \(\- CASE Int64\(\-55\) WHEN Int64\(\-18\) THEN Int64\(0\) \* Int64\(\-62\) \+ \(\- min\(Int64\(\-92\)\)\) ELSE count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(45\) END\) \* Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +NULL +NULL query I rowsort label-8274 SELECT ALL + 8 + + + 33 * COUNT ( * ) col2 @@ -43441,8 +43942,11 @@ 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\(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\. +query II valuesort SELECT 84 AS col0, COALESCE ( COUNT ( * ), - CASE - + ( - + 55 ) WHEN - 77 THEN ( + - 81 ) WHEN + + COUNT ( * ) * - COUNT ( * ) * + 51 THEN NULL ELSE NULL END ) AS col0 +---- +1 +84 query I rowsort label-8276 SELECT DISTINCT - COUNT ( * ) * - 26 + - ( - 96 ) AS col2 @@ -43528,8 +44032,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1955 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \* Int64\(85\) AS col0" at position 0 and "\(\- count\(Int64\(\-55\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 23 * + 85 AS col0, - COUNT ( - 55 ) AS col0 +---- +-1 +-1955 query I rowsort label-8292 SELECT + 88 - - + 84 * + COUNT ( * ) @@ -43707,8 +44214,11 @@ SELECT DISTINCT 41 * MAX ( - 11 ) AS col0, + COUNT ( * ) * + 8 / + + MAX ( ALL + # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 74 AS col1, + 64 AS col1 +---- +-74 +64 query I rowsort SELECT ALL 75 + - - 89 AS col1 @@ -43810,8 +44320,11 @@ SELECT ALL - + ( 47 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 60 AS col0, + 68 AS col0 +---- +-60 +68 query I rowsort label-8344 SELECT DISTINCT 95 * - COUNT ( * ) AS col2 @@ -43883,8 +44396,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 53 * - COUNT ( * ) col0, 8 AS col0 +---- +53 +8 query I rowsort label-8358 SELECT DISTINCT NULLIF ( + - 41, 93 ) + COUNT ( * ) + + 79 * MAX ( + + 47 ) @@ -44243,8 +44759,11 @@ SELECT - 87 * + COUNT ( * ) * - 63 * + + 6 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-53\) AS Int32\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( - 53 AS INTEGER ) AS col2, 0 AS col2 +---- +-53 +0 query I rowsort SELECT - 63 + + 64 * + 60 * - 41 @@ -44546,8 +45065,11 @@ SELECT 84 - + - 58 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 180 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col2" at position 0 and "Int64\(36\) \* Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 AS col2, 36 * 5 AS col2 +---- +180 +69 query II rowsort label-8483 SELECT ALL 12 col2, MAX ( - + 6 ) @@ -45084,8 +45606,12 @@ SELECT + 79, 99 * + 55 + + ( 38 ) AS col0 # Datafusion - Expected - 91 # Datafusion - Expected - 93 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col2" at position 0 and "\(\- Int64\(\-93\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 91 AS col2, - ( + - 93 ) AS col2, - 61 col0 +---- +-61 +91 +93 query I rowsort SELECT DISTINCT 4 + + 69 * + - 60 AS col0 @@ -45224,8 +45750,11 @@ SELECT - - SUM ( + 60 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 807 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) AS col1" at position 0 and "Int64\(60\) \+ \(\- Int64\(34\)\) \+ Int64\(81\) \* CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\) \+ \(\- Int64\(35\)\) \* Int64\(\-22\) \- \(\- Int64\(\-70\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 1 AS col1, + 60 + - + 34 + 81 * CAST ( - - ( + + COUNT ( * ) ) AS INTEGER ) + - + 35 * ( - 22 ) - - - 70 AS col1 +---- +-1 +807 query I rowsort SELECT - NULLIF ( + 89, 22 ) AS col1 @@ -45325,8 +45854,11 @@ SELECT DISTINCT - 42, 46 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 col0" at position 0 and "Int64\(83\) / Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( 79 ) AS col0, 83 / 80 AS col0 +---- +-79 +1 query I rowsort SELECT ALL - CASE 44 WHEN - 6 THEN - + ( ( 80 ) ) END @@ -45614,8 +46146,12 @@ SELECT - - 65 * + + 32 * - 95 * + + 10 AS col0 # Datafusion - Expected - NULL # Datafusion - Expected - 2 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 1 and "Int64\(\-55\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - + CASE - 95 WHEN ( - COUNT ( * ) ) THEN NULL WHEN + - 36 / COUNT ( * ) - + CASE + - 66 WHEN 48 THEN + 7 WHEN 97 THEN - 37 ELSE + 31 END * 90 - 43 THEN - COALESCE ( + 81, ( + + 64 ) ) END * + 28 + + - COUNT ( DISTINCT - ( + + 66 ) ), 2 AS col2, - 55 col2 +---- +-55 +2 +NULL query I rowsort SELECT - - ( 91 ) @@ -46287,8 +46823,11 @@ SELECT + 45 / 17 * + - 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* \(\- Int64\(\-58\)\) \+ Int64\(\-52\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(14\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 77 * - - 58 + + - 52 + ( + CAST ( NULL AS INTEGER ) ) AS col0, 14 + + COUNT ( * ) AS col0 +---- +15 +NULL query II rowsort label-8814 SELECT DISTINCT + COUNT ( * ) / - CAST ( NULL AS INTEGER ), - 28 + + + COUNT ( + 76 ) AS col1 @@ -46761,8 +47300,11 @@ 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\(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\. +query II valuesort SELECT + COALESCE ( - 4, 86, 23 * - - COUNT ( * ) - + + 33 ) AS col1, + COALESCE ( + + 53, + 46, + + COUNT ( * ) ) AS col1 +---- +-4 +53 query I rowsort label-8903 SELECT + - 81 - - 18 / 44 * 48 @@ -47169,8 +47711,11 @@ SELECT 16 - + 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "Int64\(\-95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 19 AS col0, - 95 AS col0 +---- +-95 +19 query I rowsort SELECT DISTINCT 57 * + 44 @@ -47243,8 +47788,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 50 AS col2, COUNT ( * ) - + 33 AS col2 +---- +-32 +50 query II rowsort label-8994 SELECT - 61, + CASE - - 4 WHEN + 59 * + + 22 + + COALESCE ( - 87, - - 25 - + COUNT ( * ) + 8 ) * + 83 THEN + - 4 WHEN 26 THEN + 23 WHEN + - ( + + SUM ( ALL - ( + 47 ) ) ) * - COUNT ( - 41 ) THEN NULL END + 55 - 88 + COUNT ( * ) + + 97 AS col1 @@ -47758,8 +48306,11 @@ SELECT - + 14 col0, + 2 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 AS col2, + COUNT ( * ) AS col2 +---- +1 +30 query I rowsort SELECT - 56 * + 44 AS col0 @@ -47805,8 +48356,11 @@ SELECT ALL - CAST ( + 13 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -7998 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) \* Int64\(86\) AS col0" at position 0 and "\(\- max\(CASE \(\- Int64\(65\)\) WHEN Int64\(10\) / \(\- Int64\(2\)\) THEN NULL ELSE Int64\(35\) END\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 93 * + 86 AS col0, - MAX ( CASE - + 65 WHEN + 10 / - + 2 THEN NULL ELSE 35 END ) AS col0 +---- +-35 +-7998 query I rowsort label-9101 SELECT 90 / 24 * 93 AS col0 @@ -47982,8 +48536,11 @@ SELECT - ( 7 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ Int64\(14\) \* Int64\(\-7\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 52 + + 14 * - 7 * COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col1 +---- +-46 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -49038,8 +49595,11 @@ SELECT + COALESCE ( - 40, 60 * 18, - 99 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 462 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col1" at position 0 and "Int64\(66\) \* Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 32 AS col1, + 66 * + 7 AS col1 +---- +-32 +462 query I rowsort SELECT ALL + + 74 * - 55 @@ -49548,8 +50108,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, NULLIF ( 77, - 87 * ( 5 ) * 50 + - 37 ) AS col0 +---- +-1 +77 query I rowsort SELECT + 61 + + 2 AS col0 @@ -49566,8 +50129,12 @@ SELECT 51, 82 * - + 41 + + ( - 88 ) AS col0 # Datafusion - Expected - -2 # Datafusion - Expected - 70 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + 2, + 70 AS col2, COUNT ( * ) AS col2 +---- +-2 +1 +70 query II rowsort label-9438 SELECT - 88, + SUM ( ALL + 8 ) AS col0 @@ -50294,8 +50861,11 @@ SELECT - 5 + 81 # 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 "Int64\(69\) \+ \(\- Int64\(51\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 19 AS col0, 69 + - + 51 AS col0 +---- +18 +19 query II rowsort label-9577 SELECT - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - - 93 col0, - 86 * + 81 @@ -50764,8 +51334,11 @@ 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\(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\. +query II valuesort SELECT - 45 + 82 + - ( 29 ) + + + ( - 68 ) + - 48 * + COALESCE ( COUNT ( * ), - 93 + 52 ) AS col1, 32 * - 65 * - 57 AS col1 +---- +-108 +118560 query I rowsort label-9668 SELECT - SUM ( ALL - 94 ) * - - 29 @@ -51025,8 +51598,11 @@ SELECT ALL + - 27 + - - COUNT ( - ( + 35 ) ) * + 32 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1377008 # Datafusion - Expected - -4059 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* Int64\(61\) \* Int64\(33\) \* Int64\(36\) \+ Int64\(0\) \+ Int64\(84\) \+ Int64\(32\) AS col2" at position 0 and "Int64\(\-99\) \* Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 19 * 61 * + 33 * 36 + - 0 + 84 + 32 AS col2, - 99 * + 41 AS col2 +---- +-4059 +1377008 query II rowsort label-9718 SELECT ALL - CAST ( 74 AS INTEGER ) AS col1, - 2 / MIN ( + + 42 ) AS col2 @@ -51095,8 +51671,11 @@ SELECT DISTINCT - CAST ( 14 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 AS col1, 58 AS col1 +---- +40 +58 query I rowsort label-9731 SELECT COUNT ( * ) * 14 AS col1 @@ -51314,8 +51893,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(\-28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 77 AS col1, 76 + + COUNT ( * ) - - 28 AS col1 +---- +105 +77 query I rowsort label-9773 SELECT ALL 79 / COUNT ( 29 ) @@ -51336,8 +51918,11 @@ SELECT ALL COUNT ( * ), 93 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "\(\- min\(Int64\(99\)\)\) \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 AS col1, - MIN ( ALL 99 ) + + CAST ( NULL AS INTEGER ) AS col1 +---- +80 +NULL query I rowsort SELECT - + ( 49 ) AS col0 @@ -51400,8 +51985,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 3600 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col1" at position 0 and "Int64\(72\) \* Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 51 AS col1, + 72 * 50 AS col1 +---- +3600 +51 query II rowsort SELECT 97 AS col0, + 60 * - 94 col1 @@ -52236,8 +52824,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - -575 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col0" at position 0 and "Int64\(\-25\) \* Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 94 AS col0, - 25 * 23 AS col0 +---- +-575 +-94 query I rowsort label-9947 SELECT - COUNT ( * ) / + - ( 19 ) AS col1 diff --git a/data/sqlite/random/expr/slt_good_52.slt b/data/sqlite/random/expr/slt_good_52.slt index 9a64da9..cd6cc2d 100644 --- a/data/sqlite/random/expr/slt_good_52.slt +++ b/data/sqlite/random/expr/slt_good_52.slt @@ -315,8 +315,11 @@ SELECT ALL NULLIF ( 46, - 30 * + NULLIF ( + 46, + 66 ) + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 273 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* Int64\(21\) AS col0" at position 0 and "Int64\(\-28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 13 * 21 AS col0, - 28 AS col0 +---- +-28 +273 query I rowsort label-53 SELECT ALL NULLIF ( 29, + 38 * ( + 8 ) - - + 41 - 11 * + + COUNT ( * ) * - + 85 * + COUNT ( 40 ) ) AS col2 @@ -556,8 +559,11 @@ SELECT ALL MAX ( DISTINCT 34 ) + - - 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(44\)\) AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 44 AS col2, 64 AS col2 +---- +-44 +64 query I rowsort SELECT 59 * - - 20 AS col1 @@ -656,8 +662,11 @@ SELECT + 59 / + + 89 + COUNT ( * ) + 54 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 1122 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col2" at position 0 and "Int64\(34\) \* \(\- Int64\(\-33\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 47 AS col2, 34 * - - 33 AS col2 +---- +-47 +1122 query I rowsort SELECT 86 * - 86 @@ -1145,8 +1154,11 @@ SELECT - + 94 * - 16 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col1" at position 0 and "Int64\(\-59\) \+ Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 4 AS col1, - 59 + 61 col1 +---- +-4 +2 query I rowsort SELECT + 85 * + + 41 + 88 @@ -1211,8 +1223,11 @@ 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\(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\. +query II valuesort 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 +---- +-44 +NULL query I rowsort SELECT ALL 74 + + ( - 57 ) AS col1 @@ -2568,15 +2583,22 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 1424 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \- Int64\(\-58\) AS col1" at position 0 and "Int64\(89\) \* Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 21 - + - 58 AS col1, + 89 * 16 AS col1 +---- +1424 +37 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - -61 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ Int64\(\-86\) AS col2" at position 0 and "\(\- Int64\(51\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 8 + - 86 AS col2, - 61, - + 51 AS col2 +---- +-51 +-61 +-78 query I rowsort label-483 SELECT ALL MAX ( 47 ) AS col0 @@ -2618,8 +2640,11 @@ SELECT ( + - 99 ), COUNT ( - - 21 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) / Int64\(62\) \* \(\- CAST\(NULL AS Int32\)\) / Int64\(\-81\) \+ Int64\(\-11\) AS col2" at position 0 and "Int64\(8\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 / + 62 * + - CAST ( NULL AS INTEGER ) / - 81 + + - 11 AS col2, 8 + - ( COUNT ( * ) ) AS col2 +---- +7 +NULL query I rowsort label-491 SELECT ALL + + SUM ( 48 ) + - 25 + + - 78 + 77 * - 91 * - COUNT ( * ) @@ -3572,8 +3597,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 AS col1, 80 + + - 14 + - - COUNT ( * ) col1 +---- +35 +67 query I rowsort label-675 SELECT - 8 + + 19 + COUNT ( * ) col1 @@ -3614,8 +3642,11 @@ SELECT 78 / - + 63 + - 26 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(2\) \* \(\- min\(DISTINCT Int64\(\-21\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, 2 * - MIN ( DISTINCT - 21 ) col2 +---- +1 +42 query I rowsort SELECT - + 4 + - 81 AS col2 @@ -3977,8 +4008,11 @@ SELECT + ( COUNT ( * ) ) * COUNT ( * ) * + + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ count\(CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col1, 29 col1 +---- +1 +29 query I rowsort label-752 SELECT + - COUNT ( - + 99 ) + - 0 + COUNT ( * ) @@ -5770,8 +5804,11 @@ NULL # 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\(\-33\) AS col2" at position 0 and "min\(DISTINCT Int64\(22\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 33 AS col2, MIN ( DISTINCT + + 22 ) AS col2 +---- +-33 +22 query I rowsort label-1098 SELECT ALL COUNT ( * ) + NULLIF ( + 67, 87 ) @@ -6076,8 +6113,11 @@ SELECT - NULLIF ( 16, 80 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(77\)\) AS col2" at position 0 and "Int64\(51\) / Int64\(61\) \+ Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + SUM ( + 77 ) AS col2, 51 / + 61 + 22 AS col2 +---- +22 +77 query I rowsort label-1156 SELECT ALL - COUNT ( * ) * + 83 * + - 69 + - 25 - + + 64 * 23 AS col1 @@ -6590,8 +6630,11 @@ SELECT + 30 / - 60 - - 61 / + COUNT ( * ) 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 "\(\- nullif\(Int64\(23\), Int64\(17\)\)\) AS col2" at position 0 and "Int64\(\-1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - NULLIF ( + 23, + + 17 ) col2, - 1 AS col2 +---- +-1 +-23 query I rowsort label-1253 SELECT ALL - MIN ( + + 95 ) @@ -6857,8 +6900,11 @@ SELECT + 10, ( - 10 ) + + 51 AS col2 # 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\(1\) \- \(\- Int64\(\-88\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 AS col1, 1 - - - 88 AS col1 +---- +-87 +80 query II rowsort SELECT + 71, 17 * + + COALESCE ( - + 64, 79 ) AS col0 @@ -7235,8 +7281,11 @@ SELECT ALL 57 + CASE - 15 WHEN + - 47 * 49 * - ( - 35 ) + + 88 THEN NULL WHEN - # Datafusion - Datafusion expected results: # Datafusion - Expected - -2063 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \+ Int64\(25\) \* \(\- CAST\(Int64\(85\) AS Int32\)\) AS col0" at position 0 and "Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 62 + + + 25 * - CAST ( + 85 AS INTEGER ) AS col0, + 45 AS col0 +---- +-2063 +45 query I rowsort label-1377 SELECT ALL - + 13 + 92 * - + 0 / - - 47 @@ -7401,8 +7450,11 @@ SELECT DISTINCT + 41 * + 75 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 137 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \+ Int64\(41\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 96 + + + 41 AS col2, 13 AS col2 +---- +13 +137 query I rowsort label-1409 SELECT ALL NULLIF ( 63, 43 + - + CAST ( NULL AS INTEGER ) * + 85 - + 96 ) @@ -7487,8 +7539,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(Int64\(68\)\)\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - AVG ( 68 ) * - ( - CAST ( NULL AS INTEGER ) ) - - COUNT ( * ) col2, 63 col2 +---- +63 +NULL query I rowsort label-1426 SELECT + 10 * 57 + - - 30 + - 69 * - - CAST ( NULL AS INTEGER ) AS col2 @@ -7579,8 +7634,11 @@ SELECT ALL 91 + + 7 * COALESCE ( - ( - 56 ), COUNT ( * ) / + 60 + + COUNT ( * ), # Datafusion - Datafusion expected results: # Datafusion - Expected - -3306 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(55\) WHEN CAST\(NULL AS Int32\) THEN NULL ELSE Int64\(\-87\) \* \(\- Int64\(\-38\)\) END AS col1" at position 0 and "Int64\(34\) \- Int64\(\-56\) \+ Int64\(\-89\) \- coalesce\(Int64\(\-37\), Int64\(35\) \* CAST\(NULL AS Int32\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-3306 +38 query I rowsort label-1444 SELECT DISTINCT + 9 + + + COUNT ( * ) @@ -7656,8 +7714,11 @@ SELECT - 50 * + + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30039 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* Int64\(31\) \* Int64\(51\) AS col0" at position 0 and "Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 19 * + 31 * + 51 AS col0, - 85 AS col0 +---- +-85 +30039 query I rowsort label-1459 SELECT - 63 * + COUNT ( * ) + 15 col1 @@ -7803,8 +7864,11 @@ SELECT 7 AS col1, 53 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT ALL 20 AS col1, + ( - 52 ) AS col1 +---- +-52 +20 query I rowsort label-1487 SELECT 15 + - COALESCE ( + 85, - - 60 / + + 17 * + - 17 - - 46 - + 44 / - CAST ( NULL AS INTEGER ) / + - COUNT ( * ) + + - ( - COUNT ( - 25 ) ) + - CAST ( NULL AS INTEGER ), - + 18, + 10 * COUNT ( * ) ) @@ -8067,8 +8131,12 @@ SELECT - 68 / 75 # Datafusion - Expected - NULL # Datafusion - Expected - 0 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + + 86 + + CAST ( NULL AS INTEGER ) col0, 0 AS col2, + + 80 AS col0 +---- +0 +80 +NULL query I rowsort label-1536 SELECT + CASE 98 WHEN NULLIF ( - 26, - CAST ( 97 AS INTEGER ) ) THEN NULL WHEN + 87 * 5 * - 27 + 17 * - AVG ( ALL - 76 ) THEN + + ( 54 ) * + + 86 + + 33 + CASE 91 WHEN - 82 THEN NULL WHEN + 1 THEN 8 * - COUNT ( * ) + + 38 WHEN 57 THEN + 31 * - 50 - - 32 END * COALESCE ( 78, COALESCE ( - MAX ( DISTINCT - 80 ), - 43 / CAST ( ( - 61 ) AS INTEGER ) ) + 0 ) ELSE NULL END AS col1 @@ -8123,8 +8191,11 @@ SELECT - 79 / 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1671 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(43\) \* coalesce\(\(\- Int64\(39\)\), Int64\(12\), Int64\(\-44\)\) \+ Int64\(55\) \+ Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 43 * + COALESCE ( - + 39, 12, - 44 ) + + 55 + - 49 AS col2 +---- +-1671 +1 query I rowsort label-1547 SELECT ALL + MAX ( ALL - 28 ) @@ -8201,8 +8272,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 AS col1, 33 AS col1 +---- +33 +69 query I rowsort label-1562 SELECT - COUNT ( * ) + - + 55 @@ -8240,8 +8314,11 @@ SELECT ALL - NULLIF ( 33, NULLIF ( + 48, + 16 * - + 49 ) ) AS col1 # 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 "Int64\(\-3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 AS col2, - 3 AS col2 +---- +-3 +70 query II rowsort label-1569 SELECT DISTINCT 58 + - 55 + + - CAST ( 47 AS INTEGER ) + - 49 - SUM ( ALL - - 12 ) - - 19 * - 41 AS col2, 39 @@ -8701,8 +8778,11 @@ SELECT ALL - 85 AS col0, - MAX ( 10 ) + 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(42\) \* Int64\(3\) \+ \(\- sum\(Int64\(53\)\)\) \+ \(\- Int64\(\-22\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, + 42 * 3 + - SUM ( 53 ) + - - 22 AS col1 +---- +1 +95 query I rowsort label-1658 SELECT + 72 / + + CAST ( NULL AS INTEGER ) + - 27 / + COUNT ( * ) * + 82 @@ -8899,8 +8979,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 AS col0, + 31 * + 22 + - COUNT ( * ) col0 +---- +37 +681 query I rowsort label-1695 SELECT - COALESCE ( + 58, - COALESCE ( + - 52, MIN ( - + 20 ) * + CASE 30 WHEN + 11 THEN + MAX ( ALL + 4 ) WHEN + 67 THEN + - 66 WHEN + 31 - + 88 THEN NULL ELSE - 44 END * - - 34 * - - MIN ( DISTINCT - NULLIF ( 11, - + ( + 59 ) ) ) / + CAST ( + 31 AS INTEGER ), + 71 ) * - CAST ( NULL AS INTEGER ) ) - - 14 @@ -8930,8 +9013,12 @@ NULL # Datafusion - Expected - 0 # Datafusion - Expected - 5 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) / Int64\(74\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 61 / + 74 AS col2, + 5 AS col2, 50 +---- +0 +5 +50 query I rowsort SELECT DISTINCT + ( + 68 ) + + - 10 AS col0 @@ -9087,8 +9174,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(35\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 90 AS col2, - 4 + + COALESCE ( 56, + + 72, - COUNT ( * ) + 35 ) AS col2 +---- +52 +90 query I rowsort label-1730 SELECT + 20 * + MIN ( ALL + 51 ) @@ -9712,8 +9802,11 @@ 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\(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\. +query II valuesort SELECT ALL 77 AS col2, - COUNT ( * ) / + + MIN ( + - 5 ) - 79 + + ( 71 ) - 48 / 36 AS col2 +---- +-9 +77 query I rowsort label-1850 SELECT - 47 / + 69 @@ -9834,8 +9927,11 @@ SELECT SUM ( DISTINCT + 98 ) / - 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col2, 81 AS col2 +---- +-1 +81 query I rowsort SELECT + 91 * - 99 * 8 + - ( - 81 ) AS col2 @@ -10082,8 +10178,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(99\) \+ Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - - 7 ) + - - 14 col1, - COUNT ( * ) * + 99 + + - 18 AS col1 +---- +-117 +21 query II rowsort SELECT - 83, - 95 AS col2 @@ -10115,8 +10214,11 @@ SELECT DISTINCT + 24 + + 78 * - 14 * - - 76 + + 78 # 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\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 AS col0, + 90 AS col0 +---- +9 +90 query I rowsort label-1926 SELECT ALL - 91 - + 30 + COUNT ( * ) AS col0 @@ -10825,8 +10927,11 @@ 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\(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\. +query II valuesort SELECT ALL COALESCE ( + 69, + COALESCE ( + COALESCE ( + 41, + 86 * + 93 - + + 6, + - 21 + + COALESCE ( - + COUNT ( * ), + ( COUNT ( * ) ) ) ), - 15 ) ) AS col2, 82 * 57 AS col2 +---- +4674 +69 query II rowsort label-2063 SELECT - 32 AS col0, ( + ( - 68 ) ) + - 60 + MAX ( 46 ) AS col2 @@ -10891,8 +10996,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-97\) \+ \(\- count\(DISTINCT Int64\(\-77\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 18 * - + 55 * + + 23 AS col0, - 28 + 12 + + 9 / - 30 * - - ( COUNT ( - NULLIF ( - - ( + + 32 ), ( - - 74 ) ) ) ) * + COUNT ( * ) * - 97 + - COUNT ( DISTINCT - 77 ) AS col0 +---- +-17 +22770 query I rowsort SELECT ALL + 41 * - 45 AS col2 @@ -11006,14 +11114,20 @@ 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\(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\. +query II valuesort SELECT - - COUNT ( * ) AS col0, + 19 + - 58 - + 82 AS col0 +---- +-121 +1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ Int64\(\-87\) \+ Int64\(58\) AS col1" at position 0 and "Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 98 + - 87 + 58 AS col1, - 40 AS col1 +---- +-40 +69 query II rowsort label-2098 SELECT - CAST ( NULL AS INTEGER ) AS col2, - 57 AS col1 @@ -11124,8 +11238,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + + 92 * + 99 col2, + COUNT ( * ) / 33 / - - 65 + + 4 + + 11 col2 +---- +15 +9108 query I rowsort SELECT DISTINCT - + 30 + + + 17 - 19 * 22 + - 59 * - 9 @@ -11196,8 +11313,11 @@ SELECT ( + + 61 ) - - 11 + + 48, + 0 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 86 AS col0, 86 AS col0 +---- +86 +86 query II rowsort SELECT ALL 95 AS col1, - 16 @@ -11956,8 +12076,11 @@ SELECT + COUNT ( * ) * - - 79 * + 43 * - 91 * + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2852 # Datafusion - Expected - -4062240 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* Int64\(31\) AS col2" at position 0 and "Int64\(14\) \* Int64\(\-78\) \* Int64\(\-60\) \* Int64\(\-62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 92 * 31 AS col2, 14 * - 78 * - 60 * - 62 AS col2 +---- +-4062240 +2852 query I rowsort SELECT + 75 + + 19 AS col0 @@ -13119,8 +13242,11 @@ SELECT - 36 AS col0, COALESCE ( ( 69 ), - + 95 * - - 34 ) + + 18 * - 70 + - ( NU # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col0" at position 0 and "Int64\(0\) \+ Int64\(\-63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 91 AS col0, 0 + - 63 col0 +---- +-63 +-91 query I rowsort label-2501 SELECT SUM ( - 38 ) + - 74 + - - 65 * NULLIF ( + CASE + 69 WHEN 48 * + - 92 THEN NULL WHEN 91 * + 26 + 60 THEN - 66 * - 37 + - 80 - + - SUM ( DISTINCT - 92 ) END, - - 72 ) @@ -13601,8 +13727,11 @@ SELECT ALL 11 * - 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 392196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "Int64\(\-87\) \* Int64\(98\) \* Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 86 AS col2, - 87 * + 98 * - 46 AS col2 +---- +392196 +86 query I rowsort label-2592 SELECT + 78 * - - MIN ( DISTINCT + 94 ) @@ -13678,8 +13807,11 @@ SELECT ( + + MIN ( - 97 ) ) * + 64 + - + 7 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-61\)\) / Int64\(\-10\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- Int64\(14\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 61 / - 10 AS col1, CAST ( NULL AS INTEGER ) + - ( + 14 ) AS col1 +---- +-6 +NULL query I rowsort SELECT ALL + 7 + + - 64 @@ -14433,8 +14565,11 @@ SELECT + 27 / - 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-66\)\) AS col2" at position 0 and "CAST\(\(\- min\(DISTINCT Int64\(42\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 66 AS col2, CAST ( + - MIN ( DISTINCT ( + 42 ) ) AS INTEGER ) AS col2 +---- +-42 +66 query I rowsort SELECT ALL + 86 - + 90 AS col2 @@ -14548,8 +14683,11 @@ SELECT DISTINCT 93 * + 34 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 435 # Datafusion - Expected - 113 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(87\) AS col2" at position 0 and "Int64\(91\) \+ CAST\(Int64\(22\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 5 * 87 AS col2, 91 + CAST ( 22 AS INTEGER ) AS col2 +---- +113 +435 query I rowsort SELECT 54 * 46 AS col0 @@ -14695,8 +14833,11 @@ SELECT - MIN ( ALL - 97 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \+ Int64\(0\) AS col1" at position 0 and "Int64\(9\) \- Int64\(\-17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 88 + ( + + 0 ) AS col1, + 9 - - 17 AS col1 +---- +-88 +26 query I rowsort SELECT DISTINCT + 55 - - 15 - 7 AS col1 @@ -15247,8 +15388,11 @@ SELECT DISTINCT 61 + - 70 * + 83 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 69 AS col1, 67 AS col1 +---- +67 +69 query I rowsort SELECT DISTINCT + + 40 @@ -15712,8 +15856,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) / \(\- Int64\(\-23\)\) \- \(\- Int64\(8\)\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 / - - 23 - + ( - + 8 ) col2, 6 AS col2 +---- +10 +6 query I rowsort SELECT ALL - 10 + 23 AS col2 @@ -15825,8 +15972,11 @@ SELECT DISTINCT + + COUNT ( * ) / - 48 * + + ( 70 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col2" at position 0 and "\(\- Int64\(\-1\)\) \+ Int64\(21\) \+ Int64\(44\) / Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 97 AS col2, ( - - 1 ) + 21 + + 44 / - 49 AS col2 +---- +-97 +22 query I rowsort label-3022 SELECT COUNT ( * ) + - MAX ( ALL 87 ) AS col0 @@ -16082,8 +16232,11 @@ SELECT ALL + 9 AS col1, + 75 + - 19 + + 71 * + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - -920 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(49\) AS Int32\) AS col2" at position 0 and "Int64\(40\) \* Int64\(\-23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( CAST ( + 49 AS INTEGER ) ) AS col2, 40 * - 23 AS col2 +---- +-920 +49 query II rowsort SELECT + 70 AS col1, + 20 AS col2 @@ -16795,8 +16948,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 75 AS col1, + COUNT ( * ) + + 9 AS col1 +---- +10 +75 query I rowsort SELECT ALL COALESCE ( - 16, + 68 ) AS col1 @@ -17145,8 +17301,11 @@ SELECT ALL - COUNT ( * ) + - CASE + 96 WHEN - 82 THEN NULL WHEN ( - 8 ) THEN - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 37 col2, 16 AS col2 +---- +-37 +16 query I rowsort SELECT 72 * - 10 @@ -17210,8 +17369,11 @@ SELECT 82 + + ( 6 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1701 # Datafusion - Expected - 115 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \* Int64\(63\) AS col2" at position 0 and "CAST\(Int64\(41\) AS Int32\) \+ Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 * + 63 AS col2, CAST ( 41 AS INTEGER ) + + 74 AS col2 +---- +115 +1701 query I rowsort label-3282 SELECT COUNT ( * ) + + 8 * - 9 @@ -17449,8 +17611,11 @@ 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\(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\. +query II valuesort SELECT + + 33 + + 94 / + NULLIF ( 86, - 44 * - - COUNT ( * ) * + - 44 ) + - 25 + + + 20 / + + 14 AS col0, 56 AS col0 +---- +10 +56 query I rowsort label-3326 SELECT + - MAX ( - + CAST ( + ( + 51 ) AS INTEGER ) ) * CAST ( NULL AS INTEGER ) AS col1 @@ -17465,8 +17630,11 @@ 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\(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\. +query II valuesort SELECT - + COALESCE ( 31, - NULLIF ( - COUNT ( * ), - 99 ) ) AS col0, 45 / + 56 + 82 AS col0 +---- +-31 +82 query I rowsort label-3329 SELECT ALL + 84 + + COUNT ( * ) @@ -17557,8 +17725,11 @@ SELECT + 35 * 77 / + 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 61 AS col2, + 36 AS col2 +---- +36 +61 query I rowsort label-3347 SELECT DISTINCT ( - - NULLIF ( - - ( + - CASE 96 WHEN NULLIF ( + COALESCE ( 1, - - 53, 71 ), 54 ) THEN + - 92 / + 6 + + CAST ( NULL AS INTEGER ) + COALESCE ( + 35, + 15 ) END ), 76 ) ) / - 29 * + + 2 * + 84 * - COUNT ( * ) @@ -17656,8 +17827,11 @@ SELECT DISTINCT + 54 + + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 893 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(37\)\) \+ \(\- Int64\(\-41\)\) \+ Int64\(73\) \* Int64\(13\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 97 * COALESCE ( - COUNT ( * ), + 37 ) + - - 41 + 73 * + 13 AS col0, COUNT ( * ) AS col0 +---- +1 +893 query I rowsort SELECT - 24 * - 60 + - ( NULLIF ( + + 82, - 51 - + 82 ) ) @@ -17688,8 +17862,11 @@ SELECT - - NULLIF ( - + 77, - COUNT ( * ) * - 9 + + ( 39 ) + 21 * + + COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(77\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 77 AS col1, COUNT ( * ) AS col1 +---- +-77 +1 query I rowsort label-3372 SELECT ALL 86 - + MAX ( DISTINCT + 49 ) + - 93 / 10 + - 36 @@ -17827,8 +18004,12 @@ SELECT - 58 * + - 23 AS col1 # Datafusion - Expected - -63 # Datafusion - Expected - 13 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(63\)\)\) AS col0" at position 0 and "coalesce\(Int64\(62\), Int64\(\-31\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - SUM ( DISTINCT 63 ) AS col0, 13, + COALESCE ( + 62, - 31 ) col0 +---- +-63 +13 +62 query I rowsort SELECT ALL - NULLIF ( + ( 34 ), 48 ) col1 @@ -18123,8 +18304,11 @@ SELECT - COUNT ( * ) + + + MAX ( 17 ) * + 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- CAST\(Int64\(\-35\) AS Int32\)\)\) AS col0" at position 0 and "Int64\(\-5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( + - CAST ( - 35 AS INTEGER ) ) col0, - 5 AS col0 +---- +-5 +1 query I rowsort label-3455 SELECT DISTINCT COUNT ( * ) + - + 18 + - SUM ( DISTINCT + - 58 ) @@ -18216,8 +18400,12 @@ SELECT 1 + - - NULLIF ( 59, - 88 * CAST ( NULL AS INTEGER ) ) * 1 + + 90 # Datafusion - Expected - 62 # Datafusion - Expected - 25 # Datafusion - Expected - -6743 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(62\) WHEN \(\- Int64\(\-56\)\) \+ \(\- Int64\(\-83\)\) THEN NULL ELSE Int64\(62\) END AS col1" at position 0 and "Int64\(95\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* Int64\(\-71\) \+ Int64\(1\) \+ Int64\(69\) / Int64\(55\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-6743 +25 +62 query I rowsort label-3473 SELECT ALL + COUNT ( * ) * + 9 + - 61 @@ -18283,8 +18471,11 @@ SELECT - 77 * + - 83 * 68 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -424 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* Int64\(\-9\) \- \(\- Int64\(98\)\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 58 ) * - 9 - + - ( + + 98 ) AS col2, 4 col2 +---- +-424 +4 query II rowsort label-3486 SELECT + 0 + + NULLIF ( - - 4, + 20 ) - SUM ( DISTINCT - 52 ) col2, 11 * - 1 + 37 * + 23 @@ -18333,8 +18524,11 @@ SELECT 32 + + 30 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 1584 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "Int64\(24\) \* Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 AS col0, 24 * 66 AS col0 +---- +1584 +51 query II rowsort SELECT - 75 AS col1, - 43 AS col2 @@ -18425,8 +18619,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "count\(CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - COUNT ( * ) AS col2, COUNT ( CAST ( NULL AS INTEGER ) ) AS col2 +---- +0 +1 query I rowsort label-3512 SELECT DISTINCT - CASE - - ( + + COUNT ( * ) ) WHEN - - 62 THEN + ( - + 12 ) WHEN - - 20 THEN - COUNT ( * ) + - 83 END AS col0 @@ -18553,8 +18750,11 @@ SELECT DISTINCT COUNT ( DISTINCT - 15 ) * 1 * + 67 / 85 * - + MIN ( DISTINCT - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 224 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* Int64\(14\) AS col0" at position 0 and "Int64\(\-58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 16 * 14 AS col0, ( - 58 ) AS col0 +---- +-58 +224 query I rowsort label-3537 SELECT + COUNT ( COALESCE ( - 30, - 65 ) ) AS col1 @@ -19054,8 +19254,11 @@ SELECT 36 + + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 61 AS col0, + 75 AS col0 +---- +61 +75 query I rowsort label-3633 SELECT 69 + + 54 * COUNT ( * ) col0 @@ -19184,8 +19387,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \+ Int64\(\-19\) / nullif\(Int64\(51\), max\(Int64\(\-31\)\)\) AS col2" at position 0 and "Int64\(\-34\) \+ Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 70 + - 19 / NULLIF ( 51, + MAX ( ALL - 31 ) ) AS col2, - 34 + + 24 AS col2 +---- +-10 +70 query I rowsort label-3658 SELECT MAX ( + COALESCE ( + 63, + 3 ) ) AS col1 @@ -19422,8 +19628,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( - 20 ) * - MIN ( DISTINCT + 53 ) + - ( + 59 ) + - + 93 AS col1, - ( COUNT ( * ) ) col1 +---- +-1 +908 query II rowsort label-3703 SELECT DISTINCT - 94 * COALESCE ( + NULLIF ( - 29, MAX ( ALL 72 ) ), + 51 ) AS col0, - 5 @@ -19501,8 +19710,11 @@ SELECT + 74 * 69 / - - NULLIF ( + 58, - ( + 21 ) ) + - 79 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \+ Int64\(\-45\) AS col0" at position 0 and "Int64\(20\) \* Int64\(\-20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 + - 45 AS col0, 20 * - 20 col0 +---- +-400 +23 query I rowsort label-3718 SELECT 55 / - + 58 @@ -20170,8 +20382,11 @@ SELECT - 20 * 22 + + COALESCE ( - - 43, - 85 - + - 85 * CAST ( - 49 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -3191 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- Int64\(\-44\)\)\)\) AS col0" at position 0 and "Int64\(\-34\) \* Int64\(\-85\) \* Int64\(97\) / Int64\(\-85\) \+ \(\- Int64\(\-71\)\) \+ Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - ( - - 44 ) AS col0, - 34 * - 85 * 97 / - 85 + - - 71 + + 36 AS col0 +---- +-3191 +44 query I rowsort label-3846 SELECT DISTINCT - + 49 / COUNT ( * ) + + 49 col1 @@ -20257,8 +20472,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(8\) \- Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 * - 85 * - 82 AS col1, 77 * COUNT ( * ) / 8 - 61 AS col1 +---- +-52 +202130 query I rowsort SELECT DISTINCT 28 * - 94 * - - 60 col2 @@ -21329,8 +21547,12 @@ SELECT ALL + NULLIF ( NULLIF ( - 52, - + 25 ), + + 55 ) AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 13 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \+ Int64\(84\) \- Int64\(\-44\) \+ Int64\(43\) / Int64\(\-84\) / Int64\(35\) \- CAST\(NULL AS Int32\) \* \(\- Int64\(63\)\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 98 + + 84 - + - 44 + 43 / + - 84 / + + 35 - + CAST ( NULL AS INTEGER ) * - + 63 AS col0, 13 AS col0, + - 81 col1 +---- +-81 +13 +NULL query I rowsort label-4066 SELECT COALESCE ( - MAX ( ALL + 7 ), + COUNT ( * ) ) AS col2 @@ -21483,8 +21705,11 @@ SELECT + CAST ( 82 AS INTEGER ) * 70 + - 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 986 # Datafusion - Expected - -413 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* Int64\(17\) AS col1" at position 0 and "coalesce\(sum\(Int64\(77\)\), Int64\(50\), Int64\(5\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(66\) \- CAST\(Int64\(12\) AS Int32\)\) \+ Int64\(\-49\) \* Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 * + 17 AS col1, COALESCE ( SUM ( + + 77 ), 50, 5 * - CAST ( NULL AS INTEGER ) + + 66 - + + CAST ( 12 AS INTEGER ) ) + - 49 * + 10 AS col1 +---- +-413 +986 query I rowsort label-4096 SELECT ALL - 79 * COALESCE ( COUNT ( ALL + - 76 ), COUNT ( * ) + + - 95 + - 69, + - COUNT ( * ) ) col0 @@ -21837,8 +22062,11 @@ 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\(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\. +query II valuesort SELECT COALESCE ( - + COALESCE ( - COUNT ( * ), - 3 ), + 59 * - - 2 ) AS col2, 88 AS col2 +---- +1 +88 query I rowsort label-4165 SELECT ALL - 55 * + 5 + 24 / + + 87 AS col0 @@ -21906,8 +22134,11 @@ SELECT ALL 6 * + + 35 * 67 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) / Int64\(\-60\) AS col1" at position 0 and "Int64\(62\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 76 / + - 60 AS col1, + 62 * + COUNT ( * ) col1 +---- +-1 +62 query II rowsort label-4178 SELECT ALL - 49 AS col2, CAST ( NULL AS INTEGER ) @@ -21945,8 +22176,12 @@ SELECT + + 20 - NULLIF ( - SUM ( ALL - 69 ), COUNT ( * ) + - 0 ) AS col0 # Datafusion - Expected - -89 # Datafusion - Expected - 1 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 and "Int64\(6\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 89, COUNT ( * ) AS col1, + 6 AS col1 +---- +-89 +1 +6 query I rowsort SELECT ALL + 40 * + 69 col1 @@ -22172,8 +22407,11 @@ 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\(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\. +query II valuesort SELECT 67 - + 24 / + - 23 * - - COUNT ( * ) + 88 - - - 43 AS col1, COUNT ( * ) / - 82 AS col1 +---- +0 +113 query I rowsort SELECT 9 + - - 17 AS col2 @@ -22256,8 +22494,11 @@ SELECT ALL - - 45 + 65 - - - 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \- 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 II valuesort SELECT + 74 - + COUNT ( 13 ) AS col2, - 6 AS col2 +---- +-6 +73 query II rowsort SELECT + 18 + - 15 * 12 AS col0, - 99 * + 95 @@ -22388,8 +22629,11 @@ SELECT + + 8 + - 18 * SUM ( + 93 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - -2814 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-98\) AS Int32\)\) AS col2" at position 0 and "Int64\(42\) \* Int64\(\-67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - CAST ( - 98 AS INTEGER ) AS col2, 42 * + - 67 AS col2 +---- +-2814 +98 query I rowsort label-4270 SELECT + - 33 + + - COALESCE ( COUNT ( * ), - 5 ) * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + 48 @@ -23277,8 +23521,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 92 + - - 90 + + + 81 AS col2, COUNT ( * ) - + + 35 AS col2 +---- +-34 +263 query I rowsort label-4443 SELECT 13 * - ( + + COUNT ( ALL 71 ) ) - - 77 * - 58 @@ -23299,8 +23546,11 @@ SELECT 8 AS col1, - ( + 89 ) + + + 63 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col0" at position 0 and "Int64\(31\) \+ min\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 20 AS col0, 31 + + MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col0 +---- +-20 +NULL query I rowsort label-4447 SELECT - ( + 75 ) + + COUNT ( * ) - + 56 / 15 @@ -23376,8 +23626,11 @@ SELECT 53 + + 91 + - 95 * + 56 * + - COALESCE ( + 5, - CAST ( 14 AS INTEGER ) * # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 274 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(12\)\) AS col2" at position 0 and "Int64\(\-9\) \* Int64\(\-39\) \+ coalesce\(Int64\(\-77\), Int64\(\-59\) \+ Int64\(88\), Int64\(58\), Int64\(87\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 12 AS col2, - 9 * - 39 + + COALESCE ( + - 77, - 59 + 88, 58, 87 ) AS col2 +---- +-12 +274 query I rowsort label-4462 SELECT + CAST ( NULL AS INTEGER ) / + - ( - COUNT ( * ) ) - - 6 + - CAST ( NULL AS INTEGER ) + - 25 @@ -23454,8 +23707,12 @@ SELECT ALL - ( 14 ) AS col0 # Datafusion - Expected - -75 # Datafusion - Expected - -88 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col1" at position 1 and "Int64\(85\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 75 col0, - 88 col1, 85 AS col1 +---- +-75 +-88 +85 query II rowsort SELECT ALL - 81, 78 + + + 91 AS col2 @@ -23471,8 +23728,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 AS col2, COUNT ( * ) + 93 col2 +---- +55 +94 query I rowsort label-4480 SELECT + SUM ( ALL 33 ) @@ -23617,8 +23877,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) / + 93 AS col1, - COUNT ( * ) col1 +---- +-1 +0 query I rowsort SELECT ( 43 ) AS col0 @@ -24332,8 +24595,11 @@ SELECT - + 76 + COALESCE ( + 14, - CAST ( + - COALESCE ( - 15, 93 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 19 AS col1, 30 col1 +---- +19 +30 query I rowsort label-4642 SELECT + - COALESCE ( + 64, + + 33 ) * + + ( - - COUNT ( * ) ) + - ( COUNT ( * ) ) @@ -24477,8 +24743,11 @@ SELECT ALL 73 + - COUNT ( * ) * 96 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col0" at position 0 and "Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 98 AS col0, 15 AS col0 +---- +-98 +15 query I rowsort label-4669 SELECT - COUNT ( ALL CAST ( NULL AS INTEGER ) ) * 60 + 28 @@ -24558,8 +24827,11 @@ SELECT DISTINCT + + COALESCE ( - 48, 4, 97 + 22 + - - 18 + + COUNT ( * ) / - ( + # 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 "Int64\(\-73\) \+ Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 57 AS col0, ( - 73 ) + 89 AS col0 +---- +16 +57 query I rowsort SELECT + 13 + + 24 @@ -24614,8 +24886,11 @@ 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\(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\. +query II valuesort SELECT ALL ( - - 78 ) * + COUNT ( * ) + ( - COUNT ( * ) ) col2, 54 * + 79 + - COALESCE ( - COUNT ( * ), - + 29 ) col2 +---- +4267 +77 query I rowsort label-4695 SELECT - MAX ( - 63 ) + + 64 @@ -25017,8 +25292,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 3 * - COUNT ( * ) AS col0, 49 AS col0 +---- +-3 +49 query I rowsort label-4773 SELECT - 54 * - 66 + + CAST ( - + ( - - 73 ) AS INTEGER ) * CASE + + 43 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + + CASE + ( + - 96 ) WHEN - - 18 THEN + 92 + + 35 END * 33 THEN 74 END @@ -25180,8 +25458,11 @@ SELECT - 63 * - 35 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 26 col1, - 6 AS col1 +---- +-6 +26 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -25312,8 +25593,11 @@ SELECT ALL + 75 + + ( + - 2 ) * + + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -699 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-1\)\) \- Int64\(\-55\) \* Int64\(38\) \+ Int64\(93\) \* Int64\(\-30\) AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 1 - - 55 * 38 + 93 * - 30 AS col2, 46 AS col2 +---- +-699 +46 query I rowsort label-4829 SELECT + - ( - COUNT ( * ) ) * - 45 AS col2 @@ -25381,14 +25665,20 @@ SELECT ALL - COALESCE ( + CAST ( + 70 AS INTEGER ), - 48 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 50715 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col1" at position 0 and "Int64\(90\) \- Int64\(\-48\) \+ Int64\(87\) \- Int64\(85\) \* \(\- CAST\(Int64\(\-9\) AS Int32\)\) \* Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 col1, 90 - - 48 + + 87 - + + 85 * - CAST ( - 9 AS INTEGER ) * - 66 col1 +---- +50715 +94 # 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 "Int64\(26\) / Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 16 AS col1, 26 / - 76 AS col1 +---- +-16 +0 query I rowsort label-4843 SELECT COUNT ( * ) * + COUNT ( * ) + 48 * + 55 AS col0 @@ -25436,8 +25726,11 @@ SELECT + 70, 45 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 420 # Datafusion - Expected - 4402 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* Int64\(28\) AS col0" at position 0 and "Int64\(62\) \* Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 15 * + 28 AS col0, 62 * 71 AS col0 +---- +420 +4402 query I rowsort label-4852 SELECT ALL - COUNT ( * ) + + 69 @@ -25447,8 +25740,11 @@ SELECT ALL - COUNT ( * ) + + 69 # 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 "Int64\(81\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 81 AS col0, + 96 AS col0 +---- +81 +96 query I rowsort label-4854 SELECT - COUNT ( * ) * - COUNT ( * ) + + 19 AS col1 @@ -25561,8 +25857,11 @@ SELECT ALL + 9 - - 91 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \- Int64\(16\) AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 81 - + 16 AS col1, 8 AS col1 +---- +65 +8 query I rowsort SELECT 81 * - 99 AS col0 @@ -25665,8 +25964,11 @@ SELECT DISTINCT - - 80 + 64 * 45 # 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\(\-6\) \- Int64\(30\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 6 - 30 AS col0, 85 AS col0 +---- +-36 +85 query II rowsort label-4895 SELECT 48 * 98 AS col0, MAX ( ALL COALESCE ( - 33, - + 63 ) ) @@ -27487,8 +27789,11 @@ 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\(Int64\(1\)\) AS count\(\*\) / \(\- min\(DISTINCT Int64\(\-18\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 AS col1, + ( COUNT ( * ) ) / - MIN ( DISTINCT - 18 ) AS col1 +---- +-92 +0 query II rowsort label-5243 SELECT ALL - 81, + CAST ( ( + 80 ) AS INTEGER ) AS col2 @@ -27974,8 +28279,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 95 AS col2, 41 AS col2 +---- +41 +95 query I rowsort SELECT ALL 98 + - 17 AS col2 @@ -28040,8 +28348,11 @@ SELECT DISTINCT - 90 AS col1, + MIN ( ALL + + ( + ( 2 ) ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(75\)\) AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 75 AS col0, 5 AS col0 +---- +-75 +5 query I rowsort label-5349 SELECT MIN ( DISTINCT + + 74 ) @@ -29152,8 +29463,11 @@ SELECT ALL 30 / - + 23 - - + ( 3 ), + 15 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 77 col0, 25 AS col0 +---- +25 +77 query I rowsort SELECT - 61 + + 6 @@ -29493,8 +29807,11 @@ SELECT DISTINCT 74 * + + 71 # 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\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 82 AS col1, + 69 AS col1 +---- +69 +82 query I rowsort SELECT + 14 * 47 AS col0 @@ -29587,8 +29904,12 @@ SELECT ALL - 71 * + 92 * + 26 + COUNT ( * ) + + + COUNT ( * ) + + 97 AS col0 # Datafusion - Expected - 45 # Datafusion - Expected - 704 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "Int64\(32\) \* Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 45 AS col1, 32 * 22 AS col1, ( + COUNT ( * ) ) - - 58 + - - 20 +---- +45 +704 +79 query I rowsort label-5642 SELECT ALL - 85 * - - 21 + + + COUNT ( * ) AS col2 @@ -29827,8 +30148,11 @@ SELECT - 53 * - COALESCE ( 49, + COALESCE ( - + 29, + 2 ) * COUNT ( * ) + + ( + # 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 "Int64\(\-91\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 91 AS col2, 41 col2 +---- +-91 +41 query I rowsort label-5688 SELECT + NULLIF ( - + 68, 26 ) + + 38 - - MAX ( ALL 67 ) AS col1 @@ -29884,8 +30208,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int32\) \+ Int64\(7\) \* Int64\(\-94\) AS col2" at position 0 and "Int64\(1\) \* Int64\(14\) \* Int64\(5\) \+ Int64\(81\) \+ nullif\(\(\- Int64\(6\)\), \(\- Int64\(\-2\)\) \+ \(\- Int64\(0\)\) \+ \(\- Int64\(34\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(61\)\) \* Int64\(\-37\) \* Int64\(81\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +145 +NULL query II rowsort label-5699 SELECT 60 + + CAST ( NULL AS INTEGER ), MAX ( 49 ) AS col2 @@ -30180,8 +30507,11 @@ SELECT COUNT ( ALL + 29 ) * + 68 - 95 * - 2 + + 15 * + 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) AS col0, 57 AS col0 +---- +-1 +57 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -30283,8 +30613,11 @@ SELECT CAST ( - + ( - - ( + 94 ) ) AS INTEGER ) # 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\(\-71\) \+ Int64\(49\) AS col2" at position 0 and "Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 71 + 49 col2, 51 AS col2 +---- +-22 +51 query I rowsort SELECT + - 8 * + 68 AS col2 @@ -30893,8 +31226,11 @@ SELECT ALL - 50 * + 9 + - 29 + - 84 + - 68 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 72 AS col2, 75 AS col2 +---- +-72 +75 query I rowsort label-5892 SELECT ALL 37 * MIN ( + 92 ) AS col2 @@ -32354,8 +32690,11 @@ SELECT ALL CAST ( + - ( + 94 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col0" at position 0 and "nullif\(CAST\(NULL AS Int32\), Int64\(1\) \* \(\- CAST\(\(\- \(\- max\(Int64\(28\)\)\)\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT CAST ( NULL AS FLOAT8 ) AS col0, + NULLIF ( + + CAST ( NULL AS INTEGER ), 1 * - CAST ( - - MAX ( ALL 28 ) AS INTEGER ) ) AS col0 +---- +NULL +NULL query I rowsort label-6176 SELECT DISTINCT + 88 * - 95 + + COUNT ( * ) + + COUNT ( * ) @@ -33090,8 +33429,11 @@ SELECT - 43 * 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(17\) \+ Int64\(\-72\) \- Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, 17 + - 72 - + 89 AS col1 +---- +-144 +1 query I rowsort label-6316 SELECT - 57 * + 96 - - MIN ( DISTINCT 6 ) @@ -33345,8 +33687,11 @@ SELECT DISTINCT - - NULLIF ( 76, - 5 - + 11 ) AS col0, - 12 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(77\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 77 + - - ( COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) AS col1, 38 col1 +---- +38 +NULL query I rowsort label-6364 SELECT 54 * - - 8 * - CAST ( NULL AS INTEGER ) + - 28 + 22 col0 @@ -33430,8 +33775,11 @@ SELECT ALL 58 - + + COUNT ( * ) + + 8 + - 2 / - 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "Int64\(27\) / Int64\(\-19\) \- Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 AS col0, 27 / - 19 - + 26 AS col0 +---- +-27 +25 query I rowsort SELECT ALL 56 * - + 56 * ( + 44 ) AS col2 @@ -33643,8 +33991,11 @@ 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\(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\. +query II valuesort SELECT 30 AS col2, + COUNT ( * ) * - - 88 * + ( + ( + NULLIF ( - - 47, - 41 * 83 ) ) ) * - + ( - + 8 ) col2 +---- +30 +33088 query I rowsort SELECT - 72 * 43 * - 10 AS col2 @@ -33747,8 +34098,11 @@ SELECT 36 col2, + COALESCE ( - 97, - 6 + 3 * + + 43, + CASE + + 61 WHEN - + CASE # Datafusion - Datafusion expected results: # Datafusion - Expected - -3799 # Datafusion - Expected - 2997 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(44\), Int64\(0\)\)\) \* \(\- Int64\(25\)\) \+ \(\- \(\- min\(DISTINCT \(\- Int64\(69\)\)\)\)\) \* Int64\(71\) AS col0" at position 0 and "Int64\(\-81\) \* Int64\(\-37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( + 44, 0 ) * - ( + 25 ) + - - MIN ( DISTINCT - ( + 69 ) ) * + 71 AS col0, - 81 * - 37 AS col0 +---- +-3799 +2997 query I rowsort label-6441 SELECT + + 86 * - 96 / - COUNT ( * ) - + 0 + 92 + + + 28 * - - 41 + - 59 + + 36 + + 53 AS col0 @@ -33804,8 +34158,11 @@ SELECT - CAST ( - 90 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \+ Int64\(\-8\) AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 20 + - 8 AS col1, 23 AS col1 +---- +12 +23 query I rowsort label-6452 SELECT DISTINCT + 40 / + - 9 AS col2 @@ -34181,8 +34538,11 @@ SELECT 95 * SUM ( - 70 ) * - 54 * 14 - - ( - 30 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col1" at position 0 and "Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 13 AS col1, 68 col1 +---- +13 +68 query II rowsort label-6525 SELECT ALL + 2 AS col0, + 65 * CAST ( NULL AS INTEGER ) - - 25 @@ -34381,8 +34741,11 @@ SELECT ALL 59 * + - 77 - + + 25, 64 AS col0 # 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 "coalesce\(Int64\(53\), Int64\(\-78\), Int64\(\-26\)\) AS col2" at position 0 and "Int64\(74\) \- Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COALESCE ( ( 53 ), + - 78, - 26 ) AS col2, + 74 - 66 AS col2 +---- +53 +8 query I rowsort SELECT ALL + 29 * - - 36 - 29 * - - 85 @@ -34598,8 +34961,11 @@ SELECT 24 * 30 + - 89 + - 64 / + COUNT ( 39 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(23\), Int64\(\-95\)\)\) AS col0" at position 0 and "Int64\(55\) \+ Int64\(\-38\) \+ Int64\(\-46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - NULLIF ( + 23, + - 95 ) AS col0, 55 + - 38 + - 46 AS col0 +---- +-23 +-29 query I rowsort SELECT - 36 * 60 * + 58 + + 12 + 17 AS col0 @@ -34881,8 +35247,11 @@ 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\(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\. +query II valuesort SELECT - ( COUNT ( * ) ) / - 12 AS col1, - 94 AS col1 +---- +-94 +0 query I rowsort SELECT + 30 * + - 99 AS col0 @@ -35177,8 +35546,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 8 * - COUNT ( * ) AS col2, 7 * + - 61 + 28 AS col2 +---- +-399 +-8 query I rowsort label-6712 SELECT 66 + + + 71 - + CAST ( NULL AS INTEGER ) AS col0 @@ -35305,8 +35677,11 @@ SELECT ALL + 93 + COUNT ( * ) * + 13 + + COALESCE ( + + 99, 75, COUNT ( * ) + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 4941 # Datafusion - Expected - -6557 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* Int64\(61\) AS col0" at position 0 and "Int64\(\-79\) \* Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 * + 61 AS col0, - 79 * + 83 AS col0 +---- +-6557 +4941 query I rowsort SELECT ALL - 82 * + + 17 AS col2 @@ -35482,8 +35857,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 49 + COUNT ( * ) + + SUM ( DISTINCT - 77 ) AS col0, - 57 * + 76 AS col0 +---- +-27 +-4332 query I rowsort SELECT DISTINCT COALESCE ( + 29, + + 72 - + ( 46 ) ) @@ -35498,8 +35876,11 @@ SELECT - 54 + 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-97\), CAST\(NULL AS Int32\), Int64\(51\)\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COALESCE ( - 97, CAST ( NULL AS INTEGER ), 51 ) AS col2, 27 AS col2 +---- +-97 +27 query I rowsort label-6774 SELECT - ( + 9 ) / - 21 * + - 16 @@ -35614,8 +35995,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(\-35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 22 * + 94 + + + 60 + + 92 col2, ( - COUNT ( * ) ) + + - 35 AS col2 +---- +-36 +2220 query I rowsort label-6796 SELECT ALL 67 / + 5 + - COALESCE ( - 32, 17 * 49 - + + 99 * + COUNT ( * ) * + + 19 * - COUNT ( * ) * - 0 * + 29 + SUM ( DISTINCT - - 72 ) ) @@ -35716,8 +36100,11 @@ SELECT DISTINCT + 94 * + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 2080 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "Int64\(\-25\) \* \(\- Int64\(87\)\) \+ Int64\(\-95\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 44 AS col1, - 25 * - + 87 + - 95 * + COUNT ( * ) AS col1 +---- +2080 +44 query I rowsort SELECT 25 + - 83 AS col0 @@ -35822,8 +36209,11 @@ 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\(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\. +query II valuesort 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 +---- +68 +72 query II rowsort SELECT 17 * - + 8 AS col2, 93 AS col1 @@ -36278,8 +36668,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 82 AS col1, 37 AS col1 +---- +-82 +37 query I rowsort label-6922 SELECT - COALESCE ( - - COUNT ( * ), + 30 ) @@ -36315,8 +36708,11 @@ SELECT ALL + 57 - + + 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 7 AS col2, COUNT ( * ) AS col2 +---- +1 +7 query I rowsort label-6929 SELECT DISTINCT + - ( - - CAST ( + COUNT ( * ) AS INTEGER ) ) * - 58 @@ -36538,8 +36934,11 @@ SELECT DISTINCT 45 AS col2, - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(12\)\), nullif\(\(\- Int64\(80\)\), Int64\(89\) \* Int64\(29\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\)\) \+ Int64\(\-37\) \- \(\- Int64\(\-53\)\), Int64\(22\)\) \* Int64\(5\) / \(\- sum\(Int64\(12\)\)\) AS col1" at position 0 and "min\(Int64\(27\)\) \+ Int64\(6\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( - + 12, NULLIF ( - + 80, + 89 * 29 * - - CAST ( NULL AS INTEGER ) ) + - 37 - - - 53, 22 ) * 5 / - SUM ( + 12 ) AS col1, MIN ( ALL + 27 ) + + 6 * + + CAST ( NULL AS INTEGER ) AS col1 +---- +5 +NULL query I rowsort SELECT ALL 61 + + 6 @@ -36587,8 +36986,12 @@ SELECT DISTINCT 12 * - COUNT ( * ) / + - 68 col2, + 88 * 25 # Datafusion - Expected - NULL # Datafusion - Expected - -40 # Datafusion - Expected - -2550 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- Int64\(57\) \* \(\- Int64\(76\)\) \+ \(\- CASE Int64\(\-38\) WHEN Int64\(3\) \+ Int64\(48\) THEN Int64\(\-51\) WHEN Int64\(\-91\) THEN NULL END\) AS col2" at position 0 and "Int64\(74\) \+ Int64\(\-82\) \* Int64\(32\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) - 57 * - ( + 76 ) + + - CASE - 38 WHEN + 3 + 48 THEN + - 51 WHEN - 91 THEN NULL END AS col2, + MAX ( ALL - 41 ) - + - COUNT ( * ), 74 + - 82 * + 32 AS col2 +---- +-2550 +-40 +NULL query I rowsort SELECT ALL + 99 * + 56 * 29 * + + 11 @@ -36830,8 +37233,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "\(\- count\(Int64\(30\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 8 AS col1, - COUNT ( + 30 ) AS col1 +---- +-1 +8 query II rowsort SELECT DISTINCT + 98, 99 * + 34 AS col1 @@ -37552,8 +37958,11 @@ SELECT DISTINCT + 93 + - - 84 + 77 + - 92 * - 18 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96824 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* \(\- Int64\(\-49\)\) \* Int64\(38\) AS col1" at position 0 and "Int64\(52\) \+ \(\- CAST\(NULL AS Float64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + 52 * - - 49 * + 38 AS col1, + 52 + - + CAST ( NULL AS FLOAT8 ) AS col1 +---- +96824 +NULL query I rowsort label-7160 SELECT 65 / + 20 + - + 10 + + 19 @@ -37885,8 +38294,11 @@ SELECT 89 * + ( - 69 ) # 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\(95\) \+ sum\(Int64\(6\)\) AS col2" at position 0 and "Int64\(59\) \- Int64\(16\) \+ Int64\(\-5\) \+ \(\- Int64\(\-58\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 95 + + SUM ( ALL + 6 ) AS col2, 59 - + 16 + + - 5 + - ( + ( - 58 ) ) AS col2 +---- +101 +96 query I rowsort label-7223 SELECT - CASE 75 WHEN COUNT ( * ) THEN NULL WHEN - 98 THEN NULL WHEN + - 12 - 20 * CASE - 25 WHEN + 13 - - MIN ( ALL - 2 ) THEN - - CAST ( NULL AS FLOAT8 ) ELSE NULL END + + 26 THEN COALESCE ( + + 53, - 24 * 26 * - - COUNT ( * ), - + 78 ) * COUNT ( ALL - + 25 ) / + 65 * 96 * - COALESCE ( + NULLIF ( - 52, + 87 ), 99 - + - 4 * + ( 78 ) * 35 + 1 / + 56 * - 72 ) + + ( - 21 ) + COUNT ( * ) * - MAX ( ALL - 28 + 45 ) + + 62 * 36 WHEN 56 THEN + COUNT ( * ) ELSE NULL END * 48 @@ -38082,8 +38494,11 @@ SELECT DISTINCT + 54 * 25 * + + 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(30\)\)\) \- \(\- Int64\(28\)\) AS col0" at position 0 and "coalesce\(Int64\(\-27\), coalesce\(Int64\(9\), \(\- CAST\(Int64\(\-6\) AS Int32\)\) \- Int64\(95\), \(\- \(\- Int64\(1\)\)\) \* \(\- Int64\(\-94\)\) \+ Int64\(\-58\) \* Int64\(\-23\)\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(84\) \- \(\- count\(DISTINCT \(\- Int64\(42\)\)\)\) / \(\- Int64\(69\)\) \+ count\(Int64\(1\)\) AS count\(\*\), Int64\(62\) \* Int64\(\-7\) \- \(\- coalesce\(CASE Int64\(\-46\) WHEN nullif\(\(\- min\(Int64\(91\)\)\), Int64\(76\)\) THEN Int64\(\-55\) WHEN \(\- Int64\(39\)\) \- count\(Int64\(1\)\) AS count\(\*\) \- Int64\(89\) THEN Int64\(90\) \+ \(\- Int64\(26\)\) \+ Int64\(62\) \+ Int64\(87\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-46\) THEN Int64\(5\) ELSE NULL END, Int64\(93\), Int64\(75\)\)\) \* Int64\(\-92\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-2 +-27 query I rowsort label-7261 SELECT ALL - SUM ( ALL + + 51 ) AS col2 @@ -38157,8 +38572,11 @@ SELECT ALL - 88 * + 57 * + COUNT ( * ) + - 85 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \+ Int64\(66\) AS col2" at position 0 and "Int64\(77\) \+ Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 24 + + 66 AS col2, 77 + + 70 col2 +---- +147 +42 query I rowsort SELECT NULLIF ( 68, - 79 / + + 17 + + 87 ) AS col0 @@ -38569,8 +38987,11 @@ SELECT + 13 / - 22 * - - CAST ( - 97 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \+ Int64\(\-35\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 + - 35 AS col1, + 15 AS col1 +---- +15 +52 query I rowsort label-7354 SELECT DISTINCT 91 * 17 + - + COUNT ( * ) col1 @@ -38662,8 +39083,11 @@ SELECT ALL - 21 * + 56 - - 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2730 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* Int64\(39\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 * 39 col2, 71 AS col2 +---- +2730 +71 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -38858,8 +39282,11 @@ SELECT ALL + 33 + - 67 * - NULLIF ( + 65, + + 77 - - 84 ) - - + 52 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 776 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \- Int64\(\-85\) / \(\- Int64\(\-7\)\) \+ Int64\(20\) \* Int64\(40\) AS col2" at position 0 and "Int64\(77\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 36 - + - 85 / - - 7 + + 20 * + ( 40 ) AS col2, + 77 * COUNT ( * ) AS col2 +---- +77 +776 query I rowsort SELECT ALL + 61 * + 20 @@ -38900,8 +39327,11 @@ SELECT - 76 + - - 37 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col2, 24 col2 +---- +24 +NULL query I rowsort label-7416 SELECT - COUNT ( * ) * 91 + + COUNT ( * ) + 40 / - SUM ( - + 50 ) @@ -39337,8 +39767,11 @@ SELECT ALL + 63 + - NULLIF ( ( 62 ), + + 95 ) col1, + 13 * - 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 15 AS col1, + COUNT ( * ) AS col1 +---- +1 +15 query I rowsort label-7500 SELECT ALL + CASE + 13 WHEN - 68 THEN NULL WHEN + 53 + + 25 + - 49 - - 33 * 25 * - 5 - - CAST ( NULL AS INTEGER ) * 22 - - + COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) - 97 * - COUNT ( DISTINCT 84 ) WHEN - + 77 * + 80 THEN + MIN ( + 64 ) ELSE NULL END AS col0 @@ -39366,8 +39799,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col2, - 56 + - - 78 AS col2 +---- +-1 +22 query I rowsort label-7505 SELECT ALL ( - MIN ( ALL - ( 42 ) ) ) AS col0 @@ -39414,8 +39850,11 @@ SELECT ALL ( + - 70 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col0" at position 0 and "max\(DISTINCT Int64\(24\)\) \+ Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 AS col0, MAX ( DISTINCT 24 ) + + 79 col0 +---- +103 +31 query I rowsort SELECT - 70 * 15 @@ -39447,8 +39886,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -4264 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 0 and "Int64\(52\) \* Int64\(\-82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 96 AS col0, 52 * - 82 AS col0 +---- +-4264 +96 query I rowsort label-7520 SELECT ALL 65 * - 97 - - - 68 / + COALESCE ( - 69, - 31 + + + COUNT ( * ) ) @@ -39550,8 +39992,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* \(\- Int64\(\-82\)\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 1 * - - 82 AS col0, 80 AS col0 +---- +80 +82 query I rowsort SELECT + 60 + + 12 @@ -39612,8 +40057,11 @@ SELECT ALL ( - 26 ), - SUM ( - 88 ) + 33 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(72\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 35 * CAST ( NULL AS INTEGER ) AS col2, 72 / - COUNT ( * ) AS col2 +---- +-72 +NULL query II rowsort label-7551 SELECT ALL - 81 * 31 * - CASE + 99 WHEN + + 73 THEN - 12 ELSE + + 17 END AS col0, 17 / + + 97 AS col2 @@ -41038,8 +41486,11 @@ SELECT DISTINCT 99, 14 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -2488 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col2" at position 0 and "Int64\(14\) \* Int64\(\-92\) \+ \(\- nullif\(\(\- CASE coalesce\(Int64\(\-65\), Int64\(49\)\) WHEN Int64\(99\) \+ CASE Int64\(\-5\) \+ \(\- Int64\(70\) \+ Int64\(88\)\) \* sum\(DISTINCT Int64\(\-29\)\) WHEN Int64\(\-3\) \* Int64\(5\) THEN NULL WHEN Int64\(82\) THEN Int64\(\-37\) END THEN Int64\(5\) \* Int64\(\-72\) ELSE Int64\(25\) END\), Int64\(91\) \* Int64\(15\)\)\) \* CAST\(Int64\(\-48\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 5 AS col2, 14 * - 92 + + - NULLIF ( + + ( - CASE COALESCE ( - 65, 49 ) WHEN 99 + CASE - 5 + - ( 70 + 88 ) * SUM ( DISTINCT - 29 ) WHEN - 3 * 5 THEN NULL WHEN 82 THEN - 37 END THEN 5 * - 72 ELSE 25 END ), 91 * 15 ) * CAST ( - 48 AS INTEGER ) AS col2 +---- +-2488 +5 query I rowsort SELECT 93 * - 40 AS col0 @@ -41402,8 +41853,11 @@ SELECT DISTINCT CASE + 46 WHEN + + 40 THEN - 14 ELSE + 90 + - + 44 + + + SUM ( A # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(30\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) * 30 AS col1, + COUNT ( * ) AS col1 +---- +1 +30 query I rowsort label-7892 SELECT ALL - COUNT ( * ) + + 60 @@ -42066,8 +42520,12 @@ NULL # Datafusion - Expected - 97 # Datafusion - Expected - 6232 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* Int64\(76\) AS col1" at position 1 and "\(\- Int64\(57\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 97, 82 * + 76 AS col1, - ( ( + + 57 ) ) * + COUNT ( * ) AS col1 +---- +-57 +6232 +97 query I rowsort SELECT ALL - - 89 * - + 97 * 64 * + 91 + 40 @@ -42556,8 +43014,11 @@ SELECT + 10, 88 * - 74 AS col2 # 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 "Int64\(81\) / Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 AS col0, + 81 / - 76 AS col0 +---- +-1 +79 query I rowsort SELECT 75 * 32 AS col2 @@ -42994,8 +43455,11 @@ SELECT + ( - - 20 ) * + 49 - - - 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col1" at position 0 and "\(\- min\(Int64\(30\)\)\) \* Int64\(21\) \* \(\- CAST\(NULL AS Int32\)\) \+ \(\- \(\- avg\(Int64\(29\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - 79 col1, - MIN ( 30 ) * + 21 * - CAST ( NULL AS INTEGER ) + - - AVG ( 29 ) AS col1 +---- +-79 +NULL query I rowsort label-8199 SELECT + + CAST ( NULL AS INTEGER ) * + 31 * - 78 / - 79 @@ -43487,8 +43951,11 @@ SELECT + - 4, + COALESCE ( - 47, - COUNT ( * ), + MIN ( ALL 75 ), 21 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col0" at position 0 and "CAST\(\(\- avg\(DISTINCT Int64\(70\)\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 48 col0, CAST ( - AVG ( DISTINCT 70 ) AS INTEGER ) col0 +---- +-70 +48 query I rowsort label-8291 SELECT DISTINCT + - 21 / - SUM ( + 86 ) + + - COALESCE ( + NULLIF ( - 32, - 5 + - 14 ), COUNT ( * ) * - - CASE WHEN COUNT ( * ) <> NULL THEN - MAX ( + 9 ) * + 74 - - 75 END ) * - 36 + 62 - CAST ( NULL AS INTEGER ) @@ -43503,8 +43970,11 @@ SELECT DISTINCT + + 12 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -3165 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "Int64\(38\) \* \(\- nullif\(Int64\(83\), CAST\(\(\- CAST\(Int64\(\-70\) AS Int32\)\) AS Int32\) \+ Int64\(98\) \* Int64\(97\)\)\) \+ Int64\(8\) \- Int64\(57\) \+ \(\- Int64\(\-38\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 84 AS col0, + 38 * + - NULLIF ( + + 83, + + CAST ( - CAST ( - 70 AS INTEGER ) AS INTEGER ) + + + 98 * + 97 ) + 8 - + 57 + - - 38 AS col0 +---- +-3165 +84 query I rowsort label-8294 SELECT + 92 * + - COUNT ( ALL + - 10 ) + - 7 + - COUNT ( * ) AS col1 @@ -43983,8 +44453,11 @@ SELECT + 78 * + + COUNT ( * ) - 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1525 # Datafusion - Expected - -5370 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(25\) AS col1" at position 0 and "\(\- CAST\(Int64\(78\) AS Int32\)\) \* Int64\(70\) \+ \(\- coalesce\(Int64\(\-90\), coalesce\(min\(DISTINCT Int64\(9\)\), Int64\(70\), \(\- Int64\(98\)\) \+ sum\(\(\- Int64\(\-4\)\)\) \+ \(\- Int64\(10\)\) \- Int64\(\-50\) \+ Int64\(65\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(95\) \+ Int64\(59\) / Int64\(38\) \* Int64\(40\)\), count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-5370 +1525 query II rowsort label-8386 SELECT 41 + 10 * 16 + - - 63 AS col0, - COUNT ( * ) + - 1 * - 5 + + 91 * - 11 * + 99 * + 80 @@ -44090,8 +44563,11 @@ SELECT DISTINCT + 7 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(31\)\) AS col2" at position 0 and "Int64\(\-32\) \- Int64\(\-1\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - + 31 ) AS col2, ( + - 32 ) - + - 1 + - + CAST ( NULL AS INTEGER ) * - 41 AS col2 +---- +-31 +NULL query I rowsort SELECT ALL ( - 2 ) * 87 AS col2 @@ -44167,8 +44643,11 @@ SELECT ALL + 13 * + + 70 + 73 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(77\)\) \+ Int64\(19\) \+ Int64\(72\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 77 + + 19 + 72 AS col0, CAST ( NULL AS INTEGER ) * + 6 AS col0 +---- +14 +NULL query I rowsort SELECT + + 72 - + + 11 - - 16 * - - 47 @@ -44275,8 +44754,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) / - 36 * 79 + + - COUNT ( * ) AS col0, - 22 - + 64 / + 84 * 6 AS col0 +---- +-1 +-22 query I rowsort label-8442 SELECT 13 / - - 84 * + 34 - 59 AS col2 @@ -44360,8 +44842,11 @@ 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\(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\. +query II valuesort SELECT - ( + + 59 ) / - 87 AS col0, - CASE + 10 WHEN - 17 THEN NULL WHEN - ( + COUNT ( * ) ) THEN - 67 ELSE NULL END AS col0 +---- +0 +NULL query I rowsort label-8458 SELECT + COUNT ( * ) * 19 @@ -44899,8 +45384,11 @@ SELECT 92 * - ( + 44 ) * 85 + + 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 34 AS col0, + 41 AS col0 +---- +34 +41 query I rowsort SELECT - + 18 + + 5 + + + 12 @@ -45235,8 +45723,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 AS col0, 30 AS col0 +---- +-90 +30 query I rowsort SELECT 2 - + + 11 @@ -45298,8 +45789,11 @@ SELECT 8 * + 36 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 7857 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "\(\- Int64\(97\)\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* \(\- coalesce\(Int64\(81\), Int64\(33\), Int64\(17\) / CASE nullif\(\(\- sum\(Int64\(24\)\)\), Int64\(68\) / Int64\(68\) \* Int64\(\-89\)\) WHEN \(\- \(\- avg\(DISTINCT Int64\(16\)\)\)\) THEN NULL WHEN Int64\(39\) \+ Int64\(42\) THEN Int64\(63\) \+ Int64\(23\) END\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +7857 +NULL query I rowsort SELECT DISTINCT - + 99 + - 20 + - 71 * + + CASE + 11 WHEN - 39 * - 75 - - 79 - + 65 / - 11 - - 92 THEN 60 ELSE - + 32 END AS col0 @@ -45430,8 +45924,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(72\)\)\) \* Int64\(64\) AS col2" at position 0 and "max\(DISTINCT CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( + 72 ) * + ( 64 ) AS col2, + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 +---- +-64 +NULL query I rowsort label-8659 SELECT - 15 * + COUNT ( * ) + + NULLIF ( + + 52, COUNT ( DISTINCT - 93 ) + 5 ) * - - 87 + + - 13 AS col0 @@ -45519,8 +46016,12 @@ 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\(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\. +query III valuesort SELECT + - 99 * + COUNT ( * ) * ( - - 39 ) col1, SUM ( ALL 84 ) + - + 42 AS col1, + - COUNT ( * ) + - 91 AS col0 +---- +-3861 +-92 +42 query I rowsort SELECT ALL + 19 + - 61 - - + 62 * + 60 AS col1 @@ -45815,8 +46316,11 @@ SELECT ALL + 43 * - + COUNT ( * ) AS col1 # 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 col1" at position 0 and "Int64\(\-64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 AS col1, ( - 64 ) AS col1 +---- +-64 +14 query I rowsort SELECT NULLIF ( CASE 21 WHEN 24 THEN + 55 ELSE + 78 END, + 78 ) * - 70 @@ -45863,14 +46367,20 @@ SELECT ALL 84 AS col1, - 42 + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2885 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(86\) \+ Int64\(\-38\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 * 86 + - 38 - COUNT ( * ) AS col2, 6 AS col2 +---- +2885 +6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(5\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 * + 5 AS col0, 8 AS col0 +---- +30 +8 query I rowsort label-8744 SELECT ALL + 67 / - 27 AS col2 @@ -45936,8 +46446,11 @@ SELECT 11 / 69 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) \+ Int64\(63\) \+ Int64\(15\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - 49 ) + + 63 + 15 AS col0, 78 AS col0 +---- +29 +78 query II rowsort SELECT + 64 AS col1, 17 @@ -47019,8 +47532,11 @@ SELECT ALL - 58 + + + 47 * - ( 50 ) + - 61 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 203 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col2" at position 0 and "Int64\(76\) \- \(\- Int64\(96\)\) \+ \(\- max\(DISTINCT \(\- Int64\(31\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 44 AS col2, 76 - - ( + 96 ) + - MAX ( DISTINCT - ( + 31 ) ) AS col2 +---- +-44 +203 query I rowsort label-8961 SELECT COUNT ( * ) + - + 29 AS col2 @@ -47227,8 +47743,12 @@ SELECT COALESCE ( + ( - - 71 ), + 67 ) + + NULLIF ( - MIN ( DISTINCT 93 ), 36 / # Datafusion - Expected - NULL # Datafusion - Expected - -896 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- CASE \(\- Int64\(\-58\)\) WHEN Int64\(2\) \- Int64\(\-16\) THEN Int64\(\-70\) WHEN Int64\(89\) THEN NULL END\) AS Int32\)\)\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - CAST ( - CASE - - 58 WHEN + 2 - - 16 THEN + - 70 WHEN + 89 THEN NULL END AS INTEGER ) AS col0, NULLIF ( 14, + COUNT ( * ) + - 36 ) * - + 64, + + 67 AS col0 +---- +-896 +67 +NULL query I rowsort SELECT DISTINCT - 21 - + 85 @@ -47543,8 +48063,11 @@ SELECT + 84 AS col2, + 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "Int64\(37\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 43 AS col1, 37 * - + CAST ( NULL AS INTEGER ) AS col1 +---- +43 +NULL query II rowsort label-9061 SELECT - 95 AS col0, + MAX ( 78 ) @@ -47597,8 +48120,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - COUNT ( * ) AS col0, 21 AS col0, + 67 * + + 47 AS col0 +---- +-1 +21 +3149 query I rowsort label-9071 SELECT DISTINCT - + 93 * - COUNT ( * ) AS col2 @@ -48306,8 +48833,11 @@ SELECT 16 / - 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9171 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- Int64\(95\)\), max\(Int64\(76\)\) \* \(\- Int64\(\-65\)\) \+ Int64\(59\) \+ CAST\(NULL AS Int32\) \+ CAST\(NULL AS Float64\)\)\) \* Int64\(97\) \+ Int64\(\-43\) \- \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(56\)\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(47\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort 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 +---- +47 +9171 query I rowsort label-9206 SELECT COUNT ( ALL - + 49 ) + + 25 * + + 36 AS col0 @@ -48426,8 +48956,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 71 col0, - 88 / - COUNT ( * ) + + 94 AS col0 +---- +-71 +182 query I rowsort label-9228 SELECT + COUNT ( * ) - 81 + + + 40 + - 58 * - - 51 + - 66 * + 40 + - 80 + 94 / - - SUM ( + 5 ) + ( - 76 ) AS col2 @@ -48474,8 +49007,11 @@ SELECT + + 24, + 93 * + 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col0" at position 0 and "Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 68 col0, 84 AS col0 +---- +-68 +84 query I rowsort label-9237 SELECT 70 + + COUNT ( ALL 35 ) - + - COUNT ( * ) + - 83 * - CAST ( - 6 AS INTEGER ) AS col2 @@ -48592,8 +49128,11 @@ SELECT + MIN ( ALL 35 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(sum\(DISTINCT Int64\(68\)\), Int64\(\-84\) \* Int64\(\-77\) \+ Int64\(12\) \* Int64\(81\)\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( + SUM ( DISTINCT + 68 ), - 84 * - 77 + 12 * + 81 ) AS col1, 69 AS col1 +---- +68 +69 query I rowsort label-9260 SELECT DISTINCT 79 * + 39 * + COUNT ( + 39 ) AS col1 @@ -49043,8 +49582,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(50\)\) AS col1" at position 0 and "\(\- \(\- CAST\(NULL AS Int32\)\)\) / Int64\(\-56\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) / - + 50 AS col1, - ( + - CAST ( NULL AS INTEGER ) ) / - 56 / - - COUNT ( * ) col1 +---- +0 +NULL query I rowsort label-9347 SELECT - 58 * + - MIN ( + 35 ) * - 60 @@ -49863,8 +50405,11 @@ SELECT ( - NULLIF ( - + 28, + 52 ) ) + COUNT ( * ) * ( - 92 * + 29 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 39 AS col1, 16 AS col1 +---- +-39 +16 query I rowsort label-9503 SELECT 35 + - COUNT ( * ) @@ -50102,8 +50647,11 @@ 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\(1\)\) AS count\(\*\), Int64\(80\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 16 + - 97 + - - 8 col0, NULLIF ( + COUNT ( * ), + 80 ) AS col0 +---- +-73 +1 query I rowsort label-9550 SELECT - COUNT ( * ) * 75 @@ -50370,8 +50918,11 @@ SELECT ALL - 8 - + 85, - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 341 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "Int64\(11\) \* Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 73 AS col0, 11 * + 31 col0 +---- +341 +73 query I rowsort SELECT DISTINCT - 26 / + CASE - ( ( 87 ) ) WHEN + COALESCE ( 86, - 49 ) + - 29 THEN 56 * + 66 END * 41 @@ -50589,8 +51140,11 @@ SELECT ALL 74 * 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5796 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* Int64\(84\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 * + 84 AS col2, + 35 AS col2 +---- +35 +5796 query I rowsort SELECT + 23 * + 96 + + + 16 - + 79 + - 55 * + 62 - - 73 col2 @@ -50912,8 +51466,11 @@ 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\(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\. +query II valuesort SELECT - - COUNT ( * ) * - 34 * - 21 AS col2, 4 * + COUNT ( * ) * 47 * - COALESCE ( + SUM ( DISTINCT 92 ), 99 ) AS col2 +---- +-17296 +714 query I rowsort label-9703 SELECT - 99 + + 28 + + 87 * + ( - 40 ) + CAST ( NULL AS INTEGER ) @@ -50929,8 +51486,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-36\) \- Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 42 ) AS col1, CASE 8 WHEN + 99 THEN - - ( 2 ) WHEN 16 * 19 THEN NULL END * + ( - COUNT ( * ) * - 36 ) - 91 AS col1 +---- +-42 +NULL query I rowsort label-9706 SELECT ALL ( - - ( + CAST ( NULL AS INTEGER ) ) ) @@ -51387,8 +51947,11 @@ SELECT DISTINCT - - MAX ( DISTINCT 15 ) - - 50 - + - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col0" at position 0 and "Int64\(\-77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 43 AS col0, - 77 col0 +---- +-77 +43 query I rowsort SELECT + ( + ( 65 ) ) * - 65 + - 99 AS col0 @@ -51566,8 +52129,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) / Int64\(95\) AS col1" at position 0 and "Int64\(79\) / Int64\(\-39\) \+ Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 53 / 95 AS col1, + 79 / - 39 + ( + + 73 ) col1 +---- +0 +71 query I rowsort label-9830 SELECT + 95 / SUM ( NULLIF ( + 68, - 82 + - 3 ) ) @@ -51751,8 +52317,11 @@ SELECT - - COALESCE ( 91, + + 1 * + COUNT ( * ), - - 98 * 38 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -104 # Datafusion - Expected - 592 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) \+ Int64\(\-87\) AS col1" at position 0 and "Int64\(8\) \* \(\- Int64\(\-74\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 17 + + ( - 87 ) AS col1, + 8 * ( - + ( - 74 ) ) AS col1 +---- +-104 +592 query I rowsort SELECT ALL + 47 + + 2 AS col2 @@ -51772,8 +52341,11 @@ SELECT - + 36 * 76 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 AS col2, ( + 87 ) AS col2 +---- +58 +87 query I rowsort label-9870 SELECT - - CASE + 50 WHEN 82 THEN + 55 WHEN + ( + 57 ) THEN NULL END - 12 + - 79 + - 46 / + COUNT ( ALL - 56 ) col2 diff --git a/data/sqlite/random/expr/slt_good_53.slt b/data/sqlite/random/expr/slt_good_53.slt index 5a43a07..0ba94e7 100644 --- a/data/sqlite/random/expr/slt_good_53.slt +++ b/data/sqlite/random/expr/slt_good_53.slt @@ -629,8 +629,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(91\) / Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 87 AS col0, - COUNT ( * ) + 91 / + 62 AS col0 +---- +0 +87 query I rowsort label-113 SELECT + ( SUM ( - 92 ) ) AS col1 @@ -725,8 +728,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 1596 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col1" at position 0 and "Int64\(84\) \* Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 33 AS col1, 84 * 19 AS col1 +---- +-33 +1596 query I rowsort label-131 SELECT - CASE ( - MAX ( DISTINCT - 8 ) ) WHEN 67 * + 79 + + 3 - COUNT ( ALL 48 ) + 17 * + ( - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + + 56 * + + COUNT ( * ) / + 97 THEN 77 ELSE 37 END @@ -908,8 +914,11 @@ SELECT 91 + - 46 + SUM ( ALL + + 16 ) / + 90 AS col1, 26 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \+ Int64\(85\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(61\) \+ Int64\(38\) \* Int64\(4\) \+ Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 85 + + + 85 AS col0, CAST ( NULL AS INTEGER ) * + + 61 + 38 * + + 4 + - 38 AS col0 +---- +0 +NULL query I rowsort label-166 SELECT 25 + 45 + 11 / CAST ( NULL AS INTEGER ) + 54 * 56 @@ -1031,8 +1040,11 @@ SELECT 64, - MAX ( DISTINCT 88 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - -1202 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col1" at position 0 and "Int64\(69\) \* Int64\(\-17\) \+ \(\- \(\- max\(\(\- Int64\(29\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 AS col1, 69 * - 17 + - - MAX ( ( - + 29 ) ) AS col1 +---- +-1202 +72 query I rowsort label-189 SELECT 57 * + CAST ( NULL AS INTEGER ) col2 @@ -1062,8 +1074,11 @@ SELECT ALL COUNT ( * ) * - 93 * + 42 * + 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 430 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col0" at position 0 and "Int64\(99\) \+ Int64\(63\) \+ Int64\(67\) \* Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 col0, 99 + + 63 + + 67 * 4 AS col0 +---- +29 +430 query I rowsort SELECT DISTINCT NULLIF ( - 92, + 64 ) + + 90 AS col1 @@ -1138,8 +1153,11 @@ SELECT ALL + + 5 + CAST ( - + 13 AS INTEGER ) + + 77 * 45 / - 43 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 AS col0, 38 AS col0 +---- +38 +61 query II rowsort label-209 SELECT DISTINCT + ( - 51 ) * + COUNT ( ALL - 59 ) AS col1, - ( ( + MAX ( - 66 ) ) ) @@ -2056,8 +2074,11 @@ SELECT - ( + COUNT ( * ) ) + + 22 * 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 AS col1, COUNT ( * ) AS col1 +---- +1 +50 query I rowsort SELECT - 14 * - 64 @@ -2185,8 +2206,11 @@ SELECT + 34 + + 68 + 54 * 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3582 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ Int64\(\-55\) \* Int64\(66\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 + - 55 * + 66 AS col2, + 52 AS col2 +---- +-3582 +52 query I rowsort label-406 SELECT - + 61 - - - COUNT ( * ) + + + 57 * + NULLIF ( - + 38, + 50 ) + + 95 / - 98 @@ -2330,8 +2354,12 @@ 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\(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\. +query III valuesort SELECT ALL ( - 82 ) - - + 0 + COUNT ( * ) - - 24 AS col0, - 52 - + 34 * - 82, - 13 AS col0 +---- +-13 +-57 +2736 query I rowsort SELECT DISTINCT 48 col2 @@ -2875,8 +2903,11 @@ SELECT ( - + COALESCE ( - 90, MIN ( DISTINCT + 10 ) ) ) + ( - COUNT ( * ) ) * - # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 75 AS col0, COUNT ( * ) col0 +---- +-75 +1 query I rowsort label-539 SELECT 54 * - 49 + - SUM ( + - 80 ) @@ -3212,8 +3243,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) + + 35 / + ( + - 2 ) AS col0, ( + 26 ) * + - MAX ( + ( + + 68 ) ) + + 56 AS col0 +---- +-1712 +-18 query I rowsort SELECT ALL - + 91 + 74 @@ -3258,14 +3292,20 @@ SELECT ALL 14 * + + 18 + - - ( + 82 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(29\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 51 / - COUNT ( * ) + + 29 col0, CAST ( NULL AS INTEGER ) AS col0 +---- +80 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2000 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- Int64\(\-50\)\), Int64\(95\) \* \(\- Int64\(\-76\)\) \+ Int64\(\-44\), Int64\(92\)\)\) \* \(\- Int64\(40\)\) AS col2" at position 0 and "Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( - - 50, + 95 * - - 76 + + - 44, + 92 ) * - ( + + 40 ) AS col2, 39 AS col2 +---- +2000 +39 query I rowsort SELECT - 97 + + 55 AS col0 @@ -3316,8 +3356,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(max\(Int64\(\-30\)\), Int64\(48\) \- Int64\(\-2\)\) \+ \(\- coalesce\(Int64\(7\), Int64\(\-50\) \- Int64\(\-59\)\)\) \+ \(\- Int64\(55\)\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( + MAX ( - 30 ), + 48 - - 2 ) + - COALESCE ( 7, + - 50 - + - 59 ) + - + 55 AS col1, 72 col1 +---- +-92 +72 query I rowsort SELECT DISTINCT + ( + ( - - 65 ) ) @@ -3504,8 +3547,11 @@ SELECT - 84 * 42 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -1132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "Int64\(30\) \* coalesce\(Int64\(\-39\), Int64\(\-8\)\) \+ Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 23 col2, + 30 * + COALESCE ( + - 39, - 8 ) + + 38 col2 +---- +-1132 +23 query I rowsort SELECT ( + 14 ) AS col2 @@ -3757,8 +3803,11 @@ SELECT - ( - + COUNT ( * ) ) + - COUNT ( * ) * - 32 * - 59 * 81 # 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 "Int64\(83\) AS col0" at position 0 and "coalesce\(Int64\(0\), \(\- Int64\(\-81\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 83 AS col0, + COALESCE ( + - 0, - - 81 ) AS col0 +---- +0 +83 query I rowsort SELECT DISTINCT - 60 - - - 2 @@ -4846,8 +4895,11 @@ SELECT DISTINCT 7 * COALESCE ( - + 73, - - 76 + - 53 ) AS col0, + COUNT ( * ) AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 136 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \- coalesce\(\(\- Int64\(94\)\), sum\(coalesce\(Int64\(86\), Int64\(\-89\) \* Int64\(\-66\) \+ Int64\(17\) / Int64\(92\), \(\- coalesce\(Int64\(45\), Int64\(\-8\), CAST\(Int64\(\-79\) AS Int32\) \+ Int64\(0\), Int64\(8\)\)\)\)\) \+ Int64\(41\)\) AS col1" at position 0 and "\(\- CASE \(\- Int64\(22\)\) WHEN Int64\(27\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-79\) \- \(\- Int64\(45\)\) WHEN Int64\(92\) / Int64\(69\) \* Int64\(\-21\) THEN \(\- CAST\(Int64\(\-94\) AS Int32\)\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +136 +NULL query I rowsort SELECT 14 * - + 4 @@ -4930,8 +4982,11 @@ SELECT - NULLIF ( + - 31, + + 74 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -108 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \+ Int64\(\-67\) AS col2" at position 0 and "Int64\(\-22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 41 + - 67 AS col2, - 22 col2 +---- +-108 +-22 query I rowsort label-925 SELECT ALL + + COUNT ( 96 ) + COUNT ( * ) * + - SUM ( + + ( - 69 ) ) AS col2 @@ -5002,8 +5057,11 @@ SELECT ALL 9 * + ( - 82 ) * + 20 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\(63\) \- \(\- Int64\(19\)\) \+ Int64\(5\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 - - + 19 + 5 AS col1, - 0 AS col1 +---- +0 +87 query I rowsort SELECT 99 * 83 AS col0 @@ -5576,8 +5634,11 @@ SELECT 99 + - 82 * - ( - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "Int64\(46\) \+ Int64\(\-11\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 AS col0, 46 + - 11 * - - CAST ( NULL AS INTEGER ) AS col0 +---- +76 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -6734,8 +6795,11 @@ SELECT - COUNT ( * ) + + 60 + - COUNT ( * ) + + ( - 94 ) # 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\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - + 8 ) AS col0, 72 AS col0 +---- +-8 +72 query I rowsort SELECT COALESCE ( 69, - - 75 ) AS col0 @@ -7013,8 +7077,11 @@ SELECT ( - 44 ) / - - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(3\)\)\) AS col2" at position 0 and "\(\- nullif\(\(\- Int64\(85\)\), Int64\(58\) \+ coalesce\(Int64\(41\) \+ Int64\(\-46\), coalesce\(\(\- Int64\(\-41\)\), Int64\(96\) \+ CASE \(\- count\(Int64\(\-22\)\)\) WHEN Int64\(\-96\) \+ coalesce\(count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(73\), Int64\(30\) \* Int64\(97\) \- CAST\(NULL AS Int32\)\) THEN Int64\(94\) \+ Int64\(\-68\) ELSE Int64\(50\) END\), Int64\(34\) \* avg\(Int64\(34\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +-1 +85 query I rowsort SELECT ALL - ( + + 48 ) AS col0 @@ -7111,8 +7178,11 @@ SELECT ALL COUNT ( * ) + 91 * - 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "\(\- Int64\(\-35\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 AS col0, - ( - 35 ) AS col0 +---- +35 +84 query I rowsort label-1343 SELECT + COALESCE ( + COUNT ( * ), - + ( - - ( - 92 ) ) ) * - 24 * 5 + 51 @@ -7140,8 +7210,11 @@ SELECT 6 + - - 50 AS col2, 78 * - 86 * + ( + 81 ) + + 44 * - 56 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 AS col1, COUNT ( * ) AS col1 +---- +1 +78 query I rowsort SELECT 15 + + - ( + 62 ) @@ -7390,8 +7463,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 121 # Datafusion - Expected - -1260 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ Int64\(79\) AS col1" at position 0 and "Int64\(35\) \* \(\- Int64\(36\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 42 + + 79 col1, 35 * - + 36 AS col1 +---- +-1260 +121 query I rowsort label-1395 SELECT MIN ( + 98 ) AS col2 @@ -7533,8 +7609,11 @@ SELECT ALL 94 * + 13 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1012 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* CAST\(NULL AS Int32\) / min\(Int64\(\-28\)\) AS col1" at position 0 and "Int64\(\-92\) \* Int64\(\-11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 0 * + CAST ( NULL AS INTEGER ) / + + MIN ( ALL - 28 ) col1, - 92 * - 11 AS col1 +---- +1012 +NULL query I rowsort label-1423 SELECT ALL - 58 * 17 * COUNT ( * ) AS col2 @@ -7935,8 +8014,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4085 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* Int64\(95\) AS col2" at position 0 and "Int64\(38\) \+ sum\(DISTINCT Int64\(\-81\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 43 * + 95 AS col2, 38 + + + SUM ( DISTINCT - 81 ) AS col2 +---- +-43 +4085 query I rowsort SELECT - NULLIF ( - + 74, + + 85 ) * + 91 * 76 AS col2 @@ -8121,8 +8203,11 @@ SELECT DISTINCT ( - 22 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \+ Int64\(62\) \+ \(\- Int64\(7\)\) \- Int64\(67\) \- Int64\(73\) AS col2" at position 0 and "Int64\(\-14\) \+ \(\- Int64\(70\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 54 + + 62 + - ( + ( 7 ) ) - 67 - + 73 AS col2, - 14 + - + 70 AS col2 +---- +-31 +-84 query I rowsort SELECT - 83 * + 92 AS col2 @@ -8447,8 +8532,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-11\) \+ \(\- count\(DISTINCT Int64\(44\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 6 AS col0, ( + + COUNT ( * ) ) * - 11 + - COUNT ( DISTINCT 44 ) AS col0 +---- +-12 +-6 query II rowsort SELECT ALL - - 40 AS col1, 37 AS col2 @@ -8760,8 +8848,11 @@ SELECT ALL + 85 / + 66 + - + 26 AS col0 # 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 col2" at position 0 and "Int64\(\-90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 19 AS col2, - 90 col2 +---- +-19 +-90 query I rowsort label-1657 SELECT ALL + - 88 / 61 * + 84 + MAX ( + 39 ) @@ -8958,8 +9049,11 @@ SELECT DISTINCT - + ( + MAX ( - ( + 40 ) ) ) + + + 17 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 86 AS col0, + COUNT ( * ) AS col0 +---- +1 +86 query II rowsort label-1694 SELECT ALL 46 + 64 * - COUNT ( - 2 ), 86 col2 @@ -9044,8 +9138,11 @@ SELECT ALL - SUM ( ALL + 86 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -350 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \* Int64\(10\) AS col1" at position 0 and "sum\(Int64\(\-84\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 35 ) * 10 col1, ( SUM ( + - 84 ) ) AS col1 +---- +-350 +-84 query I rowsort SELECT - 68 * + - 84 + 81 @@ -9579,8 +9676,11 @@ SELECT - - 53 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "sum\(DISTINCT Int64\(22\)\) \+ Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 66 AS col0, SUM ( DISTINCT 22 ) + 1 AS col0 +---- +23 +66 query I rowsort label-1813 SELECT ( - - COALESCE ( - + 8, - 1 + NULLIF ( - - 76, 90 ) + + 76 * + 10 ) ) / + MAX ( DISTINCT - 99 ) + + + 95 + 53 @@ -9668,8 +9768,11 @@ 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\(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\. +query II valuesort SELECT + 50 AS col0, - CASE + 84 WHEN + 65 * COUNT ( 36 ) THEN + COUNT ( * ) / ( + 88 ) WHEN + 88 THEN NULL ELSE - 75 END * + 98 col0 +---- +50 +7350 query I rowsort SELECT ALL - + ( - - 53 ) @@ -9906,8 +10009,12 @@ SELECT ALL + + SUM ( DISTINCT + - ( 90 ) ) + - COUNT ( * ) + - ( 93 ) * COUNT ( # Datafusion - Expected - 3784 # Datafusion - Expected - NULL # Datafusion - Expected - -52200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(76\) AS col2" at position 1 and "min\(Int64\(\-58\)\) \* Int64\(\-60\) \* Int64\(\-15\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 79 * - 47 + 83 + NULLIF ( + - 12, + 33 * + - 46 ), CAST ( NULL AS INTEGER ) * 76 AS col2, MIN ( ALL - 58 ) * - 60 * - 15 AS col2 +---- +-52200 +3784 +NULL query II rowsort label-1874 SELECT DISTINCT - - 62 / - - 30, CASE 0 WHEN COUNT ( * ) + CAST ( NULL AS INTEGER ) THEN NULL ELSE - NULLIF ( - 53, COUNT ( * ) * + 17 ) * - 32 END AS col0 @@ -10000,8 +10107,11 @@ SELECT DISTINCT 52 * - + 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 76 * - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0 +---- +-76 +NULL query I rowsort label-1892 SELECT ALL + + CASE - - 17 WHEN - - 96 * - + MAX ( DISTINCT - 93 ) THEN + 5 ELSE NULL END @@ -10168,8 +10278,12 @@ SELECT - COUNT ( * ) - + 67 + + 30 * + + 66 # Datafusion - Expected - 3458 # Datafusion - Expected - 34 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) \* \(\- max\(Int64\(91\)\)\) AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 38 * + - MAX ( + 91 ) AS col0, + 34 AS col0, + COUNT ( * ) col1 +---- +1 +34 +3458 query I rowsort label-1925 SELECT - COUNT ( * ) * 90 @@ -10225,8 +10339,11 @@ 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\(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\. +query II valuesort 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 +---- +-57 +NULL query I rowsort SELECT + + 42 * + 14 @@ -10315,8 +10432,11 @@ SELECT ALL 48 - - - 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- CAST\(NULL AS Int32\)\)\) / Int64\(76\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( COUNT ( * ), - CAST ( NULL AS INTEGER ) ) / + + 76 col2, 38 AS col2 +---- +0 +38 query I rowsort label-1953 SELECT 78 + - + COUNT ( * ) + + 65 AS col1 @@ -10652,8 +10772,11 @@ SELECT - 37 - - - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(27\)\) AS col1" at position 0 and "Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - + 27 ) AS col1, - 43 AS col1 +---- +-27 +-43 query I rowsort SELECT ALL + ( + 28 ) @@ -10779,8 +10902,11 @@ 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\(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\. +query II valuesort SELECT ALL 90 - - COUNT ( * ) AS col1, - 15 * - 97 AS col1 +---- +1455 +91 query I rowsort label-2042 SELECT + 73 - + MIN ( 98 ) AS col1 @@ -10805,8 +10931,11 @@ SELECT + 62 * 16 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ), COUNT ( * ) +---- +1 +1 query I rowsort SELECT - 96 * - 9 * 33 * + 94 AS col0 @@ -11376,15 +11505,22 @@ SELECT - 18 + + COUNT ( * ) * + 77 * 2 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7740 # Datafusion - Expected - 2747 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(90\)\) \* Int64\(\-86\) AS col0" at position 0 and "Int64\(\-41\) \* Int64\(\-67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 90 ) * - 86 AS col0, - 41 * - 67 AS col0 +---- +2747 +7740 # Datafusion - Datafusion expected results: # Datafusion - Expected - 498498 # Datafusion - Expected - 3898 # Datafusion - Expected - -99528 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* \(\- Int64\(91\)\) \* Int64\(66\) AS col1" at position 0 and "Int64\(\-88\) \* Int64\(87\) \* nullif\(Int64\(13\), Int64\(87\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 83 * - + 91 * 66 AS col1, 77 * - - 50 + + 48, - 88 * 87 * NULLIF ( + 13, 87 ) AS col1 +---- +-99528 +3898 +498498 query II rowsort label-2157 SELECT - CAST ( - 98 AS INTEGER ) + - 25 col1, 99 AS col0 @@ -11816,8 +11952,11 @@ SELECT + + CASE - 70 WHEN + 18 * + - 19 * COALESCE ( COUNT ( * ), MIN ( DISTINCT # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ Int64\(25\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 + + 25 AS col0, + 95 AS col0 +---- +57 +95 query I rowsort label-2238 SELECT + 81 * - COALESCE ( - + 49, - 69 - + CASE - ( - - 26 ) WHEN + 40 - - - 89 * + 57 THEN NULL WHEN 90 - + 8 + - CASE + MAX ( DISTINCT + - 53 ) WHEN + + NULLIF ( + - 21, - 69 + + - 97 ) / + + CASE + 10 WHEN + - 65 + + - 70 THEN - - 82 WHEN + ( - ( COALESCE ( + COUNT ( 33 ), NULLIF ( - 39, - - CASE 94 WHEN 71 / ( 38 / + 27 ) THEN + MAX ( DISTINCT - 92 ) * + 27 WHEN 5 + 92 THEN NULL WHEN + 80 THEN NULL END + - 71 ) ) ) ) / COUNT ( * ) THEN NULL END * + CAST ( 60 AS INTEGER ) + - CASE - 50 WHEN - COUNT ( * ) THEN - ( NULLIF ( 10, + 79 ) ) + - 5 WHEN - CAST ( NULL AS FLOAT8 ) THEN - 17 END THEN + SUM ( - 85 ) / 36 + 45 ELSE CAST ( NULLIF ( 93, 65 ) AS INTEGER ) * + 53 + - 37 / 50 END THEN COUNT ( * ) ELSE + 71 + 9 END + 83 * SUM ( ALL 39 ) ) / - 7 col0 @@ -11828,8 +11967,12 @@ SELECT + 81 * - COALESCE ( - + 49, - 69 - + CASE - ( - - 26 ) WHEN + 40 - - - 89 # Datafusion - Expected - -17 # Datafusion - Expected - 48360 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-17\)\) AS col0" at position 0 and "Int64\(\-75\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + + MIN ( ALL - 17 ) AS col0, + 39 * - - 40 * + + 31 AS col1, - 75 AS col0 +---- +-17 +-75 +48360 query I rowsort label-2240 SELECT ALL + - 29 + 57 / - COUNT ( * ) @@ -12011,8 +12154,11 @@ SELECT + ( 16 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 95 AS col1, 79 AS col1 +---- +-95 +79 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -12056,8 +12202,11 @@ 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\(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\. +query II valuesort SELECT ALL 37 * - COUNT ( * ) AS col1, 87 * - 47 col1 +---- +-37 +-4089 query I rowsort SELECT - 24 + + 74 + - 4 @@ -12836,8 +12985,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE WHEN NOT NULL IS NULL THEN Int64\(80\) ELSE NULL END \* Int64\(12\) AS col2" at position 0 and "\(\- Int64\(\-98\)\) \+ Int64\(\-21\) \+ Int64\(70\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- coalesce\(Int64\(62\), Int64\(74\)\)\) \* count\(DISTINCT Int64\(24\)\) \* \(\- Int64\(\-65\)\) \* Int64\(\-95\) / Int64\(\-32\) \+ Int64\(\-33\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +NULL +NULL query I rowsort label-2432 SELECT + 15 / 45 + 52 @@ -12971,8 +13123,11 @@ SELECT 9 * - - 54 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6935 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(73\)\) \* Int64\(\-95\) AS col2" at position 0 and "nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-53\) \* \(\- \(\- coalesce\(Int64\(93\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(33\) \* Int64\(80\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(33\) \* Int64\(58\) \* \(\- Int64\(41\)\) \* \(\- nullif\(Int64\(80\), Int64\(38\) \* nullif\(Int64\(91\), \(\- Int64\(\-41\)\) \- Int64\(\-76\)\) \* Int64\(\-91\) \- \(\- Int64\(\-42\)\) \+ Int64\(67\)\)\)\)\)\) \+ Int64\(16\) \+ \(\- nullif\(Int64\(\-9\), Int64\(77\) \* nullif\(Int64\(79\), \(\- coalesce\(Int64\(92\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) / Int64\(\-91\) \+ count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(Int64\(4\) \+ Int64\(16\) AS Int32\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-6935 +1 query I rowsort label-2457 SELECT DISTINCT + + 62 / - - ( + 51 ) @@ -13130,8 +13285,11 @@ SELECT + MAX ( DISTINCT - 50 ) * - ( + COUNT ( * ) ) / + 53 + + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(90\) \+ Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) col2, 90 + 52 col2 +---- +142 +NULL query I rowsort SELECT + + 29 * - 83 @@ -13162,8 +13320,11 @@ SELECT ALL COUNT ( - 35 ), + 88 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col1" at position 0 and "\(\- CAST\(\(\- Int64\(\-60\)\) AS Int32\)\) \* Int64\(76\) \* Int64\(44\) \* \(\- sum\(DISTINCT Int64\(38\)\)\) \* \(\- CASE Int64\(54\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN CAST\(Int64\(\-60\) AS Float64\) THEN \(\- nullif\(Int64\(23\), \(\- Int64\(\-50\)\) / Int64\(\-42\)\)\) \* Int64\(17\) \+ \(\- coalesce\(Int64\(42\), Int64\(\-71\)\)\) \+ Int64\(81\) \* Int64\(\-50\) \* Int64\(\-85\) / Int64\(\-43\) WHEN Int64\(\-24\) THEN NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-4 +NULL query I rowsort label-2494 SELECT - 83 * + COUNT ( ALL 23 ) @@ -13722,8 +13883,11 @@ 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\(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\. +query II valuesort SELECT + 44 * + 32 + + COUNT ( * ) - + + 82 AS col1, + NULLIF ( ( + + 95 ), - 86 ) * + + 78 + + 88 AS col1 +---- +1327 +7498 query I rowsort SELECT 58 * - - CASE - + 63 WHEN - 21 THEN + 31 * 37 WHEN + 11 * - 98 * - - 60 THEN NULL END * - 44 * + 95 col0 @@ -13957,8 +14121,11 @@ SELECT DISTINCT NULLIF ( + MAX ( DISTINCT - 84 ), + 99 ) AS col0 # 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 "sum\(DISTINCT Int64\(\-90\)\) AS col2" at position 0 and "Int64\(\-55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + SUM ( DISTINCT - 90 ) ) AS col2, - 55 AS col2 +---- +-55 +-90 query I rowsort SELECT DISTINCT ( + + 68 ) col0 @@ -13996,8 +14163,11 @@ SELECT + 96 + + 0 + 24 * + 60 * + 42 # 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\(3\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 3 col0, 9 AS col0 +---- +3 +9 query I rowsort SELECT DISTINCT - 78 * + 28 * 3 col1 @@ -14063,8 +14233,11 @@ SELECT ALL 23 / + 15 + ( - 75 ) + - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "\(\- CASE \(\- Int64\(14\)\) WHEN Int64\(43\) THEN Int64\(30\) \+ Int64\(1\) \* Int64\(87\) \+ Int64\(\-17\) ELSE Int64\(\-89\) END\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 64 AS col0, - CASE - + 14 WHEN + 43 THEN 30 + + 1 * + 87 + + - 17 ELSE + - 89 END + + COUNT ( * ) AS col0 +---- +64 +90 query I rowsort label-2667 SELECT ALL - 54 / - 67 + - COUNT ( * ) @@ -14206,8 +14379,11 @@ SELECT DISTINCT - + 38 / - + 45 + - 0 + - 16 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -2014 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(41\) AS Int32\) AS col2" at position 0 and "Int64\(52\) \* Int64\(\-40\) \+ max\(Int64\(66\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( + 41 AS INTEGER ) AS col2, 52 * - 40 + MAX ( ALL 66 ) col2 +---- +-2014 +41 query I rowsort SELECT ALL + 85 * - + 77 col0 @@ -14268,8 +14444,11 @@ SELECT DISTINCT - 89 * + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 81 AS col2, COUNT ( * ) - + CAST ( NULL AS INTEGER ) AS col2 +---- +81 +NULL query II rowsort SELECT + ( + ( + - 72 ) ) + ( + ( + - 89 ) ) AS col1, - 18 * - 98 @@ -14296,8 +14475,11 @@ SELECT ALL - 46 col0, CAST ( - 53 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 AS col2, 56 AS col2 +---- +14 +56 query I rowsort label-2711 SELECT ( - - COUNT ( * ) ) / - - MAX ( - 13 ) @@ -14374,8 +14556,11 @@ NULL # 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\) \* Int64\(\-43\) \* count\(Int64\(74\)\) AS col2" at position 0 and "Int64\(\-82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 0 * - 43 * + COUNT ( + + ( + 74 ) ) AS col2, - 82 AS col2 +---- +-82 +0 query I rowsort SELECT 81 + 79 AS col2 @@ -14626,8 +14811,11 @@ SELECT + COUNT ( * ) + - ( + + 24 ) + - 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - 462 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(\-66\)\) \* Int64\(\-7\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MAX ( DISTINCT + - 66 ) * - 7 AS col2, 26 AS col2 +---- +26 +462 query I rowsort SELECT + + 84 + + + 13 AS col1 @@ -15652,8 +15840,11 @@ SELECT DISTINCT 99 - 17 * - 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1196 # Datafusion - Expected - 1044 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* Int64\(\-92\) AS col2" at position 0 and "Int64\(36\) \* Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 13 * - 92 AS col2, 36 * 29 col2 +---- +-1196 +1044 query I rowsort SELECT ALL + 4 * 36 col2 @@ -16060,8 +16251,12 @@ SELECT - 33 AS col1, + 61 # Datafusion - Expected - -85 # Datafusion - Expected - -88 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col0" at position 0 and "Int64\(55\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 85 AS col0, - 88, 55 AS col0 +---- +-85 +-88 +55 query I rowsort SELECT - + 84 * - 94 @@ -16440,8 +16635,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(7\) \+ Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, 7 + + 31 AS col0 +---- +1 +38 query I rowsort label-3124 SELECT DISTINCT + + 59 * 99 / COUNT ( * ) + - CAST ( NULL AS INTEGER ) + NULLIF ( SUM ( - 52 ), + + 74 ) AS col0 @@ -16712,8 +16910,11 @@ SELECT - NULLIF ( 73, + 7 * - CAST ( NULL AS INTEGER ) ) * 35 * 38 / - COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col0, 65 AS col0 +---- +65 +NULL query I rowsort SELECT 87 * 67 * - 79 * - + 61 + 92 * - 61 AS col1 @@ -16913,8 +17114,11 @@ NULL # 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\(63\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 AS col1, + 83 AS col1 +---- +63 +83 query I rowsort label-3214 SELECT COUNT ( * ) + - CAST ( - 11 AS INTEGER ) @@ -17148,8 +17352,11 @@ SELECT COUNT ( ALL + 29 ) * - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 155 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ \(\- Int64\(\-86\)\) AS col1" at position 0 and "CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 + - - 86 AS col1, + CAST ( + + ( - - COUNT ( * ) ) AS INTEGER ) AS col1 +---- +1 +155 query II rowsort SELECT ( + + 73 ) + - - 64 * - 28 * + ( - 99 ) * - - 85 AS col1, + 51 @@ -17291,8 +17498,11 @@ SELECT ALL + MAX ( DISTINCT + 13 ) * + - 3 * 35 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 49 AS col2, + 79 AS col2 +---- +49 +79 query I rowsort label-3283 SELECT ALL - 83 / - 18 @@ -17819,8 +18029,11 @@ SELECT 42 AS col1, 88 * 60 + + - 80 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col0" at position 0 and "nullif\(Int64\(5\), Int64\(42\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 col0, + NULLIF ( + 5, 42 ) AS col0 +---- +44 +5 query I rowsort label-3386 SELECT ALL MAX ( ALL 85 ) + + 87 / + CAST ( NULL AS INTEGER ) / + + 60 * COUNT ( + 45 ) / + 13 @@ -17846,8 +18059,11 @@ SELECT ALL NULLIF ( 25, + + 93 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "Int64\(23\) / Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 9 col1, + 23 / + + 31 AS col1 +---- +0 +9 query II rowsort label-3391 SELECT - COUNT ( * ), - 6 / 53 AS col1 @@ -17888,8 +18104,11 @@ SELECT + 22 / + - SUM ( ALL - - COALESCE ( 79, + + 41 ) ) * - 35 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT ALL 74 AS col2, 10 AS col2 +---- +10 +74 query I rowsort label-3398 SELECT + 39 * + - MAX ( 51 ) * - 50 AS col1 @@ -18295,8 +18514,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 70 AS col0, 21 AS col0 +---- +21 +70 query I rowsort SELECT ALL + 99 * - + 80 AS col1 @@ -18546,8 +18768,11 @@ SELECT ALL - - 70 + 52 AS col1, + 29 * COUNT ( * ) + - + 33 * 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(27\) / Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 * COUNT ( * ) AS col0, 27 / - 80 col0 +---- +0 +95 query I rowsort label-3522 SELECT - 4 / 4 @@ -19176,8 +19401,11 @@ 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\(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\. +query II valuesort 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 +---- +3440685 +7830 query I rowsort label-3642 SELECT MIN ( + + 70 ) @@ -19470,8 +19698,11 @@ 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\(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\. +query II valuesort SELECT - 23 * + - COALESCE ( - 61, - 72 * COUNT ( * ), 76 ) * + + 58 * - 9 AS col1, - 25 AS col1 +---- +-25 +732366 query I rowsort SELECT ALL - 22 * - + 57 AS col2 @@ -19716,8 +19947,11 @@ SELECT ALL + 55 * + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 26 AS col0, COUNT ( * ) AS col0 +---- +1 +26 query II rowsort label-3743 SELECT DISTINCT 77 AS col2, 62 * + + NULLIF ( - 71, + COALESCE ( - 1, 98 + 61 * - - 59 * 50 + - 54 / 31 ) + - + COUNT ( * ) - - + MAX ( DISTINCT - 55 ) + - + 14 ) * + 93 @@ -20071,8 +20305,11 @@ 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\(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\. +query II valuesort SELECT - ( - 37 ) + + - 32 * - MAX ( - COALESCE ( - 5, - + 53 * + + 78 * + 48 ) ) * COUNT ( * ) + + 39 / 24 * - COUNT ( * ) AS col1, 32 + + 70 AS col1 +---- +102 +196 query I rowsort SELECT ALL 38 * 54 @@ -20118,8 +20355,11 @@ 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\(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\. +query II valuesort SELECT ALL + + COUNT ( * ) * + 67 * - + COUNT ( * ) * + 98 AS col1, - COUNT ( * ) col1 +---- +-1 +-6566 query I rowsort SELECT DISTINCT - 37 + - + 32 * - 87 * - 27 AS col1 @@ -20205,8 +20445,11 @@ SELECT - COALESCE ( + 52, + COUNT ( * ) ) + - 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) / \(\- \(\- CAST\(Int64\(\-33\) AS Int32\)\)\) \* Int64\(\-8\) AS col1" at position 0 and "Int64\(\-94\) / \(\- Int64\(\-90\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 32 / - - CAST ( - 33 AS INTEGER ) * - 8 AS col1, - 94 / - - 90 AS col1 +---- +-1 +0 query I rowsort label-3835 SELECT ( - + MIN ( - 48 ) ) @@ -20543,8 +20786,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 72 AS col1, - 85 + - COUNT ( * ) AS col1 +---- +-86 +72 query I rowsort label-3900 SELECT + COUNT ( * ) + + COUNT ( * ) + - 60 - - 79 AS col0 @@ -20554,8 +20800,11 @@ SELECT + COUNT ( * ) + + COUNT ( * ) + - 60 - - 79 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 99 AS col2, 99 AS col2 +---- +-99 +99 query I rowsort label-3902 SELECT + 93 / + 79 + + 67 AS col0 @@ -21097,8 +21346,11 @@ SELECT ALL - - 85 + + 36 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8618 # Datafusion - Expected - 127 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- Int64\(\-96\)\)\) AS Int32\) \* \(\- Int64\(\-89\)\) \+ \(\- Int64\(74\)\) AS col0" at position 0 and "Int64\(13\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(57\) \+ Int64\(10\) \+ min\(Int64\(47\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - ( - - 96 ) AS INTEGER ) * - - 89 + - + 74 AS col0, + 13 * + COUNT ( * ) + + 57 + + 10 + + MIN ( ( 47 ) ) AS col0 +---- +-8618 +127 query I rowsort SELECT + + 34 col0 @@ -21129,8 +21381,11 @@ SELECT ALL - 33 - - 3 / - 7 * + + COUNT ( * ) * - 51 + - COUNT ( * ) # 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\(43\)\) \- Int64\(\-76\) AS col0" at position 0 and "Int64\(\-35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 43 - - 76 AS col0, - 35 AS col0 +---- +-35 +33 query I rowsort SELECT - 11 + + 13 @@ -21447,8 +21702,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 47 AS col1, 57 AS col1 +---- +-47 +57 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -21966,8 +22224,11 @@ SELECT + 37 + - 29, - 40 * - 95 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1330 # Datafusion - Expected - 38 -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 "\(\- Int64\(0\)\) \+ Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 95 * - 14 AS col0, ( - + 0 ) + 38 AS col0 +---- +1330 +38 query I rowsort label-4167 SELECT + - 68 + - + CAST ( + + 70 AS INTEGER ) AS col2 @@ -21992,8 +22253,11 @@ SELECT ALL ( MAX ( DISTINCT + 50 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 47 ) AS col0, 96 AS col0 +---- +47 +96 query I rowsort label-4172 SELECT + + CAST ( NULL AS INTEGER ) + 16 + + 46 * + 7 * ( - COALESCE ( 74, - 17 + ( - CASE 24 WHEN + - 41 - ( - 65 ) THEN NULL WHEN 82 - + MIN ( ALL + 49 ) * 94 * + - 2 * + 76 THEN + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) END ) ) ) @@ -22278,8 +22542,11 @@ SELECT 48 / - 88 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 col1, 70 AS col1 +---- +70 +8 query II rowsort label-4227 SELECT + 10 AS col2, 23 - + MIN ( - ( 46 ) ) AS col1 @@ -22710,8 +22977,11 @@ SELECT + 14 * + ( - 32 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col1" at position 0 and "Int64\(30\) \* CAST\(NULL AS Int32\) \+ Int64\(\-89\) \+ Int64\(6\) / \(\- Int64\(37\)\) / Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 AS col1, 30 * + CAST ( NULL AS INTEGER ) + + - 89 + + + 6 / ( - + 37 ) / 78 AS col1 +---- +1 +NULL query I rowsort SELECT - 63 - + + 58 col2 @@ -23045,8 +23315,11 @@ 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\(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\. +query II valuesort SELECT ALL + 92 * COUNT ( * ) * + - 39 AS col1, + 5 AS col1 +---- +-3588 +5 query I rowsort SELECT ALL 43 - + 2 AS col1 @@ -23109,8 +23382,11 @@ SELECT - + COUNT ( * ) * - COUNT ( * ) + + + 74 + - 26 + + 3 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* count\(\(\- Int64\(76\)\)\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 * + COUNT ( ALL - + 76 ) AS col1, 2 AS col1 +---- +2 +47 query I rowsort SELECT ALL - + 5 AS col1 @@ -23288,8 +23564,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 13 AS col0, - COUNT ( * ) AS col0 +---- +-1 +13 query I rowsort SELECT + 45 + + + 36 + ( + 94 ) - - 58 AS col1 @@ -23610,8 +23889,11 @@ SELECT 18 + + + 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \+ Int64\(9\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 + + 9 * CAST ( NULL AS INTEGER ) AS col0, ( + 31 ) AS col0 +---- +31 +NULL query I rowsort label-4478 SELECT ( - 11 ) * + CASE - 6 WHEN + 46 * + ( - COUNT ( * ) ) THEN 31 WHEN 16 * + 57 THEN NULL END @@ -23803,8 +24085,11 @@ SELECT ALL + 11 * ( 63 ) - - - 34 + - COUNT ( * ) 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 "Int64\(\-68\) \* Int64\(0\) / Int64\(58\) \* Int64\(65\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 68 * 0 / 58 * + + 65 AS col0, 93 AS col0 +---- +0 +93 query I rowsort label-4514 SELECT ALL + 49 * - 41 - + - 55 * - - COUNT ( * ) AS col1 @@ -24842,8 +25127,11 @@ 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\(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\. +query II valuesort SELECT 92 * - + COALESCE ( + COUNT ( * ), - 19 ) col1, + 39 + + 81 + - 43 * 68 col1 +---- +-2804 +-92 query I rowsort label-4715 SELECT MIN ( DISTINCT + 56 ) + + - 84 @@ -25175,8 +25463,11 @@ SELECT - 27 * - - ( - - COUNT ( * ) ) - - + ( + MAX ( DISTINCT - 30 ) ) + + CASE # Datafusion - Datafusion expected results: # Datafusion - Expected - -398042 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(70\)\) \- Int64\(78\) \* Int64\(88\) \* Int64\(58\) AS col2" at position 0 and "min\(Int64\(\-19\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + MAX ( ALL + 70 ) - + 78 * + 88 * + 58 AS col2, MIN ( ALL - 19 ) AS col2 +---- +-19 +-398042 query I rowsort label-4779 SELECT ALL MIN ( - + 67 ) @@ -25741,8 +26032,11 @@ SELECT ALL + COUNT ( * ) AS col0, 79 * - ( - 29 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 359660 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(90\) \* Int64\(74\) \* Int64\(54\) \+ \(\- Int64\(\-20\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + COUNT ( * ) * + 90 * 74 * + + 54 + - - 20 col2 +---- +1 +359660 query I rowsort SELECT + 9 * 59 * + 59 * - + 7 + ( - 53 ) AS col1 @@ -27652,8 +27946,11 @@ SELECT DISTINCT + 47 * + 79 * + + 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 101 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ Int64\(72\) AS col0" at position 0 and "Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 29 + 72 col0, + 71 AS col0 +---- +101 +71 query I rowsort label-5255 SELECT + - 8 - - COUNT ( * ) + - 40 * - - 68 - - 62 AS col2 @@ -27835,8 +28132,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "Int64\(12\) \+ Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 87 AS col1, + 12 + + 16 AS col1 +---- +28 +87 query I rowsort SELECT - 30 + + - 19 AS col1 @@ -28251,8 +28551,11 @@ SELECT DISTINCT + + 56 AS col1, 28 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col2" at position 0 and "Int64\(98\) \* CAST\(\(\- Int64\(\-44\)\) AS Int32\) \* CAST\(NULL AS Int32\) \+ Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 75 AS col2, 98 * + CAST ( - - 44 AS INTEGER ) * CAST ( NULL AS INTEGER ) + + 87 AS col2 +---- +75 +NULL query II rowsort SELECT + - 36 * - 23 AS col0, - 92 @@ -28595,8 +28898,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 75 AS col1, COUNT ( * ) - + CAST ( - 24 AS INTEGER ) / - + 29 * - - 87 AS col0, - COUNT ( * ) AS col1 +---- +-1 +1 +75 query II rowsort SELECT + + 43 col2, 42 @@ -28699,8 +29006,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-82\)\) \* \(\- count\(DISTINCT Int64\(31\)\)\) AS col1" at position 0 and "max\(DISTINCT Int64\(\-66\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( ALL - 82 ) * - COUNT ( DISTINCT 31 ) AS col1, MAX ( DISTINCT + - 66 ) AS col1 +---- +-1 +-66 query I rowsort SELECT ALL + 75 * - 87 + - - 63 * + 0 AS col1 @@ -28977,8 +29287,11 @@ SELECT + 54 AS col2, 6 * 36 AS col1 # 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 "Int64\(0\) AS col2" at position 0 and "Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 0 ) AS col2, - 25 AS col2 +---- +-25 +0 query I rowsort SELECT ALL - 26 * - + 2 AS col0 @@ -29109,8 +29422,11 @@ SELECT 82 - 99 * - 93 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3864 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-46\)\) \* Int64\(\-84\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 46 * - 84 AS col2, + COUNT ( * ) col2 +---- +-3864 +1 query II rowsort label-5530 SELECT ALL - + 14 AS col0, - MAX ( DISTINCT - - 21 ) AS col1 @@ -29143,8 +29459,11 @@ SELECT + 41 + - + 63 col0, - 81 * 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - -1738 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(45\)\)\)\) AS col0" at position 0 and "Int64\(79\) \* \(\- CAST\(Int64\(22\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - MAX ( ALL + 45 ) AS col0, 79 * - CAST ( 22 AS INTEGER ) AS col0 +---- +-1738 +45 query II rowsort SELECT 17 AS col0, + 5 @@ -29438,8 +29757,11 @@ SELECT + 10 + - 50 + 0 + + 56 + + 49 / - + 32 * + + 80 / 75 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col2" at position 0 and "Int64\(\-68\) \+ Int64\(\-89\) \+ \(\- Int64\(\-79\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 39 col2, - 68 + - 89 + - - 79 AS col2 +---- +-39 +-78 query II rowsort SELECT ALL + 48 AS col2, + 94 AS col1 @@ -29574,8 +29896,12 @@ 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\(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\. +query III valuesort SELECT + NULLIF ( MAX ( - 16 ), + COUNT ( * ) ) col1, + 49 / COALESCE ( - 28, 73, + 91, + 60 ) * - - CAST ( + + COUNT ( * ) AS INTEGER ), - 0 * + 4 AS col1 +---- +-1 +-16 +0 query I rowsort label-5618 SELECT ALL + ( + 51 ) * + + COUNT ( * ) + + + 12 AS col2 @@ -29950,8 +30276,11 @@ SELECT - 32 - + 20 + 2 * - 39 * 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \+ Int64\(\-84\) AS col1" at position 0 and "Int64\(17\) \- \(\- Int64\(\-86\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 10 + - 84 AS col1, 17 - - - 86 AS col1 +---- +-69 +-74 query I rowsort SELECT 97 + + - 76 @@ -30011,8 +30340,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 3132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) AS col2" at position 0 and "Int64\(54\) \* \(\- Int64\(\-58\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 col2, + 54 * - - 58 AS col2 +---- +-3 +3132 query II rowsort label-5701 SELECT - 14, - 97 + - 84 + - MIN ( 13 ) AS col0 @@ -30410,8 +30742,11 @@ SELECT 6 + + 70 + 59 / + + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 3876 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col2" at position 0 and "max\(Int64\(\-76\)\) \* Int64\(\-51\) \+ count\(Int64\(1\)\) AS count\(\*\) / \(\- \(\- CAST\(Int64\(32\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 49 AS col2, MAX ( - 76 ) * + - 51 + + COUNT ( * ) / - - CAST ( 32 AS INTEGER ) AS col2 +---- +-49 +3876 query I rowsort label-5778 SELECT DISTINCT 26 / 52 AS col2 @@ -30421,8 +30756,11 @@ 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\(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\. +query II valuesort SELECT 32 + 43 + - + COUNT ( * ) / 26 AS col1, 30 + - 87 AS col1 +---- +-57 +75 query I rowsort SELECT ALL 61 * + + ( - + 56 ) AS col1 @@ -30631,8 +30969,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + ( - - 84 ) ) - 27 * - 19 AS col0, 15 * - 41 - + + COUNT ( * ) * + - 18 AS col0 +---- +-597 +429 query I rowsort label-5819 SELECT ALL COUNT ( * ) * - + 26 @@ -31015,8 +31356,11 @@ SELECT 39 * - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 0 * + COUNT ( * ) AS col1, 65 col1 +---- +0 +65 query I rowsort label-5893 SELECT - 88 + + - COUNT ( * ) + + 98 / - 4 @@ -31150,8 +31494,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(21\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 21 * MAX ( 5 ) AS col2, ( + + NULLIF ( + - ( 17 ), COUNT ( * ) * 21 ) ) col2 +---- +-17 +105 query II rowsort SELECT ( + 66 ) + + 97 - + 22 AS col0, COALESCE ( - + 53, 57, + 52 ) @@ -31286,8 +31633,11 @@ SELECT DISTINCT - ( + 55 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-78\)\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 78 AS col2, 48 col2 +---- +48 +78 query I rowsort SELECT ALL - - 2 * + + ( + 27 ) * - 73 * + 53 - - 54 AS col1 @@ -31669,8 +32019,11 @@ SELECT ( COUNT ( * ) ) - 64 AS col2 # 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\) AS col1" at position 0 and "Int64\(25\) \+ Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 11 col1, 25 + + 14 AS col1 +---- +-11 +39 query II rowsort label-6019 SELECT 66 * + 56 AS col0, COUNT ( * ) * + - 74 AS col2 @@ -31738,8 +32091,11 @@ SELECT DISTINCT + 45 + - - 16 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "Int64\(40\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 89 col2, 40 + - + CAST ( NULL AS INTEGER ) + + 31 AS col2 +---- +89 +NULL query I rowsort label-6032 SELECT + MAX ( DISTINCT - 11 ) + + 43 @@ -31844,8 +32200,11 @@ SELECT DISTINCT 89 * - + 40 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ Int64\(15\) AS col2" at position 0 and "Int64\(\-48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 48 + + 15 AS col2, - 48 AS col2 +---- +-48 +63 query I rowsort label-6052 SELECT + COUNT ( + CASE 40 WHEN + 29 * ( + - 54 ) / 84 THEN NULL ELSE + 4 END ) col2 @@ -31886,8 +32245,11 @@ SELECT CAST ( 87 AS INTEGER ) * - 42 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1610 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* Int64\(70\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 * 70 AS col2, 66 AS col2 +---- +1610 +66 query I rowsort label-6060 SELECT + 33 * - 34 + + 69 * + 13 * + 53 + COUNT ( * ) AS col1 @@ -32034,8 +32396,11 @@ SELECT DISTINCT 95 / - 2 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6731 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* Int64\(\-68\) \+ Int64\(1\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \- nullif\(Int64\(89\), Int64\(\-71\) \+ Int64\(40\) \- Int64\(70\)\) / Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 99 * - 68 + + 1 AS col1, + CAST ( NULL AS INTEGER ) - + NULLIF ( + 89, + - 71 + + 40 - + 70 ) / 75 AS col1 +---- +-6731 +NULL query I rowsort SELECT ( + ( - 62 ) ) @@ -32076,8 +32441,11 @@ 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\(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\. +query IR valuesort SELECT ALL COUNT ( * ) * - ( 73 ) AS col1, CAST ( NULL AS FLOAT8 ) * 30 * + ( - + 71 ) col1 +---- +-73 +NULL query I rowsort SELECT DISTINCT + + ( + 75 ) @@ -32114,8 +32482,11 @@ SELECT ALL 93 * 53 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col1 +---- +-1 +NULL query I rowsort SELECT + 80 + + 88 AS col0 @@ -32370,8 +32741,11 @@ SELECT 29 * + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 31 AS col1, 73 AS col1 +---- +31 +73 query I rowsort SELECT 0 * + - 82 col2 @@ -32939,8 +33313,11 @@ SELECT DISTINCT - + SUM ( - 78 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col1" at position 0 and "Int64\(10\) \+ Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 14 AS col1, + 10 + - 62 AS col1 +---- +-14 +-52 query I rowsort label-6265 SELECT DISTINCT 5 / - 77 @@ -33181,8 +33558,11 @@ SELECT ALL - 80 * 82 * + - 56 + ( - 4 ) + + 26 * 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -178220 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \- Int64\(\-4\) \+ Int64\(6\) AS col0" at position 0 and "Int64\(\-70\) \* Int64\(38\) \* Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 7 - + - 4 + + 6 col0, - 70 * + 38 * 67 AS col0 +---- +-178220 +17 query I rowsort label-6312 SELECT ALL + 51 / CAST ( NULL AS INTEGER ) @@ -33458,8 +33838,11 @@ SELECT ALL + 52 + - + MIN ( - + ( 10 ) ) * - + 63 * + 93 # 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\(nullif\(Int64\(42\), Int64\(67\)\)\)\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( + NULLIF ( 42, + 67 ) ) AS col1, 80 col1 +---- +-1 +80 query I rowsort SELECT ALL COALESCE ( + 4, 69 ) AS col2 @@ -33479,8 +33862,11 @@ SELECT ALL 96 * - - 57 * - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 * + - CAST ( NULL AS INTEGER ) AS col2, + 95 AS col2 +---- +95 +NULL query I rowsort label-6369 SELECT ALL - SUM ( - 15 ) AS col2 @@ -34050,8 +34436,11 @@ 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\(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\. +query II valuesort SELECT ALL + CASE - - 41 WHEN - COUNT ( * ) THEN + + 32 ELSE NULL END / - 8 AS col0, + 17 AS col0 +---- +17 +NULL query I rowsort SELECT - 41 * - + 10 * + - 58 AS col0 @@ -34102,8 +34491,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 AS col2, - 91 / COUNT ( * ) + - 13 AS col2 +---- +-104 +8 query I rowsort SELECT + - 91 + 21 + 99 * 71 AS col1 @@ -34411,8 +34803,11 @@ SELECT ALL CAST ( 43 AS INTEGER ) * - - MAX ( - - 62 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -7372 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* Int64\(89\) \+ Int64\(15\) AS col0" at position 0 and "Int64\(\-62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( ( - 83 ) ) * 89 + 15 col0, - 62 AS col0 +---- +-62 +-7372 query I rowsort label-6547 SELECT MIN ( - 70 ) + - + 56 / - 82 AS col1 @@ -35121,8 +35516,11 @@ SELECT MAX ( ALL + 77 ) AS col2, COUNT ( * ) # 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 col1" at position 0 and "Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 21 AS col1, + 6 col1 +---- +-21 +6 query II rowsort label-6683 SELECT ALL 7 / + - CAST ( NULL AS INTEGER ) col0, 10 @@ -35470,8 +35868,11 @@ 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 "Int64\(3\) 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 IR valuesort SELECT 3 AS col2, CAST ( NULL AS FLOAT8 ) AS col2 +---- +3 +NULL query I rowsort SELECT ALL 72 * 18 AS col1 @@ -35901,8 +36302,11 @@ SELECT + - 68 + - 19 + - 38 * - 26 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 401388 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* Int64\(78\) \* Int64\(62\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 83 * 78 * + 62 AS col1, + 93 AS col1 +---- +401388 +93 query I rowsort label-6832 SELECT - COALESCE ( + + 46, + - 27, + - 44 * + + COUNT ( * ) * + COUNT ( * ) * ( - 39 ) + 85 + + + 75 + + 56 / + 57 ) col0 @@ -36016,8 +36420,11 @@ SELECT DISTINCT CAST ( + - 19 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "Int64\(\-90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 AS col2, - 90 AS col2 +---- +-90 +42 query I rowsort label-6854 SELECT ALL ( 86 ) * CAST ( - ( - 35 ) AS INTEGER ) col0 @@ -36042,8 +36449,11 @@ SELECT - 51 * 32 # 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 col1" at position 0 and "Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 87 col1, - 80 AS col1 +---- +-80 +87 query I rowsort SELECT + + 58 + + 44 + 34 AS col2 @@ -36332,8 +36742,11 @@ SELECT DISTINCT 60 - + 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 111 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "Int64\(87\) \+ count\(Int64\(37\)\) \* \(\- Int64\(\-26\)\) \+ Int64\(6\) / Int64\(\-3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 46 AS col2, + 87 + COUNT ( 37 ) * - - 26 + + 6 / - 3 AS col2 +---- +111 +46 query I rowsort label-6914 SELECT 37 * - 28 + + 15 + COALESCE ( + 80, - - CASE + COUNT ( - + 57 ) WHEN - + CASE + NULLIF ( SUM ( - - 21 ), - COUNT ( * ) ) WHEN 2 THEN - + 12 + - 87 WHEN + - COUNT ( * ) THEN NULL END THEN - 22 + - + 88 + 73 + 44 * CASE WHEN COUNT ( * ) IS NOT NULL THEN - 23 END WHEN AVG ( ALL 86 ) * + 97 THEN NULL ELSE NULL END + + 74, 69 / + 42 + + MIN ( DISTINCT + CAST ( - 3 AS INTEGER ) ) * 0 ) - - CAST ( NULL AS INTEGER ) @@ -36464,8 +36877,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 58 col0, COUNT ( * ) * 33 AS col0 +---- +33 +58 query I rowsort label-6939 SELECT NULLIF ( COUNT ( * ), + 20 * + COUNT ( * ) ) @@ -37173,8 +37589,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 24 * - + COUNT ( DISTINCT 38 ) AS col0, 25 * + - COUNT ( * ) * + 39 AS col0 +---- +-975 +24 query I rowsort label-7074 SELECT 51 / 28 + - - 94 / + 27 + + 21 + + 18 @@ -37558,8 +37977,12 @@ SELECT ALL 57 * + + COUNT ( * ) # Datafusion - Expected - 1528 # Datafusion - Expected - -82 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* \(\- Int64\(\-42\)\) \+ Int64\(57\) \- \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 35 * - - 42 + + 57 - - CAST ( + COUNT ( * ) AS INTEGER ) AS col2, - 82 AS col2, - + 57 +---- +-57 +-82 +1528 query I rowsort SELECT ALL 49 * + 54 AS col0 @@ -37915,8 +38338,11 @@ SELECT ALL CAST ( + - ( 82 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -151 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) \- Int64\(75\) AS col1" at position 0 and "Int64\(\-11\) \+ max\(Int64\(63\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 76 - 75 AS col1, - 11 + MAX ( ALL 63 ) AS col1 +---- +-151 +52 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -38130,8 +38556,11 @@ NULL # 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 col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 AS col0, + 34 AS col0 +---- +34 +34 query I rowsort SELECT ( + ( - 94 ) ) + + 34 * - + 69 - + 78 AS col0 @@ -38189,8 +38618,11 @@ SELECT MAX ( ALL + 89 ) * 73 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 7691 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(4\)\) AS col2" at position 0 and "Int64\(96\) \* \(\- Int64\(\-80\)\) \+ Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 4 AS col2, 96 * - - 80 + 11 AS col2 +---- +-4 +7691 query I rowsort label-7267 SELECT ALL - NULLIF ( 29, + COUNT ( * ) ) AS col1 @@ -38225,8 +38657,11 @@ SELECT COUNT ( * ) * + 93 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(15\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- nullif\(Int64\(1\), Int64\(50\)\)\) AS col2" at position 0 and "Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - - CAST ( NULL AS INTEGER ) ) + + 15 + + - COUNT ( * ) * - NULLIF ( + + 1, 50 ) col2, - 63 AS col2 +---- +-63 +NULL query I rowsort label-7274 SELECT COUNT ( 3 ) + + 54 @@ -38717,8 +39152,11 @@ SELECT DISTINCT + COUNT ( * ) + + 4 + + COUNT ( * ) / + 58 + CAST ( 26 AS INTEGE # Datafusion - Datafusion expected results: # Datafusion - Expected - -6035 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \* Int64\(71\) AS col2" at position 0 and "\(\- Int64\(\-86\)\) \+ Int64\(\-75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 85 * 71 AS col2, - ( - 86 ) + - 75 AS col2 +---- +-6035 +11 query I rowsort label-7367 SELECT DISTINCT 94 + + 14 + - MIN ( + 24 ) @@ -38750,8 +39188,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(36\) WHEN Int64\(9\) THEN Int64\(\-27\) / Int64\(\-42\) \- Int64\(69\) WHEN Int64\(\-82\) THEN NULL END\) AS col2" at position 0 and "Int64\(41\) \+ Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CASE + 36 WHEN + 9 THEN - 27 / + + ( - 42 ) - 69 WHEN - 82 THEN NULL END AS col2, + 41 + + 73 AS col2 +---- +114 +NULL query I rowsort label-7373 SELECT DISTINCT - SUM ( 37 ) @@ -39475,8 +39916,12 @@ SELECT 17 + 25 + - 44 # Datafusion - Expected - 32 # Datafusion - Expected - -56 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 0 and "count\(Int64\(88\)\) \* \(\- CAST\(Int64\(\-58\) AS Int32\)\) / \(\- Int64\(97\)\) \+ Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 32 AS col1, + COUNT ( + 88 ) * - ( + + CAST ( - 58 AS INTEGER ) ) / - ( 97 ) + + - 56 AS col1, + SUM ( DISTINCT 55 ) +---- +-56 +32 +55 query I rowsort label-7513 SELECT ALL 23 + + COUNT ( * ) AS col0 @@ -39512,8 +39957,11 @@ SELECT DISTINCT - 15 * - - CAST ( - 56 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 113 # Datafusion - Expected - 858 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ Int64\(53\) AS col0" at position 0 and "Int64\(\-13\) \* \(\- Int64\(66\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 60 + + + 53 AS col0, - 13 * - ( + 66 ) / COUNT ( * ) AS col0 +---- +113 +858 query I rowsort label-7520 SELECT 48 / + 27 col2 @@ -39570,8 +40018,12 @@ SELECT DISTINCT - - COALESCE ( 74, + 78 ) * + 70 * + 17 AS col2 # Datafusion - Expected - 3 # Datafusion - Expected - 19 # 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\(\-1\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - - 3 AS col2, 19 AS col0, - 1 AS col2 +---- +-1 +19 +3 query II rowsort label-7531 SELECT + + SUM ( + - 77 ) * 24 + + - 3 + + ( + - 35 ) AS col1, - 96 @@ -39679,8 +40131,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-1 +33 query I rowsort label-7552 SELECT DISTINCT 36 * + - 31 * - + 87 + - - 3 + + COUNT ( * ) * - SUM ( - 44 ) @@ -39737,8 +40192,11 @@ SELECT ALL + NULLIF ( - CAST ( ( - - COUNT ( * ) ) AS INTEGER ), + 1 * - 5 + 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(6\)\) AS Int32\)\) \+ Int64\(80\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ sum\(DISTINCT Int64\(\-24\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( - + 6 AS INTEGER ) + + 80 AS col1, COUNT ( * ) + + SUM ( DISTINCT + - 24 ) col1 +---- +-23 +86 query I rowsort label-7563 SELECT ALL - ( - COUNT ( * ) ) * + NULLIF ( - 1, COUNT ( * ) * + - CAST ( + COALESCE ( - 74, + COUNT ( * ) / 79 * 40 * + 61 ) AS INTEGER ) ) - - 74 col1 @@ -39967,8 +40425,11 @@ SELECT ALL + CAST ( - 16 AS INTEGER ) - + 88 + - CAST ( - COUNT ( * ) AS INTEGER # Datafusion - Datafusion expected results: # Datafusion - Expected - 1218 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* Int64\(21\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 * 21 AS col1, 93 AS col1 +---- +1218 +93 query I rowsort SELECT 32 * + 8 @@ -40060,8 +40521,11 @@ SELECT DISTINCT 54 + + + 9 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 336168 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-56\) \* Int64\(\-69\) \* max\(\(\- Int64\(\-87\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 58 + + CAST ( NULL AS INTEGER ) col2, - 56 * - 69 * + MAX ( - - 87 ) AS col2 +---- +336168 +NULL query I rowsort SELECT DISTINCT - + 81 AS col2 @@ -40158,8 +40622,11 @@ SELECT - SUM ( 16 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- coalesce\(Int64\(89\), Int64\(60\) \* Int64\(\-19\) \+ \(\- Int64\(6\)\)\)\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(18\) \* \(\- CASE Int64\(\-45\) WHEN Int64\(47\) THEN count\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(14\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- count\(\(\- Int64\(44\)\)\)\) ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-89 +NULL query I rowsort SELECT DISTINCT ( + 80 ) col2 @@ -40174,14 +40641,20 @@ SELECT ALL - + 0 * + ( + - 57 ) + + 45 + + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1709 # Datafusion - Expected - 4660 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* Int64\(78\) \+ Int64\(\-85\) AS col1" at position 0 and "coalesce\(\(\- Int64\(\-69\)\), \(\- CAST\(Int64\(\-92\) AS Int32\)\)\) \* Int64\(68\) \+ coalesce\(Int64\(\-32\), Int64\(84\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 23 * + 78 + - 85 col1, + COALESCE ( - ( - 69 ), - CAST ( - 92 AS INTEGER ) ) * 68 + + COALESCE ( + - 32, + ( + + 84 ) ) AS col1 +---- +1709 +4660 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 1170 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-20\)\) AS col2" at position 0 and "Int64\(15\) \* Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 20 AS col2, 15 * + 78 AS col2 +---- +1170 +20 query I rowsort label-7648 SELECT DISTINCT + 11 + - NULLIF ( + MAX ( ALL + + 43 ), - 61 ) AS col0 @@ -40224,8 +40697,11 @@ SELECT - 99 * - 33 - + ( + NULLIF ( - 50, 16 * - CASE - 19 WHEN + CAST ( NULL AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-32\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(\-78\)\) \+ Int64\(62\) AS col2" at position 0 and "Int64\(21\) / Int64\(\-51\) \* Int64\(\-62\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 32 * COUNT ( * ) + + COUNT ( + - 78 ) + + 62 AS col2, 21 / - 51 * - 62 * + CAST ( NULL AS INTEGER ) AS col2 +---- +95 +NULL query I rowsort SELECT ALL 3 * - - 5 + - + 75 @@ -40245,8 +40721,11 @@ SELECT 62 * - 80 + - 79 + + 52 * + - 90 * 88 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2233 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \- Int64\(\-16\) \+ Int64\(28\) \- \(\- Int64\(84\)\) \* Int64\(25\) AS col2" at position 0 and "Int64\(\-39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 - - 16 + 28 - - + 84 * 25 AS col2, - 39 AS col2 +---- +-39 +2233 query I rowsort SELECT ALL - ( + 24 ) @@ -40405,8 +40884,11 @@ SELECT ALL COALESCE ( - - ( 4 ), - COUNT ( * ) * + + COALESCE ( - + 32, - - 51 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 38 AS col2, + 46 AS col2 +---- +38 +46 query I rowsort label-7690 SELECT ALL + 17 / 59 + - 59 - 17 @@ -40492,8 +40974,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - -129 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(47\)\) AS col0" at position 0 and "Int64\(\-51\) \- \(\- \(\- Int64\(78\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( DISTINCT + 47 ) AS col0, - 51 - - ( - + 78 ) AS col0 +---- +-129 +47 query I rowsort SELECT ALL 16 * - 11 * + 56 + + ( 4 ) + + + 77 + 67 * - ( - 64 ) @@ -40569,8 +41054,11 @@ SELECT DISTINCT MAX ( ALL + 30 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1174 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* \(\- Int64\(27\)\) \+ Int64\(95\) AS col1" at position 0 and "Int64\(49\) \+ Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 * + ( - + 27 ) + 95 col1, 49 + - 25 AS col1 +---- +-1174 +24 query I rowsort SELECT 68 - - + 17 AS col0 @@ -40686,8 +41174,11 @@ SELECT + 42 + + - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "Int64\(54\) \* Int64\(75\) \+ \(\- CAST\(NULL AS Float64\)\) \+ Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL 66 AS col0, 54 * 75 + + - CAST ( NULL AS FLOAT8 ) + 80 AS col0 +---- +66 +NULL query I rowsort SELECT 35 * - 53 @@ -41477,8 +41968,11 @@ 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\(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\. +query II valuesort SELECT - 28 AS col2, - CASE 6 WHEN 66 THEN + CASE AVG ( ALL - 97 ) WHEN COUNT ( * ) * 68 THEN 12 END ELSE NULL END AS col2 +---- +-28 +NULL query I rowsort SELECT ALL 52 * - 49 @@ -41503,8 +41997,11 @@ SELECT COUNT ( * ) + 24 # 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 col0" at position 0 and "Int64\(7\) \+ Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 47 AS col0, 7 + + + 61 AS col0 +---- +47 +68 query I rowsort label-7903 SELECT + MAX ( + 22 ) * - CASE 80 WHEN 54 THEN NULL ELSE 62 + - MIN ( DISTINCT + CASE + 44 WHEN + 6 THEN + 36 ELSE - 60 END + - 88 ) END * 99 + ( - 48 ) AS col1 @@ -41701,8 +42198,11 @@ SELECT - ( - 70 ) AS col0, - 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1785 # Datafusion - Expected - 14352 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(\-85\) AS col2" at position 0 and "Int64\(46\) \* Int64\(13\) \* Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 21 * - 85 AS col2, 46 * 13 * + 24 AS col2 +---- +-1785 +14352 query I rowsort label-7942 SELECT - 27 + - 6 - 79 / ( 18 ) * + 74 AS col0 @@ -41866,8 +42366,11 @@ SELECT 27 + SUM ( + 15 ) AS col0, 32 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 40 col1, 93 AS col1 +---- +40 +93 query I rowsort SELECT 2 * - + 27 @@ -41984,8 +42487,11 @@ SELECT 56, + 56 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col2" at position 0 and "Int64\(\-40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 AS col2, - 40 AS col2 +---- +-40 +64 query II rowsort SELECT ALL - ( 11 ), + 35 AS col1 @@ -42035,8 +42541,11 @@ SELECT 12 * + - 63 AS col2 # 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 "Int64\(\-50\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 50 AS col1, 19 AS col1 +---- +-50 +19 query II rowsort SELECT + 79 AS col0, 28 @@ -42179,8 +42688,11 @@ SELECT ALL - 69 AS col2, + 53 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 82 AS col1, 42 AS col1 +---- +42 +82 query I rowsort label-8032 SELECT + 90 * NULLIF ( + 24, + 80 + - + 79 ) * + 44 + - CASE ( COUNT ( * ) ) WHEN 83 / + 6 THEN NULL WHEN 22 * 42 THEN NULL ELSE NULLIF ( - 10, COUNT ( * ) ) END AS col2 @@ -42464,8 +42976,11 @@ SELECT DISTINCT + - 40 * - 99 * + 90 - - - 71 * - + COUNT ( * ) + - ( + + 92 ) # 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\(21\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 21 AS col1, + 54 AS col1 +---- +21 +54 query I rowsort label-8086 SELECT DISTINCT + 29 * - - CAST ( NULL AS INTEGER ) @@ -42833,8 +43348,11 @@ SELECT ALL + 51 * + - 57 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 84 AS col0, COUNT ( * ) AS col0 +---- +-84 +1 query I rowsort SELECT ALL 14 * 78 AS col0 @@ -43111,8 +43629,11 @@ 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\(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\. +query II valuesort SELECT ALL 81 AS col2, 10 / - + CASE + 4 WHEN + ( - COUNT ( * ) ) THEN NULL ELSE - MAX ( - 34 ) * - 7 END + + 88 AS col2 +---- +81 +88 query I rowsort SELECT - 29 * 45 * - 46 col0 @@ -43888,8 +44409,12 @@ NULL # Datafusion - Expected - -33 # Datafusion - Expected - -1 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col2" at position 0 and "Int64\(\-54\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 33 AS col2, - 1 AS col1, + - 54 AS col2 +---- +-1 +-33 +-54 query I rowsort label-8355 SELECT ALL - 61 * 39 * COUNT ( * ) @@ -43988,8 +44513,11 @@ SELECT ALL 0, - 65 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(31\)\) AS col0" at position 0 and "Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 31 AS col0, - 94 AS col0 +---- +-31 +-94 query I rowsort SELECT ALL + 1 + + 21 @@ -44099,8 +44627,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 + - 80 AS col1, COUNT ( * ) / + + 71 AS col1 +---- +-57 +0 query I rowsort SELECT ALL + - 10 + 28 @@ -44551,8 +45082,12 @@ NULL # Datafusion - Expected - 73 # Datafusion - Expected - 51 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col1" at position 0 and "Int64\(63\) \+ Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 73 AS col1, + 63 + - 12 AS col1, - 85 col2 +---- +-85 +51 +73 query I rowsort SELECT ALL + 71 + - 45 + - 42 + - 59 AS col2 @@ -44707,8 +45242,11 @@ SELECT DISTINCT 34 * 20 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 60 AS col1, + 20 AS col1 +---- +-60 +20 query I rowsort SELECT ALL 69 * - CASE - 32 WHEN - AVG ( - 10 ) * - 98 THEN + - 19 END @@ -45230,14 +45768,20 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) / 26 AS col2, - 90 * + 91 AS col2 +---- +-8190 +0 # 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\(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\. +query II valuesort SELECT ALL - 18 * - COUNT ( * ) AS col1, 28 AS col1 +---- +18 +28 query II rowsort SELECT 15 + 49, + 58 + + - 16 * + 6 col2 @@ -45934,8 +46478,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 AS col1, NULLIF ( - + 14, - + COUNT ( * ) ) AS col1 +---- +-14 +90 query II rowsort label-8747 SELECT DISTINCT 90, COUNT ( * ) AS col0 @@ -45996,8 +46543,11 @@ SELECT ALL - 70 * - + 22 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3787 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \* Int64\(40\) \+ Int64\(67\) AS col0" at position 0 and "CAST\(\(\- Int64\(\-63\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 * + 40 + 67 AS col0, + CAST ( - - 63 AS INTEGER ) AS col0 +---- +3787 +63 query I rowsort SELECT + 79 * - - 69 AS col0 @@ -46452,14 +47002,20 @@ SELECT 78 * - 48 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) AS col2" at position 0 and "Int64\(\-24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 13 AS col2, - 24 AS col2 +---- +-13 +-24 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(84\)\) AS col2" at position 0 and "Int64\(28\) / Int64\(\-40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 84 AS col2, 28 / - 40 AS col2 +---- +-84 +0 query I rowsort label-8845 SELECT + COUNT ( * ) * 92 @@ -46697,8 +47253,11 @@ SELECT 39 + - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \+ \(\- Int64\(\-5\)\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 33 + - - 5 AS col1, 21 AS col1 +---- +-28 +21 query I rowsort SELECT ALL 16 - + 26 col0 @@ -46999,8 +47558,11 @@ SELECT DISTINCT - 93 / 6 + + - 56 * 89 * - + 51 - + COUNT ( ALL 81 ) / - MAX ( D # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) / Int64\(39\) \+ Int64\(6\) \+ Int64\(6\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 58 / 39 + 6 + 6 AS col1, 48 col1 +---- +13 +48 query II rowsort SELECT - 41 * + 61 + + - 57 + + 21 * + 77, + 21 + - 55 + 14 + - 47 AS col2 @@ -47368,8 +47930,12 @@ SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col1 # Datafusion - Expected - 49 # Datafusion - Expected - -5413 # Datafusion - Expected - 8436 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "sum\(\(\- \(\- Int64\(\-98\)\)\)\) \+ Int64\(3\) \+ Int64\(93\) \+ Int64\(\-82\) \* Int64\(66\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 49 AS col2, SUM ( ALL - - ( + - 98 ) ) + + 3 + + 93 + - 82 * 66 + COUNT ( * ) AS col2, - 52 * - 71 * COUNT ( * ) + + 13 + - 57 * - 83 AS col0 +---- +-5413 +49 +8436 query I rowsort label-9017 SELECT DISTINCT 93 / + + ( - 14 ) AS col0 @@ -47601,8 +48167,11 @@ SELECT + 73 + + + 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 AS col0, 80 AS col0 +---- +-82 +80 query I rowsort label-9061 SELECT COUNT ( - 5 ) AS col2 @@ -47730,8 +48299,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - ( - 10 ) * + + COUNT ( * ) + + + 72 col1, - COALESCE ( + 43, - + 98 * - 89 * 27 ) AS col1 +---- +-43 +82 query I rowsort SELECT DISTINCT - CASE WHEN NOT + 72 IS NOT NULL THEN NULL WHEN ( NOT + 14 + - 19 IS NULL ) OR NOT - 78 IS NOT NULL THEN - 65 ELSE + - ( - - 25 ) END AS col1 @@ -48026,8 +48598,11 @@ SELECT + 31 / 11 AS col1 # 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 col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 23 AS col0, 0 col0 +---- +0 +23 query I rowsort SELECT - 33 * - 95 @@ -48069,8 +48644,12 @@ NULL # Datafusion - Expected - 58 # Datafusion - Expected - -7 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 0 and "Int64\(69\) \+ max\(DISTINCT Int64\(\-76\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 58 AS col1, 69 + MAX ( DISTINCT - 76 ) AS col1, 71 +---- +-7 +58 +71 query I rowsort SELECT - + 74 + ( - + 39 ) @@ -48112,8 +48691,11 @@ SELECT ALL 16 * - 80 * + 57 # 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\(2\) \- Int64\(\-15\) AS col1" at position 0 and "Int64\(4\) \+ CASE Int64\(74\) WHEN Int64\(\-12\) THEN NULL ELSE Int64\(78\) END / \(\- nullif\(CASE \(\- nullif\(Int64\(\-47\), Int64\(\-92\)\)\) WHEN \(\- Int64\(\-13\)\) \+ Int64\(\-65\) THEN Int64\(\-4\) WHEN Int64\(93\) \* Int64\(61\) THEN nullif\(Int64\(53\), Int64\(29\)\) \* Int64\(23\) ELSE NULL END, Int64\(16\) \+ max\(\(\- Int64\(\-68\)\)\) \* Int64\(62\)\)\) \* \(\- Int64\(81\)\) \+ Int64\(49\) \* Int64\(82\) \* \(\- Int64\(\-66\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 2 - - 15 AS col1, 4 + + CASE + 74 WHEN - 12 THEN NULL ELSE + 78 END / - NULLIF ( + CASE - NULLIF ( + - 47, - 92 ) WHEN - - 13 + - 65 THEN - 4 WHEN 93 * 61 THEN NULLIF ( + 53, 29 ) * + 23 ELSE NULL END, 16 + + MAX ( - ( - 68 ) ) * + ( 62 ) ) * - + 81 + 49 * 82 * - - 66 AS col1 +---- +17 +NULL query I rowsort SELECT ALL NULLIF ( + 94, - 67 + + 64 * 90 ) AS col1 @@ -48183,8 +48765,11 @@ 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\(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\. +query II valuesort SELECT + + SUM ( 60 ) AS col0, COUNT ( * ) + + 0 - - 56 + + - 35 + + 24 AS col0 +---- +46 +60 query I rowsort SELECT 4 + 51 * + 24 * 83 @@ -48340,8 +48925,11 @@ SELECT COUNT ( * ) * - + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 102 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ Int64\(73\) AS col0" at position 0 and "count\(DISTINCT \(\- \(\- \(\- CAST\(Int64\(16\) AS Int32\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( 29 ) + + 73 AS col0, COUNT ( DISTINCT - - ( + - CAST ( + 16 AS INTEGER ) ) ) AS col0 +---- +1 +102 query I rowsort label-9203 SELECT ALL - CASE + 46 WHEN - + MAX ( ALL - 12 ) THEN NULL ELSE - 57 END col2 @@ -48400,8 +48988,11 @@ SELECT ALL + 62 col0, 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 54 AS col2, 85 AS col2 +---- +54 +85 query I rowsort label-9214 SELECT + + 12 * - COUNT ( * ) + + 83 * 68 - - COUNT ( * ) AS col2 @@ -48411,8 +49002,11 @@ SELECT + + 12 * - COUNT ( * ) + + 83 * 68 - - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(23\) \+ Int64\(\-59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, + 23 + - 59 AS col2 +---- +-36 +1 query II rowsort label-9216 SELECT ALL CAST ( NULL AS INTEGER ), CAST ( - 77 AS INTEGER ) - COUNT ( DISTINCT 25 ) AS col2 @@ -48583,8 +49177,11 @@ SELECT - 57 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col1" at position 0 and "Int64\(47\) \* \(\- CASE Int64\(47\) WHEN Int64\(79\) THEN Int64\(\-85\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 84 AS col1, 47 * - CASE + 47 WHEN ( + 79 ) THEN - 85 END AS col1 +---- +-84 +NULL query I rowsort label-9249 SELECT - 51 * ( - + CASE + + 45 WHEN COALESCE ( - 24, 13 + - 38 ) + - COUNT ( * ) THEN + + 26 / + 26 + - SUM ( DISTINCT - + 62 ) - + COUNT ( * ) * ( + - 65 ) + 12 * 71 / + - CAST ( NULL AS INTEGER ) WHEN - 77 * - 48 THEN NULL WHEN - 61 THEN NULL WHEN 7 THEN NULL ELSE 88 + 49 END ) AS col1 @@ -48703,8 +49300,11 @@ SELECT + - 89 AS col0, ( + 4 ) + 2 * 65 * + 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* \(\- CASE \(\- Int64\(\-94\)\) WHEN \(\- max\(Int64\(60\)\)\) \+ Int64\(54\) THEN Int64\(93\) \+ \(\- Int64\(\-32\)\) ELSE NULL END\) \* Int64\(\-13\) \+ Int64\(21\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- min\(Int64\(26\)\)\) \+ Int64\(92\) AS col0" at position 0 and "Int64\(\-44\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-44 +NULL query I rowsort label-9272 SELECT 96 / - - 47 + 95 + + 19 * - 50 * 38 @@ -49143,8 +49743,11 @@ SELECT ALL 44 * 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(39\) WHEN count\(Int64\(32\)\) \- \(\- Int64\(\-40\)\) THEN Int64\(92\) END AS col0" at position 0 and "\(\- count\(\(\- Int64\(\-98\)\)\)\) \+ \(\- Int64\(88\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CASE + + 39 WHEN COUNT ( ALL 32 ) - - - 40 THEN + 92 END AS col0, - COUNT ( - - 98 ) + - + 88 + + COUNT ( * ) * + COUNT ( * ) AS col0 +---- +-88 +NULL query I rowsort label-9357 SELECT - MIN ( + - 97 ) AS col1 @@ -50371,8 +50974,11 @@ SELECT ALL + 74 / + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 0 AS col2, COUNT ( * ) AS col2 +---- +0 +1 query I rowsort SELECT COALESCE ( 5, + + 19 - + 79 * + + 78 + - 50 ) AS col1 @@ -50543,8 +51149,11 @@ SELECT ALL + + 92 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, 83 AS col2 +---- +1 +83 query I rowsort label-9630 SELECT + + COUNT ( * ) + - + 22 @@ -50685,8 +51294,11 @@ SELECT - 0 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2460 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) \* \(\- Int64\(\-30\)\) AS col2" at position 0 and "Int64\(93\) / Int64\(\-22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 82 * - - 30 col2, 93 / - 22 AS col2 +---- +-2460 +-4 query I rowsort SELECT ALL 17 - 53 AS col1 @@ -50876,8 +51488,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( 8, - 98 ) AS col2, - COUNT ( * ) AS col2 +---- +-1 +8 query I rowsort label-9694 SELECT + 51 / - - 91 AS col2 @@ -52008,8 +52623,11 @@ SELECT 57 + - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 80 col1, 77 AS col1 +---- +77 +80 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -52043,8 +52661,11 @@ SELECT DISTINCT - + 26 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 col1" at position 0 and "Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 col1, - 1 AS col1 +---- +-1 +6 query I rowsort label-9919 SELECT + 7 + COUNT ( * ) @@ -52239,8 +52860,11 @@ SELECT - COUNT ( * ) + 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(\-48\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 + - 48 AS col0, + 28 col0 +---- +-48 +28 query I rowsort SELECT - 18 + 4 @@ -52397,8 +53021,11 @@ SELECT ALL COUNT ( * ) + - CAST ( - - COUNT ( 93 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-28\)\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 28 AS col2, - CAST ( NULL AS INTEGER ) AS col2 +---- +28 +NULL query I rowsort SELECT ALL + 74 + 47 diff --git a/data/sqlite/random/expr/slt_good_54.slt b/data/sqlite/random/expr/slt_good_54.slt index 53da9e2..1e74477 100644 --- a/data/sqlite/random/expr/slt_good_54.slt +++ b/data/sqlite/random/expr/slt_good_54.slt @@ -467,8 +467,11 @@ SELECT - - 38 + - - COUNT ( 79 ) # 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 "Int64\(28\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 AS col1, 36 AS col1 +---- +28 +36 query I rowsort SELECT - + 94 @@ -546,8 +549,11 @@ SELECT + MAX ( + 51 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 7680 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(96\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 * + 96 AS col2, + 95 AS col2 +---- +7680 +95 query I rowsort SELECT DISTINCT - 2 col2 @@ -677,8 +683,11 @@ SELECT ALL CAST ( 32 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "max\(Int64\(\-7\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, MAX ( ALL + - 7 ) col1 +---- +-7 +1 query I rowsort label-126 SELECT ALL - ( CAST ( NULL AS INTEGER ) ) * - 1 col0 @@ -718,8 +727,11 @@ SELECT ALL - + NULLIF ( 24, + - 73 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(52\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(73\)\)\) AS col0" at position 0 and "avg\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT - + COALESCE ( 52, - - COUNT ( * ) * + 73 ) AS col0, + AVG ( - CAST ( NULL AS INTEGER ) ) col0 +---- +-52 +NULL query I rowsort label-133 SELECT ( + 91 ) * - + COUNT ( * ) AS col0 @@ -856,8 +868,11 @@ SELECT COUNT ( * ) col1, 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - COUNT ( * ) AS col1, COUNT ( * ) * + COUNT ( * ) AS col1 +---- +-1 +1 query I rowsort label-159 SELECT + COUNT ( * ) * + 73 * + + COUNT ( * ) AS col1 @@ -1251,8 +1266,11 @@ SELECT ALL CAST ( + 34 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) col1, + 34 AS col1 +---- +34 +NULL query I rowsort label-236 SELECT ALL + COUNT ( * ) + + - COUNT ( * ) @@ -2798,8 +2816,11 @@ SELECT 35 * - 46 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 27 col0, COUNT ( * ) col0 +---- +1 +27 query I rowsort SELECT DISTINCT - 97 * - + 78 * - 41 AS col0 @@ -2949,8 +2970,11 @@ SELECT MIN ( ALL + - 66 ) / + - 28 + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 55 AS col1, CAST ( NULL AS INTEGER ) AS col1 +---- +-55 +NULL query I rowsort label-566 SELECT 94 * - - COUNT ( * ) @@ -3319,8 +3343,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, - 21 AS col2 +---- +-1 +-21 query I rowsort label-637 SELECT NULLIF ( + + 36, + 95 ) / - ( 34 ) @@ -4229,8 +4256,11 @@ SELECT ALL CAST ( - 71 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 72 AS col2, + 5 AS col2 +---- +5 +72 query I rowsort SELECT ALL 75 * + 43 AS col2 @@ -4761,8 +4791,11 @@ SELECT - 39, 33 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 65 AS col1, 19 AS col1 +---- +-65 +19 query I rowsort label-916 SELECT DISTINCT + CAST ( - ( + 64 ) AS INTEGER ) @@ -5102,8 +5135,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ), + COUNT ( * ) +---- +1 +1 query I rowsort SELECT DISTINCT + 48 col1 @@ -6953,8 +6989,11 @@ SELECT DISTINCT - 62 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col1 +---- +1 +NULL query I rowsort label-1343 SELECT ALL + SUM ( - 60 ) AS col1 @@ -7851,8 +7890,11 @@ SELECT DISTINCT - COALESCE ( - - COUNT ( * ), + 84 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col2" at position 0 and "CAST\(NULL AS Int32\) / max\(DISTINCT \(\- Int64\(87\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 98 AS col2, CAST ( NULL AS INTEGER ) / MAX ( DISTINCT - + 87 ) AS col2 +---- +-98 +NULL query I rowsort label-1516 SELECT + COUNT ( DISTINCT - ( 88 ) ) AS col2 @@ -7953,8 +7995,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + + COUNT ( * ), + COUNT ( * ) +---- +1 +1 query I rowsort label-1536 SELECT - CAST ( MIN ( ALL 60 ) AS INTEGER ) @@ -8822,8 +8867,11 @@ SELECT DISTINCT + COUNT ( * ) / + 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \+ Int64\(6\) AS col2" at position 0 and "Int64\(\-48\) / Int64\(34\) \+ Int64\(\-51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 10 + + 6 AS col2, - 48 / 34 + + - 51 AS col2 +---- +-52 +16 query I rowsort SELECT - + 90 col1 @@ -10250,8 +10298,11 @@ SELECT + COUNT ( * ) - 3 + - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 AS col1, 26 AS col1 +---- +0 +26 query I rowsort label-1987 SELECT DISTINCT + + MAX ( DISTINCT + 93 ) AS col1 @@ -10394,8 +10445,11 @@ SELECT 18 * + + ( + 91 ) + - 87 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + COUNT ( * ) AS col2, + 99 AS col2 +---- +1 +99 query I rowsort SELECT DISTINCT + + ( - - 68 ) AS col1 @@ -10827,8 +10881,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) col0, - COUNT ( * ) AS col0 +---- +-1 +-1 query I rowsort label-2100 SELECT COUNT ( * ) + + - COUNT ( * ) @@ -12052,8 +12109,11 @@ SELECT ALL - ( - + 65 ) + - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(22\) \+ Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, 22 + + 55 AS col1 +---- +77 +NULL query I rowsort label-2335 SELECT COUNT ( * ) * 95 @@ -13452,8 +13512,11 @@ SELECT COUNT ( * ) * + + 66 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 AS col1, COUNT ( * ) AS col1 +---- +1 +1 query II rowsort SELECT ALL 35 AS col1, 51 @@ -15212,8 +15275,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * ( + + 0 ) + - - 53 AS col1, - 32 AS col1 +---- +-32 +53 query I rowsort SELECT ALL - + 69 AS col2 @@ -15426,8 +15492,11 @@ SELECT ALL + - 88 * + 62 # 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 col1" at position 0 and "Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 2 col1, - 79 col1 +---- +-2 +-79 query I rowsort label-2993 SELECT DISTINCT + - 66 / - + 14 @@ -15786,8 +15855,11 @@ SELECT DISTINCT 73 * + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 + CAST ( NULL AS INTEGER ) AS col0, ( 4 ) AS col0 +---- +4 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -16103,8 +16175,11 @@ SELECT ALL ( + ( COUNT ( * ) ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "Int64\(\-9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 8 AS col1, - 9 AS col1 +---- +-9 +8 query I rowsort label-3125 SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 @@ -16347,8 +16422,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-35\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( ALL - 35 ) AS col1, COUNT ( * ) AS col1 +---- +-35 +1 query I rowsort SELECT ( 24 ) AS col0 @@ -16630,8 +16708,11 @@ SELECT - - 24 * - 71 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, 32 col1 +---- +1 +32 query I rowsort SELECT + ( + - 63 ) @@ -17555,8 +17636,11 @@ SELECT ALL CAST ( MAX ( - 50 ) AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col1" at position 0 and "Int64\(\-92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 85 AS col1, - 92 col1 +---- +-92 +85 query II rowsort SELECT ALL 43 AS col0, + 30 AS col1 @@ -17666,8 +17750,11 @@ SELECT ALL + MIN ( - 12 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0 +---- +-1 +NULL query I rowsort label-3429 SELECT DISTINCT + + SUM ( DISTINCT - + 14 ) @@ -17727,8 +17814,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ), COUNT ( * ) +---- +1 +1 query I rowsort SELECT ALL 63 + - 76 @@ -18112,8 +18202,11 @@ SELECT - ( - + NULLIF ( - 41, + 4 * + - 38 / 66 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 78 col2, - 49 AS col2 +---- +-49 +78 query I rowsort SELECT + 98 - + - ( 95 ) @@ -18600,8 +18693,11 @@ SELECT CAST ( - 22 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, COUNT ( * ) / + 23 AS col0 +---- +0 +1 query I rowsort label-3610 SELECT 74 - COUNT ( * ) col0 @@ -18802,8 +18898,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - SUM ( + 50 ) AS col2, + ( + COUNT ( * ) ) * - 7 AS col2 +---- +-7 +50 query I rowsort SELECT ALL 98 * + + 63 @@ -18823,8 +18922,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col0, + MAX ( ALL - 47 ) AS col0 +---- +-1 +-47 query I rowsort SELECT - 76 + - - 47 @@ -20028,8 +20130,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, 78 AS col0 +---- +-1 +78 query I rowsort SELECT + ( - + 88 ) AS col0 @@ -21039,8 +21144,11 @@ SELECT DISTINCT 54 * 70 - + + 98 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, + 95 AS col0 +---- +1 +95 query I rowsort label-4081 SELECT DISTINCT - - 5 * SUM ( + 62 ) * + CAST ( NULL AS INTEGER ) @@ -21306,8 +21414,11 @@ SELECT - 49 + - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col1 +---- +1 +NULL query I rowsort label-4133 SELECT CAST ( + 71 AS INTEGER ) AS col1 @@ -21337,8 +21448,11 @@ SELECT ALL ( + 84 ) * + 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(35\) AS Int32\)\) AS col2" at position 0 and "Int64\(49\) / \(\- Int64\(68\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( + 35 AS INTEGER ) AS col2, 49 / - + 68 AS col2 +---- +-35 +0 query I rowsort label-4139 SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 20 + 89 AS col2 @@ -21634,8 +21748,11 @@ SELECT + ( - + SUM ( - 59 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col0" at position 0 and "Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 71 AS col0, 87 AS col0 +---- +-71 +87 query I rowsort label-4197 SELECT - + MIN ( DISTINCT + 57 ) col0 @@ -21695,8 +21812,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, 1 AS col2 +---- +-1 +1 query I rowsort SELECT DISTINCT - + 24 AS col1 @@ -21921,8 +22041,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + - 93 AS col1, - 89 AS col1 +---- +-89 +-92 query I rowsort label-4252 SELECT DISTINCT 71 + + MIN ( DISTINCT + 20 ) * + 45 @@ -22096,8 +22219,11 @@ SELECT + 34 + + MIN ( + 41 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * - 36 AS col1 +---- +-36 +NULL query I rowsort SELECT - - 4 AS col0 @@ -23229,8 +23355,11 @@ SELECT + 47 * + - 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col0" at position 0 and "Int64\(\-13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 31 AS col0, - 13 col0 +---- +-13 +-31 query I rowsort label-4505 SELECT + 14 + - MIN ( DISTINCT + 11 ) @@ -23417,8 +23546,11 @@ SELECT ALL 44 - 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 87 col2, + COUNT ( * ) col2 +---- +1 +87 query I rowsort SELECT + + 93 * - 70 AS col0 @@ -23955,8 +24087,11 @@ SELECT DISTINCT 46 * + 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 42 AS col2, 11 AS col2 +---- +-42 +11 query I rowsort label-4647 SELECT COUNT ( * ) * COUNT ( * ) / + - 61 * - 43 AS col2 @@ -24262,8 +24397,11 @@ 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\(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\. +query II valuesort SELECT ALL ( 95 ) / - SUM ( - 90 ) * - COUNT ( * ) col0, + 99 + 53 AS col0 +---- +-1 +152 query I rowsort SELECT DISTINCT 30 col0 @@ -24397,8 +24535,11 @@ SELECT ALL + + 63 * - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2310 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* Int64\(70\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 33 * 70 AS col1, 59 AS col1 +---- +2310 +59 query I rowsort label-4731 SELECT DISTINCT ( CAST ( + 92 AS INTEGER ) ) @@ -24444,8 +24585,11 @@ SELECT 69 * - 44 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 91 col1, COUNT ( * ) AS col1 +---- +1 +91 query I rowsort label-4740 SELECT DISTINCT - 89 / + ( + 71 ) @@ -24455,8 +24599,11 @@ SELECT DISTINCT - 89 / + ( + 71 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-75\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 75 AS col0, + COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col0 +---- +75 +NULL query I rowsort SELECT ALL 84 + - - 55 AS col0 @@ -24575,8 +24722,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- Int64\(\-29\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, - ( - 29 ) AS col0 +---- +1 +29 query I rowsort label-4765 SELECT + - COUNT ( * ) * 28 - + - 94 @@ -24657,8 +24807,11 @@ SELECT ALL - ( + + MAX ( - 26 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 83 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 AS col2, + 83 AS col2 +---- +83 +87 query I rowsort label-4781 SELECT ALL - SUM ( DISTINCT + 30 ) @@ -25226,8 +25379,11 @@ SELECT DISTINCT - COUNT ( * ), - 40 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 52 ) AS col0, 96 AS col0 +---- +52 +96 query I rowsort label-4891 SELECT - + MAX ( ALL - 48 ) @@ -26225,8 +26381,11 @@ SELECT + ( + 58 ) / - + COUNT ( * ) * - COUNT ( DISTINCT + - 38 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 68 AS col2, 52 AS col2 +---- +-68 +52 query II rowsort SELECT + 70, + 63 AS col0 @@ -26596,8 +26755,11 @@ SELECT ALL + 4 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-4\)\) AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( - 4 ) AS col2, + ( + 58 ) AS col2 +---- +1 +58 query I rowsort label-5155 SELECT ALL + COUNT ( * ) + - ( + COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) ) @@ -27783,8 +27945,11 @@ SELECT DISTINCT 92 * + - ( 49 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 AS col1, CAST ( NULL AS INTEGER ) AS col1 +---- +78 +NULL query II rowsort label-5385 SELECT ALL - COUNT ( * ) AS col1, 37 AS col2 @@ -27795,8 +27960,11 @@ SELECT ALL - COUNT ( * ) AS col1, 37 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(84\)\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 84 AS col0, + 73 col0 +---- +-84 +73 query I rowsort SELECT ALL - 39 * - + 11 AS col1 @@ -27969,8 +28137,11 @@ SELECT ALL - 44 * - 18 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col1, COUNT ( * ) AS col1 +---- +1 +1 query I rowsort label-5421 SELECT DISTINCT + COUNT ( * ) + + + 40 + - CAST ( + 77 AS INTEGER ) @@ -28852,8 +29023,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 AS col0, - 94 AS col0 +---- +-94 +38 query I rowsort SELECT ALL - 77 * ( - 78 ) AS col0 @@ -28967,8 +29141,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "\(\- \(\- Int64\(17\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 19 col0, - ( - + 17 ) AS col0 +---- +17 +19 query II rowsort label-5615 SELECT DISTINCT - 59, CAST ( NULL AS INTEGER ) AS col2 @@ -29093,8 +29270,11 @@ SELECT + 39 + - - 44 + + 29 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col1, - 90 AS col1 +---- +-90 +1 query I rowsort label-5639 SELECT ALL ( + - NULLIF ( COUNT ( 13 ), + COUNT ( * ) ) ) @@ -29439,8 +29619,11 @@ 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\(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\. +query II valuesort SELECT + 19 + - - COUNT ( * ) AS col1, - COUNT ( DISTINCT + 95 ) AS col1 +---- +-1 +20 query I rowsort label-5707 SELECT ALL + COALESCE ( + COUNT ( * ), + 88 ) @@ -29897,8 +30080,11 @@ SELECT - 94 / + - MIN ( ALL + ( - + ( + - 32 ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, + COUNT ( * ) AS col1 +---- +1 +1 query I rowsort SELECT ALL 60 + 16 AS col2 @@ -30343,8 +30529,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col1, - 70 AS col1 +---- +-1 +-70 query I rowsort label-5883 SELECT ALL - 96 / ( ( - 61 ) ) @@ -31337,8 +31526,11 @@ SELECT - 98 + + 30 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 AS col2, 35 AS col2 +---- +35 +93 query I rowsort SELECT DISTINCT + 98 + - - 21 @@ -31754,8 +31946,11 @@ SELECT ALL - 38 / + 15 # 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 col1" at position 0 and "count\(DISTINCT Int64\(64\)\) \- Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 AS col1, + COUNT ( DISTINCT 64 ) - 3 AS col1 +---- +-2 +95 query I rowsort SELECT + + 4 * + 21 col1 @@ -31870,8 +32065,11 @@ SELECT DISTINCT - COUNT ( * ) + - 72 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, - 47 AS col0 +---- +-47 +1 query II rowsort label-6179 SELECT DISTINCT COUNT ( * ) * 84 + + 23, COUNT ( * ) AS col0 @@ -32319,8 +32517,11 @@ SELECT DISTINCT + - 80 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "CAST\(Int64\(14\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col2, CAST ( + 14 AS INTEGER ) AS col2 +---- +14 +NULL query I rowsort label-6266 SELECT + COUNT ( * ) + 83 AS col0 @@ -32927,8 +33128,11 @@ 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\(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\. +query RI valuesort SELECT ALL + - COUNT ( * ) / + - CAST ( NULL AS FLOAT8 ) AS col0, 42 AS col0 +---- +42 +NULL query I rowsort label-6384 SELECT ALL + SUM ( ALL 20 ) AS col1 @@ -33216,8 +33420,11 @@ SELECT - - 23 / - - 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 0 AS col0, 14 AS col0 +---- +0 +14 query I rowsort SELECT ( + 87 ) AS col2 @@ -33661,8 +33868,11 @@ SELECT 48 AS col1, ( + + 72 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-65\)\) AS col0" at position 0 and "Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 65 AS col0, 15 AS col0 +---- +15 +65 query I rowsort label-6525 SELECT ALL 57 / 21 AS col0 @@ -33890,8 +34100,11 @@ SELECT DISTINCT 89 * - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, COUNT ( * ) AS col2 +---- +1 +1 query II rowsort SELECT - 78, 17 AS col2 @@ -34258,8 +34471,11 @@ SELECT ALL 90 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col0" at position 0 and "\(\- Int64\(55\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 40 col0, ( - + 55 ) AS col0 +---- +-40 +-55 query II rowsort SELECT ALL - - 31 AS col1, 20 AS col0 @@ -34285,8 +34501,11 @@ SELECT DISTINCT - 73 + - 64 # 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 "min\(Int64\(\-81\)\) AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( + - 81 ) AS col1, + 3 AS col1 +---- +-81 +3 query I rowsort label-6646 SELECT ALL - CAST ( - MAX ( ALL - + 87 ) AS INTEGER ) AS col0 @@ -34503,8 +34722,11 @@ SELECT DISTINCT + COUNT ( * ), 43 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 1340 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col2" at position 0 and "Int64\(20\) \* \(\- Int64\(\-67\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 14 AS col2, + 20 * - - 67 AS col2 +---- +1340 +14 query I rowsort label-6688 SELECT DISTINCT + 52 + COUNT ( * ) @@ -34610,8 +34832,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, 30 AS col0 +---- +-1 +30 query II rowsort SELECT DISTINCT + 86 + - + 0 AS col2, + 17 @@ -35071,8 +35296,11 @@ SELECT COALESCE ( + - 67, + 45 * + 20 ) # 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 col1" at position 0 and "Int64\(\-81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 19 AS col1, - 81 col1 +---- +-81 +19 query I rowsort SELECT COALESCE ( - - 0, + 75, + - 56 ) @@ -35567,8 +35795,11 @@ SELECT - - 60 + - 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-62\)\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - - 62 ) AS col1, + 91 AS col1 +---- +62 +91 query I rowsort SELECT ALL ( 99 ) @@ -36239,8 +36470,11 @@ SELECT + 20 * + + ( 23 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(95\)\)\) AS col0" at position 0 and "Int64\(91\) \+ CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( + ( - + 95 ) ) AS col0, 91 + + CAST ( NULL AS INTEGER ) + COUNT ( * ) / + + 67 AS col0 +---- +-95 +NULL query II rowsort SELECT ALL + 5, 4 AS col1 @@ -36727,8 +36961,11 @@ SELECT - - CAST ( + - 5 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-57\)\) AS col1" at position 0 and "Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 57 AS col1, - 70 AS col1 +---- +-70 +57 query I rowsort label-7118 SELECT ALL + COUNT ( + 37 ) @@ -36824,8 +37061,11 @@ SELECT ALL + - 28 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, 96 AS col1 +---- +1 +96 query I rowsort SELECT ALL 0 + + 6 AS col2 @@ -38276,8 +38516,11 @@ SELECT DISTINCT 30 * + + 1 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 34 col1, COUNT ( * ) AS col1 +---- +-34 +1 query II rowsort SELECT - ( - 34 ), 13 AS col0 @@ -38318,8 +38561,11 @@ SELECT ALL - CAST ( + - 5 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-4\) AS Int32\)" at position 0 and "Int64\(\-4\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - 4 AS INTEGER ), - 4 +---- +-4 +-4 query I rowsort SELECT ALL - 87 AS col2 @@ -39014,8 +39260,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( + 35 ) AS col1, - COUNT ( * ) AS col1 +---- +-1 +35 query I rowsort label-7560 SELECT DISTINCT 24 * + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1 @@ -39337,8 +39586,11 @@ SELECT ALL + MIN ( - + 17 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, - COUNT ( * ) + + 20 AS col1 +---- +1 +19 query I rowsort SELECT ( - 42 ) @@ -39423,8 +39675,11 @@ SELECT + 66 / + + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- sum\(Int64\(\-23\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, - SUM ( - 23 ) AS col0 +---- +1 +23 query I rowsort label-7638 SELECT DISTINCT MAX ( + 51 ) @@ -40743,8 +40998,11 @@ SELECT ALL + 50 * - 41 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col0" at position 0 and "Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 75 col0, 76 AS col0 +---- +75 +76 query I rowsort SELECT - 72 * + + 21 col1 @@ -41234,8 +41492,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col1" at position 0 and "Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 5 AS col1, 70 AS col1 +---- +-5 +70 query I rowsort label-7989 SELECT ALL COUNT ( ( - + 83 ) ) @@ -41746,8 +42007,11 @@ SELECT 72, + 98 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 AS col0, + COUNT ( * ) AS col0 +---- +1 +45 query I rowsort label-8089 SELECT COUNT ( * ) * - 8 AS col1 @@ -44394,8 +44658,11 @@ 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\(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\. +query II valuesort SELECT + MAX ( DISTINCT - 11 ) - + CASE 5 WHEN - + COUNT ( * ) THEN + - 22 ELSE NULL END col0, + MIN ( + - ( + 47 ) ) AS col0 +---- +-47 +NULL query I rowsort label-8600 SELECT ALL + COUNT ( * ) - + 55 AS col0 @@ -44840,8 +45107,11 @@ SELECT ALL 14 col0 # 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\) AS col0" at position 0 and "Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 75 col0, - 42 AS col0 +---- +-42 +75 query I rowsort label-8688 SELECT ALL - + 67 + - - COUNT ( * ) AS col2 @@ -45223,8 +45493,11 @@ SELECT + COUNT ( * ) + - 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - -261990 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(41\)\) \* Int64\(90\) \* Int64\(71\) AS col1" at position 0 and "Int64\(\-34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 41 ) * 90 * + 71 AS col1, - 34 AS col1 +---- +-261990 +-34 query I rowsort label-8762 SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) AS col0 @@ -45282,8 +45555,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) col2, - 63 AS col2 +---- +-63 +1 query I rowsort SELECT DISTINCT - + 89 AS col1 @@ -45917,8 +46193,11 @@ SELECT ALL 30 + - - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 93 AS col0, 24 AS col0 +---- +24 +93 query I rowsort SELECT - ( - + 60 ) @@ -46332,8 +46611,11 @@ SELECT ALL + + 98 * 69 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 60 AS col2, + 45 AS col2 +---- +-60 +45 query I rowsort label-8977 SELECT ALL - 68 + + SUM ( - 76 ) @@ -46595,8 +46877,11 @@ SELECT DISTINCT 83 + - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "Int64\(\-17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 AS col2, - 17 AS col2 +---- +-17 +-48 query I rowsort SELECT ALL - + 72 AS col1 @@ -47406,8 +47691,11 @@ SELECT + COUNT ( - 50 ) + + - 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 68 AS col1, COUNT ( * ) AS col1 +---- +-68 +1 query I rowsort SELECT - ( - - 35 ) AS col1 @@ -47427,8 +47715,11 @@ SELECT DISTINCT 0 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) AS col0, + COUNT ( * ) col0 +---- +1 +NULL query I rowsort SELECT ALL + 60 + - 23 @@ -47489,8 +47780,11 @@ SELECT ALL 45 + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 94 AS col0, 41 col0 +---- +41 +94 query II rowsort SELECT + 71 AS col2, 96 @@ -47517,8 +47811,11 @@ SELECT - 62 * 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-80\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 80 AS col1, + COUNT ( * ) AS col1 +---- +1 +80 query I rowsort label-9208 SELECT ALL + COUNT ( * ) - - 4 + - - ( + ( + 82 ) ) @@ -47692,8 +47989,11 @@ SELECT - 82 * - COUNT ( 36 ) + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\)" at position 0 and "CAST\(NULL AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) +---- +NULL +NULL query I rowsort SELECT ALL - 0 col0 @@ -47870,8 +48170,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 86 AS col2, COUNT ( * ) AS col2 +---- +1 +86 query II rowsort label-9276 SELECT CAST ( NULL AS INTEGER ) AS col2, 37 @@ -48969,8 +49272,11 @@ SELECT ALL - COUNT ( * ) + + - 10 * - + 36 / - - ( + CAST ( + COUNT ( * ) AS INT # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "Int64\(1\) \* Int64\(\-19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 12 AS col2, + 1 * - 19 AS col2 +---- +-19 +12 query I rowsort SELECT 10 + 2 AS col1 @@ -49434,8 +49740,11 @@ SELECT 65 * + - ( + 78 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) \+ \(\- Int64\(\-34\)\) AS col2" at position 0 and "Int64\(0\) \+ Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 15 + - - 34 AS col2, 0 + + 64 AS col2 +---- +19 +64 query I rowsort SELECT DISTINCT NULLIF ( - + 9, + + 61 ) AS col1 @@ -49806,8 +50115,11 @@ SELECT + 74 * - + 70 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(48\), Int64\(26\)\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( COALESCE ( + 48, + 26 ) ) AS col2, 21 AS col2 +---- +21 +48 query II rowsort SELECT + 86 AS col2, + 41 AS col0 @@ -49971,8 +50283,11 @@ SELECT 40 + 48 + 12 / + - 62 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1458 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-54\)\) \* Int64\(27\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - 54 ) * 27 AS col0, 14 AS col0 +---- +14 +1458 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -50191,8 +50506,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / \(\- Int64\(\-87\)\) \+ \(\- Int64\(43\)\) AS col1" at position 0 and "Int64\(23\) \+ Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + CAST ( NULL AS INTEGER ) / - - 87 + - + 43 AS col1, + 23 + 58 AS col1 +---- +81 +NULL query I rowsort SELECT ALL + 77 * + + 65 AS col0 @@ -50962,8 +51280,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col0" at position 0 and "Int64\(47\) / Int64\(83\) \+ Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 83 AS col0, + 47 / + 83 + 64 AS col0 +---- +64 +83 query I rowsort label-9874 SELECT - 43 / 96 AS col1 @@ -51038,8 +51359,11 @@ SELECT DISTINCT + COUNT ( 50 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -4081 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \- Int64\(\-15\) AS col0" at position 0 and "Int64\(77\) \* Int64\(\-53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( + 49 ) - - 15 AS col0, 77 * - 53 AS col0 +---- +-4081 +64 query I rowsort label-9889 SELECT ALL - 77 / COUNT ( * ) AS col1 @@ -51133,8 +51457,11 @@ SELECT + NULLIF ( - 4, + 83 ) * - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-38\) AS Int32\) AS col1" at position 0 and "Int64\(29\) / Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - 38 AS INTEGER ) col1, + 29 / - 33 AS col1 +---- +-38 +0 query I rowsort label-9907 SELECT CAST ( + 39 AS INTEGER ) @@ -51238,8 +51565,11 @@ SELECT DISTINCT ( 56 ) * + + 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 AS col0, + ( 48 ) AS col0 +---- +48 +98 query I rowsort SELECT 48 + 83 col0 diff --git a/data/sqlite/random/expr/slt_good_55.slt b/data/sqlite/random/expr/slt_good_55.slt index 50ea41e..3ef6edb 100644 --- a/data/sqlite/random/expr/slt_good_55.slt +++ b/data/sqlite/random/expr/slt_good_55.slt @@ -778,8 +778,11 @@ SELECT DISTINCT - CASE 13 WHEN 68 + + + 54 + 26 / COALESCE ( 3, + - NULLIF ( 73, # Datafusion - Datafusion expected results: # Datafusion - Expected - 187 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ Int64\(96\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 + + 96 AS col2, 97 AS col2 +---- +187 +97 query I rowsort SELECT ALL - + 15 * 29 * - - 87 AS col2 @@ -919,8 +922,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +10 +40 +6103 query I rowsort label-168 SELECT CASE + + 89 WHEN + COUNT ( * ) THEN NULL WHEN 63 + + - MIN ( - 99 ) + ( + ( - NULLIF ( - 70, CASE + 42 WHEN - + 22 * - MIN ( DISTINCT - 80 ) THEN 10 + + 62 ELSE - - COUNT ( * ) END ) ) ) THEN 39 - + 36 + + CASE CAST ( + - 87 AS FLOAT8 ) WHEN + 62 THEN 73 / 24 END / 67 WHEN - 37 THEN NULL END * 40 AS col2 @@ -1445,8 +1452,11 @@ SELECT 36 + + ( + + COUNT ( * ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 49 AS col2, + 93 AS col2 +---- +49 +93 query I rowsort label-269 SELECT ALL - ( + 20 ) - - 99 + - - 0 * 45 + + COUNT ( * ) @@ -1811,8 +1821,11 @@ SELECT + 18 * 55 * + 24 # 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 col1" at position 0 and "Int64\(\-13\) / Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 AS col1, + ( - 13 ) / 65 AS col1 +---- +0 +41 query II rowsort label-339 SELECT - COUNT ( * ), - 25 AS col2 @@ -1839,8 +1852,11 @@ SELECT + + 49 * 68 - + - 38 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 47 AS col2, COUNT ( * ) col2 +---- +-47 +1 query I rowsort label-344 SELECT MIN ( 57 ) @@ -1866,8 +1882,12 @@ SELECT ALL - 32 / - - NULLIF ( - - 20, - 32 ) + + 44 # Datafusion - Expected - 13 # Datafusion - Expected - -43 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col0" at position 1 and "Int64\(\-49\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 89 / 60 + 12, - 43 AS col0, - 49 AS col0 +---- +-43 +-49 +13 query I rowsort label-349 SELECT + COUNT ( * ) + - 32 + - CAST ( 20 AS INTEGER ) * - + COUNT ( * ) + + SUM ( ALL - 83 ) AS col2 @@ -1944,8 +1964,11 @@ SELECT + COALESCE ( - ( - + 87 ), - + 26 ) * 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) \+ Int64\(8\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 91 + + 8 AS col2, + 66 AS col2 +---- +-83 +66 query I rowsort label-364 SELECT CASE - 18 WHEN + 12 / 91 * + COUNT ( * ) + 99 THEN NULL WHEN - 61 * - 32 + - 69 THEN + - 65 + SUM ( - + 53 ) * - 39 ELSE NULL END @@ -2007,8 +2030,11 @@ SELECT 45 + - 61 # 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 "Int64\(6\) \+ Int64\(41\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 + + + 41 AS col1, 64 AS col1 +---- +47 +64 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -2404,8 +2430,11 @@ SELECT 95 AS col0, - 28 # 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 "Int64\(90\) 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 II valuesort SELECT 90 AS col0, + 70 + - 91 AS col0 +---- +-21 +90 query I rowsort SELECT + 81 + 92 @@ -2758,8 +2787,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 20 col1, - 55 + - COUNT ( * ) AS col1 +---- +-56 +20 query I rowsort label-519 SELECT ALL + + 1 * + + 57 * - MIN ( DISTINCT + + 0 ) AS col0 @@ -2779,8 +2811,11 @@ SELECT + + 4 * 50 + - - 74 + - - 78 - ( - 7 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col2" at position 0 and "Int64\(\-1\) \* Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 32 AS col2, - 1 * + 27 col2 +---- +-27 +-32 query I rowsort label-523 SELECT DISTINCT + COALESCE ( + MAX ( 66 ), + + 35 * + 76 + - 32 / + + 97, 86 ) AS col0 @@ -2945,8 +2980,11 @@ SELECT - 2 - + NULLIF ( - + 29, - - NULLIF ( - + 94, - 95 + + COUNT ( * ) + + 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 561600 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* Int64\(36\) \* Int64\(26\) \* Int64\(25\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 24 * 36 * + 26 * + 25 AS col2, + COUNT ( * ) AS col2 +---- +1 +561600 query I rowsort SELECT - + CASE + 85 WHEN + - 68 THEN 85 * 54 END @@ -3302,8 +3340,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 col0, - ( + - COUNT ( * ) ) AS col0 +---- +1 +75 query I rowsort label-623 SELECT + MAX ( ALL - - 76 ) + + 19 @@ -3559,8 +3600,11 @@ SELECT CAST ( 26 AS INTEGER ) - ( - - COUNT ( - + 73 ) ) * + 71 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(\-40\) \+ max\(Int64\(62\)\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 40 + + MAX ( + 62 ) AS col2, 97 AS col2 +---- +97 +NULL query I rowsort label-672 SELECT ( - - 47 ) / + + 28 + + - 72 AS col2 @@ -4107,8 +4151,11 @@ SELECT + 78 AS col0, 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 15 AS col2, COUNT ( * ) col2 +---- +1 +15 query II rowsort SELECT - 36 AS col2, 82 AS col1 @@ -4302,15 +4349,22 @@ SELECT + + 19 + 90 + + - 87 * - 35 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-4\) WHEN Int64\(89\) THEN NULL WHEN Int64\(0\) THEN NULL WHEN Int64\(74\) \* Int64\(0\) THEN Int64\(16\) \- Int64\(86\) \+ Int64\(19\) \* Int64\(52\) END AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CASE + - 4 WHEN 89 THEN NULL WHEN 0 THEN NULL WHEN 74 * + + 0 THEN 16 - + 86 + + 19 * + + 52 END AS col2, 34 AS col2 +---- +34 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2772 # Datafusion - Expected - 64 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 1 and "count\(Int64\(28\)\) \+ \(\- nullif\(Int64\(10\), Int64\(\-81\) \- Int64\(81\) / Int64\(91\) \* \(\- max\(coalesce\(\(\- Int64\(38\)\), Int64\(18\) \* Int64\(5\)\)\)\) / Int64\(24\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 33 * + 84, 64 AS col0, COUNT ( + 28 ) + - NULLIF ( 10, - 81 - + 81 / 91 * ( - MAX ( + COALESCE ( - + ( + 38 ), + 18 * + 5 ) ) ) / + 24 ) AS col0 +---- +-9 +2772 +64 query I rowsort SELECT DISTINCT + ( + - 17 ) + - - 71 @@ -4336,8 +4390,11 @@ SELECT - + 78 + - ( 18 ), - SUM ( DISTINCT 94 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -325920 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(48\)\) \* Int64\(\-97\) \* \(\- Int64\(70\)\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - ( + + 48 ) * - 97 * + - ( 70 ) AS col0, 22 col0 +---- +-325920 +22 query I rowsort SELECT - - 3 + - + 63 AS col2 @@ -4374,8 +4431,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \+ Int64\(3\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 71 + 3 AS col2, 59 AS col2 +---- +59 +74 query I rowsort label-824 SELECT DISTINCT + SUM ( DISTINCT 5 ) AS col0 @@ -4464,8 +4524,11 @@ SELECT + MIN ( ALL - ( 96 ) ) / 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4508 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(68\) \+ Int64\(4\) \* Int64\(90\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 61 * 68 + + + 4 * 90 col0, + 79 col0 +---- +4508 +79 query I rowsort SELECT - 76 * - 71 AS col0 @@ -4826,8 +4889,11 @@ SELECT ALL 59 + + 19 - + + 39 + + ( ( 20 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 AS col2, 90 AS col2 +---- +2 +90 query I rowsort SELECT DISTINCT 52 * 27 @@ -5070,8 +5136,11 @@ SELECT ALL + 73 / - 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col0" at position 0 and "Int64\(\-11\) \+ Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 30 AS col0, - 11 + 44 AS col0 +---- +30 +33 query II rowsort label-957 SELECT + 98, + 19 + - CAST ( NULL AS INTEGER ) + - - 85 * COALESCE ( - 72, - 88 ) AS col0 @@ -5323,8 +5392,11 @@ SELECT - 17, COALESCE ( + 83, 44 ) * ( + 9 ) AS col1, 56 col2 # 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\(27\) AS col1" at position 0 and "Int64\(96\) / Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 AS col1, 96 / 17 AS col1 +---- +27 +5 query I rowsort SELECT ALL + 7 + + + 70 @@ -5377,8 +5449,11 @@ SELECT DISTINCT + 90 - - COUNT ( - - 93 ), + 78 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 AS col1, 43 col1 +---- +43 +99 query II rowsort label-1014 SELECT MIN ( 17 ) + + - 99, + 29 + + 10 + + 57 * - - 45 AS col2 @@ -5540,8 +5615,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2541 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(\-33\) AS col0" at position 0 and "Int64\(18\) / Int64\(\-48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 * - 33 AS col0, 18 / - 48 AS col0 +---- +-2541 +0 query I rowsort label-1045 SELECT MAX ( ALL - 97 ) - - MIN ( ( + + 20 ) ) + + 60 * + ( - 72 ) AS col1 @@ -6372,8 +6450,11 @@ SELECT + + 43 - - - 72 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(64\)\) AS col1" at position 0 and "Int64\(75\) \* CAST\(NULL AS Int32\) \* \(\- CAST\(\(\- coalesce\(Int64\(11\), \(\- CASE avg\(DISTINCT Int64\(67\)\) WHEN Int64\(54\) \* min\(Int64\(81\)\) \- Int64\(43\) THEN NULL WHEN Int64\(42\) \- Int64\(79\) THEN Int64\(67\) / avg\(Int64\(\-5\)\) ELSE NULL END\) \+ coalesce\(Int64\(44\) \+ Int64\(59\) \* \(\- sum\(Int64\(32\)\)\), count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-64 +NULL query I rowsort label-1208 SELECT DISTINCT - 73 / + CAST ( + 3 AS INTEGER ) + 88 * 21 @@ -7086,8 +7167,11 @@ SELECT ALL COUNT ( * ) * - + 35, - SUM ( - 34 ) * + COUNT ( 19 ) * - - MIN ( ALL # Datafusion - Datafusion expected results: # Datafusion - Expected - -102 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-4\), min\(Int64\(55\)\)\) \+ Int64\(\-98\) AS col1" at position 0 and "Int64\(27\) \- Int64\(\-23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( - 4, + MIN ( + 55 ) ) + - 98 AS col1, + 27 - + - 23 AS col1 +---- +-102 +50 query I rowsort label-1344 SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 26 - - - 31 @@ -7280,8 +7364,11 @@ 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\(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\. +query II valuesort SELECT ALL 23 AS col2, + CASE COUNT ( * ) WHEN - + 90 THEN NULL ELSE 10 END col2 +---- +10 +23 query II rowsort SELECT 46, 51 * - ( + + 35 ) AS col0 @@ -7302,8 +7389,11 @@ SELECT DISTINCT ( 47 ) col2 # 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 "Int64\(\-81\) AS col0" at position 0 and "Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 AS col0, - 15 col0 +---- +-15 +-81 query I rowsort label-1385 SELECT CAST ( - + 97 AS INTEGER ) @@ -7860,8 +7950,11 @@ SELECT DISTINCT + 98 + - 94 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - -187 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "Int64\(\-91\) \+ Int64\(\-96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 30 AS col1, - 91 + - 96 AS col1 +---- +-187 +30 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -8282,8 +8375,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) / 46 + 52 AS col1, + COUNT ( * ) * + - MAX ( DISTINCT - 23 ) + + 60 AS col1 +---- +52 +83 query I rowsort label-1570 SELECT + 34 / - COALESCE ( - - COUNT ( * ), 42 ) + + 95 @@ -8331,8 +8427,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( 10 ) AS col0, COUNT ( * ) * 18 col0 +---- +10 +18 query I rowsort label-1579 SELECT COUNT ( * ) - COUNT ( * ) * + 25 @@ -8625,8 +8724,11 @@ SELECT - 71 - 68 AS col1 # 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\(45\) / Int64\(61\) \* \(\- nullif\(Int64\(\-50\), \(\- Int64\(44\)\) / \(\- Int64\(93\)\) \+ Int64\(\-85\)\)\) AS col2" at position 0 and "Int64\(3\) / Int64\(54\) \* Int64\(16\) \+ Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 45 / + ( 61 ) * + - NULLIF ( + - 50, - + 44 / - + 93 + - 85 ) AS col2, 3 / 54 * + 16 + + + 28 AS col2 +---- +0 +28 query I rowsort label-1636 SELECT - + CAST ( + CASE - ( - 15 ) WHEN + + 32 THEN NULL WHEN - 13 * - 78 * + 50 + - - 22 * + COALESCE ( + 32, 25 ) + + COUNT ( * ) + COUNT ( * ) + - 23 * - 6 THEN NULL WHEN - 25 THEN COUNT ( * ) * 99 ELSE NULL END AS INTEGER ) * - 91 AS col1 @@ -8779,8 +8881,11 @@ SELECT DISTINCT 72 + + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(45\) \+ Int64\(23\) \+ Int64\(31\) \+ Int64\(80\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 77 * - + COUNT ( * ) + 45 + 23 + 31 + 80 + + CAST ( NULL AS INTEGER ) col2, 35 AS col2 +---- +35 +NULL query II rowsort SELECT - - 63, 62 AS col1 @@ -9868,8 +9973,11 @@ SELECT ALL - 91 * - 40 * 86 * + ( - 18 ) - - CAST ( - - 49 AS INTEGER ) # 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\) AS col0" at position 0 and "Int64\(2\) \- Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 94 AS col0, + 2 - + 39 AS col0 +---- +-37 +94 query I rowsort label-1873 SELECT - COUNT ( * ) - - - ( + 5 ) AS col0 @@ -9994,8 +10102,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( DISTINCT 11 ) + - COUNT ( * ) AS col1, + 21 AS col1 +---- +0 +21 query I rowsort SELECT ALL - 17 + + - 32 + - 33 @@ -10268,8 +10379,11 @@ SELECT 49 * ( 26 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "CAST\(Int64\(29\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 92 AS col1, CAST ( + 29 AS INTEGER ) AS col1 +---- +29 +92 query II rowsort SELECT ALL - 33 AS col1, 87 @@ -10526,8 +10640,11 @@ SELECT - 96 * ( - 39 ) + - MAX ( + 18 ) * - + COUNT ( * ) # 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 "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 AS col0, + 14 AS col0 +---- +14 +91 query I rowsort label-1999 SELECT - 25 * COUNT ( * ) * + - 40 * - 52 + + + NULLIF ( - + 94, - 18 + + 84 ) + - + ( - NULLIF ( + + 17, - 79 ) ) col0 @@ -10558,8 +10675,11 @@ SELECT + 98 + - COALESCE ( 90, + - ( - 1 ) ) * 34 + - COUNT ( * ) + + 29 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\(\-20\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 AS col1, 67 AS col1 +---- +-20 +67 query I rowsort label-2005 SELECT DISTINCT - COUNT ( * ) * + + 92 @@ -10751,8 +10871,11 @@ SELECT + 12 - - COUNT ( * ) col2, 46 * - - 22 + + 2 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9009 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \* \(\- sum\(Int64\(\-91\)\)\) AS col0" at position 0 and "\(\- CAST\(Int64\(30\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 99 * - + SUM ( - 91 ) AS col0, - CAST ( + 30 AS INTEGER ) col0 +---- +-30 +-9009 query I rowsort label-2041 SELECT MAX ( + 53 ) * + + 24 @@ -10937,8 +11060,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 92 * + 84 + + 36 AS col0, - 15 * - COUNT ( * ) AS col0 +---- +15 +7764 query I rowsort label-2075 SELECT ALL - - COUNT ( + - 69 ) + + + 53 AS col2 @@ -11219,8 +11345,11 @@ SELECT ALL ( - 42 ) AS col1 # 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 col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 24 AS col1, + 59 AS col1 +---- +24 +59 query I rowsort label-2129 SELECT DISTINCT + ( - 23 ) / + 95 * + 3 * + - 17 - + COUNT ( * ) @@ -11606,8 +11735,11 @@ SELECT ALL - COUNT ( * ) + + 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(47\)\)\) AS col2" at position 0 and "\(\- Int64\(18\)\) \- \(\- Int64\(\-96\)\) \+ Int64\(\-2\) \* Int64\(\-16\) / Int64\(26\) \+ Int64\(49\) \+ Int64\(37\) \+ min\(DISTINCT Int64\(\-30\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - SUM ( ALL + 47 ) AS col2, - ( + 18 ) - - ( + - 96 ) + - 2 * - 16 / + 26 + 49 + + 37 + + MIN ( DISTINCT + - 30 ) * - CAST ( NULL AS INTEGER ) AS col2 +---- +-47 +NULL query I rowsort SELECT + ( + - NULLIF ( 69, 53 ) ) AS col1 @@ -11760,8 +11892,11 @@ SELECT ALL ( + - COALESCE ( - + 43, + - 64 ) ) + + 42 + - - NULLIF ( + 81, CAST # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col0" at position 0 and "Int64\(35\) \+ Int64\(\-99\) \+ Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 85 AS col0, 35 + + ( - 99 ) + 75 AS col0 +---- +-85 +11 query I rowsort label-2229 SELECT + - 2 * + ( - NULLIF ( 37, - + COUNT ( * ) ) ) + + - 67 + 18 + COUNT ( * ) * + - 14 * - 89 + ( + 9 ) + - + 85 @@ -11771,8 +11906,11 @@ SELECT + - 2 * + ( - NULLIF ( 37, - + COUNT ( * ) ) ) + + - 67 + 18 + COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 46 AS col0, ( + 63 ) AS col0 +---- +46 +63 query I rowsort label-2231 SELECT - SUM ( - 65 ) @@ -11864,8 +12002,11 @@ SELECT - 17 / 20 / - 70 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6270 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) \* sum\(CAST\(Int64\(34\) AS Int32\)\) \+ Int64\(7\) \* Int64\(63\) \* Int64\(\-12\) \+ Int64\(64\) / Int64\(8\) AS col2" at position 0 and "Int64\(63\) / Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 29 * SUM ( CAST ( + + 34 AS INTEGER ) ) + + + 7 * + 63 * - 12 + + 64 / 8 AS col2, 63 / + - 4 AS col2 +---- +-15 +-6270 query I rowsort label-2249 SELECT - 28 - SUM ( - 66 ) AS col0 @@ -11925,8 +12066,11 @@ SELECT + - 95 + - 13 * + + 28 - - 56 * + + 36 * + 85 + - ( + - ( 24 ) ) - + 66 c # Datafusion - Datafusion expected results: # Datafusion - Expected - 218700 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(2\) \* Int64\(15\) \* Int64\(81\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 90 * 2 * 15 * + + 81 AS col1, COUNT ( * ) AS col1 +---- +1 +218700 query I rowsort label-2261 SELECT + + COALESCE ( - 56, + CAST ( NULL AS INTEGER ) / + 17 / + 35 ) + SUM ( + 32 ) - - CAST ( + COUNT ( * ) AS INTEGER ) + + + 94 @@ -12190,8 +12334,11 @@ SELECT + 32, - 20 * + - 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - -293328 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(\-6\)\), Int64\(\-88\), \(\- Int64\(\-98\)\)\) \+ Int64\(75\) AS col2" at position 0 and "coalesce\(Int64\(36\), Int64\(11\) \+ nullif\(\(\- Int64\(\-61\)\), nullif\(Int64\(\-49\), Int64\(36\)\) \* Int64\(\-68\)\), \(\- Int64\(\-63\)\)\) \* Int64\(\-84\) \* Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COALESCE ( - - 6, - 88, - ( - 98 ) ) + + + 75 AS col2, COALESCE ( + + 36, 11 + + NULLIF ( - - 61, + NULLIF ( - 49, 36 ) * + - 68 ), - - 63 ) * - 84 * 97 AS col2 +---- +-293328 +81 query I rowsort SELECT ( + 85 ) * + - 77 @@ -12278,8 +12425,11 @@ SELECT - 98 * + NULLIF ( + 40, - 2 * + + 4 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "CAST\(\(\- Int64\(\-48\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 71 AS col2, + CAST ( - - 48 AS INTEGER ) AS col2 +---- +48 +71 query I rowsort SELECT + 16 * - - 89 @@ -12299,8 +12449,11 @@ SELECT DISTINCT - 65 + 16 + - + 4 - + + 33 / - + 98 + - 54 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 107 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ \(\- Int64\(1\)\) \+ CAST\(\(\- \(\- coalesce\(Int64\(76\), Int64\(7\)\)\)\) AS Int32\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 32 + - + 1 + CAST ( - - COALESCE ( 76, 7 ) AS INTEGER ) AS col0, + 46 AS col0 +---- +107 +46 query II rowsort SELECT DISTINCT + 19 AS col2, 25 * - 54 @@ -12881,8 +13034,11 @@ SELECT ALL + 6 * - 17 + + 44 - + 58 # 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\(\-23\) \* Int64\(6\) \+ \(\- \(\- Int64\(\-61\)\)\) 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 IR valuesort SELECT ALL - 23 * 6 + - ( - ( - 61 ) ) col1, CAST ( NULL AS FLOAT8 ) AS col1 +---- +-199 +NULL query I rowsort label-2444 SELECT + CASE 14 WHEN + - CAST ( NULL AS INTEGER ) + - + ( COUNT ( * ) ) + + + 76 THEN + 15 ELSE + - 61 END AS col0 @@ -13244,8 +13400,11 @@ SELECT ALL - 64 * + 21 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(73\) \+ \(\- Int64\(\-57\)\) AS col1" at position 0 and "CAST\(nullif\(Int64\(15\), Int64\(\-67\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) - 73 + - - 57 AS col1, CAST ( + NULLIF ( 15, - 67 ) AS INTEGER ) AS col1 +---- +-15 +15 query I rowsort SELECT DISTINCT - 46 * + 2 col1 @@ -13597,8 +13756,11 @@ 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\(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\. +query II valuesort SELECT + + 0 * 91 / - ( 19 ) AS col0, - COUNT ( * ) + + ( + SUM ( DISTINCT + 22 ) ) - - - 79 + - + 90 AS col0 +---- +-148 +0 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -13743,8 +13905,11 @@ SELECT - 57 / + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 13 AS col2, 13 AS col2 +---- +13 +13 query I rowsort label-2609 SELECT SUM ( + + 34 ) col1 @@ -13912,15 +14077,23 @@ SELECT ALL - MAX ( - 72 ) # Datafusion - Expected - -35 # Datafusion - Expected - 1 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 and "Int64\(32\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 35, + COUNT ( * ) AS col2, 32 AS col2 +---- +-35 +1 +32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 87 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 1 and "CAST\(NULL AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 74, 87 col1, + + CAST ( NULL AS INTEGER ) AS col1 +---- +-74 +87 +NULL query I rowsort SELECT 9 * + 54 * - 48 * + 41 * 64 @@ -14012,8 +14185,11 @@ SELECT CAST ( + - 19 AS INTEGER ) - + + 61 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 18 AS col2, 99 AS col2 +---- +-18 +99 query I rowsort SELECT DISTINCT + 46 - - ( + + 7 ) @@ -14263,8 +14439,11 @@ SELECT + 25 * + COUNT ( * ) + - - 67 + 15 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 149 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "Int64\(59\) \+ Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 47 AS col0, 59 + + 90 AS col0 +---- +149 +47 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -15261,8 +15440,11 @@ SELECT ALL 87 + - - SUM ( ALL + 67 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, + 49 AS col2 +---- +1 +49 query I rowsort label-2902 SELECT COALESCE ( COALESCE ( - 27, 5, + 19, COUNT ( * ) ), - 30 ) @@ -15631,8 +15813,11 @@ SELECT + + 93 - + - 26 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "Int64\(\-69\) / Int64\(\-85\) \+ Int64\(\-78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 8 AS col2, - 69 / + ( - 85 ) + + - 78 AS col2 +---- +-78 +8 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -15813,8 +15998,11 @@ SELECT + 44 * - + 52 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1650 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* Int64\(33\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 50 * 33 AS col2, 35 col2 +---- +1650 +35 query II rowsort SELECT 79, 93 AS col1 @@ -15953,8 +16141,11 @@ SELECT ALL - NULLIF ( + 58, + - 23 * 49 + - - SUM ( 78 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \+ Int64\(29\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 45 + + 29 col0, 66 col0 +---- +-16 +66 query I rowsort SELECT 79 * + 64 AS col1 @@ -16196,8 +16387,11 @@ SELECT DISTINCT + - 37 * 39 - - ( + COALESCE ( 31, - 88 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) col0, COUNT ( * ) AS col0 +---- +-1 +1 query I rowsort label-3081 SELECT 71 + + 95 * - + 6 - 35 * 64 * + COALESCE ( + NULLIF ( + 17, COUNT ( + ( + 47 ) ) ), COUNT ( * ) ) AS col0 @@ -16344,8 +16538,11 @@ 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\(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\. +query II valuesort SELECT - + NULLIF ( + - 1, - COUNT ( * ) ) * + 91 AS col2, ( + - 0 ) col2 +---- +0 +NULL query I rowsort label-3109 SELECT ALL - COUNT ( * ) * + 28 + + CAST ( - CAST ( 20 AS FLOAT8 ) AS INTEGER ) AS col2 @@ -16420,8 +16617,11 @@ SELECT ALL + + 55 + 5 + + + COUNT ( * ) + - CAST ( - + 5 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(31\)\) \- Int64\(\-73\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 31 - - 73 AS col2, + 24 AS col2 +---- +24 +42 query I rowsort label-3123 SELECT DISTINCT - 3 / 51 AS col2 @@ -16626,8 +16826,12 @@ SELECT 98 + + 55 - - 49 # Datafusion - Expected - 34 # Datafusion - Expected - 1 # Datafusion - Expected - -22161 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 and "Int64\(79\) \+ Int64\(\-91\) \* Int64\(\-3\) \* Int64\(\-86\) \+ Int64\(\-96\) \- Int64\(72\) \+ Int64\(\-74\) \* Int64\(\-19\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 34, COUNT ( * ) AS col0, 79 + - 91 * - 3 * - 86 + + - 96 - 72 + - 74 * - 19 AS col0 +---- +-22161 +1 +34 query I rowsort SELECT 7 + - 30 + + - 81 AS col1 @@ -16658,8 +16862,11 @@ SELECT 30 AS col2, + NULLIF ( - COUNT ( * ), 93 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - -137 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "Int64\(\-68\) \- Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 AS col2, - 68 - 69 AS col2 +---- +-137 +11 query I rowsort label-3168 SELECT + COUNT ( + 32 ) col1 @@ -16684,8 +16891,11 @@ SELECT 26 - - 36 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 AS col2, + 71 AS col2 +---- +39 +71 query I rowsort SELECT ALL + - 5 + + + 51 AS col0 @@ -16731,8 +16941,11 @@ SELECT + ( - + 93 ) * + ( + 50 ) * - ( + 19 ) + + 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - 37 -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\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 28 - + 64 AS col0, + 37 AS col0 +---- +-36 +37 query I rowsort SELECT ALL - 12 - - 13 AS col1 @@ -16915,8 +17128,11 @@ SELECT - MIN ( ( - - 11 ) ) * + 2 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(8\) WHEN Int64\(\-95\) / Int64\(58\) THEN Int64\(99\) \* Int64\(7\) END AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CASE + 8 WHEN - 95 / + 58 THEN + 99 * + 7 END col1, 96 AS col1 +---- +96 +NULL query I rowsort SELECT ALL NULLIF ( 61, 74 / 15 / + 9 + - 29 ) AS col0 @@ -17007,8 +17223,11 @@ SELECT + 49 / - 81 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, + 4 AS col1 +---- +1 +4 query I rowsort SELECT + 50 * + 53 - + + 34 + 0 + + + 17 @@ -17104,8 +17323,11 @@ SELECT - 44 - - 29 + - 29 / - 64 * + - 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-73\)\)\) AS col0" at position 0 and "Int64\(\-83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - - 73 ) AS col0, - 83 AS col0 +---- +-73 +-83 query I rowsort SELECT DISTINCT ( 3 ) AS col2 @@ -17364,8 +17586,11 @@ SELECT DISTINCT 99 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 43 col0, + COUNT ( * ) AS col0 +---- +-43 +1 query I rowsort SELECT 5 * - ( + 38 ) + + 25 - - 88 * + - 60 * - + 97 @@ -17429,8 +17654,11 @@ SELECT ALL - COUNT ( 34 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 46 AS col0, + 98 AS col0 +---- +46 +98 query I rowsort label-3316 SELECT COUNT ( * ) * - 5 @@ -17465,8 +17693,11 @@ SELECT + 2 + - COUNT ( * ) + + 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - 150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(77\)\) AS col1" at position 0 and "Int64\(84\) \+ Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 77 AS col1, 84 + 66 AS col1 +---- +-77 +150 query I rowsort SELECT - 29 + 55 + 79 AS col2 @@ -17968,8 +18199,11 @@ SELECT 61 + - + COUNT ( * ) AS col2, 75 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1380 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(91\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN Int64\(59\) ELSE NULL END\) AS col0" at position 0 and "Int64\(30\) \* Int64\(\-46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CASE + 91 WHEN - CAST ( NULL AS INTEGER ) THEN + 59 ELSE NULL END AS col0, + 30 * - 46 AS col0 +---- +-1380 +NULL query I rowsort label-3419 SELECT ALL - 2 + + 48 + - - COUNT ( * ) + - + MIN ( ALL 79 ) AS col2 @@ -18205,8 +18439,11 @@ SELECT + ( - 62 ) * 13 - - + 31 + - 89 * 26 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-70\), \(\- Int64\(44\)\) \+ \(\- coalesce\(Int64\(50\), Int64\(43\), Int64\(18\)\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(35\) \* Int64\(\-63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + NULLIF ( - 70, - + 44 + - ( + + COALESCE ( 50, + 43, + + 18 ) ) ) AS col0, CAST ( NULL AS INTEGER ) * + ( + 35 ) * - 63 AS col0 +---- +-70 +NULL query I rowsort SELECT ALL - - 13 * + 35 AS col1 @@ -18449,8 +18686,11 @@ SELECT - COALESCE ( - 24, + 9 ) + ( + - 15 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -1938 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col0" at position 0 and "\(\- Int64\(38\)\) \* Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 9 AS col0, + ( - + 38 ) * + 51 col0 +---- +-1938 +9 query I rowsort SELECT DISTINCT 39 * - + 68 * - + 23 + + - 67 - + 47 * - 28 * 73 AS col1 @@ -18518,8 +18758,11 @@ SELECT 70 * + - 90 * - ( + 69 ) * + 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 132 # Datafusion - Expected - 1140 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \- Int64\(\-91\) AS col2" at position 0 and "Int64\(12\) \* Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 - + - 91 col2, 12 * + 95 AS col2 +---- +1140 +132 query I rowsort SELECT 60 * 67 @@ -18529,8 +18772,11 @@ SELECT 60 * 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 123 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \+ Int64\(82\) AS col0" at position 0 and "Int64\(\-20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 + 82 AS col0, - 20 AS col0 +---- +-20 +123 query I rowsort label-3526 SELECT 90 / 86 + + 17 @@ -18799,8 +19045,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 261 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \* Int64\(\-8\) \+ Int64\(45\) AS col0" at position 0 and "Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 27 * - 8 + 45 col0, - 22 col0 +---- +-22 +261 query II rowsort label-3577 SELECT DISTINCT - COUNT ( * ) AS col2, - ( + + 39 ) AS col1 @@ -18887,8 +19136,12 @@ SELECT DISTINCT 4 * - COUNT ( * ) # Datafusion - Expected - 83 # Datafusion - Expected - -32 # Datafusion - Expected - 428 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col2" at position 1 and "Int64\(85\) \* Int64\(1\) \+ Int64\(\-38\) \+ Int64\(3\) \* Int64\(98\) \- Int64\(\-87\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - MIN ( DISTINCT NULLIF ( - 83, - 59 ) ) AS col0, - 32 AS col2, 85 * 1 + - 38 + + 3 * + 98 - - 87 AS col2 +---- +-32 +428 +83 query I rowsort label-3594 SELECT ALL + ( + COUNT ( * ) ) - + - 56 - - - COALESCE ( 76, CASE 11 WHEN 57 THEN 63 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END / + - 18 ) + 56 * - 88 * + 4 @@ -19030,8 +19283,11 @@ SELECT 99 * + 1 + ( + 44 ) + + NULLIF ( - 73, ( - 59 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(CAST\(NULL AS Int32\), Int64\(55\) \* Int64\(\-38\) \+ Int64\(10\) \+ avg\(Int64\(48\)\) \* Int64\(\-95\) \* \(\- Int64\(\-62\)\)\) \* nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(53\)\) \* \(\- Int64\(\-11\)\)\) AS col2" at position 0 and "\(\- Int64\(23\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT NULLIF ( CAST ( NULL AS INTEGER ), 55 * - 38 + + 10 + AVG ( 48 ) * + - 95 * - - 62 ) * NULLIF ( + COUNT ( * ), + - ( + 53 ) * - - 11 ) AS col2, - ( + 23 ) AS col2 +---- +-23 +NULL query II rowsort label-3620 SELECT + ( 69 ) AS col0, MAX ( - ( + + ( + + 68 ) ) ) @@ -19350,8 +19606,12 @@ 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\(1\)\) AS count\(\*\) \- \(\- Int64\(\-36\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - - 89 col0, - 25 + - 13 / + 22 + + 75 + CAST ( + - 34 AS INTEGER ) AS col2, + + 17 / COUNT ( * ) - - - 36 AS col0 +---- +-19 +16 +89 query I rowsort label-3682 SELECT ALL - SUM ( DISTINCT 85 ) @@ -19575,8 +19835,11 @@ SELECT + SUM ( + 85 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5390 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-70\)\) \* Int64\(77\) AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + + ( - - 70 ) ) * 77 AS col1, 39 AS col1 +---- +39 +5390 query I rowsort label-3725 SELECT ALL COUNT ( * ) * - MIN ( - + 73 ) + - + ( 54 ) @@ -19789,8 +20052,11 @@ SELECT ALL - MAX ( + 80 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* Int64\(16\) AS col1" at position 0 and "Int64\(52\) \- CAST\(NULL AS Int32\) \+ Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 * + 16 col1, 52 - CAST ( NULL AS INTEGER ) + 93 AS col1 +---- +0 +NULL query I rowsort label-3767 SELECT ALL + CAST ( 74 AS INTEGER ) * - - 86 * - + 65 * - - 50 + 37 AS col1 @@ -19977,8 +20243,11 @@ 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\(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\. +query II valuesort 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 +---- +97 +NULL query I rowsort SELECT 3 + 76 col0 @@ -20334,8 +20603,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(66\)\) AS col1" at position 0 and "Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 66 ) AS col1, + 95 col1 +---- +-66 +95 query I rowsort label-3869 SELECT + - NULLIF ( - - 7, + 45 - COUNT ( * ) - + 91 + - CASE - + COUNT ( * ) WHEN 55 THEN NULL WHEN + - 6 * + 99 - + CASE - 9 WHEN - 77 - MAX ( ALL 21 ) * - 88 THEN + 73 ELSE NULL END THEN - + ( + - 16 ) WHEN + + 83 THEN NULL ELSE NULL END * + + CAST ( NULL AS INTEGER ) ) @@ -20351,8 +20623,12 @@ 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\(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\. +query III valuesort SELECT ALL - COUNT ( * ) * - 30 AS col2, - 41 + + + CASE + 89 WHEN 38 * + - AVG ( + 22 ) THEN MAX ( ALL + 56 ) END, - 50 AS col2 +---- +-50 +30 +NULL query I rowsort label-3872 SELECT + 73 / - - COUNT ( * ) AS col2 @@ -20424,14 +20700,20 @@ SELECT 14 + + 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "\(\- Int64\(17\)\) \+ Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 26 AS col1, - ( + 17 ) + 57 col1 +---- +26 +40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -2385 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "CAST\(\(\- Int64\(45\)\) AS Int32\) \* Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 28 AS col2, CAST ( - + 45 AS INTEGER ) * + 53 AS col2 +---- +-2385 +28 query I rowsort label-3887 SELECT CAST ( + MIN ( ALL 98 ) AS INTEGER ) * + 86 AS col0 @@ -20892,8 +21174,11 @@ SELECT 55 * SUM ( DISTINCT 12 ) + 16 + - - 23 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col1" at position 0 and "Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 75 AS col1, - 87 AS col1 +---- +-87 +75 query I rowsort label-3976 SELECT - 27 + - - COUNT ( * ) + 23 AS col2 @@ -20908,8 +21193,11 @@ SELECT ALL + 55 / COALESCE ( - - 16, 64 * + 70 + - - 94 + - 71 - - 8 * - 77 + - # 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\(\-45\) / Int64\(59\) AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 45 / + 59 AS col0, 33 AS col0 +---- +0 +33 query II rowsort label-3979 SELECT - 4 + - 9 + + + 50 - + - 35 AS col2, + 89 + NULLIF ( ( CAST ( NULL AS INTEGER ) ), + 73 * 51 + + + 78 ) @@ -21037,8 +21325,11 @@ SELECT + - 5 + 71 + 54 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - CAST ( NULL AS INTEGER ) AS col1, + ( 57 ) AS col1 +---- +57 +NULL query I rowsort label-4003 SELECT + - 60 / 30 AS col1 @@ -21426,8 +21717,11 @@ 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\(1\)\) AS count\(\*\)\) / Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( - 19 ) + - 34 + - 34 AS col1, - COUNT ( * ) / + 40 AS col1 +---- +-87 +0 query I rowsort SELECT DISTINCT + 24 * + 23 @@ -21674,8 +21968,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(\-1\) \+ \(\- Int64\(\-30\)\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 * - 1 + - - 30 AS col0, 92 AS col0 +---- +-9 +92 query I rowsort label-4125 SELECT DISTINCT - 57 * COUNT ( * ) AS col0 @@ -21801,8 +22098,11 @@ SELECT 58 * - + 12 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col1" at position 0 and "Int64\(78\) \+ Int64\(\-6\) \- CASE \(\- CAST\(NULL AS Int32\)\) WHEN \(\- Int64\(74\)\) THEN Int64\(96\) \* \(\- max\(DISTINCT Int64\(21\)\)\) \* Int64\(\-62\) \- CASE Int64\(\-23\) WHEN Int64\(\-38\) \* Int64\(98\) / Int64\(\-70\) \* Int64\(26\) THEN Int64\(\-45\) \* coalesce\(Int64\(49\), Int64\(36\)\) \* Int64\(\-24\) \* \(\- min\(nullif\(Int64\(\-40\), Int64\(1\)\)\)\) ELSE NULL END \+ Int64\(5\) END \+ Int64\(\-50\) \+ Int64\(79\) \* Int64\(\-6\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +75 +NULL query I rowsort SELECT 64 + - 51 @@ -21859,8 +22159,11 @@ SELECT DISTINCT + 17 / 37 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 0 and "Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 col1, - 33 AS col1 +---- +-33 +34 query II rowsort SELECT ALL - ( - 2 ) AS col1, 16 @@ -21913,8 +22216,11 @@ SELECT DISTINCT + - 93 + - 88 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-96\)\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 96 AS col1, 93 AS col1 +---- +93 +96 query I rowsort label-4170 SELECT - CASE 38 WHEN - 67 + - 88 + 78 - + 94 THEN NULL WHEN - - 62 THEN NULL ELSE + 56 * COUNT ( * ) + - 32 END * + + 13 - + 80 * - - 1 * 91 - + 49 AS col0 @@ -22072,8 +22378,11 @@ SELECT ALL 83 * - + 95 + - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7056 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) \* Int64\(82\) \- Int64\(44\) \+ Int64\(25\) \+ \(\- Int64\(\-97\)\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 87 * + 82 - + 44 + 25 + - - 97 col2, 53 AS col2 +---- +-7056 +53 query I rowsort label-4200 SELECT DISTINCT - 0 * - 99 / - 48 * + 69 + - NULLIF ( + - 21, - + COUNT ( * ) ) + 35 * 15 AS col1 @@ -22098,8 +22407,11 @@ 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\(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\. +query II valuesort SELECT - ( 99 ) * + - 39 - + COALESCE ( 48, - - 15 + COUNT ( * ) ) col2, MAX ( + - 89 ) AS col2 +---- +-89 +3813 query I rowsort SELECT - - 21 * + 81 * 81 + - - 23 + + - 71 * - 77 * 63 - + ( + - 61 ) * 92 @@ -22382,8 +22694,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -960 # Datafusion - Expected - 1232 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \* Int64\(10\) AS col0" at position 0 and "Int64\(56\) \* Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 96 * + 10 AS col0, 56 * ( + 22 ) AS col0 +---- +-960 +1232 query I rowsort SELECT 73 + + 39 AS col1 @@ -22622,8 +22937,11 @@ SELECT ALL + 77 * 58 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - 302288 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-92\) \+ Int64\(70\) \* \(\- \(\- coalesce\(Int64\(45\), \(\- min\(DISTINCT Int64\(\-65\)\)\) \* \(\- CASE \(\- Int64\(87\)\) WHEN CASE Int64\(38\) WHEN count\(Int64\(\-95\)\) THEN NULL WHEN Int64\(16\) THEN Int64\(43\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN NULL WHEN Int64\(\-36\) THEN Int64\(5\) \+ Int64\(11\) END \+ Int64\(\-67\) THEN Int64\(\-13\) WHEN Int64\(0\) THEN NULL ELSE NULL END\), Int64\(\-44\), Int64\(29\) \+ Int64\(44\) \+ Int64\(21\)\)\)\) \* Int64\(96\) \+ \(\- Int64\(21\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-57 +302288 query I rowsort label-4306 SELECT ALL + 86 * - - NULLIF ( + COUNT ( * ), + 98 ) * - COALESCE ( + COUNT ( * ), 99 ) AS col2 @@ -22713,8 +23031,11 @@ SELECT 40, NULLIF ( - + 87, - ( - 70 ) * - SUM ( ALL 6 ) ) - + 99 + - 99 / - 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6916 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-91\)\)\) \+ Int64\(\-75\) \* Int64\(\-91\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( ALL - 91 ) + - 75 * - 91 AS col2, + 67 AS col2 +---- +67 +6916 query II rowsort SELECT + 56 * 60 * + ( - 0 ), - 43 AS col0 @@ -22725,8 +23046,11 @@ SELECT + 56 * 60 * + ( - 0 ), - 43 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2196 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(\-36\) AS col1" at position 0 and "Int64\(\-34\) \+ \(\- Int64\(\-41\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 61 * - 36 AS col1, - 34 + - - 41 * - CAST ( NULL AS INTEGER ) AS col1 +---- +-2196 +NULL query III rowsort SELECT 89 AS col0, - 27 * 14 * + - 26, + + 10 AS col1 @@ -23467,8 +23791,11 @@ SELECT DISTINCT ( 85 ) / - 55 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 237 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(7\) \+ Int64\(\-36\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 39 * + 7 + + - 36 AS col1, + 92 AS col1 +---- +237 +92 query I rowsort SELECT + 7 * 37 AS col0 @@ -23493,8 +23820,11 @@ SELECT MAX ( + ( + 81 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(87\) AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 53 * - CAST ( NULL AS INTEGER ) + 87 col2, + 40 AS col2 +---- +40 +NULL query I rowsort label-4471 SELECT COUNT ( + 18 ) @@ -24236,8 +24566,11 @@ SELECT + - 82 * - - 48 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "count\(CAST\(NULL AS Int32\)\) \* Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col2, COUNT ( + CAST ( NULL AS INTEGER ) ) * 34 col2 +---- +0 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -24579,8 +24912,11 @@ SELECT CAST ( - 86 AS INTEGER ) - + 94 + + 25 / + + 39 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 86 AS col1, + 67 AS col1 +---- +-86 +67 query I rowsort label-4682 SELECT DISTINCT + 7 * - CAST ( NULL AS INTEGER ) @@ -24816,8 +25152,12 @@ SELECT ALL - + COUNT ( DISTINCT + 31 ) * - 75 col2 # Datafusion - Expected - 46 # Datafusion - Expected - 1460 # Datafusion - Expected - -1640 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(46\)\) AS col0" at position 0 and "Int64\(84\) \+ Int64\(\-16\) \* \(\- Int64\(86\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT MIN ( ALL + 46 ) col0, 84 + - 16 * - + 86 AS col0, - ( 41 ) * + 40 +---- +-1640 +1460 +46 query I rowsort label-4727 SELECT - 21 / - 13 + 70 + - 44 / + - 13 - - + 26 @@ -25501,8 +25841,11 @@ SELECT ALL 37, - NULLIF ( - 2, - 9 * COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col1" at position 0 and "Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 49 AS col1, - 79 AS col1 +---- +-49 +-79 query I rowsort label-4858 SELECT - 75 * - COALESCE ( - - ( - SUM ( + - CAST ( NULL AS INTEGER ) ) ), - - 91, + MAX ( + - 77 ) / 14 * CASE - 53 WHEN 21 THEN + 39 - + 36 WHEN + 49 THEN NULL END ) + COUNT ( * ) @@ -25523,8 +25866,11 @@ SELECT - 46 + - 81 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "CAST\(Int64\(\-31\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 27 AS col0, CAST ( - 31 AS INTEGER ) col0 +---- +-31 +27 query I rowsort SELECT DISTINCT - 28 + 21 @@ -25648,8 +25994,11 @@ 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\(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\. +query II valuesort SELECT - 54 * + 83 AS col2, - NULLIF ( 85, - COUNT ( * ) * - - COUNT ( * ) * 14 + + COUNT ( * ) ) + - 58 AS col2 +---- +-143 +-4482 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -26285,8 +26634,11 @@ SELECT ALL + COALESCE ( - - 43, - + 5 + 58 ) + 14 + - 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 col2, 90 AS col2 +---- +25 +90 query I rowsort label-5008 SELECT - 60 / - 12 AS col1 @@ -26772,8 +27124,11 @@ SELECT DISTINCT + 93 * ( + 97 ) + + 40 / + 98 + + + 63 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -172917 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) \* Int64\(25\) \* Int64\(96\) \+ Int64\(\-71\) \+ Int64\(\-46\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 72 ) * 25 * 96 + - 71 + - 46 AS col1, 11 AS col1 +---- +-172917 +11 query I rowsort SELECT + - ( 49 ) AS col2 @@ -26798,8 +27153,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + 9 AS col2, NULLIF ( 7, + 95 + - COUNT ( * ) + + COUNT ( + - 44 ) / + + 96 + + 25 ) AS col2 +---- +7 +9 query I rowsort label-5106 SELECT - COUNT ( * ) * ( 71 ) AS col0 @@ -27073,8 +27431,11 @@ SELECT ALL + 19 * + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22400 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* Int64\(8\) \* Int64\(70\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 * + 8 * 70 AS col2, 78 AS col2 +---- +22400 +78 query I rowsort SELECT DISTINCT 0 + - 47 @@ -27755,8 +28116,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4958 # Datafusion - Expected - 412645 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(86\) AS Int32\) \+ Int64\(56\) \* Int64\(87\) AS col0" at position 0 and "Int64\(67\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- \(\- Int64\(\-77\)\)\) \* Int64\(16\) \* Int64\(\-5\) \+ Int64\(34\) \+ Int64\(\-48\) \+ Int64\(\-18\) \+ Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( 86 AS INTEGER ) + + 56 * + 87 AS col0, 67 * - - COUNT ( * ) * + - ( - - 77 ) * 16 * + - 5 + 34 + - 48 + - 18 + - 43 AS col0 +---- +412645 +4958 query I rowsort label-5289 SELECT DISTINCT COALESCE ( 23, + - CASE - 32 WHEN + 50 THEN + 94 - - 35 * 39 + ( + 20 ) END * COUNT ( 36 ) * + + 97, - - 26 ) + + 52 AS col2 @@ -28504,8 +28868,13 @@ 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\(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\. +query IIII valuesort 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 +---- +-1 +-1422 +-57 +21 query I rowsort SELECT 93 * + 49 @@ -28525,8 +28894,11 @@ SELECT ALL + 63 + - 96 # 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 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 II valuesort SELECT 17 AS col2, + 5 / + 38 AS col2 +---- +0 +17 query I rowsort label-5434 SELECT - CAST ( - 13 AS INTEGER ) + - 32 + + COUNT ( * ) AS col1 @@ -29162,8 +29534,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) + + 88 - - - COUNT ( * ) AS col2, 91 AS col2 +---- +88 +91 query I rowsort SELECT 3 * ( + 47 ) @@ -29480,8 +29855,11 @@ SELECT - ( + SUM ( - - 35 ) ) * 52 + 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3960 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \* Int64\(60\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 66 * 60 AS col2, 14 AS col2 +---- +14 +3960 query I rowsort SELECT DISTINCT NULLIF ( + - 22, + 42 ) AS col1 @@ -29630,8 +30008,11 @@ SELECT - 96 * 72 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(46\)\) \+ Int64\(\-47\) AS col0" at position 0 and "Int64\(61\) \+ max\(\(\- Int64\(\-8\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 46 + - 47 col0, + 61 + + MAX ( - - 8 ) AS col0 +---- +-93 +69 query I rowsort SELECT DISTINCT + 82 * ( - + 28 ) @@ -29733,8 +30114,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 410 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "Int64\(\-5\) \* Int64\(\-82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 AS col2, - 5 * + - 82 AS col2 +---- +41 +410 query II rowsort SELECT 11 AS col0, - 50 @@ -29950,8 +30334,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * - 52 AS col2, - 33 * + - 3 + - 10 AS col2 +---- +-52 +89 query I rowsort SELECT ALL - + ( 70 ) AS col1 @@ -29961,8 +30348,11 @@ SELECT ALL - + ( 70 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 90 AS col0, 50 col0 +---- +-90 +50 query I rowsort label-5705 SELECT DISTINCT + + 22 * 38 * - 96 + - + 42 / + + MAX ( + 15 ) AS col0 @@ -30361,8 +30751,11 @@ SELECT - - 43 + + COALESCE ( + 10, + - 18 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\)" at position 0 and "\(\- CAST\(NULL AS Int32\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) +---- +NULL +NULL query II rowsort label-5781 SELECT + 77 / - 13 + - 51, + CAST ( NULL AS INTEGER ) AS col1 @@ -30483,8 +30876,11 @@ SELECT 56 + + 7, 94 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \- \(\- count\(\(\- Int64\(68\)\)\)\) / Int64\(\-98\) \+ CAST\(NULL AS Int32\) \* Int64\(\-96\) \- coalesce\(Int64\(\-36\), count\(Int64\(1\)\) AS count\(\*\), Int64\(39\) \- count\(Int64\(90\)\) \+ Int64\(\-72\)\) AS col0" at position 0 and "Int64\(71\) \+ Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +20 +NULL query I rowsort label-5804 SELECT 66 + - ( COUNT ( * ) ) + + 54 * 41 @@ -30736,8 +31132,11 @@ SELECT ALL + - ( + 94 ) * + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT + - 2 AS col1, 70 AS col1 +---- +-2 +70 query I rowsort label-5852 SELECT 50 * - + 96 - ( - - 40 ) * - + 54 + + 30 + + 79 / - 21 + CASE + 67 WHEN + + SUM ( - - 37 ) THEN + ( 52 ) ELSE NULL END @@ -30802,8 +31201,11 @@ SELECT + 40 * - 62 - - + COUNT ( + - 91 ) - 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col0" at position 0 and "Int64\(12\) \- Int64\(60\) \+ Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 92 col0, 12 - + + 60 + 62 AS col0 +---- +14 +92 query I rowsort SELECT - 59 * + - 27 @@ -31024,8 +31426,11 @@ SELECT DISTINCT + CAST ( 93 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) / Int64\(19\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 97 / 19 AS col2, 55 AS col2 +---- +5 +55 query I rowsort label-5906 SELECT - MIN ( DISTINCT + 64 ) * + - 34 * 28 * + 39 * + 60 + + 65 @@ -31036,8 +31441,12 @@ SELECT - MIN ( DISTINCT + 64 ) * + - 34 * 28 * + 39 * + 60 + + 65 # Datafusion - Expected - -4266 # Datafusion - Expected - NULL # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(\-54\) AS col2" at position 0 and "Int64\(36\) \* CAST\(NULL AS Int32\) \* Int64\(\-63\) \+ Int64\(\-80\) \* Int64\(\-75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 79 * - 54 AS col2, 36 * + CAST ( NULL AS INTEGER ) * - 63 + + + ( - 80 ) * - 75 col2, + + 38 AS col0 +---- +-4266 +38 +NULL query I rowsort label-5908 SELECT - 46 * + - CAST ( + - 11 AS INTEGER ) AS col0 @@ -31059,8 +31468,12 @@ SELECT ALL 72 + + - 91 AS col2, - 44 AS col0 # Datafusion - Expected - 7387 # Datafusion - Expected - 15 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* Int64\(89\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 83 * + 89 AS col1, + 15 AS col1, + 59 +---- +15 +59 +7387 query I rowsort label-5912 SELECT ALL + 13 + + 84 * MIN ( - 9 ) @@ -31133,8 +31546,11 @@ SELECT DISTINCT + ( + 65 ) * - 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 112 # Datafusion - Expected - 298 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ Int64\(75\) AS col1" at position 0 and "Int64\(28\) \* Int64\(9\) \+ Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 + + 75 AS col1, + 28 * 9 + + 46 AS col1 +---- +112 +298 query I rowsort label-5926 SELECT 50 / + 78 AS col2 @@ -31536,8 +31952,11 @@ 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\(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\. +query II valuesort SELECT + ( - COUNT ( * ) ) / + + 42 * - 14 + 78 AS col0, 29 AS col0 +---- +29 +78 query I rowsort SELECT DISTINCT + 23 col1 @@ -31761,8 +32180,11 @@ SELECT 0 * + - 21 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 45 col0, + 94 AS col0 +---- +-45 +94 query II rowsort label-6045 SELECT + 63 AS col1, COUNT ( * ) + 94 + + 4 * - 7 @@ -33001,8 +33423,11 @@ SELECT + 34 - 18 + - COUNT ( 37 ) * 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 42 AS col1, 60 AS col1 +---- +42 +60 query I rowsort label-6285 SELECT DISTINCT + NULLIF ( + 53, CAST ( NULL AS INTEGER ) + 77 * + CASE 12 - + 44 WHEN 26 THEN 42 END ) @@ -33199,8 +33624,11 @@ SELECT ALL + 30 + - 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col1" at position 0 and "Int64\(\-68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 67 AS col1, - 68 col1 +---- +-68 +67 query I rowsort label-6324 SELECT DISTINCT COUNT ( * ) + + 45 AS col0 @@ -33439,8 +33867,11 @@ SELECT + NULLIF ( + + COUNT ( * ), - 61 ) 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 col0" at position 0 and "Int64\(\-97\) / Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 83 AS col0, - 97 / 85 AS col0 +---- +-1 +83 query I rowsort label-6369 SELECT + CASE 47 WHEN COUNT ( * ) THEN NULL WHEN CASE 87 WHEN + + COALESCE ( 83, COUNT ( * ) + - MAX ( - 22 ) ) + + 20 THEN - 91 ELSE 82 * - ( + MAX ( - 82 ) / + 41 ) END THEN 66 ELSE + 8 END AS col0 @@ -33758,8 +34189,11 @@ SELECT 47 + + ( + CAST ( + + COUNT ( * ) AS INTEGER ) ) # 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 "Int64\(\-80\) / Int64\(\-47\) AS col2" at position 0 and "Int64\(\-61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 80 ) / - 47 AS col2, - 61 AS col2 +---- +-61 +1 query I rowsort label-6431 SELECT ALL CAST ( - 66 AS INTEGER ) * COUNT ( * ) @@ -33786,8 +34220,11 @@ SELECT MIN ( DISTINCT - + 63 ) * - + 82 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "Int64\(85\) / Int64\(68\) \* Int64\(\-72\) \* Int64\(98\) \* Int64\(88\) \* \(\- \(\- CASE Int64\(0\) WHEN Int64\(8\) \+ CAST\(Int64\(\-5\) AS Int32\) THEN Int64\(85\) END\)\) \* Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 54 AS col1, 85 / 68 * - 72 * + 98 * + 88 * - - CASE + 0 WHEN 8 + CAST ( - 5 AS INTEGER ) THEN 85 END * - 61 AS col1 +---- +54 +NULL query I rowsort SELECT - 56 - - 6 AS col2 @@ -34128,8 +34565,11 @@ SELECT ALL ( + 41 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -102 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \+ \(\- max\(Int64\(55\)\)\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 47 + + - MAX ( ALL + 55 ) AS col2, + 98 AS col2 +---- +-102 +98 query I rowsort SELECT DISTINCT + 83 * 56 @@ -34335,8 +34775,12 @@ SELECT 53 * - + COUNT ( * ) # Datafusion - Expected - 44 # Datafusion - Expected - -4 # 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 "Int64\(38\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 44 AS col0, - 4 AS col1, + 38 col0 +---- +-4 +38 +44 query II rowsort label-6543 SELECT 20, - 81 / 87 AS col0 @@ -34403,8 +34847,11 @@ SELECT 81 * - 0 + - + 70 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1566 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \* Int64\(\-58\) AS col1" at position 0 and "\(\- coalesce\(\(\- Int64\(61\)\), Int64\(15\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 * - 58 col1, - COALESCE ( - + 61, 15 ) AS col1 +---- +-1566 +61 query I rowsort label-6556 SELECT DISTINCT 53 / - + COUNT ( * ) AS col2 @@ -34529,8 +34976,11 @@ SELECT 7 - - 14 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6240 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(80\) AS col0" at position 0 and "Int64\(64\) \+ Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 * + 80 AS col0, 64 + - 10 AS col0 +---- +54 +6240 query I rowsort SELECT ALL + - 47 - 9 * 26 @@ -35086,8 +35536,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "Int64\(\-36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 98 col0, - 36 AS col0 +---- +-36 +98 query I rowsort label-6687 SELECT 81 / SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 @@ -35120,8 +35573,11 @@ NULL # 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\(DISTINCT \(\- Int64\(\-32\)\)\) AS col0" at position 0 and "Int64\(\-10\) \- Int64\(\-26\) \+ Int64\(36\) \- Int64\(27\) \+ Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + COUNT ( DISTINCT - - 32 ) ) AS col0, - 10 - - 26 + + 36 - 27 + 80 AS col0 +---- +1 +105 query II rowsort label-6693 SELECT 50 * - + NULLIF ( - 33, - CAST ( NULL AS INTEGER ) ) + - ( + - 51 ) AS col0, COUNT ( - 74 ) + + + 58 AS col2 @@ -35254,8 +35710,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(31\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( + 81 ) AS col1, 48 + + 26 + 91 * COUNT ( * ) * - COUNT ( + 31 ) col1 +---- +-17 +81 query I rowsort label-6718 SELECT ALL 46 * + CAST ( + 34 AS INTEGER ) AS col0 @@ -35308,8 +35767,11 @@ SELECT ALL 17 * - 39 + 84 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-29\)\) / count\(Int64\(50\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - - 29 ) / COUNT ( 50 ) AS col0, COUNT ( * ) AS col0 +---- +1 +29 query II rowsort label-6728 SELECT - 38 * + 84 + + COUNT ( * ) + 49 * + + ( + 76 ), - 17 AS col2 @@ -35521,8 +35983,11 @@ SELECT - - 7 * - - ( 89 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(87\)\) AS col2" at position 0 and "Int64\(25\) / Int64\(64\) / Int64\(67\) \* \(\- sum\(\(\- CAST\(NULL AS Int32\)\)\)\) \* Int64\(\-36\) \+ Int64\(72\) \+ Int64\(\-74\) \* Int64\(83\) \* Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MAX ( ALL + 87 ) AS col2, 25 / + 64 / + 67 * + - SUM ( - CAST ( NULL AS INTEGER ) ) * - 36 + + 72 + - 74 * + 83 * + 57 AS col2 +---- +87 +NULL query I rowsort label-6769 SELECT + MIN ( DISTINCT + 36 ) * + 31 col1 @@ -35564,8 +36029,11 @@ SELECT ALL - 56 * + NULLIF ( - NULLIF ( + 11, - 82 ), - NULLIF ( 69, - 51 * 56 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 58608 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \* Int64\(\-22\) \* Int64\(\-74\) AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 36 * - 22 * - 74 AS col2, 46 AS col2 +---- +46 +58608 query I rowsort label-6777 SELECT - SUM ( ALL + 31 ) - 48 @@ -35615,8 +36083,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 80 AS col1, COUNT ( * ) AS col1 +---- +-80 +1 query I rowsort label-6787 SELECT - CAST ( NULL AS INTEGER ) * 18 AS col0 @@ -35667,8 +36138,11 @@ SELECT ALL - 13 * - + 82 * + 85 - COUNT ( * ) # 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 "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 14 AS col0, 1 AS col0 +---- +1 +14 query I rowsort label-6797 SELECT - COUNT ( DISTINCT - 10 ) * + 94 + - 44 * + 17 * - SUM ( ALL + 99 ) AS col2 @@ -35759,8 +36233,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col1" at position 0 and "Int64\(0\) \* Int64\(17\) \+ Int64\(\-19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 94 AS col1, + 0 * 17 + - 19 AS col1 +---- +-19 +-94 query I rowsort label-6815 SELECT ALL + 96 + 81 - + 97 - 40 - - + 27 * + - 37 * COUNT ( + - 75 ) - + SUM ( DISTINCT - - 1 ) AS col1 @@ -35800,8 +36277,11 @@ SELECT 98 * + 42 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 172 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ Int64\(84\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 88 + + 84 col0, COUNT ( * ) AS col0 +---- +1 +172 query I rowsort label-6823 SELECT 10 + - + COUNT ( + + 16 ) @@ -36381,8 +36861,11 @@ SELECT ALL + 22 + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 123 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-36\)\) AS Int32\) AS col2" at position 0 and "Int64\(70\) \+ Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( - - 36 AS INTEGER ) AS col2, 70 + + 53 AS col2 +---- +123 +36 query I rowsort SELECT + 15 * - 5 @@ -36541,8 +37024,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(39\)\), Int64\(8\)\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COALESCE ( - + 39, 8 ) AS col0, + 80 col0 +---- +-39 +80 query II rowsort SELECT - - 52 col2, CASE 19 WHEN + 59 + + 33 * - 69 THEN - - 41 END + + 6 AS col0 @@ -36953,8 +37439,11 @@ SELECT + 27 AS col1, - 11 * + 25 + + 47 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - -68 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 22 AS col2, - 68 AS col2 +---- +-22 +-68 query I rowsort label-7042 SELECT DISTINCT - CAST ( + ( - ( + SUM ( - 54 ) ) ) AS INTEGER ) + - - 44 * + - 70 AS col0 @@ -37312,8 +37801,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 5 AS col2, - COUNT ( * ) * + 68 AS col2 +---- +-68 +5 query I rowsort SELECT + ( 12 ) * 77 col0 @@ -37860,8 +38352,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(39\) \* \(\- Int64\(26\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 23 + + 84 AS col1, COUNT ( * ) * + 39 * - + 26 AS col1 +---- +-1014 +107 query I rowsort label-7212 SELECT DISTINCT - 12 * COUNT ( * ) / + COUNT ( * ) AS col0 @@ -37881,8 +38376,11 @@ SELECT - + 43 - - 47 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\(21\) AS col1" at position 0 and "Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 21 AS col1, - 1 AS col1 +---- +-1 +21 query I rowsort label-7216 SELECT + - SUM ( DISTINCT 32 ) AS col0 @@ -38363,8 +38861,11 @@ SELECT 95 / 79 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \+ Int64\(78\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 10 + + + 78 AS col1, COUNT ( * ) AS col1 +---- +1 +88 query I rowsort label-7308 SELECT ( - COALESCE ( COUNT ( * ), - - COUNT ( * ), - 2 + + 44 ) ) + + COUNT ( * ) @@ -38529,8 +39030,11 @@ SELECT ALL + ( + + 42 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1302 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(62\)\) \* Int64\(21\) AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( + 62 ) * 21 AS col1, + 8 AS col1 +---- +1302 +8 query I rowsort label-7340 SELECT SUM ( DISTINCT 91 ) @@ -38557,8 +39061,11 @@ SELECT ALL + 40 AS col0, + 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1302 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* \(\- Int64\(\-62\)\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 21 * - ( - 62 ) AS col0, + 90 AS col0 +---- +1302 +90 query I rowsort SELECT ALL + CASE + 59 WHEN - - ( + 66 ) * - 17 * + - 19 + - 53 THEN - 82 ELSE NULL END @@ -38849,8 +39356,11 @@ SELECT DISTINCT + 29 + + + ( - 59 ) - + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(36\) \* Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 82 col2, + CAST ( NULL AS INTEGER ) * 36 * + 64 AS col2 +---- +82 +NULL query II rowsort SELECT DISTINCT - 69, 74 - + 39 AS col1 @@ -39056,8 +39566,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 AS col2, 95 + - COUNT ( * ) AS col2 +---- +55 +94 query I rowsort SELECT 73 * - 8 AS col0 @@ -39194,8 +39707,11 @@ 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\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-94\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 84 AS col2, 27 + COUNT ( * ) + - - 94 AS col2 +---- +-84 +122 query I rowsort label-7469 SELECT + - 67 * + COUNT ( * ) * + - ( + - CASE CAST ( + - COALESCE ( 11, - NULLIF ( 43, - 33 / CAST ( NULL AS FLOAT8 ) ) * + 16 ) AS INTEGER ) WHEN 69 THEN NULL ELSE 28 END ) + - CASE + 96 WHEN COUNT ( * ) * + - SUM ( DISTINCT - 47 ) THEN 92 WHEN + 24 THEN NULL END AS col1 @@ -39776,8 +40292,11 @@ SELECT ALL 58 + - + 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, COUNT ( * ) AS col0 +---- +1 +1 query I rowsort SELECT DISTINCT - - ( + - 89 ) AS col1 @@ -39860,8 +40379,11 @@ 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\(1\)\) AS count\(\*\) / \(\- Int64\(74\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 1 + 78 AS col1, ( - 53 ) - - + 22 + - 10 + + + 33 + - 6 + + COUNT ( * ) / - ( + 74 ) AS col1 +---- +-14 +77 query II rowsort label-7596 SELECT + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1, + 11 AS col2 @@ -40623,8 +41145,11 @@ SELECT - 5 + + 98 AS col2, + 68 * + - 87 * - + 49 + + 67 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\(\-82\) \+ Int64\(7\) AS col0" at position 0 and "Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 + 7 AS col0, - 66 AS col0 +---- +-66 +-75 query I rowsort label-7738 SELECT - MIN ( ALL + - 38 ) AS col0 @@ -40634,8 +41159,11 @@ SELECT - MIN ( ALL + - 38 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \+ Int64\(2\) AS col2" at position 0 and "coalesce\(Int64\(\-52\), Int64\(\-96\), \(\- Int64\(\-79\)\) \+ Int64\(\-81\)\) \+ Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 + + 2 AS col2, + COALESCE ( - 52, + - 96, - - 79 + + - 81 ) + 35 AS col2 +---- +-17 +48 query I rowsort label-7740 SELECT DISTINCT 63 * MAX ( ( - 1 ) ) @@ -41012,8 +41540,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-77\) \+ Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 86 AS col0, 79 - - + ( + COUNT ( * ) ) * - 77 + + 80 AS col0 +---- +-86 +82 query II rowsort SELECT - 38 col2, 33 @@ -41935,8 +42466,11 @@ SELECT ALL + CAST ( 30 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(4\) AS Int32\)\) \* Int64\(\-20\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( 4 AS INTEGER ) * - 20 col0, + 70 AS col0 +---- +70 +80 query I rowsort label-7995 SELECT ALL 18 / - COUNT ( * ) + + + 75 + + 96 / + 41 col0 @@ -42567,8 +43101,11 @@ SELECT 40 * COUNT ( DISTINCT - - 73 ) * - COUNT ( * ) + + 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \* Int64\(76\) \- Int64\(71\) \- \(\- CAST\(NULL AS Int32\)\) \* Int64\(87\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 2 * + + 76 - 71 - + - CAST ( NULL AS INTEGER ) * + ( 87 ) col2, 75 col2 +---- +75 +NULL query I rowsort label-8118 SELECT - 44 / - 18 AS col0 @@ -42754,8 +43291,11 @@ SELECT + 74 + - 65 - - 0 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3796 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT \(\- Int64\(3\)\)\)\) AS col0" at position 0 and "Int64\(73\) \* \(\- sum\(Int64\(\-52\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( DISTINCT - + 3 ) AS col0, 73 * - + SUM ( ( - 52 ) ) AS col0 +---- +3 +3796 query II rowsort label-8153 SELECT 11 + ( + + SUM ( - 10 ) ), + 42 + - 95 / + COUNT ( * ) * COUNT ( ALL + 32 ) col2 @@ -43192,8 +43732,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 61 + - + ( + 84 ) / - + COUNT ( * ) AS col1, + 87 AS col1 +---- +145 +87 query I rowsort label-8236 SELECT ALL 32 + 29 + COUNT ( * ) * + 73 + + 38 + + 30 * 37 @@ -43336,8 +43879,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* \(\- min\(Int64\(\-38\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 34 * - 97 AS col2, 53 * 33 + + COUNT ( * ) * - MIN ( - 38 ) AS col2 +---- +-3298 +1787 query I rowsort label-8264 SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) / + COALESCE ( 6, + 76 ) @@ -43493,8 +44039,11 @@ NULL # 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\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 94 AS col2, 69 AS col2 +---- +-94 +69 query I rowsort SELECT DISTINCT ( + 86 ) + + 19 @@ -43647,8 +44196,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 26 AS col0, 48 * - + 63 * - COUNT ( * ) AS col0 +---- +26 +3024 query I rowsort label-8322 SELECT ALL CAST ( + 0 AS INTEGER ) + 46 + - ( - 91 ) @@ -43729,8 +44281,11 @@ SELECT - 27 * + - 64 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1682 # Datafusion - Expected - 240 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ \(\- \(\- Int64\(47\)\)\) \* Int64\(35\) AS col1" at position 0 and "Int64\(15\) \* Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 + - - ( + + 47 ) * + + 35 AS col1, 15 * + 16 AS col1 +---- +1682 +240 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -43925,8 +44480,11 @@ SELECT DISTINCT - 75 * - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 375360 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* Int64\(\-68\) \* Int64\(\-60\) AS col0" at position 0 and "\(\- count\(\(\- Int64\(\-74\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 92 * + - 68 * - 60 AS col0, - COUNT ( ALL - - 74 ) AS col0 +---- +-1 +375360 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -44240,8 +44798,11 @@ SELECT MAX ( 52 ) * + - 84 AS col0 # 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\(47\) AS col0" at position 0 and "Int64\(\-87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 47 AS col0, - 87 AS col0 +---- +-87 +47 query II rowsort SELECT - 73 AS col2, - 24 @@ -44515,8 +45076,11 @@ SELECT 93, 62 / - - NULLIF ( + + 70, + - 89 ) * - COUNT ( * ) + CAST ( + - COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ Int64\(32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 39 + 32 * COUNT ( * ) AS col0, - COUNT ( * ) AS col0 +---- +-1 +71 query I rowsort SELECT - - ( 45 ) AS col1 @@ -44779,8 +45343,11 @@ SELECT 89 * - ( - MIN ( DISTINCT + 30 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col2" at position 0 and "Int64\(\-22\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 AS col2, ( - 22 ) - + COUNT ( * ) AS col2 +---- +-23 +24 query I rowsort label-8539 SELECT - 65 / - 67 + + + 79 * + 60 * + 43 * - MIN ( 59 ) * 35 * - CAST ( NULL AS INTEGER ) / 27 * + MAX ( + 87 ) @@ -45001,8 +45568,11 @@ SELECT DISTINCT - 67 AS col0, 14 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3143 # Datafusion - Expected - -816 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(61\)\)\) \* Int64\(50\) \- \(\- min\(\(\- Int64\(93\)\)\)\) 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 II valuesort SELECT + MAX ( - + 61 ) * + 50 - + ( - MIN ( ALL - ( 93 ) ) ) AS col1, - 17 * 48 AS col1 +---- +-3143 +-816 query I rowsort label-8580 SELECT - 49 * + SUM ( ALL - + 31 ) + CAST ( NULL AS INTEGER ) AS col2 @@ -45305,8 +45875,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col0" at position 0 and "CAST\(NULL AS Float64\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT 1 AS col0, CAST ( NULL AS FLOAT8 ) * + COUNT ( * ) AS col0 +---- +1 +NULL query I rowsort label-8639 SELECT + 49 * + CAST ( 66 AS INTEGER ) col2 @@ -45357,8 +45930,11 @@ SELECT DISTINCT 37 / - 77 * + + 95 + + + 60 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 194560 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-38\) \* Int64\(\-80\) \* Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col2, - 38 * - 80 * + + 64 AS col2 +---- +1 +194560 query I rowsort label-8649 SELECT ALL 24 / - 89 + + + 33 + 14 col2 @@ -45403,8 +45979,11 @@ SELECT + - MAX ( DISTINCT 86 ) * 56 * + 98 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 AS col2, 12 AS col2 +---- +-55 +12 query I rowsort SELECT + - 56 * + 22 + - ( + 18 ) + + 30 * + - 77 * - 93 AS col1 @@ -45675,8 +46254,11 @@ SELECT ALL + - ( 84 ) + - + MIN ( DISTINCT + 87 ) * + + 85 - 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -7875 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col2" at position 0 and "nullif\(Int64\(\-35\), CASE Int64\(34\) WHEN Int64\(\-92\) \+ CAST\(NULL AS Float64\) THEN Int64\(42\) ELSE \(\- \(\- min\(Int64\(42\)\)\)\) END \* Int64\(62\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) / \(\- max\(Int64\(42\)\)\)\) \* Int64\(9\) \* Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT CAST ( NULL AS FLOAT8 ) AS col2, + NULLIF ( - 35, CASE 34 WHEN - 92 + + CAST ( NULL AS FLOAT8 ) THEN 42 ELSE - - MIN ( 42 ) END * + 62 * - - CAST ( NULL AS INTEGER ) / - MAX ( 42 ) ) * + 9 * 25 AS col2 +---- +-7875 +NULL query I rowsort SELECT + 27 + 31 + - + 92 * + 43 col0 @@ -46111,8 +46693,11 @@ 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\(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\. +query IR valuesort SELECT 17 AS col1, CASE 62 WHEN 76 * + 3 + - 26 + + 38 + - SUM ( DISTINCT 37 ) * - 4 * + + COUNT ( * ) * + 51 + + 74 THEN - + AVG ( 70 ) END AS col1 +---- +17 +NULL query I rowsort label-8793 SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) @@ -46239,8 +46824,11 @@ SELECT ALL + + 29 * COUNT ( * ) * - 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 25 AS col1, + 37 AS col1 +---- +25 +37 query I rowsort SELECT ALL NULLIF ( - - 21, - - 8 ) AS col1 @@ -46329,8 +46917,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2409 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(86\)\) \* Int64\(\-28\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - + 86 ) * - 28 + COUNT ( * ) col2, - COUNT ( * ) AS col2 +---- +-1 +2409 query I rowsort SELECT DISTINCT + 38 * + NULLIF ( 16, - 94 ) + - + 55 * 32 @@ -46355,8 +46946,11 @@ SELECT ( + + 99 ) * + + COUNT ( * ) * 8 * + 54 * 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- Int64\(\-52\)\)\) AS col0" at position 0 and "Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( - - 52 ) AS col0, + 52 col0 +---- +52 +52 query I rowsort label-8839 SELECT COUNT ( * ) + - COUNT ( * ) - + 59 * + 33 AS col0 @@ -46813,8 +47407,12 @@ SELECT COUNT ( DISTINCT + 62 ) AS col2 # Datafusion - Expected - 57 # Datafusion - Expected - -17 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \- count\(Int64\(\-7\)\) AS col1" at position 1 and "Int64\(\-57\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 57, - 16 - + COUNT ( - 7 ) AS col1, ( - 57 ) AS col1 +---- +-17 +-57 +57 query II rowsort label-8928 SELECT NULLIF ( - 79, + MAX ( + + 80 ) ) - + - 19 AS col1, + SUM ( - 11 ) AS col2 @@ -46951,8 +47549,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * 28 AS col2, 50 / + 76 AS col2 +---- +-28 +0 query II rowsort label-8954 SELECT ALL + COUNT ( * ) / 72 AS col1, 8 * 87 * - 10 * + - 43 AS col2 @@ -47125,8 +47726,11 @@ SELECT ALL - + 26 * 35 - + 39 * + 79 - + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "Int64\(\-76\) \+ \(\- min\(\(\- nullif\(Int64\(65\), Int64\(40\) \* Int64\(35\)\)\)\)\) \+ Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 36 AS col1, - 76 + - MIN ( - NULLIF ( 65, 40 * 35 ) ) + + + 42 AS col1 +---- +31 +36 query I rowsort SELECT - 40 + - - ( + 57 ) + - 24 * 71 AS col0 @@ -47346,8 +47950,11 @@ SELECT - 91 * + 84 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col2" at position 0 and "CAST\(NULL AS Int32\) / \(\- Int64\(44\)\) \* sum\(Int64\(69\)\) / Int64\(21\) \+ Int64\(\-99\) \- \(\- Int64\(\-52\)\) \+ Int64\(56\) \+ Int64\(\-51\) \* count\(nullif\(Int64\(77\), \(\- CAST\(CAST\(NULL AS Int32\) AS Int32\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 29 AS col2, + CAST ( NULL AS INTEGER ) / - + 44 * + + SUM ( ALL 69 ) / + 21 + - 99 - - - 52 + 56 + - 51 * COUNT ( + NULLIF ( 77, + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) col2 +---- +29 +NULL query I rowsort SELECT ALL + 23 + + - 21 * 67 @@ -47947,8 +48554,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) * + 32 / 59 AS col0, 63 AS col0 +---- +0 +63 query I rowsort label-9146 SELECT + 95 / - 29 AS col1 @@ -48058,8 +48668,11 @@ SELECT 66 + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* min\(Int64\(27\)\) \* CASE Int64\(\-94\) WHEN Int64\(\-46\) THEN Int64\(76\) \* CAST\(NULL AS Float64\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(96\) WHEN Int64\(28\) \* nullif\(\(\- Int64\(76\)\), \(\- Int64\(\-20\)\)\) THEN NULL ELSE NULL END / Int64\(77\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort 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 +---- +1 +NULL query I rowsort label-9167 SELECT DISTINCT - COUNT ( * ) - + - 67 AS col0 @@ -48263,8 +48876,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 61 AS col1, ( + + 40 ) AS col1 +---- +-61 +40 query I rowsort label-9206 SELECT DISTINCT 90 * COUNT ( * ) @@ -48645,8 +49261,11 @@ SELECT ALL ( - NULLIF ( + - SUM ( DISTINCT 23 ), CAST ( CASE - + 80 WHEN - 78 TH # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 68 + + COUNT ( * ) AS col0, - 38 AS col0 +---- +-38 +-67 query II rowsort label-9278 SELECT ALL + 74 * + 45 AS col0, - COUNT ( * ) @@ -48730,8 +49349,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 736 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) \* \(\- Int64\(16\)\) AS col0" at position 0 and "Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 46 * - + 16 AS col0, + 37 AS col0 +---- +37 +736 query I rowsort SELECT + 13 * + 80 @@ -48843,8 +49465,11 @@ SELECT - 52 / COUNT ( * ) + + COALESCE ( - 6, - COUNT ( * ) + - + 42 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col1" at position 0 and "\(\- coalesce\(Int64\(\-99\), Int64\(18\), Int64\(25\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 57 AS col1, + ( - COALESCE ( - 99, + 18, + 25 ) ) AS col1 +---- +-57 +99 query I rowsort label-9315 SELECT - CAST ( NULL AS INTEGER ) * 17 AS col1 @@ -48948,8 +49573,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -123 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \+ Int64\(\-71\) AS col1" at position 0 and "min\(CAST\(\(\- nullif\(Int64\(63\), Int64\(88\)\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 52 ) + + ( - 71 ) AS col1, MIN ( CAST ( + - NULLIF ( 63, 88 ) AS INTEGER ) ) AS col1 +---- +-123 +-63 query I rowsort SELECT ( 2 ) + + 91 * + 47 @@ -49151,8 +49779,11 @@ SELECT + 86 * - 88 + - - 44, 96 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 19 AS col0, + 40 AS col0 +---- +19 +40 query I rowsort SELECT DISTINCT - 84 * 17 @@ -49278,8 +49909,12 @@ SELECT ALL + CASE 53 WHEN COALESCE ( + - 94, 95 ) + + COUNT ( * ) THEN NULL ELSE # Datafusion - Expected - 87 # Datafusion - Expected - 308 # 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 "Int64\(\-3\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 87 col1, + ( 22 ) * + 14 col2, - 3 AS col1 +---- +-3 +308 +87 query II rowsort label-9398 SELECT DISTINCT 39 AS col0, COALESCE ( - + ( 0 ), 37 * NULLIF ( - 29, COUNT ( * ) ) + 33 ) @@ -49306,8 +49941,11 @@ SELECT 75 * - 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col2" at position 0 and "Int64\(14\) \+ Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 98 AS col2, 14 + 54 AS col2 +---- +-98 +68 query I rowsort SELECT 56 + - ( + 37 ) @@ -51484,8 +52122,11 @@ SELECT ALL 89 * + 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 92 AS col0, + 36 AS col0 +---- +36 +92 query II rowsort SELECT DISTINCT 46 AS col0, + 25 * + 18 @@ -51507,8 +52148,11 @@ 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\(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\. +query II valuesort SELECT ALL + COALESCE ( + COUNT ( * ), + + 6 ) AS col2, + 63 col2 +---- +1 +63 query I rowsort label-9830 SELECT ALL + + 50 - - ( - 9 ) + - - 14 * + + NULLIF ( - 89, COUNT ( * ) * - - COUNT ( * ) * 84 - COUNT ( * ) ) @@ -51518,8 +52162,11 @@ SELECT ALL + + 50 - - ( - 9 ) + - - 14 * + + NULLIF ( - 89, COUNT ( * ) * - - CO # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 35 AS col2, CAST ( NULL AS INTEGER ) AS col2 +---- +-35 +NULL query I rowsort SELECT DISTINCT - NULLIF ( - 35, + 9 * - 7 ) @@ -51556,8 +52203,11 @@ SELECT ALL + 4 AS col1, COUNT ( * ) * - + 66 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \+ Int64\(21\) \+ Int64\(3\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 14 + 21 + + 3 AS col0, 66 AS col0 +---- +38 +66 query I rowsort label-9839 SELECT ALL - + 96 * + ( ( CAST ( NULL AS INTEGER ) ) ) + - 20 AS col0 @@ -51572,8 +52222,11 @@ SELECT DISTINCT - 90 * 23 # 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 Float64\) \* Int64\(54\) \+ Int64\(75\) \- Int64\(16\) \* Int64\(94\) \* Int64\(74\) AS col2" at position 0 and "Int64\(66\) / max\(Int64\(2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT CAST ( NULL AS FLOAT8 ) * + 54 + + + 75 - 16 * + 94 * + 74 AS col2, 66 / + MAX ( 2 ) AS col2 +---- +33 +NULL query I rowsort label-9842 SELECT - 72 / + COUNT ( 79 ) + 45 + - 50 AS col0 @@ -51608,8 +52261,11 @@ SELECT ALL 57 * 62 + 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(71\)\) AS col0" at position 0 and "Int64\(\-70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( ALL + 71 ) AS col0, - 70 AS col0 +---- +-70 +71 query I rowsort label-9849 SELECT 97 * - - 83 * CAST ( + - 21 AS INTEGER ) AS col1 @@ -51759,8 +52415,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) + - COALESCE ( + - 68, 33 ) AS col2, 52 AS col2 +---- +52 +67 query II rowsort label-9878 SELECT - + 83 * + 5 * - 47 + + COUNT ( * ) AS col1, - 70 @@ -51812,8 +52471,11 @@ SELECT DISTINCT + 14 + + - 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2263 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(\-87\)\)\) \* Int64\(26\) \- Int64\(88\) / Int64\(\-79\) AS col2" at position 0 and "nullif\(Int64\(38\), \(\- min\(Int64\(53\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MAX ( ALL - - 87 ) * 26 - 88 / - 79 col2, NULLIF ( 38, - MIN ( ALL 53 ) ) AS col2 +---- +2263 +38 query I rowsort label-9888 SELECT - 28 / + + 50 * 59 - + - 71 AS col1 @@ -52084,8 +52746,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 AS col2, + 0 col2 +---- +-82 +0 query I rowsort SELECT - ( - ( + 19 ) ) AS col2 diff --git a/data/sqlite/random/expr/slt_good_56.slt b/data/sqlite/random/expr/slt_good_56.slt index 6239de4..ad3d6cd 100644 --- a/data/sqlite/random/expr/slt_good_56.slt +++ b/data/sqlite/random/expr/slt_good_56.slt @@ -216,8 +216,11 @@ SELECT DISTINCT - + MAX ( ALL + ( 71 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3690 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "Int64\(90\) \* \(\- nullif\(Int64\(41\), min\(DISTINCT Int64\(84\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col1, + 90 * + - NULLIF ( 41, + MIN ( DISTINCT 84 ) ) col1 +---- +-3690 +NULL query I rowsort SELECT + 29 * - 56 * - + 16 col1 @@ -435,8 +438,11 @@ SELECT DISTINCT + 18 * + - 66 * + 59 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-93\)\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-75\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 93 AS col1, - CAST ( - 75 AS INTEGER ) AS col1 +---- +75 +93 query II rowsort label-77 SELECT + 97, + ( 60 ) / + - 67 AS col1 @@ -571,8 +577,11 @@ NULL # 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 col0" at position 0 and "Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 col0, 99 AS col0 +---- +47 +99 query II rowsort label-102 SELECT - CASE - - ( - 3 ) WHEN - 54 THEN - 72 ELSE NULL END / + + CAST ( NULL AS INTEGER ), - 27 AS col1 @@ -781,8 +790,11 @@ 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\(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\. +query II valuesort SELECT - ( + COUNT ( * ) ) + + - 62 AS col1, 20 col1 +---- +-63 +20 query I rowsort label-142 SELECT ALL 63 / 68 + - CAST ( - - 1 AS INTEGER ) + SUM ( - 13 ) AS col2 @@ -924,8 +936,11 @@ SELECT ALL - - 89 + - NULLIF ( + 87, - 7 ) + + ( - + 91 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-4\) AS Int32\) \- Int64\(95\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - 4 AS INTEGER ) - + 95 AS col1, 42 AS col1 +---- +-99 +42 query I rowsort SELECT 21 * + 51 @@ -1006,8 +1021,11 @@ SELECT ALL 95 / + 64 AS col1, + COUNT ( * ) + + 39 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(74\)\) AS col2" at position 0 and "Int64\(\-12\) \* Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + 74 ) AS col2, ( - 12 ) * + 7 AS col2 +---- +-74 +-84 query I rowsort label-184 SELECT ALL - COALESCE ( - COUNT ( * ), - ( 46 ) + + - 48, - ( + + 45 ) ) @@ -1317,8 +1335,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 85 * + ( SUM ( - 21 ) ) AS col1, ( 15 ) - + NULLIF ( - 6, + COUNT ( * ) ) + 25 AS col1 +---- +-1785 +46 query II rowsort label-243 SELECT - 48, + COUNT ( * ) AS col1 @@ -1441,8 +1462,11 @@ SELECT ALL + MAX ( DISTINCT - - 7 ) / 51 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(33\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - MAX ( DISTINCT + 33 ) AS col1, + COUNT ( * ) AS col1 +---- +-33 +1 query I rowsort label-267 SELECT ALL + 84 * + - CASE - + 31 WHEN + 98 THEN NULL WHEN 86 THEN + COUNT ( * ) * + CASE - 67 WHEN - 79 + - NULLIF ( - 79, - COUNT ( * ) ) - + + 18 + - 91 + 67 * CAST ( NULL AS INTEGER ) THEN NULL ELSE 37 * - + CASE + - SUM ( DISTINCT - 82 ) WHEN + 54 THEN NULL ELSE - ( + 32 ) * + 73 END / 53 END + 71 * + NULLIF ( + ( 99 ), - COALESCE ( MIN ( 35 ), - 3 * - 4, + 82 * - 52 ) * + 6 - + 63 ) END + - 94 @@ -1530,8 +1554,11 @@ SELECT 97, 37 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 0 and "Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + 11 ) AS col0, + 19 AS col0 +---- +11 +19 query I rowsort SELECT ALL ( - 62 ) AS col2 @@ -1642,8 +1669,11 @@ SELECT DISTINCT - 1 * - + ( + 42 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3339 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(63\)\) \* Int64\(53\) AS col2" at position 0 and "Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 63 * + 53 AS col2, 79 AS col2 +---- +-3339 +79 query I rowsort label-306 SELECT CAST ( - + 59 AS INTEGER ) * ( + - 18 ) AS col2 @@ -1737,8 +1767,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) +---- +-1 +-1 query I rowsort label-324 SELECT ALL - CASE + 1 WHEN 39 + + + 90 + + COUNT ( - + 45 ) - + COUNT ( * ) - - - 29 * + COUNT ( * ) * - 31 THEN - COUNT ( * ) + - 88 / - + 33 ELSE NULL END @@ -2619,8 +2652,11 @@ SELECT ALL + COUNT ( * ) * 67 + NULLIF ( - - 60, 57 + - 41 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-42\)\) AS col2" at position 0 and "sum\(\(\- Int64\(77\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 42 AS col2, SUM ( ALL - + 77 ) AS col2 +---- +-77 +42 query I rowsort label-492 SELECT DISTINCT + 74 - + 66 / MAX ( ( - ( ( 47 ) ) ) ) + + - 89 + - - 63 @@ -2674,8 +2710,11 @@ NULL # 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\(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\. +query II valuesort SELECT DISTINCT 32 / - + 85 * + 82 - + ( - - ( + + 27 ) ) AS col0, - 35 + COUNT ( * ) * - - 78 + - + COUNT ( * ) AS col0 +---- +-27 +42 query I rowsort SELECT - 44 + + 58 @@ -3158,8 +3197,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, + 40 AS col0 +---- +-1 +40 query I rowsort label-595 SELECT DISTINCT + COUNT ( * ) * + ( - + 10 ) + + NULLIF ( + + 54, + 2 ) @@ -3621,8 +3663,11 @@ SELECT - 49, - 49 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 76 -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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 AS col1, + 76 AS col1 +---- +76 +92 query I rowsort label-681 SELECT ALL + 2 + - NULLIF ( 61, + SUM ( DISTINCT - ( - + 89 ) ) ) @@ -3922,8 +3967,11 @@ SELECT ALL 61 * + - 66 * - CAST ( 64 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) / Int64\(49\) \+ Int64\(17\) AS col1" at position 0 and "CAST\(Int64\(\-45\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 / 49 + + 17 AS col1, CAST ( + + ( + - 45 ) AS INTEGER ) AS col1 +---- +-45 +17 query I rowsort label-740 SELECT ALL + - 89 * + - 63 - ( - CAST ( NULL AS INTEGER ) ) * + 43 * + ( + CAST ( + - CAST ( ( + 73 ) AS FLOAT8 ) AS INTEGER ) ) AS col2 @@ -4045,8 +4093,11 @@ 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\(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\. +query IR valuesort SELECT 73 col0, + 8 + - COALESCE ( + COUNT ( * ), - 81 + COUNT ( * ) ) - + CAST ( NULL AS FLOAT8 ) AS col0 +---- +73 +NULL query I rowsort label-764 SELECT + 99 - + COUNT ( * ) / + 49 AS col2 @@ -4587,8 +4638,11 @@ SELECT DISTINCT + 3 * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) / Int64\(71\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 91 / + 71 + + + COUNT ( * ) AS col2, - 54 AS col2 +---- +-54 +2 query I rowsort SELECT - 13 - - ( + 64 ) + - 70 + - ( ( - 91 ) ) AS col2 @@ -4598,8 +4652,11 @@ 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\(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\. +query II valuesort SELECT ALL 16 / + + CASE - COUNT ( * ) WHEN + + MIN ( ALL + 41 ) THEN + 96 * - ( - - ( - + ( 47 ) ) ) END + - 86 * + + ( + - 28 ) * - + 86 + - + 80 AS col0, - 19 AS col0 +---- +-19 +NULL query I rowsort label-870 SELECT - CAST ( 77 AS INTEGER ) * 94 + + - 24 - + 71 * + CASE + - SUM ( + 98 ) WHEN + COUNT ( * ) * + AVG ( ALL - - 63 ) + - + 76 * COUNT ( * ) + + - 11 THEN NULL ELSE - - 13 * + 71 END @@ -4710,8 +4767,11 @@ SELECT + + 51 * + 27 + + - 94, 84 AS col0 # 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 "Int64\(3\) AS col1" at position 0 and "Int64\(\-19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 3 AS col1, - 19 AS col1 +---- +-19 +3 query I rowsort label-891 SELECT - COALESCE ( - 1, + + COUNT ( * ) ) @@ -5283,8 +5343,11 @@ SELECT - 73, 51 + - ( + 59 ) * + 82 * ( + COUNT ( 51 ) ) + 89 / + 78 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - -6497 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(94\)\) AS col1" at position 0 and "Int64\(73\) \* Int64\(\-89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 94 AS col1, 73 * + - 89 AS col1 +---- +-6497 +-94 query I rowsort label-1000 SELECT DISTINCT - MAX ( ALL + 7 ) AS col2 @@ -5647,8 +5710,12 @@ SELECT ( - MAX ( ALL - 98 ) ) * + COUNT ( * ) AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 1 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-57\) WHEN Int64\(\-69\) THEN CASE Int64\(98\) WHEN sum\(Int64\(95\)\) \* Int64\(0\) \+ Int64\(20\) THEN NULL ELSE \(\- nullif\(Int64\(51\), Int64\(\-59\)\)\) END \+ Int64\(20\) END \* Int64\(\-38\) \+ Int64\(\-49\) AS col1" at position 0 and "\(\- Int64\(41\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT CASE - 57 WHEN + - 69 THEN CASE 98 WHEN + + SUM ( ALL + + 95 ) * - 0 + + 20 THEN NULL ELSE + - NULLIF ( 51, + - 59 ) END + + + ( + 20 ) END * + - 38 + + - 49 AS col1, + COUNT ( * ) AS col0, - + 41 AS col1 +---- +-41 +1 +NULL query I rowsort label-1070 SELECT ALL 24 + + 5 + - - COUNT ( ALL - 83 ) + - 16 @@ -5847,14 +5914,20 @@ SELECT - 94 * - MAX ( DISTINCT + + 64 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \+ Int64\(75\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 12 + + 75 AS col1, + 9 AS col1 +---- +87 +9 # 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\(1\)\) AS count\(\*\) \+ Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - + 17 ) AS col2, COUNT ( * ) + + 96 col2 +---- +-17 +97 query I rowsort label-1109 SELECT + 88 + + 32 * - 46 + + - 82 * SUM ( + 12 ) col0 @@ -5980,8 +6053,11 @@ SELECT DISTINCT + COUNT ( * ) * + 44 / + 14 - 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 1824 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CASE Int64\(95\) WHEN Int64\(\-39\) THEN Int64\(37\) WHEN Int64\(\-95\) \+ Int64\(18\) THEN NULL ELSE Int64\(4\) \+ Int64\(10\) END AS Int32\) AS col1" at position 0 and "Int64\(99\) \- Int64\(75\) \* \(\- Int64\(23\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( CASE + 95 WHEN + - 39 THEN 37 WHEN - 95 + + + 18 THEN NULL ELSE + 4 + 10 END AS INTEGER ) AS col1, 99 - 75 * - + 23 AS col1 +---- +14 +1824 query I rowsort SELECT DISTINCT - 88 * + - 32 @@ -6934,8 +7010,11 @@ SELECT 61 + + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 4 AS col2, + 23 AS col2 +---- +23 +4 query II rowsort label-1318 SELECT + COUNT ( * ) AS col2, COUNT ( * ) AS col1 @@ -7294,8 +7373,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 AS col2, COUNT ( * ) AS col2 +---- +1 +6 query I rowsort SELECT - 30 + - 18 @@ -7335,8 +7417,11 @@ 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\(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\. +query II valuesort SELECT ALL 5 * COUNT ( * ) / - 44 AS col1, 31 AS col1 +---- +0 +31 query I rowsort label-1396 SELECT + SUM ( ALL - 39 ) / + + 30 + + 35 + - + 14 + - COUNT ( * ) AS col1 @@ -7381,8 +7466,11 @@ SELECT CAST ( + 39 AS INTEGER ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3393 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(88\) \+ Int64\(\-39\) AS col2" at position 0 and "Int64\(\-91\) \* \(\- count\(Int64\(\-61\) \+ CAST\(Int64\(82\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 * 88 + - 39 AS col2, ( - 91 ) * - COUNT ( - 61 + + CAST ( 82 AS INTEGER ) ) AS col2 +---- +3393 +91 query I rowsort SELECT DISTINCT + + 62 AS col0 @@ -7494,8 +7582,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 AS col1, - COUNT ( * ) AS col1 +---- +-1 +-81 query I rowsort label-1426 SELECT 90 + CASE - - CASE + COUNT ( * ) WHEN COUNT ( * ) THEN NULL WHEN - - MAX ( ALL 26 ) THEN 33 END WHEN 22 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN - MIN ( 50 ) WHEN + COUNT ( * ) THEN NULL END @@ -7773,8 +7864,11 @@ SELECT - + 98 * - NULLIF ( + + 2, + 47 / COALESCE ( 15, - - ( 93 ) + 55 * - COUN # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -38146 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(0\)\) AS col1" at position 0 and "Int64\(8\) \* Int64\(\-58\) \* \(\- max\(DISTINCT Int64\(\-82\)\)\) \+ \(\- Int64\(98\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 0 ) AS col1, 8 * - 58 * - MAX ( DISTINCT - 82 ) + - + 98 AS col1 +---- +-38146 +0 query I rowsort label-1478 SELECT ALL + + CASE - 25 WHEN + - COALESCE ( 57, - - 33 * - 41 * - COUNT ( * ) * 36, COUNT ( * ) ) / + 7 THEN 19 / + 70 WHEN 39 THEN + COUNT ( * ) ELSE - 94 END AS col1 @@ -8717,8 +8811,11 @@ SELECT ALL - CAST ( - 82 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) / \(\- Int64\(\-45\)\) AS col1" at position 0 and "Int64\(\-52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 / - ( - 45 ) col1, - 52 AS col1 +---- +-52 +0 query I rowsort SELECT - 51 * - 24 - 35 + + 64 col0 @@ -8770,8 +8867,11 @@ SELECT ALL 86 * 13 * + + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "Int64\(47\) \+ Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 15 AS col2, 47 + 55 AS col2 +---- +102 +15 query I rowsort label-1669 SELECT MAX ( ALL 40 ) * 96 col1 @@ -9141,14 +9241,20 @@ SELECT ALL - 56 * + 96 * + 95 + - + 46 - 5 + COUNT ( DISTINCT - 68 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(67\), Int64\(\-7\) \+ Int64\(\-27\) \+ Int64\(\-58\)\) AS col0" at position 0 and "Int64\(69\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( + 67, - 7 + + - 27 + - 58 ) AS col0, + ( + 69 ) / + COUNT ( * ) AS col0 +---- +67 +69 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69390 # Datafusion - Expected - -553 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* Int64\(90\) \+ \(\- Int64\(87\)\) \* Int64\(10\) \* Int64\(87\) AS col1" at position 0 and "Int64\(21\) \* \(\- Int64\(27\)\) \+ Int64\(\-22\) \+ Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 * + 90 + - + 87 * 10 * 87 AS col1, 21 * - + 27 + - 22 + + 36 col1 +---- +-553 +-69390 query II rowsort SELECT - - 78 + - + 75 * 72, 55 AS col0 @@ -9244,8 +9350,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) + + 50 AS col2, 52 AS col2 +---- +51 +52 query I rowsort label-1758 SELECT ALL 10 * - CASE - 52 WHEN + 63 + - 18 + 33 THEN - + ( COUNT ( * ) ) WHEN - 55 THEN + 27 END AS col0 @@ -9319,8 +9428,11 @@ SELECT ALL 99 - + + 55 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-8\)\) AS col0" at position 0 and "Int64\(2\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 8 AS col0, 2 * - CAST ( NULL AS INTEGER ) col0 +---- +8 +NULL query I rowsort SELECT COALESCE ( - 10, + 98 * + 68 * + 5 * + 86 ) @@ -9555,8 +9667,11 @@ 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\(Int64\(1\)\) AS count\(\*\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 95 col1, CASE - + 98 WHEN - 30 + + + 15 THEN + COUNT ( * ) END AS col1 +---- +95 +NULL query I rowsort SELECT 68 + - 64 - + 3 AS col2 @@ -9962,8 +10077,11 @@ SELECT 45 - - 27 # 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 col0" at position 0 and "Int64\(\-6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 47 AS col0, - 6 AS col0 +---- +-47 +-6 query II rowsort SELECT ALL 59, - CASE - 55 WHEN + + 65 THEN NULL WHEN - 14 THEN NULL WHEN - + 71 THEN NULL ELSE - 19 + + ( 88 ) END AS col2 @@ -10039,8 +10157,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 AS col0, - COUNT ( * ) * + 47 AS col0 +---- +-47 +76 query I rowsort label-1909 SELECT + 68 / + - 10 + - + 10 + + + NULLIF ( - 80, + 65 / + 51 ) + + 65 * 57 @@ -10117,8 +10238,11 @@ SELECT - 42 * SUM ( ALL 19 ) - + + 59 * - ( - + COUNT ( * ) ) AS col0, NULLIF ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 AS col1, - 58 AS col1 +---- +-58 +19 query III rowsort SELECT + 94 AS col2, + 21 col0, 97 @@ -10203,8 +10327,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1868 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(84\) AS Int32\)\) \+ \(\- count\(Int64\(76\)\)\) \- Int64\(93\) \* Int64\(\-21\) AS col2" at position 0 and "Int64\(\-42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( + 84 AS INTEGER ) + - COUNT ( 76 ) - + 93 * - 21 AS col2, - 42 AS col2 +---- +-42 +1868 query I rowsort label-1940 SELECT DISTINCT + 15 / + ( MIN ( + 10 ) ) AS col1 @@ -10723,8 +10850,11 @@ SELECT DISTINCT - COALESCE ( - - 42, + - NULLIF ( + 40, + 42 * + 93 / + + 65 * + # Datafusion - Datafusion expected results: # Datafusion - Expected - -1942 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(37\)\) \* Int64\(52\) \- Int64\(18\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 37 * 52 - 18 * + COUNT ( * ) AS col0, - COUNT ( * ) AS col0 +---- +-1 +-1942 query II rowsort label-2036 SELECT + MAX ( ALL - - 3 ) + + SUM ( 16 ), 44 AS col0 @@ -11112,8 +11242,11 @@ SELECT - - 23 * + + 56 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 76 col1, + 14 AS col1 +---- +14 +76 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -11952,8 +12085,11 @@ SELECT ALL + 65 * ( + 52 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \+ Int64\(93\) \- Int64\(79\) \* CAST\(NULL AS Int32\) \* \(\- \(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "\(\- nullif\(Int64\(65\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 9 + 93 - + 79 * + + CAST ( NULL AS INTEGER ) * - ( - - CAST ( NULL AS INTEGER ) ) AS col1, - NULLIF ( ( + 65 ), - + COUNT ( * ) ) AS col1 +---- +-65 +NULL query I rowsort label-2268 SELECT ALL - CAST ( NULL AS INTEGER ) * - - 11 * - 64 @@ -12353,8 +12489,11 @@ SELECT DISTINCT COALESCE ( + - MAX ( 94 ), + 20 + - 12 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 29 AS col0, 55 AS col0 +---- +-29 +55 query I rowsort label-2344 SELECT ALL - + 7 / + 44 AS col0 @@ -12715,8 +12854,11 @@ SELECT ALL - - COALESCE ( - - COUNT ( * ), 10 - + 62 ) 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 "CAST\(NULL AS Float64\) \* Int64\(\-46\) \+ Int64\(\-98\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT CAST ( NULL AS FLOAT8 ) * + - 46 + - 98 AS col1, 97 col1 +---- +97 +NULL query I rowsort label-2413 SELECT ALL + - COUNT ( * ) * - - 35 @@ -13414,8 +13556,11 @@ SELECT DISTINCT + 39 + + 19 * - ( + 76 ) * + 65 * - ( 54 ) * - 91 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5092 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) \* Int64\(76\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 67 * 76 AS col2, 60 col2 +---- +-5092 +60 query I rowsort label-2546 SELECT 80 + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + CAST ( + COUNT ( * ) AS INTEGER ) + 46 AS col1 @@ -13947,8 +14092,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( DISTINCT - 59 ) + + - ( 49 ) * - COUNT ( * ) AS col0, + 64 AS col0 +---- +50 +64 query I rowsort label-2647 SELECT ALL - CAST ( + 49 AS INTEGER ) @@ -14071,8 +14219,11 @@ SELECT ALL - CAST ( 50 AS INTEGER ) # 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 col2" at position 0 and "Int64\(\-50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 AS col2, - 50 AS col2 +---- +-50 +21 query I rowsort SELECT 16 * 92 @@ -14484,8 +14635,11 @@ 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\(1\)\) AS count\(\*\) \+ \(\- Int64\(20\)\) / \(\- Int64\(54\)\) \* Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 69 + ( + 66 ) AS col1, COUNT ( * ) + - + 20 / - + 54 * + 45 AS col1 +---- +1 +135 query I rowsort label-2750 SELECT - + 37 - - + CAST ( NULL AS INTEGER ) * - + COUNT ( DISTINCT - 46 ) @@ -14592,8 +14746,11 @@ SELECT DISTINCT - 25 / - + COUNT ( * ) + 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 26 AS col0, 18 AS col0 +---- +18 +26 query II rowsort label-2771 SELECT DISTINCT + 67, - MAX ( ALL 30 ) / + 46 AS col2 @@ -14897,8 +15054,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(5\) \* Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( ALL + 77 ) + 38 col0, - COUNT ( * ) * 5 * + 7 AS col0 +---- +-35 +115 query I rowsort SELECT DISTINCT 34 + - 14 * - 87 * - + 12 + + - 33 AS col0 @@ -14986,8 +15146,11 @@ SELECT ALL - COUNT ( * ) * 96 - + 19 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col0" at position 0 and "Int64\(89\) \+ Int64\(\-71\) / Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 50 AS col0, 89 + - 71 / + 65 AS col0 +---- +-50 +88 query I rowsort label-2844 SELECT - NULLIF ( CASE - + NULLIF ( 18, - - ( + + CAST ( - - 28 AS INTEGER ) ) ) WHEN 60 THEN - + COUNT ( * ) ELSE - 79 * COUNT ( * ) * + 80 END, - ( 50 ) ) @@ -15757,8 +15920,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 9 col0, + ( COUNT ( * ) ) + 39 AS col0 +---- +40 +9 query I rowsort SELECT DISTINCT + ( ( - + 89 ) ) AS col2 @@ -17496,8 +17662,11 @@ SELECT ALL 74 * - - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "sum\(Int64\(89\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 2 AS col0, + SUM ( + 89 ) AS col0 +---- +2 +89 query I rowsort SELECT + 45 + - 78 AS col2 @@ -18394,8 +18563,11 @@ SELECT DISTINCT COALESCE ( - - 98, + - 42 * + - 71 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 98 AS col1, + COUNT ( * ) AS col1 +---- +1 +98 query I rowsort label-3501 SELECT - SUM ( DISTINCT + + 57 ) + - 4 + - 76 @@ -18789,8 +18961,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * + - 41 + 81 AS col0, ( 57 ) AS col0 +---- +40 +57 query I rowsort SELECT - 12 * 91 @@ -18905,8 +19080,11 @@ SELECT + 67 * - 63 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - -84180 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "count\(DISTINCT \(\- Int64\(\-27\)\)\) / Int64\(\-81\) \+ Int64\(\-92\) \* Int64\(15\) \* \(\- max\(Int64\(\-61\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 59 AS col0, COUNT ( DISTINCT - - 27 ) / - 81 + - 92 * 15 * - ( + + MAX ( ( + - 61 ) ) ) col0 +---- +-84180 +59 query I rowsort label-3599 SELECT - 38 + + MAX ( + 57 ) AS col2 @@ -19001,8 +19179,11 @@ SELECT + - ( + - ( 16 ) ) / COUNT ( * ) + + ( + COALESCE ( + - 88, + + 33 / - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 71 AS col2, + ( + 38 ) AS col2 +---- +38 +71 query II rowsort SELECT + + 26 + 53 + - - ( 35 ), - 29 AS col2 @@ -19421,8 +19602,11 @@ SELECT 60 * + 71 * + + 82 + - + 7 + + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3468 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* Int64\(51\) AS col0" at position 0 and "Int64\(39\) \+ Int64\(52\) \- Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 68 * + + 51 AS col0, 39 + 52 - 64 AS col0 +---- +27 +3468 query I rowsort label-3697 SELECT + 97 / - 10 @@ -19452,8 +19636,11 @@ SELECT DISTINCT 8 * - 53 * - - 6 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1425 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* \(\- Int64\(57\)\) AS col1" at position 0 and "Int64\(67\) \* count\(Int64\(\-96\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 25 * - + 57 AS col1, 67 * + COUNT ( ALL - 96 ) AS col1 +---- +-1425 +67 query I rowsort label-3703 SELECT + ( - COUNT ( * ) ) * - 49 AS col2 @@ -19826,8 +20013,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "Int64\(22\) \* \(\- CAST\(NULL AS Int32\)\) \+ \(\- Int64\(\-82\)\) / Int64\(61\) \* Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 AS col0, 22 * - CAST ( NULL AS INTEGER ) + - - 82 / + 61 * + 76 AS col0 +---- +53 +NULL query II rowsort SELECT + 7 AS col0, - 8 AS col1 @@ -19899,8 +20089,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 95 AS col1, COUNT ( * ) * - COUNT ( * ) + - + 45 + + + 70 AS col1 +---- +24 +95 query II rowsort SELECT DISTINCT + 32 col0, + 77 col1 @@ -19918,8 +20111,12 @@ 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\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 23, - 38 + - 91 * 96 AS col0, - COALESCE ( ( - 96 ), - 18 + - - 16, COUNT ( * ) + - COUNT ( * ) ) AS col0 +---- +-8774 +23 +96 query I rowsort SELECT + COALESCE ( + 46, + 39, - - 25 ) @@ -20082,8 +20279,11 @@ SELECT COUNT ( * ) + + 93 + + 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6689800 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(83\)\) \* Int64\(50\) \* \(\- Int64\(\-26\)\) \* count\(Int64\(96\)\) \* \(\- Int64\(62\)\) AS col1" at position 0 and "Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 83 * 50 * - - 26 * + ( COUNT ( + 96 ) ) * ( - + 62 ) AS col1, - 27 AS col1 +---- +-27 +6689800 query I rowsort SELECT - 98 - + + 36 + 60 * - 43 AS col2 @@ -20134,8 +20334,12 @@ SELECT - MAX ( ALL - - 65 ) AS col1 # Datafusion - Expected - 0 # Datafusion - Expected - 17 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-40\)\) / Int64\(48\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - 40 / 48 AS col0, 17 AS col0, 87 AS col0 +---- +0 +17 +87 query I rowsort label-3833 SELECT ALL 72 + + COUNT ( * ) - 79 @@ -20204,8 +20408,11 @@ SELECT + ( - 27 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col1" at position 0 and "coalesce\(Int64\(15\), count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-84\) \* \(\- Int64\(10\)\) \+ \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 56 AS col1, COALESCE ( 15, + + COUNT ( * ) / + - 84 * - + 10 + - + CAST ( NULL AS INTEGER ) ) AS col1 +---- +15 +56 query II rowsort label-3846 SELECT ALL COUNT ( * ) * - MIN ( DISTINCT + + 59 ) AS col2, - COUNT ( + 11 ) + + 84 col1 @@ -20299,8 +20506,11 @@ SELECT DISTINCT 88 / - 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "coalesce\(Int64\(44\), Int64\(\-97\) \+ Int64\(72\) \- Int64\(\-53\) \+ Int64\(96\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 13 AS col2, COALESCE ( + 44, - 97 + + 72 - - 53 + + + 96 ) AS col2 +---- +13 +44 query I rowsort SELECT ALL + - 38 + - 81 @@ -21059,8 +21269,12 @@ SELECT 75 * 93 / COUNT ( * ) - + + 97 AS col1 # Datafusion - Expected - 3 # Datafusion - Expected - -31 # Datafusion - Expected - 574 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(95\)\) / Int64\(\-26\) AS col1" at position 0 and "count\(Int64\(34\)\) \+ Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + 95 / - 26 AS col1, COUNT ( + 34 ) + - 32 AS col1, 14 * + 41 AS col0 +---- +-31 +3 +574 query I rowsort SELECT + 56 * - - 84 @@ -21243,8 +21457,11 @@ SELECT ALL - + 85 - 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 162 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col0" at position 0 and "Int64\(\-85\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \+ \(\- Int64\(\-77\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 16 col0, - 85 * CAST ( - COUNT ( * ) AS INTEGER ) + - - 77 col0 +---- +-16 +162 query I rowsort SELECT 12 * + 56 - + 13 + NULLIF ( ( + 80 ), - - 66 ) @@ -22086,8 +22303,11 @@ SELECT ALL - NULLIF ( - 35, - 76 + - 22 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 60 AS col0, COUNT ( * ) AS col0 +---- +1 +60 query I rowsort label-4199 SELECT 44 + + COUNT ( ALL 65 ) col0 @@ -22129,8 +22349,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - -1601 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(\-78\) \- \(\- \(\- Int64\(96\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(89\)\) \* nullif\(Int64\(18\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(47\) \- \(\- CASE \(\- \(\- avg\(DISTINCT CAST\(Int64\(99\) AS Int32\)\)\)\) WHEN Int64\(84\) THEN Int64\(40\) END\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-1601 +-99 query I rowsort label-4207 SELECT ALL + 78 * - + COUNT ( * ) AS col0 @@ -22267,8 +22490,11 @@ SELECT - ( 60 ) + - + 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 40545 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(80\), Int64\(97\) \* Int64\(52\) / Int64\(\-72\)\) AS col1" at position 0 and "Int64\(53\) \* Int64\(85\) \* Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( + 80, + 97 * + + 52 / - 72 ) AS col1, 53 * 85 * + + 9 AS col1 +---- +40545 +80 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -22739,8 +22965,12 @@ SELECT DISTINCT - 1 col1, + ( 14 ) / + MAX ( ALL 94 ) + + 66 AS col2 # Datafusion - Expected - 0 # Datafusion - Expected - -97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) / \(\- Int64\(73\)\) AS col0" at position 0 and "Int64\(62\) \* Int64\(1\) \* \(\- count\(Int64\(9\)\)\) \- Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 4 / - + 73 AS col0, + 62 * + 1 * - COUNT ( 9 ) - + 35 col0, - 4 * + 68 * CASE + + ( 76 ) WHEN 70 THEN + COUNT ( * ) WHEN - 37 * - 49 + - 48 / - 5 + - 41 THEN NULL END + + COUNT ( * ) AS col0 +---- +-97 +0 +NULL query I rowsort label-4323 SELECT DISTINCT MAX ( - 62 ) / - + 68 * 37 - - 95 AS col1 @@ -22953,8 +23183,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) + + + 31 + + 43 AS col0, + 35 + - NULLIF ( 0, 73 * 87 ) AS col0 +---- +35 +75 query I rowsort SELECT ALL - 78 + + + 9 AS col2 @@ -23585,8 +23818,11 @@ SELECT ALL + 86 + - 24 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - -142830 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col0" at position 0 and "Int64\(\-69\) \* Int64\(30\) \* Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 36 AS col0, - 69 * + 30 * ( + 69 ) AS col0 +---- +-142830 +-36 query I rowsort SELECT - - 31 + 58 AS col1 @@ -23705,8 +23941,11 @@ 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\(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\. +query II valuesort SELECT ALL - 90 + - + COUNT ( * ) AS col0, COUNT ( * ) + - 45 AS col0 +---- +-44 +-91 query I rowsort SELECT ALL 40 * - 30 * - + 65 * 8 AS col1 @@ -24087,8 +24326,11 @@ 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\(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\. +query II valuesort SELECT - 15 + + + COUNT ( * ) * + - 46 * + 77 AS col0, + 77 AS col0 +---- +-3557 +77 query I rowsort label-4581 SELECT - 24 * + ( 28 ) * - + COUNT ( * ) AS col0 @@ -24924,8 +25166,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - -8245 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) \* Int64\(49\) AS col1" at position 0 and "sum\(DISTINCT Int64\(\-97\)\) \* Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 1 * + 49 col1, SUM ( DISTINCT - 97 ) * 85 AS col1 +---- +-49 +-8245 query I rowsort label-4746 SELECT ALL + COUNT ( * ) + 57 * 74 AS col1 @@ -24991,8 +25236,11 @@ SELECT DISTINCT - ( + COUNT ( * ) ) * + 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(63\) AS col1" at position 0 and "\(\- Int64\(10\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) * 63 AS col1, - ( 10 ) AS col1 +---- +-10 +NULL query I rowsort label-4759 SELECT DISTINCT + + 94 / - 3 @@ -25311,8 +25559,11 @@ SELECT ALL - 14 * - COALESCE ( + 69, - + 43 ) AS col0 # 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 "Int64\(\-3\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 AS col2, 48 AS col2 +---- +-3 +48 query I rowsort SELECT ALL - 42 + + - 97 @@ -25866,8 +26117,11 @@ SELECT ALL + 16 + + + 78 * 22 + - 19 AS col1, - 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 125 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ \(\- \(\- max\(Int64\(1\)\)\)\) \* Int64\(68\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 57 + - - MAX ( 1 ) * + + 68 AS col1, COUNT ( * ) AS col1 +---- +1 +125 query I rowsort label-4926 SELECT DISTINCT - CASE + 49 WHEN + + COUNT ( * ) * CAST ( - + 1 AS INTEGER ) + 64 + + 78 THEN 42 + + - 12 - COUNT ( - 55 + + 10 * 65 ) WHEN + 72 THEN NULL WHEN 28 + 52 THEN - CASE 58 WHEN - 38 * + 91 THEN NULL WHEN - 66 * 1 THEN 47 WHEN + 15 - - 6 THEN NULL ELSE NULL END ELSE + 6 * + 11 END + 96 @@ -26025,8 +26279,12 @@ 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\(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\. +query III valuesort 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 +---- +-1 +0 +1 query II rowsort label-4956 SELECT ALL + 80 + - + 69 + COUNT ( * ), 46 AS col2 @@ -26093,8 +26351,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 53 col2, + COUNT ( * ) * 83 col2 +---- +53 +83 query I rowsort SELECT 71 + - 67 @@ -26151,8 +26412,11 @@ 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\(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\. +query II valuesort SELECT - COALESCE ( - 76, + COUNT ( * ) * + 14 - + + 1 + 43 ) AS col1, + 66 AS col1 +---- +66 +76 query I rowsort label-4979 SELECT + COUNT ( * ) - - 32 AS col0 @@ -26188,8 +26452,11 @@ SELECT ALL + - 26 * - 67 + + 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 1970 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \- Int64\(\-89\) AS col1" at position 0 and "Int64\(74\) \+ Int64\(24\) \* Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 27 - - 89 AS col1, + 74 + + 24 * + + 79 AS col1 +---- +1970 +62 query I rowsort SELECT ALL - ( - - 60 ) * - 18 @@ -26249,8 +26516,12 @@ SELECT ALL + 14, - 51 AS col2 # Datafusion - Expected - 1 # Datafusion - Expected - -105300 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(45\) \* Int64\(39\) \* Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + + COUNT ( * ) col1, + 45 * 39 * - 60 col1, - - 38 AS col1 +---- +-105300 +1 +38 query I rowsort label-4997 SELECT - 57 + + 38 + + + ( - CAST ( + 73 AS INTEGER ) ) AS col1 @@ -26442,8 +26713,12 @@ SELECT - 90 / - 48 - - 57 # Datafusion - Expected - -7346 # Datafusion - Expected - 17 # Datafusion - Expected - -132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 1 and "\(\- Int64\(65\)\) \+ Int64\(\-67\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 93 * - 79 + - - COUNT ( * ), 17 AS col2, + ( - ( + ( + 65 ) ) ) + + - 67 / + COUNT ( * ) AS col2 +---- +-132 +-7346 +17 query I rowsort SELECT ALL NULLIF ( + 23, + - 45 ) AS col2 @@ -26645,8 +26920,11 @@ SELECT ALL 55 + - MIN ( 73 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ \(\- CAST\(NULL AS Int32\)\) \* CAST\(NULL AS Int32\) \* \(\- Int64\(\-90\)\) AS col0" at position 0 and "Int64\(67\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 + - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * - - 90 AS col0, + 67 * - COUNT ( * ) AS col0 +---- +-67 +NULL query I rowsort SELECT ALL 7 + - 92 AS col1 @@ -26964,8 +27242,11 @@ SELECT + COUNT ( * ) col1, 21 + + - ( + - 35 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 34 AS col0, 37 AS col0 +---- +34 +37 query I rowsort SELECT DISTINCT 17 * + 55 + - 18 @@ -27370,8 +27651,11 @@ SELECT 43 + - 34 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4284 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- Int64\(\-11\)\) AS col0" at position 0 and "\(\- nullif\(Int64\(84\), Int64\(41\) \- Int64\(51\)\)\) \* \(\- Int64\(51\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) * - ( - 11 ) AS col0, - ( + NULLIF ( + 84, + + 41 - 51 ) ) * - + 51 AS col0 +---- +4284 +NULL query I rowsort label-5209 SELECT CAST ( NULL AS INTEGER ) * 63 AS col2 @@ -27752,8 +28036,11 @@ SELECT - COUNT ( * ) + 15 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) / Int64\(\-77\) \+ Int64\(\-99\) AS col0" at position 0 and "sum\(DISTINCT Int64\(\-31\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 58 / + - 77 + - 99 AS col0, SUM ( DISTINCT - 31 ) AS col0 +---- +-31 +-99 query I rowsort label-5282 SELECT CAST ( ( - + 16 ) AS INTEGER ) @@ -27886,8 +28173,11 @@ SELECT - 83 * 75 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 6 AS col0, + 57 AS col0 +---- +-6 +57 query II rowsort SELECT ALL 8 AS col1, 59 AS col2 @@ -27985,8 +28275,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + 50 + - COUNT ( * ) AS col1, ( + + 71 ) * + + MAX ( DISTINCT - - 15 ) + + - ( - COUNT ( * ) ) AS col1 +---- +1066 +49 query II rowsort label-5325 SELECT ALL - COALESCE ( - 45, + 43 + - 53 + + 44 * 13 * + COUNT ( - 92 ) * - ( - 28 ) + 14, - + 78 ), NULLIF ( + 20, - 19 ) col1 @@ -28374,8 +28667,11 @@ SELECT - MIN ( DISTINCT - 56 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 141 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \- Int64\(51\) \+ Int64\(14\) \+ Int64\(72\) \+ \(\- \(\- Int64\(47\)\)\) \+ Int64\(\-3\) / CAST\(Int64\(67\) AS Int32\) \+ Int64\(\-2\) / CAST\(Int64\(81\) AS Int32\) \* Int64\(50\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(78\) \- \(\- Int64\(\-45\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 59 - 51 + 14 + 72 + - - ( 47 ) + - 3 / + CAST ( + 67 AS INTEGER ) + - 2 / + CAST ( + + 81 AS INTEGER ) * + 50 AS col2, CAST ( NULL AS INTEGER ) + + 78 - - - 45 AS col2 +---- +141 +NULL query I rowsort SELECT + 64 * - ( 2 ) * 17 @@ -28401,8 +28697,12 @@ SELECT ALL MAX ( DISTINCT - 75 ) AS col2 # Datafusion - Expected - 154 # Datafusion - Expected - -75 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \+ Int64\(92\) AS col1" at position 0 and "Int64\(15\) \+ Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + ( + + 62 ) + 92 AS col1, ( + 15 ) + - 90 AS col1, - + 66 AS col0 +---- +-66 +-75 +154 query I rowsort SELECT + 28 * + - 8 @@ -28684,8 +28984,11 @@ SELECT COUNT ( * ) * + 49 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 1058 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(71\) AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(24\) \* Int64\(54\) \+ Int64\(\-14\) \* Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + 71 AS INTEGER ) * + - COUNT ( * ) col0, 24 * + ( 54 ) + + ( + - 14 ) * 17 col0 +---- +-71 +1058 query I rowsort label-5456 SELECT 87 + + 63 * - + SUM ( - 17 ) @@ -29004,8 +29307,11 @@ SELECT + 34 * 24 + - - COALESCE ( - - 54, - 36 - MAX ( DISTINCT - 74 ) ) + + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 324 # Datafusion - Expected - 803 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \* Int64\(\-27\) AS col0" at position 0 and "Int64\(73\) \* Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 12 * - 27 AS col0, 73 * + 11 AS col0 +---- +324 +803 query I rowsort SELECT 41 * 95 + 85 @@ -29351,8 +29657,11 @@ SELECT ALL - 72 - + - 8 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1472 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) \* Int64\(\-46\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 32 * - 46 AS col2, 33 AS col2 +---- +1472 +33 query I rowsort label-5582 SELECT ALL MAX ( ALL + + 48 ) @@ -29721,8 +30030,11 @@ SELECT + 99 * + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(36\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) * - - COUNT ( * ) * 36 * COUNT ( * ) AS col1, 77 AS col1 +---- +-36 +77 query II rowsort label-5653 SELECT + 31 * 4 + 51 + + 32 + CAST ( - + 59 AS INTEGER ) AS col1, 61 * - 36 + - 66 @@ -29824,8 +30136,11 @@ SELECT DISTINCT 89 + - + 67, + 57 * + - COUNT ( * ) * + + 76 * - + ( COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) \- Int64\(\-64\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 29 - + - 64 AS col1, 64 AS col1 +---- +35 +64 query I rowsort label-5672 SELECT 22 * + + 9 * + + SUM ( ALL - 56 ) AS col2 @@ -30132,8 +30447,11 @@ SELECT - 11 * - + 30 * 63 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -671810 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \+ coalesce\(Int64\(24\), Int64\(\-3\)\) AS col2" at position 0 and "Int64\(34\) \+ Int64\(98\) \* CAST\(Int64\(77\) AS Int32\) \* Int64\(\-90\) \+ Int64\(96\) \* Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 + + COALESCE ( + 24, - 3 ) AS col2, 34 + + 98 * CAST ( 77 AS INTEGER ) * - 90 + + 96 * + 76 AS col2 +---- +-671810 +41 query II rowsort SELECT DISTINCT 22 + 11, 7 AS col0 @@ -30219,8 +30537,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + COALESCE ( + 15, + 32 * - + COUNT ( * ) ) AS col2, 35 AS col2 +---- +15 +35 query I rowsort label-5747 SELECT ALL - 51 * - 96 - - CAST ( + 7 AS INTEGER ) * MIN ( + - 47 ) * + 47 * COUNT ( * ) + + 55 @@ -30486,8 +30807,11 @@ SELECT ALL 85 AS col2, MAX ( + 39 ) # 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\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 91 col2, + 38 AS col2 +---- +38 +91 query II rowsort label-5797 SELECT ALL 43 AS col1, + 47 * + COALESCE ( + - MAX ( + - 90 ), + 42 ) + - 68 AS col0 @@ -30904,8 +31228,11 @@ SELECT + COUNT ( - 27 ) - + + 30 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 40 col1, 29 AS col1 +---- +29 +40 query I rowsort label-5875 SELECT + - 92 / - ( - 18 ) @@ -31427,8 +31754,12 @@ 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\(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\. +query III valuesort SELECT ALL + 92, + 1 * - ( - COUNT ( * ) ) * MAX ( ALL + - 46 ) - ( - + MAX ( ALL - 75 ) ) AS col2, - ( + NULLIF ( NULLIF ( - COUNT ( * ), 50 ), - 36 * - - 96 ) ) + - ( - 61 ) AS col2 +---- +-121 +62 +92 query I rowsort SELECT ALL 29 * 78 - 11 + + - 19 col0 @@ -31463,8 +31794,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 74 AS col2, ( - COUNT ( * ) ) + + 55 AS col2 +---- +54 +74 query I rowsort label-5982 SELECT DISTINCT 86 * - COUNT ( * ) * - + 76 + + 85 AS col1 @@ -31728,8 +32062,11 @@ SELECT ALL COUNT ( * ) * 87 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 AS col2, 77 col2 +---- +11 +77 query II rowsort label-6033 SELECT ALL 0 AS col2, 2 / - + 68 * - - 36 col1 @@ -31822,8 +32159,11 @@ SELECT ALL - NULLIF ( + + 19, + + 31 ) AS col2, 76 # 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 col0" at position 0 and "Int64\(\-87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 10 col0, - 87 AS col0 +---- +-87 +10 query I rowsort label-6050 SELECT ALL - CAST ( NULL AS INTEGER ) * + 14 col0 @@ -31849,8 +32189,11 @@ SELECT + 77 AS col1, 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \+ Int64\(\-95\) / \(\- count\(DISTINCT Int64\(84\)\)\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 16 + + - 95 / - COUNT ( DISTINCT 84 ) AS col0, 65 AS col0 +---- +65 +79 query I rowsort label-6055 SELECT - 85 - 84 * - SUM ( ALL + 97 ) AS col1 @@ -31965,8 +32308,11 @@ SELECT ( + - 41 ) + - 31 + - 78 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(18\) AS col1" at position 0 and "Int64\(\-49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 + + 18 AS col1, - 49 AS col1 +---- +-49 +18 query I rowsort SELECT 10 + - - 85 + - 62 @@ -32290,8 +32636,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(\-4\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 41 * + 18 AS col0, + ( + COUNT ( * ) ) * - - 4 AS col0 +---- +-738 +4 query I rowsort SELECT - 88 + + 88 AS col0 @@ -32647,8 +32996,11 @@ SELECT 94 + + 22 + 52 + - + 47 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col0" at position 0 and "CASE Int64\(83\) WHEN Int64\(40\) \+ \(\- Int64\(\-23\)\) \* max\(\(\- Int64\(\-85\)\)\) THEN Int64\(\-35\) WHEN \(\- Int64\(\-95\)\) THEN NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 36 AS col0, CASE 83 WHEN + 40 + - - 23 * MAX ( ALL - - 85 ) THEN + ( - 35 ) WHEN - - 95 THEN NULL END AS col0 +---- +-36 +NULL query I rowsort SELECT ALL 41 - 57 + 43 AS col1 @@ -32943,8 +33295,11 @@ SELECT ALL - ( 66 ) + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-8\)\)\) AS col1" at position 0 and "Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( - 8 ) AS col1, - 40 AS col1 +---- +-40 +8 query I rowsort SELECT - + 66 col0 @@ -34157,8 +34512,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col2" at position 0 and "Int64\(98\) \* Int64\(99\) \* Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 AS col2, 98 * + 99 * - 0 col2 +---- +0 +65 query II rowsort SELECT - 70 AS col1, 68 @@ -34437,8 +34795,11 @@ SELECT + COUNT ( - - 95 ) - - MIN ( + 71 ) * MAX ( - 78 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) / COUNT ( * ) col2, 23 AS col2 +---- +1 +23 query I rowsort label-6552 SELECT ALL - + COALESCE ( - 93, 48, + COALESCE ( COUNT ( * ), + 31, - CASE - 94 WHEN - 36 * 26 THEN 13 * CAST ( + 58 AS INTEGER ) + MAX ( 85 ) ELSE NULL END * - ( 73 ) ) ) @@ -34487,8 +34848,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4 AS col1, 76 AS col1 +---- +4 +76 query I rowsort SELECT ALL + 63 + + - 8 AS col0 @@ -34658,14 +35022,20 @@ SELECT 94 * 62 * 80 + - 46 * + - 57 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-24\)\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( - 24 ) AS col1, 11 col1 +---- +1 +11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(48\)\) AS col0" at position 0 and "Int64\(\-8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( 48 ) AS col0, - 8 col0 +---- +-8 +48 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -34982,8 +35352,11 @@ SELECT DISTINCT - 70 * - + 97 + - 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1151 # Datafusion - Expected - -4958 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-59\)\) \+ Int64\(14\) \* Int64\(78\) AS col2" at position 0 and "Int64\(67\) \* Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 59 + 14 * + + 78 AS col2, 67 * - 74 AS col2 +---- +-4958 +1151 query I rowsort SELECT ALL - + 12 + + 39 * - - 28 * - 51 AS col2 @@ -35033,8 +35406,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) / CAST\(NULL AS Int32\) \+ nullif\(Int64\(\-28\), Int64\(53\)\) \+ Int64\(43\) AS col1" at position 0 and "Int64\(96\) \+ Int64\(3\) \* count\(Int64\(75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 62 / CAST ( NULL AS INTEGER ) + + NULLIF ( + - 28, + 53 ) + + 43 AS col1, 96 + ( 3 ) * COUNT ( 75 ) AS col1 +---- +99 +NULL query I rowsort SELECT DISTINCT - 22 * - 9 col1 @@ -35462,8 +35838,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT ALL + 62 AS col1, - 63 AS col1 +---- +-63 +62 query I rowsort SELECT - 39 * 46 AS col1 @@ -36090,8 +36469,11 @@ SELECT ALL - 53 * - 75 * + 82 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-84\)\) AS col2" at position 0 and "Int64\(93\) / Int64\(\-58\) \+ Int64\(56\) \+ \(\- Int64\(63\)\) / Int64\(\-7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 84 AS col2, ( + 93 ) / + - 58 + 56 + - + 63 / - 7 AS col2 +---- +64 +84 query I rowsort label-6868 SELECT ALL - 4 * + 88 + + + ( 93 ) - - 10 * - - 63 * + COALESCE ( + 27, COUNT ( * ) * + COUNT ( * ) * 58 / + 40 ) + - - 51 * 32 * 31 * - - 75 AS col2 @@ -36873,8 +37255,11 @@ SELECT NULLIF ( + + 40, + ( - - 14 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 62 AS col1, - CAST ( NULL AS INTEGER ) * 78 AS col1 +---- +62 +NULL query I rowsort SELECT DISTINCT - 24 * + 16 @@ -37030,8 +37415,11 @@ SELECT + NULLIF ( - 59, ( + + 60 ) ) + + 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - -192 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "\(\- min\(Int64\(2\)\)\) \+ Int64\(\-61\) \+ min\(Int64\(\-59\)\) \+ \(\- Int64\(70\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 10 AS col2, - MIN ( 2 ) + - 61 + + ( MIN ( ALL - 59 ) ) + - ( + 70 ) AS col2 +---- +-192 +10 query II rowsort label-7046 SELECT - CAST ( NULL AS INTEGER ) AS col2, 91 col0 @@ -37254,8 +37642,11 @@ SELECT DISTINCT - MAX ( DISTINCT 81 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(82\)\) AS Int32\) \+ Int64\(45\) \* Int64\(2\) AS col2" at position 0 and "nullif\(Int64\(\-9\), \(\- Int64\(75\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( - + 82 AS INTEGER ) + + 45 * 2 AS col2, NULLIF ( - 9, - ( 75 ) ) AS col2 +---- +-9 +8 query I rowsort SELECT ALL 57 + + 13 AS col1 @@ -37584,8 +37975,11 @@ 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\(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\. +query II valuesort SELECT - 82 - 0 * - COUNT ( * ) * - + COUNT ( * ) * - + 56 + - MIN ( DISTINCT 16 ) + - 77 AS col0, 55 AS col0 +---- +-175 +55 query I rowsort label-7153 SELECT - CASE - 87 WHEN 49 * + 67 + + - 79 + 32 + + + 14 THEN - 67 - + NULLIF ( 83, - - 68 * - + MIN ( ALL + 34 ) * 14 * 23 / ( - 82 ) + - + 62 * + CAST ( 53 AS INTEGER ) ) * - 47 + + + ( + + COUNT ( * ) ) + - - 63 ELSE NULL END @@ -37793,8 +38187,11 @@ SELECT ALL + 86 * + ( COUNT ( ALL - NULLIF ( 26, + + 51 * + 47 + - CASE - + 12 W # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 115 -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\(25\)\) \- Int64\(\-63\) \- \(\- Int64\(\-44\)\) \+ Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 col0, COUNT ( + 25 ) - - 63 - - - 44 + 95 AS col0 +---- +115 +61 query I rowsort label-7192 SELECT DISTINCT 15 * + COUNT ( * ) * 25 AS col1 @@ -38166,8 +38563,11 @@ SELECT - 47 + 46 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col1" at position 0 and "Int64\(82\) \+ Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 AS col1, 82 + + 19 AS col1 +---- +101 +96 query I rowsort SELECT ALL 21 * CASE 26 WHEN + + 0 + 53 THEN NULL ELSE - 14 END col2 @@ -38213,8 +38613,11 @@ SELECT DISTINCT + SUM ( - + 80 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "\(\- max\(DISTINCT Int64\(\-82\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 AS col2, - MAX ( DISTINCT - 82 ) AS col2 +---- +76 +82 query I rowsort label-7272 SELECT - - COUNT ( * ) * + COUNT ( * ) + + 34 + - COUNT ( * ) AS col0 @@ -38657,8 +39060,11 @@ SELECT ALL 38 + 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 "Int64\(4\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4 AS col1, 44 AS col1 +---- +4 +44 query I rowsort SELECT DISTINCT 73 + ( + 84 ) AS col1 @@ -38747,8 +39153,11 @@ SELECT DISTINCT + - 21 - CAST ( - 8 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 1468 -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\(66\), Int64\(2\) / Int64\(62\), Int64\(30\)\)\)\) \* Int64\(21\) \+ Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 AS col1, ( - - COALESCE ( 66, 2 / + 62, 30 ) ) * + 21 + ( + ( + 82 ) ) AS col1 +---- +1468 +7 query I rowsort label-7372 SELECT - MIN ( + 82 ) - - 30 AS col0 @@ -38799,8 +39208,11 @@ SELECT ALL 37 * - - 15 + - ( + - 46 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -272 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \+ Int64\(\-70\) \* Int64\(4\) \- Int64\(\-34\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 26 ) + + - 70 * + + 4 - - 34 AS col2, + COUNT ( * ) col2 +---- +-272 +1 query I rowsort SELECT + 86 * + 51 @@ -39773,8 +40185,11 @@ SELECT DISTINCT - COUNT ( * ) / 2 * + - 49 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2419 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(25\), \(\- CAST\(NULL AS Int32\)\)\)\) \+ Int64\(\-38\) \* Int64\(63\) AS col2" at position 0 and "Int64\(\-58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COALESCE ( + 25, - CAST ( NULL AS INTEGER ) ) + - 38 * + 63 AS col2, - 58 AS col2 +---- +-2419 +-58 query I rowsort SELECT DISTINCT 50 * - ( + - 62 ) AS col0 @@ -40322,8 +40737,11 @@ SELECT ALL - 20 * - 9 + + 42 AS col2, - 95 * - 76 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(25\) \+ Int64\(40\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) * 25 + + 40 AS col0, 39 AS col0 +---- +39 +NULL query I rowsort label-7672 SELECT + NULLIF ( - - SUM ( 12 ), + 46 ) col0 @@ -40344,8 +40762,11 @@ 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\(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\. +query II valuesort 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 +---- +81 +NULL query I rowsort SELECT - 62 * - COALESCE ( - ( 21 ), 85 ) @@ -40447,8 +40868,11 @@ SELECT + COUNT ( DISTINCT 45 ) * + + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(39\) \+ CAST\(Int64\(90\) AS Int32\) \- Int64\(88\) \* Int64\(14\) \+ \(\- Int64\(\-69\)\) \* Int64\(49\) \- Int64\(73\) \+ CAST\(NULL AS Int32\) \+ Int64\(29\) \+ coalesce\(\(\- Int64\(99\)\), Int64\(46\), Int64\(59\) \* Int64\(61\) \+ Int64\(80\) \* count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(\-2\)\)\) \* Int64\(79\) AS col0" at position 0 and "\(\- Int64\(\-20\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +20 +NULL query I rowsort label-7696 SELECT SUM ( + 94 ) + - - 24 + - ( + - CAST ( COUNT ( * ) AS INTEGER ) ) AS col1 @@ -40516,8 +40940,11 @@ SELECT 37, 70 * - 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col2" at position 0 and "\(\- min\(Int64\(11\)\)\) \- \(\- Int64\(5\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 84 AS col2, - MIN ( + 11 ) - + - ( 5 ) AS col2 +---- +-6 +-84 query II rowsort SELECT 23 * - - 3 AS col2, - 90 * + ( NULLIF ( 58, + 5 ) ) @@ -41088,8 +41515,11 @@ SELECT DISTINCT + 12 * - 82 + 70 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(17\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) * + 17 col0, 81 AS col0 +---- +81 +NULL query I rowsort label-7816 SELECT - MIN ( ALL + + ( - - 38 ) ) @@ -41401,8 +41831,11 @@ SELECT 77 * - - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 39 AS col1, 97 AS col1 +---- +-39 +97 query I rowsort label-7875 SELECT ALL 44 + - + COUNT ( * ) @@ -41589,8 +42022,11 @@ SELECT DISTINCT + + ( 8 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 0 * - COUNT ( * ) * COUNT ( * ) AS col1, 68 AS col1 +---- +0 +68 query I rowsort label-7911 SELECT ALL + 70 * MIN ( - + 59 ) @@ -43212,8 +43648,11 @@ SELECT DISTINCT 51 + - - 64 - + NULLIF ( 19, - COUNT ( * ) * + COUNT ( * ) + - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - 2387 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col2" at position 0 and "Int64\(31\) \* Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 85 AS col2, 31 * 77 AS col2 +---- +-85 +2387 query I rowsort SELECT DISTINCT + 4 + + 0 @@ -43302,8 +43741,11 @@ SELECT 11 * 21 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2944 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \* Int64\(64\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 * 64 AS col2, + 89 AS col2 +---- +2944 +89 query I rowsort label-8241 SELECT ALL 44 / 48 col1 @@ -43817,8 +44259,11 @@ SELECT 20 + + MAX ( ALL + 99 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "CAST\(CAST\(Int64\(\-34\) AS Int32\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 65 AS col0, CAST ( CAST ( - 34 AS INTEGER ) AS INTEGER ) AS col0 +---- +-34 +65 query I rowsort label-8341 SELECT - CAST ( NULL AS INTEGER ) * + COALESCE ( - 24, - 69, - 79, - - COUNT ( * ) * 14 ) + + 3 + + 14 @@ -43987,8 +44432,11 @@ SELECT ALL 92 / - 22 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - -122 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col1" at position 0 and "Int64\(\-48\) \- Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 68 AS col1, - 48 - 74 AS col1 +---- +-122 +-68 query I rowsort SELECT ALL + 16 + 38 @@ -44202,8 +44650,11 @@ SELECT DISTINCT - ( - 78 ) * - ( COUNT ( * ) ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(20\)\) \- Int64\(35\) AS col1" at position 0 and "Int64\(\-15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( + 20 ) - + 35 AS col1, - 15 col1 +---- +-15 +-34 query I rowsort label-8413 SELECT 57 * + COUNT ( * ) * ( + MIN ( 63 ) ) + + COUNT ( * ) / + - COUNT ( * ) @@ -44466,8 +44917,11 @@ SELECT DISTINCT - 66 + - 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - -127 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(\-38\) \+ Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 47 AS col2, - 38 + + - 89 AS col2 +---- +-127 +47 query I rowsort label-8465 SELECT DISTINCT 53 + CASE - + 38 WHEN - 84 / 54 * - 48 THEN NULL WHEN + 53 * + MAX ( + 71 ) THEN + 73 END + - 45 AS col1 @@ -44570,8 +45024,11 @@ SELECT DISTINCT NULLIF ( + + 57, 97 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) \+ \(\- Int64\(\-12\)\) AS col0" at position 0 and "min\(DISTINCT Int64\(\-46\)\) \+ Int64\(\-7\) / Int64\(\-55\) \* Int64\(61\) \+ \(\- Int64\(\-25\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 38 + - - 12 AS col0, MIN ( DISTINCT - 46 ) + - 7 / - 55 * 61 + - - 25 AS col0 +---- +-21 +-26 query I rowsort label-8485 SELECT - 86 + + 38 + - - 74 * - COUNT ( * ) + - 35 AS col2 @@ -44806,8 +45263,11 @@ SELECT DISTINCT + 89 - + 1 * - 5 * + 4 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 AS col1, - 12 AS col1 +---- +-12 +26 query I rowsort label-8530 SELECT - 80 * + COUNT ( * ) @@ -44834,8 +45294,12 @@ SELECT - MAX ( ALL - + 75 ) + - 3 AS col2 # Datafusion - Expected - 59 # Datafusion - Expected - NULL # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \- \(\- CAST\(NULL AS Float64\)\) \- Int64\(15\) AS col0" at position 1 and "\(\- \(\- nullif\(Int64\(\-49\), \(\- \(\- Int64\(\-68\)\)\)\)\)\) \+ Int64\(33\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IRI valuesort SELECT ALL 59, 27 - - CAST ( NULL AS FLOAT8 ) - + + 15 AS col0, - - NULLIF ( - 49, - - ( + - 68 ) ) + 33 AS col0 +---- +-16 +59 +NULL query I rowsort label-8535 SELECT - SUM ( ALL + - 61 ) AS col0 @@ -45712,8 +46176,11 @@ SELECT 28 + + + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 75 AS col2, 30 AS col2 +---- +-75 +30 query I rowsort label-8705 SELECT 37 + + 57 * + 36 * - + 77 * - 89 * 48 / CASE COUNT ( * ) WHEN + 45 THEN - CAST ( NULL AS INTEGER ) END @@ -45728,8 +46195,11 @@ SELECT 18 * - 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "max\(Int64\(\-62\)\) \+ Int64\(37\) \+ Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 85 col2, MAX ( - 62 ) + 37 + + 90 AS col2 +---- +65 +85 query I rowsort label-8708 SELECT DISTINCT + CAST ( NULL AS INTEGER ) - 72 @@ -46294,8 +46764,11 @@ SELECT ALL + 18 + - - 97 - - 33 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -4111 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \+ Int64\(61\) \+ \(\- \(\- CASE Int64\(\-75\) WHEN Int64\(14\) / \(\- CAST\(NULL AS Int32\)\) THEN Int64\(81\) END\)\) AS col2" at position 0 and "Int64\(\-51\) \* nullif\(\(\- \(\- CAST\(Int64\(80\) AS Int32\)\)\), Int64\(\-62\)\) \+ Int64\(\-31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 7 + + 61 + - - CASE - 75 WHEN 14 / - CAST ( NULL AS INTEGER ) THEN + 81 END AS col2, - 51 * NULLIF ( - - CAST ( + + 80 AS INTEGER ), - 62 ) + + - 31 col2 +---- +-4111 +NULL query I rowsort label-8815 SELECT + 17 + - 84 - + COUNT ( * ) / - 84 @@ -46638,8 +47111,11 @@ SELECT 72 * 64 - - + 20 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col2" at position 0 and "\(\- max\(Int64\(\-2\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 27 AS col2, - MAX ( - 2 ) AS col2 +---- +-27 +2 query I rowsort SELECT - + 97 - 23 AS col1 @@ -46947,8 +47423,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( * ) + - 5 AS col1 +---- +-1 +-4 query II rowsort label-8939 SELECT DISTINCT - 88, COUNT ( * ) AS col1 @@ -47062,14 +47541,20 @@ SELECT COALESCE ( - CASE + - 35 WHEN - 24 + + 21 THEN + 69 ELSE NULL END, + - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6279 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(48\)\) \* \(\- Int64\(69\)\) \* Int64\(91\) AS col2" at position 0 and "nullif\(sum\(Int64\(\-77\)\), \(\- \(\- Int64\(\-81\)\)\)\) \- Int64\(\-14\) \- \(\- Int64\(59\)\) \+ Int64\(38\) / \(\- Int64\(\-47\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( 48 ) * - + 69 * + ( + 91 ) AS col2, NULLIF ( SUM ( ALL - 77 ), - + ( - - 81 ) ) - + - 14 - - + 59 + + + 38 / - - 47 col2 +---- +-4 +-6279 # Datafusion - Datafusion expected results: # Datafusion - Expected - 116 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ Int64\(64\) AS col1" at position 0 and "Int64\(\-4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 + + 64 AS col1, - 4 AS col1 +---- +-4 +116 query I rowsort SELECT ALL ( + + 73 ) - 6 AS col1 @@ -47093,14 +47578,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(\-74\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(74\) \+ Int64\(54\) \+ count\(Int64\(1\)\) AS count\(\*\) / \(\- coalesce\(Int64\(39\), \(\- sum\(Int64\(\-25\)\)\) \+ Int64\(43\), Int64\(\-72\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 3 ) * - 74 * CAST ( NULL AS INTEGER ) AS col1, + 74 + + 54 + COUNT ( * ) / - + COALESCE ( + 39, - SUM ( - 25 ) + 43, - 72 ) AS col1 +---- +128 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(66\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - ( COUNT ( * ) ) ) + + + 66 AS col1, COUNT ( * ) AS col1 +---- +1 +65 query I rowsort SELECT 78 * - ( + 51 ) @@ -47130,8 +47621,11 @@ 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\(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\. +query II valuesort SELECT ALL + 35 * 94 + COUNT ( * ) * - COUNT ( * ) AS col1, - 90 AS col1 +---- +-90 +3289 query I rowsort SELECT DISTINCT - - 19 AS col0 @@ -47575,8 +48069,11 @@ SELECT ALL - MAX ( DISTINCT - 79 ) col2, - ( + 89 ) * COUNT ( + 4 ) / NULLIF ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 53 + + COUNT ( * ) AS col1, + 41 AS col1 +---- +41 +54 query I rowsort label-9056 SELECT ALL NULLIF ( - + CAST ( COALESCE ( COUNT ( * ), - ( + COUNT ( - 14 ) ), - COUNT ( DISTINCT - - NULLIF ( 22, 29 ) ), + 97 * CASE - 89 WHEN - 28 - - NULLIF ( + + 22, - ( - CAST ( NULL AS INTEGER ) ) - - - 40 ) THEN NULL WHEN - + 88 THEN + 70 * 20 * + 31 * - + CAST ( NULL AS INTEGER ) + 27 ELSE - + 27 END + - MIN ( + + 94 ) ) AS INTEGER ), - CAST ( NULL AS INTEGER ) * + 11 * + MAX ( 7 ) + - 63 ) * - 6 AS col1 @@ -47660,8 +48157,11 @@ SELECT ALL COUNT ( + + ( + 80 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 164 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \+ \(\- min\(\(\- Int64\(99\)\)\)\) AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 65 + + - MIN ( - + 99 ) AS col0, 34 AS col0 +---- +164 +34 query I rowsort SELECT + COALESCE ( + 64, + 4 ) AS col2 @@ -47754,8 +48254,11 @@ SELECT ALL - 17 AS col2, 17 - + + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col2" at position 0 and "\(\- Int64\(74\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 5 col2, - ( 74 ) AS col2 +---- +-74 +5 query I rowsort SELECT 91 - - 66 AS col0 @@ -47796,8 +48299,11 @@ SELECT 67 + 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - -970 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(97\) AS col2" at position 0 and "sum\(\(\- Int64\(\-65\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 10 ) * + 97 AS col2, SUM ( - ( + - 65 ) ) AS col2 +---- +-970 +65 query I rowsort label-9098 SELECT CAST ( + CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) + - 72 AS col1 @@ -48085,8 +48591,11 @@ SELECT ALL 75 / + 50 + + 68 * - - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 5850 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "Int64\(90\) \* Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MAX ( - + CAST ( NULL AS INTEGER ) ) AS col1, 90 * 65 AS col1 +---- +5850 +NULL query I rowsort label-9151 SELECT - MIN ( DISTINCT - - 31 ) + 39 col1 @@ -48142,8 +48651,11 @@ SELECT - 19 / ( 94 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 66 AS col2, COUNT ( * ) AS col2 +---- +1 +66 query I rowsort SELECT ALL + ( + ( - 91 ) ) AS col2 @@ -48261,8 +48773,11 @@ SELECT - + ( + SUM ( - 73 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 80 AS col0, + COUNT ( * ) AS col0 +---- +1 +80 query I rowsort SELECT - 55 + + - 49 AS col2 @@ -48334,8 +48849,11 @@ SELECT 77 + CASE 24 WHEN 43 THEN NULL WHEN - 68 + + - 22 + + 35 * + 31 + + ( CAS # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "Int64\(\-86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 64 AS col0, - 86 AS col0 +---- +-86 +64 query I rowsort SELECT ALL + 64 - 79 + + 74 * + + 69 * - + 14 AS col0 @@ -48713,8 +49231,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col1, 10 * - 73 AS col1 +---- +-1 +-730 query I rowsort SELECT ALL ( + 1 ) AS col1 @@ -48752,8 +49273,11 @@ SELECT DISTINCT 11 AS col0, 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 1691 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "Int64\(89\) \* Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 38 AS col0, + 89 * 19 AS col0 +---- +1691 +38 query II rowsort SELECT ALL + 80 AS col1, - 17 + - ( 96 ) * 91 @@ -48794,8 +49318,11 @@ SELECT ALL 9 * + + COUNT ( * ) + - + 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 168 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ Int64\(62\) \+ Int64\(48\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 58 + 62 + + + 48 AS col2, 19 AS col2 +---- +168 +19 query II rowsort SELECT ALL - 49 * + 19 + + 18 AS col0, - 90 AS col2 @@ -49116,8 +49643,11 @@ SELECT COUNT ( * ) AS col1, - 1 + - 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - -430 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(10\), Int64\(\-57\) \+ nullif\(Int64\(88\), Int64\(56\) \* Int64\(\-79\)\)\)\) \* Int64\(43\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COALESCE ( + + 10, - 57 + + NULLIF ( + 88, + 56 * - 79 ) ) * + 43 AS col1, + 55 AS col1 +---- +-430 +55 query I rowsort label-9347 SELECT + 31 / - CAST ( NULL AS INTEGER ) + + + 27 + - 51 * - + 98 @@ -49409,8 +49939,11 @@ SELECT + - 51 AS col0, + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 62 AS col1, + 11 AS col1 +---- +-62 +11 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -50019,8 +50552,11 @@ SELECT DISTINCT 27 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \+ Int64\(\-60\) / Int64\(49\) AS col2" at position 0 and "Int64\(\-61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 65 + + - 60 / + 49 AS col2, - 61 col2 +---- +-61 +64 query III rowsort SELECT - 13 AS col2, 47 - - 53 col0, + - 78 * + 12 + + 15 @@ -50354,8 +50890,11 @@ 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\(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\. +query II valuesort SELECT ALL 84 - - 76 AS col1, ( 82 ) * - + ( - COUNT ( * ) ) * - 59 * - 62 + COUNT ( * ) * - 17 AS col1 +---- +160 +299939 query I rowsort label-9582 SELECT - 53 / CAST ( NULL AS INTEGER ) AS col2 @@ -51465,8 +52004,11 @@ SELECT COUNT ( ALL - 37 ) * + 14 + + MIN ( 93 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* Int64\(7\) AS col0" at position 0 and "Int64\(\-81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 * + 7 AS col0, - 81 AS col0 +---- +-81 +91 query I rowsort label-9799 SELECT ALL + 13 + + COUNT ( * ) + - CAST ( - 71 AS INTEGER ) * 89 AS col2 @@ -51826,8 +52368,11 @@ SELECT ALL 13 * - + 47 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, + 62 AS col1 +---- +1 +62 query I rowsort label-9869 SELECT ALL COUNT ( * ) * - + 59 + + 76 AS col0 @@ -51898,8 +52443,11 @@ SELECT + 6 * - 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1451 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \* Int64\(29\) \+ Int64\(\-84\) \+ Int64\(\-2\) AS col1" at position 0 and "\(\- max\(Int64\(50\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 53 * 29 + - 84 + - 2 AS col1, - MAX ( + + 50 ) AS col1 +---- +-50 +1451 query II rowsort SELECT ALL + 99 AS col2, 13 + - - 29 @@ -51931,8 +52479,12 @@ SELECT ALL + 56 - - ( - + 33 ) AS col2 # Datafusion - Expected - -98 # Datafusion - Expected - 93 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col0" at position 0 and "Int64\(16\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 98 col0, + 93, + + 16 AS col0 +---- +-98 +16 +93 query I rowsort label-9889 SELECT - SUM ( + NULLIF ( + 76, 99 ) ) * + 89 @@ -52075,8 +52627,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(8\) WHEN Int64\(70\) \+ Int64\(70\) THEN \(\- Int64\(\-70\)\) 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 II valuesort SELECT ALL + CASE + + 8 WHEN 70 + 70 THEN - - 70 END AS col2, - ( 81 ) col2 +---- +-81 +NULL query I rowsort label-9917 SELECT DISTINCT - 26 * + SUM ( ALL - 73 ) - 53 @@ -52144,8 +52699,11 @@ SELECT ( + 31 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -3924 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(72\) \* \(\- Int64\(54\)\) \- Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 16 ) col0, + 72 * - + 54 - 36 col0 +---- +-3924 +16 query I rowsort SELECT 87 + - 86 AS col1 diff --git a/data/sqlite/random/expr/slt_good_57.slt b/data/sqlite/random/expr/slt_good_57.slt index a42f84c..b9ffc8c 100644 --- a/data/sqlite/random/expr/slt_good_57.slt +++ b/data/sqlite/random/expr/slt_good_57.slt @@ -346,8 +346,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 5310 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ Int64\(67\) \* Int64\(78\) \+ Int64\(\-4\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 88 + 67 * + 78 + - 4 AS col0, 69 AS col0 +---- +5310 +69 query I rowsort SELECT DISTINCT 62 + - + 71 + - - 37 @@ -473,8 +476,11 @@ SELECT DISTINCT - 24 + + + 65 * - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1081 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* Int64\(\-23\) AS col0" at position 0 and "Int64\(\-23\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 * - 23 AS col0, - 23 + + COUNT ( * ) AS col0 +---- +-1081 +-22 query I rowsort SELECT ALL - 6 * - - 63 @@ -500,8 +506,11 @@ SELECT ALL + 61 + + - 87, COUNT ( * ) * 48 * + - ( + 34 ) * - - 24 - + 57 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 col2" at position 0 and "\(\- count\(Int64\(\-54\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + 80 ) AS col2, - COUNT ( - 54 ) col2 +---- +-1 +80 query I rowsort SELECT ALL + ( 77 ) + + 62 @@ -762,8 +771,11 @@ 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\(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\. +query II valuesort SELECT ALL + ( - COALESCE ( + COUNT ( * ), 74, + NULLIF ( - 47, + - 91 ) ) ) AS col1, + 13 + - + 67 AS col1 +---- +-1 +-54 query I rowsort SELECT + 59 * + + 44 @@ -872,8 +884,11 @@ SELECT ALL + + ( 75 ) / + 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\(65\)\) / nullif\(Int64\(65\), Int64\(\-19\)\) AS col0" at position 0 and "Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 65 / + NULLIF ( 65, - 19 ) AS col0, 84 AS col0 +---- +-1 +84 query I rowsort SELECT DISTINCT + - 47 @@ -1110,8 +1125,11 @@ SELECT 83 AS col1, - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 AS col0, ( 83 ) AS col0 +---- +18 +83 query II rowsort label-206 SELECT + 95 AS col0, + COUNT ( DISTINCT 23 ) AS col2 @@ -1260,8 +1278,11 @@ SELECT - COUNT ( + 14 ) # 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 col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 55 AS col1, 94 AS col1 +---- +-55 +94 query I rowsort SELECT 42 - ( + 10 ) @@ -1766,8 +1787,11 @@ SELECT 87 * - 12 + + - 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- Int64\(34\) AS col2" at position 0 and "Int64\(0\) \* Int64\(\-61\) \- \(\- Int64\(13\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) - + 34 AS col2, 0 * - 61 - - + 13 AS col2 +---- +13 +NULL query I rowsort SELECT + 46 - - + ( - 7 ) @@ -1844,8 +1868,11 @@ SELECT + CAST ( + 95 AS INTEGER ) * 44 - - COUNT ( * ) + + COUNT ( * ) + NULLIF # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col2" at position 0 and "CASE max\(Int64\(23\)\) WHEN Int64\(31\) \+ \(\- Int64\(21\)\) THEN Int64\(14\) ELSE NULL END \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 71 AS col2, CASE + MAX ( ALL 23 ) WHEN + 31 + - + 21 THEN 14 ELSE NULL END * + COUNT ( * ) AS col2 +---- +-71 +NULL query I rowsort label-346 SELECT 10 / + 41 @@ -2079,8 +2106,11 @@ SELECT DISTINCT + 60, - 40 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6329 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \* Int64\(\-79\) \+ Int64\(7\) \- \(\- Int64\(\-77\)\) AS col2" at position 0 and "Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 * - 79 + 7 - - - 77 AS col2, ( - 76 ) AS col2 +---- +-76 +6329 query I rowsort SELECT ALL + - 64 * 85 @@ -2226,8 +2256,11 @@ SELECT - 58 + - 77 * + 25 - NULLIF ( COUNT ( * ), - 6 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(28\) AS Int32\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( + 28 AS INTEGER ) AS col2, ( 10 ) AS col2 +---- +10 +28 query II rowsort label-418 SELECT - ( - + 42 ) AS col1, + 44 * + SUM ( 46 ) @@ -2371,8 +2404,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 col0, 77 + + - 94 * - COUNT ( * ) AS col0 +---- +-64 +171 query II rowsort SELECT ALL - 51 AS col0, - 85 @@ -2495,8 +2531,11 @@ SELECT 66 + - 14 + 65 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* Int64\(23\) AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 * 23 AS col2, + 62 AS col2 +---- +23 +62 query I rowsort SELECT ALL 24 - - 88 + + 64 + - 88 @@ -2684,8 +2723,11 @@ SELECT ALL 17 * - 36 * + 1 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 88 AS col2, + ( 18 ) AS col2 +---- +18 +88 query I rowsort label-507 SELECT + COUNT ( * ) + 23 AS col0 @@ -2970,8 +3012,11 @@ NULL # 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 "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 76 AS col0, 1 col0 +---- +1 +76 query I rowsort SELECT - 73 * 50 * 70 AS col0 @@ -2997,8 +3042,11 @@ SELECT + 56 + + 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "CAST\(NULL AS Int32\) / Int64\(13\) \+ CAST\(\(\- Int64\(91\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 59 AS col0, CAST ( NULL AS INTEGER ) / 13 + + CAST ( + - ( + 91 ) AS INTEGER ) AS col0 +---- +59 +NULL query I rowsort SELECT 41 * + 73 @@ -3035,8 +3083,12 @@ SELECT 13 * 24 - 8 + 10 * + - 88 * - 51 col0 # Datafusion - Expected - -1 # Datafusion - Expected - NULL # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* \(\- CASE Int64\(\-85\) WHEN Int64\(76\) \* \(\- max\(\(\- Int64\(41\)\)\)\) \* \(\- Int64\(\-86\)\) THEN sum\(Int64\(\-99\)\) END\) \* Int64\(23\) \+ Int64\(88\) \+ Int64\(5\) \- Int64\(\-75\) AS col0" at position 1 and "Int64\(96\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - COUNT ( DISTINCT + 2 ), 75 * - CASE - 85 WHEN 76 * - + MAX ( ALL - + 41 ) * - - 86 THEN + SUM ( - 99 ) END * + 23 + + + 88 + + 5 - - 75 AS col0, + 96 AS col0 +---- +-1 +96 +NULL query I rowsort SELECT 26 * - - 40 @@ -3777,8 +3829,11 @@ SELECT ALL + 87 - + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1404 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- min\(DISTINCT Int64\(\-39\)\)\)\) \* Int64\(\-36\) AS col1" at position 0 and "Int64\(31\) \+ Int64\(\-96\) / \(\- max\(\(\- Int64\(29\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - - MIN ( DISTINCT - 39 ) ) * + - 36 AS col1, 31 + + - 96 / - MAX ( + ( - ( 29 ) ) ) AS col1 +---- +1404 +28 query II rowsort SELECT 81 AS col1, 81 @@ -3869,8 +3924,11 @@ 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\(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\. +query II valuesort SELECT ALL - - COUNT ( * ) AS col1, 15 - + - 8 AS col1 +---- +1 +23 query I rowsort label-732 SELECT + COUNT ( * ) / SUM ( ALL - 48 ) * + ( + MAX ( ALL - - 94 ) ) / 29 / - COUNT ( * ) @@ -4567,8 +4625,12 @@ NULL # Datafusion - Expected - 87 # Datafusion - Expected - 627 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "Int64\(47\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 87 col1, + 33 * 19, + 47 AS col1 +---- +47 +627 +87 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -4667,8 +4729,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 25 AS col1, - ( - + COUNT ( * ) ) col1 +---- +1 +25 query I rowsort label-882 SELECT + - COUNT ( * ) + + + ( ( + 81 ) ) @@ -4744,8 +4809,11 @@ SELECT DISTINCT 37 * ( 97 ) + + 20 + 90 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* min\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) * MIN ( - + CAST ( NULL AS INTEGER ) ) AS col0 +---- +-1 +NULL query II rowsort SELECT ALL 11 * + - 61 * - + 34 + 28, 85 col1 @@ -4872,8 +4940,11 @@ SELECT + ( + 99 ) + - 3 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 23 AS col2, 94 AS col2 +---- +23 +94 query I rowsort SELECT ALL + - 28 col2 @@ -4949,8 +5020,11 @@ 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\(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\. +query II valuesort SELECT ALL 70 * 1 - - COUNT ( * ) AS col1, 59 / + + 33 + - 66 * + ( - 78 ) * 11 AS col1 +---- +56629 +71 query I rowsort SELECT 98 + + - 17 @@ -5076,8 +5150,11 @@ SELECT + 66 AS col0, 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19399 # Datafusion - Expected - -540 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ nullif\(Int64\(\-17\), Int64\(\-10\)\) \+ Int64\(\-90\) \* Int64\(5\) \* \(\- Int64\(43\)\) AS col1" at position 0 and "Int64\(27\) \* Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 66 + + NULLIF ( - 17, - 10 ) + - 90 * + 5 * - ( + + 43 ) AS col1, 27 * - 20 AS col1 +---- +-540 +19399 query II rowsort SELECT 90, - 1 AS col0 @@ -5181,8 +5258,11 @@ 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\(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\. +query II valuesort SELECT ( + + COUNT ( * ) ) + - - COUNT ( * ) AS col2, + 86 AS col2 +---- +2 +86 query I rowsort label-979 SELECT ALL + COUNT ( * ) + + + 19 @@ -5632,8 +5712,11 @@ SELECT 82 * + 38 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 378 # Datafusion - Expected - 1744 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* Int64\(21\) AS col1" at position 0 and "CAST\(\(\- Int64\(\-83\)\) AS Int32\) \* Int64\(21\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 18 * + 21 col1, CAST ( - - 83 AS INTEGER ) * + 21 + - - COUNT ( * ) AS col1 +---- +1744 +378 query II rowsort SELECT DISTINCT 12, 72 + - - 83 col0 @@ -6007,8 +6090,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 40 AS col2, 36 * - 69 - + - 36 - + - 27 * + 8 - - + COUNT ( * ) + + CASE - + 20 WHEN + 78 + 66 THEN + 21 ELSE NULL END / + - 26 AS col2 +---- +40 +NULL query I rowsort SELECT + 80 + + 6 AS col2 @@ -6050,8 +6136,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 38 * - 5 - + 46 + + - SUM ( + + 68 ) + - + COUNT ( * ) AS col1, 0 col1 +---- +-305 +0 query I rowsort SELECT DISTINCT + - 93 col2 @@ -6097,8 +6186,11 @@ SELECT ALL + CASE - - 1 WHEN - 42 / COUNT ( * ) * - - COUNT ( * ) - - COALESCE ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 58 AS col0, + COUNT ( * ) AS col0 +---- +1 +58 query I rowsort label-1153 SELECT DISTINCT - COUNT ( * ) * - 49 + - 55 @@ -6118,8 +6210,11 @@ SELECT DISTINCT + 13 + 51 # 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 "Int64\(75\) / min\(\(\- Int64\(87\)\)\) \* Int64\(\-45\) AS col2" at position 0 and "Int64\(91\) \+ Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 75 / MIN ( - + 87 ) * - 45 AS col2, 91 + - 95 AS col2 +---- +-4 +0 query I rowsort label-1157 SELECT DISTINCT ( - + COUNT ( * ) ) + + 62 AS col0 @@ -6170,8 +6265,11 @@ SELECT + COALESCE ( + - 83, - - 36 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \+ Int64\(\-10\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 83 + - 10 AS col1, 97 AS col1 +---- +-93 +97 query I rowsort label-1167 SELECT COUNT ( - 62 ) + COUNT ( * ) @@ -6201,8 +6299,11 @@ SELECT ALL + 26 + + ( COUNT ( DISTINCT 97 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "Int64\(87\) / Int64\(\-94\) \* \(\- CASE Int64\(\-69\) WHEN Int64\(\-75\) THEN Int64\(21\) \* \(\- Int64\(\-21\)\) \- Int64\(92\) \* Int64\(5\) / \(\- Int64\(\-63\)\) \- avg\(Int64\(52\)\) END\) \+ Int64\(\-93\) \+ Int64\(\-69\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + 57 AS col0, 87 / - 94 * - CASE + - 69 WHEN - 75 THEN + + 21 * + - ( - 21 ) - 92 * + 5 / - - 63 - AVG ( 52 ) END + - 93 + - 69 - COUNT ( * ) AS col0 +---- +57 +NULL query I rowsort SELECT 1 + + - 50 AS col2 @@ -6430,8 +6531,11 @@ SELECT 58 + 69 # 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 "Int64\(\-48\) \+ \(\- Int64\(\-5\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 AS col0, - 48 + - - 5 AS col0 +---- +-43 +17 query I rowsort SELECT 67 * + - 73 col2 @@ -7037,8 +7141,11 @@ SELECT DISTINCT + 20 + + 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) \+ Int64\(24\) AS col0" at position 0 and "min\(\(\- Int64\(\-10\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 73 + + 24 AS col0, MIN ( - + ( - 10 ) ) AS col0 +---- +-49 +10 query I rowsort label-1334 SELECT + - 11 * SUM ( ALL - 3 ) + + + ( - 2 ) @@ -8172,8 +8279,11 @@ SELECT DISTINCT COUNT ( * ) + - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, 35 AS col0 +---- +1 +35 query I rowsort SELECT ALL + 71 + - 55 @@ -8672,8 +8782,11 @@ 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\(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\. +query II valuesort SELECT ALL - 63 * 89 + - COUNT ( * ) AS col0, 88 * - 83 AS col0 +---- +-5608 +-7304 query I rowsort SELECT ALL CASE - 45 WHEN 77 * - + 99 THEN ( + + 96 ) WHEN - - 93 * - - 50 - 71 THEN NULL ELSE 82 * 0 END * 57 @@ -9086,8 +9199,11 @@ SELECT + 11 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 328 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(82\) \+ Int64\(80\) \+ \(\- nullif\(Int64\(\-99\), Int64\(56\) / avg\(Int64\(91\)\) \+ \(\- Int64\(98\)\)\)\) \- Int64\(\-67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT 62 col2, + 82 + 80 + - NULLIF ( - 99, + 56 / AVG ( + 91 ) + - + 98 ) - + - 67 AS col2 +---- +328 +62 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -9252,8 +9368,11 @@ SELECT COUNT ( - 50 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col0" at position 0 and "Int64\(\-34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 5 AS col0, - 34 AS col0 +---- +-34 +5 query I rowsort label-1763 SELECT - + 89 / + - 58 * + + CAST ( NULL AS INTEGER ) col2 @@ -9847,8 +9966,11 @@ SELECT DISTINCT 90 - + 33 * 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5427 # Datafusion - Expected - 2240 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) \* Int64\(81\) AS col1" at position 0 and "Int64\(64\) \* Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 67 * 81 AS col1, + 64 * ( + + 35 ) AS col1 +---- +-5427 +2240 query I rowsort label-1877 SELECT + CAST ( 91 AS INTEGER ) * - CASE - + NULLIF ( 67, - 3 * - 65 + + 76 ) WHEN + + COUNT ( * ) * + + AVG ( + 21 ) / - 63 THEN + CAST ( + - 22 AS INTEGER ) + - 13 ELSE NULL END * 79 + - 38 col0 @@ -9940,8 +10062,11 @@ SELECT + 21 * + 74 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 7920 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col1" at position 0 and "Int64\(90\) \* \(\- CAST\(Int64\(\-88\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 71 col1, + 90 * - CAST ( + ( - 88 ) AS INTEGER ) AS col1 +---- +-71 +7920 query I rowsort SELECT DISTINCT 50 + 27 AS col2 @@ -10167,8 +10292,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col1" at position 0 and "Int64\(\-46\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 97 col1, - 46 * COUNT ( * ) AS col1 +---- +-46 +97 query I rowsort SELECT ALL + 28 * + 58 AS col2 @@ -10203,14 +10331,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 94 col0, - COUNT ( * ) + COUNT ( * ) AS col0 +---- +0 +94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -2871 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "Int64\(29\) \* Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 78 AS col0, 29 * + - 99 col0 +---- +-2871 +78 query I rowsort label-1947 SELECT - + COUNT ( * ) * + + 73 + + - CASE + 81 WHEN + ( + + 70 ) * - - COUNT ( * ) + - 59 THEN - COALESCE ( - 11, ( - 76 ) / + 14 + COUNT ( * ) * CAST ( NULL AS INTEGER ), 29 ) ELSE NULL END * 56 + - 40 AS col1 @@ -10349,8 +10483,11 @@ SELECT DISTINCT + 14 + MAX ( ALL - - 90 ) * 85 - - + 72 + + SUM ( ALL - - 83 ) A # Datafusion - Datafusion expected results: # Datafusion - Expected - -163 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(26\)\) \+ \(\- nullif\(Int64\(95\), Int64\(70\)\)\) \- Int64\(42\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 26 + + - NULLIF ( + 95, 70 ) - + 42 AS col1, + CAST ( NULL AS INTEGER ) AS col1 +---- +-163 +NULL query I rowsort label-1974 SELECT DISTINCT - COUNT ( * ) + - 45 * ( + + 53 ) @@ -10689,8 +10826,11 @@ SELECT DISTINCT + ( - 59 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \* Int64\(56\) \* Int64\(0\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 46 * + 56 * - 0 AS col1, 34 AS col1 +---- +0 +34 query I rowsort SELECT - 51 * 74 AS col1 @@ -10946,8 +11086,11 @@ 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\(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\. +query II valuesort 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 +---- +40 +NULL query I rowsort SELECT - 63 * - 60 + + 90 AS col1 @@ -11603,8 +11746,11 @@ SELECT ALL + COALESCE ( - 48, - 1 / - 10 ) - 83 + + - 10 + + MIN ( - 29 ) AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT Int64\(\-88\)\)\) \* Int64\(\-1\) \+ Int64\(86\) \- Int64\(\-2\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MIN ( DISTINCT - 88 ) * - 1 + 86 - - 2 AS col0, + 49 AS col0 +---- +0 +49 query I rowsort label-2213 SELECT 22 + + 58 * + COUNT ( - 64 ) AS col1 @@ -11812,8 +11958,11 @@ SELECT - 43 + - + 33 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 29 AS col1, - 30 col1 +---- +-30 +29 query I rowsort label-2253 SELECT - COUNT ( * ) + - 52 + - 34 AS col0 @@ -12131,8 +12280,11 @@ SELECT ALL - SUM ( DISTINCT - + 93 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -308 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-62\), coalesce\(\(\- Int64\(85\)\), CASE WHEN NOT NULL IS NOT NULL THEN Int64\(56\) END, Int64\(88\) \* Int64\(\-26\) \- Int64\(92\)\)\)\) AS col0" at position 0 and "Int64\(\-77\) \* Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - NULLIF ( - 62, COALESCE ( + - ( 85 ), + + CASE WHEN NOT NULL IS NOT NULL THEN + 56 END, + 88 * + - 26 - + 92 ) ) AS col0, - 77 * 4 AS col0 +---- +-308 +62 query I rowsort label-2313 SELECT 8 / - + COUNT ( * ) AS col0 @@ -12979,8 +13131,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 71 + + + COUNT ( * ) - 67 + - 81 + - 8 + + 63 * + ( + 77 ) * - SUM ( ALL - + 42 ) / COUNT ( + 5 ) AS col2, 2 * + - ( 45 ) * 38 AS col2 +---- +-3420 +203516 query I rowsort SELECT ALL 20 * - - ( + 12 ) * 5 AS col0 @@ -13040,8 +13195,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -104 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \- Int64\(29\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 75 ) - + 29 AS col2, 68 AS col2 +---- +-104 +68 query I rowsort label-2486 SELECT + MAX ( - 39 ) AS col2 @@ -13162,8 +13320,11 @@ 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\(Int64\(1\)\) AS count\(\*\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 73 AS col2, - 87 * - NULLIF ( + + 81, + 9 * - 93 * - 87 ) + - COALESCE ( COUNT ( * ), - + COUNT ( * ) ) AS col2 +---- +7046 +73 query I rowsort label-2508 SELECT ALL - - 64 + COALESCE ( 31, + + 52 + - 42 ) - CAST ( - 6 AS INTEGER ) + - - 99 AS col0 @@ -13217,8 +13378,11 @@ SELECT + 27 * 84 / - NULLIF ( + 60, ( - - 18 ) * + CASE AVG ( - 72 ) WHEN - 37 T # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - -4074 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col2" at position 0 and "Int64\(97\) \* Int64\(\-42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 43 ) AS col2, + 97 * - 42 AS col2 +---- +-4074 +-43 query I rowsort SELECT DISTINCT ( - 94 ) AS col2 @@ -14486,8 +14650,12 @@ SELECT ALL 3 * - 43 AS col2 # Datafusion - Expected - 1 # Datafusion - Expected - 18 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 1 and "Int64\(\-69\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 1 AS col1, 18 AS col0, - 69 AS col0 +---- +-69 +1 +18 query I rowsort SELECT DISTINCT - 79 + 40 * + 22 @@ -14661,8 +14829,11 @@ SELECT - COALESCE ( + + 55, + - 89 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \+ Int64\(\-11\) / nullif\(Int64\(\-9\), Int64\(45\)\) AS col2" at position 0 and "Int64\(18\) \+ Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 + - 11 / + NULLIF ( - 9, 45 ) col2, 18 + 53 AS col2 +---- +7 +71 query I rowsort SELECT ALL COALESCE ( - ( + + 36 ), + + 37 - - 36 ) * 94 * - + 20 @@ -14677,8 +14848,11 @@ SELECT + + COUNT ( + 79 ) + + - 14 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1680 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* \(\- Int64\(\-28\)\) AS col1" at position 0 and "Int64\(98\) / Int64\(85\) \+ min\(Int64\(\-73\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 60 * - - 28 AS col1, 98 / + + 85 + MIN ( + - 73 ) AS col1 +---- +-72 +1680 query I rowsort label-2796 SELECT - - 79 + - COUNT ( * ) + - NULLIF ( 98, - 49 ) @@ -14736,8 +14910,11 @@ SELECT ALL + 38 * 51 * + - 48 * + - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col1" at position 0 and "Int64\(85\) \+ Int64\(41\) \+ CASE Int64\(22\) WHEN Int64\(96\) THEN NULL WHEN Int64\(\-94\) THEN Int64\(59\) \* Int64\(\-42\) \- Int64\(10\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 22 AS col1, + 85 + 41 + + CASE + 22 WHEN 96 THEN NULL WHEN - 94 THEN + ( 59 ) * - 42 - + 10 END AS col1 +---- +-22 +NULL query I rowsort SELECT DISTINCT - 11 * - 47 AS col0 @@ -15303,8 +15480,11 @@ SELECT + 50 * 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 49 AS col1, + 34 col1 +---- +34 +49 query I rowsort label-2914 SELECT DISTINCT + SUM ( - - 61 ) + - 2 AS col2 @@ -15448,8 +15628,11 @@ SELECT - 89 AS col2, + 15 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -113 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \+ Int64\(\-38\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 75 + - 38 col0, 42 AS col0 +---- +-113 +42 query I rowsort SELECT DISTINCT - + 78 AS col2 @@ -15501,8 +15684,11 @@ SELECT ALL - 3 * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -2790 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) / Int64\(\-80\) AS col1" at position 0 and "Int64\(\-93\) \* Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 31 / - 80 AS col1, - 93 * + + 30 AS col1 +---- +-2790 +0 query I rowsort SELECT DISTINCT + 58 - - 3 * 59 @@ -15619,8 +15805,11 @@ SELECT 53 * - CAST ( + AVG ( 54 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "Int64\(86\) / Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 7 AS col0, + 86 / - 16 col0 +---- +-5 +7 query I rowsort label-2972 SELECT 24 + + COUNT ( * ) * 86 * - 61 col1 @@ -15630,8 +15819,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 9 AS col1, - COUNT ( * ) AS col1 +---- +-1 +-9 query I rowsort SELECT 43 * 56 AS col1 @@ -15666,8 +15858,11 @@ SELECT ALL - COUNT ( - 21 ) / + - CAST ( + 33 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col0" at position 0 and "nullif\(Int64\(\-60\), Int64\(8\) \* Int64\(25\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 22 AS col0, + ( + + ( NULLIF ( + - 60, 8 * 25 ) ) ) AS col0 +---- +-60 +22 query I rowsort label-2981 SELECT - NULLIF ( 84, + COUNT ( * ) ) + + 95 + - 9 / - 1 @@ -15687,8 +15882,11 @@ SELECT ALL + 98 * + 21 * + + 16 + - 69 - + 82 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -140 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) \+ \(\- Int64\(94\)\) AS col0" at position 0 and "Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 46 + + ( ( - + 94 ) ) AS col0, - 26 AS col0 +---- +-140 +-26 query I rowsort SELECT 30 * 77 * - 60 - - 71 * - + 92 @@ -15902,8 +16100,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -160 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(59\)\) \+ Int64\(\-76\) \+ Int64\(\-25\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(\(\- Int64\(58\)\) AS Int32\) \* Int64\(24\) \- CAST\(NULL AS Int32\) / \(\- Int64\(42\)\) \+ Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 59 + - 76 + - 25 * COUNT ( * ) AS col2, + CAST ( + ( - + 58 ) AS INTEGER ) * + + 24 - + CAST ( NULL AS INTEGER ) / - + 42 + + 71 AS col2 +---- +-160 +NULL query I rowsort SELECT + - 90 * + 47 @@ -17036,8 +17237,11 @@ SELECT ALL + - NULLIF ( + 14, 89 ) * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col1" at position 0 and "Int64\(\-1\) \* \(\- CASE Int64\(85\) WHEN Int64\(48\) \+ CAST\(NULL AS Int32\) THEN Int64\(4\) / Int64\(68\) \+ Int64\(66\) END\) \* Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 73 AS col1, - 1 * - + CASE ( 85 ) WHEN 48 + CAST ( NULL AS INTEGER ) THEN 4 / + 68 + 66 END * - 12 AS col1 +---- +73 +NULL query I rowsort label-3247 SELECT - 87 * CAST ( + + NULLIF ( + + ( - ( - 90 ) ), 10 + 31 ) AS INTEGER ) + - 67 col2 @@ -17112,8 +17316,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, 47 AS col0 +---- +-1 +47 query I rowsort label-3262 SELECT + CAST ( 80 AS INTEGER ) / + ( - 55 ) AS col0 @@ -17123,8 +17330,11 @@ SELECT + CAST ( 80 AS INTEGER ) / + ( - 55 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -798 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \* \(\- Int64\(42\)\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 19 * - + 42 col2, 90 AS col2 +---- +-798 +90 query I rowsort label-3264 SELECT ALL MIN ( ALL 25 ) @@ -17162,8 +17372,11 @@ SELECT - 48 * NULLIF ( 57, COALESCE ( - CAST ( 54 AS FLOAT8 ), - NULLIF ( MIN ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 22 AS col0, 69 AS col0 +---- +-22 +69 query I rowsort SELECT ALL 27 * 76 + - 37 + + 37 + + 70 * + 94 * 41 + + 73 AS col2 @@ -18882,8 +19095,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -5004 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \+ Int64\(54\) AS col0" at position 0 and "Int64\(12\) \+ Int64\(57\) \* \(\- Int64\(88\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 8 + 54 AS col0, 12 + + 57 * - + 88 AS col0 +---- +-5004 +46 query I rowsort SELECT - NULLIF ( 49, + 99 ) @@ -18893,8 +19109,11 @@ SELECT - NULLIF ( 49, + 99 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 193456 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- Int64\(\-8\)\) AS col1" at position 0 and "\(\- CASE WHEN NOT Int64\(76\) = CASE \(\- \(\- Int64\(\-44\)\)\) WHEN Int64\(62\) THEN \(\- min\(Int64\(\-56\)\)\) \* count\(Int64\(\-27\)\) END THEN \(\- \(\- count\(Int64\(\-27\)\)\)\) \+ Int64\(21\) \+ Int64\(37\) WHEN NOT NULL > Int64\(\-41\) \+ avg\(Int64\(18\) \+ Int64\(53\)\) THEN Int64\(93\) / \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-46\) \+ nullif\(Int64\(11\), count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(42\)\) \- Int64\(\-84\)\)\)\) ELSE Int64\(89\) END\) \+ \(\- coalesce\(Int64\(75\) \- \(\- Int64\(57\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-36\)\) \* Int64\(40\), Int64\(\-31\) \+ Int64\(\-81\), Int64\(6\) \+ Int64\(44\)\)\) \* Int64\(\-51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +193456 +NULL query I rowsort label-3600 SELECT ALL MAX ( - 82 ) col2 @@ -19102,8 +19321,11 @@ SELECT ALL MAX ( 28 ) + ( 43 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "coalesce\(Int64\(64\), Int64\(\-20\) \+ Int64\(\-17\) \+ Int64\(27\) \* \(\- \(\- Int64\(\-42\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 AS col1, + COALESCE ( + 64, - 20 + - 17 + 27 * - ( - - 42 ) ) AS col1 +---- +41 +64 query I rowsort label-3640 SELECT - COUNT ( * ) + - + 50 + - MIN ( - + 33 ) @@ -19175,8 +19397,11 @@ SELECT CAST ( + + 96 AS INTEGER ) / + 47 + - + 26 / + 42 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 53 AS col2, 43 AS col2 +---- +43 +53 query I rowsort SELECT + 40 * + 1 @@ -20126,8 +20351,11 @@ SELECT DISTINCT - 42 + + 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CASE \(\- count\(Int64\(92\)\)\) WHEN Int64\(\-35\) \* Int64\(22\) \- count\(Int64\(1\)\) AS count\(\*\) THEN coalesce\(Int64\(\-12\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-12\), Int64\(88\), Int64\(93\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-32\) ELSE CAST\(NULL AS Int32\) \- Int64\(\-57\) END\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +27 +NULL query I rowsort SELECT DISTINCT - 32 + - 70 @@ -20194,8 +20422,11 @@ SELECT + + 11 * + 48 * + COUNT ( * ) + - 20 + 65 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -480 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* Int64\(6\) AS col0" at position 0 and "Int64\(\-40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 80 * + + 6 AS col0, + ( + - 40 ) AS col0 +---- +-40 +-480 query I rowsort label-3850 SELECT - + COUNT ( * ) + - + 60 @@ -20567,8 +20798,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3792 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* Int64\(\-47\) \+ max\(DISTINCT Int64\(\-67\)\) \+ \(\- max\(Int64\(\-99\)\)\) AS col0" at position 0 and "Int64\(3\) / CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 80 * - 47 + + MAX ( DISTINCT - 67 ) + - MAX ( ALL - 99 ) AS col0, 3 / CAST ( NULL AS INTEGER ) AS col0 +---- +3792 +NULL query I rowsort label-3921 SELECT ( - - COUNT ( DISTINCT 87 ) ) + - SUM ( + - 47 ) @@ -20850,8 +21084,11 @@ SELECT ALL SUM ( ALL - 39 ) / + - MIN ( DISTINCT - 56 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "Int64\(55\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 74 col1, 55 + + + COUNT ( * ) col1 +---- +56 +74 query II rowsort label-3973 SELECT ALL 71, + COUNT ( * ) AS col2 @@ -21477,8 +21714,11 @@ SELECT 85 * 77 * - - 1 * + + NULLIF ( + 74, 18 ) * + 61 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\(\(\- Int64\(63\)\)\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( ALL - + 63 ) AS col1, 0 col1 +---- +0 +1 query II rowsort label-4092 SELECT ALL + - COUNT ( * ) AS col0, 43 col2 @@ -21500,8 +21740,11 @@ SELECT + - 78 * - + 82 * + - ( - 30 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(26\)\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( 26 ) AS col0, 98 AS col0 +---- +26 +98 query I rowsort label-4096 SELECT - COUNT ( * ) / - CAST ( NULL AS INTEGER ) * - 3 @@ -21784,8 +22027,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2622 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* Int64\(61\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 43 * + 61 - ( COUNT ( * ) ) AS col1, 50 col1 +---- +2622 +50 query I rowsort label-4150 SELECT + 21 * + CAST ( MIN ( ALL + CAST ( + 70 AS INTEGER ) ) AS INTEGER ) + SUM ( - + 6 ) AS col1 @@ -21857,8 +22103,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, 38 AS col2 +---- +-1 +38 query I rowsort label-4163 SELECT - COUNT ( - 15 ) / COUNT ( * ) + - 83 AS col2 @@ -22171,8 +22420,12 @@ SELECT - - 51 * MAX ( ALL - - 23 ) * - ( - 64 ) AS col2, 16 - MIN ( - 25 ) + 28 # Datafusion - Expected - NULL # Datafusion - Expected - -27 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-50\) WHEN \(\- Int64\(\-76\)\) \+ Int64\(\-41\) THEN NULL WHEN Int64\(\-4\) THEN Int64\(23\) END \+ min\(DISTINCT Int64\(1\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-27 +0 +NULL query I rowsort label-4224 SELECT DISTINCT + ( - 68 ) + NULLIF ( - 0, + COUNT ( * ) * + - COUNT ( - 5 ) * - 72 ) - 37 * 71 * + COUNT ( * ) + - COALESCE ( + 9, - 64 ) + ( - 93 ) / + COUNT ( * ) @@ -22502,8 +22755,11 @@ SELECT DISTINCT 9 + + 95 AS col0, 94 AS col1 # 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\(84\) \* Int64\(0\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 * 0 AS col1, + 11 AS col1 +---- +0 +11 query I rowsort label-4285 SELECT + SUM ( ALL 5 ) AS col0 @@ -22875,8 +23131,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( ( 50 ) ) + - 99 + - 58 AS col1, 64 + COUNT ( * ) + 7 AS col1 +---- +-107 +72 query I rowsort label-4357 SELECT + 30 / 35 @@ -23301,8 +23560,11 @@ 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\(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\. +query II valuesort SELECT - 4 * COUNT ( * ) - + 71 AS col1, + 65 AS col1 +---- +-75 +65 query I rowsort SELECT DISTINCT + 65 * 10 * 31 AS col2 @@ -23975,8 +24237,11 @@ SELECT ALL - 40 + + 3 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "Int64\(74\) / \(\- Int64\(\-29\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 19 AS col2, + 74 / - - 29 AS col2 +---- +19 +2 query I rowsort SELECT ALL - 90 * - ( + 33 ) + - 34 AS col2 @@ -24041,8 +24306,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 71 AS col1, 63 AS col1 +---- +63 +71 query I rowsort SELECT ALL - 59 * - 44 col2 @@ -24249,8 +24517,11 @@ SELECT ALL + 28 + COUNT ( * ) # 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 "Int64\(\-54\) AS col0" at position 0 and "Int64\(\-32\) \+ Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 54 AS col0, - 32 + + + ( 83 ) AS col0 +---- +-54 +51 query I rowsort SELECT ALL ( - + 50 ) @@ -24409,8 +24680,11 @@ SELECT + 89 AS col0, + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(86\)\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 86 AS col1, + 62 AS col1 +---- +-86 +62 query I rowsort SELECT - CASE - + 57 WHEN - 53 THEN NULL ELSE + + 4 END * 21 + + 63 * 30 @@ -24420,8 +24694,11 @@ SELECT - CASE - + 57 WHEN - 53 THEN NULL ELSE + + 4 END * 21 + + 63 * 30 # 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\(DISTINCT \(\- Int64\(\-44\)\)\)\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( DISTINCT ( - - 44 ) ) AS col2, 49 col2 +---- +-1 +49 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -24469,8 +24746,11 @@ 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\(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\. +query II valuesort SELECT ( + 98 ) + + 64 - 49 + 28 + COUNT ( * ) * 75 AS col2, - 11 * COUNT ( * ) * COUNT ( * ) + 66 + + 54 * - - 99 AS col2 +---- +216 +5401 query I rowsort SELECT 1 + + 2 col1 @@ -25214,8 +25494,11 @@ SELECT DISTINCT - SUM ( ALL + 72 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 65 AS col0, 29 AS col0 +---- +-65 +29 query I rowsort label-4806 SELECT ALL - NULLIF ( + 2, + - COUNT ( * ) ) AS col0 @@ -25230,8 +25513,11 @@ SELECT 42 * ( + 36 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col2" at position 0 and "Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 81 AS col2, + 32 AS col2 +---- +-81 +32 query I rowsort SELECT 55 * 74 col0 @@ -25291,8 +25577,11 @@ SELECT ( 33 ) - - + 69 + ( + 79 + 36 * 41 ) * 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 53 AS col1, 64 AS col1 +---- +53 +64 query I rowsort SELECT + ( - - 52 ) AS col1 @@ -25420,8 +25709,11 @@ SELECT DISTINCT 30 * - 20 # 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 "Int64\(41\) / Int64\(55\) AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 41 / + 55 AS col0, 55 AS col0 +---- +0 +55 query I rowsort label-4846 SELECT + 53 + ( + CAST ( NULL AS INTEGER ) ) AS col2 @@ -25594,8 +25886,11 @@ SELECT 52 / - 79 * + 47 - - 50 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 8536 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "Int64\(97\) \* Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 0 AS col0, 97 * 88 AS col0 +---- +0 +8536 query I rowsort SELECT + 66 * - 80 * + 34 * + - 18 * + 87 @@ -25625,14 +25920,20 @@ SELECT 44 * - + 86 + - MAX ( ALL + - 70 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - -106570 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(67\)\) AS Int32\) AS col0" at position 0 and "Int64\(\-91\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(88\) \* Int64\(55\) \* Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + CAST ( - + 67 AS INTEGER ) ) AS col0, - 91 + COUNT ( * ) - 88 * 55 * 22 AS col0 +---- +-106570 +-67 # Datafusion - Datafusion expected results: # Datafusion - Expected - -199 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* Int64\(\-3\) \+ Int64\(98\) AS col2" at position 0 and "Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 99 * + - 3 + 98 AS col2, - 4 AS col2 +---- +-199 +-4 query I rowsort SELECT + COALESCE ( + + 76, + 78, - - 76 ) @@ -25952,8 +26253,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 10 AS col0, 86 * + - COUNT ( * ) AS col0 +---- +-86 +10 query I rowsort label-4948 SELECT 30 + - CASE + - 60 WHEN MIN ( CAST ( NULL AS INTEGER ) ) * + + MAX ( ( 53 ) ) / - 87 THEN - 96 ELSE 19 END + 57 AS col1 @@ -26745,8 +27049,11 @@ SELECT - SUM ( + 80 ) * + 61 * - 94 * - ( + 29 ) - + 66 * - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 AS col0, + 58 col0 +---- +58 +94 query I rowsort SELECT ( + 92 ) + 47 @@ -26861,8 +27168,11 @@ SELECT + - CAST ( - + 88 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 34 AS col2, 28 AS col2 +---- +28 +34 query II rowsort label-5122 SELECT 91 AS col0, - COUNT ( * ) @@ -26883,8 +27193,11 @@ SELECT ALL + 98 * - 34 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 40 AS col2, 71 AS col2 +---- +40 +71 query II rowsort SELECT + 70 AS col2, + 63 AS col0 @@ -26915,8 +27228,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) * - 21 AS col1, 29 AS col1 +---- +21 +29 query I rowsort label-5132 SELECT + CAST ( + 5 AS INTEGER ) / 15 - 81 @@ -26927,8 +27243,12 @@ SELECT + CAST ( + 5 AS INTEGER ) / 15 - 81 # Datafusion - Expected - -57 # Datafusion - Expected - -57 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-57\)\) AS col2" at position 0 and "Int64\(\-38\) \- Int64\(19\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT MAX ( ALL - 57 ) col2, - 38 - 19 / COUNT ( * ) AS col2, - + CAST ( NULL AS INTEGER ) * + 24 + + - 23 col1 +---- +-57 +-57 +NULL query I rowsort label-5134 SELECT + COUNT ( - 32 ) * - COUNT ( * ) - - + COUNT ( * ) + MIN ( - - 39 ) + CASE + + 96 WHEN + - 97 THEN NULL WHEN - - 81 THEN NULL WHEN 6 THEN + 76 ELSE - 4 + - 50 END + + 77 * 19 @@ -26964,8 +27284,11 @@ SELECT + COALESCE ( 83, - - 18 - + 72 / + + CAST ( NULL AS INTEGER ), 67 + + - 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3581 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ nullif\(sum\(Int64\(88\)\), Int64\(95\)\) \* Int64\(\-42\) \+ Int64\(27\) AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 88 + NULLIF ( + SUM ( 88 ), + + 95 ) * + - 42 + 27 col0, 55 col0 +---- +-3581 +55 query I rowsort SELECT DISTINCT + 41 + 28 @@ -27337,8 +27660,11 @@ SELECT 31 + + CAST ( 18 AS INTEGER ) * + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \- Int64\(32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 60 - + 32 AS col1, COUNT ( * ) AS col1 +---- +-92 +1 query I rowsort SELECT ALL - CASE + 54 WHEN + 77 * - 39 THEN 12 / + + 29 END AS col0 @@ -27876,8 +28202,12 @@ SELECT 87 + - - ( - + COUNT ( ALL - 87 ) ) col2 # Datafusion - Expected - -154 # Datafusion - Expected - -50 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \* Int64\(\-7\) AS col0" at position 0 and "Int64\(\-50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 22 * - 7 AS col0, - 50 col0, + - ( + + COUNT ( 25 ) ) AS col0 +---- +-1 +-154 +-50 query I rowsort label-5314 SELECT ALL + COUNT ( * ) * - 65 - 32 - CAST ( + 32 AS INTEGER ) AS col2 @@ -27967,8 +28297,11 @@ SELECT COUNT ( * ) AS col2, - 57 * - - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(15\) AS Float64\)\) \+ \(\- CASE Int64\(67\) WHEN Int64\(\-65\) THEN Int64\(9\) END\) 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 RI valuesort SELECT ALL - CAST ( 15 AS FLOAT8 ) + - CASE 67 WHEN - 65 THEN + 9 END AS col2, COUNT ( ALL + 39 ) AS col2 +---- +1 +NULL query I rowsort SELECT 59 * - 67 @@ -28456,8 +28789,12 @@ SELECT ALL 15, + 69 * + 16 + - 96 AS col1 # Datafusion - Expected - NULL # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-74\)\) \+ Int64\(\-76\) \+ CAST\(NULL AS Float64\) AS col1" at position 0 and "Int64\(\-31\) / Int64\(65\) \* sum\(\(\- CAST\(Int64\(14\) AS Int32\)\)\) / \(\- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ count\(DISTINCT Int64\(91\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RIR valuesort 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 ) ) ) +---- +-1 +1 +NULL query I rowsort SELECT 48 + - - 55 - 85 @@ -28840,8 +29177,12 @@ SELECT + 80 + 62 + - + 19 AS col2, 36 # Datafusion - Expected - -2340 # Datafusion - Expected - NULL # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(\-60\) AS col2" at position 0 and "\(\- Int64\(\-60\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + ( + + 39 ) * - 60 AS col2, - COUNT ( * ) * 95 * - 15 * 25 * - 92 * - + CAST ( NULL AS INTEGER ) + - 84 * - 5 col0, - - 60 AS col2 +---- +-2340 +60 +NULL query I rowsort label-5498 SELECT ALL MIN ( ALL - + 14 ) AS col0 @@ -29117,8 +29458,11 @@ SELECT COUNT ( * ) * + - 59 + - 6 * + 94 * + - 29 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -138368 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \* Int64\(\-46\) \* \(\- \(\- Int64\(\-47\)\)\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 64 * - 46 * - ( - - 47 ) AS col2, 93 AS col2 +---- +-138368 +93 query I rowsort label-5551 SELECT ALL COUNT ( DISTINCT + + 87 ) - + 18 @@ -29284,8 +29628,11 @@ SELECT + ( - 89 ) * 77 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- min\(\(\- Int64\(\-14\)\)\)\)\) AS col0" at position 0 and "Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( + MIN ( - - 14 ) ) AS col0, ( - 22 ) AS col0 +---- +-22 +14 query I rowsort label-5583 SELECT ALL - 18 - - + 90 - + + ( - COUNT ( * ) ) * 98 @@ -29300,14 +29647,20 @@ 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 "\(\- \(\- Int64\(\-17\)\)\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - ( + ( + - 17 ) ) AS col1, ( + 20 ) col1 +---- +-17 +20 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col0" at position 0 and "Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 85 AS col0, - 16 col0 +---- +-16 +-85 query II rowsort label-5587 SELECT + COUNT ( * ) AS col1, - SUM ( ALL - - 74 ) AS col2 @@ -29370,8 +29723,11 @@ SELECT + COUNT ( * ) AS col1, + 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(CASE WHEN NULL IS NULL THEN Int64\(\-94\) ELSE NULL END, Int64\(69\) \- \(\- Int64\(\-63\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( CASE WHEN NULL IS NULL THEN - 94 ELSE NULL END, 69 - - - 63 ) col0, + COUNT ( * ) AS col0 +---- +-94 +1 query I rowsort label-5599 SELECT + ( 73 ) / COALESCE ( + CAST ( NULL AS INTEGER ), + SUM ( + + CAST ( NULL AS INTEGER ) ), + 84 ) AS col1 @@ -29458,8 +29814,11 @@ SELECT ( - NULLIF ( + - 93, - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) / - - 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 270 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(45\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 6 * 45 AS col0, + 41 col0 +---- +270 +41 query I rowsort label-5616 SELECT - COUNT ( * ) * - 29 AS col0 @@ -29647,8 +30006,12 @@ SELECT DISTINCT - 63 + - 71 # Datafusion - Expected - -48 # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "\(\- Int64\(\-58\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 48 col2, - ( - 57 ) * 15 + - - CASE + 54 WHEN + 76 * + COUNT ( * ) / - 30 * + + ( + - 84 ) + + CAST ( NULL AS INTEGER ) * - 3 THEN 92 END + - 98 / - 88, - - 58 AS col2 +---- +-48 +58 +NULL query I rowsort SELECT ALL 11 + - + 85 AS col0 @@ -29744,8 +30107,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - + NULLIF ( - 15, COUNT ( * ) ) AS col2, SUM ( DISTINCT + - 45 ) * - 33 + 79 AS col2 +---- +15 +1564 query I rowsort SELECT 26 + + - 59 AS col0 @@ -30249,8 +30615,11 @@ SELECT ALL CASE + 97 WHEN + 25 THEN NULL WHEN - + 15 THEN - 21 / - 13 * + 62 ELS # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 AS col2, + 62 AS col2 +---- +52 +62 query I rowsort label-5767 SELECT CAST ( + - 21 AS INTEGER ) @@ -30764,8 +31133,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-36\) \+ max\(DISTINCT Int64\(\-25\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( - - 72 ) AS col0, 82 + ( + COUNT ( * ) ) * - 36 + MAX ( DISTINCT - 25 ) col0 +---- +-1 +21 query I rowsort label-5863 SELECT SUM ( - 40 ) @@ -30950,8 +31322,11 @@ SELECT + + 39 / + - COUNT ( * ) + + 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(39\)\) AS col2" at position 0 and "Int64\(3\) \* \(\- Int64\(\-16\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 39 AS col2, 3 * - - 16 AS col2 +---- +-39 +48 query I rowsort SELECT ALL 43 + - 87 @@ -31083,8 +31458,11 @@ SELECT ALL 59 * + + 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 20 col2, 71 AS col2 +---- +20 +71 query II rowsort label-5923 SELECT - 31, + 80 * + COUNT ( * ) AS col1 @@ -31111,8 +31489,11 @@ SELECT 15 / - 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-60\) AS Int32\)\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( - 60 AS INTEGER ) AS col0, 43 AS col0 +---- +43 +60 query I rowsort label-5928 SELECT DISTINCT + ( COUNT ( * ) ) * + 30 * + COALESCE ( CAST ( NULL AS INTEGER ), - + 70 ) + - + 68 @@ -31864,8 +32245,11 @@ SELECT DISTINCT 36, 97 + 56 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2721 # Datafusion - Expected - 806 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ Int64\(30\) \* Int64\(\-93\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(13\) \* Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 69 + + 30 * - 93 * COUNT ( * ) col1, + 13 * + + 62 AS col1 +---- +-2721 +806 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -31893,8 +32277,11 @@ SELECT DISTINCT 33 + - 99 + - 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col2" at position 0 and "Int64\(54\) \- CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 AS col2, + 54 - ( + CAST ( NULL AS INTEGER ) ) AS col2 +---- +72 +NULL query I rowsort label-6076 SELECT - NULLIF ( + - COALESCE ( - 2, 96 - - COUNT ( * ) * - - COUNT ( * ) ), - 1 ) + - 3 AS col2 @@ -31951,8 +32338,11 @@ SELECT DISTINCT NULLIF ( 50, - CASE - + 9 WHEN 87 * + 80 / ( + 94 ) + COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "Int64\(31\) \+ Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 99 AS col0, + 31 + + 71 AS col0 +---- +102 +99 query I rowsort SELECT DISTINCT + 7 * - 96 - - 93 @@ -32394,8 +32784,11 @@ SELECT 62 * - 41 * + + 15 AS col2, - 36 + - 19 * + 84 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - -727 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) AS col2" at position 0 and "Int64\(32\) \* Int64\(\-21\) \+ Int64\(\-82\) \- Int64\(\-35\) \+ Int64\(\-8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 21 col2, 32 * - 21 + - 82 - - 35 + - 8 AS col2 +---- +-21 +-727 query II rowsort label-6171 SELECT ( - ( 37 ) ), + MIN ( + - 21 ) col2 @@ -32861,8 +33254,11 @@ SELECT ALL SUM ( DISTINCT - - 49 ) * - + 63 - - 47 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3640 # Datafusion - Expected - 4559 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* Int64\(\-91\) AS col2" at position 0 and "Int64\(\-47\) \* Int64\(\-97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 40 * - 91 col2, - 47 * - 97 AS col2 +---- +-3640 +4559 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -32996,8 +33392,11 @@ SELECT - 78 * + 41 * 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \- Int64\(3\) AS col0" at position 0 and "Int64\(27\) \* Int64\(\-61\) \+ \(\- nullif\(min\(\(\- CAST\(NULL AS Int32\)\)\), \(\- Int64\(2\)\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(81\) \+ Int64\(\-93\) \* Int64\(\-50\) \+ Int64\(59\)\)\) \* \(\- Int64\(40\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 26 - + ( + 3 ) AS col0, 27 * - 61 + - + NULLIF ( + MIN ( ALL + - CAST ( NULL AS INTEGER ) ), - ( + + 2 ) / + COUNT ( * ) + 81 + - 93 * - 50 + + + 59 ) * - + 40 AS col0 +---- +-29 +NULL query I rowsort SELECT + ( + COALESCE ( - ( 20 ), - ( 59 ) * 14 + 73 - - + 32 ) ) * + 11 + 4 + - 92 AS col1 @@ -33044,8 +33443,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 63 / - COUNT ( * ) AS col2, + 90 AS col2 +---- +63 +90 query I rowsort SELECT 9 + 48 @@ -33076,8 +33478,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-28\)\) \* Int64\(12\) \* Int64\(\-61\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 26 * - 29 AS col1, - COALESCE ( + 64, + 0, NULLIF ( - 87, - ( 35 ) / + 66 - + 20 - + 99 + + COUNT ( * ) + - 28 ) * + 12 * - 61 ) AS col1 +---- +-64 +-754 query II rowsort SELECT DISTINCT - COALESCE ( - ( - - 57 ), 83 ) + + 17 AS col0, - COALESCE ( + COALESCE ( + 62, 40 + ( 48 ) ), 52 ) col1 @@ -33234,8 +33639,11 @@ 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\(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\. +query II valuesort 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 +---- +1063483174 +NULL query I rowsort label-6330 SELECT DISTINCT - 76 + + MAX ( - 98 ) * + + 53 + - COUNT ( * ) / NULLIF ( 40, 9 + - + 90 ) * - + 84 AS col2 @@ -33318,8 +33726,11 @@ SELECT ALL - 25 AS col0, 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 3626 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "Int64\(98\) \* Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 AS col0, + 98 * 37 AS col0 +---- +25 +3626 query I rowsort label-6346 SELECT ALL - ( CASE 36 WHEN - SUM ( + + 70 ) + + 91 * + COUNT ( * ) / + 80 THEN + - 52 / + + 59 + - 22 + - - COUNT ( * ) END ) @@ -34586,8 +34997,11 @@ 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\(1\)\) AS count\(\*\)\) / Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 AS col2, - ( + COUNT ( * ) ) / + 30 AS col2 +---- +0 +8 query I rowsort label-6593 SELECT - 50 + - CASE - COUNT ( * ) WHEN + 69 THEN + 59 END / - COUNT ( * ) / + 91 AS col1 @@ -34614,8 +35028,12 @@ SELECT + - 50 * + 88 * 78 * - 8 + + - COUNT ( - 7 ) * - 33 # Datafusion - Expected - -72 # Datafusion - Expected - -35 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col2" at position 0 and "Int64\(\-34\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 72 col2, - 35 AS col1, - 34 AS col2 +---- +-34 +-35 +-72 query I rowsort SELECT - + 75 + - 34 @@ -34684,8 +35102,11 @@ SELECT DISTINCT + - COUNT ( * ), 48 + + 13 + COUNT ( * ) * - - MAX ( ALL + ( - 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - -1590435 -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\(\-81\) \* Int64\(\-77\) \* Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 30 AS col1, - 15 * + ( - 81 ) * - 77 * + ( 17 ) AS col1 +---- +-1590435 +-30 query I rowsort SELECT - 58 * + 25 @@ -34700,8 +35121,11 @@ SELECT ( - - ( 94 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 23 ) AS col0, + 38 AS col0 +---- +-23 +38 query I rowsort label-6614 SELECT + CASE + 48 WHEN - CASE 32 WHEN - CAST ( NULL AS INTEGER ) THEN - 55 ELSE NULL END * - 88 THEN COUNT ( * ) WHEN + 60 * 61 + + 31 THEN - 61 + ( - 32 + 50 * 17 ) END @@ -35291,8 +35715,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(5\)\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 5 AS col0, 77 AS col0 +---- +-5 +77 query I rowsort label-6727 SELECT + + COUNT ( * ) / - 82 @@ -35449,8 +35876,12 @@ SELECT ALL + - 32 / + - 15 - + 12 + + 66 + 22 * MAX ( DISTINCT 51 ) + - 23 * - C # Datafusion - Expected - -27 # Datafusion - Expected - 28 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - 27 AS col2, + 28, CAST ( NULL AS INTEGER ) col2 +---- +-27 +28 +NULL query I rowsort label-6757 SELECT ALL - 22 + - + 41 + - CASE 27 WHEN - ( + CAST ( + + 92 AS INTEGER ) ) * - + 37 THEN ( - COALESCE ( - COUNT ( * ), 37 ) ) / + 68 - - 17 END + SUM ( - 52 ) * - NULLIF ( - 38 + - 90 * - 94, - ( + 96 ) * 51 - + 69 * COUNT ( DISTINCT 90 * 78 + 91 ) ) @@ -35613,8 +36044,11 @@ SELECT DISTINCT - + 3 + 84 AS col0, 44 * 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - -496 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* Int64\(\-53\) \+ \(\- Int64\(\-87\)\) AS col2" at position 0 and "\(\- min\(Int64\(72\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 * + - 53 + - - 87 AS col2, - MIN ( ( + ( + ( + 72 ) ) ) ) AS col2 +---- +-496 +-72 query I rowsort label-6788 SELECT DISTINCT + 35 / - 62 * 94 @@ -35629,8 +36063,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) - - 6 AS col0, + 79 AS col0 +---- +7 +79 query I rowsort label-6791 SELECT ALL + 2 / + COALESCE ( - 48, 78 - + 76 ) @@ -36193,8 +36630,11 @@ SELECT 3 * 29 * + + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - -147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) \- nullif\(\(\- Int64\(\-82\)\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 0 and "\(\- CAST\(Int64\(53\) AS Int32\)\) \+ Int64\(\-52\) \+ Int64\(65\) / Int64\(58\) \+ Int64\(\-70\) \+ Int64\(29\) \- Int64\(89\) / nullif\(Int64\(39\), Int64\(2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 14 - + NULLIF ( - - 82, + ( - - COUNT ( * ) ) ) AS col1, - CAST ( 53 AS INTEGER ) + - 52 + + + 65 / + 58 + - 70 + 29 - + + 89 / + NULLIF ( + 39, 2 ) col1 +---- +-147 +-96 query I rowsort label-6898 SELECT + 86 * + + 56 / - SUM ( DISTINCT + 57 ) * 50 + CAST ( NULL AS INTEGER ) / 96 / + - 26 * + 33 * + - COUNT ( * ) - - - 11 col2 @@ -36296,8 +36736,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 AS col1, + 56 + - - 36 * + 70 + + NULLIF ( - 40, + COUNT ( * ) ) AS col1 +---- +2536 +3 query I rowsort SELECT ALL 58 + - + 20 col1 @@ -36307,8 +36750,11 @@ SELECT ALL 58 + - + 20 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ Int64\(80\) AS col2" at position 0 and "\(\- max\(Int64\(96\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 16 + 80 AS col2, - MAX ( + 96 ) AS col2 +---- +-96 +96 query II rowsort SELECT 11, - 40 AS col0 @@ -36573,8 +37019,11 @@ SELECT ALL + 73 / COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-68\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 68 * + COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) * 6 AS col2 +---- +68 +NULL query I rowsort SELECT + 44 + + 42 * + 92 AS col1 @@ -37199,8 +37648,11 @@ SELECT ALL 57 AS col2, + COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "\(\- sum\(Int64\(0\)\)\) \* Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 AS col0, - SUM ( - 0 ) * 73 col0 +---- +0 +47 query II rowsort SELECT 52 AS col2, - 79 - - - 6 @@ -37572,8 +38024,11 @@ SELECT DISTINCT 28 + - 46 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -126 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(78\) WHEN Int64\(\-43\) \+ Int64\(32\) \+ Int64\(87\) \+ Int64\(45\) THEN Int64\(15\) WHEN Int64\(69\) \* Int64\(75\) \+ Int64\(69\) \+ Int64\(7\) \* Int64\(86\) \* Int64\(79\) THEN NULL END\) \+ Int64\(\-57\) / Int64\(42\) \+ Int64\(88\) AS col1" at position 0 and "Int64\(7\) \* Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CASE + + 78 WHEN - 43 + 32 + + 87 + + 45 THEN 15 WHEN + + 69 * 75 + + 69 + + 7 * + + 86 * + 79 THEN NULL END + - 57 / + 42 + + 88 AS col1, 7 * - 18 AS col1 +---- +-126 +NULL query I rowsort SELECT DISTINCT + 24 + 99 @@ -37772,8 +38227,11 @@ SELECT DISTINCT + ( 60 ) * - + ( + 17 ) * + + 91 * 41 * + + 19 * COUNT ( 35 ) - # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \- Int64\(\-57\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 48 - - 57 AS col0, + 79 AS col0 +---- +79 +9 query I rowsort SELECT 60 + + 2 col0 @@ -37942,8 +38400,11 @@ SELECT + COUNT ( * ) / - 93 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \- Int64\(\-78\) \- \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-7\) \* Int64\(\-96\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 63 ) - - 78 - - CAST ( NULL AS INTEGER ) + - 7 * + - 96 col1, + COUNT ( * ) AS col1 +---- +1 +NULL query I rowsort label-7230 SELECT - - 33 + COUNT ( * ) * - SUM ( DISTINCT + 76 ) @@ -38025,8 +38486,11 @@ SELECT + - CASE + COUNT ( * ) WHEN - 44 THEN NULL WHEN CAST ( NULL AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \* \(\- CASE Int64\(\-77\) WHEN Int64\(90\) \* \(\- Int64\(\-78\)\) THEN Int64\(42\) END\) \+ Int64\(83\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 18 * - CASE - 77 WHEN + 90 * - - 78 THEN + 42 END + 83 * COUNT ( * ) AS col1, - 41 AS col1 +---- +-41 +NULL query I rowsort SELECT ALL - + 55 * - ( - - 15 ) + - - 91 @@ -38390,8 +38854,11 @@ 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\(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\. +query II valuesort SELECT - 68 + COUNT ( * ) - - 69 col1, 44 AS col1 +---- +2 +44 query I rowsort label-7316 SELECT + - 16 + - 19 + + NULLIF ( + ( + - 2 ), + + COUNT ( * ) - - 72 - - 34 * - 58 ) - + 17 + - - 32 + + 26 + NULLIF ( COUNT ( * ), 49 + - 2 * + 66 + - 65 + 70 / - + 69 ) @@ -38547,14 +39014,20 @@ SELECT ALL - 34 * 49 + + - 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3721 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(\-61\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 61 * + - 61 AS col0, 64 AS col0 +---- +-3721 +64 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ 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 II valuesort SELECT + COUNT ( * ) + - 2 AS col0, 48 AS col0 +---- +-1 +48 query I rowsort label-7347 SELECT - 72 * - 7 * - MAX ( - 31 ) + + - 82 @@ -38930,8 +39403,11 @@ SELECT ALL - 17, 83 - + + 29 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-74\)\) \+ Int64\(37\) \- Int64\(94\) \+ \(\- Int64\(95\)\) AS col2" at position 0 and "Int64\(96\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(\-70\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 74 + + 37 - + 94 + - + 95 AS col2, 96 + + NULLIF ( + COUNT ( * ), + + COUNT ( * ) * + + COUNT ( * ) + CAST ( - 70 AS INTEGER ) ) AS col2 +---- +-78 +97 query II rowsort SELECT DISTINCT - 78, 93 * - 65 + 3 AS col1 @@ -38963,8 +39439,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - 4402 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(34\)\)\) AS col0" at position 0 and "Int64\(62\) \* Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( DISTINCT + 34 ) AS col0, 62 * + 71 AS col0 +---- +-34 +4402 query I rowsort label-7425 SELECT - COALESCE ( + CASE 13 WHEN 30 / - 69 / COUNT ( * ) * - 56 * + 68 + 56 / 72 * + 15 * - + 58 * 79 * - + ( + ( + - 37 ) ) - + 55 / COUNT ( * ) THEN + CASE - 28 WHEN - - 39 THEN - 20 * 58 * + + 1 + - 92 * + 76 WHEN 28 * - 81 THEN NULL END WHEN - + ( - ( - CASE - - CASE + 71 WHEN - CAST ( NULL AS INTEGER ) THEN + 72 * + COUNT ( * ) END WHEN CASE + NULLIF ( - 49, 27 / 17 ) WHEN CASE - 81 WHEN - 91 + 60 THEN NULL WHEN + MAX ( DISTINCT + 21 ) THEN NULL ELSE 18 * - 45 END + 97 THEN ( 60 ) + COUNT ( * ) END THEN 11 + AVG ( ALL 25 ) END ) ) / 41 + - MIN ( CAST ( NULL AS INTEGER ) ) THEN NULL END, 15 - + 67, - 55, + COUNT ( * ) / 13 ) @@ -39331,8 +39810,11 @@ SELECT DISTINCT + - 80 + 48 + - - 56 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(82\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) + COUNT ( * ) - 82 + COUNT ( * ) col0, - 5 col0 +---- +-5 +-81 query I rowsort label-7495 SELECT 2 * + MIN ( - 23 ) AS col1 @@ -39538,8 +40020,11 @@ SELECT DISTINCT + + ( - 89 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 86 AS col0, + 62 AS col0 +---- +62 +86 query I rowsort label-7534 SELECT ALL 50 * - COUNT ( * ) @@ -39650,8 +40135,11 @@ SELECT ALL 35 * + 36 AS col2, + 32 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - -9306 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) AS col1" at position 0 and "CAST\(\(\- CAST\(\(\- Int64\(\-99\)\) AS Int32\)\) AS Int32\) \* \(\- Int64\(\-94\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 52 AS col1, CAST ( - CAST ( - ( - 99 ) AS INTEGER ) AS INTEGER ) * - - 94 col1 +---- +-52 +-9306 query II rowsort SELECT ALL + 21, 64 * - 13 * + 20 * + 74 AS col2 @@ -39768,8 +40256,11 @@ SELECT ALL + COUNT ( + 81 ) * 92 + + 87 * + - 38 + - + 78 / + + 16 AS col2, + 7 # 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 "Int64\(\-43\) / max\(Int64\(76\)\) AS col2" at position 0 and "Int64\(\-83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 43 / + MAX ( + 76 ) AS col2, - 83 AS col2 +---- +-83 +0 query I rowsort label-7577 SELECT ALL + NULLIF ( 95, - - COUNT ( * ) ) * + 71 AS col1 @@ -39848,8 +40339,11 @@ SELECT + 95 col1, CAST ( + 77 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 AS col0, 82 AS col0 +---- +46 +82 query I rowsort SELECT ALL 39 + - NULLIF ( + 28, 11 * + ( + + ( - 14 ) ) ) @@ -40268,8 +40762,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 93 AS col0, - COUNT ( * ) AS col0 +---- +-1 +93 query I rowsort label-7673 SELECT + MAX ( 21 ) AS col0 @@ -40532,8 +41029,11 @@ SELECT - 5 + + 13, 37 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, + COUNT ( * ) AS col0 +---- +-1 +1 query I rowsort SELECT DISTINCT 93 - 46 + - 57 AS col2 @@ -40966,8 +41466,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 0 and "Int64\(\-24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 69 / + COALESCE ( + 59, - - COUNT ( * ) ) AS col0, - 24 AS col0 +---- +-1 +-24 query I rowsort label-7806 SELECT + + 64 * + - MAX ( + 76 ) AS col2 @@ -41108,8 +41611,11 @@ SELECT ALL - 3 - + 17 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(32\) \* Int64\(35\) AS col0" at position 0 and "coalesce\(Int64\(52\), \(\- nullif\(Int64\(78\), Int64\(74\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- Int64\(67\)\)\) \* Int64\(7\) \+ coalesce\(Int64\(13\), \(\- Int64\(75\)\) \* count\(Int64\(\-20\)\) \+ \(\- Int64\(\-33\)\) \- \(\- Int64\(45\)\)\) \+ Int64\(34\) / Int64\(53\)\)\) / nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(35\) / CAST\(Int64\(15\) AS Float64\) \* Int64\(\-43\)\) / Int64\(76\), Int64\(89\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +52 +NULL query II rowsort SELECT - 80 AS col1, + 61 + 46 AS col2 @@ -41317,8 +41823,11 @@ SELECT ( 72 ) * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4690 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(67\) \* Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 67 * + 70 AS col0 +---- +4690 +NULL query I rowsort label-7873 SELECT ALL + 98 / - + 55 + - + 95 col1 @@ -41450,8 +41959,11 @@ SELECT + 8 * ( - 28 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -112 # Datafusion - Expected - 2585 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(\-8\) AS col0" at position 0 and "Int64\(47\) \* Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 14 * + - 8 AS col0, 47 * + + 55 col0 +---- +-112 +2585 query I rowsort label-7898 SELECT DISTINCT 73 * + 50 * + COUNT ( * ) AS col0 @@ -41473,8 +41985,11 @@ SELECT - ( + COUNT ( * ) ), + 58 - 16 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1525476096 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-87\), Int64\(\-50\)\) \* Int64\(51\) \* Int64\(79\) \* Int64\(\-64\) \* Int64\(68\) AS col1" at position 0 and "Int64\(\-15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COALESCE ( + - 87, - 50 ) * 51 * + 79 * + - 64 * + 68 AS col1, - 15 AS col1 +---- +-15 +1525476096 query I rowsort label-7902 SELECT - - 57 / + 10 @@ -41690,8 +42205,11 @@ SELECT + 79 * 40 + + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 1056 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col2" at position 0 and "Int64\(66\) \* Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 col2, 66 * 16 AS col2 +---- +1056 +77 query I rowsort label-7944 SELECT + 62 + + 85 - + + COALESCE ( - ( - NULLIF ( + + COUNT ( * ), 85 ) ), + 30, - - 20 + + 6 ) * + 66 @@ -41716,8 +42234,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col0" at position 0 and "nullif\(Int64\(90\), Int64\(\-34\) \+ Int64\(\-71\) \* Int64\(34\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 72 AS col0, ( NULLIF ( + 90, + - 34 + - 71 * 34 ) ) col0 +---- +72 +90 query I rowsort SELECT ALL - ( + 50 ) + - - 79 AS col1 @@ -41945,8 +42466,11 @@ SELECT 92 * + 86 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29325 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* Int64\(15\) \* Int64\(23\) AS col0" at position 0 and "Int64\(\-33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 85 * + 15 * 23 AS col0, - 33 AS col0 +---- +-33 +29325 query I rowsort label-7993 SELECT + SUM ( DISTINCT + + ( + 86 ) ) @@ -43762,8 +44286,11 @@ SELECT + SUM ( DISTINCT 21 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col0" at position 0 and "coalesce\(\(\- CASE \(\- Int64\(6\)\) WHEN Int64\(8\) \* Int64\(\-4\) \+ \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-64\) END\), Int64\(46\) \* CASE Int64\(21\) WHEN \(\- Int64\(70\)\) \+ Int64\(13\) THEN NULL WHEN Int64\(35\) THEN Int64\(26\) \+ Int64\(56\) ELSE NULL END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-4 +NULL query I rowsort SELECT ALL 96 * 26 AS col2 @@ -43804,8 +44331,12 @@ SELECT ( 55 ) + + 52 * 14 # Datafusion - Expected - 72 # Datafusion - Expected - 5412 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(72\)\) AS col1" at position 0 and "Int64\(\-66\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT MAX ( + 72 ) AS col1, + 82 * + 66, - 66 AS col1 +---- +-66 +5412 +72 query I rowsort SELECT 49 + - 47 AS col0 @@ -44143,8 +44674,11 @@ SELECT ALL - CAST ( 36 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-29\), Int64\(87\) \- Int64\(86\) \* Int64\(71\) \* Int64\(0\), Int64\(\-14\) \* Int64\(\-28\)\) AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COALESCE ( - 29, + 87 - + + 86 * + 71 * 0, - 14 * - 28 ) AS col1, 39 AS col1 +---- +-29 +39 query I rowsort SELECT + - 71 + 37 * - 94 AS col2 @@ -44888,8 +45422,11 @@ SELECT ALL + 71 AS col2, 29 * + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "CAST\(Int64\(18\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 77 AS col0, + CAST ( 18 AS INTEGER ) col0 +---- +18 +77 query II rowsort label-8561 SELECT ALL + 60 AS col0, 88 * + 56 * + + COUNT ( * ) AS col1 @@ -45370,8 +45907,11 @@ 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\(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\. +query II valuesort SELECT - 95 + COUNT ( * ) + + 15 + 25 AS col0, - 71 * + - 41 * + 5 col0 +---- +-54 +14555 query I rowsort label-8653 SELECT ALL NULLIF ( + - 66, 96 / - 42 * - 39 * - 88 * - COUNT ( * ) ) - - 6 * - 51 AS col1 @@ -45408,8 +45948,11 @@ 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\(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\. +query II valuesort SELECT - 53 * - 98 * - COUNT ( * ) * 69 * 55 AS col0, COALESCE ( 24, 63, - 79 ) AS col0 +---- +-19711230 +24 query I rowsort SELECT DISTINCT + ( + NULLIF ( 42, - - 69 ) ) * - + 73 @@ -45708,8 +46251,11 @@ SELECT DISTINCT - + ( + 14 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 13 AS col0, 46 col0 +---- +13 +46 query I rowsort SELECT ALL + 80 * - 44 @@ -45758,8 +46304,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * 41 AS col2, 20 AS col2 +---- +20 +41 query I rowsort label-8726 SELECT ALL + COUNT ( * ) / 76 @@ -46027,8 +46576,11 @@ SELECT DISTINCT + COUNT ( - + 32 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 129 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ Int64\(92\) \+ Int64\(54\) / Int64\(76\) \* Int64\(\-73\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 37 + + 92 + 54 / 76 * - 73 col1, 55 AS col1 +---- +129 +55 query II rowsort label-8777 SELECT + 4 + + COUNT ( * ) - - + 42 col2, - COUNT ( * ) * - 40 @@ -46173,8 +46725,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\), Int64\(51\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) / Int64\(\-99\) \+ Int64\(\-71\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COALESCE ( + + COUNT ( ALL - - CAST ( NULL AS INTEGER ) ), 51 ) * + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) / - 99 + + - 71 AS col0, + ( 83 ) AS col0 +---- +83 +NULL query I rowsort SELECT DISTINCT 70 * - 96 AS col2 @@ -46491,8 +47046,12 @@ SELECT 33 + + - 85 # Datafusion - Expected - 11 # Datafusion - Expected - 5 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col1" at position 1 and "Int64\(\-64\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 11 AS col2, + ( + 5 ) AS col1, - 64 AS col1 +---- +-64 +11 +5 query I rowsort label-8864 SELECT 49 * - 35 * 82 * + SUM ( DISTINCT + + 57 ) @@ -46713,8 +47272,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(96\) END\) \+ Int64\(23\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +71 +NULL query I rowsort label-8905 SELECT DISTINCT + COUNT ( * ) * - 42 + 14 + + 73 * - + 30 + + 81 + ( - 45 ) AS col2 @@ -46929,8 +47491,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 AS col1, - COUNT ( * ) AS col1 +---- +-1 +32 query I rowsort label-8946 SELECT MIN ( - 88 ) + + 65 * 61 + + 21 - - + NULLIF ( + NULLIF ( + - 5, 12 * - 27 ), - + COUNT ( * ) / - 66 ) - - 49 AS col1 @@ -47822,8 +48387,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 col1, COUNT ( * ) * 39 AS col1 +---- +24 +39 query I rowsort label-9115 SELECT ALL - 57 * 76 / + 98 col0 @@ -47850,8 +48418,11 @@ SELECT + 46, + CASE - 56 WHEN 47 + 77 + 67 + + 25 THEN - + 36 + - - 15 WHEN + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - -1591 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "CAST\(Int64\(\-43\) AS Int32\) \* Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 AS col0, CAST ( - 43 AS INTEGER ) * + + 37 AS col0 +---- +-1591 +40 query II rowsort label-9120 SELECT ALL - 22 AS col2, - 12 + + - COUNT ( 17 ) @@ -48081,8 +48652,12 @@ SELECT ALL + - 70 * - - COUNT ( 15 ) AS col0 # Datafusion - Expected - NULL # Datafusion - Expected - 73 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col1" at position 1 and "Int64\(\-54\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 87 + + 16 + - - CASE + 75 WHEN - 27 THEN NULL WHEN - 57 THEN - - 47 * COUNT ( * ) + + 45 WHEN + 1 + - 96 THEN + 9 * + - CASE 14 WHEN - 89 * + 37 + 40 THEN 58 / 55 + - 16 * - 4 + 40 / - - 58 ELSE + - 46 END - - + 76 WHEN - - ( + 33 ) THEN 95 ELSE NULL END + 20 col0, 73 AS col1, - 54 AS col1 +---- +-54 +73 +NULL query II rowsort SELECT - 31 * + + 78, - 48 AS col2 @@ -48144,8 +48719,11 @@ SELECT ALL + ( 35 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3081 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(79\) AS col1" at position 0 and "Int64\(\-69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 39 * ( + 79 ) AS col1, - 69 AS col1 +---- +-69 +3081 query I rowsort label-9175 SELECT DISTINCT + COUNT ( * ) * 50 @@ -48416,8 +48994,11 @@ SELECT + 86 * 81 * 32 * 47 * COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \- Int64\(\-51\) \+ \(\- nullif\(Int64\(87\), Int64\(87\) \- \(\- \(\- Int64\(45\)\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 35 - - 51 + - NULLIF ( + 87, + + 87 - + - ( - + 45 ) ) AS col1, ( + COUNT ( * ) ) col1 +---- +-1 +1 query II rowsort SELECT + 62 AS col2, 22 * 83 AS col0 @@ -48703,8 +49284,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-1 +169 +97 query II rowsort label-9281 SELECT + + 91 / - + 94 - - NULLIF ( 45, 14 ) + - 49 + 30 * + - 6 AS col2, + 74 AS col1 @@ -48844,8 +49429,11 @@ SELECT ALL 27 * - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- Int64\(\-36\)\) WHEN Int64\(\-58\) \* Int64\(\-3\) \- avg\(DISTINCT CASE Int64\(\-69\) WHEN Int64\(82\) \+ Int64\(\-78\) THEN NULL WHEN Int64\(64\) THEN Int64\(\-63\) \+ Int64\(97\) END\) THEN NULL WHEN Int64\(16\) \- \(\- coalesce\(Int64\(43\), Int64\(70\)\)\) \* Int64\(67\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col1" at position 0 and "CASE \(\- Int64\(42\)\) WHEN \(\- Int64\(\-12\)\) THEN CAST\(Int64\(29\) AS Int32\) \+ Int64\(\-52\) ELSE count\(Int64\(1\)\) AS count\(\*\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-1 +1 query I rowsort label-9308 SELECT - 75 * + 42 + + - CAST ( NULL AS INTEGER ) col0 @@ -48965,8 +49553,11 @@ SELECT 14 * - 2 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\(0\) AS col0" at position 0 and "Int64\(40\) \+ \(\- Int64\(76\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 0 col0, 40 + - + 76 AS col0 +---- +-36 +0 query I rowsort label-9331 SELECT ALL + 64 - + COUNT ( * ) * 49 + - - 39 @@ -49458,14 +50049,20 @@ SELECT 50 * + - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 103 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(12\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(43\) AS col1" at position 0 and "Int64\(82\) \- CAST\(\(\- Int64\(\-81\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 * 12 + + COUNT ( * ) * 43 AS col1, 82 - + + CAST ( - - 81 AS INTEGER ) AS col1 +---- +1 +103 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 3185 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "Int64\(\-65\) \* Int64\(\-49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 AS col1, - 65 * + - 49 col1 +---- +24 +3185 query I rowsort SELECT 69 + 84 @@ -49500,8 +50097,11 @@ SELECT + ( ( 46 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-9\)\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 9 AS col2, + 60 AS col2 +---- +60 +9 query II rowsort label-9432 SELECT - + CAST ( NULL AS INTEGER ) AS col2, + 56 @@ -49977,8 +50577,11 @@ SELECT DISTINCT ( 73 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \- Int64\(\-2\) AS col2" at position 0 and "Int64\(50\) \+ Int64\(\-50\) \+ \(\- Int64\(\-70\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 12 - - 2 AS col2, 50 + - 50 + - - 70 AS col2 +---- +14 +70 query I rowsort SELECT ALL 24 + + 25 - + 78 AS col1 @@ -50117,8 +50720,12 @@ SELECT DISTINCT COALESCE ( 2, + 36 + 59 + + 87 * - COUNT ( ALL - - 14 ), - 79 ) # Datafusion - Expected - 1 # Datafusion - Expected - 78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +1 +78 +NULL query I rowsort SELECT + 55 + 34 - 35 * + - 82 AS col0 @@ -50427,8 +51034,11 @@ SELECT ALL + 87 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(\-90\) WHEN Int64\(\-78\) THEN NULL WHEN \(\- \(\- \(\- Int64\(\-17\)\)\)\) THEN Int64\(98\) \* \(\- Int64\(63\)\) \+ Int64\(54\) \* Int64\(\-2\) / Int64\(39\) ELSE NULL END\) AS col1" at position 0 and "Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CASE - 90 WHEN - 78 THEN NULL WHEN + ( - + ( - ( - - 17 ) ) ) THEN + 98 * - + 63 + 54 * - 2 / + 39 ELSE NULL END AS col1, - 40 col1 +---- +-40 +NULL query I rowsort SELECT - 39 * + - 26 + - + 8 @@ -51610,8 +52220,11 @@ SELECT DISTINCT 83 + + 19 + 43 # 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 "Int64\(\-3\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 AS col2, 30 AS col2 +---- +-3 +30 query I rowsort SELECT ALL 60 + + ( 20 ) AS col2 @@ -51704,8 +52317,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4515 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* Int64\(97\) \+ Int64\(\-25\) \- Int64\(19\) AS col1" at position 0 and "Int64\(52\) / \(\- max\(DISTINCT Int64\(52\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 * 97 + - 25 - 19 AS col1, 52 / - MAX ( DISTINCT 52 ) AS col1 +---- +-1 +4515 query I rowsort SELECT DISTINCT - 58 * + 72 - 49 @@ -51775,8 +52391,11 @@ 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\(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\. +query II valuesort SELECT ALL COALESCE ( COUNT ( * ), + + 64, 10 ) AS col0, + 18 + - - 52 col0 +---- +1 +70 query II rowsort label-9875 SELECT - COUNT ( * ), - 83 AS col1 @@ -52174,8 +52793,11 @@ SELECT DISTINCT + 34 + 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col2" at position 0 and "max\(Int64\(\-77\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 40 AS col2, + MAX ( - 77 ) AS col2 +---- +-40 +-77 query II rowsort SELECT 86 col2, + 66 col0 @@ -52328,8 +52950,11 @@ SELECT - - 67 * - - 16 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \* \(\- \(\- count\(Int64\(46\)\)\)\) AS col2" at position 0 and "Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 56 * - ( + - COUNT ( ALL + 46 ) ) AS col2, 72 AS col2 +---- +56 +72 query I rowsort label-9981 SELECT - COUNT ( * ) + + SUM ( NULLIF ( 16, - 90 ) ) + - 57 @@ -52397,8 +53022,11 @@ SELECT - 18 * + - 63 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 5096 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "Int64\(\-52\) \* min\(DISTINCT \(\- CAST\(Int64\(98\) AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 60 AS col1, - 52 * MIN ( DISTINCT - CAST ( 98 AS INTEGER ) ) AS col1 +---- +5096 +60 query II rowsort label-9994 SELECT ALL 11 AS col0, ( - MIN ( - 20 ) ) AS col2 diff --git a/data/sqlite/random/expr/slt_good_58.slt b/data/sqlite/random/expr/slt_good_58.slt index d83fdd5..bb2ef9e 100644 --- a/data/sqlite/random/expr/slt_good_58.slt +++ b/data/sqlite/random/expr/slt_good_58.slt @@ -300,8 +300,11 @@ SELECT ALL 99 * + + 79 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col2" at position 0 and "Int64\(34\) \* count\(DISTINCT Int64\(58\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 46 AS col2, 34 * COUNT ( DISTINCT + 58 ) AS col2 +---- +-46 +34 query II rowsort label-51 SELECT 37 AS col0, + 47 / + 16 @@ -707,8 +710,11 @@ SELECT 90 * 89 + 74 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 20 AS col0, 70 AS col0 +---- +-20 +70 query I rowsort label-129 SELECT - + 23 / 1 / + MIN ( DISTINCT + 67 ) + - - 59 + + 55 * 84 - + 11 * - 44 AS col1 @@ -882,8 +888,11 @@ SELECT ALL - 50 * 84, 10 - + - 2 * COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -3024 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "Int64\(\-72\) \* Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 71 ) AS col1, - 72 * + 42 AS col1 +---- +-3024 +71 query I rowsort SELECT ALL - - 74 + - 70 @@ -1043,8 +1052,12 @@ SELECT MIN ( DISTINCT - - 48 ) + + + ( - 58 ) # Datafusion - Expected - 7 # Datafusion - Expected - -62 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-62\) AS Int32\) AS col2" at position 1 and "Int64\(83\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - 7 AS col0, + CAST ( - 62 AS INTEGER ) AS col2, + 83 AS col2 +---- +-62 +7 +83 query II rowsort SELECT - 46 AS col0, CASE 27 WHEN - 71 * 23 + - - AVG ( + 32 ) - - 47 THEN - ( + 13 ) END @@ -1339,8 +1352,11 @@ SELECT DISTINCT + 87 * + + 6 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28092 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* Int64\(21\) \* Int64\(61\) \- Int64\(80\) \+ Int64\(5\) \+ Int64\(\-27\) \* Int64\(48\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 * + + 21 * 61 - + 80 + 5 + - 27 * + 48 col0, + 1 AS col0 +---- +1 +28092 query I rowsort SELECT DISTINCT + + 96 AS col2 @@ -1950,8 +1966,11 @@ SELECT DISTINCT 23, - 92 + + - 0 * + - 77 - 6 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6148 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \+ \(\- Int64\(\-62\)\) \* min\(Int64\(\-99\)\) AS col0" at position 0 and "Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 + - - 62 * MIN ( - 99 ) AS col0, 16 col0 +---- +-6148 +16 query I rowsort label-364 SELECT - COALESCE ( - 62, 1, - NULLIF ( + ( COUNT ( * ) ), 13 ) ) AS col0 @@ -2173,8 +2192,11 @@ SELECT + + 84 / ( - 95 ) + - - 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \+ Int64\(\-33\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 + - 33 AS col0, 29 AS col0 +---- +13 +29 query I rowsort label-407 SELECT + 59 + - - 50 - + CAST ( + 71 AS INTEGER ) * - 78 AS col1 @@ -2404,8 +2426,11 @@ SELECT DISTINCT - MIN ( - - ( - - 7 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4125 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(51\) \- Int64\(63\) \* Int64\(93\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 * 51 - + 63 * + 93 AS col2, + 34 AS col2 +---- +-4125 +34 query I rowsort SELECT 81 * + 50 AS col1 @@ -2724,8 +2749,11 @@ SELECT + 57 * + COUNT ( DISTINCT - - 74 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 15 AS col1, + 79 AS col1 +---- +-15 +79 query I rowsort SELECT ALL ( + 79 ) - + 79 + + - 90 col0 @@ -2980,8 +3008,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( + 48 ) + NULLIF ( + - COUNT ( * ), - 97 * + 49 * + 48 ) - 63 AS col2, - 85 * - 6 AS col2 +---- +-63 +510 query I rowsort label-561 SELECT ALL 64 + + CAST ( NULL AS INTEGER ) @@ -3363,8 +3394,11 @@ SELECT DISTINCT + 72 * - 93 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col2" at position 0 and "Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 5 AS col2, - 72 AS col2 +---- +-72 +5 query I rowsort label-635 SELECT ALL - NULLIF ( - - 25, - 42 ) - - - 96 + + CAST ( NULL AS INTEGER ) * + 79 * CAST ( NULL AS INTEGER ) col0 @@ -3527,8 +3561,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "Int64\(\-50\) \+ \(\- CASE Int64\(77\) WHEN CAST\(Int64\(14\) AS Int32\) THEN Int64\(89\) WHEN Int64\(\-81\) \* Int64\(\-25\) THEN NULL END\) \- Int64\(21\) \* count\(DISTINCT Int64\(\-32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 AS col0, + ( - 50 ) + - + ( + CASE + 77 WHEN CAST ( + 14 AS INTEGER ) THEN + 89 WHEN - 81 * - 25 THEN NULL END ) - + 21 * COUNT ( DISTINCT - 32 ) AS col0 +---- +86 +NULL query III rowsort label-666 SELECT - 93 col0, 82 * 21 - + + 22 AS col1, - ( + - COUNT ( * ) ) * - - CAST ( - + 81 AS INTEGER ) * - MIN ( + - CAST ( 67 AS INTEGER ) ) AS col2 @@ -3601,8 +3638,11 @@ SELECT ALL - 87 + + + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 370816 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col1" at position 0 and "Int64\(74\) \- count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-22\)\) \+ Int64\(\-22\) \+ Int64\(\-74\) \- Int64\(\-58\) \* nullif\(Int64\(98\), Int64\(60\)\) \* Int64\(65\) \+ Int64\(\-18\) / \(\- Int64\(\-39\)\) \+ Int64\(61\) \+ CAST\(Int64\(27\) AS Int32\) \* Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 28 AS col1, 74 - COUNT ( * ) + - - 22 + + - 22 + - 74 - - 58 * NULLIF ( + ( + 98 ), + 60 ) * + 65 + + - 18 / - - 39 + + 61 + + CAST ( ( 27 ) AS INTEGER ) * + 48 col1 +---- +-28 +370816 query I rowsort label-679 SELECT MIN ( ALL - NULLIF ( 47, + 49 - - + 10 ) ) / - ( - + 51 ) @@ -4015,8 +4055,11 @@ SELECT ALL - + 83 AS col2, - NULLIF ( - 87, + 32 + + 92 ) * - ( - 94 ) + + - 3 + # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 141 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-92\)\) AS col1" at position 0 and "Int64\(86\) \+ Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 92 AS col1, 86 + + + 55 AS col1 +---- +141 +92 query I rowsort label-758 SELECT - + COUNT ( * ) / - ( MIN ( 11 ) ) + - 4 * + - 96 * 79 * 57 * 60 + COUNT ( * ) + - - CASE 90 WHEN + + COUNT ( - 46 ) + - 33 THEN NULL WHEN + CASE 62 WHEN + 63 - - 3 + + + 70 THEN NULL WHEN + 5 THEN - 94 * + 69 - - COUNT ( * ) - - - 38 + + 85 + - 97 * - COALESCE ( - + 1, 80 + 59 * + + 10 - ( 70 ) + 7, - 39 * + 44 ) * 57 / 37 * 73 ELSE 74 END THEN 6 * - CAST ( NULL AS INTEGER ) + 85 * + 60 END / 19 @@ -4115,8 +4158,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 95 * 91 AS col1, 4 * - COUNT ( * ) * + 46 col1 +---- +-184 +8645 query I rowsort SELECT DISTINCT - 11 - - 93 + - 78 * - 26 @@ -4484,8 +4530,12 @@ SELECT - - 96 AS col2, + 97 AS col1 # Datafusion - Expected - 27 # Datafusion - Expected - 17 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col1" at position 0 and "\(\- coalesce\(Int64\(\-66\), \(\- CAST\(NULL AS Int32\)\)\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 27 AS col1, 17 AS col2, - COALESCE ( - 66, - ( + CAST ( NULL AS INTEGER ) ) ) * - - COUNT ( * ) AS col1 +---- +17 +27 +66 query II rowsort SELECT DISTINCT 4 AS col0, 40 * - 96 AS col1 @@ -4574,8 +4624,12 @@ SELECT ALL + 96 * + + 52 * + + ( + MIN ( ALL 53 ) ) col2 # Datafusion - Expected - 7 # Datafusion - Expected - 94 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \+ Int64\(47\) AS col2" at position 0 and "Int64\(9\) \- Int64\(\-84\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 40 + + 47 AS col2, 9 - - 84 + + COUNT ( * ) AS col2, + 49 / - 3 col2 +---- +-16 +7 +94 query I rowsort SELECT - ( 37 ) + - + 19 @@ -4832,8 +4886,11 @@ SELECT ALL + 3 + - 96 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 "Int64\(23\) / Int64\(35\) \* Int64\(\-30\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 / + 35 * - 30 AS col1, 85 AS col1 +---- +0 +85 query I rowsort label-915 SELECT 97 + 26 + COUNT ( * ) @@ -5186,8 +5243,11 @@ SELECT ALL + 11 / + 30 + - NULLIF ( - + 75, ( COUNT ( * ) ) * + 1 + 85 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) / Int64\(21\) \+ Int64\(29\) AS col1" at position 0 and "\(\- CAST\(Int64\(24\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 28 / + 21 + + 29 AS col1, - CAST ( 24 AS INTEGER ) AS col1 +---- +-24 +28 query I rowsort label-982 SELECT + 38 * - MAX ( 2 ) @@ -5212,8 +5272,11 @@ SELECT ALL - 36 / + 38 + + 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1947 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \* \(\- Int64\(1\)\) \- Int64\(96\) \+ Int64\(78\) \* \(\- Int64\(11\)\) \- Int64\(47\) \+ Int64\(\-33\) \* Int64\(\-90\) AS col0" at position 0 and "Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 22 * - + 1 - 96 + + 78 * + - ( + ( + 11 ) ) - 47 + + - 33 * - 90 AS col0, - 64 AS col0 +---- +-64 +1947 query I rowsort SELECT ALL + + 13 AS col1 @@ -5816,8 +5879,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) / + + 54 AS col1, COUNT ( * ) + ( + + 91 ) * + 20 * 9 AS col1 +---- +0 +16381 query I rowsort SELECT + 85 * + 11 @@ -6383,8 +6449,11 @@ SELECT DISTINCT - COUNT ( + 79 ) / 22 * - 67 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(3\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-3\) \- Int64\(81\) \- \(\- CASE Int64\(\-31\) WHEN \(\- \(\- min\(Int64\(54\)\)\)\) \+ Int64\(15\) THEN NULL ELSE Int64\(11\) / coalesce\(CASE Int64\(\-32\) WHEN Int64\(56\) THEN Int64\(\-21\) END, Int64\(37\) \- \(\- Int64\(23\)\), Int64\(0\)\) END\) \* CAST\(Int64\(64\) AS Int32\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +14 +NULL query I rowsort label-1208 SELECT + - COUNT ( * ) + - + 55 @@ -6394,8 +6463,11 @@ SELECT + - COUNT ( * ) + - + 55 # 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 "\(\- Int64\(\-7\)\) / Int64\(13\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 7 / + 13 AS col0, 75 AS col0 +---- +0 +75 query I rowsort SELECT - + 38 + - + 42 @@ -6600,8 +6672,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 18 AS col2, - COUNT ( * ) AS col2 +---- +-1 +-18 query I rowsort label-1250 SELECT 62 * - CAST ( NULL AS INTEGER ) + - 35 + + 80 + + 9 * + 32 @@ -7678,8 +7753,11 @@ SELECT DISTINCT + CAST ( + 96 AS INTEGER ) * - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "\(\- sum\(Int64\(77\)\)\) \+ Int64\(\-87\) \+ Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 41 AS col0, - SUM ( 77 ) + - 87 + 54 AS col0 +---- +-110 +41 query I rowsort SELECT + ( - 6 ) * ( + CASE WHEN ( - 3 ) NOT BETWEEN NULL AND ( NULL ) THEN + 98 * 43 ELSE - 93 + - 40 * + 68 END ) * 57 AS col0 @@ -7879,8 +7957,11 @@ SELECT + 72 / COUNT ( * ) * - 35 - + SUM ( ALL - + ( 51 ) ) + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, - 76 AS col1 +---- +-76 +1 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -8302,8 +8383,12 @@ SELECT 54 / + 66 AS col2 # Datafusion - Expected - -50 # Datafusion - Expected - 2 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- coalesce\(Int64\(36\), Int64\(51\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 50 * COUNT ( * ) AS col0, ( + 60 ) / + 28, - COALESCE ( 36, + 51 ) AS col0 +---- +-36 +-50 +2 query II rowsort SELECT 85 + - 49, - 82 * 28 AS col1 @@ -8876,8 +8961,11 @@ SELECT DISTINCT - 66 - - 65 / - 24 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - -166 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col2" at position 0 and "Int64\(\-99\) \+ Int64\(\-67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 19 AS col2, - 99 + + + ( - 67 ) AS col2 +---- +-166 +-19 query I rowsort SELECT 78 + 96 AS col1 @@ -8942,8 +9030,11 @@ SELECT 20 + + 26 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 89 col2, + 91 AS col2 +---- +89 +91 query I rowsort label-1702 SELECT 30 + - 68 + + 15 + + 46 * 93 + 27 - + COUNT ( * ) + + 90 * MIN ( ALL 1 ) - + 99 @@ -9996,8 +10087,11 @@ SELECT ALL COUNT ( * ) + - 23 AS col2, + 55 * - + COUNT ( 11 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \+ \(\- Int64\(6\)\) AS col1" at position 0 and "Int64\(17\) \* Int64\(0\) \* Int64\(\-42\) \* nullif\(CAST\(NULL AS Int32\), Int64\(98\) \* Int64\(11\) / Int64\(12\) \* Int64\(\-13\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 + - + 6 AS col1, 17 * - 0 * + - 42 * + NULLIF ( + + CAST ( NULL AS INTEGER ), 98 * + 11 / + + 12 * - 13 ) AS col1 +---- +-96 +NULL query I rowsort label-1903 SELECT MAX ( + 12 ) @@ -10257,8 +10351,11 @@ 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\(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\. +query II valuesort SELECT - 61 / + 57 AS col1, + 12 - + 79 + NULLIF ( - COUNT ( * ), + 39 * 15 + - SUM ( ALL - 7 ) * COUNT ( * ) + - 80 ) + + 71 AS col1 +---- +-1 +3 query I rowsort label-1951 SELECT - COALESCE ( + 32, MIN ( DISTINCT - 78 ) + + - 92, - 44 + - + COUNT ( DISTINCT - - 67 ) * - + 65 + - - 95 * + 75 / - NULLIF ( + 59, - 51 / + 32 + + 3 + + - 46 ) * - ( + 94 ) ) + + 99 AS col0 @@ -10268,8 +10365,11 @@ SELECT - COALESCE ( + 32, MIN ( DISTINCT - 78 ) + + - 92, - 44 + - + COUNT ( DIS # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(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 II valuesort SELECT MIN ( ALL 83 ) col2, + 44 AS col2 +---- +44 +83 query I rowsort label-1953 SELECT - COALESCE ( - - 70, + 66, + 48 ) * + ( - MIN ( 27 ) ) @@ -10842,8 +10942,11 @@ SELECT ALL 50 + 40 * COUNT ( * ) * - 40 + + 87 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, + COUNT ( * ) AS col1 +---- +-1 +1 query I rowsort label-2062 SELECT + 21 * COUNT ( * ) AS col1 @@ -11286,8 +11389,11 @@ SELECT - 57 col1, 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 875 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) \+ Int64\(11\) \* Int64\(87\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 82 + 11 * + + 87 AS col0, 63 AS col0 +---- +63 +875 query II rowsort label-2147 SELECT ALL - 74 + COUNT ( DISTINCT 42 ) AS col1, SUM ( - 63 ) @@ -11343,8 +11449,11 @@ SELECT + - ( MAX ( DISTINCT - ( 88 ) ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 459 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) \+ Int64\(\-85\) \* Int64\(\-6\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 51 + + - 85 * - 6 AS col2, 3 col2 +---- +3 +459 query II rowsort SELECT DISTINCT - - 25, 64 + - 30 AS col1 @@ -11380,8 +11489,11 @@ SELECT DISTINCT - + 75 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 88 AS col1, COUNT ( * ) AS col1 +---- +-88 +1 query I rowsort SELECT 67 * - + 44 AS col2 @@ -11640,8 +11752,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2184 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* Int64\(9\) \- Int64\(85\) \+ Int64\(31\) \* \(\- CAST\(Int64\(86\) AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / CAST\(Int64\(57\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 63 * 9 - 85 + ( 31 ) * + - CAST ( + 86 AS INTEGER ) AS col1, COUNT ( * ) / + CAST ( 57 AS INTEGER ) AS col1 +---- +-2184 +0 query I rowsort label-2214 SELECT - - 80 / 31 @@ -12009,8 +12124,11 @@ SELECT + 30 AS col1, - 13 * + - 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(97\)\) AS col1" at position 0 and "Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 97 AS col1, - 84 AS col1 +---- +-84 +-97 query I rowsort label-2283 SELECT COALESCE ( + + ( + - COUNT ( * ) ), + MAX ( DISTINCT - COALESCE ( + 17, + + 87 ) ), 94, 63 * - + MAX ( + - 97 ) ) * + 19 @@ -12169,8 +12287,11 @@ SELECT ALL - 7 * + 6 # 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\(27\) / Int64\(91\) \* Int64\(\-92\) \+ \(\- Int64\(\-64\)\) \+ max\(DISTINCT nullif\(Int64\(26\), Int64\(91\) \* Int64\(\-67\) \* Int64\(27\) \+ \(\- Int64\(42\)\) \+ Int64\(\-91\)\)\) AS col0" at position 0 and "Int64\(72\) / coalesce\(Int64\(5\), Int64\(\-51\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 27 / 91 * - 92 + - - 64 + MAX ( DISTINCT + NULLIF ( 26, 91 * + - 67 * 27 + - + 42 + + - 91 ) ) col0, 72 / + + COALESCE ( + 5, + - 51 ) AS col0 +---- +14 +90 query I rowsort label-2314 SELECT DISTINCT 96 + + 37 / 68 @@ -12885,8 +13006,11 @@ 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\(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\. +query II valuesort SELECT ALL - 47 AS col1, - NULLIF ( + - 39, + COALESCE ( - 41, - COUNT ( * ) ) * + - 63 ) + NULLIF ( 15, + - COUNT ( * ) * COUNT ( * ) * - 43 ) AS col1 +---- +-47 +54 query I rowsort label-2451 SELECT - + 97 * 61 - 58 + + + COUNT ( * ) / - 61 @@ -13223,8 +13347,11 @@ SELECT ALL + ( + + 85 ) - - - 83 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col0" at position 0 and "Int64\(\-4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 90 AS col0, - 4 AS col0 +---- +-4 +-90 query I rowsort label-2514 SELECT + + COUNT ( * ) + 61 + COUNT ( * ) AS col1 @@ -13281,8 +13408,11 @@ SELECT 67 * - - 42 # 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 "Int64\(64\) AS col0" at position 0 and "Int64\(80\) / Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 64 AS col0, 80 / 33 AS col0 +---- +2 +64 query I rowsort SELECT - 24 * - 32 + 5 @@ -13424,8 +13554,11 @@ SELECT ALL 40 AS col1, + 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 99 col1, 66 AS col1 +---- +66 +99 query I rowsort label-2552 SELECT 74 + - 87 * - MAX ( 5 ) AS col2 @@ -13791,8 +13924,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) AS col2" at position 0 and "Int64\(2\) \* \(\- \(\- count\(CAST\(NULL AS Int32\)\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 3 AS col2, 2 * - - COUNT ( + CAST ( NULL AS INTEGER ) ) * - + COUNT ( * ) + + COUNT ( * ) AS col2 +---- +-3 +1 query I rowsort SELECT - - 28 + 23 col1 @@ -14075,8 +14211,11 @@ SELECT ( 15 ) * + - MIN ( DISTINCT + + ( + 67 ) ) + - - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col2" at position 0 and "Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 AS col2, - 12 AS col2 +---- +-12 +39 query I rowsort label-2677 SELECT ALL - CAST ( - + 76 AS INTEGER ) AS col1 @@ -14139,8 +14278,11 @@ SELECT + 15 + - 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col0" at position 0 and "Int64\(\-62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + ( - 44 ) ) AS col0, - 62 col0 +---- +-44 +-62 query I rowsort label-2689 SELECT + COUNT ( * ) + 46 * 75 @@ -14541,8 +14683,11 @@ SELECT DISTINCT 72 AS col0, 84 * - 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 1365 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \+ Int64\(1\) \* Int64\(0\) AS col0" at position 0 and "Int64\(\-65\) \* Int64\(\-21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 + 1 * - 0 AS col0, - 65 * - 21 AS col0 +---- +1365 +96 query I rowsort label-2765 SELECT ALL COALESCE ( + MIN ( ALL 2 ), + + 96 * + ( NULLIF ( 70, 32 ) ) + - 61 + + - 64 ) + - + 20 + - 27 + - 86 @@ -14583,8 +14728,11 @@ SELECT COUNT ( * ) * 32 + - SUM ( ALL 46 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- Int64\(52\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 col0, CAST ( NULL AS INTEGER ) * - + 52 AS col0 +---- +41 +NULL query I rowsort SELECT 54 + - 49 * + - 0 AS col1 @@ -14715,8 +14863,11 @@ SELECT COUNT ( * ) * + ( - + 59 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3264 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-64\)\) AS Int32\) \- Int64\(80\) \* Int64\(\-40\) AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( - - 64 AS INTEGER ) - 80 * - 40 AS col0, 59 col0 +---- +3264 +59 query I rowsort label-2799 SELECT 69 / - 91 * CAST ( - 54 AS INTEGER ) * COALESCE ( 30, - 20 * CASE - 86 WHEN - + CAST ( NULL AS INTEGER ) THEN SUM ( ALL - - 21 ) * + + 46 / - + COUNT ( * ) * COUNT ( * ) + + 36 END ) * - COUNT ( ALL - 69 ) + 78 + 52 + 32 + + + 46 * - 91 * + 28 - + 42 @@ -14906,8 +15057,11 @@ SELECT ALL - COUNT ( - 51 ) / + 5 * - 36 - COUNT ( * ) + + MAX ( DISTINCT + + 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "Int64\(13\) \+ CASE Int64\(77\) WHEN Int64\(67\) THEN Int64\(64\) END \- \(\- CAST\(NULL AS Int32\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-72\) \* coalesce\(Int64\(\-33\), Int64\(29\) \* Int64\(99\) \+ CAST\(Int64\(97\) AS Int32\), \(\- min\(Int64\(\-92\)\)\) \* Int64\(\-39\) \* Int64\(\-99\) \+ Int64\(\-2\) / Int64\(\-88\) \* Int64\(\-1\) / Int64\(74\) \* Int64\(34\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +98 +NULL query I rowsort label-2836 SELECT - COUNT ( * ) / 41 @@ -15330,8 +15484,11 @@ SELECT - + 50 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) \- Int64\(\-99\) \+ Int64\(36\) \- Int64\(89\) AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 87 - - 99 + 36 - + 89 AS col2, + 64 AS col2 +---- +-41 +64 query I rowsort SELECT - 87 - + - 75 col2 @@ -16191,8 +16348,11 @@ SELECT ALL + - 83 AS col0, 58 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col2" at position 0 and "Int64\(6\) \+ Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 92 AS col2, + 6 + + 44 AS col2 +---- +50 +92 query I rowsort label-3085 SELECT - + 3 * MIN ( DISTINCT + + 6 ) - 88 @@ -16302,8 +16462,11 @@ SELECT - 49 + + - 62 * ( - 98 ) + COUNT ( DISTINCT 59 ) * + 78 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - 2972 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(89\)\)\) AS col0" at position 0 and "Int64\(47\) \* Int64\(62\) \+ Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( + 89 ) AS col0, + 47 * + 62 + + 58 AS col0 +---- +-89 +2972 query I rowsort SELECT + COALESCE ( + + 62, + - 22 ) + + ( - 77 ) AS col1 @@ -16674,8 +16837,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "Int64\(37\) / coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(23\) \* Int64\(17\) \* \(\- CAST\(\(\- nullif\(Int64\(73\), Int64\(11\) \* \(\- Int64\(\-10\) \* Int64\(83\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) \+ \(\- Int64\(35\) \+ CAST\(Int64\(\-17\) AS Int32\) \* Int64\(60\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-37 +88 query II rowsort label-3178 SELECT ALL 66 / 64, + 64 * + 50 * + + CASE - 95 WHEN - COUNT ( * ) * - ( 70 ) THEN NULL WHEN ( - 4 ) THEN NULL ELSE + 12 / + 16 + + 43 END AS col2 @@ -17106,8 +17272,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col2, 2 AS col2 +---- +-1 +2 query I rowsort SELECT ALL 81 - 93 @@ -17169,8 +17338,11 @@ SELECT DISTINCT - 76 * 33 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col2" at position 0 and "Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 14 AS col2, + 39 AS col2 +---- +14 +39 query I rowsort label-3273 SELECT ALL - + 99 / + - 43 @@ -17836,8 +18008,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 888 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col0" at position 0 and "Int64\(24\) \* Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) AS col0, 24 * + 37 AS col0 +---- +-1 +888 query I rowsort SELECT 70 * + 48 * + 80 AS col0 @@ -18284,8 +18459,11 @@ SELECT - 0 - 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 93440 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(22\), Int64\(\-65\) \* Int64\(43\) \+ \(\- Int64\(11\)\)\)\) AS col1" at position 0 and "Int64\(\-16\) \* Int64\(\-80\) \* Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( 22, - 65 * + 43 + - + 11 ) AS col1, - 16 * - 80 * + + 73 AS col1 +---- +-22 +93440 query I rowsort label-3486 SELECT + 23 + - COUNT ( * ) AS col1 @@ -18822,8 +19000,11 @@ SELECT ALL 64 * 42 - + COUNT ( * ) + 58 / CAST ( - + 46 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 66 AS col1, + COUNT ( * ) AS col1 +---- +1 +66 query I rowsort SELECT ALL 41 * + 8 AS col1 @@ -18933,8 +19114,11 @@ SELECT + + 67 + 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 AS col1, 36 AS col1 +---- +36 +87 query II rowsort SELECT ALL - 98 * + - 7 * 71, - 69 AS col1 @@ -19030,8 +19214,11 @@ SELECT + 22 * - 43 * - - COUNT ( ALL 40 ) * - NULLIF ( - + 91, 93 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -633 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \* Int64\(\-15\) \- Int64\(\-26\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 * - 15 - - 26 + COUNT ( * ) AS col1, - 98 AS col1 +---- +-633 +-98 query II rowsort SELECT + ( - 50 ) AS col2, + 38 @@ -19433,8 +19620,11 @@ SELECT ALL - COUNT ( ALL + 62 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 73 AS col2, 52 AS col2 +---- +52 +73 query I rowsort SELECT ALL - NULLIF ( - - 90, + 0 ) * + - 40 - - 12 - 25 AS col2 @@ -19489,8 +19679,11 @@ SELECT ALL - MIN ( DISTINCT + 16 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 210846 # Datafusion - Expected - -513675085 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* Int64\(31\) \+ Int64\(57\) \* Int64\(\-38\) \* Int64\(\-97\) AS col0" at position 0 and "Int64\(\-86\) \* Int64\(\-39\) \* Int64\(\-91\) \* Int64\(51\) \* Int64\(33\) \+ Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( 24 ) * 31 + + 57 * + - 38 * - 97 AS col0, - 86 * - 39 * - 91 * 51 * + + 33 + 77 AS col0 +---- +-513675085 +210846 query I rowsort SELECT DISTINCT + 3 * 50 @@ -19645,8 +19838,11 @@ SELECT DISTINCT 2 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 83 AS col2, CAST ( NULL AS INTEGER ) col2 +---- +-83 +NULL query II rowsort SELECT DISTINCT 36 AS col2, + 65 + - - 80 col1 @@ -19992,8 +20188,11 @@ 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\(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\. +query II valuesort 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 +---- +-61 +NULL query I rowsort SELECT + 8 + + - 42 @@ -20084,8 +20283,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 30 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 65 AS col2, 30 AS col2 +---- +30 +65 query I rowsort label-3830 SELECT ( + CAST ( - - COUNT ( * ) AS INTEGER ) ) @@ -20237,8 +20439,11 @@ SELECT ALL - 95 * - 76 * + - 0 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 123 # Datafusion - Expected - -5832 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* Int64\(3\) AS col0" at position 0 and "\(\- CAST\(Int64\(\-81\) AS Int32\)\) \* Int64\(\-72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 41 * + + 3 col0, - CAST ( + - 81 AS INTEGER ) * - 72 AS col0 +---- +-5832 +123 query II rowsort SELECT ALL 10, 25 * - 67 AS col0 @@ -20284,8 +20489,11 @@ SELECT + 28 * 99 * 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 7650 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "Int64\(85\) \* Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4 AS col2, + 85 * + 90 AS col2 +---- +4 +7650 query I rowsort label-3868 SELECT - 4 / COUNT ( * ) * - 78 + + 88 + + + 73 @@ -20373,8 +20581,11 @@ SELECT ALL - COUNT ( * ) + + 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2496 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* \(\- Int64\(\-96\)\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 26 * - - 96 AS col0, + 97 AS col0 +---- +2496 +97 query I rowsort label-3885 SELECT COUNT ( * ) * + 52 + 52 col0 @@ -20460,8 +20671,11 @@ SELECT 6 + 8 - + 55 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 158 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ Int64\(63\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 + 63 AS col1, - CAST ( NULL AS INTEGER ) / + 61 AS col1 +---- +158 +NULL query I rowsort label-3902 SELECT 65 * - MAX ( DISTINCT + 3 ) - 75 + + COALESCE ( 30, + 14 ) / - 67 AS col0 @@ -20577,8 +20791,11 @@ SELECT ALL COUNT ( 42 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 AS col1, + 66 AS col1 +---- +16 +66 query I rowsort label-3924 SELECT ALL - 60 + + - COUNT ( * ) * - + SUM ( ALL 76 ) + - + 69 + - 98 @@ -21124,8 +21341,11 @@ SELECT - 55 * - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col0" at position 0 and "max\(Int64\(29\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 62 AS col0, MAX ( ALL 29 ) col0 +---- +-62 +29 query I rowsort label-4029 SELECT 84 * - COUNT ( * ) + + 27 AS col2 @@ -21292,8 +21512,11 @@ SELECT ALL NULLIF ( - 56, + 21 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-88\)\)\) / \(\- CAST\(NULL AS Int32\)\) \* Int64\(58\) AS col0" at position 0 and "\(\- CASE Int64\(54\) WHEN Int64\(8\) \* Int64\(71\) \+ sum\(Int64\(\-86\)\) THEN \(\- Int64\(\-94\)\) / Int64\(75\) \* \(\- Int64\(\-33\)\) / Int64\(1\) / Int64\(\-33\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-61\) \+ Int64\(\-85\) WHEN Int64\(38\) THEN Int64\(\-50\) WHEN coalesce\(Int64\(62\), Int64\(57\) \* Int64\(41\), Int64\(55\)\) \+ Int64\(33\) THEN \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-21\) \+ Int64\(94\) \* CAST\(Int64\(70\) AS Int32\) \* count\(Int64\(\-29\)\) END\) \+ \(\- CASE \(\- min\(Int64\(58\)\)\) WHEN Int64\(36\) THEN Int64\(10\) WHEN Int64\(71\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE NULL END\) \* Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +NULL +NULL query I rowsort label-4061 SELECT - CAST ( NULL AS INTEGER ) - + + CASE + ( - 99 ) WHEN - + ( 34 ) * - + 14 + + 88 * + - CASE + CAST ( COALESCE ( + ( - - 11 ), + 84, + - 12 ) AS INTEGER ) WHEN + - 54 THEN 39 + - 31 ELSE NULL END - 91 THEN NULL ELSE + COUNT ( * ) + + NULLIF ( 25, - 40 + - - 65 ) END * - 0 - + 35 AS col2 @@ -21627,8 +21850,11 @@ SELECT 79 * + + 5 + + 19 * + - 47 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2688 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* Int64\(56\) AS col1" at position 0 and "Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 * 56 AS col1, - 79 col1 +---- +-79 +2688 query I rowsort SELECT ALL + 88 * - + 57 @@ -22278,14 +22504,20 @@ SELECT - 58 + + + 86 + - ( - 72 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \- \(\- Int64\(\-99\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(51\) \+ Int64\(\-52\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(51\) \* Int64\(73\) \+ Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 42 - - - 99 / - + COUNT ( * ) AS col2, 51 + - 52 + - CAST ( NULL AS INTEGER ) * + 51 * + ( 73 ) + + 12 AS col2 +---- +57 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - -343133 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col0" at position 0 and "Int64\(96\) \* nullif\(Int64\(\-1\), Int64\(41\)\) \* Int64\(45\) \+ Int64\(42\) \- Int64\(\-59\) \* Int64\(\-66\) \* Int64\(87\) \- Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 51 AS col0, 96 * + + NULLIF ( + ( + - 1 ), 41 ) * + + 45 + + 42 - - 59 * - 66 * + + 87 - + 77 AS col0 +---- +-343133 +-51 query I rowsort label-4246 SELECT COUNT ( ALL - 97 ) AS col1 @@ -22295,8 +22527,11 @@ SELECT COUNT ( ALL - 97 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(68\)\) AS col1" at position 0 and "Int64\(\-68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 68 AS col1, ( - 68 ) AS col1 +---- +-68 +-68 query I rowsort SELECT ALL - ( + - 73 ) @@ -22311,8 +22546,11 @@ SELECT + + CAST ( - 81 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -208208 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* Int64\(\-88\) \* Int64\(26\) AS col2" at position 0 and "Int64\(\-49\) \+ Int64\(20\) / Int64\(\-77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 * - 88 * + 26 AS col2, - 49 + 20 / - 77 AS col2 +---- +-208208 +-49 query I rowsort label-4251 SELECT - 8 * - ( NULLIF ( + 77, 6 ) ) - + + 54 + - CASE CASE - - CAST ( + 25 AS INTEGER ) WHEN + 79 / - + COUNT ( * ) + 69 - - - 12 + + - 26 * - 69 THEN 47 * + 97 END WHEN + 79 THEN - 72 * - 90 + + 32 * - + 25 ELSE NULL END - + 91 @@ -22796,8 +23034,11 @@ SELECT 17 * MIN ( - 44 ) * 86 * - - 38 + + + 84 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col0, 7 AS col0 +---- +7 +NULL query I rowsort SELECT 20 * + + 50 @@ -22831,8 +23072,11 @@ SELECT DISTINCT ( + - 74 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - -4069 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col1" at position 0 and "Int64\(71\) \+ Int64\(2\) \* Int64\(45\) \* \(\- CAST\(\(\- nullif\(Int64\(\-46\), Int64\(4\) \+ min\(\(\- Int64\(10\)\)\) \* Int64\(2\) \* \(\- CASE Int64\(88\) WHEN Int64\(64\) THEN max\(DISTINCT Int64\(95\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(83\) \+ Int64\(29\) WHEN Int64\(\-89\) THEN NULL WHEN Int64\(61\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(27\) \* Int64\(6\) ELSE Int64\(7\) \* \(\- Int64\(40\)\) \* Int64\(\-58\) \* count\(Int64\(1\)\) AS count\(\*\) END\)\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-4069 +-55 query I rowsort label-4348 SELECT + 20 - - COUNT ( * ) @@ -22882,8 +23126,11 @@ SELECT DISTINCT - COUNT ( DISTINCT + COALESCE ( - 95, - - 81 + - 56, - 87 ) ) AS # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \- Int64\(44\) AS col2" at position 0 and "nullif\(Int64\(63\), \(\- Int64\(10\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 8 - 44 AS col2, NULLIF ( + 63, - + 10 ) AS col2 +---- +-36 +63 query I rowsort SELECT DISTINCT - 53 * - 59 col2 @@ -24171,8 +24418,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 480 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* Int64\(10\) AS col1" at position 0 and "Int64\(\-67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 * 10 AS col1, - 67 AS col1 +---- +-67 +480 query II rowsort label-4604 SELECT + 81 * 48 AS col2, + COUNT ( * ) @@ -24188,8 +24438,11 @@ SELECT ALL 21 / + 81 + - ( 13 ) / - SUM ( - 39 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1413 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ Int64\(\-68\) \+ Int64\(\-19\) \* Int64\(73\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 42 + + - 68 + - 19 * + + 73 AS col2, 88 col2 +---- +-1413 +88 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -24207,8 +24460,11 @@ SELECT ALL 48 * + COUNT ( * ) - - 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5742 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(66\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 87 * 66 AS col0, COUNT ( * ) AS col0 +---- +1 +5742 query I rowsort label-4610 SELECT ALL + COUNT ( DISTINCT + 75 ) + - 56 * - ( - COUNT ( * ) ) + 12 / - + 68 * - 78 * 5 * + COALESCE ( + 62, - - 96 ) / 59 @@ -24269,8 +24525,11 @@ SELECT DISTINCT + CAST ( + 22 AS INTEGER ) * + + SUM ( ALL 53 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 AS col2, 16 col2 +---- +-48 +16 query I rowsort SELECT ALL - 38 * - 51 @@ -24290,8 +24549,11 @@ SELECT 32 + + 43 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col0" at position 0 and "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 43 AS col0, ( - CAST ( + COUNT ( * ) AS INTEGER ) ) AS col0 +---- +-1 +43 query I rowsort label-4625 SELECT ALL + 66 + MIN ( ALL - 18 ) + - 92 @@ -24988,8 +25250,11 @@ SELECT ALL COUNT ( * ) * - 21 col1 # 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 "Int64\(1\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 1 AS col1, + 59 AS col1 +---- +1 +59 query II rowsort SELECT - + 25 AS col2, + 22 + + CASE 75 WHEN 2 THEN - 15 * + 2 ELSE 92 * 47 END AS col1 @@ -26046,8 +26311,11 @@ SELECT - + 27 * - COUNT ( * ), + 35 - - 4 + NULLIF ( 18, + ( - 89 ) * 21 * COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - -2673 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) \+ Int64\(0\) AS col0" at position 0 and "Int64\(\-81\) \* Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 17 + 0 AS col0, - 81 * 33 AS col0 +---- +-17 +-2673 query I rowsort SELECT + 34 * + 52 + - - 61 @@ -26207,8 +26475,11 @@ SELECT ALL + 36 - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, 98 AS col0 +---- +1 +98 query I rowsort SELECT - 92 - - 49 @@ -26428,8 +26699,11 @@ SELECT ALL 93 - 75 * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-91\)\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 91 AS col0, 42 AS col0 +---- +42 +91 query I rowsort label-5037 SELECT - COUNT ( DISTINCT - 61 ) + - 23 @@ -26481,8 +26755,11 @@ SELECT ALL COUNT ( ALL - 42 ) * - 53 + - + 64 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - -387750 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(\-13\) AS col0" at position 0 and "Int64\(55\) \* Int64\(75\) \* Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 + - 13 col0, 55 * + 75 * - 94 AS col0 +---- +-13 +-387750 query I rowsort label-5047 SELECT DISTINCT 0 / + - 18 AS col1 @@ -26609,8 +26886,11 @@ 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\(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\. +query II valuesort SELECT ALL + SUM ( DISTINCT 24 ) / + + 48 * + - 24 + COUNT ( * ) + + 29 + 58 AS col0, - 72 col0 +---- +-72 +88 query I rowsort label-5072 SELECT DISTINCT + 27 / 52 * MIN ( ALL 13 ) + 21 * 75 AS col0 @@ -26939,8 +27219,11 @@ SELECT ALL - 36 * + 31 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 70 col1, 42 AS col1 +---- +42 +70 query I rowsort label-5137 SELECT - COUNT ( ALL 3 ) @@ -27112,8 +27395,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) + + 53 + 52 col2, 5 + - - 56 + + CASE - 21 WHEN - 66 THEN NULL WHEN 72 + 96 + + 57 THEN - COUNT ( * ) ELSE NULL END + - 92 col2 +---- +104 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -27298,8 +27584,11 @@ SELECT - - 53 - + - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -6532 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-90\)\) AS col0" at position 0 and "Int64\(71\) \* \(\- Int64\(92\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 90 ) col0, + 71 * - + 92 col0 +---- +-6532 +90 query I rowsort SELECT - + 83 + - 99 AS col2 @@ -27828,8 +28117,11 @@ SELECT ALL - NULLIF ( + 11, 42 ) * - 23 * + 78 + + 6 * 61 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 68 AS col0, 26 AS col0 +---- +26 +68 query I rowsort SELECT + 58 * 65 @@ -28116,8 +28408,11 @@ SELECT ALL 64 * - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, 35 AS col0 +---- +35 +NULL query I rowsort label-5362 SELECT + 38 + + - CAST ( NULL AS INTEGER ) + 62 * COUNT ( * ) @@ -28377,8 +28672,11 @@ SELECT + 4 * - + 96 + - 9 col1, 56 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 AS col0, + COUNT ( * ) + + + COUNT ( * ) AS col0 +---- +2 +95 query I rowsort label-5410 SELECT ALL MAX ( + 60 ) @@ -28935,14 +29233,20 @@ 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\(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\. +query II valuesort SELECT + - 7 col1, 89 * + + 89 * - + 86 + + 26 / + 98 + + + COUNT ( * ) + 29 + - COUNT ( * ) * + SUM ( DISTINCT + 47 ) + - 85 AS col1 +---- +-681308 +-7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - -140 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col2" at position 0 and "\(\- Int64\(49\)\) \+ Int64\(\-91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 AS col2, - ( + + 49 ) + - 91 AS col2 +---- +-140 +40 query I rowsort SELECT - - 57 * - - 50 + - 83 AS col0 @@ -29021,8 +29325,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * - 36 AS col0, - 5 AS col0 +---- +-36 +-5 query II rowsort SELECT DISTINCT 58 + - + 3 AS col0, 86 AS col2 @@ -30376,8 +30683,12 @@ SELECT - 18 / + MIN ( + 60 ) + 75 # Datafusion - Expected - 38 # Datafusion - Expected - 80 # Datafusion - Expected - -100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) / Int64\(90\) \* Int64\(44\) \* Int64\(98\) \+ Int64\(38\) AS col2" at position 0 and "\(\- Int64\(15\)\) \+ \(\- Int64\(85\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 44 / 90 * 44 * + 98 + 38 AS col2, 80 AS col0, - + 15 + - + 85 AS col2 +---- +-100 +38 +80 query I rowsort label-5788 SELECT ALL - 96 * + + COUNT ( * ) AS col1 @@ -30705,8 +31016,11 @@ SELECT 8 + - - 1 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col1" at position 0 and "Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 57 col1, - 60 col1 +---- +-57 +-60 query I rowsort label-5850 SELECT 0 + - + 21 * COUNT ( * ) + + 76 + COUNT ( * ) + - 43 * 77 @@ -30772,8 +31086,11 @@ SELECT DISTINCT - ( - + 42 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(14\)\) \+ Int64\(89\) AS col0" at position 0 and "CASE Int64\(\-98\) WHEN \(\- CAST\(Int64\(\-80\) AS Int32\)\) THEN Int64\(6\) ELSE NULL END \* Int64\(31\) / \(\- Int64\(97\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* max\(Int64\(\-39\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +75 +NULL query I rowsort SELECT + 9 + - 97 + 98 AS col1 @@ -30919,8 +31236,11 @@ SELECT - 9 / SUM ( - + 89 ), - 62 - + 10 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col1" at position 0 and "Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 85 AS col1, 89 AS col1 +---- +85 +89 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -30933,8 +31253,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "Int64\(\-46\) / min\(CAST\(Int64\(\-51\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 42 AS col2, - 46 / MIN ( CAST ( - 51 AS INTEGER ) ) AS col2 +---- +0 +42 query I rowsort SELECT - - 23 - + - 81 @@ -31349,8 +31672,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 468863 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \* Int64\(\-72\) \* Int64\(88\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 74 * ( + - 72 ) * 88 - + COUNT ( * ) AS col2, - 15 AS col2 +---- +-15 +468863 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -31681,8 +32007,11 @@ SELECT ALL 27 * + + 94 * + + 7 * - 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \- Int64\(61\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 38 - 61 AS col0, 96 AS col0 +---- +-23 +96 query I rowsort SELECT DISTINCT 97 - + 14 @@ -31759,8 +32088,12 @@ 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\(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\. +query III valuesort SELECT - 3 * + - 31 * + COUNT ( * ) * COUNT ( * ) * 42 * + ( 1 ) AS col1, + 33 + - 16 * + 82 AS col1, - 98 * + CAST ( NULL AS INTEGER ) / - + 51 +---- +-1279 +3906 +NULL query I rowsort label-6048 SELECT DISTINCT - 29 / + 66 * + 35 + - - 23 * - ( - 76 ) + 18 + - 87 @@ -32349,8 +32682,11 @@ 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\(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\. +query II valuesort SELECT ALL 8 * - ( + 87 ) + - COALESCE ( COUNT ( * ), 49 ) + - 27 AS col0, MAX ( ALL - - 86 ) AS col0 +---- +-724 +86 query I rowsort label-6162 SELECT DISTINCT MAX ( DISTINCT - + 79 ) * - 86 + + 60 AS col1 @@ -32880,8 +33216,11 @@ SELECT + COUNT ( * ) + - 46 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 264 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \* Int64\(\-8\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 33 * - 8 AS col1, 11 col1 +---- +11 +264 query I rowsort SELECT ALL 98 + - 98 @@ -33566,8 +33905,11 @@ SELECT ALL + + CAST ( 15 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -4032 -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\(\-56\)\) \* Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 74 col1, SUM ( - 56 ) * 72 AS col1 +---- +-4032 +74 query I rowsort label-6396 SELECT + 98 / 91 AS col2 @@ -33936,8 +34278,11 @@ SELECT + 55 - - + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-61\) AS Int32\) AS col0" at position 0 and "max\(Int64\(92\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( - 61 AS INTEGER ) AS col0, MAX ( ALL + 92 ) AS col0 +---- +-61 +92 query I rowsort SELECT - ( 18 ) * - 92 * + 17 + - 99 @@ -34315,8 +34660,11 @@ SELECT - 67, CAST ( COALESCE ( ( - 93 ), 21 ) AS INTEGER ) 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\(Int64\(60\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 AS col0, COUNT ( ALL + 60 ) AS col0 +---- +1 +91 query I rowsort SELECT + 80 * ( 21 ) col1 @@ -34408,8 +34756,11 @@ 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\(1\)\) AS count\(\*\)\)\) \+ Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( DISTINCT 16 ) AS col2, ( + NULLIF ( + 53, - - 17 + 34 * - COUNT ( * ) ) ) + 94 AS col2 +---- +147 +16 query II rowsort label-6558 SELECT ( - COUNT ( * ) ) AS col1, - 43 @@ -34569,8 +34920,11 @@ SELECT 34 + - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 4 col1, 75 AS col1 +---- +4 +75 query I rowsort SELECT 53 + - - ( + 20 ) col2 @@ -35177,8 +35531,12 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 71 AS col2, 46 * + 98 + + - ( + 74 ) + COUNT ( * ) + - 72 AS col2, - CAST ( - - MIN ( + 79 ) AS INTEGER ) + - COUNT ( * ) AS col1 +---- +-80 +4363 +71 query I rowsort label-6705 SELECT - 54 / - 54 - 8 col1 @@ -35201,8 +35559,13 @@ SELECT DISTINCT + 28 AS col2, ( - 46 ) + - - 74 # Datafusion - Expected - 94 # Datafusion - Expected - 99 # Datafusion - Expected - 5740 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 1 and "Int64\(70\) \* Int64\(82\) AS col2" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIII valuesort SELECT 51, 94 AS col2, + 2 + - - 97 col1, + 70 * 82 AS col2 +---- +51 +5740 +94 +99 query I rowsort label-6709 SELECT ALL 58 / - 22 - - + 58 AS col1 @@ -35222,8 +35585,11 @@ SELECT + + COALESCE ( + 41, - ( + SUM ( ALL - 26 ) ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 6643 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col1" at position 0 and "Int64\(73\) \* \(\- Int64\(\-91\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 7 AS col1, 73 * - - 91 AS col1 +---- +6643 +7 query I rowsort label-6713 SELECT ALL - 47 / + - CAST ( NULL AS INTEGER ) * - 91 * - 86 - + 54 / - + 26 + - - COUNT ( * ) + - ( 90 ) AS col2 @@ -35274,8 +35640,11 @@ SELECT MIN ( DISTINCT + 43 ) / CAST ( 40 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 79 AS col0, + 35 AS col0 +---- +35 +79 query I rowsort label-6722 SELECT + 91 + - 59 + + COUNT ( * ) @@ -35292,8 +35661,12 @@ SELECT ALL - 0 * + 49, + 48 AS col1 # Datafusion - Expected - NULL # Datafusion - Expected - 47 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col1" at position 1 and "\(\- Int64\(\-95\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 51 / CAST ( NULL AS INTEGER ) AS col2, 47 AS col1, - - 95 AS col1 +---- +47 +95 +NULL query I rowsort SELECT 56 + + COALESCE ( 41, 31 ) AS col0 @@ -36036,8 +36409,12 @@ SELECT 32 * - COUNT ( * ) * - - 76 AS col0 # Datafusion - Expected - 59 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 1 and "Int64\(97\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 59, + CAST ( NULL AS INTEGER ) AS col2, + 97 AS col2 +---- +59 +97 +NULL query II rowsort label-6866 SELECT DISTINCT - 45, - COUNT ( DISTINCT + 8 ) * 97 + COUNT ( * ) AS col2 @@ -36126,14 +36503,20 @@ SELECT - MIN ( + 87 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-63\), Int64\(\-5\) \* count\(Int64\(97\)\), Int64\(\-17\) \- Int64\(84\)\) AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( + - 63, + - 5 * + COUNT ( 97 ), - 17 - + 84 ) AS col1, + 43 AS col1 +---- +-63 +43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 3137 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \+ Int64\(\-63\) AS col1" at position 0 and "Int64\(\-58\) \* min\(Int64\(\-55\)\) \- Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 71 + - 63 AS col1, - 58 * MIN ( - 55 ) - 53 col1 +---- +3137 +8 query I rowsort SELECT ALL 79 + 96 AS col0 @@ -36246,8 +36629,11 @@ SELECT ALL - MIN ( + 4 ) AS col2 # 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\(\-68\) \* \(\- Int64\(20\)\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 68 * - + 20 AS col2, + 97 AS col2 +---- +1360 +97 query I rowsort SELECT ALL + CASE + + 80 WHEN + ( - - COALESCE ( 73, + 61 * + - ( - + 53 ) + + - 27 ) ) THEN + - 39 WHEN + 34 THEN NULL END col0 @@ -36842,8 +37228,11 @@ 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\(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\. +query II valuesort SELECT + 11 * + + 95 + + - COUNT ( * ) AS col1, CASE - 59 WHEN 45 * - - 6 * - - 96 * - + COUNT ( * ) THEN COUNT ( * ) ELSE NULL END AS col1 +---- +1044 +NULL query II rowsort label-7022 SELECT ALL - ( + 28 ) * - 40 * - + COUNT ( * ) + - 19 col1, 14 AS col0 @@ -37011,8 +37400,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- Int64\(\-23\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - COUNT ( * ) AS col1, ( - ( - 23 ) ) AS col1 +---- +-1 +23 query II rowsort label-7054 SELECT ALL + 67 col2, MAX ( 5 ) @@ -37404,8 +37796,11 @@ 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\(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\. +query RI valuesort SELECT ALL - NULLIF ( COUNT ( * ), + ( 8 ) + - AVG ( 79 ) - - ( - 1 ) - 0 ) - 32 AS col0, + 99 col0 +---- +-33 +99 query II rowsort SELECT DISTINCT - ( - 38 ), 72 AS col0 @@ -37709,8 +38104,11 @@ SELECT + + 20 * - 83 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col1" at position 0 and "CAST\(Int64\(35\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 96 AS col1, CAST ( + 35 AS INTEGER ) AS col1 +---- +35 +96 query II rowsort label-7188 SELECT DISTINCT + CASE 24 WHEN - - 1 * + 42 THEN - + 61 + - + 50 / + 67 WHEN - 34 * - 63 + MAX ( + 1 ) * 36 + - + 24 THEN - COUNT ( * ) * + CAST ( + ( - 65 ) AS INTEGER ) + + 50 WHEN + + 37 THEN NULL ELSE NULL END, COALESCE ( + NULLIF ( + 45, 14 ), + 38 * - - COALESCE ( - 75, CAST ( NULL AS INTEGER ), + COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) + ( + SUM ( DISTINCT 88 ) ) + - 66 ) + + 52 AS col0 @@ -38917,8 +39315,11 @@ SELECT - 77 - + 73 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 AS col2, + 70 AS col2 +---- +70 +71 query I rowsort label-7415 SELECT + 47 + + 57 - + 48 / + - 70 @@ -38958,8 +39359,11 @@ SELECT DISTINCT + ( + - COUNT ( * ) ) * - 70 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 10 col2, 37 AS col2 +---- +10 +37 query II rowsort label-7423 SELECT + + 36 col0, CAST ( - + 47 AS INTEGER ) @@ -39262,8 +39666,11 @@ SELECT + NULLIF ( + 61, + - 74 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- coalesce\(\(\- nullif\(\(\- \(\- coalesce\(Int64\(63\), Int64\(75\)\)\)\), Int64\(27\) \* Int64\(75\)\)\), Int64\(31\)\)\)\) AS col2" at position 0 and "Int64\(\-57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + SUM ( + - COALESCE ( - NULLIF ( - - COALESCE ( 63, + 75 ), + 27 * + 75 ), 31 ) ) AS col2, - 57 AS col2 +---- +-57 +63 query I rowsort SELECT - ( + 14 ) * + 37 + - ( - 73 ) @@ -39305,8 +39712,11 @@ SELECT DISTINCT - 4 * + 99 AS col1, 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 7 AS col2, + ( + - 88 ) AS col2 +---- +-88 +7 query II rowsort label-7490 SELECT ALL COALESCE ( COUNT ( * ), 55 + ( - - 55 ) ) - + CAST ( NULL AS INTEGER ), + 46 AS col2 @@ -39393,8 +39803,11 @@ SELECT ALL - 25 * - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 74 AS col2, + 27 col2 +---- +27 +74 query I rowsort label-7506 SELECT - MIN ( + - 2 ) AS col1 @@ -39460,8 +39873,11 @@ 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\(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\. +query II valuesort SELECT ( - COUNT ( * ) ), - COUNT ( * ) +---- +-1 +-1 query II rowsort SELECT ( 45 ), + 94 * + 15 AS col1 @@ -39631,8 +40047,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4215 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(75\)\)\) \- \(\- Int64\(\-65\)\) \* Int64\(\-66\) AS col1" at position 0 and "min\(Int64\(\-75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( ( - MAX ( ALL + 75 ) ) ) - - - 65 * + - 66 AS col1, MIN ( - 75 ) AS col1 +---- +-75 +4215 query I rowsort label-7552 SELECT ALL + 58 - + COUNT ( * ) + ( - 92 ) * + - 78 * 29 + 97 AS col2 @@ -40091,8 +40510,11 @@ SELECT ALL ( + 1 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 71 col1, + 82 AS col1 +---- +71 +82 query II rowsort label-7641 SELECT - MAX ( + 0 ) AS col1, + 18 AS col2 @@ -40217,8 +40639,12 @@ 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\(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\. +query III valuesort SELECT + - COUNT ( * ), + COALESCE ( + 1, + COUNT ( * ) ) AS col0, - COUNT ( * ) +---- +-1 +-1 +1 query I rowsort SELECT DISTINCT - ( 29 ) @@ -40296,8 +40722,11 @@ SELECT 41 * - COUNT ( * ), - COALESCE ( 11, - ( MIN ( DISTINCT - 53 ) ) ) * - - # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(7\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 + + 7 AS col0, + 39 AS col0 +---- +39 +84 query I rowsort label-7680 SELECT ALL - 23 + - + 99 / + 12 AS col0 @@ -40571,8 +41000,11 @@ SELECT + - MIN ( - 68 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2106 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* Int64\(\-39\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + 54 ) * - 39 AS col2, 38 AS col2 +---- +-2106 +38 query I rowsort label-7732 SELECT + 56 / ( 57 ) AS col2 @@ -40882,8 +41314,11 @@ SELECT - COUNT ( * ) + - COUNT ( * ) * + 51 - - - COUNT ( * ) + + + 20 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ \(\- nullif\(Int64\(54\), \(\- Int64\(\-55\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 AS col0, - CAST ( NULL AS INTEGER ) + - NULLIF ( 54, - - 55 ) AS col0 +---- +41 +NULL query I rowsort label-7792 SELECT 95 + - COUNT ( * ) AS col2 @@ -41046,8 +41481,11 @@ SELECT ALL + 34 / ( 93 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "Int64\(\-75\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 19 AS col1, - 75 + + + COUNT ( * ) AS col1 +---- +-74 +19 query I rowsort SELECT 40 * - 23 AS col0 @@ -41125,8 +41563,11 @@ SELECT MAX ( ALL 50 ) + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(83\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, ( ( + + 83 ) ) + + COUNT ( * ) AS col0 +---- +1 +84 query II rowsort SELECT DISTINCT - 9 AS col2, 10 @@ -41211,8 +41652,11 @@ SELECT DISTINCT + COUNT ( * ) * - 64 * - - 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ CASE Int64\(\-75\) WHEN Int64\(\-60\) THEN coalesce\(Int64\(51\), Int64\(66\)\) \+ \(\- CAST\(NULL AS Int32\)\) WHEN Int64\(\-28\) THEN NULL ELSE \(\- coalesce\(Int64\(\-85\), Int64\(19\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-67\) \* Int64\(\-74\)\)\) \* Int64\(\-66\) \* \(\- Int64\(42\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- avg\(Int64\(68\)\) \+ CAST\(NULL AS Int32\) \+ \(\- nullif\(\(\- min\(Int64\(49\)\)\), Int64\(95\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-40\) \* Int64\(\-98\) \- \(\- Int64\(\-20\)\) END AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort 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 +---- +85 +NULL query I rowsort SELECT ALL - 84 + - + 92 @@ -41399,8 +41843,12 @@ SELECT - 73 + - - 39 + - 88 # Datafusion - Expected - 72 # Datafusion - Expected - 74 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col2" at position 0 and "\(\- Int64\(96\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 72 AS col2, 29 * COUNT ( * ) + - - COUNT ( * ) + 92 + - 48, - + 96 col2 +---- +-96 +72 +74 query I rowsort label-7890 SELECT - + CAST ( COUNT ( * ) AS INTEGER ) AS col2 @@ -42261,8 +42709,11 @@ SELECT 61 + 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "\(\- nullif\(CAST\(NULL AS Int32\), sum\(Int64\(\-69\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 73 col0, - NULLIF ( CAST ( NULL AS INTEGER ), SUM ( - 69 ) ) + COUNT ( * ) AS col0 +---- +73 +NULL query II rowsort label-8057 SELECT 59, + COUNT ( * ) * - COALESCE ( + 99, - 24 + 34 ) col2 @@ -42403,8 +42854,11 @@ SELECT 30 - + COUNT ( * ) + 58 * - + 60 * 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5832 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* Int64\(72\) AS col2" at position 0 and "\(\- max\(\(\- nullif\(Int64\(32\), CAST\(Int64\(96\) AS Int32\)\)\)\)\) / min\(Int64\(36\) \+ Int64\(37\)\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 81 * 72 AS col2, - MAX ( - + NULLIF ( 32, CAST ( + 96 AS INTEGER ) ) ) / MIN ( 36 + + 37 ) + + CAST ( NULL AS INTEGER ) AS col2 +---- +5832 +NULL query I rowsort SELECT ALL - NULLIF ( - + 87, - 13 - + + 72 ) * 67 @@ -42667,8 +43121,11 @@ SELECT DISTINCT + + MIN ( 99 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -980 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* Int64\(\-60\) \- Int64\(80\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 15 * - 60 - + 80 AS col0, + 57 AS col0 +---- +-980 +57 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -42847,8 +43304,11 @@ SELECT 11 - 32 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \- Int64\(\-42\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 - - 42 AS col1, + 46 AS col1 +---- +46 +99 query I rowsort label-8169 SELECT DISTINCT - 31 * + COUNT ( * ) AS col1 @@ -42963,8 +43423,11 @@ SELECT ALL - COALESCE ( - 27, + - MIN ( + 38 ) * + - 61 * - 82 * 57 / 67 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1782 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* Int64\(33\) AS col0" at position 0 and "Int64\(65\) / CAST\(NULL AS Int32\) \- Int64\(\-53\) \- Int64\(76\) / Int64\(\-46\) \* Int64\(13\) \* Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 54 * + 33 AS col0, 65 / + CAST ( NULL AS INTEGER ) - + - 53 - + 76 / - 46 * 13 * + 36 AS col0 +---- +1782 +NULL query II rowsort label-8190 SELECT - ( - 92 ), - COUNT ( * ) - 66 - + - 28 col1 @@ -43139,8 +43602,12 @@ SELECT ALL - COUNT ( * ) * ( - ( + COUNT ( * ) ) ) AS col0 # Datafusion - Expected - -61 # Datafusion - Expected - -2636 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col2" at position 0 and "Int64\(73\) \+ Int64\(\-63\) \* Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 61 col2, 73 + - 63 * + 43 AS col2, + - 22 AS col0 +---- +-22 +-2636 +-61 query I rowsort label-8224 SELECT + MIN ( + - 68 ) @@ -43317,8 +43784,11 @@ SELECT + 41 + + + 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2715 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-81\) AS col0" at position 0 and "\(\- Int64\(\-45\)\) \* \(\- Int64\(58\)\) \- Int64\(92\) \+ Int64\(\-13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) * - 81 AS col0, ( - - 45 ) * - + 58 - + + 92 + ( + - 13 ) AS col0 +---- +-2715 +NULL query I rowsort SELECT ALL + 20 * - 61 AS col2 @@ -43397,8 +43867,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 20 * + 29 * - - COUNT ( * ) AS col2, + 11 AS col2 +---- +11 +580 query II rowsort SELECT ALL 6 AS col2, 92 * - 80 @@ -43531,8 +44004,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * 31 + + + 93 AS col2, + 22 AS col2 +---- +124 +22 query I rowsort label-8300 SELECT DISTINCT - 14 * - CASE 44 WHEN + 30 THEN ( - 15 ) * - + 35 WHEN + ( 34 ) * 87 + - 87 THEN NULL ELSE 43 / - 79 + + ( - 23 + - 85 ) END col0 @@ -43542,8 +44018,11 @@ SELECT DISTINCT - 14 * - CASE 44 WHEN + 30 THEN ( - 15 ) * - + 35 WHEN + ( 34 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 53 AS col1, 93 AS col1 +---- +53 +93 query I rowsort SELECT DISTINCT - ( + 7 ) AS col0 @@ -43619,8 +44098,11 @@ SELECT ( 80 ) + - + 41 + + 12 - + ( + 75 ) * - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 180 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ min\(Int64\(26\)\) \+ Int64\(90\) AS col1" at position 0 and "nullif\(Int64\(72\), Int64\(71\) \* coalesce\(Int64\(77\), Int64\(74\), CAST\(Int64\(43\) AS Int32\) \+ Int64\(84\) \* Int64\(37\)\) \* sum\(Int64\(76\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 + + MIN ( 26 ) + + 90 AS col1, + NULLIF ( + 72, 71 * + COALESCE ( + 77, 74, CAST ( 43 AS INTEGER ) + 84 * 37 ) * SUM ( 76 ) ) + COUNT ( * ) col1 +---- +180 +73 query II rowsort label-8317 SELECT ALL + 50 - - - 80 + 41 * 8, - 40 / 23 - 40 AS col0 @@ -43758,8 +44240,11 @@ SELECT ALL NULLIF ( + 47, + CASE + 6 WHEN + - 2 * - 18 THEN COUNT ( ALL + 67 ) W # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -388800 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \+ \(\- Int64\(61\)\) AS col0" at position 0 and "Int64\(54\) \* nullif\(\(\- max\(\(\- Int64\(90\)\)\)\), Int64\(32\)\) \* \(\- nullif\(Int64\(80\), Int64\(12\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 96 + - + 61 AS col0, 54 * + NULLIF ( - MAX ( ALL - + 90 ), 32 ) * - NULLIF ( + 80, + 12 ) AS col0 +---- +-388800 +35 query I rowsort label-8343 SELECT + CASE 72 WHEN + - COUNT ( ALL - CAST ( 43 AS INTEGER ) ) THEN NULL WHEN - 27 THEN 78 * - 46 + - - 79 * 38 ELSE NULL END - + - 56 AS col1 @@ -43769,8 +44254,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 16 col0, 45 AS col0 +---- +16 +45 query I rowsort SELECT ALL 40 * + 18 AS col1 @@ -43780,8 +44268,11 @@ SELECT ALL 40 * + 18 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 1493 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \- Int64\(\-82\) \+ Int64\(\-10\) \* Int64\(3\) AS col0" at position 0 and "Int64\(53\) \+ \(\- Int64\(\-90\)\) \* Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 19 - + - 82 + + - 10 * 3 AS col0, 53 + - - 90 * + 16 AS col0 +---- +1493 +33 query I rowsort SELECT DISTINCT + 42 * - - 14 AS col1 @@ -44091,8 +44582,11 @@ SELECT DISTINCT - 16, 2 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "sum\(Int64\(34\)\) / Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + CAST ( NULL AS INTEGER ) AS col0, + SUM ( ALL 34 ) / + - 60 AS col0 +---- +0 +NULL query I rowsort label-8407 SELECT DISTINCT - ( - 95 ) / + 99 @@ -44675,8 +45169,11 @@ SELECT - 34 + - 67 + - 59 * 16 * + 44 # 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 "\(\- min\(DISTINCT \(\- Int64\(\-93\)\)\)\) AS col0" at position 0 and "Int64\(8\) \+ Int64\(\-2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( DISTINCT + ( + - ( - 93 ) ) ) AS col0, + 8 + - 2 AS col0 +---- +-93 +6 query I rowsort label-8518 SELECT - - COUNT ( * ) * + + 93 + + 4 + + 72 + + - COALESCE ( 66, + 95, - COUNT ( * ) ) @@ -44766,8 +45263,12 @@ SELECT DISTINCT - 87 * - 29 AS col1 # Datafusion - Expected - NULL # Datafusion - Expected - -5429 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* \(\- nullif\(Int64\(44\), Int64\(47\) \+ Int64\(94\) \+ Int64\(30\)\)\) \* Int64\(25\) / Int64\(\-99\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(\-61\) \* Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-5429 +44 +NULL query I rowsort label-8534 SELECT - 31 * 79 / - - 84 @@ -44915,8 +45416,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -7372 # Datafusion - Expected - -237510 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) \* Int64\(97\) AS col1" at position 0 and "Int64\(\-87\) \* Int64\(65\) \* Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 76 * 97 AS col1, - 87 * + 65 * 42 col1 +---- +-237510 +-7372 query I rowsort SELECT 93 + + COALESCE ( + ( - 99 ), + 48 ) * - 89 @@ -45067,8 +45571,11 @@ SELECT 7 * - - 19 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col0" at position 0 and "nullif\(\(\- Int64\(\-96\)\), Int64\(59\) \* coalesce\(Int64\(8\), \(\- avg\(Int64\(50\)\)\)\) \+ Int64\(\-33\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 33 AS col0, NULLIF ( - - 96, 59 * + COALESCE ( 8, - + AVG ( 50 ) ) + - 33 ) AS col0 +---- +33 +96 query I rowsort SELECT ( - + ( 28 ) ) + - + 58 AS col2 @@ -45116,8 +45623,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col1, - 54 col1 +---- +-1 +-54 query I rowsort SELECT - 70 * - 82 @@ -45127,8 +45637,11 @@ SELECT - 70 * - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6205 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-85\)\) \* Int64\(\-73\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( - 85 ) * - 73 AS col2, 16 AS col2 +---- +16 +6205 query I rowsort label-8601 SELECT ALL + 38 + NULLIF ( - ( + CAST ( - 28 AS INTEGER ) ), + - 53 ) * - 49 AS col1 @@ -45822,8 +46335,11 @@ SELECT - COUNT ( - + 58 ) # 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 "Int64\(1\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 AS col2, + 2 AS col2 +---- +1 +2 query II rowsort label-8734 SELECT ALL 77 + 84 * 38 col2, COUNT ( * ) + - CAST ( NULL AS INTEGER ) * + 14 AS col0 @@ -45884,8 +46400,11 @@ SELECT COALESCE ( + 84, - CAST ( NULL AS INTEGER ), - 28 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4338 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* Int64\(36\) \* Int64\(98\) / Int64\(49\) \- Int64\(41\) \+ Int64\(\-66\) \+ sum\(Int64\(\-91\)\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 63 * 36 * + 98 / + ( 49 ) - + 41 + - 66 + SUM ( + - 91 ) AS col0, 78 AS col0 +---- +4338 +78 query II rowsort label-8746 SELECT - - 70 + 92 + - 58 + 7, 0 + - - CAST ( 96 AS INTEGER ) AS col0 @@ -45943,8 +46462,11 @@ SELECT DISTINCT - 16 * - + ( 8 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(98\) \+ Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2, 98 + - 45 AS col2 +---- +53 +NULL query I rowsort label-8757 SELECT - SUM ( + 92 ) * + - COALESCE ( - 31, + 15 * + - COUNT ( * ) * + COUNT ( * ) * - 88 ) - - 16 @@ -46327,8 +46849,11 @@ SELECT 98, + 62 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 896 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col1" at position 0 and "Int64\(32\) \* Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 18 AS col1, + 32 * 28 AS col1 +---- +-18 +896 query II rowsort label-8831 SELECT 36 AS col2, CASE + + 7 WHEN - 26 * - + COUNT ( * ) THEN 28 ELSE NULL END * CASE 28 WHEN 33 - - COUNT ( * ) THEN NULL ELSE - 76 END + - - 91 AS col1 @@ -46499,8 +47024,11 @@ SELECT + 53 * - + 69 * + 57 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2950 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) \* Int64\(\-50\) AS col0" at position 0 and "\(\- nullif\(Int64\(76\), \(\- Int64\(\-28\)\) \- Int64\(31\) \- Int64\(\-90\) \+ Int64\(\-15\) \* \(\- Int64\(12\)\) \* Int64\(17\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 59 * - 50 AS col0, - NULLIF ( 76, - ( - 28 ) - + 31 - - 90 + + - 15 * - + 12 * + + 17 ) AS col0 +---- +-76 +2950 query II rowsort label-8864 SELECT - 76 + + COUNT ( * ), + COUNT ( * ) * - - 21 AS col0 @@ -47145,8 +47673,11 @@ SELECT - - 33 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col2" at position 0 and "\(\- min\(DISTINCT \(\- Int64\(8\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 col2, - MIN ( DISTINCT - + 8 ) AS col2 +---- +57 +8 query I rowsort SELECT - - COALESCE ( 99, - 94 ) AS col2 @@ -47504,8 +48035,11 @@ SELECT DISTINCT - COALESCE ( 8, NULLIF ( + NULLIF ( 65, - COUNT ( * ) * - + COUN # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col1" at position 0 and "Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 10 col1, + 6 AS col1 +---- +10 +6 query II rowsort label-9055 SELECT COUNT ( * ) + COALESCE ( - COUNT ( + + 16 ), - CAST ( NULL AS INTEGER ), 67 * + - 21 * - 20 ), 55 col0 @@ -47552,8 +48086,12 @@ SELECT ALL - CAST ( CASE 25 WHEN - COUNT ( * ) THEN NULL ELSE + + 31 END AS INTE # Datafusion - Expected - 0 # Datafusion - Expected - 61 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) / CAST\(Int64\(89\) AS Int32\) AS col2" at position 0 and "Int64\(50\) \+ Int64\(10\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 29 / + CAST ( 89 AS INTEGER ) AS col2, 50 + + + 10 + + COUNT ( * ) col2, 0 / + + 83 * - COUNT ( * ) * 82 +---- +0 +0 +61 query II rowsort label-9064 SELECT ALL + 28 + 0 + - COUNT ( * ) + - MAX ( ALL - 49 ) * - COUNT ( * ) + + 85 + + 29 + + MIN ( + CAST ( NULL AS INTEGER ) ) * + + 41 * + 50 * - 38 * - 45 AS col1, 57 + + 69 @@ -47634,8 +48172,11 @@ SELECT SUM ( ALL + ( - - 25 ) ) * - COALESCE ( - + 55, 34 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 203433 # Datafusion - Expected - 300 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* \(\- Int64\(\-57\)\) \* CAST\(Int64\(43\) AS Int32\) AS col0" at position 0 and "Int64\(50\) \* Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 83 * - - 57 * + CAST ( 43 AS INTEGER ) AS col0, + 50 * 6 AS col0 +---- +203433 +300 query I rowsort label-9079 SELECT COUNT ( ALL + 97 ) + - + 18 @@ -47710,8 +48251,11 @@ SELECT DISTINCT + + COUNT ( * ) * - 54 + - + MIN ( ALL - + 19 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3360 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-81\)\) \* Int64\(41\) \+ Int64\(94\) \- Int64\(55\) AS col1" at position 0 and "Int64\(70\) \+ Int64\(\-1\) \+ Int64\(\-54\) \- Int64\(\-9\) / Int64\(63\) \+ Int64\(96\) / Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 81 * 41 + 94 - 55 col1, 70 + - 1 + - 54 - - 9 / + 63 + + 96 / 7 AS col1 +---- +28 +3360 query I rowsort label-9094 SELECT ALL - 1 * - 38 - + - 98 * + COUNT ( * ) + 54 * - COUNT ( * ) * 15 + - - COUNT ( * ) - + 34 @@ -47995,8 +48539,11 @@ SELECT + ( - MAX ( DISTINCT 87 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(24\) AS Int32\)\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + ( + + CAST ( 24 AS INTEGER ) ) AS col1, 21 col1 +---- +-24 +21 query I rowsort SELECT DISTINCT - NULLIF ( 88, - 21 ) @@ -48443,8 +48990,12 @@ SELECT DISTINCT - - 31 * - 11 * 52 + COUNT ( + 6 ) - - COUNT ( * ) / 55 AS col1 # Datafusion - Expected - -24 # Datafusion - Expected - -1034 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) \* Int64\(11\) AS col1" at position 1 and "Int64\(3\) / Int64\(64\) \+ Int64\(15\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(\-95\) AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + ( COUNT ( - - 36 ) ) + - 23, - 94 * + 11 AS col1, 3 / 64 + + 15 * COUNT ( * ) + + CAST ( + - 95 AS INTEGER ) AS col1 +---- +-1034 +-24 +-80 query I rowsort SELECT ALL + 89 - + - 60 AS col1 @@ -48454,8 +49005,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 49 AS col2, COUNT ( * ) * - 26 col2 +---- +-26 +49 query I rowsort label-9236 SELECT - COUNT ( - 8 ) AS col1 @@ -48631,8 +49185,11 @@ SELECT 38 + - 40 col2, - 78 - + - 50 + - 21 / + SUM ( + + 32 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 486 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ Int64\(\-60\) AS col2" at position 0 and "Int64\(18\) \* max\(nullif\(\(\- Int64\(\-27\)\), Int64\(62\) \* Int64\(\-43\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 + + - 60 AS col2, 18 * + MAX ( ALL + NULLIF ( - - 27, + 62 * - 43 ) ) AS col2 +---- +486 +9 query I rowsort label-9270 SELECT ALL + + SUM ( 90 ) + - SUM ( 69 ) col1 @@ -49854,8 +50411,11 @@ SELECT ALL + - 66 * + + COUNT ( * ) * 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3081 # Datafusion - Expected - 148 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \* Int64\(79\) AS col2" at position 0 and "Int64\(\-13\) \+ \(\- Int64\(\-84\)\) \+ Int64\(45\) \+ Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 39 * + 79 AS col2, - 13 + - ( - 84 ) + + 45 + + 32 AS col2 +---- +-3081 +148 query I rowsort SELECT - - 33 * - 60 * - 22 * + - 97 @@ -50384,8 +50944,11 @@ SELECT - + 76 + 71 + - - 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(71\)\) \- Int64\(\-75\) AS col2" at position 0 and "Int64\(55\) \+ \(\- nullif\(Int64\(\-49\), Int64\(\-63\) \+ Int64\(8\)\)\) \* Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 71 - - 75 AS col2, + 55 + - NULLIF ( - 49, + - 63 + + 8 ) * + 0 AS col2 +---- +4 +55 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -50475,8 +51038,11 @@ SELECT + COALESCE ( + + SUM ( - + 49 ), NULLIF ( - ( - COUNT ( * ) ), - 78 ) + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, - 54 AS col2 +---- +-54 +1 query I rowsort SELECT + 51 * - - 20 @@ -51304,8 +51870,11 @@ SELECT + COALESCE ( - 37, + CASE - 93 WHEN + 68 THEN + COUNT ( * ) / + 30 WHEN - # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) / Int64\(\-87\) AS col1" at position 0 and "Int64\(26\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 97 / + - 87 AS col1, 26 * + COUNT ( * ) AS col1 +---- +-1 +26 query I rowsort label-9781 SELECT ALL - SUM ( + - 29 ) @@ -51409,8 +51978,11 @@ SELECT 93 - - 1 + + - 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* Int64\(88\) / \(\- Int64\(\-40\)\) AS col1" at position 0 and "Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 * 88 / - - 40 AS col1, + 61 AS col1 +---- +61 +61 query I rowsort label-9801 SELECT 2 + COUNT ( * ) @@ -51420,14 +51992,20 @@ SELECT 2 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 5820 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "Int64\(60\) \* Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 8 col0, + 60 * 97 AS col0 +---- +5820 +8 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col1" at position 0 and "Int64\(\-74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 92 AS col1, - 74 col1 +---- +-74 +-92 query I rowsort SELECT DISTINCT - ( - ( - COALESCE ( - - 81, - - 41 * + 13 ) ) ) @@ -51752,8 +52330,11 @@ SELECT ALL - + COUNT ( * ) * MIN ( DISTINCT 66 ) * + 97 * + 24 + + - CAST ( 70 A # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col0" at position 0 and "Int64\(37\) \+ Int64\(\-98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 99 col0, + 37 + - 98 col0 +---- +-61 +-99 query II rowsort SELECT + - 96, 52 + + + 76 AS col2 @@ -52009,8 +52590,11 @@ SELECT 18 + + ( - 58 ) + + - 31 - + + 77 * + COUNT ( * ) + 27 * COUNT ( * ) * - # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 10 AS col0, CAST ( NULL AS INTEGER ) col0 +---- +10 +NULL query I rowsort label-9917 SELECT ALL ( 83 ) + - SUM ( ALL + 62 ) @@ -52152,8 +52736,11 @@ SELECT - 28 * 17 * + + MAX ( - - 62 ) + - + 21 AS col1, - 58 * + 10 * COUNT ( * # 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 "Int64\(38\) \+ Int64\(5\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 + + 5 AS col1, 88 AS col1 +---- +43 +88 query I rowsort SELECT ALL - ( - - 22 ) AS col1 @@ -52264,8 +52851,11 @@ SELECT ALL - ( 53 ), MAX ( DISTINCT 81 ) * - 12 * COUNT ( * ) - + 82 * SUM ( - - # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \- Int64\(22\) \+ Int64\(\-55\) \* CAST\(NULL AS Int32\) \* Int64\(88\) AS col1" at position 0 and "Int64\(20\) \+ Int64\(\-60\) \- min\(DISTINCT Int64\(23\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 - 22 + - 55 * CAST ( NULL AS INTEGER ) * + 88 AS col1, ( 20 ) + + - 60 - + MIN ( DISTINCT 23 ) AS col1 +---- +-63 +NULL query II rowsort SELECT ALL - 85 * 28 AS col0, 2 AS col1 diff --git a/data/sqlite/random/expr/slt_good_59.slt b/data/sqlite/random/expr/slt_good_59.slt index d69cd81..5955515 100644 --- a/data/sqlite/random/expr/slt_good_59.slt +++ b/data/sqlite/random/expr/slt_good_59.slt @@ -196,8 +196,11 @@ SELECT ALL MAX ( DISTINCT + 26 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 5 AS col2, 10 AS col2 +---- +10 +5 query I rowsort label-31 SELECT DISTINCT - CASE - 2 WHEN - 96 THEN + + 49 / - COALESCE ( + + 9, + 72 / + 82 + + + COUNT ( * ) * 98 - - + 58 ) / + CASE 43 + 15 * + 11 WHEN 76 + + 37 * 3 THEN 30 ELSE COUNT ( * ) + + 9 END END @@ -305,8 +308,12 @@ SELECT 43 + 56 * COUNT ( * ) # Datafusion - Expected - -9313 # Datafusion - Expected - 378 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* Int64\(\-99\) \+ Int64\(92\) AS col2" at position 0 and "Int64\(6\) \* Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 95 * - 99 + 92 AS col2, + 6 * 63 col2, 4 + + 43 +---- +-9313 +378 +47 query I rowsort SELECT 88 - 53 @@ -321,8 +328,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 74 + 51 AS col1, 1 * - COUNT ( * ) AS col1 +---- +-1 +-23 query I rowsort label-55 SELECT DISTINCT + NULLIF ( + - COUNT ( * ), + 16 * + CAST ( - 30 AS INTEGER ) * + 37 + + - 81 * 94 * + - 63 ) AS col2 @@ -1067,8 +1077,11 @@ SELECT ALL + 5 + 74 + NULLIF ( + 91, - 30 ) * + 4 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 41292 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col1" at position 0 and "Int64\(93\) \* min\(Int64\(6\)\) \* Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 AS col1, + 93 * + + MIN ( 6 ) * + 74 AS col1 +---- +41292 +72 query I rowsort label-198 SELECT DISTINCT 53 * COUNT ( * ) + 69 AS col1 @@ -1100,8 +1113,11 @@ SELECT DISTINCT + 20 - 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col1" at position 0 and "Int64\(\-88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 79 AS col1, - 88 col1 +---- +-79 +-88 query I rowsort label-204 SELECT - ( + + 7 ) * - 15 * - CAST ( NULL AS INTEGER ) - - COUNT ( - CAST ( - 67 AS INTEGER ) ) col0 @@ -1324,8 +1340,11 @@ SELECT DISTINCT + ( + 93 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(82\)\)\) \* \(\- coalesce\(count\(\(\- Int64\(\-29\)\)\), Int64\(1\) \* Int64\(73\) \* Int64\(22\) \+ Int64\(83\)\)\) \+ Int64\(\-57\) / Int64\(46\) / Int64\(59\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - COUNT ( 82 ) * - + COALESCE ( COUNT ( - - 29 ), + 1 * + 73 * + 22 + 83 ) + - 57 / 46 / 59 AS col0, + 13 AS col0 +---- +1 +13 query I rowsort label-247 SELECT - COUNT ( * ) / 34 AS col2 @@ -1634,8 +1653,11 @@ SELECT COUNT ( * ) * + ( - + ( 68 ) ) / + 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - -130 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(93\), \(\- Int64\(\-71\)\)\)\) \+ Int64\(\-37\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - COALESCE ( 93, - - 71 ) + - 37 col0, 49 AS col0 +---- +-130 +49 query II rowsort label-307 SELECT ALL - + MAX ( - + 79 ) AS col1, - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 @@ -2067,8 +2089,11 @@ SELECT - + 19, - 45 + 82 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1995 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(63\) \+ Int64\(71\) \+ Int64\(34\) \* Int64\(56\) \+ Int64\(6\) \+ \(\- Int64\(49\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, 63 + + 71 + + 34 * + 56 + + 6 + - + 49 col2 +---- +1 +1995 query II rowsort SELECT ALL + + 91 col2, - 63 AS col1 @@ -2094,8 +2119,11 @@ SELECT ALL COUNT ( * ) * + - 51 / - - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - -113 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \+ \(\- Int64\(93\)\) AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 20 ) + - + 93 AS col2, 86 AS col2 +---- +-113 +86 query I rowsort label-394 SELECT 59 * + + 0 + - - 79 / + 64 @@ -2764,8 +2792,11 @@ SELECT DISTINCT + 60 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2992 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(33\)\) \* Int64\(\-89\) \+ Int64\(55\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 33 * - 89 + 55 AS col1, + 51 AS col1 +---- +2992 +51 query I rowsort label-523 SELECT ALL + 64 / - 36 * + - COUNT ( DISTINCT - ( 29 ) ) + 7 + + NULLIF ( 55, + - 43 ) + + + 31 AS col1 @@ -2791,8 +2822,12 @@ 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\(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\. +query III valuesort SELECT - 65 * ( COUNT ( * ) ) + + 35 * - 60 AS col2, - 84 AS col2, COUNT ( * ) +---- +-2165 +-84 +1 query I rowsort SELECT ALL + 3 * - + 38 AS col0 @@ -2828,8 +2863,12 @@ SELECT ALL 74 AS col2, NULLIF ( + 20, - CAST ( ( + - COALESCE ( + 23, + 78 + + 5 # Datafusion - Expected - 63 # Datafusion - Expected - 0 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) / Int64\(96\) AS col0" at position 1 and "Int64\(26\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 10 + 53, - 36 / 96 AS col0, 26 col0 +---- +0 +26 +63 query I rowsort SELECT ALL ( + + 94 ) + + 39 - - 39 @@ -2929,8 +2968,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(8\)\) \+ max\(\(\- Int64\(79\)\)\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 8 + MAX ( - ( + 79 ) ) AS col2, 13 AS col2 +---- +-87 +13 query I rowsort SELECT ALL 39 * + 57 @@ -3107,8 +3149,11 @@ SELECT DISTINCT + 53 + 83 - + ( + ( - 41 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "Int64\(\-1\) \+ \(\- Int64\(\-72\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 AS col2, - 1 + - - 72 AS col2 +---- +2 +71 query I rowsort label-587 SELECT 15 * + 43 + + SUM ( DISTINCT 1 ) + + 15 AS col2 @@ -3272,8 +3317,11 @@ NULL # 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\(97\) AS col1" at position 0 and "Int64\(\-24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 97 col1, - 24 AS col1 +---- +-24 +97 query I rowsort SELECT ALL - 73 * + COALESCE ( - 31, 65 ) + + 20 * 97 @@ -3329,8 +3377,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + - COUNT ( * ) ) AS col2, + ( + + 58 ) AS col2 +---- +-1 +58 query II rowsort label-629 SELECT DISTINCT CASE - + 56 WHEN - + 22 THEN NULL ELSE + 3 * - 1 + - - CAST ( NULL AS INTEGER ) END * + 92 * + - ( + 4 ) AS col2, - 80 + - 48 + 13 + + 51 * 28 * + 15 * 48 * - 95 AS col1 @@ -3509,8 +3560,11 @@ SELECT DISTINCT + 61 AS col2, 72 * - - 90 * + - 12 AS 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 "CASE Int64\(6\) WHEN Int64\(\-2\) THEN Int64\(42\) / \(\- Int64\(\-52\)\) \- \(\- Int64\(35\)\) END AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CASE + 6 WHEN - 2 THEN + 42 / - - 52 - - + 35 END col2, 3 AS col2 +---- +3 +NULL query I rowsort SELECT COALESCE ( - 94, + - 44, 33 ) @@ -3791,8 +3845,11 @@ SELECT - COALESCE ( 27, + 46 ) # 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 col0" at position 0 and "Int64\(\-98\) / Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 44 AS col0, - 98 / - 91 AS col0 +---- +1 +44 query I rowsort SELECT + 73 + + 33 + + + 5 AS col2 @@ -4515,8 +4572,12 @@ SELECT 78 AS col1, - 6 AS col2, - - 75 AS col0 # Datafusion - Expected - 61 # Datafusion - Expected - -91 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col2" at position 0 and "Int64\(\-91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 61 AS col2, - 91 AS col2, + - 7 AS col2 +---- +-7 +-91 +61 query I rowsort SELECT DISTINCT 87 - ( - - 4 ) + + 22 * + - 31 AS col2 @@ -4802,8 +4863,11 @@ SELECT ALL + 35 * + 65 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1477 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* \(\- nullif\(Int64\(26\), Int64\(89\) \+ \(\- max\(Int64\(93\)\)\)\)\) \- Int64\(\-5\) AS col1" at position 0 and "Int64\(\-6\) \+ Int64\(\-7\) \- Int64\(43\) \+ \(\- sum\(Int64\(29\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 57 * - NULLIF ( 26, 89 + - MAX ( + 93 ) ) - - 5 AS col1, - 6 + - 7 - 43 + - SUM ( ALL + 29 ) AS col1 +---- +-1477 +-85 query I rowsort label-912 SELECT + - COALESCE ( - + 94, COUNT ( ALL + 58 ) ) AS col0 @@ -5010,8 +5074,11 @@ 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 col2" at position 0 and "Int64\(46\) \+ Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 77 AS col2, 46 + - 45 AS col2 +---- +-77 +1 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -5076,8 +5143,11 @@ SELECT DISTINCT - 88 + + - 6 + + - 82 + + 66 * 62 AS col2 # 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 "sum\(Int64\(27\)\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( ALL 27 ) AS col1, 9 AS col1 +---- +27 +9 query I rowsort SELECT ALL - 6 + + 91 * - + 99 AS col1 @@ -5169,8 +5239,11 @@ SELECT - 84 * 66 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48048 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \* Int64\(56\) \* Int64\(39\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 22 * + + 56 * 39 col0, 2 AS col0 +---- +2 +48048 query I rowsort SELECT + 34 * + 23 AS col1 @@ -5549,8 +5622,11 @@ 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\(Int64\(1\)\) AS count\(\*\) THEN NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +48 +NULL query I rowsort label-1056 SELECT ALL CAST ( + + 28 AS INTEGER ) / - + 65 + - 93 * + 66 @@ -6072,8 +6148,11 @@ SELECT - 85 / + 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "Int64\(30\) / Int64\(\-66\) \* Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 AS col1, + 30 / - 66 * 76 col1 +---- +0 +44 query II rowsort SELECT 79 AS col0, - 42 @@ -6460,8 +6539,11 @@ 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\(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\. +query II valuesort SELECT + 27 * 8 * - + 9 col0, + COALESCE ( + + COUNT ( * ), - COUNT ( * ) * + SUM ( DISTINCT 48 ), - 17 ) AS col0 +---- +-1944 +1 query I rowsort label-1231 SELECT - ( - - ( NULLIF ( - CAST ( NULL AS INTEGER ), + 85 * 61 * - - 4 + - + 70 + + 31 ) ) ) @@ -6697,8 +6779,11 @@ SELECT 57 * 47, 30 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2208 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* Int64\(24\) AS col1" at position 0 and "Int64\(48\) \* Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 * + 24 AS col1, + 48 * + - 0 AS col1 +---- +0 +2208 query I rowsort SELECT DISTINCT 61 * + 30 AS col0 @@ -7924,8 +8009,11 @@ SELECT DISTINCT + 4 + - 65 # 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 "Int64\(1\) AS col1" at position 0 and "Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 1 AS col1, - 79 AS col1 +---- +-79 +1 query I rowsort label-1516 SELECT DISTINCT 33 + + + 7 + 90 * - COUNT ( DISTINCT + 2 ) AS col0 @@ -8021,8 +8109,11 @@ SELECT DISTINCT COALESCE ( + 75, - ( + 58 ) ) - + 87 + + 79 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 62 AS col1, 57 AS col1 +---- +-62 +57 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -8092,14 +8183,20 @@ SELECT - 60 + + 91 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 121 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \- Int64\(\-48\) AS col2" at position 0 and "Int64\(41\) \- Int64\(\-1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 73 - - 48 AS col2, 41 - - 1 col2 +---- +121 +42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 1503 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "Int64\(16\) \* Int64\(79\) \- count\(Int64\(\-89\)\) \+ \(\- Int64\(\-16\)\) \* Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 17 AS col1, 16 * + 79 - COUNT ( ALL + - 89 ) + - - 16 * 15 AS col1 +---- +1503 +17 query I rowsort SELECT ALL + 8 + + + 51 @@ -8346,8 +8443,11 @@ SELECT DISTINCT ( - 24 ) AS col1, - COALESCE ( COUNT ( + + 6 ), + 63 + + + 23 + # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(77\)\)\) \+ Int64\(64\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - MAX ( + + 77 ) + + 64 AS col2, 53 AS col2 +---- +-13 +53 query I rowsort SELECT ( + - 65 ) * + 75 @@ -8792,8 +8892,11 @@ SELECT DISTINCT 89 + - - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 89 AS col0, 86 AS col0 +---- +86 +89 query I rowsort SELECT DISTINCT 7 + - 6 AS col0 @@ -9015,8 +9118,11 @@ SELECT ALL + + 59 * 27 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - -369984 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col1" at position 0 and "Int64\(82\) \* CASE Int64\(55\) WHEN Int64\(\-28\) THEN NULL WHEN min\(Int64\(28\)\) THEN NULL ELSE Int64\(\-96\) END \* Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 AS col1, 82 * + CASE + 55 WHEN - 28 THEN NULL WHEN MIN ( + ( 28 ) ) THEN NULL ELSE - 96 END * ( + + 47 ) AS col1 +---- +-369984 +-81 query II rowsort SELECT - + 65, 32 col0 @@ -9460,8 +9566,11 @@ SELECT 29 / 4 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(19\)\) AS col2" at position 0 and "Int64\(\-18\) \+ \(\- CAST\(Int64\(\-3\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + 19 ) AS col2, - 18 + - CAST ( - 3 AS INTEGER ) AS col2 +---- +-15 +-19 query I rowsort label-1808 SELECT 16 * COUNT ( * ) + 65 - + 37 * ( + - 73 ) - + 73 AS col1 @@ -9481,8 +9590,11 @@ SELECT ALL 89 - - - ( COUNT ( * ) ) + - 35 / + 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3456 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* \(\- Int64\(54\)\) AS col2" at position 0 and "Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 * - + 54 AS col2, - 88 AS col2 +---- +-3456 +-88 query I rowsort label-1812 SELECT ALL 83 * - MAX ( ALL - - 46 ) AS col0 @@ -9546,8 +9658,11 @@ SELECT 63 + - + 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \+ min\(DISTINCT Int64\(67\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 48 + MIN ( DISTINCT + + 67 ) * COUNT ( * ) AS col0, 89 AS col0 +---- +19 +89 query II rowsort SELECT DISTINCT 65 + - + ( 42 ) + 58 col0, - 81 * + + ( - 38 ) + + - 17 @@ -9650,8 +9765,11 @@ SELECT ALL COUNT ( * ) * + NULLIF ( - 91, + AVG ( ALL + - ( + CAST ( NULL AS INT # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - -1475 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col1" at position 0 and "Int64\(42\) \- \(\- Int64\(83\)\) \- Int64\(40\) \* Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 16 AS col1, 42 - - ( + 83 ) - 40 * 40 AS col1 +---- +-1475 +-16 query I rowsort SELECT ALL + 47 - + 86 @@ -9855,8 +9973,11 @@ SELECT + 91 * 67 + + 58 + - 35 + 85 * + - 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - -2761 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(84\) \* Int64\(\-16\) \* Int64\(2\) \+ \(\- max\(Int64\(73\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 55 / + COUNT ( * ) AS col0, 84 * + - 16 * + 2 + - ( + MAX ( ALL 73 ) ) AS col0 +---- +-2761 +55 query I rowsort SELECT ALL + NULLIF ( + 9, - + 47 - + ( - 58 ) + - 14 + 86 / + - ( 45 ) / - - 93 * + CASE + + 7 WHEN - 46 + + 32 THEN + + 48 * 24 + 98 END + 41 ) @@ -9918,8 +10039,12 @@ SELECT ALL + + 76, 83 AS col2 # Datafusion - Expected - -7 # Datafusion - Expected - 76 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 7 AS col2, SUM ( DISTINCT + + 30 ) + 46, 94 AS col2 +---- +-7 +76 +94 query I rowsort label-1894 SELECT + + COALESCE ( 73, 40 / - 3, 56 ) AS col0 @@ -10658,14 +10783,20 @@ SELECT 83 * - 8 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col2" at position 0 and "Int64\(\-31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 68 AS col2, - 31 AS col2 +---- +-31 +-68 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - -166 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col0" at position 0 and "CASE Int64\(67\) WHEN Int64\(\-34\) / Int64\(\-95\) THEN CAST\(NULL AS Int32\) \* Int64\(\-48\) \+ Int64\(\-29\) ELSE Int64\(\-68\) END \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(2\) \+ \(\- Int64\(88\)\) \- Int64\(38\) / Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-166 +-71 query II rowsort label-2037 SELECT ALL 48 - 98 * - 48 + - COUNT ( + ( 52 ) ), + COALESCE ( 83, + 67 / 41 + - 49, + + COUNT ( 31 ) ) * + 21 + 70 + + + COUNT ( * ) / + - 57 AS col2 @@ -10866,8 +10997,11 @@ 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\(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\. +query II valuesort SELECT + - MIN ( - 97 ) AS col2, - COUNT ( * ) + - 38 * + - COUNT ( * ) * 90 AS col2 +---- +3419 +97 query I rowsort label-2076 SELECT - ( + 59 ) * + COUNT ( * ) AS col2 @@ -10922,8 +11056,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 233240 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* Int64\(56\) \* Int64\(49\) AS col2" at position 0 and "CAST\(NULL AS Float64\) \* Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL 85 * 56 * + 49 AS col2, CAST ( NULL AS FLOAT8 ) * 40 AS col2 +---- +233240 +NULL query I rowsort label-2087 SELECT DISTINCT 90 - + 33 / + 52 * + 14 * + 98 * - - 49 / ( + 21 ) * + + MIN ( ALL + 59 ) * + - 91 @@ -11132,8 +11269,11 @@ SELECT ALL COUNT ( * ) * 50, ( + + 53 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 37152 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-89\)\) AS col2" at position 0 and "Int64\(43\) \* \(\- Int64\(36\)\) \* Int64\(\-24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 89 ) AS col2, 43 * - + 36 * - 24 AS col2 +---- +37152 +89 query I rowsort label-2127 SELECT ALL + ( - COUNT ( * ) ) * - - 2 + + 76 @@ -11234,8 +11374,11 @@ SELECT + MIN ( DISTINCT CAST ( 60 AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 85 AS col1, + 17 AS col1 +---- +17 +85 query I rowsort SELECT DISTINCT - 95 - - ( + 36 ) + + + 75 AS col2 @@ -11560,8 +11703,11 @@ SELECT + + ( 26 ) + - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - -2928 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col0" at position 0 and "Int64\(61\) \* \(\- Int64\(48\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 AS col0, 61 * - + 48 AS col0 +---- +-2928 +29 query I rowsort SELECT + 21 + 76 * + + 34 @@ -11823,8 +11969,11 @@ SELECT ALL + 7 AS col1, + 77 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-45\) \* \(\- Int64\(\-70\)\) \+ count\(Int64\(66\)\) \* Int64\(58\) \+ \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-3\) / Int64\(76\) \* Int64\(\-94\)\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 78 col2, COUNT ( * ) * - 45 * - - 70 + COUNT ( + + ( + + 66 ) ) * + 58 + - NULLIF ( + COUNT ( * ), - 3 / 76 * + - 94 ) + - CAST ( NULL AS INTEGER ) AS col2 +---- +78 +NULL query I rowsort label-2258 SELECT CAST ( 47 AS INTEGER ) AS col1 @@ -12090,8 +12239,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 39 AS col1, 70 * - COUNT ( * ) AS col1 +---- +-70 +39 query I rowsort SELECT ALL + 28 * 60 @@ -12424,8 +12576,11 @@ SELECT + - CASE - - 1 WHEN - - 1 THEN 84 END AS col1 # 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\) AS col2" at position 0 and "Int64\(\-32\) / Int64\(12\) \* Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 37 ) AS col2, + ( - 32 ) / 12 * + 39 AS col2 +---- +-78 +37 query I rowsort label-2373 SELECT 31 * + CAST ( 79 AS INTEGER ) * 99 - + 50 @@ -12435,8 +12590,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 41 AS col1, 27 * + - COUNT ( * ) AS col1 +---- +-27 +-41 query II rowsort SELECT + - 0 AS col1, 26 AS col0 @@ -12853,8 +13011,11 @@ SELECT + 77 * + - 50 * + + 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(94\) AS col0" at position 0 and "Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) * 94 AS col0, - 99 AS col0 +---- +-99 +NULL query I rowsort label-2453 SELECT ( + - COUNT ( * ) ) - + - COUNT ( * ) AS col1 @@ -13100,8 +13261,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "nullif\(\(\- Int64\(\-43\)\), Int64\(12\) / \(\- avg\(Int64\(\-25\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + 99 AS col0, + NULLIF ( - - 43, 12 / - ( AVG ( ALL - 25 ) ) ) AS col0 +---- +43 +99 query II rowsort SELECT + 32 AS col2, - 15 @@ -13165,14 +13329,21 @@ SELECT ( - - 46 ) # Datafusion - Expected - -21 # Datafusion - Expected - 316 # Datafusion - Expected - -184 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) AS col1" at position 0 and "Int64\(4\) \* Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 21 AS col1, 4 * + 79 col1, + MIN ( - 94 ) - 90 +---- +-184 +-21 +316 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 96 AS col1, 33 AS col1 +---- +33 +96 query I rowsort label-2514 SELECT - 59 / + + ( 10 ) - + - 80 * 31 / - 10 @@ -13332,8 +13503,11 @@ SELECT + COALESCE ( + COALESCE ( - ( - + 53 ), + 68 + + + ( - + 20 ) ), - 38 / - # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(15\)\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 15 col1, 45 col1 +---- +-15 +45 query II rowsort label-2543 SELECT ALL CASE WHEN + 48 = NULL THEN + 85 END + - 95 * + CASE - 82 WHEN - 13 THEN NULL WHEN AVG ( + 5 ) * 5 + + 28 THEN NULL WHEN 90 * - 76 * - 90 * + - 44 * - 71 THEN + CASE + CAST ( + 77 AS INTEGER ) WHEN - + 77 * ( 4 ) * 65 THEN NULL ELSE - MAX ( + + 86 ) END ELSE CAST ( - 85 AS INTEGER ) * - + 92 + + - COALESCE ( - 39, - 62 ) * - ( 70 ) END, + 65 AS col0 @@ -13460,8 +13634,11 @@ SELECT COUNT ( * ) / - 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 107 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ \(\- Int64\(\-21\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 + - - 21 AS col1, CAST ( NULL AS INTEGER ) col1 +---- +107 +NULL query I rowsort SELECT DISTINCT - ( + 87 ) AS col1 @@ -13471,8 +13648,11 @@ SELECT DISTINCT - ( + 87 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1692 # Datafusion - Expected - -1219 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \* Int64\(94\) AS col1" at position 0 and "Int64\(99\) \* min\(Int64\(\-12\)\) \+ \(\- max\(Int64\(31\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 18 * + 94 AS col1, + 99 * MIN ( - 12 ) + - MAX ( ALL + 31 ) AS col1 +---- +-1219 +-1692 query I rowsort label-2569 SELECT 96 + - 40 * + + CASE + 75 WHEN + COUNT ( * ) * + 37 + 84 THEN NULL WHEN 23 THEN NULL ELSE 34 END @@ -13729,8 +13909,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 87 * + 98 * + - 92 AS col2, - 58 * + COUNT ( * ) + 33 AS col2 +---- +-25 +-784392 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -13794,8 +13977,11 @@ SELECT ALL COUNT ( * ) * - 80 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 731 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(43\) AS col0" at position 0 and "Int64\(\-47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 17 * + 43 AS col0, - 47 AS col0 +---- +-47 +731 query I rowsort label-2628 SELECT + COUNT ( - + 70 ) + + 42 AS col1 @@ -13832,8 +14018,11 @@ SELECT + 42 + 55 + + + 97 * - 80 + + 18 + - 79 + - 49 * - COUNT ( * ) * + 7 - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(25\) AS Int32\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + 25 AS INTEGER ) AS col2, 73 AS col2 +---- +25 +73 query I rowsort label-2635 SELECT + 59 * + CAST ( + 55 AS INTEGER ) @@ -14027,8 +14216,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / \(\- \(\- nullif\(Int64\(12\), Int64\(56\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 AS col0, - CAST ( NULL AS INTEGER ) / - - NULLIF ( + + 12, + 56 ) AS col0 +---- +71 +NULL query I rowsort SELECT ALL + 14 + + + 69 + NULLIF ( - 32, - 21 ) + 27 * - - 93 col0 @@ -14914,8 +15106,11 @@ SELECT + COUNT ( * ) AS col2, ( + + COALESCE ( - 71, + 4 * 79 + - 78 * - MIN ( A # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 58 AS col2, + 50 AS col2 +---- +50 +58 query I rowsort label-2841 SELECT DISTINCT - + COUNT ( * ) + + 7 + CAST ( NULL AS INTEGER ) + + 16 + - 51 * + 11 @@ -14986,8 +15181,12 @@ 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\(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\. +query III valuesort SELECT ( - COUNT ( * ) ) AS col1, MIN ( 99 ) - COALESCE ( - - 34, - 14 + COUNT ( * ), 0 ) col2, - 42 + 21 AS col2 +---- +-1 +-21 +65 query I rowsort SELECT + 78 + - ( 5 ) AS col1 @@ -15063,8 +15262,11 @@ SELECT - ( + + 85 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 46 AS col2 +---- +1 +46 query I rowsort label-2870 SELECT ALL + ( COUNT ( * ) ) + - 97 + - COUNT ( * ) @@ -15282,8 +15484,11 @@ 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\(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\. +query II valuesort 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 +---- +-942 +39 query I rowsort label-2912 SELECT 28 + + 56 + COUNT ( * ) * 80 + + COUNT ( * ) + - 10 AS col0 @@ -15396,8 +15601,11 @@ SELECT ( - 49 ) + + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-38\)\) AS col2" at position 0 and "Int64\(39\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 38 AS col2, 39 * + COUNT ( * ) AS col2 +---- +38 +39 query I rowsort label-2934 SELECT - COUNT ( DISTINCT - + 97 ) * + COUNT ( * ) * - + 56 col0 @@ -15581,8 +15789,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \+ \(\- min\(\(\- Int64\(79\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 11 * - + 63 AS col0, COUNT ( * ) + - MIN ( - + 79 ) col0 +---- +693 +80 query I rowsort label-2969 SELECT - COUNT ( ALL - - 61 ) @@ -16803,8 +17014,11 @@ SELECT + 37, + 74 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "Int64\(\-63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 AS col1, - 63 AS col1 +---- +-63 +30 query I rowsort label-3205 SELECT ALL + COUNT ( * ) + 87 + + CASE - 29 WHEN - - 65 THEN - 92 ELSE NULL END @@ -16814,8 +17028,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(27\)\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( 27 ) AS col1, ( + 44 ) col1 +---- +-27 +44 query I rowsort SELECT DISTINCT 24 + - ( - 71 ) @@ -16871,8 +17088,11 @@ SELECT - 23 + 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) AS col2" at position 0 and "\(\- nullif\(Int64\(89\), Int64\(31\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 13 AS col2, - NULLIF ( + 89, + 31 ) AS col2 +---- +-13 +-89 query I rowsort SELECT ALL + 67 + 67 @@ -17569,8 +17789,11 @@ SELECT - 17 / + 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, - 4 col0 +---- +-4 +1 query I rowsort label-3352 SELECT DISTINCT 52 / + 48 @@ -17738,8 +17961,11 @@ SELECT - CAST ( + 23 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) AS col2 +---- +1 +1 query I rowsort SELECT DISTINCT 11 * + 60 * + 30 @@ -18006,8 +18232,11 @@ SELECT 16 + - 35 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -2883 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "Int64\(31\) \* CAST\(Int64\(\-93\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 17 AS col2, + 31 * + + CAST ( + - 93 AS INTEGER ) col2 +---- +-2883 +17 query I rowsort label-3436 SELECT 32 * - CAST ( NULL AS INTEGER ) / - + 84 AS col1 @@ -18118,8 +18347,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - COUNT ( * ) AS col1, - 62 AS col1 +---- +-62 +1 query I rowsort SELECT ALL - 17 * + - 54 - - 33 - - + 80 * 70 * 2 + + 69 @@ -18139,8 +18371,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "Int64\(47\) \+ Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 26 AS col0, + 47 + - 27 col0 +---- +20 +26 query I rowsort SELECT + ( + 23 ) AS col2 @@ -18569,8 +18804,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) AS col2, - COUNT ( * ) / + + 1 AS col2 +---- +-1 +-1 query I rowsort label-3543 SELECT ALL - MAX ( 64 ) * + 86 AS col0 @@ -18637,8 +18875,11 @@ SELECT - 33 / - 49 + - + 72 AS col0 # 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 col1" at position 0 and "Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 0 AS col1, 56 AS col1 +---- +0 +56 query I rowsort label-3556 SELECT ALL - - NULLIF ( 11, + CAST ( NULL AS INTEGER ) ) + 21 AS col1 @@ -19083,8 +19324,11 @@ SELECT 88 + 58 + 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 2080 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(28\)\) / Int64\(\-15\) \- Int64\(70\) AS col0" at position 0 and "Int64\(80\) \* Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( ALL 28 ) / - 15 - 70 AS col0, 80 * 26 col0 +---- +-71 +2080 query I rowsort SELECT 34 + NULLIF ( 69, 25 + - + 73 * - 46 - + 32 ) + - 52 AS col2 @@ -19709,8 +19953,11 @@ SELECT DISTINCT 49 AS col1, 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \- count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(10\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 72 - COUNT ( * ) + COUNT ( * ) AS col2, + 10 * CAST ( NULL AS INTEGER ) AS col2 +---- +72 +NULL query I rowsort label-3763 SELECT - COUNT ( * ) / + - COUNT ( * ) * - - COUNT ( * ) + + + 8 @@ -20311,8 +20558,11 @@ SELECT + 51 - + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 30 AS col0, + COUNT ( * ) AS col0 +---- +1 +30 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -21086,8 +21336,11 @@ SELECT 24 * + - 93 - - 71 * - 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 95 AS col0, 41 AS col0 +---- +41 +95 query I rowsort SELECT 42 * - 55 AS col2 @@ -21196,8 +21449,11 @@ SELECT DISTINCT + 64 / - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col2" at position 0 and "Int64\(51\) \- Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 AS col2, + ( + + 51 ) - + + 91 AS col2 +---- +-40 +48 query I rowsort label-4046 SELECT DISTINCT 98 - COUNT ( * ) AS col0 @@ -21366,8 +21622,11 @@ SELECT - ( + COUNT ( * ) ) - - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - -660 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* Int64\(\-11\) AS col2" at position 0 and "Int64\(\-81\) \+ Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 60 * - 11 AS col2, - 81 + + 98 AS col2 +---- +-660 +17 query I rowsort label-4077 SELECT + 97 / + COUNT ( ALL + 86 ) + - - MIN ( 75 ) * + + 55 AS col1 @@ -21475,8 +21734,11 @@ SELECT + 89 * 21 AS col1 # 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 col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 AS col0, 57 AS col0 +---- +57 +57 query I rowsort label-4098 SELECT ALL 47 - 70 + 34 / - 32 AS col1 @@ -21823,8 +22085,11 @@ SELECT + ( + 8 ) AS col1, MAX ( + 49 ) + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(\-40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 67 + + - CAST ( NULL AS INTEGER ) AS col0, - 40 AS col0 +---- +-40 +NULL query I rowsort SELECT DISTINCT - - 82 * + 21 * 8 AS col0 @@ -22396,8 +22661,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 35 + - 57 * - COUNT ( * ) col1, 80 AS col1 +---- +80 +92 query II rowsort label-4272 SELECT 54 - + + 82 + + + COUNT ( * ), ( - 60 ) col2 @@ -23077,8 +23345,11 @@ SELECT ALL ( - 60 ) * - 67 * + - 45 + + + 14 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\)" at position 0 and "Int64\(27\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + 27 ), 27 +---- +27 +27 query I rowsort label-4402 SELECT + ( - - 66 ) - COUNT ( DISTINCT + ( + + 40 ) ) @@ -23345,8 +23616,11 @@ SELECT + - 47 * + 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 72 AS col1, 16 col1 +---- +16 +72 query I rowsort label-4453 SELECT - - 77 * + 14 + + + COUNT ( DISTINCT + - 49 ) AS col0 @@ -23373,8 +23647,11 @@ SELECT + - 97 / SUM ( 80 ) / + - 26 * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 42 AS col0, 72 AS col0 +---- +-42 +72 query II rowsort label-4458 SELECT ALL + CASE + 91 WHEN + COUNT ( * ) THEN - 75 END AS col0, + 33 * + - 64 - - 80 - NULLIF ( - SUM ( 86 ), 34 ) + + 97 / + COALESCE ( + 29, - 10 * 90 / 27 / 56 * + - 4 ) + 84 @@ -23727,8 +24004,12 @@ SELECT - 95 AS col0, NULLIF ( - 22, - + 11 + + 27 + 5 + + + 8 * + 25 ) # Datafusion - Expected - 29 # Datafusion - Expected - 61 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- max\(Int64\(61\)\)\), \(\- Int64\(39\)\)\)\) AS col0" at position 1 and "Int64\(84\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 29 AS col2, - COALESCE ( - MAX ( + 61 ), - + ( 39 ) ) AS col0, + 84 AS col0 +---- +29 +61 +84 query I rowsort label-4525 SELECT ALL + + CAST ( NULL AS INTEGER ) + + + 80 * COUNT ( * ) @@ -23794,8 +24075,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(\(\- Int64\(62\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 61 AS col1, COUNT ( * ) * - COUNT ( - ( 62 ) ) AS col1 +---- +-1 +61 query I rowsort label-4538 SELECT 36 / - 7 AS col1 @@ -24006,8 +24290,11 @@ SELECT DISTINCT - 14 / + COUNT ( - 84 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 74077 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(16\) AS Int32\) AS col1" at position 0 and "Int64\(20\) \* Int64\(\-57\) \* \(\- max\(\(\- Int64\(\-65\)\)\)\) \* count\(DISTINCT Int64\(9\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CASE Int64\(\-84\) WHEN Int64\(\-66\) THEN \(\- Int64\(0\)\) ELSE Int64\(\-22\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +16 +74077 query I rowsort label-4578 SELECT ALL - ( + 35 ) / - 36 / - COUNT ( * ) @@ -24255,8 +24542,11 @@ SELECT DISTINCT - 33 + + 14 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6369 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ Int64\(\-96\) \* CAST\(Int64\(\-65\) AS Int32\) \+ Int64\(92\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 37 + - 96 * CAST ( - 65 AS INTEGER ) + + + 92 / COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0 +---- +6369 +NULL query I rowsort label-4626 SELECT ALL + + 12 / + SUM ( - 49 ) * + 28 AS col2 @@ -25312,8 +25602,11 @@ SELECT COUNT ( * ) * MIN ( + 57 ) / - 25 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 117 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ Int64\(56\) AS col0" at position 0 and "Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 + 56 AS col0, 15 AS col0 +---- +117 +15 query I rowsort SELECT DISTINCT - 0 + - 84 @@ -25623,8 +25916,11 @@ SELECT ALL + 78 * - - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(48\) \+ Int64\(91\) AS col1" at position 0 and "nullif\(Int64\(\-58\), Int64\(\-42\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - CAST ( NULL AS INTEGER ) * + 48 + + 91 AS col1, NULLIF ( - 58, - 42 ) col1 +---- +-58 +NULL query I rowsort label-4894 SELECT - + COUNT ( * ) / - 44 AS col2 @@ -25779,8 +26075,11 @@ SELECT ALL 48 * 11 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 AS col2, 48 AS col2 +---- +48 +91 query I rowsort SELECT ALL 92 + + 70 + - - 96 AS col0 @@ -25805,8 +26104,11 @@ 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\(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\. +query II valuesort 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 +---- +-64 +NULL query I rowsort label-4928 SELECT + 44 / + - ( + 68 ) + - + 18 AS col1 @@ -25821,8 +26123,11 @@ SELECT + COUNT ( ALL - 8 ) AS col0 # 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 col0" at position 0 and "\(\- max\(DISTINCT Int64\(3\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 14 col0, - MAX ( DISTINCT 3 ) AS col0 +---- +-3 +14 query I rowsort label-4931 SELECT MAX ( + 85 ) AS col0 @@ -26288,8 +26593,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 AS col2, 89 AS col2 +---- +-10 +89 query I rowsort SELECT + + 55 AS col1 @@ -26321,8 +26629,11 @@ SELECT + SUM ( DISTINCT + 90 ) * + - 84 AS col1, 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 0 and "Int64\(\-55\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 11 AS col0, ( - 55 ) + COUNT ( * ) AS col0 +---- +-54 +11 query I rowsort SELECT - 9 + - 98 @@ -26599,8 +26910,11 @@ SELECT - + CAST ( + 44 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col2" at position 0 and "Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 col2, 80 AS col2 +---- +36 +80 query I rowsort label-5078 SELECT - ( COUNT ( * ) ) * 12 / 15 + - 96 + 45 @@ -26694,8 +27008,11 @@ SELECT ( 77 ) * + + 27 * 29 + + 40 - 4 AS col1, 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 24 col1, + 86 AS col1 +---- +-24 +86 query I rowsort SELECT ALL - ( + + 86 ) AS col1 @@ -26715,8 +27032,11 @@ 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\(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\. +query II valuesort 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 +---- +-464 +-85 query I rowsort label-5100 SELECT DISTINCT - COUNT ( - - 14 ) - - - 41 @@ -27069,8 +27389,11 @@ SELECT - MAX ( + 60 ) - - - 75, - ( + - ( 94 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -3551 -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\(\-70\) \+ Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 95 col1, + 52 * - 70 + + 89 AS col1 +---- +-3551 +95 query II rowsort SELECT 62 col1, ( + + 33 ) AS col0 @@ -27270,8 +27593,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) / + 83 AS col2, 61 AS col2 +---- +0 +61 query II rowsort label-5207 SELECT 14 + COUNT ( * ) AS col1, 95 + - ( - - CAST ( - - CAST ( - - 64 AS FLOAT8 ) AS INTEGER ) ) / COUNT ( * ) col2 @@ -27344,8 +27670,11 @@ 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\(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\. +query II valuesort SELECT ALL - 55 + COUNT ( * ) * + 23 / 70 AS col1, - COUNT ( * ) * - - NULLIF ( - + NULLIF ( + 73, + - 19 / + - COUNT ( * ) - - 20 ), + - 17 ) AS col1 +---- +-55 +73 query I rowsort label-5221 SELECT ( - 50 ) + + 52 * COUNT ( * ) + - - 57 @@ -27396,8 +27725,12 @@ NULL # Datafusion - Expected - 88 # Datafusion - Expected - -14 # Datafusion - Expected - -224044 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(88\) AS Int32\)\)\) AS col0" at position 0 and "\(\- sum\(Int64\(\-33\)\)\) \+ \(\- Int64\(83\)\) \+ Int64\(\-3\) \* Int64\(\-12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - CAST ( + 88 AS INTEGER ) AS col0, - SUM ( - 33 ) + - + 83 + + - 3 * - 12 AS col0, - 50 - + 57 + - 78 * + 33 * + + 87 + COUNT ( * ) +---- +-14 +-224044 +88 query I rowsort label-5231 SELECT DISTINCT + COUNT ( * ) * + + SUM ( DISTINCT ( 69 ) ) AS col0 @@ -28237,8 +28570,11 @@ SELECT + CASE + 9 WHEN 41 * 17 * - - 69 + + CASE + AVG ( DISTINCT 13 ) WHEN + 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(4\), avg\(Int64\(\-37\)\) \+ Int64\(19\)\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + NULLIF ( 4, + + AVG ( - 37 ) + 19 ) AS col2, + 36 AS col2 +---- +36 +4 query I rowsort SELECT + 28 + - 47 * 62 @@ -28559,8 +28895,11 @@ SELECT ALL + - 46 + + - MAX ( DISTINCT - + 74 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col2" at position 0 and "Int64\(\-47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 97 col2, - 47 AS col2 +---- +-47 +97 query II rowsort label-5454 SELECT ALL 80, + 55 - - 13 + + 49 + 21 * - - 71 * 84 / 49 * - + 76 * COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + - 74 col1 @@ -29405,8 +29744,11 @@ SELECT - 87 AS col0, COUNT ( * ) * - - ( 29 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col1" at position 0 and "sum\(Int64\(17\)\) \+ Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 89 col1, SUM ( + 17 ) + - 32 AS col1 +---- +-15 +-89 query II rowsort SELECT 35 col1, - 59 @@ -29747,8 +30089,11 @@ SELECT DISTINCT 86 / 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3770 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-58\)\) \* Int64\(65\) AS col1" at position 0 and "Int64\(15\) \+ Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( - 58 ) * + + 65 AS col1, 15 + 74 AS col1 +---- +-3770 +89 query II rowsort SELECT ALL 49, - 69 col2 @@ -29774,8 +30119,11 @@ SELECT DISTINCT COUNT ( * ) * 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- \(\- Int64\(\-97\)\)\)\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( - - ( + - 97 ) ) AS col0, 36 col0 +---- +-97 +36 query I rowsort label-5682 SELECT ALL SUM ( ALL - 32 ) @@ -30201,8 +30549,11 @@ SELECT + 98 * + + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 0 and "Int64\(\-84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 35 col2, - 84 AS col2 +---- +-84 +35 query I rowsort label-5763 SELECT ALL 57 / - + 61 * 14 @@ -30266,8 +30617,11 @@ SELECT ALL + 30 * 44 + - + 54 * + 30 * - ( + 10 ) - - + 83 + + 38 / - 51 * + 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2089152 # Datafusion - Expected - 143 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* Int64\(31\) \* Int64\(18\) \* nullif\(Int64\(39\), Int64\(4\)\) AS col2" at position 0 and "min\(Int64\(66\)\) \+ Int64\(79\) \+ Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 96 * 31 * 18 * + NULLIF ( + 39, + 4 ) AS col2, MIN ( + 66 ) + 79 + + - 2 AS col2 +---- +143 +2089152 query I rowsort SELECT - 2 * - + 61 @@ -30448,8 +30802,11 @@ SELECT + 79 * + - 37 # 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 "CASE avg\(\(\- coalesce\(Int64\(0\), Int64\(\-69\)\)\)\) WHEN Int64\(39\) \* \(\- sum\(DISTINCT Int64\(\-34\)\)\) THEN NULL WHEN Int64\(\-33\) \* Int64\(\-22\) \+ Int64\(\-15\) \* Int64\(16\) \* Int64\(\-76\) \+ Int64\(41\) THEN Int64\(\-49\) 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 II valuesort SELECT + CASE + AVG ( - COALESCE ( + 0, - 69 ) ) WHEN + 39 * - SUM ( DISTINCT + - 34 ) THEN NULL WHEN - 33 * - 22 + - 15 * 16 * + - 76 + 41 THEN + - 49 END AS col2, 83 AS col2 +---- +83 +NULL query I rowsort label-5809 SELECT ( + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) @@ -30586,8 +30943,11 @@ SELECT 1 + + 53 * + 69 AS col1, + 14 * + + 23 / + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(50\) \- CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(50\) \- Int64\(71\) \+ Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 * + + 50 - + CAST ( NULL AS INTEGER ) AS col0, 50 - + 71 + - 22 AS col0 +---- +-43 +NULL query I rowsort label-5834 SELECT COUNT ( - - 89 ) / + ( 42 ) + + 36 + - 62 + COUNT ( * ) * 60 AS col0 @@ -30843,8 +31203,11 @@ SELECT COALESCE ( - COUNT ( * ), 27 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 2047 -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\(23\) \* max\(Int64\(89\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( + 6 ) AS col1, 23 * + + MAX ( + 89 ) col1 +---- +-1 +2047 query I rowsort SELECT DISTINCT - + 82 + 86 * - 1 @@ -31043,8 +31406,11 @@ SELECT ALL 74 col0, - 78 * - 56 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1242 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-46\) \* Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, - 46 * - 27 AS col1 +---- +1 +1242 query II rowsort label-5920 SELECT - 77, - CAST ( + 13 AS INTEGER ) AS col0 @@ -31055,8 +31421,11 @@ SELECT - 77, - CAST ( + 13 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -126 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) \- Int64\(69\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(76\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 57 - + 69 + - COUNT ( * ) / 76 AS col2, + COUNT ( * ) * + COUNT ( * ) AS col2 +---- +-126 +1 query II rowsort SELECT - 31, - ( 87 ) col2 @@ -31182,8 +31551,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) col2, 89 AS col2 +---- +-1 +89 query II rowsort SELECT + 21 * + 55 AS col2, 83 AS col0 @@ -31292,8 +31664,11 @@ SELECT DISTINCT - ( - + CAST ( - - 99 AS INTEGER ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-37\) AS Int32\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - 37 AS INTEGER ) AS col0, + 28 AS col0 +---- +-37 +28 query II rowsort label-5966 SELECT DISTINCT 88 * + 69 + - 49 - - 37 * 5 AS col0, - COUNT ( * ) @@ -31555,8 +31930,11 @@ SELECT COUNT ( DISTINCT 48 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1456 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \* Int64\(\-26\) AS col2" at position 0 and "Int64\(\-77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 56 * - 26 AS col2, ( ( - 77 ) ) AS col2 +---- +-1456 +-77 query I rowsort SELECT - CASE - ( - 59 ) WHEN + NULLIF ( + 45, - - 25 ) THEN NULL WHEN + - 89 + + 76 THEN NULL WHEN + 93 + + - 70 * - - 5 + 57 THEN 91 END AS col1 @@ -31897,8 +32275,11 @@ SELECT DISTINCT + 5 - + + 46 + + + ( + 45 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col2" at position 0 and "Int64\(45\) \- Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 10 AS col2, 45 - + 65 AS col2 +---- +-10 +-20 query I rowsort label-6079 SELECT + 22 * 23 + - - 99 * + COUNT ( * ) + COUNT ( * ) AS col0 @@ -32081,8 +32462,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) / Int64\(50\) AS col1" at position 0 and "Int64\(0\) / Int64\(\-53\) / Int64\(\-9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 61 / + 50 AS col1, 0 / - 53 / - 9 AS col1 +---- +-1 +0 query I rowsort SELECT + 72 * - ( - 50 ) @@ -32593,8 +32977,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col1" at position 0 and "Int64\(71\) / Int64\(\-2\) \+ Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 AS col1, 71 / + - 2 + 27 col1 +---- +-8 +47 query II rowsort label-6212 SELECT 10 AS col1, COALESCE ( + + 88, + + 70 + + CASE + 83 WHEN - - 23 + + - 49 * - COUNT ( * ) * COUNT ( 12 ) THEN 0 WHEN - - 71 THEN 98 * - ( - + 60 ) + + 99 + + 36 END ) AS col2 @@ -32834,8 +33221,11 @@ SELECT - + 57 * - + ( + + NULLIF ( - 56, - 76 ) ) - + ( - ( 7 ) ) + 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -36 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 43 AS col2, - 36 AS col2 +---- +-36 +43 query II rowsort SELECT DISTINCT + 73 AS col2, 3 AS col0 @@ -32888,8 +33278,12 @@ SELECT - - 31 * - - MIN ( + 88 ) * - 98 AS col0 # Datafusion - Expected - 522 # Datafusion - Expected - 67424 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(6\) AS col2" at position 0 and "Int64\(\-43\) \* Int64\(\-49\) \* Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 87 * 6 AS col2, - 43 * - 49 * 32 AS col2, + 89 +---- +522 +67424 +89 query I rowsort SELECT ALL 4 * 5 * + ( + 78 ) + + 31 * - ( 1 ) + 57 col0 @@ -32958,8 +33352,11 @@ SELECT ALL 13 * - 71, 42 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 + COUNT ( * ) col1, - 25 AS col1 +---- +-25 +9 query I rowsort SELECT 15 * ( - ( - - ( 96 ) ) ) AS col0 @@ -33259,8 +33656,11 @@ 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\(7\) AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 7 AS col2, 1 AS col2 +---- +1 +7 query I rowsort SELECT 72 * 62 * + 10 * + 16 @@ -34175,8 +34575,11 @@ SELECT DISTINCT + 2 * + + 41 AS col0 # 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 "Int64\(38\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 AS col2, 69 col2 +---- +38 +69 query I rowsort label-6515 SELECT - + 64 + + + COUNT ( * ) AS col0 @@ -34747,8 +35150,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(52\) \* Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 96 - - SUM ( DISTINCT - - ( 7 ) ) AS col1, + COUNT ( * ) - + + 52 * - 70 AS col1 +---- +103 +3641 query I rowsort label-6626 SELECT ALL + COALESCE ( - 58, SUM ( DISTINCT - + 92 ) ) AS col1 @@ -35050,8 +35456,12 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(39\) \- \(\- Int64\(56\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 81 AS col1, 11 * - - 96 * 68 AS col2, + - COUNT ( * ) + + 39 - - + 56 AS col1 +---- +71808 +81 +94 query I rowsort label-6683 SELECT - 98 + + ( + COUNT ( * ) ) + + 38 + CAST ( NULL AS INTEGER ) + + 76 - + 59 @@ -35071,8 +35481,11 @@ SELECT ALL 42 / + 66 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 767 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "Int64\(\-59\) \* \(\- nullif\(Int64\(13\), Int64\(4\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 63 AS col1, - 59 * - NULLIF ( + 13, + 4 ) AS col1 +---- +63 +767 query II rowsort SELECT - 81 * - - 24 * - 90, + 60 * 30 col2 @@ -35414,8 +35827,11 @@ SELECT DISTINCT SUM ( + - NULLIF ( - - 20, + 4 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-7\), Int64\(87\), Int64\(\-6\)\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + COALESCE ( - 7, + + 87, - 6 ) ) - + + COUNT ( * ) AS col1, COUNT ( * ) AS col1 +---- +1 +6 query II rowsort label-6751 SELECT 22 AS col2, - NULLIF ( 70, + 88 * - 81 * 34 * - CASE - 57 WHEN - NULLIF ( + 36, NULLIF ( COUNT ( * ), 43 ) * - 10 - 60 ) * - COALESCE ( 31, + 84 ) THEN NULL ELSE + 95 + 24 END * + 53 ) - 87 @@ -35683,8 +36099,11 @@ SELECT + + COUNT ( * ), 58 * - 84 + 81 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 58 col0, + 70 AS col0 +---- +58 +70 query II rowsort SELECT ALL + + 0 AS col1, 64 AS col2 @@ -35721,8 +36140,11 @@ SELECT + ( - + 73 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 21134 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \+ \(\- Int64\(\-7\)\) AS col2" at position 0 and "Int64\(46\) \+ Int64\(77\) \+ Int64\(16\) \+ Int64\(13\) \* Int64\(85\) \* Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 23 + - - 7 AS col2, 46 + + 77 + + + 16 + + 13 * + 85 * + 19 AS col2 +---- +-16 +21134 query I rowsort SELECT ALL 14 + 22 @@ -35865,8 +36287,11 @@ SELECT + CASE 73 WHEN + 82 - 35 + ( - 30 ) THEN NULL WHEN 11 / - CAST ( - - 13 A # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 1190 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-75\)\) AS col2" at position 0 and "Int64\(\-85\) \* Int64\(\-14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( - 75 ) AS col2, - 85 * - 14 col2 +---- +-75 +1190 query I rowsort label-6837 SELECT ALL + + 45 + - + COUNT ( * ) * - 6 @@ -35989,8 +36414,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 160 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \+ Int64\(61\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + + 99 ) + 61 AS col2, COUNT ( * ) AS col2 +---- +1 +160 query I rowsort label-6860 SELECT 80 * + - MAX ( + 90 ) * - 98 @@ -36165,8 +36593,11 @@ SELECT DISTINCT 89 * - 20, 79 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(10\) AS Int32\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( + 10 AS INTEGER ) AS col0, 82 AS col0 +---- +10 +82 query I rowsort SELECT ALL - 89 * - 90 @@ -36176,8 +36607,11 @@ SELECT ALL - 89 * - 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 151 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(20\) WHEN Int64\(\-47\) / Int64\(53\) THEN NULL WHEN Int64\(53\) \- Int64\(\-90\) THEN NULL WHEN Int64\(98\) \+ \(\- Int64\(2\)\) THEN Int64\(71\) END AS col2" at position 0 and "Int64\(65\) \+ Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CASE + 20 WHEN + - 47 / + 53 THEN NULL WHEN + + 53 - + - 90 THEN NULL WHEN 98 + - + 2 THEN + 71 END AS col2, 65 + 86 AS col2 +---- +151 +NULL query I rowsort label-6895 SELECT + 47 / - 95 @@ -36217,8 +36651,11 @@ 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\(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\. +query II valuesort SELECT - + COALESCE ( - COUNT ( * ), COALESCE ( + + 43, + 54 + ( + COUNT ( * ) ) ) ) - - 26 + 39 col1, - 43 / - 37 col1 +---- +1 +66 query I rowsort SELECT DISTINCT + - 3 + + + 24 @@ -36468,8 +36905,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 col2, 9 + + - 8 + - 84 - - 67 * + - COUNT ( * ) col2 +---- +-150 +69 query II rowsort label-6951 SELECT 32 col1, COUNT ( * ) AS col0 @@ -36522,8 +36962,11 @@ SELECT ( - 82 ) * + - 21 + + 42 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "Int64\(59\) \* Int64\(65\) \* \(\- CAST\(NULL AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(8\) \- Int64\(\-86\) / Int64\(\-63\) \+ Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 AS col0, 59 * + 65 * - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + + 8 - - 86 / - 63 + + + 25 col0 +---- +40 +NULL query II rowsort label-6961 SELECT + 44, + COUNT ( * ) AS col2 @@ -36595,8 +37038,11 @@ SELECT + 15 * + + 11 + MAX ( DISTINCT + + 81 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 75 AS col2, 56 AS col2 +---- +-75 +56 query I rowsort SELECT ALL 6 - + 27 + - + 77 @@ -36943,8 +37389,11 @@ SELECT ALL 31 * COUNT ( * ) * - + 86 * - 98 * 38 * - COUNT ( * ) - + 83 + COALES # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 18 col1, 70 AS col1 +---- +18 +70 query I rowsort label-7041 SELECT ALL - ( + 38 ) * + MIN ( - 3 ) * 68 * CAST ( + - AVG ( DISTINCT + 63 ) AS INTEGER ) + + 46 AS col2 @@ -37329,8 +37778,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 0 and "Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 25 - + COALESCE ( + COUNT ( 42 ), - - COUNT ( * ) ) AS col0, - 16 AS col0 +---- +-16 +-26 query I rowsort label-7114 SELECT ALL + ( - 72 ) / CAST ( NULL AS INTEGER ) @@ -37698,8 +38150,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) / \(\- Int64\(52\)\) \- Int64\(\-17\) \- 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 II valuesort SELECT ALL + 3 / + - ( 52 ) - - 17 - + ( + 69 ) AS col0, + ( + 53 ) col0 +---- +-52 +53 query I rowsort SELECT DISTINCT 8 * - - 30 AS col2 @@ -38049,8 +38504,12 @@ SELECT + 94 * 47 - + 27 + - COUNT ( * ) + + + 85 + - 11 + + 25 + - + 74 AS col1 # Datafusion - Expected - 26 # Datafusion - Expected - -5 # Datafusion - Expected - 2557 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "Int64\(\-61\) \+ Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 26 AS col1, - 61 + + + 56 AS col1, + 88 + + - COUNT ( * ) + SUM ( ALL 26 ) * + 95 +---- +-5 +2557 +26 query II rowsort label-7253 SELECT ALL 37 * - COALESCE ( - 2, - 52 ) + 0, + COUNT ( * ) * - 60 AS col0 @@ -38093,8 +38552,11 @@ SELECT DISTINCT + + ( - SUM ( - 75 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -751 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \* Int64\(94\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- Int64\(38\)\) \- max\(\(\- Int64\(\-89\)\)\) \* max\(DISTINCT Int64\(31\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 8 * + + 94 + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) * - + 38 - + MAX ( ALL - - 89 ) * MAX ( DISTINCT + 31 ) AS col0 +---- +-751 +NULL query I rowsort label-7261 SELECT ALL - - CAST ( NULL AS INTEGER ) - + 98 AS col0 @@ -38119,8 +38581,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 118 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(80\) \+ Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + ( - 32 ) + + COUNT ( * ) col0, 80 + + 38 AS col0 +---- +118 +33 query I rowsort SELECT + - 18 + - NULLIF ( + 76, - 2 ) + + + 51 + + 87 * - + CASE 74 WHEN + 42 + + + 85 + + 70 + + + 53 / 59 / - 32 THEN + + ( 71 ) END AS col2 @@ -38203,14 +38668,20 @@ SELECT + 8 + - 95 / 4 * 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 53 col1, 6 AS col1 +---- +53 +6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -7138 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col1" at position 0 and "Int64\(83\) \* Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 AS col1, 83 * - 86 AS col1 +---- +-7138 +46 query I rowsort SELECT ALL 90 + 50 - - 76 AS col2 @@ -38604,8 +39075,11 @@ SELECT ALL 14 + 39 * - 56 * 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ \(\- Int64\(18\)\) AS col1" at position 0 and "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 + + - ( + 18 ) AS col1, + 58 AS col1 +---- +51 +58 query I rowsort SELECT ALL - 18 + ( 1 ) + - - 93 col1 @@ -38697,8 +39171,11 @@ SELECT - 4 + - CASE 79 WHEN + 81 * 55 * CAST ( 69 AS INTEGER ) + CAST ( NULL AS # 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 "\(\- coalesce\(Int64\(89\), Int64\(1\)\)\) AS col0" at position 0 and "min\(\(\- Int64\(\-27\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( + 89, 1 ) col0, MIN ( ALL - - 27 ) AS col0 +---- +-89 +27 query I rowsort label-7373 SELECT 88 * + CAST ( NULL AS INTEGER ) AS col0 @@ -39229,8 +39706,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + + 53 AS col0, + 65 AS col0 +---- +54 +65 query II rowsort label-7475 SELECT ALL 56 + - COUNT ( * ) + COUNT ( * ) + + 1 AS col1, 36 * 19 * 3 @@ -39293,8 +39773,11 @@ SELECT + COUNT ( * ) + - 15 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 25 AS col2, + COUNT ( * ) col2 +---- +-25 +1 query I rowsort SELECT ALL - 73 * + ( 93 ) @@ -39842,8 +40325,11 @@ SELECT 86 * 57 + + + 9 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -6328 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CASE CAST\(NULL AS Int32\) WHEN \(\- Int64\(\-73\)\) / \(\- max\(Int64\(\-16\)\)\) THEN Int64\(44\) ELSE NULL END\)\) \* Int64\(\-34\) \* CAST\(NULL AS Int32\) \+ Int64\(\-75\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- nullif\(Int64\(97\), Int64\(68\) \* Int64\(22\) \+ Int64\(\-25\)\)\) \* Int64\(65\) \+ Int64\(\-97\) \+ Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-6328 +NULL query I rowsort label-7591 SELECT - MAX ( 84 ) col2 @@ -40006,14 +40492,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1037232 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(28\) \* Int64\(84\) \* Int64\(9\) \* Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 28 * 84 * 9 * + 49 AS col0 +---- +1037232 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -100555 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(76\), Int64\(\-74\)\) \* Int64\(63\) \* Int64\(\-21\) \+ Int64\(\-7\) AS col0" at position 0 and "Int64\(\-35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COALESCE ( + 76, + - 74 ) * + 63 * - 21 + - 7 AS col0, - 35 AS col0 +---- +-100555 +-35 query I rowsort SELECT + ( - + 96 ) @@ -40092,8 +40584,11 @@ SELECT + COUNT ( * ) + + - 10 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -73255 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-73\)\) AS col1" at position 0 and "Int64\(\-49\) \* Int64\(23\) \* Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 73 ) AS col1, - 49 * 23 * + 65 AS col1 +---- +-73255 +73 query II rowsort label-7639 SELECT + 31 / 46 AS col0, ( 43 ) * + 79 col2 @@ -40121,8 +40616,12 @@ SELECT ALL 19 * - + 11 AS col2, 62 # Datafusion - Expected - 1 # Datafusion - Expected - 92 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + ( + COUNT ( * ) ) AS col2, 92, 97 AS col2 +---- +1 +92 +97 query II rowsort SELECT + ( - 32 ), - 31 AS col0 @@ -40466,8 +40965,11 @@ SELECT SUM ( ALL - CAST ( - 98 AS INTEGER ) ) * 32 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 171 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- min\(\(\- Int64\(\-75\)\)\)\)\)\) \* min\(DISTINCT CASE Int64\(\-47\) WHEN Int64\(22\) \* Int64\(\-86\) \* Int64\(98\) \* Int64\(\-98\) \- Int64\(72\) THEN \(\- CASE Int64\(\-5\) WHEN Int64\(\-1\) THEN Int64\(75\) ELSE NULL END\) WHEN Int64\(\-46\) THEN NULL ELSE Int64\(86\) \+ Int64\(74\) \+ CAST\(NULL AS Int32\) \+ Int64\(\-26\) \+ Int64\(52\) \* Int64\(\-56\) \+ Int64\(42\) END\) \* Int64\(25\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(75\) \+ Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +171 +NULL query I rowsort label-7709 SELECT DISTINCT 28 * + + 88 + + COUNT ( * ) @@ -40512,8 +41014,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-51\) \+ CAST\(NULL AS Int32\) \+ \(\- Int64\(45\)\) \- \(\- Int64\(61\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(88\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) - - 51 + CAST ( NULL AS INTEGER ) + - + 45 - - + 61 * - COUNT ( * ) + + 88 col1, 59 AS col1 +---- +59 +NULL query I rowsort label-7718 SELECT ALL + - 86 - 47 + COUNT ( * ) / - 48 * + 78 @@ -40929,8 +41434,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -39744 # Datafusion - Expected - -579 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(24\) AS Int32\)\) \* Int64\(69\) \* nullif\(Int64\(24\), Int64\(\-55\)\) AS col0" at position 0 and "Int64\(69\) \+ Int64\(\-12\) \* Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( + 24 AS INTEGER ) * 69 * NULLIF ( 24, - 55 ) AS col0, 69 + - 12 * + 54 AS col0 +---- +-39744 +-579 query I rowsort SELECT DISTINCT - 83 * - - 98 * + 78 @@ -40971,8 +41479,11 @@ SELECT 38 * 32 * - 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 2250 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) / Int64\(67\) AS col1" at position 0 and "Int64\(45\) \* Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 85 / 67 AS col1, 45 * + 50 AS col1 +---- +1 +2250 query II rowsort label-7804 SELECT ALL 6 + + + 74 AS col2, 48 / + 34 AS col1 @@ -41351,8 +41862,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * + 64 AS col1, 31 AS col1 +---- +31 +64 query I rowsort label-7877 SELECT DISTINCT 65 * + COUNT ( * ) - + 87 @@ -41608,8 +42122,11 @@ SELECT ( 95 ) * - 26 * 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(DISTINCT Int64\(89\)\)\)\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - MAX ( DISTINCT 89 ) ) AS col1, 74 AS col1 +---- +74 +89 query II rowsort SELECT 90, ( - 21 ) * + 1 - - 66 col1 @@ -41744,8 +42261,11 @@ 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\(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\. +query IR valuesort SELECT DISTINCT - 43 AS col0, + ( - - CAST ( NULL AS FLOAT8 ) ) / MAX ( DISTINCT - 22 ) / ( + + COUNT ( * ) ) * AVG ( - 48 ) + 5 * - 86 - - 48 col0 +---- +-43 +NULL query I rowsort label-7953 SELECT ALL - ( + + COUNT ( ALL - 65 ) ) @@ -41823,8 +42343,11 @@ SELECT ALL + CAST ( + 95 AS INTEGER ) AS col0, 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 752 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col1" at position 0 and "Int64\(8\) \* Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 2 AS col1, + 8 * 94 AS col1 +---- +2 +752 query I rowsort SELECT + 60 + + + 48 AS col2 @@ -42175,8 +42698,11 @@ SELECT ALL - 52 AS col1, 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \+ Int64\(95\) / Int64\(\-55\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 45 + + 95 / + - 55 AS col2, 55 AS col2 +---- +-46 +55 query II rowsort label-8035 SELECT - 14 - + - 46 * + - 1 AS col1, + COUNT ( * ) @@ -42392,8 +42918,11 @@ SELECT DISTINCT + 5 + - - 51 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -258 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col2" at position 0 and "Int64\(3\) \* Int64\(\-86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 88 AS col2, 3 * - 86 AS col2 +---- +-258 +88 query I rowsort SELECT 95 * 1 AS col0 @@ -43093,8 +43622,11 @@ SELECT ALL - + ( - 69 ) - - 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col1" at position 0 and "count\(DISTINCT \(\- Int64\(\-9\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 86 AS col1, + COUNT ( DISTINCT - - 9 ) * COUNT ( * ) col1 +---- +1 +86 query I rowsort SELECT + 20 * + + 12 + - 47 + + 43 + - 81 AS col2 @@ -44165,8 +44697,11 @@ SELECT - 8 AS col0, COUNT ( * ) * + 28 + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 AS col1, 46 AS col1 +---- +46 +52 query I rowsort label-8425 SELECT + 10 / + COUNT ( * ) + - 60 @@ -44252,8 +44787,11 @@ SELECT ALL + 46 + + 22 + ( - + ( 81 ) ) / - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col2, 90 col2 +---- +90 +NULL query II rowsort SELECT + 46 AS col2, - 65 * + ( - - 7 ) @@ -44326,8 +44864,11 @@ SELECT 13 AS col1, - 56 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col0" at position 0 and "Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 29 AS col0, + 76 col0 +---- +29 +76 query II rowsort label-8456 SELECT ALL 99, + COUNT ( * ) AS col1 @@ -44546,8 +45087,11 @@ SELECT DISTINCT + 0 + - COUNT ( * ) * + 33 + + - 85 + + 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - -151 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \+ Int64\(\-56\) AS col1" at position 0 and "Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 95 + + - 56 AS col1, + ( - 20 ) AS col1 +---- +-151 +-20 query I rowsort label-8498 SELECT - 52 * - 54 * COUNT ( * ) + - - COALESCE ( + MIN ( 11 ), - - 5 + - 65, + - 66 / COALESCE ( + 6, + 81 * CAST ( 59 / CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) ) ) - COALESCE ( 42, + 78 - - 82, - COUNT ( * ) * 58 ) col2 @@ -45417,8 +45961,12 @@ SELECT ( - + 75 ) AS col2 # Datafusion - Expected - 87 # Datafusion - Expected - 24 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(87\)\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + MIN ( + 87 ) AS col2, - 20 / + 45 + + 24 AS col0, + + 38 col2 +---- +24 +38 +87 query II rowsort label-8664 SELECT + CAST ( - 67 AS INTEGER ), + 97 AS col2 @@ -45693,8 +46241,11 @@ SELECT - - 31, SUM ( - - 44 ) * 25 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, COUNT ( * ) col0 +---- +1 +1 query I rowsort label-8716 SELECT - CAST ( - - 91 AS INTEGER ) * 1 @@ -45764,8 +46315,11 @@ 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\(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\. +query II valuesort SELECT ALL - 34 * + COALESCE ( - 51, - + COUNT ( * ) * 50 ) * + + 72 * 95 + + CASE - ( - 82 ) WHEN - 7 THEN 88 END AS col2, - 50 * + 27 col2 +---- +-1350 +NULL query II rowsort label-8730 SELECT ALL + CAST ( + + 93 AS INTEGER ) * - 78 + - 11, 91 * - + COUNT ( * ) col0 @@ -46416,8 +46970,11 @@ SELECT ALL + ( + 17 ) + 15 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 28 AS col1, 23 AS col1 +---- +23 +28 query I rowsort label-8855 SELECT 24 + - 50 * - + NULLIF ( - 3, - ( - + 52 ) ) / - MIN ( CAST ( NULL AS INTEGER ) ) + - 35 + COUNT ( * ) * - + 93 / + 93 * + 73 + CAST ( + 23 AS INTEGER ) @@ -46608,8 +47165,11 @@ SELECT + 69 - + 51 * - 20 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1484 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* Int64\(53\) AS col1" at position 0 and "Int64\(\-16\) \- \(\- min\(DISTINCT \(\- Int64\(62\)\)\)\) \+ Int64\(28\) / Int64\(\-89\) \* Int64\(\-10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 28 * + 53 col1, - 16 - + - MIN ( DISTINCT - + 62 ) + + + 28 / - 89 * - 10 AS col1 +---- +-78 +1484 query II rowsort label-8892 SELECT ALL CASE 46 WHEN - - 70 - - - NULLIF ( - 79, - - 37 ) + 65 THEN + + NULLIF ( + 71, COUNT ( * ) ) ELSE 28 - - + 88 END, ( + 59 ) * - 85 AS col2 @@ -46965,8 +47525,11 @@ SELECT DISTINCT - 12 * - 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 "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 II valuesort SELECT + 92 AS col1, ( - 3 ) AS col1 +---- +-3 +92 query I rowsort SELECT 68 * 8 @@ -47070,8 +47633,11 @@ 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\(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\. +query II valuesort SELECT 44 + - + COUNT ( * ) AS col2, 69 * - - 36 AS col2 +---- +2484 +43 query I rowsort SELECT ALL 73 - - 88 AS col0 @@ -47363,8 +47929,11 @@ SELECT + 33 / - + 77 AS 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 col1" at position 0 and "Int64\(27\) / Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 34 AS col1, 27 / + 84 col1 +---- +0 +34 query I rowsort label-9035 SELECT ALL + COUNT ( * ) * SUM ( ALL - 54 ) - - 45 AS col1 @@ -47395,8 +47964,11 @@ 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\(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\. +query II valuesort SELECT ALL - 25 AS col2, + CASE - 72 WHEN + COUNT ( * ) / ( - 77 ) THEN - + 18 * COUNT ( - 82 ) - + 83 * - NULLIF ( COUNT ( ALL - 84 ), 57 ) END AS col2 +---- +-25 +NULL query I rowsort label-9041 SELECT DISTINCT COUNT ( * ) * 79 - - 75 + 87 * - COUNT ( * ) @@ -47411,8 +47983,11 @@ SELECT ALL + 17 * + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-53\)\) / Int64\(53\) \* \(\- Int64\(\-96\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 53 / 53 * - - 96 AS col1, + CAST ( NULL AS INTEGER ) AS col1 +---- +96 +NULL query I rowsort SELECT - 38 - 21 + - + 74 * + 48 AS col2 @@ -48243,8 +48818,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 6006 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(78\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 * + 78 AS col2, 52 col2 +---- +52 +6006 query I rowsort label-9202 SELECT 87 + - CAST ( NULL AS INTEGER ) AS col1 @@ -48593,8 +49171,11 @@ SELECT + - 9 * - 0 + - 26 * - ( - 64 ) + - + 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - -2820 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col1" at position 0 and "CAST\(Int64\(94\) AS Int32\) \* Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 61 AS col1, + CAST ( 94 AS INTEGER ) * - 30 AS col1 +---- +-2820 +61 query I rowsort label-9268 SELECT - 94 / - 93 + - - 59 + + 60 @@ -48705,8 +49286,11 @@ SELECT ALL COUNT ( + 2 ) + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 49 AS col2, - 89 AS col2 +---- +-89 +49 query I rowsort label-9289 SELECT 11 / + 57 AS col0 @@ -48743,8 +49327,12 @@ SELECT DISTINCT 31, 70 + + - 70 AS col1 # Datafusion - Expected - -59 # Datafusion - Expected - 114080 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* Int64\(\-80\) \* Int64\(\-23\) AS col1" at position 1 and "\(\- Int64\(\-39\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 59, 62 * - 80 * - 23 AS col1, - - 39 col1 +---- +-59 +114080 +39 query I rowsort SELECT + 77 + 28 col0 @@ -48817,8 +49405,11 @@ SELECT ALL + 22 AS col2, - 60 / - COALESCE ( 81, ( + - CASE + + MAX ( - 1 ) WHEN # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col2" at position 0 and "\(\- nullif\(nullif\(nullif\(\(\- sum\(Int64\(45\)\)\), Int64\(18\)\), Int64\(\-6\)\), CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 44 AS col2, ( - NULLIF ( NULLIF ( NULLIF ( - ( SUM ( + 45 ) ), 18 ), - 6 ), + CAST ( NULL AS INTEGER ) ) ) AS col2 +---- +-44 +45 query I rowsort label-9310 SELECT ALL + 3 * + COUNT ( * ) - 65 @@ -49129,8 +49720,11 @@ SELECT DISTINCT + 51, + 29 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "\(\- count\(CASE Int64\(23\) WHEN Int64\(98\) \+ Int64\(51\) \* Int64\(\-46\) THEN \(\- nullif\(Int64\(\-68\), coalesce\(Int64\(40\), CAST\(NULL AS Int32\), \(\- CAST\(NULL AS Int32\)\) / Int64\(88\)\)\)\) / Int64\(\-80\) \+ Int64\(98\) \+ Int64\(\-48\) \* \(\- Int64\(\-5\)\) \* Int64\(19\) ELSE NULL END\)\) \* Int64\(\-80\) \* Int64\(\-25\) \+ Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 44 AS col2, - COUNT ( + CASE 23 WHEN + + 98 + + 51 * + - 46 THEN - NULLIF ( - 68, COALESCE ( + + 40, CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) / 88 ) ) / - 80 + 98 + - 48 * - - 5 * 19 ELSE NULL END ) * - 80 * - 25 + - 74 AS col2 +---- +-74 +44 query I rowsort SELECT DISTINCT + + 67 + ( 7 ) @@ -49452,8 +50046,11 @@ NULL # 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\(80\) \* CAST\(NULL AS Float64\) \- Int64\(\-37\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + 80 * + CAST ( NULL AS FLOAT8 ) - + - 37 AS col2, 18 AS col2 +---- +18 +NULL query I rowsort SELECT DISTINCT + 69 + + 36 * NULLIF ( - 18, + + 39 ) AS col0 @@ -49657,8 +50254,11 @@ SELECT + 20 * 9 + + 98 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col0" at position 0 and "count\(Int64\(\-18\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 24 AS col0, + COUNT ( - 18 ) + + COUNT ( * ) AS col0 +---- +2 +24 query I rowsort SELECT ALL - - 5 - - 80 - + ( + 53 ) * - 80 * - 98 * - + 24 * - ( - - 81 ) @@ -49918,8 +50518,11 @@ SELECT ALL 64 + + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) / min\(Int64\(28\)\) AS col2" at position 0 and "count\(DISTINCT Int64\(74\)\) \+ \(\- \(\- CAST\(Int64\(12\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 87 / MIN ( + 28 ) AS col2, COUNT ( DISTINCT + 74 ) + - - CAST ( + 12 AS INTEGER ) AS col2 +---- +-3 +13 query II rowsort SELECT + 28 * - 77 * 31 AS col2, 48 * - 50 col1 @@ -49935,8 +50538,11 @@ SELECT ALL 33 + - CAST ( - COUNT ( * ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -20365 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \+ Int64\(6\) \+ \(\- Int64\(86\)\) \- Int64\(\-31\) \* Int64\(\-8\) \* Int64\(82\) AS col2" at position 0 and "Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 51 + + 6 + - + 86 - - 31 * - 8 * 82 AS col2, - 46 AS col2 +---- +-20365 +-46 query I rowsort SELECT + NULLIF ( 54, 8 ) + + 36 + + 12 AS col1 @@ -50242,8 +50848,11 @@ SELECT 49 - 25 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 117600 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col1" at position 0 and "Int64\(40\) \* Int64\(98\) \* \(\- Int64\(\-30\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 77 AS col1, 40 * + 98 * - - 30 AS col1 +---- +117600 +77 query I rowsort label-9582 SELECT 58 * - - 89 * COUNT ( * ) AS col1 @@ -50439,8 +51048,12 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - -34 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- Int64\(56\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT COUNT ( * ) AS col2, + ( - 75 ) + 41 AS col1, - + 56 AS col2 +---- +-34 +-56 +1 query I rowsort SELECT ALL + 16 * - 9 AS col1 @@ -50731,8 +51344,11 @@ SELECT ALL - 97 + + - 71 * 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \+ Int64\(79\) AS col2" at position 0 and "Int64\(\-94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 39 + 79 col2, - 94 AS col2 +---- +-94 +40 query I rowsort label-9674 SELECT DISTINCT + MIN ( ALL 53 ) + - 35 @@ -50984,8 +51600,11 @@ SELECT - - ( + 53 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 0 and "Int64\(\-8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 91 AS col1, - 8 AS col1 +---- +-8 +91 query I rowsort SELECT DISTINCT 85 * - 46 @@ -51227,8 +51846,12 @@ SELECT ( + - 17 ) col1 # Datafusion - Expected - -88 # Datafusion - Expected - NULL # Datafusion - Expected - 1036 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(88\)\) AS col1" at position 0 and "CASE Int64\(56\) WHEN min\(\(\- Int64\(6\)\)\) THEN Int64\(71\) WHEN sum\(DISTINCT Int64\(66\)\) / Int64\(87\) THEN \(\- Int64\(\-66\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ( - ( + 88 ) ) AS col1, + CASE 56 WHEN + MIN ( ALL + ( - + 6 ) ) THEN 71 WHEN SUM ( DISTINCT 66 ) / 87 THEN - - 66 END col1, - - 28 * ( 37 ) +---- +-88 +1036 +NULL query I rowsort SELECT - 26 + + + 90 @@ -51243,14 +51866,20 @@ 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\(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\. +query II valuesort SELECT ( + COALESCE ( + 93, - + COUNT ( * ) + + + 13 ) ) AS col2, 6 AS col2 +---- +6 +93 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT Int64\(\-90\)\) \* \(\- max\(Int64\(5\)\)\) \+ Int64\(\-9\) AS col2" at position 0 and "Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( DISTINCT - 90 ) * - MAX ( + 5 ) + - 9 AS col2, 39 AS col2 +---- +-14 +39 query I rowsort SELECT 64 * - 21 + - 87 @@ -51718,8 +52347,11 @@ SELECT ALL 46 + + + 77 + - 35 # 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\(0\) 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 II valuesort SELECT 0 AS col1, + 31 + 73 AS col1 +---- +0 +104 query I rowsort SELECT - 75 + + 84 @@ -52330,8 +52962,11 @@ SELECT + 1 - - 26 + + - 55 * - - COUNT ( * ), - 93 - + 98 + - 38 * + CASE 90 + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -177 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(84\)\) \+ Int64\(\-93\) AS col0" at position 0 and "Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 84 + - 93 AS col0, 37 col0 +---- +-177 +37 query I rowsort SELECT + - 78 - 5 col2 diff --git a/data/sqlite/random/expr/slt_good_6.slt b/data/sqlite/random/expr/slt_good_6.slt index 835044a..1114aee 100644 --- a/data/sqlite/random/expr/slt_good_6.slt +++ b/data/sqlite/random/expr/slt_good_6.slt @@ -73,8 +73,11 @@ SELECT DISTINCT + 1 - - 64 # 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 "Int64\(64\) \- \(\- CASE Int64\(33\) WHEN Int64\(80\) \* Int64\(8\) \* \(\- Int64\(\-62\)\) \+ Int64\(88\) \+ \(\- Int64\(5\)\) \* Int64\(63\) / Int64\(11\) THEN \(\- coalesce\(Int64\(\-93\), Int64\(\-63\)\)\) ELSE NULL END\) \+ \(\- Int64\(\-51\)\) \- Int64\(99\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 - + - CASE + 33 WHEN + 80 * 8 * - - 62 + + 88 + - + 5 * 63 / 11 THEN - + COALESCE ( - 93, - 63 ) ELSE NULL END + - - 51 - + + 99 AS col1, 79 AS col1 +---- +79 +NULL query II rowsort label-7 SELECT 67 * + NULLIF ( + COUNT ( * ), - 37 ) / CAST ( NULL AS INTEGER ), + 0 * - - 57 col1 @@ -1230,8 +1233,11 @@ SELECT - 98 + - 86 * - 68 * 85, 58 + + 68 * - 45 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -221581800 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col2" at position 0 and "Int64\(57\) \* Int64\(\-76\) \* Int64\(55\) \* Int64\(\-62\) \* \(\- Int64\(15\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 AS col2, 57 * - 76 * 55 * - 62 * - + 15 AS col2 +---- +-221581800 +5 query I rowsort label-226 SELECT DISTINCT + ( + 45 ) + - 46 + COUNT ( ALL - 55 ) @@ -1697,8 +1703,11 @@ SELECT ALL - - 46 + - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col2" at position 0 and "Int64\(\-65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - 88 ) AS col2, - 65 col2 +---- +-65 +-88 query I rowsort label-316 SELECT ALL + 85 + + - COUNT ( - + 81 ) AS col2 @@ -1863,8 +1872,11 @@ SELECT DISTINCT - - COUNT ( ALL + + 73 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-24\), Int64\(\-50\)\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( + - 24, - 50 ) AS col1, 46 col1 +---- +-24 +46 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -1936,8 +1948,11 @@ SELECT 55 + - 3 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col2" at position 0 and "Int64\(12\) / Int64\(56\) \+ Int64\(\-19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 39 AS col2, 12 / ( + 56 ) + - 19 AS col2 +---- +-19 +-39 query II rowsort label-361 SELECT ALL COUNT ( * ) AS col2, ( + MIN ( ALL - + 44 ) ) AS col1 @@ -2003,8 +2018,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 4 * 87 AS col2, COUNT ( * ) * - + 63 + + 47 * - + 73 + + + 69 AS col2 +---- +-3425 +-348 query I rowsort SELECT ALL + - ( - + COALESCE ( - 48, 2 ) ) @@ -2251,8 +2269,11 @@ SELECT DISTINCT - + 22 * + 74 # 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\(\-7\) \* Int64\(0\) AS col2" at position 0 and "\(\- CASE Int64\(49\) WHEN Int64\(21\) THEN Int64\(\-9\) WHEN Int64\(49\) THEN Int64\(68\) ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 7 * + + 0 col2, - CASE + + 49 WHEN 21 THEN + - 9 WHEN 49 THEN 68 ELSE NULL END AS col2 +---- +-68 +0 query I rowsort label-421 SELECT DISTINCT + 70 * COALESCE ( 40, - 43 ) + + + 61 + - + CASE + - 22 WHEN - COUNT ( * ) + + - 60 * + - 9 - 39 + - 11 / + COUNT ( * ) THEN NULL WHEN + 54 * AVG ( 28 ) THEN + - 75 ELSE NULL END @@ -2427,8 +2448,11 @@ SELECT ALL - 65 + + 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(Int64\(73\), \(\- Int64\(\-43\)\)\)\)\) \+ \(\- Int64\(54\)\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( - - NULLIF ( + 73, - - 43 ) ) + - + ( 54 ) AS col1, + 34 col1 +---- +19 +34 query I rowsort SELECT 47 - + - 35 AS col0 @@ -2535,8 +2559,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(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 II valuesort SELECT DISTINCT - COUNT ( + + 12 ) AS col1, 62 AS col1 +---- +-1 +62 query I rowsort label-475 SELECT ALL MIN ( 37 ) * - 51 + + 21 @@ -3532,8 +3559,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(\-95\)\) AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( DISTINCT - 95 ) AS col1, + 35 AS col1 +---- +-95 +35 query I rowsort SELECT - NULLIF ( + 60, 49 ) * 6 - 78 + 86 AS col1 @@ -3876,8 +3906,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 83 AS col0, + 73 col0 +---- +73 +83 query I rowsort SELECT 24 * - - 64 @@ -4457,8 +4490,11 @@ SELECT ALL + 30 + - 81 + 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3300 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \* Int64\(\-44\) AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 75 * - 44 AS col0, 34 col0 +---- +3300 +34 query I rowsort label-847 SELECT + MAX ( DISTINCT - + 96 ) * + MIN ( + 6 ) + + + 57 - CASE - COUNT ( * ) WHEN 58 THEN - - 75 WHEN + 6 THEN NULL ELSE - COUNT ( * ) / 39 + - COUNT ( * ) END AS col0 @@ -4483,8 +4519,11 @@ SELECT DISTINCT - NULLIF ( + - 57, + 40 ) * + - MIN ( DISTINCT - - 34 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(8\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) * + 8 AS col1, 42 AS col1 +---- +42 +NULL query I rowsort SELECT 4 * + - 63 + - + 53 AS col2 @@ -4646,8 +4685,12 @@ SELECT ALL - MIN ( DISTINCT - - CASE - 95 WHEN 74 THEN NULL ELSE 70 / - 51 END ) # Datafusion - Expected - NULL # Datafusion - Expected - 66 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(\-77\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 22 * ( - CAST ( NULL AS INTEGER ) ) * - - 77 + - COUNT ( * ) col1, 66, 2 AS col1 +---- +2 +66 +NULL query I rowsort label-883 SELECT - 50 * + - 92 + + + COUNT ( * ) - + COUNT ( * ) / SUM ( DISTINCT + ( 26 ) ) * + 4 + - 60 - - COUNT ( * ) @@ -4729,8 +4772,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col1" at position 0 and "Int64\(36\) \- Int64\(\-23\) \+ Int64\(\-55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 AS col1, + 36 - - 23 + + - 55 AS col1 +---- +4 +68 query I rowsort label-898 SELECT + NULLIF ( ( + COUNT ( * ) ), COUNT ( * ) * CASE + + CAST ( NULL AS INTEGER ) WHEN + NULLIF ( + 7, 65 ) THEN NULL ELSE - 38 + + ( 41 ) + SUM ( ALL CAST ( NULL AS INTEGER ) ) * + 43 * 86 END + 62 * 74 ) + SUM ( 69 + 37 * 51 ) @@ -4792,8 +4838,11 @@ SELECT + + 87 + - 14 - - 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6734 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* Int64\(74\) 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 II valuesort SELECT DISTINCT 91 * + 74 AS col2, COUNT ( 33 ) AS col2 +---- +1 +6734 query I rowsort label-910 SELECT + + COUNT ( * ) / 97 + - 25 AS col1 @@ -5227,8 +5276,11 @@ SELECT DISTINCT 31 + - 4 + - 76 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 108663 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) \* Int64\(34\) \* Int64\(\-39\) \+ Int64\(\-69\) AS col0" at position 0 and "Int64\(\-57\) \* \(\- CAST\(NULL AS Int32\)\) / Int64\(7\) \+ Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 82 * 34 * - 39 + - 69 col0, - 57 * - CAST ( NULL AS INTEGER ) / 7 + + 90 AS col0 +---- +108663 +NULL query I rowsort SELECT DISTINCT - - 19 - + 0 @@ -5482,8 +5534,11 @@ SELECT ( - 18 ) * + + 55 * + - 89 + - + 32 AS col0 # 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 "Int64\(87\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 AS col1, + 45 AS col1 +---- +45 +87 query I rowsort label-1041 SELECT DISTINCT 28 / 78 + + ( - - 16 ) - + 75 + - ( + - 8 ) * - 41 @@ -6208,8 +6263,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-80\)\)\) \+ Int64\(19\) AS col2" at position 0 and "\(\- coalesce\(Int64\(0\), \(\- Int64\(90\)\) \* Int64\(3\), \(\- Int64\(\-61\)\) \- \(\- Int64\(69\)\) / \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + MIN ( ALL - 80 ) + + 19 AS col2, - COALESCE ( + 0, - + 90 * + + 3, - - 61 - - + 69 / - CAST ( COUNT ( * ) AS INTEGER ) ) AS col2 +---- +0 +99 query I rowsort SELECT DISTINCT + + 97 + 61 + + + 6 - + 0 * + + 68 @@ -6695,14 +6753,20 @@ 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\(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\. +query II valuesort SELECT - 27 - - + COUNT ( * ) + - - 51 AS col2, + ( + + 27 ) + 2 col2 +---- +25 +29 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "CASE Int64\(\-45\) WHEN Int64\(29\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(74\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, CASE - 45 WHEN 29 THEN + - COUNT ( * ) WHEN + 74 THEN NULL END AS col1 +---- +NULL +NULL query I rowsort SELECT ALL 93 + - - 61 AS col0 @@ -7061,8 +7125,11 @@ SELECT - 74 - - 86 * + + 25 AS col2, - COALESCE ( + 89, - 75, 13 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ max\(DISTINCT Int64\(87\)\) \* \(\- Int64\(\-30\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 67 AS col2, + CAST ( NULL AS INTEGER ) + MAX ( DISTINCT 87 ) * - - 30 col2 +---- +67 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -7149,8 +7216,11 @@ SELECT DISTINCT + CASE + + ( MIN ( ALL - + ( + 22 ) ) ) WHEN - + 88 THEN NULL EL # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "\(\- sum\(Int64\(10\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 36 AS col1, - SUM ( ALL + 10 ) AS col1 +---- +-10 +36 query I rowsort label-1353 SELECT MIN ( DISTINCT - + 22 ) @@ -7383,8 +7453,11 @@ SELECT DISTINCT 60 + + 44 / + + 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 957 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \+ Int64\(\-72\) \* Int64\(\-13\) AS col2" at position 0 and "Int64\(53\) \- Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 21 + - 72 * - 13 AS col2, 53 - 62 AS col2 +---- +-9 +957 query I rowsort SELECT ALL - 34 + - 48 @@ -7437,8 +7510,11 @@ SELECT ALL 47 + - - ( + 0 ) * - 1 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40320 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* Int64\(\-56\) \* Int64\(48\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 15 * - 56 * + + 48 AS col0, 0 AS col0 +---- +-40320 +0 query I rowsort SELECT ALL 18 * 19 AS col2 @@ -7492,8 +7568,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) / \(\- Int64\(90\)\) AS col2" at position 0 and "sum\(\(\- Int64\(\-88\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 / + - ( 90 ) col2, + SUM ( - - 88 ) AS col2 +---- +0 +88 query II rowsort SELECT 81 AS col0, - 16 @@ -7529,14 +7608,20 @@ SELECT COUNT ( * ) * + ( 93 ) + - 20 * + 78 + 2 / + SUM ( DISTINCT + + 70 ) + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col1" at position 0 and "Int64\(\-37\) \+ Int64\(47\) \+ CAST\(NULL AS Int32\) \+ \(\- Int64\(24\)\) / CAST\(nullif\(Int64\(79\), Int64\(14\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 AS col1, - 37 + + 47 + + CAST ( NULL AS INTEGER ) + - + ( 24 ) / CAST ( NULLIF ( + + ( + 79 ), 14 ) AS INTEGER ) AS col1 +---- +81 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 230344 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col1" at position 0 and "Int64\(65\) \* Int64\(74\) \* Int64\(48\) \+ CASE \(\- Int64\(\-43\)\) WHEN Int64\(82\) THEN NULL ELSE Int64\(\-14\) \* Int64\(35\) \+ Int64\(\-46\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 51 AS col1, + 65 * + 74 * 48 + + CASE - - 43 WHEN + 82 THEN NULL ELSE - 14 * + 35 + - 46 END AS col1 +---- +230344 +51 query I rowsort SELECT CASE + 24 WHEN + 98 THEN - 85 * - + 8 - + 10 END + - 86 * 53 @@ -7638,8 +7723,11 @@ SELECT - + 20 AS col0, COUNT ( * ) * + - COUNT ( DISTINCT - 25 ) * + 65 - - + 64 # 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 "\(\- nullif\(Int64\(49\), \(\- count\(Int64\(29\)\)\)\)\) \+ Int64\(4\) \* Int64\(0\) AS col2" at position 0 and "Int64\(\-6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + NULLIF ( + 49, - COUNT ( ALL 29 ) ) + + 4 * - 0 col2, - 6 AS col2 +---- +-49 +-6 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -7708,8 +7796,11 @@ SELECT DISTINCT COUNT ( + + 64 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 300 # Datafusion - Expected - 107 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* Int64\(4\) AS col2" at position 0 and "Int64\(13\) \- Int64\(\-94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 * + 4 AS col2, 13 - - 94 AS col2 +---- +107 +300 query I rowsort label-1458 SELECT 79 * + + 43 - ( + ( + + COUNT ( * ) ) ) AS col2 @@ -8153,8 +8244,11 @@ SELECT ALL + 58 + - - 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - -3201 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "Int64\(24\) / CAST\(Int64\(98\) AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(6\) \+ Int64\(\-41\) \* Int64\(79\) \+ \(\- Int64\(\-44\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 AS col1, 24 / + CAST ( 98 AS INTEGER ) * - ( + COUNT ( * ) ) - + 6 + - 41 * + 79 + - - 44 AS col1 +---- +-3201 +39 query I rowsort label-1544 SELECT - 84 / COUNT ( * ) + + - 86 col0 @@ -8180,8 +8274,11 @@ SELECT 49 + - 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "\(\- nullif\(Int64\(82\), Int64\(20\) \+ Int64\(\-76\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 AS col2, - NULLIF ( 82, 20 + - 76 ) col2 +---- +-82 +76 query II rowsort label-1549 SELECT + + CAST ( NULL AS INTEGER ) AS col2, 26 @@ -8273,8 +8370,11 @@ SELECT ALL 39 + - 16 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \+ Int64\(56\) AS col0" at position 0 and "Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 10 + 56 AS col0, 37 AS col0 +---- +37 +66 query I rowsort label-1567 SELECT 81 + - - MAX ( ALL 38 ) @@ -8427,8 +8527,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "Int64\(13\) \- \(\- CAST\(coalesce\(Int64\(\-6\), Int64\(\-87\)\) AS Int32\)\) \+ Int64\(\-35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 AS col0, 13 - - CAST ( + COALESCE ( - 6, - 87 ) AS INTEGER ) + - 35 AS col0 +---- +-28 +65 query II rowsort SELECT DISTINCT 42, + 70 AS col0 @@ -8629,8 +8732,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -354816 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE CAST\(Int64\(81\) AS Int32\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(62\) ELSE Int64\(\-99\) \* Int64\(64\) \* \(\- Int64\(56\)\) END\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CASE CAST ( + 81 AS INTEGER ) WHEN + COUNT ( * ) THEN 62 ELSE ( - 99 ) * 64 * - + 56 END AS col1, + 9 AS col1 +---- +-354816 +9 query I rowsort SELECT - 74 + + 6 + - 7 AS col2 @@ -8925,8 +9031,11 @@ SELECT ( + ( - + 0 ) ) * - 33 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \+ Int64\(89\) / Int64\(58\) \* \(\- min\(DISTINCT \(\- \(\- Int64\(89\)\)\)\)\) AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 38 + + + 89 / 58 * - MIN ( DISTINCT - - ( + 89 ) ) col0, 6 col0 +---- +-51 +6 query I rowsort label-1689 SELECT 7 / - 85 * + - 39 col0 @@ -8947,8 +9056,11 @@ SELECT + 12 AS col1, 11 * - + 71 + + ( + COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - -151 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "Int64\(\-27\) \+ Int64\(\-28\) \- Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 45 AS col0, - 27 + - 28 - + 96 AS col0 +---- +-151 +45 query I rowsort label-1693 SELECT ALL + - 1 + CAST ( NULL AS INTEGER ) AS col2 @@ -9156,8 +9268,12 @@ SELECT - NULLIF ( + 93, COUNT ( ALL 6 ) - - - 37 ) AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 40 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE CAST\(CASE Int64\(78\) WHEN Int64\(74\) THEN NULL WHEN Int64\(\-74\) THEN \(\- Int64\(\-83\)\) END AS Int32\) WHEN Int64\(\-95\) \* Int64\(61\) \+ Int64\(\-99\) \+ Int64\(\-44\) THEN NULL WHEN \(\- Int64\(10\)\) \* Int64\(70\) \* Int64\(38\) THEN NULL WHEN Int64\(\-70\) THEN Int64\(65\) END\) \+ \(\- Int64\(45\)\) AS col1" at position 0 and "Int64\(82\) \+ Int64\(\-42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - CASE CAST ( + CASE + ( 78 ) WHEN 74 THEN NULL WHEN - 74 THEN - - 83 END AS INTEGER ) WHEN + - 95 * + + 61 + + - 99 + - 44 THEN NULL WHEN - + 10 * 70 * + 38 THEN NULL WHEN - 70 THEN 65 END + - + 45 AS col1, + 82 + - 42 col1, - 54 col0 +---- +-54 +40 +NULL query I rowsort label-1732 SELECT + + COUNT ( ALL 76 ) * 53 * - 2 @@ -10075,8 +10191,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) * + 25 * + + 42 AS col0, 13 col0 +---- +-1050 +13 query I rowsort label-1908 SELECT + 84 + NULLIF ( + COALESCE ( 70, - - 26 + 52 + - + COUNT ( * ) * + COUNT ( * ) ), COUNT ( * ) ) / - 84 col0 @@ -10518,8 +10637,11 @@ 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\(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\. +query II valuesort 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 +---- +-1 +-83 query II rowsort SELECT 95, - 30 AS col1 @@ -10617,8 +10739,11 @@ SELECT ALL 87, + 11 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "Int64\(\-55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 54 AS col2, - 55 AS col2 +---- +-55 +54 query I rowsort label-2012 SELECT ALL - + COALESCE ( - 71, 75, 73 + + 52 + + 85 ) * - COALESCE ( + - COUNT ( * ), + ( CASE COALESCE ( + 43, - 48 / - ( - 7 ) / 54 + - 53 * + 49 + + - 88 + - 44 ) WHEN + - 26 THEN + + 22 + NULLIF ( + 93, + CAST ( 2 AS INTEGER ) + 35 ) * - + 56 * 55 ELSE 55 * + 80 END ), + COALESCE ( + 48, + CAST ( NULL AS INTEGER ) ) ) AS col0 @@ -10769,8 +10894,12 @@ SELECT DISTINCT - NULLIF ( - COALESCE ( + - 25, + 97 / ( - 66 ) + - + 30 - 21 + # Datafusion - Expected - 40 # Datafusion - Expected - 144 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \+ Int64\(85\) AS col1" at position 0 and "Int64\(39\) \+ min\(DISTINCT Int64\(\-34\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ( - 45 ) + + 85 AS col1, + 64 + - - 80, 39 + MIN ( DISTINCT + - 34 ) AS col1 +---- +144 +40 +5 query II rowsort label-2041 SELECT + 68 + + - COUNT ( * ) AS col2, 90 * 1 @@ -10869,8 +10998,12 @@ SELECT DISTINCT + 40 AS col1, - 86 # Datafusion - Expected - 2214 # Datafusion - Expected - 30 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 1 and "Int64\(97\) \+ Int64\(11\) \* Int64\(\-26\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 27 * - - ( + 82 ), 30 AS col2, + 97 + 11 * - 26 + - CAST ( NULL AS INTEGER ) AS col2 +---- +2214 +30 +NULL query II rowsort SELECT ALL + 53 AS col0, - 90 * + 46 - 60 AS col1 @@ -11215,8 +11348,11 @@ SELECT ALL 28 * SUM ( + + COALESCE ( + 36, + - 31 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 128609 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \- Int64\(\-30\) \+ \(\- Int64\(\-20\)\) \* Int64\(88\) \* Int64\(73\) AS col0" at position 0 and "Int64\(78\) \+ Int64\(24\) \+ \(\- Int64\(87\)\) \- Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 99 - - 30 + - - 20 * + 88 * + ( + 73 ) AS col0, + 78 + + 24 + - + 87 - - 16 AS col0 +---- +128609 +31 query I rowsort SELECT 79 + + 52 @@ -11253,8 +11389,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COALESCE ( - + COUNT ( * ), 99 * + 45 + - COALESCE ( + - MAX ( 22 ), + ( - 98 ), - COUNT ( * ) * - - 11 ) ) AS col2, + ( - CASE + 22 WHEN - + COUNT ( * ) THEN NULL ELSE COUNT ( * ) END ) col2 +---- +-1 +1 query I rowsort label-2130 SELECT ALL + 80 / - 9 AS col0 @@ -11775,8 +11914,11 @@ SELECT - 91 * 71 * - 67 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "Int64\(2\) \+ \(\- CAST\(Int64\(35\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 col2, 2 + - + CAST ( 35 AS INTEGER ) AS col2 +---- +-33 +6 query I rowsort label-2233 SELECT - 79 - + 76 * - 93 + CASE + COUNT ( * ) WHEN + ( + 7 ) * ( - 30 ) THEN NULL WHEN + MIN ( ALL + 34 ) * 58 + 54 / - 53 THEN + 16 * + 97 ELSE - 85 * 33 + 92 * COUNT ( ALL NULLIF ( 11, - 56 + 90 / 40 ) ) END @@ -11811,8 +11953,11 @@ SELECT ALL + 60 * + - 26 # 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 "Int64\(98\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 AS col1, 84 AS col1 +---- +84 +98 query I rowsort label-2240 SELECT ALL + + MIN ( 18 ) * 22 - 89 col2 @@ -12414,8 +12559,11 @@ SELECT + 99 * - - 57 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 704 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* Int64\(11\) AS col2" at position 0 and "Int64\(\-11\) \- Int64\(\-58\) \+ Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 64 * + 11 AS col2, ( - 11 ) - - 58 + 43 AS col2 +---- +704 +90 query I rowsort SELECT - 75 * - ( + 22 ) @@ -13784,8 +13932,11 @@ 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\(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\. +query II valuesort SELECT 2 col1, NULLIF ( 5, + - 60 * + ( NULLIF ( - COUNT ( * ), + + 4 / 42 ) ) / - 94 + + - 96 / - 58 * + 95 - + 49 ) + + 25 + - COUNT ( * ) col1 +---- +2 +29 query I rowsort SELECT ALL + 79 * + 65 @@ -13801,8 +13952,12 @@ 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\(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\. +query III valuesort SELECT ALL + COUNT ( * ), 20 / - - 70 AS col1, + + COUNT ( * ) +---- +0 +1 +1 query I rowsort label-2619 SELECT ALL + + COUNT ( - + 27 ) * - + 49 + + 78 @@ -13893,8 +14048,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \+ Int64\(28\) AS col2" at position 0 and "Int64\(90\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 + + 28 AS col2, 90 * - + CAST ( NULL AS INTEGER ) AS col2 +---- +82 +NULL query I rowsort SELECT 61 * - - 62 @@ -14107,8 +14265,11 @@ SELECT - 67 * 78, - 98 * NULLIF ( 41, + + 24 + - - COUNT ( * ) + + 82 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2041 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \* Int64\(86\) \+ Int64\(83\) \+ Int64\(66\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 22 * + ( 86 ) + + 83 + + 66 AS col1, 11 col1 +---- +11 +2041 query I rowsort label-2677 SELECT DISTINCT ( + ( MAX ( DISTINCT + 2 ) ) ) AS col0 @@ -14143,8 +14304,11 @@ SELECT CAST ( - 90 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1800 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* Int64\(75\) AS col1" at position 0 and "Int64\(\-7\) \- Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 24 * + 75 AS col1, - 7 - 82 AS col1 +---- +-89 +1800 query II rowsort label-2684 SELECT DISTINCT - 89 + - 65 col2, ( - SUM ( ALL + ( 34 ) ) ) + 19 AS col1 @@ -14280,8 +14444,11 @@ SELECT DISTINCT NULLIF ( - - 23, 85 ) * 98 + - ( 43 ) - 14 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 2546 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "Int64\(38\) \* \(\- Int64\(\-67\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 40 col1, + 38 * - + ( - 67 ) AS col1 +---- +2546 +40 query I rowsort label-2710 SELECT - 20 + - ( - - 89 ) * + COUNT ( * ) AS col0 @@ -14435,8 +14602,11 @@ SELECT DISTINCT MIN ( DISTINCT 38 ) * - 45 * 84 * 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \+ \(\- CAST\(Int64\(\-18\) AS Int32\)\) \* count\(Int64\(6\)\) AS col2" at position 0 and "Int64\(\-99\) \+ Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 44 + - CAST ( - 18 AS INTEGER ) * COUNT ( + 6 ) AS col2, - 99 + 18 AS col2 +---- +-81 +62 query I rowsort label-2739 SELECT - 76 * - - 16 + - COUNT ( * ) * 39 AS col1 @@ -14446,8 +14616,11 @@ SELECT - 76 * - - 16 + - COUNT ( * ) * 39 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \- Int64\(\-53\) AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4 - - 53 AS col2, 40 AS col2 +---- +40 +57 query I rowsort SELECT ALL + 89 * + 69 + + + 49 - + 69 @@ -14804,8 +14977,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 42 AS col0, CAST ( + + COUNT ( * ) AS INTEGER ) AS col0 +---- +1 +42 query I rowsort label-2809 SELECT ALL COUNT ( * ) * 33 * - 70 AS col0 @@ -14980,8 +15156,11 @@ SELECT COUNT ( * ) - + + 43 + - 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) / Int64\(\-92\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 / - 92 AS col1, COUNT ( * ) AS col1 +---- +0 +1 query I rowsort SELECT 32 * - 76 AS col0 @@ -15099,8 +15278,11 @@ SELECT DISTINCT ( - + 36 ) * + - 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ CASE Int64\(\-55\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-46\) WHEN \(\- \(\- count\(Int64\(45\)\)\)\) \* Int64\(\-64\) THEN NULL ELSE \(\- CAST\(NULL AS Int32\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +29 +NULL query I rowsort label-2865 SELECT ALL - NULLIF ( - COUNT ( * ), + 5 - - 45 - + - MAX ( - 54 ) * - COUNT ( * ) ) @@ -15323,8 +15505,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE sum\(Int64\(60\)\) WHEN coalesce\(\(\- count\(DISTINCT Int64\(\-47\)\)\), Int64\(55\)\) \+ \(\- sum\(Int64\(13\)\)\) \+ \(\- CAST\(coalesce\(Int64\(12\), avg\(Int64\(\-54\)\), \(\- \(\- Int64\(21\)\)\)\) AS Int32\)\) \* Int64\(\-80\) THEN Int64\(60\) \+ Int64\(27\) ELSE Int64\(76\) END\) AS col2" at position 0 and "Int64\(\-92\) \* \(\- Int64\(\-90\)\) \* \(\- Int64\(\-94\)\) \+ \(\- CAST\(NULL AS Int32\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-76 +NULL query I rowsort SELECT - 98 * + ( 76 ) @@ -15597,8 +15782,11 @@ 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\(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\. +query IR valuesort SELECT ALL - + 49 * - 61 AS col2, NULLIF ( COALESCE ( - 27, + COUNT ( * ) ), + 67 * + 63 + - + AVG ( 67 ) ) + - 42 AS col2 +---- +-69 +2989 query I rowsort label-2957 SELECT + SUM ( + 58 ) + + CAST ( NULL AS INTEGER ) col2 @@ -15618,8 +15806,11 @@ SELECT ALL + + COUNT ( * ) - + ( - + 95 ) # 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 col2" at position 0 and "\(\- coalesce\(\(\- Int64\(\-53\)\), Int64\(\-53\), Int64\(48\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 70 AS col2, - COALESCE ( - - 53, - 53, 48 ) AS col2 +---- +-53 +70 query I rowsort label-2961 SELECT - 19 - + + NULLIF ( - + 44, CASE - AVG ( - + 31 ) WHEN - + 4 THEN + 77 + - 54 END + + + MIN ( + 63 ) + - COUNT ( * ) / - NULLIF ( 3, + - 74 * - 14 ) ) @@ -15895,8 +16086,11 @@ SELECT 43 AS col1, COUNT ( * ) / + + 17 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 "CASE Int64\(\-31\) WHEN Int64\(81\) \* Int64\(36\) THEN Int64\(\-10\) WHEN Int64\(74\) \* Int64\(92\) \- coalesce\(Int64\(92\), Int64\(\-2\)\) THEN count\(Int64\(3\)\) \* Int64\(\-62\) \+ Int64\(\-68\) WHEN Int64\(\-94\) / Int64\(88\) \+ Int64\(\-42\) THEN NULL END AS col0" at position 0 and "Int64\(\-63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CASE - 31 WHEN 81 * 36 THEN - 10 WHEN 74 * + 92 - + COALESCE ( + + 92, + - 2 ) THEN + COUNT ( ALL + 3 ) * - 62 + - 68 WHEN + - 94 / + + ( + + 88 ) + - 42 THEN NULL END AS col0, - 63 AS col0 +---- +-63 +NULL query I rowsort label-3014 SELECT + 94 + - 9 - - - CAST ( + 64 AS INTEGER ) AS col0 @@ -16148,8 +16342,11 @@ SELECT ALL - NULLIF ( + 72, + - 79 + - + 31 + 81 ), COUNT ( * ) col1, - 29 - - 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -190 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) \- Int64\(69\) \- Int64\(89\) AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 32 - 69 - + 89 col0, 33 col0 +---- +-190 +33 query II rowsort SELECT 63 AS col0, - 16 + + 99 @@ -16272,8 +16469,11 @@ SELECT 23 + - 67 * - SUM ( DISTINCT - - 70 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 81 AS col0, - 65 AS col0 +---- +-65 +81 query I rowsort label-3086 SELECT COUNT ( * ) + - 41 * + + 9 AS col0 @@ -17236,8 +17436,11 @@ 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\(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\. +query II valuesort SELECT 20 * - + ( - COUNT ( * ) ) + + 20 AS col2, + COALESCE ( - COUNT ( * ), 57 * + - 76 * + 57 ) AS col2 +---- +-1 +40 query I rowsort SELECT + + 98 + + + 80 @@ -17472,8 +17675,11 @@ SELECT DISTINCT COUNT ( + - 99 ) - - 27 + + + 73 - 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col1" at position 0 and "\(\- Int64\(66\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 61 col1, - ( 66 ) AS col1 +---- +-61 +-66 query I rowsort SELECT ( + 23 ) + 38 + - 83 * - NULLIF ( - 62, - 65 ) AS col1 @@ -17503,8 +17709,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 36 * - 77 + + 93 col1, + ( + - 12 ) * - - 8 * - COUNT ( * ) AS col1 +---- +-2679 +96 query I rowsort label-3321 SELECT ALL - + 63 + - - MAX ( 85 ) / - 24 AS col1 @@ -17640,8 +17849,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 54 * - 72 AS col2, - 17 * - COUNT ( * ) * 16 AS col2 +---- +-3888 +272 query I rowsort label-3347 SELECT ALL + 78 * 18 + + COUNT ( * ) AS col2 @@ -17821,8 +18033,11 @@ SELECT + COUNT ( * ), 42 + - 2 + + 70 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(58\)\) \* Int64\(\-42\) \+ Int64\(64\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "CASE Int64\(84\) WHEN Int64\(57\) THEN \(\- Int64\(65\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( DISTINCT 58 ) * - 42 + 64 + - CAST ( NULL AS INTEGER ) AS col1, CASE 84 WHEN 57 THEN - + 65 END col1 +---- +NULL +NULL # Datafusion - Data was automatically updated based on comparison db results # Datafusion - Previous results: @@ -17853,8 +18068,11 @@ SELECT ALL + COUNT ( * ) / + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(66\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "\(\- Int64\(\-68\)\) \+ Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 90 * + 66 + - - CAST ( NULL AS INTEGER ) AS col2, - ( - 68 ) + + 0 AS col2 +---- +68 +NULL query I rowsort SELECT DISTINCT - + 16 * 30 @@ -17910,8 +18128,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "Int64\(32\) \- CASE Int64\(\-64\) WHEN Int64\(5\) \* Int64\(10\) \* \(\- CASE Int64\(21\) WHEN Int64\(71\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(92\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- max\(\(\- Int64\(81\)\)\)\) \* Int64\(37\) \* \(\- Int64\(90\)\) \- avg\(Int64\(71\)\) \+ Int64\(\-66\) THEN Int64\(\-20\) / sum\(Int64\(30\)\) END\) \- Int64\(31\) \+ Int64\(\-2\) \- \(\- CAST\(NULL AS Int32\)\) \* Int64\(4\) \* avg\(DISTINCT Int64\(\-26\)\) \* \(\- Int64\(\-16\)\) \+ Int64\(\-69\) \* Int64\(33\) \* Int64\(12\) THEN count\(Int64\(1\)\) AS count\(\*\) END \+ Int64\(50\) \* \(\- Int64\(\-13\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +53 +NULL query I rowsort label-3397 SELECT 51 - 1 + - SUM ( DISTINCT + + 76 ) @@ -18270,8 +18491,11 @@ SELECT DISTINCT + 7 * + + 84 * - 75 * - SUM ( DISTINCT - - 31 ) + - - 72 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-12\) \* \(\- \(\- CASE CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) WHEN Int64\(4\) \* Int64\(\-4\) THEN Int64\(\-74\) \* Int64\(\-95\) \+ count\(Int64\(1\)\) AS count\(\*\) END\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( COUNT ( * ) ) * CAST ( NULL AS INTEGER ) col2, - 12 * - - CASE CAST ( - COUNT ( * ) AS INTEGER ) WHEN + 4 * - 4 THEN + - 74 * - 95 + + + COUNT ( * ) END AS col2 +---- +NULL +NULL query I rowsort label-3464 SELECT - - CAST ( NULL AS INTEGER ) + + COUNT ( DISTINCT + 47 ) + + COALESCE ( - 53, + 92 ) @@ -18289,8 +18513,11 @@ SELECT + NULLIF ( - + 28, + MIN ( CAST ( NULL AS FLOAT8 ) ) ) / + - 28 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(\-92\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- Int64\(62\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 49 * - 92 * + + CAST ( NULL AS INTEGER ) AS col0, - ( + 62 ) col0 +---- +-62 +NULL query I rowsort SELECT ALL - - 32 * 8 + - 13 AS col0 @@ -18520,8 +18747,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 7821 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* Int64\(79\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 99 * 79 col1, + 7 AS col1 +---- +7 +7821 query II rowsort SELECT + 8 + + 92, 26 + + 68 col2 @@ -18898,8 +19128,12 @@ SELECT DISTINCT ( 80 ) AS col0 # Datafusion - Expected - -1 # Datafusion - Expected - -102 # Datafusion - Expected - -91 -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\(\-91\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - COUNT ( - + 59 ) AS col2, + 21 + - 62 + - 62 + ( COUNT ( * ) ), - 91 AS col2 +---- +-1 +-102 +-91 query I rowsort SELECT + + 29 * + 4 * + + 26 @@ -18975,8 +19209,12 @@ SELECT ALL + 22 * + + 3 AS col2 # Datafusion - Expected - -34 # Datafusion - Expected - -42 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col1" at position 1 and "Int64\(50\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - 34, - 42 col1, 50 AS col1 +---- +-34 +-42 +50 query I rowsort label-3600 SELECT - + 37 * + COUNT ( * ) + + 0 AS col0 @@ -19036,8 +19274,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5525 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \* Int64\(65\) AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 85 * 65 AS col2, + 40 AS col2 +---- +-5525 +40 query II rowsort label-3612 SELECT MIN ( DISTINCT - 39 ) AS col1, 12 @@ -19379,8 +19620,11 @@ SELECT ALL 90 * - - 99 # 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\(83\) \+ Int64\(\-78\) AS col1" at position 0 and "Int64\(1\) / \(\- Int64\(85\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 83 + - 78 AS col1, + 1 / - + 85 AS col1 +---- +0 +5 query I rowsort SELECT DISTINCT 1 * - 80 * - - 79 AS col1 @@ -20106,8 +20350,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(8\), Int64\(62\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 50 AS col2, 63 * + 49 + - 77 * - NULLIF ( COUNT ( * ) * + 8, ( 62 ) ) AS col2 +---- +3703 +50 query I rowsort SELECT 18 * - 87 * 16 AS col0 @@ -20260,8 +20507,11 @@ 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\(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\. +query II valuesort 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 +---- +1200 +NULL query I rowsort SELECT DISTINCT CASE + - 30 WHEN + + 88 * - 30 + 87 THEN NULL WHEN 0 THEN + 7 ELSE NULL END * 98 @@ -20630,8 +20880,11 @@ 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\(1\)\) AS count\(\*\), \(\- Int64\(\-40\)\)\) \+ Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 58 AS col1, NULLIF ( + COUNT ( * ), - - 40 ) + + 97 AS col1 +---- +58 +98 query I rowsort label-3920 SELECT + 29 + - MAX ( - 2 ) + 75 + + + 8 * - 32 - + 34 @@ -20691,8 +20944,11 @@ SELECT + MAX ( DISTINCT + COALESCE ( + + 4, 42 + - + 16 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 20 AS col2, 50 col2 +---- +20 +50 query II rowsort label-3931 SELECT DISTINCT - - MAX ( DISTINCT + 5 ), CASE - - 95 WHEN - 83 / + + 95 * - COUNT ( * ) THEN NULL ELSE - 42 / + 14 END AS col0 @@ -20757,8 +21013,11 @@ SELECT DISTINCT - NULLIF ( 98, - - COUNT ( * ) * 5 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 198 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \* Int64\(\-33\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 6 * - 33 col1, + 5 AS col1 +---- +198 +5 query II rowsort SELECT 90 * 15, 40 AS col1 @@ -21137,8 +21396,11 @@ SELECT 82 + + + 59 AS col1 # 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 "Int64\(\-50\) / \(\- Int64\(\-1\)\) AS col1" at position 0 and "Int64\(\-11\) \+ Int64\(\-74\) \+ \(\- \(\- Int64\(4\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 50 / - - 1 col1, - 11 + - 74 + + + ( - - ( + 4 ) ) AS col1 +---- +-50 +-81 query I rowsort SELECT 28 + - 88 @@ -21517,8 +21779,11 @@ SELECT + 44 * + - 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) / Int64\(\-30\) AS col1" at position 0 and "Int64\(\-53\) \+ Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 61 / - 30 AS col1, - 53 + + 49 AS col1 +---- +-2 +-4 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -21563,8 +21828,11 @@ SELECT ALL + CAST ( - 37 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-55\)\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( + - 55 ) AS col0, 10 AS col0 +---- +-55 +10 query I rowsort SELECT ( - ( 36 ) ) @@ -22384,8 +22652,11 @@ SELECT + CAST ( 65 AS INTEGER ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \+ Int64\(32\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 44 + 32 AS col1, 83 col1 +---- +76 +83 query I rowsort SELECT ALL 27 + - - 93 @@ -22459,8 +22730,11 @@ SELECT 78 - - 36 - - 69 + - CAST ( - 53 AS INTEGER ) - + 30 + + - 76 - + + 87 - # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -2549 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-85\) \* \(\- min\(DISTINCT Int64\(\-30\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 - COUNT ( * ) AS col2, - 85 * - MIN ( DISTINCT + - 30 ) + + COUNT ( * ) AS col2 +---- +-2549 +86 query I rowsort label-4263 SELECT 97 + - ( - COUNT ( * ) ) - 8 + + 81 AS col2 @@ -22596,8 +22870,11 @@ SELECT 78 + - + 80 * + NULLIF ( - NULLIF ( - 16, - COALESCE ( 25, + 75 ) ), + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "Int64\(22\) \+ Int64\(\-17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 88 AS col1, 22 + - 17 AS col1 +---- +5 +88 query I rowsort label-4289 SELECT DISTINCT 12 / - 51 @@ -23095,8 +23372,11 @@ SELECT - 70 / + 72 - + 95 + - - 22 / 55 * - + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-29\) THEN Int64\(52\) WHEN Int64\(50\) THEN \(\- CAST\(\(\- Int64\(\-24\)\) AS Int32\)\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 54 AS col2, CASE + COUNT ( * ) WHEN - 29 THEN + + 52 WHEN 50 THEN - CAST ( - - 24 AS INTEGER ) END AS col2 +---- +54 +NULL query I rowsort label-4384 SELECT ALL - CASE - 25 WHEN 26 THEN + COALESCE ( COALESCE ( - ( ( + 70 ) ), CASE + 82 WHEN - SUM ( - 49 ) THEN - 83 END, + + 39 ), 62 ) WHEN - CASE + 30 WHEN - 56 + + - 63 + + 55 + + COUNT ( * ) / - 70 THEN NULL ELSE + 32 + 49 END + AVG ( - 0 ) THEN NULL ELSE NULL END @@ -24092,8 +24372,11 @@ SELECT + + 53 AS col2, 94 * 34 / - 6 - + 15 - + - 42 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + COUNT ( * ) AS col1, - COUNT ( * ) AS col1 +---- +-1 +1 query I rowsort label-4573 SELECT DISTINCT 93 * 32 - + - 64 - + COUNT ( * ) @@ -24157,8 +24440,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 1736 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(43\) AS Int32\) AS col0" at position 0 and "Int64\(\-62\) \* \(\- coalesce\(\(\- Int64\(\-28\)\), Int64\(4\), Int64\(6\) \* CAST\(Int64\(57\) AS Int32\) \* Int64\(4\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( 43 AS INTEGER ) col0, - 62 * - + COALESCE ( - - 28, 4, 6 * CAST ( 57 AS INTEGER ) * + 4 ) AS col0 +---- +1736 +43 query I rowsort SELECT DISTINCT - 75 * - + 94 AS col1 @@ -24231,8 +24517,11 @@ 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\(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\. +query II valuesort SELECT ALL + + ( 5 ) / - ( + 7 ) * - - COUNT ( * ) * - + 80 + - COUNT ( * ) + 0 * - ( 15 ) AS col0, - SUM ( 66 ) AS col0 +---- +-1 +-66 query I rowsort SELECT ALL + - ( - 12 ) @@ -24688,8 +24977,11 @@ SELECT - + ( 92 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - -1037 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "Int64\(42\) \* \(\- CAST\(Int64\(25\) AS Int32\)\) \+ Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 10 AS col2, ( 42 ) * - CAST ( ( + 25 ) AS INTEGER ) + + 13 AS col2 +---- +-1037 +10 query I rowsort label-4686 SELECT ALL - 10 / COALESCE ( - CAST ( NULL AS INTEGER ), - 95, + ( - 72 ) ) @@ -25028,8 +25320,12 @@ SELECT - 39 + - + 67 + + 95 # Datafusion - Expected - 88 # Datafusion - Expected - 38 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \+ Int64\(75\) AS col1" at position 0 and "\(\- Int64\(82\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 13 + 75 AS col1, 38, - ( 82 ) AS col1 +---- +-82 +38 +88 query III rowsort label-4751 SELECT DISTINCT - 69 + + CAST ( NULL AS INTEGER ) AS col1, - 40 - - 10 * + 5 AS col0, + SUM ( ALL CAST ( NULL AS INTEGER ) ) * + 74 @@ -25622,8 +25918,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - -450 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) AS col0" at position 0 and "CAST\(\(\- min\(Int64\(10\)\)\) AS Int32\) \* Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 67 col0, + CAST ( - MIN ( ALL + 10 ) AS INTEGER ) * 45 col0 +---- +-450 +-67 query I rowsort SELECT ALL 59 * + 42 @@ -25755,8 +26054,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-49\)\) AS col2" at position 0 and "Int64\(26\) \- min\(\(\- Int64\(5\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 49 AS col2, 26 - MIN ( - + 5 ) AS col2 +---- +31 +49 query II rowsort label-4887 SELECT - COUNT ( * ) col0, + COUNT ( * ) @@ -25778,8 +26080,11 @@ SELECT COUNT ( * ) * + 36 * + 82 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- CASE Int64\(\-68\) WHEN Int64\(40\) THEN NULL WHEN Int64\(9\) \* \(\- Int64\(44\)\) THEN NULL WHEN Int64\(50\) \+ Int64\(\-95\) \+ Int64\(14\) \- Int64\(29\) THEN min\(Int64\(76\)\) \* Int64\(\-31\) ELSE NULL END\) \+ Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( CAST ( NULL AS INTEGER ) ) AS col2, - CASE - 68 WHEN + 40 THEN NULL WHEN 9 * - + 44 THEN NULL WHEN 50 + - 95 + + 14 - 29 THEN + ( MIN ( 76 ) ) * - 31 ELSE NULL END + 32 AS col2 +---- +NULL +NULL query I rowsort label-4891 SELECT 67 + - + COUNT ( * ) @@ -26343,8 +26648,11 @@ SELECT DISTINCT + - 19 + - 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - -115587 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \+ Int64\(81\) \* \(\- Int64\(\-46\)\) \* Int64\(\-31\) AS col1" at position 0 and "Int64\(\-11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 81 + + + 81 * + ( - - 46 ) * + - 31 AS col1, - 11 AS col1 +---- +-11 +-115587 query I rowsort label-4998 SELECT DISTINCT + COALESCE ( + + 82, + + 1 * + COUNT ( * ) + + 29, + 3 + - 61 - - 42 ) + 73 col0 @@ -26359,8 +26667,11 @@ SELECT DISTINCT + - 44 + + - 47 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col0" at position 0 and "Int64\(\-47\) \+ Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 40 AS col0, - 47 + 82 AS col0 +---- +-40 +35 query II rowsort label-5001 SELECT ALL + + COUNT ( + 41 ) + + COALESCE ( + + 65, COALESCE ( + - 9, - 90 * - 0 ) ) AS col2, 45 @@ -26595,8 +26906,11 @@ SELECT - 44 + - 40 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-12\)\) AS col1" at position 0 and "Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 12 AS col1, + 18 AS col1 +---- +12 +18 query I rowsort label-5046 SELECT ALL 58 * + - COUNT ( * ) AS col2 @@ -26606,8 +26920,11 @@ SELECT ALL 58 * + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - -1573 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(60\) WHEN count\(Int64\(45\)\) \* nullif\(Int64\(47\), Int64\(11\)\) \* \(\- Int64\(57\)\) THEN NULL ELSE \(\- Int64\(5\)\) END / Int64\(35\) \- Int64\(89\) AS col1" at position 0 and "Int64\(32\) \* Int64\(\-49\) \+ sum\(Int64\(\-5\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CASE + 60 WHEN COUNT ( 45 ) * NULLIF ( 47, 11 ) * - + 57 THEN NULL ELSE - + 5 END / 35 - + 89 AS col1, + 32 * - 49 + SUM ( - 5 ) AS col1 +---- +-1573 +-89 query I rowsort label-5048 SELECT CAST ( AVG ( + 7 ) AS INTEGER ) @@ -27305,8 +27622,11 @@ SELECT 98 AS col1, NULLIF ( + 75, + 55 ) + CASE - + SUM ( ALL 33 ) WHEN + - 36 T # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( 58 ) AS col0, - 26 AS col0 +---- +-26 +58 query I rowsort SELECT - 41 * + + 88 AS col0 @@ -27316,8 +27636,11 @@ SELECT - 41 * + + 88 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 70 AS col2, + 29 AS col2 +---- +-70 +29 query I rowsort SELECT ALL - 94 * - 28 AS col2 @@ -27525,8 +27848,11 @@ SELECT ALL - 1 + - - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 580 # Datafusion - Expected - 119 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(\-50\)\) / Int64\(\-79\) \- Int64\(35\) \* Int64\(\-16\) \+ Int64\(20\) AS col2" at position 0 and "Int64\(7\) \* Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( DISTINCT - 50 ) / - 79 - + 35 * + - 16 + ( + 20 ) AS col2, 7 * 17 col2 +---- +119 +580 query II rowsort label-5223 SELECT + NULLIF ( + - 72, - COALESCE ( MAX ( - 6 ), 42 ) / COUNT ( * ) * 89 + - - 83 * - 57 * CASE - + COUNT ( * ) WHEN - - NULLIF ( + 3, + - 85 - + - 13 - + 99 * 33 * - - 41 * - 7 ) THEN NULL WHEN + - 3 + + COUNT ( * ) THEN + - MAX ( + 50 ) END * + ( + + COUNT ( * ) ) * - - 33 + + 28 ), - 13 col0 @@ -27672,8 +27998,11 @@ SELECT + + CAST ( + AVG ( + 37 ) AS INTEGER ) # 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 "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 64 AS col0, 92 AS col0 +---- +64 +92 query I rowsort label-5250 SELECT - - 86 * - - 76 + + + 78 + - + CAST ( + 70 AS INTEGER ) - 96 + + 73 * - COUNT ( * ) * + - 11 AS col2 @@ -27978,8 +28307,12 @@ SELECT ALL - COUNT ( * ) / - + 96 # Datafusion - Expected - 24 # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 and "Int64\(35\) / Int64\(\-35\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 24, + ( + - CAST ( NULL AS INTEGER ) ) AS col0, + 35 / - 35 AS col0 +---- +-1 +24 +NULL query I rowsort SELECT ALL - 32 + - 40 AS col2 @@ -28469,8 +28802,11 @@ SELECT COUNT ( * ) * - + 57 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 22 AS col0, + COUNT ( * ) AS col0 +---- +1 +22 query I rowsort SELECT NULLIF ( 59, - 73 ) @@ -28893,8 +29229,11 @@ SELECT ALL + - COALESCE ( + 68, - COUNT ( * ) * - - 55 * - + COUNT ( * ) * 96 + # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "\(\- Int64\(\-67\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 18 AS col1, - ( - 67 ) AS col1 +---- +18 +67 query I rowsort SELECT + 93 + + + 82 @@ -28962,8 +29301,11 @@ SELECT - CAST ( 32 AS INTEGER ) + + MAX ( DISTINCT 54 ) * - NULLIF ( - 29, + COA # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 97 col1, 5 AS col1 +---- +-97 +5 query I rowsort label-5498 SELECT ALL - 86 / + 49 AS col1 @@ -29087,8 +29429,12 @@ SELECT + + 21 / + 30 # Datafusion - Expected - 82 # Datafusion - Expected - -29 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \- \(\- Int64\(\-52\)\) AS col1" at position 1 and "Int64\(32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 82, + 23 - - ( - 52 ) AS col1, 32 AS col1 +---- +-29 +32 +82 query I rowsort label-5521 SELECT - 85 * - ( + 58 ) - - 2 + 93 / 15 AS col2 @@ -29829,8 +30175,11 @@ SELECT ALL COUNT ( ALL - 47 ) - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 2573 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "Int64\(83\) \* Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 73 AS col0, 83 * + 31 AS col0 +---- +2573 +73 query I rowsort SELECT DISTINCT - ( 21 ) * + - 79 * + ( - + 50 ) AS col0 @@ -29952,8 +30301,11 @@ SELECT - 16 * - 53 + + 78 # 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 "Int64\(29\) \- Int64\(31\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 - + + 31 AS col2, 27 col2 +---- +-2 +27 query I rowsort SELECT ALL 99 * - 6 * 21 AS col0 @@ -30210,8 +30562,11 @@ 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\(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\. +query II valuesort SELECT ALL + 32 + - - 77 + - 50 + + NULLIF ( COUNT ( * ), + + 29 * + 71 * + - 85 ) + - 4 / + 31 + - 4 AS col1, 74 AS col1 +---- +56 +74 query I rowsort label-5735 SELECT - - CAST ( + + COALESCE ( - 89, 70 / 71 * - - 48 + + - ( - COUNT ( + - 96 ) ) ) AS INTEGER ) AS col2 @@ -30654,8 +31009,11 @@ 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\(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\. +query II valuesort SELECT ALL + 28 / 74 * + 66 * COUNT ( * ) * - 71 + - ( - - 78 ) - + 18 AS col0, 72 AS col0 +---- +-96 +72 query I rowsort label-5821 SELECT 55 / - + 10 @@ -30876,8 +31234,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3371 # Datafusion - Expected - 142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \+ nullif\(\(\- \(\- coalesce\(Int64\(\-62\), Int64\(\-98\) \+ Int64\(61\), Int64\(11\)\)\)\), \(\- Int64\(\-14\)\)\) \+ Int64\(59\) \* Int64\(59\) AS col1" at position 0 and "Int64\(85\) \+ Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 + NULLIF ( - ( - COALESCE ( - 62, - 98 + 61, + ( 11 ) ) ), - - 14 ) + 59 * 59 AS col1, 85 + 57 col1 +---- +142 +3371 query II rowsort label-5863 SELECT ALL SUM ( ALL - 51 ), - 74 * - COUNT ( * ) / + 99 + - - 16 col1 @@ -31007,8 +31368,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 14 * - 67 + 59 AS col2, COUNT ( * ) + + 9 * - - 31 * COUNT ( * ) * + 19 * + - 71 * - + ( + + 61 ) + - - 56 AS col2 +---- +22958688 +997 query I rowsort SELECT ALL - ( - + 50 ) * + 55 + - 16 @@ -31043,8 +31407,11 @@ SELECT ALL - 89 + - + 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 35 AS col1, 48 col1 +---- +-35 +48 query II rowsort label-5894 SELECT - CAST ( NULL AS INTEGER ), + 96 AS col1 @@ -31178,8 +31545,11 @@ SELECT ( 32 ) + + 53 * + + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col0" at position 0 and "Int64\(35\) \+ Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 5 AS col0, + 35 + + 15 AS col0 +---- +-5 +50 query I rowsort label-5919 SELECT 35 * + + CAST ( NULL AS INTEGER ) + 49 * + 1 * 39 + COALESCE ( - 27, - + 47 * 25 + + - ( 44 ) - ( - + 24 ) * NULLIF ( + 29, - 31 + + 79 ) ) * - + 93 @@ -31214,8 +31584,11 @@ SELECT ALL 19 + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \+ Int64\(34\) \- Int64\(28\) AS col0" at position 0 and "Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 88 + + 34 - + 28 AS col0, + 15 AS col0 +---- +-82 +15 query I rowsort label-5926 SELECT DISTINCT 76 * - 13 + + - MAX ( + 84 ) / - MAX ( DISTINCT - 70 ) - - 68 + + NULLIF ( + 1, + 47 ) AS col2 @@ -31606,8 +31979,11 @@ SELECT ALL + CAST ( - + 95 AS INTEGER ) * - 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(65\)\)\) \* \(\- \(\- count\(\(\- Int64\(50\)\)\)\)\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( DISTINCT 65 ) * - - COUNT ( - + 50 ) AS col1, + 91 AS col1 +---- +-65 +91 query II rowsort SELECT 40, - 91 AS col1 @@ -31923,8 +32299,11 @@ SELECT ALL 28 + ( + - ( - 22 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 73 AS col0, + 15 AS col0 +---- +15 +73 query I rowsort SELECT 24 + + - 85 col2 @@ -31946,8 +32325,12 @@ SELECT ( + 83 ) * ( COUNT ( * ) ) # Datafusion - Expected - 49 # Datafusion - Expected - -18 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col0" at position 1 and "Int64\(\-72\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + NULLIF ( CAST ( 50 AS INTEGER ), - 59 * + 78 * + 69 + + 54 ) + - COUNT ( * ), - 18 AS col0, - 72 AS col0 +---- +-18 +-72 +49 query I rowsort SELECT ALL - - 42 + + 33 @@ -32122,8 +32505,11 @@ SELECT 0 * + MAX ( DISTINCT - 88 ) - - + 89 + + - NULLIF ( 75, - 62 * + - 66 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 7457 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(59\), Int64\(3\) \* Int64\(34\)\) AS col0" at position 0 and "Int64\(91\) \* \(\- coalesce\(Int64\(\-83\), Int64\(27\) \* Int64\(\-8\)\)\) \- min\(DISTINCT Int64\(96\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( 59, 3 * + 34 ) AS col0, 91 * - COALESCE ( - 83, + 27 * - 8 ) - + + MIN ( DISTINCT + 96 ) AS col0 +---- +59 +7457 query I rowsort SELECT + CASE + 16 WHEN 80 * + ( - 41 ) + - + 51 THEN + - 10 + - 82 * 74 * - 24 END @@ -32437,8 +32823,11 @@ 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\(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\. +query RI valuesort 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 +---- +NULL +NULL query I rowsort label-6154 SELECT CAST ( - 19 AS INTEGER ) + ( - + 5 ) + ( - 90 ) - - - COUNT ( * ) * + - ( - 48 ) * + 29 @@ -32448,8 +32837,11 @@ SELECT CAST ( - 19 AS INTEGER ) + ( - + 5 ) + ( - 90 ) - - - COUNT ( * ) * + - ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 34 AS col0, + COUNT ( * ) AS col0 +---- +-34 +1 query I rowsort SELECT 73 * 87 * - 59 + - - 79 * 11 * + 32 AS col2 @@ -32470,8 +32862,11 @@ SELECT 37 / - 74 + + 93 * - CASE - 47 WHEN + COUNT ( * ) THEN NULL ELSE + MIN ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - -3654 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col1" at position 0 and "Int64\(\-63\) \* Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 63 AS col1, - 63 * ( + 58 ) AS col1 +---- +-3654 +-63 query II rowsort label-6160 SELECT DISTINCT - 75 AS col0, 50 * + - 4 * COUNT ( * ) + ( + 1 ) * - 81 AS col2 @@ -32528,8 +32923,11 @@ SELECT ALL + 11 * 19 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - -1462 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "Int64\(\-58\) \+ Int64\(\-61\) \- Int64\(9\) \+ Int64\(\-28\) \* Int64\(48\) \+ Int64\(\-76\) / Int64\(63\) \* Int64\(\-10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 AS col1, - 58 + - 61 - + 9 + - 28 * 48 + - 76 / 63 * + - 10 col1 +---- +-1462 +93 query I rowsort SELECT ALL + 61 * 50 * + COALESCE ( 41, + + 28, + + 80 + + 39 ) @@ -32585,8 +32983,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * 30 + - - 10 - + 63 AS col1, + 21 AS col1 +---- +-83 +21 query II rowsort SELECT DISTINCT + 31 + + 42 + + 13 AS col0, 17 @@ -32766,8 +33167,11 @@ SELECT ALL + 19 - + 7 + + 2 * 35 * - 55 * + SUM ( - 76 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col0" at position 0 and "Int64\(82\) \+ \(\- nullif\(Int64\(64\), CASE Int64\(98\) WHEN Int64\(94\) \+ \(\- nullif\(\(\- CAST\(\(\- Int64\(\-49\)\) AS Int32\)\), Int64\(\-25\) \+ \(\- Int64\(69\)\)\)\) \+ Int64\(70\) \* Int64\(\-14\) \* Int64\(15\) THEN coalesce\(Int64\(\-60\), \(\- Int64\(62\)\) \* Int64\(\-4\) \* count\(Int64\(\-42\)\) \+ \(\- max\(DISTINCT Int64\(\-28\)\)\) \- Int64\(89\) \* \(\- Int64\(77\)\) \* \(\- \(\- Int64\(84\)\)\)\) WHEN Int64\(75\) THEN NULL ELSE Int64\(96\) \* Int64\(43\) \* count\(Int64\(1\)\) AS count\(\*\) END\)\) / Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-88 +86 query I rowsort label-6216 SELECT ALL ( COUNT ( * ) ) * - - 19 @@ -32787,8 +33191,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -16932 # Datafusion - Expected - -7178 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* Int64\(\-12\) \* \(\- Int64\(\-17\)\) AS col0" at position 0 and "Int64\(\-74\) \* Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 83 * - 12 * + - ( + - 17 ) AS col0, - 74 * + 97 col0 +---- +-16932 +-7178 query II rowsort SELECT - 53 AS col1, 52 col0 @@ -33462,8 +33869,11 @@ SELECT - 9 * - + 37 * 17 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4588 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \* Int64\(62\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 74 * + 62 col1, + 0 AS col1 +---- +0 +4588 query I rowsort SELECT DISTINCT - 54 * - 38 * + 86 AS col0 @@ -33473,8 +33883,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 8 * - - COUNT ( * ) AS col1, 97 AS col1 +---- +8 +97 query I rowsort label-6348 SELECT DISTINCT - - COUNT ( 24 ) * - + 86 AS col0 @@ -33756,8 +34169,11 @@ SELECT COUNT ( * ) * - + COUNT ( * ), 85 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1020 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* Int64\(15\) AS col0" at position 0 and "Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 * + + 15 AS col0, 20 AS col0 +---- +1020 +20 query II rowsort SELECT 42 * + + 52, + 13 AS col2 @@ -33914,8 +34330,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "sum\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 87 AS col0, + ( SUM ( ALL CAST ( NULL AS INTEGER ) ) ) AS col0 +---- +87 +NULL query I rowsort label-6432 SELECT + COUNT ( * ) * - 40 AS col2 @@ -34112,8 +34531,12 @@ 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\(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\. +query III valuesort 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 +---- +-93 +0 +92 query I rowsort SELECT ALL - 4 * + 19 * + 39 + + 65 + - 20 AS col2 @@ -34176,8 +34599,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col2" at position 0 and "Int64\(15\) \+ Int64\(\-75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 24 AS col2, 15 + + - 75 AS col2 +---- +-24 +-60 query I rowsort SELECT + - 31 + + 17 AS col2 @@ -34629,8 +35055,11 @@ SELECT ALL - 17 / + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8084 # Datafusion - Expected - -848 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \* Int64\(\-94\) AS col0" at position 0 and "Int64\(12\) \* \(\- Int64\(72\)\) \+ Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 86 * - 94 AS col0, + 12 * - + 72 + + 16 AS col0 +---- +-848 +8084 query I rowsort label-6568 SELECT + MIN ( - 71 ) * + ( SUM ( ALL + 71 ) ) + - COUNT ( * ) + + 30 - + COUNT ( * ) + - CASE 82 WHEN - 64 + - + 25 THEN - + 23 END AS col0 @@ -34999,8 +35428,11 @@ SELECT ALL 99 + + 81 * - 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col2" at position 0 and "Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 AS col2, + 25 AS col2 +---- +-82 +25 query I rowsort label-6638 SELECT ALL 75 + + + 43 / - - 86 AS col0 @@ -35063,8 +35495,11 @@ SELECT - 64 - 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(NULL AS Int32\) / Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) / + 99 AS col0 +---- +1 +NULL query II rowsort SELECT ALL - 43, + 52 AS col2 @@ -35406,20 +35841,29 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1880 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(20\) \* Int64\(\-94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 20 * - 94 AS col2 +---- +-1880 +1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-32\)\) AS col0" at position 0 and "Int64\(\-21\) \+ Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 32 AS col0, - 21 + 76 AS col0 +---- +32 +55 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int32\) \* Int64\(36\) AS col0" at position 0 and "coalesce\(Int64\(\-17\), Int64\(\-53\), \(\- Int64\(51\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * 36 AS col0, + COALESCE ( + - 17, - 53, - + 51 ) AS col0 +---- +-17 +NULL query I rowsort label-6717 SELECT ALL 65 * 74 - - - 75 + + - 73 * COUNT ( * ) + - 53 AS col1 @@ -36468,8 +36912,11 @@ SELECT 43 - 71 col2, CAST ( + - 39 AS INTEGER ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-7\), Int64\(4\) \* Int64\(\-11\) \* \(\- Int64\(\-84\)\)\) AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COALESCE ( + - 7, + 4 * - 11 * - - 84 ) AS col2, 40 AS col2 +---- +-7 +40 query I rowsort SELECT 5 * 25 * + + ( - 27 ) * - 16 * + + 71 @@ -37583,8 +38030,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3192 # Datafusion - Expected - 121380 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-57\)\) AS Int32\) \* sum\(DISTINCT Int64\(56\)\) AS col0" at position 0 and "Int64\(28\) \* Int64\(85\) \* Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - - 57 AS INTEGER ) * + SUM ( DISTINCT + 56 ) AS col0, 28 * + 85 * + 51 col0 +---- +121380 +3192 query II rowsort SELECT - 33 AS col2, + 13 @@ -38309,8 +38759,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 AS col0, COUNT ( * ) + 97 AS col0 +---- +35 +98 query I rowsort label-7273 SELECT ALL 15 / + + CAST ( 41 AS INTEGER ) AS col0 @@ -38419,8 +38872,11 @@ 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\(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\. +query II valuesort SELECT + 11 * COUNT ( * ) + 81 + - + COALESCE ( - + 20, + 63 ) AS col1, 80 AS col1 +---- +112 +80 query I rowsort SELECT + 72 + 86 @@ -38517,8 +38973,11 @@ SELECT DISTINCT ( - 39 ) + + 74 - - NULLIF ( + COUNT ( * ), - 40 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -2016 -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\) \* Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + 68 ) AS col1, - 96 * 21 AS col1 +---- +-2016 +68 query I rowsort label-7312 SELECT ALL - SUM ( DISTINCT + 71 ) * + 23 * ( - 91 ) AS col0 @@ -38595,8 +39054,11 @@ SELECT DISTINCT + - MIN ( - + 65 ), + 19 * + SUM ( + + 20 ) - COALESCE ( - 57, - # Datafusion - Datafusion expected results: # Datafusion - Expected - 3348 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* Int64\(54\) AS col1" at position 0 and "Int64\(\-48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 62 * + + 54 AS col1, - 48 col1 +---- +-48 +3348 query I rowsort label-7327 SELECT + + COUNT ( * ) * + 58 AS col2 @@ -38685,8 +39147,11 @@ SELECT 18 * + - 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col0" at position 0 and "Int64\(31\) \* Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 79 AS col0, + 31 * - 0 AS col0 +---- +-79 +0 query II rowsort label-7344 SELECT 92 + + - ( + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1, 56 @@ -38723,8 +39188,11 @@ SELECT 24 - - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 98 col1, COUNT ( * ) AS col1 +---- +1 +98 query I rowsort label-7351 SELECT - 31 + + - MIN ( 2 ) AS col1 @@ -39342,8 +39810,11 @@ SELECT - NULLIF ( + 13, + + 4 ) AS col2, 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1249 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(40\) WHEN Int64\(87\) \+ Int64\(43\) THEN NULL ELSE Int64\(7\) \* Int64\(\-2\) \* Int64\(86\) \+ Int64\(\-70\) END\) \+ Int64\(\-25\) AS col2" at position 0 and "\(\- CASE Int64\(14\) WHEN Int64\(\-28\) THEN NULL WHEN Int64\(42\) THEN CASE Int64\(15\) WHEN max\(Int64\(44\)\) THEN count\(Int64\(35\)\) END END\) \- Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CASE 40 WHEN 87 + + 43 THEN NULL ELSE + ( 7 ) * ( - 2 ) * 86 + - 70 END + + ( - 25 ) col2, - CASE + 14 WHEN - 28 THEN NULL WHEN + 42 THEN CASE ( 15 ) WHEN MAX ( 44 ) THEN COUNT ( + 35 ) END END - 74 col2 +---- +1249 +NULL query I rowsort SELECT + 34 * - + 95 + - 14 AS col1 @@ -39483,8 +39954,11 @@ SELECT + 38 AS col1, MIN ( DISTINCT + - 37 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2586 # Datafusion - Expected - -3066 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \+ \(\- Int64\(\-58\)\) \* \(\- \(\- max\(DISTINCT Int64\(\-46\)\)\)\) AS col2" at position 0 and "Int64\(73\) \* Int64\(\-42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 + - - 58 * - - MAX ( DISTINCT - 46 ) AS col2, + 73 * - 42 AS col2 +---- +-2586 +-3066 query I rowsort SELECT ALL - NULLIF ( 56, 78 * 16 ) AS col1 @@ -39561,8 +40035,11 @@ SELECT ALL - - 19 - - 17 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -44 -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\(\-44\), Int64\(32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 86 AS col0, COALESCE ( - 44, + 32 ) AS col0 +---- +-44 +86 query III rowsort label-7511 SELECT ALL + - 6 / MAX ( + 55 ) * COUNT ( * ) AS col1, 94 / 92, + - ( - - 49 ) + + 26 AS col0 @@ -40346,8 +40823,11 @@ SELECT DISTINCT COALESCE ( - - COUNT ( * ), - 4 * - - 66 + - MAX ( ALL - + 31 ) # 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 "count\(\(\- Int64\(\-29\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 49 AS col0, + COUNT ( ALL - - 29 ) col0 +---- +1 +49 query I rowsort SELECT ALL ( - - 20 ) @@ -40413,8 +40893,11 @@ SELECT + 71 * 52 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(99\)\) \+ Int64\(\-98\) / CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( 99 ) + - 98 / + ( CAST ( NULL AS INTEGER ) ) col0, + 47 col0 +---- +47 +NULL query I rowsort SELECT - ( + + NULLIF ( 1, + ( - 68 ) ) ) - + 37 * + 80 + - 9 @@ -40851,8 +41334,12 @@ SELECT ALL + 61 * + 95 AS col0 # Datafusion - Expected - 11 # Datafusion - Expected - 11 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\)" at position 0 and "Int64\(11\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 11, + 11, + 46 + 67 + - + ( 59 ) + 57 * - - CAST ( NULL AS INTEGER ) * - 8 - - + 68 col0 +---- +11 +11 +NULL query I rowsort label-7756 SELECT - 24 * 40 / 52 @@ -40920,8 +41407,11 @@ SELECT ( + 40 ) AS col1, + 85 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 "coalesce\(Int64\(50\), Int64\(20\), Int64\(50\) / Int64\(\-68\)\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COALESCE ( 50, + 20, 50 / - 68 ) col1, 81 AS col1 +---- +50 +81 query I rowsort label-7769 SELECT ALL CAST ( - + 44 AS INTEGER ) * - + 56 + 65 AS col0 @@ -41077,8 +41567,11 @@ SELECT ALL 56 + + + 23 * - 43 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col0" at position 0 and "Int64\(\-89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 16 AS col0, - 89 col0 +---- +-16 +-89 query I rowsort SELECT 90 + + + 10 AS col1 @@ -41109,8 +41602,11 @@ SELECT ALL 2 - - 16 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "Int64\(\-44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 22 AS col1, - 44 AS col1 +---- +-44 +22 query II rowsort label-7805 SELECT ( - COUNT ( + 87 ) ) + 27 + 65 + 72, + 3 AS col2 @@ -41141,8 +41637,11 @@ SELECT 35 + + 27 + - 11 * - - 45 + - COUNT ( + 76 ) * + - 32 + - 93 + 90 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col1" at position 0 and "Int64\(\-59\) \+ Int64\(56\) \+ \(\- sum\(Int64\(38\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 77 AS col1, - 59 + + 56 + - + SUM ( + 38 ) col1 +---- +-41 +-77 query I rowsort SELECT DISTINCT 1 * - 97 @@ -41588,8 +42087,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - NULLIF ( - + 68, - + 94 ) * MAX ( ALL + ( + ( + 24 ) ) ) * - - 90 * 42 + - 61 AS col1, + COUNT ( ALL 53 ) / 96 / + + 76 * - COUNT ( * ) * - 76 AS col1 +---- +0 +6168899 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -41627,8 +42129,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + 71 ) col1, COUNT ( * ) + + - 82 AS col1 +---- +-81 +71 query I rowsort label-7904 SELECT ALL MAX ( - + 24 ) @@ -42057,8 +42562,11 @@ SELECT + COUNT ( * ) / 53 - - - 59 - - MIN ( DISTINCT + + 72 ) + - 96 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2756 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(Int64\(\-52\), \(\- \(\- CAST\(nullif\(Int64\(55\), \(\- Int64\(\-70\)\) \+ sum\(DISTINCT Int64\(77\)\) \* Int64\(\-14\)\) AS Int32\)\)\) / Int64\(67\) \+ Int64\(\-49\) \- Int64\(\-89\)\)\)\) \* Int64\(53\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - NULLIF ( + - 52, - - CAST ( NULLIF ( 55, - - 70 + SUM ( DISTINCT + 77 ) * - 14 ) AS INTEGER ) / + 67 + - 49 - - 89 ) * + + 53 AS col0, COUNT ( * ) AS col0 +---- +-2756 +1 query I rowsort SELECT DISTINCT - - 59 * + 65 + - 49 - - + COALESCE ( + - 51, 15, 99 ) @@ -42877,8 +43385,11 @@ SELECT - CASE 9 WHEN - 30 THEN + 34 ELSE 28 + + - 60 - - 3 END * - 67 + COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -2154600 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(\-35\) \* Int64\(15\) \* \(\- coalesce\(\(\- CASE \(\- Int64\(\-54\)\) WHEN Int64\(\-80\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(DISTINCT Int64\(15\)\)\) \+ Int64\(\-97\) \* Int64\(81\) \- Int64\(78\) THEN Int64\(70\) ELSE Int64\(57\) END\), Int64\(32\) \* Int64\(91\) / Int64\(\-99\), \(\- coalesce\(\(\- \(\- CAST\(NULL AS Int32\)\)\), Int64\(4\)\)\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-2154600 +NULL query I rowsort SELECT ALL 31 * + + 8 * + 97 + 54 @@ -43095,8 +43606,11 @@ SELECT - COUNT ( 94 ) AS col2 # 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 "max\(Int64\(3\)\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MAX ( 3 ) AS col0, + 95 AS col0 +---- +3 +95 query II rowsort SELECT DISTINCT + 93 - 1 + - ( NULLIF ( - 3, - 49 + - + 97 + + - 93 ) ) * 25 * - 53 + + 95 + - CASE + 44 WHEN 92 THEN - 23 END * + 23 * - - 20 + + 71 + + - 62 AS col2, 44 AS col1 @@ -43418,14 +43932,20 @@ SELECT + COALESCE ( - 21, - AVG ( ALL 93 ) * - 26 + 4 * - 70, 8 * 99 + COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(0\)\) \* Int64\(34\) \- Int64\(86\) / \(\- coalesce\(Int64\(63\), \(\- Int64\(\-9\)\), Int64\(\-69\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 0 * + 34 - 86 / - COALESCE ( 63, - - 9, + - 69 ) col1, COUNT ( * ) AS col1 +---- +1 +1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col1" at position 0 and "CASE coalesce\(\(\- \(\- Int64\(\-2\)\)\), count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(4\) \* \(\- CASE Int64\(7\) WHEN Int64\(75\) THEN Int64\(17\) END\) THEN Int64\(\-75\) / CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Float64\) \+ Int64\(40\) \+ Int64\(\-28\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +-22 +NULL query I rowsort SELECT ALL - 96 * - + 52 + 87 * - COALESCE ( + 88, - 3 ) @@ -43471,8 +43991,11 @@ 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\(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\. +query IR valuesort 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 +---- +-1 +7 query I rowsort label-8252 SELECT DISTINCT 38 / - - COUNT ( * ) @@ -43559,8 +44082,11 @@ 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\(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\. +query II valuesort 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 +---- +2 +NULL query I rowsort SELECT - 7 + 83 @@ -43721,8 +44247,11 @@ SELECT ( + 52 ) * - 19 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* CASE Int64\(4\) WHEN Int64\(\-97\) THEN Int64\(52\) / Int64\(94\) 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 II valuesort SELECT 13 * + CASE 4 WHEN + - 97 THEN 52 / + + 94 END AS col1, - 73 AS col1 +---- +-73 +NULL query II rowsort SELECT 94 col2, - 32 AS col1 @@ -43739,8 +44268,11 @@ SELECT 2, - 89 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 28 AS col2, 40 AS col2 +---- +28 +40 query II rowsort label-8302 SELECT DISTINCT 30, 53 + COUNT ( * ) AS col1 @@ -43842,8 +44374,11 @@ SELECT - 83 * - ( 78 ) AS col1, - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - 76354 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col2" at position 0 and "Int64\(0\) \+ Int64\(88\) \+ Int64\(\-69\) \* Int64\(\-24\) \* Int64\(46\) \+ Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 76 AS col2, 0 + 88 + - 69 * - 24 * + + 46 + + 90 AS col2 +---- +-76 +76354 query I rowsort SELECT 19 + - 31 AS col0 @@ -44048,8 +44583,12 @@ NULL # Datafusion - Expected - 78 # Datafusion - Expected - 87 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(Int64\(78\), \(\- Int64\(20\)\)\)\)\) AS col2" at position 0 and "Int64\(8\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - NULLIF ( + + 78, - + 20 ) AS col2, 87 - - ( - 0 ) AS col0, 8 AS col2 +---- +78 +8 +87 query I rowsort label-8361 SELECT + + ( - 44 ) / + 58 - 94 AS col1 @@ -44396,8 +44935,11 @@ SELECT + 71 + + COUNT ( * ) * COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 957 # Datafusion - Expected - -4290 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* Int64\(87\) AS col0" at position 0 and "\(\- Int64\(\-66\)\) \* Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 11 * + + 87 AS col0, ( - - 66 ) * - 65 AS col0 +---- +-4290 +957 query I rowsort label-8427 SELECT ALL - COALESCE ( + + 77, - 8 * - 87 * - + 75 * MIN ( DISTINCT + 98 ) ) / - ( - + 29 ) AS col0 @@ -44550,8 +45092,12 @@ SELECT + 51 + + - 31 # Datafusion - Expected - 85 # Datafusion - Expected - NULL # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(63\) WHEN Int64\(94\) \* Int64\(50\) THEN Int64\(69\) ELSE NULL END AS col1" at position 1 and "Int64\(\-43\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - 85 AS col0, CASE + 63 WHEN + 94 * + + 50 THEN + 69 ELSE NULL END AS col1, - 43 col1 +---- +-43 +85 +NULL query I rowsort SELECT - 65 + - 84 @@ -44609,8 +45155,11 @@ 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\(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\. +query II valuesort SELECT - CASE - - 59 WHEN COUNT ( * ) THEN NULL ELSE - 12 + - - 50 END + - 0 AS col0, + 9 AS col0 +---- +-38 +9 query I rowsort SELECT + COALESCE ( ( 52 ), 74 ) @@ -44802,8 +45351,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ min\(DISTINCT \(\- Int64\(\-33\)\)\) AS col2" at position 0 and "Int64\(\-33\) \+ CASE \(\- CAST\(NULL AS Int32\)\) WHEN Int64\(87\) \+ Int64\(81\) THEN \(\- Int64\(67\)\) / Int64\(\-64\) WHEN Int64\(34\) / Int64\(34\) / Int64\(75\) THEN Int64\(78\) \* Int64\(53\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(46\) \+ \(\- Int64\(87\)\) \* Int64\(\-98\) END \+ nullif\(Int64\(52\), CASE Int64\(1\) WHEN Int64\(68\) \- \(\- avg\(Int64\(59\)\)\) THEN NULL WHEN Int64\(\-43\) THEN Int64\(58\) ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +56 +NULL query I rowsort label-8504 SELECT CAST ( - 24 AS INTEGER ) + + + 33 + ( 18 ) AS col1 @@ -45265,8 +45817,11 @@ SELECT + - COUNT ( * ) + - 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) col1, + 23 col1 +---- +1 +23 query I rowsort label-8595 SELECT + CAST ( 84 AS INTEGER ) * + 11 @@ -45871,8 +46426,11 @@ SELECT ALL 18, + COUNT ( * ) * 73 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 19 AS col0, 60 AS col0 +---- +-19 +60 query II rowsort SELECT 75, + 43 col2 @@ -45899,8 +46457,12 @@ SELECT ALL + ( - 80 ) - + + 31 AS col0 # Datafusion - Expected - 8 # Datafusion - Expected - 66 # 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 "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 8 AS col1, 66 AS col1, + COUNT ( * ) +---- +1 +66 +8 query I rowsort label-8718 SELECT ALL - COUNT ( * ) * - NULLIF ( - 26, + + COALESCE ( - + 49, + CASE - 33 WHEN + 16 + + 95 * 52 THEN - 0 * - 79 WHEN - 70 + + 21 THEN 68 / - 90 ELSE 93 + 76 END ) * 53 ) AS col0 @@ -46519,8 +47081,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 34 * - 65 + MAX ( + 80 ) * - 12 AS col2, + 71 / - - COUNT ( * ) AS col2 +---- +-3170 +71 query I rowsort label-8836 SELECT ALL + COALESCE ( + COUNT ( * ), - ( + 42 ) ) @@ -46624,8 +47189,11 @@ SELECT DISTINCT - 92 * - 76 + CAST ( + COUNT ( * ) AS INTEGER ) + - + 63 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -5700419 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-91\)\) AS col0" at position 0 and "\(\- Int64\(34\)\) \+ Int64\(79\) \* \(\- Int64\(32\)\) \* \(\- Int64\(\-78\)\) \* Int64\(27\) \+ Int64\(45\) \* \(\- \(\- sum\(Int64\(94\)\)\)\) \* \(\- max\(Int64\(70\) \+ Int64\(19\)\)\) \+ Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - - 91 ) col0, - ( + 34 ) + 79 * - ( 32 ) * - - 78 * 27 + + 45 * - - SUM ( ALL 94 ) * - MAX ( ALL + 70 + 19 ) + 53 AS col0 +---- +-5700419 +91 query I rowsort SELECT - 85 + - - 52 AS col2 @@ -46731,8 +47299,12 @@ NULL # Datafusion - Expected - -94 # Datafusion - Expected - -41 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \+ count\(\(\- Int64\(39\)\)\) AS col2" at position 1 and "CASE Int64\(24\) WHEN Int64\(5\) THEN Int64\(0\) \* Int64\(54\) END \* Int64\(7\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - + 94, - 42 + + + COUNT ( ALL - + 39 ) AS col2, + CASE + + 24 WHEN + 5 THEN - 0 * 54 END * 7 AS col2 +---- +-41 +-94 +NULL query I rowsort SELECT - 89 * 2 + + ( + + 60 ) * - 99 AS col1 @@ -47997,8 +48569,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \- Int64\(\-25\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 41 - - 25 + COUNT ( * ) AS col0, + COUNT ( * ) AS col0 +---- +-15 +1 query I rowsort label-9119 SELECT - + CASE 17 WHEN - 31 * - 18 + - - 91 + COUNT ( * ) THEN NULL WHEN + ( - 20 ) * + + AVG ( - 21 ) * - + COUNT ( * ) / - + 81 + + CAST ( + 88 AS INTEGER ) THEN 97 + + MIN ( DISTINCT + 12 ) + + - 42 - 46 * 93 END @@ -48546,14 +49121,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 6175 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-85\)\) \+ Int64\(87\) \* min\(Int64\(70\)\) AS col1" at position 0 and "Int64\(\-8\) / sum\(\(\- Int64\(\-20\)\)\) \* Int64\(\-22\) \+ Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 85 + 87 * + MIN ( 70 ) AS col1, - 8 / + SUM ( - - 20 ) * - 22 + 77 AS col1 +---- +6175 +77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-13\)\)\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - - 13 ) AS col2, + 36 AS col2 +---- +-13 +36 query I rowsort SELECT + 14 * + - 87 * 55 AS col1 @@ -49137,8 +49718,11 @@ 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\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-30\)\) / Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-3157 +8 query I rowsort SELECT DISTINCT ( + - 89 ) AS col0 @@ -49169,8 +49753,11 @@ SELECT DISTINCT 27 / COUNT ( * ) + 69 * + 53 * + 24 * + 82 AS col0, + 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CASE Int64\(\-95\) WHEN Int64\(71\) \- Int64\(\-93\) THEN Int64\(\-41\) \* \(\- Int64\(\-39\)\) \+ Int64\(\-55\) END\), Int64\(6\) / \(\- Int64\(41\)\) \+ Int64\(\-12\) \+ CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(30\) \+ Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( - CASE - 95 WHEN 71 - - 93 THEN - 41 * - ( - 39 ) + - 55 END, 6 / - + 41 + - 12 + CAST ( NULL AS INTEGER ) ) AS col2, 30 + 20 AS col2 +---- +50 +NULL query I rowsort SELECT ALL + + 60 * - 28 @@ -49535,8 +50122,11 @@ 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\(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\. +query II valuesort SELECT + 21 + - 72 AS col2, COUNT ( * ) + + MIN ( ALL 62 ) + - 26 + + COUNT ( * ) / - 54 + - - 16 + + + 71 AS col2 +---- +-51 +124 query I rowsort SELECT DISTINCT + - 92 * + 42 AS col0 @@ -49603,8 +50193,11 @@ SELECT ALL 18 / 23 * - 54 * - - 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \+ \(\- Int64\(27\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "CASE Int64\(7\) WHEN \(\- \(\- min\(coalesce\(Int64\(\-16\), Int64\(\-67\) \+ \(\- CAST\(NULL AS Float64\)\) \+ Int64\(36\) \* \(\- Int64\(47\)\), Int64\(25\) \+ Int64\(20\)\)\)\)\) \* Int64\(2\) \+ \(\- \(\- coalesce\(Int64\(\-45\), sum\(Int64\(\-58\)\)\)\)\) \- avg\(Int64\(38\)\) \* CAST\(NULL AS Int32\) THEN NULL WHEN Int64\(58\) \+ Int64\(14\) \+ Int64\(\-43\) \* Int64\(\-33\) THEN Int64\(99\) ELSE NULL END \* Int64\(96\) \- Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 34 + - + 27 * - CAST ( NULL AS INTEGER ) AS col2, CASE 7 WHEN - - MIN ( COALESCE ( + - 16, - 67 + - CAST ( NULL AS FLOAT8 ) + 36 * - + 47, + 25 + ( 20 ) ) ) * 2 + - - COALESCE ( - 45, + SUM ( ALL - 58 ) ) - AVG ( 38 ) * + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 58 + + 14 + + - 43 * - 33 THEN 99 ELSE NULL END * + 96 - - 4 AS col2 +---- +NULL +NULL query I rowsort SELECT - 36 * - 13 @@ -49738,8 +50331,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "Int64\(\-93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 58 AS col0, - 93 AS col0 +---- +-93 +58 query I rowsort SELECT ALL - 70 * - - 5 @@ -49754,8 +50350,11 @@ SELECT DISTINCT + COUNT ( * ) * + CASE + - 86 WHEN + COUNT ( * ) THEN NULL ELSE # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + COUNT ( * ) AS col1, 43 AS col1 +---- +1 +43 query I rowsort label-9452 SELECT + + COUNT ( * ) * - 18 + + + 54 @@ -49934,8 +50533,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - - COUNT ( * ) * - + 76 col1, ( + NULLIF ( 64, - - 33 / 75 + + 17 ) ) + - 61 AS col1 +---- +-76 +3 query I rowsort SELECT DISTINCT - COALESCE ( + + 73, - 50 + - 24, + 18 ) AS col1 @@ -50083,8 +50685,11 @@ SELECT - ( 27 ) * - 43 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - -3840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col2" at position 0 and "Int64\(48\) \* Int64\(\-80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 31 AS col2, + 48 * + - 80 AS col2 +---- +-31 +-3840 query I rowsort SELECT ALL + - 32 * + 52 AS col2 @@ -50099,14 +50704,20 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * COUNT ( * ) + + + 85 + + 95 * + 33 AS col0, + 14 * - 74 AS col0 +---- +-1036 +3221 # 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\(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\. +query II valuesort SELECT DISTINCT + - 56 + 0 * + + 42 AS col2, COUNT ( * ) * - 22 * + 47 * 2 * + 16 AS col2 +---- +-33088 +-56 query I rowsort label-9519 SELECT ALL + CAST ( - 90 AS INTEGER ) * + COUNT ( * ) AS col1 @@ -50507,8 +51118,11 @@ SELECT DISTINCT + 50 AS col2, - 97 + + COUNT ( * ) * + 38 * 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "Int64\(68\) / Int64\(\-31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 56 AS col0, + 68 / - 31 AS col0 +---- +-2 +56 query I rowsort SELECT - 88 * - 34 AS col0 @@ -51067,8 +51681,11 @@ SELECT ALL ( - + 29 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \+ Int64\(\-43\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 26 + - 43 col0, + 80 AS col0 +---- +-69 +80 query I rowsort label-9700 SELECT ALL + ( + 15 ) * - + COUNT ( * ) AS col1 @@ -51327,8 +51944,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 * - COUNT ( * ) col0, - 46 AS col0 +---- +-44 +-46 query I rowsort label-9749 SELECT - 11 * + 55 * + - NULLIF ( - CAST ( NULL AS INTEGER ), ( 31 ) * 83 ) AS col1 @@ -51780,8 +52400,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * + 32 - + + 25 AS col0, 74 + + + 87 AS col0 +---- +161 +7 query I rowsort SELECT DISTINCT + 46 * + 57 col1 @@ -51868,8 +52491,11 @@ SELECT + - 28 + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \+ max\(Int64\(53\)\) / count\(Int64\(\-61\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( 35 ) + + MAX ( + 53 ) / + COUNT ( - 61 ) col0, ( + CAST ( NULL AS INTEGER ) ) AS col0 +---- +88 +NULL query I rowsort SELECT - - COALESCE ( 97, 43 * + - 24 ) @@ -51997,8 +52623,11 @@ SELECT ALL + 79 + + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col1" at position 0 and "Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 22 AS col1, - 94 AS col1 +---- +-22 +-94 query I rowsort label-9875 SELECT - 37 + - + COUNT ( * ) AS col2 @@ -52013,8 +52642,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 6 AS col1, 60 + + + COUNT ( * ) - + 44 AS col1 +---- +-6 +17 query II rowsort SELECT - - 67 AS col0, 5 @@ -52156,8 +52788,12 @@ SELECT ALL 40 + 74 col1 # Datafusion - Expected - -80 # Datafusion - Expected - 93 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-80\)\) AS col2" at position 0 and "Int64\(\-39\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + SUM ( ALL - 80 ) col2, 93 AS col1, - 39 AS col2 +---- +-39 +-80 +93 query I rowsort SELECT ALL - - 25 + 7 AS col0 @@ -52264,8 +52900,11 @@ SELECT ALL 60 * + + 18 + COUNT ( + 91 ) / - 29 * + + 87 AS col0 # 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 "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 22 AS col2, + 81 AS col2 +---- +22 +81 query I rowsort label-9925 SELECT - 58 * + COUNT ( * ) * 87 diff --git a/data/sqlite/random/expr/slt_good_60.slt b/data/sqlite/random/expr/slt_good_60.slt index 3ec0678..399e55e 100644 --- a/data/sqlite/random/expr/slt_good_60.slt +++ b/data/sqlite/random/expr/slt_good_60.slt @@ -537,8 +537,11 @@ SELECT SUM ( + 54 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \- \(\- CAST\(NULL AS Int32\)\) / \(\- Int64\(\-61\)\) \+ Int64\(20\) \+ Int64\(12\) AS col0" at position 0 and "Int64\(\-60\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 - + - CAST ( NULL AS INTEGER ) / - - 61 + + 20 + + 12 AS col0, - 60 * COUNT ( * ) AS col0 +---- +-60 +NULL query I rowsort SELECT DISTINCT - 52 * 81 - - 16 @@ -767,8 +770,11 @@ NULL # 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 "Int64\(1\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 1 col2, + 59 AS col2 +---- +1 +59 query I rowsort SELECT DISTINCT + + 85 AS col0 @@ -788,8 +794,11 @@ SELECT + 38 * + 34 + + 50 * + - 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 26 AS col0, 87 AS col0 +---- +26 +87 query I rowsort SELECT - 65 + + 2 @@ -820,8 +829,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - 23, 15 + + + ( 27 ) AS col0, - COUNT ( * ) AS col0 +---- +-1 +23 +42 query I rowsort SELECT DISTINCT - 75 * + 98 + + 64 + - - 78 @@ -882,8 +895,11 @@ SELECT ALL ( - ( + + 25 ) ) # 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 "Int64\(51\) \- Int64\(50\) AS col1" at position 0 and "Int64\(47\) \- Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 51 - 50 AS col1, + 47 - + 49 AS col1 +---- +-2 +1 query I rowsort SELECT 72 * ( - 94 ) AS col1 @@ -939,8 +955,11 @@ SELECT ALL 37 + - 32 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 3024 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(91\)\) AS col2" at position 0 and "Int64\(63\) \* Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( + 91 ) col2, + 63 * ( 48 ) AS col2 +---- +3024 +91 query II rowsort SELECT ALL + 21 + + 49 AS col1, ( 25 ) @@ -1381,8 +1400,11 @@ SELECT DISTINCT + CAST ( + 59 AS INTEGER ) * + 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \* Int64\(84\) \* \(\- CAST\(NULL AS Int32\)\) \+ count\(\(\- Int64\(72\)\)\) \+ \(\- Int64\(\-79\)\) \* Int64\(\-87\) \+ Int64\(\-14\) \+ Int64\(\-6\) \+ Int64\(9\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 68 * 84 * - + CAST ( NULL AS INTEGER ) + + COUNT ( - ( 72 ) ) + - - 79 * + - 87 + + - 14 + - 6 + 9 + COUNT ( * ) col0, - 0 AS col0 +---- +0 +NULL query I rowsort SELECT - ( + + 18 ) AS col2 @@ -1441,8 +1463,11 @@ 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 count\(\*\) \* Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COALESCE ( + 93, + 1 ) AS col1, COUNT ( * ) * - 1 AS col1 +---- +-1 +93 query I rowsort SELECT + 26 + 13 - 88 AS col1 @@ -1457,8 +1482,11 @@ SELECT ALL 32 + - 17 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 104 # Datafusion - Expected - 141120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \+ Int64\(66\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(60\) \* \(\- max\(Int64\(\-56\)\)\) \* Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 38 + + 66 * COUNT ( * ) AS col1, 60 * - MAX ( - 56 ) * 42 AS col1 +---- +104 +141120 query I rowsort SELECT + ( + 26 ) + + 42 @@ -1724,8 +1752,11 @@ SELECT DISTINCT - 54 + + + 76 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(84\) / Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 93 + COUNT ( * ) AS col1, 84 / - 12 AS col1 +---- +-7 +94 query I rowsort label-320 SELECT - + 31 * + - 94 * + - COUNT ( 77 ) + 22 + + ( - 9 ) col0 @@ -1766,8 +1797,11 @@ SELECT ALL - NULLIF ( + 66, - 11 * + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(72\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( 72 ) col2, + COUNT ( * ) AS col2 +---- +-72 +1 query I rowsort label-328 SELECT 62 + COUNT ( * ) AS col2 @@ -1777,8 +1811,11 @@ SELECT 62 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "nullif\(Int64\(59\), CAST\(Int64\(13\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 10 * + + COUNT ( * ) AS col1, NULLIF ( + 59, CAST ( 13 AS INTEGER ) ) AS col1 +---- +10 +59 query I rowsort label-330 SELECT 81 + - 11 / - 69 @@ -1967,8 +2004,11 @@ SELECT ALL - COUNT ( * ) * + 80 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 139474 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 0 and "Int64\(58\) \* Int64\(57\) \* Int64\(42\) \+ Int64\(21\) / Int64\(58\) \+ \(\- max\(Int64\(\-90\)\)\) \* Int64\(8\) \+ \(\- coalesce\(\(\- Int64\(\-98\)\), Int64\(85\) \+ \(\- min\(Int64\(32\)\)\), Int64\(33\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 26 AS col2, 58 * ( + 57 ) * 42 + 21 / + 58 + - MAX ( ALL + - 90 ) * 8 + - COALESCE ( - - 98, + + 85 + + ( - MIN ( + 32 ) ), + + 33 ) AS col2 +---- +139474 +26 query I rowsort SELECT + 85 * - + 0 AS col1 @@ -2204,8 +2244,11 @@ SELECT - MIN ( DISTINCT 88 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -136 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \+ Int64\(\-81\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 55 + - 81 AS col2, 45 AS col2 +---- +-136 +45 query I rowsort SELECT - 3 + 13 AS col2 @@ -2703,8 +2746,11 @@ SELECT DISTINCT - 72 * - - ( COUNT ( * ) ), COUNT ( * ) * + 3 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 57 -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\(\-93\)\) \* Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 52 AS col1, COUNT ( ALL - 93 ) * + 57 col1 +---- +52 +57 query I rowsort SELECT + 39 * + 20 @@ -2766,8 +2812,11 @@ SELECT ALL + COUNT ( * ) / 37 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6325 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \+ \(\- Int64\(87\)\) \* Int64\(73\) AS col1" at position 0 and "Int64\(\-92\) \* Int64\(99\) / nullif\(\(\- sum\(Int64\(93\)\)\), Int64\(\-49\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 26 + - + 87 * + 73 AS col1, - 92 * 99 / + NULLIF ( ( - SUM ( + + 93 ) ), - 49 ) AS col1 +---- +-6325 +97 query I rowsort label-519 SELECT DISTINCT ( 47 ) * + + COUNT ( * ) AS col0 @@ -2777,8 +2826,11 @@ SELECT DISTINCT ( 47 ) * + + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -746 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col1" at position 0 and "Int64\(90\) \+ Int64\(44\) \* Int64\(\-19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 85 AS col1, + 90 + 44 * - 19 AS col1 +---- +-746 +85 query I rowsort label-521 SELECT ALL MAX ( + + 41 ) - - + 46 col0 @@ -3082,8 +3134,11 @@ SELECT ALL NULLIF ( + + 70, - 83 - - MIN ( + 63 ) * - COUNT ( * ) + 62 * + 17 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(63\) \- \(\- Int64\(\-76\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, + 63 - - - 76 col1 +---- +-13 +1 query I rowsort SELECT ALL + ( + 78 ) @@ -3335,8 +3390,11 @@ SELECT - + 73 * ( - + 70 ) * - 40 + + 67 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) / Int64\(\-21\) \- avg\(Int64\(47\)\) \+ CASE Int64\(57\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN \(\- Int64\(4\)\) END \+ Int64\(20\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(\-28\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort 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 +---- +NULL +NULL query I rowsort SELECT ALL - - 6 * - ( 45 ) + + 58 + + - 5 + - 33 * + - 96 AS col1 @@ -3670,8 +3728,11 @@ SELECT DISTINCT - 2 + + - 74 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 105 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ Int64\(57\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 48 + 57 AS col2, 50 AS col2 +---- +105 +50 query I rowsort label-692 SELECT SUM ( ALL + 96 ) AS col2 @@ -3892,8 +3953,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 * - - 61 * - COUNT ( * ) AS col1, ( 76 ) AS col1 +---- +-183 +76 query I rowsort label-735 SELECT 90 + + + 96 / 6 @@ -3928,8 +3992,11 @@ SELECT DISTINCT - 54 * 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "Int64\(\-99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 40 AS col1, - 99 col1 +---- +-99 +40 query I rowsort SELECT 34 * + ( + 23 ) @@ -4304,8 +4371,11 @@ SELECT ALL 39 * 51 # 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 "min\(DISTINCT Int64\(\-89\)\) \+ Int64\(79\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MIN ( DISTINCT - 89 ) + + 79 col0, - 0 AS col0 +---- +-10 +0 query I rowsort label-814 SELECT + ( 84 ) + NULLIF ( 23, COUNT ( * ) ) @@ -4550,8 +4620,11 @@ SELECT + 31 - - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2664 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* \(\- Int64\(72\)\) AS col1" at position 0 and "Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 37 * - + 72 AS col1, 1 col1 +---- +-2664 +1 query I rowsort label-860 SELECT DISTINCT 55 * CASE + ( + COUNT ( * ) ) WHEN - - 43 THEN NULL ELSE 24 END AS col1 @@ -4561,8 +4634,11 @@ SELECT DISTINCT 55 * CASE + ( + COUNT ( * ) ) WHEN - - 43 THEN NULL ELSE 24 END # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) / Int64\(\-93\) AS col2" at position 0 and "Int64\(80\) \+ Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 78 / - 93 AS col2, + 80 + 40 AS col2 +---- +0 +120 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -4950,8 +5026,11 @@ SELECT ALL COALESCE ( + 67, 73 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2064 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \* Int64\(43\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 * 43 AS col2, 47 AS col2 +---- +-2064 +47 query I rowsort SELECT + 54 * - 28 AS col0 @@ -4966,8 +5045,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 AS col1, COUNT ( * ) col1 +---- +1 +19 query II rowsort label-938 SELECT ALL - CASE + MAX ( DISTINCT - ( - + 3 ) ) WHEN COALESCE ( - - 93, + 87, - + COALESCE ( - 51, 42 + - 82 + - NULLIF ( 39, + - 11 ) ) * - 4 - + 32 ) THEN - 6 - + 31 END * 89 AS col0, 97 @@ -5034,8 +5116,11 @@ SELECT ALL + 16 * + - 96 - + 62 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - -3008 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "Int64\(\-94\) \* Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 45 AS col0, - 94 * + 32 col0 +---- +-3008 +45 query I rowsort SELECT + 59 * + ( 9 ) @@ -5267,8 +5352,11 @@ SELECT COUNT ( * ) * 5 * - 38 + 2 + - 55 / 40 AS col1, + COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 15 AS col0, - 16 AS col0 +---- +-16 +15 query I rowsort SELECT DISTINCT 70 col0 @@ -5465,8 +5553,12 @@ SELECT ALL COUNT ( ALL 58 ) # Datafusion - Expected - -364455 # Datafusion - Expected - 1 # Datafusion - Expected - -6716451 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 and "Int64\(83\) \* Int64\(35\) \* Int64\(2\) \* Int64\(\-34\) \* \(\- Int64\(\-34\)\) \+ Int64\(95\) \- Int64\(92\) \+ Int64\(\-95\) \+ count\(Int64\(17\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - MAX ( + 89 ) * - 45 * - 91 AS col1, COUNT ( * ) AS col2, 83 * 35 * 2 * - 34 * - - 34 + + 95 - 92 + - 95 + COUNT ( + ( ( 17 ) ) ) AS col2 +---- +-364455 +-6716451 +1 query I rowsort SELECT 57 * + 11 * - 54 * + + CASE + 45 WHEN 19 THEN NULL ELSE + 50 END @@ -5870,8 +5962,11 @@ SELECT DISTINCT + 88 + - 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 6414 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \- Int64\(37\) AS col1" at position 0 and "Int64\(81\) \* Int64\(79\) \+ \(\- Int64\(\-15\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 - 37 AS col1, + 81 * + 79 + - - 15 AS col1 +---- +51 +6414 query I rowsort SELECT - + CASE 82 WHEN 99 + - + 58 THEN - + 65 END @@ -6849,8 +6944,11 @@ 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\(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\. +query II valuesort 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 +---- +37 +NULL query I rowsort label-1296 SELECT 47 + 61 * COUNT ( * ) + + 31 AS col1 @@ -7056,8 +7154,11 @@ SELECT MIN ( ALL - 13 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 2125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col1" at position 0 and "Int64\(25\) \* \(\- Int64\(\-85\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 51 AS col1, + 25 * - - 85 AS col1 +---- +-51 +2125 query I rowsort SELECT - ( + - 83 ) @@ -7340,8 +7441,11 @@ SELECT 86 * + 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* \(\- CAST\(NULL AS Int32\)\) \+ CASE Int64\(85\) WHEN Int64\(47\) THEN Int64\(98\) / Int64\(85\) \* \(\- Int64\(\-18\)\) END AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 * - CAST ( NULL AS INTEGER ) + + CASE 85 WHEN 47 THEN 98 / + + 85 * - - 18 END AS col0, 4 AS col0 +---- +4 +NULL query I rowsort SELECT 85 * - 0 col1 @@ -7855,8 +7959,11 @@ SELECT 60 + + NULLIF ( - COUNT ( * ), - 18 * 3 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "Int64\(\-91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 AS col2, - 91 AS col2 +---- +-91 +30 query I rowsort SELECT 25 * + 14 * - 96 + 44 AS col1 @@ -8551,8 +8658,12 @@ SELECT - - 36 + 70 * - 53 * COUNT ( * ) + + MIN ( DISTINCT 3 ) + + COUNT ( * ) * # Datafusion - Expected - -7 # Datafusion - Expected - -77 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + - 7 AS col0, - 77, 13 AS col0 +---- +-7 +-77 +13 query I rowsort label-1622 SELECT + SUM ( DISTINCT - 51 ) AS col2 @@ -8685,8 +8796,11 @@ SELECT ALL - COALESCE ( - - 68, - - 46 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -1273 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col0" at position 0 and "Int64\(67\) \* Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 88 ) col0, + 67 * - 19 AS col0 +---- +-1273 +88 query I rowsort label-1648 SELECT + 17 * + COUNT ( * ) @@ -8745,8 +8859,11 @@ SELECT - 13 + 74 + + 54 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 24 AS col0, 54 AS col0 +---- +-24 +54 query I rowsort label-1659 SELECT DISTINCT 26 / 52 / - ( 96 ) * - 15 @@ -8917,8 +9034,11 @@ 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\(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\. +query II valuesort 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 +---- +2109 +83 query I rowsort label-1692 SELECT ALL - CAST ( NULL AS INTEGER ) * - 7 * MIN ( + 67 ) - MAX ( - 36 ) - - - 36 - 68 * COUNT ( * ) AS col0 @@ -9155,8 +9275,11 @@ SELECT ALL - 32 * - + MIN ( DISTINCT - 33 ) * + + 55 * - COUNT ( * ) + CAST ( - # 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\(\(\- \(\- CAST\(NULL AS Float64\)\)\)\)\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + ( ( - COUNT ( ALL - - CAST ( NULL AS FLOAT8 ) ) ) ) ) AS col2, 13 AS col2 +---- +0 +13 query I rowsort label-1737 SELECT ALL - MIN ( - 5 ) * 38 + + - 64 col2 @@ -9253,8 +9376,11 @@ SELECT ALL + 73 - + 16 # 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 "Int64\(\-77\) / Int64\(73\) \+ Int64\(4\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 77 / + + 73 + + 4 AS col2, + 69 AS col2 +---- +3 +69 query I rowsort SELECT - ( + 83 ) AS col1 @@ -9675,8 +9801,11 @@ SELECT + 91 + + ( COUNT ( * ) ) * + + 51 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59535 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(45\) \* coalesce\(Int64\(27\), Int64\(\-28\), Int64\(76\)\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 49 * + 45 * + COALESCE ( + 27, - 28, + + 76 ) col2, 33 AS col2 +---- +33 +59535 query I rowsort label-1836 SELECT DISTINCT COUNT ( ALL - + 44 ) / 85 - - MAX ( DISTINCT + - 75 ) - - 54 * + COUNT ( ALL 94 ) + - 77 + - 29 + 58 + + 71 - + - 25 * 54 * + 17 col1 @@ -9760,8 +9889,11 @@ SELECT DISTINCT 0 * - 14 / - 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col1" at position 0 and "Int64\(\-74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 6 AS col1, - 74 AS col1 +---- +-74 +6 query I rowsort SELECT COALESCE ( - + 31, + 91 ) @@ -10018,8 +10150,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 11 / 15 / 57 - - + 71 AS col0, ( - COUNT ( * ) ) col0 +---- +-1 +71 query I rowsort label-1900 SELECT - MIN ( ALL 93 ) AS col2 @@ -10063,8 +10198,11 @@ SELECT DISTINCT + COALESCE ( - 86, - + 17 + + 47 / + 16 * - 24 ) - + + COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "Int64\(13\) \+ Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 19 AS col1, + 13 + 18 AS col1 +---- +19 +31 query I rowsort label-1908 SELECT 29 * MIN ( - 79 ) AS col0 @@ -10457,8 +10595,11 @@ SELECT + + 90 + - NULLIF ( + + ( 4 ), - 37 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-56\)\) AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 56 AS col1, + ( 78 ) AS col1 +---- +56 +78 query II rowsort label-1982 SELECT + - 15 + 81, MAX ( + + 52 ) + + 71 - 62 col1 @@ -10682,8 +10823,11 @@ SELECT DISTINCT + 16 + - + 10 + - 50 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - -1626 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ Int64\(\-74\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(38\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(18\) \- Int64\(52\) \+ nullif\(Int64\(44\), Int64\(47\) \+ \(\- Int64\(20\)\) \+ Int64\(\-8\) \- Int64\(72\)\) \+ \(\- Int64\(\-33\)\) \* min\(DISTINCT Int64\(\-26\)\) \- Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 + - 74 + + COUNT ( * ) AS col1, 38 * + - COUNT ( * ) * + + 18 - 52 + NULLIF ( 44, + 47 + - + 20 + - 8 - 72 ) + + - ( ( - 33 ) ) * + MIN ( DISTINCT + - 26 ) - + 76 col1 +---- +-1626 +19 query I rowsort SELECT ALL - 98 + + NULLIF ( 6, 30 ) @@ -10748,8 +10892,11 @@ SELECT NULLIF ( - - ( 32 ), - CAST ( NULL AS INTEGER ) ) / - - 90 - - 94 / - ( + # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-71\)\) AS col2" at position 0 and "\(\- Int64\(\-25\)\) / Int64\(\-26\) \+ \(\- Int64\(29\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 71 AS col2, - ( - 25 ) / - 26 + - + 29 + + ( + COUNT ( * ) ) AS col2 +---- +-28 +71 query I rowsort SELECT 73 * + 1 + - 89 + + 51 AS col1 @@ -10851,8 +10998,11 @@ SELECT DISTINCT - 75 * 26, 1 + 65 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1299155 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* Int64\(76\) \+ CASE Int64\(22\) WHEN Int64\(10\) \+ Int64\(\-52\) THEN NULL WHEN Int64\(91\) THEN Int64\(\-50\) END \* Int64\(\-89\) AS col0" at position 0 and "Int64\(23\) \* Int64\(11\) \* Int64\(65\) \* Int64\(\-79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 * + 76 + + CASE + 22 WHEN + 10 + - 52 THEN NULL WHEN 91 THEN - 50 END * - 89 AS col0, + 23 * + 11 * 65 * - 79 AS col0 +---- +-1299155 +NULL query I rowsort SELECT 73 * - 2 AS col2 @@ -11131,8 +11281,11 @@ 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\(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\. +query II valuesort SELECT ALL + 22 col2, + MIN ( 83 ) * + 26 + - 29 * + - 23 * - - COUNT ( * ) * 39 * - 3 * - + 56 + + - 20 + - 44 + - - 2 AS col2 +---- +22 +4372280 query I rowsort SELECT ( - + 45 ) AS col0 @@ -11894,8 +12047,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( + + MIN ( + 81 ), - 93 ) + - + 72 AS col2, - ( - 5 ) * - 13 * - - 59 - + 26 * - + 80 * + 44 + + 8 + 53 + 46 + - COUNT ( * ) AS col2 +---- +-153 +87791 query I rowsort SELECT ALL + - 16 - + 82 col2 @@ -12085,8 +12241,11 @@ SELECT ALL - 50 * - + 20 + - - 62 + - 0 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 58 AS col1, + 84 col1 +---- +-58 +84 query I rowsort label-2294 SELECT ALL - + COUNT ( DISTINCT + 35 ) AS col2 @@ -12106,8 +12265,11 @@ SELECT + ( 61 ) + 51 * + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 570 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(81\) \- Int64\(42\) \* Int64\(\-2\) AS col1" at position 0 and "Int64\(\-34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 * 81 - 42 * - 2 col1, - 34 AS col1 +---- +-34 +570 query I rowsort label-2298 SELECT ALL 77 + + NULLIF ( - - 94, - + 15 * 61 ) * - CAST ( - 67 AS INTEGER ) AS col1 @@ -12367,8 +12529,11 @@ NULL # 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\(64\) AS col1" at position 0 and "Int64\(0\) \- Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 AS col1, 0 - - 5 col1 +---- +5 +64 query I rowsort label-2348 SELECT - 42 / + CASE 63 WHEN - 83 THEN + 44 ELSE - - 21 END AS col2 @@ -12419,8 +12584,11 @@ SELECT ALL + 28 * 59 * - + 11 * + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 0 col0, 48 AS col0 +---- +0 +48 query I rowsort SELECT - ( ( - 96 ) ) AS col1 @@ -12913,8 +13081,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(56\) \+ Int64\(63\) \* Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 21 AS col0, 87 / ( - - 71 ) * + 40 / + + 5 - 17 + COUNT ( * ) + + 56 + 63 * + 23 col0 +---- +-21 +1497 query I rowsort label-2452 SELECT - + COUNT ( ALL + 8 ) - ( + 36 ) / - + 14 + ( + + 48 ) AS col0 @@ -12951,8 +13122,11 @@ SELECT ALL + - 11 - + 95 + - - 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 161 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-30\)\) \+ sum\(\(\- Int64\(72\)\)\) \+ Int64\(89\) \+ Int64\(29\) \+ Int64\(92\) \- Int64\(7\) AS col2" at position 0 and "Int64\(\-1\) \- count\(DISTINCT Int64\(67\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 30 + + SUM ( - + 72 ) + 89 + + 29 + 92 - 7 AS col2, - 1 - COUNT ( DISTINCT 67 ) AS col2 +---- +-2 +161 query I rowsort label-2459 SELECT ALL 19 / + 94 + NULLIF ( - CAST ( - 62 AS INTEGER ), 91 ) - - 25 * + + 15 AS col1 @@ -13014,8 +13188,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(85\) \+ Int64\(71\) \* Int64\(\-20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 70 ) AS col0, + COUNT ( * ) + 85 + + 71 * ( - 20 ) AS col0 +---- +-1334 +-70 query I rowsort label-2471 SELECT DISTINCT 48 / + 10 @@ -13687,8 +13864,11 @@ SELECT COUNT ( * ) + + 52 + - 94 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - -4810 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col1" at position 0 and "Int64\(\-74\) \* Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 41 col1, - 74 * + 65 AS col1 +---- +-41 +-4810 query II rowsort SELECT 58, 56 AS col0 @@ -13736,8 +13916,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "Int64\(\-5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 56 AS col2, - 5 AS col2 +---- +-5 +56 query I rowsort SELECT 72 * + 0 @@ -13841,8 +14024,11 @@ SELECT DISTINCT - 24 - ( 96 ) * 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5049 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) \* Int64\(\-99\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 51 * - 99 AS col2, 34 AS col2 +---- +34 +5049 query II rowsort label-2629 SELECT 54 * + - 26 AS col1, + COUNT ( * ) @@ -13980,8 +14166,11 @@ 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\(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\. +query II valuesort SELECT 74 * + COUNT ( * ) * + 0 AS col0, 90 AS col0 +---- +0 +90 query I rowsort label-2656 SELECT 80 + - - COUNT ( + 13 ) + + - 93 / + 77 col1 @@ -14800,8 +14989,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( ALL + 61 ) / 11 + COALESCE ( COUNT ( * ), + 33 ) AS col0, 1 col0 +---- +1 +1 query II rowsort SELECT ALL + 70, + 82 col0 @@ -14946,8 +15138,12 @@ SELECT ALL + - 57 + CAST ( - COUNT ( ALL + - 7 ) AS INTEGER ) + - - 45 col0 # Datafusion - Expected - -161 # Datafusion - Expected - 84 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) / \(\- min\(Int64\(51\)\)\) \+ \(\- coalesce\(CAST\(\(\- Int64\(\-80\)\) AS Int32\), nullif\(Int64\(\-75\), Int64\(\-98\)\), \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(78\) \* Int64\(10\) \+ Int64\(48\) \+ nullif\(Int64\(\-2\), \(\- \(\- CAST\(min\(Int64\(\-31\)\) AS Int32\)\)\)\) \* \(\- max\(Int64\(80\)\)\)\)\)\)\) \+ \(\- Int64\(80\)\) AS col0" at position 0 and "Int64\(58\) \+ Int64\(\-70\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-12 +-161 +84 query I rowsort label-2839 SELECT ALL - COUNT ( * ) - + + COUNT ( * ) + - + COUNT ( 3 ) @@ -15123,8 +15319,11 @@ SELECT COUNT ( * ) * - 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 5076 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 0 and "Int64\(\-54\) \* Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 34 AS col1, - 54 * + - 94 AS col1 +---- +34 +5076 query I rowsort label-2874 SELECT ALL - COALESCE ( + 39, + - 7 * - COALESCE ( 57, - CAST ( NULL AS INTEGER ), + 57 ) ) + 19 @@ -15250,8 +15449,11 @@ SELECT - 36 - + 18 - + 84 * + 94 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 86762 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \+ \(\- Int64\(\-72\)\) AS col1" at position 0 and "Int64\(71\) \* Int64\(47\) \* \(\- Int64\(\-26\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 7 + - - 72 AS col1, + 71 * 47 * - - 26 AS col1 +---- +79 +86762 query I rowsort label-2899 SELECT - 12 - + 97 / 9 * - 77 + - COUNT ( * ) + + COUNT ( DISTINCT - 93 ) + - 64 @@ -15738,8 +15940,11 @@ SELECT ALL COUNT ( 1 ) + - - 69 + - + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(67\)\) \* sum\(\(\- CAST\(NULL AS Int32\)\)\) \* Int64\(\-93\) / Int64\(75\) \- Int64\(64\) AS col1" at position 0 and "Int64\(60\) / Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - + 67 ) * SUM ( ALL - CAST ( NULL AS INTEGER ) ) * - 93 / 75 - + 64 AS col1, + 60 / 73 AS col1 +---- +0 +NULL query II rowsort label-2990 SELECT DISTINCT + 36 + + MAX ( - 39 ) + + + 33, COUNT ( * ) AS col0 @@ -17109,8 +17314,11 @@ SELECT - COUNT ( * ) * 42 - + 65 - - - 37 - - 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - -1430 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "Int64\(65\) \* Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 69 AS col0, 65 * - 22 AS col0 +---- +-1430 +69 query II rowsort SELECT ALL - 12 AS col2, 49 + 8 col1 @@ -17152,8 +17360,11 @@ SELECT ALL 42 * + 96 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 353 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) AS col0" at position 0 and "Int64\(\-27\) \+ \(\- Int64\(\-87\)\) / Int64\(21\) \* Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 21 AS col0, - 27 + - - 87 / 21 * 95 AS col0 +---- +-21 +353 query I rowsort SELECT + 81 * 42 @@ -18142,8 +18353,11 @@ SELECT ALL ( + COUNT ( * ) ) * + COUNT ( * ) * - 53 / + 29 + + - COALESCE ( 72, # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \+ Int64\(12\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* avg\(CAST\(NULL AS Int32\)\) \+ Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL - 27 + + 12 AS col2, COUNT ( * ) * AVG ( + + CAST ( NULL AS INTEGER ) ) + - 12 AS col2 +---- +-15 +NULL query II rowsort label-3452 SELECT DISTINCT CAST ( 93 AS INTEGER ) * - 72 * - NULLIF ( 99, - 5 / + COUNT ( * ) + 82 + MIN ( + 23 ) ) AS col0, 33 * - 21 @@ -18461,8 +18675,11 @@ SELECT DISTINCT - 17 * 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - -2115 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- Int64\(\-46\)\)\)\) \+ Int64\(\-1\) AS col0" at position 0 and "Int64\(26\) \* Int64\(\-85\) \+ Int64\(11\) \+ Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( - - 46 ) + + + ( - 1 ) AS col0, + 26 * - 85 + + 11 + + 84 col0 +---- +-2 +-2115 query I rowsort label-3513 SELECT - 64 / - 47 @@ -18860,8 +19077,11 @@ SELECT 72 * - + 66 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 74 AS col2, + 61 AS col2 +---- +61 +74 query II rowsort label-3590 SELECT - COUNT ( * ), - COUNT ( - 19 ) @@ -19632,8 +19852,11 @@ 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\(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\. +query II valuesort SELECT 41 / + 15 + 78 + + - COUNT ( * ) * COUNT ( * ) * MAX ( DISTINCT + 50 ) + 1 / + - 12 AS col2, - 54 + + MAX ( 77 ) * 96 AS col2 +---- +30 +7338 query II rowsort SELECT + 95 * 98, + 26 AS col0 @@ -19665,8 +19888,11 @@ SELECT + 26, + ( - 39 ) * + - 6 + - - NULLIF ( + 21, - + 81 / - 56 ) + 89 * - CO # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 54 AS col1, 29 col1 +---- +-54 +29 query I rowsort label-3741 SELECT - + 97 / 44 + 97 @@ -19810,8 +20036,11 @@ SELECT ALL + - 27 * 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - -3185 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(\-83\)\) AS col2" at position 0 and "Int64\(49\) \* Int64\(\-65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( DISTINCT - 83 ) AS col2, 49 * - 65 AS col2 +---- +-3185 +-83 query I rowsort label-3769 SELECT ALL 18 / - 15 - - 7 + - 20 AS col0 @@ -20173,8 +20402,11 @@ SELECT + 82 + 5 * + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(max\(\(\- Int64\(\-27\)\)\), Int64\(\-38\)\)\)\) AS col2" at position 0 and "Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - NULLIF ( MAX ( - - 27 ), - 38 ) AS col2, - 71 AS col2 +---- +-71 +27 query I rowsort SELECT DISTINCT - + 83 AS col0 @@ -20592,8 +20824,11 @@ SELECT ALL + - 88 * 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - -26 -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\) \+ \(\- Int64\(0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 71 AS col0, - 26 + - + 0 AS col0 +---- +-26 +-71 query I rowsort label-3917 SELECT + 67 + + + SUM ( DISTINCT 45 ) AS col1 @@ -20916,8 +21151,11 @@ SELECT DISTINCT 67 + COUNT ( * ) / + 15 + - 1 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, + 41 AS col2 +---- +41 +NULL query I rowsort label-3978 SELECT + CAST ( NULL AS INTEGER ) * 78 @@ -21117,8 +21355,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 83 AS col0, - COUNT ( * ) + + - 29 col0 +---- +-30 +83 query I rowsort SELECT ALL 76 + 0 col2 @@ -21510,8 +21751,11 @@ SELECT 9 * 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col1" at position 0 and "\(\- nullif\(Int64\(\-88\), Int64\(81\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 51 AS col1, - NULLIF ( + - 88, + 81 ) AS col1 +---- +51 +88 query I rowsort label-4090 SELECT DISTINCT COUNT ( + 43 ) * - 58 * - CAST ( + 31 AS INTEGER ) * - - ( + + 87 ) @@ -21695,8 +21939,11 @@ SELECT + COUNT ( * ) * + 13 + + - SUM ( ALL + 0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1456 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-26\)\) \* Int64\(56\) AS col2" at position 0 and "\(\- Int64\(49\)\) / count\(DISTINCT Int64\(0\)\) \* CASE \(\- Int64\(66\)\) WHEN Int64\(83\) THEN Int64\(40\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 26 * 56 AS col2, - ( 49 ) / COUNT ( DISTINCT + 0 ) * CASE - + 66 WHEN 83 THEN 40 ELSE NULL END AS col2 +---- +1456 +NULL query I rowsort SELECT 15 * + NULLIF ( + - NULLIF ( + + 95, 77 * - 38 / - 57 + 81 ), + + 82 ) + - + 18 + + 75 @@ -21731,8 +21978,11 @@ SELECT COALESCE ( - + 30, - + 8 ) * 84 + - 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 42 AS col2, 90 AS col2 +---- +42 +90 query I rowsort SELECT + 51 * 24 col2 @@ -22158,8 +22408,11 @@ 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\(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\. +query II valuesort SELECT + CASE + COUNT ( * ) WHEN 66 * 7 * - 73 THEN NULL ELSE 9 END AS col0, + 72 + - - ( + 36 ) AS col0 +---- +108 +9 query I rowsort label-4211 SELECT DISTINCT CAST ( - 0 AS INTEGER ) - - - 99 AS col1 @@ -23111,8 +23364,11 @@ SELECT ALL + + 7 * + + MIN ( - 55 ) + + 96 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -2460 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "\(\- \(\- coalesce\(\(\- \(\- sum\(\(\- Int64\(\-41\)\)\)\)\), Int64\(99\)\)\)\) \* Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 AS col0, - ( - COALESCE ( + ( - ( - SUM ( - - 41 ) ) ), + 99 ) ) * - 60 col0 +---- +-2460 +58 query I rowsort SELECT + COALESCE ( + 54, - 71 + - + 37 + + 69 + - ( - 16 ) ) col1 @@ -23350,8 +23606,11 @@ SELECT 13 + 19 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - 315 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col0" at position 0 and "Int64\(45\) \* \(\- Int64\(\-7\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 96 AS col0, 45 * - - 7 AS col0 +---- +-96 +315 query I rowsort SELECT + 40 + + 66 AS col1 @@ -23361,8 +23620,11 @@ SELECT + 40 + + 66 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 106 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(96\) AS col2" at position 0 and "Int64\(\-97\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 10 - - + COUNT ( * ) * + + 96 col2, - 97 * + COUNT ( * ) AS col2 +---- +-97 +106 query I rowsort SELECT 96 * + + 9 AS col0 @@ -23564,8 +23826,11 @@ 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\(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\. +query II valuesort SELECT - - 11 + - CASE + COUNT ( * ) WHEN - 48 + ( 1 ) THEN NULL ELSE + + 33 END AS col2, 6 AS col2 +---- +-22 +6 query I rowsort label-4480 SELECT DISTINCT 46 / - 69 + + 89 @@ -23839,8 +24104,12 @@ SELECT 1 * - - 3 AS col0 # Datafusion - Expected - -39 # Datafusion - Expected - -2511 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col2" at position 0 and "Int64\(60\) \* Int64\(\-42\) \+ Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 39 AS col2, + 60 * - 42 + 9 AS col2, - 27 +---- +-2511 +-27 +-39 query I rowsort label-4533 SELECT 16 + - 79 * - 1 - + + ( - + 32 ) + 83 + - MIN ( DISTINCT - + 62 ) + - - 88 AS col2 @@ -23948,8 +24217,12 @@ SELECT - 75 - 71 # Datafusion - Expected - 62 # Datafusion - Expected - 42 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \* \(\- nullif\(\(\- \(\- max\(DISTINCT Int64\(2\)\)\)\), Int64\(\-19\)\)\) \+ \(\- Int64\(68\)\) AS col0" at position 0 and "Int64\(\-66\) \+ \(\- Int64\(1\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 65 * - NULLIF ( - - MAX ( DISTINCT + 2 ), + - 19 ) + - + 68 AS col0, + 42 AS col1, - 66 + - + 1 AS col0 +---- +-67 +42 +62 query II rowsort SELECT - 42 + - - 17 + 61 * + 21, + 60 + + + 41 AS col2 @@ -24183,8 +24456,11 @@ SELECT ALL + COUNT ( ALL - 24 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\)" at position 0 and "Int64\(99\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 99, 99 +---- +99 +99 query II rowsort label-4599 SELECT ALL + 80 AS col2, - CAST ( NULL AS INTEGER ) AS col0 @@ -24230,8 +24506,11 @@ SELECT + CAST ( 93 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - -2102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(66\), Int64\(19\)\) AS col1" at position 0 and "Int64\(30\) \* \(\- Int64\(70\)\) \+ nullif\(\(\- count\(Int64\(\-49\)\)\), Int64\(\-79\) \* Int64\(\-84\) \* Int64\(\-23\)\) \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + NULLIF ( + 66, + 19 ) col1, + 30 * - + 70 + NULLIF ( - COUNT ( ALL - 49 ), - 79 * - 84 * + - 23 ) * 2 AS col1 +---- +-2102 +66 query I rowsort label-4608 SELECT ALL - - 87 * - CAST ( NULL AS INTEGER ) @@ -24267,8 +24546,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - -1818 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(56\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(68\)\) \* coalesce\(Int64\(28\), \(\- CASE Int64\(65\) WHEN coalesce\(\(\- min\(\(\- \(\- Int64\(84\)\)\)\)\), Int64\(\-72\) \* Int64\(83\) \* \(\- Int64\(\-98\)\)\) THEN \(\- CAST\(Int64\(77\) AS Int32\)\) WHEN \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(40\) THEN Int64\(69\) / \(\- Int64\(\-20\)\) WHEN \(\- Int64\(23\)\) \* Int64\(52\) THEN NULL ELSE Int64\(\-86\) \- Int64\(\-31\) END\) / \(\- Int64\(14\)\) \+ \(\- Int64\(\-39\)\) \+ Int64\(11\) \+ \(\- Int64\(\-65\)\) THEN NULL END\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(95\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- sum\(DISTINCT Int64\(86\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-1818 +-56 query II rowsort SELECT - 23 AS col0, 88 + - CASE - - 9 WHEN 14 THEN + 36 / - + ( 50 ) + + 1 - - - 35 + 80 ELSE NULL END + + 23 AS col2 @@ -24454,8 +24736,11 @@ SELECT ALL - 86 * + 4 + + 18 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - -147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \+ Int64\(\-45\) AS col0" at position 0 and "Int64\(\-97\) \- Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 74 + - 45 col0, - 97 - 50 AS col0 +---- +-147 +29 query I rowsort label-4651 SELECT - 78 + + + 13 * + 58 + CAST ( + COUNT ( * ) AS INTEGER ) @@ -25101,8 +25386,11 @@ SELECT - 48 + - CAST ( 52 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(25\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 AS col0, - COUNT ( * ) + + 25 + COUNT ( * ) AS col0 +---- +25 +8 query I rowsort SELECT 86 - 75 AS col2 @@ -25830,8 +26118,11 @@ SELECT - - 86 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1815 # Datafusion - Expected - -4392 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* Int64\(55\) AS col2" at position 0 and "Int64\(61\) \* Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 33 * + 55 AS col2, 61 * + - 72 AS col2 +---- +-4392 +1815 query I rowsort label-4915 SELECT + CAST ( NULL AS INTEGER ) / ( - 0 ) + + 76 - - + 17 * - 37 - - - 77 / 86 @@ -25916,8 +26207,11 @@ SELECT ALL - 18 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 21 AS col1, 42 AS col1 +---- +-21 +42 query I rowsort label-4931 SELECT CAST ( 62 AS INTEGER ) + 27 * - + 61 @@ -26647,8 +26941,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) * + + ( 27 ) AS col0, 83 * - 72 AS col0 +---- +-27 +-5976 query I rowsort label-5069 SELECT ALL + 74 - - COUNT ( * ) * - 5 + - ( - 98 ) AS col0 @@ -27074,8 +27371,11 @@ SELECT ALL + ( + - 82 ) * - + ( 73 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(39\) WHEN Int64\(13\) THEN Int64\(1\) ELSE NULL END AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CASE + + 39 WHEN + 13 THEN 1 ELSE NULL END AS col2, COUNT ( * ) AS col2 +---- +1 +NULL query I rowsort label-5152 SELECT - SUM ( ALL - 51 ) AS col0 @@ -27726,8 +28026,11 @@ SELECT 48 * + - 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) AS col1" at position 0 and "CASE Int64\(16\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN Int64\(45\) / \(\- count\(DISTINCT Int64\(\-44\)\)\) \- min\(Int64\(60\)\) \* Int64\(\-42\) \* Int64\(\-63\) WHEN Int64\(22\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 AS col1, CASE + 16 WHEN - CAST ( NULL AS INTEGER ) THEN + ( + 45 ) / - COUNT ( DISTINCT - 44 ) - MIN ( 60 ) * - 42 * - 63 WHEN + 22 THEN NULL END AS col1 +---- +-3 +NULL query I rowsort SELECT - 89 * - 37 AS col1 @@ -27803,8 +28106,11 @@ SELECT ALL - 48 * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \- CASE Int64\(35\) WHEN Int64\(\-78\) THEN NULL ELSE count\(Int64\(1\)\) AS count\(\*\) END \+ Int64\(\-12\) \+ Int64\(\-66\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 52 - CASE + 35 WHEN - 78 THEN NULL ELSE + COUNT ( * ) END + - 12 + + - 66 AS col0, COUNT ( * ) AS col0 +---- +-27 +1 query I rowsort SELECT ( - - 91 ) * + + 71 col0 @@ -27829,8 +28135,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2730 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(70\) AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 * + 70 AS col1, + 23 AS col1 +---- +23 +2730 query I rowsort SELECT DISTINCT + 8 * + 69 @@ -27942,8 +28251,11 @@ SELECT ALL 12 col0, - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 14 AS col1, 93 AS col1 +---- +-14 +93 query I rowsort SELECT ALL + 21 * - 54 AS col2 @@ -28036,8 +28348,11 @@ SELECT ALL - 92 - - 53 + - 64 * 54 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "Int64\(76\) \+ Int64\(\-89\) \+ Int64\(72\) \+ Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 85 AS col2, + 76 + + - 89 + 72 + + - 88 AS col2 +---- +-29 +85 query I rowsort SELECT - 10 - + 73 AS col0 @@ -28083,8 +28398,11 @@ SELECT - 76 + 8 * - COUNT ( * ) + - 91 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3381 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* \(\- Int64\(43\)\) \- Int64\(59\) AS col2" at position 0 and "\(\- Int64\(92\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 80 * - + 43 - + + 59 AS col2, + ( - + 92 ) AS col2 +---- +-92 +3381 query I rowsort label-5344 SELECT + + 71 / + + 76 col0 @@ -28217,8 +28535,11 @@ SELECT - - 57 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - -924 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col1" at position 0 and "Int64\(42\) \* Int64\(\-22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 86 AS col1, 42 * - 22 AS col1 +---- +-86 +-924 query I rowsort label-5370 SELECT - 65 / CASE + 49 WHEN - MAX ( - - 16 ) THEN NULL ELSE - 36 END @@ -28500,8 +28821,11 @@ SELECT DISTINCT + + ( NULLIF ( - 72, 34 - COUNT ( * ) + 98 ) ) * + - 98 + + COUN # 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 "Int64\(\-70\) AS col2" at position 0 and "\(\- Int64\(\-45\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 70 AS col2, - ( - 45 ) AS col2 +---- +-70 +45 query I rowsort label-5425 SELECT + - MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) @@ -28527,8 +28851,11 @@ SELECT ALL + COUNT ( * ) AS col0, 58 + 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col1" at position 0 and "Int64\(5\) \+ Int64\(2\) \* Int64\(\-98\) \+ Int64\(\-9\) \+ Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 AS col1, 5 + 2 * + - 98 + - 9 + + 55 AS col1 +---- +-145 +56 query II rowsort label-5430 SELECT ALL + + 37, + COUNT ( * ) + - NULLIF ( - ( - 17 ), 95 + - MIN ( - - 74 ) ) col0 @@ -28707,8 +29034,11 @@ SELECT DISTINCT - ( - 36 ) * - CAST ( + + MIN ( - 91 ) AS INTEGER ) * + + 79 * - # Datafusion - Datafusion expected results: # Datafusion - Expected - 7065 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \+ Int64\(\-79\) \* sum\(DISTINCT Int64\(\-90\)\) AS col2" at position 0 and "Int64\(24\) \+ Int64\(\-18\) \- Int64\(54\) \* CAST\(NULL AS Int32\) \+ Int64\(85\) \+ \(\- nullif\(Int64\(\-80\), Int64\(9\)\)\) \* \(\- Int64\(8\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 45 + + - 79 * + SUM ( DISTINCT - 90 ) AS col2, 24 + - 18 - ( 54 ) * CAST ( NULL AS INTEGER ) + 85 + + - NULLIF ( - 80, + 9 ) * - ( 8 ) AS col2 +---- +7065 +NULL query I rowsort label-5465 SELECT DISTINCT CAST ( NULL AS INTEGER ) * SUM ( DISTINCT + + 26 ) * 18 / + 83 + 67 @@ -28983,8 +29313,11 @@ SELECT DISTINCT - COALESCE ( + + 4, + 21 * ( + 2 ) + + - 68, + - 71 + - - 46 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col0" at position 0 and "Int64\(\-98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 AS col0, - 98 AS col0 +---- +-98 +21 query I rowsort SELECT 76 * + + ( - - 14 ) AS col0 @@ -29734,8 +30067,11 @@ SELECT 38 AS col0, 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - -2418 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col0" at position 0 and "Int64\(\-78\) \* Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 4 AS col0, - 78 * 31 AS col0 +---- +-2418 +-4 query II rowsort SELECT + 7, - 50 * - 78 * + 59 AS col2 @@ -29835,8 +30171,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +5894 +NULL query I rowsort label-5677 SELECT ALL + 12 + COALESCE ( + COUNT ( * ), - - 63 ) * - 92 * 20 * - + COUNT ( * ) AS col1 @@ -30443,8 +30782,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 86 * - + 77 / - 7 + - - 47 + - COUNT ( * ) AS col2, + 71 * - 98 + - - 35 AS col2 +---- +-6923 +992 query II rowsort SELECT ALL - + 32 * 28 * + 22 + - - 61 - 12 + + ( + 63 ), 81 AS col2 @@ -30911,8 +31253,11 @@ SELECT - 95 * - 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 AS col2, COUNT ( * ) AS col2 +---- +1 +51 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -31636,8 +31981,11 @@ SELECT DISTINCT - 40 - - - 23 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 167641 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col0" at position 0 and "Int64\(61\) \+ Int64\(98\) \* Int64\(38\) \* Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 43 AS col0, 61 + + 98 * 38 * 45 AS col0 +---- +167641 +43 query I rowsort label-6015 SELECT ALL - COALESCE ( - COUNT ( * ), + 45, + 24 ) AS col2 @@ -31752,8 +32100,11 @@ SELECT - + 85, - MIN ( DISTINCT 16 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 320 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "CAST\(Int64\(80\) AS Int32\) \* Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( * ) AS col2, + CAST ( 80 AS INTEGER ) * + 4 AS col2 +---- +1 +320 query I rowsort label-6036 SELECT - SUM ( - 19 ) - + 23 * - + 9 * + 85 @@ -31869,8 +32220,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 75 + + + 83 AS col2, - COUNT ( * ) AS col2 +---- +-1 +158 query I rowsort label-6058 SELECT - - 21 + - CAST ( - NULLIF ( + 0, - 10 ) AS INTEGER ) * - - NULLIF ( + 52, + + 86 ) - + 16 * + - 43 @@ -32037,8 +32391,11 @@ SELECT + 30, - ( + 9 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 50 AS col0, CAST ( NULL AS INTEGER ) AS col0 +---- +50 +NULL query I rowsort SELECT ALL COALESCE ( + 89, - ( + - 88 ) + - 52 + - + 9 + + + 80 ) * - - 50 AS col0 @@ -32131,8 +32488,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\)" at position 0 and "Int64\(52\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 52, 52 +---- +52 +52 query I rowsort label-6108 SELECT DISTINCT MAX ( + 95 ) col2 @@ -32167,8 +32527,11 @@ SELECT ALL + NULLIF ( + + 78, + 39 + - 71 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 124 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ Int64\(76\) AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 + + 76 AS col1, 52 AS col1 +---- +124 +52 query I rowsort label-6115 SELECT MAX ( DISTINCT - - 51 ) - + + 33 AS col1 @@ -32491,8 +32854,11 @@ 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\(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\. +query II valuesort SELECT - - COUNT ( * ) / - COUNT ( ALL - + 57 ) AS col0, 65 * + NULLIF ( 69, 13 ) + + - 25 AS col0 +---- +-1 +4460 query I rowsort label-6177 SELECT + CASE 11 WHEN - 28 THEN + ( + 56 ) * - - COUNT ( * ) END @@ -32628,8 +32994,12 @@ SELECT ALL + + 50 AS col0, ( - + 41 ) + 28 + COUNT ( ALL CAST ( + - 54 AS INTEGE # Datafusion - Expected - 25 # Datafusion - Expected - 2160 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* Int64\(76\) \+ Int64\(\-44\) AS col0" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 25 col1, 29 * + 76 + - 44 AS col0, COUNT ( * ) AS col0 +---- +1 +2160 +25 query I rowsort label-6203 SELECT 87 / + 49 + - 73 * 15 * + 3 + - + ( + 27 ) * 93 / MIN ( DISTINCT + 24 ) AS col1 @@ -32664,8 +33034,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 71 AS col1, + 11 AS col1 +---- +11 +71 query II rowsort label-6210 SELECT + COUNT ( * ) + 97 AS col0, 35 @@ -32681,8 +33054,11 @@ SELECT ALL - + 40 * + 45 * + 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 1200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col0" at position 0 and "Int64\(24\) \* Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 22 AS col0, + 24 * 50 col0 +---- +1200 +22 query I rowsort label-6213 SELECT - 74 / + 80 - - 84 + + + ( + COUNT ( * ) ) col2 @@ -32854,8 +33230,11 @@ SELECT ALL + COUNT ( * ) * + 39 / - + 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 137 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(\-70\)\)\) AS col1" at position 0 and "Int64\(42\) \+ \(\- Int64\(\-95\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( ALL - 70 ) AS col1, 42 + - - 95 col1 +---- +-1 +137 query II rowsort SELECT - ( + + 3 ) AS col0, 18 @@ -32954,8 +33333,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col1" at position 0 and "Int64\(71\) \+ Int64\(6\) / Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 82 AS col1, 71 + 6 / 45 AS col1 +---- +-82 +71 query I rowsort label-6264 SELECT COUNT ( * ) + 39 * + COUNT ( * ) @@ -33115,8 +33497,11 @@ SELECT DISTINCT - ( 35 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-58\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( ALL - 58 ) col0, COUNT ( * ) AS col0 +---- +1 +1 query I rowsort SELECT - 94 * + 36 + - - 2 * 91 * 7 + - 98 @@ -33176,8 +33561,11 @@ 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\(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\. +query IR valuesort 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 +---- +179 +NULL query I rowsort label-6307 SELECT + 18 / - 18 AS col0 @@ -33357,8 +33745,11 @@ SELECT DISTINCT + 16 * + - 69 * - + 65 + + 26 + - 66 * - - 41 + + - 16 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 "Int64\(\-32\) \* Int64\(86\) \* \(\- CAST\(NULL AS Float64\)\) \+ \(\- Int64\(82\)\) \+ Int64\(\-13\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT - 32 * + 86 * - CAST ( NULL AS FLOAT8 ) + - + 82 + - 13 AS col2, 3 AS col2 +---- +3 +NULL query I rowsort label-6342 SELECT DISTINCT 51 * + COUNT ( * ) + - 0 AS col2 @@ -33988,8 +34379,11 @@ SELECT 44 * - 80 + - + 92 # 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\(DISTINCT Int64\(2\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 80 AS col2, - ( + COUNT ( DISTINCT 2 ) ) AS col2 +---- +-1 +80 query I rowsort SELECT ALL + ( + - 15 ) @@ -34019,8 +34413,11 @@ SELECT ALL + 11 * 6 + + 36 + 17 * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -3681 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "Int64\(\-33\) \- Int64\(48\) \* Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 54 AS col1, - 33 - + 48 * + 76 col1 +---- +-3681 +54 query I rowsort SELECT - - 89 + 46 @@ -34171,8 +34568,11 @@ SELECT ALL 35 / - - 79 - + ( 88 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(86\) AS Int32\) AS col0" at position 0 and "max\(Int64\(11\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( 86 AS INTEGER ) col0, MAX ( + + 11 ) AS col0 +---- +11 +86 query I rowsort label-6502 SELECT DISTINCT 47 / - 70 AS col2 @@ -34555,8 +34955,11 @@ SELECT 72 * COUNT ( * ) * 52 # 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 "Int64\(12\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 AS col1, + 80 col1 +---- +12 +80 query I rowsort SELECT ALL + 85 * - 21 AS col0 @@ -34902,14 +35305,20 @@ SELECT + 67 + + - 29 + - - 75 / COUNT ( - 62 ) AS col1 # 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 col0" at position 0 and "Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 95 AS col0, - 73 AS col0 +---- +-73 +95 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-63\), Int64\(64\)\) AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( - 63, 64 ) AS col1, + 57 col1 +---- +-63 +57 query I rowsort SELECT - 14 - + 90 AS col2 @@ -35261,14 +35670,20 @@ SELECT + MIN ( - - ( + - 86 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, 0 AS col0 +---- +0 +1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4783 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* Int64\(\-58\) \+ \(\- Int64\(27\)\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 82 ) * - 58 + - ( + 27 ) AS col0, 17 AS col0 +---- +-4783 +17 query I rowsort label-6712 SELECT ALL - COUNT ( * ) + - COUNT ( * ) - + + 73 * - 48 @@ -35346,8 +35761,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col2" at position 0 and "CAST\(Int64\(\-66\) AS Int32\) \+ Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 63 AS col2, CAST ( - 66 AS INTEGER ) + + 16 AS col2 +---- +-50 +-63 query I rowsort label-6727 SELECT ALL + SUM ( 23 ) - 80 AS col2 @@ -35553,8 +35971,11 @@ 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\(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\. +query II valuesort 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 +---- +-39 +NULL query II rowsort SELECT ALL 15 AS col2, - 97 AS col0 @@ -35825,8 +36246,11 @@ SELECT DISTINCT - SUM ( - CAST ( + 18 AS INTEGER ) ) * + 14 AS 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 col2" at position 0 and "count\(\(\- Int64\(62\)\)\) \* Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 76 AS col2, COUNT ( ALL - + 62 ) * + 47 AS col2 +---- +-76 +47 query I rowsort SELECT 12 * ( - - 43 ) @@ -36062,8 +36486,11 @@ SELECT DISTINCT 19 / 68 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24986 # Datafusion - Expected - -162 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* \(\- Int64\(23\)\) \* \(\- \(\- sum\(DISTINCT Int64\(\-14\)\)\)\) \- Int64\(\-42\) \+ Int64\(88\) \* Int64\(20\) AS col2" at position 0 and "CAST\(Int64\(\-87\) AS Int32\) \+ \(\- nullif\(Int64\(75\), Int64\(\-84\) \* nullif\(Int64\(\-23\), Int64\(51\) \+ Int64\(96\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 72 * - + 23 * - - SUM ( DISTINCT - 14 ) - - 42 + 88 * + 20 AS col2, + CAST ( - 87 AS INTEGER ) + - NULLIF ( 75, - 84 * NULLIF ( - 23, + 51 + + 96 ) ) AS col2 +---- +-162 +24986 query I rowsort label-6864 SELECT + - 36 - + 86 / 34 * + - 51 + 52 * COALESCE ( + MAX ( + 24 ), + NULLIF ( + + 88, 84 ) + + + 91 * + 17, 46 + 59 ) @@ -36421,8 +36848,12 @@ SELECT DISTINCT - - COUNT ( DISTINCT + 86 ) # Datafusion - Expected - 12 # Datafusion - Expected - 1034 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "Int64\(88\) \- Int64\(40\) \+ Int64\(33\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + + 12 AS col2, - 55 + + 33 * 33, 88 - + + 40 + + + 33 AS col2 +---- +1034 +12 +81 query I rowsort label-6932 SELECT - NULLIF ( - + 30, 29 * - + ( - COUNT ( * ) ) ) + 97 @@ -36667,8 +37098,11 @@ SELECT - 59 + + 55 - 81, + 47 AS col0, + 46 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "Int64\(91\) \* \(\- Int64\(\-83\)\) \+ Int64\(26\) \+ \(\- CASE \(\- Int64\(\-79\)\) WHEN Int64\(19\) \* Int64\(35\) \- Int64\(91\) \+ Int64\(9\) \* \(\- Int64\(7\)\) \+ \(\- Int64\(\-87\)\) \* \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(17\) THEN NULL WHEN Int64\(23\) THEN Int64\(96\) END\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(56\) THEN Int64\(\-60\) ELSE NULL END\) \* Int64\(\-33\) \* Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +53 +NULL query I rowsort SELECT - 35 + - 14 @@ -36894,8 +37328,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(\-23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 18 - + - ( - + ( + COUNT ( * ) ) ) AS col2, - 23 AS col2 +---- +-23 +17 query I rowsort label-7023 SELECT - 8 / + 28 AS col1 @@ -36935,8 +37372,11 @@ SELECT + ( + - 69 ) * + - 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - -610 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) / Int64\(67\) \+ Int64\(47\) \* CAST\(Int64\(\-13\) AS Int32\) AS col1" at position 0 and "\(\- min\(\(\- Int64\(69\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 / 67 + 47 * CAST ( - 13 AS INTEGER ) AS col1, - MIN ( ALL - + 69 ) AS col1 +---- +-610 +69 query I rowsort SELECT 41 * + 98 @@ -37168,8 +37608,11 @@ SELECT ALL - 47 + 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-85\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(89\) \* Int64\(\-40\) \* Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) + - - 85 AS col1, CAST ( NULL AS INTEGER ) + + + 89 * - 40 * - 70 AS col1 +---- +84 +NULL query I rowsort label-7075 SELECT + + 66 + - ( + 16 ) * + - COUNT ( + 66 ) @@ -37205,8 +37648,11 @@ SELECT ALL - ( - COALESCE ( - 88, + 60 ) ) * + 3 + + 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8458 # Datafusion - Expected - -1065 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \- Int64\(16\) \+ Int64\(27\) \+ Int64\(55\) \+ Int64\(91\) \* Int64\(92\) AS col0" at position 0 and "Int64\(71\) \* Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 20 - + 16 + + 27 + 55 + 91 * + 92 AS col0, 71 * - 15 AS col0 +---- +-1065 +8458 query II rowsort SELECT - 73 AS col1, - 8 @@ -37278,8 +37724,11 @@ SELECT ALL - 43 * + 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12768 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \* Int64\(19\) \* \(\- Int64\(\-16\)\) \+ Int64\(7\) / Int64\(91\) \* Int64\(\-39\) AS col1" at position 0 and "Int64\(46\) \+ \(\- Int64\(65\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 42 * 19 * - - 16 + ( + 7 ) / + 91 * - 39 AS col1, 46 + - + 65 AS col1 +---- +-12768 +-19 query I rowsort label-7096 SELECT DISTINCT + 59 * ( 8 ) + + + COALESCE ( - 55, - ( - + 92 ) + + COUNT ( * ) ) + 91 AS col1 @@ -37765,8 +38214,11 @@ SELECT DISTINCT + 90 - + + NULLIF ( COUNT ( * ), + 48 * NULLIF ( + - CASE 22 WHE # 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 "\(\- Int64\(30\)\) \+ \(\- 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 II valuesort SELECT ( - + 30 ) + - ( + 51 ) col2, + 15 AS col2 +---- +-81 +15 query I rowsort SELECT 22 + - 40 AS col0 @@ -38173,8 +38625,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 173 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \+ Int64\(92\) AS col0" at position 0 and "Int64\(30\) \+ Int64\(\-61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 81 + + + 92 AS col0, 30 + - 61 AS col0 +---- +-31 +173 query I rowsort label-7268 SELECT ALL - COUNT ( * ) * - + MAX ( ALL - 86 ) AS col2 @@ -38230,8 +38685,11 @@ SELECT CASE ( - + 85 ) WHEN + 19 THEN NULL ELSE - COUNT ( * ) END * + 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -14804856 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- Int64\(16\)\) AS col2" at position 0 and "Int64\(88\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CASE Int64\(89\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE Int64\(75\) \+ Int64\(\-95\) \- \(\- Int64\(\-7\)\) END \* Int64\(\-67\) \* min\(Int64\(93\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-14804856 +NULL query I rowsort SELECT ALL 11 - + 40 * + + 72 @@ -38341,8 +38799,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - + COUNT ( * ) + - - 22 AS col0, - COUNT ( * ) AS col0 +---- +-1 +21 query I rowsort SELECT + ( + + ( 91 ) ) col2 @@ -38357,8 +38818,11 @@ SELECT - 58 * 61 - + NULLIF ( - 59, - + 8 ) + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 134 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-49\) AS Int32\)\) AS col2" at position 0 and "Int64\(98\) \+ Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + CAST ( - 49 AS INTEGER ) AS col2, 98 + + 36 AS col2 +---- +134 +49 query I rowsort SELECT DISTINCT - 7 - - 78 @@ -38393,8 +38857,11 @@ SELECT DISTINCT - 80 / - - 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 83 AS col2, + COUNT ( * ) AS col2 +---- +-83 +1 query I rowsort SELECT ALL - 62 * + 87 @@ -38558,8 +39025,11 @@ SELECT + ( 27 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 734 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(46\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(89\) AS col0" at position 0 and "Int64\(84\) \- \(\- CAST\(NULL AS Int32\)\) \+ \(\- \(\- \(\- sum\(CAST\(\(\- Int64\(0\)\) AS Float64\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL + 14 * + 46 + COUNT ( * ) + 89 AS col0, + 84 - - CAST ( NULL AS INTEGER ) + - - ( ( - SUM ( ALL + CAST ( - + 0 AS FLOAT8 ) ) ) ) AS col0 +---- +734 +NULL query I rowsort SELECT ALL - + CASE ( - 25 ) WHEN - 54 THEN 42 WHEN 53 * + 6 THEN NULL ELSE NULL END @@ -38621,8 +39091,11 @@ SELECT - 11 + - 13 - + - 7 * + 22 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- Int64\(64\)\)\) AS col1" at position 0 and "Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MIN ( - + 64 ) AS col1, - 80 AS col1 +---- +-64 +-80 query I rowsort label-7353 SELECT ALL + COUNT ( * ) + + COUNT ( * ) * - COALESCE ( 25, - 22 ) @@ -38769,8 +39242,11 @@ SELECT + 48 + + ( 93 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 40 col0, 95 AS col0 +---- +40 +95 query I rowsort label-7380 SELECT DISTINCT 71 * 18 / + 24 AS col2 @@ -38913,8 +39389,11 @@ SELECT 92 * - 54 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - -603 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col2" at position 0 and "Int64\(\-86\) \+ Int64\(\-11\) \* Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 40 col2, - 86 + - 11 * 47 AS col2 +---- +-40 +-603 query II rowsort SELECT DISTINCT - 46 AS col0, 80 AS col2 @@ -39044,8 +39523,11 @@ SELECT COUNT ( + 94 ) + - 65 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - -7324 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col2" at position 0 and "Int64\(76\) \* Int64\(\-97\) \+ \(\- Int64\(\-48\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 35 AS col2, 76 * - 97 + - ( - 48 ) AS col2 +---- +-35 +-7324 query I rowsort label-7432 SELECT DISTINCT - COUNT ( * ) * + 95 + - 85 + - + ( 36 ) @@ -39208,8 +39690,11 @@ SELECT + + 34 * - COUNT ( * ) + ( + 55 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ \(\- Int64\(35\)\) AS col0" at position 0 and "Int64\(\-77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 56 + - + 35 AS col0, - 77 AS col0 +---- +-77 +21 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -39314,8 +39799,11 @@ SELECT - 69 * - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col0" at position 0 and "CAST\(Int64\(49\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 10 AS col0, + CAST ( + 49 AS INTEGER ) AS col0 +---- +10 +49 query I rowsort label-7483 SELECT COALESCE ( + - 72, + 78, - + COUNT ( * ) ) AS col0 @@ -39445,8 +39933,11 @@ SELECT + ( - 6 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + + 46 ) AS col0, 53 AS col0 +---- +46 +53 query I rowsort SELECT ALL 94 * 8 @@ -39517,8 +40008,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ 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 II valuesort SELECT 23 + 57 AS col0, - 39 AS col0 +---- +-39 +80 query I rowsort label-7521 SELECT - SUM ( ALL 73 ) AS col1 @@ -39925,8 +40419,11 @@ 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\(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\. +query II valuesort SELECT + + 30 + - 58 - - 13 * - 7 * ( - COUNT ( * ) ) * - COUNT ( * ) * + 1 + 4 col0, 31 * - COUNT ( * ) AS col0 +---- +-115 +-31 query I rowsort label-7599 SELECT + 13 * COUNT ( ALL + 63 ) AS col1 @@ -40049,8 +40546,11 @@ SELECT - 98 / 55 AS col1, 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5293 # Datafusion - Expected - 0 -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 "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 67 * 79 AS col0, 0 AS col0 +---- +0 +5293 query I rowsort SELECT ALL + - 95 col0 @@ -40087,8 +40587,12 @@ SELECT - ( + 22 ) AS col0 # Datafusion - Expected - 20 # Datafusion - Expected - 4550 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \+ Int64\(\-41\) \+ Int64\(\-22\) AS col1" at position 0 and "Int64\(\-65\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 83 + - 41 + - 22 AS col1, + COUNT ( * ) * + + 91 * + 50, - 65 AS col1 +---- +-65 +20 +4550 query I rowsort SELECT - 53 * 90 @@ -40325,8 +40829,11 @@ SELECT ALL + 56 * 52 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\)" at position 0 and "CAST\(NULL AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + CAST ( NULL AS INTEGER ) ), + CAST ( NULL AS INTEGER ) +---- +NULL +NULL query I rowsort SELECT ALL + 87 * + 91 + 75 AS col2 @@ -40803,8 +41310,11 @@ SELECT ALL 75 * 93 / + 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1162 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-83\), Int64\(52\)\)\) \* Int64\(\-14\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - + COALESCE ( - 83, 52 ) ) * - 14 AS col0, + 70 AS col0 +---- +-1162 +70 query II rowsort label-7765 SELECT ALL - COUNT ( DISTINCT + - 40 ), + ( + - ( + ( + 20 ) ) ) * + 2 AS col0 @@ -40883,8 +41393,12 @@ SELECT ALL + 23 + - 8 / 80 # Datafusion - Expected - -1 # Datafusion - Expected - 67 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 1 * + COUNT ( * ) AS col2, 67 AS col0, + 88 AS col2 +---- +-1 +67 +88 query I rowsort SELECT ALL + 33 - + 2 col2 @@ -41347,8 +41861,11 @@ 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\(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\. +query II valuesort SELECT + MIN ( DISTINCT 43 ) / - COALESCE ( - COUNT ( * ), - + 24 ) col2, 96 + 49 AS col2 +---- +145 +43 query I rowsort label-7868 SELECT DISTINCT + 77 * + CASE 30 WHEN - 46 THEN NULL ELSE NULLIF ( - 95, 42 ) END + - 11 / + CAST ( - AVG ( CAST ( 18 AS INTEGER ) ) AS INTEGER ) * - + MIN ( - 34 ) + 45 * - 75 + 82 + - 77 + + 37 * - 87 AS col2 @@ -41512,8 +42029,11 @@ SELECT ALL + ( - + 33 ) - - - 99 + - + 14 + - + 32 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 299 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* Int64\(23\) AS col0" at position 0 and "min\(Int64\(89\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 * + 23 col0, + MIN ( + 89 ) AS col0 +---- +299 +89 query II rowsort SELECT 91, - 20 AS col2 @@ -41524,8 +42044,11 @@ SELECT 91, - 20 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(12\)\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 12 AS col2, + 78 AS col2 +---- +-12 +78 query II rowsort SELECT ALL - - NULLIF ( + 46, + - 54 + 52 ) AS col1, - 81 @@ -41896,8 +42419,11 @@ SELECT - COUNT ( * ) * + + 3 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "CAST\(Int64\(4\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 42 col0, CAST ( 4 AS INTEGER ) AS col0 +---- +4 +42 query I rowsort label-7973 SELECT DISTINCT + 31 / + 87 * + + 5 AS col1 @@ -42793,8 +43319,11 @@ SELECT 16 * + + 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col2" at position 0 and "Int64\(90\) \* \(\- \(\- CASE Int64\(22\) WHEN CAST\(NULL AS Int32\) \* Int64\(60\) THEN Int64\(\-52\) WHEN Int64\(94\) \* Int64\(\-13\) THEN NULL END\)\) \- Int64\(61\) \* Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 AS col2, 90 * - - CASE 22 WHEN CAST ( NULL AS INTEGER ) * 60 THEN - 52 WHEN + 94 * - 13 THEN NULL END - 61 * + 19 AS col2 +---- +91 +NULL query I rowsort label-8148 SELECT CASE - 7 WHEN + COUNT ( 2 ) THEN - 67 ELSE NULL END * + 31 AS col0 @@ -43230,8 +43759,11 @@ SELECT + 44 - + - ( + MAX ( - 79 ) ) * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) AS col1" at position 0 and "Int64\(\-8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 26 col1, ( - 8 ) AS col1 +---- +-26 +-8 query I rowsort label-8234 SELECT MAX ( + + 71 ) AS col2 @@ -43267,8 +43799,11 @@ SELECT + 77 + 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 4536 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col2" at position 0 and "Int64\(54\) \* Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 AS col2, 54 * + 84 AS col2 +---- +4536 +69 query I rowsort label-8241 SELECT DISTINCT COUNT ( * ) + - 35 @@ -43494,8 +44029,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 107 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \- \(\- Int64\(53\)\) AS col0" at position 0 and "\(\- sum\(Int64\(\-86\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 - - + 53 AS col0, - SUM ( + - 86 ) AS col0 +---- +107 +86 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -43560,8 +44098,12 @@ SELECT ALL 50 * 52, CAST ( - 18 AS INTEGER ) * 72 AS col2 # Datafusion - Expected - 5551 # Datafusion - Expected - -2739 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* Int64\(\-83\) AS col0" at position 1 and "Int64\(56\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - CAST ( - + 61 AS INTEGER ) * + 91, 33 * - 83 AS col0, + 56 AS col0 +---- +-2739 +5551 +56 query I rowsort SELECT ALL - 18 + - + 49 @@ -44135,8 +44677,11 @@ SELECT + 8 + + 99 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 2250 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(92\)\) AS col1" at position 0 and "Int64\(\-30\) \* Int64\(\-75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 92 AS col1, - 30 * - 75 AS col1 +---- +-92 +2250 query I rowsort label-8408 SELECT COUNT ( DISTINCT - - ( 5 ) ) * 99 + + 72 + - 29 * COALESCE ( - 30, + 96 ) * - 86 + 4 - COUNT ( * ) * 42 @@ -44311,8 +44856,11 @@ SELECT DISTINCT - 95 + ( - 88 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) / CAST\(Int64\(\-35\) AS Int32\) AS col2" at position 0 and "Int64\(21\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 73 / + CAST ( - 35 AS INTEGER ) AS col2, 21 / + + COUNT ( * ) AS col2 +---- +-2 +21 query I rowsort SELECT 80 * - 56 * - ( 4 ) @@ -44347,8 +44895,11 @@ SELECT DISTINCT - 8 + - 48 * 19 + + 16 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 90 + + + COUNT ( * ) col0, COUNT ( * ) AS col0 +---- +-89 +1 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -44381,8 +44932,11 @@ SELECT - - 56 + 91 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(32\)\)\) \+ \(\- \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-27\) \* count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "nullif\(CAST\(NULL AS Int32\), Int64\(34\) \- \(\- Int64\(77\)\)\) / Int64\(\-43\) \* Int64\(22\) \+ Int64\(\-25\) \* Int64\(\-45\) \+ Int64\(\-64\) \* min\(Int64\(65\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +NULL +NULL query I rowsort SELECT - 5 + - 29 + + NULLIF ( + 25, - - 13 ) * + - 49 AS col0 @@ -44579,8 +45133,11 @@ SELECT - - 2 * - 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - -136160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col2" at position 0 and "Int64\(\-20\) \* Int64\(74\) \* Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 42 col2, - 20 * 74 * 92 AS col2 +---- +-136160 +-42 query II rowsort SELECT 89 AS col0, + 77 + + 86 * - + 56 @@ -44591,8 +45148,11 @@ SELECT 89 AS col0, + 77 + + 86 * - + 56 # 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 col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 col0, 0 AS col0 +---- +0 +14 query I rowsort label-8494 SELECT - - 58 - + - COUNT ( * ) AS col2 @@ -44613,14 +45173,20 @@ SELECT - 78 * 14 + + + 82 + - + 15 * 36 + - - ( - 32 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(94\)\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 94 AS col2, 50 AS col2 +---- +-94 +50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 0 and "Int64\(33\) / sum\(Int64\(87\)\) \* Int64\(12\) \+ Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 col2, 33 / + SUM ( 87 ) * 12 + + + 15 AS col2 +---- +15 +26 query I rowsort label-8499 SELECT NULLIF ( + + 31, - CASE + 64 WHEN 61 / - NULLIF ( + 82, 6 * 46 + - 11 ) / + 72 + + 45 * + - COUNT ( * ) + ( AVG ( 99 ) ) THEN 96 * 77 END + 0 ) AS col1 @@ -44817,8 +45383,11 @@ SELECT ALL + 3 - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col1" at position 0 and "\(\- CAST\(NULL AS Float64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + 55 AS col1, - CAST ( NULL AS FLOAT8 ) AS col1 +---- +55 +NULL query I rowsort label-8536 SELECT + CASE + 45 WHEN + + CASE + ( + + CAST ( NULL AS FLOAT8 ) ) WHEN + 61 * + + CAST ( NULL AS INTEGER ) / - 44 THEN + ( - 3 ) + + MAX ( DISTINCT + + 7 ) END THEN + - 11 + - 16 WHEN - SUM ( - 6 ) * 82 + 33 * - 44 THEN + 44 * 54 + ( + 31 + 38 ) END / 51 + ( 51 ) AS col0 @@ -45327,8 +45896,11 @@ SELECT - + MAX ( + 72 ) AS col2 # 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\(38\) / Int64\(\-91\) \* \(\- max\(Int64\(45\)\)\) \* Int64\(28\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 38 / + - 91 * - MAX ( 45 ) * + 28 AS col2, 90 AS col2 +---- +0 +90 query I rowsort label-8631 SELECT DISTINCT 20 / + 89 * - 90 AS col1 @@ -45531,8 +46103,11 @@ SELECT ALL ( - - 84 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 132640 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col1" at position 0 and "Int64\(\-77\) \+ Int64\(\-41\) \* Int64\(39\) \* Int64\(\-83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 19 col1, - 77 + - 41 * + 39 * + - 83 AS col1 +---- +-19 +132640 query I rowsort label-8669 SELECT COUNT ( * ) + 87 + ( - 10 ) * - 38 * + + NULLIF ( + - 54, - 14 ) + + COUNT ( * ) * - 47 - 44 @@ -46342,8 +46917,11 @@ SELECT ( - - 7 ) * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 155 # Datafusion - Expected - 151 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(17\)\)\) \+ Int64\(86\) \- \(\- sum\(Int64\(\-2\)\)\) \* \(\- Int64\(43\)\) AS col0" at position 0 and "count\(Int64\(73\)\) \+ Int64\(74\) \+ Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MIN ( + + 17 ) + + 86 - + - SUM ( ALL - 2 ) * - + 43 AS col0, COUNT ( + ( 73 ) ) + 74 + 76 AS col0 +---- +151 +155 query I rowsort SELECT DISTINCT 3 * - 44 col2 @@ -46584,8 +47162,11 @@ SELECT ALL - - 52 * - 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4819 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) / Int64\(51\) \* Int64\(79\) \* \(\- Int64\(\-61\)\) AS col0" at position 0 and "\(\- coalesce\(\(\- Int64\(\-25\)\), sum\(Int64\(11\)\) \+ Int64\(45\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 94 / 51 * 79 * - - 61 col0, - COALESCE ( - - 25, SUM ( + 11 ) + + + 45 ) AS col0 +---- +-25 +-4819 query I rowsort label-8868 SELECT CAST ( - 34 AS INTEGER ) @@ -47011,8 +47592,11 @@ SELECT ALL + NULLIF ( MAX ( - + 53 ), - ( - 8 ) + + 38 + - 59 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 1380 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "Int64\(\-15\) \* Int64\(\-92\) \+ \(\- Int64\(0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 AS col0, - 15 * + - 92 + - - 0 col0 +---- +1380 +78 query II rowsort SELECT ALL 25, 89 AS col0 @@ -47153,8 +47737,11 @@ SELECT - 1 * 42 + - + 44 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - -3354 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-18\)\) \* max\(Int64\(\-20\)\) \* Int64\(1\) / Int64\(90\) \+ Int64\(24\) AS col1" at position 0 and "Int64\(86\) \* Int64\(\-39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( - 18 ) * + MAX ( ALL - 20 ) * 1 / 90 + + 24 AS col1, 86 * - 39 AS col1 +---- +-3354 +24 query I rowsort label-8976 SELECT - - 12 + - - COALESCE ( + 64, + 36 + + CAST ( - AVG ( DISTINCT + 36 ) AS INTEGER ) * 44 ) @@ -47328,8 +47915,11 @@ SELECT SUM ( ALL + - 68 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3047 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) \* Int64\(67\) \+ Int64\(35\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 46 * 67 + 35 AS col0, 50 AS col0 +---- +-3047 +50 query II rowsort label-9009 SELECT ALL + 18 * + - 7 + + + COUNT ( * ) * - + CAST ( NULL AS INTEGER ), ( - COALESCE ( 11, + NULLIF ( 55, - - 4 + + + 20 + + 86 ) ) ) col1 @@ -47340,8 +47930,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 87 AS col1, + COUNT ( * ) * + - 31 AS col1 +---- +-31 +87 query I rowsort label-9011 SELECT - 71 * COUNT ( * ) AS col0 @@ -47632,8 +48225,11 @@ SELECT ALL + 45 + - 42 * + CAST ( + NULLIF ( - 23, 16 + - - 23 * - 50 ) AS INTEG # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 5 AS col1, + 72 AS col1 +---- +5 +72 query II rowsort SELECT DISTINCT + + 54 AS col0, + ( + 81 ) @@ -47720,8 +48316,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 3963 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col1" at position 0 and "Int64\(41\) \+ CAST\(max\(Int64\(81\)\) AS Int32\) \* Int64\(42\) \+ Int64\(8\) \* \(\- Int64\(\-65\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 33 AS col1, 41 + CAST ( + MAX ( 81 ) AS INTEGER ) * 42 + + 8 * - - 65 AS col1 +---- +-33 +3963 query I rowsort label-9083 SELECT - CASE + + 27 WHEN - - 24 * + + 16 THEN - + 97 + 97 END + MAX ( DISTINCT 33 ) + - + 14 AS col1 @@ -47942,8 +48541,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 296 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "sum\(Int64\(\-9\)\) \* \(\- Int64\(39\)\) \- Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 AS col2, SUM ( ALL - 9 ) * ( - + 39 ) - + 55 AS col2 +---- +296 +46 query I rowsort label-9126 SELECT + 52 * - NULLIF ( 67, COUNT ( * ) ) + + 49 @@ -48613,8 +49215,11 @@ SELECT DISTINCT - 24 + + COUNT ( DISTINCT 8 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \+ Int64\(20\) \+ min\(Int64\(97\)\) / Int64\(\-25\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( 35 ) + 20 + + MIN ( + 97 ) / + - 25 * COUNT ( * ) AS col2, ( 54 ) AS col2 +---- +52 +54 query I rowsort label-9254 SELECT DISTINCT + 35 / - NULLIF ( COUNT ( * ), 71 ) @@ -48656,8 +49261,12 @@ SELECT - 53 * - CAST ( - 44 AS INTEGER ) + CAST ( + 47 AS INTEGER ) + + 63 + 1 + # Datafusion - Expected - -1584 # Datafusion - Expected - 67 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col1" at position 1 and "Int64\(29\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT COALESCE ( + 24, 15 / - COUNT ( * ) / 96 / + 93 + + 62 + - ( + + 91 ) + 76 * + - 77 * - 66 * - - 11 - ( ( + 54 ) ) ) * - 66, + 67 AS col1, + 29 col1 +---- +-1584 +29 +67 query I rowsort label-9262 SELECT 68 + + 74 - + COUNT ( * ) / - 45 AS col2 @@ -48677,8 +49286,11 @@ SELECT 75 * 44 - - - 40 + + 58 - - 65 + - 11 / - 12 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(7\) \+ Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 71 * + COUNT ( * ) AS col2, + 7 + - 71 AS col2 +---- +-64 +-71 query I rowsort label-9266 SELECT DISTINCT - + MAX ( ALL - 33 ) + + - 82 @@ -48782,8 +49394,11 @@ SELECT ALL SUM ( - 33 ) 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\(55\) AS col2" at position 0 and "Int64\(24\) / Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 55 col2, 24 / 60 AS col2 +---- +0 +55 query I rowsort SELECT 24 + - 75 @@ -48843,8 +49458,11 @@ SELECT ALL - 19 * + 56 * + - ( 44 ) * - + MAX ( + + 22 ) + + 36 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64206 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(\(\- Int64\(20\)\), Int64\(42\)\)\)\) \* Int64\(77\) \* Int64\(42\) \+ \(\- Int64\(\-66\)\) \+ Int64\(68\) \* Int64\(6\) AS col1" at position 0 and "Int64\(64\) \+ Int64\(\-95\) \- Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - NULLIF ( - + 20, 42 ) * + 77 * + + 42 + - - 66 + + 68 * 6 AS col1, + 64 + + - 95 - + - 18 AS col1 +---- +-13 +-64206 query I rowsort label-9296 SELECT ALL 66 * MIN ( + - 66 ) + 96 + 73 AS col0 @@ -48920,8 +49538,11 @@ SELECT + - NULLIF ( + - 47, - 42 * + 3 + + NULLIF ( + 44, + - 26 ) ) * - 3 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 39208 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(\-40\)\), count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-4\) \* \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(73\)\) \- Int64\(2\)\)\) \+ Int64\(\-22\) \* CAST\(Int64\(\-81\) AS Int32\) \* \(\- nullif\(Int64\(\-22\), \(\- count\(Int64\(76\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + NULLIF ( - - 40, + COUNT ( * ) ) AS col1, - 4 * - + NULLIF ( + + COUNT ( * ), - + 73 - + ( + 2 ) ) + - 22 * CAST ( - 81 AS INTEGER ) * - + NULLIF ( - 22, - COUNT ( + 76 ) ) AS col1 +---- +39208 +40 query I rowsort label-9310 SELECT DISTINCT + - NULLIF ( + 73, - - 28 ) + 83 + + COUNT ( * ) @@ -49262,8 +49883,11 @@ SELECT ALL - ( - 55 ) * + + 88 * + + 86 AS col0 # 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 "Int64\(78\) AS col1" at position 0 and "Int64\(18\) \+ Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 78 AS col1, 18 + - 30 AS col1 +---- +-12 +78 query I rowsort SELECT - 19 + + 1 AS col1 @@ -49273,8 +49897,11 @@ SELECT - 19 + + 1 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 81 AS col0, 83 AS col0 +---- +-81 +83 query I rowsort SELECT - 63 * 86 AS col1 @@ -49329,8 +49956,11 @@ SELECT 21 + 52 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 37 AS col0, + 45 AS col0 +---- +37 +45 query I rowsort label-9390 SELECT DISTINCT - COUNT ( * ) * - 6 * + ( - - 68 ) @@ -49542,8 +50172,11 @@ SELECT + COUNT ( * ) + - 58 + + - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2448 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) \* Int64\(\-48\) AS col2" at position 0 and "Int64\(20\) / Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 51 * - 48 AS col2, 20 / 52 col2 +---- +0 +2448 query I rowsort SELECT - 21 + - 18 * - ( - ( - 76 ) ) @@ -49734,8 +50367,11 @@ SELECT COALESCE ( + MAX ( + 59 ), + + ( + - 13 ) / COUNT ( * ), CASE + COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(19\) / Int64\(23\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) / 19 / + 23 AS col1, COUNT ( * ) col1 +---- +0 +1 query II rowsort SELECT ALL + 13 AS col2, 8 + + 23 @@ -49872,8 +50508,11 @@ SELECT + 6 - + - 87 + 10 * + 79 * - - 86 + + - 10 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\(1\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 AS col1, 67 AS col1 +---- +1 +67 query I rowsort SELECT 20 * - 62 @@ -49979,8 +50618,11 @@ SELECT - 13 + + - 82 / - - 74 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -165 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \+ Int64\(\-77\) AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 88 + + - 77 AS col1, 86 AS col1 +---- +-165 +86 query I rowsort label-9511 SELECT MAX ( + + 24 ) + + + 3 + 88 - + - 27 / + 17 @@ -50074,8 +50716,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -660 # Datafusion - Expected - 6660 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* Int64\(33\) \* Int64\(\-2\) AS col1" at position 0 and "Int64\(90\) \* \(\- Int64\(\-74\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 10 * 33 * + - 2 AS col1, 90 * - ( - 74 ) AS col1 +---- +-660 +6660 query II rowsort label-9529 SELECT ALL - 19 AS col0, 60 * + - CAST ( + 22 AS INTEGER ) + 25 * + 68 @@ -50250,8 +50895,11 @@ SELECT ALL 72 * + 54 + - 46 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 28 col2, + 54 AS col2 +---- +28 +54 query I rowsort label-9563 SELECT - - MAX ( ALL - 39 ) / - 2 AS col0 @@ -50415,8 +51063,11 @@ SELECT + 16 * + 70 * + 38 * - 43 - + - 11 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6734 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \* Int64\(\-91\) AS col2" at position 0 and "Int64\(37\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-14\) \+ \(\- \(\- Int64\(41\)\)\) \* CAST\(NULL AS Int32\) \* \(\- min\(Int64\(\-85\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 74 * + - 91 AS col2, 37 * - COUNT ( * ) + - 14 + + - ( - + 41 ) * CAST ( NULL AS INTEGER ) * - MIN ( - 85 ) AS col2 +---- +6734 +NULL query II rowsort SELECT - ( + 11 ), 10 AS col2 @@ -51731,8 +52382,11 @@ SELECT DISTINCT - 76 AS col0, 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(62\)\) \+ Int64\(23\) AS col0" at position 0 and "Int64\(56\) \* \(\- Int64\(\-95\)\) \* CASE Int64\(69\) WHEN Int64\(3\) \+ Int64\(93\) / Int64\(37\) THEN Int64\(\-32\) \* Int64\(66\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( + 62 ) + + 23 AS col0, 56 * - - 95 * + CASE 69 WHEN + 3 + 93 / + 37 THEN - 32 * 66 END AS col0 +---- +85 +NULL query I rowsort label-9850 SELECT DISTINCT 43 + MIN ( + + 68 ) * + + 76 col2 @@ -51964,8 +52618,11 @@ SELECT - 75 - + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 126 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(6\)\) \* Int64\(21\) AS col2" at position 0 and "Int64\(\-43\) \* CASE Int64\(\-4\) WHEN Int64\(\-21\) THEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(31\) WHEN Int64\(87\) \+ coalesce\(Int64\(21\), CAST\(Int64\(8\) AS Int32\) / Int64\(64\)\) \* Int64\(9\) THEN NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +126 +NULL query I rowsort SELECT 73 - 45 @@ -52382,8 +53039,11 @@ SELECT ALL 53 + - - 11 * + + 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- CAST\(Int64\(56\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, - CAST ( + 56 AS INTEGER ) AS col0 +---- +-1 +-56 query I rowsort label-9974 SELECT - - CASE + COUNT ( * ) WHEN 84 * + + 83 THEN NULL ELSE + + 45 * + 98 + + - ( - - 74 ) * - COUNT ( * ) END diff --git a/data/sqlite/random/expr/slt_good_61.slt b/data/sqlite/random/expr/slt_good_61.slt index b01cc05..6f7934e 100644 --- a/data/sqlite/random/expr/slt_good_61.slt +++ b/data/sqlite/random/expr/slt_good_61.slt @@ -206,8 +206,11 @@ SELECT + + 29 + - MIN ( - ( + 16 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2897 # Datafusion - Expected - -7527990 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) \* Int64\(61\) \+ Int64\(92\) AS col0" at position 0 and "Int64\(99\) \* Int64\(\-32\) \* Int64\(27\) \* Int64\(88\) \+ Int64\(\-83\) \- Int64\(74\) \+ \(\- Int64\(7\)\) \* Int64\(95\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 49 * 61 + 92 AS col0, + 99 * - 32 * + 27 * + 88 + - 83 - 74 + - + 7 * + 95 * ( COUNT ( * ) ) AS col0 +---- +-2897 +-7527990 query II rowsort SELECT 37 AS col0, - 75 AS col1 @@ -233,8 +236,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col0" at position 0 and "Int64\(\-87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 24 AS col0, - 87 AS col0 +---- +-87 +24 query I rowsort SELECT DISTINCT ( - + 24 ) * - + 15 @@ -256,8 +262,12 @@ SELECT + 32 * - 96 col1, 91 * + 76 # Datafusion - Expected - -87 # Datafusion - Expected - 79 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col0" at position 0 and "Int64\(\-71\) \- \(\- \(\- CAST\(Int64\(20\) AS Int32\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 87 AS col0, 79, - 71 - - - CAST ( + 20 AS INTEGER ) AS col0 +---- +-87 +-91 +79 query I rowsort label-41 SELECT - 97 - + 66 * - CAST ( - + 29 AS INTEGER ) - 32 * - 99 * - - MIN ( - 25 ) AS col2 @@ -274,8 +284,12 @@ SELECT - 41 AS col0, - 98 AS col1 # Datafusion - Expected - -5317 # Datafusion - Expected - 36 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- CAST\(Int64\(54\) AS Int32\)\) AS Int32\)\) \* \(\- Int64\(98\)\) \+ max\(Int64\(\-25\)\) AS col1" at position 0 and "min\(Int64\(41\)\) \- Int64\(41\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - CAST ( - + CAST ( + 54 AS INTEGER ) AS INTEGER ) * - + 98 + MAX ( ALL - 25 ) AS col1, 36, MIN ( ALL + ( 41 ) ) - 41 AS col1 +---- +-5317 +0 +36 query I rowsort label-44 SELECT ALL + 60 / 39 @@ -396,8 +410,12 @@ 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\(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\. +query III valuesort SELECT ALL + + COUNT ( * ), 10 AS col2, + 82 + + 16 / + SUM ( DISTINCT + 38 ) * - + COUNT ( * ) - - COUNT ( * ) * - - 77 * ( - - 66 ) AS col2 +---- +1 +10 +5164 query I rowsort label-66 SELECT + 78 * NULLIF ( + 62, + - CAST ( NULL AS INTEGER ) ) col1 @@ -468,8 +486,12 @@ 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\(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\. +query III valuesort 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 +---- +-1 +1 +135 query I rowsort label-80 SELECT DISTINCT 48 + + 16 / 52 AS col2 @@ -637,8 +659,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 115 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col2" at position 0 and "Int64\(38\) \- sum\(\(\- Int64\(77\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 14 AS col2, 38 - SUM ( ALL - + 77 ) AS col2 +---- +-14 +115 query I rowsort label-112 SELECT 87 - - 86 / - CAST ( NULL AS INTEGER ) * - - ( COALESCE ( - 28, CAST ( NULL AS INTEGER ) + + 16 * - 18, + CAST ( NULL AS INTEGER ), MIN ( 35 ) ) ) @@ -1156,15 +1181,22 @@ SELECT + 46, + 15 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) AS col2" at position 0 and "Int64\(\-81\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 52 AS col2, - 81 + COUNT ( * ) AS col2 +---- +-52 +-80 # 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 and "coalesce\(Int64\(35\), CAST\(NULL AS Float64\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ avg\(Int64\(66\)\), Int64\(\-28\) \* Int64\(30\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* CAST\(NULL AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort SELECT 72, - COUNT ( * ) AS col1, + COALESCE ( 35, + CAST ( NULL AS FLOAT8 ) * - COUNT ( * ) + AVG ( 66 ), - 28 * 30 + - + COUNT ( * ) ) * + + CAST ( NULL AS INTEGER ) AS col1 +---- +-1 +72 +NULL query I rowsort SELECT DISTINCT 78 * - 97 col0 @@ -1487,8 +1519,11 @@ SELECT NULLIF ( + 0, - - 95 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* \(\- Int64\(\-31\)\) \+ Int64\(86\) \* CAST\(CAST\(NULL AS Int32\) AS Int32\) \* Int64\(\-32\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "count\(\(\- Int64\(\-14\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 65 ) * - - 31 + 86 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - 32 + - - COUNT ( * ) AS col0, + COUNT ( - - 14 ) AS col0 +---- +1 +NULL query II rowsort SELECT ALL + 16 AS col2, + 93 * - 36 @@ -1509,8 +1544,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 89 col1, ( + 29 ) col1 +---- +29 +89 query I rowsort label-279 SELECT ALL + MAX ( 66 ) @@ -1978,8 +2016,11 @@ SELECT ALL - MIN ( COALESCE ( + 14, - 29 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 6237 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col1" at position 0 and "Int64\(63\) \* Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 69 AS col1, 63 * 99 AS col1 +---- +6237 +69 query I rowsort label-369 SELECT COUNT ( * ) * + 0 + - 96 * + - 79 - - - COUNT ( * ) + - 52 AS col2 @@ -2017,8 +2058,11 @@ SELECT + 59 + + 57 * 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 7 AS col0, + 68 col0 +---- +68 +7 query I rowsort label-376 SELECT 90 * + 93 * + COUNT ( ALL - 38 ) @@ -2501,8 +2545,11 @@ SELECT + 71 / - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 1008 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col1" at position 0 and "Int64\(36\) \* Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 14 AS col1, 36 * 28 col1 +---- +1008 +14 query II rowsort label-468 SELECT - 18 AS col2, - COUNT ( * ) * - 47 @@ -3193,8 +3240,11 @@ SELECT - MAX ( ALL - 32 ) - - COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - -1116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-45\)\) AS col1" at position 0 and "Int64\(36\) \* Int64\(\-31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - 45 ) AS col1, 36 * - 31 AS col1 +---- +-1116 +45 query I rowsort label-599 SELECT COUNT ( * ) * - - ( - + 43 ) AS col2 @@ -3256,8 +3306,11 @@ 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\(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\. +query II valuesort 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 +---- +47 +75265 query II rowsort SELECT 28 AS col1, + 56 col2 @@ -3611,8 +3664,11 @@ SELECT ALL 0 / - - 95 * + SUM ( + 13 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "CAST\(Int64\(8\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 26 AS col1, CAST ( + 8 AS INTEGER ) AS col1 +---- +26 +8 query I rowsort label-680 SELECT + 77 / + - 87 AS col2 @@ -3737,8 +3793,11 @@ SELECT ALL 67 + - 5 * - 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 170 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(91\) AS col2" at position 0 and "Int64\(37\) \+ Int64\(\-42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 + + 91 AS col2, 37 + + - 42 col2 +---- +-5 +170 query II rowsort SELECT - 82 col0, + 18 - 70 AS col1 @@ -3994,8 +4053,11 @@ SELECT 15 * + + 16 + - 53 - + - 13 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2638 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(69\)\), \(\- Int64\(\-42\)\)\) \- Int64\(49\) \* Int64\(\-56\) \+ Int64\(\-38\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(Int64\(87\) AS Int32\) \+ \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(81\) / Int64\(\-86\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL NULLIF ( - + 69, - ( - 42 ) ) - 49 * + - 56 + + - 38 + + COUNT ( * ) col0, + CAST ( + 87 AS INTEGER ) + - NULLIF ( + COUNT ( * ), + 81 / - 86 ) AS col0 +---- +2638 +86 query I rowsort label-753 SELECT ALL + + COUNT ( * ) * - ( + + 8 ) @@ -4199,8 +4261,11 @@ SELECT MAX ( ALL - 63 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(33\)\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( DISTINCT + + 33 ) AS col0, 41 AS col0 +---- +33 +41 query I rowsort label-791 SELECT + CAST ( NULL AS INTEGER ) / - + COUNT ( - COALESCE ( 32, 77 + 86 - - + 5 ) ) AS col0 @@ -4520,8 +4585,11 @@ SELECT 68 * + - COUNT ( * ) * 56 * 22 * - 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 AS col0, 65 col0 +---- +36 +65 query I rowsort SELECT DISTINCT - 16 + 99 + - 39 - - 35 * - 49 @@ -4849,8 +4917,12 @@ SELECT ALL NULLIF ( - 66, - 16 / - ( - CASE - - 17 WHEN + + COUNT ( * ) THEN + + # Datafusion - Expected - 79 # Datafusion - Expected - 32 # Datafusion - Expected - 5456 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 1 and "Int64\(\-88\) \* Int64\(\-62\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - 52 + + 27 AS col0, + 32 AS col1, - 88 * - 62 AS col1 +---- +32 +5456 +79 query II rowsort SELECT ALL ( + 39 ) col1, - 84 + 30 @@ -5135,8 +5207,11 @@ SELECT 16 + - 31 + COUNT ( * ) * + 68 / 72 * - - 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-23\)\) AS col0" at position 0 and "Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + - 23 ) AS col0, - 26 AS col0 +---- +-26 +23 query II rowsort SELECT 93 + - - 4 AS col2, 12 @@ -5553,8 +5628,11 @@ SELECT - 37 * - 14 * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, 18 AS col2 +---- +1 +18 query II rowsort label-1051 SELECT CAST ( - - NULLIF ( + ( + COUNT ( * ) ), - CAST ( NULL AS INTEGER ) * - 90 * + - 40 ) AS INTEGER ) AS col0, 8 / - - 73 * - NULLIF ( - CASE 13 WHEN CASE + COUNT ( * ) WHEN - COUNT ( * ) THEN 75 WHEN - - 11 + + - 96 - - + 9 THEN NULL WHEN + ( COALESCE ( - 50, + 29 ) ) THEN - 46 END * - 22 + 22 THEN + 44 * - 16 * - ( + - 74 ) WHEN + - 27 * + - 7 THEN NULL END, - NULLIF ( + 79, + MIN ( - - 29 ) + - 95 + 39 * + ( - 13 ) * - ( + COUNT ( * ) ) - 59 ) ) + - ( 68 ) @@ -5924,8 +6002,11 @@ SELECT DISTINCT + 77 * COUNT ( * ) + + 9 AS col2 # 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\(52\) AS col0" at position 0 and "sum\(Int64\(24\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 52 col0, SUM ( ALL 24 ) AS col0 +---- +24 +52 query I rowsort label-1121 SELECT + COUNT ( * ) * - - ( + - MAX ( - 49 ) ) - + MIN ( + 8 ) / - - 93 @@ -6325,8 +6406,11 @@ SELECT - - COUNT ( * ) * + - 39 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 639 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- Int64\(81\)\) \* CAST\(\(\- Int64\(1\)\) AS Int32\) \+ \(\- Int64\(51\)\) \* Int64\(18\)\)\), Int64\(\-24\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(22\) \* Int64\(\-29\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COALESCE ( - NULLIF ( + COUNT ( * ), - + 81 * + CAST ( - + 1 AS INTEGER ) + - + 51 * + 18 ), - 24, - COUNT ( * ) ) * + COUNT ( * ) - 22 * - 29 AS col1, ( 74 ) AS col1 +---- +639 +74 query I rowsort SELECT - 48 * + 94 - + 74 AS col2 @@ -6346,8 +6430,11 @@ SELECT - + 12 * + 46 * MIN ( + 11 ) - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 10 col1, + 79 AS col1 +---- +10 +79 query I rowsort label-1201 SELECT ALL + COUNT ( * ) / ( + 27 ) + 3 * - 92 + - COUNT ( * ) AS col1 @@ -6396,8 +6483,11 @@ SELECT - 59 + - + CAST ( - 98 AS INTEGER ) + COUNT ( * ) col1 # 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 "Int64\(85\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 AS col0, + 8 AS col0 +---- +8 +85 query II rowsort label-1210 SELECT ALL + 36 + - - 11 + - 65 + - 88 * + 60 * + 27 AS col0, MIN ( - + CASE + 48 WHEN 54 THEN - 95 + + + CAST ( NULL AS INTEGER ) / - ( - + 7 ) ELSE NULL END ) @@ -6628,8 +6718,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) / Int64\(\-51\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 96 / - 51 col1, COUNT ( * ) AS col1 +---- +-1 +1 query I rowsort SELECT DISTINCT - 37 + + - 54 @@ -6713,8 +6806,11 @@ SELECT - 68 * + 12 * + - SUM ( ALL 79 ) AS col2 # 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 "max\(DISTINCT Int64\(39\)\) AS col1" at position 0 and "Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( DISTINCT 39 ) col1, + 70 AS col1 +---- +39 +70 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -6828,8 +6924,11 @@ SELECT ALL ( - - 21 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 42 AS col0, COUNT ( * ) AS col0 +---- +1 +42 query II rowsort label-1291 SELECT - + 19 + MIN ( DISTINCT + 15 ), - 36 AS col2 @@ -6875,8 +6974,11 @@ SELECT DISTINCT - - 16 - - ( + + 56 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 10 AS col2, 4 AS col2 +---- +-10 +4 query I rowsort SELECT + - 43 + - CASE - 19 WHEN - 55 THEN + 14 END + + + 71 + + + COALESCE ( + - ( 72 ), + - 59 ) + - + 23 * + 92 AS col2 @@ -7107,8 +7209,11 @@ SELECT 57 - - - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -387 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT Int64\(9\)\)\) \* Int64\(43\) AS col2" at position 0 and "Int64\(1\) \* Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MIN ( DISTINCT + 9 ) * 43 AS col2, 1 * 69 AS col2 +---- +-387 +69 query I rowsort label-1343 SELECT ALL - COALESCE ( - + 60, COUNT ( DISTINCT - - 22 ) ) col1 @@ -7650,8 +7755,11 @@ SELECT ALL 8 + - 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, - 19 AS col2 +---- +-19 +1 query I rowsort label-1450 SELECT - COUNT ( * ) * - - NULLIF ( - 2, + 19 / - 23 ) AS col1 @@ -8558,8 +8666,12 @@ SELECT 46 AS col0, + 4 AS col2 # Datafusion - Expected - -5 # Datafusion - Expected - 57 # Datafusion - Expected - 142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \+ Int64\(\-33\) AS col0" at position 0 and "coalesce\(Int64\(65\), Int64\(\-77\) \* Int64\(20\), Int64\(\-88\) \+ Int64\(73\)\) \+ Int64\(77\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + ( 28 ) + - 33 AS col0, 57 AS col2, + COALESCE ( + 65, + - 77 * + 20, - 88 + 73 ) + + 77 AS col0 +---- +-5 +142 +57 query I rowsort label-1625 SELECT DISTINCT + COUNT ( * ) * 41 + + + 54 - - 81 + ( + + COUNT ( * ) ) AS col2 @@ -9148,8 +9260,11 @@ SELECT 54 * - 57 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 + + COUNT ( * ) AS col1, - 27 AS col1 +---- +-27 +89 query I rowsort label-1738 SELECT - COUNT ( * ) - - COUNT ( DISTINCT - 79 ) * + + 32 + - MIN ( ALL - 73 ) col1 @@ -9290,8 +9405,11 @@ SELECT ALL + COUNT ( * ) * - COALESCE ( + 79, + - 14, - + 79 * + - ( + 87 ) + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -30524 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) / Int64\(\-70\) \+ \(\- \(\- \(\- Int64\(\-1\)\)\)\) AS col1" at position 0 and "Int64\(\-92\) \+ Int64\(\-62\) \* Int64\(21\) \* CASE Int64\(\-32\) WHEN Int64\(\-20\) THEN sum\(Int64\(\-64\)\) ELSE Int64\(23\) \- \(\- count\(Int64\(6\)\)\) / Int64\(53\) END \- Int64\(81\) \* Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 / - 70 + - - ( - ( - 1 ) ) AS col1, - 92 + - 62 * + + 21 * + CASE - 32 WHEN + - 20 THEN SUM ( - 64 ) ELSE + 23 - - COUNT ( 6 ) / 53 END - + 81 * 6 AS col1 +---- +-30524 +1 query I rowsort SELECT 14 * + - 3 - + 18 AS col1 @@ -9514,8 +9632,11 @@ SELECT ALL - + 85 * - 76 * + 22 * + - COUNT ( * ) * - - 91 + - + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT + 37 AS col2, 50 AS col2 +---- +37 +50 query I rowsort SELECT - 69 * 65 * - - 32 + - - 30 @@ -10079,8 +10200,11 @@ SELECT ALL + 40 * - + ( - 18 ) - - + 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col2" at position 0 and "Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 52 AS col2, - 16 col2 +---- +-16 +52 query I rowsort label-1916 SELECT + - 71 - - COUNT ( * ) AS col2 @@ -10121,8 +10245,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 16 + + - 53 AS col2, 93 * - 3 * 86 * + - COUNT ( * ) AS col2 +---- +-37 +23994 query I rowsort label-1924 SELECT + - 19 * 78 * + - 84 * - COUNT ( * ) + + 97 AS col1 @@ -10206,14 +10333,21 @@ SELECT - ( + 65 ) + 81 # Datafusion - Expected - -49 # Datafusion - Expected - 104 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \+ Int64\(83\) AS col2" at position 1 and "Int64\(50\) \* Int64\(41\) \+ CAST\(NULL AS Int32\) \+ Int64\(\-33\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 23 + 40 - 66 AS col0, + 21 + + 83 AS col2, 50 * 41 + + CAST ( NULL AS INTEGER ) + - 33 AS col2 +---- +-49 +104 +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\) \- Int64\(58\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 - 58 AS col0, COUNT ( * ) col0 +---- +-29 +1 query I rowsort SELECT - 99 + - + 15 col2 @@ -11117,8 +11251,11 @@ SELECT ( - COUNT ( * ) ) * - - 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 845 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* Int64\(13\) AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 65 * + 13 AS col2, + 77 AS col2 +---- +77 +845 query I rowsort label-2116 SELECT COUNT ( * ) * + + CAST ( NULL AS INTEGER ) @@ -11348,8 +11485,11 @@ SELECT DISTINCT - 41 * - 29 # 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 col2" at position 0 and "Int64\(\-18\) / Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 46 AS col2, - 18 / + - 72 AS col2 +---- +-46 +0 query I rowsort label-2161 SELECT + 62 * CAST ( 98 AS INTEGER ) / + - ( - 53 ) AS col0 @@ -11364,8 +11504,11 @@ NULL # 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 "Int64\(53\) / coalesce\(\(\- Int64\(\-8\)\), Int64\(10\) \* coalesce\(min\(Int64\(43\)\), min\(Int64\(72\)\) \* Int64\(79\) \* Int64\(93\)\) / \(\- Int64\(\-87\)\), Int64\(72\)\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 53 / COALESCE ( - - 8, 10 * COALESCE ( MIN ( + 43 ), MIN ( + 72 ) * + 79 * 93 ) / - - 87, + 72 ) AS col2, 69 AS col2 +---- +6 +69 query I rowsort SELECT - + 47 + - 13 AS col1 @@ -11407,8 +11550,11 @@ SELECT - 70 * 10 AS col0 # 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 "sum\(Int64\(68\)\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( + 68 ) AS col0, 83 AS col0 +---- +68 +83 query I rowsort label-2172 SELECT ( COUNT ( 67 ) ) col0 @@ -11751,8 +11897,11 @@ SELECT 33 + 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 14 AS col0, + ( 19 ) AS col0 +---- +14 +19 query I rowsort label-2239 SELECT COUNT ( * ) * + 5 AS col2 @@ -12092,8 +12241,11 @@ SELECT ALL + 71, + 91 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1209 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(31\) \* Int64\(\-39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, 31 * - 39 AS col2 +---- +-1209 +1 query I rowsort SELECT ALL - 90 * 2 * - 61 @@ -13068,8 +13220,11 @@ SELECT ( - MIN ( - 47 ) ) * - + 2 + 74 AS col0 # 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 col1" at position 0 and "Int64\(\-97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 17 AS col1, - 97 col1 +---- +-17 +-97 query I rowsort SELECT DISTINCT - - 21 + - 21 @@ -13100,8 +13255,11 @@ SELECT DISTINCT - 69 AS col1, 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \* CAST\(NULL AS Int32\) \+ Int64\(\-39\) \+ \(\- Int64\(11\)\) \* Int64\(12\) \* Int64\(\-80\) \+ Int64\(\-57\) \- Int64\(42\) \+ \(\- nullif\(Int64\(27\), \(\- Int64\(\-14\)\) / Int64\(97\) \+ Int64\(50\)\)\) \+ \(\- CAST\(Int64\(96\) AS Int32\)\) \* Int64\(\-27\) \* Int64\(\-29\) \+ \(\- Int64\(\-20\)\) AS col2" at position 0 and "Int64\(20\) / Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 88 * CAST ( NULL AS INTEGER ) + - 39 + - + 11 * 12 * - 80 + - 57 - 42 + - NULLIF ( 27, - - 14 / 97 + + + 50 ) + - CAST ( 96 AS INTEGER ) * - 27 * - 29 + - - 20 AS col2, 20 / + + ( + + 7 ) AS col2 +---- +2 +NULL query II rowsort label-2494 SELECT ALL + 38 + - + 35 * - + COALESCE ( 74, 77 + + - CAST ( NULL AS INTEGER ) * - - 71 + - 30 - 54 + - COUNT ( * ), + 28 ) col1, - 39 + + - 86 AS col2 @@ -13249,8 +13407,11 @@ SELECT 45 + ( - 52 ) - + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT \(\- Int64\(\-35\)\)\) AS col2" at position 0 and "Int64\(8\) \+ Int64\(39\) \+ Int64\(\-64\) / Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( DISTINCT - - 35 ) AS col2, 8 + 39 + - 64 / + 36 AS col2 +---- +35 +46 query I rowsort label-2522 SELECT DISTINCT + 86 * + + COUNT ( * ) + 18 @@ -13587,8 +13748,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * - 71 * 16 + + + 13 col1, 26 AS col1 +---- +-1123 +26 query I rowsort label-2587 SELECT ALL + ( + COUNT ( * ) ) + - 81 @@ -13823,8 +13987,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 85 AS col1, - COUNT ( * ) AS col1 +---- +-1 +85 query I rowsort SELECT DISTINCT + 9 + - 87 AS col0 @@ -14277,8 +14444,11 @@ 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\(1\)\) AS count\(\*\)\)\), Int64\(\-32\), Int64\(19\) \+ Int64\(\-18\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 + COUNT ( DISTINCT - + 33 ) AS col1, + 78 * + COALESCE ( - - COUNT ( * ), - 32, + 19 + - 18 ) AS col1 +---- +78 +86 query I rowsort label-2719 SELECT ALL - 15 / + 50 + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) @@ -14476,8 +14646,11 @@ SELECT ALL COUNT ( * ) + + 20 AS col0, + MIN ( + 87 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 1482 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \+ Int64\(3\) AS col2" at position 0 and "Int64\(39\) \* \(\- nullif\(Int64\(\-38\), max\(Int64\(\-42\)\) \* Int64\(36\) / Int64\(\-31\) \* nullif\(\(\- Int64\(49\)\), CASE \(\- count\(DISTINCT Int64\(23\)\)\) WHEN \(\- coalesce\(Int64\(86\), Int64\(74\)\)\) THEN Int64\(\-83\) \* Int64\(88\) / Int64\(13\) \+ Int64\(30\) END\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 51 + + 3 AS col2, 39 * - + NULLIF ( + - 38, MAX ( ALL - 42 ) * 36 / - 31 * NULLIF ( - ( 49 ), + CASE - + COUNT ( DISTINCT ( + 23 ) ) WHEN - + COALESCE ( + 86, + 74 ) THEN - 83 * 88 / 13 + + 30 END ) ) AS col2 +---- +1482 +54 query II rowsort label-2756 SELECT ALL - 70 / 30 + COUNT ( * ) - 95, 41 AS col1 @@ -14493,8 +14666,11 @@ SELECT DISTINCT 99 + 65 - 50 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -4840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "Int64\(\-88\) \* Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 4 AS col2, ( - 88 ) * 55 AS col2 +---- +-4840 +4 query I rowsort SELECT 48 * 69 AS col1 @@ -14759,8 +14935,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) / Int64\(7\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 99 / ( 7 ) AS col0, + 98 AS col0 +---- +14 +98 query I rowsort label-2810 SELECT DISTINCT COUNT ( * ) * - - 82 AS col2 @@ -14807,8 +14986,11 @@ SELECT + 98 * - COUNT ( * ) + + + COUNT ( * ), 5 - + + SUM ( + 82 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* CAST\(\(\- Int64\(\-7\)\) AS Int32\) \+ Int64\(69\) \- Int64\(33\) \+ \(\- Int64\(85\)\) \+ Int64\(\-84\) AS col1" at position 0 and "Int64\(\-53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + CAST ( - - 7 AS INTEGER ) + + 69 - + 33 + - ( 85 ) + - 84 AS col1, - 53 col1 +---- +-53 +NULL query II rowsort SELECT DISTINCT + + 65 AS col2, 18 @@ -14924,8 +15106,11 @@ SELECT - 15 * - 13 * - 36 - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 585 # Datafusion - Expected - -170 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* Int64\(45\) AS col0" at position 0 and "Int64\(\-27\) \+ \(\- Int64\(82\)\) \- Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 13 * 45 AS col0, - 27 + - + 82 - 61 AS col0 +---- +-170 +585 query II rowsort SELECT - 89 + + 48 col0, - 32 AS col2 @@ -15491,8 +15676,11 @@ SELECT ALL + COALESCE ( 28, - + 66 / - 49 * + 97, + + 96 / + - 19 ), 17 / 72 + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 5460 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(\-94\)\)\) AS col1" at position 0 and "Int64\(60\) \* \(\- Int64\(\-91\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + MAX ( ALL - - 94 ) AS col1, 60 * - - 91 AS col1 +---- +5460 +94 query I rowsort SELECT - 71 * 88 AS col2 @@ -15886,8 +16074,11 @@ SELECT MIN ( ALL + 0 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "\(\- nullif\(Int64\(\-28\), Int64\(42\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 99 col0, - NULLIF ( + - 28, + + 42 ) AS col0 +---- +28 +99 query I rowsort label-3022 SELECT - 86 / 57 * 36 * + COUNT ( DISTINCT - 85 ) * - + 47 / - NULLIF ( + - 1, - 9 ) AS col1 @@ -16975,8 +17166,11 @@ SELECT 87 + + 70 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 73 AS col1, COUNT ( * ) AS col1 +---- +-73 +1 query II rowsort label-3235 SELECT 40 col2, COUNT ( * ) @@ -17165,8 +17359,11 @@ SELECT - - 84 AS col0, + CASE - COUNT ( * ) WHEN + 85 / - 85 THEN - 83 WHEN - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \+ 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 II valuesort SELECT ALL 47 + + - 15 AS col0, + 45 AS col0 +---- +32 +45 query II rowsort label-3270 SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) AS col0, + 52 @@ -17424,8 +17621,11 @@ SELECT - 4 * - 29 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, 55 AS col2 +---- +1 +55 query I rowsort label-3320 SELECT DISTINCT SUM ( ALL - 92 ) @@ -17833,8 +18033,11 @@ SELECT ALL - 15, + 38 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col0" at position 0 and "Int64\(62\) \* Int64\(\-39\) \* CASE \(\- nullif\(Int64\(27\), Int64\(44\) \* Int64\(\-24\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\)\)\) WHEN Int64\(2\) \+ Int64\(29\) THEN Int64\(10\) \* Int64\(\-99\) \* Int64\(\-98\) \- max\(Int64\(23\)\) ELSE Int64\(0\) END \+ Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 83 AS col0, 62 * - 39 * CASE - NULLIF ( + 27, + 44 * - 24 + - - CAST ( NULL AS INTEGER ) ) WHEN + 2 + + 29 THEN 10 * ( - 99 * - 98 ) - MAX ( + 23 ) ELSE ( - 0 ) END + + 15 AS col0 +---- +-83 +15 query I rowsort SELECT + 86 - 66 @@ -17929,8 +18132,11 @@ SELECT + 9 + + 6 AS col1, ( - - 80 ) + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 53 AS col1, 26 col1 +---- +-53 +26 query I rowsort SELECT - 27 + - 75 * - 31 AS col2 @@ -18011,8 +18217,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 34 col1, COUNT ( * ) AS col1 +---- +1 +34 query I rowsort SELECT - + 99 + + ( + 33 ) * + + 72 + - 55 AS col1 @@ -18050,8 +18259,11 @@ SELECT DISTINCT - 61 / + 90 * 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col1" at position 0 and "Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 42 AS col1, - 87 AS col1 +---- +-42 +-87 query I rowsort SELECT DISTINCT - 80 * + 54 * - 2 * + 96 @@ -18246,8 +18458,11 @@ SELECT ALL + 82 * - 73 + - 58 * 21 / CAST ( + 42 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) + + COUNT ( * ) AS col0, ( - 76 ) AS col0 +---- +-76 +2 query I rowsort SELECT ALL - - 48 + - + 76 * + 82 + + - 52 + 77 * + + 54 @@ -18721,8 +18936,11 @@ SELECT + CAST ( 36 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(92\)\)\) AS col0" at position 0 and "Int64\(\-31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - - ( + 92 ) ) AS col0, - 31 AS col0 +---- +-31 +92 query I rowsort SELECT ALL 65 * ( + 2 ) + + 99 @@ -18885,8 +19103,11 @@ SELECT ALL COUNT ( * ) * + - COUNT ( DISTINCT ( 20 ) ) * + - 39 * + 38 * - - 1 A # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 86 AS col2, 81 AS col2 +---- +81 +86 query I rowsort label-3598 SELECT ALL 68 + COUNT ( 11 ) AS col0 @@ -19102,8 +19323,11 @@ SELECT ALL 46 + - 85 * + + 88 * - 89 * + 6 AS col1, - 79 * - - 72 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(82\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) / - COUNT ( * ) AS col1, + 82 + + COUNT ( * ) AS col1 +---- +-1 +83 query I rowsort label-3637 SELECT CAST ( NULL AS INTEGER ) / + 34 AS col1 @@ -19313,8 +19537,11 @@ SELECT ALL + 7 * - - COALESCE ( - 31, - CASE - CASE + + COALESCE ( + 35, + 41 ) # 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 "sum\(DISTINCT \(\- Int64\(\-21\)\)\) AS col1" at position 0 and "Int64\(9\) \+ Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( DISTINCT - - 21 ) col1, 9 + 79 AS col1 +---- +21 +88 query I rowsort SELECT DISTINCT 31 * + 90 + 52 @@ -19535,8 +19762,11 @@ SELECT ALL + 24 + - 50 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(38\)\) \+ Int64\(35\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( 38 ) + 35 AS col0, 4 AS col0 +---- +36 +4 query I rowsort label-3720 SELECT ALL + 55 / + 78 @@ -19691,8 +19921,11 @@ SELECT DISTINCT + COUNT ( * ) + - + 20 + 26 - - 33 + 97 / + - 59 + - 52 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col0" at position 0 and "CASE \(\- Int64\(\-28\)\) WHEN Int64\(13\) THEN \(\- Int64\(3\)\) \- CAST\(NULL AS Int32\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 79 AS col0, + CASE - - 28 WHEN + 13 THEN - + 3 - + CAST ( NULL AS INTEGER ) ELSE NULL END col0 +---- +-79 +NULL query II rowsort label-3749 SELECT - COUNT ( * ), 77 + - + 3 + - 87 * + COUNT ( * ) * + - 12 * - ( 49 ) AS col1 @@ -19849,8 +20082,11 @@ NULL # 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 "Int64\(\-73\) \+ Int64\(73\) AS col0" at position 0 and "\(\- sum\(Int64\(\-62\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 73 + 73 AS col0, - SUM ( + - 62 ) AS col0 +---- +0 +62 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -20021,8 +20257,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 80 * + - 86 + + 29 AS col1, - 22 * COUNT ( * ) + + 95 AS col1 +---- +6909 +73 query I rowsort label-3811 SELECT DISTINCT ( - + COUNT ( * ) ) AS col2 @@ -20314,8 +20553,11 @@ SELECT ALL + 58 * 34 + 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* \(\- Int64\(\-39\)\) \+ Int64\(\-57\) \- \(\- Int64\(\-39\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( 2 ) * - - 39 + + - 57 - - - 39 col2, COUNT ( * ) * + COUNT ( * ) AS col2 +---- +-18 +1 query I rowsort label-3867 SELECT DISTINCT + 98 * + + ( + 56 ) + CAST ( - 42 AS INTEGER ) AS col1 @@ -20493,8 +20735,11 @@ SELECT DISTINCT + SUM ( DISTINCT - + ( - + 45 ) ) * - - 31 + + 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54720 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(45\) \* \(\- \(\- Int64\(32\)\)\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 38 * + 45 * - ( - + 32 ) AS col2, + 97 AS col2 +---- +54720 +97 query I rowsort label-3902 SELECT + 79 + COUNT ( * ) + + COUNT ( * ) * + + 88 @@ -20689,8 +20934,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * + 93 AS col2, - 30 * 93 AS col2 +---- +-2790 +93 query I rowsort SELECT 60 * - - ( + 16 ) @@ -20700,8 +20948,11 @@ SELECT 60 * - - ( + 16 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -781 # Datafusion - Expected - 5410 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* Int64\(\-11\) AS col1" at position 0 and "Int64\(\-30\) \+ nullif\(Int64\(\-68\), Int64\(6\) \* count\(DISTINCT Int64\(67\)\) \+ Int64\(\-99\)\) \* Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 71 * + - 11 AS col1, - 30 + + NULLIF ( - 68, + + 6 * + COUNT ( DISTINCT 67 ) + - 99 ) * + - 80 AS col1 +---- +-781 +5410 query I rowsort label-3942 SELECT DISTINCT - CASE + 68 WHEN + 70 * - 35 / - MAX ( ALL - - 16 ) THEN NULL ELSE + 45 END - 94 + + 28 + + 62 + + 27 * + 10 + 44 * 46 + SUM ( ALL 51 ) * + CAST ( NULL AS INTEGER ) @@ -21601,8 +21852,11 @@ SELECT ALL + + 1 / + - 61 # 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 nullif\(Int64\(3\), Int64\(80\) / Int64\(\-21\)\) WHEN Int64\(31\) THEN Int64\(64\) WHEN Int64\(7\) / Int64\(\-69\) \+ Int64\(\-82\) THEN NULL ELSE NULL 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 II valuesort SELECT ALL + CASE NULLIF ( 3, 80 / - 21 ) WHEN + 31 THEN + 64 WHEN + 7 / - 69 + - 82 THEN NULL ELSE NULL END AS col1, - 81 AS col1 +---- +-81 +NULL query I rowsort SELECT + 29 + + 30 AS col1 @@ -22010,8 +22264,11 @@ SELECT 78 * + 3 * + 61 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col2" at position 0 and "Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 27 col2, - 30 AS col2 +---- +-27 +-30 query I rowsort label-4193 SELECT ( + - MIN ( + + 36 ) ) * + + 5 + + + CAST ( NULL AS INTEGER ) + + 45 + + + 3 + - 88 + + ( + 13 ) @@ -22099,8 +22356,11 @@ SELECT - 38 + - 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(42\)\) AS col2" at position 0 and "Int64\(66\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 42 col2, 66 * COUNT ( * ) AS col2 +---- +-42 +66 query I rowsort label-4210 SELECT ALL + - 78 + - - 33 * + ( + ( + + SUM ( - + 77 ) ) ) / + + 81 + + CASE CASE - AVG ( + 34 ) WHEN + 43 / + COALESCE ( + 1, 11 ) + + + CASE - 0 WHEN + CAST ( 24 AS INTEGER ) * + MAX ( 85 ) THEN - + 26 * - 34 - 12 + - 96 WHEN 94 THEN NULL END * - - COUNT ( * ) + - 93 THEN COALESCE ( + 98, + 78 - 93 ) WHEN 37 + + 18 + + 83 + - 38 * 1 THEN NULL ELSE CAST ( 94 AS FLOAT8 ) END WHEN 15 THEN COUNT ( * ) WHEN 47 THEN NULL END + 24 AS col1 @@ -22166,8 +22426,11 @@ SELECT 54 + 90 + - + ( + CASE + + 21 WHEN - 35 THEN NULL WHEN + 91 + - - 70 + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 AS col0, 60 AS col0 +---- +26 +60 query I rowsort label-4223 SELECT ALL + ( - 65 ) / + + 52 @@ -22492,8 +22755,11 @@ SELECT - 68 / - + 33 + + + 98 col2, + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 432 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \* Int64\(16\) AS col2" at position 0 and "Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 27 * + + 16 AS col2, - 2 AS col2 +---- +-2 +432 query I rowsort label-4284 SELECT - 61 / - + 29 @@ -22575,8 +22841,11 @@ SELECT + + CAST ( 39 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2322 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \* Int64\(86\) AS col1" at position 0 and "Int64\(\-7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 27 * + 86 col1, - 7 AS col1 +---- +-7 +2322 query I rowsort SELECT 68 * 87 + + 60 col0 @@ -22775,8 +23044,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col1, + 64 col1 +---- +-1 +64 query I rowsort label-4337 SELECT DISTINCT - + 34 * + + ( - MAX ( ALL + 1 ) ) @@ -22822,8 +23094,11 @@ SELECT ALL + + 4 * + 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 75 * + COUNT ( * ) AS col2, - 42 AS col2 +---- +-42 +75 query II rowsort SELECT 72 * + 53 AS col1, 18 + + 86 @@ -22864,8 +23139,11 @@ SELECT CASE 65 WHEN - + 96 THEN NULL WHEN + 86 * + 99 THEN NULL ELSE + + 76 + - # Datafusion - Datafusion expected results: # Datafusion - Expected - -382044 # Datafusion - Expected - 2860 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(79\) \* sum\(Int64\(\-62\)\) AS col1" at position 0 and "CAST\(Int64\(44\) AS Int32\) \* Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 78 * + 79 * + SUM ( - 62 ) AS col1, + CAST ( 44 AS INTEGER ) * + ( 65 ) AS col1 +---- +-382044 +2860 query II rowsort label-4354 SELECT 7 + - - 80, + 98 * COUNT ( * ) * + + 2 AS col2 @@ -23126,8 +23404,11 @@ SELECT DISTINCT 38 * - + 6 + + - COUNT ( * ) + + 56 + + ( - 97 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 27 AS col0, + 78 AS col0 +---- +27 +78 query II rowsort SELECT - 27 - - 25, - 49 * - + 35 + + CASE + 19 WHEN - 28 * 64 THEN NULL WHEN + ( - 96 ) + - - 11 + - + 98 + 96 THEN + + COALESCE ( - 84, + 29 ) END AS col0 @@ -23284,8 +23565,11 @@ SELECT ALL 10 * - ( + - 38 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 41 AS col1, 84 AS col1 +---- +41 +84 query I rowsort SELECT ( + 16 ) col0 @@ -23331,14 +23615,21 @@ SELECT - COUNT ( * ) * ( 17 ) + - 63 AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 57 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col2" at position 1 and "Int64\(75\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 42 + 48 - 35 + + - ( - - CAST ( NULL AS INTEGER ) ) * - + 70 / + 53 AS col1, 57 AS col2, 75 AS col2 +---- +57 +75 +NULL # 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\(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\. +query II valuesort SELECT DISTINCT ( + COALESCE ( - 23, - 47, - COUNT ( * ) * - 51, + 76 * 59 / + 40 * + - 49 ) ) * - 77 * + - 78 * + 94 AS col1, + 71 AS col1 +---- +-12984972 +71 query I rowsort SELECT DISTINCT 86 * + 89 AS col0 @@ -23508,8 +23799,11 @@ SELECT 45 * + 37 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 41 AS col0, 81 AS col0 +---- +-41 +81 query I rowsort SELECT DISTINCT + 45 * + 72 col2 @@ -23941,8 +24235,11 @@ SELECT DISTINCT ( - 87 ) * + 82 + - - 5 col2, - 44 * - 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col0" at position 0 and "count\(Int64\(17\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 96 AS col0, + COUNT ( 17 ) AS col0 +---- +-96 +1 query I rowsort SELECT ALL 2 + + 49 + + - 69 * + - 76 @@ -24000,8 +24297,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-26\)\) AS col2" at position 0 and "Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 26 AS col2, - 25 AS col2 +---- +-25 +26 query I rowsort SELECT DISTINCT - 21 + 84 + - 13 * + - 61 AS col2 @@ -24044,8 +24344,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 44 AS col1, + 51 AS col1 +---- +44 +51 query I rowsort SELECT DISTINCT + 45 * - 32 AS col0 @@ -24126,8 +24429,11 @@ SELECT 60 - - 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(69\) AS Int32\)\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( 69 AS INTEGER ) AS col0, 10 AS col0 +---- +-69 +10 query I rowsort SELECT ALL 84 + + 31 @@ -24234,8 +24540,11 @@ SELECT ALL 85 + + 64 - + ( + 62 ) * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 12166 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(64\) \* Int64\(3\) \+ \(\- CAST\(Int64\(58\) AS Int32\)\) \+ \(\- coalesce\(Int64\(\-94\), Int64\(79\)\)\) \* Int64\(64\) \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, 64 * + 3 + - CAST ( 58 AS INTEGER ) + - COALESCE ( + - 94, + + 79 ) * 64 * + 2 AS col1 +---- +1 +12166 query I rowsort SELECT - 32 + 6 AS col1 @@ -25277,8 +25586,11 @@ SELECT DISTINCT + SUM ( ALL - 71 ) * + - ( COUNT ( * ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(30\)\)\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MAX ( + + 30 ) AS col2, 78 AS col2 +---- +-30 +78 query I rowsort label-4819 SELECT - COUNT ( DISTINCT + - 44 ) * + 4 * 2 + + 68 + + 7 AS col1 @@ -25918,8 +26230,11 @@ SELECT + 31 / - 55 + - 21 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(17\)\)\)\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - MAX ( + 17 ) AS col1, ( + 84 ) col1 +---- +17 +84 query I rowsort SELECT DISTINCT - ( + 79 ) * + 77 @@ -25987,8 +26302,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 61 AS col2, 89 AS col2 +---- +61 +89 query I rowsort label-4953 SELECT 78 + 39 + - COUNT ( * ) AS col0 @@ -26309,8 +26627,11 @@ 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\(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\. +query II valuesort SELECT + NULLIF ( + 36, + - COUNT ( * ) ) * + ( - - ( + + 25 ) ) - - + 25 AS col2, 54 * 78 / 14 AS col2 +---- +300 +925 query II rowsort label-5014 SELECT - - 74 / 77 AS col1, 77 * + 54 - - 21 AS col2 @@ -26459,8 +26780,11 @@ SELECT 34, 87 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 124 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) / Int64\(25\) \* \(\- Int64\(62\)\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 / 25 * - + 62 AS col1, 72 AS col1 +---- +124 +72 query I rowsort SELECT DISTINCT - 27 * + - ( + 41 ) * - 80 @@ -26740,8 +27064,11 @@ SELECT ALL + - 83 * + 79 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 47 * COUNT ( * ) AS col2, COUNT ( * ) AS col2 +---- +-47 +1 query I rowsort SELECT 8 * + + 49 * 25 @@ -27071,8 +27398,11 @@ 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\(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\. +query II valuesort SELECT + 50 * - COUNT ( * ) AS col2, + 78 / - ( + SUM ( ALL - 84 ) ) + - - 41 AS col2 +---- +-50 +41 query I rowsort SELECT ALL 70 * 22 + - 10 @@ -27238,8 +27568,12 @@ SELECT DISTINCT + - 34 + + - 38 # Datafusion - Expected - -213 # Datafusion - Expected - 1 # Datafusion - Expected - -2380400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 and "Int64\(96\) \* Int64\(\-19\) \* CAST\(\(\- \(\- Int64\(\-15\)\)\) AS Int32\) \* \(\- Int64\(87\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-79\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - - 72 + - - 6 * + - 55 + - - 45, COUNT ( * ) col0, 96 * + - 19 * CAST ( - - ( - 15 ) AS INTEGER ) * - + 87 + + - COUNT ( * ) + - 79 col0 +---- +-213 +-2380400 +1 query I rowsort label-5190 SELECT ( + 18 ) * + + CAST ( 94 AS INTEGER ) * + - 76 * ( 17 ) * - - 57 + 27 - - COUNT ( * ) @@ -27286,8 +27620,11 @@ SELECT - 40 * 62 * - 84 - COALESCE ( - - 6, + COUNT ( * ) / - - 23 + + NULLIF ( # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 6076 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ \(\- Int64\(21\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(98\) \* Int64\(62\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 + - + 21 * + - CAST ( NULL AS INTEGER ) AS col0, 98 * + + 62 * + + COUNT ( * ) AS col0 +---- +6076 +NULL query I rowsort label-5199 SELECT COUNT ( * ) * 30 * 10 / - - 91 - 66 * + 7 * - 52 @@ -27334,8 +27671,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(\-71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 23 AS col0, + COUNT ( * ) - + - 71 AS col0 +---- +-23 +72 query I rowsort label-5208 SELECT - 33 * + 52 * + MIN ( 24 ) + - CASE - CAST ( + COALESCE ( - 37, + 16, + COUNT ( * ) + CAST ( NULL AS FLOAT8 ) ) AS INTEGER ) WHEN 34 THEN - - ( - + 79 ) + NULLIF ( COUNT ( * ), + 72 ) * 40 WHEN - 20 THEN NULLIF ( 31, MAX ( ALL + 33 ) ) ELSE - 7 + 10 END + COUNT ( * ) @@ -27771,8 +28111,11 @@ SELECT DISTINCT 66 * - 57 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 61 -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\(61\), min\(\(\- Int64\(94\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 col0, NULLIF ( + + 61, + MIN ( ALL + - ( + 94 ) ) ) AS col0 +---- +61 +85 query I rowsort label-5291 SELECT 83 + - 5 * CAST ( + 19 AS INTEGER ) @@ -27818,8 +28161,11 @@ SELECT ALL 30 + - 93 * + COUNT ( ALL - 47 ) # 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 "\(\- Int64\(\-12\)\) \- Int64\(57\) AS col2" at position 0 and "Int64\(\-6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 12 ) - 57 AS col2, - 6 AS col2 +---- +-45 +-6 query I rowsort SELECT - 69 * - 87 @@ -27893,8 +28239,11 @@ SELECT + 2 / + + 34 / + - COUNT ( DISTINCT - 11 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 AS col1, 96 col1 +---- +-82 +96 query I rowsort SELECT 84 + - + 75 + - 50 AS col1 @@ -28131,8 +28480,11 @@ SELECT DISTINCT + 46 * + 63 * 95 - 98 - 3 * + 43 + 34 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -3168 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-72\) \* Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, - 72 * 44 AS col1 +---- +-3168 +1 query I rowsort label-5360 SELECT ALL + - COUNT ( ALL - 14 ) @@ -28789,8 +29141,11 @@ SELECT ALL + 68 / 97 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \+ Int64\(82\) AS col1" at position 0 and "min\(Int64\(76\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 12 + 82 col1, MIN ( ALL 76 ) AS col1 +---- +70 +76 query I rowsort label-5486 SELECT ALL CASE COALESCE ( + 25, - - 47 ) WHEN + 60 + + + 12 / - ( + 86 ) THEN NULL WHEN - - ( - - CASE - + 8 WHEN - 77 THEN NULL ELSE - - 90 - 86 - + + 7 * + 48 END ) + - 67 / - - 77 THEN NULL ELSE + SUM ( - 38 ) END @@ -28800,8 +29155,11 @@ 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\(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\. +query II valuesort SELECT ALL COALESCE ( - 8, 79, COUNT ( * ) ) AS col0, + 26 AS col0 +---- +-8 +26 query II rowsort label-5488 SELECT - 82 * - COUNT ( * ), + 21 + + + 58 AS col1 @@ -29106,8 +29464,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ), - COUNT ( * ) +---- +-1 +-1 query I rowsort label-5545 SELECT ALL - 13 + + 44 + + COUNT ( * ) + 76 AS col0 @@ -29496,8 +29857,11 @@ SELECT DISTINCT + 23 / 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7831 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \* Int64\(5\) \* Int64\(29\) \+ Int64\(87\) \+ \(\- Int64\(\-59\)\) AS col1" at position 0 and "Int64\(\-95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 53 * 5 * 29 + 87 + - ( + - 59 ) AS col1, - 95 AS col1 +---- +-95 +7831 query II rowsort SELECT DISTINCT + 59 AS col2, - 72 AS col0 @@ -29528,8 +29892,11 @@ SELECT ALL + - 95 * - + ( + - 88 ) + - 66 + 72 / 50 - + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -592 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(90\)\) \+ Int64\(64\) \* Int64\(57\) \* Int64\(82\) / Int64\(93\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "coalesce\(Int64\(\-16\), Int64\(59\) \- Int64\(46\), Int64\(0\)\) \* Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 90 + + 64 * + 57 * + 82 / + 93 * - - CAST ( NULL AS INTEGER ) AS col0, COALESCE ( - 16, + 59 - 46, + 0 ) * + 37 AS col0 +---- +-592 +NULL query II rowsort SELECT - 23 * - 29 - - + 6 AS col2, 75 @@ -30023,8 +30390,11 @@ SELECT 11 + + 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-18\) \+ Int64\(3\) \* Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, + COUNT ( * ) + - 18 + + + 3 * 18 AS col1 +---- +1 +37 query I rowsort SELECT + 61 * + 0 AS col2 @@ -30034,8 +30404,11 @@ SELECT + 61 * + 0 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 126 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(14\) \+ Int64\(25\) \+ nullif\(Int64\(87\), \(\- Int64\(\-4\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, 14 + + + 25 + + NULLIF ( 87, - - 4 ) AS col0 +---- +1 +126 query I rowsort label-5722 SELECT DISTINCT SUM ( ALL 11 ) @@ -30120,8 +30493,11 @@ SELECT ALL + + 64 AS col0, - COALESCE ( - + COALESCE ( + - 39, COUNT ( * ) / - - # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 41 AS col0, + 66 AS col0 +---- +41 +66 query I rowsort SELECT + 41 * - + 42 + - ( - 47 ) @@ -30191,8 +30567,11 @@ SELECT ALL + ( - + 0 ), - 32 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(37\)\) AS col0" at position 0 and "Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 37 AS col0, 16 AS col0 +---- +-37 +16 query I rowsort label-5751 SELECT SUM ( 86 ) @@ -30378,8 +30757,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * 12 / - 81 AS col0, + 73 AS col0 +---- +0 +73 query II rowsort SELECT - 93, - NULLIF ( 95, - - CASE + - ( + 49 ) WHEN 1 + - 63 THEN NULL ELSE - - 3 END ) AS col2 @@ -30566,8 +30948,11 @@ SELECT ALL + ( + - ( + + 5 ) ) + + COUNT ( * ) * + ( - 91 ) + + 21 / + + 3 + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - -576 -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\(\-48\) \* Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 + + 3 col0, - 48 * 12 AS col0 +---- +-576 +29 query I rowsort SELECT 65 * 22 @@ -30790,8 +31175,11 @@ SELECT DISTINCT - 56 * - 69 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col0" at position 0 and "Int64\(31\) \+ Int64\(\-23\) / Int64\(45\) \* \(\- Int64\(55\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 col0, 31 + - 23 / 45 * + ( - + 55 ) AS col0 +---- +30 +31 query I rowsort SELECT ALL - 30 + - - NULLIF ( + 91, + 7 ) AS col1 @@ -30924,8 +31312,11 @@ 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\(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\. +query II valuesort SELECT + CASE - 22 WHEN - COUNT ( * ) THEN + COUNT ( * ) ELSE NULL END AS col2, + SUM ( + - 53 ) + - NULLIF ( + 49, - 59 * + COUNT ( * ) ) AS col2 +---- +-102 +NULL query I rowsort label-5886 SELECT + CASE + 58 WHEN - 94 + NULLIF ( + 60, + 48 ) THEN NULL WHEN + 43 THEN NULL WHEN + 48 + ( - + 10 ) + - - 36 - - + 71 * - + 74 + - 48 + - 6 + - - 85 * - 94 + + - 70 THEN + 43 + + + 69 END * - CASE 30 WHEN - COUNT ( * ) THEN + COUNT ( DISTINCT ( + 69 ) ) * - + MIN ( DISTINCT + 74 ) WHEN 3 THEN NULL ELSE NULL END + + 61 @@ -31434,14 +31825,20 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) AS col0, - 83 AS col0 +---- +-1 +-83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 AS col2, + ( 95 ) AS col2 +---- +47 +95 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -31869,8 +32266,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 50 AS col0, - 60 * - 3 + ( - COUNT ( * ) ) col0 +---- +-50 +179 query II rowsort SELECT 43, + 84 AS col2 @@ -31957,8 +32357,12 @@ SELECT + 35 / 28 + + 39 # Datafusion - Expected - 21 # Datafusion - Expected - 21 # Datafusion - Expected - 579 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\)" at position 0 and "Int64\(21\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 21, 21, 8 * + 76 + - + CAST ( 66 AS INTEGER ) - - 37 col0 +---- +21 +21 +579 query I rowsort label-6077 SELECT - COALESCE ( + + 98, COUNT ( * ) + - COUNT ( ALL - 44 ) * - + 77 * - 70, + + 59 ) AS col0 @@ -32064,8 +32468,11 @@ SELECT ALL + 65 * - 10 - 79 * - 10 + - + NULLIF ( + 69, - + 2 ) * NULLIF ( + COU # Datafusion - Datafusion expected results: # Datafusion - Expected - 30096 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(0\)\) \* Int64\(73\) \- CAST\(Int64\(\-38\) AS Int32\) \* Int64\(44\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-18\) AS col0" at position 0 and "\(\- Int64\(55\)\) / Int64\(95\) \+ count\(DISTINCT \(\- Int64\(\-21\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 0 * + 73 - + CAST ( - 38 AS INTEGER ) * 44 * - COUNT ( * ) * - 18 col0, - ( + + 55 ) / + 95 + ( + COUNT ( DISTINCT - - 21 ) ) AS col0 +---- +1 +30096 query I rowsort SELECT - + 1 * + - 24 - - - 10 + + - 30 * 39 * - 13 * + 72 @@ -32400,14 +32807,20 @@ SELECT DISTINCT 94 * - ( + COUNT ( * ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3880 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* Int64\(\-40\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 97 * - 40 col1, + 92 AS col1 +---- +-3880 +92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 441 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* Int64\(\-10\) \+ Int64\(23\) \* Int64\(37\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 * + - 10 + 23 * 37 AS col1, + 27 AS col1 +---- +27 +441 query I rowsort label-6164 SELECT ALL + 61 + + - 68 / + ( + + 91 ) AS col0 @@ -32535,8 +32948,11 @@ SELECT ALL - CAST ( + 84 AS INTEGER ) + + - COUNT ( * ) * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2859 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(54\)\) \+ Int64\(34\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(40\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-72\) AS col1" at position 0 and "Int64\(\-27\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \- \(\- Int64\(\-26\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 54 + + 34 + - COUNT ( * ) + - + 40 * + COUNT ( * ) * - 72 AS col1, - 27 + CAST ( - COUNT ( * ) AS INTEGER ) - - - 26 col1 +---- +-54 +2859 query II rowsort label-6189 SELECT - 36 + 73 + - 74 + - + 33 * - 56 + - COUNT ( * ), 89 AS col1 @@ -32672,8 +33088,11 @@ SELECT + 30 * + 76 + + 62 * - + 46 - + NULLIF ( - 71, AVG ( ( - 88 ) ) ) * + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(DISTINCT Int64\(67\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, + COUNT ( DISTINCT + + 67 ) AS col1 +---- +1 +1 query I rowsort SELECT - 64 * + + 12 AS col0 @@ -32801,8 +33220,11 @@ SELECT ALL - 20 / + - 73 + + 69 + 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-97\)\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - ( - 97 ) ) AS col0, 97 AS col0 +---- +97 +97 query I rowsort label-6240 SELECT + COALESCE ( 54, - 64 + ( - COUNT ( * ) ) * + 84 * 67 * 83, - 40 - 14 ) AS col0 @@ -32832,8 +33254,11 @@ SELECT DISTINCT COUNT ( * ) * 7 - - - 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(60\) AS Int32\) AS col1" at position 0 and "Int64\(45\) \+ Int64\(74\) \+ Int64\(59\) \+ \(\- CAST\(\(\- Int64\(46\)\) AS Int32\)\) / \(\- Int64\(\-20\)\) \- \(\- Int64\(83\)\) \+ CASE Int64\(13\) WHEN Int64\(40\) THEN Int64\(1\) END \* Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( + 60 AS INTEGER ) AS col1, 45 + 74 + + + 59 + - CAST ( - + 46 AS INTEGER ) / - - 20 - - + 83 + + CASE + ( + 13 ) WHEN + 40 THEN + 1 END * + 59 AS col1 +---- +60 +NULL query I rowsort label-6246 SELECT - CAST ( AVG ( - ( + 79 ) ) AS INTEGER ) * - - 88 - - + COUNT ( * ) @@ -32859,8 +33284,11 @@ SELECT + 65 * + - 2 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2772 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(33\) \* \(\- Int64\(\-84\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + CAST ( NULL AS INTEGER ) ) AS col0, + 33 * - - 84 AS col0 +---- +2772 +NULL query I rowsort label-6251 SELECT COALESCE ( + 75, - CAST ( 58 AS INTEGER ) * + 44 + 10 + COUNT ( * ) * + - 61 ) @@ -33048,8 +33476,11 @@ SELECT MIN ( - 12 ) * 84 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3818 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* \(\- Int64\(\-46\)\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 83 ) * - - 46 col2, 0 AS col2 +---- +0 +3818 query I rowsort label-6287 SELECT 8 * COUNT ( * ) col1 @@ -33223,8 +33654,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + - + 44 col0, COALESCE ( - + 35, + + COALESCE ( - 65, + MIN ( 2 ) ) + + - 37 * 29, - 51 ) AS col0 +---- +-35 +-43 query I rowsort label-6319 SELECT ALL - MIN ( - 55 ) AS col1 @@ -33413,8 +33847,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ), + COUNT ( * ) +---- +1 +1 query I rowsort SELECT ( - 0 ) AS col1 @@ -34090,8 +34527,11 @@ 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\(1\)\) AS count\(\*\) \- \(\- Int64\(43\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 74 AS col1, + COUNT ( * ) - - + 43 AS col1 +---- +44 +74 query I rowsort SELECT + - 69 + ( 26 ) @@ -34405,8 +34845,11 @@ SELECT ALL COUNT ( + - 28 ) * + ( - + 85 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(35\)\) \+ Int64\(\-57\) AS col2" at position 0 and "Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( DISTINCT + 35 ) + - 57 AS col2, + 22 AS col2 +---- +-22 +22 query I rowsort SELECT ALL 47 * - 50 AS col0 @@ -34483,8 +34926,11 @@ SELECT ALL + MAX ( DISTINCT 37 ) + - - MIN ( DISTINCT + 3 ) * - 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 AS col0, + 54 AS col0 +---- +41 +54 query I rowsort SELECT + 59 + - + 69 * + 55 AS col2 @@ -34644,8 +35090,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -100 # Datafusion - Expected - 74 -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 "Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 78 + - + 22 col0, 74 AS col0 +---- +-100 +74 query I rowsort SELECT - + 98 col1 @@ -35320,8 +35769,11 @@ SELECT + 22 / + 57 + + 24 AS col2 # 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\(\-12\) / \(\- Int64\(\-62\)\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 12 / - ( - 62 ) AS col1, 19 AS col1 +---- +0 +19 query I rowsort label-6724 SELECT DISTINCT - ( + - CASE + 81 WHEN - 77 THEN - 57 * 97 + + - MAX ( DISTINCT + 1 ) END ) @@ -35431,8 +35883,11 @@ SELECT + + COUNT ( ALL + 68 ) + CAST ( + 80 AS INTEGER ) * + - 7, + 45 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \- Int64\(\-22\) AS col1" at position 0 and "\(\- coalesce\(\(\- Int64\(25\)\), \(\- Int64\(84\)\)\)\) \+ Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 49 ) - - 22 AS col1, - COALESCE ( - + 25, - + 84 ) + + 52 AS col1 +---- +71 +77 query I rowsort label-6745 SELECT DISTINCT + - 51 / + 91 + COALESCE ( - + CASE - 87 WHEN CAST ( + + NULLIF ( 81, - 24 / - 68 ) AS INTEGER ) * - COALESCE ( 25, + 31 + + 3 / 46, + 0 ) THEN NULL WHEN 66 THEN + 38 * 60 + 47 * + 37 ELSE 25 + ( + 28 ) END, + COUNT ( * ) + + 17 * - ( + 73 ) ) + - 47 @@ -35524,8 +35979,11 @@ SELECT ALL + 70, ( + - COUNT ( * ) ) * - + 58 * 92 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 42 ) AS col1, 63 AS col1 +---- +-42 +63 query I rowsort label-6761 SELECT ALL + MIN ( DISTINCT + 37 ) AS col2 @@ -36073,8 +36531,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + NULLIF ( 99, + 3 ) AS col2, - 87 * + 76 col2 +---- +-6612 +100 query I rowsort label-6864 SELECT ALL + MIN ( ALL - 77 ) + - 58 AS col0 @@ -36405,8 +36866,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 1890 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col1" at position 0 and "sum\(Int64\(0\)\) \+ Int64\(78\) \- \(\- Int64\(30\)\) \* Int64\(65\) \+ CAST\(Int64\(\-62\) AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 49 AS col1, SUM ( + 0 ) + 78 - - + 30 * 65 + + CAST ( - 62 AS INTEGER ) + + + ( COUNT ( * ) ) + - 77 AS col1 +---- +-49 +1890 query I rowsort SELECT ALL - ( + 5 ) @@ -36678,8 +37142,11 @@ SELECT ALL - 48 * + 27 - + + 99, + COUNT ( * ) * 64 * + CAST ( + COUNT ( * ) AS # 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 "\(\- CAST\(NULL AS Float64\)\) \* Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT + 73 col1, - CAST ( NULL AS FLOAT8 ) * + 45 AS col1 +---- +73 +NULL query I rowsort SELECT DISTINCT + ( + 76 ) AS col0 @@ -36833,8 +37300,11 @@ 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\(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\. +query II valuesort SELECT + + 58 * - ( + ( - MIN ( 41 ) ) ) * - 54 + - ( - + 58 ) + COUNT ( * ) * NULLIF ( + 13, + + COUNT ( * ) ) * - 37 + + + 73 AS col0, 31 - - 9 AS col0 +---- +-128762 +40 query I rowsort label-7011 SELECT + - 78 + COUNT ( * ) + 99 + - COUNT ( 59 ) * + 64 @@ -36884,8 +37354,11 @@ SELECT + CAST ( - AVG ( ALL + 27 ) AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -368 # Datafusion - Expected - 5115 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* Int64\(\-16\) AS col0" at position 0 and "Int64\(\-55\) \* Int64\(\-93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 23 * - 16 AS col0, - 55 * + - 93 col0 +---- +-368 +5115 query I rowsort label-7020 SELECT 1 * - COUNT ( * ) - - 26 @@ -37023,8 +37496,11 @@ 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\(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\. +query II valuesort SELECT - 6 / - 14 + COUNT ( * ) + + 77 + + 63 + - COUNT ( * ) AS col2, 16 AS col2 +---- +140 +16 query I rowsort label-7046 SELECT + COALESCE ( + ( - + 52 ), - 31 + + - 31, 11 ) * + - 71 + + MIN ( + CASE + - 91 WHEN + + 30 THEN - 54 END ) * 89 - + COUNT ( * ) * - + 26 @@ -37524,8 +38000,11 @@ SELECT ALL ( 23 ) + - - 71 * - - 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 AS col0, + COUNT ( * ) AS col0 +---- +1 +91 query I rowsort SELECT + 88 + - - 23 + 36 AS col2 @@ -37621,8 +38100,11 @@ SELECT - MIN ( DISTINCT - + 49 ) / - 71 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "Int64\(23\) / \(\- Int64\(\-39\)\) \* Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 48 AS col1, + 23 / - - 39 * 55 AS col1 +---- +0 +48 query II rowsort label-7159 SELECT + 18 / + + 48 / + + CASE + ( + + COUNT ( * ) ) WHEN COUNT ( * ) * 16 * 93 THEN - 68 WHEN - 42 + - 34 THEN NULL ELSE NULL END, + ( 85 ) AS col0 @@ -37735,8 +38217,11 @@ SELECT - - 33 * + 72 - - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 918 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* Int64\(11\) \- Int64\(3\) \* Int64\(\-53\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / Int64\(\-51\) \* Int64\(82\) \+ \(\- Int64\(\-65\)\) \+ Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 * + 11 - + + 3 * - 53 AS col1, CAST ( NULL AS INTEGER ) / - 51 * 82 + - ( - 65 ) + + 64 AS col1 +---- +918 +NULL query II rowsort label-7181 SELECT ALL - MAX ( ALL - 49 ) col1, MAX ( + + 34 ) AS col2 @@ -37787,8 +38272,11 @@ SELECT - 25 * + COALESCE ( - 68, + 6 * - ( CASE + + 55 WHEN - COUNT ( * ) / - CO # Datafusion - Datafusion expected results: # Datafusion - Expected - -5327 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(88\)\) \* Int64\(60\) \+ Int64\(\-31\) \+ Int64\(\-16\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 88 * 60 + - 31 + - 16 col0, COUNT ( * ) AS col0 +---- +-5327 +1 query I rowsort SELECT ALL + - 31 + 23 @@ -37986,8 +38474,11 @@ SELECT + 0 * + 43 AS col1 # 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 "Int64\(2\) AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 2 col1, 47 col1 +---- +2 +47 query I rowsort SELECT + NULLIF ( + + 35, + + NULLIF ( - 3, - 29 ) ) AS col1 @@ -38927,8 +39418,11 @@ SELECT - + 96 + - ( + 80 ) / 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(91\)\)\)\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - - COUNT ( ALL + + 91 ) ) AS col1, + 2 col1 +---- +1 +2 query I rowsort label-7409 SELECT DISTINCT - NULLIF ( COUNT ( * ), + + 78 ) / + 90 + + - COUNT ( * ) - - MAX ( - - 7 ) + + + COUNT ( * ) + - - CASE 9 WHEN - 75 THEN NULL WHEN + 45 THEN 7 END * COUNT ( * ) AS col1 @@ -39088,8 +39582,12 @@ SELECT 48 + + - COUNT ( * ) * - - 50 AS col0 # Datafusion - Expected - 89 # Datafusion - Expected - -141642 # Datafusion - Expected - 8654 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col0" at position 0 and "Int64\(96\) \* \(\- Int64\(\-90\)\) \+ Int64\(14\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 89 AS col0, 43 * + - 54 * + + 61 AS col1, 96 * - - 90 + + 14 AS col0 +---- +-141642 +8654 +89 query II rowsort SELECT + 0, - 27 AS col1 @@ -39297,8 +39795,11 @@ 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\(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\. +query II valuesort SELECT - CASE + COUNT ( * ) WHEN - ( - 23 ) THEN NULL WHEN 78 * - 96 + - 82 THEN + - 19 ELSE NULL END AS col0, 2 col0 +---- +2 +NULL query II rowsort label-7480 SELECT 6 AS col0, - COUNT ( * ) @@ -39740,8 +40241,11 @@ SELECT + 75, - ( + 31 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - -835 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "Int64\(56\) \+ Int64\(\-11\) \* coalesce\(\(\- Int64\(\-81\)\), Int64\(\-82\) \+ Int64\(\-22\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 14 AS col0, + 56 + - 11 * + COALESCE ( - - 81, - 82 + - 22 ) AS col0 +---- +-835 +14 query I rowsort label-7563 SELECT - - 55 / 11 + + SUM ( + 77 ) + + 0 - - 46 AS col2 @@ -39839,8 +40343,11 @@ SELECT 47 - - - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-98\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 AS col1, - CAST ( - 98 AS INTEGER ) AS col1 +---- +-90 +98 query II rowsort SELECT - + 40, 27 * + 19 col1 @@ -40148,8 +40655,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( DISTINCT + 60 ) * - 97 - - 82 AS col1, COALESCE ( + 71, - ( - - COUNT ( * ) ) ) AS col1 +---- +-15 +71 query I rowsort SELECT + 82 + - 31 + 1 @@ -40234,8 +40744,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 8 AS col0, 49 / COUNT ( * ) + + ( + 70 ) AS col0 +---- +-8 +119 query II rowsort SELECT ALL - + 3 * - 48 + 21, ( + NULLIF ( + - 51, - + 57 / 86 ) ) * + ( + 81 ) + - 45 AS col2 @@ -40251,8 +40764,11 @@ SELECT ( - 71 ) * - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -8455 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col2" at position 0 and "Int64\(89\) \* Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 77 AS col2, 89 * + - 95 col2 +---- +-8455 +77 query I rowsort SELECT 56 + + - 77 @@ -40414,8 +40930,11 @@ SELECT DISTINCT + COUNT ( * ) / + + 41 + + SUM ( ALL - - 79 ) / + 83 - - 82 AS c # 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 "Int64\(\-97\) / Int64\(\-36\) AS col1" at position 0 and "Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 97 / + - 36 AS col1, - 84 AS col1 +---- +-84 +2 query I rowsort SELECT - 24 + - - 18 col1 @@ -40425,8 +40944,11 @@ SELECT - 24 + - - 18 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 "max\(DISTINCT Int64\(92\)\) / sum\(Int64\(\-63\)\) AS col1" at position 0 and "Int64\(\-50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( DISTINCT + 92 ) / + SUM ( - 63 ) AS col1, + ( + - 50 ) AS col1 +---- +-1 +-50 query I rowsort label-7692 SELECT + SUM ( ALL 68 ) * + 85 @@ -40983,8 +41505,11 @@ SELECT DISTINCT + 78 * - - 54 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col1" at position 0 and "Int64\(\-42\) \- \(\- Int64\(\-46\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 4 col1, - 42 - - - 46 AS col1 +---- +-4 +-88 query II rowsort SELECT ALL 5, 85 AS col2 @@ -41219,8 +41744,11 @@ SELECT ALL - 29 + 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -2408 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ Int64\(72\) AS col1" at position 0 and "Int64\(43\) \* Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 2 + + + 72 AS col1, 43 * + - 56 AS col1 +---- +-2408 +74 query II rowsort label-7843 SELECT NULLIF ( - 45, + 83 + - ( + 97 ) + + - MAX ( + 30 ) ), + CASE + - CAST ( NULL AS INTEGER ) WHEN - 39 / - - 42 THEN - - 26 + + 61 END * 81 * 56 AS col2 @@ -41484,8 +42012,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 26 AS col0, + 70 * - COUNT ( * ) AS col0 +---- +-26 +-70 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -41837,8 +42368,11 @@ SELECT ALL + 9 * - + 31 * - ( + 87 ) + - + 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \- Int64\(94\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 - + 94 AS col1, 83 AS col1 +---- +-31 +83 query II rowsort SELECT - ( 23 ) AS col1, 40 @@ -43467,8 +44001,11 @@ SELECT ALL - - 98 * - ( - - 0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 62 AS col2, ( 57 ) AS col2 +---- +57 +62 query I rowsort SELECT - 53 + - 74 + + 79 + 10 * + 9 @@ -43642,8 +44179,11 @@ SELECT ALL - COALESCE ( - 62, COUNT ( * ) * - CASE + 48 WHEN + 52 * + 63 THEN 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) / + COUNT ( * ) AS col2, COUNT ( * ) col2 +---- +1 +1 query I rowsort SELECT 62 * - 96 + - 89 AS col1 @@ -43780,8 +44320,11 @@ SELECT ALL 64, 97 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1087 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ Int64\(\-36\) \* Int64\(\-25\) \+ Int64\(90\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 97 + + - 36 * - 25 + + + 90 AS col0, 49 AS col0 +---- +1087 +49 query I rowsort SELECT ALL 67 + + - 83 @@ -44109,8 +44652,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(88\) WHEN Int64\(2\) THEN max\(DISTINCT Int64\(\-42\)\) WHEN Int64\(\-60\) THEN NULL END AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CASE 88 WHEN + 2 THEN + + MAX ( DISTINCT - 42 ) WHEN + - 60 THEN NULL END AS col0, COUNT ( * ) AS col0 +---- +1 +NULL query I rowsort SELECT ALL COALESCE ( 51, - + 15 ) * - + 28 + + 71 + - 79 @@ -44301,8 +44847,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(20\) \+ Int64\(41\) \+ Int64\(\-18\) \+ CAST\(NULL AS Int32\) \* Int64\(90\) \+ Int64\(22\) \* min\(DISTINCT Int64\(88\)\) \* Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 col1, COUNT ( * ) * CAST ( NULL AS INTEGER ) + COUNT ( * ) * 20 + 41 + - 18 + CAST ( NULL AS INTEGER ) * + 90 + 22 * MIN ( DISTINCT 88 ) * + ( + 40 ) AS col1 +---- +66 +NULL query II rowsort label-8433 SELECT 1 AS col0, 94 + + + 2 + COALESCE ( - 34, 32 ) / - 60 @@ -44357,8 +44906,11 @@ SELECT - 51 * + + ( + + COUNT ( * ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col1" at position 0 and "Int64\(60\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 88 AS col1, 60 / + COUNT ( * ) AS col1 +---- +-88 +60 query I rowsort SELECT + 73 + 89 + - - 37 @@ -44430,8 +44982,11 @@ SELECT DISTINCT + 42 + - 93 * + 97 + - COALESCE ( 35, - - 78 * + 75 ) / - COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \+ Int64\(2\) AS col1" at position 0 and "Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 78 + + 2 AS col1, + 77 AS col1 +---- +-76 +77 query I rowsort SELECT ALL 27 + 39 AS col0 @@ -44609,8 +45164,11 @@ SELECT DISTINCT 11 + 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "Int64\(\-34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 78 AS col1, ( + - 34 ) AS col1 +---- +-34 +78 query II rowsort label-8490 SELECT - ( + + ( COUNT ( * ) ) ) AS col2, - 62 @@ -44835,8 +45393,11 @@ SELECT - 59 * - 0 + 5 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 1584 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(43\)\) AS col2" at position 0 and "Int64\(99\) \* Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MIN ( 43 ) AS col2, 99 * + 16 AS col2 +---- +1584 +43 query I rowsort label-8533 SELECT CAST ( + 52 AS INTEGER ) col1 @@ -45219,8 +45780,11 @@ SELECT - 26 * 17 / + + 34 - + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 836 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col2" at position 0 and "Int64\(44\) \* Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 5 col2, + 44 * 19 AS col2 +---- +5 +836 query I rowsort label-8608 SELECT MIN ( DISTINCT - CAST ( - 23 AS INTEGER ) ) AS col1 @@ -45528,8 +46092,11 @@ SELECT ALL 27 * - + NULLIF ( 4, 82 * + - 24 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(\-19\) \+ Int64\(\-70\) \* Int64\(62\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 19 + - 70 * + 62 AS col0, + 1 AS col0 +---- +1 +NULL query II rowsort label-8664 SELECT ALL SUM ( ALL 1 ) + 87 AS col2, - ( + - 97 ) * + 18 * + - 56 col1 @@ -45598,8 +46165,11 @@ SELECT + 72 AS col0, COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 22 AS col0, 2 AS col0 +---- +-22 +2 query I rowsort label-8677 SELECT DISTINCT - + CASE 19 WHEN + - 82 + 40 THEN - 16 * + - 44 + + 85 WHEN + 14 THEN - + 43 WHEN - COUNT ( * ) THEN - CASE + 31 WHEN + 69 + 56 THEN - - 84 END / + + COUNT ( * ) + 85 - - + 6 ELSE NULL END AS col1 @@ -45739,8 +46309,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 74 * + - 0 AS col1, COUNT ( * ) * - 15 AS col1 +---- +-15 +0 query I rowsort SELECT - 43 * + 42 * 42 + + 70 AS col0 @@ -45986,8 +46559,12 @@ SELECT DISTINCT + COUNT ( ALL 3 ) # Datafusion - Expected - -6 # Datafusion - Expected - -1540 # Datafusion - Expected - -2280 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) AS col1" at position 0 and "\(\- Int64\(\-30\)\) \* Int64\(\-76\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 6 AS col1, + 44 * - 35, - - 30 * - 76 AS col1 +---- +-1540 +-2280 +-6 query I rowsort label-8750 SELECT - - CAST ( + 40 AS INTEGER ) - 94 @@ -46056,8 +46633,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * - 4 * 68 + + 41 - - 38 AS col2, 98 * + 27 AS col2 +---- +-193 +2646 query I rowsort SELECT DISTINCT - 6 * + 74 @@ -46207,14 +46787,20 @@ 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\(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\. +query IR valuesort 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 +---- +36 +NULL # 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 AS col2, 86 * - - COUNT ( * ) AS col2 +---- +3 +86 query I rowsort SELECT DISTINCT - 66 - 76 @@ -46552,8 +47138,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 144 -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\(\-86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 59 AS col0, + 58 - + - 86 AS col0 +---- +-59 +144 query I rowsort label-8858 SELECT - - CASE WHEN ( NULL ) = - 39 THEN NULL WHEN NOT + 39 + + 86 > NULL THEN MAX ( + 70 ) + + + 89 - - COUNT ( * ) + - + COUNT ( ALL 53 ) + - - 57 + + ( - - 26 ) * - 30 ELSE NULL END + + CAST ( + + 9 AS INTEGER ) + + 50 / 23 * - 88 * + COUNT ( * ) / COALESCE ( - 30, 44 - - 18 ) @@ -46824,8 +47413,11 @@ SELECT - 96 * - + 30 AS 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\) AS col0" at position 0 and "Int64\(66\) \+ Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT CAST ( NULL AS FLOAT8 ) AS col0, 66 + - 43 AS col0 +---- +23 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -46940,8 +47532,11 @@ SELECT ALL + 97 + 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "CASE Int64\(53\) WHEN Int64\(\-46\) \+ Int64\(21\) \+ \(\- Int64\(30\)\) \+ Int64\(62\) THEN coalesce\(Int64\(\-61\), Int64\(\-56\)\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 17 col0, + CASE + 53 WHEN - 46 + + 21 + - + 30 + + 62 THEN COALESCE ( - 61, - 56 ) ELSE NULL END AS col0 +---- +17 +NULL query I rowsort SELECT 23 * - 3 @@ -47035,8 +47630,11 @@ SELECT + 5, - 70 - + - COUNT ( DISTINCT - ( - - ( 37 ) ) ) / + + 42 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "Int64\(\-42\) \+ Int64\(\-40\) \+ Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 AS col1, - 42 + - 40 + - 32 AS col1 +---- +-114 +64 query I rowsort SELECT 86 * 78 AS col0 @@ -47868,8 +48466,12 @@ SELECT + 4 AS col1, MIN ( ALL ( - + 15 ) ) # Datafusion - Expected - -38 # Datafusion - Expected - 22 # Datafusion - Expected - -1 -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\(60\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 38 AS col0, 22, - COUNT ( + + 60 ) AS col0 +---- +-1 +-38 +22 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -47915,8 +48517,11 @@ SELECT - ( + - 26 ) * - + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 630 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* Int64\(10\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 63 * + 10 AS col2, 5 AS col2 +---- +5 +630 query I rowsort SELECT ( ( - 57 ) ) @@ -48216,8 +48821,11 @@ SELECT - 67 * 13 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col0" at position 0 and "CAST\(Int64\(\-3\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 99 AS col0, CAST ( + - 3 AS INTEGER ) col0 +---- +-3 +-99 query I rowsort label-9175 SELECT ALL - MIN ( ALL 57 ) / 42 * + + 42 @@ -48577,8 +49185,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 18 * + 65 * + + 38 AS col1, COUNT ( * ) - + 12 AS col1 +---- +-11 +-44460 query I rowsort label-9246 SELECT + + COUNT ( * ) - 16 @@ -48904,8 +49515,11 @@ SELECT ALL COUNT ( - + 17 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 74 AS col1, 62 AS col1 +---- +62 +74 query I rowsort label-9309 SELECT 4 / + 96 AS col0 @@ -49641,8 +50255,11 @@ SELECT + NULLIF ( + 7, + COUNT ( * ) ) * 11 + - 19 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 8550 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \+ Int64\(72\) AS col0" at position 0 and "Int64\(90\) \* Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 90 + + 72 AS col0, 90 * 95 AS col0 +---- +-18 +8550 query I rowsort label-9451 SELECT ALL - 32 + 32 * - 27 / CAST ( NULL AS INTEGER ) + - SUM ( ALL + + 50 ) @@ -49693,8 +50310,12 @@ SELECT DISTINCT 3 / + - 62 * 92 * + - 18 + - - 61 AS col1 # Datafusion - Expected - 25 # Datafusion - Expected - 27 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(25\)\)\) AS col2" at position 0 and "Int64\(\-76\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + - ( - + 25 ) AS col2, 27 AS col1, - 76 AS col2 +---- +-76 +25 +27 query I rowsort label-9461 SELECT COUNT ( * ) * + - ( - COUNT ( * ) ) + + 80 @@ -49733,8 +50354,11 @@ SELECT ALL + 75, + 20 + + 0 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 78 AS col0, CAST ( NULL AS INTEGER ) AS col0 +---- +78 +NULL query I rowsort label-9467 SELECT DISTINCT ( 58 ) * + CAST ( NULL AS INTEGER ) @@ -49834,8 +50458,11 @@ SELECT - + 21 + + 36 + 54 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "Int64\(\-19\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 95 AS col0, - 19 / COUNT ( * ) AS col0 +---- +-19 +95 query I rowsort label-9486 SELECT - - 47 / 15 * + COUNT ( * ) col1 @@ -50315,8 +50942,11 @@ SELECT DISTINCT COUNT ( 22 ) - + 7 * - 88 + 17 AS col1, + COUNT ( * ) - - 61 col # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 117 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ \(\- Int64\(36\)\) \+ Int64\(\-91\) \+ \(\- Int64\(\-26\)\) \- Int64\(35\) AS col1" at position 0 and "Int64\(18\) \+ Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 + - + ( 36 ) + - 91 + - - 26 - + + 35 AS col1, 18 + 99 col1 +---- +-50 +117 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -50371,8 +51001,11 @@ SELECT ALL + 86 * - MAX ( - 48 ) # 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 "Int64\(87\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 AS col1, 67 AS col1 +---- +67 +87 query I rowsort label-9587 SELECT - NULLIF ( - COUNT ( * ), + - COUNT ( * ) ) AS col1 @@ -50525,8 +51158,11 @@ SELECT - 28 * - 88 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col0" at position 0 and "Int64\(\-41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 43 col0, - 41 AS col0 +---- +-41 +-43 query I rowsort label-9615 SELECT + + MIN ( ALL + 23 ) @@ -50806,8 +51442,11 @@ SELECT COUNT ( * ) + + - 0 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - -915 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col2" at position 0 and "Int64\(15\) \* Int64\(\-61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 34 AS col2, 15 * + - 61 AS col2 +---- +-34 +-915 query I rowsort SELECT DISTINCT 48 + 56 @@ -51879,8 +52518,11 @@ SELECT - + 95 + - - 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -3500 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "Int64\(\-70\) \* Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 77 col0, - 70 * + 50 AS col0 +---- +-3500 +77 query I rowsort SELECT + ( - - 53 ) @@ -52145,8 +52787,11 @@ SELECT COUNT ( * ) * + - 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col0" at position 0 and "\(\- Int64\(73\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 43 AS col0, - ( + 73 ) col0 +---- +-73 +43 query I rowsort label-9927 SELECT 78 / - 81 AS col1 @@ -52337,8 +52982,11 @@ SELECT + 18 * + ( + COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(93\)\) AS col1" at position 0 and "Int64\(\-50\) \+ Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 93 AS col1, - 50 + 94 AS col1 +---- +-93 +44 query I rowsort SELECT - 5 * 44 + - 64 + 18 AS col1 diff --git a/data/sqlite/random/expr/slt_good_62.slt b/data/sqlite/random/expr/slt_good_62.slt index 8aa60df..6aac26f 100644 --- a/data/sqlite/random/expr/slt_good_62.slt +++ b/data/sqlite/random/expr/slt_good_62.slt @@ -134,8 +134,11 @@ SELECT + 90 * + 64 AS col1 # 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\(\-74\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 74 col2, 67 AS col2 +---- +-74 +67 query I rowsort label-19 SELECT + COUNT ( * ) + + + 88 @@ -239,8 +242,11 @@ SELECT + 59 * + 0 + 90 + - 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 784 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(65\) WHEN Int64\(\-22\) THEN \(\- Int64\(\-99\)\) WHEN Int64\(\-87\) THEN NULL END\) \* Int64\(33\) AS col0" at position 0 and "nullif\(Int64\(56\), Int64\(24\) / Int64\(71\) \+ Int64\(\-98\)\) \* Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CASE 65 WHEN - 22 THEN - - 99 WHEN - 87 THEN NULL END * + + 33 AS col0, NULLIF ( + 56, + 24 / 71 + - 98 ) * 14 AS col0 +---- +784 +NULL query II rowsort SELECT + - 64 AS col1, + 84 @@ -339,8 +345,11 @@ SELECT ALL - 32 + - + 89 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 117 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-37\)\) / Int64\(\-56\) \* Int64\(75\) AS col1" at position 0 and "Int64\(53\) \+ Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( ALL + - 37 ) / + - 56 * 75 AS col1, 53 + 64 AS col1 +---- +0 +117 query I rowsort label-58 SELECT ALL COUNT ( * ) + 25 AS col0 @@ -426,8 +435,11 @@ SELECT - 27 * 70 + - 72 - + 34 + - + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(98\) AS Int32\)\)\) AS col1" at position 0 and "Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - CAST ( + 98 AS INTEGER ) AS col1, + 98 AS col1 +---- +98 +98 query I rowsort SELECT 46 + 78 @@ -496,8 +508,11 @@ SELECT ALL 70 AS col1, - 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 AS col2, 64 AS col2 +---- +46 +64 query II rowsort label-88 SELECT 27 AS col0, CAST ( 74 AS INTEGER ) * - 23 * NULLIF ( + 75, 30 ) * + - 32 - 95 + + 91 - + CAST ( NULL AS INTEGER ) AS col2 @@ -1225,8 +1240,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 * 43 * + 99 * + 58 AS col2, 46 * - COUNT ( * ) AS col2 +---- +-46 +19011762 query I rowsort label-226 SELECT NULLIF ( 84, - + MAX ( + + 56 ) ) + - + 11 / + 33 @@ -1478,8 +1496,11 @@ SELECT ALL ( + COUNT ( * ) ) * - - 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -4794 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "Int64\(\-51\) \* Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 3 AS col1, - 51 * 94 AS col1 +---- +-4794 +3 query I rowsort label-276 SELECT + CAST ( + + 63 AS INTEGER ) - + 85 col0 @@ -1654,8 +1675,11 @@ 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\(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\. +query II valuesort SELECT ( + 9 ) * + + NULLIF ( + COUNT ( * ), + 12 ) AS col2, + 91 * + - ( + - 15 ) + + 63 col2 +---- +1428 +9 query I rowsort label-308 SELECT SUM ( - 80 ) + 49 col0 @@ -1698,8 +1722,11 @@ SELECT 78 / - - 66 + ( + 75 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20468 # Datafusion - Expected - -125280 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* Int64\(34\) \* Int64\(86\) AS col0" at position 0 and "Int64\(12\) \* coalesce\(Int64\(58\), Int64\(\-48\) \* Int64\(\-39\) \- Int64\(30\)\) \* Int64\(\-15\) \* Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 7 * 34 * + 86 AS col0, 12 * + COALESCE ( 58, - 48 * - 39 - 30 ) * - 15 * + + 12 AS col0 +---- +-125280 +20468 query I rowsort SELECT ( + 69 ) + 70 * - 41 @@ -1748,8 +1775,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ Int64\(44\) \+ \(\- Int64\(82\)\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 88 + 44 + - + 82 AS col0, 85 AS col0 +---- +50 +85 query I rowsort SELECT 30 - + 75 @@ -1801,8 +1831,11 @@ SELECT 99 * 9 * + 92 * COALESCE ( CAST ( + 76 AS INTEGER ), + + 14, - COALESCE ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 112 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \- Int64\(\-92\) AS col1" at position 0 and "Int64\(18\) / Int64\(85\) \* Int64\(62\) \- CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 20 - - 92 AS col1, 18 / 85 * 62 - + + CAST ( NULL AS INTEGER ) AS col1 +---- +112 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -1894,8 +1927,12 @@ SELECT 9 - + 92 * 38 - - 39 AS col1 # Datafusion - Expected - -61 # Datafusion - Expected - -4750 # Datafusion - Expected - -3315 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col0" at position 0 and "Int64\(65\) \* \(\- Int64\(51\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 61 col0, COUNT ( * ) * - SUM ( DISTINCT + 58 ) * 96 - - 31 - 95 + 7 * + 3 * SUM ( ALL - - 42 ), + 65 * - + 51 col0 +---- +-3315 +-4750 +-61 query I rowsort SELECT ALL + 10 + - - 39 AS col1 @@ -1982,8 +2019,11 @@ SELECT + - 30 * + + 14 - + ( - 64 ) + - 0 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 94 col1, COUNT ( * ) + COUNT ( * ) col1 +---- +2 +94 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -2028,8 +2068,11 @@ SELECT DISTINCT 20 - COUNT ( * ) * + 58 + - + COUNT ( * ) * - 52 * + + CAST ( + # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 4610 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(70\)\) AS col2" at position 0 and "Int64\(\-26\) \+ Int64\(76\) \* Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 70 AS col2, - 26 + + 76 * 61 AS col2 +---- +-70 +4610 query I rowsort label-377 SELECT ALL - 19 / + 85 @@ -2091,8 +2134,11 @@ SELECT + ( 35 ) + + - COALESCE ( - 8, + 12 ) / - + 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) / CAST\(NULL AS Int32\) \* Int64\(6\) \* Int64\(\-46\) AS col1" at position 0 and "Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 6 / CAST ( NULL AS INTEGER ) * + 6 * + - 46 AS col1, + 68 AS col1 +---- +68 +NULL query I rowsort label-389 SELECT ALL COALESCE ( - + 47, + 84 * 27 + - 15 * + + 38 / + 97, + 95 + - CASE - 80 WHEN - ( CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 35 THEN 94 / - 9 ELSE NULL END, - ( - 82 ) * SUM ( ALL 40 ) ) @@ -2609,8 +2655,12 @@ SELECT DISTINCT - 76 * 54 * 36 AS col0 # Datafusion - Expected - 32 # Datafusion - Expected - 27260 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \+ Int64\(44\) AS col2" at position 0 and "Int64\(47\) \* Int64\(\-29\) \* Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 12 + 44 AS col2, 47 * - 29 * + - 20 AS col2, 26 col1 +---- +26 +27260 +32 query I rowsort label-489 SELECT - 29 * + + COUNT ( * ) AS col0 @@ -2865,8 +2915,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + - COUNT ( * ) + ( - SUM ( DISTINCT 11 ) ) + + + COUNT ( * ) / + 61 AS col1, - 83 col1 +---- +-12 +-83 query I rowsort SELECT - 42 + + - 55 * 87 @@ -2895,8 +2948,11 @@ SELECT ALL - 11, - 99 + + - 2 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 3048 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- \(\- nullif\(Int64\(\-45\), Int64\(39\)\)\)\)\)\) AS col0" at position 0 and "Int64\(\-13\) \+ Int64\(36\) \- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(17\)\) \+ Int64\(27\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CASE Int64\(\-19\) WHEN Int64\(11\) \- count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(\-2\) THEN Int64\(40\) \* CAST\(Int64\(\-55\) AS Int32\) WHEN \(\- \(\- CAST\(NULL AS Float64\)\)\) THEN NULL ELSE Int64\(\-99\) \+ Int64\(\-52\) \+ \(\- Int64\(\-39\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +3048 +45 query II rowsort label-543 SELECT ALL + + 77 + + + ( - + 14 ) col0, COUNT ( * ) AS col2 @@ -3322,8 +3378,12 @@ SELECT - 13 * - + 99 * + 44 # Datafusion - Expected - 8 # Datafusion - Expected - NULL # Datafusion - Expected - -913 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "Int64\(70\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 8 AS col2, + 70 * ( + CAST ( NULL AS INTEGER ) ) AS col2, - 11 * + 83 col2 +---- +-913 +8 +NULL query I rowsort label-626 SELECT COALESCE ( + 57, - COUNT ( * ) ) @@ -3343,8 +3403,11 @@ NULL # 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 col2" at position 0 and "Int64\(0\) \* Int64\(\-82\) \* Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 AS col2, 0 * - 82 * + 45 AS col2 +---- +0 +17 query II rowsort SELECT + 19, 26 AS col1 @@ -3399,8 +3462,11 @@ SELECT ALL 46 * - 33 + ( - 68 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "Int64\(\-53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 85 AS col2, - 53 AS col2 +---- +-53 +85 query II rowsort SELECT ALL + 37, 46 * - 34 AS col2 @@ -3675,8 +3741,11 @@ 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\(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\. +query II valuesort SELECT - CASE - 3 WHEN + 2 THEN - 36 WHEN COUNT ( * ) THEN NULL WHEN 76 THEN + 60 END AS col2, - 27 AS col2 +---- +-27 +NULL query I rowsort SELECT 34 * 10 @@ -3828,8 +3897,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -104 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) / Int64\(3\) / Int64\(39\) AS col1" at position 0 and "Int64\(\-43\) \+ Int64\(\-62\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 / 3 / + 39 AS col1, - 43 + - 62 + COUNT ( * ) AS col1 +---- +-104 +0 query II rowsort label-721 SELECT + 45 * 63 * - COUNT ( * ) - 14 AS col2, COUNT ( * ) * - 86 - - - COUNT ( * ) @@ -4389,8 +4461,11 @@ 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\(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\. +query II valuesort SELECT - 78 / + COUNT ( * ) - + 64 col0, + 2 AS col0 +---- +-142 +2 query II rowsort label-829 SELECT 79 / - 16 AS col2, 94 AS col0 @@ -4517,8 +4592,11 @@ SELECT COUNT ( DISTINCT NULLIF ( + 55, - + 72 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 col1, + 19 AS col1 +---- +19 +33 query II rowsort label-853 SELECT - COUNT ( ALL - - 4 ) / - 53, + 76 AS col2 @@ -4974,8 +5052,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 AS col0, - 51 * - - 25 * + + 8 / - COUNT ( * ) AS col0 +---- +10200 +35 query I rowsort SELECT 7 + 14 @@ -5037,8 +5118,11 @@ SELECT ALL - CASE + COUNT ( * ) WHEN AVG ( ALL + 59 ) THEN NULL ELSE + CAST ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col1" at position 0 and "Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 61 col1, + 95 AS col1 +---- +61 +95 query I rowsort label-953 SELECT - CASE - - 54 WHEN - - CAST ( - 85 AS INTEGER ) THEN NULL WHEN + - NULLIF ( - - 92, 81 ) THEN - 64 ELSE + 9 + + + ( + - 70 ) END * + + CAST ( 27 AS INTEGER ) + - 34 * - 81 * + - 39 + - 90 + - + 28 * - SUM ( + ( - - 72 ) ) - 30 + - CAST ( - 5 AS INTEGER ) @@ -5227,8 +5311,11 @@ SELECT - 7 / + 26 * + + COUNT ( ALL 66 ) * + 1 * - + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) \+ Int64\(11\) AS col1" at position 0 and "Int64\(94\) / Int64\(82\) \* Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 73 + + 11 AS col1, 94 / 82 * 38 col1 +---- +-62 +38 query I rowsort label-989 SELECT + COUNT ( * ) - - - 87 * - ( - + COUNT ( - + 96 ) ) - + + 58 @@ -5284,8 +5371,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -812 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) \* Int64\(28\) AS col1" at position 0 and "Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 29 * 28 AS col1, - 40 AS col1 +---- +-40 +-812 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -5861,8 +5951,11 @@ SELECT - COUNT ( * ) + - 22 * - 99 * - NULLIF ( + - CAST ( - ( - 64 ) AS INTEGER # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 AS col0, 5 AS col0 +---- +5 +90 query I rowsort label-1111 SELECT - ( - - CASE - 66 WHEN - NULLIF ( + ( - 26 ), 46 * + - 32 ) THEN + 48 * COUNT ( * ) END ) @@ -5977,8 +6070,11 @@ 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\(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\. +query II valuesort SELECT ALL - NULLIF ( 34, + - COUNT ( * ) * 41 ) * 16 / - + MIN ( ALL 50 ) AS col1, - 79 AS col1 +---- +-79 +10 query I rowsort label-1133 SELECT 97 * + ( + 55 ) + + - 85 - + + CAST ( NULL AS INTEGER ) * - NULLIF ( ( 43 ), + 44 ) + + - 36 + + + 23 * + + 84 * 63 * + 57 / - + 92 AS col1 @@ -6056,8 +6152,11 @@ SELECT DISTINCT - 42 * + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(7\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( + + 7 ) AS col1, ( CAST ( NULL AS INTEGER ) ) AS col1 +---- +1 +NULL query I rowsort SELECT ALL 95 * + 22 @@ -6177,8 +6276,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - + COUNT ( * ) - 18 AS col2, - 77 AS col2 +---- +-19 +-77 query I rowsort SELECT ALL - NULLIF ( - 71, + - 69 ) AS col0 @@ -6225,8 +6327,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(18\) \+ Int64\(41\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) + + + 18 + + 41 AS col1, COUNT ( * ) AS col1 +---- +1 +60 query I rowsort SELECT 22 * 88 AS col1 @@ -6346,8 +6451,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( 11 ) * - COUNT ( * ) AS col2, 39 col2 +---- +-11 +39 query II rowsort label-1202 SELECT DISTINCT - 85 AS col1, 56 + - COUNT ( * ) @@ -6725,8 +6833,11 @@ 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\(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\. +query II valuesort 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 +---- +-76 +196417 query I rowsort label-1274 SELECT - ( CAST ( NULL AS INTEGER ) ) AS col2 @@ -6775,8 +6886,11 @@ SELECT ALL + ( + 96 ) / + 53 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 AS col1, 64 col1 +---- +64 +77 query I rowsort label-1283 SELECT - 46 / - 81 + - + 17 AS col0 @@ -6980,8 +7094,11 @@ SELECT 76 * ( + 67 ) # 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\(50\) \- \(\- Int64\(\-49\)\) AS col1" at position 0 and "min\(DISTINCT Int64\(32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 - - - 49 AS col1, MIN ( DISTINCT + 32 ) AS col1 +---- +1 +32 query II rowsort SELECT ( - 37 ) * 43, 24 + + - 98 AS col0 @@ -6992,8 +7109,11 @@ SELECT ( - 37 ) * 43, 24 + + - 98 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) / Int64\(\-16\) AS col1" at position 0 and "Int64\(\-23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 88 / - 16 AS col1, - 23 AS col1 +---- +-23 +-5 query II rowsort label-1324 SELECT 66 / - CAST ( 8 AS INTEGER ), - MIN ( + 87 ) AS col2 @@ -7157,8 +7277,11 @@ SELECT - COALESCE ( + 73, - 47, 50 * 53 / + 82 ) - + 56 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8562 # Datafusion - Expected - 455 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \* \(\- \(\- coalesce\(\(\- \(\- Int64\(92\)\)\), Int64\(\-6\)\)\)\) \+ Int64\(6\) AS col2" at position 0 and "Int64\(5\) \* \(\- Int64\(\-91\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 93 * - - COALESCE ( - - ( 92 ), - 6 ) + + 6 AS col2, 5 * - - 91 AS col2 +---- +455 +8562 query II rowsort label-1355 SELECT DISTINCT + 45 * - 51 + - 13 AS col2, SUM ( ALL + 82 ) * + MIN ( DISTINCT - - 27 ) + - SUM ( ALL 57 ) + - SUM ( - - 7 ) + + 9 + - + 58 / + 74 @@ -7194,8 +7317,11 @@ SELECT ALL - 6 * ( - - 17 ) / - 22 + 30 - + 16 + - 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 AS col2, + 36 AS col2 +---- +36 +48 query I rowsort label-1362 SELECT - COUNT ( * ) * 46 @@ -8747,8 +8873,11 @@ SELECT ALL + NULLIF ( + + 72, + - 87 - + - 6 ) * - + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3478 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* Int64\(92\) \+ CAST\(\(\- min\(Int64\(\-74\)\)\) AS Int32\) AS col1" at position 0 and "min\(Int64\(\-60\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 * 92 + + + CAST ( - MIN ( ALL + - 74 ) AS INTEGER ) col1, MIN ( + - 60 ) AS col1 +---- +-60 +3478 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -9140,8 +9269,11 @@ SELECT ALL NULLIF ( + 96, 96 * - + 30 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col1, 38 AS col1 +---- +38 +NULL query II rowsort label-1742 SELECT ALL MAX ( ALL + ( + 46 ) ) - SUM ( - + 36 ) AS col0, + COUNT ( * ) / - 9 @@ -9340,8 +9472,11 @@ SELECT ALL 83, 43 + + 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\(67\) AS col1" at position 0 and "Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 AS col1, 4 AS col1 +---- +4 +67 query I rowsort SELECT DISTINCT ( + 3 ) - - 57 @@ -9467,8 +9602,11 @@ SELECT ALL - ( 79 ) col0 # 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\(72\)\) \+ Int64\(72\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 72 + + + 72 AS col2, 6 AS col2 +---- +0 +6 query II rowsort SELECT DISTINCT - 68 AS col0, - 4 @@ -9758,8 +9896,11 @@ SELECT - MIN ( DISTINCT - - NULLIF ( + 94, - 62 ) ) + 45 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "Int64\(35\) / Int64\(\-71\) \* Int64\(49\) \* \(\- CASE Int64\(\-84\) WHEN Int64\(94\) \+ Int64\(\-70\) THEN NULL WHEN Int64\(\-39\) \* Int64\(76\) THEN CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(4\) ELSE Int64\(64\) \* Int64\(34\) END\) \+ Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-10 +38 query I rowsort SELECT DISTINCT + 71 + 50 AS col1 @@ -9892,8 +10033,11 @@ SELECT - + 38 * + COALESCE ( - 29, NULLIF ( - 2, 51 * 72 ), - 75, + 27 * 96 + + # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - -1729768 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col0" at position 0 and "Int64\(32\) \- Int64\(41\) \+ Int64\(\-26\) \* Int64\(28\) \* Int64\(54\) \* coalesce\(Int64\(44\), \(\- count\(Int64\(51\)\)\)\) \+ Int64\(52\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-83\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 78 AS col0, 32 - + 41 + - 26 * 28 * + 54 * COALESCE ( 44, - COUNT ( ALL + 51 ) ) + 52 - - + COUNT ( * ) * - 83 / COUNT ( * ) AS col0 +---- +-1729768 +-78 query I rowsort label-1883 SELECT ALL + 93 * - SUM ( + - 10 ) * 58 * 88 * + 78 AS col2 @@ -10159,8 +10303,11 @@ SELECT DISTINCT 14, + 75 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "Int64\(\-72\) \+ Int64\(\-23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 64 AS col1, - 72 + - 23 AS col1 +---- +-95 +64 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -10213,8 +10360,11 @@ SELECT + 91 - 35 + 98 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63984 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \* \(\- Int64\(62\)\) \* Int64\(43\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 24 * - + 62 * + 43 AS col2, 54 AS col2 +---- +54 +63984 query I rowsort SELECT + - ( + 55 ) @@ -10299,8 +10449,11 @@ SELECT DISTINCT 64 + + COUNT ( DISTINCT 19 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "Int64\(45\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(88\) / \(\- max\(DISTINCT CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 AS col1, 45 * - - COUNT ( * ) * 88 / - + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 +---- +45 +NULL query I rowsort SELECT 63 * - 93 @@ -10805,8 +10958,11 @@ SELECT - 60 + 1 col1 # 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 "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 91 AS col0, 1 AS col0 +---- +1 +91 query I rowsort label-2057 SELECT 53 + + SUM ( 47 ) * 95 col0 @@ -11553,8 +11709,11 @@ SELECT 53 + + 47 # 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 "coalesce\(Int64\(67\), \(\- Int64\(\-62\)\) \- Int64\(15\) \* Int64\(26\)\) AS col0" at position 0 and "Int64\(12\) \+ Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( 67, - - 62 - 15 * 26 ) AS col0, 12 + 54 AS col0 +---- +66 +67 query I rowsort label-2197 SELECT 45 / MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col0 @@ -12196,14 +12355,20 @@ SELECT NULLIF ( - - 7, + 0 ) * 74 * - + NULLIF ( 57, 68 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col0" at position 0 and "Int64\(61\) \+ Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 75 AS col0, ( 61 ) + + - 1 AS col0 +---- +60 +75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 35308 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "coalesce\(\(\- Int64\(\-30\)\), Int64\(0\), count\(Int64\(9\)\)\) \* \(\- max\(CAST\(Int64\(\-20\) AS Int32\)\)\) \* \(\- Int64\(\-59\)\) \+ Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 AS col0, + COALESCE ( - - 30, - 0, COUNT ( 9 ) ) * - MAX ( + CAST ( - 20 AS INTEGER ) ) * - - 59 + - 92 AS col0 +---- +35308 +99 query I rowsort SELECT 1 + + - 2 @@ -12249,8 +12414,12 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-25\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 26 / + 80 AS col2, - 83 * - 33 + 61, COUNT ( * ) + - 25 AS col2 +---- +-24 +0 +2800 query II rowsort label-2329 SELECT 32 * - COALESCE ( 43, + 91 / - 32 ), + MAX ( ALL 50 ) AS col2 @@ -12786,8 +12955,11 @@ 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\(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\. +query II valuesort SELECT - ( 79 ) + + - NULLIF ( + + 79, + 38 * 28 + + COUNT ( * ) / 97 ) AS col1, - 12 AS col1 +---- +-12 +-158 query I rowsort SELECT - - 80 * 73 - + 13 @@ -12949,8 +13121,11 @@ SELECT + 43 AS col0, 41 - - ( NULLIF ( + + 99, - ( + 18 ) ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 146 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col0" at position 0 and "Int64\(54\) \+ Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 44 AS col0, 54 + 92 AS col0 +---- +-44 +146 query I rowsort label-2462 SELECT + COALESCE ( + - 14, 27 + 21, COALESCE ( - + 74, + NULLIF ( - 24, - COUNT ( * ) ) * CASE - + AVG ( ALL - 88 ) WHEN + ( - CASE 28 WHEN - 22 * + 16 / + 78 THEN + CASE + 97 WHEN COUNT ( DISTINCT 36 ) + 52 + - 85 THEN - 47 WHEN - + ( + 55 ) + - - 22 + + NULLIF ( 89, + 39 ) + COUNT ( * ) THEN + COALESCE ( CAST ( NULL AS INTEGER ), 22, ( 56 ) * + 13 ) ELSE NULL END + 7 WHEN + 4 * 12 + - 42 THEN 27 ELSE NULL END ) - + 63 * CAST ( 67 AS FLOAT8 ) THEN - 5 ELSE NULL END, 12 ) ) + - CASE - 38 WHEN CASE 23 WHEN + 55 THEN 92 * 48 ELSE NULL END THEN + 17 * + 31 WHEN 76 THEN NULL ELSE 75 END col2 @@ -13203,8 +13378,11 @@ SELECT DISTINCT 37, 48 * + - 50 + + COUNT ( * ) / + 97 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "Int64\(\-21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 41 AS col2, - 21 AS col2 +---- +-21 +41 query II rowsort SELECT - 42 AS col0, - 39 @@ -13501,8 +13679,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( + 79, 10 ) AS col1, + 77 * + COUNT ( * ) * - 38 AS col1 +---- +-2926 +79 query I rowsort label-2566 SELECT COUNT ( * ) * 66 + + - MIN ( ALL + 93 ) @@ -13739,8 +13920,11 @@ SELECT ALL 10 * + MIN ( - 18 ) + - 31 # 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 "max\(DISTINCT \(\- Int64\(\-37\)\)\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( DISTINCT - - 37 ) AS col0, 93 col0 +---- +37 +93 query I rowsort SELECT + ( 4 ) + - 62 AS col0 @@ -13755,8 +13939,11 @@ SELECT - 45 / - 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, - 16 AS col2 +---- +-16 +1 query I rowsort label-2615 SELECT DISTINCT + COUNT ( * ) * + + 45 @@ -13791,8 +13978,11 @@ 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\(1\)\) AS count\(\*\)\) \- Int64\(\-35\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MIN ( + 72 ) AS col1, COALESCE ( + + 84, - COUNT ( * ) - - 35 ) col1 +---- +72 +84 query I rowsort SELECT ALL 91 + ( - 18 ) + + + 6 + + 95 - + 88 * 48 @@ -13802,8 +13992,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 AS col0, COUNT ( * ) * 25 AS col0 +---- +17 +25 query II rowsort SELECT ALL - 39 AS col1, 8 @@ -14676,8 +14869,11 @@ SELECT 30 - - ( + 97 ) / MAX ( - 50 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - -1584 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col2" at position 0 and "Int64\(62\) \* Int64\(\-26\) \+ Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 66 AS col2, 62 * - 26 + + 28 AS col2 +---- +-1584 +-66 query II rowsort label-2791 SELECT 69 / + 63 + - + 26 * ( - ( - 11 ) ), 28 AS col0 @@ -14744,8 +14940,11 @@ SELECT - CAST ( - 2 AS INTEGER ) + + + 54 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18361 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \+ Int64\(\-11\) \* \(\- Int64\(\-76\)\) \* \(\- coalesce\(Int64\(\-22\), Int64\(46\) / Int64\(3\), \(\- Int64\(93\)\) \* Int64\(28\) \+ Int64\(\-93\)\)\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 31 + - 11 * + - ( + - 76 ) * - COALESCE ( - 22, 46 / + 3, - + 93 * + + 28 + + - 93 ) col2, 98 AS col2 +---- +-18361 +98 query I rowsort SELECT DISTINCT - 68 + - 40 @@ -15194,8 +15393,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 98 + + - 80 AS col0, - 35 * CASE - 75 WHEN + AVG ( - 61 ) THEN - COUNT ( * ) END AS col0 +---- +18 +NULL query I rowsort SELECT ALL 10 * 45 AS col0 @@ -15422,8 +15624,11 @@ SELECT COUNT ( * ) / + 71 * - ( - 57 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 158 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ \(\- Int64\(1\)\) \+ Int64\(74\) AS col0" at position 0 and "Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 85 ) + - + 1 + + ( 74 ) AS col0, 52 col0 +---- +158 +52 query I rowsort SELECT ALL 50 - - 90 * + 99 @@ -15657,8 +15862,11 @@ NULL # 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 col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 5 AS col0, 1 col0 +---- +-5 +1 query II rowsort label-2978 SELECT + 55 col0, COUNT ( * ) * ( + 50 ) + - 55 * 44 * 80 AS col1 @@ -15900,8 +16108,11 @@ SELECT 39 * - 97 AS col2 # 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 col0" at position 0 and "Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 AS col0, - 1 AS col0 +---- +-1 +56 query I rowsort SELECT + 92 * - 11 + - + 8 AS col1 @@ -17091,8 +17302,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-60\) \+ Int64\(81\) \* Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 - MIN ( + + 50 ) col2, COUNT ( * ) * - 60 + 81 * + 78 col2 +---- +-11 +6258 query I rowsort SELECT DISTINCT 3 * + 47 @@ -17218,8 +17432,11 @@ SELECT ALL - - ( 86 ) + + - 11 - + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "Int64\(32\) \+ count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(Int64\(\-39\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 74 AS col1, 32 + COUNT ( * ) - - CAST ( - 39 AS INTEGER ) AS col1 +---- +-6 +74 query I rowsort label-3281 SELECT + 67 + + 76 + + 12 + CAST ( NULL AS INTEGER ) / - + 1 + - 60 col0 @@ -17544,8 +17761,11 @@ SELECT ALL 46 * + 82 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -257 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ Int64\(\-39\) \* Int64\(7\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 16 + - 39 * 7 AS col1, 44 col1 +---- +-257 +44 query I rowsort SELECT ALL 39 * 70 AS col1 @@ -17605,8 +17825,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * 29 + - 42 AS col1, + 88 - COUNT ( * ) - + COUNT ( * ) + - ( 48 ) - + 9 / + 42 AS col1 +---- +-13 +38 query I rowsort SELECT - 67 * - 73 @@ -18394,8 +18617,11 @@ SELECT ALL + COALESCE ( 29, SUM ( - 50 ) / - 30 * NULLIF ( - - 6, + 54 / + 63 + # Datafusion - Datafusion expected results: # Datafusion - Expected - -4042 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* Int64\(\-94\) AS col1" at position 0 and "Int64\(\-23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 43 * + - 94 AS col1, - 23 AS col1 +---- +-23 +-4042 query I rowsort label-3506 SELECT ALL + NULLIF ( - 96, + CASE - - CASE - COUNT ( ALL 90 ) WHEN 57 THEN + 92 - + COALESCE ( + 94, + 22 ) ELSE NULL END WHEN + 78 * 83 THEN + 83 ELSE + COUNT ( * ) END ) @@ -18460,8 +18686,11 @@ 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\(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\. +query II valuesort SELECT ALL + ( - COUNT ( * ) ) col2, 53 * - ( - 65 ) * - 27 * + 59 AS col2 +---- +-1 +-5487885 query I rowsort label-3518 SELECT ALL COUNT ( 60 ) * 82 AS col2 @@ -18812,8 +19041,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -142 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \+ Int64\(\-94\) AS col2" at position 0 and "\(\- coalesce\(Int64\(\-98\), Int64\(67\) \- Int64\(65\), \(\- Int64\(\-10\)\) \+ count\(\(\- Int64\(36\)\)\) \+ Int64\(20\) / \(\- Int64\(\-47\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 48 + - 94 AS col2, - COALESCE ( - 98, + 67 - + 65, - - 10 + + COUNT ( ALL - + 36 ) + 20 / - - 47 ) AS col2 +---- +-142 +98 query I rowsort label-3585 SELECT - 22 - 84 * + MAX ( ALL - 57 ) AS col2 @@ -19448,8 +19680,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -350 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \+ Int64\(13\) \* Int64\(\-20\) AS col1" at position 0 and "Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 + + + 13 * - 20 col1, - 20 AS col1 +---- +-20 +-350 query I rowsort SELECT + 96 * - 85 @@ -20121,8 +20356,11 @@ SELECT DISTINCT - 71 * SUM ( DISTINCT + 4 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-17\) AS Int32\) AS col2" at position 0 and "Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( + - 17 AS INTEGER ) AS col2, - 37 AS col2 +---- +-17 +-37 query I rowsort label-3837 SELECT - CAST ( NULL AS INTEGER ) + - 72 @@ -20449,8 +20687,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2828 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ Int64\(0\) \- \(\- Int64\(99\)\) \* Int64\(28\) AS col0" at position 0 and "Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 56 + 0 - - + 99 * 28 AS col0, + 76 AS col0 +---- +2828 +76 query I rowsort label-3899 SELECT NULLIF ( + 0, + 40 * + + 80 * CASE - 23 WHEN + + CAST ( NULL AS FLOAT8 ) * + - 90 THEN NULL WHEN - 8 THEN NULL ELSE - + MIN ( ALL + 34 ) END * - COUNT ( * ) + - + 79 ) + 51 @@ -20678,8 +20919,12 @@ NULL # Datafusion - Expected - 0 # Datafusion - Expected - 648 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "Int64\(\-24\) \* Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + + 0 AS col0, - 24 * + - 27 AS col0, - NULLIF ( + - 77, - - COUNT ( * ) + - - 16 ) - + 37 AS col1 +---- +0 +40 +648 query I rowsort SELECT DISTINCT - ( + 37 ) @@ -20733,8 +20978,11 @@ SELECT DISTINCT COUNT ( ALL - 16 ) + + 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, 10 AS col0 +---- +1 +10 query I rowsort label-3952 SELECT + 51 / + 47 @@ -20773,8 +21021,11 @@ SELECT ALL 89, 43 * + + 20 + + 33 * - COUNT ( * ) + 45 + COALESCE ( - 46, COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - 5917 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \* Int64\(\-61\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 97 * - 61 AS col0, + 30 AS col0 +---- +30 +5917 query I rowsort SELECT ALL + 90 * 96 @@ -20922,8 +21173,11 @@ SELECT DISTINCT + 81 AS col1, + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "sum\(Int64\(92\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 63 AS col0, SUM ( 92 ) AS col0 +---- +63 +92 query I rowsort SELECT + - 87 + + 45 + + 82 * + 35 * + 46 * + - 92 @@ -21031,8 +21285,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - -3142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(65\) AS Int32\)\) AS col0" at position 0 and "Int64\(58\) \* Int64\(\-54\) \+ \(\- Int64\(53\)\) / Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( 65 AS INTEGER ) AS col0, 58 * - 54 + - ( + + 53 ) / + 5 AS col0 +---- +-3142 +-65 query I rowsort label-4007 SELECT - 49 * COUNT ( * ) / - ( - 42 ) + + ( - CASE 77 WHEN - 51 THEN - ( - + 5 ) * MIN ( DISTINCT - + 41 ) / - - 44 END ) AS col0 @@ -21350,8 +21607,11 @@ SELECT + 30 - - + 75 # Datafusion - Datafusion 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\(11\)\) AS col1" at position 0 and "Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( DISTINCT + 11 ) AS col1, 1 col1 +---- +1 +1 query I rowsort SELECT ALL - 70 + - 31 @@ -21646,8 +21906,11 @@ SELECT DISTINCT ( + 0 ) * - 48 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- nullif\(Int64\(41\), Int64\(87\)\)\)\) AS Int32\) AS col1" at position 0 and "\(\- Int64\(75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - - NULLIF ( + 41, + 87 ) AS INTEGER ) AS col1, ( - ( 75 ) ) col1 +---- +-75 +41 query I rowsort label-4124 SELECT ALL + 61 / - + 66 + - 55 AS col2 @@ -21819,8 +22082,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 68 + - 11 AS col2, 46 - + - COUNT ( * ) AS col2 +---- +47 +57 query I rowsort label-4156 SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( DISTINCT - 48 ) @@ -21974,8 +22240,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 2184 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-53\)\)\) AS col0" at position 0 and "Int64\(28\) \* Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - - 53 ) col0, + 28 * 78 AS col0 +---- +-53 +2184 query I rowsort label-4186 SELECT ALL - 99 + + 31 / - - 64 * - 10 col0 @@ -22005,8 +22274,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 3321 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col0" at position 0 and "Int64\(81\) \* \(\- Int64\(\-41\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 88 AS col0, + 81 * - ( - 41 ) AS col0 +---- +3321 +88 query II rowsort label-4192 SELECT NULLIF ( + CAST ( NULL AS INTEGER ), - COUNT ( * ) + 3 - + CAST ( NULL AS INTEGER ) * - 92 ) AS col2, - MAX ( ALL + 20 ) AS col1 @@ -22087,8 +22359,11 @@ SELECT ALL + - MAX ( ALL - + 47 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \+ \(\- coalesce\(Int64\(\-19\), Int64\(\-90\)\)\) AS col2" at position 0 and "Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 27 + - COALESCE ( - 19, - 90 ) AS col2, - 20 AS col2 +---- +-20 +-8 query II rowsort SELECT ALL + 80 AS col2, 58 @@ -22134,8 +22409,11 @@ SELECT + 86 / - 96 + - 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(82\)\) AS col2" at position 0 and "Int64\(12\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 82 AS col2, 12 - + COUNT ( * ) AS col2 +---- +-82 +11 query I rowsort SELECT + - 89 * - 36 @@ -22230,8 +22508,11 @@ SELECT - 20 + 39 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1368 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) \* Int64\(36\) AS col1" at position 0 and "\(\- Int64\(\-10\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 38 * 36 AS col1, ( - - 10 ) AS col1 +---- +-1368 +10 query I rowsort label-4234 SELECT DISTINCT 43 / + 71 AS col0 @@ -22540,8 +22821,11 @@ SELECT DISTINCT - 65 * 24 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - -2592 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col2" at position 0 and "Int64\(27\) \* Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 42 col2, + ( 27 ) * + - 96 AS col2 +---- +-2592 +-42 query I rowsort label-4293 SELECT 62 / 74 @@ -22649,8 +22933,11 @@ SELECT ALL - - 16 * COALESCE ( + 61, - 99 ) - - 25 + + + ( 90 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-93\)\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 93 col0, + 13 AS col0 +---- +13 +93 query I rowsort label-4314 SELECT ALL + 47 / CAST ( + - 4 AS INTEGER ) * - 73 * + 49 AS col1 @@ -23701,8 +23988,11 @@ 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\(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\. +query II valuesort SELECT COALESCE ( - - 36, - + 94, + 42 * + 46 / + + 59 + - - 47 ) * + + 98 + 92 / + COUNT ( * ) + 68 col2, - 84 AS col2 +---- +-84 +3688 query I rowsort label-4513 SELECT ALL - COUNT ( - 94 ) @@ -23728,8 +24018,11 @@ SELECT ALL 48 / - 61 # 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\(\-77\) AS col2" at position 0 and "Int64\(\-14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 77 AS col2, - 14 col2 +---- +-14 +-77 query II rowsort label-4518 SELECT + 10, + 43 * 51 + - COUNT ( * ) AS col1 @@ -24014,8 +24307,11 @@ 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\(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\. +query II valuesort SELECT + 8 + + COUNT ( * ) + 88 col1, 2 AS col1 +---- +2 +97 query II rowsort SELECT DISTINCT 35 AS col0, 42 * 52 AS col1 @@ -24537,8 +24833,11 @@ SELECT - 36 + - - 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 4410 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "Int64\(63\) \* Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 AS col0, 63 * + + 70 AS col0 +---- +4410 +51 query I rowsort SELECT ALL + 88 - - 91 col1 @@ -24617,8 +24916,11 @@ SELECT ALL - + 75 * - 3 + - 53 * - 67 * + ( 70 ) + 28 + 35 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col0" at position 0 and "Int64\(87\) / Int64\(\-11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT CAST ( NULL AS FLOAT8 ) AS col0, 87 / - 11 AS col0 +---- +-7 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -24687,8 +24989,11 @@ SELECT DISTINCT ( + 90 ) AS col1, - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(0\) \* sum\(Int64\(7\)\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - CAST ( NULL AS INTEGER ) * 0 * SUM ( + 7 ) col1, 19 AS col1 +---- +19 +NULL query I rowsort SELECT - ( - 32 ) * - 90 AS col1 @@ -26011,8 +26316,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 2 / - - 10 AS col1, + COUNT ( * ) * 28 AS col1 +---- +0 +28 query I rowsort SELECT + 13 - + + ( + 78 ) * 58 AS col1 @@ -26148,8 +26456,11 @@ SELECT ALL + 62 * - 60 * COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 87 AS col0, 46 AS col0 +---- +46 +87 query II rowsort label-4982 SELECT - 88, MAX ( DISTINCT - ( + - NULLIF ( + 42, 18 ) ) ) AS col1 @@ -26352,8 +26663,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) + + 97 AS col1, 21 col1 +---- +21 +98 query I rowsort SELECT ALL + 22 * - 43 AS col1 @@ -27278,8 +27592,11 @@ SELECT ALL - 10 * 80 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3854 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* Int64\(\-47\) AS col0" at position 0 and "sum\(Int64\(\-6\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 82 * - 47 AS col0, + SUM ( - 6 ) AS col0 +---- +-3854 +-6 query I rowsort label-5195 SELECT ALL - 1 * - CAST ( - 49 AS INTEGER ) @@ -27434,8 +27751,11 @@ SELECT 13 / + + ( - 96 ) + + 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 6 col0, 98 AS col0 +---- +-6 +98 query I rowsort label-5225 SELECT DISTINCT 54 * 31 / - CAST ( - 50 AS INTEGER ) AS col2 @@ -27613,8 +27933,12 @@ SELECT + 78 * + + 41 + 33 + - 90 # Datafusion - Expected - -12 # Datafusion - Expected - 820 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col2" at position 0 and "Int64\(46\) \+ Int64\(\-43\) \* Int64\(\-18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 12 col2, + 46 + - 43 * - 18 AS col2, CASE - 71 WHEN 31 * - 43 THEN NULL WHEN 53 THEN SUM ( - 48 ) END +---- +-12 +820 +NULL query I rowsort label-5259 SELECT ( + + 26 ) / 77 * 43 * + ( 12 ) * 51 - + COUNT ( * ) @@ -27704,8 +28028,11 @@ SELECT - 19 * + 72 * - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "Int64\(27\) \+ nullif\(Int64\(71\), \(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 22 col1, 27 + NULLIF ( + 71, - - CAST ( NULL AS INTEGER ) ) AS col1 +---- +22 +98 query I rowsort SELECT - - 65 col0 @@ -27895,8 +28222,11 @@ SELECT + - ( + 46 ) + + 92 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE CAST\(NULL AS Int32\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN Int64\(\-85\) \+ Int64\(91\) END AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CASE CAST ( NULL AS INTEGER ) WHEN - - COUNT ( * ) THEN - 85 + 91 END AS col2, 37 AS col2 +---- +37 +NULL query I rowsort label-5312 SELECT MIN ( + ( + 10 ) ) @@ -28002,8 +28332,11 @@ SELECT + 51 AS col0, + 22 * - + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -728 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* Int64\(62\) \+ Int64\(41\) AS col0" at position 0 and "Int64\(13\) \* Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 0 * ( + + 62 ) + 41 col0, 13 * - 56 AS col0 +---- +-728 +41 query I rowsort label-5332 SELECT + 12 / - MIN ( - - 87 ) * - - 6 + + 97 @@ -28683,8 +29016,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 35 AS col2, 72 * + + 40 + COUNT ( * ) * + + 3 AS col2 +---- +-35 +2883 query II rowsort SELECT ALL 25 - + 75 + + - 81 AS col2, 61 AS col0 @@ -29683,8 +30019,11 @@ SELECT - 99 + - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 125396 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) \* \(\- Int64\(\-94\)\) \* Int64\(\-23\) AS col1" at position 0 and "count\(Int64\(\-7\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 * - - 94 * - 23 AS col1, COUNT ( - 7 ) AS col1 +---- +1 +125396 query I rowsort label-5654 SELECT 77 * - 77 * - - 54 / - 6 + - CASE 49 WHEN + 93 THEN NULL ELSE + - COUNT ( * ) END @@ -29822,8 +30161,11 @@ 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\(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\. +query II valuesort SELECT + COALESCE ( - - COUNT ( * ), + 67 ) / + - 84 AS col1, - 17 * - ( - 38 ) col1 +---- +-646 +0 query I rowsort SELECT - 30 + 16 * - 14 - 60 AS col0 @@ -30340,8 +30682,11 @@ SELECT COALESCE ( - - COUNT ( * ), - - 55, 64 + 4 ) # 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 Int64\(\-50\) WHEN Int64\(56\) THEN min\(Int64\(13\)\) WHEN Int64\(99\) THEN NULL END AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CASE + + ( - 50 ) WHEN 56 THEN MIN ( 13 ) WHEN 99 THEN NULL END AS col1, 29 AS col1 +---- +29 +NULL query I rowsort SELECT 58 * 28 + 87 + ( 18 ) + - 42 * - 78 * - 5 @@ -31543,8 +31888,11 @@ SELECT DISTINCT - - CAST ( - 71 AS INTEGER ) - + 7 - - 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3447 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(99\) \* Int64\(34\) \+ Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 30 * + CAST ( NULL AS INTEGER ) AS col2, + 99 * + 34 + + + 81 col2 +---- +3447 +NULL query II rowsort label-6009 SELECT - COUNT ( * ) * 79, + COUNT ( * ) col2 @@ -31664,8 +32012,11 @@ SELECT ALL - + 72 * + 39 + NULLIF ( + 20, + 57 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -570 # Datafusion - Expected - 2067 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(98\)\) / Int64\(72\) \+ Int64\(28\) \+ Int64\(39\) \* Int64\(\-15\) \+ \(\- \(\- min\(\(\- \(\- Int64\(\-20\)\)\)\)\)\) \+ \(\- \(\- Int64\(8\)\)\) \- \(\- Int64\(86\)\) \* Int64\(14\) \* count\(\(\- Int64\(74\)\)\) \* Int64\(16\) \* Int64\(\-37\) \* Int64\(0\) AS col2" at position 0 and "Int64\(53\) \* \(\- Int64\(\-39\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 98 / 72 + 28 + + 39 * - 15 + - - MIN ( - ( - - 20 ) ) + - ( - + 8 ) - - + 86 * 14 * + COUNT ( - + 74 ) * + 16 * - 37 * - 0 AS col2, + 53 * - - 39 AS col2 +---- +-570 +2067 query I rowsort SELECT - - 62 + - 99 * 38 AS col0 @@ -31725,8 +32076,11 @@ SELECT + 90 / + - 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) / CAST\(NULL AS Int32\) / Int64\(68\) / CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-43\) \* Int64\(\-50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 60 / + CAST ( NULL AS INTEGER ) / + + 68 / + CAST ( NULL AS INTEGER ) AS col2, - 43 * - 50 AS col2 +---- +2150 +NULL query I rowsort label-6043 SELECT + COUNT ( * ) * + NULLIF ( + CAST ( NULL AS INTEGER ), + 29 ) @@ -31917,8 +32271,11 @@ 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\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(81\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 28 + - 76 - + 26 + - 23 * + - COUNT ( * ) + - + 81 AS col1, - COUNT ( * ) AS col1 +---- +-1 +-132 query I rowsort label-6081 SELECT ALL COUNT ( + 16 ) + - + 93 AS col0 @@ -31959,8 +32316,11 @@ SELECT ALL COUNT ( * ) + + ( 95 ) * + 52 * + 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 AS col0, 88 col0 +---- +88 +91 query I rowsort label-6089 SELECT 89 + - + NULLIF ( 99, - - COUNT ( * ) + - - 64 ) AS col0 @@ -31990,8 +32350,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 col2, - COUNT ( * ) + 29 AS col2 +---- +28 +37 query I rowsort label-6095 SELECT CAST ( NULL AS INTEGER ) + + - 79 * 32 AS col1 @@ -32332,8 +32695,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) col0, - COUNT ( * ) + - + 48 AS col0 +---- +-1 +-49 query I rowsort label-6160 SELECT DISTINCT + 66 + + - 49 + COALESCE ( - 19, 53 + + ( + - 87 ) + + SUM ( ALL - - 57 ) * + + COUNT ( * ) ) AS col0 @@ -32502,8 +32868,11 @@ SELECT + 28 * 68 * 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \* max\(Int64\(14\)\) \- CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(6\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 77 * + MAX ( ALL 14 ) - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2, 6 * COUNT ( * ) AS col2 +---- +6 +NULL query I rowsort SELECT ALL + 20 * 39 AS col1 @@ -32539,8 +32908,11 @@ SELECT 89 * + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 60 AS col0, 58 AS col0 +---- +-60 +58 query II rowsort label-6200 SELECT ( - 82 ) * - + 26 * - CAST ( - + 57 AS INTEGER ) AS col0, 4 AS col1 @@ -32561,8 +32933,11 @@ SELECT DISTINCT ( + 57 ) * - + COUNT ( * ) * - 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col0" at position 0 and "Int64\(34\) \+ \(\- sum\(\(\- Int64\(98\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 39 AS col0, 34 + - + SUM ( - + 98 ) col0 +---- +132 +39 query I rowsort label-6204 SELECT 67 / - - 98 + + - 2 + - 37 AS col0 @@ -32757,8 +33132,11 @@ SELECT + 50 + COUNT ( * ) AS col1 # 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 col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 20 AS col1, 69 col1 +---- +-20 +69 query I rowsort label-6242 SELECT + 13 * + 39 + + + 48 / - 8 + + 16 * 83 @@ -33214,8 +33592,11 @@ SELECT + 63 + + + 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(34\)\) AS col1" at position 0 and "Int64\(\-10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + MAX ( + 34 ) AS col1, - 10 AS col1 +---- +-10 +34 query I rowsort SELECT + 35 * + + 67 * - 39 + - 71 @@ -35107,8 +35488,11 @@ SELECT DISTINCT + + MIN ( ALL - 60 ) * + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 139 # Datafusion - Expected - -192456 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(82\)\)\) \+ Int64\(24\) \+ Int64\(33\) AS col2" at position 0 and "Int64\(27\) \* \(\- Int64\(\-81\)\) \* Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - ( + 82 ) + 24 + + 33 AS col2, 27 * - - 81 * + - 88 AS col2 +---- +-192456 +139 query I rowsort SELECT ALL + 26 + + 27 AS col2 @@ -35312,8 +35696,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "Int64\(23\) \+ Int64\(\-38\) \* Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 AS col1, + 23 + - 38 * - 1 AS col1 +---- +38 +61 query II rowsort SELECT - 51, - 7 col0 @@ -35648,8 +36035,11 @@ SELECT - 24 + + 80 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 179 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) / Int64\(59\) AS col1" at position 0 and "Int64\(33\) \+ Int64\(82\) \+ Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 94 / 59 AS col1, 33 + + 82 + + + 64 AS col1 +---- +1 +179 query I rowsort label-6798 SELECT + 29 * + 44 + + + 62 + COUNT ( * ) * + ( + - CASE + 28 WHEN 17 THEN NULL ELSE NULLIF ( + + MAX ( DISTINCT 64 ), - 70 * 28 ) END ) + - CAST ( - CAST ( NULL AS FLOAT8 ) AS INTEGER ) AS col2 @@ -36014,8 +36404,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \- Int64\(53\) AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 42 - + 53 col0, 27 col0 +---- +-95 +27 query I rowsort label-6866 SELECT DISTINCT 12 / 49 + 73 @@ -36138,8 +36531,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 97 AS col0, + 43 AS col0 +---- +43 +97 query I rowsort SELECT + - 6 + - - 33 @@ -36510,8 +36906,11 @@ SELECT ALL - + 63 + + - 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-37\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MAX ( ALL - 37 ) AS col0, COUNT ( * ) AS col0 +---- +-37 +1 query I rowsort SELECT + 30 - + - 1 * + 41 AS col2 @@ -36546,8 +36945,11 @@ SELECT DISTINCT + 16 - 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 650 # Datafusion - Expected - 232 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(26\) AS col1" at position 0 and "Int64\(89\) \+ \(\- min\(DISTINCT Int64\(\-73\)\)\) \+ Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 * ( 26 ) AS col1, 89 + ( - MIN ( DISTINCT - 73 ) ) + ( + + 70 ) AS col1 +---- +232 +650 query I rowsort SELECT 31 + + - 40 @@ -36610,8 +37012,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 col1, + COUNT ( * ) / 63 AS col1 +---- +0 +8 query I rowsort SELECT 39 + + + 10 col0 @@ -36968,8 +37373,11 @@ SELECT + COUNT ( * ) - + - COUNT ( DISTINCT 63 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -7830 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* CAST\(Int64\(\-90\) AS Int32\) AS col1" at position 0 and "Int64\(9\) \- Int64\(56\) \+ \(\- Int64\(43\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 87 * + CAST ( - 90 AS INTEGER ) AS col1, 9 - 56 + - + 43 AS col1 +---- +-7830 +-90 query I rowsort SELECT ALL ( - + 67 ) * + ( + + 18 ) @@ -37211,8 +37619,11 @@ SELECT DISTINCT 27 * + ( + 82 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col0" at position 0 and "CASE Int64\(8\) WHEN \(\- Int64\(25\)\) THEN Int64\(\-15\) ELSE NULL END \* \(\- Int64\(\-28\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 29 AS col0, CASE + 8 WHEN - + 25 THEN - 15 ELSE NULL END * - - 28 AS col0 +---- +-29 +NULL query II rowsort label-7092 SELECT - 90 * 3, - 82 / - 82 AS col0 @@ -37239,8 +37650,11 @@ SELECT DISTINCT - + COALESCE ( COUNT ( * ), 52 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - -7418 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col1" at position 0 and "Int64\(43\) \+ \(\- min\(DISTINCT Int64\(\-19\)\)\) \+ Int64\(11\) \* Int64\(68\) \* \(\- \(\- min\(Int64\(\-10\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 42 AS col1, + 43 + - MIN ( DISTINCT - 19 ) + + 11 * + 68 * - - MIN ( + - 10 ) AS col1 +---- +-42 +-7418 query II rowsort SELECT + 64 AS col1, - ( + 60 ) + - + 96 * + - 54 AS col2 @@ -37619,8 +38033,11 @@ SELECT DISTINCT 51 * + - 89 AS col0, + 70 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4968 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* Int64\(72\) AS col1" at position 0 and "CAST\(Int64\(17\) AS Int32\) \- Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 69 * + 72 AS col1, + ( + CAST ( 17 AS INTEGER ) ) - 37 AS col1 +---- +-20 +4968 query I rowsort SELECT 58 + - 63 * - - 74 col2 @@ -37635,8 +38052,11 @@ SELECT 10 + + + 46 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4116 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* Int64\(49\) / CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 * 49 / + CAST ( - COUNT ( * ) AS INTEGER ) AS col0, 39 AS col0 +---- +-4116 +39 query I rowsort SELECT DISTINCT 68 * - + 90 @@ -37678,8 +38098,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * + 49 AS col1, + ( - 39 ) / + 48 AS col1 +---- +0 +49 query I rowsort label-7180 SELECT ALL - CASE 78 WHEN - + 71 / + - 24 * COUNT ( + 30 ) THEN - 63 ELSE NULL END @@ -37790,8 +38213,11 @@ SELECT ALL - 73 * COALESCE ( + 9, 72 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 50 -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\(50\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 49 AS col2, MAX ( 50 ) AS col2 +---- +-49 +50 query II rowsort label-7201 SELECT DISTINCT - 52 AS col2, - COALESCE ( - + COUNT ( * ), - 48 ) AS col0 @@ -38015,8 +38441,11 @@ SELECT + ( + ( + 90 ) ) * COALESCE ( - 42, 61 ) - 53 - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- coalesce\(Int64\(97\), Int64\(91\), Int64\(\-69\) / Int64\(\-96\) \* \(\- coalesce\(Int64\(\-18\), Int64\(59\)\)\) \* Int64\(\-80\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col1, - COALESCE ( 97, + 91, + - 69 / - 96 * - COALESCE ( + - 18, + ( 59 ) ) * + ( + - 80 ) ) AS col1 +---- +-97 +1 query I rowsort SELECT ALL + ( - NULLIF ( 84, + 56 + + 50 ) ) AS col1 @@ -38072,8 +38501,11 @@ 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\(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\. +query II valuesort SELECT - + 71 * + 66 + - COUNT ( * ) - - 26 AS col1, COUNT ( * ) / - 82 * + + 59 AS col1 +---- +-4661 +0 query I rowsort SELECT + 1 + 22 + 45 * 93 @@ -38382,8 +38814,11 @@ SELECT ALL COUNT ( * ) + + 9 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \+ Int64\(94\) \+ Int64\(12\) AS col1" at position 0 and "Int64\(4\) \+ Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 97 + + 94 + + 12 AS col1, 4 + - 33 col1 +---- +-29 +9 query II rowsort SELECT ALL - 64, + 67 * - - 44 AS col0 @@ -38655,8 +39090,11 @@ SELECT DISTINCT - COUNT ( * ) - - 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(72\)\)\) AS col1" at position 0 and "Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + COUNT ( + 72 ) col1, - 36 AS col1 +---- +-1 +-36 query I rowsort label-7364 SELECT ALL 78 / + - COUNT ( * ) @@ -38895,14 +39333,20 @@ SELECT DISTINCT 82 * - - COUNT ( * ) + 81 + - + 55 + + 56 * + - 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 5640 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "Int64\(60\) \* Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 74 AS col1, 60 * + 94 col1 +---- +5640 +74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(79\) \* \(\- Int64\(\-65\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, + COUNT ( * ) / 79 * - - 65 col0 +---- +0 +1 query I rowsort SELECT + + CASE - + 62 WHEN - 57 THEN + 89 END / - - ( + 98 ) @@ -39449,8 +39893,11 @@ SELECT ALL 79 * - - 35 - - + 51 + + 45 + + COUNT ( * ) * + 12 * + + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - -293 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(\-12\) \+ Int64\(67\) AS col0" at position 0 and "Int64\(42\) / \(\- Int64\(\-73\)\) \- Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 30 * - 12 + + 67 AS col0, 42 / + ( - ( - 73 ) ) - + - 99 AS col0 +---- +-293 +99 query I rowsort SELECT DISTINCT + 84 * - 29 AS col0 @@ -39589,8 +40036,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -117 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) \+ Int64\(\-79\) AS col2" at position 0 and "Int64\(\-7\) \+ Int64\(19\) \- Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 38 + - 79 col2, - 7 + + 19 - + 93 col2 +---- +-117 +-81 query I rowsort label-7540 SELECT - + 68 / 41 * + + COALESCE ( + 30, + 88 * - 63 ) + 58 * + 40 AS col2 @@ -39610,8 +40060,11 @@ SELECT - 51 * + - 95 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\)" at position 0 and "\(\- CAST\(NULL AS Int32\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + + CAST ( NULL AS INTEGER ) ), - CAST ( NULL AS INTEGER ) +---- +NULL +NULL query I rowsort label-7544 SELECT ALL CAST ( NULL AS INTEGER ) / - 45 - - + 87 + - 90 AS col2 @@ -39899,8 +40352,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * - 57 AS col0, 15 / 41 AS col0 +---- +-57 +0 query I rowsort label-7599 SELECT ALL 55 / - 90 AS col0 @@ -39915,8 +40371,11 @@ SELECT 50 + + COUNT ( * ) * + 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col1" at position 0 and "Int64\(24\) \+ Int64\(\-31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 85 AS col1, + 24 + + - 31 AS col1 +---- +-7 +-85 query I rowsort label-7602 SELECT - MIN ( CAST ( NULL AS INTEGER ) ) + + + COALESCE ( CAST ( NULL AS INTEGER ), 73 + - + 39 + - + 3 ) col1 @@ -40478,8 +40937,11 @@ 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\(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\. +query II valuesort SELECT + + MIN ( COALESCE ( - 45, - - 39, 38 ) ) * - COUNT ( * ) - COUNT ( * ) - - + 41 + - 74 * + 98 AS col1, + ( + + ( - COUNT ( * ) ) ) * - 95 AS col1 +---- +-7167 +95 query I rowsort SELECT - ( + 66 ) @@ -40604,8 +41066,11 @@ SELECT DISTINCT + 46 / - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col1" at position 0 and "Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 57 AS col1, - 5 AS col1 +---- +-5 +57 query I rowsort SELECT ALL - 62 col0 @@ -40865,8 +41330,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( COUNT ( * ) ) AS col2, 20 AS col2 +---- +-1 +20 query I rowsort SELECT ALL - 21 * ( + 63 ) - + COALESCE ( + 88, - 74 + + 23 - + 86 ) @@ -40933,8 +41401,11 @@ SELECT ALL 80 + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 134 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(93\), Int64\(42\) \- \(\- nullif\(Int64\(\-61\), CASE \(\- coalesce\(Int64\(70\), Int64\(\-49\) \* Int64\(\-18\)\)\) WHEN Int64\(\-67\) THEN Int64\(72\) \* Int64\(50\) \* Int64\(\-66\) WHEN Int64\(5\) \* Int64\(80\) THEN NULL END \+ Int64\(95\)\)\) \- \(\- count\(Int64\(6\)\)\)\) AS col2" at position 0 and "Int64\(58\) \+ Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT NULLIF ( + + 93, 42 - ( - NULLIF ( - 61, + CASE ( - + COALESCE ( + ( 70 ), - 49 * + - 18 ) ) WHEN - 67 THEN + + 72 * 50 * - 66 WHEN 5 * 80 THEN NULL END + + 95 ) ) - - COUNT ( ALL + 6 ) ) AS col2, 58 + 76 AS col2 +---- +134 +93 query II rowsort SELECT DISTINCT 15 + - 4 AS col0, 79 @@ -40945,8 +41416,11 @@ SELECT DISTINCT 15 + - 4 AS col0, 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \+ Int64\(3\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 73 + + 3 AS col1, 84 AS col1 +---- +76 +84 query I rowsort label-7793 SELECT - 44 + 64 + + COUNT ( * ) * + + 2 - - 2 @@ -40977,8 +41451,11 @@ SELECT - 55 * + 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - -504 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) \* Int64\(36\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 14 * 36 AS col2, COUNT ( * ) AS col2 +---- +-504 +1 query I rowsort label-7799 SELECT ALL - - 93 / - 5 * + - COUNT ( * ) + - + 71 @@ -41098,8 +41575,11 @@ SELECT DISTINCT ( + COUNT ( * ) ) + - 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 2804880 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "Int64\(20\) \* \(\- Int64\(31\)\) \* Int64\(\-87\) \* Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 AS col1, + 20 * - + 31 * - 87 * 52 AS col1 +---- +2804880 +92 query II rowsort SELECT 62, + 89 AS col1 @@ -41635,8 +42115,12 @@ SELECT ALL + + 32 * + ( 88 ) AS col1 # Datafusion - Expected - 5 # Datafusion - Expected - -118 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \- \(\- Int64\(\-22\)\) AS col1" at position 1 and "Int64\(49\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + - 16 + 21 AS col0, - 96 - - - 22 AS col1, 49 AS col1 +---- +-118 +49 +5 query I rowsort SELECT ALL - + 53 + + - 33 * 87 + 70 + - 15 @@ -41750,8 +42234,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - SUM ( + 48 ) AS col0, - COUNT ( * ) AS col0 +---- +-1 +-48 query I rowsort SELECT + 33 + ( - + 80 ) @@ -42205,8 +42692,11 @@ SELECT DISTINCT 80 * 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \+ Int64\(62\) \+ CASE \(\- Int64\(\-99\)\) WHEN max\(DISTINCT Int64\(69\)\) \* max\(Int64\(67\)\) THEN Int64\(\-73\) \+ Int64\(44\) \+ Int64\(89\) \* Int64\(\-41\) WHEN Int64\(58\) \+ Int64\(\-52\) THEN Int64\(59\) \+ Int64\(58\) ELSE NULL END \- Int64\(76\) AS col1" at position 0 and "Int64\(62\) \+ \(\- Int64\(19\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 15 + 62 + ( + + CASE - - 99 WHEN + MAX ( DISTINCT 69 ) * + MAX ( + + 67 ) THEN - 73 + 44 + + 89 * - 41 WHEN + 58 + - 52 THEN + 59 + + 58 ELSE NULL END ) - + 76 AS col1, 62 + - + 19 AS col1 +---- +43 +NULL query I rowsort label-8033 SELECT 16 * COALESCE ( + COALESCE ( 59, + CAST ( NULL AS INTEGER ) + + + 61 ), - 10 ) AS col0 @@ -43298,8 +43788,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( - CAST ( NULL AS INTEGER ) ) col0, - COUNT ( * ) + + 11 AS col0 +---- +10 +NULL query I rowsort label-8247 SELECT - COALESCE ( + + CASE + + 16 WHEN - + 22 THEN + 25 WHEN + 34 THEN NULL END, - CAST ( NULL AS INTEGER ) / 0 ) * + 60 AS col1 @@ -43365,8 +43858,11 @@ SELECT ALL 62 AS col0, 91 + - + 78 + + 21 + ( - 0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "\(\- Int64\(96\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 78 col1, - ( + 96 ) col1 +---- +-96 +78 query I rowsort label-8260 SELECT + - 28 * + - COUNT ( + 35 ) - - 51 + - 16 @@ -43470,8 +43966,11 @@ SELECT ALL 79 / + 20, 34 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) / Int64\(92\) AS col2" at position 0 and "Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 85 / 92 col2, + 92 AS col2 +---- +0 +92 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -43898,8 +44397,11 @@ SELECT + - 91 * 0 + + 96 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT Int64\(23\)\) \+ Int64\(66\) AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( DISTINCT ( + 23 ) ) + + 66 AS col1, 50 col1 +---- +50 +67 query I rowsort SELECT + + 16 * - 99 + + - 12 + + - 77 * + COALESCE ( 41, + 61 ) @@ -44132,8 +44634,11 @@ SELECT + - COUNT ( * ) - + COUNT ( ALL 42 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 16887 # Datafusion - Expected - 3772 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \+ Int64\(\-6\) \+ Int64\(96\) \- Int64\(\-48\) \+ Int64\(18\) \* Int64\(18\) \* Int64\(52\) AS col0" at position 0 and "Int64\(82\) \* Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 99 + - 6 + ( + 96 ) - - 48 + + 18 * + + 18 * + 52 AS col0, 82 * + + 46 AS col0 +---- +16887 +3772 query I rowsort SELECT ALL - 88 + 76 AS col1 @@ -44323,8 +44828,11 @@ SELECT MIN ( + - 23 ) + + 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - -7118 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(83\)\) AS col2" at position 0 and "Int64\(48\) \+ Int64\(80\) \* \(\- \(\- sum\(\(\- Int64\(89\)\)\)\)\) \+ Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 83 col2, 48 + 80 * - - SUM ( - + 89 ) + + - 46 AS col2 +---- +-7118 +-83 query II rowsort label-8440 SELECT - - COUNT ( * ), - COUNT ( * ) * 60 + + 73 + - COUNT ( * ) * + 55 * 94 + + CAST ( 46 AS INTEGER ) AS col1 @@ -44591,8 +45099,11 @@ SELECT ALL + + 76 / - 79 * + COUNT ( - + 95 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "CAST\(Int64\(\-66\) AS Int32\) \+ CASE Int64\(12\) WHEN Int64\(\-64\) THEN Int64\(\-8\) WHEN Int64\(6\) THEN Int64\(86\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 AS col2, CAST ( - 66 AS INTEGER ) + + + ( CASE + 12 WHEN - 64 THEN - 8 WHEN 6 THEN + 86 END ) AS col2 +---- +62 +NULL query I rowsort SELECT ( - NULLIF ( - 21, - + 4 ) ) * + 22 + 38 @@ -44874,8 +45385,12 @@ SELECT + MAX ( - - 65 ) # Datafusion - Expected - -8 # Datafusion - Expected - -4020 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col2" at position 0 and "\(\- Int64\(\-47\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 8 col2, + 60 * - 67, - - 47 col2 +---- +-4020 +-8 +47 query I rowsort label-8546 SELECT DISTINCT + 90 * + - ( - 98 ) * - 89 + COUNT ( * ) * + 30 @@ -45484,8 +45999,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) / Int64\(12\) / Int64\(84\) \* Int64\(\-18\) AS col0" at position 0 and "Int64\(\-31\) \* Int64\(6\) \+ Int64\(56\) \+ avg\(Int64\(\-59\)\) \+ \(\- Int64\(4\)\) \* Int64\(\-24\) \+ Int64\(95\) \* \(\- CAST\(\(\- Int64\(33\)\) AS Int32\)\) \* \(\- CAST\(NULL AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +0 +NULL query I rowsort label-8661 SELECT NULLIF ( + 56, - + 29 ) * + CAST ( - + 70 AS INTEGER ) + 8 AS col1 @@ -45980,8 +46498,11 @@ SELECT DISTINCT + 8 + ( - COUNT ( * ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \+ Int64\(\-17\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 53 + - 17 + + COUNT ( * ) col1, 59 AS col1 +---- +-69 +59 query I rowsort label-8756 SELECT ALL 13 * + 40 * - + COUNT ( * ) @@ -46277,8 +46798,11 @@ SELECT COALESCE ( + ( ( - 97 ) ), + + CAST ( 52 AS INTEGER ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2112 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-64\)\) \* Int64\(33\) \* Int64\(1\) AS col2" at position 0 and "nullif\(Int64\(51\), Int64\(77\) \* Int64\(85\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 64 * 33 * 1 AS col2, NULLIF ( + 51, + 77 * + 85 ) AS col2 +---- +2112 +51 query I rowsort SELECT - + 10 col2 @@ -46354,8 +46878,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COALESCE ( 82, - ( - - ( - 7 ) ) + - 95, + ( - + 63 ) ) / - 90 AS col1, COUNT ( * ) * 54 AS col1 +---- +0 +54 query I rowsort SELECT + - 56 * + ( 31 ) AS col2 @@ -46425,8 +46952,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * 80 + - - ( - 84 ) AS col0, 50 AS col0 +---- +-164 +50 query I rowsort label-8842 SELECT ALL - 77 * ( + COUNT ( * ) ) * - COALESCE ( - - 54, COUNT ( * ), - + CASE + CAST ( + + 30 AS INTEGER ) WHEN + - 10 THEN NULL WHEN + COUNT ( * ) * + 54 + AVG ( DISTINCT 96 ) * - 35 / - 32 + + COUNT ( * ) * 66 * - COUNT ( * ) THEN 39 END / + 42 + + - 43, - - 66 * + ( - 59 ) ) + COUNT ( * ) * 44 AS col2 @@ -46596,8 +47126,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / Int64\(97\) \+ Int64\(\-55\) AS col2" at position 0 and "count\(Int64\(94\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) / 97 + - 55 AS col2, COUNT ( + 94 ) AS col2 +---- +1 +NULL query I rowsort SELECT ALL + - ( - + 41 ) AS col0 @@ -47524,8 +48057,11 @@ SELECT DISTINCT SUM ( - 72 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 19 AS col0, 52 AS col0 +---- +19 +52 query I rowsort label-9050 SELECT 62 / + ( - + 89 ) @@ -48453,8 +48989,11 @@ NULL # 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 "Int64\(83\) AS col0" at position 0 and "Int64\(\-53\) / Int64\(78\) \* Int64\(44\) / \(\- Int64\(97\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 83 AS col0, - 53 / 78 * + 44 / - + 97 AS col0 +---- +0 +83 query I rowsort label-9224 SELECT - 61 + + + 22 + MIN ( 63 ) * 58 @@ -48745,8 +49284,11 @@ SELECT DISTINCT + SUM ( ALL 91 ) / 56 * - 79 + - + 32 + COALESCE ( - + 86, - NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(76\)\) / Int64\(\-37\) AS col1" at position 0 and "Int64\(\-4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( DISTINCT + 76 ) / - 37 AS col1, - 4 AS col1 +---- +-2 +-4 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]II @@ -49253,8 +49795,11 @@ 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\(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\. +query II valuesort SELECT + ( - 11 ) - ( + 11 ) + - COUNT ( * ) AS col2, + 4 * 72 AS col2 +---- +-23 +288 query I rowsort SELECT ALL 65 + + 47 @@ -49616,8 +50161,11 @@ SELECT ALL COUNT ( * ) * + - NULLIF ( + 69, + + 55 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "coalesce\(Int64\(\-81\), \(\- Int64\(43\)\) \* Int64\(83\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, COALESCE ( + - 81, - + 43 * 83 ) col1 +---- +-81 +1 query II rowsort label-9445 SELECT - NULLIF ( + + 69, + COUNT ( ALL + 80 ) ) AS col2, CAST ( 15 AS INTEGER ) - - COALESCE ( - MAX ( ALL + + 85 ), + 85 / + + 81 / - MAX ( DISTINCT - + 5 ) * - + COUNT ( * ), - - 0 * + NULLIF ( ( + + 40 ), 77 ) ) + - COUNT ( * ) @@ -49963,8 +50511,11 @@ SELECT 67 - + ( + - 15 ) * + 79 * + 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col2" at position 0 and "nullif\(\(\- CAST\(Int64\(97\) AS Int32\)\), Int64\(6\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 43 col2, + NULLIF ( - CAST ( + + 97 AS INTEGER ), 6 ) AS col2 +---- +-43 +-97 query I rowsort SELECT ALL - 44 + 70 @@ -49989,8 +50540,11 @@ SELECT 57 + + 25 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col1" at position 0 and "Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 AS col1, + 95 AS col1 +---- +77 +95 query I rowsort label-9515 SELECT DISTINCT 66 + + 66 / - 37 @@ -50300,8 +50854,11 @@ SELECT ALL 10 * + 26 + - ( - 82 ) 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\(DISTINCT Int64\(\-96\)\) AS col1" at position 0 and "\(\- Int64\(\-11\)\) / Int64\(33\) \- Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( DISTINCT - 96 ) AS col1, - ( - 11 ) / 33 - + 75 AS col1 +---- +-75 +1 query I rowsort SELECT 26 * - ( 10 ) + + 93 @@ -50366,8 +50923,11 @@ 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\(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\. +query II valuesort SELECT ALL 73 * 4 * - COUNT ( * ) + - - 31 + NULLIF ( 45, + 63 ) AS col2, 78 col2 +---- +-216 +78 query I rowsort label-9588 SELECT DISTINCT - + 29 * ( - CASE + 8 WHEN + - 49 * + 62 + + 10 / 7 + - + 49 * + 50 THEN - + 17 ELSE - NULLIF ( 34, 91 - - + COUNT ( * ) ) / COUNT ( * ) END ) @@ -50430,8 +50990,11 @@ SELECT ALL 24 * COUNT ( * ) + ( + 52 ) * 40 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 1728 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "Int64\(32\) \* Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 19 col0, 32 * + 54 AS col0 +---- +1728 +19 query I rowsort label-9600 SELECT + CAST ( NULL AS INTEGER ) * + - 97 AS col0 @@ -51422,8 +51985,11 @@ SELECT COUNT ( * ) - + 72 # 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 "Int64\(\-1\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 1 col2, + 2 col2 +---- +-1 +2 query I rowsort label-9793 SELECT MAX ( - 29 ) @@ -51952,8 +52518,11 @@ SELECT DISTINCT - - 97 + + NULLIF ( + 25, 36 * + 52 + ( 59 ) ) * + 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4312 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(88\) AS col0" at position 0 and "Int64\(29\) \+ \(\- max\(Int64\(64\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 49 * + 88 AS col0, 29 + - + MAX ( + 64 ) * COUNT ( * ) AS col0 +---- +-35 +4312 query I rowsort label-9897 SELECT 27 * + - 82 * + NULLIF ( + - COUNT ( 44 ), - 11 ) col1 @@ -51963,8 +52532,11 @@ SELECT 27 * + - 82 * + NULLIF ( + - COUNT ( 44 ), - 11 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7812 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* Int64\(93\) AS col1" at position 0 and "Int64\(\-17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 84 * + 93 AS col1, - 17 AS col1 +---- +-17 +7812 query I rowsort label-9899 SELECT COUNT ( * ) + - + 49 + - 16 @@ -51995,8 +52567,11 @@ SELECT MAX ( - 73 ) * + + 37 + MIN ( DISTINCT - COALESCE ( + CAST ( NULL AS INTE # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "Int64\(97\) \* Int64\(\-95\) \+ sum\(Int64\(42\)\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(98\) THEN Int64\(\-40\) \+ count\(Int64\(1\)\) AS count\(\*\) WHEN coalesce\(Int64\(\-14\), Int64\(\-66\)\) THEN coalesce\(Int64\(\-16\), Int64\(\-14\) \* Int64\(18\) \+ Int64\(\-97\), Int64\(52\), Int64\(92\) \+ Int64\(\-80\) \* coalesce\(Int64\(92\) \* CASE Int64\(87\) \* CAST\(NULL AS Int32\) WHEN Int64\(99\) THEN Int64\(\-62\) \* \(\- coalesce\(Int64\(64\) \* count\(Int64\(1\)\) AS count\(\*\), Int64\(\-64\), Int64\(\-28\), CAST\(min\(DISTINCT CAST\(Int64\(10\) AS Int32\)\) AS Float64\)\)\) ELSE NULL END, count\(Int64\(1\)\) AS count\(\*\)\)\) END \* Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +82 +NULL query I rowsort label-9905 SELECT COUNT ( * ) + 29 + - 25 + 33 * + 90 diff --git a/data/sqlite/random/expr/slt_good_63.slt b/data/sqlite/random/expr/slt_good_63.slt index 38c72ac..df743e2 100644 --- a/data/sqlite/random/expr/slt_good_63.slt +++ b/data/sqlite/random/expr/slt_good_63.slt @@ -217,8 +217,12 @@ SELECT ALL 70 + + 24 AS col1 # Datafusion - Expected - -1 # Datafusion - Expected - -4365985 # Datafusion - Expected - 121 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \+ Int64\(\-77\) \* Int64\(15\) \* Int64\(84\) \* \(\- Int64\(\-45\)\) AS col2" at position 1 and "sum\(Int64\(55\)\) \+ Int64\(66\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 82 / - ( 67 ) AS col1, - 85 + - 77 * + 15 * + 84 * - - 45 AS col2, SUM ( ALL + 55 ) + + 66 AS col2 +---- +-1 +-4365985 +121 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -415,8 +419,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 879 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col0" at position 0 and "CAST\(CAST\(Int64\(32\) AS Int32\) AS Int32\) \* Int64\(27\) \+ Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 55 AS col0, + CAST ( + CAST ( 32 AS INTEGER ) AS INTEGER ) * 27 + + 15 AS col0 +---- +-55 +879 query I rowsort label-71 SELECT ALL MAX ( 12 ) AS col2 @@ -854,8 +861,11 @@ SELECT DISTINCT 72 * - + MAX ( - 41 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -238 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* Int64\(\-34\) AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 7 * - 34 AS col2, 77 AS col2 +---- +-238 +77 query I rowsort SELECT ALL - 72 * 40 * - 34 @@ -1330,8 +1340,11 @@ SELECT DISTINCT - 8 AS col0, 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - -900 # Datafusion - Expected - 55200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* \(\- Int64\(\-77\)\) \+ \(\- Int64\(12\)\) \+ Int64\(71\) \- Int64\(54\) \+ min\(Int64\(56\)\) \+ Int64\(85\) \+ Int64\(27\) \* Int64\(24\) AS col2" at position 0 and "Int64\(48\) \* Int64\(\-46\) \* Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 22 * - - 77 + - + 12 + + + 71 - 54 + MIN ( ALL + 56 ) + 85 + + 27 * ( + 24 ) AS col2, 48 * - 46 * - 25 AS col2 +---- +-900 +55200 query I rowsort label-245 SELECT DISTINCT + - 76 * + - MAX ( + ( + - 64 ) ) @@ -1723,8 +1736,11 @@ SELECT ALL + COALESCE ( + 65, + + 84, + 23, + 17 ) * - + ( + CAST ( + 97 AS INTE # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \+ \(\- Int64\(\-51\)\) AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 41 + - - 51 AS col0, 34 AS col0 +---- +10 +34 query I rowsort label-321 SELECT DISTINCT - 33 * - ( + COUNT ( DISTINCT + 36 ) ) AS col1 @@ -1833,8 +1849,11 @@ SELECT + 88 * + + 92 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \- Int64\(21\) \+ Int64\(13\) \* Int64\(89\) \* Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 32 AS col0, + CAST ( NULL AS INTEGER ) - + 21 + + 13 * + 89 * 54 col0 +---- +32 +NULL query I rowsort label-342 SELECT DISTINCT + COUNT ( DISTINCT + 72 ) col0 @@ -2158,8 +2177,12 @@ SELECT - 32 + - 41 AS col2 # Datafusion - Expected - -17 # Datafusion - Expected - 92 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \+ Int64\(18\) AS col2" at position 1 and "\(\- Int64\(19\)\) \- Int64\(3\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 46 - 63 AS col0, 74 + 18 AS col2, - + 19 - 3 AS col2 +---- +-17 +-22 +92 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -2406,8 +2429,11 @@ SELECT - - 15 * COUNT ( DISTINCT - 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-86\)\) AS col0" at position 0 and "Int64\(\-2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( - 86 ) AS col0, - 2 AS col0 +---- +-2 +1 query II rowsort label-448 SELECT + ( - 52 ) AS col2, + 58 + - COUNT ( + 33 ) + 18 @@ -2485,8 +2511,11 @@ 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\(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\. +query II valuesort 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 +---- +1 +66 query I rowsort SELECT ALL + ( 96 ) @@ -2840,8 +2869,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -4074 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(33\)\) / \(\- Int64\(95\)\) AS col0" at position 0 and "Int64\(97\) \* \(\- Int64\(42\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( ALL + 33 ) / - + 95 col0, 97 * - + 42 AS col0 +---- +-4074 +0 query I rowsort SELECT ALL 4 - 78 - + - 71 AS col0 @@ -3093,8 +3125,11 @@ SELECT ALL - + 75 * + 75 * - COALESCE ( - - 38, + 13 * - 25, + - 34 ) + - 94 + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 AS col2, 58 AS col2 +---- +11 +58 query I rowsort label-579 SELECT DISTINCT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + 84 @@ -3479,8 +3514,11 @@ SELECT + 28 AS col2, + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- nullif\(Int64\(9\), count\(\(\- Int64\(0\)\)\) \* \(\- \(\- CAST\(Int64\(71\) AS Int32\)\)\)\)\) \- Int64\(47\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) * - NULLIF ( + + 9, + + COUNT ( - ( + 0 ) ) * - - CAST ( + 71 AS INTEGER ) ) - 47 AS col1, 27 AS col1 +---- +27 +NULL query I rowsort label-652 SELECT 43 - COUNT ( * ) @@ -3974,8 +4012,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -768 # Datafusion - Expected - 1265 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* \(\- Int64\(32\)\) AS col1" at position 0 and "max\(DISTINCT Int64\(23\)\) \* \(\- Int64\(\-55\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 24 * - + 32 AS col1, MAX ( DISTINCT + 23 ) * - + ( - 55 ) AS col1 +---- +-768 +1265 query I rowsort label-748 SELECT MIN ( + 5 ) + + + 14 @@ -4222,8 +4263,11 @@ SELECT - 31 col0, + 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) AS col1 +---- +-1 +NULL query I rowsort label-795 SELECT - + COUNT ( - ( + + 16 ) ) + - - COUNT ( * ) * - 6 * - 74 * - 10 * + 68 @@ -4539,8 +4583,11 @@ SELECT - + COUNT ( * ) * + - 59 - + ( - - 63 ) / + ( 76 ) + + + 69 # 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\(\-29\) AS col1" at position 0 and "Int64\(25\) \+ Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 29 AS col1, 25 + 76 AS col1 +---- +-29 +101 query I rowsort label-854 SELECT DISTINCT 56 + - SUM ( DISTINCT + CASE + 88 WHEN 83 THEN 90 + - 72 ELSE NULL END ) AS col0 @@ -4784,8 +4831,11 @@ SELECT - 87 + - CASE WHEN 77 IS NOT NULL THEN + COUNT ( * ) END AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3654 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(9\) \+ Int64\(93\) \+ Int64\(48\) \* \(\- CAST\(\(\- Int64\(74\)\) AS Int32\)\) AS col0" at position 0 and "Int64\(31\) \+ \(\- CAST\(NULL AS Float64\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - 0 + + 9 + + 93 + + + 48 * - + CAST ( + ( - + 74 ) AS INTEGER ) AS col0, 31 + - CAST ( NULL AS FLOAT8 ) + - COUNT ( * ) AS col0 +---- +3654 +NULL query I rowsort label-901 SELECT 3 + - MIN ( DISTINCT - 96 ) * - + 35 AS col1 @@ -5016,8 +5066,11 @@ 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\(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\. +query II valuesort SELECT ALL 82 / - COUNT ( * ) + 9 AS col0, 92 + 38 + - + COUNT ( * ) AS col0 +---- +-73 +129 query I rowsort label-947 SELECT DISTINCT + 29 * - 73 + 87 + + - COUNT ( * ) AS col2 @@ -5279,8 +5332,11 @@ SELECT NULLIF ( + + 92, - - 5 ) / - + 99 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, 47 AS col2 +---- +1 +47 query I rowsort label-997 SELECT DISTINCT SUM ( - - 8 ) AS col0 @@ -5375,8 +5431,11 @@ SELECT ALL + 11 * 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - -3535 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col0" at position 0 and "Int64\(63\) \* max\(Int64\(\-57\)\) \- Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 2 AS col0, 63 * MAX ( - 57 ) - - 56 AS col0 +---- +-2 +-3535 query I rowsort label-1016 SELECT ALL + + 28 * + COUNT ( * ) / 54 * + 70 @@ -5620,8 +5679,11 @@ SELECT 60 * - 14 + 77 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1530 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \* Int64\(85\) AS col0" at position 0 and "Int64\(\-57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 18 * 85 AS col0, - 57 col0 +---- +-1530 +-57 query I rowsort label-1062 SELECT ALL - 71 * + 74 + + 74 * + - CASE + - 10 WHEN 70 THEN NULL WHEN COUNT ( * ) THEN - - 52 ELSE NULL END AS col0 @@ -5779,8 +5841,11 @@ 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\(1\)\) AS count\(\*\)\)\), Int64\(0\)\)\) \* Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 9 + + 86 AS col1, 35 + + - 20 + - - 48 * - NULLIF ( - - COUNT ( * ), - 0 ) * 29 AS col1 +---- +-1377 +95 query I rowsort label-1091 SELECT ALL - 29 + + COUNT ( * ) * + 15 @@ -5854,8 +5919,11 @@ SELECT 95, - 1 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col1" at position 0 and "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 AS col1, + 58 AS col1 +---- +58 +68 query I rowsort label-1105 SELECT COUNT ( ALL 7 ) / - COUNT ( * ) col0 @@ -6481,8 +6549,12 @@ NULL # Datafusion - Expected - -24 # Datafusion - Expected - NULL # Datafusion - Expected - 144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 24 AS col1, CAST ( NULL AS INTEGER ) col1, CAST ( + 79 AS INTEGER ) - COUNT ( DISTINCT + 64 ) + + 66 +---- +-24 +144 +NULL query I rowsort label-1224 SELECT + 31 * + + CAST ( NULL AS INTEGER ) * - 29 + - 32 * + - 82 + + 42 * - - ( - ( + 37 ) ) * + - ( + - 19 ) @@ -6678,8 +6750,11 @@ SELECT ALL - + 92 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1274 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) \* Int64\(\-26\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 49 * - 26 AS col1, 59 AS col1 +---- +1274 +59 query I rowsort label-1262 SELECT + SUM ( - - 54 ) AS col0 @@ -6877,8 +6952,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col1" at position 0 and "Int64\(63\) / Int64\(44\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 31 AS col1, 63 / 44 / + COUNT ( * ) AS col1 +---- +1 +31 query I rowsort label-1299 SELECT - 3 + 90 + + CAST ( + - 99 AS INTEGER ) @@ -7070,8 +7148,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3760 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* \(\- Int64\(47\)\) \* Int64\(8\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 * - ( + 47 ) * 8 AS col1, + 83 AS col1 +---- +3760 +83 query I rowsort SELECT DISTINCT + 31 * + 21 AS col0 @@ -7190,8 +7271,11 @@ SELECT - - 81 * - 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ Int64\(\-3\) \+ Int64\(\-78\) / Int64\(99\) AS col1" at position 0 and "count\(Int64\(91\)\) \- Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 + - 3 + + - 78 / + 99 AS col1, COUNT ( ALL 91 ) - - 61 AS col1 +---- +62 +92 query I rowsort label-1357 SELECT + 44 * - CAST ( - 98 AS INTEGER ) * + 65 * COUNT ( * ) + 66 AS col0 @@ -7749,8 +7833,11 @@ SELECT - 4 * + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(38\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + 38 * + CAST ( NULL AS INTEGER ) AS col2 +---- +1 +NULL query I rowsort label-1467 SELECT ALL + 59 * + COALESCE ( - 90, 2 ) + 96 / 12 @@ -8263,8 +8350,11 @@ SELECT COALESCE ( MAX ( - 95 ), + 12, 48 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2231 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* Int64\(\-23\) AS col0" at position 0 and "Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 97 * - 23 AS col0, 76 AS col0 +---- +-2231 +76 query I rowsort SELECT ALL 70 * + + 25 - + 26 AS col1 @@ -8334,8 +8424,11 @@ 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\(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\. +query IR valuesort 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 +---- +97 +NULL query II rowsort label-1579 SELECT ALL COUNT ( * ) AS col0, MAX ( DISTINCT 84 ) * - 67 @@ -8545,8 +8638,11 @@ SELECT 3 / - - 56 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2425 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col1" at position 0 and "Int64\(\-97\) \* Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 1 AS col1, - 97 * 25 AS col1 +---- +-2425 +1 query I rowsort SELECT 48 + + - 5 @@ -9083,8 +9179,11 @@ SELECT ALL 57 + - 44 * + 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 AS col0, 93 AS col0 +---- +69 +93 query I rowsort SELECT ALL 28 + + - 23 col2 @@ -9119,8 +9218,11 @@ SELECT 53 + 4 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col1" at position 0 and "Int64\(\-93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 34 AS col1, ( - 93 ) AS col1 +---- +-34 +-93 query I rowsort label-1728 SELECT MAX ( + ( + 21 ) ) / 64 @@ -9503,8 +9605,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) - + - COUNT ( * ) * 27 * 94 AS col2, + ( 16 ) col2 +---- +16 +2539 query II rowsort SELECT ALL + 16 AS col1, 9 @@ -10055,8 +10160,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(62\)\) \* Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 68 col2, COUNT ( * ) * - + 62 * 70 AS col2 +---- +-4340 +-68 query I rowsort label-1907 SELECT COALESCE ( + - CAST ( NULL AS INTEGER ), 27 * 76 * - 21, + + CASE ( + + 42 ) WHEN 42 * - - 28 + + + 61 THEN + MIN ( + - 74 ) * + + 88 + - 56 END + 6 * 62 ) @@ -10166,8 +10274,12 @@ SELECT ALL + 97 - + 55, - ( + + COALESCE ( 17, + CAST ( NULL AS INTEGER ), + NUL # Datafusion - Expected - 0 # Datafusion - Expected - 15 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) / Int64\(92\) AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 25 / + 92 AS col2, 15 col2, COALESCE ( 38, - COUNT ( * ) - 35 ) +---- +0 +15 +38 query I rowsort SELECT DISTINCT + 7 * + 72 AS col2 @@ -10808,8 +10920,11 @@ SELECT NULLIF ( - 38, + 18 + - CASE - 84 WHEN + MIN ( 13 ) THEN 19 + - + 50 END # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(46\), Int64\(56\)\) AS col0" at position 0 and "Int64\(\-91\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COALESCE ( 46, 56 ) AS col0, - 91 - COUNT ( * ) col0 +---- +-92 +46 query I rowsort label-2051 SELECT + COALESCE ( + + 7, - 94 * + 14 * + 63, SUM ( ALL + 37 ) ) + 58 AS col2 @@ -10917,8 +11032,11 @@ SELECT 32 AS col2, CAST ( + COUNT ( * ) AS INTEGER ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 40 -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\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 AS col1, - 18 - - 58 AS col1 +---- +37 +40 query I rowsort SELECT - 33 * - 42 * - 57 AS col1 @@ -11659,8 +11777,11 @@ SELECT - COALESCE ( - 30, 27, + - 25 / + + 88 + 97 ) + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + 16 col2 +---- +1 +16 query II rowsort label-2211 SELECT COUNT ( * ) col1, 68 @@ -11752,8 +11873,11 @@ SELECT 73, 57 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 AS col0, - 19 AS col0 +---- +-19 +46 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -11907,8 +12031,11 @@ SELECT 16 + + 74 AS col1, + 18 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \* Int64\(1\) \+ \(\- Int64\(46\)\) \- Int64\(\-53\) AS col2" at position 0 and "Int64\(\-21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 26 ) * 1 + - + 46 - - 53 AS col2, - 21 AS col2 +---- +-19 +-21 query I rowsort label-2256 SELECT MAX ( 94 ) * + 46 AS col2 @@ -12008,8 +12135,12 @@ SELECT + - 73 * - + 93 AS col2, + 53 * - + 71 # Datafusion - Expected - NULL # Datafusion - Expected - 7 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ max\(Int64\(49\)\) \- \(\- CASE Int64\(19\) WHEN \(\- Int64\(5\)\) \- Int64\(9\) \+ Int64\(22\) \- \(\- Int64\(\-72\)\) THEN NULL ELSE Int64\(\-1\) \* Int64\(\-57\) \- Int64\(\-84\) \- \(\- Int64\(24\)\) \* \(\- Int64\(\-86\)\) END\) \+ Int64\(\-37\) / Int64\(\-75\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-43\) \* CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- coalesce\(Int64\(\-97\), Int64\(\-11\), \(\- coalesce\(Int64\(95\), min\(Int64\(18\)\), Int64\(65\)\)\)\)\) \* Int64\(\-1\) THEN nullif\(\(\- Int64\(11\)\), Int64\(\-4\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(47\) WHEN Int64\(28\) THEN Int64\(48\) END AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +7 +NULL +NULL query I rowsort SELECT CASE + NULLIF ( 7, + 15 / + + ( - 92 ) ) WHEN + - 44 THEN + 53 ELSE 32 * - + 54 END AS col1 @@ -12050,8 +12181,11 @@ SELECT 22 AS col2, 27 - - - 72 + 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3300 # Datafusion - Expected - -29336 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(\-33\) \* Int64\(10\) AS col2" at position 0 and "Int64\(48\) \* \(\- coalesce\(Int64\(5\), count\(DISTINCT \(\- Int64\(\-45\)\)\), Int64\(\-13\)\)\) \* Int64\(96\) \+ \(\- sum\(\(\- Int64\(\-53\)\)\)\) \* Int64\(93\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(32\)\) \+ sum\(nullif\(Int64\(89\), \(\- Int64\(\-55\)\)\)\) \+ \(\- Int64\(\-65\)\) \+ count\(DISTINCT CAST\(Int64\(86\) AS Int32\)\) \* \(\- min\(DISTINCT Int64\(\-93\)\)\) \* Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-29336 +3300 query I rowsort label-2283 SELECT ALL - 51 / + 41 @@ -12126,8 +12260,11 @@ SELECT + + 13 * - 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\)" at position 0 and "Int64\(62\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 62, + 62 +---- +62 +62 query I rowsort SELECT ALL + 57 * - ( 57 ) col0 @@ -12208,8 +12345,11 @@ 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\(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\. +query II valuesort SELECT - ( + COUNT ( * ) ) AS col1, - 15 * 53 - + - ( + 36 ) AS col1 +---- +-1 +-759 query I rowsort label-2313 SELECT ALL 68 + 1 * - ( - 24 ) / - 98 - - 34 * + - 34 + - CAST ( COUNT ( + 73 ) AS INTEGER ) - + 50 * 40 @@ -12291,8 +12431,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + + 99 ) AS col2, - COUNT ( * ) * - 50 AS col2 +---- +50 +99 query II rowsort label-2329 SELECT ALL - 2 + + NULLIF ( 43, 95 + 94 ) AS col2, COUNT ( * ) - + - CAST ( NULL AS INTEGER ) * + 72 AS col0 @@ -12445,8 +12588,11 @@ SELECT - - COUNT ( * ), 20 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "Int64\(\-32\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CASE \(\- \(\- CASE Int64\(\-65\) WHEN Int64\(\-77\) \+ Int64\(\-98\) \+ Int64\(60\) \* Int64\(87\) THEN \(\- \(\- Int64\(\-13\)\)\) END\)\) WHEN Int64\(17\) THEN sum\(Int64\(\-97\)\) \- Int64\(\-21\) \+ nullif\(Int64\(91\), Int64\(\-75\) \* CAST\(NULL AS Int32\)\) END\) / Int64\(35\) \- Int64\(\-40\) \+ Int64\(\-99\) \* Int64\(98\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-70\) \+ Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +82 +NULL query I rowsort label-2358 SELECT SUM ( - 85 ) + + COUNT ( * ) @@ -12510,8 +12656,11 @@ SELECT 95 + + - 36 * 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 72 AS col2, + COUNT ( * ) AS col2 +---- +-72 +1 query I rowsort SELECT NULLIF ( 95, 49 + - COALESCE ( - + 98, - 85, - - 25 ) ) + 88 AS col2 @@ -12543,8 +12692,11 @@ SELECT 21 + - 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 22 AS col2, 71 AS col2 +---- +22 +71 query I rowsort label-2376 SELECT DISTINCT - MIN ( ALL - - 48 ) * 34 + + 85 + 22 * - 19 @@ -12869,8 +13021,11 @@ SELECT - 78, + COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 22 AS col0, + 57 AS col0 +---- +22 +57 query I rowsort label-2439 SELECT - ( MAX ( + ( - ( + 14 ) ) ) ) * - MAX ( ALL + 45 ) @@ -12992,8 +13147,11 @@ SELECT 20 / + SUM ( DISTINCT + 21 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-28\), Int64\(72\) \* Int64\(35\) \* Int64\(46\) \* Int64\(92\) \* nullif\(Int64\(\-72\), Int64\(45\)\) \+ Int64\(31\) \+ Int64\(0\) \* Int64\(69\) \* Int64\(87\) \- max\(\(\- \(\- CAST\(\(\- Int64\(33\)\) AS Int32\)\)\)\)\) AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL NULLIF ( - 28, + 72 * + 35 * 46 * + 92 * NULLIF ( + ( - 72 ), 45 ) + 31 + + 0 * + 69 * 87 - MAX ( ALL - - CAST ( - + 33 AS INTEGER ) ) ) AS col0, 33 AS col0 +---- +-28 +33 query I rowsort label-2462 SELECT DISTINCT 11 / + + 37 AS col0 @@ -13810,8 +13968,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* \(\- Int64\(2\)\) \+ Int64\(22\) AS col1" at position 0 and "Int64\(31\) \+ \(\- CAST\(Int64\(73\) AS Int32\)\) \+ Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 * - + 2 + + + 22 col1, 31 + - CAST ( + + 73 AS INTEGER ) + + 49 col1 +---- +-58 +7 query I rowsort SELECT DISTINCT ( - + 2 ) + - 31 @@ -14004,8 +14165,11 @@ SELECT + + 60 + + + ( 66 ) * + ( - 55 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "max\(DISTINCT Int64\(\-8\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 AS col0, ( MAX ( DISTINCT - 8 ) ) AS col0 +---- +-8 +86 query I rowsort label-2651 SELECT DISTINCT COUNT ( * ) - + CAST ( + + ( - 83 ) AS INTEGER ) @@ -14188,8 +14352,11 @@ SELECT ALL - ( - + 11 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(72\)\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 72 AS col0, + 41 AS col0 +---- +-72 +41 query I rowsort label-2686 SELECT ALL NULLIF ( + + 0, - COUNT ( * ) + + SUM ( ALL - + 38 ) * - - 47 ) AS col0 @@ -14237,8 +14404,11 @@ 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\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-25\)\) \- Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 47 AS col1, - COUNT ( * ) - - - 25 - 42 AS col1 +---- +-68 +47 query I rowsort label-2695 SELECT DISTINCT NULLIF ( + CASE CAST ( NULL AS INTEGER ) WHEN 19 * - - 66 + + + 26 + + - 13 THEN + + 59 * - - 36 + + 44 * - COUNT ( - - COALESCE ( - 4, 77 ) ) * - 78 + + 50 WHEN + 1 + COUNT ( * ) * - 23 + - 68 THEN NULL END, + 63 ) + + 73 @@ -14762,8 +14932,11 @@ SELECT 21, - 60 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8425 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \* CASE Int64\(\-25\) WHEN Int64\(\-39\) \* Int64\(27\) \+ Int64\(49\) THEN NULL ELSE min\(Int64\(86\)\) \* Int64\(92\) / \(\- Int64\(46\)\) \- Int64\(\-51\) END \+ Int64\(\-45\) AS col1" at position 0 and "\(\- nullif\(CAST\(NULL AS Int32\), Int64\(\-55\) \* CAST\(NULL AS Int32\) \+ \(\- Int64\(\-87\)\) \+ Int64\(85\) \+ \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 70 * + CASE - 25 WHEN - 39 * + 27 + + + 49 THEN NULL ELSE MIN ( 86 ) * 92 / - + 46 - - 51 END + - 45 AS col1, - ( + NULLIF ( + CAST ( NULL AS INTEGER ), ( - 55 ) * + CAST ( NULL AS INTEGER ) + - + ( - 87 ) + 85 + + - CAST ( NULL AS INTEGER ) ) ) AS col1 +---- +8425 +NULL query I rowsort label-2793 SELECT ALL 70 * + + 74 + + + 31 + + NULLIF ( - 8, - 90 + - CAST ( NULL AS INTEGER ) + ( 28 ) ) / + 5 @@ -15103,8 +15276,11 @@ SELECT DISTINCT + CAST ( 15 AS INTEGER ) * - + 44 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) col1, - COUNT ( * ) AS col1 +---- +-1 +NULL query I rowsort label-2859 SELECT ( - + COUNT ( * ) ) - 55 @@ -15266,8 +15442,11 @@ SELECT DISTINCT + - 0 + - - 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) 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 II valuesort SELECT ALL - 22 AS col0, SUM ( ALL 29 ) AS col0 +---- +-22 +29 query I rowsort label-2890 SELECT ALL 86 - + 11 - - COUNT ( 23 ) - 73 * + 68 + + + 35 * - 78 @@ -15401,8 +15580,12 @@ NULL # 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - 74 + 2 AS col2, + 32 AS col1, - COUNT ( * ) col1 +---- +-1 +32 +76 query II rowsort label-2916 SELECT + - 68 * - 52 * + 81, 31 * 14 * MAX ( - CAST ( 97 AS INTEGER ) ) + 5 AS col2 @@ -15520,8 +15703,11 @@ SELECT 56 * + - NULLIF ( - + 95, - - 3 ) + 16 + - 11 * + 50 # 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 "Int64\(51\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 51 AS col0, 64 AS col0 +---- +51 +64 query II rowsort SELECT 85, - 16 AS col1 @@ -16393,8 +16579,11 @@ SELECT ALL 14 * + - 32 * - NULLIF ( 2, + 91 + - 65 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -1527 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 0 and "Int64\(\-15\) \- Int64\(84\) \* Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 AS col1, - 15 - 84 * + 18 AS col1 +---- +-1527 +91 query I rowsort label-3109 SELECT 11 - - - MIN ( DISTINCT CASE + 65 WHEN 76 + + 5 THEN NULL ELSE 99 * + 89 END ) - 28 @@ -17480,8 +17669,11 @@ SELECT + - 76 + + - 20 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 743 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col1" at position 0 and "Int64\(14\) \* \(\- Int64\(\-52\)\) \+ Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 42 col1, 14 * - - 52 + + 15 col1 +---- +-42 +743 query I rowsort SELECT DISTINCT 88 + 31 AS col2 @@ -17770,8 +17962,11 @@ 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\(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\. +query II valuesort SELECT - ( - ( COUNT ( * ) ) ) - 64 * - 22 AS col1, MAX ( ALL - - 21 ) AS col1 +---- +1409 +21 query I rowsort label-3374 SELECT ALL + - 80 / COUNT ( * ) AS col2 @@ -18194,8 +18389,11 @@ SELECT DISTINCT 73 * - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7147 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(\-72\) \* \(\- \(\- nullif\(\(\- Int64\(99\)\), Int64\(\-74\) \* Int64\(\-75\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-57\) AS col1" at position 0 and "\(\- nullif\(Int64\(7\), \(\- Int64\(13\)\) \- \(\- Int64\(17\)\) \+ CAST\(Int64\(\-85\) AS Int32\) \* Int64\(15\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 + - 72 * - - NULLIF ( - + 99, - 74 * - 75 ) + + COUNT ( * ) + - 57 col1, - NULLIF ( + 7, - + 13 - - + 17 + + CAST ( - 85 AS INTEGER ) * 15 ) AS col1 +---- +-7 +7147 query I rowsort label-3455 SELECT COUNT ( * ) / + 49 col2 @@ -18833,8 +19031,11 @@ SELECT - CASE + 58 WHEN 80 THEN NULL WHEN - 48 THEN + 18 ELSE + - COUNT ( * ) + # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 37 AS col0, 42 AS col0 +---- +37 +42 query II rowsort label-3577 SELECT DISTINCT 29 col0, 94 * + COUNT ( + 34 ) @@ -18973,8 +19174,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(29\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(20\) \- Int64\(\-8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) * - + COUNT ( * ) + + COUNT ( + 29 ) / + + COUNT ( * ) AS col1, + 20 - - 8 AS col1 +---- +28 +NULL query I rowsort SELECT ALL 96 - - 78 @@ -19136,8 +19340,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 276 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 0 and "Int64\(92\) \* Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 70 AS col0, + 92 * 3 AS col0 +---- +276 +70 query I rowsort SELECT ALL 8 * - ( 12 ) AS col1 @@ -19244,8 +19451,12 @@ SELECT ALL 55 + - 39 col2 # Datafusion - Expected - -38 # Datafusion - Expected - 1 # Datafusion - Expected - 114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* sum\(Int64\(38\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - COUNT ( * ) * SUM ( ALL + 38 ) AS col2, + COUNT ( * ) col2, + + 63 / 49 / 48 + 79 + - COUNT ( * ) + 36 +---- +-38 +1 +114 query I rowsort SELECT ALL + 45 + - 42 @@ -19405,8 +19616,11 @@ 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\(1\)\) AS count\(\*\)\)\)\) \+ Int64\(15\) \* Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 73 + + 62 / + SUM ( - 40 ) AS col1, + ( + + 75 ) + - + NULLIF ( 73, 94 + - NULLIF ( - - 28, 55 ) * + + NULLIF ( - + 60, - 54 ) + - COUNT ( * ) ) + + 15 * - 85 AS col1 +---- +-1273 +72 query I rowsort label-3684 SELECT + CAST ( + 13 AS INTEGER ) + - 34 + + + 19 / + 7 AS col1 @@ -19639,8 +19853,11 @@ SELECT DISTINCT COUNT ( * ) * + 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -582 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col0" at position 0 and "Int64\(6\) \* Int64\(\-97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 80 AS col0, + 6 * - 97 AS col0 +---- +-582 +80 query I rowsort label-3730 SELECT ALL 19 + - 80 / - 6 + + + 86 AS col0 @@ -19775,8 +19992,11 @@ SELECT + MIN ( - - 86 ) + + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(90\), \(\- Int64\(55\)\)\) \+ Int64\(\-26\) AS col0" at position 0 and "sum\(Int64\(\-94\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( 90, - + 55 ) + - 26 AS col0, + SUM ( ALL - 94 ) AS col0 +---- +-94 +64 query I rowsort label-3755 SELECT 0 + + - 34 / - 74 * - 29 * + 29 AS col1 @@ -19820,8 +20040,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \+ Int64\(70\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 98 + + 70 AS col0, + 66 AS col0 +---- +-28 +66 query I rowsort label-3763 SELECT - MIN ( ALL + - CAST ( NULL AS INTEGER ) ) / - NULLIF ( - COALESCE ( + 91, - + 25 ), 7 + - 1 / + + 21 ) @@ -20315,8 +20538,11 @@ NULL # 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\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 4 AS col1, + 11 AS col1 +---- +11 +4 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -20403,8 +20629,11 @@ SELECT - SUM ( 26 ) + - COUNT ( * ) * + 9 * - 70 * - 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 col1, + 60 AS col1 +---- +44 +60 query I rowsort label-3873 SELECT MIN ( DISTINCT 89 ) @@ -20505,8 +20734,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col2, COUNT ( * ) / + 48 - - 8 col2 +---- +-1 +8 query I rowsort label-3892 SELECT DISTINCT - + COUNT ( * ) + COUNT ( * ) * 61 + 54 + - 32 + - 46 + + + COALESCE ( + - MIN ( ALL 14 ), - - 23 ) AS col2 @@ -20927,8 +21159,11 @@ SELECT + 7 AS col0, + 28 * + ( + - 55 ) + - 97 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-27\)\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 27 AS col2, 82 AS col2 +---- +27 +82 query II rowsort SELECT ALL + 70 AS col0, 9 - - 57 @@ -21216,8 +21451,11 @@ SELECT - MAX ( + 78 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 185 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(\-70\)\)\) \+ Int64\(53\) \+ Int64\(\-62\) \* Int64\(\-1\) AS col0" at position 0 and "Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - MAX ( ALL + - 70 ) + 53 + + - 62 * - 1 AS col0, + ( - 80 ) AS col0 +---- +-80 +185 query I rowsort SELECT ALL + 14 * + 4 @@ -21424,8 +21662,11 @@ SELECT DISTINCT - 76 * + COALESCE ( - 65, + 96 + - - 58 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2407 # Datafusion - Expected - -2765 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(\-23\) \+ \(\- CAST\(Int64\(99\) AS Int32\)\) \- \(\- Int64\(93\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-46\) \+ Int64\(45\) AS col2" at position 0 and "Int64\(79\) \* \(\- CAST\(Int64\(35\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 79 * + + ( - 23 ) + - CAST ( 99 AS INTEGER ) - - + 93 * - COUNT ( * ) * + - 46 + + 45 AS col2, + 79 * - CAST ( 35 AS INTEGER ) AS col2 +---- +-2765 +2407 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -21590,8 +21831,11 @@ SELECT ALL - COUNT ( DISTINCT - 6 ) + - 34 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(18\) \* \(\- CASE Int64\(\-85\) WHEN \(\- Int64\(77\)\) THEN NULL WHEN Int64\(\-80\) THEN \(\- Int64\(86\)\) ELSE NULL END\) \+ CASE Int64\(19\) WHEN Int64\(6\) / Int64\(4\) \- Int64\(18\) \+ Int64\(\-15\) \- Int64\(\-17\) THEN Int64\(7\) WHEN Int64\(\-82\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +51 +NULL query II rowsort SELECT 27 + - 64, 74 AS col1 @@ -21720,8 +21964,12 @@ SELECT DISTINCT + + 73 * - - 54 + + + 45 # Datafusion - Expected - 75 # Datafusion - Expected - 6076 # Datafusion - Expected - 120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* Int64\(74\) \+ Int64\(25\) \+ Int64\(\-77\) \+ \(\- CAST\(Int64\(92\) AS Int32\)\) \+ Int64\(55\) \* Int64\(96\) \+ Int64\(31\) \+ \(\- Int64\(\-95\)\) AS col1" at position 1 and "Int64\(31\) \+ sum\(DISTINCT Int64\(89\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 75, 11 * 74 + + 25 + - 77 + - CAST ( + 92 AS INTEGER ) + 55 * 96 + + + 31 + - - 95 AS col1, + 31 + + SUM ( DISTINCT + 89 ) AS col1 +---- +120 +6076 +75 query II rowsort label-4118 SELECT 90 * + 3 * 78 * + 57 + + - ( + 2 ) / + 88 + 83 col0, - 88 col1 @@ -22305,8 +22553,12 @@ SELECT ALL - COUNT ( * ) + - 98 AS col1 # Datafusion - Expected - 63 # Datafusion - Expected - 55 # Datafusion - Expected - 5644 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 63 AS col0, 55 AS col0, 83 * 68 +---- +55 +5644 +63 query I rowsort SELECT ALL + - 53 - + - 70 + 65 * ( 21 ) @@ -22336,8 +22588,11 @@ SELECT NULLIF ( 28, + - 77 + - 91 ) 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\(Int64\(\-22\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 93 AS col0, COUNT ( - 22 ) AS col0 +---- +-93 +1 query I rowsort label-4233 SELECT - COALESCE ( - + 12, + CAST ( - 46 AS INTEGER ) * + 63 + - 82 * COUNT ( * ) * COUNT ( DISTINCT + - 94 ) + COUNT ( * ), + + CAST ( NULL AS INTEGER ) ) @@ -22581,8 +22836,11 @@ SELECT ALL + CASE - - COUNT ( + 10 ) WHEN + + ( + 93 ) THEN NULL WHEN - + 7 THEN # Datafusion - Datafusion expected results: # Datafusion - Expected - -676 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* Int64\(\-9\) \+ Int64\(\-64\) AS col1" at position 0 and "Int64\(50\) / Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 68 * - 9 + + - 64 AS col1, 50 / 13 col1 +---- +-676 +3 query I rowsort label-4281 SELECT - 42 / + 82 @@ -23063,14 +23321,20 @@ SELECT ALL - COALESCE ( - 15, - - 6 + - COUNT ( * ) * COUNT ( * ) + + ( - 34 ) ) # 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 "\(\- Int64\(94\)\) / Int64\(59\) AS col1" at position 0 and "Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 94 / + 59 AS col1, - 85 AS col1 +---- +-1 +-85 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col0" at position 0 and "Int64\(18\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 33 AS col0, 18 - COUNT ( * ) AS col0 +---- +-33 +17 query II rowsort label-4374 SELECT DISTINCT - 7 * + + 13 + + NULLIF ( ( - + ( + 37 ) ), + - 49 / 65 + - - NULLIF ( - + 8, ( + - 48 ) ) * - - NULLIF ( + 68, - 5 ) * - + 76 ) + + 69 * + CAST ( ( + CASE 3 WHEN + 78 THEN 34 * + - COUNT ( * ) + + + NULLIF ( - - COALESCE ( + 22, + 90 ), - 25 * - 15 ) + - + 93 / 10 / + 40 END ) AS INTEGER ) * ( - + COUNT ( * ) ) / + 83 AS col0, + 10 @@ -23235,8 +23499,11 @@ SELECT ALL - 67 * + 76 * 67 - + + ( - + 2 ) + ( - ( - 98 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 1470 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "Int64\(\-21\) \* \(\- Int64\(70\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( 62 ) col1, - 21 * - + 70 AS col1 +---- +1470 +62 query I rowsort SELECT - - 71 + + 17 AS col1 @@ -23274,8 +23541,11 @@ SELECT 48 + + + NULLIF ( 89, - 95 / - - CAST ( - + 55 AS INTEGER ) + + - 63 + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \- Int64\(10\) AS col0" at position 0 and "Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 16 - 10 AS col0, - 94 AS col0 +---- +-94 +6 query I rowsort SELECT 79 * - - 99 AS col2 @@ -23321,8 +23591,12 @@ SELECT COUNT ( * ) + - ( - - 79 ) col0 # Datafusion - Expected - 49 # Datafusion - Expected - 87 # Datafusion - Expected - -2140 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "\(\- Int64\(81\)\) \+ \(\- coalesce\(Int64\(36\), Int64\(\-94\)\)\) \+ Int64\(87\) \+ Int64\(\-35\) \* \(\- nullif\(Int64\(\-60\), Int64\(\-29\) \* Int64\(33\) \+ Int64\(\-66\)\)\) \+ \(\- coalesce\(Int64\(10\), Int64\(51\) \* Int64\(11\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 49 AS col2, + 33 + ( + COUNT ( * ) ) + + - COUNT ( * ) * + - 53, - + 81 + - COALESCE ( 36, - 94 ) + + 87 + + - 35 * - + NULLIF ( + - 60, - 29 * 33 + - 66 ) + - COALESCE ( + 10, 51 * + 11 ) AS col2 +---- +-2140 +49 +87 query I rowsort label-4422 SELECT DISTINCT COUNT ( * ) * + 46 @@ -23332,14 +23606,20 @@ SELECT DISTINCT COUNT ( * ) * + 46 # 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\(10\) AS col2" at position 0 and "Int64\(\-77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 10 AS col2, - 77 AS col2 +---- +-77 +10 # 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\(17\) / \(\- \(\- Int64\(39\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 12 AS col0, 17 / - - ( + 39 ) AS col0 +---- +0 +12 query I rowsort label-4425 SELECT ALL 66 + + MAX ( ALL + 34 ) * 7 AS col2 @@ -23660,8 +23940,11 @@ SELECT - 90 * - ( 1 ) + + COUNT ( * ) + 51 * COUNT ( + ( - 77 ) ) * - - 85 + - 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -329 # Datafusion - Expected - -740 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \* \(\- Int64\(\-47\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(20\) \* Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 7 * - - 47 * + COUNT ( * ) AS col2, + 20 * ( - 37 ) col2 +---- +-329 +-740 query I rowsort label-4487 SELECT - 24 / - COUNT ( * ) @@ -23677,8 +23960,11 @@ SELECT - 66, 4 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1252 # Datafusion - Expected - -4450 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \+ Int64\(15\) \* \(\- Int64\(\-87\)\) AS col2" at position 0 and "Int64\(89\) \* Int64\(\-50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 53 + + 15 * - - 87 AS col2, + 89 * - 50 AS col2 +---- +-4450 +1252 query I rowsort SELECT - 77 * 55 @@ -23881,8 +24167,11 @@ SELECT - 88 AS col1, 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 AS col2, + 85 col2 +---- +-90 +85 query I rowsort SELECT + 92 * 11 AS col2 @@ -23902,8 +24191,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 43 AS col1, - COUNT ( * ) AS col1 +---- +-1 +43 query I rowsort label-4533 SELECT - COUNT ( * ) * - 86 - 77 + + ( 49 ) @@ -24187,8 +24479,11 @@ SELECT ALL MIN ( - 95 ) + + 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 AS col2, 33 AS col2 +---- +33 +6 query I rowsort SELECT + 67 + - 60 + - - 10 @@ -24267,8 +24562,11 @@ SELECT + ( - 11 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1638 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* Int64\(63\) AS col1" at position 0 and "Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 26 * + + 63 AS col1, + 6 AS col1 +---- +1638 +6 query I rowsort SELECT + 86 * - 16 - 61 @@ -24372,8 +24670,11 @@ SELECT ALL - 80 + + - 45 + - + 97 + - 6 * + - 11 * + 36 + COUNT ( * ) / - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(\-57\)\) AS col2" at position 0 and "Int64\(60\) \* Int64\(90\) / Int64\(55\) \* \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( DISTINCT + - 57 ) AS col2, + 60 * + 90 / + 55 * - CAST ( NULL AS INTEGER ) AS col2 +---- +-57 +NULL query II rowsort label-4621 SELECT + 97 + CAST ( NULL AS INTEGER ), - MAX ( - - CAST ( NULL AS INTEGER ) ) @@ -24426,8 +24727,11 @@ SELECT DISTINCT - + COALESCE ( - COUNT ( * ), - 12 * - - 20 - - + CAST ( - COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 1378 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "Int64\(53\) \* Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 76 AS col2, 53 * 26 AS col2 +---- +1378 +76 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -25446,8 +25750,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 72 col1, - COUNT ( * ) AS col1 +---- +-1 +-72 query I rowsort SELECT DISTINCT - 59 * + 56 @@ -25511,8 +25818,12 @@ SELECT DISTINCT + 97 * - + COUNT ( * ) AS col2 # Datafusion - Expected - 1 # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 1 and "\(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(88\) THEN Int64\(\-29\) \* CASE Int64\(58\) WHEN Int64\(43\) THEN count\(Int64\(1\)\) AS count\(\*\) END WHEN Int64\(35\) THEN Int64\(\-58\) ELSE NULL END\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +1 +NULL +NULL query I rowsort label-4841 SELECT ALL CASE + NULLIF ( 66, + CAST ( + - CAST ( + - COUNT ( * ) AS INTEGER ) AS FLOAT8 ) ) WHEN - 32 * - 50 THEN - 91 END AS col2 @@ -25537,8 +25848,11 @@ SELECT ALL - 52 * - 23 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 3780 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col1" at position 0 and "Int64\(90\) \* Int64\(42\) \+ CASE Int64\(63\) WHEN \(\- Int64\(20\)\) \+ Int64\(53\) THEN NULL ELSE Int64\(29\) / Int64\(80\) END \* Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 AS col1, 90 * 42 + CASE + 63 WHEN - + 20 + 53 THEN NULL ELSE 29 / 80 END * + 1 col1 +---- +-20 +3780 query I rowsort label-4846 SELECT - 29 + - + 3 + - 84 * MIN ( DISTINCT 31 ) * 0 * 51 + + 24 * - 24 @@ -25829,8 +26143,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 42 AS col2, + 71 + 73 - - + COUNT ( * ) AS col2 +---- +145 +42 query I rowsort SELECT ALL + 24 * - - 70 @@ -26220,8 +26537,11 @@ SELECT ALL - COUNT ( * ) * - - 36 + - 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -387528 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(15\)\) \* CAST\(NULL AS Int32\) \+ Int64\(\-18\) \+ Int64\(0\) AS col0" at position 0 and "max\(Int64\(72\)\) \+ Int64\(\-85\) \* Int64\(48\) \* Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) * - + 15 * CAST ( NULL AS INTEGER ) + - 18 + + 0 AS col0, MAX ( 72 ) + - 85 * 48 * 95 AS col0 +---- +-387528 +NULL query I rowsort SELECT - 46 * - 82 + - 43 @@ -26272,8 +26592,11 @@ SELECT DISTINCT + ( 45 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(43\)\) \* Int64\(\-90\) \+ Int64\(39\) \+ \(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(29\)\) \* Int64\(97\) AS col2" at position 0 and "Int64\(59\) \+ Int64\(\-3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MAX ( + 43 ) * - 90 + + 39 + - CAST ( NULL AS INTEGER ) * - ( 29 ) * 97 col2, 59 + + - 3 AS col2 +---- +56 +NULL query I rowsort label-4987 SELECT COALESCE ( - - 69, + 88 * + NULLIF ( + 39, + ( - 95 ) * + 5 + - NULLIF ( - COUNT ( * ), - 29 ) ), + 1 * ( + 4 ) + 89 * 20 ) @@ -26294,8 +26617,11 @@ SELECT DISTINCT + ( - - 39 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -42102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(11\) \+ coalesce\(CAST\(NULL AS Int32\), Int64\(14\) \* Int64\(94\), max\(\(\- Int64\(22\)\)\)\) \* \(\- Int64\(32\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, + 11 + COALESCE ( + CAST ( NULL AS INTEGER ), + 14 * + + 94, MAX ( - + 22 ) ) * + ( - + 32 ) + - COUNT ( * ) AS col1 +---- +-42102 +1 query I rowsort SELECT - 13 * 52 + - + 46 * + 55 * + 99 - - 52 AS col2 @@ -26715,8 +27041,11 @@ SELECT ALL COALESCE ( - - ( - 8 ), + COUNT ( * ) - + + 42, + - 74 + - 59 - 52 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -3255 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-35\) \* \(\- Int64\(\-93\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col0, - 35 * - - 93 AS col0 +---- +-3255 +1 query II rowsort label-5071 SELECT ALL + 9, MAX ( ALL 15 ) AS col0 @@ -27325,8 +27654,11 @@ 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\(50\) AS col0" at position 0 and "Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 50 AS col0, 76 AS col0 +---- +50 +76 query II rowsort SELECT 22 * + CASE 79 WHEN - + ( - - 42 ) THEN NULL ELSE - 12 + + 44 END AS col1, 86 @@ -27342,8 +27674,11 @@ SELECT + + MAX ( DISTINCT - 13 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col2" at position 0 and "Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 9 AS col2, 17 col2 +---- +-9 +17 query II rowsort label-5192 SELECT - 80 / 6, 72 / + 65 + - - 17 col2 @@ -27685,8 +28020,11 @@ SELECT + 0 * 61 * + 91 * - 43 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(95\) / Int64\(55\) \+ Int64\(53\) \+ Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col0, 95 / + 55 + + 53 + 35 AS col0 +---- +1 +89 query I rowsort label-5257 SELECT ALL ( + + 80 ) * + 74 + + MIN ( 16 ) AS col0 @@ -28304,8 +28642,11 @@ SELECT + 53 * - 33 * + + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-75\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 75 AS col0, ( + COUNT ( * ) ) AS col0 +---- +1 +75 query I rowsort label-5376 SELECT + CAST ( NULL AS INTEGER ) + + 0 * 76 col2 @@ -28877,8 +29218,11 @@ SELECT + ( + + 54 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 56 AS col2, 37 AS col2 +---- +37 +56 query I rowsort label-5486 SELECT - 48 * - - COUNT ( * ) AS col0 @@ -29680,8 +30024,11 @@ 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\(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\. +query II valuesort 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 +---- +-35 +-41 query I rowsort SELECT - + 22 + - 2 AS col1 @@ -29929,8 +30276,11 @@ SELECT ALL + CAST ( + 16 AS INTEGER ) + - - 34 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1867 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-68\)\) \+ Int64\(43\) \* Int64\(45\) AS col2" at position 0 and "coalesce\(Int64\(71\), max\(Int64\(\-54\)\)\) \+ Int64\(\-48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( - 68 ) + 43 * + 45 AS col2, COALESCE ( 71, + MAX ( - 54 ) ) + - 48 AS col2 +---- +1867 +23 query I rowsort label-5688 SELECT - SUM ( ALL - 78 ) * + CAST ( NULL AS INTEGER ) * + - 78 - 45 + + - 97 @@ -30599,8 +30949,11 @@ SELECT ALL 59 * - 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - -122 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col1" at position 0 and "Int64\(\-97\) \+ Int64\(\-56\) \- Int64\(6\) \+ Int64\(0\) \- Int64\(\-37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 27 col1, - 97 + - 56 - 6 + 0 - - 37 AS col1 +---- +-122 +-27 query I rowsort SELECT 29 + - 28 col2 @@ -31074,8 +31427,11 @@ 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\(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\. +query II valuesort SELECT - 9 + - CASE ( - - 16 ) WHEN 31 * + COUNT ( * ) * COUNT ( * ) - - + 38 THEN + + 36 END + 92 AS col1, + 87 col1 +---- +87 +NULL query I rowsort SELECT - - 99 * + COALESCE ( + 36, - CASE - - 44 WHEN + 27 * 32 / - 79 + - + 37 + + 16 THEN 19 ELSE NULL END, - CASE - 23 WHEN + + 69 + + - 55 THEN 70 ELSE NULL END, + + 29 ) * 0 + - + 87 + + + 47 @@ -31233,8 +31589,11 @@ SELECT DISTINCT 28 * - + 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "Int64\(\-17\) / Int64\(\-3\) \- Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 53 AS col1, - 17 / + ( + - 3 ) - + 53 col1 +---- +-48 +53 query II rowsort label-5937 SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, 87 col1 @@ -31658,8 +32017,11 @@ SELECT ALL 11 + - ( - 44 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 2470 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 0 and "Int64\(\-65\) \* Int64\(\-38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 AS col1, - 65 * - 38 col1 +---- +2470 +32 query I rowsort SELECT DISTINCT 40 + + 79 @@ -31987,8 +32349,11 @@ SELECT DISTINCT - 38 * MAX ( ALL 41 ) * MIN ( + - 9 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 88 col2, + 90 AS col2 +---- +88 +90 query I rowsort SELECT - 80 - - 85 * + 31 AS col2 @@ -32434,8 +32799,11 @@ SELECT ALL - 37 * + 3 + + + 38 * - + 76 * 85 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 105 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) / Int64\(20\) \* Int64\(5\) \+ Int64\(85\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 / 20 * + + 5 + + + 85 col1, 79 AS col1 +---- +105 +79 query I rowsort SELECT 62 * - 52 - + 33 AS col2 @@ -32565,8 +32933,11 @@ SELECT DISTINCT + NULLIF ( + 19, + 93 * - 91 ) AS col0, - 67 * + 15 + + 43 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2590 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* Int64\(\-74\) AS col1" at position 0 and "Int64\(\-44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 * - 74 AS col1, - 44 AS col1 +---- +-2590 +-44 query I rowsort label-6186 SELECT - ( + MIN ( 4 ) ) @@ -32576,8 +32947,11 @@ SELECT - ( + MIN ( 4 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(DISTINCT \(\- \(\- CAST\(NULL AS Int32\)\)\)\)\)\) \* CASE Int64\(53\) WHEN Int64\(57\) THEN Int64\(\-55\) \* Int64\(39\) \+ \(\- Int64\(\-88\)\) \+ Int64\(94\) END AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) ) * + CASE + 53 WHEN + + 57 THEN - 55 * + 39 + - - 88 + + 94 END AS col1, COUNT ( * ) AS col1 +---- +1 +NULL query I rowsort label-6188 SELECT - 88 / 16 AS col0 @@ -32921,8 +33295,11 @@ SELECT DISTINCT ( + 80 ) * - COUNT ( DISTINCT - 91 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 146 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) / Int64\(15\) AS col0" at position 0 and "Int64\(91\) \+ Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 20 / 15 AS col0, + 91 + 55 AS col0 +---- +1 +146 query I rowsort label-6254 SELECT 7 * MIN ( ALL - 78 ) AS col2 @@ -33678,8 +34055,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 1491 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col0" at position 0 and "Int64\(21\) \* \(\- max\(Int64\(46\)\)\) \+ Int64\(63\) \* Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 23 AS col0, 21 * - MAX ( 46 ) + 63 * + 39 AS col0 +---- +-23 +1491 query I rowsort label-6403 SELECT + CASE 53 WHEN - 9 THEN NULL ELSE - 10 + CAST ( NULL AS INTEGER ) END * 44 + ( ( - 76 ) ) @@ -33753,8 +34133,11 @@ SELECT DISTINCT 85 + 8 col1 # 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\(\-57\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 57 AS col2, 90 AS col2 +---- +-57 +90 query I rowsort SELECT 93 + + - COALESCE ( - - CASE 89 WHEN - 35 + + 40 THEN + 4 WHEN - 33 THEN NULL ELSE NULL END, 25, 49 ) AS col2 @@ -33857,8 +34240,11 @@ SELECT - 9 / - 15 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(34\)\) AS col0" at position 0 and "Int64\(\-21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 34 AS col0, - 21 AS col0 +---- +-21 +-34 query I rowsort SELECT ALL 36 * - 79 @@ -33908,8 +34294,11 @@ SELECT - COUNT ( - + 50 ) + + COALESCE ( - 79, - 99 ) 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\(DISTINCT Int64\(\-93\)\) AS col0" at position 0 and "Int64\(\-21\) \- Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( DISTINCT - 93 ) AS col0, - 21 - - 66 AS col0 +---- +1 +45 query I rowsort label-6447 SELECT - COALESCE ( - 51, 17 ) / CAST ( 23 AS INTEGER ) * 1 AS col1 @@ -34279,8 +34668,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Float64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - 78 col0, + 60 * + - 99 + 37 + + - 62 + COUNT ( * ) * - CAST ( NULL AS FLOAT8 ) AS col0 +---- +-78 +NULL query I rowsort SELECT 87 - + 44 @@ -34688,8 +35080,11 @@ SELECT ALL NULLIF ( - COUNT ( * ), 65 + + - 35 * - COUNT ( * ) + ( 67 ) + - 27 ) # 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\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 99 col2, + 49 AS col2 +---- +49 +99 query I rowsort SELECT DISTINCT ( - + 26 ) AS col0 @@ -34783,8 +35178,11 @@ SELECT ( - 39 ) * + 55 + 81 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 578665 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(27\) \+ Int64\(70\) \* Int64\(16\) \+ \(\- Int64\(82\)\) \+ coalesce\(min\(DISTINCT Int64\(\-95\)\), Int64\(5\), Int64\(94\) \+ Int64\(\-26\)\) \* Int64\(95\) \* \(\- Int64\(64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col2, 27 + ( + + 70 ) * + 16 + - + 82 + COALESCE ( + MIN ( DISTINCT - 95 ), 5, 94 + - 26 ) * 95 * - ( 64 ) AS col2 +---- +1 +578665 query I rowsort label-6614 SELECT + CAST ( NULL AS INTEGER ) * - 94 + - 69 + - 31 * + - 5 - 31 col1 @@ -34918,8 +35316,12 @@ SELECT + 86 * - 47 + + 85 * + 81 * + 99 AS col0 # Datafusion - Expected - 198 # Datafusion - Expected - 53 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(66\) \+ Int64\(\-22\) \* Int64\(66\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 25 * + + 66 + - 22 * 66 AS col1, 53 AS col1, + - 8 AS col0 +---- +-8 +198 +53 query I rowsort label-6640 SELECT DISTINCT + - 77 + COUNT ( DISTINCT - + 86 ) @@ -34994,8 +35396,11 @@ SELECT 87 + - 32 * + CAST ( 43 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(94\)\)\) AS col2" at position 0 and "Int64\(49\) \+ \(\- Int64\(51\)\) / Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( COUNT ( ALL 94 ) ) AS col2, 49 + - ( + 51 ) / - 20 AS col2 +---- +-1 +51 query I rowsort SELECT ( 93 ) * - - 70 * - + 40 @@ -35005,8 +35410,11 @@ SELECT ( 93 ) * - - 70 * - + 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1074 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-22\)\) \* \(\- Int64\(\-52\)\) \+ Int64\(70\) AS col1" at position 0 and "Int64\(98\) \* \(\- Int64\(0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( ALL - 22 ) * - ( - 52 ) + 70 AS col1, + 98 * + - ( + 0 ) col1 +---- +-1074 +0 query I rowsort label-6657 SELECT ( - NULLIF ( + + 28, + 80 ) ) + - - COUNT ( * ) - + 78 AS col1 @@ -35210,8 +35618,11 @@ SELECT ALL COALESCE ( 0, - 85 - 52 - + - 38 - + NULLIF ( 92, - 82 ) + + - 62 * - # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 36 col1, 31 AS col1 +---- +-36 +31 query I rowsort SELECT + 3 + - 55 + - 26 @@ -35236,8 +35647,11 @@ SELECT - 91 + - - COALESCE ( - + 71, - 70 + 7 ) # 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 col2" at position 0 and "Int64\(9\) \* Int64\(\-1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 AS col2, + 9 * - 1 AS col2 +---- +-9 +75 query I rowsort label-6701 SELECT - 67 + 93 * + 20 + - COUNT ( * ) AS col0 @@ -35302,8 +35716,11 @@ SELECT + CAST ( COALESCE ( + 32, + 35 ) AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col1" at position 0 and "Int64\(\-8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 77 AS col1, - 8 col1 +---- +-8 +77 query II rowsort SELECT ALL + 21, 58 AS col0 @@ -35355,8 +35772,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( 52 ) col2, COUNT ( * ) * - - 17 / - COUNT ( * ) - - - 22 AS col2 +---- +-39 +1 query I rowsort SELECT - 58 * 87 * + + 46 AS col2 @@ -35411,8 +35831,12 @@ SELECT DISTINCT - 1 * + 39 AS col1 # Datafusion - Expected - 1 # Datafusion - Expected - 2 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT Int64\(\-20\)\) AS col1" at position 0 and "count\(Int64\(61\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT COUNT ( DISTINCT - 20 ) AS col1, + COUNT ( + 61 ) + COUNT ( * ) col1, MAX ( DISTINCT ( 69 ) ) AS col2 +---- +1 +2 +69 query I rowsort SELECT ALL ( + 19 ) AS col0 @@ -35492,8 +35916,11 @@ SELECT + 77 * + 29 - 16, - 33 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(63\)\) \- Int64\(5\) \+ Int64\(79\) \+ Int64\(26\) AS col0" at position 0 and "\(\- max\(Int64\(54\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - ( + + 63 ) - 5 + 79 + 26 AS col0, - MAX ( + 54 ) AS col0 +---- +-54 +37 query I rowsort label-6749 SELECT ALL + 32 / - - 13 - - 32 + + + 68 / - + 36 + - 10 AS col1 @@ -35571,8 +35998,12 @@ SELECT 47 - + ( + 50 ) + + 33 * + COALESCE ( 19, + + 21 + 51, - + COUNT ( * ) - # Datafusion - Expected - 79 # Datafusion - Expected - -6715 # Datafusion - Expected - 125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \+ Int64\(\-87\) \* Int64\(78\) AS col2" at position 1 and "Int64\(45\) \+ Int64\(80\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT COUNT ( * ) + + + 39 * 2, 71 + - 87 * 78 AS col2, 45 + + + 80 AS col2 +---- +-6715 +125 +79 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -35652,8 +36083,11 @@ SELECT ALL 18 AS col2, - 82 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 5056 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "coalesce\(Int64\(64\), Int64\(4\)\) \* Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 78 AS col1, + COALESCE ( + 64, + 4 ) * + 79 AS col1 +---- +5056 +78 query I rowsort label-6779 SELECT DISTINCT + + 50 + 42 / - ( - 25 ) @@ -35786,8 +36220,11 @@ 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\(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\. +query II valuesort SELECT 75 - + 47 + + 54 + - COUNT ( * ) AS col0, 21 * ( - - ( ( + - 90 ) ) ) * - MIN ( DISTINCT - NULLIF ( - + 68, + 33 + - 8 ) ) AS col0 +---- +128520 +81 query I rowsort label-6805 SELECT DISTINCT + 18 * + + 4 - + COUNT ( * ) @@ -36400,8 +36837,11 @@ SELECT DISTINCT - ( 59 ) * + 97 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 83 col0, 17 AS col0 +---- +-83 +17 query I rowsort label-6924 SELECT DISTINCT 59 * - 8 + 12 + 89 / ( 77 ) - + 52 + + CASE + 58 WHEN + - MIN ( ALL - 41 ) THEN 31 + COALESCE ( + 36, - - ( + MIN ( + + 76 ) ) - 5 ) WHEN ( + COUNT ( * ) ) * - 58 - + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END + 9 * 83 * - 82 AS col2 @@ -36617,8 +37057,11 @@ SELECT SUM ( - + 15 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col2, 47 AS col2 +---- +1 +47 query I rowsort SELECT + 63 * + + 61 * + - 38 col1 @@ -37043,8 +37486,11 @@ SELECT COALESCE ( - + 76, - COUNT ( * ) / - - 68 * + + 90 + + + CAST ( + 2 AS IN # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(89\) \+ \(\- \(\- count\(Int64\(79\)\)\)\)\)\) \* \(\- Int64\(\-16\)\) \- Int64\(\-94\) \* Int64\(\-6\) \- Int64\(2\) \* Int64\(7\) AS col1" at position 0 and "Int64\(\-38\) \+ Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + COALESCE ( + COUNT ( * ), + 89 + - - COUNT ( + 79 ) ) * - - 16 - - 94 * + - 6 - + 2 * 7 AS col1, - 38 + + - 90 AS col1 +---- +-128 +NULL query II rowsort SELECT + 55 AS col2, 85 col0 @@ -37314,8 +37760,11 @@ SELECT DISTINCT 67 * + 91 * - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(52\) / \(\- avg\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "\(\- count\(Int64\(\-39\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT 3 * + 52 / + - AVG ( ALL + - CAST ( NULL AS INTEGER ) ) AS col1, - COUNT ( - 39 ) AS col1 +---- +-1 +NULL query I rowsort label-7097 SELECT ALL + ( - - COUNT ( * ) ) + - 87 + - 4 * - ( - COUNT ( * ) ) * - 12 * COUNT ( * ) @@ -37565,8 +38014,11 @@ SELECT ALL + - 14 - + + 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 365820 # Datafusion - Expected - 108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(65\), Int64\(\-51\)\) \* Int64\(84\) \* Int64\(67\) AS col2" at position 0 and "Int64\(4\) \* Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( + 65, - 51 ) * + 84 * + 67 AS col2, 4 * 27 AS col2 +---- +108 +365820 query I rowsort label-7143 SELECT ALL - ( CASE - 11 WHEN 91 + + 73 / + - 75 / ( - 58 ) + 25 + + NULLIF ( 66, - + 38 * + ( + 93 ) - + ( + - 73 ) * + 4 ) * - + ( + - 69 ) THEN + 11 + COUNT ( ( 87 ) ) END ) / + + NULLIF ( 98, - 75 ) AS col1 @@ -37606,8 +38058,11 @@ SELECT 49 + + - 27 * 80 AS col0 # 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 "max\(Int64\(9\)\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MAX ( ALL + 9 ) AS col2, 93 AS col2 +---- +9 +93 query I rowsort SELECT 3 * + 72 AS col2 @@ -37707,8 +38162,11 @@ SELECT COALESCE ( + + ( 5 ), + 3 * + 4 / + 6 ) * + ( - + 31 ) + - 93 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1296 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col2" at position 0 and "Int64\(16\) \* Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 AS col2, + 16 * + + 81 AS col2 +---- +1 +1296 query II rowsort label-7170 SELECT + 11 + + - 14 * + COUNT ( * ) + + MIN ( + + ( - 40 ) ) * - - 45, 15 AS col2 @@ -38033,8 +38491,11 @@ SELECT ALL + 51 - + 36 + 29 * - CAST ( - - CAST ( + 56 AS INTEGER ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 13209 # Datafusion - Expected - -1235 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* Int64\(21\) \* Int64\(17\) AS col1" at position 0 and "Int64\(\-19\) \* Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 * + + 21 * + 17 AS col1, - 19 * + 65 AS col1 +---- +-1235 +13209 query I rowsort label-7231 SELECT - CAST ( + 23 AS INTEGER ) / - 91 + + - 18 @@ -38303,8 +38764,11 @@ SELECT - 33 + 23 * - - 90 - 85 + + + 55 + - + 7 / ( - - 85 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 57 AS col0, COUNT ( * ) - + COUNT ( * ) AS col0 +---- +-57 +0 query I rowsort SELECT - 21 * 26 AS col0 @@ -38635,8 +39099,12 @@ SELECT + COUNT ( * ), 80 AS col0 # Datafusion - Expected - -84 # Datafusion - Expected - -39 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- Int64\(43\)\)\)\) / Int64\(63\) \* Int64\(25\) \+ \(\- \(\- CAST\(Int64\(\-84\) AS Int32\)\)\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - MAX ( - + 43 ) / + 63 * + 25 + - - CAST ( + - 84 AS INTEGER ) AS col1, - 39, 67 AS col1 +---- +-39 +-84 +67 query I rowsort label-7344 SELECT - CAST ( NULL AS INTEGER ) * + 73 * - + CASE 79 WHEN - - ( COALESCE ( + CAST ( + - 26 AS INTEGER ), + ( 52 ) * + 95 + ( - 87 ) ) ) THEN + + 49 * - 5 + + NULLIF ( - COUNT ( * ), - 79 ) ELSE NULL END @@ -38931,8 +39399,11 @@ SELECT ALL COALESCE ( 98, - 68 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 149 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ \(\- CAST\(\(\- Int64\(94\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 55 + + - CAST ( - + 94 AS INTEGER ) col1, 63 AS col1 +---- +149 +63 query I rowsort label-7400 SELECT DISTINCT 14 + + - COUNT ( * ) AS col2 @@ -40001,8 +40472,11 @@ SELECT 22 / 89 * - 63 + + ( + 71 ) + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \+ Int64\(\-17\) AS col1" at position 0 and "Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 7 + + - 17 AS col1, 89 AS col1 +---- +-10 +89 query I rowsort label-7604 SELECT - NULLIF ( - - 74, + + CAST ( + + 34 AS INTEGER ) ) AS col1 @@ -40151,8 +40625,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -503 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) \* Int64\(14\) \+ \(\- \(\- count\(Int64\(\-9\)\)\)\) \+ 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 II valuesort SELECT ALL ( + - 32 ) * 14 + - - COUNT ( - 9 ) + - 56 col1, 76 col1 +---- +-503 +76 query I rowsort label-7633 SELECT DISTINCT + 43 / - 26 @@ -40196,8 +40673,11 @@ 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\(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\. +query II valuesort SELECT + NULLIF ( + + 78, + COUNT ( * ) ) * - 30 + - + 97 AS col1, 68 AS col1 +---- +-2437 +68 query I rowsort SELECT ALL + 60 - - 60 + - ( + + 78 ) @@ -40317,8 +40797,11 @@ SELECT ALL + 5 - - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 4958 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col1" at position 0 and "Int64\(74\) \* Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 AS col1, + 74 * + 67 AS col1 +---- +27 +4958 query I rowsort label-7663 SELECT + - 19 * - CASE + 81 WHEN + + COUNT ( * ) THEN NULL WHEN 15 - 17 THEN + 70 ELSE 64 END AS col1 @@ -40339,8 +40822,11 @@ SELECT + 81 * + 58 + - 17 * + 57 * - 34 - + 30 AS col0, + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - -57121 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "Int64\(60\) \* Int64\(\-68\) \* Int64\(14\) \+ Int64\(\-92\) / Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 col2, 60 * + - 68 * 14 + - 92 / 67 AS col2 +---- +-57121 +7 query I rowsort SELECT + 10 * - 53 + - + 46 @@ -40611,8 +41097,11 @@ SELECT ( + COUNT ( * ) ) + COUNT ( * ) * + + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 94 -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\) \+ Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 76 col0, 55 + + 39 AS col0 +---- +76 +94 query I rowsort label-7717 SELECT DISTINCT COUNT ( * ) * - - 92 AS col1 @@ -40666,8 +41155,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col0" at position 0 and "Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 85 AS col0, - 27 AS col0 +---- +-27 +85 query I rowsort label-7727 SELECT 95 / 4 AS col1 @@ -40687,8 +41179,11 @@ SELECT - 65 / 31 * - - COALESCE ( - ( - COUNT ( * ) ), + 5, 1 * - - 78 ) * - - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2009 # Datafusion - Expected - -1729 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(41\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(80\) \* Int64\(\-21\) \+ Int64\(\-49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 49 * 41 * COUNT ( * ) AS col1, 80 * - 21 + - 49 AS col1 +---- +-1729 +2009 query I rowsort label-7731 SELECT ALL + - COUNT ( ALL 64 ) + + CAST ( + 18 AS INTEGER ) / + 62 @@ -40780,8 +41275,11 @@ SELECT + 88 * + CAST ( + - 15 AS INTEGER ) - 51 # 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 "\(\- Int64\(55\)\) \- Int64\(\-68\) AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 55 - - 68 AS col2, 64 AS col2 +---- +13 +64 query I rowsort label-7749 SELECT DISTINCT - - 65 + - 34 * - - CAST ( NULL AS INTEGER ) AS col2 @@ -40948,8 +41446,11 @@ SELECT ALL + 65 + - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-13\)\) \+ Int64\(\-86\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - ( + - 13 ) + - 86 AS col2, COUNT ( * ) AS col2 +---- +-73 +1 query I rowsort label-7782 SELECT - + 15 / - 7 col1 @@ -41037,8 +41538,11 @@ SELECT ALL + 26 AS col1, 8 / + 86 * COUNT ( - - 38 ) # 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 col1" at position 0 and "Int64\(36\) / Int64\(\-58\) \* Int64\(\-49\) \* \(\- Int64\(89\)\) \* Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 29 AS col1, 36 / - 58 * - 49 * - + 89 * 77 AS col1 +---- +0 +29 query II rowsort label-7799 SELECT DISTINCT + 32, - CAST ( NULL AS INTEGER ) * - + CAST ( - 58 AS INTEGER ) AS col2 @@ -41050,8 +41554,12 @@ NULL # Datafusion - Expected - 71 # Datafusion - Expected - 634 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col0" at position 0 and "Int64\(76\) \+ Int64\(9\) \* Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 71 AS col0, 76 + 9 * + 62 AS col0, + 90 AS col2 +---- +634 +71 +90 query II rowsort SELECT DISTINCT + 42 AS col0, + 86 * - + 48 @@ -41249,8 +41757,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -120 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-81\)\) \+ Int64\(\-39\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( - 81 ) + - 39 AS col1, 92 AS col1 +---- +-120 +92 query I rowsort SELECT DISTINCT 37 + - 62 * 61 @@ -41894,8 +42405,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - NULLIF ( + + 22, + 79 ) AS col2, - COUNT ( * ) AS col2 +---- +-1 +-22 query I rowsort SELECT 50 * - 67 * 78 @@ -42833,8 +43347,11 @@ SELECT + COUNT ( * ) AS col0, 91 * - 41 + + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 col0, 38 AS col0 +---- +38 +82 query I rowsort label-8143 SELECT ALL 1 + COUNT ( DISTINCT - 12 ) * 75 AS col0 @@ -43226,8 +43743,11 @@ 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\(1\)\) AS count\(\*\), Int64\(21\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + - SUM ( ALL + 72 ) ) AS col2, NULLIF ( + CASE + - 65 WHEN - + 53 THEN 9 + - 41 ELSE NULL END, - NULLIF ( COUNT ( * ), + 21 ) ) AS col2 +---- +-72 +NULL query I rowsort label-8219 SELECT - 89 / + 93 * + 68 @@ -43547,8 +44067,11 @@ SELECT DISTINCT - 44, + 56 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53016 # Datafusion - Expected - 4530 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \* Int64\(\-94\) \* \(\- Int64\(12\)\) AS col1" at position 0 and "Int64\(8\) \+ Int64\(44\) \+ Int64\(51\) \* \(\- Int64\(\-88\)\) \- Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 47 * - 94 * - + 12 AS col1, 8 + + 44 + + 51 * - - 88 - + 10 AS col1 +---- +-53016 +4530 query I rowsort SELECT ALL + - 69 + + 69 - + + 51 * - - 19 @@ -43896,8 +44419,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 30 AS col2, 7 AS col2 +---- +30 +7 query I rowsort SELECT + 71 * + 73 * + 90 @@ -44594,8 +45120,12 @@ SELECT DISTINCT 8 + - ( + 81 ) / + 58 # Datafusion - Expected - 77 # Datafusion - Expected - 74 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \+ Int64\(23\) AS col0" at position 1 and "Int64\(\-76\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 77 AS col2, 51 + 23 AS col0, - 76 AS col0 +---- +-76 +74 +77 query I rowsort SELECT DISTINCT - CASE 42 WHEN - 72 THEN NULL ELSE - 54 END @@ -44678,8 +45208,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 0 and "Int64\(\-92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 AS col1, - 92 AS col1 +---- +-92 +58 query II rowsort label-8495 SELECT 62 * + ( - + 6 ) AS col2, - COALESCE ( - + COALESCE ( - 70, + + COUNT ( * ), - 16 + 98 ), + - 36 ) + - 24 + - COUNT ( * ) @@ -44826,8 +45359,11 @@ SELECT 69 * - COUNT ( * ) + 22 AS col0 # 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\(16\) AS col1" at position 0 and "Int64\(\-59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 16 AS col1, - 59 col1 +---- +-59 +16 query I rowsort label-8523 SELECT DISTINCT SUM ( DISTINCT + + 33 ) AS col0 @@ -45654,8 +46190,11 @@ SELECT - MIN ( DISTINCT 70 ) * - + 18 * 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(7\) \+ Int64\(1\) \+ count\(Int64\(74\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(99\)\) \+ \(\- Int64\(\-48\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, 7 + 1 + + + COUNT ( ALL 74 ) * + + COUNT ( * ) + - + 99 + - - 48 AS col1 +---- +-42 +1 query I rowsort SELECT ALL + 84 * 84 AS col1 @@ -45726,8 +46265,11 @@ SELECT DISTINCT + - ( 88 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col1" at position 0 and "Int64\(77\) \* Int64\(0\) \+ \(\- Int64\(\-6\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 65 AS col1, + 77 * - 0 + - - 6 AS col1 +---- +6 +65 query I rowsort label-8695 SELECT + - 41 + - NULLIF ( + 79, 56 ) + + MIN ( - + 22 ) + - + 80 AS col2 @@ -46117,8 +46659,12 @@ SELECT ALL - 19 + ( - 26 ) # Datafusion - Expected - 14 # Datafusion - Expected - 29120632 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(86\)\) \+ Int64\(61\) \* Int64\(\-61\) \* Int64\(91\) \* \(\- Int64\(86\)\) AS col1" at position 1 and "count\(\(\- Int64\(97\)\)\) \+ Int64\(69\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + COUNT ( - 87 ) + + 13 AS col0, MIN ( 86 ) + 61 * - 61 * 91 * - + 86 AS col1, + + COUNT ( ALL - + 97 ) + + ( + 69 ) AS col1 +---- +14 +29120632 +70 query I rowsort label-8769 SELECT 0 * 99 / + 72 + + - 71 AS col2 @@ -46262,8 +46808,11 @@ SELECT - COUNT ( DISTINCT 67 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) / Int64\(\-19\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 50 / - 19 AS col2, 33 AS col2 +---- +-2 +33 query I rowsort label-8796 SELECT - CASE + MAX ( ALL 97 ) WHEN - 12 + - 7 - - 85 + - 66 / - CASE 22 WHEN - + COUNT ( * ) + - - 49 THEN NULL WHEN 7 THEN - + NULLIF ( + 89, - 49 + - + ( CAST ( COUNT ( 93 ) AS INTEGER ) ) * - + 69 + 26 * - 27 * + - 90 ) ELSE + NULLIF ( 31, - 21 * 19 + - AVG ( ALL + ( 15 ) ) ) * 24 END * 35 THEN + 20 + + 92 * CAST ( NULLIF ( + ( 53 ), 43 ) AS INTEGER ) END AS col1 @@ -46298,8 +46847,11 @@ SELECT DISTINCT COALESCE ( + + 82, 19 ) * + 38 + - 73 + - 11 + - 28 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3162 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* \(\- Int64\(51\)\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 62 * - + 51 AS col0, 77 AS col0 +---- +-3162 +77 query I rowsort label-8803 SELECT 59 * 52 * COUNT ( * ) + + 36 * - 72 @@ -46365,8 +46917,11 @@ SELECT - 37 * ( - + SUM ( - - 5 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 33 AS col0, 31 AS col0 +---- +31 +33 query I rowsort SELECT ALL + ( + + 67 ) AS col2 @@ -46635,8 +47190,11 @@ SELECT DISTINCT + 11 AS col0, 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "Int64\(\-44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 AS col2, - 44 AS col2 +---- +-44 +37 query I rowsort SELECT + 19 * + 35 @@ -46703,8 +47261,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + 87 ) AS col2, COUNT ( * ) / + 89 AS col2 +---- +-87 +0 query I rowsort SELECT ALL 2 * + - 44 AS col0 @@ -46743,8 +47304,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 111 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \+ Int64\(17\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 94 + + + 17 AS col1, 91 AS col1 +---- +111 +91 query I rowsort SELECT 95 * - 43 @@ -46876,8 +47440,11 @@ SELECT ALL + ( - SUM ( + 94 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 84 col1, + 54 AS col1 +---- +54 +84 query I rowsort label-8911 SELECT CASE + COALESCE ( + COUNT ( * ), - 88, + - 37 ) WHEN 40 THEN - 53 * + - 1 WHEN 83 THEN NULL ELSE 53 + - + 14 - + 80 * - - COUNT ( * ) * + 90 END @@ -46940,8 +47507,11 @@ SELECT - + SUM ( 80 ) * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(44\)\) AS col2" at position 0 and "Int64\(56\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 44 AS col2, 56 * COUNT ( * ) AS col2 +---- +-44 +56 query I rowsort SELECT + - 95 + - + 31 AS col1 @@ -46956,8 +47526,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 col0, - COALESCE ( 61, - 24 * + - 75 + 84, - COUNT ( * ) ) AS col0 +---- +-61 +86 query I rowsort label-8926 SELECT + + CAST ( + + ( - - COUNT ( * ) ) AS INTEGER ) * + + 26 AS col1 @@ -47024,8 +47597,11 @@ SELECT - ( 86 ) - - ( - 88 ) - + NULLIF ( + 1, + 67 / + NULLIF ( - NULLIF ( ( + # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(8\)\) AS col2" at position 0 and "max\(\(\- Int64\(74\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + + 8 ) AS col2, + MAX ( - + 74 ) AS col2 +---- +-74 +-8 query I rowsort label-8939 SELECT + 55 + - CAST ( - 96 AS INTEGER ) @@ -47402,8 +47978,11 @@ SELECT ALL 89 - + 55 * - 87 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col0" at position 0 and "Int64\(51\) \+ Int64\(\-62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 91 AS col0, 51 + - 62 AS col0 +---- +-11 +91 query I rowsort SELECT 94 + + - 88 col2 @@ -47489,8 +48068,11 @@ SELECT DISTINCT - + 60 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -100 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \+ \(\- Int64\(87\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 12 + - ( 87 ) + + - COUNT ( * ) AS col0, + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0 +---- +-100 +NULL query I rowsort SELECT - COALESCE ( + CASE - 87 WHEN + 32 * + 91 - + 33 * + 74 THEN - 49 ELSE + - NULLIF ( + 45, 55 ) END, - - 78 ) @@ -47646,8 +48228,11 @@ SELECT - + 57 - - + 13 + - 9 * + MAX ( - 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col0" at position 0 and "Int64\(4\) \+ Int64\(13\) / \(\- Int64\(63\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + 72 ) AS col0, + 4 + 13 / - + 63 AS col0 +---- +4 +72 query I rowsort label-9058 SELECT DISTINCT - - COUNT ( * ) * 72 + - 72 + - COALESCE ( - 65, - SUM ( + 51 ), + + COALESCE ( + 29, + + ( + + 35 ) + CAST ( - 51 AS INTEGER ) + ( - 59 ) + + 9, - + 73 ) * + CASE 64 WHEN + 0 * - - COUNT ( * ) + - 49 THEN 51 ELSE - + 40 END * + 40 + - + 8 * + COUNT ( * ) + + ( + 98 ) + + CAST ( - 50 AS INTEGER ) + - 42 * + 39 ) * 23 + - 25 AS col1 @@ -48154,8 +48739,11 @@ SELECT - COUNT ( * ) * + 11 + - - 95 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 131 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col2" at position 0 and "Int64\(94\) \- Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 22 col2, + 94 - - 37 AS col2 +---- +-22 +131 query I rowsort label-9157 SELECT + 5 + - CAST ( 12 AS INTEGER ) + 28 * - 18 / - CASE WHEN NOT - 92 IS NOT NULL THEN - - 41 + 85 END col2 @@ -49174,8 +49762,12 @@ SELECT ALL + 81 - + 60 * - 19 AS col2 # Datafusion - Expected - 37 # Datafusion - Expected - 7 # Datafusion - Expected - 229100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "Int64\(82\) \+ max\(Int64\(\-75\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 37 AS col2, + 82 + + MAX ( - 75 ) AS col2, - COUNT ( * ) + - - 18 + 3 + - + 46 * COUNT ( * ) * - 83 * + + 60 +---- +229100 +37 +7 query I rowsort SELECT 12 - + - 61 AS col1 @@ -50131,8 +50723,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * + 5 * + 2 / - - 98 - 78 * - ( + 3 ) AS col2, + 56 * + + 10 * + - 74 - + 47 AS col2 +---- +-41487 +234 query II rowsort label-9530 SELECT ALL + COUNT ( * ) * + 48 - - + ( 27 ) + - + 93 + - - 4 + - 42 AS col2, 33 col1 @@ -51250,8 +51845,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 78 AS col2, 59 AS col2 +---- +59 +78 query I rowsort label-9746 SELECT DISTINCT + 18 * COUNT ( * ) @@ -51318,8 +51916,11 @@ SELECT 41 * + + 58 - - - 20 + 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col0" at position 0 and "Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 35 AS col0, - 56 AS col0 +---- +-35 +-56 query II rowsort label-9759 SELECT + 28 AS col2, 0 * - 87 + + SUM ( ALL + 4 ) @@ -51428,8 +52029,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 22 * - COUNT ( * ) AS col0, - 11 AS col0 +---- +-11 +22 query I rowsort label-9780 SELECT - 19 / COUNT ( * ) AS col1 @@ -51521,8 +52125,11 @@ SELECT + ( + 68 ) / - COUNT ( - + 21 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-97\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) * - 97 AS col0, CAST ( NULL AS INTEGER ) AS col0 +---- +97 +NULL query I rowsort label-9798 SELECT - CASE - 17 WHEN - ( COUNT ( * ) ) * - 93 THEN NULL WHEN - 60 THEN 88 * - 26 END AS col2 @@ -52209,8 +52816,11 @@ SELECT - COUNT ( * ) / + 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "Int64\(13\) \+ Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 23 AS col2, 13 + - 74 AS col2 +---- +-61 +23 query I rowsort SELECT + 94 + - 32 + - - 55 col2 @@ -52437,8 +53047,11 @@ 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\(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\. +query II valuesort SELECT - + COALESCE ( 47, - 1 ) * - COUNT ( * ) AS col2, 92 * + COUNT ( * ) * + 12 AS col2 +---- +1104 +47 query I rowsort SELECT DISTINCT COALESCE ( - + 67, + + CASE + - 13 WHEN - 20 THEN NULL WHEN 30 THEN NULL WHEN 0 / + 42 THEN NULL ELSE + - 78 END ) diff --git a/data/sqlite/random/expr/slt_good_64.slt b/data/sqlite/random/expr/slt_good_64.slt index d3a9bfa..cc1fdd6 100644 --- a/data/sqlite/random/expr/slt_good_64.slt +++ b/data/sqlite/random/expr/slt_good_64.slt @@ -562,8 +562,11 @@ SELECT + COUNT ( * ) + - - COUNT ( * ) * + 54 * - - 7 # 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\(\-44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 62 AS col2, - 44 AS col2 +---- +-44 +-62 query I rowsort label-102 SELECT DISTINCT MAX ( 33 ) AS col0 @@ -1105,8 +1108,11 @@ SELECT ALL + ( - COUNT ( * ) ) + 44 + COUNT ( * ) * - 6 * - COUNT ( * ) + + 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \+ Int64\(\-59\) AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 51 + - 59 col1, 17 AS col1 +---- +-8 +17 query I rowsort SELECT - 63 * + 62 AS col0 @@ -1767,8 +1773,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 17 * 92 / - + 34 AS col2, - COUNT ( * ) AS col2 +---- +-1 +46 query I rowsort label-330 SELECT ALL + COUNT ( ( - 83 ) ) AS col1 @@ -1881,8 +1890,11 @@ NULL # 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 "Int64\(\-93\) AS col1" at position 0 and "Int64\(\-11\) \+ \(\- Int64\(\-80\)\) \+ Int64\(\-34\) \+ Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 93 col1, - 11 + - - 80 + - 34 + + + 21 AS col1 +---- +-93 +56 query II rowsort SELECT - 96, + 20 AS col2 @@ -1925,8 +1937,11 @@ SELECT NULLIF ( + + 17, - 21 ) * + - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-33\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) / Int64\(60\) \+ Int64\(\-53\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(79\) \+ Int64\(1\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT NULLIF ( - 33, - - COUNT ( * ) ) / + 60 + - 53 * ( - COUNT ( * ) ) / + 79 + 1 AS col0, COUNT ( * ) AS col0 +---- +1 +1 query II rowsort label-360 SELECT ALL ( - + CAST ( NULL AS INTEGER ) ) * - - 51 * 55, SUM ( 14 ) col0 @@ -2030,8 +2045,11 @@ SELECT + 53 + 32 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1704 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \* \(\- Int64\(\-29\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-80\) AS col1" at position 0 and "Int64\(44\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 * - - 29 * - COUNT ( * ) + + - 80 col1, + 44 * COUNT ( * ) AS col1 +---- +-1704 +44 query I rowsort SELECT 87 + + 12 AS col1 @@ -2082,8 +2100,11 @@ SELECT ALL + CAST ( ( + 67 ) AS INTEGER ) * 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(DISTINCT CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2, + 24 AS col2 +---- +24 +NULL query I rowsort label-390 SELECT 55 / + - 89 + - 85 @@ -2272,8 +2293,11 @@ SELECT + 88 - + 92 / + 79 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 4 col2, COUNT ( * ) AS col2 +---- +-4 +1 query I rowsort SELECT - 46 * 73 @@ -2336,8 +2360,11 @@ SELECT + MAX ( 18 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2882 # Datafusion - Expected - -131271 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \* Int64\(\-61\) \+ \(\- \(\- nullif\(Int64\(\-76\), Int64\(37\) \* Int64\(\-76\)\)\)\) AS col0" at position 0 and "Int64\(57\) \* \(\- coalesce\(Int64\(\-49\), Int64\(\-78\)\)\) \* Int64\(\-47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 * - 61 + - - NULLIF ( + - 76, 37 * + - 76 ) AS col0, + 57 * - COALESCE ( - 49, + - 78 ) * - 47 AS col0 +---- +-131271 +-2882 query I rowsort label-439 SELECT ALL - 34 * - - COUNT ( * ) - COUNT ( * ) @@ -2433,8 +2460,11 @@ SELECT + 88 + 88 + 16 + - + 56 + - + 2 * - - 71 # 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\(59\) \+ CASE \(\- Int64\(95\)\) WHEN \(\- min\(DISTINCT Int64\(33\)\)\) \+ \(\- Int64\(84\)\) THEN Int64\(49\) END AS col2" at position 0 and "Int64\(99\) \+ Int64\(\-64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 59 + + CASE - + 95 WHEN - MIN ( DISTINCT + 33 ) + - + 84 THEN 49 END AS col2, + 99 + + - 64 AS col2 +---- +35 +NULL query I rowsort SELECT - 70 - + - 23 @@ -2789,8 +2819,11 @@ SELECT ALL + 1 * 76 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 3306 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(Int64\(87\) AS Int32\) \* \(\- Int64\(\-38\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, CAST ( 87 AS INTEGER ) * - - 38 AS col0 +---- +1 +3306 query II rowsort label-525 SELECT - 58 * + COUNT ( * ) col2, 46 @@ -2941,8 +2974,11 @@ SELECT ALL + 70 * - 87 # 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 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 II valuesort SELECT ALL ( 82 ) AS col0, 83 + - 72 AS col0 +---- +11 +82 query I rowsort label-553 SELECT - NULLIF ( COALESCE ( - 35, - + 26, + 83 * + - 74 + - MAX ( ALL + CAST ( NULL AS INTEGER ) ) ), 95 + - 95 ) * 50 AS col2 @@ -3625,8 +3661,11 @@ SELECT - 45 + - - 89 + + - NULLIF ( + - 6, 64 ) + ( - + SUM ( DISTINCT + + 33 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 143116 # Datafusion - Expected - 103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* Int64\(61\) \* \(\- Int64\(\-6\)\) \* Int64\(17\) \+ \(\- Int64\(\-10\)\) AS col2" at position 0 and "Int64\(45\) \+ Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 23 * + 61 * - - 6 * + 17 + - ( + - 10 ) AS col2, 45 + 58 AS col2 +---- +103 +143116 query I rowsort SELECT COALESCE ( - 61, - + 66 ) AS col1 @@ -3971,8 +4010,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - COUNT ( * ) AS col2, + 19 AS col2 +---- +1 +19 query I rowsort label-751 SELECT DISTINCT 60 * + 59 - + ( + CASE WHEN NOT + COUNT ( * ) IS NOT NULL THEN - 74 / - 16 END ) AS col2 @@ -4159,8 +4201,11 @@ SELECT + - 23 + - 96 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 103 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* \(\- nullif\(\(\- count\(coalesce\(Int64\(23\), Int64\(\-14\)\)\)\), Int64\(96\)\)\) \+ Int64\(87\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-76\) / Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 16 * - NULLIF ( - COUNT ( ALL + + COALESCE ( + 23, - 14 ) ), + 96 ) + + + 87 * COUNT ( * ) AS col1, - 76 / 48 col1 +---- +-1 +103 query I rowsort SELECT DISTINCT - COALESCE ( + - 11, 60, - 49 ) @@ -4389,8 +4434,11 @@ SELECT - 39 AS col0, - 53 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 99 -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\) \- Int64\(\-72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 41 AS col1, 27 - - 72 AS col1 +---- +41 +99 query I rowsort label-831 SELECT 3 * COUNT ( * ) AS col0 @@ -4400,8 +4448,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 49 AS col1, - COUNT ( * ) AS col1 +---- +-1 +49 query I rowsort SELECT 31 - + 43 AS col1 @@ -4512,8 +4563,11 @@ SELECT ALL - + 78 AS col2, 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(61\)\) AS col2" at position 0 and "Int64\(\-71\) \- \(\- Int64\(47\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 61 AS col2, - 71 - - + 47 AS col2 +---- +-24 +-61 query I rowsort SELECT + 40 * + 81 - - ( - 84 ) AS col2 @@ -4544,8 +4598,11 @@ SELECT + 48 * - - 69 + + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col2" at position 0 and "Int64\(77\) \+ \(\- Int64\(99\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 60 AS col2, + 77 + - + 99 AS col2 +---- +-22 +60 query I rowsort SELECT ALL + 34 * + 8 * - - NULLIF ( - 84, 74 + - 57 + 48 ) AS col1 @@ -4807,8 +4864,11 @@ SELECT - COALESCE ( + + ( - 17 ), 73, + - 1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) col0, - 80 AS col0 +---- +-80 +NULL query I rowsort SELECT ALL + 14 - 86 * 82 * + 50 @@ -4957,8 +5017,11 @@ SELECT 66 + 10 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 72 -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 "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 * 2 AS col1, 72 AS col1 +---- +72 +92 query I rowsort label-938 SELECT 82 * COUNT ( * ) * + 78 * - MIN ( ALL - 28 ) AS col0 @@ -5061,8 +5124,11 @@ SELECT - 75 / + - 84 + + - 90 + + 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 205 # Datafusion - Expected - -1472 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* sum\(Int64\(5\)\) AS col0" at position 0 and "Int64\(19\) \+ Int64\(\-21\) \* Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 * SUM ( 5 ) AS col0, 19 + + - 21 * + 71 AS col0 +---- +-1472 +205 query I rowsort label-958 SELECT 12 * - CASE 82 WHEN MAX ( ALL - 60 ) + + - COUNT ( * ) THEN - + 56 + - 30 END col1 @@ -5360,8 +5426,11 @@ SELECT MAX ( DISTINCT + 35 ) AS col1, 85 + + COUNT ( * ) * - 32 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(98\) / \(\- Int64\(64\)\) \- Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 98 / - + ( + 64 ) - + 31 AS col0 +---- +-32 +NULL query I rowsort label-1015 SELECT ALL MIN ( DISTINCT + 27 ) / COUNT ( * ) * CAST ( NULL AS INTEGER ) + + ( + + 68 ) @@ -5569,8 +5638,12 @@ SELECT ALL - 3 * + - 77 + - COUNT ( * ) * - + 70 AS col1 # Datafusion - Expected - -99 # Datafusion - Expected - 95 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 1 and "coalesce\(Int64\(39\), Int64\(20\), \(\- CAST\(Int64\(66\) AS Int32\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + 45 - 54, 95 AS col0, COALESCE ( 39, + 20, - CAST ( 66 AS INTEGER ) ) AS col0 +---- +-99 +39 +95 query I rowsort label-1055 SELECT - - 29 * + CAST ( NULL AS INTEGER ) AS col2 @@ -5610,8 +5683,11 @@ SELECT + 84 + + 7 * - 31 + 10 * 25 + - ( + 98 ) + + - 15 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 148 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) / \(\- \(\- CAST\(Int64\(78\) AS Int32\)\)\) \+ Int64\(87\) \+ max\(Int64\(6\)\) AS col1" at position 0 and "nullif\(Int64\(73\), Int64\(91\)\) \+ \(\- Int64\(\-75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( 6 ) / - - CAST ( + 78 AS INTEGER ) + + 87 + MAX ( + 6 ) AS col1, NULLIF ( + + 73, 91 ) + - - 75 col1 +---- +148 +93 query I rowsort SELECT - ( - ( + 20 ) ) AS col1 @@ -5717,8 +5793,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 39 col0, - COUNT ( * ) + + 64 AS col0 +---- +-39 +63 query I rowsort label-1083 SELECT DISTINCT - 86 + - + COUNT ( * ) col1 @@ -5781,8 +5860,11 @@ SELECT ALL 16 / - MAX ( ( 73 ) ) * - - 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2370 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-13\)\) \+ Int64\(75\) \* CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN Int64\(2\) \* \(\- \(\- CAST\(\(\- Int64\(\-39\)\) AS Float64\)\)\) \* Int64\(37\) THEN Int64\(23\) WHEN CAST\(NULL AS Int32\) \* Int64\(32\) \+ \(\- nullif\(Int64\(\-69\), Int64\(40\) / Int64\(\-78\) \* Int64\(8\) \* Int64\(17\)\)\) THEN NULL WHEN Int64\(81\) \* Int64\(\-46\) THEN Int64\(64\) \+ \(\- Int64\(\-1\)\) END \* Int64\(\-79\) \+ Int64\(1\) \- Int64\(0\) AS col0" at position 0 and "Int64\(81\) \+ Int64\(\-31\) \- \(\- \(\- Int64\(55\)\)\) \* Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-2370 +NULL query I rowsort label-1095 SELECT DISTINCT 34 * ( + 96 ) / + ( 48 ) + 87 AS col2 @@ -6239,8 +6321,11 @@ SELECT DISTINCT - COUNT ( * ) / + COUNT ( * ) - - 26 / - ( 83 ) + + 90 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 68 AS col2, 85 AS col2 +---- +-68 +85 query II rowsort SELECT - 32 AS col0, + 53 col2 @@ -6298,8 +6383,11 @@ SELECT + 1 * 55, 68 + CAST ( - 24 AS INTEGER ) * + 3 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(84\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 84 AS col1, COUNT ( * ) AS col1 +---- +-84 +1 query I rowsort label-1192 SELECT - NULLIF ( - - 54, + 28 ) - - + COUNT ( 94 ) AS col0 @@ -6401,8 +6489,11 @@ SELECT ALL + ( - 5 ) - - 69 - + 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 552 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \- \(\- Int64\(65\)\) \+ \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) \+ Int64\(76\) \+ Int64\(11\) \* Int64\(36\) AS col0" at position 0 and "Int64\(39\) \- Int64\(\-37\) \- CASE Int64\(13\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-2\) \* Int64\(2\) THEN Int64\(60\) \* \(\- CASE Int64\(\-47\) WHEN Int64\(57\) \+ \(\- Int64\(\-21\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-13\) ELSE Int64\(\-45\) END\) \- Int64\(41\) \* Int64\(39\) WHEN CAST\(NULL AS Int32\) THEN NULL ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +552 +NULL query I rowsort label-1212 SELECT 19 / - 47 * - 58 AS col0 @@ -6894,8 +6985,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -2640 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 0 and "Int64\(48\) \* Int64\(\-55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 26 AS col2, + 48 * - 55 AS col2 +---- +-2640 +26 query I rowsort label-1306 SELECT ALL - COUNT ( * ) * - 18 @@ -7974,8 +8068,11 @@ SELECT DISTINCT - 40 * + 64 * - 10 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\) \* \(\- count\(\(\- Int64\(\-67\)\)\)\) AS col0" at position 0 and "sum\(Int64\(24\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 17 * - COUNT ( ALL - ( + - 67 ) ) AS col0, SUM ( + ( 24 ) ) AS col0 +---- +17 +24 query I rowsort label-1516 SELECT ALL + + SUM ( ALL - ( + + 88 ) ) @@ -8108,8 +8205,11 @@ SELECT - 10 * - 91, - 27 - 5 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(98\)\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 98 ) AS col0, 4 AS col0 +---- +-98 +4 query I rowsort label-1541 SELECT - 27 + - MAX ( DISTINCT 34 ) * - 12 + ( - 49 ) AS col1 @@ -8808,8 +8908,12 @@ SELECT + 99 * - 81 + 98 + - ( - COALESCE ( 17, - CAST ( + 30 AS INTEGER ) * - 74 # Datafusion - Expected - 1 # Datafusion - Expected - 67 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + COUNT ( * ) AS col2, 67 AS col2, - 57 +---- +-57 +1 +67 query I rowsort label-1672 SELECT COALESCE ( + COUNT ( * ), 68 ) AS col1 @@ -9001,8 +9105,11 @@ SELECT DISTINCT - COUNT ( * ) * 33 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4896 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(68\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-56\) \* count\(DISTINCT Int64\(\-41\)\) \* Int64\(14\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 72 * + 68 AS col2, - CAST ( NULL AS INTEGER ) * - 56 * COUNT ( DISTINCT - 41 ) * + + 14 + - ( + - ( + COUNT ( * ) ) ) / + + 32 AS col2 +---- +4896 +NULL query I rowsort label-1708 SELECT 1 + - NULLIF ( + 28, - - COUNT ( * ) ) * COUNT ( * ) @@ -9032,8 +9139,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * - - ( - 57 ) * 26 - - 49 AS col1, + 32 AS col1 +---- +-1433 +32 query II rowsort SELECT 70 + 39 AS col0, 99 * + 30 * + 19 AS col1 @@ -9081,8 +9191,11 @@ SELECT ALL + + 12 / + CASE - 55 WHEN - + COUNT ( * ) * + - 52 * - 95 THEN NULL W # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - -1260 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(0\)\) \+ Int64\(\-8\) AS col1" at position 0 and "Int64\(63\) \* Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 0 + - 8 AS col1, 63 * - 20 AS col1 +---- +-1260 +-8 query I rowsort SELECT ALL + 2 * 28 + - + 47 + 5 AS col0 @@ -9404,8 +9517,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -280299 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(13\)\) \+ Int64\(89\) \- \(\- Int64\(98\)\) \* Int64\(\-53\) \* sum\(Int64\(54\)\) \+ Int64\(75\) AS col2" at position 0 and "Int64\(\-23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( DISTINCT 13 ) + + 89 - - + ( 98 ) * - 53 * SUM ( + 54 ) + 75 AS col2, - 23 AS col2 +---- +-23 +-280299 query I rowsort SELECT DISTINCT 87 + 6 AS col1 @@ -9629,8 +9745,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 45 AS col0, - COUNT ( * ) AS col0 +---- +-1 +45 query I rowsort label-1828 SELECT ALL 55 * NULLIF ( 43, + 90 - - - CAST ( 97 AS INTEGER ) * + - 55 + - - 42 ) AS col1 @@ -10161,8 +10280,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \+ Int64\(38\) AS col1" at position 0 and "Int64\(\-89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 + + + 38 col1, - 89 AS col1 +---- +-89 +89 query I rowsort label-1930 SELECT ALL MAX ( - 44 ) AS col0 @@ -10298,8 +10420,11 @@ SELECT - MIN ( DISTINCT 71 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 54 AS col1, 30 AS col1 +---- +30 +54 query I rowsort label-1956 SELECT ALL 31 / - COUNT ( DISTINCT + - 91 ) AS col1 @@ -11235,8 +11360,11 @@ SELECT ALL 86 * - 41 - - ( - + COUNT ( * ) ) - + + 54 - + CASE + 98 WHEN - 2 THE # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "Int64\(98\) \+ \(\- coalesce\(Int64\(47\), Int64\(\-98\) \+ \(\- Int64\(47\)\)\)\) \+ count\(Int64\(76\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 15 AS col2, 98 + - COALESCE ( 47, - 98 + - + 47 ) + + COUNT ( ALL + 76 ) col2 +---- +15 +52 query I rowsort label-2136 SELECT + COUNT ( * ) * - + 29 @@ -11419,8 +11547,11 @@ SELECT 92 - - 7, + 24 / - 77 - + + 36 col1 # 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 "\(\- Int64\(\-4\)\) AS col2" at position 0 and "Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 4 AS col2, 53 AS col2 +---- +4 +53 query I rowsort SELECT ALL - + ( + - 80 ) col2 @@ -11503,8 +11634,11 @@ SELECT ALL COUNT ( * ) / - 8 AS col2 # 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 "\(\- sum\(Int64\(83\)\)\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - SUM ( ALL 83 ) AS col0, + 7 AS col0 +---- +-83 +7 query I rowsort label-2186 SELECT 14 / 59 - + 89 @@ -11703,8 +11837,11 @@ SELECT COALESCE ( - + 99, 51 ) * 49 - 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(44\), Int64\(52\)\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( + 44, 52 ) AS col0, + 43 AS col0 +---- +43 +44 query I rowsort label-2223 SELECT - MAX ( ALL - 53 ) * - - 53 @@ -11740,8 +11877,12 @@ SELECT ALL + 8 * - 47 + + 38 AS col1 # Datafusion - Expected - 89 # Datafusion - Expected - 185 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(89\)\) AS col2" at position 0 and "\(\- Int64\(\-93\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT SUM ( + 89 ) AS col2, 96 - - MAX ( ALL - - 87 ) + 75 + - 73, + - ( - 93 ) AS col2 +---- +185 +89 +93 query I rowsort SELECT - 45 - + 0 + + 9 col2 @@ -12044,8 +12185,12 @@ SELECT 41 * + - 47 # Datafusion - Expected - 37 # Datafusion - Expected - 28 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 37 AS col1, 28 AS col1, SUM ( DISTINCT + 85 ) +---- +28 +37 +85 query I rowsort SELECT 54 * + + 52 @@ -12121,8 +12266,11 @@ SELECT - 65 * - 57 * - 53 - 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col1" at position 0 and "Int64\(10\) \+ Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 AS col1, 10 + + - 40 AS col1 +---- +-30 +67 query I rowsort label-2301 SELECT ALL COALESCE ( - + 12, - 64 + + + 58 ) + + - CAST ( NULL AS INTEGER ) @@ -12490,8 +12638,11 @@ 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\(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\. +query II valuesort 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 +---- +-14 +90 query I rowsort label-2370 SELECT - MAX ( + 55 ) AS col1 @@ -12895,8 +13046,11 @@ SELECT - 21 + 23, - 11 AS col0 # 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 "Int64\(16\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 col1, 73 AS col1 +---- +16 +73 query I rowsort label-2447 SELECT ALL MAX ( ALL - 56 ) @@ -12951,8 +13105,11 @@ SELECT ALL - NULLIF ( 3, - 42 ) * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 283234 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) / Int64\(63\) \+ Int64\(\-49\) \* \(\- Int64\(68\)\) \* Int64\(85\) \+ Int64\(14\) AS col1" at position 0 and "Int64\(0\) \- Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 43 / 63 + + - 49 * - + 68 * + + 85 + 14 AS col1, - 0 - + 72 AS col1 +---- +-72 +283234 query I rowsort label-2458 SELECT DISTINCT + MAX ( DISTINCT + - ( + 22 ) ) AS col0 @@ -13261,8 +13418,11 @@ NULL # 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 col2" at position 0 and "Int64\(4\) / Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 AS col2, + 4 / + 23 AS col2 +---- +0 +37 query II rowsort label-2517 SELECT - 41, - ( CAST ( NULL AS INTEGER ) ) AS col1 @@ -13906,8 +14066,12 @@ SELECT ALL - 87 col1, 56, - COUNT ( * ) AS col2 # Datafusion - Expected - 57 # Datafusion - Expected - 82 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col2" at position 0 and "Int64\(82\) / count\(DISTINCT \(\- Int64\(\-79\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 57 col2, 82 / COUNT ( DISTINCT - - 79 ) AS col2, ( + ( - + 37 ) ) col0 +---- +-37 +57 +82 query I rowsort SELECT - ( 45 ) + - 70 + 74 AS col1 @@ -14170,8 +14334,11 @@ SELECT ALL - COUNT ( ALL - - COALESCE ( - 22, - 51 * 20 + + + 6 * + + 71 + + 24, # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - -999 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col2" at position 0 and "Int64\(27\) \* Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 61 AS col2, + 27 * + ( + - 37 ) AS col2 +---- +-61 +-999 query I rowsort label-2688 SELECT ALL 76 + 11 + + 18 * - 33 - - 85 + - 36 + - CAST ( NULL AS INTEGER ) AS col0 @@ -14265,8 +14432,11 @@ SELECT - 50 * + 20 + 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-21\)\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - - 21 ) AS col1, + 96 AS col1 +---- +21 +96 query I rowsort label-2706 SELECT ALL + MIN ( DISTINCT 62 ) AS col0 @@ -15159,8 +15329,11 @@ SELECT ALL 84 + - - NULLIF ( + - 77, - 56 / - - 24 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3723 # Datafusion - Expected - -8008 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* Int64\(51\) AS col0" at position 0 and "Int64\(\-88\) \* Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 73 * + 51 AS col0, - 88 * + + 91 col0 +---- +-8008 +3723 query II rowsort SELECT ALL 55 + - + 60 AS col0, ( + - 8 ) @@ -15176,8 +15349,11 @@ SELECT ALL - 87 + + MIN ( + + 97 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 33102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ Int64\(\-79\) AS col1" at position 0 and "Int64\(\-81\) \* Int64\(6\) \* \(\- Int64\(68\)\) \- \(\- Int64\(4\)\) \- \(\- \(\- Int64\(\-50\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 + - 79 AS col1, - 81 * 6 * - + 68 - - + 4 - - + ( - - 50 ) AS col1 +---- +14 +33102 query I rowsort label-2879 SELECT ALL 48 / + 72 @@ -15389,8 +15565,11 @@ SELECT - ( 91 ) + 67 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col0" at position 0 and "Int64\(60\) \- Int64\(64\) \+ Int64\(\-70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 33 col0, 60 - + + 64 + - 70 AS col0 +---- +-74 +33 query I rowsort label-2920 SELECT + MIN ( + ( - 82 ) ) + 38 @@ -16481,8 +16660,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "Int64\(\-80\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 AS col1, - 80 - + + COUNT ( * ) AS col1 +---- +-81 +25 query I rowsort SELECT DISTINCT NULLIF ( 29, - 61 ) * + 10 * - 33 col1 @@ -16523,8 +16705,11 @@ SELECT 24 AS col1, COALESCE ( 56, + 44, - 83 + + + CAST ( NULL AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 AS col0, + 23 AS col0 +---- +23 +61 query I rowsort label-3141 SELECT + 58 - 57 + - COUNT ( * ) + + COUNT ( * ) / - + 97 * COUNT ( * ) * MIN ( ALL 53 ) AS col0 @@ -16906,8 +17091,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * - 80 - + 51 AS col1, 70 AS col1 +---- +29 +70 query II rowsort SELECT ALL - NULLIF ( + - 37, + 60 ), 89 col2 @@ -17034,8 +17222,11 @@ 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\(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\. +query II valuesort SELECT ALL - 22 / + 73 * - COUNT ( * ) - + 98 AS col1, 63 + 0 / - ( - + ( ( - 43 ) ) ) + 61 AS col1 +---- +-98 +124 query II rowsort label-3236 SELECT ALL + 61 / 66 + + 32 + - + MIN ( DISTINCT ( - 22 ) ) + + 30 AS col2, - 27 @@ -17288,8 +17479,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 AS col2, 23 col2 +---- +23 +61 query I rowsort label-3284 SELECT ALL - MIN ( DISTINCT + 86 ) AS col2 @@ -17361,8 +17555,11 @@ SELECT - COUNT ( * ) AS col2, - 95 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 AS col0, COUNT ( * ) AS col0 +---- +1 +42 query I rowsort SELECT 46 + 39 * 30 AS col2 @@ -17445,8 +17642,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(23\) \- Int64\(\-2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 64 AS col0, - 31 + - + COUNT ( * ) * 23 - - 2 AS col0 +---- +-52 +64 query I rowsort label-3314 SELECT DISTINCT 37 * + - CASE + CASE - 78 WHEN 57 / + - 47 + ( + 16 ) + 74 THEN + ( - COUNT ( * ) ) END WHEN COUNT ( * ) THEN - 3 * COUNT ( * ) + - ( - 34 ) * - 45 WHEN CAST ( NULL AS INTEGER ) - 64 THEN NULL END AS col0 @@ -17501,8 +17701,11 @@ SELECT DISTINCT + SUM ( DISTINCT + - 69 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2460 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(82\) AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 30 * + 82 col0, 33 AS col0 +---- +2460 +33 query II rowsort label-3325 SELECT - COUNT ( * ) * - - 12 AS col1, - CASE + + 75 WHEN + 83 * + 89 / - COUNT ( - ( 56 ) ) - - ( 19 ) + COALESCE ( - ( - 3 ), 30 + - 73, 30 + + 58 * AVG ( ALL ( + NULLIF ( + 46, 2 ) ) * 81 ) ) * 7 THEN NULL WHEN - 47 THEN NULL ELSE CAST ( + 87 AS INTEGER ) END @@ -17770,8 +17973,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col1" at position 0 and "Int64\(13\) \* \(\- Int64\(4\)\) \+ Int64\(\-38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 27 AS col1, + 13 * - + 4 + - 38 AS col1 +---- +-90 +27 query I rowsort SELECT + 45 + - 86 @@ -18069,8 +18275,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(sum\(Int64\(38\)\), Int64\(93\) \* \(\- Int64\(\-15\)\)\)\) AS col1" at position 0 and "sum\(\(\- \(\- Int64\(34\)\)\)\) / Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( + SUM ( 38 ), + + 93 * - - 15 ) AS col1, SUM ( ALL - - ( ( + 34 ) ) ) / + 1 AS col1 +---- +-38 +34 query I rowsort SELECT + 44 + + 72 @@ -18221,14 +18430,21 @@ SELECT - COUNT ( * ) * + 52 AS col2 # Datafusion - Expected - 35 # Datafusion - Expected - 81 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 35 AS col0, 81 AS col0, COUNT ( * ) + - - 86 AS col1 +---- +35 +81 +87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 56 ) AS col1, COUNT ( * ) AS col1 +---- +1 +56 query II rowsort label-3462 SELECT DISTINCT + 42 AS col1, - COUNT ( * ) + 71 @@ -18299,8 +18515,11 @@ SELECT + - CASE + 62 WHEN + 30 * - 37 THEN - 33 WHEN 47 THEN - 84 + - ( - 36 ) E # 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 "Int64\(\-96\) AS col2" at position 0 and "nullif\(sum\(Int64\(\-7\)\), Int64\(72\) \+ \(\- Int64\(\-96\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 96 col2, + NULLIF ( + SUM ( - 7 ), 72 + - - 96 ) AS col2 +---- +-7 +-96 query II rowsort label-3475 SELECT - + COUNT ( * ), 88 / - ( + COUNT ( * ) ) AS col1 @@ -18413,8 +18632,11 @@ SELECT DISTINCT 60 / - 58 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2945 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* \(\- Int64\(31\)\) AS col0" at position 0 and "Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 95 * - + 31 AS col0, - 38 AS col0 +---- +-2945 +-38 query I rowsort SELECT DISTINCT 30 * - 68 @@ -18507,8 +18729,11 @@ SELECT ALL 18 + 33 + + - 79 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 155 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ \(\- Int64\(\-67\)\) AS col0" at position 0 and "CAST\(Int64\(\-68\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 88 + - - 67 col0, CAST ( - 68 AS INTEGER ) AS col0 +---- +-68 +155 query I rowsort SELECT ALL - - 42 * - 15 col0 @@ -19152,8 +19377,11 @@ SELECT ALL + 83 * 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 2541 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "Int64\(\-33\) \* Int64\(\-77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 AS col1, - 33 * - 77 AS col1 +---- +2541 +99 query I rowsort SELECT DISTINCT 82 - + + 81 @@ -19168,8 +19396,11 @@ SELECT DISTINCT + 57 - + + 23 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-34\) \+ Int64\(15\) / Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col0, - 34 + + 15 / ( 76 ) AS col0 +---- +-34 +1 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -19233,8 +19464,11 @@ SELECT ALL - + 48 + - - 17 + 77 + 22 * 48 + COUNT ( * ) * + - 34 - + + 93 + - CO # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \+ \(\- Int64\(\-68\)\) AS col2" at position 0 and "\(\- max\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\)\) \+ Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 4 + - - 68 AS col2, - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + 94 col2 +---- +64 +NULL query I rowsort label-3650 SELECT DISTINCT 84 + + ( - CAST ( - + 36 AS INTEGER ) ) + - 60 @@ -19907,8 +20141,11 @@ SELECT COUNT ( - 4 ) * - + NULLIF ( - 57, + - 69 ) * - 46 - - 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - -183 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \+ Int64\(\-71\) \+ Int64\(\-32\) \+ Int64\(\-98\) AS col0" at position 0 and "Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 + + - 71 + - 32 + - 98 AS col0, 84 col0 +---- +-183 +84 query I rowsort label-3779 SELECT MIN ( ALL + - 10 ) - 90 - + NULLIF ( - 39, - 12 * SUM ( + 84 ) + + + 20 + 13 ) @@ -20094,8 +20331,11 @@ 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\(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\. +query II valuesort SELECT - 72 + 53 col1, COUNT ( * ) * 70 + + 26 / ( + 17 ) + 31 + - 76 AS col1 +---- +-19 +26 query I rowsort label-3812 SELECT ALL + SUM ( ALL 70 ) @@ -20283,8 +20523,11 @@ SELECT + 45 * + COUNT ( ALL 4 ) + + 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 3363 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col2" at position 0 and "Int64\(71\) \* Int64\(51\) \- Int64\(82\) \+ Int64\(2\) \+ Int64\(\-95\) \+ Int64\(\-83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 AS col2, 71 * 51 - 82 + + + 2 + - 95 + ( - 83 ) AS col2 +---- +3 +3363 query II rowsort SELECT + 77 AS col2, + 9 @@ -20793,8 +21036,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 14 / 76 * - 29 + + 81 * + COUNT ( * ) - + MIN ( ALL - 88 ) AS col1, 78 AS col1 +---- +169 +78 query II rowsort label-3946 SELECT ALL - - NULLIF ( - 13, - - NULLIF ( 1, CAST ( + 75 AS INTEGER ) ) ) / 2 + + + 47 + COUNT ( * ) / + 50 + - 29 * - + 95 + + 30 + + + 91 * - 98 + 51, + COUNT ( * ) AS col2 @@ -20965,8 +21211,11 @@ SELECT - 93 * ( + 60 ) + - CASE WHEN NULL NOT BETWEEN ( NULL ) AND ( - 71 ) THEN # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(99\) AS col0" at position 0 and "Int64\(87\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 99 col0, 87 + + CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 +---- +86 +NULL query I rowsort SELECT DISTINCT - ( + 32 ) AS col0 @@ -21055,8 +21304,11 @@ SELECT ALL 76 * ( - 36 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col2" at position 0 and "\(\- Int64\(12\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 69 AS col2, - ( + 12 ) AS col2 +---- +-12 +-69 query I rowsort SELECT ( + 47 ) + - 55 @@ -21081,8 +21333,11 @@ 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\(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\. +query II valuesort SELECT - 23 AS col0, COUNT ( * ) * + 30 * + 88 * 79 + + 63 AS col0 +---- +-23 +208623 query II rowsort SELECT + 40 AS col1, 92 * + - 81 * + 28 * 64 AS col2 @@ -21243,8 +21498,11 @@ SELECT ALL ( + ( 31 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \+ \(\- Int64\(30\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 82 + - + 30 AS col1, + CAST ( NULL AS INTEGER ) AS col1 +---- +52 +NULL query I rowsort label-4032 SELECT ALL + - 10 / + CASE + 0 WHEN + + 40 * ( - - COUNT ( * ) ) THEN NULL WHEN - NULLIF ( + NULLIF ( 89, - 53 ), 57 * ( + + 61 ) ) THEN - 56 - + 32 END + - 57 AS col0 @@ -21600,8 +21858,11 @@ SELECT DISTINCT COUNT ( * ) * + ( - - 21 ) # 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\(8\)\) / coalesce\(min\(DISTINCT Int64\(17\)\), Int64\(8\)\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + 8 ) / + COALESCE ( + MIN ( DISTINCT 17 ), + + 8 ) AS col1, 85 AS col1 +---- +0 +85 query I rowsort SELECT - 87 * - 36 AS col0 @@ -21623,8 +21884,11 @@ SELECT COUNT ( * ), + MIN ( DISTINCT - 30 ) - + 9 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-81\)\) AS col1" at position 0 and "\(\- sum\(Int64\(\-59\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 81 AS col1, - SUM ( - 59 ) AS col1 +---- +59 +81 query II rowsort SELECT 30, - NULLIF ( - + 95, - 41 ) * + 62 * 26 AS col2 @@ -21647,8 +21911,11 @@ SELECT ALL 87 AS col0, - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col1" at position 0 and "Int64\(\-81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 86 col1, - 81 AS col1 +---- +-81 +86 query I rowsort SELECT ALL - ( + - 13 ) col0 @@ -21706,8 +21973,11 @@ SELECT + 34 / - 32 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) AS col1" at position 0 and "Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 67 AS col1, - 43 AS col1 +---- +-43 +-67 query I rowsort SELECT ( + 47 ) * - + 13 AS col0 @@ -21732,8 +22002,11 @@ SELECT DISTINCT 47 * - - 82 + COUNT ( * ) + + + 46 - 2 * + 33 / + COALESCE ( - + # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(97\), Int64\(\-76\)\)\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COALESCE ( + 97, + - 76 ) AS col0, 96 AS col0 +---- +-97 +96 query I rowsort label-4124 SELECT ALL ( - CAST ( NULL AS INTEGER ) ) * - COUNT ( + - 53 ) + - + ( + + 52 ) + - COUNT ( * ) * - + 60 @@ -22417,8 +22690,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(42\) \* \(\- Int64\(\-8\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 34 AS col0, COUNT ( * ) + + 42 * - - 8 AS col0 +---- +337 +34 query II rowsort label-4253 SELECT ALL COUNT ( * ) AS col0, + 89 AS col1 @@ -22525,8 +22801,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - -455 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col2" at position 0 and "Int64\(\-65\) \* Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 52 AS col2, - 65 * 7 AS col2 +---- +-455 +52 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -22657,8 +22936,11 @@ SELECT - 41 + - 71 * + 49 * + 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) / Int64\(\-85\) AS col2" at position 0 and "CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 88 / - 85 AS col2, CAST ( - - COUNT ( * ) AS INTEGER ) AS col2 +---- +1 +1 query I rowsort label-4298 SELECT - 94 + + 91 + + MIN ( + - 14 ) @@ -22694,8 +22976,11 @@ NULL # 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\(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\. +query II valuesort 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 +---- +-11 +84 query I rowsort label-4305 SELECT ALL ( ( COUNT ( * ) ) ) AS col0 @@ -22896,14 +23181,20 @@ SELECT ALL - + 10 - + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 70 AS col1, 20 AS col1 +---- +20 +70 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 4060 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- \(\- Int64\(51\)\)\) \- Int64\(63\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-83\) \+ CAST\(Int64\(\-7\) AS Int32\) \* Int64\(\-99\) \* min\(Int64\(6\)\) \- Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, - ( - + 51 ) - 63 + + COUNT ( * ) + - 83 + + CAST ( + - 7 AS INTEGER ) * - 99 * + + MIN ( ALL 6 ) - 4 AS col1 +---- +-1 +4060 query I rowsort label-4345 SELECT DISTINCT - MIN ( - 40 ) @@ -22932,8 +23223,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 83 AS col0, 50 AS col0 +---- +50 +83 query I rowsort SELECT ALL + 45 * - 41 * - 64 * - 14 + + 17 @@ -23017,8 +23311,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1664 # Datafusion - Expected - -2070 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* Int64\(32\) AS col1" at position 0 and "Int64\(\-46\) \* Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 52 * + 32 AS col1, - 46 * + 45 col1 +---- +-2070 +1664 query II rowsort SELECT ALL 10 - + 98, - 58 AS col0 @@ -23514,8 +23811,12 @@ SELECT ALL ( 88 ) col1 # Datafusion - Expected - -1 # Datafusion - Expected - 0 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) / Int64\(42\) \* Int64\(\-74\) \* \(\- \(\- Int64\(88\)\)\) \* nullif\(Int64\(8\), \(\- coalesce\(Int64\(\-32\), Int64\(\-62\), \(\- CAST\(NULL AS Int32\)\), \(\- CAST\(NULL AS Int32\)\)\)\)\) AS col2" at position 1 and "Int64\(\-40\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - COUNT ( * ), - 6 / + 42 * - 74 * + - ( - ( + 88 ) ) * NULLIF ( 8, - COALESCE ( - 32, - 62, + - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) ) ) AS col2, - 40 AS col2 +---- +-1 +-40 +0 query I rowsort label-4461 SELECT ALL + MIN ( ALL 54 ) + - - 39 AS col1 @@ -23525,8 +23826,11 @@ SELECT ALL + MIN ( ALL 54 ) + - - 39 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col0" at position 0 and "Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 96 AS col0, - 92 AS col0 +---- +-92 +-96 query I rowsort SELECT + 18 + - 33 col0 @@ -23665,8 +23969,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 + - 40 AS col0, ( - COUNT ( * ) ) AS col0 +---- +-1 +5 query I rowsort label-4490 SELECT DISTINCT + COUNT ( * ) - + - SUM ( DISTINCT 0 ) * COUNT ( * ) @@ -23908,8 +24215,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -35904 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \* Int64\(68\) \* Int64\(\-24\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 22 * + 68 * + - 24 AS col1, + 49 AS col1 +---- +-35904 +49 query I rowsort label-4535 SELECT + 7 + CAST ( 36 AS INTEGER ) @@ -23952,8 +24262,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) / - + 85 AS col2, 60 AS col2 +---- +0 +60 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -24104,8 +24417,11 @@ SELECT ALL NULLIF ( - 85, - 6 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(59\), \(\- Int64\(\-80\)\) / Int64\(26\)\)\) WHEN Int64\(11\) \* Int64\(85\) THEN Int64\(46\) / Int64\(\-94\) \+ \(\- sum\(Int64\(15\)\)\) \+ Int64\(10\) ELSE \(\- Int64\(46\)\) \* Int64\(6\) \+ CAST\(NULL AS Int32\) \+ \(\- Int64\(\-41\)\) END AS col0" at position 0 and "\(\- CASE \(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- Int64\(60\)\) \+ Int64\(61\) \* \(\- \(\- count\(Int64\(\-66\)\)\)\) \* Int64\(54\) \* \(\- Int64\(\-71\)\) / Int64\(74\) THEN NULL WHEN \(\- sum\(DISTINCT Int64\(69\)\)\) \* Int64\(32\) THEN Int64\(38\) ELSE Int64\(19\) END\) WHEN Int64\(55\) \+ Int64\(98\) \+ Int64\(92\) \* \(\- Int64\(\-1\)\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\) \* min\(Int64\(\-14\)\) \* Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-182 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -24118,14 +24434,20 @@ 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\(94\) \+ Int64\(\-38\) \* \(\- CASE count\(Int64\(36\)\) WHEN Int64\(37\) \* Int64\(35\) THEN Int64\(23\) END\) AS col0" at position 0 and "Int64\(\-11\) / Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 94 + - 38 * + - CASE + COUNT ( ALL + 36 ) WHEN 37 * 35 THEN + + 23 END AS col0, - 11 / + 59 AS col0 +---- +0 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE coalesce\(Int64\(41\), \(\- Int64\(76\)\) \* Int64\(\-31\) \* Int64\(62\) \+ Int64\(\-83\) \+ Int64\(4\) \+ Int64\(84\) / count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(28\)\) \* Int64\(52\), Int64\(46\)\) WHEN min\(Int64\(86\)\) THEN \(\- Int64\(\-49\)\) \* Int64\(65\) \* Int64\(\-64\) \- \(\- Int64\(19\)\) \+ Int64\(97\) WHEN nullif\(Int64\(\-18\), Int64\(87\)\) \* max\(Int64\(68\)\) \- Int64\(\-49\) THEN CASE Int64\(\-93\) WHEN Int64\(22\) \- Int64\(\-53\) \+ \(\- Int64\(\-87\)\) THEN NULL ELSE Int64\(85\) END \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-62\) / Int64\(50\) \* Int64\(94\) WHEN Int64\(\-44\) \+ \(\- \(\- Int64\(\-24\)\)\) THEN Int64\(77\) ELSE NULL END\) \+ Int64\(44\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +74 +NULL query I rowsort SELECT DISTINCT 76 + 50 @@ -24728,8 +25050,11 @@ SELECT ALL + 35 / - 77 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "Int64\(60\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4 AS col2, + 60 + + COUNT ( * ) AS col2 +---- +4 +61 query II rowsort label-4693 SELECT - 30 AS col1, - MIN ( DISTINCT + 51 ) + - 63 @@ -25070,8 +25395,11 @@ SELECT DISTINCT - - ( 21 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -159 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \+ Int64\(\-99\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 60 + - 99 AS col0, + 79 AS col0 +---- +-159 +79 query I rowsort label-4758 SELECT DISTINCT + MIN ( DISTINCT - - 72 ) * 56 AS col1 @@ -25277,8 +25605,11 @@ SELECT ALL ( COUNT ( DISTINCT - ( - 90 ) ) ) * + 48 - - 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col1, COUNT ( * ) AS col1 +---- +1 +1 query I rowsort SELECT - 48 * - + 59 @@ -25482,8 +25813,11 @@ 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\(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\. +query II valuesort 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 +---- +-69 +35 query II rowsort SELECT + 88 * - 26 AS col1, - 97 AS col2 @@ -25679,8 +26013,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 65 AS col2, + 51 + + COUNT ( DISTINCT - 78 ) + COUNT ( * ) + - 70 AS col2 +---- +-17 +-65 query II rowsort label-4875 SELECT - 78 * 16 + - COUNT ( * ) col0, - 72 @@ -25691,8 +26028,11 @@ SELECT - 78 * 16 + - COUNT ( * ) col0, - 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -130 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \+ Int64\(\-47\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + - 83 ) + + - 47 col0, 72 AS col0 +---- +-130 +72 query I rowsort label-4877 SELECT ALL + 24 + - - CAST ( 89 AS INTEGER ) AS col0 @@ -25974,8 +26314,11 @@ SELECT ALL - NULLIF ( 17, + - 50 * + + 13 + + 74 + + 82 + 74 - + 59 / + 17 ) * + # Datafusion - Datafusion expected results: # Datafusion - Expected - 154 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-2\)\) / Int64\(78\) \+ Int64\(91\) \+ \(\- Int64\(\-63\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 2 / + 78 + 91 + - - 63 AS col0, + CAST ( NULL AS INTEGER ) AS col0 +---- +154 +NULL query II rowsort label-4931 SELECT + CAST ( + 28 AS INTEGER ) col0, ( - 54 ) AS col1 @@ -26439,8 +26782,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(63\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( 63 ) col1, COUNT ( * ) AS col1 +---- +-63 +1 query I rowsort SELECT DISTINCT - 33 + + 71 * + 9 @@ -26460,8 +26806,11 @@ SELECT 2 + - 11 + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-7\)\) \+ Int64\(68\) AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 7 + 68 AS col2, 77 AS col2 +---- +75 +77 query I rowsort label-5025 SELECT - COUNT ( + 15 ) col0 @@ -26755,8 +27104,11 @@ SELECT - 3 * + 5 + - + 22 + - + 97 * COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 324 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- CAST\(\(\- coalesce\(Int64\(\-4\), Int64\(\-32\) \* Int64\(53\)\)\) AS Int32\)\) \* \(\- Int64\(81\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + CAST ( NULL AS INTEGER ) ) AS col0, - CAST ( - COALESCE ( + - 4, - 32 * 53 ) AS INTEGER ) * - + ( 81 ) AS col0 +---- +324 +NULL query I rowsort label-5082 SELECT ALL + COUNT ( * ) + - 16 AS col2 @@ -26858,8 +27210,11 @@ SELECT + + 56 / + 50 - + - 54 + + + COUNT ( * ) + + 48 + 3 + + 18 + + 24 * + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -108 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) \+ Int64\(\-24\) \+ \(\- CAST\(Int64\(83\) AS Int32\)\) AS col2" at position 0 and "\(\- \(\- Int64\(\-78\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 1 + - 24 + - CAST ( + 83 AS INTEGER ) AS col2, - ( - ( - 78 ) ) AS col2 +---- +-108 +-78 query I rowsort label-5102 SELECT ALL + 17 * - CAST ( NULL AS INTEGER ) @@ -27241,8 +27596,11 @@ SELECT ALL - - 80 * - 58 * ( - 9 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "coalesce\(Int64\(61\), count\(Int64\(1\)\) AS count\(\*\), Int64\(1\) \* Int64\(\-58\) \+ \(\- Int64\(\-60\)\) / Int64\(84\) \- Int64\(32\)\) \* \(\- CAST\(\(\- \(\- CAST\(NULL AS Int32\)\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col1, + COALESCE ( + 61, + COUNT ( * ), 1 * + - 58 + - - 60 / 84 - 32 ) * - CAST ( ( - - CAST ( NULL AS INTEGER ) ) AS INTEGER ) col1 +---- +1 +NULL query I rowsort label-5175 SELECT ALL - 74 * + + 56 * COUNT ( * ) * - 49 @@ -27389,8 +27747,12 @@ SELECT ALL - ( - + 95 ) # Datafusion - Expected - 72 # Datafusion - Expected - 96 # Datafusion - Expected - -312 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \+ Int64\(22\) \+ Int64\(\-4\) AS col0" at position 0 and "Int64\(39\) \* Int64\(\-8\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 54 + + + 22 + - 4 AS col0, MAX ( DISTINCT + 96 ), + 39 * - 8 AS col0 +---- +-312 +72 +96 query I rowsort SELECT DISTINCT + NULLIF ( - 54, - 12 + - - 58 / 27 ) @@ -28393,8 +28755,11 @@ SELECT + 2 * 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 0 and "\(\- nullif\(\(\- Int64\(99\)\), Int64\(7\) \* Int64\(\-74\) \- \(\- Int64\(34\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 16 * CAST ( - COUNT ( * ) AS INTEGER ) AS col1, - NULLIF ( - + 99, + + 7 * - 74 - - + 34 ) AS col1 +---- +-16 +99 query I rowsort label-5393 SELECT ALL - + CASE 57 WHEN COUNT ( * ) THEN 0 / + + COUNT ( * ) ELSE - - 28 + - 53 END @@ -28720,8 +29085,11 @@ SELECT + 41 + + 50 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col1" at position 0 and "Int64\(24\) / Int64\(90\) / Int64\(65\) \* \(\- \(\- min\(DISTINCT Int64\(36\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 AS col1, 24 / + 90 / 65 * - - MIN ( DISTINCT + 36 ) AS col1 +---- +0 +85 query I rowsort label-5456 SELECT + - CAST ( - + 84 AS INTEGER ) * + + NULLIF ( - - 50, + 35 ) AS col0 @@ -28776,8 +29144,11 @@ SELECT MAX ( - 14 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-89\) \* CASE Int64\(\-86\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-29\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, - 89 * CASE - 86 WHEN COUNT ( * ) THEN - 29 ELSE NULL END AS col0 +---- +1 +NULL query I rowsort SELECT ALL 4 * 80 @@ -28949,14 +29320,20 @@ 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\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(48\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 + + 86 AS col0, + 83 + - ( - 71 ) - + 68 / - COUNT ( * ) + + ( - + 48 ) AS col0 +---- +109 +174 # 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 * 62 * 46 AS col1, 76 * - 79 + - COUNT ( * ) AS col1 +---- +-6005 +233864 query II rowsort SELECT 69 + 99 AS col2, - 28 * - + 34 @@ -29079,8 +29456,11 @@ SELECT + 92 * 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -897 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ nullif\(\(\- count\(Int64\(\-38\)\)\), \(\- \(\- Int64\(65\)\)\) \* Int64\(89\) \* Int64\(17\) \+ Int64\(\-90\)\) AS col0" at position 0 and "sum\(Int64\(\-13\)\) \* Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 4 + NULLIF ( - COUNT ( ALL - 38 ), - - ( + 65 ) * 89 * 17 + + - 90 ) AS col0, + SUM ( - 13 ) * + 69 AS col0 +---- +-897 +3 query I rowsort label-5524 SELECT + COUNT ( * ) + + - 3 AS col2 @@ -29111,8 +29491,11 @@ SELECT + 31 * + - 52 + - COALESCE ( + COUNT ( * ), - COUNT ( * ), + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col1" at position 0 and "Int64\(\-51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 AS col1, - 51 AS col1 +---- +-51 +46 query I rowsort SELECT ALL 44 + + 59 AS col1 @@ -29181,8 +29564,11 @@ SELECT + 80 * 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 81 AS col2, 61 col2 +---- +61 +81 query I rowsort SELECT + - 48 * + 25 @@ -29262,8 +29648,11 @@ SELECT ALL - 87 * 23 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4683 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* \(\- Int64\(95\)\) \+ Int64\(67\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 * - + 95 + 67 * + COUNT ( * ) col0, + 28 AS col0 +---- +-4683 +28 query I rowsort label-5557 SELECT ALL + CASE COUNT ( * ) WHEN COUNT ( * ) * + 35 + NULLIF ( - 2, COUNT ( * ) * - + 94 * 97 + CASE 63 WHEN + - 8 + - 73 * - 4 THEN 7 * - 26 + 11 ELSE NULL END ) THEN - 10 WHEN 19 THEN - 13 + - - 17 ELSE + 83 + - - 79 END @@ -29598,8 +29987,11 @@ SELECT 62, + 11 + - 99 + + + 48 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "Int64\(\-5\) \+ Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 8 AS col2, - 5 + 46 AS col2 +---- +41 +8 query II rowsort label-5620 SELECT COALESCE ( COALESCE ( + 58, + + 62 + + 81 - 89 - + 36 * - 41 / - - 19 + + 42, - 50 ), - 92 ) * - + 54 + + + 70 * 33 * - - 37, 8 col2 @@ -29802,8 +30194,11 @@ SELECT ALL - COALESCE ( SUM ( DISTINCT + CASE + 37 WHEN - + 98 / 87 THEN NULL WH # Datafusion - Datafusion expected results: # Datafusion - Expected - 3040 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \* Int64\(\-76\) AS col1" at position 0 and "Int64\(56\) \- Int64\(\-62\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 40 * - 76 AS col1, 56 - - 62 + - CAST ( NULL AS INTEGER ) AS col1 +---- +3040 +NULL query II rowsort label-5658 SELECT - COUNT ( * ) + + 15, 58 / + 53 AS col2 @@ -29909,8 +30304,11 @@ SELECT DISTINCT + 49 * 10 + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1771 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(23\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 * + 23 AS col1, 37 AS col1 +---- +1771 +37 query I rowsort label-5677 SELECT DISTINCT + 34 * 75 + CAST ( - 35 AS INTEGER ) * + ( - + COUNT ( * ) ) @@ -29943,8 +30341,11 @@ SELECT DISTINCT - 75 / + 38 * - COUNT ( * ) # 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\(\-35\)\) AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 64 / - - 35 AS col0, 6 AS col0 +---- +1 +6 query I rowsort label-5683 SELECT ALL + 58 + - 9 * - COUNT ( * ) @@ -30031,8 +30432,11 @@ SELECT - COUNT ( + + 67 ) * - NULLIF ( COUNT ( * ), 48 ) * - + 70 + - - 20 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - 135 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-43\) AS Int32\)\) \+ Int64\(92\) AS col0" at position 0 and "Int64\(93\) \+ Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( + - 43 AS INTEGER ) + + 92 col0, ( + 93 ) + - 42 AS col0 +---- +135 +51 query II rowsort SELECT + 37 AS col1, 48 AS col2 @@ -30043,8 +30447,11 @@ 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\(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\. +query II valuesort SELECT + COALESCE ( + 72, + - COUNT ( * ) ) col2, - 76 * SUM ( - 46 ) AS col2 +---- +3496 +72 query II rowsort label-5701 SELECT ALL + COUNT ( * ) AS col2, + 87 * 27 @@ -30539,8 +30946,11 @@ 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 "nullif\(count\(\(\- Int64\(\-12\)\)\), Int64\(44\) \* Int64\(81\) \+ \(\- Int64\(\-61\)\)\) AS col2" at position 0 and "Int64\(\-64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL NULLIF ( + COUNT ( ALL - - 12 ), 44 * 81 + - - 61 ) AS col2, - 64 AS col2 +---- +-64 +1 query I rowsort SELECT - 57 - - + 24 + + + 38 AS col0 @@ -31478,8 +31888,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col2" at position 0 and "Int64\(99\) \- Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 40 AS col2, 99 - + 5 AS col2 +---- +-40 +94 query II rowsort SELECT 77 AS col2, - 58 @@ -31582,8 +31995,11 @@ SELECT DISTINCT - COUNT ( * ) + + MAX ( + ( 63 ) ) * + 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - -295 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \+ \(\- coalesce\(Int64\(7\), coalesce\(Int64\(41\), Int64\(\-28\), Int64\(40\) \* Int64\(15\) \* Int64\(55\)\) \* Int64\(37\) \* Int64\(79\) / \(\- Int64\(26\)\)\)\) \* \(\- Int64\(\-51\)\) AS col2" at position 0 and "Int64\(\-65\) / Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 + - COALESCE ( 7, COALESCE ( 41, + - 28, 40 * + 15 * + 55 ) * 37 * 79 / + - ( + 26 ) ) * - - 51 AS col2, - 65 / 8 AS col2 +---- +-295 +-8 query I rowsort label-5991 SELECT - 42 * + CASE WHEN NOT ( + CASE COUNT ( * ) WHEN + 72 THEN - CAST ( 72 AS INTEGER ) WHEN 67 + 43 + 74 / 70 THEN NULL END ) < 15 THEN 77 * + 59 + + 37 END AS col0 @@ -31794,8 +32210,11 @@ SELECT DISTINCT - 0 * - + 86 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 5120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 0 and "Int64\(74\) \+ Int64\(87\) \* max\(Int64\(58\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 62 AS col1, 74 + + 87 * MAX ( 58 ) col1 +---- +5120 +62 query II rowsort label-6031 SELECT ALL 13 AS col0, 67 + - 7 + - - 16 / + + ( - ( - 85 ) ) + + 3 AS col1 @@ -32332,8 +32751,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col0, COUNT ( ALL + + 2 ) * - NULLIF ( - + 70, - ( + CASE - 11 WHEN - + 85 THEN 98 END ) ) AS col0 +---- +-1 +70 query I rowsort label-6130 SELECT CAST ( - - 54 AS INTEGER ) * - 83 AS col2 @@ -32383,8 +32805,11 @@ SELECT - 70 * ( - 42 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "\(\- Int64\(93\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 AS col1, - ( + 93 ) * + COUNT ( * ) AS col1 +---- +-93 +30 query I rowsort label-6140 SELECT 49 * MAX ( DISTINCT - + 59 ) + + - CAST ( NULL AS INTEGER ) + - NULLIF ( + + 77, + 12 ) + - + 99 * + 99 / + + 11 @@ -32426,8 +32851,11 @@ SELECT DISTINCT + COUNT ( * ) * 1 + + 5 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -498 # Datafusion - Expected - -441 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \* Int64\(21\) \+ coalesce\(Int64\(\-15\), Int64\(68\)\) AS col0" at position 0 and "Int64\(\-7\) \* Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 23 * + + 21 + + COALESCE ( - 15, + 68 ) AS col0, - 7 * + 63 col0 +---- +-441 +-498 query I rowsort label-6148 SELECT - COUNT ( * ) * + 91 AS col2 @@ -32608,8 +33036,11 @@ SELECT ALL + 36 * MIN ( + - ( + + 92 ) ) - 99 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \- Int64\(13\) \+ Int64\(6\) AS col1" at position 0 and "Int64\(13\) \+ \(\- \(\- count\(Int64\(84\)\)\)\) / Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 80 - 13 + 6 AS col1, 13 + - - COUNT ( 84 ) / + 7 col1 +---- +-87 +13 query I rowsort SELECT - 37 * - 20 - + + 46 @@ -33744,8 +34175,11 @@ SELECT + COUNT ( * ) / + 51 AS col1, - 43 * + ( - 71 ) + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ Int64\(83\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 16 + + 83 col1, + 12 AS col1 +---- +12 +99 query I rowsort SELECT ALL - 53 + 8 AS col2 @@ -33852,8 +34286,11 @@ SELECT - + ( + MIN ( - 14 ) ) * 52 + - 11 - SUM ( ALL - ( 8 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) / Int64\(\-87\) AS col1" at position 0 and "CASE Int64\(74\) WHEN Int64\(0\) THEN coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(22\), \(\- CAST\(Int64\(\-55\) AS Int32\)\)\) \+ Int64\(70\) END \* Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 62 / - 87 AS col1, CASE + 74 WHEN 0 THEN COALESCE ( COUNT ( * ), 22, - CAST ( - 55 AS INTEGER ) ) + + 70 END * 75 AS col1 +---- +0 +NULL query I rowsort label-6426 SELECT + 76 / + 72 - + 93 @@ -34171,8 +34608,11 @@ NULL # 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\(32\) AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 32 AS col0, 6 col0 +---- +32 +6 query I rowsort SELECT ALL + - 95 + + 81 @@ -34385,8 +34825,11 @@ SELECT 37 - 56 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) / \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 7 / - CAST ( NULL AS INTEGER ) AS col1, + CAST ( NULL AS INTEGER ) * + - 30 AS col1 +---- +NULL +NULL query I rowsort SELECT 65 + + 72 @@ -34854,8 +35297,11 @@ SELECT DISTINCT - COUNT ( + + 46 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / \(\- nullif\(Int64\(48\), Int64\(12\)\)\) AS col0" at position 0 and "Int64\(\-58\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) / + - NULLIF ( + 48, + 12 ) col0, - 58 * - COUNT ( * ) AS col0 +---- +58 +NULL query I rowsort SELECT + COALESCE ( + - 31, - 56 ) @@ -34990,8 +35436,11 @@ SELECT 0 * + 70 + 75 + - + COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) * + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 6132 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* nullif\(Int64\(84\), \(\- Int64\(\-59\)\) \+ Int64\(\-34\)\) AS col1" at position 0 and "Int64\(\-15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 73 * + NULLIF ( + 84, - - 59 + - 34 ) AS col1, - 15 AS col1 +---- +-15 +6132 query I rowsort SELECT 46 + - 8 + - 3 + - - 45 * + + 64 @@ -35082,8 +35531,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 AS col2, - 24 - + - ( COUNT ( * ) ) + + + 55 AS col2 +---- +32 +6 query I rowsort SELECT ALL + 67 * - COALESCE ( - + 92, + 2 ) * - 71 + - 99 @@ -35391,8 +35843,11 @@ SELECT ALL - ( NULLIF ( ( + 49 ), + 26 / COUNT ( * ) / + 57 + 71 ) ) / + - 85 # 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 col2" at position 0 and "Int64\(\-59\) / Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - + 93 ) AS col2, - 59 / + 65 AS col2 +---- +-93 +0 query I rowsort label-6716 SELECT DISTINCT - 66 / - CAST ( - 7 AS INTEGER ) AS col1 @@ -35571,8 +36026,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -1899 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "Int64\(\-58\) \* CAST\(Int64\(\-80\) AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(68\) \* \(\- CAST\(\(\- Int64\(\-76\)\) AS Int32\)\) \- Int64\(88\) \+ Int64\(77\) \+ Int64\(\-16\) \* Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 16 AS col1, - 58 * + CAST ( - 80 AS INTEGER ) * + COUNT ( * ) + 68 * - CAST ( - - 76 AS INTEGER ) - + 88 + 77 + + - 16 * + 85 AS col1 +---- +-1899 +16 query I rowsort label-6750 SELECT 9 * - - CASE 56 WHEN - - 40 THEN MIN ( 30 ) + + 28 ELSE NULL END + - COALESCE ( + - 50, + CAST ( NULL AS INTEGER ), - - 19 ) @@ -35730,8 +36188,11 @@ SELECT ALL COUNT ( * ) * 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 544 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(12\)\) \* \(\- Int64\(39\)\) \- Int64\(\-76\) AS col1" at position 0 and "Int64\(11\) / Int64\(91\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 12 ) * - + 39 - - 76 AS col1, + 11 / 91 * COUNT ( * ) AS col1 +---- +0 +544 query I rowsort SELECT 9 + 35 AS col1 @@ -35826,8 +36287,11 @@ SELECT ALL MIN ( - 23 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2112 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(24\) \* \(\- Int64\(88\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, + 24 * - + 88 col2 +---- +-2112 +1 query I rowsort label-6800 SELECT ( - 27 ) / 62 @@ -35903,8 +36367,11 @@ SELECT + 89 - CASE + CAST ( NULL AS INTEGER ) WHEN - 88 THEN - - CASE + 39 WHEN # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 AS col1, 96 AS col1 +---- +84 +96 query I rowsort label-6814 SELECT ALL 78 * - ( + 53 ) * - - SUM ( ALL 19 ) + - - ( - NULLIF ( + 6, - + CAST ( + - 5 AS INTEGER ) * - 26 / - MIN ( ALL 85 ) * - 43 + COUNT ( * ) * 67 ) ) + - 72 * - COUNT ( DISTINCT - ( 92 ) + 99 / - 97 ) col2 @@ -36225,8 +36692,11 @@ SELECT DISTINCT + 78 + + 62 + - 77 + - - 78 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6699 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \+ Int64\(\-89\) \* Int64\(75\) AS col1" at position 0 and "Int64\(16\) \- \(\- CAST\(Int64\(11\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 24 + - 89 * + 75 AS col1, + 16 - - CAST ( 11 AS INTEGER ) AS col1 +---- +-6699 +27 query I rowsort label-6875 SELECT DISTINCT - 6 + COUNT ( * ) col1 @@ -36494,8 +36964,11 @@ SELECT ALL - - MAX ( + 57 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -769 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-44\)\) AS col1" at position 0 and "sum\(DISTINCT Int64\(94\)\) \* Int64\(\-6\) \+ \(\- Int64\(5\)\) \* Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 44 AS col1, + SUM ( DISTINCT 94 ) * + ( - 6 ) + - + 5 * + 41 col1 +---- +-769 +44 query I rowsort label-6927 SELECT DISTINCT + 99 / - 97 + 52 @@ -36546,8 +37019,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1334 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(30\) WHEN Int64\(88\) \* Int64\(46\) THEN CAST\(NULL AS Int32\) \* \(\- Int64\(10\)\) ELSE NULL END\) \* avg\(Int64\(\-41\)\) \- Int64\(83\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(57\) \* Int64\(24\) \+ Int64\(\-34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort 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 +---- +1334 +NULL query I rowsort label-6937 SELECT DISTINCT 91 + - COUNT ( * ) + + - 82 @@ -36812,8 +37288,12 @@ NULL # Datafusion - Expected - 3192 # Datafusion - Expected - -2408 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \* \(\- Int64\(43\)\) AS col0" at position 1 and "Int64\(69\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 84 * 38 AS col2, 56 * - + 43 AS col0, 69 AS col0 +---- +-2408 +3192 +69 query II rowsort SELECT ALL - 54, - ( - 35 ) AS col0 @@ -36824,8 +37304,11 @@ SELECT ALL - 54, - ( - 35 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 col1, 72 AS col1 +---- +5 +72 query I rowsort label-6988 SELECT 73 / - - 55 col1 @@ -36880,8 +37363,11 @@ SELECT 56 - 40 + + + 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 502 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col0" at position 0 and "Int64\(6\) \- Int64\(31\) \* Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 6 AS col0, + 6 - + 31 * - 16 AS col0 +---- +502 +6 query I rowsort label-6999 SELECT - 80 * - CAST ( NULL AS INTEGER ) * + 19 col1 @@ -36901,8 +37387,11 @@ 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\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-80\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 29 AS col0, - 85 * - COUNT ( * ) * - + ( - 80 ) + + - COUNT ( * ) AS col0 +---- +29 +6799 query I rowsort label-7003 SELECT NULLIF ( 34, 75 ) * - + CAST ( + + 35 AS INTEGER ) AS col2 @@ -37008,8 +37497,11 @@ SELECT 19 * + + 29 * - + COUNT ( * ) # 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\(89\) \+ Int64\(\-30\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 + + - 30 AS col2, 20 AS col2 +---- +20 +59 query I rowsort SELECT 67 * + 49 - + + 77 @@ -37035,8 +37527,11 @@ SELECT 24 + MAX ( ALL + 54 ) + + 32 * + 95 AS col1, + COUNT ( * ) * + - 0 * - - # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-96\)\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( + - 96 ) col1, + 19 AS col1 +---- +-96 +19 query I rowsort SELECT + - 82 * + - 78 - - 38 * 36 + - 90 + + 26 @@ -37779,8 +38274,11 @@ SELECT 49 * + 72 + + - ( 81 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 5752 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "Int64\(56\) \+ Int64\(89\) \* min\(DISTINCT Int64\(64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 59 AS col0, + 56 + + 89 * + MIN ( DISTINCT 64 ) col0 +---- +5752 +59 query II rowsort SELECT ALL + - 20 AS col2, - 69 + 18 + + - 71 AS col1 @@ -37961,8 +38459,11 @@ SELECT DISTINCT - 65 * + + 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 "Int64\(8\) / \(\- Int64\(\-79\)\) \+ \(\- count\(DISTINCT Int64\(58\)\)\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 / + + ( - - 79 ) + - COUNT ( DISTINCT + 58 ) AS col1, + 64 AS col1 +---- +-1 +64 query I rowsort SELECT DISTINCT + 32 * 93 @@ -38085,8 +38586,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* count\(\(\- Int64\(42\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +21 +54 query I rowsort SELECT 34 * 14 @@ -38159,8 +38663,11 @@ SELECT DISTINCT - 20 + COALESCE ( ( + 48 ), - 49 * - 72 + + ( + - 93 ) ) - - 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- sum\(Int64\(13\)\)\)\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + ( - SUM ( + + 13 ) ) ) AS col0, 36 col0 +---- +13 +36 query II rowsort label-7243 SELECT ALL - - 93 + + CAST ( CASE - 12 WHEN - COUNT ( * ) - 5 THEN NULL WHEN 10 THEN NULL ELSE + 0 END AS INTEGER ), - 50 + - MIN ( ALL + 93 ) + - 21 - - COUNT ( - + ( - 60 ) ) + 34 / + 4 AS col1 @@ -38303,8 +38810,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) - ( - 88 ) - 51 * ( - NULLIF ( + - 61, + 46 * + + 17 * - 59 ) ) * + - 10 * 9 AS col2, + 54 AS col2 +---- +280077 +54 query I rowsort label-7270 SELECT ALL + + CASE 43 WHEN + CAST ( + 55 AS INTEGER ) THEN - CAST ( NULL AS INTEGER ) * - 12 * - COUNT ( * ) END * + - COUNT ( * ) AS col2 @@ -38361,8 +38871,11 @@ SELECT ( - COALESCE ( + ( - 46 ), - CAST ( NULL AS INTEGER ) * 50 / - - 2 + 59 + # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(DISTINCT Int64\(\-35\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, - COUNT ( DISTINCT - 35 ) AS col0 +---- +-1 +1 query I rowsort SELECT ALL - NULLIF ( + 7, - 93 * 34 ) @@ -38513,8 +39026,11 @@ SELECT ALL - 49 * + ( + 17 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 41 AS col1, 66 AS col1 +---- +41 +66 query I rowsort label-7311 SELECT ALL COUNT ( + 67 ) * + 17 - - 55 AS col2 @@ -38558,8 +39074,11 @@ SELECT - 61 + 58 + + 9 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(77\)\) AS col2" at position 0 and "Int64\(\-54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( DISTINCT 77 ) AS col2, - 54 AS col2 +---- +-54 +77 query I rowsort SELECT DISTINCT + ( - 80 ) AS col1 @@ -38993,8 +39512,11 @@ SELECT CAST ( - 48 AS INTEGER ) + + COUNT ( * ) - - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 88 AS col0, 24 AS col0 +---- +-88 +24 query II rowsort SELECT + 48, + 90 col0 @@ -39746,8 +40268,11 @@ SELECT 77 + + ( + - 30 ) - 84 + 12 + 49 col0 # 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\(DISTINCT Int64\(44\)\) AS col0" at position 0 and "sum\(Int64\(13\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( DISTINCT 44 ) AS col0, SUM ( ALL + 13 ) AS col0 +---- +1 +13 query I rowsort SELECT + 89 * - 49 - - - 41 + + 81 + + 53 - - 97 * 74 + - + 97 @@ -39777,8 +40302,11 @@ 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\(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\. +query II valuesort 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 +---- +64 +NULL query I rowsort SELECT DISTINCT - - 5 * + + 4 + 59 + 93 @@ -39813,8 +40341,11 @@ SELECT - + 66 * - 41 AS col1 # 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 "max\(Int64\(0\)\) AS col2" at position 0 and "Int64\(\-48\) \+ Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( ALL + 0 ) AS col2, - 48 + + 5 AS col2 +---- +-43 +0 query I rowsort SELECT + 56 * 38 * 47 AS col0 @@ -39891,8 +40422,11 @@ SELECT DISTINCT - 43 + ( 87 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- sum\(Int64\(\-97\)\)\), coalesce\(Int64\(45\), Int64\(\-27\)\)\)\) \* Int64\(37\) / CAST\(NULL AS Int32\) \+ Int64\(99\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( - SUM ( - 97 ), + ( ( + + COALESCE ( + 45, + - 27 ) ) ) ) * + 37 / + CAST ( NULL AS INTEGER ) + 99 / + ( + COUNT ( * ) ) AS col0, 15 AS col0 +---- +15 +NULL query I rowsort label-7571 SELECT - NULLIF ( + 98, + MAX ( - + ( - 86 ) ) + + COUNT ( * ) / CASE COUNT ( * ) WHEN - - COUNT ( * ) - + 79 THEN NULL WHEN 94 * 57 * + + 5 + 26 THEN + 58 ELSE - COUNT ( * ) END ) AS col0 @@ -40084,8 +40618,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5220 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(\-58\) AS col1" at position 0 and "Int64\(18\) \+ Int64\(\-57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 * - 58 AS col1, 18 + - 57 col1 +---- +-39 +-5220 query I rowsort SELECT ALL 77 * + 20 col0 @@ -40442,8 +40979,11 @@ SELECT - 56 + - 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1104 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \* Int64\(\-46\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 24 * - 46 AS col1, ( 21 ) AS col1 +---- +1104 +21 query II rowsort label-7675 SELECT + COUNT ( * ) / - 75 AS col0, - 97 * + 18 + - + 22 AS col2 @@ -40631,14 +41171,20 @@ 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\(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\. +query II valuesort SELECT DISTINCT - ( - CASE 68 WHEN - + 78 THEN + COUNT ( * ) WHEN 92 + + + ( - - 12 ) THEN NULL END ) AS col2, + 37 AS col2 +---- +37 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 42 AS col2, 67 AS col2 +---- +-42 +67 query I rowsort SELECT ALL - ( 0 ) AS col0 @@ -41165,8 +41711,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 12 AS col0, - COUNT ( * ) AS col0 +---- +-1 +12 query I rowsort label-7813 SELECT - 24 / 50 @@ -41192,8 +41741,11 @@ SELECT - 0 * - COUNT ( * ) col0, 7 - 91 * - 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) col2, 44 col2 +---- +1 +44 query I rowsort SELECT - NULLIF ( 24, + + COALESCE ( + 49, - - 94 ) ) * - 21 * ( - 24 ) AS col1 @@ -41231,8 +41783,11 @@ SELECT - 14 AS col1, + MIN ( DISTINCT ( + 83 ) ) * - COUNT ( DISTINCT + 49 ) * + # 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 col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 36 AS col0, ( + 93 ) col0 +---- +36 +93 query I rowsort SELECT 13 + 51 AS col2 @@ -41252,8 +41807,11 @@ SELECT + ( 31 ) + + COUNT ( * ) / - + ( - 99 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col1" at position 0 and "\(\- max\(DISTINCT Int64\(18\)\)\) \* Int64\(0\) \+ Int64\(41\) \+ Int64\(\-58\) / \(\- Int64\(\-66\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 AS col1, - MAX ( DISTINCT + 18 ) * + + 0 + + 41 + - 58 / - - 66 AS col1 +---- +37 +41 query I rowsort label-7829 SELECT + COUNT ( ALL + + 28 ) @@ -41274,8 +41832,11 @@ SELECT ALL - ( - + 59 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, - 8 AS col2 +---- +-8 +1 query II rowsort label-7833 SELECT ALL MIN ( 54 ) AS col1, - 74 @@ -41398,8 +41959,11 @@ SELECT DISTINCT - 75 - + 4 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2852 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* Int64\(31\) AS col1" at position 0 and "Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 * 31 AS col1, - 62 AS col1 +---- +-62 +2852 query I rowsort SELECT - 17 + - - 31 AS col2 @@ -41486,8 +42050,11 @@ SELECT 6 + - 51 # 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\)" at position 0 and "Int64\(\-72\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 72, - 72 +---- +-72 +-72 query I rowsort label-7874 SELECT ALL MIN ( ALL + 33 ) col1 @@ -42453,8 +43020,11 @@ SELECT ALL 20 * + 18 + - NULLIF ( 63, + 80 * 53 ) AS col2 # 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\(48\) AS col0" at position 0 and "Int64\(13\) \+ Int64\(\-93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 AS col0, + 13 + + - 93 AS col0 +---- +-80 +48 query I rowsort SELECT - NULLIF ( + 76, 10 ) col0 @@ -42738,8 +43308,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - 94 ) AS col1, + 84 * COUNT ( * ) + + 98 AS col1 +---- +-94 +182 query I rowsort label-8118 SELECT - CASE - 9 WHEN - COALESCE ( 32, COUNT ( * ) / 96, COUNT ( * ) * - COUNT ( ALL 36 ) ) THEN + 2 + + 54 END @@ -42779,8 +43352,11 @@ SELECT ALL ( + + 18 ) + + 53 + CASE + COUNT ( * ) WHEN 56 + - COUNT ( * ) THEN 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "Int64\(10\) \+ Int64\(37\) \+ \(\- sum\(\(\- Int64\(\-92\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 67 AS col0, + 10 + + + 37 + - SUM ( - - 92 ) * COUNT ( * ) AS col0 +---- +-45 +67 query I rowsort SELECT 63 * 40 AS col0 @@ -43767,8 +44343,12 @@ 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\(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\. +query III valuesort SELECT DISTINCT 99 col2, - NULLIF ( 63, + - COUNT ( * ) ) * 96 * + 44 + + + 42 * - + COUNT ( * ) AS col2, + 43 +---- +-266154 +43 +99 query I rowsort SELECT ALL 87 + 36 + - - 21 + - + 29 * - - 78 * - 43 + - - 87 @@ -44025,8 +44605,11 @@ SELECT + 33 / ( + ( - - 92 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 72 * + CAST ( NULL AS INTEGER ) AS col2, + 16 AS col2 +---- +16 +NULL query I rowsort SELECT 50 + 21 - - 2 col1 @@ -44372,8 +44955,11 @@ SELECT - 28 + + 2 # 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\(65\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 65 AS col2, 81 AS col2 +---- +65 +81 query I rowsort SELECT + ( - 72 ) col2 @@ -44399,8 +44985,11 @@ SELECT - CASE 63 WHEN + COUNT ( * ) + - CAST ( - NULLIF ( + COALESCE ( + 34, - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 87 AS col0, + 23 AS col0 +---- +23 +87 query I rowsort SELECT DISTINCT + 31 * + 39 + 46 AS col0 @@ -44628,8 +45217,12 @@ SELECT 63 * + COALESCE ( + 44, 44 ) * + - 43 * + 30 col0, + 43 # Datafusion - Expected - NULL # Datafusion - Expected - 59 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col2" at position 1 and "\(\- Int64\(18\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT CASE - + 80 WHEN + 7 * SUM ( - 25 ) THEN + ( - - 19 ) + 39 END + - - ( - 80 ) col0, 59 AS col2, - + 18 AS col2 +---- +-18 +59 +NULL query I rowsort SELECT DISTINCT + ( 9 ) * - - 77 * + 46 * 72 + - 49 @@ -44981,8 +45574,11 @@ SELECT + 98 * 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "sum\(DISTINCT Int64\(\-21\)\) / \(\- Int64\(\-52\)\) \* \(\- \(\- Int64\(\-68\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 68 + COUNT ( * ) col1, SUM ( DISTINCT - 21 ) / - - 52 * + - ( - - 68 ) AS col1 +---- +-67 +0 query I rowsort SELECT DISTINCT + 94 * - 19 + - 81 + + 29 AS col2 @@ -45537,8 +46133,11 @@ SELECT + 24 - + 53 - 58 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col1" at position 0 and "\(\- sum\(DISTINCT Int64\(\-96\)\)\) \+ Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 22 AS col1, - SUM ( DISTINCT + - 96 ) + + 54 AS col1 +---- +-22 +150 query I rowsort label-8653 SELECT DISTINCT - ( - NULLIF ( + 50, + + CAST ( NULL AS INTEGER ) ) ) - - COUNT ( * ) - + + COUNT ( * ) AS col1 @@ -45594,8 +46193,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col0, ( 88 ) AS col0 +---- +-1 +88 query II rowsort label-8664 SELECT - - 46, NULLIF ( CAST ( NULL AS INTEGER ), - + 65 + ( - + SUM ( DISTINCT + - 64 ) ) * + 95 ) AS col2 @@ -45919,8 +46521,11 @@ SELECT DISTINCT 12 / + 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "Int64\(\-8\) \* Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 col2, - 8 * - 25 AS col2 +---- +200 +9 query I rowsort label-8726 SELECT 66 + - 47 + + + CASE - 31 WHEN 5 THEN NULL WHEN 68 THEN + 36 END + - ( - CAST ( NULL AS INTEGER ) ) + + 60 * COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1 @@ -46635,8 +47240,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + + 68 ) * - 40 * + 10 + + + 11 AS col2, - COUNT ( * ) AS col2 +---- +-1 +-27189 query I rowsort label-8862 SELECT DISTINCT COALESCE ( - - 45, COUNT ( - 30 ) + 49 ) * - + 2 * + 99 AS col1 @@ -46839,8 +47447,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) + - 63 - + 56 AS col2, ( - - NULLIF ( - - 31, + 37 * - + 86 ) ) * 88 AS col2 +---- +-118 +2728 query I rowsort label-8901 SELECT MAX ( ALL + 65 ) + - - 77 AS col1 @@ -46893,8 +47504,12 @@ SELECT 35 / - 85 + - - 72, - 85 + 60 AS col0 # Datafusion - Expected - 34 # Datafusion - Expected - 65 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ Int64\(\-74\) \+ Int64\(41\) AS col1" at position 1 and "Int64\(\-4\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 34 * - COUNT ( * ) * - COUNT ( * ), 98 + - 74 + + 41 AS col1, - 4 AS col1 +---- +-4 +34 +65 query II rowsort label-8911 SELECT ALL + - 25, - CAST ( - 47 AS INTEGER ) AS col1 @@ -47450,8 +48065,11 @@ SELECT ALL + 76 * - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 0 and "Int64\(42\) \+ Int64\(\-77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 32 AS col1, + 42 + + ( - 77 ) AS col1 +---- +-35 +32 query I rowsort label-9018 SELECT 16 - + COUNT ( * ) AS col0 @@ -47990,8 +48608,11 @@ SELECT 38 * - 77, + 94 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1566 # Datafusion - Expected - -8366 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) \* Int64\(29\) AS col1" at position 0 and "Int64\(89\) \* Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 54 * + 29 AS col1, + 89 * - 94 AS col1 +---- +-1566 +-8366 query I rowsort SELECT ALL ( - - ( + 33 ) ) + + 93 * - + 37 AS col0 @@ -48403,8 +49024,11 @@ SELECT ALL + + 48 + + COUNT ( * ) - + 71 * 52 * - 38 * 49, + 81 + - 29 / - - COU # Datafusion - Datafusion expected results: # Datafusion - Expected - 282100 # Datafusion - Expected - 950 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-20\)\) \+ Int64\(86\) \* Int64\(80\) \* Int64\(41\) AS col2" at position 0 and "Int64\(38\) \* Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 20 + 86 * 80 * + + 41 AS col2, 38 * 25 AS col2 +---- +282100 +950 query I rowsort label-9200 SELECT - COUNT ( * ) + - - 13 + + - 48 / + + 64 * - 43 * 29 col0 @@ -48456,8 +49080,11 @@ SELECT - 82 * - + 15, - 23 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / Int64\(20\) AS col2" at position 0 and "CASE Int64\(30\) WHEN Int64\(\-76\) THEN Int64\(\-25\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) / 20 AS col2, CASE 30 WHEN + - 76 THEN - 25 END AS col2 +---- +NULL +NULL query I rowsort label-9210 SELECT ALL + MIN ( ALL - ( 65 ) ) @@ -48513,8 +49140,11 @@ SELECT - 63 * + + 19 + - ( 63 ) + + 46 + + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \* Int64\(25\) / Int64\(81\) \+ Int64\(72\) AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 77 * 25 / 81 + ( 72 ) AS col1, + 33 AS col1 +---- +33 +49 query I rowsort SELECT 45 - - 64 AS col0 @@ -48745,8 +49375,11 @@ SELECT 55 + + 19 / 1 + + 27 * 35 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 74 + COUNT ( * ) AS col0, + 7 AS col0 +---- +7 +75 query I rowsort label-9265 SELECT DISTINCT 52 * - - CAST ( + - 25 AS INTEGER ) AS col2 @@ -48801,8 +49434,11 @@ SELECT DISTINCT + 46 * - + COUNT ( * ) * + + 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - -109463 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \* Int64\(73\) \+ Int64\(\-14\) \+ Int64\(27\) \* nullif\(Int64\(45\), Int64\(\-63\) \* nullif\(Int64\(55\), \(\- \(\- max\(DISTINCT Int64\(\-34\)\)\)\)\)\) \* Int64\(\-89\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 18 * + 73 + - 14 + 27 * NULLIF ( + 45, + - 63 * + NULLIF ( + 55, - - MAX ( DISTINCT - 34 ) ) ) * - 89 AS col2, 73 AS col2 +---- +-109463 +73 query I rowsort SELECT ALL + - 41 * - + 41 + - - 40 AS col0 @@ -49059,8 +49695,11 @@ SELECT DISTINCT - 50 * - 23 * 95 * + 24 * - - 13 * 43 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 5 col2, 67 AS col2 +---- +-5 +67 query I rowsort SELECT + 99 * 78 * 85 AS col0 @@ -49103,8 +49742,12 @@ SELECT 96 AS col1, + 18 col2 # Datafusion - Expected - 42 # Datafusion - Expected - 22 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 42 AS col2, 22 col2, + - 82 + 67 +---- +-15 +22 +42 query I rowsort label-9333 SELECT CAST ( + 8 AS INTEGER ) * 62 col1 @@ -49140,8 +49783,11 @@ SELECT - 43 * + 47 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - -85536 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "Int64\(11\) \* nullif\(Int64\(\-96\), Int64\(\-72\) \+ \(\- Int64\(26\)\) \+ Int64\(22\) \* \(\- Int64\(67\)\)\) \* Int64\(81\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 49 AS col2, + 11 * NULLIF ( - 96, - 72 + - + 26 + 22 * - + ( + 67 ) ) * 81 * COUNT ( * ) AS col2 +---- +-85536 +49 query I rowsort label-9340 SELECT + 10 * + - 13 + + - 57 / 10 AS col0 @@ -49368,8 +50014,11 @@ SELECT DISTINCT - 32 / + - MIN ( + - 12 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 28 AS col2, 67 col2 +---- +28 +67 query I rowsort label-9384 SELECT - ( + - COUNT ( DISTINCT + 34 ) ) + - 25 + - 9 AS col1 @@ -49439,8 +50088,11 @@ SELECT - NULLIF ( - + 35, COUNT ( * ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 144072 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "Int64\(54\) \* Int64\(58\) \* Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 AS col0, 54 * + 58 * + 46 AS col0 +---- +144072 +67 query I rowsort SELECT ALL + - 67 AS col2 @@ -49463,8 +50115,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 40 AS col0, - COUNT ( * ) col0 +---- +-1 +-40 query I rowsort label-9402 SELECT ALL + COALESCE ( + 20, + + CAST ( 45 AS INTEGER ) - + COUNT ( * ), - 94 * - + 30 ) AS col0 @@ -49871,8 +50526,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL CAST ( NULL AS FLOAT8 ) AS col0, + 71 + - COUNT ( * ) col0 +---- +70 +NULL query I rowsort label-9482 SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 43 @@ -49897,8 +50555,11 @@ 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\(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\. +query II valuesort SELECT 95 + COUNT ( * ) * + + 25 + - 52 AS col1, ( + - 57 ) AS col1 +---- +-57 +68 query I rowsort label-9487 SELECT 2 / + 74 @@ -52418,8 +53079,11 @@ SELECT - COUNT ( * ) + - + 55 # 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 "Int64\(\-3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 AS col2, - 3 AS col2 +---- +-3 +70 query I rowsort label-9970 SELECT CAST ( - + 9 AS INTEGER ) AS col2 diff --git a/data/sqlite/random/expr/slt_good_65.slt b/data/sqlite/random/expr/slt_good_65.slt index 5917260..906ff19 100644 --- a/data/sqlite/random/expr/slt_good_65.slt +++ b/data/sqlite/random/expr/slt_good_65.slt @@ -1158,8 +1158,11 @@ SELECT - ( + 77 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(77\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 77 AS col1, COUNT ( * ) AS col1 +---- +-77 +1 query I rowsort label-218 SELECT DISTINCT + - COUNT ( * ) + + 36 + + ( + - COUNT ( * ) ) col0 @@ -1215,8 +1218,11 @@ SELECT ALL - ( - 35 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- CAST\(Int64\(\-35\) AS Int32\)\)\) AS col0" at position 0 and "Int64\(\-5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( + - CAST ( - 35 AS INTEGER ) ) col0, - 5 AS col0 +---- +-5 +1 query I rowsort label-229 SELECT + 35 / - 67 @@ -1256,8 +1262,11 @@ SELECT ALL 75 / - 91 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "count\(CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - COUNT ( * ) AS col2, COUNT ( CAST ( NULL AS INTEGER ) ) AS col2 +---- +0 +1 query I rowsort SELECT DISTINCT + 60 * + + 64 AS col0 @@ -1933,8 +1942,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 AS col2, COUNT ( * ) + 93 col2 +---- +55 +94 query I rowsort label-368 SELECT + SUM ( ALL 33 ) @@ -1954,8 +1966,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) / + 93 AS col1, - COUNT ( * ) col1 +---- +-1 +0 query I rowsort SELECT ( 43 ) AS col0 @@ -2671,8 +2686,11 @@ SELECT ALL COUNT ( * ) * - - 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 77 col0, 25 AS col0 +---- +25 +77 query I rowsort SELECT - 20 * + 22 @@ -2811,8 +2829,11 @@ SELECT + + 2 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) AS col0, 57 AS col0 +---- +-1 +57 query I rowsort label-538 SELECT - SUM ( 0 ) @@ -3336,8 +3357,11 @@ SELECT ALL 85 + + - 71 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col1" at position 0 and "Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 13 AS col1, 68 col1 +---- +13 +68 query I rowsort SELECT DISTINCT NULLIF ( - ( 78 ), - - 24 ) @@ -5319,8 +5343,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 39 AS col1, 16 AS col1 +---- +-39 +16 query I rowsort label-1024 SELECT 35 + - COUNT ( * ) @@ -6059,8 +6086,11 @@ SELECT 65 * COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 75 AS col0, COUNT ( * ) col0 +---- +-75 +1 query I rowsort SELECT + 44 - 69 AS col1 @@ -6533,8 +6563,11 @@ SELECT + + 87 col0 # 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\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - + 8 ) AS col0, 72 AS col0 +---- +-8 +72 query I rowsort label-1259 SELECT DISTINCT - 37 / CAST ( NULL AS INTEGER ) @@ -6579,8 +6612,11 @@ SELECT + 53 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 AS col1, COUNT ( * ) AS col1 +---- +1 +78 query I rowsort label-1268 SELECT 39 * + COUNT ( * ) * - - 74 @@ -6801,8 +6837,11 @@ SELECT + COUNT ( * ) * + + CAST ( 53 AS INTEGER ) AS col0 # 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 col2" at position 0 and "Int64\(\-90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 19 AS col2, - 90 col2 +---- +-19 +-90 query I rowsort SELECT + 73 * 63 - - 49 AS col2 @@ -7042,8 +7081,11 @@ SELECT - 37 - - - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ), COUNT ( * ) +---- +1 +1 query I rowsort label-1359 SELECT CAST ( - 57 AS INTEGER ) @@ -7572,8 +7614,11 @@ SELECT - + 32 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 462 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(\-66\)\) \* Int64\(\-7\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MAX ( DISTINCT + - 66 ) * - 7 AS col2, 26 AS col2 +---- +26 +462 query I rowsort SELECT ALL 37 * 10 AS col0 @@ -7853,8 +7898,11 @@ SELECT + 49 + CASE - 0 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE 15 END AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(7\) \+ Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, 7 + + 31 AS col0 +---- +1 +38 query I rowsort SELECT ALL + ( + + 3 ) AS col0 @@ -7885,8 +7933,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col0, 65 AS col0 +---- +65 +NULL query I rowsort label-1523 SELECT DISTINCT + NULLIF ( + COUNT ( * ), 84 + COUNT ( * ) ) @@ -8276,8 +8327,11 @@ SELECT + - MAX ( - 38 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 26 AS col0, COUNT ( * ) AS col0 +---- +1 +26 query I rowsort label-1599 SELECT DISTINCT + - 8 * - CAST ( NULL AS INTEGER ) AS col2 @@ -8558,8 +8612,11 @@ SELECT DISTINCT - 3 + - + 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 47 AS col1, 57 AS col1 +---- +-47 +57 query I rowsort label-1654 SELECT - MAX ( + + 95 ) AS col2 @@ -8767,8 +8824,11 @@ 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\(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\. +query II valuesort SELECT ALL + 92 * COUNT ( * ) * + - 39 AS col1, + 5 AS col1 +---- +-3588 +5 query I rowsort SELECT ALL - + 5 AS col1 @@ -8799,8 +8859,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 13 AS col0, - COUNT ( * ) AS col0 +---- +-1 +13 query I rowsort label-1699 SELECT + NULLIF ( - 49, + - MAX ( - ( + 76 ) ) ) @@ -9122,8 +9185,11 @@ SELECT - COUNT ( * ) col0, - 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 359660 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(90\) \* Int64\(74\) \* Int64\(54\) \+ \(\- Int64\(\-20\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + COUNT ( * ) * + 90 * 74 * + + 54 + - - 20 col2 +---- +1 +359660 query I rowsort label-1763 SELECT - 39 * + CAST ( NULL AS INTEGER ) @@ -9670,8 +9736,11 @@ SELECT 57 * COUNT ( DISTINCT 57 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 0 * + COUNT ( * ) AS col1, 65 col1 +---- +0 +65 query I rowsort label-1868 SELECT - 88 + + - COUNT ( * ) + + 98 / - 4 @@ -9827,8 +9896,11 @@ SELECT DISTINCT + + ( + 75 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col1 +---- +-1 +NULL query I rowsort label-1899 SELECT DISTINCT - MIN ( 42 ) @@ -9863,8 +9935,11 @@ SELECT 50 - 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 31 AS col1, 73 AS col1 +---- +31 +73 query I rowsort SELECT ALL 77 - 77 AS col2 @@ -10088,8 +10163,11 @@ SELECT DISTINCT + + CAST ( + 74 AS INTEGER ) 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 "Int64\(43\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 43 AS col2, + 35 AS col2 +---- +35 +43 query I rowsort SELECT - 1 + 13 AS col0 @@ -10619,8 +10697,11 @@ SELECT DISTINCT - 48 * + COUNT ( * ) 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 col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 AS col0, + 34 AS col0 +---- +34 +34 query I rowsort SELECT 7 * - 55 AS col2 @@ -11494,8 +11575,11 @@ SELECT 58 + - - 44 / + 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 60 AS col1, + 20 AS col1 +---- +-60 +20 query I rowsort SELECT 0 * + - 15 AS col2 @@ -11749,8 +11833,11 @@ SELECT - ( + 53 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \+ \(\- Int64\(\-5\)\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 33 + - - 5 AS col1, 21 AS col1 +---- +-28 +21 query II rowsort SELECT ALL + 33 AS col0, 66 AS col2 @@ -11836,8 +11923,11 @@ SELECT + 73 + + + 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 AS col0, 80 AS col0 +---- +-82 +80 query II rowsort SELECT + 23 AS col0, - 55 @@ -12671,8 +12761,11 @@ SELECT + + 49 * 68 - + - 38 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 47 AS col2, COUNT ( * ) col2 +---- +-47 +1 query I rowsort label-2451 SELECT MIN ( 57 ) @@ -12824,8 +12917,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 col0, - ( + - COUNT ( * ) ) AS col0 +---- +1 +75 query I rowsort SELECT DISTINCT - - 95 AS col1 @@ -13032,8 +13128,11 @@ SELECT ALL - 3 + - - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 AS col2, 90 AS col2 +---- +2 +90 query I rowsort label-2520 SELECT + + CAST ( 46 AS INTEGER ) col0 @@ -13672,8 +13771,11 @@ NULL # 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\(\-20\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 AS col1, 67 AS col1 +---- +-20 +67 query I rowsort label-2643 SELECT DISTINCT - COUNT ( * ) * + + 92 @@ -14388,8 +14490,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, + 49 AS col2 +---- +1 +49 query I rowsort label-2780 SELECT CAST ( NULL AS INTEGER ) * ( + CAST ( NULL AS INTEGER ) ) @@ -14505,8 +14610,11 @@ SELECT COALESCE ( 51, + 24 ) * + SUM ( 12 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) col0, COUNT ( * ) AS col0 +---- +-1 +1 query I rowsort label-2802 SELECT ALL COUNT ( * ) * 71 @@ -14978,8 +15086,11 @@ SELECT + ( + 66 ), - COUNT ( * ) - + 80 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(66\)\) AS col1" at position 0 and "Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 66 ) AS col1, + 95 col1 +---- +-66 +95 query I rowsort SELECT ALL + - 63 AS col2 @@ -15288,8 +15399,11 @@ SELECT DISTINCT ( - 79 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -960 # Datafusion - Expected - 1232 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \* Int64\(10\) AS col0" at position 0 and "Int64\(56\) \* Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 96 * + 10 AS col0, 56 * ( + 22 ) AS col0 +---- +-960 +1232 query I rowsort label-2953 SELECT ALL COUNT ( * ) * - 93 AS col2 @@ -15871,8 +15985,11 @@ SELECT DISTINCT + 99 + - ( + 44 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 col2, 90 AS col2 +---- +25 +90 query I rowsort label-3065 SELECT ALL CAST ( + 83 AS INTEGER ) @@ -16460,8 +16577,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\)" at position 0 and "\(\- CAST\(NULL AS Int32\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) +---- +NULL +NULL query I rowsort label-3178 SELECT ALL + - ( ( - + COUNT ( * ) ) ) @@ -16511,8 +16631,11 @@ SELECT ALL - - 78 * - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT + - 2 AS col1, 70 AS col1 +---- +-2 +70 query I rowsort SELECT + - ( - ( - + 27 ) ) @@ -17064,8 +17187,11 @@ SELECT DISTINCT - 70 * - 5 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "Int64\(\-36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 98 col0, - 36 AS col0 +---- +-36 +98 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -17169,8 +17295,11 @@ SELECT DISTINCT - SUM ( + 3 ) + + - COUNT ( * ) # 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 "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 14 AS col0, 1 AS col0 +---- +1 +14 query I rowsort label-3315 SELECT 25 * - + MAX ( + - 11 ) + ( + 9 ) AS col1 @@ -17328,8 +17457,11 @@ SELECT DISTINCT - COUNT ( - + 12 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - -68 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 22 AS col2, - 68 AS col2 +---- +-22 +-68 query I rowsort label-3346 SELECT DISTINCT - CAST ( + ( - ( + SUM ( - 54 ) ) ) AS INTEGER ) + - - 44 * + - 70 AS col0 @@ -17467,8 +17599,11 @@ SELECT DISTINCT - 12 * COUNT ( * ) / + COUNT ( * ) AS 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 col1" at position 0 and "Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 21 AS col1, - 1 AS col1 +---- +-1 +21 query I rowsort label-3373 SELECT + + COUNT ( ALL + - 59 ) @@ -17700,8 +17835,11 @@ SELECT DISTINCT - - CAST ( COUNT ( * ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, COUNT ( * ) AS col0 +---- +1 +1 query I rowsort label-3418 SELECT DISTINCT COUNT ( 56 ) + - 55 AS col2 @@ -18224,8 +18362,11 @@ SELECT + - 10 * + + 33 # 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\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 94 AS col2, 69 AS col2 +---- +-94 +69 query I rowsort label-3517 SELECT ALL + COUNT ( DISTINCT - - 63 ) + 62 / 97 AS col1 @@ -18535,8 +18676,11 @@ SELECT DISTINCT - COUNT ( DISTINCT - 20 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 25 AS col1, + 37 AS col1 +---- +25 +37 query I rowsort SELECT - 85 * - 56 @@ -18828,8 +18972,11 @@ SELECT DISTINCT NULLIF ( + 68, ( - 30 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 68 + + COUNT ( * ) AS col0, - 38 AS col0 +---- +-38 +-67 query I rowsort SELECT - 14 + + 90 AS col1 @@ -18849,8 +18996,11 @@ SELECT DISTINCT - + SUM ( ALL - 70 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 736 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) \* \(\- Int64\(16\)\) AS col0" at position 0 and "Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 46 * - + 16 AS col0, + 37 AS col0 +---- +37 +736 query I rowsort SELECT + 13 * + 80 @@ -19252,8 +19402,11 @@ SELECT ALL 89 * + 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 92 AS col0, + 36 AS col0 +---- +36 +92 query I rowsort SELECT DISTINCT - 40 + + + 45 col0 @@ -19268,8 +19421,11 @@ SELECT ALL - + ( - - 40 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(71\)\) AS col0" at position 0 and "Int64\(\-70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( ALL + 71 ) AS col0, - 70 AS col0 +---- +-70 +71 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -19530,8 +19686,11 @@ SELECT ALL + 65 * - 9 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3339 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(63\)\) \* Int64\(53\) AS col2" at position 0 and "Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 63 * + 53 AS col2, 79 AS col2 +---- +-3339 +79 query I rowsort SELECT ALL 2 + - - 80 @@ -19552,8 +19711,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) +---- +-1 +-1 query I rowsort SELECT 25 * - 86 AS col0 @@ -20284,8 +20446,11 @@ SELECT ALL - 57 + - 65 * - 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 AS col2, COUNT ( * ) AS col2 +---- +1 +6 query I rowsort SELECT ALL ( - + 98 ) @@ -20305,8 +20470,11 @@ SELECT + COUNT ( - ( - - 25 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3393 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(88\) \+ Int64\(\-39\) AS col2" at position 0 and "Int64\(\-91\) \* \(\- count\(Int64\(\-61\) \+ CAST\(Int64\(82\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 * 88 + - 39 AS col2, ( - 91 ) * - COUNT ( - 61 + + CAST ( 82 AS INTEGER ) ) AS col2 +---- +3393 +91 query I rowsort SELECT DISTINCT + + 62 AS col0 @@ -21282,8 +21450,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(5\) \* Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( ALL + 77 ) + 38 col0, - COUNT ( * ) * 5 * + 7 AS col0 +---- +-35 +115 query I rowsort label-4109 SELECT ALL 50 * MIN ( - 41 ) @@ -21803,8 +21974,11 @@ SELECT + 84 + - - 25 * + + 24 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 71 AS col2, + ( + 38 ) AS col2 +---- +38 +71 query II rowsort SELECT + - 30, - 38 AS col2 @@ -22579,8 +22753,11 @@ SELECT + COUNT ( * ) / + + 36 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 125 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ \(\- \(\- max\(Int64\(1\)\)\)\) \* Int64\(68\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 57 + - - MAX ( 1 ) * + + 68 AS col1, COUNT ( * ) AS col1 +---- +1 +125 query I rowsort label-4362 SELECT DISTINCT + COUNT ( * ) / + - 86 AS col1 @@ -22677,8 +22854,11 @@ SELECT + COUNT ( * ) col1, 21 + + - ( + - 35 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 34 AS col0, 37 AS col0 +---- +34 +37 query I rowsort SELECT DISTINCT 17 * + 55 + - 18 @@ -23615,8 +23795,11 @@ SELECT ALL + CAST ( - 77 AS INTEGER ) + + 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) / COUNT ( * ) col2, 23 AS col2 +---- +1 +23 query II rowsort label-4560 SELECT ALL 26, COUNT ( * ) AS col1 @@ -24064,8 +24247,11 @@ SELECT DISTINCT + SUM ( - + 80 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "\(\- max\(DISTINCT Int64\(\-82\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 AS col2, - MAX ( DISTINCT - 82 ) AS col2 +---- +76 +82 query I rowsort label-4647 SELECT - - COUNT ( * ) * + COUNT ( * ) + + 34 + - COUNT ( * ) AS col0 @@ -24153,8 +24339,11 @@ SELECT + SUM ( 8 ) AS col1 # 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 col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4 AS col1, 44 AS col1 +---- +4 +44 query II rowsort SELECT - - 45 AS col0, - 37 AS col2 @@ -25136,8 +25325,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( * ) + - 5 AS col1 +---- +-1 +-4 query I rowsort SELECT ALL - + 87 AS col1 @@ -25315,8 +25507,11 @@ SELECT + 1 AS col0, - CAST ( - - 81 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 66 AS col2, COUNT ( * ) AS col2 +---- +1 +66 query I rowsort label-4889 SELECT - CAST ( - - 65 AS INTEGER ) AS col1 @@ -25955,8 +26150,11 @@ SELECT 83 AS col1, - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 AS col0, ( 83 ) AS col0 +---- +18 +83 query I rowsort label-5013 SELECT ALL - 16 - CAST ( NULL AS INTEGER ) @@ -26476,8 +26674,11 @@ SELECT + + 94 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* min\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) * MIN ( - + CAST ( NULL AS INTEGER ) ) AS col0 +---- +-1 +NULL query I rowsort label-5114 SELECT COUNT ( ALL + 24 ) @@ -26542,8 +26743,11 @@ 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\(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\. +query II valuesort SELECT ( + + COUNT ( * ) ) + - - COUNT ( * ) AS col2, + 86 AS col2 +---- +2 +86 query I rowsort SELECT ( + 2 ) AS col2 @@ -26795,8 +26999,11 @@ SELECT + 40 * - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) \+ Int64\(24\) AS col0" at position 0 and "min\(\(\- Int64\(\-10\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 73 + + 24 AS col0, MIN ( - + ( - 10 ) ) AS col0 +---- +-49 +10 query I rowsort label-5177 SELECT + MAX ( ALL + - 42 ) @@ -26921,8 +27128,11 @@ SELECT DISTINCT SUM ( CAST ( 6 AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, 35 AS col0 +---- +1 +35 query I rowsort label-5202 SELECT ALL - 52 / + 14 AS col0 @@ -27158,8 +27368,11 @@ SELECT ALL ( 61 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col1" at position 0 and "Int64\(\-46\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 97 col1, - 46 * COUNT ( * ) AS col1 +---- +-46 +97 query I rowsort label-5247 SELECT 50 * - - COUNT ( * ) + - + 33 @@ -27963,8 +28176,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, 47 AS col0 +---- +-1 +47 query I rowsort label-5404 SELECT ALL MIN ( ALL 25 ) @@ -28256,8 +28472,11 @@ SELECT ALL + 0 * + + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 53 AS col2, 43 AS col2 +---- +43 +53 query I rowsort SELECT - ( + 42 ) AS col0 @@ -28581,8 +28800,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, 38 AS col2 +---- +-1 +38 query I rowsort label-5525 SELECT + 20 * + - COUNT ( * ) AS col1 @@ -29288,8 +29510,11 @@ SELECT + - CAST ( - + 88 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 34 AS col2, 28 AS col2 +---- +28 +34 query II rowsort SELECT + 70 AS col2, + 63 AS col0 @@ -29350,8 +29575,11 @@ SELECT DISTINCT - ( + - 8 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \- Int64\(32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 60 - + 32 AS col1, COUNT ( * ) AS col1 +---- +-92 +1 query I rowsort label-5675 SELECT ALL - CAST ( + + COUNT ( * ) AS INTEGER ) AS col0 @@ -30368,8 +30596,12 @@ SELECT - COUNT ( * ) + COUNT ( * ) AS col2 # Datafusion - Expected - -27 # Datafusion - Expected - 28 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - 27 AS col2, + 28, CAST ( NULL AS INTEGER ) col2 +---- +-27 +28 +NULL query I rowsort label-5872 SELECT DISTINCT - 39 / + 98 AS col0 @@ -30815,8 +31047,11 @@ SELECT + MIN ( DISTINCT + 25 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(82\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) + COUNT ( * ) - 82 + COUNT ( * ) col0, - 5 col0 +---- +-5 +-81 query II rowsort label-5959 SELECT ALL 5, 73 * + 37 * + COUNT ( * ) AS col1 @@ -30928,8 +31163,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 93 AS col0, - COUNT ( * ) AS col0 +---- +-1 +93 query I rowsort label-5981 SELECT ALL + 68 / 45 @@ -30970,8 +31208,11 @@ SELECT + 96 * ( 53 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, + COUNT ( * ) AS col0 +---- +-1 +1 query I rowsort SELECT ALL + - 21 * - 49 AS col1 @@ -32478,8 +32719,11 @@ SELECT ALL 92 AS col2, MIN ( - - 77 ) col1 # 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 "Int64\(\-3\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 AS col2, 30 AS col2 +---- +-3 +30 query I rowsort label-6284 SELECT ALL 18 + - ( COUNT ( * ) ) @@ -32923,8 +33167,11 @@ SELECT + 57 * + COUNT ( DISTINCT - - 74 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 15 AS col1, + 79 AS col1 +---- +-15 +79 query II rowsort label-6371 SELECT DISTINCT - CASE - - 0 WHEN COUNT ( * ) THEN NULL ELSE - 23 END, 99 * - 75 AS col0 @@ -33773,8 +34020,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 89 col2, + 91 AS col2 +---- +89 +91 query II rowsort label-6536 SELECT ALL COUNT ( * ), - COUNT ( * ) AS col2 @@ -34031,8 +34281,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, + COUNT ( * ) AS col1 +---- +-1 +1 query I rowsort label-6586 SELECT + 21 * COUNT ( * ) AS col1 @@ -34122,8 +34375,11 @@ SELECT ALL - COUNT ( * ) + + - 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 88 AS col1, COUNT ( * ) AS col1 +---- +-88 +1 query II rowsort label-6604 SELECT DISTINCT - COUNT ( * ) AS col2, - 67 @@ -34344,8 +34600,11 @@ SELECT ALL - + 14 # 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 "Int64\(64\) AS col0" at position 0 and "Int64\(80\) / Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 64 AS col0, 80 / 33 AS col0 +---- +2 +64 query II rowsort SELECT ALL 40 AS col1, + 79 @@ -34356,8 +34615,11 @@ SELECT ALL 40 AS col1, + 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 99 col1, 66 AS col1 +---- +66 +99 query I rowsort SELECT + + 81 AS col0 @@ -34425,8 +34687,11 @@ SELECT - + COUNT ( ALL + ( CAST ( NULL AS INTEGER ) ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) AS col2" at position 0 and "Int64\(2\) \* \(\- \(\- count\(CAST\(NULL AS Int32\)\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 3 AS col2, 2 * - - COUNT ( + CAST ( NULL AS INTEGER ) ) * - + COUNT ( * ) + + COUNT ( * ) AS col2 +---- +-3 +1 query I rowsort label-6662 SELECT DISTINCT ( + 52 ) + - COUNT ( * ) AS col2 @@ -35802,8 +36067,11 @@ SELECT DISTINCT - ( + - ( - 30 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col0" at position 0 and "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 43 AS col0, ( - CAST ( + COUNT ( * ) AS INTEGER ) ) AS col0 +---- +-1 +43 query I rowsort SELECT DISTINCT 9 + + 85 AS col2 @@ -36087,8 +36355,11 @@ SELECT - 17 / - + MIN ( + 87 ) + CAST ( + ( + 39 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 70 col1, 42 AS col1 +---- +42 +70 query I rowsort SELECT ALL - ( + - 4 ) @@ -37684,8 +37955,11 @@ 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\(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\. +query II valuesort SELECT ( - COUNT ( * ) ), - COUNT ( * ) +---- +-1 +-1 query I rowsort SELECT + ( - 41 ) @@ -37792,8 +38066,12 @@ 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\(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\. +query III valuesort SELECT + - COUNT ( * ), + COALESCE ( + 1, + COUNT ( * ) ) AS col0, - COUNT ( * ) +---- +-1 +-1 +1 query I rowsort label-7316 SELECT - 85 - + COUNT ( * ) @@ -38541,8 +38819,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col1, - 54 col1 +---- +-1 +-54 query I rowsort label-7462 SELECT DISTINCT COUNT ( + + 92 ) AS col2 @@ -38637,8 +38918,11 @@ SELECT - COUNT ( * ) - + 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(98\) \+ Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2, 98 + - 45 AS col2 +---- +53 +NULL query I rowsort label-7481 SELECT + 36 + - CAST ( NULL AS INTEGER ) @@ -39774,8 +40058,11 @@ SELECT ALL + 72 * - SUM ( ALL 19 ) AS col1 # 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\(97\) AS col1" at position 0 and "Int64\(\-24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 97 col1, - 24 AS col1 +---- +-24 +97 query II rowsort SELECT DISTINCT + - 28 AS col0, - 74 @@ -40409,8 +40696,11 @@ SELECT DISTINCT 50, ( - + 17 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 30 AS col2, 9 AS col2 +---- +-30 +9 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -40933,8 +41223,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 41 AS col1, 27 * + - COUNT ( * ) AS col1 +---- +-27 +-41 query I rowsort label-7924 SELECT + MAX ( ALL + - 6 ) + + 79 * - COUNT ( * ) AS col0 @@ -41027,8 +41320,11 @@ SELECT + + 21 / + 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 96 AS col1, 33 AS col1 +---- +33 +96 query I rowsort label-7942 SELECT ALL 84 / + COUNT ( * ) + + 69 @@ -41059,8 +41355,11 @@ SELECT ALL - ( - 27 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 107 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ \(\- Int64\(\-21\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 + - - 21 AS col1, CAST ( NULL AS INTEGER ) col1 +---- +107 +NULL query I rowsort SELECT DISTINCT - ( + 87 ) AS col1 @@ -41120,8 +41419,11 @@ SELECT - - CAST ( 31 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(25\) AS Int32\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + 25 AS INTEGER ) AS col2, 73 AS col2 +---- +25 +73 query I rowsort SELECT + + 77 col0 @@ -41156,8 +41458,11 @@ SELECT ALL ( 2 ) + + 88 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) / \(\- \(\- nullif\(Int64\(12\), Int64\(56\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 AS col0, - CAST ( NULL AS INTEGER ) / - - NULLIF ( + + 12, + 56 ) AS col0 +---- +71 +NULL query I rowsort label-7967 SELECT ALL 90 - - CAST ( NULL AS INTEGER ) AS col0 @@ -41339,8 +41644,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \+ \(\- min\(\(\- Int64\(79\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 11 * - + 63 AS col0, COUNT ( * ) + - MIN ( - + 79 ) col0 +---- +693 +80 query I rowsort label-8003 SELECT - COUNT ( ALL - - 61 ) @@ -41645,8 +41953,11 @@ SELECT - 17 / + 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, - 4 col0 +---- +-4 +1 query I rowsort label-8062 SELECT DISTINCT 52 / + 48 @@ -41675,8 +41986,11 @@ SELECT 42 AS col1, COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) AS col2 +---- +1 +1 query I rowsort SELECT DISTINCT 11 * + 60 * + 30 @@ -41831,8 +42145,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) AS col2, - COUNT ( * ) / + + 1 AS col2 +---- +-1 +-1 query I rowsort SELECT 41 - 7 @@ -42075,8 +42392,11 @@ SELECT ALL 68 + - - 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 30 AS col0, + COUNT ( * ) AS col0 +---- +1 +30 query II rowsort SELECT DISTINCT - 71 AS col1, 56 @@ -42212,8 +42532,11 @@ SELECT DISTINCT + + ( COUNT ( * ) ) AS col1 # 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 col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 AS col0, 57 AS col0 +---- +57 +57 query II rowsort SELECT DISTINCT + 58 AS col0, - 68 @@ -42451,14 +42774,20 @@ SELECT COUNT ( * ) AS col2, - 71 + + - 63 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 72 AS col1, 16 col1 +---- +16 +72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 42 AS col0, 72 AS col0 +---- +-42 +72 query I rowsort label-8218 SELECT - + SUM ( DISTINCT 10 ) AS col0 @@ -42533,8 +42862,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(\(\- Int64\(62\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 61 AS col1, COUNT ( * ) * - COUNT ( - ( 62 ) ) AS col1 +---- +-1 +61 query I rowsort SELECT ALL 81 col2 @@ -42819,8 +43151,11 @@ SELECT 69 AS col0, 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 AS col2, 48 AS col2 +---- +48 +91 query I rowsort SELECT 36 * - 55 AS col0 @@ -42917,8 +43252,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col2" at position 0 and "Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 col2, 80 AS col2 +---- +36 +80 query I rowsort label-8307 SELECT ALL - 24 * + COUNT ( * ) @@ -44241,8 +44579,11 @@ SELECT ALL - 86 + 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 75 AS col2, 56 AS col2 +---- +-75 +56 query I rowsort label-8560 SELECT - SUM ( + CAST ( NULL AS INTEGER ) ) * - 8 AS col2 @@ -44307,8 +44648,11 @@ SELECT DISTINCT - 81 * + 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 18 col1, 70 AS col1 +---- +18 +70 query II rowsort label-8573 SELECT - 10 col1, + ( ( - + COUNT ( * ) ) ) @@ -44895,8 +45239,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * + 64 AS col1, 31 AS col1 +---- +31 +64 query I rowsort SELECT + ( - 29 ) col0 @@ -45448,8 +45795,11 @@ SELECT DISTINCT 46 AS col2, 96 * + + 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, COUNT ( * ) col0 +---- +1 +1 query I rowsort SELECT DISTINCT 26 col2 @@ -46527,8 +46877,11 @@ SELECT DISTINCT - + 99, 4 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(72\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( 72 ) col2, + COUNT ( * ) AS col2 +---- +-72 +1 query I rowsort label-9003 SELECT 62 + COUNT ( * ) AS col2 @@ -48626,8 +48979,11 @@ SELECT ALL - 25 * + 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) / Int64\(\-71\) \* Int64\(35\) AS col2" at position 0 and "coalesce\(Int64\(\-94\), Int64\(\-30\) \* \(\- Int64\(34\)\), \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(63\) \* Int64\(40\) / CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 14 / - 71 * 35 col2, COALESCE ( - 94, - 30 * - + 34, - CAST ( NULL AS INTEGER ) ) * 63 * + 40 / + CAST ( NULL AS INTEGER ) AS col2 +---- +0 +NULL query II rowsort label-9405 SELECT + 33, + COUNT ( * ) * + 26 AS col0 @@ -49215,8 +49571,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) + - ( - + ( ( 86 ) ) ) AS col0, COUNT ( * ) * - 86 AS col0 +---- +-86 +85 query I rowsort label-9518 SELECT ALL - 87 / + 6 @@ -49338,8 +49697,11 @@ SELECT ALL 62 + - + 79 * - 42 * + 4 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT ALL ( 76 ) AS col2, - 38 AS col2 +---- +-38 +76 query I rowsort label-9541 SELECT ALL 89 / + COUNT ( * ) + - + ( 81 ) / - 47 @@ -49494,8 +49856,11 @@ SELECT ALL 37 * + 86 - + - 38 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(73\)\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 73 AS col0, 38 AS col0 +---- +-73 +38 query I rowsort SELECT 23 - 34 AS col0 @@ -49554,8 +49919,12 @@ SELECT ALL 66 * - 69 + 57 * + COUNT ( * ) * - 26 * - + 25 col0 # Datafusion - Expected - -39060 # Datafusion - Expected - 66 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* Int64\(31\) \* Int64\(\-28\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 45 * 31 * - 28 col2, + 66 col2, - 97 +---- +-39060 +-97 +66 query I rowsort label-9582 SELECT 41 + - - 83 - COUNT ( * ) @@ -50403,8 +50772,11 @@ SELECT DISTINCT + 62 / - - 66 # 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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 52 col2, + 22 col2 +---- +22 +52 query II rowsort SELECT ALL 4 AS col1, - 50 @@ -50535,8 +50907,11 @@ SELECT + - COUNT ( * ) AS col0, - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 20 AS col1, + COUNT ( * ) AS col1 +---- +-20 +1 query I rowsort label-9769 SELECT 7 + + - 14 + + + COUNT ( * ) col2 @@ -50878,8 +51253,11 @@ SELECT ALL 83 + + 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - -156 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(13\)\)\) \+ Int64\(67\) AS col0" at position 0 and "Int64\(6\) \* Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( + 13 ) + 67 AS col0, + 6 * - 26 AS col0 +---- +-156 +66 query I rowsort SELECT - 67 + 25 @@ -50946,8 +51324,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 5 AS col1, + 28 AS col1 +---- +-5 +28 query I rowsort label-9849 SELECT ALL + COUNT ( * ) * 39 + COUNT ( ALL - 33 ) AS col1 @@ -51011,8 +51392,12 @@ 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\(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\. +query III valuesort SELECT ALL - 13 + - - 9, + 33 + - COUNT ( * ) AS col2, - 91 AS col2 +---- +-4 +-91 +32 query II rowsort SELECT 21, 33 + 42 AS col0 @@ -51560,8 +51945,11 @@ SELECT ALL NULLIF ( CAST ( - - 54 AS INTEGER ), - - SUM ( ALL + 46 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(45\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(75\) \+ Int64\(\-73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) * + 45 AS col2, - COUNT ( * ) * - COUNT ( * ) + 75 + - 73 AS col2 +---- +3 +NULL query I rowsort label-9965 SELECT DISTINCT + 82 + - COUNT ( * ) AS col0 diff --git a/data/sqlite/random/expr/slt_good_66.slt b/data/sqlite/random/expr/slt_good_66.slt index 3d45774..1b25de1 100644 --- a/data/sqlite/random/expr/slt_good_66.slt +++ b/data/sqlite/random/expr/slt_good_66.slt @@ -167,8 +167,12 @@ SELECT DISTINCT - + 46 + - + COUNT ( * ) * + + 23 * - 4 col0 # Datafusion - Expected - 57 # Datafusion - Expected - -1820 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) 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 IIR valuesort SELECT 57 AS col1, 52 * - + 35, + CAST ( NULL AS FLOAT8 ) AS col1 +---- +-1820 +57 +NULL query I rowsort label-26 SELECT ALL - COUNT ( + 34 ) + - 79 AS col1 @@ -420,8 +424,11 @@ SELECT - 11 * + 74, COUNT ( * ) 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\(79\)\) \+ Int64\(97\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 79 ) + + 97 AS col1, 63 AS col1 +---- +18 +63 query I rowsort SELECT ALL NULLIF ( - 64, - 79 + - - 84 ) @@ -839,8 +846,11 @@ 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\(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\. +query II valuesort SELECT + 40 * - - 21 + + COUNT ( * ) - - 24 AS col2, 15 AS col2 +---- +15 +865 query I rowsort SELECT 46 * + - 98 @@ -1362,8 +1372,11 @@ SELECT ALL + + COUNT ( ALL 54 ) + + 21 * + 80 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(37\)\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( DISTINCT 37 ) col1, 14 AS col1 +---- +14 +37 query I rowsort label-250 SELECT ALL - 53 + + MIN ( + + 93 ) @@ -1394,8 +1407,11 @@ SELECT 5 - 1 * + 84 * + NULLIF ( 81, 6 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / \(\- Int64\(30\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 47 AS col1, CAST ( NULL AS INTEGER ) / - + 30 AS col1 +---- +-47 +NULL query I rowsort label-256 SELECT ALL CAST ( NULL AS INTEGER ) * + 54 @@ -1530,8 +1546,11 @@ SELECT 66 + - + 85 * - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col0" at position 0 and "Int64\(28\) \+ Int64\(\-57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 24 AS col0, 28 + - 57 AS col0 +---- +-29 +24 query I rowsort SELECT 12 + - 45 col0 @@ -1765,8 +1784,12 @@ SELECT + 93 + + - COALESCE ( 38, - 98 + - - 96 ) # Datafusion - Expected - 29 # Datafusion - Expected - NULL # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col0" at position 0 and "\(\- max\(Int64\(50\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 29 AS col0, - CASE WHEN 12 = - COUNT ( DISTINCT + 23 ) THEN + 20 + + - 48 - ( - COUNT ( * ) ) / ( 31 ) * + COUNT ( * ) END, - MAX ( ALL + 50 ) AS col0 +---- +-50 +29 +NULL query II rowsort label-327 SELECT - 55 / + - COUNT ( - 73 ) + - + COUNT ( DISTINCT + 75 ) AS col2, - ( COUNT ( * ) ) * + - 32 + - - 91 - 19 AS col1 @@ -1828,8 +1851,11 @@ 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\(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\. +query II valuesort SELECT ( - - COUNT ( * ) ) / + - 6 * 36 - 12 AS col2, 52 + + 54 col2 +---- +-12 +106 query I rowsort label-339 SELECT ( + COALESCE ( + - 97, - - 54 + + MAX ( DISTINCT - 11 ) ) ) @@ -1845,8 +1871,11 @@ SELECT + - 78 + - ( - 35 ) AS col0, - 25 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - 6674 -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\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 57 AS col0, 94 * 71 AS col0 +---- +-57 +6674 query I rowsort SELECT ALL - CASE + 7 WHEN 87 + - 72 * - 1 THEN NULL WHEN - 10 + 22 * 64 + + 75 THEN NULL ELSE + - 72 END * + 24 + ( + - 5 ) AS col1 @@ -1936,8 +1965,11 @@ SELECT 40 + + + 42 / COUNT ( DISTINCT + 21 ) * 29 - - 73 * 54 * + + 75 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -920 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "Int64\(16\) \* Int64\(\-59\) \- Int64\(\-24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 AS col1, + 16 * - 59 - - 24 col1 +---- +-920 +71 query I rowsort label-360 SELECT 50 + - + 2 + - COUNT ( * ) * - 9 AS col0 @@ -2386,8 +2418,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, + COUNT ( * ) AS col2 +---- +-1 +1 query I rowsort SELECT ALL - 59 - - + 92 AS col1 @@ -2610,8 +2645,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MAX ( DISTINCT 43 ) AS col2, - COUNT ( * ) col2 +---- +-1 +-43 query II rowsort label-488 SELECT ALL - 88 + - - COUNT ( * ) + - 32 * + - 77, - 77 - - - 39 * - 58 AS col1 @@ -2683,8 +2721,11 @@ SELECT NULLIF ( - 28, COUNT ( * ) ) * - 6 * + 49 * + ( + COALESCE ( - 88, CAST ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 AS col2, + 90 AS col2 +---- +72 +90 query II rowsort SELECT 7 col0, 11 @@ -2763,8 +2804,11 @@ SELECT 54 + - + COUNT ( * ) / + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 1779 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) AS col0" at position 0 and "Int64\(71\) \+ Int64\(22\) \* Int64\(74\) \+ Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 13 AS col0, + 71 + 22 * + 74 + + + 80 AS col0 +---- +-13 +1779 query I rowsort label-517 SELECT - + MAX ( + CAST ( - - 30 AS INTEGER ) ) AS col1 @@ -3057,8 +3101,11 @@ SELECT DISTINCT + 10 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10336 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \* Int64\(8\) \* min\(Int64\(38\)\) AS col2" at position 0 and "Int64\(\-85\) \+ \(\- \(\- \(\- CAST\(NULL AS Int32\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 34 * + 8 * + + MIN ( ALL + ( + 38 ) ) AS col2, - 85 + + ( - ( - - CAST ( NULL AS INTEGER ) ) ) AS col2 +---- +-10336 +NULL query II rowsort SELECT COALESCE ( + 26, - 16 + - 77 * + 72, - 89 * + ( - 49 ) ) AS col1, 99 AS col0 @@ -3271,8 +3318,11 @@ SELECT ALL + COUNT ( * ) * + + COUNT ( DISTINCT + 17 ) * + 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6351 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(87\), Int64\(21\)\) \* \(\- Int64\(73\)\) AS col0" at position 0 and "Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( 87, 21 ) * - + 73 col0, - 90 AS col0 +---- +-6351 +-90 query I rowsort SELECT 19 + + + NULLIF ( - + 50, + + 52 ) AS col0 @@ -3297,8 +3347,11 @@ SELECT 95 - - 37 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 30 AS col2, + 59 AS col2 +---- +30 +59 query I rowsort SELECT - 16 - - 65 * + 85 AS col2 @@ -3915,8 +3968,11 @@ SELECT 12 + - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* count\(Int64\(68\)\) AS col0" at position 0 and "Int64\(\-75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 * COUNT ( 68 ) AS col0, - 75 AS col0 +---- +-75 +18 query I rowsort SELECT DISTINCT - 57 col2 @@ -4361,8 +4417,11 @@ SELECT ALL + ( - - 64 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 37 AS col1 +---- +1 +37 query I rowsort label-823 SELECT ALL CASE 13 WHEN + - 43 THEN ( - - CAST ( NULL AS INTEGER ) ) + 27 WHEN - - ( 25 ) * COUNT ( * ) * + 90 THEN NULL ELSE 19 * 71 - 52 * + - 4 + + COUNT ( * ) END @@ -4433,8 +4492,11 @@ SELECT ALL 73 / + 23 # 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 "\(\- min\(coalesce\(Int64\(2\), \(\- Int64\(\-24\)\), Int64\(\-54\)\)\)\) AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( ALL + COALESCE ( 2, - - 24, + - 54 ) ) AS col1, 3 AS col1 +---- +-2 +3 query I rowsort label-837 SELECT - 49 + - 19 + - SUM ( ALL + 75 ) @@ -4480,8 +4542,11 @@ SELECT ALL - 36 * - + 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 40 AS col1, + CAST ( NULL AS INTEGER ) AS col1 +---- +40 +NULL query I rowsort label-846 SELECT + + ( + + COUNT ( * ) ) * - - ( COALESCE ( - ( 66 ), - 88 * 63 ) ) + - + 54 + - - 45 @@ -4531,8 +4596,11 @@ SELECT 24 / + - 29 + + SUM ( + 72 ) / - 25 # 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 "nullif\(Int64\(\-3\), Int64\(63\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 AS col2, NULLIF ( - 3, 63 ) col2 +---- +-3 +78 query I rowsort label-856 SELECT DISTINCT + CAST ( - COUNT ( - - 40 ) AS INTEGER ) * + - 5 + + 20 AS col0 @@ -4612,8 +4680,12 @@ SELECT - 1 AS col0, 83 * - 85 # Datafusion - Expected - -6 # Datafusion - Expected - NULL # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-38\), Int64\(51\) \+ Int64\(10\) \+ Int64\(99\)\) \+ CASE Int64\(38\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- nullif\(\(\- CAST\(NULL AS Int32\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(92\)\)\) WHEN min\(DISTINCT coalesce\(Int64\(21\), Int64\(\-61\), Int64\(43\)\)\) THEN Int64\(99\) END \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(33\)\) / Int64\(16\) AS col0" at position 1 and "Int64\(28\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-6 +28 +NULL query I rowsort label-871 SELECT COALESCE ( - 41, + + ( + + 87 ) * - + 94 * - - 55 + 24 ) * + 65 + - + 3 + 46 * - COUNT ( * ) + - 2 * + 45 + - + COUNT ( * ) * ( - 21 ) / + - 78 + + 59 + - COUNT ( * ) * + 52 * COUNT ( * ) * - + 13 + + + 34 + COUNT ( * ) + - ( - 71 ) * + + 25 col1 @@ -4656,8 +4728,12 @@ NULL # Datafusion - Expected - 47 # Datafusion - Expected - 13 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 47 AS col0, 13, + + 28 col0 +---- +13 +28 +47 query II rowsort SELECT - 63 AS col1, 75 AS col2 @@ -4688,8 +4764,11 @@ SELECT 26 + + 70 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 "Int64\(69\) AS col0" at position 0 and "Int64\(37\) / Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 69 AS col0, 37 / 82 AS col0 +---- +0 +69 query I rowsort SELECT - 22 * 86 + 30 @@ -5414,8 +5493,11 @@ 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\(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\. +query II valuesort SELECT ALL + - COUNT ( * ) AS col0, 84 / + 10 col0 +---- +-1 +8 query I rowsort label-1022 SELECT COUNT ( * ) * - + 96 - - - SUM ( ALL - - 52 ) + - + 18 AS col2 @@ -5885,8 +5967,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - -756 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "Int64\(18\) \* \(\- Int64\(42\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 AS col1, + 18 * - ( + 42 ) AS col1 +---- +-756 +36 query I rowsort label-1111 SELECT DISTINCT - 44 + CAST ( NULL AS INTEGER ) AS col2 @@ -6124,8 +6209,11 @@ SELECT ALL + 68 / + 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(64\)\) AS Int32\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( - + 64 AS INTEGER ) AS col0, 82 col0 +---- +-64 +82 query I rowsort label-1157 SELECT DISTINCT + SUM ( - + 49 ) * - 60 AS col1 @@ -6266,8 +6354,11 @@ SELECT ( 73 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 3198 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "Int64\(78\) \* Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 38 AS col0, 78 * + + 41 col0 +---- +3198 +38 query I rowsort label-1183 SELECT + MIN ( + - 47 ) * + + 73 AS col0 @@ -6454,8 +6545,11 @@ SELECT 91 * + COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - -8221 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "Int64\(68\) \* Int64\(10\) \- \(\- Int64\(25\)\) \* Int64\(40\) \* Int64\(\-9\) \+ Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 AS col0, + 68 * + ( + 10 ) - - + 25 * + 40 * + - 9 + 99 AS col0 +---- +-8221 +79 query I rowsort label-1219 SELECT NULLIF ( - - 17, - 42 ) / - 94 + + + 67 AS col1 @@ -6643,8 +6737,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) * 77 AS col2, 47 AS col2 +---- +-77 +47 query II rowsort label-1255 SELECT ALL + CAST ( + 66 AS INTEGER ), CAST ( NULL AS INTEGER ) AS col2 @@ -6712,8 +6809,11 @@ SELECT - COUNT ( * ) * SUM ( ALL - 94 ) * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(9\)\) \* \(\- Int64\(89\)\) \+ \(\- CAST\(NULL AS Int32\)\) \- \(\- \(\- avg\(Int64\(29\)\)\)\) \* Int64\(20\) AS col2" at position 0 and "Int64\(10\) \- \(\- Int64\(\-12\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + SUM ( + ( + 9 ) ) * - + 89 + - CAST ( NULL AS INTEGER ) - - - AVG ( 29 ) * ( + 20 ) AS col2, + 10 - - - 12 AS col2 +---- +-2 +NULL query I rowsort SELECT - 17 * - + 85 - + 94 + + 6 AS col1 @@ -6797,8 +6897,12 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - 127 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ \(\- Int64\(\-98\)\) AS col2" at position 1 and "Int64\(29\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 1, 29 + - - 98 AS col2, + 29 AS col2 +---- +1 +127 +29 query I rowsort label-1284 SELECT ALL + COUNT ( * ) * 44 * - 6 AS col1 @@ -6879,8 +6983,11 @@ SELECT + 31, 20 * - + 2 / - 87 AS col1 # 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 col1" at position 0 and "\(\- Int64\(34\)\) / Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 51 AS col1, - ( + + 34 ) / + ( + - 60 ) AS col1 +---- +0 +51 query I rowsort SELECT ALL - 66 * + 33 + COALESCE ( + 85, + - 8 ) AS col0 @@ -6895,8 +7002,11 @@ SELECT - 55 + + - 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - -662 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(66\) WHEN Int64\(\-1\) THEN NULL ELSE Int64\(96\) \* Int64\(\-7\) \+ Int64\(10\) END AS col0" at position 0 and "Int64\(\-69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CASE + 66 WHEN - 1 THEN NULL ELSE + 96 * - 7 + 10 END AS col0, - 69 AS col0 +---- +-662 +-69 query II rowsort label-1302 SELECT DISTINCT + NULLIF ( + 18, NULLIF ( ( - 85 ), + 43 ) * 1 + 29 + + + 73 + + 29 + + COUNT ( * ) ) * 56 + - 13, 72 * + 52 + - COUNT ( * ) AS col1 @@ -6912,8 +7022,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(\-90\) WHEN Int64\(\-78\) THEN NULL WHEN \(\- \(\- \(\- Int64\(\-17\)\)\)\) THEN Int64\(98\) \* \(\- Int64\(63\)\) \+ Int64\(54\) \* Int64\(\-2\) / Int64\(39\) ELSE NULL END\) AS col1" at position 0 and "Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - CASE - 90 WHEN - 78 THEN NULL WHEN + ( - + ( - ( - - 17 ) ) ) THEN + 98 * - + 63 + 54 * - 2 / + 39 ELSE NULL END ) AS col1, - 40 col1 +---- +-40 +NULL query I rowsort label-1305 SELECT + CASE + - 85 WHEN 97 THEN + 44 WHEN + 30 / + + 94 THEN - - COUNT ( * ) ELSE NULL END @@ -7610,8 +7723,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 75 * + 5 col0, COUNT ( * ) + 26 AS col0 +---- +-375 +27 query I rowsort SELECT + 45 + 9 * - 11 * - 99 AS col1 @@ -8015,8 +8131,11 @@ SELECT 3 + + + 83 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "Int64\(\-59\) \+ Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 AS col2, - 59 + + + 61 AS col2 +---- +2 +54 query I rowsort SELECT 9 * 86 @@ -8401,8 +8520,11 @@ SELECT ALL + 35 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 col1, 5 AS col1 +---- +22 +5 query I rowsort label-1593 SELECT COUNT ( * ) * - 47 + 6 AS col2 @@ -8475,8 +8597,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 94 AS col2, + COUNT ( * ) + 55 AS col2 +---- +-94 +56 query I rowsort SELECT + 54 + + 9 @@ -8902,8 +9027,11 @@ SELECT ALL + 14 / 95 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -169 # Datafusion - Expected - -864 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(49\)\) \+ \(\- min\(Int64\(54\)\)\) \+ Int64\(\-66\) AS col1" at position 0 and "Int64\(72\) \* \(\- Int64\(12\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 49 + - MIN ( + 54 ) + + - 66 AS col1, 72 * - ( 12 ) AS col1 +---- +-169 +-864 query I rowsort SELECT DISTINCT 55 * + 40 + - 36 @@ -9103,8 +9231,11 @@ 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\(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\. +query II valuesort SELECT ( - - 35 ) AS col0, + CASE + + 86 WHEN - COUNT ( * ) THEN NULL WHEN 3 THEN 62 END AS col0 +---- +35 +NULL query I rowsort SELECT ALL + + 82 + 32 AS col0 @@ -9731,8 +9862,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 85, - MAX ( + + ( 62 ) ) AS col0, + 6 / - + 58 + - - COUNT ( * ) AS col0 +---- +-62 +-85 +1 query I rowsort label-1845 SELECT CAST ( NULL AS INTEGER ) * - - 67 AS col0 @@ -9898,8 +10033,11 @@ SELECT 91 + + - 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4608 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \* Int64\(\-48\) AS col2" at position 0 and "Int64\(57\) \+ Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 96 * - 48 AS col2, + 57 + + 37 AS col2 +---- +4608 +94 query II rowsort label-1875 SELECT DISTINCT MAX ( ALL + - 11 ), - 60 AS col0 @@ -10326,8 +10464,11 @@ SELECT DISTINCT COUNT ( * ) - 70 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 68 col2, COUNT ( * ) AS col2 +---- +-68 +1 query I rowsort label-1954 SELECT ALL COUNT ( * ) - - 76 AS col1 @@ -10563,8 +10704,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col2, CASE - 16 WHEN 96 / - 28 THEN + - 11 ELSE NULL END * + 35 * + 69 col2 +---- +-1 +NULL query II rowsort SELECT + 22 AS col0, 17 col1 @@ -10612,8 +10756,11 @@ SELECT + + 78 + + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "min\(CAST\(NULL AS Int32\)\) \+ Int64\(\-80\) \* count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(27\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 41 * + - COUNT ( * ) AS col1, MIN ( CAST ( NULL AS INTEGER ) ) + + - 80 * COUNT ( * ) / - + 27 AS col1 +---- +-41 +NULL query I rowsort SELECT + - 3 + 91 AS col0 @@ -10962,8 +11109,11 @@ SELECT DISTINCT + + 23 / 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1141 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \- Int64\(76\) \* Int64\(\-16\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 75 - 76 * - 16 col1, COUNT ( * ) col1 +---- +1 +1141 query I rowsort SELECT ALL - 17 * + + 42 @@ -11838,14 +11988,20 @@ SELECT ALL + 89 * + - 20 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3779 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \* Int64\(16\) \- Int64\(29\) \+ Int64\(\-22\) \- Int64\(16\) \+ Int64\(32\) \* Int64\(\-68\) AS col2" at position 0 and "coalesce\(\(\- coalesce\(Int64\(\-97\), Int64\(\-58\) \+ Int64\(74\), Int64\(60\)\)\), Int64\(70\) \* Int64\(\-8\) \+ Int64\(40\) \+ Int64\(29\) \+ Int64\(86\)\) / Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 96 * + 16 - 29 + + - 22 - + 16 + 32 * + - 68 AS col2, COALESCE ( - + COALESCE ( - 97, - 58 + 74, + 60 ), + 70 * - 8 + + + 40 + 29 + 86 ) / - 41 AS col2 +---- +-2 +-3779 # Datafusion - Datafusion expected results: # Datafusion - Expected - 275 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \* Int64\(\-11\) AS col0" at position 0 and "Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 25 * - 11 col0, - 19 AS col0 +---- +-19 +275 query I rowsort label-2245 SELECT ALL + COALESCE ( + 74, - 38 * + 20 * 3 - + ( + 4 ) + + 24 - CAST ( - 42 AS INTEGER ), + 2 ) AS col2 @@ -12299,8 +12455,11 @@ SELECT 76 AS col1, 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 18 AS col1, 50 AS col1 +---- +18 +50 query I rowsort SELECT ( + 8 ) + - 31 AS col0 @@ -12706,8 +12865,11 @@ SELECT DISTINCT 73 / + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 131 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ Int64\(99\) AS col0" at position 0 and "CASE WHEN NOT Int64\(22\) IS NOT NULL THEN Int64\(70\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 32 + 99 AS col0, CASE WHEN NOT 22 IS NOT NULL THEN + + 70 END AS col0 +---- +131 +NULL query I rowsort label-2408 SELECT DISTINCT - COUNT ( * ) * + - 42 * + 96 * + - 53 * + + 53 @@ -12793,8 +12955,11 @@ SELECT - MIN ( ( - 89 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(CAST\(NULL AS Int32\), Int64\(\-1\)\)\) \* Int64\(\-51\) \+ Int64\(34\) \- \(\- CAST\(nullif\(Int64\(4\), \(\- CASE \(\- CASE \(\- nullif\(coalesce\(Int64\(55\), Int64\(82\) \* CAST\(Int64\(\-31\) AS Int32\) \- \(\- avg\(DISTINCT Int64\(\-48\)\)\), \(\- Int64\(\-8\)\)\), Int64\(\-82\) \* \(\- \(\- count\(\(\- Int64\(73\)\)\)\)\)\)\) WHEN Int64\(59\) \* Int64\(98\) \* Int64\(76\) THEN NULL ELSE Int64\(76\) END\) WHEN Int64\(53\) THEN \(\- Int64\(75\)\) ELSE NULL END\)\) AS Int32\)\) / Int64\(\-69\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COALESCE ( + CAST ( NULL AS INTEGER ), - 1 ) * - 51 + 34 - - CAST ( NULLIF ( + 4, - CASE - CASE - NULLIF ( COALESCE ( + 55, + 82 * + ( CAST ( + - 31 AS INTEGER ) ) - + - AVG ( DISTINCT - 48 ), - - 8 ), - 82 * - - COUNT ( ( - + 73 ) ) ) WHEN 59 * 98 * + 76 THEN NULL ELSE + + 76 END WHEN 53 THEN - + 75 ELSE NULL END ) AS INTEGER ) / ( + - 69 ) col0, + 18 AS col0 +---- +-17 +18 query I rowsort label-2424 SELECT DISTINCT + 49 + - - 9 / - - COALESCE ( + + 98, 94 ) AS col1 @@ -13232,8 +13397,11 @@ SELECT DISTINCT 60 * - + 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CAST\(NULL AS Int32\)\) AS Float64\) AS col1" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT CAST ( - + CAST ( NULL AS INTEGER ) AS FLOAT8 ) AS col1, - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 +---- +1 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -13301,8 +13469,11 @@ SELECT DISTINCT - MAX ( DISTINCT NULLIF ( - NULLIF ( - 65, - + 6 ), 25 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -6528 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \* Int64\(96\) AS col0" at position 0 and "Int64\(\-31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 68 * 96 col0, - 31 AS col0 +---- +-31 +-6528 query I rowsort SELECT 8 + + 67 @@ -14052,8 +14223,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 21 AS col0, + COUNT ( * ) + - 57 AS col0 +---- +-21 +-56 query I rowsort label-2662 SELECT DISTINCT - 51 / COALESCE ( - 12, + + ( + + ( 38 ) ) ) AS col2 @@ -14280,8 +14454,11 @@ 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\(1\)\) AS count\(\*\)\) \- Int64\(18\) \* Int64\(\-53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 30 AS col0, - 29 + - + COUNT ( * ) - 18 * - 53 AS col0 +---- +30 +924 query I rowsort SELECT 29 + 62 @@ -14394,8 +14571,11 @@ SELECT + 18 * - COUNT ( * ) + + 18 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 6885 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(54\)\)\) / \(\- Int64\(\-95\)\) AS col0" at position 0 and "CASE Int64\(\-67\) WHEN Int64\(19\) \+ Int64\(71\) THEN NULL WHEN \(\- nullif\(Int64\(44\), Int64\(\-53\) \* Int64\(2\)\)\) THEN Int64\(46\) \* \(\- Int64\(11\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-1\) \+ Int64\(53\) THEN Int64\(\-65\) \* \(\- Int64\(35\)\) \- CAST\(NULL AS Int32\) ELSE Int64\(85\) \* Int64\(81\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +0 +6885 query I rowsort SELECT DISTINCT 82 + + 43 AS col1 @@ -14436,8 +14616,12 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - 40 AS col2, 20 * - + COUNT ( * ) * + 13 col2, - + 4 * - + 94 * ( + 86 ) AS col2 +---- +-260 +32336 +40 query II rowsort SELECT ALL + 83 AS col0, - 46 @@ -14976,8 +15160,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col1" at position 0 and "Int64\(\-96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 20 AS col1, - 96 AS col1 +---- +-20 +-96 query I rowsort SELECT ALL - 45 * - 68 * + 32 @@ -15026,8 +15213,11 @@ SELECT ALL - 35, + 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -700 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(35\)\) \* Int64\(20\) AS col0" at position 0 and "coalesce\(Int64\(91\), Int64\(\-42\) \* Int64\(31\) \* CAST\(Int64\(33\) AS Int32\) \- \(\- Int64\(\-40\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 35 * 20 AS col0, + COALESCE ( 91, - 42 * 31 * + CAST ( 33 AS INTEGER ) - - - 40 ) AS col0 +---- +-700 +91 query I rowsort label-2849 SELECT COUNT ( * ) - 48 AS col2 @@ -15058,8 +15248,12 @@ SELECT ALL + MIN ( ALL 2 ) * - 18 * - - 59 AS col1 # Datafusion - Expected - 122604 # Datafusion - Expected - -30 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* Int64\(\-33\) \+ Int64\(44\) / \(\- Int64\(22\)\) \- min\(\(\- coalesce\(Int64\(\-4\), Int64\(70\)\)\)\) \+ max\(\(\- Int64\(\-37\)\)\) \+ Int64\(44\) \* \(\- Int64\(\-38\)\) \* max\(DISTINCT Int64\(74\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(54\) \- Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-12 +-30 +122604 query I rowsort label-2855 SELECT ALL - - 31 * COUNT ( * ) AS col2 @@ -15415,8 +15609,11 @@ SELECT + COUNT ( * ) / ( + 43 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 183330 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \+ sum\(Int64\(\-94\)\) AS col0" at position 0 and "Int64\(\-14\) \* Int64\(\-31\) \- \(\- min\(DISTINCT \(\- \(\- Int64\(\-14\)\)\)\)\) \+ Int64\(42\) \* Int64\(\-67\) \* Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 99 + SUM ( - 94 ) AS col0, - 14 * - 31 - - MIN ( DISTINCT - ( - - 14 ) ) + 42 * - 67 * + - 65 AS col0 +---- +183330 +5 query I rowsort SELECT ALL 13 + 57 AS col2 @@ -15607,14 +15804,20 @@ SELECT + NULLIF ( + 26, MIN ( ALL COALESCE ( 60, COALESCE ( - 1, - - ( ( 84 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \+ Int64\(\-18\) / Int64\(\-54\) \* 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 II valuesort SELECT DISTINCT - 7 + - 18 / - 54 * - 18 AS col0, - 14 AS col0 +---- +-14 +-7 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 390 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-37\)\)\) \+ max\(DISTINCT Int64\(27\)\) AS col1" at position 0 and "Int64\(15\) \* Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - ( - 37 ) + + MAX ( DISTINCT 27 ) AS col1, 15 * 26 AS col1 +---- +-10 +390 query I rowsort label-2960 SELECT ALL - MIN ( + 48 ) + + 76 * + 0 col2 @@ -15624,8 +15827,11 @@ SELECT ALL - MIN ( + 48 ) + + 76 * + 0 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 3 AS col1, + COUNT ( * ) AS col1 +---- +-3 +1 query I rowsort label-2962 SELECT CASE + 80 WHEN - - 45 THEN NULL WHEN + CAST ( - ( + + 64 ) AS INTEGER ) THEN - COALESCE ( ( - 75 ), NULLIF ( - + MAX ( - ( - 86 ) ), - 56 ) * - 79 + NULLIF ( 90, + 12 * - 10 - - 30 ) + - + 6 + + - 28 + 23, - ( - 84 ), + COUNT ( * ) ) * + - 1 WHEN 96 THEN 11 ELSE - - 83 + + 4 - - - 64 END * - CASE - 44 WHEN - + CAST ( NULL AS INTEGER ) THEN NULL WHEN NULLIF ( 8, + - 84 ) + - COUNT ( * ) * - 52 * - 30 * - 55 + + MIN ( 25 ) THEN - + 62 WHEN - CAST ( + 96 AS INTEGER ) - NULLIF ( + AVG ( + 23 ), + 86 * 86 ) THEN - COUNT ( ALL + 24 ) + - 91 * 77 ELSE NULL END AS col2 @@ -16336,14 +16542,20 @@ SELECT ALL CAST ( 47 AS INTEGER ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) AS col0" at position 0 and "Int64\(\-49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 13 col0, - 49 AS col0 +---- +-13 +-49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-31\)\) AS col1" at position 0 and "min\(Int64\(19\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 31 AS col1, + ( MIN ( + 19 ) ) AS col1 +---- +19 +31 query I rowsort SELECT - 38 + 64 AS col2 @@ -16461,8 +16673,11 @@ SELECT 97 * + 21 - 37 # 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 "Int64\(\-67\) / Int64\(\-50\) AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 67 / + - 50 AS col1, + 40 AS col1 +---- +1 +40 query I rowsort label-3125 SELECT + + 80 * 64 - + 75 + + 51 / COUNT ( * ) AS col0 @@ -16599,8 +16814,11 @@ SELECT + 92, - ( + 78 ) * - 88 + COUNT ( * ) + 1 * - 77 + + 67 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(27\) \* Int64\(14\) AS col0" at position 0 and "Int64\(74\) \- Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 27 * 14 col0, + 74 - + + 5 AS col0 +---- +69 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -16717,8 +16935,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( * ) AS col0, + 40 AS col0 +---- +1 +40 query I rowsort label-3174 SELECT ALL + CASE + 53 WHEN - 59 THEN - 58 * 2 - CASE - 86 + + 16 * - 73 WHEN - COALESCE ( 42, 93 ) * 55 THEN + CAST ( NULL AS INTEGER ) * + 12 ELSE NULL END WHEN - 99 THEN NULL END @@ -17475,8 +17696,11 @@ SELECT DISTINCT - 39 * 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 62 AS col2, COUNT ( * ) AS col2 +---- +-62 +1 query I rowsort label-3318 SELECT 96 + + - COUNT ( * ) AS col1 @@ -17694,8 +17918,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col0" at position 0 and "\(\- CASE Int64\(\-97\) WHEN Int64\(68\) \* \(\- count\(DISTINCT nullif\(Int64\(35\), Int64\(\-61\)\)\)\) THEN Int64\(10\) END\) \+ \(\- \(\- Int64\(84\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 56 AS col0, - CASE + - 97 WHEN + 68 * - + COUNT ( DISTINCT NULLIF ( + + 35, - 61 ) ) THEN 10 END + - - ( 84 ) * COUNT ( * ) AS col0 +---- +-56 +NULL query I rowsort label-3359 SELECT DISTINCT COALESCE ( + 30, CASE - 35 WHEN - 53 THEN - 71 END * + 14, + 99 ) - 71 - 60 * - + CAST ( NULL AS INTEGER ) / 69 AS col0 @@ -17736,8 +17963,11 @@ SELECT - + 28 AS col2, + 14 * - NULLIF ( + 3, 89 ) * + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 AS col1, + 16 AS col1 +---- +16 +82 query I rowsort SELECT ALL - + 50 * + 29 AS col2 @@ -17866,8 +18096,11 @@ SELECT + 18 * + - CAST ( - - 53 AS INTEGER ) # 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\(DISTINCT Int64\(40\)\) AS col2" at position 0 and "Int64\(\-40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( DISTINCT + 40 ) AS col2, - 40 AS col2 +---- +-40 +1 query II rowsort label-3391 SELECT ALL 17 * + 91 + + 32 * - + 32 + + SUM ( - 44 ) - - COUNT ( * ) AS col1, + 53 / SUM ( DISTINCT 39 ) @@ -18026,8 +18259,11 @@ SELECT ( - + 47 ) AS 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\(75\) / \(\- Int64\(52\)\) \+ Int64\(\-99\) AS col1" at position 0 and "Int64\(87\) \* Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 75 / - + 52 + - 99 AS col1, 87 * + 0 AS col1 +---- +-100 +0 query I rowsort label-3421 SELECT + 64 + + 90 * - COALESCE ( 31, - COUNT ( * ) + - 21 + - - 84 * + + MAX ( DISTINCT + - 8 ) / COALESCE ( - 28, + - 34, 9 ) * 60 + 48 * - 79, - ( 82 ) ) AS col0 @@ -18318,8 +18554,11 @@ SELECT DISTINCT + COUNT ( * ) + + - 8 - - - 43 * - + COUNT ( * ), - 49 / - - 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 2852 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-46\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(52\)\) \* \(\- \(\- Int64\(\-62\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, - 46 * + + COALESCE ( + COUNT ( * ), 52 ) * - ( - - 62 ) AS col1 +---- +1 +2852 query I rowsort label-3475 SELECT ALL COUNT ( DISTINCT + 8 ) AS col2 @@ -18866,8 +19105,11 @@ 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\(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\. +query II valuesort SELECT - 85 AS col1, COUNT ( * ) * 52 * - + COALESCE ( + COUNT ( * ), - - 44 ) AS col1 +---- +-52 +-85 query II rowsort label-3579 SELECT 80, + COUNT ( * ) AS col0 @@ -18935,8 +19177,11 @@ 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\(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\. +query II valuesort SELECT + 52 + + 88 - + 5 * 69 * - ( + COUNT ( * ) ) AS col1, + 91 AS col1 +---- +485 +91 query II rowsort label-3592 SELECT + - 49, MAX ( 81 ) / + CASE - + 27 WHEN - + MAX ( + 71 ) THEN - 58 + + + CAST ( - 20 AS INTEGER ) * + + ( + COUNT ( DISTINCT + 75 ) ) WHEN - 91 * + COUNT ( * ) + - - COUNT ( - - 15 ) THEN - CASE - COUNT ( * ) WHEN + 82 THEN 77 ELSE NULL END * ( + 67 ) END AS col2 @@ -19194,8 +19439,11 @@ SELECT COALESCE ( - - 90, + ( - 48 ) ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 48 AS col1 +---- +1 +48 query I rowsort SELECT - 53 - - 83 @@ -19360,8 +19608,11 @@ SELECT 80 + + NULLIF ( + 16, - 63 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col0" at position 0 and "Int64\(\-56\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 68 AS col0, - 56 + COUNT ( * ) AS col0 +---- +-55 +68 query I rowsort label-3673 SELECT - 18 * + COUNT ( * ) / COALESCE ( - 95, 47 ) * + - 96 + - ( - + 41 ) @@ -19397,8 +19648,11 @@ SELECT ALL 35 - + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col2" at position 0 and "Int64\(\-63\) / Int64\(8\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 38 AS col2, - 63 / + 8 + - CAST ( NULL AS INTEGER ) AS col2 +---- +-38 +NULL query I rowsort label-3680 SELECT ALL + 45 - - - MIN ( + 50 ) + + 31 + 11 @@ -19682,8 +19936,12 @@ SELECT + NULLIF ( 43, - - 58 ) # Datafusion - Expected - 7360 # Datafusion - Expected - -77 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-80\)\) \* Int64\(92\) AS col0" at position 0 and "Int64\(\-77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - 80 * 92 AS col0, - 77 AS col0, - 90 + 61 +---- +-29 +-77 +7360 query I rowsort SELECT + CASE + ( + 11 ) WHEN + - 82 THEN - 23 END / - 28 + + - 1 @@ -19749,8 +20007,11 @@ SELECT MAX ( DISTINCT - - 21 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\)" at position 0 and "Int64\(88\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 88, + 88 +---- +88 +88 query I rowsort label-3746 SELECT + MAX ( 73 ) @@ -20025,8 +20286,11 @@ SELECT ALL + 10 + - 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "nullif\(\(\- Int64\(66\)\), Int64\(93\) \* Int64\(82\) \* Int64\(76\)\) \- Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 52 - COUNT ( * ) AS col0, ( + NULLIF ( - + 66, 93 * 82 * 76 ) ) - + 23 AS col0 +---- +-53 +-89 query I rowsort SELECT ALL + 30 - - ( + - 68 ) @@ -20112,8 +20376,11 @@ SELECT 19 * 71 + + COUNT ( * ) AS col0, - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col0" at position 0 and "Int64\(\-41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 75 AS col0, - 41 AS col0 +---- +-41 +75 query I rowsort SELECT + 63 * + 16 - + + 50 AS col0 @@ -20454,8 +20721,11 @@ 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\(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\. +query II valuesort SELECT - NULLIF ( 70, - + CASE + 84 WHEN - 86 * 90 THEN - 88 END ) * - 79 + - 48 / - 46 * - COUNT ( * ) + - 68 AS col2, - 13 AS col2 +---- +-13 +5461 query I rowsort label-3881 SELECT - NULLIF ( + + 64, - COUNT ( DISTINCT - CAST ( 50 AS INTEGER ) ) ) + + 51 AS col0 @@ -20525,8 +20795,11 @@ SELECT + 74 * 27 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5293 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \* Int64\(67\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 79 * 67 AS col1, + 94 AS col1 +---- +-5293 +94 query I rowsort SELECT ALL + 23 * 9 + + 12 * + 21 + + - 49 * - 53 @@ -20803,8 +21076,11 @@ SELECT 19 + - ( - 0 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- \(\- nullif\(Int64\(\-90\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-15\)\)\)\) AS col1" at position 0 and "Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - NULLIF ( - 90, + COUNT ( * ) + - 15 ) AS col1, - 5 AS col1 +---- +-5 +NULL query I rowsort label-3948 SELECT - + ( ( - + 38 ) ) / - 21 + 91 @@ -21056,8 +21332,11 @@ SELECT - COUNT ( * ) + - 43 + 34 * 61 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(62\) \+ CAST\(NULL AS Float64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT COUNT ( * ) AS col1, + 62 + + CAST ( NULL AS FLOAT8 ) AS col1 +---- +1 +NULL query I rowsort label-3997 SELECT - 88 + - 3 * - + COUNT ( * ) @@ -21307,8 +21586,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(64\)\) AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - + 64 ) AS col0, 53 AS col0 +---- +-64 +53 query I rowsort label-4045 SELECT DISTINCT + 7 - + NULLIF ( + MAX ( ALL 62 ), - 7 ) + 30 * - + 50 * + - 47 + - + 16 AS col1 @@ -21362,8 +21644,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, - 46 AS col2 +---- +-1 +-46 query I rowsort SELECT 87 - + 71 @@ -21373,8 +21658,11 @@ SELECT 87 - + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 955 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(41\) \+ Int64\(94\) AS col1" at position 0 and "Int64\(94\) \- \(\- \(\- Int64\(\-10\)\)\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 * + 41 + 94 AS col1, + 94 - - ( - - 10 ) + - - CAST ( NULL AS INTEGER ) AS col1 +---- +955 +NULL query I rowsort label-4057 SELECT ALL 17 + + - COUNT ( * ) + 74 * CAST ( + CAST ( - 9 AS INTEGER ) AS INTEGER ) - + 22 col0 @@ -21873,8 +22161,12 @@ SELECT MIN ( DISTINCT + 43 ) * + 67 AS col2 # Datafusion - Expected - 2586 # Datafusion - Expected - -85 # Datafusion - Expected - -144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) \+ Int64\(14\) \- \(\- Int64\(\-32\)\) AS col2" at position 1 and "Int64\(\-91\) \- Int64\(53\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 65 + + 9 - - 23 - 32 * - 79 + - 39 AS col0, - 67 + + + 14 - - - 32 AS col2, - 91 - + 53 AS col2 +---- +-144 +-85 +2586 query I rowsort SELECT 97 + + 27 + CASE + 55 WHEN + 61 + - 20 THEN - 16 END AS col0 @@ -21940,8 +22232,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 595 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(54\)\)\) AS col0" at position 0 and "CASE \(\- max\(CAST\(NULL AS Float64\)\)\) WHEN \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-74\) / Int64\(40\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-58\) \* CAST\(NULL AS Int32\) \+ count\(Int64\(44\)\) \+ Int64\(16\) \* \(\- Int64\(\-42\)\) \* Int64\(8\) \* Int64\(58\) THEN Int64\(24\) \+ Int64\(\-22\) \* \(\- Int64\(31\)\) WHEN Int64\(\-88\) \* Int64\(\-92\) \* Int64\(18\) THEN NULL ELSE \(\- nullif\(\(\- Int64\(\-96\)\), Int64\(93\) \+ CASE \(\- Int64\(\-76\)\) WHEN Int64\(18\) THEN Int64\(\-58\) \* Int64\(31\) WHEN Int64\(35\) THEN NULL END \+ \(\- Int64\(0\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) / Int64\(53\) \+ Int64\(8\) END \* Int64\(85\) \+ Int64\(\-21\) / nullif\(Int64\(46\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(50\) \+ Int64\(\-18\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-54 +595 query I rowsort label-4164 SELECT COUNT ( * ) / - 16 AS col1 @@ -22158,8 +22453,12 @@ SELECT - - 89 * + + 29 * + 72 + + 40 * - ( + 14 ) AS col1 # Datafusion - Expected - -54 # Datafusion - Expected - -12 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(36\)\) \- Int64\(48\) AS col0" at position 1 and "Int64\(\-44\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 53 + - COUNT ( * ) AS col1, MAX ( DISTINCT 36 ) - 48 col0, + - 44 AS col0 +---- +-12 +-44 +-54 query I rowsort SELECT ALL - 51 + - + ( + 79 ) + + 25 @@ -22304,8 +22603,11 @@ SELECT + - 23, + COUNT ( * ) + + 39 - COUNT ( * ) * CAST ( - - 11 AS INTEGER ) c # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 14 AS col0, 95 col0 +---- +-14 +95 query II rowsort label-4233 SELECT COUNT ( * ) col2, 11 @@ -22609,8 +22911,11 @@ SELECT ALL 21 - 45 + 68 - COUNT ( * ) AS col1, - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2920 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(73\)\) \* Int64\(\-40\) AS col1" at position 0 and "Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( DISTINCT + 73 ) * - 40 AS col1, - 33 AS col1 +---- +-2920 +-33 query I rowsort SELECT DISTINCT 0 * + 44 @@ -22974,8 +23279,12 @@ SELECT + + 72, + 34 AS col0 # Datafusion - Expected - 16 # Datafusion - Expected - 8 # Datafusion - Expected - -2167 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 1 and "Int64\(11\) \* Int64\(\-5\) \* Int64\(40\) \+ Int64\(33\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 16, 8 AS col2, + 11 * - 5 * 40 + 33 AS col2 +---- +-2167 +16 +8 query I rowsort label-4358 SELECT + SUM ( DISTINCT - 9 ) * 15 @@ -23239,8 +23548,11 @@ 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 "Int64\(1\) AS col2" at position 0 and "Int64\(3\) \+ \(\- max\(Int64\(92\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 AS col2, 3 + - MAX ( + 92 ) AS col2 +---- +-89 +1 query I rowsort label-4407 SELECT 40 * - + NULLIF ( - 9, 31 + 93 / + ( COUNT ( * ) ) ) @@ -23391,8 +23703,12 @@ SELECT 35 + - 20 # Datafusion - Expected - NULL # Datafusion - Expected - 901 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* Int64\(26\) \+ Int64\(95\) AS col1" at position 1 and "Int64\(\-91\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - CASE ( - + 59 ) WHEN + 80 THEN + NULLIF ( + - 99, 10 - 53 + - 1 ) / 54 WHEN + - 13 + 59 + + - 66 * - - 52 - - - AVG ( DISTINCT - 53 ) - - COUNT ( * ) * 86 THEN NULL END * - COUNT ( * ) * - 80 + - 37 + - ( 51 ) AS col0, 31 * + 26 + + 95 AS col1, + - 91 col1 +---- +-91 +901 +NULL query I rowsort SELECT DISTINCT ( - - 86 ) + - + 70 @@ -23863,8 +24179,11 @@ SELECT DISTINCT CAST ( - 45 AS INTEGER ) * + 97 * 64 * - - CASE COUNT ( * ) WHEN # 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 col1" at position 0 and "Int64\(\-21\) / \(\- Int64\(86\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 95 AS col1, - 21 / - + 86 AS col1 +---- +0 +95 query I rowsort SELECT + - 17 + - 28 AS col1 @@ -24050,8 +24369,11 @@ SELECT COUNT ( * ) + 61 * - 9 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -975 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* Int64\(\-13\) AS col2" at position 0 and "\(\- Int64\(52\)\) \- \(\- \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 * - 13 AS col2, ( - + 52 ) - + - ( - CAST ( - + COUNT ( * ) AS INTEGER ) ) AS col2 +---- +-51 +-975 query I rowsort label-4561 SELECT 81 / - 81 AS col2 @@ -24273,8 +24595,11 @@ 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\(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\. +query II valuesort SELECT ALL - + 79 AS col1, - COALESCE ( - + 98, + - COALESCE ( 2, - 44 + + COUNT ( * ), - + COUNT ( - 13 ) + 82 + + + 11 ) ) - 73 * + 21 AS col1 +---- +-1435 +-79 query I rowsort label-4604 SELECT - 53 * COUNT ( * ) + + 50 + + - 53 AS col1 @@ -24453,8 +24778,11 @@ SELECT + - MAX ( + 92 ) * + - 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1458 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- nullif\(Int64\(\-9\), min\(CAST\(NULL AS Int32\)\)\)\), Int64\(75\)\)\) \* Int64\(6\) \* Int64\(\-27\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(42\) / Int64\(80\) \* \(\- Int64\(83\)\) \+ Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - NULLIF ( - NULLIF ( - 9, + MIN ( CAST ( NULL AS INTEGER ) ) ), 75 ) * + 6 * - 27 * + COUNT ( * ) col1, + 42 / + 80 * - + 83 + + ( - 0 ) AS col1 +---- +0 +1458 query I rowsort SELECT + + 92 * - ( + + 73 ) * - 93 - 70 - 37 * - 22 * 99 AS col1 @@ -24530,8 +24858,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ), ( + - COUNT ( * ) ) +---- +-1 +-1 query I rowsort SELECT ALL + 66 + + - 8 col0 @@ -25228,8 +25559,11 @@ SELECT DISTINCT + - ( + + 25 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2850 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) \* Int64\(75\) AS col1" at position 0 and "Int64\(1\) \+ Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 38 * 75 AS col1, 1 + 21 col1 +---- +-2850 +22 query I rowsort label-4789 SELECT + 25 / 90 - - 10 AS col1 @@ -27250,8 +27584,11 @@ SELECT ALL - + 94 - + 98 * + 60 * - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3371 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \* Int64\(\-62\) \+ \(\- Int64\(\-85\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 53 * - 62 + - - 85 AS col0, COUNT ( * ) AS col0 +---- +1 +3371 query I rowsort label-5176 SELECT DISTINCT + - 65 * - - NULLIF ( COUNT ( ALL - CASE - + 60 WHEN + + 38 THEN 91 ELSE - 37 END ), + 35 + - 20 - + 24 * - 80 * - 55 ) @@ -27465,14 +27802,20 @@ SELECT ALL - - 50 + - - 80 + - 41 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 141 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(93\) \+ \(\- sum\(Int64\(\-48\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - CAST ( NULL AS INTEGER ) AS col0, + 93 + - SUM ( + - 48 ) AS col0 +---- +141 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 172836 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "Int64\(17\) \+ Int64\(19\) \+ \(\- Int64\(\-72\)\) \* Int64\(32\) \* Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 AS col1, 17 + + 19 + - - 72 * + 32 * + + 75 col1 +---- +172836 +22 query I rowsort SELECT - ( 20 ) + + 1 @@ -27548,8 +27891,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * 68 AS col2, 20 * + 47 AS col2 +---- +68 +940 query I rowsort label-5233 SELECT 53 + - COUNT ( * ) AS col1 @@ -27838,14 +28184,21 @@ NULL # Datafusion - Expected - -17 # Datafusion - Expected - -12 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-17\), Int64\(88\) / Int64\(\-51\) \+ Int64\(\-56\) / \(\- \(\- Int64\(66\)\)\)\) AS col1" at position 0 and "nullif\(coalesce\(\(\- Int64\(77\)\), \(\- Int64\(\-90\)\) \* Int64\(11\)\), \(\- Int64\(82\)\)\) \+ Int64\(75\) \+ Int64\(\-10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL NULLIF ( - 17, + 88 / - 51 + - 56 / - - ( 66 ) ) AS col1, NULLIF ( ( + COALESCE ( - + 77, - - 90 * 11 ) ), - ( 82 ) ) + 75 + - 10 AS col1, 36 AS col1 +---- +-12 +-17 +36 # Datafusion - Datafusion expected results: # Datafusion - Expected - -315 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(\-63\) AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 5 * - 63 AS col1, 50 col1 +---- +-315 +50 query I rowsort SELECT ALL NULLIF ( + 85, - 55 ) @@ -28080,8 +28433,11 @@ SELECT DISTINCT - MIN ( DISTINCT 48 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(63\)\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 63 AS col0, + 66 AS col0 +---- +-63 +66 query II rowsort SELECT ALL - 17 AS col1, 48 @@ -28351,8 +28707,11 @@ SELECT DISTINCT CAST ( - ( + 94 ) AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-89\), Int64\(\-27\) \* Int64\(10\) \* \(\- Int64\(6\)\) \- Int64\(\-15\)\) \+ Int64\(75\) \+ \(\- \(\- Int64\(45\)\)\) AS col1" at position 0 and "Int64\(46\) \+ Int64\(\-13\) \+ Int64\(\-24\) \* Int64\(40\) / \(\- Int64\(\-62\)\) \+ Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( + - 89, + - 27 * ( + 10 ) * - + 6 - - 15 ) + 75 + - ( - + 45 ) AS col1, 46 + - 13 + - 24 * 40 / - - 62 + 85 AS col1 +---- +103 +31 query I rowsort label-5384 SELECT - + CAST ( NULL AS INTEGER ) * + - 69 * + + 21 AS col0 @@ -28500,8 +28859,11 @@ SELECT ALL 12 AS col2, 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 14 AS col2, COUNT ( * ) col2 +---- +1 +14 query I rowsort label-5412 SELECT ALL + CAST ( NULL AS INTEGER ) - 82 + + 38 - - + 37 / + 81 AS col0 @@ -28618,8 +28980,12 @@ 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\(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\. +query III valuesort 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 +---- +-28 +-88 +5699 query I rowsort label-5434 SELECT + + COUNT ( * ) / + 2 - 46 + + ( + COUNT ( - 24 ) ) * - CASE + 99 WHEN AVG ( ALL - - 68 ) THEN NULL WHEN 47 THEN 15 - + 93 WHEN 84 THEN 8 + + + 98 + - - 79 ELSE NULL END AS col0 @@ -29076,8 +29442,11 @@ 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\(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\. +query II valuesort SELECT MIN ( ALL 20 ) + COUNT ( * ) - 41 AS col1, COUNT ( + + 58 ) * - 79 + 25 AS col1 +---- +-20 +-54 query I rowsort SELECT 96 * - ( - - 1 ) @@ -29617,8 +29986,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( + - 5 ) AS col0, - COUNT ( * ) * ( + - 14 ) AS col0 +---- +-5 +14 query II rowsort SELECT + - 68 - - + 34 AS col2, 66 @@ -30044,8 +30416,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) + + 91 * + - 35 AS col2, 70 / + COALESCE ( + 97, - 44 * + 23 + - 38 + + 65, + - 47 ) + 54 AS col2 +---- +-3184 +54 query I rowsort label-5705 SELECT ALL 38 / - 73 @@ -30179,8 +30554,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 4176 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(81\)\) \+ Int64\(13\) AS col2" at position 0 and "Int64\(72\) \* Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 81 ) + 13 AS col2, 72 * + 58 AS col2 +---- +-68 +4176 query I rowsort SELECT DISTINCT + 69 * + 17 @@ -30267,8 +30645,11 @@ SELECT COUNT ( * ), - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 71 AS col0, + 40 AS col0 +---- +-71 +40 query I rowsort SELECT ALL + - ( 82 ) @@ -30293,8 +30674,11 @@ SELECT ALL + + 23 / MAX ( ALL 11 ) + + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 98 AS col0, 35 AS col0 +---- +35 +98 query I rowsort label-5752 SELECT ALL 2 * + COUNT ( * ) * - 93 AS col0 @@ -30478,8 +30862,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(99\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 + - ( - 35 ) * 50 AS col0, COUNT ( * ) * - + 99 AS col0 +---- +-99 +1761 query I rowsort label-5786 SELECT DISTINCT - MAX ( DISTINCT + 32 ) AS col0 @@ -30581,8 +30968,11 @@ SELECT ALL + + 43 - + 24 + + 89 * + 89 * + ( 26 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(22\)\) AS Int32\)\) \- Int64\(84\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( - + 22 AS INTEGER ) - 84 AS col0, 82 AS col0 +---- +-62 +82 query I rowsort label-5806 SELECT + ( + 59 ) - 53 / + 2 AS col2 @@ -30842,8 +31232,11 @@ 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 "Int64\(9\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 9 AS col0, 36 AS col0 +---- +36 +9 query II rowsort label-5854 SELECT 70 col0, COUNT ( * ) AS col2 @@ -30950,8 +31343,11 @@ SELECT DISTINCT + - 30 * SUM ( - 40 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-67\)\) \* count\(\(\- Int64\(\-85\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 67 * COUNT ( ALL - - 85 ) AS col1, COUNT ( * ) AS col1 +---- +1 +67 query I rowsort label-5875 SELECT ALL - COUNT ( * ) + + + CASE + - 35 WHEN - - COUNT ( * ) THEN + 50 * 1 END col2 @@ -30986,8 +31382,11 @@ SELECT ALL 69 + - 45 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 18032 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(20\), Int64\(56\)\)\) AS col0" at position 0 and "Int64\(98\) \* Int64\(2\) \* \(\- Int64\(\-92\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - NULLIF ( 20, 56 ) AS col0, + ( 98 ) * + 2 * - - 92 AS col0 +---- +-20 +18032 query I rowsort SELECT ALL + 11 + 98 col0 @@ -31214,8 +31613,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 * - 81 AS col2, ( - COUNT ( * ) ) + 55 AS col2 +---- +-1134 +54 query I rowsort SELECT DISTINCT 90 * - - 32 AS col0 @@ -31353,8 +31755,11 @@ SELECT DISTINCT - 2 * + - 59 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 AS col2, + 26 col2 +---- +26 +55 query I rowsort label-5952 SELECT + 3 / 24 AS col2 @@ -31379,8 +31784,11 @@ SELECT + 67 / + 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-78\) \+ coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(6\) \+ \(\- Int64\(29\)\) \* Int64\(15\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, - 78 + + COALESCE ( COUNT ( * ), + 6 + + - ( + 29 ) * 15 ) AS col2 +---- +-77 +1 query I rowsort SELECT - 55 * - + 52 * - 68 * + 48 AS col1 @@ -31589,8 +31997,12 @@ SELECT ALL ( - CAST ( 38 AS INTEGER ) ) AS col2 # Datafusion - Expected - 1 # Datafusion - Expected - 23 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col0" at position 1 and "Int64\(\-2\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 1, 23 col0, + - 2 AS col0 +---- +-2 +1 +23 query I rowsort label-5997 SELECT ALL - 15 / - CAST ( NULL AS INTEGER ) * 16 * + 91 + + 68 @@ -31697,8 +32109,11 @@ SELECT DISTINCT 40 * 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col2" at position 0 and "Int64\(\-16\) \* min\(\(\- \(\- Int64\(6\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 40 AS col2, + ( + - 16 ) * + MIN ( + - ( - + 6 ) ) AS col2 +---- +-40 +-96 query I rowsort label-6018 SELECT + COALESCE ( 50, 40 * 56 + + 19 + 75 + 46 / NULLIF ( - COUNT ( * ), + + COUNT ( * ) ) + - - 97 ) * - + 24 AS col2 @@ -32020,8 +32435,11 @@ SELECT - ( + - 87 ) + - 52 * + 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col0" at position 0 and "\(\- Int64\(14\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 96 AS col0, - ( 14 ) AS col0 +---- +-14 +-96 query I rowsort label-6080 SELECT + 73 * COUNT ( * ) AS col2 @@ -32415,8 +32833,11 @@ SELECT 63 AS col0, COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -131 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col0" at position 0 and "Int64\(\-73\) \+ Int64\(\-58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 AS col0, + ( + - 73 ) + + - 58 AS col0 +---- +-131 +68 query II rowsort SELECT DISTINCT 99, 8 * 15 * 54 col2 @@ -32711,8 +33132,11 @@ SELECT ALL - ( - 78 ) / - 67 + COALESCE ( - 0, - 56 ) / - 26 * + 66 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2813 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* Int64\(\-27\) \+ CAST\(nullif\(Int64\(61\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(26\)\) \+ Int64\(32\) \+ \(\- \(\- CAST\(Int64\(84\) AS Float64\)\)\) \+ \(\- Int64\(\-58\)\) \* CASE Int64\(\-97\) WHEN Int64\(96\) THEN Int64\(87\) WHEN count\(Int64\(1\)\) AS count\(\*\) / Int64\(93\) THEN \(\- Int64\(\-9\)\) ELSE count\(Int64\(1\)\) AS count\(\*\) END\) AS Int32\) \- Int64\(\-17\) \+ Int64\(\-94\) \* Int64\(\-38\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +20 +2813 query I rowsort label-6214 SELECT ALL + MIN ( - 13 ) @@ -32774,8 +33198,11 @@ SELECT - 49 * - 75 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-48\) / Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col0, - 48 / + 33 AS col0 +---- +-1 +1 query II rowsort SELECT ALL 97 * 89 + 98 AS col2, - 36 + + - 17 @@ -34129,8 +34556,11 @@ SELECT DISTINCT 8 / - - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 28 AS col0, + 7 AS col0 +---- +28 +7 query I rowsort SELECT ALL + ( + 12 ) AS col0 @@ -34508,8 +34938,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 58 - 73 + 35 col2, - COUNT ( * ) + - 79 AS col2 +---- +-80 +20 query I rowsort label-6558 SELECT ALL - 83 / + 37 + + 97 AS col0 @@ -34540,8 +34973,11 @@ SELECT + 37 + - 25 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 35 AS col0, 88 col0 +---- +35 +88 query I rowsort SELECT DISTINCT - ( - 0 ) @@ -34619,8 +35055,11 @@ SELECT ALL - COUNT ( * ) * + - 34 * 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 41 ) AS col0, + 57 AS col0 +---- +41 +57 query I rowsort SELECT DISTINCT - 60 * + 58 + + 99 AS col1 @@ -34857,8 +35296,11 @@ SELECT ALL + 35 - - + 78 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col1" at position 0 and "Int64\(\-74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 75 AS col1, - 74 AS col1 +---- +-74 +-75 query I rowsort label-6625 SELECT 35 * 41 + - + 2 * - COUNT ( * ) AS col0 @@ -34884,8 +35326,12 @@ 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\(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\. +query III valuesort SELECT 71 * + + 4 * + 53 AS col0, NULLIF ( + 43, COUNT ( * ) * - ( - 40 ) ), COUNT ( * ) * + - COUNT ( * ) / + COUNT ( * ) + 18 AS col0 +---- +15052 +17 +43 query I rowsort label-6630 SELECT DISTINCT + 0 * COUNT ( * ) @@ -35247,8 +35693,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - -782 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) \+ Int64\(97\) AS col2" at position 0 and "Int64\(\-34\) \* sum\(DISTINCT Int64\(23\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 14 + 97 AS col2, - 34 * + SUM ( DISTINCT + 23 ) col2 +---- +-782 +83 query I rowsort label-6698 SELECT ALL COALESCE ( - 36, - - 30, COUNT ( * ) - - ( + 83 ) ) AS col1 @@ -35637,8 +36086,11 @@ SELECT ALL - 18 + + 69 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(6\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(14\) \* Int64\(\-26\) \* Int64\(\-2\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) + + 6 * - - CAST ( NULL AS INTEGER ) * 14 * - 26 * - 2 + COUNT ( * ) AS col0, COUNT ( * ) AS col0 +---- +1 +NULL query I rowsort SELECT DISTINCT - 0 + - 72 + + + 2 col2 @@ -36111,8 +36563,11 @@ SELECT ALL + 23 * 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 176 # Datafusion - Expected - -294 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \+ Int64\(96\) AS col2" at position 0 and "Int64\(49\) \* Int64\(\-6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 + 96 col2, 49 * - 6 AS col2 +---- +-294 +176 query I rowsort label-6862 SELECT COUNT ( COALESCE ( + - 48, + - 11 + - 18 ) ) - - 81 + - - ( 13 ) + - - COALESCE ( ( - 53 ), COALESCE ( + 21, - 38 / + - 2 ), + ( 79 ) + 60 * - 24 ) @@ -36211,8 +36666,11 @@ SELECT - CAST ( - 72 AS INTEGER ) * + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -6893 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) AS col1" at position 0 and "\(\- max\(Int64\(\-79\)\)\) \+ Int64\(\-84\) \* Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 1 AS col1, - MAX ( - 79 ) + - 84 * 83 AS col1 +---- +-1 +-6893 query I rowsort SELECT ALL 97 + 71 @@ -36386,8 +36844,11 @@ SELECT + COUNT ( * ) * - 15 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 88 AS col1, + 80 AS col1 +---- +80 +88 query I rowsort label-6913 SELECT ALL 31 * - COUNT ( * ) + + - COUNT ( - - 72 ) AS col0 @@ -37400,8 +37861,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 16 AS col1, - COUNT ( * ) AS col1 +---- +-1 +16 query I rowsort SELECT ALL 7 - - 34 @@ -37528,14 +37992,20 @@ SELECT MAX ( DISTINCT + 49 ) * - 71 * - + COUNT ( * ) / + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \+ Int64\(\-47\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 + - 47 col0, 88 AS col0 +---- +-38 +88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col0" at position 0 and "Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 55 AS col0, 11 AS col0 +---- +11 +55 query I rowsort label-7134 SELECT NULLIF ( 36, - MAX ( 62 ) * - 9 + 54 ) + - 94 AS col1 @@ -37587,8 +38057,11 @@ SELECT ALL CASE WHEN NULL NOT IN ( 71, - COALESCE ( - + ( + 72 ), + 33, + 39 + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 col1, COUNT ( * ) col1 +---- +1 +59 query I rowsort label-7144 SELECT CAST ( NULL AS INTEGER ) * CASE - 8 WHEN AVG ( ALL 92 ) * + 73 + - COUNT ( * ) THEN + COUNT ( * ) END AS col2 @@ -37771,8 +38244,11 @@ SELECT - 42 + - + ( - 63 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) / Int64\(\-54\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 7 / - 54 AS col0, + CAST ( NULL AS INTEGER ) col0 +---- +0 +NULL query I rowsort label-7178 SELECT ALL 12 / 25 * + 23 AS col2 @@ -38079,8 +38555,11 @@ SELECT ALL 94 + + - 45 col0, + 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- Int64\(\-68\)\) AS col1" at position 0 and "Int64\(\-37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) + - - 68 AS col1, - 37 AS col1 +---- +-37 +NULL query I rowsort SELECT ALL - COALESCE ( - 83, + 15 + - 22, 35 * 43 + + - 32 + + ( - + 9 ) * - 93 - 32 ) + + 80 AS col2 @@ -38105,8 +38584,11 @@ SELECT + 13 - + ( + 15 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3470 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ Int64\(79\) \- Int64\(42\) \* Int64\(86\) \+ Int64\(6\) \* Int64\(1\) 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 II valuesort SELECT + 57 + 79 - + ( + 42 ) * + 86 + 6 * 1 AS col2, - COUNT ( ALL - - 72 ) col2 +---- +-1 +-3470 query I rowsort label-7241 SELECT - 66 * - 76 * - ( 41 ) + + 4 - + + 99 + + 22 * - 90 + + 37 / - 98 * COUNT ( * ) AS col2 @@ -38131,8 +38613,11 @@ SELECT + MAX ( + 21 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \+ \(\- Int64\(19\)\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 43 + - + 19 AS col2, 94 AS col2 +---- +24 +94 query I rowsort label-7246 SELECT + COUNT ( * ) + - MAX ( - 98 ) @@ -38162,8 +38647,11 @@ SELECT - SUM ( ALL COALESCE ( 20, + 3 + + 60 ) ) / - + 93 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) / Int64\(76\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / Int64\(1\) \+ Int64\(52\) \+ Int64\(\-16\) / Int64\(\-43\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 52 / + 76 col1, + CAST ( NULL AS INTEGER ) / + 1 + + + 52 + ( + - 16 ) / - 43 * COUNT ( * ) / - 5 AS col1 +---- +0 +NULL query I rowsort label-7252 SELECT ALL COUNT ( * ) * + 91 AS col1 @@ -38278,8 +38766,11 @@ SELECT ALL 11 * - - 65 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 329712 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \* \(\- \(\- nullif\(\(\- Int64\(74\)\), Int64\(83\) \+ \(\- CAST\(Int64\(19\) AS Int32\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-85\)\)\)\) \* Int64\(45\) \+ Int64\(42\) AS col1" at position 0 and "min\(Int64\(87\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 99 * - - NULLIF ( - + 74, + 83 + - + CAST ( 19 AS INTEGER ) / - COUNT ( * ) + - 85 ) * + + 45 + 42 AS col1, MIN ( + 87 ) col1 +---- +329712 +87 query I rowsort label-7273 SELECT ALL - + 25 / + + 15 AS col0 @@ -38556,8 +39047,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) + + 67 AS col0, - SUM ( + 30 ) AS col0 +---- +-30 +68 query I rowsort label-7325 SELECT ALL + 39 + - - COUNT ( * ) * + 66 * COUNT ( * ) * - SUM ( DISTINCT 95 ) * + CAST ( NULL AS INTEGER ) @@ -38835,8 +39329,11 @@ SELECT ALL - COALESCE ( 56, + + 75 * + + 65 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* \(\- Int64\(\-87\)\) \* \(\- CASE Int64\(\-56\) WHEN \(\- Int64\(28\)\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN NULL WHEN \(\- Int64\(\-90\)\) \* Int64\(\-36\) THEN \(\- Int64\(53\)\) \* \(\- Int64\(\-52\)\) \- Int64\(23\) WHEN \(\- Int64\(68\)\) THEN NULL ELSE NULL END\) AS col1" at position 0 and "CASE Int64\(\-29\) WHEN \(\- Int64\(31\)\) \+ Int64\(7\) / Int64\(88\) THEN Int64\(32\) / \(\- Int64\(\-47\)\) \+ Int64\(78\) \+ CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Float64\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +NULL +NULL query I rowsort SELECT - NULLIF ( 97, 0 ) / + + 45 + - 75 + 14 + - 47 * + 11 / - CASE + - 90 WHEN - 58 + - NULLIF ( - 13, + 43 ) THEN 17 END * - 89 AS col0 @@ -39128,8 +39625,11 @@ SELECT 45, + 18 / - + MAX ( DISTINCT 17 ) AS col2 # 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 col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 76 AS col2, + 0 col2 +---- +-76 +0 query I rowsort label-7434 SELECT - COALESCE ( + 33, - COUNT ( + 76 ) + - COUNT ( * ) + - COUNT ( * ) + - 55 * - 6, + 46 ) @@ -39226,8 +39726,11 @@ SELECT ALL + NULLIF ( + + 95, - + 53 ) AS col1, 50 * + - 26 * + + 77 * + - COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 918 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-10\)\) AS col1" at position 0 and "Int64\(18\) \* Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 10 AS col1, 18 * + 51 col1 +---- +10 +918 query I rowsort SELECT ALL - 92 - + 9 + - - 41 AS col0 @@ -39355,8 +39858,11 @@ SELECT - 32 AS col1, COUNT ( * ) + 65 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -504 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* \(\- Int64\(12\)\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 42 * - + 12 AS col1, 13 AS col1 +---- +-504 +13 query I rowsort label-7477 SELECT ALL - 87 + + - COUNT ( * ) AS col0 @@ -39405,8 +39911,11 @@ SELECT ALL + + NULLIF ( + SUM ( ALL 8 ), - NULLIF ( + 11, + 47 ) * - 5 - 58 + + # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 451008 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col2" at position 0 and "Int64\(\-58\) \* Int64\(81\) \* Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 15 AS col2, - 58 * + 81 * - 96 col2 +---- +-15 +451008 query II rowsort label-7486 SELECT + 83, CASE ( 67 ) WHEN + 16 * - 3 + - COUNT ( * ) THEN 63 END AS col0 @@ -39533,8 +40042,11 @@ SELECT ALL - + 12 - + + 55, - ( - + 57 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \+ Int64\(\-36\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- Int64\(90\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 43 + ( - 36 ) AS col0, + CAST ( NULL AS INTEGER ) * - + 90 AS col0 +---- +7 +NULL query I rowsort label-7510 SELECT + 24 * 12 - - 79 + - + 35 * 39 * - 88 * - COUNT ( * ) * + - 32 col0 @@ -39785,8 +40297,11 @@ SELECT ( - - ( - 24 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 27 ) AS col2, 45 AS col2 +---- +27 +45 query I rowsort SELECT ( - + 61 ) AS col1 @@ -39904,8 +40419,11 @@ SELECT ALL + 1 * + + 97 * - + 99 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2565 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* \(\- \(\- Int64\(\-57\)\)\) AS col1" at position 0 and "Int64\(56\) \- Int64\(4\) \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + + 45 ) * - ( - - 57 ) AS col1, 56 - + 4 + + + CAST ( NULL AS INTEGER ) col1 +---- +-2565 +NULL query II rowsort SELECT DISTINCT 10 + 96 + - - 0 * - 93, 78 AS col0 @@ -40315,8 +40833,11 @@ SELECT ALL + COALESCE ( COUNT ( * ), - CAST ( + 3 AS INTEGER ) + 96 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 540 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \* Int64\(\-30\) AS col1" at position 0 and "Int64\(\-14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 18 * - 30 AS col1, - 14 AS col1 +---- +-14 +540 query I rowsort SELECT DISTINCT - 52 * + ( 83 ) AS col1 @@ -40730,8 +41251,11 @@ 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\(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\. +query II valuesort SELECT ALL ( 41 ) + + + 46 * - + COUNT ( * ) * + 52 col2, - 92 AS col2 +---- +-2351 +-92 query I rowsort SELECT ALL 23 * - 54 AS col0 @@ -41404,14 +41928,20 @@ SELECT ALL - 89 * + - 30 * + - COUNT ( * ) - - COUNT ( * ) AS col0, 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1080 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) \* Int64\(36\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 30 * + 36 col1, 0 AS col1 +---- +-1080 +0 # 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\(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\. +query II valuesort SELECT + COUNT ( * ) * - + 99 AS col2, 68 AS col2 +---- +-99 +68 query I rowsort SELECT + 95 + 94 @@ -41437,8 +41967,11 @@ SELECT + 89 / - 77 * - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -409 # Datafusion - Expected - 224 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(\-9\) \+ Int64\(\-67\) AS col2" at position 0 and "Int64\(63\) \* Int64\(28\) / Int64\(12\) \+ Int64\(40\) \+ Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( 38 ) * - 9 + - 67 col2, ( 63 ) * ( + + 28 ) / 12 + + 40 + + 37 col2 +---- +-409 +224 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -42593,8 +43126,11 @@ SELECT 77, ( 62 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 AS col1, ( + 61 ) AS col1 +---- +61 +64 query II rowsort label-8094 SELECT 34 AS col2, MAX ( ALL - 86 ) AS col0 @@ -42838,8 +43374,11 @@ SELECT ALL - 40 * 67 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(8\), \(\- Int64\(1\)\) \- \(\- Int64\(28\)\)\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL NULLIF ( + 8, - + 1 - - ( 28 ) ) AS col2, + 23 AS col2 +---- +23 +8 query I rowsort SELECT DISTINCT 77 * + 72 AS col0 @@ -43709,8 +44248,11 @@ SELECT 16, 10 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 29 AS col1, + 97 AS col1 +---- +-29 +97 query I rowsort label-8305 SELECT + + 22 + COUNT ( * ) AS col0 @@ -43751,8 +44293,11 @@ SELECT ALL NULLIF ( 3, - - 92 ) + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, 15 AS col1 +---- +1 +15 query II rowsort SELECT - - 32 AS col2, - 18 @@ -43882,8 +44427,11 @@ SELECT ALL ( 62 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4113 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(93\), Int64\(31\) \+ Int64\(46\)\) \+ \(\- Int64\(67\)\) \* \(\- max\(Int64\(60\)\)\) AS col1" at position 0 and "Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT NULLIF ( ( 93 ), 31 + + 46 ) + - + 67 * - MAX ( 60 ) AS col1, - 27 AS col1 +---- +-27 +4113 query I rowsort label-8338 SELECT ALL CAST ( - NULLIF ( MIN ( + 8 ), 38 * - 47 + - + 62 * COALESCE ( + - ( 35 ), 44 ) + ( + COALESCE ( 20, - 11 + 97 * - 2, 86 ) ) * 63 - - ( 79 ) * + COUNT ( * ) ) AS INTEGER ) AS col0 @@ -43950,8 +44498,11 @@ 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\(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\. +query II valuesort SELECT 68 AS col2, - CASE - 28 WHEN COUNT ( * ) * - COUNT ( * ) THEN NULL WHEN + 56 THEN - - 36 ELSE NULL END AS col2 +---- +68 +NULL query I rowsort label-8351 SELECT ALL COUNT ( * ) + + 57 @@ -43997,8 +44548,11 @@ SELECT + 51, + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - -756 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col2" at position 0 and "Int64\(12\) \* Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 83 col2, 12 * - 63 AS col2 +---- +-756 +-83 query I rowsort label-8360 SELECT 61 * - 84 * + 47 + - - 51 + 46 + - 38 / - 18 @@ -44013,8 +44567,11 @@ SELECT - 84 * + - 59 + - 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col1" at position 0 and "Int64\(19\) / Int64\(15\) \+ Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 77 AS col1, + 19 / 15 + - 6 AS col1 +---- +-5 +-77 query I rowsort SELECT 18 + + 21 AS col0 @@ -44067,8 +44624,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - -150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "\(\- CAST\(Int64\(75\) AS Int32\)\) \* \(\- Int64\(\-2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 53 AS col2, - CAST ( + + 75 AS INTEGER ) * - - 2 AS col2 +---- +-150 +53 query I rowsort label-8373 SELECT ALL CASE + + 79 WHEN - - 35 THEN 14 WHEN 59 - + 35 THEN - 4 * - - 15 / ( CAST ( NULL AS INTEGER ) ) END + + 4 AS col1 @@ -44249,8 +44809,11 @@ SELECT + 55 * - 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 151 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \- \(\- 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 II valuesort SELECT + 59 - - + 92 col0, 0 col0 +---- +0 +151 query I rowsort label-8408 SELECT ALL + - CASE COALESCE ( + COUNT ( * ), - + 98 + + 44 + 11 * + COUNT ( * ) + - AVG ( ALL + 50 ) * - 43 ) WHEN + MIN ( DISTINCT - 87 ) + + 52 * - - CAST ( 10 AS FLOAT8 ) THEN ( - COUNT ( * ) ) * 74 + + CASE 44 + - 32 * + COALESCE ( 94, 21 ) WHEN - COUNT ( * ) THEN ( 3 ) * + 27 ELSE NULL END END @@ -44753,8 +45316,11 @@ SELECT ALL - 43 * + - 27 - + 64 AS col2, - 48 * + + MAX ( DISTINCT - + 15 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(\-63\)\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + SUM ( DISTINCT - 63 ) col1, + 67 AS col1 +---- +-63 +67 query I rowsort label-8503 SELECT - 58 * + 52 * 66 * - 55 + - 15 + - 47 * - SUM ( DISTINCT - 53 ) AS col0 @@ -44784,8 +45350,11 @@ SELECT ( 39 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \* CASE Int64\(\-66\) WHEN Int64\(\-8\) \* Int64\(\-66\) / Int64\(30\) \* \(\- \(\- Int64\(96\)\)\) \* Int64\(\-31\) THEN \(\- Int64\(\-28\)\) END \+ \(\- nullif\(Int64\(14\), \(\- Int64\(\-94\)\) \+ Int64\(14\)\)\) AS col0" at position 0 and "Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 74 * CASE - 66 WHEN + - 8 * - 66 / + 30 * - - ( + + 96 ) * - 31 THEN - - 28 END + + - NULLIF ( 14, + - ( + - 94 ) + + 14 ) AS col0, ( + - 51 ) AS col0 +---- +-51 +NULL query I rowsort SELECT - - 30 * + 14 @@ -44816,8 +45385,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT CASE - 79 WHEN + - COUNT ( * ) THEN NULL WHEN + 88 THEN 95 ELSE - COUNT ( * ) END AS col1, 20 + + 44 AS col1 +---- +-1 +64 query I rowsort label-8515 SELECT ALL - ( + - 43 ) + - 94 * + - COUNT ( * ) AS col2 @@ -44920,8 +45492,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, + 19 AS col2 +---- +1 +19 query I rowsort SELECT ALL + + 18 col1 @@ -45238,8 +45813,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\)\) / Int64\(32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT - + AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) / 32 AS col0, COUNT ( * ) AS col0 +---- +1 +NULL query I rowsort label-8596 SELECT 13 / + + 14 @@ -45373,8 +45951,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 63 AS col1, - COUNT ( * ) col1 +---- +-1 +63 query I rowsort label-8621 SELECT + ( - 89 ) * - COUNT ( * ) @@ -45484,8 +46065,11 @@ SELECT 61 * 76 + + 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 61 AS col0, 88 AS col0 +---- +61 +88 query I rowsort label-8643 SELECT + 54 / + - 30 + + + 83 * + - COUNT ( * ) * COALESCE ( + + 94, - CASE 41 WHEN + NULLIF ( + + ( + 5 ), SUM ( ALL + 83 ) ) * + 22 * 36 - 85 THEN + - 37 END, + + 26 ) * + - 57 AS col0 @@ -46765,8 +47349,12 @@ SELECT ALL - COUNT ( * ) / + - 47 - + + 85 + + COALESCE ( - 95, CAST ( 96 AS INT # Datafusion - Expected - 94 # Datafusion - Expected - 82 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ Int64\(24\) AS col2" at position 1 and "Int64\(\-89\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 25 / + 61 * + + MIN ( - 66 ) + - COALESCE ( - + 94, 88 * + COUNT ( * ) + - COUNT ( * ) ) AS col0, ( + + 58 ) + + 24 AS col2, - 89 col2 +---- +-89 +82 +94 query II rowsort label-8886 SELECT DISTINCT + 21 / 65 AS col1, + 94 @@ -47030,8 +47618,11 @@ SELECT - 16 * - - MIN ( DISTINCT - + 55 ) + + 19 - ( - 11 ) * - 33 - - 67 * - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col0" at position 0 and "Int64\(\-72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 75 AS col0, ( - 72 ) AS col0 +---- +-72 +-75 query I rowsort label-8936 SELECT 74 * COUNT ( * ) + 59 AS col1 @@ -47073,8 +47664,11 @@ SELECT ALL ( - 14 ) + + ( - - 29 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "Int64\(56\) \+ Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 AS col0, + 56 + 60 col0 +---- +116 +76 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -47160,8 +47754,11 @@ SELECT + NULLIF ( + 92, 1 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 1025 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col2" at position 0 and "Int64\(25\) \* Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 47 AS col2, 25 * 41 AS col2 +---- +-47 +1025 query I rowsort label-8960 SELECT - - MAX ( + 37 ) @@ -47408,8 +48005,11 @@ 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\(1\)\) AS count\(\*\)\), Int64\(\-17\)\) \* Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( ALL + 56 ) AS col2, + COALESCE ( 36, + - COUNT ( * ), - 17 ) * + 43 AS col2 +---- +1548 +56 query I rowsort SELECT - CASE - + 43 WHEN 35 - + 76 THEN - + 78 END @@ -47931,8 +48531,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(11\) \+ \(\- Int64\(\-62\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col2, 11 + - - 62 AS col2 +---- +1 +73 query I rowsort label-9106 SELECT ALL 85 / + + 21 AS col2 @@ -48130,8 +48733,11 @@ SELECT + COALESCE ( 52, - + 47 / - - 26 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "CAST\(NULL AS Float64\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL + 15 AS col0, + CAST ( NULL AS FLOAT8 ) + + COUNT ( * ) AS col0 +---- +15 +NULL query I rowsort SELECT + + 3 * 55 col2 @@ -48306,8 +48912,11 @@ NULL # 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 56 + + 87 / - - COUNT ( * ) AS col0, 22 col0 +---- +143 +22 query I rowsort SELECT DISTINCT - 69 * - + 20 * 46 @@ -48678,8 +49287,11 @@ SELECT DISTINCT - 81 + 32 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col1" at position 0 and "Int64\(87\) \+ \(\- sum\(DISTINCT Int64\(98\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 AS col1, 87 + - SUM ( DISTINCT + 98 ) col1 +---- +-11 +37 query I rowsort SELECT ALL + 9 + - - 38 + - 54 * 84 @@ -48734,8 +49346,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 78 AS col0, - ( SUM ( ALL 62 ) ) * - COUNT ( * ) + + 14 AS col0 +---- +76 +78 query I rowsort label-9259 SELECT ( NULLIF ( + COUNT ( * ), + 12 ) ) AS col2 @@ -48760,8 +49375,11 @@ 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\)\) 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\. +query II valuesort SELECT ALL + + NULLIF ( + 62, - + 17 + + COUNT ( * ) + 1 * + ( COUNT ( * ) ) * - - 56 / ( COUNT ( * ) ) ) AS col2, - 70 col2 +---- +-70 +62 query I rowsort SELECT - 14 * - 38 - + 76 @@ -48792,8 +49410,11 @@ SELECT - 0 * + + 82 + + 51 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -140 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(88\), Int64\(49\)\)\) \- Int64\(52\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( 88, + 49 ) - 52 AS col2, 66 AS col2 +---- +-140 +66 query I rowsort SELECT ALL + 66 * 30 AS col2 @@ -48940,8 +49561,11 @@ SELECT - 26 + 85 * - 30 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\(82\) \+ coalesce\(Int64\(\-64\), Int64\(33\)\) AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 + + + COALESCE ( - 64, 33 ) AS col0, + 54 AS col0 +---- +18 +54 query I rowsort SELECT - 9 + 83 @@ -49121,8 +49745,12 @@ 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\(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\. +query III valuesort SELECT ALL COUNT ( * ) + - 68 AS col2, 45 AS col2, - - 89 +---- +-67 +45 +89 query II rowsort SELECT 65 * - + 12 AS col1, 92 @@ -49563,8 +50191,11 @@ SELECT - - 57 * + 47 + + 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 82 AS col1, 39 AS col1 +---- +39 +82 query I rowsort SELECT 58 + - 39 + 97 - - + ( + 20 ) AS col1 @@ -49716,8 +50347,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(\-42\) \* \(\- Int64\(\-32\)\) \- Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 78 AS col2, 6 + - - 80 + + COUNT ( * ) - - 42 * - + ( - 32 ) - + 89 AS col2 +---- +-78 +1342 query I rowsort label-9445 SELECT ALL CASE ( + 81 ) WHEN + - 54 THEN - CASE + AVG ( ALL + 79 ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + - 77 + 89 * + COUNT ( ALL - 18 ) / + + ( CAST ( + - 74 AS INTEGER ) ) + - 28 THEN NULL ELSE + 66 * + COALESCE ( - 91, 27 * + 15 + - 95, - 66 ) END * + + 69 * + 87 WHEN 75 THEN + 96 * MAX ( DISTINCT - + 21 ) ELSE NULL END + - 15 + - 76 @@ -49836,8 +50470,12 @@ SELECT DISTINCT + COUNT ( * ) + - + 51 - + 87 + - 82 AS col2 # Datafusion - Expected - 0 # Datafusion - Expected - 97 # Datafusion - Expected - -55430 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) / Int64\(95\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 58 / 95 AS col1, + 97 AS col1, - - 54 * 32 * - 32 + - 63 + COUNT ( * ) + - + 65 + - 7 AS col0 +---- +-55430 +0 +97 query I rowsort label-9468 SELECT DISTINCT - COUNT ( * ) + - 16 / 27 @@ -51613,8 +52251,11 @@ SELECT DISTINCT COALESCE ( - + 66, - + 32 ) * + MIN ( - + 91 ) * + 85 * 5 - 78 A # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - -525 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ Int64\(\-70\) AS col0" at position 0 and "Int64\(\-35\) \* Int64\(15\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 48 + + - 70 AS col0, - 35 * + 15 * + + COUNT ( * ) AS col0 +---- +-22 +-525 query I rowsort label-9808 SELECT ALL - 64 / - 20 + - - COUNT ( * ) col0 @@ -52123,8 +52764,11 @@ SELECT ALL 20 * NULLIF ( 42, + ( - CAST ( NULL AS INTEGER ) ) / + + 86 ) + COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 1778710 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "Int64\(29\) \* Int64\(17\) \* Int64\(82\) \* Int64\(44\) \- Int64\(56\) \+ \(\- Int64\(\-56\)\) \+ Int64\(\-34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 60 AS col1, 29 * + + 17 * ( 82 ) * 44 - + + 56 + - - 56 + - 34 AS col1 +---- +1778710 +60 query I rowsort SELECT DISTINCT - + 95 * 97 col2 @@ -52167,8 +52811,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- Int64\(79\)\) WHEN Int64\(11\) THEN \(\- min\(\(\- Int64\(7\)\)\)\) \+ \(\- CAST\(NULL AS Int32\)\) END AS col2" at position 0 and "count\(DISTINCT Int64\(\-85\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CASE + ( - + 79 ) WHEN 11 THEN + - MIN ( ALL - + 7 ) + - CAST ( NULL AS INTEGER ) END AS col2, + COUNT ( DISTINCT - 85 ) AS col2 +---- +1 +NULL query I rowsort label-9911 SELECT - CASE + COUNT ( * ) WHEN - 41 THEN 2 * - 27 + + 4 WHEN - 84 THEN NULL END * + 50 @@ -52402,8 +53049,11 @@ SELECT 15 + - 35 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "Int64\(1\) \* Int64\(40\) \+ Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 33 col1, 1 * 40 + + 92 AS col1 +---- +132 +33 query I rowsort label-9957 SELECT ALL + COALESCE ( MAX ( ALL - + 24 ), 0 * 58 / + 42 ) / + 80 AS col2 diff --git a/data/sqlite/random/expr/slt_good_67.slt b/data/sqlite/random/expr/slt_good_67.slt index 7366cf6..ba8ed23 100644 --- a/data/sqlite/random/expr/slt_good_67.slt +++ b/data/sqlite/random/expr/slt_good_67.slt @@ -387,8 +387,11 @@ SELECT COUNT ( * ) AS col0, 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 84 AS col2, + COUNT ( * ) AS col2 +---- +1 +84 query I rowsort SELECT - 90 * - 68 @@ -904,8 +907,11 @@ SELECT 19 AS col0, 61 + COUNT ( * ) + - + 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col2" at position 0 and "Int64\(9\) \+ Int64\(\-92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 AS col2, 9 + - 92 col2 +---- +-70 +-83 query I rowsort label-165 SELECT + 76 + - 86 / + + 11 @@ -1095,8 +1101,11 @@ SELECT DISTINCT + 76 * - - 78 + + + COUNT ( * ) + 0 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \- Int64\(\-63\) AS col2" at position 0 and "Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 7 - - 63 AS col2, ( + - 72 ) AS col2 +---- +-72 +56 query I rowsort label-201 SELECT SUM ( + 35 ) AS col2 @@ -1121,8 +1130,11 @@ SELECT ALL + ( - - COUNT ( * ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2310 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* \(\- coalesce\(\(\- Int64\(\-55\)\), Int64\(\-30\), Int64\(\-56\)\)\) AS col2" at position 0 and "Int64\(\-77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 42 * - COALESCE ( - - 55, + - 30, - 56 ) col2, - 77 col2 +---- +-2310 +-77 query I rowsort label-206 SELECT ALL - COUNT ( * ) - + COUNT ( * ) AS col2 @@ -1282,8 +1294,11 @@ SELECT + 17 / 67 AS col1 # 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 "Int64\(6\) AS col2" at position 0 and "Int64\(\-69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 6 AS col2, - 69 AS col2 +---- +-69 +6 query I rowsort SELECT 95 * - - 33 @@ -1344,8 +1359,11 @@ 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\(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\. +query II valuesort SELECT + 67 * + 64 AS col0, COUNT ( * ) - COUNT ( * ) * COUNT ( ALL - - 39 ) * - 87 + + 37 AS col0 +---- +125 +4288 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -1832,8 +1850,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5487 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* Int64\(\-93\) AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 * + - 93 AS col1, 3 AS col1 +---- +-5487 +3 query I rowsort SELECT ALL 80 * - ( - 65 ) @@ -1950,8 +1971,11 @@ SELECT ALL - 54 * - 28 + - 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, - COUNT ( * ) * 80 AS col0 +---- +-80 +1 query I rowsort label-361 SELECT COUNT ( + + 2 ) AS col2 @@ -2256,8 +2280,11 @@ SELECT DISTINCT 74 * + 2 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 91 AS col1, COUNT ( * ) AS col1 +---- +-91 +1 query I rowsort label-420 SELECT ALL 21 * + COUNT ( * ) @@ -2440,8 +2467,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col0" at position 0 and "Int64\(\-81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 42 col0, - 81 AS col0 +---- +-42 +-81 query I rowsort label-455 SELECT MIN ( DISTINCT 29 ) @@ -2725,8 +2755,12 @@ SELECT + + 0 * 99 # Datafusion - Expected - -6110 # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* Int64\(\-65\) AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + + 94 * - 65 AS col1, + 3 AS col1, + - 21 * 47 + + 62 + CAST ( NULL AS INTEGER ) - + 11 +---- +-6110 +3 +NULL query I rowsort label-508 SELECT DISTINCT + 61 * ( SUM ( + ( + 52 ) ) ) AS col0 @@ -2826,8 +2860,11 @@ SELECT - 62 + + 60 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4 AS col2, - 13 AS col2 +---- +-13 +4 query I rowsort label-527 SELECT - 38 + 43 * + SUM ( DISTINCT + ( - 47 ) ) @@ -2853,8 +2890,11 @@ SELECT DISTINCT + ( - 54 ) / - COUNT ( * ) + - 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CASE Int64\(2\) WHEN \(\- \(\- Int64\(46\)\)\) THEN \(\- Int64\(\-13\)\) ELSE NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, CASE 2 WHEN - - ( 46 ) THEN - - 13 ELSE NULL END AS col1 +---- +1 +NULL query I rowsort label-532 SELECT DISTINCT COUNT ( DISTINCT + 91 ) / + 89 + 42 @@ -3884,8 +3924,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(28\) \* Int64\(\-9\) \+ Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( ALL + + 20 ) / + 40 * + - 13 AS col0, 31 + - COUNT ( * ) * + 28 * - 9 + + 30 AS col0 +---- +0 +313 query II rowsort label-730 SELECT ALL COUNT ( * ) + - - 39 AS col2, - 8 AS col0 @@ -4057,8 +4100,11 @@ SELECT ALL + COUNT ( * ) * 2 + - 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - -103778 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \- Int64\(\-59\) \- Int64\(\-76\) \* Int64\(35\) \* \(\- Int64\(39\)\) AS col2" at position 0 and "Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 97 - - 59 - - 76 * + + 35 * - + 39 AS col2, - 30 AS col2 +---- +-103778 +-30 query I rowsort label-763 SELECT DISTINCT + 80 * 54 + COUNT ( * ) @@ -4881,8 +4927,11 @@ SELECT - 63 * - + 88 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) \+ Int64\(84\) AS col1" at position 0 and "Int64\(\-63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 67 + + + 84 AS col1, - 63 AS col1 +---- +-63 +17 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -5532,8 +5581,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col1" at position 0 and "Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 24 AS col1, 89 AS col1 +---- +-24 +89 query II rowsort SELECT ALL - + 87 AS col0, + 30 AS col1 @@ -5709,8 +5761,11 @@ SELECT DISTINCT + 32 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 146 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "Int64\(95\) \- Int64\(\-51\) \+ \(\- coalesce\(Int64\(0\), Int64\(\-7\) \+ Int64\(\-52\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 39 AS col1, 95 - - 51 + - + COALESCE ( + 0, - 7 + - 52 ) col1 +---- +146 +39 query I rowsort SELECT + 96 * - 22 AS col1 @@ -5834,8 +5889,11 @@ SELECT - - 19 - ( - ( + 69 ) ) * + 6, - COALESCE ( - 67, + - COUNT ( * ) + - + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 AS col0, + 66 AS col0 +---- +66 +77 query I rowsort label-1099 SELECT - CAST ( NULL AS INTEGER ) + 89 AS col0 @@ -5909,8 +5967,11 @@ SELECT DISTINCT 22 AS col2, + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(43\) \- Int64\(\-59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, 43 - - 59 AS col1 +---- +102 +NULL query I rowsort label-1113 SELECT ALL - + COALESCE ( - 62, + 60, 64 * - + CAST ( - + 39 AS INTEGER ) * + 67 + 62, - ( 61 ) * - 15 / - - 4 * - - 80 * 14 + 69 + + ( - 11 ) + 49 * - 27 + + 37 * - - 32 ) * - 61 + COUNT ( * ) + 73 col0 @@ -6047,8 +6108,11 @@ SELECT DISTINCT - 84 / - 21 + NULLIF ( - 64, - - ( + 70 ) ) * + 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 21 AS col1, + CAST ( NULL AS INTEGER ) AS col1 +---- +21 +NULL query I rowsort label-1139 SELECT - COUNT ( * ) + + + 34 - + 10 * + 94 @@ -6545,8 +6609,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL ( + CAST ( NULL AS FLOAT8 ) ) AS col1, - 43 * - COUNT ( * ) AS col1 +---- +43 +NULL query I rowsort label-1234 SELECT - 15 / - NULLIF ( - 22, + - CAST ( NULL AS INTEGER ) ) col1 @@ -6624,8 +6691,11 @@ SELECT ALL + 5 AS col1, + COALESCE ( - 25, - 49 * 10 + - + 83 ) # 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 "Int64\(82\) / \(\- Int64\(15\)\) \- Int64\(32\) AS col1" at position 0 and "Int64\(\-39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 82 / - + 15 - 32 AS col1, - 39 AS col1 +---- +-37 +-39 query I rowsort SELECT ALL 41 * 12 @@ -7154,8 +7224,11 @@ SELECT + COUNT ( DISTINCT + 74 ) - - 59 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -2242 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "Int64\(59\) \* \(\- Int64\(38\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 90 AS col2, 59 * - + 38 AS col2 +---- +-2242 +90 query I rowsort label-1354 SELECT - 2 * 50 / - - ( + COUNT ( * ) ) @@ -7284,8 +7357,11 @@ SELECT + + 42 + COUNT ( * ) + - 64 * - MIN ( DISTINCT 58 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col2" at position 0 and "count\(DISTINCT Int64\(\-93\)\) \+ Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 19 AS col2, COUNT ( DISTINCT - 93 ) + 23 AS col2 +---- +-19 +24 query II rowsort label-1379 SELECT 65, 26 + MIN ( ALL 75 ) - - COUNT ( * ) AS col2 @@ -7309,8 +7385,11 @@ SELECT - ( - + ( + + 68 ) ) + - 60 / - 49 AS col0 # 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 col0" at position 0 and "min\(DISTINCT Int64\(39\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 38 AS col0, + MIN ( DISTINCT ( + 39 ) ) AS col0 +---- +38 +39 query I rowsort label-1383 SELECT - 85 * + + CASE - 61 WHEN + 81 THEN - 43 ELSE - ( + 61 ) * + COALESCE ( 67, - 83, + 15 * - COUNT ( DISTINCT - 46 ) - 41 ) END + - 28 * + 14 @@ -7493,8 +7572,11 @@ SELECT ALL - 40 + - CASE - 0 WHEN 55 THEN 6 ELSE COUNT ( * ) * 14 END AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \+ Int64\(\-28\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 82 + - 28 AS col1, 13 AS col1 +---- +13 +54 query I rowsort label-1419 SELECT - ( - + CAST ( - 63 AS INTEGER ) ) col1 @@ -8182,8 +8264,11 @@ SELECT 59 - + - 10 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "\(\- count\(Int64\(\-53\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 62 AS col2, - COUNT ( - 53 ) AS col2 +---- +-1 +62 query I rowsort label-1549 SELECT ALL - 35 / - 20 AS col1 @@ -8636,8 +8721,11 @@ SELECT ALL + 38 * + - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "Int64\(\-41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 AS col0, - 41 col0 +---- +-41 +8 query I rowsort SELECT ALL - 65 * + 90 AS col2 @@ -8824,8 +8912,11 @@ SELECT 88 * 43 + + 47 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "Int64\(44\) \+ Int64\(22\) / Int64\(\-7\) \+ Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 6 AS col2, 44 + + 22 / - 7 + + + 31 AS col2 +---- +6 +72 query II rowsort label-1672 SELECT ALL + - 54 * 16, ( - 9 ) - - + COUNT ( * ) + SUM ( - 98 ) AS col0 @@ -8924,8 +9015,11 @@ SELECT ALL - + 89 + - 40 + - COUNT ( * ) * + - 18 + 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(34\)\)\) AS col1" at position 0 and "Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - MAX ( DISTINCT + 34 ) col1, + 18 AS col1 +---- +-34 +18 query I rowsort SELECT DISTINCT 72 * - 0 @@ -8986,8 +9080,11 @@ 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\(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\. +query IR valuesort SELECT 72 - - + 36 + - COUNT ( * ) + 47 * + 47 * + 69 col1, - 13 / CAST ( NULL AS FLOAT8 ) AS col1 +---- +152528 +NULL query I rowsort SELECT 79 * - 53 col0 @@ -9034,8 +9131,11 @@ SELECT ALL 41 AS col0, ( - + SUM ( ALL - - 40 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col1" at position 0 and "min\(\(\- Int64\(45\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 42 AS col1, + MIN ( ALL + ( - + 45 ) ) AS col1 +---- +-42 +-45 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -9090,8 +9190,11 @@ SELECT ALL - 3 * 2 - + 5 * + - 0 + - 17 + - 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "Int64\(\-44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 AS col2, - 44 AS col2 +---- +-44 +86 query I rowsort label-1721 SELECT - + COUNT ( * ) * 69 + - 74 @@ -9251,8 +9354,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 71 - - COUNT ( * ) AS col2, CASE - 75 WHEN 53 THEN NULL WHEN - ( - 61 ) - + 68 THEN - - 15 END col2 +---- +72 +NULL query I rowsort SELECT + 19 + 48 + 96 AS col2 @@ -9282,8 +9388,11 @@ 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\(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\. +query II valuesort SELECT + 14 / + 82 + + COUNT ( * ) * - 38 + 33 * + COUNT ( * ) + + MIN ( - + 77 ) - - ( + 80 ) * - - 85 * - + 36 AS col2, + 3 * - + 91 AS col2 +---- +-244882 +-273 query I rowsort SELECT - 60 * + + 67 - 18 - + + 27 AS col0 @@ -10358,8 +10467,11 @@ SELECT ALL + 78 * + 37 * + 76 * - - COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2556 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(Int64\(16\) AS Int32\) AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(0\) \+ \(\- Int64\(85\)\) \+ Int64\(64\) \* Int64\(41\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-13\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( + CAST ( + + 16 AS INTEGER ) AS INTEGER ) + COUNT ( * ) + - 0 + - + 85 + 64 * + 41 AS col1, - CAST ( - 13 AS INTEGER ) AS col1 +---- +13 +2556 query I rowsort SELECT DISTINCT - 67 - 7 col0 @@ -10488,8 +10600,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 3182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* Int64\(\-3\) / Int64\(72\) AS col2" at position 0 and "Int64\(57\) \* Int64\(58\) \+ Int64\(\-36\) \+ \(\- Int64\(88\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 45 * ( - 3 ) / + 72 AS col2, ( 57 ) * 58 + - 36 + - + 88 AS col2 +---- +-1 +3182 query I rowsort SELECT ALL 10 * - 89 * - 65 - + + 67 @@ -10504,8 +10619,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(41\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(79\) \* Int64\(89\) \* Int64\(90\) \* Int64\(\-92\) \+ Int64\(82\) \+ \(\- CAST\(NULL AS Int32\)\) \- Int64\(\-91\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 91 col2, COUNT ( * ) + 41 - COUNT ( * ) * + + 79 * 89 * + 90 * - 92 + + 82 + - + CAST ( NULL AS INTEGER ) - - 91 - + COUNT ( * ) * 79 AS col2 +---- +-91 +NULL query I rowsort label-1991 SELECT + - 32 * ( + - 88 ) * + COUNT ( * ) + CAST ( NULL AS INTEGER ) + 9 * - + 60 + - 34 / - ( - - COUNT ( * ) ) AS col0 @@ -11471,8 +11589,11 @@ SELECT ALL - - COALESCE ( 3, - 90 - + 33, - 77 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1785 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* Int64\(35\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 * + + 35 AS col2, 97 col2 +---- +1785 +97 query I rowsort SELECT ALL - 78 * + 71 * - 2 AS col2 @@ -11687,8 +11808,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 AS col1, + MIN ( + 4 ) + - + COUNT ( * ) - - + COUNT ( * ) AS col1 +---- +4 +99 query I rowsort SELECT ( 2 ) * - ( - 3 ) + 90 AS col1 @@ -12001,8 +12125,11 @@ SELECT DISTINCT - 68 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 1500 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "Int64\(25\) \* Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 25 ) AS col1, + 25 * + 60 col1 +---- +1500 +25 query I rowsort SELECT + - 29 * - - 98 * + 94 AS col0 @@ -12044,8 +12171,11 @@ SELECT DISTINCT + 39 * 87 * + 77 AS col0, NULLIF ( - - 62, - COUNT ( * ) ) * - 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Float64\) AS Int32\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( CAST ( COUNT ( * ) AS FLOAT8 ) AS INTEGER ) col2, 28 AS col2 +---- +1 +28 query I rowsort SELECT + 11 * + 94 + + 39 @@ -12983,8 +13113,11 @@ SELECT ALL - 73 AS col0, + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 88 AS col2, COUNT ( * ) AS col2 +---- +-88 +1 query I rowsort SELECT 9 * + 64 * + 28 * 96 + + 78 AS col0 @@ -13084,8 +13217,11 @@ SELECT 74, 15 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 96 AS col1, 38 col1 +---- +38 +96 query I rowsort SELECT ALL - 14 + + - 36 @@ -13152,8 +13288,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + - 34 + - AVG ( + 57 ) * CAST ( NULL AS FLOAT8 ) * 51 + + + 27 AS col0, 38 * - COUNT ( * ) AS col0 +---- +-38 +NULL query II rowsort label-2496 SELECT DISTINCT + + COUNT ( * ) AS col1, - 37 AS col0 @@ -13309,8 +13448,12 @@ SELECT + - 86 * - - 25 # Datafusion - Expected - 32 # Datafusion - Expected - -56 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col2" at position 1 and "Int64\(41\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + CAST ( + 32 AS INTEGER ), - 56 AS col2, + 41 AS col2 +---- +-56 +32 +41 query I rowsort label-2526 SELECT - 96 / + 46 + 1 @@ -13356,8 +13499,11 @@ SELECT DISTINCT - MIN ( - 37 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 114400 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \* Int64\(65\) \* Int64\(88\) AS col0" at position 0 and "count\(\(\- Int64\(47\)\)\) \+ Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 20 * 65 * + 88 AS col0, ( COUNT ( - + 47 ) ) + + 35 col0 +---- +114400 +36 query I rowsort SELECT ALL 18 + - 83 AS col2 @@ -13656,8 +13802,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * + - 50 * + 80 AS col1, + SUM ( + - 10 ) - - 21 AS col1 +---- +-4000 +11 query I rowsort label-2593 SELECT ALL 53 * - + COUNT ( * ) @@ -13888,8 +14037,11 @@ SELECT + + 80 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 129 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-53\)\)\) \+ Int64\(2\) \+ Int64\(\-82\) AS col0" at position 0 and "Int64\(57\) \+ Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( ALL + - 53 ) + 2 + - 82 AS col0, 57 + 72 AS col0 +---- +-27 +129 query II rowsort label-2637 SELECT DISTINCT - - 29 + - MAX ( - 7 ) * COUNT ( - 6 ) / - - SUM ( DISTINCT - 87 ) AS col1, ( - ( - - NULLIF ( - 83, - - 29 + + COUNT ( * ) ) ) ) @@ -13910,8 +14062,11 @@ SELECT DISTINCT + 39 + - CAST ( - 65 AS INTEGER ) - 67 AS col1 # 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 col2" at position 0 and "Int64\(27\) \+ Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + 17 ) col2, 27 + - 74 AS col2 +---- +-17 +-47 query I rowsort label-2641 SELECT ALL ( 59 ) / 24 * + 71 * - 47 AS col0 @@ -14096,8 +14251,11 @@ SELECT DISTINCT SUM ( + - 12 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - -1581 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "Int64\(93\) \* \(\- Int64\(17\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 53 col0, 93 * - + 17 AS col0 +---- +-1581 +53 query II rowsort label-2676 SELECT 22 + - 55 + 77, 48 - + ( - CAST ( + 5 AS INTEGER ) ) * - - 90 + + - 50 * + CAST ( 76 AS INTEGER ) AS col0 @@ -14133,8 +14291,11 @@ SELECT 74 * + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + + 71 ) * + CAST ( NULL AS INTEGER ) AS col0, - 56 AS col0 +---- +-56 +NULL query I rowsort label-2683 SELECT ALL 77 / NULLIF ( 83, 14 ) AS col0 @@ -14718,8 +14879,11 @@ SELECT CAST ( ( + + 19 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 50 AS col2, 48 AS col2 +---- +-50 +48 query I rowsort label-2796 SELECT - 75 + - NULLIF ( - CASE + 62 WHEN 95 THEN NULL WHEN - - 68 THEN - - 4 * - 5 WHEN COUNT ( * ) THEN NULL ELSE NULL END, + COUNT ( * ) + + + 95 + + + COUNT ( * ) - - NULLIF ( - 78, 72 ) - CASE - + 21 WHEN - COUNT ( ALL + 51 ) THEN NULL ELSE + ( - CASE 36 WHEN + 85 + + 28 THEN NULL ELSE 31 * - 41 * - - COALESCE ( + 81, - - COUNT ( * ) * - - MAX ( 44 ) + 48 * + 67, - 0 ) END ) END * + - 60 + 68 * - - 32 ) + - - 43 + + ( - - 88 ) / - CAST ( + 93 AS INTEGER ) @@ -14990,8 +15154,11 @@ SELECT ALL + 22 AS col1, - 5 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "Int64\(\-33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 7 AS col0, - 33 AS col0 +---- +-33 +7 query I rowsort SELECT - 6 + - 39 AS col0 @@ -15057,8 +15224,11 @@ SELECT ALL CAST ( - 25 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92259 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* Int64\(17\) \* Int64\(\-67\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 81 * + + 17 * - 67 col0, + 25 AS col0 +---- +-92259 +25 query II rowsort SELECT DISTINCT 92 AS col2, - ( + 43 ) * - + 92 - + 30 + - - 11 + + 28 @@ -15854,8 +16024,11 @@ SELECT NULLIF ( - - CAST ( + + 51 AS INTEGER ), - 66 * 64 ) / + 63 AS col2 # 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\(\-2\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 2 AS col1, 7 AS col1 +---- +-2 +7 query I rowsort label-3016 SELECT 18 + MIN ( 51 ) @@ -16357,8 +16530,11 @@ 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\(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\. +query II valuesort SELECT ALL + 63 AS col1, - COUNT ( * ) * + + 0 * - - COUNT ( * ) AS col1 +---- +0 +63 query I rowsort label-3113 SELECT ALL + 15 * 76 * + 82 - - COUNT ( * ) @@ -16608,8 +16784,12 @@ SELECT ALL - 32 + - 32 AS col1 # Datafusion - Expected - 22 # Datafusion - Expected - 63 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \+ Int64\(17\) AS col2" at position 0 and "max\(Int64\(62\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 5 + + + 17 AS col2, MAX ( 62 ) + COUNT ( * ) AS col2, 19 +---- +19 +22 +63 query I rowsort label-3161 SELECT 77 + NULLIF ( - CAST ( + - 57 AS INTEGER ), 57 ) @@ -17201,8 +17381,11 @@ SELECT ALL 88 + + 74 / + - 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2256 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* Int64\(48\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 47 * 48 AS col0, 1 AS col0 +---- +1 +2256 query II rowsort SELECT 0, 75 * - 97 AS col2 @@ -17340,8 +17523,11 @@ SELECT COUNT ( DISTINCT + - 55 ) # 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 col0" at position 0 and "Int64\(\-83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 25 + - 38 AS col0, - 83 AS col0 +---- +-63 +-83 query I rowsort label-3302 SELECT DISTINCT - 14 / - 52 * + CAST ( + 68 AS INTEGER ) AS col0 @@ -17436,8 +17622,11 @@ SELECT + NULLIF ( + - 23, 12 ) * + + 25 + - + 97 / 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2268 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \* Int64\(63\) AS col1" at position 0 and "nullif\(Int64\(48\), Int64\(\-79\) \* Int64\(59\) \* Int64\(84\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 36 * + + 63 AS col1, + NULLIF ( 48, ( - 79 ) * + + 59 * 84 ) AS col1 +---- +2268 +48 query I rowsort label-3320 SELECT DISTINCT 26 * ( + 98 ) + + + COUNT ( * ) + + 13 @@ -17515,8 +17704,11 @@ SELECT ALL + 86 - - + 90 * 74 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-16\), Int64\(85\)\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COALESCE ( - 16, + 85 ) AS col1, 15 AS col1 +---- +-16 +15 query I rowsort SELECT - 83 + + 28 col1 @@ -17599,8 +17791,11 @@ 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\(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\. +query RI valuesort SELECT CAST ( NULL AS FLOAT8 ) AS col0, NULLIF ( - NULLIF ( - - ( + 76 ), - 60 / + NULLIF ( + - 23, + - 69 * + - 68 + + 88 * + COUNT ( * ) + + 32 * - 73 ) + + 43 ), 36 ) AS col0 +---- +-76 +NULL query I rowsort label-3351 SELECT + 86 / + CAST ( NULL AS INTEGER ) @@ -17615,8 +17810,11 @@ SELECT + 63 + + 80 + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) \* Int64\(15\) \* Int64\(39\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - CAST ( NULL AS FLOAT8 ) * + 15 * + + 39 AS col0, CAST ( NULL AS INTEGER ) col0 +---- +NULL +NULL query I rowsort label-3354 SELECT + 39 + + - 43 + - - 96 * COUNT ( ALL 42 ) AS col2 @@ -17641,8 +17839,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 40 AS col1, + 94 col1 +---- +40 +94 query I rowsort label-3359 SELECT ALL + SUM ( DISTINCT - 98 ) * - 64 + - 77 AS col1 @@ -18151,8 +18352,11 @@ SELECT + 4 * - + 27 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, + 35 col0 +---- +1 +35 query II rowsort label-3457 SELECT DISTINCT 32 AS col1, + 24 / + 88 @@ -18778,8 +18982,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 16 + + MIN ( - 60 ) * + 77 AS col1, COUNT ( * ) + + 10 AS col1 +---- +-4636 +11 query I rowsort label-3574 SELECT ALL + + CAST ( - 25 AS INTEGER ) + - 33 AS col0 @@ -18931,8 +19138,11 @@ SELECT ALL ( + 91 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - -361 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(CAST\(\(\- Int64\(15\)\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-19\) \* \(\- Int64\(\-19\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( + CAST ( - + 15 AS INTEGER ) ) AS col2, - 19 * - - 19 AS col2 +---- +-15 +-361 query I rowsort label-3603 SELECT ALL CAST ( 43 AS INTEGER ) col0 @@ -19103,8 +19313,11 @@ SELECT - 58 / + + 50 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 629 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-10\), Int64\(\-72\), Int64\(10\)\) / \(\- \(\- sum\(DISTINCT Int64\(86\)\)\)\) AS col2" at position 0 and "Int64\(37\) \* Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COALESCE ( - 10, - 72, + 10 ) / - - SUM ( DISTINCT 86 ) AS col2, + 37 * + 17 AS col2 +---- +0 +629 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -19242,8 +19455,11 @@ SELECT 88 * + ( - 0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(4\)\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 4 AS col0, 97 AS col0 +---- +-4 +97 query II rowsort SELECT ALL 38, 33 AS col2 @@ -19275,8 +19491,11 @@ SELECT 89 * - 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-78\) AS col2" at position 0 and "Int64\(\-48\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) * - 78 AS col2, - 48 * - - ( COUNT ( * ) ) + - ( - CAST ( NULL AS INTEGER ) ) AS col2 +---- +-78 +NULL query I rowsort SELECT ALL 88 * + ( + + ( - 37 ) ) AS col0 @@ -19966,8 +20185,12 @@ NULL # Datafusion - Expected - -23 # Datafusion - Expected - 2 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) / Int64\(8\) AS col1" at position 1 and "\(\- Int64\(\-63\)\) \- CAST\(Int64\(7\) AS Int32\) \+ Int64\(51\) \* \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(69\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 23, + 19 / 8 AS col1, - ( + - 63 ) - + CAST ( 7 AS INTEGER ) + + 51 * - + NULLIF ( + + COUNT ( * ), + 69 ) AS col1 +---- +-23 +2 +5 query II rowsort SELECT + 98 + + 44 * + 10 AS col1, + 95 AS col2 @@ -20026,8 +20249,11 @@ SELECT - MIN ( ALL - - 39 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "\(\- Int64\(11\)\) \+ Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 51 col2, - ( 11 ) + + 28 AS col2 +---- +17 +51 query I rowsort label-3808 SELECT ALL 10 / + 39 AS col2 @@ -20096,8 +20322,11 @@ SELECT DISTINCT + 64 * - + 53 # 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 col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - ( 22 ) col2, 12 AS col2 +---- +12 +22 query II rowsort label-3821 SELECT ALL - 3, - SUM ( DISTINCT - 36 ) AS col1 @@ -20138,8 +20367,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * + - 9 col2, 47 AS col2 +---- +-9 +47 query II rowsort SELECT + 79 AS col2, + 53 @@ -21091,8 +21323,11 @@ SELECT ALL 27 / + 53 + - 30 - - NULLIF ( 87, - 54 * COUNT ( * ) + - 54 ) + - - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -102 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \- Int64\(68\) AS col0" at position 0 and "Int64\(0\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 34 - 68 AS col0, 0 - + COUNT ( * ) AS col0 +---- +-1 +-102 query I rowsort label-4010 SELECT ALL 70 / + ( - ( + 17 ) ) + + 60 @@ -21179,8 +21414,11 @@ SELECT ALL 52 * - ( - - 97 ) - 86 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(\-58\)\)\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + MAX ( DISTINCT - 58 ) col0, 43 AS col0 +---- +43 +58 query I rowsort SELECT DISTINCT 9 * - + 20 @@ -21956,8 +22194,11 @@ SELECT DISTINCT - NULLIF ( 19, + 30 / - 62 / CAST ( NULL AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -527 # Datafusion - Expected - 299 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(29\)\) \* Int64\(15\) \+ \(\- nullif\(Int64\(36\), Int64\(22\)\)\) \- Int64\(56\) AS col2" at position 0 and "Int64\(13\) \* Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 29 * + + 15 + - NULLIF ( 36, + 22 ) - ( 56 ) AS col2, + 13 * + 23 AS col2 +---- +-527 +299 query I rowsort SELECT - 58 - + - 47 AS col0 @@ -22069,8 +22310,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col1" at position 0 and "Int64\(69\) \* Int64\(83\) / \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 AS col1, + 69 * + 83 / - + CAST ( NULL AS INTEGER ) + - 43 AS col1 +---- +94 +NULL query I rowsort label-4192 SELECT + 26 + 53 / 32 - 38 - + + CASE - - ( + + COUNT ( * ) ) WHEN - 39 THEN NULL WHEN - - ( - COALESCE ( - 53, + CAST ( 7 AS INTEGER ) ) ) THEN NULL WHEN - ( 75 ) THEN - COUNT ( - 27 ) END / + 57 * - 65 AS col2 @@ -22112,8 +22356,11 @@ SELECT ALL 44 * - 6 * COUNT ( * ) - + 16 + - - 14 * + 70 # 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 "Int64\(50\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 AS col2, 29 AS col2 +---- +29 +50 query I rowsort label-4200 SELECT + CAST ( + 83 AS INTEGER ) / COUNT ( * ) + + + 63 AS col1 @@ -22141,8 +22388,11 @@ NULL # 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 60 * - 5 + 29 AS col1, - ( COUNT ( * ) ) AS col1 +---- +-1 +329 query I rowsort label-4205 SELECT - CASE - + COUNT ( - 99 ) WHEN - - 29 THEN NULL WHEN 42 / - 32 - - CAST ( COUNT ( * ) AS INTEGER ) - - CAST ( NULL AS INTEGER ) * + 7 - CASE - 6 WHEN - 23 THEN - + 41 END THEN - 62 * + + COUNT ( * ) + + + 0 / - - 10 / CAST ( NULL AS INTEGER ) ELSE NULL END * + - 37 * + ( 24 ) * + COUNT ( * ) AS col1 @@ -22163,8 +22413,11 @@ 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\(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\. +query II valuesort SELECT + COALESCE ( - 83, + 80 + COUNT ( * ), - 13 * + ( 85 ) ) * 85 AS col2, + 27 AS col2 +---- +-7055 +27 query I rowsort label-4209 SELECT - - 83 + ( - 69 ) - 0 / + 99 + + - 81 @@ -22180,8 +22433,12 @@ SELECT + 47 / + + 71 AS col2 # Datafusion - Expected - -60 # Datafusion - Expected - 1917 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ Int64\(\-22\) \* Int64\(\-83\) AS col1" at position 1 and "Int64\(54\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 61 * - - COUNT ( * ) / + 63 + - 60 AS col0, 91 + - 22 * - 83 AS col1, 54 AS col1 +---- +-60 +1917 +54 query I rowsort SELECT COALESCE ( - 82, - + 62 ) @@ -22191,8 +22448,11 @@ SELECT COALESCE ( - 82, - + 62 ) # 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 "max\(Int64\(95\)\) AS col2" at position 0 and "Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( + 95 ) col2, - 76 AS col2 +---- +-76 +95 query II rowsort SELECT - 87 * 88, 31 AS col2 @@ -22709,8 +22969,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) + - 34 AS col2, + 12 AS col2 +---- +-33 +12 query I rowsort SELECT DISTINCT + 31 + - 50 - + 57 AS col1 @@ -22971,8 +23234,11 @@ SELECT - 5 * - - NULLIF ( - - 14, + + ( + - 35 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2661 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* Int64\(35\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(16\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 * + 35 + COUNT ( * ) AS col0, 16 - + COUNT ( * ) AS col0 +---- +15 +2661 query I rowsort label-4364 SELECT + 34 / 7 @@ -22982,8 +23248,11 @@ SELECT + 34 / 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -205 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \+ CASE Int64\(44\) WHEN coalesce\(\(\- \(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(55\) \* Int64\(\-7\) \+ Int64\(46\)\)\)\), Int64\(45\) / CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(78\) \+ Int64\(90\) \- Int64\(\-20\) \* Int64\(\-42\) / Int64\(35\), Int64\(\-76\)\) \- \(\- count\(DISTINCT Int64\(\-88\)\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- Int64\(11\)\) \+ Int64\(\-98\) / Int64\(\-89\) THEN NULL END \* Int64\(35\) AS col2" at position 0 and "Int64\(23\) \+ \(\- min\(Int64\(12\)\)\) \* Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-205 +NULL query I rowsort SELECT DISTINCT + ( + 11 ) AS col0 @@ -22998,8 +23267,11 @@ SELECT 76 * - 65 + + + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 276 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- max\(Int64\(12\)\)\) \* Int64\(\-23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, - MAX ( + 12 ) * - 23 AS col2 +---- +276 +NULL query I rowsort label-4369 SELECT DISTINCT + 31 * - COUNT ( * ) AS col1 @@ -23512,8 +23784,11 @@ SELECT ALL 92 + + SUM ( ALL - - 16 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - -6716 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "Int64\(92\) \* Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 AS col0, 92 * - 73 AS col0 +---- +-6716 +40 query II rowsort label-4466 SELECT - ( COUNT ( * ) ), 21 AS col2 @@ -23920,8 +24195,11 @@ SELECT 91 * 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) AS col2" at position 0 and "Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 7 AS col2, + 76 AS col2 +---- +-7 +76 query I rowsort SELECT ALL - 56 * 52 @@ -24133,8 +24411,12 @@ SELECT DISTINCT 8 * - 72 AS col1 # Datafusion - Expected - -58 # Datafusion - Expected - -736 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* Int64\(46\) \* Int64\(\-1\) AS col1" at position 1 and "nullif\(Int64\(\-16\), \(\- sum\(Int64\(\-74\)\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - 9 + - 49 AS col0, 16 * 46 * - 1 AS col1, + NULLIF ( - 16, - SUM ( + - 74 ) ) AS col1 +---- +-16 +-58 +-736 query I rowsort SELECT + ( 26 ) + 17 col2 @@ -24903,8 +25185,11 @@ SELECT ALL - - 88 * - 54 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 col1, 9 AS col1 +---- +76 +9 query I rowsort SELECT DISTINCT - 86 - 30 + + 83 - + 37 AS col2 @@ -24935,8 +25220,11 @@ SELECT DISTINCT ( - 79 ) - NULLIF ( MIN ( DISTINCT 93 ), 53 ) # 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 "Int64\(\-1\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 1 col0, + 22 AS col0 +---- +-1 +22 query I rowsort label-4741 SELECT + + 97 + - 95 * 98 * - ( + 55 * - ( CAST ( + 37 AS INTEGER ) ) ) col1 @@ -25420,8 +25708,11 @@ SELECT DISTINCT 73 / - 85 # 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 "Int64\(\-2\) / Int64\(23\) AS col0" at position 0 and "Int64\(\-32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 2 / + 23 AS col0, - 32 AS col0 +---- +-32 +0 query I rowsort SELECT ALL 8 * + 90 @@ -25629,8 +25920,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 18 ) AS col2, 36 col2 +---- +-18 +36 query I rowsort label-4875 SELECT + 42 + - COALESCE ( + - 40, - 41 ) + - 47 + - NULLIF ( + COALESCE ( + COUNT ( * ), MIN ( DISTINCT 7 ), + 31 ), CASE + 55 WHEN - 57 THEN NULL ELSE 54 / ( 67 * 38 ) END ) + - 81 * 49 @@ -25705,8 +25999,11 @@ SELECT - 69 + + - 21 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 5396 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(71\) \* Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 71 * 76 AS col1 +---- +1 +5396 query I rowsort SELECT - 39 * - + 34 * + 2 AS col1 @@ -26124,8 +26421,11 @@ SELECT ( - + 72 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- coalesce\(coalesce\(Int64\(34\), CAST\(NULL AS Int32\), Int64\(\-78\) \+ Int64\(34\) \+ Int64\(89\) \* Int64\(97\), count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(72\)\)\)\) \+ Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) + - COALESCE ( + ( COALESCE ( + 34, CAST ( NULL AS INTEGER ), - 78 + + 34 + + 89 * 97, COUNT ( * ) ) ), - ( 72 ) ) + 77 AS col1 +---- +42 +NULL query I rowsort label-4969 SELECT COUNT ( * ) * + 51 / + NULLIF ( + 40, + ( - - 20 ) + + 91 + - 38 - - - 84 * 66 + CAST ( NULL AS INTEGER ) * 57 ) + + 67 + ( + 13 ) @@ -26229,8 +26529,11 @@ SELECT ALL + 99 * 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1848 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-21\), Int64\(67\)\)\) \* \(\- Int64\(\-88\)\) AS col1" at position 0 and "Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( + - 21, + 67 ) * - - 88 AS col1, - 27 col1 +---- +-27 +1848 query I rowsort label-4989 SELECT DISTINCT + ( + - 39 ) + - 49 + + + NULLIF ( - 26, + - CAST ( COUNT ( * ) AS INTEGER ) + + 33 ) @@ -26280,8 +26583,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 87 + + 69 AS col2, - 37 * - COUNT ( * ) AS col2 +---- +-18 +37 query I rowsort label-4999 SELECT ALL CASE - COUNT ( * ) WHEN - MAX ( ALL + 77 ) + + - 48 THEN - - ( - CAST ( + + 97 AS INTEGER ) ) END - + 79 - + - 93 * 15 + 49 / 53 @@ -26450,8 +26756,11 @@ SELECT ALL - 94 * + + 45 * + 12 AS col0, 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col1" at position 0 and "Int64\(\-37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 48 ) AS col1, - 37 col1 +---- +-37 +-48 query I rowsort label-5031 SELECT DISTINCT 28 / - 85 * + COUNT ( * ) AS col2 @@ -26682,8 +26991,11 @@ SELECT ALL + 97 + + 82 * - + 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col2" at position 0 and "Int64\(\-2\) \+ Int64\(\-98\) \+ \(\- Int64\(19\)\) \+ \(\- max\(DISTINCT Int64\(\-83\)\)\) / \(\- Int64\(69\)\) \+ Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 AS col2, - 2 + - 98 + - + 19 + - + MAX ( DISTINCT - 83 ) / - + 69 + 69 AS col2 +---- +-51 +39 query I rowsort SELECT ALL - - ( - - 72 ) + 86 AS col0 @@ -26817,8 +27129,11 @@ SELECT + - 17 + + 24 + + + 36 * - 78 * + - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(79\), \(\- Int64\(\-63\)\)\) AS col0" at position 0 and "\(\- CAST\(Int64\(1\) AS Int32\)\) \* Int64\(65\) \+ \(\- Int64\(\-34\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( + + ( 79 ), - - 63 ) AS col0, - CAST ( 1 AS INTEGER ) * + 65 + - - 34 * - + COUNT ( * ) AS col0 +---- +-99 +79 query I rowsort label-5102 SELECT DISTINCT COALESCE ( 92, ( + 35 ) * 35 * - COUNT ( * ) + + COALESCE ( + MAX ( + 36 ), + ( + 75 ) ) * + - 77 + + - 76, + 63 * 91 ) * MAX ( 10 * ( - 91 ) ) @@ -26955,8 +27270,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3080 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-88\), \(\- sum\(Int64\(31\)\)\) \+ Int64\(\-74\) \+ \(\- Int64\(\-67\)\), Int64\(15\)\) \* Int64\(35\) AS col2" at position 0 and "Int64\(\-21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COALESCE ( - 88, - + SUM ( ALL + 31 ) + - 74 + - - 67, + + 15 ) * 35 AS col2, - 21 AS col2 +---- +-21 +-3080 query I rowsort label-5128 SELECT ALL - 1 / + + 19 @@ -27594,8 +27912,11 @@ SELECT ALL + 46 * 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3759 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \+ \(\- Int64\(4\)\) \* Int64\(\-11\) \* \(\- Int64\(85\)\) AS col1" at position 0 and "\(\- CAST\(Int64\(26\) AS Int32\)\) \+ Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 19 + - + 4 * - 11 * - + 85 col1, - CAST ( + 26 AS INTEGER ) + + 3 AS col1 +---- +-23 +-3759 query I rowsort label-5249 SELECT DISTINCT + COUNT ( * ) * + MAX ( + COALESCE ( 48, 0 ) ) AS col1 @@ -27749,8 +28070,11 @@ 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\(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\. +query II valuesort 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 +---- +5248 +NULL query II rowsort label-5277 SELECT 0 AS col0, + ( - COUNT ( * ) ) - - 95 @@ -27771,8 +28095,11 @@ SELECT ( - + CASE - - COUNT ( * ) WHEN + 51 THEN + - 43 + + 39 + + ( + + 31 ) * # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 33 AS col2, 13 AS col2 +---- +13 +33 query I rowsort label-5281 SELECT MAX ( ALL 66 ) + - + CAST ( NULL AS INTEGER ) AS col2 @@ -28159,8 +28486,11 @@ SELECT ALL - 66 * 55 - + 95 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(Int64\(36\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + - 35 ) AS col0, - COUNT ( * ) * + + ( - CAST ( 36 AS INTEGER ) ) AS col0 +---- +-35 +36 query I rowsort SELECT + 78 + 77 @@ -28196,8 +28526,11 @@ SELECT - 60 * + 91 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 114 # Datafusion - Expected - 111 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \+ Int64\(73\) AS col2" at position 0 and "Int64\(\-95\) / Int64\(67\) \* Int64\(\-74\) \+ \(\- nullif\(Int64\(1\), Int64\(\-7\)\)\) \* \(\- Int64\(20\)\) \+ Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 41 + + 73 AS col2, - 95 / 67 * - 74 + - + NULLIF ( 1, - 7 ) * - + 20 + + 17 AS col2 +---- +111 +114 query I rowsort label-5361 SELECT ALL MIN ( DISTINCT 95 ) * + 78 AS col1 @@ -28207,8 +28540,11 @@ SELECT ALL MIN ( DISTINCT 95 ) * + 78 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \+ Int64\(6\) AS col2" at position 0 and "sum\(\(\- Int64\(\-59\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 72 + + + 6 AS col2, + SUM ( - - 59 ) col2 +---- +59 +78 query I rowsort SELECT ALL - 83 + + 34 @@ -28493,8 +28829,11 @@ SELECT ALL - 42 - 10 + - - COUNT ( * ) * 86 - + + 15 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 234 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- Int64\(\-4\)\)\) \* Int64\(80\) \+ Int64\(\-86\) AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + SUM ( ALL - - 4 ) * + 80 + - 86 AS col2, + 86 col2 +---- +234 +86 query I rowsort SELECT + 57 + 36 @@ -29103,8 +29442,11 @@ SELECT COALESCE ( - 79, - 49 + - + 0 * + - 62 ) - CASE COUNT ( * ) WHEN ( - NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 35 AS col2, + ( + + COUNT ( * ) ) AS col2 +---- +-35 +1 query II rowsort SELECT ALL - 5, + 44 * + + 27 * - - 80 AS col0 @@ -29126,8 +29468,11 @@ SELECT COUNT ( * ) AS col0, + 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, - 27 AS col0 +---- +-27 +1 query I rowsort SELECT ALL - + ( - + 3 ) @@ -29152,8 +29497,11 @@ SELECT ALL + COUNT ( * ) * + + 98 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(\-56\) \+ Int64\(\-21\) AS col2" at position 0 and "CAST\(Int64\(\-89\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 + - 56 + - 21 col2, + CAST ( - 89 AS INTEGER ) AS col2 +---- +-89 +2 query I rowsort label-5544 SELECT - 75 * COUNT ( * ) - - 10 AS col1 @@ -29219,8 +29567,11 @@ SELECT DISTINCT + ( + - COUNT ( * ) ) + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ coalesce\(\(\- CAST\(\(\- Int64\(\-48\)\) AS Int32\)\), \(\- sum\(Int64\(22\)\)\), \(\- Int64\(\-56\)\)\) \+ Int64\(17\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) + COALESCE ( + - CAST ( - - 48 AS INTEGER ), - SUM ( 22 ), - ( - 56 ) ) + + 17 col2, 82 AS col2 +---- +-30 +82 query I rowsort label-5557 SELECT ALL - NULLIF ( - 54, - 1 ) + - COUNT ( * ) * - COUNT ( * ) * 52 AS col0 @@ -29572,8 +29923,11 @@ SELECT 76 + MIN ( DISTINCT + 94 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - -1383 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col0" at position 0 and "CAST\(Int64\(18\) AS Int32\) \* Int64\(\-74\) \+ Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 86 AS col0, + CAST ( 18 AS INTEGER ) * - 74 + - 51 AS col0 +---- +-1383 +-86 query II rowsort SELECT ALL 88 col1, - 21 @@ -29639,8 +29993,11 @@ SELECT ALL - 67, - 77 + + 38 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(30\)\) \+ \(\- Int64\(\-65\)\) AS col0" at position 0 and "Int64\(\-34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 30 + - - 65 AS col0, - 34 AS col0 +---- +-34 +35 query II rowsort label-5637 SELECT DISTINCT - + 2 AS col2, - NULLIF ( + - 23, - COUNT ( * ) ) * - 34 - + - COUNT ( * ) @@ -29760,8 +30117,11 @@ SELECT ALL - SUM ( + - 8 ) * - 78 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2380 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(70\)\) \* Int64\(34\) AS col1" at position 0 and "Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( 70 ) * + + 34 AS col1, - 20 AS col1 +---- +-20 +2380 query I rowsort label-5660 SELECT DISTINCT 84 + 84 / ( - 23 ) - COUNT ( * ) + + NULLIF ( 10, + COUNT ( * ) - - - 48 * - 59 ) AS col1 @@ -29981,8 +30341,11 @@ SELECT ALL 95 col1, - 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "\(\- coalesce\(\(\- Int64\(90\)\), Int64\(\-25\) \+ Int64\(76\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 19 AS col0, - COALESCE ( - + 90, - 25 + + 76 ) * COUNT ( * ) AS col0 +---- +19 +90 query I rowsort SELECT DISTINCT 83 + - 37 @@ -30308,8 +30671,11 @@ SELECT + 93 + + - 43 * - + 46 * + 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 159 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(86\) WHEN Int64\(1\) \* Int64\(\-71\) \* CAST\(NULL AS Int32\) THEN NULL WHEN Int64\(22\) THEN NULL ELSE Int64\(\-77\) \+ \(\- Int64\(82\)\) END\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1 +159 query I rowsort SELECT ALL - 85 * + 46 + - ( 57 ) * + 6 * 29 @@ -30329,8 +30695,11 @@ SELECT - 29 + - + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "\(\- max\(Int64\(91\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 AS col1, - MAX ( + + 91 ) AS col1 +---- +-91 +17 query I rowsort label-5770 SELECT + 43 + + COUNT ( * ) @@ -30530,8 +30899,11 @@ 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\(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\. +query II valuesort SELECT ALL 79 AS col1, 73 - 99 + + ( - COUNT ( * ) ) * - COUNT ( * ) * 12 + + + 26 + - - 33 AS col1 +---- +45 +79 query I rowsort label-5809 SELECT DISTINCT CASE 58 WHEN - + 1 + + - 92 THEN - 40 * ( 94 ) * - 74 * + + 69 ELSE COUNT ( * ) END @@ -30574,8 +30946,11 @@ SELECT ALL - 68 + - + ( + - 55 ) * 37 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -136 # Datafusion - Expected - -4896 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \+ Int64\(\-86\) AS col2" at position 0 and "Int64\(72\) \* Int64\(\-68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 50 + - 86 AS col2, + 72 * - 68 AS col2 +---- +-136 +-4896 query I rowsort label-5817 SELECT - COUNT ( - 34 ) col2 @@ -30697,8 +31072,11 @@ 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\(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\. +query II valuesort 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 +---- +86 +NULL query I rowsort label-5841 SELECT - + 22 * + 68 + + + COUNT ( - + ( - 10 ) ) * + COUNT ( * ) @@ -30909,8 +31287,11 @@ SELECT DISTINCT + MAX ( ALL 33 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 532 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(38\) AS col1" at position 0 and "min\(Int64\(\-95\)\) \+ Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 14 * + + 38 col1, + MIN ( - 95 ) + + 99 AS col1 +---- +4 +532 query I rowsort label-5881 SELECT DISTINCT 26 / - 99 * - 88 * + 32 AS col2 @@ -31295,8 +31676,11 @@ SELECT ALL 73 col0, ( - 57 ) * - 43 * + 30 + + COALESCE ( - SUM ( 36 ), + 71 / + # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(9\)\)\) AS col1" at position 0 and "Int64\(45\) \* count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( DISTINCT + 9 ) AS col1, 45 * + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1 +---- +-9 +NULL query I rowsort label-5955 SELECT ALL + COUNT ( * ) + - - 38 * - NULLIF ( COUNT ( * ), 71 ) AS col2 @@ -31637,14 +32021,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \- \(\- Int64\(4\)\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + + 45 ) - - ( + 4 ) AS col1, 65 AS col1 +---- +49 +65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col1" at position 0 and "Int64\(30\) \+ Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 28 AS col1, + 30 + + 1 AS col1 +---- +28 +31 query I rowsort SELECT 67 * - 66 @@ -32562,8 +32952,12 @@ SELECT + MIN ( ALL - 76 ) col0 # Datafusion - Expected - NULL # Datafusion - Expected - -82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(82\) WHEN Int64\(71\) \* coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-47\)\) \* Int64\(\-22\) \* coalesce\(Int64\(\-99\), Int64\(29\)\) \* Int64\(\-45\) \+ Int64\(69\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(\-96\), CAST\(NULL AS Float64\) \* Int64\(25\) \+ Int64\(67\)\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL END\) / \(\- Int64\(\-43\)\) \+ Int64\(\-80\) AS col1" at position 0 and "nullif\(Int64\(82\), nullif\(\(\- nullif\(Int64\(\-47\), Int64\(6\)\)\), \(\- CASE Int64\(36\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN CASE Int64\(\-44\) WHEN \(\- nullif\(Int64\(\-90\), Int64\(\-37\)\)\) THEN Int64\(48\) ELSE NULL END WHEN min\(Int64\(58\)\) THEN NULL ELSE NULL END\)\)\) \* \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort 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 +---- +-82 +NULL +NULL query I rowsort label-6198 SELECT ALL + 7 / - 54 AS col0 @@ -32583,8 +32977,11 @@ SELECT DISTINCT + + ( - - 79 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -1953 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col2" at position 0 and "Int64\(31\) \* \(\- Int64\(63\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 84 AS col2, + 31 * - + 63 AS col2 +---- +-1953 +84 query I rowsort SELECT + - 22 + - + 91 AS col1 @@ -33374,8 +33771,11 @@ SELECT + 46 col2, 26 + 97 + 54 * 99 * 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col0" at position 0 and "coalesce\(Int64\(\-14\), Int64\(73\), Int64\(56\) \+ Int64\(\-23\)\) \+ Int64\(\-13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 31 AS col0, COALESCE ( - 14, + 73, 56 + - 23 ) + - 13 col0 +---- +-27 +-31 query I rowsort SELECT DISTINCT + 63 * - 53 / + CASE WHEN + 82 IS NULL THEN 73 + 35 END AS col1 @@ -33390,8 +33790,11 @@ SELECT ALL 37 / + - ( 75 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 15 AS col1, 55 col1 +---- +15 +55 query II rowsort label-6359 SELECT - 12 AS col0, 55 + + 2 * + SUM ( ALL 44 ) col1 @@ -33412,8 +33815,11 @@ SELECT ( - + 53 ) * 99 * 61 AS col1 # 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 "Int64\(1\) AS col1" at position 0 and "Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 AS col1, - 27 col1 +---- +-27 +1 query I rowsort SELECT 18 * 29 AS col1 @@ -33812,8 +34218,12 @@ SELECT ALL - ( - 71 ) col0 # Datafusion - Expected - 66 # Datafusion - Expected - NULL # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) AS col1" at position 1 and "Int64\(98\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 66, COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1, + ( 98 ) AS col1 +---- +66 +98 +NULL query I rowsort label-6441 SELECT ALL - 75 / 95 - - - CAST ( - 53 AS INTEGER ) AS col1 @@ -33873,8 +34283,11 @@ SELECT - 50 * - 52, + 33 * - + 18 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 18 AS col2, COUNT ( * ) AS col2 +---- +1 +18 query I rowsort label-6452 SELECT ALL - 22 / CASE + 33 WHEN 0 THEN COUNT ( * ) ELSE NULL END + 13 AS col1 @@ -34068,8 +34481,11 @@ SELECT - + 91 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3061 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) / Int64\(86\) \+ Int64\(90\) \* Int64\(\-34\) AS col1" at position 0 and "min\(DISTINCT Int64\(68\)\) / Int64\(46\) \+ Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 88 / + + 86 + 90 * - 34 AS col1, MIN ( DISTINCT + 68 ) / + 46 + 82 AS col1 +---- +-3061 +83 query II rowsort label-6490 SELECT - COUNT ( * ) AS col0, + 57 col2 @@ -34809,8 +35225,11 @@ SELECT DISTINCT 67 * SUM ( DISTINCT + 61 ) AS col1 # 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 "Int64\(80\) AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 AS col0, 59 AS col0 +---- +59 +80 query I rowsort label-6634 SELECT DISTINCT - 65 * + COUNT ( DISTINCT - 59 ) AS col1 @@ -35152,8 +35571,11 @@ SELECT DISTINCT + 68 * + 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 27 * COUNT ( * ) AS col2, + 76 AS col2 +---- +-27 +76 query I rowsort label-6699 SELECT - 90 - - NULLIF ( + - CAST ( 96 AS INTEGER ), - + ( + + 93 ) - - - 21 ) AS col0 @@ -35200,8 +35622,11 @@ SELECT ALL COALESCE ( - ( - 23 ), - ( + - 40 ), - + 72 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 172 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(75\) \+ Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) col1, 75 + 97 AS col1 +---- +172 +NULL query I rowsort SELECT DISTINCT ( + 3 ) @@ -35271,8 +35696,11 @@ SELECT - 41 * 72 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1598 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* \(\- Int64\(\-34\)\) AS col1" at position 0 and "Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 * - ( - 34 ) AS col1, - 86 AS col1 +---- +-86 +1598 query I rowsort label-6722 SELECT + 58 + - CASE + - ( + 14 ) WHEN + 41 * + + 22 + - 25 - 71 * - 95 / 88 / 6 THEN NULL WHEN + + ( - 37 ) THEN NULL WHEN + 97 + - 66 / 44 THEN ( - COUNT ( * ) ) * - 89 END AS col0 @@ -35426,8 +35854,12 @@ SELECT ALL - 79 + + - NULLIF ( - - 29, - 16 ) + 36 AS col2 # Datafusion - Expected - -49 # Datafusion - Expected - 30774 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(\-1\) AS col0" at position 0 and "Int64\(5\) \* Int64\(71\) \* Int64\(\-78\) \+ Int64\(58\) \+ Int64\(\-24\) \+ Int64\(62\) \+ Int64\(\-96\) \* Int64\(\-76\) \* Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 49 * + - 1 AS col0, 5 * + 71 * + - 78 + + 58 + - 24 + + 62 + - 96 * ( - 76 ) * + 8 AS col0, + 89 +---- +-49 +30774 +89 query I rowsort SELECT ALL - 16 + 58 + 74 @@ -35937,8 +36369,11 @@ SELECT ALL - 58 * - + 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3230 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* Int64\(34\) AS col2" at position 0 and "Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 95 * + + 34 col2, - 74 AS col2 +---- +-74 +3230 query I rowsort SELECT + 64 + 60 col0 @@ -36242,8 +36677,11 @@ SELECT NULLIF ( COALESCE ( CAST ( - ( + + MAX ( ALL + 52 ) ) AS INTEGER ), - 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \+ Int64\(27\) \+ Int64\(\-19\) AS col0" at position 0 and "CAST\(Int64\(97\) AS Int32\) \+ Int64\(\-44\) \+ Int64\(71\) \+ \(\- Int64\(21\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 + 27 + - 19 AS col0, + CAST ( + 97 AS INTEGER ) + - 44 + + ( + + 71 ) + - + 21 AS col0 +---- +103 +76 query I rowsort label-6907 SELECT + MIN ( ALL + - 61 ) AS col1 @@ -36516,8 +36954,11 @@ 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\(1\)\) AS count\(\*\), Int64\(99\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 52 AS col1, + COALESCE ( + + COUNT ( * ), + 99 ) AS col1 +---- +-52 +1 query II rowsort label-6961 SELECT + - NULLIF ( - 31, 38 - - - 97 + - + 88 ) AS col1, - 40 * + + 70 * - - COUNT ( * ) @@ -36558,8 +36999,11 @@ SELECT DISTINCT + 7 * + + MIN ( - 25 ) * + 65 AS col0 # 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 "Int64\(4\) / Int64\(\-57\) \* Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 39 AS col1, 4 / - 57 * + - 94 AS col1 +---- +-39 +0 query I rowsort label-6969 SELECT DISTINCT + MIN ( NULLIF ( - 66, 37 ) ) @@ -36631,8 +37075,11 @@ SELECT ALL - 67 * + MIN ( ALL - ( + 8 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 101 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ nullif\(Int64\(6\), Int64\(88\)\) AS col2" at position 0 and "\(\- Int64\(18\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 95 + NULLIF ( 6, 88 ) AS col2, - ( + 18 ) AS col2 +---- +-18 +101 query II rowsort label-6983 SELECT ALL CAST ( NULL AS INTEGER ), 71 * 40 + - 21 + + 44 * + 80 + - COALESCE ( - 48, 76 ) AS col1 @@ -37049,8 +37496,11 @@ SELECT ALL + + ( + 17 ) * - CASE - 18 WHEN 59 THEN NULL ELSE - 40 END AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col1" at position 0 and "Int64\(61\) \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 14 AS col1, + 61 + CAST ( NULL AS INTEGER ) AS col1 +---- +14 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -37478,8 +37928,11 @@ SELECT DISTINCT - 59, + COUNT ( ALL - 59 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "Int64\(24\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 17 AS col0, + 24 * + COUNT ( * ) col0 +---- +17 +24 query I rowsort label-7141 SELECT DISTINCT + 29 + - - SUM ( DISTINCT - 37 ) AS col1 @@ -37634,8 +38087,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- Int64\(68\)\) WHEN Int64\(\-98\) THEN Int64\(20\) END \+ Int64\(32\) \+ Int64\(\-31\) \+ \(\- Int64\(32\)\) AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CASE + ( - + 68 ) WHEN - 98 THEN 20 END + + 32 + - 31 + - + 32 AS col0, 34 AS col0 +---- +34 +NULL query II rowsort SELECT ALL + ( - 83 ) - - + 33 AS col0, 5 AS col1 @@ -37734,8 +38190,11 @@ SELECT ALL - 19 / COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) / Int64\(\-48\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 40 / - 48 + COUNT ( * ) AS col1, 9 AS col1 +---- +1 +9 query I rowsort label-7189 SELECT ALL + 62 / - + CAST ( - 65 AS INTEGER ) * - 47 * 11 * - ( - + 88 ) + MAX ( - 7 ) * - 22 @@ -38226,8 +38685,11 @@ SELECT - 60 - - - 18 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2311 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(32\)\) \* Int64\(\-70\) \+ Int64\(\-71\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-16\) \- count\(DISTINCT \(\- CASE \(\- Int64\(\-54\)\) WHEN Int64\(78\) THEN Int64\(\-30\) \+ Int64\(98\) END\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( + 32 ) * - 70 + - 71 AS col0, - CAST ( NULL AS INTEGER ) + + - 16 - COUNT ( DISTINCT - CASE - - 54 WHEN + 78 THEN - 30 + + 98 END ) AS col0 +---- +-2311 +NULL query I rowsort label-7282 SELECT DISTINCT + ( 0 ) / - 76 AS col0 @@ -38263,8 +38725,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 AS col1, - 37 + - COUNT ( * ) + - 86 AS col1 +---- +-124 +37 query I rowsort label-7288 SELECT - COUNT ( * ) * - CASE - 59 WHEN 45 + 69 THEN - + 22 ELSE 25 + - 87 END @@ -38817,8 +39282,11 @@ SELECT ALL 47 * 62 * + 72 * - + CASE + ( - 50 ) WHEN + - SUM ( ALL 41 ) * 19 THE # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ Int64\(40\) AS col0" at position 0 and "nullif\(\(\- nullif\(Int64\(86\), Int64\(66\)\)\), \(\- nullif\(Int64\(10\), Int64\(86\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 + 40 AS col0, NULLIF ( - + NULLIF ( + 86, + + 66 ), - NULLIF ( + 10, + 86 ) ) AS col0 +---- +-86 +82 query I rowsort label-7393 SELECT MIN ( ALL 7 ) - - 56 * + 96 @@ -39969,8 +40437,11 @@ SELECT ALL + 2 - - 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 8 col2, + 4 AS col2 +---- +-8 +4 query I rowsort label-7614 SELECT ALL - 32 / + COUNT ( * ) col2 @@ -40037,8 +40508,11 @@ SELECT 22 + - - 5 * + 66 * + 3 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col0" at position 0 and "Int64\(98\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 92 col0, + 98 + + COUNT ( * ) AS col0 +---- +-92 +99 query I rowsort label-7627 SELECT ALL - MAX ( - 6 ) @@ -40267,8 +40741,11 @@ SELECT NULLIF ( - 9, - - COUNT ( * ) * COUNT ( * ) * ( - - 29 ) + COUNT ( * ) + # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - -259896 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-91\), Int64\(\-35\) \* \(\- \(\- Int64\(\-8\)\)\) \* Int64\(\-87\) \+ Int64\(\-25\)\) AS col2" at position 0 and "Int64\(56\) \* Int64\(91\) \* Int64\(\-51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( - 91, - 35 * - - ( - 8 ) * - 87 + - 25 ) AS col2, 56 * + 91 * - 51 AS col2 +---- +-259896 +-91 query I rowsort SELECT + 10 * 95 col2 @@ -40598,8 +41075,11 @@ SELECT DISTINCT + 61 * 87 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1080 # Datafusion - Expected - -168049 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \- \(\- Int64\(26\)\) \* \(\- Int64\(\-40\)\) AS col0" at position 0 and "coalesce\(Int64\(65\), Int64\(20\)\) \* \(\- sum\(DISTINCT Int64\(\-55\)\)\) \* \(\- Int64\(47\)\) \+ \(\- Int64\(24\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 - - + 26 * + - ( + - 40 ) col0, + COALESCE ( + 65, + 20 ) * + - SUM ( DISTINCT - 55 ) * - + 47 + - + 24 AS col0 +---- +-168049 +1080 query I rowsort label-7733 SELECT 50 - + MIN ( DISTINCT + 65 ) AS col2 @@ -40701,8 +41181,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 77 AS col1, - COUNT ( * ) AS col1 +---- +-1 +-77 query I rowsort label-7753 SELECT ALL ( 13 ) * 86 + - CASE 23 WHEN - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - + ( + + ( - MIN ( 21 ) ) ) - + CAST ( + + 75 AS INTEGER ) THEN + 88 END - 92 + + 38 * + COUNT ( * ) * + CASE - 40 WHEN - 26 + ( 91 ) / - 9 * + - 56 * + + COUNT ( * ) * - 78 THEN NULL WHEN 37 THEN NULL WHEN 91 THEN COUNT ( * ) * + 77 END * + CAST ( NULL AS INTEGER ) + - + 91 + - 94 + 20 @@ -40887,8 +41370,11 @@ SELECT DISTINCT 69 * 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 3700 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(76\) AS Int32\) AS col2" at position 0 and "Int64\(74\) \* Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( + 76 AS INTEGER ) AS col2, 74 * + 50 AS col2 +---- +3700 +76 query I rowsort label-7789 SELECT ALL COUNT ( * ) - + ( + 99 ) @@ -41151,8 +41637,11 @@ SELECT + MIN ( DISTINCT 16 ) / + CAST ( + 23 AS INTEGER ) + - - COUNT ( * ) * 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - -104017 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* \(\- Int64\(41\)\) \* \(\- Int64\(\-43\)\) AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 59 * - + 41 * - - 43 AS col2, + ( + 96 ) AS col2 +---- +-104017 +96 query II rowsort label-7839 SELECT ALL - 60 col2, + COUNT ( * ) @@ -41305,8 +41794,11 @@ SELECT - 36 * + + 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 150526 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) \* \(\- Int64\(15\)\) \* Int64\(2\) \* Int64\(88\) \+ Int64\(24\) \+ Int64\(68\) / Int64\(3\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 57 ) * - + 15 * ( + 2 ) * + + 88 + 24 + + 68 / + 3 col0, COUNT ( * ) AS col0 +---- +1 +150526 query I rowsort label-7868 SELECT ALL + COALESCE ( + 38, + - 27, - 76 / - 24 ) * - CASE - COUNT ( * ) WHEN 43 THEN + + 18 / NULLIF ( - 57, - 47 + + 23 + - ( - - 16 ) ) * - - 24 * - - COUNT ( * ) + COUNT ( * ) * - 81 * 42 WHEN + + 71 + + 86 + + + 55 * 13 - - 96 + COUNT ( * ) * + + 28 THEN + 7 END AS col0 @@ -41456,8 +41948,11 @@ SELECT - + 83 / + 50 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \- CASE Int64\(63\) WHEN Int64\(7\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(56\) \+ Int64\(\-11\) THEN CAST\(NULL AS Int32\) WHEN Int64\(16\) \+ sum\(Int64\(94\)\) / Int64\(\-8\) THEN \(\- CASE Int64\(68\) WHEN min\(Int64\(19\)\) \* count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(88\) WHEN Int64\(55\) THEN Int64\(32\) ELSE Int64\(72\) END\) \- \(\- Int64\(\-24\)\) END / Int64\(24\) / Int64\(32\) AS col1" at position 0 and "min\(Int64\(\-21\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-21 +NULL query I rowsort SELECT DISTINCT ( - + 60 ) @@ -41533,8 +42028,11 @@ 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\(DISTINCT Int64\(94\)\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( COUNT ( DISTINCT 94 ) ) AS col2, 99 AS col2 +---- +1 +99 query I rowsort label-7911 SELECT + CAST ( NULL AS INTEGER ) * - ( 90 ) @@ -42621,8 +43119,12 @@ SELECT 0 + - - 60 + 3 + 69 * - ( - 68 ) # Datafusion - Expected - -49 # Datafusion - Expected - 0 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) / \(\- Int64\(37\)\) AS col2" at position 1 and "Int64\(35\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 5 - + 54, + 12 / - + 37 AS col2, 35 AS col2 +---- +-49 +0 +35 query I rowsort label-8122 SELECT ALL - CASE 57 WHEN - + 95 - - ( - - 68 ) * + MAX ( 53 ) THEN 42 ELSE SUM ( ALL ( + 27 ) ) - - 61 END AS col0 @@ -42695,8 +43197,11 @@ SELECT 10 * - 98 + - ( + MIN ( - - 45 ) ) + - ( 31 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -62 -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\(\-57\)\) \* Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 AS col1, COUNT ( - 57 ) * - 62 AS col1 +---- +-62 +60 query II rowsort label-8136 SELECT + + COUNT ( * ) / + 82 + 45 + + 74 AS col1, - 88 @@ -43202,8 +43707,11 @@ SELECT ALL - 93 / + ( + - 73 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -445 # Datafusion - Expected - 178 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(\-89\) AS col1" at position 0 and "Int64\(86\) \+ CAST\(Int64\(92\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 * + - 89 AS col1, ( + 86 ) + + CAST ( 92 AS INTEGER ) AS col1 +---- +-445 +178 query I rowsort label-8233 SELECT + 91 + - + 53 + + 67 / CAST ( NULL AS INTEGER ) + - 24 + + ( NULLIF ( - 91, + 56 ) ) * 11 AS col0 @@ -43248,8 +43756,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) / + 71 * - + 4 + 42 + 12 AS col0, - 76 + 48 AS col0 +---- +-28 +54 query I rowsort label-8242 SELECT NULLIF ( - - COUNT ( * ), - MAX ( 91 ) ) + - 69 - - 2 * 81 @@ -43614,8 +44125,11 @@ SELECT DISTINCT + 96 * - - 79 + + COUNT ( * ) + - 88 + ( + 48 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 124 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \+ Int64\(92\) \- Int64\(22\) \+ Int64\(27\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 27 + + + 92 - + 22 + 27 AS col1, + 11 AS col1 +---- +11 +124 query I rowsort label-8311 SELECT DISTINCT - COUNT ( DISTINCT 92 ) AS col1 @@ -43833,8 +44347,11 @@ SELECT 32 * 76 * + NULLIF ( CASE - + ( - COUNT ( * ) ) WHEN + 76 * - ( + 76 ) + # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \+ sum\(\(\- Int64\(27\)\)\) AS col0" at position 0 and "Int64\(93\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 + SUM ( ALL - ( + + 27 ) ) AS col0, + 93 * + COUNT ( * ) AS col0 +---- +11 +93 query II rowsort label-8352 SELECT ALL 13 AS col0, - CAST ( NULL AS INTEGER ) @@ -43898,8 +44415,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) + + 7 + + COALESCE ( - 0, + COUNT ( * ), 53 + - MIN ( ALL - 50 ) ) col1, - 85 AS col1 +---- +-85 +8 query I rowsort label-8364 SELECT DISTINCT - COUNT ( ALL + + 16 ) @@ -43909,8 +44429,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 72 AS col1, ( - ( + + COUNT ( * ) ) ) + 3 AS col1 +---- +2 +72 query I rowsort SELECT ALL - 1 + + 44 @@ -43954,8 +44477,11 @@ SELECT ALL + 65 + - + 94 / + 75 AS col2, + CASE + 75 WHEN - CAST ( + 28 AS INTEG # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -7885 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col1" at position 0 and "Int64\(\-83\) \* Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 AS col1, - 83 * + 95 AS col1 +---- +-7885 +35 query I rowsort SELECT ALL - - ( - 23 ) AS col1 @@ -44564,8 +45090,11 @@ SELECT - MIN ( DISTINCT - 66 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT \(\- Int64\(\-5\)\)\)\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( DISTINCT - - 5 ) AS col2, ( + + 37 ) AS col2 +---- +-5 +37 query I rowsort label-8491 SELECT ALL + 91 - + MAX ( + 51 ) @@ -45128,8 +45657,11 @@ SELECT DISTINCT 99 * 98 AS col0 # 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 col2" at position 0 and "Int64\(6\) / \(\- Int64\(29\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 11 col2, 6 / - + 29 AS col2 +---- +-11 +0 query II rowsort SELECT + 60, 64 * + + 44 AS col0 @@ -45441,8 +45973,11 @@ SELECT ALL + ( SUM ( + 17 ) ) * 28 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 2312 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(3\)\) \+ Int64\(73\) AS col1" at position 0 and "Int64\(68\) \* \(\- Int64\(\-34\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 3 + + 73 AS col1, + 68 * - - 34 AS col1 +---- +2312 +70 query I rowsort label-8661 SELECT - 29 + - 0 - + CAST ( + + COUNT ( 73 ) AS INTEGER ) @@ -45603,8 +46138,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(\-55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( * ) AS col0, - 55 AS col0 +---- +-55 +1 query I rowsort label-8691 SELECT 95 / - 13 AS col2 @@ -45795,8 +46333,11 @@ SELECT DISTINCT 87 / - 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 71 -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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 AS col1, 71 AS col1 +---- +55 +71 query I rowsort label-8727 SELECT + 16 + + + 24 * - 37 * 80 * - CAST ( - COUNT ( * ) AS INTEGER ) + - CAST ( NULL AS INTEGER ) + + CASE - 33 WHEN + 30 * - + COALESCE ( NULLIF ( 46, - 23 * - COUNT ( * ) * + CASE 85 WHEN + 79 THEN NULL WHEN - + AVG ( + + 18 ) + + 59 + - 22 + + + MAX ( - 10 ) + + 64 * 86 * - COUNT ( * ) THEN 87 * - 29 END ), + 16, 7 * + 25 ) * + COUNT ( * ) + 76 * 17 THEN CASE - 23 WHEN + COUNT ( * ) * 78 THEN 52 WHEN - CAST ( NULL AS INTEGER ) * 3 THEN + 78 + + 87 END END * - NULLIF ( - 34 / + 14, NULLIF ( - 79, - 26 * 12 ) * - 88 ) AS col1 @@ -45900,8 +46441,11 @@ SELECT ALL - - 96 * + - 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3455 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-80\)\) \* Int64\(\-44\) \+ Int64\(65\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 80 * + - 44 + + 65 AS col0, COUNT ( * ) AS col0 +---- +-3455 +1 query I rowsort SELECT + + 21 * + 21 @@ -46001,8 +46545,11 @@ NULL # 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 "Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 AS col0, 3 col0 +---- +-64 +3 query I rowsort SELECT ALL - 58 - + - 88 AS col2 @@ -46526,8 +47073,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5833 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \+ Int64\(91\) \* \(\- coalesce\(Int64\(65\), Int64\(\-16\), Int64\(5\) \* Int64\(\-83\)\)\) \+ Int64\(73\) AS col0" at position 0 and "Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 9 + 91 * ( - COALESCE ( 65, - 16, + 5 * - 83 ) ) + + 73 AS col0, 99 AS col0 +---- +-5833 +99 query I rowsort label-8866 SELECT + 15 + 52 - - + NULLIF ( 44, + COUNT ( * ) ) * 98 / - MAX ( ALL - 8 ) AS col0 @@ -46761,8 +47311,12 @@ SELECT DISTINCT - 44 * - 16 * - 69 * 58 + - + 78 AS col1, 56 * - 9 + - + 22 - - # Datafusion - Expected - 90 # Datafusion - Expected - 87 # 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 "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 90 AS col1, 87 AS col1, + + ( - - 58 ) +---- +58 +87 +90 query II rowsort SELECT 95 AS col2, 77 @@ -46849,8 +47403,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - -4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- nullif\(Int64\(5\), Int64\(3\) \* Int64\(\-59\) \* Int64\(80\)\)\)\)\) AS col1" at position 0 and "Int64\(\-87\) \* Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - - NULLIF ( 5, 3 * - 59 * + 80 ) ) col1, - 87 * 50 AS col1 +---- +-4350 +-5 query II rowsort label-8926 SELECT ALL - - 94 AS col0, + COUNT ( * ) @@ -46892,8 +47449,11 @@ SELECT ALL + ( - + 79 ) * + 68 + - 47 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\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 29 AS col2, + 36 AS col2 +---- +-29 +36 query I rowsort label-8934 SELECT - - SUM ( + ( NULLIF ( - 81, 0 ) ) ) AS col2 @@ -46933,8 +47493,11 @@ SELECT - SUM ( DISTINCT 21 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col0" at position 0 and "Int64\(10\) \+ Int64\(\-2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 24 AS col0, 10 + - 2 AS col0 +---- +24 +8 query II rowsort label-8942 SELECT 11 * + NULLIF ( 23, + + 18 * + + COUNT ( * ) * - 83 ), COUNT ( * ) AS col1 @@ -47020,14 +47583,20 @@ SELECT MAX ( - CAST ( + 14 AS INTEGER ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / \(\- Int64\(\-2\)\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) / - - 2 AS col0, 17 AS col0 +---- +17 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 140 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-29\)\) AS col2" at position 0 and "Int64\(\-34\) \+ Int64\(79\) \+ Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( - 29 ) AS col2, - 34 + + + 79 + + + 95 AS col2 +---- +-29 +140 query II rowsort SELECT 70 + 54 AS col1, 75 + + + 75 * - - 37 @@ -47358,8 +47927,11 @@ SELECT - SUM ( 36 ) + + + ( - 5 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2910 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \- \(\- Int64\(94\)\) \* Int64\(32\) \+ Int64\(\-93\) AS col2" at position 0 and "Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 5 - - + 94 * + 32 + + - 93 AS col2, - 76 AS col2 +---- +-76 +2910 query II rowsort label-9022 SELECT - 39 - - COUNT ( * ) * + MAX ( 4 ) AS col2, MIN ( 18 ) @@ -47801,8 +48373,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, - 0 col1 +---- +-1 +0 query I rowsort SELECT + 80 * - + 40 @@ -47874,8 +48449,11 @@ SELECT + + NULLIF ( + 29, + 18 / MAX ( 93 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 392 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* Int64\(52\) \+ \(\- Int64\(24\)\) 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 II valuesort SELECT ALL 8 * + 52 + - ( 24 ) AS col0, + COUNT ( ALL + 37 ) AS col0 +---- +1 +392 query II rowsort SELECT + 8, 58 + + 0 AS col0 @@ -47938,8 +48516,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * 63 AS col0, 27 AS col0 +---- +27 +63 query I rowsort SELECT DISTINCT + 83 * NULLIF ( + 55, + 14 ) @@ -47987,8 +48568,12 @@ 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\(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\. +query III valuesort SELECT ALL COUNT ( * ) / + 78 AS col2, - 83 * 38 + 11 AS col2, - COUNT ( * ) +---- +-1 +-3143 +0 query II rowsort label-9141 SELECT ALL - 92 + + 33 - - 35 / + 54 * 3 col2, 72 AS col0 @@ -48493,8 +49078,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( 28, - MAX ( + 87 ) ) + + MIN ( DISTINCT + 62 ) AS col2, 11 * + COUNT ( * ) + + 70 AS col2 +---- +34 +81 query I rowsort label-9239 SELECT ALL - - 99 * 19 / + COALESCE ( - COUNT ( * ), + CAST ( - 55 AS INTEGER ), - 9 / + 12 + + - ( 55 ) ) * 80 + + - 90 + 66 + - + 36 * + - CASE 78 WHEN + + 82 / - 80 + - + COUNT ( * ) - - 0 THEN - 70 * + 33 END AS col1 @@ -48552,8 +49140,11 @@ SELECT DISTINCT + - 82 + + - 30 * 34 + - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-95\)\) AS col1" at position 0 and "min\(Int64\(38\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 95 AS col1, MIN ( 38 ) AS col1 +---- +38 +95 query I rowsort SELECT - - 65 + + + 94 AS col1 @@ -48899,8 +49490,11 @@ SELECT ALL 81 - - 32 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ \(\- Int64\(\-17\)\) AS col1" at position 0 and "Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4 + - - 17 AS col1, - 94 col1 +---- +-94 +21 query I rowsort SELECT 89 + + 20 - + 42 + + + 29 @@ -48983,8 +49577,11 @@ SELECT ALL + 39 * + 85 + 51 + - 11 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\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 62 AS col0, 49 AS col0 +---- +49 +62 query I rowsort label-9330 SELECT - - 64 * - + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) * + + 7 @@ -49000,8 +49597,11 @@ SELECT + - 1, - 48 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, 82 AS col2 +---- +1 +82 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -49315,8 +49915,11 @@ SELECT - ( + ( + 20 ) ), - 59 * 53 / - 13 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 285617 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(79\)\) \* \(\- Int64\(42\)\) \* Int64\(\-86\) \+ Int64\(43\) \* \(\- Int64\(\-6\)\) \+ Int64\(11\) AS col2" at position 0 and "sum\(DISTINCT Int64\(\-85\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( DISTINCT 79 ) * - + 42 * + ( - 86 ) + 43 * - - 6 + + 11 col2, SUM ( DISTINCT - 85 ) AS col2 +---- +-85 +285617 query I rowsort label-9394 SELECT DISTINCT - 2 / + 56 @@ -49374,8 +49977,11 @@ 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\(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\. +query II valuesort SELECT 33 * + COALESCE ( 2, - 78 ) AS col0, 30 / - COUNT ( * ) - - + 23 + 99 * + 67 * + 73 AS col0 +---- +484202 +66 query II rowsort label-9405 SELECT ALL + 45 + + 98 AS col1, - COUNT ( * ) @@ -49473,8 +50079,11 @@ 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\(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\. +query II valuesort SELECT - NULLIF ( - - 13, + 43 / 91 ) + - + ( + + 15 ) + + 84 AS col0, - NULLIF ( + - 55, + 31 - + COUNT ( * ) + 89 - - - 59 ) / - 36 + - 78 + - 57 - 94 AS col0 +---- +-230 +56 query I rowsort SELECT 76 * - 25 @@ -49494,8 +50103,11 @@ SELECT COALESCE ( ( 52 ), - 14, - 74 * COUNT ( * ) ) * 96 / 77 / - 21 + CAST ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(4\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(Int64\(\-44\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - + 4 ) AS col0, - COUNT ( * ) * CAST ( - 44 AS INTEGER ) AS col0 +---- +-4 +44 query I rowsort label-9428 SELECT - ( CASE + 27 WHEN + 33 * - + 56 - + 74 + - + 61 THEN - - 14 END ) * + CAST ( COUNT ( DISTINCT + 92 ) AS INTEGER ) + COUNT ( * ) + + 43 @@ -49573,8 +50185,11 @@ SELECT DISTINCT 68 + - 93 + - + 79 * - ( + 66 ) * + - 91 * - - 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \- Int64\(\-68\) AS col2" at position 0 and "Int64\(13\) \+ Int64\(\-54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 14 - - 68 AS col2, 13 + - 54 AS col2 +---- +-41 +82 query I rowsort SELECT - NULLIF ( + 88, - 57 * + + 11 ) @@ -49589,8 +50204,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) + + 80 AS col2, 86 AS col2 +---- +79 +86 query II rowsort SELECT DISTINCT ( + + 50 ) - 62 + - 44 * 27 AS col0, - 94 * + 11 AS col1 @@ -49861,8 +50479,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 90 AS col2, 26 AS col2 +---- +26 +90 query II rowsort label-9497 SELECT DISTINCT + 5 AS col1, - 79 * + 1 - CASE + 45 WHEN + 21 THEN + - CASE WHEN NOT 97 IS NULL THEN - COUNT ( * ) END * - 35 WHEN COUNT ( * ) * 71 THEN NULL END + - COUNT ( * ) @@ -50071,8 +50692,11 @@ SELECT 42 * - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- nullif\(Int64\(89\), CAST\(NULL AS Int32\)\)\) \+ \(\- Int64\(\-77\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) + + - NULLIF ( 89, CAST ( NULL AS INTEGER ) ) + - - 77 AS col0, + COUNT ( * ) col0 +---- +1 +NULL query I rowsort label-9537 SELECT COALESCE ( + 34, + COUNT ( * ) ) + 41 + 61 * 7 @@ -50617,8 +51241,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "Int64\(32\) \+ count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 60 AS col0, + 32 + + COUNT ( * ) * CAST ( NULL AS INTEGER ) col0 +---- +60 +NULL query I rowsort label-9645 SELECT + 35 * - - 30 + CAST ( 91 AS INTEGER ) + - COUNT ( * ) / - CAST ( 16 AS INTEGER ) * + 68 AS col0 @@ -50730,8 +51357,11 @@ SELECT DISTINCT - 16 * - - 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col2" at position 0 and "coalesce\(Int64\(57\), Int64\(\-12\) \+ Int64\(81\) \* Int64\(82\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 77 AS col2, COALESCE ( + 57, - 12 + 81 * 82 ) AS col2 +---- +57 +77 query I rowsort SELECT 71 * + 95 @@ -51048,8 +51678,11 @@ SELECT + - 32 * + 9 + + - 19 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6149 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-77\)\) \* Int64\(80\) \+ Int64\(\-11\) AS col0" at position 0 and "Int64\(\-41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 77 * + + 80 + + - 11 col0, - 41 AS col0 +---- +-41 +6149 query I rowsort label-9729 SELECT + MIN ( DISTINCT + 10 ) / + 48 AS col1 @@ -51175,8 +51808,11 @@ SELECT ALL + 74 - + 82 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 45 AS col0, + COUNT ( * ) AS col0 +---- +-45 +1 query I rowsort label-9753 SELECT ALL COALESCE ( + CAST ( NULL AS INTEGER ), COALESCE ( - + 4, - NULLIF ( - CASE WHEN NOT NULL NOT BETWEEN ( NULL ) AND ( NULL ) THEN NULL ELSE - 19 END, 27 + 50 ) ), 51 ) @@ -51431,8 +52067,11 @@ SELECT ALL - 53 + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-81\) AS col1" at position 0 and "Int64\(2\) / Int64\(35\) \* nullif\(CASE Int64\(45\) WHEN Int64\(45\) \+ Int64\(1\) \* CAST\(NULL AS Int32\) THEN Int64\(77\) END, count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(8\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) * - 81 col1, 2 / + 35 * + + NULLIF ( CASE + 45 WHEN 45 + 1 * CAST ( NULL AS INTEGER ) THEN 77 END, + COUNT ( * ) + + 8 ) AS col1 +---- +81 +NULL query I rowsort label-9803 SELECT CASE + 36 WHEN 8 * ( - 87 ) + - + 38 THEN NULL ELSE 61 + COUNT ( * ) * 57 END AS col1 @@ -52025,8 +52664,11 @@ SELECT 89 + - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col1" at position 0 and "Int64\(\-24\) \+ Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 25 col1, - 24 + - 25 AS col1 +---- +-25 +-49 query II rowsort SELECT + 29 col2, - 14 - + 50 @@ -52439,8 +53081,11 @@ SELECT 49, 60 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) / Int64\(2\) AS col1" at position 0 and "Int64\(84\) \- Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 29 / + + ( ( 2 ) ) AS col1, 84 - + 30 AS col1 +---- +-14 +54 query I rowsort label-9996 SELECT ALL ( - CAST ( - 83 AS INTEGER ) ) @@ -52450,8 +53095,11 @@ SELECT ALL ( - CAST ( - 83 AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "Int64\(\-96\) \+ Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 44 AS col1, - 96 + + 17 AS col1 +---- +-79 +44 query I rowsort label-9998 SELECT + + 68 / - - 96 * 14 diff --git a/data/sqlite/random/expr/slt_good_68.slt b/data/sqlite/random/expr/slt_good_68.slt index 73db0b8..209bfd4 100644 --- a/data/sqlite/random/expr/slt_good_68.slt +++ b/data/sqlite/random/expr/slt_good_68.slt @@ -441,14 +441,20 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 27 ) AS col2, 89 * + - COUNT ( * ) AS col2 +---- +-27 +-89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -10103808 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col1" at position 0 and "Int64\(52\) \* Int64\(64\) \* \(\- \(\- Int64\(33\)\)\) \* Int64\(4\) \* Int64\(\-23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 56 AS col1, + 52 * 64 * - + ( - + 33 ) * + 4 * - 23 col1 +---- +-10103808 +56 query I rowsort SELECT DISTINCT + - ( - 34 ) AS col1 @@ -504,8 +510,11 @@ SELECT DISTINCT + - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 70 AS col1, 75 AS col1 +---- +70 +75 query I rowsort SELECT - + 79 * - + 55 @@ -532,8 +541,11 @@ SELECT ALL + 24 col0, 9 - + 65 + + 46 * + 90 * - 39 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) AS col2 +---- +1 +NULL query I rowsort SELECT ALL + - 70 * - 78 @@ -745,8 +757,11 @@ SELECT 32 AS col2, - 93 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 122 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col0" at position 0 and "\(\- \(\- max\(Int64\(49\)\)\)\) \- \(\- Int64\(\-14\)\) \+ Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 AS col0, - ( - MAX ( 49 ) ) - - - 14 + + 87 AS col0 +---- +122 +35 query I rowsort label-137 SELECT ALL + 87 + + + 87 / - 30 @@ -808,8 +823,11 @@ SELECT ALL - - 91 * - + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col0" at position 0 and "Int64\(\-95\) \+ Int64\(13\) \+ max\(DISTINCT coalesce\(\(\- nullif\(\(\- CAST\(Int64\(\-33\) AS Int32\)\), Int64\(85\)\)\), \(\- Int64\(\-13\)\) \* Int64\(35\) \+ \(\- Int64\(\-42\)\) / \(\- CAST\(Int64\(30\) AS Int32\)\)\)\) \- Int64\(\-47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 74 AS col0, - 95 + 13 + + MAX ( DISTINCT COALESCE ( - + NULLIF ( - + CAST ( - 33 AS INTEGER ), + 85 ), - - 13 * + 35 + - ( - 42 ) / - CAST ( 30 AS INTEGER ) ) ) - - 47 AS col0 +---- +-68 +74 query I rowsort label-149 SELECT + 0 * - MIN ( + 55 ) + - 46 * + 76 AS col0 @@ -1116,8 +1134,11 @@ SELECT ALL + COUNT ( * ) AS col1, 73 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-3\) \+ Int64\(74\) AS col1" at position 0 and "Int64\(40\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) * - COUNT ( * ) * + - 3 + + 74 AS col1, 40 * + COUNT ( * ) AS col1 +---- +40 +77 query II rowsort label-207 SELECT - 58 AS col1, + ( + + ( - 77 ) ) - + ( COUNT ( * ) ) col0 @@ -1351,8 +1372,12 @@ SELECT - + ( ( - + 28 ) ) col0 # Datafusion - Expected - 195 # Datafusion - Expected - 4510 # Datafusion - Expected - 390 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \+ Int64\(78\) \+ Int64\(18\) AS col2" at position 0 and "Int64\(6\) \* Int64\(65\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 99 + 78 + 18 AS col2, - 82 * - 55, + 6 * 65 AS col2 +---- +195 +390 +4510 query I rowsort label-251 SELECT DISTINCT - - ( - - 92 ) / + 93 * + 96 * - - 40 AS col0 @@ -1731,14 +1756,20 @@ SELECT - + 95 * - CAST ( 12 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT \(\- Int64\(2\)\)\) \* Int64\(\-9\) AS col1" at position 0 and "Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( DISTINCT - ( + 2 ) ) * - 9 AS col1, 70 AS col1 +---- +-9 +70 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5680 # Datafusion - Expected - -819 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(\-71\) AS col0" at position 0 and "\(\- CASE Int64\(35\) WHEN Int64\(38\) THEN NULL WHEN CAST\(NULL AS Int32\) THEN Int64\(81\) \* Int64\(60\) \* \(\- Int64\(\-70\)\) \* Int64\(\-14\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(93\)\) ELSE Int64\(39\) \* Int64\(21\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-5680 +-819 query I rowsort label-325 SELECT ALL ( - CAST ( NULL AS INTEGER ) ) * - 22 @@ -1807,8 +1838,11 @@ SELECT ALL - 66 + - + 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \+ \(\- \(\- min\(\(\- Int64\(\-61\)\)\)\)\) \+ \(\- Int64\(5\)\) \- \(\- Int64\(\-4\)\) \* count\(DISTINCT Int64\(\-99\)\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 11 + - - MIN ( - ( - 61 ) ) + - + 5 - - - 4 * + COUNT ( DISTINCT - 99 ) AS col2, 56 AS col2 +---- +56 +63 query II rowsort label-338 SELECT 31 col1, + COUNT ( * ) + - 67 @@ -1980,8 +2014,12 @@ SELECT ALL 32 + 58 # Datafusion - Expected - 6 # Datafusion - Expected - 64 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- Int64\(64\)\)\)\) AS col0" at position 1 and "Int64\(\-76\) \+ \(\- \(\- Int64\(92\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 6 AS col2, - MAX ( ( - + 64 ) ) AS col0, - 76 + - - ( 92 ) AS col0 +---- +16 +6 +64 query I rowsort label-371 SELECT ALL 8 + COUNT ( * ) * + + 77 @@ -2265,8 +2303,11 @@ SELECT DISTINCT + - SUM ( DISTINCT - + 93 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 168 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(28\)\) / count\(Int64\(13\)\) AS col1" at position 0 and "Int64\(79\) \+ Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 28 / + COUNT ( + + 13 ) AS col1, 79 + 89 AS col1 +---- +-28 +168 query I rowsort SELECT ALL - 16 * + + 64 + - 80 - - - 14 @@ -2276,8 +2317,11 @@ 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\(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\. +query RI valuesort 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 +---- +-88 +NULL query I rowsort label-428 SELECT - 86 / - 16 AS col0 @@ -2713,8 +2757,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -224776 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \* Int64\(83\) \* Int64\(64\) \+ Int64\(\-56\) \* Int64\(\-65\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 43 * + + 83 * 64 + + ( - 56 ) * - 65 AS col1, + 37 AS col1 +---- +-224776 +37 query I rowsort label-511 SELECT 28 * CASE + 52 WHEN MAX ( 89 ) * - 12 THEN + 32 END @@ -2767,8 +2814,11 @@ SELECT ALL 54 * ( - 27 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* \(\- count\(\(\- Int64\(33\)\)\)\) AS col2" at position 0 and "Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 43 * - COUNT ( - + 33 ) AS col2, - 38 AS col2 +---- +-38 +-43 query I rowsort SELECT 46 + 94 @@ -2804,8 +2854,11 @@ SELECT ALL - 12 * 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "Int64\(\-99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 20 AS col1, - 99 AS col1 +---- +-99 +20 query I rowsort SELECT ALL - 20 + - 24 + + 70 @@ -2930,8 +2983,12 @@ SELECT + 54 * - + 21 * + 30 # Datafusion - Expected - 1 # Datafusion - Expected - 440 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \* Int64\(10\) AS col0" at position 1 and "Int64\(\-78\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT COUNT ( + 62 ) AS col2, 44 * + 10 AS col0, - 78 AS col0 +---- +-78 +1 +440 query I rowsort SELECT ALL 42 + + - 18 AS col1 @@ -3080,8 +3137,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( 82 ) AS col0, - 99 AS col0 +---- +-99 +82 query I rowsort SELECT - 34 * + 83 + - 83 AS col2 @@ -3237,8 +3297,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 * ( - 8 ) AS col1, - COUNT ( * ) col1 +---- +-1 +-688 query II rowsort label-610 SELECT 22 + 79 + - + ( + 79 ) col0, - 98 + 57 / 2 AS col1 @@ -3299,8 +3362,11 @@ SELECT 58 * + 13 + - 16 - + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \+ Int64\(98\) \+ \(\- CAST\(NULL AS Int32\)\) \+ \(\- CASE Int64\(\-94\) WHEN Int64\(24\) THEN count\(Int64\(\-26\)\) ELSE \(\- Int64\(\-60\)\) END\) \* Int64\(\-78\) AS col0" at position 0 and "Int64\(37\) \+ \(\- CASE Int64\(93\) WHEN Int64\(16\) \* Int64\(58\) \* Int64\(\-36\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-56\) \* Int64\(48\) \* Int64\(2\) \* sum\(Int64\(68\)\) \* \(\- Int64\(17\)\) \* nullif\(\(\- Int64\(\-4\)\), Int64\(\-61\) \+ Int64\(16\) \+ Int64\(22\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- coalesce\(\(\- Int64\(73\)\), sum\(DISTINCT Int64\(\-85\)\) \* Int64\(17\) \+ Int64\(\-22\) \* Int64\(\-68\), CAST\(Int64\(82\) AS Int32\) / Int64\(39\)\)\) \+ Int64\(\-27\) \* Int64\(43\)\) THEN CAST\(NULL AS Int32\) \* Int64\(24\) WHEN nullif\(Int64\(\-26\), nullif\(Int64\(83\), \(\- min\(DISTINCT Int64\(54\)\)\) \+ Int64\(\-76\)\) \+ Int64\(\-22\)\) THEN NULL ELSE NULL END\) \+ Int64\(8\) \* Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +NULL +NULL query II rowsort SELECT 95 AS col0, 54 * - 63 + - + 42 - 42 - 53 @@ -3348,8 +3414,11 @@ SELECT DISTINCT - 14 + 54 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col1" at position 0 and "Int64\(\-15\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 6 AS col1, - 15 * - + COUNT ( * ) * + COUNT ( * ) AS col1 +---- +15 +6 query II rowsort label-631 SELECT - 8 AS col2, COUNT ( * ) * - + 81 * + 24 * + MIN ( DISTINCT ( + CAST ( + 14 AS INTEGER ) ) ) @@ -3458,8 +3527,11 @@ 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\(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\. +query II valuesort 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 +---- +-5793 +81 query II rowsort label-652 SELECT COALESCE ( COUNT ( * ), 11 ) * + 80 / - - 34 AS col1, 49 @@ -3493,8 +3565,11 @@ 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\(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\. +query II valuesort SELECT ( 95 ) * + - COUNT ( * ) * - 43 AS col1, + 64 AS col1 +---- +4085 +64 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -3735,8 +3810,12 @@ NULL # Datafusion - Expected - -6 # Datafusion - Expected - -68 # Datafusion - Expected - 280 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col1" at position 1 and "Int64\(8\) \* \(\- Int64\(\-35\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 6 * + ( ( - COUNT ( - 83 ) ) ), - 68 AS col1, 8 * - - 35 AS col1 +---- +-6 +-68 +280 query I rowsort SELECT DISTINCT 66 * + 1 AS col1 @@ -3853,8 +3932,11 @@ SELECT 20 AS col2, 52 * + COUNT ( * ) + - - 23 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 2160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "Int64\(90\) \* \(\- \(\- \(\- Int64\(\-24\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 AS col1, 90 * - - ( - - 24 ) AS col1 +---- +2160 +25 query I rowsort label-726 SELECT ALL + COUNT ( * ) + 1 AS col2 @@ -3921,8 +4003,11 @@ SELECT - 79 * 16 + + - 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 49 AS col0, 49 col0 +---- +49 +49 query I rowsort label-739 SELECT 42 * - MIN ( + - 47 ) col2 @@ -4272,8 +4357,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 95 AS col0, 27 / + ( 73 ) * - - 80 * + COUNT ( * ) * - 96 AS col0 +---- +0 +95 query I rowsort label-806 SELECT - COUNT ( * ) - - 37 AS col1 @@ -4838,8 +4926,11 @@ SELECT + 7 - - + 93 + + 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - -102 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \- \(\- Int64\(\-93\)\) \+ Int64\(\-86\) \- Int64\(0\) \* \(\- Int64\(\-25\)\) \+ \(\- Int64\(12\)\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 89 - - - 93 + - 86 - 0 * - - 25 + + - ( + + 12 ) AS col0, + 31 AS col0 +---- +-102 +31 query I rowsort label-913 SELECT + MAX ( - - 59 ) * - 26 - + 16 @@ -5331,8 +5422,11 @@ SELECT ALL ( 30 ) * - 17 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- CAST\(NULL AS Int32\)\)\) AS Int32\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + - - COUNT ( * ) AS col0, - ( + COUNT ( * ) ) col0 +---- +-1 +NULL query I rowsort SELECT DISTINCT + - 99 + ( - 93 ) @@ -5590,8 +5684,11 @@ SELECT DISTINCT + NULLIF ( + 3, + 94 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2716 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \* Int64\(28\) 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 IR valuesort SELECT ALL - 97 * 28 AS col2, CAST ( NULL AS FLOAT8 ) AS col2 +---- +-2716 +NULL query I rowsort label-1058 SELECT + 22 + + 87 - COUNT ( * ) * + 27 @@ -5712,8 +5809,11 @@ SELECT DISTINCT + + 10 / - ( 15 ) + - 93 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) / Int64\(13\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 31 / + ( 13 ) AS col0, + 31 AS col0 +---- +2 +31 query I rowsort SELECT ALL 70 * + 57 AS col0 @@ -5739,8 +5839,12 @@ SELECT ALL - 96 * - + 6 * 35 + - SUM ( 86 ) * + 54 # Datafusion - Expected - 19 # Datafusion - Expected - NULL # Datafusion - Expected - -806 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-19\)\)\) AS col0" at position 0 and "min\(\(\- CAST\(NULL AS Int32\)\)\) \- Int64\(\-83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - SUM ( - 19 ) AS col0, MIN ( - CAST ( NULL AS INTEGER ) ) - - 83 AS col0, 26 * - + 31 AS col0 +---- +-806 +19 +NULL query I rowsort SELECT - 81 * - - 35 col2 @@ -5755,8 +5859,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 2 AS col2, - COUNT ( * ) * + 79 AS col2 +---- +-2 +-79 query I rowsort SELECT 10 + + 88 @@ -5792,8 +5899,11 @@ SELECT DISTINCT 72 + 35 + + 82 * + + 15 + - 73 / + - 74 * - 51 * 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "CAST\(Int64\(\-61\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 AS col0, + CAST ( - 61 AS INTEGER ) AS col0 +---- +-61 +7 query I rowsort label-1097 SELECT DISTINCT COUNT ( * ) / + + 24 AS col0 @@ -5927,8 +6037,11 @@ SELECT + COUNT ( * ), 4 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -336 # Datafusion - Expected - 1368 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* Int64\(14\) / Int64\(\-1\) AS col0" at position 0 and "Int64\(36\) \* Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 * + 14 / + - 1 col0, + 36 * + 38 AS col0 +---- +-336 +1368 query II rowsort SELECT ALL 99 AS col0, 43 @@ -6844,8 +6957,11 @@ SELECT - 37 * ( - COUNT ( * ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(61\)\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( DISTINCT 61 ) AS col2, + 66 AS col2 +---- +61 +66 query I rowsort label-1301 SELECT ALL + CASE 79 WHEN 91 - COUNT ( * ) * - 39 THEN 17 WHEN 26 THEN + 34 ELSE NULL END @@ -7541,8 +7657,11 @@ SELECT - 61 + + 32 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1042 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(5\)\)\) \- Int64\(11\) \* Int64\(91\) \+ \(\- max\(Int64\(36\)\)\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( 5 ) - + 11 * 91 + + - MAX ( ALL + 36 ) AS col0, 13 AS col0 +---- +-1042 +13 query II rowsort label-1437 SELECT - 47, - 9 * 29 / + 43 AS col1 @@ -7938,8 +8057,11 @@ SELECT ALL 66 * - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 125 # Datafusion - Expected - -850 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ Int64\(73\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- CAST\(\(\- CASE Int64\(\-34\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN avg\(DISTINCT Int64\(18\)\) \+ Int64\(81\) THEN max\(DISTINCT Int64\(\-31\)\) ELSE Int64\(85\) \* \(\- nullif\(Int64\(\-10\), Int64\(44\) / Int64\(73\)\)\) END\) AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-850 +125 query I rowsort label-1512 SELECT 59 * + CAST ( NULL AS INTEGER ) @@ -8158,8 +8280,11 @@ SELECT ALL ( 34 ) AS col0 # 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 col0" at position 0 and "Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 col0, + 44 AS col0 +---- +44 +62 query II rowsort label-1553 SELECT DISTINCT COUNT ( * ) + COUNT ( * ) + - - 70 * + + 93 AS col2, + 19 AS col0 @@ -8289,8 +8414,11 @@ SELECT ALL 60 * + 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -924 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(77\)\) \* Int64\(12\) AS col1" at position 0 and "Int64\(70\) / Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 77 * 12 AS col1, + 70 / + 59 AS col1 +---- +-924 +1 query I rowsort SELECT + ( - + NULLIF ( 0, + 78 ) ) @@ -8315,8 +8443,11 @@ SELECT + CAST ( 7 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + - CAST ( NULL AS INTEGER ) ) AS col1, + 11 AS col1 +---- +11 +NULL query I rowsort label-1583 SELECT + COUNT ( * ) * + - 13 + - + 16 @@ -8422,8 +8553,11 @@ SELECT ALL - COUNT ( * ) - + COUNT ( * ) + - - 60 + - 47 AS col2 # 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\(\-11\) \- Int64\(33\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 11 - 33 AS col1, 59 AS col1 +---- +-44 +59 query I rowsort SELECT ALL 64 * + 60 + 93 + - 71 + - 15 + + - 78 * + 91 @@ -8468,8 +8602,11 @@ SELECT DISTINCT - + 71 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \- Int64\(1\) AS col0" at position 0 and "Int64\(\-34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 - ( 1 ) AS col0, - 34 AS col0 +---- +-34 +16 query I rowsort SELECT ( + 51 ) * + 31 AS col2 @@ -8642,8 +8779,11 @@ SELECT ALL + NULLIF ( 8, - 52 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(3\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 * + COUNT ( * ) AS col0, 3 + + COUNT ( * ) AS col0 +---- +4 +95 query I rowsort SELECT + 89 - + 81 AS col1 @@ -9000,8 +9140,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "Int64\(\-23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 2 AS col0, - 23 AS col0 +---- +-23 +2 query II rowsort label-1712 SELECT ALL - 42, NULLIF ( + - 54, - COUNT ( * ) ) AS col0 @@ -9770,8 +9913,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + 43 * 83 * 39 * + - COUNT ( * ) / - COUNT ( * ) AS col1, - 65 AS col1 +---- +-65 +139191 query I rowsort label-1858 SELECT COUNT ( * ) * - - 78 * - 56 * + + COUNT ( * ) AS col0 @@ -9957,8 +10103,11 @@ SELECT - + COUNT ( + - 81 ) * + 33 * + - 25 + 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 26 AS col0, COUNT ( * ) AS col0 +---- +-26 +1 query I rowsort SELECT - - 67 + - + 45 AS col1 @@ -10522,8 +10671,11 @@ SELECT 37 + + 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(69\) AS Int32\) AS col1" at position 0 and "Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( + 69 AS INTEGER ) AS col1, - 18 col1 +---- +-18 +69 query I rowsort label-1999 SELECT 59 / 92 * + + CAST ( NULL AS INTEGER ) + - 74 AS col2 @@ -10642,8 +10794,11 @@ SELECT + 81 * 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(CAST\(NULL AS Int32\)\) \+ Int64\(23\) AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( + CAST ( NULL AS INTEGER ) ) + + 23 AS col0, + 86 AS col0 +---- +86 +NULL query I rowsort label-2022 SELECT + 66 + - 55 - 97 * COUNT ( * ) col1 @@ -10873,8 +11028,11 @@ SELECT ALL - 75 * 39 * MAX ( ALL + - ( - 46 ) ) + - 51, - 5 * 29 * + 31 - + - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 51 AS col2, + 11 AS col2 +---- +11 +51 query I rowsort label-2065 SELECT DISTINCT - COALESCE ( 80, + 83 * - + 80 + - - 39 * - 7 + 61 * + 11 ) / - 33 @@ -11266,8 +11424,11 @@ SELECT ALL + ( + COUNT ( * ) ) + - + 10 + - 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 4312 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col2" at position 0 and "Int64\(\-88\) \* Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 68 AS col2, - 88 * + - 49 AS col2 +---- +-68 +4312 query I rowsort label-2138 SELECT 10 / + MAX ( - + 98 ) @@ -11431,8 +11592,11 @@ SELECT + COUNT ( 96 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 198 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \+ Int64\(\-80\) AS col1" at position 0 and "Int64\(22\) \* Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 81 + - 80 AS col1, 22 * + 9 AS col1 +---- +1 +198 query I rowsort label-2169 SELECT ALL + 13 * - CAST ( NULL AS INTEGER ) - - + MIN ( + + 6 ) AS col2 @@ -11625,8 +11789,11 @@ 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\(25\) / Int64\(66\) \+ Int64\(98\) AS col1" at position 0 and "Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 25 / + 66 + + + 98 AS col1, 30 AS col1 +---- +30 +98 query I rowsort SELECT ALL 27 * + 83 AS col0 @@ -11792,8 +11959,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 109 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "min\(Int64\(43\)\) \+ \(\- \(\- Int64\(66\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 43 AS col1, MIN ( + 43 ) + - - ( 66 ) AS col1 +---- +109 +43 query I rowsort SELECT + NULLIF ( 53, + 11 + + 77 ) + - - 33 * 72 @@ -11924,8 +12094,11 @@ SELECT DISTINCT 99 * - - 94, 17 + 11 + - - 9 / - - 57 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 "Int64\(94\) / Int64\(\-60\) AS col0" at position 0 and "\(\- nullif\(Int64\(\-48\), Int64\(79\) / Int64\(33\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 / - 60 AS col0, - NULLIF ( - 48, + 79 / 33 ) AS col0 +---- +-1 +48 query I rowsort SELECT 29 * 14 @@ -11957,8 +12130,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 48 + - 13 col0, - COUNT ( * ) AS col0 +---- +-1 +35 query I rowsort label-2269 SELECT ALL - + COUNT ( * ) + COUNT ( * ) AS col0 @@ -12340,8 +12516,11 @@ SELECT ( 95 ) + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 18 / + COUNT ( * ) AS col2, + 15 col2 +---- +15 +18 query I rowsort SELECT - - ( 75 ) AS col1 @@ -12399,8 +12578,11 @@ NULL # 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 "Int64\(\-30\) AS col1" at position 0 and "Int64\(\-24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 30 AS col1, - 24 AS col1 +---- +-24 +-30 query I rowsort label-2353 SELECT 42 * 76 - + - COUNT ( * ) + - - 30 * 17 * + 92 * - 6 @@ -12421,8 +12603,11 @@ SELECT 23 * 84 / 29, - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 43 AS col1, + 80 AS col1 +---- +43 +80 query II rowsort label-2357 SELECT - 46 * - 9 + + - 33 AS col0, COUNT ( * ) * + 59 * - + 68 @@ -12635,8 +12820,11 @@ 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\(1\)\) AS count\(\*\)\) \- Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 25 AS col1, - 83 * - COUNT ( * ) - + 15 AS col1 +---- +25 +68 query I rowsort SELECT DISTINCT + NULLIF ( + 34, 62 ) @@ -13165,8 +13353,11 @@ SELECT DISTINCT + COUNT ( * ) + 64 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \+ Int64\(\-59\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 41 + - 59 AS col2, 56 AS col2 +---- +-18 +56 query I rowsort label-2498 SELECT ALL + + ( + COUNT ( * ) ) + - 93 + + + 34 AS col2 @@ -13837,8 +14028,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col2, 87 col2 +---- +-1 +87 query I rowsort SELECT ALL - 94 * + 7 col2 @@ -14348,8 +14542,11 @@ SELECT DISTINCT COALESCE ( - ( + 73 ), - - 28 + - - 79, + + 39 ) col0 # 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 "Int64\(77\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 77 AS col0, 90 AS col0 +---- +77 +90 query I rowsort SELECT ALL - + 96 + + 7 AS col2 @@ -16220,8 +16417,11 @@ SELECT ALL + COUNT ( + 10 ) + + 44 * - COUNT ( * ) * - - 28 * + - 42 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 "Int64\(1\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 1 AS col2, 93 AS col2 +---- +1 +93 query II rowsort label-3085 SELECT ALL 23 AS col1, + COALESCE ( 80, + + NULLIF ( - + MAX ( ALL + ( 65 ) ), - 1 ) * - 88, 22 + + 92 ) * - 98 + + COALESCE ( 9, ( ( 23 ) ) ) * - ( 79 + + CAST ( - 95 AS INTEGER ) ) AS col0 @@ -16448,8 +16648,11 @@ SELECT 0 * + 77 AS col0, 13 AS col1, + COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 3762 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \- Int64\(49\) AS col2" at position 0 and "Int64\(57\) \* Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 49 - + + 49 AS col2, 57 * 66 AS col2 +---- +0 +3762 query III rowsort label-3128 SELECT ( - + 34 ), - 50 AS col1, - - 77 * + + COUNT ( - + ( COALESCE ( ( + 83 ), 7 ) ) ) AS col2 @@ -16559,8 +16762,11 @@ SELECT ALL 63 + - + COUNT ( * ) # 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 "Int64\(\-3\) AS col2" at position 0 and "Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 3 AS col2, 39 col2 +---- +-3 +39 query I rowsort SELECT ALL + 72 * - - 64 AS col2 @@ -17126,8 +17332,11 @@ SELECT - - COALESCE ( - 58, - 83, - MIN ( 72 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(\-95\)\)\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( DISTINCT + - 95 ) AS col0, 93 AS col0 +---- +93 +95 query I rowsort label-3256 SELECT 74 * - COUNT ( + + ( + 79 ) ) AS col0 @@ -17179,8 +17388,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( DISTINCT - 94 ) AS col2, + COUNT ( * ) * 56 col2 +---- +56 +94 query I rowsort SELECT ALL 33 * ( - 16 ) AS col1 @@ -17380,8 +17592,11 @@ SELECT DISTINCT 56 + + 45 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 AS col1, + COUNT ( * ) AS col1 +---- +1 +76 query I rowsort label-3304 SELECT + 35 * + - MAX ( - - 66 ) + - COUNT ( * ) @@ -17858,8 +18073,11 @@ 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 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 II valuesort SELECT - NULLIF ( - + 65, + + 20 + COUNT ( * ) + + ( - 1 ) ) AS col2, 83 + - 51 AS col2 +---- +32 +65 query I rowsort SELECT - 56 + + - 8 AS col0 @@ -17947,8 +18165,12 @@ SELECT - 60 * COALESCE ( COUNT ( 26 ), - 42 ) + - ( - 21 ) # Datafusion - Expected - NULL # Datafusion - Expected - NULL # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) / Int64\(\-46\) \+ Int64\(99\) \+ CAST\(NULL AS Float64\) / Int64\(\-77\) \+ \(\- Int64\(1\)\) \+ Int64\(\-28\) \* count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(63\) \* CAST\(NULL AS Int32\) / Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RII valuesort 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 +---- +-2 +NULL +NULL query II rowsort label-3412 SELECT + CAST ( NULL AS INTEGER ), COUNT ( * ) * 17 AS col0 @@ -18146,8 +18368,11 @@ SELECT 9 + - 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 51 AS col2, 60 AS col2 +---- +-51 +60 query I rowsort label-3450 SELECT DISTINCT 64 + - COUNT ( * ) @@ -18331,8 +18556,11 @@ SELECT ( + - 43 ) * - ( - COUNT ( * ) ) + + + ( 74 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 75578 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-53\)\) \* Int64\(23\) \* max\(Int64\(\-62\)\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( + - 53 ) * 23 * MAX ( + - 62 ) AS col1, 12 AS col1 +---- +12 +75578 query I rowsort label-3486 SELECT CASE CAST ( NULL AS INTEGER ) WHEN + 60 + - 92 THEN NULL WHEN - + CASE SUM ( DISTINCT - 28 ) WHEN 36 * - - 65 + 69 * - CAST ( NULL AS INTEGER ) + - 27 THEN + - 78 WHEN + 30 + - 93 - + 18 + - 75 * COUNT ( * ) + - - 70 + 61 * 47 THEN 70 * 39 ELSE - AVG ( DISTINCT ( + 96 ) ) END THEN - MIN ( DISTINCT + 4 ) / COUNT ( DISTINCT 17 ) - + COUNT ( * ) END + - 54 AS col2 @@ -18495,8 +18723,11 @@ SELECT ALL + 76 - + 83 + + ( - MAX ( - 64 ) ) + + 22 + + COALESCE ( - - COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -142 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-3\)\) \* Int64\(\-68\) \+ Int64\(31\) \* Int64\(2\) AS col2" at position 0 and "Int64\(\-43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 3 * - 68 + + 31 * + 2 col2, - 43 AS col2 +---- +-142 +-43 query I rowsort SELECT DISTINCT CASE - - 2 WHEN + - 78 THEN NULL ELSE + + 51 END AS col0 @@ -18506,8 +18737,11 @@ 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\(1\)\) AS count\(\*\)\) \- Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 64 * - - 79 * NULLIF ( 89, + 88 ) AS col1, 14 - 48 * - COUNT ( * ) - - 58 AS col1 +---- +-449984 +120 query I rowsort SELECT + 87 + - - 31 @@ -18662,8 +18896,11 @@ SELECT - 87 / 94, 69 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 136 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col2" at position 0 and "Int64\(82\) \+ Int64\(42\) / Int64\(\-75\) \+ Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 col2, 82 + 42 / + - 75 + + 54 AS col2 +---- +136 +3 query II rowsort SELECT 38 AS col1, 70 @@ -18695,8 +18932,11 @@ 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\(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\. +query II valuesort SELECT - 4 * - + CASE + SUM ( ALL + 94 ) WHEN - - COUNT ( * ) THEN - COUNT ( * ) WHEN - + COUNT ( * ) THEN NULL ELSE NULL END AS col0, 57 / + 3 AS col0 +---- +19 +NULL query I rowsort label-3556 SELECT ALL COUNT ( * ) * COUNT ( DISTINCT - 92 ) @@ -18864,8 +19104,11 @@ SELECT DISTINCT 51 + - - 48 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \+ Int64\(\-53\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 43 + - 53 AS col2, 13 AS col2 +---- +-10 +13 query I rowsort label-3588 SELECT DISTINCT - 30 + - COUNT ( * ) + + 60 @@ -18933,8 +19176,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) * + 2 col1, 70 / + 27 AS col1 +---- +-2 +2 query II rowsort label-3600 SELECT 10 * MAX ( + 75 ) + - ( + + 57 ) AS col0, CAST ( + 12 AS INTEGER ) AS col1 @@ -19820,8 +20066,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \+ \(\- coalesce\(\(\- Int64\(0\)\), CAST\(Int64\(\-33\) AS Int32\), \(\- Int64\(26\)\) / sum\(Int64\(84\)\)\)\) AS col0" at position 0 and "Int64\(25\) \* Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 20 + - COALESCE ( - - 0, CAST ( + ( + - 33 ) AS INTEGER ), + - ( 26 ) / + + SUM ( + 84 ) ) AS col0, 25 * - 1 AS col0 +---- +-25 +20 query I rowsort label-3766 SELECT - COALESCE ( - - 77, - - 47 + COUNT ( * ) ) @@ -20069,8 +20318,11 @@ 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\(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\. +query II valuesort SELECT ALL - - COUNT ( * ) AS col1, - 64 * - - 72 AS col1 +---- +-4608 +1 query I rowsort SELECT ALL 64 * 27 * + 66 @@ -20494,8 +20746,11 @@ 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\(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\. +query II valuesort SELECT ALL + + 77 AS col2, - 69 + + - 44 * - CASE COUNT ( * ) WHEN - + 39 THEN + + 85 + 91 ELSE NULL END AS col2 +---- +77 +NULL query I rowsort label-3896 SELECT DISTINCT 17 * - CASE 81 WHEN - + 24 THEN NULL WHEN - 4 / 49 THEN NULL WHEN 22 THEN + NULLIF ( - + 81, CASE + ( 51 ) WHEN + 49 * + + 83 - + 98 * 6 THEN + 34 + - COUNT ( * ) WHEN - + 20 THEN + COUNT ( * ) / ( + ( - CAST ( NULL AS INTEGER ) ) ) + + ( - - 76 ) ELSE NULL END ) + COUNT ( * ) - + 78 + 86 + - 49 + + 57 * + 73 / + 35 ELSE 79 END col0 @@ -20560,8 +20815,11 @@ SELECT ALL - - 96 + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1087 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-31\)\) \* Int64\(9\) \* Int64\(\-4\) \+ \(\- Int64\(47\)\) \+ Int64\(76\) AS col1" at position 0 and "Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + - 31 ) * 9 * - 4 + - + 47 + + 76 AS col1, 89 AS col1 +---- +-1087 +89 query I rowsort label-3908 SELECT ALL 46 * + ( - COUNT ( + 48 ) ) * - + 54 * - - 99 @@ -20581,14 +20839,20 @@ SELECT + 29 - - ( + 51 ) # 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\(\-40\) \+ Int64\(92\) AS col2" at position 0 and "Int64\(\-24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 40 + 92 AS col2, - 24 AS col2 +---- +-24 +52 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col2" at position 0 and "\(\- max\(Int64\(49\)\)\) / Int64\(33\) \+ Int64\(\-52\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 22 AS col2, - MAX ( + 49 ) / + 33 + - 52 * COUNT ( * ) AS col2 +---- +-22 +-53 query I rowsort SELECT - 16 + + + 39 + 84 AS col1 @@ -20759,8 +21023,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 3649 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "Int64\(41\) \* Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 12 AS col0, 41 * 89 AS col0 +---- +12 +3649 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -21431,8 +21698,11 @@ SELECT + NULLIF ( - + 10, NULLIF ( - 49, - ( + 56 ) ) * + 42 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \+ Int64\(\-22\) \+ Int64\(1\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 + + - 22 + 1 AS col1, + 87 AS col1 +---- +42 +87 query I rowsort label-4076 SELECT DISTINCT COALESCE ( - 84, 46 * + COUNT ( * ) + + 23 / 36 * - - 16 ) @@ -21552,8 +21822,11 @@ SELECT ALL 41 AS col2, 32 / 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 93 AS col1, 46 AS col1 +---- +46 +93 query II rowsort SELECT 2 AS col2, 23 col0 @@ -21861,8 +22134,11 @@ SELECT ALL MIN ( + 95 ) - + - 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "Int64\(41\) \+ \(\- Int64\(92\)\) \+ \(\- Int64\(\-88\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 AS col2, 41 + - + ( 92 ) + - - 88 AS col2 +---- +19 +37 query I rowsort SELECT ALL - ( - 41 ) col1 @@ -21877,8 +22153,11 @@ SELECT ALL - COUNT ( + 22 ) / + 89 + 65 + - COUNT ( * ) * + + 68 * + 25 + - - 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 209 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col2" at position 0 and "Int64\(\-31\) \- \(\- Int64\(\-80\)\) \* Int64\(\-3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 79 AS col2, - 31 - - - 80 * - 3 AS col2 +---- +209 +79 query I rowsort label-4159 SELECT DISTINCT - CAST ( - 2 AS INTEGER ) * - ( - - 61 ) @@ -22153,8 +22432,11 @@ SELECT - COALESCE ( + 21, - 43 ) # 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\(\-55\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 AS col1, + 97 AS col1 +---- +-55 +97 query I rowsort SELECT - 67 + + 92 * + + 28 @@ -22426,8 +22708,11 @@ SELECT - 45 * + 18 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( ( + + 18 ) ) col2, 11 AS col2 +---- +11 +18 query I rowsort SELECT - 21 + 59 + - + 5 + + + 79 @@ -22739,8 +23024,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - -1536 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(8\)\) AS col1" at position 0 and "Int64\(32\) \* Int64\(\-48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( 8 ) AS col1, + 32 * - 48 AS col1 +---- +-1536 +-8 query I rowsort SELECT ALL - - 19 col1 @@ -23358,8 +23646,11 @@ SELECT ALL - 17 / - 36 col2 # 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\(78\) AS col1" at position 0 and "Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 AS col1, 68 AS col1 +---- +68 +78 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -23520,8 +23811,11 @@ SELECT + 55 * 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col0" at position 0 and "CASE Int64\(\-97\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- CASE \(\- Int64\(74\)\) WHEN \(\- CAST\(nullif\(Int64\(\-64\), Int64\(41\)\) AS Int32\)\) THEN Int64\(23\) END\) WHEN Int64\(10\) \* Int64\(38\) \* Int64\(\-67\) THEN NULL ELSE NULL END \* Int64\(66\) \* Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-68 +NULL query I rowsort label-4473 SELECT ( + COUNT ( * ) ) * 97 @@ -24285,8 +24579,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 0 and "Int64\(52\) \+ Int64\(78\) / Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 70 col0, 52 + + 78 / - 80 AS col0 +---- +52 +70 query I rowsort label-4621 SELECT + 61 / + ( - - NULLIF ( 85, 36 ) ) AS col1 @@ -24880,8 +25177,11 @@ SELECT COUNT ( * ) / - + 57 - + 66 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col0, - 72 AS col0 +---- +-72 +1 query I rowsort label-4735 SELECT + + COUNT ( * ) / + - 33 * - NULLIF ( - + 1, + - COALESCE ( + SUM ( DISTINCT 39 ), NULLIF ( + 59, + 79 ) ) * + 35 + CAST ( NULL AS INTEGER ) ) + - 87 + - CAST ( NULL AS INTEGER ) AS col2 @@ -25589,8 +25889,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 202 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(32\)\) AS col0" at position 0 and "Int64\(61\) \+ Int64\(70\) \+ count\(DISTINCT Int64\(7\)\) \* nullif\(\(\- Int64\(\-71\)\), Int64\(\-64\) \* Int64\(\-20\) \- Int64\(34\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( DISTINCT + + 32 ) AS col0, 61 + 70 + COUNT ( DISTINCT 7 ) * + NULLIF ( - - 71, - 64 * ( + - 20 ) - 34 ) AS col0 +---- +202 +32 query II rowsort SELECT + 44, 15 AS col2 @@ -25762,8 +26065,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(31\)\) AS col2" at position 0 and "Int64\(27\) \+ Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 31 AS col2, 27 + + 9 AS col2 +---- +-31 +36 query I rowsort label-4902 SELECT - + NULLIF ( COUNT ( DISTINCT + 71 ), 9 + - 77 ) AS col1 @@ -26132,8 +26438,11 @@ SELECT COALESCE ( - + 26, + 27 ) * - + 75 * + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) \- \(\- \(\- sum\(DISTINCT Int64\(54\)\)\)\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 30 - - - SUM ( DISTINCT 54 ) AS col1, 0 AS col1 +---- +-84 +0 query II rowsort label-4971 SELECT ALL CASE + + 97 WHEN 18 * - 54 THEN + + COUNT ( - + 57 ) * - COUNT ( * ) * + CAST ( - 30 AS INTEGER ) WHEN 73 THEN NULL END AS col1, + COUNT ( * ) * + 61 AS col2 @@ -26250,8 +26559,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * - + 66 + + 58 * - 53 * + COUNT ( * ) + ( 14 ) + 10 * + 95 * + + MIN ( - - 73 ) * - 48 AS col1, 43 * - MAX ( ALL 66 ) AS col1 +---- +-2838 +-3331926 query I rowsort label-4994 SELECT ALL + 81 / ( - ( - CAST ( NULL AS INTEGER ) ) ) AS col0 @@ -26933,8 +27245,11 @@ SELECT - MIN ( DISTINCT + - 40 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(15\), CAST\(NULL AS Int32\) \* \(\- Int64\(20\)\) \* Int64\(30\) \+ Int64\(30\) \* Int64\(1\) \+ Int64\(84\)\)\) AS col0" at position 0 and "Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - NULLIF ( 15, CAST ( NULL AS INTEGER ) * - + 20 * + 30 + 30 * + 1 + + 84 ) AS col0, + 19 AS col0 +---- +-15 +19 query I rowsort label-5124 SELECT ALL - 9 / 34 @@ -27108,8 +27423,11 @@ SELECT + 1 + + - 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(87\)\) AS col2" at position 0 and "Int64\(52\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( 87 ) AS col2, + 52 + + COUNT ( * ) AS col2 +---- +53 +87 query I rowsort SELECT + 42 + 9 @@ -27603,8 +27921,11 @@ SELECT ALL - 87 * 4 + - 45 AS col1 # 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\(77\) \+ Int64\(23\) AS col0" at position 0 and "CASE nullif\(\(\- Int64\(\-61\)\), Int64\(13\) \+ Int64\(49\)\) WHEN Int64\(\-26\) THEN \(\- Int64\(4\)\) \+ Int64\(75\) WHEN Int64\(\-60\) THEN \(\- Int64\(\-1\)\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 + + + 23 AS col0, CASE NULLIF ( ( - - 61 ), 13 + 49 ) WHEN - 26 THEN - ( 4 ) + 75 WHEN + - 60 THEN - - 1 ELSE NULL END col0 +---- +100 +NULL query I rowsort label-5252 SELECT DISTINCT 2 * 37 / 14 + COUNT ( * ) AS col1 @@ -27870,8 +28191,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 64 * - 91 * - 11 * + - 90 AS col2, - COUNT ( * ) AS col2 +---- +-1 +-5765760 query I rowsort SELECT + 34 * + 32 @@ -28175,8 +28499,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "\(\- Int64\(17\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 30 + - 34 + 2 * 44 / - COUNT ( * ) col2, - ( + 17 ) AS col2 +---- +-152 +-17 query I rowsort SELECT DISTINCT - 9 * - 40 @@ -28384,8 +28711,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col2, 2 AS col2 +---- +1 +2 query III rowsort label-5400 SELECT ALL + 1 AS col0, MIN ( DISTINCT + 76 ) * + - 8 col1, + + 29 @@ -28408,8 +28738,11 @@ SELECT + - ( - 20 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 col1, 56 col1 +---- +56 +59 query I rowsort label-5404 SELECT + - 23 + + ( - CAST ( + 49 AS INTEGER ) ) @@ -28553,8 +28886,11 @@ SELECT DISTINCT + COUNT ( * ) + + ( - 91 ) / - 90 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1297 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) \* Int64\(79\) \+ Int64\(46\) AS col1" at position 0 and "Int64\(56\) \+ Int64\(\-78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 17 * + 79 + + + 46 col1, 56 + - 78 col1 +---- +-1297 +-22 query I rowsort SELECT DISTINCT - 74 + - + 16 * + 80 - 2 * 74 - + 32 @@ -29192,8 +29528,11 @@ SELECT 80 + + COALESCE ( + COUNT ( * ), 3 ) AS col0, - ( 88 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 112 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col2" at position 0 and "Int64\(17\) \+ Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 AS col2, 17 + + 95 AS col2 +---- +112 +39 query I rowsort SELECT - 20 + - 68 @@ -29241,8 +29580,11 @@ SELECT - + ( + - 5 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 0 and "Int64\(92\) \+ Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 26 col2, 92 + 28 AS col2 +---- +120 +26 query I rowsort SELECT 69 + - + 11 AS col1 @@ -29958,8 +30300,11 @@ SELECT 85 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col0" at position 0 and "Int64\(40\) / Int64\(67\) \* CAST\(NULL AS Int32\) \* Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 54 AS col0, 40 / + + 67 * CAST ( NULL AS INTEGER ) * 32 AS col0 +---- +54 +NULL query I rowsort label-5699 SELECT + 26 * + CAST ( NULL AS INTEGER ) * - 72 * - - 76 / - CAST ( NULL AS INTEGER ) + - 90 @@ -29985,8 +30330,11 @@ SELECT - 0 * + NULLIF ( COUNT ( * ), - 62 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\)" at position 0 and "Int64\(45\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 45, 45 +---- +45 +45 query I rowsort label-5704 SELECT - + 15 + + 97 + + 72 + - 6 * - 81 * + 6 - + - 22 + 14 + COUNT ( - 71 ) / ( - 48 ) * - - CAST ( NULL AS INTEGER ) @@ -30082,8 +30430,11 @@ SELECT DISTINCT - 95 * 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 114 -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\(\-24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + 36 ) AS col2, + 90 - - 24 AS col2 +---- +114 +36 query I rowsort label-5722 SELECT + 30 / + 96 AS col2 @@ -30138,8 +30489,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) * 98 AS col2, 75 * + 55 * - 28 AS col2 +---- +-115500 +-98 query I rowsort label-5732 SELECT - + ( - COUNT ( * ) ) * 87 + - 6 * 56 + CAST ( NULL AS INTEGER ) @@ -30251,8 +30605,11 @@ SELECT 59 AS col1, - 35 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 AS col0, 67 AS col0 +---- +32 +67 query I rowsort label-5754 SELECT ALL CASE - CASE + 51 WHEN - + 17 / + + 98 THEN 62 + - 69 / - ( + + 51 ) ELSE + 91 END WHEN + AVG ( - 17 ) + - NULLIF ( 26, - + 71 ) THEN 61 + 98 WHEN COUNT ( * ) THEN ( COUNT ( * ) ) END + + - 14 AS col1 @@ -30302,8 +30659,11 @@ NULL # 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 col0" at position 0 and "Int64\(90\) \+ Int64\(17\) \- Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 57 AS col0, 90 + + 17 - + 50 col0 +---- +-57 +57 query I rowsort SELECT DISTINCT + 99 + - + 13 AS col2 @@ -30632,8 +30992,11 @@ 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\(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\. +query II valuesort 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 +---- +56 +82 query I rowsort SELECT ALL + 41 * - 53 col1 @@ -30940,8 +31303,11 @@ SELECT ALL - SUM ( ALL 81 ) # 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\(68\) \+ \(\- Int64\(99\)\) AS col2" at position 0 and "Int64\(\-1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + + 68 ) + - + 99 AS col2, + ( + - 1 ) AS col2 +---- +-1 +-31 query I rowsort label-5882 SELECT ALL - COALESCE ( - - COUNT ( * ), - SUM ( DISTINCT + 39 ) + + - 97 + + 57, + + 84 ) + + 8 + - + 77 AS col1 @@ -31566,8 +31932,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1044 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* \(\- Int64\(12\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(38\) \* \(\- CAST\(max\(\(\- Int64\(40\)\)\) AS Int32\)\) \* CAST\(NULL AS Int32\) \+ Int64\(\-38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 87 * - + 12 * + COUNT ( * ) AS col1, 38 * - ( CAST ( + + MAX ( - + 40 ) AS INTEGER ) ) * CAST ( NULL AS INTEGER ) + + - 38 AS col1 +---- +-1044 +NULL query I rowsort label-6002 SELECT - COUNT ( * ) * + 37 * + - 48 @@ -31603,8 +31972,11 @@ SELECT + 82 * - 48 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - -3432 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(46\)\)\) AS col2" at position 0 and "Int64\(39\) \* Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - + SUM ( 46 ) ) AS col2, 39 * - 88 col2 +---- +-3432 +-46 query I rowsort SELECT ALL 30 / 70 + - - 9 + - + CASE 58 WHEN - + 1 THEN - 75 END * 91 * NULLIF ( ( - 71 ), - 51 * + 59 ) - - + 7 col1 @@ -32013,8 +32385,11 @@ SELECT - SUM ( DISTINCT + - 32 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - -4218 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ Int64\(\-85\) \+ Int64\(\-68\) AS col2" at position 0 and "\(\- sum\(\(\- coalesce\(\(\- \(\- coalesce\(Int64\(17\), \(\- Int64\(13\)\)\)\)\), \(\- CAST\(NULL AS Int32\)\), Int64\(46\)\)\)\)\) \+ \(\- Int64\(77\)\) \* Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 98 + - 85 + - 68 AS col2, - SUM ( + - COALESCE ( - - COALESCE ( + 17, ( - + 13 ) ), ( - CAST ( NULL AS INTEGER ) ), 46 ) ) + - + 77 * 55 col2 +---- +-4218 +-55 query II rowsort label-6085 SELECT ALL + - 42 * - 33 + ( + 84 ) + + - 42 / - 4 + + 59 + + 93 * + + ( - 35 ) AS col0, - COUNT ( * ) * + - MIN ( DISTINCT 21 ) @@ -33432,8 +33807,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 col1, - COUNT ( * ) AS col1 +---- +-1 +17 query I rowsort SELECT + 78 + + NULLIF ( - 26, + 92 + + - 38 ) @@ -33803,8 +34181,11 @@ SELECT ALL COUNT ( * ), + 54 - + 2 AS col2 # 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 "nullif\(Int64\(\-24\), Int64\(\-63\)\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( - 24, - 63 ) AS col1, 99 AS col1 +---- +-24 +99 query I rowsort SELECT ALL 28 * + 77 + - ( + + 9 ) AS col2 @@ -33849,8 +34230,11 @@ SELECT ALL + + COUNT ( * ) * + 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -414 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(9\) \* Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, 9 * - 46 AS col1 +---- +-414 +1 query I rowsort label-6440 SELECT - 44 * NULLIF ( - COUNT ( * ), - + 18 + 76 ) @@ -34419,8 +34803,11 @@ SELECT ALL - NULLIF ( COUNT ( * ), + - CAST ( NULL AS FLOAT8 ) ) # 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\) AS col1" at position 0 and "Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 69 AS col1, 30 AS col1 +---- +30 +69 query II rowsort SELECT + - 1 AS col2, 71 col1 @@ -34492,8 +34879,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \+ Int64\(\-49\) AS col2" at position 0 and "Int64\(7\) \+ Int64\(\-90\) \+ Int64\(51\) \* Int64\(2\) \+ nullif\(\(\- Int64\(65\)\), Int64\(36\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 99 + - 49 AS col2, 7 + - 90 + 51 * + 2 + + NULLIF ( - + 65, + 36 ) + + COUNT ( * ) col2 +---- +-45 +50 query I rowsort label-6561 SELECT - COALESCE ( + + COUNT ( * ), - - ( 89 ) ) @@ -34539,8 +34929,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( DISTINCT 1 ) AS col0, 36 * - - COUNT ( * ) AS col0 +---- +-1 +36 query II rowsort label-6570 SELECT - + 71 / - + 61, + 17 AS col1 @@ -34577,8 +34970,11 @@ SELECT DISTINCT + MIN ( 46 ) * COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-67\)\)\) \+ Int64\(\-48\) \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( + COUNT ( * ), - 67 ) + - 48 + + CAST ( NULL AS INTEGER ) AS col1, + 63 AS col1 +---- +63 +NULL query I rowsort SELECT ALL + ( - + 59 ) AS col2 @@ -34983,8 +35379,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( - + 9 ) * - - COUNT ( * ) AS col2, 2 AS col2 +---- +-9 +2 query I rowsort SELECT ALL - 48 * - 36 @@ -35179,8 +35578,11 @@ SELECT COALESCE ( - 52, - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - 85 * + # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-42\), Int64\(1\) \* CAST\(NULL AS Int32\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + NULLIF ( - 42, + 1 * CAST ( NULL AS INTEGER ) ) AS col2, CAST ( NULL AS INTEGER ) AS col2 +---- +-42 +NULL query I rowsort label-6692 SELECT ALL 76 * + 81 + - - NULLIF ( - - MAX ( DISTINCT + ( 96 ) ), + 52 * + 44 ) @@ -35250,8 +35652,11 @@ SELECT ALL + 17 + + 35 + - ( 30 ) * - ( - 65 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - -2852 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col1" at position 0 and "Int64\(\-46\) \* nullif\(Int64\(62\), Int64\(28\) \- Int64\(\-18\) \+ Int64\(\-46\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 33 AS col1, - 46 * ( NULLIF ( 62, + + ( + 28 ) - - 18 + - 46 ) ) col1 +---- +-2852 +-33 query I rowsort label-6705 SELECT CASE 5 WHEN + 62 * - CAST ( - 71 AS INTEGER ) * - 91 - + 45 * 30 + 0 * + 56 * + - 36 THEN - - ( + - 69 ) + - 27 / + + 79 WHEN + 32 + + 72 THEN + 25 * 16 WHEN COALESCE ( - 49, - COALESCE ( 90, 72 ), ( - 67 ) * - 45 ) THEN NULL ELSE + 95 END AS col0 @@ -35341,8 +35746,11 @@ SELECT DISTINCT + 47 * + COUNT ( * ) AS col0, + 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(82\) AS col0" at position 0 and "Int64\(7\) \+ Int64\(56\) \* \(\- Int64\(69\)\) \+ \(\- \(\- max\(Int64\(\-94\)\)\)\) \* \(\- \(\- nullif\(Int64\(7\), \(\- CAST\(Int64\(32\) AS Float64\)\)\)\)\) \- coalesce\(Int64\(76\), Int64\(83\), \(\- Int64\(\-23\)\) \* Int64\(62\)\) \- Int64\(69\) / \(CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(51\) THEN NULL WHEN Int64\(\-95\) \* Int64\(32\) THEN Int64\(9\) END \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- CAST\(Int64\(77\) AS Float64\)\) \- Int64\(57\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +NULL +NULL query II rowsort label-6722 SELECT + SUM ( ( - 44 ) ), - COUNT ( * ) col0 @@ -35515,8 +35923,11 @@ SELECT 74 + - + COALESCE ( - COALESCE ( ( 60 ), 24 * + + COUNT ( * ) * - + 9 ), # Datafusion - Datafusion expected results: # Datafusion - Expected - 756 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \* Int64\(28\) AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 27 ) * + 28 AS col1, 50 AS col1 +---- +50 +756 query I rowsort SELECT 90 * + - 77 AS col2 @@ -35663,8 +36074,11 @@ 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\(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\. +query II valuesort 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 +---- +64 +NULL query I rowsort label-6782 SELECT ALL 59 / 40 @@ -35740,8 +36154,11 @@ SELECT 68 + + - 90 + + 71 + + 6 * + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -32414 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(30\)\) \* Int64\(\-90\) \* Int64\(\-12\) \- Int64\(14\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 30 * - 90 * + - 12 - 14 AS col1, + 29 AS col1 +---- +-32414 +29 query I rowsort SELECT ALL - + ( 59 ) @@ -36004,8 +36421,11 @@ SELECT - 77 + ( - + COALESCE ( + MAX ( DISTINCT 4 ), + - ( + NULLIF ( - 50, + 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - -913 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* Int64\(\-83\) AS col0" at position 0 and "Int64\(\-57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 11 * - 83 AS col0, - 57 AS col0 +---- +-57 +-913 query II rowsort label-6848 SELECT COALESCE ( 86, 25 * - COUNT ( * ) ), 63 * + + 31 AS col0 @@ -36644,8 +37064,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( - 4, + + 74 ) + 35 AS col1, 56 - + + COALESCE ( - 32, - COUNT ( * ) ) AS col1 +---- +31 +88 query I rowsort label-6969 SELECT ALL - 9 * + ( - CASE - 30 WHEN + 2 THEN 16 * - 66 * + COUNT ( DISTINCT CAST ( NULL AS FLOAT8 ) ) + 41 / 65 WHEN + COUNT ( * ) + + COALESCE ( - COALESCE ( 57, - + COUNT ( * ) * + - 25, + - 74 + - 85 ), 23 - + 4 ) + + - 13 THEN NULL END ) + + 85 * - ( + 83 ) * - 10 @@ -36998,8 +37421,11 @@ SELECT - 76 / - - 1 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 810 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "Int64\(18\) \* sum\(Int64\(45\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 col2, + 18 * + SUM ( + ( + 45 ) ) AS col2 +---- +76 +810 query I rowsort label-7037 SELECT 37 * + 50 * + 73 * + CAST ( NULL AS INTEGER ) @@ -37259,8 +37685,11 @@ SELECT DISTINCT - 23 / + 77 * + 92 - + 76 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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 3 AS col2, 86 col2 +---- +3 +86 query I rowsort label-7087 SELECT + 33 + + + 32 / + 97 + + 53 + - - 28 * - + COUNT ( * ) @@ -37290,8 +37719,11 @@ 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 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 II valuesort SELECT - - ( - COUNT ( * ) ) + - 1 AS col0, + 84 AS col0 +---- +-2 +84 query I rowsort label-7093 SELECT - CASE - ( + + 28 ) WHEN + + NULLIF ( AVG ( - 88 ), 57 ) THEN + 41 * 75 WHEN ( 71 ) THEN NULL END * - - 95 + - - COUNT ( * ) + - - 92 / - 52 + 34 col0 @@ -37429,8 +37861,11 @@ SELECT - 56 * - 65 * 82 + + COALESCE ( + + ( + 7 ), + COUNT ( * ) / + - 80 / 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(94\)\) AS col0" at position 0 and "Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( ALL 94 ) AS col0, 16 col0 +---- +16 +94 query I rowsort SELECT ALL 40 + - 60 + + + NULLIF ( + 13, 18 ) * + - ( - ( - 99 ) ) AS col2 @@ -37682,8 +38117,11 @@ SELECT 67 AS col0, - 92 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "Int64\(\-18\) \+ \(\- Int64\(\-64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 13 AS col2, - 18 + - - 64 AS col2 +---- +13 +46 query I rowsort label-7168 SELECT - CASE + + CAST ( NULL AS INTEGER ) WHEN 75 THEN + 68 + + 16 ELSE NULL END @@ -37743,8 +38181,12 @@ SELECT - + NULLIF ( - COUNT ( * ), - 38 - 27 ) + - 22 * + ( + 13 ) AS col0 # Datafusion - Expected - -71 # Datafusion - Expected - 63 # Datafusion - Expected - -402 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 71 AS col2, + 63 AS col2, + - 1 * - 62 * - 8 - + - 94 AS col0 +---- +-402 +-71 +63 query I rowsort SELECT + + 43 * - + 35 @@ -37770,8 +38212,11 @@ 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\(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\. +query II valuesort 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 +---- +25 +98 query I rowsort label-7184 SELECT - - COUNT ( ALL - 35 ) * 71 * + - CAST ( NULL AS INTEGER ) @@ -39066,8 +39511,11 @@ 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\(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\. +query II valuesort SELECT ALL NULLIF ( 65, - 41 * + COUNT ( * ) + + + 26 ) col1, - COUNT ( * ) * 39 AS col1 +---- +-39 +65 query I rowsort SELECT - ( - 44 ) + - + 28 @@ -39320,8 +39768,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) + - ( - 57 ) AS col1, 98 - 22 * - + SUM ( DISTINCT + - 82 ) AS col1 +---- +-1706 +56 query I rowsort label-7477 SELECT COUNT ( * ) * 54 @@ -39423,8 +39874,11 @@ SELECT CAST ( + AVG ( DISTINCT + 1 ) AS INTEGER ) - 38 AS col1, 45 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col0" at position 0 and "Int64\(\-30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 col0, - 30 AS col0 +---- +-30 +-48 query I rowsort SELECT 99 + 58 AS col0 @@ -39720,8 +40174,11 @@ SELECT - 88 * + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* Int64\(\-42\) \* count\(Int64\(1\)\) AS count\(\*\) \* count\(\(\- Int64\(\-91\)\)\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(86\) \+ coalesce\(Int64\(50\), Int64\(9\) \* \(\- Int64\(37\)\) \- Int64\(\-13\) \- Int64\(35\) \+ \(\- count\(Int64\(\-97\)\)\) \- count\(Int64\(1\)\) AS count\(\*\) \- Int64\(13\) \* Int64\(\-25\) / Int64\(93\)\) \* \(\- count\(DISTINCT Int64\(9\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "min\(Int64\(96\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +96 +NULL query I rowsort SELECT DISTINCT + ( + 10 ) * - + 29 + - 77 @@ -41807,8 +42264,11 @@ SELECT + + 18 / + 75 + + CASE - 27 WHEN + NULLIF ( - COUNT ( - 97 ), - COALESCE # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 38 * - CAST ( NULL AS INTEGER ) AS col1, 16 AS col1 +---- +16 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -42142,14 +42602,20 @@ 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\(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\. +query RI valuesort SELECT + COUNT ( * ) * CAST ( NULL AS FLOAT8 ) col2, + 71 AS col2 +---- +71 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 0 and "CASE \(\- Int64\(40\)\) WHEN \(\- max\(Int64\(\-28\)\)\) THEN NULL ELSE Int64\(0\) END \+ Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 91 AS col1, + CASE - + 40 WHEN - MAX ( + - 28 ) THEN NULL ELSE - 0 END + 89 AS col1 +---- +89 +91 query I rowsort label-8020 SELECT - + CAST ( + 60 AS INTEGER ) - + ( - - 70 ) AS col1 @@ -43110,8 +43576,11 @@ SELECT - 16 - + 92, + 91 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1343 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) \* Int64\(\-79\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 17 * - 79 AS col0, + 4 col0 +---- +1343 +4 query I rowsort SELECT DISTINCT - 8 * - 69 AS col1 @@ -43449,8 +43918,11 @@ SELECT DISTINCT 39 + CAST ( SUM ( - + 80 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - -4081 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \+ Int64\(\-89\) AS col0" at position 0 and "Int64\(53\) \* Int64\(\-77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 50 + + - 89 AS col0, + 53 * - 77 AS col0 +---- +-39 +-4081 query I rowsort SELECT ALL 85 + - 69 AS col1 @@ -44094,8 +44566,11 @@ SELECT DISTINCT 29 * + 0 * + ( - 43 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT 56 AS col1, + 13 AS col1 +---- +13 +56 query I rowsort label-8387 SELECT ALL COALESCE ( - - 21, - MIN ( DISTINCT 27 ), - 84 ) AS col0 @@ -44369,8 +44844,11 @@ SELECT + + SUM ( DISTINCT 41 ) / 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(29\) \* count\(Int64\(\-86\)\) / Int64\(\-85\) \* Int64\(4\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + 29 * COUNT ( - 86 ) / - 85 * 4 AS col2, 5 AS col2 +---- +5 +NULL query I rowsort SELECT + 46 * + ( 21 ) * 72 @@ -45122,8 +45600,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) + - + 85 * 98 AS col2, - COALESCE ( 74, + 4 ) AS col2 +---- +-74 +-8329 query II rowsort label-8581 SELECT NULLIF ( - 8, COUNT ( * ) ) * + 2, 7 AS col0 @@ -45134,8 +45615,11 @@ 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\(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\. +query II valuesort SELECT ALL MAX ( DISTINCT 5 ) + - + COUNT ( * ) / - + 5 AS col1, - 26 AS col1 +---- +-26 +5 query I rowsort SELECT DISTINCT - ( + + 94 ) AS col1 @@ -46195,8 +46679,11 @@ SELECT - ( + 68 ) * - - 7 + + + COUNT ( * ) AS col1, - 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 24480 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \+ Int64\(1\) AS col0" at position 0 and "Int64\(\-24\) \* Int64\(34\) \* \(\- Int64\(30\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 28 + + 1 AS col0, - 24 * 34 * + + ( - ( + 30 ) ) AS col0 +---- +-27 +24480 query II rowsort label-8783 SELECT - MIN ( DISTINCT - 13 ) col2, COUNT ( * ) * - + COUNT ( * ) + + 59 AS col0 @@ -46548,8 +47035,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) - + 46 AS col2 +---- +-47 +NULL query I rowsort label-8850 SELECT DISTINCT COUNT ( * ) + - 24 AS col1 @@ -46838,8 +47328,11 @@ SELECT ALL 3 * 80 / + 86 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 "CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT 43 AS col2, CAST ( NULL AS FLOAT8 ) AS col2 +---- +43 +NULL query II rowsort SELECT ALL 96, 45 + 46 AS col1 @@ -46988,8 +47481,11 @@ SELECT ALL + ( + + 35 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(DISTINCT Int64\(14\)\) \+ Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, COUNT ( DISTINCT + + 14 ) + 73 AS col1 +---- +1 +74 query I rowsort SELECT - ( + 94 ) * - + 99 - + - CASE + + 79 WHEN - 72 THEN NULL WHEN - 37 THEN + 92 ELSE NULL END @@ -47281,8 +47777,12 @@ SELECT COUNT ( * ) + + ( - MIN ( DISTINCT 66 ) ) + + - ( + COUNT ( * ) ) - - 84 # Datafusion - Expected - 38 # Datafusion - Expected - 115 # Datafusion - Expected - 2412 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "Int64\(37\) \+ Int64\(\-19\) \+ Int64\(7\) \* Int64\(20\) \+ nullif\(Int64\(\-43\), \(\- Int64\(\-13\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 38 AS col0, 37 + + - 19 + + + 7 * + 20 + + NULLIF ( - 43, - - 13 ) col0, - - 45 * + 56 - + 97 + - 11 AS col0 +---- +115 +2412 +38 query I rowsort SELECT 35 * + ( - 62 ) + - 7 AS col1 @@ -47399,8 +47899,11 @@ SELECT + COUNT ( * ) * + 96 - COALESCE ( + 90, + + 59 * + - 9, + 64 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col1" at position 0 and "Int64\(60\) / \(\- CASE Int64\(\-72\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(46\) \+ count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-58\) \+ Int64\(97\) THEN NULL END\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 5 AS col1, 60 / + - CASE + - 72 WHEN COUNT ( * ) THEN + + 46 + COUNT ( * ) WHEN - 58 + + 97 THEN NULL END * + COUNT ( * ) AS col1 +---- +-5 +NULL query I rowsort label-9011 SELECT DISTINCT 85 + - ( COUNT ( * ) ) AS col2 @@ -47463,8 +47966,11 @@ SELECT ALL + 97 / + 8 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 772 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ \(\- \(\- sum\(DISTINCT Int64\(45\)\)\)\) \* Int64\(16\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-37\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 + - - SUM ( DISTINCT + 45 ) * + 16 + COUNT ( * ) + - 37 AS col1, + COUNT ( * ) AS col1 +---- +1 +772 query II rowsort label-9023 SELECT ALL 60 + - 61, COUNT ( * ) AS col2 @@ -47550,8 +48056,12 @@ SELECT - + 69 * 29, 18 / + 61 - 58 AS col1 # Datafusion - Expected - 40 # Datafusion - Expected - -58 # Datafusion - Expected - 181 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "Int64\(\-58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 40 AS col0, - 58 AS col0, + 20 + + 64 + + 97 AS col0 +---- +-58 +181 +40 query II rowsort SELECT 77, + 0 col2 @@ -48343,8 +48853,11 @@ SELECT 67 * - - 20 - + 70 * + ( + MAX ( - 80 ) ) * - ( - COALESCE ( + - COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col0" at position 0 and "\(\- CAST\(\(\- Int64\(\-34\)\) AS Int32\)\) \+ Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 83 AS col0, - CAST ( - ( + - 34 ) AS INTEGER ) + + 24 col0 +---- +-10 +83 query I rowsort SELECT DISTINCT + - 35 * - 44 + 48 * - ( + 20 ) * 63 AS col0 @@ -48910,8 +49423,11 @@ SELECT - - 92 / - 52 AS col2, - 78 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-15\)\)\) AS col1" at position 0 and "Int64\(32\) \* Int64\(8\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( ALL - 15 ) AS col1, 32 * 8 * CAST ( NULL AS INTEGER ) AS col1 +---- +15 +NULL query I rowsort SELECT ALL + 96 * + 49 @@ -49417,8 +49933,11 @@ 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\(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\. +query II valuesort SELECT + - 73 + + ( + 34 ) * - - COUNT ( * ) * - 14 AS col1, - 48 AS col1 +---- +-48 +-549 query I rowsort SELECT - 31 * 61 AS col0 @@ -49468,8 +49987,11 @@ SELECT + MAX ( - + 83 ) # 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\(65\) AS col0" at position 0 and "Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 65 AS col0, ( + - 66 ) AS col0 +---- +-66 +65 query I rowsort SELECT + 67 * - 13 @@ -49740,8 +50262,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 157 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \+ Int64\(89\) \+ Int64\(55\) / Int64\(31\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 67 + 89 + 55 / 31 AS col0, - CAST ( NULL AS INTEGER ) * + 99 col0 +---- +157 +NULL query I rowsort label-9453 SELECT DISTINCT + SUM ( + 61 ) + 72 AS col2 @@ -49802,8 +50327,11 @@ SELECT ALL + CAST ( - 96 AS INTEGER ) * 69 * + 67 * 63 + CASE - + COUNT ( * ) WH # 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 col2" at position 0 and "\(\- Int64\(44\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( 43 ) AS col2, - ( 44 ) AS col2 +---- +-44 +43 query I rowsort label-9465 SELECT ALL - + 34 - - CAST ( + + 0 AS INTEGER ) * 90 * - 86 @@ -50683,8 +51211,11 @@ SELECT ALL 8 * + 0 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -136 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) \+ Int64\(\-60\) AS col2" at position 0 and "coalesce\(Int64\(87\), Int64\(26\) \+ Int64\(80\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 76 + - 60 AS col2, COALESCE ( + 87, + 26 + + 80 ) col2 +---- +-136 +87 query I rowsort label-9636 SELECT 61 - - 56 + - COUNT ( * ) * + 20 * - COALESCE ( + 53, 39 * - 1 ) + 48 * ( - 60 * - 70 ) / + 23 @@ -50987,8 +51518,11 @@ SELECT + 39 + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "nullif\(Int64\(\-40\), Int64\(\-13\) \+ \(\- Int64\(\-35\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- avg\(DISTINCT Int64\(94\)\)\)\) \* Int64\(\-3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT COUNT ( * ) AS col1, NULLIF ( - 40, - 13 + - + ( - 35 ) + - COUNT ( * ) / - AVG ( DISTINCT 94 ) ) * - 3 col1 +---- +1 +120 query I rowsort label-9694 SELECT ALL + 69 + + - 92 + - 74 * + - COUNT ( + 89 ) @@ -51270,8 +51804,11 @@ SELECT + 7 AS col1, 43 / 19 + - 85 # 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 "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 25 AS col0, 98 AS col0 +---- +-25 +98 query I rowsort SELECT + 70 * 7 + - ( + 41 ) AS col2 @@ -52036,8 +52573,11 @@ SELECT ALL 2 - + - 51 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 113 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \- Int64\(43\) \+ Int64\(1\) \* nullif\(Int64\(95\), \(\- Int64\(\-48\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(48\) \+ \(\- Int64\(14\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 61 - 43 + + 1 * NULLIF ( + 95, - - 48 ) * + COUNT ( * ) AS col0, NULLIF ( + COUNT ( * ), 48 + - + 14 ) AS col0 +---- +1 +113 query I rowsort label-9893 SELECT DISTINCT COUNT ( * ) - - 55 @@ -52154,8 +52694,11 @@ SELECT DISTINCT + 75 * - 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 45 AS col1, 47 AS col1 +---- +45 +47 query II rowsort SELECT - 54 AS col1, 67 @@ -52166,8 +52709,11 @@ SELECT - 54 AS col1, 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 AS col2, 28 AS col2 +---- +28 +62 query I rowsort SELECT - 43 + - 58 diff --git a/data/sqlite/random/expr/slt_good_69.slt b/data/sqlite/random/expr/slt_good_69.slt index cb35dbf..bb27f66 100644 --- a/data/sqlite/random/expr/slt_good_69.slt +++ b/data/sqlite/random/expr/slt_good_69.slt @@ -93,8 +93,11 @@ SELECT - 64 / 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col1" at position 0 and "Int64\(\-77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 94 AS col1, - 77 col1 +---- +-77 +94 query I rowsort label-11 SELECT - 56 * - COALESCE ( + - 94, - 70 * - 68, + 12 ) + - 8 + + 83 * + 34 + - COUNT ( * ) * + - COUNT ( DISTINCT - - 86 ) + + MIN ( ALL - 53 ) + + 98 * - - 17 @@ -115,8 +118,11 @@ SELECT ALL - 84 * - 73 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(1\), Int64\(91\) \- Int64\(\-51\)\) \+ Int64\(\-18\) AS col1" at position 0 and "Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL NULLIF ( + 1, + 91 - ( - 51 ) ) + - 18 col1, 89 AS col1 +---- +-17 +89 query II rowsort label-15 SELECT COUNT ( * ) + 75 + - ( + + COUNT ( * ) ) AS col0, 12 AS col2 @@ -440,8 +446,11 @@ SELECT ALL - MAX ( DISTINCT + 13 ) / 8 * - 42 + + COUNT ( * ) + - + 56 * - 85 + # Datafusion - Datafusion expected results: # Datafusion - Expected - 120 # Datafusion - Expected - -1283 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \+ Int64\(58\) AS col2" at position 0 and "Int64\(33\) \+ \(\- Int64\(94\)\) \* Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 62 + + + 58 AS col2, 33 + - + 94 * + 14 AS col2 +---- +-1283 +120 query I rowsort label-75 SELECT - CAST ( NULL AS INTEGER ) * + 69 + - + ( + + CAST ( - - 93 AS INTEGER ) ) col0 @@ -978,8 +987,11 @@ 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\(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\. +query II valuesort SELECT ALL 97 * - COUNT ( * ) + + 24 * - ( - + 21 ) * 39 AS col1, + 11 AS col1 +---- +11 +19559 query I rowsort SELECT + COALESCE ( 87, 48 ) AS col1 @@ -1059,8 +1071,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 36 AS col1, 26 col1 +---- +-36 +26 query I rowsort label-194 SELECT 39 * - + 18 - + CASE - COUNT ( * ) WHEN + 54 THEN + + 52 WHEN - + 43 + + 70 THEN + - COUNT ( 98 ) ELSE NULL END + - 22 + - + 99 * ( - 31 ) AS col2 @@ -1314,8 +1329,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col0, + CAST ( NULL AS INTEGER ) AS col0 +---- +1 +NULL query I rowsort SELECT 73 * + 25 @@ -1532,8 +1550,11 @@ SELECT + - 40 + + - 92 + + 10 + 9 / + COUNT ( * ) + + 94 + 52 + + ( - 56 ) - - 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) / CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 71 / CAST ( NULL AS INTEGER ) col2, + 19 AS col2 +---- +19 +NULL query I rowsort SELECT - ( 78 ) * - - ( + - 98 ) + + ( + + 99 ) @@ -1734,8 +1755,11 @@ SELECT ALL - COUNT ( * ) + + 83 - - 85 * 68 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 88 col2, + COUNT ( * ) AS col2 +---- +-88 +1 query I rowsort SELECT ALL + 15 + - - 75 - + 75 + + - 62 AS col1 @@ -1827,8 +1851,11 @@ SELECT DISTINCT 30 * + - 82 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col1" at position 0 and "Int64\(31\) / Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 27 AS col1, 31 / - 1 AS col1 +---- +-31 +27 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -2221,8 +2248,11 @@ SELECT + - CAST ( - NULLIF ( + + 21, + CAST ( NULL AS INTEGER ) ) AS INTEGER ) A # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\)" at position 0 and "Int64\(96\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 96, + 96 +---- +96 +96 query I rowsort label-415 SELECT + MAX ( ALL 66 ) AS col0 @@ -2831,8 +2861,11 @@ SELECT - 65 * + + COUNT ( * ) + + + 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* Int64\(5\) AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 13 * 5 AS col0, 86 col0 +---- +65 +86 query II rowsort label-532 SELECT DISTINCT 83 * 29 AS col2, CAST ( NULL AS INTEGER ) - - + 49 @@ -2873,8 +2906,11 @@ SELECT + 6 + + - 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3080 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(40\)\) \* Int64\(77\) AS col0" at position 0 and "min\(Int64\(\-69\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 40 * + 77 AS col0, MIN ( - 69 ) AS col0 +---- +-3080 +-69 query I rowsort label-540 SELECT + 33 + 65 / - + SUM ( ALL - 39 ) @@ -3107,8 +3143,11 @@ SELECT ALL COUNT ( * ) / - 14 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \- Int64\(\-1\) AS col1" at position 0 and "CAST\(Int64\(29\) AS Int32\) \- count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 98 - + - 1 AS col1, CAST ( 29 AS INTEGER ) - COUNT ( * ) - + + COUNT ( * ) col1 +---- +-97 +27 query I rowsort SELECT DISTINCT COALESCE ( - 54, + - 31 + - 81 * 96 - 28, - ( 15 ) * + + 19 ) * + 50 + + 86 AS col1 @@ -3128,8 +3167,11 @@ SELECT ALL - COALESCE ( + 97, - 59 + + 52 / - ( + 2 ), COUNT ( * ) * 1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - -468 -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\(\-78\) \* Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( COUNT ( 22 ) ) * + - 66 AS col1, - 78 * 6 AS col1 +---- +-468 +-66 query I rowsort SELECT 71 * - 78 * + 57 * + - ( - 98 ) AS col2 @@ -3473,8 +3515,11 @@ SELECT - 49 * + + COUNT ( * ) + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col0" at position 0 and "Int64\(\-88\) \- Int64\(\-33\) \+ Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + - 80 ) AS col0, - 88 - - 33 + 87 AS col0 +---- +-80 +32 query II rowsort label-655 SELECT - 36, COUNT ( * ) * 98 AS col2 @@ -3485,8 +3530,11 @@ SELECT - 36, COUNT ( * ) * 98 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col1" at position 0 and "Int64\(99\) / Int64\(\-14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL CAST ( NULL AS FLOAT8 ) AS col1, 99 / - 14 AS col1 +---- +-7 +NULL query I rowsort label-657 SELECT ALL + SUM ( ALL + + 78 ) * + - 84 * + 63 @@ -3592,8 +3640,11 @@ SELECT ALL 65 + - 7 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 AS col0, + ( 56 ) AS col0 +---- +32 +56 query I rowsort label-677 SELECT + COALESCE ( 54, + ( + + 48 ) / - 37 ) * NULLIF ( - 23, - NULLIF ( - 16, - 11 ) + - 13 ) @@ -3704,8 +3755,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + + 43 AS col0, + 60 * CASE - + 82 WHEN + 64 THEN - COUNT ( * ) ELSE NULL END AS col0 +---- +44 +NULL query II rowsort label-698 SELECT 39 * - 73 + 67 AS col1, - COUNT ( * ) * + 41 @@ -4166,8 +4220,11 @@ SELECT ALL + - COUNT ( * ) * 59 * - 61 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 1364 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ max\(Int64\(\-29\)\) AS col0" at position 0 and "Int64\(22\) \* Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 16 ) + + MAX ( ALL - 29 ) AS col0, 22 * + + 62 AS col0 +---- +-13 +1364 query I rowsort SELECT + - 90 + - 22 @@ -4896,8 +4953,11 @@ SELECT ALL - MAX ( + ( 58 ) ) - - COUNT ( * ) + + 33 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3312 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \* \(\- Int64\(92\)\) AS col2" at position 0 and "Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 36 * - + 92 AS col2, - 76 AS col2 +---- +-3312 +-76 query II rowsort label-924 SELECT 90 * 2 * + ( - 91 ), + CASE - + 25 WHEN + ( + ( CASE 1 WHEN - 49 THEN + 84 END ) ) * + 67 THEN 13 ELSE + COUNT ( * ) END - + 27 AS col0 @@ -5246,8 +5306,11 @@ 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\(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\. +query II valuesort SELECT ALL 68 AS col0, + 94 * - ( - COUNT ( * ) ) * - 58 + - COALESCE ( 92, + - 51, - 79 * + 86 * 64 ) AS col0 +---- +-5544 +68 query I rowsort SELECT ( - ( 55 ) ) @@ -5365,8 +5428,11 @@ SELECT ALL 21 * + + 90 + + ( - 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4513 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(coalesce\(\(\- CASE Int64\(20\) WHEN \(\- Int64\(60\)\) \* \(\- nullif\(Int64\(\-72\), Int64\(19\) \+ avg\(\(\- Int64\(7\)\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int32\) \- Int64\(49\) THEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN \(\- sum\(Int64\(\-57\)\)\) \* Int64\(57\) \+ Int64\(21\) \+ Int64\(31\) THEN Int64\(36\) END\), min\(Int64\(31\)\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(19\)\), CAST\(\(\- Int64\(\-43\)\) AS Int32\)\)\) \* Int64\(\-53\) \+ Int64\(\-4\) \* count\(Int64\(1\)\) AS count\(\*\) \+ max\(Int64\(53\)\) \- Int64\(73\) \* \(\- Int64\(24\)\) \+ Int64\(98\) \- Int64\(\-59\) \+ Int64\(\-95\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +4513 +48 query I rowsort label-1014 SELECT + 24 + - CASE - 98 WHEN + ( - MIN ( 61 ) ) THEN + - 51 / + 10 + 70 WHEN ( 2 ) THEN + 51 * + - 88 END * 60 * - 90 @@ -5396,8 +5462,11 @@ 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\(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\. +query II valuesort SELECT ALL 35 * - ( + + COUNT ( * ) ) * - 80 * + 42 AS col1, - 74 + - 32 AS col1 +---- +-106 +117600 query I rowsort SELECT DISTINCT + 43 - + 42 AS col2 @@ -5648,8 +5717,11 @@ 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\(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\. +query II valuesort 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 +---- +-1298 +-39 query II rowsort label-1066 SELECT - ( 23 ) * + - 54, - CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col2 @@ -5749,8 +5821,11 @@ SELECT DISTINCT 64 - - 88 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\(8\) \+ \(\- Int64\(\-51\)\) \- Int64\(92\) / Int64\(22\) AS col1" at position 0 and "Int64\(3\) / Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 + - - 51 - + 92 / + + 22 col1, 3 / 59 AS col1 +---- +0 +55 query I rowsort label-1085 SELECT 53 - - 40 * - COALESCE ( ( COALESCE ( - + COUNT ( * ), 82 + - 12, - - 49 ) ), + - 38 * 83 * 12 ) + 67 AS col1 @@ -5907,8 +5982,11 @@ 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\(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\. +query II valuesort 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 +---- +78 +NULL query I rowsort label-1116 SELECT + 82 / + NULLIF ( + + 20, 14 ) AS col1 @@ -6853,8 +6931,11 @@ SELECT DISTINCT - 17 / COUNT ( * ) - - NULLIF ( 80, + 7 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-48\)\) \+ Int64\(20\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 48 + + 20 AS col2, 73 AS col2 +---- +68 +73 query I rowsort SELECT DISTINCT + 7 + + 92 AS col1 @@ -7206,8 +7287,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 2 AS col2, COUNT ( * ) * 75 AS col2 +---- +2 +75 query I rowsort label-1369 SELECT - + 18 / - ( - CASE + - COUNT ( * ) WHEN + - 96 / 98 * - COALESCE ( 13, - 63 + COUNT ( * ) / 81, 1 ) THEN 76 END ) + CAST ( NULL AS INTEGER ) AS col1 @@ -7218,8 +7302,12 @@ NULL # Datafusion - Expected - 24 # Datafusion - Expected - -97 # Datafusion - Expected - -2468 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "\(\- Int64\(\-73\)\) \* \(\- Int64\(34\)\) \+ Int64\(14\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + + 24 AS col1, + ( - 97 ) + - 0, - - 73 * - ( + 34 ) + 14 AS col1 +---- +-2468 +-97 +24 query I rowsort SELECT DISTINCT CASE - 43 WHEN - 44 THEN + + 30 END + + ( + 45 ) AS col2 @@ -8585,8 +8673,11 @@ SELECT ALL + 73 * + - ( + CAST ( + - 57 AS INTEGER ) ) - - 65 * 78 + + COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \- CAST\(Int64\(20\) AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 40 - + CAST ( 20 AS INTEGER ) * + COUNT ( * ) AS col0, 40 AS col0 +---- +-60 +40 query I rowsort label-1629 SELECT 24 * - ( CASE CASE COUNT ( * ) WHEN + 34 THEN NULL WHEN + + COUNT ( * ) * 96 THEN NULL WHEN + 26 THEN NULL ELSE ( - ( + 33 ) ) + - COALESCE ( - 26, NULLIF ( + ( 10 ), + 85 ), + NULLIF ( - 98, 66 / 32 ) ) - 92 END WHEN - 90 THEN + 76 WHEN 88 + 25 THEN NULL ELSE NULL END ) - 5 * - COALESCE ( + 17, + ( - COALESCE ( 21, 98 ) ) * COALESCE ( - 80 + 27, 44 ) ) @@ -8821,8 +8912,11 @@ SELECT + 16 + - NULLIF ( 60, + + 38 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "Int64\(64\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 63 col1, 64 * - ( CAST ( NULL AS INTEGER ) ) col1 +---- +63 +NULL query I rowsort SELECT 48 * + + 97 + - - 40 + - + 49 @@ -9227,8 +9321,11 @@ SELECT + - ( 88 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \+ Int64\(3\) AS col2" at position 0 and "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 51 + 3 AS col2, 70 AS col2 +---- +54 +70 query I rowsort label-1751 SELECT + NULLIF ( + + COUNT ( * ), + COALESCE ( 81, 89 + + 97, - - 65 ) - + COUNT ( * ) ) @@ -9284,8 +9381,11 @@ SELECT ALL CASE WHEN - 20 NOT IN ( 26, + ( - 67 ) + - - 28 + + 39 ) THEN + 45 + # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 26 AS col1, 42 AS col1 +---- +26 +42 query II rowsort label-1762 SELECT - COUNT ( * ), + 97 col2 @@ -9526,8 +9626,11 @@ SELECT - 69 + + 13 AS col1, 50 - + - 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - -4410 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(58\)\) AS col2" at position 0 and "Int64\(49\) \* Int64\(\-90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 58 ) AS col2, + ( 49 ) * - 90 AS col2 +---- +-4410 +-58 query I rowsort label-1808 SELECT - 46 + 29 * + COUNT ( * ) * - - 99 AS col0 @@ -10110,8 +10213,12 @@ 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\(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\. +query III valuesort SELECT DISTINCT + COUNT ( * ) * 81, + COUNT ( * ) * MIN ( ALL 80 ) AS col2, ( 76 ) * 90 col2 +---- +6840 +80 +81 query I rowsort label-1920 SELECT DISTINCT - SUM ( ALL - 89 ) / 92 - + 88 AS col2 @@ -10413,8 +10520,11 @@ SELECT ALL - COUNT ( ALL - - NULLIF ( - 48, + 49 * + 82 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 98118 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(46\)\) \+ Int64\(92\) \* \(\- Int64\(\-11\)\) \* 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 II valuesort SELECT DISTINCT - + 46 + 92 * - - 11 * + + 97 AS col2, 45 AS col2 +---- +45 +98118 query I rowsort SELECT ALL - 95 + + - 74 @@ -10651,8 +10761,11 @@ SELECT - 48 * 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-57\)\) AS col2" at position 0 and "Int64\(\-56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 57 AS col2, - 56 col2 +---- +-56 +57 query I rowsort SELECT ALL - ( - 36 ) col0 @@ -10733,8 +10846,11 @@ SELECT ( - + COALESCE ( COUNT ( * ), - + CASE - - 55 WHEN - COUNT ( * ) THEN NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 20 AS col0, COUNT ( * ) col0 +---- +1 +20 query I rowsort label-2040 SELECT DISTINCT MAX ( ALL - 1 ) * - + 33 + 79 / COALESCE ( - 90, 4 / COUNT ( * ) + + - 0 + + - 10, + + 24 ) * - 39 - 84 + + 30 + 99 + 77 / - NULLIF ( CAST ( - CASE - 12 WHEN + 41 THEN - - 3 WHEN - 1 THEN NULL WHEN - 41 THEN NULL END AS INTEGER ), 99 ) - 82 + - 40 * + COUNT ( * ) * - 65 * COUNT ( * ) AS col0 @@ -10760,8 +10876,11 @@ SELECT ( + - 16 ), - 37 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- coalesce\(\(\- Int64\(26\)\), Int64\(\-99\)\)\)\)\) / Int64\(17\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MAX ( ( - + COALESCE ( - + 26, - 99 ) ) ) / 17 AS col0, + COUNT ( * ) AS col0 +---- +-1 +1 query I rowsort label-2045 SELECT + NULLIF ( - + MAX ( ALL + 93 ), ( - 84 ) * 47 / SUM ( DISTINCT 95 ) - + + CASE + + 90 WHEN 30 * ( 13 ) * - 61 / + ( 73 ) + + + 0 THEN - COUNT ( ALL - + 44 ) + 88 WHEN - - 94 THEN - NULLIF ( + 67, + - COUNT ( * ) ) * CAST ( NULL AS INTEGER ) * + COUNT ( * ) WHEN - ( CAST ( NULL AS INTEGER ) ) * + 99 THEN - COUNT ( * ) * + 41 + + ( + ( - 6 ) ) ELSE NULL END ) @@ -11314,8 +11433,11 @@ 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\(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\. +query II valuesort SELECT - 34 * - COUNT ( * ) - - NULLIF ( 21, + - 37 ) AS col2, + NULLIF ( 97, - 12 - 81 ) AS col2 +---- +55 +97 query I rowsort label-2152 SELECT ALL 55 * - 15 + - 37 * - COUNT ( * ) / + 43 * 75 AS col0 @@ -11646,8 +11768,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "Int64\(\-17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 AS col1, - 17 AS col1 +---- +-17 +9 query I rowsort SELECT NULLIF ( + + ( - 20 ), + - 3 * - - 34 ) + - NULLIF ( - 10, 13 ) @@ -11738,8 +11863,11 @@ SELECT ALL - - COUNT ( ALL + 26 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(33\)\) AS col0" at position 0 and "Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 33 col0, - 66 col0 +---- +-33 +-66 query I rowsort label-2232 SELECT 94 + + 33 - 54 * CAST ( - MIN ( - + 11 ) AS INTEGER ) @@ -12309,8 +12437,11 @@ SELECT CAST ( + 35 AS INTEGER ) * 59 * + - 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 176 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(\-43\) \+ \(\- CAST\(Int64\(\-54\) AS Int32\)\) \+ Int64\(49\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(37\) AS col2" at position 0 and "\(\- Int64\(55\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 79 + - 43 + - CAST ( + - 54 AS INTEGER ) + + 49 + + COUNT ( * ) * + 37 col2, - ( 55 ) AS col2 +---- +-55 +176 query I rowsort SELECT 94 * 37 AS col1 @@ -12433,8 +12564,11 @@ SELECT DISTINCT + 96 * - - 51 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4014 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-62\)\) \* Int64\(67\) \+ CAST\(Int64\(\-89\) AS Int32\) \- \(\- Int64\(\-51\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 62 * 67 + + CAST ( - 89 AS INTEGER ) - - - 51 AS col2, COUNT ( * ) AS col2 +---- +1 +4014 query I rowsort SELECT + 69 + 24 * - 49 AS col0 @@ -12858,8 +12992,11 @@ SELECT ALL + 11 * + + COALESCE ( 48, + 97 + - 98 ) + + 91 + - 65 AS col1, - 22 * # 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\(76\) \+ Int64\(\-69\) AS col1" at position 0 and "coalesce\(Int64\(9\), Int64\(\-84\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 76 ) + - 69 AS col1, + COALESCE ( 9, - 84 ) AS col1 +---- +7 +9 query I rowsort label-2444 SELECT - 37 - COUNT ( - 46 ) / + + COUNT ( * ) - + 25 AS col2 @@ -12925,14 +13062,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 0 and "Int64\(\-55\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 AS col2, - 55 * CAST ( NULL AS INTEGER ) AS col2 +---- +26 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col1" at position 0 and "Int64\(84\) / Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 col1, + 84 / 36 col1 +---- +2 +61 query I rowsort SELECT - 69 * 89 @@ -12953,8 +13096,11 @@ SELECT - 87 - + 26 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -478 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col0" at position 0 and "sum\(DISTINCT Int64\(22\)\) \+ Int64\(75\) \* \(\- CAST\(Int64\(4\) AS Int32\)\) \+ Int64\(29\) \* Int64\(69\) / Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT CAST ( NULL AS FLOAT8 ) AS col0, + SUM ( DISTINCT 22 ) + + 75 * - + ( CAST ( 4 AS INTEGER ) ) + + 29 * 69 / - 10 col0 +---- +-478 +NULL query I rowsort label-2462 SELECT ALL + COALESCE ( + - MIN ( DISTINCT 58 ), 37 ) * - ( + + 65 ) * + + COUNT ( * ) AS col2 @@ -13031,8 +13177,11 @@ SELECT + + CASE 39 WHEN - + 71 THEN NULL WHEN - 42 THEN NULL ELSE - 63 END 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 "\(\- CAST\(NULL AS Float64\)\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - CAST ( NULL AS FLOAT8 ) AS col1, 60 AS col1 +---- +60 +NULL query I rowsort label-2476 SELECT - COUNT ( * ) / 17 * 91 + + - 38 * + - 81 * CASE - - COUNT ( * ) WHEN + 30 THEN + 30 + + - COUNT ( - 63 ) WHEN - SUM ( DISTINCT - - 7 ) * + + NULLIF ( + MAX ( ALL + 87 ), + 19 ) * + - 80 * - 62 + - - 27 THEN + + 67 * - + COALESCE ( + 19, - 13 ) END col1 @@ -13106,8 +13255,11 @@ SELECT 58 * - 61 * + ( 82 ) AS 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 "Int64\(\-61\) / Int64\(\-61\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 61 / - 61 AS col0, 98 AS col0 +---- +1 +98 query I rowsort SELECT 57 - 3 AS col1 @@ -13234,8 +13386,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-4\)\) AS col2" at position 0 and "Int64\(\-67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - - 4 ) col2, - 67 AS col2 +---- +-67 +4 query I rowsort label-2515 SELECT + ( - + 67 ) + + COUNT ( * ) @@ -13400,8 +13555,11 @@ SELECT ALL + 64, 81 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5440 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* Int64\(\-85\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 64 * - 85 AS col0, 23 AS col0 +---- +-5440 +23 query I rowsort label-2547 SELECT + 64 + - MAX ( ALL - 96 ) AS col1 @@ -13551,8 +13709,12 @@ SELECT ALL + COUNT ( * ) / + COUNT ( * ) + + 37 AS col1 # Datafusion - Expected - 1 # Datafusion - Expected - 45 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + + COUNT ( * ) AS col0, + 45 AS col0, 39 +---- +1 +39 +45 query II rowsort label-2575 SELECT DISTINCT + 80 / 38 + 81 AS col2, + 35 AS col1 @@ -13721,8 +13883,11 @@ SELECT 57 / + + 63 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1652 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CASE Int64\(\-88\) WHEN CAST\(Int64\(0\) AS Int32\) \* \(\- Int64\(64\)\) THEN Int64\(0\) END\) \+ Int64\(86\) AS col0" at position 0 and "Int64\(28\) \* Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 28 ) * + + ( COUNT ( * ) ) + - CASE - 88 WHEN + ( CAST ( + 0 AS INTEGER ) ) * - ( 64 ) THEN 0 END + ( + 86 ) AS col0, 28 * 59 AS col0 +---- +1652 +NULL query I rowsort SELECT ALL - 98 * + - 60 * + COALESCE ( - - 81, + 82 + - - NULLIF ( - - 77, 72 + + 74 + - 30 * ( 95 ) ) ) AS col0 @@ -13800,8 +13965,11 @@ SELECT ALL - COUNT ( * ), NULLIF ( + 29, - + ( + 14 ) ) + + - 25 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - -21783 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "Int64\(\-20\) \* Int64\(84\) \* Int64\(13\) \- Int64\(\-47\) \+ Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 87 col1, - 20 * + 84 * + 13 - - 47 + 10 col1 +---- +-21783 +87 query I rowsort label-2623 SELECT ALL - SUM ( DISTINCT - + 93 ) * - COUNT ( DISTINCT - 37 ) + - 47 * + 72 / - - CASE - 72 WHEN - 9 THEN NULL WHEN + ( + + COUNT ( * ) ) THEN + + 4 END @@ -14228,8 +14396,11 @@ SELECT COALESCE ( + + 52, - 10 ) + - COALESCE ( 1, - - 24 * - 18 ) * + 38 * + CO # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "nullif\(\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(21\) \+ CAST\(NULL AS Int32\)\)\), Int64\(1\)\) \+ \(\- Int64\(71\)\) \+ Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 99 AS col0, NULLIF ( + ( - COALESCE ( + COUNT ( * ), 21 + + + CAST ( NULL AS INTEGER ) ) ), + + 1 ) + - + 71 + + + 50 AS col0 +---- +-22 +99 query II rowsort SELECT DISTINCT 51 AS col2, 82 AS col1 @@ -14846,8 +15017,11 @@ SELECT DISTINCT - 37 + 29 - - - 58 + 33 / 9 + + + 2 - COUNT ( * ) * - 48 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(38\) \* \(\- CASE Int64\(85\) WHEN Int64\(\-94\) THEN \(\- count\(DISTINCT Int64\(21\)\)\) ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 79 + COUNT ( * ) col2, + 38 * - + CASE 85 WHEN - 94 THEN - COUNT ( DISTINCT 21 ) ELSE NULL END AS col2 +---- +80 +NULL query I rowsort SELECT + 91 * - 51 * - - 7 @@ -14887,8 +15061,11 @@ SELECT + SUM ( 5 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + MAX ( + CAST ( NULL AS INTEGER ) ) AS col2, - 98 AS col2 +---- +-98 +NULL query I rowsort label-2830 SELECT + 0 / - COUNT ( * ) + COUNT ( * ) + NULLIF ( ( + 33 ), + - NULLIF ( - 15, + 29 / - - ( 68 ) + - 88 ) / - + 86 + + 22 ) * - 26 + - - 8 AS col1 @@ -15864,8 +16041,11 @@ SELECT DISTINCT + COUNT ( * ) * + + ( 45 ) * + 1 - - COUNT ( * ) / + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - -258 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \- Int64\(6\) AS col0" at position 0 and "Int64\(\-7\) \* Int64\(37\) \+ coalesce\(Int64\(1\), Int64\(\-6\) \* nullif\(Int64\(54\), \(\- CAST\(Int64\(95\) AS Int32\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 52 - + 6 AS col0, - 7 * + 37 + COALESCE ( 1, - 6 * NULLIF ( 54, - CAST ( 95 AS INTEGER ) ) ) AS col0 +---- +-258 +-58 query I rowsort label-3021 SELECT DISTINCT + - 13 * SUM ( ALL + 72 ) @@ -16068,8 +16248,11 @@ SELECT - + 18 + - NULLIF ( - ( + 25 ), - CAST ( - CAST ( NULLIF ( + COUNT ( * ), # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 78 AS col0, + 70 col0 +---- +70 +78 query I rowsort SELECT DISTINCT - + 56 - - NULLIF ( + 22, 90 ) * 53 - 17 * 28 AS col1 @@ -16819,8 +17002,11 @@ SELECT ALL + ( + NULLIF ( COUNT ( * ), 56 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - -2769 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT \(\- Int64\(72\)\)\) AS col1" at position 0 and "Int64\(39\) \* Int64\(\-71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + SUM ( DISTINCT - + 72 ) AS col1, 39 * - 71 AS col1 +---- +-2769 +-72 query I rowsort SELECT DISTINCT + NULLIF ( + - 23, 95 * + 38 * - 92 * - + 65 + 20 * 59 ) AS col2 @@ -16889,8 +17075,11 @@ SELECT - 76 * - COUNT ( * ) - - 11 / + 36 + - - ( - + 82 ) * + 41 + 57 # 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\(30\) / \(\- Int64\(75\)\) AS col2" at position 0 and "Int64\(15\) / Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 30 / - + 75 AS col2, 15 / 39 AS col2 +---- +0 +0 query I rowsort SELECT - 66 + + 11 - - + 87 * + 16 * - 75 col0 @@ -17016,8 +17205,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col1" at position 0 and "Int64\(\-96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 88 AS col1, - 96 AS col1 +---- +-88 +-96 query I rowsort label-3240 SELECT + + SUM ( + 30 ) * - - 19 col2 @@ -17528,8 +17720,11 @@ SELECT - 37 * 22 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52890 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(41\) \* Int64\(43\) AS col1" at position 0 and "\(\- sum\(DISTINCT Int64\(\-87\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 30 * 41 * + 43 AS col1, - SUM ( DISTINCT - 87 ) AS col1 +---- +52890 +87 query I rowsort label-3336 SELECT + - 91 + - COUNT ( * ) * 51 AS col0 @@ -18007,8 +18202,12 @@ SELECT DISTINCT - 63 + + 91 AS col2 # Datafusion - Expected - 19 # Datafusion - Expected - 5 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 III valuesort SELECT 19 AS col0, + ( ( 5 ) ) AS col0, MAX ( - + 16 ) AS col0 +---- +-16 +19 +5 query I rowsort SELECT ALL - 30 + - 33 @@ -18259,8 +18458,11 @@ SELECT ALL - 75 AS col0, 35 * - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -1248 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(\-47\)\)\) AS col0" at position 0 and "Int64\(48\) \* Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( COUNT ( - 47 ) ) col0, + 48 * - 26 AS col0 +---- +-1 +-1248 query I rowsort label-3476 SELECT - COUNT ( * ) * + MIN ( 94 ) * 60 + + SUM ( DISTINCT - 41 ) AS col1 @@ -18301,8 +18503,11 @@ SELECT ALL - COALESCE ( ( 29 ), - ( 5 ) ) + - COUNT ( * ) + + 29 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 59 AS col1, 85 AS col1 +---- +-59 +85 query I rowsort SELECT - 75 * + 62 col1 @@ -18546,8 +18751,11 @@ SELECT + 73 / + + 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* CAST\(NULL AS Int32\) / Int64\(\-63\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 79 * + CAST ( NULL AS INTEGER ) / - 63 AS col0, 43 AS col0 +---- +43 +NULL query I rowsort SELECT + 38 + - + 84 * 46 @@ -18668,8 +18876,11 @@ SELECT + - 24 * + 46 + + ( 35 ) # 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\(0\) AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 0 AS col2, 96 AS col2 +---- +0 +96 query I rowsort label-3555 SELECT DISTINCT - 53 * - - MAX ( - - 5 ) AS col2 @@ -18837,8 +19048,11 @@ SELECT ALL 86 * - 71 * + CASE COUNT ( * ) WHEN - + ( + + 5 ) THEN NULL ELSE - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 73 AS col2, + 11 AS col2 +---- +11 +73 query I rowsort label-3587 SELECT - MAX ( DISTINCT 13 ) @@ -18989,8 +19203,11 @@ SELECT 32 * 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ Int64\(\-74\) \+ nullif\(\(\- Int64\(\-2\)\), CAST\(NULL AS Float64\) \+ \(\- Int64\(\-53\)\)\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT 39 + - 74 + + NULLIF ( + ( - - 2 ), + CAST ( NULL AS FLOAT8 ) + - - 53 ) AS col2, + 42 AS col2 +---- +-33 +42 query I rowsort label-3614 SELECT ALL - - MIN ( DISTINCT - + 50 ) - + 36 AS col0 @@ -19113,8 +19330,12 @@ SELECT ALL 51 + - 88 - + 88 * + 0 * 70 * 69 # Datafusion - Expected - 1372 # Datafusion - Expected - -18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(18\)\) AS col1" at position 1 and "Int64\(2\) \+ Int64\(\-89\) \* Int64\(47\) \* \(\- \(\- nullif\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), \(\- \(\- CASE Int64\(\-14\) WHEN Int64\(\-58\) THEN NULL ELSE Int64\(27\) END\)\)\)\)\) \* Int64\(76\) \* Int64\(\-42\) \- \(\- Int64\(\-23\)\) \- Int64\(\-29\) \* \(\- CASE \(\- Int64\(19\)\) WHEN Int64\(90\) \- Int64\(55\) THEN CAST\(NULL AS Int32\) / count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(\-7\) \- Int64\(28\)\) WHEN Int64\(\-66\) \+ Int64\(72\) THEN count\(Int64\(1\)\) AS count\(\*\) ELSE NULL END\) \* Int64\(65\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-18 +1372 +NULL query I rowsort SELECT 50 * - 70 + 42 @@ -19161,8 +19382,11 @@ SELECT ALL ( SUM ( - 98 ) ) * + 36, 40 / - 5 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2055 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(94\), Int64\(1\) \* \(\- Int64\(\-45\)\) \+ Int64\(\-94\) \+ Int64\(\-82\)\) \- \(\- Int64\(37\)\) \* Int64\(53\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( 94, 1 * - - 45 + - 94 + + - 82 ) - - + 37 * + 53 AS col2, + 48 AS col2 +---- +2055 +48 query I rowsort label-3646 SELECT 68 / - 15 AS col0 @@ -19289,8 +19513,11 @@ SELECT ALL + - COUNT ( * ) * - + 46 + + COUNT ( * ) * 92 + - + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / CAST\(Int64\(\-59\) AS Int32\) AS col1" at position 0 and "Int64\(\-56\) \* CAST\(NULL AS Float64\) \+ Int64\(96\) \+ Int64\(99\) \* Int64\(\-98\) \* Int64\(95\) \* sum\(Int64\(\-1\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT COUNT ( * ) / + CAST ( + - 59 AS INTEGER ) AS col1, - 56 * + CAST ( NULL AS FLOAT8 ) + 96 + 99 * + - 98 * 95 * + SUM ( - 1 ) AS col1 +---- +0 +NULL query I rowsort SELECT + - 37 * - 50 + 29 @@ -20546,8 +20773,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col0" at position 0 and "Int64\(\-95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 AS col0, - 95 AS col0 +---- +-95 +52 query I rowsort SELECT + - 42 * - CASE - - ( - - 37 ) WHEN - + 32 THEN + 91 END @@ -20567,8 +20797,11 @@ SELECT - COUNT ( * ) / + ( - 17 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col1" at position 0 and "CAST\(Int64\(\-68\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 77 AS col1, + CAST ( - 68 AS INTEGER ) col1 +---- +-68 +-77 query I rowsort label-3917 SELECT - 71 * + MIN ( - 20 ) * CAST ( - COALESCE ( - 18, + 14 + + 22 ) AS INTEGER ) + - 60 AS col2 @@ -20665,8 +20898,11 @@ SELECT ALL 96 * - NULLIF ( - + 31, 62 * + COUNT ( * ) - + 97 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1920 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(30\)\)\) \* Int64\(64\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - + 30 ) * 64 AS col0, + ( 29 ) AS col0 +---- +1920 +29 query I rowsort SELECT + 7 * + - 10 * 27 @@ -20901,8 +21137,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) / 29 * CASE - ( + 75 ) WHEN - + MAX ( ALL - + 1 ) THEN - SUM ( DISTINCT + 97 ) END AS col1, - 84 / + 53 + + + MIN ( ALL - - 69 ) col1 +---- +68 +NULL query II rowsort label-3980 SELECT - COUNT ( + - 19 ) AS col1, - MAX ( 62 ) * + + COUNT ( 91 ) * 20 AS col2 @@ -21705,8 +21944,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1488 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* Int64\(48\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 31 * + + 48 AS col0, + 12 col0 +---- +12 +1488 query II rowsort label-4135 SELECT + 45 * + 46 - - - COUNT ( * ) + + COUNT ( * ), 2 AS col1 @@ -21763,8 +22005,11 @@ SELECT + + 72 + - 18, - 84 + 85 AS col2 # 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 "\(\- Int64\(55\)\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 55 ) AS col1, + 22 AS col1 +---- +-55 +22 query I rowsort label-4146 SELECT + + 49 * - - 3 + + 69 + - 72 + - COUNT ( + 49 ) / + + 34 + COUNT ( * ) @@ -21941,8 +22186,11 @@ SELECT ALL 49 * - ( + + COUNT ( * ) ) * - 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-74\)\) \+ Int64\(21\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 74 + + 21 * + COUNT ( * ) AS col0, + 11 AS col0 +---- +11 +95 query I rowsort label-4180 SELECT DISTINCT 67 * + - 76 + CASE - COUNT ( * ) WHEN - - COALESCE ( + 81, - + SUM ( DISTINCT - 31 ) ) THEN 33 END + - - ( - + 54 ) + 91 / + + COUNT ( * ) AS col2 @@ -22402,8 +22650,11 @@ SELECT + - 64 + - - NULLIF ( + 93, COUNT ( * ) ) AS col0 # 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 "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 3 AS col1, 13 col1 +---- +13 +3 query II rowsort SELECT ALL + - 71 col2, - 35 @@ -22636,8 +22887,11 @@ SELECT 91 * - 92 * 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - -3344 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col2" at position 0 and "Int64\(38\) \* Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 47 AS col2, + 38 * - 88 AS col2 +---- +-3344 +-47 query I rowsort label-4311 SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col0 @@ -22657,8 +22911,11 @@ SELECT ALL 77 * + 35 * + 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 61 AS col1, 10 AS col1 +---- +-61 +10 query I rowsort SELECT ( + 69 ) + + + 15 AS col1 @@ -22668,8 +22925,11 @@ SELECT ( + 69 ) + + + 15 AS col1 # 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 col2" at position 0 and "\(\- \(\- Int64\(84\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 1 AS col2, - ( - + 84 ) AS col2 +---- +1 +84 query I rowsort SELECT + 67 + - 47 AS col0 @@ -22799,8 +23059,11 @@ SELECT COUNT ( DISTINCT + 25 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, + 22 AS col1 +---- +1 +22 query I rowsort label-4342 SELECT ALL CAST ( NULL AS INTEGER ) * - - 14 * 34 - - ( + - 28 ) @@ -22889,8 +23152,11 @@ SELECT - SUM ( 68 ) / COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) / max\(DISTINCT Int64\(\-6\)\) \+ \(\- Int64\(28\)\) AS col2" at position 0 and "Int64\(\-52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 54 / + MAX ( DISTINCT - 6 ) + - + 28 AS col2, ( - 52 ) AS col2 +---- +-37 +-52 query I rowsort SELECT ALL + ( - - 37 ) @@ -23158,8 +23424,11 @@ SELECT ALL - 90 + + 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 54 col0, COUNT ( * ) col0 +---- +1 +54 query I rowsort label-4410 SELECT COUNT ( * ) - + - 11 - 8 + - 95 + + 12 * + - 93 AS col0 @@ -23184,8 +23453,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 AS col1, + COUNT ( * ) / - 33 AS col1 +---- +0 +37 query I rowsort SELECT ALL + 19 + - 96 + - 19 + + 55 + + - 93 * - 26 AS col1 @@ -23310,8 +23582,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * 29 AS col1, + 46 + - - 95 * + + 53 + + + 13 AS col1 +---- +29 +5094 query I rowsort SELECT ALL 14 * + 69 AS col1 @@ -24076,8 +24351,11 @@ SELECT 3 + - 89 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col1" at position 0 and "Int64\(\-45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 18 AS col1, - 45 col1 +---- +-18 +-45 query I rowsort label-4587 SELECT CASE + 51 WHEN - 57 * 30 + 95 THEN - 65 * - 70 WHEN NULLIF ( COUNT ( * ), COUNT ( * ) ) THEN 60 END * 1 @@ -24150,8 +24428,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "\(\- CAST\(Int64\(99\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 51 col2, - CAST ( + ( 99 ) AS INTEGER ) AS col2 +---- +-99 +51 query I rowsort label-4601 SELECT + 59 - + 79 + - SUM ( ALL NULLIF ( - 56, ( 60 ) ) ) * 96 @@ -24479,8 +24760,11 @@ SELECT 2 * + CASE + 90 WHEN - + 94 + + 20 THEN 88 + CAST ( NULL AS INTEGER ) ELS # Datafusion - Datafusion expected results: # Datafusion - Expected - -1935 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* \(\- Int64\(37\)\) \+ \(\- Int64\(85\)\) AS col1" at position 0 and "Int64\(\-11\) \+ \(\- Int64\(13\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 * - + 37 + - + 85 AS col1, - 11 + - + 13 AS col1 +---- +-1935 +-24 query I rowsort label-4664 SELECT 28 * CASE 86 WHEN + + 70 / 65 / + COUNT ( * ) + ( 8 ) * 31 THEN NULL WHEN - 84 THEN NULL ELSE - 9 * 85 END AS col0 @@ -24696,8 +24980,11 @@ SELECT 53 - - 36 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - -3712 -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\) \* Int64\(\-94\) \+ Int64\(\-62\) \+ Int64\(18\) \* Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 2 AS col0, 53 * + - 94 + - 62 + + 18 * ( + 74 ) AS col0 +---- +-3712 +2 query I rowsort SELECT + 11 * 21 + + 68 + + - 72 AS col0 @@ -24893,8 +25180,11 @@ SELECT + CASE 33 WHEN 10 * 44 THEN + AVG ( - ( - 32 ) ) * + 40 + + 51 * + 67 WHE # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 285 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(4\) AS col0" at position 0 and "coalesce\(Int64\(99\), Int64\(\-74\)\) \+ \(\- Int64\(\-89\)\) \+ Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) * + 4 AS col0, + COALESCE ( 99, - 74 ) + - - 89 + + 97 AS col0 +---- +285 +NULL query I rowsort SELECT ALL - 87 + + COALESCE ( 52, + 56, - - 6 ) AS col2 @@ -25344,8 +25634,11 @@ SELECT COUNT ( * ) * - 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 546 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- nullif\(Int64\(21\), Int64\(\-61\) \+ Int64\(\-49\)\)\) \* Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, - NULLIF ( + 21, + + ( - 61 ) + - 49 ) * - 26 AS col0 +---- +1 +546 query II rowsort label-4827 SELECT ALL + 56 - + NULLIF ( + - MIN ( 62 ), - - 55 ), + 83 AS col2 @@ -25542,14 +25835,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -34992 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-62\)\) AS col0" at position 0 and "\(\- coalesce\(Int64\(81\), \(\- nullif\(Int64\(50\), Int64\(\-98\)\)\), Int64\(38\) \+ Int64\(84\) / Int64\(\-64\)\)\) \* Int64\(6\) \* Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( - - 62 ) AS col0, - COALESCE ( 81, - NULLIF ( 50, - 98 ), 38 + + 84 / - 64 ) * + 6 * 72 AS col0 +---- +-34992 +62 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 1405 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col0" at position 0 and "Int64\(19\) \- Int64\(16\) \* Int64\(\-89\) \+ Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + ( + - 51 ) AS col0, ( + 19 ) - 16 * - 89 + ( - 38 ) AS col0 +---- +-51 +1405 query I rowsort SELECT ALL - 21 * 50 + - 55 @@ -25670,8 +25969,11 @@ SELECT DISTINCT ( - 72 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4070 # Datafusion - Expected - 5045 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \* Int64\(74\) AS col0" at position 0 and "Int64\(69\) \* \(\- Int64\(\-72\)\) \+ Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 * 74 AS col0, + 69 * - - 72 + + + 77 col0 +---- +-4070 +5045 query I rowsort label-4887 SELECT ALL CAST ( + ( + CASE - COUNT ( * ) WHEN - - CAST ( + COUNT ( * ) AS INTEGER ) + + 17 + - 62 + - 84 THEN NULL ELSE + 81 + 20 END ) AS INTEGER ) @@ -25823,8 +26125,11 @@ SELECT + 45 + + 94 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - -1477 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col0" at position 0 and "Int64\(31\) \+ Int64\(\-4\) \- Int64\(16\) \* Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 61 col0, + 31 + - 4 - + 16 * + 94 AS col0 +---- +-1477 +-61 query I rowsort label-4917 SELECT 66 + - COUNT ( * ) + + 3 - - 62 AS col2 @@ -25954,8 +26259,11 @@ 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\(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\. +query II valuesort SELECT 18 * - COUNT ( * ) + + 90 AS col0, + NULLIF ( - - COUNT ( ALL 86 ), + 8 ) * - 69 * + 78 AS col0 +---- +-5382 +72 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -25998,8 +26306,11 @@ SELECT DISTINCT COUNT ( * ) * - + 34 * - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-49\)\)\) AS col1" at position 0 and "Int64\(82\) \+ Int64\(\-40\) \+ Int64\(\-75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( ALL + - 49 ) AS col1, 82 + - 40 + - 75 AS col1 +---- +-33 +49 query I rowsort SELECT 46 - - 85 @@ -26366,8 +26677,11 @@ SELECT DISTINCT 84 * - 58 / COUNT ( * ) + + 74 * 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 20 AS col1, + COUNT ( * ) AS col1 +---- +1 +20 query I rowsort SELECT ALL 58 * - 51 + + 67 + - 36 col2 @@ -26424,8 +26738,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 73 AS col2, - COUNT ( * ) AS col2 +---- +-1 +73 query I rowsort SELECT 18 * 73 AS col1 @@ -26780,8 +27097,11 @@ SELECT - + 93 * + 94 - 69 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 1392 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(71\)\) AS col2" at position 0 and "Int64\(48\) \* \(\- min\(Int64\(\-29\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 71 AS col2, + 48 * + - MIN ( - 29 ) AS col2 +---- +-71 +1392 query II rowsort label-5099 SELECT ALL - - 96 / 63 + 19, - 69 AS col2 @@ -26927,8 +27247,11 @@ SELECT - 77 * - 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + COUNT ( * ) ) AS col2, - 77 AS col2 +---- +-77 +1 query I rowsort SELECT + 42 + 30 AS col0 @@ -27083,8 +27406,11 @@ SELECT ALL - COALESCE ( - 21, + 33 * - - 28 * 56, - - 89 / + 23 / - 1 / ( 1 ) * # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 + + ( COUNT ( * ) ) AS col2, 59 AS col2 +---- +17 +59 query I rowsort SELECT 58 * + + 80 + + 55 AS col0 @@ -27144,8 +27470,11 @@ SELECT DISTINCT 11 + - ( ( 4 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \+ count\(Int64\(\-10\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 70 + COUNT ( ALL - 10 ) AS col0, CAST ( NULL AS INTEGER ) * + 9 AS col0 +---- +71 +NULL query I rowsort label-5169 SELECT ALL + ( - + ( - + MAX ( ALL - - 94 ) ) ) * + - 23 AS col1 @@ -28197,8 +28526,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - MAX ( DISTINCT 44 ) * - COUNT ( * ) AS col1, - 10 col1 +---- +-10 +44 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -28537,14 +28869,20 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 2 AS col0, COUNT ( * ) + + - 64 AS col0 +---- +-2 +-63 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1350 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* \(\- Int64\(27\)\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 * - + 27 / - - COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) * - 72 AS col1 +---- +-1350 +NULL query I rowsort label-5437 SELECT ALL - MIN ( DISTINCT - 14 ) AS col0 @@ -29045,8 +29383,11 @@ SELECT + 35 AS col2, - 11 + + 83 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 192 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \- CAST\(NULL AS Int32\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- Int64\(\-96\)\) / Int64\(30\) AS col2" at position 0 and "Int64\(16\) \* Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 30 - + CAST ( NULL AS INTEGER ) + - ( - COUNT ( * ) ) + - - 96 / + ( + 30 ) AS col2, 16 * 12 col2 +---- +192 +NULL query I rowsort SELECT - 39 * - - 31 + - + 61 + + - 31 * + 41 * 52 - + + 42 * - 28 + + ( 46 ) @@ -29161,8 +29502,11 @@ SELECT ALL - 23 + NULLIF ( SUM ( 32 ), + 12 * - - 26 * - + 20 + - 54 ) + - - 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 - COUNT ( * ) AS col0, - 68 AS col0 +---- +-68 +78 query I rowsort label-5555 SELECT 53 + 48 / 74 * 25 @@ -29520,8 +29864,11 @@ SELECT + 88 + + + ( + 41 ) - - - 41 + + 73 * COALESCE ( + 81, + + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 18037096 # Datafusion - Expected - 181 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* \(\- Int64\(\-49\)\) \* Int64\(89\) \* Int64\(44\) AS col1" at position 0 and "\(\- Int64\(\-86\)\) \+ Int64\(71\) \+ Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 94 * - - 49 * + 89 * + + 44 col1, ( - - 86 ) + 71 + + 24 AS col1 +---- +18037096 +181 query I rowsort label-5623 SELECT + SUM ( + 34 ) * + + ( + + ( - COUNT ( * ) ) ) AS col0 @@ -29752,8 +30099,11 @@ 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\(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\. +query II valuesort SELECT ALL 24 * - - COUNT ( * ) AS col1, 24 / + + ( COUNT ( * ) ) + 77 AS col1 +---- +101 +24 query II rowsort SELECT - 8, 91 AS col2 @@ -30215,8 +30565,11 @@ SELECT - 89 * ( + 94 ) AS col1, 62 * - 17 * - + 43 AS col2 # 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 col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 22 AS col0, 24 AS col0 +---- +22 +24 query II rowsort SELECT 86 + + ( - 51 ) AS col2, + 17 * - + 31 * + - 89 AS col0 @@ -30529,8 +30882,11 @@ SELECT ALL - 66 AS col1, 72 * CAST ( - 78 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 157 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(54\)\) AS col0" at position 0 and "Int64\(79\) \+ Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 54 AS col0, + 79 + + 78 AS col0 +---- +-54 +157 query I rowsort SELECT - + ( - - 83 ) + - 45 @@ -30730,8 +31086,11 @@ SELECT - CAST ( - 49 AS INTEGER ) # 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\(8\) AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 AS col0, 6 AS col0 +---- +6 +8 query I rowsort label-5851 SELECT - - 48 * - COUNT ( * ) AS col1 @@ -30904,8 +31263,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + + 31 AS col1, + 15 AS col1 +---- +15 +32 query I rowsort label-5884 SELECT + CASE + 73 WHEN - 60 + COUNT ( * ) / 96 THEN NULL WHEN 56 THEN NULL ELSE + + 62 END - - 24 + 50 @@ -31370,8 +31732,11 @@ SELECT + 41 * + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(69\)\) \+ Int64\(\-56\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MIN ( DISTINCT + + 69 ) + + - 56 AS col2, 16 AS col2 +---- +13 +16 query I rowsort label-5971 SELECT DISTINCT 53 + COUNT ( * ) @@ -32928,8 +33293,11 @@ SELECT - 55 * ( - COUNT ( * ) ) + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(60\)\) AS col1" at position 0 and "CASE CASE CASE Int64\(27\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE Int64\(57\) \- Int64\(33\) \* Int64\(57\) END WHEN Int64\(\-6\) THEN min\(DISTINCT Int64\(35\)\) ELSE Int64\(42\) END WHEN Int64\(48\) / Int64\(59\) THEN Int64\(\-39\) \+ Int64\(\-31\) WHEN Int64\(78\) THEN \(\- CAST\(NULL AS Int32\)\) \* Int64\(8\) \+ Int64\(93\) ELSE Int64\(55\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-60 +55 query I rowsort SELECT - 30 + + 78 * - 81 col2 @@ -33363,8 +33731,11 @@ 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\(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\. +query IR valuesort 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 +---- +-4440 +59 query I rowsort label-6357 SELECT + 94 - - - 98 - + - COALESCE ( - 59, 17, + - 81 + 29 * COUNT ( * ) ) AS col2 @@ -33555,8 +33926,11 @@ SELECT 36 + + 30 * 36 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(31\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + 31 col1, 74 AS col1 +---- +74 +NULL query I rowsort label-6393 SELECT 20 / COUNT ( * ) * - + 89 * + - CAST ( - 4 AS INTEGER ) * - ( - 47 ) @@ -33814,8 +34188,11 @@ SELECT DISTINCT - + 18 AS col0, 31 AS col2 # 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\(66\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 66 AS col0, 49 col0 +---- +49 +66 query I rowsort label-6443 SELECT ALL + 34 * + 58 * - + 45 * COUNT ( * ) AS col1 @@ -33921,8 +34298,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 80 + - ( - 77 ) + + - 92 AS col0, - 4 * - 53 + + COUNT ( * ) + 59 AS col0 +---- +-95 +272 query II rowsort label-6464 SELECT + - 65 - 16 + + - 40 * COUNT ( * ) AS col2, - COUNT ( * ) + - + MAX ( DISTINCT - + COALESCE ( - - CASE + + 47 WHEN 86 * - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 63 END, 32 ) ) @@ -34331,8 +34711,12 @@ SELECT MAX ( 19 ) * ( - 60 ) # Datafusion - Expected - -1 # Datafusion - Expected - -62 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col1" at position 1 and "Int64\(\-67\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - COUNT ( * ), - 62 col1, - 67 AS col1 +---- +-1 +-62 +-67 query I rowsort SELECT DISTINCT - + 82 - 97 col2 @@ -34375,8 +34759,12 @@ SELECT COUNT ( * ) + - 11 AS col2, ( - 73 ) AS col0 # Datafusion - Expected - 31 # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col0" at position 0 and "Int64\(3\) \* Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 31 AS col0, ( 3 ) * 21 AS col0, ( + 49 ) * + 2 / + COALESCE ( + + 7, + 86 ) + + - MAX ( 96 ) + - 87 * - CAST ( NULL AS INTEGER ) +---- +31 +63 +NULL query I rowsort label-6550 SELECT + 29 + - CAST ( - - 56 AS INTEGER ) @@ -34387,14 +34775,21 @@ SELECT + 29 + - CAST ( - - 56 AS INTEGER ) # Datafusion - Expected - 35 # Datafusion - Expected - -45 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-35\)\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - 35 AS col0, - 45, + 26 AS col0 +---- +-45 +26 +35 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT ALL - 78 AS col1, 17 AS col1 +---- +-78 +17 query I rowsort SELECT ALL - + 27 + + 1 AS col0 @@ -34662,8 +35057,11 @@ SELECT NULLIF ( COUNT ( * ), + 88 * - + AVG ( ALL - - 12 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 2442 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "Int64\(37\) \* Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 25 AS col1, 37 * + 66 AS col1 +---- +2442 +25 query I rowsort label-6605 SELECT + 81 * - 54 + - CAST ( - 59 AS INTEGER ) @@ -34710,8 +35108,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(94\) \* \(\- Int64\(99\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 16 * + 22 - - 91 * - 40 AS col0, COUNT ( * ) + 94 * - + 99 AS col0 +---- +-3992 +-9305 query I rowsort label-6614 SELECT ALL - 41 * - + CAST ( 43 AS INTEGER ) + - NULLIF ( + COUNT ( * ), ( - + ( - - 63 ) ) * + - 90 + + - NULLIF ( + 81, 80 * - 79 * 54 ) ) + + COUNT ( * ) AS col0 @@ -34774,8 +35175,12 @@ 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\(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\. +query III valuesort 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 +---- +-74 +91 +NULL query I rowsort label-6626 SELECT + NULLIF ( + 31, + + 7 ) / - + 40 AS col0 @@ -34865,8 +35270,11 @@ SELECT 87 * 99 + - 68 * + + 67 * + - 27 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \+ Int64\(\-58\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 28 + - 58 AS col1, 27 col1 +---- +-30 +27 query I rowsort SELECT ALL + ( ( + + 6 ) ) AS col2 @@ -34907,8 +35315,11 @@ SELECT - 16 * 46 + - + 2 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2190 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) \* Int64\(\-30\) AS col1" at position 0 and "Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 73 * - 30 AS col1, 71 AS col1 +---- +2190 +71 query I rowsort SELECT - 56 + 88 AS col0 @@ -34970,8 +35381,11 @@ SELECT ALL CAST ( + 37 AS INTEGER ) * - 15 + - NULLIF ( MAX ( ALL - ( 29 ) ), - # Datafusion - Datafusion expected results: # Datafusion - Expected - 7722 # Datafusion - Expected - 5810 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \+ Int64\(86\) \* Int64\(88\) \+ Int64\(64\) AS col1" at position 0 and "Int64\(70\) \* Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 + + 86 * ( 88 ) + + + 64 AS col1, 70 * + 83 AS col1 +---- +5810 +7722 query I rowsort label-6663 SELECT ALL - 46 / + 47 * 66 @@ -35261,8 +35675,11 @@ SELECT - 41 / ( + 16 ) + + 39 + + 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- count\(Int64\(7\)\)\) AS Int32\)\)\) \* \(\- Int64\(\-85\)\) \+ CAST\(NULL AS Int32\) \* \(\- Int64\(39\)\) AS col0" at position 0 and "\(\- Int64\(\-42\)\) \+ Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - CAST ( + - COUNT ( 7 ) AS INTEGER ) * - - 85 + + + CAST ( NULL AS INTEGER ) * - + 39 AS col0, - ( - 42 ) + - 0 AS col0 +---- +42 +NULL query I rowsort label-6718 SELECT - - 84 / + 42 AS col0 @@ -35623,8 +36040,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 73 col0, - COUNT ( * ) AS col0 +---- +-1 +73 query I rowsort label-6788 SELECT ALL + MAX ( DISTINCT 19 ) * 49 * - ( + 13 ) AS col1 @@ -35781,8 +36201,11 @@ SELECT ALL 99 + - COUNT ( * ) + - - MAX ( + 0 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* Int64\(30\) \* Int64\(0\) \* Int64\(\-87\) AS col0" at position 0 and "Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 58 * + 30 * - 0 * + - 87 AS col0, 20 AS col0 +---- +0 +20 query I rowsort SELECT + 1 * - 31 + - - 53 + 35 col2 @@ -35850,8 +36273,11 @@ SELECT DISTINCT MIN ( + 80 ), + 79 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \- Int64\(2\) AS col1" at position 0 and "CAST\(Int64\(19\) AS Int32\) / Int64\(\-20\) \+ Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 97 - 2 col1, ( + + CAST ( + 19 AS INTEGER ) ) / - 20 + 18 AS col1 +---- +-99 +18 query I rowsort SELECT ALL + 50 * + 54 AS col0 @@ -36613,8 +37039,11 @@ SELECT ALL + 4 + - 13 * - - SUM ( + + 26 ) + - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -1320 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-23\)\) AS col0" at position 0 and "Int64\(\-30\) \* Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 23 col0, - 30 * + 44 AS col0 +---- +-1320 +23 query II rowsort SELECT ALL - + 41 AS col1, 96 + - - 25 * - - 98 @@ -36781,8 +37210,11 @@ SELECT ALL 81 * - 67 + + - 56 + + COALESCE ( + - 21, 80, 94 ) * - 12 - 93 AS col # 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\(54\) \* CASE Int64\(20\) WHEN Int64\(43\) THEN coalesce\(\(\- Int64\(\-79\)\), \(\- Int64\(\-83\)\)\) WHEN Int64\(\-83\) THEN NULL END \+ Int64\(84\) \* \(\- count\(Int64\(91\)\)\) AS col2" at position 0 and "Int64\(\-86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 54 * + CASE + + 20 WHEN 43 THEN + COALESCE ( - ( - 79 ), - - 83 ) WHEN - 83 THEN NULL END + + 84 * - COUNT ( + 91 ) col2, - 86 AS col2 +---- +-86 +NULL query II rowsort SELECT ALL - ( 84 ) AS col2, 67 @@ -37126,14 +37558,20 @@ SELECT 42 * 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* Int64\(0\) / \(\- Int64\(\-67\)\) \+ Int64\(\-53\) AS col0" at position 0 and "Int64\(\-62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 43 * 0 / - - 67 + - 53 AS col0, + ( - 62 ) AS col0 +---- +-53 +-62 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col1" at position 0 and "Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 35 AS col1, 89 AS col1 +---- +-35 +89 query I rowsort SELECT ALL - - CASE - + 78 WHEN + + 10 THEN - 3 * + 56 END @@ -37143,8 +37581,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* \(\- sum\(Int64\(68\)\)\) \- Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 12 AS col1, + COUNT ( * ) * - SUM ( + 68 ) - 49 AS col1 +---- +-117 +-12 query II rowsort SELECT DISTINCT - + 36, 13 + + 37 col1 @@ -37484,8 +37925,11 @@ 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\(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\. +query II valuesort 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 +---- +17 +NULL query I rowsort label-7142 SELECT ALL + COALESCE ( + CASE - 74 WHEN + NULLIF ( ( AVG ( 18 ) ), + + 98 ) * COUNT ( * ) + + + 52 THEN 53 ELSE - + COUNT ( * ) END, - - 0 ) * 97 AS col1 @@ -37642,8 +38086,11 @@ SELECT - COUNT ( * ) * COUNT ( + + 39 ) * - + 57 + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 167 # Datafusion - Expected - -5628 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* Int64\(79\) \+ \(\- min\(DISTINCT Int64\(\-9\)\)\) 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 II valuesort SELECT + ( 2 ) * + + 79 + + - MIN ( DISTINCT - 9 ) AS col1, 67 * - + 84 AS col1 +---- +-5628 +167 query I rowsort label-7172 SELECT 42 + - + COUNT ( * ) @@ -37653,8 +38100,11 @@ SELECT 42 + - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 8342 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* Int64\(97\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 86 * 97 AS col0, + COUNT ( * ) col0 +---- +1 +8342 query I rowsort label-7174 SELECT 52 + + - 80 / 20 @@ -37884,8 +38334,11 @@ SELECT - 87 * MIN ( + 79 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 51761 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) AS col0" at position 0 and "Int64\(13\) \* nullif\(\(\- \(\- Int64\(51\)\)\), Int64\(59\)\) \* Int64\(78\) \+ Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 1 AS col0, 13 * + + NULLIF ( - - ( + 51 ), + 59 ) * 78 + + 47 AS col0 +---- +-1 +51761 query I rowsort label-7218 SELECT SUM ( + 34 ) AS col1 @@ -37976,8 +38429,11 @@ SELECT - 15 + 98 * ( + COALESCE ( CAST ( + COUNT ( DISTINCT + 3 ) AS INTEGER ), # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) \+ Int64\(70\) AS col2" at position 0 and "count\(DISTINCT Int64\(56\)\) \* Int64\(5\) \+ \(\- Int64\(\-17\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 91 + + 70 AS col2, COUNT ( DISTINCT + + 56 ) * + 5 + - - 17 AS col2 +---- +-21 +22 query I rowsort SELECT ALL + + 73 + + 78 AS col1 @@ -38296,8 +38752,11 @@ SELECT ALL - 69 + + COUNT ( * ) - - - COUNT ( * ) AS col1, 23, + COUNT ( * ) AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 5280 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(32\) \* Int64\(55\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-5\) \+ \(\- coalesce\(Int64\(69\), Int64\(87\) \* nullif\(Int64\(68\), Int64\(\-11\) \* Int64\(68\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 * + 32 * + 55 * + + COUNT ( * ) AS col2, - 5 + ( + - COALESCE ( 69, + 87 * + NULLIF ( 68, - 11 * + 68 ) ) ) col2 +---- +-74 +5280 query I rowsort SELECT 77 + + 87 AS col1 @@ -38318,8 +38777,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3362 # Datafusion - Expected - -1018 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* Int64\(82\) \+ Int64\(44\) \* Int64\(\-82\) AS col2" at position 0 and "Int64\(16\) \* Int64\(\-63\) \- Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 85 * + 82 + + 44 * - 82 AS col2, 16 * - 63 - 10 AS col2 +---- +-1018 +3362 query I rowsort SELECT DISTINCT - 3 - + 62 AS col1 @@ -38371,8 +38833,11 @@ SELECT DISTINCT + - 84 * - + 45 + + 58 + - 69 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 61 AS col1, COUNT ( * ) AS col1 +---- +-61 +1 query I rowsort label-7309 SELECT + COUNT ( + 24 ) * - - 60 + + + 43 AS col2 @@ -39208,8 +39673,11 @@ SELECT + 27 / + 8 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(46\)\) AS col2" at position 0 and "sum\(Int64\(\-76\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 46 ) AS col2, SUM ( ALL - 76 ) AS col2 +---- +-46 +-76 query I rowsort label-7470 SELECT ALL ( + + 9 ) + + CASE 16 WHEN + 64 THEN + 73 + - COUNT ( * ) WHEN CAST ( NULL AS FLOAT8 ) + - 46 + + COUNT ( 31 ) / 48 * 36 - - 24 THEN NULL END / + - 85 / 25 AS col0 @@ -39444,8 +39912,11 @@ SELECT 50 * - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 AS col1, ( + + 20 ) AS col1 +---- +12 +20 query I rowsort SELECT 67 + - 7 AS col1 @@ -39465,8 +39936,11 @@ SELECT 16 * + - 49 - + - 13 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT \(\- Int64\(86\)\)\)\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + MIN ( DISTINCT + ( - + 86 ) ) AS col2, 45 AS col2 +---- +45 +86 query I rowsort SELECT - - ( + 43 ) col2 @@ -39560,8 +40034,11 @@ SELECT 42, CAST ( - 99 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-53\)\) \* \(\- CASE nullif\(Int64\(\-19\), Int64\(66\) \+ Int64\(96\)\) WHEN Int64\(\-13\) \* \(\- Int64\(\-42\)\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-58\)\) WHEN Int64\(77\) THEN \(\- Int64\(\-77\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(32\) \* \(\- CASE \(\- CAST\(Int64\(89\) AS Int32\)\) WHEN Int64\(\-20\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(70\) THEN NULL WHEN Int64\(20\) \- \(\- Int64\(65\)\) \- Int64\(\-54\) THEN Int64\(92\) \+ count\(Int64\(1\)\) AS count\(\*\) END\) \* Int64\(97\) / Int64\(36\) \+ nullif\(Int64\(\-61\), nullif\(Int64\(35\), count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(22\)\) \* Int64\(76\) THEN NULL END\) \* Int64\(90\) \* Int64\(77\) AS col0" at position 0 and "Int64\(\-62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-62 +NULL query I rowsort label-7537 SELECT ALL + COUNT ( * ) + + 14 @@ -39690,8 +40167,11 @@ SELECT NULLIF ( - COUNT ( * ), + 52 ) * - 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + + 31 ) AS col0, 89 AS col0 +---- +31 +89 query II rowsort SELECT + 76 + 84 col0, - 61 @@ -40232,8 +40712,11 @@ SELECT DISTINCT 62 + + COUNT ( * ) + 43 + - 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - 154 # Datafusion - Expected - -2689 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ Int64\(69\) AS col1" at position 0 and "Int64\(44\) \* Int64\(\-59\) \+ \(\- Int64\(93\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 + + + 69 AS col1, + 44 * - 59 + - + 93 col1 +---- +-2689 +154 query I rowsort SELECT 87 * + 0 - + 39 - + 43 AS col0 @@ -40357,8 +40840,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(69\) \* Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 2 AS col0, - ( ( + 7 ) ) * NULLIF ( 23, + 4 * + ( - 17 ) - - + 82 ) * + - COUNT ( * ) * + + 69 * 99 AS col0 +---- +1099791 +2 query I rowsort label-7685 SELECT DISTINCT + 92 + + + CASE - COUNT ( * ) WHEN COALESCE ( - + 60, 71 ) THEN + - 11 * + + 11 * ( - - 27 ) + 95 + + COUNT ( * ) / + 74 END / - MAX ( 90 ) col2 @@ -40439,8 +40925,11 @@ SELECT DISTINCT + - 93 * + + 40 * 14 + - 1 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col2" at position 0 and "Int64\(\-17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 60 AS col2, - 17 AS col2 +---- +-17 +60 query II rowsort label-7701 SELECT DISTINCT 14 col2, 42 + + + CASE + - 40 WHEN + 43 THEN COUNT ( * ) END @@ -40641,8 +41130,11 @@ SELECT DISTINCT 98 * - + 83 * 61 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ Int64\(49\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 33 + + + 49 AS col2, 0 AS col2 +---- +0 +82 query I rowsort label-7739 SELECT + COUNT ( * ) * + COUNT ( * ) * 59 * - + ( 84 ) @@ -40913,8 +41405,11 @@ SELECT - 3 * 12 * + ( - - 41 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 4189 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "Int64\(\-59\) \* Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 63 AS col2, - 59 * - 71 col2 +---- +4189 +63 query I rowsort SELECT ALL - 80 + - - 32 * - + 9 AS col1 @@ -40944,8 +41439,11 @@ SELECT DISTINCT + 8 + + 59 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -378 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) \* Int64\(7\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 54 * + 7 AS col2, + 75 AS col2 +---- +-378 +75 query I rowsort SELECT DISTINCT + 9 + + 30 @@ -42422,8 +42920,11 @@ SELECT NULLIF ( - - 84, - + 1 + - + 36 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(86\)\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + SUM ( DISTINCT 86 ) AS col0, + 26 AS col0 +---- +26 +86 query I rowsort label-8083 SELECT + 31 / - + 71 * 81 * 42 @@ -42522,8 +43023,12 @@ SELECT ALL + - 44 + 67 + 8 # Datafusion - Expected - 98 # Datafusion - Expected - -60 # Datafusion - Expected - -5676 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col1" at position 1 and "\(\- Int64\(79\)\) \* \(\- Int64\(\-71\)\) \+ Int64\(\-67\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - ( - 98 ), - 60 AS col1, - + 79 * - - 71 + - 67 AS col1 +---- +-5676 +-60 +98 query I rowsort label-8102 SELECT DISTINCT 79 + + 66 - + CAST ( + 91 AS INTEGER ) AS col0 @@ -43051,8 +43556,11 @@ SELECT ALL COUNT ( * ) * - 33 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- Int64\(\-41\)\) \+ Int64\(80\) \+ Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col1, - ( - 41 ) + 80 + + - 86 AS col1 +---- +1 +35 query I rowsort SELECT + ( + - 58 ) AS col0 @@ -43205,8 +43713,11 @@ SELECT - 3 AS col0, 75 / + 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - -174 # Datafusion - Expected - 7144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) \+ Int64\(\-81\) AS col2" at position 0 and "Int64\(76\) \* Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 93 + - 81 AS col2, + 76 * 94 col2 +---- +-174 +7144 query I rowsort label-8232 SELECT ALL + CASE 48 WHEN + 93 + - - 1 + - 55 + + 3 * + + COUNT ( * ) - + - 44 * + ( - - ( + 14 ) ) + - MIN ( 98 + + 17 ) THEN NULL WHEN - 82 * + 48 + - COUNT ( 64 ) THEN NULL ELSE - 71 * 4 END + + 87 AS col0 @@ -43277,14 +43788,20 @@ SELECT DISTINCT + 2 AS col2, - 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col0" at position 0 and "Int64\(\-44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 78 AS col0, - 44 AS col0 +---- +-44 +-78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -1482 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col0" at position 0 and "Int64\(57\) \* Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 43 AS col0, 57 * - 26 col0 +---- +-1482 +43 query I rowsort SELECT - 43 * - - 74 + + + 96 + 93 AS col1 @@ -43294,8 +43811,11 @@ SELECT - 43 * - - 74 + + + 96 + 93 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "Int64\(73\) \+ \(\- Int64\(0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 31 AS col2, 73 + - + 0 AS col2 +---- +31 +73 query I rowsort label-8249 SELECT DISTINCT + MIN ( DISTINCT + 37 ) AS col2 @@ -43459,20 +43979,29 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -1539 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(18\)\) AS col0" at position 0 and "Int64\(\-81\) \* Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MAX ( + 18 ) col0, - 81 * 19 AS col0 +---- +-1539 +18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8961420 # Datafusion - Expected - -4008 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \- Int64\(61\) \+ CAST\(Int64\(\-62\) AS Int32\) \* Int64\(\-66\) \* Int64\(30\) \* Int64\(73\) \+ \(\- Int64\(\-80\)\) AS col2" at position 0 and "Int64\(4\) \- \(\- Int64\(59\)\) \* Int64\(\-68\) \+ Int64\(\-17\) / Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 79 - + 61 + CAST ( - 62 AS INTEGER ) * - 66 * + 30 * + 73 + - - 80 AS col2, 4 - - + 59 * - 68 + - 17 / 47 AS col2 +---- +-4008 +8961420 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT Int64\(\-18\)\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CASE \(\- nullif\(Int64\(\-46\), Int64\(65\)\)\) WHEN Int64\(\-18\) \* Int64\(65\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-71\)\) THEN Int64\(\-99\) WHEN CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \+ \(\- coalesce\(Int64\(\-83\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(88\)\)\) / CAST\(NULL AS Int32\) THEN Int64\(72\) \* Int64\(\-35\) ELSE Int64\(\-20\) END \+ Int64\(\-66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-87 +18 query I rowsort label-8282 SELECT ALL COUNT ( DISTINCT 38 ) @@ -43550,8 +44079,11 @@ SELECT DISTINCT + 48 + 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 67 col2, 49 AS col2 +---- +-67 +49 query I rowsort SELECT DISTINCT - 48 + 50 AS col2 @@ -43876,8 +44408,11 @@ SELECT DISTINCT + - 62 * - - 50, ( - MAX ( + - 88 ) ) - + 74 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -180 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \+ Int64\(\-94\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 86 + - 94 col0, 46 col0 +---- +-180 +46 query I rowsort label-8356 SELECT ALL + CASE - + 95 WHEN + 48 THEN - COUNT ( * ) + - - 40 * + 26 / - + 94 WHEN 56 * - 47 THEN + + 72 + + CAST ( NULL AS INTEGER ) ELSE NULL END @@ -44057,8 +44592,11 @@ SELECT 1 AS col0, + 99 # 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\(72\)\) \+ sum\(\(\- Int64\(\-72\)\)\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 72 + + SUM ( ALL - - 72 ) col1, 93 AS col1 +---- +0 +93 query I rowsort label-8390 SELECT ALL - + 96 + + COUNT ( * ) - CASE 65 WHEN 39 * 29 + + COUNT ( * ) + + ( 80 ) THEN NULL ELSE - NULLIF ( 17, - CAST ( NULL AS INTEGER ) * + - 79 / - 68 * + 96 ) + 25 END * 63 AS col1 @@ -44179,8 +44717,11 @@ SELECT ALL + 27 * COUNT ( * ) AS col0, 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 AS col0, 89 AS col0 +---- +37 +89 query II rowsort label-8413 SELECT DISTINCT - 23 AS col0, COUNT ( * ) @@ -44215,8 +44756,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col0" at position 0 and "Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 9 AS col0, + 74 AS col0 +---- +-9 +74 query I rowsort SELECT DISTINCT 62 + + 60 + + + 61 AS col2 @@ -44376,8 +44920,11 @@ SELECT ALL - 68 / + 51 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2485 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* Int64\(35\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 * 35 col1, 13 col1 +---- +13 +2485 query I rowsort SELECT ALL + 96 + 15 * - 6 * 19 AS col1 @@ -44589,8 +45136,11 @@ SELECT - COUNT ( * ) + - - 70 + - 31 + + 50 / + - NULLIF ( + + 56, - 6 * - + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 7 AS col2, + ( + ( + + 54 ) ) col2 +---- +54 +7 query I rowsort SELECT DISTINCT - + 64 * + 40 * + + 83 + - ( + COALESCE ( - 29, + 11 ) ) - 26 + + 18 AS col0 @@ -45073,8 +45623,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* max\(\(\- Int64\(\-72\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 80 AS col2, + COUNT ( * ) * + MAX ( + - ( - 72 ) ) col2 +---- +72 +80 query II rowsort label-8584 SELECT ALL - 23, - CAST ( - + CASE 12 WHEN - COUNT ( * ) THEN - COUNT ( * ) END AS INTEGER ) AS col2 @@ -45347,8 +45900,11 @@ SELECT + 27 / - - 49 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, 0 col2 +---- +0 +1 query II rowsort label-8636 SELECT NULLIF ( + + 73, + 30 * + COALESCE ( + 9, - + 71 * + - ( COUNT ( * ) ) + - - 39, + 37 + + + ( COUNT ( * ) ) + CASE + - COUNT ( * ) WHEN 80 * + - COUNT ( - + 82 ) THEN - + 56 ELSE NULL END ) * - - 90 * - 77 + + 41 ) AS col0, - COUNT ( * ) + - + 39 AS col2 @@ -45494,8 +46050,11 @@ SELECT - 98 + + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-36\) \* Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col2, - 36 * + + 6 AS col2 +---- +-216 +NULL query I rowsort label-8664 SELECT ALL - 47 * SUM ( + - 16 ) + + 11 @@ -45583,8 +46142,11 @@ SELECT DISTINCT + 75 * COALESCE ( - 96, + 94 * + COALESCE ( 88, - 30 + + 5 * 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4651 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(32\), \(\- Int64\(31\)\), Int64\(66\)\) \+ \(\- Int64\(33\)\) \+ Int64\(62\) \* Int64\(\-75\) AS col2" at position 0 and "Int64\(\-77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( 32, - + 31, 66 ) + - + 33 + + 62 * - 75 AS col2, - 77 AS col2 +---- +-4651 +-77 query I rowsort label-8681 SELECT CAST ( NULL AS INTEGER ) * 37 * + 73 - - - CAST ( - + 16 AS INTEGER ) @@ -46063,8 +46625,12 @@ SELECT ALL 90 - - 36 AS col1, - 25 / - COUNT ( * ) # Datafusion - Expected - -27 # Datafusion - Expected - 14 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 and "nullif\(Int64\(\-9\), Int64\(\-16\) \* \(\- Int64\(52\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - NULLIF ( 27, - - 51 ), + 14 * COUNT ( * ) AS col0, + NULLIF ( - 9, - 16 * - + 52 ) AS col0 +---- +-27 +-9 +14 query I rowsort SELECT - 73 * - 25 AS col0 @@ -46245,8 +46811,11 @@ SELECT + ( - - 97 ) * 83 + NULLIF ( CAST ( 67 AS INTEGER ), + + 4 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(41\)\) AS col0" at position 0 and "Int64\(11\) \+ Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 41 AS col0, + 11 + 70 AS col0 +---- +-41 +81 query II rowsort label-8807 SELECT + - 11, + CAST ( NULL AS INTEGER ) AS col1 @@ -46257,8 +46826,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) 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 II valuesort SELECT + + 55 AS col2, + MIN ( ALL + 68 ) AS col2 +---- +55 +68 query I rowsort label-8809 SELECT ( 4 ) + - ( + ( + MIN ( DISTINCT + - 70 ) ) ) @@ -46306,8 +46878,11 @@ SELECT + CASE + 19 WHEN + COUNT ( * ) THEN NULL ELSE - COUNT ( * ) END # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, 78 AS col0 +---- +1 +78 query I rowsort SELECT ALL + 77 * - - 11 + - 23 - - + 70 @@ -46386,8 +46961,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(78\) \+ Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( 29, + 49 ) / - - 81 AS col0, COUNT ( * ) + 78 + + 66 AS col0 +---- +0 +145 query I rowsort SELECT 60 + + 30 AS col0 @@ -46825,8 +47403,11 @@ 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\(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\. +query II valuesort SELECT - NULLIF ( 5, - - COALESCE ( - + COUNT ( * ), - + 76 ) ) * - 61 col2, - 81 AS col2 +---- +-81 +305 query I rowsort SELECT DISTINCT - 27 - - 56 col0 @@ -47051,8 +47632,12 @@ SELECT ALL 84 + + NULLIF ( - + 57, + - 26 ) - + 37 + + CAST ( + 44 AS INTEGER ) # Datafusion - Expected - 18 # 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 1 and "count\(Int64\(24\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 89 - - 28 + - 99 AS col0, - 12 AS col2, COUNT ( ALL 24 ) AS col2 +---- +-12 +1 +18 query II rowsort label-8960 SELECT 16, + COUNT ( DISTINCT 3 ) AS col0 @@ -47695,8 +48280,11 @@ SELECT ALL + - 26 + - 45 * 3 + 63 * - - COUNT ( * ) + - - 19 + - 76 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \+ Int64\(27\) \- Int64\(7\) \+ Int64\(\-3\) \+ \(\- Int64\(60\)\) AS col1" at position 0 and "Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 18 + + 27 - 7 + + - 3 + - ( + 60 ) AS col1, 18 AS col1 +---- +-25 +18 query I rowsort label-9083 SELECT DISTINCT + ( COUNT ( 0 ) ) + 21 - + - ( - + 45 ) * + 24 * COUNT ( * ) + 10 @@ -48134,8 +48722,11 @@ SELECT ALL - 0 * + 91 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ Int64\(\-21\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 + - 21 AS col0, + 56 AS col0 +---- +56 +67 query I rowsort label-9167 SELECT ALL + 27 - SUM ( ALL 6 ) @@ -48185,8 +48776,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(42\) \- Int64\(\-11\) \+ Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + 51 ) AS col2, + COUNT ( * ) * + + 42 - - 11 + 96 AS col2 +---- +-51 +149 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -48539,8 +49133,11 @@ SELECT + 78 + + 22 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -5226 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "Int64\(\-78\) \* Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 57 AS col0, - 78 * + 67 AS col0 +---- +-5226 +57 query I rowsort label-9242 SELECT ALL 42 + COUNT ( * ) @@ -48576,8 +49173,11 @@ SELECT + 12 * - 35 * - + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(Int64\(48\)\)\) \+ Int64\(\-21\) \+ Int64\(1\) \* Int64\(19\) \+ \(\- CASE \(\- CAST\(CAST\(NULL AS Float64\) AS Int32\)\) WHEN Int64\(\-68\) / Int64\(\-97\) THEN Int64\(31\) ELSE NULL END\) \- Int64\(\-83\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - AVG ( + 48 ) + - 21 + 1 * 19 + + - CASE - CAST ( CAST ( NULL AS FLOAT8 ) AS INTEGER ) WHEN - 68 / - 97 THEN 31 ELSE NULL END - - 83 AS col2, + 87 AS col2 +---- +87 +NULL query I rowsort SELECT DISTINCT 41 + + ( - ( - 47 ) ) @@ -48902,8 +49502,11 @@ 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\)" at position 0 and "Int64\(0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0, - 0 +---- +0 +0 query I rowsort SELECT 3 + + 90 @@ -48950,8 +49553,11 @@ SELECT 32 + - 46 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \+ Int64\(0\) \+ Int64\(35\) AS col1" at position 0 and "Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 + 0 + + 35 AS col1, - 33 AS col1 +---- +-33 +73 query I rowsort SELECT DISTINCT + - 23 * - 49 @@ -49046,8 +49652,11 @@ SELECT ( - ( - CAST ( + COUNT ( * ) AS INTEGER ) ) ) * - SUM ( COALESCE ( + 91, # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - -3439 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(5\)\)\) AS col0" at position 0 and "Int64\(\-77\) \- \(\- Int64\(\-82\)\) \* Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MIN ( + 5 ) AS col0, - 77 - - - 82 * 41 AS col0 +---- +-3439 +-5 query II rowsort label-9337 SELECT + COUNT ( DISTINCT - 34 ) AS col0, 61 * + CAST ( 73 AS INTEGER ) @@ -49144,8 +49753,11 @@ SELECT - - ( + 18 ) / + 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1560 # Datafusion - Expected - 2294 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) \* Int64\(\-26\) AS col0" at position 0 and "Int64\(\-31\) \* nullif\(Int64\(\-74\), Int64\(85\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 60 * - 26 AS col0, - 31 * NULLIF ( + - 74, + 85 ) AS col0 +---- +1560 +2294 query I rowsort label-9356 SELECT ALL + 2 + COUNT ( DISTINCT 85 ) * + 24 * - - 86 + + ( - - 22 ) @@ -49409,8 +50021,11 @@ 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\(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\. +query II valuesort SELECT ALL - CASE - - SUM ( DISTINCT - - 68 ) WHEN COUNT ( * ) + + 29 + + - 60 THEN MAX ( ALL + 24 ) + - 47 END AS col1, + MAX ( - 64 ) - - 32 AS col1 +---- +-32 +NULL query II rowsort SELECT 30 AS col0, - 42 @@ -49743,8 +50358,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col2" at position 0 and "\(\- \(\- coalesce\(Int64\(\-50\), \(\- Int64\(78\)\) \+ Int64\(22\) \* \(\- Int64\(\-84\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 80 AS col2, ( - - COALESCE ( - 50, - + 78 + 22 * - - 84 ) ) AS col2 +---- +-50 +80 query I rowsort label-9467 SELECT 98 / 58 - COUNT ( * ) AS col1 @@ -50786,8 +51404,11 @@ NULL # 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\(97\) \+ Int64\(\-20\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 97 + - 20 AS col1, 67 AS col1 +---- +67 +77 query I rowsort SELECT 84 + + NULLIF ( - - 55, 84 ) + - ( 43 ) * + 89 * - 18 AS col2 @@ -50898,8 +51519,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 624 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* CAST\(Int64\(26\) AS Int32\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 24 * CAST ( 26 AS INTEGER ) col2, + 47 AS col2 +---- +47 +624 query I rowsort label-9691 SELECT ALL 30 * + - COUNT ( * ) @@ -51225,8 +51849,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) / ( + + ( - 45 ) ) AS col0, 17 AS col0 +---- +0 +17 query II rowsort label-9753 SELECT ALL 38, - 71 * - MIN ( ALL - + 53 ) + + + COALESCE ( - 17, 63 ) col0 @@ -51774,8 +52401,11 @@ SELECT DISTINCT - 9 * - 5 * + 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \+ Int64\(\-10\) \+ Int64\(\-83\) AS col2" at position 0 and "Int64\(18\) \* \(\- CASE \(\- count\(Int64\(16\)\)\) WHEN Int64\(86\) \* Int64\(\-8\) / Int64\(90\) THEN Int64\(\-43\) \* Int64\(88\) WHEN max\(CAST\(NULL AS Int32\)\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(97\) \* Int64\(2\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-21 +NULL query I rowsort SELECT + 78 * 2 AS col0 @@ -51957,8 +52587,11 @@ SELECT DISTINCT 35 col0, + ( + + 53 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 AS col2, 44 col2 +---- +14 +44 query I rowsort SELECT 4 - - 7 AS col1 @@ -52110,8 +52743,11 @@ SELECT 24 + - + 45 col0, 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2660 # Datafusion - Expected - 1056 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* Int64\(\-28\) AS col0" at position 0 and "max\(CAST\(Int64\(16\) AS Int32\)\) \* Int64\(66\) \+ Int64\(\-53\) / Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 95 * - 28 AS col0, MAX ( ALL + CAST ( 16 AS INTEGER ) ) * + + 66 + + - 53 / 57 AS col0 +---- +-2660 +1056 query I rowsort label-9924 SELECT DISTINCT COUNT ( * ) * + + 26 * - CAST ( NULL AS INTEGER ) AS col1 diff --git a/data/sqlite/random/expr/slt_good_7.slt b/data/sqlite/random/expr/slt_good_7.slt index d66d788..7eddd68 100644 --- a/data/sqlite/random/expr/slt_good_7.slt +++ b/data/sqlite/random/expr/slt_good_7.slt @@ -128,8 +128,11 @@ SELECT ALL + + CAST ( - 96 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 6298 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* Int64\(94\) AS col0" at position 0 and "Int64\(\-93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 67 * + 94 AS col0, - 93 col0 +---- +-93 +6298 query I rowsort label-18 SELECT + COUNT ( * ) * - + 52 * - 49 + COUNT ( * ) AS col2 @@ -352,8 +355,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( + 70 ) * + + 62 - - 92 - - + 8 / + 58 / ( 5 ) + + - 52 + + COUNT ( * ) + - - 62 * NULLIF ( COUNT ( * ), + SUM ( DISTINCT - 26 ) ) AS col1, COUNT ( * ) * + 16 + 94 AS col1 +---- +110 +165 query I rowsort label-60 SELECT - + COUNT ( * ) * + 5 / + 66 - - - COUNT ( * ) * + COUNT ( * ) col0 @@ -446,8 +452,11 @@ 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\(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\. +query II valuesort SELECT - 33 AS col0, 3 / + COUNT ( * ) + - CASE - 63 WHEN + + 43 * + COUNT ( * ) THEN + 77 * + ( 69 ) WHEN - + ( + 24 ) + + 83 * - - 92 THEN + 91 END + - - 12 * + 64 col0 +---- +-33 +NULL query I rowsort SELECT 89 + - 73 @@ -724,8 +733,11 @@ 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\(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\. +query II valuesort SELECT ALL + 50 col2, CASE + 78 WHEN 53 THEN COUNT ( * ) / - 70 ELSE COUNT ( * ) * 27 END + + 83 + - - 37 AS col2 +---- +147 +50 query I rowsort SELECT - 70 * + 77 AS col1 @@ -1420,8 +1432,11 @@ SELECT 49 + - + 68 + - - 40 * - 54 # 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 "\(\- CASE \(\- Int64\(30\)\) WHEN Int64\(37\) THEN NULL WHEN Int64\(0\) \+ Int64\(2\) \* Int64\(\-60\) THEN Int64\(95\) / coalesce\(Int64\(\-40\), Int64\(57\) / Int64\(\-17\)\) WHEN Int64\(\-64\) \- Int64\(\-98\) THEN NULL ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 27 col1, - CASE - + 30 WHEN + 37 THEN NULL WHEN + 0 + 2 * - 60 THEN + ( 95 ) / COALESCE ( - 40, 57 / - 17 ) WHEN - 64 - - 98 THEN NULL ELSE NULL END AS col1 +---- +27 +NULL query I rowsort label-267 SELECT ALL + 5 / - 92 @@ -1446,8 +1461,11 @@ SELECT ALL - 14 + + 90 + - + 79 * CAST ( 89 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 375 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-29\)\) AS col2" at position 0 and "Int64\(5\) \* Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 29 AS col2, + ( + + 5 ) * + 75 col2 +---- +29 +375 query II rowsort SELECT - 55, 82 AS col2 @@ -1773,8 +1791,11 @@ SELECT ALL 19 / - 88 * + - 96 * - 62 * + + 43 + + SUM ( 8 + - 36 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col0" at position 0 and "Int64\(\-84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 94 AS col0, - 84 col0 +---- +-84 +94 query I rowsort SELECT ALL - 35 * - 52 + - 53 * - 15 @@ -2041,8 +2062,11 @@ SELECT + 7, 47 * COALESCE ( - CASE - 51 WHEN - COALESCE ( + 27, - 39 + + 15 ) TH # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \- CAST\(Int64\(57\) AS Int32\) AS col2" at position 0 and "CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT + 35 - + CAST ( + ( + 57 ) AS INTEGER ) AS col2, + CAST ( NULL AS FLOAT8 ) AS col2 +---- +-22 +NULL query I rowsort label-388 SELECT ALL + 60 * + + SUM ( 94 ) @@ -2492,8 +2516,11 @@ SELECT 10 * + + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3666 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* Int64\(\-78\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 * + - 78 AS col0, + 60 AS col0 +---- +-3666 +60 query I rowsort SELECT - 13 * + 23 AS col2 @@ -2592,8 +2619,11 @@ 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\(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\. +query II valuesort SELECT ALL ( - 5 ) - + 54 AS col0, + COUNT ( * ) + + + 90 + 43 / 20 * - COUNT ( * ) col0 +---- +-59 +89 query II rowsort label-494 SELECT DISTINCT 45 - - NULLIF ( + + 10, - COUNT ( + + 12 ) ), - 12 AS col2 @@ -3003,8 +3033,11 @@ SELECT DISTINCT - 73 - - NULLIF ( + + 9, + COUNT ( * ) * + 60 + + 97 + + 77 / + # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \+ Int64\(\-57\) AS col2" at position 0 and "Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 45 + - 57 AS col2, - 38 col2 +---- +-12 +-38 query I rowsort SELECT ALL 20 - - 69 AS col0 @@ -3919,8 +3952,11 @@ SELECT 38 * 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -112 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 0 and "Int64\(\-25\) \+ Int64\(\-87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 28 col0, - 25 + - 87 AS col0 +---- +-112 +28 query I rowsort label-744 SELECT - MAX ( DISTINCT + 54 ) @@ -4363,8 +4399,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col1, - 36 AS col1 +---- +-36 +NULL query I rowsort SELECT ALL + 21 * 66 AS col1 @@ -4532,8 +4571,12 @@ SELECT - COUNT ( * ) - - + 57 col2 # Datafusion - Expected - -138 # Datafusion - Expected - 19 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) \+ Int64\(90\) AS col0" at position 1 and "Int64\(9\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + + 2 * - 69, - 71 + + 90 AS col0, + 9 AS col0 +---- +-138 +19 +9 query I rowsort label-862 SELECT - COALESCE ( COUNT ( * ), + 77 ) @@ -4733,8 +4776,12 @@ SELECT - + COALESCE ( - - 95, - - 49 * - SUM ( DISTINCT + - 18 ) + - COUNT ( * ) # Datafusion - Expected - -90 # Datafusion - Expected - -2800 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* \(\- \(\- \(\- Int64\(40\)\)\)\) AS col0" at position 1 and "\(\- Int64\(\-41\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 63 - + + 27 AS col1, 70 * - - ( - + 40 ) AS col0, - - 41 AS col0 +---- +-2800 +-90 +41 query I rowsort label-898 SELECT - COUNT ( ALL + 22 ) + 48 @@ -5337,8 +5384,11 @@ SELECT + NULLIF ( 58, + 25 * + 17 ) / COUNT ( * ) + + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1569 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(44\) \+ Int64\(38\) \+ Int64\(48\) \* \(\- Int64\(\-31\)\) AS col0" at position 0 and "Int64\(\-80\) \* \(\- Int64\(\-7\)\) \* CAST\(NULL AS Float64\) \* \(\- \(\- nullif\(Int64\(84\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-90\)\) \* Int64\(\-79\) \* Int64\(32\) \+ Int64\(79\) \+ Int64\(89\)\)\)\) \- Int64\(\-42\) \+ Int64\(76\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +1569 +NULL query I rowsort SELECT ALL 27 * - 94 @@ -5396,8 +5446,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 138 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col0" at position 0 and "Int64\(80\) \+ Int64\(36\) \- Int64\(25\) \+ Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 38 AS col0, + 80 + + + 36 - 25 + 47 AS col0 +---- +-38 +138 query I rowsort label-1025 SELECT + NULLIF ( + COUNT ( * ), - 79 + COUNT ( * ) ) * 9 AS col0 @@ -5428,8 +5481,11 @@ SELECT ALL - 3 AS col1, + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 col1, 62 AS col1 +---- +38 +62 query I rowsort label-1031 SELECT ALL + 1 + - 90 / 1 @@ -5752,8 +5808,11 @@ 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\(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\. +query II valuesort SELECT 53 + - SUM ( DISTINCT 11 ) AS col0, - NULLIF ( + 14, + 81 * 16 + - COUNT ( * ) + - + 24 ) + + COUNT ( * ) - - 52 AS col0 +---- +39 +42 query I rowsort SELECT ALL - 3 + 39 AS col2 @@ -6265,8 +6324,12 @@ SELECT - 75, + 47 AS col1 # Datafusion - Expected - 81 # Datafusion - Expected - 96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "CASE Int64\(\-29\) WHEN \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), coalesce\(Int64\(\-88\), Int64\(\-61\)\) \+ Int64\(\-57\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) THEN Int64\(69\) \* \(\- Int64\(\-20\)\) ELSE NULL END \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 81 AS col2, 96, + CASE - 29 WHEN - + NULLIF ( + COUNT ( * ), + COALESCE ( + - 88, + - 61 ) + + - 57 + - COUNT ( * ) ) THEN + 69 * - ( + - 20 ) ELSE NULL END * + COUNT ( * ) AS col2 +---- +81 +96 +NULL query I rowsort label-1188 SELECT ALL COUNT ( * ) * + 23 AS col1 @@ -6344,8 +6407,11 @@ SELECT 10 - + + COUNT ( * ) / 20 / - + 77 AS col1 # 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 "Int64\(0\) \* Int64\(44\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 * + 44 AS col0, 64 AS col0 +---- +0 +64 query I rowsort SELECT 9 + 16 - 59 @@ -6864,8 +6930,11 @@ SELECT DISTINCT + MIN ( - - 88 ) * + COUNT ( * ) * - NULLIF ( + 21, 79 * - 96 + # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \* Int64\(78\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 34 * 78 * + CAST ( NULL AS INTEGER ) AS col0, 9 col0 +---- +9 +NULL query I rowsort label-1303 SELECT DISTINCT ( + 20 ) / + 85 AS col0 @@ -6998,8 +7067,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) / count\(DISTINCT \(\- Int64\(19\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 AS col2, 66 - + 88 - + 40 * - COUNT ( * ) / + COUNT ( DISTINCT + + ( - + 19 ) ) AS col2 +---- +-92 +18 query I rowsort label-1329 SELECT MAX ( DISTINCT + 57 ) * + COUNT ( * ) @@ -7380,8 +7452,11 @@ SELECT DISTINCT + ( + 92 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 152880 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* Int64\(70\) \* Int64\(84\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 26 * 70 * 84 AS col2, 59 AS col2 +---- +152880 +59 query I rowsort SELECT - 31 - 64 @@ -7580,8 +7655,11 @@ SELECT DISTINCT + 85 / + - 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- Int64\(\-25\)\)\) AS col0" at position 0 and "\(\- coalesce\(Int64\(\-55\), \(\- Int64\(\-37\)\) \* Int64\(63\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( - - 25 ) AS col0, - COALESCE ( - 55, - - 37 * + + ( + + 63 ) ) AS col0 +---- +25 +55 query I rowsort label-1441 SELECT - 51 * + - SUM ( + 48 ) + - ( - + 5 ) * - 38 @@ -7647,8 +7725,12 @@ SELECT - MIN ( + 90 ) # Datafusion - Expected - 68 # Datafusion - Expected - -62 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col1" at position 0 and "Int64\(\-60\) \+ \(\- coalesce\(Int64\(2\), Int64\(74\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 68 AS col1, - 60 + - COALESCE ( + + ( 2 ), + 74 ) AS col1, - 96 AS col2 +---- +-62 +-96 +68 query I rowsort label-1454 SELECT DISTINCT COUNT ( * ) - - - 73 * - 0 @@ -7736,8 +7818,11 @@ SELECT + + 91 col0, COUNT ( * ) + - 4 + 67 - + 63 + 58 + + - 4 / - + ( - 8 ) + + # Datafusion - Datafusion expected results: # Datafusion - Expected - -1058 # Datafusion - Expected - 3534 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \* Int64\(\-1\) \+ Int64\(47\) \+ Int64\(25\) \* Int64\(\-46\) AS col1" at position 0 and "nullif\(Int64\(38\), Int64\(\-68\)\) \* \(\- min\(Int64\(\-93\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 45 * - 1 + 47 + 25 * + - 46 AS col1, + NULLIF ( + 38, + - 68 ) * - MIN ( ALL - 93 ) AS col1 +---- +-1058 +3534 query II rowsort label-1471 SELECT ALL + COUNT ( * ) AS col0, 52 @@ -7853,8 +7938,12 @@ 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\(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\. +query IIR valuesort SELECT + COUNT ( * ) * - - 90 AS col1, 23 * - 18, - CAST ( NULL AS FLOAT8 ) AS col1 +---- +-414 +90 +NULL query I rowsort SELECT ALL ( + 57 ) * - 53 col1 @@ -7869,8 +7958,11 @@ SELECT + - 6 + - MAX ( + 36 ) + - - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col1" at position 0 and "Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 AS col1, + 71 AS col1 +---- +37 +71 query I rowsort SELECT + + 32 + - - 52 col2 @@ -7885,8 +7977,11 @@ SELECT DISTINCT 25 + + COUNT ( ALL 19 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-14\)\) \+ Int64\(54\) \+ count\(Int64\(53\)\) \* sum\(Int64\(83\)\) \+ Int64\(\-74\) AS col1" at position 0 and "\(\- min\(Int64\(\-33\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + SUM ( ALL - 14 ) + 54 + COUNT ( + 53 ) * + SUM ( ALL + ( + 83 ) ) + - 74 AS col1, - MIN ( - 33 ) AS col1 +---- +33 +49 query I rowsort label-1498 SELECT + + 71 + + MAX ( 18 ) + + - 94 * + 70 AS col1 @@ -8018,8 +8113,11 @@ SELECT ALL CAST ( - 79 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) / Int64\(\-96\) AS col2" at position 0 and "Int64\(\-92\) \+ Int64\(\-11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 38 / - 96 AS col2, - 92 + - 11 AS col2 +---- +-103 +0 query I rowsort label-1523 SELECT ALL 49 + COUNT ( * ) * 66 * - + 55 AS col1 @@ -9236,8 +9334,11 @@ SELECT ALL + 1 * 13 / - - 79 * - + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \- Int64\(\-65\) AS col0" at position 0 and "Int64\(\-74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 2 - - 65 AS col0, - 74 AS col0 +---- +-74 +63 query I rowsort SELECT DISTINCT ( - ( + 99 ) ) @@ -10433,8 +10534,11 @@ SELECT ALL CASE COUNT ( * ) WHEN + + 15 THEN NULL WHEN + - COUNT ( * ) THEN COUN # 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 col2" at position 0 and "Int64\(58\) / Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 AS col2, 58 / + 90 AS col2 +---- +0 +41 query I rowsort SELECT ALL - 97 + - + 60 + 16 @@ -10911,8 +11015,11 @@ SELECT + 29 AS col0, - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -3071 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(3\)\) AS col0" at position 0 and "Int64\(\-68\) \- Int64\(\-84\) \+ Int64\(49\) \* Int64\(\-63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 3 AS col0, - 68 - - 84 + + + 49 * - 63 AS col0 +---- +-3 +-3071 query I rowsort label-2076 SELECT NULLIF ( COUNT ( * ), + 88 + + 75 + - 89 / + + 58 * + 53 - - - COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) AS col0 @@ -11329,8 +11436,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, + MAX ( - - 7 ) * 83 * + + 19 col2 +---- +-1 +11039 query I rowsort SELECT + 85 * - 60 + 47 @@ -11564,8 +11674,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "max\(Int64\(92\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, MAX ( + + 92 ) AS col1 +---- +1 +92 query II rowsort SELECT + 22, 84 AS col2 @@ -11622,8 +11735,11 @@ SELECT ALL - ( 30 ) / + 70 # 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 "Int64\(23\) / Int64\(62\) / Int64\(56\) AS col0" at position 0 and "Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 23 / 62 / 56 AS col0, + 74 AS col0 +---- +0 +74 query II rowsort label-2211 SELECT + COUNT ( + 76 ) + + ( - - 40 ) * + - MIN ( - + 36 ) col1, - NULLIF ( - ( + 46 ), + ( - - 0 ) ) + + 92 col0 @@ -11915,8 +12031,11 @@ SELECT 81 * + 83 + MAX ( DISTINCT 12 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 AS col0, + 90 AS col0 +---- +16 +90 query I rowsort SELECT ALL + - 61 + - - 78 @@ -12384,8 +12503,11 @@ SELECT DISTINCT - NULLIF ( - - COUNT ( * ), - 89 - + CAST ( + 2 AS INTEGER ) - - # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(99\) \+ Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 40 col0, CAST ( NULL AS INTEGER ) * + 99 + + 34 AS col0 +---- +40 +NULL query I rowsort label-2354 SELECT - COUNT ( * ) - + 33 / 25 / + + 47 col2 @@ -12456,8 +12578,11 @@ SELECT - MIN ( DISTINCT + 76 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2564 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* Int64\(\-78\) \+ Int64\(10\) AS col2" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 33 * - 78 + + + 10 AS col2, CAST ( - COUNT ( * ) AS INTEGER ) AS col2 +---- +-1 +-2564 query II rowsort label-2368 SELECT DISTINCT - 22 AS col2, + COUNT ( * ) col1 @@ -12814,8 +12939,11 @@ SELECT + 49 * COUNT ( * ) * + COUNT ( * ) - + + 7 * + 51 + - 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 92 AS col1, 90 col1 +---- +90 +92 query I rowsort label-2436 SELECT 16 * - + CAST ( NULL AS INTEGER ) / - + 48 * - + 38 + - 40 @@ -12897,8 +13025,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 700 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "Int64\(10\) \* Int64\(63\) \+ Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 AS col2, 10 * 63 + ( 70 ) AS col2 +---- +37 +700 query II rowsort label-2452 SELECT - 91 AS col2, 16 / - 99 - - ( - 52 ) AS col1 @@ -12946,14 +13077,20 @@ SELECT ALL + - COUNT ( * ) / - + ( + + 8 ) + + 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -2863 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "Int64\(62\) \+ \(\- min\(Int64\(45\)\)\) \* Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 58 AS col2, 62 + + - ( MIN ( + 45 ) ) * 65 AS col2 +---- +-2863 +58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, + 1 AS col1 +---- +1 +1 query I rowsort label-2462 SELECT + - CASE - ( 96 ) WHEN - AVG ( DISTINCT 91 ) - - MIN ( DISTINCT - 19 ) THEN - 87 ELSE NULL END * 72 AS col1 @@ -13241,8 +13378,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 77 AS col0, 34 col0 +---- +34 +77 query I rowsort label-2517 SELECT 30 * - 87 * - SUM ( + ( + 9 ) ) AS col0 @@ -13370,8 +13510,11 @@ SELECT 93 AS col2, ( - + 1 ) - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -1376 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-64\)\) AS col1" at position 0 and "\(\- CAST\(min\(Int64\(\-16\)\) AS Int32\)\) \* Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 64 AS col1, - CAST ( MIN ( - 16 ) AS INTEGER ) * - 86 AS col1 +---- +-1376 +64 query I rowsort label-2541 SELECT 95 * - - MAX ( - + 59 ) col1 @@ -13900,8 +14043,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(Int64\(\-67\) AS Int32\) / CAST\(Int64\(97\) AS Int32\) \* Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, CAST ( + - 67 AS INTEGER ) / + CAST ( 97 AS INTEGER ) * + + ( 13 ) AS col0 +---- +0 +1 query I rowsort label-2642 SELECT - MIN ( + 83 ) + + 29 AS col1 @@ -14503,8 +14649,11 @@ SELECT 57 + + 7 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -109 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-26\) \- count\(Int64\(1\)\) AS count\(\*\) \+ \(\- nullif\(max\(Int64\(82\)\), \(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 col1, COUNT ( * ) * + - 26 - COUNT ( * ) + - NULLIF ( MAX ( + ( 82 ) ), - CAST ( NULL AS INTEGER ) ) col1 +---- +-109 +80 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -14544,8 +14693,11 @@ SELECT ALL - COUNT ( * ) + + + 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(\(\- coalesce\(Int64\(\-58\), Int64\(\-78\)\)\) AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) + CAST ( - ( COALESCE ( + - 58, - 78 ) ) AS INTEGER ) AS col1, COUNT ( * ) AS col1 +---- +1 +59 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -14743,8 +14895,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - + COUNT ( * ) / + MIN ( + 85 ) + + + 95 AS col2, 33 AS col2 +---- +33 +95 query I rowsort SELECT ALL - 14 * + 2 @@ -15295,8 +15450,11 @@ SELECT 36 * + 20 + - 83 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col0" at position 0 and "Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 22 AS col0, - 43 AS col0 +---- +-22 +-43 query I rowsort SELECT 67 * - 60 * + NULLIF ( + + 35, - - 52 ) AS col0 @@ -15515,8 +15673,11 @@ SELECT + 83 * + - NULLIF ( - 4, 96 ) * + - 53 - + 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, - 40 AS col1 +---- +-40 +1 query II rowsort SELECT - ( + - 17 ) AS col2, - 20 + + 66 @@ -15969,8 +16130,11 @@ SELECT DISTINCT - 70 * + COUNT ( * ) + + + 53 + - - 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4032 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \* Int64\(84\) AS col1" at position 0 and "max\(Int64\(\-12\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 48 * + 84 AS col1, + ( + ( MAX ( ALL - 12 ) ) ) AS col1 +---- +-12 +4032 query I rowsort SELECT ALL + 42 * 39 AS col2 @@ -16140,8 +16304,11 @@ SELECT + - 9 + + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col2, 18 AS col2 +---- +1 +18 query I rowsort label-3065 SELECT + - CASE + 93 WHEN - COUNT ( * ) THEN 27 + 91 - 36 + - - 61 + + 9 + - 48 / + + NULLIF ( - - 37, - - 52 ) WHEN - + CAST ( - 56 AS INTEGER ) - - NULLIF ( - 92, ( + + 77 ) ) THEN + + 98 WHEN - MIN ( - 96 ) * - - 81 * - + ( - COUNT ( * ) ) * 29 + - COUNT ( * ) + - - 97 + NULLIF ( + + ( - + 19 ), - - CAST ( + CAST ( + 97 AS INTEGER ) AS INTEGER ) * - + 44 + + 59 ) / - 76 + - 86 * - 99 THEN NULL END AS col1 @@ -16319,8 +16486,11 @@ SELECT DISTINCT - + 37 * - ( - 14 ) + - 82 - + CASE - COUNT ( * ) WHEN + 30 + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 760033 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "Int64\(87\) \* Int64\(91\) \* \(\- Int64\(\-96\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 3 col1, + 87 * 91 * - - 96 + COUNT ( * ) AS col1 +---- +3 +760033 query I rowsort SELECT ALL - 24 * + ( + + 77 ) AS col1 @@ -16553,8 +16723,12 @@ NULL # Datafusion - Expected - 38 # Datafusion - Expected - 58 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 1 and "max\(Int64\(64\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 38 * + CAST ( + COUNT ( * ) AS INTEGER ) AS col0, 58 AS col2, MAX ( 64 ) AS col2 +---- +38 +58 +64 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -17181,8 +17355,11 @@ SELECT - 23 + 70 # 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 col2" at position 0 and "Int64\(\-34\) \+ Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 85 AS col2, - 34 + + ( + + 73 ) AS col2 +---- +-85 +39 query I rowsort SELECT - 37 + 50 @@ -17335,8 +17512,11 @@ SELECT DISTINCT + 42 * 67 + - 64 * + ( - - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \- Int64\(62\) AS col2" at position 0 and "Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 42 - + + 62 AS col2, - 27 AS col2 +---- +-20 +-27 query I rowsort label-3291 SELECT CASE 90 WHEN - 40 * + 68 * + COUNT ( * ) * + 8 / + - 68 * - - 83 + 14 THEN - - COUNT ( * ) END @@ -17380,8 +17560,11 @@ SELECT ALL + 82 * - + 8 - + 83 # 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 "Int64\(10\) / Int64\(94\) \* Int64\(4\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 10 / + + 94 * + 4 AS col0, 63 AS col0 +---- +0 +63 query I rowsort label-3299 SELECT - - CAST ( 82 AS INTEGER ) + - - 66 + COALESCE ( - 68, + - 35 + - 31 + + 78 ) @@ -17641,8 +17824,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) / - 94 * - + 22 + 30 AS col1, + 40 + - COUNT ( * ) AS col1 +---- +30 +39 query II rowsort label-3348 SELECT 64 * + 21 * + COUNT ( ALL - 92 ) col1, + ( - COUNT ( * ) ) AS col0 @@ -17676,8 +17862,12 @@ 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\(Int64\(1\)\) AS count\(\*\) ELSE Int64\(\-32\) END\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-32 +1824 +58608 query I rowsort label-3354 SELECT ALL - COALESCE ( + + 73, + + 94 * - 90, - CAST ( NULL AS INTEGER ) + - 87 ) @@ -18476,8 +18666,11 @@ SELECT DISTINCT 14 + - + COUNT ( * ) * - 65 + 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 38 col2, 38 AS col2 +---- +-38 +38 query I rowsort SELECT - + 8 * - 22 + - 93 * + 49 AS col0 @@ -18576,8 +18769,11 @@ SELECT + COALESCE ( + + ( - 0 ), + 67 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2537 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) \* Int64\(48\) AS col2" at position 0 and "Int64\(26\) \* Int64\(\-98\) \+ Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - CAST ( NULL AS FLOAT8 ) * 48 AS col2, 26 * - 98 + 11 AS col2 +---- +-2537 +NULL query I rowsort label-3530 SELECT DISTINCT + 54 * + - CASE + 44 WHEN CAST ( + 22 AS INTEGER ) - - COUNT ( * ) * 51 THEN 74 - - 59 END AS col0 @@ -18767,8 +18963,12 @@ SELECT COUNT ( * ), + 52 / 19 + + + 29 col1 # Datafusion - Expected - -81 # Datafusion - Expected - 88 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 1 and "\(\- Int64\(\-3\)\) / Int64\(\-56\) \* Int64\(88\) \+ CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \+ Int64\(74\) \+ Int64\(82\) \* CAST\(NULL AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 81, ( + 88 ) col1, - - 3 / + - 56 * + 88 + ( CAST ( + COUNT ( * ) AS INTEGER ) + + 74 ) + + 82 * CAST ( NULL AS INTEGER ) AS col1 +---- +-81 +88 +NULL query I rowsort SELECT - 17 * 7 AS col1 @@ -18877,8 +19077,11 @@ SELECT - 37 * + 68 + + 32 + - 74 # 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 "Int64\(76\) / \(\- Int64\(65\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 23 AS col1, + 76 / - + 65 AS col1 +---- +-1 +23 query II rowsort SELECT 93, + 84 * - 5 * + ( 36 ) * + 88 AS col2 @@ -19083,8 +19286,11 @@ SELECT COUNT ( DISTINCT + 17 ) * 89 * + 13 + - - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, - 87 col2 +---- +-87 +1 query II rowsort label-3626 SELECT ALL COUNT ( * ) * - 13, + 10 AS col1 @@ -19353,8 +19559,11 @@ SELECT + + 27 * 71 + + 49 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT - 93 AS col0, + 83 AS col0 +---- +-93 +83 query II rowsort SELECT ALL + 31 AS col1, 75 @@ -19880,8 +20089,11 @@ SELECT + + 96 + - + COALESCE ( + + 22, - 57, + 26 ) - + - 20 + 41 * 22 * ( 4 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 17 col2, 37 AS col2 +---- +17 +37 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -19977,8 +20189,12 @@ SELECT - - 43 / - - 12 # Datafusion - Expected - -1 # Datafusion - Expected - 773 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(35\) \+ Int64\(\-41\) \* Int64\(\-18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - COUNT ( * ) * + COUNT ( * ) AS col0, 35 + - 41 * + - 18 AS col0, - ( 82 ) +---- +-1 +-82 +773 query II rowsort label-3796 SELECT - SUM ( + - 84 ) AS col0, 49 AS col2 @@ -20122,8 +20338,11 @@ SELECT ALL - 53 - 57 * - 33 * - ( 0 ) / + 82 * - + 90 + 58 AS col2 # 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\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 AS col0, + 93 col0 +---- +37 +93 query II rowsort SELECT 48 + - 50 * - 21 col2, 92 - 14 - + 88 @@ -20149,8 +20368,11 @@ SELECT - 42 / - 89 # 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\(23\)\) / Int64\(\-56\) \+ Int64\(48\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 23 / + - 56 + 48 col0, 80 AS col0 +---- +48 +80 query I rowsort label-3828 SELECT + CAST ( + 71 AS INTEGER ) / - - 98 + + - ( ( + - ( + 12 ) ) ) + - 56 @@ -20775,8 +20997,11 @@ SELECT DISTINCT - 45 + - 6 - + 27 - 77 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 116 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \+ Int64\(90\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 26 + + 90 AS col2, 12 AS col2 +---- +116 +12 query II rowsort label-3947 SELECT - COUNT ( + - 64 ), 30 + 99 AS col0 @@ -21445,8 +21670,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 140 # Datafusion - Expected - 103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \+ Int64\(38\) \* Int64\(3\) AS col2" at position 0 and "Int64\(52\) \+ Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 + 38 * + 3 AS col2, 52 + 51 col2 +---- +103 +140 query I rowsort SELECT - 84 + + 21 @@ -21520,14 +21748,20 @@ SELECT 6 * - CASE + 36 WHEN + 52 / - - 61 * - 36 * ( - COUNT ( * ) ) + + CASE 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 60 AS col1, 12 AS col1 +---- +12 +60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "Int64\(\-36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 15 AS col0, - 36 AS col0 +---- +-36 +15 query II rowsort label-4088 SELECT ALL + 73 * - - COUNT ( * ) AS col1, 40 AS col2 @@ -21570,8 +21804,11 @@ SELECT + 26, COUNT ( * ) * + 41 * - 69 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col2" at position 0 and "Int64\(3\) / Int64\(\-17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 47 AS col2, + 3 / - 17 AS col2 +---- +-47 +0 query I rowsort label-4096 SELECT ALL CAST ( - 9 AS INTEGER ) * - + 28 AS col0 @@ -22194,8 +22431,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(92\)\) AS col1" at position 0 and "Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 92 AS col1, - 58 AS col1 +---- +-58 +-92 query II rowsort label-4215 SELECT DISTINCT - 97 col1, 68 + - COUNT ( * ) * + + 31 @@ -22258,8 +22498,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - COUNT ( * ) AS col1, + 48 AS col1 +---- +1 +48 query I rowsort SELECT ALL + 23 * + 87 * - - 79 @@ -22402,8 +22645,11 @@ SELECT + - 88 * 47 + - 80 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1320919 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "Int64\(11\) / Int64\(18\) \+ Int64\(19\) \* Int64\(\-48\) \* Int64\(29\) \* \(\- Int64\(50\)\) \+ \(\- sum\(DISTINCT Int64\(\-29\)\)\) \+ Int64\(77\) \* Int64\(\-20\) \+ Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 0 AS col0, 11 / + + ( + 18 ) + + + 19 * - 48 * + 29 * - + 50 + - SUM ( DISTINCT - 29 ) + 77 * + - 20 + + 30 AS col0 +---- +0 +1320919 query I rowsort label-4254 SELECT + 47 + + CAST ( NULL AS INTEGER ) AS col2 @@ -22572,8 +22818,12 @@ 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\(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\. +query III valuesort SELECT + COALESCE ( ( - COUNT ( * ) ), + 29 + + - 60, + + 62 ) + - 38 AS col0, - 47, COUNT ( * ) * COUNT ( * ) / - - 36 col0 +---- +-39 +-47 +0 query II rowsort SELECT ALL 76 * - - 38, - 14 AS col1 @@ -23171,8 +23421,11 @@ SELECT + ( + - 80 ) / + COUNT ( * ) + + 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "CAST\(avg\(Int64\(\-13\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col0, + CAST ( + AVG ( ALL - 13 ) AS INTEGER ) AS col0 +---- +-13 +NULL query I rowsort SELECT - 11 + - - 70 AS col0 @@ -23507,8 +23760,11 @@ SELECT ALL + 95 / - 10 + - - 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col2" at position 0 and "Int64\(4\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 40 AS col2, 4 * + CAST ( NULL AS INTEGER ) AS col2 +---- +40 +NULL query I rowsort label-4465 SELECT DISTINCT CASE - 4 WHEN - 23 THEN + COUNT ( * ) * + 6 * - 34 - 7 - + 59 WHEN - 76 THEN NULL END @@ -23792,8 +24048,11 @@ 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\(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\. +query II valuesort SELECT ALL - - COUNT ( * ) col2, COUNT ( * ) / - 27 + - COALESCE ( - + 7, 92 * + 53, 1 ) * - - 78 AS col2 +---- +1 +546 query I rowsort SELECT ALL - 67 * + 83 @@ -23915,8 +24174,11 @@ SELECT DISTINCT 58 * - 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 615 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "\(\- \(\- Int64\(\-10\)\)\) \+ \(\- coalesce\(Int64\(25\), Int64\(41\)\)\) \* Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 col0, - ( - - 10 ) + - + COALESCE ( + 25, 41 ) * - 25 AS col0 +---- +0 +615 query I rowsort label-4543 SELECT ALL - SUM ( ALL CAST ( + ( COALESCE ( 5, + NULLIF ( + + 46, CAST ( NULL AS FLOAT8 ) ) ) ) AS INTEGER ) ) / MAX ( ALL 7 ) AS col0 @@ -23995,8 +24257,11 @@ SELECT ALL 16 + + COUNT ( * ) + 38 * MAX ( ALL - 60 ) + 42 # 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 "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 AS col0, - 0 AS col0 +---- +0 +87 query I rowsort label-4558 SELECT COUNT ( * ) - + 32 AS col1 @@ -24111,8 +24376,11 @@ NULL # 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 "nullif\(\(\- min\(DISTINCT Int64\(60\)\)\), Int64\(79\)\) AS col2" at position 0 and "Int64\(\-40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + + NULLIF ( - MIN ( DISTINCT 60 ), + 79 ) ) AS col2, - 40 AS col2 +---- +-40 +-60 query I rowsort label-4579 SELECT + - 81 + - CASE + COUNT ( * ) WHEN - 82 THEN NULL WHEN + - 0 THEN NULL ELSE - - 24 * - 55 * 5 END AS col0 @@ -24211,8 +24479,11 @@ SELECT - ( + 96 ) + - - 77 AS col1, + 51 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 23 AS col2, + 55 AS col2 +---- +23 +55 query II rowsort SELECT + 36 col1, + 58 AS col0 @@ -24717,15 +24988,22 @@ SELECT ALL 2 * COUNT ( * ) + + + 53 * + 13 AS col1, 41 + - 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, 81 AS col0 +---- +1 +81 # 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + COUNT ( * ), + 77 + + - 14 + - ( - + 3 ) - - ( - + 76 ) * + - CAST ( + + 65 AS INTEGER ) AS col1, + - ( COUNT ( * ) ) AS col1 +---- +-1 +1 +5006 query I rowsort SELECT + 81 * + 78 * 8 col1 @@ -24760,8 +25038,11 @@ SELECT + + COALESCE ( + 65, + 81 / + 40 + 34, COUNT ( * ) * - - 53 - - + 84 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col0" at position 0 and "Int64\(52\) \+ Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 81 AS col0, + ( + ( + 52 ) ) + + 33 AS col0 +---- +-81 +85 query I rowsort label-4702 SELECT - COUNT ( * ) + - - 67 @@ -24938,8 +25219,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(68\)\) AS col2" at position 0 and "max\(DISTINCT \(\- Int64\(\-77\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( + 68 ) AS col2, MAX ( DISTINCT - - 77 ) col2 +---- +68 +77 query I rowsort label-4735 SELECT + - 67 / - CASE + 58 WHEN - + COALESCE ( 60, + - 34 ) * - 57 + COUNT ( * ) * + 14 / - 87 THEN COUNT ( * ) * + 96 / - 45 * + 65 + - - COUNT ( * ) WHEN - 76 THEN NULL END @@ -25042,8 +25326,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 51 AS col1, COUNT ( * ) AS col1 +---- +-51 +1 query I rowsort SELECT ALL + 15 * - 98 @@ -25562,8 +25849,11 @@ SELECT DISTINCT - 32 AS col1, + 26 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(75\) WHEN Int64\(71\) THEN \(\- Int64\(\-16\)\) WHEN Int64\(32\) / \(\- CAST\(Int64\(47\) AS Int32\)\) \+ Int64\(96\) \+ \(\- Int64\(\-9\)\) \+ Int64\(83\) THEN \(\- count\(Int64\(\-12\)\)\) WHEN CASE Int64\(\-92\) WHEN Int64\(44\) \+ Int64\(76\) \+ \(\- Int64\(53\)\) THEN CAST\(NULL AS Int32\) \+ Int64\(12\) \- Int64\(13\) \+ Int64\(\-23\) / min\(Int64\(32\)\) WHEN Int64\(\-20\) THEN NULL END \- Int64\(\-22\) \+ coalesce\(Int64\(\-37\), Int64\(86\) \+ Int64\(71\) \* \(\- Int64\(\-26\)\)\) \+ Int64\(\-78\) / Int64\(36\) THEN NULL ELSE NULL END \+ Int64\(\-44\) \* Int64\(1\) / Int64\(\-28\) \+ Int64\(\-73\) AS col2" at position 0 and "sum\(Int64\(34\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CASE + 75 WHEN ( 71 ) THEN - - 16 WHEN 32 / - + CAST ( 47 AS INTEGER ) + 96 + - - 9 + + 83 THEN - COUNT ( ALL - 12 ) WHEN CASE - 92 WHEN + 44 + + 76 + - + 53 THEN + CAST ( NULL AS INTEGER ) + 12 - + + 13 + - 23 / MIN ( 32 ) WHEN - 20 THEN NULL END - - 22 + COALESCE ( - 37, + + 86 + + 71 * - - 26 ) + + - 78 / 36 THEN NULL ELSE NULL END + - 44 * 1 / - 28 + - 73 col2, + SUM ( + 34 ) AS col2 +---- +34 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -25650,8 +25940,11 @@ SELECT + + NULLIF ( 5, + CAST ( + 88 AS INTEGER ) ), + 94 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col2" at position 0 and "Int64\(43\) \- nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(41\) \* \(\- Int64\(\-94\)\) \+ Int64\(\-40\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 AS col2, 43 - NULLIF ( + - CAST ( NULL AS INTEGER ), 41 * - - 94 + + - 40 ) AS col2 +---- +3 +NULL query I rowsort SELECT 87 * - 29 - - 39 AS col0 @@ -25686,8 +25979,11 @@ SELECT ALL 64 * - - 0 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3611 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(40\), Int64\(\-15\)\) \* \(\- Int64\(92\)\) \+ Int64\(69\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( + 40, - 15 ) * - + 92 + 69 AS col2, 98 col2 +---- +-3611 +98 query I rowsort label-4878 SELECT DISTINCT SUM ( + 25 ) * COUNT ( * ) AS col2 @@ -26648,8 +26944,11 @@ SELECT DISTINCT - 17 * + 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 49 AS col0, 54 AS col0 +---- +49 +54 query I rowsort SELECT ALL + NULLIF ( - 0, 97 + 20 ) AS col2 @@ -26992,8 +27291,11 @@ SELECT MIN ( - 26 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, + 50 col0 +---- +1 +50 query I rowsort label-5131 SELECT ALL - 53 * - - CASE 84 WHEN - NULLIF ( - COUNT ( * ), 60 / 81 ) THEN NULL WHEN + 98 + - 31 * + 5 THEN 71 * + COUNT ( * ) ELSE - 98 END + + COUNT ( * ) * 39 AS col2 @@ -27169,8 +27471,11 @@ SELECT ALL 90, - 39 - - 26 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ \(\- Int64\(\-21\)\) AS col0" at position 0 and "Int64\(\-61\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) + - - 21 col0, ( - 61 ) + COUNT ( * ) AS col0 +---- +-60 +NULL query I rowsort label-5165 SELECT - CASE - CAST ( NULL AS INTEGER ) WHEN 12 THEN + - 52 ELSE CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - 14 END @@ -27200,8 +27505,11 @@ SELECT + 15 + + 57 + + - NULLIF ( - 27, - COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col1" at position 0 and "Int64\(\-78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 5 AS col1, - 78 AS col1 +---- +-78 +5 query I rowsort label-5171 SELECT ALL 49 * + + COUNT ( * ) - - 98 + COALESCE ( + 50, 74 ) / 49 col2 @@ -27453,8 +27761,11 @@ SELECT DISTINCT 35 + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\)" at position 0 and "Int64\(\-46\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 46, - 46 +---- +-46 +-46 query II rowsort label-5219 SELECT DISTINCT + COUNT ( * ) + - 8 * + 60, 45 AS col1 @@ -27640,8 +27951,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 136 # Datafusion - Expected - -8256 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ \(\- Int64\(\-94\)\) AS col0" at position 0 and "Int64\(86\) \* \(\- nullif\(Int64\(96\), Int64\(\-80\) / \(\- Int64\(6\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 + - - 94 AS col0, 86 * - + NULLIF ( + 96, - 80 / + ( - + 6 ) ) AS col0 +---- +-8256 +136 query I rowsort SELECT 51 + + - 47 @@ -27753,8 +28067,11 @@ SELECT NULLIF ( + - 35, - ( + ( - 2 ) ) ), - SUM ( - + 35 ) * 49 + 61 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1788 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(\-30\) \+ Int64\(42\) AS col0" at position 0 and "Int64\(\-6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 61 * - 30 + + + 42 AS col0, - 6 AS col0 +---- +-1788 +-6 query I rowsort SELECT COALESCE ( 30, 72 ) @@ -27854,8 +28171,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - -2200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col0" at position 0 and "coalesce\(Int64\(\-44\), Int64\(9\), Int64\(4\)\) \* Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 97 AS col0, COALESCE ( - 44, 9, + 4 ) * + 50 AS col0 +---- +-2200 +-97 query I rowsort SELECT + + 29 * + 75 @@ -28208,8 +28528,11 @@ SELECT ALL + 33 * - 5 * 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ Int64\(\-69\) \+ \(\- Int64\(3\)\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 + - 69 + - ( + ( 3 ) ) col0, + 48 col0 +---- +-14 +48 query I rowsort label-5363 SELECT ALL + 7 * - 5 / 75 * + NULLIF ( + + 60, + COUNT ( * ) + 68 ) + COUNT ( * ) @@ -28444,8 +28767,11 @@ 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\(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\. +query II valuesort SELECT - - COUNT ( * ) + MIN ( + 91 ) AS col2, 80 + - 29 AS col2 +---- +51 +92 query II rowsort label-5408 SELECT + - SUM ( ALL + - 6 ) * ( - 70 ) AS col1, 23 @@ -28508,8 +28834,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + 76 / - 88 + MAX ( + - 24 ) + - + MIN ( DISTINCT - 21 ) / + COUNT ( * ) + - 96 + + 74 AS col1, 25 AS col1 +---- +-25 +25 query I rowsort label-5420 SELECT DISTINCT - MIN ( DISTINCT + 42 ) / + 13 + + COUNT ( * ) * + 85 AS col1 @@ -28670,8 +28999,11 @@ 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\(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\. +query II valuesort SELECT 35 * + COUNT ( * ) * + 72 AS col1, - 74 AS col1 +---- +-74 +2520 query I rowsort SELECT + 1 * - 28 + - + 44 col0 @@ -28681,8 +29013,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) col0, + COALESCE ( - 37, + 22 ) AS col0 +---- +-1 +-37 query I rowsort SELECT DISTINCT + 29 + + 50 @@ -28801,8 +29136,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 9 AS col0, - COUNT ( * ) AS col0 +---- +-1 +9 query I rowsort SELECT 19 * - - 4 @@ -28900,8 +29238,11 @@ SELECT - 34 / + 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - -342 # Datafusion - Expected - -613 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* \(\- Int64\(6\)\) AS col2" at position 0 and "Int64\(72\) \* \(\- Int64\(9\)\) \- \(\- Int64\(35\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 * - + 6 AS col2, 72 * - + 9 - - + 35 AS col2 +---- +-342 +-613 query I rowsort SELECT ( + ( + 56 ) ) * + + 95 * 78 @@ -29070,14 +29411,20 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) - - 74 AS col0, + 88 AS col0 +---- +73 +88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - -275065 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(81\)\) AS col2" at position 0 and "Int64\(35\) \* Int64\(\-81\) \* Int64\(97\) \+ \(\- Int64\(70\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( ALL ( + 81 ) ) col2, 35 * - 81 * + 97 + - + 70 AS col2 +---- +-275065 +81 query I rowsort SELECT + 5 * - - 42 AS col2 @@ -29570,8 +29917,11 @@ SELECT DISTINCT - 93, - 15 - + ( - 35 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4800 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* Int64\(75\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 * ( 75 ) AS col2, 36 AS col2 +---- +36 +4800 query I rowsort SELECT 70 + - 25 + - 52 @@ -30089,8 +30439,11 @@ SELECT ALL 93 + NULLIF ( - ( 47 ), - + 89 + + + 78 ) - 40 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 1609 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "Int64\(91\) \+ Int64\(46\) \* Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 51 AS col2, 91 + 46 * 33 AS col2 +---- +1609 +51 query I rowsort SELECT ALL 70 + + 3 * - + 62 + + 9 @@ -30116,8 +30469,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) + NULLIF ( - 61, + 57 ) - - + ( - 26 ) AS col1, + 43 AS col1 +---- +-86 +43 query II rowsort label-5725 SELECT + 79 AS col0, + 47 / - 66 * - 32 @@ -30221,8 +30577,12 @@ SELECT 5 / COUNT ( - + 76 ) AS col0 # Datafusion - Expected - -132374 # Datafusion - Expected - 53 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(97\) \* Int64\(\-65\) \+ Int64\(31\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 21 * 97 * - 65 + + + 31 col0, + 53 AS col1, COUNT ( * ) col0 +---- +-132374 +1 +53 query I rowsort label-5745 SELECT ALL 80 * + - CAST ( NULL AS INTEGER ) AS col1 @@ -30542,8 +30902,11 @@ SELECT 94 + + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 30 AS col1, + 91 AS col1 +---- +-30 +91 query I rowsort SELECT 33 * - - 27 AS col1 @@ -30553,8 +30916,11 @@ SELECT 33 * - - 27 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "CAST\(Int64\(\-4\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 32 col2, CAST ( - 4 AS INTEGER ) AS col2 +---- +-4 +32 query I rowsort SELECT 4 + - 47 AS col1 @@ -30600,8 +30966,11 @@ SELECT NULLIF ( 76, 86 ) * - + COUNT ( * ) * + 43 + + COUNT ( * ) / + 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 AS col1, CAST ( NULL AS INTEGER ) AS col1 +---- +-92 +NULL query II rowsort label-5818 SELECT + COUNT ( * ) AS col0, - 87 AS col2 @@ -30862,8 +31231,11 @@ SELECT DISTINCT 61 + - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 90 AS col1, + 83 AS col1 +---- +83 +90 query I rowsort label-5868 SELECT ALL 51 / + 93 @@ -31115,8 +31487,11 @@ SELECT DISTINCT COALESCE ( 51, - - COUNT ( * ) + ( 36 ), - COUNT ( * ) ) / + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 518 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* Int64\(74\) AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 7 * + 74 AS col0, + 34 col0 +---- +34 +518 query I rowsort label-5914 SELECT DISTINCT 97 * - - 30 * 62 / - 31 @@ -31260,8 +31635,12 @@ SELECT 15 + ( ( - 0 ) ) - - ( + + 73 ) / + + 96 AS col1 # Datafusion - Expected - -76 # Datafusion - Expected - -42 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col1" at position 1 and "\(\- Int64\(70\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 76, + ( + - 42 ) AS col1, - + 70 AS col1 +---- +-42 +-70 +-76 query I rowsort label-5942 SELECT DISTINCT - 40 * + + 38 + + - MAX ( ALL 81 ) + + + 35 * + + 98 @@ -31362,8 +31741,11 @@ SELECT DISTINCT 33, 51 / 12 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 1634 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "Int64\(19\) \* Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 92 AS col1, 19 * + 86 AS col1 +---- +1634 +92 query I rowsort label-5960 SELECT MAX ( - 17 ) - - 49 AS col0 @@ -31386,8 +31768,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col0" at position 0 and "Int64\(\-46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 AS col0, - 46 AS col0 +---- +-46 +72 query I rowsort SELECT ALL + 62 * - - 3 AS col1 @@ -31537,8 +31922,11 @@ SELECT ALL + ( - + SUM ( + 95 ) ), COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57015 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \* Int64\(37\) \- Int64\(\-54\) \* CAST\(Int64\(\-25\) AS Int32\) \* max\(Int64\(41\)\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 45 * + + 37 - - 54 * + CAST ( + - 25 AS INTEGER ) * + MAX ( ALL + 41 ) AS col1, 26 col1 +---- +-57015 +26 query I rowsort label-5991 SELECT ALL + CAST ( + + 18 AS INTEGER ) AS col0 @@ -31590,14 +31978,20 @@ SELECT ALL + SUM ( DISTINCT + 61 ) + - 68 AS col0 # 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\(\-26\)\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 26 ) AS col1, + 66 AS col1 +---- +26 +66 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 23116800 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-60\)\) AS col0" at position 0 and "Int64\(70\) \* Int64\(\-40\) \* Int64\(96\) \* Int64\(\-86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( ALL - 60 ) AS col0, 70 * - 40 * 96 * - 86 AS col0 +---- +-60 +23116800 query I rowsort label-6002 SELECT DISTINCT COALESCE ( 15, - 20 ) + - 96 + 34 / + 21 AS col2 @@ -31762,8 +32156,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( - 86, + COUNT ( * ) ) AS col1, 46 AS col1 +---- +-86 +46 query I rowsort label-6034 SELECT DISTINCT 36 + MAX ( - 99 ) * + 30 * + 18 col1 @@ -31783,8 +32180,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 46 AS col0, + 28 + - COUNT ( * ) + 66 col0 +---- +46 +93 query I rowsort label-6038 SELECT 13 + + MAX ( DISTINCT 97 ) AS col0 @@ -31996,8 +32396,11 @@ SELECT 93 + - 31 * + - 82 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col2" at position 0 and "Int64\(77\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 84 AS col2, 77 * + COUNT ( * ) AS col2 +---- +77 +84 query I rowsort label-6079 SELECT + SUM ( ALL - 35 ) @@ -32386,8 +32789,11 @@ SELECT MAX ( - 66 ) * 32 col2 # 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 "Int64\(89\) / Int64\(23\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 89 / 23 AS col0, + 68 AS col0 +---- +3 +68 query I rowsort label-6153 SELECT ALL + + 74 * + - COUNT ( * ) AS col2 @@ -32452,8 +32858,11 @@ SELECT ALL - 47 + 67 * + - 13 AS col0 # 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 col0" at position 0 and "Int64\(\-14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 49 AS col0, - 14 AS col0 +---- +-14 +49 query I rowsort SELECT DISTINCT 69 + + + 41 + + ( + 18 ) AS col1 @@ -32863,8 +33272,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -540 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* max\(DISTINCT Int64\(\-60\)\) AS col0" at position 0 and "Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 9 * + + MAX ( DISTINCT + - 60 ) AS col0, + 19 AS col0 +---- +-540 +19 query I rowsort label-6244 SELECT ALL - SUM ( DISTINCT - 14 ) - + 24 + - + CASE 24 WHEN 65 + 29 THEN - - 59 * - MAX ( + 88 ) - 78 WHEN - COUNT ( * ) * + 83 THEN + ( 3 ) END AS col1 @@ -32977,8 +33389,11 @@ SELECT + COUNT ( * ) AS col0, 71 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4067 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-49\) AS Int32\)\) \* Int64\(\-83\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + CAST ( - 49 AS INTEGER ) * - 83 AS col2, - COUNT ( * ) AS col2 +---- +-1 +-4067 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -33049,8 +33464,11 @@ SELECT ALL + 44 * + + ( - - 25 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - -630 -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\) \* Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 11 AS col2, - 70 * 9 AS col2 +---- +-630 +11 query II rowsort SELECT ALL - 31 AS col2, 92 AS col1 @@ -33638,8 +34056,11 @@ SELECT COALESCE ( - COUNT ( * ), - - 66 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col0" at position 0 and "Int64\(3\) \* Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 22 ) col0, 3 * 21 AS col0 +---- +-22 +63 query I rowsort label-6390 SELECT ALL 79 * 92 + + 96 * COUNT ( * ) - + + 5 + - - 53 col2 @@ -33983,8 +34404,11 @@ SELECT ALL - 10, + 3 + + ( + - 51 ) + + 41 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(95\), \(\- Int64\(\-70\)\) \* Int64\(20\)\)\) / Int64\(\-16\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(1\) \- Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( + 95, - - 70 * + 20 ) / - 16 * + + COUNT ( * ) AS col2, 1 - 74 AS col2 +---- +-73 +5 query II rowsort SELECT ALL - - 55 AS col2, + 89 AS col0 @@ -34365,8 +34789,11 @@ SELECT COUNT ( * ) * - COALESCE ( - NULLIF ( - + 76, + + 22 / + AVG ( + + 3 ) ), # Datafusion - Datafusion expected results: # Datafusion - Expected - 960 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* Int64\(24\) AS col2" at position 0 and "Int64\(66\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 * + 24 AS col2, 66 * + COUNT ( * ) AS col2 +---- +66 +960 query I rowsort SELECT 0 * 95 + 7 AS col2 @@ -34569,8 +34996,11 @@ 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\(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\. +query II valuesort 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 +---- +-17 +NULL query I rowsort label-6567 SELECT DISTINCT NULLIF ( - 71, CASE + - ( - - COUNT ( * ) ) WHEN + 84 + 14 * COUNT ( * ) THEN NULL WHEN - 41 THEN - ( 1 ) * - COUNT ( 22 ) ELSE COUNT ( * ) * + 85 + CASE + 16 WHEN - - CASE - + COALESCE ( + 45, - COUNT ( * ) + 8 ) WHEN - COALESCE ( + - CAST ( NULL AS INTEGER ), - 61 ) * - - NULLIF ( - + 42, - - 33 ) - - CASE - + 90 WHEN + 37 + + 6 - - - 72 + - 46 + + CAST ( + + AVG ( - + 1 ) AS INTEGER ) * - - CAST ( - + 74 AS INTEGER ) THEN NULL WHEN - 1 THEN NULL WHEN - 5 * - 80 * 11 + + 4 THEN NULL ELSE - 11 END THEN - + 20 ELSE + 62 * + 23 END - 76 THEN 21 WHEN COALESCE ( + 86, + 36, + 5 ) THEN 57 * 84 ELSE + 50 END + 9 END ) * 64 @@ -35172,8 +35602,11 @@ SELECT ( - COUNT ( * ) ) + + + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col1" at position 0 and "\(\- sum\(Int64\(63\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 col1, + ( - SUM ( ALL + 63 ) ) AS col1 +---- +-63 +12 query I rowsort SELECT ALL 84 - - 66 AS col1 @@ -35275,8 +35708,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-23\)\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 23 col0, 31 col0 +---- +23 +31 query I rowsort SELECT - 34 + - 1 + - 63 AS col2 @@ -35494,8 +35930,11 @@ SELECT - 63 * 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col1" at position 0 and "Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 85 col1, - 79 AS col1 +---- +-79 +-85 query I rowsort label-6745 SELECT - 27 * MIN ( + 75 ) * 50 @@ -35535,8 +35974,11 @@ SELECT ALL + NULLIF ( + - 30, - - ( - - 43 ) ) 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 "Int64\(3\) AS col2" at position 0 and "Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 3 AS col2, 8 AS col2 +---- +3 +8 query I rowsort SELECT DISTINCT 38 * 39 AS col2 @@ -37149,8 +37591,11 @@ SELECT ALL - COUNT ( * ) - + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 90 AS col2, 2 AS col2 +---- +2 +90 query II rowsort label-7054 SELECT ALL - 34 AS col0, + 55 / + - 82 - COUNT ( * ) - 62 - - ( - - 17 ) / COUNT ( * ) / + 13 - + ( - ( + 26 ) ) + - 4 * ( 43 + ( + 1 ) * 57 ) * 54 @@ -37260,8 +37705,11 @@ SELECT - ( 73 ) * COUNT ( DISTINCT + 48 ) + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \+ Int64\(64\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(19\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + - 5 ) + + + 64 * + COUNT ( * ) AS col2, 19 - COUNT ( * ) AS col2 +---- +18 +59 query I rowsort label-7075 SELECT ALL COUNT ( * ) + + 41 + + 2 AS col1 @@ -37893,8 +38341,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-11\) AS col0" at position 0 and "Int64\(5\) / Int64\(\-63\) \* \(\- CAST\(Int64\(97\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) + - 11 AS col0, ( 5 ) / - 63 * - CAST ( + + 97 AS INTEGER ) AS col0 +---- +-10 +0 query II rowsort SELECT 37 + 62 AS col1, - 23 * - - 52 @@ -37905,8 +38356,11 @@ SELECT 37 + 62 AS col1, - 23 * - - 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -170 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(74\) \+ \(\- Int64\(99\)\) \+ \(\- sum\(Int64\(99\)\)\) \+ Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - CAST ( NULL AS INTEGER ) ) AS col2, + 74 + - ( 99 ) + - SUM ( + 99 ) + ( - 46 ) AS col2 +---- +-170 +NULL query I rowsort label-7195 SELECT ALL NULLIF ( - 80, + CAST ( - - 57 AS INTEGER ) - - + 99 ) @@ -37989,8 +38443,11 @@ SELECT - MIN ( DISTINCT - 63 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 115 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \- Int64\(\-22\) \+ Int64\(74\) AS col0" at position 0 and "\(\- coalesce\(Int64\(33\), sum\(Int64\(\-25\)\), Int64\(63\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 19 - - 22 + 74 AS col0, - COALESCE ( 33, + + SUM ( - 25 ), + 63 ) AS col0 +---- +-33 +115 query I rowsort SELECT DISTINCT + 10 * - 33 @@ -38160,8 +38617,11 @@ SELECT ALL 66 * - COUNT ( * ), + 5 - - 66 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6162 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(79\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 78 * + 79 AS col0, 12 AS col0 +---- +12 +6162 query I rowsort SELECT + 48 + - 59 - - 74 @@ -38912,8 +39372,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 62 + 82 * + 17 AS col2, - COUNT ( * ) + + + 83 AS col2 +---- +1456 +82 query I rowsort label-7389 SELECT + + 92 * - + 60 - - - MIN ( 55 ) AS col2 @@ -39272,8 +39735,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(49\)\)\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MAX ( DISTINCT + 49 ) col1, 16 AS col1 +---- +-49 +16 query I rowsort label-7457 SELECT DISTINCT 74 * ( + 37 ) + - + ( COALESCE ( 31, + - MAX ( + 60 ), + 72 * - 50 * + - MAX ( + 28 ) + + - 78 + - - 82 + + + 50 + 24 ) ) AS col1 @@ -39612,8 +40078,12 @@ NULL # Datafusion - Expected - 16060 # Datafusion - Expected - -3604 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT Int64\(68\)\)\) \* Int64\(53\) AS col0" at position 1 and "Int64\(5\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 22 * - 10 * + - 73, - MIN ( DISTINCT 68 ) * 53 AS col0, + 5 AS col0 +---- +-3604 +16060 +5 query II rowsort label-7522 SELECT CAST ( NULL AS INTEGER ) AS col2, 83 @@ -39624,8 +40094,11 @@ 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\(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\. +query II valuesort SELECT 24 / + + 43 + - 89 * + - COUNT ( * ) * + ( - 57 ) col0, 86 * + + ( - 36 ) + - + 84 AS col0 +---- +-3180 +-5073 query I rowsort label-7524 SELECT - COUNT ( * ) * + 76 * - 7 * - + CAST ( - COUNT ( * ) AS INTEGER ) - 84 + 6 @@ -39646,8 +40119,11 @@ SELECT ALL - 45 AS col0, + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \+ \(\- Int64\(53\)\) \- Int64\(\-43\) AS col2" at position 0 and "\(\- Int64\(11\)\) \+ \(\- Int64\(\-94\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 + - + 53 - + - 43 col2, - ( + + 11 ) + - - 94 AS col2 +---- +83 +84 query I rowsort SELECT - 56 * + 72 AS col2 @@ -39880,8 +40356,12 @@ 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\(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\. +query III valuesort SELECT + 13 * ( + - ( + - SUM ( DISTINCT - + 31 ) ) ) AS col1, + 33, + + 31 + COUNT ( * ) + COALESCE ( - NULLIF ( - 3, + - 60 ), - + NULLIF ( + 26, + 52 ) ) AS col1 +---- +-403 +33 +35 query I rowsort label-7572 SELECT - NULLIF ( + + 38, + COALESCE ( SUM ( - 66 ), - 40 ) ) @@ -40039,8 +40519,11 @@ SELECT - 61 * 8 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 "CASE Int64\(\-61\) WHEN \(\- max\(DISTINCT Int64\(77\)\)\) THEN \(\- Int64\(90\)\) END AS col2" at position 0 and "Int64\(61\) \+ \(\- Int64\(\-58\)\) \+ Int64\(37\) \+ Int64\(19\) \* \(\- Int64\(0\)\) \* \(\- CASE Int64\(92\) WHEN Int64\(\-25\) \* Int64\(36\) \+ \(\- Int64\(\-49\)\) \+ Int64\(35\) \- Int64\(\-81\) THEN \(\- Int64\(63\)\) \+ Int64\(74\) END\) / Int64\(19\) \* count\(\(\- CAST\(\(\- Int64\(26\)\) AS Float64\)\)\) \* \(\- Int64\(91\)\) \* CASE Int64\(\-90\) WHEN Int64\(\-99\) THEN Int64\(74\) WHEN Int64\(46\) THEN NULL ELSE Int64\(10\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CASE + - 61 WHEN - MAX ( DISTINCT + 77 ) THEN + - ( + 90 ) END col2, + 61 + - - 58 + 37 + + 19 * - ( 0 ) * + - CASE 92 WHEN - 25 * + 36 + - - 49 + 35 - - 81 THEN - + 63 + + 74 END / 19 * COUNT ( - CAST ( - + 26 AS FLOAT8 ) ) * - + 91 * + + CASE - 90 WHEN - 99 THEN + 74 WHEN + 46 THEN NULL ELSE 10 END AS col2 +---- +NULL +NULL query I rowsort label-7602 SELECT DISTINCT - SUM ( DISTINCT + 28 ) / 16 col1 @@ -40209,8 +40692,11 @@ SELECT ALL - MAX ( 79 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ \(\- Int64\(\-27\)\) AS col1" at position 0 and "Int64\(\-83\) \+ CASE \(\- CASE Int64\(19\) WHEN \(\- Int64\(\-76\)\) \* \(\- CAST\(Int64\(69\) AS Int32\)\) THEN CASE Int64\(79\) WHEN \(\- Int64\(\-91\)\) THEN Int64\(\-50\) \* Int64\(\-31\) \+ \(\- Int64\(\-60\)\) \- Int64\(80\) / Int64\(62\) ELSE NULL END ELSE Int64\(\-17\) \+ Int64\(17\) END\) WHEN Int64\(48\) THEN NULL WHEN Int64\(\-37\) \+ Int64\(11\) THEN Int64\(\-34\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 8 + - - 27 AS col1, - 83 + + CASE - CASE + 19 WHEN - - 76 * + ( - CAST ( + 69 AS INTEGER ) ) THEN + CASE 79 WHEN - ( - 91 ) THEN - 50 * - 31 + - - 60 - + + 80 / 62 ELSE NULL END ELSE + - 17 + + 17 END WHEN + 48 THEN NULL WHEN - 37 + + ( 11 ) THEN - 34 END AS col1 +---- +35 +NULL query I rowsort label-7634 SELECT DISTINCT - CASE + + CAST ( - COUNT ( * ) AS INTEGER ) WHEN + ( - 19 ) THEN NULL ELSE - 56 END @@ -40291,8 +40777,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2585 # Datafusion - Expected - -504 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \* Int64\(55\) AS col1" at position 0 and "Int64\(14\) \* Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 47 * + 55 AS col1, 14 * + - 36 AS col1 +---- +-2585 +-504 query I rowsort label-7650 SELECT DISTINCT + ( - 29 ) - - - SUM ( 24 ) AS col1 @@ -40854,8 +41343,11 @@ SELECT 44 + - 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - -1167 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col0" at position 0 and "Int64\(51\) \- Int64\(42\) \* \(\- \(\- Int64\(29\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 96 AS col0, + 51 - 42 * - ( - + 29 ) AS col0 +---- +-1167 +-96 query I rowsort label-7756 SELECT ALL - MAX ( + NULLIF ( + - 24, - - 82 / + 3 ) ) AS col0 @@ -40885,8 +41377,11 @@ SELECT DISTINCT COUNT ( * ) / COUNT ( 60 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 AS col1, + 27 AS col1 +---- +27 +87 query I rowsort label-7762 SELECT - 88 / - + COUNT ( * ) + + 89 + - - 99 AS col1 @@ -41479,8 +41974,11 @@ SELECT DISTINCT - 82 * + 3 + ( - + 26 ) AS col0 # 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\(63\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 63 AS col2, + 69 AS col2 +---- +63 +69 query I rowsort SELECT ALL 67 + 20 - + - 64 AS col2 @@ -41760,8 +42258,11 @@ SELECT + MIN ( - 90 ) * - COUNT ( * ) - - - 86 + + + 62 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col0" at position 0 and "Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 54 ) AS col0, + 45 AS col0 +---- +45 +54 query I rowsort label-7930 SELECT + 68 / 49 + COUNT ( ALL - 2 ) * + 28 * - 31 AS col1 @@ -41833,8 +42334,11 @@ SELECT + 17 + 4 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 61 col1, 73 AS col1 +---- +-61 +73 query I rowsort label-7944 SELECT DISTINCT COUNT ( * ) * 42 + 83 @@ -42369,8 +42873,11 @@ SELECT - 67 * + - 94 * - 66 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2920 # Datafusion - Expected - 4320 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* Int64\(40\) AS col1" at position 0 and "Int64\(80\) \* \(\- Int64\(\-54\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 73 * ( 40 ) AS col1, 80 * - - 54 AS col1 +---- +2920 +4320 query I rowsort label-8045 SELECT - COUNT ( * ) - 31 AS col0 @@ -42733,8 +43240,11 @@ SELECT ALL 19 * + + 89 * - 50 * + ( - - 23 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 193 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \+ Int64\(62\) \+ Int64\(8\) \+ \(\- Int64\(\-45\)\) \+ Int64\(4\) / Int64\(\-74\) / 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 II valuesort SELECT DISTINCT 78 + + 62 + 8 + - - 45 + + 4 / - 74 / - 9 col0, 0 AS col0 +---- +0 +193 query I rowsort label-8115 SELECT DISTINCT + 29 / - 22 AS col2 @@ -42848,8 +43358,11 @@ SELECT + 27 - 98 * 52 - - 56 + + ( 19 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 66 ) AS col1, + COUNT ( * ) AS col1 +---- +-66 +1 query I rowsort label-8137 SELECT ALL + + MAX ( 53 ) * 84 - + + 98 * 11 + - + COUNT ( * ) @@ -43004,8 +43517,11 @@ SELECT ALL + - COUNT ( * ) * + 45 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 131 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-59\)\) \+ Int64\(72\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + - 59 ) + 72 AS col2, 0 AS col2 +---- +0 +131 query II rowsort SELECT - 75 + 49 - - COALESCE ( - - 19, + 72 ) + + 34 * + ( 45 ) AS col1, - 59 * 2 @@ -44194,8 +44710,11 @@ SELECT - CAST ( + - 13 AS INTEGER ) + - - 97 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) col2, + 25 AS col2 +---- +1 +25 query I rowsort label-8397 SELECT - 38 * COUNT ( * ) col1 @@ -44319,8 +44838,11 @@ SELECT DISTINCT + COUNT ( * ) * + 41 * - - 66 + - COUNT ( * ) * + COUNT ( ALL + # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, 60 AS col2 +---- +1 +60 query I rowsort label-8420 SELECT ALL COUNT ( * ) * + COUNT ( * ) + - 80 + - 36 @@ -44411,8 +44933,11 @@ SELECT - + 39 / + - MIN ( ALL 88 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 12 col2, 66 col2 +---- +12 +66 query II rowsort SELECT - ( - 51 ) col1, 60 * - 79 AS col0 @@ -45255,8 +45780,11 @@ SELECT ALL + 24 + - 3 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, + 76 AS col1 +---- +76 +NULL query I rowsort SELECT ALL + 15 + + + 83 - 97 @@ -45541,8 +46069,11 @@ SELECT - 14 + - 31 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 col2, 46 AS col2 +---- +46 +54 query I rowsort SELECT 59 * + 57 AS col1 @@ -45618,8 +46149,11 @@ SELECT DISTINCT + 50 * + + COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 4606 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 0 and "Int64\(49\) \* \(\- Int64\(\-94\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 91 AS col1, 49 * - - 94 AS col1 +---- +4606 +91 query II rowsort SELECT DISTINCT + 94, 58 AS col2 @@ -45645,8 +46179,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(36\) \* Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 AS col2, - 37 * SUM ( 25 ) * + COALESCE ( + - MAX ( ALL 22 ), 17 ) + - COUNT ( * ) + + + 36 * + 42 AS col2 +---- +21861 +93 query I rowsort label-8674 SELECT + 62 * - 48 + - 2 + + + 58 + - 58 / - CAST ( NULL AS INTEGER ) + + 47 - 67 * 57 AS col0 @@ -45923,8 +46460,11 @@ SELECT 36 * - 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col2" at position 0 and "Int64\(\-83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 AS col2, - 83 col2 +---- +-83 +29 query I rowsort label-8726 SELECT 16 + - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 @@ -46640,8 +47180,11 @@ SELECT 64 - COALESCE ( 14, + 91, + + NULLIF ( - ( - MIN ( DISTINCT + 66 ) ), - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2275 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* Int64\(65\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 * + 65 AS col0, + 30 AS col0 +---- +2275 +30 query I rowsort label-8861 SELECT DISTINCT - 0 * + SUM ( - - 4 ) @@ -46775,8 +47318,11 @@ SELECT + MAX ( + + 23 ) # 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 col2" at position 0 and "Int64\(52\) / \(\- Int64\(\-95\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 AS col2, 52 / - - 95 AS col2 +---- +0 +77 query I rowsort label-8887 SELECT ( 32 ) / + ( 7 ) + 78 / - 32 * COUNT ( * ) + + 53 AS col0 @@ -47616,8 +48162,11 @@ SELECT - 93 * + COUNT ( * ) * - 2 * - 70 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38016 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* Int64\(\-16\) \* Int64\(24\) AS col0" at position 0 and "Int64\(\-95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 99 * + - 16 * 24 AS col0, - 95 col0 +---- +-38016 +-95 query I rowsort label-9048 SELECT + ( - 51 ) * + 1 - + 9 + COUNT ( * ) @@ -47893,8 +48442,11 @@ SELECT 11 * + + 65 * - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 34 AS col0, + 31 AS col0 +---- +31 +34 query II rowsort SELECT 8 AS col2, 95 @@ -47906,8 +48458,12 @@ SELECT 8 AS col2, 95 # Datafusion - Expected - 84 # Datafusion - Expected - 1 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 and "Int64\(\-98\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 84, + COUNT ( * ) AS col1, - 98 AS col1 +---- +-98 +1 +84 query I rowsort label-9102 SELECT 90 * - 75 * - CASE - 9 WHEN + 52 * - 94 + - COUNT ( * ) THEN - 74 + + 96 + - 32 * - - 15 + + 42 * + 70 END AS col2 @@ -48083,8 +48639,11 @@ SELECT ALL COUNT ( * ) * - - 28 + - 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - -3195 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) AS col0" at position 0 and "Int64\(45\) \* Int64\(\-71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 21 AS col0, + 45 * + - 71 AS col0 +---- +-21 +-3195 query I rowsort label-9137 SELECT DISTINCT 83 * - COUNT ( ALL - + 62 ) + + 80 AS col1 @@ -48414,8 +48973,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(\-52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 36 * - 55 + + 37 * 91 + + SUM ( + - 92 ) + 53 * 75 AS col1, + ( - + 85 ) / + - COUNT ( * ) + - 52 AS col1 +---- +33 +5270 query I rowsort label-9201 SELECT DISTINCT + COALESCE ( + MAX ( ALL + 64 ), + - 35, - 98 * - ( - 69 ) ) + + - 76 @@ -48613,8 +49175,11 @@ SELECT ALL + - CAST ( + 99 AS INTEGER ) + + 6 * + 31 AS col0, 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \+ Int64\(\-50\) AS col1" at position 0 and "Int64\(41\) \* \(\- Int64\(36\)\) \+ CAST\(NULL AS Int32\) \* Int64\(54\) \* Int64\(\-24\) \+ Int64\(\-40\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(29\) \* Int64\(\-22\) \* Int64\(\-88\) \- Int64\(\-72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 76 + - 50 AS col1, 41 * - + 36 + CAST ( NULL AS INTEGER ) * + ( 54 ) * + - 24 + - 40 + + + COUNT ( * ) * 29 * ( - 22 ) * - 88 - + - 72 col1 +---- +26 +NULL query I rowsort label-9239 SELECT ALL - 18 / - - 72 AS col0 @@ -48940,8 +49505,11 @@ SELECT DISTINCT CAST ( - + 86 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "Int64\(73\) / \(\- Int64\(1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 AS col2, 73 / - + 1 AS col2 +---- +-73 +63 query I rowsort label-9302 SELECT - MAX ( ALL + + 92 ) AS col2 @@ -48999,8 +49567,11 @@ SELECT + 88, 55 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* \(\- Int64\(\-38\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 AS col0, CAST ( NULL AS INTEGER ) * - - 38 AS col0 +---- +79 +NULL query I rowsort label-9312 SELECT - - 16 * + 84 * SUM ( 92 ) + 32 + 45 + + - 53 @@ -49285,8 +49856,11 @@ SELECT ALL 0 + COUNT ( + - 63 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 712 # Datafusion - Expected - -141 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) \* \(\- Int64\(22\)\) \+ Int64\(52\) AS col1" at position 0 and "Int64\(\-72\) \- Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 30 * - + 22 + + 52 AS col1, - 72 - + 69 AS col1 +---- +-141 +712 query I rowsort SELECT ALL - 56 + - - 88 @@ -49429,8 +50003,11 @@ SELECT - + COALESCE ( + 72, 67 ) * - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 AS col2, + 99 AS col2 +---- +35 +99 query II rowsort label-9394 SELECT COUNT ( * ) AS col1, 26 + - 37 * - 27 col2 @@ -49929,8 +50506,11 @@ SELECT + 28 - - 57 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col0" at position 0 and "\(\- count\(DISTINCT Int64\(98\)\)\) \+ Int64\(4\) \+ Int64\(78\) / Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 82 AS col0, - COUNT ( DISTINCT 98 ) + 4 + + 78 / + 14 AS col0 +---- +-82 +8 query II rowsort label-9489 SELECT + 48, MAX ( DISTINCT + ( 16 ) ) AS col1 @@ -49957,8 +50537,12 @@ SELECT 72 * - 40 * 43 AS col0 # Datafusion - Expected - 1001 # Datafusion - Expected - 6264 # Datafusion - Expected - 2362 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* \(\- nullif\(Int64\(\-77\), CAST\(\(\- Int64\(\-81\)\) AS Int32\) \- avg\(Int64\(47\)\) \- Int64\(93\)\)\) AS col2" at position 0 and "Int64\(72\) \* Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RII valuesort SELECT DISTINCT + 13 * - ( + NULLIF ( - 77, CAST ( - - 81 AS INTEGER ) - + AVG ( + 47 ) - + 93 ) ) AS col2, 72 * 87 AS col2, - 33 * - + ( 73 ) - 47 col0 +---- +1001 +2362 +6264 query II rowsort label-9494 SELECT ALL 25 + - - 62 * - 3 AS col2, + CAST ( + 6 AS INTEGER ) * - - ( 51 ) + + 2 @@ -49974,8 +50558,11 @@ SELECT - 94 + 9 + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "nullif\(Int64\(75\), Int64\(88\) \+ Int64\(\-30\) \+ Int64\(32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 60 AS col1, NULLIF ( 75, 88 + - 30 + 32 ) col1 +---- +60 +75 query I rowsort label-9497 SELECT DISTINCT NULLIF ( - 55, + CAST ( NULL AS INTEGER ) ) @@ -50047,8 +50634,11 @@ SELECT DISTINCT 22 * + ( - - CAST ( + 26 AS INTEGER ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 151 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ Int64\(59\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 92 + 59 AS col1, + 79 AS col1 +---- +151 +79 query I rowsort SELECT ALL 98 * - + ( + - 45 ) @@ -51264,8 +51854,11 @@ SELECT ALL + 97 - + 40 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8170 # Datafusion - Expected - 191 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-86\)\) \* Int64\(\-95\) AS col1" at position 0 and "Int64\(92\) \+ Int64\(65\) \+ coalesce\(\(\- Int64\(\-17\)\), count\(Int64\(1\)\) AS count\(\*\), Int64\(98\) \+ count\(Int64\(1\)\) AS count\(\*\) / CAST\(\(\- Int64\(15\)\) AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 86 * + - 95 AS col1, + 92 + 65 + COALESCE ( - ( - 17 ), + COUNT ( * ), 98 + + COUNT ( * ) / + CAST ( - ( + 15 ) AS INTEGER ) + - COUNT ( * ) ) * 2 col1 +---- +-8170 +191 query II rowsort label-9740 SELECT + 49 + + 75 + + + NULLIF ( + 7, - - 65 / - - ( COUNT ( * ) ) + + + CAST ( NULL AS INTEGER ) + + 97 ) * 76 * + - 69 - CAST ( NULL AS INTEGER ), - COUNT ( + - 43 ) AS col0 @@ -51345,8 +51938,11 @@ SELECT ALL - 87 * 50 + - 88 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14280 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* \(\- Int64\(\-84\)\) \* Int64\(34\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 5 * - - 84 * 34 AS col2, 85 AS col2 +---- +14280 +85 query I rowsort SELECT ALL - + 12 * 25 * 38 + - 34 AS col2 @@ -51479,8 +52075,11 @@ SELECT DISTINCT 75 + - CAST ( + - 39 AS INTEGER ) + 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3378 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(92\)\) \+ \(\- Int64\(\-62\)\) \* Int64\(\-53\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( 92 ) + - - 62 * + - 53 AS col2, + 6 AS col2 +---- +-3378 +6 query I rowsort label-9780 SELECT 4 + + COUNT ( * ) * - 79 AS col0 @@ -51548,8 +52147,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) / - 74 AS col1, 75 col1 +---- +0 +75 query I rowsort SELECT + 5 + + - 47 + 73 diff --git a/data/sqlite/random/expr/slt_good_70.slt b/data/sqlite/random/expr/slt_good_70.slt index 887e866..e4efd17 100644 --- a/data/sqlite/random/expr/slt_good_70.slt +++ b/data/sqlite/random/expr/slt_good_70.slt @@ -60,8 +60,11 @@ SELECT + COALESCE ( + - 65, - COUNT ( * ) + + COALESCE ( + + 88, + + 67 ) * - NU # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(52\) / \(\- Int64\(13\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) * 52 / - + ( 13 ) AS col1, COUNT ( * ) AS col1 +---- +1 +NULL query I rowsort SELECT + CASE - 20 WHEN + ( + ( - - 84 ) ) * - 20 THEN 52 WHEN - 36 THEN NULL END * + 84 @@ -172,8 +175,11 @@ 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\(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\. +query II valuesort SELECT + 49 + - COUNT ( * ) AS col1, 86 * + 24 col1 +---- +2064 +48 query I rowsort label-27 SELECT 46 * + - 60 + + + COUNT ( * ) AS col2 @@ -367,8 +373,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 5695 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* Int64\(85\) AS col0" at position 0 and "Int64\(\-38\) \- Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + + 67 ) * 85 AS col0, - 38 - + 21 AS col0 +---- +-59 +5695 query I rowsort SELECT + ( - 76 ) * - + 75 + - 97 AS col2 @@ -440,8 +449,11 @@ SELECT COUNT ( * ) AS col0, 82 * COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-76\)\)\) AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - SUM ( ALL - 76 ) AS col2, 65 AS col2 +---- +65 +76 query I rowsort label-78 SELECT ALL - 11 + + - COUNT ( * ) AS col2 @@ -525,8 +537,11 @@ SELECT ALL 88, 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "coalesce\(\(\- Int64\(77\)\), \(\- Int64\(57\)\), \(\- Int64\(60\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 48 AS col2, COALESCE ( - ( + 77 ), - + 57, - + 60 ) AS col2 +---- +-48 +-77 query I rowsort SELECT - 6 + - + ( - 63 ) AS col1 @@ -945,8 +960,11 @@ SELECT ALL - 25 * - 68 * - - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CASE WHEN Int64\(\-15\) IS NOT NULL THEN Int64\(6\) END\)\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - + CASE WHEN - 15 IS NOT NULL THEN + 6 END ) AS col1, 76 AS col1 +---- +6 +76 query I rowsort label-174 SELECT 53 / + - 48 + - 25 AS col1 @@ -1120,8 +1138,11 @@ SELECT + 0 / + 26 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 5202 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "Int64\(\-72\) \* \(\- Int64\(22\)\) \+ Int64\(67\) \* Int64\(54\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 96 AS col2, - 72 * - + 22 + + 67 * + 54 * COUNT ( * ) AS col2 +---- +5202 +96 query I rowsort label-207 SELECT DISTINCT 87 * + - COUNT ( * ) + + - 37 AS col0 @@ -1267,8 +1288,11 @@ SELECT - 72 + + MAX ( + - 79 ) + - CAST ( 45 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 29 AS col2, + 60 AS col2 +---- +29 +60 query I rowsort label-235 SELECT - COUNT ( * ) + ( COUNT ( * ) ) @@ -1385,8 +1409,11 @@ SELECT + NULLIF ( + + 0, COALESCE ( + 75, COUNT ( * ) ) ) / - MIN ( DISTINCT - - # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- coalesce\(Int64\(\-65\), Int64\(\-40\) \+ Int64\(29\) \+ Int64\(\-25\) \+ Int64\(\-71\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(78\) / Int64\(\-51\)\)\) \* Int64\(27\) \+ \(\- Int64\(\-72\)\)\) / CASE CASE \(\- Int64\(68\)\) WHEN Int64\(58\) \+ Int64\(57\) / Int64\(55\) / Int64\(36\) THEN CAST\(Int64\(34\) AS Int32\) WHEN \(\- coalesce\(Int64\(29\), Int64\(60\) \+ Int64\(66\)\)\) THEN NULL ELSE \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) \* Int64\(\-56\) END WHEN avg\(Int64\(\-3\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(9\) THEN Int64\(61\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +37 +NULL query II rowsort label-258 SELECT - 7 * - 92 + - 68 * - - ( + - 19 ) * 24 col0, CAST ( + 96 AS INTEGER ) @@ -1688,8 +1715,11 @@ SELECT ALL - - 25 AS col2, 56 - - COUNT ( * ) + + ( - 24 ) - + - NULLIF ( + 10, # Datafusion - Datafusion expected results: # Datafusion - Expected - 2096 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* Int64\(35\) \+ Int64\(\-4\) AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 60 * 35 + - 4 AS col0, 5 AS col0 +---- +2096 +5 query II rowsort label-316 SELECT - 84 AS col1, - 32 * 2 + 83 - COUNT ( + 64 ) @@ -2096,8 +2126,11 @@ SELECT 76 * NULLIF ( 95, - - 10 ) - - + 39 + - ( + 66 ) + 88 + - 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 AS col1, 4 col1 +---- +25 +4 query I rowsort SELECT 9 + + 85 - - 75 @@ -2271,8 +2304,12 @@ SELECT COUNT ( * ) / - 13 + 52 # Datafusion - Expected - 1830 # Datafusion - Expected - 1 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(61\) AS col1" at position 0 and "Int64\(\-17\) \+ Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 30 * + 61 AS col1, ( - 17 ) + + 18 AS col1, + 59 +---- +1 +1830 +59 query I rowsort label-425 SELECT CAST ( - - 24 AS INTEGER ) * - 30 + + 45 * CAST ( NULL AS INTEGER ) * + 99 * + 6 * - 46 + ( + 34 ) @@ -2599,8 +2636,11 @@ SELECT - - ( + + 13 ) + + 4 + + 4 * + 7 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 "Int64\(\-26\) \- \(\- Int64\(\-85\)\) \+ Int64\(56\) \* CASE Int64\(78\) WHEN Int64\(57\) THEN Int64\(\-71\) WHEN Int64\(33\) THEN NULL END \* \(\- Int64\(32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 AS col0, - 26 - - - 85 + + + 56 * + CASE 78 WHEN + 57 THEN + - 71 WHEN + 33 THEN NULL END * - + 32 col0 +---- +8 +NULL query I rowsort label-487 SELECT DISTINCT NULLIF ( + + SUM ( + 7 ), + - ( - 56 ) + - 40 ) AS col2 @@ -2806,8 +2846,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 5 + + COUNT ( * ) * 32 AS col0, CASE + 22 WHEN - 1 THEN NULL ELSE - 87 * - 12 + 24 END AS col0 +---- +1068 +27 query II rowsort label-526 SELECT 14 AS col0, 54 * - + ( - CAST ( + + 28 AS INTEGER ) ) @@ -2994,8 +3037,11 @@ SELECT ALL COALESCE ( - COUNT ( * ), - - 15 ) + - 61 * ( - 46 ) / - 49 - + + ( + # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col1" at position 0 and "Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 AS col1, 95 AS col1 +---- +75 +95 query I rowsort label-561 SELECT 11 + 61 - + 19 / + + MIN ( - ( + 54 ) ) + + 95 * - 58 * - 56 * + + 76 AS col0 @@ -3085,8 +3131,11 @@ SELECT ALL + 84 AS col2, + 57, + 36 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 "Int64\(\-1\) AS col0" at position 0 and "Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 1 AS col0, 76 AS col0 +---- +-1 +76 query I rowsort label-578 SELECT - - 50 + 52 * - MAX ( ALL - + 21 ) + - 27 - - MAX ( DISTINCT + 38 ) - + 4 AS col1 @@ -3170,8 +3219,11 @@ SELECT + ( 14 ) + + 19 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(20\) WHEN Int64\(61\) THEN NULL WHEN Int64\(\-50\) THEN NULL ELSE Int64\(94\) END AS col1" at position 0 and "\(\- Int64\(\-40\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CASE + 20 WHEN + 61 THEN NULL WHEN - 50 THEN NULL ELSE + 94 END AS col1, - ( - 40 ) col1 +---- +40 +94 query I rowsort label-594 SELECT ALL 75 / + COUNT ( * ) AS col0 @@ -3544,8 +3596,11 @@ 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\(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\. +query II valuesort SELECT 52 * - 39 AS col2, COUNT ( * ) + - 42 + - MAX ( ALL - 50 ) + + 77 AS col2 +---- +-2028 +86 query I rowsort label-663 SELECT - MAX ( - CAST ( NULL AS INTEGER ) ) AS col0 @@ -3641,8 +3696,11 @@ SELECT + + ( + NULLIF ( 34, 64 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 306189 # Datafusion - Expected - 3040 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \+ Int64\(\-33\) \* Int64\(70\) \+ Int64\(72\) \* Int64\(84\) \* Int64\(51\) AS col1" at position 0 and "Int64\(38\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 + - 33 * + ( + 70 ) + + 72 * 84 * + 51 AS col1, 38 * + 80 col1 +---- +3040 +306189 query I rowsort label-682 SELECT 41 * + SUM ( DISTINCT 16 ) - COUNT ( * ) @@ -4307,8 +4365,11 @@ SELECT ALL 15 col1, 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ Int64\(27\) / Int64\(\-66\) AS col0" at position 0 and "Int64\(\-86\) \+ \(\- Int64\(\-96\)\) \+ CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-87\) \* \(\- Int64\(52\)\) \* Int64\(57\) \+ \(\- min\(Int64\(\-9\)\)\) THEN Int64\(81\) WHEN Int64\(68\) THEN NULL ELSE \(\- CAST\(NULL AS Int32\)\) END / Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +69 +NULL query I rowsort SELECT DISTINCT 93 * + + 32 + + - 98 - - 22 @@ -4781,8 +4842,11 @@ NULL # 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 "max\(Int64\(21\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 49 AS col0, MAX ( + + 21 ) AS col0 +---- +21 +49 query I rowsort SELECT 23 * + - 46 - + 34 * + 92 * + + 93 @@ -4792,8 +4856,11 @@ SELECT 23 * + - 46 - + 34 * + 92 * + + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col2" at position 0 and "Int64\(29\) / Int64\(87\) \* Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 70 col2, + 29 / 87 * 9 AS col2 +---- +-70 +0 query I rowsort label-900 SELECT - 2 / 22 @@ -4840,8 +4907,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 63 col1, + COALESCE ( 94, - - 92, - MAX ( DISTINCT - 41 ), + - 95 ) * - 73 * + + 51 + + COUNT ( * ) + 30 col1 +---- +-349931 +-63 query I rowsort SELECT - 18 + - 56 @@ -5082,8 +5152,11 @@ SELECT ALL 70 AS col0, - 92 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 21 AS col2, + 20 AS col2 +---- +20 +21 query I rowsort label-956 SELECT - COALESCE ( - + 38, - COUNT ( * ) ) AS col1 @@ -5414,8 +5487,11 @@ SELECT ( - - 60 ) * + 84 # 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\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 AS col0, 89 AS col0 +---- +26 +89 query I rowsort label-1019 SELECT ALL - COUNT ( * ) + - 41 AS col1 @@ -5520,8 +5596,11 @@ SELECT ALL - 44, + 12 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-1\)\) / \(\- min\(DISTINCT \(\- Int64\(2\)\)\)\) \* Int64\(\-65\) \- \(\- CASE Int64\(17\) WHEN \(\- Int64\(\-54\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- coalesce\(Int64\(43\), Int64\(\-92\) \* Int64\(\-46\) / Int64\(10\)\)\) THEN NULL ELSE Int64\(\-1\) \+ \(\- count\(DISTINCT Int64\(\-35\)\)\) \+ Int64\(25\) \* \(\- CAST\(Int64\(\-47\) AS Int32\)\) \+ Int64\(\-89\) END\) / CAST\(NULL AS Int32\) \+ Int64\(50\) \+ \(\- \(\- Int64\(77\)\)\) \+ Int64\(40\) AS col2" at position 0 and "Int64\(63\) \+ Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +18 +NULL query I rowsort SELECT DISTINCT + - 75 + - 58 col0 @@ -5778,8 +5857,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \+ Int64\(\-70\) AS col1" at position 0 and "Int64\(73\) \+ Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 73 + - 70 AS col1, 73 + + 87 AS col1 +---- +160 +3 query I rowsort label-1088 SELECT - - SUM ( - 77 ) @@ -7349,8 +7431,11 @@ SELECT ALL - 20 * - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - -82775 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col2" at position 0 and "Int64\(43\) \* Int64\(77\) \* \(\- Int64\(25\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 AS col2, 43 * 77 * - + 25 AS col2 +---- +-64 +-82775 query I rowsort SELECT 62 + 22 - 43 @@ -7407,8 +7492,11 @@ SELECT COUNT ( * ) * + + COUNT ( + ( + - 33 ) ) * + MIN ( ALL + 66 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 38 AS col0, 67 AS col0 +---- +-38 +67 query II rowsort label-1403 SELECT ALL 40, 99 * - - ( 84 ) + - 22 / + 48 + - 43 col0 @@ -7441,8 +7529,11 @@ SELECT ALL 71 + - 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 62 AS col2, COUNT ( * ) AS col2 +---- +1 +62 query I rowsort SELECT ALL + + 58 + + - 78 + - + 95 * 98 * - + 14 * - + 70 - 60 AS col0 @@ -8112,8 +8203,11 @@ SELECT ALL - 51 AS col2, - 20 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(74\)\) \+ Int64\(18\) / Int64\(\-84\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( DISTINCT + 74 ) + + 18 / - 84 * COUNT ( * ) AS col1, - 93 AS col1 +---- +-93 +74 query II rowsort SELECT 5, 76 AS col1 @@ -8657,8 +8751,11 @@ SELECT 16 * + COUNT ( * ) col1 # 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 "Int64\(42\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 AS col1, + 84 AS col1 +---- +42 +84 query I rowsort label-1642 SELECT 93 / + + 12 @@ -8700,8 +8797,11 @@ SELECT - 18 * - 3 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "Int64\(\-89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 92 + + - ( - CAST ( NULL AS INTEGER ) ) col1, - 89 AS col1 +---- +-89 +NULL query II rowsort label-1650 SELECT + COALESCE ( - 3, + 70, + - COUNT ( * ) ) * - - 78 * - CASE ( - 11 ) WHEN + 42 * + 85 THEN 63 ELSE NULL END AS col1, COALESCE ( 33, - 59 * - ( + COUNT ( * ) ), 42 ) / - 69 AS col0 @@ -9103,8 +9203,11 @@ SELECT DISTINCT + 51 * - 36 # 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 "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 II valuesort SELECT ALL + 77 AS col2, ( - - 90 ) AS col2 +---- +77 +90 query I rowsort label-1727 SELECT COALESCE ( - COUNT ( * ), - - 20 ) @@ -9994,8 +10097,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(\-88\) \* Int64\(\-57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 84 / 91 AS col1, - COUNT ( * ) + + + ( - 88 ) * - 57 AS col1 +---- +0 +5015 query I rowsort SELECT 94 - - - 77 @@ -10315,8 +10421,11 @@ SELECT + MIN ( DISTINCT + CAST ( - 72 AS INTEGER ) ) * + 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(80\) \* Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, 80 * + 5 AS col1 +---- +400 +NULL query I rowsort SELECT ALL + 2 * + 67 @@ -10336,8 +10445,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) + + - 71 + 10 AS col1, + 28 + 11 AS col1 +---- +-62 +39 query I rowsort SELECT + ( + 30 ) AS col1 @@ -10378,8 +10490,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1018 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-32\)\) \* Int64\(\-34\) \+ Int64\(70\) AS col0" at position 0 and "Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + - 32 ) * + - 34 + + 70 col0, - 38 AS col0 +---- +-1018 +-38 query I rowsort label-1970 SELECT ALL + - 13 * + CASE + COUNT ( * ) WHEN - + 30 THEN + - ( 58 ) * + - 55 WHEN + 81 THEN NULL ELSE NULL END - - COALESCE ( + 86, - 6 + - 42 + - 39 - + 53 ) / ( 95 ) AS col1 @@ -10476,8 +10591,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 123 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ Int64\(12\) \+ \(\- Int64\(48\)\) \+ Int64\(61\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 98 + + 12 + - + 48 + 61 AS col2, + 42 AS col2 +---- +123 +42 query I rowsort label-1988 SELECT ALL MIN ( ALL - + ( + 41 ) ) + - 49 @@ -11191,8 +11309,11 @@ SELECT COUNT ( * ) + - - 49 - 8 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 30 AS col2, + 78 AS col2 +---- +30 +78 query I rowsort SELECT 29 + + 23 AS col2 @@ -11320,8 +11441,11 @@ SELECT 75 + - CAST ( - 49 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -103428 # Datafusion - Expected - 520 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(52\) AS Int32\) \* Int64\(\-51\) \* Int64\(39\) AS col0" at position 0 and "Int64\(20\) \* sum\(Int64\(26\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + 52 AS INTEGER ) * - 51 * 39 AS col0, 20 * ( SUM ( ALL 26 ) ) AS col0 +---- +-103428 +520 query I rowsort label-2148 SELECT CAST ( + 26 AS INTEGER ) + + - 58 AS col2 @@ -11651,8 +11775,11 @@ SELECT + MIN ( ALL 76 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4638 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \- Int64\(\-97\) \* Int64\(48\) AS col1" at position 0 and "Int64\(46\) / Int64\(\-93\) \* coalesce\(Int64\(37\), Int64\(\-21\) / Int64\(49\) \* \(\- Int64\(13\)\) \+ Int64\(\-3\) \* Int64\(98\) \+ Int64\(96\), count\(\(\- Int64\(\-21\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 18 - - 97 * 48 col1, 46 / - 93 * + COALESCE ( + 37, - 21 / 49 * - + 13 + - 3 * + + 98 + + 96, COUNT ( - ( + - 21 ) ) ) AS col1 +---- +0 +4638 query I rowsort SELECT DISTINCT - - 55 * 81 @@ -12384,14 +12511,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 41 ) AS col2, + COUNT ( * ) AS col2 +---- +-41 +1 # 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\(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\. +query RI valuesort 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 +---- +-2 +NULL query I rowsort label-2349 SELECT + 20 / ( 5 ) AS col0 @@ -12417,8 +12550,11 @@ 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\(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\. +query II valuesort 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 +---- +30 +NULL query I rowsort SELECT + ( - - 60 ) + - 0 col1 @@ -12703,8 +12839,11 @@ SELECT 28 - + COUNT ( * ) * - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 46 AS col2, + 46 col2 +---- +46 +46 query II rowsort SELECT - 2, - 33 + + 53 * + - 80 AS col0 @@ -12795,8 +12934,11 @@ SELECT DISTINCT + COALESCE ( + + CASE - - 89 WHEN - 10 - - - SUM ( - 8 ) + + - 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2029 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \- Int64\(51\) \* \(\- sum\(Int64\(2\)\)\) \* \(\- Int64\(20\)\) \+ Int64\(31\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 20 - + 51 * - + SUM ( 2 ) * - + 20 + 31 AS col1, 10 AS col1 +---- +-2029 +10 query II rowsort SELECT DISTINCT + + 10, - ( - 85 ) * - + 1 * 39 - + + 77 * 85 col2 @@ -12970,8 +13112,12 @@ SELECT - - 14 + - 49 AS col2, 44 + COALESCE ( + 89, + - 66 ) * - 17 * - + 49 AS # Datafusion - Expected - -3234 # Datafusion - Expected - -129 # Datafusion - Expected - -5068 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* \(\- Int64\(77\)\) AS col0" at position 0 and "Int64\(1\) \+ \(\- Int64\(80\)\) \+ Int64\(\-50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + + 42 * - + 77 col0, 1 + - + 80 + - 50 col0, + 63 * - 76 - 4 * + + 70 +---- +-129 +-3234 +-5068 query I rowsort SELECT - - 69 * 52 @@ -13127,8 +13273,11 @@ SELECT DISTINCT - 36, 45 * + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(94\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "min\(Int64\(64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) / 94 + + COUNT ( * ) AS col0, MIN ( ALL + 64 ) AS col0 +---- +1 +64 query I rowsort label-2489 SELECT ALL - 65 * + MIN ( DISTINCT + 75 ) @@ -13296,8 +13445,11 @@ 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\(1\)\) AS count\(\*\) \+ \(\- Int64\(88\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 * + 58 AS col2, + COUNT ( * ) + - + 88 AS col2 +---- +-87 +2958 query I rowsort SELECT ALL + + 38 + 0 AS col1 @@ -13744,8 +13896,11 @@ SELECT - 91 / + 93 * 47 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 138 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ 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 II valuesort SELECT DISTINCT 60 + + 78 AS col2, + 76 col2 +---- +138 +76 query I rowsort SELECT ALL 65 + 53 @@ -13889,8 +14044,11 @@ SELECT DISTINCT - 8 + - 85 + - 60 AS col2, COUNT ( * ) + + 92 + + 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col1" at position 0 and "Int64\(\-95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 AS col1, - 95 AS col1 +---- +-95 +52 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -14236,8 +14394,11 @@ SELECT - 16 * + 7 * + 42 * + + 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col1" at position 0 and "Int64\(18\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 30 AS col1, + 18 * + COUNT ( * ) AS col1 +---- +-30 +18 query I rowsort label-2700 SELECT 72 * - COUNT ( * ) AS col1 @@ -14394,8 +14555,11 @@ SELECT + NULLIF ( - 28, - 34 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 1134 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col2" at position 0 and "Int64\(42\) \* Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 46 col2, 42 * + + 27 AS col2 +---- +-46 +1134 query II rowsort label-2729 SELECT ALL - NULLIF ( 85, + + NULLIF ( + - MAX ( DISTINCT - 49 ), COUNT ( DISTINCT - - 34 ) ) * - + 51 + 91 ) AS col2, + 65 * + + 79 @@ -16045,8 +16209,11 @@ SELECT - MAX ( 64 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 39 col1, 51 AS col1 +---- +39 +51 query I rowsort label-3051 SELECT DISTINCT - SUM ( + 22 ) @@ -16420,8 +16587,11 @@ SELECT DISTINCT - COUNT ( DISTINCT + - 5 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -378 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* Int64\(\-7\) AS col1" at position 0 and "Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 54 * - 7 AS col1, ( + - 30 ) col1 +---- +-30 +-378 query I rowsort SELECT DISTINCT 57 + + 66 @@ -16539,8 +16709,11 @@ SELECT - 51 AS col0, + 57 * 68 * - 70 * 80 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1948 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(74\) / Int64\(\-3\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 * 74 / + - 3 AS col0, + 42 AS col0 +---- +-1948 +42 query I rowsort label-3144 SELECT 86 + - ( COUNT ( ALL - 54 ) ) AS col2 @@ -16565,8 +16738,11 @@ SELECT 69 * - + 59 * - 15 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 44 AS col2, 61 col2 +---- +44 +61 query II rowsort label-3149 SELECT + + COUNT ( * ) AS col1, + CASE - - 0 WHEN CAST ( + - 99 AS FLOAT8 ) / - 50 THEN 39 / + CAST ( + COUNT ( * ) AS INTEGER ) * MAX ( 13 + - 14 * 5 ) END AS col2 @@ -17380,8 +17556,11 @@ SELECT ALL + ( - 32 ) * - 80 # 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\(61\)\)\) AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( + 61 ) AS col1, 39 AS col1 +---- +-1 +39 query I rowsort label-3302 SELECT ALL SUM ( ALL - 11 ) @@ -17536,8 +17715,11 @@ SELECT - 33 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 123 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "Int64\(37\) \- Int64\(\-86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 AS col0, 37 - - 86 AS col0 +---- +0 +123 query II rowsort label-3332 SELECT DISTINCT 27 AS col0, + COALESCE ( 77, + + ( + COUNT ( * ) ) ) AS col2 @@ -17553,14 +17735,20 @@ SELECT ALL - + 40 / - 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 AS col2, - 4 AS col2 +---- +-4 +12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, - COUNT ( * ) AS col2 +---- +-1 +1 query I rowsort label-3336 SELECT ALL - - CASE + 17 WHEN + CAST ( + + 74 AS INTEGER ) THEN NULL ELSE + 80 END + - - 60 * + MAX ( DISTINCT - CAST ( - 42 AS INTEGER ) ) @@ -17812,8 +18000,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col2" at position 0 and "Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 88 AS col2, ( - 4 ) col2 +---- +-4 +-88 query II rowsort SELECT 43 AS col2, + 17 @@ -18213,8 +18404,11 @@ SELECT DISTINCT + + 36 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \* \(\- count\(Int64\(73\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 35 * + - COUNT ( + 73 ) AS col1, COUNT ( * ) AS col1 +---- +1 +35 query I rowsort SELECT - + 3 + 97 + - 90 @@ -18325,8 +18519,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 1716 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col2" at position 0 and "Int64\(52\) \* \(\- Int64\(\-33\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 19 AS col2, 52 * - - 33 AS col2 +---- +-19 +1716 query II rowsort label-3483 SELECT DISTINCT - + 67 AS col2, - COUNT ( * ) AS col0 @@ -18750,8 +18947,11 @@ SELECT + 66 * 87 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-80\)\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( - 80 ) AS col2, + 66 AS col2 +---- +-80 +66 query I rowsort SELECT 50 * - 63 + + 54 @@ -19077,8 +19277,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - -199430 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col2" at position 0 and "Int64\(37\) \* \(\- Int64\(77\)\) \* Int64\(\-35\) \* Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 75 AS col2, + 37 * - ( 77 ) * + - 35 * + ( - 2 ) AS col2 +---- +-199430 +75 query I rowsort SELECT 32 * 63 AS col1 @@ -19554,8 +19757,11 @@ SELECT 76 * + - 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - -29 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 15 AS col2, - 29 AS col2 +---- +-15 +-29 query I rowsort label-3716 SELECT 23 / + + 43 @@ -19590,8 +19796,11 @@ SELECT DISTINCT + 19 + - - 11 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 32 AS col2, COUNT ( * ) col2 +---- +-32 +1 query I rowsort SELECT DISTINCT - 74 + 8 @@ -19628,8 +19837,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(56\) \- \(\- Int64\(81\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 21 AS col2, - COUNT ( * ) * + ( + 56 ) - - + 81 AS col2 +---- +-21 +25 query II rowsort SELECT + 3 AS col0, NULLIF ( - 24, + + 87 ) @@ -20346,8 +20558,12 @@ SELECT ALL 29 + 85 # Datafusion - Expected - -152 # Datafusion - Expected - -61 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ Int64\(\-90\) \+ Int64\(17\) \* \(\- sum\(Int64\(9\)\)\) AS col2" at position 0 and "Int64\(90\) \+ Int64\(\-38\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 91 + - 90 + 17 * + - SUM ( ALL 9 ) AS col2, COALESCE ( + - 61, - - 83 ), 90 + - 38 AS col2 +---- +-152 +-61 +52 query I rowsort SELECT + COALESCE ( 57, 17, NULLIF ( 25, - - 51 / + 76 * - 37 * + ( - + 52 ) ) ) AS col2 @@ -20402,8 +20618,11 @@ SELECT 14 * + ( - 67 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2223 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \* CAST\(Int64\(\-57\) AS Int32\) AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 39 * + CAST ( - 57 AS INTEGER ) AS col0, + 34 AS col0 +---- +2223 +34 query I rowsort SELECT + 59 * - 23 + 9 - - 36 AS col1 @@ -20551,8 +20770,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 12 AS col1, 38 * 6 * + - COUNT ( * ) * + + 62 AS col1 +---- +-12 +-14136 query I rowsort SELECT ALL - 94 + + - ( COALESCE ( 90, 66, + 68 ) ) + - 32 AS col1 @@ -20711,8 +20933,11 @@ SELECT + 94 + 26 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\(18\) / \(\- Int64\(\-46\)\) AS col2" at position 0 and "Int64\(\-4\) / Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 18 / - - 46 AS col2, ( - 4 ) / 3 AS col2 +---- +-1 +0 query I rowsort label-3938 SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 68 * - - COUNT ( * ) AS col1 @@ -20845,8 +21070,11 @@ SELECT ALL 13 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(\-69\)\)\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + MAX ( - 69 ) ) AS col1, 38 AS col1 +---- +38 +69 query I rowsort label-3963 SELECT ALL COUNT ( * ) + - - 55 * - - 0 - COUNT ( * ) AS col2 @@ -20908,8 +21136,11 @@ 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\(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\. +query II valuesort 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 +---- +-2576 +43 query I rowsort label-3975 SELECT - MAX ( + 4 ) * 74 AS col0 @@ -21431,8 +21662,11 @@ 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\(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\. +query II valuesort SELECT + ( + COALESCE ( - 69, COUNT ( * ) ) ) AS col1, - 11 AS col1 +---- +-11 +-69 query I rowsort label-4074 SELECT + 91 * + 55 * - - 12 + + COUNT ( * ) @@ -21692,8 +21926,11 @@ SELECT 40 * 24 * 7 * - - 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "Int64\(\-11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 65 AS col0, - 11 AS col0 +---- +-11 +65 query I rowsort label-4122 SELECT NULLIF ( - 29, + 48 ) + - - 90 * - COUNT ( * ) * + - COUNT ( * ) col0 @@ -21795,8 +22032,11 @@ SELECT - - 57 * - 78 + - COUNT ( * ) AS col2, 62 - - 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3796 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(52\)\) \* Int64\(73\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( DISTINCT + 52 ) * + + 73 AS col1, 99 AS col1 +---- +3796 +99 query I rowsort SELECT DISTINCT - 60 * + 13 * + + ( 97 ) @@ -21898,8 +22138,11 @@ SELECT + NULLIF ( 73, 91 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2940 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \* nullif\(Int64\(30\), Int64\(\-39\) \* Int64\(\-71\)\) AS col0" at position 0 and "CASE Int64\(31\) WHEN \(\- avg\(DISTINCT Int64\(\-61\)\)\) THEN NULL WHEN Int64\(1\) THEN Int64\(\-14\) \* Int64\(34\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 98 * + NULLIF ( + 30, + - 39 * - 71 ) AS col0, CASE + 31 WHEN - AVG ( DISTINCT - 61 ) THEN NULL WHEN 1 THEN + - 14 * 34 ELSE NULL END AS col0 +---- +-2940 +NULL query II rowsort label-4160 SELECT ALL - 48 * NULLIF ( 91, + - 14 ) + + SUM ( ALL - 76 ) * 0, - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 @@ -22855,8 +23098,11 @@ SELECT 89 * + 36 * - 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- nullif\(Int64\(66\), Int64\(65\)\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + ( - - NULLIF ( + 66, + 65 ) ) + COUNT ( * ) AS col0, - 42 AS col0 +---- +-42 +-65 query I rowsort label-4343 SELECT 78 * COUNT ( * ) @@ -23074,8 +23320,11 @@ SELECT - + 39, 96 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 245 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(64\) WHEN Int64\(\-97\) THEN Int64\(15\) ELSE NULL END\) AS col0" at position 0 and "Int64\(7\) \* Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CASE + 64 WHEN - 97 THEN 15 ELSE NULL END AS col0, + 7 * + 35 col0 +---- +245 +NULL query I rowsort label-4384 SELECT DISTINCT + 68 + - 56 - + - 64 / COUNT ( * ) AS col2 @@ -23123,8 +23372,11 @@ SELECT + SUM ( ALL + - CAST ( + - 49 AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col2" at position 0 and "Int64\(10\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 93 AS col2, 10 + COUNT ( * ) col2 +---- +-93 +11 query I rowsort label-4393 SELECT - ( + + 39 ) + - MIN ( ALL + 26 ) - - 54 @@ -23145,8 +23397,11 @@ SELECT ALL 73 - + 22 * + 75 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(\-1\) AS col2" at position 0 and "Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 77 * - 1 AS col2, - 2 AS col2 +---- +-2 +-77 query I rowsort label-4397 SELECT - ( + 9 ) + CAST ( NULL AS INTEGER ) AS col1 @@ -23259,8 +23514,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) + 69 AS col0, - 53 AS col0 +---- +-53 +68 query II rowsort label-4418 SELECT 53 * - COUNT ( * ) + + 76 + + 36 * 41 * 83 * 40 AS col2, - 23 @@ -23322,8 +23580,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - -96000 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "Int64\(40\) \* Int64\(\-25\) \* Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 AS col1, + 40 * - 25 * 96 AS col1 +---- +-96000 +40 query II rowsort label-4430 SELECT - 7 col1, - COUNT ( * ) @@ -23585,8 +23846,11 @@ SELECT ALL + - 12 * - 78 - - + NULLIF ( - COALESCE ( - CAST ( 37 AS INTEGER ), - # Datafusion - Datafusion expected results: # Datafusion - Expected - -489160 # Datafusion - Expected - 1377 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \* Int64\(8\) \* \(\- Int64\(\-72\)\) \+ \(\- Int64\(\-98\)\) \+ Int64\(\-80\) \* Int64\(96\) \* Int64\(12\) \+ \(\- Int64\(97\)\) \* \(\- Int64\(82\)\) \* \(\- \(\- Int64\(\-45\)\)\) \+ Int64\(96\) \* Int64\(9\) \* Int64\(\-12\) AS col2" at position 0 and "Int64\(81\) \* Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 50 * 8 * - - 72 + - - 98 + - 80 * + 96 * 12 + - + 97 * - + 82 * - - ( + - 45 ) + 96 * 9 * + - 12 AS col2, 81 * 17 AS col2 +---- +-489160 +1377 query I rowsort label-4479 SELECT ALL + + 73 / + - ( - + 43 ) + + ( - + 14 ) / - ( - COUNT ( * ) ) AS col0 @@ -23677,8 +23941,11 @@ SELECT DISTINCT 9, + 50 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 AS col1, 99 AS col1 +---- +81 +99 query I rowsort label-4497 SELECT DISTINCT SUM ( DISTINCT 74 ) AS col1 @@ -24425,8 +24692,11 @@ 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\(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\. +query II valuesort SELECT + 95 + 81 AS col1, CASE + 66 WHEN - COUNT ( * ) THEN + 45 WHEN 7 THEN NULL END AS col1 +---- +176 +NULL query I rowsort SELECT DISTINCT 1 * + + 11 AS col2 @@ -25163,8 +25433,11 @@ SELECT - ( - COUNT ( 92 ) ) / 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ Int64\(32\) AS col1" at position 0 and "nullif\(\(\- CASE \(\- Int64\(\-78\)\) WHEN CAST\(\(\- Int64\(\-88\)\) AS Int32\) \* Int64\(64\) THEN NULL ELSE Int64\(\-20\) END\), Int64\(\-75\) \* nullif\(Int64\(32\), coalesce\(Int64\(55\), Int64\(\-87\) \* Int64\(53\), Int64\(\-10\)\) \+ Int64\(49\)\) \+ Int64\(14\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 60 + + + 32 AS col1, + NULLIF ( - CASE - - 78 WHEN + CAST ( - - 88 AS INTEGER ) * 64 THEN NULL ELSE - 20 END, - 75 * NULLIF ( 32, + COALESCE ( 55, - 87 * + 53, - 10 ) + 49 ) + + 14 ) AS col1 +---- +20 +92 query II rowsort SELECT ALL 30 + + - 89 AS col1, 82 @@ -26158,8 +26431,11 @@ SELECT DISTINCT + 83 * - 89 * 32 AS col2, - 1 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-22\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + - 22 ) AS col0, - CAST ( NULL AS INTEGER ) + + 42 AS col0 +---- +22 +NULL query II rowsort label-4971 SELECT 97 + - + 35, + ( 36 ) * - 80 * + 73 * + + ( + CASE - COUNT ( * ) WHEN CASE - COUNT ( * ) WHEN SUM ( - - 81 ) + 16 THEN - COALESCE ( + 7, 19 ) * 56 WHEN + 94 / 65 THEN + 75 ELSE + 2 + 74 END * - 60 THEN 3 END ) + - CAST ( 98 AS INTEGER ) - 26 * 69 AS col2 @@ -26211,8 +26487,11 @@ SELECT 87 * - + 47 AS col1, - 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ \(\- Int64\(53\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 + - + 53 AS col0, + COUNT ( * ) col0 +---- +-21 +1 query I rowsort SELECT - + 15 col1 @@ -26242,8 +26521,11 @@ SELECT DISTINCT ( + + 50 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 220 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-50\)\) \+ \(\- Int64\(\-85\)\) \* Int64\(2\) AS col0" at position 0 and "Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 50 + - ( - 85 ) * 2 AS col0, 74 col0 +---- +220 +74 query I rowsort label-4987 SELECT DISTINCT - COUNT ( * ) * - COUNT ( + + 61 ) AS col1 @@ -26267,8 +26549,11 @@ 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\(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\. +query II valuesort SELECT ALL - 95 * + CASE + 43 WHEN + AVG ( ALL + 12 ) THEN + 31 WHEN COUNT ( * ) THEN + 39 END - 82 AS col2, + 22 AS col2 +---- +22 +NULL query I rowsort label-4991 SELECT - - ( NULLIF ( + 16, + 81 + 64 ) ) + COALESCE ( - 92, + 89 ) + + + MAX ( ALL + 66 ) * + COUNT ( * ) + - 62 @@ -26506,8 +26791,11 @@ SELECT + 30 / - 94 * 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 95440 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "Int64\(61\) \* Int64\(\-40\) \* Int64\(5\) \+ Int64\(69\) \* Int64\(13\) \* \(\- Int64\(20\)\) \* \(\- sum\(Int64\(6\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 45 AS col1, + 61 * - 40 * 5 + + 69 * 13 * ( - + 20 ) * - SUM ( + 6 ) col1 +---- +45 +95440 query I rowsort label-5037 SELECT + COUNT ( - 97 ) col0 @@ -26586,8 +26874,12 @@ 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\(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\. +query III valuesort SELECT ALL COUNT ( * ) AS col0, 7 AS col1, - COALESCE ( + - 47, 53 * - 26 + - 85 + + 59, + COUNT ( * ) ) * COUNT ( * ) + - 29 + - 2 AS col1 +---- +1 +16 +7 query I rowsort label-5052 SELECT ALL - NULLIF ( - COUNT ( * ), 70 ) AS col1 @@ -27263,8 +27555,11 @@ SELECT ALL COUNT ( * ) + - + 88 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(50\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MAX ( ALL + 50 ) + + COUNT ( * ) col2, + 64 col2 +---- +51 +64 query I rowsort label-5181 SELECT DISTINCT 17 * - + COUNT ( * ) AS col2 @@ -27586,8 +27881,11 @@ 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\(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\. +query II valuesort SELECT ALL + ( + 5 ) * COUNT ( * ) * - - 66 AS col1, - SUM ( ALL - + 80 ) AS col1 +---- +330 +80 query I rowsort SELECT 23 - 43 - - - 69 @@ -27602,8 +27900,11 @@ SELECT ALL - - ( - 52 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col1" at position 0 and "Int64\(7\) \+ Int64\(42\) \- \(\- Int64\(\-35\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 10 AS col1, + 7 + + + 42 - - - 35 AS col1 +---- +10 +14 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -27647,8 +27948,11 @@ SELECT 35 - + + COALESCE ( + 77, + 34 * - 84, - CAST ( + COUNT ( * ) AS INTEGER # Datafusion - Datafusion expected results: # Datafusion - Expected - -2772 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* Int64\(\-33\) \* Int64\(12\) AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 7 * + - 33 * + + 12 AS col1, + 23 AS col1 +---- +-2772 +23 query I rowsort SELECT ALL 18 + 88 @@ -28468,8 +28772,11 @@ SELECT - - NULLIF ( 71, + 48 / - 5 ) + + - 22 + + COUNT ( * ) AS col1, - 90 * ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -3825 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \+ CAST\(Int64\(15\) AS Int32\) \- Int64\(94\) \* Int64\(40\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(23\) \* \(\- count\(DISTINCT Int64\(27\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 80 + + CAST ( ( 15 ) AS INTEGER ) - + 94 * 40 col2, COUNT ( * ) * 23 * - COUNT ( DISTINCT + 27 ) AS col2 +---- +-23 +-3825 query I rowsort label-5412 SELECT - SUM ( DISTINCT + + 31 ) * - 80 @@ -28557,8 +28864,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 5 / - - 13 AS col1, - COUNT ( * ) AS col1 +---- +-1 +0 query I rowsort SELECT ( + + 72 ) @@ -28668,8 +28978,11 @@ SELECT ALL + NULLIF ( + 60, - - 63 ) * + ( - + 34 ) + 83 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT - CAST ( NULL AS FLOAT8 ) AS col1, + 69 AS col1 +---- +69 +NULL query I rowsort SELECT ALL - 13 + 42 * ( + 21 ) @@ -28904,8 +29217,11 @@ SELECT 79 + 7 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7603 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \+ Int64\(8\) \- Int64\(\-28\) \+ Int64\(89\) \+ Int64\(33\) \* Int64\(48\) \+ Int64\(99\) \* Int64\(59\) \+ \(\- Int64\(28\)\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 81 + + + 8 - - 28 + 89 + + + 33 * 48 + 99 * 59 + - + 28 AS col0, 82 AS col0 +---- +7603 +82 query I rowsort label-5495 SELECT ALL + 54 * COUNT ( ALL 17 ) @@ -28976,8 +29292,11 @@ NULL # 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 "Int64\(93\) \+ Int64\(66\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 93 + + + 66 AS col2, 97 AS col2 +---- +159 +97 query II rowsort label-5509 SELECT ALL CAST ( 13 AS INTEGER ), 46 AS col2 @@ -29744,8 +30063,11 @@ SELECT - 35 * - 84 # 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\(\-96\)\) AS col2" at position 0 and "\(\- \(\- Int64\(\-42\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( ALL + - 96 ) AS col2, - ( - - 42 ) AS col2 +---- +-42 +1 query I rowsort SELECT + ( 22 ) AS col2 @@ -29906,8 +30228,11 @@ SELECT - COUNT ( * ) * 26 + + 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(88\), Int64\(5\)\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + NULLIF ( + 88, + + 5 ) AS col0, ( + 43 ) AS col0 +---- +43 +88 query I rowsort SELECT DISTINCT - ( - 90 ) @@ -30235,8 +30560,11 @@ SELECT - 45 * 27 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) / \(\- Int64\(\-43\)\) AS col1" at position 0 and "CAST\(Int64\(3\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 66 / - - 43 col1, CAST ( + 3 AS INTEGER ) AS col1 +---- +-1 +3 query I rowsort label-5750 SELECT ALL COUNT ( + 40 ) AS col1 @@ -30266,8 +30594,11 @@ SELECT - 77 - + 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3034 # Datafusion - Expected - 1767 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* Int64\(\-74\) AS col0" at position 0 and "Int64\(57\) \* Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 41 * + - 74 AS col0, + 57 * 31 AS col0 +---- +-3034 +1767 query I rowsort label-5756 SELECT - COALESCE ( + + 8, - 52 + MAX ( + 7 ) + + COALESCE ( + 52, - 91 + + CAST ( 44 AS INTEGER ) * - ( + 40 ) ), - + 12 / + + COALESCE ( - ( ( + 56 ) ), - 78, + + SUM ( - 94 ) ) ) + + COUNT ( * ) / - + 60 + 1 AS col1 @@ -30429,8 +30760,11 @@ SELECT ALL + 74 col2, 92 * 52 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -402611 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(17\) \- Int64\(51\) \* Int64\(99\) \* Int64\(80\) AS col1" at position 0 and "Int64\(\-5\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 77 * 17 - + 51 * + 99 * + ( 80 ) AS col1, - 5 * + COUNT ( * ) AS col1 +---- +-402611 +-5 query I rowsort SELECT + 21 * - 80 @@ -30496,8 +30830,11 @@ SELECT DISTINCT 97 * - 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col0" at position 0 and "Int64\(97\) / Int64\(46\) \+ avg\(DISTINCT Int64\(59\)\) \+ Int64\(46\) \* \(\- CAST\(NULL AS Float64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - 71 AS col0, 97 / + ( 46 ) + + AVG ( DISTINCT + + ( + 59 ) ) + + + 46 * - CAST ( NULL AS FLOAT8 ) AS col0 +---- +-71 +NULL query I rowsort label-5800 SELECT - 55 * - ( - - COUNT ( * ) ) + - 89 @@ -30912,8 +31249,11 @@ SELECT - ( + + COUNT ( - + 17 ) ) / - 24 * + 8 * 49 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "Int64\(1\) \+ \(\- Int64\(83\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 9 AS col1, 1 + + - ( + 83 ) AS col1 +---- +-82 +9 query I rowsort label-5880 SELECT ALL 2 * + 64 + - COUNT ( * ) @@ -31302,8 +31642,11 @@ SELECT 47 + 29 + - + 97 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 2460 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "Int64\(30\) \* Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 AS col1, 30 * + 82 AS col1 +---- +23 +2460 query I rowsort SELECT DISTINCT + 77 + - 27 @@ -31552,8 +31895,11 @@ SELECT ALL + - ( + MAX ( + 31 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2611 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \* Int64\(\-32\) \+ Int64\(32\) \+ \(\- Int64\(59\)\) \+ Int64\(68\) \+ \(\- Int64\(\-42\)\) AS col1" at position 0 and "nullif\(Int64\(1\), min\(Int64\(\-87\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 79 * + - 32 + 32 + - + 59 + + 68 + - ( - 42 ) col1, + ( + NULLIF ( + 1, MIN ( - 87 ) ) ) AS col1 +---- +1 +2611 query I rowsort label-6002 SELECT + SUM ( DISTINCT + NULLIF ( ( 78 ), 71 ) ) / 71 @@ -31588,8 +31934,11 @@ SELECT ALL - 83 * 70 + + COUNT ( * ) * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 96 AS col0, 97 AS col0 +---- +96 +97 query I rowsort SELECT + 76 * + + 50 @@ -32198,8 +32547,11 @@ 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\(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\. +query II valuesort SELECT ALL 0 AS col0, CASE - + 52 WHEN - ( - COUNT ( * ) ) THEN + 90 ELSE - 2 - - ( + - ( 5 ) ) END * + 92 AS col0 +---- +-644 +0 query I rowsort label-6123 SELECT ALL - COUNT ( * ) * + CAST ( 25 AS INTEGER ) + - 59 AS col2 @@ -32306,8 +32658,11 @@ SELECT DISTINCT 34 * - 49 * ( + 31 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + - COUNT ( * ) AS INTEGER ) AS col2, + COUNT ( * ) - + - COUNT ( * ) + + ( 58 ) AS col2 +---- +-1 +60 query I rowsort SELECT + 58 * + NULLIF ( + ( 44 ), + + 80 ) @@ -32505,8 +32860,11 @@ SELECT + ( + 93 ) * - 12 - + 16 + - COALESCE ( + COUNT ( * ), + + 34 / + - 65 - # 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\) AS col1" at position 0 and "Int64\(22\) \+ Int64\(\-52\) / Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 AS col1, + 22 + - 52 / + + 84 AS col1 +---- +22 +57 query I rowsort SELECT DISTINCT - 55 + - 51 @@ -33040,8 +33398,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) col2, + 70 AS col2 +---- +-1 +70 query I rowsort SELECT + 75 + + 28 @@ -33721,8 +34082,11 @@ SELECT MAX ( 8 ) / - - 86 * - 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1855 # Datafusion - Expected - -25 -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 "Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 * - 53 AS col2, - 25 AS col2 +---- +-1855 +-25 query I rowsort label-6419 SELECT ALL + CAST ( - 31 AS INTEGER ) + - 54 @@ -33901,8 +34265,11 @@ SELECT 35 + - ( 94 ) * 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2244 # Datafusion - Expected - -103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \* \(\- \(\- coalesce\(Int64\(51\), Int64\(61\)\)\)\) AS col1" at position 0 and "coalesce\(\(\- coalesce\(Int64\(28\), Int64\(94\)\)\), Int64\(79\)\) \- Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 * - - COALESCE ( 51, 61 ) AS col1, COALESCE ( + - COALESCE ( + + 28, + 94 ), + 79 ) - + 75 AS col1 +---- +-103 +2244 query I rowsort label-6454 SELECT - COUNT ( DISTINCT - - 6 ) AS col0 @@ -35203,8 +35570,11 @@ SELECT ALL - 95 + + 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -2784 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \- Int64\(\-7\) AS col1" at position 0 and "Int64\(96\) \* \(\- max\(Int64\(29\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 - - 7 AS col1, + 96 * - + MAX ( 29 ) AS col1 +---- +-2784 +15 query II rowsort label-6702 SELECT 2 AS col2, COALESCE ( + 73, - NULLIF ( + 28, + 15 ) + MAX ( ALL CAST ( NULL AS INTEGER ) ) ) AS col1 @@ -35338,8 +35708,12 @@ SELECT + + 57 * + 56 # Datafusion - Expected - -30 # Datafusion - Expected - 57 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(57\), Int64\(\-90\)\) AS col2" at position 1 and "\(\- Int64\(\-54\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + - 30, COALESCE ( + 57, - 90 ) AS col2, - - 54 AS col2 +---- +-30 +54 +57 query I rowsort SELECT - 99 * 57 * - 48 + COALESCE ( - 12, COALESCE ( + 74, 82 ) ) col0 @@ -35477,8 +35851,11 @@ SELECT DISTINCT - 97 * - CAST ( - 99 AS INTEGER ) * + 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-86\)\) / coalesce\(Int64\(39\), \(\- Int64\(\-40\)\) \+ Int64\(47\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 86 / + COALESCE ( 39, - - 40 + 47 ) AS col2, COUNT ( * ) + + COUNT ( * ) AS col2 +---- +2 +2 query I rowsort label-6752 SELECT - 75 * - - COUNT ( * ) @@ -35513,8 +35890,11 @@ SELECT ALL + 22 * - + ( - 57 ) col2 # 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\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 44 AS col2, 34 AS col2 +---- +34 +44 query I rowsort label-6759 SELECT ALL ( - CAST ( NULL AS INTEGER ) ) / + ( - NULLIF ( + - 60, 22 + + 40 ) ) + + COUNT ( * ) col2 @@ -36115,8 +36495,11 @@ SELECT DISTINCT - 70 * + 82 + - 17 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -814 # Datafusion - Expected - -193362 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* Int64\(\-20\) \+ Int64\(\-74\) AS col0" at position 0 and "Int64\(78\) \* min\(Int64\(37\)\) \* \(\- Int64\(67\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 37 * ( - 20 ) + - 74 AS col0, 78 * + MIN ( 37 ) * - + 67 AS col0 +---- +-193362 +-814 query I rowsort label-6874 SELECT - + 94 + + MIN ( - 91 ) AS col0 @@ -36450,8 +36833,11 @@ 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\(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\. +query II valuesort SELECT + - 30 AS col1, + COALESCE ( - - 69, + + COUNT ( * ) ) * + 17 + + 29 + - + 1 + 26 col1 +---- +-30 +1227 query II rowsort label-6938 SELECT + + 90 * - COALESCE ( 67, 7 ) + CAST ( NULL AS INTEGER ) + 87 * 37 / + - 48 + - 89 col2, - 84 + + 34 AS col1 @@ -36539,8 +36925,11 @@ SELECT + 23 / - 49 AS col2 # 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 col0" at position 0 and "Int64\(\-3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 88 AS col0, ( + - 3 ) col0 +---- +-3 +-88 query I rowsort SELECT 32 + + 34 + + 68 + + - 96 + + 28 * - ( - + 26 ) AS col1 @@ -36613,8 +37002,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - COUNT ( * ) ) AS col0, 66 AS col0 +---- +-1 +66 query I rowsort label-6968 SELECT - CAST ( + ( 47 ) AS INTEGER ) AS col2 @@ -36904,8 +37296,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 + - COUNT ( * ) AS col1, 4 col1 +---- +4 +67 query II rowsort SELECT - 83, + 28 AS col0 @@ -37025,8 +37420,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col2" at position 0 and "CAST\(Int64\(\-78\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 AS col2, CAST ( + - 78 AS INTEGER ) AS col2 +---- +-78 +61 query I rowsort SELECT DISTINCT + 38 * + CASE - ( - 51 ) WHEN 4 * 20 THEN NULL ELSE + - 16 - 1 END * + - 20 * - 13 @@ -37130,8 +37528,12 @@ NULL # Datafusion - Expected - 76 # Datafusion - Expected - 153 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(10\)\) \+ Int64\(86\) AS col1" at position 0 and "\(\- \(\- Int64\(97\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - + 10 + 86 AS col1, + 98 + + + 47 + 8, - ( - + 97 ) AS col1 +---- +153 +76 +97 query I rowsort SELECT - ( - 69 ) + 29 @@ -37296,8 +37698,11 @@ SELECT - + 9 - 85 + CAST ( - + MIN ( ALL - - 83 ) AS INTEGER ) * + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 col0, 18 AS col0 +---- +18 +79 query I rowsort label-7098 SELECT DISTINCT + - ( 43 ) / - MAX ( DISTINCT - 80 ) AS col0 @@ -37395,8 +37800,12 @@ SELECT DISTINCT + ( + CAST ( - - 64 AS INTEGER ) ) col0 # Datafusion - Expected - -2570 # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-37\)\) \* \(\- max\(Int64\(\-67\)\)\) \+ Int64\(\-91\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL SUM ( - 37 ) * - MAX ( ALL - 67 ) + - 91 col2, - ( + CAST ( NULL AS INTEGER ) ) AS col2, COUNT ( * ) / - COUNT ( * ) AS col0 +---- +-1 +-2570 +NULL query I rowsort SELECT + ( + + 94 ) @@ -37488,8 +37897,11 @@ SELECT - 36 + - - 23 * + + 42 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \- Int64\(\-27\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 6 - - 27 AS col2, COUNT ( * ) col2 +---- +1 +21 query II rowsort label-7133 SELECT 31 + + + COUNT ( * ), 47 + + 66 AS col1 @@ -37696,8 +38108,11 @@ SELECT ALL 6 * - + 48 + 96 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 151 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(57\) \+ Int64\(94\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, 57 + + 94 * COUNT ( * ) AS col0 +---- +1 +151 query II rowsort label-7173 SELECT 58 * + 20 AS col2, COALESCE ( ( - - 71 ), 82 * 91 * + 41 ) + - - NULLIF ( COALESCE ( 73, 49, + + 41 ), + - COUNT ( * ) ) * + + 35 * + 2 - - 17 @@ -37910,8 +38325,11 @@ SELECT - 19 * 25 + - + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1944 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* \(\- Int64\(54\)\) AS col2" at position 0 and "Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 36 * - + 54 AS col2, - 76 AS col2 +---- +-76 +1944 query I rowsort label-7214 SELECT + + CAST ( 31 AS INTEGER ) * - 0 col1 @@ -38041,8 +38459,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2625 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \* \(\- Int64\(35\)\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 75 ) * - + 35 AS col1, 65 AS col1 +---- +2625 +65 query I rowsort SELECT 86 * 69 * - NULLIF ( - 28, - 48 / - - 2 * - 34 ) AS col2 @@ -38338,8 +38759,11 @@ 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\)\) 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\. +query II valuesort 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 +---- +47 +NULL query I rowsort label-7296 SELECT ALL SUM ( DISTINCT 96 ) @@ -38463,8 +38887,11 @@ SELECT + 45 + + COUNT ( * ) AS col1, CAST ( + 64 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col2, 84 AS col2 +---- +84 +NULL query I rowsort SELECT DISTINCT + 27 * - + 77 @@ -38707,8 +39134,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) / ( - 7 ) col2, 82 + - 8 - - 33 AS col2 +---- +0 +107 query I rowsort label-7366 SELECT ALL ( + - CAST ( - 84 AS INTEGER ) ) + - 70 col2 @@ -38766,8 +39196,11 @@ SELECT ALL + ( + 0 ) * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 217 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \- Int64\(\-88\) \+ nullif\(Int64\(32\), Int64\(\-38\) \* Int64\(\-4\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 97 - + - 88 + + NULLIF ( + 32, + ( - 38 ) * - 4 ) AS col0, + COUNT ( * ) AS col0 +---- +1 +217 query I rowsort label-7377 SELECT ( - 39 ) * + COUNT ( * ) @@ -38783,8 +39216,12 @@ SELECT + ( - 47 ) AS col1 # Datafusion - Expected - -8613 # Datafusion - Expected - 18612 # Datafusion - Expected - 780 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* Int64\(9\) \* Int64\(44\) AS col2" at position 1 and "\(\- Int64\(52\)\) \* Int64\(\-15\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 99 * + 87, + 47 * 9 * + + 44 AS col2, - + 52 * - 15 AS col2 +---- +-8613 +18612 +780 query I rowsort label-7380 SELECT ALL - COUNT ( * ) - - + 86 + - 29 AS col1 @@ -39722,8 +40159,11 @@ SELECT ALL + 59 * - 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "coalesce\(Int64\(\-89\), CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 42 AS col2, COALESCE ( - 89, ( CAST ( NULL AS INTEGER ) ) ) AS col2 +---- +-89 +42 query I rowsort label-7560 SELECT ALL CAST ( NULL AS INTEGER ) / 63 * - MAX ( ALL - - 25 ) * + - 86 * + 82 AS col2 @@ -39850,8 +40290,11 @@ SELECT ALL - 78 - COUNT ( * ) # 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 "sum\(\(\- Int64\(56\)\)\) AS col2" at position 0 and "Int64\(0\) \* \(\- nullif\(Int64\(22\), Int64\(20\) \- Int64\(\-78\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( - ( + 56 ) ) AS col2, 0 * - NULLIF ( 22, + 20 - + - 78 ) AS col2 +---- +-56 +0 query II rowsort SELECT DISTINCT + 16, 67 AS col2 @@ -40301,8 +40744,11 @@ SELECT ALL - 49 - + - 91 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4186 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) \* Int64\(91\) AS col0" at position 0 and "Int64\(49\) \+ Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 46 * + 91 col0, 49 + 11 col0 +---- +-4186 +60 query II rowsort label-7671 SELECT ALL MIN ( - - 8 ) AS col1, COUNT ( * ) @@ -40393,8 +40839,11 @@ SELECT - - MAX ( DISTINCT - 53 ) / 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "CAST\(\(\- Int64\(71\)\) AS Int32\) \* Int64\(60\) \+ \(\- avg\(\(\- CASE Int64\(9\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN Int64\(\-89\) \+ Int64\(\-48\) ELSE NULL END\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + 71 AS col2, + CAST ( - ( + 71 ) AS INTEGER ) * + 60 + - AVG ( ALL - CASE + 9 WHEN - CAST ( NULL AS INTEGER ) THEN - 89 + - 48 ELSE NULL END ) AS col2 +---- +71 +NULL query I rowsort label-7689 SELECT 79 * - 25 * - - 66 + - + 14 / - 52 @@ -40707,8 +41156,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * + + MAX ( + 13 ) AS col1, ( 64 ) AS col1 +---- +13 +64 query I rowsort SELECT 98 + - 90 AS col0 @@ -40959,8 +41411,12 @@ SELECT + NULLIF ( + + 94, 89 ) * 7 + - 6 # Datafusion - Expected - 1 # Datafusion - Expected - -72 # Datafusion - Expected - 1068 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(34\) \- \(\- Int64\(56\)\) \* Int64\(19\) \+ Int64\(15\) \+ Int64\(14\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(88\) \+ Int64\(29\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT COUNT ( * ) AS col0, ( - 72 ), 34 - - + 56 * + 19 + + 15 + + 14 + - COUNT ( * ) * 88 + + + 29 AS col0 +---- +-72 +1 +1068 query I rowsort SELECT + COALESCE ( - 15, + + 90 ) AS col0 @@ -41434,8 +41890,11 @@ SELECT DISTINCT 56 + 22 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 1287 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col0" at position 0 and "\(\- min\(Int64\(39\)\)\) \* Int64\(\-33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 91 AS col0, - MIN ( ALL + 39 ) * - 33 AS col0 +---- +-91 +1287 query I rowsort label-7890 SELECT CAST ( - 55 AS INTEGER ) + + - COUNT ( * ) @@ -42689,8 +43148,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL MIN ( + CASE + - 95 WHEN 29 THEN + - 84 ELSE NULL END ), - 93 col0, 70 * - 31 * SUM ( ALL 16 ) / - COUNT ( * ) AS col0 +---- +-93 +34720 +NULL query I rowsort SELECT + 8 * + 48 AS col0 @@ -42834,8 +43297,11 @@ SELECT - COUNT ( * ) + - CAST ( - COUNT ( * ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-15\)\) AS col1" at position 0 and "min\(Int64\(43\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 15 AS col1, + MIN ( + 43 ) AS col1 +---- +15 +43 query II rowsort SELECT - 3 + 0 - 7 + - 66 AS col2, - 45 @@ -43345,8 +43811,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3519 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-69\)\) \* Int64\(\-51\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 69 * + - 51 AS col0, + 70 col0 +---- +-3519 +70 query II rowsort label-8256 SELECT ALL - COALESCE ( + 27, - NULLIF ( 67, - + 72 * - 26 ) - 56 ) AS col2, 12 + - COUNT ( * ) * - CASE COUNT ( * ) WHEN - 83 + 83 THEN NULL WHEN - + 65 THEN NULL ELSE CASE - 76 WHEN ( - 57 ) THEN - COALESCE ( COUNT ( * ), COUNT ( * ) - 89, 97 - - MAX ( DISTINCT 28 ) ) * - 48 + 42 / + 18 WHEN - CASE 56 WHEN - 22 * - COUNT ( * ) THEN - COUNT ( * ) WHEN + COUNT ( * ) THEN NULL END THEN 40 ELSE + 3 / - COUNT ( * ) END END / 40 + - 10 @@ -43367,8 +43836,11 @@ SELECT ALL - 94 * 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(CAST\(\(\- \(\- Int64\(16\)\)\) AS Int32\)\) / Int64\(\-64\) AS col1" at position 0 and "Int64\(59\) / \(\- Int64\(52\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( ALL + CAST ( - - ( 16 ) AS INTEGER ) ) / + - 64 AS col1, 59 / - ( + 52 ) col1 +---- +-1 +0 query I rowsort label-8260 SELECT ALL ( - 54 ) + + COALESCE ( 10, - COUNT ( * ), 64 ) AS col0 @@ -43543,8 +44015,11 @@ 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\(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\. +query II valuesort SELECT ALL + - 99 * + COUNT ( * ) + 2 AS col0, + 67 AS col0 +---- +-97 +67 query I rowsort label-8292 SELECT DISTINCT - + MAX ( DISTINCT + 2 ) * + 1 - - COUNT ( * ) @@ -43650,8 +44125,11 @@ SELECT 41 AS col1, 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 116 # Datafusion - Expected - -129 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \+ Int64\(75\) \+ Int64\(42\) AS col1" at position 0 and "coalesce\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(\-20\) \* Int64\(\-99\)\) \* \(\- Int64\(\-3\)\) \* Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - COUNT ( * ) AS INTEGER ) + + 75 + + 42 col1, COALESCE ( - - COUNT ( * ), - 20 * - 99 ) * - - 3 * - 43 AS col1 +---- +-129 +116 query I rowsort label-8312 SELECT - COUNT ( * ) * - 70 * 21 AS col2 @@ -43670,8 +44148,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 AS col1, 89 AS col1 +---- +54 +89 query I rowsort label-8315 SELECT ALL ( + COUNT ( * ) ) / - 19 + 9 / + 73 @@ -43809,8 +44290,12 @@ NULL # Datafusion - Expected - 76 # Datafusion - Expected - -36 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "\(\- sum\(Int64\(36\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 76 AS col0, ( - SUM ( ALL + + 36 ) ) AS col0, 33 / ( + 71 ) AS col0 +---- +-36 +0 +76 query II rowsort label-8341 SELECT 14, + COUNT ( * ) + + + SUM ( - CAST ( NULL AS INTEGER ) ) - + 78 + - 72 * + 68 + - 49 + + 89 col2 @@ -44172,8 +44657,11 @@ SELECT - - 23 * + + COUNT ( * ) * - 38 * + - 35 * 41 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 31 AS col0, 80 AS col0 +---- +31 +80 query II rowsort SELECT - 81, + 98 AS col0 @@ -44541,8 +45029,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 3654 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col2" at position 0 and "Int64\(63\) \* Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 20 AS col2, + 63 * + 58 AS col2 +---- +-20 +3654 query I rowsort label-8480 SELECT DISTINCT + 94 * - CAST ( + 48 AS INTEGER ) * - 6 + 54 - - ( + 16 ) - - 8 * - NULLIF ( COUNT ( * ), COUNT ( * ) * - CAST ( + 20 AS INTEGER ) ) - CASE - 33 WHEN - ( + CAST ( - + 60 AS INTEGER ) ) THEN - 2 WHEN + - 37 + - 66 THEN NULL WHEN - 38 THEN NULL ELSE NULL END - + 56 AS col2 @@ -44563,8 +45054,11 @@ SELECT ALL + 13 / + + 96 AS col0 # 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 "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 II valuesort SELECT 3 AS col2, + 28 AS col2 +---- +28 +3 query I rowsort label-8484 SELECT COUNT ( * ) + + + 97 AS col2 @@ -44742,8 +45236,11 @@ SELECT ALL 18 * 28 + - 1 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - -265972 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col0" at position 0 and "Int64\(92\) \* \(\- Int64\(49\)\) \* \(\- Int64\(\-59\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 29 col0, 92 * - + 49 * - + ( - 59 ) AS col0 +---- +-265972 +29 query I rowsort label-8517 SELECT DISTINCT 61 * + COUNT ( * ) - - 41 AS col2 @@ -45051,8 +45548,11 @@ SELECT - ( + 75 ) * - 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 AS col0, + CAST ( NULL AS INTEGER ) col0 +---- +-90 +NULL query I rowsort label-8577 SELECT DISTINCT - NULLIF ( 32, + COUNT ( * ) ) * + - 15 AS col0 @@ -45103,8 +45603,11 @@ SELECT ALL ( + - 83 ) # 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 "Int64\(3\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + 3 ) AS col0, + 75 AS col0 +---- +3 +75 query I rowsort SELECT 65 + - - 27 * - - 64 AS col2 @@ -45185,8 +45688,11 @@ SELECT - 70 * NULLIF ( - 14, + 5 ) + - COALESCE ( + - 74, COUNT ( * ) ) + - 44 - # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - -140 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(20\) \+ Int64\(\-3\) \+ Int64\(\-88\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-2\) \* Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) + 20 + - 3 + - 88 + COUNT ( * ) AS col1, - 2 * 70 col1 +---- +-140 +-71 query I rowsort label-8603 SELECT 27 * + 40 * 79 * + COUNT ( * ) + - + 31 @@ -45397,14 +45903,21 @@ SELECT DISTINCT + 62 - - - SUM ( DISTINCT + 27 ) + + - ( + + 82 ) + - ( + COALES # Datafusion - Expected - 8 # Datafusion - Expected - 1 # Datafusion - Expected - -1764 -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\(11\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 8 col0, + COUNT ( ALL 11 ) AS col0, - COALESCE ( + SUM ( 36 ), + + COUNT ( * ) ) * + + 49 +---- +-1764 +1 +8 # 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\(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\. +query II valuesort 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 +---- +-7 +NULL query I rowsort SELECT + + 5 + 36 @@ -45506,8 +46019,11 @@ SELECT - + 21 * 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \+ Int64\(59\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 10 + + + 59 AS col2, COUNT ( * ) AS col2 +---- +1 +69 query I rowsort SELECT - 72 + + 32 @@ -45542,8 +46058,11 @@ SELECT - - 95 + + 1 + + + 92 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 82 AS col2, 81 AS col2 +---- +81 +82 query I rowsort SELECT + + 58 * 88 + 51 AS col0 @@ -45736,8 +46255,11 @@ SELECT ALL - 28 * - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) / Int64\(\-62\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(94\) \- Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 48 / + - 62 * + COUNT ( * ) AS col2, 94 - + 75 AS col2 +---- +0 +19 query I rowsort label-8709 SELECT ALL - COALESCE ( + 15, 95 / - + COUNT ( * ) ) - + 25 + - 51 * + 12 * ( - ( + NULLIF ( 32, + - 9 ) ) ) AS col1 @@ -45752,8 +46274,11 @@ SELECT 34 + - 22 AS col2 # 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 "Int64\(36\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 AS col0, 77 AS col0 +---- +36 +77 query I rowsort label-8712 SELECT 43 + - 69 / + 98 AS col2 @@ -46488,8 +47013,11 @@ SELECT SUM ( NULLIF ( + + 19, + 63 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) / Int64\(66\) \+ Int64\(77\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CASE \(\- CAST\(\(\- max\(Int64\(\-33\)\)\) AS Int32\)\) WHEN \(\- \(\- min\(Int64\(19\)\)\)\) THEN NULL WHEN Int64\(25\) THEN Int64\(50\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +77 +NULL query I rowsort SELECT + 65 * COALESCE ( 97, - 26 ) - + 99 @@ -46499,8 +47027,11 @@ SELECT + 65 * COALESCE ( 97, - 26 ) - + 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - -101400 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \* Int64\(\-26\) \* Int64\(\-75\) AS col0" at position 0 and "Int64\(\-68\) \- \(\- count\(Int64\(\-94\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 52 * - 26 * - 75 AS col0, - 68 - + ( - COUNT ( ALL - 94 ) ) AS col0 +---- +-101400 +-67 query I rowsort SELECT 44 + + + 18 AS col2 @@ -47347,8 +47878,11 @@ SELECT - - 89 * - 74 + 48 + + 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6531 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \* Int64\(67\) \+ Int64\(\-99\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 96 * + 67 + - 99 col1, 96 AS col1 +---- +-6531 +96 query I rowsort label-9015 SELECT ALL + 68 * + MIN ( ALL + 36 ) + - - 5 col2 @@ -47661,8 +48195,11 @@ SELECT 7 - + 4 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3432 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(44\) AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 * + + 44 AS col2, 65 AS col2 +---- +3432 +65 query I rowsort SELECT ALL + 71 * - 74 * - 14 AS col0 @@ -47784,8 +48321,11 @@ SELECT ALL + 55 * COUNT ( ALL + 74 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col1" at position 0 and "Int64\(\-99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 70 ) AS col1, - 99 AS col1 +---- +-99 +70 query I rowsort SELECT 99 * - 87 @@ -48008,8 +48548,11 @@ SELECT ALL 78 / ( - 98 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col2, COUNT ( * ) AS col2 +---- +1 +1 query I rowsort label-9142 SELECT SUM ( ALL - 83 ) AS col1 @@ -48301,8 +48844,11 @@ SELECT + NULLIF ( - 93, - + 79 - + 44 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12402 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \* Int64\(\-78\) \* Int64\(3\) AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 * - 78 * + 3 AS col1, 90 AS col1 +---- +-12402 +90 query I rowsort label-9196 SELECT ALL SUM ( + + 66 ) * + + 13 + + 10 @@ -48419,8 +48965,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -5221 -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\) \* \(\- Int64\(82\)\) \+ Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 AS col0, 64 * + - ( + 82 ) + + 27 AS col0 +---- +-5221 +48 query I rowsort label-9219 SELECT 42 * - COALESCE ( COUNT ( * ), 63, 77 * - 46 - - - MIN ( ALL - 9 ) + - + MAX ( ALL - 95 ) ) @@ -49001,8 +49550,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 38 col0, 27 AS col0 +---- +-38 +27 query I rowsort label-9331 SELECT - 89 * - COUNT ( * ) + - + COALESCE ( - + MAX ( DISTINCT 43 ), + COUNT ( * ), + 35 ) @@ -49048,8 +49600,11 @@ 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\(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\. +query II valuesort SELECT COALESCE ( + 49, - SUM ( + 63 ) - + COUNT ( * ), + 72, - 60 - - 30 + 89 ) AS col2, - 93 * - 17 col2 +---- +1581 +49 query I rowsort SELECT CASE - 86 WHEN - 18 + - 43 THEN - - 13 END @@ -49059,8 +49614,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) - 65 - 52 + + 8 * - MAX ( - 83 ) AS col2, 90 / 45 AS col2 +---- +2 +548 query I rowsort label-9342 SELECT + ( - 73 ) / + CAST ( NULL AS INTEGER ) @@ -49142,8 +49700,11 @@ SELECT ALL 5 + + - 60 * + COUNT ( * ) / + 69 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 * COUNT ( * ) col0, 0 AS col0 +---- +0 +67 query I rowsort label-9357 SELECT 41 + - 98 + ( - ( + 66 ) ) * + COUNT ( 20 ) + 3 AS col2 @@ -49164,8 +49725,11 @@ SELECT 47 + - - 71 col1, - 95 + - SUM ( + 33 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3441 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(37\) AS Int32\) \* Int64\(\-93\) AS col1" at position 0 and "max\(\(\- Int64\(15\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + 37 AS INTEGER ) * - 93 AS col1, MAX ( - + 15 ) AS col1 +---- +-15 +-3441 query I rowsort label-9361 SELECT 50 * + - NULLIF ( + COUNT ( * ), - + 68 * 93 + - 29 * + 25 * 72 * 69 + MIN ( DISTINCT 66 ) ) / + - ( - + 98 ) + + CASE - CAST ( 96 AS INTEGER ) WHEN + 12 + + 16 THEN NULL ELSE + - 85 + + 50 END * 32 @@ -50321,8 +50885,11 @@ SELECT 28 * 15 + - COALESCE ( + 32, 41 * 46, - MIN ( ALL 96 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 128 # Datafusion - Expected - -111 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ Int64\(70\) AS col0" at position 0 and "Int64\(\-65\) \+ Int64\(\-46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 + 70 AS col0, - 65 + + - 46 col0 +---- +-111 +128 query I rowsort SELECT ALL 83 - + + 73 + + - 88 * 68 - - 68 @@ -50398,8 +50965,11 @@ SELECT 39 * - CAST ( 96 AS INTEGER ) + - - ( 20 ) * - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 522 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(27\) \* Int64\(20\) \+ Int64\(\-18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, ( 27 ) * 20 + + - 18 AS col2 +---- +1 +522 query I rowsort label-9603 SELECT ALL + COUNT ( * ) + - ( + ( - COUNT ( * ) ) ) + - COUNT ( DISTINCT 59 ) * - COUNT ( * ) AS col1 @@ -50445,8 +51015,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 53 AS col2, - 2 * 25 - - + COUNT ( * ) AS col2 +---- +-49 +53 query I rowsort SELECT - + 78 col0 @@ -50511,8 +51084,11 @@ SELECT + 20 * + - 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - -9903960 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col0" at position 0 and "Int64\(36\) \* Int64\(\-61\) \* Int64\(55\) \* Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 63 AS col0, 36 * - 61 * + 55 * 82 col0 +---- +-63 +-9903960 query I rowsort label-9625 SELECT - - 3 - - COUNT ( * ) @@ -50910,8 +51486,11 @@ SELECT ALL + 52 + - 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1791 # Datafusion - Expected - -6125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) \+ Int64\(\-40\) \* Int64\(43\) AS col1" at position 0 and "Int64\(93\) \* Int64\(\-65\) \+ Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 71 + - 40 * 43 AS col1, 93 * - 65 + + - 80 AS col1 +---- +-1791 +-6125 query I rowsort SELECT 69 + - 2 @@ -50998,8 +51577,11 @@ SELECT COUNT ( ALL 45 ) col1 # 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 "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 7 col1, + 3 col1 +---- +-7 +3 query I rowsort label-9718 SELECT COUNT ( * ) * 35 col2 @@ -51490,8 +52072,11 @@ SELECT 55 + + 41 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 81 AS col0, 20 AS col0 +---- +20 +81 query II rowsort SELECT 52 AS col0, + 69 @@ -51547,8 +52132,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 44 AS col2, + 87 col2 +---- +-44 +87 query I rowsort SELECT DISTINCT 89 - + - ( + - 40 ) + 84 AS col2 @@ -51924,8 +52512,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) / SUM ( + 42 ) AS col1, COALESCE ( + 35, + 84, + + 54 * + + 47 + - - 32 - 89 / 88 + - 33 ) AS col1 +---- +0 +35 query I rowsort label-9895 SELECT - 40 * COUNT ( * ) + + 42 + - 87 @@ -52288,8 +52879,11 @@ SELECT 64 / 82 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 45 AS col1, 74 AS col1 +---- +45 +74 query I rowsort label-9965 SELECT COUNT ( * ) + - + 98 + - MAX ( DISTINCT + 21 ) * ( 62 ) * + CAST ( NULL AS INTEGER ) @@ -52321,8 +52915,12 @@ SELECT ALL + 46 * + 3, 34 AS col2 # Datafusion - Expected - 10 # Datafusion - Expected - 18 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 1 and "Int64\(55\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 10, 18 AS col0, + 55 AS col0 +---- +10 +18 +55 query II rowsort SELECT ALL - 84 AS col2, + 16 AS col1 diff --git a/data/sqlite/random/expr/slt_good_71.slt b/data/sqlite/random/expr/slt_good_71.slt index d556bec..b6a5682 100644 --- a/data/sqlite/random/expr/slt_good_71.slt +++ b/data/sqlite/random/expr/slt_good_71.slt @@ -276,8 +276,11 @@ SELECT + ( + 0 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 AS col1, 23 AS col1 +---- +-82 +23 query I rowsort label-46 SELECT + + CAST ( + CASE + 69 WHEN + 0 THEN 42 / CAST ( NULL AS INTEGER ) * - - 73 ELSE NULL END AS INTEGER ) AS col2 @@ -661,8 +664,11 @@ SELECT - 83 * 8 * - - 93 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col2" at position 0 and "Int64\(\-48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 36 AS col2, - 48 AS col2 +---- +-48 +36 query I rowsort SELECT CASE 22 WHEN - 96 THEN NULL WHEN + + COALESCE ( + 58, + 12 * - + ( 9 ), - 94 ) - + + 92 THEN + - 0 END AS col2 @@ -1218,8 +1224,11 @@ SELECT 49 * - 29 * 97 + + 77 + 68 * SUM ( DISTINCT 85 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 209028 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \* Int64\(59\) \* Int64\(77\) \+ Int64\(50\) AS col2" at position 0 and "Int64\(\-22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 46 * + 59 * + + 77 + 50 AS col2, ( - 22 ) col2 +---- +-22 +209028 query I rowsort label-226 SELECT ALL COALESCE ( ( - - 60 ), + 28, + 54 - - 39 ) * 27 + + MIN ( ALL + COALESCE ( - - 10, - 86 + + + 91 * + 52 + 73 * + + CAST ( - 7 AS INTEGER ) ) ) * + ( - NULLIF ( COUNT ( * ), - 87 * + 14 + - 77 ) ) * - 9 + 94 AS col2 @@ -1244,8 +1253,11 @@ SELECT + 17 * 34 * - 14 * - MAX ( - 18 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1380 # Datafusion - Expected - 157 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \* Int64\(60\) AS col0" at position 0 and "Int64\(89\) \+ Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 23 * + 60 AS col0, 89 + 68 AS col0 +---- +-1380 +157 query I rowsort label-231 SELECT MIN ( DISTINCT 50 ) @@ -1987,8 +1999,12 @@ SELECT - + 53 * - 28 AS col0 # Datafusion - Expected - -16 # Datafusion - Expected - 2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) / Int64\(15\) \+ Int64\(\-15\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort SELECT - 23 / 15 + + - 15 AS col1, + 2 AS col1, - ( - - CAST ( NULL AS FLOAT8 ) ) AS col0 +---- +-16 +2 +NULL query II rowsort label-374 SELECT - 62 * 73 * - - 66 AS col0, SUM ( 62 ) * - 5 + + COUNT ( * ) @@ -1999,8 +2015,11 @@ SELECT - 62 * 73 * - - 66 AS col0, SUM ( 62 ) * - 5 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - -6093 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col1" at position 0 and "Int64\(38\) \* Int64\(\-81\) \+ Int64\(94\) \+ \(\- \(\- coalesce\(Int64\(9\), Int64\(70\)\)\)\) \* max\(Int64\(\-49\)\) \* Int64\(7\) \+ \(\- Int64\(22\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 91 AS col1, 38 * - 81 + 94 + - ( - + COALESCE ( 9, + 70 ) ) * + MAX ( ALL - 49 ) * 7 + - + 22 AS col1 +---- +-6093 +-91 query II rowsort SELECT + 8 AS col2, + 25 AS col0 @@ -2402,8 +2421,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3072 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-32\)\) \* Int64\(96\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 32 * + 96 col1, 34 AS col1 +---- +3072 +34 query II rowsort SELECT ALL + + 50 AS col2, 74 AS col1 @@ -2763,8 +2785,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( - 16 ) + + - NULLIF ( - 26, + COALESCE ( - 36, COUNT ( * ), - 45 ) ) * 17 AS col0, 15 AS col0 +---- +15 +443 query I rowsort label-518 SELECT ALL 7 + - + CAST ( NULL AS INTEGER ) * 21 AS col1 @@ -3226,8 +3251,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-93\) \* Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 32 AS col2, COUNT ( * ) + - 93 * + 91 AS col2 +---- +-8462 +32 query I rowsort label-607 SELECT + CAST ( + COALESCE ( - 68, - 38 * ( - - 89 ) + 83 - + 38 * + COALESCE ( + - 14, + - 51, + 19 + + COUNT ( * ) * + MAX ( - ( + 88 ) ) + + 41 ), 7 ) AS INTEGER ) @@ -3317,8 +3345,11 @@ SELECT DISTINCT 85 * - 54 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 66 AS col1, COUNT ( * ) AS col1 +---- +1 +66 query I rowsort label-624 SELECT ALL COUNT ( - - 93 ) @@ -3462,8 +3493,11 @@ SELECT SUM ( + - 85 ) + + - 69 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2927 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \* Int64\(\-64\) \+ 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 II valuesort SELECT - 47 * + - 64 + - 81 AS col2, + 9 AS col2 +---- +2927 +9 query I rowsort SELECT ALL + ( - COALESCE ( - + 75, + CASE + + 38 WHEN - 82 THEN + 11 + + - 10 * - 40 * COALESCE ( - 52, - 65, - 78 ) + - 30 WHEN - - NULLIF ( + - 15, + 34 * + + 70 ) THEN NULL END ) ) @@ -3682,8 +3716,11 @@ SELECT ALL - ( + 12 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - 2926 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(40\)\) AS col0" at position 0 and "Int64\(\-77\) \* Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 40 AS col0, - 77 * - 38 AS col0 +---- +-40 +2926 query I rowsort label-693 SELECT - + COUNT ( * ) * - COUNT ( * ) * - ( - 52 ) + 88 + + 6 + 48 AS col1 @@ -3849,8 +3886,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(\-94\)\)\) AS col2" at position 0 and "nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(6\) \- avg\(coalesce\(Int64\(\-58\), Int64\(\-35\), Int64\(68\) \* Int64\(\-63\)\)\) \* Int64\(66\) / Int64\(41\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT + MAX ( ALL - - 94 ) col2, NULLIF ( + COUNT ( * ), 6 - + AVG ( + COALESCE ( - 58, + - 35, 68 * - 63 ) ) * 66 / 41 ) * COUNT ( * ) col2 +---- +1 +94 query I rowsort SELECT DISTINCT - 56 * + + 12 + - + 63 + 31 col2 @@ -3914,8 +3954,11 @@ SELECT ALL - COALESCE ( - + 8, + - 4 * + MIN ( - - 81 ), + 32 * + 59 ) # 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 col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 AS col2, 4 AS col2 +---- +33 +4 query I rowsort SELECT + 59 - + 97 + - 23 * + 60 @@ -4125,8 +4168,11 @@ SELECT 90 + + - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col0" at position 0 and "\(\- sum\(DISTINCT Int64\(\-91\)\)\) \- Int64\(89\) \- Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 46 AS col0, - SUM ( DISTINCT - 91 ) - + + 89 - + + 82 AS col0 +---- +-46 +-80 query I rowsort SELECT 6 + 18 @@ -4203,8 +4249,11 @@ SELECT ALL + ( - + 29 ) * - - 22 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col0" at position 0 and "Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 39 AS col0, 32 AS col0 +---- +-39 +32 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -4294,8 +4343,11 @@ SELECT ALL SUM ( - - 85 ) AS col0, 48 + - 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1110 # Datafusion - Expected - 3276 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* Int64\(\-74\) AS col2" at position 0 and "Int64\(36\) \* Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 15 * ( - 74 ) AS col2, ( + 36 ) * + 91 AS col2 +---- +-1110 +3276 query I rowsort label-810 SELECT DISTINCT MIN ( ALL + 31 ) @@ -5181,8 +5233,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-160 +6 query II rowsort label-979 SELECT + 73 * + 78 - + - 73 - COUNT ( ALL - 37 ) + + CAST ( - + 86 AS INTEGER ) col2, + 16 AS col1 @@ -5422,8 +5477,11 @@ SELECT 76 - + + 7 + + + COUNT ( * ) * NULLIF ( + 4, + 41 ) * - - COUNT ( * ) * + # 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 col1" at position 0 and "Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 85 AS col1, 98 AS col1 +---- +85 +98 query I rowsort label-1025 SELECT COALESCE ( + 84, + MIN ( ALL 99 ) ) + + + 56 @@ -5605,8 +5663,11 @@ SELECT ALL - 72 * 67 AS col1 # 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 "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 II valuesort SELECT - 0 col0, + 9 AS col0 +---- +0 +9 query I rowsort label-1061 SELECT + 62 - - 80 + - COUNT ( * ) + - - 39 @@ -6564,8 +6625,11 @@ SELECT + + NULLIF ( 40, - AVG ( DISTINCT - 50 ) * + 4 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 AS col0, + 5 AS col0 +---- +46 +5 query I rowsort SELECT + COALESCE ( 90, 50 + - 62, 17 + - 77 * - 41 ) * 31 + + 64 @@ -7080,8 +7144,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 95 ) / 25 / 62 / - - 18 * - 64 AS col1, ( - - NULLIF ( 89, + 58 + ( 36 + COUNT ( * ) ) ) ) AS col1 +---- +0 +89 query II rowsort SELECT ALL + 60 + + 55, 34 AS col0 @@ -7464,8 +7531,11 @@ 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\(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\. +query II valuesort SELECT COALESCE ( + - 38, - - COUNT ( * ) * - 31 - + 95, - + 14 ) AS col1, + 95 + - + 37 AS col1 +---- +-38 +58 query I rowsort label-1420 SELECT ALL - 71 / - 77 @@ -7507,8 +7577,11 @@ SELECT + + NULLIF ( + + COALESCE ( 19, 51 * + NULLIF ( - 69, + - ( + 42 ) ) * + # Datafusion - Datafusion expected results: # Datafusion - Expected - -826 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \* Int64\(\-33\) \- nullif\(\(\- Int64\(65\)\), avg\(Int64\(13\)\)\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT 27 * - 33 - + NULLIF ( - + 65, AVG ( 13 ) ) AS col1, + ( 46 ) col1 +---- +-826 +46 query I rowsort SELECT + NULLIF ( 22, 5 ) @@ -7581,8 +7654,12 @@ 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\(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\. +query III valuesort SELECT ALL COUNT ( * ) * - COUNT ( * ) * + 39 * COUNT ( * ) + - MAX ( ALL + - 38 ) col1, 95 AS col1, 69 AS col1 +---- +-1 +69 +95 query I rowsort SELECT 76 * 40 * + + 0 - + + 66 + + 19 AS col2 @@ -7658,8 +7735,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-18\)\) AS col0" at position 0 and "Int64\(\-37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( - 18 ) AS col0, - 37 col0 +---- +-37 +1 query I rowsort SELECT + 9 + - - 40 @@ -8091,8 +8171,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-32\) AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - 32 AS INTEGER ) col1, COUNT ( * ) + + 15 AS col1 +---- +-32 +16 query I rowsort label-1537 SELECT CAST ( - 89 AS INTEGER ) / 58 + - CAST ( NULL AS INTEGER ) * + 11 + + COUNT ( * ) @@ -8191,8 +8274,11 @@ SELECT ALL COUNT ( * ) + - 63 + - 82 * + MAX ( 92 ) + + 11 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, + 95 col2 +---- +1 +95 query I rowsort label-1556 SELECT - NULLIF ( ( - 97 ), 80 * + COUNT ( * ) * - - 48 ) @@ -8769,8 +8855,11 @@ SELECT - - 78 + + 2 * + 66 * COUNT ( * ) - - 73 / 76, - 15 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 AS col0, 66 AS col0 +---- +66 +66 query I rowsort label-1667 SELECT - + 4 + - + COALESCE ( COUNT ( * ), 48 ) + + 94 * - MIN ( + 88 ) @@ -8785,8 +8874,11 @@ SELECT - + NULLIF ( + 53, + + 24 + - 29 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- Int64\(\-75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col1, + ( - - 75 ) AS col1 +---- +75 +NULL query I rowsort label-1670 SELECT ALL 95 + - 78 * - COUNT ( ALL - + 88 ) * 73 @@ -9319,8 +9411,11 @@ SELECT DISTINCT - 59 * + + 32 * 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(53\)\) \+ nullif\(Int64\(\-1\), Int64\(\-28\)\) \* Int64\(51\) \- Int64\(50\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( + 53 ) + NULLIF ( - 1, - 28 ) * 51 - + + 50 AS col1, 2 AS col1 +---- +-48 +2 query I rowsort label-1773 SELECT ALL - 41 * - COALESCE ( + COUNT ( * ), + 83 * - - 30 + + SUM ( DISTINCT 35 ), + 3 ) AS col1 @@ -9335,8 +9430,11 @@ SELECT - CAST ( - 80 AS INTEGER ) - - NULLIF ( - - 61, - 2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1152 # Datafusion - Expected - 961 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* Int64\(\-12\) AS col1" at position 0 and "Int64\(31\) \* Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 96 * - 12 AS col1, 31 * 31 AS col1 +---- +-1152 +961 query I rowsort SELECT ALL - 42 * + ( + - 45 ) * 49 + 85 AS col0 @@ -9381,8 +9479,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* \(\- Int64\(1\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(15\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 * - ( + 1 ) * - CAST ( NULL AS INTEGER ) + + 15 AS col1, + 67 AS col1 +---- +67 +NULL query I rowsort label-1785 SELECT + - 4 * CAST ( NULL AS INTEGER ) + - ( + COUNT ( * ) ) * 37 * - 48 @@ -10247,8 +10348,11 @@ SELECT - 44 + 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \+ Int64\(53\) AS col1" at position 0 and "Int64\(\-50\) / Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 18 + + 53 AS col1, - 50 / + 80 AS col1 +---- +0 +71 query I rowsort SELECT DISTINCT - 43 * - - 27 col2 @@ -10346,8 +10450,11 @@ SELECT DISTINCT - 7 * + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col1" at position 0 and "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 87 AS col1, + 41 AS col1 +---- +-87 +41 query I rowsort SELECT 90 * 72 @@ -10368,8 +10475,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 1 AS col1, + COALESCE ( 50, - + 68 + + COUNT ( * ), - MIN ( - + 34 ) + - 73 + - 22 ) - - COUNT ( * ) AS col1 +---- +1 +51 query I rowsort SELECT 15 * - 6 @@ -10923,8 +11033,11 @@ SELECT DISTINCT + 99 * 78 * 10 + - 43 + + 44 * + - COUNT ( + 59 ) * - ( - - 99 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) col2, + COUNT ( * ) col2 +---- +-1 +1 query I rowsort label-2079 SELECT 23 * + - 19 * + 94 * CAST ( NULL AS INTEGER ) + 88 AS col2 @@ -11207,8 +11320,11 @@ SELECT ALL - COALESCE ( NULLIF ( 99, 95 ), + 46 * 69 ) * + - 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - -127 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "Int64\(10\) \+ coalesce\(Int64\(\-93\), \(\- Int64\(\-88\)\) \* Int64\(29\) \* Int64\(\-82\)\) \+ \(\- Int64\(44\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 AS col1, ( + 10 ) + + COALESCE ( - 93, - - 88 * + 29 * + - 82 ) + - + ( + 44 ) col1 +---- +-127 +92 query I rowsort SELECT 54 + + - 43 @@ -11250,8 +11366,11 @@ SELECT ALL + - ( 13 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col1" at position 0 and "Int64\(54\) \+ Int64\(5\) \+ Int64\(\-5\) \* Int64\(16\) \+ Int64\(\-23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 12 AS col1, 54 + + 5 + + - 5 * + 16 + - 23 AS col1 +---- +-44 +12 query I rowsort SELECT DISTINCT 68 * + ( - 9 ) + 96 + - 23 * 18 @@ -11368,8 +11487,11 @@ SELECT ALL - 36 * - - 5 AS col0 # 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 "Int64\(83\) / Int64\(95\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 83 / 95 AS col0, 64 AS col0 +---- +0 +64 query I rowsort SELECT DISTINCT 89 + - - 73 @@ -12074,8 +12196,11 @@ SELECT - SUM ( ALL - 83 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 176 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(47\)\) AS col0" at position 0 and "Int64\(99\) \+ Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 47 AS col0, 99 + 77 AS col0 +---- +-47 +176 query I rowsort label-2300 SELECT ALL + - 35 / - + 41 @@ -12360,8 +12485,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "Int64\(\-42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 col2, - 42 AS col2 +---- +-42 +9 query I rowsort SELECT ALL - ( 34 ) AS col1 @@ -12483,8 +12611,11 @@ SELECT ALL COALESCE ( - 14, 93 ) - - 46 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "Int64\(72\) \- Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 AS col0, + 72 - + 54 AS col0 +---- +18 +84 query I rowsort label-2378 SELECT - COALESCE ( 41, - SUM ( ALL 71 ) ) @@ -12637,8 +12768,11 @@ SELECT - + 35 - - 12 + + 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 2731 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(66\)\) \+ Int64\(53\) AS col1" at position 0 and "Int64\(95\) / \(\- Int64\(\-19\)\) \+ Int64\(\-47\) \* Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 66 + + 53 col1, 95 / - - 19 + - 47 * - 58 col1 +---- +-13 +2731 query I rowsort SELECT 60 * + - 87 + + - 59 AS col2 @@ -12936,8 +13070,11 @@ SELECT ALL - - 19 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 1411 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) 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 II valuesort SELECT + + 51 AS col1, 83 * - - 17 AS col1 +---- +1411 +51 query I rowsort label-2465 SELECT - 2 + + 41 / + - 45 * + - ( + - COUNT ( * ) ) @@ -13513,8 +13650,11 @@ SELECT 91 * 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - -552 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ Int64\(\-62\) AS col2" at position 0 and "Int64\(12\) \* Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 42 + - 62 col2, 12 * - 46 AS col2 +---- +-20 +-552 query I rowsort SELECT DISTINCT - 87 + 62 AS col2 @@ -13524,8 +13664,11 @@ SELECT DISTINCT - 87 + 62 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) / Int64\(90\) AS col2" at position 0 and "\(\- count\(DISTINCT Int64\(71\)\)\) \* CAST\(\(\- Int64\(28\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 / + 90 AS col2, - COUNT ( DISTINCT 71 ) * + CAST ( - + 28 AS INTEGER ) AS col2 +---- +0 +28 query I rowsort SELECT 88 * + 57 AS col1 @@ -13865,8 +14008,11 @@ SELECT + MAX ( - 58 ) * + 4 # 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 "sum\(DISTINCT Int64\(\-98\)\) AS col1" at position 0 and "Int64\(81\) / Int64\(\-11\) \- CASE Int64\(60\) WHEN \(\- avg\(Int64\(77\)\)\) THEN NULL WHEN \(\- Int64\(86\)\) THEN Int64\(18\) END \* Int64\(\-28\) \* min\(Int64\(\-21\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + SUM ( DISTINCT - 98 ) col1, 81 / - 11 - + + CASE 60 WHEN - AVG ( + 77 ) THEN NULL WHEN - + 86 THEN 18 END * - 28 * + MIN ( ALL - 21 ) AS col1 +---- +-98 +NULL query I rowsort label-2642 SELECT MAX ( + 52 ) AS col1 @@ -13953,8 +14099,11 @@ SELECT - 91 + 48 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2990 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(46\)\) \* Int64\(\-65\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 46 * - 65 col2, COUNT ( * ) AS col2 +---- +1 +2990 query I rowsort label-2659 SELECT ALL - + 96 * COUNT ( * ) * 20 AS col1 @@ -13991,8 +14140,12 @@ NULL # Datafusion - Expected - -55 # Datafusion - Expected - -1 # Datafusion - Expected - 67 -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\) / Int64\(\-48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 55 AS col0, 58 / + - 48 AS col0, + + 1 * - - 68 + - COUNT ( * ) +---- +-1 +-55 +67 query I rowsort label-2666 SELECT ALL - ( - MAX ( DISTINCT - CASE + 68 WHEN - CASE 57 WHEN 65 THEN - + CASE 93 WHEN - 44 THEN 12 WHEN 17 + - 9 THEN + 87 END ELSE NULL END THEN + 90 * - - 13 * 31 * - 80 * + 9 + + - 99 + + - 43 / ( 12 ) * 42 * + 11 * + 35 * ( - 26 ) ELSE + 43 END ) ) @@ -14868,8 +15021,11 @@ SELECT DISTINCT - 90 - - 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - -20742471 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col2" at position 0 and "Int64\(59\) \* \(\- Int64\(\-56\)\) \* Int64\(\-86\) \* Int64\(73\) \+ Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 col2, + 59 * - - 56 * - 86 * + 73 + 41 AS col2 +---- +-20742471 +21 query I rowsort label-2838 SELECT ( - 37 ) + 67 - + 60 - + - CAST ( NULL AS INTEGER ) @@ -15586,8 +15742,11 @@ SELECT ALL - 89 * - 79 * + 22 + + + ( + - 80 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3689 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \+ Int64\(\-34\) \+ Int64\(39\) \* \(\- Int64\(\-95\)\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 18 + - 34 + + 39 * - - 95 col1, + 9 col1 +---- +3689 +9 query I rowsort label-2974 SELECT CAST ( - 14 AS INTEGER ) + 19 + - CAST ( - 46 AS INTEGER ) AS col0 @@ -16063,8 +16222,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 62 AS col1, 34 AS col1 +---- +-62 +34 query I rowsort SELECT ALL + 92 * + + 14 @@ -16185,8 +16347,11 @@ SELECT ALL NULLIF ( + 21, + 13 * - 15 * 65 + CAST ( NULL AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 15 AS col0, 30 AS col0 +---- +-15 +30 query I rowsort SELECT ALL 11 + - 19 @@ -16267,8 +16432,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * - 58 AS col2, 91 AS col2 +---- +-58 +91 query I rowsort label-3103 SELECT DISTINCT - ( + COUNT ( DISTINCT ( + 57 ) ) ) @@ -16864,8 +17032,11 @@ SELECT ALL + 7 + - 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-62\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 62 AS col1, - CAST ( NULL AS INTEGER ) AS col1 +---- +62 +NULL query I rowsort SELECT DISTINCT + 74 - 82 AS col0 @@ -17083,8 +17254,11 @@ SELECT DISTINCT + - 18 AS col0, + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col2, + 86 col2 +---- +1 +86 query I rowsort label-3257 SELECT ALL MAX ( ALL 14 ) * 41 + - 58 + + 50 * ( 91 ) + - 74 - - CAST ( - + 16 AS INTEGER ) + - 26 * 35 @@ -17254,8 +17428,11 @@ SELECT - CAST ( - - 13 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - -2695 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(58\) / \(\- Int64\(58\)\) AS col2" at position 0 and "Int64\(55\) \* Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 30 * + 58 / - + ( 58 ) AS col2, + 55 * - 49 AS col2 +---- +-2695 +-30 query I rowsort label-3290 SELECT MAX ( ALL 73 ) AS col0 @@ -17497,8 +17674,11 @@ SELECT - 83 / - 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 113 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \+ Int64\(91\) AS col2" at position 0 and "Int64\(\-73\) \+ Int64\(\-3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 22 + 91 col2, - 73 + - 3 AS col2 +---- +-76 +113 query I rowsort label-3336 SELECT DISTINCT 1 / - 38 - - + 33 @@ -17641,8 +17821,11 @@ SELECT + 76 + - 19 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16075980 # Datafusion - Expected - -192 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) \* Int64\(31\) \* Int64\(6\) \* \(\- Int64\(\-15\)\) \* Int64\(86\) 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 II valuesort SELECT ALL - 67 * 31 * + 6 * - - 15 * + 86 AS col1, - 96 * + + 2 AS col1 +---- +-16075980 +-192 query I rowsort label-3364 SELECT - - 62 * 16 * - 21 * COUNT ( * ) @@ -18708,8 +18891,11 @@ SELECT DISTINCT + NULLIF ( - 51, + 88 ) + - COUNT ( * ) AS col0, 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-2\)\) AS col0" at position 0 and "max\(Int64\(93\)\) \+ Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 2 AS col0, MAX ( 93 ) + - 43 AS col0 +---- +2 +50 query I rowsort label-3568 SELECT DISTINCT + 6 + - 18 / - MIN ( + + 52 ) @@ -18719,8 +18905,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(\-56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COALESCE ( + 90, + + 0, + + 5 * + 92 ) + + 8 AS col2, + 17 * COUNT ( * ) / - 56 AS col2 +---- +0 +98 query I rowsort label-3570 SELECT + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) @@ -18950,8 +19139,11 @@ SELECT ALL 30 * - - 3 * + - 68 / - COUNT ( ALL 96 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \+ \(\- Int64\(\-32\)\) AS col0" at position 0 and "Int64\(22\) / \(\- sum\(DISTINCT CAST\(Int64\(83\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 41 + + ( - - 32 ) AS col0, 22 / - + SUM ( DISTINCT + CAST ( + ( + 83 ) AS INTEGER ) ) AS col0 +---- +-9 +0 query III rowsort label-3614 SELECT + 53 * - 18 * 21 AS col2, 35 + - 30 * + 76 col1, NULLIF ( - 48, - COALESCE ( - + NULLIF ( + + 32, 71 * 87 + - - 50 ), COUNT ( * ) + + + 48 * + - 90 ) ) @@ -19272,8 +19464,11 @@ SELECT ALL + 45 - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) \* count\(DISTINCT nullif\(Int64\(7\), \(\- Int64\(\-61\)\)\)\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 91 * + + COUNT ( DISTINCT NULLIF ( 7, - - 61 ) ) AS col2, 99 AS col2 +---- +-91 +99 query I rowsort SELECT DISTINCT - ( - - 40 ) AS col0 @@ -19472,8 +19667,11 @@ 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\(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\. +query II valuesort SELECT ALL - CASE - + ( - 21 ) WHEN + COUNT ( * ) + - - 63 THEN + 43 END AS col1, + 67 + - + 84 col1 +---- +-17 +NULL query I rowsort label-3714 SELECT 11 * + + COUNT ( * ) * - 68 AS col1 @@ -19603,8 +19801,11 @@ SELECT ALL 30 / + 83 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) / Int64\(44\) \+ Int64\(92\) / min\(Int64\(73\)\) \- coalesce\(Int64\(\-65\), \(\- sum\(Int64\(25\)\)\)\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 14 / + 44 + + 92 / MIN ( + + 73 ) - + COALESCE ( - 65, - SUM ( 25 ) ) AS col0, 91 AS col0 +---- +66 +91 query I rowsort label-3738 SELECT + 13 + + 73 - ( - 14 ) + - MAX ( ALL + + 93 ) * 40 + 35 col0 @@ -19921,8 +20122,11 @@ SELECT + 46 * - 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - -944 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* Int64\(\-63\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "coalesce\(\(\- Int64\(\-45\)\), Int64\(\-83\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 15 * - 63 + + COUNT ( * ) col1, + COALESCE ( - - 45, + ( - 83 ) ) col1 +---- +-944 +45 query I rowsort label-3800 SELECT + MIN ( ALL + 45 ) - - + COUNT ( * ) col2 @@ -19995,8 +20199,11 @@ SELECT ALL - COUNT ( * ) + + + 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ Int64\(6\) AS col1" at position 0 and "Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 56 + + + 6 AS col1, 24 col1 +---- +24 +62 query I rowsort SELECT ALL + ( - 24 ) + - 53 + 19 @@ -20610,8 +20817,11 @@ SELECT ALL - 47 + 38 * - 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* Int64\(\-3\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 * + - 3 AS col2, 41 AS col2 +---- +-87 +41 query I rowsort label-3932 SELECT + MIN ( DISTINCT + 59 ) AS col0 @@ -20657,8 +20867,12 @@ 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\(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\. +query III valuesort SELECT ALL + 92 - + + COUNT ( * ) * + 40 AS col0, 10 / 5 + + 90 AS col2, 0 AS col0 +---- +0 +52 +92 query II rowsort label-3941 SELECT DISTINCT - NULLIF ( - 93, - ( 20 ) ) * 10 + + - 21, ( + + CAST ( + 19 AS INTEGER ) ) AS col1 @@ -20887,8 +21101,11 @@ SELECT DISTINCT - 89 + - - 74 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 34 + CAST ( NULL AS INTEGER ) AS col0, 68 AS col0 +---- +68 +NULL query I rowsort SELECT + 80 * 28 + - 0 AS col2 @@ -21836,8 +22053,11 @@ SELECT 4 + 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 AS col1, 87 AS col1 +---- +85 +87 query I rowsort label-4167 SELECT DISTINCT + COUNT ( * ) * - 44 * + 8 @@ -21873,8 +22093,11 @@ SELECT ALL 26 * 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \- Int64\(1\) / Int64\(33\) \* Int64\(\-77\) / Int64\(\-75\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 77 - 1 / 33 * - 77 / - 75 AS col2, 11 AS col2 +---- +11 +77 query I rowsort label-4174 SELECT NULLIF ( - 76, + - 54 + + NULLIF ( 84, 9 - COUNT ( * ) + - 63 - + 81 * + 32 * COUNT ( * ) * + - 80 + 0 + 93 - + 95 + + 33 * - 37 / 4 * + COALESCE ( - - 81, - + ( - 92 ) * - 25 + - 71 * - 36 * + COALESCE ( 71, + - 90 * COUNT ( ALL + 34 ), + + CAST ( + 8 AS INTEGER ) ) ) ) ) @@ -22060,8 +22283,11 @@ SELECT DISTINCT + 39 * - - COUNT ( * ) - - + 5 * + COUNT ( * ) / - ( + + COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col1" at position 0 and "Int64\(15\) \+ Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 24 AS col1, 15 + 18 AS col1 +---- +-24 +33 query I rowsort SELECT - - 68 * - + 33 AS col2 @@ -22293,8 +22519,11 @@ SELECT - ( + 11 ) * 88 + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "min\(Int64\(60\)\) \- Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 61 + + + COUNT ( * ) AS col1, MIN ( 60 ) - 68 AS col1 +---- +-60 +-8 query I rowsort SELECT DISTINCT + - 88 col2 @@ -22391,8 +22620,11 @@ SELECT 50, 44 + 57 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- CAST\(NULL AS Int32\) \+ Int64\(32\) AS col2" at position 0 and "Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) - + CAST ( NULL AS INTEGER ) + + 32 AS col2, 83 col2 +---- +83 +NULL query I rowsort label-4271 SELECT ALL 57 / 48 * NULLIF ( - 68, - - 29 ) AS col1 @@ -22470,8 +22702,11 @@ SELECT 7 - + COUNT ( * ) col2 # 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 "\(\- max\(\(\- coalesce\(Int64\(58\), Int64\(\-96\)\)\)\)\) / Int64\(73\) AS col2" at position 0 and "Int64\(\-84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( - COALESCE ( + 58, + + ( - 96 ) ) ) / 73 AS col2, - 84 AS col2 +---- +-84 +0 query I rowsort SELECT ALL - + 39 + - 93 @@ -23907,8 +24142,11 @@ SELECT - 40 + + 63 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3520 # Datafusion - Expected - 8927 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* Int64\(\-44\) AS col2" at position 0 and "Int64\(96\) \* \(\- count\(Int64\(99\)\)\) \* \(\- max\(Int64\(93\)\)\) \+ Int64\(\-81\) \+ Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 80 * - 44 AS col2, + 96 * - COUNT ( ALL + 99 ) * - MAX ( ALL 93 ) + - 81 + + 80 AS col2 +---- +3520 +8927 query I rowsort label-4567 SELECT COUNT ( * ) * 38 col0 @@ -24224,8 +24462,11 @@ SELECT DISTINCT + 8 * + 52 * - 16 * 55 AS col0, - COALESCE ( - + 67, - 44 ) AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(92\), nullif\(CAST\(NULL AS Int32\), Int64\(56\) \* Int64\(\-78\)\)\) AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT NULLIF ( + 92, + NULLIF ( CAST ( NULL AS INTEGER ), + 56 * - 78 ) ) AS col2, + 77 AS col2 +---- +77 +92 query I rowsort label-4627 SELECT ALL CASE 79 WHEN + 27 THEN 40 + COUNT ( * ) * - 52 END @@ -24391,8 +24632,11 @@ SELECT - CAST ( + + AVG ( - 38 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-11\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / \(\- Int64\(19\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) - - 11 AS col1, CAST ( NULL AS INTEGER ) / - + 19 AS col1 +---- +12 +NULL query I rowsort label-4659 SELECT ( 62 ) / + 72 @@ -24525,8 +24769,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 43 + + + 66 / 7 + 1 / - COUNT ( * ) AS col1, ( 73 ) AS col1 +---- +51 +73 query I rowsort SELECT + COALESCE ( + 94, + + 53 ) * - + 43 - - 46 * 61 AS col0 @@ -24699,8 +24946,11 @@ SELECT 78 + ( - 82 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 2241 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col0" at position 0 and "Int64\(64\) \* Int64\(35\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 75 AS col0, 64 * + 35 + + COUNT ( * ) AS col0 +---- +2241 +75 query I rowsort SELECT DISTINCT - 76 + 46 * - - 3 AS col0 @@ -24762,8 +25012,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - -518 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col2" at position 0 and "Int64\(9\) \* Int64\(\-55\) \+ Int64\(25\) \+ \(\- Int64\(48\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 28 AS col2, 9 * - 55 + + 25 + - + ( 48 ) AS col2 +---- +-28 +-518 query I rowsort SELECT ALL - + 88 * + 63 + + 19 @@ -24773,8 +25026,11 @@ SELECT ALL - + 88 * + 63 + + 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 6 AS col0, 25 AS col0 +---- +25 +6 query I rowsort SELECT - 24 + + 33 + - 64 AS col1 @@ -24921,8 +25177,11 @@ SELECT - 28 + - 82 + - COUNT ( - 95 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -46410 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \+ Int64\(\-69\) \* Int64\(42\) \* CAST\(\(\- Int64\(\-16\)\) AS Int32\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 42 + - 69 * + + 42 * CAST ( - - 16 AS INTEGER ) AS col1, 5 AS col1 +---- +-46410 +5 query I rowsort label-4760 SELECT DISTINCT SUM ( - + 34 ) col1 @@ -25356,8 +25615,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1070880 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) \* Int64\(\-97\) \* \(\- CAST\(coalesce\(Int64\(30\), Int64\(87\)\) AS Int32\)\) \* Int64\(4\) AS col0" at position 0 and "Int64\(\-24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 * - 97 * - CAST ( + ( COALESCE ( 30, + 87 ) ) AS INTEGER ) * + 4 AS col0, - 24 AS col0 +---- +-1070880 +-24 query I rowsort label-4844 SELECT ALL + COUNT ( + - 51 ) AS col0 @@ -25649,8 +25911,11 @@ SELECT 97 * - COUNT ( * ) * - - NULLIF ( + + 64, CASE - + 65 WHEN + COUNT ( - 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1066 # Datafusion - Expected - -518 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \+ Int64\(\-77\) \* Int64\(20\) \* Int64\(55\) / Int64\(79\) AS col0" at position 0 and "Int64\(74\) \* \(\- Int64\(7\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 + - 77 * 20 * 55 / + 79 AS col0, 74 * - ( 7 ) AS col0 +---- +-1066 +-518 query I rowsort label-4900 SELECT ALL + 86 / - 27 AS col1 @@ -25717,8 +25982,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-14\)\) AS col0" at position 0 and "Int64\(84\) \- Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( ALL - 14 ) AS col0, 84 - + 58 AS col0 +---- +-14 +26 query I rowsort SELECT ALL - 32 + ( 93 ) + + 36 * + 76 * + 58 @@ -25952,8 +26220,11 @@ SELECT + COALESCE ( + 12, + ( + - 35 ) + + + 93 + + + 34, - - 22 * 68 ) * + - 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \+ Int64\(55\) AS col1" at position 0 and "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 6 + + 55 AS col1, 41 AS col1 +---- +41 +49 query I rowsort label-4958 SELECT + 17 + 75 + + 42 / - + 86 * + - 20 @@ -26068,8 +26339,11 @@ SELECT DISTINCT 16 / 68 * 56 - ( + + 57 ) + + 60 * + - 38 / - NULLIF ( + COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 2706 # Datafusion - Expected - -4556 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \* Int64\(\-66\) AS col2" at position 0 and "Int64\(68\) \* Int64\(\-67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 41 * - 66 AS col2, 68 * - 67 AS col2 +---- +-4556 +2706 query I rowsort label-4981 SELECT - + 60 + CAST ( NULL AS INTEGER ) @@ -26198,8 +26472,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 0 AS col1, + COUNT ( * ) AS col1 +---- +0 +1 query I rowsort label-5005 SELECT ALL COALESCE ( 59, - 41 ) - - COUNT ( * ) + - 74 * - - 67 AS col0 @@ -26252,8 +26529,11 @@ SELECT DISTINCT 60 * - 93 + + + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54659 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \- CAST\(\(\- Int64\(23\)\) AS Int32\) \* \(\- Int64\(25\)\) \* Int64\(95\) \+ nullif\(Int64\(64\), Int64\(12\)\) \- \(\- Int64\(\-16\)\) \- Int64\(83\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(96\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) - + CAST ( + - ( + 23 ) AS INTEGER ) * - + 25 * + 95 + + NULLIF ( + 64, 12 ) - + ( + - ( - 16 ) ) - + 83 / ( COUNT ( * ) ) AS col0, 96 * COUNT ( * ) AS col0 +---- +-54659 +96 query I rowsort SELECT DISTINCT 18 * + + 56 AS col0 @@ -26431,8 +26711,11 @@ SELECT ALL + COUNT ( * ) * - + COUNT ( * ) * - 11 * - + 36 / + 3 + + 55 AS col1, # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -33957 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(63\) \* \(\- Int64\(7\)\) \* \(\- nullif\(Int64\(\-77\), Int64\(\-58\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + + COUNT ( * ) ) col2, 63 * - + 7 * - + NULLIF ( - 77, - 58 ) AS col2 +---- +-33957 +1 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -27294,8 +27577,11 @@ SELECT - 61 * + - COALESCE ( - 34, - 38 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 126 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col2" at position 0 and "Int64\(83\) \+ \(\- Int64\(\-43\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 94 AS col2, 83 + - - 43 AS col2 +---- +-94 +126 query I rowsort label-5213 SELECT ALL - + 20 * - MAX ( - - 62 ) AS col1 @@ -27401,8 +27687,11 @@ SELECT + COALESCE ( - 96, + 50 + 89, 29, 18 * + ( - 89 ) - - 43 - - 62 + + 38 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 352 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* Int64\(4\) AS col1" at position 0 and "Int64\(11\) / Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 88 * + 4 AS col1, 11 / 44 AS col1 +---- +0 +352 query I rowsort label-5233 SELECT ALL 64 + 47 + 99 / 1 @@ -27427,8 +27716,11 @@ SELECT ALL - NULLIF ( + - 18, + - COUNT ( * ) * 74 ) + ( + 28 ) + + 63 * 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(\-57\)\)\) AS col0" at position 0 and "Int64\(\-55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( - - 57 ) AS col0, ( - 55 ) AS col0 +---- +-55 +57 query I rowsort label-5238 SELECT ALL ( 78 ) / + - 12 + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - - 22 / 71 @@ -27553,8 +27845,11 @@ SELECT DISTINCT - - ( COUNT ( * ) ) + - 40 + - + SUM ( + 19 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2784 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \+ Int64\(\-51\) \* Int64\(\-55\) AS col0" at position 0 and "Int64\(26\) \* \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) / count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) / Int64\(5\) \- Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 21 + - 51 * - 55 AS col0, + 26 * - CAST ( - COUNT ( * ) AS INTEGER ) / + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) / + 5 - - 43 AS col0 +---- +2784 +NULL query I rowsort label-5262 SELECT ALL + 84 + - ( - - 95 ) * 0 * - COUNT ( * ) @@ -27627,8 +27922,11 @@ SELECT ALL - 85 + COUNT ( * ) * ( - COUNT ( * ) ) + - ( 63 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 30 AS col2, + 56 col2 +---- +-30 +56 query I rowsort label-5275 SELECT ALL COUNT ( * ) * 22 * 82 @@ -27670,8 +27968,11 @@ SELECT DISTINCT - - 21 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 95 AS col2, + 91 AS col2 +---- +-95 +91 query I rowsort label-5283 SELECT ALL + 32 * - 13 * - 54 + MAX ( + + 65 ) AS col0 @@ -27696,8 +27997,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 AS col1, COUNT ( * ) + + 41 AS col1 +---- +42 +48 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -27710,8 +28014,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(69\) \+ Int64\(\-95\) \+ nullif\(Int64\(\-66\), Int64\(43\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, + 69 + - 95 + NULLIF ( - 66, + 43 ) col1 +---- +-92 +1 query I rowsort label-5290 SELECT ALL - 69 * COUNT ( * ) AS col1 @@ -27819,8 +28126,11 @@ SELECT ALL - 8 * + 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - -2292 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(33\) \* Int64\(\-65\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-77\) \+ Int64\(\-71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 53 - + COUNT ( * ) AS col0, 33 * - 65 + + COUNT ( * ) + - 77 + - 71 AS col0 +---- +-2292 +52 query I rowsort SELECT 65 + + + CASE 52 WHEN + 68 THEN + 59 * - 20 + - 68 * + + 3 ELSE NULL END + - 11 @@ -27885,8 +28195,11 @@ SELECT DISTINCT - 59 * + - 2 + - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE \(\- CAST\(NULL AS Int32\)\) WHEN min\(DISTINCT Int64\(36\)\) THEN NULL WHEN Int64\(47\) THEN \(\- Int64\(22\)\) END\) \+ Int64\(\-74\) AS col2" at position 0 and "Int64\(35\) \+ Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - CASE - ( CAST ( NULL AS INTEGER ) ) WHEN + MIN ( DISTINCT + 36 ) THEN NULL WHEN + + 47 THEN - + 22 END ) + - 74 AS col2, ( + 35 ) + + + 93 col2 +---- +128 +NULL query I rowsort label-5323 SELECT 49 * MIN ( ALL + 11 ) / + - ( + 4 ) @@ -28657,8 +28970,11 @@ SELECT - NULLIF ( - - 44, + 17 ) + - 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22910 # Datafusion - Expected - 128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(29\)\) \* \(\- max\(DISTINCT \(\- CAST\(Int64\(79\) AS Int32\)\)\)\) \* Int64\(10\) AS col1" at position 0 and "Int64\(72\) \+ \(\- Int64\(\-56\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 29 ) * + - MAX ( DISTINCT - + CAST ( 79 AS INTEGER ) ) * 10 col1, + 72 + - - 56 AS col1 +---- +-22910 +128 query I rowsort label-5469 SELECT + - COUNT ( * ) / + + 35 @@ -28747,8 +29063,12 @@ 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\(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\. +query III valuesort 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 +---- +88 +880 +91 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -29009,8 +29329,11 @@ SELECT COUNT ( * ) * + + 68 * NULLIF ( 85, + 84 ), 24 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 84 AS col0, 90 AS col0 +---- +84 +90 query I rowsort SELECT 9 * + 46 * - 86 @@ -29025,8 +29348,11 @@ SELECT - 60 + 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(\-84\)\)\)\) \* Int64\(\-44\) \+ Int64\(9\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - - COUNT ( - 84 ) ) * - 44 + + 9 col2, 34 AS col2 +---- +-35 +34 query I rowsort label-5539 SELECT DISTINCT - COUNT ( 29 ) * 23 @@ -29159,8 +29485,11 @@ SELECT DISTINCT - ( 77 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "\(\- Int64\(\-72\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 AS col1, - ( + - 72 ) AS col1 +---- +22 +72 query II rowsort SELECT + 89 AS col0, + 11 @@ -29176,8 +29505,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(70\) \+ Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 3 AS col0, + COUNT ( * ) / + 70 + 38 AS col0 +---- +-3 +38 query I rowsort label-5567 SELECT CAST ( + - 98 AS INTEGER ) @@ -29727,8 +30059,11 @@ SELECT 22 / + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ Int64\(53\) \+ Int64\(\-51\) \- Int64\(54\) 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 II valuesort SELECT 29 + + ( + 53 ) + - 51 - + + 54 AS col1, MIN ( ALL - 96 ) AS col1 +---- +-23 +-96 query II rowsort SELECT - 58, 49 AS col0 @@ -29739,8 +30074,11 @@ 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\(Int64\(1\)\) AS count\(\*\) END ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +62 +NULL query I rowsort label-5673 SELECT 28 + + + COUNT ( 18 ) * + 80 @@ -29887,14 +30225,20 @@ SELECT ALL COUNT ( * ) * + COUNT ( - 88 ) # 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\(10\) \+ \(\- CASE Int64\(\-47\) WHEN Int64\(\-33\) THEN Int64\(\-13\) WHEN Int64\(42\) \* Int64\(\-2\) / Int64\(23\) \+ Int64\(\-27\) THEN Int64\(\-31\) ELSE NULL 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 II valuesort SELECT ALL 10 + - CASE - 47 WHEN - 33 THEN - 13 WHEN 42 * ( - 2 ) / 23 + + - 27 THEN - 31 ELSE NULL END AS col2, 25 AS col2 +---- +25 +NULL # 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 "Int64\(11\) / Int64\(\-97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 57 AS col0, 11 / - 97 AS col0 +---- +0 +57 query II rowsort label-5703 SELECT - COUNT ( CAST ( + 20 AS FLOAT8 ) ) / - + 66 col1, CAST ( NULL AS INTEGER ) @@ -30006,8 +30350,11 @@ SELECT ALL - 36 / + COUNT ( * ) + + 43 - ( - 0 ) * + 59, + 95 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 3657 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(53\) \* Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, 53 * + 69 AS col1 +---- +1 +3657 query II rowsort label-5724 SELECT 18 AS col2, - 3 * - ( 64 ) * + COUNT ( ALL - - 89 ) AS col1 @@ -30146,8 +30493,11 @@ SELECT - COUNT ( ALL NULLIF ( - 19, - 45 ) ) - + + COUNT ( * ), - 56 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1548 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \* Int64\(36\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 43 * 36 AS col0, + 42 AS col0 +---- +-1548 +42 query I rowsort label-5751 SELECT + + COUNT ( * ) + 15 AS col0 @@ -30262,8 +30612,11 @@ SELECT 22 - + COUNT ( 73 ) * + 52 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 AS col2, + 55 AS col2 +---- +46 +55 query I rowsort label-5773 SELECT ALL - COUNT ( DISTINCT 80 ) AS col2 @@ -31059,8 +31412,11 @@ SELECT ALL 77 * + ( - - 72 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7644 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* Int64\(84\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + 91 ) * + 84 AS col0, COUNT ( * ) AS col0 +---- +1 +7644 query I rowsort SELECT + 55 - 27 AS col2 @@ -32108,8 +32464,11 @@ SELECT + 26 AS col2, 71 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - COUNT ( * ) AS col1, + COUNT ( * ) AS col1 +---- +-1 +1 query I rowsort label-6130 SELECT DISTINCT - 4 / + + 12 + ( - 5 ) @@ -32150,8 +32509,11 @@ SELECT - 62 * + - 15 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 3690 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \- Int64\(18\) AS col2" at position 0 and "Int64\(41\) \* \(\- sum\(DISTINCT Int64\(\-90\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 26 - 18 col2, + 41 * - + SUM ( DISTINCT - 90 ) col2 +---- +3690 +8 query I rowsort SELECT ALL - 54 * + + 72 @@ -32333,8 +32695,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - -5343 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col2" at position 0 and "Int64\(83\) \* Int64\(\-64\) \+ nullif\(Int64\(\-31\), \(\- coalesce\(\(\- max\(DISTINCT Int64\(56\)\)\), Int64\(54\) \+ Int64\(46\), Int64\(29\) \* Int64\(55\)\)\) \* Int64\(24\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 97 AS col2, 83 * + - 64 + + NULLIF ( - 31, - COALESCE ( + ( - MAX ( DISTINCT 56 ) ), 54 + 46, 29 * 55 ) * 24 ) AS col2 +---- +-5343 +97 query I rowsort SELECT ALL - ( - 74 ) AS col1 @@ -32487,8 +32852,11 @@ SELECT - + 27 * + - 70 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) col0, CAST ( NULL AS INTEGER ) AS col0 +---- +-1 +NULL query I rowsort SELECT ALL - 57 - + - 26 + + 24 @@ -32670,8 +33038,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(83\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 AS col0, NULLIF ( - 59, + CASE - 9 WHEN - 18 THEN + COUNT ( * ) * + 83 END ) AS col0 +---- +-59 +24 query II rowsort SELECT ALL 73 col1, 56 AS col2 @@ -33842,8 +34213,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 76 AS col0, + 85 col0 +---- +-76 +85 query I rowsort label-6460 SELECT ALL - CAST ( - CAST ( 83 AS FLOAT8 ) AS INTEGER ) * CAST ( + 25 AS INTEGER ) * + 64 + + + 29 @@ -34049,8 +34423,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 35 * + - 22 AS col1, COUNT ( * ) + + 18 AS col1 +---- +19 +770 query I rowsort label-6499 SELECT - 45 * - COUNT ( * ) @@ -34336,8 +34713,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, 18 * + + 4 AS col2 +---- +-1 +72 query I rowsort SELECT DISTINCT - 67 - + + 14 AS col0 @@ -34586,8 +34966,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -115 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \+ Int64\(\-35\) AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 80 + - 35 AS col1, + ( 78 ) AS col1 +---- +-115 +78 query I rowsort label-6599 SELECT - 85 * - 8 * + COUNT ( * ) + - COALESCE ( - ( - COALESCE ( - + 29, + CAST ( + COUNT ( * ) AS INTEGER ), + + 33 * - 78 + + 59 + + 72 * - 20 + - 82 ) ), + 9, - 84, - 76 * + 87 + 41, + 49 ) + 63 * ( - 57 + NULLIF ( + CAST ( NULL AS INTEGER ), 92 * + COALESCE ( + ( 85 ), 68, 68 ) ) ) * - 99 AS col1 @@ -35403,8 +35786,11 @@ 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\(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\. +query II valuesort SELECT ALL 26 + + - COUNT ( * ) - 26 + 93 + - 47 + + 88 * 32 AS col0, 8 col0 +---- +2861 +8 query I rowsort SELECT + 49 + + - 96 * - - 27 + + 69 @@ -35675,8 +36061,11 @@ SELECT ALL 43 * + 26 * + - 14 * COALESCE ( - COUNT ( * ), 44 * - 96 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col2" at position 0 and "Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 40 AS col2, - 30 col2 +---- +-30 +-40 query I rowsort SELECT + - NULLIF ( - 18, + 9 ) @@ -35773,8 +36162,11 @@ SELECT 27 + - 44 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "sum\(\(\- Int64\(97\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 50 + + + CAST ( NULL AS INTEGER ) AS col0, SUM ( - + 97 ) AS col0 +---- +-97 +NULL query I rowsort label-6823 SELECT - 9 * + SUM ( DISTINCT + + 39 ) + + + COALESCE ( + 14, - 54, - 50 ) AS col2 @@ -36091,8 +36483,11 @@ SELECT DISTINCT + 69 / CASE + 85 WHEN + 55 THEN NULL WHEN + 79 * - 34 THEN + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) AS col1" at position 0 and "Int64\(\-51\) \- Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 13 AS col1, - 51 - - 1 AS col1 +---- +-13 +-50 query I rowsort label-6884 SELECT 52 + ( 79 ) + - 47 * - - CAST ( NULL AS INTEGER ) AS col2 @@ -36222,8 +36617,11 @@ SELECT ALL + 23, + COALESCE ( + 10, - - 53 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(8\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(9\) \- Int64\(96\) / Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col1, 8 * + - CAST ( NULL AS INTEGER ) + 9 - + 96 / + + 45 col1 +---- +1 +NULL query I rowsort label-6907 SELECT 97 * - - COUNT ( * ) AS col0 @@ -36330,8 +36728,11 @@ SELECT ALL + 92 + + 63 + 57 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ Int64\(\-22\) AS col2" at position 0 and "Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 + - 22 AS col2, ( 72 ) AS col2 +---- +20 +72 query I rowsort label-6927 SELECT DISTINCT 42 * - COUNT ( * ) * + COUNT ( * ) AS col1 @@ -36487,8 +36888,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 134 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \+ \(\- Int64\(49\)\) \+ Int64\(61\) AS col0" at position 0 and "Int64\(41\) \+ \(\- sum\(Int64\(\-93\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 28 + - + 49 + 61 AS col0, + 41 + - SUM ( - 93 ) AS col0 +---- +-16 +134 query I rowsort SELECT - + 10 * + 18 @@ -36886,8 +37290,11 @@ SELECT ALL ( + - 49 ) * 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 AS col1, 85 col1 +---- +14 +85 query I rowsort label-7033 SELECT 35 * MAX ( 78 ) AS col0 @@ -36903,8 +37310,11 @@ SELECT 77 + + 14 AS col0, COUNT ( * ) / + + MAX ( + 29 ) + - 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 AS col1, 78 AS col1 +---- +-82 +78 query I rowsort label-7036 SELECT 96 + + CAST ( - 3 AS INTEGER ) * - 27 - - CASE + COUNT ( * ) WHEN - 59 THEN + 29 * + COUNT ( * ) WHEN + 72 THEN NULL ELSE NULL END AS col1 @@ -37505,8 +37915,11 @@ SELECT 30 - + 13, - 6 * + 57 AS col0 # 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 col2" at position 0 and "\(\- nullif\(Int64\(25\), count\(nullif\(Int64\(94\), Int64\(36\)\)\) \* Int64\(21\)\)\) / Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + + 77 ) AS col2, - NULLIF ( 25, + COUNT ( + NULLIF ( 94, 36 ) ) * + 21 ) / + 34 col2 +---- +0 +77 query I rowsort label-7149 SELECT 33 + + - COALESCE ( - 83, COUNT ( * ) - + - 17, - 64 ) @@ -37564,8 +37977,11 @@ 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\)\) 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\. +query II valuesort SELECT + + 97 / COUNT ( * ) * + 1 + - - 29 AS col1, 44 * + ( + 47 ) * + 84 AS col1 +---- +126 +173712 query I rowsort label-7160 SELECT DISTINCT - - COUNT ( + + 12 ) @@ -37575,14 +37991,20 @@ SELECT DISTINCT - - COUNT ( + + 12 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col0" at position 0 and "Int64\(\-6\) \+ CAST\(Int64\(98\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 32 AS col0, - 6 + CAST ( 98 AS INTEGER ) AS col0 +---- +-32 +92 # 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 "Int64\(\-3\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 3 AS col1, 66 AS col1 +---- +-3 +66 query I rowsort label-7163 SELECT DISTINCT + COUNT ( * ) * - - 62 AS col2 @@ -37673,8 +38095,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-40\) \* Int64\(\-8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 33 AS col1, - COUNT ( * ) * - 40 * - 8 AS col1 +---- +-320 +33 query I rowsort SELECT - + 16 - 38 @@ -37731,8 +38156,12 @@ NULL # Datafusion - Expected - -186 # Datafusion - Expected - 20 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* \(\- Int64\(62\)\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 3 * - + 62 AS col2, ( 20 ) AS col2, 66 AS col0 +---- +-186 +20 +66 query I rowsort SELECT NULLIF ( + - ( ( - - 53 ) ), + + 23 + - 11 + - + 27 * + 79 ) @@ -38069,8 +38498,11 @@ SELECT ALL + 80 / - 90 * + + 32 * - 58 AS col1, 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \+ Int64\(87\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 26 + + ( 87 ) AS col2, + 98 AS col2 +---- +61 +98 query I rowsort label-7256 SELECT ALL - MIN ( DISTINCT + + 38 ) AS col1 @@ -38583,8 +39015,11 @@ SELECT DISTINCT - 49 * 49 * + 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 392 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "Int64\(7\) \* Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 71 col2, 7 * + + 56 AS col2 +---- +392 +71 query I rowsort SELECT 95 + + + 0 AS col1 @@ -38636,8 +39071,11 @@ SELECT - 50 / + NULLIF ( - 22, - ( - 21 ) ) + ( 98 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col0" at position 0 and "Int64\(\-20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 AS col0, - 20 AS col0 +---- +-20 +71 query II rowsort SELECT ALL - 94 AS col0, 16 @@ -38871,8 +39309,11 @@ SELECT ALL - 50 - + + 96 + COUNT ( * ) * + 79 / + + 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2496 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \* \(\- nullif\(Int64\(64\), Int64\(10\) \* Int64\(52\)\)\) AS col2" at position 0 and "\(\- coalesce\(Int64\(\-36\), Int64\(76\), Int64\(82\), Int64\(\-81\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 39 * - NULLIF ( + 64, + 10 * + 52 ) AS col2, - COALESCE ( + ( - 36 ), + 76, 82, - 81 ) AS col2 +---- +2496 +36 query I rowsort SELECT + + 70 + + 58 * - + 2 col1 @@ -38914,8 +39355,11 @@ SELECT - 15, - 74 + + 31 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(68\) THEN coalesce\(Int64\(\-51\), \(\- CAST\(NULL AS Int32\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-26\)\) / \(\- Int64\(86\)\) ELSE NULL END / min\(Int64\(37\)\) AS col0" at position 0 and "min\(Int64\(\-93\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-93 +NULL query I rowsort SELECT + 56 + 42 * + 10 + - 95 @@ -39061,8 +39505,11 @@ SELECT - NULLIF ( - COUNT ( * ), - - 9 ) # 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\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 58 AS col2, + 89 AS col2 +---- +-58 +89 query I rowsort label-7443 SELECT ALL + NULLIF ( + - CAST ( NULL AS INTEGER ), + ( 97 ) + 91 ) @@ -39093,8 +39540,11 @@ SELECT ALL ( + 3 ) * - NULLIF ( - - 27, - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2976 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* Int64\(93\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 * + 93 col0, 24 col0 +---- +24 +2976 query I rowsort label-7449 SELECT - NULLIF ( - 87, - 83 * COALESCE ( - 11, + NULLIF ( + 11, + 66 * - COUNT ( * ) ) / NULLIF ( - + 46, - + 39 ) * + - 7 * 33 ) * + - 30 + - - 96 ) @@ -39501,8 +39951,11 @@ SELECT - COUNT ( ALL - + CAST ( - ( 65 ) AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 18 AS col2, 58 AS col2 +---- +18 +58 query I rowsort SELECT ALL - + 68 * - 61 @@ -39961,8 +40414,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE Int64\(62\) WHEN Int64\(33\) \* Int64\(\-54\) THEN NULL WHEN Int64\(39\) THEN Int64\(\-9\) END\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-67\) \* Int64\(46\) \- Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +NULL +NULL query I rowsort SELECT ALL + 42 * - - 54 AS col1 @@ -40134,8 +40590,11 @@ SELECT + MIN ( ALL 61 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 23 col1, + 99 col1 +---- +-23 +99 query I rowsort label-7648 SELECT + COALESCE ( + MIN ( + + CAST ( NULL AS INTEGER ) ), + 88 / - 78 ) AS col1 @@ -40688,8 +41147,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - -110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col1" at position 0 and "\(\- nullif\(Int64\(\-42\), Int64\(\-96\)\)\) \+ Int64\(19\) \* Int64\(\-8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 72 AS col1, - NULLIF ( - 42, - 96 ) + 19 * - 8 AS col1 +---- +-110 +-72 query I rowsort label-7756 SELECT CASE + + COUNT ( * ) WHEN - - NULLIF ( MIN ( 31 ), + COUNT ( * ) / + 15 ) THEN + 87 WHEN - 91 * - 56 + + 43 THEN NULL ELSE NULL END * - 5 @@ -40784,8 +41246,11 @@ SELECT + COUNT ( DISTINCT + 85 ) * + - 60 + 96 * 17 + COUNT ( * ) * - 47 # 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 "\(\- Int64\(30\)\) AS col1" at position 0 and "\(\- Int64\(39\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 30 AS col1, - ( + 39 ) AS col1 +---- +-30 +-39 query II rowsort label-7774 SELECT + COUNT ( * ) + + 25 AS col2, + 59 @@ -41140,8 +41605,11 @@ SELECT + - ( - 2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - -12648 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(88\)\) AS col0" at position 0 and "CAST\(Int64\(51\) AS Int32\) \+ Int64\(\-63\) \+ Int64\(\-39\) \* Int64\(81\) \* Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 88 col0, CAST ( 51 AS INTEGER ) + - 63 + - 39 * 81 * 4 AS col0 +---- +-12648 +-88 query I rowsort SELECT ALL - 41 * + 94 * - 14 col1 @@ -41183,8 +41651,11 @@ SELECT DISTINCT + 21 * - COUNT ( - 7 ) * - - 34 * + ( - - 92 ) * 37 + + ( 95 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1232 # Datafusion - Expected - 108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(16\) AS col1" at position 0 and "Int64\(11\) \- Int64\(\-97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 * + 16 AS col1, 11 - - 97 col1 +---- +108 +1232 query I rowsort label-7851 SELECT COUNT ( * ) + 42 + + - COUNT ( * ) AS col0 @@ -41379,8 +41850,11 @@ 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\(1\)\) AS count\(\*\)\) \* \(\- Int64\(16\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 45 + + 78 AS col0, - COUNT ( * ) * - + 16 col0 +---- +123 +16 query II rowsort SELECT 37 * - 79 AS col1, ( + 60 ) - - 17 - - 25 @@ -41580,8 +42054,11 @@ SELECT + COUNT ( * ) * 15 / - + 70 * - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3403 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* sum\(\(\- Int64\(83\)\)\) AS col2" at position 0 and "Int64\(25\) \+ \(\- Int64\(\-32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 41 * + SUM ( ALL - + 83 ) AS col2, 25 + ( - - 32 ) AS col2 +---- +-3403 +57 query I rowsort SELECT DISTINCT + + 61 * 21 AS col2 @@ -41670,8 +42147,11 @@ SELECT + 57 AS col2, - COALESCE ( 11, - 10 - + - 64, 5 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "Int64\(\-31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 73 AS col0, - 31 AS col0 +---- +-31 +73 query I rowsort SELECT - 36 - + - 6 @@ -41862,8 +42342,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + SUM ( ALL - - 50 ) + + 38 col1, - COUNT ( * ) col1 +---- +-1 +88 query I rowsort label-7981 SELECT ALL + CAST ( NULL AS INTEGER ) + + ( - CAST ( NULL AS INTEGER ) ) AS col1 @@ -42334,8 +42817,11 @@ SELECT + 13 / - ( - ( 60 ) ) + 75 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(33\) AS Int32\)\) / nullif\(Int64\(\-45\), \(\- Int64\(\-28\)\)\) \- Int64\(\-60\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( + ( + 33 ) AS INTEGER ) / NULLIF ( - 45, - - 28 ) - - 60 col2, + 78 AS col2 +---- +60 +78 query I rowsort SELECT DISTINCT + COALESCE ( 10, + 39 ) @@ -42584,8 +43070,11 @@ 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\(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\. +query II valuesort SELECT 31 col2, + CASE + COUNT ( * ) WHEN + 98 THEN 13 WHEN 90 THEN NULL END - - - 71 - + + 52 AS col2 +---- +31 +NULL query II rowsort label-8116 SELECT - - COUNT ( * ), 62 * + 45 AS col0 @@ -43108,8 +43597,11 @@ SELECT ALL - MAX ( + 97 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) / \(\- avg\(DISTINCT \(\- nullif\(\(\- Int64\(\-56\)\), Int64\(79\) \+ Int64\(\-68\)\)\)\)\) \+ \(\- CAST\(NULL AS Int32\)\) \+ \(\- Int64\(\-12\)\) \* Int64\(10\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ \(\- Int64\(17\)\) \- Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT 76 / + - AVG ( DISTINCT - NULLIF ( - - 56, 79 + - 68 ) ) + - + CAST ( NULL AS INTEGER ) + - - 12 * + 10 AS col0, ( - CAST ( NULL AS INTEGER ) ) + ( - ( + 17 ) ) - - 26 AS col0 +---- +NULL +NULL query I rowsort label-8217 SELECT + 93 * + 60 + - 67 / - 32 @@ -43318,8 +43810,11 @@ 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\(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\. +query II valuesort 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 +---- +45 +673 query I rowsort SELECT 64 * 38 @@ -43958,8 +44453,11 @@ SELECT ALL + 16 * 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 400 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* Int64\(25\) AS col2" at position 0 and "Int64\(44\) \+ count\(\(\- Int64\(17\)\)\) \* \(\- Int64\(70\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 * + 25 AS col2, + 44 + COUNT ( - + 17 ) * - + 70 AS col2 +---- +-26 +400 query I rowsort label-8380 SELECT DISTINCT + 98 * + CASE 29 WHEN + - 25 THEN NULL WHEN 63 THEN NULL WHEN + + 35 * - COUNT ( * ) THEN + 15 * - + 74 + - COUNT ( * ) * - 69 * + - COUNT ( * ) - - 84 + - 42 * 95 * - - MAX ( 41 ) + - COUNT ( - 54 ) - ( - COUNT ( * ) ) * + + 44 / + 61 END AS col2 @@ -44005,8 +44503,11 @@ SELECT - 46 * - + 64 - 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- Int64\(\-39\)\)\) AS col2" at position 0 and "Int64\(67\) \+ Int64\(\-63\) \+ Int64\(\-61\) \* Int64\(80\) / Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( ALL - - 39 ) col2, 67 + ( - 63 ) + - 61 * 80 / + + 74 AS col2 +---- +-61 +1 query I rowsort label-8389 SELECT 54 * - CAST ( - - 25 AS INTEGER ) + + - 42 AS col0 @@ -44176,8 +44677,11 @@ SELECT + 5 * + + 96 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 54 col1, CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 +---- +-1 +54 query I rowsort SELECT + 82 + - ( - 87 ) @@ -44755,8 +45259,12 @@ SELECT DISTINCT + 17 * - 41 * - 61 # Datafusion - Expected - 1 # Datafusion - Expected - -63 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(27\) \- Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL COUNT ( * ) AS col1, 27 - ( 90 ) AS col1, - + 55 + - - ( + 48 ) AS col2 +---- +-63 +-7 +1 query I rowsort label-8532 SELECT DISTINCT + COUNT ( * ) - 74 @@ -44767,8 +45275,12 @@ SELECT DISTINCT + COUNT ( * ) - 74 # Datafusion - Expected - 68 # Datafusion - Expected - 69 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 1 and "Int64\(80\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 68 AS col1, + 69 AS col0, + 80 AS col0 +---- +68 +69 +80 query I rowsort label-8534 SELECT ALL + 90 - - + 94 + - MIN ( DISTINCT 59 ) / - 81 AS col1 @@ -45105,8 +45617,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "Int64\(61\) \* \(\- CAST\(NULL AS Int32\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-57\) \+ Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 col1, 61 * ( - + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) + - 57 + 43 AS col1 +---- +87 +NULL query I rowsort SELECT 59 * - + 47 * - - 7 @@ -45133,8 +45648,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) col1, 62 col1 +---- +-1 +62 query I rowsort label-8603 SELECT MIN ( ALL + 54 ) col2 @@ -45434,8 +45952,12 @@ SELECT DISTINCT - 56 + + 25 + 13 # Datafusion - Expected - 80 # Datafusion - Expected - 56 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(56\)\) AS col0" at position 1 and "Int64\(13\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - 80, SUM ( ALL 56 ) AS col0, 13 AS col0 +---- +13 +56 +80 query I rowsort label-8660 SELECT - 3 + COUNT ( * ) * - - 91 @@ -45652,8 +46174,11 @@ SELECT 40 + - 97, 23 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 AS col0, 34 AS col0 +---- +34 +45 query I rowsort label-8701 SELECT + CAST ( NULL AS INTEGER ) + + + 4 * NULLIF ( - 56, - 90 - + 98 * + CAST ( - + 37 AS INTEGER ) ) + 68 * - 36 AS col2 @@ -45945,8 +46470,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(55\) \- Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 * 94 * 86 AS col0, + ( + + 23 ) * + + COUNT ( * ) + + + 55 - - 73 AS col0 +---- +151 +444620 query I rowsort SELECT ALL - 98 * - + 78 @@ -46402,8 +46930,11 @@ SELECT 98 + + 47 + - - 48 / - + 63 # 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 "Int64\(\-3\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 AS col2, 66 col2 +---- +-3 +66 query I rowsort label-8840 SELECT 72 * ( + COUNT ( * ) ) @@ -47135,8 +47666,12 @@ NULL # Datafusion - Expected - 13 # Datafusion - Expected - 34 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(nullif\(Int64\(\-85\), Int64\(58\)\)\) \- Int64\(\-98\) AS col2" at position 0 and "Int64\(97\) \+ Int64\(0\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + MIN ( ALL + NULLIF ( - 85, + + 58 ) ) - - 98 AS col2, + 34, 97 + + + 0 AS col2 +---- +13 +34 +97 query I rowsort label-8978 SELECT ( 96 ) / + 17 @@ -47189,8 +47724,11 @@ SELECT ( + 77 ) * + + 73, + COUNT ( - 57 ) * + - 25 + - 85 * + 45 + - 94 AS col2 # 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 "Int64\(7\) \* Int64\(19\) \+ \(\- Int64\(36\)\) AS col1" at position 0 and "Int64\(1\) \* Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 7 * + 19 + - + 36 AS col1, 1 * + + 65 AS col1 +---- +65 +97 query II rowsort label-8988 SELECT - + COUNT ( * ) col0, 8 * + NULLIF ( - 17, + + 60 ) @@ -47274,8 +47812,12 @@ SELECT - 52 / 9 AS col1 # Datafusion - Expected - 84 # Datafusion - Expected - -3621 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "nullif\(\(\- count\(DISTINCT Int64\(\-11\)\)\), Int64\(\-40\) \* avg\(Int64\(43\)\)\) \* Int64\(\-36\) \- Int64\(82\) \- Int64\(\-55\) \* nullif\(Int64\(\-65\), Int64\(11\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IRI valuesort SELECT DISTINCT + 84 AS col0, NULLIF ( - COUNT ( DISTINCT - 11 ), + ( - 40 ) * AVG ( + 43 ) ) * - 36 - + 82 - - 55 * + NULLIF ( - 65, 11 ) AS col0, - MAX ( 72 ) + + 21 AS col2 +---- +-3621 +-51 +84 query II rowsort SELECT DISTINCT + 55 col0, - 4 * - ( - 71 ) + - - 23 AS col1 @@ -47370,8 +47912,11 @@ SELECT DISTINCT + 53 * COUNT ( * ) / 45 * - NULLIF ( 22, - + 37 + - 36 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 74 col1, 81 col1 +---- +-74 +81 query I rowsort SELECT - - 15 + - 52 + + 5 @@ -47412,8 +47957,11 @@ SELECT ALL 20 AS col1, + 3 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 AS col1, + 94 AS col1 +---- +-31 +94 query I rowsort label-9030 SELECT DISTINCT + 52 + + - COUNT ( DISTINCT + 90 ) @@ -47699,8 +48247,11 @@ SELECT ALL 11 + - NULLIF ( - - 80, + NULLIF ( + + COUNT ( * ), - - 29 ) ) * - + # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - -3315 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col2" at position 0 and "Int64\(39\) \* \(\- Int64\(85\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 76 AS col2, 39 * - + 85 AS col2 +---- +-3315 +-76 query I rowsort label-9083 SELECT ALL 25 * + 82 - 37 * COALESCE ( + + 60, - COUNT ( * ) / - 86 * + + 25 + - COUNT ( * ) ) col1 @@ -47900,8 +48451,11 @@ SELECT ALL 68 - + 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1520 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* \(\- Int64\(\-40\)\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 38 * - - 40 AS col2, + 12 col2 +---- +12 +1520 query I rowsort label-9122 SELECT - + CASE 30 WHEN - COALESCE ( + - 85, 64 * 55 * - 9 ) * - - 13 * + COUNT ( * ) THEN 38 * + + 28 + + - 39 - + - 72 END AS col2 @@ -48162,8 +48716,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COALESCE ( + ( 76 ), - 48 + - 84 - + - MAX ( 28 ) * - + 15, + 73 * + 69 ) + - + 17 * - 52 + + COUNT ( * ) + 50 AS col0, + 89 * - 42 * 40 AS col0 +---- +-149520 +859 query I rowsort label-9173 SELECT ALL 35 * + 98 * - COUNT ( DISTINCT + - 42 ) @@ -48495,8 +49052,11 @@ SELECT + ( ( - COUNT ( * ) ) ) AS col2, 37 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-52\)\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(\-61\) \+ Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + MIN ( + - 52 ) AS col1, CAST ( NULL AS INTEGER ) + - 61 + 37 AS col1 +---- +52 +NULL query I rowsort label-9236 SELECT DISTINCT - - 6 * COUNT ( * ) AS col2 @@ -48656,8 +49216,12 @@ NULL # Datafusion - Expected - 16 # Datafusion - Expected - 14 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(16\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + MIN ( + 16 ) / + COUNT ( * ) col2, + 14 AS col2, - CASE WHEN NOT MAX ( DISTINCT + 92 ) IS NULL THEN NULL ELSE COUNT ( * ) END +---- +14 +16 +NULL query I rowsort SELECT - + 42 + + - 42 - + - 60 @@ -48783,8 +49347,11 @@ SELECT + ( - COUNT ( * ) ) AS col1, 14 * 28 # 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 "min\(DISTINCT Int64\(56\)\) AS col2" at position 0 and "Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( DISTINCT + + 56 ) AS col2, + 76 AS col2 +---- +56 +76 query I rowsort label-9290 SELECT + 64 / - + 72 * + + COALESCE ( + 32, 94 ) AS col0 @@ -48809,8 +49376,11 @@ SELECT - 46 + + 79 * - - 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6889 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \- Int64\(71\) \* Int64\(98\) \+ \(\- Int64\(\-64\)\) \+ \(\- Int64\(59\)\) AS col2" at position 0 and "Int64\(14\) \- Int64\(79\) \+ nullif\(\(\- Int64\(\-81\)\), \(\- Int64\(21\)\)\) \+ \(\- CAST\(\(\- Int64\(\-7\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 64 - + 71 * 98 + - - 64 + - + 59 AS col2, + 14 - 79 + + + NULLIF ( + ( - - 81 ), - ( + 21 ) ) + - CAST ( - - 7 AS INTEGER ) AS col2 +---- +-6889 +9 query II rowsort label-9295 SELECT + COUNT ( * ) * + 2 AS col2, 1 @@ -49989,8 +50559,11 @@ 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\(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\. +query II valuesort 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 +---- +78 +NULL query I rowsort label-9524 SELECT - 58 + - - 90 + - MIN ( DISTINCT - - 54 ) AS col0 @@ -50226,8 +50799,11 @@ SELECT + 69 - - 71 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-70\)\) AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( - 70 ) AS col2, 15 col2 +---- +-70 +15 query I rowsort SELECT + 39 + 86 * - 41 * 17 AS col1 @@ -50550,8 +51126,11 @@ SELECT SUM ( DISTINCT - 13 ) * - - 24 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 2340 -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\(\-45\) \* \(\- Int64\(52\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( - + 16 ) AS col2, - 45 * - + 52 AS col2 +---- +-1 +2340 query I rowsort SELECT 10 * - 89 AS col0 @@ -50916,8 +51495,11 @@ SELECT DISTINCT 62 + 40 / + 39 * COUNT ( * ) + 35 - - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "Int64\(23\) \+ \(\- Int64\(91\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 AS col1, + 23 + - + 91 AS col1 +---- +-68 +8 query I rowsort label-9699 SELECT ALL + COUNT ( * ) - 38 @@ -50968,8 +51550,11 @@ SELECT ALL + 34 AS col2, MIN ( + 21 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col0" at position 0 and "Int64\(\-61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 94 col0, - 61 AS col0 +---- +-61 +-94 query II rowsort label-9709 SELECT ALL + 80, CAST ( NULL AS INTEGER ) + - 41 / + 39 * - - 41 AS col2 @@ -51026,8 +51611,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - COUNT ( * ) AS col1, 6 AS col1 +---- +-1 +6 query I rowsort label-9720 SELECT 70 / CAST ( - CASE CASE + + 35 WHEN MAX ( ALL + CASE 92 WHEN - 47 / 6 + + 11 + + 14 / 61 THEN 15 END ) THEN - 98 + 35 WHEN 38 THEN + 37 ELSE - 90 * 56 END WHEN - 70 THEN COUNT ( * ) + 76 ELSE - 6 * + 19 END AS INTEGER ) * + 34 + + 87 AS col2 @@ -51244,8 +51832,11 @@ SELECT ALL - MIN ( ALL + 52 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4613 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \* Int64\(47\) \+ Int64\(\-49\) \* Int64\(27\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 70 * 47 + - 49 * 27 AS col1, 69 AS col1 +---- +-4613 +69 query II rowsort label-9761 SELECT ALL - CAST ( NULL AS INTEGER ) col2, + NULLIF ( - 60, - + 84 ) @@ -51427,8 +52018,11 @@ SELECT + 28 * + + 70 AS col2 # 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 "\(\- Int64\(75\)\) AS col1" at position 0 and "Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - + 75 ) AS col1, ( - 35 ) AS col1 +---- +-35 +-75 query I rowsort label-9795 SELECT ALL CAST ( NULL AS INTEGER ) * - - 28 * - 16 - + - 36 + - - ( 17 ) + 46 * + + 23 @@ -51465,8 +52059,11 @@ SELECT DISTINCT + + 42 * + + 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \- Int64\(14\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 - + 14 AS col2, CAST ( NULL AS INTEGER ) AS col2 +---- +23 +NULL query I rowsort label-9802 SELECT - 7 / - + ( 89 ) * - - 53 / + 50 col2 @@ -51696,8 +52293,12 @@ SELECT + - 59 col2 # Datafusion - Expected - -72 # Datafusion - Expected - 17 # 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 "Int64\(1\) \- Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - + 72 AS col1, 1 - - 16 AS col1, - ( - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) +---- +-72 +17 +NULL query I rowsort label-9846 SELECT ALL + COUNT ( * ) * - - 42 * - CASE - + 78 WHEN + - COALESCE ( + 39, ( 93 ) + COUNT ( 44 ) + - + 55, + SUM ( DISTINCT - 45 ), + COUNT ( * ) ) THEN NULL WHEN + 52 THEN CAST ( NULL AS INTEGER ) + + COUNT ( * ) WHEN 12 * - 61 THEN 50 - + COUNT ( * ) * + 28 END + - 28 @@ -51791,8 +52392,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col0" at position 0 and "Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 43 col0, - 99 AS col0 +---- +-99 +43 query I rowsort label-9864 SELECT DISTINCT - 26 * + COUNT ( * ) @@ -51815,8 +52419,11 @@ 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 "Int64\(54\) / CASE Int64\(96\) WHEN \(\- Int64\(\-11\)\) THEN min\(\(\- Int64\(74\)\)\) \+ \(\- max\(\(\- Int64\(54\)\)\)\) \+ Int64\(\-44\) \* Int64\(\-70\) \- Int64\(\-33\) 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 II valuesort SELECT 54 / CASE 96 WHEN - - 11 THEN MIN ( ALL - + 74 ) + - MAX ( ALL - + 54 ) + - 44 * - 70 - - 33 END AS col2, 46 AS col2 +---- +46 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] diff --git a/data/sqlite/random/expr/slt_good_72.slt b/data/sqlite/random/expr/slt_good_72.slt index 6fece06..c2d543a 100644 --- a/data/sqlite/random/expr/slt_good_72.slt +++ b/data/sqlite/random/expr/slt_good_72.slt @@ -138,8 +138,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col0, 65 - - 25 + - 39 AS col0 +---- +-1 +51 query I rowsort label-20 SELECT + + NULLIF ( 66, COUNT ( * ) ) AS col1 @@ -174,8 +177,11 @@ SELECT ALL COUNT ( * ) * + 56 * + ( - 10 ) + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2076 # Datafusion - Expected - -448 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \* Int64\(57\) \+ Int64\(24\) 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 II valuesort SELECT ALL + 36 * 57 + 24 AS col2, + 16 * - 28 AS col2 +---- +-448 +2076 query I rowsort SELECT DISTINCT + 41 * 87 + + 32 @@ -495,8 +501,11 @@ SELECT + 91 + - + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6934 # Datafusion - Expected - 46550 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \* Int64\(9\) \* Int64\(20\) \+ Int64\(86\) \+ Int64\(0\) AS col0" at position 0 and "Int64\(10\) \* Int64\(95\) \* Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 39 * + 9 * 20 + + 86 + 0 AS col0, 10 * 95 * 49 AS col0 +---- +-6934 +46550 query I rowsort label-87 SELECT DISTINCT CAST ( + ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + - 80 AS col1 @@ -692,8 +701,11 @@ SELECT DISTINCT 5 * - + 51 * 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(\-22\)\)\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( ALL - - 22 ) AS col0, + 73 AS col0 +---- +22 +73 query I rowsort SELECT 11 + - 87 @@ -1127,8 +1139,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 33 AS col1, - COUNT ( * ) AS col1 +---- +-1 +33 query I rowsort label-208 SELECT + - 82 * - + CAST ( NULL AS INTEGER ) / + 37 * + - ( - - COUNT ( * ) ) / 46 + 73 - + COUNT ( * ) @@ -1575,8 +1590,11 @@ SELECT + 50 / - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-9\)\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - - 9 ) col0, + 4 AS col0 +---- +4 +9 query I rowsort SELECT ALL ( + 61 ) @@ -1886,8 +1904,11 @@ SELECT - 54 AS col1, 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \+ Int64\(44\) / \(\- Int64\(58\)\) \+ Int64\(68\) AS col2" at position 0 and "Int64\(\-34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 9 + 44 / - + 58 + 68 AS col2, - 34 AS col2 +---- +-34 +77 query I rowsort label-350 SELECT + MIN ( 48 ) * 43 + + 69 AS col1 @@ -1987,8 +2008,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* \(\- nullif\(Int64\(64\), Int64\(\-7\)\)\) / \(\- Int64\(13\)\) \+ Int64\(9\) \+ CAST\(NULL AS Int32\) \* Int64\(\-71\) / count\(Int64\(1\)\) AS count\(\*\) \+ nullif\(\(\- Int64\(\-14\)\), sum\(Int64\(42\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +41 +NULL query I rowsort label-369 SELECT - MIN ( - + 47 ) * - 89 @@ -2078,8 +2102,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \+ Int64\(49\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 49 + + 49 * + COUNT ( * ) col0, 81 AS col0 +---- +81 +98 query I rowsort SELECT - + 49 + + 4 AS col1 @@ -2258,8 +2285,11 @@ SELECT ( + ( + 86 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "sum\(Int64\(76\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 42 col2, SUM ( + 76 ) col2 +---- +42 +76 query II rowsort label-420 SELECT COALESCE ( - 40, - COUNT ( * ) ) AS col0, + 57 @@ -2365,8 +2395,11 @@ SELECT DISTINCT - 12 * + NULLIF ( - - 45, + - ( - 5 ) / + + 71 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -6699 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(\-77\) AS col1" at position 0 and "Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( ( 87 ) ) * + - 77 AS col1, 59 AS col1 +---- +-6699 +59 query I rowsort label-440 SELECT ALL - MIN ( 54 ) + + - 81 @@ -2521,8 +2554,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, 54 AS col2 +---- +-1 +54 query I rowsort label-470 SELECT SUM ( + - 72 ) AS col0 @@ -3074,8 +3110,11 @@ SELECT DISTINCT + 32 * + ( 90 ) * - 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - -3871 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col1" at position 0 and "Int64\(79\) \* Int64\(\-49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 22 AS col1, 79 * - 49 col1 +---- +-22 +-3871 query I rowsort label-575 SELECT COUNT ( ALL + - 16 ) * 39 @@ -3649,8 +3688,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "Int64\(\-35\) \+ Int64\(\-2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 46 AS col0, - 35 + - 2 AS col0 +---- +-37 +46 # Datafusion - Data was automatically updated based on comparison db results # Datafusion - Previous results: @@ -4228,8 +4270,11 @@ 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\(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\. +query II valuesort SELECT ALL - + COUNT ( * ) + - 49 + - 55 + - + 21 + + 87 * + 6 * 5 AS col1, 46 + + + 87 - + 24 AS col1 +---- +109 +2484 query I rowsort SELECT 96 - - 37 @@ -4275,8 +4320,11 @@ 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\(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\. +query II valuesort 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 +---- +-542 +68 query I rowsort label-803 SELECT 93 / - 2 + 27 * 31 AS col0 @@ -4437,8 +4485,11 @@ SELECT ALL 1, 17 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 2 AS col1, 49 AS col1 +---- +-2 +49 query II rowsort label-833 SELECT 15 + + + CAST ( NULLIF ( + - 29, - 58 ) AS INTEGER ) + 17 col1, + COUNT ( * ) * + 95 AS col2 @@ -4449,8 +4500,11 @@ SELECT 15 + + + CAST ( NULLIF ( + - 29, - 58 ) AS INTEGER ) + 17 col1, + COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -579 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* \(\- coalesce\(count\(\(\- Int64\(85\)\)\), Int64\(\-55\), \(\- Int64\(82\)\) \* Int64\(61\), Int64\(84\)\)\) / \(\- Int64\(33\)\) AS col1" at position 0 and "Int64\(9\) \+ Int64\(49\) \* Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 * + - COALESCE ( + COUNT ( - ( 85 ) ), - 55, + - ( + 82 ) * + 61, + 84 ) / - + 33 AS col1, + 9 + + 49 * + - 12 AS col1 +---- +-579 +0 query I rowsort label-835 SELECT - COUNT ( DISTINCT 47 ) AS col0 @@ -4588,8 +4642,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- \(\- Int64\(\-87\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + CAST ( NULL AS INTEGER ) AS col0, - ( - - 87 ) AS col0 +---- +-87 +NULL query I rowsort label-861 SELECT + + 36 + + - 35 + - - 0 * + ( + + 0 ) * - 21 / - 81 - - - 26 @@ -4828,8 +4885,11 @@ SELECT ALL 12 AS col2, - 74 + + + ( - 35 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 63 AS col1, COUNT ( * ) AS col1 +---- +1 +63 query I rowsort label-907 SELECT ALL 74 / 99 * + 33 @@ -4849,8 +4909,11 @@ 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\(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\. +query II valuesort 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 +---- +-151 +23 query I rowsort SELECT + 68 * - - 75 AS col2 @@ -4978,8 +5041,11 @@ SELECT 24 / - - ( + + 98 ) / - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1829 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* Int64\(\-31\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 * - 31 col0, 2 AS col0 +---- +-1829 +2 query I rowsort SELECT ALL + 3 + 24 @@ -5063,8 +5129,11 @@ SELECT - 25 + - - ( - + 55 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - 1280 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \+ \(\- Int64\(15\)\) AS col2" at position 0 and "Int64\(20\) \* \(\- Int64\(\-64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 42 + - + 15 col2, 20 * - - 64 AS col2 +---- +-57 +1280 query I rowsort label-952 SELECT DISTINCT - - NULLIF ( - 4, + COALESCE ( - 65, + + 93 * 35 * + ( 67 ) ) * - + COUNT ( * ) + - 64 ) AS col1 @@ -5163,8 +5232,11 @@ SELECT - 61 * - 37 * - 58 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(60\)\)\) \* Int64\(58\) AS col0" at position 0 and "min\(Int64\(44\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( + 60 ) * 58 AS col0, ( MIN ( 44 ) ) * + + COUNT ( * ) AS col0 +---- +-58 +44 query I rowsort label-971 SELECT - SUM ( ALL + 91 ) + + 21 @@ -5955,8 +6027,11 @@ SELECT ALL + - ( - 64 ) - - MAX ( DISTINCT - - 92 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\)" at position 0 and "Int64\(37\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 37 ), + 37 +---- +37 +37 query I rowsort SELECT ALL - 94 * 55 @@ -6129,8 +6204,11 @@ SELECT - COUNT ( * ) - - 26 + - NULLIF ( 5, 2 ) + + 93 * 43 / + 11 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col2, 10 AS col2 +---- +1 +10 query I rowsort SELECT ALL 71 * 83 AS col2 @@ -6233,8 +6311,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 48 col0, + 77 AS col0 +---- +-48 +77 query II rowsort SELECT 83 + 74 * + ( 31 ) AS col0, - 39 * 31 @@ -7192,8 +7273,11 @@ SELECT - - 83, 7 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) AS col2" at position 0 and "Int64\(65\) \+ Int64\(\-24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 26 col2, 65 + - 24 AS col2 +---- +-26 +41 query I rowsort SELECT DISTINCT + + 64 + - NULLIF ( 89, - 6 * + ( + 16 ) * + 24 ) + 4 @@ -7262,8 +7346,11 @@ SELECT ALL + - ( + + 83 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4480 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \* Int64\(\-80\) AS col1" at position 0 and "Int64\(\-84\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 56 * - 80 AS col1, - 84 * - + CAST ( NULL AS INTEGER ) AS col1 +---- +-4480 +NULL query II rowsort label-1375 SELECT + 89 * - - 9, + COUNT ( * ) AS col1 @@ -7558,8 +7645,11 @@ SELECT 15 + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - -78432 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col1" at position 0 and "Int64\(\-86\) \* Int64\(12\) \* Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 45 AS col1, - 86 * + 12 * 76 AS col1 +---- +-45 +-78432 query I rowsort label-1431 SELECT ALL - CASE WHEN NOT ( NULL <= COUNT ( * ) ) THEN - - 27 - - 52 / + + 13 + 87 END * - NULLIF ( 63, + 51 * - + 16 / - 87 + - 37 ) AS col0 @@ -8083,8 +8173,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 41 AS col2, 64 AS col2 +---- +-41 +64 query I rowsort label-1531 SELECT ALL + 58 * 54 + - + CAST ( + 77 AS INTEGER ) AS col1 @@ -8267,8 +8360,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \+ Int64\(39\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 17 + + 39 col2, 2 AS col2 +---- +2 +56 query I rowsort label-1566 SELECT ALL - + 21 + + 7 + + 89 + - - CAST ( ( - - MAX ( ALL - 32 ) ) AS INTEGER ) @@ -8354,8 +8450,11 @@ SELECT 56 * + 33 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "CAST\(CAST\(NULL AS Int32\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 59 AS col1, CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 +---- +59 +NULL query I rowsort SELECT 75 * + 36 AS col2 @@ -8826,8 +8925,11 @@ SELECT + 12 * 90 + 94 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ Int64\(46\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 + 46 AS col2, 97 AS col2 +---- +76 +97 query II rowsort SELECT - 92 AS col1, + 93 @@ -8947,8 +9049,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 17 col1, COALESCE ( - 67, COUNT ( * ) ) col1, + COUNT ( * ) / + ( 13 ) +---- +-17 +-67 +0 query I rowsort SELECT 4 + - 83 AS col0 @@ -9028,8 +9134,11 @@ SELECT ALL - COUNT ( * ) * + ( - + 75 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 116 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \+ \(\- Int64\(\-40\)\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 76 + - - 40 AS col1, 53 AS col1 +---- +116 +53 query I rowsort SELECT 84 * 45 * + 81 * - 99 AS col0 @@ -9039,8 +9148,11 @@ SELECT 84 * 45 * + 81 * - 99 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3025 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* Int64\(55\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 * 55 AS col1, 49 AS col1 +---- +3025 +49 query I rowsort SELECT ALL - 31 * - NULLIF ( - 94, + + 35 ) * - - COALESCE ( 27, 21 * - - 17 * - 38 ) AS col2 @@ -9153,8 +9265,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- \(\- Int64\(91\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, - COUNT ( * ) + - ( - + 91 ) AS col1 +---- +1 +90 query II rowsort SELECT + 20 + - ( 93 ), 91 + 71 AS col2 @@ -9232,8 +9347,11 @@ SELECT - 60 + - 6 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -169 # Datafusion - Expected - -736 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \+ \(\- sum\(\(\- Int64\(\-95\)\)\)\) AS col0" at position 0 and "Int64\(92\) \* Int64\(\-8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 74 + - SUM ( - - 95 ) AS col0, 92 * - 8 AS col0 +---- +-169 +-736 query I rowsort label-1746 SELECT - 87 / - 29 col1 @@ -9449,8 +9567,12 @@ SELECT 74 + - COALESCE ( - 6, + 21 + - COUNT ( ALL + - 51 ) + + 26 * - - 53 / CA # Datafusion - Expected - 59 # Datafusion - Expected - 31 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 59 AS col1, + ( 31 ) AS col1, 25 AS col1 +---- +25 +31 +59 query I rowsort label-1787 SELECT ( COUNT ( * ) ) * - - 24 * - + 54 + - - 27 - - 75 * + CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) AS col1 @@ -9613,8 +9735,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(\-25\) \+ Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 29 AS col1, COUNT ( * ) / - 25 + 92 AS col1 +---- +-29 +92 query I rowsort label-1819 SELECT DISTINCT + CASE COUNT ( * ) WHEN + 94 * MIN ( - 67 ) - - 7 * - 50 THEN - SUM ( - + 94 ) END @@ -9707,8 +9832,11 @@ SELECT + - 51 * + 48 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(1\) \* Int64\(\-62\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, + 1 * - 62 * - - COUNT ( * ) AS col0 +---- +-62 +1 query I rowsort SELECT - + CASE + - 98 WHEN 91 THEN NULL ELSE 99 END + + 53 AS col0 @@ -10016,8 +10144,11 @@ SELECT ALL + COUNT ( * ) + 5 * + COALESCE ( + 56, - COUNT ( * ) ) + + 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 AS col1, COUNT ( * ) AS col1 +---- +1 +69 query II rowsort label-1894 SELECT ALL - COUNT ( * ), 53 * 75 * CAST ( NULL AS INTEGER ) * + 89 + CAST ( - 8 AS INTEGER ) AS col2 @@ -10094,8 +10225,11 @@ SELECT - ( 10 ) + - SUM ( - + 18 ) - COUNT ( ALL 91 ) * - 30 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col1" at position 0 and "Int64\(35\) \+ \(\- Int64\(65\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 AS col1, + 35 + - + 65 AS col1 +---- +-30 +35 query I rowsort SELECT + 40 * + 24 + 2 AS col1 @@ -10158,8 +10292,11 @@ SELECT ALL - 92 + 55 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(\-97\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 + - 97 AS col2, 84 AS col2 +---- +-97 +84 query I rowsort SELECT 3 + 95 AS col0 @@ -10841,8 +10978,11 @@ SELECT ALL - COALESCE ( + MAX ( - 87 ), - COUNT ( * ), - + 60 ) + - 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "Int64\(72\) \* \(\- Int64\(\-86\)\) / count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 AS col2, 72 * - ( - 86 ) / COUNT ( * ) * - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * 29 AS col2 +---- +42 +NULL query I rowsort label-2050 SELECT DISTINCT - 85 + - 84 + 7 / + ( + - 9 ) - - 38 * - - 2 @@ -10995,8 +11135,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CASE 33 WHEN + + 6 THEN 55 WHEN + + 22 THEN NULL ELSE + + 18 + 45 END AS col1, - 77 * - 13 + COUNT ( * ) + - 74 col1 +---- +63 +928 query I rowsort SELECT + 14 + 90 AS col2 @@ -11553,8 +11696,11 @@ 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\(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\. +query II valuesort SELECT 47 * 87 * - COUNT ( * ) * MAX ( + 36 ) AS col2, 11 + - NULLIF ( 21, 34 ) + ( 2 ) AS col2 +---- +-147204 +-8 query I rowsort label-2187 SELECT ALL - NULLIF ( + ( + 45 ), + + 48 ) * - - 33 + - - 51 + + COUNT ( * ) * + + 92 + + 56 AS col1 @@ -11744,8 +11890,11 @@ SELECT + 51 * - 34 + - - 99 / - - 60 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 "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 II valuesort SELECT + + 80 AS col1, 88 AS col1 +---- +80 +88 query I rowsort label-2223 SELECT - - 39 * COALESCE ( + - 90, - + CASE + + 5 WHEN - + 73 + + COUNT ( * ) THEN - - 43 * 83 - - 98 END * - ( - NULLIF ( ( + ( ( 70 ) ) ), + ( - + 39 ) - + + COUNT ( * ) ) ) + 39 * CAST ( NULL AS INTEGER ) + - + 41 ) / - 87 + - 30 * - + 19 - - 9 @@ -11857,8 +12006,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 26 * - - COUNT ( * ) AS col1, - 39 AS col1 +---- +-39 +26 query I rowsort SELECT ALL + 94 * + 43 @@ -12014,8 +12166,11 @@ SELECT DISTINCT - COUNT ( DISTINCT - 67 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(10\)\) \- Int64\(13\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 10 - + 13 AS col0, 43 AS col0 +---- +-23 +43 query I rowsort SELECT ( + 11 ) - + 10 @@ -12241,8 +12396,11 @@ SELECT DISTINCT 8 - - 18 + 51 + - 40 * + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 3276 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "Int64\(63\) \* CAST\(Int64\(52\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 AS col2, 63 * + CAST ( + 52 AS INTEGER ) AS col2 +---- +3276 +70 query I rowsort SELECT 73 + - 84 @@ -12434,8 +12592,11 @@ SELECT DISTINCT 79 * + 67 AS col0, 18 # 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 "min\(DISTINCT Int64\(\-59\)\) AS col0" at position 0 and "coalesce\(Int64\(\-20\), Int64\(59\) / Int64\(\-36\) \* Int64\(51\) \* \(\- Int64\(\-16\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( DISTINCT - 59 ) AS col0, COALESCE ( + - 20, + 59 / - 36 * + 51 * - - 16 ) AS col0 +---- +-20 +-59 query I rowsort SELECT ALL 25 * + + 6 @@ -12455,8 +12616,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * - + 81 AS col1, 73 * + COUNT ( * ) * CASE + ( + 58 ) WHEN - COUNT ( DISTINCT + 22 ) THEN NULL ELSE - 58 END AS col1 +---- +-4234 +-81 query II rowsort SELECT ALL 71 + + 92, 99 col0 @@ -12823,8 +12987,11 @@ SELECT - + 30 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(21\) \* Int64\(\-12\) \* Int64\(57\) \+ Int64\(57\) / \(\- Int64\(\-64\)\) \+ \(\- Int64\(\-40\)\) \+ CAST\(NULL AS Int32\) \+ nullif\(Int64\(14\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-64\)\)\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) * + 21 * - 12 * 57 + + 57 / - - 64 + - - 40 + CAST ( NULL AS INTEGER ) + + + NULLIF ( 14, - COUNT ( * ) + - - 64 ) AS col2, + 75 AS col2 +---- +75 +NULL query I rowsort label-2426 SELECT DISTINCT + COUNT ( + 53 ) AS col1 @@ -12933,8 +13100,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- min\(DISTINCT Int64\(72\)\)\) \+ Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, ( ( - MIN ( DISTINCT + 72 ) ) ) + - 30 AS col2 +---- +-102 +1 query I rowsort label-2447 SELECT + SUM ( ALL - 75 ) @@ -13353,8 +13523,11 @@ SELECT ALL + SUM ( ( + 50 ) ) * + + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) \+ Int64\(23\) AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 66 + 23 AS col1, 32 AS col1 +---- +-43 +32 query I rowsort SELECT - NULLIF ( + 74, - 79 + + 32 + - 37 * - 13 ) AS col0 @@ -13615,8 +13788,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT ( + + COUNT ( * ) ) / + 18 * 50 AS col0, + 55 - 15 col0 +---- +0 +40 query I rowsort label-2577 SELECT ALL ( - 77 ) / + - 71 AS col2 @@ -14342,8 +14518,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 19 AS col1, + 67 + + MAX ( ALL - 58 ) + - 6 * - COUNT ( * ) col1 +---- +15 +19 query I rowsort SELECT ALL - 13 * - 67 + + 68 @@ -14877,8 +15056,11 @@ SELECT DISTINCT - - ( COUNT ( * ) ) * 37 - + + 19 AS col0 # 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 col1" at position 0 and "\(\- sum\(Int64\(3\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 28 AS col1, - SUM ( 3 ) col1 +---- +-3 +28 query I rowsort label-2822 SELECT ALL + COUNT ( * ) * ( - 27 ) - - + 54 + + - 57 + - 85 * + 84 @@ -15257,8 +15439,11 @@ SELECT ALL + - 39 * - 31 * + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(\(\- Int64\(99\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 * + ( + COUNT ( * ) ) AS col2, COUNT ( - + 99 ) AS col2 +---- +1 +88 query I rowsort label-2895 SELECT 80 / + COUNT ( * ) AS col2 @@ -15598,8 +15783,12 @@ 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\(1\)\) AS count\(\*\) \* Int64\(62\) \+ Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RII valuesort SELECT + ( + 78 ) * + 33 * - CAST ( NULL AS FLOAT8 ) col1, + COUNT ( * ) * 62 + - 5 col1, 29 AS col2 +---- +29 +57 +NULL query I rowsort label-2960 SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 94 @@ -15624,8 +15813,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 78 + - - COUNT ( DISTINCT - 11 ) * + MIN ( - 39 ) AS col2, COALESCE ( SUM ( ALL + 92 ), - 26 ) * + 75 + - COUNT ( * ) * + 86 AS col2 +---- +39 +6814 query I rowsort label-2965 SELECT - MIN ( - + 75 ) @@ -15864,8 +16056,11 @@ SELECT ALL + 59, - 55 / - + 92 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3384 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- \(\- Int64\(72\)\)\), \(\- Int64\(97\)\)\) \* Int64\(\-47\) AS col2" at position 0 and "nullif\(Int64\(64\), nullif\(Int64\(76\), Int64\(47\) \- Int64\(\-31\) \* Int64\(98\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( - - ( + 72 ), - ( 97 ) ) * + - 47 AS col2, NULLIF ( + 64, NULLIF ( 76, 47 - - 31 * 98 ) ) AS col2 +---- +-3384 +64 query I rowsort SELECT + 34 - + 65 @@ -16228,8 +16423,11 @@ SELECT ALL + 18 * - 11 * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col1, 48 col1 +---- +1 +48 query I rowsort label-3079 SELECT DISTINCT + COUNT ( * ) * - 12 AS col0 @@ -16379,8 +16577,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) / Int64\(\-66\) AS col2" at position 0 and "\(\- coalesce\(Int64\(71\), \(\- max\(Int64\(3\)\)\)\)\) / CASE Int64\(70\) WHEN Int64\(\-13\) THEN Int64\(68\) \* Int64\(28\) \- Int64\(\-91\) \* CAST\(Int64\(15\) AS Int32\) WHEN min\(Int64\(21\)\) \* Int64\(\-68\) \+ Int64\(83\) THEN Int64\(60\) \* CASE avg\(Int64\(\-93\)\) WHEN Int64\(59\) THEN NULL WHEN Int64\(\-80\) \+ Int64\(53\) THEN Int64\(57\) END \+ count\(Int64\(1\)\) AS count\(\*\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +0 +NULL query I rowsort label-3108 SELECT MAX ( ALL + - 88 ) AS col2 @@ -16575,8 +16776,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) + + 25 * + 85 col0, 72 * - 63 + - 34 - - 0 AS col0 +---- +-4570 +2124 query I rowsort label-3146 SELECT ALL COUNT ( * ) / - + 13 * + 65 / + - MAX ( - ( 56 ) ) AS col0 @@ -16999,8 +17203,11 @@ SELECT - 91 * + - 53 + ( - 7 ) - 83 * - - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- Int64\(38\)\)\)\) AS col1" at position 0 and "Int64\(73\) / Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( - + 38 ) AS col1, 73 / - 30 AS col1 +---- +-2 +38 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -17014,8 +17221,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * - 57 AS col0, + 39 AS col0 +---- +-57 +39 query I rowsort label-3229 SELECT - - NULLIF ( - 65, + - 97 + + CAST ( NULL AS INTEGER ) ) * - 41 AS col2 @@ -17369,8 +17579,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - + CAST ( NULL AS INTEGER ) ) AS col1, + 54 AS col1 +---- +54 +NULL query I rowsort label-3297 SELECT 14 / - 8 @@ -17623,8 +17836,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 89 AS col2, CAST ( NULL AS INTEGER ) * + 64 AS col2 +---- +89 +NULL query I rowsort label-3346 SELECT + 99 * - - 45 * CAST ( - 98 AS INTEGER ) AS col1 @@ -17690,8 +17906,11 @@ SELECT - + 54 * - MAX ( ( + 93 ) ) * 85 + - - 54 + - 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 12 AS col0, 70 AS col0 +---- +-12 +70 query II rowsort SELECT - - 79 * + 46 + - + 69 * + + 96 AS col1, 88 @@ -17708,8 +17927,11 @@ SELECT - - 30, 33 / 1 + NULLIF ( - 20, 24 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -200 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \* Int64\(71\) \+ Int64\(\-46\) \+ Int64\(0\) \+ Int64\(\-85\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(73\) AS col0" at position 0 and "Int64\(31\) / \(\- CAST\(Int64\(74\) AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 2 * + 71 + - 46 + - 0 + - 85 + + COUNT ( * ) * 73 AS col0, 31 / - CAST ( + 74 AS INTEGER ) + + COUNT ( * ) * - 51 AS col0 +---- +-200 +-51 query I rowsort label-3362 SELECT DISTINCT - MAX ( ALL + 37 ) @@ -18093,8 +18315,11 @@ SELECT ALL 66 + 19, - 80 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(85\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( 85 ) AS col1, + COUNT ( * ) AS col1 +---- +-85 +1 query I rowsort SELECT ALL + 52 + - - 48 * 57 @@ -18432,8 +18657,12 @@ SELECT DISTINCT + + 78 col1 # Datafusion - Expected - 2 # Datafusion - Expected - -1014 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "Int64\(39\) \* Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 2 AS col0, + 39 * - 26 AS col0, + 4 + + + COUNT ( ALL 67 ) +---- +-1014 +2 +5 query I rowsort SELECT DISTINCT - 75 * + 85 AS col2 @@ -18594,8 +18823,11 @@ SELECT + 8 - - 2 + 88 + 23 * 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(\-33\)\)\) / Int64\(\-1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col2, - COUNT ( - 33 ) / - 1 AS col2 +---- +1 +1 query I rowsort SELECT ALL + ( + 80 ) + - 31 AS col0 @@ -18663,8 +18895,11 @@ SELECT - 24 * - + ( - + 1 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 30 AS col1, + 66 AS col1 +---- +30 +66 query I rowsort label-3544 SELECT COUNT ( * ) + 66 AS col1 @@ -18719,8 +18954,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 - - 62 AS col1, COALESCE ( - 10, + + COUNT ( * ) ) AS col1 +---- +-10 +138 query I rowsort label-3555 SELECT COALESCE ( + 52, + + 50, - 39 ) / CAST ( - 58 AS INTEGER ) col2 @@ -18815,8 +19053,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(12\) AS Int32\)\) AS col1" at position 0 and "Int64\(\-65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( + 12 AS INTEGER ) AS col1, - 65 AS col1 +---- +-12 +-65 query I rowsort SELECT 31 - 79 @@ -18944,8 +19185,11 @@ SELECT ALL + COUNT ( * ) + 8 / + SUM ( ALL 10 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col1" at position 0 and "Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 73 AS col1, - 30 AS col1 +---- +-30 +73 query I rowsort SELECT ALL - + 40 + ( + 80 ) AS col1 @@ -19114,8 +19358,12 @@ SELECT + 22 / 9 / - 61 * - 54 * COUNT ( * ), + 0 + 82 - - 31 AS col1 # Datafusion - Expected - 70 # Datafusion - Expected - 30 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(58\) / Int64\(2\) AS col2" at position 1 and "max\(CAST\(NULL AS Int32\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ( + 70 ), COUNT ( * ) + + 58 / + 2 AS col2, + MAX ( + CAST ( NULL AS INTEGER ) ) AS col2 +---- +30 +70 +NULL query I rowsort label-3631 SELECT - 74 + + 68 / - CAST ( + - 98 AS INTEGER ) @@ -20001,8 +20249,11 @@ 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\(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\. +query II valuesort SELECT - 24 / + ( + 68 ) * + COUNT ( * ) + + 32 + + - COUNT ( * ) * 73 * + 51 * - 92 AS col0, ( 92 ) AS col0 +---- +342548 +92 query I rowsort label-3802 SELECT ALL 77 + 27 / - 57 * - CAST ( - 30 AS INTEGER ) / - + 28 @@ -20378,8 +20629,12 @@ SELECT - + 70 + + 76 # Datafusion - Expected - 62 # Datafusion - Expected - -2916 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col0" at position 0 and "Int64\(\-28\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 62 AS col0, 99 + 45 * + - 67 AS col1, + - 28 AS col0 +---- +-28 +-2916 +62 query I rowsort SELECT 95 * - 59 + 27 @@ -20406,8 +20661,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 51 AS col2, 60 AS col2 +---- +-51 +60 query I rowsort label-3879 SELECT DISTINCT + - NULLIF ( + 92, - COUNT ( * ) ) AS col1 @@ -20481,8 +20739,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + SUM ( ALL - - 89 ) * 37 + - 45 * - - 93 AS col0, COUNT ( * ) + + 64 AS col0 +---- +-892 +65 query II rowsort label-3893 SELECT + ( - ( CAST ( NULL AS INTEGER ) ) ) AS col0, + 14 @@ -20910,8 +21171,11 @@ SELECT - 98 * 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \+ CASE Int64\(\-90\) WHEN \(\- coalesce\(CAST\(NULL AS Int32\), Int64\(83\)\)\) THEN NULL ELSE Int64\(77\) END AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +49 +NULL query II rowsort label-3974 SELECT + CASE 14 WHEN + 13 THEN + + 23 / + COUNT ( * ) * 24 WHEN - ( - 70 ) THEN - 77 END * + ( - - ( COUNT ( * ) ) ) + - - CAST ( 73 AS INTEGER ) + 86 * + 11 + 42, 75 / 2 + 96 AS col1 @@ -21263,8 +21527,11 @@ SELECT ( + COUNT ( - + 11 ) ) * + + 54 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(\-36\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 AS col2, ( - 36 ) * + + CAST ( + COUNT ( * ) AS INTEGER ) col2 +---- +-36 +62 query I rowsort SELECT ( 49 ) * + - 84 @@ -22108,8 +22375,11 @@ SELECT - COUNT ( DISTINCT + 28 ) * - 15 + + 37 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(41\)\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 41 col0, 94 AS col0 +---- +-41 +94 query I rowsort SELECT 11 * + 0 + 5 @@ -22125,8 +22395,11 @@ 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\(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\. +query II valuesort SELECT 42 AS col1, + COUNT ( * ) * - COUNT ( * ) * - 73 AS col1 +---- +42 +73 query I rowsort label-4208 SELECT + 33 * + COALESCE ( + 14, + COUNT ( * ) * - 93 ) + + - 75 AS col2 @@ -22147,8 +22420,11 @@ SELECT ALL + 97 * - COALESCE ( 37, 30, - 73 - - + 13, 18 ), - 28 AS col1 # 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 "Int64\(30\)" at position 0 and "Int64\(30\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 30, + 30 +---- +30 +30 query I rowsort label-4212 SELECT + MAX ( DISTINCT + 70 ) @@ -23612,8 +23888,11 @@ SELECT ALL - 94 + - - 64 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \+ Int64\(\-1\) AS col0" at position 0 and "Int64\(44\) \- Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 78 + - 1 AS col0, 44 - 17 AS col0 +---- +-79 +27 query I rowsort label-4496 SELECT DISTINCT SUM ( ALL 69 ) + + 24 @@ -24004,8 +24283,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 + - COUNT ( * ) AS col1, 57 col1 +---- +32 +57 query I rowsort SELECT 52 * + + 90 col0 @@ -24394,8 +24676,11 @@ SELECT ALL NULLIF ( - 28, 88 + + - 73 * - 55 * + 28 / - 15 ) + - 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2856 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \* Int64\(51\) AS col0" at position 0 and "Int64\(45\) \+ Int64\(96\) / Int64\(\-59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 56 * 51 AS col0, 45 + 96 / - 59 AS col0 +---- +2856 +44 query I rowsort SELECT ALL + - 42 * - 97 * - 51 @@ -24871,8 +25156,11 @@ SELECT + 11 / - 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1541 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* Int64\(\-67\) AS col1" at position 0 and "Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 23 * - 67 AS col1, + ( - 20 ) AS col1 +---- +-1541 +-20 query I rowsort label-4738 SELECT ALL ( - 21 ) * - + COUNT ( * ) * 44 + + 16 AS col2 @@ -25525,8 +25813,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col2, - 59 + 39 + 14 * - MIN ( ALL - 86 ) * - 43 + - 21 + - + 51 * - 98 col2 +---- +-1 +-46815 query I rowsort SELECT + 35 + - 30 AS col1 @@ -26016,8 +26307,11 @@ SELECT 92 * 21 + - ( + 10 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col1" at position 0 and "Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 82 col1, - 80 AS col1 +---- +-80 +-82 query I rowsort label-4958 SELECT + 0 * - 9 + - CAST ( NULL AS INTEGER ) AS col0 @@ -26063,8 +26357,11 @@ SELECT DISTINCT - 1 * ( SUM ( ALL - + 30 ) ) + - 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 137 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(26\)\) AS col0" at position 0 and "Int64\(55\) \+ Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( ALL + 26 ) AS col0, 55 + + 82 AS col0 +---- +137 +26 query I rowsort label-4967 SELECT + CASE 77 WHEN + 52 / 89 * COUNT ( * ) * + 9 * - 56 - - + COUNT ( * ) / + + NULLIF ( 31, + + 72 ) * + COUNT ( * ) * 92 THEN - - 90 - - NULLIF ( - 78, - - NULLIF ( 90, 5 ) ) END @@ -26369,8 +26666,11 @@ SELECT 59 / COUNT ( - 5 ) + + 6 * CAST ( + + COUNT ( * ) AS INTEGER ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col1" at position 0 and "Int64\(25\) \+ Int64\(\-4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 50 AS col1, + 25 + - 4 AS col1 +---- +-50 +21 query I rowsort SELECT DISTINCT - 13 - - NULLIF ( + - 71, 7 ) * + + 42 @@ -26444,8 +26744,11 @@ SELECT ALL 67 * - + 0 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 6048 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \+ Int64\(30\) AS col2" at position 0 and "Int64\(63\) \* Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 + + 30 AS col2, + 63 * 96 AS col2 +---- +6048 +95 query I rowsort label-5038 SELECT ALL 79 * + + CAST ( - ( + 1 ) AS INTEGER ) @@ -26626,8 +26929,11 @@ SELECT DISTINCT 26 + COUNT ( * ) + 17 + 73 * - + 59 + + - 87 * + + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- coalesce\(Int64\(\-92\), Int64\(\-5\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - - COALESCE ( - 92, - 5 * - - COUNT ( * ) ) ) AS col0, COUNT ( * ) AS col0 +---- +1 +92 query I rowsort label-5073 SELECT ALL - 92 + - 8 / + 90 @@ -26811,8 +27117,11 @@ SELECT ALL 93 * + - 7 + - 61 * - 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -2046 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col0" at position 0 and "Int64\(33\) \* Int64\(\-62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 22 AS col0, 33 * - 62 AS col0 +---- +-2046 +22 query I rowsort SELECT + 38 + - 99 AS col2 @@ -27304,8 +27613,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 83 AS col2, - COUNT ( * ) AS col2 +---- +-1 +83 query I rowsort label-5202 SELECT - MAX ( 2 ) @@ -27339,8 +27651,11 @@ SELECT 69 * - 77 * + - 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2170 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \+ CASE Int64\(62\) WHEN Int64\(\-45\) THEN \(\- Int64\(\-33\)\) ELSE Int64\(\-60\) END \+ Int64\(22\) \* Int64\(98\) AS col2" at position 0 and "Int64\(\-49\) \+ CAST\(Int64\(36\) AS Int32\) \+ Int64\(\-76\) / Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 74 + CASE + 62 WHEN - 45 THEN - - 33 ELSE + ( - 60 ) END + 22 * 98 AS col2, - 49 + CAST ( + 36 AS INTEGER ) + - 76 / 12 AS col2 +---- +-19 +2170 query I rowsort SELECT - CASE 51 WHEN - + 75 THEN + - ( - 24 ) + 37 * 39 - - 85 WHEN + 22 / - 14 THEN NULL ELSE NULL END @@ -27818,8 +28133,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) / Int64\(\-65\) \+ Int64\(\-94\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 80 / - 65 + - 94 AS col2, + 2 AS col2 +---- +-93 +2 query II rowsort label-5300 SELECT - 79 AS col2, COUNT ( DISTINCT - 85 ) @@ -28207,8 +28525,11 @@ SELECT COALESCE ( + CASE + NULLIF ( + 7, - + 94 ) WHEN 71 + - ( - - 27 ) THEN - # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2276 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE avg\(DISTINCT Int64\(\-56\)\) WHEN Int64\(\-25\) THEN Int64\(\-43\) END AS col1" at position 0 and "Int64\(63\) / Int64\(43\) \+ Int64\(99\) \* Int64\(\-23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CASE AVG ( DISTINCT - 56 ) WHEN - 25 THEN - 43 END AS col1, 63 / 43 + + 99 * - 23 col1 +---- +-2276 +NULL query I rowsort SELECT DISTINCT + 91 - + + 84 AS col2 @@ -28387,8 +28708,12 @@ SELECT - - 92 + 52 * - + 94 + - - 66 AS col2 # Datafusion - Expected - -88 # Datafusion - Expected - 32 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 1 and "Int64\(6\) \+ \(\- sum\(\(\- Int64\(30\)\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 88, + 32 AS col2, 6 + - + SUM ( - ( + + 30 ) ) AS col2 +---- +-88 +32 +36 query I rowsort label-5408 SELECT DISTINCT + MAX ( ALL + 95 ) / 89 @@ -28638,8 +28963,11 @@ SELECT ALL - ( - 32 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "Int64\(\-44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 9 AS col2, - 44 AS col2 +---- +-44 +9 query II rowsort SELECT - 90 * + 78 + - 2, 78 * - 79 + + 94 * 46 AS col2 @@ -28935,8 +29263,11 @@ SELECT + 69 - 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -4183 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* Int64\(\-1\) / CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(89\) \* Int64\(\-47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 75 * - 1 / CAST ( NULL AS INTEGER ) AS col2, 89 * - 47 AS col2 +---- +-4183 +NULL query I rowsort label-5513 SELECT - COALESCE ( 60, 96 / + + COUNT ( DISTINCT + 25 ) ) @@ -29027,8 +29358,11 @@ SELECT 23 * - 62 + - CAST ( + 63 AS INTEGER ) * - + 42 - 65 * - 82 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 27 AS col0, + 66 AS col0 +---- +27 +66 query I rowsort label-5530 SELECT - CASE - 34 WHEN NULLIF ( - 66, + 88 + + MIN ( DISTINCT 52 ) ) THEN + 73 / - 76 ELSE NULL END + 89 + COUNT ( * ) * - - 74 @@ -29137,8 +29471,11 @@ SELECT 3 * + 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 5609 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "Int64\(\-71\) \* \(\- nullif\(Int64\(79\), Int64\(7\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 31 col2, ( - 71 ) * - NULLIF ( 79, + 7 ) AS col2 +---- +31 +5609 query I rowsort label-5551 SELECT DISTINCT - COUNT ( * ) - + + 27 @@ -29207,8 +29544,11 @@ 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\(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\. +query II valuesort SELECT 77 * + - ( - 69 ) + COALESCE ( COUNT ( * ), - 18 ) AS col0, - 73 AS col0 +---- +-73 +5314 query II rowsort label-5564 SELECT 72 * - COUNT ( * ) - + 61 * + 69 * - COUNT ( * ) + - 25 + - 74 AS col0, + 50 AS col2 @@ -29283,8 +29623,11 @@ SELECT + 66 / NULLIF ( + - MAX ( - - 14 ), 2 ) * - 53 * + 86 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 30 AS col0, COUNT ( * ) AS col0 +---- +1 +30 query I rowsort SELECT ALL - + 11 - + 40 AS col1 @@ -30121,8 +30464,11 @@ SELECT - - 62 * - 33 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 5488 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-79\) AS Int32\)\) AS col2" at position 0 and "Int64\(56\) \* Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + CAST ( - 79 AS INTEGER ) col2, 56 * 98 AS col2 +---- +5488 +79 query I rowsort label-5737 SELECT ALL + 23 / 59 / 37 AS col0 @@ -30761,8 +31107,11 @@ SELECT + 2 - - 38 - 97 - - + 1 + + 73 / + 38 + + NULLIF ( + + 74, 68 + 52 + COAL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(72\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, 72 * + COUNT ( * ) AS col0 +---- +1 +72 query I rowsort SELECT - 61 * - 26 @@ -30828,8 +31177,11 @@ 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\(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\. +query II valuesort SELECT - 65 * + NULLIF ( COUNT ( * ), + 61 * + 45 * COUNT ( * ) * - COUNT ( * ) ) AS col1, + MAX ( DISTINCT + 85 ) - - + 76 AS col1 +---- +-65 +161 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -31154,8 +31506,11 @@ SELECT + - 80 AS col0, + 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 152 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "Int64\(66\) \+ Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 53 AS col1, + 66 + + 86 AS col1 +---- +152 +53 query II rowsort SELECT ALL + 69 AS col2, 64 AS col1 @@ -31374,8 +31729,11 @@ SELECT + 44 * - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "sum\(Int64\(44\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 46 AS col2, SUM ( + 44 ) AS col2 +---- +44 +46 query I rowsort SELECT + COALESCE ( + 89, + - 1 ) col1 @@ -32459,8 +32817,11 @@ NULL # 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\(\-75\) AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 75 AS col2, + 31 AS col2 +---- +-75 +31 query I rowsort label-6190 SELECT 34 * + - 64 - + 58 + - - 94 + + 29 / 17 AS col1 @@ -32602,8 +32963,11 @@ SELECT NULLIF ( + 92, - - ( + + COALESCE ( + COUNT ( * ), + + 3 * MIN ( 82 ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 184 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 0 and "Int64\(91\) \+ Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 89 AS col1, 91 + + 93 AS col1 +---- +184 +89 query I rowsort label-6218 SELECT ALL + COALESCE ( - CAST ( NULL AS INTEGER ), + 19 ) AS col1 @@ -32693,8 +33057,11 @@ SELECT - - COUNT ( * ) * - 24 * COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col0" at position 0 and "max\(DISTINCT Int64\(\-67\)\) / Int64\(53\) \+ Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 col0, MAX ( DISTINCT - 67 ) / + + 53 + + + 18 col0 +---- +17 +5 query I rowsort label-6235 SELECT DISTINCT - - COUNT ( * ) * 52 - + NULLIF ( + COUNT ( * ), + - 29 + - - 2 ) @@ -32729,8 +33096,11 @@ SELECT - NULLIF ( + 80, - COUNT ( * ) + 26 * - COUNT ( * ) * COUNT ( * ) ) - + 4 # 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 "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 II valuesort SELECT - 12 AS col2, 80 AS col2 +---- +-12 +80 query I rowsort label-6242 SELECT + 52 + + + CASE - ( - 66 ) WHEN + COUNT ( ALL CAST ( - 42 AS INTEGER ) ) THEN 11 WHEN 73 THEN NULL WHEN 21 - 29 THEN NULL END + - 53 * + 78 @@ -32900,8 +33270,11 @@ SELECT 99 * - CAST ( 28 AS INTEGER ) + + 52 * - 0 + 40 * - + COALESCE ( + 61, 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1116 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* Int64\(31\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 36 * + 31 AS col2, + 14 AS col2 +---- +-1116 +14 query I rowsort SELECT ALL - ( 10 ) * + + 69 @@ -32988,8 +33361,11 @@ SELECT ALL 84 * + + 61 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 87 AS col2, + 55 col2 +---- +-87 +55 query I rowsort SELECT ALL 2 * - - 51 AS col2 @@ -33004,14 +33380,20 @@ SELECT DISTINCT COUNT ( * ) * 52 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 col0" at position 0 and "count\(Int64\(58\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 AS col0, COUNT ( ALL + + 58 ) AS col0 +---- +1 +80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17000 # Datafusion - Expected - -1190 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* \(\- Int64\(\-20\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(17\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(17\) \* Int64\(\-70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 * - ( + - 20 ) * + COUNT ( * ) * + 17 * COUNT ( * ) AS col0, 17 * - 70 AS col0 +---- +-1190 +17000 query I rowsort SELECT 86 * + + NULLIF ( + - 45, - + ( - 42 ) ) col2 @@ -33653,8 +34035,11 @@ SELECT 54 * - - 36 AS col0, - 93 * + - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(\(\- Int64\(56\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 79 + + CAST ( NULL AS INTEGER ) col1, COUNT ( ALL - + ( 56 ) ) AS col1 +---- +1 +NULL query I rowsort SELECT ALL + 46 * 11 col2 @@ -34261,8 +34646,11 @@ SELECT COUNT ( * ) + + + 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 1836 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col1" at position 0 and "Int64\(34\) \* coalesce\(Int64\(54\), nullif\(\(\- CASE Int64\(\-17\) WHEN coalesce\(\(\- CASE \(\- \(\- Int64\(18\)\)\) WHEN \(\- nullif\(\(\- Int64\(22\)\), Int64\(81\)\)\) \+ max\(nullif\(Int64\(50\), Int64\(66\) \* nullif\(Int64\(12\), Int64\(\-73\)\)\)\) THEN NULL WHEN CAST\(NULL AS Int32\) / Int64\(14\) THEN Int64\(68\) \+ Int64\(48\) / Int64\(81\) END\), \(\- max\(Int64\(98\)\)\), Int64\(\-87\)\) \* Int64\(76\) \+ Int64\(62\) THEN Int64\(59\) / Int64\(53\) END\), Int64\(67\)\), Int64\(85\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 2 AS col1, 34 * + COALESCE ( + + 54, NULLIF ( - CASE - 17 WHEN + ( COALESCE ( - CASE - - ( + 18 ) WHEN - NULLIF ( + ( - + 22 ), + 81 ) + MAX ( ALL NULLIF ( 50, 66 * NULLIF ( + 12, - 73 ) ) ) THEN NULL WHEN CAST ( NULL AS INTEGER ) / 14 THEN 68 + + 48 / 81 END, - MAX ( 98 ), - 87 ) ) * 76 + + 62 THEN 59 / 53 END, + 67 ), 85 ) AS col1 +---- +-2 +1836 query I rowsort label-6531 SELECT 63 + - 49 + + 69 + COUNT ( * ) * + + 62 - + + 75 AS col2 @@ -34417,8 +34805,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( ALL - ( - 26 ) ) - + 62 + + 46 + - COUNT ( * ) * + 3 + - + COALESCE ( - ( 89 ), + 46 ) AS col1, - 83 * 26 col1 +---- +-2158 +71 query I rowsort SELECT ( - - 94 ) + - 86 col0 @@ -34492,8 +34883,11 @@ SELECT ALL - COUNT ( * ) - 98 AS col2 # 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 "Int64\(2\) / Int64\(52\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 2 / 52 AS col2, 5 AS col2 +---- +0 +5 query II rowsort SELECT + 26 + - 3, - NULLIF ( - 71, - - 92 ) AS col1 @@ -34951,8 +35345,11 @@ SELECT ALL - 75 - 31 * - 88 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 "avg\(CAST\(NULL AS Float64\)\) \* \(\- Int64\(78\)\) AS col1" at position 0 and "Int64\(8\) / Int64\(\-64\) \* Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT AVG ( ALL + CAST ( NULL AS FLOAT8 ) ) * - ( 78 ) col1, 8 / + - 64 * + + 37 AS col1 +---- +0 +NULL query II rowsort label-6660 SELECT ALL + + 26 * - 96 AS col0, 37 * + COUNT ( * ) * - + 55 @@ -34979,8 +35376,11 @@ SELECT - NULLIF ( 44, - - 96 + 73 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -925 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* \(\- Int64\(37\)\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 * - + 37 AS col0, 93 AS col0 +---- +-925 +93 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -35601,8 +36001,11 @@ SELECT ALL 34 AS col2, + 40 col1 # 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 "Int64\(\-36\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 36 AS col2, 11 AS col2 +---- +-36 +11 query I rowsort label-6782 SELECT NULLIF ( + 95, 91 * + 16 + + - CASE + + 14 WHEN - - SUM ( ALL ( + 8 ) ) THEN 82 END + + 49 ) * - - 96 + CAST ( NULL AS INTEGER ) @@ -35846,8 +36249,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 170 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \+ Int64\(88\) AS col0" at position 0 and "Int64\(52\) / Int64\(28\) \+ Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 82 + + 88 AS col0, 52 / + 28 + + - 56 AS col0 +---- +-55 +170 query I rowsort SELECT - NULLIF ( - + 22, 96 ) AS col1 @@ -35971,8 +36377,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3372 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* Int64\(77\) \+ Int64\(\-93\) AS col1" at position 0 and "Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 45 * 77 + - 93 col1, + 58 AS col1 +---- +3372 +58 query I rowsort SELECT ALL + 9 * + 55 + 10 + - 5 AS col1 @@ -36070,8 +36479,11 @@ NULL # 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 col1" at position 0 and "Int64\(\-30\) \+ Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 73 AS col1, - 30 + 53 AS col1 +---- +23 +73 query I rowsort label-6871 SELECT - 91 / + - ( - 95 ) AS col1 @@ -36086,8 +36498,11 @@ SELECT ALL 3 / 27 * - COUNT ( ALL 61 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \- \(\- avg\(\(\- Int64\(5\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL 51 AS col2, CAST ( NULL AS INTEGER ) - - + AVG ( - + 5 ) col2 +---- +51 +NULL query I rowsort label-6874 SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 @@ -36197,8 +36612,12 @@ SELECT + 37 - 16 + - ( 29 ) * - 66 # Datafusion - Expected - 85 # 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 1 and "Int64\(17\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 85, + 73 AS col2, 17 AS col2 +---- +17 +73 +85 query I rowsort SELECT ALL - 36 - 43 AS col0 @@ -36421,8 +36840,11 @@ SELECT - NULLIF ( - 67, + 62 + + 36 + - - 82 ) - - 17 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 "Int64\(94\) / Int64\(\-38\) \- Int64\(\-30\) AS col1" at position 0 and "Int64\(\-26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 / - 38 - - 30 AS col1, - 26 AS col1 +---- +-26 +28 query I rowsort label-6936 SELECT DISTINCT - SUM ( DISTINCT 55 ) + - - 29 @@ -36477,8 +36899,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "\(\- Int64\(\-4\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 74 col2, + ( - - 4 ) AS col2 +---- +4 +74 query I rowsort label-6946 SELECT ALL COUNT ( * ) * - 31 + - 63 * - 39 + - 36 AS col0 @@ -37070,8 +37495,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) - - COUNT ( ALL - + 46 ) + - 60 * 20 / - + 77 AS col0, + 59 * + + 51 col0 +---- +15 +3009 query II rowsort label-7057 SELECT - 25 col0, + MAX ( 8 ) @@ -37099,8 +37527,11 @@ SELECT DISTINCT + 47 * + 53 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 2431 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "Int64\(70\) \* max\(Int64\(34\)\) \+ Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 90 AS col1, 70 * + MAX ( + 34 ) + + 51 AS col1 +---- +2431 +90 query I rowsort label-7062 SELECT NULLIF ( - + 49, + 3 ) * + - SUM ( + 12 ) * CAST ( NULL AS INTEGER ) / + 6 @@ -37348,8 +37779,11 @@ SELECT - ( + 58 ) + - MAX ( + 59 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -6902 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) / CAST\(\(\- Int64\(\-36\)\) AS Int32\) \* \(\- Int64\(0\)\) \- Int64\(79\) \* Int64\(88\) \- Int64\(\-50\) AS col2" at position 0 and "Int64\(51\) / \(\- Int64\(\-76\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 / CAST ( - - 36 AS INTEGER ) * + - ( 0 ) - 79 * 88 - - 50 AS col2, + 51 / - - 76 AS col2 +---- +-6902 +0 query I rowsort label-7110 SELECT - 45 * + SUM ( + 86 ) @@ -37499,8 +37933,11 @@ SELECT COUNT ( - 95 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1052 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-25\)\) \* Int64\(42\) \+ Int64\(2\) AS col1" at position 0 and "Int64\(\-72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 25 * + 42 + 2 AS col1, - 72 AS col1 +---- +-72 +1052 query I rowsort label-7139 SELECT ALL + + 93 / COUNT ( + ( - 39 ) ) + - + 5 @@ -37728,14 +38165,20 @@ 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\(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\. +query RI valuesort SELECT 86 + + 10 * CAST ( NULL AS FLOAT8 ) + + ( + - 55 ) - + 68 / - - 85 + + 11 * ( - COUNT ( * ) ) col2, - 87 + - COUNT ( * ) * MIN ( + 19 ) - - COUNT ( * ) * 53 / + + 22 AS col2 +---- +-104 +NULL # 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 "nullif\(Int64\(95\), Int64\(\-63\) \+ Int64\(8\)\) \* count\(\(\- CASE Int64\(25\) WHEN Int64\(\-75\) / Int64\(\-74\) THEN NULL WHEN Int64\(\-56\) \* Int64\(61\) THEN Int64\(\-49\) ELSE NULL END\)\) AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + NULLIF ( + + 95, - 63 + + 8 ) * ( COUNT ( + - CASE + 25 WHEN - 75 / - 74 THEN NULL WHEN - 56 * 61 THEN - 49 ELSE NULL END ) ) AS col1, + 57 AS col1 +---- +0 +57 query I rowsort SELECT ALL - 47 + + + 76 @@ -37848,8 +38291,11 @@ SELECT + 98 * - 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5340 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* \(\- Int64\(78\)\) \+ Int64\(\-53\) \+ Int64\(16\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 68 * - + 78 + - 53 + + + 16 + + COUNT ( * ) AS col1, - 7 col1 +---- +-5340 +-7 query I rowsort SELECT + - 40 + 86 AS col2 @@ -38123,8 +38569,11 @@ SELECT - 83 * + ( 73 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 8736 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(48\)\) AS col0" at position 0 and "Int64\(4\) \* Int64\(\-84\) \* Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MIN ( DISTINCT 48 ) AS col0, + 4 * + - 84 * - 26 col0 +---- +48 +8736 query II rowsort label-7259 SELECT 85 * + COUNT ( * ) + + - 46, - 78 AS col0 @@ -38284,8 +38733,11 @@ SELECT 46 * + 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7178 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-97\) \* Int64\(74\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) * - 97 * 74 col2, + COUNT ( * ) AS col2 +---- +-7178 +1 query II rowsort label-7289 SELECT ALL - 91, 73 + + COALESCE ( + 96, + NULLIF ( 79, ( - 25 ) + + 41 + - - 29 ) / - - 86, 78, + - 62 ) AS col0 @@ -38379,8 +38831,11 @@ SELECT + COALESCE ( 28, COUNT ( DISTINCT - 46 ) * + 35, + CAST ( NULL AS INTEGER # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 79 AS col1, + COUNT ( * ) AS col1 +---- +1 +79 query I rowsort SELECT DISTINCT 45 + - 15 AS col0 @@ -38468,8 +38923,11 @@ SELECT ALL - 49 * + ( + COUNT ( * ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \+ Int64\(38\) \+ Int64\(\-29\) \* Int64\(\-62\) \+ CAST\(\(\- CASE Int64\(69\) WHEN Int64\(\-9\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) \- Int64\(\-58\) \* Int64\(\-19\) WHEN CAST\(NULL AS Int32\) \* Int64\(71\) \* Int64\(91\) THEN NULL ELSE NULL END\) AS Int32\) \- Int64\(\-69\) AS col2" at position 0 and "Int64\(64\) \+ sum\(CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +NULL +NULL query I rowsort label-7323 SELECT + CASE + COUNT ( * ) WHEN - - CASE + 47 WHEN - CASE - COUNT ( * ) WHEN + ( - + 56 ) THEN - CASE + CASE - 24 WHEN - ( + 95 ) * + - NULLIF ( - 64, + COUNT ( * ) ) / 84 * + 98 + - 75 + - - 40 + 87 / + NULLIF ( + - 42, - 61 + - - 8 * + ( + - 42 ) * - 89 * ( COUNT ( * ) ) * 3 ) THEN + COALESCE ( + COUNT ( * ), + 32 + + 4 ) + + 71 + 89 END WHEN - 63 * - 22 THEN + ( 75 ) * AVG ( DISTINCT 84 + ( - 94 ) ) + - MAX ( ALL - 74 ) * - CAST ( ( COALESCE ( AVG ( DISTINCT 11 ), 58 ) ) - 85 AS INTEGER ) WHEN + COUNT ( * ) + CASE - CAST ( NULL AS INTEGER ) WHEN 47 * + COUNT ( * ) THEN + 60 + - 38 ELSE NULL END THEN NULL ELSE - 66 END / + COUNT ( * ) ELSE + ( - 89 ) * 16 END THEN NULL WHEN + 73 * COUNT ( ALL ( + 68 ) ) + - 8 THEN - 54 END THEN + 41 END * + 52 AS col0 @@ -38732,8 +39190,11 @@ SELECT - 61 * - - NULLIF ( 20, ( + 37 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -316840 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(\-89\)\) \* Int64\(89\) \* \(\- Int64\(\-40\)\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( DISTINCT - 89 ) * 89 * - - 40 col1, 27 AS col1 +---- +-316840 +27 query I rowsort SELECT - NULLIF ( + ( + ( - + 27 ) ), + + 88 ) @@ -38781,8 +39242,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 2752 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col0" at position 0 and "Int64\(64\) \* Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 65 AS col0, 64 * 43 AS col0 +---- +-65 +2752 query I rowsort label-7383 SELECT DISTINCT 24 + + 87 + 95 - + 58 / - - 87 col2 @@ -38850,8 +39314,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, 7 * + NULLIF ( 80, + 56 ) AS col2 +---- +-1 +560 query II rowsort label-7396 SELECT ALL - + 7 col2, - NULLIF ( + 46, + - 55 ) + + + COALESCE ( + - 21, 68 + 49 + + - 67 / 2 * - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) * + - 63 * + - 45 * - 30 ) * 17 @@ -39052,8 +39519,11 @@ SELECT ALL - 66 * 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 106 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(8\) AS Int32\) \+ Int64\(98\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- Int64\(\-4\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( + + 8 AS INTEGER ) + 98 AS col1, + COUNT ( * ) / - - 4 AS col1 +---- +0 +106 query I rowsort SELECT - 48 * - 59 + 67 @@ -39389,8 +39859,11 @@ SELECT ALL + + 75 * - 58 * 61 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(97\)\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + ( 97 ) AS col1, + 76 col1 +---- +-97 +76 query I rowsort label-7500 SELECT DISTINCT + 69 + 7 + - COUNT ( * ) AS col2 @@ -39525,8 +39998,12 @@ SELECT 82 + - 27 * + 88 + - 84 - + - 96 * - 68 AS col0, COUNT ( * ) + COALESCE ( # Datafusion - Expected - -26 # Datafusion - Expected - 1 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(78\)\) AS col1" at position 1 and "\(\- CAST\(coalesce\(Int64\(\-71\), sum\(DISTINCT Int64\(97\)\) \+ \(\- Int64\(\-53\)\)\) AS Int32\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + 26, COUNT ( + 78 ) col1, + + ( - CAST ( COALESCE ( - 71, + SUM ( DISTINCT 97 ) + - - 53 ) AS INTEGER ) ) AS col1 +---- +-26 +1 +71 query I rowsort label-7526 SELECT ALL CAST ( NULL AS INTEGER ) * + 94 + 47 @@ -39627,8 +40104,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 32 AS col0, + 90 * + COUNT ( * ) * + 51 AS col0 +---- +-32 +4590 query I rowsort label-7546 SELECT 68 + + ( + CASE - 63 WHEN 57 THEN - + CASE - 61 WHEN - 41 THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN 2 THEN NULL WHEN - 86 + - + 85 * - + 84 - 45 - CASE + 53 WHEN - 38 + - 36 + - - 46 THEN NULL WHEN - + 95 THEN + 26 + - - COUNT ( * ) WHEN + - 43 * 79 + 26 THEN NULL WHEN + 3 THEN NULL ELSE - 40 * - COUNT ( ALL + - 54 ) * CAST ( NULL AS INTEGER ) * + 58 + - - 84 END * - COUNT ( * ) * 60 / - - 89 THEN - COALESCE ( + COUNT ( * ), + 35 ) * + 50 END * + CAST ( NULL AS INTEGER ) WHEN - + NULLIF ( - 0, CAST ( - COUNT ( * ) AS INTEGER ) ) THEN NULL ELSE NULL END ) + - + 47 - - 38 * + 75 @@ -39821,8 +40301,11 @@ 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\(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\. +query II valuesort SELECT 63 AS col0, CASE + COUNT ( * ) WHEN 70 THEN NULL WHEN 83 THEN - 90 ELSE NULL END AS col0 +---- +63 +NULL query I rowsort label-7583 SELECT - + COUNT ( * ) + - 36 / + 92 + 59 AS col0 @@ -40215,8 +40698,11 @@ SELECT ALL 29 * - - 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 92 AS col0, + COUNT ( * ) AS col0 +---- +1 +92 query I rowsort SELECT ALL ( - - 94 ) AS col1 @@ -40388,8 +40874,12 @@ SELECT ALL + 91 * ( + 14 ) # Datafusion - Expected - 0 # Datafusion - Expected - 1607 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* Int64\(37\) / Int64\(57\) / \(\- min\(Int64\(\-50\)\)\) AS col0" at position 0 and "Int64\(27\) \+ \(\- Int64\(72\)\) \* \(\- CASE WHEN NOT Int64\(71\) BETWEEN coalesce\(\(\- nullif\(Int64\(\-83\), Int64\(5\)\)\), Int64\(79\)\) AND CAST\(NULL AS Int32\) \+ Int64\(\-29\) THEN \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), nullif\(sum\(DISTINCT Int64\(\-51\)\), \(\- Int64\(\-8\)\) \* Int64\(31\)\) \+ Int64\(11\)\)\) WHEN NOT NULL IS NOT NULL THEN NULL END\) \+ Int64\(75\) \* Int64\(21\) \+ \(\- Int64\(\-78\)\) \+ Int64\(\-69\) / Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-77 +0 +1607 query I rowsort label-7692 SELECT COUNT ( * ) + 66 @@ -40972,8 +41462,11 @@ SELECT + 81 * + - 91 + - 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col0" at position 0 and "Int64\(47\) \+ Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 58 col0, + 47 + + 85 col0 +---- +-58 +132 query I rowsort label-7807 SELECT COUNT ( DISTINCT + 96 ) + + 5 + - 9 @@ -42002,8 +42495,11 @@ SELECT + COUNT ( - 40 ) * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-90\)\)\) / Int64\(\-26\) / CAST\(NULL AS Int32\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-59\) AS col0" at position 0 and "Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + SUM ( - 90 ) / - 26 / + + CAST ( NULL AS INTEGER ) - + COUNT ( * ) * - 59 AS col0, - 66 AS col0 +---- +-66 +NULL query I rowsort label-8003 SELECT - NULLIF ( + 95, - MIN ( DISTINCT 93 ) * - 13 ) + - - COUNT ( * ) @@ -42342,8 +42838,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 7 + + 75 + + 46 AS col2, 90 * + - COUNT ( * ) AS col2 +---- +-90 +114 query I rowsort label-8069 SELECT 8 * + CASE 26 WHEN - + ( COUNT ( * ) ) + - + 7 * CAST ( + COUNT ( * ) AS INTEGER ) * + 46 THEN NULL ELSE NULLIF ( - NULLIF ( - COUNT ( * ), - 50 ), 29 * - 60 + + CAST ( NULL AS INTEGER ) ) * + 71 END * 89 @@ -42447,8 +42946,11 @@ SELECT 27 * - + MAX ( DISTINCT 16 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - -144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col2" at position 0 and "Int64\(25\) \* Int64\(\-3\) \+ \(\- Int64\(69\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 98 col2, 25 * - 3 + - + 69 AS col2 +---- +-144 +-98 query I rowsort label-8089 SELECT 65 + - + COUNT ( * ) @@ -42524,8 +43026,11 @@ SELECT ALL 90 * - 6 + - - 57 + - 77 + 40 * - - 78 AS col0, + 89 - - - ( - 42 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 28 col2, ( COUNT ( * ) ) AS col2 +---- +-28 +1 query II rowsort label-8103 SELECT DISTINCT + + 70 AS col1, + ( + 83 ) - 57 * - ( 87 ) * + 2 + + - COUNT ( * ) AS col2 @@ -42586,8 +43091,11 @@ SELECT - NULLIF ( ( + 39 ), - 71 + 31 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-54\), Int64\(2\) / Int64\(70\)\) \- Int64\(18\) \+ \(\- \(\- count\(DISTINCT Int64\(88\)\)\)\) / \(\- min\(Int64\(22\)\)\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT NULLIF ( - 54, 2 / + 70 ) - + 18 + - - COUNT ( DISTINCT 88 ) / - MIN ( + 22 ) / CAST ( NULL AS INTEGER ) AS col1, + 14 AS col1 +---- +14 +NULL query I rowsort SELECT ALL ( 85 ) - + 66 @@ -42603,8 +43111,11 @@ SELECT - 65 * - COUNT ( * ), - 82 * - MAX ( 33 ) + 39 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5700 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) \* Int64\(\-60\) AS col2" at position 0 and "coalesce\(\(\- Int64\(8\)\), count\(Int64\(1\)\) AS count\(\*\) \* Int64\(33\), Int64\(38\) \* CASE Int64\(54\) WHEN \(\- nullif\(\(\- CAST\(NULL AS Int32\)\), Int64\(39\)\)\) / Int64\(42\) THEN Int64\(\-40\) \* Int64\(\-44\) \+ Int64\(64\) ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-8 +5700 query II rowsort SELECT + 29 * 64 col1, 31 + + - 82 @@ -43334,8 +43845,11 @@ SELECT DISTINCT - - 19 + + + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col1" at position 0 and "min\(\(\- Int64\(53\)\)\) \+ Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 89 AS col1, ( + MIN ( - + 53 ) ) + + + ( 15 ) AS col1 +---- +-38 +-89 query II rowsort SELECT - 39, 87 AS col1 @@ -43399,8 +43913,11 @@ SELECT ALL COUNT ( * ) / + 58 + - 42 + - + 31 + - - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5621 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(66\)\) \+ Int64\(55\) \+ Int64\(\-99\) \* Int64\(58\) AS col1" at position 0 and "coalesce\(\(\- Int64\(\-63\)\), Int64\(\-25\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( ALL + 66 ) + + 55 + + - 99 * + 58 AS col1, + COALESCE ( - - 63, + - 25 ) AS col1 +---- +-5621 +63 query II rowsort SELECT 0 * - 66 * + - 87 + 35 * - - 34, 85 * - - 11 col1 @@ -43543,8 +44060,11 @@ SELECT ALL + 5 * + + SUM ( - 65 ) AS col0, - 59 # 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 col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 AS col2, 30 col2 +---- +22 +30 query I rowsort label-8296 SELECT - 94 / + + 91 + - COUNT ( * ) + - 7 AS col0 @@ -44089,8 +44609,11 @@ SELECT 6 + - 42 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - 399 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col1" at position 0 and "Int64\(7\) \* Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 80 AS col1, 7 * + 57 col1 +---- +-80 +399 query I rowsort label-8401 SELECT 15 * - 27 * 64 * - + 38 * - CAST ( - 50 AS INTEGER ) AS col2 @@ -44246,8 +44769,11 @@ SELECT 9 * - 79 # 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 "Int64\(80\) / Int64\(\-57\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 / - 57 col0, + 75 col0 +---- +-1 +75 query II rowsort label-8431 SELECT 96 + - - COUNT ( * ) AS col0, CASE - - 16 WHEN + 20 THEN - + 21 / + 51 WHEN 34 + - 68 THEN + COALESCE ( 49, - 75 ) * - 53 / - + 56 * + + COUNT ( * ) ELSE ( - + 47 ) * COUNT ( * ) END AS col1 @@ -44322,8 +44848,11 @@ SELECT ALL 30 * 81 * - 3 + - COUNT ( * ) - - 52 * - 55 + - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 / + + COUNT ( * ) AS col0, 67 AS col0 +---- +67 +77 query I rowsort SELECT + 91 * - 6 AS col0 @@ -44457,8 +44986,11 @@ SELECT DISTINCT + 66 * 45 # 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 Int64\(33\) WHEN Int64\(\-70\) THEN Int64\(\-38\) 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 II valuesort SELECT ALL CASE + 33 WHEN - 70 THEN - 38 END AS col1, - 64 AS col1 +---- +-64 +NULL query I rowsort SELECT - 4 * + 19 @@ -44823,8 +45355,11 @@ SELECT ALL COUNT ( + CAST ( - 47 AS INTEGER ) ) / - 8 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(30\)\) \- Int64\(58\) AS col1" at position 0 and "Int64\(37\) \* Int64\(68\) \* \(\- Int64\(67\)\) / CAST\(NULL AS Int32\) \* Int64\(\-8\) \- \(\- Int64\(80\)\) \+ \(\- Int64\(45\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + 30 ) - 58 AS col1, + 37 * + 68 * - ( 67 ) / CAST ( NULL AS INTEGER ) * - 8 - - + 80 + - ( 45 ) AS col1 +---- +-88 +NULL query I rowsort SELECT 8 + - - 58 + + + 0 + - ( - 30 ) AS col0 @@ -45052,8 +45587,11 @@ 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\(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\. +query II valuesort SELECT + 22 AS col0, - COUNT ( * ) * 12 + - ( + + COUNT ( * ) ) + 28 col0 +---- +15 +22 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -45263,8 +45801,11 @@ 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\(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\. +query II valuesort SELECT ALL - SUM ( 22 ) + - + 66 AS col0, COUNT ( * ) + - - 12 + - - 53 * - + COUNT ( * ) + 13 / - - 31 AS col0 +---- +-40 +-88 query I rowsort SELECT DISTINCT + CASE + 97 WHEN + 74 THEN + 41 WHEN + 76 THEN - 28 END AS col2 @@ -45536,8 +46077,11 @@ SELECT + COUNT ( * ) * - 61 + 2 - + 8 * + 82 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) \+ Int64\(46\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 38 + 46 AS col2, 48 col2 +---- +48 +8 query I rowsort SELECT + ( + COALESCE ( - 0, 36 * - - ( 24 ) ) ) @@ -45932,8 +46476,11 @@ SELECT + - COUNT ( * ) / 4 * + + ( 46 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3300 # Datafusion - Expected - -6965909 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-44\)\) \* Int64\(75\) AS col0" at position 0 and "Int64\(91\) \- Int64\(\-43\) \* Int64\(50\) \* Int64\(90\) \* Int64\(\-36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 44 * + 75 AS col0, + 91 - - 43 * + 50 * 90 * + - 36 AS col0 +---- +-6965909 +3300 query I rowsort SELECT - + 75 + - - 41 * + 51 AS col2 @@ -45963,8 +46510,11 @@ SELECT ALL - - 63 * - - 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col1" at position 0 and "\(\- Int64\(\-96\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 97 AS col1, - ( - 96 ) AS col1 +---- +96 +97 query I rowsort label-8756 SELECT ALL - - 12 * 0 * - 27 + + MIN ( + - CAST ( NULL AS INTEGER ) ) + - ( COUNT ( * ) ) + + 60 @@ -46036,8 +46586,11 @@ 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\(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\. +query II valuesort SELECT ALL 94 * - COUNT ( * ) AS col0, + MAX ( - + CASE - 24 WHEN - 11 THEN + 55 * + + 5 * 22 ELSE NULL END ) AS col0 +---- +-94 +NULL query I rowsort label-8770 SELECT COUNT ( * ) + + CAST ( 61 AS INTEGER ) @@ -46352,8 +46905,11 @@ SELECT ALL - NULLIF ( - - COUNT ( * ), - 13 ) + - + ( - 16 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 945 -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\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 63 col0, + 45 * + 21 AS col0 +---- +63 +945 query II rowsort SELECT ALL + 72, 68 AS col2 @@ -47154,8 +47710,11 @@ SELECT - + 26 + - - ( + 21 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col0" at position 0 and "\(\- CASE Int64\(\-13\) WHEN \(\- max\(DISTINCT Int64\(86\)\)\) \* \(\- Int64\(\-19\)\) \* Int64\(49\) \+ Int64\(59\) \+ Int64\(33\) THEN \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(\-29\)\) \+ Int64\(\-12\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(\-72\)\), Int64\(9\) \* Int64\(0\)\)\) \+ Int64\(\-40\) / Int64\(75\) \+ Int64\(80\) WHEN Int64\(\-10\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-27\) \- count\(DISTINCT \(\- CAST\(Int64\(91\) AS Int32\)\)\) \+ Int64\(66\) THEN \(\- CAST\(Int64\(37\) AS Float64\)\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +-50 +NULL query I rowsort SELECT DISTINCT + - 21 + 21 AS col2 @@ -47541,8 +48100,11 @@ 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\(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\. +query II valuesort 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 +---- +-23 +NULL query I rowsort SELECT 6 + + 12 - 45 + 54 + - NULLIF ( - 80, + 5 ) @@ -47579,8 +48141,13 @@ SELECT NULLIF ( - 57, + 62 ) # Datafusion - Expected - 38 # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col1" at position 1 and "Int64\(89\) \+ CAST\(NULL AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIII valuesort SELECT ALL + 77 AS col2, 38 AS col1, + 89 + + CAST ( NULL AS INTEGER ) AS col1, + + 97 AS col1 +---- +38 +77 +97 +NULL query I rowsort label-9066 SELECT - 75 * - COUNT ( * ) @@ -47829,8 +48396,11 @@ SELECT - + 41 + 54, 5 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4690 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) \* Int64\(\-81\) \+ Int64\(73\) AS col1" at position 0 and "Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 57 * - 81 + 73 AS col1, 6 AS col1 +---- +4690 +6 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -48100,8 +48670,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 15 * + - COUNT ( * ) AS col1, 66 col1 +---- +-15 +66 query I rowsort label-9163 SELECT 56 + - ( + 42 ) + + MAX ( ALL - 21 ) AS col2 @@ -48622,8 +49195,12 @@ SELECT ALL 23 * + - 29 # Datafusion - Expected - 0 # Datafusion - Expected - 71 # Datafusion - Expected - 582 -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 "Int64\(6\) \* Int64\(97\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 32 / 54 AS col1, 71, 6 * + 97 AS col1 +---- +0 +582 +71 query I rowsort SELECT ALL 99 * 81 @@ -48947,8 +49524,11 @@ SELECT ALL - 77 + + COALESCE ( COUNT ( * ), + COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - -126750 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-42\)\) AS col1" at position 0 and "\(\- Int64\(\-75\)\) \* Int64\(65\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-26\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 42 AS col1, ( - - 75 ) * 65 * COUNT ( * ) * - 26 * + COUNT ( * ) AS col1 +---- +-126750 +42 query I rowsort SELECT ALL 29 + 95 @@ -50736,8 +51316,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) + + + 48 AS col2, + 8 AS col2 +---- +49 +8 query I rowsort SELECT ALL ( 57 ) * 94 AS col1 @@ -50778,8 +51361,11 @@ SELECT 38 + - - 45 * ( - + 95 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1603 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ Int64\(\-94\) \* \(\- Int64\(16\)\) \- Int64\(\-97\) AS col0" at position 0 and "Int64\(66\) \- \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 2 + - 94 * - + 16 - - 97 AS col0, 66 - - CAST ( NULL AS INTEGER ) AS col0 +---- +1603 +NULL query I rowsort SELECT 44 + + + 36 @@ -50831,8 +51417,11 @@ SELECT 20 * 23 + 49 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ Int64\(34\) \+ CAST\(CAST\(NULL AS Float64\) AS Int32\) \* min\(Int64\(\-92\)\) \+ \(\- Int64\(20\)\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 + + + 34 + CAST ( CAST ( NULL AS FLOAT8 ) AS INTEGER ) * MIN ( - 92 ) + - + 20 AS col2, 88 AS col2 +---- +88 +NULL query I rowsort label-9691 SELECT + + 40 / - + 38 * COUNT ( * ) @@ -51755,8 +52344,12 @@ SELECT + 10 + 72 col2 # Datafusion - Expected - 59 # Datafusion - Expected - -1160 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 59 col0, 40 * - 29, + 57 AS col0 +---- +-1160 +57 +59 query I rowsort label-9868 SELECT ALL NULLIF ( - CASE 95 WHEN 69 + - 31 + - 37 * - + COUNT ( * ) THEN ( - - 74 ) * COUNT ( CAST ( + CAST ( - 76 AS INTEGER ) AS INTEGER ) ) ELSE NULL END, 86 ) AS col2 @@ -51817,8 +52410,11 @@ SELECT ALL - COUNT ( * ) + + 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\)" at position 0 and "Int64\(87\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87, 87 +---- +87 +87 query I rowsort label-9880 SELECT DISTINCT 20 + + ( + COUNT ( * ) ) * 28 @@ -52070,8 +52666,11 @@ SELECT DISTINCT 76 - 46 + - 91 * 39 - 27 * SUM ( - 95 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -4352 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) / \(\- Int64\(42\)\) AS col1" at position 0 and "Int64\(98\) \+ \(\- Int64\(\-74\)\) \+ Int64\(58\) \* Int64\(\-78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 / - + 42 col1, 98 + - - 74 + 58 * - 78 AS col1 +---- +-1 +-4352 query II rowsort SELECT ALL - - 94, 63 AS col1 @@ -52192,8 +52791,11 @@ SELECT + 83 * - COUNT ( * ) * + - ( + 24 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(46\) WHEN Int64\(56\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(20\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE Int64\(96\) END AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CASE 46 WHEN + 56 / - COUNT ( * ) + + 20 + COUNT ( * ) THEN NULL ELSE + 96 END AS col2, + CAST ( NULL AS INTEGER ) AS col2 +---- +96 +NULL query I rowsort label-9950 SELECT - - 71 * + 43 * + SUM ( + 44 ) @@ -52337,8 +52939,11 @@ SELECT - 81 + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 25 col0, 73 AS col0 +---- +25 +73 query I rowsort label-9977 SELECT ALL + COUNT ( + 10 ) diff --git a/data/sqlite/random/expr/slt_good_73.slt b/data/sqlite/random/expr/slt_good_73.slt index 711183e..0b4f64c 100644 --- a/data/sqlite/random/expr/slt_good_73.slt +++ b/data/sqlite/random/expr/slt_good_73.slt @@ -125,8 +125,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) + - + COUNT ( * ) AS col0, + 92 * + - 29 col0 +---- +-2668 +0 query I rowsort label-17 SELECT DISTINCT + ( - COUNT ( * ) ) + - 86 + 38 - + - NULLIF ( + 62, + 2 * + + 89 + - 93 - - COALESCE ( - - 66, + 96, ( - - ( + 28 ) ) * - + 12 * - 93 + + 6 - - 70 ) / + COUNT ( 82 * - 54 ) ) * ( 99 ) * - 73 AS col1 @@ -1279,8 +1282,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col1" at position 0 and "Int64\(29\) \+ Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 AS col1, 29 + + + ( + 43 ) AS col1 +---- +6 +72 query I rowsort SELECT ALL ( + 27 ) - 53 AS col2 @@ -1322,14 +1328,20 @@ SELECT ALL ( COUNT ( * ) ) * - 97 + + 67 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) / \(\- Int64\(89\)\) AS col2" at position 0 and "avg\(CASE CAST\(NULL AS Int32\) WHEN Int64\(73\) / \(\- Int64\(\-93\)\) \+ Int64\(38\) \* Int64\(28\) THEN Int64\(24\) \+ Int64\(\-64\) END\) \* Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL - 11 / - + 89 AS col2, + AVG ( CASE + CAST ( NULL AS INTEGER ) WHEN 73 / - ( - 93 ) + 38 * + 28 THEN + 24 + - 64 END ) * + + 0 AS col2 +---- +0 +NULL # 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 col2" at position 0 and "Int64\(0\) \* Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 33 AS col2, 0 * - 79 AS col2 +---- +-33 +0 query I rowsort label-246 SELECT DISTINCT - MAX ( + 48 ) @@ -1714,8 +1726,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 0 and "Int64\(79\) \+ Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 58 AS col1, 79 + - 70 AS col1 +---- +58 +9 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -1759,8 +1774,11 @@ SELECT + 62 * + CASE 89 WHEN + 67 THEN NULL ELSE 72 * - 57 END * 62 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- sum\(Int64\(\-39\)\)\) WHEN Int64\(\-84\) THEN Int64\(\-32\) WHEN Int64\(93\) THEN Int64\(6\) ELSE NULL END AS col2" at position 0 and "Int64\(18\) \- Int64\(43\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(77\) \+ Int64\(\-22\) \+ Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CASE - SUM ( - 39 ) WHEN + - 84 THEN + - 32 WHEN 93 THEN 6 ELSE NULL END AS col2, + 18 - 43 + - CAST ( NULL AS INTEGER ) * + 77 + - 22 + + 82 AS col2 +---- +NULL +NULL query I rowsort label-328 SELECT 42 * + 59 * + 8 + - - 5 - + SUM ( DISTINCT + 10 ) * + 75 + 3 / MAX ( ALL + 49 ) * + ( + 78 ) + CASE - 26 WHEN ( - 57 ) + CASE + COALESCE ( + 41, + + 69 - 78 ) WHEN + AVG ( + ( + - 75 ) ) * + COUNT ( * ) * + + 57 THEN NULL ELSE NULLIF ( + 33, - 18 ) END + 21 THEN NULL WHEN + 30 THEN - CASE MAX ( DISTINCT + COALESCE ( - 41, + 89 ) ) WHEN + 73 * 27 THEN COUNT ( * ) END ELSE - ( + COUNT ( * ) ) END + 14 col2 @@ -1922,14 +1940,20 @@ SELECT 77 + + 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 161 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \+ Int64\(77\) AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 84 + + ( 77 ) AS col1, 32 col1 +---- +161 +32 # 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\(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\. +query II valuesort 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 +---- +4180 +NULL query I rowsort SELECT DISTINCT 70 + + 8 AS col2 @@ -2106,8 +2130,11 @@ SELECT - 43 * + - 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "max\(\(\- nullif\(Int64\(29\), Int64\(\-84\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-93\) \* Int64\(25\) \* \(\- Int64\(9\)\) \* Int64\(\-10\) \* Int64\(\-68\) \+ \(\- Int64\(29\)\) \* Int64\(97\) \+ \(\- Int64\(19\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 41 AS col0, MAX ( - NULLIF ( 29, - 84 + - CAST ( NULL AS INTEGER ) + - 93 * 25 * - + 9 * - 10 * - 68 + - + 29 * 97 + - + 19 ) ) AS col0 +---- +-29 +41 query I rowsort label-394 SELECT - ( + - 2 ) / + + 56 AS col1 @@ -2174,8 +2201,11 @@ SELECT ALL - 62 * - 5 + - 89 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \- \(\- Int64\(28\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 82 col0, + CAST ( NULL AS INTEGER ) - - + 28 AS col0 +---- +82 +NULL query I rowsort label-407 SELECT DISTINCT ( + ( - 41 ) ) * + NULLIF ( 81, + + 71 + COUNT ( * ) ) * COALESCE ( 63, - COUNT ( * ), 14 ) AS col0 @@ -2370,8 +2400,11 @@ SELECT + 33 * + 21 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "Int64\(\-70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 AS col0, - 70 AS col0 +---- +-70 +58 query II rowsort SELECT ALL 94 AS col0, + 30 @@ -2732,8 +2765,11 @@ SELECT 70 + COALESCE ( + 14, 78 * 55 * - 17 * 4 * - 61 + 1 + - CAST ( + 89 AS IN # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 AS col2, COUNT ( * ) AS col2 +---- +1 +64 query I rowsort label-513 SELECT ALL MIN ( DISTINCT - + 59 ) @@ -2881,8 +2917,11 @@ SELECT ALL + 66 - - 39 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 450 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "Int64\(\-9\) \* \(\- Int64\(50\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 90 col0, - 9 * - + 50 AS col0 +---- +450 +90 query I rowsort label-542 SELECT - CAST ( NULL AS INTEGER ) + 53 + - 83 * - 2 * + 95 AS col0 @@ -2985,8 +3024,11 @@ SELECT 19 / + 1 - - 24 # 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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 51 AS col0, 0 AS col0 +---- +-51 +0 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -3043,8 +3085,12 @@ 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\(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\. +query III valuesort SELECT ALL + CAST ( + 10 AS INTEGER ) AS col1, COUNT ( * ) + - 6 AS col2, + 39 AS col2 +---- +-5 +10 +39 query I rowsort label-570 SELECT DISTINCT + 73 * + CAST ( - 23 AS INTEGER ) col1 @@ -3105,8 +3151,11 @@ SELECT + 44 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5544 # Datafusion - Expected - -5166 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(77\) AS col0" at position 0 and "Int64\(82\) \* coalesce\(Int64\(\-63\), Int64\(69\) \+ Int64\(14\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 72 * 77 AS col0, + 82 * COALESCE ( - 63, + 69 + + 14 ) AS col0 +---- +-5166 +5544 query I rowsort label-582 SELECT DISTINCT - ( - COALESCE ( - NULLIF ( - + 97, - COUNT ( * ) ), + - CASE - 53 WHEN + COUNT ( * ) THEN - 3 * 89 ELSE NULL END + + + 70 ) ) * - 38 AS col1 @@ -3269,8 +3318,11 @@ SELECT ALL - 76 + - - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 8 AS col2, + CAST ( NULL AS INTEGER ) AS col2 +---- +-8 +NULL query I rowsort label-612 SELECT DISTINCT - 59 + 91 + - + SUM ( 65 ) @@ -3543,8 +3595,11 @@ SELECT + 82 * - COALESCE ( - 27, + 46, + 56 ) + - 37 * + - COUNT ( DISTINCT 38 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3624 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) \* Int64\(\-78\) \+ Int64\(36\) AS col0" at position 0 and "Int64\(21\) \+ Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 46 * + - 78 + + + ( + 36 ) col0, + 21 + 73 AS col0 +---- +3624 +94 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -3817,8 +3872,12 @@ SELECT DISTINCT - COUNT ( - + 46 ) # Datafusion - Expected - 6 # Datafusion - Expected - -23 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \+ Int64\(\-59\) / Int64\(\-15\) AS col1" at position 1 and "Int64\(\-21\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT MAX ( DISTINCT 16 ) - + ( 48 ) + - - ( 38 ), - 26 + - 59 / - 15 AS col1, + - 21 AS col1 +---- +-21 +-23 +6 query I rowsort SELECT 40 - + 13 @@ -3839,8 +3898,12 @@ NULL # Datafusion - Expected - 9 # Datafusion - Expected - NULL # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 9 AS col1, 28 / - CAST ( NULL AS INTEGER ) * - 1, + + 53 col1 +---- +53 +9 +NULL query I rowsort label-720 SELECT + 9 * - MAX ( + 3 ) - + ( - 99 ) @@ -4743,8 +4806,11 @@ SELECT COALESCE ( + 79, + 80, + + 63 ) + - 17 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "Int64\(\-92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 AS col1, - 92 col1 +---- +-92 +26 query I rowsort label-891 SELECT ALL + ( + 35 ) + + - CAST ( NULL AS INTEGER ) AS col0 @@ -5100,8 +5166,12 @@ 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\(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\. +query III valuesort SELECT + 61 * - + MAX ( DISTINCT + - 96 ), NULLIF ( - - 72, COUNT ( * ) ) AS col0, + 82 * + 86 AS col0 +---- +5856 +7052 +72 query I rowsort label-959 SELECT ALL + - 97 / 11 AS col2 @@ -5271,8 +5341,11 @@ SELECT COUNT ( * ) / - 92 + - - ( - 53 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 528 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(88\) AS col2" at position 0 and "Int64\(\-36\) \+ Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 * 88 AS col2, - 36 + 7 AS col2 +---- +-29 +528 query I rowsort label-993 SELECT + 75 + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 @@ -5329,8 +5402,11 @@ SELECT 49 * CAST ( - 29 AS INTEGER ) AS col2, - 56 + + + 88 * + - 51, - COALESCE # Datafusion - Datafusion expected results: # Datafusion - Expected - 3638250 # Datafusion - Expected - 138 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) \* \(\- min\(Int64\(15\)\)\) \* Int64\(\-98\) \* Int64\(\-75\) AS col0" at position 0 and "Int64\(43\) \+ \(\- nullif\(Int64\(\-95\), nullif\(CAST\(NULL AS Int32\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) / Int64\(1\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +138 +3638250 query I rowsort SELECT ALL + 43 - - 4 AS col1 @@ -6075,8 +6151,11 @@ SELECT + 11 * - 10 + 47 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* \(\- \(\- nullif\(Int64\(91\), Int64\(\-29\) \- Int64\(97\) \* Int64\(9\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - 39 ) AS col2, CAST ( NULL AS INTEGER ) * - - NULLIF ( 91, - 29 - 97 * 9 ) AS col2 +---- +-39 +NULL query I rowsort SELECT DISTINCT + NULLIF ( + 91, + 99 ) col2 @@ -6168,8 +6247,11 @@ 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\(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\. +query II valuesort SELECT + 14 + COUNT ( * ) + + 34 AS col1, 3 col1 +---- +3 +49 query I rowsort label-1168 SELECT ALL 20 + + SUM ( - ( + 87 ) ) * + 47 AS col2 @@ -6474,8 +6556,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 71 AS col2, - MAX ( 74 ) * COALESCE ( + - 70, + + ( - 28 ) / - 76, + 45, 2 * - 73 ) - - COUNT ( * ) * + 21 AS col2 +---- +-71 +5201 query I rowsort label-1225 SELECT DISTINCT - + MIN ( ALL + 19 ) @@ -6485,8 +6570,11 @@ SELECT DISTINCT - + MIN ( ALL + 19 ) # 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\(\-2\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 2 AS col0, 88 AS col0 +---- +-2 +88 query II rowsort label-1227 SELECT ALL - 61 AS col0, + 31 + - + 1 * + COUNT ( * ) * - COUNT ( * ) + - - 82 - - COUNT ( * ) * + CASE 68 + 14 WHEN 94 THEN COUNT ( * ) + + SUM ( + 3 ) END AS col1 @@ -6880,8 +6968,11 @@ SELECT DISTINCT + + ( - 47 ) # 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\(\-43\) AS col2" at position 0 and "Int64\(\-17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 43 AS col2, - 17 AS col2 +---- +-17 +-43 query I rowsort SELECT ALL + + 82 col1 @@ -6936,8 +7027,11 @@ SELECT ALL 14 * - 23 * COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -198 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* Int64\(\-99\) AS col1" at position 0 and "Int64\(\-14\) / Int64\(\-21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 2 * - 99 AS col1, - 14 / - 21 AS col1 +---- +-198 +0 query I rowsort SELECT + 78 * + 3 AS col0 @@ -7324,8 +7418,11 @@ SELECT 92 + + - 50 * - ( - ( + 60 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 86 AS col0, - 45 col0 +---- +-45 +86 query I rowsort label-1386 SELECT COUNT ( * ) + + NULLIF ( MAX ( ALL - ( ( + 74 ) ) ), 70 / + 32 * + + 29 * - 84 * 80 ) AS col1 @@ -7541,8 +7638,11 @@ SELECT + CAST ( + 49 AS INTEGER ) / + + CASE - 12 WHEN - COALESCE ( + 16, - ( - # 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 "nullif\(Int64\(\-25\), Int64\(16\)\) AS col0" at position 0 and "Int64\(\-7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( - 25, 16 ) col0, - 7 AS col0 +---- +-25 +-7 query I rowsort label-1426 SELECT 36 * + 7 + - + MIN ( - 79 ) @@ -7572,8 +7672,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1551 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* min\(DISTINCT Int64\(\-21\)\) \+ Int64\(15\) \* Int64\(88\) AS col1" at position 0 and "Int64\(\-39\) \- \(\- Int64\(\-43\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 11 * MIN ( DISTINCT - 21 ) + + 15 * + 88 AS col1, - 39 - - ( - 43 ) col1 +---- +-82 +1551 query II rowsort label-1432 SELECT ALL ( + - 97 ) / COUNT ( * ) AS col0, 9 AS col1 @@ -7756,8 +7859,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) + ( + + 53 ) AS col1, 88 + - + 37 AS col1 +---- +51 +54 query I rowsort SELECT ALL + COALESCE ( + 28, COALESCE ( - + 59, - 77 * - ( + + 25 ) ) ) @@ -8122,8 +8228,11 @@ SELECT + 77 * + ( - COUNT ( * ) ) + 32 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91834 # Datafusion - Expected - 129 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \* nullif\(Int64\(\-73\), Int64\(78\)\) \* Int64\(37\) AS col0" at position 0 and "Int64\(6\) \* Int64\(33\) \+ \(\- Int64\(76\)\) \+ Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 34 * + + NULLIF ( - 73, 78 ) * 37 AS col0, ( 6 ) * + 33 + ( - ( 76 ) ) + + 7 AS col0 +---- +129 +91834 query II rowsort SELECT DISTINCT + 39, 37 * - 30 AS col2 @@ -8230,8 +8339,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col2, + CAST ( NULL AS INTEGER ) AS col2 +---- +1 +NULL query I rowsort SELECT ALL + 82 * + 54 @@ -8270,8 +8382,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(10\)\) AS col2" at position 0 and "Int64\(37\) \+ Int64\(\-17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 10 ) AS col2, + 37 + + - 17 AS col2 +---- +-10 +20 query I rowsort SELECT - 19 + + 31 * + 90 col0 @@ -8392,8 +8507,11 @@ SELECT + - 26 - + 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 AS col1, + 26 AS col1 +---- +26 +96 query I rowsort label-1589 SELECT DISTINCT CAST ( + - MAX ( 9 ) AS INTEGER ) col2 @@ -8464,8 +8582,11 @@ SELECT ALL 42 + 62 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 126 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \+ Int64\(32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 94 + 32 AS col2, COUNT ( * ) AS col2 +---- +1 +126 query I rowsort SELECT ALL + 51 + - 55 AS col1 @@ -8571,8 +8692,11 @@ SELECT ALL 68 AS col2, - 94 * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 AS col2, 24 col2 +---- +12 +24 query I rowsort label-1623 SELECT ALL - 65 / - + 77 @@ -8714,8 +8838,11 @@ SELECT DISTINCT - 37 * 46 * - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 436304 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col2" at position 0 and "Int64\(67\) \* Int64\(74\) \* Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 AS col2, + 67 * + 74 * + 88 AS col2 +---- +39 +436304 query I rowsort SELECT DISTINCT - + ( 97 ) @@ -9160,8 +9287,12 @@ SELECT ALL 95 * + 37 AS col1 # Datafusion - Expected - 52 # Datafusion - Expected - 42 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 52 AS col2, 42 AS col2, - 42 +---- +-42 +42 +52 query I rowsort SELECT ALL 89 * - 44 AS col2 @@ -9231,14 +9362,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 426 # Datafusion - Expected - -1728 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \- Int64\(\-69\) \* \(\- Int64\(\-6\)\) AS col2" at position 0 and "Int64\(32\) \* Int64\(\-54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 12 ) - - 69 * - - 6 AS col2, 32 * + - 54 col2 +---- +-1728 +426 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 81 AS col1, + 63 AS col1 +---- +63 +81 query I rowsort SELECT - 95 * + 85 AS col2 @@ -9291,8 +9428,11 @@ SELECT DISTINCT + 89 + - - CAST ( + - COALESCE ( - - 61, + 52, - 75 * - - 49 ) A # Datafusion - Datafusion expected results: # Datafusion - Expected - 3462 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ Int64\(92\) \* Int64\(38\) \+ \(\- Int64\(90\)\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 + + 92 * 38 + - + 90 AS col0, 17 AS col0 +---- +17 +3462 query I rowsort label-1758 SELECT ALL + COUNT ( - + 6 ) + 19 + + 36 @@ -9313,8 +9453,11 @@ SELECT 89 * CASE - CAST ( NULL AS INTEGER ) WHEN - + 45 THEN + 70 + - - 9 ELSE - # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - -1120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col1" at position 0 and "Int64\(\-28\) \* Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 76 col1, - 28 * 40 AS col1 +---- +-1120 +-76 query I rowsort SELECT DISTINCT - + 22 + - - ( + + 38 ) + + 71 + 38 @@ -9677,8 +9820,11 @@ SELECT CAST ( + - NULLIF ( + - COUNT ( * ), - 64 - - CASE - COUNT ( ALL - 14 ) W # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 54 / + COUNT ( * ) AS col2, - COUNT ( * ) col2 +---- +-1 +54 query I rowsort SELECT + 72 + + - 39 + + 90 @@ -9723,8 +9869,11 @@ SELECT ALL - MAX ( DISTINCT - 69 ) * + + 78 + - - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 133 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) \* Int64\(32\) \+ Int64\(46\) \+ Int64\(17\) AS col2" at position 0 and "Int64\(76\) \+ Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 * + 32 + + 46 + + + 17 AS col2, 76 + + + 57 AS col2 +---- +-33 +133 query I rowsort SELECT ALL 84 * + 16 * 81 + 68 + - 83 - + 80 * - 11 AS col0 @@ -9917,8 +10066,11 @@ SELECT ( + + 30 ) + ( - ( - - SUM ( DISTINCT + - 74 ) ) ) * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 36 col2, 9 AS col2 +---- +36 +9 query I rowsort SELECT + 68 + - - 43 * - 12 * - 42 @@ -10771,8 +10923,11 @@ SELECT - ( 15 ) / - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 49 AS col2, 97 AS col2 +---- +-49 +97 query I rowsort SELECT DISTINCT - 47 * - ( - + 62 ) AS col0 @@ -10879,8 +11034,11 @@ SELECT DISTINCT - + 11 * + - 1 AS col2, 63 + 37 + - - 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \+ Int64\(\-29\) AS col1" at position 0 and "Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 + + ( - 29 ) AS col1, - 82 AS col1 +---- +-82 +70 query I rowsort label-2060 SELECT 2 / - 23 col0 @@ -11046,8 +11204,11 @@ SELECT ALL - ( - + ( 22 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 570 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- Int64\(\-34\)\)\) AS col0" at position 0 and "Int64\(\-57\) \* Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( ALL - - 34 ) AS col0, - 57 * - 10 AS col0 +---- +1 +570 query I rowsort label-2091 SELECT DISTINCT + NULLIF ( - - 50, COUNT ( ALL 91 ) * 47 ) - - 77 @@ -11067,8 +11228,11 @@ SELECT DISTINCT - SUM ( DISTINCT + 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col1" at position 0 and "Int64\(\-67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 AS col1, - 67 AS col1 +---- +-67 +6 query I rowsort label-2095 SELECT ALL - CASE - 39 WHEN SUM ( + 59 ) THEN NULL ELSE - - COUNT ( * ) END @@ -11375,8 +11539,11 @@ 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\(1\)\) AS count\(\*\)\)\) \+ Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( + - 67 ) AS col0, - ( - COUNT ( * ) ) + 63 col0 +---- +-67 +64 query I rowsort SELECT + 84 + - - 80 @@ -11798,8 +11965,11 @@ NULL # 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\(1\)\) AS count\(\*\) \+ Int64\(\-32\) \* Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 30 * - 9 + - 44 * - - 33 * + - 50 AS col2, - 69 + - - 66 + COUNT ( * ) + - 32 * - 41 AS col2 +---- +1310 +72330 query I rowsort SELECT 59 * - 6 AS col2 @@ -12366,8 +12536,11 @@ SELECT 63 * 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6270 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \* Int64\(95\) AS col1" at position 0 and "CASE Int64\(\-82\) WHEN CAST\(Int64\(\-79\) AS Int32\) \+ Int64\(62\) \+ Int64\(8\) \+ Int64\(33\) \* Int64\(11\) THEN Int64\(67\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 * 95 AS col1, + CASE ( - 82 ) WHEN + CAST ( + - 79 AS INTEGER ) + 62 + 8 + + 33 * 11 THEN 67 END AS col1 +---- +6270 +NULL query I rowsort label-2345 SELECT ALL - 29 / - + 38 * 28 AS col2 @@ -12403,8 +12576,11 @@ SELECT ALL + 66 + + 48 AS col0 # 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\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 25 AS col1, ( 81 ) AS col1 +---- +-25 +81 query II rowsort label-2352 SELECT 17 + + 43 AS col0, + SUM ( ALL 78 ) * 70 + 87 + + 33 @@ -12436,8 +12612,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) + - 70 + + + 26 / - 31 AS col1, + 57 AS col1 +---- +-69 +57 query I rowsort label-2358 SELECT ALL 5 + MAX ( DISTINCT - 51 ) * 42 @@ -12743,8 +12922,12 @@ SELECT 66 * - 72 / + NULLIF ( + COUNT ( * ), 36 + - - COUNT ( * ) + + - 48 + SUM # Datafusion - Expected - 1 # Datafusion - Expected - -57 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-22\)\) AS col2" at position 0 and "Int64\(46\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + ( COUNT ( ALL - 22 ) ) col2, + CAST ( 21 AS INTEGER ) + + - 78, + 46 AS col2 +---- +-57 +1 +46 query II rowsort SELECT 67 AS col0, 96 * + + 8 * + 0 @@ -12864,8 +13047,11 @@ SELECT ALL 21 AS col0, ( + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -166 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \+ \(\- Int64\(92\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 75 + - + 92 + + COUNT ( * ) AS col1, 62 AS col1 +---- +-166 +62 query I rowsort SELECT ALL + - 66 + 3 AS col1 @@ -12895,8 +13081,11 @@ SELECT ALL + - CASE COUNT ( * ) WHEN + 47 THEN NULL ELSE 29 END + - 14 + + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col1" at position 0 and "\(\- CASE Int64\(44\) WHEN Int64\(89\) \* Int64\(8\) \* \(\- Int64\(\-77\)\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-35\) / Int64\(\-21\) \+ Int64\(\-71\) \* CAST\(min\(Int64\(50\)\) AS Int32\) \* Int64\(\-2\) \* Int64\(36\) THEN coalesce\(Int64\(\-40\), Int64\(10\)\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +0 +NULL query I rowsort SELECT + 28 * + + 79 * + 82 AS col2 @@ -13244,8 +13433,11 @@ SELECT + 37 * - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 4818 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "Int64\(66\) \* coalesce\(Int64\(73\), Int64\(41\) \+ Int64\(29\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 AS col2, + 66 * COALESCE ( + 73, + 41 + 29 ) AS col2 +---- +4818 +78 query I rowsort label-2513 SELECT ALL SUM ( + 52 ) @@ -13324,8 +13516,11 @@ SELECT - - 6 + - 74 * - COUNT ( * ) * - COALESCE ( 98, ( + 2 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 199148 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "CASE Int64\(\-56\) WHEN \(\- Int64\(3\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(18\) \+ Int64\(32\) \* \(\- CAST\(Int64\(17\) AS Int32\)\) WHEN Int64\(90\) \* \(\- Int64\(\-13\)\) THEN \(\- min\(\(\- Int64\(36\)\)\)\) ELSE Int64\(61\) END \* Int64\(34\) \* \(\- Int64\(\-96\)\) \- Int64\(\-44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +11 +199148 query I rowsort label-2528 SELECT ALL - 21 * - COUNT ( * ) AS col0 @@ -13468,8 +13663,11 @@ SELECT DISTINCT 70 * + 16 * 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) / Int64\(\-44\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 / + - 44 AS col2, COUNT ( * ) AS col2 +---- +0 +1 query II rowsort label-2554 SELECT ALL 94 + + 48 + + - COUNT ( * ), CASE + COUNT ( * ) WHEN - ( 8 ) * - NULLIF ( - - ( 50 ), 93 ) THEN 79 + 8 ELSE NULL END AS col1 @@ -13719,8 +13917,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col0" at position 0 and "CASE Int64\(83\) WHEN Int64\(\-25\) THEN Int64\(45\) \+ Int64\(4\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 AS col0, CASE 83 WHEN + - 25 THEN 45 + + 4 ELSE NULL END AS col0 +---- +-64 +NULL query I rowsort label-2602 SELECT + + NULLIF ( - 67, - MAX ( 50 ) ) + - - 84 + - ( - + 15 ) @@ -13889,8 +14090,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \+ \(\- CAST\(NULL AS Int32\)\) \- Int64\(\-10\) \* Int64\(\-46\) / Int64\(\-91\) \* Int64\(71\) AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 54 + - CAST ( NULL AS INTEGER ) - - 10 * - 46 / + - 91 * + 71 AS col0, + 59 col0 +---- +59 +NULL query I rowsort label-2634 SELECT + MIN ( ALL - - 62 ) - 67 + - 46 AS col2 @@ -14504,8 +14708,11 @@ SELECT - - 7 + COUNT ( * ) - - 78 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col2" at position 0 and "Int64\(58\) / Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 50 AS col2, 58 / + 5 AS col2 +---- +-50 +11 query I rowsort label-2754 SELECT ALL + + COUNT ( + 18 ) + + 23 + 60 AS col2 @@ -14730,8 +14937,11 @@ SELECT ALL - ( - - SUM ( - - 99 ) ) # 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 "Int64\(50\) AS col2" at position 0 and "Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 50 AS col2, - 29 AS col2 +---- +-29 +50 query I rowsort SELECT ALL - 33 * + - 59 col2 @@ -15089,8 +15299,11 @@ SELECT - 99 * - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 36 AS col2, + 47 AS col2 +---- +-36 +47 query I rowsort SELECT DISTINCT + 65 * + 82 @@ -15292,8 +15505,11 @@ SELECT ALL + - 42 + 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ Int64\(\-75\) AS col0" at position 0 and "\(\- coalesce\(Int64\(37\), Int64\(\-13\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 86 + - 75 AS col0, - ( COALESCE ( + 37, ( + - 13 ) ) ) AS col0 +---- +-37 +11 query I rowsort SELECT DISTINCT + 84 + - 13 + - - 14 * + 84 + + + 14 AS col1 @@ -15446,8 +15662,11 @@ SELECT ALL - NULLIF ( + - 57, + 74 + + 43 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \+ Int64\(\-75\) / Int64\(65\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 7 + - 75 / 65 AS col2, COUNT ( * ) AS col2 +---- +-8 +1 query II rowsort SELECT 91, 87 AS col0 @@ -15877,8 +16096,11 @@ SELECT - CAST ( + + 30 AS INTEGER ) AS 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 "Int64\(3\) AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 AS col1, + 3 AS col1 +---- +3 +3 query I rowsort label-3016 SELECT DISTINCT SUM ( DISTINCT + 4 ) col1 @@ -15933,8 +16155,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 5 AS col2, + 36 AS col2 +---- +-5 +36 query I rowsort label-3026 SELECT - 99 / 71 AS col0 @@ -17183,8 +17408,11 @@ SELECT - 74 + - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(0\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 21 * ( - 0 ) AS col1, CAST ( NULL AS INTEGER ) col1 +---- +0 +NULL query I rowsort label-3265 SELECT DISTINCT 33 * + 16 + + COALESCE ( + + 83, + 59 / + - 95 * 5 + - + 71 ) col2 @@ -17270,8 +17498,11 @@ SELECT 83 * - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 116 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ Int64\(24\) AS col1" at position 0 and "Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 92 + 24 AS col1, + 95 AS col1 +---- +116 +95 query I rowsort label-3282 SELECT ( - - COUNT ( * ) ) * - - COALESCE ( 51, 89 ) + CAST ( 96 AS INTEGER ) @@ -17397,8 +17628,11 @@ SELECT 83 / - CASE - 56 WHEN SUM ( ALL - - 5 ) * + 87 THEN NULL WHEN 78 THEN 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3919 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-90\)\) \* min\(Int64\(44\)\) \+ \(\- Int64\(\-41\)\) AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( - 90 ) * ( + + MIN ( 44 ) ) + - - 41 AS col0, + 59 AS col0 +---- +-3919 +59 query I rowsort label-3306 SELECT 73 / - 37 @@ -17910,8 +18144,11 @@ SELECT DISTINCT 69 * + 51 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "CAST\(NULL AS Float64\) \* Int64\(\-15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL 27 col0, CAST ( NULL AS FLOAT8 ) * - 15 AS col0 +---- +27 +NULL query I rowsort SELECT DISTINCT 74 * - 59 AS col2 @@ -17992,8 +18229,11 @@ SELECT - 33, + ( + 42 ) - + 94 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \+ Int64\(\-95\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 87 + + - 95 AS col1, 64 AS col1 +---- +-8 +64 query I rowsort SELECT 48 * 79 AS col0 @@ -18379,8 +18619,11 @@ SELECT NULLIF ( - - COUNT ( * ), - 93 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1755 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \* Int64\(\-65\) AS col1" at position 0 and "max\(Int64\(43\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 27 * + - 65 col1, MAX ( + + 43 ) AS col1 +---- +-1755 +43 query I rowsort label-3493 SELECT - - 90 * + CAST ( + 9 AS INTEGER ) + - + ( + + 36 ) + 18 - - + 7 * 9 - - 96 * + 52 * 97 - SUM ( + + 88 ) col0 @@ -18995,8 +19238,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 4 * + - 39 / - 39, - 76 * + 78 + + 71 AS col0, - + COUNT ( * ) col0 +---- +-1 +-5857 +4 query I rowsort SELECT 42 * + - 41 AS col0 @@ -19135,8 +19382,12 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-2 +-80 +2073 query II rowsort label-3637 SELECT 82 + + NULLIF ( 98, - 35 * - - COUNT ( * ) + COUNT ( ALL 9 ) ) AS col2, + 0 @@ -19177,8 +19428,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) - + - 71 AS col1, - 69 col1 +---- +-69 +70 query I rowsort label-3645 SELECT ALL 27 * COUNT ( * ) @@ -19467,8 +19721,11 @@ SELECT DISTINCT + 59 col1, - 64 * + 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58050 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* Int64\(\-95\) \* Int64\(\-68\) \+ Int64\(\-90\) AS col1" at position 0 and "Int64\(42\) \+ Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 9 * - 95 * - 68 + - 90 AS col1, + 42 + 12 col1 +---- +54 +58050 query I rowsort SELECT + 76 - + 25 @@ -19658,8 +19915,11 @@ SELECT + 73 AS col2, + 55 + + 9 * + + 8 + + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(52\)\) / Int64\(58\) \- \(\- Int64\(72\)\) \+ \(\- Int64\(8\)\) \+ \(\- Int64\(54\)\) / Int64\(\-76\) \* CAST\(NULL AS Int32\) \* Int64\(\-44\) AS col1" at position 0 and "nullif\(Int64\(14\), Int64\(58\) \* Int64\(70\) \* \(\- Int64\(\-33\)\)\) \- \(\- \(\- sum\(Int64\(51\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 52 / + 58 - - + 72 + - + 8 + - + 54 / - 76 * + + CAST ( NULL AS INTEGER ) * - 44 col1, NULLIF ( + 14, + + 58 * 70 * - ( - 33 ) ) - - - SUM ( + 51 ) AS col1 +---- +-37 +NULL query I rowsort label-3735 SELECT ALL - 84 / - + 16 AS col0 @@ -19993,8 +20253,11 @@ NULL # 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\(4\) \* Int64\(\-24\) / Int64\(78\) / Int64\(18\) \* Int64\(92\) \+ \(\- Int64\(45\)\) \* \(\- CAST\(NULL AS Float64\)\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT 4 * - 24 / + 78 / 18 * 92 + - ( 45 ) * - CAST ( NULL AS FLOAT8 ) AS col0, 48 AS col0 +---- +48 +NULL query II rowsort SELECT + + ( + - 23 ) * - + 34, - 42 AS col2 @@ -20101,8 +20364,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col1" at position 0 and "max\(Int64\(\-74\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 57 AS col1, MAX ( - 74 ) col1 +---- +-74 +57 query I rowsort label-3820 SELECT - COUNT ( * ) * + COUNT ( * ) * - COUNT ( * ) * - 44 - + 12 col0 @@ -20122,8 +20388,11 @@ SELECT ALL + - 70 * - 51 * + 77 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 23 AS col2, COUNT ( * ) AS col2 +---- +-23 +1 query I rowsort SELECT - + 43 + 16 @@ -20207,8 +20476,11 @@ SELECT + ( + + 90 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "coalesce\(\(\- Int64\(78\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(20\) \- max\(DISTINCT Int64\(83\)\) \* Int64\(77\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 37 ) * COUNT ( * ) AS col2, + COALESCE ( + - ( 78 ), + - COUNT ( * ) - + 20 - + MAX ( DISTINCT + 83 ) * 77 ) AS col2 +---- +-37 +-78 query I rowsort label-3840 SELECT 95 * COUNT ( * ) + - + ( + - 79 ) AS col1 @@ -20522,8 +20794,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( * ) AS col2, 96 AS col2 +---- +1 +96 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -20632,8 +20907,11 @@ SELECT ALL - COUNT ( ALL + - 12 ) * + 60 - + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5538 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(71\) AS col2" at position 0 and "Int64\(23\) \+ Int64\(\-6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 78 * 71 AS col2, 23 + - 6 AS col2 +---- +17 +5538 query I rowsort label-3921 SELECT 45 + - SUM ( DISTINCT - 75 ) AS col2 @@ -20974,8 +21252,11 @@ SELECT DISTINCT 40 / - - 8 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 60 -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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 78 AS col0, + 60 AS col0 +---- +60 +78 query I rowsort label-3986 SELECT - MAX ( DISTINCT - 77 ) AS col0 @@ -21144,8 +21425,11 @@ SELECT - 52 AS col1, 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 108 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \+ Int64\(73\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 + 73 AS col2, 68 AS col2 +---- +108 +68 query II rowsort label-4017 SELECT 80 - + CAST ( NULL AS INTEGER ) - 40 * - COUNT ( * ) - + 35 col0, 1 + 75 + - 69 + 33 / - MAX ( DISTINCT - - 50 ) * - 81 AS col1 @@ -21383,8 +21667,11 @@ SELECT MIN ( 2 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + + CAST ( NULL AS FLOAT8 ) AS col1, 92 AS col1 +---- +92 +NULL query I rowsort label-4062 SELECT - ( - - 31 ) / COUNT ( * ) * 36 / + CAST ( 69 AS INTEGER ) * + COUNT ( - 51 ) + - 42 AS col0 @@ -21445,8 +21732,11 @@ SELECT SUM ( DISTINCT + 63 ) # 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\(\-34\) \+ Int64\(9\) \- count\(Int64\(\-12\)\) 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 II valuesort SELECT - 34 + + + 9 - COUNT ( ALL - 12 ) AS col1, + COUNT ( - + 64 ) AS col1 +---- +-26 +1 query I rowsort label-4073 SELECT ALL 26 * + 45 + - + 31 / 33 * + + COUNT ( * ) + 95 * + 17 @@ -22095,8 +22385,11 @@ SELECT + 86 + - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 988 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "Int64\(\-76\) \* Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 53 AS col2, - 76 * - 13 AS col2 +---- +53 +988 query III rowsort label-4197 SELECT DISTINCT + 56 AS col2, - 36 * - 43 + ( + 68 ) + 11, - + COUNT ( * ) AS col0 @@ -22330,8 +22623,11 @@ SELECT 99 * + + ( - CASE - COUNT ( * ) WHEN - 50 THEN NULL ELSE + - MAX ( + 55 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) \+ Int64\(9\) AS col0" at position 0 and "Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 66 + 9 AS col0, 11 AS col0 +---- +-57 +11 query I rowsort label-4243 SELECT DISTINCT - - 27 * + 9 * - + COUNT ( * ) * + + 56 AS col2 @@ -22407,8 +22703,11 @@ SELECT 8 - - + 80 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 76 AS col0, 79 AS col0 +---- +76 +79 query I rowsort SELECT ALL 98 * - - 55 @@ -23075,8 +23374,11 @@ SELECT DISTINCT + 19 + + 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col1" at position 0 and "Int64\(\-18\) \+ \(\- min\(Int64\(64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 97 col1, + ( - 18 ) + - MIN ( + 64 ) col1 +---- +-82 +-97 query I rowsort label-4389 SELECT ALL + - ( - - 47 ) + + 86 + + 72 / 23 @@ -23122,8 +23424,11 @@ SELECT 71 * - 22 col2, + 27 + + ( 81 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ Int64\(49\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* \(\- CAST\(Int64\(52\) AS Float64\)\) \* Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 42 + + 49 AS col2, CAST ( NULL AS INTEGER ) * + - CAST ( 52 AS FLOAT8 ) * - 16 AS col2 +---- +91 +NULL query I rowsort SELECT ALL - 4 * - + 69 @@ -23258,8 +23563,12 @@ SELECT - 51 + - COUNT ( * ) AS col0 # Datafusion - Expected - 1 # Datafusion - Expected - 32 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL COUNT ( * ) AS col1, 31 + + COUNT ( * ), + 81 AS col1 +---- +1 +32 +81 query I rowsort SELECT + 62 * 21 AS col0 @@ -23635,8 +23944,11 @@ SELECT ALL - 13, - 18 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) AS col0, 20 col0 +---- +20 +NULL query I rowsort label-4495 SELECT DISTINCT - - 22 / 24 * 12 + - - 54 AS col1 @@ -24678,8 +24990,11 @@ SELECT ALL + CAST ( + 90 AS INTEGER ), 44 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 130 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) \* Int64\(\-5\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 26 * - 5 AS col1, + 87 AS col1 +---- +130 +87 query I rowsort label-4693 SELECT DISTINCT + COUNT ( - - 82 ) AS col0 @@ -25481,8 +25796,11 @@ SELECT + ( + + 90 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(35\) AS Int32\) AS col1" at position 0 and "Int64\(71\) \+ \(\- count\(\(\- CAST\(Int64\(62\) AS Float64\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( 35 AS INTEGER ) AS col1, 71 + - COUNT ( - CAST ( + 62 AS FLOAT8 ) ) AS col1 +---- +35 +70 query I rowsort SELECT ALL - 32 * + - 78 + - 42 AS col1 @@ -25530,8 +25848,12 @@ SELECT 50 + + 89 AS col2 # Datafusion - Expected - 114 # Datafusion - Expected - -102 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \+ Int64\(55\) AS col1" at position 0 and "\(\- Int64\(75\)\) \- Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 59 + 55 AS col1, - ( 75 ) - + + 27 AS col1, - + 18 +---- +-102 +-18 +114 query I rowsort label-4855 SELECT ALL COALESCE ( - + 96, - COUNT ( * ) * - - 97 + SUM ( ALL - 0 ) + - NULLIF ( 57, + 3 ), 14 - 78 + - 38 + COUNT ( * ) ) - + 39 + 3 @@ -25662,8 +25984,11 @@ SELECT 31 * + - 49 * - SUM ( DISTINCT - 2 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 134343 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col2" at position 0 and "Int64\(69\) \* Int64\(59\) \* Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 66 AS col2, ( 69 ) * + 59 * + 33 AS col2 +---- +-66 +134343 query II rowsort SELECT - 26 * 94 + - 98, 40 AS col1 @@ -26202,8 +26527,12 @@ SELECT 84 * + COUNT ( * ) # Datafusion - Expected - 1 # Datafusion - Expected - 61 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 1 AS col1, 61 AS col0, 83 AS col1 +---- +1 +61 +83 query I rowsort SELECT DISTINCT + 57 + + 81 AS col2 @@ -26218,8 +26547,11 @@ SELECT - ( + SUM ( + ( 40 ) ) ) + + NULLIF ( COUNT ( DISTINCT + 98 ), + + COALES # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 AS col2, 31 AS col2 +---- +31 +56 query II rowsort SELECT ALL - - 42, - 71 col2 @@ -26582,8 +26914,11 @@ SELECT DISTINCT + ( 47 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(\-80\) \+ Int64\(90\) \+ Int64\(\-18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col0, - 80 + 90 + - 18 col0 +---- +-8 +NULL query I rowsort label-5052 SELECT COALESCE ( + - 78, + COUNT ( * ) ) AS col2 @@ -26692,8 +27027,11 @@ SELECT - - 66 / - 67 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(32\) WHEN CAST\(\(\- Int64\(\-84\)\) AS Int32\) \- Int64\(97\) THEN NULL WHEN nullif\(Int64\(\-48\), Int64\(82\)\) THEN NULL ELSE Int64\(46\) END AS col0" at position 0 and "nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-95\)\) \+ Int64\(79\) \+ Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +46 +99 query I rowsort label-5073 SELECT + MIN ( DISTINCT + 44 ) @@ -26777,8 +27115,11 @@ SELECT ALL - COUNT ( * ) + - + 17 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 61 AS col2, ( + + ( 56 ) ) AS col2 +---- +-61 +56 query I rowsort label-5089 SELECT MIN ( ALL + 66 ) + + + NULLIF ( - 81, 73 + 52 + + 81 ) + - CAST ( - 38 AS INTEGER ) / 50 / - - MAX ( + 3 ) @@ -27192,8 +27533,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ \(\- Int64\(27\)\) AS col0" at position 0 and "Int64\(\-44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 64 + - + 27 AS col0, - 44 AS col0 +---- +-44 +37 query I rowsort SELECT DISTINCT + COALESCE ( - - 58, - 13 ) AS col2 @@ -27321,8 +27665,11 @@ SELECT DISTINCT 21 / + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(6\)\) / CASE \(\- Int64\(1\)\) WHEN \(\- Int64\(\-31\)\) \+ Int64\(77\) THEN NULL WHEN coalesce\(Int64\(\-35\), nullif\(\(\- Int64\(6\)\), CAST\(Int64\(\-50\) AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE Int64\(75\) END AS col2" at position 0 and "Int64\(89\) \- \(\- \(\- \(\- nullif\(Int64\(12\), CAST\(NULL AS Int32\) \+ Int64\(2\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +0 +101 query I rowsort SELECT ALL 14 * - 90 AS col0 @@ -27589,8 +27936,11 @@ SELECT ALL 42 + - COUNT ( + - 17 ) - + 78 / 37 - - 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 116 # Datafusion - Expected - 127 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(69\), Int64\(\-68\)\) \+ Int64\(47\) AS col2" at position 0 and "Int64\(87\) \+ Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT NULLIF ( 69, + - 68 ) + 47 AS col2, 87 + + 40 AS col2 +---- +116 +127 query I rowsort label-5244 SELECT DISTINCT COUNT ( * ) * + - CASE + MAX ( ALL + ( 39 ) ) WHEN - + 83 * - + 75 THEN - + 11 ELSE NULL END AS col1 @@ -27684,14 +28034,21 @@ SELECT COUNT ( * ) * + ( - 39 ) # Datafusion - Expected - 3240 # Datafusion - Expected - 3070 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* Int64\(54\) AS col0" at position 0 and "Int64\(\-57\) \+ Int64\(52\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 60 * 54 AS col0, 45 + - 55 * - ( COUNT ( * ) ) * - - 55 col2, - 57 + + 52 col0 +---- +-5 +3070 +3240 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - -85536 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col1" at position 0 and "Int64\(27\) \* Int64\(96\) \* Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 10 AS col1, 27 * + 96 * - 33 AS col1 +---- +-10 +-85536 query I rowsort SELECT 84 * - 33 AS col2 @@ -27730,8 +28087,11 @@ SELECT DISTINCT 64 * + 73 + COUNT ( * ) col2, + 90 / + - 81 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2930 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) \* Int64\(35\) \+ Int64\(\-60\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 82 * + 35 + - 60 AS col0, + 60 col0 +---- +-2930 +60 query I rowsort SELECT 93 + - - 77 AS col0 @@ -28027,8 +28387,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ), + COUNT ( * ) +---- +1 +1 query I rowsort label-5325 SELECT - - 97 * + ( - - MAX ( ALL - 51 ) ) col1 @@ -28102,8 +28465,12 @@ SELECT - COUNT ( DISTINCT + - 94 ) + - 63 AS col0 # Datafusion - Expected - NULL # Datafusion - Expected - 61 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col2" at position 1 and "\(\- CAST\(NULL AS Int32\)\) \+ \(\- CAST\(NULL AS Float64\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort SELECT - CAST ( - CAST ( NULL AS FLOAT8 ) AS INTEGER ) AS col0, 61 AS col2, - + CAST ( NULL AS INTEGER ) + ( - CAST ( NULL AS FLOAT8 ) ) AS col2 +---- +61 +NULL +NULL query I rowsort label-5339 SELECT - 74 + CAST ( NULL AS INTEGER ) @@ -28410,8 +28777,11 @@ SELECT + NULLIF ( 51, 80 * - 61 / + + 22 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) / sum\(\(\- nullif\(Int64\(68\), Int64\(99\) \+ Int64\(\-93\) \* Int64\(17\) \+ Int64\(99\)\)\)\) AS col1" at position 0 and "Int64\(19\) \+ Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 2 / SUM ( ALL - NULLIF ( 68, 99 + + - 93 * + 17 + 99 ) ) col1, 19 + 81 AS col1 +---- +0 +100 query I rowsort label-5398 SELECT 64 / 7 * + 32 * + 26 * + 7 - + 48 @@ -28813,8 +29183,11 @@ SELECT 22 * - 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - -1077 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col0" at position 0 and "Int64\(81\) \* \(\- Int64\(14\)\) \+ Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 AS col0, + 81 * - + 14 + + 57 AS col0 +---- +-1077 +40 query II rowsort SELECT - 59, 51 - - 71 AS col0 @@ -29240,8 +29613,11 @@ SELECT - ( - 76 ) col2 # 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 "Int64\(\-23\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 23 AS col0, + 70 AS col0 +---- +-23 +70 query I rowsort SELECT DISTINCT - 58 + + 43 + - NULLIF ( 60, - 29 + - 61 ) @@ -29632,8 +30008,11 @@ SELECT ALL 53 AS col1, 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4816 # Datafusion - Expected - 1512 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) \* Int64\(4\) \* Int64\(86\) AS col0" at position 0 and "Int64\(\-42\) \* \(\- Int64\(36\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 14 * + 4 * + 86 AS col0, - 42 * + - ( 36 ) AS col0 +---- +-4816 +1512 query I rowsort SELECT - 74 * 66 AS col1 @@ -29877,8 +30256,11 @@ SELECT ALL - 80 * SUM ( DISTINCT - 81 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 272 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "Int64\(\-20\) \- \(\- Int64\(\-44\)\) \- Int64\(8\) \* Int64\(\-3\) \* Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 col0, - 20 - - - 44 - + 8 * + ( - 3 ) * + 14 AS col0 +---- +272 +46 query II rowsort label-5682 SELECT ALL COUNT ( + 2 ), 75 AS col0 @@ -30061,8 +30443,11 @@ SELECT ALL + + 21 - - 75 * - + NULLIF ( - 81, - CASE + + 30 WHEN + 64 THEN NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \+ Int64\(66\) AS col1" at position 0 and "Int64\(73\) \- \(\- Int64\(\-6\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 11 + + 66 col1, 73 - - - 6 AS col1 +---- +55 +67 query II rowsort label-5716 SELECT - COUNT ( * ), 96 AS col0 @@ -30104,8 +30489,11 @@ 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\(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\. +query II valuesort 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 +---- +-352232 +-48 query I rowsort label-5724 SELECT 53 + CAST ( NULL AS INTEGER ) AS col2 @@ -31009,8 +31397,11 @@ SELECT DISTINCT + 9 * - 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 52 AS col1 +---- +1 +52 query I rowsort SELECT ALL 38 * - + 45 + - NULLIF ( - 55, - + 19 * 73 + 44 ) AS col1 @@ -31112,8 +31503,11 @@ SELECT ALL - 47 * - 27 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(26\) \* count\(Int64\(60\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 74 * + CAST ( NULL AS INTEGER ) AS col1, + 26 * + COUNT ( + 60 ) AS col1 +---- +26 +NULL query I rowsort SELECT - 24 + NULLIF ( - 60, 48 * 52 + - COALESCE ( - 88, - 80 / - 36 ) ) @@ -31173,8 +31567,11 @@ 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\(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\. +query II valuesort 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 +---- +-1 +NULL query I rowsort SELECT DISTINCT + 95 + + - 15 AS col0 @@ -31789,14 +32186,20 @@ SELECT - COUNT ( * ) + - 36 + 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "max\(Int64\(68\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, + MAX ( + 68 ) AS col2 +---- +1 +68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col1" at position 0 and "sum\(DISTINCT Int64\(34\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 50 AS col1, SUM ( DISTINCT 34 ) col1 +---- +34 +50 query I rowsort label-6050 SELECT ALL + 81 * - 17 + 66 - + CAST ( NULL AS INTEGER ) @@ -31906,8 +32309,11 @@ SELECT - 8 + - 13 * + 9 # 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 col1" at position 0 and "Int64\(70\) \- Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 col1, 70 - 13 AS col1 +---- +57 +69 query I rowsort SELECT - CASE + 70 WHEN - ( - 18 ) + 11 / 67 THEN 20 - 68 * + 1 END @@ -32094,8 +32500,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- CAST\(Int64\(38\) AS Int32\)\) / Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + COUNT ( * ) ) AS col0, - ( + CAST ( + 38 AS INTEGER ) ) / 26 AS col0 +---- +-1 +-1 query I rowsort label-6109 SELECT DISTINCT - 75 / + + 93 + + COUNT ( + 33 ) col0 @@ -32195,8 +32604,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 0 and "Int64\(43\) \+ Int64\(24\) \- Int64\(\-61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 AS col2, 43 + + 24 - - 61 AS col2 +---- +128 +26 query I rowsort SELECT 16 * + - 70 AS col2 @@ -32451,8 +32863,11 @@ SELECT ALL COUNT ( DISTINCT ( ( + + 39 ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(57\), count\(Int64\(24\)\)\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL NULLIF ( 57, + COUNT ( 24 ) ) AS col2, + 21 AS col2 +---- +21 +57 query I rowsort label-6177 SELECT - 77 + - - COALESCE ( + ( 35 ), - 96 * ( 69 ) * 14, - 84 * 93 + + CASE - AVG ( ALL 1 ) WHEN - ( - 56 ) + CAST ( - 19 AS INTEGER ) THEN SUM ( ALL + 2 ) ELSE NULL END ) @@ -32552,8 +32967,11 @@ SELECT DISTINCT - 40 * - - 97 + - CAST ( - + ( 46 ) AS INTEGER ) + 77 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -960 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) \* Int64\(30\) AS col0" at position 0 and "Int64\(\-67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 32 * 30 AS col0, - 67 AS col0 +---- +-67 +-960 query I rowsort label-6197 SELECT ALL + 21 / + 56 AS col1 @@ -32676,8 +33094,11 @@ SELECT - 59 + + 11 + + ( - - 64 ) * 49 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* \(\- Int64\(\-1\)\) AS col0" at position 0 and "Int64\(\-90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 31 * - - 1 AS col0, - 90 AS col0 +---- +-90 +31 query I rowsort label-6221 SELECT - COALESCE ( - 29, + - 94 ) * 3 + 53 + - 40 * + + CASE - COUNT ( * ) WHEN 25 THEN 65 ELSE NULL END * 98 @@ -33320,8 +33741,12 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - 65 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-78\) / Int64\(90\) \* Int64\(12\) \+ Int64\(63\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + COUNT ( * ) AS col2, + 65 AS col0, + - 78 / 90 * ( 12 ) + + 63 AS col2 +---- +1 +63 +65 query I rowsort label-6345 SELECT DISTINCT + ( - + 1 ) / + 34 / COUNT ( * ) + + 49 col0 @@ -33369,8 +33794,12 @@ SELECT ALL 25 * 6 # Datafusion - Expected - 13 # Datafusion - Expected - 147 # Datafusion - Expected - 2695 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "Int64\(77\) \* Int64\(36\) \+ Int64\(\-77\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ( + + 13 ) AS col2, + 64 + - - 83, 77 * 36 + - 77 col2 +---- +13 +147 +2695 query I rowsort SELECT + ( + 64 ) col2 @@ -33694,8 +34123,12 @@ SELECT 69 * ( + - 6 ) # Datafusion - Expected - 19968 # Datafusion - Expected - 28 # Datafusion - Expected - -2366 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \* \(\- coalesce\(Int64\(\-52\), Int64\(10\) \+ \(\- \(\- Int64\(54\)\)\), Int64\(86\)\)\) \* Int64\(96\) AS col0" at position 0 and "max\(Int64\(\-46\)\) \- \(\- Int64\(74\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 4 * - COALESCE ( - 52, + + 10 + - + ( - + 54 ), 86 ) * 96 AS col0, + MAX ( + - 46 ) - - + 74 AS col0, + 38 * - + 64 + + 66 AS col2 +---- +-2366 +19968 +28 query I rowsort SELECT ALL 52 * - - 1 + 18 + - 60 * + 66 * + 35 * - 26 @@ -33725,8 +34158,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -4902 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) / Int64\(\-63\) \* Int64\(23\) \* Int64\(\-14\) \* Int64\(32\) AS col0" at position 0 and "Int64\(57\) \* \(\- max\(\(\- nullif\(Int64\(\-86\), Int64\(\-82\) \+ \(\- \(\- Int64\(\-14\)\)\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 59 / - 63 * 23 * + - 14 * + ( 32 ) AS col0, 57 * - MAX ( ALL - NULLIF ( + - 86, + - 82 + - + ( - - 14 ) ) ) AS col0 +---- +-4902 +0 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -33811,14 +34247,20 @@ SELECT + - 37 * 16 * - - 84 AS col1, - CAST ( - 32 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \+ Int64\(\-11\) \+ \(\- Int64\(\-9\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 + - 11 + - - 9 + COUNT ( * ) col2, 26 AS col2 +---- +26 +79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 105450 # Datafusion - Expected - -2598 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(74\), \(\- \(\- count\(DISTINCT Int64\(93\)\)\)\) \+ Int64\(63\), Int64\(31\) / Int64\(69\)\) \* Int64\(\-15\) \* Int64\(\-95\) AS col1" at position 0 and "Int64\(99\) \+ max\(\(\- Int64\(87\)\)\) \* Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( + 74, - - COUNT ( DISTINCT 93 ) + + 63, + 31 / + + 69 ) * - 15 * - 95 AS col1, + 99 + MAX ( - ( + 87 ) ) * 31 AS col1 +---- +-2598 +105450 query I rowsort SELECT + 63 - 20 AS col2 @@ -34184,8 +34626,11 @@ SELECT ALL 9, 94 col2 # 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 col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 col2, 2 col2 +---- +2 +44 query I rowsort label-6508 SELECT 20 * - 95 + + + CAST ( NULL AS INTEGER ) * 3 AS col2 @@ -34414,8 +34859,11 @@ SELECT - 30 + 24 + + NULLIF ( 0, 24 ) + - 62 + + + 33 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-21\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, + COUNT ( * ) + - - 21 AS col2 +---- +1 +22 query I rowsort label-6552 SELECT DISTINCT 95 + + + ( + 41 ) + + ( 89 ) + - MIN ( + 31 ) / 58 @@ -34662,8 +35110,11 @@ SELECT DISTINCT - - 66 - 17 AS col1, + NULLIF ( + ( MIN ( DISTINCT + 57 ) ), 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(77\) AS Int32\) AS col0" at position 0 and "CASE Int64\(\-51\) WHEN Int64\(25\) THEN Int64\(\-29\) WHEN Int64\(86\) THEN Int64\(50\) WHEN count\(Int64\(\-40\)\) \* Int64\(45\) THEN Int64\(94\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( 77 AS INTEGER ) AS col0, CASE + ( - 51 ) WHEN + 25 THEN + - 29 WHEN + 86 THEN 50 WHEN + COUNT ( + - 40 ) * 45 THEN + 94 ELSE NULL END AS col0 +---- +77 +NULL query I rowsort SELECT + 56 + + - NULLIF ( + - 68, + 3 / 87 ) AS col1 @@ -34754,8 +35205,11 @@ SELECT DISTINCT 94 / 84 AS col1 # 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\) AS col2" at position 0 and "Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 64 AS col2, 17 AS col2 +---- +17 +64 query I rowsort label-6617 SELECT 22 * CAST ( 66 AS INTEGER ) AS col2 @@ -34978,8 +35432,11 @@ 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\(1\)\) AS count\(\*\)\) \- Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 62 AS col2, + 72 + - COUNT ( * ) - + 27 col2 +---- +44 +62 query I rowsort SELECT - - 41 * + 53 * 31 AS col0 @@ -35032,8 +35489,12 @@ SELECT ALL - COUNT ( ALL + NULLIF ( 63, 25 ) ) + 33 # Datafusion - Expected - 60 # Datafusion - Expected - 2907 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) \* \(\- sum\(Int64\(51\)\)\) AS col1" at position 1 and "\(\- Int64\(22\)\) \* Int64\(8\) \* Int64\(\-86\) \+ Int64\(\-74\) \+ min\(CAST\(NULL AS Float64\)\) \* Int64\(\-30\) \+ count\(Int64\(57\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort SELECT ALL + + 60 AS col0, - 57 * + - SUM ( ALL + 51 ) AS col1, - + 22 * + 8 * - 86 + + - 74 + + MIN ( ALL + CAST ( NULL AS FLOAT8 ) ) * + - 30 + COUNT ( ALL + 57 ) AS col1 +---- +2907 +60 +NULL query I rowsort label-6671 SELECT ALL + SUM ( + 57 ) @@ -35189,8 +35650,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 495 # Datafusion - Expected - -806 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* max\(Int64\(15\)\) AS col0" at position 0 and "Int64\(31\) \* \(\- Int64\(26\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 * MAX ( 15 ) AS col0, + 31 * - + 26 AS col0 +---- +-806 +495 query I rowsort SELECT ( 28 ) * + 2 @@ -35259,8 +35723,11 @@ SELECT DISTINCT 11 / - 48 * - NULLIF ( 90, - + 52 * + + ( + - 74 ) ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col2" at position 0 and "\(\- sum\(CAST\(NULL AS Int32\)\)\) \* Int64\(\-77\) \- Int64\(49\) \* \(\- max\(Int64\(56\)\)\) \+ \(\- nullif\(Int64\(\-33\), \(\- count\(\(\- Int64\(\-88\)\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 22 AS col2, - SUM ( + + CAST ( NULL AS INTEGER ) ) * - 77 - + 49 * - MAX ( ALL + 56 ) + - + NULLIF ( - 33, - ( + COUNT ( ALL - - 88 ) ) ) AS col2 +---- +-22 +NULL query I rowsort SELECT ALL ( + 65 ) + - 22 @@ -35746,8 +36213,11 @@ SELECT + COUNT ( * ) * - + 6 * COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 15 col2, - 45 AS col2 +---- +-45 +15 query I rowsort SELECT - NULLIF ( - ( 67 ), + - 68 ) * 19 AS col0 @@ -36025,8 +36495,12 @@ 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\(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\. +query III valuesort SELECT ALL ( 36 ) + + 40 - + COUNT ( * ) + - 59 AS col0, + 98 + - 39 + - + COUNT ( * ) AS col0, COUNT ( DISTINCT + 63 ) AS col2 +---- +1 +16 +58 query I rowsort SELECT - 56 + - + 49 @@ -36084,8 +36558,11 @@ SELECT 32, COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(Int64\(3\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) * - CAST ( + 3 AS INTEGER ) AS col2, - 22 col2 +---- +-22 +-3 query I rowsort SELECT ALL + 85 - 74 * - 68 AS col0 @@ -37307,8 +37784,11 @@ SELECT - COUNT ( * ) * - + 51 + - ( + + ( - 9 ) ) + + - 0 / - - 88 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -186 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(31\) \* \(\- coalesce\(Int64\(6\), Int64\(54\) \* Int64\(62\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 31 * - COALESCE ( 6, + + 54 * 62 ) AS col2 +---- +-186 +1 query I rowsort label-7102 SELECT DISTINCT CAST ( - 68 AS INTEGER ) - - 38 - + - 87 + 9 * - 66 + - COUNT ( * ) @@ -37419,8 +37899,12 @@ SELECT 89 + - 0 AS col1 # Datafusion - Expected - -59 # Datafusion - Expected - -112 # 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 "Int64\(\-28\) \- Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 59 col0, - 28 - 84 AS col0, + + COUNT ( * ) col2 +---- +-112 +-59 +1 query I rowsort SELECT DISTINCT + 84 + 85 + - 11 * + 90 * + 29 AS col0 @@ -37440,8 +37924,11 @@ SELECT 45 * + 48 + + - MAX ( DISTINCT - 83 ) - - COALESCE ( - COUNT ( * ), - + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ count\(Int64\(36\)\) \+ Int64\(2\) \+ Int64\(37\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- min\(Int64\(92\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 40 + + + COUNT ( ALL 36 ) + + + 2 + + 37 * + COUNT ( * ) AS col0, - MIN ( 92 ) col0 +---- +-92 +80 query I rowsort SELECT + + 70 + - 16 AS col2 @@ -37540,8 +38027,11 @@ SELECT ALL - ( + 28 ) * - 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9801 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \* \(\- Int64\(99\)\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 99 * - + 99 AS col1, 19 AS col1 +---- +19 +9801 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -37579,8 +38069,11 @@ SELECT ALL + + COUNT ( ALL - 42 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col2" at position 0 and "Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 47 AS col2, + 79 AS col2 +---- +-47 +79 query II rowsort label-7152 SELECT ALL - + COUNT ( * ) * + - ( - 78 ) - 43 + + - ( - ( + 65 ) ) + - 48 * - 73 AS col2, 54 @@ -38161,8 +38654,11 @@ SELECT ALL + 25 + - 36 * MAX ( ALL + 88 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, 18 AS col0 +---- +1 +18 query I rowsort label-7262 SELECT - 10 + - SUM ( + ( 5 ) ) @@ -38412,8 +38908,11 @@ SELECT ALL + 29 AS col1, + 19 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 col1" at position 0 and "Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 75 ) AS col1, 1 AS col1 +---- +-75 +1 query II rowsort label-7309 SELECT ALL + 55 * + - 63 * + 28 - - 66 + + 31 + - + 69 + 0 - - 49 * 61 / 97 * + COALESCE ( 74, - 52 ) + - COUNT ( * ) AS col0, 66 * + 12 * + - 97 AS col1 @@ -38444,8 +38943,11 @@ 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\(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\. +query II valuesort SELECT 33 * + COUNT ( * ) + + - 60 col1, 17 col1 +---- +-27 +17 query II rowsort label-7315 SELECT 49 / + NULLIF ( + 69, + 73 / - COUNT ( * ) + + 39 + - + 58 * + - 63 + - COUNT ( + 34 ) + COUNT ( * ) * + 16 + - COUNT ( * ) ) col1, 28 + + + 56 AS col0 @@ -38481,8 +38983,12 @@ NULL # Datafusion - Expected - 136 # Datafusion - Expected - 105 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ Int64\(97\) AS col2" at position 0 and "Int64\(54\) \+ Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 39 + + 97 AS col2, 54 + ( 51 ) AS col2, 61 * - + 70 + + 17 + + - 74 / + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * 38 AS col1 +---- +105 +136 +NULL query I rowsort label-7321 SELECT ALL 41 * + COUNT ( * ) AS col0 @@ -38497,8 +39003,11 @@ 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\(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\. +query II valuesort SELECT CASE - 75 WHEN - COUNT ( 80 ) THEN 62 END * + + COUNT ( * ) * - - 84 + COUNT ( + 53 ) * - 74 AS col0, 65 AS col0 +---- +65 +NULL query II rowsort label-7324 SELECT ALL - COUNT ( + - 1 ), - 15 col2 @@ -38736,8 +39245,11 @@ 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\(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\. +query II valuesort 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 +---- +1 +NULL query I rowsort SELECT DISTINCT - 15 * - 2 + + 87 @@ -39213,8 +39725,11 @@ SELECT ALL + 35 * 25 AS col1 # 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 col2" at position 0 and "Int64\(1\) / \(\- sum\(\(\- Int64\(90\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 41 col2, + 1 / - SUM ( + + ( - + 90 ) ) AS col2 +---- +-41 +0 query II rowsort label-7461 SELECT DISTINCT - COUNT ( * ), 86 + - 97 + - 29 * + 16 + - ( + 6 ) * - CAST ( NULL AS INTEGER ) + 42 AS col1 @@ -39951,8 +40466,11 @@ SELECT 89 + + + COUNT ( * ) / + 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 51 AS col1, 45 AS col1 +---- +45 +51 query I rowsort SELECT 98 + + ( - + 1 ) @@ -40741,8 +41259,11 @@ SELECT CAST ( - 88 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 53 + + COUNT ( * ) AS col0, ( 4 ) col0 +---- +-52 +4 query II rowsort SELECT + + 22 * - 80 AS col0, 18 @@ -40994,8 +41515,11 @@ SELECT ALL 19 * 57 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 356 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \* Int64\(52\) / Int64\(\-13\) AS col0" at position 0 and "Int64\(\-42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 89 * 52 / - 13 col0, - 42 AS col0 +---- +-42 +356 query I rowsort label-7804 SELECT ALL COALESCE ( - 30, 6 * + 38 * - 83 ) * + COUNT ( * ) col0 @@ -41264,8 +41788,11 @@ SELECT 92 + - 97 + + CAST ( + COUNT ( * ) AS INTEGER ) # 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 "Int64\(2\) \+ Int64\(\-3\) AS col1" at position 0 and "Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 + - 3 AS col1, 68 AS col1 +---- +-1 +68 query I rowsort SELECT DISTINCT 59 * + 66 col2 @@ -41516,8 +42043,11 @@ SELECT DISTINCT COUNT ( - - 91 ) * + COUNT ( * ) * - 26 + 46 + - COALESCE ( + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -379 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* Int64\(\-51\) \- 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 II valuesort SELECT ALL 8 * - 51 - - 29 AS col0, 63 AS col0 +---- +-379 +63 query II rowsort SELECT + 78 * - 36 + - + 96 AS col0, + 70 @@ -41576,8 +42106,11 @@ NULL # 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 "Int64\(6\) \- \(\- Int64\(92\)\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 6 - - + 92 AS col1, + 27 AS col1 +---- +27 +98 query I rowsort SELECT ALL + 15 * ( + 2 ) @@ -41992,8 +42525,11 @@ 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\(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\. +query II valuesort SELECT - - COUNT ( * ) AS col0, MAX ( - 33 ) AS col0 +---- +-33 +1 query I rowsort SELECT ALL - 10 + + 90 AS col2 @@ -42473,8 +43009,12 @@ NULL # Datafusion - Expected - -7 # Datafusion - Expected - 80 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(7\)\)\) AS col2" at position 0 and "\(\- min\(Int64\(\-80\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - SUM ( DISTINCT + 7 ) AS col2, - MIN ( + + ( - 80 ) ) col2, - 56 * + - COUNT ( * ) AS col1 +---- +-7 +56 +80 query I rowsort label-8084 SELECT ALL MAX ( ALL + + 52 ) - 96 AS col1 @@ -42484,8 +43024,11 @@ SELECT ALL MAX ( ALL + + 52 ) - 96 AS 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 "Int64\(77\) / Int64\(45\) AS col1" at position 0 and "Int64\(89\) \- \(\- Int64\(\-68\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 77 / 45 AS col1, + 89 - - - 68 AS col1 +---- +1 +21 query I rowsort label-8086 SELECT 77 * - CASE - 13 WHEN - ( COUNT ( * ) ) THEN 92 END @@ -42815,8 +43358,12 @@ SELECT COALESCE ( + COALESCE ( 35, + + 72 ), + CAST ( + 10 AS INTEGER ) * + 38 ) # Datafusion - Expected - -91 # Datafusion - Expected - 130 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) AS col0" at position 0 and "Int64\(95\) \+ Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + ( - 91 ) AS col0, 95 + + 35 AS col0, - + 42 +---- +-42 +-91 +130 query I rowsort label-8148 SELECT DISTINCT - CASE - 30 WHEN - - COUNT ( + + 54 ) THEN 51 WHEN + + 97 THEN NULL ELSE NULL END * 11 @@ -42959,8 +43506,11 @@ SELECT - NULLIF ( + - 56, + 65 * 39 ) - + 64 AS col0, 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(25\)\)\) \* Int64\(\-87\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) + - COUNT ( 25 ) * - 87 AS col2, + 7 AS col2 +---- +7 +NULL query I rowsort SELECT + 88 + 30 + - 59 AS col2 @@ -43579,8 +44129,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \+ max\(Int64\(\-11\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 54 col2, COALESCE ( 59, - COUNT ( * ) + + MAX ( - 11 ) ) AS col2 +---- +-54 +59 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -43730,8 +44283,11 @@ SELECT ALL - NULLIF ( - 73, - 39 + + CAST ( NULL AS INTEGER ) ) # 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\)\) AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 25 AS col2, ( 44 ) AS col2 +---- +-25 +44 query I rowsort SELECT 14 * ( - + 86 ) @@ -43897,8 +44453,12 @@ SELECT - COALESCE ( + - COUNT ( * ), + 77 - - NULLIF ( - SUM ( - 23 ), + ( 89 ) # Datafusion - Expected - -1656 # Datafusion - Expected - 890 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* min\(DISTINCT Int64\(89\)\) AS col2" at position 1 and "\(\- coalesce\(Int64\(68\), \(\- Int64\(\-60\)\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 18 * - + 92, + 10 * MIN ( DISTINCT + 89 ) AS col2, - COALESCE ( 68, - - 60 ) AS col2 +---- +-1656 +-68 +890 query I rowsort label-8351 SELECT 83 / + + 55 @@ -44001,8 +44561,12 @@ 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\(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\. +query III valuesort 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 +---- +41760 +95 +NULL query II rowsort SELECT 37 AS col0, CASE + + 54 WHEN - 66 THEN - ( - + 3 ) * + 75 WHEN + 68 + - 85 THEN NULL ELSE NULL END AS col2 @@ -44036,14 +44600,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -135 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \+ Int64\(\-60\) \+ Int64\(\-12\) AS col0" at position 0 and "Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 63 + - 60 + - 12 AS col0, 52 AS col0 +---- +-135 +52 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(51\)\) AS col0" at position 0 and "Int64\(\-58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 51 col0, - 58 AS col0 +---- +-51 +-58 query I rowsort SELECT ALL + - 27 + 37 col2 @@ -44187,8 +44757,11 @@ SELECT ALL + + 91 + - SUM ( - + 89 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 177072 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-22\) \* sum\(DISTINCT CAST\(NULL AS Int32\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(97\)\) \+ CASE \(\- Int64\(\-22\)\) WHEN \(\- Int64\(14\)\) THEN Int64\(18\) END\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(62\) \* Int64\(84\) \* \(\- Int64\(\-34\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1 +177072 query I rowsort SELECT ALL + - 99 + + 67 col2 @@ -44252,8 +44825,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -490941 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* Int64\(9\) \* Int64\(\-87\) \* Int64\(11\) AS col1" at position 0 and "\(\- Int64\(\-18\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 57 * + 9 * - 87 * ( + 11 ) AS col1, - ( - 18 ) AS col1 +---- +-490941 +18 query I rowsort SELECT 34 * - - 79 AS col1 @@ -44377,8 +44953,11 @@ SELECT ALL - SUM ( 64 ) / - 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 1 AS col2 +---- +1 +1 query II rowsort label-8441 SELECT ALL - CAST ( - + 54 AS INTEGER ) col1, - 86 @@ -44438,8 +45017,11 @@ SELECT ALL - 61 + + + COUNT ( * ) * - 94 * - - 1 / + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 189 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- nullif\(Int64\(51\), Int64\(27\) \+ Int64\(\-4\) \+ Int64\(77\)\)\) \+ Int64\(78\) \+ Int64\(54\) \+ count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(9\) \+ Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, - NULLIF ( 51, + 27 + + - 4 + + 77 ) + 78 + + 54 + COUNT ( * ) * COUNT ( * ) * + 9 + + 99 col0 +---- +1 +189 query II rowsort label-8452 SELECT + SUM ( ALL 4 ) AS col1, + 37 @@ -44487,8 +45069,11 @@ SELECT ALL - + 8 col1, + 32 - - 14 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT ALL 32 col0, - 8 AS col0 +---- +-8 +32 query I rowsort label-8461 SELECT + MIN ( + 84 ) + + 44 @@ -44621,8 +45206,11 @@ SELECT + COUNT ( ALL + 32 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col2" at position 0 and "CASE Int64\(50\) WHEN Int64\(48\) THEN NULL ELSE \(\- CAST\(NULL AS Float64\)\) / count\(Int64\(49\)\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL + ( - 87 ) AS col2, CASE + + 50 WHEN + 48 THEN NULL ELSE - CAST ( NULL AS FLOAT8 ) / COUNT ( + 49 ) END col2 +---- +-87 +NULL query I rowsort label-8487 SELECT DISTINCT + COALESCE ( + CAST ( NULL AS INTEGER ), - COUNT ( * ) ) col1 @@ -44659,14 +45247,20 @@ 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\(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\. +query II valuesort SELECT - 89 * + + 15 + - - COUNT ( * ) AS col2, COUNT ( * ) + - NULLIF ( + 49, + 59 / + 15 - 15 - + + 48 + + 70 + - 77 / 29 ) - - + 26 AS col2 +---- +-1334 +-22 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1628 # Datafusion - Expected - -688 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(\-44\)\) \* Int64\(37\) 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 II valuesort SELECT + SUM ( DISTINCT - 44 ) * + 37 AS col0, - 8 * + 86 AS col0 +---- +-1628 +-688 query I rowsort label-8495 SELECT - ( + 54 ) - - CASE + - 55 WHEN - + 90 + 4 + + 74 + + COUNT ( 19 ) + - 38 + + - 69 * 81 * 41 * + 78 + CAST ( + - 59 AS INTEGER ) / - 63 THEN - 5 ELSE - 63 * 6 / ( + 3 ) + - - 22 END - + 81 - + 90 * - 56 AS col0 @@ -44769,8 +45363,11 @@ SELECT ALL 52 + - 34 / + 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15642 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* Int64\(6\) \* Int64\(79\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 33 * + 6 * + 79 AS col2, + 0 AS col2 +---- +0 +15642 query I rowsort label-8515 SELECT + COUNT ( * ) * - 24 @@ -44944,8 +45541,11 @@ SELECT ALL 86 - COUNT ( DISTINCT 44 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36191 # Datafusion - Expected - -5525 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \- Int64\(\-76\) \* Int64\(68\) \* Int64\(7\) AS col2" at position 0 and "Int64\(85\) \* \(\- Int64\(65\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 15 - - 76 * + 68 * 7 AS col2, 85 * - + ( 65 ) col2 +---- +-5525 +36191 query II rowsort label-8548 SELECT + COUNT ( * ) * + + 36 * + 95 + COUNT ( * ) AS col0, + COUNT ( * ) @@ -45143,8 +45743,11 @@ SELECT DISTINCT - 89 * 7 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6887 # Datafusion - Expected - 2535 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* nullif\(Int64\(71\), Int64\(94\) \+ Int64\(35\)\) AS col0" at position 0 and "Int64\(65\) \* Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 97 * + NULLIF ( 71, + 94 + 35 ) AS col0, + 65 * 39 AS col0 +---- +2535 +6887 query I rowsort SELECT - 8 + + 31 + + 18 * - + 39 AS col2 @@ -45253,8 +45856,11 @@ SELECT ALL + 9 * + 87 + - NULLIF ( + + COALESCE ( 29, NULLIF ( + 60, + 65 / 93 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1292 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "coalesce\(Int64\(\-16\), Int64\(73\), Int64\(43\)\) \* Int64\(84\) \+ coalesce\(Int64\(52\), \(\- CAST\(NULL AS Int32\)\) \* \(\- count\(CAST\(Int64\(\-29\) AS Int32\)\)\) \* Int64\(\-41\), Int64\(\-79\) / CASE Int64\(34\) WHEN Int64\(34\) THEN Int64\(53\) \* Int64\(0\) WHEN Int64\(20\) THEN NULL WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN NULL WHEN Int64\(98\) THEN NULL END \+ \(\- Int64\(\-97\)\), CAST\(NULL AS Int32\) \+ Int64\(41\) \+ Int64\(13\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-1292 +1 query II rowsort SELECT DISTINCT 93 AS col0, 16 @@ -45426,14 +46032,20 @@ SELECT ALL + + ( 65 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 10 AS col1, 12 col1 +---- +10 +12 # 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\(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\. +query II valuesort SELECT - COUNT ( * ) - - + COUNT ( * ) col0, COUNT ( * ) + - 80 * - - COUNT ( * ) AS col0 +---- +-79 +0 query I rowsort label-8640 SELECT + CAST ( + ( - + 93 ) AS INTEGER ) @@ -45696,8 +46308,11 @@ SELECT - MIN ( DISTINCT - 44 ) * - 1 * - 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 66 col0, + 96 AS col0 +---- +66 +96 query I rowsort SELECT ALL - - ( 90 ) @@ -46133,8 +46748,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 AS col1, + COUNT ( * ) + - 91 col1 +---- +-90 +68 query I rowsort label-8773 SELECT ALL 27 + COUNT ( * ) + - - 76 AS col2 @@ -46219,8 +46837,11 @@ SELECT DISTINCT + COUNT ( * ) / + 78 + - 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) / CAST\(Int64\(86\) AS Int32\) \* Int64\(9\) \+ Int64\(83\) \- Int64\(0\) AS col2" at position 0 and "\(\- count\(Int64\(77\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 / CAST ( 86 AS INTEGER ) * 9 + + 83 - + + 0 AS col2, - COUNT ( + 77 ) AS col2 +---- +-1 +83 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -46533,8 +47154,11 @@ 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\(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\. +query II valuesort SELECT ALL - - COUNT ( * ) / SUM ( 51 ) AS col1, - 9 * MAX ( DISTINCT + 86 ) - + 61 AS col1 +---- +-835 +0 query II rowsort label-8848 SELECT DISTINCT + - 66 + - - COUNT ( * ) * 99, - 91 AS col2 @@ -46936,8 +47560,11 @@ SELECT - 88 AS col0, + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \+ Int64\(72\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 + + 72 AS col1, 26 AS col1 +---- +26 +75 query I rowsort label-8922 SELECT ALL SUM ( ALL + 29 ) AS col0 @@ -47002,8 +47629,11 @@ SELECT 21 * - - MIN ( 49 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col0" at position 0 and "Int64\(\-6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 AS col0, - 6 AS col0 +---- +-20 +-6 query II rowsort label-8934 SELECT 28 + + 49, - COUNT ( * ) AS col0 @@ -47265,8 +47895,11 @@ SELECT + ( - MIN ( DISTINCT + 89 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\)" at position 0 and "Int64\(71\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 71, + 71 +---- +71 +71 query I rowsort label-8983 SELECT - 83 * - COUNT ( * ) + 88 + + + 86 + 77 @@ -47641,8 +48274,11 @@ SELECT ALL - 15 * - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5580 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* Int64\(\-93\) AS col0" at position 0 and "Int64\(56\) \+ Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 60 * ( - 93 ) AS col0, 56 + + 29 AS col0 +---- +-5580 +85 query II rowsort label-9055 SELECT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + 95, - CASE WHEN NOT 15 > ( NULL ) THEN + 24 ELSE NULL END @@ -47977,8 +48613,11 @@ SELECT ALL 66 + - 31 + - 39 * + 97 * + 77 * + 17, 0 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, 3 col1 +---- +1 +3 query II rowsort SELECT ALL 79 + + 41, - 18 AS col0 @@ -48252,8 +48891,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -12690 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* Int64\(\-2\) \* Int64\(9\) \* Int64\(47\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 15 * - 2 * 9 * + 47 AS col1, 79 col1 +---- +-12690 +79 query II rowsort SELECT ALL - 36 AS col2, 9 @@ -48310,8 +48952,11 @@ SELECT - COUNT ( DISTINCT - + ( - - 67 ) ) * - 37 * + 63 + - - 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 col2" at position 0 and "nullif\(count\(DISTINCT Int64\(81\)\), coalesce\(\(\- Int64\(\-59\)\), Int64\(\-75\) \* Int64\(48\)\) \- Int64\(51\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 43 AS col2, NULLIF ( COUNT ( DISTINCT + 81 ), + + COALESCE ( - - 59, - 75 * + 48 ) - 51 ) AS col2 +---- +-43 +1 query I rowsort SELECT - 86 - 94 @@ -49086,8 +49731,11 @@ SELECT ALL - 72 * + - ( - - 45 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 AS col1, 99 AS col1 +---- +28 +99 query I rowsort label-9333 SELECT ALL CAST ( + + 0 AS INTEGER ) @@ -49257,8 +49905,11 @@ SELECT 28 + COALESCE ( + CAST ( NULL AS INTEGER ), 25 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 55 -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\(55\), Int64\(19\) \+ \(\- CASE Int64\(1\) WHEN Int64\(0\) THEN NULL ELSE Int64\(\-83\) END\), Int64\(\-76\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + + 30 ) AS col0, COALESCE ( + 55, 19 + - CASE ( + 1 ) WHEN 0 THEN NULL ELSE - 83 END, - 76 ) AS col0 +---- +30 +55 query I rowsort SELECT ALL - - 21 + + + 21 AS col1 @@ -49457,8 +50108,11 @@ SELECT + SUM ( - 31 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(88\), Int64\(54\), Int64\(33\)\)\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COALESCE ( 88, + + 54, 33 ) AS col2, 28 AS col2 +---- +-88 +28 query I rowsort label-9404 SELECT CAST ( 9 AS INTEGER ) * + 67 AS col0 @@ -49499,8 +50153,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 10 * + 0 AS col0, ( - COUNT ( * ) ) AS col0, + 29 AS col0 +---- +-1 +0 +29 query I rowsort SELECT DISTINCT + 59 * + 19 @@ -49536,8 +50194,12 @@ SELECT + 49 + - + COUNT ( * ) # Datafusion - Expected - 31 # Datafusion - Expected - 132 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "Int64\(55\) \+ Int64\(10\) \+ Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 31 AS col2, 55 + + 10 + + 67 AS col2, + 90 +---- +132 +31 +90 query I rowsort label-9419 SELECT + COUNT ( * ) * + ( - + SUM ( DISTINCT - 32 ) ) @@ -49563,8 +50225,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 58 AS col2, + 8 + + 67 + - COUNT ( * ) AS col2 +---- +-58 +74 query I rowsort SELECT ALL + 8 + - 12 AS col1 @@ -50298,8 +50963,11 @@ SELECT ALL + 70 * 48 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- Int64\(34\)\)\) AS Int32\) AS col2" at position 0 and "min\(DISTINCT \(\- Int64\(0\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( - - ( 34 ) AS INTEGER ) AS col2, MIN ( DISTINCT - ( + 0 ) ) col2 +---- +0 +34 query I rowsort label-9563 SELECT CAST ( 74 AS INTEGER ) * + COALESCE ( - 18, + 35 ) * + 58 * - + 29 - - 82 AS col2 @@ -50799,8 +51467,11 @@ SELECT 83 + COUNT ( * ) / - COUNT ( * ) AS col0 # 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 "Int64\(\-3\) AS col2" at position 0 and "Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 AS col2, 39 AS col2 +---- +-3 +39 query I rowsort label-9658 SELECT 89 * + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) @@ -50994,8 +51665,11 @@ SELECT ALL + 6 + + 71 + - 93 - + 7 * + 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + 7 ) AS col2, 19 AS col2 +---- +19 +7 query I rowsort SELECT - 37 + - 8 @@ -51258,8 +51932,12 @@ SELECT ALL 27 + - - 49 + + - 27 * - - 78 / + + 76 + - 33 / + - 15 AS col0 # Datafusion - Expected - 78 # Datafusion - Expected - 16 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 1 and "Int64\(10\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 78, + 16 AS col0, + 10 AS col0 +---- +10 +16 +78 query I rowsort label-9747 SELECT 54 - - + MAX ( 28 ) col1 @@ -51533,8 +52211,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) / + - 85 col1, 91 * 84 AS col1 +---- +0 +7644 query II rowsort label-9799 SELECT + 89 * - 69 AS col2, - COUNT ( * ) @@ -51764,8 +52445,12 @@ SELECT - 67 + MIN ( + ( - 67 ) ) AS col2 # Datafusion - Expected - 1850 # Datafusion - Expected - 88 # Datafusion - Expected - -112 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col0" at position 1 and "Int64\(\-79\) \- Int64\(33\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 25 * - + 74 * + COUNT ( * ) AS col2, 88 AS col0, - 79 - 33 col0 +---- +-112 +1850 +88 query I rowsort label-9842 SELECT - + 14 / - 53 @@ -51938,8 +52623,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * - 81 AS col2, - 75 + - + 21 + + 45 * - - COUNT ( * ) / + 93 * - + 95 col2 +---- +-81 +-96 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -52179,8 +52867,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 21 + + + 27 AS col1, - ( COUNT ( * ) ) AS col1 +---- +-1 +48 query I rowsort label-9921 SELECT ALL + 8 * 95 + - 90 - - 38 * - COUNT ( * ) diff --git a/data/sqlite/random/expr/slt_good_74.slt b/data/sqlite/random/expr/slt_good_74.slt index 89f5754..20f79e3 100644 --- a/data/sqlite/random/expr/slt_good_74.slt +++ b/data/sqlite/random/expr/slt_good_74.slt @@ -318,8 +318,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "nullif\(CASE Int64\(4\) WHEN Int64\(46\) \* max\(Int64\(\-9\)\) THEN Int64\(92\) END, Int64\(22\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, NULLIF ( + CASE + + 4 WHEN 46 * MAX ( - 9 ) THEN 92 END, + 22 ) AS col1 +---- +1 +NULL query I rowsort label-52 SELECT DISTINCT + COUNT ( * ) / 8 @@ -350,8 +353,12 @@ SELECT - 43 + - 69 AS col0 # Datafusion - Expected - 1 # Datafusion - Expected - -58 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-29\) \* Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL COUNT ( * ) AS col2, - 29 * + 2 AS col2, + - 80 + - SUM ( DISTINCT + 23 ) + + 26 +---- +-58 +-77 +1 query I rowsort label-58 SELECT DISTINCT + 50 / - 33 @@ -481,8 +488,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + 42 * + 6 + + 95 + 1 + - COUNT ( * ) + 41 * 68 * - 97 AS col1, 35 - + - COUNT ( * ) AS col1 +---- +-270089 +36 query I rowsort label-83 SELECT ALL 55 / + 91 @@ -545,8 +555,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * - + ( - COUNT ( * ) ) / - + COUNT ( * ) AS col2, + 3 + + + 57 AS col2 +---- +-1 +60 query I rowsort SELECT + 43 * + 61 AS col1 @@ -622,8 +635,12 @@ SELECT DISTINCT - 49 + + + COUNT ( * ) + 40 AS col0 # Datafusion - Expected - 19 # Datafusion - Expected - NULL # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "Int64\(\-46\) \- sum\(Int64\(86\)\) \* \(\- CAST\(Int64\(29\) AS Int32\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-80\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \* count\(Int64\(51\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +19 +45 +NULL query I rowsort label-110 SELECT ALL + - COALESCE ( + - COALESCE ( - 60, + 41 / + 24 + + CAST ( + CAST ( + ( + 52 ) AS FLOAT8 ) AS INTEGER ), + - 1 / + 67 + + - 52 * + 7 + - CAST ( - COUNT ( + 90 ) AS INTEGER ) ), 53 ) * - 93 - + 3 * + + 47 @@ -676,8 +693,12 @@ 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\(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\. +query III valuesort SELECT 91 + + 15 / - 47 * COUNT ( * ) * - 28 + - 83 + 2 AS col0, - COUNT ( * ) AS col0, 28 * - 40 * CAST ( + 83 AS INTEGER ) AS col2 +---- +-1 +-92960 +10 query I rowsort SELECT ALL 68 * + 62 AS col2 @@ -850,8 +871,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col1, + 17 / + - 77 + + 84 col1 +---- +-1 +84 query I rowsort SELECT 17 + - 94 @@ -889,8 +913,11 @@ SELECT + 84 AS col2, 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(93\) AS Int32\)\) AS col1" at position 0 and "Int64\(\-88\) / Int64\(24\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( + ( 93 ) AS INTEGER ) AS col1, - 88 / 24 * + + ( - COUNT ( * ) ) AS col1 +---- +-93 +3 query I rowsort label-159 SELECT ALL - CAST ( NULL AS INTEGER ) / + 70 col2 @@ -1015,8 +1042,11 @@ SELECT ALL 65 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 155231 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "Int64\(60\) / Int64\(\-48\) \+ \(\- Int64\(\-9\)\) \* Int64\(28\) \* Int64\(44\) \* Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 AS col1, 60 / - 48 + ( - - 9 ) * 28 * + + 44 * 14 col1 +---- +155231 +3 query II rowsort label-183 SELECT COUNT ( * ) AS col1, 25 @@ -1088,8 +1118,11 @@ 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\(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\. +query II valuesort SELECT + 70 * - 34 * - 41 - - - 60 + - + 62 + + COUNT ( * ) / + 94 AS col1, 9 * + 36 + + 46 col1 +---- +370 +97458 query I rowsort SELECT 51 * + 31 + - 93 AS col1 @@ -1397,8 +1430,12 @@ NULL # Datafusion - Expected - -99 # Datafusion - Expected - 17 # Datafusion - Expected - 1366 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col0" at position 0 and "max\(DISTINCT \(\- Int64\(77\)\)\) \+ coalesce\(Int64\(37\), Int64\(27\)\) \* \(\- Int64\(\-39\)\) \* \(\- \(\- nullif\(Int64\(1\), Int64\(80\) \+ Int64\(93\) / Int64\(63\) \* Int64\(\-20\)\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 99 AS col0, + 17 AS col2, MAX ( DISTINCT - + 77 ) + + COALESCE ( 37, + + 27 ) * - - 39 * - ( - NULLIF ( 1, 80 + + 93 / + 63 * - 20 ) ) AS col0 +---- +-99 +1366 +17 query II rowsort SELECT 76 AS col0, + 62 * 31 col2 @@ -1446,8 +1483,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - 23 -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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 85 AS col0, 23 AS col0 +---- +-85 +23 query I rowsort label-265 SELECT + 65 / - + 61 AS col2 @@ -1469,8 +1509,12 @@ SELECT 16, + MAX ( - + 59 ) + + 40 + + 50 col2 # Datafusion - Expected - 513 # Datafusion - Expected - -79 # Datafusion - Expected - 1915 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* min\(DISTINCT \(\- \(\- CAST\(Int64\(19\) AS Int32\)\)\)\) AS col1" at position 0 and "Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 27 * + ( - COUNT ( * ) ) * + MIN ( DISTINCT - - CAST ( + 19 AS INTEGER ) ) AS col1, - 79 AS col1, - 94 - + + ( 15 ) + - + ( + + 44 ) * - + 46 col0 +---- +-79 +1915 +513 query I rowsort label-269 SELECT - COUNT ( * ) / + 24 @@ -1480,8 +1524,11 @@ SELECT - COUNT ( * ) / + 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- coalesce\(Int64\(27\), Int64\(51\)\)\), Int64\(\-58\) \+ \(\- Int64\(\-51\)\)\) AS col2" at position 0 and "Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( - COALESCE ( + 27, + 51 ), + - 58 + - - 51 ) AS col2, 51 AS col2 +---- +-27 +51 query I rowsort label-271 SELECT + 24 - - NULLIF ( + 54, - 97 * + + COUNT ( * ) ) @@ -1689,8 +1736,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 72 AS col0, COUNT ( * ) * COUNT ( * ) AS col0 +---- +1 +72 query II rowsort SELECT 9 AS col1, + 85 @@ -1769,8 +1819,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 460 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "Int64\(28\) \* coalesce\(Int64\(19\), \(\- Int64\(\-74\)\)\) \- Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 53 AS col0, 28 * COALESCE ( 19, - - 74 ) - 72 AS col0 +---- +460 +53 query I rowsort label-325 SELECT ALL CAST ( NULL AS INTEGER ) * - + 23 col0 @@ -1827,8 +1880,11 @@ SELECT + COUNT ( * ) * - COALESCE ( 49, ( + 26 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -130 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) / coalesce\(Int64\(\-13\), count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(65\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 26 / ( + COALESCE ( - 13, COUNT ( * ) ) ) * ( + 65 ) AS col1, COUNT ( * ) AS col1 +---- +-130 +1 query II rowsort label-336 SELECT - ( + COUNT ( * ) ), + 2 AS col1 @@ -2083,8 +2139,11 @@ SELECT ALL 69 + - 10 * 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - -5477 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "Int64\(64\) \* Int64\(\-85\) \+ Int64\(12\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(Int64\(48\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 AS col1, 64 * - 85 + 12 + + - COUNT ( * ) + - CAST ( + 48 AS INTEGER ) AS col1 +---- +-5477 +19 query I rowsort label-385 SELECT DISTINCT - CAST ( + 2 AS INTEGER ) * + - 91 * + 69 @@ -2293,8 +2352,11 @@ SELECT + - 68 + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 801 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-41\)\) AS col0" at position 0 and "Int64\(9\) \* Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 41 AS col0, 9 * + 89 AS col0 +---- +41 +801 query I rowsort label-425 SELECT + 99 + 2 / CAST ( AVG ( DISTINCT + 46 ) AS INTEGER ) AS col0 @@ -2815,8 +2877,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 - - 69 AS col1, ( - + 72 ) - COUNT ( ALL + + 63 ) * - ( COUNT ( * ) ) AS col1 +---- +-71 +93 query I rowsort label-521 SELECT DISTINCT + COUNT ( * ) * - 94 @@ -2990,8 +3055,11 @@ SELECT - 94 + + - 68 + - 41 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "Int64\(\-62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 84 AS col0, - 62 AS col0 +---- +-62 +84 query I rowsort SELECT 77 * + ( - + 32 ) * + - 43 + - 24 * 27 AS col1 @@ -3082,8 +3150,11 @@ SELECT DISTINCT - COALESCE ( 84, - 87 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- \(\- Int64\(68\)\)\)\)\) \+ \(\- count\(Int64\(\-13\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - ( - - ( 68 ) ) + ( + - COUNT ( - 13 ) ) AS col1, COUNT ( * ) AS col1 +---- +1 +67 query II rowsort SELECT ALL + 94, 24 AS col1 @@ -3242,8 +3313,11 @@ SELECT 35 * - 40 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -910 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(26\)\) \* Int64\(\-35\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( 26 ) * - 35 * + COUNT ( * ) AS col0, + 50 AS col0 +---- +-910 +50 query II rowsort SELECT - 9 AS col1, 18 + + - 95 col0 @@ -3723,8 +3797,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-52\) \+ \(\- CASE Int64\(42\) WHEN Int64\(93\) THEN NULL WHEN Int64\(59\) \* Int64\(87\) \- \(\- Int64\(54\)\) THEN NULL ELSE Int64\(44\) END\) AS col2" at position 0 and "Int64\(75\) \+ \(\- coalesce\(Int64\(\-21\), Int64\(\-50\) / Int64\(51\) \+ \(\- CASE CAST\(Int64\(\-37\) AS Int32\) WHEN Int64\(81\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- coalesce\(\(\- Int64\(1\)\), Int64\(67\) \+ Int64\(25\) \+ Int64\(\-72\), Int64\(0\)\)\) \* Int64\(\-46\) \* Int64\(\-36\) \+ Int64\(16\) \- \(\- avg\(DISTINCT Int64\(92\)\)\) \+ max\(DISTINCT Int64\(84\)\) \* Int64\(\-3\) THEN count\(Int64\(1\)\) AS count\(\*\) END\) / Int64\(95\) \+ \(\- Int64\(\-81\)\) \+ Int64\(50\) \* min\(Int64\(74\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +8 +96 query I rowsort label-697 SELECT ALL + CASE + 40 WHEN + 1 + - 10 THEN NULL WHEN 73 THEN - - COUNT ( * ) + - + 96 + + - 87 * + - 2 * + - 80 WHEN + - 81 THEN NULL WHEN + 8 + 25 THEN NULL END AS col0 @@ -4073,8 +4150,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \- Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 99 col0, + CAST ( NULL AS INTEGER ) - 59 AS col0 +---- +99 +NULL query I rowsort SELECT + 29 * - 67 + 22 @@ -4275,8 +4355,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - NULLIF ( - + 44, - 37 / 3 + + AVG ( - - 64 ) + + COUNT ( * ) ) col2, 42 AS col2 +---- +42 +44 query I rowsort label-801 SELECT DISTINCT + + 90 / - 98 AS col0 @@ -4580,8 +4663,11 @@ 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\(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\. +query II valuesort SELECT ( + - 76 ) AS col0, - CASE - 30 WHEN MIN ( ALL + - 78 ) - + COUNT ( * ) THEN - - 25 END + + 13 AS col0 +---- +-76 +NULL query I rowsort label-858 SELECT COUNT ( * ) * COALESCE ( + 83, - COUNT ( * ) ) / + 46 @@ -5220,8 +5306,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 5130 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "Int64\(54\) \* Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 col2, 54 * 95 AS col2 +---- +5130 +58 query I rowsort SELECT ALL - 94 - - - 39 AS col2 @@ -5533,8 +5622,12 @@ SELECT - ( - - 59 ) + - 5 + 86 col1 # Datafusion - Expected - 11 # Datafusion - Expected - -1078 # 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 "Int64\(0\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 11 AS col0, 14 * - 77, + 0 AS col0 +---- +-1078 +0 +11 query I rowsort SELECT - 83 * + + COALESCE ( + + ( - 5 ), + 27 ) AS col1 @@ -5685,8 +5778,11 @@ SELECT + 61 * + + 99, 0 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 158 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col2" at position 0 and "Int64\(69\) \- min\(DISTINCT Int64\(\-89\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 29 AS col2, 69 - + + MIN ( DISTINCT - 89 ) AS col2 +---- +158 +29 query I rowsort label-1072 SELECT MIN ( 12 ) col2 @@ -5858,8 +5954,11 @@ SELECT COUNT ( * ) * - COALESCE ( - + 15, - 30 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -540 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(\-60\) AS col1" at position 0 and "Int64\(\-15\) \* Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 + - 60 col1, - 15 * + + 36 AS col1 +---- +-540 +17 query I rowsort SELECT 86 + + 21 - - - 25 * - 81 + - + 38 col2 @@ -6590,8 +6689,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) * - MAX ( ALL + 46 ) * + SUM ( 73 ) * - 62 col2, + 26 AS col2 +---- +208196 +26 query I rowsort label-1245 SELECT - 99 * - COUNT ( * ) + - - MAX ( - 57 ) / - 53 @@ -6690,8 +6792,11 @@ SELECT - 74 AS col2, 45 + CAST ( - CAST ( 84 AS INTEGER ) AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - 1400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col2" at position 0 and "Int64\(70\) \* Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 96 AS col2, 70 * + 20 AS col2 +---- +-96 +1400 query I rowsort SELECT 70 * + 34 @@ -6776,8 +6881,11 @@ 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\(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\. +query II valuesort 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 +---- +-15135157 +NULL query I rowsort SELECT ALL + 17 * + ( - + 80 ) @@ -7068,8 +7176,11 @@ SELECT ALL - 90 - + - 96 * - 73 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 525 # Datafusion - Expected - -8866 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* Int64\(15\) AS col0" at position 0 and "Int64\(2\) \* max\(\(\- Int64\(64\)\)\) \* Int64\(67\) \- Int64\(\-29\) \* Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 35 * 15 AS col0, 2 * + MAX ( - + 64 ) * + 67 - - 29 * - 10 AS col0 +---- +-8866 +525 query I rowsort label-1332 SELECT 5 / ( - 10 ) AS col1 @@ -7206,8 +7317,11 @@ SELECT + MAX ( + + 78 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 / COUNT ( * ) col2, 69 col2 +---- +-82 +69 query II rowsort SELECT ALL - 27 + 79, - ( + + 36 ) AS col1 @@ -7309,8 +7423,11 @@ SELECT ALL 41 + + + ( - 64 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 AS col2, 40 col2 +---- +38 +40 query I rowsort label-1377 SELECT 90 / 34 AS col0 @@ -7713,8 +7830,12 @@ NULL # Datafusion - Expected - -200 # Datafusion - Expected - -82 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \* Int64\(25\) AS col2" at position 0 and "Int64\(\-61\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 8 * + 25 AS col2, - 82, - 61 col2 +---- +-200 +-61 +-82 query II rowsort label-1454 SELECT - 61 - + 35 + + + CAST ( - 54 AS INTEGER ) + - 34 + + COUNT ( * ) * 20 AS col1, - 21 * + 32 * COUNT ( * ) * + ( + - ( - MAX ( 25 ) ) ) + - - 0 @@ -7736,8 +7857,11 @@ SELECT COUNT ( * ) + + COUNT ( * ) + 21 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-89\)\)\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - SUM ( ALL - 89 ) AS col1, 29 AS col1 +---- +29 +89 query I rowsort label-1458 SELECT - - 67 * + + 42 + - - COUNT ( * ) AS col0 @@ -7972,8 +8096,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "Int64\(\-32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 56 AS col0, - 32 AS col0 +---- +-32 +56 query II rowsort label-1502 SELECT ALL + 32, + 14 * MIN ( + - 46 ) + + + 23 / + MIN ( 6 ) AS col0 @@ -8691,8 +8818,11 @@ SELECT - 75 + - + 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - -686 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* Int64\(\-7\) AS col1" at position 0 and "Int64\(\-91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 98 * + - 7 AS col1, - 91 col1 +---- +-686 +-91 query II rowsort label-1638 SELECT 83 + + MAX ( ALL - - 38 ), 44 AS col1 @@ -8714,8 +8844,11 @@ SELECT + COUNT ( * ) * - 5 + + 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- min\(Int64\(\-86\)\)\)\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - MIN ( - 86 ) AS col2, 19 AS col2 +---- +-86 +19 query I rowsort label-1642 SELECT 94 + 98 * - NULLIF ( + COUNT ( * ), 1 + 0 ) AS col1 @@ -8845,8 +8978,11 @@ SELECT - COUNT ( * ) AS col0, - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 42 -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\(78\)\) \+ Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 22 AS col0, + COUNT ( + + 78 ) + 41 AS col0 +---- +-22 +42 query II rowsort label-1667 SELECT ALL COUNT ( * ), - 72 AS col2 @@ -8889,8 +9025,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 3600 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(75\) \* Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 74 * + + COUNT ( * ) AS col0, + 75 * 48 AS col0 +---- +3600 +74 query I rowsort label-1675 SELECT DISTINCT COALESCE ( - 7, - - 60 * - + 23 * + + 31 * + 44 * COUNT ( * ), ( - 1 ) ) @@ -9329,8 +9468,12 @@ SELECT DISTINCT + - 88 * - 75 - - 8 # Datafusion - Expected - 1 # Datafusion - Expected - 1 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 and "Int64\(38\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + COUNT ( * ), + COUNT ( * ) AS col1, + + 38 AS col1 +---- +1 +1 +38 query I rowsort label-1758 SELECT + - 35 / - 52 + + - 98 @@ -9340,8 +9483,11 @@ SELECT + - 35 / - 52 + + - 98 # 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 "Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 86 AS col0, 3 col0 +---- +3 +86 query I rowsort label-1760 SELECT DISTINCT MAX ( + + 34 ) * - - COUNT ( * ) @@ -9692,8 +9838,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, 56 * 94 - + - 66 AS col1 +---- +-1 +5330 query I rowsort label-1826 SELECT - + COUNT ( * ) * + 78 AS col2 @@ -9703,8 +9852,11 @@ SELECT - + COUNT ( * ) * + 78 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5585 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ \(\- Int64\(59\)\) \* \(\- Int64\(93\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 + - + 59 * - + 93 AS col0, + CAST ( NULL AS INTEGER ) col0 +---- +5585 +NULL query II rowsort label-1828 SELECT DISTINCT + 71 + + ( + 64 ) AS col1, - 13 * + COUNT ( * ) * + + 94 * + 25 AS col2 @@ -9886,8 +10038,11 @@ 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\(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\. +query II valuesort 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 +---- +92 +NULL query I rowsort label-1863 SELECT DISTINCT - - MAX ( - 95 ) + 7 AS col0 @@ -10170,8 +10325,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) col0, + 64 AS col0 +---- +-1 +64 query I rowsort SELECT ALL - - 36 + - 21 AS col1 @@ -10864,8 +11022,11 @@ SELECT - CAST ( + 79 AS INTEGER ) # 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 col2" at position 0 and "Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 99 AS col2, 22 AS col2 +---- +22 +99 query I rowsort SELECT DISTINCT 76 - - 35 @@ -11003,8 +11164,11 @@ SELECT 53 * + 74 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2629 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(10\) WHEN Int64\(\-96\) THEN NULL WHEN Int64\(50\) THEN Int64\(\-91\) \* Int64\(\-47\) \- Int64\(25\) END \* nullif\(Int64\(12\), Int64\(79\)\) AS col2" at position 0 and "Int64\(22\) \+ Int64\(\-36\) \* Int64\(75\) \+ Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CASE + 10 WHEN - 96 THEN NULL WHEN + + 50 THEN + ( - 91 ) * - 47 - 25 END * + NULLIF ( 12, + 79 ) AS col2, ( 22 ) + + - 36 * + 75 + + 49 AS col2 +---- +-2629 +NULL query II rowsort label-2075 SELECT 93, - COUNT ( * ) AS col2 @@ -11268,8 +11432,11 @@ SELECT DISTINCT - - COALESCE ( - 25, + COUNT ( * ) * + 53 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -93816 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(\-56\) \* Int64\(42\) \+ Int64\(\-89\) \+ Int64\(52\) \* Int64\(98\) \- Int64\(39\) AS col1" at position 0 and "Int64\(\-97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 42 * - 56 * + 42 + + - 89 + + 52 * 98 - + 39 AS col1, - 97 AS col1 +---- +-93816 +-97 query I rowsort SELECT DISTINCT 61 * 7 AS col1 @@ -11304,8 +11471,11 @@ SELECT ALL - 50 / + 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "max\(Int64\(\-53\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 88 AS col1, MAX ( - 53 ) AS col1 +---- +-53 +88 query II rowsort SELECT + 83 AS col1, + 20 AS col2 @@ -11322,8 +11492,11 @@ SELECT ALL 36, + COALESCE ( - 80, 92 ) + + 0 + - COUNT ( * ) * 8 + - - 75 AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 41 AS col0, 64 AS col0 +---- +-41 +64 query I rowsort label-2135 SELECT - CAST ( - + COALESCE ( - - MIN ( - - 77 ), ( - 65 ) - + 47 + - - 13 + - + 78 * + 87 / + - 35 * COUNT ( * ) + + - 47, + 45 ) AS INTEGER ) * - - 99 @@ -11395,8 +11568,11 @@ SELECT - - 15 + - + NULLIF ( 45, - 89 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(63\)\) AS col2" at position 0 and "Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 63 AS col2, 25 col2 +---- +-63 +25 query I rowsort SELECT DISTINCT - 45 * - - 16 * - 9 + + + 6 * - 14 AS col2 @@ -11441,8 +11617,11 @@ SELECT DISTINCT + + 51 * + 43 - 28 * 31 * + - 56 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 0 and "Int64\(24\) \+ Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 11 AS col0, 24 + 28 AS col0 +---- +11 +52 query I rowsort label-2158 SELECT DISTINCT + ( + COUNT ( * ) ) * - 20 AS col1 @@ -11747,8 +11926,11 @@ SELECT DISTINCT + 27 * - COUNT ( * ) + - 93 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 69 AS col0, + 8 AS col0 +---- +-69 +8 query I rowsort SELECT ALL CASE WHEN NOT NULL IS NOT NULL THEN - 25 ELSE NULL END @@ -11800,8 +11982,11 @@ SELECT 62 / + + 98 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 34 AS col2, 93 AS col2 +---- +34 +93 query I rowsort label-2225 SELECT ALL - 55 + + COUNT ( * ) - + 81 / 81 * + COUNT ( * ) AS col0 @@ -11841,8 +12026,11 @@ SELECT 56 * + - ( ( + + 36 ) ) * 54 + + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -663 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col0" at position 0 and "Int64\(\-51\) \* Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 col0, ( - 51 ) * + + 13 AS col0 +---- +-663 +23 query I rowsort SELECT ALL - ( + + 3 ) @@ -12680,8 +12868,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + + COUNT ( * ) ) AS col2, - 2 AS col2 +---- +-1 +-2 query I rowsort label-2393 SELECT - COUNT ( * ) + + - 83 / + 31 AS col1 @@ -12968,8 +13159,11 @@ 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\(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\. +query II valuesort SELECT 75 + + - 58 AS col2, ( - + 87 ) / + 9 / - COUNT ( * ) - COUNT ( * ) + 86 AS col2 +---- +17 +94 query I rowsort SELECT 9 * + - 3 * - 14 @@ -13230,8 +13424,12 @@ SELECT + 60 + + 4 * + + 6 AS col0 # Datafusion - Expected - 442 # Datafusion - Expected - 52 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-49\) \* Int64\(\-9\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + COUNT ( * ) * - 49 * - 9 + + COUNT ( * ) AS col0, 52 AS col0, - 3 * - COUNT ( DISTINCT + - 97 ) +---- +3 +442 +52 query I rowsort SELECT 16 * - 27 * 66 + + 16 @@ -13276,8 +13474,11 @@ SELECT ALL ( - + 21 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - 7885 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(40\)\) \+ \(\- Int64\(\-37\)\) / Int64\(38\) AS col1" at position 0 and "nullif\(Int64\(95\), \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-24\)\) \* Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + ( + 40 ) ) + - ( - 37 ) / + 38 AS col1, + NULLIF ( + 95, - CAST ( NULL AS INTEGER ) * + - 24 ) * + 83 AS col1 +---- +-40 +7885 query I rowsort label-2507 SELECT DISTINCT COUNT ( - 40 ) AS col1 @@ -14340,8 +14541,11 @@ 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\(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\. +query II valuesort SELECT 38 * COUNT ( * ) + + 20 + - 92 AS col2, 50 AS col2 +---- +-34 +50 query I rowsort label-2713 SELECT 20 - - COUNT ( * ) @@ -14415,8 +14619,11 @@ SELECT - 51 * + + 73 + - 75 + - 56 + - 20 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col2, 34 AS col2 +---- +34 +NULL query I rowsort label-2727 SELECT ALL COUNT ( * ) * + + 63 + + 14 @@ -15186,8 +15393,11 @@ SELECT ALL + 23 col0, + 57 * - 68 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- Int64\(37\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) col2, - ( 37 ) AS col2 +---- +-37 +NULL query I rowsort label-2875 SELECT DISTINCT 74 * + 93 + + SUM ( DISTINCT + 40 ) AS col2 @@ -15267,8 +15477,11 @@ SELECT COUNT ( * ) AS col0, - 88 * + + 55 + 61 + 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 117 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \+ nullif\(\(\- nullif\(Int64\(\-74\), \(\- Int64\(10\)\)\)\), Int64\(\-51\) \+ Int64\(\-19\) \+ Int64\(16\) \* Int64\(\-85\)\) AS col2" at position 0 and "Int64\(\-5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 43 + + + NULLIF ( - NULLIF ( - 74, - + 10 ), - 51 + + - 19 + + 16 * + - 85 ) AS col2, - 5 AS col2 +---- +-5 +117 query I rowsort label-2890 SELECT DISTINCT SUM ( 59 ) AS col0 @@ -15710,8 +15923,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col0" at position 0 and "Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 41 AS col0, - 65 AS col0 +---- +-65 +41 query I rowsort SELECT DISTINCT + 29 + - 24 AS col1 @@ -15783,8 +15999,11 @@ 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\(1\)\) AS count\(\*\)\) \- Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MIN ( DISTINCT 89 ) AS col2, + 11 + 11 / - COUNT ( * ) - + 11 AS col2 +---- +-11 +89 query II rowsort label-2988 SELECT COALESCE ( - 56, + 51, + CAST ( NULL AS INTEGER ), - 36 + + COUNT ( * ) + 82 ) col2, - 42 + - 21 @@ -16338,8 +16557,11 @@ SELECT ALL - COUNT ( - - 78 ), + 39 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\(54\) / Int64\(6\) AS col2" at position 0 and "Int64\(11\) \* Int64\(49\) \* Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 / + 6 AS col2, 11 * 49 * 0 AS col2 +---- +0 +9 query I rowsort SELECT ALL 74 * NULLIF ( - + 55, - + 25 + + 35 ) @@ -17066,8 +17288,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + - COUNT ( * ) AS col1, 87 * + 23 + 68 / + - MIN ( 12 ) + + 84 - + + 71 / + + 2 + - + 64 - + + 99 AS col1 +---- +-1 +1882 query II rowsort SELECT ALL - ( + 95 ) * + 99 + 25 AS col1, 98 @@ -17340,8 +17565,11 @@ SELECT 76 * - 24 * - COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 AS col2, 44 AS col2 +---- +37 +44 query I rowsort SELECT ALL - CASE WHEN NOT 15 IS NOT NULL THEN - - 38 WHEN NOT 91 * - 64 IS NULL THEN + 15 + + + 82 END @@ -17977,8 +18205,11 @@ SELECT DISTINCT 4 * NULLIF ( - + 89, - + CAST ( - - 96 AS INTEGER ) * + 83 + - 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6192 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(86\) AS col1" at position 0 and "min\(\(\- CAST\(Int64\(82\) AS Int32\)\)\) / CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 * 86 AS col1, MIN ( + ( - CAST ( + 82 AS INTEGER ) ) ) / CAST ( NULL AS INTEGER ) AS col1 +---- +6192 +NULL query I rowsort label-3407 SELECT COUNT ( + - COALESCE ( - 58, ( - 84 ) * + + 0 / 2 + - - 33 ) ) + + CAST ( NULL AS INTEGER ) + + 31 AS col1 @@ -18181,8 +18412,11 @@ SELECT 85 / - SUM ( ALL 78 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(Int64\(7\)\), Int64\(30\), Int64\(31\)\) \+ Int64\(47\) AS col2" at position 0 and "Int64\(58\) \* \(\- Int64\(17\)\) \+ Int64\(\-27\) \+ Int64\(81\) \+ Int64\(50\) \* Int64\(\-39\) \* Int64\(\-87\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(93\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +48 +NULL query I rowsort SELECT 91 * - 24 AS col2 @@ -18458,8 +18692,11 @@ SELECT - COALESCE ( + - 60, + 25 * - - 82 + 35 + + 57 / MIN ( + + 30 ) + - 73 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(nullif\(Int64\(12\), Int64\(\-35\)\)\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( ALL + + NULLIF ( 12, - 35 ) ) AS col1, 72 col1 +---- +12 +72 query I rowsort label-3498 SELECT - + 19 / 50 * - + 63 + + 14 * - 35 * COUNT ( * ) @@ -18652,8 +18889,11 @@ 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 col2" at position 0 and "Int64\(75\) \- Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 35 AS col2, 75 - 78 AS col2 +---- +-3 +-35 query I rowsort label-3536 SELECT DISTINCT - + COUNT ( * ) + + 59 @@ -18674,8 +18914,11 @@ 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\(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\. +query II valuesort 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 +---- +-4 +NULL query I rowsort SELECT ALL - ( - 11 ) + + 30 @@ -18731,8 +18974,11 @@ SELECT 71, + 28 / + ( - + NULLIF ( - 64, - 10 ) ) * - - 83 * - 31 + 18 - - 63 - # Datafusion - Datafusion expected results: # Datafusion - Expected - -495 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(\-99\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 5 * + - 99 AS col1, ( + COUNT ( * ) ) col1 +---- +-495 +1 query II rowsort label-3551 SELECT + 60, 92 * 60 + + + COUNT ( ALL + - 93 ) AS col1 @@ -18753,15 +18999,22 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 AS col1, COUNT ( * ) * - 98 col1 +---- +-98 +66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 45 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 1 and "\(\- Int64\(\-81\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 76 col1, 45 AS col0, - - 81 AS col0 +---- +45 +76 +81 query I rowsort label-3556 SELECT 7 * + COUNT ( * ) AS col2 @@ -18832,8 +19085,11 @@ SELECT DISTINCT NULLIF ( 8, + CASE + - 83 WHEN - 90 * + - 57 THEN + 59 END ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* CAST\(\(\- Int64\(10\)\) AS Int32\) \- Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 80 AS col1, CAST ( NULL AS INTEGER ) * + CAST ( - + 10 AS INTEGER ) - 74 AS col1 +---- +80 +NULL query I rowsort SELECT DISTINCT - 32 + + + 39 - - - 44 @@ -19075,8 +19331,11 @@ SELECT - NULLIF ( + + 46, - 40 ) / + - 36 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3502 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \* Int64\(37\) \+ Int64\(87\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 97 * + 37 + 87 AS col1, 13 AS col1 +---- +-3502 +13 query I rowsort SELECT DISTINCT + 13 * ( + + ( - 66 ) ) + + + 12 @@ -19164,8 +19423,11 @@ SELECT + + ( + - 81 ) + + NULLIF ( + 39, + 48 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 6782 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(6\) \+ Int64\(88\) \* Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, 6 + + + 88 * 77 AS col2 +---- +1 +6782 query II rowsort SELECT - - 20 AS col0, 81 @@ -19182,8 +19444,11 @@ SELECT ALL + 64 AS col1, 35 * 58 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 768 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* min\(Int64\(48\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( 16 ) * MIN ( ALL 48 ) AS col1, COUNT ( * ) col1 +---- +1 +768 query II rowsort SELECT ALL + - 81 AS col2, 44 col0 @@ -19206,8 +19471,12 @@ SELECT ALL 28 * - 13 AS col2, - ( - + 92 ) # Datafusion - Expected - -87 # Datafusion - Expected - 76 # Datafusion - Expected - 152 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) / Int64\(\-71\) \* Int64\(96\) \- Int64\(87\) AS col0" at position 0 and "Int64\(53\) \+ Int64\(99\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 43 / - 71 * 96 - + + 87 AS col0, 76, 53 + 99 AS col0 +---- +-87 +152 +76 query I rowsort label-3640 SELECT DISTINCT 46 * COUNT ( * ) @@ -19685,8 +19954,11 @@ SELECT ALL 47 * + 24 AS col2 # 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 "Int64\(48\)" at position 0 and "Int64\(48\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48, + 48 +---- +48 +48 query I rowsort SELECT + 74 * - 89 @@ -19825,8 +20097,11 @@ 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\(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\. +query II valuesort SELECT ALL + + 33 / - COUNT ( * ) + - - ( - ( - 73 ) ) AS col1, COALESCE ( - 3, + 17, - SUM ( ALL - 52 ), - + 2 + + 71 ) col1 +---- +-3 +40 query I rowsort label-3761 SELECT ALL - ( ( + 69 ) ) * - 49 + 68 * + 48 + - 63 + - 74 * + CAST ( NULL AS INTEGER ) * + 62 col2 @@ -19904,8 +20179,11 @@ NULL # 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 "Int64\(\-18\) AS col2" at position 0 and "Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 18 AS col2, + 79 AS col2 +---- +-18 +79 query I rowsort label-3776 SELECT CAST ( + 13 AS INTEGER ) * - COUNT ( * ) + - - COUNT ( * ) * + 18 @@ -20795,8 +21073,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 23 AS col1, - 20 AS col1 +---- +-20 +23 query I rowsort SELECT DISTINCT - 32 + - - 56 AS col0 @@ -20821,8 +21102,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COALESCE ( - 25, - + 81 ) * + MAX ( ALL + 5 ) + + 35 col0, 35 - + 91 - + - COUNT ( * ) AS col0 +---- +-55 +-90 query I rowsort SELECT 98 - + 20 AS col1 @@ -20864,8 +21148,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) \* Int64\(0\) \+ Int64\(\-18\) AS col1" at position 0 and "Int64\(\-98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 76 * + 0 + - 18 AS col1, - 98 AS col1 +---- +-18 +-98 query I rowsort SELECT ALL + + ( - 59 ) * + ( + NULLIF ( 77, - ( 39 ) ) ) @@ -20903,8 +21190,11 @@ SELECT NULLIF ( - ( + 5 ), - + ( 89 ) / + AVG ( + 88 ) - - + 40 ) # 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 col2" at position 0 and "Int64\(56\) / Int64\(\-48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 52 AS col2, + 56 / - 48 AS col2 +---- +-1 +-52 query I rowsort label-3967 SELECT ALL + ( + 15 ) * + - 62 + + 31 / 90 AS col0 @@ -21242,8 +21532,11 @@ SELECT 29 AS col1, 45 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\) AS col0" at position 0 and "nullif\(Int64\(38\), Int64\(54\) \* \(\- nullif\(Int64\(44\), Int64\(\-5\) \+ Int64\(67\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 AS col0, NULLIF ( + 38, + 54 * - NULLIF ( 44, + - 5 + + + 67 ) ) AS col0 +---- +38 +64 query II rowsort SELECT 34 col1, - 72 AS col2 @@ -21300,8 +21593,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * - 62 AS col1, - 42 AS col1 +---- +-42 +-62 query I rowsort SELECT - 3 * + 71 - - 99 AS col0 @@ -21792,8 +22088,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 38 * - 84 col1, 18 - + + COUNT ( * ) - 86 col1 +---- +-3192 +-69 query I rowsort SELECT ALL ( + 22 ) + + - 83 @@ -21818,8 +22117,11 @@ SELECT 58 + 63 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 7128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \+ Int64\(\-54\) AS col1" at position 0 and "\(\- nullif\(Int64\(88\), \(\- Int64\(20\)\)\)\) \* \(\- Int64\(81\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 + - 54 AS col1, - NULLIF ( 88, ( - + 20 ) ) * - + 81 AS col1 +---- +14 +7128 query I rowsort label-4143 SELECT COUNT ( * ) * + 14 / - 86 @@ -21915,8 +22217,11 @@ SELECT 98 / - ( + 72 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 55 AS col1, + COUNT ( * ) AS col1 +---- +1 +55 query I rowsort SELECT DISTINCT 62 * - + 88 @@ -22639,8 +22944,11 @@ 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\(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\. +query II valuesort 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 +---- +-30 +1 query I rowsort SELECT 33 + - 39 - + 24 @@ -23531,8 +23839,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\)" at position 0 and "Int64\(\-96\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 96, - 96 +---- +-96 +-96 query I rowsort label-4475 SELECT + + 65 / + 76 @@ -23564,8 +23875,11 @@ SELECT - + 35 col1, - 88 + - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "CAST\(Int64\(\-11\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 63 AS col2, + ( CAST ( - 11 AS INTEGER ) ) AS col2 +---- +-11 +63 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -24893,8 +25207,11 @@ SELECT ALL - ( + + ( - 83 ) ) AS col0 # 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\(48\) \+ \(\- Int64\(26\)\) \* Int64\(85\) / Int64\(\-93\) AS col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 48 + - + 26 * ( 85 ) / - 93 AS col2, 9 AS col2 +---- +71 +9 query I rowsort label-4732 SELECT + - 43 + - - 39 / - - 36 - + 51 AS col1 @@ -24909,8 +25226,11 @@ SELECT - MAX ( ALL ( + 26 ) ) * 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90 AS col2, 84 AS col2 +---- +84 +90 query I rowsort label-4735 SELECT DISTINCT + + MAX ( 83 ) AS col0 @@ -25150,8 +25470,11 @@ SELECT + 90 * - COUNT ( DISTINCT + 88 ) * + + 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) / Int64\(6\) AS col0" at position 0 and "\(\- Int64\(95\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 75 / + 6 AS col0, - ( + + 95 ) AS col0 +---- +-12 +-95 query I rowsort label-4781 SELECT ALL + COALESCE ( + CAST ( NULL AS INTEGER ), - 6 ) AS col0 @@ -25202,8 +25525,11 @@ SELECT DISTINCT - 54 + 79 * - + 61 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4554 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) \* Int64\(69\) AS col0" at position 0 and "Int64\(92\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 66 * + 69 AS col0, + 92 * + COUNT ( * ) AS col0 +---- +-4554 +92 query I rowsort SELECT ALL - + 8 + 33 + 77 AS col2 @@ -25343,8 +25669,11 @@ SELECT - CAST ( 39 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \+ Int64\(\-34\) / Int64\(\-64\) / CAST\(NULL AS Int32\) \* Int64\(\-74\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 64 + - 34 / ( - 64 ) / CAST ( NULL AS INTEGER ) * - 74 AS col2, + 52 AS col2 +---- +52 +NULL query II rowsort SELECT ALL + NULLIF ( 29, + 47 / + 90 + - - ( + 32 ) ) AS col0, + 65 @@ -25366,8 +25695,11 @@ SELECT 0 + - 17 / + 27 * - + 72 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 655 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \+ Int64\(67\) \+ Int64\(9\) \* Int64\(67\) \+ max\(\(\- coalesce\(Int64\(46\), Int64\(\-85\), Int64\(31\)\)\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 + + 67 + 9 * 67 + + MAX ( + - COALESCE ( 46, - 85, + 31 ) ) AS col2, CAST ( NULL AS INTEGER ) AS col2 +---- +655 +NULL query I rowsort SELECT 14 - 46 * + 53 @@ -25830,14 +26162,20 @@ SELECT 84 AS col1, 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ \(\- sum\(Int64\(33\)\)\) / Int64\(99\) \- Int64\(83\) \- coalesce\(Int64\(18\), Int64\(24\) \+ CASE Int64\(18\) WHEN CAST\(Int64\(\-13\) AS Int32\) THEN \(\- Int64\(18\)\) \* Int64\(32\) ELSE NULL END \+ Int64\(\-46\) \- Int64\(61\)\) AS col2" at position 0 and "Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 85 + - SUM ( ALL + 33 ) / 99 - 83 - + COALESCE ( + + 18, + 24 + + CASE + 18 WHEN + CAST ( - 13 AS INTEGER ) THEN - + 18 * + 32 ELSE NULL END + - 46 - + 61 ) AS col2, - 33 AS col2 +---- +-16 +-33 # 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 col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 45 AS col2, 1 AS col2 +---- +1 +45 query II rowsort label-4910 SELECT ALL 56 AS col2, - 94 + - - MIN ( - 40 ) + + + 92 @@ -25894,8 +26232,12 @@ 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\(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\. +query III valuesort 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 +---- +-55 +167 +NULL query II rowsort label-4921 SELECT DISTINCT 95 / + 18 AS col2, + 0 AS col0 @@ -26008,8 +26350,11 @@ SELECT ALL - 99 * MAX ( 75 ) * + 44 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - AVG ( + CAST ( NULL AS INTEGER ) ) AS col2, - 15 AS col2 +---- +-15 +NULL query I rowsort label-4943 SELECT 72 / + - NULLIF ( + MAX ( - ( - CAST ( 79 AS INTEGER ) ) ), + 44 ) * NULLIF ( + 80, + + 40 ) @@ -26177,8 +26522,12 @@ NULL # Datafusion - Expected - 43 # Datafusion - Expected - 6 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col0" at position 1 and "coalesce\(\(\- Int64\(\-48\)\), \(\- Int64\(55\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT COALESCE ( - - 43, - 76 * COUNT ( * ) ), 6 col0, COALESCE ( - - 48, + - ( + 55 ) ) AS col0 +---- +43 +48 +6 query II rowsort label-4974 SELECT 98 * CASE - 31 WHEN + + 94 THEN - + 26 + + 5 + - 46 * - - COUNT ( * ) END + - 12 * + 21 / + 17 + COUNT ( * ), ( - COUNT ( * ) ) + 45 AS col1 @@ -26450,8 +26799,11 @@ SELECT + 26 AS col2, - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col1" at position 0 and "Int64\(\-44\) / \(\- coalesce\(Int64\(40\), Int64\(\-30\) \+ \(\- Int64\(\-4\)\)\)\) \+ Int64\(\-84\) \+ Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 AS col1, - 44 / - COALESCE ( + 40, - 30 + - - 4 ) + + - 84 + + 94 AS col1 +---- +11 +77 query I rowsort SELECT ALL + 7 * - 16 AS col2 @@ -26482,8 +26834,12 @@ SELECT MAX ( - CASE + + 88 WHEN - - 19 THEN NULL ELSE + 26 END ) * 48 * - MIN ( # Datafusion - Expected - 376 # Datafusion - Expected - -81 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* Int64\(47\) AS col2" at position 0 and "\(\- max\(DISTINCT Int64\(20\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 8 * + 47 col2, 4 + + - 85 AS col1, - MAX ( DISTINCT + + 20 ) AS col2 +---- +-20 +-81 +376 query II rowsort label-5033 SELECT DISTINCT - COUNT ( * ), 40 AS col2 @@ -26759,8 +27115,11 @@ SELECT - 91 + - + MIN ( ALL + 16 ) AS col2, COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1645 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* Int64\(47\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 35 * + 47 AS col0, 7 col0 +---- +1645 +7 query I rowsort label-5087 SELECT DISTINCT ( - + ( - 84 ) ) * - + COUNT ( * ) * + 70 @@ -27005,8 +27364,11 @@ SELECT 58 * + MAX ( 91 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2162 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* Int64\(23\) AS col0" at position 0 and "Int64\(\-3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 * + ( ( + + 23 ) ) AS col0, - 3 AS col0 +---- +-3 +2162 query I rowsort SELECT 65 + - - 5 @@ -27297,8 +27659,11 @@ SELECT - - COUNT ( * ) * - SUM ( ALL - + 49 ) + + 34 * - COALESCE ( - 13, + - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -195 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \- Int64\(78\) \* CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-39\) \* Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 98 - + 78 * + + CAST ( NULL AS INTEGER ) AS col2, - 39 * 5 col2 +---- +-195 +NULL query I rowsort label-5189 SELECT ALL - - 66 * - 61 * - COUNT ( * ) - - 67 - 86 - - 89 AS col0 @@ -27515,8 +27880,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-1 +-2460 +NULL query I rowsort label-5230 SELECT + CASE - CAST ( NULL AS INTEGER ) WHEN - - 21 - - 26 + - 70 THEN - + 71 WHEN AVG ( 5 ) * 63 - + COUNT ( * ) + - SUM ( ALL 72 ) THEN - 31 END AS col1 @@ -27602,8 +27971,11 @@ SELECT ALL 25 - + 79 AS 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 "min\(Int64\(\-20\)\) AS col1" at position 0 and "Int64\(\-44\) / Int64\(\-59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( ALL - 20 ) AS col1, - 44 / - 59 AS col1 +---- +-20 +0 query I rowsort label-5247 SELECT DISTINCT SUM ( - 37 ) col2 @@ -27618,8 +27990,11 @@ SELECT ALL COALESCE ( + 79, - + 52 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2556 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \* Int64\(\-71\) AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 36 * - 71 AS col1, 8 col1 +---- +-2556 +8 query I rowsort label-5250 SELECT DISTINCT CASE - + 62 WHEN - - 19 + 93 THEN NULL WHEN 35 THEN MAX ( ALL CAST ( NULL AS INTEGER ) ) END @@ -27792,8 +28167,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "Int64\(76\) / Int64\(\-66\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 92 AS col1, + 76 / - 66 + + + COUNT ( * ) AS col1 +---- +0 +92 query I rowsort SELECT COALESCE ( 61, + 29 ) + - 99 AS col0 @@ -28431,8 +28809,11 @@ SELECT DISTINCT - 93 + - + 49 * + - 25 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 65 AS col1, 35 AS col1 +---- +-65 +35 query I rowsort label-5404 SELECT ALL - COUNT ( * ) + + 80 * + 35 AS col1 @@ -28896,8 +29277,11 @@ SELECT ALL - COUNT ( 41 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "Int64\(14\) \* Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 40 AS col1, + 14 * 60 AS col1 +---- +40 +840 query I rowsort SELECT + + ( - + 60 ) * - + 61 col2 @@ -28970,8 +29354,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \+ \(\- Int64\(\-55\)\) AS col2" at position 0 and "Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 31 + - - 55 AS col2, + 57 AS col2 +---- +57 +86 query I rowsort label-5503 SELECT DISTINCT MAX ( ALL - + 1 ) * ( - - NULLIF ( + SUM ( + - 37 ), + COALESCE ( - CAST ( NULL AS INTEGER ), + - 59 ) ) ) @@ -29064,8 +29451,11 @@ SELECT 45 + 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1392 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(72\)\)\) \+ \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-81\)\)\) \* \(\- Int64\(15\)\) \* Int64\(88\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(0\) \+ Int64\(\-73\) \- Int64\(3\) \+ \(\- Int64\(\-20\)\) \* \(\- coalesce\(Int64\(\-50\), Int64\(7\), Int64\(60\)\)\) / CAST\(NULL AS Int32\) \* Int64\(6\) \* \(\- Int64\(21\)\) \- Int64\(\-63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1392 +NULL query I rowsort label-5521 SELECT ALL COUNT ( * ) * + 4 AS col2 @@ -29163,8 +29553,11 @@ SELECT + 14 AS col0, - COUNT ( * ) * + ( + 65 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(30\), \(\- Int64\(\-16\)\)\) AS col1" at position 0 and "avg\(nullif\(CAST\(NULL AS Int32\), \(\- Int64\(\-33\)\) \* Int64\(\-56\) \* Int64\(91\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + NULLIF ( + + 30, - - 16 ) col1, AVG ( NULLIF ( CAST ( NULL AS INTEGER ), - - 33 * - 56 * + 91 ) ) AS col1 +---- +30 +NULL query I rowsort label-5540 SELECT ALL - MAX ( - + 10 ) col2 @@ -29331,8 +29724,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \+ \(\- Int64\(94\)\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 41 + - + 94 AS col1, 26 AS col1 +---- +-53 +26 query I rowsort label-5572 SELECT ALL + + CAST ( + - MAX ( DISTINCT - 52 ) AS INTEGER ) @@ -29398,8 +29794,11 @@ SELECT ALL - 48 * 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 784 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \+ \(\- Int64\(66\)\) AS col0" at position 0 and "max\(DISTINCT Int64\(14\)\) \* Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 25 + - ( 66 ) AS col0, MAX ( DISTINCT + 14 ) * 56 AS col0 +---- +-91 +784 query I rowsort SELECT ALL CASE 17 WHEN - 32 THEN 96 * - 22 + + 55 END @@ -29456,8 +29855,11 @@ SELECT ALL - 58 + COUNT ( * ) * + + 47 AS col0, 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 35 ) col2, 49 AS col2 +---- +35 +49 query I rowsort label-5596 SELECT ALL - 79 / + + NULLIF ( - - ( + 26 ), 35 ) + - 46 + - SUM ( ALL - + 32 ) AS col1 @@ -29666,8 +30068,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 col2, - COUNT ( * ) AS col2 +---- +-1 +81 query I rowsort SELECT ALL - 4 * - 16 * + ( + 19 ) AS col1 @@ -30062,8 +30467,11 @@ SELECT 34 AS col2, + 54 + + 23 * + 70 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col1" at position 0 and "Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 84 AS col1, 68 AS col1 +---- +-84 +68 query I rowsort SELECT DISTINCT ( + 58 ) AS col0 @@ -30289,8 +30697,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(36\) \- \(\- Int64\(\-57\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 79 * 83 col1, 10 * + + COUNT ( * ) + + 36 - - - 57 AS col1 +---- +-11 +6557 query I rowsort label-5753 SELECT + ( - 97 ) / - COUNT ( * ) + - 71 @@ -30359,8 +30770,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) - + ( - 72 ) AS col2, - CASE - COUNT ( * ) WHEN + - 59 THEN 62 * + + COUNT ( * ) ELSE NULL END AS col2 +---- +73 +NULL query I rowsort label-5766 SELECT COUNT ( * ) * - ( COUNT ( * ) ) + 8 AS col2 @@ -31431,8 +31845,11 @@ SELECT - + NULLIF ( - 41, - + CAST ( - COUNT ( ALL + 1 ) AS INTEGER ) ) + 97 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 783 # Datafusion - Expected - 1288 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(9\) AS col0" at position 0 and "Int64\(14\) \* \(\- sum\(Int64\(\-92\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 87 * + 9 AS col0, 14 * - SUM ( - 92 ) AS col0 +---- +1288 +783 query I rowsort label-5977 SELECT ALL + + CAST ( + CAST ( + - MAX ( DISTINCT 23 ) AS INTEGER ) AS INTEGER ) AS col2 @@ -31541,14 +31958,20 @@ SELECT ALL NULLIF ( COUNT ( * ), - + 6 ) - 13 / - 82 / - COUNT ( * ) + 17 AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 5229 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col2" at position 0 and "Int64\(63\) \* Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 AS col2, 63 * + 83 AS col2 +---- +44 +5229 # Datafusion - Datafusion expected results: # Datafusion - Expected - 122 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \+ Int64\(76\) \- Int64\(8\) 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 II valuesort SELECT 54 + + 76 - 8 AS col1, + COUNT ( ALL 69 ) AS col1 +---- +1 +122 query I rowsort label-5999 SELECT ALL 19 - + + 27 * COUNT ( * ) + + MIN ( 19 ) + 74 @@ -31599,8 +32022,11 @@ SELECT ( - 75 ) * - + 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col1" at position 0 and "Int64\(4\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 AS col1, + 4 * + CAST ( NULL AS INTEGER ) col1 +---- +77 +NULL query I rowsort SELECT DISTINCT 76 * + - 75 @@ -31944,8 +32370,11 @@ SELECT COALESCE ( - 49, - 82 * - 38 * - 74 + - ( 24 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 2447 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "Int64\(2\) / \(\- Int64\(33\)\) \+ Int64\(\-33\) \- Int64\(80\) \* Int64\(\-31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( ( + + 64 ) ) AS col0, 2 / - + 33 + + ( - 33 ) - + 80 * - 31 AS col0 +---- +2447 +64 query I rowsort label-6075 SELECT - 30 * MIN ( - 22 ) @@ -32012,8 +32441,12 @@ SELECT ALL 76 + - + 95 / + 86 # Datafusion - Expected - 2058 # Datafusion - Expected - -30 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* \(\- Int64\(\-98\)\) AS col1" at position 0 and "Int64\(\-79\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 21 * - - 98 AS col1, - 30, - 79 AS col1 +---- +-30 +-79 +2058 query I rowsort label-6087 SELECT - - 61 * SUM ( DISTINCT - - CAST ( 10 AS INTEGER ) ) AS col0 @@ -32453,8 +32886,11 @@ SELECT - - ( + 34 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2442 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* Int64\(74\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 33 * 74 col1, 22 AS col1 +---- +22 +2442 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -32505,8 +32941,11 @@ SELECT 63 * - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 811 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* Int64\(13\) \+ Int64\(\-86\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 69 * + + 13 + - 86 AS col0, 39 AS col0 +---- +39 +811 query I rowsort label-6180 SELECT DISTINCT 50 * - COUNT ( * ) * COUNT ( * ) + - 80 * 35 @@ -32674,8 +33113,11 @@ SELECT + 13 + 32 + - 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - -279 # Datafusion - Expected - 1488 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) \* \(\- Int64\(\-3\)\) AS col0" at position 0 and "\(\- sum\(\(\- Int64\(\-24\)\)\)\) \+ Int64\(63\) \* Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 93 * - - 3 AS col0, - SUM ( - - 24 ) + 63 * 24 AS col0 +---- +-279 +1488 query I rowsort label-6212 SELECT - CASE COUNT ( * ) WHEN - 37 THEN + COUNT ( * ) - - CAST ( + - 46 AS INTEGER ) * - ( + COUNT ( * ) ) WHEN + - 32 * + 30 THEN NULL END + - COUNT ( * ) AS col2 @@ -33600,8 +34042,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 82 AS col0, - 24 * NULLIF ( - 94, + 99 + + 92 - COUNT ( * ) ) AS col0 +---- +2256 +82 query I rowsort label-6389 SELECT DISTINCT 70 + + + COALESCE ( + COALESCE ( + - 97, + 81 * - COUNT ( * ) ), + 42 ) + + + 67 * - 78 @@ -33696,8 +34141,11 @@ SELECT ALL - + 34, + 68 + 8 + + + 41 + - 21 * + 55 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - -101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) AS col2" at position 0 and "Int64\(\-63\) \+ \(\- Int64\(38\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 7 AS col2, ( - 63 ) + - + 38 AS col2 +---- +-101 +-7 query I rowsort SELECT 97 + + 12 AS col1 @@ -34278,8 +34726,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - -2372 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col1" at position 0 and "Int64\(4\) \+ Int64\(\-27\) \* Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 AS col1, + 4 + - 27 * + 88 AS col1 +---- +-2372 +75 query I rowsort SELECT 51 * + + 40 AS col2 @@ -34327,8 +34778,11 @@ SELECT DISTINCT 89 * - - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "\(\- Int64\(\-14\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 AS col2, ( - - 14 ) AS col2 +---- +14 +89 query II rowsort label-6526 SELECT ALL 7 + + - 74 + + COUNT ( * ) * + ( - 51 ) AS col2, 36 + + 11 * + + 71 + - - MAX ( ALL - 9 ) + - COUNT ( * ) + + 23 * 98 - - MIN ( DISTINCT + 11 ) + - ( 20 ) * 25 * 44 AS col0 @@ -34354,8 +34808,11 @@ SELECT - COUNT ( ALL + 12 ) + + NULLIF ( 40, - 68 + 90 ) * + + 34 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2872 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) \+ Int64\(55\) \* Int64\(\-51\) AS col1" at position 0 and "Int64\(\-30\) \* Int64\(\-42\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 67 + + 55 * - 51 AS col1, + ( - 30 ) * - 42 * - CAST ( NULL AS INTEGER ) * 34 AS col1 +---- +-2872 +NULL query I rowsort SELECT 7 + - 67 AS col0 @@ -34626,8 +35083,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \* max\(Int64\(86\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 88 * + 35, - 57 AS col0, + + CASE + - 60 WHEN + ( - 34 ) THEN NULL WHEN 31 THEN + + 31 ELSE NULL END / - COUNT ( * ) * + MAX ( + 86 ) AS col0 +---- +-3080 +-57 +NULL query I rowsort label-6583 SELECT + MAX ( - ( ( + + 30 ) ) ) / - 30 + 88 AS col2 @@ -34856,8 +35317,11 @@ SELECT 15 * 42 * - 16 + 5 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 69 col0, + 44 AS col0 +---- +44 +69 query I rowsort label-6626 SELECT CAST ( + 34 AS INTEGER ) + + + 72 @@ -35643,8 +36107,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 81 AS col2, 61 AS col2 +---- +61 +81 query I rowsort SELECT 72 + - 31 AS col1 @@ -35877,8 +36344,11 @@ SELECT ALL - 90 + + - MIN ( - 40 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - 2610 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \+ Int64\(\-49\) AS col2" at position 0 and "Int64\(29\) \* Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 27 + - 49 AS col2, 29 * + + 90 AS col2 +---- +-76 +2610 query I rowsort SELECT - - 22 * + + 80 * - + 69 AS col0 @@ -35903,8 +36373,11 @@ SELECT ALL 29 / 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 306 # Datafusion - Expected - -6636 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(51\) AS col1" at position 0 and "Int64\(6\) \+ \(\- Int64\(82\)\) \* Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 6 * 51 AS col1, 6 + - ( 82 ) * 81 AS col1 +---- +-6636 +306 query I rowsort label-6822 SELECT + COUNT ( * ) + - 95 AS col0 @@ -36097,8 +36570,11 @@ SELECT ALL 94, - 20 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2380 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* Int64\(34\) AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 * 34 AS col2, 62 AS col2 +---- +2380 +62 query I rowsort label-6859 SELECT ALL 47 * + - COUNT ( * ) * 53 col0 @@ -36156,8 +36632,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 AS col2, 55 AS col2 +---- +55 +93 query II rowsort SELECT ALL - 56 col2, + ( - 94 ) * - ( + + 39 ) @@ -36224,8 +36703,12 @@ SELECT - + COALESCE ( 97, - 27 / 45 / COUNT ( * ) ) # Datafusion - Expected - 65 # Datafusion - Expected - 53 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 65 AS col0, + 53 AS col0, - 9 +---- +-9 +53 +65 query II rowsort label-6882 SELECT ALL - - 20 - + + 45 col2, + COUNT ( * ) * - CAST ( + 23 AS INTEGER ) + 60 - MAX ( ALL - - 99 ) + + COUNT ( * ) * 18 * 35 + - 13 @@ -36596,8 +37079,11 @@ SELECT ALL + 68 * + COALESCE ( - 17, + 66 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CASE CAST\(Int64\(35\) AS Int32\) WHEN Int64\(44\) \* Int64\(\-33\) THEN \(\- nullif\(Int64\(\-63\), \(\- CAST\(\(\- Int64\(45\)\) AS Int32\)\) \* nullif\(Int64\(68\), Int64\(\-59\) \+ Int64\(\-38\)\) \+ Int64\(36\) \+ \(\- Int64\(\-62\)\) \* Int64\(\-48\)\)\) \+ Int64\(\-67\) END\)\) AS col2" at position 0 and "Int64\(\-39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - CASE + + CAST ( 35 AS INTEGER ) WHEN 44 * + - 33 THEN - NULLIF ( - 63, - + CAST ( - + 45 AS INTEGER ) * + + NULLIF ( + 68, - 59 + - 38 ) + 36 + - - 62 * - 48 ) + - 67 END ) AS col2, - 39 AS col2 +---- +-39 +NULL query II rowsort SELECT + 50, + 17 * + + ( + - 74 ) - + 78 + - 84 + 33 * - 74 AS col1 @@ -37878,8 +38364,11 @@ SELECT + 12 + + - 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(32\)\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 32 col0, 68 AS col0 +---- +-32 +68 query I rowsort label-7199 SELECT + - 55 + + 60 * - + COUNT ( * ) - COUNT ( * ) + - 24 AS col0 @@ -38051,8 +38540,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 54 AS col2, + COUNT ( * ) * - 21 AS col2 +---- +-21 +54 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -38617,8 +39109,12 @@ NULL # Datafusion - Expected - -57 # Datafusion - Expected - 168 # Datafusion - Expected - -493 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col1" at position 0 and "Int64\(3\) \* Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 57 AS col1, 3 * + + 56 AS col1, + 17 * - 29 AS col2 +---- +-493 +-57 +168 query I rowsort SELECT DISTINCT + + 58 * - 40 @@ -38732,8 +39228,11 @@ SELECT ALL 15 * + COUNT ( * ) * + 21 * + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 3591 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "Int64\(84\) \* Int64\(41\) \+ Int64\(85\) \+ Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 32 col0, + 84 * 41 + 85 + 62 AS col0 +---- +32 +3591 query I rowsort SELECT 13 + + - 60 AS col1 @@ -38789,8 +39288,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col2" at position 0 and "Int64\(39\) \+ \(\- Int64\(0\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 82 AS col2, 39 + - + 0 col2 +---- +-82 +39 query I rowsort label-7369 SELECT 28 * + 8 - - 46 + - CASE - + MIN ( 64 ) WHEN - 40 * + + 99 + + + CAST ( NULL AS INTEGER ) + + CASE - COALESCE ( COALESCE ( NULLIF ( - MIN ( ALL + - 9 ), + 41 * - AVG ( - - 38 ) * - + AVG ( 90 ) ), - COUNT ( * ) / - NULLIF ( + CAST ( NULL AS INTEGER ), 63 ) ), - 83 + - 47, 4 * + - 66 ) WHEN + 37 * + 69 * + 32 * + 52 THEN - 10 WHEN 60 THEN + 97 - 38 END * + - 62 THEN NULL WHEN + 47 - - CASE 70 WHEN COUNT ( * ) + + 58 - 5 + - 90 + + + COUNT ( * ) * - - CAST ( + COUNT ( ALL 59 ) AS INTEGER ) + - 92 / - 16 THEN CAST ( 29 AS INTEGER ) + 54 END + + 85 THEN COALESCE ( - 2, 86 * - 39 + 76 ) ELSE NULL END + 65 * - 5 @@ -38805,8 +39307,11 @@ SELECT - 13 + + COUNT ( * ) * + + 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col0" at position 0 and "sum\(Int64\(\-34\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 59 AS col0, + SUM ( - 34 ) col0 +---- +-34 +-59 query II rowsort SELECT - 17 AS col0, + 45 @@ -38834,8 +39339,12 @@ SELECT 67 + + 84 / - - 92 AS col0 # Datafusion - Expected - 56 # Datafusion - Expected - 41 # Datafusion - Expected - 1963 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(41\)\) AS col2" at position 1 and "Int64\(33\) \+ Int64\(74\) \+ max\(Int64\(32\)\) \* Int64\(58\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 92 + - 36 AS col1, ( + MIN ( ALL + 41 ) ) col2, + 33 + 74 + + MAX ( ALL ( + 32 ) ) * 58 AS col2 +---- +1963 +41 +56 query I rowsort label-7377 SELECT SUM ( + 75 ) + NULLIF ( - ( - 22 ), + MAX ( + ( - 76 ) ) ) + COUNT ( * ) + 81 + - + 66 * 37 * + - 43 AS col0 @@ -38960,8 +39469,11 @@ SELECT MAX ( + - 80 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "Int64\(\-98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 40 col1, - 98 col1 +---- +-98 +40 query I rowsort label-7401 SELECT MIN ( DISTINCT - 34 ) @@ -39086,8 +39598,11 @@ SELECT 66 AS col2, 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 4312 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) / Int64\(\-36\) \- Int64\(20\) AS col0" at position 0 and "Int64\(56\) \* Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 22 / - 36 - 20 AS col0, 56 * + 77 AS col0 +---- +-20 +4312 query I rowsort SELECT + - 12 * + - 91 col2 @@ -39124,8 +39639,11 @@ SELECT DISTINCT + - 15 / + 96 - - 39 + + 72 + 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col0" at position 0 and "Int64\(21\) / Int64\(\-41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 52 AS col0, 21 / + - 41 AS col0 +---- +0 +52 query I rowsort SELECT DISTINCT + 79 * - + 32 col2 @@ -39977,8 +40495,11 @@ 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\(1\)\) AS count\(\*\), Int64\(\-48\) / Int64\(56\)\) \+ Int64\(\-89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 39 AS col0, + COALESCE ( + + COUNT ( * ), - 48 / 56 ) + - 89 AS col0 +---- +-88 +39 query I rowsort label-7601 SELECT DISTINCT - + COUNT ( * ) * CASE + - 91 WHEN ( - 9 ) THEN - CAST ( NULL AS INTEGER ) + 54 WHEN ( 53 ) THEN 93 + - 62 END @@ -40229,8 +40750,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * + 90 * - 58 AS col2, - 63 + - 96 + 39 AS col2 +---- +-120 +-5220 query I rowsort label-7650 SELECT DISTINCT + 23 * + MAX ( DISTINCT - - 7 ) @@ -40479,8 +41003,11 @@ SELECT + COALESCE ( - 1, + 52 * 74, + NULLIF ( - 15, 80 ) ) * 51 + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col2, 85 AS col2 +---- +1 +85 query I rowsort label-7698 SELECT - CAST ( - + 7 AS INTEGER ) * - 95 AS col1 @@ -40644,8 +41171,11 @@ SELECT DISTINCT ( CAST ( + 52 AS INTEGER ) ) * + 59 + COALESCE ( - 76, NULLIF ( # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(58\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(12\) \* Int64\(\-50\) \+ Int64\(\-46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0, 58 + - - CAST ( NULL AS INTEGER ) + 12 * - 50 + - 46 AS col0 +---- +NULL +NULL query I rowsort label-7729 SELECT ( + SUM ( DISTINCT - 76 ) ) - 90 AS col0 @@ -40655,8 +41185,11 @@ SELECT ( + SUM ( DISTINCT - 76 ) ) - 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2196 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \* Int64\(61\) AS col2" at position 0 and "min\(DISTINCT \(\- Int64\(87\)\)\) \+ nullif\(Int64\(68\), Int64\(86\) \* Int64\(44\)\) \+ Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 * + 61 col2, MIN ( DISTINCT - + 87 ) + + NULLIF ( + 68, 86 * + 44 ) + + 79 AS col2 +---- +2196 +60 query I rowsort label-7731 SELECT ALL 10 / CAST ( NULL AS INTEGER ) col0 @@ -41018,14 +41551,20 @@ SELECT ALL - 87 * 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \- Int64\(\-53\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 75 - - 53 AS col1, + 55 AS col1 +---- +-22 +55 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6900 # Datafusion - Expected - 6052 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) \* Int64\(75\) AS col1" at position 0 and "Int64\(68\) \* Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 * 75 AS col1, + 68 * 89 AS col1 +---- +-6900 +6052 query II rowsort label-7801 SELECT DISTINCT ( 83 ) AS col2, - COUNT ( * ) * - 18 * - - ( 6 ) AS col0 @@ -41371,8 +41910,11 @@ SELECT 52, 61 / - + 84 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 45 AS col1, + 20 AS col1 +---- +20 +45 query II rowsort SELECT ALL - 7 AS col0, + 99 AS col2 @@ -41388,8 +41930,11 @@ SELECT 81 * MAX ( + + 90 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col2" at position 0 and "\(\- CASE Int64\(\-98\) WHEN Int64\(\-15\) THEN \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) / Int64\(59\) WHEN Int64\(\-72\) THEN Int64\(7\) ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 3 AS col2, - CASE - 98 WHEN - 15 THEN - + CAST ( COUNT ( * ) AS INTEGER ) / + + 59 WHEN - 72 THEN + 7 ELSE NULL END AS col2 +---- +3 +NULL query I rowsort SELECT DISTINCT 45 + - + 50 col2 @@ -41536,8 +42081,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 891458700 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ Int64\(52\) \* Int64\(\-19\) \* \(\- count\(Int64\(\-28\)\)\) \* Int64\(\-98\) \* Int64\(\-93\) \* Int64\(99\) \- Int64\(77\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-31\) \* CASE Int64\(\-75\) WHEN Int64\(99\) / \(\- coalesce\(Int64\(83\) \* \(\- Int64\(\-65\) \* CAST\(NULL AS Int32\)\), Int64\(\-84\), Int64\(90\), count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- sum\(Int64\(77\)\)\) THEN Int64\(24\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +891458700 +NULL query I rowsort SELECT ALL 54 * + - 60 + - - 71 - + 85 @@ -41659,8 +42207,11 @@ SELECT ALL + COUNT ( * ) / + 90 * + 19 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - -138 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(59\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 73 * + COUNT ( * ) AS col1, 59 / - COUNT ( * ) + - 79 AS col1 +---- +-138 +-73 query I rowsort label-7921 SELECT CASE + COUNT ( * ) WHEN - 69 - + 66 THEN - CAST ( NULL AS INTEGER ) * + 94 / - 10 WHEN 30 * + 16 * + 27 THEN NULL END @@ -42029,8 +42580,11 @@ SELECT ( + 64 ) / - + 33 + + 22 + 50 * - ( 3 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 38 col2, 21 col2 +---- +-38 +21 query I rowsort label-7992 SELECT 80 * COUNT ( * ) AS col1 @@ -42138,8 +42692,11 @@ SELECT DISTINCT CASE NULLIF ( + 85, - - ( - 25 ) ) WHEN + 82 THEN NULL ELSE - ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - -567 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ Int64\(38\) \+ Int64\(90\) / \(\- Int64\(\-81\)\) \- Int64\(55\) AS col0" at position 0 and "Int64\(63\) \* Int64\(\-9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 95 + + + 38 + 90 / - - 81 - 55 AS col0, 63 * - 9 AS col0 +---- +-567 +79 query I rowsort label-8012 SELECT - + CAST ( + 29 AS INTEGER ) * 17 + + COUNT ( * ) AS col1 @@ -42264,8 +42821,11 @@ SELECT ALL + 74 AS col0, + 98 col1 # 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 "Int64\(99\) \- Int64\(91\) \+ Int64\(47\) \+ \(\- Int64\(38\)\) / Int64\(30\) \* Int64\(2\) \+ Int64\(\-53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 77 AS col1, 99 - + ( 91 ) + + 47 + - + 38 / 30 * ( + + 2 ) + - 53 col1 +---- +0 +77 query I rowsort SELECT - - 45 * + 35 AS col0 @@ -42548,8 +43108,11 @@ SELECT DISTINCT COUNT ( * ) + - 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-57\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(23\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(\-6\)\) \* Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( - 57 ) + + COUNT ( * ) AS col1, + 23 + - COUNT ( * ) - - - 6 * + + 17 AS col1 +---- +-56 +-80 query I rowsort SELECT NULLIF ( + 27, + 94 - - 80 ) - + - 95 AS col2 @@ -42589,8 +43152,11 @@ SELECT ( + 72 ) * + + MAX ( 23 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 60 AS col1, 48 AS col1 +---- +48 +60 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -43121,8 +43687,11 @@ SELECT ALL - COUNT ( + 66 ), - 26 * - 93 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 81 AS col0, + 35 AS col0 +---- +-81 +35 query I rowsort label-8199 SELECT DISTINCT - 26 + - MAX ( - 56 ) @@ -43220,8 +43789,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + MIN ( DISTINCT 41 ) AS col0, - 32 col0 +---- +-32 +42 query I rowsort SELECT + 20 * - - 98 + - - 56 + 24 @@ -43695,8 +44267,11 @@ SELECT CAST ( - - COUNT ( * ) AS INTEGER ) + 13 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 97 AS col2, + 47 col2 +---- +47 +97 query I rowsort SELECT ( - 44 ) + 9 + - - 37 col1 @@ -43766,8 +44341,11 @@ SELECT + 28 - + - COUNT ( * ) - + + 22 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2349 # Datafusion - Expected - 2772 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* Int64\(\-70\) \+ Int64\(47\) \+ Int64\(\-94\) / Int64\(12\) \+ Int64\(81\) \+ \(\- Int64\(\-39\)\) \* CAST\(Int64\(\-40\) AS Int32\) AS col1" at position 0 and "Int64\(28\) \* Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 13 * - 70 + + ( 47 ) + - 94 / + 12 + 81 + - - 39 * + CAST ( + ( - 40 ) AS INTEGER ) AS col1, 28 * 99 AS col1 +---- +-2349 +2772 query I rowsort label-8322 SELECT + 11 * COUNT ( - - 50 ) + + COUNT ( * ) col0 @@ -43905,8 +44483,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 col0, + COUNT ( * ) + - 6 AS col0 +---- +-5 +-92 query II rowsort SELECT 45 AS col0, ( 40 ) AS col2 @@ -44147,8 +44728,11 @@ SELECT - NULLIF ( + 9, + + CASE + COUNT ( * ) WHEN 45 THEN NULL ELSE 75 END ) + # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 47 * + + COUNT ( * ) AS col0, 51 AS col0 +---- +-47 +51 query I rowsort SELECT - 96 * - 29 * 25 @@ -44225,8 +44809,12 @@ SELECT 81 * + ( - ( 98 ) ) + - - COUNT ( * ) + + - 26 - + 1 AS col0 # Datafusion - Expected - NULL # Datafusion - Expected - 61 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + SUM ( + CAST ( NULL AS INTEGER ) ) AS col1, + 61, 88 AS col1 +---- +61 +88 +NULL query I rowsort SELECT + + NULLIF ( 94, - 70 ) @@ -44539,8 +45127,11 @@ SELECT ALL - 41 * 40 / - 9 + + 97 + + NULLIF ( - MIN ( CAST ( + - 91 AS INTEGER # Datafusion - Datafusion expected results: # Datafusion - Expected - 136 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \+ Int64\(65\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 + + 65 col0, + 69 AS col0 +---- +136 +69 query I rowsort label-8468 SELECT COUNT ( * ) * - 76 @@ -44649,8 +45240,11 @@ SELECT ALL COUNT ( * ) * + + 68 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col2" at position 0 and "Int64\(\-60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 40 col2, - 60 AS col2 +---- +-40 +-60 query I rowsort label-8488 SELECT ( COUNT ( - - 37 ) ) * COUNT ( + - 38 ) @@ -44844,8 +45438,11 @@ 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\(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\. +query II valuesort SELECT ALL - 75 + + COALESCE ( - + 59, - 95 * + + 60 - - - 87 * + - 82 * - - 67 + + COUNT ( * ) + - + 69 + - + COUNT ( * ) ) AS col0, - 85 AS col0 +---- +-134 +-85 query I rowsort SELECT - 96 + + 23 * - - 74 @@ -44896,8 +45493,11 @@ 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\(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\. +query II valuesort SELECT ALL - + COUNT ( * ) * - 94 - + 48 + 51 * COUNT ( 83 ) col2, + 10 * 14 * 26 col2 +---- +3640 +97 query I rowsort label-8536 SELECT ALL CASE - + COUNT ( DISTINCT + 75 ) WHEN CAST ( NULL AS INTEGER ) * + 88 THEN - 0 * - - 79 - - 70 + - 24 / - ( - 20 ) + 5 - + 16 + - 10 * + 48 END @@ -45082,8 +45682,11 @@ SELECT - ( - - ( - - MAX ( + 75 ) ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \- \(\- Int64\(\-91\)\) AS col0" at position 0 and "Int64\(67\) \- Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 - - - 91 AS col0, + 67 - 23 AS col0 +---- +-44 +44 query I rowsort label-8572 SELECT - MIN ( - 70 ) + + + ( + - 3 ) col0 @@ -45281,8 +45884,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(\-5\) \+ Int64\(9\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CASE Int64\(90\) WHEN Int64\(65\) THEN NULL WHEN Int64\(\-69\) / Int64\(4\) THEN NULL WHEN Int64\(96\) \+ Int64\(83\) THEN Int64\(48\) \* \(\- Int64\(\-70\)\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-21 +NULL query I rowsort label-8610 SELECT MIN ( DISTINCT + - 46 ) + - 21 + - - 36 AS col1 @@ -45409,8 +46015,11 @@ SELECT ALL 87 + + - 30 * 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 1079 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CASE \(\- Int64\(32\)\) WHEN Int64\(8\) THEN NULL ELSE \(\- nullif\(Int64\(\-13\), Int64\(63\)\)\) END \* Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 34 + + ( - COUNT ( * ) ) * COUNT ( * ) AS col0, + CASE - + 32 WHEN + 8 THEN NULL ELSE - NULLIF ( - 13, 63 ) END * 83 AS col0 +---- +-35 +1079 query I rowsort label-8633 SELECT + MAX ( DISTINCT 14 ) + + + 78 * + CASE WHEN NOT 58 > + + CAST ( - + 89 AS FLOAT8 ) * + 99 * 22 - + 72 THEN + + 27 * + - 73 ELSE NULL END AS col2 @@ -45952,8 +46561,11 @@ SELECT ALL + SUM ( + + ( - 7 ) ) - 86 * + 48 * 48 + + CAST ( 48 AS INTEGER ) + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7742 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \* max\(Int64\(79\)\) AS col1" at position 0 and "CAST\(\(\- Int64\(\-28\)\) AS Int32\) \+ Int64\(10\) \* \(\- sum\(DISTINCT Int64\(\-3\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 98 * MAX ( ALL + 79 ) AS col1, + CAST ( ( - - 28 ) AS INTEGER ) + 10 * - SUM ( DISTINCT - 3 ) AS col1 +---- +-7742 +58 query I rowsort label-8737 SELECT - 57 + ( 60 ) * 80 - - ( - 4 ) - - + CASE + 47 WHEN 79 * + MAX ( ALL 89 ) / + + COUNT ( * ) + + 81 + + - 75 THEN + + 2 WHEN - + 69 * - 99 + + MIN ( 76 ) + - ( - 87 ) + - 12 / - + 81 THEN NULL END + - MAX ( - + 96 ) + - ( + 14 ) @@ -46013,8 +46625,11 @@ SELECT - 8 + 59 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 AS col2, 88 AS col2 +---- +22 +88 query I rowsort label-8748 SELECT - MIN ( DISTINCT - 70 ) AS col0 @@ -46738,8 +47353,11 @@ SELECT DISTINCT + + 1 / - ( 37 ) + + 47 * COUNT ( * ) * + + COUNT ( * ) 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 col0" at position 0 and "\(\- count\(\(\- Int64\(\-73\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 59 ) AS col0, - COUNT ( ALL - - 73 ) AS col0 +---- +-1 +59 query II rowsort label-8888 SELECT ALL + 61 AS col1, 44 + + - COUNT ( * ) AS col0 @@ -47254,8 +47872,11 @@ SELECT ALL - 90 * 86 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 11 AS col0, 50 AS col0 +---- +11 +50 query II rowsort SELECT DISTINCT 62 AS col2, NULLIF ( - + 99, - 42 * 12 + + 55 ) @@ -47475,8 +48096,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 20 / - 15 AS col1, + ( + COUNT ( * ) ) * - 84 AS col1 +---- +-1 +-84 query II rowsort label-9028 SELECT + COALESCE ( + - 11, + - 73 ) * + COALESCE ( 56, + 5, - COUNT ( * ) ), + COUNT ( * ) AS col0 @@ -49663,8 +50287,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 61 ) AS col1, 44 col1 +---- +-61 +44 query II rowsort label-9453 SELECT - COUNT ( + - 96 ) col2, COUNT ( + - 6 ) / - + 80 @@ -49680,8 +50307,11 @@ SELECT ALL - + ( - 86 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1344 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* Int64\(84\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- coalesce\(Int64\(3\), CASE Int64\(\-8\) WHEN max\(Int64\(22\)\) \+ Int64\(94\) THEN NULL WHEN Int64\(66\) \+ \(\- CAST\(Int64\(70\) \- Int64\(76\) AS Int32\)\) THEN NULL ELSE Int64\(40\) END \- Int64\(\-28\)\)\) \* avg\(Int64\(\-56\) \+ Int64\(\-69\)\) \* Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +1344 +NULL query I rowsort label-9456 SELECT + COALESCE ( - 98, - 10, 33 ) * - 47 + + - 0 + 70 + - 52 / 17 * - 52 @@ -49862,8 +50492,11 @@ SELECT + 82 * 32 + - - 40 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "Int64\(58\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 64 AS col0, 58 * + COUNT ( * ) AS col0 +---- +58 +64 query I rowsort SELECT - 55 * + + 44 @@ -50076,8 +50709,11 @@ SELECT ( + - ( + 33 ) ) / + SUM ( 91 ) * - - 83 * - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7216 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* Int64\(\-82\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 * - 82 col0, 49 AS col0 +---- +-7216 +49 query I rowsort label-9530 SELECT ALL - 33 + - MAX ( DISTINCT + 57 ) AS col2 @@ -50224,8 +50860,11 @@ SELECT 91 AS col1, 61 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 41 AS col2, 89 col2 +---- +-41 +89 query II rowsort label-9558 SELECT - COUNT ( * ), 36 + + 25 col1 @@ -51001,8 +51640,11 @@ SELECT - COUNT ( * ) + - 9 * 94 * - + 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 51 AS col0, 82 AS col0 +---- +-51 +82 query I rowsort label-9706 SELECT DISTINCT MAX ( 6 ) AS col2 @@ -51282,8 +51924,11 @@ 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\(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\. +query II valuesort SELECT - 6 + + - COUNT ( * ) AS col1, 45 - - 85 + - 0 AS col1 +---- +-7 +130 query I rowsort label-9760 SELECT ALL - CASE - + 31 WHEN - 85 / - 30 THEN - - COUNT ( * ) END * 34 AS col0 @@ -51438,8 +52083,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 21 AS col0, 66 + + 79 + + ( - 45 ) + - COUNT ( * ) * + CASE + 70 WHEN - + 77 THEN + 57 * + + ( 14 ) + COUNT ( * ) END * - ( - ( 80 ) ) col0 +---- +-21 +NULL query II rowsort label-9789 SELECT DISTINCT - - COUNT ( - 49 ) - + - 9 AS col0, - 17 AS col1 @@ -51680,8 +52328,11 @@ SELECT + + 46 + + COUNT ( * ) 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 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 IR valuesort SELECT + 71 AS col1, - CAST ( NULL AS FLOAT8 ) AS col1 +---- +71 +NULL query I rowsort label-9834 SELECT - + 82 + - - ( COUNT ( * ) ) + - COUNT ( * ) + CAST ( NULL AS INTEGER ) + + 91 @@ -52162,8 +52813,11 @@ SELECT 67 * + 66 * + 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 204 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* Int64\(17\) AS col0" at position 0 and "Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 12 * 17 AS col0, + 84 AS col0 +---- +204 +84 query I rowsort SELECT ALL 29 * 84 AS col2 @@ -52246,8 +52900,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + + 15 col2, + ( + - 11 ) * + ( - 73 ) * + - COALESCE ( + 44, SUM ( ALL 12 ) + 24 + - ( ( + 23 ) ) ) * - 71 AS col2 +---- +16 +2508572 query I rowsort SELECT - + 39 * - - 13 - + + ( - ( + 7 ) ) - - 74 * + 6 - + + CASE NULLIF ( + 34, + 43 ) WHEN 50 * + - 69 * - 12 THEN ( - 71 ) * - 91 + - ( + 66 ) / + 20 ELSE NULL END diff --git a/data/sqlite/random/expr/slt_good_75.slt b/data/sqlite/random/expr/slt_good_75.slt index cbdfcc4..9cb549e 100644 --- a/data/sqlite/random/expr/slt_good_75.slt +++ b/data/sqlite/random/expr/slt_good_75.slt @@ -124,8 +124,11 @@ SELECT + - 49 + - + CAST ( - 34 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "max\(Int64\(\-3\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col2, + MAX ( ALL - 3 ) col2 +---- +-3 +1 query I rowsort SELECT ( - 68 ) * + + 53 @@ -274,8 +277,11 @@ SELECT + ( 33 ) * + 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 136 # Datafusion - Expected - 3904602 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ Int64\(48\) AS col2" at position 0 and "Int64\(16\) \+ Int64\(58\) \+ \(\- Int64\(32\)\) \+ \(\- Int64\(\-24\)\) \* Int64\(85\) \* Int64\(33\) \* Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 + 48 AS col2, 16 + 58 + - ( + 32 ) + - ( + - 24 ) * + 85 * + + 33 * + 58 AS col2 +---- +136 +3904602 query I rowsort label-45 SELECT ALL NULLIF ( - 78, + - COUNT ( ALL - 51 ) ) AS col2 @@ -820,8 +826,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "max\(Int64\(\-58\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 col2, MAX ( + - 58 ) AS col2 +---- +-58 +70 query I rowsort label-149 SELECT CAST ( - ( 40 ) AS INTEGER ) * 59 * - - CAST ( NULL AS INTEGER ) AS col0 @@ -1122,8 +1131,11 @@ SELECT CAST ( - 89 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(coalesce\(Int64\(\-59\), \(\- nullif\(Int64\(33\), Int64\(92\)\)\), Int64\(0\) \+ Int64\(59\) \+ \(\- nullif\(Int64\(\-69\), \(\- Int64\(\-65\)\)\)\) \- Int64\(\-2\)\)\) AS col2" at position 0 and "Int64\(\-67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( + COALESCE ( - 59, - NULLIF ( + 33, 92 ), 0 + + 59 + ( + ( - + NULLIF ( - 69, + ( - - 65 ) ) ) ) - - 2 ) ) col2, ( - 67 ) AS col2 +---- +-59 +-67 query I rowsort label-205 SELECT ALL - ( - - CASE SUM ( 65 ) WHEN + 38 THEN - 4 / - + 28 * + 22 END ) * + - 41 + - NULLIF ( + - ( + 84 ), - 12 * 37 ) AS col2 @@ -1631,8 +1643,11 @@ 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\(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\. +query II valuesort 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 +---- +-11352201 +1263 query II rowsort label-303 SELECT ALL MAX ( + 2 ) * - - 0 + - 81 / + 48 + - 64 AS col2, - 12 / - SUM ( ALL + 4 ) @@ -1671,8 +1686,12 @@ 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\(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\. +query III valuesort SELECT + 59 AS col1, - 6 AS col0, CASE + COUNT ( * ) WHEN + 89 THEN + 18 * - MIN ( ALL 49 ) END AS col0 +---- +-6 +59 +NULL query I rowsort label-310 SELECT SUM ( - - ( + 68 ) ) @@ -1822,8 +1841,11 @@ 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\(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\. +query II valuesort 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 +---- +1 +7470 query I rowsort label-339 SELECT DISTINCT 43 / 21 * + 92 + - COUNT ( * ) AS col0 @@ -2235,8 +2257,11 @@ SELECT + + 54 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1882 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-1\)\)\) AS col1" at position 0 and "\(\- \(\- min\(\(\- Int64\(\-57\)\)\)\)\) \* \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(38\) \+ Int64\(\-76\)\)\) \* CAST\(Int64\(33\) AS Int32\) \+ \(\- nullif\(\(\- Int64\(1\)\), Int64\(71\) / nullif\(\(\- CAST\(\(\- Int64\(84\)\) AS Int32\)\), Int64\(40\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - SUM ( - 1 ) col1, - ( - + MIN ( - - 57 ) ) * - COALESCE ( + - COUNT ( * ), + 38 + - 76 ) * CAST ( + 33 AS INTEGER ) + - NULLIF ( - + 1, 71 / + NULLIF ( - CAST ( - + 84 AS INTEGER ), + 40 ) ) col1 +---- +1 +1882 query I rowsort SELECT DISTINCT NULLIF ( + 51, + 33 ) + + 82 AS col0 @@ -3141,8 +3166,11 @@ 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\(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\. +query II valuesort SELECT - 22 * - + 61 * + COUNT ( * ) + - - 39 / 69 AS col0, + 89 + - ( COUNT ( * ) ) AS col0 +---- +1342 +88 query I rowsort label-590 SELECT + ( + MIN ( ALL 10 ) ) AS col0 @@ -3305,8 +3333,11 @@ SELECT DISTINCT + 51 / - ( - 7 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-19\), Int64\(30\) \* Int64\(9\) \- Int64\(56\), \(\- Int64\(\-83\)\) \+ Int64\(82\) \+ Int64\(54\)\) AS col2" at position 0 and "Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COALESCE ( - 19, 30 * 9 - 56, - - 83 + + 82 + 54 ) col2, - 98 AS col2 +---- +-19 +-98 query I rowsort label-621 SELECT + COUNT ( DISTINCT 10 ) + MAX ( 24 ) * + COUNT ( * ) AS col0 @@ -3413,8 +3444,11 @@ SELECT DISTINCT - 16 AS col0, 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 87 AS col1, 78 AS col1 +---- +-87 +78 query I rowsort label-642 SELECT 58 / - 91 * - 58 AS col0 @@ -3539,8 +3573,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \+ Int64\(34\) AS col0" at position 0 and "Int64\(94\) \* \(\- nullif\(Int64\(0\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(30\) \* nullif\(Int64\(29\), min\(\(\- CAST\(NULL AS Int32\)\)\)\) \* \(\- Int64\(33\)\)\)\) \+ Int64\(\-85\) \+ Int64\(\-13\) \* Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 + + 34 AS col0, 94 * - NULLIF ( 0, - COUNT ( * ) / 30 * NULLIF ( + + 29, + MIN ( - CAST ( NULL AS INTEGER ) ) ) * - + 33 ) + + - 85 + - 13 * - 0 AS col0 +---- +58 +NULL query I rowsort label-666 SELECT ALL - - CAST ( - 38 AS INTEGER ) * + ( - COUNT ( * ) ) AS col0 @@ -3887,8 +3924,11 @@ SELECT - 41 AS col2, 79 AS col0 # 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 "Int64\(38\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 AS col1, 72 col1 +---- +38 +72 query I rowsort SELECT ALL + 47 + + 67 * - - NULLIF ( + 78, 91 ) @@ -4046,8 +4086,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + - + 67 AS col2, - 53 col2 +---- +-53 +-66 query I rowsort label-762 SELECT ALL - + COUNT ( * ) + - 23 @@ -4716,8 +4759,11 @@ SELECT 48 - + 55 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col2" at position 0 and "Int64\(\-60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 78 AS col2, - 60 AS col2 +---- +-60 +-78 query I rowsort SELECT DISTINCT 95 + 71 * - 97 * - 16 @@ -4747,8 +4793,11 @@ SELECT CAST ( 73 AS INTEGER ) - - - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -31 -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\(\-30\), Int64\(26\) \* Int64\(33\) \+ Int64\(15\)\) \- Int64\(81\) / Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 95 AS col0, + COALESCE ( - 30, 26 * + 33 + + 15 ) - 81 / + 79 AS col0 +---- +-31 +95 query I rowsort label-900 SELECT ALL - COALESCE ( + ( + 80 ), - SUM ( - 23 ), + CASE - 59 WHEN - 31 THEN NULL WHEN - 33 - + 65 THEN - 78 * 79 - 24 ELSE NULL END * 11 ) * 8 @@ -5049,8 +5098,12 @@ SELECT ALL + 32, 83 AS col2 # Datafusion - Expected - 23 # Datafusion - Expected - -62 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "min\(Int64\(\-62\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 23 AS col2, MIN ( - 62 ) col2, + - 87 * + ( - COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) +---- +-62 +23 +NULL query I rowsort label-959 SELECT 18 * - 36 + - COUNT ( * ) + 75 @@ -5374,8 +5427,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - -5394 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col1" at position 0 and "Int64\(87\) \* CAST\(Int64\(\-62\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 AS col1, 87 * + CAST ( - 62 AS INTEGER ) col1 +---- +-5394 +-90 query II rowsort SELECT - 74 + + 54 AS col0, 39 @@ -5422,14 +5478,20 @@ SELECT + 80, 10 - 73 AS col1 # 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\(\-31\) AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 AS col1, + 8 AS col1 +---- +-31 +8 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col1" at position 0 and "Int64\(95\) \+ Int64\(\-64\) \+ min\(\(\- Int64\(\-13\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 53 AS col1, 95 + - 64 + MIN ( ALL - - 13 ) AS col1 +---- +-53 +44 query II rowsort label-1031 SELECT - COUNT ( * ) AS col1, 52 + + - 24 col2 @@ -5533,8 +5595,11 @@ SELECT DISTINCT - 33 * - 61 * - 86 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \- Int64\(53\) / Int64\(\-61\) AS col1" at position 0 and "Int64\(\-13\) / Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 - + 53 / - 61 AS col1, - 13 / 68 AS col1 +---- +0 +25 query II rowsort label-1050 SELECT DISTINCT 4 * + + 43 col1, CASE - 98 WHEN CASE - COUNT ( 28 ) WHEN - CASE 99 WHEN 41 * + 88 THEN 48 * 13 END + 45 THEN + 21 / COALESCE ( NULLIF ( 72, + 57 ), + 91 ) + - CAST ( + CASE + 97 WHEN - 40 THEN ( + 98 ) WHEN + 25 THEN NULL END AS INTEGER ) WHEN 59 + 11 THEN NULL ELSE 80 * 61 END + - 77 / 90 THEN + 51 END @@ -6053,8 +6118,11 @@ 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\(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\. +query II valuesort SELECT 15 * + - COUNT ( * ) + - - ( - - ( + ( 5 ) ) ) AS col1, - 40 AS col1 +---- +-10 +-40 query I rowsort SELECT 58 + 74 AS col2 @@ -6376,8 +6444,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2420 # Datafusion - Expected - -780 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* Int64\(\-44\) AS col1" at position 0 and "nullif\(\(\- Int64\(52\)\), \(\- Int64\(17\)\) \- \(\- Int64\(85\)\)\) \- \(\- Int64\(\-26\)\) \* Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 55 * - 44 AS col1, NULLIF ( - + 52, - + 17 - - + 85 ) - - - 26 * + 28 AS col1 +---- +-2420 +-780 query I rowsort SELECT ALL 50 * - 52 + + 57 @@ -6531,8 +6602,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 11 AS col0, ( - + COUNT ( * ) ) * + - 49 col0 +---- +11 +49 query I rowsort label-1240 SELECT DISTINCT 47 / - 20 + + + 82 + 64 AS col1 @@ -7292,8 +7366,11 @@ SELECT + 57 * + - 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-14\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 AS col1, - CAST ( + - 14 AS INTEGER ) AS col1 +---- +14 +17 query I rowsort SELECT 36 - - - 16 @@ -8114,8 +8191,11 @@ 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 "\(\- sum\(Int64\(\-1\)\)\) / Int64\(\-50\) AS col1" at position 0 and "Int64\(8\) \- Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - SUM ( ALL + ( - 1 ) ) / - 50 AS col1, ( + 8 ) - 48 AS col1 +---- +-40 +0 query II rowsort label-1539 SELECT DISTINCT + 81 * + 48 AS col0, + COALESCE ( + 34, ( 60 ) * 86 + - COUNT ( * ) ) - + 18 AS col1 @@ -8161,8 +8241,11 @@ SELECT ALL MIN ( 69 ) * + 71 * 98 # 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 "Int64\(34\) / Int64\(31\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 / + 31 AS col1, 72 AS col1 +---- +1 +72 query II rowsort label-1548 SELECT COUNT ( * ) - - - 63 AS col2, + ( + - ( - 79 ) ) @@ -8328,8 +8411,11 @@ SELECT - 10 + 96 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\(\-86\) \+ \(\- \(\- sum\(DISTINCT Int64\(22\)\)\)\) AS col0" at position 0 and "Int64\(92\) \* \(\- max\(Int64\(11\)\)\) / CASE \(\- Int64\(42\)\) WHEN \(\- sum\(Int64\(\-95\)\)\) THEN \(\- CASE Int64\(26\) WHEN Int64\(\-46\) \+ Int64\(96\) \* Int64\(\-91\) THEN NULL ELSE Int64\(\-11\) END\) \* Int64\(\-31\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 86 + - ( - SUM ( DISTINCT 22 ) ) AS col0, + 92 * - MAX ( + 11 ) / + + CASE - ( + 42 ) WHEN - SUM ( - 95 ) THEN - + CASE + 26 WHEN - 46 + + 96 * - 91 THEN NULL ELSE - 11 END * - 31 END AS col0 +---- +-64 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -8585,8 +8671,11 @@ SELECT ALL 66 * + - 20 + 91 # 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 "\(\- CAST\(NULL AS Float64\)\) AS col2" at position 0 and "Int64\(\-67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - CAST ( NULL AS FLOAT8 ) AS col2, ( - 67 ) AS col2 +---- +-67 +NULL query I rowsort SELECT DISTINCT + 29 * - 64 + 59 - + - 96 AS col1 @@ -8681,8 +8770,11 @@ SELECT 54 + + 68 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 65 AS col1, + 63 AS col1 +---- +63 +65 query II rowsort SELECT - 87 AS col0, 71 @@ -8828,8 +8920,11 @@ SELECT 83 + + 94 + - - 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col1" at position 0 and "Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 AS col1, + 18 col1 +---- +18 +35 query II rowsort SELECT DISTINCT - 60, 22 AS col1 @@ -8851,8 +8946,11 @@ SELECT 78, + 7 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 39 AS col2, 47 col2 +---- +39 +47 query II rowsort label-1679 SELECT DISTINCT 42 col1, 70 * - MIN ( - + 30 ) AS col2 @@ -8965,8 +9063,11 @@ SELECT 89 + SUM ( - + 16 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - -2074 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) \- Int64\(\-44\) AS col1" at position 0 and "Int64\(24\) \* Int64\(\-89\) \+ Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 30 - + - 44 AS col1, + 24 * - 89 + 62 AS col1 +---- +-2074 +14 query I rowsort label-1700 SELECT 87 * - COUNT ( * ) - NULLIF ( 98, 61 ) @@ -9034,8 +9135,11 @@ SELECT DISTINCT 33 * - + COUNT ( 17 ) * + COUNT ( ALL 70 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -147 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \+ Int64\(\-50\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 97 + + - 50 AS col2, 5 col2 +---- +-147 +5 query I rowsort label-1713 SELECT ALL 0 * - 69 / + ( - + 26 ) @@ -9546,8 +9650,11 @@ SELECT DISTINCT - - 51 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-32\), Int64\(11\) \- Int64\(63\) \* Int64\(\-78\)\)\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - NULLIF ( - 32, 11 - 63 * - 78 ) AS col0, + 41 AS col0 +---- +32 +41 query I rowsort SELECT ( - + 28 ) AS col0 @@ -9789,8 +9896,11 @@ SELECT ALL ( + ( - + 17 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 AS col2, - CAST ( NULL AS INTEGER ) AS col2 +---- +94 +NULL query I rowsort label-1855 SELECT + COALESCE ( - 89, 4 + + 6 ) * + 99 + + 11 + 75 * 8 * MAX ( ALL + + 52 ) @@ -10266,8 +10376,11 @@ SELECT + 41 * + + 48 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 8 AS col1, + 65 AS col1 +---- +65 +8 query I rowsort SELECT - ( ( + - 91 ) ) AS col2 @@ -10320,8 +10433,11 @@ SELECT - 75 * + ( + 34 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49341 # Datafusion - Expected - -4497 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) \- Int64\(54\) \* Int64\(57\) \* \(\- coalesce\(Int64\(\-16\), Int64\(\-56\)\)\) AS col2" at position 0 and "Int64\(\-55\) \* Int64\(81\) \+ Int64\(\-42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 93 - 54 * + 57 * - COALESCE ( - 16, - 56 ) AS col2, - 55 * 81 + - 42 AS col2 +---- +-4497 +-49341 query I rowsort label-1954 SELECT - ( + 61 ) - 88 - - 15 - 79 + + MAX ( - - 16 ) - - COUNT ( * ) + - 13 * + + 51 * - 14 * - 82 col2 @@ -10633,8 +10749,11 @@ SELECT DISTINCT - - ( 11 ) * - 74 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) AS col2" at position 0 and "Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - + CAST ( NULL AS FLOAT8 ) AS col2, + 39 AS col2 +---- +39 +NULL query I rowsort label-2014 SELECT ALL - CASE + 68 WHEN - - 68 THEN - + 79 * + MIN ( 11 ) END * + SUM ( - + 17 ) * - - 4 - + 41 + 64 * + 97 @@ -11457,8 +11576,11 @@ SELECT DISTINCT + 63 * - + 59 AS col0 # 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 "Int64\(5\) \+ Int64\(23\) \+ \(\- Int64\(28\)\) AS col2" at position 0 and "Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 5 + + + 23 + - ( 28 ) AS col2, - 79 AS col2 +---- +-79 +0 query II rowsort label-2171 SELECT ALL 90 * 81, CASE - 90 WHEN + ( - 58 ) * - - 85 * - 90 * - COALESCE ( + - 74, + MAX ( DISTINCT - 38 ) * + - 97 * + - 26, - 6 ) * 86 * - 30 / - 62 THEN + COUNT ( ALL COALESCE ( + 73, - 23, 37 ) ) - - 75 ELSE NULL END + - 70 AS col1 @@ -11659,8 +11781,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1537 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \* \(\- coalesce\(Int64\(37\), Int64\(5\)\)\) \+ Int64\(91\) AS col0" at position 0 and "Int64\(22\) \+ coalesce\(nullif\(Int64\(16\), Int64\(\-44\)\), Int64\(\-72\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 44 * - COALESCE ( + 37, 5 ) + 91 AS col0, + 22 + COALESCE ( NULLIF ( 16, - 44 ), - 72 ) AS col0 +---- +-1537 +38 query I rowsort SELECT ALL + COALESCE ( + 84, + 77, 18 ) AS col1 @@ -11913,8 +12038,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col1" at position 0 and "Int64\(74\) \* Int64\(\-17\) \+ CASE Int64\(61\) WHEN Int64\(86\) THEN CAST\(Int64\(99\) AS Int32\) \* Int64\(\-15\) WHEN Int64\(77\) THEN NULL END \* Int64\(\-66\) \* Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 col1, + 74 * - 17 + + CASE 61 WHEN ( + 86 ) THEN + CAST ( 99 AS INTEGER ) * + - 15 WHEN 77 THEN NULL END * - 66 * - 56 AS col1 +---- +75 +NULL query I rowsort SELECT ALL + ( 50 ) col0 @@ -11970,8 +12098,11 @@ SELECT 41 + + 52 * SUM ( ALL - 66 ) * 48 * 40 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ CASE WHEN Int64\(28\) != Int64\(\-59\) \- \(\- sum\(Int64\(16\)\)\) OR NOT Int64\(\-58\) BETWEEN Int64\(42\) \+ \(\- Int64\(\-80\)\) AND Int64\(54\) THEN Int64\(2\) END AS col2" at position 0 and "nullif\(Int64\(\-5\), \(\- coalesce\(Int64\(62\), \(\- CAST\(CAST\(NULL AS Float64\) AS Int32\)\) \* \(\- Int64\(\-2\)\) \+ Int64\(73\), \(\- \(\- \(\- Int64\(\-9\)\)\)\)\)\) \* Int64\(70\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 86 + + + CASE WHEN + 28 <> - 59 - + - SUM ( + 16 ) OR NOT - 58 BETWEEN 42 + - - 80 AND + + 54 THEN 2 END AS col2, ( + NULLIF ( - 5, - + COALESCE ( + 62, - CAST ( CAST ( NULL AS FLOAT8 ) AS INTEGER ) * - - 2 + + + 73, - - ( - - 9 ) ) * + + 70 ) ) AS col2 +---- +-5 +88 query I rowsort label-2269 SELECT ALL COUNT ( * ) + + 94 AS col0 @@ -12121,8 +12252,11 @@ SELECT ALL - 9 * - 88 * - + CASE 56 WHEN - 53 THEN COUNT ( * ) ELSE + - 97 END * # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -64006 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-58\) \- Int64\(74\) \+ nullif\(\(\- Int64\(32\)\), Int64\(\-49\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-34\) \+ Int64\(\-63\) \+ Int64\(58\) / Int64\(\-93\)\) \* \(\- Int64\(74\)\) \* Int64\(\-27\) \+ \(\- Int64\(\-62\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, ( - 58 ) - + + 74 + + + NULLIF ( - ( 32 ), + - 49 + - COUNT ( * ) - + ( - 34 ) + - 63 + + + 58 / - 93 ) * ( - + 74 ) * + - 27 + - - 62 AS col1 +---- +-64006 +1 query I rowsort label-2298 SELECT 25 * - + COUNT ( * ) * - 12 @@ -12251,8 +12385,11 @@ SELECT ALL - 69 + + - ( ( - + ( - - 97 ) ) ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, + 41 col0 +---- +1 +41 query I rowsort SELECT DISTINCT + ( - NULLIF ( 93, ( - 59 ) + 76 ) ) * - - 44 + - 59 @@ -12293,8 +12430,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(27\) AS col2" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \- \(\- Int64\(\-99\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) + 27 AS col2, CAST ( - COUNT ( * ) AS INTEGER ) - - - 99 col2 +---- +-100 +26 query I rowsort label-2330 SELECT ALL 91 + + COUNT ( * ) @@ -12559,8 +12699,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 45 AS col1, - COUNT ( * ) AS col1 +---- +-1 +45 query II rowsort SELECT + 0, + 8 * - 34 AS col2 @@ -12744,8 +12887,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 46 AS col2, 75 AS col2 +---- +46 +75 query I rowsort label-2416 SELECT DISTINCT - - SUM ( - 14 ) * + 52 + 70 + - COUNT ( * ) * - + 88 AS col2 @@ -13447,8 +13593,11 @@ SELECT 94 AS col0, + 67 + COUNT ( - 94 ) + ( COUNT ( * ) + + 3 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col2" at position 0 and "\(\- count\(\(\- CASE Int64\(12\) WHEN Int64\(\-87\) THEN Int64\(\-75\) END\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 29 AS col2, - COUNT ( - + CASE + 12 WHEN - 87 THEN - 75 END ) + + COUNT ( * ) AS col2 +---- +1 +29 query I rowsort label-2552 SELECT + MAX ( 54 ) + - 74 @@ -14510,8 +14659,11 @@ SELECT CAST ( + NULLIF ( 43, + 64 * + 85 - + 22 ) AS INTEGER ) * - 37 * + COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - -6768 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col2" at position 0 and "Int64\(72\) \* Int64\(\-94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 95 AS col2, 72 * + ( - 94 ) AS col2 +---- +-6768 +-95 query I rowsort label-2756 SELECT + SUM ( ALL - - 39 ) + + 17 * + 39 @@ -14594,8 +14746,11 @@ SELECT NULLIF ( - - COUNT ( * ), + SUM ( DISTINCT 65 ) * 32 * 84 - - 82 ) + COUN # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \+ Int64\(30\) AS col1" at position 0 and "Int64\(\-51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 21 + + 30 AS col1, - 51 AS col1 +---- +-51 +51 query I rowsort label-2772 SELECT 14 * ( - NULLIF ( + + 71, + + COUNT ( * ) ) ) * + + 34 * + 30 + - 13 + 38 AS col0 @@ -14818,8 +14973,11 @@ SELECT + + COUNT ( * ) / - 20 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 130 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(\-88\)\), Int64\(78\)\) \+ Int64\(42\) AS col0" at position 0 and "Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( + NULLIF ( - - 88, 78 ) ) + 42 col0, - 80 AS col0 +---- +-80 +130 query I rowsort label-2815 SELECT + - 41 * CAST ( NULL AS INTEGER ) @@ -14891,8 +15049,11 @@ NULL # 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\(39\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 AS col1, 42 AS col1 +---- +39 +42 query I rowsort label-2829 SELECT ALL MAX ( + 19 ) * NULLIF ( - + COUNT ( * ), ( - COALESCE ( 28, + + 50 ) ) ) @@ -15264,8 +15425,11 @@ SELECT ALL 39 * + 90 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 2700 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col2" at position 0 and "Int64\(75\) \* Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 90 AS col2, + 75 * + + 36 AS col2 +---- +-90 +2700 query I rowsort label-2900 SELECT 24 / - ( - + ( - - 87 ) ) + 84 AS col2 @@ -15332,8 +15496,11 @@ SELECT ALL 67 + - + ( COALESCE ( + - 92, 16, - COALESCE ( - - COUNT ( * ), + COU # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 62 AS col1, + 96 AS col1 +---- +-62 +96 query I rowsort label-2913 SELECT ALL - + COUNT ( - - 13 ) AS col0 @@ -15747,8 +15914,11 @@ SELECT DISTINCT ( - - 28 ) / + - 66 - - - 68 col1 # 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 "Int64\(41\) AS col1" at position 0 and "Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 41 AS col1, + 56 AS col1 +---- +41 +56 query II rowsort SELECT 83 AS col2, - 58 @@ -15872,8 +16042,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 40 -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\) \- Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 74 AS col1, + 55 - + + 15 AS col1 +---- +40 +74 query I rowsort SELECT - 75 * - 83 + + 71 AS col1 @@ -16126,8 +16299,11 @@ SELECT + 39, 52 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 918 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-1\)\) \* \(\- coalesce\(Int64\(91\), Int64\(\-68\), Int64\(57\)\)\) \+ Int64\(\-13\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(41\) \+ Int64\(\-71\) \* Int64\(\-11\) \* Int64\(74\) AS col1" at position 0 and "Int64\(34\) \* Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 16 + + COUNT ( * ) + - - 1 * - + COALESCE ( 91, - 68, + 57 ) + - 13 * - CAST ( NULL AS INTEGER ) + 41 + - 71 * - 11 * 74 col1, 34 * + 27 AS col1 +---- +918 +NULL query II rowsort label-3063 SELECT DISTINCT - 92 + + + 79 + COUNT ( * ) AS col1, - 95 / COUNT ( * ) AS col0 @@ -16165,8 +16341,11 @@ SELECT ALL COUNT ( * ) AS col0, + 24 * - 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 59 AS col2, + ( + COUNT ( * ) ) AS col2 +---- +-59 +1 query I rowsort SELECT ALL + 66 + - 13 AS col1 @@ -16628,8 +16807,12 @@ SELECT + 19 + CAST ( - 20 AS INTEGER ) AS col0 # Datafusion - Expected - 70 # Datafusion - Expected - -244 # Datafusion - Expected - 104 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \* Int64\(\-61\) AS col2" at position 1 and "Int64\(31\) \+ \(\- Int64\(\-73\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 70, 4 * - 61 AS col2, 31 + - - 73 AS col2 +---- +-244 +104 +70 query I rowsort SELECT DISTINCT + + 38 + 43 @@ -16965,8 +17148,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 159 # Datafusion - Expected - -1408 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \+ Int64\(72\) AS col0" at position 0 and "Int64\(32\) \* Int64\(\-44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 + 72 AS col0, + 32 * - 44 AS col0 +---- +-1408 +159 query I rowsort label-3222 SELECT DISTINCT + ( + 95 ) / - SUM ( 93 ) @@ -17319,8 +17505,11 @@ SELECT ALL 27 + + 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "Int64\(\-15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 93 col1, - 15 AS col1 +---- +-15 +93 query I rowsort label-3290 SELECT ALL MAX ( DISTINCT 51 ) AS col2 @@ -17391,8 +17580,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -134 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* CAST\(\(\- max\(DISTINCT \(\- \(\- CAST\(Int64\(2\) AS Float64\)\)\)\)\) AS Int32\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 67 * CAST ( + - MAX ( DISTINCT - - CAST ( + 2 AS FLOAT8 ) ) AS INTEGER ) AS col2, - CAST ( NULL AS INTEGER ) + COUNT ( * ) * 65 AS col2 +---- +-134 +NULL query I rowsort label-3304 SELECT + 11 + - - COUNT ( * ) + + 98 @@ -17402,8 +17594,11 @@ SELECT + 11 + - - COUNT ( * ) + + 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 94 AS col1, COUNT ( * ) AS col1 +---- +-94 +1 query I rowsort SELECT ALL + + ( + 54 ) @@ -17767,8 +17962,11 @@ SELECT NULLIF ( + + 0, + 18 ) / + + 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 112 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(\-56\)\), Int64\(8\)\) \* Int64\(2\) AS col0" at position 0 and "CASE Int64\(73\) WHEN Int64\(\-72\) \+ coalesce\(Int64\(71\), Int64\(9\)\) THEN Int64\(16\) ELSE nullif\(Int64\(\-10\), Int64\(\-58\)\) \+ Int64\(44\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT NULLIF ( - - 56, + 8 ) * 2 AS col0, CASE 73 WHEN ( - 72 ) + COALESCE ( + 71, + + 9 ) THEN 16 ELSE + NULLIF ( - 10, - 58 ) + 44 END AS col0 +---- +112 +34 query I rowsort label-3376 SELECT 16 + - 6 + - MIN ( 44 ) * 30 col1 @@ -18278,8 +18476,12 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(87\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 63 AS col0, ( + + COUNT ( * ) ) * - + 87 AS col0, - + 20 AS col2 +---- +-20 +-87 +63 query II rowsort label-3472 SELECT ALL + 7 AS col1, MAX ( - + 99 ) col2 @@ -18529,8 +18731,11 @@ NULL # 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 "max\(Int64\(87\)\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( MAX ( ALL 87 ) ) col0, + 51 AS col0 +---- +51 +87 query I rowsort label-3519 SELECT - 38 / + 70 + 10 @@ -18737,8 +18942,11 @@ SELECT - COUNT ( * ) + - + 85 + - 11 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) / CAST\(NULL AS Int32\) \- Int64\(\-81\) \+ Int64\(\-23\) \* Int64\(69\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 89 / CAST ( NULL AS INTEGER ) - - 81 + - 23 * 69 AS col1, 9 AS col1 +---- +9 +NULL query I rowsort SELECT DISTINCT 72 * - - 66 AS col0 @@ -18919,8 +19127,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col0" at position 0 and "min\(Int64\(46\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 24 AS col0, + MIN ( + 46 ) AS col0 +---- +-24 +46 query I rowsort SELECT + - 14 * - 4 + 56 + 26 @@ -19354,8 +19565,11 @@ SELECT + + MAX ( + + 80 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -33001 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) \* Int64\(75\) \* Int64\(10\) \+ Int64\(61\) \+ \(\- Int64\(62\)\) AS col1" at position 0 and "Int64\(89\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 44 * + 75 * 10 + 61 + - + 62 AS col1, 89 * ( + COUNT ( * ) ) AS col1 +---- +-33001 +89 query I rowsort label-3678 SELECT ALL + COUNT ( * ) / - + 91 + - 12 + + COUNT ( * ) @@ -19635,8 +19849,11 @@ SELECT CAST ( + 61 AS INTEGER ) + 48 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ Int64\(\-16\) AS col0" at position 0 and "Int64\(\-60\) \+ coalesce\(Int64\(63\), \(\- \(\- avg\(Int64\(35\)\)\)\) / Int64\(\-10\) \* CASE Int64\(95\) WHEN Int64\(12\) / Int64\(36\) THEN Int64\(87\) END, Int64\(58\)\) \+ Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL 61 + - 16 AS col0, - 60 + + + COALESCE ( 63, - ( - AVG ( ALL + 35 ) ) / + - 10 * + CASE + 95 WHEN + + 12 / + 36 THEN + 87 END, + + 58 ) + 21 AS col0 +---- +24 +45 query I rowsort SELECT DISTINCT 96 + 59 + + - 43 col0 @@ -19656,8 +19873,11 @@ SELECT ALL 25 + + 54 * 89 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7589 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(84\)\) \* Int64\(\-91\) \+ Int64\(55\) AS col1" at position 0 and "Int64\(3\) \* Int64\(24\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( ALL + 84 ) * - 91 + 55 AS col1, 3 * + + 24 / + COUNT ( * ) AS col1 +---- +-7589 +72 query I rowsort SELECT ALL 1 + - + ( - 60 ) @@ -19719,8 +19939,11 @@ SELECT - 93 * 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* Int64\(\-5\) AS col2" at position 0 and "\(\- \(\- Int64\(71\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 11 * - 5 AS col2, - ( - + 71 ) AS col2 +---- +55 +71 query I rowsort SELECT ALL - + 85 col2 @@ -19903,8 +20126,11 @@ SELECT ALL + 64 - - 31 - 63 * 38 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 249018 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(\-77\) \* Int64\(\-77\) AS col1" at position 0 and "Int64\(22\) \- Int64\(\-99\) \+ Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 42 * - 77 * - 77 AS col1, 22 - - 99 + + - 60 AS col1 +---- +249018 +61 query II rowsort SELECT DISTINCT 52 * 16 - - + 32 AS col2, + 83 @@ -20030,8 +20256,11 @@ SELECT COALESCE ( 23, + + 44, 78 + + 20 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -162082 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* \(\- Int64\(28\)\) \* Int64\(61\) \+ Int64\(23\) \* Int64\(73\) \+ \(\- Int64\(\-59\)\) \+ Int64\(44\) \* sum\(Int64\(81\)\) AS col2" at position 0 and "Int64\(27\) \+ \(\- Int64\(93\)\) \+ Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 98 * - ( + 28 ) * 61 + + 23 * + 73 + - ( - 59 ) + 44 * + SUM ( + 81 ) AS col2, 27 + - + 93 + + 22 AS col2 +---- +-162082 +-44 query I rowsort label-3806 SELECT COUNT ( * ) * MIN ( ALL 53 ) * NULLIF ( - MAX ( - - 5 ), - 25 ) + - 45 @@ -20066,8 +20295,11 @@ SELECT DISTINCT - 94 * - 74 * 0 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -7020 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(56\) \- Int64\(\-52\) \+ Int64\(72\) \* \(\- nullif\(Int64\(99\), Int64\(4\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + 56 - + - 52 + 72 * - NULLIF ( 99, + 4 ) col2 +---- +-7020 +1 query I rowsort label-3813 SELECT DISTINCT CAST ( - ( + + 67 ) AS INTEGER ) AS col2 @@ -20355,8 +20587,11 @@ SELECT COUNT ( * ) * + 79 AS col1, 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-27\)\) AS col0" at position 0 and "Int64\(\-81\) \- Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 27 ) AS col0, - 81 - - 43 AS col0 +---- +-38 +27 query I rowsort label-3867 SELECT ALL - 30 + + 6 / + 30 / + 84 * - CAST ( NULL AS INTEGER ) AS col0 @@ -20585,8 +20820,11 @@ SELECT DISTINCT 90 AS col0, - 57 # 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\) AS col2" at position 0 and "Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 12 AS col2, - 41 col2 +---- +-12 +-41 query II rowsort SELECT DISTINCT 40, ( + - 81 ) AS col2 @@ -20820,8 +21058,11 @@ SELECT ALL - 86 * - 43 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 623 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \* \(\- min\(Int64\(89\)\)\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 7 * - + MIN ( 89 ) AS col1, 12 AS col1 +---- +12 +623 query I rowsort label-3955 SELECT ALL - 93 / - 98 + 87 @@ -20858,8 +21099,11 @@ SELECT - + 75 + COUNT ( * ) / - 44 + - ( MIN ( ALL CAST ( - 75 AS INTEGER ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(0\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(36\)\)\) / coalesce\(Int64\(58\), nullif\(\(\- nullif\(Int64\(36\), Int64\(60\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\), Int64\(26\)\)\) \* Int64\(27\) \+ Int64\(49\) \+ \(\- CAST\(avg\(Int64\(\-63\)\) AS Int32\)\) \+ Int64\(\-52\) \* Int64\(\-9\) \* Int64\(13\) \+ CASE Int64\(\-17\) WHEN Int64\(57\) THEN coalesce\(Int64\(\-50\), CASE \(\- \(\- CAST\(Int64\(79\) AS Int32\)\)\) WHEN Int64\(25\) \* Int64\(30\) / Int64\(\-46\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(34\) / Int64\(50\) \+ Int64\(\-11\) / Int64\(\-22\) THEN NULL WHEN CASE Int64\(\-15\) WHEN Int64\(4\) \* Int64\(\-86\) THEN Int64\(\-30\) \+ Int64\(98\) ELSE NULL END \* count\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(20\), \(\- Int64\(\-35\)\)\) \- Int64\(30\) / CAST\(NULL AS Int32\) THEN Int64\(60\) \* Int64\(\-51\) ELSE NULL END, Int64\(\-41\) / Int64\(96\) \+ Int64\(30\) / Int64\(84\)\) WHEN Int64\(11\) THEN CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(Int64\(\-18\) AS Int32\) \+ Int64\(74\)\) THEN NULL ELSE Int64\(72\) \+ Int64\(74\) \* Int64\(\-96\) END ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +0 +NULL query I rowsort label-3962 SELECT ALL 88 * + 27 + MIN ( + 3 ) + + 77 * - 60 AS col1 @@ -20925,8 +21169,11 @@ SELECT + CAST ( - 85 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ \(\- 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 II valuesort SELECT + 55 + - + COUNT ( - + 90 ) AS col1, 19 AS col1 +---- +19 +54 query I rowsort SELECT ALL - 93 - 65 @@ -21384,8 +21631,11 @@ SELECT DISTINCT 30 - + - 30 - - 28 * + 63 + 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 1406 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col1" at position 0 and "Int64\(74\) \* Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 2 AS col1, 74 * 19 AS col1 +---- +1406 +2 query I rowsort label-4060 SELECT ALL 68 / + 98 + - COUNT ( * ) - + + COUNT ( * ) AS col2 @@ -21471,14 +21721,20 @@ SELECT + + 84 * CASE CAST ( + MIN ( DISTINCT - NULLIF ( + 37, - - 15 * + CAST ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 94 AS col0, + COUNT ( * ) AS col0 +---- +1 +94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col2" at position 0 and "Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 21 AS col2, 79 AS col2 +---- +21 +79 query I rowsort label-4077 SELECT + - 9 * - COUNT ( * ) @@ -21690,8 +21946,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(56\)\) \+ Int64\(71\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 79 * - COUNT ( * ) + + - ( + 56 ) + + 71 AS col1, COUNT ( * ) AS col1 +---- +-64 +1 query II rowsort SELECT DISTINCT 89 AS col0, 96 + - - 86 @@ -22228,8 +22487,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 72 AS col0, - 73 + - - COUNT ( * ) AS col0 +---- +-72 +72 query I rowsort label-4224 SELECT DISTINCT - CAST ( + 98 AS INTEGER ) + 28 * ( 19 + ( 62 ) ) AS col2 @@ -22378,8 +22640,11 @@ SELECT DISTINCT 18 + + + ( + 44 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2126 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(68\) \+ Int64\(21\) \- Int64\(\-97\) \* Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 68 + + CAST ( NULL AS INTEGER ) AS col0, + 68 + 21 - - 97 * 21 AS col0 +---- +2126 +NULL query I rowsort SELECT 53 * + 75 @@ -22613,14 +22878,20 @@ SELECT DISTINCT CASE + 12 WHEN 58 / - - 47 * - - 21 THEN NULL WHEN 60 + 85 THEN # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(38\) \- Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, + 38 - - 1 AS col0 +---- +1 +39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 AS col0, 26 AS col0 +---- +26 +88 query I rowsort label-4300 SELECT - + MAX ( DISTINCT - 56 ) @@ -23070,8 +23341,11 @@ 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 col0" at position 0 and "Int64\(67\) / Int64\(\-36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 83 AS col0, + 67 / - 36 AS col0 +---- +-1 +83 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -23131,8 +23405,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 AS col0, - COUNT ( * ) * + + 99 AS col0 +---- +-99 +19 query I rowsort label-4397 SELECT DISTINCT + 63 * - 98 + - COUNT ( 38 ) + - 50 AS col1 @@ -24200,8 +24477,11 @@ SELECT 40 - 69 - + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(8\) \- nullif\(CAST\(Int64\(67\) AS Int32\), Int64\(32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 13 / COUNT ( * ) col0, 8 - + NULLIF ( + CAST ( + 67 AS INTEGER ), 32 ) AS col0 +---- +-59 +13 query I rowsort label-4600 SELECT ALL - ( + + MIN ( DISTINCT - - 86 ) ) - + ( - MAX ( DISTINCT - 60 ) ) - NULLIF ( + 28, - COUNT ( * ) / + 42 + + 43 * - 23 + + 53 + - 7 ) + + 75 @@ -24311,8 +24591,11 @@ SELECT ALL - 32 + - - 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \+ Int64\(53\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 + + 53 * + + CAST ( NULL AS INTEGER ) AS col0, + ( - 34 ) AS col0 +---- +-34 +NULL query I rowsort SELECT ALL - 81 * - + 11 @@ -24462,8 +24745,11 @@ SELECT COUNT ( * ) * 10 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(45\)\) \+ Int64\(91\) \- Int64\(75\) \+ Int64\(\-33\) AS col0" at position 0 and "Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + SUM ( ALL + + 45 ) + 91 - + 75 + - 33 AS col0, 32 AS col0 +---- +28 +32 query I rowsort label-4651 SELECT + CAST ( NULL AS INTEGER ) * 10 @@ -24481,8 +24767,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 45 * - ( - ( + COUNT ( * ) ) ) + + + 23 AS col2, - CASE - 22 WHEN 29 THEN NULL WHEN + 13 THEN + + 78 * 89 ELSE NULL END AS col2 +---- +68 +NULL query I rowsort label-4654 SELECT ALL + 11 / + CAST ( NULL AS INTEGER ) @@ -24553,8 +24842,11 @@ SELECT - 71 - - 81 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 1 AS col1, + COUNT ( * ) AS col1 +---- +1 +1 query I rowsort SELECT DISTINCT - ( + - 93 ) * - 50 @@ -24745,8 +25037,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort 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 +---- +53 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -25026,8 +25321,11 @@ SELECT 51 + 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 * + + COUNT ( * ) AS col2, 61 AS col2 +---- +14 +61 query I rowsort label-4758 SELECT 21 + + COUNT ( * ) + 71 * - 84 @@ -25128,8 +25426,11 @@ SELECT + COUNT ( * ) / - + ( 91 ) - + 13 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- Int64\(\-49\)\)\)\) AS col1" at position 0 and "coalesce\(Int64\(73\), Int64\(63\) \* Int64\(\-46\) \+ min\(DISTINCT Int64\(\-71\)\), Int64\(\-90\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( - - 49 ) AS col1, COALESCE ( 73, + + 63 * - 46 + ( MIN ( DISTINCT - 71 ) ), - 90 ) AS col1 +---- +-49 +73 query I rowsort label-4778 SELECT + SUM ( DISTINCT - + 41 ) AS col1 @@ -25186,8 +25487,11 @@ SELECT + ( + - 76 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) / Int64\(1\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 12 / 1 AS col0, + 95 AS col0 +---- +12 +95 query I rowsort SELECT + - 85 * + 40 + 4 @@ -25421,8 +25725,11 @@ SELECT + COUNT ( * ) / + COALESCE ( + 99, - AVG ( ALL - - 79 ) * + ( 35 ), - + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3090 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* Int64\(\-1\) \+ Int64\(70\) \* Int64\(43\) AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 80 * - 1 + 70 * + 43 col2, 58 AS col2 +---- +3090 +58 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -25519,8 +25826,11 @@ SELECT - ( - + 2 ) + - 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 4930 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col1" at position 0 and "Int64\(58\) \* Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 13 AS col1, 58 * + 85 col1 +---- +13 +4930 query I rowsort label-4851 SELECT - + SUM ( DISTINCT + ( - + 16 ) ) @@ -25892,8 +26202,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 43 * + 96 AS col2, - COUNT ( * ) AS col2 +---- +-1 +-4128 query I rowsort SELECT ALL - 97 * - 69 * + 18 AS col1 @@ -26041,8 +26354,11 @@ 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\(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\. +query II valuesort SELECT + - 67 - COUNT ( * ) * 25 * + - 83 col1, 94 AS col1 +---- +2008 +94 query I rowsort label-4948 SELECT ALL - 62 / - 14 + - CAST ( NULL AS INTEGER ) AS col1 @@ -26226,8 +26542,11 @@ SELECT DISTINCT + 97 * + 49 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 23 col1, + 2 col1 +---- +-23 +2 query I rowsort label-4983 SELECT + SUM ( DISTINCT + 51 ) / + - ( - + 81 ) - - COALESCE ( - 1, + 15, 1 ) AS col0 @@ -26271,8 +26590,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 8064 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(49\)\) AS col2" at position 0 and "Int64\(96\) \* nullif\(Int64\(84\), \(\- max\(DISTINCT Int64\(\-73\)\)\) \* Int64\(\-90\) \+ Int64\(48\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 49 AS col2, 96 * + NULLIF ( 84, - MAX ( DISTINCT - 73 ) * - 90 + 48 ) AS col2 +---- +-49 +8064 query I rowsort SELECT DISTINCT 88 + + 10 @@ -26531,8 +26853,11 @@ SELECT - 53 / 22 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col0, + 10 AS col0 +---- +10 +NULL query I rowsort SELECT DISTINCT 45 * + 98 @@ -26584,8 +26909,11 @@ SELECT ALL + + 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 42 AS col0, 82 AS col0 +---- +-42 +82 query II rowsort label-5051 SELECT NULLIF ( 44, - + 99 * 15 ) AS col2, 70 / - 55 @@ -26611,8 +26939,11 @@ SELECT DISTINCT - 1 / - 49 - + NULLIF ( 47, COALESCE ( - 53, - COUNT ( * ), + 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1235 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-19\)\) \* \(\- Int64\(65\)\) AS col2" at position 0 and "max\(DISTINCT \(\- Int64\(\-13\)\)\) \- Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( ALL - 19 ) * - + 65 col2, MAX ( DISTINCT - ( - 13 ) ) - + 35 AS col2 +---- +-22 +1235 query I rowsort label-5056 SELECT DISTINCT - 52 * CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * + 41 * 92 / + 12 @@ -26865,8 +27196,11 @@ SELECT COUNT ( * ) * + COALESCE ( + CAST ( - 68 AS INTEGER ), + COUNT ( * ) ) + # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 49 col2, 31 AS col2 +---- +31 +49 query I rowsort SELECT + 17 * + ( COALESCE ( + 11, - - 38 ) ) * 2 AS col1 @@ -27028,8 +27362,11 @@ SELECT ALL - 16 + + 67 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col0" at position 0 and "Int64\(\-93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 38 AS col0, - 93 AS col0 +---- +-38 +-93 query I rowsort label-5136 SELECT DISTINCT + - 78 / - + CAST ( NULL AS INTEGER ) * - 17 + COUNT ( DISTINCT + 1 ) + CAST ( + 44 AS INTEGER ) * - + 28 AS col0 @@ -27226,8 +27563,11 @@ SELECT DISTINCT 0 * + - 77 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 66 + ( CAST ( NULL AS INTEGER ) ) col2, COUNT ( * ) AS col2 +---- +1 +NULL query I rowsort label-5171 SELECT - CAST ( + 5 AS INTEGER ) AS col1 @@ -27783,8 +28123,11 @@ SELECT DISTINCT - 2 + + 61 * - - 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 16972 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "Int64\(37\) \* Int64\(\-22\) \* Int64\(\-21\) \+ Int64\(\-37\) \+ nullif\(\(\- \(\- Int64\(\-85\)\)\), Int64\(61\) \+ Int64\(1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 AS col2, + 37 * - 22 * - 21 + - 37 + NULLIF ( - - ( - 85 ), + + 61 + 1 ) col2 +---- +16972 +82 query I rowsort label-5278 SELECT ALL ( + ( ( + 37 ) ) ) + - ( - - 54 ) + - COUNT ( * ) @@ -28549,8 +28892,11 @@ SELECT + 24 / + - 95 * COALESCE ( - 72, + 27 - - 65 ) + + 78 AS col2 # 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 "Int64\(79\) / \(\- Int64\(\-81\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 16 AS col1, 79 / - - 81 col1 +---- +0 +16 query I rowsort SELECT 78 + - 59 + 10 * - + 35 + + 75 @@ -28607,8 +28953,11 @@ SELECT 93 + + 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-93\) \* \(\- Int64\(\-40\)\) / count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-88\) AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) * - 93 * - - 40 / + + COUNT ( * ) - - 88 AS col1, 32 AS col1 +---- +32 +NULL query II rowsort SELECT 87 * + 32 + + - 89, + 66 AS col2 @@ -28801,8 +29150,11 @@ SELECT 18 * - 90 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 62 AS col1, 67 AS col1 +---- +-62 +67 query I rowsort SELECT DISTINCT + - 75 * 74 AS col1 @@ -28977,8 +29329,11 @@ SELECT ALL 95 * + 85 + 48 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(91\) AS col0" at position 0 and "\(\- nullif\(Int64\(26\), CAST\(NULL AS Int32\) / count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + + COUNT ( * ) ) * + 91 AS col0, - NULLIF ( 26, CAST ( NULL AS INTEGER ) / COUNT ( * ) ) AS col0 +---- +-26 +91 query I rowsort label-5504 SELECT + COUNT ( * ) / - 15 AS col1 @@ -29436,8 +29791,11 @@ SELECT ALL 64 * + 6 - + 84 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1049 # Datafusion - Expected - 630 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(DISTINCT Int64\(5\)\)\) \+ Int64\(\-14\) \* \(\- Int64\(75\)\) AS col1" at position 0 and "Int64\(\-7\) \* Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( DISTINCT 5 ) + - 14 * - + 75 AS col1, - 7 * - 90 AS col1 +---- +1049 +630 query II rowsort SELECT + 51, + 55 + - + 67 AS col0 @@ -29533,8 +29891,11 @@ SELECT MAX ( ALL - + ( - + 85 ) ) # 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 "Int64\(18\) / Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 12 AS col1, 18 / + 86 col1 +---- +-12 +0 query II rowsort SELECT 18, 64 * 0 AS col0 @@ -29657,8 +30018,11 @@ SELECT - 6 * 74 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1207 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) \* Int64\(17\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 71 * 17 AS col2, COUNT ( * ) col2 +---- +-1207 +1 query I rowsort SELECT ALL 24 * - - 45 @@ -30178,8 +30542,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * - 48 - - ( + ( + + 99 ) ) AS col2, + COUNT ( * ) + + 91 * 2 AS col2 +---- +183 +51 query I rowsort SELECT - 45 + 63 @@ -30861,8 +31228,11 @@ SELECT ALL - - NULLIF ( + + COUNT ( * ), - 69 + 22 ) * 43 + 25 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "Int64\(82\) \+ Int64\(23\) \+ Int64\(\-82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 col0, 82 + + 23 + - 82 AS col0 +---- +23 +69 query I rowsort label-5864 SELECT + COUNT ( DISTINCT - - 45 ) AS col0 @@ -30893,8 +31263,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) * 20 AS col0, - 59 + - 36 AS col0 +---- +-95 +20 query I rowsort label-5870 SELECT ALL + COUNT ( + ( + 69 ) ) col2 @@ -31373,8 +31746,11 @@ SELECT ALL 28 * + 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col1" at position 0 and "Int64\(\-61\) \- Int64\(\-7\) \* Int64\(\-38\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 27 AS col1, - 61 - - 7 * - 38 + - + CAST ( NULL AS INTEGER ) AS col1 +---- +-27 +NULL query II rowsort label-5962 SELECT + 78 AS col0, + ( CAST ( COUNT ( * ) AS INTEGER ) ) AS col1 @@ -31869,8 +32245,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "nullif\(Int64\(8\), \(\- CAST\(Int64\(92\) AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 81 AS col0, NULLIF ( + 8, - CAST ( + + 92 AS INTEGER ) ) AS col0 +---- +8 +81 query I rowsort label-6058 SELECT ALL 39 + - 28 * 30 * + SUM ( ALL - - ( + 75 ) ) + - 38 @@ -32155,8 +32534,11 @@ SELECT + - 96 * 24 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "coalesce\(Int64\(\-83\), Int64\(\-84\) / Int64\(\-22\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 47 AS col2, COALESCE ( - 83, - 84 / + - 22 ) AS col2 +---- +-83 +47 query II rowsort label-6112 SELECT DISTINCT + - COUNT ( * ) AS col0, 7 @@ -32204,8 +32586,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-82\) \+ Int64\(\-94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 56 AS col2, + COUNT ( * ) + - 82 + - 94 AS col2 +---- +-175 +56 query I rowsort label-6121 SELECT - 71 * 89 * + 24 * + COUNT ( ALL - 48 ) AS col1 @@ -32272,8 +32657,11 @@ SELECT - 64 + + + 48 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 232 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(4\) \* Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + COUNT ( * ) ) AS col0, 4 * + 58 AS col0 +---- +1 +232 query I rowsort SELECT - 81 * 27 AS col0 @@ -32843,8 +33231,11 @@ SELECT - COUNT ( + - 51 ) AS col0, 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1593 # Datafusion - Expected - 1927 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \* Int64\(\-62\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(42\) AS Int32\) AS col1" at position 0 and "Int64\(47\) \* Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 25 * + - 62 + COUNT ( * ) + + + CAST ( + 42 AS INTEGER ) AS col1, + 47 * + 41 AS col1 +---- +1593 +1927 query I rowsort label-6241 SELECT + - COUNT ( * ) * - - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) + + - 37 @@ -32976,8 +33367,11 @@ SELECT - + 57 + + 51 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- Int64\(\-61\)\)\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + SUM ( - - 61 ) ) AS col2, 27 AS col2 +---- +27 +61 query I rowsort label-6267 SELECT - + COUNT ( * ) * + COALESCE ( + COUNT ( * ), - 35 * - MAX ( ALL - 69 ) ) * + 98 - 69 * 41 + 55 col2 @@ -33133,14 +33527,20 @@ SELECT - 34 - - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 1235 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col0" at position 0 and "Int64\(95\) \* Int64\(13\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 AS col0, + 95 * 13 / + ( + COUNT ( * ) ) AS col0 +---- +-48 +1235 # 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\(1\)\) AS count\(\*\) \* Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 83 ) * - 45 * - 20 * + ( + - 68 ) AS col1, COUNT ( * ) * + 45 AS col1 +---- +-5079600 +45 query I rowsort SELECT 30 * - + 96 AS col2 @@ -33246,8 +33646,11 @@ SELECT ALL NULLIF ( + + COUNT ( * ), + 66 * + 77 ) / COUNT ( * ) - 88 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1177 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) \* Int64\(25\) \+ Int64\(98\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 51 * 25 + + 98 / ( COUNT ( * ) ) AS col0, 46 AS col0 +---- +-1177 +46 query I rowsort label-6318 SELECT DISTINCT CASE - 16 WHEN - 24 / - + 59 THEN + 9 ELSE - 66 END / NULLIF ( + 7, - 91 / 48 ) * CAST ( 31 AS INTEGER ) + + COUNT ( * ) @@ -33271,8 +33674,12 @@ SELECT NULLIF ( + 24, + CASE - - COUNT ( * ) WHEN - - 48 * - + COUNT ( * ) - + - # Datafusion - Expected - -4947 # Datafusion - Expected - 106 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* Int64\(\-97\) AS col2" at position 0 and "\(\- Int64\(\-36\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 51 * - 97 AS col2, 17 + - MAX ( DISTINCT - + 89 ), - - 36 AS col2 +---- +-4947 +106 +36 query I rowsort SELECT + 74 * 42 * 54 AS col2 @@ -33680,8 +34087,11 @@ 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\(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\. +query II valuesort 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 +---- +99 +NULL query II rowsort SELECT 13 + + COALESCE ( 22, + 75 * - - 2 ) + - - ( - - 62 ) + + 28 + - 16 * - + 63 AS col1, - 48 @@ -33930,8 +34340,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col2" at position 0 and "Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 17 col2, + 76 AS col2 +---- +-17 +76 query I rowsort label-6447 SELECT - - 62 * + 75 + + 74 + CASE + COUNT ( * ) WHEN - + COUNT ( * ) / + COUNT ( * ) THEN + NULLIF ( - + COUNT ( * ), + 63 ) WHEN 84 + - + COUNT ( + 84 ) + + 98 + + + 13 / 49 + - 48 * - + 74 THEN - - 35 ELSE NULL END * - - 98 @@ -34167,8 +34580,11 @@ SELECT ALL COUNT ( * ) AS col0, 83 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 12 AS col0, + 23 col0 +---- +-12 +23 query I rowsort label-6492 SELECT DISTINCT 21 / - 42 @@ -34188,8 +34604,11 @@ SELECT ALL + 78 * - - 42 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(CAST\(CASE Int64\(28\) WHEN Int64\(\-28\) THEN Int64\(\-81\) END AS Int32\) AS Float64\)\) \+ Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 20 AS col0, ( - COUNT ( * ) ) * - CAST ( + CAST ( CASE 28 WHEN - 28 THEN - 81 END AS INTEGER ) AS FLOAT8 ) + - 27 AS col0 +---- +20 +NULL query I rowsort label-6496 SELECT DISTINCT + COUNT ( * ) - - 16 @@ -34498,8 +34917,11 @@ SELECT + + 31 + + 85 + + MIN ( ALL + 8 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77748 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* Int64\(57\) \* Int64\(22\) AS col2" at position 0 and "Int64\(7\) \+ Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 62 * + 57 * + 22 AS col2, 7 + + 66 AS col2 +---- +73 +77748 query I rowsort label-6555 SELECT ALL 88 * - - NULLIF ( + 51, - 13 - MAX ( ALL 35 ) * CAST ( + 50 AS INTEGER ) ) * - 10 - 8 @@ -34800,8 +35222,11 @@ SELECT ALL - 15 * + + 54 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2625 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* Int64\(35\) AS col2" at position 0 and "Int64\(10\) \* Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 75 * 35 AS col2, 10 * + 2 AS col2 +---- +20 +2625 query I rowsort SELECT 95 * + - 58 * ( + ( - - CASE - 96 WHEN - 75 THEN NULL WHEN 92 THEN + 69 * + 48 + - 86 - + 94 * + 51 END ) ) * + 35 / - + 42 @@ -34980,8 +35405,11 @@ SELECT DISTINCT - 24 AS col2, + NULLIF ( - 83, + 84 * CASE 78 WHEN + 19 THEN NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- \(\- sum\(Int64\(6\)\)\) AS col0" at position 0 and "Int64\(88\) \* Int64\(26\) \+ \(\- CASE avg\(DISTINCT Int64\(\-64\)\) WHEN sum\(Int64\(86\)\) / Int64\(60\) \* \(\- Int64\(\-20\)\) THEN NULL WHEN Int64\(83\) / Int64\(\-26\) \- Int64\(\-63\) THEN NULL ELSE \(\- Int64\(67\)\) / CASE Int64\(44\) WHEN \(\- Int64\(48\)\) \+ Int64\(39\) \+ \(\- Int64\(0\)\) THEN \(\- max\(DISTINCT Int64\(78\)\)\) / Int64\(\-4\) \+ Int64\(\-92\) WHEN Int64\(28\) / Int64\(32\) THEN NULL END \- Int64\(56\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) - - + SUM ( ALL 6 ) AS col0, 88 * + 26 + - CASE ( AVG ( DISTINCT - 64 ) ) WHEN + SUM ( + 86 ) / 60 * - - 20 THEN NULL WHEN + + 83 / - 26 - - 63 THEN NULL ELSE - ( 67 ) / + CASE + 44 WHEN - + 48 + + 39 + - - 0 THEN + - MAX ( DISTINCT ( 78 ) ) / - 4 + - 92 WHEN 28 / 32 THEN NULL END - 56 END AS col0 +---- +NULL +NULL query I rowsort SELECT ALL 69 + - 14 @@ -35609,8 +36037,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, 98 AS col2 +---- +-1 +98 query I rowsort SELECT + ( + - 90 ) - + 24 @@ -35625,8 +36056,11 @@ SELECT 36 - + 26 * ( + + 27 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 26 AS col1, + COUNT ( * ) AS col1 +---- +1 +26 query III rowsort label-6772 SELECT 28, CASE + SUM ( DISTINCT + 61 ) WHEN - 44 THEN NULL ELSE + 20 * - 9 * 95 * + 52 END AS col2, - + 68 + + - 86 AS col1 @@ -35799,8 +36233,12 @@ SELECT + - 13 + + - COUNT ( ALL 79 ) # Datafusion - Expected - -66 # Datafusion - Expected - 47 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-66\) AS Int32\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + CAST ( - 66 AS INTEGER ) AS col2, 47 AS col2, - 98 AS col2 +---- +-66 +-98 +47 query I rowsort SELECT ALL + + 3 * + 72 col1 @@ -36126,8 +36564,11 @@ SELECT - 91 + - - 62 * 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7068 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) \* Int64\(93\) AS col1" at position 0 and "sum\(DISTINCT Int64\(9\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 76 * 93 AS col1, + SUM ( DISTINCT + 9 ) AS col1 +---- +-7068 +9 query II rowsort label-6866 SELECT - 9 * + NULLIF ( COUNT ( * ), NULLIF ( + 68, - 65 ) * + COUNT ( - + 91 ) ) * - + 42, - 45 AS col2 @@ -36248,8 +36689,12 @@ SELECT 13 * + + 75 * MIN ( ALL + ( + 19 ) ) AS col2 # Datafusion - Expected - 43 # Datafusion - Expected - 1300 # Datafusion - Expected - 1575 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "Int64\(26\) \* Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 43 col1, 26 * 50 AS col1, - 21 * - 75 +---- +1300 +1575 +43 query I rowsort label-6889 SELECT 30 / - + 86 col2 @@ -36536,14 +36981,20 @@ SELECT + COUNT ( * ) + COUNT ( * ) * - + 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 30 AS col1, 83 col1 +---- +30 +83 # 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) - COUNT ( * ) + 41 * 8 AS col1, - 48 AS col1 +---- +-48 +328 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -36562,8 +37013,11 @@ SELECT DISTINCT + 22 AS col1, + 87 # 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\) AS col1" at position 0 and "Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 25 AS col1, - 6 AS col1 +---- +-6 +25 query I rowsort SELECT DISTINCT + 42 * - ( + ( - 34 ) ) * 0 @@ -36692,8 +37146,11 @@ SELECT - 32 + + - 22 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1325 # Datafusion - Expected - 135 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* \(\- Int64\(53\)\) AS col2" at position 0 and "Int64\(3\) \* max\(Int64\(45\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 25 * - + 53 AS col2, 3 * + MAX ( + 45 ) AS col2 +---- +-1325 +135 query II rowsort label-6972 SELECT ALL + + 55 * - + 14 AS col2, + COUNT ( * ) @@ -36834,8 +37291,11 @@ SELECT 59 * - + 77 + - - 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - -132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col1" at position 0 and "Int64\(\-89\) \- Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 97 AS col1, - 89 - + 43 AS col1 +---- +-132 +97 query I rowsort SELECT 54 * - 48 @@ -36920,8 +37380,11 @@ SELECT DISTINCT ( - 74 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "Int64\(\-58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 86 AS col0, - 58 col0 +---- +-58 +86 query II rowsort label-7014 SELECT - COUNT ( * ) * 65 * + 62 AS col2, 47 - - 59 * - - 20 - + MIN ( ALL 86 ) * 37 / - 90 + - 25 @@ -37211,8 +37674,11 @@ 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\(1\)\) AS count\(\*\) \+ \(\- Int64\(84\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 AS col1, 8 * 26 + 86 * COUNT ( * ) + - + 84 AS col1 +---- +210 +53 query I rowsort label-7071 SELECT + MAX ( - 35 ) * - - 39 * 84 AS col2 @@ -37387,8 +37853,11 @@ SELECT ALL NULLIF ( 13, + 1 ) * + ( 97 ) + - - MAX ( + + 88 ) / 65 * 14 * + + 78 # 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 col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 55 AS col0, + 94 col0 +---- +55 +94 query II rowsort label-7105 SELECT + + 34 AS col2, 72 - - - SUM ( ALL 67 ) / + - CASE WHEN NOT - COUNT ( * ) BETWEEN + 15 AND + - 92 THEN + 30 END AS col0 @@ -37421,8 +37890,11 @@ SELECT DISTINCT - 85 col2, + 12 * - 19 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "Int64\(\-29\) \+ Int64\(\-49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 74 AS col1, - 29 + - 49 col1 +---- +-78 +74 query II rowsort SELECT ALL 1, - NULLIF ( - 67, ( - 21 ) ) * + 59 + + + 68 AS col1 @@ -37644,8 +38116,11 @@ SELECT SUM ( DISTINCT - 17 ) + + - 21 + + 70 * - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 col0, 16 AS col0 +---- +16 +81 query I rowsort label-7153 SELECT ALL 39 + + + SUM ( - 53 ) AS col0 @@ -37875,8 +38350,11 @@ SELECT COALESCE ( - 19, - + 40, + + ( - + 8 ) * + - 73 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3410 # Datafusion - Expected - -2009 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \* Int64\(77\) \+ Int64\(56\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-49\) \* Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 45 * 77 + + 56 - COUNT ( * ) AS col0, - 49 * + 41 AS col0 +---- +-2009 +-3410 query I rowsort SELECT DISTINCT 80 * + 91 AS col1 @@ -38163,8 +38641,11 @@ SELECT MAX ( + 41 ) * - 10 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 0 and "max\(Int64\(36\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 AS col0, + MAX ( 36 ) col0 +---- +36 +78 query I rowsort SELECT 24 + - 59 * - 24 AS col1 @@ -38200,8 +38681,11 @@ SELECT DISTINCT + - 92 - 79 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 25 / + + COUNT ( * ) AS col0, COUNT ( * ) AS col0 +---- +1 +25 query II rowsort label-7259 SELECT ALL - MAX ( - - 41 ), - 5 AS col2 @@ -38336,8 +38820,11 @@ SELECT - 12 - + 60 + + + 7 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \* \(\- Int64\(\-76\)\) \* CAST\(NULL AS Float64\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT - 2 * - - 76 * CAST ( NULL AS FLOAT8 ) AS col2, + 35 AS col2 +---- +35 +NULL query II rowsort SELECT + 69 * - + 80 AS col2, + 42 * 29 * + + 51 @@ -40060,8 +40547,11 @@ SELECT 42 - - 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3240 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* Int64\(40\) AS col2" at position 0 and "nullif\(nullif\(Int64\(49\), Int64\(\-45\) \+ Int64\(65\) / Int64\(\-65\)\), Int64\(\-86\) \+ Int64\(97\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 * 40 AS col2, NULLIF ( + NULLIF ( 49, - 45 + 65 / - 65 ), - 86 + ( + 97 ) ) col2 +---- +3240 +49 query I rowsort SELECT DISTINCT + 50 + + 8 @@ -40142,8 +40632,11 @@ SELECT - 0 * COUNT ( * ) col0, + 98 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2618 # Datafusion - Expected - -1762 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(\-34\) AS col1" at position 0 and "Int64\(44\) \+ Int64\(27\) \* Int64\(\-69\) \+ Int64\(27\) \+ Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 * - 34 AS col1, 44 + + 27 * - 69 + 27 + + 30 col1 +---- +-1762 +-2618 query I rowsort SELECT 20 + + 24 - 70 * + + 22 * + - 56 AS col1 @@ -40242,8 +40735,11 @@ SELECT 86 + - - 59 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col0" at position 0 and "Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 72 AS col0, 37 col0 +---- +37 +72 query II rowsort label-7657 SELECT ALL 50 AS col2, NULLIF ( - + COUNT ( * ), - 75 ) AS col1 @@ -40323,8 +40819,11 @@ SELECT + 58 * NULLIF ( - 12, - 85 + - 40 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 690 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col0" at position 0 and "Int64\(10\) \* Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 30 AS col0, 10 * 69 AS col0 +---- +-30 +690 query I rowsort SELECT DISTINCT + NULLIF ( + - 41, + 26 * 40 ) AS col2 @@ -41036,8 +41535,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 3288 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 0 and "Int64\(58\) \* Int64\(54\) \+ \(\- Int64\(\-80\)\) \+ Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 AS col0, 58 * + + 54 + - ( - 80 ) + + 76 AS col0 +---- +28 +3288 query I rowsort SELECT - 75 * - + 17 AS col2 @@ -41052,8 +41554,11 @@ SELECT ALL 80 * + - 47 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 4420 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "Int64\(65\) \* Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 56 AS col0, 65 * + 68 AS col0 +---- +4420 +56 query I rowsort label-7814 SELECT ALL CASE - COALESCE ( 30, + + COUNT ( * ), ( 55 ) ) WHEN - + 97 * + 64 THEN - 94 ELSE - COUNT ( * ) * - - COALESCE ( - 2, + + 0 ) + CAST ( NULL AS INTEGER ) END @@ -41245,8 +41750,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - - 86 ) AS col1, COALESCE ( - - COUNT ( + 35 ), - 59 ) / COUNT ( * ) / 3 AS col1 +---- +-86 +0 query I rowsort label-7851 SELECT - ( COUNT ( * ) ) - 32 AS col2 @@ -41413,8 +41921,11 @@ SELECT 99 + + - 68 / 96 * + NULLIF ( - MAX ( DISTINCT - - 84 ), 45 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) / \(\- Int64\(20\)\) AS col0" at position 0 and "Int64\(\-51\) \* CASE \(\- Int64\(50\)\) WHEN Int64\(92\) / Int64\(24\) \* Int64\(\-48\) THEN NULL WHEN Int64\(31\) THEN Int64\(2\) WHEN Int64\(11\) \- Int64\(36\) \+ Int64\(\-72\) THEN NULL END \* Int64\(\-4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 37 ) / - + 20 col0, - 51 * + CASE - + 50 WHEN + 92 / 24 * - 48 THEN NULL WHEN + 31 THEN + 2 WHEN 11 - 36 + - 72 THEN NULL END * - 4 AS col0 +---- +-1 +NULL query II rowsort SELECT 64, 29 col1 @@ -41514,8 +42025,11 @@ SELECT ALL + + COUNT ( * ) * + - 75 + + + 54, + 77 + 3 + + ( - + 47 ) col0 # 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 "Int64\(\-3\) AS col2" at position 0 and "Int64\(3\) \* Int64\(\-99\) \+ \(\- Int64\(14\)\) \+ \(\- Int64\(\-84\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 3 AS col2, + ( + 3 ) * - 99 + - + 14 + - - 84 AS col2 +---- +-227 +-3 query I rowsort SELECT ALL - 27 * - - 81 AS col2 @@ -41570,8 +42084,11 @@ SELECT DISTINCT + 83 * + ( - 14 ) * - 31 AS col2, + 23 # 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 "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 II valuesort SELECT 55 AS col0, 69 col0 +---- +55 +69 query I rowsort label-7912 SELECT ALL + 65 * - - COUNT ( * ) * - 68 AS col2 @@ -41867,8 +42384,11 @@ SELECT DISTINCT 24 * - 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col1" at position 0 and "Int64\(\-97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 96 AS col1, - 97 AS col1 +---- +-97 +96 query II rowsort label-7968 SELECT + 54 AS col2, - 52 * + - COUNT ( * ) AS col1 @@ -41993,8 +42513,12 @@ SELECT ALL 59 AS col2, + 10 + + COUNT ( * ) # Datafusion - Expected - -3 # Datafusion - Expected - -84 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(70\)\) \+ Int64\(67\) AS col1" at position 0 and "Int64\(\-64\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - + ( 70 ) + + 67 AS col1, - 84, - 64 AS col1 +---- +-3 +-64 +-84 query I rowsort label-7992 SELECT 65 * - 90 + 59 * - 74 - 52 * + COUNT ( * ) @@ -42097,8 +42621,11 @@ SELECT 20 * ( + 55 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 151 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "max\(DISTINCT Int64\(21\)\) \+ min\(Int64\(76\)\) \+ \(\- sum\(\(\- Int64\(54\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 + COUNT ( * ) col0, MAX ( DISTINCT + 21 ) + + MIN ( + + 76 ) + - ( SUM ( - + 54 ) ) AS col0 +---- +151 +35 query I rowsort label-8012 SELECT COUNT ( * ) / + 11 AS col2 @@ -42298,8 +42825,11 @@ SELECT DISTINCT 45 + + 78 * + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 54 AS col2, + 10 AS col2 +---- +-54 +10 query I rowsort SELECT DISTINCT ( + 80 ) col1 @@ -42396,8 +42926,11 @@ SELECT DISTINCT + 56 AS col2, + 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 60 col0, ( 91 ) col0 +---- +60 +91 query II rowsort label-8070 SELECT ALL + 89 * - 19 AS col2, CAST ( COUNT ( * ) AS INTEGER ) * 28 @@ -43255,8 +43788,11 @@ SELECT DISTINCT 73 + + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col0" at position 0 and "Int64\(\-92\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(DISTINCT Int64\(\-27\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 66 AS col0, - 92 * + COUNT ( * ) + - COUNT ( DISTINCT - 27 ) * + COUNT ( * ) AS col0 +---- +-66 +-93 query I rowsort label-8234 SELECT 68 * + 63 * - CASE + + 47 WHEN MAX ( ALL 72 ) + + SUM ( 57 ) THEN NULL WHEN + - 95 THEN ( + + 93 ) + CAST ( NULL AS INTEGER ) + + 31 * + COALESCE ( + MAX ( ALL 59 ), - - 19 * + 17 + - 3 ) END * 52 @@ -43336,8 +43872,11 @@ SELECT + 96 * 81 - - + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - -483 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "Int64\(21\) \* Int64\(\-23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 AS col0, 21 * - 23 AS col0 +---- +-483 +42 query I rowsort label-8249 SELECT ALL - COALESCE ( 74, - SUM ( + 43 ) - + 88 ) @@ -43715,8 +44254,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) AS col1, 96 * - 2 AS col1 +---- +-1 +-192 query I rowsort label-8322 SELECT - - CASE - - 14 WHEN NULLIF ( 73, - 36 ) * - 65 THEN NULL ELSE - ( - - 68 ) * + COALESCE ( - COUNT ( * ), 31 + - + 60 + + 68, + 38 ) END * - 87 - 78 + + 99 AS col1 @@ -43835,8 +44377,11 @@ SELECT 9 * + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) \+ Int64\(41\) AS col1" at position 0 and "Int64\(59\) \- Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 15 + + + 41 AS col1, 59 - 46 AS col1 +---- +13 +26 query I rowsort label-8344 SELECT + COUNT ( * ) - - + 51 @@ -43972,8 +44517,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 56 / + NULLIF ( + 50, + - ( - ( + COALESCE ( + 98, 33 + - 31 + COUNT ( * ) ) ) ) ) AS col1, NULLIF ( + SUM ( DISTINCT - 33 ), 35 * + COUNT ( * ) + 69 ) AS col1 +---- +-33 +1 query I rowsort label-8370 SELECT CASE - 2 WHEN + + ( 83 ) THEN - NULLIF ( - - 71, + - 4 ) + - + 31 + - ( + ( - 69 ) ) END + + + NULLIF ( 37, + 89 * COUNT ( * ) + - + 58 - - 71 * - 97 + + 70 ) AS col2 @@ -44019,8 +44567,11 @@ SELECT ALL 7 + + 31 + + 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "count\(Int64\(\-36\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 29 AS col1, COUNT ( + - 36 ) AS col1 +---- +1 +29 query II rowsort label-8379 SELECT 9 + + CAST ( + 44 AS INTEGER ), CAST ( + COALESCE ( 60, - - 7 + 82 + + CAST ( NULL AS INTEGER ) + + 17 ) AS INTEGER ) * - 63 + + - COUNT ( * ) * 46 + 67 AS col1 @@ -44059,8 +44610,11 @@ SELECT - NULLIF ( COUNT ( * ), + 90 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4366 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \+ Int64\(48\) \* Int64\(89\) AS col1" at position 0 and "Int64\(42\) \- Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 94 + + 48 * 89 AS col1, 42 - 10 AS col1 +---- +32 +4366 query I rowsort label-8386 SELECT + COALESCE ( + - 52, - + 1 ) + - COUNT ( * ) @@ -44180,8 +44734,11 @@ SELECT + 47 AS col1, - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "CASE Int64\(24\) WHEN CASE CAST\(NULL AS Int32\) WHEN \(\- Int64\(\-47\)\) THEN Int64\(\-31\) WHEN Int64\(\-1\) THEN NULL ELSE NULL END / count\(Int64\(\-32\)\) THEN coalesce\(Int64\(\-31\), Int64\(70\), Int64\(91\)\) END \+ Int64\(\-31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 49 col2, CASE 24 WHEN CASE CAST ( NULL AS INTEGER ) WHEN - - 47 THEN - 31 WHEN ( - 1 ) THEN NULL ELSE NULL END / + + COUNT ( - 32 ) THEN + COALESCE ( - 31, 70, + 91 ) END + + - 31 AS col2 +---- +49 +NULL query I rowsort label-8409 SELECT + 44 * + ( + SUM ( DISTINCT - 67 ) ) @@ -44463,8 +45020,11 @@ SELECT DISTINCT - 51 * + - 96 - - 17 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - -2545 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) / \(\- sum\(Int64\(30\)\)\) AS col0" at position 0 and "Int64\(68\) \+ Int64\(\-39\) \* Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 68 / - SUM ( 30 ) AS col0, + 68 + - 39 * 67 col0 +---- +-2 +-2545 query I rowsort SELECT - 94 * - + 6 + 60 @@ -44612,8 +45172,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 AS col0, - COUNT ( * ) AS col0 +---- +-1 +99 query I rowsort SELECT 28 * - 36 AS col0 @@ -45175,8 +45738,11 @@ SELECT ALL + - 60 * - ( + 16 ) + 11 # 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 "Int64\(\-29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 10 col1, - 29 AS col1 +---- +-10 +-29 query II rowsort SELECT + 88, 60 * 76 AS col2 @@ -45502,8 +46068,11 @@ SELECT ALL 90, - 76 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 "Int64\(\-1\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 1 AS col0, + 35 col0 +---- +-1 +35 query II rowsort SELECT + 34, 13 + + 9 AS col2 @@ -46238,8 +46807,11 @@ SELECT + 67 * - 11 + 66 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 17 AS col2, - 41 AS col2 +---- +-41 +17 query I rowsort SELECT ALL + 49 * + - 15 @@ -46306,8 +46878,11 @@ SELECT - MAX ( ALL 18 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 493 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(\-53\) \+ 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 II valuesort SELECT ALL - 10 * + - 53 + - 37 AS col2, - 55 AS col2 +---- +-55 +493 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -46372,8 +46947,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 340768 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) / Int64\(\-10\) AS col2" at position 0 and "CAST\(\(\- Int64\(\-41\)\) AS Int32\) \* nullif\(Int64\(84\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* max\(DISTINCT Int64\(99\)\) \- Int64\(92\) \- Int64\(48\) \- \(\- Int64\(\-84\)\) \- Int64\(\-36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort 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 +---- +340768 +NULL query II rowsort label-8825 SELECT COUNT ( * ) + + COUNT ( * ) AS col1, 65 @@ -46590,8 +47168,11 @@ SELECT DISTINCT - ( - - 26 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 94 AS col2, 93 AS col2 +---- +93 +94 query I rowsort SELECT DISTINCT + ( 54 ) - + 24 + 96 @@ -46752,8 +47333,11 @@ SELECT + 24 - 13 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 73 AS col1, + 63 AS col1 +---- +-73 +63 query I rowsort SELECT ( + - 91 ) @@ -46804,8 +47388,11 @@ SELECT + 82 * - - ( + + 12 ) + ( + + 39 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 83 AS col2, + 46 AS col2 +---- +46 +83 query I rowsort label-8907 SELECT + COUNT ( * ) + - 81 AS col2 @@ -46832,8 +47419,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 21 AS col1, 88 * + + ( - ( - COUNT ( * ) ) ) AS col1 +---- +21 +88 query I rowsort SELECT - + 4 * - + 11 + + + 22 AS col1 @@ -47149,8 +47739,11 @@ SELECT ALL - - 86 * - 66 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 0 and "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 col1, 41 AS col1 +---- +41 +89 query II rowsort SELECT ALL - 12, - 62 AS col2 @@ -47193,8 +47786,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 71 col0, + 28 - - 41 - - 48 * + COUNT ( * ) * + + 37 col0 +---- +-71 +1845 query I rowsort SELECT ALL + 94 * 87 * - 86 AS col1 @@ -48125,8 +48721,11 @@ SELECT + 73 / - + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-86\)\) AS col2" at position 0 and "Int64\(\-86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 86 AS col2, - 86 AS col2 +---- +-86 +86 query I rowsort label-9163 SELECT ALL - COUNT ( * ) - + 81 * - SUM ( 87 ) + 36 @@ -48467,8 +49066,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 63 / + MIN ( DISTINCT - 30 ) AS col0, - COUNT ( * ) + + 27 AS col0 +---- +2 +26 query I rowsort label-9228 SELECT 38 + + - 61 * + + COUNT ( * ) @@ -48554,8 +49156,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * - - 69 AS col1, 36 AS col1 +---- +36 +69 query I rowsort label-9245 SELECT ALL COUNT ( * ) + - 36 AS col2 @@ -48697,8 +49302,11 @@ SELECT ALL - - NULLIF ( + 47, COUNT ( * ) * - 80 - - - COUNT ( * ) ) + + MAX ( D # 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\) AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 4 AS col1, + ( 43 ) AS col1 +---- +4 +43 query I rowsort label-9272 SELECT DISTINCT - MAX ( ALL - 35 ) + - 46 - - 82 * + 51 + 70 AS col1 @@ -49167,8 +49775,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 42 AS col2, 90 AS col2 +---- +42 +90 query I rowsort SELECT + 51 * 24 col2 @@ -49647,8 +50258,11 @@ SELECT - 48 + - CAST ( 52 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(25\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 AS col0, - COUNT ( * ) + + 25 + COUNT ( * ) AS col0 +---- +25 +8 query II rowsort label-9459 SELECT + 67 AS col0, CAST ( + - 64 AS INTEGER ) @@ -50429,8 +51043,11 @@ SELECT + - CAST ( + - COUNT ( * ) AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 AS col2, COUNT ( * ) AS col2 +---- +1 +51 query I rowsort label-9610 SELECT ALL 89 / - SUM ( + 67 ) @@ -50655,8 +51272,11 @@ SELECT ALL + - ( + 55 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 71 AS col1, + 11 AS col1 +---- +11 +71 query I rowsort label-9654 SELECT ALL COUNT ( * ) * COUNT ( * ) col0 @@ -50996,8 +51616,11 @@ SELECT + MIN ( DISTINCT + + 62 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, 0 AS col0 +---- +0 +1 query I rowsort label-9719 SELECT + + 80 / + 50 AS col2 @@ -51182,8 +51805,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(\-23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 18 - + - ( - + ( + COUNT ( * ) ) ) AS col2, - 23 AS col2 +---- +-23 +17 query I rowsort label-9755 SELECT ALL - 97 * - COUNT ( * ) AS col1 @@ -51208,8 +51834,11 @@ SELECT ALL 17 + + 40 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col0" at position 0 and "Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 AS col0, 45 AS col0 +---- +45 +48 query I rowsort SELECT ALL - 47 + 68 @@ -51635,8 +52264,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\)" at position 0 and "CAST\(NULL AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + CAST ( NULL AS INTEGER ) ), + CAST ( NULL AS INTEGER ) +---- +NULL +NULL query I rowsort label-9841 SELECT ALL ( + + 34 ) * COUNT ( * ) AS col0 @@ -52097,8 +52729,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 107 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \- \(\- Int64\(53\)\) AS col0" at position 0 and "\(\- sum\(Int64\(\-86\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 - - + 53 AS col0, - SUM ( + - 86 ) AS col0 +---- +107 +86 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -52238,8 +52873,11 @@ SELECT - + 78 col2 # 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 col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 col0, 0 AS col0 +---- +0 +14 query I rowsort label-9956 SELECT ALL 40 - - + COUNT ( - 57 ) AS col2 diff --git a/data/sqlite/random/expr/slt_good_76.slt b/data/sqlite/random/expr/slt_good_76.slt index 26d0ffb..0ff50d0 100644 --- a/data/sqlite/random/expr/slt_good_76.slt +++ b/data/sqlite/random/expr/slt_good_76.slt @@ -149,8 +149,11 @@ SELECT + 81, + 89 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3047 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) \* Int64\(67\) \+ Int64\(35\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 46 * 67 + 35 AS col0, 50 AS col0 +---- +-3047 +50 query I rowsort SELECT DISTINCT + 81 col1 @@ -190,8 +193,11 @@ SELECT + ( - ( - 64 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 5 AS col1, + 72 AS col1 +---- +5 +72 query I rowsort SELECT 89 col2 @@ -361,8 +367,11 @@ SELECT ALL SUM ( - 33 ) 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\(55\) AS col2" at position 0 and "Int64\(24\) / Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 55 col2, 24 / 60 AS col2 +---- +0 +55 query I rowsort label-63 SELECT + + MIN ( DISTINCT 96 ) @@ -513,8 +522,11 @@ SELECT DISTINCT + 1 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(19\) / Int64\(23\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) / 19 / + 23 AS col1, COUNT ( * ) col1 +---- +0 +1 query I rowsort label-93 SELECT ALL - ( + ( - COUNT ( * ) ) ) + ( - + 76 ) @@ -1694,8 +1706,11 @@ SELECT ALL - + ( - ( 82 ) ) AS col2 # 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 "Int64\(85\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 AS col0, + 8 AS col0 +---- +8 +85 query I rowsort SELECT ALL 83 - + + 16 @@ -1750,8 +1765,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 42 AS col0, COUNT ( * ) AS col0 +---- +1 +42 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -1874,8 +1892,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, - 19 AS col2 +---- +-19 +1 query I rowsort label-358 SELECT ALL + COUNT ( * ) + + - ( - - CAST ( - CAST ( + 80 AS INTEGER ) AS INTEGER ) ) @@ -3051,8 +3072,11 @@ SELECT DISTINCT + 0 + + MIN ( + 89 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \+ 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 II valuesort SELECT ALL 47 + + - 15 AS col0, + 45 AS col0 +---- +32 +45 query I rowsort SELECT 99 col0 @@ -3082,8 +3106,11 @@ SELECT ALL 40 * 63 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, 55 AS col2 +---- +1 +55 query I rowsort label-591 SELECT ALL SUM ( 17 ) + + - 5 @@ -3888,8 +3915,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-26\)\) AS col2" at position 0 and "Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 26 AS col2, - 25 AS col2 +---- +-25 +26 query I rowsort label-747 SELECT - CAST ( 9 AS INTEGER ) @@ -4249,8 +4279,11 @@ SELECT COUNT ( * ) - + - COUNT ( * ) * - + 80 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 47 * COUNT ( * ) AS col2, COUNT ( * ) AS col2 +---- +-47 +1 query I rowsort SELECT DISTINCT + 18 * ( - 42 ) @@ -4393,8 +4426,11 @@ SELECT ALL - 44 col0 # 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 "\(\- Int64\(\-12\)\) \- Int64\(57\) AS col2" at position 0 and "Int64\(\-6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 12 ) - 57 AS col2, - 6 AS col2 +---- +-45 +-6 query I rowsort label-845 SELECT - + CAST ( 78 AS INTEGER ) AS col0 @@ -4544,8 +4580,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ), - COUNT ( * ) +---- +-1 +-1 query II rowsort label-875 SELECT + CAST ( NULL AS INTEGER ) col0, 76 @@ -4947,8 +4986,11 @@ SELECT DISTINCT + CAST ( - 16 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(DISTINCT Int64\(67\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, + COUNT ( DISTINCT + + 67 ) AS col1 +---- +1 +1 query I rowsort SELECT - 29 * 3 AS col0 @@ -4973,8 +5015,11 @@ SELECT - + 89 + - CAST ( - COUNT ( * ) AS INTEGER ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-97\)\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - ( - 97 ) ) AS col0, 97 AS col0 +---- +97 +97 query I rowsort SELECT - 5 + 13 AS col2 @@ -5085,8 +5130,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ), + COUNT ( * ) +---- +1 +1 query I rowsort SELECT ( - 0 ) AS col1 @@ -5636,8 +5684,11 @@ SELECT + - 59 * 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 AS col0, + COUNT ( * ) AS col0 +---- +1 +91 query I rowsort label-1085 SELECT ALL + MAX ( 81 ) AS col0 @@ -5989,8 +6040,11 @@ SELECT DISTINCT - ( - ( + 37 ) ) AS col0 # 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 "Int64\(\-97\) / Int64\(\-36\) AS col1" at position 0 and "Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 97 / + - 36 AS col1, - 84 AS col1 +---- +-84 +2 query I rowsort SELECT - 24 + - - 18 col1 @@ -6401,8 +6455,11 @@ SELECT + COUNT ( DISTINCT ( - 9 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) / + COUNT ( * ) AS col2, COUNT ( * ) col2 +---- +1 +1 query I rowsort label-1234 SELECT ALL + CAST ( NULL AS INTEGER ) * - 12 * - 5 AS col0 @@ -7901,8 +7958,11 @@ SELECT ALL + COUNT ( * ) + 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 94 col1, COUNT ( * ) + COUNT ( * ) col1 +---- +2 +94 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -8474,8 +8534,11 @@ SELECT DISTINCT - 42 * + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(7\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( + + 7 ) AS col1, ( CAST ( NULL AS INTEGER ) ) AS col1 +---- +1 +NULL query I rowsort label-1637 SELECT - CAST ( 23 AS INTEGER ) AS col1 @@ -8495,8 +8558,11 @@ SELECT ALL - 64 * - ( 46 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(18\) \+ Int64\(41\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) + + + 18 + + 41 AS col1, COUNT ( * ) AS col1 +---- +1 +60 query II rowsort label-1641 SELECT - 19 AS col2, NULLIF ( - 2, + 27 ) - - COUNT ( * ) col0 @@ -8507,8 +8573,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( 11 ) * - COUNT ( * ) AS col2, 39 col2 +---- +-11 +39 query I rowsort label-1643 SELECT COUNT ( * ) - 48 @@ -8916,8 +8985,11 @@ SELECT DISTINCT 35 - - 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col1, 38 AS col1 +---- +38 +NULL query I rowsort label-1722 SELECT + COUNT ( ALL - 47 ) AS col2 @@ -9333,8 +9405,11 @@ SELECT + + 37 AS col2, - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col0" at position 0 and "Int64\(61\) \+ Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 75 AS col0, ( 61 ) + + - 1 AS col0 +---- +60 +75 query I rowsort SELECT ALL 39 + - 42 @@ -9547,14 +9622,20 @@ SELECT ALL MAX ( DISTINCT + - 11 ) # 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 "max\(DISTINCT \(\- Int64\(\-37\)\)\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( DISTINCT - - 37 ) AS col0, 93 col0 +---- +37 +93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, - 16 AS col2 +---- +-16 +1 query I rowsort label-1844 SELECT DISTINCT + COUNT ( * ) * + + 45 @@ -9569,8 +9650,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 AS col0, COUNT ( * ) * 25 AS col0 +---- +17 +25 query I rowsort label-1847 SELECT + - COUNT ( * ) + + + 0 AS col2 @@ -10479,8 +10563,11 @@ SELECT DISTINCT COUNT ( * ) * + 6 + - - COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "sum\(Int64\(92\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 63 AS col0, SUM ( 92 ) AS col0 +---- +63 +92 query I rowsort SELECT + ( - - 94 ) AS col0 @@ -10584,8 +10671,11 @@ SELECT ALL + CAST ( - - 46 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- nullif\(Int64\(41\), Int64\(87\)\)\)\) AS Int32\) AS col1" at position 0 and "\(\- Int64\(75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - - NULLIF ( + 41, + 87 ) AS INTEGER ) AS col1, ( - ( 75 ) ) col1 +---- +-75 +41 query I rowsort SELECT + ( - 16 ) @@ -10651,8 +10741,11 @@ SELECT - 59 - - - 46 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 3321 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col0" at position 0 and "Int64\(81\) \* \(\- Int64\(\-41\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 88 AS col0, + 81 * - ( - 41 ) AS col0 +---- +3321 +88 query II rowsort label-2054 SELECT NULLIF ( + CAST ( NULL AS INTEGER ), - COUNT ( * ) + 3 - + CAST ( NULL AS INTEGER ) * - 92 ) AS col2, - MAX ( ALL + 20 ) AS col1 @@ -11889,8 +11982,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) col0, - COUNT ( * ) + - + 48 AS col0 +---- +-1 +-49 query I rowsort label-2294 SELECT ALL + CAST ( - - 60 AS INTEGER ) / + - 30 @@ -12435,8 +12531,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 col1, + COUNT ( * ) / 63 AS col1 +---- +0 +8 query I rowsort label-2400 SELECT + COUNT ( * ) + - 1 @@ -12825,8 +12924,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\)" at position 0 and "\(\- CAST\(NULL AS Int32\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + + CAST ( NULL AS INTEGER ) ), - CAST ( NULL AS INTEGER ) +---- +NULL +NULL query I rowsort SELECT - + ( + + 81 ) + - 11 AS col1 @@ -13334,8 +13436,11 @@ SELECT ALL + - SUM ( - 23 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( - CAST ( NULL AS INTEGER ) ) col0, - COUNT ( * ) + + 11 AS col0 +---- +10 +NULL query I rowsort label-2571 SELECT - COUNT ( * ) - 55 * 6 AS col0 @@ -13345,8 +13450,11 @@ SELECT - COUNT ( * ) - 55 * 6 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "\(\- Int64\(96\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 78 col1, - ( + 96 ) col1 +---- +-96 +78 query I rowsort label-2573 SELECT + COUNT ( * ) * + 83 AS col0 @@ -14783,8 +14891,11 @@ SELECT + ( + 28 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, 46 AS col1 +---- +1 +46 query I rowsort SELECT ALL - 42 * - 45 @@ -15069,8 +15180,11 @@ SELECT ALL NULLIF ( + + 99, - + 67 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) AS col1 +---- +-1 +NULL query I rowsort SELECT ALL + ( + + 84 ) AS col0 @@ -15335,8 +15449,11 @@ SELECT ALL - 7 + - 95 * SUM ( ALL 67 ) + + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col1" at position 0 and "Int64\(63\) / Int64\(44\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 31 AS col1, 63 / 44 / + COUNT ( * ) AS col1 +---- +1 +31 query I rowsort label-2960 SELECT - 3 + 90 + + CAST ( + - 99 AS INTEGER ) @@ -15464,8 +15581,11 @@ SELECT - 4 * + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(38\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + 38 * + CAST ( NULL AS INTEGER ) AS col2 +---- +1 +NULL query I rowsort label-2985 SELECT ALL SUM ( DISTINCT + - 1 ) @@ -15954,8 +16074,11 @@ SELECT ALL 39 * + + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 72 AS col2, + COUNT ( * ) AS col2 +---- +-72 +1 query I rowsort label-3081 SELECT ALL + + CAST ( MAX ( ALL + + ( - 68 ) ) AS INTEGER ) @@ -16272,8 +16395,11 @@ SELECT + - ( - 67 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) col1, - COUNT ( * ) AS col1 +---- +-1 +NULL query I rowsort label-3142 SELECT ( - + COUNT ( * ) ) - 55 @@ -16326,8 +16452,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - 74 + 2 AS col2, + 32 AS col1, - COUNT ( * ) col1 +---- +-1 +32 +76 query I rowsort SELECT ALL 4 + 96 @@ -17317,8 +17447,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 43 AS col1, - COUNT ( * ) AS col1 +---- +-1 +43 query I rowsort SELECT 56 + - 52 AS col0 @@ -17494,8 +17627,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 72 col1, - COUNT ( * ) AS col1 +---- +-1 +-72 query I rowsort label-3378 SELECT + 13 * COUNT ( ALL + 22 ) AS col0 @@ -17784,8 +17920,11 @@ SELECT ALL 87 * COUNT ( * ) * - 43 # 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\(50\) AS col0" at position 0 and "Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 50 AS col0, 76 AS col0 +---- +50 +76 query I rowsort label-3435 SELECT + + MAX ( DISTINCT - 13 ) @@ -17884,8 +18023,11 @@ SELECT DISTINCT 26, - 72 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-75\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 75 AS col0, ( + COUNT ( * ) ) AS col0 +---- +1 +75 query I rowsort label-3454 SELECT + CAST ( NULL AS INTEGER ) + + 0 * 76 col2 @@ -18849,8 +18991,11 @@ SELECT DISTINCT - ( 59 ) * + 97 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 83 col0, 17 AS col0 +---- +-83 +17 query I rowsort label-3642 SELECT ALL NULLIF ( + COUNT ( * ), - COUNT ( * ) ) AS col2 @@ -19155,8 +19300,11 @@ SELECT DISTINCT + 29 + 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 149 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \+ \(\- CAST\(\(\- Int64\(94\)\) AS Int32\)\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 55 + + - CAST ( - + 94 AS INTEGER ) col1, 63 AS col1 +---- +149 +63 query I rowsort label-3701 SELECT ALL + CAST ( + MIN ( - 38 ) AS INTEGER ) @@ -19339,8 +19487,11 @@ SELECT 56 AS col0, 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col0" at position 0 and "Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 85 AS col0, - 27 AS col0 +---- +-27 +85 query I rowsort SELECT + 60 col1 @@ -19587,8 +19738,11 @@ SELECT DISTINCT - CAST ( - 86 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 col0, 38 AS col0 +---- +38 +82 query I rowsort SELECT DISTINCT - ( 90 ) @@ -20703,8 +20857,11 @@ SELECT ALL 58 * - 89 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-97\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) * - 97 AS col0, CAST ( NULL AS INTEGER ) AS col0 +---- +97 +NULL query I rowsort SELECT + 99 * + 66 AS col1 @@ -21207,8 +21364,11 @@ SELECT ALL + COUNT ( * ) * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 4 col2, COUNT ( * ) AS col2 +---- +-4 +1 query I rowsort SELECT DISTINCT + 17 col1 @@ -21586,8 +21746,11 @@ SELECT DISTINCT - 86 * - - 96 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) col0, - 80 AS col0 +---- +-80 +NULL query I rowsort SELECT - ( - + 21 ) @@ -23133,8 +23296,11 @@ SELECT DISTINCT - 43 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 AS col2, 23 col2 +---- +23 +61 query I rowsort label-4471 SELECT ALL - COUNT ( * ) * - 81 AS col1 @@ -23960,8 +24126,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) / - + 85 AS col2, 60 AS col2 +---- +0 +60 query I rowsort label-4631 SELECT NULLIF ( - COUNT ( * ), - - CAST ( 84 AS INTEGER ) ) AS col1 @@ -24064,8 +24233,11 @@ SELECT + 40 * - + COUNT ( * ) - - 22 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "Int64\(60\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4 AS col2, + 60 + + COUNT ( * ) AS col2 +---- +4 +61 query I rowsort SELECT DISTINCT ( + ( + 8 ) ) @@ -24141,8 +24313,11 @@ SELECT + ( - 71 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col1, COUNT ( * ) AS col1 +---- +1 +1 query I rowsort label-4666 SELECT COUNT ( ( 26 ) ) AS col2 @@ -25403,8 +25578,11 @@ SELECT - 66 - - COUNT ( * ) # 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 col2" at position 0 and "Int64\(\-59\) / Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - + 93 ) AS col2, - 59 / + 65 AS col2 +---- +-93 +0 query I rowsort label-4908 SELECT DISTINCT + COUNT ( * ) * + 2 @@ -25792,8 +25970,11 @@ SELECT ALL - 49 * + ( + 17 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 41 AS col1, 66 AS col1 +---- +41 +66 query I rowsort SELECT DISTINCT + ( - 80 ) AS col1 @@ -26095,8 +26276,11 @@ SELECT - 19 + 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) col2, 44 col2 +---- +1 +44 query I rowsort label-5044 SELECT ALL - 4 * - COUNT ( * ) AS col0 @@ -26111,8 +26295,11 @@ SELECT + COUNT ( ALL + + 28 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, - 8 AS col2 +---- +-8 +1 query I rowsort label-5047 SELECT ALL COUNT ( * ) * - 58 AS col2 @@ -26137,8 +26324,11 @@ SELECT DISTINCT - ( - + 80 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2852 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* Int64\(31\) AS col1" at position 0 and "Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 * 31 AS col1, - 62 AS col1 +---- +-62 +2852 query I rowsort SELECT DISTINCT + - ( - 97 ) * - 83 @@ -27099,8 +27289,11 @@ SELECT - COUNT ( * ) + - 88 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 5 col2, 67 AS col2 +---- +-5 +67 query I rowsort label-5237 SELECT ALL COUNT ( * ) + + + 72 @@ -27833,8 +28026,11 @@ SELECT ALL 44 * + + COUNT ( * ) * - + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, + COUNT ( * ) AS col2 +---- +-1 +1 query I rowsort label-5380 SELECT + MIN ( DISTINCT + NULLIF ( 6, 20 ) ) AS col1 @@ -28271,8 +28467,11 @@ SELECT ( 73 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 3198 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "Int64\(78\) \* Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 38 AS col0, 78 * + + 41 col0 +---- +3198 +38 query I rowsort label-5465 SELECT DISTINCT - SUM ( ALL + 73 ) AS col2 @@ -28778,8 +28977,11 @@ SELECT COUNT ( * ) - - 30 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-58\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 58 AS col0, COUNT ( * ) AS col0 +---- +1 +58 query I rowsort SELECT 66 * - 78 AS col1 @@ -29078,8 +29280,11 @@ SELECT ALL ( 82 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CAST\(NULL AS Int32\)\) AS Float64\) AS col1" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT CAST ( - + CAST ( NULL AS INTEGER ) AS FLOAT8 ) AS col1, - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 +---- +1 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -29373,8 +29578,11 @@ SELECT ALL COUNT ( ALL 1 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 3 AS col1, + COUNT ( * ) AS col1 +---- +-3 +1 query I rowsort label-5679 SELECT 93 * - COUNT ( * ) AS col2 @@ -29477,8 +29685,11 @@ 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 "Int64\(\-67\) / Int64\(\-50\) AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 67 / + - 50 AS col1, + 40 AS col1 +---- +1 +40 query I rowsort label-5699 SELECT - + ( COUNT ( * ) ) + CAST ( NULL AS INTEGER ) + - 76 @@ -30111,8 +30322,11 @@ SELECT - 59 * 7 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(62\) \+ CAST\(NULL AS Float64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT COUNT ( * ) AS col1, + 62 + + CAST ( NULL AS FLOAT8 ) AS col1 +---- +1 +NULL query I rowsort SELECT ALL 64 + 79 AS col0 @@ -30128,8 +30342,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, - 46 AS col2 +---- +-1 +-46 query I rowsort SELECT 87 - + 71 @@ -30543,8 +30760,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ), ( + - COUNT ( * ) ) +---- +-1 +-1 query I rowsort label-5905 SELECT + 91 - + COUNT ( * ) AS col1 @@ -30911,8 +31131,11 @@ SELECT 1, + 60 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 141 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(93\) \+ \(\- sum\(Int64\(\-48\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - CAST ( NULL AS INTEGER ) AS col0, + 93 + - SUM ( + - 48 ) AS col0 +---- +141 +NULL query I rowsort SELECT - + ( + 3 ) col2 @@ -31509,8 +31732,11 @@ SELECT ALL 54, - 25 * + + 32 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col0" at position 0 and "\(\- Int64\(14\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 96 AS col0, - ( 14 ) AS col0 +---- +-14 +-96 query I rowsort label-6093 SELECT + 73 * COUNT ( * ) AS col2 @@ -31622,8 +31848,11 @@ SELECT - COUNT ( * ) * - ( 64 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-48\) / Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col0, - 48 / + 33 AS col0 +---- +-1 +1 query I rowsort label-6115 SELECT + - 48 * + + COUNT ( * ) AS col0 @@ -33086,8 +33315,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 63 AS col1, - COUNT ( * ) col1 +---- +-1 +63 query I rowsort label-6401 SELECT ALL - COUNT ( * ) * - - 53 AS col1 @@ -33538,8 +33770,11 @@ SELECT DISTINCT - 91 + + - 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col1" at position 0 and "Int64\(87\) \+ \(\- sum\(DISTINCT Int64\(98\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 AS col1, 87 + - SUM ( DISTINCT + 98 ) col1 +---- +-11 +37 query I rowsort label-6488 SELECT ALL COUNT ( * ) * - 83 + - + 73 AS col2 @@ -34346,8 +34581,11 @@ SELECT 39 / + ( + 68 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 44 col0, + 6 AS col0 +---- +44 +6 query I rowsort SELECT 83 * 51 @@ -34871,8 +35109,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL ( + CAST ( NULL AS FLOAT8 ) ) AS col1, - 43 * - COUNT ( * ) AS col1 +---- +43 +NULL query I rowsort label-6745 SELECT - 15 / - NULLIF ( - 22, + - CAST ( NULL AS INTEGER ) ) col1 @@ -35186,8 +35427,11 @@ SELECT ( - + 69 ) * + + 27 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col1" at position 0 and "min\(\(\- Int64\(45\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 42 AS col1, + MIN ( ALL + ( - + 45 ) ) AS col1 +---- +-42 +-45 query I rowsort label-6805 SELECT - + COUNT ( * ) * 69 + - 74 @@ -35460,8 +35704,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 AS col1, + MIN ( + 4 ) + - + COUNT ( * ) - - + COUNT ( * ) AS col1 +---- +4 +99 query I rowsort SELECT - ( - 30 ) - 1 @@ -36209,8 +36456,11 @@ SELECT ALL ( + ( - - COUNT ( * ) ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, + 35 col0 +---- +1 +35 query I rowsort label-7004 SELECT + COUNT ( * ) * 51 + - COUNT ( * ) + + 61 AS col0 @@ -36359,8 +36609,11 @@ SELECT DISTINCT + CAST ( - 33 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(4\)\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 4 AS col0, 97 AS col0 +---- +-4 +97 query II rowsort label-7032 SELECT DISTINCT + COUNT ( * ) * - 32 AS col2, + 65 @@ -37027,8 +37280,11 @@ SELECT 56 / - 74 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) AS col2" at position 0 and "Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 7 AS col2, + 76 AS col2 +---- +-7 +76 query I rowsort label-7159 SELECT ALL - - COUNT ( ALL + 88 ) @@ -37632,8 +37888,11 @@ SELECT COUNT ( * ) AS col0, + 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, - 27 AS col0 +---- +-27 +1 query I rowsort SELECT ALL - + ( - + 3 ) @@ -37729,8 +37988,11 @@ SELECT DISTINCT - 85, 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2380 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(70\)\) \* Int64\(34\) AS col1" at position 0 and "Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( 70 ) * + + 34 AS col1, - 20 AS col1 +---- +-20 +2380 query I rowsort label-7294 SELECT ALL 36 * - COUNT ( * ) @@ -38167,8 +38429,11 @@ SELECT + 45 + + + 90 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 18 AS col2, COUNT ( * ) AS col2 +---- +1 +18 query I rowsort label-7379 SELECT + COALESCE ( - COUNT ( * ), - 48 * - COUNT ( * ) * 68 * + - 24 ) @@ -38463,8 +38728,11 @@ 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\(1\)\) AS count\(\*\), Int64\(99\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 52 AS col1, + COALESCE ( + + COUNT ( * ), + 99 ) AS col1 +---- +-52 +1 query I rowsort SELECT ALL + - 44 * - 70 + - 24 @@ -38543,8 +38811,11 @@ SELECT 93 + - 28 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col1" at position 0 and "Int64\(61\) \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 14 AS col1, + 61 + CAST ( NULL AS INTEGER ) AS col1 +---- +14 +NULL query I rowsort label-7451 SELECT 36 * 95 + + COUNT ( * ) AS col0 @@ -38596,8 +38867,11 @@ SELECT 88 AS col0, 7 AS col1, + 56 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "Int64\(24\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 17 AS col0, + 24 * + COUNT ( * ) col0 +---- +17 +24 query I rowsort label-7461 SELECT ALL - + 54 + + COUNT ( * ) * - 61 AS col1 @@ -39689,8 +39963,11 @@ SELECT ALL ( + 58 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 2312 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(3\)\) \+ Int64\(73\) AS col1" at position 0 and "Int64\(68\) \* \(\- Int64\(\-34\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 3 + + 73 AS col1, + 68 * - - 34 AS col1 +---- +2312 +70 query II rowsort label-7674 SELECT + - COUNT ( * ) AS col1, - 78 @@ -40014,8 +40291,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * 63 AS col0, 27 AS col0 +---- +27 +63 query I rowsort label-7736 SELECT - COUNT ( * ) + + 15 AS col2 @@ -40131,8 +40411,11 @@ SELECT + ( + 45 ), 50 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ \(\- Int64\(\-17\)\) AS col1" at position 0 and "Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4 + - - 17 AS col1, - 94 col1 +---- +-94 +21 query I rowsort label-7758 SELECT DISTINCT COUNT ( * ) * + 45 @@ -40400,8 +40683,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 45 AS col0, + COUNT ( * ) AS col0 +---- +-45 +1 query I rowsort SELECT DISTINCT + 93 - - + 96 AS col2 @@ -40615,8 +40901,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 27 ) AS col2, 89 * + - COUNT ( * ) AS col2 +---- +-27 +-89 query I rowsort label-7852 SELECT + + COUNT ( * ) * - 29 + + + 51 AS col1 @@ -40636,8 +40925,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) AS col2 +---- +1 +NULL query I rowsort label-7856 SELECT + ( + - COUNT ( * ) ) * COUNT ( * ) AS col0 @@ -41250,8 +41542,11 @@ SELECT DISTINCT MIN ( DISTINCT 69 ) * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- CAST\(NULL AS Int32\)\)\) AS Int32\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + - - COUNT ( * ) AS col0, - ( + COUNT ( * ) ) col0 +---- +-1 +NULL query I rowsort label-7973 SELECT ALL + + 57 + - - COUNT ( * ) @@ -41618,8 +41913,11 @@ SELECT DISTINCT 82 * 77 / + + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \- Int64\(1\) AS col0" at position 0 and "Int64\(\-34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 - ( 1 ) AS col0, - 34 AS col0 +---- +-34 +16 query I rowsort SELECT ( + 51 ) * + 31 AS col2 @@ -42028,8 +42326,11 @@ SELECT ( 95 ) + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 18 / + COUNT ( * ) AS col2, + 15 col2 +---- +15 +18 query I rowsort SELECT - - ( 75 ) AS col1 @@ -43136,8 +43437,11 @@ SELECT ALL - ( 29 ) # 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\(\-55\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 AS col1, + 97 AS col1 +---- +-55 +97 query I rowsort label-8339 SELECT + ( - 14 ) / - + 53 @@ -43442,8 +43746,11 @@ SELECT 73 / - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col0, - 72 AS col0 +---- +-72 +1 query I rowsort label-8398 SELECT ALL - CAST ( NULL AS INTEGER ) * + 74 @@ -45298,8 +45605,11 @@ SELECT ALL + COUNT ( * ) * + + COALESCE ( - 83, + 77 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col0" at position 0 and "Int64\(\-30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 col0, - 30 AS col0 +---- +-30 +-48 query I rowsort label-8756 SELECT ALL + 99 * + CAST ( NULL AS INTEGER ) @@ -46260,8 +46570,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) - + 46 AS col2 +---- +-47 +NULL query I rowsort label-8943 SELECT DISTINCT COUNT ( * ) + - 24 AS col1 @@ -46604,8 +46917,11 @@ NULL # 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\(65\) AS col0" at position 0 and "Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 65 AS col0, ( + - 66 ) AS col0 +---- +-66 +65 query I rowsort label-9009 SELECT ALL ( - COUNT ( * ) ) * ( + + 90 ) AS col0 @@ -47180,8 +47496,11 @@ SELECT - SUM ( ALL + 71 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col0, + CAST ( NULL AS INTEGER ) AS col0 +---- +1 +NULL query I rowsort label-9120 SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 63 @@ -47257,8 +47576,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 88 col2, + COUNT ( * ) AS col2 +---- +-88 +1 query II rowsort label-9135 SELECT - 59 AS col1, COUNT ( * ) @@ -47456,8 +47778,11 @@ SELECT ALL - 37 * - COUNT ( * ) - + - 74 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 AS col0, + ( 56 ) AS col0 +---- +32 +56 query I rowsort label-9173 SELECT + 59 - COUNT ( + 79 ) @@ -48113,8 +48438,11 @@ SELECT ALL - 58 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \- CAST\(Int64\(20\) AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 40 - + CAST ( 20 AS INTEGER ) * + COUNT ( * ) AS col0, 40 AS col0 +---- +-60 +40 query I rowsort SELECT - 37 + + + 61 AS col2 @@ -48572,8 +48900,11 @@ SELECT DISTINCT 12 + + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-28\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 71 + + COUNT ( * ) * - - 28 AS col0, COUNT ( * ) AS col0 +---- +1 +99 query I rowsort SELECT 79 + + ( - 11 ) @@ -48894,8 +49225,11 @@ SELECT - MAX ( ALL 84 ) / - ( + 59 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) / Int64\(71\) \+ Int64\(\-80\) AS col2" at position 0 and "Int64\(92\) \- \(\- \(\- CASE Int64\(72\) WHEN Int64\(\-27\) THEN Int64\(\-98\) WHEN CAST\(NULL AS Int32\) \+ \(\- nullif\(Int64\(93\), Int64\(\-11\) \* Int64\(\-62\)\)\) THEN NULL ELSE NULL END\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 53 / + 71 + - 80 AS col2, 92 - - - ( + CASE + 72 WHEN - 27 THEN - 98 WHEN CAST ( NULL AS INTEGER ) + + - NULLIF ( + 93, - 11 * - 62 ) THEN NULL ELSE NULL END ) AS col2 +---- +-80 +NULL query I rowsort label-9447 SELECT + 2 + - - COUNT ( * ) * + 75 AS col2 @@ -49152,8 +49486,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 18 * - CASE 70 WHEN + - 19 THEN NULL ELSE + 94 END * + + 68 * - 67 * + 12 - - 4 * 56 + 10 AS col0, - 83 / - - COUNT ( * ) AS col0 +---- +-83 +92505258 query I rowsort SELECT ALL ( + + 31 ) col2 @@ -49275,8 +49612,11 @@ SELECT - 23 / + 98 # 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 "Int64\(34\) / Int64\(\-33\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 34 / - 33 AS col2, 97 col2 +---- +-1 +97 query I rowsort label-9520 SELECT + + ( COALESCE ( - 79, - 37 + + COUNT ( DISTINCT - 84 ) ) ) * - 31 * - 94 @@ -49828,8 +50168,11 @@ SELECT DISTINCT + 31 + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(33\), Int64\(75\) \* Int64\(1\)\) AS col1" at position 0 and "\(\- CAST\(Int64\(\-53\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL NULLIF ( 33, + 75 * 1 ) AS col1, - CAST ( - 53 AS INTEGER ) AS col1 +---- +33 +53 query II rowsort SELECT 26, 14 AS col2 @@ -49867,8 +50210,12 @@ NULL # Datafusion - Expected - 13 # Datafusion - Expected - -1260 # 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 "Int64\(0\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 13 AS col0, - MIN ( 18 ) * - - 70 AS col2, + - 0 AS col0 +---- +-1260 +0 +13 query I rowsort SELECT + 23 + - - 24 col0 @@ -50245,8 +50592,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(\-68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 - 41 * + - 48 col2, COUNT ( * ) - - 68 col2 +---- +2026 +69 query II rowsort SELECT ALL - 47 col0, 28 * + - 97 + - - 14 @@ -50415,8 +50765,11 @@ SELECT DISTINCT 53 - 5 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "min\(Int64\(\-92\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 95 AS col2, MIN ( ALL - 92 ) AS col2 +---- +-92 +95 query I rowsort SELECT - 94 * - + 16 + - ( 4 ) + + ( + 52 ) @@ -51184,8 +51537,11 @@ SELECT - 78 / + + 37 + + ( 56 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(11\)\) AS col2" at position 0 and "Int64\(30\) \+ \(\- Int64\(\-73\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( ALL + ( + 11 ) ) AS col2, 30 + - - 73 col2 +---- +103 +11 query II rowsort SELECT ALL - 87 AS col0, + 11 @@ -51346,8 +51702,11 @@ SELECT DISTINCT COALESCE ( - COUNT ( * ), - 67 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -485 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* \(\- Int64\(5\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 97 * - + 5 AS col0, CAST ( NULL AS INTEGER ) AS col0 +---- +-485 +NULL query I rowsort SELECT - 72 + + 56 @@ -51490,8 +51849,11 @@ SELECT ALL ( 41 ) * 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-32\)\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* \(\- Int64\(75\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 32 AS col2, CAST ( NULL AS INTEGER ) * - + 75 AS col2 +---- +32 +NULL query I rowsort SELECT + 63 + + 54 AS col2 @@ -51548,8 +51910,12 @@ SELECT DISTINCT + 66 + - + 35 + - + 75 * - 25 # Datafusion - Expected - 152 # Datafusion - Expected - 78 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \+ Int64\(95\) AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 57 + + 95 AS col1, 78 AS col1, - 56 AS col0 +---- +-56 +152 +78 query I rowsort label-9950 SELECT 60 * + CASE 67 WHEN + + 1 - - - 77 + COALESCE ( + MIN ( - 54 ), + + ( + NULLIF ( 84, 9 - 72 ) ) ) * 51 + + 57 - + 44 + + 71 THEN NULL WHEN + - ( - 3 ) THEN + + CAST ( NULL AS INTEGER ) * + 52 * - 0 + 63 ELSE - - 23 * COUNT ( * ) + - COALESCE ( - - COALESCE ( 42, 22 + + 99 ), + NULLIF ( ( 15 ), + 40 ) * 73 ) END diff --git a/data/sqlite/random/expr/slt_good_77.slt b/data/sqlite/random/expr/slt_good_77.slt index 5c055d8..b2de9c0 100644 --- a/data/sqlite/random/expr/slt_good_77.slt +++ b/data/sqlite/random/expr/slt_good_77.slt @@ -311,8 +311,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 +---- +1 +NULL query I rowsort label-52 SELECT ALL - SUM ( ALL - 70 ) * 25 + + - 81 AS col2 @@ -342,8 +345,11 @@ SELECT ALL - 33 / + 10 + - 12 * 19 * - + 85 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -10288445 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "\(\- Int64\(73\)\) \* \(\- \(\- Int64\(\-27\)\)\) \* Int64\(\-58\) \* Int64\(90\) \+ min\(Int64\(91\)\) \+ Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 AS col0, + ( - + 73 ) * - - ( - 27 ) * - 58 * 90 + + MIN ( 91 ) + 84 AS col0 +---- +-10288445 +86 query I rowsort label-58 SELECT ALL - CAST ( + + 61 AS INTEGER ) AS col2 @@ -472,8 +478,11 @@ SELECT ALL - + 34 + + - 72 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col0" at position 0 and "Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 65 AS col0, 52 AS col0 +---- +-65 +52 query I rowsort SELECT ALL - + 9 + - + ( NULLIF ( 37, + 92 ) ) @@ -1236,8 +1245,11 @@ SELECT 76 + + - 68 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col2" at position 0 and "Int64\(\-53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 21 AS col2, - 53 AS col2 +---- +-53 +21 query I rowsort SELECT ALL - 27 + - - 75 AS col0 @@ -1358,8 +1370,11 @@ SELECT ALL - - 88 + - 14 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 5429 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col2" at position 0 and "Int64\(\-89\) \* Int64\(\-61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 9 AS col2, - 89 * - 61 AS col2 +---- +-9 +5429 query I rowsort SELECT - 29 - - 10 + - 39 @@ -1484,8 +1499,11 @@ SELECT + 74 / 94 * - + 81 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3132 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* max\(DISTINCT Int64\(\-87\)\) AS col0" at position 0 and "Int64\(\-46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 36 * MAX ( DISTINCT - 87 ) AS col0, - 46 col0 +---- +-46 +3132 query I rowsort SELECT + - ( + - 52 ) AS col1 @@ -2138,8 +2156,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - -2281400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(84\) \+ \(\- max\(DISTINCT Int64\(52\)\)\) AS col0" at position 0 and "Int64\(\-50\) \* \(\- Int64\(\-61\)\) \* \(\- CAST\(\(\- max\(Int64\(17\)\)\) AS Int32\)\) \* Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) / + + 84 + - MAX ( DISTINCT 52 ) col0, - 50 * - - 61 * - CAST ( - MAX ( ALL + 17 ) AS INTEGER ) * + 44 AS col0 +---- +-2281400 +-52 query I rowsort label-401 SELECT ALL COUNT ( ALL 52 ) AS col0 @@ -2180,8 +2201,12 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(81\) \+ Int64\(1\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + + 95 col1, - 32 + - 66 + + - 94 * + - MAX ( - ( + 31 ) ), - COUNT ( * ) + + 81 + + ( 1 ) AS col1 +---- +-3012 +81 +95 query I rowsort label-409 SELECT - 26 * + 6 - CAST ( + 44 AS INTEGER ) + + 23 * + 41 + NULLIF ( 32, - 89 + + 59 + + 1 * 18 ) @@ -2354,8 +2379,12 @@ SELECT - MIN ( DISTINCT - - 8 ) + - 51 col0 # Datafusion - Expected - 0 # Datafusion - Expected - 52 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) / Int64\(78\) AS col0" at position 0 and "Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort SELECT - 5 / + 78 AS col0, + 52 col0, + CASE - COALESCE ( + COUNT ( * ), + - 80 + - 79, + 11 + - 10 / 32 - - COUNT ( * ) ) WHEN - COUNT ( * ) * + 47 THEN - AVG ( DISTINCT 32 ) ELSE NULL END col0 +---- +0 +52 +NULL query II rowsort label-443 SELECT DISTINCT + ( - 57 ) AS col1, + 20 * + + 78 * + 5 + 77 - + - 49 + + + CASE - + 75 WHEN - CAST ( NULL AS INTEGER ) + + 81 THEN - 92 / + COUNT ( * ) END @@ -2559,8 +2588,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 AS col1, COUNT ( * ) - 85 col1 +---- +-84 +1 query I rowsort label-482 SELECT ALL - - 63 / - 24 @@ -3039,8 +3071,11 @@ SELECT 24, 97 * - 27 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 col0" at position 0 and "Int64\(29\) / Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 35 AS col0, 29 / + 24 AS col0 +---- +-35 +1 query I rowsort SELECT ALL + 67 + + 83 + ( + NULLIF ( 93, - ( - 38 ) / + 63 ) ) @@ -3093,8 +3128,11 @@ SELECT ( 42 ) / - 53 * 43, 66 + + + 56 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 66 col1, + 65 AS col1 +---- +-66 +65 query II rowsort label-583 SELECT ALL 88, 32 + + CAST ( + - COUNT ( * ) AS INTEGER ) + - + 8 AS col2 @@ -3243,8 +3281,11 @@ SELECT ALL 80 * - NULLIF ( - + 6, + COUNT ( * ) ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 216 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(54\) \+ Int64\(\-54\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 5 * + 54 + - 54 AS col2, + 41 AS col2 +---- +216 +41 query I rowsort label-611 SELECT + COUNT ( - 70 ) @@ -3333,8 +3374,11 @@ SELECT DISTINCT 57 * 10, 82 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ \(\- CASE Int64\(2\) WHEN Int64\(17\) THEN \(\- CAST\(\(\- Int64\(50\)\) AS Int32\)\) WHEN Int64\(\-76\) THEN \(\- \(\- Int64\(45\)\)\) ELSE Int64\(38\) END\) AS col0" at position 0 and "CAST\(Int64\(47\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 + - CASE + + 2 WHEN + + 17 THEN - CAST ( - + 50 AS INTEGER ) WHEN + - 76 THEN - ( - + 45 ) ELSE + 38 END AS col0, CAST ( + + 47 AS INTEGER ) col0 +---- +-6 +47 query II rowsort label-628 SELECT - 19 + + 84 col1, + SUM ( + + 81 ) + - + 23 @@ -3383,8 +3427,12 @@ NULL # Datafusion - Expected - 5636 # Datafusion - Expected - 31 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \+ Int64\(2\) \+ Int64\(92\) \* Int64\(62\) AS col0" at position 0 and "Int64\(99\) \+ \(\- Int64\(68\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 70 + + 2 + + 92 * + 62 AS col0, + 99 + - + 68 AS col0, + 29 / + ( - 5 ) / - COUNT ( - 28 ) + 66 - - - CAST ( NULL AS INTEGER ) +---- +31 +5636 +NULL query II rowsort SELECT - 76 - - + ( 71 ) AS col0, 33 @@ -3497,8 +3545,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 185525 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* \(\- nullif\(Int64\(31\), Int64\(37\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) / CAST\(NULL AS Int32\) \* \(\- Int64\(49\)\) AS col1" at position 0 and "Int64\(70\) \* \(\- min\(Int64\(\-50\)\)\) \* Int64\(53\) \+ Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 36 * - NULLIF ( + 31, + ( 37 ) ) + + + COUNT ( * ) / CAST ( NULL AS INTEGER ) * - + 49 col1, 70 * - + MIN ( - 50 ) * + 53 + 25 AS col1 +---- +185525 +NULL query II rowsort SELECT ALL 24, ( + 17 ) - + 0 AS col2 @@ -3509,8 +3560,11 @@ SELECT ALL 24, ( + 17 ) - + 0 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 35 AS col0, 18 AS col0 +---- +-35 +18 query I rowsort label-661 SELECT DISTINCT + 8 / - ( + 69 ) @@ -3671,8 +3725,11 @@ SELECT ALL + 7 * + + COALESCE ( + 32, - 59 * + 22 + + - COUNT ( * ) * + ( + 73 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-67\)\)\) AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + MIN ( + - 67 ) AS col2, + 74 col2 +---- +67 +74 query II rowsort SELECT DISTINCT - 79 * 47 + + 64 * + 73 AS col0, - 66 @@ -3723,8 +3780,11 @@ SELECT 83 + COUNT ( * ) * - COUNT ( * ) * + 45 * - 1 * 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 80 col1, 90 AS col1 +---- +-80 +90 query I rowsort label-701 SELECT ALL + COALESCE ( - 18, - 30, 88 ) - - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) @@ -3750,8 +3810,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL NULLIF ( - - 53, + 37 ) - + + COALESCE ( - 82, + + 20, - 0 ) - - - COUNT ( * ) AS col0, 47 AS col0 +---- +134 +47 query I rowsort label-706 SELECT CASE ( 56 ) WHEN MIN ( - 86 ) THEN 79 END + 29 @@ -4276,8 +4339,11 @@ SELECT DISTINCT - MAX ( + 66 ) * - NULLIF ( 58, - 73 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "Int64\(\-41\) \+ count\(Int64\(\-19\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 78 AS col2, - 41 + COUNT ( - 19 ) col2 +---- +-40 +78 query I rowsort SELECT ALL 92 * 68 @@ -4297,8 +4363,11 @@ SELECT 11 - + + COUNT ( * ) * - COALESCE ( - ( - NULLIF ( + ( + 76 ), + 22 * - N # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 87 AS col0, 61 AS col0 +---- +61 +87 query I rowsort label-813 SELECT 27 / - - CASE 56 WHEN 92 THEN NULL ELSE CAST ( NULL AS INTEGER ) + + 14 END / - 7 @@ -4708,8 +4777,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col1, ( + - 83 ) * - 78 AS col1 +---- +-1 +6474 query I rowsort label-891 SELECT - + 2 * - + COUNT ( * ) AS col0 @@ -4879,8 +4951,11 @@ SELECT + - 31 AS col0, COUNT ( DISTINCT - 22 ) * + 30 * + 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4672 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-86\)\) \* Int64\(\-47\) \+ Int64\(15\) \* Int64\(\-42\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 86 * - 47 + + 15 * - 42 AS col2, 78 AS col2 +---- +-4672 +78 query II rowsort SELECT ALL - 75 * 66, 0 AS col0 @@ -4972,8 +5047,11 @@ SELECT - 54 * MIN ( - 50 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2600 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* \(\- Int64\(40\)\) AS col2" at position 0 and "\(\- coalesce\(Int64\(\-3\), Int64\(\-35\) / Int64\(4\), CAST\(Int64\(18\) AS Int32\) \+ Int64\(18\)\)\) \+ \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(87\) THEN Int64\(44\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 65 * - + 40 AS col2, - COALESCE ( + - 3, - 35 / + + 4, CAST ( + 18 AS INTEGER ) + 18 ) + - CASE COUNT ( * ) WHEN 87 THEN 44 END AS col2 +---- +-2600 +NULL query I rowsort label-941 SELECT DISTINCT COUNT ( * ) + + 45 @@ -5239,8 +5317,11 @@ NULL # 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 "Int64\(\-68\) AS col1" at position 0 and "Int64\(\-41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 68 AS col1, - 41 AS col1 +---- +-41 +-68 query I rowsort label-993 SELECT ALL - CAST ( + 4 AS INTEGER ) @@ -5425,8 +5506,11 @@ SELECT ( 52 ), 71 + + 47 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3780 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \* Int64\(\-42\) AS col1" at position 0 and "Int64\(\-11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 * - 42 AS col1, - 11 AS col1 +---- +-11 +3780 query II rowsort label-1029 SELECT + 60 * 66 AS col2, 68 - - NULLIF ( 68, - SUM ( + - 67 ) ) @@ -5674,8 +5758,11 @@ SELECT DISTINCT 99 / - ( + 8 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 67 AS col0, + 83 AS col0 +---- +67 +83 query I rowsort label-1077 SELECT 20 / MAX ( - 67 ) AS col0 @@ -5852,8 +5939,11 @@ SELECT DISTINCT 11 * - COUNT ( - + CAST ( - 50 AS FLOAT8 ) ) * - 25 AS col0, + 4 # 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 "sum\(DISTINCT Int64\(\-3\)\) AS col1" at position 0 and "Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( DISTINCT - 3 ) AS col1, - 94 AS col1 +---- +-3 +-94 query I rowsort label-1110 SELECT ALL - NULLIF ( - 59, + ( 72 ) ) * - COUNT ( - 93 ) * + - 57 @@ -6167,8 +6257,11 @@ SELECT + 99 + + 69 + - COALESCE ( - - 71, + 78 + - - ( - + 1 ) ) - + 14 * - - CO # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 42 ) AS col2, ( + 65 ) AS col2 +---- +42 +65 query I rowsort label-1171 SELECT 42 * COUNT ( * ) + - 17 + 82 * - + 40 + 70 AS col2 @@ -6496,8 +6589,11 @@ SELECT + 49, 37 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- Int64\(18\)\)\)\) AS col1" at position 0 and "Int64\(3\) \+ sum\(Int64\(\-95\)\) \* Int64\(\-67\) \- CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( - + 18 ) AS col1, 3 + SUM ( ALL - 95 ) * - 67 - + CAST ( NULL AS INTEGER ) AS col1 +---- +-1 +NULL query I rowsort label-1232 SELECT ALL + COUNT ( * ) * - + 84 + - 13 - - 20 * + + 10 @@ -6515,8 +6611,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1850 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(64\) \- Int64\(19\) \* \(\- Int64\(94\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, + ( + 64 ) - + 19 * - + 94 AS col0 +---- +1 +1850 query I rowsort label-1235 SELECT 61 * 14 - COUNT ( * ) @@ -6676,8 +6775,11 @@ SELECT + - 23 + + MIN ( DISTINCT - 95 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(16\)\) AS col1" at position 0 and "Int64\(2\) \+ \(\- Int64\(\-97\)\) \+ Int64\(\-92\) / Int64\(79\) \+ Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 16 AS col1, 2 + - ( - 97 ) + - 92 / + 79 + 2 AS col1 +---- +-16 +100 query I rowsort SELECT + + 48 + + - 34 AS col2 @@ -6762,8 +6864,11 @@ SELECT DISTINCT + NULLIF ( 23, + 8 * - AVG ( - - 4 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -900 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \* \(\- Int64\(\-75\)\) AS col1" at position 0 and "Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 12 * - - 75 AS col1, - 60 AS col1 +---- +-60 +-900 query I rowsort SELECT ALL + COALESCE ( 96, + 62 ) @@ -7523,8 +7628,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 17 AS col0 +---- +17 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -7640,8 +7748,11 @@ SELECT DISTINCT - 91 - + 80 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\(94\)\) AS col2" at position 0 and "Int64\(2\) \- Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( 94 ) AS col2, 2 - 71 col2 +---- +-69 +1 query I rowsort SELECT ( + 39 ) + - 59 AS col1 @@ -8061,8 +8172,11 @@ SELECT - 5 * + MIN ( 17 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 3321 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "Int64\(63\) \* Int64\(52\) \+ Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 63 AS col0, 63 * 52 + 45 AS col0 +---- +3321 +63 query II rowsort label-1530 SELECT ALL - CASE 6 WHEN + 69 * - + 71 THEN - CAST ( + COUNT ( * ) AS INTEGER ) * + - 64 WHEN - - 5 THEN NULL ELSE + 8 + + COUNT ( * ) END * SUM ( - - 18 ) * + 99 + - 75 / + 88, + 66 + + + 21 AS col1 @@ -8280,8 +8394,12 @@ SELECT - 66 * + 33 * 3 + - - 46 AS col0 # Datafusion - Expected - -69 # Datafusion - Expected - -53 # Datafusion - Expected - 8820 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(53\)\), Int64\(53\)\) AS col2" at position 1 and "Int64\(98\) \* Int64\(90\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 69, COALESCE ( - + 53, 53 ) AS col2, 98 * + 90 AS col2 +---- +-53 +-69 +8820 query I rowsort label-1570 SELECT 8 * + SUM ( + 26 ) * 78 + + - 72 @@ -8998,8 +9116,11 @@ 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\(1\)\) AS count\(\*\) \+ \(\- Int64\(7\)\) / Int64\(\-7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 59 + + MAX ( DISTINCT NULLIF ( - 18, + - 79 / + 42 ) ) * 63 + + 53 + - 98 * 21 AS col1, 52 + + COUNT ( * ) + - + 7 / - 7 col1 +---- +-3198 +54 query II rowsort SELECT 60 AS col1, 67 * - 38 @@ -9252,8 +9373,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2166 # Datafusion - Expected - 100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(57\) AS col1" at position 0 and "Int64\(86\) \+ \(\- Int64\(\-14\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 38 * + 57 AS col1, + 86 + - - 14 col1 +---- +100 +2166 query II rowsort SELECT ALL + 39 * + 10 AS col2, - 10 @@ -9384,8 +9508,11 @@ SELECT ALL 50, NULLIF ( 91, 75 ) AS col0 # 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 col2" at position 0 and "Int64\(\-99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 58 AS col2, - 99 AS col2 +---- +-99 +58 query I rowsort label-1781 SELECT DISTINCT + SUM ( - 87 ) * 60 + - 24 @@ -9395,8 +9522,11 @@ SELECT DISTINCT + SUM ( - 87 ) * 60 + - 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95550 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* Int64\(\-75\) \* Int64\(\-14\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 91 * + - 75 * - 14 AS col2, + 0 AS col2 +---- +0 +95550 query I rowsort SELECT 93 * 55 @@ -9535,8 +9665,11 @@ 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\(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\. +query II valuesort SELECT ALL 79 + - COUNT ( * ) AS col1, ( COUNT ( * ) ) / ( 34 ) / - 4 * + 65 col1 +---- +0 +78 query I rowsort SELECT 97 + + 56 AS col0 @@ -10266,8 +10399,11 @@ SELECT ALL 79 + - ( - + ( 48 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -6675 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ \(\- min\(DISTINCT Int64\(\-10\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-8\) \+ Int64\(\-27\) AS col1" at position 0 and "max\(Int64\(\-90\)\) \* Int64\(74\) \+ Int64\(\-15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( ( + CAST ( NULL AS INTEGER ) ) ) + - + ( + MIN ( DISTINCT - 10 ) ) + COUNT ( * ) + - 8 + - 27 AS col1, MAX ( - 90 ) * + 74 + + - 15 AS col1 +---- +-6675 +NULL query I rowsort label-1950 SELECT ALL - 80 + - COUNT ( * ) @@ -10414,8 +10550,11 @@ SELECT DISTINCT - 82 * + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \+ Int64\(38\) AS col0" at position 0 and "Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 18 + 38 AS col0, ( - 45 ) col0 +---- +-45 +56 query I rowsort label-1978 SELECT - SUM ( DISTINCT + + 78 ) @@ -10458,8 +10597,12 @@ SELECT ALL MIN ( ALL 0 ) # Datafusion - Expected - -87 # Datafusion - Expected - -64 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col1" at position 1 and "\(\- Int64\(\-92\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + ( - + 18 ) - + - ( - 79 ) + + 10 AS col2, - 64 AS col1, - - 92 AS col1 +---- +-64 +-87 +92 query I rowsort SELECT - 33 * - 39 @@ -10717,8 +10860,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col1" at position 0 and "nullif\(Int64\(\-50\), Int64\(\-75\)\) \+ \(\- \(\- Int64\(14\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 5 AS col1, NULLIF ( - 50, - 75 ) + - - ( 14 ) AS col1 +---- +-36 +-5 query I rowsort SELECT ALL + 25 + - 16 @@ -11332,8 +11478,12 @@ SELECT DISTINCT - - 2 * - COUNT ( * ) col2, COUNT ( * ) / - + 76 + - ( 54 ) # Datafusion - Expected - -770 # Datafusion - Expected - -387 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(55\), Int64\(8\) \* Int64\(\-14\)\)\) \* Int64\(14\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - COALESCE ( 55, + 8 * - 14 ) * 14 AS col1, 9 * - 43, CAST ( NULL AS INTEGER ) AS col1 +---- +-387 +-770 +NULL query I rowsort SELECT 36 + + ( + - 23 ) @@ -11705,8 +11855,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * - + 98 + - - 22 AS col0, COUNT ( * ) * 92 * - 8 col0 +---- +-736 +-76 query I rowsort label-2221 SELECT + 74 + - 84 + - 78 / 97 * - - 88 * MIN ( - - 58 ) @@ -13214,8 +13367,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 98 AS col1, + 31 + + - COUNT ( * ) AS col1 +---- +-98 +30 query I rowsort label-2515 SELECT ALL - 55 + - COUNT ( * ) / - MAX ( DISTINCT + 31 ) col0 @@ -13262,8 +13418,11 @@ SELECT + 71 * + + 0 + - 15 + + 37 - - + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 576 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "Int64\(40\) / \(\- Int64\(84\)\) \+ Int64\(18\) \* Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 19 AS col0, + 40 / - + 84 + + 18 * 32 AS col0 +---- +19 +576 query I rowsort label-2524 SELECT COUNT ( 61 ) * + COUNT ( * ) @@ -13315,8 +13474,11 @@ SELECT COUNT ( * ) + + 13 * - - 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 95 AS col2, 23 col2 +---- +-95 +23 query I rowsort SELECT - 4 * 37 + 58 - - 80 * 85 @@ -13614,8 +13776,11 @@ SELECT CAST ( 60 AS INTEGER ) / 28 + - 65 + + 0 * 65 * - - 23 * + ( + 58 ) / - S # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT CAST ( NULL AS FLOAT8 ) AS col0, + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 +---- +NULL +NULL query I rowsort label-2590 SELECT ALL 57 * + 57 * - - 7 * - + MAX ( - 23 ) AS col1 @@ -13752,8 +13917,11 @@ 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\(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\. +query II valuesort SELECT - NULLIF ( - COUNT ( * ), NULLIF ( + 32, 62 ) + - COUNT ( * ) ) AS col1, 28 AS col1 +---- +1 +28 query I rowsort SELECT DISTINCT - 38 * - - 84 AS col2 @@ -14335,8 +14503,11 @@ SELECT + 20 * 1 AS col1, 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(72\)\)\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( + 72 ) AS col1, 51 AS col1 +---- +-72 +51 query I rowsort label-2726 SELECT DISTINCT + COUNT ( * ) * + 86 AS col2 @@ -14422,8 +14593,11 @@ SELECT DISTINCT - NULLIF ( MIN ( DISTINCT - + 16 ), 34 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(82\)\)\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - ( 82 ) AS col0, + 22 AS col0 +---- +22 +82 query I rowsort SELECT - 85 * + + 27 AS col0 @@ -15057,8 +15231,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 9568285 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col1" at position 0 and "Int64\(25\) \- \(\- Int64\(\-45\)\) \* Int64\(94\) \* \(\- Int64\(78\)\) \* Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 50 col1, 25 - - - 45 * + 94 * - + 78 * 29 AS col1 +---- +-50 +9568285 query I rowsort label-2864 SELECT ALL + COUNT ( DISTINCT + - 41 ) * - + 80 AS col2 @@ -15195,8 +15372,11 @@ SELECT DISTINCT + 59 * 48 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4012 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \+ Int64\(68\) \* Int64\(58\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 68 + 68 * 58 AS col1, + COUNT ( * ) AS col1 +---- +1 +4012 query I rowsort SELECT DISTINCT 27 + + 64 AS col1 @@ -15268,8 +15448,12 @@ SELECT DISTINCT 25 * + - 36 AS col0 # Datafusion - Expected - 4488 # Datafusion - Expected - 65 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* Int64\(51\) AS col2" at position 0 and "Int64\(41\) \- Int64\(50\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 88 * + + 51 AS col2, + 65, + 41 - + 50 col2 +---- +-9 +4488 +65 query I rowsort label-2903 SELECT DISTINCT - COUNT ( * ) / + 46 AS col0 @@ -15377,8 +15561,11 @@ SELECT + 68 AS col1, 37 AS col0 # 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\(\-93\) \* Int64\(22\) \+ Int64\(\-95\) \+ Int64\(0\) \+ \(\- CAST\(NULL AS Float64\)\) \* Int64\(4\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - 93 * 22 + + - 95 + 0 + - + CAST ( NULL AS FLOAT8 ) * 4 AS col2, 95 AS col2 +---- +95 +NULL query II rowsort label-2924 SELECT - 61 / - 23 + - 71 * - 92 + 4 * + 15 col1, 99 AS col2 @@ -15532,8 +15719,11 @@ SELECT + 20 * + 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col1" at position 0 and "Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 14 col1, 98 AS col1 +---- +-14 +98 query I rowsort label-2954 SELECT DISTINCT 59 + + CAST ( NULL AS INTEGER ) + - 59 / 97 * - 81 AS col1 @@ -15944,8 +16134,11 @@ SELECT ALL - 36 AS col2, 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 135 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* Int64\(\-2\) \+ CAST\(Int64\(13\) AS Int32\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 61 * - 2 + + + CAST ( + 13 AS INTEGER ) AS col0, + 26 AS col0 +---- +135 +26 query I rowsort label-3032 SELECT 80 / - 3 + + 24 @@ -16111,8 +16304,11 @@ 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\(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\. +query II valuesort SELECT - NULLIF ( - + 99, 56 / + + COUNT ( * ) ) + + + 90 AS col2, - 81 + 91 AS col2 +---- +10 +189 query I rowsort SELECT - 2 + 97 + - 56 * - + 7 * - - 43 * 78 AS col0 @@ -16159,8 +16355,11 @@ SELECT ALL - 93 * - 47 + COALESCE ( - CAST ( - 64 AS INTEGER ), + 60 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 69 -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 "\(\- Int64\(\-69\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 73 + - 28 col1, ( - - 69 ) AS col1 +---- +45 +69 query I rowsort SELECT + 99 * 85 * + + 34 - 14 @@ -16359,8 +16558,11 @@ NULL # 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 "Int64\(52\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 52 AS col2, ( + 5 ) AS col2 +---- +5 +52 query I rowsort label-3109 SELECT DISTINCT + MAX ( - ( - 41 ) ) col1 @@ -16567,8 +16769,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) / Int64\(\-44\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 46 / - 44 AS col1, + COUNT ( * ) AS col1 +---- +-1 +1 query II rowsort label-3149 SELECT - - 61 / 29 + + 3 + - 99, - ( - 0 ) AS col2 @@ -17160,8 +17365,11 @@ SELECT ALL 72 * 46 * NULLIF ( 28, COUNT ( - 29 ) ) col0 # 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 "Int64\(53\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 AS col0, + 75 col0 +---- +53 +75 query I rowsort SELECT DISTINCT - 84 - - 20 @@ -17441,8 +17649,11 @@ SELECT DISTINCT 12 + + 14 / - 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(\-61\) AS col1" at position 0 and "CAST\(Int64\(24\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 + - 61 AS col1, CAST ( ( + + 24 ) AS INTEGER ) AS col1 +---- +16 +24 query I rowsort label-3314 SELECT - COALESCE ( MIN ( - 97 ), + + MAX ( + - 20 ), - - SUM ( DISTINCT + 27 ) * + 39 * + - 21 ) AS col2 @@ -17677,8 +17888,11 @@ SELECT + - CAST ( - + 28 AS INTEGER ) + 46 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 137 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col2" at position 0 and "Int64\(25\) \+ Int64\(28\) \- \(\- Int64\(84\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 AS col2, 25 + 28 - - + 84 col2 +---- +0 +137 query I rowsort SELECT 10 + - + 99 AS col2 @@ -17734,8 +17948,11 @@ NULL # 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 \(\- Int64\(\-23\)\) WHEN Int64\(\-54\) THEN Int64\(\-74\) END\)\), \(\- max\(Int64\(\-18\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 96 AS col2, NULLIF ( - - ( CASE - - 23 WHEN - 54 THEN - 74 END ), - MAX ( + - 18 ) ) AS col2 +---- +-96 +NULL query I rowsort label-3370 SELECT CAST ( NULL AS INTEGER ) * - 25 AS col2 @@ -17963,8 +18180,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3234 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* Int64\(33\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 * + 33 col0, + COUNT ( * ) AS col0 +---- +1 +3234 query I rowsort SELECT + 4 + + ( - + ( - 37 ) ) @@ -17984,8 +18204,11 @@ SELECT - 57 + 11 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - COUNT ( * ) + + COUNT ( * ) AS col1, 99 AS col1 +---- +2 +99 query II rowsort label-3416 SELECT - ( + 36 ) * - COUNT ( * ) + + 35 * + + 99 AS col1, + COUNT ( * ) - - 20 @@ -18261,8 +18484,11 @@ SELECT DISTINCT - 42 * + MIN ( - 44 ) * + - 3 * + 6 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - -3001 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(38\) AS Int32\) AS col1" at position 0 and "\(\- CASE Int64\(36\) WHEN \(\- Int64\(\-31\)\) \+ Int64\(\-50\) THEN NULL ELSE Int64\(79\) \* Int64\(38\) \+ nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(19\) \- Int64\(\-37\)\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( 38 AS INTEGER ) AS col1, - CASE 36 WHEN - - 31 + - 50 THEN NULL ELSE + + 79 * + + 38 + + + NULLIF ( - COUNT ( * ), 19 - - 37 ) END col1 +---- +-3001 +38 query I rowsort label-3468 SELECT + COUNT ( DISTINCT - 29 ) * - - 87 - - 7 * + 6 * - - 18 - + 80 AS col0 @@ -18614,8 +18840,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, 31 AS col2 +---- +-1 +31 query I rowsort label-3536 SELECT DISTINCT 93 + COUNT ( * ) + 60 @@ -18656,8 +18885,11 @@ SELECT ALL 33 / + 90 * - 13 * COUNT ( * ), - 60 + - 37 - ( + NULLIF ( - 33, + 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 38 col1, + 92 AS col1 +---- +-38 +92 query II rowsort SELECT + 26, 86 AS col2 @@ -18716,8 +18948,11 @@ SELECT ALL - 0 * + 93, + 65 + 92 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- nullif\(Int64\(\-39\), Int64\(4\) \+ \(\- CASE Int64\(6\) WHEN Int64\(89\) \+ \(\- Int64\(\-84\)\) THEN \(\- Int64\(\-40\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-33\) \+ Int64\(\-51\) THEN Int64\(53\) \* Int64\(\-78\) \+ CAST\(\(\- Int64\(\-14\)\) AS Float64\) WHEN Int64\(33\) \- Int64\(\-3\) THEN NULL END \+ \(\- Int64\(59\)\) \* Int64\(57\) \* Int64\(26\) \* Int64\(5\) ELSE NULL END\)\)\) AS Int32\)\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-39 +90 query I rowsort SELECT - 8 * - - 14 @@ -18899,8 +19134,11 @@ SELECT DISTINCT - 15 * + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2294 # Datafusion - Expected - 2703 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* Int64\(35\) \+ \(\- Int64\(\-19\)\) AS col0" at position 0 and "Int64\(53\) \* Int64\(44\) \+ \(\- Int64\(53\)\) \* max\(DISTINCT Int64\(\-7\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 65 * 35 + - - 19 AS col0, 53 * 44 + - + 53 * + + MAX ( DISTINCT + - 7 ) AS col0 +---- +2294 +2703 query I rowsort SELECT + 31 - 30 @@ -19784,8 +20022,11 @@ 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\(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\. +query II valuesort SELECT + 28 + - 9 / 16 + COALESCE ( + 26, - - 75 * - 86 ) + - 46 + - COUNT ( * ) / + + 12 + + + NULLIF ( 71, + 51 ) * + - NULLIF ( - - MIN ( - + 99 ), + + 10 ) col1, 80 + + 55 col1 +---- +135 +7037 query I rowsort SELECT ALL CASE 80 WHEN + AVG ( ALL + + NULLIF ( 13, ( 20 ) ) ) * - + 50 THEN NULL WHEN - + 52 THEN NULL ELSE + 61 END AS col2 @@ -20305,8 +20546,11 @@ 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\(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\. +query II valuesort SELECT 79 * - + 88 * COUNT ( * ) - - + 27 AS col0, + 30 * - 78 AS col0 +---- +-2340 +-6925 query I rowsort SELECT 27 * 53 @@ -20415,8 +20659,11 @@ 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\(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\. +query II valuesort 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 +---- +67 +NULL query I rowsort SELECT - 87 * 59 + - + 89 AS col0 @@ -21533,8 +21780,11 @@ SELECT + 77 AS col1, 40 * + ( COALESCE ( 98, + 98 / - 72 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col0" at position 0 and "Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 AS col0, 37 col0 +---- +37 +91 query I rowsort label-4095 SELECT + CASE - 52 WHEN 89 THEN + CASE - 15 WHEN - 5 - 27 THEN 7 ELSE NULL END WHEN 48 THEN NULL ELSE NULL END * + 7 + 31 * + CASE 82 * MIN ( - 62 ) WHEN NULLIF ( + 90, ( MAX ( ALL + 53 ) ) ) THEN NULL WHEN + MAX ( DISTINCT + 1 ) - + COUNT ( * ) THEN 24 * 49 WHEN + ( 93 ) THEN NULL END @@ -21742,8 +21992,11 @@ SELECT CAST ( + 96 AS INTEGER ) * - 91 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1491 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* \(\- Int64\(71\)\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 * - + 71 col0, 95 AS col0 +---- +-1491 +95 query I rowsort label-4135 SELECT + CAST ( 57 AS INTEGER ) * 12 + COUNT ( * ) * 0 @@ -21829,8 +22082,11 @@ SELECT SUM ( ALL + COALESCE ( - 46, + 5 * + 67 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(\-94\) AS col2" at position 0 and "Int64\(62\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / CASE Int64\(68\) WHEN Int64\(32\) \+ Int64\(92\) / Int64\(72\) THEN NULL WHEN Int64\(76\) THEN Int64\(4\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +NULL +NULL query I rowsort SELECT - 56 + - 2 @@ -21949,8 +22205,11 @@ SELECT 74, + CASE + 51 WHEN + 12 * + 46 * + ( + 3 ) - 78 * 29 THEN - 34 * ( 7 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4761 # Datafusion - Expected - 19714 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(69\)\) \* Int64\(69\) AS col1" at position 0 and "Int64\(15\) \* Int64\(78\) \* Int64\(16\) \+ Int64\(14\) \* Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( ALL + + 69 ) * 69 AS col1, 15 * + 78 * + 16 + + ( 14 ) * 71 AS col1 +---- +19714 +4761 query I rowsort SELECT - + 18 * + 99 AS col2 @@ -21965,8 +22224,11 @@ SELECT - + COALESCE ( COUNT ( * ), + + 45 ) + + - SUM ( + 26 ) - ( 64 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- min\(\(\- Int64\(\-68\)\)\)\) \- min\(CAST\(Int64\(82\) AS Int32\)\) \+ Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 30 AS col2, + COUNT ( * ) / - MIN ( ALL - - 68 ) - + MIN ( + CAST ( 82 AS INTEGER ) ) + + 6 AS col2 +---- +-30 +-76 query I rowsort SELECT ALL + - CASE + 78 WHEN 1 THEN + 55 - + - COALESCE ( 85, 48 * 9 ) ELSE NULL END * 61 + 61 AS col1 @@ -22172,8 +22434,11 @@ SELECT - 11 / COUNT ( - 4 ) + - 32 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 AS col1, 39 AS col1 +---- +39 +70 query I rowsort label-4218 SELECT + - 47 / COALESCE ( + ( - + MAX ( ALL 21 ) ), 3, 57 ) @@ -22425,8 +22690,11 @@ SELECT 95 + 29 * + 22 + - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(52\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(Int64\(31\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( ALL 52 ) / COUNT ( * ) AS col0, ( + CAST ( + 31 AS INTEGER ) ) AS col0 +---- +1 +31 query I rowsort SELECT 21 - + - 35 col0 @@ -22801,8 +23069,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 95 AS col1, NULLIF ( - 33, - + COUNT ( * ) ) AS col1 +---- +-33 +95 query I rowsort label-4340 SELECT + 80 + COUNT ( * ) @@ -22908,8 +23179,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 AS col2, COUNT ( * ) * COUNT ( * ) AS col2 +---- +1 +80 query I rowsort label-4360 SELECT ALL + CAST ( + + COUNT ( * ) AS INTEGER ) + - 77 AS col1 @@ -23120,8 +23394,11 @@ SELECT - + NULLIF ( - - 46, - MIN ( ALL + + CAST ( - 66 AS INTEGER ) ) ), + 97 A # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(2\) AS Int32\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( 2 AS INTEGER ) AS col1, + 73 AS col1 +---- +2 +73 query II rowsort SELECT DISTINCT COALESCE ( - - 88, 60 ) * + + 95 * + 40, - 58 AS col0 @@ -23853,8 +24130,11 @@ SELECT - 36 + + ( ( - + COUNT ( * ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - -4881638 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(51\) \+ CAST\(Int64\(\-88\) AS Int32\) \- Int64\(68\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(48\) \* Int64\(\-99\) \* Int64\(13\) \* Int64\(74\) \- count\(Int64\(17\)\) \* CAST\(\(\- \(\- nullif\(\(\- Int64\(\-57\)\), Int64\(\-13\)\)\)\) AS Int32\) \+ Int64\(78\) \* Int64\(\-53\) \* Int64\(75\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-4881638 +40 query I rowsort SELECT - 54 * 3 col2 @@ -24165,8 +24445,11 @@ SELECT DISTINCT CAST ( - 84 AS INTEGER ) + MAX ( DISTINCT + 35 ), + ( - 22 ) AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 1999 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(51\) AS Int32\) \* nullif\(Int64\(38\), max\(DISTINCT Int64\(\-17\)\)\) \- Int64\(\-61\) AS col1" at position 0 and "Int64\(64\) \+ \(\- CAST\(NULL AS Int32\)\) \- Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( 51 AS INTEGER ) * NULLIF ( 38, MAX ( DISTINCT - 17 ) ) - - 61 col1, 64 + - CAST ( NULL AS INTEGER ) - + 30 AS col1 +---- +1999 +NULL query I rowsort SELECT ALL 6 + - 38 col2 @@ -24246,8 +24529,11 @@ SELECT 71 + 57 * + 86 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1827 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(98\)\)\) \* Int64\(87\) \* Int64\(21\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - COUNT ( + 98 ) * + 87 * 21 AS col1, 5 col1 +---- +-1827 +5 query I rowsort SELECT ALL 8 * 18 @@ -24282,8 +24568,11 @@ SELECT DISTINCT - ( + + ( - 64 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6360 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) \* Int64\(\-69\) \+ \(\- sum\(DISTINCT Int64\(\-81\)\)\) AS col2" at position 0 and "Int64\(33\) \+ min\(Int64\(17\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 91 * - 69 + - SUM ( DISTINCT - 81 ) AS col2, + 33 + + MIN ( 17 ) AS col2 +---- +50 +6360 query I rowsort SELECT ALL - - 14 * - - 80 + - 52 AS col0 @@ -24872,14 +25161,20 @@ SELECT DISTINCT 58 * + 43 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 179 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ Int64\(15\) \+ Int64\(71\) AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 93 + + + 15 + + 71 AS col0, 6 AS col0 +---- +179 +6 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- CAST\(Int64\(\-66\) AS Int32\)\) \+ Int64\(\-3\) AS col0" at position 0 and "\(\- coalesce\(Int64\(\-61\), Int64\(\-60\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) * - CAST ( - 66 AS INTEGER ) + - 3 col0, - COALESCE ( ( - 61 ), - 60 ) AS col0 +---- +61 +NULL query I rowsort label-4739 SELECT CASE - + 0 WHEN + 45 THEN NULL WHEN + 83 * 30 * + + COUNT ( * ) THEN 53 * NULLIF ( CASE + + 53 WHEN + + SUM ( - + 4 ) THEN NULL WHEN - + 93 THEN - 95 - - 86 END, + + SUM ( + 85 ) ) ELSE COUNT ( * ) + + - ( - - 6 ) + + + 78 END + + 87 + 91 @@ -24889,8 +25184,11 @@ SELECT CASE - + 0 WHEN + 45 THEN NULL WHEN + 83 * 30 * + + COUNT ( * ) THEN 53 * # 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 "Int64\(70\) \+ coalesce\(Int64\(58\), Int64\(80\)\) \+ Int64\(93\) \* Int64\(\-76\) \* CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL - 54 AS col2, 70 + COALESCE ( + + 58, + 80 ) + 93 * - 76 * CAST ( NULL AS FLOAT8 ) AS col2 +---- +-54 +NULL query I rowsort SELECT 51 + + 72 AS col0 @@ -24944,8 +25242,11 @@ SELECT + - ( + 91 ) + - 66 * 23 - + + 20 - - + 91 + + - 74 + - 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - 1320 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(76\)\) AS col1" at position 0 and "Int64\(\-55\) \* Int64\(\-24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 76 AS col1, - 55 * + - 24 AS col1 +---- +-76 +1320 query II rowsort label-4751 SELECT ALL 55, 10 / - 16 + - CAST ( 17 AS INTEGER ) col1 @@ -24994,8 +25295,11 @@ SELECT ALL + 69 * 80 # 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\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 47 ) AS col1, 67 AS col1 +---- +47 +67 query I rowsort label-4760 SELECT ALL + 96 * COUNT ( * ) AS col2 @@ -25623,8 +25927,11 @@ SELECT - 46 + - + 90 - + 95 * 32 * - 74 * - ( 43 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5849 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \- Int64\(96\) \* Int64\(\-61\) AS col0" at position 0 and "Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 7 - + + 96 * + - 61 AS col0, 20 AS col0 +---- +20 +5849 query I rowsort SELECT - 23 + 74 @@ -25953,8 +26260,11 @@ SELECT COALESCE ( - 54, + + 82 + - 32 + 16 * - 39 + 92 ) - + - 96 / 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "Int64\(82\) \+ Int64\(2\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 8 col0, + 82 + + 2 + COUNT ( * ) AS col0 +---- +8 +85 query II rowsort label-4941 SELECT 53 * - 71 + 61 * - NULLIF ( 5, + 54 ) - - 94 + + - MIN ( + 69 ) * - 21, 47 AS col1 @@ -26112,8 +26422,11 @@ SELECT ALL + CAST ( 30 AS INTEGER ) 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 "count\(Int64\(\-97\)\) AS col1" at position 0 and "Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( ALL - 97 ) AS col1, + 6 AS col1 +---- +1 +6 query I rowsort SELECT + 0 * 10 AS col1 @@ -26367,8 +26680,11 @@ 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\(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\. +query II valuesort 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 +---- +NULL +NULL query I rowsort label-5021 SELECT ALL + CASE - - 22 WHEN - - 3 THEN - 2 + + 41 * - 67 ELSE + COUNT ( ALL + 37 ) END AS col1 @@ -26681,8 +26997,11 @@ SELECT DISTINCT + 72 - + - COALESCE ( - + 21, - 48 * - MIN ( ( + - 54 ) ) ) AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 183 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / Int64\(\-88\) AS col0" at position 0 and "Int64\(90\) \+ Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) / - 88 col0, + 90 + + 93 AS col0 +---- +183 +NULL query I rowsort label-5081 SELECT 3 * - COUNT ( * ) + - + ( - - 47 ) * - 79 + + + 60 + COUNT ( ALL - 87 ) @@ -26733,8 +27052,11 @@ SELECT 98 + 52 + + 69 AS col2 # 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 "Int64\(0\) \* Int64\(52\) \* Int64\(59\) \* Int64\(\-4\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 * + 52 * 59 * + - 4 AS col1, 62 AS col1 +---- +0 +62 query I rowsort SELECT - + ( 4 ) col2 @@ -26754,8 +27076,11 @@ SELECT ALL - 7 + - 5 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(27\)\) \+ Int64\(\-68\) AS col1" at position 0 and "Int64\(40\) \- \(\- Int64\(\-66\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 27 + - 68 AS col1, 40 - - + ( - 66 ) AS col1 +---- +-26 +-95 query I rowsort SELECT ALL + + ( 18 ) + - 90 AS col0 @@ -26982,8 +27307,11 @@ SELECT ALL + 64 * 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col2" at position 0 and "Int64\(79\) \+ \(\- Int64\(20\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 36 AS col2, 79 + - + 20 AS col2 +---- +36 +59 query I rowsort label-5139 SELECT 73 / - COUNT ( * ) + 59 + - + 65 / - 9 @@ -27047,8 +27375,11 @@ SELECT + 82 * 4 * 68 + + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT Int64\(\-71\)\)\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + MIN ( DISTINCT + - 71 ) AS col1, + 63 AS col1 +---- +63 +71 query II rowsort SELECT NULLIF ( 6, + 3 ) + 1 col0, - 44 @@ -27118,8 +27449,11 @@ SELECT ALL 68 * + 45 + - 85 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + + COUNT ( * ) ) AS col1, + 72 AS col1 +---- +1 +72 query I rowsort label-5164 SELECT - COUNT ( + ( 37 ) ) AS col1 @@ -27492,8 +27826,11 @@ SELECT DISTINCT + - 12 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1624397 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(9\) \* Int64\(47\) \* Int64\(60\) \* Int64\(64\) \+ Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, 9 * 47 * 60 * 64 + + 77 AS col1 +---- +1 +1624397 query I rowsort label-5237 SELECT + 65 * + COUNT ( + + 96 ) @@ -27787,8 +28124,11 @@ SELECT 81 + - 9 + 88 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 59 col1, + 8 AS col1 +---- +59 +8 query I rowsort SELECT ALL + 19 + - 45 @@ -28446,8 +28786,12 @@ SELECT + + 53 - + + 45 * + 51 + - 72 # Datafusion - Expected - 177 # Datafusion - Expected - 43 # Datafusion - Expected - 3153 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col0" at position 1 and "Int64\(88\) \* \(\- Int64\(\-35\)\) \- \(\- Int64\(73\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 88 + + ( COUNT ( * ) ) + 88, 43 AS col0, + + ( + 88 ) * - - 35 - - + 73 col0 +---- +177 +3153 +43 query I rowsort SELECT ALL 47 + + 59 - 36 @@ -29097,8 +29441,11 @@ SELECT 78 AS col1, + 4 + + 35 # 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\(\-20\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 AS col0, 36 AS col0 +---- +-20 +36 query I rowsort SELECT ALL 76 + - 85 + - + COALESCE ( - 12, 50 ) - 65 AS col1 @@ -29933,8 +30280,11 @@ SELECT DISTINCT - 35 / - 86 * + 21 * 60 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, - 95 AS col1 +---- +-95 +1 query I rowsort SELECT ALL 45 + - 55 + 35 * 61 @@ -30609,8 +30959,12 @@ NULL # Datafusion - Expected - -1 # Datafusion - Expected - 71 # 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 "Int64\(25\) / Int64\(71\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 1 AS col0, 71, 25 / + + 71 col0 +---- +-1 +0 +71 query I rowsort label-5832 SELECT - 34 - + 48 * + 0 * 39 + - ( + ( CAST ( - 80 AS INTEGER ) ) ) AS col1 @@ -30982,8 +31336,11 @@ SELECT ALL 49 + + 58 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col1" at position 0 and "Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 42 AS col1, + 89 AS col1 +---- +42 +89 query I rowsort label-5905 SELECT DISTINCT SUM ( - 68 ) + - ( + 1 ) - 14 + + 58 / - + 95 @@ -31930,8 +32287,11 @@ SELECT + + 43 * + COUNT ( ALL + - 24 ) * + 53 * 26 + - + 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* Int64\(4\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- Int64\(\-21\)\) THEN \(\- nullif\(Int64\(\-2\), Int64\(57\)\)\) WHEN Int64\(26\) THEN NULL END / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 68 * ( 4 ) + CASE COUNT ( * ) WHEN - - 21 THEN + - NULLIF ( + - 2, 57 ) WHEN + ( + 26 ) THEN NULL END / + COUNT ( * ) AS col1, 20 col1 +---- +20 +NULL query I rowsort SELECT + 38 + + 37 AS col1 @@ -32527,8 +32887,11 @@ SELECT ALL + 57 + 60 * + COUNT ( * ) + - 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - -224640 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* Int64\(60\) \* Int64\(\-39\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 * + 60 * - 39 AS col1, 45 AS col1 +---- +-224640 +45 query II rowsort SELECT DISTINCT - 55 * + + 88 * + 33 AS col1, + 59 @@ -32539,8 +32902,11 @@ SELECT DISTINCT - 55 * + + 88 * + 33 AS col1, + 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(29\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(72\) \* Int64\(\-29\) THEN NULL ELSE Int64\(84\) \+ Int64\(\-16\) END\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CASE 29 WHEN - COUNT ( * ) - + 72 * + - 29 THEN NULL ELSE 84 + - 16 END AS col0, COUNT ( * ) AS col0 +---- +-68 +1 query I rowsort SELECT ALL - + 4 * + 49 AS col2 @@ -32870,8 +33236,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * + 55 * - 81 + + - 33 AS col0, - 4 AS col0 +---- +-4 +-4488 query I rowsort label-6266 SELECT ALL - 14 * - 41 / - + 41 AS col1 @@ -32938,8 +33307,11 @@ SELECT 67 * - - 11 * + COALESCE ( + 69, + - 61 - + COUNT ( * ) ) * - - 28 AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - 5104 # Datafusion - Expected - 164735 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ Int64\(56\) \* Int64\(88\) \+ \(\- Int64\(\-76\)\) \+ Int64\(2\) AS col0" at position 0 and "Int64\(53\) \* Int64\(84\) \* Int64\(37\) \+ Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 98 + 56 * 88 + - - 76 + 2 AS col0, 53 * + + 84 * 37 + 11 AS col0 +---- +164735 +5104 query I rowsort label-6279 SELECT COUNT ( * ) + - COUNT ( * ) / 96 col0 @@ -33203,8 +33575,11 @@ SELECT DISTINCT - MAX ( - - 81 ) / 60 # 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 col1" at position 0 and "Int64\(30\) \- Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 AS col1, 30 - + 89 AS col1 +---- +-59 +25 query I rowsort label-6329 SELECT ALL - COUNT ( - 95 ) AS col1 @@ -33340,8 +33715,11 @@ SELECT - COUNT ( * ) * COUNT ( * ) * + 30 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4125 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \* Int64\(55\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 75 ) * + 55 AS col0, + 23 AS col0 +---- +-4125 +23 query I rowsort SELECT + 99 + + 62 + + + 78 AS col0 @@ -33438,8 +33816,11 @@ SELECT DISTINCT - COUNT ( * ) * + - 70 + + 75 * 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 96 AS col0, 67 AS col0 +---- +67 +96 query II rowsort SELECT + 10 AS col1, 41 + + 99 + NULLIF ( + 98, + 8 ) @@ -33510,8 +33891,11 @@ SELECT - COALESCE ( - 23, - 16 ) * 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 35 -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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 28 AS col0, + 35 AS col0 +---- +-28 +35 query I rowsort SELECT DISTINCT - 49 * 38 @@ -34459,8 +34843,11 @@ SELECT - ( - 57 ) * + 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2513785 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \+ coalesce\(Int64\(\-84\), Int64\(\-15\) \* CAST\(Int64\(\-64\) AS Int32\), \(\- Int64\(93\)\)\) \+ Int64\(\-18\) \* Int64\(31\) \* Int64\(85\) \* Int64\(\-53\) AS col2" at position 0 and "Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 79 + COALESCE ( - 84, + - 15 * + CAST ( - 64 AS INTEGER ), - + 93 ) + + ( - 18 ) * 31 * + 85 * - 53 AS col2, - 81 AS col2 +---- +-81 +2513785 query I rowsort label-6569 SELECT - CAST ( 30 AS INTEGER ) + 6 AS col0 @@ -34716,8 +35103,11 @@ SELECT + 30, - 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \+ \(\- CASE Int64\(42\) WHEN \(\- sum\(CAST\(NULL AS Int32\)\)\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- max\(Int64\(82\)\)\) END\) / \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- CASE CAST\(Int64\(50\) AS Int32\) WHEN Int64\(45\) THEN NULL WHEN \(\- Int64\(\-6\)\) THEN Int64\(51\) WHEN Int64\(24\) \* Int64\(0\) THEN sum\(\(\- Int64\(\-71\)\)\) \* Int64\(19\) \+ Int64\(36\) \+ Int64\(40\) \+ Int64\(1\) \+ Int64\(\-72\) \+ Int64\(\-71\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +NULL +NULL query I rowsort label-6619 SELECT + SUM ( ALL + 30 ) * - + 43 AS col0 @@ -34785,8 +35175,11 @@ SELECT ALL 66 col0, - 4 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col0" at position 0 and "Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 19 AS col0, 32 AS col0 +---- +-19 +32 query I rowsort SELECT 0 * + + 77 * - + 6 AS col2 @@ -35126,8 +35519,11 @@ 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\(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\. +query II valuesort SELECT ALL 31 AS col2, - ( - COUNT ( * ) ) * SUM ( ALL - + 0 ) + + ( - - MAX ( DISTINCT + NULLIF ( - 49, 87 * + 64 ) ) ) + + + 98 * + SUM ( ALL 36 ) AS col2 +---- +31 +3479 query I rowsort SELECT - 2 * + 16 AS col2 @@ -35171,8 +35567,11 @@ SELECT + 76 + 90 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(55\) \- CAST\(Int64\(79\) AS Int32\) \+ max\(\(\- Int64\(0\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) col0, 55 - + + CAST ( + 79 AS INTEGER ) + + MAX ( ( - - 0 ) ) AS col0 +---- +-1 +-24 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -35269,8 +35668,11 @@ SELECT + ( + 79 ) 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\(\-4\) \+ Int64\(38\) AS col2" at position 0 and "Int64\(\-62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 4 + 38 AS col2, - 62 AS col2 +---- +-62 +34 query I rowsort label-6723 SELECT - 63 / 96 @@ -35758,8 +36160,11 @@ SELECT ALL 34 AS col1, 16 * - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 col2, 83 col2 +---- +31 +83 query I rowsort SELECT + 38 + + - 67 + - 27 @@ -36541,8 +36946,11 @@ SELECT + COALESCE ( - 92, 90 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 99 AS col1, + 27 col1 +---- +27 +99 query II rowsort label-6968 SELECT - 92, 17 + - COALESCE ( 85, - - SUM ( ALL 31 ) - + CAST ( NULL AS INTEGER ) ) + + 99 + - ( + 79 ) * COUNT ( * ) * 42 * + 49 * NULLIF ( + COUNT ( * ), - CASE + 29 WHEN 96 THEN MAX ( 78 ) WHEN 3 THEN NULL END + + MAX ( ALL - - 53 ) + + COUNT ( * ) ) + + + NULLIF ( - ( + COUNT ( * ) ), + CASE COALESCE ( + 22, - 80 ) WHEN + 95 THEN NULL WHEN COUNT ( DISTINCT + 58 ) THEN 1 ELSE 12 * + 72 + - 72 END + 14 + - 25 * 33 + + 22 ) + CAST ( + COUNT ( * ) AS INTEGER ) * 90 AS col1 @@ -36874,8 +37282,11 @@ SELECT DISTINCT 33 col2, + 8 * + - CASE - - COALESCE ( - 96, + + CAST ( NULL AS # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - -371850 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col1" at position 0 and "Int64\(\-75\) \* Int64\(74\) \* Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 4 AS col1, - 75 * + 74 * + + 67 AS col1 +---- +-371850 +-4 query II rowsort label-7031 SELECT ALL COUNT ( * ), - 19 AS col1 @@ -36947,8 +37358,11 @@ 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\(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\. +query II valuesort SELECT 76 * 42 + + - COUNT ( * ) + + + 12 AS col2, 73 AS col2 +---- +3203 +73 query II rowsort label-7045 SELECT ALL 97 + 61, COUNT ( * ) AS col2 @@ -37270,8 +37684,12 @@ SELECT + 3 AS col2, 14 AS col1 # Datafusion - Expected - -34 # Datafusion - Expected - 21483 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col0" at position 0 and "Int64\(21\) \* Int64\(11\) \* Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 34 col0, 21 * 11 * + + 93 col0, - - 8 + - 3 +---- +-34 +21483 +5 query I rowsort label-7106 SELECT - 73 / - 67 - 22 * - 38 + + ( 82 ) @@ -37344,8 +37762,12 @@ SELECT - ( MIN ( DISTINCT + + 54 ) ) AS col1 # Datafusion - Expected - -3 # Datafusion - Expected - 75 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(3\)\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + 3 AS col1, + 75 AS col1, - 28 AS col2 +---- +-28 +-3 +75 query II rowsort SELECT COALESCE ( - ( - 40 ), + + 38 * - 79 ) + + 83, - 4 AS col2 @@ -37499,8 +37921,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( 2, 35 * + 70 ) * - 76 / - 61 + - COUNT ( * ) AS col0, 6 AS col0 +---- +1 +6 query I rowsort SELECT 83 * + 40 + + 87 + 76 col0 @@ -37619,8 +38044,11 @@ SELECT DISTINCT + NULLIF ( - + 65, COUNT ( * ) - - 83 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -2300 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "Int64\(92\) \* Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 43 col1, 92 * - 25 AS col1 +---- +-2300 +43 query II rowsort SELECT DISTINCT + COALESCE ( + + 52, + + 28 ) AS col0, 99 @@ -37767,8 +38195,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT CASE - - 37 WHEN - 72 * 61 + + + 89 THEN MIN ( ALL 83 ) * - 42 + COUNT ( * ) - 57 / 59 END AS col1, + 44 AS col1 +---- +44 +NULL query I rowsort SELECT - 72 + - 87 AS col2 @@ -38533,8 +38964,11 @@ SELECT ( 68 ) * + 2 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 69 AS col0, + 22 AS col0 +---- +-69 +22 query II rowsort SELECT - 70, + 69 AS col1 @@ -38991,8 +39425,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 col1, - 66 AS col1 +---- +-66 +25 query I rowsort label-7440 SELECT DISTINCT + 62 + COUNT ( * ) + - 26 AS col0 @@ -39137,8 +39574,11 @@ SELECT DISTINCT NULLIF ( + 98, - - 19 ) * 77 + - 23 / - 20 + ( 58 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-16\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, COUNT ( * ) * - - 16 AS col0 +---- +1 +16 query I rowsort label-7469 SELECT - 76 - COUNT ( - 8 ) @@ -39197,8 +39637,12 @@ SELECT DISTINCT + 1, - COUNT ( * ) + 62 + COUNT ( * ) + + 43 * - COUNT ( * ) * 1 # Datafusion - Expected - 6076 # Datafusion - Expected - 2000 # Datafusion - Expected - -7310 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* Int64\(98\) AS col2" at position 0 and "Int64\(86\) \* Int64\(\-85\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 62 * 98 AS col2, 25 * 80, 86 * + - 85 AS col2 +---- +-7310 +2000 +6076 query I rowsort label-7480 SELECT DISTINCT NULLIF ( - ( - - 33 ), 3 ) / + 27 col0 @@ -39384,8 +39828,11 @@ SELECT ALL 33 + + 39 - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 30 AS col0, 88 col0 +---- +30 +88 query I rowsort label-7516 SELECT ALL CAST ( NULL AS INTEGER ) + - + 39 AS col1 @@ -39741,8 +40188,12 @@ SELECT - CAST ( + 54 AS INTEGER ) # Datafusion - Expected - -25 # Datafusion - Expected - 20 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \- Int64\(23\) AS col1" at position 1 and "Int64\(27\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 25 col2, + 43 - + + 23 AS col1, 27 AS col1 +---- +-25 +20 +27 query I rowsort label-7584 SELECT ALL - 52 + + 84 / 2 * + + CAST ( + MIN ( ALL + 98 ) AS INTEGER ) AS col0 @@ -39803,15 +40254,22 @@ SELECT - 95 / + 95 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(34\)\) AS col0" at position 0 and "Int64\(93\) \- Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + + COUNT ( 34 ) ) AS col0, 93 - + 28 AS col0 +---- +1 +65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 7224 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 51 AS col0, 86 * 84, + + 14 AS col0 +---- +14 +51 +7224 query I rowsort SELECT - 83 * - + 24 @@ -39836,8 +40294,11 @@ SELECT ALL + MIN ( ALL 10 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 28 AS col2, + 12 AS col2 +---- +12 +28 query I rowsort label-7602 SELECT + COUNT ( * ) * - - MAX ( ALL + 18 ) + - 99 AS col1 @@ -40046,8 +40507,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, + 55 * + - 41 + - + 16 AS col1 +---- +-1 +-2271 query I rowsort SELECT ALL + 35 * - 4 @@ -40458,8 +40922,12 @@ NULL # Datafusion - Expected - -66 # Datafusion - Expected - 26 # Datafusion - Expected - 414 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-66\), Int64\(\-22\) \* \(\- Int64\(22\)\) \+ coalesce\(\(\- Int64\(65\)\), Int64\(99\), Int64\(96\)\)\) AS col1" at position 0 and "Int64\(18\) \* Int64\(23\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + NULLIF ( - 66, - 22 * ( - + 22 ) + + + COALESCE ( - + 65, + + 99, + 96 ) ) AS col1, 26 AS col0, + + 18 * 23 AS col1 +---- +-66 +26 +414 query I rowsort SELECT + 91 * 33 @@ -40697,8 +41165,11 @@ SELECT 30 + + 55 * - 96, CAST ( - COUNT ( * ) AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-26\) AS Int32\) \+ Int64\(\-83\) \+ Int64\(63\) \- Int64\(\-35\) AS col2" at position 0 and "Int64\(24\) \+ Int64\(10\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - 26 AS INTEGER ) + - 83 + + 63 - ( - 35 ) col2, ( + 24 ) + + 10 + CAST ( NULL AS INTEGER ) col2 +---- +-11 +NULL query I rowsort label-7764 SELECT - CASE - 35 WHEN - - 32 THEN NULL WHEN CASE - CAST ( - COUNT ( * ) AS INTEGER ) WHEN - 80 + - 83 * + ( - 31 ) * + 96 + - CAST ( 67 AS FLOAT8 ) THEN NULL ELSE + - 19 * - 97 + - 54 END THEN 5 - CASE CASE + 97 WHEN - 39 / + 41 THEN - 91 WHEN AVG ( + 16 ) THEN NULL END WHEN 3 + NULLIF ( COUNT ( * ) + + 73, - COUNT ( * ) ) THEN 74 + - 39 END END * 34 @@ -40948,8 +41419,11 @@ NULL # 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 col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 85 ) AS col1, ( + + 2 ) col1 +---- +2 +85 query I rowsort SELECT ALL + 75 * - 70 + - 56 @@ -41906,8 +42380,11 @@ SELECT ALL + 51 - + 6 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 8178 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \+ Int64\(\-22\) AS col0" at position 0 and "Int64\(\-72\) / Int64\(98\) \+ Int64\(\-3\) \* \(\- sum\(Int64\(58\)\)\) \* Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 81 + - 22 AS col0, - 72 / + 98 + - 3 * - SUM ( ALL + 58 ) * + 47 AS col0 +---- +59 +8178 query I rowsort label-7993 SELECT COUNT ( + - CAST ( 87 AS INTEGER ) ) * + 66 * - 26 AS col2 @@ -41962,8 +42439,11 @@ SELECT 40 + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -129828 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col1" at position 0 and "min\(DISTINCT Int64\(47\)\) \* Int64\(\-16\) \- \(\- max\(Int64\(\-46\)\)\) \+ Int64\(22\) \* Int64\(85\) \* Int64\(\-69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 28 AS col1, + MIN ( DISTINCT + 47 ) * - 16 - - MAX ( - 46 ) + + 22 * 85 * + - 69 AS col1 +---- +-129828 +28 query I rowsort label-8003 SELECT ALL + CASE + 34 WHEN + 67 THEN NULL ELSE + CAST ( - 87 AS INTEGER ) / 55 * - ( - COUNT ( * ) ) END + - SUM ( 52 ) + + 9 AS col0 @@ -42531,8 +43011,11 @@ SELECT ALL 18 * - + 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) AS col1" at position 0 and "Int64\(20\) \+ Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 7 AS col1, 20 + + 75 AS col1 +---- +-7 +95 query I rowsort label-8112 SELECT DISTINCT + 85 * + NULLIF ( - 72, - + MAX ( DISTINCT + + 27 ) ) * - - ( - 67 ) * - SUM ( ALL - 28 ) + + 46 - + CAST ( - COALESCE ( - + 6, - 78 * - 67 * - + 16 * - 27 + + - 56, - 44 ) AS INTEGER ) * + COALESCE ( - 73, COUNT ( * ) + - CAST ( + 16 AS INTEGER ) ) + + 32 @@ -42620,8 +43103,11 @@ 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\(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\. +query II valuesort 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 +---- +-3367 +30 query II rowsort SELECT + - 40 AS col1, + 82 + + + 76 * 27 AS col2 @@ -42664,8 +43150,11 @@ 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\(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\. +query II valuesort SELECT - NULLIF ( + ( COUNT ( * ) ), 74 * 67 + + - COUNT ( * ) - COUNT ( * ) ) * + 87 + - 26 - - - 2 AS col2, 12 + + - 34 * - NULLIF ( + + 60, + 35 + - - 43 ) col2 +---- +-115 +2052 query I rowsort SELECT ( 55 ) * 35 + + + 60 * + 7 @@ -42681,8 +43170,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - NULLIF ( 93, ( 27 ) + COUNT ( * ) ) col2, + 73 + + - 24 * 75 AS col2 +---- +-1727 +-93 query I rowsort SELECT DISTINCT 77 * - - 91 AS col1 @@ -43131,8 +43623,11 @@ 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\(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\. +query II valuesort SELECT SUM ( 27 ) * + COUNT ( * ) + - 51 - - 3 / - 9 AS col0, 61 AS col0 +---- +-24 +61 query II rowsort SELECT ALL 70 AS col0, - 45 AS col1 @@ -43158,8 +43653,11 @@ SELECT DISTINCT 78 + - + 37 / + CAST ( - - 67 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\)" at position 0 and "Int64\(83\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 83, 83 +---- +83 +83 query I rowsort label-8232 SELECT NULLIF ( + 83, - + 61 ) * + - CASE + - 76 WHEN + - ( + CAST ( + 3 AS INTEGER ) ) THEN 59 WHEN CAST ( + 18 AS INTEGER ) / - + CAST ( + 76 AS INTEGER ) THEN 36 END + - 25 + 37 AS col0 @@ -43717,8 +44215,11 @@ 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\(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\. +query II valuesort SELECT 3 + 36 * + 42 * - COUNT ( * ) AS col1, 94 + - ( 47 ) col1 +---- +-1509 +47 query II rowsort SELECT - 75, - 88 AS col0 @@ -43751,8 +44252,11 @@ SELECT ALL 54 - + 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 AS col2, + COUNT ( * ) AS col2 +---- +1 +99 query I rowsort label-8346 SELECT ALL + 9 - - CASE + 83 WHEN + 24 + - 0 * - - 33 + + COUNT ( * ) THEN ( - 2 ) * + - MIN ( ALL + 65 ) + 50 END AS col0 @@ -44140,8 +44644,11 @@ SELECT - 65 * + - 82 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 960 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col2" at position 0 and "Int64\(16\) \* \(\- Int64\(\-60\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 AS col2, 16 * - - 60 AS col2 +---- +40 +960 query I rowsort SELECT - 59 + 57 @@ -44151,8 +44658,11 @@ SELECT - 59 + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(9\)\) \* Int64\(57\) \+ Int64\(\-78\) \+ \(\- Int64\(\-2\)\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( + 9 ) * 57 + - 78 + - - 2 AS col1, 19 AS col1 +---- +-19 +19 query I rowsort label-8423 SELECT - CASE - + 11 WHEN 68 THEN CASE + 3 WHEN 12 + + + 34 - + + 17 * - ( - COUNT ( * ) ) * - NULLIF ( + 11, - 5 ) THEN + CAST ( NULL AS INTEGER ) END / 8 WHEN - NULLIF ( + 57, - - CAST ( - 4 AS INTEGER ) * - SUM ( ALL 12 ) ) + - 75 + COUNT ( * ) THEN - NULLIF ( - + 18, + + 40 / + - 85 + + 99 + 55 + CASE - 98 WHEN + 99 THEN + + 70 ELSE 45 END ) END AS col0 @@ -44299,8 +44809,11 @@ SELECT - 36 * + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5986 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* Int64\(\-73\) AS col0" at position 0 and "Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 82 * + - 73 AS col0, - 25 col0 +---- +-25 +-5986 query II rowsort SELECT 39, - 3 AS col1 @@ -44459,8 +44972,11 @@ SELECT - 84 * 1 * + 6 + - 23 / COALESCE ( + ( + 33 ), 46 / - ( 83 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - -6474 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(81\) AS col2" at position 0 and "CAST\(\(\- CASE \(\- Int64\(\-82\)\) WHEN \(\- Int64\(\-58\)\) THEN NULL WHEN \(\- \(\- CAST\(NULL AS Int32\)\)\) THEN NULL ELSE Int64\(68\) \* avg\(Int64\(96\)\) \+ Int64\(12\) \+ Int64\(72\) / Int64\(\-26\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-97\) END\) AS Int32\) \- Int64\(33\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-6474 +81 query I rowsort label-8481 SELECT DISTINCT - CASE COALESCE ( + ( + 7 ), + + 34 ) WHEN + + 71 THEN CAST ( COALESCE ( + ( MIN ( ALL - 26 ) ), + 28 + - 3 ) AS INTEGER ) ELSE + ( 63 ) END + - 40 * + MIN ( - 78 ) @@ -44598,8 +45114,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * - 66 + + 17 col1, + 6 AS col1 +---- +-49 +6 query I rowsort label-8507 SELECT SUM ( + ( + + 94 ) ) col0 @@ -44609,8 +45128,11 @@ SELECT SUM ( + ( + + 94 ) ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-76\) \+ Int64\(59\) \+ Int64\(38\) \+ \(\- \(\- CAST\(NULL AS Float64\)\)\) \+ Int64\(25\) \* Int64\(13\) / Int64\(\-38\) \* Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT COUNT ( * ) AS col1, - 76 + + 59 + + 38 + + - ( - CAST ( NULL AS FLOAT8 ) ) + + 25 * 13 / - 38 * - 25 AS col1 +---- +1 +NULL query I rowsort SELECT ALL 37 + - 20 @@ -44803,8 +45325,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) * 30 AS col1, 78 * - + 22 AS col1 +---- +-1716 +-30 query I rowsort SELECT NULLIF ( + 3, - 54 ) AS col1 @@ -45095,8 +45620,11 @@ SELECT ALL 63 + + COUNT ( DISTINCT 58 ) * - + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 AS col0, + CAST ( NULL AS INTEGER ) AS col0 +---- +32 +NULL query I rowsort label-8602 SELECT 94 + + 10 + - NULLIF ( - - 99, - COUNT ( 88 ) ) + + + 73 AS col1 @@ -45964,8 +46492,12 @@ SELECT + 92 * + ( + + 67 ) # Datafusion - Expected - 62 # Datafusion - Expected - -3534 # 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 "Int64\(\-98\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + + 62 AS col0, + MIN ( DISTINCT - 38 ) * + 93, + - 98 AS col0 +---- +-3534 +-98 +62 query I rowsort label-8768 SELECT ALL 66 * + - CAST ( NULL AS INTEGER ) @@ -46004,8 +46536,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- min\(DISTINCT Int64\(65\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, - MIN ( DISTINCT + 65 ) AS col1 +---- +-65 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -46272,8 +46807,11 @@ SELECT ALL + + 89 + - 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(82\)\) AS col0" at position 0 and "Int64\(\-22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 82 AS col0, - 22 AS col0 +---- +-22 +-82 query I rowsort label-8824 SELECT 97 * + + 10 / COUNT ( * ) AS col1 @@ -46411,8 +46949,11 @@ SELECT ALL NULLIF ( - COUNT ( + 94 ), - + MAX ( DISTINCT 26 ) ) * 29 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- count\(Int64\(\-44\)\)\) WHEN Int64\(63\) THEN Int64\(\-67\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN CAST\(NULL AS Int32\) \+ count\(Int64\(80\)\) THEN NULL END \* Int64\(59\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +29 +NULL query I rowsort label-8851 SELECT ALL 5 * - + COALESCE ( - 36, + CASE CASE 97 WHEN - - 95 + + COALESCE ( + 83, - - 55, - COALESCE ( + 2, - 34 * - - AVG ( + 19 ) * - 31 + + 55 - - ( + + 39 ) / - 97 * - - 39 ) ) - + 22 THEN + - CASE + + 86 WHEN + COUNT ( * ) + + 56 THEN NULL WHEN - - COUNT ( * ) * COUNT ( * ) THEN + 67 * + 95 * - - 45 WHEN + - MIN ( - + 1 ) - + + 51 + 96 - - - 79 / COUNT ( * ) * - CAST ( + + 30 AS INTEGER ) * + 83 THEN NULL ELSE NULL END * - 95 + - 52 END WHEN - 58 * - CAST ( NULL AS INTEGER ) + 31 * + - 98 THEN - 54 WHEN - 23 THEN NULL END * - 20 + + 87, + 21 ) AS col2 @@ -46568,8 +47109,11 @@ SELECT DISTINCT - 55 * - 72 - - COALESCE ( 83, - 6 / 94 ) / - ( + 28 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -149 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* \(\- Int64\(25\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 * - + 25 + + + COUNT ( * ) AS col2, - 49 col2 +---- +-149 +-49 query I rowsort label-8882 SELECT ALL + NULLIF ( - 53, SUM ( 39 ) ) @@ -47691,8 +48235,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( 77, + 34 ) + - 66 col0, 40 * - COUNT ( * ) AS col0 +---- +-40 +11 query II rowsort label-9100 SELECT ALL 66 AS col1, - 21 / + + 97 @@ -47757,8 +48304,11 @@ SELECT 60 * - - 70 AS col0, 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col2" at position 0 and "Int64\(\-32\) \- count\(Int64\(45\)\) / Int64\(\-5\) / \(\- CAST\(CAST\(NULL AS Int32\) \* Int64\(\-34\) AS Float64\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL 92 col2, - 32 - COUNT ( 45 ) / + + ( - 5 ) / - CAST ( CAST ( NULL AS INTEGER ) * - 34 AS FLOAT8 ) AS col2 +---- +92 +NULL # Datafusion - Data was automatically updated based on comparison db results # Datafusion - Previous results: @@ -48157,8 +48707,11 @@ SELECT ALL 15, 94 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(43\), max\(DISTINCT Int64\(6\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( 43, MAX ( DISTINCT + 6 ) ) AS col0, COUNT ( * ) AS col0 +---- +-43 +1 query I rowsort SELECT DISTINCT - 73 - + + 12 @@ -48178,8 +48731,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 60 AS col2, 69 col2 +---- +60 +69 query I rowsort label-9190 SELECT - 14 / - CAST ( + 35 AS INTEGER ) * + 12 @@ -48519,8 +49075,11 @@ SELECT ALL - + MAX ( 80 ) * + - 9 - 55 - + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "Int64\(\-48\) \+ Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 77 AS col0, - 48 + + 11 AS col0 +---- +-37 +77 query I rowsort SELECT ALL ( ( NULLIF ( - 84, 8 ) ) ) @@ -48974,8 +49533,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1362 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* \(\- Int64\(31\)\) \- Int64\(29\) AS col0" at position 0 and "CASE \(\- Int64\(79\)\) WHEN Int64\(\-9\) \+ \(\- Int64\(99\)\) THEN Int64\(70\) WHEN Int64\(\-91\) THEN Int64\(35\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 43 * - + 31 - + 29 AS col0, CASE - ( + + 79 ) WHEN - 9 + - + 99 THEN + 70 WHEN + - 91 THEN + 35 END AS col0 +---- +-1362 +NULL query I rowsort SELECT DISTINCT 88 * + 43 @@ -49446,8 +50008,11 @@ SELECT 19 + 3 + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) / Int64\(\-85\) \* \(\- Int64\(\-66\)\) \* Int64\(\-44\) \- Int64\(\-91\) AS col1" at position 0 and "Int64\(96\) \+ \(\- Int64\(\-63\)\) \+ Int64\(\-83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( - 45 ) / - 85 * - - 66 * + - 44 - - 91 AS col1, 96 + ( - - 63 ) + + - 83 col1 +---- +76 +91 query II rowsort label-9434 SELECT + 98 AS col0, 81 * + - 32 + + + NULLIF ( - MAX ( - 21 ), - - 3 ) + + 70 * + 25 * - 12 * 99 AS col2 @@ -49982,8 +50547,11 @@ SELECT + ( - 9 ) + - 14 / - 75 + - COUNT ( * ) + - - 50 * 37 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1184 # Datafusion - Expected - 818 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ Int64\(53\) \+ Int64\(\-15\) \* Int64\(86\) AS col1" at position 0 and "Int64\(17\) \+ Int64\(89\) \* Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 + 53 + - 15 * + 86 AS col1, 17 + + 89 * 9 AS col1 +---- +-1184 +818 query I rowsort SELECT ALL - - 44 * - 60 AS col2 @@ -50088,8 +50656,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1632 # Datafusion - Expected - -6764 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* \(\- max\(DISTINCT Int64\(51\)\)\) AS col1" at position 0 and "Int64\(89\) \* Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 * - MAX ( DISTINCT 51 ) AS col1, + 89 * - 76 AS col1 +---- +-1632 +-6764 query I rowsort label-9555 SELECT ALL - MIN ( DISTINCT - 12 ) AS col1 @@ -50388,8 +50959,11 @@ SELECT DISTINCT - 79 AS col0, - 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 AS col0, 0 AS col0 +---- +0 +84 query I rowsort label-9612 SELECT ALL + 21 - + 84 + + CASE NULLIF ( + 71, 32 ) WHEN 6 THEN + 2 END + - COUNT ( * ) * + 40 / CASE - + ( 62 ) WHEN - 84 THEN NULL WHEN + + 3 * - AVG ( + 34 ) THEN + COALESCE ( 6, - + 77 + - COUNT ( * ) * + 35 ) + - 85 ELSE - COUNT ( * ) END AS col2 @@ -50801,8 +51375,11 @@ SELECT + + 39 / MAX ( DISTINCT + 22 ) + + 6 / + - 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 463 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* Int64\(7\) \+ Int64\(13\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 68 * + 7 + 13 * - COUNT ( * ) AS col0, + COUNT ( * ) AS col0 +---- +1 +463 query I rowsort SELECT - 68 * - 37 AS col2 @@ -51353,8 +51930,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col2" at position 0 and "Int64\(13\) \- Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 40 AS col2, 13 - + 74 AS col2 +---- +-61 +40 query I rowsort label-9798 SELECT ALL CAST ( SUM ( + + 30 ) AS INTEGER ) + - - ( 89 ) AS col0 @@ -51982,8 +52562,11 @@ SELECT 1 * + 16 * - 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(8\), Int64\(61\), \(\- CAST\(Int64\(23\) AS Int32\)\) \+ Int64\(52\)\)\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COALESCE ( 8, + 61, - CAST ( + + 23 AS INTEGER ) + 52 ) AS col2, 95 AS col2 +---- +-8 +95 query II rowsort SELECT 98 col0, + 32 AS col2 @@ -52098,8 +52681,12 @@ SELECT ALL COUNT ( * ) * + 3 AS col0, + CAST ( + 2 AS INTEGER ) + 59 # Datafusion - Expected - -8446 # Datafusion - Expected - -462840 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(\-95\) \* Int64\(56\) AS col0" at position 1 and "CAST\(NULL AS Int32\) \- \(\- \(\- coalesce\(\(\- Int64\(\-5\)\), max\(Int64\(4\)\), Int64\(99\)\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 55 / + 85 + - - 55 - 82 * 26 * + 4 + - - 28 + + 69 / + - 65 * + COUNT ( + ( 74 ) ), 87 * - 95 * + 56 AS col0, + CAST ( NULL AS INTEGER ) - - - COALESCE ( - - 5, MAX ( ALL + + 4 ), + 99 ) AS col0 +---- +-462840 +-8446 +NULL query I rowsort SELECT DISTINCT 59 * + 8 AS col2 @@ -52210,8 +52797,11 @@ SELECT ALL - 55 / - 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(Int64\(\-84\), \(\- CAST\(Int64\(26\) AS Int32\)\)\)\)\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( + NULLIF ( - 84, - CAST ( + 26 AS INTEGER ) ) ) AS col2, + 21 col2 +---- +-84 +21 query I rowsort label-9960 SELECT - 6 * - MAX ( ALL + 2 ) * - 64 - + CAST ( NULL AS INTEGER ) @@ -52411,8 +53001,11 @@ SELECT + - ( 92 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 1125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) / max\(CAST\(Int64\(4\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-25\) \* Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 26 / MAX ( CAST ( 4 AS INTEGER ) ) AS col2, - 25 * + - 45 AS col2 +---- +-6 +1125 query I rowsort label-9998 SELECT + COALESCE ( + 32, - + CAST ( NULL AS INTEGER ) * + - 48 * + - 59 + + 15 * + 31 * + ( 94 ) ) + + - MAX ( ALL + 88 ) AS col0 diff --git a/data/sqlite/random/expr/slt_good_78.slt b/data/sqlite/random/expr/slt_good_78.slt index f9c04c6..bd5b076 100644 --- a/data/sqlite/random/expr/slt_good_78.slt +++ b/data/sqlite/random/expr/slt_good_78.slt @@ -437,8 +437,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 37 AS col0, + 64 AS col0 +---- +-37 +64 query I rowsort SELECT DISTINCT + 16 - 12 AS col2 @@ -790,8 +793,11 @@ SELECT ALL + NULLIF ( - + 6, + - 90 + + 34 ) + + 66 * - 35 * + + 12 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -110678 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "Int64\(63\) \* Int64\(48\) \* CASE Int64\(63\) WHEN Int64\(48\) / \(\- nullif\(coalesce\(CASE nullif\(Int64\(39\), Int64\(\-69\)\) WHEN \(\- \(\- nullif\(CASE Int64\(58\) WHEN Int64\(\-4\) \* Int64\(\-22\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE Int64\(\-87\) END, Int64\(36\) \+ Int64\(2\) \* Int64\(99\) \* Int64\(42\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-54\) \+ \(\- max\(Int64\(13\)\)\) THEN NULL END, Int64\(66\) \+ Int64\(78\) \+ Int64\(64\) \+ Int64\(38\) \* Int64\(37\)\), \(\- sum\(Int64\(\-81\)\)\) \- Int64\(\-4\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\) \* min\(Int64\(73\)\) THEN Int64\(\-99\) WHEN CAST\(NULL AS Int32\) \+ Int64\(\-41\) THEN Int64\(72\) ELSE Int64\(\-37\) END \+ Int64\(55\) \* Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-110678 +16 query I rowsort SELECT + 21 + 76 @@ -822,8 +828,11 @@ SELECT ALL + 66 col1, - 56 # 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\) AS col2" at position 0 and "Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 58 AS col2, - 89 AS col2 +---- +-89 +58 query II rowsort label-149 SELECT + - 99, - 53 + - + COUNT ( * ) * + 32 AS col0 @@ -909,8 +918,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) / - 32 AS col2, 46 + 95 AS col2 +---- +0 +141 query I rowsort SELECT 94 * - 10 AS col0 @@ -1107,8 +1119,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1358 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* Int64\(30\) \+ Int64\(8\) AS col0" at position 0 and "Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 * 30 + 8 AS col0, 16 AS col0 +---- +1358 +16 query I rowsort label-202 SELECT ALL 4 * + COALESCE ( + 49, 33 * + CAST ( - 93 AS INTEGER ) * - 47, - - CASE 10 WHEN + COALESCE ( + COALESCE ( + + 26, + ( + 11 ), 43 - + 93, + COUNT ( * ) ), - - AVG ( ALL + - 54 ) * + 42 ) THEN - 70 ELSE NULL END ) * - - 32 AS col2 @@ -1694,8 +1709,11 @@ SELECT + COUNT ( * ) - - - 46 * 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col2" at position 0 and "\(\- Int64\(57\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 98 AS col2, ( - + 57 ) col2 +---- +-57 +98 query I rowsort label-315 SELECT DISTINCT NULLIF ( - 27, 15 - 24 + - 15 - ( + MAX ( + 11 ) ) * + 45 * 97 ) @@ -2002,8 +2020,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -826 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \* \(\- \(\- CAST\(Int64\(\-10\) AS Int32\)\)\) \+ \(\- \(\- nullif\(Int64\(65\), Int64\(\-16\)\)\)\) \- count\(Int64\(\-26\)\) AS col0" at position 0 and "Int64\(5\) / \(\- Int64\(27\)\) \+ Int64\(\-2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 89 * - - CAST ( - 10 AS INTEGER ) + - - NULLIF ( + 65, - 16 ) - COUNT ( ALL - 26 ) AS col0, + 5 / - + 27 + - 2 AS col0 +---- +-2 +-826 query I rowsort label-375 SELECT DISTINCT NULLIF ( 59, 35 * + ( 62 ) * - 11 ) * - + 30 * - - 84 * + 28 * - 81 * COUNT ( * ) + 63 @@ -2058,8 +2079,11 @@ SELECT 58 - 25 * COUNT ( * ) + + 58 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 38 AS col0, 4 AS col0 +---- +38 +4 query II rowsort label-386 SELECT COUNT ( * ) * + + 47 AS col0, - CAST ( + - 71 AS INTEGER ) @@ -2223,8 +2247,12 @@ SELECT SUM ( DISTINCT + + 95 ) * - 40 * + + NULLIF ( - - 43, - 67 * + 29 / - 21 # Datafusion - Expected - 70 # Datafusion - Expected - 129266 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-70\)\) AS col1" at position 0 and "Int64\(\-18\) \+ Int64\(12\) \+ Int64\(\-80\) \+ \(\- Int64\(92\)\) \* \(\- Int64\(\-19\)\) \* \(\- Int64\(74\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - - 70 AS col1, - 18 + + 12 + + - 80 + - + 92 * - - 19 * - + 74 AS col1, + + 18 * + 1 AS col2 +---- +129266 +18 +70 query I rowsort label-417 SELECT ALL + - CAST ( + 16 AS INTEGER ) * - + SUM ( 26 ) @@ -2435,8 +2463,11 @@ SELECT ALL 69 + - CAST ( + - 99 AS INTEGER ) + - 29 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 4356 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col2" at position 0 and "Int64\(66\) \* Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 52 AS col2, + 66 * + 66 col2 +---- +4356 +52 query I rowsort label-458 SELECT + CASE CAST ( NULL AS INTEGER ) WHEN + 30 * + 52 THEN NULL ELSE - COUNT ( ALL 45 ) * + - CAST ( NULL AS INTEGER ) END - - 75 + + 90 @@ -4033,8 +4064,11 @@ SELECT 52 - 99 + - 76 * - COUNT ( * ) # 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\(0\) \* \(\- Int64\(9\)\) AS col1" at position 0 and "Int64\(\-8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 0 * - + 9 AS col1, - 8 AS col1 +---- +-8 +0 query II rowsort label-768 SELECT 26 * 32, - 7 / ( MAX ( DISTINCT 20 ) ) AS col0 @@ -4143,8 +4177,11 @@ SELECT DISTINCT 69 * + - 54 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 col2" at position 0 and "count\(\(\- Int64\(90\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 69 AS col2, COUNT ( ALL - + 90 ) AS col2 +---- +-69 +1 query I rowsort label-788 SELECT 3 * + - 93 - + CASE + 74 WHEN + 84 THEN + + 90 * + 40 * - - CASE - COUNT ( * ) WHEN + 50 THEN + 4 END WHEN NULLIF ( + 51, - 97 ) THEN NULL ELSE 78 END AS col2 @@ -4159,8 +4196,11 @@ SELECT 27 + 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col1" at position 0 and "Int64\(96\) \* \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) / Int64\(50\) \+ Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 79 AS col1, 96 * ( - CAST ( - COUNT ( * ) AS INTEGER ) ) / + + 50 + 91 AS col1 +---- +79 +92 query I rowsort SELECT ALL 81 - - 99 @@ -4470,8 +4510,11 @@ SELECT ALL COUNT ( * ) / - 96 + - + 98 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - -149 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(68\)\) AS col1" at position 0 and "Int64\(\-92\) \- Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - ( + 68 ) AS col1, - 92 - + 57 AS col1 +---- +-149 +-68 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -4733,8 +4776,11 @@ SELECT - 46 * + COUNT ( * ) + + 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -171 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) / \(\- max\(Int64\(74\)\)\) AS col2" at position 0 and "Int64\(\-94\) \+ Int64\(\-77\) \* Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 22 ) / + - MAX ( 74 ) AS col2, - 94 + - 77 * 1 AS col2 +---- +-171 +0 query I rowsort SELECT 62 * 58 @@ -5173,8 +5219,11 @@ SELECT + 28 + - - 92 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - -1012 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(82\)\) AS col1" at position 0 and "Int64\(\-92\) \* Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 82 AS col1, - 92 * 11 AS col1 +---- +-1012 +-82 query I rowsort label-983 SELECT + + 36 + + ( - COUNT ( * ) ) / - 94 @@ -5292,8 +5341,11 @@ SELECT DISTINCT + 39 * + CASE + - 46 WHEN + + CASE 67 WHEN - + ( + NULLIF ( + CO # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 5400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) / Int64\(13\) AS col0" at position 0 and "Int64\(90\) \* \(\- Int64\(\-60\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 85 / + 13 AS col0, + 90 * - - 60 col0 +---- +-6 +5400 query I rowsort label-1006 SELECT - - 6 * - COUNT ( * ) @@ -5394,8 +5446,11 @@ 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 col0" at position 0 and "Int64\(95\) / Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 10 col0, + 95 / 69 col0 +---- +1 +10 query I rowsort label-1026 SELECT CAST ( + 78 AS INTEGER ) * + + 57 + 5 @@ -5717,8 +5772,11 @@ SELECT ALL - COUNT ( * ) AS col0, + 66 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 6603 -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\(31\) \* \(\- Int64\(\-53\)\) \+ \(\- Int64\(80\)\) \* Int64\(\-62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( - 27 ) AS col2, 31 * - - 53 + + - ( 80 ) * - 62 AS col2 +---- +1 +6603 query I rowsort label-1087 SELECT + 40 - + + 1 + CASE WHEN NULLIF ( - + SUM ( DISTINCT - 0 ), + - 85 * + 98 ) > + 41 + + 45 THEN CAST ( - - ( 68 ) AS INTEGER ) * + + 11 / 96 WHEN NOT ( 58 + - 82 ) IS NULL THEN NULL END @@ -6149,8 +6207,11 @@ SELECT 20 + - 51 * - - 14 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -440519 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(72\)\) \* Int64\(26\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-81\) \+ Int64\(\-87\) \* Int64\(\-71\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(71\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 72 * 26 + + COUNT ( * ) + - 81 + + - 87 * + ( - 71 ) * - COUNT ( * ) * + ( + 71 ) AS col2, COUNT ( * ) AS col2 +---- +-440519 +1 query I rowsort SELECT ( + 15 ) - 61 * + 60 @@ -6307,8 +6368,11 @@ SELECT + 49 + + 68 * + + 60 # 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 "Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 52 AS col1, + 1 AS col1 +---- +1 +52 query I rowsort SELECT + 26 + 94 + - 37 @@ -6458,8 +6522,11 @@ SELECT ALL + 2 * - 74 + 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(58\) \+ coalesce\(Int64\(23\), Int64\(36\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(57\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col2, + 58 + + COALESCE ( + 23, + 36 - - COUNT ( * ) + + + ( 57 ) ) AS col2 +---- +81 +NULL query I rowsort SELECT DISTINCT - 69 * 89 - 35 @@ -6534,8 +6601,11 @@ 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\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-11\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 0 AS col1, - COUNT ( * ) * - - 11 AS col1 +---- +-11 +0 query I rowsort label-1240 SELECT ALL + 23 * - NULLIF ( + 55, + 23 ) + 24 + + 36 / - 81 @@ -6561,8 +6631,11 @@ SELECT + ( - MAX ( ALL - 88 ) ) # 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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 6 AS col1, - 15 AS col1 +---- +-15 +-6 query I rowsort label-1245 SELECT ALL - 91 / - CAST ( + CAST ( 93 AS INTEGER ) AS INTEGER ) + + 18 * COUNT ( * ) / + 80 + + 50 @@ -6757,8 +6830,11 @@ SELECT ALL 22 / - 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "Int64\(24\) \* \(\- Int64\(2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 53 col1, + 24 * ( - + 2 ) AS col1 +---- +-48 +53 query II rowsort label-1282 SELECT - 84 * 74 + - 80 * + COALESCE ( COUNT ( * ), - - 91 / 7 ) * 27 AS col2, - 26 @@ -6806,8 +6882,11 @@ SELECT 50 + - + 94 - + - 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -38880 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col2" at position 0 and "Int64\(20\) \* Int64\(54\) \* Int64\(\-36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 3 AS col2, + 20 * 54 * + - 36 AS col2 +---- +-38880 +3 query I rowsort label-1291 SELECT ALL + COUNT ( * ) * + + 65 / - CAST ( NULL AS INTEGER ) AS col0 @@ -7253,8 +7332,11 @@ 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\(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\. +query II valuesort 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 +---- +175 +NULL query I rowsort label-1378 SELECT DISTINCT - ( ( 9 ) ) * + - 54 + COUNT ( * ) AS col1 @@ -7264,8 +7346,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COALESCE ( + ( + - 84 ), + + 67 * COUNT ( * ) ) AS col0, 84 AS col0 +---- +-84 +84 query I rowsort SELECT DISTINCT 99 - + 4 AS col2 @@ -7378,8 +7463,11 @@ SELECT ( + ( + 70 ) ) * - + 84 AS col1, 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) / Int64\(39\) \* Int64\(24\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 / + 39 * 24 + + CAST ( NULL AS INTEGER ) AS col0, 54 AS col0 +---- +54 +NULL query I rowsort label-1402 SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 52 AS col0 @@ -7453,8 +7541,12 @@ SELECT + 26 * + - COUNT ( * ) AS col2 # Datafusion - Expected - -65 # Datafusion - Expected - 5 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(65\)\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - + 65 AS col2, 5 col2, 18 +---- +-65 +18 +5 query I rowsort label-1416 SELECT + 72 * + 14 + - - MIN ( - + 60 ) col1 @@ -7650,8 +7742,11 @@ SELECT - 35 - + COALESCE ( CASE - 4 WHEN + ( 76 ) + AVG ( + + 40 ) THEN - - COUN # Datafusion - Datafusion expected results: # Datafusion - Expected - 105 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(21\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 5 * 21 col0, 8 AS col0 +---- +105 +8 query II rowsort label-1453 SELECT DISTINCT - ( 12 ), CAST ( NULL AS INTEGER ) AS col0 @@ -8087,8 +8182,11 @@ SELECT ( 94 ) * + 35, - 60 + 23 + ( + 24 ) + + - 2 * COUNT ( * ) + - 45 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 36 AS col1, 66 AS col1 +---- +-36 +66 query I rowsort SELECT ALL - 28 - - ( + + 56 ) * - + 90 + + - 64 @@ -8131,8 +8229,11 @@ SELECT 93 / - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -11438 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col0" at position 0 and "Int64\(86\) \* Int64\(7\) \* Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 94 AS col0, 86 * + + 7 * - 19 AS col0 +---- +-11438 +94 query I rowsort SELECT ALL - - 80 + + 61 AS col0 @@ -8204,8 +8305,11 @@ SELECT COUNT ( * ) + + - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 AS col0, - 38 AS col0 +---- +-38 +42 query II rowsort SELECT ALL - 8, - 17 * + 56 AS col2 @@ -8294,8 +8398,11 @@ SELECT DISTINCT - 78 + 50 * + 19 + + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, 98 AS col0 +---- +1 +98 query II rowsort label-1575 SELECT + CASE - - 97 WHEN + 61 - + 93 THEN + + 69 WHEN 60 + - - 37 THEN + 85 + COUNT ( * ) ELSE NULL END col1, - 37 * + 65 + - 63 @@ -8576,14 +8683,20 @@ SELECT ALL - 69 + - 5 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 0 and "Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 AS col2, - 2 AS col2 +---- +-2 +35 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 93264 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col2" at position 0 and "Int64\(16\) \* Int64\(\-67\) \* Int64\(\-87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 AS col2, 16 * + - 67 * + - 87 AS col2 +---- +87 +93264 query II rowsort label-1629 SELECT + 89 col2, + SUM ( + + 9 ) @@ -8657,8 +8770,11 @@ SELECT DISTINCT + COUNT ( ALL - + 12 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5514 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \- Int64\(30\) \+ max\(Int64\(\-59\)\) \* \(\- Int64\(\-93\)\) AS col2" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \+ Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 - + 30 + MAX ( + ( - 59 ) ) * - - 93 AS col2, + CAST ( + - COUNT ( * ) AS INTEGER ) + 49 AS col2 +---- +-5514 +48 query I rowsort label-1643 SELECT DISTINCT - + COUNT ( * ) * - 59 @@ -8680,8 +8796,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, + NULLIF ( - + 25, + 9 ) AS col1 +---- +-1 +-25 query I rowsort label-1647 SELECT + - CASE - 21 WHEN + - 16 * + 12 THEN - 68 * - 57 * - + 2 * + COUNT ( * ) + + 57 WHEN + + 30 THEN NULL END AS col1 @@ -9143,8 +9262,11 @@ SELECT + 28 - + 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 11 col2, + 84 AS col2 +---- +11 +84 query I rowsort label-1735 SELECT + 41 + COUNT ( * ) * - 71 + + + 73 AS col1 @@ -9436,8 +9558,11 @@ SELECT ALL 19 * + COUNT ( * ) * - 16 * - NULLIF ( 31, - 11 ) * 72 * + 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 col2, 86 AS col2 +---- +77 +86 query II rowsort SELECT DISTINCT + 61 * + - 64 + - + 95 + - 79 + - 24 * + 13 + - + 57 * + 64, 44 col0 @@ -9603,8 +9728,11 @@ SELECT - 79 + + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5688 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(72\) AS col1" at position 0 and "Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 79 * 72 col1, 24 AS col1 +---- +24 +5688 query I rowsort label-1823 SELECT ALL ( MIN ( - + 60 ) ) AS col0 @@ -10044,8 +10172,12 @@ SELECT + COUNT ( * ) * - - 84 AS col2 # Datafusion - Expected - -70 # Datafusion - Expected - -44 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col2" at position 1 and "Int64\(\-86\) / Int64\(\-29\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 23 + - NULLIF ( + 93, + - 44 + - 69 * + 42 ) AS col1, - 44 AS col2, - 86 / - 29 AS col2 +---- +-44 +-70 +2 query I rowsort SELECT ALL + 58 - 99 @@ -10080,8 +10212,11 @@ SELECT 62 * 52 + - 61 + - 56 + + - CAST ( - - COUNT ( * ) AS INTEGER ) + + 55 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col2" at position 0 and "Int64\(1\) \* \(\- nullif\(CAST\(NULL AS Int32\), Int64\(\-31\) / Int64\(69\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 92 col2, + 1 * - + NULLIF ( + CAST ( NULL AS INTEGER ), - 31 / + 69 ) AS col2 +---- +-92 +NULL query I rowsort label-1916 SELECT ALL - 12 * ( - 22 ) + + + CAST ( + 84 AS INTEGER ) AS col2 @@ -10458,8 +10593,11 @@ SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) - + + 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8265 # Datafusion - Expected - 836 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* Int64\(87\) \* coalesce\(\(\- count\(Int64\(85\)\)\), Int64\(95\) \* \(\- Int64\(\-48\)\)\) AS col0" at position 0 and "Int64\(76\) \* \(\- \(\- Int64\(13\)\)\) \+ Int64\(18\) \+ CASE \(\- CAST\(NULL AS Int32\)\) WHEN CASE Int64\(42\) WHEN Int64\(34\) THEN Int64\(4\) \* Int64\(\-62\) \- sum\(CAST\(Int64\(56\) AS Int32\)\) END THEN NULL WHEN Int64\(13\) THEN Int64\(\-75\) ELSE Int64\(19\) \* Int64\(27\) \+ Int64\(\-58\) / Int64\(\-98\) END / Int64\(\-3\) \* count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-8265 +836 query I rowsort SELECT ALL + ( + 7 ) * + 33 AS col1 @@ -10474,14 +10612,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- min\(Int64\(32\)\)\)\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - MIN ( 32 ) AS col0, 49 AS col0 +---- +32 +49 # 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 "Int64\(59\) / Int64\(48\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 59 / 48 AS col1, 64 AS col1 +---- +1 +64 query I rowsort label-1991 SELECT ALL - 35 / - MIN ( + + ( 65 ) ) * + + 14 - 72 + - 53 @@ -10684,8 +10828,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) col1, 18 AS col1 +---- +-1 +18 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -11111,14 +11258,20 @@ SELECT + 35 / + 47 * + 62 # 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 "Int64\(30\) AS col1" at position 0 and "Int64\(95\) \+ Int64\(\-65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( 30 ) AS col1, 95 + - 65 AS col1 +---- +30 +30 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 300 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) AS col0" at position 0 and "Int64\(75\) \* Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 47 AS col0, 75 * + + 4 AS col0 +---- +-47 +300 query I rowsort label-2110 SELECT COUNT ( * ) + + ( + - COUNT ( * ) ) - - - ( + + 36 ) AS col0 @@ -11128,8 +11281,11 @@ SELECT COUNT ( * ) + + ( + - COUNT ( * ) ) - - - ( + + 36 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "CAST\(Int64\(1\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 51 AS col2, ( + CAST ( 1 AS INTEGER ) ) AS col2 +---- +1 +51 query II rowsort label-2112 SELECT ALL 3 AS col1, - MIN ( DISTINCT - 84 ) + + 60 AS col0 @@ -12759,8 +12915,11 @@ SELECT ALL ( + - 18 ) * - 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5841 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(99\) AS Int32\) \* Int64\(\-59\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( 99 AS INTEGER ) * - 59 AS col0, COUNT ( * ) col0 +---- +-5841 +1 query I rowsort SELECT + 77 - + ( - 63 ) AS col0 @@ -12850,8 +13009,11 @@ SELECT - CAST ( + 26 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4069 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) \+ Int64\(75\) \* Int64\(56\) \- Int64\(40\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 91 + 75 * 56 - + 40 AS col1, 27 AS col1 +---- +27 +4069 query II rowsort label-2447 SELECT ALL - 70 / ( ( - 38 ) ), + 33 * MIN ( + 58 ) AS col0 @@ -12910,8 +13072,11 @@ SELECT + NULLIF ( - 72, + - COUNT ( * ) ) * NULLIF ( - + 14, + 66 ) col1, - 90 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 99 AS col0, 14 AS col0 +---- +14 +99 query I rowsort label-2458 SELECT + MIN ( - - 93 ) * 67 @@ -13012,8 +13177,11 @@ SELECT ALL 73 + - NULLIF ( + NULLIF ( - COUNT ( * ), - 70 - + - 91 - 62 * - + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) \* Int64\(47\) / Int64\(19\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) * + 47 / + 19 AS col2, 84 AS col2 +---- +-2 +84 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -13207,8 +13375,11 @@ SELECT ( - 29 ) + + CAST ( - COUNT ( * ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 75 AS col2, + CAST ( NULL AS INTEGER ) AS col2 +---- +75 +NULL query I rowsort label-2512 SELECT - MIN ( ALL + 74 ) @@ -13349,8 +13520,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 AS col1, + 11 + - - COALESCE ( - 17, - 6, + + COUNT ( * ) ) AS col1 +---- +-6 +47 query I rowsort label-2539 SELECT DISTINCT COALESCE ( - - 77, + NULLIF ( + - ( + 18 ), - MAX ( 91 ) ) ) @@ -13637,8 +13811,11 @@ SELECT - 46 * - NULLIF ( 24, - - CASE COUNT ( * ) WHEN + 94 * - 25 + + - 96 THEN # 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\(\-24\) \+ Int64\(51\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 24 + + 51 AS col2, 42 col2 +---- +27 +42 query I rowsort SELECT 30 * + COALESCE ( ( 36 ), ( - 87 ) ) * + 48 + - 94 + - - 59 @@ -13956,8 +14133,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + + 88 ) AS col2, 41 AS col2 +---- +41 +88 query I rowsort label-2654 SELECT - - 90 + MIN ( - 70 ) / NULLIF ( - + 9, + 69 / - 54 + - - 82 + + 81 ) * + + 56 @@ -14171,8 +14351,11 @@ SELECT ALL + MAX ( ALL - - 84 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(8\) AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(68\)\)\) \* \(\- Int64\(\-66\)\) \+ Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( + 8 AS INTEGER ) AS col2, - COUNT ( ALL + 68 ) * - - 66 + + + 93 AS col2 +---- +27 +8 query II rowsort SELECT ALL + 92, - 90 * 60 * 28 * - + 44 AS col2 @@ -14326,8 +14509,12 @@ NULL # Datafusion - Expected - -78 # Datafusion - Expected - 2 # Datafusion - Expected - -948 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 78 AS col0, + 2 AS col0, + 41 * + - 22 + - 46 AS col0 +---- +-78 +-948 +2 query I rowsort SELECT ALL - ( + - 15 ) + + 98 + - 64 col0 @@ -14727,8 +14914,11 @@ SELECT - NULLIF ( 68, + 74 ) - + 4 - + 30 - - - COUNT ( * ) * 40 * 4 / 69 * - MA # Datafusion - Datafusion expected results: # Datafusion - Expected - 179 # Datafusion - Expected - -2291 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) \+ Int64\(\-32\) \* Int64\(3\) \+ Int64\(2\) \* Int64\(2\) \* Int64\(72\) AS col0" at position 0 and "Int64\(79\) \* Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 13 + + - 32 * + 3 + + 2 * 2 * 72 col0, 79 * + - 29 AS col0 +---- +-2291 +179 query II rowsort label-2799 SELECT ALL - SUM ( DISTINCT + COALESCE ( 74, 2, 67 ) ) - - 54 AS col1, + 68 @@ -14886,8 +15076,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + NULLIF ( - + 72, 89 + - + 80 + - 70 ) AS col0, - COUNT ( * ) AS col0 +---- +-1 +-72 query I rowsort label-2829 SELECT ALL + 74 * 16 + - 45 + + COALESCE ( + 13, + 52 + + - ( 77 ), - 19 + - 31 ) / - 96 @@ -15358,8 +15551,11 @@ SELECT + 49 * - + 15, 15 AS col2, - ( + SUM ( 79 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 120 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \+ Int64\(5\) \- Int64\(\-61\) AS col2" at position 0 and "\(\- CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN Int64\(\-89\) THEN \(\- Int64\(\-14\)\) \* \(\- Int64\(\-25\)\) \+ \(\- coalesce\(Int64\(\-61\), Int64\(\-36\) \* Int64\(62\)\)\) \* \(\- CAST\(Int64\(31\) AS Int32\)\) \+ Int64\(15\) \* min\(Int64\(72\)\) WHEN Int64\(90\) THEN Int64\(40\) END\) \+ Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +120 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -15598,8 +15794,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 AS col1, COUNT ( * ) / + 68 AS col1 +---- +-20 +0 query I rowsort label-2962 SELECT DISTINCT COUNT ( * ) * - 36 @@ -16027,8 +16226,11 @@ SELECT - 96 / 83 + 61 + + SUM ( ALL 97 ) * 57 # 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 "Int64\(43\) AS col2" at position 0 and "Int64\(36\) \+ \(\- count\(Int64\(49\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 43 AS col2, 36 + - COUNT ( 49 ) AS col2 +---- +35 +43 query I rowsort SELECT + 84 + - + 53 + - 14 @@ -16412,8 +16614,11 @@ 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\(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\. +query II valuesort SELECT ALL 64 * + COUNT ( * ) * + 82 col1, + 85 - - SUM ( ALL - + 59 ) + + ( + + 95 ) + + 66 AS col1 +---- +187 +5248 query I rowsort SELECT ALL - ( 0 ) AS col1 @@ -16854,8 +17059,11 @@ 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\(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\. +query II valuesort 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 +---- +-2 +592 query I rowsort SELECT DISTINCT + 26 * + + 4 @@ -17113,8 +17321,11 @@ SELECT 19 + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 AS col0, 17 AS col0 +---- +17 +62 query I rowsort SELECT + 92 * 63 + + 71 @@ -17690,8 +17901,11 @@ SELECT ALL - SUM ( DISTINCT + - 54 ) - - 51 + 27 * + + 43 * + 69 AS col1, 28 # 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\(65\) AS col2" at position 0 and "Int64\(\-80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 AS col2, - 80 AS col2 +---- +-80 +65 query I rowsort label-3360 SELECT DISTINCT + COUNT ( + + 29 ) AS col1 @@ -17741,8 +17955,11 @@ SELECT + 83 + - 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, - 53 AS col2 +---- +-53 +1 query I rowsort SELECT + 96 + 53 * + 3 * + 78 * - 3 * - 84 AS col2 @@ -17804,8 +18021,11 @@ SELECT DISTINCT 43 * - + ( 37 ) * + + 66 + + + NULLIF ( - COUNT ( * ), + 40 - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 819 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* Int64\(9\) AS col2" at position 0 and "Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 91 * 9 AS col2, - 63 AS col2 +---- +-63 +819 query II rowsort label-3382 SELECT ALL + 40 * ( 92 ) + - 43 + - 87 * MAX ( - 47 ) * 33 AS col2, + COUNT ( * ) * - + 80 AS col1 @@ -17861,8 +18081,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 87 - - 40 / - + 82 * ( + 89 ) AS col1, + COALESCE ( - 89, SUM ( + 34 ), - COUNT ( * ) + + COALESCE ( + + 63, + COUNT ( * ), - 81 ) ) AS col1 +---- +-89 +87 query I rowsort label-3393 SELECT ALL MAX ( - 71 ) / + + 85 * - + 2 AS col1 @@ -18423,8 +18646,11 @@ SELECT ALL NULLIF ( 85, + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 26 col1, 96 AS col1 +---- +-26 +96 query I rowsort SELECT DISTINCT NULLIF ( 51, + 65 ) @@ -18604,8 +18830,11 @@ SELECT DISTINCT COALESCE ( + + NULLIF ( - COUNT ( * ), - 1 ), COUNT ( * ) * + CO # 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 "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 67 AS col2, 71 AS col2 +---- +-67 +71 query I rowsort label-3532 SELECT DISTINCT - COALESCE ( - 88, + COUNT ( * ) + 55 + + 1 + 80, ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) - MAX ( + 43 ) - - 78 + 75 / + + 98 ) / - 1 + - 23 / - ( + 88 ) AS col1 @@ -19201,8 +19430,11 @@ SELECT DISTINCT + - ( - - 52 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -880 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* Int64\(55\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- min\(Int64\(21\)\)\) \+ coalesce\(Int64\(22\), coalesce\(Int64\(\-81\), Int64\(99\)\) \+ Int64\(30\)\) \* Int64\(78\) \+ \(\- Int64\(28\)\) \+ Int64\(59\) AS col2" at position 0 and "Int64\(\-10\) \* \(\- Int64\(\-88\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 * 55 * - CAST ( NULL AS INTEGER ) * - MIN ( + 21 ) + + + COALESCE ( + 22, + COALESCE ( + - 81, 99 ) + 30 ) * 78 + - + 28 + + 59 AS col2, - 10 * - - 88 AS col2 +---- +-880 +NULL query I rowsort label-3643 SELECT + + 37 / + + 4 + - 22 + - 17 @@ -19344,8 +19576,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - -1482 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "Int64\(38\) \* Int64\(\-39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 53 AS col1, + 38 * - 39 col1 +---- +-1482 +53 query I rowsort SELECT + + COALESCE ( ( + - 16 ), + + 42 + + + 24 ) + - 44 * + - 57 AS col1 @@ -19396,8 +19631,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3021 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(53\)\)\) \* CAST\(sum\(DISTINCT Int64\(57\)\) AS Int32\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( + 53 ) * + CAST ( + SUM ( DISTINCT + + 57 ) AS INTEGER ) AS col2, 61 AS col2 +---- +-3021 +61 query I rowsort SELECT + 69 * 54 * + - 48 @@ -20041,8 +20279,11 @@ SELECT ALL + COUNT ( * ) * - + COALESCE ( + 7, - 38 - - + 95 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3840 # Datafusion - Expected - -3407 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \* Int64\(\-80\) AS col2" at position 0 and "Int64\(38\) \* \(\- max\(Int64\(89\)\)\) \+ Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 48 * - 80 AS col2, 38 * + - MAX ( + + 89 ) + + - 25 AS col2 +---- +-3407 +3840 query I rowsort label-3803 SELECT ALL - COUNT ( * ) * 72 AS col0 @@ -20072,8 +20313,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 * 14 + 12 * + 10 AS col1, - COUNT ( * ) AS col1 +---- +-1 +540 query I rowsort label-3809 SELECT + COUNT ( * ) * - 17 col1 @@ -20111,8 +20355,11 @@ SELECT ALL COALESCE ( + 22, + 54 + - - 66, + - 27 + + 93 ) * 49 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(65\) \* Int64\(12\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ) + 65 * 12 AS col1, + 19 AS col1 +---- +19 +NULL query I rowsort SELECT ( - 41 ) * 18 + 94 @@ -20138,8 +20385,11 @@ SELECT ALL + - SUM ( - ( - 33 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* count\(Int64\(50\)\) AS col2" at position 0 and "Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + + 67 ) * COUNT ( 50 ) AS col2, - 74 AS col2 +---- +-74 +67 query I rowsort SELECT ALL + ( 99 ) AS col0 @@ -20159,8 +20409,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) / + 44 AS col0, 65 AS col0 +---- +0 +65 query I rowsort label-3825 SELECT ALL 42 * - 20 * COUNT ( + 53 ) - - 76 - + 51 @@ -21424,8 +21677,11 @@ SELECT 92 + COUNT ( * ) - 78 * COUNT ( * ) + + NULLIF ( ( - COUNT ( * ) ), - 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1680 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* \(\- Int64\(56\)\) AS col2" at position 0 and "Int64\(30\) \+ Int64\(0\) \* Int64\(0\) \* Int64\(\-5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 * - + 56 AS col2, + 30 + + 0 * + - 0 * - 5 AS col2 +---- +-1680 +30 query I rowsort SELECT ALL - ( + - 0 ) + - + 45 col1 @@ -22188,8 +22444,11 @@ SELECT ALL + 25 + + 16 * - 66 * + 22 * ( + 51 ) * COUNT ( * ) * CAST ( + 99 AS I # 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 "Int64\(62\) AS col2" at position 0 and "Int64\(72\) \+ Int64\(4\) \+ Int64\(\-6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 62 AS col2, 72 + 4 + - 6 AS col2 +---- +62 +70 query I rowsort SELECT ALL + - 63 * 0 * - + NULLIF ( 95, 12 ) * + - 74 + 76 AS col1 @@ -22432,8 +22691,11 @@ SELECT ALL - 42 * - 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3999 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-85\) WHEN \(\- Int64\(58\)\) THEN Int64\(78\) \+ Int64\(61\) ELSE NULL END \- \(\- sum\(Int64\(\-48\)\)\) AS col1" at position 0 and "Int64\(\-93\) \* Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CASE - 85 WHEN + ( - + 58 ) THEN + 78 + 61 ELSE NULL END - - + SUM ( - 48 ) AS col1, - 93 * 43 AS col1 +---- +-3999 +NULL query I rowsort SELECT - 5 + + - 84 AS col1 @@ -22636,8 +22898,11 @@ SELECT - 65 + 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3738 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(\-42\)\) \* \(\- \(\- Int64\(89\)\)\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( DISTINCT - 42 ) * - - ( + 89 ) AS col1, 45 AS col1 +---- +-3738 +45 query I rowsort label-4301 SELECT DISTINCT ( - CAST ( + 70 AS INTEGER ) ) AS col1 @@ -22828,8 +23093,11 @@ SELECT 11 * - 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) / \(\- min\(DISTINCT Int64\(68\)\)\) AS col1" at position 0 and "max\(Int64\(\-78\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 6 / - MIN ( DISTINCT + 68 ) col1, MAX ( ALL + - 78 ) AS col1 +---- +-78 +0 query I rowsort SELECT 24 * + 29 @@ -22970,8 +23238,11 @@ SELECT DISTINCT - 55 - - + 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5706 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ CAST\(Int64\(78\) AS Int32\) \- count\(Int64\(1\)\) AS count\(\*\) \+ \(\- max\(Int64\(77\)\)\) \* Int64\(72\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 + + CAST ( 78 AS INTEGER ) - + COUNT ( * ) + - MAX ( + 77 ) * 72 / - COUNT ( * ) AS col0, 93 AS col0 +---- +5706 +93 query II rowsort label-4365 SELECT + - 31 AS col0, + 52 + CASE + 13 WHEN + - 68 / 71 * + COUNT ( * ) THEN - 83 + 49 END @@ -23732,8 +24003,11 @@ 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\(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\. +query II valuesort SELECT ALL - + NULLIF ( 89, - MIN ( ALL 87 ) ) + 20 + - COUNT ( * ) * - ( 99 ) + 33 AS col1, 85 AS col1 +---- +63 +85 query I rowsort SELECT 31 - NULLIF ( - 1, - 18 ) - + 57 AS col2 @@ -23783,8 +24057,11 @@ SELECT 29 + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3601 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* count\(Int64\(1\)\) AS count\(\*\) \- Int64\(98\) \* \(\- CAST\(Int64\(\-37\) AS Int32\)\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 25 * + + COUNT ( * ) - + 98 * - CAST ( + - 37 AS INTEGER ) AS col1, 9 AS col1 +---- +-3601 +9 query I rowsort label-4521 SELECT 39 * + + COUNT ( * ) AS col2 @@ -24129,8 +24406,12 @@ SELECT + - 15 * + + 99 * 35 * ( + 17 ) # Datafusion - Expected - -81 # Datafusion - Expected - NULL # Datafusion - Expected - 3040 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(81\)\) AS col2" at position 0 and "Int64\(38\) \- \(\- nullif\(CASE WHEN NOT Int64\(44\) != NULL THEN \(\- nullif\(\(\- CAST\(Int64\(\-1\) AS Int32\)\), Int64\(96\) \- Int64\(73\)\)\) ELSE NULL END, Int64\(38\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + 81 AS col2, 38 - - + NULLIF ( CASE WHEN NOT 44 <> NULL THEN - NULLIF ( - CAST ( + - 1 AS INTEGER ), 96 - 73 ) ELSE NULL END, + 38 ) AS col2, - - 38 * - - SUM ( ALL 80 ) AS col2 +---- +-81 +3040 +NULL query II rowsort label-4586 SELECT ALL - COUNT ( * ) AS col1, 93 @@ -24534,8 +24815,11 @@ SELECT ALL ( + ( 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 Float64\) \+ Int64\(18\) AS col1" at position 0 and "CASE Int64\(69\) WHEN Int64\(3\) / Int64\(87\) \* Int64\(37\) THEN Int64\(\-61\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL CAST ( NULL AS FLOAT8 ) + 18 AS col1, CASE + 69 WHEN + 3 / + 87 * 37 THEN - 61 END AS col1 +---- +NULL +NULL query I rowsort SELECT + 45 - 30 @@ -24639,8 +24923,12 @@ 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\(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\. +query III valuesort SELECT ALL + - 50 * COUNT ( * ) / + 84 + + 84 AS col1, ( + - ( + COUNT ( * ) ) ) AS col1, - - CAST ( - 64 AS INTEGER ) AS col2 +---- +-1 +-64 +84 query II rowsort label-4684 SELECT + COUNT ( + + 3 ) AS col1, - 85 * - - 8 * - MAX ( ALL + 63 ) @@ -24651,8 +24939,11 @@ SELECT + COUNT ( + + 3 ) AS col1, - 85 * - - 8 * - MAX ( ALL + 63 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -90901 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* Int64\(\-52\) \* \(\- Int64\(\-50\)\) \+ Int64\(99\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 * + - 52 * - - 50 + 99 AS col2, 56 AS col2 +---- +-90901 +56 query I rowsort SELECT - 24 * + COALESCE ( + 49, 93 ) AS col0 @@ -25505,8 +25796,12 @@ SELECT 37 * + 28 AS col0 # Datafusion - Expected - -73 # Datafusion - Expected - 162 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 73 AS col2, + 9 * + 18, COUNT ( * ) AS col2 +---- +-73 +1 +162 query I rowsort label-4847 SELECT 44 / + - CAST ( 8 AS INTEGER ) AS col2 @@ -25586,8 +25881,11 @@ SELECT ALL + 40 - 24 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-6\), Int64\(72\)\) AS col0" at position 0 and "Int64\(\-57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT NULLIF ( - 6, 72 ) AS col0, - 57 AS col0 +---- +-57 +-6 query I rowsort SELECT ALL + CASE 22 WHEN 99 * + + 48 THEN + 51 END AS col1 @@ -25896,8 +26194,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - COUNT ( * ) ) AS col2, 58 AS col2 +---- +-1 +58 query I rowsort SELECT - 98 * - 69 + - + 36 @@ -26045,8 +26346,11 @@ SELECT ALL 68 AS col2, + 34 + + COALESCE ( + 8, 53 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2170 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \* Int64\(62\) AS col2" at position 0 and "Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 35 ) * + 62 AS col2, + 22 AS col2 +---- +-2170 +22 query II rowsort label-4950 SELECT ALL - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - 33 AS col0, + 84 AS col2 @@ -26094,8 +26398,11 @@ SELECT ALL - ( - ( - 27 ) ) AS col2, - COUNT ( * ) * + 62 + + MIN ( - 8 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col1" at position 0 and "\(\- Int64\(19\)\) \- Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 98 col1, - ( 19 ) - + - 84 AS col1 +---- +-98 +65 query I rowsort label-4959 SELECT ALL - - CASE 56 WHEN COUNT ( * ) * + 59 * + 66 * AVG ( + 1 ) + - + 0 THEN NULL ELSE + 60 / - 79 END @@ -26351,8 +26658,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * 8 AS col2, - 79 * 53 + + ( - ( + + COUNT ( * ) ) ) - ( + + 25 ) + - 2 * + 10 * - 19 + + 71 * - + 1 * + + ( + - 76 ) * + + 3 AS col2 +---- +12355 +8 query I rowsort label-5009 SELECT DISTINCT SUM ( ALL + 60 ) @@ -26637,8 +26947,11 @@ SELECT 57 AS col2, 38 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - -1482 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-46\)\) / Int64\(36\) \+ Int64\(24\) AS col0" at position 0 and "Int64\(39\) \* Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - ( - 46 ) / + 36 + + 24 AS col0, + 39 * - 38 AS col0 +---- +-1482 +25 query I rowsort label-5064 SELECT + - 11 * + COUNT ( DISTINCT 23 ) + - 82 + - - ( MAX ( ALL 12 ) ) + + + CAST ( NULL AS INTEGER ) + 9 @@ -27675,8 +27988,11 @@ SELECT - MIN ( ALL 14 ) * + + 8 * 31 - 75 + - 24 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(29\)\)\) AS col0" at position 0 and "Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MIN ( 29 ) AS col0, 84 AS col0 +---- +-29 +84 query I rowsort label-5260 SELECT MAX ( - + 30 ) AS col0 @@ -27900,8 +28216,11 @@ SELECT ALL + 62 / - ( + + 84 ), 37 + - CAST ( SUM ( - 91 ) AS INTEGER ) * + + 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 69 AS col2, + COUNT ( * ) AS col2 +---- +-69 +1 query I rowsort SELECT - + 51 + - 2 AS col1 @@ -28056,8 +28375,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(10\) AS Int32\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + CAST ( + 10 AS INTEGER ) AS col1, + ( COUNT ( * ) ) AS col1 +---- +1 +10 query I rowsort SELECT 32 * + 7 AS col0 @@ -28526,8 +28848,11 @@ SELECT - COUNT ( * ) * 34 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(21\)\) AS col0" at position 0 and "min\(DISTINCT \(\- \(\- CAST\(Int64\(14\) AS Int32\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + 21 ) AS col0, MIN ( DISTINCT + - ( - CAST ( + 14 AS INTEGER ) ) ) AS col0 +---- +-21 +14 query I rowsort label-5422 SELECT + CAST ( NULL AS INTEGER ) + + - ( - 8 ) AS col1 @@ -28593,8 +28918,11 @@ SELECT + 58 * 81 * + - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) / Int64\(30\) \+ Int64\(\-74\) AS col0" at position 0 and "Int64\(16\) \+ Int64\(51\) \+ coalesce\(\(\- Int64\(14\)\), Int64\(\-9\) \* \(\- Int64\(95\)\) \- Int64\(60\) \* Int64\(\-11\) \* \(\- coalesce\(\(\- Int64\(27\)\), Int64\(\-67\) \* Int64\(64\) \- Int64\(77\) \+ Int64\(51\) \+ Int64\(\-47\) \- \(\- coalesce\(Int64\(11\), Int64\(18\) / \(\- nullif\(Int64\(59\), \(\- Int64\(67\)\) \+ Int64\(61\) \- CAST\(NULL AS Int32\)\)\), Int64\(\-97\)\)\) \* \(\- Int64\(34\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-74 +53 query I rowsort SELECT + - 72 + 33 AS col2 @@ -28667,8 +28995,11 @@ SELECT 60 + - 36 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\)" at position 0 and "Int64\(26\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 26, + 26 +---- +26 +26 query I rowsort label-5449 SELECT 40 / - 57 AS col2 @@ -28810,8 +29141,11 @@ SELECT DISTINCT COUNT ( * ) / - 86 * - + 1 * + 2 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2829 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* Int64\(41\) AS col2" at position 0 and "Int64\(77\) \+ Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 * 41 AS col2, 77 + + 3 AS col2 +---- +2829 +80 query I rowsort SELECT 1 + - ( + 66 ) @@ -29972,8 +30306,11 @@ SELECT + 6 - - + 44 + - + 67 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 0 and "\(\- max\(Int64\(13\)\)\) \- Int64\(\-3\) \- Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 AS col1, - MAX ( ALL + 13 ) - - 3 - + 85 AS col1 +---- +-95 +32 query II rowsort label-5703 SELECT - 69 * - 80 + + 94 AS col1, ( - COUNT ( * ) ) * + COUNT ( - NULLIF ( 67, 77 * 61 ) ) + 63 * - 82 @@ -29984,8 +30321,11 @@ SELECT - 69 * - 80 + + 94 AS col1, ( - COUNT ( * ) ) * + COUNT ( - NULLIF ( 67, # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 133 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) 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 II valuesort SELECT 71 AS col1, + 43 + 90 AS col1 +---- +133 +71 query I rowsort SELECT ALL - + 63 col0 @@ -30093,8 +30433,11 @@ SELECT ALL 32 - + + 8 + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col1" at position 0 and "max\(DISTINCT Int64\(\-78\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 16 AS col1, MAX ( DISTINCT - 78 ) AS col1 +---- +-16 +-78 query I rowsort label-5726 SELECT 65 + - CAST ( NULL AS INTEGER ) * - COUNT ( + ( 54 ) ) @@ -30284,8 +30627,11 @@ SELECT ALL + 89 / 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(Int64\(84\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-87\) \+ Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) * - CAST ( + 84 AS INTEGER ) AS col2, - 87 + + 88 AS col2 +---- +-84 +1 query I rowsort label-5763 SELECT DISTINCT + 16 - + COUNT ( * ) * + - 24 AS col0 @@ -30408,8 +30754,11 @@ SELECT - ( - 29 ) * - 40 + - COUNT ( DISTINCT - 35 ) + - + SUM ( ALL + - 70 ) * # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 83 AS col1, + COUNT ( * ) AS col1 +---- +1 +83 query I rowsort label-5787 SELECT NULLIF ( - - COUNT ( * ), 48 + + 93 + 63 * + + 80 ) * - COALESCE ( - COALESCE ( + 63, - 53, 94 + 84 ), + COUNT ( DISTINCT + 31 ) * 10 ) * - ( 6 ) + 22 @@ -30495,8 +30844,11 @@ SELECT + 14 * + 37 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col1" at position 0 and "Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 col1, 95 AS col1 +---- +69 +95 query I rowsort SELECT DISTINCT 38 * 64 @@ -30931,8 +31283,11 @@ SELECT + 70 + + MAX ( ALL CAST ( + 80 AS INTEGER ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ \(\- nullif\(Int64\(54\), Int64\(67\)\)\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) + - NULLIF ( + + 54, 67 ) AS col0, 97 col0 +---- +97 +NULL query II rowsort SELECT 86 + - 28 * + 77, - ( + + 38 ) AS col2 @@ -30948,8 +31303,11 @@ SELECT ALL + + 98 * 77 * 68 + - 26 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-37\)\) AS col1" at position 0 and "max\(Int64\(54\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 37 AS col1, MAX ( + 54 ) AS col1 +---- +37 +54 query I rowsort label-5890 SELECT ALL + - ( ( - - 8 ) ) / + 83 + - 8 AS col1 @@ -30996,8 +31354,11 @@ SELECT ALL 11 * 45 + 48 + + 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "Int64\(21\) \+ CAST\(NULL AS Int32\) \* Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 29 AS col1, 21 + + CAST ( NULL AS INTEGER ) * + + 5 AS col1 +---- +29 +NULL query I rowsort SELECT ALL + 89 * + 47 * 80 * - 74 + 59 @@ -31117,8 +31478,11 @@ SELECT - + 29 * - 9 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col1" at position 0 and "Int64\(\-2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 14 AS col1, - 2 AS col1 +---- +-14 +-2 query II rowsort label-5922 SELECT - - COUNT ( * ), 21 * - CASE - 98 WHEN + - 12 * + SUM ( 5 ) + 46 + - 73 THEN 12 WHEN + - 52 THEN 55 * + 42 ELSE NULL END * 68 - 67 AS col1 @@ -31373,8 +31737,11 @@ SELECT + ( + 35 ) * - CASE WHEN NOT ( ( ( NULL ) > NULL ) ) THEN - 11 ELSE - 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 29 AS col2, + 64 AS col2 +---- +-29 +64 query I rowsort SELECT DISTINCT + ( - - CASE + 82 WHEN + 78 THEN - 76 WHEN + 55 THEN NULL ELSE NULL END ) * 45 AS col1 @@ -31557,8 +31924,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 1 ) + - ( 73 ) col1, - COUNT ( * ) AS col1 +---- +-1 +-74 query I rowsort label-6004 SELECT DISTINCT MIN ( + 9 ) + + 83 * - - COUNT ( * ) AS col1 @@ -32196,8 +32566,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * - - COUNT ( * ) + + + 75 + + 14 / + 1 AS col1, - 51 * + 82 AS col1 +---- +-4182 +90 query I rowsort SELECT DISTINCT - - 61 * - ( + + 32 ) @@ -32283,8 +32656,11 @@ SELECT DISTINCT 84 + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 57 AS col1, 55 AS col1 +---- +-57 +55 query I rowsort SELECT ALL 68 - 38 col1 @@ -33013,8 +33389,11 @@ SELECT ALL 48 * 37 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -540 # Datafusion - Expected - 7568 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* Int64\(\-10\) AS col1" at position 0 and "Int64\(\-86\) \* Int64\(\-88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 54 * + - 10 AS col1, - 86 * - 88 AS col1 +---- +-540 +7568 query I rowsort SELECT ALL 60 * ( + - ( - 62 ) ) @@ -33145,8 +33524,11 @@ 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\(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\. +query II valuesort SELECT + 79 * - COUNT ( * ) * + 49 + + - 89 AS col1, 22 AS col1 +---- +-3960 +22 query II rowsort label-6308 SELECT + COUNT ( ALL + CAST ( + 75 AS INTEGER ) ), 51 * + COALESCE ( - + 58, 26 * + 55 ) AS col0 @@ -33516,8 +33898,11 @@ 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\(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\. +query II valuesort SELECT 8 * + 85 + CASE 22 WHEN + COUNT ( * ) THEN + + COUNT ( * ) ELSE NULL END * + + 38 - 2 AS col0, SUM ( DISTINCT - - 63 ) col0 +---- +63 +NULL query I rowsort SELECT - + 39 + + 35 AS col1 @@ -33742,8 +34127,11 @@ SELECT ALL - 48 + + - 3 AS col0, + 16 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-90\) AS Int32\) AS col2" at position 0 and "Int64\(72\) \* count\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( + - 90 AS INTEGER ) AS col2, 72 * + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 +---- +-90 +0 query I rowsort label-6422 SELECT ALL + 21 + - COUNT ( * ) @@ -34193,8 +34581,11 @@ 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\(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\. +query II valuesort SELECT + - COUNT ( * ), - COUNT ( * ) +---- +-1 +-1 query I rowsort SELECT + + ( - - 64 ) col0 @@ -34241,8 +34632,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \* Int64\(65\) AS col2" at position 0 and "Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) * + 65 AS col2, 76 AS col2 +---- +76 +NULL query I rowsort SELECT - 38 * + 71 @@ -34339,8 +34733,12 @@ SELECT - 73 AS col0, - 0 AS col2 # Datafusion - Expected - 89 # Datafusion - Expected - 136 # Datafusion - Expected - 4783 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 0 and "Int64\(84\) \+ \(\- coalesce\(Int64\(92\), Int64\(35\) / \(\- Int64\(\-18\)\)\)\) \+ Int64\(48\) \* \(\- \(\- Int64\(3\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 89 AS col1, + 84 + - + COALESCE ( + + 92, + + 35 / - - 18 ) + 48 * - - ( + 3 ) AS col1, - - 52 * + + 92 + - COUNT ( * ) AS col2 +---- +136 +4783 +89 query I rowsort label-6535 SELECT - 47 - - + COUNT ( ALL + 23 ) @@ -34382,8 +34780,11 @@ SELECT DISTINCT 51 AS col2, COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col0" at position 0 and "nullif\(Int64\(84\), Int64\(\-30\) \+ Int64\(\-81\) / Int64\(74\) \* Int64\(\-96\) \+ Int64\(\-51\) \* Int64\(\-7\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 92 AS col0, + NULLIF ( 84, - 30 + - 81 / 74 * - 96 + - 51 * - 7 ) AS col0 +---- +-92 +84 query I rowsort label-6543 SELECT CAST ( - 66 AS INTEGER ) + + + 46 @@ -34784,8 +35185,11 @@ SELECT ALL 69 * 38 * - 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col0" at position 0 and "count\(Int64\(50\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 94 AS col0, + COUNT ( 50 ) AS col0 +---- +-94 +1 query I rowsort SELECT DISTINCT ( - + 90 ) @@ -34875,8 +35279,11 @@ NULL # 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 "Int64\(83\) \+ Int64\(88\) AS col1" at position 0 and "Int64\(28\) / Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 83 + 88 AS col1, 28 / 70 AS col1 +---- +0 +171 query I rowsort label-6637 SELECT + - 41 + + CAST ( - - 20 AS INTEGER ) col0 @@ -34917,8 +35324,12 @@ SELECT + 56 + + - CAST ( 34 AS INTEGER ) # Datafusion - Expected - 3 # Datafusion - Expected - -59 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) \+ Int64\(48\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 45 + 48 AS col2, 1 + + 80 / 92 * + + ( 96 ) * 54 * - 75 * + - 61 + MIN ( ALL + - 60 ), 21 AS col2 +---- +-59 +21 +3 query I rowsort label-6645 SELECT ALL - CAST ( NULL AS INTEGER ) * - 79 * - ( 0 ) AS col1 @@ -35247,8 +35658,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 127 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(28\)\) AS col1" at position 0 and "Int64\(54\) \+ Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( 28 ) AS col1, + 54 + + + 73 AS col1 +---- +127 +28 query I rowsort SELECT 54 * ( + 34 ) AS col2 @@ -35567,8 +35981,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -2304 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col0" at position 0 and "Int64\(\-72\) \* \(\- Int64\(\-32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 AS col0, - 72 * - - 32 AS col0 +---- +-2304 +31 query I rowsort SELECT DISTINCT ( + - 74 ) @@ -35906,8 +36323,11 @@ SELECT 8 + + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "Int64\(\-78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 AS col1, - 78 AS col1 +---- +-78 +80 query I rowsort SELECT + 66 + + 19 @@ -36356,8 +36776,11 @@ SELECT ALL ( 84 ) + - 19 + - COALESCE ( - 89, + COUNT ( 91 ), + CASE COUNT ( DIS # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col0" at position 0 and "Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 38 col0, - 73 AS col0 +---- +-38 +-73 query I rowsort label-6919 SELECT ALL - CASE + 54 WHEN - - COUNT ( * ) - + + COUNT ( * ) THEN + 58 END + + - 5 @@ -36383,8 +36806,11 @@ SELECT ALL + 98 - - 61 - - 18 + + COUNT ( * ) # 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 "Int64\(92\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 92 AS col1, 51 AS col1 +---- +51 +92 query I rowsort label-6924 SELECT 71 * MIN ( 64 ) + - ( - 15 ) + - + MAX ( DISTINCT - 50 ) * - COUNT ( - 2 ) col0 @@ -36466,8 +36892,11 @@ SELECT 44 / + - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(81\), \(\- Int64\(22\)\), Int64\(\-91\) \- Int64\(20\) \* \(\- CASE \(\- Int64\(\-12\)\) WHEN Int64\(8\) THEN Int64\(46\) ELSE NULL END\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(10\)\) \* Int64\(71\) \- \(\- Int64\(\-33\)\)\)\) AS col2" at position 0 and "CAST\(Int64\(\-70\) AS Int32\) \+ \(\- CAST\(\(\- Int64\(\-19\)\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-81 +-89 query I rowsort SELECT ALL - 46 + + 34 AS col0 @@ -36641,8 +37070,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 14 / - 96 * - COUNT ( * ) AS col1, - MIN ( DISTINCT - + 59 ) AS col1 +---- +0 +59 query I rowsort label-6972 SELECT - MAX ( ALL + 29 ) + + - 62 + + 94 * - CASE 95 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE + MIN ( DISTINCT - 12 ) + + 35 END + - - 78 @@ -36761,8 +37193,11 @@ SELECT + - COUNT ( DISTINCT + + 9 ) - - CAST ( + + 17 AS INTEGER ) + - - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col1" at position 0 and "Int64\(\-33\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 AS col1, - 33 + + COUNT ( * ) col1 +---- +-32 +5 query I rowsort label-6995 SELECT + + 84 * + - CAST ( + 1 AS INTEGER ) AS col1 @@ -37116,8 +37551,12 @@ SELECT DISTINCT - + MIN ( ALL + 11 ) - SUM ( DISTINCT - 10 ) col1 # Datafusion - Expected - -125 # Datafusion - Expected - 421252 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \- Int64\(91\) AS col1" at position 0 and "Int64\(73\) \+ coalesce\(\(\- sum\(Int64\(84\)\)\), \(\- nullif\(\(\- Int64\(\-90\)\), sum\(Int64\(84\)\) \- Int64\(\-52\) \* Int64\(12\)\)\), \(\- Int64\(\-52\)\)\) \+ Int64\(70\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-125 +421252 +59 query I rowsort SELECT + 43 * - 97 AS col1 @@ -37248,8 +37687,11 @@ SELECT - 29 col0, - COALESCE ( 40, - 56 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 33 AS col1, 96 AS col1 +---- +-33 +96 query I rowsort SELECT + - 2 * + - 74 AS col1 @@ -37270,8 +37712,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "CAST\(\(\- min\(Int64\(8\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 58 AS col2, + CAST ( - MIN ( ALL + 8 ) AS INTEGER ) AS col2 +---- +-8 +58 query I rowsort SELECT ALL + ( 58 ) * - - 3 @@ -37460,8 +37905,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 99 + - 93 AS col0, 88 * 9 * - 67 + + - 41 / - ( ( - COUNT ( * ) ) ) AS col0 +---- +-192 +-53105 query I rowsort SELECT + + COALESCE ( - + 95, + 94 ) + + 36 AS col2 @@ -37487,8 +37935,11 @@ SELECT DISTINCT + 16 + COUNT ( * ) # 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\(22\) / Int64\(31\) AS col2" at position 0 and "Int64\(\-15\) \+ Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 22 / + + 31 col2, - 15 + 5 col2 +---- +-10 +0 query II rowsort label-7132 SELECT 65 / - 75 AS col2, + NULLIF ( + - 41, - 86 - + + 63 + - CASE 85 WHEN + 1 * + 28 THEN - 3 + - + 5 + ( - 53 ) * 13 WHEN + - 4 THEN NULL ELSE - COUNT ( * ) END * + 72 ) + + - 65 - + + 5 * - 94 * + NULLIF ( 31, + 43 ) * - 42 @@ -38309,8 +38760,11 @@ NULL # 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\(95\)\) / Int64\(\-74\) AS col1" at position 0 and "nullif\(Int64\(\-66\), Int64\(30\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 95 / - 74 col1, NULLIF ( + - 66, ( + 30 ) ) AS col1 +---- +-66 +1 query I rowsort SELECT ALL - - 70 + - - NULLIF ( - + 56, - 41 * COALESCE ( 23, - 8 ) ) * - 76 @@ -38913,8 +39367,11 @@ SELECT ALL + - 76 * - 0 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 51 * CAST ( NULL AS INTEGER ) col0, - 7 AS col0 +---- +-7 +NULL query I rowsort SELECT - + 52 * - + 27 + 43 AS col0 @@ -39052,8 +39509,11 @@ SELECT ALL + 6 - - NULLIF ( 69, + - 75 ) AS col2, 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 5 AS col2, 10 AS col2 +---- +-5 +10 query I rowsort SELECT DISTINCT 36 - + 93 @@ -39149,8 +39609,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "min\(Int64\(45\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 AS col2, + MIN ( ALL 45 ) AS col2 +---- +13 +45 query II rowsort label-7454 SELECT 41 + - ( - - COUNT ( * ) ), COUNT ( * ) + + + 98 AS col0 @@ -39166,8 +39629,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \* Int64\(\-35\) / Int64\(35\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 20 * - 35 / 35 col2, COUNT ( * ) AS col2 +---- +-20 +1 query I rowsort label-7457 SELECT + 64 * 10 * COUNT ( * ) + + 50 + - 35 @@ -39588,8 +40054,11 @@ SELECT ALL 96 * - 28 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(96\) AS col2" at position 0 and "Int64\(74\) \+ coalesce\(Int64\(\-13\), Int64\(64\) \* Int64\(\-30\), Int64\(17\) \+ Int64\(27\) \+ coalesce\(Int64\(69\), coalesce\(Int64\(99\), Int64\(\-35\) \* Int64\(18\) \+ Int64\(23\), Int64\(3\) \+ \(\- nullif\(Int64\(9\), Int64\(33\) \+ Int64\(6\)\)\) \* Int64\(\-95\)\), Int64\(17\) \* Int64\(5\) \- Int64\(91\), Int64\(43\)\) / Int64\(90\)\) / nullif\(CAST\(NULL AS Int32\) \* Int64\(\-29\) \+ Int64\(10\) \* Int64\(14\), Int64\(48\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(78\) \- Int64\(26\) AS Int32\) \* Int64\(86\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +97 +NULL query I rowsort label-7538 SELECT 80 / + 25 AS col2 @@ -39953,8 +40422,11 @@ SELECT DISTINCT + 75 * ( 31 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(92\)\) \+ Int64\(4\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 92 ) + + 4 col2, 59 AS col2 +---- +-88 +59 query I rowsort SELECT + CASE + + 35 WHEN - 43 - - 46 THEN NULL ELSE 3 END AS col0 @@ -40111,8 +40583,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 821102 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(23\) \* nullif\(Int64\(51\), Int64\(14\) / \(\- Int64\(75\)\)\) \* \(\- Int64\(70\)\) \+ Int64\(1\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(88\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 10 * + 23 * NULLIF ( + 51, + 14 / - ( 75 ) ) * - + 70 + + 1 + + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) * + 88 + + - COUNT ( * ) AS col1 +---- +821102 +NULL query II rowsort label-7637 SELECT ALL - 61 * - + 65 AS col0, - ( + CASE + 10 WHEN 21 THEN + COUNT ( * ) - - 18 END ) col1 @@ -40248,8 +40723,11 @@ SELECT ALL 6 * + - 99 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51324 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* \(\- Int64\(\-39\)\) \* Int64\(\-94\) \- Int64\(0\) AS col0" at position 0 and "Int64\(55\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 * - - 39 * - 94 - + 0 AS col0, + 55 + - CAST ( NULL AS INTEGER ) col0 +---- +-51324 +NULL query I rowsort SELECT ALL 63 * 31 + 26 @@ -40336,8 +40814,12 @@ SELECT 24 * + + 26 * + 16 AS col0 # Datafusion - Expected - 18 # Datafusion - Expected - -912 # Datafusion - Expected - -13800 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col2" at position 0 and "Int64\(\-76\) \* Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 18 col2, - 76 * 12 AS col2, - + 7 * - CASE + 46 WHEN 33 THEN 34 ELSE - - 50 * - + 36 END + - COALESCE ( + - MAX ( - 75 ), MAX ( 31 ) ) * + 16 +---- +-13800 +-912 +18 query I rowsort SELECT DISTINCT - 12 * + 40 @@ -40403,8 +40885,11 @@ SELECT + 28 * - - ( - + 36 ) 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 "Int64\(1\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 1 AS col0, + 14 AS col0 +---- +1 +14 query I rowsort SELECT DISTINCT + 16 * + 23 * + 41 col2 @@ -41110,8 +41595,11 @@ SELECT + COUNT ( * ) + - CASE - 8 WHEN - + 86 THEN + ( COUNT ( * ) ) WHEN + COUN # 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\(77\)\) \+ Int64\(91\) 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 II valuesort SELECT DISTINCT - + 77 + + 91 AS col0, COUNT ( - ( + - 23 ) ) col0 +---- +1 +14 query I rowsort SELECT DISTINCT 47 * + + 50 - + ( - 58 ) + 4 + - 51 AS col2 @@ -41447,8 +41935,12 @@ SELECT ALL 7 * + COUNT ( * ) AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 95 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) / avg\(Int64\(89\)\) / coalesce\(nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(0\)\), Int64\(\-12\) \* Int64\(86\)\) / Int64\(\-22\) \+ \(\- CAST\(NULL AS Int32\)\) \- Int64\(\-71\) AS col1" at position 0 and "\(\- Int64\(\-95\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RII valuesort 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 +---- +62 +95 +NULL query II rowsort label-7892 SELECT DISTINCT + - 51, 24 / - 50 AS col0 @@ -41502,8 +41994,11 @@ SELECT DISTINCT + + 58 AS col2, 0 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4897 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ \(\- Int64\(\-32\)\) \+ \(\- CAST\(Int64\(\-51\) AS Int32\)\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 0 and "Int64\(99\) \* nullif\(Int64\(49\), Int64\(\-57\)\) \+ Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 32 + - + ( + - 32 ) + + - CAST ( - 51 AS INTEGER ) * - ( - + CAST ( NULL AS INTEGER ) ) AS col1, 99 * NULLIF ( + 49, - 57 ) + 46 AS col1 +---- +4897 +NULL query I rowsort label-7902 SELECT + - 16 / + - 70 @@ -41627,8 +42122,11 @@ SELECT ALL 70 + - + 89 - + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -8460 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \+ Int64\(\-66\) AS col1" at position 0 and "Int64\(90\) \* \(\- Int64\(94\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 + - 66 AS col1, + 90 * - + 94 AS col1 +---- +-8460 +28 query I rowsort SELECT 84 * - 65 * - + ( - 46 ) + + 88 * 81 + + 41 AS col0 @@ -41701,8 +42199,11 @@ NULL # 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\(41\) AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 41 AS col1, + 32 AS col1 +---- +32 +41 query I rowsort label-7940 SELECT - 89 * + MAX ( + + 69 ) * - - 66 @@ -42248,8 +42749,11 @@ SELECT ALL + 29 + - 72 - - - 79 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2412 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* Int64\(24\) \+ Int64\(84\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 97 ) * 24 + + + 84 AS col0, COUNT ( * ) AS col0 +---- +1 +2412 query I rowsort label-8044 SELECT ALL - MIN ( - 28 ) + + 80 AS col2 @@ -42316,8 +42820,12 @@ SELECT MAX ( - - 80 ) AS col2 # Datafusion - Expected - 52 # Datafusion - Expected - 88 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col0" at position 1 and "CAST\(NULL AS Float64\) \* Int64\(97\) \+ sum\(DISTINCT Int64\(5\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort SELECT ALL 52 AS col2, 88 AS col0, + + CAST ( NULL AS FLOAT8 ) * 97 + + SUM ( DISTINCT 5 ) AS col0 +---- +52 +88 +NULL query I rowsort SELECT ( + 21 ) + ( + 33 ) + + - 75 @@ -42402,8 +42910,11 @@ SELECT 61 * COUNT ( * ) / SUM ( ALL + - ( - COALESCE ( - - 54, 9 / + COALESCE ( # 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 "sum\(DISTINCT Int64\(47\)\) AS col0" at position 0 and "count\(DISTINCT Int64\(\-50\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( DISTINCT + 47 ) AS col0, COUNT ( DISTINCT + - 50 ) AS col0 +---- +1 +47 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -42990,8 +43501,11 @@ SELECT DISTINCT - 94 - + 52 + 2 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 AS col0, 56 col0 +---- +18 +56 query I rowsort label-8185 SELECT 21 - - CAST ( NULL AS INTEGER ) + + 53 * - 51 * ( + 39 ) @@ -43057,8 +43571,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(\-81\) \+ Int64\(79\) \+ Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 17 AS col2, - COUNT ( * ) + - 81 + + 79 + + 80 AS col2 +---- +-17 +77 query I rowsort label-8198 SELECT + 42 * 57 + - NULLIF ( 37, - + 15 ) + - 50 * + COUNT ( * ) AS col0 @@ -43096,8 +43613,11 @@ SELECT + - MAX ( DISTINCT 86 ) AS col2 # 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\(5\) / Int64\(8\) \+ \(\- Int64\(24\)\) \+ Int64\(36\) \* Int64\(32\) AS col2" at position 0 and "Int64\(62\) / Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 5 / + + ( + 8 ) + - + 24 + 36 * + + 32 AS col2, 62 / + + 44 AS col2 +---- +1 +1128 query I rowsort label-8205 SELECT ALL + 77 + - - COUNT ( * ) @@ -43314,8 +43834,11 @@ SELECT + SUM ( ALL 62 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 col0, + 38 AS col0 +---- +17 +38 query I rowsort SELECT - ( + ( + - 26 ) ) @@ -43418,8 +43941,11 @@ SELECT - 23 + 46 * 85 / - 99 + 36 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - 96 ) AS col2, 6 AS col2 +---- +-96 +6 query I rowsort label-8264 SELECT ALL CAST ( - 65 AS INTEGER ) AS col0 @@ -43626,8 +44152,11 @@ SELECT - NULLIF ( + 96, + - 10 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 22 AS col1, 5 AS col1 +---- +-22 +5 query I rowsort label-8305 SELECT + COALESCE ( 59, - 81 ) * + COUNT ( * ) AS col1 @@ -43765,8 +44294,11 @@ SELECT ALL + + 42 + - 67 + + COUNT ( * ) + - - 77 * + 97 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) \+ Int64\(77\) AS col2" at position 0 and "Int64\(\-37\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 + 77 AS col2, - 37 * + COUNT ( * ) AS col2 +---- +-37 +74 query I rowsort label-8332 SELECT - NULLIF ( - COUNT ( * ), + 90 ) AS col2 @@ -44165,8 +44697,11 @@ SELECT 47 / - 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1173 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(69\) AS col2" at position 0 and "max\(Int64\(22\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 * + 69 AS col2, MAX ( + 22 ) AS col2 +---- +1173 +22 query I rowsort SELECT DISTINCT + ( 41 ) * - 42 AS col2 @@ -44259,8 +44794,11 @@ SELECT ALL - + 51 / - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 175 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \+ Int64\(76\) AS col1" at position 0 and "Int64\(\-89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 99 + + 76 AS col1, - 89 AS col1 +---- +-89 +175 query I rowsort SELECT DISTINCT - + ( 64 ) + - NULLIF ( - 42, 27 ) @@ -44311,8 +44849,11 @@ SELECT COUNT ( * ) - 76 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 87 AS col0, 64 col0 +---- +64 +87 query I rowsort label-8438 SELECT DISTINCT SUM ( DISTINCT - + 7 ) + - 52 / - + 98 AS col1 @@ -44909,8 +45450,11 @@ SELECT ALL - - 21 AS col1, 51 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 7877 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(95\)\) AS col2" at position 0 and "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN coalesce\(CAST\(\(\- sum\(\(\- Int64\(61\)\)\)\) AS Int32\), Int64\(3\), Int64\(\-8\) \- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-93\)\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(93\) THEN NULL ELSE \(\- count\(DISTINCT \(\- Int64\(2\)\)\)\) \* Int64\(\-97\) \* Int64\(82\) END \+ sum\(Int64\(\-77\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-95 +7877 query I rowsort label-8552 SELECT DISTINCT - NULLIF ( + - COALESCE ( + - 47, - + 35 ), - COUNT ( * ) ) AS col0 @@ -45554,8 +46098,11 @@ SELECT COUNT ( * ), - 91 * + - 25 + - COUNT ( * ) * + 67 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col2 +---- +1 +NULL query I rowsort SELECT + 90 * + 61 + + 89 @@ -45636,8 +46183,11 @@ SELECT + 34 + + 81 # 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\(42\)\)\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( ALL 42 ) AS col1, 48 AS col1 +---- +-1 +48 query I rowsort SELECT ALL 98 * - 82 @@ -45758,8 +46308,11 @@ SELECT ALL + COALESCE ( + - 82, 51, - 95 * 94 * + - ( + + 44 ) - - + 1 + - - 8 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \+ Int64\(28\) AS col0" at position 0 and "\(\- Int64\(\-23\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 23 + + 28 AS col0, ( - - 23 ) AS col0 +---- +23 +5 query I rowsort label-8714 SELECT + NULLIF ( + 51, - 41 * + 77 + - COUNT ( * ) ) col1 @@ -46041,8 +46594,11 @@ SELECT 29 AS col1, 42 AS col0 # 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\(\-7\) \+ max\(DISTINCT Int64\(1\)\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 7 + MAX ( DISTINCT 1 ) AS col2, 0 AS col2 +---- +-6 +0 query I rowsort SELECT 56 + + 69 @@ -47075,8 +47631,11 @@ SELECT - COUNT ( * ) * - - 91 * - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2040 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* Int64\(51\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 40 * ( 51 ) AS col0, + 68 AS col0 +---- +2040 +68 query I rowsort label-8968 SELECT ALL + CAST ( 97 AS INTEGER ) * - 75 + - 28 + + + 17 + + 53 * - 2 - + CASE + 59 WHEN COUNT ( * ) THEN NULL WHEN - 54 THEN ( COALESCE ( + 45, - 28 ) ) * 98 END AS col1 @@ -47207,8 +47766,11 @@ SELECT ALL - - 45, - 64 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) / Int64\(\-32\) \* \(\- Int64\(\-79\)\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 0 / - 32 * - - 79 AS col2, 42 AS col2 +---- +0 +42 query II rowsort label-8993 SELECT ALL - - COUNT ( * ), - CASE 39 WHEN + - COALESCE ( + - CAST ( NULL AS FLOAT8 ), + MIN ( DISTINCT 96 ) * - 3 + - CAST ( NULL AS INTEGER ) ) * 50 THEN NULL WHEN 64 THEN + 36 ELSE NULL END AS col1 @@ -47219,8 +47781,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) / - + 67 + 38 col1, + 41 * + - 55 AS col1 +---- +-2255 +38 query I rowsort SELECT DISTINCT + NULLIF ( - 62, - 24 ) * + 89 + 34 - + 11 AS col2 @@ -47241,8 +47806,12 @@ SELECT + ( - - 2 ) AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 474 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(6\) \* Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, + 6 * + + 79 AS col2, 99 +---- +474 +99 +NULL query I rowsort label-8999 SELECT + + CAST ( NULL AS INTEGER ) * + 63 / 68 + + COUNT ( * ) + - 70 @@ -47446,8 +48015,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 69 AS col1, COUNT ( * ) * - 85 AS col1 +---- +-69 +-85 query I rowsort label-9038 SELECT ALL - + 64 * + 76 + + MAX ( ALL + - 33 ) * + ( - 14 ) * + 55 @@ -47523,8 +48095,11 @@ SELECT ALL 93 * 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \+ \(\- Int64\(94\)\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 + - + 94 AS col1, 55 AS col1 +---- +-44 +55 query II rowsort label-9053 SELECT + MIN ( ALL - - 74 ) AS col0, 99 * - 51 AS col1 @@ -47893,8 +48468,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1624896 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(56\) \* Int64\(\-31\) \* Int64\(13\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 * 56 * + - 31 * + + 13 AS col1, + 51 AS col1 +---- +-1624896 +51 query I rowsort SELECT ALL + 87 * - - 58 @@ -48017,8 +48595,11 @@ SELECT ALL 81 + - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 125 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(43\)\)\) \+ Int64\(72\) \+ Int64\(10\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - + 43 ) + 72 + 10 AS col0, 60 AS col0 +---- +125 +60 query I rowsort label-9146 SELECT ALL + COUNT ( - + 72 ) @@ -48280,8 +48861,11 @@ SELECT + CASE 44 WHEN - 80 + 46 THEN NULL WHEN - MIN ( ALL - - 77 ) THEN + - 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2668 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* Int64\(29\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 92 * + 29 AS col0, + 42 AS col0 +---- +2668 +42 query I rowsort SELECT ALL 98 * - 96 @@ -48683,8 +49267,11 @@ SELECT DISTINCT - + NULLIF ( - COUNT ( + - 3 ), + + MIN ( 49 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3773 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-76\) \+ Int64\(\-89\) \* Int64\(41\) \+ \(\- Int64\(49\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(NULL AS Int32\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + COUNT ( * ) + - 76 + - 89 * 41 + - ( + 49 ) AS col1, + COUNT ( * ) + - ( + COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) * ( - + COUNT ( * ) ) * COUNT ( * ) - + COUNT ( * ) * - 66 AS col1 +---- +-3773 +NULL query II rowsort label-9272 SELECT + 17, + 29 / - 37 AS col2 @@ -49038,8 +49625,11 @@ SELECT 10 * + 56 + ( 84 ) + + NULLIF ( + 99, 51 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4752 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \* Int64\(54\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 88 * 54 AS col1, 48 AS col1 +---- +-4752 +48 query II rowsort SELECT + 82 AS col1, 18 - 91 AS col2 @@ -49373,8 +49963,11 @@ SELECT COUNT ( + - NULLIF ( + - 24, + ( 90 ) + + ( ( + CAST ( NULL AS FLOAT8 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(44\) \+ Int64\(6\) \+ \(\- Int64\(79\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, 44 + 6 + ( - + 79 ) AS col0 +---- +-29 +1 query I rowsort SELECT ( - 69 ) + 83 @@ -49672,8 +50265,11 @@ SELECT ALL 47 + 27 - + 30 + - 39 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-28\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - - COUNT ( * ) ) AS col1, - 28 * + + COUNT ( * ) AS col1 +---- +-28 +1 query I rowsort label-9462 SELECT ALL 90 + 77 * - COUNT ( * ) + + COUNT ( - - ( - 44 ) ) @@ -49831,8 +50427,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 159 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \- \(\- Int64\(62\)\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 97 - + ( - + 62 ) AS col2, + 35 AS col2 +---- +159 +35 query I rowsort SELECT DISTINCT + 72 * 9 AS col0 @@ -49883,8 +50482,11 @@ SELECT 32 * + + 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 76 AS col2, COUNT ( * ) col2 +---- +1 +76 query II rowsort SELECT 76 AS col0, 23 AS col2 @@ -49962,8 +50564,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col1, 33 + - + 9 AS col1 +---- +-1 +24 query I rowsort SELECT ALL 68 + + - 19 @@ -49988,8 +50593,11 @@ SELECT ALL 52 + - 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col0" at position 0 and "Int64\(\-25\) \- Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 49 AS col0, - 25 - - 60 AS col0 +---- +-49 +35 query I rowsort label-9520 SELECT DISTINCT - CASE + 80 WHEN - COALESCE ( - 15, - - CASE - - 41 WHEN 42 + - 53 THEN NULL ELSE 81 END * + ( - 4 ), 82 + COUNT ( * ) ) - + 72 + + + COUNT ( * ) + + 44 / + 53 THEN - - 66 ELSE + 97 END AS col0 @@ -50234,8 +50842,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 24300 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ Int64\(\-27\) AS col0" at position 0 and "Int64\(45\) \* \(\- Int64\(\-45\)\) \* Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 33 + - 27 AS col0, + 45 * - - 45 * 12 AS col0 +---- +24300 +6 query II rowsort SELECT ( + 86 ), - 71 col2 @@ -50363,8 +50974,11 @@ SELECT COUNT ( * ) AS col2, - 65 + + 53 + - - 48 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -720 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "Int64\(8\) \* Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 23 AS col1, 8 * - 90 AS col1 +---- +-720 +23 query I rowsort SELECT ALL 20 * + 92 AS col1 @@ -50611,8 +51225,11 @@ 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\(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\. +query II valuesort SELECT 6 + 24 + + NULLIF ( - + 50, + 37 ) + - - COUNT ( * ) / + + 31 * + 21 AS col0, + 43 - + 79 AS col0 +---- +-20 +-36 query I rowsort label-9636 SELECT ALL 11 * + CAST ( NULL AS INTEGER ) / + 82 @@ -50735,8 +51352,11 @@ SELECT ALL - - COUNT ( * ) / - + 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 782 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* Int64\(36\) \- Int64\(83\) \+ count\(DISTINCT \(\- Int64\(\-50\)\)\) AS col0" at position 0 and "Int64\(38\) \* \(\- Int64\(1\)\) \- nullif\(\(\- Int64\(\-22\)\), CAST\(CAST\(NULL AS Float64\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 24 * 36 - + 83 + COUNT ( DISTINCT - - 50 ) AS col0, 38 * - + 1 - NULLIF ( - - 22, + CAST ( + CAST ( NULL AS FLOAT8 ) AS INTEGER ) ) AS col0 +---- +-60 +782 query I rowsort SELECT + 42 * - + ( 28 ) @@ -50929,8 +51549,11 @@ 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 col1" at position 0 and "Int64\(71\) / Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 15 AS col1, 71 / 71 AS col1 +---- +1 +15 query II rowsort SELECT ALL + 58 AS col2, 54 + 73 AS col0 @@ -50966,8 +51589,11 @@ SELECT ALL + MAX ( 19 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col1" at position 0 and "Int64\(\-52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( 4 ) AS col1, - 52 AS col1 +---- +-52 +4 query I rowsort label-9703 SELECT ALL - NULLIF ( - 45, + MAX ( 2 ) * 19 + + 75 / 6 - + ( 41 ) / - - 32 * - 87 + 60 ) * COUNT ( * ) + 91 + + 85 - + 36 + + - COALESCE ( + 67, - 33 - + + COUNT ( * ) + + + 80 * + COUNT ( * ) * 54 + + 33 ) / - 92 AS col2 @@ -51070,8 +51696,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 6111 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \* Int64\(\-63\) AS col0" at position 0 and "Int64\(\-14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 97 * - 63 AS col0, - 14 col0 +---- +-14 +6111 query I rowsort label-9722 SELECT + ( - COUNT ( * ) ) * + 23 / + 3 AS col2 @@ -51496,8 +52125,11 @@ 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\(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\. +query II valuesort SELECT - 36 + - 79 + COUNT ( * ) * - NULLIF ( MIN ( ALL ( 93 ) ), - COUNT ( ALL 99 ) ) AS col1, - 49 AS col1 +---- +-208 +-49 query I rowsort label-9804 SELECT ALL 75 / - 95 @@ -51568,8 +52200,11 @@ SELECT - 48 * + - 24 + - 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(0\)\) AS Int32\)\) \* Int64\(\-21\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( - - 0 AS INTEGER ) * - 21 AS col2, + 24 AS col2 +---- +0 +24 query I rowsort label-9818 SELECT + CASE - - 29 WHEN + 85 * 8 + - CAST ( + + 96 AS INTEGER ) THEN NULL ELSE - CASE + 95 WHEN - 44 * - + 45 / NULLIF ( - - 28, + ( - 54 ) ) * + + CAST ( NULL AS INTEGER ) + + 50 + + CASE - 75 WHEN - + ( - 15 ) * + - 61 THEN + - ( - 40 ) * - - 9 WHEN COUNT ( - 98 ) * + - 22 + + COUNT ( * ) THEN NULL WHEN - - ( + - 64 ) THEN NULL ELSE NULL END THEN - 89 + + ( + 93 ) ELSE + 85 END + 17 END @@ -51642,8 +52277,11 @@ SELECT DISTINCT + ( + CASE + COUNT ( * ) WHEN - 36 + 66 / - + 62 * + + 85 + - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -23925 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col2" at position 0 and "Int64\(\-5\) \* Int64\(87\) \* Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 64 AS col2, - 5 * + 87 * + + 55 AS col2 +---- +-23925 +64 query I rowsort label-9832 SELECT ALL + COALESCE ( - 98, - + COALESCE ( + CASE - + CAST ( 88 AS INTEGER ) WHEN + ( - 50 ) THEN + - 13 END, - 45, + - 33 ), + 57, 36 ) AS col0 @@ -51863,8 +52501,11 @@ SELECT DISTINCT 17 + - 99 - + 28 * 80 AS col2 # 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 "Int64\(89\) \+ Int64\(\-22\) AS col0" at position 0 and "min\(DISTINCT Int64\(16\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 + - 22 AS col0, + MIN ( DISTINCT 16 ) col0 +---- +16 +67 query I rowsort SELECT DISTINCT 93 + 47 @@ -51967,8 +52608,11 @@ SELECT - 39 * - + 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) / Int64\(78\) AS col2" at position 0 and "Int64\(63\) \* Int64\(\-94\) \* CAST\(NULL AS Int32\) \* Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 / + + 78 AS col2, 63 * - 94 * CAST ( NULL AS INTEGER ) * - 74 AS col2 +---- +0 +NULL query I rowsort label-9893 SELECT DISTINCT + SUM ( DISTINCT + 31 ) * CASE + + 92 WHEN 0 / + 67 / - 22 THEN COUNT ( * ) + + + 94 / 85 * - - 79 END @@ -51978,14 +52622,20 @@ 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\(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\. +query II valuesort SELECT + ( - + COUNT ( * ) ) AS col1, + COUNT ( * ) * 89 AS col1 +---- +-1 +89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2870 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* Int64\(\-82\) AS col1" at position 0 and "\(\- max\(CAST\(Int64\(12\) AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 35 * - 82 col1, - MAX ( + CAST ( + 12 AS INTEGER ) ) AS col1 +---- +-12 +-2870 query I rowsort label-9896 SELECT DISTINCT 10 * - CASE - + 13 WHEN + ( - - 57 ) THEN - COUNT ( * ) + + 60 WHEN - COALESCE ( COUNT ( * ), MIN ( + 63 ) + 98 ) * + - COALESCE ( 76, ( + 73 ) + - + 38, + CAST ( NULL AS INTEGER ) * 8 - - - 93 + - 65 + 84 ) - 66 THEN NULL END @@ -52232,8 +52882,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 78 * - 44 AS col0, - COUNT ( * ) AS col0 +---- +-1 +-3432 query I rowsort SELECT - CASE + ( - 45 ) WHEN - + 1 THEN + + 99 END * 26 AS col2 diff --git a/data/sqlite/random/expr/slt_good_79.slt b/data/sqlite/random/expr/slt_good_79.slt index 3b6cd7a..7460cba 100644 --- a/data/sqlite/random/expr/slt_good_79.slt +++ b/data/sqlite/random/expr/slt_good_79.slt @@ -237,8 +237,11 @@ SELECT + 74 / COUNT ( * ) / - - 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ Int64\(0\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 39 + + - 0 AS col2, + 2 AS col2 +---- +2 +39 query I rowsort label-37 SELECT 75 * CAST ( + COUNT ( * ) AS INTEGER ) - CAST ( + 26 AS INTEGER ) + + ( + 44 ) / COUNT ( * ) @@ -508,8 +511,11 @@ SELECT + 1 * - ( + 59 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2301 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* Int64\(\-84\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(\(\- coalesce\(Int64\(51\), Int64\(\-29\)\)\) AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( 28 ) * + - 84 * - COUNT ( * ) + CAST ( - + COALESCE ( 51, - 29 ) AS INTEGER ) AS col2, COUNT ( * ) + - 72 col2 +---- +-71 +2301 query I rowsort SELECT + 10 + + 73 @@ -815,8 +821,11 @@ SELECT ALL - MIN ( NULLIF ( + NULLIF ( + + 97, + 24 ), - 2 ) ) + COUNT ( ALL 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \+ Int64\(3\) \- Int64\(\-3\) AS col0" at position 0 and "CAST\(\(\- \(\- max\(DISTINCT Int64\(51\)\)\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 10 + + 3 - - 3 AS col0, CAST ( - - MAX ( DISTINCT + 51 ) AS INTEGER ) col0 +---- +16 +51 query I rowsort label-149 SELECT - + 4 + 8 * + - 60 - 78 - - + COUNT ( * ) + 59 / + 35 / 24 * 66 AS col1 @@ -1679,8 +1688,11 @@ SELECT ALL 1 * 18 + - + 57 + - 46 AS col0 # 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 "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 AS col2, 69 AS col2 +---- +-20 +69 query I rowsort SELECT ALL NULLIF ( 71, - + 82 ) @@ -1818,8 +1830,11 @@ NULL # 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\)" at position 0 and "Int64\(\-55\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 55, - 55 +---- +-55 +-55 query II rowsort SELECT 54, 93 - + 21 AS col1 @@ -1869,8 +1884,12 @@ NULL # Datafusion - Expected - 44 # Datafusion - Expected - 82 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ Int64\(14\) AS col1" at position 0 and "Int64\(68\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ( 30 ) + + 14 AS col1, 36 + 46, + + 68 AS col1 +---- +44 +68 +82 query I rowsort label-348 SELECT COUNT ( DISTINCT + + 78 ) * 67 + - ( 5 ) * + 0 + 39 + 34 * + - 3 + - 81 * + CASE + 24 WHEN 66 * + - 14 + + + 56 + + ( - MIN ( ALL - ( + - ( + 6 ) ) ) ) THEN - 18 ELSE NULL END AS col2 @@ -2285,8 +2304,11 @@ SELECT DISTINCT + + 6 + + + 86 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 154 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ Int64\(68\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 86 + + 68 AS col1, ( COUNT ( * ) ) AS col1 +---- +1 +154 query I rowsort SELECT ALL + 87 + - + 89 @@ -2417,8 +2439,11 @@ 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 "Int64\(3\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 AS col0, + 64 AS col0 +---- +3 +64 query I rowsort SELECT 27 * + 60 @@ -3210,8 +3235,11 @@ SELECT DISTINCT COUNT ( * ) - - 84 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 24 AS col1, 41 AS col1 +---- +24 +41 query I rowsort SELECT DISTINCT 2 * 79 AS col1 @@ -3466,8 +3494,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 * - + COUNT ( * ) AS col2, - 12 AS col2 +---- +-12 +-8 query I rowsort label-655 SELECT + MAX ( - 10 ) * - - 0 * + 0 * 59 AS col1 @@ -4201,8 +4232,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 36 * 70 + + 7 AS col1, - 55 / - + MAX ( + - 62 ) + ( - COUNT ( * ) ) * + - 56 AS col1 +---- +-2513 +56 query I rowsort label-795 SELECT - 1 / 97 AS col0 @@ -4343,8 +4377,11 @@ SELECT + 35 - - - 37 - - - 13 * - SUM ( ALL + NULLIF ( 4, 28 * + + 7 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "Int64\(57\) \+ Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 AS col1, 57 + 75 AS col1 +---- +132 +29 query I rowsort label-821 SELECT COALESCE ( 93, + - 53, + COALESCE ( - + ( - - 59 ), - CASE WHEN ( NULL ) NOT IN ( + 3 ) THEN + CAST ( NULL AS INTEGER ) + 5 * 36 WHEN 81 IN ( + COUNT ( * ) + 38 ) THEN 95 ELSE NULL END - - 96 * + COUNT ( * ) ) + + 1 * CAST ( 17 + 36 AS INTEGER ) ) + + COUNT ( * ) @@ -4760,8 +4797,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) / 15 AS col1, 70 * + CASE + + 33 WHEN 23 + - 75 THEN + 34 END AS col1 +---- +0 +NULL query II rowsort SELECT DISTINCT + 94 * + 75 col2, 95 + CASE + 23 WHEN 30 * - 2 / - 76 THEN + 14 ELSE NULL END @@ -4883,8 +4923,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-48\), CASE WHEN NOT Int64\(82\) IS NOT NULL THEN Int64\(30\) END, Int64\(\-9\)\) AS col2" at position 0 and "Int64\(30\) \+ sum\(Int64\(95\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + COALESCE ( - 48, + CASE WHEN NOT + 82 IS NOT NULL THEN + 30 END, - 9 ) AS col2, 30 + + SUM ( 95 ) AS col2 +---- +-48 +125 query I rowsort label-924 SELECT DISTINCT - COUNT ( * ) + + - COUNT ( ALL 11 ) @@ -5185,8 +5228,11 @@ SELECT - 16 / + 84 + + - 80 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -105 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "Int64\(\-7\) \+ Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 28 AS col2, - 7 + + - 98 col2 +---- +-105 +28 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -5281,8 +5327,11 @@ SELECT - COUNT ( - - 54 ) # 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 "CASE \(\- Int64\(83\)\) WHEN \(\- CASE \(\- Int64\(86\)\) WHEN Int64\(\-39\) THEN NULL ELSE Int64\(28\) \+ Int64\(84\) END\) THEN Int64\(\-58\) WHEN Int64\(90\) \* Int64\(51\) THEN NULL END AS col0" at position 0 and "Int64\(55\) \+ Int64\(\-44\) \+ count\(DISTINCT Int64\(91\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CASE - + 83 WHEN - CASE - + 86 WHEN - 39 THEN NULL ELSE 28 + + 84 END THEN - 58 WHEN 90 * + + 51 THEN NULL END AS col0, + 55 + + - 44 + COUNT ( DISTINCT + 91 ) AS col0 +---- +12 +NULL query I rowsort label-1000 SELECT ALL - 63 + + CAST ( - 51 AS INTEGER ) - 63 / - 88 * - 76 @@ -5356,8 +5405,11 @@ SELECT DISTINCT 63 * - - 39 * + - 81 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - -180 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(31\)\)\) AS col1" at position 0 and "Int64\(15\) \* \(\- coalesce\(Int64\(12\), Int64\(15\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - MAX ( 31 ) col1, 15 * + - COALESCE ( 12, + + 15 ) AS col1 +---- +-180 +-31 query I rowsort SELECT ALL + 69 * - - 52 @@ -5515,8 +5567,11 @@ SELECT + 25 * + 84 # 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 "Int64\(12\) AS col2" at position 0 and "Int64\(80\) / Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 12 AS col2, + 80 / 33 AS col2 +---- +12 +2 query I rowsort SELECT ( ( - 92 ) ) @@ -6447,8 +6502,11 @@ SELECT DISTINCT - MIN ( 70 ) * + - 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -144 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* Int64\(\-8\) AS col0" at position 0 and "Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 * - 8 AS col0, - 92 AS col0 +---- +-144 +-92 query I rowsort label-1223 SELECT DISTINCT CASE - + 38 WHEN + COUNT ( * ) THEN 52 * + - 93 * + 54 WHEN + ( + 4 ) - + 79 + - + 4 * - ( - - 5 ) + + 49 THEN - - CAST ( MIN ( + 45 ) AS INTEGER ) * + COUNT ( * ) ELSE NULL END AS col2 @@ -6886,8 +6944,11 @@ SELECT MIN ( DISTINCT - 17 ) * 98 + + 74 # 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 "\(\- Int64\(91\)\) AS col0" at position 0 and "Int64\(\-84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 91 AS col0, - 84 col0 +---- +-84 +-91 query I rowsort label-1307 SELECT DISTINCT + 47 - + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2 @@ -7925,8 +7986,12 @@ SELECT + 20 / 10 * + - 9 + 17 # Datafusion - Expected - 144 # Datafusion - Expected - -8245 # Datafusion - Expected - -5367 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* sum\(Int64\(\-97\)\) AS col1" at position 1 and "Int64\(\-62\) \+ Int64\(2\) \+ Int64\(9\) \* Int64\(\-30\) \+ Int64\(69\) \* Int64\(\-73\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 60 + - - 84, 85 * + SUM ( ALL - 97 ) col1, - 62 + 2 + 9 * + - 30 + 69 * - 73 AS col1 +---- +-5367 +-8245 +144 query I rowsort label-1506 SELECT + 24 / + 59 * - 9 @@ -8004,8 +8069,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 149 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \+ Int64\(75\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 74 + + 75 AS col0, 31 AS col0 +---- +149 +31 query I rowsort label-1521 SELECT + CASE + 26 WHEN - 62 + + + 37 THEN NULL WHEN - CASE + CAST ( NULL AS INTEGER ) WHEN + 96 THEN NULL ELSE - 33 + 37 END / ( - ( + 54 ) ) - + ( 21 ) + 31 + 3 / - 76 + - ( - 6 ) THEN + 96 + - MIN ( DISTINCT + 74 ) ELSE + ( - COUNT ( * ) ) * COUNT ( * ) * + 55 END * + 35 * + COUNT ( * ) * COUNT ( * ) * - + 59 * - 18 + - COUNT ( * ) @@ -8306,8 +8374,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( ALL - 31 ) AS col2, - COUNT ( * ) AS col2 +---- +-1 +-31 query I rowsort label-1579 SELECT ( + 60 ) * + - 94 * - ( - - CAST ( NULL AS INTEGER ) ) / 80 AS col1 @@ -8526,8 +8597,11 @@ SELECT ALL NULLIF ( - 67, 1 - 41 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - 170 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col2" at position 0 and "Int64\(2\) \* Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 80 AS col2, + 2 * + 85 col2 +---- +-80 +170 query I rowsort label-1622 SELECT - CAST ( NULL AS INTEGER ) + + 48 / + 69 @@ -8845,8 +8919,11 @@ SELECT DISTINCT - ( - + ( 28 ) ) * - 46 * - + 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 13 AS col0, 17 AS col0 +---- +13 +17 query I rowsort label-1682 SELECT ALL + ( 4 ) + - COUNT ( * ) col2 @@ -8974,8 +9051,11 @@ SELECT MAX ( - + 20 ) 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 "max\(DISTINCT Int64\(2\)\) 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 II valuesort SELECT + MAX ( DISTINCT 2 ) AS col1, COUNT ( - 42 ) col1 +---- +1 +2 query I rowsort label-1706 SELECT - COUNT ( * ) * - 44 AS col1 @@ -9214,8 +9294,11 @@ SELECT DISTINCT + + ( - + 41 ) * - - 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(\(\- nullif\(Int64\(15\), Int64\(\-16\)\)\)\)\)\) \- Int64\(34\) \+ Int64\(\-25\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - MAX ( ALL - NULLIF ( 15, - 16 ) ) - 34 + - 25 AS col2, 29 AS col2 +---- +-74 +29 query I rowsort SELECT - + ( - 63 ) @@ -9937,8 +10020,11 @@ SELECT ALL + - 60 + - 26 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2025 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(\-54\) \+ 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 II valuesort SELECT 39 * + - 54 + + 81 AS col0, 72 col0 +---- +-2025 +72 query I rowsort SELECT - ( - 82 ) @@ -10552,8 +10638,11 @@ SELECT + ( - 34 ) * + NULLIF ( + + 26, - - NULLIF ( - + CAST ( NULL AS FLOAT8 ), # 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 "\(\- sum\(Int64\(\-33\)\)\) \+ \(\- Int64\(\-66\)\) AS col0" at position 0 and "Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( ALL - 33 ) + - - 66 AS col0, 3 AS col0 +---- +3 +99 query I rowsort SELECT ALL 28 * + + 53 @@ -11830,8 +11919,11 @@ SELECT DISTINCT 89 * + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 42 AS col1, 14 AS col1 +---- +-42 +14 query I rowsort label-2257 SELECT COUNT ( * ) / + 23 / - + 3 - + 65 + + 25 AS col0 @@ -12311,8 +12403,11 @@ SELECT 17 / COUNT ( * ) AS col2, + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \+ 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 II valuesort SELECT ALL - 50 + 68 AS col2, ( - 18 ) AS col2 +---- +-18 +18 query I rowsort label-2349 SELECT + COUNT ( - - 19 ) * 0 * - + 91 AS col2 @@ -12395,8 +12490,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "Int64\(\-23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 84 col0, - 23 AS col0 +---- +-23 +84 query II rowsort label-2365 SELECT DISTINCT 35 AS col2, - COALESCE ( + MIN ( ALL + 73 ), - - COALESCE ( - 78, 57 ) ) * + + 88 @@ -12910,8 +13008,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 26 AS col0, 86 * - COUNT ( * ) col0 +---- +-86 +26 query I rowsort label-2462 SELECT DISTINCT - COUNT ( * ) + - 86 AS col0 @@ -12940,8 +13041,11 @@ SELECT DISTINCT + 48 + - + 44 * - 35 AS col0, CAST ( + 25 AS INTEGER ) + - + 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 98 AS col2, 2 AS col2 +---- +-98 +2 query I rowsort SELECT 94 * - + 98 + - 4 @@ -13432,8 +13536,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 61 AS col1, + 59 / - - ( - COUNT ( * ) ) AS col1 +---- +-59 +-61 query I rowsort label-2563 SELECT - + 28 / + - 4 + - - NULLIF ( + 25, + 19 / 87 * 16 + + + CAST ( NULL AS INTEGER ) ) * - 61 @@ -14259,8 +14366,11 @@ SELECT DISTINCT 94 AS col1, + COUNT ( * ) - - ( - 65 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 51 AS col0, 7 AS col0 +---- +51 +7 query I rowsort label-2722 SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) * + 77 AS col2 @@ -14290,8 +14400,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 AS col1, COUNT ( * ) / + - 40 col1 +---- +0 +46 query I rowsort label-2728 SELECT - COUNT ( * ) + - 80 AS col2 @@ -14684,8 +14797,11 @@ SELECT ALL 92 + - 94 / + + 8 AS col0, + COUNT ( 28 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-49\)\) \+ \(\- sum\(Int64\(48\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( - 49 ) + - SUM ( ALL + 48 ) col1, COUNT ( * ) AS col1 +---- +-47 +1 query I rowsort label-2804 SELECT + 31 - + - 40 * - 62 - + - COUNT ( * ) @@ -14779,8 +14895,11 @@ SELECT + CAST ( CAST ( + - 74 AS INTEGER ) AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) \+ \(\- Int64\(\-50\)\) \+ Int64\(10\) AS col0" at position 0 and "Int64\(53\) / Int64\(91\) \- Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 71 + - ( - 50 ) + + 10 col0, ( + 53 ) / + + 91 - + 42 AS col0 +---- +-11 +-42 query I rowsort label-2822 SELECT ALL ( - 2 ) / 8 - COUNT ( ALL + + COALESCE ( - ( + 73 ), + + 70, + - 47 * + 43 * + 77 ) ) @@ -15101,8 +15220,11 @@ SELECT - 60 + 50 AS col0, - 71 * + 53 AS col2 # 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 col2" at position 0 and "Int64\(\-15\) / \(\- Int64\(96\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 63 AS col2, - 15 / - + 96 AS col2 +---- +0 +63 query I rowsort SELECT + 54 * + 56 @@ -15315,8 +15437,11 @@ NULL # 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 "Int64\(\-64\) / Int64\(61\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 / 61 col2, + 41 AS col2 +---- +-1 +41 query I rowsort label-2924 SELECT ALL - ( 4 ) / + 72 + - + 64 + + - 61 - - 20 + NULLIF ( - 47, + 39 + - 66 + - 98 ) + - 3 / - 74 * 44 * 10 + 63 * + - 19 - - 70 @@ -15387,8 +15512,11 @@ 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\(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\. +query II valuesort SELECT + MAX ( DISTINCT + 52 ) * COALESCE ( NULLIF ( - - 76, - + 61 ), - - COUNT ( * ) ) AS col0, 83 * - 17 AS col0 +---- +-1411 +3952 query I rowsort SELECT + 28 + + 71 - - NULLIF ( - 82, + CASE + 53 WHEN ( + - ( + + 57 ) ) THEN - NULLIF ( 86, + - 39 - + + 59 ) WHEN - + 61 / 70 * - - 46 * 32 THEN NULL ELSE 60 + + 98 * 56 END ) AS col1 @@ -16055,8 +16183,11 @@ SELECT - COUNT ( * ), - 19 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - 4576 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col2" at position 0 and "Int64\(52\) \* Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 43 AS col2, + 52 * + 88 AS col2 +---- +-43 +4576 query I rowsort label-3067 SELECT 30 * + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col1 @@ -16295,8 +16426,11 @@ SELECT + SUM ( 7 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 4484 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \* count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-59\) \* Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 46 * + COUNT ( * ) * + COUNT ( * ) AS col1, - 59 * - 76 AS col1 +---- +4484 +46 query I rowsort SELECT DISTINCT 58 + + 16 AS col0 @@ -16323,8 +16457,11 @@ SELECT CAST ( + - 53 AS INTEGER ) * 2 * - + 55 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -720 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 0 and "Int64\(8\) \* Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 AS col1, 8 * - 90 AS col1 +---- +-720 +91 query II rowsort SELECT 94, - 62 col1 @@ -16701,8 +16838,11 @@ SELECT - COUNT ( * ) * - 36 * - COUNT ( * ) * 72 * 28 + - - 52 * + ( - 15 ) + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "Int64\(38\) \+ Int64\(48\) \- Int64\(85\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) / Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 col2, ( + 38 ) + + 48 - + 85 + - - CAST ( NULL AS INTEGER ) / + 77 AS col2 +---- +16 +NULL query I rowsort SELECT 20 * + + COALESCE ( 50, - 17, ( - 9 ) ) @@ -16795,8 +16935,11 @@ SELECT COUNT ( * ) - - 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ Int64\(68\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 30 + + + 68 AS col2, CAST ( NULL AS INTEGER ) col2 +---- +98 +NULL query II rowsort label-3208 SELECT ALL - 99, ( + NULLIF ( - 44, 70 * + + 29 + COUNT ( * ) + + - 50 ) ) + 28 * + 19 col2 @@ -17100,8 +17243,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(27\) \+ \(\- Int64\(19\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 AS col2, 3 * COUNT ( * ) * + 27 + - + 19 AS col2 +---- +-48 +62 query I rowsort label-3266 SELECT ALL - 66 + + COUNT ( * ) + 46 * 60 - + 94 @@ -17682,14 +17828,20 @@ SELECT DISTINCT + COUNT ( 49 ) + - CAST ( + 35 AS INTEGER ) + - 99 + + MAX ( - + # 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\(\-28\) \+ Int64\(\-38\) AS col2" at position 0 and "CASE Int64\(\-33\) WHEN Int64\(\-89\) THEN Int64\(13\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 28 + - 38 AS col2, CASE - 33 WHEN - 89 THEN 13 ELSE NULL END AS col2 +---- +-66 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "\(\- CASE WHEN NULL IS NULL THEN NULL ELSE Int64\(19\) END\) / \(\- \(\- max\(Int64\(\-25\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 87 AS col0, - CASE WHEN ( NULL ) IS NULL THEN NULL ELSE 19 END / - - MAX ( + - 25 ) AS col0 +---- +87 +NULL query I rowsort label-3376 SELECT + 10 + - + MAX ( + 97 ) AS col1 @@ -17714,8 +17866,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 27 AS col0, 25 AS col0 +---- +-27 +25 query I rowsort label-3381 SELECT + - ( + - 16 ) * - ( 94 ) * - 47 + - SUM ( DISTINCT + 88 ) - 69 / + + COUNT ( * ) + 14 @@ -17789,8 +17944,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2436 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) \* Int64\(42\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 58 * + 42 AS col2, + COUNT ( * ) AS col2 +---- +-2436 +1 query I rowsort label-3395 SELECT DISTINCT 90 * - COALESCE ( + 80, 89 - 40, - - 56 + - NULLIF ( CASE - - COUNT ( * ) WHEN - 8 + 49 THEN + + 80 END, - - 45 ) ) + + 48 + + - 78 * + MAX ( DISTINCT + + 73 ) AS col0 @@ -17957,8 +18115,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 73 AS col2, + NULLIF ( - 17, - COUNT ( * ) ) col2 +---- +-17 +73 query I rowsort SELECT 32 + + 70 * 42 + + 2 - + 31 * - - 86 @@ -18256,8 +18417,11 @@ SELECT - 72 / - 24 - + 25 + + 82 + 82 * + + COUNT ( * ) + COUNT ( * ) + - - 96 A # Datafusion - Datafusion expected results: # Datafusion - Expected - -1147 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* Int64\(\-64\) \+ Int64\(\-63\) / \(\- \(\- max\(DISTINCT Int64\(\-12\)\)\)\) AS col2" at position 0 and "Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 * - 64 + - 63 / - - MAX ( DISTINCT - 12 ) AS col2, - 12 AS col2 +---- +-1147 +-12 query I rowsort SELECT + 30 * + 36 AS col0 @@ -18525,8 +18689,11 @@ SELECT + COALESCE ( - NULLIF ( + 44, + + 58 ), 35 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4048 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* Int64\(46\) AS col1" at position 0 and "\(\- Int64\(\-59\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 88 * 46 AS col1, ( ( - ( + - 59 ) ) ) AS col1 +---- +4048 +59 query I rowsort label-3536 SELECT - COUNT ( * ) - + 51 AS col2 @@ -18654,8 +18821,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + + 36 AS col1, 39 AS col1 +---- +37 +39 query I rowsort label-3561 SELECT 55 * 47 * - + 51 + COUNT ( * ) * - - 49 @@ -18677,8 +18847,11 @@ SELECT 41 / - 21 AS col1, - 4 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2046 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \* \(\- Int64\(\-22\)\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 93 * - - 22 AS col0, 13 AS col0 +---- +13 +2046 query I rowsort label-3565 SELECT 20 / + + CAST ( + 51 AS INTEGER ) + - 43 @@ -19863,8 +20036,11 @@ SELECT - 97 * + 33 + 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2548 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* Int64\(26\) AS col2" at position 0 and "Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 98 * 26 AS col2, + 83 AS col2 +---- +2548 +83 query I rowsort label-3795 SELECT ALL - COALESCE ( ( - CASE - - 97 WHEN 95 / + 65 THEN + MAX ( 29 ) ELSE - 31 + - 29 END ), - MIN ( ALL 43 ) ) AS col1 @@ -20082,8 +20258,11 @@ SELECT DISTINCT + 1 + + 9 + + - 46 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 49 AS col1, 85 AS col1 +---- +-49 +85 query I rowsort SELECT ALL - - 44 + 89 AS col0 @@ -20587,8 +20766,11 @@ SELECT 5 + 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 74 AS col1, + 99 AS col1 +---- +74 +99 query I rowsort label-3933 SELECT 21 + - 79 * + - COUNT ( - ( + - 11 ) ) AS col0 @@ -20703,8 +20885,11 @@ SELECT ALL + 53, 88 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 84412 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col1" at position 0 and "Int64\(\-48\) \+ Int64\(68\) \* \(\- Int64\(\-17\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-73\)\) \+ Int64\(71\) \- CAST\(Int64\(90\) AS Int32\) / Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 AS col1, - 48 + + 68 * - - 17 * COUNT ( * ) * - - 73 + 71 - + CAST ( 90 AS INTEGER ) / - 46 AS col1 +---- +-31 +84412 query I rowsort label-3955 SELECT DISTINCT - MIN ( + 92 ) * + 66 AS col0 @@ -20805,8 +20990,11 @@ 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\(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\. +query II valuesort SELECT + MIN ( + + 78 ) * + COUNT ( * ) * 7 AS col1, + 7 * - 89 + - 90 AS col1 +---- +-713 +546 query I rowsort label-3975 SELECT ALL - 33 * MAX ( ALL - 36 ) @@ -20964,8 +21152,11 @@ SELECT + MAX ( + 98 ) + + - 82 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4850 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* Int64\(50\) AS col1" at position 0 and "Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 97 * + + ( 50 ) col1, 30 col1 +---- +30 +4850 query I rowsort SELECT DISTINCT + ( - 41 ) AS col1 @@ -21277,8 +21468,11 @@ SELECT DISTINCT 8 - 19 * - + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 4559 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col2" at position 0 and "count\(Int64\(73\)\) \* Int64\(32\) \+ Int64\(14\) \+ Int64\(94\) \* Int64\(48\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 67 col2, + COUNT ( ALL + 73 ) * + 32 + 14 + 94 * + 48 + COUNT ( * ) AS col2 +---- +4559 +67 query I rowsort SELECT DISTINCT 35 - - 29 @@ -21399,8 +21593,11 @@ SELECT + - ( + 51 ) AS col0, 59 # 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\(41\) / Int64\(12\) 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 II valuesort SELECT + 41 / 12 AS col1, + COUNT ( - 33 ) col1 +---- +1 +3 query I rowsort label-4088 SELECT DISTINCT 81 * 36 + - 26 + - CAST ( + 84 AS INTEGER ) * + 20 AS col2 @@ -21542,8 +21739,11 @@ SELECT - 82 * + 24 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26582 # Datafusion - Expected - -2523 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(58\)\) \+ \(\- Int64\(20\)\) \* Int64\(37\) \* \(\- Int64\(36\)\) AS col1" at position 0 and "Int64\(29\) \* \(\- min\(Int64\(87\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 58 + - + 20 * 37 * - + 36 AS col1, 29 * - + MIN ( ALL + 87 ) AS col1 +---- +-2523 +26582 query I rowsort SELECT DISTINCT - 12 + - 85 AS col2 @@ -21981,8 +22181,11 @@ 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\(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\. +query II valuesort SELECT 82 / - COUNT ( * ) + + - 38 * + + 57 + + COUNT ( * ) + - - NULLIF ( + - 72, + + SUM ( ALL + 73 ) * + MAX ( - 32 ) ) AS col0, 29 AS col0 +---- +-2319 +29 query II rowsort SELECT 90, + 74 AS col2 @@ -22123,8 +22326,11 @@ SELECT 41 + - 93 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1343 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(84\) \* Int64\(\-3\) \+ Int64\(\-74\) \- Int64\(17\) \+ \(\- Int64\(\-20\)\) \* Int64\(\-50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, 84 * - 3 + - 74 - 17 + - - 20 * + - 50 AS col0 +---- +-1343 +1 query I rowsort label-4226 SELECT ( - CAST ( - 8 AS INTEGER ) ) * + NULLIF ( - - 57, 35 ) - 6 @@ -22159,8 +22365,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* Int64\(21\) \* coalesce\(\(\- Int64\(63\)\), \(\- avg\(Int64\(\-75\)\)\)\) \+ Int64\(13\) \* CAST\(NULL AS Int32\) \+ Int64\(11\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT 10 * 21 * + COALESCE ( - + 63, - + AVG ( ALL - 75 ) ) + + 13 * + + CAST ( NULL AS INTEGER ) + 11 AS col2, + 10 AS col2 +---- +10 +NULL query II rowsort label-4232 SELECT - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) @@ -22208,14 +22417,20 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) AS col0, COALESCE ( 3, + + COUNT ( DISTINCT 99 ), 97 * - MIN ( - ( - + 54 ) ) ) AS col0 +---- +-1 +3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT ALL 48 AS col0, + 2 AS col0 +---- +2 +48 query I rowsort label-4242 SELECT SUM ( + 43 ) AS col2 @@ -22751,8 +22966,11 @@ SELECT - + COALESCE ( - 84, - 21 + + 88 * 26 ) * + + ( - + 42 ) + 57 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ Int64\(\-77\) AS col1" at position 0 and "Int64\(17\) \* \(\- Int64\(\-2\)\) \+ Int64\(35\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 30 + - 77 AS col1, + 17 * - - 2 + + 35 * COUNT ( * ) AS col1 +---- +-47 +69 query I rowsort label-4343 SELECT ALL + + 23 / - COUNT ( * ) AS col0 @@ -22846,8 +23064,11 @@ SELECT DISTINCT 22 * + - 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \+ \(\- \(\- min\(DISTINCT Int64\(98\)\)\)\) \+ Int64\(53\) AS col1" at position 0 and "Int64\(44\) \+ \(\- \(\- CASE Int64\(85\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(16\) WHEN \(\- \(\- CAST\(NULL AS Int32\)\)\) / Int64\(\-47\) THEN Int64\(\-18\) END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +73 +NULL query I rowsort label-4361 SELECT DISTINCT 69 * + ( - CAST ( NULL AS INTEGER ) ) * - + COALESCE ( + + 58, - + 79 * - 46, + 64 / + + 1 + + + COUNT ( + 16 ), 75 ) * + 85 AS col1 @@ -23157,8 +23378,11 @@ SELECT + + 95 * - - 5 * + - 1 + 81 + + 52 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -25397 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "Int64\(\-53\) \+ Int64\(72\) \* Int64\(16\) \* Int64\(\-22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90 col1, - 53 + + 72 * + 16 * - 22 AS col1 +---- +-25397 +90 query II rowsort label-4420 SELECT 4, - 77 / 45 + + COUNT ( * ) * - 57 * 7 / - - 39 + - 84 AS col1 @@ -23359,8 +23583,11 @@ SELECT - 6 / - + 92 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -425712 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(49\) \+ Int64\(\-12\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(86\)\) \* Int64\(\-55\) \* Int64\(90\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 28 * + - COUNT ( * ) / 49 + - 12 + - COUNT ( * ) * - + 86 * - 55 * 90 AS col0, + COUNT ( * ) col0 +---- +-425712 +1 query I rowsort SELECT ALL - ( + - 81 ) @@ -23370,8 +23597,11 @@ 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\(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\. +query II valuesort SELECT - NULLIF ( + COUNT ( * ), - 50 + + 73 + - - 13 ) * 15 + - 18 * + 49 + + 67 * - - 74 * - COUNT ( * ) + 37 AS col2, 18 * + 19 col2 +---- +-5818 +342 query III rowsort label-4460 SELECT 81 AS col2, - 11 / + COUNT ( * ) * - - 1 AS col0, + + 80 * COUNT ( * ) * + ( + 16 ) @@ -23774,8 +24004,12 @@ SELECT ALL 41, 66 AS col2 # Datafusion - Expected - 83 # Datafusion - Expected - 74 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col2" at position 0 and "Int64\(\-79\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 83 AS col2, 73 + COUNT ( * ), - 79 AS col2 +---- +-79 +74 +83 query II rowsort SELECT - - 17 AS col0, 34 + 87 + - + 18 @@ -24024,8 +24258,11 @@ SELECT - - ( - - 47 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - -293 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col2" at position 0 and "Int64\(4\) \* Int64\(\-88\) \+ \(\- Int64\(\-59\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 77 AS col2, + 4 * - 88 + - - 59 AS col2 +---- +-293 +-77 query I rowsort SELECT ALL 2 + 73 AS col1 @@ -24204,8 +24441,11 @@ SELECT + 93 * + NULLIF ( + + 33, + CASE WHEN - 37 = - - 93 * - 91 / ( - 53 ) THE # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 217 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(CASE nullif\(Int64\(70\), Int64\(\-62\) / Int64\(\-24\) \* Int64\(\-75\) \+ \(\- Int64\(\-9\)\)\) WHEN Int64\(\-80\) \+ \(\- Int64\(12\)\) THEN \(\- nullif\(Int64\(26\), Int64\(\-87\) \+ Int64\(\-65\) \- \(\- Int64\(\-66\)\) \* Int64\(84\) \* Int64\(39\)\)\) \* Int64\(11\) WHEN Int64\(17\) THEN \(\- \(\- nullif\(Int64\(52\), Int64\(\-28\) / Int64\(13\)\)\)\) ELSE NULL END\) AS col1" at position 0 and "Int64\(97\) \+ Int64\(49\) \+ Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT + ( + AVG ( CASE + NULLIF ( + 70, + - 62 / - 24 * - 75 + - - 9 ) WHEN - 80 + - + 12 THEN ( - NULLIF ( + 26, + - 87 + - 65 - - - 66 * 84 * + 39 ) ) * + 11 WHEN + 17 THEN - - NULLIF ( + + 52, - 28 / + ( + 13 ) ) ELSE NULL END ) ) AS col1, + 97 + + + 49 + 71 AS col1 +---- +217 +NULL query I rowsort label-4618 SELECT + 69 - 89 / - 90 + 74 AS col0 @@ -24960,8 +25200,11 @@ SELECT DISTINCT 14 - 43 + - 78 # 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 "Int64\(73\) / \(\- Int64\(38\)\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 73 / - + 38 AS col2, + 29 AS col2 +---- +-1 +29 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -25722,8 +25965,11 @@ SELECT 78 * - 84 - 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* Int64\(1\) AS col1" at position 0 and "Int64\(\-53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 69 * 1 AS col1, - 53 AS col1 +---- +-53 +69 query I rowsort label-4905 SELECT - NULLIF ( + 71, + 39 - - 85 ) * - COUNT ( * ) col0 @@ -25738,8 +25984,11 @@ SELECT ALL + NULLIF ( + + 83, + 36 ) # 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 col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 91 AS col2, + 66 AS col2 +---- +66 +91 query I rowsort SELECT - - 39 * - + ( - 51 ) AS col1 @@ -26021,15 +26270,22 @@ SELECT ALL + 7 * + - 11 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 AS col1, - 0 col1 +---- +0 +22 # Datafusion - Datafusion expected results: # Datafusion - Expected - -383 # Datafusion - Expected - NULL # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \* Int64\(71\) \- Int64\(28\) AS col0" at position 0 and "Int64\(46\) \+ Int64\(\-45\) \+ Int64\(36\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ( - 5 ) * + 71 - + 28 col0, CAST ( NULL AS INTEGER ) + + 53 * CAST ( NULL AS INTEGER ) * + + CAST ( - 64 AS INTEGER ) + COALESCE ( + CASE - - 53 WHEN ( NULLIF ( - 47, - + 63 ) ) * 22 THEN + 9 + - - ( - 23 ) * - 12 / + - 7 * - + COALESCE ( 48, + - 67 * + 78 + - - 17 ) WHEN + CAST ( + COUNT ( * ) AS INTEGER ) * + + SUM ( + 98 ) THEN NULL END, - 1 * - 87, - + 87 ) col1, 46 + - 45 + 36 AS col0 +---- +-383 +37 +NULL query II rowsort label-4963 SELECT 57 * + 42 + + + 58 - NULLIF ( + + COUNT ( * ), 11 * + 30 + 60 ) AS col1, 85 AS col2 @@ -26148,8 +26404,12 @@ 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\(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\. +query III valuesort SELECT COUNT ( * ) * - COUNT ( * ) * - 3 - - COUNT ( * ) AS col0, 37 AS col0, + 62 * + - ( 54 ) * - 15 +---- +37 +4 +50220 query I rowsort label-4985 SELECT ALL 14 * + COUNT ( * ) + - 59 + + 24 @@ -26629,8 +26889,11 @@ SELECT ALL 70 + - 9 AS col2 # 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 "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 9 AS col2, ( 7 ) col2 +---- +-9 +7 query I rowsort SELECT DISTINCT + 60 + - 17 + + 70 col2 @@ -26728,8 +26991,11 @@ SELECT ALL 26 * - NULLIF ( - - COALESCE ( SUM ( - 61 ), CAST ( NULL AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(59\)\)\) AS col2" at position 0 and "min\(Int64\(\-17\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( 59 ) AS col2, MIN ( - 17 ) AS col2 +---- +-1 +-17 query I rowsort label-5096 SELECT DISTINCT - 64 * + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2 @@ -27379,14 +27645,20 @@ SELECT DISTINCT + 7 + + 58 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* \(\- count\(Int64\(66\)\)\) \+ Int64\(38\) AS col2" at position 0 and "\(\- avg\(CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + 85 * - COUNT ( + + 66 ) + 38 AS col2, - AVG ( + CAST ( NULL AS INTEGER ) ) AS col2 +---- +-47 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) 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 II valuesort SELECT ALL - 70 AS col1, - MAX ( - - 28 ) AS col1 +---- +-28 +-70 query I rowsort SELECT 9 + 43 * - 17 AS col1 @@ -27427,8 +27699,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 1110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "Int64\(30\) \* Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 AS col2, 30 * + 37 AS col2 +---- +1110 +68 query II rowsort SELECT ( 5 ) + + + 61 * - 49 AS col1, 85 @@ -28660,14 +28935,20 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) col0, NULLIF ( - 67, 7 ) + 21 AS col0 +---- +-1 +-46 # 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 "Int64\(1\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 AS col0, 4 AS col0 +---- +1 +4 query I rowsort SELECT ALL + 51 - - + 19 @@ -29176,8 +29457,11 @@ SELECT DISTINCT 37 * + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 45 AS col1, 81 AS col1 +---- +45 +81 query I rowsort SELECT 93 - 20 * - + 7 + - 65 AS col0 @@ -29289,8 +29573,11 @@ SELECT - 11 + + + 55 * - 8 * - ( - - 59 ) col1 # 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 "Int64\(\-86\) AS col2" at position 0 and "Int64\(\-13\) \- max\(Int64\(\-36\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 86 AS col2, - 13 - MAX ( - 36 ) AS col2 +---- +-86 +23 query I rowsort SELECT + 59 - 36 @@ -29305,8 +29592,11 @@ SELECT DISTINCT - + 10 - + 69 + COUNT ( * ) + - + 61 * - - 71 + - 80 + 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1748 # Datafusion - Expected - -152640 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* \(\- Int64\(19\)\) AS col2" at position 0 and "Int64\(32\) \* Int64\(53\) \* Int64\(\-90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 92 * - ( + 19 ) col2, 32 * 53 * - 90 AS col2 +---- +-152640 +-1748 query I rowsort label-5590 SELECT CASE + - 68 WHEN - 84 + - COUNT ( * ) - + CASE + + 97 WHEN 90 THEN - 9 + + ( 98 - + 33 ) * + 86 END * 97 * - COUNT ( * ) THEN + 98 - 54 * 0 END * + 50 col1 @@ -29336,8 +29626,11 @@ SELECT CAST ( 8 AS INTEGER ) / 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - -2030 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-60\)\) AS col2" at position 0 and "Int64\(33\) \* Int64\(\-64\) \+ Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( - 60 ) AS col2, + 33 * - 64 + 82 AS col2 +---- +-2030 +-60 query I rowsort SELECT DISTINCT 37 * 91 AS col1 @@ -29403,8 +29696,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( COUNT ( * ) ) AS col0, - 50 col0 +---- +-1 +-50 query II rowsort label-5609 SELECT DISTINCT - 82 + + + COUNT ( * ), - 76 col0 @@ -29856,8 +30152,11 @@ SELECT 94 * + 27 * 28, ( 46 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 AS col0, 28 AS col0 +---- +2 +28 query I rowsort label-5695 SELECT ALL + COUNT ( * ) + + ( - + 95 ) col1 @@ -30294,8 +30593,11 @@ SELECT - 1 * 16 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col2" at position 0 and "sum\(DISTINCT Int64\(24\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 61 ) AS col2, SUM ( DISTINCT 24 ) AS col2 +---- +-61 +24 query I rowsort label-5778 SELECT + 61 * + 62 + + - COUNT ( * ) AS col0 @@ -30439,8 +30741,11 @@ SELECT 32 - - - 49 + + - 2 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col0" at position 0 and "Int64\(\-88\) \+ Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 27 AS col0, - 88 + 52 AS col0 +---- +-36 +27 query I rowsort SELECT 22 + + 69 AS col1 @@ -30532,8 +30837,11 @@ SELECT ( - 29 ) + - 32 - + 60 * - 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "Int64\(10\) \- count\(Int64\(78\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 15 col0, 10 - COUNT ( + ( + 78 ) ) AS col0 +---- +15 +9 query I rowsort label-5822 SELECT ALL + 70 / + 26 AS col0 @@ -30603,8 +30911,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1092 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* Int64\(84\) AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 * 84 AS col1, + 35 AS col1 +---- +1092 +35 query II rowsort SELECT DISTINCT 44 - + 51, 15 AS col2 @@ -30700,8 +31011,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + ( + 44 ) col0, + COUNT ( * ) * + 59 col0 +---- +-44 +59 query I rowsort SELECT DISTINCT 92 * 44 + - 92 - + ( - 32 ) + - 70 + 58 @@ -30799,8 +31113,11 @@ SELECT ALL 20 * + 50 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2542 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* \(\- \(\- Int64\(\-82\)\)\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 31 * + - ( - - 82 ) AS col1, + 13 AS col1 +---- +-2542 +13 query I rowsort label-5873 SELECT + MAX ( ALL + 96 ) + - 80 + - - 48 AS col2 @@ -31140,8 +31457,11 @@ 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\(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\. +query II valuesort SELECT 66 * - COUNT ( * ) col1, + 54 * + - 91 AS col1 +---- +-4914 +-66 query I rowsort label-5937 SELECT ALL + 91 + + 68 / + CASE COUNT ( * ) WHEN 87 + - COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) WHEN 97 THEN NULL ELSE NULL END @@ -31843,8 +32163,11 @@ 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\(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\. +query IR valuesort 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 +---- +325 +NULL query I rowsort label-6070 SELECT 97 / + 12 AS col0 @@ -32068,8 +32391,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) AS col0" at position 0 and "Int64\(\-26\) \+ Int64\(\-44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 21 ) AS col0, - 26 + - 44 AS col0 +---- +-21 +-70 query I rowsort SELECT + + 82 - - + 68 AS col1 @@ -32207,8 +32533,11 @@ SELECT ALL + 43 * 82 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 1907 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col1" at position 0 and "Int64\(22\) \* Int64\(85\) \- Int64\(\-37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 4 AS col1, + 22 * 85 - - 37 AS col1 +---- +1907 +4 query I rowsort label-6139 SELECT - 59 * - - 59 - + + 53 - 47 + + COUNT ( * ) @@ -32658,8 +32987,11 @@ SELECT + ( - + 42 ) + - 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - -1374 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col1" at position 0 and "Int64\(10\) \+ Int64\(\-18\) \+ Int64\(10\) \+ Int64\(\-22\) \* Int64\(61\) \+ Int64\(\-34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 18 col1, 10 + - 18 + 10 + - 22 * + 61 + + - 34 AS col1 +---- +-1374 +-18 query I rowsort label-6225 SELECT + 78 + COUNT ( * ) / + 49 @@ -32852,8 +33184,11 @@ SELECT - 54 * - 87 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 col0" at position 0 and "count\(Int64\(46\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( 95 ) AS col0, COUNT ( + 46 ) col0 +---- +1 +95 query I rowsort SELECT ALL 1 - + - 43 @@ -33014,8 +33349,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2574 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* \(\- CAST\(Int64\(99\) AS Int32\)\) AS col2" at position 0 and "Int64\(77\) / CAST\(NULL AS Int32\) \* Int64\(39\) \* \(\- count\(DISTINCT \(\- Int64\(\-28\)\)\)\) \* Int64\(\-12\) \+ Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 * - CAST ( + 99 AS INTEGER ) AS col2, + 77 / CAST ( NULL AS INTEGER ) * 39 * - COUNT ( DISTINCT - - 28 ) * - 12 + - 27 AS col2 +---- +-2574 +NULL query I rowsort SELECT ALL - 16 * - 41 AS col2 @@ -33195,8 +33533,11 @@ SELECT DISTINCT 31 * 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \+ avg\(DISTINCT CASE Int64\(\-19\) WHEN \(\- \(\- CAST\(NULL AS Int32\)\)\) THEN CAST\(Int64\(\-39\) AS Float64\) / Int64\(36\) \+ \(\- Int64\(\-34\)\) END\) AS col2" at position 0 and "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT 26 + AVG ( DISTINCT CASE + - 19 WHEN - - CAST ( NULL AS INTEGER ) THEN + CAST ( - 39 AS FLOAT8 ) / 36 + - - 34 END ) col2, 70 AS col2 +---- +70 +NULL query I rowsort SELECT DISTINCT - 3 + + 4 + - 84 AS col0 @@ -33461,8 +33802,11 @@ SELECT DISTINCT 3 * + 68 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* \(\- sum\(\(\- CASE Int64\(\-42\) WHEN Int64\(42\) THEN nullif\(Int64\(\-26\), Int64\(42\) \+ Int64\(\-50\) \+ Int64\(46\) \* Int64\(\-99\)\) WHEN Int64\(\-69\) THEN Int64\(\-87\) END\)\)\) AS col2" at position 0 and "Int64\(98\) \* \(\- CAST\(CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-63\) THEN \(\- nullif\(Int64\(96\), \(\- Int64\(\-20\)\)\)\) \- Int64\(\-48\) END AS Int32\)\) \* Int64\(\-8\) \* \(\- Int64\(32\)\) \* Int64\(92\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +NULL +NULL query I rowsort label-6378 SELECT - 91 / 88 @@ -33487,8 +33831,11 @@ SELECT ALL + COUNT ( - + 26 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(81\) \+ Int64\(\-35\) \* count\(Int64\(13\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col0, + 81 + - 35 * COUNT ( + 13 ) AS col0 +---- +46 +NULL query II rowsort label-6383 SELECT CAST ( NULL AS INTEGER ) AS col1, 20 @@ -33700,8 +34047,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2417 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* Int64\(29\) \+ Int64\(\-19\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 84 * 29 + - 19 AS col1, + 22 AS col1 +---- +22 +2417 query I rowsort label-6422 SELECT ALL - - SUM ( ALL + + 64 ) * COUNT ( * ) * 43 * - 56 + 41 @@ -33891,8 +34241,11 @@ SELECT + - 77 * 87 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 860 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* Int64\(20\) AS col0" at position 0 and "Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + 43 ) * + 20 AS col0, 19 AS col0 +---- +19 +860 query I rowsort SELECT DISTINCT + 28 * - + 28 - + + 37 - - 78 + + 97 @@ -34056,8 +34409,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-101 +-251 query I rowsort label-6489 SELECT ALL + CAST ( - - AVG ( ALL + 1 ) AS INTEGER ) AS col0 @@ -34309,8 +34665,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 1852 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "Int64\(\-31\) \* Int64\(\-58\) \+ Int64\(20\) \+ Int64\(\-46\) / Int64\(7\) / Int64\(\-73\) \+ Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 2 AS col0, - 31 * - 58 + + 20 + - 46 / 7 / - 73 + + 34 AS col0 +---- +1852 +2 query I rowsort SELECT 19 * + 33 col1 @@ -35273,8 +35632,11 @@ SELECT DISTINCT - COALESCE ( - CAST ( + - CASE 45 WHEN + 9 + 43 THEN - 1 + - - 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-41\)\) \+ \(\- Int64\(5\)\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 41 + - + 5 AS col1, 88 col1 +---- +36 +88 query I rowsort SELECT ALL + - 3 * + 99 @@ -35561,8 +35923,11 @@ SELECT ALL - 70, 41 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \+ sum\(DISTINCT nullif\(Int64\(11\), Int64\(73\)\)\) AS col0" at position 0 and "Int64\(\-84\) \+ \(\- Int64\(\-20\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 46 + SUM ( DISTINCT + ( NULLIF ( + + 11, + 73 ) ) ) AS col0, - 84 + - - 20 AS col0 +---- +-64 +57 query I rowsort label-6774 SELECT ALL - + COUNT ( * ) + + + ( + - 63 ) col1 @@ -36013,8 +36378,11 @@ SELECT - NULLIF ( + 39, + 85 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 3150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col1" at position 0 and "Int64\(50\) \* Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 49 AS col1, 50 * + 63 AS col1 +---- +3150 +49 query I rowsort SELECT - 94 * 74 * - - 7 AS col0 @@ -36122,8 +36490,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -4982 # Datafusion - Expected - 142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \* Int64\(94\) AS col2" at position 0 and "Int64\(47\) \+ Int64\(76\) \+ Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 53 * + 94 AS col2, + 47 + + 76 + 19 AS col2 +---- +-4982 +142 query II rowsort label-6882 SELECT ALL - COUNT ( * ) AS col2, - 18 AS col1 @@ -36372,8 +36743,11 @@ SELECT - 76 * + 62 + + 23 / 96 + + 81 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col2" at position 0 and "Int64\(\-93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 45 AS col2, - 93 AS col2 +---- +-93 +45 query I rowsort label-6929 SELECT COUNT ( * ) + - - 14 AS col0 @@ -39250,8 +39624,11 @@ SELECT ALL - 88 * + 87 AS col2, + COUNT ( * ) / + - 14 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-25\)\) AS col0" at position 0 and "Int64\(68\) \- Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - - 25 ) AS col0, 68 - + + 49 AS col0 +---- +19 +25 query I rowsort SELECT - 99 * + 49 @@ -39561,8 +39938,11 @@ SELECT COUNT ( * ) * - 62 * MAX ( DISTINCT + 70 ) * + 16 * + - 32 + - 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \+ Int64\(5\) \+ Int64\(9\) AS col2" at position 0 and "Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 52 ) + 5 + + 9 AS col2, - 2 AS col2 +---- +-2 +-38 query I rowsort label-7543 SELECT 33 / - + 69 @@ -39592,8 +39972,11 @@ SELECT NULLIF ( - 39, + 15 * - 90 ) / 13 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col0" at position 0 and "Int64\(83\) / nullif\(Int64\(13\), Int64\(58\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 62 AS col0, ( 83 ) / + NULLIF ( + 13, 58 ) AS col0 +---- +-62 +6 query II rowsort label-7549 SELECT ALL - COUNT ( * ) AS col1, 30 AS col0 @@ -41350,8 +41733,11 @@ SELECT - 85 AS col0, - 59 * + - NULLIF ( + ( - 98 ), - COALESCE ( + CAST ( NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col1" at position 0 and "Int64\(87\) \+ Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 87 AS col1, 87 + + 29 col1 +---- +-87 +116 query I rowsort label-7886 SELECT 67 * + 30 * + CASE - 81 WHEN - ( 61 ) * - 79 THEN NULL WHEN + COUNT ( * ) * - - COUNT ( DISTINCT + 79 ) + 63 + 50 * - 95 * - - ( - 10 ) THEN - 34 WHEN 59 / + - 84 + - - COUNT ( * ) - - 43 THEN + 98 ELSE NULL END * + SUM ( - 93 ) @@ -41399,8 +41785,11 @@ SELECT DISTINCT + 19 + + - 46 AS col0, NULLIF ( COUNT ( * ), - + 15 ) * + + COAL # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col1" at position 0 and "Int64\(\-54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 73 AS col1, - 54 AS col1 +---- +-54 +-73 query I rowsort label-7895 SELECT ALL + COUNT ( * ) + - 3 - - 32 @@ -41604,8 +41993,12 @@ 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\(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\. +query III valuesort 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 +---- +-1 +-3481 +0 query I rowsort label-7935 SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) * - ( 11 ) AS col2 @@ -42153,8 +42546,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 72 AS col0, 38 col1, + - COUNT ( * ) col0 +---- +-1 +38 +72 query II rowsort SELECT ALL - 28, - ( - 14 ) - - + 67 * + 37 col1 @@ -42246,8 +42643,11 @@ SELECT ALL - 87 + + 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - -4470 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col0" at position 0 and "Int64\(\-45\) \* Int64\(99\) \+ \(\- min\(Int64\(15\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 AS col0, - 45 * + 99 + - + MIN ( ALL + 15 ) AS col0 +---- +-4470 +-70 query I rowsort SELECT ALL + 13 + + ( + NULLIF ( + - 45, - 87 ) ) AS col0 @@ -42439,8 +42839,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 23 * 11 AS col1, - 29 / + 61 + - + COUNT ( * ) AS col1 +---- +-1 +-253 query I rowsort SELECT DISTINCT + 82 - - - 50 + CASE - NULLIF ( + 51, - - 20 + + 85 ) WHEN + + 89 THEN 5 END * + 62 * + 20 AS col2 @@ -42922,8 +43325,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 81 AS col0, COUNT ( * ) + - 89 AS col0 +---- +-88 +81 query I rowsort label-8185 SELECT MIN ( ALL 72 ) AS col1 @@ -43326,8 +43732,11 @@ SELECT 56 + - 56 + + + ( - - 44 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 AS col1, + 52 AS col1 +---- +52 +82 query I rowsort SELECT ALL - 30 - + 92 AS col1 @@ -43944,8 +44353,11 @@ 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\(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\. +query II valuesort SELECT COALESCE ( - 49, - ( + + COUNT ( * ) ) + + 4, 68 * - 47 + + 16 + - + 92 * - 45 ) - - 25 * - - 64 col0, + 13 AS col0 +---- +13 +1551 query I rowsort label-8379 SELECT ALL 65 + MAX ( 60 ) * ( - 96 ) - COUNT ( * ) + 23 AS col0 @@ -44184,8 +44596,11 @@ SELECT ALL COUNT ( * ) - - - ( + 28 ) # 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 col2" at position 0 and "Int64\(\-3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 AS col2, - 3 AS col2 +---- +-3 +77 query I rowsort SELECT ALL - 79 * 7 AS col2 @@ -45026,8 +45441,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-1 +NULL query I rowsort label-8587 SELECT - COUNT ( + 84 ) * - + ( + 57 ) * - 38 * + 94 * - 31 * - 10 + - MIN ( + + 41 ) + + 25 / 82 * + - 69 * - - 89 + + + 70 + ( 22 ) @@ -45172,8 +45590,11 @@ 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 "Int64\(\-3\) AS col1" at position 0 and "\(\- Int64\(\-74\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 AS col1, - ( - 74 ) AS col1 +---- +-3 +74 query I rowsort label-8615 SELECT ALL + 32 + + - 46 - + 75 + COUNT ( * ) * + - ( + 42 ) @@ -45199,8 +45620,11 @@ SELECT DISTINCT 63 AS col0, + 94 * 4 * + - 89 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1653 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ CAST\(NULL AS Int32\) \+ \(\- Int64\(\-97\)\) AS col0" at position 0 and "Int64\(\-29\) \* Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 40 + + CAST ( NULL AS INTEGER ) + - - 97 AS col0, - 29 * + 57 col0 +---- +-1653 +NULL query I rowsort label-8620 SELECT DISTINCT COUNT ( - + ( - + 63 ) ) + - 75 @@ -45248,8 +45672,11 @@ SELECT DISTINCT 39 AS col2, + 47 + + MIN ( DISTINCT + 88 ) + - - 87 * - 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 6672 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 0 and "Int64\(7\) \* Int64\(87\) \+ Int64\(\-79\) \+ Int64\(74\) \* Int64\(83\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 91 col1, + 7 * + 87 + - 79 + 74 * + 83 * + COUNT ( * ) AS col1 +---- +6672 +91 query I rowsort SELECT + 79 * 63 AS col2 @@ -45687,8 +46114,11 @@ SELECT DISTINCT 76 * + 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 54 AS col2, - 25 col2 +---- +-25 +54 query II rowsort SELECT DISTINCT - 61 AS col2, 62 @@ -45974,8 +46404,11 @@ 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 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 II valuesort SELECT ALL COUNT ( * ) + 1 AS col2, 26 * - - 60 AS col2 +---- +1560 +2 query I rowsort label-8771 SELECT COUNT ( DISTINCT - 45 ) @@ -46326,8 +46759,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-70\)\)\) AS col2" at position 0 and "coalesce\(Int64\(95\), Int64\(62\) \* Int64\(\-67\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MIN ( - 70 ) AS col2, COALESCE ( 95, 62 * - 67 ) AS col2 +---- +70 +95 query I rowsort SELECT ALL - 80 + + + ( - 48 ) * 29 AS col2 @@ -46393,8 +46829,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(93\)\)\) \+ Int64\(11\) / Int64\(\-52\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( + 93 ) + + 11 / + - 52 col2, + 2 AS col2 +---- +-1 +2 query II rowsort SELECT + 38 AS col0, 89 + 29 @@ -46702,8 +47141,11 @@ SELECT DISTINCT - 7 * + - 87 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col2" at position 0 and "\(\- sum\(DISTINCT Int64\(39\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 AS col2, - SUM ( DISTINCT 39 ) col2 +---- +-39 +59 query I rowsort label-8910 SELECT ALL 45 + ( ( 52 ) ) + - COUNT ( * ) AS col0 @@ -46776,8 +47218,11 @@ SELECT + - 45 + + 54 * + 96 AS col2, 80 + 10 + + + CAST ( + 18 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 24 AS col1, 13 AS col1 +---- +13 +24 query I rowsort label-8924 SELECT ALL + - MIN ( - 48 ) @@ -47031,8 +47476,11 @@ SELECT ALL + 62 * + - COALESCE ( + 74, - NULLIF ( - CASE + - MAX ( + 20 ) WHEN 8 # 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 "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 AS col2, 1 AS col2 +---- +-55 +1 query I rowsort SELECT ALL + 53 - - + 50 @@ -47126,8 +47574,11 @@ SELECT + 79 * - - 95 - - 97 * 55 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 3640 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-56\) \* Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + CAST ( NULL AS INTEGER ) AS col0, - 56 * - 65 AS col0 +---- +3640 +NULL query I rowsort label-8991 SELECT ALL + ( - + COUNT ( * ) ) + - COUNT ( * ) @@ -47137,8 +47588,11 @@ SELECT ALL + ( - + COUNT ( * ) ) + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 78 AS col1 +---- +1 +78 query I rowsort label-8993 SELECT DISTINCT MAX ( DISTINCT + 23 ) + 80 col2 @@ -47484,8 +47938,11 @@ NULL # 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 "Int64\(\-42\) / Int64\(87\) AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 42 / 87 col2, + 91 AS col2 +---- +0 +91 query I rowsort label-9060 SELECT + - SUM ( DISTINCT 67 ) + + + 52 @@ -48220,8 +48677,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1080 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \* Int64\(45\) AS col2" at position 0 and "CASE Int64\(\-62\) WHEN Int64\(\-71\) \* \(\- Int64\(39\)\) \+ \(\- sum\(Int64\(64\)\)\) \+ \(\- Int64\(\-18\)\) THEN Int64\(10\) END / Int64\(\-83\) \+ Int64\(1\) \- Int64\(\-67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 24 * + 45 AS col2, CASE - 62 WHEN - 71 * - + 39 + - SUM ( 64 ) + - - 18 THEN + 10 END / - 83 + 1 - - 67 AS col2 +---- +-1080 +NULL query II rowsort label-9200 SELECT DISTINCT - COUNT ( ALL 18 ) AS col0, + COUNT ( * ) * + 48 + - 61 @@ -48477,8 +48937,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 32 AS col0, - 38 + - COUNT ( * ) * + 53 AS col0 +---- +-32 +-91 query II rowsort SELECT ALL 60 AS col1, + ( - - 28 ) col0 @@ -48755,8 +49218,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 AS col1, 52 AS col1 +---- +37 +52 query I rowsort SELECT ALL - - ( + 47 ) @@ -48852,8 +49318,11 @@ SELECT - 49, 22 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "nullif\(nullif\(Int64\(93\), \(\- Int64\(\-64\)\) \+ Int64\(17\) \- \(\- CAST\(Int64\(\-98\) AS Int32\)\) \+ Int64\(\-59\)\), Int64\(\-17\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 AS col0, NULLIF ( NULLIF ( 93, - - 64 + + 17 - - CAST ( - 98 AS INTEGER ) + + - 59 ), - 17 ) AS col0 +---- +76 +93 query I rowsort label-9316 SELECT 6 * + - CAST ( NULL AS INTEGER ) @@ -49449,8 +49918,11 @@ SELECT ALL 41 + + - 94 * 63 + - + 33 * - - 30 # 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 "Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - - 4 ) col1, 1 AS col1 +---- +1 +4 query I rowsort label-9429 SELECT ALL - COUNT ( DISTINCT CAST ( - 43 AS FLOAT8 ) ) AS col2 @@ -49750,8 +50222,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col2" at position 0 and "Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 36 AS col2, - 16 AS col2 +---- +-16 +-36 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -49836,8 +50311,11 @@ SELECT - 46 * + + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 190 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(10\) \* Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, + 10 * + 19 col1 +---- +190 +NULL query I rowsort label-9502 SELECT - + 14 / - 69 AS col2 @@ -49910,8 +50388,11 @@ SELECT ALL - 44 * + + MIN ( DISTINCT + NULLIF ( + 73, + - 59 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 791 # Datafusion - Expected - 403857 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* Int64\(12\) \- Int64\(23\) \- Int64\(\-94\) AS col1" at position 0 and "Int64\(91\) \+ Int64\(76\) \* \(\- Int64\(\-64\)\) \* Int64\(83\) \+ Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 60 * ( + 12 ) - + 23 - + ( + ( - 94 ) ) AS col1, 91 + + 76 * - - 64 * 83 + 54 AS col1 +---- +403857 +791 query I rowsort label-9515 SELECT DISTINCT - 26 * + COUNT ( * ) * 15 AS col2 @@ -50085,8 +50566,11 @@ SELECT ALL + 50 * + 93 AS col0 # 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 col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 AS col0, 65 AS col0 +---- +17 +65 query I rowsort label-9548 SELECT COUNT ( * ) / + 54 * - - 26 AS col0 @@ -50322,8 +50806,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ Int64\(2\) AS col0" at position 0 and "coalesce\(\(\- \(\- sum\(\(\- Int64\(99\)\)\)\)\), \(\- Int64\(\-57\)\) / \(\- Int64\(\-18\)\), Int64\(\-56\)\) / min\(Int64\(97\)\) \- Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 92 + + + 2 AS col0, COALESCE ( - - SUM ( - + 99 ), - - 57 / - - 18, + - 56 ) / + MIN ( + 97 ) - 30 AS col0 +---- +-31 +94 query I rowsort label-9594 SELECT - - CAST ( + - COALESCE ( + 34, - - MAX ( 60 ) ) AS INTEGER ) @@ -50573,8 +51060,11 @@ SELECT ALL - 26 + - MIN ( ALL 68 ) * - COALESCE ( + + 89, + + 75 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col0" at position 0 and "\(\- \(\- coalesce\(Int64\(80\), Int64\(71\), Int64\(84\)\)\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 48 col0, - ( + - COALESCE ( + 80, 71, 84 ) ) - + COUNT ( * ) AS col0 +---- +-48 +79 query I rowsort SELECT - 39 * 38 AS col2 @@ -51003,8 +51493,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) + - 86 + 78 + 77 + + COUNT ( * ) * + 61 / + COALESCE ( 39, - COUNT ( * ), + - 64 * - - MAX ( ALL - - ( + - 48 ) ) ) AS col1, + 0 AS col1 +---- +0 +69 query I rowsort SELECT - + 19 * - - 5 * + CASE + 47 WHEN + + 0 * + 39 + 75 + - + 19 + 16 THEN 98 ELSE NULL END - - + 12 AS col1 @@ -51167,8 +51660,11 @@ SELECT + 13 / - - 74 - - 9 + + + 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(23\)\) \- Int64\(\-74\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 23 - + - 74 AS col0, + COUNT ( * ) AS col0 +---- +1 +51 query I rowsort SELECT - 1 + - 87 AS col2 @@ -51392,8 +51888,12 @@ SELECT DISTINCT - 72, + 29 AS col2 # Datafusion - Expected - -43 # Datafusion - Expected - 62 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col1" at position 1 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 43 col0, 62 AS col1, + COUNT ( * ) AS col1 +---- +-43 +1 +62 query II rowsort SELECT DISTINCT - 55 AS col2, + 62 + - 13 @@ -51604,8 +52104,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -137 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) \+ Int64\(\-71\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 66 + + - 71 AS col0, + 18 AS col0 +---- +-137 +18 query I rowsort label-9841 SELECT ALL + MAX ( - 57 ) @@ -51692,8 +52195,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) + ( - 13 ) AS col0, ( - 2 ) AS col0 +---- +-12 +-2 query I rowsort SELECT + 33 + - 17 @@ -51783,8 +52289,11 @@ SELECT + COUNT ( * ) / - - 6 * + ( - + 17 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 1152 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col0" at position 0 and "Int64\(\-48\) \* Int64\(\-24\) \+ Int64\(23\) / Int64\(\-62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 83 AS col0, - 48 * - 24 + + + 23 / + ( + + ( - 62 ) ) AS col0 +---- +1152 +83 query I rowsort label-9875 SELECT DISTINCT + CAST ( - - 76 AS INTEGER ) AS col0 @@ -52277,8 +52786,11 @@ SELECT ALL COUNT ( * ) * 50 + + 82 # 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 col2" at position 0 and "Int64\(\-54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 AS col2, - 54 AS col2 +---- +-54 +47 query I rowsort label-9970 SELECT + + CASE - CAST ( - + COUNT ( * ) AS INTEGER ) WHEN - 56 THEN MAX ( ALL + + 39 ) + + 9 WHEN - 61 * + 94 / + NULLIF ( + 78, 60 + + AVG ( - - 62 ) ) - + - 89 THEN NULL ELSE NULL END / 92 + + + COUNT ( * ) * - 13 + + + 8 diff --git a/data/sqlite/random/expr/slt_good_8.slt b/data/sqlite/random/expr/slt_good_8.slt index 4e30958..267b7ee 100644 --- a/data/sqlite/random/expr/slt_good_8.slt +++ b/data/sqlite/random/expr/slt_good_8.slt @@ -294,8 +294,11 @@ SELECT DISTINCT 35 + + 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \+ \(\- \(\- Int64\(53\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(44\) / Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( 10 ) + - ( - + 53 ) + + COUNT ( * ) AS col2, + 44 / 46 AS col2 +---- +0 +64 query I rowsort SELECT DISTINCT ( - + 10 ) + + ( - - 31 ) @@ -321,8 +324,11 @@ SELECT 75 + + 82 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -624 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(\-8\) AS col0" at position 0 and "Int64\(\-74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 * + - 8 AS col0, - 74 AS col0 +---- +-624 +-74 query I rowsort label-54 SELECT ALL COALESCE ( 4, - 96 * + MAX ( + ( 39 ) ) - 48 + ( - 20 ) ) * 34 @@ -1202,8 +1208,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(86\)\)\)\) \+ sum\(Int64\(60\)\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - + COUNT ( 86 ) ) + + SUM ( + 60 ) AS col0, + 25 AS col0 +---- +25 +61 query I rowsort SELECT DISTINCT + - 71 - + 90 AS col0 @@ -1249,8 +1258,11 @@ SELECT ALL - 36 + + 19 * - 95 col0 # 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 "coalesce\(Int64\(3\), \(\- Int64\(\-96\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 AS col2, + COALESCE ( 3, - - 96 ) AS col2 +---- +-31 +3 query I rowsort label-231 SELECT - COUNT ( * ) + - 8 * - 11 AS col0 @@ -1757,8 +1769,11 @@ SELECT + 85 - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col1" at position 0 and "Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 AS col1, + 18 AS col1 +---- +18 +57 query I rowsort SELECT ALL 32 * - 13 * + 43 @@ -2016,8 +2031,11 @@ SELECT ALL 16 - + 73 + - - 81 - - 43 * - 82 * - ( + NULLIF ( - 87, + - 76 + - 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "count\(Int64\(90\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 26 AS col0, COUNT ( ALL 90 ) col0 +---- +1 +26 query I rowsort SELECT 22 * 37 AS col0 @@ -2339,8 +2357,11 @@ SELECT - 88 * MAX ( - 33 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -176400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE WHEN NOT NULL IS NULL THEN Int64\(11\) ELSE NULL END AS col2" at position 0 and "Int64\(\-90\) \* \(\- Int64\(\-49\)\) \* Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CASE WHEN NOT NULL IS NULL THEN 11 ELSE NULL END AS col2, - 90 * - - 49 * + 40 AS col2 +---- +-176400 +NULL query II rowsort SELECT ALL + 67 col1, + 4 AS col0 @@ -2573,8 +2594,11 @@ SELECT - 9 / - COUNT ( DISTINCT 8 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 AS col2, 65 col2 +---- +47 +65 query I rowsort label-480 SELECT + 80 * - COUNT ( * ) + + - 84 AS col1 @@ -2880,8 +2904,12 @@ SELECT - 46 + 2 AS col2 # Datafusion - Expected - 64 # Datafusion - Expected - 1976 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col2" at position 0 and "Int64\(\-69\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 64 AS col2, 26 * MIN ( ALL + 76 ) AS col0, + - 69 AS col2 +---- +-69 +1976 +64 query II rowsort label-537 SELECT - 70, - ( - 85 ) + + - CASE + 71 WHEN 8 + - + CASE + + ( - COUNT ( * ) ) WHEN - 72 * COUNT ( * ) / 75 THEN NULL WHEN + 86 THEN - + 94 ELSE NULL END / COUNT ( ALL ( - + 87 ) ) THEN + + 3 ELSE NULL END * 68 * - 36 col0 @@ -3017,8 +3045,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 75 AS col1, COUNT ( * ) AS col1 +---- +-75 +1 query I rowsort SELECT - NULLIF ( - 78, - + 74 ) @@ -3245,8 +3276,11 @@ SELECT 2 AS col0, - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 5244 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) AS col1" at position 0 and "Int64\(92\) \* coalesce\(Int64\(\-57\), Int64\(\-24\) \* Int64\(55\) \- Int64\(73\) \+ Int64\(\-76\)\) \* \(\- count\(DISTINCT Int64\(3\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 13 col1, 92 * + + COALESCE ( - 57, - 24 * + 55 - 73 + + - 76 ) * - COUNT ( DISTINCT + 3 ) AS col1 +---- +-13 +5244 query I rowsort SELECT ALL 81 * 31 AS col2 @@ -3640,8 +3674,11 @@ SELECT + MIN ( - + 41 ) - 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- \(\- CAST\(Int64\(39\) AS Int32\)\)\) WHEN \(\- avg\(Int64\(33\)\)\) \* Int64\(70\) THEN Int64\(6\) WHEN Int64\(\-88\) \+ Int64\(4\) THEN Int64\(\-69\) END AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CASE - ( - + CAST ( + + 39 AS INTEGER ) ) WHEN - AVG ( ( 33 ) ) * 70 THEN + 6 WHEN - 88 + + 4 THEN - 69 END AS col0, + COUNT ( * ) AS col0 +---- +1 +NULL query II rowsort SELECT DISTINCT + 59 + + 34 AS col2, 12 AS col0 @@ -3793,8 +3830,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( + 0, 73 ) AS col1, - COUNT ( * ) * + 37 AS col1 +---- +-37 +0 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -4265,8 +4305,12 @@ SELECT + 34 AS col0, - 94 * NULLIF ( + - 42, + 49 ) AS col1 # Datafusion - Expected - 34 # Datafusion - Expected - 18 # Datafusion - Expected - -1574 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "max\(Int64\(18\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 34 col0, MAX ( + 18 ) AS col0, 22 * - + 70 - + + 34 +---- +-1574 +18 +34 query I rowsort label-796 SELECT + ( - + COUNT ( * ) ) - - - 83 * - - 58 + 79 @@ -4338,8 +4382,11 @@ SELECT - 5 * 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col2, + 68 AS col2 +---- +68 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -4394,8 +4441,11 @@ SELECT ( + + 43 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(67\) WHEN Int64\(28\) THEN Int64\(34\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) \- CAST\(NULL AS Int32\) / Int64\(63\) ELSE NULL END AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CASE 67 WHEN + + 28 THEN + 34 * - - CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) / 63 ELSE NULL END col2, 65 AS col2 +---- +65 +NULL query I rowsort SELECT + 50 * - - ( - 57 ) AS col0 @@ -4806,8 +4856,11 @@ SELECT DISTINCT 11 + - - 18 + 33 * + 77 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(38\)\)\) AS col0" at position 0 and "Int64\(\-66\) \+ Int64\(33\) \+ Int64\(2\) \+ Int64\(30\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + - ( + 38 ) ) col0, - 66 + 33 + + 2 + + 30 + - + CAST ( NULL AS INTEGER ) AS col0 +---- +38 +NULL query I rowsort label-899 SELECT - COUNT ( * ) * + 54 / + - ( + + NULLIF ( - + 71, + + COUNT ( * ) * - 86 / - 99 + + 25 + COUNT ( * ) ) ) + + + 78 AS col0 @@ -5233,8 +5286,11 @@ SELECT DISTINCT - 92 + + 58 + + 4 + - + 51 * - 63 AS col2 # 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\(77\) AS col0" at position 0 and "Int64\(62\) \+ Int64\(\-81\) / Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 77 AS col0, 62 + + ( - 81 ) / + 43 AS col0 +---- +61 +77 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -5323,8 +5379,11 @@ SELECT 79 / + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 9472 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(91\)\)\) AS col1" at position 0 and "Int64\(74\) \* Int64\(8\) \* nullif\(Int64\(16\), Int64\(\-76\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - + 91 ) AS col1, 74 * 8 * + + NULLIF ( 16, - 76 ) AS col1 +---- +91 +9472 query I rowsort label-996 SELECT DISTINCT + + 69 / - - MIN ( ALL 49 ) @@ -5334,8 +5393,11 @@ SELECT DISTINCT + + 69 / - - MIN ( ALL 49 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -475 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \* Int64\(25\) AS col0" at position 0 and "Int64\(\-17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 19 * 25 AS col0, - 17 AS col0 +---- +-17 +-475 query I rowsort SELECT - ( - 74 ) * 27 AS col0 @@ -5362,8 +5424,12 @@ SELECT ALL 75 + - CAST ( 66 AS INTEGER ) # Datafusion - Expected - 81 # Datafusion - Expected - 55 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + + 81 AS col2, + 55 AS col2, - 67 AS col0 +---- +-67 +55 +81 query I rowsort label-1003 SELECT MAX ( - 96 ) * 33 * + 18 + + 58 - 13 @@ -5736,8 +5802,11 @@ SELECT DISTINCT + 71 * + COALESCE ( - 57, - + MAX ( DISTINCT + CAST ( 22 AS INTE # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -66602 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CAST\(NULL AS Float64\)\) AS Int32\) AS col0" at position 0 and "\(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(22\)\) \* Int64\(\-60\) \- Int64\(69\) \+ \(\- \(\- coalesce\(\(\- \(\- Int64\(\-3\)\)\), Int64\(5\) \* Int64\(\-55\)\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \* count\(Int64\(68\)\) \* \(\- Int64\(27\)\) \* Int64\(32\) \* Int64\(77\) \- sum\(DISTINCT Int64\(74\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-66602 +NULL query I rowsort SELECT 69 * - + 20 AS col0 @@ -6463,8 +6532,11 @@ SELECT DISTINCT + 80 * - 88 # 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 "Int64\(\-26\) \+ \(\- Int64\(28\)\) AS col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 26 + - ( 28 ) AS col2, 9 AS col2 +---- +-54 +9 query I rowsort label-1213 SELECT MIN ( - - 60 ) * + ( - - 63 ) - - 6 + COUNT ( * ) + 9 AS col0 @@ -6835,8 +6907,11 @@ SELECT - - 66 * 39 + + ( - CASE + - 36 WHEN + ( 74 ) THEN NULL ELSE COUNT ( * ) # 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 "\(\- Int64\(1\)\) AS col0" at position 0 and "Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 1 AS col0, 99 AS col0 +---- +-1 +99 query I rowsort label-1285 SELECT - + CAST ( NULL AS INTEGER ) * + + 58 @@ -6866,8 +6941,11 @@ SELECT ALL + 57 + ( + CASE - - 4 WHEN 87 * 42 THEN NULL WHEN - - 78 * 93 * + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(15\), Int64\(51\) \+ count\(Int64\(87\)\) \* Int64\(\-84\)\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COALESCE ( + 15, 51 + + COUNT ( + 87 ) * - 84 ) AS col0, 69 AS col0 +---- +15 +69 query I rowsort SELECT DISTINCT ( + + 35 ) AS col0 @@ -6944,8 +7022,11 @@ SELECT + - 41 + + + 43 + 10 / - MIN ( + 12 ) + 79 - + - 73 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2730 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(30\)\) \* Int64\(\-91\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 30 * + - 91 AS col0, 48 AS col0 +---- +2730 +48 query I rowsort SELECT + + 25 * - - 76 @@ -7225,8 +7306,11 @@ SELECT DISTINCT + - MIN ( ALL + 71 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(57\) / \(\- CAST\(NULL AS Int32\)\) \* Int64\(93\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 82 AS col1, COUNT ( * ) * + 57 / - CAST ( NULL AS INTEGER ) * 93 + + CAST ( + - COUNT ( * ) AS INTEGER ) col1 +---- +-82 +NULL query I rowsort label-1360 SELECT + - COUNT ( * ) * 99 AS col0 @@ -7257,8 +7341,11 @@ SELECT - - 71 * NULLIF ( + 85, + 36 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -6945792 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(96\)\) \* Int64\(68\) \* \(\- \(\- Int64\(38\)\)\) \* Int64\(28\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 96 * 68 * - ( - ( + 38 ) ) * 28 AS col1, 26 col1 +---- +-6945792 +26 query I rowsort label-1366 SELECT - COUNT ( + COALESCE ( + 38, - 44 ) ) + + - COUNT ( * ) - COUNT ( * ) AS col1 @@ -8065,8 +8152,11 @@ SELECT DISTINCT 55 / CASE - - 32 WHEN + 71 THEN + 7 WHEN 0 * 46 THEN 28 ELSE 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\)" at position 0 and "Int64\(77\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 77, 77 +---- +77 +77 query I rowsort SELECT ( - - 78 ) AS col0 @@ -8459,8 +8549,11 @@ SELECT ALL + 82 * + ( - 36 ) * 81 * + 40 + + 18 * - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - -4201092 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "Int64\(\-15\) \- Int64\(\-69\) \+ Int64\(27\) \- Int64\(53\) \+ Int64\(46\) / Int64\(39\) \* \(\- Int64\(\-22\) \* Int64\(\-77\)\) \* Int64\(31\) \* Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 7 AS col2, - 15 - - 69 + 27 - 53 + 46 / 39 * - ( - 22 * - 77 ) * 31 * 80 AS col2 +---- +-4201092 +7 query I rowsort SELECT ALL 85 - + - 72 AS col2 @@ -8871,8 +8964,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT \(\- Int64\(8\)\)\)\) AS col2" at position 0 and "sum\(Int64\(99\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( DISTINCT - + 8 ) AS col2, SUM ( ALL 99 ) col2 +---- +8 +99 query I rowsort SELECT - 32 * 52 * 81 @@ -9389,8 +9485,11 @@ SELECT ALL + CAST ( 14 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \* Int64\(\-5\) \+ Int64\(77\) AS col0" at position 0 and "Int64\(66\) \* \(\- \(\- sum\(CAST\(NULL AS Int32\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 35 * - 5 + + 77 AS col0, 66 * - - SUM ( + CAST ( NULL AS INTEGER ) ) AS col0 +---- +-98 +NULL query II rowsort label-1778 SELECT ALL - 52 * - 97 + + + 37 AS col0, - CAST ( - + 60 AS INTEGER ) + 97 + 78 + - - 12 AS col1 @@ -9491,8 +9590,12 @@ SELECT ALL 81 * + + 81 * 15 # Datafusion - Expected - 72 # Datafusion - Expected - -2 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col1" at position 0 and "Int64\(60\) / Int64\(\-29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 72 AS col1, 60 / + - 29 AS col1, + ( COUNT ( * ) ) + 96 AS col2 +---- +-2 +72 +97 query I rowsort label-1797 SELECT ALL + 72 / 53 / + 44 * - - 23 * 61 * 74 + + 99 @@ -9568,8 +9671,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col1" at position 0 and "Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 85 AS col1, 23 AS col1 +---- +23 +85 query III rowsort label-1812 SELECT ( + COALESCE ( - + COALESCE ( - + 50, - - 82 ), + 48 ) ), NULLIF ( + 81, + 60 ) AS col0, - 48 * 90 / 8 col1 @@ -9771,8 +9877,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT ( 95 ) + COUNT ( * ) / 66 + + ( + + 97 ) + - 13 col0, 63 AS col0 +---- +179 +63 query II rowsort SELECT DISTINCT - 34 - - + 75 AS col2, 59 AS col0 @@ -9870,8 +9979,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ CAST\(Int64\(\-11\) AS Int32\) \+ Int64\(48\) / Int64\(98\) \+ min\(\(\- Int64\(94\)\)\) AS col0" at position 0 and "CASE \(\- Int64\(\-10\)\) WHEN Int64\(\-94\) \+ Int64\(35\) THEN NULL WHEN Int64\(97\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(NULL AS Float64\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +-53 +NULL query I rowsort label-1869 SELECT ALL - - 20 * + 33 + + COUNT ( * ) / - 67 @@ -10293,8 +10405,12 @@ SELECT 58 / - + 76 * + - ( NULLIF ( + 46, + 19 ) ) + - 36 * - + 88 # Datafusion - Expected - 18 # Datafusion - Expected - 126 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "\(\- sum\(Int64\(\-73\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 18 AS col0, 73 + - - 53, - + SUM ( - 73 ) AS col0 +---- +126 +18 +73 query I rowsort label-1951 SELECT ALL + 13 + 58 - + + 1 + - 65 + - 94 / - 38 @@ -10393,8 +10509,11 @@ 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\(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\. +query II valuesort SELECT 44 col2, 31 - + COALESCE ( 15, - 26 - COUNT ( * ) + + - COUNT ( * ) * - + 52 - + ( - ( - + 40 ) ) ) + 46 - + ( + - 67 ) + - MAX ( - 14 ) * + 42 AS col2 +---- +44 +717 query I rowsort SELECT 78 * - - 14 @@ -10763,8 +10882,11 @@ SELECT ALL - COALESCE ( + + MAX ( - - 75 ), + - 86, ( + 19 ), + - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 4 col0, ( 30 ) AS col0 +---- +-4 +30 query I rowsort label-2040 SELECT ALL + 99 / - CAST ( NULL AS INTEGER ) AS col0 @@ -11118,8 +11240,11 @@ SELECT + - NULLIF ( + + 27, + SUM ( 20 ) ) * - 83 + + 7 - + 77 + - 94 / - 26 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 85 ) AS col1, 5 AS col1 +---- +5 +85 query I rowsort SELECT 99 * + 21 + - 91 @@ -11230,8 +11355,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3138 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* Int64\(\-73\) \- Int64\(\-22\) / coalesce\(Int64\(15\), \(\- Int64\(\-48\)\), Int64\(10\) \* \(\- Int64\(20\)\) \* Int64\(91\)\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 43 * - 73 - - 22 / COALESCE ( ( + 15 ), - - 48, + 10 * - + 20 * 91 ) AS col1, + 97 col1 +---- +-3138 +97 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -11673,14 +11801,20 @@ SELECT 23 * - 9 * - 95 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 3323 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "Int64\(76\) \* \(\- Int64\(\-43\)\) \+ Int64\(49\) \+ Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 AS col1, 76 * - - 43 + 49 + 6 AS col1 +---- +3323 +88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 120 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \+ Int64\(37\) AS col0" at position 0 and "Int64\(48\) \- \(\- count\(Int64\(30\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + + 83 ) + + 37 AS col0, 48 - - + COUNT ( 30 ) AS col0 +---- +120 +49 query I rowsort SELECT ALL 48 + - - 12 AS col0 @@ -11705,8 +11839,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) + 97 + - + 65 AS col0, 58 * + 56 AS col0 +---- +3248 +33 query I rowsort SELECT 48 * - 30 AS col2 @@ -11770,8 +11907,11 @@ SELECT ALL + - 20 - - ( + 12 ) * + 76 + + + 12 * + 62 / COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 col0, 91 AS col0 +---- +87 +91 query I rowsort label-2228 SELECT 19 - - NULLIF ( + 53, + 21 * - CASE + 68 WHEN - 52 THEN + 59 WHEN - 84 THEN - NULLIF ( 94, - + 64 + 66 ) + - - 8 END + 9 / 21 ) + SUM ( DISTINCT - 5 ) / 8 AS col0 @@ -12041,8 +12181,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5578 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \* \(\- Int64\(\-66\)\) \+ Int64\(98\) AS col0" at position 0 and "Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 86 * - - 66 + 98 AS col0, + 71 AS col0 +---- +-5578 +71 query II rowsort label-2279 SELECT DISTINCT + 3 * - 22 + - 55 + 94 + NULLIF ( + COUNT ( * ), SUM ( ALL - 40 ) ) / 91 * 74 AS col1, - 47 AS col0 @@ -12110,8 +12253,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - CASE - 58 WHEN 98 THEN NULL ELSE COUNT ( * ) END * - 37 col0, + COALESCE ( 90, - ( + - 66 ) ) AS col0 +---- +37 +90 query II rowsort label-2292 SELECT ALL + ( + CAST ( 24 AS INTEGER ) ), ( 30 ) * - + 46 AS col0 @@ -12254,8 +12400,11 @@ 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\(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\. +query II valuesort 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 +---- +-6 +NULL query I rowsort label-2320 SELECT 47 * - NULLIF ( + COUNT ( * ), + 1 ) + + 98 AS col0 @@ -12347,8 +12496,11 @@ SELECT - 81 + - 44 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 35 AS col1, + 32 AS col1 +---- +-35 +32 query I rowsort label-2337 SELECT DISTINCT + COUNT ( * ) + - - 40 @@ -12594,8 +12746,11 @@ SELECT 38 * - 68 * + - 30, 48 + - 20 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4956 # Datafusion - Expected - -2439 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-59\)\)\) \* Int64\(\-84\) AS col0" at position 0 and "Int64\(71\) \* Int64\(\-67\) \- \(\- Int64\(98\)\) \- max\(DISTINCT \(\- Int64\(\-29\)\)\) \* Int64\(\-75\) \+ Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - - 59 ) * - 84 AS col0, + 71 * + - 67 - - + 98 - MAX ( DISTINCT - - 29 ) * - 75 + + 45 AS col0 +---- +-2439 +4956 query II rowsort SELECT ALL 2, - 31 col2 @@ -12689,8 +12844,11 @@ SELECT DISTINCT 25 * - - 93 + 88 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5053 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* Int64\(\-82\) \+ Int64\(31\) AS col1" at position 0 and "Int64\(\-71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 62 * - 82 + 31 AS col1, - 71 col1 +---- +-5053 +-71 query I rowsort label-2403 SELECT DISTINCT + - 71 * + - COUNT ( * ) / - 88 + - - 95 + - 70 AS col2 @@ -12826,8 +12984,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - - ( 14 ) ) + + MIN ( ALL + - 23 ) AS col1, - 40 - - COUNT ( * ) AS col1 +---- +-39 +-9 query I rowsort label-2429 SELECT DISTINCT COUNT ( * ) + MIN ( + 18 ) col2 @@ -13034,8 +13195,11 @@ 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\(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\. +query II valuesort SELECT - - 36 / + + ( - COUNT ( * ) ) + 63 * - 26 * + 56 col0, + 8 / 96 AS col0 +---- +-91764 +0 query I rowsort SELECT 96 * 40 * + 22 - - + 47 @@ -13321,8 +13485,11 @@ SELECT + + 26 AS col0, 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-65\)\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 65 AS col0, 93 AS col0 +---- +65 +93 query II rowsort SELECT 46 AS col1, + 4 @@ -14056,8 +14223,11 @@ SELECT + - 99 * - 42 * + 16 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "\(\- CAST\(Int64\(4\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 AS col0, - CAST ( 4 AS INTEGER ) AS col0 +---- +-4 +37 query I rowsort SELECT ALL - 88 * + 83 col1 @@ -14250,8 +14420,11 @@ SELECT ALL + MIN ( DISTINCT + 82 ) + + - 11 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col1" at position 0 and "Int64\(31\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 col1, + 31 / + ( COUNT ( * ) ) AS col1 +---- +31 +86 query I rowsort SELECT 27 + + ( - 84 ) AS col2 @@ -14508,8 +14681,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-60\)\) AS col1" at position 0 and "Int64\(\-49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( ( - 60 ) ) AS col1, - 49 AS col1 +---- +-49 +-60 query I rowsort label-2753 SELECT - ( - CAST ( NULL AS INTEGER ) ) * - 49 / 99 + - ( + ( + 97 ) ) @@ -14707,8 +14883,11 @@ SELECT ALL + 87 * 8 - 37 # 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 "Int64\(98\) AS col1" at position 0 and "Int64\(11\) \- Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 98 col1, 11 - + 32 AS col1 +---- +-21 +98 query II rowsort SELECT 26 + 14 * + 51 * + - 8 col1, 85 + - - 48 AS col2 @@ -14828,8 +15007,11 @@ SELECT ALL 8 + + + 13 + COUNT ( * ) * ( - - COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 4628 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) / Int64\(52\) \+ \(\- min\(Int64\(\-74\)\)\) AS col1" at position 0 and "Int64\(52\) \* \(\- \(\- nullif\(Int64\(89\), count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \+ Int64\(3\) \* count\(Int64\(1\)\) AS count\(\*\) \- \(\- nullif\(Int64\(16\), Int64\(26\)\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 / + 52 + - MIN ( ALL - 74 ) col1, 52 * + - ( - + NULLIF ( + 89, COUNT ( * ) + + CAST ( NULL AS INTEGER ) + 3 * + COUNT ( * ) - - + NULLIF ( 16, + 26 ) ) ) col1 +---- +4628 +75 query I rowsort SELECT 81 * + + 73 @@ -15026,8 +15208,11 @@ SELECT + 18 - - + COUNT ( * ) + - + 0 * + COUNT ( * ) * - + 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(92\), \(\- CAST\(Int64\(58\) AS Int32\)\), \(\- Int64\(17\)\) \- count\(nullif\(Int64\(60\), CASE Int64\(\-44\) WHEN Int64\(6\) / Int64\(73\) THEN Int64\(66\) END \* \(\- Int64\(\-83\)\) \* Int64\(25\)\)\) \* Int64\(55\)\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( + + 92, - CAST ( + 58 AS INTEGER ), - + 17 - COUNT ( + + NULLIF ( + 60, + CASE - 44 WHEN + + 6 / + 73 THEN + + 66 END * - - 83 * + 25 ) ) * + + 55 ) AS col1, 74 AS col1 +---- +74 +92 query I rowsort label-2852 SELECT 65 * 78 * + + 57 * MAX ( ALL 43 ) * + 22 + + - 42 @@ -15239,8 +15424,11 @@ SELECT + COUNT ( * ) * - 55 * + 15 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-90\), Int64\(\-33\) \* Int64\(\-60\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-85\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(64\) \- \(\- Int64\(6\)\) \* Int64\(\-16\), sum\(DISTINCT CAST\(Int64\(7\) AS Int32\)\)\) AS col2" at position 0 and "Int64\(52\) \+ CAST\(\(\- max\(CAST\(Int64\(73\) AS Int32\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-21 +-90 query I rowsort SELECT DISTINCT + ( + 24 ) col1 @@ -15280,8 +15468,11 @@ SELECT DISTINCT 86 * 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - -967620 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \* Int64\(97\) \* \(\- coalesce\(Int64\(\-57\), Int64\(\-82\) \* Int64\(\-37\)\)\) \* Int64\(35\) \+ Int64\(\-45\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 5 * 97 * - COALESCE ( + - 57, + - 82 * - 37 ) * 35 + - 45 AS col2, 84 AS col2 +---- +-967620 +84 query I rowsort SELECT 46 * - ( + + 20 ) @@ -15534,8 +15725,11 @@ SELECT ALL - COUNT ( * ), - 83 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 38 AS col2, COUNT ( * ) col2 +---- +-38 +1 query II rowsort SELECT 5, + COALESCE ( - ( - 67 ), + ( - 49 ) + + ( + - 0 ) ) AS col2 @@ -16050,8 +16244,11 @@ SELECT 89 + + 9 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4104 # Datafusion - Expected - 784080 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) \* Int64\(\-72\) AS col0" at position 0 and "Int64\(11\) \* Int64\(\-72\) \* Int64\(\-18\) \* Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 57 * - 72 AS col0, 11 * - 72 * - 18 * + 55 col0 +---- +4104 +784080 query I rowsort label-3047 SELECT 22 / + - 61 - + COUNT ( * ) + 66 AS col0 @@ -16061,8 +16258,11 @@ SELECT 22 / + - 61 - + COUNT ( * ) + 66 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-51\)\)\) AS col0" at position 0 and "Int64\(\-44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - - 51 ) AS col0, - 44 col0 +---- +-44 +-51 query I rowsort label-3049 SELECT 2 / + 37 - - - 81 + 41 * 9 @@ -17431,8 +17631,11 @@ SELECT 40 + - + COALESCE ( + 55, 15 ) * 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 78 AS col2, 33 AS col2 +---- +-78 +33 query I rowsort SELECT DISTINCT + 19 * - 29 * 96 AS col2 @@ -17775,8 +17978,11 @@ SELECT + 10 / 66 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) / CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- CAST\(Int64\(10\) AS Int32\)\) THEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) ELSE NULL END AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 16 / CASE - COUNT ( * ) WHEN + - CAST ( 10 AS INTEGER ) THEN - - COUNT ( * ) ELSE NULL END AS col1, 83 AS col1 +---- +83 +NULL query I rowsort label-3378 SELECT ALL 36 * - 27 + - 6 * - + COUNT ( * ) + 98 / + - 93 - + 94 AS col0 @@ -17809,8 +18015,11 @@ SELECT ALL 84 * 70 + 27 + 1 + - - NULLIF ( - - COUNT ( - + 53 ), - 73 * + 21 + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1596 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* \(\- min\(Int64\(76\)\)\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 21 * - MIN ( ALL 76 ) AS col0, 49 AS col0 +---- +-1596 +49 query I rowsort label-3384 SELECT + + 77 + CAST ( 18 AS INTEGER ) @@ -17838,8 +18047,11 @@ 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\(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\. +query II valuesort SELECT ALL 14 AS col0, - CASE WHEN NULL <> + COUNT ( * ) THEN 80 / COUNT ( * ) END + + - 73 col0 +---- +14 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -18387,8 +18599,11 @@ 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\(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\. +query II valuesort SELECT 91 AS col1, COUNT ( * ) * - - COUNT ( * ) + + NULLIF ( 71, COUNT ( * ) ) AS col1 +---- +72 +91 query I rowsort label-3491 SELECT COUNT ( * ) * + 81 - 60 AS col2 @@ -18452,8 +18667,11 @@ SELECT ALL COALESCE ( + + COUNT ( * ), - 57 - - + CAST ( + 39 AS INTEGER ) + ( 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1682 # Datafusion - Expected - 1725 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* Int64\(29\) AS col0" at position 0 and "Int64\(68\) \* Int64\(25\) \+ Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 58 * + 29 AS col0, 68 * 25 + 25 AS col0 +---- +1682 +1725 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -18508,8 +18726,11 @@ SELECT + + SUM ( DISTINCT - 93 ) + - 66 * + + 35 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-13\)\) AS col1" at position 0 and "CASE Int64\(45\) WHEN Int64\(57\) / \(\- Int64\(66\)\) / \(\- Int64\(\-23\)\) \+ Int64\(\-89\) \+ Int64\(62\) \* \(\- Int64\(8\)\) THEN Int64\(56\) \* \(\- CASE nullif\(Int64\(\-74\), \(\- CAST\(Int64\(22\) AS Int32\)\) / \(\- avg\(CAST\(NULL AS Float64\) \- Int64\(78\)\)\) \+ Int64\(13\) \* count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(48\) WHEN Int64\(\-22\) \+ Int64\(\-53\) \* Int64\(23\) \* sum\(Int64\(99\)\) THEN Int64\(\-18\) ELSE Int64\(\-34\) END\) \+ Int64\(\-65\) \* Int64\(58\) WHEN Int64\(7\) \* Int64\(\-77\) THEN NULL WHEN Int64\(\-16\) THEN Int64\(67\) ELSE \(\- CAST\(\(\- max\(DISTINCT Int64\(0\)\)\) AS Int32\)\) \* Int64\(\-46\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +0 +13 query I rowsort label-3513 SELECT ALL + COALESCE ( - CAST ( NULL AS INTEGER ), + 98 * CAST ( + - 57 AS INTEGER ), + 18 ) @@ -18617,8 +18838,12 @@ SELECT ALL + CASE WHEN 26 IS NOT NULL THEN - 43 ELSE + - 81 * + 98 - COUNT ( * ) # Datafusion - Expected - -31 # Datafusion - Expected - 1377 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col1" at position 0 and "\(\- \(\- Int64\(\-20\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 31 AS col1, 81 * COUNT ( * ) * 17, - ( - - 20 ) AS col1 +---- +-20 +-31 +1377 query I rowsort SELECT DISTINCT + 69 * 97 * - + 0 AS col2 @@ -18850,8 +19075,11 @@ SELECT + 80 * + - 84 + 71 + + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \+ Int64\(\-58\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 14 + - 58 AS col1, + 97 AS col1 +---- +-44 +97 query I rowsort SELECT ALL - 56 * + CASE - 61 WHEN AVG ( ALL - 0 ) / 34 THEN NULL ELSE + 36 + - - 99 END @@ -19305,8 +19533,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 AS col1, - 11 * + - ( COUNT ( * ) ) + 29 AS col1 +---- +32 +40 query I rowsort label-3665 SELECT ALL NULLIF ( - - CASE 60 WHEN + 48 * + AVG ( ALL + + 14 ) + - COUNT ( - CAST ( 33 AS INTEGER ) ) THEN + COALESCE ( ( - 32 ), + 51 + 51 ) WHEN + 4 * + 89 * - 18 THEN NULL END, 9 * 54 + CAST ( - 99 AS INTEGER ) ) - - 18 * + CAST ( NULL AS INTEGER ) @@ -19416,8 +19647,12 @@ NULL # Datafusion - Expected - 87 # Datafusion - Expected - 8 # Datafusion - Expected - 229 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 1 and "Int64\(87\) \+ Int64\(65\) \* \(\- max\(\(\- Int64\(3\)\)\)\) \+ coalesce\(Int64\(\-53\), \(\- coalesce\(Int64\(85\), \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-90\)\)\) \+ \(\- \(\- max\(Int64\(75\)\)\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 49 - - 38, 8 AS col1, + ( + 87 ) + 65 * - MAX ( - + 3 ) + COALESCE ( - 53, - COALESCE ( 85, - ( + CAST ( NULL AS INTEGER ) ) * - 90 ) + - - ( + MAX ( + 75 ) ) ) AS col1 +---- +229 +8 +87 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -19431,8 +19666,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(\-70\) AS col0" at position 0 and "Int64\(\-8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) + - 70 AS col0, - 8 AS col0 +---- +-8 +NULL query II rowsort label-3688 SELECT COUNT ( * ) + + 19, + CAST ( NULL AS INTEGER ) AS col1 @@ -20077,8 +20315,11 @@ SELECT - ( + 16 ) * + - 67 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) AS col0" at position 0 and "Int64\(23\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - CAST ( NULL AS FLOAT8 ) col0, 23 + COUNT ( * ) AS col0 +---- +24 +NULL query I rowsort label-3810 SELECT DISTINCT - 71 + + + COUNT ( * ) + - ( 87 ) * + 20 AS col2 @@ -20215,8 +20456,11 @@ SELECT DISTINCT ( + 55 ) / + COUNT ( DISTINCT - 52 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \+ Int64\(\-94\) \+ Int64\(0\) \* \(\- CAST\(Int64\(\-22\) AS Int32\)\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT CAST ( NULL AS FLOAT8 ) + - 94 + - 0 * - CAST ( - 22 AS INTEGER ) AS col1, 60 AS col1 +---- +60 +NULL query I rowsort label-3836 SELECT 40 / - + ( 40 ) @@ -20406,8 +20650,11 @@ SELECT - 28 + + + COUNT ( + 19 ) * + COUNT ( * ) 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\(41\) AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 41 col1, 86 AS col1 +---- +41 +86 query I rowsort SELECT + 4 + - - 80 + 78 @@ -20639,8 +20886,11 @@ SELECT + - 80 / - 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(51\) \- \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-28\) AS col2" at position 0 and "Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 75 + 51 - - + CAST ( NULL AS INTEGER ) * + - 28 AS col2, - 49 AS col2 +---- +-49 +NULL query I rowsort label-3917 SELECT ALL + 50 * NULLIF ( 52, + 15 * 48 - + COUNT ( * ) ) + 56 + - - 27 @@ -20706,8 +20956,11 @@ SELECT 31 + - 94 * + NULLIF ( 38, - CAST ( + NULLIF ( + COALESCE ( + + 46, + 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - -858 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(29\)\) / Int64\(\-51\) \- Int64\(39\) \* Int64\(22\) AS col0" at position 0 and "Int64\(\-49\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 29 / - 51 - + 39 * + 22 AS col0, - 49 * COUNT ( * ) AS col0 +---- +-49 +-858 query I rowsort label-3930 SELECT ALL - 74 / + 89 @@ -21280,8 +21533,11 @@ SELECT ( 49 ) + CAST ( + - 77 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-26\) AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 26 AS col2, 40 AS col2 +---- +-26 +40 query I rowsort SELECT ALL 76 * 76 AS col2 @@ -21463,8 +21719,11 @@ SELECT ALL - 68 + + - 73 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 153 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(76\) AS col2" at position 0 and "\(\- nullif\(\(\- Int64\(70\)\), Int64\(99\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 + 76 AS col2, - NULLIF ( + - ( 70 ), 99 ) AS col2 +---- +153 +70 query I rowsort SELECT 66 - - 70 @@ -22673,8 +22932,11 @@ SELECT DISTINCT + MIN ( DISTINCT - 54 ) / - + 17 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 626270 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col0" at position 0 and "\(\- Int64\(93\)\) \* Int64\(74\) \* Int64\(\-91\) \+ CAST\(Int64\(7\) AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 35 AS col0, - ( 93 ) * 74 * - 91 + CAST ( 7 AS INTEGER ) + + + COUNT ( * ) AS col0 +---- +35 +626270 query II rowsort label-4304 SELECT 83 * + 9, - 60 * + CAST ( - + 72 AS INTEGER ) AS col1 @@ -22790,8 +23052,12 @@ SELECT - - 44 AS col2, 65 * 45 AS col0 # Datafusion - Expected - 80 # Datafusion - Expected - 21 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) / count\(Int64\(3\)\) AS col2" at position 1 and "Int64\(58\) / Int64\(33\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT NULLIF ( 80, 80 + + 70 * + 1 * 1 ), 21 / + COUNT ( ALL + 3 ) AS col2, 58 / + 33 AS col2 +---- +1 +21 +80 query II rowsort label-4325 SELECT ALL - 34 AS col0, + 77 * + COUNT ( 75 ) col2 @@ -22830,8 +23096,11 @@ SELECT 49 * + 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6460 # Datafusion - Expected - 110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* Int64\(76\) AS col2" at position 0 and "Int64\(76\) \+ Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 * 76 AS col2, 76 + 34 AS col2 +---- +110 +6460 query I rowsort label-4332 SELECT MIN ( DISTINCT - NULLIF ( + 36, - 55 ) ) AS col0 @@ -23761,8 +24030,11 @@ SELECT ( + 19 ) * - 1 * 21 + + 65 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) \- Int64\(\-69\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 51 - - 69 AS col1, 26 AS col1 +---- +18 +26 query I rowsort label-4508 SELECT DISTINCT - 19 / + COUNT ( * ) + - 34 AS col2 @@ -23859,8 +24131,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \+ max\(DISTINCT Int64\(\-69\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 AS col1, + 11 * + COUNT ( * ) + ( MAX ( DISTINCT + - 69 ) ) col1 +---- +-58 +17 query I rowsort SELECT 28 * - COALESCE ( - 5, + 94 * + - 64 ) AS col0 @@ -24564,8 +24839,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 76 + + COALESCE ( 47, - - 0 ) + - - COUNT ( * ) AS col1, 4 AS col1 +---- +-28 +4 query I rowsort SELECT ALL - 48 * - 99 col1 @@ -25523,8 +25801,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 74 AS col2, COUNT ( * ) * - 75 AS col2 +---- +-75 +74 query I rowsort label-4845 SELECT ALL MAX ( DISTINCT + 70 ) + - 80 + + 60 AS col1 @@ -25925,8 +26206,11 @@ SELECT 16, - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - -2207790 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col0" at position 0 and "Int64\(\-85\) \* Int64\(39\) \* Int64\(9\) \* Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 AS col0, - 85 * 39 * 9 * 74 AS col0 +---- +-2207790 +-81 query I rowsort SELECT 24 + - ( 64 ) @@ -26605,8 +26889,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \+ Int64\(\-19\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 + - 19 AS col0, 30 AS col0 +---- +30 +5 query I rowsort SELECT + NULLIF ( 32, - 61 ) AS col2 @@ -26645,8 +26932,11 @@ SELECT DISTINCT + 1 + + 0, - 5 / + MAX ( DISTINCT - 87 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \+ Int64\(72\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 7 + + 72 AS col0, + 50 AS col0 +---- +50 +79 query I rowsort SELECT - + ( - - CASE + COALESCE ( 66, 85, - + 7 ) WHEN - ( - ( - 7 ) ) THEN - 76 WHEN ( - 38 ) * 87 + + COALESCE ( - 53, 73 + + 75 * 86 ) THEN NULL WHEN - 34 THEN NULL ELSE NULL END ) @@ -26813,8 +27103,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col1, - 9 / + 78 AS col1 +---- +-1 +0 query I rowsort label-5089 SELECT - 98 / + + 80 col2 @@ -26957,8 +27250,11 @@ SELECT + COUNT ( * ) * - ( + 60 ) + 7 + 90 * + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7209 # Datafusion - Expected - 7057 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(54\) \+ Int64\(81\) \* \(\- Int64\(\-75\)\) AS col1" at position 0 and "\(\- min\(Int64\(\-85\)\)\) \* Int64\(82\) \- sum\(Int64\(\-87\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 21 * + + 54 + + 81 * - - 75 AS col1, - MIN ( - 85 ) * + + 82 - + SUM ( ALL - 87 ) AS col1 +---- +7057 +7209 query II rowsort SELECT ALL - - 58, - 60 AS col0 @@ -27032,8 +27328,12 @@ SELECT 71 + 37, 10 AS col2 # Datafusion - Expected - 20 # Datafusion - Expected - 61 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 20 / COUNT ( * ) AS col1, + 61, 96 AS col1 +---- +20 +61 +96 query I rowsort label-5130 SELECT 90 * + SUM ( - + 36 ) @@ -27078,8 +27378,11 @@ SELECT 51 + 56, + 81 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1303 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(58\) AS Int32\)\) \+ Int64\(\-83\) \* \(\- \(\- Int64\(15\)\)\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( + 58 AS INTEGER ) + - 83 * - - ( 15 ) AS col0, 73 AS col0 +---- +-1303 +73 query I rowsort label-5138 SELECT ALL 98 + + MIN ( + - 97 ) + + 50 col1 @@ -27296,8 +27599,11 @@ SELECT DISTINCT - + NULLIF ( + 68, - 60 + - 28 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \* \(\- Int64\(\-67\)\) \+ Int64\(\-24\) \- Int64\(\-65\) \* Int64\(\-3\) AS col0" at position 0 and "sum\(\(\- \(\- \(\- Int64\(17\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL CAST ( NULL AS FLOAT8 ) * + + ( - - 67 ) + - 24 - - 65 * - 3 AS col0, SUM ( - ( - - ( 17 ) ) ) AS col0 +---- +-17 +NULL query I rowsort label-5179 SELECT - - MAX ( 87 ) * + 42 - + - ( - 90 ) @@ -27489,8 +27795,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -225 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) / Int64\(73\) \* Int64\(55\) \+ nullif\(Int64\(15\), Int64\(58\) / Int64\(60\) \+ Int64\(80\)\) \* Int64\(\-15\) AS col0" at position 0 and "Int64\(\-25\) \* Int64\(82\) / \(\- CAST\(nullif\(Int64\(\-21\), Int64\(12\) \+ Int64\(46\) \* count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 / + 73 * 55 + + NULLIF ( 15, 58 / + 60 + 80 ) * - 15 AS col0, - 25 * 82 / - CAST ( NULLIF ( - 21, 12 + + 46 * + COUNT ( * ) ) AS INTEGER ) AS col0 +---- +-225 +-97 query II rowsort label-5216 SELECT ALL - 29 * 52 + - 91 AS col0, + 96 + - 73 / - + 56 AS col1 @@ -27729,8 +28038,11 @@ SELECT 85 + - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 33 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 AS col2, 33 AS col2 +---- +33 +98 query I rowsort label-5261 SELECT 95 + + + COUNT ( + 74 ) AS col2 @@ -28090,8 +28402,11 @@ 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\(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\. +query II valuesort SELECT ALL MAX ( 4 ) * - ( + 61 ) * - - 79 + + + 66 * + ( + + 38 ) * + + 59 - - 90 + 49 + 14 * - 46 AS col1, NULLIF ( + COUNT ( * ), - 23 * - 66 - 54 ) * 86 AS col1 +---- +128191 +86 query I rowsort label-5328 SELECT ALL + COUNT ( * ) + + 27 * + MAX ( 92 ) - + - 52 AS col1 @@ -28342,8 +28657,11 @@ 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\(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\. +query II valuesort SELECT ALL - 89 col0, COUNT ( * ) + 81 - - ( + + NULLIF ( 84, - 52 - 84 - + - 42 * - ( - COUNT ( * ) ) ) ) + + 30 + - + 38 * + + 55 * + 94 AS col0 +---- +-196264 +-89 query I rowsort label-5376 SELECT ( - + 96 ) * - CAST ( - 16 AS INTEGER ) * + 55 @@ -28742,8 +29060,11 @@ SELECT DISTINCT ( 16 ) AS col0, - 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- nullif\(Int64\(\-35\), \(\- min\(Int64\(11\)\)\)\)\) AS Int32\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( - NULLIF ( + - 35, - MIN ( + 11 ) ) AS INTEGER ) AS col0, + 31 AS col0 +---- +31 +35 query II rowsort label-5453 SELECT - SUM ( - + COALESCE ( - 46, + + 21, 78 ) ) + 92 * - COUNT ( * ) col1, 82 @@ -28821,8 +29142,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - COUNT ( * ) ) AS col2, + 93 AS col2 +---- +-1 +93 query I rowsort label-5466 SELECT + + CASE - 17 WHEN COUNT ( * ) + MIN ( ALL + - 98 ) THEN + COUNT ( * ) END * - + 37 + + - CASE 63 WHEN - 91 * + COUNT ( * ) * - 30 / + - NULLIF ( 67, + + 96 ) - + 8 THEN NULL ELSE + - 45 - CASE 91 WHEN CAST ( NULL AS INTEGER ) / + + 57 + - - 5 / 68 THEN + 34 ELSE NULL END * 75 END + 65 AS col0 @@ -28888,8 +29212,11 @@ SELECT DISTINCT + ( 77 ) + - 44 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3136 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* Int64\(32\) AS col1" at position 0 and "Int64\(\-2\) / \(\- Int64\(9\)\) \+ Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 98 * ( 32 ) AS col1, - 2 / - + 9 + 79 AS col1 +---- +3136 +79 query I rowsort SELECT 89 + - 81 @@ -29884,8 +30211,11 @@ 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\(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\. +query II valuesort SELECT + - COUNT ( * ) AS col0, 84 + + + 86 AS col0 +---- +-1 +170 query I rowsort label-5668 SELECT - - COUNT ( DISTINCT 4 ) + + 97 + + - MIN ( + 61 ) + 24 * 19 * + 43 @@ -30453,8 +30783,11 @@ SELECT DISTINCT + 28 * 94 * + + ( - 68 ) + - + 81 * - 26 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 1880 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-10\), Int64\(\-2\), \(\- Int64\(\-27\)\)\) AS col0" at position 0 and "Int64\(38\) \* Int64\(49\) \+ coalesce\(Int64\(10\), Int64\(97\) \* nullif\(sum\(DISTINCT Int64\(15\)\), Int64\(97\) \- Int64\(87\)\)\) \+ Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( - 10, - 2, ( - - 27 ) ) AS col0, 38 * + 49 + COALESCE ( + 10, + 97 * + NULLIF ( + SUM ( DISTINCT + 15 ), 97 - ( + 87 ) ) ) + 8 AS col0 +---- +-10 +1880 query I rowsort SELECT ALL 35 * - + 33 - + 68 + 15 @@ -31011,8 +31344,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 78 - 39 + - 76 + 63 AS col0, ( + + 98 ) - 32 * - - COUNT ( * ) AS col0 +---- +26 +66 query I rowsort label-5883 SELECT - SUM ( + ( - 83 ) ) @@ -31032,8 +31368,11 @@ SELECT + 66 - ( + COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 45 col1, 53 AS col1 +---- +-45 +53 query II rowsort SELECT - + 88, - 44 * - 4 AS col1 @@ -31351,8 +31690,11 @@ SELECT 82 * - 7 AS col2 # 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 "Int64\(44\) AS col0" at position 0 and "Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 AS col0, 37 AS col0 +---- +37 +44 query I rowsort SELECT 92 * - - 77 AS col0 @@ -31562,8 +31904,11 @@ SELECT ALL - + COUNT ( * ) + + COUNT ( * ) AS col2 # 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\(0\) AS col1" at position 0 and "Int64\(86\) \+ Int64\(27\) \+ Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 0 ) AS col1, + 86 + + 27 + + - 80 AS col1 +---- +0 +33 query I rowsort label-5987 SELECT + 17 + + 73 / ( - 14 ) - - - 57 @@ -31726,8 +32071,11 @@ SELECT ALL + + 7 + + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 19 AS col1, 80 AS col1 +---- +19 +80 query I rowsort SELECT + 9 * - 92 - - 78 * + 89 AS col0 @@ -31942,8 +32290,11 @@ SELECT - + COUNT ( * ), + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 8 AS col1, 91 AS col1 +---- +-8 +91 query II rowsort SELECT ALL 49 AS col2, + COALESCE ( + 73, - 2, - 28 ) @@ -32004,8 +32355,11 @@ SELECT DISTINCT - COUNT ( * ) + ( - COUNT ( * ) ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4455 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(93\), Int64\(\-45\)\) \* Int64\(47\) \+ \(\- Int64\(\-84\)\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( + 93, - 45 ) * + + 47 + - - 84 AS col1, 83 AS col1 +---- +4455 +83 query II rowsort label-6071 SELECT ALL - COUNT ( + + 95 ) AS col1, 61 @@ -32707,8 +33061,12 @@ SELECT DISTINCT + 59 * + - 6 * 72 + - 14 AS col1 # Datafusion - Expected - 1 # Datafusion - Expected - 15 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + COUNT ( * ) col2, + 15 AS col2, - + 35 - 7 + 12 AS col2 +---- +-30 +1 +15 query I rowsort label-6203 SELECT + - CAST ( + COUNT ( * ) AS INTEGER ) * - - 42 + - 51 + - COUNT ( * ) * - CAST ( - 56 AS INTEGER ) + - 55 - 97 @@ -32989,8 +33347,11 @@ SELECT ALL - COUNT ( * ) * - 73 / - 71 AS col2, 88 AS col1 # 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 "Int64\(\-56\) / Int64\(56\) \* Int64\(1\) AS col0" at position 0 and "Int64\(70\) \+ \(\- Int64\(99\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 56 / + 56 * + 1 AS col0, 70 + - + 99 AS col0 +---- +-1 +-29 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -33077,8 +33438,11 @@ SELECT ALL 30 * 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -55936 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* \(\- avg\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col1" at position 0 and "Int64\(\-32\) \* Int64\(92\) \* Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - 36 * - AVG ( - CAST ( NULL AS INTEGER ) ) AS col1, - 32 * 92 * + ( + 19 ) AS col1 +---- +-55936 +NULL query I rowsort SELECT ALL 24 + - - NULLIF ( + 94, - - COALESCE ( + - 35, - 53 ) * 18 ) AS col2 @@ -33140,8 +33504,11 @@ SELECT + 26 * + 51 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 176 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ \(\- Int64\(\-81\)\) AS col0" at position 0 and "\(\- Int64\(\-84\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 + - + ( - 81 ) AS col0, ( - - 84 ) AS col0 +---- +176 +84 query I rowsort SELECT ALL - 92 + + 16 @@ -33183,8 +33550,12 @@ SELECT ALL - NULLIF ( + ( - MIN ( DISTINCT 59 ) ), + 87 ) # Datafusion - Expected - 15 # Datafusion - Expected - -1498412 # Datafusion - Expected - -1034 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-15\)\) AS col2" at position 0 and "Int64\(88\) \+ Int64\(\-75\) \* Int64\(3\) \* Int64\(90\) \* Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - - 15 AS col2, 88 + - 75 * + 3 * + 90 * 74 AS col2, - 22 * + + 47 +---- +-1034 +-1498412 +15 query I rowsort SELECT ALL + 93 * + 44 AS col0 @@ -33226,8 +33597,11 @@ 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\(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\. +query II valuesort SELECT 71 * + 5 - - ( + COUNT ( * ) ) AS col2, MAX ( + 16 ) * 0 AS col2 +---- +0 +356 query II rowsort label-6301 SELECT ALL - SUM ( DISTINCT - 31 ), COUNT ( ALL 55 ) AS col2 @@ -33943,8 +34317,11 @@ SELECT ALL 59 AS col0, + 46 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col2" at position 0 and "Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 AS col2, + 79 AS col2 +---- +75 +79 query I rowsort SELECT 65 + - 66 + 5 @@ -34215,8 +34592,11 @@ SELECT + 70 / - - 95 + + ( 63 ) * COUNT ( * ) # 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 "Int64\(89\) / Int64\(83\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 89 / 83 AS col0, 43 AS col0 +---- +1 +43 query I rowsort label-6494 SELECT CASE - - 1 WHEN 15 * - 89 THEN 33 WHEN ( 8 ) THEN 60 + COALESCE ( - COUNT ( 95 ), - 16 * 42 ) END AS col0 @@ -34517,8 +34897,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + 14 * 88 col0, + COUNT ( * ) * + - NULLIF ( - + 42, - - NULLIF ( + 48, 71 ) + 42 ) AS col0 +---- +1232 +42 query I rowsort SELECT 64 + 57 @@ -34544,8 +34927,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT ( - ( - COUNT ( * ) ) ) / 56 col2, 26 - - ( COUNT ( * ) ) * - 39 AS col2 +---- +-13 +0 query I rowsort SELECT DISTINCT + 79 + - ( + 0 ) AS col2 @@ -34603,8 +34989,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-35\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-91\) \* \(\- Int64\(\-63\)\) \* avg\(nullif\(Int64\(8\), Int64\(13\)\)\) \+ Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL - + COUNT ( * ) AS col1, - 35 * - CAST ( NULL AS INTEGER ) * - 91 * - - 63 * AVG ( + NULLIF ( 8, 13 ) ) + + 12 AS col1 +---- +-1 +NULL query I rowsort label-6567 SELECT ALL + 15 + + MIN ( - 18 ) AS col1 @@ -35062,8 +35451,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 * - + COUNT ( * ) AS col2, + 34 col2 +---- +-47 +34 query I rowsort label-6656 SELECT DISTINCT ( + MIN ( ALL + + 67 ) ) * - MAX ( + 96 ) * - 25 + + COUNT ( * ) + - ( - MAX ( DISTINCT + 43 ) ) * + 37 @@ -35569,8 +35961,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-40\)\) \+ Int64\(\-34\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MAX ( ALL - 40 ) + - 34 * + CAST ( + - COUNT ( * ) AS INTEGER ) AS col0, 79 AS col0 +---- +-6 +79 query I rowsort SELECT - 19 * + + 54 + - 93 AS col0 @@ -35751,8 +36146,11 @@ SELECT - - COUNT ( + CAST ( + + 28 AS FLOAT8 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(91\), Int64\(\-95\), max\(\(\- CAST\(Int64\(\-36\) AS Int32\)\)\)\)\) AS col0" at position 0 and "Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COALESCE ( 91, - 95, + MAX ( - CAST ( - 36 AS INTEGER ) ) ) AS col0, - 80 AS col0 +---- +-80 +-91 query I rowsort label-6785 SELECT ALL SUM ( ALL + 66 ) * - COUNT ( * ) * - 29 + ( - 27 ) + - + NULLIF ( + COUNT ( * ), - - COUNT ( * ) + 84 * - 83 ) @@ -36133,8 +36531,12 @@ SELECT ALL ( - CASE 77 WHEN + 80 THEN 94 WHEN - 12 THEN - - 93 + - 62 + + 12 WHE # Datafusion - Expected - 106 # Datafusion - Expected - -45 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \+ \(\- Int64\(\-17\)\) AS col1" at position 0 and "Int64\(6\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 89 + - - 17 col1, - 0 + - + 45 col0, + 6 AS col1 +---- +-45 +106 +6 query I rowsort SELECT - 13 - 68 @@ -36490,8 +36892,11 @@ SELECT 52 * + 94 * + - 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 10 AS col0, COUNT ( * ) AS col0 +---- +1 +10 query II rowsort SELECT 81 AS col1, - 18 col2 @@ -36558,8 +36963,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 25 -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\(25\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 49 AS col2, SUM ( + 25 ) AS col2 +---- +25 +49 query I rowsort label-6937 SELECT ALL + CASE CASE 3 WHEN 82 - 5 THEN - 17 WHEN 54 / 70 + + 29 * 25 * - 36 THEN 78 WHEN - + 87 THEN + - COALESCE ( - 94, - - 73 ) ELSE NULL END WHEN - 15 - COALESCE ( 34, + 10 ) THEN + 44 * + 74 + + COUNT ( * ) WHEN 43 + + 83 * - 5 THEN - 78 * SUM ( ALL + ( - 53 ) ) END AS col2 @@ -37678,8 +38086,11 @@ SELECT DISTINCT - NULLIF ( - ( + 10 ), + + 41 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 236 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) \+ \(\- Int64\(\-56\)\) \* Int64\(5\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 44 + - - 56 * 5 AS col2, CAST ( NULL AS INTEGER ) AS col2 +---- +236 +NULL query I rowsort SELECT 60 + + + 59 AS col2 @@ -37727,8 +38138,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 AS col0, - 60 + - COUNT ( * ) AS col0 +---- +-61 +89 query I rowsort label-7160 SELECT ALL 89 - + + MAX ( + 15 ) @@ -37818,14 +38232,20 @@ SELECT DISTINCT - - 30 * - 73 * 49 * - 49 + - 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 432 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col2" at position 0 and "Int64\(72\) \* \(\- Int64\(\-6\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 39 AS col2, 72 * - - 6 AS col2 +---- +39 +432 # 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\(1\)\) AS count\(\*\) \- Int64\(\-81\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 26 AS col2, + NULLIF ( - 19, COALESCE ( - - 43, + 98, COUNT ( * ) - - 81 ) ) AS col2 +---- +-19 +26 query I rowsort label-7178 SELECT ALL + 85 * + - 19 + - + CAST ( 89 AS INTEGER ) + + 60 * + + 3 @@ -38479,8 +38899,11 @@ SELECT ALL COUNT ( * ) * + 9 + - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, - 32 AS col1 +---- +-32 +1 query I rowsort SELECT ALL - ( - 92 ) * 22 * - 13 + + - 20 AS col1 @@ -38955,8 +39378,11 @@ SELECT ALL + 67 * + 26 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "Int64\(\-97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 11 AS col2, - 97 AS col2 +---- +-97 +11 query I rowsort label-7393 SELECT 96 / + + 41 AS col1 @@ -39375,8 +39801,12 @@ SELECT ALL - 72 * - 66 * - + 75 * 8 AS col1 # Datafusion - Expected - 89 # Datafusion - Expected - 91 # Datafusion - Expected - -1672 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 1 and "\(\- max\(DISTINCT Int64\(\-9\)\)\) \* Int64\(90\) \+ Int64\(48\) \+ CAST\(min\(Int64\(75\)\) AS Int32\) \+ Int64\(84\) \* \(\- max\(Int64\(31\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 89, + 91 AS col1, - + MAX ( DISTINCT - 9 ) * + 90 + 48 + + CAST ( + MIN ( 75 ) AS INTEGER ) + 84 * - MAX ( + 31 ) + + - COUNT ( * ) AS col1 +---- +-1672 +89 +91 query I rowsort label-7474 SELECT CAST ( NULL AS INTEGER ) + + 92 * COALESCE ( - + 65, - 81 ) @@ -39858,8 +40288,12 @@ SELECT ALL + + 68 AS col1, 61 + - - 27 + + 42 # Datafusion - Expected - 69 # Datafusion - Expected - NULL # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 69 AS col2, CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + COUNT ( * ) AS col2, 45 * COUNT ( * ) +---- +45 +69 +NULL query I rowsort SELECT DISTINCT + - ( + 78 ) AS col1 @@ -40321,8 +40755,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col0" at position 0 and "sum\(Int64\(71\)\) / Int64\(71\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 AS col0, SUM ( ALL 71 ) / + 71 * + COUNT ( * ) AS col0 +---- +1 +68 query I rowsort SELECT ALL 12 * - 46 @@ -40662,8 +41099,11 @@ SELECT DISTINCT - ( - COUNT ( * ) ) / 37 + + NULLIF ( + + MIN ( DISTINCT - 87 ), # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) / Int64\(\-95\) \* nullif\(Int64\(85\), Int64\(54\) \+ Int64\(40\)\) \+ nullif\(\(\- Int64\(29\)\), avg\(Int64\(32\)\) \* Int64\(56\) \* \(\- Int64\(\-47\)\) \* \(\- Int64\(41\)\) \+ Int64\(14\) \* Int64\(87\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- nullif\(Int64\(\-10\), \(\- \(\- coalesce\(\(\- \(\- CAST\(NULL AS Int32\)\)\), Int64\(\-76\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-40\)\)\)\) \+ Int64\(79\) \+ Int64\(\-39\) \- Int64\(20\) \- Int64\(3\) \- Int64\(69\) \* Int64\(\-2\)\)\) \+ Int64\(\-5\) \+ Int64\(3\) \+ Int64\(75\)\) \- max\(Int64\(\-23\)\) / Int64\(\-52\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort 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 +---- +-29 +85 query I rowsort SELECT ALL + COALESCE ( - - 14, - 97 * 44, 15 - - 63 ) @@ -41029,8 +41469,11 @@ 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\(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\. +query II valuesort SELECT + 51 AS col1, COUNT ( * ) + - - COUNT ( * ) * - 41 AS col1 +---- +-40 +51 query I rowsort SELECT + 35 * - 77 @@ -41086,8 +41529,11 @@ SELECT + 75 * 7 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -246 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col1" at position 0 and "Int64\(\-51\) \- Int64\(79\) \+ Int64\(\-66\) \+ \(\- \(\- min\(Int64\(\-50\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 73 AS col1, - 51 - 79 + - 66 + - - MIN ( - 50 ) col1 +---- +-246 +73 query I rowsort label-7799 SELECT - 99 * + SUM ( DISTINCT + 61 ) - - 53 + + 97 AS col1 @@ -41209,14 +41655,20 @@ SELECT - CAST ( + + 15 AS INTEGER ) + + COUNT ( * ) - 78 + 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 AS col0, COUNT ( * ) AS col0 +---- +1 +52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \+ Int64\(68\) \+ Int64\(\-60\) AS col2" at position 0 and "nullif\(count\(Int64\(\-12\)\), Int64\(\-44\) \* coalesce\(Int64\(50\), Int64\(\-49\) \* \(\- CAST\(Int64\(35\) AS Int32\)\), Int64\(20\) \- \(\- Int64\(64\)\) \+ \(\- avg\(DISTINCT Int64\(\-31\)\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +1 +3 query I rowsort label-7823 SELECT 6 / - + CASE + 54 WHEN COUNT ( 89 ) THEN + 44 * - - 73 * + + 85 * + COUNT ( * ) * 18 END - + COUNT ( * ) - 30 + - 77 * - MIN ( + NULLIF ( + 87, - 46 ) ) @@ -41408,8 +41860,11 @@ SELECT 13 - 45 + - 35 * - 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ Int64\(82\) \- Int64\(59\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 + + 82 - 59 AS col2, + 27 AS col2 +---- +27 +46 query I rowsort label-7860 SELECT DISTINCT - COUNT ( * ) * - COALESCE ( + 58, 89 * - 53 * - 6 ) @@ -41821,8 +42276,12 @@ SELECT ALL + + COALESCE ( - 40, - + 81 ) AS col2 # Datafusion - Expected - -285 # Datafusion - Expected - 0 # Datafusion - Expected - 544 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(33\)\) \* Int64\(\-65\) \+ Int64\(\-29\) \+ \(\- Int64\(6\)\) \* Int64\(12\) \+ Int64\(53\) \+ Int64\(14\) \* Int64\(\-8\) \- Int64\(60\) AS col1" at position 0 and "Int64\(1\) \* Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + COUNT ( 33 ) * - 65 + - 29 + - + 6 * + 12 + 53 + + + 14 * - 8 - + 60 AS col1, 1 * - 0 AS col1, + CASE 60 WHEN + 91 THEN NULL ELSE + - 8 END * - 68 AS col1 +---- +-285 +0 +544 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -41907,8 +42366,11 @@ SELECT ALL + MAX ( - 59 ) * + - 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3186 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(54\)\) \* Int64\(59\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + + 54 ) * 59 AS col0, + CAST ( NULL AS INTEGER ) col0 +---- +-3186 +NULL query I rowsort SELECT - 99 * + 33 @@ -42733,8 +43195,11 @@ 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 "\(\- Int64\(81\)\) AS col0" at position 0 and "Int64\(61\) / Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 81 col0, + 61 / - 91 AS col0 +---- +-81 +0 query I rowsort SELECT + 55 + 22 @@ -43190,8 +43655,11 @@ SELECT - 12 * + COUNT ( DISTINCT - 44 ) * + ( + + 97 ) * - 51 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6075 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* Int64\(75\) AS col1" at position 0 and "Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 81 * 75 AS col1, - 84 AS col1 +---- +-84 +6075 query I rowsort label-8204 SELECT ALL NULLIF ( - 34, - NULLIF ( + - COUNT ( * ), + - 70 * 25 * - COUNT ( ALL 59 ) + 22 ) ) @@ -43244,8 +43712,11 @@ SELECT ALL + 45 / + - 83 * - 2 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "Int64\(77\) \+ CASE WHEN Int64\(3\) BETWEEN Int64\(1\) \+ Int64\(\-21\) \- Int64\(\-32\) \* Int64\(\-43\) \* Int64\(15\) AND Int64\(90\) \+ avg\(CAST\(NULL AS Int32\)\) \* Int64\(25\) THEN Int64\(\-12\) / Int64\(\-17\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 0 AS col0, 77 + CASE WHEN ( 3 ) BETWEEN 1 + + - 21 - + ( - 32 ) * - 43 * 15 AND + 90 + AVG ( + CAST ( NULL AS INTEGER ) ) * 25 THEN - 12 / - 17 ELSE NULL END AS col0 +---- +0 +NULL query I rowsort SELECT 95 * 33 AS col2 @@ -43435,8 +43906,11 @@ SELECT 7 * - - 62, - 86 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 147 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(52\)\) \+ \(\- Int64\(\-6\)\) \+ Int64\(89\) AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( + 52 ) + - - 6 + + 89 col2, 74 AS col2 +---- +147 +74 query I rowsort label-8251 SELECT ALL 57 / + 31 AS col1 @@ -43688,8 +44162,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) AS col0 +---- +0 +1 query I rowsort SELECT DISTINCT + 34 * + + 36 @@ -43822,8 +44299,11 @@ SELECT - 16 + + - 88 / 88 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -117 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) \+ coalesce\(\(\- min\(Int64\(25\)\)\), Int64\(7\), Int64\(\-10\)\) AS col1" at position 0 and "Int64\(\-83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 + COALESCE ( - MIN ( ALL + 25 ), 7, - 10 ) AS col1, - 83 AS col1 +---- +-117 +-83 query II rowsort label-8324 SELECT DISTINCT ( + 78 ) col2, 89 / 69 @@ -43839,8 +44319,11 @@ SELECT ALL + COUNT ( + 65 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 76 col1, - 6 AS col1 +---- +-6 +76 query I rowsort label-8327 SELECT + + 79 + ( - 78 ) - + 91 - - COUNT ( * ) * - - COUNT ( * ) / + ( - 65 ) @@ -44029,8 +44512,11 @@ SELECT ALL - 87 + 92 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1824 # Datafusion - Expected - 180 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(48\) AS col0" at position 0 and "Int64\(5\) \* Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( 38 ) * + 48 AS col0, 5 * 36 AS col0 +---- +180 +1824 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -44616,8 +45102,11 @@ SELECT 29 * 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "CAST\(Int64\(\-88\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 AS col2, + CAST ( - 88 AS INTEGER ) AS col2 +---- +-88 +89 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -45713,8 +46202,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 89 AS col1, 36 col1 +---- +36 +89 query I rowsort label-8683 SELECT MAX ( DISTINCT - 29 ) * + ( 91 ) + COUNT ( * ) + + 26 + + + 97 AS col1 @@ -45951,8 +46443,11 @@ SELECT DISTINCT - ( + 74 ) - 80 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3686 # Datafusion - Expected - 101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* Int64\(\-38\) AS col1" at position 0 and "Int64\(\-1\) \* Int64\(\-65\) \+ \(\- Int64\(\-36\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 97 * - 38 AS col1, - 1 * + - 65 + - - 36 AS col1 +---- +-3686 +101 query I rowsort label-8727 SELECT 84 * + + COUNT ( * ) AS col1 @@ -46241,8 +46736,11 @@ SELECT + 39 * - - 13 * - - 31 + 27 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 34 AS col0, 5 AS col0 +---- +34 +5 query I rowsort label-8782 SELECT ALL MAX ( DISTINCT - ( + - 27 ) ) col0 @@ -46298,8 +46796,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(69\)\) AS col2" at position 0 and "CASE CAST\(NULL AS Int32\) WHEN Int64\(\-50\) \+ Int64\(\-81\) THEN \(\- Int64\(22\)\) END \* Int64\(\-42\) \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( + 69 ) AS col2, CASE + + CAST ( NULL AS INTEGER ) WHEN - 50 + - 81 THEN - + 22 END * - 42 - - CAST ( NULL AS INTEGER ) AS col2 +---- +1 +NULL query I rowsort SELECT + 50 + - 94 + + 76 @@ -46447,8 +46948,11 @@ SELECT ALL 78 * - COALESCE ( 42, - 13 ) + - 93 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \+ Int64\(59\) \+ Int64\(64\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 98 + 59 + 64 col2, CAST ( NULL AS INTEGER ) AS col2 +---- +25 +NULL query I rowsort SELECT DISTINCT - - 36 + - 78 @@ -46506,8 +47010,11 @@ SELECT ALL + 68 * + + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "min\(\(\- Int64\(\-53\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 AS col0, MIN ( - - 53 ) AS col0 +---- +53 +90 query I rowsort label-8831 SELECT CASE - 81 WHEN - - COUNT ( - COALESCE ( - - 86, + 89 - 20, - ( + 78 ) ) ) + 98 + + + 71 * + 20 + + 86 THEN - COUNT ( + ( 15 ) ) + - + 46 END @@ -46620,8 +47127,11 @@ 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\(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\. +query II valuesort SELECT + 95 AS col2, 62 * + 66 + - + 39 + - - COUNT ( * ) - 49 / COUNT ( * ) * 51 AS col2 +---- +1555 +95 query I rowsort SELECT DISTINCT - 88 + - 96 AS col1 @@ -46742,8 +47252,11 @@ SELECT DISTINCT - ( NULLIF ( - 8, + + 31 ) ) * + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4069 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \* Int64\(42\) \+ Int64\(\-77\) \+ Int64\(40\) AS col1" at position 0 and "Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 96 * 42 + - 77 + + 40 AS col1, 56 AS col1 +---- +-4069 +56 query II rowsort label-8875 SELECT + COUNT ( * ) + - 27 col0, 86 / + - 82 + + 91 AS col1 @@ -46954,8 +47467,11 @@ SELECT 83 + 67 # 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 "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 2 AS col1, 80 AS col1 +---- +2 +80 query II rowsort SELECT 15, - 71 AS col2 @@ -47058,8 +47574,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 93 AS col1, COUNT ( * ) * - COALESCE ( + - COUNT ( * ), + 67 - 1 * ( 14 ), 6 - - 40 ) AS col1 +---- +1 +93 query I rowsort SELECT ALL - ( 52 ) * - 44 col1 @@ -47094,8 +47613,11 @@ SELECT 58 + - 62 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 col2, + COUNT ( * ) AS col2 +---- +1 +93 query I rowsort SELECT ALL - - 52 + 51 @@ -47168,8 +47690,11 @@ SELECT DISTINCT + COUNT ( * ) / 46 AS col1, - 88 + COUNT ( * ) * - 92 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -320 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(\-64\) AS col1" at position 0 and "Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 5 * - 64 AS col1, - 70 AS col1 +---- +-320 +-70 query I rowsort label-8954 SELECT - 14 / - 91 - + MAX ( + + 84 ) + 97 / - + 13 AS col2 @@ -47179,15 +47704,22 @@ SELECT - 14 / - 91 - + MAX ( + + 84 ) + 97 / - + 13 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col1" at position 0 and "Int64\(\-67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 56 AS col1, - 67 col1 +---- +-56 +-67 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(\-92\) WHEN Int64\(81\) \+ Int64\(18\) \* Int64\(\-24\) THEN Int64\(57\) END\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - + CASE - 92 WHEN 81 + 18 * - 24 THEN 57 END col2, + 0 * - COUNT ( * ) / + - 68, + 45 AS col2 +---- +0 +45 +NULL query I rowsort SELECT ( + 15 ) * - 89 @@ -47349,8 +47881,11 @@ SELECT CAST ( + 71 AS INTEGER ) / - 24 + 86 + + + 18 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + + 10 ) AS col1, 64 AS col1 +---- +10 +64 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -47773,8 +48308,11 @@ SELECT 23 col2, - 13 # 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 "Int64\(70\) \+ Int64\(\-70\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 + + ( - 70 ) AS col2, 29 AS col2 +---- +0 +29 query I rowsort SELECT DISTINCT + 42 * + + 25 + - ( 62 ) + + 77 AS col1 @@ -47799,8 +48337,11 @@ SELECT ALL 85 * - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 92 AS col1, + CAST ( NULL AS INTEGER ) AS col1 +---- +-92 +NULL query I rowsort label-9073 SELECT DISTINCT + + CAST ( + MAX ( ALL + 77 ) AS INTEGER ) * ( + COUNT ( * ) ) @@ -47820,8 +48361,11 @@ SELECT ALL + 48 + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 247 # Datafusion - Expected - -1694 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) / Int64\(2\) \* Int64\(19\) AS col2" at position 0 and "Int64\(77\) \* Int64\(\-22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 26 / 2 * 19 col2, 77 * - 22 AS col2 +---- +-1694 +247 query I rowsort label-9077 SELECT + ( - 68 ) + - 44 + + + MAX ( ALL - 65 ) @@ -48011,8 +48555,11 @@ SELECT ALL 83 + + - 85 * + + 10 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 66 AS col0, 83 AS col0 +---- +-66 +83 query I rowsort label-9114 SELECT ALL 96 + - + NULLIF ( - COUNT ( * ), + ( - - 23 ) ) / - 43 * 66 @@ -48121,8 +48668,11 @@ SELECT - MAX ( ALL - 24 ) AS col0, 2 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 3162 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col2" at position 0 and "Int64\(93\) \* Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( 59 ) AS col2, 93 * 34 col2 +---- +3162 +59 query I rowsort label-9135 SELECT - 58 + - COUNT ( * ) @@ -48153,8 +48703,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1911 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-39\) AS Int32\) \* Int64\(49\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( + - 39 AS INTEGER ) * + 49 AS col0, 51 AS col0 +---- +-1911 +51 query I rowsort SELECT ALL + 56 * - 60 AS col1 @@ -48559,8 +49112,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 7104 # Datafusion - Expected - -6460 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* \(\- \(\- sum\(Int64\(96\)\)\)\) \+ Int64\(96\) AS col2" at position 0 and "Int64\(85\) \* max\(Int64\(\-76\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 73 * - - SUM ( ALL + 96 ) + + 96 AS col2, + 85 * + MAX ( - 76 ) AS col2 +---- +-6460 +7104 query II rowsort SELECT 57 + - 32 AS col0, 44 AS col1 @@ -48670,8 +49226,11 @@ SELECT DISTINCT + 24 / - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(7\) AS Int32\)\) \+ Int64\(4\) \* sum\(\(\- Int64\(17\)\)\) AS col0" at position 0 and "Int64\(65\) / Int64\(74\) \* Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( + 7 AS INTEGER ) + 4 * SUM ( ALL - + 17 ) AS col0, 65 / 74 * ( 35 ) AS col0 +---- +-75 +0 query II rowsort SELECT + 5 + - 69 * 97 AS col2, + 0 @@ -48767,8 +49326,12 @@ SELECT DISTINCT + 20 * 73 # Datafusion - Expected - -1 # Datafusion - Expected - -3910 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \* Int64\(\-85\) AS col2" at position 1 and "\(\- CASE CAST\(Int64\(68\) AS Int32\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* min\(Int64\(\-12\)\) THEN NULL WHEN \(\- Int64\(65\)\) THEN Int64\(\-14\) \* \(\- Int64\(\-10\)\) \* Int64\(8\) \- Int64\(84\) END\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-1 +-3910 +NULL query I rowsort label-9256 SELECT DISTINCT + NULLIF ( 6, - COUNT ( * ) + + 37 ) AS col2 @@ -48988,8 +49551,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 AS col0, 23 AS col0 +---- +13 +23 query II rowsort SELECT + 88 AS col1, + 85 * + + ( + ( 47 ) ) @@ -49048,8 +49614,11 @@ SELECT ALL - + 37 AS col1, - 96 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(\(\- Int64\(\-73\)\)\)\) \+ \(\- \(\- Int64\(80\)\)\) AS col0" at position 0 and "CAST\(Int64\(7\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + MIN ( - - 73 ) + - + ( - + 80 ) AS col0, + CAST ( + 7 AS INTEGER ) AS col0 +---- +7 +7 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -49150,8 +49719,12 @@ NULL # Datafusion - Expected - -1961 # Datafusion - Expected - 17 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \* \(\- Int64\(37\)\) AS col1" at position 0 and "Int64\(19\) \+ sum\(DISTINCT Int64\(\-2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 53 * - + 37 AS col1, 19 + + SUM ( DISTINCT - 2 ) AS col1, - 69 +---- +-1961 +-69 +17 query I rowsort label-9326 SELECT DISTINCT COALESCE ( + 55, - + 66 / + - 70 + + 36 + - COUNT ( ( CAST ( + 93 AS FLOAT8 ) ) ) * 63 ) * 3 @@ -49380,8 +49953,11 @@ SELECT DISTINCT + 36 * 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 23 AS col2, - 29 AS col2 +---- +-29 +23 query I rowsort SELECT DISTINCT - ( - 53 ) * 55 + - - 86 + - 17 * - 77 * 14 @@ -49423,8 +49999,11 @@ SELECT + COUNT ( * ) AS col2, - ( + + 23 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col0" at position 0 and "Int64\(32\) \+ Int64\(\-3\) \+ CASE Int64\(\-81\) WHEN \(\- Int64\(\-81\)\) THEN Int64\(21\) END \+ Int64\(27\) \+ Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 2 col0, ( 32 ) + - 3 + CASE - 81 WHEN - - 81 THEN 21 END + + 27 + + 93 AS col0 +---- +2 +NULL query I rowsort label-9377 SELECT ALL 23 * + 63 + + 0 / + MAX ( + + 4 ) * - - 98 - COUNT ( * ) AS col2 @@ -49551,8 +50130,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 177 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-97\)\) \+ \(\- Int64\(16\)\) \* Int64\(\-5\) AS col2" at position 0 and "Int64\(\-88\) / Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - 97 ) + - + 16 * - 5 AS col2, - 88 / 96 AS col2 +---- +0 +177 query I rowsort label-9400 SELECT ALL COUNT ( * ) + + 82 AS col0 @@ -49748,8 +50330,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * - 71 + - 56 AS col1, + 56 AS col1 +---- +-127 +56 query I rowsort label-9437 SELECT + COUNT ( * ) * - 90 AS col1 @@ -49769,8 +50354,11 @@ SELECT DISTINCT + 44 * - MIN ( - 79 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 4 AS col2, 23 col2 +---- +23 +4 query I rowsort label-9441 SELECT 51 + - 84 / + - 11 AS col0 @@ -51976,8 +52564,11 @@ SELECT DISTINCT - + COUNT ( ALL 69 ) + - ( - 99 ) * + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - -59 -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\(\-59\), \(\- min\(DISTINCT Int64\(81\)\)\) \+ Int64\(\-50\), \(\- \(\- Int64\(34\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 35 AS col0, + COALESCE ( - 59, - + MIN ( DISTINCT + + 81 ) + - 50, - - ( 34 ) ) col0 +---- +-35 +-59 query I rowsort SELECT ALL + 61 - - 30 AS col0 @@ -52322,8 +52913,12 @@ SELECT COUNT ( * ) + - - 6 # Datafusion - Expected - 2 # Datafusion - Expected - 34 # Datafusion - Expected - -136803 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 1 and "Int64\(\-49\) \+ Int64\(\-2\) \+ \(\- \(\- Int64\(21\)\)\) \* \(\- nullif\(CAST\(Int64\(74\) AS Int32\), \(\- sum\(Int64\(22\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(coalesce\(Int64\(40\), Int64\(54\) \+ Int64\(\-30\)\) \+ Int64\(17\) AS Int32\) \* Int64\(\-46\)\)\) \* Int64\(88\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-136803 +2 +34 query I rowsort SELECT 87 + - + 2 + + 63 * - - 60 col0 @@ -52470,8 +53065,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(74\) \+ \(\- Int64\(\-28\)\) \+ Int64\(\-24\) \* \(\- coalesce\(Int64\(54\), Int64\(\-74\)\)\) / coalesce\(Int64\(91\), Int64\(67\)\) / Int64\(30\) \- Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + COUNT ( * ) AS col0, ( 74 ) + - - 28 + - 24 * - + COALESCE ( 54, - 74 ) / COALESCE ( 91, 67 ) / 30 - + 76 col0 +---- +1 +26 query II rowsort SELECT DISTINCT + ( 81 ) AS col0, 78 diff --git a/data/sqlite/random/expr/slt_good_80.slt b/data/sqlite/random/expr/slt_good_80.slt index 5cfea3e..d514ed4 100644 --- a/data/sqlite/random/expr/slt_good_80.slt +++ b/data/sqlite/random/expr/slt_good_80.slt @@ -163,8 +163,12 @@ SELECT ALL + 49 + - 41 AS col0 # Datafusion - Expected - 137 # Datafusion - Expected - 7371 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-68\)\) \+ Int64\(57\) \+ Int64\(12\) AS col1" at position 0 and "Int64\(\-75\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - - 68 + 57 + + 12 AS col1, - 76 * - 98 + - 77, - 75 AS col1 +---- +-75 +137 +7371 query II rowsort SELECT + 76, - 27 + 62 AS col2 @@ -367,8 +371,11 @@ SELECT - COALESCE ( - 27, 10 ) + 14 + - 58 * - 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 36 ) AS col1, 67 AS col1 +---- +36 +67 query I rowsort label-64 SELECT - + 49 / + 87 + 46 * + 48 AS col1 @@ -1089,8 +1096,11 @@ SELECT + 8 * COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 87 -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 "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 + + 95 AS col2, ( 87 ) AS col2 +---- +75 +87 query I rowsort label-201 SELECT + CAST ( + - 99 AS INTEGER ) * + + MAX ( - 24 ) + 65 * 31 AS col0 @@ -2046,8 +2056,11 @@ SELECT DISTINCT - 1 * - + 83 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 129 # Datafusion - Expected - -4704 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \+ Int64\(78\) AS col2" at position 0 and "Int64\(56\) \* Int64\(\-84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 + + 78 AS col2, 56 * - 84 AS col2 +---- +-4704 +129 query I rowsort label-390 SELECT ALL + 21 / + 92 * - + ( + CAST ( 36 AS INTEGER ) ) * + 61 AS col1 @@ -2464,8 +2477,11 @@ SELECT ALL + 0 + 90 AS col1 # 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\(89\) \+ Int64\(\-64\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 89 + - 64 AS col2, 94 col2 +---- +25 +94 query II rowsort label-471 SELECT DISTINCT + 93, ( - COUNT ( * ) ) AS col0 @@ -2990,8 +3006,11 @@ SELECT ALL 27 * + + 48 + 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-73\)\) AS col2" at position 0 and "Int64\(35\) \+ Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( - 73 ) AS col2, + 35 + + + 46 col2 +---- +-73 +81 query I rowsort label-573 SELECT + COUNT ( - 75 ) * - NULLIF ( 97, + COUNT ( * ) ) + + 82 col0 @@ -3152,8 +3171,11 @@ SELECT + SUM ( + - 11 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 272 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col0" at position 0 and "Int64\(\-3\) \* Int64\(\-63\) \+ CAST\(CAST\(Int64\(83\) AS Float64\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 37 AS col0, - 3 * + - 63 + + CAST ( + CAST ( 83 AS FLOAT8 ) AS INTEGER ) AS col0 +---- +-37 +272 query I rowsort label-604 SELECT + 7 + + + COUNT ( * ) AS col1 @@ -3267,8 +3289,11 @@ SELECT ALL CASE CASE - 42 WHEN 68 / 46 + - 35 THEN NULL WHEN 6 THEN - 42 ELSE + # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 42 + COUNT ( * ) AS col0, + ( 27 ) AS col0 +---- +-41 +27 query I rowsort SELECT - 38 + - 5 @@ -3560,8 +3585,11 @@ SELECT ALL 71 + 46 + + COUNT ( * ) + - - 47 / - 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3300 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \* Int64\(60\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 55 * 60 AS col0, 42 AS col0 +---- +-3300 +42 query I rowsort SELECT ALL 85 + 53 + - NULLIF ( 17, 12 ) * + ( 31 ) col0 @@ -3585,8 +3613,11 @@ SELECT - ( - 45 ) * 89 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5616 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* Int64\(4\) \* Int64\(54\) AS col2" at position 0 and "Int64\(83\) \- Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 * 4 * + 54 AS col2, 83 - + 99 AS col2 +---- +-16 +5616 query II rowsort SELECT - 74, 9 * ( + + NULLIF ( + 96, - + 38 ) ) col2 @@ -3694,8 +3725,11 @@ SELECT DISTINCT + COALESCE ( + 63, NULLIF ( - 6, - - CAST ( ( 71 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 AS col1, 50 AS col1 +---- +50 +76 query I rowsort label-707 SELECT ALL - COUNT ( * ) * - 35 / - + 92 - + - 64 / - 88 + + - 33 AS col2 @@ -3958,8 +3992,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 77616 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* Int64\(36\) \* Int64\(22\) AS col1" at position 0 and "min\(CAST\(Int64\(\-25\) AS Int32\)\) \+ Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 * 36 * + 22 col1, MIN ( + CAST ( - 25 AS INTEGER ) ) + - 16 AS col1 +---- +-41 +77616 query I rowsort label-758 SELECT ALL - 90 + + CAST ( NULL AS INTEGER ) * COUNT ( * ) * + + NULLIF ( + COALESCE ( - COUNT ( * ), 66, + + 72 / - 15 ), - 71 / + + 9 * + CAST ( AVG ( 9 ) AS INTEGER ) ) AS col0 @@ -4182,8 +4219,11 @@ SELECT + - 50 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\(DISTINCT Int64\(10\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 73 AS col0, + COUNT ( DISTINCT 10 ) AS col0 +---- +1 +73 query II rowsort SELECT ALL - + 73 AS col1, - 90 * - 90 @@ -4731,8 +4771,11 @@ SELECT ALL 32 - + + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 66 AS col2, + ( + 97 ) AS col2 +---- +-66 +97 query I rowsort SELECT ALL 26 * 44 AS col0 @@ -5720,8 +5763,11 @@ SELECT - MIN ( DISTINCT 48 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\)" at position 0 and "Int64\(27\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 27, 27 +---- +27 +27 query I rowsort label-1093 SELECT ALL - COUNT ( * ) * - - 3 AS col1 @@ -5877,8 +5923,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 67 AS col1, 97 col1 +---- +67 +97 query II rowsort SELECT + 56, + 67 * + + 82 AS col2 @@ -5905,8 +5954,11 @@ SELECT ALL - SUM ( - + 19 ) + - 79 + + - 91 + + CASE ( - + 33 ) WHEN - 0 THEN 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 63 AS col1, ( CAST ( NULL AS INTEGER ) ) col1 +---- +63 +NULL query I rowsort label-1128 SELECT ( - 15 ) * COUNT ( * ) * + 50 @@ -6320,8 +6372,11 @@ SELECT DISTINCT - COUNT ( * ) * - 15 * + + 20 * - - 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "Int64\(57\) \* nullif\(Int64\(32\), Int64\(96\) \+ CAST\(NULL AS Float64\)\) \* \(\- CASE \(\- Int64\(35\)\) WHEN max\(Int64\(\-41\)\) THEN min\(CAST\(CAST\(Int64\(\-14\) AS Int32\) AS Int32\)\) \* Int64\(57\) \+ Int64\(\-68\) WHEN Int64\(\-42\) THEN Int64\(\-56\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL + + 79 AS col0, + 57 * NULLIF ( + 32, + + 96 + + CAST ( NULL AS FLOAT8 ) ) * - CASE - + 35 WHEN MAX ( ALL - 41 ) THEN MIN ( ALL + CAST ( + CAST ( + - 14 AS INTEGER ) AS INTEGER ) ) * + 57 + + - 68 WHEN + - 42 THEN - 56 END col0 +---- +79 +NULL query I rowsort SELECT ( - COALESCE ( - 1, 68 * - 22 ) ) @@ -6840,8 +6895,11 @@ SELECT + COUNT ( * ) + - - 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "count\(Int64\(5\)\) \+ Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col1, COUNT ( 5 ) + 86 AS col1 +---- +87 +NULL query I rowsort label-1307 SELECT DISTINCT + COUNT ( ALL - + 94 ) * + - 43 @@ -7118,8 +7176,11 @@ SELECT + 83 * - 28 # 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 "Int64\(\-36\) AS col1" at position 0 and "sum\(DISTINCT Int64\(\-11\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 36 AS col1, + SUM ( DISTINCT - 11 ) AS col1 +---- +-11 +-36 query I rowsort label-1360 SELECT - MAX ( ALL + 62 ) / - 24 + + - CAST ( NULL AS INTEGER ) @@ -7345,8 +7406,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) / Int64\(21\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(NULL AS Int32\) \+ Int64\(\-99\) AS col1" at position 0 and "coalesce\(Int64\(47\), Int64\(61\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 / 21 * - COUNT ( * ) * CAST ( NULL AS INTEGER ) + + - 99 AS col1, COALESCE ( + 47, 61 ) AS col1 +---- +47 +NULL query I rowsort SELECT ALL + + 26 + 69 AS col0 @@ -7470,8 +7534,11 @@ SELECT 21 * - + 39 # 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 "Int64\(96\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 96 AS col1, 7 AS col1 +---- +7 +96 query II rowsort SELECT 10 AS col1, 37 AS col0 @@ -7562,8 +7629,11 @@ SELECT ALL 59 * 78 - + 71 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 5913 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(coalesce\(Int64\(88\), Int64\(\-85\)\)\) AS col1" at position 0 and "Int64\(\-73\) \* \(\- Int64\(81\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( ALL + COALESCE ( + 88, - 85 ) ) AS col1, - 73 * - + 81 AS col1 +---- +1 +5913 query II rowsort label-1444 SELECT ALL COUNT ( * ) * - + ( + + COUNT ( * ) ) * + 40 * - 45 + - CASE - ( COUNT ( - + 83 ) ) WHEN - 22 * + + 98 THEN NULL ELSE 63 / + 69 END * - 79 AS col1, 58 AS col2 @@ -7574,8 +7644,11 @@ SELECT ALL COUNT ( * ) * - + ( + + COUNT ( * ) ) * + 40 * - 45 + - CASE - ( COUN # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col2, 33 AS col2 +---- +1 +33 query II rowsort label-1446 SELECT ALL + 32 AS col2, + 30 + COUNT ( * ) @@ -8059,8 +8132,11 @@ 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\(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\. +query II valuesort SELECT + 33 * - 19 - + COUNT ( * ) - - 18 AS col1, 50 * + ( + - ( COUNT ( * ) ) ) * 94 + - 25 AS col1 +---- +-4725 +-610 query I rowsort label-1537 SELECT COUNT ( * ) + + 66 @@ -8116,8 +8192,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 * MAX ( ALL 32 ) + + 10 AS col1, - COUNT ( * ) AS col1 +---- +-1 +1610 query I rowsort label-1547 SELECT ALL + MAX ( ALL + ( - - CAST ( NULL AS INTEGER ) ) ) AS col2 @@ -8295,8 +8374,11 @@ SELECT + + 93 + - 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- max\(Int64\(27\)\)\) AS Int32\)\)\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - - ( CAST ( + - MAX ( + 27 ) AS INTEGER ) ) ) AS col1, 22 AS col1 +---- +-27 +22 query I rowsort label-1581 SELECT + - 18 + - - CASE + 20 WHEN - 80 THEN 71 WHEN - 63 THEN + MAX ( 73 ) * 15 + CASE 24 WHEN + 39 * ( - 55 ) * - 48 + + CASE + 19 WHEN - 60 * + - COUNT ( * ) THEN NULL WHEN 6 THEN 80 END THEN + 12 + - - CAST ( - 2 AS INTEGER ) ELSE NULL END WHEN - - NULLIF ( - 92, + COUNT ( * ) ) THEN + - 9 END AS col2 @@ -8377,8 +8459,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1596 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(76\) AS col1" at position 0 and "Int64\(\-75\) \+ Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 * 76 AS col1, - 75 + 49 AS col1 +---- +-26 +1596 query II rowsort label-1597 SELECT ALL - MAX ( - + 50 ) AS col0, - COUNT ( * ) - + 55 * - 34 AS col2 @@ -8749,8 +8834,12 @@ SELECT + - 34 + - 22 / - ( - - 14 ) # Datafusion - Expected - 51 # Datafusion - Expected - 1 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(count\(Int64\(1\)\) AS count\(\*\), CASE CAST\(NULL AS Int32\) WHEN Int64\(9\) \* Int64\(82\) \+ \(\- Int64\(14\)\) THEN Int64\(\-91\) END\) AS col1" at position 1 and "Int64\(61\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 51 AS col0, NULLIF ( + COUNT ( * ), + CASE CAST ( NULL AS INTEGER ) WHEN + ( 9 ) * 82 + ( - + 14 ) THEN - 91 END ) AS col1, + 61 AS col1 +---- +1 +51 +61 query II rowsort SELECT - 43 * - - 43 * 96, + 48 AS col1 @@ -11124,8 +11213,11 @@ SELECT 24 AS col2, + ( - - 70 ) + - 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 53 AS col0, COUNT ( * ) AS col0 +---- +1 +53 query I rowsort label-2122 SELECT 93 / - COUNT ( * ) @@ -11635,8 +11727,11 @@ SELECT ALL + - 69 / 65 + - - COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 4 col1, 93 AS col1 +---- +-4 +93 query I rowsort label-2217 SELECT ALL - ( + CASE - 98 WHEN - + 0 THEN 83 / 83 - 0 * - 47 WHEN - 75 * + 88 + 87 THEN + 6 * + 17 - + 27 * 10 END ) * - COUNT ( * ) - - 68 AS col0 @@ -12154,8 +12249,11 @@ SELECT ALL - + 49 / - - 51 AS col0, 14 / + 53 + + 86 + - - 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "Int64\(\-34\) \+ Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 12 AS col2, - 34 + 61 col2 +---- +12 +27 query I rowsort label-2316 SELECT - + COALESCE ( SUM ( - 60 ), + 2 * + 56 * + 58 * 85 - - 86, - - COUNT ( * ) ) + + 82 AS col1 @@ -12860,8 +12958,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + - COUNT ( * ) ) AS col1, 35 AS col1 +---- +-1 +35 query I rowsort SELECT - 94 + 1 col1 @@ -12946,8 +13047,11 @@ SELECT CAST ( + + COALESCE ( - - SUM ( DISTINCT - 44 ), - CAST ( - + 92 AS INTEG # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) / \(\- min\(Int64\(78\)\)\) \+ Int64\(\-53\) AS col2" at position 0 and "Int64\(0\) \+ Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 95 / + - MIN ( + 78 ) + - 53 AS col2, 0 + + 63 AS col2 +---- +-54 +63 query I rowsort label-2467 SELECT ALL 9 / - 93 AS col1 @@ -13815,8 +13919,11 @@ SELECT 9 col2, - COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \- Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 48 AS col2, - CAST ( NULL AS INTEGER ) - - 25 AS col2 +---- +-48 +NULL query II rowsort SELECT - 38 * + 19 * - 27 + + 46, 65 AS col0 @@ -13854,8 +13961,11 @@ SELECT 32 + 88 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CASE Int64\(8\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(40\) \+ nullif\(Int64\(18\), Int64\(59\) \+ Int64\(86\)\) THEN \(\- Int64\(49\)\) ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(91\) \* Int64\(31\) END\) \+ Int64\(27\) \+ \(\- Int64\(28\)\) \* Int64\(2\) \- Int64\(23\) \* Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1 +1182 query I rowsort SELECT ALL + ( + - ( - 51 ) ) @@ -14059,8 +14169,11 @@ SELECT DISTINCT + 53 + - 98 + + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \+ Int64\(44\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 + 44 AS col2, COUNT ( * ) AS col2 +---- +-11 +1 query I rowsort SELECT - - COALESCE ( - 66, - - 42 * 11 + + + 67 + 88 ) @@ -14112,8 +14225,11 @@ SELECT DISTINCT 18 * + - 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "coalesce\(Int64\(7\), sum\(Int64\(32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 87 AS col0, + COALESCE ( 7, SUM ( + 32 ) ) AS col0 +---- +7 +87 query I rowsort label-2688 SELECT DISTINCT - COUNT ( DISTINCT - + 54 ) * 37 AS col1 @@ -14429,8 +14545,11 @@ SELECT 37 + + 80 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) / Int64\(35\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 / + 35 AS col1, 93 AS col1 +---- +2 +93 query I rowsort label-2748 SELECT + CAST ( NULL AS INTEGER ) + + + CASE + 8 WHEN CASE - - COUNT ( * ) WHEN - + 30 THEN NULL ELSE - 73 END - + + 52 THEN + 35 END AS col0 @@ -14523,8 +14642,11 @@ SELECT DISTINCT + 14 + + + 53 + + COALESCE ( - 43, CAST ( NULL AS INTEGER ), - + # Datafusion - Datafusion expected results: # Datafusion - Expected - -156 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(\-65\)\) AS Int32\)\) \+ \(\- Int64\(91\)\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( - - 65 AS INTEGER ) + - ( + ( 91 ) ) AS col0, + 12 AS col0 +---- +-156 +12 query I rowsort SELECT ALL - 74 * - 59 + + 15 @@ -14647,8 +14769,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-49\) \* Int64\(\-20\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 0 AS col1, + NULLIF ( 1, - COUNT ( * ) * + - 49 * - 20 ) AS col1 +---- +0 +1 query II rowsort label-2789 SELECT - COUNT ( * ), 69 + + 28 AS col1 @@ -15011,8 +15136,11 @@ SELECT 7 AS col1, 59 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col2" at position 0 and "Int64\(\-16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 56 AS col2, - 16 col2 +---- +-16 +-56 query I rowsort SELECT 31 - + 11 @@ -15562,8 +15690,11 @@ SELECT - COUNT ( * ) / COALESCE ( + 94, + + MIN ( + - 18 ) * + ( - 5 ) + 74 - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 360513543 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "Int64\(30\) \* Int64\(\-59\) \* Int64\(\-67\) \* Int64\(76\) \* Int64\(40\) \+ \(\- Int64\(57\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 34 AS col2, 30 * + - 59 * - 67 * 76 * 40 + - + 57 col2 +---- +34 +360513543 query I rowsort label-2963 SELECT CASE - 53 WHEN - 98 * - + 55 THEN - 2 WHEN - - ( - - ( 74 ) ) + 77 - + 97 * - 57 * + CASE - ( - NULLIF ( + 75, + ( - COUNT ( * ) ) + - 46 ) ) WHEN - - 99 THEN ( 40 ) ELSE - + 79 + + CASE 59 WHEN + + 16 * + + 13 THEN + 0 ELSE NULL END END / + 71 THEN + - 17 + - 16 ELSE 2 * 19 END AS col2 @@ -15740,8 +15871,12 @@ SELECT 50 * + 98 # Datafusion - Expected - 15 # Datafusion - Expected - 25 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ Int64\(\-38\) AS col2" at position 0 and "Int64\(62\) \- Int64\(76\) \+ \(\- coalesce\(Int64\(51\), Int64\(\-65\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 53 + - 38 AS col2, 25 col0, 62 - + 76 + - COALESCE ( ( 51 ), - 65 ) AS col2 +---- +-65 +15 +25 query I rowsort SELECT DISTINCT + 37 + + 43 @@ -15819,14 +15954,20 @@ SELECT ( 0 ) + - + 21 - COUNT ( * ) / 2 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(70\) AS Int32\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CASE WHEN NULL != Int64\(49\) THEN NULL ELSE Int64\(\-46\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - CAST ( 70 AS INTEGER ) AS col0, COUNT ( * ) * CASE WHEN NULL <> 49 THEN NULL ELSE - 46 END AS col0 +---- +-46 +70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-71\)\) \- Int64\(54\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 71 - + + 54 AS col2, 71 col2 +---- +17 +71 query I rowsort label-3013 SELECT ALL + 92 / SUM ( - 70 ) * + 6 * + + 38 @@ -15920,8 +16061,11 @@ SELECT ALL 17 + - - 66 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(83\) AS Int32\) / Int64\(\-53\) \+ Int64\(\-10\) AS col0" at position 0 and "Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( + + 83 AS INTEGER ) / + - 53 + - 10 col0, + 37 AS col0 +---- +-11 +37 query I rowsort label-3031 SELECT COUNT ( DISTINCT - + 28 ) AS col0 @@ -16224,8 +16368,11 @@ SELECT + 40 * + COUNT ( * ) * - 25, + 83 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2121 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(\-85\) \+ Int64\(4\) AS col0" at position 0 and "Int64\(\-75\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 * - 85 + + 4 AS col0, - 75 / + COUNT ( * ) col0 +---- +-2121 +-75 query I rowsort SELECT + CASE 18 WHEN + 67 THEN + 64 - 39 WHEN 68 + - 62 * 82 THEN NULL END / + 36 + + 16 @@ -16332,8 +16479,11 @@ SELECT 69 * - 91 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 AS col1, + 28 col1 +---- +2 +28 query II rowsort label-3109 SELECT 77 AS col2, 48 + COUNT ( * ) + + COALESCE ( - 62, - + 80, 50 + 69, 1 ) AS col1 @@ -16515,8 +16665,12 @@ SELECT ALL 52 - - 73 # Datafusion - Expected - 8318 # Datafusion - Expected - 16 # Datafusion - Expected - -582 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 1 and "Int64\(13\) \* Int64\(\-44\) \+ Int64\(\-10\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 69 + + 59 - - 0 + 90 * + COUNT ( * ) * + + ( - - 91 ) AS col2, 16 col1, 13 * - 44 + + - 10 AS col1 +---- +-582 +16 +8318 query I rowsort SELECT 8 * - - 51 @@ -16743,8 +16897,11 @@ SELECT + 15 * - + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ min\(Int64\(\-44\)\) AS col2" at position 0 and "Int64\(\-21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 85 + MIN ( - 44 ) AS col2, - 21 AS col2 +---- +-21 +41 query I rowsort SELECT + 55 - - 49 * + - 99 + - 95 col1 @@ -16788,8 +16945,11 @@ SELECT ALL + 26 / - 46 - + - 26 + - + 48 * 93 * - - CASE 84 WHEN - 7 * - 89 - - # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 AS col2, + 34 AS col2 +---- +34 +37 query I rowsort label-3194 SELECT - CASE 79 WHEN - + 59 THEN + NULLIF ( + 62, 41 ) / + 54 + MAX ( + 65 ) END * + - MIN ( DISTINCT + + 92 ) AS col1 @@ -17379,8 +17539,12 @@ SELECT - 22 + 95 AS col2 # Datafusion - Expected - -870 # Datafusion - Expected - -135360 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* Int64\(\-15\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 58 * - 15 col1, 47 * 45 * - + 64, 80 AS col1 +---- +-135360 +-870 +80 query I rowsort label-3307 SELECT + MAX ( DISTINCT + 39 ) AS col2 @@ -18615,8 +18779,11 @@ SELECT DISTINCT 39 + 70 + + - ( - 69 ) - - 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 144 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ Int64\(46\) AS col0" at position 0 and "Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 98 + 46 AS col0, 11 AS col0 +---- +11 +144 query II rowsort label-3542 SELECT - MIN ( + 36 ), 71 AS col0 @@ -18725,8 +18892,11 @@ 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\(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\. +query II valuesort SELECT ALL NULLIF ( 62, - - COALESCE ( 75, + - 59 + - COUNT ( * ) ) / + COUNT ( * ) - 83 ) * + 95 + - 70 AS col1, + 34 - + 98 AS col1 +---- +-64 +5820 query I rowsort label-3563 SELECT COUNT ( * ) * + 75 + 30 * - 67 AS col2 @@ -19745,8 +19915,11 @@ SELECT - 14 + + + 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col1" at position 0 and "Int64\(46\) / Int64\(\-71\) \* nullif\(Int64\(37\), Int64\(71\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 93 AS col1, 46 / - 71 * NULLIF ( 37, 71 ) * + COUNT ( * ) AS col1 +---- +-93 +0 query I rowsort SELECT - 97 - - 24 * - 60 @@ -20194,8 +20367,11 @@ SELECT 25 AS col2, - NULLIF ( - - 58, 41 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 83 AS col2, 37 AS col2 +---- +37 +83 query I rowsort SELECT 27 * 63 col1 @@ -20607,8 +20783,12 @@ SELECT DISTINCT + - 27 AS col2 # Datafusion - Expected - -10147 # Datafusion - Expected - 12 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col1" at position 1 and "Int64\(30\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT ( - + 79 ) * + 91 - + 87 * 34, 12 AS col1, 30 AS col1 +---- +-10147 +12 +30 query I rowsort SELECT ALL 71 * - 56 AS col0 @@ -20618,8 +20798,11 @@ SELECT ALL 71 * - 56 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1362 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* Int64\(\-23\) \+ Int64\(18\) AS col0" at position 0 and "\(\- sum\(CAST\(NULL AS Int32\)\)\) \* min\(\(\- Int64\(76\)\)\) \- Int64\(72\) \+ Int64\(\-46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 * - 23 + 18 AS col0, - SUM ( ALL CAST ( NULL AS INTEGER ) ) * MIN ( - + ( 76 ) ) - + 72 + - 46 AS col0 +---- +-1362 +NULL query I rowsort label-3930 SELECT - - 51 * - 55 + + - COUNT ( * ) + + 55 / 82 + - 74 @@ -20921,8 +21104,12 @@ NULL # Datafusion - Expected - 0 # Datafusion - Expected - -91 skipif postgres -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(61\)\)\) AS col0" at position 0 and "\(\- Int64\(97\)\) \+ Int64\(\-96\) / Int64\(\-14\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - MAX ( 61 ) AS col0, - 24 * + + 13 * + 98 * - 52 * - 56 * - - 87 * + + 23 * - 0, - + 97 + - 96 / - 14 AS col0 +---- +-61 +-91 +0 query I rowsort label-3987 SELECT ALL - + CASE + - 93 WHEN - COUNT ( * ) / + - 69 * + MIN ( - + 2 ) + - 15 + + AVG ( 39 ) THEN - - 2 * - 52 * 65 * 53 + + 35 - ( - ( + 35 ) ) * 54 ELSE 41 END @@ -21278,8 +21465,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 4 * - - 74 + + 55 + + 95 col0, 11, - - COUNT ( * ) * - COUNT ( * ) AS col0 +---- +-1 +11 +446 query I rowsort label-4055 SELECT DISTINCT - 29 * COUNT ( * ) @@ -21289,8 +21480,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * COUNT ( * ) + - 33 + - NULLIF ( - + 72, + + 41 ) / ( + - 58 ) + 53 col2, 7 / - + 60 AS col2 +---- +0 +20 query I rowsort SELECT DISTINCT - ( + 71 ) AS col2 @@ -21483,8 +21677,11 @@ 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\(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\. +query II valuesort 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 +---- +90 +NULL query I rowsort label-4095 SELECT ALL - COUNT ( * ) * + - 12 @@ -21568,8 +21765,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 AS col1, 47 + + - COUNT ( * ) AS col1 +---- +46 +6 query I rowsort SELECT ALL 32 - - 14 @@ -21589,8 +21789,11 @@ SELECT 83 * - 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) / \(\- Int64\(23\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- Int64\(\-6\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 / - + 23 AS col1, CAST ( NULL AS INTEGER ) + ( - ( - 6 ) ) AS col1 +---- +-3 +NULL query II rowsort SELECT 35, - 39 col1 @@ -21634,8 +21837,11 @@ SELECT ALL - 54 + - 89 * - + 29 + + 64 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col0, 34 AS col0 +---- +1 +34 query I rowsort SELECT 23 * + + 7 col1 @@ -21787,8 +21993,11 @@ SELECT + ( - + ( - - 63 ) ) + + - 7 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 414 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* Int64\(46\) AS col1" at position 0 and "coalesce\(CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- \(\- coalesce\(Int64\(54\), Int64\(43\) \- \(\- Int64\(62\)\) \* Int64\(\-72\)\)\)\) WHEN Int64\(31\) \* \(\- Int64\(4\)\) \* \(\- Int64\(17\)\) \* CAST\(NULL AS Int32\) \+ Int64\(12\) THEN Int64\(\-14\) \+ Int64\(4\) END, Int64\(\-27\)\) \+ Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-5 +414 query I rowsort label-4152 SELECT + 28 * - 76 + + + 69 - + - 30 - + COUNT ( + + 94 ) @@ -21969,8 +22178,11 @@ SELECT ALL + 44 col1, 11 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 6097 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(17\) \- Int64\(64\) \* \(\- Int64\(95\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, 17 - + 64 * - + 95 AS col1 +---- +6097 +NULL query I rowsort label-4186 SELECT ALL - 6 / 84 + + 95 + + 95 * - 81 AS col1 @@ -22026,8 +22238,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 9 AS col0, - COUNT ( * ) col0 +---- +-1 +9 query I rowsort label-4197 SELECT ALL - NULLIF ( + 89, + COUNT ( * ) / + + 64 - 58 ) * - 20 @@ -22908,8 +23123,11 @@ SELECT 14 - 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 99 AS col0, - 19 AS col0 +---- +-19 +99 query I rowsort SELECT - 88 * 47 AS col0 @@ -23104,8 +23322,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 43 + + 91 AS col2, - COUNT ( * ) + 21 AS col2 +---- +134 +20 query I rowsort label-4401 SELECT - + 31 * SUM ( 59 ) @@ -23223,8 +23444,11 @@ SELECT ALL + 71 * - 34 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 50232 # Datafusion - Expected - -108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* Int64\(23\) \* Int64\(84\) AS col2" at position 0 and "Int64\(24\) \+ \(\- coalesce\(min\(DISTINCT Int64\(97\)\), Int64\(30\) \* Int64\(35\)\)\) \+ Int64\(\-35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 26 * + 23 * + 84 AS col2, 24 + - COALESCE ( MIN ( DISTINCT 97 ), 30 * + 35 ) + - 35 AS col2 +---- +-108 +50232 query I rowsort label-4423 SELECT + 84 + - - COUNT ( * ) AS col1 @@ -23469,8 +23693,11 @@ SELECT ALL COUNT ( * ) / + 20 * - + MIN ( DISTINCT - 84 ) AS col1, - 62 - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) 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 II valuesort SELECT DISTINCT 59 AS col0, SUM ( + - 66 ) AS col0 +---- +-66 +59 query I rowsort label-4470 SELECT ALL - 68 - + - 84 * - 55 + + - CASE - CASE + 1 WHEN + 94 THEN + 72 * + 2 + + + 47 WHEN 9 THEN + 47 + - 99 + - + 58 + 13 * - CAST ( NULL AS FLOAT8 ) ELSE 63 END WHEN + 49 + + + ( + NULLIF ( - 95, - CASE + 10 WHEN CAST ( + 62 AS INTEGER ) * - 84 THEN CAST ( NULL AS INTEGER ) END ) ) THEN 93 ELSE 98 END * 51 @@ -23687,8 +23914,11 @@ 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\(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\. +query II valuesort SELECT + 85 + - COUNT ( * ) + + 47 AS col2, - ( ( - 46 ) ) - 42 AS col2 +---- +131 +4 query I rowsort label-4510 SELECT ALL CASE 30 WHEN + 7 * - 86 THEN CAST ( NULL AS INTEGER ) ELSE + 16 END + + 50 + + COUNT ( * ) AS col2 @@ -23944,8 +24174,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * + CASE 49 WHEN + - 26 THEN + 63 * + + SUM ( ALL - - 40 ) ELSE NULL END AS col2, 66 + - 15 AS col2 +---- +51 +NULL query II rowsort label-4559 SELECT - COUNT ( * ) - - 60 / + ( - - 59 ) AS col1, + COUNT ( - 61 ) - - 82 @@ -24308,8 +24541,11 @@ SELECT ALL 47 * + - CAST ( + - 82 AS INTEGER ) * - + COUNT ( * ) + + CAST ( 40 A # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 126 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-92\), Int64\(\-37\) \+ Int64\(62\)\) AS col1" at position 0 and "min\(DISTINCT Int64\(80\)\) \+ sum\(Int64\(46\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( - 92, - 37 + 62 ) col1, + MIN ( DISTINCT + 80 ) + SUM ( + 46 ) AS col1 +---- +-92 +126 query I rowsort label-4628 SELECT ALL - - 42 * 12 * - 21 + ( - + COUNT ( * ) ) + + 50 AS col1 @@ -24950,8 +25186,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - - 13 * - 54 + + 60 * - - 29 / - COUNT ( * ) col1, 40 col1, - 38 + + 79 +---- +-2442 +40 +41 query I rowsort label-4750 SELECT - CASE WHEN NOT - 91 IN ( + CAST ( - 59 AS INTEGER ) * COUNT ( DISTINCT - 35 ) * 33 ) THEN 38 + 53 ELSE NULL END @@ -25157,8 +25397,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) AS col2" at position 0 and "Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 48 AS col2, ( - 15 ) AS col2 +---- +-15 +-48 query I rowsort label-4788 SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - 7 AS col0 @@ -25431,8 +25674,12 @@ SELECT 40, NULLIF ( - COUNT ( * ), - 11 + + 47 ) - - + 42 AS col2 # Datafusion - Expected - -3172 # Datafusion - Expected - -3 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \* Int64\(38\) \+ Int64\(96\) AS col0" at position 0 and "Int64\(\-3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 86 * 38 + 96 col0, - 3 AS col0, MIN ( - CAST ( 6 AS INTEGER ) ) +---- +-3 +-3172 +-6 query I rowsort SELECT ALL - + ( - 84 ) + - COALESCE ( + 41, + 53 ) col1 @@ -25897,8 +26144,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 5 AS col2, - COUNT ( * ) + + 82 AS col2 +---- +-5 +81 query I rowsort SELECT 86 + 56 @@ -25908,8 +26158,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 col1, COUNT ( * ) + 18 AS col1 +---- +18 +19 query II rowsort label-4929 SELECT DISTINCT 12, + 80 * + 76 + - - COUNT ( * ) AS col1 @@ -25935,8 +26188,11 @@ SELECT DISTINCT - 38 * + + 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 73 col1, 14 AS col1 +---- +14 +73 query II rowsort label-4934 SELECT - 74 AS col1, - ( 1 ) + - + 60 * + + COUNT ( * ) * - 80 + 59 @@ -25985,8 +26241,11 @@ SELECT DISTINCT + SUM ( ALL - 53 ) * 46 * - 11 / + ( + - COUNT ( * ) ) 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 "Int64\(\-4\) AS col0" at position 0 and "count\(DISTINCT Int64\(79\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 4 AS col0, COUNT ( DISTINCT 79 ) AS col0 +---- +-4 +1 query II rowsort label-4943 SELECT CAST ( NULL AS INTEGER ), + 4 AS col2 @@ -26216,8 +26475,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \+ max\(DISTINCT \(\- Int64\(16\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + COALESCE ( - 95, - 23 ) * COUNT ( DISTINCT 37 ) + + 99 + 94 AS col2, - COALESCE ( + 27, + 21 / + COUNT ( * ) + MAX ( DISTINCT - + 16 ) ) AS col2 +---- +-27 +98 query I rowsort SELECT ALL - - 63 * + 61 @@ -28492,8 +28754,11 @@ SELECT + 11 / - + 38 * - COUNT ( * ) + NULLIF ( - 1, + 10 * - 78 ) * + 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 4400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) / \(\- Int64\(\-48\)\) AS col2" at position 0 and "Int64\(88\) \* Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 36 / - - 48 AS col2, 88 * 50 AS col2 +---- +0 +4400 query I rowsort label-5424 SELECT COUNT ( - + 59 ) * - 35 - 36 + 63 + + 31 - 93 @@ -28863,8 +29128,11 @@ SELECT DISTINCT + 51, - 15 - + 31 + - 58 + - - 40 / 46 * 12 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 2184 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "Int64\(\-42\) \* \(\- Int64\(52\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 60 col0, ( + - 42 ) * - + 52 AS col0 +---- +2184 +60 query I rowsort SELECT - + 88 * - + 91 AS col2 @@ -29168,8 +29436,11 @@ 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\(1\)\) AS count\(\*\)\), Int64\(32\) \* Int64\(40\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 34 AS col1, 41 + + + NULLIF ( - + COUNT ( * ), + + 32 * 40 ) AS col1 +---- +34 +40 query II rowsort SELECT DISTINCT 86 col0, - 19 @@ -29317,8 +29588,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(\-37\)\)\) \+ Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 AS col2, - COALESCE ( + NULLIF ( - 78, + 99 ), + COUNT ( * ) - - 37 ) + 89 AS col2 +---- +167 +85 query I rowsort label-5582 SELECT COUNT ( * ) * - - 12 @@ -29374,8 +29648,11 @@ SELECT DISTINCT 90 / - - 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(56\) \* Int64\(44\) THEN Int64\(\-46\) END\) \* \(\- Int64\(70\)\) AS col2" at position 0 and "CAST\(\(\- \(\- nullif\(Int64\(4\), CAST\(NULL AS Float64\)\)\)\) AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-4 +NULL query I rowsort label-5592 SELECT ALL + 15 * - + MAX ( DISTINCT - 52 ) * + 79 @@ -29558,14 +29835,20 @@ SELECT DISTINCT ( - 40 ) AS col1, - COUNT ( * ) - + - COUNT ( * ) + 81 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2664 # Datafusion - Expected - -1441 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \* Int64\(\-36\) AS col0" at position 0 and "Int64\(63\) \* Int64\(\-24\) \+ sum\(\(\- Int64\(\-71\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 74 * - 36 AS col0, 63 * - 24 + SUM ( + - ( + - 71 ) ) AS col0 +---- +-1441 +2664 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-26\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 19 + + COUNT ( * ) AS col0, - 26 * - COUNT ( * ) AS col0 +---- +20 +26 query I rowsort SELECT + 13 + - + 31 - - 90 * + 82 + + - 19 + 39 * 18 @@ -30136,8 +30419,11 @@ NULL # 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 "Int64\(3\) AS col1" at position 0 and "Int64\(59\) \+ Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 3 AS col1, 59 + - 18 AS col1 +---- +3 +41 query II rowsort label-5737 SELECT - + MIN ( + - 9 ) + 50 AS col1, + 31 * - COUNT ( * ) * + COUNT ( DISTINCT + 88 ) col0 @@ -30496,8 +30782,11 @@ SELECT COUNT ( * ) - - 9 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1137 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(53\) AS Int32\) \+ \(\- Int64\(\-84\)\) \+ Int64\(\-98\) \* nullif\(Int64\(13\), \(\- Int64\(81\)\) \* Int64\(76\) \- Int64\(86\) \* Int64\(\-19\) / Int64\(\-85\) / Int64\(50\)\) AS col0" at position 0 and "Int64\(94\) \+ Int64\(\-71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( 53 AS INTEGER ) + - - 84 + + - 98 * + NULLIF ( 13, - + 81 * 76 - 86 * - 19 / - 85 / + 50 ) AS col0, 94 + + - 71 AS col0 +---- +-1137 +23 query II rowsort SELECT - 27, NULLIF ( - 0, - 97 ) AS col0 @@ -30773,8 +31062,11 @@ SELECT ALL 23 * - ( + - 39 ) * + - 79 * + + 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3854 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* Int64\(94\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 41 * 94 AS col0, COUNT ( * ) col0 +---- +1 +3854 query I rowsort label-5860 SELECT - ( 29 ) + - MAX ( DISTINCT + 43 ) @@ -31067,8 +31359,11 @@ SELECT COUNT ( * ) * + 12 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -346860 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* Int64\(\-94\) \* Int64\(45\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 * + - 94 * + + 45 * - - COUNT ( * ) AS col1, COUNT ( * ) col1 +---- +-346860 +1 query I rowsort label-5916 SELECT MAX ( 87 ) + + 83 / COALESCE ( + 60, + 6 ) @@ -31228,8 +31523,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 - + 4 AS col1, - COUNT ( * ) AS col1 +---- +-1 +-3 query I rowsort SELECT DISTINCT + 87 * - - 64 @@ -31746,8 +32044,11 @@ SELECT ALL - 27, + 90 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "Int64\(\-95\) \+ Int64\(0\) / Int64\(\-78\) \* Int64\(10\) \+ Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 AS col2, - 95 + + ( + 0 ) / - 78 * + 10 + + 90 AS col2 +---- +-5 +86 query I rowsort label-6041 SELECT 81 * - + 22 * - CAST ( 12 AS INTEGER ) AS col2 @@ -32151,8 +32452,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -55671300 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-76\) WHEN Int64\(24\) THEN Int64\(71\) \+ Int64\(\-36\) \* Int64\(83\) WHEN CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\) THEN NULL END \- Int64\(\-97\) \* Int64\(\-43\) \+ \(\- Int64\(74\)\) AS col0" at position 0 and "Int64\(29\) \* Int64\(79\) \* Int64\(6\) \* \(\- Int64\(54\)\) \* \(\- \(\- nullif\(Int64\(75\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(18\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-55671300 +NULL query I rowsort label-6118 SELECT - - COALESCE ( + + 56, + ( - - 93 ) * + SUM ( DISTINCT - 43 ) + + COUNT ( * ) * - 25 ) @@ -32172,8 +32476,11 @@ SELECT ALL + + SUM ( + + 99 ) + - 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 122 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \+ Int64\(\-53\) AS col0" at position 0 and "Int64\(67\) \+ Int64\(94\) \+ Int64\(\-39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 83 + - 53 AS col0, + 67 + + + 94 + - 39 AS col0 +---- +122 +30 query I rowsort SELECT + - 92 - + 93 @@ -32416,8 +32723,11 @@ SELECT DISTINCT + 56, MIN ( - 76 ) / - - 9 + + 48 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 48 AS col1, 20 col1 +---- +20 +48 query II rowsort label-6168 SELECT + 10 * - 14 * - 36, 59 / + 7 AS col1 @@ -32881,8 +33191,11 @@ SELECT CAST ( - - 12 AS INTEGER ) 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 "Int64\(\-39\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 39 AS col1, + 53 AS col1 +---- +-39 +53 query I rowsort label-6257 SELECT + CASE 63 WHEN - 60 THEN 30 ELSE 71 END * - COUNT ( * ) @@ -32951,8 +33264,12 @@ 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\(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\. +query III valuesort SELECT 29 AS col1, MAX ( DISTINCT 96 ) + - 78 AS col2, - COUNT ( * ) + + - 20 + COUNT ( * ) + 40 * 22 + + - 42 AS col1 +---- +18 +29 +818 query I rowsort SELECT 94 - - 49 @@ -33090,8 +33407,11 @@ SELECT ALL ( 92 ) + 38 * - 42 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT 81 AS col1, 53 AS col1 +---- +53 +81 query I rowsort label-6296 SELECT ALL COUNT ( * ) * 30 * ( - - 31 ) @@ -33116,8 +33436,11 @@ SELECT ( + 7 ) + - 7 AS col2 # 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 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 II valuesort SELECT ALL 41 AS col2, 73 / 90 AS col2 +---- +0 +41 query I rowsort label-6301 SELECT COUNT ( * ) + + - ( + + 86 ) * - 83 + - - 2 @@ -33132,8 +33455,11 @@ SELECT 64 * - MAX ( 72 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col2" at position 0 and "Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 AS col2, 17 AS col2 +---- +17 +24 query I rowsort label-6304 SELECT ALL + 30 * COUNT ( * ) AS col2 @@ -33205,8 +33531,11 @@ SELECT ALL - 45 / 56 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col0" at position 0 and "Int64\(94\) / Int64\(58\) \+ Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 39 AS col0, 94 / + + 58 + + 27 AS col0 +---- +-39 +28 query I rowsort label-6318 SELECT + COUNT ( * ) * + + 91 @@ -33871,8 +34200,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) + - 23 AS col0, 93 AS col0 +---- +-24 +93 query I rowsort SELECT ALL + 38 * - ( - 29 ) - - + 72 + + - 44 * - 75 @@ -33919,8 +34251,11 @@ SELECT - - 22 * - ( - + 96 ) + + 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \- Int64\(24\) AS col0" at position 0 and "Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 7 - + 24 AS col0, - 45 AS col0 +---- +-31 +-45 query I rowsort SELECT - 25 + 52 @@ -34023,8 +34358,11 @@ SELECT DISTINCT 34 * 86 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, 34 AS col1 +---- +1 +34 query I rowsort label-6474 SELECT + + NULLIF ( - 72, - 36 + - CAST ( NULL AS INTEGER ) + + + 18 + 15 + + 11 * CAST ( - CASE - 90 WHEN + 69 * + COUNT ( * ) THEN + 87 + 69 ELSE NULL END AS INTEGER ) * + - 29 ) + + + 7 * 89 / 63 + + + 4 + 97 AS col0 @@ -34107,8 +34445,11 @@ SELECT - 19 - 19 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "coalesce\(Int64\(\-54\), \(\- Int64\(\-81\)\), Int64\(30\)\) \* Int64\(0\) \* \(\- Int64\(\-46\)\) \+ \(\- Int64\(88\)\) \+ Int64\(95\) \+ Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 25 * CAST ( NULL AS INTEGER ) AS col0, + COALESCE ( - 54, ( - ( - 81 ) ), 30 ) * + 0 * - - 46 + - + 88 + + 95 + + + 70 AS col0 +---- +77 +NULL query I rowsort label-6490 SELECT ALL + 62 / + 66 + - MIN ( DISTINCT 99 ) @@ -34229,8 +34570,11 @@ 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\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(31\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( - + 34 ) AS col2, - COUNT ( * ) + - + 31 col2 +---- +-32 +-34 query II rowsort label-6513 SELECT 90 + 39 + 63 * - COUNT ( ALL 89 ), 79 AS col1 @@ -34479,8 +34823,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 0 and "Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 36 * - NULLIF ( + ( - 1 ), - 31 + - COUNT ( * ) ) AS col0, + 19 AS col0 +---- +19 +36 query I rowsort SELECT + 6 - 62 @@ -34526,8 +34873,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -152 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) / \(\- Int64\(\-28\)\) \* Int64\(\-94\) AS col1" at position 0 and "Int64\(\-24\) \- coalesce\(Int64\(92\), Int64\(\-4\) \* \(\- coalesce\(Int64\(80\), \(\- min\(Int64\(\-1\)\)\)\)\)\) \+ Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 52 / ( - - 28 ) * - 94 AS col1, - 24 - COALESCE ( 92, - 4 * - COALESCE ( 80, - MIN ( ALL - 1 ) ) ) + - 36 AS col1 +---- +-152 +94 query I rowsort label-6570 SELECT + 58 * + 32 + COUNT ( * ) AS col2 @@ -34726,8 +35076,11 @@ SELECT DISTINCT 4 / + - COUNT ( * ) * COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2280 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* Int64\(57\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 40 * 57 col1, + CAST ( NULL AS INTEGER ) col1 +---- +2280 +NULL query I rowsort SELECT + 50 * - NULLIF ( + - 60, + 41 ) AS col1 @@ -34813,8 +35166,11 @@ SELECT DISTINCT 12 * + 84 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 189924 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col0" at position 0 and "Int64\(49\) \* Int64\(68\) \* coalesce\(Int64\(57\), Int64\(65\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 24 AS col0, 49 * + + 68 * ( + COALESCE ( 57, 65 ) ) AS col0 +---- +189924 +24 query I rowsort label-6624 SELECT 92 + NULLIF ( - 76, + - 89 * COUNT ( * ) / 84 + 96 ) col0 @@ -34977,8 +35333,11 @@ SELECT 7 * COALESCE ( - + COUNT ( * ), + ( - - 62 ) * + + 36, + CASE + 11 WHEN - # Datafusion - Datafusion expected results: # Datafusion - Expected - 128 # Datafusion - Expected - 125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \+ Int64\(87\) AS col1" at position 0 and "Int64\(12\) \+ Int64\(58\) \- Int64\(\-55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 41 + + 87 AS col1, 12 + + + 58 - - 55 AS col1 +---- +125 +128 query I rowsort SELECT 78 + - 49 AS col0 @@ -35091,8 +35450,11 @@ SELECT ALL - - ( + - 91 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- sum\(DISTINCT Int64\(\-58\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - SUM ( DISTINCT - 58 ) AS col0, + COUNT ( * ) AS col0 +---- +-58 +1 query I rowsort SELECT ALL - 7 * + 28 * + - 68 + - 0 - + 25 @@ -35235,8 +35597,11 @@ SELECT + 34 - - 80 * + 36 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col1" at position 0 and "\(\- Int64\(82\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 col1, ( - + 82 ) col1 +---- +-55 +-82 query I rowsort label-6705 SELECT ALL COUNT ( + + 66 ) AS col1 @@ -35431,8 +35796,11 @@ 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\(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\. +query II valuesort 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 +---- +48 +NULL query I rowsort label-6743 SELECT ALL 5 * ( - + 26 ) / 61 @@ -35698,8 +36066,11 @@ SELECT ALL - 33, 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2280 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(76\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-79\) \* Int64\(62\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 30 * ( 76 ) AS col1, CAST ( NULL AS INTEGER ) * + - 79 * + 62 * + - COUNT ( * ) AS col1 +---- +2280 +NULL query I rowsort label-6794 SELECT ALL - COUNT ( DISTINCT - 80 ) @@ -35825,8 +36196,11 @@ SELECT - 52 * + + 97 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 594 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-50\)\) \+ Int64\(17\) \* \(\- Int64\(\-32\)\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 50 + 17 * - - 32 col1, 21 AS col1 +---- +21 +594 query I rowsort label-6818 SELECT ALL - COUNT ( DISTINCT - + 98 ) AS col2 @@ -36070,8 +36444,11 @@ SELECT + NULLIF ( 41, + - 52 * 52 * COUNT ( * ) * + + 7 * - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / min\(DISTINCT CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) / MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2, 24 AS col2 +---- +24 +NULL query I rowsort SELECT - 12 * + 76 @@ -36504,8 +36881,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 2 AS col2, + 81 + - - ( COUNT ( * ) ) AS col2 +---- +2 +82 query I rowsort label-6952 SELECT + SUM ( ALL + 30 ) * - 79 AS col2 @@ -37288,8 +37668,11 @@ SELECT 32 * 95 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 297792 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* Int64\(\-66\) \* Int64\(\-96\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 47 * - 66 * - 96 AS col2, 75 AS col2 +---- +297792 +75 query II rowsort label-7102 SELECT 7, 67 / + 63 AS col2 @@ -38684,8 +39067,11 @@ SELECT ALL - + COUNT ( DISTINCT - ( + - 96 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4214 # Datafusion - Expected - 4194 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* Int64\(50\) \+ Int64\(\-64\) AS col2" at position 0 and "Int64\(43\) \* Int64\(98\) \+ \(\- CAST\(Int64\(20\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 83 * + 50 + - 64 AS col2, + 43 * + 98 + + + ( + - CAST ( + 20 AS INTEGER ) ) AS col2 +---- +-4214 +4194 query I rowsort SELECT ALL + 7 * + + 64 @@ -38695,8 +39081,11 @@ SELECT ALL + 7 * + + 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "\(\- CAST\(avg\(DISTINCT CAST\(Int64\(92\) AS Int32\)\) AS Int32\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- Int64\(93\)\) \+ Int64\(99\) \+ count\(Int64\(1\)\) AS count\(\*\) / Int64\(83\) \* \(\- Int64\(15\)\) \* Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 58 AS col0, - CAST ( AVG ( DISTINCT + CAST ( + + 92 AS INTEGER ) ) AS INTEGER ) * - COUNT ( * ) / - + 93 + 99 + + COUNT ( * ) / 83 * - ( 15 ) * 77 AS col0 +---- +58 +99 query I rowsort label-7371 SELECT 14 + SUM ( 58 ) AS col0 @@ -38996,8 +39385,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + 8 / 87 AS col0, COUNT ( * ) * + COUNT ( * ) * + COUNT ( * ) / + 85 + + 96 AS col0 +---- +0 +96 query I rowsort SELECT - 35 + - 18 @@ -39190,8 +39582,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, 64 col0 +---- +-1 +64 query I rowsort label-7463 SELECT + + 74 / + 61 + - 96 AS col0 @@ -39474,8 +39869,11 @@ SELECT + COUNT ( DISTINCT - 88 ) - - + 55 + - + 69 * 90 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col1" at position 0 and "Int64\(85\) \* Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 10 AS col1, 85 * + + 1 AS col1 +---- +10 +85 query I rowsort SELECT ALL ( - - 9 ) @@ -39511,8 +39909,11 @@ SELECT ALL - - 92 + - NULLIF ( + 6, - 85 ) + - 12 / - - 57 + + + COALESCE ( - + # 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\) AS col2" at position 0 and "Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 AS col2, - 89 AS col2 +---- +-89 +68 query I rowsort label-7525 SELECT - - 22 + + + NULLIF ( - + 48, - - COUNT ( * ) ) + + - MAX ( - 69 ) AS col1 @@ -39600,14 +40001,21 @@ SELECT + COUNT ( + 66 ) + + 23 AS col0 # Datafusion - Expected - 19 # Datafusion - Expected - -3341 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \* Int64\(80\) \+ Int64\(99\) \* count\(Int64\(\-58\)\) AS col2" at position 1 and "\(\- Int64\(\-10\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 19 AS col0, - 43 * ( + 80 ) + 99 * + COUNT ( ALL - 58 ) AS col2, - - 10 AS col2 +---- +-3341 +10 +19 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -7905 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE WHEN NOT Int64\(12\) IS NOT NULL THEN Int64\(13\) END \* avg\(Int64\(59\)\) AS col0" at position 0 and "Int64\(85\) \* nullif\(min\(DISTINCT Int64\(\-93\)\), \(\- \(\- sum\(Int64\(\-20\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + CASE WHEN NOT + 12 IS NOT NULL THEN + 13 END * AVG ( ALL 59 ) AS col0, 85 * + NULLIF ( + MIN ( DISTINCT - 93 ), - - SUM ( ALL - 20 ) ) AS col0 +---- +-7905 +NULL query II rowsort label-7543 SELECT - COUNT ( DISTINCT + 60 ) * - COUNT ( * ) * 73, 88 + - 67 AS col0 @@ -39649,8 +40057,11 @@ SELECT ALL 60 * 65 * - + 61 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col2" at position 0 and "Int64\(25\) \* Int64\(\-5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 64 AS col2, 25 * - 5 AS col2 +---- +-125 +64 query I rowsort SELECT DISTINCT + ( + + 84 ) col2 @@ -39670,8 +40081,11 @@ SELECT - 26 + ( 1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(69\)\) AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 69 AS col2, + 65 AS col2 +---- +-69 +65 query I rowsort label-7555 SELECT - 49 * + SUM ( - 99 ) + COUNT ( * ) @@ -40464,8 +40878,11 @@ SELECT NULLIF ( SUM ( DISTINCT 61 ), 94 * - + 82 ) * - 99 * - + 12 * 1 - + 66 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col2" at position 0 and "Int64\(62\) \+ \(\- Int64\(\-52\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 AS col2, 62 + - - 52 AS col2 +---- +114 +18 query I rowsort SELECT DISTINCT - 74 + 35 - - + 79 AS col2 @@ -40734,8 +41151,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -3906 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-98\) WHEN sum\(Int64\(92\)\) \* CAST\(CAST\(Int64\(\-25\) AS Int32\) AS Int32\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-36\) THEN NULL END \+ Int64\(45\) \* Int64\(\-79\) AS col0" at position 0 and "Int64\(\-93\) \* Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-3906 +NULL query I rowsort SELECT ALL + 85 + - 10 @@ -40781,8 +41201,12 @@ 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\(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\. +query III valuesort SELECT ALL SUM ( DISTINCT + 33 ) / - - 52 * + - COUNT ( * ) AS col0, 51 * - + 72 * + + COUNT ( * ), - 7 - COUNT ( * ) * - 92 AS col0 +---- +-3672 +0 +85 query I rowsort label-7765 SELECT ALL 90 * 58 * + 41 * - COUNT ( * ) - + 12 AS col2 @@ -40850,8 +41274,11 @@ SELECT + 63 + - 5 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 850 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col0" at position 0 and "min\(Int64\(\-34\)\) \* Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 30 ) AS col0, + MIN ( - 34 ) * - 25 col0 +---- +30 +850 query I rowsort SELECT + 10 - 75 @@ -41021,8 +41448,11 @@ 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\(1\)\) AS count\(\*\)\) / Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 AS col0, - COUNT ( * ) / 29 AS col0 +---- +0 +60 query I rowsort label-7811 SELECT ALL - COUNT ( * ) * - 27 @@ -41707,8 +42137,11 @@ SELECT ALL ( 33 ) * - 49 + - 20 + + 56 / 86 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(44\) \+ Int64\(\-52\) \- \(\- Int64\(\-28\)\) \+ Int64\(65\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) * 44 + + - 52 - - - 28 + + 65 AS col1, + CAST ( NULL AS INTEGER ) AS col1 +---- +29 +NULL query I rowsort label-7941 SELECT DISTINCT - - CAST ( NULL AS INTEGER ) col2 @@ -41749,8 +42182,11 @@ SELECT + 41 / 27 * 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4988 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* Int64\(86\) AS col0" at position 0 and "Int64\(3\) / CASE Int64\(35\) WHEN \(\- Int64\(\-70\)\) THEN Int64\(\-18\) WHEN Int64\(19\) \+ Int64\(17\) THEN NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 * 86 AS col0, 3 / CASE 35 WHEN - - 70 THEN - 18 WHEN + 19 + 17 THEN NULL END AS col0 +---- +4988 +NULL query I rowsort SELECT ALL NULLIF ( - - 2, + + 23 ) AS col2 @@ -42305,8 +42741,11 @@ SELECT 28 - + ( + SUM ( ALL 44 ) ) * - - 39 - - - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 15 * + COUNT ( * ) AS col1, - 26 AS col1 +---- +-26 +15 query I rowsort label-8055 SELECT MIN ( DISTINCT - 72 ) @@ -42354,8 +42793,11 @@ 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\(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\. +query II valuesort SELECT 92 * + + 59 + + 62 + 26 * COUNT ( * ) + - 7 AS col2, 13 * + 77 AS col2 +---- +1001 +5509 query I rowsort SELECT NULLIF ( + 92, + ( - 55 ) * - + 98 + - 54 + + 6 ) * 77 @@ -42777,8 +43219,11 @@ SELECT + 53 + 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7538 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \- Int64\(58\) \+ Int64\(77\) \* Int64\(98\) \+ Int64\(73\) AS col0" at position 0 and "Int64\(23\) \+ sum\(DISTINCT \(\- Int64\(89\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 23 - + 58 + + 77 * 98 + + 73 AS col0, + 23 + SUM ( DISTINCT - + 89 ) AS col0 +---- +-66 +7538 query I rowsort SELECT + ( + 37 ) + - - 3 + + + ( + 55 ) + 39 + - 50 * - + 6 + - 63 - - 54 + 71 * + + 93 * + 4 col1 @@ -42890,8 +43335,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \+ nullif\(\(\- CAST\(NULL AS Int32\)\), max\(\(\- Int64\(\-1\)\)\) \* Int64\(68\)\) AS col1" at position 0 and "Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 + + NULLIF ( - + CAST ( NULL AS INTEGER ), MAX ( ALL - - 1 ) * 68 ) AS col1, + 82 AS col1 +---- +82 +NULL query I rowsort label-8167 SELECT ALL 38 - + - 8 * COUNT ( * ) AS col0 @@ -43570,8 +44018,11 @@ SELECT + 40 * + COUNT ( * ) + + 93 + - 67 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 1116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* Int64\(1\) AS col1" at position 0 and "Int64\(\-93\) \* Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 * + ( 1 ) AS col1, - 93 * - 12 AS col1 +---- +1116 +99 query I rowsort label-8297 SELECT 54 * - 62 + CAST ( + 93 AS INTEGER ) * - 19 AS col1 @@ -43616,8 +44067,11 @@ SELECT 35 / + CAST ( - MIN ( ( - 10 ) ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 179359 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- coalesce\(Int64\(73\), count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(83\)\) \+ Int64\(22\) \* Int64\(32\) \* \(\- CAST\(Int64\(22\) AS Int32\)\)\)\) \* Int64\(\-39\) \* Int64\(63\) \+ Int64\(63\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 65 * COUNT ( * ) + - COALESCE ( + 73, + COUNT ( * ) + - + 83 + + 22 * + 32 * + - CAST ( 22 AS INTEGER ) ) * - 39 * 63 + + 63 AS col1, - COUNT ( * ) * + 69 col1 +---- +-69 +179359 query I rowsort label-8306 SELECT COUNT ( * ) + - 33 / + 85 AS col2 @@ -43748,8 +44202,12 @@ SELECT + 24, + 26 + + + COUNT ( * ) * + 11 AS col1 # Datafusion - Expected - -50 # Datafusion - Expected - 67 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(67\), Int64\(90\)\) AS col2" at position 1 and "Int64\(15\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 50 AS col1, COALESCE ( 67, 90 ) AS col2, + 15 AS col2 +---- +-50 +15 +67 query II rowsort label-8331 SELECT DISTINCT - 53 AS col1, - 52 / - 90 + - CAST ( NULL AS INTEGER ) @@ -43770,8 +44228,11 @@ SELECT ALL - - NULLIF ( + 16, + 21 ) * - 28 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 621 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) \* Int64\(\-9\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 69 * - 9 AS col1, 20 AS col1 +---- +20 +621 query I rowsort SELECT - 80 + - 96 @@ -44149,8 +44610,11 @@ SELECT 9 * + 61 AS col2, COUNT ( * ) + + + 87 * - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) \+ Int64\(\-32\) AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 63 + - 32 AS col2, 20 col2 +---- +-95 +20 query I rowsort SELECT 25 - 26 - + 52 + + ( + - 36 ) AS col0 @@ -45448,8 +45912,11 @@ SELECT - CAST ( - - 49 AS INTEGER ) AS col0, + 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 308 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* Int64\(44\) AS col1" at position 0 and "Int64\(\-64\) / Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 7 * 44 col1, - 64 / + 33 AS col1 +---- +-1 +308 query I rowsort label-8658 SELECT ALL ( + + 58 ) * + CAST ( - - 33 AS INTEGER ) * - 98 @@ -45530,8 +45997,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 87 AS col1, COUNT ( * ) * - 70 AS col1 +---- +-70 +-87 query I rowsort SELECT ( - + 37 ) + 73 + - ( 26 ) @@ -45715,8 +46185,11 @@ SELECT ALL 33 - - 63 + - 46 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 183 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ Int64\(\-87\) / Int64\(\-94\) \+ Int64\(60\) \- Int64\(\-84\) AS col0" at position 0 and "Int64\(\-37\) \+ \(\- count\(Int64\(61\)\)\) \* Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 + - 87 / + ( - 94 ) + + 60 - - 84 AS col0, - 37 + - COUNT ( 61 ) * 23 AS col0 +---- +-60 +183 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -46335,8 +46808,11 @@ SELECT COALESCE ( - - SUM ( 55 ), - COUNT ( * ) + COUNT ( * ) * - 87 ) * - 51 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "Int64\(\-36\) / Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 74 AS col1, - 36 / + 15 AS col1 +---- +-2 +74 query I rowsort label-8828 SELECT - COUNT ( * ) - 18 @@ -47231,8 +47707,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(\-42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( + 24 ) / - 86 * - + 28 AS col1, + COUNT ( * ) / + - 42 AS col1 +---- +0 +0 query I rowsort SELECT ALL - 65 * 80 + - 63 + + 8 + + 35 @@ -47273,8 +47752,11 @@ SELECT - - 25 * NULLIF ( + 73, 76 ) - - - 56 + + 78 * - SUM ( + 1 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 3613 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-42\)\) AS col2" at position 0 and "Int64\(36\) \* Int64\(96\) \+ Int64\(70\) \+ Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 42 AS col2, 36 * + + 96 + 70 + + 87 col2 +---- +3613 +42 query I rowsort SELECT - + ( 15 ) + - 12 @@ -47310,8 +47792,11 @@ SELECT - 97 * + CAST ( + + 82 AS INTEGER ) * 0 + - 62 + 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-88\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) * - 88 AS col0, + 58 col0 +---- +58 +NULL query I rowsort label-9016 SELECT COUNT ( * ) + 95 AS col2 @@ -47976,8 +48461,11 @@ SELECT ALL COALESCE ( MAX ( DISTINCT - + 92 ), + COUNT ( * ) ) + 40 * - 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "CAST\(NULL AS Float64\) \- Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 18 AS col0, CAST ( NULL AS FLOAT8 ) - 46 AS col0 +---- +18 +NULL query I rowsort SELECT ALL + 50 + + 16 @@ -48092,8 +48580,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 AS col1, COUNT ( * ) * 11 AS col1 +---- +11 +75 query I rowsort SELECT ALL 78 + + 77 AS col1 @@ -48119,8 +48610,11 @@ SELECT + 83 AS col0, - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 46 AS col2, 31 AS col2 +---- +31 +46 query I rowsort label-9170 SELECT - ( - - 95 ) / 8 AS col1 @@ -48149,8 +48643,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 21 + 36 * - + 84 AS col2, + 1 * + MIN ( DISTINCT + + 86 ) * - - COUNT ( * ) col2 +---- +-3003 +86 query I rowsort label-9175 SELECT DISTINCT CASE + - 59 WHEN + 96 * + + NULLIF ( - + COALESCE ( - COUNT ( * ), + + 79, 11 - 34 ), CAST ( NULL AS FLOAT8 ) + 20 * - ( - 45 ) ) THEN + + 11 ELSE NULL END * + 11 - COUNT ( * ) @@ -48348,8 +48845,11 @@ SELECT + 19 * - + COUNT ( DISTINCT + 56 ) * - 13 # 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 col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - + ( 0 ) ) col2, + 56 AS col2 +---- +0 +56 query II rowsort label-9213 SELECT ALL + COUNT ( * ), ( - - 16 ) * + 10 AS col1 @@ -48444,8 +48944,11 @@ SELECT SUM ( DISTINCT - + 82 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 AS col1, + 22 AS col1 +---- +22 +85 query II rowsort label-9231 SELECT COUNT ( * ) AS col1, - 19 * - + 29 @@ -48644,8 +49147,11 @@ SELECT DISTINCT 95 - - 46 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 136 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "Int64\(89\) \+ Int64\(46\) / \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 AS col0, 89 + + 46 / - - COUNT ( * ) + + COUNT ( * ) AS col0 +---- +136 +77 query I rowsort SELECT 50 + + 98 * - 75 * - 72 @@ -49131,8 +49637,11 @@ SELECT - 74 / + 62, - 6 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3915 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) \* Int64\(45\) AS col2" at position 0 and "Int64\(6\) \+ Int64\(\-61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 87 * + 45 AS col2, 6 + - 61 AS col2 +---- +-3915 +-55 query I rowsort label-9360 SELECT + - MAX ( + 13 ) @@ -49142,8 +49651,11 @@ SELECT + - MAX ( + 13 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 2945 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(42\)\) \+ Int64\(77\) AS col0" at position 0 and "sum\(\(\- Int64\(\-95\)\)\) \* Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 42 + 77 AS col0, SUM ( - - 95 ) * + 31 AS col0 +---- +2945 +35 query I rowsort label-9362 SELECT + - COUNT ( * ) * + 89 * + - CAST ( - - 95 AS INTEGER ) + + 59 @@ -49598,8 +50110,11 @@ SELECT + 66 * + 86 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 814 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col1" at position 0 and "Int64\(\-74\) \* Int64\(\-11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 47 AS col1, - 74 * - 11 AS col1 +---- +47 +814 query I rowsort label-9449 SELECT + CASE + ( + + COUNT ( * ) ) WHEN - - 74 * - ( - COUNT ( * ) ) + - CAST ( + 37 AS INTEGER ) * 66 THEN + COUNT ( * ) + + + 31 WHEN - 41 THEN NULL WHEN + 62 + - 29 + CAST ( NULL AS FLOAT8 ) / 35 THEN NULL END * + 56 + CASE + + 13 WHEN + 6 THEN NULL ELSE + - 8 END AS col2 @@ -49943,8 +50458,11 @@ SELECT DISTINCT - COALESCE ( - 22, 26, - 55 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1056 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \* Int64\(\-88\) AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 12 * - 88 AS col1, 17 col1 +---- +1056 +17 query I rowsort label-9515 SELECT COUNT ( * ) + 47 + - 20 + 94 + - ( + COALESCE ( + 3, - 71 ) ) + - COUNT ( * ) / NULLIF ( + 43, - - COUNT ( * ) * - 14 ) @@ -50753,8 +51271,11 @@ SELECT ALL + 62 + - 97 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(33\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 33 - + COUNT ( * ) AS col1 +---- +1 +32 query I rowsort label-9668 SELECT CAST ( NULL AS INTEGER ) * + - 19 * + - 17 + - + 35 + - 66 @@ -51002,8 +51523,11 @@ SELECT ALL 1 * - 24 * - 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col2" at position 0 and "Int64\(94\) / Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 92 AS col2, + 94 / + 35 AS col2 +---- +2 +92 query I rowsort label-9715 SELECT + MIN ( ALL 92 ) * - ( - + ( - 13 ) ) * + 75 @@ -51051,8 +51575,11 @@ SELECT ALL 66 * - MIN ( + 84 ) + + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 15092 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col1" at position 0 and "Int64\(14\) \* \(\- Int64\(\-22\)\) \* Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 66 AS col1, 14 * - - 22 * + 49 AS col1 +---- +-66 +15092 query I rowsort label-9724 SELECT + SUM ( - 23 ) @@ -51124,8 +51651,11 @@ SELECT DISTINCT + 43 * - 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 33 col0, 88 AS col0 +---- +33 +88 query I rowsort SELECT - 50 + + 67 @@ -51454,8 +51984,12 @@ 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\(1\)\) AS count\(\*\) \* Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT MIN ( DISTINCT 56 ) AS col1, COUNT ( * ) * + 87 col1, - COUNT ( - - 64 ) +---- +-1 +56 +87 query I rowsort SELECT DISTINCT + 69 + 5 * + 2 @@ -51695,8 +52229,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 7954 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \* Int64\(\-82\) AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 97 * ( - 82 ) AS col2, 40 AS col2 +---- +40 +7954 query II rowsort SELECT + 7, + 90 AS col1 @@ -51743,8 +52280,11 @@ SELECT ALL - 8, 97 col0 # 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\(74\) AS col1" at position 0 and "Int64\(\-53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 74 AS col1, - 53 AS col1 +---- +-53 +74 query I rowsort label-9856 SELECT DISTINCT - 65 * CASE - - 57 WHEN - 45 + + 25 + + 47 THEN - 39 * - 57 * + + ( - - 42 ) + - 42 * - - 13 WHEN + + 0 * + CAST ( NULL AS FLOAT8 ) THEN NULL END @@ -51786,8 +52326,12 @@ SELECT 62 + 15 # Datafusion - Expected - 28 # Datafusion - Expected - 26 # Datafusion - Expected - 4895 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col1" at position 0 and "Int64\(\-54\) \* Int64\(\-91\) \+ \(\- Int64\(19\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 28 AS col1, + 6 + + COUNT ( * ) + + 19 AS col2, + - 54 * - 91 + - + 19 AS col1 +---- +26 +28 +4895 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] diff --git a/data/sqlite/random/expr/slt_good_81.slt b/data/sqlite/random/expr/slt_good_81.slt index 572efdf..7fbbddf 100644 --- a/data/sqlite/random/expr/slt_good_81.slt +++ b/data/sqlite/random/expr/slt_good_81.slt @@ -312,8 +312,11 @@ SELECT 75 * - + COUNT ( * ) + - - 76 / + ( - + 84 ) + 8 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) / Int64\(\-55\) AS col2" at position 0 and "Int64\(\-56\) \* \(\- CASE Int64\(59\) WHEN Int64\(71\) / \(\- sum\(DISTINCT Int64\(\-15\)\)\) \+ \(\- Int64\(\-39\)\) THEN \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) / count\(Int64\(1\)\) AS count\(\*\) \- avg\(DISTINCT \(\- Int64\(\-58\)\)\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +0 +NULL query I rowsort SELECT ALL - ( + - 9 ) AS col0 @@ -1390,8 +1393,11 @@ SELECT - COUNT ( * ) * - 33 col2 # 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 "Int64\(\-9\) / Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 AS col2, - 9 / + 16 AS col2 +---- +0 +14 query I rowsort label-265 SELECT ALL COUNT ( * ) * + 70 @@ -1411,8 +1417,11 @@ SELECT - 93 / 37 * + 81 * - 0 + + + 91 # 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 "Int64\(\-75\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 75 AS col2, 35 AS col2 +---- +-75 +35 query I rowsort SELECT + NULLIF ( + 72, ( - 21 ) ) @@ -1578,8 +1587,11 @@ SELECT - COUNT ( * ) - 46 * + - ( - + 18 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, + COUNT ( * ) AS col1 +---- +1 +1 query I rowsort SELECT - - 19 + 54 AS col0 @@ -1650,8 +1662,11 @@ SELECT - 67 + COALESCE ( - 97, 65 * - 28 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 3026 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "\(\- CAST\(Int64\(\-34\) AS Int32\)\) \* \(\- Int64\(\-89\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + + 32 ) col2, - CAST ( - 34 AS INTEGER ) * + + ( - - 89 ) AS col2 +---- +3026 +32 query I rowsort SELECT - 43 + + + 54 AS col1 @@ -1691,8 +1706,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) / - 35 + - MIN ( - 31 ) + + + 60 AS col2, MAX ( DISTINCT 97 ) * - ( 5 ) AS col2 +---- +-485 +91 query I rowsort label-323 SELECT DISTINCT - NULLIF ( COUNT ( * ), CAST ( - 7 AS INTEGER ) + - 13 + - 58 ) / - - 40 + 45 / - 46 AS col1 @@ -2129,8 +2147,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + + 66 + - - COUNT ( * ) AS col0, NULLIF ( 87, - 23 ) AS col0 +---- +67 +87 query I rowsort label-405 SELECT + - 5 - - COUNT ( * ) AS col0 @@ -2297,8 +2318,11 @@ 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\(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\. +query II valuesort SELECT ALL ( - + 13 ) * - 40 col1, COALESCE ( - - 29, - 80 * - - 90 * + + CASE 75 WHEN + 64 THEN + ( 64 ) WHEN - 84 * ( COUNT ( * ) ) THEN - 36 END * 9 ) + - ( ( - ( - 24 ) ) ) col1 +---- +5 +520 query I rowsort SELECT ALL - - 93 * + 3 AS col0 @@ -2432,8 +2456,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-53\) \+ Int64\(\-63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, + ( ( - 53 ) ) + ( - 63 ) AS col1 +---- +-116 +NULL query I rowsort label-464 SELECT + COUNT ( * ) / + 17 AS col1 @@ -2877,8 +2904,12 @@ SELECT + ( - + NULLIF ( - 17, - 97 * - 67 / - + 22 + - + COALESCE ( 6, + 22 ) + # Datafusion - Expected - -73 # Datafusion - Expected - -17 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-17\) \+ \(\- count\(CAST\(Int64\(\-57\) AS Int32\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 73 * - COUNT ( * ) AS col0, - 17 + + - COUNT ( ALL + CAST ( - 57 AS INTEGER ) ) + COUNT ( * ) AS col0, + 80 +---- +-17 +-73 +80 query I rowsort label-549 SELECT CASE + - 89 WHEN - CAST ( NULL AS INTEGER ) THEN + 79 END @@ -2894,8 +2925,11 @@ SELECT - 78 - COUNT ( * ) AS col1, + 37 * - 58 * - - 30 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE WHEN NOT NULL IS NULL THEN Int64\(3\) ELSE NULL 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 II valuesort SELECT + CASE WHEN NOT ( NULL IS NULL ) THEN + + 3 ELSE NULL END AS col2, - 25 AS col2 +---- +-25 +NULL query I rowsort label-552 SELECT + MIN ( DISTINCT - - 25 ) * - COUNT ( * ) * + + 2 - + + 21 @@ -3489,8 +3523,11 @@ SELECT - NULLIF ( + 14, - SUM ( ALL 74 ) ) + + - 82, 35 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(32\)\) / max\(CAST\(NULL AS Float64\)\) \- nullif\(\(\- CAST\(\(\- Int64\(98\)\) AS Int32\)\), Int64\(8\) / \(\- CAST\(NULL AS Float64\)\)\) \+ \(\- Int64\(\-59\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +-1 +NULL query I rowsort label-666 SELECT ALL + 67 + COUNT ( * ) @@ -3525,8 +3562,11 @@ SELECT + 49 + - 27 * 30 # 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\(31\) \+ \(\- Int64\(13\)\) 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 II valuesort SELECT DISTINCT + + 31 + - + 13 AS col0, COUNT ( 7 ) AS col0 +---- +1 +18 query II rowsort label-673 SELECT DISTINCT - 4 * + 66 * 67, 11 + - 40 + 54 / - 97 - - 15 * - 26 * 16 + 97 AS col2 @@ -3688,8 +3728,11 @@ SELECT 79 + + - 90 * + 75 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 139 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \+ Int64\(50\) \+ Int64\(0\) \* Int64\(\-11\) AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 + 50 + + - 0 * - 11 AS col1, + 35 AS col1 +---- +139 +35 query I rowsort label-703 SELECT 24 - + + 74 * + NULLIF ( + - 1, - COUNT ( ALL + 84 ) ) + + + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 @@ -3911,8 +3954,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 34 col1, 68 * + 87 * - MIN ( + 43 ) + - + COUNT ( * ) AS col1 +---- +-254389 +34 query I rowsort label-746 SELECT - 19 / - 58 * 77 AS col2 @@ -4013,8 +4059,11 @@ 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\(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\. +query II valuesort SELECT - NULLIF ( + COUNT ( * ), + + ( - COUNT ( * ) ) ) AS col1, ( 21 ) * + 56 + ( 38 ) * - - COALESCE ( - 95, 18, + 60 ) * + 51 AS col1 +---- +-1 +-182934 query II rowsort SELECT ALL 6 AS col2, + 35 * + - 28 @@ -4041,8 +4090,11 @@ SELECT - COUNT ( * ) / NULLIF ( - + 1, 1 / + - 18 * - + 66 + 84 ) * + - ( 79 ) # 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 "\(\- max\(CASE Int64\(51\) WHEN \(\- Int64\(\-65\)\) THEN Int64\(73\) ELSE NULL END\)\) \- Int64\(68\) AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( + CASE 51 WHEN - - 65 THEN 73 ELSE NULL END ) - 68 AS col2, 58 AS col2 +---- +58 +NULL query II rowsort SELECT ALL 72 col0, 96 AS col2 @@ -4217,8 +4269,11 @@ SELECT ALL + 40 + + CAST ( + COUNT ( * ) AS INTEGER ) + ( - - 14 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-78\) AS Int32\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( + + ( - 78 ) AS INTEGER ) AS col1, + CAST ( NULL AS INTEGER ) AS col1 +---- +-78 +NULL query I rowsort SELECT ALL 17 + 98 @@ -4233,8 +4288,11 @@ SELECT - ( - 38 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 926 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \- Int64\(\-95\) \- Int64\(\-8\) \+ Int64\(\-21\) \* Int64\(\-37\) AS col2" at position 0 and "coalesce\(Int64\(60\), Int64\(\-68\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 46 - - 95 - + - 8 + + - 21 * - 37 AS col2, COALESCE ( ( 60 ), - 68 ) AS col2 +---- +60 +926 query II rowsort SELECT DISTINCT 22 * - - 34 AS col1, 57 col2 @@ -4579,8 +4637,11 @@ SELECT 77 + + ( + 84 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4814 # Datafusion - Expected - 111 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* Int64\(\-58\) AS col0" at position 0 and "Int64\(56\) \+ Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 83 * - 58 AS col0, + 56 + 55 AS col0 +---- +-4814 +111 query I rowsort SELECT 87 * 27 AS col1 @@ -4600,8 +4661,11 @@ SELECT DISTINCT MAX ( DISTINCT - + 52 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) / Int64\(\-75\) AS col2" at position 0 and "CASE \(\- CAST\(NULL AS Int32\)\) WHEN Int64\(26\) THEN Int64\(12\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 / - 75 AS col2, CASE + - CAST ( NULL AS INTEGER ) WHEN 26 THEN + 12 END AS col2 +---- +0 +NULL query II rowsort label-878 SELECT ALL + 61 * MAX ( ALL - 13 ) + + ( + ( - 50 ) ) + - - 23, 57 * 22 * + + 96 AS col1 @@ -4708,8 +4772,11 @@ SELECT + 88 - + 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 1458240 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(87\)\) AS col0" at position 0 and "Int64\(7\) \* Int64\(31\) \* Int64\(80\) \* \(\- Int64\(\-84\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( MIN ( 87 ) ) col0, 7 * + 31 * 80 * - - 84 col0 +---- +1458240 +87 query I rowsort SELECT + 52 * + 44 AS col1 @@ -4764,8 +4831,11 @@ SELECT + - 65 + - 82 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-83\)\) \+ Int64\(\-97\) AS col2" at position 0 and "min\(Int64\(93\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 83 + + + ( - 97 ) AS col2, MIN ( ALL 93 ) AS col2 +---- +-14 +93 query II rowsort SELECT + 74 + + CASE 31 WHEN + + 12 THEN + - 11 END, 98 col1 @@ -4847,8 +4917,11 @@ SELECT - 43 * 29 + 32 - + 76 * + + 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 312 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) \* \(\- Int64\(24\)\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 13 * - + 24 AS col0, 49 col0 +---- +312 +49 query I rowsort label-926 SELECT ALL + 80 / + 35 - COUNT ( * ) @@ -4971,8 +5044,11 @@ SELECT ALL 89 + - 87 + + 30 + + 92 AS col0, - 46 * 48 * - 96 * + - 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -852 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col2" at position 0 and "Int64\(71\) \* Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 67 AS col2, + 71 * - 12 AS col2 +---- +-852 +67 query I rowsort label-948 SELECT ALL + COALESCE ( 11, - MIN ( 22 ), + 77 + + + SUM ( 91 ) ) AS col2 @@ -5078,8 +5154,11 @@ SELECT 58 * 51, 4 AS col0 # 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 "Int64\(37\) \+ Int64\(29\) AS col1" at position 0 and "Int64\(32\) / Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 37 + + 29 AS col1, 32 / 34 AS col1 +---- +0 +66 query I rowsort label-968 SELECT ALL - 83 + 83 + - + COUNT ( * ) AS col1 @@ -5721,8 +5800,11 @@ SELECT DISTINCT 87 AS col0, - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- nullif\(CAST\(Int64\(\-50\) AS Int32\), \(\- Int64\(36\)\) \* Int64\(41\) \- \(\- Int64\(43\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 AS col0, COUNT ( * ) + - + NULLIF ( CAST ( - 50 AS INTEGER ), - ( 36 ) * + 41 - - + 43 ) AS col0 +---- +51 +98 query I rowsort SELECT ALL 83 + 53 AS col1 @@ -5779,8 +5861,11 @@ SELECT DISTINCT + 75 * + 15 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 30 AS col2, 99 AS col2 +---- +-30 +99 query II rowsort SELECT DISTINCT - - 99, + 21 AS col0 @@ -6214,8 +6299,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col1, - 10 * - 23 AS col1 +---- +-1 +230 query I rowsort label-1182 SELECT ALL 56 / - NULLIF ( - - 44, 79 * - - 29 * + 7 ) + 47 * + 35 @@ -6323,8 +6411,12 @@ 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\(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\. +query III valuesort SELECT COUNT ( * ) + - - 40 - - 70 + + - 41 AS col1, ( + MAX ( + + 85 ) ), 94 AS col1 +---- +70 +85 +94 query II rowsort SELECT ALL - 44 * + - 12 AS col1, + 83 * - - 57 @@ -7067,8 +7159,11 @@ SELECT ALL - COUNT ( ALL + 56 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "Int64\(\-60\) / Int64\(\-73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 AS col2, - 60 / - 73 AS col2 +---- +0 +31 query I rowsort label-1345 SELECT 17 * - SUM ( + 45 ) @@ -7588,8 +7683,11 @@ SELECT 38 / + CAST ( 17 AS INTEGER ) + + + CAST ( ( 52 ) AS INTEGER ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 38 AS col0, + 83 AS col0 +---- +-38 +83 query I rowsort label-1444 SELECT - CASE WHEN NOT ( - - 79 ) IS NOT NULL THEN 75 END * + - 23 * + COUNT ( * ) @@ -7967,8 +8065,11 @@ SELECT - 11 * + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 63 ) AS col0, COUNT ( * ) col0 +---- +-63 +1 query I rowsort label-1518 SELECT DISTINCT - COUNT ( * ) * ( - 11 ) @@ -8034,8 +8135,11 @@ SELECT ALL COUNT ( * ) * - 26 * - - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6396 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(82\) AS col1" at position 0 and "CASE \(\- Int64\(89\)\) WHEN \(\- Int64\(\-14\)\) THEN NULL WHEN Int64\(\-24\) THEN Int64\(\-24\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 78 * + 82 col1, CASE - + 89 WHEN - - 14 THEN NULL WHEN - 24 THEN - 24 END AS col1 +---- +6396 +NULL query I rowsort SELECT DISTINCT - 1 * 79 * 9 * - 37 - + 24 @@ -8106,8 +8210,11 @@ SELECT + 40 * - + 16 - + 28 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 224840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col2" at position 0 and "Int64\(70\) \* Int64\(\-44\) \* \(\- nullif\(Int64\(73\), \(\- CAST\(Int64\(59\) AS Int32\)\) / Int64\(23\) \- Int64\(\-73\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 97 AS col2, 70 * - 44 * + - NULLIF ( 73, - CAST ( + 59 AS INTEGER ) / 23 - - 73 ) AS col2 +---- +224840 +97 query I rowsort label-1545 SELECT ALL - 31 + 41 * + - MAX ( DISTINCT + 31 ) @@ -9665,8 +9772,11 @@ SELECT ALL + 45 + - 60 + - + 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 75 AS col2, 52 col2 +---- +-75 +52 query I rowsort SELECT ALL 19 + - 70 @@ -10588,8 +10698,11 @@ SELECT DISTINCT 33 / + 1 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 7 AS col1, + COUNT ( * ) AS col1 +---- +1 +7 query I rowsort SELECT - NULLIF ( + 76, + 46 + - - 38 - - + 96 ) @@ -10930,14 +11043,20 @@ SELECT ALL 80 * 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col2" at position 0 and "Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 69 AS col2, + 79 AS col2 +---- +69 +79 # 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 53 AS col1, - 44 - - - COUNT ( * ) AS col1 +---- +-45 +-53 query I rowsort label-2090 SELECT - 92 * 55 + - + 5 + + 45 + - CAST ( + - COALESCE ( - 84, + + 76 + - 14 / + + MAX ( ALL + 59 ) ) AS INTEGER ) / + 27 + - 63 @@ -10970,8 +11089,11 @@ SELECT ALL 15, 38 + CAST ( CASE + + 91 WHEN + COUNT ( * ) + - 81 THEN NULL ELSE # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "coalesce\(min\(Int64\(14\)\), Int64\(\-65\) \- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 55 AS col2, + COALESCE ( MIN ( + 14 ), - 65 - + CAST ( NULL AS INTEGER ) ) AS col2 +---- +14 +55 query I rowsort SELECT ALL 9 + 51 + - 89 AS col2 @@ -11080,8 +11202,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) col1, + 57 AS col1 +---- +-1 +57 query I rowsort SELECT 71 - + 31 @@ -11360,8 +11485,11 @@ SELECT DISTINCT + COUNT ( DISTINCT ( - 21 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2192 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* Int64\(\-58\) \+ Int64\(29\) \* \(\- CAST\(Int64\(47\) AS Int32\)\) \- Int64\(98\) / Int64\(51\) \+ Int64\(18\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \- \(\- Int64\(69\)\) \* Int64\(75\) \* Int64\(\-54\) \* Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 61 * - 58 + + 29 * - CAST ( + 47 AS INTEGER ) - 98 / 51 + + 18 AS col1, CAST ( NULL AS INTEGER ) - - + 69 * + 75 * - 54 * - 94 AS col1 +---- +2192 +NULL query I rowsort label-2169 SELECT - ( + 49 ) + + MAX ( ALL - 52 ) @@ -12027,8 +12155,11 @@ SELECT + - COUNT ( * ) * - 51 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(76\)\) AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 76 AS col1, + 35 AS col1 +---- +-76 +35 query I rowsort label-2296 SELECT - - ( + - CAST ( 87 AS INTEGER ) ) + - 39 * 35 AS col0 @@ -12069,8 +12200,11 @@ SELECT DISTINCT + 89 col0, - 54 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 329 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col2" at position 0 and "Int64\(38\) \* Int64\(0\) \+ Int64\(\-47\) \* Int64\(\-7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 5 AS col2, + 38 * + 0 + - 47 * - 7 col2 +---- +329 +5 query I rowsort SELECT - 90 * 18 + 16 @@ -12857,8 +12991,11 @@ SELECT 71 + - 14 + + 58 + + 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 496 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "Int64\(31\) \* Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 63 AS col0, 31 * + 16 AS col0 +---- +496 +63 query I rowsort label-2455 SELECT DISTINCT 70 - + + COUNT ( + 95 ) + + 58 / - + 63 @@ -13030,8 +13167,11 @@ SELECT + 99 * - 41 AS col0, + 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "CASE Int64\(53\) WHEN \(\- Int64\(96\)\) \* Int64\(\-57\) \+ Int64\(56\) \+ \(\- Int64\(66\)\) THEN Int64\(6\) ELSE NULL END \+ \(\- Int64\(\-63\)\) \- Int64\(84\) \* coalesce\(Int64\(\-69\), sum\(Int64\(50\)\) \* Int64\(18\) \* coalesce\(Int64\(19\), \(\- CAST\(NULL AS Int32\)\) \* Int64\(23\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-47\) \* Int64\(99\)\) \* Int64\(18\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +51 +NULL query I rowsort label-2487 SELECT + COUNT ( * ) - + NULLIF ( + 63, - - 43 ) + MAX ( DISTINCT - + 1 ) * 57 AS col2 @@ -13297,8 +13437,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3867 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) \* Int64\(60\) \+ Int64\(93\) AS col2" at position 0 and "\(\- \(\- Int64\(26\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 66 * + 60 + + + 93 AS col2, - ( - + 26 ) AS col2 +---- +-3867 +26 query I rowsort SELECT + 15 + - 1 @@ -13887,8 +14030,11 @@ SELECT COALESCE ( - - 95, + 53, 45 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1243 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* \(\- Int64\(\-23\)\) \+ count\(Int64\(74\)\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + 54 ) * - ( - 23 ) + COUNT ( ALL + 74 ) AS col0, 56 AS col0 +---- +1243 +56 query II rowsort label-2650 SELECT ALL + - 33, + 91 * 72 / + - ( - + 18 ) + - 86 + + 46 + + 32 + + - 43 / 54 * - 62 / + 21 * CASE + CAST ( + 57 AS FLOAT8 ) WHEN + 21 THEN - + 37 + - CAST ( NULL AS INTEGER ) ELSE - 5 END AS col2 @@ -13954,8 +14100,11 @@ SELECT 67 * COUNT ( * ) + - ( + 78 ) * - 47 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2769 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(\-71\) AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 39 * - 71 AS col0, 54 AS col0 +---- +-2769 +54 query I rowsort SELECT + 45 * - 70 * - 35 @@ -14062,8 +14211,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(34\) \- Int64\(79\) / \(\- Int64\(\-50\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 11 * + - ( 51 ) AS col2, + COUNT ( * ) + + 34 - 79 / - - 50 AS col2 +---- +34 +561 query I rowsort SELECT DISTINCT + 25 * 0 col2 @@ -14154,8 +14306,11 @@ SELECT 59 + 71 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 AS col1, 19 col1 +---- +19 +79 query I rowsort SELECT + 46 * 35 - + 16 col1 @@ -14238,8 +14393,11 @@ SELECT - 11 / - - 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-51\)\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 51 col2, 37 AS col2 +---- +37 +51 query I rowsort label-2717 SELECT ALL SUM ( + 14 ) - + - ( 21 ) @@ -14761,8 +14919,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-72\), Int64\(\-15\) \* Int64\(84\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COALESCE ( - 72, - 15 * + 84 ) AS col2, COUNT ( * ) AS col2 +---- +-72 +1 query I rowsort SELECT - 5 * + - 10 * 16 AS col1 @@ -14783,8 +14944,11 @@ SELECT DISTINCT + ( + 97 ) + - - 47 AS col1, CAST ( + 3 AS INTEGER ) * 96 + + - # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(Int64\(35\)\)\) \+ Int64\(\-19\) \* CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - AVG ( ALL + 35 ) + - 19 * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1, 71 AS col1 +---- +71 +NULL query I rowsort label-2819 SELECT ALL + 72 + + 7 + + 60 + - COUNT ( * ) AS col0 @@ -14804,8 +14968,11 @@ 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\(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\. +query II valuesort 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 +---- +48 +781 query I rowsort label-2823 SELECT ALL - 82 + - COUNT ( 82 ) + - - 87 @@ -14859,8 +15026,11 @@ SELECT 61 - - + 7 * + 90 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 2731 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(79\)\) / Int64\(90\) AS col0" at position 0 and "Int64\(30\) \* \(\- Int64\(\-1\)\) \* Int64\(91\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( DISTINCT 79 ) / + 90 AS col0, 30 * - - 1 * 91 + COUNT ( * ) AS col0 +---- +0 +2731 query I rowsort label-2833 SELECT ALL + SUM ( DISTINCT - + NULLIF ( 57, 4 ) ) / + 12 @@ -14905,8 +15075,11 @@ SELECT + MAX ( ALL + ( - - 11 ) ) - 83 * - 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) / Int64\(9\) \+ Int64\(\-83\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 / + 9 + - 83 col1, + 74 AS col1 +---- +-82 +74 query I rowsort label-2842 SELECT ALL 50 * - COALESCE ( 58, - + COUNT ( - 65 ), + - 61 ) AS col2 @@ -14958,8 +15131,11 @@ SELECT - 2 col0, COUNT ( * ) # 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 "CAST\(NULL AS Float64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - 11 AS col1, CAST ( NULL AS FLOAT8 ) AS col1 +---- +-11 +NULL query II rowsort SELECT 18, - 91 AS col1 @@ -15101,8 +15277,11 @@ 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\(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\. +query II valuesort SELECT + 39 + 40 / - 58 + + 35 * - ( + 46 ) * + + COALESCE ( - ( + 87 ), - 35 ) - + + 38 - - + COUNT ( * ) + - ( 64 ) AS col2, 18 col2 +---- +140008 +18 query I rowsort SELECT + 45 + + 54 @@ -15158,8 +15337,11 @@ SELECT - 32 + + 72 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 237984 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* Int64\(\-24\) \* \(\- Int64\(74\)\) \* Int64\(67\) AS col0" at position 0 and "Int64\(\-57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 2 * - 24 * - + 74 * 67 AS col0, - 57 AS col0 +---- +-57 +237984 query I rowsort SELECT ALL 55 * - 21 @@ -15301,8 +15483,11 @@ SELECT DISTINCT CAST ( 66 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - -40460 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col2" at position 0 and "Int64\(68\) \* \(\- Int64\(35\)\) \* \(\- \(\- Int64\(17\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 75 AS col2, 68 * - + 35 * - - ( + ( 17 ) ) AS col2 +---- +-40460 +-75 query I rowsort label-2917 SELECT - 32 / + - NULLIF ( MAX ( + 51 ), + 74 / - - 99 * 82 ) AS col0 @@ -15876,8 +16061,11 @@ SELECT - 11 * + 84 + + ( - ( - - 99 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 68309 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(15\) WHEN Int64\(22\) \+ \(\- Int64\(\-69\)\) THEN CAST\(NULL AS Int32\) \* \(\- CAST\(Int64\(\-32\) AS Int32\)\) \* Int64\(42\) \+ Int64\(\-70\) \* Int64\(57\) WHEN Int64\(86\) / Int64\(\-43\) \+ Int64\(59\) \- \(\- Int64\(\-11\)\) / Int64\(46\) \- Int64\(91\) \+ Int64\(\-59\) \+ Int64\(62\) \* Int64\(11\) THEN NULL END AS col2" at position 0 and "Int64\(30\) \+ Int64\(50\) \+ Int64\(63\) \* Int64\(57\) \* Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CASE + + 15 WHEN + + ( + 22 ) + - ( - 69 ) THEN CAST ( NULL AS INTEGER ) * - CAST ( - 32 AS INTEGER ) * + 42 + - 70 * 57 WHEN 86 / - 43 + + 59 - - - 11 / + + 46 - 91 + - 59 + + 62 * + 11 THEN NULL END AS col2, + 30 + + 50 + 63 * + 57 * + 19 AS col2 +---- +68309 +NULL query I rowsort label-3026 SELECT - SUM ( DISTINCT + 27 ) @@ -16018,8 +16206,11 @@ SELECT - 96 + + 2 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-48\)\) AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( - 48 ) AS col1, 47 col1 +---- +1 +47 query II rowsort label-3052 SELECT DISTINCT + 76 * - + COUNT ( * ), 61 AS col1 @@ -16513,8 +16704,11 @@ SELECT + ( 98 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6688 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* sum\(DISTINCT Int64\(\-76\)\) AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 88 * + SUM ( DISTINCT - 76 ) AS col1, 33 AS col1 +---- +-6688 +33 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -16537,8 +16731,11 @@ SELECT DISTINCT - MAX ( 78 ) * - 21 * SUM ( 60 ) + + MIN ( DISTINCT + NULLIF ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 74 + + + COUNT ( * ) AS col2, COUNT ( * ) col2 +---- +-73 +1 query I rowsort label-3151 SELECT DISTINCT + 16 * + CAST ( - 57 AS INTEGER ) AS col1 @@ -16563,8 +16760,11 @@ SELECT DISTINCT - 61 * ( + COUNT ( * ) ) # 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\(\-1\) AS col2" at position 0 and "Int64\(46\) \+ min\(Int64\(\-52\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 1 AS col2, 46 + + MIN ( - 52 ) AS col2 +---- +-1 +-6 query II rowsort SELECT 5 AS col0, - 13 @@ -16605,8 +16805,11 @@ SELECT DISTINCT ( - 28 ) * 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2792 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-51\) AS Int32\) \* Int64\(\-54\) \+ Int64\(38\) AS col2" at position 0 and "Int64\(\-53\) \+ Int64\(\-84\) \+ Int64\(34\) \- Int64\(\-58\) \* Int64\(96\) / Int64\(58\) \* Int64\(97\) / \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( - 51 AS INTEGER ) * - 54 + 38 col2, - 53 + - 84 + + 34 - - 58 * + 96 / + 58 * 97 / - - CAST ( NULL AS INTEGER ) AS col2 +---- +2792 +NULL query II rowsort label-3164 SELECT 61, + COUNT ( * ) AS col2 @@ -17621,8 +17824,11 @@ SELECT ( COUNT ( * ) ) AS col0, 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 738 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(9\)\) \* Int64\(\-82\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 9 * + - 82 col0, 78 AS col0 +---- +738 +78 query I rowsort SELECT + 91 * - - 36 * + 34 - 97 @@ -18296,8 +18502,11 @@ SELECT ALL ( ( + 48 ) ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 AS col1, + 20 AS col1 +---- +20 +32 query I rowsort label-3491 SELECT ALL 21 * - - CAST ( NULL AS INTEGER ) col2 @@ -18521,8 +18730,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - 118 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(39\) \+ Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 86 + + COUNT ( * ) AS col2, + 39 + 79 AS col2 +---- +-85 +118 query II rowsort SELECT DISTINCT + 32 + + 26 col2, 22 @@ -18769,8 +18981,12 @@ SELECT - 4, ( + + MIN ( DISTINCT + 39 ) ) + 30 AS col1 # Datafusion - Expected - -20 # Datafusion - Expected - -2 # Datafusion - Expected - 7833 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \+ Int64\(\-15\) AS col1" at position 1 and "Int64\(43\) \+ Int64\(95\) \* Int64\(82\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - + 20 AS col2, 13 + - 15 AS col1, + + 43 + + + 95 * 82 AS col1 +---- +-2 +-20 +7833 query I rowsort label-3583 SELECT ALL 24 / + 9 @@ -18859,8 +19075,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col2, 50 + + 49 * + + 6 AS col2 +---- +-1 +344 query II rowsort label-3600 SELECT + 3 / + + 38, + 30 * 2 AS col2 @@ -19066,8 +19285,11 @@ SELECT + 61 * 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(DISTINCT CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(\-34\) / Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1, - 34 / 78 col1 +---- +0 +NULL query I rowsort SELECT ALL ( 10 ) * 8 @@ -19098,8 +19320,11 @@ SELECT - CAST ( - COUNT ( * ) AS INTEGER ) / - 74 + + 70 * - 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 985 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(62\) \+ Int64\(13\) \* Int64\(71\) \* CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 94 + - CAST ( NULL AS INTEGER ) AS col0, + 62 + 13 * + 71 * + CAST ( COUNT ( * ) AS INTEGER ) AS col0 +---- +985 +NULL query I rowsort label-3646 SELECT + - 89 + ( - + ( 60 ) ) * + + COUNT ( * ) * - 55 * + + 8 AS col2 @@ -19436,8 +19661,11 @@ SELECT + NULLIF ( + 74, + + 31 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \+ Int64\(\-66\) AS col1" at position 0 and "CASE \(\- Int64\(4\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(NULL AS Int32\) \+ Int64\(33\) / CAST\(NULL AS Int32\) \+ Int64\(24\) THEN Int64\(\-25\) \* Int64\(\-65\) WHEN Int64\(33\) THEN NULL END \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-86 +NULL query I rowsort SELECT DISTINCT 59 * + ( + 7 ) @@ -19638,8 +19866,11 @@ SELECT ALL + CAST ( + ( 76 ) AS INTEGER ) - + 91 + + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3000 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-50\)\) \* Int64\(60\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 50 * + + ( 60 ) AS col1, CAST ( NULL AS INTEGER ) AS col1 +---- +3000 +NULL query II rowsort label-3748 SELECT ALL CASE + 54 WHEN + 65 + + 82 / - 72 - + 51 THEN 30 * 12 END, CAST ( + + 43 AS INTEGER ) / 75 AS col1 @@ -20312,8 +20543,11 @@ SELECT DISTINCT + - 5 * + 85 + - + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -138 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \- Int64\(75\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(14\)\) / Int64\(52\) / max\(Int64\(53\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 62 - + + 75 + - + COUNT ( * ) + - ( + + 14 ) / 52 / MAX ( + 53 ) * - COUNT ( * ) AS col1, COUNT ( * ) AS col1 +---- +-138 +1 query I rowsort label-3878 SELECT CASE + NULLIF ( - 29, + ( + + 92 ) ) WHEN - 76 THEN NULL WHEN 24 / - - 81 THEN CASE - 97 WHEN 2 THEN + 54 + - + 85 WHEN + 65 THEN NULL END * + ( + COUNT ( * ) ) END * 55 - 3 AS col1 @@ -20354,8 +20588,11 @@ SELECT DISTINCT - COUNT ( * ) * + 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8141 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \- Int64\(\-87\) \* Int64\(93\) AS col1" at position 0 and "Int64\(43\) / nullif\(Int64\(68\), \(\- Int64\(28\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 50 - - 87 * 93 col1, + 43 / + NULLIF ( + 68, - + 28 ) col1 +---- +0 +8141 query I rowsort SELECT - 62 * - - 30 * 72 @@ -20390,8 +20627,11 @@ SELECT - 15 + + - 79 AS col0 # 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 col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - ( 91 ) ) AS col1, 2 AS col1 +---- +-91 +2 query I rowsort SELECT - COALESCE ( 36, + 11 ) @@ -20944,8 +21184,11 @@ SELECT ALL + 89 * 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 41 AS col1 +---- +1 +41 query I rowsort label-3998 SELECT - MIN ( ALL - - 0 ) * - 52 / + ( - ( - 31 ) ) AS col2 @@ -20956,8 +21199,12 @@ SELECT - MIN ( ALL - - 0 ) * - 52 / + ( - ( - 31 ) ) AS col2 # Datafusion - Expected - 69 # Datafusion - Expected - 45 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-45\), Int64\(83\)\)\) AS col2" at position 1 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + MIN ( ALL - 20 ) + + 89 AS col1, - COALESCE ( + - 45, + 83 ) AS col2, - CAST ( NULL AS INTEGER ) AS col2 +---- +45 +69 +NULL query I rowsort label-4000 SELECT MIN ( DISTINCT 55 ) AS col2 @@ -21199,8 +21446,11 @@ SELECT + SUM ( ALL - 19 ) + - - 38 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 103 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(CASE Int64\(40\) WHEN Int64\(19\) \+ Int64\(27\) THEN Int64\(24\) ELSE NULL END AS Int32\)\), Int64\(59\)\) \- Int64\(\-44\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COALESCE ( - CAST ( ( + CASE + 40 WHEN + + 19 + 27 THEN + 24 ELSE NULL END ) AS INTEGER ), 59 ) - - 44 AS col2, + 56 AS col2 +---- +103 +56 query I rowsort SELECT - 76 + + ( + 86 ) AS col1 @@ -21403,8 +21653,11 @@ SELECT DISTINCT + COUNT ( * ) - - + 69 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col2, + 90 col2 +---- +90 +NULL query I rowsort label-4083 SELECT NULLIF ( - + COALESCE ( - MIN ( DISTINCT + 82 ), - + 42, CAST ( NULL AS INTEGER ) + 69 + + 69 ), - - 21 / - - 17 + 32 + + 67 * - 0 - 80 + - 54 ) - - 54 col1 @@ -21558,8 +21811,11 @@ SELECT NULLIF ( - 57, + - 64 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "max\(Int64\(22\)\) / Int64\(73\) \* Int64\(10\) \+ Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 AS col0, MAX ( 22 ) / 73 * + 10 + + 27 col0 +---- +27 +66 query I rowsort SELECT - - 44 * 76 AS col0 @@ -22297,8 +22553,11 @@ 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\(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\. +query II valuesort SELECT + 11 * - - COUNT ( * ) - + 21 AS col1, - 59 AS col1 +---- +-10 +-59 query I rowsort SELECT ALL + + ( - 65 ) @@ -22335,8 +22594,11 @@ SELECT - - 15 * - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col2" at position 0 and "Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 18 AS col2, - 33 AS col2 +---- +-18 +-33 query I rowsort SELECT ALL + NULLIF ( 42, + - 55 ) @@ -22366,8 +22628,11 @@ SELECT - + 88 * 71 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col1" at position 0 and "Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 31 AS col1, 28 AS col1 +---- +28 +31 query I rowsort SELECT - NULLIF ( - - 71, + 46 - + 82 ) col0 @@ -22824,8 +23089,11 @@ NULL # 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\(\-11\) AS col1" at position 0 and "Int64\(49\) \+ Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 11 AS col1, 49 + 44 AS col1 +---- +-11 +93 query I rowsort SELECT - 85 * + 91 col2 @@ -23093,8 +23361,11 @@ 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\(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\. +query RI valuesort SELECT NULLIF ( + COUNT ( * ), - - 79 * - + COALESCE ( - - CAST ( - 59 AS FLOAT8 ), 53 ) ) + - 87 AS col2, - COUNT ( * ) AS col2 +---- +-1 +-86 query I rowsort SELECT - - ( - 6 ) AS col0 @@ -23476,8 +23747,11 @@ 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\(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\. +query II valuesort 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 +---- +58 +NULL query I rowsort label-4479 SELECT - 94 - - ( - COUNT ( * ) ) + + 39 + 63 / - CAST ( - COALESCE ( - 68, - 34 + - + 21 * - + COALESCE ( + - ( - - CASE - - COUNT ( * ) WHEN 83 THEN + + 44 WHEN + 70 THEN - - ( + 73 ) WHEN + - 90 THEN - 7 ELSE NULL END ), + - 17 ) * - - COUNT ( * ) ) AS INTEGER ) @@ -23655,8 +23929,11 @@ SELECT ALL - + COUNT ( * ) - + 47 + - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 426 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "Int64\(66\) \- Int64\(\-90\) \* Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 2 col2, 66 - + - 90 * + + 4 AS col2 +---- +2 +426 query I rowsort label-4512 SELECT ALL + + 62 / + COUNT ( * ) @@ -24078,8 +24355,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( CASE + 24 WHEN + 19 + 71 - + 63 * + 41 THEN - + 35 * - 31 + + 17 WHEN - 42 THEN NULL END ) AS col2, - COUNT ( * ) AS col2 +---- +-1 +NULL query II rowsort SELECT ALL + 25 AS col0, - 87 AS col1 @@ -24478,8 +24758,11 @@ SELECT DISTINCT - 68 / - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75973 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \+ Int64\(86\) \* Int64\(\-52\) \* \(\- Int64\(\-17\)\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 + 86 * - 52 * - - 17 AS col2, 63 AS col2 +---- +-75973 +63 query II rowsort label-4669 SELECT ( + + 54 ) * - ( COALESCE ( + 77, - COUNT ( * ) * 37 + + + COALESCE ( + - 72, - 78 ) + + 28, - 47 + COUNT ( * ) ) ) + 49 AS col1, 35 @@ -24667,8 +24950,11 @@ SELECT - NULLIF ( + - 54, - 92 + - + 57 ) * - - SUM ( + - 39 ) # 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\(22\) \+ Int64\(\-25\) \+ Int64\(\-98\) \+ Int64\(80\) / CAST\(NULL AS Float64\) \* \(\- \(\- Int64\(26\)\)\) \* Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL + 15 AS col2, 22 + - 25 + - 98 + + 80 / + CAST ( NULL AS FLOAT8 ) * - + ( - + 26 ) * - 20 AS col2 +---- +15 +NULL query I rowsort label-4706 SELECT DISTINCT + 58 * + + COUNT ( ALL + 83 ) @@ -24845,8 +25131,11 @@ SELECT + 72 * - + 89 - ( + + 19 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(93\), min\(Int64\(36\)\)\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + NULLIF ( + 93, + MIN ( 36 ) ) col0, 40 AS col0 +---- +40 +93 query II rowsort SELECT ALL + 25 AS col2, 21 @@ -25004,8 +25293,11 @@ SELECT ALL 80 AS col0, - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 180 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col2" at position 0 and "Int64\(\-20\) \* \(\- Int64\(9\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 3 AS col2, - 20 * + ( - + 9 ) AS col2 +---- +180 +3 query I rowsort SELECT 55 - 31 AS col0 @@ -25025,8 +25317,11 @@ SELECT + 26 * COUNT ( * ) / 53 - - + ( - ( - 59 ) ) AS col0 # 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 col2" at position 0 and "Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 4 AS col2, + 17 AS col2 +---- +-4 +17 query I rowsort label-4774 SELECT ALL - - COALESCE ( - - 48, + 63 * COUNT ( * ) ) @@ -25399,8 +25694,11 @@ SELECT ALL + SUM ( + 75 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -292796 # Datafusion - Expected - 826 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-4\)\) / Int64\(18\) \+ Int64\(91\) \* Int64\(82\) \* \(\- Int64\(68\)\) \+ Int64\(0\) \* Int64\(\-55\) \+ Int64\(\-73\) \* \(\- \(\- Int64\(35\)\)\) \* Int64\(\-84\) AS col0" at position 0 and "Int64\(15\) \* Int64\(55\) \+ Int64\(54\) / \(\- Int64\(\-43\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 4 ) / 18 + + 91 * 82 * - + 68 + + 0 * ( + + ( - 55 ) ) + - 73 * - - ( 35 ) * + - 84 AS col0, 15 * 55 + 54 / - - 43 AS col0 +---- +-292796 +826 query II rowsort label-4845 SELECT ALL COUNT ( * ) * - 81 * - - COUNT ( * ) * - ( - + 87 ) AS col1, ( - + 24 ) - + 46 AS col2 @@ -25446,8 +25744,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(32\)\) AS col2" at position 0 and "Int64\(\-10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + SUM ( 32 ) AS col2, - 10 AS col2 +---- +-10 +32 query I rowsort SELECT DISTINCT + - 58 * - + 9 @@ -25805,8 +26106,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 88 AS col1, COUNT ( * ) + 57 AS col1 +---- +58 +88 query I rowsort label-4920 SELECT - 54 * - ( - 57 ) * + + COUNT ( * ) * + 66 * + 18 + + MAX ( ALL 9 ) / - - 15 @@ -25869,8 +26173,12 @@ SELECT - 70 - 82 # Datafusion - Expected - 61 # Datafusion - Expected - 180 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col2" at position 0 and "Int64\(59\) / Int64\(16\) \* Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 61 AS col2, + 59 / 16 * 60 AS col2, + - 3 * - 2 * + 2 + + COUNT ( * ) AS col0 +---- +13 +180 +61 query I rowsort SELECT 39 + - - 66 @@ -27223,8 +27531,11 @@ SELECT MAX ( ALL 60 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ Int64\(\-93\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 + + - 93 col2, 14 AS col2 +---- +0 +14 query II rowsort label-5194 SELECT MAX ( ALL - 27 ), 80 AS col2 @@ -27750,8 +28061,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(96\) \+ Int64\(96\) \+ Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 col1, COUNT ( * ) + 96 + 96 + - 13 AS col1 +---- +-70 +180 query II rowsort SELECT ALL 81, + 79 * + 59 * - - 23 AS col2 @@ -27952,8 +28266,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 65 - 22 / - + COUNT ( * ) AS col2, - 30 col2 +---- +-30 +87 query I rowsort label-5335 SELECT DISTINCT COUNT ( ALL + 77 ) @@ -28097,8 +28414,11 @@ SELECT ALL - ( 35 ) * 83 + + 39 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\(27\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 27 AS col1, + 15 col1 +---- +15 +27 query I rowsort label-5362 SELECT + CASE + - COUNT ( * ) WHEN 19 - 53 THEN + - 50 ELSE - 97 * + NULLIF ( - - 35, + + 72 * - CASE 85 + - 38 * - ( - 57 * + ( 79 ) ) WHEN - 17 THEN 99 * 10 ELSE NULL END - 70 ) * 0 + COUNT ( * ) * COUNT ( * ) + + 1 END * CAST ( NULL AS INTEGER ) @@ -28446,8 +28766,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4661 # Datafusion - Expected - -390 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(59\), Int64\(88\)\) \* Int64\(79\) AS col1" at position 0 and "Int64\(15\) \* Int64\(\-26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( COALESCE ( + 59, + 88 ) ) * 79 AS col1, + 15 * + - 26 col1 +---- +-390 +4661 query I rowsort label-5428 SELECT ALL ( COUNT ( * ) ) + - 55 @@ -28765,8 +29088,11 @@ SELECT DISTINCT COUNT ( * ) + + 82 + 0 + + - 88 * - + 80 AS col0, 38 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5037 # Datafusion - Expected - 1349 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* Int64\(73\) AS col0" at position 0 and "Int64\(\-71\) \* \(\- \(\- min\(Int64\(\-19\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 * + 73 AS col0, - 71 * - - MIN ( ALL + - 19 ) AS col0 +---- +1349 +5037 query I rowsort label-5487 SELECT DISTINCT + 96 * + COUNT ( * ) / + COUNT ( * ) - - 76 @@ -28830,8 +29156,11 @@ SELECT - ( - COALESCE ( + + ( - 25 ), + 85 * 52 ) ) + + ( + - 90 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 5704 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \* Int64\(\-92\) AS col1" at position 0 and "Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 62 * - 92 AS col1, 71 AS col1 +---- +5704 +71 query I rowsort SELECT - - 39 * + 8 @@ -28996,8 +29325,11 @@ SELECT ALL COALESCE ( 84, ( + + 14 ) * + ( + 84 ) ) - NULLIF ( + NULLIF ( - + NU # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 3264 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col2" at position 0 and "Int64\(64\) \* Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 38 AS col2, + ( + + 64 ) * 51 AS col2 +---- +-38 +3264 query I rowsort label-5530 SELECT DISTINCT - NULLIF ( - 42, + 35 * - 31 * + + ( - COUNT ( * ) ) + - - 85 ) - - + 82 + + ( CAST ( NULL AS INTEGER ) ) + + - 70 + - + 68 * + - 7 - + ( + 25 ) / 84 @@ -29037,8 +29369,11 @@ SELECT DISTINCT + 24 * + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 116 -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\) \+ Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 66 col2, 79 + ( + + 37 ) AS col2 +---- +116 +66 query I rowsort label-5538 SELECT - 57 * - + 89 * - 62 * CAST ( NULL AS INTEGER ) AS col0 @@ -29106,8 +29441,11 @@ SELECT DISTINCT - MIN ( NULLIF ( 84, + 92 * - + 24 + - 92 * + 43 + + 23 ) ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3387 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-86\)\)\) \+ Int64\(61\) \+ Int64\(48\) \+ Int64\(\-56\) \* nullif\(Int64\(\-57\), Int64\(64\)\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MIN ( + - 86 ) + + 61 + + + ( + 48 ) + - 56 * + NULLIF ( + - 57, 64 ) AS col2, + 93 AS col2 +---- +3387 +93 query I rowsort SELECT 21 + - - 97 @@ -29448,8 +29786,11 @@ SELECT ALL - 28 * 1 * - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col2" at position 0 and "Int64\(\-4\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 AS col2, - 4 + COUNT ( * ) AS col2 +---- +-3 +57 query I rowsort SELECT + NULLIF ( 93, - 28 ) AS col2 @@ -29566,14 +29907,20 @@ SELECT + ( 99 ) * 88 * - 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 10 AS col2, + 61 col2 +---- +-10 +61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 3048 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col2" at position 0 and "Int64\(44\) \- Int64\(91\) \* Int64\(\-33\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 75 col2, 44 - + 91 * - 33 + COUNT ( * ) AS col2 +---- +3048 +75 query I rowsort label-5641 SELECT + - 73 * - + CAST ( - 41 AS INTEGER ) @@ -29916,8 +30263,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) * COUNT ( * ) + + 91 col0, 62 AS col0 +---- +62 +90 query I rowsort SELECT 4 + 4 + 83 * - 52 AS col2 @@ -29932,8 +30282,11 @@ SELECT DISTINCT + - 9 - - 57 + - - NULLIF ( - - 4, + 41 * + 21 * + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "nullif\(Int64\(78\), Int64\(58\) \+ Int64\(82\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 col2, NULLIF ( 78, + + 58 + ( + 82 ) ) AS col2 +---- +13 +78 query I rowsort SELECT - CASE + + 76 WHEN + 85 THEN + 56 END * 74 * - 7 AS col0 @@ -30267,8 +30620,11 @@ SELECT DISTINCT + 79 + - 41 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 col0, + 12 AS col0 +---- +12 +36 query I rowsort label-5773 SELECT ALL + 62 + - 27 + 59 / CAST ( NULL AS INTEGER ) @@ -30359,8 +30715,11 @@ SELECT - + MIN ( DISTINCT 51 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-2\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 2 AS col2, COUNT ( * ) AS col2 +---- +1 +2 query I rowsort SELECT 33 * - + 71 * - NULLIF ( + 22, - - 78 ) @@ -30427,8 +30786,11 @@ SELECT NULLIF ( - + COUNT ( * ), 75 ) - - 39 * - COUNT ( * ) + 60, - 76 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) AS col1" at position 0 and "min\(Int64\(22\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 7 AS col1, MIN ( + 22 ) AS col1 +---- +-7 +22 query II rowsort SELECT - 31 AS col1, - 49 AS col2 @@ -30570,8 +30932,11 @@ SELECT DISTINCT - - 53 * - + 1 * - 0 * + - COUNT ( * ) + + 58 + + 93 * - 88 - + # Datafusion - Datafusion expected results: # Datafusion - Expected - 339578 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(8\), Int64\(\-28\) \* Int64\(\-16\)\) \+ Int64\(70\) \* Int64\(63\) \* \(\- sum\(Int64\(\-77\)\)\) AS col0" at position 0 and "Int64\(51\) \- \(\- Int64\(\-97\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( + 8, - 28 * + - 16 ) + 70 * + 63 * - + SUM ( - 77 ) AS col0, 51 - - - 97 AS col0 +---- +-46 +339578 query II rowsort label-5830 SELECT + 14 * - COALESCE ( + 47, - 72, 98 * - + 75 + 62 + 82 / MAX ( + 75 ) ) + - - 75 + + 7, + 66 col0 @@ -30706,8 +31071,11 @@ SELECT - + 6 * - COUNT ( * ) / COALESCE ( COUNT ( * ), 17, - ( - CAST ( 14 AS IN # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(65\)\) AS col2" at position 0 and "Int64\(7\) \+ Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 65 col2, 7 + + 53 AS col2 +---- +-65 +60 query I rowsort label-5856 SELECT - - 26 + + 98 / + NULLIF ( + - 67, + + 27 * - COUNT ( * ) + - 24 ) AS col0 @@ -31341,8 +31709,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 208 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \+ \(\- Int64\(\-63\)\) \+ Int64\(46\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 99 + - - 63 + 46 AS col0, 8 col0 +---- +208 +8 query II rowsort SELECT + ( 92 ), 73 - 52 col0 @@ -31435,8 +31806,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- Int64\(72\)\)\)\) / Int64\(16\) AS col1" at position 0 and "min\(Int64\(38\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - SUM ( - + 72 ) / 16 AS col1, MIN ( ALL + 38 ) AS col1 +---- +38 +4 query I rowsort label-5993 SELECT - 83 / 45 @@ -31457,8 +31831,11 @@ SELECT + 47 + - 58 * - 32 * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 col2, 7 AS col2 +---- +-55 +7 query I rowsort SELECT + 65 * 35 AS col0 @@ -31498,8 +31875,11 @@ SELECT 96 * 64 - + ( + 61 ) / - 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 6300 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col2" at position 0 and "Int64\(\-84\) \* \(\- Int64\(75\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 80 AS col2, ( - 84 ) * - + 75 AS col2 +---- +6300 +80 query I rowsort label-6005 SELECT + CASE + 61 WHEN + + ( 16 ) THEN COUNT ( * ) + + 58 * + ( - ( 29 ) ) + + - ( - COUNT ( - 31 ) ) ELSE NULL END @@ -31722,8 +32102,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 / + 49 col2, - COUNT ( * ) + 46 AS col2 +---- +1 +45 query I rowsort label-6048 SELECT - COUNT ( ALL - - 27 ) + - - COUNT ( * ) * 78 @@ -32277,8 +32660,11 @@ SELECT ALL - + ( NULLIF ( 53, + 10 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 275 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \* Int64\(\-21\) \- Int64\(87\) \+ Int64\(\-37\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 19 * + - 21 - 87 + - 37 AS col0, 57 col0 +---- +275 +57 query I rowsort label-6154 SELECT ALL - SUM ( ALL - + 15 ) * + + CAST ( - ( - 31 ) AS INTEGER ) AS col0 @@ -32672,8 +33058,11 @@ SELECT ALL - 6 + - + 94 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 99 col0, 30 AS col0 +---- +30 +99 query I rowsort label-6231 SELECT - 60 * COUNT ( 95 ) + + 26 @@ -32715,8 +33104,11 @@ SELECT DISTINCT + MAX ( DISTINCT ( 90 ) ) * + 63 * - + ( + - 78 ), NULLIF ( + 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 98 AS col2, 40 AS col2 +---- +-98 +40 query I rowsort SELECT 69 + 62 @@ -32796,8 +33188,11 @@ SELECT ALL + 51, + NULLIF ( - 68, + 69 * + 51 + 87 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 69 AS col2, 28 AS col2 +---- +-69 +28 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -32835,8 +33230,11 @@ SELECT ALL SUM ( - + 36 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 95 AS col0, COUNT ( * ) AS col0 +---- +1 +95 query II rowsort SELECT DISTINCT - 5, 32 col2 @@ -32917,8 +33315,11 @@ 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\(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\. +query II valuesort 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 +---- +-12 +NULL query I rowsort label-6276 SELECT DISTINCT - NULLIF ( + COUNT ( * ), 78 + - + COUNT ( * ) ) @@ -32983,8 +33384,11 @@ SELECT + 28 * + - 48 + + 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 * COUNT ( * ) AS col2, + 97 AS col2 +---- +23 +97 query I rowsort label-6289 SELECT CASE + + CASE 36 WHEN 44 THEN NULL WHEN - + 39 * CAST ( - - 15 AS INTEGER ) THEN ( MIN ( 6 ) ) END WHEN - + 48 / 48 * - 97 * 0 * + - 46 THEN NULL ELSE - 57 / - - 60 * - - 25 END / COALESCE ( - 15, + 8 ) @@ -33155,8 +33559,11 @@ SELECT - 38 * + 13 + - 69 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \+ \(\- count\(Int64\(\-27\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(72\) \* Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + CAST ( NULL AS FLOAT8 ) + + - COUNT ( - 27 ) + + COUNT ( * ) AS col1, 72 * + - 30 AS col1 +---- +-2160 +NULL query I rowsort label-6321 SELECT DISTINCT 55 * - 17 + COUNT ( * ) AS col0 @@ -33285,8 +33692,11 @@ SELECT DISTINCT ( - + 7 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 225 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \- Int64\(98\) AS col1" at position 0 and "Int64\(4\) \* Int64\(56\) \+ count\(Int64\(\-64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 11 - + 98 AS col1, 4 * + 56 + COUNT ( ALL - 64 ) AS col1 +---- +-87 +225 query I rowsort SELECT + NULLIF ( - 90, 48 * 86 / 87 + - - COALESCE ( - 4, 94 ) ) - + 56 - + 80 * 26 col2 @@ -33417,8 +33827,11 @@ SELECT - 17 + CASE WHEN 38 IS NOT NULL THEN 70 END / + ( 4 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(62\)\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - + 62 ) AS col2, + 48 AS col2 +---- +-62 +48 query I rowsort label-6371 SELECT ALL 0 + COUNT ( * ) - + 25 @@ -34011,8 +34424,11 @@ SELECT + 17 + 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-87\) AS Int32\)\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(41\) \* \(\- CASE Int64\(\-7\) WHEN \(\- Int64\(43\)\) \+ max\(Int64\(\-67\)\) \+ Int64\(91\) \* Int64\(32\) THEN Int64\(64\) \* Int64\(12\) \+ Int64\(64\) / CAST\(NULL AS Int32\) \+ Int64\(79\) \* Int64\(69\) / Int64\(\-93\) END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( - 87 AS INTEGER ) * CAST ( NULL AS INTEGER ) col1, 41 * - CASE - 7 WHEN - ( 43 ) + MAX ( - 67 ) + 91 * + 32 THEN + + 64 * 12 + 64 / CAST ( NULL AS INTEGER ) + + 79 * + 69 / - 93 END AS col1 +---- +NULL +NULL query II rowsort label-6483 SELECT - COUNT ( * ) AS col1, - 98 - - CAST ( NULL AS INTEGER ) @@ -34104,8 +34520,11 @@ SELECT DISTINCT 73 col1, - 88 * - 64 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(0\)\) \- Int64\(50\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - - 0 ) - + 50 AS col2, 61 AS col2 +---- +-50 +61 query I rowsort SELECT 85 * - 54 @@ -34669,8 +35088,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 50 AS col2, 18 AS col2 +---- +-50 +18 query I rowsort SELECT + - 96 * 44 @@ -34792,8 +35214,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) / - 19 AS col0, 5 AS col0 +---- +0 +5 query I rowsort label-6632 SELECT ALL ( - 92 ) * 81 + + - COUNT ( DISTINCT + CAST ( - 50 AS INTEGER ) ) @@ -34819,8 +35244,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 22 - + 95, + 36 - - MIN ( + 58 ) AS col0, 63 * - COUNT ( * ) AS col0 +---- +-63 +-73 +94 query I rowsort SELECT CASE - 64 WHEN + 87 THEN + - 53 * - 10 END * + 0 AS col1 @@ -34953,8 +35382,11 @@ SELECT ALL - 3 AS col2, 2 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 682 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(\(\- \(\- Int64\(\-15\)\)\), Int64\(\-98\), Int64\(96\) \- \(\- min\(DISTINCT Int64\(59\)\)\) \- Int64\(\-48\)\)\) AS col1" at position 0 and "Int64\(\-56\) \* Int64\(\-12\) \+ Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COALESCE ( - - ( - 15 ), - 98, + 96 - - MIN ( DISTINCT 59 ) - - 48 ) col1, - 56 * - 12 + + 10 AS col1 +---- +15 +682 query I rowsort SELECT 46 * 64 + ( - + 5 ) @@ -35298,8 +35730,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(\-77\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 37 AS col1, COUNT ( * ) * + ( - - 77 ) AS col1 +---- +37 +77 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -35865,8 +36300,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col2" at position 0 and "Int64\(23\) \+ \(\- coalesce\(Int64\(85\), Int64\(24\), Int64\(50\) \+ Int64\(73\), Int64\(\-76\)\)\) \+ CAST\(NULL AS Int32\) / Int64\(\-67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 AS col2, 23 + - COALESCE ( 85, 24, + 50 + 73, - 76 ) + CAST ( NULL AS INTEGER ) / - 67 AS col2 +---- +87 +NULL query I rowsort label-6841 SELECT - + 46 * COALESCE ( + COUNT ( * ), + CASE 30 WHEN - 44 + 60 THEN NULL WHEN - 74 * 53 + - 90 THEN - NULLIF ( 6, CAST ( NULL AS INTEGER ) * 22 ) ELSE NULL END, - 97 ) / COUNT ( * ) + 75 * 51 + + ( - 77 ) @@ -36165,8 +36603,11 @@ SELECT ALL + 71 * - 51 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - -2986 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(79\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- nullif\(Int64\(62\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(66\)\)\) \* Int64\(48\) \+ Int64\(\-10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) + 79 + COUNT ( * ) AS col1, ( - NULLIF ( 62, ( + COUNT ( * ) ) + 66 ) ) * + 48 + - 10 col1 +---- +-2986 +79 query I rowsort label-6899 SELECT + 45 * - CAST ( NULL AS INTEGER ) @@ -36642,8 +37083,11 @@ SELECT - + ( 4 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8648 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) \* Int64\(94\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 92 * 94 AS col2, + 56 AS col2 +---- +-8648 +56 query I rowsort label-6992 SELECT ALL + 34 - + COUNT ( * ) @@ -36783,8 +37227,11 @@ SELECT + ( - COALESCE ( + 92, - 31 ) ) / COUNT ( * ) + MAX ( ALL - 49 ) * - 14 * # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- \(\- Int64\(94\)\)\) AS col0" at position 0 and "Int64\(\-93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) * - - ( + 94 ) col0, - 93 AS col0 +---- +-93 +NULL query I rowsort label-7018 SELECT COALESCE ( 9, 13 + - - 94 * + - 73 * - 58 * - - ( - - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ), 69 ) @@ -36959,8 +37406,12 @@ SELECT 13 + - MIN ( DISTINCT - 79 ) # Datafusion - Expected - -11642400 # Datafusion - Expected - -26 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \* Int64\(30\) \* Int64\(\-66\) \* Int64\(\-60\) AS col1" at position 0 and "Int64\(\-30\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 98 * 30 * - 66 * - 60 AS col1, 5 + - ( + 31 ), - 30 AS col1 +---- +-11642400 +-26 +-30 query I rowsort SELECT ALL - NULLIF ( - 9, + 49 ) @@ -37103,8 +37554,11 @@ SELECT ALL - 11 + + 69 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 60 col1, 97 AS col1 +---- +60 +97 query I rowsort label-7080 SELECT - + 31 * + + COUNT ( * ) @@ -37527,8 +37981,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) / - - 38 * + - COUNT ( * ) AS col1, 9 AS col1 +---- +0 +9 query I rowsort SELECT 30 - - NULLIF ( 61, - - 38 ) AS col0 @@ -37907,8 +38364,11 @@ SELECT + 32 * 1 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(95\)\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( ( 95 ) ) AS col0, 90 AS col0 +---- +-95 +90 query I rowsort SELECT ALL 20 + + 77 @@ -38200,8 +38660,11 @@ SELECT DISTINCT + COUNT ( * ) - + + 3 + - COUNT ( * ) + + 29 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - -750 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 0 and "Int64\(31\) \* Int64\(\-25\) \+ Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 13 AS col0, 31 * - 25 + + + 25 AS col0 +---- +-750 +13 query II rowsort label-7290 SELECT - CAST ( NULL AS INTEGER ) AS col0, + 92 @@ -38334,8 +38797,11 @@ 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\(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\. +query II valuesort 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 +---- +-3242 +NULL query I rowsort SELECT - + 41 + - 42 col0 @@ -38638,8 +39104,11 @@ SELECT - 52 * - + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \- CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(66\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 - + CAST ( NULL AS INTEGER ) AS col2, 66 * - + COUNT ( * ) AS col2 +---- +-66 +NULL query I rowsort SELECT - NULLIF ( - 78, - 85 / + + NULLIF ( + 89, 46 ) - + 30 / - 98 / + 53 ) AS col2 @@ -38690,8 +39159,11 @@ SELECT + 85 * + - 23 * + 59 + ( - 62 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4316 # Datafusion - Expected - 80 -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 "Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 83 * - + 52 AS col2, 80 AS col2 +---- +-4316 +80 query I rowsort label-7384 SELECT MAX ( - 31 ) * 95 * - CAST ( NULL AS INTEGER ) + + CAST ( 42 AS INTEGER ) @@ -39101,8 +39573,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(93\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-37\)\)\) AS col1" at position 0 and "CASE Int64\(19\) WHEN \(\- Int64\(91\)\) THEN NULL WHEN Int64\(11\) THEN \(\- Int64\(\-88\)\) \+ Int64\(89\) \* \(\- CAST\(Int64\(73\) AS Int32\)\) WHEN \(\- nullif\(Int64\(10\), \(\- Int64\(\-82\)\) \- \(\- \(\- CASE Int64\(11\) WHEN \(\- Int64\(74\)\) \* Int64\(44\) THEN Int64\(66\) \* Int64\(41\) WHEN Int64\(51\) THEN Int64\(8\) ELSE NULL END\)\)\)\) THEN NULL ELSE Int64\(60\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-93 +60 query I rowsort SELECT + 82 * - 88 * - + 96 AS col1 @@ -39177,8 +39652,11 @@ SELECT DISTINCT - 93 * - 14 * - + 31 * - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - -106 # Datafusion - Expected - 6 -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 "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - 18 ) - - ( - 88 ) AS col0, 6 AS col0 +---- +-106 +6 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -39231,8 +39709,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * + - 52 AS col1, + COUNT ( * ) / + + 43 + COUNT ( DISTINCT - 45 ) AS col1 +---- +-52 +1 query I rowsort SELECT DISTINCT 44 + + + 50 AS col2 @@ -39242,8 +39723,11 @@ SELECT DISTINCT 44 + + + 50 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(11\) AS Int32\)\) AS col0" at position 0 and "CAST\(\(\- \(\- CASE Int64\(52\) WHEN Int64\(84\) THEN Int64\(\-56\) END\)\) AS Float64\) \* Int64\(78\) \+ Int64\(35\) \* min\(Int64\(62\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +-11 +NULL query I rowsort label-7486 SELECT + 73 + + 66 - - 4 - + 91 + 75 + + 48 / + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) @@ -39254,8 +39738,12 @@ NULL # Datafusion - Expected - -3913 # Datafusion - Expected - 97 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* \(\- Int64\(43\)\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 91 * - + 43 AS col2, 97 AS col2, - 78 col0 +---- +-3913 +-78 +97 query I rowsort SELECT - 85 * + 19 + - 28 + + 96 @@ -39414,8 +39902,12 @@ SELECT 92 + + 59 # Datafusion - Expected - 17 # Datafusion - Expected - 416 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "Int64\(\-89\) \+ Int64\(39\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 17 AS col2, + 39 + - - 10 + - + 65 + 72 * 6, - 89 + 39 AS col2 +---- +-50 +17 +416 query I rowsort label-7517 SELECT - CAST ( - - 36 AS INTEGER ) AS col1 @@ -39716,8 +40208,11 @@ SELECT ALL MIN ( ALL + 17 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, 98 AS col2 +---- +1 +98 query I rowsort label-7576 SELECT - COALESCE ( - COUNT ( * ), + - COUNT ( * ), + ( - + 13 ) + ( + 74 ) ) col2 @@ -39753,8 +40248,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -729 -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 "Int64\(\-26\) \+ \(\- Int64\(\-19\)\) \* Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - - CAST ( NULL AS FLOAT8 ) AS col2, - 26 + - + ( - 19 ) * - 37 AS col2 +---- +-729 +NULL query I rowsort label-7583 SELECT ( + + CAST ( 38 AS INTEGER ) ) @@ -39784,8 +40282,11 @@ SELECT - 67 + 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col0" at position 0 and "avg\(Int64\(\-63\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - 58 AS col0, AVG ( ALL - 63 ) * - CAST ( NULL AS INTEGER ) AS col0 +---- +-58 +NULL query I rowsort label-7589 SELECT ALL + MAX ( ALL - 3 ) AS col1 @@ -39833,8 +40334,11 @@ SELECT - 92 / - 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 831 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-24\)\) \* Int64\(36\) \+ 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 II valuesort SELECT ALL - - 24 * + 36 + + - 33 AS col0, + 1 AS col0 +---- +1 +831 query I rowsort label-7598 SELECT + SUM ( - + 83 ) @@ -41073,8 +41577,11 @@ SELECT ALL + COUNT ( + 5 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) AS col0" at position 0 and "Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 13 AS col0, - 80 col0 +---- +-13 +-80 query II rowsort label-7836 SELECT + 46 + + 64 * - COUNT ( * ), - 18 AS col1 @@ -41994,8 +42501,11 @@ SELECT ALL - ( + MAX ( DISTINCT + - 19 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 6735 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "Int64\(91\) \* Int64\(74\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 AS col1, 91 * + 74 + COUNT ( * ) AS col1 +---- +11 +6735 query II rowsort label-8009 SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, 12 * - 89 + + 3 * + 24 * 94 @@ -42248,8 +42758,11 @@ SELECT DISTINCT - COUNT ( * ) / - CAST ( + COALESCE ( - 53, - 90 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \- sum\(Int64\(28\)\) AS col0" at position 0 and "CAST\(\(\- CASE Int64\(70\) WHEN Int64\(56\) THEN Int64\(94\) / Int64\(\-59\) ELSE Int64\(14\) END\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 88 - ( + + SUM ( + 28 ) ) AS col0, CAST ( + - CASE + 70 WHEN + 56 THEN 94 / - 59 ELSE 14 END AS INTEGER ) AS col0 +---- +-14 +60 query I rowsort label-8056 SELECT ALL - COALESCE ( + + 29, ( + 40 ), 45, + - ( - CAST ( + + 42 AS INTEGER ) ) * + 76 * + 10 + - 69 ) / - 65 col0 @@ -42669,14 +43182,21 @@ SELECT ALL 74 + + 70 # Datafusion - Expected - 11 # Datafusion - Expected - 70 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \- Int64\(7\) AS col0" at position 0 and "sum\(Int64\(70\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 18 - 7 AS col0, SUM ( 70 ) col0, + COUNT ( * ) / - 45 * + + 38 * + + NULLIF ( + - COUNT ( * ), + 94 ) * - + SUM ( + 73 ) + + + ( - ( COUNT ( * ) ) ) AS col2 +---- +-1 +11 +70 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 43 AS col0, + 68 AS col0 +---- +-43 +68 query I rowsort label-8137 SELECT + ( - - 44 ) + - 11 - + MIN ( ALL 28 ) + - COUNT ( * ) AS col1 @@ -42722,8 +43242,12 @@ SELECT 18 + + 80 # Datafusion - Expected - -20 # Datafusion - Expected - 91 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 20 AS col0, 91 AS col0, - ( - 79 ) * + - ( + + COUNT ( * ) ) col0 +---- +-20 +-79 +91 query I rowsort SELECT ALL 90 + - ( - 6 ) @@ -42748,8 +43272,11 @@ SELECT 71 + + + MIN ( ( 44 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) / Int64\(16\) AS col0" at position 0 and "Int64\(\-93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 64 / + 16 AS col0, - 93 AS col0 +---- +-93 +4 query I rowsort SELECT 81 + - 28 + - 73 * + 7 @@ -42896,8 +43423,12 @@ SELECT ALL 3 * ( - - 39 ) * + - 8 # Datafusion - Expected - 27 # Datafusion - Expected - -149 # Datafusion - Expected - -5039 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) AS col2" at position 0 and "Int64\(\-67\) \+ \(\- Int64\(36\)\) \+ Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 27 col2, - 67 + - + 36 + + - 46 AS col2, 70 * - 72 + - - COUNT ( * ) +---- +-149 +-5039 +27 query I rowsort label-8179 SELECT ALL MIN ( ALL 45 ) col2 @@ -43359,8 +43890,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 141 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(48\) \+ Int64\(31\) \+ Int64\(62\) AS col2" at position 0 and "Int64\(68\) / \(\- nullif\(CAST\(NULL AS Float64\), \(\- coalesce\(\(\- Int64\(74\)\), CAST\(Int64\(\-87\) AS Int32\) \* count\(DISTINCT Int64\(77\)\) \+ Int64\(42\) \+ Int64\(80\) \+ Int64\(\-75\) / count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(92\)\) \* Int64\(14\) \+ \(\- nullif\(\(\- sum\(Int64\(\-18\)\)\), Int64\(85\)\)\) \- Int64\(27\) \* Int64\(85\) \* Int64\(10\), Int64\(75\) \+ Int64\(98\) \* Int64\(\-40\) \* \(\- CAST\(NULL AS Int32\)\)\)\) \* Int64\(64\) \+ Int64\(\-80\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +141 +NULL query I rowsort SELECT 90 * + 31 @@ -43438,8 +43972,11 @@ SELECT ALL MIN ( DISTINCT - - ( + 93 ) ) - 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2201 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* \(\- Int64\(71\)\) AS col1" at position 0 and "Int64\(85\) \+ Int64\(\-31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 * - + 71 AS col1, ( ( 85 ) ) + - 31 AS col1 +---- +-2201 +54 query I rowsort SELECT 43 * 67 col2 @@ -43635,8 +44172,11 @@ SELECT - - 0 + - - 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7120 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \* Int64\(80\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 89 * + 80 AS col0, 9 AS col0 +---- +7120 +9 query II rowsort label-8319 SELECT - - 83 / - - 35, - 27 AS col0 @@ -43688,8 +44228,11 @@ SELECT DISTINCT + MAX ( ( - ( - 70 ) ) ) * 50 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 "Int64\(\-10\) / \(\- Int64\(\-69\)\) \* \(\- coalesce\(\(\- Int64\(35\)\), Int64\(\-3\) \* Int64\(\-69\) \+ \(\- \(\- coalesce\(Int64\(82\), nullif\(Int64\(\-68\), Int64\(41\) \+ \(\- Int64\(23\)\)\), Int64\(17\) \* Int64\(\-84\) \- Int64\(\-26\)\)\)\) \* Int64\(\-7\)\)\) AS col2" at position 0 and "max\(Int64\(\-63\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 / - - 69 * - COALESCE ( - + 35, - 3 * - 69 + - - COALESCE ( + + 82, NULLIF ( - 68, 41 + - + 23 ), 17 * ( - 84 ) - - 26 ) * - 7 ) AS col2, MAX ( - 63 ) AS col2 +---- +-63 +0 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -44865,8 +45408,11 @@ SELECT + 14 * - 38 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "Int64\(\-84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 AS col2, - 84 AS col2 +---- +-84 +58 query I rowsort SELECT - ( - 14 ) @@ -44952,8 +45498,11 @@ SELECT + 22 * + 85 + - 18, + 0 * 23 - 98 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 10467 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "Int64\(76\) \* Int64\(94\) \+ Int64\(36\) \* Int64\(93\) \+ Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 30 AS col1, + 76 * 94 + 36 * + 93 + + ( - 25 ) col1 +---- +10467 +30 query II rowsort label-8575 SELECT ALL + 62 AS col1, - COUNT ( * ) AS col0 @@ -45286,8 +45835,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-28\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - ( + - 28 ) AS col1, COUNT ( * ) AS col1 +---- +1 +28 query I rowsort label-8640 SELECT ( + - MIN ( + 93 ) ) @@ -45483,8 +46035,11 @@ 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\(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\. +query II valuesort SELECT - + 43 + COUNT ( * ) + + MAX ( ALL + 27 ) * - + 13 + - - 89 AS col0, MIN ( ALL - 93 ) AS col0 +---- +-304 +-93 query I rowsort label-8677 SELECT DISTINCT - 79 * - + SUM ( DISTINCT + 29 ) AS col0 @@ -45525,8 +46080,11 @@ SELECT - 19 + + 47 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 56 AS col2, 2 col2 +---- +2 +56 query I rowsort label-8685 SELECT DISTINCT + - COALESCE ( + 65, + + 22 ) * 28 + 37 * 62 * - + CAST ( + - 27 AS INTEGER ) AS col2 @@ -45798,8 +46356,11 @@ SELECT DISTINCT - 6 + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \+ min\(Int64\(16\)\) AS col2" at position 0 and "Int64\(5\) \+ \(\- Int64\(89\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 + + MIN ( ALL 16 ) AS col2, + 5 + - + 89 AS col2 +---- +-84 +19 query I rowsort SELECT ALL - 88 + 72 * 85 @@ -45850,8 +46411,11 @@ SELECT - 42 + + - ( 9 ) - + 82 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 103 # Datafusion - Expected - -1879 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-78\)\) \- Int64\(\-25\) AS col0" at position 0 and "Int64\(45\) \+ Int64\(\-37\) \* Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 78 ) - - 25 AS col0, + 45 + - 37 * 52 col0 +---- +-1879 +103 query II rowsort label-8746 SELECT DISTINCT - MIN ( ALL - - 98 ) / - - 53 AS col0, + 10 AS col2 @@ -45937,8 +46501,11 @@ SELECT ALL - 7, COUNT ( * ) + - - 58 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 10 AS col0, 31 col0 +---- +-10 +31 query I rowsort SELECT ALL 38 + 30 AS col1 @@ -46170,8 +46737,11 @@ SELECT 70 * - COUNT ( * ) - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - -468 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* Int64\(\-18\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 26 * - 18 AS col0, 36 AS col0 +---- +-468 +36 query I rowsort SELECT ALL 95 * + + 92 * + + 91 + + 29 AS col1 @@ -46931,8 +47501,11 @@ SELECT + 94 * + - 20 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, 87 AS col2 +---- +1 +87 query I rowsort SELECT - - 81 col0 @@ -47039,8 +47612,11 @@ SELECT - 20 / NULLIF ( + + 12, AVG ( + 84 ) ) * + - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-40\)\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( - 40 ) AS col0, + 41 AS col0 +---- +1 +41 query I rowsort label-8972 SELECT + 97 * + CAST ( + - 54 AS INTEGER ) * COALESCE ( - + 30, ( - COUNT ( * ) ) ) AS col2 @@ -47081,8 +47657,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 64 * + + 35 + + 50 col1, - COUNT ( * ) AS col1 +---- +-1 +-2190 query II rowsort SELECT ALL + 12 * 11, + 57 * 55 AS col1 @@ -47192,14 +47771,20 @@ SELECT - 71 * + 52 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col2" at position 0 and "nullif\(\(\- Int64\(10\)\), coalesce\(Int64\(\-62\), Int64\(\-79\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 93 col2, NULLIF ( - + 10, + + COALESCE ( - 62, - 79 ) ) AS col2 +---- +-10 +93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 AS col2, 65 AS col2 +---- +47 +65 query I rowsort label-9002 SELECT ALL - SUM ( - - 55 ) AS col1 @@ -47321,8 +47906,11 @@ SELECT + 22 / - + 85 / - COUNT ( * ) AS col0, - 1 / + + COALESCE ( + 86, + CASE # 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 "Int64\(35\) \* CAST\(NULL AS Float64\) \+ \(\- Int64\(30\)\) \* Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL - 69 AS col1, 35 * + CAST ( NULL AS FLOAT8 ) + - + 30 * 74 AS col1 +---- +-69 +NULL query I rowsort label-9025 SELECT - 62 * - 82 + + SUM ( ALL - 43 ) AS col1 @@ -47477,8 +48065,11 @@ SELECT - + CAST ( - - 32 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -3508 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) / Int64\(27\) AS col0" at position 0 and "Int64\(61\) \* Int64\(\-57\) \+ \(\- min\(Int64\(\-1\)\)\) \- Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 10 / + + 27 AS col0, 61 * + - 57 + - + MIN ( ALL - 1 ) - + + 32 AS col0 +---- +-3508 +0 query I rowsort label-9054 SELECT ALL + SUM ( DISTINCT + + 95 ) AS col0 @@ -47509,8 +48100,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - - COUNT ( * ) + - + COUNT ( * ) AS col0, - 3 / + ( 20 ) + 70 + 30 * 12 AS col0 +---- +0 +430 query I rowsort label-9060 SELECT CASE - COUNT ( * ) WHEN + 87 THEN NULL WHEN 24 THEN + CASE + + 84 WHEN 89 THEN + + 43 ELSE NULL END END AS col1 @@ -48096,8 +48690,11 @@ SELECT + 89 + 40 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col0" at position 0 and "Int64\(\-23\) / Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 21 AS col0, - 23 / 35 AS col0 +---- +0 +21 query I rowsort SELECT COALESCE ( - + 7, - - NULLIF ( - 77, + 53 ) ) AS col0 @@ -48220,8 +48817,11 @@ SELECT ALL + ( MAX ( DISTINCT + 52 ) ) - + - 17 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 58 AS col0 +---- +58 +NULL query I rowsort label-9196 SELECT - 93 * + - COUNT ( - ( - 5 ) ) @@ -48278,8 +48878,11 @@ SELECT + COUNT ( * ) + - + 80 + + - 12 - - - MAX ( ALL COALESCE ( 14, 35 ) ) AS # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-70\) AS Int32\) AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( - 70 AS INTEGER ) AS col2, + 1 AS col2 +---- +-70 +1 query I rowsort SELECT + 2 + + 45 + - 26 @@ -48309,8 +48912,11 @@ SELECT + 66 * - - 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(84\) AS Int32\)" at position 0 and "Int64\(84\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( 84 AS INTEGER ), + 84 +---- +84 +84 query I rowsort label-9213 SELECT + 18 / - 3 AS col1 @@ -48420,8 +49026,11 @@ SELECT + 83 + + 25 + - + 18 AS col0 # 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\(91\) AS col2" at position 0 and "nullif\(Int64\(44\), \(\- Int64\(20\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 91 col2, NULLIF ( 44, - + 20 ) AS col2 +---- +44 +91 query I rowsort label-9235 SELECT DISTINCT - NULLIF ( + 75, + COUNT ( * ) ) * + ( + - COUNT ( * ) ) @@ -48591,8 +49200,11 @@ SELECT DISTINCT + 91 * - COUNT ( - 62 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 AS col2, COUNT ( * ) AS col2 +---- +-58 +1 query I rowsort label-9268 SELECT ALL 7 + 9 * + COUNT ( * ) @@ -48976,8 +49588,11 @@ SELECT - 19 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\)" at position 0 and "Int64\(86\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 86, 86 +---- +86 +86 query I rowsort SELECT DISTINCT 20 + 39 * + 69 + + 91 @@ -48992,8 +49607,11 @@ SELECT ALL - - 0 + - 4 * + - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 col0, + ( + 36 ) AS col0 +---- +36 +94 query I rowsort SELECT DISTINCT 33 * + 16 AS col0 @@ -49687,8 +50305,11 @@ SELECT ALL + ( 72 ) * 19 + - 74 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - -8526 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(\-14\)\)\) \* Int64\(54\) \+ \(\- \(\- max\(Int64\(25\)\)\)\) AS col2" at position 0 and "Int64\(98\) \* Int64\(\-87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - COUNT ( ALL - 14 ) * + ( ( + 54 ) ) + - - MAX ( + 25 ) AS col2, 98 * - 87 AS col2 +---- +-29 +-8526 query II rowsort SELECT DISTINCT 97 - 9 col2, - 96 @@ -49816,8 +50437,11 @@ 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\(1\)\) AS count\(\*\)\)\) \* \(\- Int64\(\-66\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 50 * + 93 + + 37 AS col1, + NULLIF ( + - 55, 54 * + - COUNT ( * ) ) * - - 66 AS col1 +---- +-3630 +-4613 query I rowsort SELECT ALL - ( 94 ) col0 @@ -50291,8 +50915,11 @@ SELECT COUNT ( * ) / + 53 # 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\) \* Int64\(48\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 * + + 48 col2, + 60 AS col2 +---- +0 +60 query I rowsort SELECT 9 + 49 + - 9 @@ -50302,8 +50929,11 @@ SELECT 9 + 49 + - 9 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\)" at position 0 and "Int64\(\-49\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 49, - 49 +---- +-49 +-49 query I rowsort SELECT 48 * 20 * - - 45 @@ -50346,8 +50976,11 @@ SELECT 35 * NULLIF ( + - MIN ( ALL 37 ), - 38 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col2" at position 0 and "Int64\(87\) \+ Int64\(\-55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 60 AS col2, + 87 + - 55 AS col2 +---- +32 +60 query I rowsort label-9601 SELECT DISTINCT 30 * CAST ( - NULLIF ( 19, + - 2 + CASE - 78 WHEN 67 THEN + - COUNT ( * ) END * + 59 ) AS INTEGER ) * 31 + + - 39 AS col1 @@ -50382,8 +51015,11 @@ SELECT - 96 + - 31 * - + 74 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 81 AS col1, COUNT ( * ) AS col1 +---- +-81 +1 query I rowsort SELECT DISTINCT - + ( 17 ) @@ -50443,8 +51079,11 @@ SELECT DISTINCT COUNT ( * ) * + ( - 26 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col0" at position 0 and "Int64\(56\) / Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 39 col0, 56 / + 2 AS col0 +---- +-39 +28 query I rowsort label-9620 SELECT ALL - 86 + - 5 - CASE COUNT ( * ) WHEN + SUM ( DISTINCT + 74 ) + + 91 + + COUNT ( * ) * - + ( + 24 ) / 70 THEN NULL WHEN + COALESCE ( - + 69, - 84 * + 16 * + + 4 + - 68 + - + 55 / - 35 ) * - 66 THEN - 42 + - ( - 67 ) END * 60 * + CASE - - COUNT ( * ) WHEN + - 86 THEN - COUNT ( * ) WHEN + - 76 * - ( - - 54 ) THEN + COUNT ( ALL + 78 ) * - 80 * 51 - - - 72 * - COUNT ( + 55 ) END @@ -51075,8 +51714,11 @@ 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\(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\. +query II valuesort SELECT - NULLIF ( COUNT ( * ), + 38 ) AS col2, + 58 - + - 33 AS col2 +---- +-1 +91 query I rowsort SELECT 62 + - + COALESCE ( - + 75, - 53 * + 77 + + + 28 ) * + + 55 @@ -51320,8 +51962,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col1, MAX ( ALL - 21 ) col1 +---- +-1 +-21 query II rowsort SELECT ALL + 90 AS col0, + 85 @@ -51421,8 +52066,11 @@ SELECT + ( - 46 ) + - 73 + + + 72 + + 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92070 # Datafusion - Expected - 112 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) \* Int64\(\-55\) \* \(\- coalesce\(Int64\(18\), Int64\(26\) \+ count\(Int64\(75\)\)\)\) AS col0" at position 0 and "Int64\(4\) \* Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 93 * - 55 * - COALESCE ( + 18, 26 + COUNT ( ALL + ( + + 75 ) ) ) AS col0, 4 * 28 AS col0 +---- +-92070 +112 query I rowsort label-9805 SELECT - 98 * - CAST ( + 51 AS INTEGER ) * - 35 col2 @@ -51503,8 +52151,11 @@ SELECT ALL + 26 + + - 27 * + + 95 AS 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\(\-37\) \+ Int64\(10\) AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 37 + 10 AS col1, 52 AS col1 +---- +-27 +52 query I rowsort label-9821 SELECT - MIN ( DISTINCT 59 ) * + 36 * - - ( + 4 ) AS col0 @@ -51990,8 +52641,11 @@ SELECT - - 48 - 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 AS col2, 40 AS col2 +---- +30 +40 query II rowsort SELECT - + 92, 12 AS col2 @@ -52100,8 +52754,11 @@ SELECT + + 78 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4592 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) / Int64\(\-91\) \* \(\- \(\- CAST\(NULL AS Float64\)\)\) \+ Int64\(\-78\) AS col0" at position 0 and "Int64\(56\) \* Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT + ( + 37 ) / - 91 * ( - - CAST ( NULL AS FLOAT8 ) ) + - 78 AS col0, + 56 * 82 AS col0 +---- +4592 +NULL query I rowsort label-9935 SELECT DISTINCT - + ( - - COUNT ( * ) ) / + 42 + MIN ( ALL + 91 ) AS col0 @@ -52370,8 +53027,11 @@ 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\(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\. +query II valuesort SELECT ALL + 80 * + - ( - COUNT ( * ) ) AS col0, + 27 * - 67 AS col0 +---- +-1809 +80 query II rowsort label-9986 SELECT + 58 - 97 * - + 91, SUM ( - + ( + - 81 ) ) AS col0 diff --git a/data/sqlite/random/expr/slt_good_82.slt b/data/sqlite/random/expr/slt_good_82.slt index 90133e9..31c0a3f 100644 --- a/data/sqlite/random/expr/slt_good_82.slt +++ b/data/sqlite/random/expr/slt_good_82.slt @@ -98,8 +98,11 @@ SELECT - 53 * - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 109 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col2" at position 0 and "Int64\(15\) \- Int64\(\-94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 62 ) col2, + 15 - - 94 AS col2 +---- +-62 +109 query I rowsort label-11 SELECT - + NULLIF ( + + 73, - COUNT ( * ) - CASE - 14 WHEN + 12 THEN + COUNT ( * ) END ) * - 48 AS col0 @@ -828,8 +831,11 @@ SELECT DISTINCT + COALESCE ( - - 99, - 74 / CASE ( + 0 ) WHEN - 49 THEN 13 + 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 13 AS col2, + 48 AS col2 +---- +13 +48 query I rowsort label-156 SELECT ALL + + 21 - + - CAST ( NULL AS INTEGER ) / + MIN ( DISTINCT 97 ) @@ -1920,8 +1926,11 @@ SELECT COUNT ( + + 50 ) - + COUNT ( * ) * + - 24 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3800 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* count\(Int64\(\-27\)\) \* Int64\(\-76\) AS col0" at position 0 and "Int64\(7\) \+ Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 * + COUNT ( ALL - 27 ) * - 76 AS col0, 7 + + + 57 AS col0 +---- +-3800 +64 query I rowsort label-365 SELECT ALL - 4 * + CAST ( NULL AS INTEGER ) @@ -1936,8 +1945,11 @@ SELECT 60 * + ( - + 99 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -742 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(\-53\) AS col1" at position 0 and "Int64\(23\) \+ \(\- Int64\(\-71\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 14 * + - 53 AS col1, 23 + - - 71 col1 +---- +-742 +94 query I rowsort SELECT ALL + 5 * - 71 AS col0 @@ -2609,8 +2621,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 143 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \+ Int64\(98\) \+ Int64\(49\) AS col2" at position 0 and "Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 4 + + 98 + 49 col2, - 33 AS col2 +---- +-33 +143 query I rowsort SELECT 22 - - - 39 + + 73 AS col0 @@ -2636,8 +2651,11 @@ SELECT DISTINCT + 57 * + 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "Int64\(99\) \+ \(\- \(\- sum\(\(\- Int64\(\-85\)\)\)\)\) \+ \(\- CAST\(NULL AS Int32\)\) \* Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 73 AS col0, + 99 + - - SUM ( ALL - - 85 ) + - CAST ( NULL AS INTEGER ) * + + 19 AS col0 +---- +73 +NULL query I rowsort label-503 SELECT + 93 * 86 * - + MIN ( DISTINCT + 89 ) AS col0 @@ -3100,8 +3118,11 @@ SELECT + + COUNT ( - 8 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(20\)\) AS col0" at position 0 and "Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( ALL + 20 ) AS col0, 37 AS col0 +---- +1 +37 query I rowsort label-593 SELECT ALL - MAX ( DISTINCT - ( + + 21 ) ) @@ -3516,8 +3537,11 @@ NULL # 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 "Int64\(89\) AS col0" at position 0 and "Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 89 col0, 11 col0 +---- +11 +89 query I rowsort label-674 SELECT + MIN ( 53 ) * + COUNT ( * ) + 45 - + 94 @@ -3645,8 +3669,11 @@ 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\(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\. +query II valuesort 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 +---- +-2592 +12 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -3950,8 +3977,11 @@ SELECT ALL - COUNT ( * ) / 40 + 69 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 74 AS col1, + 81 AS col1 +---- +74 +81 query I rowsort label-756 SELECT + 99 / - 71 @@ -4691,8 +4721,11 @@ SELECT - 46 / - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) / \(\- Int64\(24\)\) \+ Int64\(96\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(23\) \+ Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 54 / - + 24 + + + 96 * + + CAST ( NULL AS INTEGER ) AS col1, + 23 + - 58 AS col1 +---- +-35 +NULL query I rowsort label-897 SELECT ALL + CAST ( 68 AS INTEGER ) @@ -4752,8 +4785,12 @@ SELECT ALL + 67 * + - CAST ( 38 AS INTEGER ) * - 38 - + 58 AS col1 # Datafusion - Expected - -27 # Datafusion - Expected - 36 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col2" at position 0 and "Int64\(\-32\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 27 col2, 36, - 32 col2 +---- +-27 +-32 +36 query II rowsort label-908 SELECT NULLIF ( - 62, + 13 * + 71 * + 3 + - CAST ( NULL AS INTEGER ) + 90 - + + 67 + + 83 ) AS col2, 11 AS col1 @@ -4787,14 +4824,20 @@ SELECT DISTINCT 70 * - - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 741 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col2" at position 0 and "Int64\(57\) \* Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 84 AS col2, 57 * + + 13 AS col2 +---- +741 +84 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4350 # Datafusion - Expected - 58520 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* Int64\(\-75\) AS col1" at position 0 and "Int64\(55\) \* Int64\(\-14\) \* \(\- Int64\(76\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 58 * - 75 AS col1, 55 * - 14 * + ( - + ( 76 ) ) * COUNT ( * ) AS col1 +---- +-4350 +58520 query II rowsort label-915 SELECT ALL - 57, MAX ( 74 ) AS col2 @@ -5268,8 +5311,11 @@ SELECT - COALESCE ( COALESCE ( COALESCE ( 9, - 4 ), - 61 / - 17 - - + 75 ), - - # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 2291 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \+ Int64\(23\) AS col1" at position 0 and "Int64\(29\) \* \(\- Int64\(\-79\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 22 + + 23 AS col1, + 29 * - - 79 AS col1 +---- +1 +2291 query I rowsort label-1005 SELECT ALL COALESCE ( 25, + 21, - 50 / - 65 / CASE + - 65 WHEN - - ( - 61 ) THEN - 73 END * + + 98 + 11 + 49 * 8 ) - + + 81 * 77 * - + 60 AS col0 @@ -5478,8 +5524,11 @@ SELECT ALL - 62 + 47 + - 59 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -669 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \* Int64\(30\) \+ sum\(DISTINCT Int64\(52\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-36\) / Int64\(\-17\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 24 * + + 30 + + SUM ( DISTINCT + 52 ) - COUNT ( * ) AS col2, - 36 / - 17 + - COUNT ( * ) + + - 92 AS col2 +---- +-669 +-91 query I rowsort label-1046 SELECT + + NULLIF ( COALESCE ( + COUNT ( DISTINCT 53 ), - 44 * ( + 78 ) * COUNT ( * ) + CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) + - ( + 9 ) / + + 85 * + 32 - + - COUNT ( * ) ), 91 + + + 55 ) AS col2 @@ -5674,8 +5723,11 @@ SELECT ALL - 32 + - + 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col0" at position 0 and "Int64\(68\) \+ Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 2 AS col0, + 68 + 34 AS col0 +---- +-2 +102 query I rowsort label-1083 SELECT - 22 * + - 58 * - 58 * - - CASE - 17 WHEN - - 70 * - CAST ( - - 28 AS FLOAT8 ) THEN - 31 END - 79 + + + COUNT ( * ) @@ -6310,8 +6362,11 @@ SELECT ALL - 46 * - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 # 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 "Int64\(70\) AS col1" at position 0 and "CASE coalesce\(Int64\(37\), Int64\(81\)\) WHEN avg\(Int64\(\-10\)\) \* Int64\(75\) \+ Int64\(69\) THEN NULL WHEN Int64\(75\) \- Int64\(\-9\) THEN NULL ELSE Int64\(46\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 70 AS col1, CASE + COALESCE ( 37, + 81 ) WHEN + + AVG ( + - 10 ) * 75 + + 69 THEN NULL WHEN 75 - - 9 THEN NULL ELSE + 46 END AS col1 +---- +46 +70 query I rowsort SELECT ALL + 74 + 52 @@ -6518,8 +6573,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-72\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 66 AS col2, - CASE + + 15 WHEN - 55 THEN + 61 WHEN COUNT ( + 23 ) THEN COUNT ( * ) * - 72 END AS col2 +---- +66 +NULL query I rowsort SELECT NULLIF ( + - 19, 19 ) AS col1 @@ -6576,8 +6634,11 @@ 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\(1\)\) AS count\(\*\) / \(\- Int64\(66\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 col1, - 96 * COUNT ( * ) / - ( + 66 ) AS col1 +---- +1 +95 query II rowsort SELECT ALL + - 21 AS col1, 34 AS col0 @@ -6657,8 +6718,11 @@ SELECT - 11 + - - 97 AS col1 # 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\(\-87\) \+ Int64\(55\) AS col2" at position 0 and "Int64\(\-60\) \- sum\(CASE Int64\(\-18\) WHEN Int64\(65\) \+ Int64\(53\) \* Int64\(97\) THEN Int64\(\-93\) ELSE NULL END\) \* Int64\(\-31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 87 + 55 AS col2, - 60 - SUM ( ALL + CASE - 18 WHEN + 65 + 53 * 97 THEN + - 93 ELSE NULL END ) * + - 31 AS col2 +---- +-32 +NULL query I rowsort label-1272 SELECT ALL CASE + 14 WHEN + 18 THEN - 93 END * 80 * + CAST ( COUNT ( * ) AS INTEGER ) + + CAST ( - - 15 AS INTEGER ) @@ -6689,8 +6753,11 @@ SELECT 75 * - CAST ( + - 36 AS INTEGER ) + 69 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\(21\) / Int64\(24\) AS col2" at position 0 and "Int64\(64\) / Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 21 / 24 AS col2, 64 / 52 col2 +---- +0 +1 query I rowsort label-1278 SELECT - 32 * CAST ( NULL AS INTEGER ) + 88 @@ -7016,8 +7083,11 @@ SELECT ALL - ( - COUNT ( * ) ) - - NULLIF ( - + 6, + COUNT ( * ) + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1848 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(\-88\) AS col1" at position 0 and "\(\- max\(DISTINCT Int64\(19\)\)\) \* coalesce\(Int64\(14\), Int64\(\-44\) / Int64\(20\), Int64\(\-52\) / Int64\(7\) \- \(\- Int64\(12\)\)\) \* Int64\(25\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 * - 88 AS col1, - MAX ( DISTINCT + + 19 ) * + COALESCE ( + 14, - 44 / + + 20, - 52 / 7 - - + 12 ) * 25 * CAST ( NULL AS INTEGER ) AS col1 +---- +-1848 +NULL query I rowsort SELECT ALL 88 * - ( + + 44 ) AS col1 @@ -7334,8 +7404,11 @@ SELECT ALL 85, ( - 2 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "Int64\(\-91\) \* Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 AS col1, - 91 * + 1 col1 +---- +-91 +41 query I rowsort label-1400 SELECT + COUNT ( * ) + + ( - + 73 ) + - 67 - + 2 * + NULLIF ( - + CAST ( - - CAST ( NULL AS FLOAT8 ) AS INTEGER ), + 98 ) + - 35 * ( MIN ( + 6 ) ) * + 53 + - 92 AS col1 @@ -8056,8 +8129,11 @@ SELECT 24 + - + 23 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col1" at position 0 and "Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 40 AS col1, - 62 AS col1 +---- +-40 +-62 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -8171,8 +8247,11 @@ SELECT DISTINCT + 63 * - - 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 249857 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col1" at position 0 and "Int64\(72\) \+ Int64\(35\) \* Int64\(83\) \* Int64\(86\) \- Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 45 col1, 72 + + 35 * + 83 * + 86 - 45 AS col1 +---- +-45 +249857 query II rowsort SELECT DISTINCT - 99 * + 12, + 7 * ( - 92 ) AS col1 @@ -8427,8 +8506,11 @@ SELECT + 11 + + + COUNT ( * ) + - 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6930 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-77\) AS Int32\) \* Int64\(90\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - 77 AS INTEGER ) * 90 AS col0, + 91 col0 +---- +-6930 +91 query I rowsort SELECT - 11 + - 24 @@ -8794,8 +8876,11 @@ SELECT 9 / MIN ( ALL + 65 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \+ \(\- Int64\(14\)\) 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 II valuesort SELECT ALL + 82 + + - ( 14 ) AS col2, - MIN ( ALL - 31 ) AS col2 +---- +31 +68 query I rowsort SELECT ( 95 ) + - 88 @@ -9747,8 +9832,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3313 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \* Int64\(37\) \+ Int64\(20\) AS col2" at position 0 and "Int64\(52\) \- Int64\(\-17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 89 * + 37 + + 20 AS col2, 52 - + - 17 col2 +---- +3313 +69 query I rowsort SELECT + 26 * - 26 AS col2 @@ -9915,8 +10003,11 @@ SELECT CAST ( + 80 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "Int64\(62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 82 AS col1, + 62 AS col1 +---- +62 +82 query I rowsort label-1894 SELECT - 69 + - + 79 - - CAST ( + + CASE + 9 WHEN - - ( 94 ) + + 91 THEN - 44 * 30 - - 79 END AS INTEGER ) / + 36 AS col1 @@ -10005,8 +10096,11 @@ SELECT + 26 + 20 AS col2, - 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 59 AS col2, COUNT ( * ) AS col2 +---- +1 +59 query I rowsort SELECT ALL 5 + - 26 * + 24 @@ -10534,8 +10628,11 @@ SELECT - NULLIF ( + 64, MIN ( DISTINCT - 86 ) / CAST ( NULL AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \+ Int64\(30\) AS col2" at position 0 and "Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 + 30 AS col2, - 12 col2 +---- +-12 +-40 query I rowsort label-2010 SELECT ALL - COUNT ( * ) + - + 38 col1 @@ -11285,8 +11382,11 @@ SELECT + 82 + + 37 + 54 * + SUM ( ( + 52 ) ) * - - ( 30 ) + - 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 20 AS col1, + 63 AS col1 +---- +20 +63 query I rowsort label-2153 SELECT ALL - COALESCE ( - COUNT ( 37 ), - - COUNT ( * ) + - + 75 ) * - 88 col0 @@ -11306,14 +11406,20 @@ SELECT ALL 79 + + 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(29\), Int64\(75\)\) AS col1" at position 0 and "Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( + + 29, + 75 ) AS col1, + 98 AS col1 +---- +29 +98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(62\), Int64\(99\) \* \(\- Int64\(\-96\)\) \- Int64\(93\)\)\) \+ \(\- \(\- Int64\(85\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( 62, 99 * - - 96 - + 93 ) + - - ( + 85 ) + COUNT ( * ) AS col2, - COUNT ( * ) AS col2 +---- +-1 +24 query I rowsort SELECT DISTINCT 36 * - - 57 @@ -11339,8 +11445,11 @@ SELECT + COUNT ( * ) / - + 23 - + COUNT ( * ) - 42 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -869 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* Int64\(79\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- Int64\(\-70\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 11 * + + 79 * + COUNT ( * ) AS col2, - ( - 70 ) AS col2 +---- +-869 +70 query I rowsort SELECT ALL - - ( + + 4 ) AS col0 @@ -11585,8 +11694,11 @@ SELECT DISTINCT - COUNT ( * ) col0, + 52 * - - MIN ( ALL + + 38 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 105 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(27\)\) AS Int32\) \+ CAST\(\(\- sum\(DISTINCT Int64\(\-29\)\)\) AS Int32\) AS col1" at position 0 and "Int64\(20\) \- Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - + 27 AS INTEGER ) + + CAST ( - SUM ( DISTINCT - 29 ) AS INTEGER ) col1, 20 - + ( + - 85 ) AS col1 +---- +105 +2 query I rowsort SELECT DISTINCT - 53 + - 51 @@ -11827,8 +11939,12 @@ SELECT - 75 * + 37 + - + 36 * + + SUM ( + 17 ) # Datafusion - Expected - -84 # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort SELECT DISTINCT - 84 AS col1, COUNT ( * ) AS col1, - - CAST ( NULL AS FLOAT8 ) +---- +-84 +1 +NULL query II rowsort label-2255 SELECT - + COUNT ( * ) / MAX ( + + ( - 28 ) ) AS col0, 7 @@ -12207,8 +12323,11 @@ SELECT 14 * + 29 * + 65 AS col2, + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 8432 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col1" at position 0 and "coalesce\(coalesce\(Int64\(31\), \(\- max\(Int64\(6\)\)\)\), \(\- sum\(Int64\(\-89\)\)\), \(\- Int64\(\-89\)\) \* Int64\(87\) \* Int64\(\-92\)\) \* Int64\(34\) \* \(\- \(\- min\(Int64\(8\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 4 AS col1, + COALESCE ( + COALESCE ( + 31, + - MAX ( 6 ) ), - SUM ( + - 89 ), - - 89 * + + 87 * - 92 ) * ( + 34 ) * - - MIN ( 8 ) AS col1 +---- +-4 +8432 query I rowsort SELECT ALL - 7 - - - 79 AS col2 @@ -12270,8 +12389,11 @@ SELECT 16 + 12 + + 29 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(36\) WHEN Int64\(\-74\) \* Int64\(\-72\) THEN NULL ELSE min\(DISTINCT CASE Int64\(47\) WHEN Int64\(92\) \* Int64\(\-91\) THEN NULL ELSE CAST\(NULL AS Int32\) END\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) END AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +0 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -12924,8 +13046,11 @@ SELECT 90 * - 51 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "Int64\(\-60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 AS col2, - 60 AS col2 +---- +-60 +71 query I rowsort label-2462 SELECT ALL COUNT ( * ) + + 84 * - 52 AS col2 @@ -13590,8 +13715,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 11 * + 80 * + 39 + - - COUNT ( * ) / + - MAX ( DISTINCT + 39 ) + - - 43 AS col1, ( + + 37 ) + - - COUNT ( * ) AS col1 +---- +-34277 +38 query II rowsort label-2586 SELECT - 82, 5 * 31 * + + ( - 96 ) * + SUM ( ALL - 77 ) col0 @@ -13898,8 +14026,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, COUNT ( * ) * - 21 AS col1 +---- +-21 +1 query I rowsort label-2646 SELECT + + COUNT ( ALL + 75 ) * + ( - + 25 ) col1 @@ -13924,8 +14055,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 60 AS col2, - 64 + - COUNT ( * ) AS col2 +---- +-60 +-65 query II rowsort SELECT 97 * - 21 - - 17 * 45, - 47 AS col2 @@ -13941,8 +14075,11 @@ SELECT DISTINCT SUM ( ALL - 78 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 4897 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-76\) \+ Int64\(59\) \* Int64\(84\) \+ Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 85 ) - + COUNT ( * ) AS col1, - 76 + + 59 * + 84 + 17 AS col1 +---- +-86 +4897 query I rowsort label-2654 SELECT NULLIF ( - 9, + COUNT ( * ) + - 86 - + + 82 ) @@ -14136,8 +14273,11 @@ SELECT DISTINCT - + 13 - + + 89 - - - 28 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1000 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \* Int64\(50\) AS col2" at position 0 and "CAST\(Int64\(\-2\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 20 * + 50 col2, CAST ( - 2 AS INTEGER ) AS col2 +---- +-2 +1000 query I rowsort label-2692 SELECT 12 + ( 97 ) / - + 9 @@ -14533,8 +14673,11 @@ SELECT ALL + 39, 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 17 AS col0, 21 AS col0 +---- +-17 +21 query I rowsort label-2767 SELECT + 25 + - MAX ( + 45 ) @@ -14821,8 +14964,11 @@ SELECT ALL + 85 - + NULLIF ( 29, MAX ( 59 ) * + CAST ( NULL AS INTEGER ) * - NUL # 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\(33\) AS col0" at position 0 and "\(\- sum\(DISTINCT Int64\(\-8\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 col0, - SUM ( DISTINCT - 8 ) col0 +---- +33 +8 query II rowsort label-2822 SELECT 68 + - COUNT ( * ) + - 17 AS col0, COUNT ( * ) / + 79 + - + 31 @@ -15358,8 +15504,11 @@ SELECT ALL - COUNT ( * ), - 47 + 52 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 AS col2, 35 col2 +---- +35 +39 query I rowsort SELECT 87 + - - COALESCE ( 69, - 92 * 4 + + 29 * 19 ) * + 48 col2 @@ -15399,8 +15548,11 @@ 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\(31\) / Int64\(\-74\) \* \(\- Int64\(\-36\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 AS col2, 31 / + - 74 * - - 36 col2 +---- +0 +30 query I rowsort SELECT 38 + + ( + + 90 ) AS col0 @@ -15809,8 +15961,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) / \(\- \(\- Int64\(\-27\)\)\) AS col2" at position 0 and "\(\- nullif\(Int64\(17\), CAST\(NULL AS Int32\) \* Int64\(75\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 29 / - - ( + - 27 ) AS col2, + ( - NULLIF ( + 17, CAST ( NULL AS INTEGER ) * 75 ) ) AS col2 +---- +-1 +-17 query I rowsort SELECT + 44 + + - 96 AS col0 @@ -15965,8 +16120,11 @@ SELECT + 58 * - COUNT ( * ) * + + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78623 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(78\) \* Int64\(\-24\) \* Int64\(42\) AS col0" at position 0 and "Int64\(29\) \- CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) + + 78 * - 24 * + 42 AS col0, 29 - CAST ( NULL AS INTEGER ) AS col0 +---- +-78623 +NULL query I rowsort label-3040 SELECT ALL - - 43 + - SUM ( ALL + 2 ) AS col0 @@ -16167,8 +16325,11 @@ SELECT ALL + 32 * ( - COUNT ( * ) ) AS col0 # 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\(91\) / Int64\(\-53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 42 AS col0, 91 / - 53 AS col0 +---- +-1 +42 query I rowsort SELECT DISTINCT ( - 3 ) * + 93 AS col2 @@ -16264,8 +16425,11 @@ SELECT - - 65 - 99 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 3550 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "Int64\(71\) \* Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 AS col2, 71 * + 50 col2 +---- +3550 +53 query II rowsort SELECT - 76 AS col2, 23 AS col0 @@ -16443,8 +16607,12 @@ SELECT + 2 + + - COALESCE ( - ( 8 ), + 19, + + 24 + COUNT ( * ) ) - 41 + - + 99 # Datafusion - Expected - 1340 # Datafusion - Expected - 15 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(15\)\) AS col2" at position 1 and "Int64\(99\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 85 - + - 15 * + 95, + MAX ( 15 ) AS col2, + 99 AS col2 +---- +1340 +15 +99 query I rowsort SELECT - 29 + - + 99 @@ -16695,8 +16863,12 @@ SELECT + COUNT ( * ) * 45 AS col0 # Datafusion - Expected - 135 # Datafusion - Expected - 35 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \+ \(\- \(\- Int64\(84\)\)\) AS col0" at position 0 and "Int64\(\-38\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 51 + - - ( + 84 ) AS col0, 35, + - 38 col0 +---- +-38 +135 +35 query II rowsort SELECT ALL - 38 AS col2, + 57 @@ -17074,8 +17246,11 @@ SELECT + 48 * + 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-76\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, - 76 * COUNT ( * ) AS col0 +---- +-76 +1 query I rowsort label-3252 SELECT - 89 * + SUM ( - 11 ) @@ -17423,8 +17598,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 5270 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "Int64\(62\) \* Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 AS col2, + 62 * + + 85 AS col2 +---- +46 +5270 query II rowsort label-3317 SELECT + 1 AS col2, - COALESCE ( ( - 93 ), 39 * + 95 * + - COUNT ( * ) / 87, MIN ( ALL + 41 ) / - 25 ) * + - SUM ( ALL - CAST ( NULL AS INTEGER ) ) / 79 + 56 - - ( - + 32 ) + + 73 * - CAST ( - - COUNT ( * ) AS INTEGER ) + 35 - 22 @@ -17462,8 +17640,11 @@ SELECT ALL - 20, COALESCE ( COUNT ( * ), 94 * + 90 * MIN ( ALL - 12 ), + 66 * + # 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 col1" at position 0 and "Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 62 AS col1, - 16 AS col1 +---- +-16 +-62 query II rowsort SELECT 39, 80 AS col0 @@ -17590,8 +17771,11 @@ SELECT ALL + 97 * COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5185 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* Int64\(61\) AS col0" at position 0 and "Int64\(\-77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 85 * 61 col0, - 77 AS col0 +---- +-77 +5185 query I rowsort SELECT ALL 2 * - 75 AS col1 @@ -18383,8 +18567,11 @@ 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\(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\. +query II valuesort SELECT 1 col1, - 34 + + + 30 + NULLIF ( 59 - - COUNT ( * ) * 59, + 8 ) / ( COUNT ( * ) * - 8 ) * 19 AS col1 +---- +-270 +1 query I rowsort SELECT + - ( 7 ) @@ -18530,8 +18717,11 @@ SELECT DISTINCT COUNT ( + CAST ( NULL AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2040 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \* \(\- Int64\(85\)\) AS col1" at position 0 and "Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 24 * - + 85 AS col1, + 89 AS col1 +---- +-2040 +89 query I rowsort SELECT ALL 30 * 75 AS col0 @@ -18607,8 +18797,11 @@ SELECT 39 - + - 46 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(15\)\) AS col2" at position 0 and "\(\- Int64\(24\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( 15 ) AS col2, - ( 24 ) AS col2 +---- +-24 +1 query I rowsort SELECT ALL - 70 + - 4 @@ -18688,8 +18881,11 @@ SELECT COUNT ( * ) * + CAST ( + 83 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(\-45\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 * - 45 * - + CAST ( NULL AS INTEGER ) AS col0, 52 AS col0 +---- +52 +NULL query I rowsort SELECT 1 + 77 @@ -19015,8 +19211,11 @@ SELECT + 85 * - MIN ( 23 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(83\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( ALL 83 ) AS col2, COUNT ( * ) AS col2 +---- +1 +1 query I rowsort label-3625 SELECT + 55 + + 73 + - 29 * 26 * - MAX ( + - 28 ) @@ -19288,8 +19487,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col0" at position 0 and "Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 80 AS col0, - 51 col0 +---- +-51 +-80 query II rowsort label-3678 SELECT ALL COUNT ( * ) - + COUNT ( + 4 ), - COALESCE ( 23, - + COALESCE ( + 63, - - 28 ) / - 66 ) AS col0 @@ -19376,8 +19578,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 109616 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* \(\- Int64\(\-62\)\) \* Int64\(68\) AS col2" at position 0 and "Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 * - - 62 * ( + 68 ) AS col2, - 46 AS col2 +---- +-46 +109616 query I rowsort SELECT DISTINCT + 37 + - + 26 @@ -20065,8 +20270,11 @@ SELECT ALL - 37 - - 20 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 col1" at position 0 and "Int64\(\-2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 24 AS col1, - 2 AS col1 +---- +-2 +-24 query I rowsort label-3828 SELECT CAST ( NULL AS INTEGER ) * - 6 AS col0 @@ -20760,8 +20968,11 @@ SELECT ALL + 47 + 50 * - 14, - 23 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8196 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* \(\- Int64\(98\)\) \+ Int64\(\-60\) \- Int64\(40\) \+ Int64\(\-75\) \- \(\- Int64\(\-83\)\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 81 ) * - + 98 + - 60 - + 40 + - 75 - - - 83 AS col2, + 30 AS col2 +---- +-8196 +30 query I rowsort SELECT ALL ( 42 ) * - - 2 + - 58 @@ -20786,8 +20997,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ Int64\(57\) AS col1" at position 0 and "\(\- sum\(Int64\(38\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 30 + + 57 AS col1, - SUM ( + 38 ) col1 +---- +-38 +87 query I rowsort label-3965 SELECT CAST ( + 63 AS INTEGER ) / - + 91 @@ -20873,8 +21087,11 @@ SELECT ALL 91 * + + 57 AS col1, - 76 * + 85 * - 19 - + 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3513 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* CAST\(Int64\(\-56\) AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(97\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 61 * + + CAST ( + - 56 AS INTEGER ) * + COUNT ( * ) + + + 97 AS col0, + 1 AS col0 +---- +1 +3513 query I rowsort label-3982 SELECT ALL + + 53 / 53 * - + SUM ( ALL - + 33 ) @@ -21776,8 +21993,11 @@ SELECT DISTINCT + 76 + - 92 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "CAST\(CASE Int64\(17\) WHEN \(\- avg\(Int64\(\-33\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(5\) THEN \(\- CASE Int64\(2\) WHEN \(\- Int64\(\-34\)\) \* Int64\(21\) \* \(\- count\(Int64\(54\)\)\) THEN NULL ELSE Int64\(35\) \+ Int64\(50\) END\) / Int64\(74\) \+ count\(Int64\(\-60\)\) / Int64\(62\) WHEN Int64\(15\) \* Int64\(3\) \* Int64\(20\) \+ Int64\(16\) \* avg\(CAST\(Int64\(92\) AS Int32\)\) THEN NULL END AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +25 +NULL query I rowsort SELECT 98 * - - 14 @@ -21877,8 +22097,11 @@ SELECT ALL + 61 - 87 * CAST ( - ( + 79 ) AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 96 AS col1, + 86 AS col1 +---- +-96 +86 query I rowsort SELECT ALL + 92 * - 17 * + 54 AS col2 @@ -22212,8 +22435,11 @@ SELECT ALL + ( - - 67 ) * - 41 - + 4 + - + MIN ( DISTINCT - 0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 15 AS col0, 19 AS col0 +---- +15 +19 query I rowsort SELECT - 55 * 40 AS col0 @@ -22530,8 +22756,11 @@ SELECT 32 * - 30 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(27\)\) \* \(\- Int64\(0\)\) \+ sum\(Int64\(29\)\) AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - + 27 ) * - - 0 + + SUM ( ALL + + 29 ) AS col2, + 91 AS col2 +---- +29 +91 query I rowsort SELECT 71 + + 95 - 3 - + 44 AS col1 @@ -22767,14 +22996,20 @@ SELECT 61 + + - 40 + + - 26 + - COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col2" at position 0 and "min\(Int64\(\-66\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 92 col2, MIN ( ALL - 66 ) AS col2 +---- +-66 +92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-32\)\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(92\), Int64\(\-20\) \* \(\- Int64\(8\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(90\) / nullif\(\(\- Int64\(11\)\), \(\- \(\- max\(Int64\(54\)\)\)\) / Int64\(\-30\)\) \+ Int64\(40\)\) AS col0" at position 0 and "CAST\(Int64\(18\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( - 32 ) * + COALESCE ( + COUNT ( * ), + 92, - 20 * - + 8 + COUNT ( * ) + + 90 / + NULLIF ( ( - + 11 ), - - MAX ( 54 ) / - 30 ) + + + 40 ) AS col0, CAST ( 18 AS INTEGER ) AS col0 +---- +1 +18 query I rowsort label-4343 SELECT ALL COUNT ( * ) * ( - COALESCE ( - + 94, + 3 * 83 + - - COUNT ( * ) ) ) @@ -22859,8 +23094,11 @@ 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\(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\. +query II valuesort SELECT - - 64 * + 47 * - COUNT ( * ) AS col0, + COALESCE ( + + COUNT ( * ), - 78 + 2 + + 56 ) + - 4 AS col0 +---- +-3 +-3008 query I rowsort label-4359 SELECT ALL - 15 * CASE + COUNT ( * ) WHEN + - 25 + - 36 THEN - ( + 33 ) * + + CASE - 89 WHEN - + 81 - + 97 * + 75 - + 35 / - COUNT ( - 13 ) THEN + + 16 * 51 WHEN 46 * + 41 THEN + ( MAX ( ( - - 99 ) ) ) + 25 ELSE - 19 END * COUNT ( * ) + - - 37 + 59 / 70 ELSE - ( ( 48 ) ) END - 88 AS col1 @@ -23187,8 +23425,11 @@ SELECT MIN ( DISTINCT + 48 ) + + SUM ( DISTINCT + + 33 ) + - 74 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 135 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \+ Int64\(33\) \+ max\(Int64\(44\)\) \+ \(\- \(\- coalesce\(Int64\(49\), Int64\(39\), \(\- \(\- CAST\(\(\- avg\(DISTINCT Int64\(87\)\)\) AS Int32\)\)\)\)\)\) \+ Int64\(22\) \* count\(Int64\(1\)\) AS count\(\*\) / CAST\(NULL AS Int32\) \* Int64\(66\) \* nullif\(Int64\(\-96\), Int64\(35\)\) \- \(\- CAST\(Int64\(\-63\) AS Int32\)\) \+ Int64\(19\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \- \(\- Int64\(92\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(91\) \+ Int64\(0\) \+ Int64\(\-47\) \+ Int64\(\-67\) / Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +135 +NULL query I rowsort label-4422 SELECT 41 * + CAST ( NULL AS INTEGER ) AS col1 @@ -23593,8 +23834,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( ALL + 92 ) AS col1, - MAX ( - + 82 ) * 28 * - + COUNT ( * ) col1 +---- +-2296 +-92 query I rowsort label-4498 SELECT ALL 90 + - 50 + - - MIN ( ALL + + 54 ) + ( 25 ) * + + 7 * - - COUNT ( * ) @@ -23669,8 +23913,11 @@ SELECT ALL - CAST ( - ( - - COALESCE ( + - 92, + 15 * - 46 * - 56, - 37 ) ) AS I # 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 "\(\- CASE Int64\(83\) WHEN \(\- \(\- min\(Int64\(76\)\)\)\) THEN Int64\(\-18\) / Int64\(\-29\) \* \(\- CAST\(Int64\(2\) AS Float64\)\) \- \(\- Int64\(\-16\)\) \+ Int64\(12\) \- Int64\(78\) WHEN \(\- \(\- \(\- max\(Int64\(93\)\)\)\)\) \* Int64\(24\) THEN NULL ELSE NULL END\) \- Int64\(\-40\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - CASE ( + 83 ) WHEN - ( - MIN ( ALL + 76 ) ) THEN - 18 / - 29 * + - CAST ( + 2 AS FLOAT8 ) - - - 16 + 12 - + 78 WHEN - - ( - + MAX ( 93 ) ) * + 24 THEN NULL ELSE NULL END - + ( - 40 ) AS col1, 26 AS col1 +---- +26 +NULL query I rowsort label-4512 SELECT ALL 20 / 14 @@ -23880,8 +24127,11 @@ SELECT DISTINCT 38 / COUNT ( * ) / + - COALESCE ( + 54, 51 + + COUNT ( * ) ) AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 AS col0, 14 AS col0 +---- +14 +88 query I rowsort label-4552 SELECT 74 * + + MAX ( ALL + COALESCE ( + CAST ( NULL AS INTEGER ), + 33 ) ) - - + 67 / 94 * 67 + + + 91 + 65 @@ -23950,8 +24200,11 @@ SELECT ALL - 59 / + 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 83 AS col2, + 28 AS col2 +---- +28 +83 query I rowsort SELECT DISTINCT - + 71 * 62 + - 58 col0 @@ -24112,8 +24365,11 @@ SELECT + 56 + 81 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 127 # Datafusion - Expected - -8846 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \+ Int64\(32\) \+ Int64\(12\) AS col0" at position 0 and "\(\- max\(Int64\(83\)\)\) \* Int64\(33\) \* Int64\(3\) \- Int64\(21\) \+ CAST\(avg\(Int64\(\-12\)\) AS Int32\) \* Int64\(50\) \- \(\- \(\- min\(Int64\(8\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 83 + 32 + 12 AS col0, - MAX ( ALL 83 ) * 33 * + + 3 - + 21 + + CAST ( + AVG ( ALL - 12 ) AS INTEGER ) * + 50 - - ( + - MIN ( + 8 ) ) AS col0 +---- +-8846 +127 query I rowsort label-4595 SELECT DISTINCT - 14 / + 93 AS col1 @@ -24192,8 +24448,12 @@ 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\(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\. +query III valuesort SELECT + 1 AS col0, + 95 + + - 42 * + + ( - ( COUNT ( * ) ) ) - 4 / + 72 * + + 14 AS col2, + 88 * 45 AS col2 +---- +1 +137 +3960 query I rowsort SELECT 86 + 19 AS col1 @@ -24229,8 +24489,11 @@ SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) * + + 11 AS col2, - COUNT ( * ) # 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 "Int64\(69\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 AS col2, + 13 col2 +---- +13 +69 query I rowsort SELECT ALL 17 + - - 86 AS col0 @@ -24260,8 +24523,11 @@ SELECT 14 - + 65 # 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 "\(\- CASE Int64\(\-29\) WHEN \(\- Int64\(36\)\) \+ Int64\(11\) \+ Int64\(\-97\) \- Int64\(86\) THEN Int64\(\-52\) \* Int64\(46\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 34 AS col0, - CASE - 29 WHEN - + ( 36 ) + + 11 + - 97 - + + 86 THEN - 52 * + 46 END AS col0 +---- +34 +NULL query II rowsort label-4623 SELECT DISTINCT + 58 + + COUNT ( * ) * - - MAX ( ALL - 99 ), + 94 AS col1 @@ -24869,8 +25135,11 @@ SELECT ALL + COUNT ( * ) + 86 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(4\) \* \(\- \(\- Int64\(44\)\)\) \* \(\- CASE Int64\(34\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- avg\(Int64\(73\)\)\) \+ Int64\(93\) WHEN Int64\(23\) THEN NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT COUNT ( * ) + + COUNT ( * ) col1, 4 * - ( - + 44 ) * ( - + CASE + 34 WHEN + COUNT ( * ) THEN + - COUNT ( * ) + - + AVG ( 73 ) + + 93 WHEN + + 23 THEN NULL END ) AS col1 +---- +2 +NULL query II rowsort label-4740 SELECT DISTINCT + COUNT ( * ) + - 92 AS col2, + 70 - + - 89 + + - 38 @@ -25048,8 +25317,11 @@ SELECT 30 * - 1 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 111 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col0" at position 0 and "Int64\(73\) \+ Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 66 col0, + 73 + 38 AS col0 +---- +-66 +111 query I rowsort label-4774 SELECT - 87 / + ( 58 ) - NULLIF ( 54, ( 43 ) * + 59 / - 76 + + 23 ) - + NULLIF ( - 92, + COUNT ( * ) * + 66 + - ( + 2 ) - 2 ) * 87 @@ -25773,8 +26045,11 @@ SELECT ALL - + COALESCE ( + ( 27 ), - 34 ) AS col0, - ( + + 83 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(66\)\)\) AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( + + 66 ) AS col1, + 47 AS col1 +---- +-1 +47 query I rowsort label-4913 SELECT 50 + CAST ( - + 14 AS INTEGER ) @@ -26298,8 +26573,11 @@ SELECT DISTINCT ( + 21 ) * ( + 97 ) + + COUNT ( * ) AS col0 # 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 "Int64\(0\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 0 AS col1, 75 AS col1 +---- +0 +75 query I rowsort SELECT + 20 * + + 39 * - 69 + + 64 + - - 75 AS col1 @@ -27267,8 +27545,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-46\)\)\) AS col1" at position 0 and "\(\- Int64\(\-94\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - MIN ( - 46 ) ) AS col1, - ( - 94 ) col1 +---- +46 +94 query I rowsort SELECT ALL + + ( 7 ) AS col1 @@ -27511,8 +27792,12 @@ NULL # Datafusion - Expected - -75 # Datafusion - Expected - 70 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col0" at position 0 and "Int64\(\-48\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 75 AS col0, 70 AS col1, - 48 AS col0 +---- +-48 +-75 +70 query I rowsort label-5248 SELECT 3 + + MAX ( 24 ) / - - 33 * + - 79 AS col2 @@ -27619,8 +27904,11 @@ SELECT 84 * - + NULLIF ( - 56, + NULLIF ( - - 46, NULLIF ( + 74, + 69 ) ) ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -1375295 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col2" at position 0 and "\(\- Int64\(13\)\) \* Int64\(38\) \* Int64\(29\) \* Int64\(96\) \+ Int64\(66\) / Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 AS col2, - ( 13 ) * 38 * 29 * + 96 + 66 / 37 AS col2 +---- +-1375295 +84 query I rowsort label-5269 SELECT ALL + 98 - - + 80 / + 76 + + 69 - + + COUNT ( * ) @@ -28085,14 +28373,20 @@ SELECT CASE + 86 WHEN 87 / CAST ( NULL AS INTEGER ) THEN - - 72 + 12 ELSE + 20 E # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col2" at position 0 and "Int64\(\-50\) / Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 88 AS col2, - 50 / + ( + 92 ) AS col2 +---- +0 +88 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - -882 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col1" at position 0 and "Int64\(42\) \* Int64\(\-21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 97 AS col1, 42 * - 21 AS col1 +---- +-882 +-97 query I rowsort SELECT - 60 * + + 72 + - 61 @@ -28103,8 +28397,12 @@ SELECT - 60 * + + 72 + - 61 # Datafusion - Expected - -84 # Datafusion - Expected - -1332 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* Int64\(\-36\) AS col1" at position 1 and "Int64\(92\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 84, 37 * - 36 AS col1, + 92 AS col1 +---- +-1332 +-84 +92 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -28249,8 +28547,11 @@ SELECT ALL + COUNT ( * ), - 57 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 5 AS col1, 63 AS col1 +---- +5 +63 query I rowsort label-5387 SELECT + 58 / - SUM ( - 39 ) @@ -28276,8 +28577,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 17 AS col1, COUNT ( * ) + - 27 AS col1 +---- +-17 +-26 query I rowsort label-5392 SELECT 32 + - 90 * + COUNT ( * ) * + 90 @@ -29443,8 +29747,11 @@ SELECT ALL 95, - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 1091 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 0 and "Int64\(85\) \* Int64\(13\) \- Int64\(\-10\) \+ Int64\(\-47\) \+ Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 AS col0, + 85 * + 13 - - 10 + - 47 + + 23 AS col0 +---- +1091 +11 query II rowsort label-5615 SELECT ALL + 55 + + 0 / - + 65 + 76 AS col2, 89 + COUNT ( DISTINCT 35 ) @@ -29683,8 +29990,11 @@ SELECT ALL + 97 * - 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 150 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ \(\- Int64\(\-98\)\) AS col2" at position 0 and "CAST\(Int64\(74\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 52 + - - 98 AS col2, CAST ( + + 74 AS INTEGER ) col2 +---- +150 +74 query II rowsort label-5661 SELECT ALL - 24 + + NULLIF ( - 27, - + COUNT ( * ) ), + ( COUNT ( * ) ) AS col1 @@ -29917,8 +30227,11 @@ SELECT + + 94 * - MIN ( ALL - - 53 ) + - - 89 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col2" at position 0 and "Int64\(67\) \+ Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 49 AS col2, 67 + - 79 AS col2 +---- +-12 +-49 query I rowsort label-5704 SELECT ALL - CAST ( + + 5 AS INTEGER ) AS col1 @@ -29985,8 +30298,12 @@ SELECT - 77 * + MAX ( - 26 ) AS col2 # Datafusion - Expected - 1118 # Datafusion - Expected - -28 # Datafusion - Expected - 165 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-43\)\)\) \* Int64\(26\) AS col2" at position 0 and "Int64\(74\) \+ Int64\(91\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + ( + ( + ( - SUM ( - 43 ) ) ) ) * 26 AS col2, + 28 * ( - COUNT ( * ) ) AS col0, 74 + + 91 AS col2 +---- +-28 +1118 +165 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -30118,8 +30435,12 @@ SELECT - 74 * - COUNT ( * ) AS col1 # Datafusion - Expected - -7380 # Datafusion - Expected - NULL # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* Int64\(\-90\) AS col2" at position 0 and "\(\- nullif\(Int64\(5\), \(\- Int64\(47\)\) \* Int64\(38\) \* Int64\(\-42\)\)\) / Int64\(1\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 82 * - 90 col2, - ( + CAST ( NULL AS INTEGER ) ), + - NULLIF ( 5, ( - + 47 ) * 38 * - 42 ) / + 1 AS col2 +---- +-5 +-7380 +NULL query I rowsort label-5741 SELECT ALL - 77 / 70 + + + 72 AS col1 @@ -31509,8 +31830,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 74 * - - COUNT ( * ) AS col0, 44 AS col0 +---- +44 +74 query I rowsort SELECT 23 + - 56 + - - 87 @@ -31774,8 +32098,11 @@ SELECT + 48 * - 57 - 11 # 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 "Int64\(86\) \+ Int64\(\-89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 0 AS col1, 86 + - 89 AS col1 +---- +-3 +0 query II rowsort label-6059 SELECT - 2 AS col2, 81 * - - COUNT ( * ) + COUNT ( DISTINCT - 76 ) + - + 45 + - + MIN ( + - 65 ) + - 82 * + 18 * - + 81 * + 99 * + COUNT ( * ) @@ -31878,8 +32205,11 @@ SELECT ALL - + 2 * + 28 * - + NULLIF ( 45, + - 53 / + 94 * + - 97 + - 41 ) * 3 c # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-8\) \- count\(DISTINCT Int64\(80\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, - 8 - + COUNT ( DISTINCT 80 ) AS col2 +---- +-9 +1 query I rowsort label-6079 SELECT + - MAX ( ALL 92 ) @@ -31946,8 +32276,11 @@ SELECT - 69 + - 9 AS col0, COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + CAST ( NULL AS INTEGER ) ) AS col0, ( + + 94 ) AS col0 +---- +94 +NULL query I rowsort label-6092 SELECT + 34 + + 60 + + MIN ( - + 81 ) * + 65 AS col1 @@ -32094,8 +32427,11 @@ SELECT DISTINCT - CASE - CAST ( - 48 AS INTEGER ) WHEN + 7 + CAST ( NULL AS INTE # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col2" at position 0 and "Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 57 AS col2, 72 AS col2 +---- +-57 +72 query I rowsort label-6120 SELECT 38 * - - CAST ( + NULLIF ( - - 75, - - 47 + + COALESCE ( - + COALESCE ( - 78, ( - 47 ) ), + - 62, + 12 ) * 83 * 74 * - - 59 + + + 24 ) AS INTEGER ) @@ -32141,8 +32477,12 @@ SELECT 79 * + 24 AS col0 # Datafusion - Expected - 15 # Datafusion - Expected - 74 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \+ Int64\(\-31\) AS col1" at position 0 and "Int64\(98\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 46 + + + ( - 31 ) col1, 74 AS col0, 98 AS col1 +---- +15 +74 +98 query I rowsort SELECT + 39 * - 69 - - 1 * 91 AS col2 @@ -32157,8 +32497,11 @@ SELECT ALL + 73 * - 32 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-33\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 33 col2, COUNT ( * ) AS col2 +---- +-33 +1 query II rowsort SELECT + 55 AS col2, - 50 @@ -32269,8 +32612,11 @@ 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\(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\. +query II valuesort SELECT ALL - 22 * - 2 * - 18 + - - COUNT ( * ) AS col2, 39 * + 96 * + + 89 AS col2 +---- +-791 +333216 query I rowsort label-6153 SELECT DISTINCT 66 / + 30 @@ -32686,8 +33032,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 98 AS col1, 72 * 39 / - COUNT ( * ) col1 +---- +-2808 +98 query I rowsort label-6233 SELECT DISTINCT 3 / 64 - - 48 + + + 23 + - COUNT ( * ) * - 72 * + NULLIF ( 7, + + 9 ) - + 32 AS col0 @@ -32802,8 +33151,11 @@ SELECT DISTINCT - 73 * + - 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(72\) AS Int32\) \+ Int64\(53\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(2\) \* Int64\(73\) / \(\- Int64\(\-18\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( CAST ( + + 72 AS INTEGER ) ) + + + 53 * - + CAST ( NULL AS INTEGER ) col1, 2 * + 73 / + + ( - - 18 ) AS col1 +---- +8 +NULL query I rowsort SELECT DISTINCT + 0 - + 4 @@ -32992,8 +33344,11 @@ SELECT ALL 44 * NULLIF ( + CAST ( 89 AS INTEGER ), + COUNT ( * ) ) / - + 19 AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "Int64\(55\) \+ coalesce\(\(\- max\(\(\- CAST\(Int64\(28\) AS Int32\)\)\)\), \(\- Int64\(\-76\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 AS col2, 55 + + COALESCE ( + - MAX ( - CAST ( 28 AS INTEGER ) ), - - 76 ) AS col2 +---- +6 +83 query II rowsort SELECT ALL + - 3 AS col1, 80 @@ -33077,8 +33432,11 @@ SELECT + 73 * + 47 - - 61 * + 74 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - -4039 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col2" at position 0 and "Int64\(\-62\) \+ Int64\(97\) \* Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 9 AS col2, - 62 + 97 * - 41 AS col2 +---- +-4039 +-9 query I rowsort SELECT - - 94 * 27 * ( 38 ) col1 @@ -33301,8 +33659,11 @@ 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\(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\. +query II valuesort SELECT 88 * - - COUNT ( * ) * - 43 col2, 71 AS col2 +---- +-3784 +71 query II rowsort SELECT ALL 88 col0, - ( 58 ) * + + ( 63 ) AS col2 @@ -33600,8 +33961,11 @@ SELECT + CAST ( 2 AS INTEGER ) * 81 - - + 54 + + + MIN ( + 70 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "Int64\(\-37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 61 AS col0, - 37 col0 +---- +-37 +61 query I rowsort SELECT ALL - ( 85 ) * + 90 @@ -33766,8 +34130,11 @@ SELECT - + 61 + - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 16156830 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(\-64\)\) AS Int32\)\) AS col0" at position 0 and "Int64\(30\) \+ Int64\(10\) \* Int64\(18\) \* Int64\(51\) \* Int64\(55\) \* \(\- Int64\(\-32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( - - 64 AS INTEGER ) AS col0, 30 + 10 * 18 * + 51 * + + 55 * - - 32 AS col0 +---- +-64 +16156830 query I rowsort SELECT - 89 * + 4 AS col0 @@ -33995,8 +34362,11 @@ SELECT 97 * - 59 * - 26 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(16\)\)\) AS col1" at position 0 and "Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - MAX ( DISTINCT 16 ) AS col1, - 87 AS col1 +---- +-16 +-87 query I rowsort label-6481 SELECT ALL + CAST ( NULL AS INTEGER ) * - 14 @@ -34387,8 +34757,11 @@ SELECT ( + + 55 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 76 AS col0, 53 AS col0 +---- +53 +76 query I rowsort SELECT ( - + 8 ) AS col1 @@ -34758,8 +35131,11 @@ SELECT DISTINCT + 72 + - ( 86 ) + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - -964320 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "CASE nullif\(\(\- avg\(DISTINCT Int64\(\-61\)\)\), Int64\(23\) / \(\- CAST\(NULL AS Int32\)\) \+ Int64\(72\) \+ \(\- Int64\(38\)\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-80\)\) THEN \(\- Int64\(\-52\)\) \+ Int64\(2\) \+ avg\(DISTINCT nullif\(Int64\(33\), Int64\(45\)\)\) \* \(\- nullif\(Int64\(95\), Int64\(\-83\)\)\) ELSE Int64\(10\) \* Int64\(\-41\) \* Int64\(\-49\) \* \(\- Int64\(48\)\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +-964320 +34 query I rowsort label-6624 SELECT 67 + - 85 * + CAST ( + 30 AS INTEGER ) @@ -34909,8 +35285,11 @@ SELECT 21 * ( - + 71 ) * - 3 + + 68 col1 # 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\(32\) / \(\- Int64\(99\)\) AS col1" at position 0 and "Int64\(\-28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 / - + 99 AS col1, - 28 AS col1 +---- +-28 +0 query I rowsort label-6653 SELECT ( + COUNT ( * ) ) + + 94 col1 @@ -34972,8 +35351,11 @@ SELECT + 26 + + ( COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3008 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) \* \(\- Int64\(\-94\)\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 32 * - - 94 AS col2, 75 AS col2 +---- +-3008 +75 query I rowsort SELECT DISTINCT - 41 - + - 81 - + + 85 * + - 19 AS col2 @@ -35035,8 +35417,11 @@ SELECT MAX ( + - 44 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(66\)\) AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( ALL 66 ) AS col1, + 35 col1 +---- +1 +35 query I rowsort SELECT + + 12 * + 71 + 89 @@ -35108,8 +35493,11 @@ SELECT ALL 3 + + 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 4154 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \- Int64\(44\) AS col0" at position 0 and "Int64\(62\) \* \(\- Int64\(\-67\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 9 - ( + 44 ) AS col0, + 62 * - - 67 col0 +---- +-35 +4154 query I rowsort label-6691 SELECT + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) * + - 82 @@ -35924,8 +36312,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 / + + 40 col2, 22 * - 71 * - COUNT ( * ) col2 +---- +1 +1562 query I rowsort label-6853 SELECT ALL MIN ( - NULLIF ( - 92, 49 + + 4 ) ) @@ -36022,8 +36413,11 @@ SELECT ( - - 3 ) - + COALESCE ( + NULLIF ( + 22, + 75 ), + 64 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 AS col1, 25 AS col1 +---- +25 +33 query I rowsort SELECT ( + 65 ) * + NULLIF ( - ( 67 ), + 0 * 77 ) * + 83 + 18 AS col1 @@ -36229,8 +36623,11 @@ SELECT ALL - 75 + + ( + - 37 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -490 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(49\) AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 * 49 AS col1, 33 AS col1 +---- +-490 +33 query II rowsort SELECT DISTINCT + - ( - 44 ) AS col0, 38 AS col1 @@ -36699,8 +37096,11 @@ SELECT 66 * - 48, + 44 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 3053 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \+ Int64\(69\) \+ Int64\(16\) AS col0" at position 0 and "Int64\(43\) \* \(\- Int64\(\-71\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 14 ) + + + 69 + 16 AS col0, 43 * - - 71 AS col0 +---- +3053 +99 query I rowsort label-7000 SELECT 11 + + 58 + - CAST ( - + 29 AS INTEGER ) AS col1 @@ -36871,8 +37271,12 @@ NULL # Datafusion - Expected - 17 # Datafusion - Expected - 5460 # Datafusion - Expected - 151 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "\(\- Int64\(\-71\)\) \+ Int64\(13\) \+ Int64\(67\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 17 AS col0, + 78 * 70, - - 71 + + 13 + 67 AS col0 +---- +151 +17 +5460 query I rowsort SELECT - COALESCE ( 10, - 69 ) col2 @@ -37510,8 +37914,11 @@ SELECT + 65 * + - 28 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- CAST\(Int64\(92\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, - CAST ( 92 AS INTEGER ) AS col2 +---- +-92 +1 query I rowsort label-7150 SELECT DISTINCT - + NULLIF ( - COALESCE ( + - 99, COUNT ( * ) ), + 23 ) - + - 2 AS col1 @@ -37969,8 +38376,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col0" at position 0 and "\(\- Int64\(\-47\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 75 AS col0, - ( + - 47 ) AS col0 +---- +-75 +47 query I rowsort label-7236 SELECT COUNT ( * ) * + + 10 * SUM ( + - 53 ) @@ -38901,8 +39311,11 @@ SELECT 22 col2, COUNT ( * ) / - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) \+ Int64\(54\) AS col1" at position 0 and "Int64\(5\) \+ coalesce\(\(\- Int64\(\-80\)\), Int64\(68\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 82 + 54 col1, + 5 + + COALESCE ( - - 80, + 68 ) col1 +---- +-28 +85 query II rowsort SELECT 95, 54 * - 79 * - ( - - 44 ) AS col1 @@ -39254,8 +39667,11 @@ SELECT 89 + 23 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "Int64\(7\) \+ Int64\(19\) \+ Int64\(\-94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 col2, 7 + + 19 + - 94 AS col2 +---- +-68 +58 query I rowsort label-7479 SELECT 1 * - + 70 / + 84 * 9 * - COUNT ( * ) AS col1 @@ -39469,8 +39885,12 @@ 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\(1\)\) AS count\(\*\)\) / \(\- Int64\(\-30\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 6 * 16 col0, + 40 - - COUNT ( * ) / - - 30 AS col0, + 69 +---- +40 +69 +96 query I rowsort label-7520 SELECT ALL + 48 + + 68 * - 57 * + MAX ( ALL 5 ) * + + 71 * - 46 @@ -39903,8 +40323,11 @@ SELECT 83 * + 47 * + 34 * + 71 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4148 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* Int64\(61\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 68 * 61 col2, COUNT ( * ) AS col2 +---- +1 +4148 query I rowsort label-7605 SELECT 1 * COUNT ( * ) + + 91 AS col2 @@ -40030,8 +40453,11 @@ SELECT 30 + + NULLIF ( - 97, + + AVG ( DISTINCT - 15 ) ), - ( 90 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -234 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \* Int64\(39\) AS col0" at position 0 and "\(\- CAST\(NULL AS Float64\)\) \+ Int64\(0\) \* Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT - 6 * + 39 AS col0, - CAST ( NULL AS FLOAT8 ) + + + 0 * + - 27 AS col0 +---- +-234 +NULL query I rowsort label-7628 SELECT DISTINCT CAST ( 88 AS INTEGER ) - 11 * - 95 AS col0 @@ -40358,8 +40784,11 @@ SELECT ALL + 6 + + 67 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(84\) / Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, 84 / 78 AS col2 +---- +1 +NULL query I rowsort SELECT + 27 * - 85 col2 @@ -40661,8 +41090,11 @@ 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\(1\)\) AS count\(\*\)\) \+ \(\- \(\- Int64\(82\)\)\) \- Int64\(\-93\) \* Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 13 AS col1, + 96 - - + COUNT ( * ) + - - ( 82 ) - - 93 * 20 col1 +---- +13 +2039 query I rowsort SELECT 99 + - + 73 - 7 * 51 * - 32 * 16 * - 3 AS col1 @@ -40947,8 +41379,11 @@ SELECT DISTINCT 80 + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 AS col0, 68 AS col0 +---- +-90 +68 query I rowsort label-7802 SELECT + CASE + - 13 WHEN + 95 THEN - COUNT ( * ) * - CASE WHEN NULL IS NOT NULL THEN 54 ELSE - 44 END + ( - 78 ) + + + 32 ELSE + COUNT ( * ) END / ( 60 ) * + - ( COUNT ( * ) ) * 33 * 28 AS col0 @@ -41214,8 +41649,11 @@ SELECT 17 - - + COUNT ( DISTINCT - ( + COALESCE ( + CASE + 85 WHEN + 58 * - 87 T # Datafusion - Datafusion expected results: # Datafusion - Expected - -4881 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \* Int64\(73\) \- Int64\(\-83\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 68 * + + 73 - - 83 AS col0, 95 AS col0 +---- +-4881 +95 query I rowsort label-7853 SELECT DISTINCT - COUNT ( * ) / - - 30 col2 @@ -41323,8 +41761,11 @@ SELECT - COALESCE ( + 97, + + 84 * - 95 + - 82 + - 10 * + 94 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - -213300 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) \+ Int64\(33\) \+ \(\- Int64\(98\)\) AS col0" at position 0 and "Int64\(79\) \* Int64\(60\) \* coalesce\(Int64\(\-45\), coalesce\(Int64\(30\), Int64\(\-56\) \* Int64\(14\) \* Int64\(83\) \+ Int64\(62\), Int64\(\-24\) \+ max\(Int64\(65\)\)\) \* Int64\(63\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 13 + 33 + - + 98 AS col0, 79 * + 60 * + COALESCE ( + - 45, + COALESCE ( + 30, - 56 * + 14 * + 83 + + + 62, - 24 + + MAX ( ALL 65 ) ) * 63 ) AS col0 +---- +-213300 +-78 query I rowsort label-7874 SELECT COUNT ( * ) / - 14 * + 13 @@ -41726,8 +42167,11 @@ SELECT ALL + COALESCE ( - 95, - 0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(\(\- count\(DISTINCT Int64\(99\)\)\), Int64\(6\)\)\)\) \* Int64\(22\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - NULLIF ( - COUNT ( DISTINCT 99 ), 6 ) * 22 AS col1, + 66 AS col1 +---- +-22 +66 query II rowsort label-7949 SELECT CASE + 22 WHEN + 52 THEN + - NULLIF ( COUNT ( * ), - 46 ) - + + COALESCE ( + - CAST ( NULL AS INTEGER ), - + NULLIF ( 99, - - 99 ) + CAST ( 49 AS INTEGER ) + - 27 + - 51 ) WHEN - + 55 THEN - + CAST ( 88 AS INTEGER ) + 71 * - 44 END AS col0, ( 62 ) * 61 + 33 @@ -41766,8 +42210,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-58\) AS Int32\) \+ Int64\(1\) \+ Int64\(\-45\) \* \(\- Int64\(\-42\)\) \* nullif\(Int64\(\-68\), Int64\(\-26\) \- Int64\(19\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(85\)\) \+ CAST\(NULL AS Float64\) \* Int64\(\-20\) AS col0" at position 0 and "coalesce\(Int64\(77\), \(\- Int64\(44\)\) / Int64\(\-8\) \- Int64\(54\) \+ Int64\(70\), Int64\(\-11\) \* Int64\(5\) \+ Int64\(\-84\) / Int64\(\-69\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort 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 +---- +77 +NULL query I rowsort SELECT ALL - - 20 + + 15 * 6 @@ -41967,8 +42414,11 @@ 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\(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\. +query II valuesort SELECT 74 - - 1 + + + COUNT ( * ) + + + 48 * + 33 * - 46 - + 95 AS col2, - ( + 62 ) AS col2 +---- +-62 +-72883 query I rowsort SELECT ALL + 95 * - 42 @@ -42505,8 +42955,11 @@ SELECT DISTINCT - - 29, - 10 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col1" at position 0 and "count\(CAST\(Int64\(88\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 15 AS col1, COUNT ( + CAST ( + 88 AS INTEGER ) ) AS col1 +---- +1 +15 query I rowsort label-8095 SELECT + SUM ( + - 59 ) + 3 * - 81 AS col0 @@ -42778,8 +43231,11 @@ SELECT - ( + - 30 ) + MIN ( ALL 15 ) col0, - 44 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 1573 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "Int64\(67\) \+ Int64\(\-75\) \+ Int64\(31\) \* Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 20 AS col1, 67 + - 75 + 31 * 51 AS col1 +---- +1573 +20 query I rowsort label-8146 SELECT ALL COUNT ( * ) - + + 65 col0 @@ -42809,8 +43265,11 @@ SELECT - COUNT ( * ) + - 20 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 4420 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "Int64\(68\) \* Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 99 AS col0, 68 * 65 AS col0 +---- +4420 +99 query II rowsort SELECT ALL + 24 AS col0, + 80 @@ -42899,8 +43358,11 @@ SELECT ALL 78 + - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-25\)\)\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - - 25 ) col2, 12 AS col2 +---- +-25 +12 query II rowsort SELECT DISTINCT COALESCE ( - 76, - ( + 61 ) ) AS col1, 54 @@ -43366,8 +43828,11 @@ SELECT ALL - SUM ( 74 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-3\)\) AS col0" at position 0 and "Int64\(39\) \+ Int64\(80\) \+ \(\- Int64\(\-25\)\) \+ Int64\(25\) \- Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( ALL + - 3 ) AS col0, 39 + 80 + - - 25 + + 25 - ( 27 ) col0 +---- +-3 +142 query I rowsort label-8256 SELECT DISTINCT + COUNT ( * ) * + 18 AS col0 @@ -43393,8 +43858,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) / + + 58 AS col1, 47 AS col1 +---- +0 +47 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -43441,8 +43909,12 @@ SELECT DISTINCT + 93 + + 8 * + COUNT ( * ) - + 35 # Datafusion - Expected - 672 # Datafusion - Expected - -385 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* Int64\(\-9\) \+ Int64\(83\) AS col0" at position 1 and "Int64\(94\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + 24 * - + 28 AS col2, 52 * - 9 + + 83 AS col0, 94 AS col0 +---- +-385 +672 +94 query I rowsort label-8269 SELECT ALL + 60 + + CAST ( + 19 AS INTEGER ) + - - 58 AS col1 @@ -43523,8 +43995,11 @@ SELECT DISTINCT + COUNT ( - 20 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 504 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(33\), Int64\(13\)\) \+ nullif\(Int64\(\-44\), Int64\(82\)\) / \(\- \(\- CASE Int64\(\-89\) WHEN \(\- max\(Int64\(85\)\)\) THEN Int64\(\-16\) END\)\) AS col0" at position 0 and "Int64\(28\) \* Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( 33, + 13 ) + NULLIF ( + - 44, + 82 ) / - - CASE - 89 WHEN - MAX ( + 85 ) THEN - 16 END col0, 28 * + 18 AS col0 +---- +504 +NULL query I rowsort SELECT + 19 * 47 AS col0 @@ -43605,8 +44080,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - MAX ( DISTINCT - + 72 ) / 36 AS col1, 48 * + COUNT ( * ) + + ( 96 ) AS col1 +---- +-2 +144 query I rowsort label-8301 SELECT ALL - + 41 * - 44 + + 7 + - - 81 / 44 - - - 99 * + + CAST ( NULL AS INTEGER ) + - 43 * + 42 col1 @@ -43621,8 +44099,11 @@ SELECT + 6 + + 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 6 col0, 35 AS col0 +---- +35 +6 query I rowsort SELECT - + 34 * - 82 * - 79 @@ -44344,8 +44825,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 30 AS col0, COUNT ( * ) / + + 7 col0 +---- +0 +30 query II rowsort SELECT - 31, + 85 col1 @@ -44976,8 +45460,13 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIII valuesort SELECT DISTINCT + COUNT ( * ) AS col1, - 90 AS col0, - - 60 * - COUNT ( * ) AS col0, - + 34 AS col1 +---- +-34 +-60 +-90 +1 query II rowsort SELECT ALL - 11 AS col0, - 91 + 92 @@ -45802,8 +46291,11 @@ NULL # 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 "Int64\(3\) AS col2" at position 0 and "Int64\(18\) \- Int64\(\-85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 col2, + 18 - - 85 AS col2 +---- +103 +3 query I rowsort SELECT 77 + - + 37 @@ -46511,8 +47003,12 @@ SELECT DISTINCT - - ( + 57 ) # Datafusion - Expected - -3384 # Datafusion - Expected - 6498 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* coalesce\(Int64\(\-47\), \(\- Int64\(\-43\)\)\) AS col1" at position 0 and "Int64\(65\) \+ Int64\(\-61\) \+ Int64\(85\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 72 * COALESCE ( + - 47, - - 43 ) AS col1, 19 * 9 * + 38 AS col0, 65 + - 61 + 85 AS col1 +---- +-3384 +6498 +89 query I rowsort label-8859 SELECT ALL - + SUM ( DISTINCT + 42 ) AS col2 @@ -46849,8 +47345,11 @@ SELECT + 53 * + ( COALESCE ( + + 12, - 18 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 4245 -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\(79\) \+ Int64\(43\) \+ \(\- sum\(\(\- Int64\(77\)\)\)\) \+ Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 11 AS col0, + 51 * + 79 + 43 + - + SUM ( ALL - + 77 ) + 96 AS col0 +---- +11 +4245 query I rowsort SELECT - 29 * + 87 * + + 57 @@ -47200,8 +47699,11 @@ 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\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-52\)\) \- Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 76 AS col0, 84 - + COUNT ( * ) + - - 52 - + + 30 AS col0 +---- +-76 +105 query I rowsort label-8990 SELECT ALL - MAX ( ALL + 50 ) @@ -47313,8 +47815,11 @@ SELECT ALL - 56 + - + 64 # 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 col2" at position 0 and "Int64\(\-77\) / Int64\(\-23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 95 AS col2, - 77 / - 23 AS col2 +---- +-95 +3 query I rowsort label-9012 SELECT ( + 94 ) - + 25 * + + CASE - 21 WHEN 65 THEN - - COUNT ( * ) + + - COUNT ( * ) * 26 / 18 ELSE NULL END @@ -47728,8 +48233,11 @@ SELECT - 84 * - 43 * - 26 * - ( NULLIF ( + 45, - COUNT ( * ) ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - -2808 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(67\) \* Int64\(\-43\) \+ Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 49 * + + COUNT ( * ) AS col0, 67 * - 43 + + ( + 73 ) AS col0 +---- +-2808 +49 query I rowsort SELECT - ( - + 11 ) AS col2 @@ -47993,8 +48501,11 @@ SELECT 84 * - ( - 40 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ Int64\(\-41\) AS col0" at position 0 and "Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 91 + - 41 col0, - 16 AS col0 +---- +-16 +50 query I rowsort label-9143 SELECT 61 * - COUNT ( DISTINCT + 20 ) AS col2 @@ -48146,8 +48657,11 @@ SELECT 91 + - - COALESCE ( 76, + 28 * + + 11 ) col1 # 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\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 AS col2, 18 AS col2 +---- +-92 +18 query I rowsort SELECT ALL 29 * + 88 col1 @@ -48822,8 +49336,11 @@ SELECT 57 * - 71 * + + 82 - - - 37 * + - 33 + 40 + 16 * + 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 AS col2, 48 AS col2 +---- +48 +89 query II rowsort label-9300 SELECT + + 77, + 34 - - + NULLIF ( + 74, + 64 + - 42 ) + + 99 / 35 AS col0 @@ -49070,8 +49587,12 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(94\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query RII valuesort 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 +---- +93 +NULL +NULL query I rowsort label-9347 SELECT DISTINCT + MIN ( - ( - 18 ) ) @@ -50000,8 +50521,11 @@ SELECT 66 * - 89 + - 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col0" at position 0 and "Int64\(9\) \+ Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 88 AS col0, 9 + 34 AS col0 +---- +-88 +43 query I rowsort label-9524 SELECT DISTINCT - 27 + - COUNT ( * ) AS col0 @@ -50192,8 +50716,11 @@ SELECT SUM ( + 5 ) # 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 col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 72 AS col0, 2 AS col0 +---- +2 +72 query I rowsort SELECT + 0 + + 42 AS col1 @@ -50491,8 +51018,11 @@ SELECT 76 + + COALESCE ( + 41, - + 7 + 65 ) + 57 + 2 # 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\(88\) \- Int64\(40\) AS col0" at position 0 and "nullif\(Int64\(\-77\), \(\- Int64\(53\)\) \+ Int64\(21\)\) \* CAST\(NULL AS Float64\) \+ Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL 88 - + 40 AS col0, NULLIF ( - 77, - + 53 + ( 21 ) ) * + CAST ( NULL AS FLOAT8 ) + + 4 AS col0 +---- +48 +NULL query II rowsort SELECT DISTINCT - 34 AS col2, - 37 + + 13 + - 0 @@ -50558,8 +51088,11 @@ SELECT 57 + 48 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -690 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-23\) AS Int32\) \* Int64\(30\) AS col2" at position 0 and "Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( - 23 AS INTEGER ) * 30 AS col2, - 95 AS col2 +---- +-690 +-95 query I rowsort SELECT 34 + 6 * - - 27 AS col2 @@ -50712,8 +51245,11 @@ SELECT ALL NULLIF ( - COALESCE ( - - 79, - ( - 65 ) * + - 46 ), + 86 ) # 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 "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 42 col2, + 3 AS col2 +---- +-42 +3 query I rowsort SELECT ALL + 76 * - 76 * + 99 @@ -50824,8 +51360,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 84 AS col1, 45 + - COUNT ( * ) + 54 AS col1 +---- +-84 +98 query I rowsort label-9681 SELECT + COUNT ( * ) + COUNT ( * ) * + + 61 col2 @@ -51163,8 +51702,11 @@ SELECT 63 - + + 17 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col2" at position 0 and "Int64\(\-75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 5 AS col2, - 75 AS col2 +---- +-75 +5 query I rowsort label-9746 SELECT NULLIF ( - - 4, + MAX ( ALL - 29 ) ) + - CAST ( 64 AS INTEGER ) + COUNT ( * ) AS col0 @@ -51279,8 +51821,11 @@ SELECT ALL - 62 AS col2, - 52 # 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\(2\) AS col0" at position 0 and "Int64\(\-93\) \- Int64\(\-31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 2 AS col0, - 93 - - 31 AS col0 +---- +-62 +2 query I rowsort label-9768 SELECT ALL - - CAST ( COALESCE ( 36, 8 ) AS INTEGER ) AS col1 @@ -51321,8 +51866,11 @@ SELECT - - ( 57 ) * + 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 "Int64\(\-1\) AS col1" at position 0 and "Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 1 AS col1, + 1 AS col1 +---- +-1 +1 query I rowsort SELECT ALL 59 + - 11 + 76 + 15 + + 62 @@ -51445,8 +51993,12 @@ SELECT ALL + MIN ( + 43 ) # Datafusion - Expected - 30 # Datafusion - Expected - -4 # Datafusion - Expected - -65288 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(30\)\) AS col0" at position 0 and "Int64\(\-50\) \+ Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + SUM ( + 30 ) AS col0, ( - 50 ) + 46 AS col0, - - 39 * - 23 * + NULLIF ( 73, + 57 * - 47 + - 30 + - 11 - - + 49 * - - 75 ) - - 83 + + 42 + 68 - + ( - 46 ) / 61 +---- +-4 +-65288 +30 query I rowsort SELECT NULLIF ( - + 27, + 18 ) @@ -51556,8 +52108,11 @@ SELECT - MIN ( + 49 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 AS col2, + 63 AS col2 +---- +63 +71 query I rowsort SELECT - 94 * + 12 AS col2 @@ -51765,8 +52320,11 @@ SELECT + MIN ( DISTINCT 16 ) AS col1, 26 * - 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - -3900 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(36\)\)\) AS col0" at position 0 and "Int64\(\-85\) \* Int64\(45\) \+ Int64\(\-75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - ( + + 36 ) AS col0, - 85 * 45 + + - 75 AS col0 +---- +-3900 +36 query I rowsort SELECT ALL - 64 - + + 16 - - 70 @@ -52131,8 +52689,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(3\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 11 AS col1, COUNT ( * ) * ( + 3 ) / + COUNT ( * ) AS col1 +---- +11 +3 query I rowsort label-9929 SELECT - 60 * + COUNT ( * ) + + 21 @@ -52169,8 +52730,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - 8554 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col1" at position 0 and "Int64\(94\) \* Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - 11 ) AS col1, 94 * + 91 AS col1 +---- +-11 +8554 query I rowsort label-9936 SELECT - COUNT ( + 59 ) col0 @@ -52333,8 +52897,11 @@ SELECT ALL - 40 + + 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 4 AS col2, 41 AS col2 +---- +4 +41 query I rowsort SELECT 98 + - 30 * - 51 AS col0 @@ -52416,8 +52983,11 @@ SELECT 86 + 63 - + 93 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col0" at position 0 and "Int64\(18\) / Int64\(50\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 45 col0, 18 / + 50 * + COUNT ( * ) AS col0 +---- +-45 +0 query I rowsort label-9983 SELECT - - MAX ( DISTINCT 78 ) diff --git a/data/sqlite/random/expr/slt_good_83.slt b/data/sqlite/random/expr/slt_good_83.slt index ecb9242..e957277 100644 --- a/data/sqlite/random/expr/slt_good_83.slt +++ b/data/sqlite/random/expr/slt_good_83.slt @@ -40,8 +40,11 @@ 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\(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\. +query II valuesort 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 +---- +-210 +207 query II rowsort label-1 SELECT CASE - + 55 WHEN + 44 THEN NULL ELSE + + 12 + + 10 + - - 81 END * + 9 + + 68 + + CAST ( NULL AS INTEGER ), 63 - 52 col0 @@ -69,8 +72,11 @@ 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\(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\. +query II valuesort SELECT ALL + 46 - - 87 * - 5 * - COUNT ( * ) + - + 14 AS col2, 98 col2 +---- +467 +98 query I rowsort label-6 SELECT - 5 + COUNT ( ( - + 75 ) ) AS col2 @@ -1307,8 +1313,11 @@ SELECT 54 * - + 63, - 0 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col2" at position 0 and "Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 14 AS col2, 17 AS col2 +---- +14 +17 query I rowsort label-247 SELECT 70 + - 90 + + COUNT ( * ) - + 46 + + COUNT ( * ) * + - 51 * - 70 AS col2 @@ -1547,8 +1556,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 720 # Datafusion - Expected - 182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* CAST\(Int64\(\-72\) AS Int32\) AS col1" at position 0 and "CASE Int64\(\-17\) WHEN \(\- Int64\(40\)\) THEN NULL ELSE Int64\(96\) END \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 * + CAST ( - 72 AS INTEGER ) AS col1, CASE - 17 WHEN - + 40 THEN NULL ELSE + + 96 END - - COUNT ( * ) * + 86 AS col1 +---- +182 +720 query I rowsort label-292 SELECT ALL COALESCE ( + 94, MAX ( ALL - + 34 ) ) @@ -1769,8 +1781,11 @@ SELECT + 80 + + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 col1, COUNT ( * ) col1 +---- +1 +63 query I rowsort SELECT DISTINCT NULLIF ( 73, + + 3 + + - 90 ) + + 73 @@ -2207,15 +2222,22 @@ SELECT ALL - 34 - + - 91 * + 22 AS col0, + 91 * + ( 63 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(37\)\) \+ count\(\(\- Int64\(51\)\)\) AS col2" at position 0 and "Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 37 + COUNT ( - + 51 ) AS col2, 43 AS col2 +---- +-36 +43 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 0 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col0" at position 0 and "Int64\(10\) / Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 37 AS col0, + 10 / + 42 AS col0, - 16 AS col0 +---- +-16 +-37 +0 query I rowsort label-418 SELECT + + COUNT ( 11 ) * + COUNT ( * ) * + COUNT ( * ) AS col2 @@ -2255,8 +2277,11 @@ SELECT ALL 35 * 86 + 62 + - 69 * + + 64 * - + COALESCE ( - - 62, + COUNT ( * ) * # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 9 AS col1, - 79 col1 +---- +-79 +9 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -2305,8 +2330,11 @@ SELECT DISTINCT 34 / + 82 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - -1411 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) 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 II valuesort SELECT ALL + 24 AS col0, - 83 * + 17 AS col0 +---- +-1411 +24 query I rowsort SELECT + 27 * - 3 + - 61 @@ -2440,8 +2468,12 @@ SELECT - - 33 * - 13 # Datafusion - Expected - -92 # Datafusion - Expected - 16 # 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 "coalesce\(Int64\(16\), Int64\(27\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 92 col0, COALESCE ( 16, 27 ) AS col0, - COUNT ( * ) +---- +-1 +-92 +16 query I rowsort label-460 SELECT ALL - - 34 * - ( - 8 ) - + 16 + + COUNT ( * ) * - 86 / - + 59 AS col1 @@ -2451,8 +2483,11 @@ SELECT ALL - - 34 * - ( - 8 ) - + 16 + + COUNT ( * ) * - 86 / - + 59 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 67 AS col0, + 40 AS col0 +---- +40 +67 query I rowsort label-462 SELECT - 27 - - MAX ( - 66 ) AS col0 @@ -2638,8 +2673,12 @@ SELECT DISTINCT - COALESCE ( + + 0, 44 * + + COUNT ( * ) - - 54, 69 - + - 50 ) + # Datafusion - Expected - 88 # Datafusion - Expected - 62 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col0" at position 1 and "Int64\(30\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ( 88 ), 62 AS col0, + + 30 col0 +---- +30 +62 +88 query I rowsort label-498 SELECT - - ( + MIN ( - + 80 ) ) AS col1 @@ -2903,8 +2942,11 @@ SELECT - 44 * + 34 * 53 * 84 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-81\)\) AS col2" at position 0 and "Int64\(53\) \+ \(\- \(\- coalesce\(\(\- nullif\(Int64\(21\), Int64\(3\) \+ Int64\(66\)\)\), Int64\(34\), CAST\(NULL AS Int32\), \(\- count\(\(\- coalesce\(Int64\(\-66\), Int64\(\-20\), Int64\(80\)\)\)\)\) \+ Int64\(53\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MIN ( ALL - 81 ) AS col2, 53 + - - COALESCE ( - NULLIF ( + 21, + + 3 + 66 ), + 34, + CAST ( NULL AS INTEGER ), - COUNT ( - COALESCE ( + - 66, - 20, 80 ) ) + 53 ) AS col2 +---- +-81 +32 query I rowsort label-549 SELECT - COUNT ( * ) + - COUNT ( * ) + - + COUNT ( * ) + + - ( 96 ) AS col0 @@ -3196,8 +3238,11 @@ 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\(Int64\(1\)\) AS count\(\*\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 46 AS col1, + 58 * + CASE + - ( - - 27 ) WHEN ( + 45 ) / + + AVG ( 91 ) THEN - + 89 ELSE + COUNT ( * ) END AS col1 +---- +46 +58 query III rowsort SELECT ALL 49 AS col2, 32 * + CASE - 43 WHEN - 16 THEN NULL WHEN + 75 THEN NULL WHEN ( + 51 ) THEN - 39 END AS col1, - - 80 * 3 @@ -3617,8 +3662,11 @@ SELECT ALL + 65 + 4 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 AS col0, + 70 AS col0 +---- +12 +70 query I rowsort label-684 SELECT ALL COUNT ( DISTINCT + + 39 ) AS col0 @@ -3719,8 +3767,11 @@ 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\(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\. +query II valuesort SELECT + 42 * - 48 + + - COALESCE ( + - COUNT ( * ), - COUNT ( * ) ) + - 17 col2, ( 36 ) col2 +---- +-2032 +36 query I rowsort label-704 SELECT ALL - COUNT ( * ) * 43 AS col1 @@ -3879,8 +3930,11 @@ SELECT COUNT ( * ) - + 52 * + 29 * + + 10 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col2" at position 0 and "Int64\(\-34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 AS col2, - 34 col2 +---- +-34 +21 query I rowsort label-735 SELECT 38 * CAST ( - 12 AS INTEGER ) + 2 @@ -3963,8 +4017,12 @@ SELECT - 82 - 96 + + 79 AS col1 # Datafusion - Expected - -39 # Datafusion - Expected - -76 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) \+ Int64\(\-62\) AS col2" at position 1 and "Int64\(42\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 39, - 14 + - 62 AS col2, + 42 AS col2 +---- +-39 +-76 +42 query I rowsort label-751 SELECT + COUNT ( * ) + - - 38 AS col2 @@ -4048,8 +4106,11 @@ SELECT ALL + 33 - + 80 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-26\) / \(\- \(\- Int64\(80\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, - 26 / - ( - + 80 ) col2 +---- +0 +1 query I rowsort label-767 SELECT 13 / + + 49 @@ -4161,8 +4222,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(\-23\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MIN ( DISTINCT + 89 ) AS col2, COUNT ( * ) * - - 23 AS col2 +---- +23 +89 query I rowsort label-787 SELECT ALL + - 15 + 2 / - 25 col1 @@ -4309,8 +4373,11 @@ SELECT - 96 * + 43 - - 73 + 83 AS col1 # 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\(\-97\) / Int64\(46\) AS col2" at position 0 and "Int64\(26\) / Int64\(\-79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 97 / + 46 AS col2, 26 / - 79 col2 +---- +-2 +0 query I rowsort label-815 SELECT DISTINCT 54 * - 85 * + 62 * ( - 36 ) + ( COUNT ( - - 50 ) ) AS col0 @@ -4336,8 +4403,11 @@ SELECT ALL + NULLIF ( + 31, + 64 ) + - 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\(\(\- Int64\(\-98\)\)\)\)\) AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( - - 98 ) AS col1, 90 col1 +---- +1 +90 query I rowsort label-820 SELECT - + 89 + - CASE 19 WHEN + - 37 / COUNT ( * ) + + - 92 + + NULLIF ( - COUNT ( * ), - 75 ) * - 36 + + - 55 + - + 92 + - - 90 / + 90 - + 73 + - 25 + - 82 THEN NULL WHEN ( 13 ) + + 26 THEN - 27 * + - 61 / - SUM ( 57 ) + - CAST ( NULL AS INTEGER ) ELSE NULLIF ( - 87, 97 ) END * 90 col1 @@ -5256,8 +5326,11 @@ SELECT ALL + 85 * + SUM ( ALL - + 39 ), 58 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 22 col0, 26 col0 +---- +-22 +26 query I rowsort label-998 SELECT COUNT ( * ) * 9 AS col2 @@ -5623,8 +5696,11 @@ 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\(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\. +query II valuesort 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 +---- +7 +NULL query I rowsort SELECT - 75 * + 30 @@ -5741,8 +5817,11 @@ SELECT ALL ( + - COUNT ( * ) ) + - 19 * 58, + 18 * + 71 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "Int64\(57\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(68\) \+ CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 AS col0, 57 + - COUNT ( * ) * ( 68 ) + + + CAST ( NULL AS INTEGER ) AS col0 +---- +56 +NULL query II rowsort label-1090 SELECT ALL + 91 + - 56 + - - 28 * + 7 / + - CASE + - COUNT ( * ) WHEN - + 81 THEN + CAST ( + 46 AS INTEGER ) WHEN + + 88 THEN NULL WHEN + 67 THEN NULL WHEN + 56 THEN + 61 + - 1 / 28 * ( - 6 ) * - - 68 END + + + COUNT ( * ) AS col0, 82 @@ -6340,8 +6419,11 @@ SELECT ALL + 35 * COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-53\) \* Int64\(20\)\) \* \(\- Int64\(52\)\) AS col2" at position 0 and "Int64\(52\) \* \(\- Int64\(43\)\) \+ \(\- Int64\(\-27\)\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COALESCE ( - COUNT ( * ), - 53 * 20 ) * - + 52 AS col2, 52 * - + 43 + - - 27 + CAST ( NULL AS INTEGER ) AS col2 +---- +52 +NULL query I rowsort SELECT 1 - 76 col0 @@ -6714,8 +6796,11 @@ SELECT ALL + 10 / - 79 AS col0 # 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\(1\) / Int64\(73\) AS col0" at position 0 and "Int64\(18\) \+ Int64\(\-2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 1 / + + 73 col0, 18 + - 2 col0 +---- +0 +16 query I rowsort label-1273 SELECT DISTINCT ( - ( + 93 ) ) / - - 63 AS col2 @@ -7392,8 +7477,11 @@ SELECT + 75 * - 10 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-23\), Int64\(48\) \* \(\- Int64\(97\)\) / Int64\(\-84\)\) \- Int64\(36\) AS col0" at position 0 and "Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( - 23, 48 * - + 97 / - 84 ) - + 36 AS col0, - 73 AS col0 +---- +-59 +-73 query II rowsort label-1404 SELECT ALL + COUNT ( * ), 33 * + - 17 AS col1 @@ -7499,8 +7587,11 @@ SELECT + - 56 * - + 83 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2170 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(62\) \* Int64\(\-35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, + 62 * - 35 AS col2 +---- +-2170 +1 query II rowsort label-1424 SELECT ALL - COUNT ( * ) col0, 71 * + CAST ( NULL AS INTEGER ) + - MAX ( DISTINCT - + 94 ) + - - 39 * 44 col2 @@ -7537,8 +7628,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE \(\- \(\- min\(\(\- Int64\(49\)\)\)\)\) WHEN \(\- CASE Int64\(\-36\) WHEN Int64\(21\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(97\) END\) \* Int64\(44\) THEN Int64\(\-78\) \* Int64\(\-18\) \* Int64\(78\) \+ Int64\(80\) \* count\(Int64\(1\)\) AS count\(\*\) WHEN \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-33\) \+ Int64\(\-38\) \* Int64\(34\) THEN NULL END\) \* Int64\(\-26\) \+ Int64\(61\) AS col2" at position 0 and "Int64\(\-9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-9 +NULL query I rowsort label-1431 SELECT - - 86 * - COUNT ( * ) + + 65 - + 5 AS col2 @@ -7558,8 +7652,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -226 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) \+ Int64\(\-27\) \- count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(88\) \* \(\- CAST\(Int64\(2\) AS Int32\)\) AS col1" at position 0 and "Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 23 + - 27 - + + COUNT ( * ) + + COUNT ( * ) + 88 * - + CAST ( + 2 AS INTEGER ) AS col1, + 36 AS col1 +---- +-226 +36 query I rowsort SELECT ALL + 69 + + 54 * + 77 @@ -8305,8 +8402,11 @@ SELECT DISTINCT - 5 + 9 * - + 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 1450 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(7\)\) AS col0" at position 0 and "Int64\(\-50\) \* Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - ( 7 ) AS col0, - 50 * - 29 AS col0 +---- +-7 +1450 query I rowsort label-1576 SELECT ALL + MAX ( - - 67 ) * 50 @@ -9680,8 +9780,11 @@ SELECT 36 + + ( + - 80 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 46 -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 "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 - + 95 AS col2, + 46 AS col2 +---- +-48 +46 query I rowsort label-1843 SELECT ALL - 2 / - - 80 @@ -10256,8 +10359,11 @@ SELECT 57 + + - 57 / 91 / 77 - + 43 + + + 43 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) / Int64\(22\) \+ Int64\(0\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 / 22 + + + 0 AS col1, 34 AS col1 +---- +34 +4 query I rowsort SELECT DISTINCT 72 + - - 50 AS col0 @@ -10856,8 +10962,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(NULL AS Int32\) \+ Int64\(\-96\) / Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 98 AS col0, COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + - 96 / 41 AS col0 +---- +-98 +NULL query I rowsort label-2071 SELECT - COUNT ( * ) * - - 18 + + 77 + + 40 - - 96 * - + 68 * + - COUNT ( * ) AS col0 @@ -10990,8 +11099,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) + - 97 AS col0, 7 AS col0 +---- +-96 +7 query I rowsort SELECT DISTINCT 11 * - 85 AS col2 @@ -11238,8 +11350,11 @@ SELECT ALL 80 * + ( - 66 ) + 66 AS col0, CAST ( - - 56 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) \* Int64\(94\) \+ Int64\(31\) AS col1" at position 0 and "Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 1 * + 94 + 31 AS col1, - 87 AS col1 +---- +-63 +-87 query I rowsort label-2145 SELECT + CASE + 51 WHEN - 96 THEN - + ( - 99 ) * - COUNT ( DISTINCT - 78 ) + + - CAST ( 6 AS INTEGER ) WHEN + 56 THEN - 59 ELSE - 35 END @@ -12046,8 +12161,11 @@ SELECT NULLIF ( + - ( + + SUM ( + 31 ) ), - 87 / + - 65 ) + + + 94 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col0" at position 0 and "\(\- Int64\(52\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 44 col0, - ( 52 ) AS col0 +---- +-52 +44 query II rowsort SELECT - 45 AS col1, - 37 col2 @@ -12196,8 +12314,11 @@ SELECT - COUNT ( ALL ( 87 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(3\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 * 3 AS col1, + 16 AS col1 +---- +16 +75 query I rowsort label-2328 SELECT 96 * + MIN ( DISTINCT - 51 ) @@ -12352,8 +12473,11 @@ SELECT 60 * - 35 + - 54 + - - 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ Int64\(\-19\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 + - 19 / + COUNT ( * ) col2, - 77 AS col2 +---- +-77 +20 query I rowsort SELECT + 51 * 22 @@ -12602,8 +12726,11 @@ SELECT ALL 42 + - + CASE - 38 WHEN 11 THEN NULL WHEN + - COUNT ( * ) + + - 80 TH # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 46 AS col0, ( + + 52 ) AS col0 +---- +46 +52 query I rowsort label-2405 SELECT ALL CAST ( NULL AS INTEGER ) / 72 / - COUNT ( * ) @@ -12835,14 +12962,20 @@ 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\(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\. +query II valuesort 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 +---- +55 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1376 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* \(\- Int64\(16\)\) AS col0" at position 0 and "Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 * - + 16 AS col0, + 15 AS col0 +---- +-1376 +15 query I rowsort SELECT DISTINCT 74 * 84 * - + 64 + - + 97 @@ -12879,8 +13012,11 @@ SELECT 34 * + CASE + 13 WHEN + + COUNT ( * ) THEN NULL WHEN - - 20 THEN NULL ELS # 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 col0" at position 0 and "Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 73 AS col0, 47 AS col0 +---- +47 +73 query I rowsort SELECT 24 - - 4 col1 @@ -13556,8 +13692,11 @@ SELECT + 29 * + CAST ( - 30 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col1" at position 0 and "sum\(Int64\(79\)\) \+ Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 AS col1, SUM ( ALL + 79 ) + + 46 AS col1 +---- +125 +61 query I rowsort SELECT ALL + 27 * + 11 @@ -13671,8 +13810,11 @@ SELECT ALL 68 / MIN ( - 41 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2736 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) \* Int64\(72\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 38 * + 72 AS col0, + 60 AS col0 +---- +-2736 +60 query I rowsort label-2607 SELECT DISTINCT + - COALESCE ( COUNT ( * ), + 71, SUM ( - 87 ) * + 38 ) AS col1 @@ -14203,8 +14345,11 @@ SELECT ALL - 23 * - - 75 + + 42 / - 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 248708 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "Int64\(99\) \+ Int64\(70\) \* \(\- Int64\(\-74\)\) \* Int64\(48\) \- max\(Int64\(54\)\) \+ Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 51 AS col2, 99 + 70 * - ( - 74 ) * + 48 - MAX ( + 54 ) + 23 AS col2 +---- +248708 +51 query I rowsort SELECT + 85 * + - 99 @@ -14422,8 +14567,11 @@ SELECT + 32 * + + 35 AS col1, 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3404 # Datafusion - Expected - -184 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* Int64\(92\) AS col2" at position 0 and "Int64\(\-94\) \+ Int64\(\-90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 * 92 col2, - 94 + - 90 AS col2 +---- +-184 +3404 query I rowsort SELECT + NULLIF ( 24, - 33 * 66 ) - 54 AS col2 @@ -14842,8 +14990,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 16 + + 21 AS col0, - COUNT ( * ) AS col0 +---- +-1 +5 query I rowsort SELECT ALL + 53 + + 96 @@ -15253,8 +15404,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 72 ) + + COUNT ( * ) + + COUNT ( * ) AS col0, - 17 AS col0 +---- +-17 +74 query I rowsort label-2909 SELECT ALL CAST ( 53 AS INTEGER ) * + COUNT ( * ) AS col2 @@ -15537,8 +15691,11 @@ SELECT DISTINCT - ( 20 ) + - 98 + - 37 * - - MAX ( 7 ) * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "Int64\(\-80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 74 AS col2, - 80 AS col2 +---- +-80 +74 query I rowsort SELECT 87 + + 9 @@ -15607,8 +15764,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 88 AS col2, - 89 + COUNT ( * ) - 76 AS col2 +---- +-164 +88 query II rowsort label-2976 SELECT ALL + - 41 AS col2, COUNT ( * ) AS col0 @@ -16091,8 +16251,12 @@ 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\)\) 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\. +query III valuesort SELECT ALL 82 AS col1, 39, COUNT ( * ) + - + ( + 1 ) + + + 87 / 67 * - MIN ( 43 ) * - + 85 AS col1 +---- +3655 +39 +82 query II rowsort label-3068 SELECT DISTINCT COUNT ( 86 ), + 60 AS col0 @@ -16124,8 +16288,11 @@ SELECT - SUM ( ALL - 87 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(69\)\) AS col2" at position 0 and "count\(\(\- Int64\(\-57\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 69 AS col2, COUNT ( - - 57 ) AS col2 +---- +-69 +1 query II rowsort SELECT + 79 AS col2, 74 @@ -16333,8 +16500,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -664 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(8\)\) \* Int64\(83\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 8 * + + 83 AS col0, 50 AS col0 +---- +-664 +50 query I rowsort SELECT ALL - 3 * - 64 AS col0 @@ -16536,8 +16706,11 @@ SELECT CASE - - ( + SUM ( DISTINCT 20 ) ) WHEN COUNT ( * ) - - 39 + + - 12 * - - # Datafusion - Datafusion expected results: # Datafusion - Expected - -92460 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(67\)\) \* Int64\(\-23\) \* Int64\(60\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( ALL + 67 ) * - 23 * 60 AS col2, 29 AS col2 +---- +-92460 +29 query I rowsort SELECT DISTINCT 41 * - 83 @@ -16639,8 +16812,11 @@ SELECT + MAX ( DISTINCT 88 ) col2 # 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 "count\(Int64\(95\)\) / \(\- Int64\(42\)\) AS col1" at position 0 and "Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( ALL 95 ) / - + 42 AS col1, - 56 AS col1 +---- +-56 +0 query I rowsort label-3171 SELECT DISTINCT - 4 / + + 12 AS col0 @@ -17022,8 +17198,11 @@ SELECT + 66 * + - 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(20\)\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - + 20 ) col1, + 12 col1 +---- +-20 +12 query II rowsort label-3245 SELECT CAST ( 17 AS INTEGER ) AS col1, 38 AS col0 @@ -17170,8 +17349,11 @@ SELECT DISTINCT + 83 / + - 32 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 7 col2, COUNT ( * ) AS col2 +---- +-7 +1 query I rowsort label-3272 SELECT 92 + + 3 + + COUNT ( * ) * + + COUNT ( + 97 ) - + 16 AS col0 @@ -17327,8 +17509,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - 7080768 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col2" at position 0 and "coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(22\) \+ \(\- count\(DISTINCT Int64\(17\)\)\) \+ Int64\(\-32\) \* coalesce\(Int64\(\-60\), \(\- Int64\(\-2\)\)\)\) \* Int64\(\-96\) \* Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 98 AS col2, + COALESCE ( - CAST ( NULL AS INTEGER ), 22 + - COUNT ( DISTINCT 17 ) + + - 32 * COALESCE ( - 60, - - 2 ) ) * - 96 * - 38 col2 +---- +7080768 +98 query I rowsort SELECT ( - 51 ) + 52 @@ -17481,8 +17666,11 @@ SELECT ALL + 80 / - - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col1" at position 0 and "Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 AS col1, 89 col1 +---- +51 +89 query I rowsort label-3331 SELECT + CAST ( + COUNT ( * ) AS INTEGER ) + - 21 * - 98 AS col1 @@ -18068,8 +18256,11 @@ SELECT ALL COUNT ( * ) / + 91 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 10 AS col1, COUNT ( * ) * COUNT ( * ) AS col1 +---- +1 +10 query I rowsort SELECT - 6 - - 73 @@ -18521,8 +18712,11 @@ SELECT 77 + - + 23 * + COALESCE ( COUNT ( * ), - MIN ( ALL - 85 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT DISTINCT 80 AS col0, + 64 AS col0 +---- +64 +80 query I rowsort label-3534 SELECT CASE 1 WHEN - - 70 * - 77 + - 49 + - 3 * 41 THEN - 3 * 35 WHEN 95 THEN 32 ELSE 32 END / 97 - + 84 @@ -18572,8 +18766,11 @@ SELECT ALL - CAST ( - - 19 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -1032 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "Int64\(\-24\) \* Int64\(43\) \+ Int64\(\-14\) / \(\- Int64\(44\)\) \+ Int64\(\-11\) / Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 AS col0, - 24 * + 43 + - 14 / - + 44 + - 11 / - 66 col0 +---- +-1032 +90 query II rowsort SELECT 26 AS col2, 41 * - - 19 + + 92 @@ -18648,8 +18845,11 @@ SELECT DISTINCT 88 + + 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col2" at position 0 and "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 34 col2, 70 AS col2 +---- +-34 +70 query I rowsort label-3558 SELECT - NULLIF ( + - CASE + - MAX ( DISTINCT 86 ) WHEN - - MIN ( ALL 64 ) + + COUNT ( * ) THEN 92 WHEN + 55 THEN NULL ELSE 19 END, - 86 ) * - 42 AS col2 @@ -18790,8 +18990,12 @@ 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\(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\. +query III valuesort SELECT + 25 * - COUNT ( * ) col1, 60, - NULLIF ( - 38, + + 53 * + MIN ( ALL 72 ) ) + - 23 AS col1 +---- +-25 +15 +60 query II rowsort label-3585 SELECT + 84 * - COUNT ( * ) AS col1, 71 * + + 97 - + - 68 + - 9 + CAST ( 55 AS INTEGER ) / 90 @@ -19432,8 +19636,11 @@ SELECT DISTINCT + COALESCE ( + COALESCE ( - ( + 44 ), - 85 * - COALESCE ( + + ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -291902 # Datafusion - Expected - -607 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \* Int64\(60\) \* Int64\(76\) \+ Int64\(\-40\) \+ Int64\(\-22\) AS col2" at position 0 and "Int64\(37\) \* Int64\(\-16\) \+ Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 * + 60 * + 76 + - 40 + + - 22 AS col2, + 37 * + - 16 + + - 15 col2 +---- +-291902 +-607 query I rowsort label-3708 SELECT CASE - COUNT ( * ) WHEN - COUNT ( * ) THEN + 34 * SUM ( - NULLIF ( + 95, - - 48 * - 48 + - + 93 * + ( - CAST ( + 57 AS INTEGER ) ) ) ) ELSE NULL END col1 @@ -19527,8 +19734,11 @@ SELECT ALL 67 AS col0, 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 220 # Datafusion - Expected - 90 -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 "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 11 * 20 AS col0, + 90 AS col0 +---- +220 +90 query I rowsort label-3726 SELECT ALL - 64 * COUNT ( * ) AS col1 @@ -19569,8 +19779,12 @@ NULL # Datafusion - Expected - -1 # Datafusion - Expected - 81 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-33\) \+ Int64\(\-30\) \* \(\- Int64\(\-67\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + - COUNT ( * ) AS col1, + 81 AS col0, + + ( - CAST ( NULL AS INTEGER ) ) + + + ( + - 33 ) + - 30 * - ( + - 67 ) * + - CAST ( NULL AS INTEGER ) AS col1 +---- +-1 +81 +NULL query I rowsort SELECT - + 15 * 93 @@ -19902,8 +20116,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( - + 42, - 42 ) + 98 AS col0, - COUNT ( * ) + + ( 51 ) AS col0 +---- +50 +NULL query I rowsort SELECT ALL - 88 + - - 87 AS col2 @@ -20668,8 +20885,11 @@ SELECT + 97 + 44 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(11\) WHEN Int64\(23\) THEN Int64\(53\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL END AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CASE 11 WHEN + 23 THEN + 53 WHEN COUNT ( * ) THEN NULL END AS col1, COUNT ( * ) AS col1 +---- +1 +NULL query II rowsort SELECT ALL - - 35 * 25 AS col2, 33 * - 69 AS col1 @@ -21090,8 +21310,12 @@ SELECT + 28 - + 69 * + CAST ( + + 96 AS INTEGER ) # Datafusion - Expected - -38808 # Datafusion - Expected - 2760 # Datafusion - Expected - 7821 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* Int64\(22\) \* nullif\(Int64\(\-28\), Int64\(\-33\)\) AS col2" at position 0 and "Int64\(17\) \+ Int64\(94\) \* Int64\(83\) \- Int64\(\-2\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 63 * + 22 * NULLIF ( - 28, - 33 ) AS col2, + 46 * + ( + 60 ) AS col1, + 17 + + 94 * + 83 - - 2 AS col2 +---- +-38808 +2760 +7821 query I rowsort label-4024 SELECT SUM ( ALL + + 43 ) * - + 4 col1 @@ -21519,8 +21743,11 @@ SELECT - ( + NULLIF ( + 64, - 43 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(40\) AS Int32\)\) \+ Int64\(15\) AS col2" at position 0 and "\(\- nullif\(Int64\(35\), Int64\(73\) \+ Int64\(60\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( 40 AS INTEGER ) + 15 col2, - NULLIF ( + + 35, + 73 + 60 ) AS col2 +---- +-25 +-35 query I rowsort SELECT + 51 * - + COALESCE ( - 81, - 12, - 4 ) @@ -21678,8 +21905,11 @@ SELECT - 58 * + 63 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "\(\- max\(Int64\(\-23\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 AS col2, - MAX ( - 23 ) AS col2 +---- +23 +51 query I rowsort label-4136 SELECT ALL 46 + + 89 * + COUNT ( * ) - + 66 + - 58 + - + MAX ( ALL + - 4 ) @@ -22142,8 +22372,11 @@ SELECT DISTINCT - 31 * + - 7 + + 84 + - MAX ( - 35 ) / + 84 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(\(\- CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\)\) AS Int32\) \* \(\- Int64\(28\)\) \+ Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - COUNT ( * ) AS col0, CAST ( - CAST ( - - COUNT ( * ) AS INTEGER ) AS INTEGER ) * - + 28 + 12 AS col0 +---- +-1 +40 query I rowsort label-4224 SELECT + + ( + + 22 ) * 94 * - CAST ( NULL AS INTEGER ) * - 78 + - 11 + - COUNT ( * ) + 87 * - 53 col1 @@ -22201,8 +22434,11 @@ SELECT - COUNT ( DISTINCT 73 ) / + 52 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 88 ) AS col2, + 64 AS col2 +---- +64 +88 query II rowsort label-4235 SELECT - 35 + - 63 AS col0, SUM ( + 37 ) + - ( + CASE 5 WHEN CAST ( 1 AS FLOAT8 ) + + 97 THEN - 58 ELSE 98 * 12 END ) AS col2 @@ -22441,8 +22677,11 @@ SELECT ALL COALESCE ( + - 72, + 89 ) + - + 74 * - - 71 + - 69 + 41 # 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\(\-90\)\)\) \+ Int64\(50\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( - - 90 ) + 50 col2, 3 AS col2 +---- +3 +51 query I rowsort label-4281 SELECT ALL + COALESCE ( - + NULLIF ( 58, 8 ), CASE - 74 WHEN + 26 * - 24 + - 67 + + - ( + 7 ) + - + MAX ( DISTINCT + 60 ) * + 24 * - + 84 THEN 25 END ) AS col1 @@ -22458,8 +22697,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(16\)\) AS col2" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( DISTINCT + 16 ) col2, CAST ( - COUNT ( * ) AS INTEGER ) col2 +---- +-1 +16 query I rowsort SELECT ALL + + 53 * + 0 @@ -22609,8 +22851,12 @@ SELECT ALL - SUM ( + 14 ) # Datafusion - Expected - 80 # Datafusion - Expected - NULL # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(60\) WHEN Int64\(\-50\) / Int64\(\-84\) THEN Int64\(21\) END AS col0" at position 1 and "Int64\(\-27\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 80, + CASE + 60 WHEN - 50 / - 84 THEN 21 END AS col0, - 27 AS col0 +---- +-27 +80 +NULL query I rowsort label-4313 SELECT - MIN ( - 64 ) AS col0 @@ -22631,8 +22877,12 @@ SELECT 95 * - MAX ( 81 ) * + 18 # Datafusion - Expected - -158301 # Datafusion - Expected - -95 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* \(\- Int64\(\-39\)\) \* Int64\(\-41\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 99 * - - 39 * - 41 AS col1, 4 + - 91 + - 8, 97 AS col1 +---- +-158301 +-95 +97 query II rowsort label-4317 SELECT ALL 64 col2, COUNT ( * ) @@ -23013,14 +23263,20 @@ SELECT ALL - 14 + CAST ( - 40 AS INTEGER ) * - + 82 # 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 "Int64\(32\) AS col0" at position 0 and "count\(Int64\(40\)\) \+ \(\- Int64\(76\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 AS col0, COUNT ( 40 ) + - + 76 AS col0 +---- +-75 +32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col1" at position 0 and "Int64\(24\) \+ coalesce\(Int64\(52\), Int64\(80\), Int64\(12\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 97 AS col1, 24 + COALESCE ( + 52, 80, + 12 ) AS col1 +---- +-97 +76 query I rowsort label-4391 SELECT DISTINCT 93 + + - 27 - - CAST ( NULL AS INTEGER ) * CAST ( 5 AS INTEGER ) - + - 69 @@ -23102,8 +23358,11 @@ SELECT + 87 + CAST ( + COUNT ( * ) AS INTEGER ) / + 51 * NULLIF ( + + 16, - 40 ) # 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 col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 57 AS col1, 96 AS col1 +---- +-57 +96 query I rowsort label-4406 SELECT + 10 * 72 + COUNT ( - - 21 ) * ( 85 ) @@ -23204,8 +23463,11 @@ SELECT 61 + + COUNT ( * ) * - COUNT ( * ) * - + 14 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 48 -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 "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 0 / - 11 col2, 48 AS col2 +---- +0 +48 query I rowsort label-4425 SELECT CAST ( NULL AS INTEGER ) / - COUNT ( * ) / 40 @@ -23602,8 +23864,11 @@ SELECT + 40 * - + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3595 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \+ nullif\(Int64\(46\), Int64\(48\) \* \(\- Int64\(69\)\) \+ \(\- Int64\(63\)\)\) \* Int64\(76\) AS col0" at position 0 and "Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 99 + + + NULLIF ( + 46, + 48 * - + 69 + - + 63 ) * + + 76 AS col0, 99 AS col0 +---- +3595 +99 query I rowsort label-4501 SELECT - ( SUM ( ALL - + 15 ) ) AS col1 @@ -23646,8 +23911,11 @@ SELECT ALL + 91 + + + 88 + 50 / - 88 + + 69 col1, - COUNT ( * ) * + 20 AS col2, # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1176 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \+ \(\- Int64\(8\)\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(84\) \* Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 10 + - ( + 8 ) + + CAST ( NULL AS INTEGER ) AS col0, 84 * 14 AS col0 +---- +1176 +NULL query I rowsort SELECT - 76 + - 76 + + 30 AS col1 @@ -23765,8 +24033,11 @@ SELECT + COUNT ( * ) * - 64 + - - 57 # 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 "Int64\(76\) / max\(Int64\(75\)\) AS col2" at position 0 and "Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 / + MAX ( ALL 75 ) AS col2, 72 AS col2 +---- +1 +72 query I rowsort label-4532 SELECT COUNT ( * ) / + 75 AS col0 @@ -24317,8 +24588,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -416 # Datafusion - Expected - -65067 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \* Int64\(8\) AS col0" at position 0 and "Int64\(41\) \* Int64\(23\) \* \(\- CASE Int64\(69\) WHEN Int64\(\-65\) THEN \(\- Int64\(60\)\) \+ \(\- Int64\(49\)\) WHEN Int64\(86\) / Int64\(\-72\) \* Int64\(57\) \* Int64\(4\) \+ \(\- min\(Int64\(31\)\)\) THEN NULL ELSE \(\- \(\- Int64\(69\)\)\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 52 * 8 AS col0, 41 * + 23 * - CASE ( 69 ) WHEN - 65 THEN - + 60 + - + 49 WHEN + 86 / - 72 * 57 * 4 + - MIN ( ALL + + 31 ) THEN NULL ELSE - - ( 69 ) END AS col0 +---- +-416 +-65067 query I rowsort label-4634 SELECT - - NULLIF ( MIN ( DISTINCT - + ( - - 71 ) ), + 72 - 41 ) * COUNT ( * ) col2 @@ -24477,8 +24751,11 @@ SELECT + 9 + - 35 * 54 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "Int64\(37\) \+ Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 76 col0, + 37 + 54 AS col0 +---- +76 +91 query I rowsort label-4664 SELECT - 59 + + - 71 - - + 95 / - 62 @@ -24875,14 +25152,20 @@ SELECT + 35 + + 55 * - 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1288 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* Int64\(\-56\) AS col1" at position 0 and "Int64\(62\) \* \(\- \(\- CASE Int64\(16\) WHEN Int64\(\-24\) THEN Int64\(68\) WHEN coalesce\(\(\- avg\(Int64\(89\)\)\), Int64\(31\)\) THEN NULL END\)\) \* Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 23 * - 56 AS col1, + 62 * - - CASE 16 WHEN - 24 THEN 68 WHEN COALESCE ( - AVG ( + 89 ), + 31 ) THEN NULL END * + - 40 AS col1 +---- +-1288 +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 "CAST\(NULL AS Int32\) AS col1" at position 0 and "nullif\(Int64\(46\), Int64\(\-79\) \* Int64\(4\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col1, NULLIF ( + 46, - 79 * 4 ) AS col1 +---- +46 +NULL query I rowsort SELECT + ( - + 80 ) @@ -25525,8 +25808,11 @@ SELECT - 75 * + ( - COUNT ( DISTINCT + 63 ) ) + 56 + - 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - -2646 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(1\)\) \* Int64\(73\) \+ Int64\(22\) AS col0" at position 0 and "Int64\(\-54\) \* \(\- Int64\(\-49\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 1 * 73 + ( + 22 ) AS col0, ( - 54 ) * - - 49 AS col0 +---- +-2646 +-51 query II rowsort label-4862 SELECT + + 67 * - + 28 AS col1, + COALESCE ( 50, + 29 * - + 87 + + 7 / + 5 ) + + + 24 @@ -25715,8 +26001,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(\-10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 12 AS col1, + COUNT ( * ) / + + ( - 10 ) AS col1 +---- +-12 +0 query I rowsort label-4899 SELECT DISTINCT + 39 + - MIN ( - 65 ) @@ -26094,8 +26383,11 @@ 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\(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\. +query II valuesort SELECT ALL 53 * - COUNT ( * ) - - 61 AS col1, 19 + + 48 AS col1 +---- +67 +8 query I rowsort label-4971 SELECT + 70 - + COUNT ( * ) AS col1 @@ -26125,8 +26417,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - + SUM ( ALL 4 ) ) AS col1, + 45 + COUNT ( * ) * 53 AS col1 +---- +-4 +98 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -26141,8 +26436,12 @@ NULL # Datafusion - Expected - NULL # Datafusion - Expected - -75 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-67\), coalesce\(Int64\(54\), avg\(Int64\(\-70\)\), Int64\(97\)\) \* Int64\(56\)\) \- Int64\(\-30\) \- Int64\(38\) AS col0" at position 1 and "Int64\(16\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IRI valuesort SELECT + CAST ( NULL AS INTEGER ) AS col2, NULLIF ( - 67, + COALESCE ( + 54, + AVG ( ALL - 70 ), + 97 ) * + 56 ) - - 30 - 38 AS col0, ( + 16 ) AS col0 +---- +-75 +16 +NULL query I rowsort SELECT ALL 4 * + - 44 @@ -26173,8 +26472,11 @@ SELECT DISTINCT - 50 * 5 * ( 52 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 3052 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* CAST\(Int64\(39\) AS Int32\) \+ Int64\(10\) AS col1" at position 0 and "Int64\(53\) \- \(\- Int64\(\-91\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 * + CAST ( 39 AS INTEGER ) + + + 10 AS col1, 53 - - - 91 AS col1 +---- +-38 +3052 query I rowsort SELECT + 80 * 71 @@ -26226,8 +26528,11 @@ SELECT DISTINCT - + 4 * + - 24 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-6\)\) \+ Int64\(11\) AS col1" at position 0 and "Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - - 6 ) + + + 11 AS col1, - 85 AS col1 +---- +-85 +17 query I rowsort SELECT - + 75 - + 17 @@ -27126,8 +27431,11 @@ SELECT + 30 * 50 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - 644 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col0" at position 0 and "Int64\(\-23\) \* Int64\(\-28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 40 AS col0, - 23 * - 28 col0 +---- +-40 +644 query I rowsort SELECT ALL 27 * 94 AS col1 @@ -27198,8 +27506,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) + - 26 AS col0, - 97 AS col0 +---- +-25 +-97 query I rowsort SELECT ALL - 60 * 82 * 29 AS col2 @@ -27372,8 +27683,11 @@ SELECT ALL MIN ( ALL + ( + + 68 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-93\)\) AS Int32\) \+ Int64\(\-86\) AS col0" at position 0 and "Int64\(86\) \+ Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - - 93 AS INTEGER ) + + - 86 AS col0, 86 + + 61 AS col0 +---- +147 +7 query I rowsort label-5217 SELECT - 81 + + CAST ( + + COALESCE ( - 1, + 36, - COUNT ( * ) * + 57, 48 ) AS INTEGER ) col2 @@ -27460,8 +27774,11 @@ SELECT ALL + 69 * + 92 + + 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-55\), \(\- Int64\(19\)\)\)\) AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( + - 55, - + 19 ) AS col0, 33 AS col0 +---- +33 +55 query I rowsort SELECT ALL + COALESCE ( 27, 38 ) AS col1 @@ -28434,8 +28751,11 @@ SELECT ALL - CAST ( - 14 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "Int64\(\-82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 81 AS col2, - 82 AS col2 +---- +-82 +81 query I rowsort SELECT ALL - 48 + + ( - - 32 ) @@ -28478,8 +28798,11 @@ SELECT 42 + + + 39 AS col1, 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) / Int64\(\-3\) AS col2" at position 0 and "Int64\(\-94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 67 / - 3 AS col2, - 94 AS col2 +---- +-22 +-94 query I rowsort SELECT + - 50 * - - ( 95 ) + 61 @@ -29044,8 +29367,11 @@ SELECT DISTINCT - + 17 col2 # 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 "Int64\(76\) \- CASE Int64\(40\) WHEN Int64\(6\) THEN Int64\(92\) END AS col0" at position 0 and "Int64\(13\) \- Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 - CASE 40 WHEN 6 THEN + + 92 END AS col0, + 13 - + 49 col0 +---- +-36 +NULL query I rowsort SELECT 20 * - 15 + - + 70 @@ -29396,8 +29722,12 @@ 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\(1\)\) AS count\(\*\)\) \- Int64\(\-10\) / Int64\(\-92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 93 * - 39 AS col1, - COUNT ( * ) - - 10 / - 92 AS col1, - 61 - - COUNT ( * ) * + 42 +---- +-1 +-19 +-3627 query II rowsort SELECT - 5 - + 13 * + 24 AS col2, - 58 @@ -29435,8 +29765,12 @@ 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\(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\. +query IRI valuesort SELECT ALL 11 * + NULLIF ( - - COUNT ( * ), + 59 ) + - 77 col0, + AVG ( ALL - 95 ) * - - CASE - 93 WHEN 54 * + + COUNT ( * ) THEN 8 END + - 66 AS col0, - 22 +---- +-22 +-66 +NULL query I rowsort label-5608 SELECT DISTINCT SUM ( + - 94 ) * - 0 * 7 + + 69 @@ -29582,8 +29916,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 112 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "Int64\(92\) \- Int64\(\-30\) \+ \(\- coalesce\(Int64\(10\), Int64\(28\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 AS col2, 92 - - 30 + - COALESCE ( 10, 28 ) AS col2 +---- +112 +54 query I rowsort SELECT 46 + - 77 @@ -29716,8 +30053,11 @@ SELECT ALL COALESCE ( + 60, CAST ( - CASE ( + - CAST ( NULL AS INTEGER ) ) WHEN # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 105648 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(0\), \(\- Int64\(\-51\)\) \+ \(\- Int64\(43\)\) \+ \(\- Int64\(96\)\)\) \* Int64\(48\) AS col0" at position 0 and "Int64\(31\) \* Int64\(71\) \* Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + NULLIF ( + 0, - - 51 + - + 43 + - + 96 ) * 48 AS col0, 31 * 71 * + 48 AS col0 +---- +0 +105648 query I rowsort label-5662 SELECT DISTINCT CAST ( - 88 AS INTEGER ) + + - COUNT ( * ) @@ -30186,8 +30526,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 51 AS col0, + 28 AS col0 +---- +28 +51 query II rowsort SELECT DISTINCT + 54 AS col1, 4 * - 33 + + - 69 col0 @@ -30339,8 +30682,11 @@ SELECT ALL - 37 * - 16 AS col1, - 68 * - 50 # 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 "sum\(DISTINCT \(\- Int64\(73\)\)\) / Int64\(\-29\) \- Int64\(15\) \+ Int64\(\-32\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( DISTINCT - ( + 73 ) ) / ( - 29 ) - + 15 + - 32 AS col2, 2 AS col2 +---- +-45 +2 query II rowsort label-5781 SELECT COUNT ( * ) + - 61, - COUNT ( * ) AS col2 @@ -30698,8 +31044,11 @@ 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\(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\. +query II valuesort SELECT + 56 + COUNT ( * ) + - 39 * - + ( + 4 ) + ( - - 11 ) col1, 91 AS col1 +---- +224 +91 query I rowsort label-5849 SELECT ALL + CASE - NULLIF ( - 68, 95 ) WHEN + 84 THEN COUNT ( * ) END AS col1 @@ -30765,8 +31114,11 @@ SELECT - - COUNT ( * ) + 23 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -553596 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* Int64\(\-95\) \+ Int64\(18\) \+ \(\- Int64\(\-76\)\) \- Int64\(83\) \* Int64\(75\) \* Int64\(88\) AS col0" at position 0 and "Int64\(\-20\) \+ \(\- Int64\(78\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 62 * - 95 + 18 + - - 76 - 83 * 75 * + 88 AS col0, ( - 20 ) + - ( 78 ) AS col0 +---- +-553596 +-98 query I rowsort label-5861 SELECT - - ( - 14 ) / + 21 @@ -30907,8 +31259,11 @@ 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\(1\)\) AS count\(\*\) \+ \(\- Int64\(56\)\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 AS col2, + COUNT ( * ) + + - ( + 56 ) - - COUNT ( * ) AS col2 +---- +-54 +35 query I rowsort SELECT + - ( + 54 ) @@ -31036,8 +31391,11 @@ 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\(1\)\) AS count\(\*\), Int64\(57\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 col2, + NULLIF ( + COUNT ( * ), 57 ) AS col2 +---- +1 +6 query I rowsort label-5912 SELECT ALL - 56 + + CASE + COUNT ( * ) WHEN + 94 THEN 57 ELSE NULL END + MIN ( - 86 ) * 40 @@ -31080,8 +31438,11 @@ SELECT 25 * 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "Int64\(\-67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 AS col1, - 67 AS col1 +---- +-67 +29 query II rowsort SELECT 43 AS col0, + 16 + + - 85 * + 38 @@ -31826,8 +32187,11 @@ SELECT + 38 + + 50 - - 7 / + 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 1211 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \- coalesce\(Int64\(34\), \(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "min\(Int64\(22\)\) \* nullif\(Int64\(59\), \(\- Int64\(\-11\)\) \* Int64\(37\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(43\) \* Int64\(\-25\) \+ Int64\(77\) \+ count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- CAST\(Int64\(87\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-41 +1211 query I rowsort SELECT ALL - NULLIF ( + + 54, 19 ) - 81 + - 6 * 61 @@ -32022,8 +32386,11 @@ SELECT 66 / COUNT ( * ) - - - 8 + - - 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-31\) AS Int32\) AS col0" at position 0 and "nullif\(nullif\(Int64\(\-98\), Int64\(30\)\), Int64\(24\)\) \* Int64\(96\) \+ \(\- Int64\(1\)\) \* CASE Int64\(\-32\) WHEN Int64\(50\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(\-8\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-98\) \* Int64\(34\) \+ Int64\(18\) \+ Int64\(\-51\) / Int64\(64\) \* \(\- avg\(Int64\(3\)\)\)\) \* CAST\(NULL AS Int32\) \* \(\- Int64\(\-65\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +-31 +NULL query II rowsort label-6098 SELECT CAST ( + 3 AS INTEGER ) AS col1, COUNT ( * ) / + 5 @@ -32582,8 +32949,11 @@ SELECT ALL 96 * NULLIF ( - - 8, 84 / - MAX ( - 54 ) ) * - - ( + - 96 ) * 87 * + # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(41\)\) \+ Int64\(\-36\) \+ min\(Int64\(61\)\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 41 ) + - 36 + MIN ( 61 ) AS col2, 48 AS col2 +---- +-16 +48 query I rowsort label-6206 SELECT ALL - - 52 * + 63 + CASE COUNT ( * ) WHEN - + 52 THEN - 73 * + + COUNT ( ALL 11 ) ELSE + 12 END @@ -32787,8 +33157,12 @@ SELECT ALL - + COUNT ( * ), SUM ( DISTINCT + - 67 ) AS col1 # Datafusion - Expected - 1 # Datafusion - Expected - 72 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + COUNT ( * ) AS col1, 72 col1, + 24 +---- +1 +24 +72 query I rowsort label-6245 SELECT + 77 + - 3 + - ( - ( + 47 ) ) / 53 * SUM ( DISTINCT 32 ) / - - 93 * - + 1 + + 68 + + CAST ( + ( - CAST ( 15 AS INTEGER ) ) AS INTEGER ) @@ -32946,8 +33320,11 @@ SELECT DISTINCT 15 * 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, + 55 AS col1 +---- +1 +55 query I rowsort SELECT ALL + 87 * - 43 @@ -33057,8 +33434,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 12 col2, - CAST ( NULL AS INTEGER ) col2 +---- +-12 +NULL query I rowsort label-6297 SELECT 59 / + 99 + - - 75 - - ( COUNT ( * ) ) + + 18 col0 @@ -33109,8 +33489,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + - COUNT ( * ) AS col1, 43 * 90 AS col1 +---- +-1 +3870 query II rowsort SELECT 90 AS col0, 43 * - - NULLIF ( 47, + 45 + + - 31 ) * + + 56 + - 39 - + 93 @@ -33310,8 +33693,11 @@ 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\(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\. +query II valuesort SELECT - MIN ( + 18 ) * ( - 5 ) AS col1, + CASE + 92 WHEN + - COUNT ( * ) THEN 64 WHEN + 96 THEN + + 99 END + + 11 AS col1 +---- +90 +NULL query I rowsort label-6344 SELECT DISTINCT + 34 * - CAST ( NULL AS INTEGER ) AS col1 @@ -33540,8 +33926,11 @@ SELECT DISTINCT 97 AS col1, 25 / 99 * 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 167 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ \(\- Int64\(\-98\)\) AS col2" at position 0 and "CAST\(Int64\(\-78\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 + - - 98 AS col2, + CAST ( - 78 AS INTEGER ) AS col2 +---- +-78 +167 query I rowsort SELECT ALL 82 * - 1 AS col1 @@ -33640,8 +34029,12 @@ SELECT COALESCE ( + + 82, + 36 + + 87 ) # Datafusion - Expected - -80 # Datafusion - Expected - -82 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-80\), Int64\(16\)\) AS col2" at position 0 and "Int64\(12\) \- Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + NULLIF ( - 80, + 16 ) AS col2, 12 - + 94 AS col2, - 20 AS col1 +---- +-20 +-80 +-82 query I rowsort label-6407 SELECT + COALESCE ( + 66, 28 * 44, - 85 ) * + COUNT ( * ) @@ -35558,8 +35951,11 @@ SELECT ALL - 22 / COUNT ( * ) * - 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col2" at position 0 and "Int64\(8\) / Int64\(36\) \+ Int64\(67\) / Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 57 AS col2, + 8 / + + 36 + + 67 / - 29 AS col2 +---- +-2 +57 query I rowsort label-6779 SELECT + COUNT ( * ) * - + COUNT ( * ) AS col0 @@ -35917,8 +36313,11 @@ SELECT 25 AS col2, - 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - 82 -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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 79 AS col0, 82 AS col0 +---- +-79 +82 query I rowsort SELECT ALL - 39 + - ( 63 ) @@ -35944,8 +36343,11 @@ SELECT 59 + 43 * 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 col2, + CAST ( NULL AS INTEGER ) AS col2 +---- +-55 +NULL query I rowsort label-6854 SELECT 91 * + CASE + 18 WHEN 41 / - + 96 + - 76 * 34 - 43 THEN NULL WHEN 7 THEN + 71 + - COUNT ( * ) * + 94 ELSE 74 * CASE WHEN ( + 79 * + 73 ) IS NULL THEN 80 END - + 9 END @@ -36117,8 +36519,11 @@ SELECT - 2 + - - 10 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - -6518 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "Int64\(67\) \* \(\- Int64\(99\)\) \+ \(\- \(\- Int64\(53\)\)\) \- Int64\(\-62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 AS col0, 67 * - + 99 + + + ( - - ( + 53 ) ) - - 62 AS col0 +---- +-6518 +47 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -36216,8 +36621,11 @@ SELECT ALL + 14 + - 85 + + - 6 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \+ Int64\(\-63\) \- Int64\(81\) AS col1" at position 0 and "\(\- sum\(Int64\(38\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 94 + - 63 - 81 AS col1, - SUM ( 38 ) AS col1 +---- +-38 +-50 query I rowsort label-6906 SELECT ALL - 40 + CAST ( NULL AS INTEGER ) * + + 6 AS col0 @@ -36857,8 +37265,11 @@ 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\(1\)\) AS count\(\*\)\) / Int64\(43\)\)\) END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-13 +36 query I rowsort label-7029 SELECT + 85 * - COUNT ( * ) AS col1 @@ -36873,8 +37284,11 @@ SELECT ALL 91 * + 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-31\) \- Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, - 31 - 18 AS col2 +---- +-49 +1 query I rowsort SELECT + 3 + - 27 AS col0 @@ -37053,8 +37467,11 @@ SELECT DISTINCT + SUM ( DISTINCT - - 95 ) * - + ( + 91 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 123 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-72\)\) \+ Int64\(51\) AS col1" at position 0 and "Int64\(\-67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 72 ) + + + 51 AS col1, - 67 col1 +---- +-67 +123 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -37339,8 +37756,11 @@ 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\(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\. +query II valuesort SELECT + 44 / + COUNT ( * ) / - COUNT ( * ) AS col0, - 34 col0 +---- +-34 +-44 query I rowsort SELECT 30 + - - ( + 82 ) - + 59 * 86 * + 18 AS col2 @@ -37617,8 +38037,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - COUNT ( * ) AS col0, + 95 AS col0 +---- +-1 +95 query II rowsort label-7175 SELECT - + COUNT ( * ) * + 85 * + 89 + + ( + - 81 ), + 56 AS col1 @@ -37767,8 +38190,11 @@ SELECT 59 AS col0, 43 * + ( 57 ) # 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 "Int64\(\-2\) AS col1" at position 0 and "Int64\(26\) \+ Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 2 col1, 26 + + + 59 AS col1 +---- +-2 +85 query I rowsort label-7203 SELECT - COUNT ( * ) / + 24 + 79 AS col0 @@ -37969,8 +38395,11 @@ 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\(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\. +query II valuesort SELECT - 79 + - COUNT ( * ) AS col0, - COUNT ( 6 ) AS col0 +---- +-1 +-80 query I rowsort label-7240 SELECT ALL + 24 * + COUNT ( - + 32 ) AS col0 @@ -38054,8 +38483,11 @@ SELECT + - 87 * + + 46 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -164 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) \* Int64\(2\) AS col0" at position 0 and "Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 82 * 2 AS col0, - 19 AS col0 +---- +-164 +-19 query I rowsort label-7256 SELECT + MAX ( DISTINCT - - 5 ) * MAX ( ALL + 22 ) @@ -38113,8 +38545,11 @@ SELECT - 78 * + + ( - 23 ) AS col1, 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col2" at position 0 and "Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 60 AS col2, - 71 AS col2 +---- +-60 +-71 query II rowsort SELECT DISTINCT CASE 64 WHEN + 84 * - - 99 THEN NULL WHEN - 10 - - COALESCE ( - 49, ( - - ( ( - - 99 ) ) ), 15 ) * + 46 * + - 37 * + 2 THEN - 71 END col1, + 25 @@ -38446,8 +38881,11 @@ SELECT ALL 89 * - 99 * + ( SUM ( ALL - 29 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 635 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \- Int64\(71\) \- \(\- nullif\(Int64\(50\), Int64\(68\) \+ CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* Int64\(\-28\)\)\) \* \(\- \(\- min\(Int64\(14\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 6 - 71 - - NULLIF ( + + 50, + + 68 + CAST ( + COUNT ( * ) AS INTEGER ) * + - 28 ) * - - MIN ( + + 14 ) col1, COUNT ( * ) * 55 col1 +---- +55 +635 query I rowsort SELECT 72 * + + 27 AS col1 @@ -38467,8 +38905,11 @@ SELECT ALL 55 * + 25 * 26 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, 0 AS col1 +---- +0 +1 query I rowsort SELECT - 99 - + 23 AS col1 @@ -38647,8 +39088,11 @@ SELECT ALL + 18 - - 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "Int64\(35\) \+ Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 59 AS col1, 35 + + + 85 AS col1 +---- +120 +59 query II rowsort SELECT - 11 AS col0, 3 @@ -38989,8 +39433,11 @@ 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\(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\. +query II valuesort SELECT ALL + 43 AS col0, - COUNT ( * ) * - 81 + + 68 * - + 13 * - + 2 + + 99 AS col0 +---- +1948 +43 query I rowsort label-7434 SELECT + COALESCE ( + 92, + MIN ( ALL 53 ) ) AS col2 @@ -40358,14 +40805,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CASE Int64\(78\) WHEN Int64\(98\) THEN Int64\(71\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) / + COUNT ( * ) AS col2, CASE 78 WHEN 98 THEN + 71 ELSE NULL END col2 +---- +1 +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 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 II valuesort SELECT 41 AS col1, CAST ( NULL AS INTEGER ) AS col1 +---- +41 +NULL query II rowsort label-7698 SELECT 82 * - COUNT ( * ) * + + 27 - - 22 AS col1, + 87 @@ -40703,8 +41156,11 @@ 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\(26\) / Int64\(59\) \* \(\- Int64\(\-81\)\) AS col1" at position 0 and "Int64\(31\) / Int64\(\-36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 26 / + 59 * - - 81 AS col1, + 31 / + - 36 AS col1 +---- +0 +0 query I rowsort SELECT + 31 * 58 @@ -40714,8 +41170,11 @@ SELECT + 31 * 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 2116 -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\) \* Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 73 AS col1, - 46 * + - 46 AS col1 +---- +2116 +73 query I rowsort label-7765 SELECT DISTINCT 55 / - 81 @@ -40740,8 +41199,11 @@ SELECT DISTINCT COUNT ( * ) * 84 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(26\), Int64\(75\)\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( + 26, 75 ) AS col1, 92 col1 +---- +26 +92 query I rowsort label-7770 SELECT - 54 / 30 @@ -40834,8 +41296,11 @@ SELECT - + 81 - NULLIF ( + - ( - 94 ), + + 89 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, + COUNT ( * ) AS col2 +---- +1 +1 query I rowsort label-7788 SELECT ALL + COUNT ( * ) * - CAST ( - + AVG ( ALL + - 51 ) AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2 @@ -40850,8 +41315,11 @@ SELECT + ( 40 ) + - 3 * + 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 2523 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-43\)\)\) / Int64\(74\) AS col1" at position 0 and "Int64\(87\) \* Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - - 43 ) / 74 AS col1, 87 * 29 AS col1 +---- +0 +2523 query I rowsort SELECT + 59 * 26 AS col0 @@ -42095,8 +42563,11 @@ SELECT + 92 * 20 + + 9 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 80211 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "Int64\(23\) \* Int64\(\-26\) \- Int64\(\-1\) \+ Int64\(6\) \* Int64\(91\) \* Int64\(4\) \* Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 16 AS col1, + 23 * - 26 - - 1 + + + 6 * + 91 * 4 * 37 AS col1 +---- +16 +80211 query II rowsort label-8025 SELECT + MIN ( ALL - 91 ) AS col0, 19 * - 97 / COUNT ( * ) @@ -42246,8 +42717,11 @@ SELECT - 67 * MIN ( DISTINCT + NULLIF ( + + 86, - - 2 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -361727 # Datafusion - Expected - 14547456 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(\-54\) \+ max\(Int64\(99\)\) \* Int64\(44\) \* Int64\(\-83\) \+ Int64\(94\) \+ Int64\(51\) AS col0" at position 0 and "Int64\(41\) \* Int64\(84\) \* \(\- max\(Int64\(\-48\)\)\) \* coalesce\(Int64\(88\), Int64\(37\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 * + ( - 54 ) + MAX ( 99 ) * 44 * + - 83 + + 94 + 51 AS col0, 41 * + ( + ( 84 ) ) * - MAX ( - 48 ) * + COALESCE ( + + 88, + 37 ) AS col0 +---- +-361727 +14547456 query I rowsort label-8054 SELECT - - 53 * + + ( - COUNT ( * ) ) + - 8 - + COUNT ( * ) @@ -42371,8 +42845,11 @@ SELECT COALESCE ( - 59, - 74 ) * 47 + - + 28 - + 50 - 70 AS col0, + 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 150660 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \* Int64\(81\) \* Int64\(\-93\) AS col0" at position 0 and "Int64\(\-3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 20 * + 81 * - 93 AS col0, ( + - 3 ) AS col0 +---- +-3 +150660 query I rowsort label-8077 SELECT ALL COALESCE ( + COUNT ( ALL + CAST ( + 90 AS INTEGER ) ), + + 7 * - 1 * 51 + 9 + - 86 ) col2 @@ -42382,8 +42859,11 @@ SELECT ALL COALESCE ( + COUNT ( ALL + CAST ( + 90 AS INTEGER ) ), + + 7 * - 1 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(35\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - MAX ( ALL + 35 ) AS col1, COUNT ( * ) AS col1 +---- +1 +35 query II rowsort label-8079 SELECT 69 + - + CASE - CAST ( + 42 AS INTEGER ) WHEN - 14 * 3 + CASE + - 57 WHEN - - 34 THEN - + ( + 97 ) - - 4 + + COUNT ( * ) ELSE NULL END THEN NULL WHEN - 30 * 22 + + - 60 * 20 THEN 62 ELSE NULL END, + COUNT ( * ) AS col1 @@ -42426,8 +42906,11 @@ 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\(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\. +query II valuesort SELECT 71 * - 43 AS col0, COUNT ( * ) + 96 * 43 * - ( + + ( + SUM ( + 26 ) ) ) AS col0 +---- +-107327 +-3053 query I rowsort label-8087 SELECT + COUNT ( * ) * - 71 + ( CAST ( + 27 AS INTEGER ) ) / COUNT ( * ) @@ -42448,8 +42931,12 @@ SELECT 61 + - 46 # Datafusion - Expected - -324 # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \+ Int64\(\-5\) \* Int64\(80\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 76 + + - 5 * 80 col1, 10 / - + 74 * - 43, CAST ( NULL AS INTEGER ) col1 +---- +-324 +0 +NULL query II rowsort label-8091 SELECT + 84 * - 70 + 99 col0, - COUNT ( * ) @@ -42570,8 +43057,11 @@ SELECT COUNT ( * ), - 30 + + + 47 + + + 12 + - 47 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 12766 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "Int64\(15\) \* \(\- Int64\(\-23\)\) \* Int64\(37\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 30 col1, 15 * - ( + - 23 ) * + 37 + + COUNT ( * ) col1 +---- +12766 +30 query II rowsort label-8114 SELECT COALESCE ( - + 65, - + COUNT ( * ) - - 44, + 21 ) * + 79, ( - + 4 ) AS col1 @@ -42692,8 +43182,11 @@ SELECT ALL 30 * + 26 + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 138 # Datafusion - Expected - 1416 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(98\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(59\) \* Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 39 * + COUNT ( * ) + 98 + COUNT ( * ) AS col0, + 59 * 24 col0 +---- +138 +1416 query I rowsort label-8137 SELECT + COALESCE ( + CAST ( - 24 AS INTEGER ), 31, + 57 + + ( - 42 ) * + NULLIF ( - + 92, 73 ) + + 1 ) AS col2 @@ -43035,8 +43528,11 @@ SELECT ALL - 4 + 96 * - 87 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 "Int64\(34\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 AS col1, + 97 AS col1 +---- +34 +97 query I rowsort SELECT ALL + 17 * + + 37 AS col2 @@ -43230,8 +43726,11 @@ SELECT 5 + - + 57 - + + 67 AS col2 # 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\(66\) / CASE Int64\(\-19\) WHEN Int64\(\-32\) THEN Int64\(21\) ELSE NULL 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 II valuesort SELECT ALL 66 / + + CASE + - 19 WHEN - 32 THEN + 21 ELSE NULL END AS col0, 7 AS col0 +---- +7 +NULL query II rowsort SELECT ALL - ( - 96 ) AS col0, - CASE + COALESCE ( - 84, - 56 ) WHEN - 93 THEN 96 END AS col2 @@ -43691,8 +44190,12 @@ SELECT DISTINCT - 56 + + 42 AS col0 # Datafusion - Expected - -75 # Datafusion - Expected - NULL # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col1" at position 0 and "\(\- CAST\(NULL AS Float64\)\) \+ Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IRI valuesort SELECT - 75 AS col1, - CAST ( NULL AS FLOAT8 ) + + + 74 AS col1, + + 44 +---- +-75 +44 +NULL query I rowsort SELECT ALL - ( - 28 ) + - 61 AS col2 @@ -44305,8 +44808,11 @@ SELECT ALL 71 + + + 58 * - 36 col0 # 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\(\-26\) AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 26 AS col2, 46 AS col2 +---- +-26 +46 query I rowsort label-8446 SELECT - 15 * - 85 * + 22 - + MAX ( DISTINCT + 75 ) * - SUM ( + 67 / 24 ) @@ -44461,8 +44967,11 @@ SELECT DISTINCT 5 + + - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(93\)\) AS col2" at position 0 and "Int64\(94\) \+ Int64\(\-74\) \+ Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + + 93 ) AS col2, 94 + - 74 + 4 AS col2 +---- +-93 +24 query I rowsort label-8476 SELECT 53 * - - 75 * ( + - COUNT ( * ) ) + + 70 AS col1 @@ -44696,8 +45205,11 @@ SELECT + 11 / + 15 AS col2, + 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11741 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \* Int64\(\-10\) \* Int64\(53\) \+ Int64\(\-81\) AS col2" at position 0 and "Int64\(40\) \+ Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 22 * - 10 * + 53 + - 81 AS col2, 40 + 44 AS col2 +---- +-11741 +84 query I rowsort label-8522 SELECT DISTINCT 91 * - CAST ( NULL AS INTEGER ) + 27 AS col2 @@ -44952,8 +45464,11 @@ SELECT + 14 * 73 + 76 # 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\(84\) \+ \(\- Int64\(7\)\) AS col1" at position 0 and "CASE min\(DISTINCT Int64\(12\)\) WHEN Int64\(\-12\) THEN Int64\(\-95\) \- Int64\(68\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 + - + 7 AS col1, CASE + MIN ( DISTINCT 12 ) WHEN - 12 THEN - 95 - 68 END AS col1 +---- +77 +NULL query I rowsort SELECT DISTINCT - 2 + + + 51 AS col0 @@ -45148,8 +45663,12 @@ NULL # Datafusion - Expected - 0 # Datafusion - Expected - -275 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) / Int64\(93\) / Int64\(\-67\) AS col1" at position 0 and "Int64\(\-25\) \* \(\- \(\- Int64\(11\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 68 / 93 / - 67 col1, - 25 * - - ( + 11 ) AS col1, + 27 AS col2 +---- +-275 +0 +27 query II rowsort label-8607 SELECT - + 56, COUNT ( * ) * 59 col1 @@ -45419,8 +45938,11 @@ SELECT + 87 * - - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 86 AS col1, ( + 76 ) col1 +---- +-86 +76 query I rowsort SELECT - - 46 + 8 + + - 67 AS col1 @@ -45585,8 +46107,11 @@ SELECT ALL 80 AS col1, + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col0" at position 0 and "Int64\(24\) \+ Int64\(20\) \+ Int64\(19\) / Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 33 AS col0, + ( + 24 ) + 20 + + 19 / + - 60 AS col0 +---- +33 +44 query I rowsort label-8688 SELECT ALL COUNT ( 62 ) / - 18 AS col1 @@ -46014,8 +46539,11 @@ SELECT DISTINCT COUNT ( * ) * 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7861 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \* CAST\(\(\- Int64\(\-94\)\) AS Int32\) \+ Int64\(35\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 84 * + CAST ( - ( - 94 ) AS INTEGER ) + 35 AS col2, 75 AS col2 +---- +-7861 +75 query II rowsort SELECT ALL + NULLIF ( 21, + ( - 80 ) ), 71 AS col2 @@ -47038,8 +47566,12 @@ SELECT ALL CAST ( + 53 AS INTEGER ) * 25 * 89 + 93, + NULLIF ( 57, - 21 + COUNT # Datafusion - Expected - -1851821 # Datafusion - Expected - 4491 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) \* Int64\(71\) \* \(\- Int64\(\-7\)\) \* \(\- Int64\(\-81\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 46 * + 71 * - - 7 * - - 81 + + COUNT ( * ) AS col1, 60 * + 76 - + + 69 AS col0, + + 54 AS col1 +---- +-1851821 +4491 +54 query I rowsort SELECT DISTINCT COALESCE ( - 87, + 89 ) * + 8 + - - 79 AS col1 @@ -47218,8 +47750,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(89\)\)\) \* Int64\(3\) \+ Int64\(\-96\) AS col2" at position 0 and "Int64\(\-82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( + 89 ) * + 3 + + - 96 AS col2, - 82 AS col2 +---- +-82 +-99 query I rowsort label-8998 SELECT ALL - + CAST ( - - 68 AS INTEGER ) @@ -48245,8 +48780,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 77 + + 60 + - 98 col0, ( - COUNT ( * ) ) + + 91 AS col0 +---- +-115 +90 query I rowsort label-9191 SELECT ALL + COUNT ( ALL - 8 ) @@ -49152,8 +49690,11 @@ SELECT ALL 54 AS col2, 11 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 119 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "Int64\(28\) \+ Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 AS col2, 28 + 91 col2 +---- +119 +56 query I rowsort SELECT 38 + - 56 AS col1 @@ -49168,8 +49709,11 @@ SELECT DISTINCT + 41 - + 44 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT 37 AS col2, - 55 AS col2 +---- +-55 +37 query I rowsort label-9368 SELECT COUNT ( * ) * + 94 AS col2 @@ -49263,8 +49807,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 2318 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "Int64\(38\) \* Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 22 AS col1, ( 38 ) * + 61 AS col1 +---- +22 +2318 query I rowsort SELECT ALL + 59 + - NULLIF ( - CASE + - 52 WHEN 21 THEN + + 77 ELSE NULL END, - 8 / 11 ) AS col1 @@ -49812,8 +50359,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 56 / - COUNT ( * ) AS col1, + 85 AS col1 +---- +-56 +85 query I rowsort label-9490 SELECT 65 * MIN ( + - 51 ) AS col2 @@ -49950,8 +50500,11 @@ 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\(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\. +query II valuesort SELECT 55 + + COUNT ( * ) + + - 91 - + ( - - 62 ) / - 35 + + 34 + + + 74 AS col1, 67 AS col1 +---- +67 +74 query I rowsort SELECT DISTINCT 57 * + 32 @@ -49982,8 +50535,11 @@ SELECT 70 + 84 * + 83 + - 43 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 595 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \* Int64\(\-7\) AS col2" at position 0 and "Int64\(\-48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 85 * - 7 AS col2, - 48 AS col2 +---- +-48 +595 query I rowsort label-9522 SELECT + COUNT ( * ) + 28 / + - 41 + - 76 AS col0 @@ -50025,8 +50581,11 @@ SELECT - 78 * + 51 + - ( 60 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -4070 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(1\)\) \* \(\- CAST\(Int64\(59\) AS Int32\)\) \+ Int64\(76\) \+ Int64\(\-89\) / Int64\(50\) \* Int64\(58\) AS col1" at position 0 and "Int64\(60\) \* Int64\(\-68\) \+ Int64\(\-83\) \+ Int64\(94\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + + 1 ) * - + CAST ( 59 AS INTEGER ) + 76 + - 89 / 50 * 58 col1, 60 * + - 68 + - 83 + 94 - COUNT ( * ) AS col1 +---- +-4070 +77 query I rowsort label-9530 SELECT ALL - COUNT ( * ) / + 25 AS col2 @@ -50107,8 +50666,11 @@ SELECT DISTINCT 91 * 42 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 53 AS col0, - 80 AS col0 +---- +-80 +53 query I rowsort SELECT DISTINCT + 89 * + + 59 AS col2 @@ -50540,8 +51102,11 @@ SELECT 82 * COUNT ( * ) * + 46 * 51 * ( - ( - 23 ) ) AS col2 # 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 "nullif\(min\(coalesce\(Int64\(3\), Int64\(\-73\)\)\), Int64\(28\) \+ Int64\(70\) \* Int64\(97\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 44 AS col0, + NULLIF ( MIN ( + COALESCE ( ( + + ( + 3 ) ), - 73 ) ), + 28 + + 70 * + 97 ) AS col0 +---- +-44 +3 query I rowsort SELECT 56 + - + 85 + - 83 + + 92 @@ -50661,8 +51226,11 @@ SELECT 93 + - - ( - 5 ) / - ( + 50 ) * - 51 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col2" at position 0 and "Int64\(\-62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 33 AS col2, - 62 AS col2 +---- +-62 +33 query I rowsort SELECT ALL ( - 38 ) - - 99 + + 40 @@ -50761,8 +51329,12 @@ SELECT DISTINCT + COUNT ( - 23 ) + 30 * - - 92 # Datafusion - Expected - 80 # Datafusion - Expected - 60300 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \+ Int64\(92\) AS col0" at position 0 and "Int64\(67\) \* \(\- Int64\(\-45\)\) \* Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 12 + 92 col0, 67 * - - 45 * + 20 AS col0, 5 AS col1 +---- +5 +60300 +80 query I rowsort SELECT - + 17 * 62 @@ -51176,8 +51748,11 @@ SELECT + 74 * + 46 + + 54 / NULLIF ( 93, - 1 + 23 * - 21 + - + CAST ( 74 AS INTE # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 AS col0, + 2 AS col0 +---- +2 +38 query II rowsort SELECT 25, 30 AS col2 @@ -51290,8 +51865,11 @@ SELECT - MAX ( + + 47 ) / 52 - - 64 * - + 56 + + MAX ( ALL - + 33 ) + + + 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 92 AS col1, 12 col1 +---- +12 +92 query I rowsort label-9769 SELECT + 10 / + - 60 @@ -51455,8 +52033,11 @@ SELECT DISTINCT + - 42 AS col2, ( - 27 ) / - MAX ( ALL + 39 ) * - 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col2" at position 0 and "min\(DISTINCT \(\- Int64\(\-32\)\)\) \+ Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 97 AS col2, MIN ( DISTINCT - - 32 ) + - 89 AS col2 +---- +-57 +97 query I rowsort label-9800 SELECT CAST ( + - 14 AS INTEGER ) AS col1 @@ -51933,8 +52514,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * + 83 col1, + 10 * + + 68 AS col1 +---- +680 +83 query I rowsort label-9891 SELECT + ( 42 ) + + COUNT ( * ) @@ -52481,5 +53065,9 @@ SELECT ALL - 91 + + - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - -2688 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "Int64\(84\) \* \(\- nullif\(Int64\(32\), Int64\(\-17\) \+ Int64\(62\) \* Int64\(31\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 38 AS col0, 84 * - + NULLIF ( 32, - 17 + 62 * 31 ) AS col0 +---- +-2688 +38 + diff --git a/data/sqlite/random/expr/slt_good_84.slt b/data/sqlite/random/expr/slt_good_84.slt index c2c42cc..f712ddd 100644 --- a/data/sqlite/random/expr/slt_good_84.slt +++ b/data/sqlite/random/expr/slt_good_84.slt @@ -119,8 +119,11 @@ SELECT ALL COALESCE ( - COUNT ( * ), - + COALESCE ( - COUNT ( * ), - 98 ) + 9 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(26\) \+ nullif\(Int64\(\-16\), CAST\(Int64\(\-12\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, + 26 + + NULLIF ( - 16, CAST ( - 12 AS INTEGER ) ) AS col0 +---- +1 +10 query I rowsort label-16 SELECT + MIN ( ALL - - 42 ) * - 16 - - COUNT ( * ) col0 @@ -578,8 +581,11 @@ NULL # 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\(54\) \+ Int64\(17\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 + + 17 AS col0, 30 AS col0 +---- +30 +71 query I rowsort SELECT ALL + 87 * + + 60 col0 @@ -1600,8 +1606,11 @@ SELECT ALL + 65 AS col0, + 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - -170644320 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* \(\- Int64\(15\)\) \* Int64\(36\) \* Int64\(\-38\) \* \(\- Int64\(99\)\) AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( 84 ) * - ( + + 15 ) * 36 * - 38 * - + 99 AS col2, + 44 col2 +---- +-170644320 +44 query I rowsort label-302 SELECT DISTINCT + COUNT ( ALL - 55 ) @@ -1743,8 +1752,11 @@ SELECT ALL COUNT ( * ) - ( + 74 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - -624 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(2\) AS col0" at position 0 and "Int64\(78\) \* Int64\(\-8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 34 * + + 2 col0, 78 * + - 8 col0 +---- +-624 +68 query I rowsort label-328 SELECT DISTINCT SUM ( DISTINCT 37 ) @@ -2566,8 +2578,11 @@ SELECT 61 * - COUNT ( * ) + + CAST ( + 12 AS INTEGER ) + + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-5\)\) AS col1" at position 0 and "Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 5 AS col1, + 61 col1 +---- +5 +61 query I rowsort label-484 SELECT ALL - MIN ( DISTINCT + - 8 ) AS col0 @@ -2883,8 +2898,11 @@ SELECT - 26 * - + 8 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 2352 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "Int64\(49\) \* Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( ( 90 ) ) AS col0, 49 * + 48 AS col0 +---- +2352 +90 query I rowsort label-544 SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - 64 * + - 82 * + + 81 * + + 4 AS col2 @@ -3508,8 +3526,11 @@ SELECT + 63 * - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26910 # Datafusion - Expected - 1639 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) \* \(\- Int64\(26\)\) \* Int64\(\-15\) AS col2" at position 0 and "Int64\(\-43\) \* \(\- Int64\(36\)\) \+ Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 69 * - + 26 * - 15 AS col2, - 43 * - ( 36 ) + + 91 AS col2 +---- +-26910 +1639 query I rowsort label-664 SELECT DISTINCT 92 / + - 84 @@ -3629,8 +3650,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 22 + - 22 + 74 col0, - COUNT ( * ) AS col0 +---- +-1 +30 query I rowsort SELECT + 16 + 78 * + 80 @@ -3905,8 +3929,11 @@ SELECT + 33 * 22 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -249936 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) \+ Int64\(96\) \* Int64\(\-62\) \* Int64\(42\) AS col2" at position 0 and "Int64\(\-77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 48 + 96 * - 62 * 42 AS col2, - 77 AS col2 +---- +-249936 +-77 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -4149,8 +4176,11 @@ SELECT ALL 28 col0, - ( - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \- \(\- CAST\(CAST\(Int64\(1\) AS Int32\) AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 1 - - CAST ( + CAST ( 1 AS INTEGER ) AS INTEGER ) AS col1, + COUNT ( * ) col1 +---- +1 +2 query I rowsort label-785 SELECT DISTINCT 68 * COUNT ( * ) AS col2 @@ -4288,8 +4318,11 @@ SELECT - COALESCE ( 62, - - 38, 49 ) AS col2, 24 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 126 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* \(\- Int64\(\-2\)\) AS col2" at position 0 and "Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 63 * - - 2 AS col2, - 33 AS col2 +---- +-33 +126 query II rowsort label-811 SELECT - 54 * + COUNT ( * ) - - 28, 29 col1 @@ -4526,8 +4559,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 82 AS col1, 54 AS col1 +---- +54 +82 query I rowsort label-857 SELECT COALESCE ( + COALESCE ( - 37, + 89 * 91 ), + 20 ) + 76 - + 33 - - CASE WHEN NOT NULL IS NULL THEN + 58 WHEN NOT + CAST ( NULL AS INTEGER ) IS NULL THEN 37 - + 67 END * + CAST ( NULL AS INTEGER ) * 29 AS col0 @@ -4585,8 +4621,11 @@ SELECT DISTINCT MIN ( + 20 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 3150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(42\) \* Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, 42 * + 75 AS col2 +---- +1 +3150 query I rowsort label-868 SELECT + 59 / + NULLIF ( - + CAST ( NULL AS INTEGER ), + + CASE MIN ( - - 74 ) WHEN - + 15 * - 5 + ( + 70 ) + + - 88 - + COUNT ( * ) THEN + + 2 WHEN + + 95 + CASE + 86 WHEN 3 THEN - MIN ( DISTINCT - 39 ) * - + 35 * + 72 * - 38 + - CASE - 7 WHEN 65 * - 34 THEN + + ( - - 38 ) + 46 / + 36 END * AVG ( ALL 20 * CASE + 46 WHEN NULLIF ( + 81, + ( 43 ) + + 3 ) THEN + 58 * 85 END ) WHEN + 34 THEN NULL ELSE NULL END THEN + 66 ELSE + 60 * + COUNT ( * ) END * + 78 ) * + 38 AS col1 @@ -5061,8 +5100,11 @@ SELECT ( + 23 ) * - + 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col2" at position 0 and "Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 62 AS col2, + 43 AS col2 +---- +-62 +43 query I rowsort label-958 SELECT ALL COUNT ( * ) + - 31 AS col0 @@ -5304,8 +5346,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-38\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - 38 ) col0, CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col0 +---- +38 +NULL query II rowsort SELECT - ( 53 ) col2, + 53 @@ -5773,8 +5818,11 @@ SELECT DISTINCT + 25 * - 23 AS col2 # 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 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 IR valuesort SELECT 49 AS col1, + CAST ( NULL AS FLOAT8 ) col1 +---- +49 +NULL query I rowsort SELECT 95 - + 9 + 29 @@ -5873,8 +5921,11 @@ 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\(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\. +query II valuesort SELECT ( + COUNT ( * ) ) + - 71 AS col0, - COUNT ( * ) + COUNT ( * ) * - 3 + + 38 + - 83 + + + 4 col0 +---- +-45 +-70 query I rowsort label-1112 SELECT ALL + 91 + - 94 - + 49 / - 68 * - + MIN ( - ( + 42 ) ) * - 24 * - 89 * + ( ( + 14 ) ) - COUNT ( * ) + - COUNT ( - + 61 ) @@ -6546,8 +6597,11 @@ SELECT ALL + 81, 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 577 # Datafusion - Expected - 135 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \* Int64\(55\) \+ \(\- Int64\(28\)\) AS col2" at position 0 and "Int64\(94\) \+ \(\- Int64\(\-41\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 11 * + 55 + - + 28 col2, + 94 + - - 41 AS col2 +---- +135 +577 query II rowsort label-1239 SELECT ALL + COUNT ( * ) AS col1, 17 @@ -6806,8 +6860,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 130 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(65\) \+ Int64\(65\) \+ Int64\(19\) / Int64\(\-43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( 47 ) AS col2, + 65 + 65 + + 19 / - 43 col2 +---- +130 +47 query I rowsort SELECT + - 62 * - 56 * + - 54 @@ -6898,8 +6955,11 @@ SELECT + + 3 * - + 47 - + 65 + - 6 + - CAST ( - 31 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 0 and "Int64\(46\) \- Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + 91 ) AS col1, + 46 - + 93 AS col1 +---- +-47 +91 query I rowsort label-1306 SELECT - ( CAST ( NULLIF ( - + COUNT ( * ), + 94 ) AS INTEGER ) ) @@ -7086,8 +7146,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - -1311 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col0" at position 0 and "Int64\(19\) \* \(\- Int64\(69\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 22 AS col0, + 19 * - + 69 AS col0 +---- +-1311 +-22 query I rowsort label-1342 SELECT 61 / + 41 AS col0 @@ -7535,8 +7598,11 @@ SELECT DISTINCT COUNT ( * ) + + - 96 * 69 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -2380 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "Int64\(\-85\) \* Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 74 AS col1, - 85 * 28 AS col1 +---- +-2380 +74 query I rowsort SELECT ALL 31 * - 48 AS col2 @@ -8613,8 +8679,11 @@ SELECT - COUNT ( * ) + + 24 # 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 col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 col1, 12 AS col1 +---- +12 +41 query I rowsort label-1636 SELECT ALL CAST ( CASE - 33 WHEN ( MIN ( + 21 ) ) * 78 THEN 97 + 35 ELSE 32 + 54 END AS INTEGER ) AS col1 @@ -8630,8 +8699,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 8 AS col0, + 53 AS col0 +---- +53 +8 query II rowsort SELECT ALL 61 AS col0, + 94 * + 83 @@ -10205,8 +10277,11 @@ SELECT DISTINCT 52 / - SUM ( - - 76 ) + + + MAX ( ALL 42 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col0" at position 0 and "Int64\(\-58\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 67 AS col0, - 58 + + COUNT ( * ) AS col0 +---- +-57 +67 query I rowsort label-1941 SELECT ALL + ( - - COALESCE ( - COUNT ( + 79 ), - 80 * ( CAST ( NULL AS INTEGER ) ) + + 74 + + ( + 16 ) ) ) * + ( - 10 ) AS col0 @@ -10484,8 +10559,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * + - COUNT ( * ) * - 59 col2, + 29 AS col2 +---- +29 +59 query I rowsort label-1994 SELECT DISTINCT 67 / ( - + 1 ) + + 50 @@ -10704,8 +10782,11 @@ 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\(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\. +query II valuesort SELECT + 48 + + - COUNT ( * ) AS col2, 66 + - 86 * - 23 AS col2 +---- +2044 +47 query I rowsort label-2035 SELECT ALL - 56 * COUNT ( * ) col0 @@ -11043,8 +11124,11 @@ SELECT DISTINCT + COUNT ( * ) / - - 43 * + - COALESCE ( + + COUNT ( * ), - - 5, # Datafusion - Datafusion expected results: # Datafusion - Expected - -117 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \+ Int64\(\-40\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 77 + - 40 AS col0, + 30 AS col0 +---- +-117 +30 query I rowsort SELECT - 95 * - 42 * 79 @@ -11452,8 +11536,11 @@ SELECT 91 + + 34 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col2, - 2 AS col2 +---- +-2 +1 query I rowsort label-2178 SELECT DISTINCT - + 86 - + MAX ( - 0 ) @@ -11832,8 +11919,11 @@ SELECT ALL + + MAX ( + 23 ) / + 54 + COUNT ( * ) + - 18 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) / \(\- Int64\(\-45\)\) \+ Int64\(\-41\) \+ Int64\(28\) AS col2" at position 0 and "Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 45 / ( - + ( - 45 ) ) + - 41 + 28 AS col2, - 33 AS col2 +---- +-14 +-33 query I rowsort label-2251 SELECT - ( + + CASE + 53 WHEN - + 15 THEN NULLIF ( - - COUNT ( * ), - 25 * 1 + 53 * 67 * - 98 * + CAST ( NULL AS INTEGER ) ) END ) / + - 59 + - 43 + + COUNT ( * ) @@ -12399,8 +12489,11 @@ 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\(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\. +query II valuesort SELECT + 37 * - NULLIF ( - MIN ( + 8 ), - COUNT ( * ) ) col1, + 40 * + + 88 AS col1 +---- +296 +3520 query I rowsort SELECT ( ( 93 ) ) AS col1 @@ -13002,8 +13095,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "\(\- \(\- Int64\(4\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 90 AS col0, + ( - - ( 4 ) ) AS col0 +---- +4 +90 query II rowsort label-2471 SELECT + CAST ( COUNT ( DISTINCT - 90 ) AS INTEGER ) * + 49 AS col0, + 78 AS col2 @@ -13264,8 +13360,11 @@ SELECT 58 + - 8 + 86 * + + 27 AS col2, - 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 108 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \+ Int64\(49\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 59 + + 49 AS col1, 92 AS col1 +---- +108 +92 query I rowsort label-2520 SELECT 17 / - - 77 + + - 77 @@ -13753,8 +13852,11 @@ SELECT DISTINCT ( - - 34 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "Int64\(\-12\) \+ \(\- CAST\(NULL AS Int32\)\) \+ \(\- count\(Int64\(87\)\)\) \- \(\- Int64\(16\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 22 AS col1, - 12 + - CAST ( NULL AS INTEGER ) + + - COUNT ( ALL + 87 ) - ( - + 16 ) AS col1 +---- +22 +NULL query I rowsort label-2613 SELECT ALL + COUNT ( ALL - CAST ( + 18 AS INTEGER ) ) @@ -13801,8 +13903,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2701 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* \(\- CAST\(Int64\(\-73\) AS Int32\)\) AS col1" at position 0 and "\(\- nullif\(Int64\(70\), Int64\(\-21\) \+ Int64\(\-86\)\)\) \+ Int64\(15\) \+ Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 * - CAST ( - 73 AS INTEGER ) AS col1, - ( + NULLIF ( + 70, - 21 + - 86 ) ) + 15 + + 13 AS col1 +---- +-42 +2701 query I rowsort SELECT + COALESCE ( 73, + 36 ) AS col0 @@ -13939,8 +14044,11 @@ SELECT 31 + - 10 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7584 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \* Int64\(96\) AS col1" at position 0 and "Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 79 * ( 96 ) AS col1, 71 AS col1 +---- +-7584 +71 query I rowsort label-2649 SELECT 20 * - COUNT ( * ) @@ -14030,8 +14138,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 76 AS col0, + MAX ( + 44 ) + 32 + - 21 * - 28 + - + COUNT ( * ) col0 +---- +-76 +663 query I rowsort label-2666 SELECT + 34 * CASE - 83 WHEN - + 95 / + SUM ( 23 ) THEN NULL WHEN - + COUNT ( * ) THEN NULL WHEN - NULLIF ( 37, CAST ( + - ( + 61 ) AS INTEGER ) ) * 29 THEN 31 ELSE NULL END AS col0 @@ -14351,8 +14462,11 @@ SELECT COALESCE ( + 6, + 85 ) AS col0, SUM ( DISTINCT - + 7 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(3\), Int64\(16\)\)\) \* CAST\(NULL AS Int32\) \* avg\(DISTINCT \(\- Int64\(30\)\)\) \- Int64\(24\) / Int64\(16\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - NULLIF ( 3, 16 ) * + CAST ( NULL AS INTEGER ) * AVG ( DISTINCT - + 30 ) - + 24 / + + 16 AS col1, 49 col1 +---- +49 +NULL query I rowsort SELECT + 86 * - 1 * + - 34 + - 19 AS col1 @@ -14605,8 +14719,11 @@ SELECT ALL + 55 * - 60 + + + 42 * + + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col1" at position 0 and "Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 36 AS col1, - 86 col1 +---- +-36 +-86 query I rowsort label-2776 SELECT + + MAX ( DISTINCT 7 ) @@ -15113,8 +15230,11 @@ SELECT + ( - - 27 ) * 3 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2808 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(79\)\) AS col0" at position 0 and "coalesce\(Int64\(78\), Int64\(92\)\) \* Int64\(\-36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( 79 ) AS col0, COALESCE ( 78, + 92 ) * - 36 AS col0 +---- +-2808 +1 query I rowsort label-2872 SELECT DISTINCT + COALESCE ( - 59, + - COUNT ( * ) ) col1 @@ -15989,8 +16109,12 @@ 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\(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\. +query IIR valuesort SELECT 39, + 77 * + + 94 AS col2, - + COUNT ( * ) * - + COUNT ( * ) * + - 13 + + 0 - + 13 + + 83 * + + AVG ( DISTINCT + CAST ( NULL AS FLOAT8 ) ) * 33 / + 38 col2 +---- +39 +7238 +NULL query I rowsort label-3039 SELECT + + SUM ( - 99 ) AS col1 @@ -16006,8 +16130,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + ( - COUNT ( * ) ) + - 65 AS col0, 41 * - 93 AS col0 +---- +-3813 +-66 query I rowsort SELECT - 97 + - ( 58 ) AS col1 @@ -16194,8 +16321,11 @@ SELECT + - ( + + 29 ) + - 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - -2683 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 0 and "Int64\(84\) \* \(\- Int64\(33\)\) \+ Int64\(39\) \+ Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 70 AS col0, 84 * - + 33 + 39 + 50 AS col0 +---- +-2683 +70 query I rowsort label-3078 SELECT ALL + + MAX ( 42 ) @@ -16227,8 +16357,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) * + 31 AS col0, - 57 AS col0 +---- +-57 +31 query II rowsort SELECT ALL 84 col0, 12 @@ -17948,8 +18081,11 @@ SELECT 26 * - 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 AS col2, + 21 AS col2 +---- +21 +96 query II rowsort label-3416 SELECT 91 * 6 AS col2, - COUNT ( * ) / 79 - - - 6 AS col1 @@ -18688,8 +18824,11 @@ SELECT 45 * 81 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 21 AS col2, 69 AS col2 +---- +21 +69 query I rowsort label-3558 SELECT DISTINCT + COUNT ( * ) * + + 52 @@ -18724,8 +18863,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 32 AS col0, - 60 AS col0 +---- +-60 +32 query I rowsort label-3565 SELECT 54 - - COUNT ( * ) AS col0 @@ -18896,8 +19038,11 @@ SELECT ALL COUNT ( * ), 10 AS col2 # 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 col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 AS col1, 38 AS col1 +---- +38 +93 query II rowsort SELECT 28 col2, + 83 AS col0 @@ -19019,8 +19164,12 @@ 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\(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\. +query III valuesort SELECT + - COUNT ( * ), - COUNT ( * ) AS col2, ( 9 ) AS col2 +---- +-1 +-1 +9 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -19184,8 +19333,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) + - 14 AS col2, + 37 AS col2 +---- +-15 +37 query I rowsort SELECT 16 * - - 26 * + 60 AS col0 @@ -19405,8 +19557,11 @@ SELECT 69 + + - 34 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(85\)\) AS col0" at position 0 and "Int64\(\-4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 85 AS col0, - 4 AS col0 +---- +-4 +-85 query I rowsort label-3693 SELECT DISTINCT COUNT ( * ) * - - 39 AS col1 @@ -19638,8 +19793,11 @@ SELECT + ( - - ( - COUNT ( * ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 20 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 40 AS col2, + 20 AS col2 +---- +20 +40 query II rowsort SELECT ALL 32 * 27 + + + 96, 45 AS col1 @@ -19848,8 +20006,11 @@ 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\(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\. +query II valuesort SELECT ALL - 49 AS col2, COUNT ( * ) + 24 + + COUNT ( * ) - NULLIF ( - 41, - 97 ) AS col2 +---- +-49 +67 query II rowsort SELECT 63, - 49 AS col2 @@ -19939,8 +20100,11 @@ 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\(1\)\) AS count\(\*\)\)\) \- \(\- Int64\(\-27\)\) \* Int64\(\-79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 98 AS col0, - 40 * 38 / - - COUNT ( * ) - - - 27 * - 79 AS col0 +---- +613 +98 query I rowsort SELECT DISTINCT - + 44 * + + 23 @@ -20213,8 +20377,11 @@ SELECT ALL + NULLIF ( 2, - 86 + MAX ( + - 61 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 185640 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \* Int64\(\-70\) \* Int64\(39\) AS col2" at position 0 and "Int64\(\-21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 68 * - 70 * 39 AS col2, - 21 AS col2 +---- +-21 +185640 query II rowsort label-3846 SELECT + - 28 col1, 22 - + COUNT ( * ) + + - 87 + 86 @@ -20456,8 +20623,11 @@ SELECT 88 / + 97 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 720 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(85\)\) \* Int64\(9\) \- Int64\(15\) \- CAST\(Int64\(30\) AS Int32\) AS col1" at position 0 and "Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( 85 ) * + 9 - 15 - + + CAST ( 30 AS INTEGER ) AS col1, - 60 AS col1 +---- +-60 +720 query I rowsort SELECT ALL + 87 + - 52 + - 14 * - 76 @@ -20520,8 +20690,11 @@ 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\(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\. +query II valuesort SELECT ALL ( - COUNT ( * ) ) * + 10 AS col0, ( - ( 71 ) ) AS col0 +---- +-10 +-71 query I rowsort SELECT 16 - + + NULLIF ( - + 96, ( + + ( + ( 44 ) ) ) ) AS col1 @@ -20558,8 +20731,12 @@ SELECT + + 84 * - + 33 - + 72 AS col0, - 58 / 77 # Datafusion - Expected - 1088 # Datafusion - Expected - 1605 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(7\)\)\) \+ \(\- \(\- nullif\(Int64\(\-26\), Int64\(\-15\) / \(\- avg\(Int64\(44\)\)\)\)\)\) \* Int64\(62\) / Int64\(\-1\) AS col1" at position 1 and "Int64\(27\) \- Int64\(2\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IRI valuesort SELECT 16 * - - CAST ( 68 AS INTEGER ) col0, - MAX ( ALL 7 ) + - - NULLIF ( + - 26, - 15 / - AVG ( ALL + 44 ) ) * 62 / ( - 1 ) AS col1, + 27 - 2 AS col1 +---- +1088 +1605 +25 query I rowsort SELECT + 83 - 15 + - 39 * + + 71 AS col2 @@ -20585,8 +20762,11 @@ SELECT + 20 * 11 + + 61 + - 24, - 60 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col1" at position 0 and "Int64\(70\) \+ Int64\(\-39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 63 AS col1, 70 + - 39 AS col1 +---- +-63 +31 query II rowsort SELECT 45 AS col0, + 99 + 66 + + + 4 col1 @@ -20772,8 +20952,11 @@ SELECT - 12 + + + 44 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \* Int64\(\-5\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 5 * - 5 AS col0, 23 col0 +---- +-25 +23 query I rowsort SELECT 87 * 77 * 69 + - 87 AS col1 @@ -21008,8 +21191,11 @@ SELECT ALL ( 59 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2376 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(99\) \* Int64\(\-24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col2, + 99 * - 24 col2 +---- +-2376 +1 query II rowsort SELECT + 92 + 35 * + 85 AS col1, 52 @@ -21126,8 +21312,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(77\) / \(\- Int64\(\-19\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 95 AS col2, + COUNT ( * ) * + 77 / - - 19 AS col2 +---- +-95 +4 query I rowsort SELECT ALL - ( 86 ) + - ( 56 ) + - - 82 * - + 89 @@ -21243,8 +21432,11 @@ 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\(1\)\) AS count\(\*\) \- \(\- Int64\(\-25\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( DISTINCT - - 76 ) AS col2, COUNT ( * ) - - - 25 AS col2 +---- +-24 +1 query I rowsort SELECT 39 * + - 20 AS col0 @@ -21254,8 +21446,11 @@ SELECT 39 * + - 20 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 2879 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \+ Int64\(8\) \+ Int64\(\-42\) \+ Int64\(\-53\) AS col1" at position 0 and "Int64\(\-42\) \+ Int64\(9\) \+ min\(\(\- Int64\(\-32\)\)\) \* Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 17 + + 8 + - 42 + - 53 AS col1, ( - 42 ) + 9 + MIN ( - - 32 ) * 91 AS col1 +---- +-70 +2879 query I rowsort label-4043 SELECT DISTINCT + 66 + 70 * - - 10 + - + SUM ( 90 ) @@ -21466,8 +21661,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(\-71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 39 AS col1, + COUNT ( * ) / - 71 AS col1 +---- +0 +39 query I rowsort label-4083 SELECT + COUNT ( * ) + - 15 + - 73 AS col2 @@ -21582,8 +21780,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 91 col2, 34 AS col2 +---- +34 +91 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -21890,8 +22091,11 @@ SELECT 48 / - 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 0 and "Int64\(\-67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 28 AS col0, - 67 AS col0 +---- +-67 +28 query I rowsort label-4162 SELECT ALL + CAST ( NULL AS INTEGER ) + ( - - 20 ) * - - CAST ( 73 AS INTEGER ) * - + CAST ( NULL AS INTEGER ) @@ -21993,8 +22197,11 @@ SELECT - 1 * + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1175472553 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) \* Int64\(\-71\) \* Int64\(54\) \* Int64\(52\) \* \(\- Int64\(\-88\)\) \- \(\- Int64\(25\)\) \* Int64\(\-47\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 67 * - 71 * 54 * 52 * - ( - 88 ) - - + 25 * - 47 AS col2, + 28 AS col2 +---- +1175472553 +28 query I rowsort SELECT ALL - 79 + - 0 AS col0 @@ -22390,8 +22597,11 @@ SELECT ALL 17 + + 34 - + 99 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 63 AS col1, - 33 col1 +---- +-33 +63 query I rowsort SELECT ALL 93 - - + ( + 68 ) AS col0 @@ -22545,8 +22755,11 @@ SELECT ALL + 3 + - - NULLIF ( + + 18, 0 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col2" at position 0 and "Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 AS col2, ( - 20 ) col2 +---- +-20 +69 query I rowsort label-4284 SELECT ALL - + CAST ( + + 34 AS INTEGER ) @@ -22586,8 +22799,11 @@ SELECT ALL - 17 - - - 76 - + 78 * + 53 * - - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4278 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* Int64\(69\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 62 * 69 col2, 21 AS col2 +---- +21 +4278 query I rowsort label-4292 SELECT ALL + CAST ( + 54 AS INTEGER ) / 37 AS col2 @@ -22643,8 +22859,11 @@ SELECT DISTINCT COUNT ( * ) * + 33, - COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 33 * - + CAST ( NULL AS INTEGER ) AS col1, 86 AS col1 +---- +86 +NULL query I rowsort SELECT 18 + + ( + 22 ) @@ -22685,8 +22904,11 @@ SELECT 98 + + + 10 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) / Int64\(\-52\) AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 13 / - 52 AS col1, + 90 AS col1 +---- +0 +90 query I rowsort SELECT + 98 * + + ( + 81 ) @@ -22915,8 +23137,11 @@ SELECT ALL 34 / 13 AS col0, - 73 + - + 28 + ( 25 ) + - 45 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13798437 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ Int64\(80\) \* Int64\(\-44\) \* CAST\(\(\- CAST\(Int64\(98\) AS Int32\)\) AS Int32\) \* Int64\(40\) \- \(\- min\(Int64\(\-3\)\)\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 40 + 80 * - 44 * + CAST ( - CAST ( 98 AS INTEGER ) AS INTEGER ) * 40 - - MIN ( ALL - 3 ) AS col2, 42 AS col2 +---- +13798437 +42 query I rowsort SELECT + 5 * - + 26 @@ -23074,8 +23299,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-58\)\) AS col2" at position 0 and "Int64\(\-61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - 58 ) AS col2, - 61 col2 +---- +-61 +58 query II rowsort label-4384 SELECT DISTINCT - + SUM ( DISTINCT - 9 ), - 38 AS col2 @@ -23305,8 +23533,11 @@ SELECT + 18, 22 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - 560790 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col2" at position 0 and "Int64\(93\) \* \(\- Int64\(90\)\) \* Int64\(\-67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 40 AS col2, + 93 * - + 90 * - 67 AS col2 +---- +-40 +560790 query II rowsort label-4427 SELECT - 44 / 8 + + NULLIF ( + 89, + + 52 * - COUNT ( * ) + MAX ( + 24 ) ) + + + ( 98 ) + + 66 col0, 77 * + + 77 + + - ( + 89 ) + 17 * + 40 AS col1 @@ -23447,8 +23678,11 @@ 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\(1\)\) AS count\(\*\) / \(\- Int64\(76\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 23 AS col1, 32 * COUNT ( * ) / - + 76 AS col1 +---- +0 +23 query I rowsort SELECT + 48 + + + 63 @@ -23617,8 +23851,11 @@ SELECT + 96 * 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \- Int64\(24\) AS col0" at position 0 and "\(\- CAST\(Int64\(39\) AS Int32\)\) \+ Int64\(27\) \+ Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) - + + 24 AS col0, - CAST ( 39 AS INTEGER ) + + 27 + + 29 AS col0 +---- +17 +NULL query I rowsort label-4485 SELECT - COUNT ( * ) * + CASE + + 8 WHEN + 47 THEN - 19 END @@ -23780,8 +24017,11 @@ SELECT - 42 AS col1, COUNT ( * ) / ( 96 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 AS col0, + COUNT ( * ) AS col0 +---- +-58 +1 query I rowsort label-4516 SELECT DISTINCT COALESCE ( - 92, COUNT ( * ) * + 95 + - SUM ( + ( + 26 ) ) + ( 27 ) ) @@ -24014,8 +24254,11 @@ SELECT - - NULLIF ( - 74, 90 ) + + 91 * - + 85 + + 38 + + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "Int64\(7\) \* CASE Int64\(32\) WHEN Int64\(\-26\) \+ Int64\(90\) \+ Int64\(59\) \+ Int64\(\-49\) THEN NULL ELSE CAST\(Int64\(41\) AS Int32\) / Int64\(\-84\) END \* Int64\(\-45\) / Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 54 col2, 7 * CASE 32 WHEN + - 26 + + + 90 + + 59 + - 49 THEN NULL ELSE CAST ( 41 AS INTEGER ) / - 84 END * - 45 / 41 AS col2 +---- +0 +54 query I rowsort SELECT ALL 4 * - 25 + + 34 @@ -24074,8 +24317,11 @@ SELECT - ( - 36 ) 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\(95\) AS col0" at position 0 and "Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 95 AS col0, - 76 AS col0 +---- +-76 +95 query I rowsort label-4572 SELECT + NULLIF ( + 74, + 18 ) / - - COUNT ( * ) + + - 42 AS col1 @@ -24152,8 +24398,11 @@ SELECT + COUNT ( * ) + + - 30 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - CAST ( NULL AS INTEGER ) AS col2, ( CAST ( NULL AS FLOAT8 ) ) AS col2 +---- +NULL +NULL query II rowsort label-4587 SELECT 32, - CAST ( 17 AS INTEGER ) AS col2 @@ -24273,8 +24522,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 29 + 87 AS col2, - 79 - - 33 * + COUNT ( * ) * 80 AS col2 +---- +116 +2561 query I rowsort label-4610 SELECT ( + - COALESCE ( - COUNT ( * ), + - 2, - - 59 ) ) / + 50 @@ -24411,8 +24663,11 @@ SELECT COUNT ( ALL + 52 ) + + 18 AS col1 # 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\(\-78\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 78 AS col0, 22 AS col0 +---- +-78 +22 query I rowsort SELECT ALL 38 + COALESCE ( - + 59, - COALESCE ( + + 74, 82 ) ) - + 25 AS col1 @@ -24697,8 +24952,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - + 63 * 83 + 63 + + 73 col1, COUNT ( * ) / + - 37 + + 15 * + 15 * 99 AS col1 +---- +-5093 +22275 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -24818,8 +25076,11 @@ SELECT ALL + 97 + + - 15 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- Int64\(23\)\), Int64\(\-9\)\)\) \- Int64\(\-10\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( - ( + 23 ), - 9 ) - - 10 AS col0, 29 AS col0 +---- +29 +33 query II rowsort SELECT COALESCE ( - 98, 78 ) AS col2, 44 @@ -25106,8 +25367,11 @@ SELECT + CAST ( - ( - 0 ) AS INTEGER ) * + 87 - 15 + + COALESCE ( + - 44, - + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) / Int64\(10\) AS col1" at position 0 and "max\(CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 53 / 10 AS col1, MAX ( + CAST ( NULL AS INTEGER ) ) col1 +---- +5 +NULL query I rowsort label-4766 SELECT ALL COUNT ( * ) * - 46 * - COUNT ( * ) @@ -25273,8 +25537,11 @@ SELECT ALL 68 * - 90 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83790 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(30\) \* Int64\(\-57\) AS col2" at position 0 and "Int64\(96\) \- Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 49 * + + 30 * - 57 col2, 96 - ( + 83 ) col2 +---- +-83790 +13 query II rowsort SELECT DISTINCT + 25 col0, 25 + + 69 AS col2 @@ -25327,8 +25594,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT + + 16 AS col2, - 44 col2 +---- +-44 +16 query I rowsort label-4807 SELECT - 96 - + + COUNT ( * ) col0 @@ -25502,8 +25772,11 @@ SELECT + 67 + 72 + - 89 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 655 # Datafusion - Expected - -3455 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* Int64\(81\) \+ Int64\(\-74\) AS col1" at position 0 and "Int64\(20\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(\-79\) AS Int32\) \* Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 9 * + ( + 81 ) + - 74 AS col1, + 20 + + COUNT ( * ) + + CAST ( - 79 AS INTEGER ) * + ( 44 ) AS col1 +---- +-3455 +655 query I rowsort label-4840 SELECT DISTINCT 75 / - 15 + - NULLIF ( 90, + COUNT ( * ) ) + 7 col2 @@ -27054,8 +27327,11 @@ SELECT 27 * + 37 * - - 5 col1, CAST ( - + 3 AS INTEGER ) * + 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1170 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \* Int64\(13\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 * + 13 AS col2, + ( + 73 ) col2 +---- +-1170 +73 query I rowsort label-5142 SELECT ALL + 34 * + + SUM ( DISTINCT - - 21 ) @@ -27649,8 +27925,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 * - COUNT ( * ) AS col2, 61 AS col2 +---- +-46 +61 query I rowsort label-5254 SELECT ALL + - 30 / 93 + - 37 + + COUNT ( * ) * COALESCE ( - 11, - + 84 ) - + 5 + 8 + - - 40 @@ -27661,8 +27940,12 @@ SELECT ALL + - 30 / 93 + - 37 + + COUNT ( * ) * COALESCE ( - 11, - + 84 ) - + 5 # Datafusion - Expected - 68 # Datafusion - Expected - 8 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 68 col0, 8 AS col0, - - MIN ( DISTINCT 85 ) AS col0 +---- +68 +8 +85 query I rowsort SELECT ALL - ( + - 16 ) AS col1 @@ -28350,8 +28633,11 @@ SELECT - 8 / - 46 * + ( - 54 ) * + 88 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-74\) AS Int32\) / Int64\(\-31\) \+ Int64\(\-2\) \* Int64\(6\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( + - 74 AS INTEGER ) / - 31 + + - 2 * + 6 AS col2, 88 AS col2 +---- +-10 +88 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -28381,8 +28667,11 @@ SELECT 22 col2, + MIN ( + 45 ) + - 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 27 AS col1, + 26 col1 +---- +-27 +26 query I rowsort label-5392 SELECT - - 3 / - CAST ( NULL AS INTEGER ) - + 23 @@ -28508,8 +28797,11 @@ SELECT + + 41 * 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 AS col2, 74 AS col2 +---- +62 +74 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -28794,8 +29086,11 @@ SELECT ALL 20 - + COUNT ( * ) - + CAST ( + 47 AS INTEGER ) * - + 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 2116 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col1" at position 0 and "coalesce\(Int64\(67\), Int64\(69\)\) \+ Int64\(99\) \+ \(\- sum\(Int64\(30\)\)\) \* Int64\(\-65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 55 AS col1, + COALESCE ( + 67, 69 ) + 99 + - SUM ( 30 ) * - 65 AS col1 +---- +2116 +55 query I rowsort label-5468 SELECT CAST ( - 41 AS INTEGER ) * CAST ( NULL AS INTEGER ) * - - 50 + + - CAST ( NULL AS INTEGER ) + + + MIN ( - + 86 ) * - + CAST ( NULL AS INTEGER ) * - - COALESCE ( - 97, + 44 ) + ( 52 ) + + COALESCE ( + 18, 9 * - - 88, - 53 ) + + CASE 1 WHEN - 24 THEN NULL WHEN COALESCE ( 90, CASE ( CAST ( 62 AS INTEGER ) ) WHEN 53 THEN 84 WHEN 22 + + 78 THEN NULL ELSE COUNT ( * ) END ) THEN ( + COALESCE ( - 88, + 62 + 21 / + 94, ( 22 ) / 73 ) ) * + ( + 47 ) WHEN 86 THEN NULL END * 68 + 60 @@ -29097,8 +29392,11 @@ SELECT DISTINCT + 22 AS col1, COALESCE ( + 36, - 8 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col1" at position 0 and "Int64\(\-21\) \+ Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 AS col1, - 21 + + 71 col1 +---- +0 +50 query I rowsort label-5525 SELECT + ( 6 ) * - MIN ( DISTINCT - 53 ) + + 7 @@ -29291,8 +29589,11 @@ SELECT ALL 61 * 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 3078 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "Int64\(57\) \* Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 AS col2, + 57 * 54 AS col2 +---- +3078 +99 query I rowsort label-5562 SELECT - 67 / - - COUNT ( * ) @@ -29458,8 +29759,11 @@ SELECT COUNT ( * ) - + 22 * - 53 * 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(\-1\) AS col2" at position 0 and "Int64\(\-85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 * - 1 AS col2, - 85 col2 +---- +-34 +-85 query I rowsort label-5593 SELECT ALL NULLIF ( + COALESCE ( + COUNT ( * ), - + COUNT ( * ) ), + 67 - + + COALESCE ( - NULLIF ( - - SUM ( DISTINCT + 15 ), - - 29 ), + 50 - - ( - - 71 ) * + COUNT ( * ) ) + - COALESCE ( + - ( + + CAST ( NULL AS INTEGER ) ), COUNT ( + 15 ) ) ) + - 10 * + + 86 + 39 + - 48 * - 66 @@ -29623,8 +29927,11 @@ SELECT 14 - - 2 * - 86 AS col1, - ( + 17 ) + + + 12, + - 98 * 78 - - 99 + + + 65 # 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 col1" at position 0 and "Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 21 AS col1, - 6 AS col1 +---- +-6 +21 query I rowsort SELECT + 78 + - 83 AS col0 @@ -29804,8 +30111,11 @@ SELECT ALL COALESCE ( - 79, + + 82, - CAST ( NULL AS INTEGER ) / 98 ) # 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 "Int64\(19\) / Int64\(\-26\) AS col2" at position 0 and "Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 19 / - 26 col2, - 81 AS col2 +---- +-81 +0 query I rowsort label-5659 SELECT - 31 + + + COUNT ( * ) * COUNT ( * ) @@ -30026,8 +30336,11 @@ SELECT + NULLIF ( + COUNT ( * ), 5 / + 76 + - - 81 * - MIN ( - 4 ) * - + 32 + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "Int64\(8\) \+ sum\(Int64\(17\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 57 col0, ( + 8 ) + + SUM ( ALL + 17 ) col0 +---- +25 +57 query I rowsort label-5702 SELECT ALL + 87 / + - CAST ( + 86 AS INTEGER ) + 30 AS col1 @@ -30088,8 +30401,11 @@ SELECT 26 * + 60 / 12 - - COUNT ( * ) + - 96 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 "Int64\(24\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 24 AS col0, + 93 col0 +---- +24 +93 query I rowsort SELECT 25 + - ( + + 86 ) @@ -30130,8 +30446,11 @@ SELECT ALL CAST ( - SUM ( - 88 ) AS INTEGER ) * NULLIF ( - - ( + + 8 ), - + 14 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 6650 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col2" at position 0 and "Int64\(95\) \* \(\- \(\- Int64\(70\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 AS col2, 95 * + - ( - + 70 ) AS col2 +---- +48 +6650 query I rowsort SELECT ALL + ( - 14 ) - 91 @@ -30193,8 +30512,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "max\(Int64\(\-52\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 col0, MAX ( + - 52 ) AS col0 +---- +-52 +46 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -30564,8 +30886,11 @@ SELECT DISTINCT - 2 * + - 32 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 30 col1, 80 AS col1 +---- +30 +80 query I rowsort SELECT ALL + NULLIF ( + - 56, + 70 ) AS col0 @@ -30738,8 +31063,11 @@ SELECT DISTINCT - 15 * + NULLIF ( - 28, - - ( + 64 ) * - 82 * CASE 58 WHEN - 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 135 # Datafusion - Expected - -2623 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \+ Int64\(39\) AS col2" at position 0 and "Int64\(61\) \* nullif\(Int64\(\-43\), Int64\(19\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 96 + 39 AS col2, ( + 61 ) * NULLIF ( + - 43, + + 19 ) AS col2 +---- +-2623 +135 query I rowsort label-5837 SELECT + 60 * + 85 + 94 + - 26 * 2 * + COUNT ( * ) * + 47 - 23 + COUNT ( * ) @@ -30922,8 +31250,11 @@ SELECT + ( + CAST ( + + COUNT ( * ) AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - -3552 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \- \(\- Int64\(\-86\)\) \+ Int64\(75\) AS col2" at position 0 and "Int64\(48\) \* Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 5 - - - 86 + 75 col2, 48 * - 74 AS col2 +---- +-16 +-3552 query II rowsort label-5873 SELECT - COUNT ( * ), 24 * COUNT ( * ) / + 39 col0 @@ -31037,8 +31368,11 @@ 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\(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\. +query II valuesort SELECT ALL NULLIF ( - 23, COUNT ( * ) / - 28 ) AS col0, ( 11 ) AS col0 +---- +-23 +11 query I rowsort label-5895 SELECT COALESCE ( 96, - 99 / + 66 + - 15 ) @@ -31249,8 +31583,11 @@ SELECT - + 49 + 7 AS col1 # 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 "\(\- \(\- Int64\(46\)\)\) AS col2" at position 0 and "Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - + ( + + 46 ) ) AS col2, + 17 AS col2 +---- +17 +46 query I rowsort SELECT - - 74 + - 65 @@ -31441,8 +31778,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \+ Int64\(\-56\) \+ Int64\(\-27\) \+ Int64\(60\) AS col2" at position 0 and "CASE Int64\(\-25\) WHEN Int64\(\-92\) THEN NULL WHEN Int64\(\-79\) \* Int64\(\-81\) THEN Int64\(47\) \* Int64\(87\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 49 + - 56 + - 27 + 60 AS col2, CASE - 25 WHEN - 92 THEN NULL WHEN - 79 * - 81 THEN + 47 * + 87 END AS col2 +---- +26 +NULL query I rowsort label-5971 SELECT DISTINCT + 93 - + + COALESCE ( + + 78, 84 + + CAST ( + 74 AS INTEGER ) ) AS col1 @@ -32068,8 +32408,11 @@ SELECT DISTINCT - NULLIF ( MIN ( + - ( - - 81 ) ), - 86 * NULLIF ( 90, + - 50 + # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(CAST\(NULL AS Int32\), Int64\(1\)\)\) AS col0" at position 0 and "\(\- Int64\(\-39\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COALESCE ( CAST ( NULL AS INTEGER ), + 1 ) AS col0, - ( + - 39 ) AS col0 +---- +-1 +39 query II rowsort SELECT ALL - 7 AS col1, 64 @@ -32230,8 +32573,11 @@ SELECT DISTINCT - 69 * - + 80 + + + 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 270 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* Int64\(18\) AS col0" at position 0 and "Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 15 * + 18 AS col0, 15 AS col0 +---- +15 +270 query I rowsort label-6120 SELECT - ( - 77 ) / - 89 @@ -32489,8 +32835,12 @@ SELECT 44 - 4 # Datafusion - Expected - 9 # Datafusion - Expected - 96 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "Int64\(\-54\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 9 AS col1, 96, - 54 AS col1 +---- +-54 +9 +96 query I rowsort SELECT 71 * + 63 @@ -32505,8 +32855,11 @@ SELECT 78 / 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \+ Int64\(16\) AS col0" at position 0 and "Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 + 16 AS col0, - 10 AS col0 +---- +-10 +29 query I rowsort label-6173 SELECT DISTINCT - 17 * 96 / + 9 AS col1 @@ -32516,8 +32869,11 @@ SELECT DISTINCT - 17 * 96 / + 9 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 AS col2, 61 AS col2 +---- +-70 +61 query II rowsort label-6175 SELECT ALL - COUNT ( DISTINCT + - 6 ) * - + 34 * - - 53, 26 AS col0 @@ -32569,8 +32925,11 @@ SELECT DISTINCT + COALESCE ( 96, - NULLIF ( - 34, - COUNT ( * ) ) ) * - 74 # 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 "Int64\(27\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 AS col0, 65 AS col0 +---- +27 +65 query II rowsort label-6185 SELECT COUNT ( * ) - - 18 AS col2, + 84 @@ -32694,8 +33053,12 @@ SELECT ALL SUM ( DISTINCT + 62 ) # Datafusion - Expected - -89 # 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 1 and "Int64\(44\) \+ \(\- max\(DISTINCT Int64\(43\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 3 - + 92, 29 AS col2, 44 + - MAX ( DISTINCT + 43 ) AS col2 +---- +-89 +1 +29 query I rowsort SELECT ALL 50 * 45 @@ -32909,8 +33272,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) / - 19 * - 22 + 50 AS col1, 81 AS col1 +---- +50 +81 query I rowsort label-6249 SELECT ALL 95 / - 29 + + 33 * - 13 / + COUNT ( * ) AS col0 @@ -32951,8 +33317,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ), - COUNT ( * ) +---- +-1 +-1 query II rowsort label-6257 SELECT ALL + - 97 * + MAX ( ALL 37 ), - 38 * + 20 * + COUNT ( * ) AS col0 @@ -33295,8 +33664,11 @@ SELECT + ( + - NULLIF ( + 88, - 43 - + NULLIF ( 47, - + COUNT ( * ) ) ) ) AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - 138 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(79\)\) AS col2" at position 0 and "Int64\(74\) \+ Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 79 AS col2, + 74 + + 64 AS col2 +---- +-79 +138 query I rowsort label-6323 SELECT COUNT ( * ) + 69 + + NULLIF ( - ( - + NULLIF ( + 45, - 91 ) ), + - ( 92 ) ) @@ -33526,8 +33898,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col0" at position 0 and "Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 57 AS col0, + 26 AS col0 +---- +-57 +26 query I rowsort SELECT + 5 * - 48 @@ -33547,14 +33922,20 @@ SELECT ALL - + 29 * 39 + - 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - -575 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \* \(\- sum\(Int64\(\-9\)\)\) \+ Int64\(\-17\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 62 * - SUM ( ALL + - 9 ) + - 17 AS col2, + 75 AS col2 +---- +-575 +75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - -57904 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col1" at position 0 and "Int64\(88\) \* \(\- Int64\(\-94\)\) \* Int64\(\-7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 84 AS col1, + 88 * - - 94 * - 7 AS col1 +---- +-57904 +-84 query I rowsort label-6372 SELECT 36 * + - COUNT ( * ) + 72 AS col0 @@ -33661,8 +34042,12 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - 19 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col2" at position 0 and "Int64\(\-60\) \+ Int64\(37\) \+ CAST\(NULL AS Int32\) \- Int64\(82\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- min\(Int64\(58\)\)\) \* \(\- Int64\(\-28\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) AS col2, 19 AS col0, - 60 + + + 37 + + CAST ( NULL AS INTEGER ) - + 82 / ( - COUNT ( * ) ) * - MIN ( 58 ) * - - 28 AS col2 +---- +1 +19 +NULL query I rowsort SELECT 73 * - 45 @@ -33713,8 +34098,11 @@ SELECT DISTINCT - ( + 45 ) col2 # 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 col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 AS col1, + 0 AS col1 +---- +0 +64 query I rowsort label-6402 SELECT DISTINCT + COUNT ( * ) / + - COUNT ( * ) @@ -33729,8 +34117,11 @@ SELECT ALL 66 * - 48 AS col2 # 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 "Int64\(83\) AS col1" at position 0 and "nullif\(Int64\(25\), Int64\(18\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 83 AS col1, NULLIF ( + + 25, 18 ) AS col1 +---- +25 +83 query I rowsort label-6405 SELECT 50 + + 94 + + 45 * + 34 + 15 / + 3 AS col1 @@ -33845,8 +34236,11 @@ SELECT + 31 * + + 1 + 25 + + + COUNT ( * ) / MIN ( 35 ) + - - 23 + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1232532 # Datafusion - Expected - 2196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* Int64\(\-4\) \* Int64\(\-73\) \* Int64\(63\) AS col1" at position 0 and "Int64\(61\) \* Int64\(36\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 * - 4 * - 73 * + 63 AS col1, 61 * + + 36 AS col1 +---- +1232532 +2196 query II rowsort SELECT ALL - 97 + + 52 + 75 * + - 28 * - 24 * 11, - 66 AS col1 @@ -35147,8 +35541,11 @@ SELECT 66 * + 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "Int64\(27\) \+ Int64\(\-21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 59 AS col0, ( 27 ) + - 21 AS col0 +---- +59 +6 query I rowsort SELECT ALL - COALESCE ( + 26, + NULLIF ( + 55, 96 ), + - 79, + ( - 28 ) ) AS col1 @@ -35346,8 +35743,11 @@ SELECT DISTINCT - 95 * - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 1836 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) \+ Int64\(59\) AS col2" at position 0 and "Int64\(4\) \+ \(\- Int64\(58\)\) \- Int64\(45\) \* Int64\(\-42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 71 + 59 AS col2, 4 + - + 58 - 45 * - 42 AS col2 +---- +-12 +1836 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -35641,8 +36041,11 @@ SELECT - MIN ( + 33 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1239 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(\-59\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 21 * - 59 AS col1, COUNT ( * ) + COUNT ( * ) AS col1 +---- +-1239 +2 query I rowsort SELECT 75 + - 79 AS col0 @@ -35872,8 +36275,11 @@ SELECT ALL 42 * 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 4290 -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\(65\) \* Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + CAST ( NULL AS FLOAT8 ) AS col0, + 65 * + 66 AS col0 +---- +4290 +NULL query I rowsort SELECT 80 + - 40 AS col1 @@ -36283,8 +36689,11 @@ SELECT ALL + 58 + COUNT ( * ) - - - COUNT ( * ) # 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 "Int64\(96\) \* CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL 55 AS col2, 96 * CAST ( NULL AS FLOAT8 ) AS col2 +---- +55 +NULL query I rowsort label-6896 SELECT ALL 96 + NULLIF ( - 41, - 72 * - CAST ( NULL AS INTEGER ) ) col0 @@ -36310,8 +36719,11 @@ SELECT 70, 39 + 59 + + 53 / 86 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3772 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* Int64\(\-41\) AS col2" at position 0 and "Int64\(\-97\) \* max\(CAST\(NULL AS Int32\)\) \+ CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 92 ) * + - 41 AS col2, - 97 * ( MAX ( ALL + CAST ( NULL AS INTEGER ) ) ) + CAST ( NULL AS INTEGER ) AS col2 +---- +-3772 +NULL query I rowsort label-6901 SELECT DISTINCT - MIN ( 6 ) @@ -36321,8 +36733,11 @@ SELECT DISTINCT - MIN ( 6 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 7824 # Datafusion - Expected - 2457 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \- \(\- Int64\(79\)\) \* Int64\(98\) AS col2" at position 0 and "Int64\(27\) \* Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 82 - - + 79 * 98 AS col2, 27 * + 91 AS col2 +---- +2457 +7824 query I rowsort label-6903 SELECT 34 + - COUNT ( * ) + + 48 AS col2 @@ -36628,8 +37043,12 @@ SELECT + 67 * + + 69 # Datafusion - Expected - 1 # Datafusion - Expected - -7462 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(91\) \* Int64\(\-82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT COUNT ( * ) col2, + 91 * - 82 AS col2, + COUNT ( * ) AS col0 +---- +-7462 +1 +1 query I rowsort SELECT + 43 + - + 57 * 57 AS col1 @@ -36954,8 +37373,11 @@ SELECT ALL - 89 AS col0, - 87 # 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 "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 73 AS col0, 1 AS col0 +---- +1 +73 query I rowsort label-7021 SELECT ALL - MAX ( DISTINCT + - 14 ) col1 @@ -37180,8 +37602,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 col1, - COUNT ( * ) AS col1 +---- +-1 +41 query I rowsort SELECT - 18 + - 23 @@ -37899,8 +38324,11 @@ SELECT - 94 + + 15 * ( + ( - + 90 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 42768 # Datafusion - Expected - -136 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* Int64\(66\) \* Int64\(54\) AS col2" at position 0 and "\(\- Int64\(25\)\) \+ Int64\(\-94\) \+ Int64\(\-17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 12 * + 66 * + 54 AS col2, - ( + 25 ) + - 94 + + - 17 AS col2 +---- +-136 +42768 query I rowsort label-7201 SELECT COALESCE ( - + 88, - 21, + - 78 * + COUNT ( * ) - + - COUNT ( * ) + + COUNT ( * ) * + 50 ) @@ -37936,8 +38364,11 @@ SELECT - + 13 * 95 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2822 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* Int64\(83\) AS col0" at position 0 and "Int64\(73\) / Int64\(\-51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 34 * + 83 AS col0, 73 / - 51 AS col0 +---- +-1 +2822 query II rowsort SELECT ( + + 65 ) AS col1, + 36 * + 77 AS col2 @@ -38241,8 +38672,11 @@ SELECT DISTINCT COUNT ( * ) * - 71 + + ( + 47 ) AS col0 # 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 "Int64\(5\) \- Int64\(\-27\) \+ \(\- sum\(DISTINCT Int64\(23\)\)\) AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 5 - - 27 + ( - SUM ( DISTINCT 23 ) ) AS col1, 47 AS col1 +---- +47 +9 query I rowsort label-7266 SELECT ALL 32 * COUNT ( * ) * 11 * - 20 * - - ( - + 19 ) @@ -38602,8 +39036,11 @@ SELECT ALL + + SUM ( + + 70 ) * 76 / 22 / 43 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 106 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(11\) \+ Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) col1, 11 + + 95 AS col1 +---- +1 +106 query II rowsort SELECT ALL + + 73 AS col1, 7 + 46 @@ -38808,8 +39245,11 @@ SELECT DISTINCT + 12 * + + 73 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2863 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \* Int64\(33\) \+ Int64\(41\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 88 * 33 + 41 AS col2, 33 AS col2 +---- +-2863 +33 query I rowsort label-7375 SELECT ALL CAST ( + AVG ( ALL + ( - 4 ) ) AS INTEGER ) + - 99 @@ -39227,8 +39667,11 @@ SELECT ALL COUNT ( CASE 90 WHEN + 7 THEN NULL WHEN - 47 THEN NULL ELSE + - 5 + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 28 -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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 AS col0, 28 AS col0 +---- +28 +46 query I rowsort SELECT ALL - + 93 + - 61 @@ -39837,8 +40280,11 @@ SELECT ALL 78 + 0 * + 57 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ \(\- Int64\(\-31\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CASE Int64\(\-84\) WHEN Int64\(69\) THEN count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(89\)\) \+ Int64\(83\) END\) \+ Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) + - - 31 AS col1, - COUNT ( * ) * - CASE - 84 WHEN + 69 THEN + COUNT ( * ) - + - ( + 89 ) + 83 END + 79 AS col1 +---- +NULL +NULL query I rowsort label-7572 SELECT + 54 - - COUNT ( * ) AS col2 @@ -39977,8 +40423,11 @@ SELECT DISTINCT - - 54 * 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 141 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(max\(Int64\(82\)\), Int64\(69\)\) AS col1" at position 0 and "Int64\(49\) \+ Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + NULLIF ( + MAX ( + 82 ), 69 ) AS col1, 49 + 92 AS col1 +---- +141 +82 query I rowsort label-7599 SELECT DISTINCT - 77 + SUM ( - 42 ) @@ -40300,8 +40749,11 @@ SELECT ALL - - 14 * - 8 + + - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col0" at position 0 and "nullif\(Int64\(11\), \(\- Int64\(0\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 AS col0, + NULLIF ( + + 11, - - 0 ) AS col0 +---- +11 +21 query I rowsort label-7661 SELECT + SUM ( + 99 ) AS col0 @@ -40405,8 +40857,11 @@ SELECT - NULLIF ( + COUNT ( * ), - 34 ) + - 12 / - + 71 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3102 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \* Int64\(\-47\) AS col1" at position 0 and "Int64\(\-19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 66 * + - 47 AS col1, + ( + - 19 ) AS col1 +---- +-19 +-3102 query I rowsort SELECT - 40 + + 1 col2 @@ -40426,8 +40881,11 @@ SELECT DISTINCT + 39 * 52 * - ( + 34 ) # 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 "\(\- Int64\(\-38\)\) \+ Int64\(75\) / Int64\(\-50\) 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 II valuesort SELECT - - 38 + 75 / - 50 AS col1, SUM ( 95 ) AS col1 +---- +37 +95 query I rowsort label-7685 SELECT ALL + + 87 / - 60 / COUNT ( * ) * - + NULLIF ( + - COUNT ( * ), - 79 - + 15 ) * + 44 / CAST ( NULL AS INTEGER ) * 26 * 4 + - 39 + - 4 AS col0 @@ -40762,8 +41220,11 @@ SELECT ALL + 81 - - - 0 AS col2, 66 * + 65 * 37 AS col1, - + MAX ( + 20 ) # 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 "Int64\(38\) / Int64\(74\) AS col2" at position 0 and "Int64\(\-58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 / 74 AS col2, - 58 AS col2 +---- +-58 +0 query I rowsort label-7747 SELECT - COUNT ( ALL - + ( + - 61 ) ) @@ -40850,8 +41311,11 @@ SELECT ALL - 24 col1, 63 * - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - -1782 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "Int64\(33\) \* \(\- Int64\(54\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 7 col0, + 33 * + - ( 54 ) AS col0 +---- +-1782 +7 query I rowsort SELECT 99 - + + 8 AS col1 @@ -40907,8 +41371,11 @@ SELECT DISTINCT + 81 + - 62 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col1" at position 0 and "avg\(Int64\(\-57\)\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(59\) THEN NULL WHEN Int64\(80\) THEN NULL WHEN Int64\(\-82\) \* Int64\(\-90\) \- \(\- Int64\(\-1\)\) THEN CAST\(NULL AS Int32\) END \- Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +43 +NULL query I rowsort label-7774 SELECT CAST ( - - 86 AS INTEGER ) col2 @@ -40975,8 +41442,11 @@ SELECT + 93 + + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 62 AS col1, + 2 AS col1 +---- +-62 +2 query I rowsort SELECT + 32 + - ( + ( 51 ) ) @@ -41456,8 +41926,11 @@ SELECT ALL - - 24 + - COUNT ( * ) AS col1 # 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 "sum\(Int64\(3\)\) AS col0" at position 0 and "Int64\(52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( ALL + 3 ) AS col0, 52 AS col0 +---- +3 +52 query I rowsort label-7878 SELECT ALL 30 - - 8 / + 84 - + - 81 * + + 75 + + 81 - - + 32 + - 84 * - ( + 18 ) @@ -41800,8 +42273,11 @@ SELECT COUNT ( * ) / + + COUNT ( * ) col0, 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 45 AS col1, COUNT ( * ) AS col1 +---- +1 +45 query I rowsort label-7944 SELECT ( - NULLIF ( COUNT ( * ), COUNT ( * ) ) ) * + 82 + - ( - + 63 ) @@ -41914,8 +42390,11 @@ SELECT + 37 AS col0, + 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-18\)\) AS col1" at position 0 and "Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 18 AS col1, - 27 AS col1 +---- +-27 +18 query I rowsort label-7966 SELECT DISTINCT + 82 - - MIN ( ALL 5 ) * - - COUNT ( * ) * + - 19 @@ -41937,8 +42416,11 @@ SELECT ALL - 72 AS col1, 69 * - 5 # 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 col0" at position 0 and "Int64\(\-3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 72 AS col0, - 3 AS col0 +---- +-3 +72 query I rowsort label-7970 SELECT CAST ( - + 87 AS INTEGER ) - + 21 + + 33 @@ -42044,8 +42526,11 @@ SELECT ALL + 75 * - 54 + 62 + 56 - - - 84 AS col0, 20 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-33\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - - 33 ) * + COUNT ( * ) AS col1, COUNT ( * ) + + COUNT ( * ) AS col1 +---- +2 +33 query I rowsort label-7990 SELECT COUNT ( * ) * - - 60 @@ -42076,8 +42561,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(DISTINCT Int64\(\-12\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - COUNT ( DISTINCT + - 12 ) AS col0, COUNT ( * ) AS col0 +---- +-1 +1 query I rowsort label-7996 SELECT - 26 / 34 @@ -42558,8 +43046,11 @@ SELECT ALL 57 * 19 AS col0 # 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 col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 AS col0, ( + 24 ) AS col0 +---- +24 +59 query I rowsort SELECT ( + 54 ) + + + 34 @@ -43668,8 +44159,12 @@ SELECT DISTINCT + - COUNT ( 8 ) * - NULLIF ( + + 36, - 55 ) + - 63 + 13 # Datafusion - Expected - 13 # Datafusion - Expected - 71 # Datafusion - Expected - 360 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col1" at position 0 and "Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 13 AS col1, 71 AS col1, + + CAST ( 72 AS INTEGER ) * MAX ( DISTINCT + 5 ) +---- +13 +360 +71 query II rowsort label-8303 SELECT + CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) * - 14 @@ -44360,8 +44855,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col2" at position 0 and "Int64\(\-29\) \+ Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 AS col2, - 29 + 17 AS col2 +---- +-12 +61 query I rowsort label-8436 SELECT ALL - 99 + - 91 * - - SUM ( + - 64 ) @@ -44403,8 +44901,11 @@ 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\(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\. +query II valuesort SELECT - + 18 AS col1, + COUNT ( * ) + + + 16 + + - 38 + - 7 * - 95 / - 95 + - 90 col1 +---- +-118 +-18 query II rowsort SELECT + 92 AS col0, 99 AS col1 @@ -44448,8 +44949,12 @@ SELECT ALL 69 - - + CASE + 58 WHEN + 32 THEN NULL ELSE - COUNT ( * ) END # Datafusion - Expected - -49 # Datafusion - Expected - 33725 # Datafusion - Expected - -172 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col0" at position 0 and "\(\- \(\- Int64\(5\)\)\) \* \(\- min\(DISTINCT \(\- Int64\(71\)\)\)\) \* Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 49 AS col0, ( - - ( 5 ) ) * - MIN ( DISTINCT + ( - ( + 71 ) ) ) * 95 AS col0, - 90 - 82 AS col0 +---- +-172 +-49 +33725 query I rowsort SELECT ( + 81 ) + 4 @@ -44645,8 +45150,12 @@ SELECT + CAST ( - - AVG ( DISTINCT 80 ) AS INTEGER ) / + + 56 # Datafusion - Expected - -4277 # Datafusion - Expected - -75 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col0" at position 1 and "\(\- Int64\(27\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - 91 * 47 col2, - 75 AS col0, - + 27 AS col0 +---- +-27 +-4277 +-75 query I rowsort SELECT + - 80 + - - 5 @@ -44780,8 +45289,11 @@ SELECT - - NULLIF ( 39, 52 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 89 AS col0, + COUNT ( * ) col0 +---- +1 +89 query II rowsort label-8515 SELECT - COUNT ( * ) AS col1, + 51 col2 @@ -44871,8 +45383,11 @@ SELECT ALL + ( + - 1 ) / - 1 + 78 + - - 48 / ( COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3112 # Datafusion - Expected - -204288 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(CAST\(count\(Int64\(0\)\) AS Int32\) AS Int32\)\) \- Int64\(37\) \* Int64\(84\) \- Int64\(3\) AS col2" at position 0 and "Int64\(64\) \* Int64\(76\) \* Int64\(\-42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( CAST ( COUNT ( ALL - 0 ) AS INTEGER ) AS INTEGER ) - 37 * + 84 - 3 AS col2, 64 * ( + 76 ) * - 42 AS col2 +---- +-204288 +-3112 query II rowsort label-8532 SELECT CAST ( 54 AS INTEGER ) AS col0, 85 @@ -45524,14 +46039,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(41\)\) \* count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 41 * COUNT ( * ) - + COUNT ( * ) AS col1, 29 AS col1 +---- +-42 +29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col2" at position 0 and "Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 5 ) col2, 57 AS col2 +---- +5 +57 query I rowsort label-8658 SELECT DISTINCT + COUNT ( * ) * - ( - + 17 ) + 74 @@ -45572,8 +46093,11 @@ SELECT ALL 25 AS col1, COALESCE ( + + ( + 44 ), - MAX ( ALL 80 ) - - 85 + - 76 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 76 AS col0, 21 AS col0 +---- +21 +76 query I rowsort label-8666 SELECT + MAX ( + - 33 ) - 76 + - 19 @@ -45671,8 +46195,11 @@ SELECT DISTINCT - 75 + COALESCE ( - 92, + ( + 57 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ \(\- 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 II valuesort SELECT ALL 75 + - ( + ( - 24 ) ) AS col0, - 8 AS col0 +---- +-8 +99 query I rowsort label-8685 SELECT ALL ( - 8 ) + - - MIN ( ALL - + 65 ) col0 @@ -45708,8 +46235,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 85 col2, 23 AS col2 +---- +-85 +23 query I rowsort SELECT ALL - - 20 - - - 3 AS col0 @@ -46218,14 +46748,21 @@ SELECT 95, + 74 + - 34 * + + NULLIF ( 82, - - 32 ) AS col1 # Datafusion - Expected - -14 # Datafusion - Expected - 338198 # Datafusion - Expected - 6365 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) / Int64\(88\) \- \(\- min\(DISTINCT Int64\(\-14\)\)\) AS col1" at position 0 and "Int64\(67\) \* Int64\(95\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 44 / 88 - + - MIN ( DISTINCT - 14 ) AS col1, + 17 * - - 94 + 68 * - 66 * - 75, + 67 * + 95 AS col1 +---- +-14 +338198 +6365 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col0" at position 0 and "CAST\(avg\(CAST\(NULL AS Int32\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 56 AS col0, CAST ( AVG ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 +---- +-56 +NULL query I rowsort SELECT ALL + + 1 * + ( - 19 ) * - 24 @@ -46241,8 +46778,11 @@ SELECT - 1 / - 40, 50 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - -1593 -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\(55\)\) / Int64\(21\) \+ Int64\(59\) \* Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 40 AS col0, + COUNT ( + + 55 ) / + 21 + 59 * - 27 AS col0 +---- +-1593 +40 query I rowsort label-8793 SELECT ALL + - ( - - CASE - 88 WHEN - - 90 + - 19 THEN COALESCE ( + + COUNT ( * ), - - MAX ( - 42 ) ) + - COUNT ( * ) ELSE NULL END ) * 84 @@ -46497,8 +47037,11 @@ SELECT 9 + + + 62 + - + 81 AS col2, + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) AS col0" at position 0 and "Int64\(\-17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 7 AS col0, - 17 AS col0 +---- +-17 +-7 query I rowsort label-8842 SELECT - 81 * + 22 * - + SUM ( ALL 0 ) + CAST ( NULL AS INTEGER ) col1 @@ -46884,8 +47427,11 @@ SELECT - 30 * - COUNT ( * ) + - 42 * - 75 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-79\) AS Int32\) / Int64\(\-95\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - 79 AS INTEGER ) / - 95 AS col0, + 38 AS col0 +---- +0 +38 query I rowsort label-8915 SELECT - 68 * - COALESCE ( 9, - - 34 + + 24, + - 43 / - - 12 * + 68 ) @@ -47389,8 +47935,11 @@ SELECT DISTINCT + + 26 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1132 # Datafusion - Expected - -2325 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- \(\- avg\(Int64\(\-13\)\)\)\) AS Int32\) \* Int64\(\-87\) \- \(\- count\(Int64\(3\)\)\) AS col1" at position 0 and "Int64\(93\) \* Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( - - AVG ( - 13 ) AS INTEGER ) * - 87 - - COUNT ( + 3 ) col1, 93 * - 25 AS col1 +---- +-2325 +1132 query I rowsort label-9011 SELECT - + 86 / - COUNT ( ALL - 39 ) - - MIN ( 42 ) + SUM ( ALL - ( - 74 ) ) AS col2 @@ -47462,8 +48011,11 @@ SELECT ALL + 35 * + - ( - 18 ) + 43 * COUNT ( ALL - 80 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5066880 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* Int64\(35\) \* Int64\(96\) \* Int64\(\-29\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 52 * 35 * + 96 * - 29 AS col0, + 13 AS col0 +---- +-5066880 +13 query I rowsort label-9025 SELECT MAX ( - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) @@ -47568,8 +48120,11 @@ SELECT DISTINCT + 52 * 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3485 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \* Int64\(85\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 41 * 85 AS col1, 12 AS col1 +---- +12 +3485 query I rowsort SELECT ( - 31 ) * - 75 @@ -47613,8 +48168,11 @@ 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\(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\. +query II valuesort SELECT - 73 * 53 * + ( + NULLIF ( 20, + - COUNT ( * ) ) ) + + 60 * COALESCE ( - 50, + COUNT ( * ) ) + - + CASE - + 26 WHEN 34 THEN + COUNT ( * ) * - COUNT ( * ) * + + 19 END AS col2, 75 AS col2 +---- +75 +NULL query I rowsort SELECT ALL + 79 + 93 @@ -47899,8 +48457,11 @@ SELECT ALL + 54 * - 90 + - 23 + 88 + 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8730 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* Int64\(\-90\) AS col1" at position 0 and "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 97 * - 90 AS col1, 41 AS col1 +---- +-8730 +41 query I rowsort label-9109 SELECT + NULLIF ( - 10, + COUNT ( * ) ) @@ -47920,8 +48481,11 @@ SELECT DISTINCT + 58 * + 93 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(51\) AS Int32\)\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( 51 AS INTEGER ) AS col1, + 64 AS col1 +---- +-51 +64 query I rowsort label-9113 SELECT - 22 / + COALESCE ( + 92, + - 88 * + + 85 + - COALESCE ( + 88, + - 21 ) + - - 1 * + 35 ) + - 77 - - SUM ( - 91 ) AS col1 @@ -48067,8 +48631,11 @@ SELECT - + ( 46 ) * - 34 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 153 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-62\)\) \+ Int64\(91\) AS col0" at position 0 and "Int64\(\-3\) \- Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 62 + 91 AS col0, - 3 - 64 AS col0 +---- +-67 +153 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -48521,8 +49088,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 2923 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ Int64\(1\) \+ Int64\(\-78\) AS col2" at position 0 and "Int64\(37\) \* Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 33 + + 1 + - 78 AS col2, ( + + 37 ) * + 79 AS col2 +---- +-44 +2923 query I rowsort label-9227 SELECT DISTINCT - - 38 * + CASE + - CAST ( NULL AS INTEGER ) WHEN + + 7 THEN 96 ELSE - ( - 90 ) END AS col0 @@ -48613,8 +49183,11 @@ SELECT CAST ( NULLIF ( + - 18, 24 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "Int64\(\-37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90 AS col1, - 37 AS col1 +---- +-37 +90 query I rowsort label-9245 SELECT ALL + NULLIF ( + 55, + 57 * + COUNT ( * ) * + 23 ) @@ -48678,8 +49251,11 @@ SELECT ALL + 35 AS col0, 61 * - CASE WHEN NOT NULL IS NULL THEN CASE - 11 WHEN + # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col0" at position 0 and "max\(Int64\(7\)\) / Int64\(73\) \+ Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 9 AS col0, MAX ( ALL 7 ) / 73 + 74 AS col0 +---- +-9 +74 query I rowsort label-9257 SELECT ALL NULLIF ( - - 29, + 62 - - CASE - + 52 WHEN - + NULLIF ( - 43, + + 41 ) THEN NULL WHEN 48 * - 96 THEN + + COUNT ( * ) * 53 - 12 + + 30 * COUNT ( * ) * + 17 END + 18 ) @@ -48899,8 +49475,11 @@ SELECT DISTINCT + 18 * - COALESCE ( + - 8, + - COUNT ( * ), - 51 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 86 AS col2, + 45 AS col2 +---- +-86 +45 query I rowsort SELECT ALL + 9 - 57 @@ -49022,8 +49601,11 @@ SELECT DISTINCT 25 AS col1, 73 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) / Int64\(\-35\) \* \(\- Int64\(\-95\)\) \+ CASE Int64\(85\) WHEN nullif\(Int64\(26\), Int64\(48\) / Int64\(45\) \- Int64\(\-4\) / Int64\(48\)\) \+ Int64\(47\) \* CASE Int64\(95\) WHEN Int64\(22\) \+ Int64\(\-21\) THEN \(\- Int64\(29\)\) END THEN Int64\(99\) \+ CAST\(NULL AS Int32\) \* Int64\(\-20\) \+ count\(Int64\(1\)\) AS count\(\*\) END \+ Int64\(57\) \* \(\- Int64\(16\)\) \* Int64\(27\) AS col0" at position 0 and "nullif\(min\(\(\- Int64\(60\)\)\), Int64\(25\) / \(\- Int64\(88\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-60 +NULL query I rowsort SELECT ALL ( 37 ) + - 1 @@ -49057,8 +49639,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * + MAX ( - - ( 41 ) ) col0, 98 * 13 * + 79 AS col0 +---- +100646 +41 query II rowsort label-9327 SELECT + 98 - + 54 AS col0, - COUNT ( * ) AS col2 @@ -49090,8 +49675,11 @@ SELECT ALL MAX ( ALL - 62 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \+ Int64\(19\) AS col2" at position 0 and "Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 15 + 19 col2, 44 AS col2 +---- +34 +44 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -49400,8 +49988,11 @@ SELECT 37 AS col0, + 59 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6940080 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* Int64\(68\) \* Int64\(18\) \* Int64\(\-90\) AS col0" at position 0 and "Int64\(56\) \+ Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 63 * + + 68 * + + 18 * - 90 AS col0, + 56 + + 38 AS col0 +---- +-6940080 +94 query I rowsort SELECT 62 * - 83 @@ -49982,8 +50573,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + - 18 AS col0, SUM ( DISTINCT 47 ) * COALESCE ( - ( - 40 ), - + 95 + 50 * 89 ) * + + 9 AS col0 +---- +-17 +16920 query I rowsort label-9503 SELECT CAST ( NULL AS INTEGER ) * 2 / NULLIF ( + - 49, - - 57 ) @@ -50025,8 +50619,11 @@ SELECT + 39 + + 51 * ( - + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(41\) AS Int32\)\) AS col0" at position 0 and "Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( + 41 AS INTEGER ) AS col0, 9 AS col0 +---- +-41 +9 query I rowsort label-9511 SELECT ALL 18 * + 84 * - 57 + COUNT ( * ) AS col1 @@ -50462,8 +51059,11 @@ SELECT ALL COUNT ( * ) * + 62 AS col0 # 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\(6\) AS col1" at position 0 and "Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 6 ) AS col1, + 71 AS col1 +---- +6 +71 query I rowsort label-9595 SELECT - 9 + - 40 * + COUNT ( * ) * + - 96 + + - 85 * + 91 AS col2 @@ -52102,8 +52702,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 11608380 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "Int64\(90\) \* Int64\(\-37\) \* Int64\(\-42\) \* Int64\(83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 col0, ( + 90 ) * - 37 * - 42 * 83 AS col0 +---- +11608380 +77 query I rowsort label-9910 SELECT ALL COUNT ( * ) + + CAST ( + 6 AS INTEGER ) @@ -52552,8 +53155,11 @@ SELECT DISTINCT - 37 * + + 7 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col1" at position 0 and "Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 95 AS col1, - 35 AS col1 +---- +-35 +-95 query I rowsort label-9997 SELECT - COUNT ( * ) + ( - 72 ) diff --git a/data/sqlite/random/expr/slt_good_85.slt b/data/sqlite/random/expr/slt_good_85.slt index b2a0708..b6be782 100644 --- a/data/sqlite/random/expr/slt_good_85.slt +++ b/data/sqlite/random/expr/slt_good_85.slt @@ -891,8 +891,11 @@ 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\(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\. +query II valuesort SELECT ALL - - 89 / - + COUNT ( * ) * + - COUNT ( * ) col2, 64 + - - 46 * ( 41 ) AS col2 +---- +1950 +89 query II rowsort label-165 SELECT ALL - - 95, 93 - + MAX ( ALL - 54 ) AS col1 @@ -933,8 +936,11 @@ SELECT ( + - 13 ) * - 31 + + 9 + + 24 * - - COUNT ( * ) * - 20 + + + 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5153 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) \* Int64\(76\) \+ \(\- Int64\(\-91\)\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 69 * 76 + - ( - 91 ) AS col0, 8 col0 +---- +-5153 +8 query I rowsort label-173 SELECT DISTINCT - 60 * - CAST ( NULL AS INTEGER ) @@ -944,8 +950,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 8245 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* Int64\(85\) AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 97 * 85 AS col1, 52 AS col1 +---- +52 +8245 query I rowsort label-175 SELECT ALL - 51 * + + CAST ( + + COUNT ( * ) AS INTEGER ) @@ -1202,8 +1211,12 @@ SELECT - + 47, + 62 * 70 AS col1 # Datafusion - Expected - NULL # Datafusion - Expected - 160 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(96\) WHEN Int64\(\-76\) \* Int64\(95\) \+ \(\- \(\- Int64\(99\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-35\) THEN \(\- Int64\(97\)\) ELSE NULL END\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - CASE + 96 WHEN - 76 * + 95 + - ( - + 99 ) + + COUNT ( * ) + - 35 THEN - + 97 ELSE NULL END + + COUNT ( * ) AS col0, - 2 * + - 80 * COUNT ( * ), 46 AS col0 +---- +160 +46 +NULL query I rowsort label-223 SELECT ALL 11 * + - 17 * - 17 + - COUNT ( * ) + + MAX ( - + 83 ) AS col1 @@ -1388,8 +1401,11 @@ SELECT + CASE - 73 WHEN - - 0 + - + 79 THEN NULL ELSE + 10 / + - 42 END AS col0, # 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 "CASE Int64\(\-33\) WHEN Int64\(31\) THEN \(\- CAST\(Int64\(9\) AS Float64\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL - 84 AS col0, CASE - 33 WHEN + + 31 THEN - CAST ( 9 AS FLOAT8 ) END AS col0 +---- +-84 +NULL query I rowsort SELECT ALL + 92 * - 1 + - 20 + - - 84 AS col1 @@ -1515,8 +1531,11 @@ SELECT ALL ( - + ( + - 29 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5394 # Datafusion - Expected - -100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) \* \(\- Int64\(\-62\)\) AS col2" at position 0 and "Int64\(2\) \* Int64\(\-50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 87 * - - 62 col2, 2 * - 50 col2 +---- +-100 +-5394 query I rowsort label-282 SELECT + 53 / - CASE - 51 WHEN 3 THEN NULL WHEN - ( 32 ) THEN NULL ELSE + + 74 * 79 / 98 END AS col2 @@ -1817,8 +1836,11 @@ SELECT DISTINCT + + ( 56 ) AS col2, 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(29\) \* \(\- Int64\(5\)\) AS col1" at position 0 and "\(\- Int64\(\-25\)\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 48 * + - COUNT ( * ) + 29 * - + 5 AS col1, - ( - 25 ) + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 +---- +-97 +24 query I rowsort label-340 SELECT DISTINCT - 46 * 25 + COUNT ( * ) * - - 13 + - 37 - - - 42 @@ -2067,8 +2089,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 88 AS col1, 57 AS col1 +---- +57 +88 query I rowsort label-388 SELECT 22 * COUNT ( ALL 98 ) AS col1 @@ -2083,14 +2108,20 @@ SELECT DISTINCT - NULLIF ( - - 95, + + 66 ) * + 35 + + NULLIF ( 10, + COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - -201960 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col2" at position 0 and "Int64\(51\) \* Int64\(88\) \* coalesce\(Int64\(\-45\), Int64\(\-70\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 AS col2, 51 * 88 * COALESCE ( + - 45, - 70 ) AS col2 +---- +-201960 +36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 99 AS col2, 25 AS col2 +---- +25 +99 query II rowsort SELECT DISTINCT 50 AS col1, 12 col0 @@ -2343,8 +2374,11 @@ SELECT ALL - + 60 * - 92 * + 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - -5291 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "Int64\(\-98\) \* Int64\(54\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + 47 ) AS col0, - 98 * + + 54 + + COUNT ( * ) AS col0 +---- +-5291 +47 query I rowsort label-440 SELECT ALL - + ( + COUNT ( * ) ) * + 78 + + - NULLIF ( - + CASE + - 37 WHEN - 90 THEN NULL WHEN - 22 THEN + 35 / - - 24 + + 77 ELSE NULL END, - - 8 * + - ( 38 ) - - ( 81 ) ) * - 61 @@ -2486,8 +2520,11 @@ SELECT - 22 * - 56 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 65 AS col0, COUNT ( * ) AS col0 +---- +1 +65 query I rowsort SELECT ALL - - 37 - - 50 + - ( + - 83 ) @@ -2839,8 +2876,11 @@ SELECT DISTINCT + 92 + 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \- \(\- \(\- coalesce\(Int64\(75\), Int64\(26\)\)\)\) AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 - - ( - COALESCE ( 75, 26 ) ) AS col2, 58 AS col2 +---- +-75 +58 query I rowsort label-535 SELECT + COUNT ( NULLIF ( - 11, + CAST ( NULL AS INTEGER ) * + ( + 94 ) ) ) @@ -2897,8 +2937,12 @@ 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\(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\. +query III valuesort 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 +---- +-16 +NULL +NULL query I rowsort label-546 SELECT + COUNT ( * ) * - 54 AS col1 @@ -2967,8 +3011,11 @@ SELECT - + 26 + - COALESCE ( + MAX ( DISTINCT - 94 ), - + CAST ( - 91 AS INTEGER # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 1911 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(29\)\) AS col1" at position 0 and "Int64\(49\) \* Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 29 AS col1, 49 * + 39 AS col1 +---- +-29 +1911 query I rowsort label-559 SELECT - - 51 + - - COUNT ( * ) + - NULLIF ( + 54, + - 72 ) @@ -3010,8 +3057,12 @@ SELECT - + 99 * - + 43 # Datafusion - Expected - 141 # Datafusion - Expected - NULL # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-19\) WHEN Int64\(\-67\) \* \(\- Int64\(29\)\) \- Int64\(49\) THEN Int64\(28\) \* \(\- Int64\(57\)\) \+ CAST\(Int64\(\-88\) AS Float64\) WHEN Int64\(79\) \+ count\(Int64\(24\)\) / \(\- CAST\(Int64\(54\) AS Int32\)\) \- Int64\(52\) THEN Int64\(\-82\) ELSE NULL END AS col2" at position 1 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-7\) \- Int64\(59\) / \(\- Int64\(52\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IRI valuesort 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 +---- +141 +8 +NULL query II rowsort label-567 SELECT - COUNT ( * ) AS col1, COUNT ( * ) + + 35 @@ -3164,8 +3215,11 @@ SELECT COUNT ( * ) + - 5 * 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1127 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE avg\(\(\- Int64\(\-28\)\)\) WHEN Int64\(68\) THEN Int64\(\-43\) WHEN nullif\(Int64\(72\), Int64\(77\) \+ Int64\(\-47\)\) \* Int64\(66\) \+ CAST\(NULL AS Float64\) / \(\- count\(\(\- Int64\(30\)\)\)\) THEN NULL WHEN count\(Int64\(71\)\) / Int64\(77\) \+ count\(Int64\(\-43\)\) \+ Int64\(40\) THEN \(\- Int64\(95\)\) ELSE NULL END\) AS col1" at position 0 and "Int64\(23\) \* Int64\(\-49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + CASE AVG ( ALL - - 28 ) WHEN + 68 THEN - 43 WHEN + NULLIF ( + + 72, + 77 + + - 47 ) * 66 + + CAST ( NULL AS FLOAT8 ) / ( - COUNT ( ALL - + 30 ) ) THEN NULL WHEN COUNT ( + + 71 ) / + 77 + + COUNT ( - 43 ) + + + 40 THEN ( - ( + 95 ) ) ELSE NULL END AS col1, + 23 * - 49 AS col1 +---- +-1127 +NULL query I rowsort label-595 SELECT ( + 39 ) * - CAST ( COUNT ( * ) AS INTEGER ) col0 @@ -3768,8 +3822,11 @@ SELECT DISTINCT 14 * + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "Int64\(\-43\) \+ Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 AS col2, - 43 + + 37 AS col2 +---- +-6 +55 query I rowsort label-712 SELECT ALL 8 + + 94 - - - 99 * 34 - + CAST ( NULL AS INTEGER ) col0 @@ -3828,8 +3885,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) col2, + 37 AS col2 +---- +-1 +37 query I rowsort label-723 SELECT 56 * + ( - - CAST ( NULL AS INTEGER ) ) + - 71 + MIN ( 58 ) / + 6 @@ -3849,8 +3909,11 @@ SELECT + COALESCE ( - COUNT ( * ), 70 * + - 6 ) * - + COUNT ( * ) * 61 - 0 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 AS col2, + 61 AS col2 +---- +61 +96 query II rowsort label-727 SELECT + CASE - 57 WHEN ( 48 ) THEN + - COALESCE ( + 97, - + 90 * 66 * + + COUNT ( 10 ) ) * - 5 ELSE NULL END, + 41 AS col2 @@ -3893,8 +3956,11 @@ SELECT ALL - COUNT ( ALL 82 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-96\)\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 96 AS col0, 39 AS col0 +---- +39 +96 query I rowsort label-735 SELECT DISTINCT - + 55 + + - MIN ( DISTINCT - 65 ) AS col0 @@ -4473,8 +4539,11 @@ SELECT - 39 + + + 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) / Int64\(12\) \- Int64\(50\) AS col1" at position 0 and "Int64\(\-23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 / 12 - 50 AS col1, - 23 AS col1 +---- +-23 +-43 query I rowsort label-848 SELECT ALL - 72 - - + 37 - - 36 + ( 3 ) + + - COUNT ( * ) / + - 48 AS col0 @@ -5638,8 +5707,11 @@ SELECT ALL - 91 col0, - 47 + - MIN ( - 50 ) * + CAST ( + 54 AS INTEGER ) AS col1 # 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 "max\(Int64\(3\)\) AS col0" at position 0 and "Int64\(\-31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( 3 ) AS col0, - 31 AS col0 +---- +-31 +3 query I rowsort SELECT + 55 * + + 96 AS col0 @@ -6064,8 +6136,11 @@ SELECT + + ( 14 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(81\) / Int64\(26\) \+ CASE Int64\(\-1\) WHEN coalesce\(count\(\(\- Int64\(7\)\)\), Int64\(78\)\) / Int64\(77\) \- Int64\(\-16\) \- \(\- Int64\(\-42\)\) \+ Int64\(\-85\) \+ count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-67\) THEN coalesce\(Int64\(36\), Int64\(\-54\), Int64\(80\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +17 +NULL query I rowsort label-1153 SELECT ALL - COUNT ( * ) * + - 60 * - 2 col1 @@ -6211,8 +6286,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1105 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \* CASE Int64\(\-4\) WHEN Int64\(72\) THEN \(\- \(\- count\(Int64\(6\)\)\)\) WHEN Int64\(27\) \- Int64\(6\) THEN \(\- Int64\(19\)\) ELSE count\(Int64\(1\)\) AS count\(\*\) \* CAST\(Int64\(\-2\) AS Int32\) END \+ Int64\(\-7\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-21\) \* Int64\(56\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-1105 +99 query I rowsort label-1181 SELECT - + NULLIF ( + - 22, + 36 * - + COUNT ( * ) * + 85 / - 24 + - - ( + 87 ) * 46 + + 27 * - 25 * - 93 ) + - 18 @@ -6319,8 +6397,11 @@ SELECT 59 col2, - COALESCE ( + COUNT ( * ), + COUNT ( * ) * 88, - 29 ) + - 30 / # 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\) AS col1" at position 0 and "Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 AS col1, 85 AS col1 +---- +32 +85 query I rowsort SELECT ALL 37 + + - 31 @@ -6400,8 +6481,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 2639 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "Int64\(38\) \* Int64\(67\) \+ Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 16 AS col1, 38 * + 67 + 93 AS col1 +---- +16 +2639 query I rowsort SELECT DISTINCT + - ( 82 ) * COALESCE ( + 11, 74 ) @@ -7982,8 +8066,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col0" at position 0 and "Int64\(21\) \- Int64\(22\) \- \(\- nullif\(Int64\(\-7\), Int64\(\-94\) \* Int64\(28\) \+ \(\- Int64\(19\)\) \+ Int64\(76\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 63 AS col0, 21 - + + 22 - - NULLIF ( - 7, - 94 * 28 + ( - ( 19 ) + 76 ) ) AS col0 +---- +-63 +-8 query I rowsort SELECT + 45 + + 12 - - 98 * - - 24 + - 86 @@ -8112,8 +8199,11 @@ 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\(1\)\) AS count\(\*\)\), Int64\(72\), Int64\(\-69\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 81 AS col0, + 11 + + COALESCE ( + ( - COUNT ( * ) ), ( 72 ), - 69 ) AS col0 +---- +10 +81 query I rowsort label-1547 SELECT + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) @@ -8354,8 +8444,11 @@ SELECT DISTINCT 95 * COALESCE ( 1, + NULLIF ( + + 96, - - 71 ) ) * - - COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - 216 # Datafusion - Expected - 711 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ Int64\(83\) \+ Int64\(72\) AS col0" at position 0 and "Int64\(\-48\) \+ \(\- Int64\(33\)\) \+ Int64\(\-33\) \* \(\- Int64\(24\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 + 83 + + 72 AS col0, - 48 + - + 33 + - 33 * - + 24 AS col0 +---- +216 +711 query II rowsort label-1594 SELECT ALL 30 * COALESCE ( 82, 38, SUM ( 70 ) ), + 81 / + COALESCE ( COUNT ( * ), - 33 ) - 3 * 97 AS col0 @@ -8611,8 +8704,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 99 * - 85 AS col2, - COUNT ( * ) col2 +---- +-1 +-8415 query I rowsort SELECT ALL ( - 56 ) - 26 @@ -8749,8 +8845,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + 70 AS col2, COUNT ( * ) * - NULLIF ( + 6, + 71 ) + + + NULLIF ( - + 73, - - COUNT ( * ) + 58 ) col2 +---- +-79 +70 query I rowsort SELECT - 75 * 31 * NULLIF ( 21, - 89 ) * + 92 + + - 87 @@ -8792,8 +8891,11 @@ SELECT DISTINCT + - 68 * 36 - + 12, 58 / - 94 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5016 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-56\)\) \+ Int64\(9\) \+ Int64\(67\) \+ Int64\(99\) \* \(\- Int64\(52\)\) AS col1" at position 0 and "Int64\(87\) / CASE \(\- \(\- max\(Int64\(12\)\)\)\) WHEN \(\- \(\- max\(Int64\(33\)\)\)\) \+ Int64\(0\) THEN Int64\(82\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 56 + + 9 + + 67 + 99 * - + 52 AS col1, 87 / + CASE - - MAX ( 12 ) WHEN - - MAX ( + 33 ) + + 0 THEN ( ( 82 ) ) END AS col1 +---- +-5016 +NULL query I rowsort label-1679 SELECT SUM ( DISTINCT - NULLIF ( + 88, + 32 / + ( + - 53 ) ) ) @@ -9088,8 +9190,11 @@ SELECT ALL - 17 + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4800 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* Int64\(\-60\) AS col1" at position 0 and "\(\- CAST\(NULL AS Float64\)\) \+ Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL - 80 * - 60 AS col1, - CAST ( NULL AS FLOAT8 ) + 90 AS col1 +---- +4800 +NULL query II rowsort label-1734 SELECT ALL 66 * - + COUNT ( * ) AS col1, 30 @@ -9337,14 +9442,20 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 36 AS col2, - COUNT ( * ) AS col2 +---- +-1 +-36 # 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 "Int64\(77\) AS col2" at position 0 and "Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 77 AS col2, - 96 AS col2 +---- +-96 +77 query I rowsort label-1782 SELECT DISTINCT SUM ( - - 52 ) / + + 49 AS col1 @@ -9571,8 +9682,11 @@ SELECT + 64 AS col1, - 71 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col2" at position 0 and "Int64\(90\) / Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 AS col2, 90 / + 39 AS col2 +---- +2 +67 query I rowsort SELECT ALL 49 * + 55 @@ -9597,8 +9711,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( - 36 ) * - + ( + COUNT ( * ) ) + + + 90 AS col2, ( + + 66 ) AS col2 +---- +66 +89 query I rowsort SELECT DISTINCT - 13 * - 68 AS col2 @@ -9857,8 +9974,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) * + 10 AS col1, - 0 AS col1 +---- +-10 +0 query II rowsort label-1879 SELECT ALL + COUNT ( * ) AS col1, + NULLIF ( + COALESCE ( + 78, - - 19 ), - + 18 ) @@ -9884,8 +10004,11 @@ SELECT - - 71 + + MIN ( DISTINCT 35 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 31 col1, 69 AS col1 +---- +31 +69 query I rowsort label-1884 SELECT + COUNT ( - 59 ) @@ -10428,8 +10551,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 153 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "Int64\(79\) \+ Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 AS col2, + 79 + + 74 AS col2 +---- +153 +94 query I rowsort SELECT 34 * 62 AS col1 @@ -10480,8 +10606,11 @@ SELECT DISTINCT + MAX ( + COALESCE ( - 6, + ( - + 43 ) + + 48 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 11 AS col2, + 29 col2 +---- +11 +29 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -10593,8 +10722,11 @@ SELECT DISTINCT 7, - 0 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \- CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 96 - CAST ( NULL AS INTEGER ) AS col0, 73 AS col0 +---- +73 +NULL query I rowsort label-2019 SELECT + 1 * + COUNT ( * ) * - + 57 AS col1 @@ -10629,8 +10761,11 @@ SELECT + 83 + + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 82 AS col0, 18 AS col0 +---- +18 +82 query I rowsort SELECT + 59 + - 63 @@ -10713,8 +10848,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 79 AS col2, 73 AS col2 +---- +73 +79 query I rowsort label-2042 SELECT DISTINCT 65 * COUNT ( * ) + - + 53 * - COALESCE ( - COUNT ( * ), - CASE - 91 WHEN 67 THEN ( - 84 ) WHEN + NULLIF ( 61, - 23 ) THEN 14 WHEN - + ( + 83 ) THEN NULL END ) * - - CAST ( NULL AS INTEGER ) * - 46 / + 28 AS col1 @@ -11390,8 +11528,11 @@ SELECT DISTINCT 97, 58 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4831 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(95\), Int64\(\-76\) \* Int64\(95\) \* Int64\(\-87\)\) \* Int64\(51\) \+ Int64\(\-14\) AS col0" at position 0 and "CASE Int64\(17\) WHEN Int64\(\-11\) \+ Int64\(\-24\) THEN Int64\(80\) ELSE NULL END \* Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( 95, - 76 * 95 * - 87 ) * 51 + - 14 AS col0, CASE + 17 WHEN - 11 + + - 24 THEN + 80 ELSE NULL END * + 91 AS col0 +---- +4831 +NULL query I rowsort SELECT ALL 75 * 52 @@ -11551,8 +11692,11 @@ SELECT ALL + 99 - 9 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5402 # Datafusion - Expected - -4896 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \* Int64\(73\) AS col1" at position 0 and "Int64\(68\) \* Int64\(\-72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 74 * 73 col1, 68 * - 72 AS col1 +---- +-4896 +5402 query I rowsort label-2202 SELECT COUNT ( * ) * + 86 col2 @@ -12075,8 +12219,11 @@ 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\(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\. +query II valuesort SELECT 32 + COALESCE ( COUNT ( * ), 6 + + 8 ) AS col1, 52 AS col1 +---- +33 +52 query I rowsort label-2300 SELECT DISTINCT COALESCE ( - - 32, + SUM ( ALL - 90 ) + - + 37 ) - + 50 AS col0 @@ -12112,8 +12259,11 @@ SELECT 73 + - 83 + 15 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 1 AS col2, + COUNT ( * ) AS col2 +---- +1 +1 query I rowsort label-2307 SELECT ALL + 80 / + 96 * + + 95 @@ -12258,8 +12408,11 @@ SELECT + - 77 * - 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1980 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-33\) \* Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, - 33 * 60 AS col0 +---- +-1980 +1 query I rowsort SELECT ALL 66 * 52 @@ -13115,8 +13268,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * 86 AS col2, + 72 AS col2 +---- +72 +86 query I rowsort label-2499 SELECT ( - MIN ( + 20 ) ) * - + CAST ( NULL AS INTEGER ) @@ -13695,8 +13851,11 @@ SELECT COUNT ( * ) / + 43 * - 6 * - 59 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 28 AS col2, COUNT ( * ) AS col2 +---- +1 +28 query I rowsort SELECT ALL 63 * NULLIF ( + 79, + - 51 / + ( - 29 ) * + 37 + + COALESCE ( 97, + 76 + + - ( 21 ), + + 72 + 38 ) - 79 ) @@ -13889,8 +14048,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -915 # Datafusion - Expected - -28276 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(\-61\), Int64\(17\) \* Int64\(21\), \(\- count\(Int64\(21\)\)\) \* Int64\(31\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(72\) \+ Int64\(\-82\) \* Int64\(33\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE Int64\(\-68\) WHEN Int64\(\-94\) \* \(\- CAST\(Int64\(\-22\) AS Int32\)\) THEN NULL ELSE Int64\(32\) END\)\)\) \* CAST\(Int64\(\-15\) AS Int32\) AS col0" at position 0 and "Int64\(74\) \+ Int64\(70\) \* Int64\(\-5\) \* \(\- Int64\(\-81\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-28276 +-915 query II rowsort label-2646 SELECT + CAST ( NULL AS INTEGER ) * + 52 AS col2, 54 @@ -13961,8 +14123,11 @@ SELECT + MAX ( + ( + 70 ) ) + - 61 * + - 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(67\)\) \- Int64\(\-41\) AS col1" at position 0 and "\(\- CAST\(\(\- CASE Int64\(19\) WHEN \(\- nullif\(\(\- Int64\(50\)\), CAST\(Int64\(\-13\) AS Int32\) / Int64\(56\) \* Int64\(\-90\) \* Int64\(1\) \+ \(\- Int64\(\-81\)\) \* Int64\(29\) \* count\(Int64\(1\)\) AS count\(\*\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(31\) \+ Int64\(\-82\) \* Int64\(37\) \+ Int64\(83\) THEN Int64\(6\) END\) AS Float64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +-26 +NULL query I rowsort SELECT DISTINCT + 25 + 83 @@ -13993,8 +14158,11 @@ SELECT ALL + 10 * - 77 # 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 "\(\- nullif\(\(\- Int64\(58\)\), \(\- max\(Int64\(\-26\)\)\)\)\) AS col0" at position 0 and "Int64\(\-52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( - + 58, - MAX ( - 26 ) ) AS col0, - 52 col0 +---- +-52 +58 query I rowsort label-2666 SELECT - CASE + COUNT ( * ) WHEN + ( - - COUNT ( * ) ) * - 26 THEN + 5 + ( + 48 ) WHEN 75 + + 59 THEN + COUNT ( * ) END @@ -14555,8 +14723,12 @@ NULL # Datafusion - Expected - -67 # Datafusion - Expected - NULL # Datafusion - Expected - 2706 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-67\)\) AS col1" at position 0 and "Int64\(53\) \* CAST\(Int64\(87\) AS Int32\) \* Int64\(0\) \+ CAST\(NULL AS Int32\) \- \(\- Int64\(\-92\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT MIN ( ALL - 67 ) AS col1, 53 * + + CAST ( 87 AS INTEGER ) * + 0 + + CAST ( NULL AS INTEGER ) - - - 92 AS col1, 82 * + 33 +---- +-67 +2706 +NULL query I rowsort label-2773 SELECT + 18 / 71 @@ -14677,8 +14849,11 @@ SELECT ALL - + 31 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "Int64\(\-13\) \+ Int64\(\-12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 45 AS col0, - 13 + - 12 col0 +---- +-25 +45 query I rowsort SELECT ALL 88 * - 41 @@ -14744,8 +14919,11 @@ SELECT DISTINCT 10 / + + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 87 AS col1, + 4 AS col1 +---- +4 +87 query I rowsort SELECT 42 * + 5 @@ -14787,8 +14965,11 @@ SELECT DISTINCT + 39 * + - 30 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 897390 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col0" at position 0 and "Int64\(13\) \* Int64\(59\) \* Int64\(39\) \* Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 col0, + ( + 13 ) * 59 * + 39 * 30 AS col0 +---- +-82 +897390 query I rowsort label-2816 SELECT 36 + + 67 - + COUNT ( * ) + + COUNT ( * ) + + - 92 + + + 98 + 43 * 1 @@ -15514,8 +15695,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, 89 AS col1 +---- +-1 +89 query I rowsort SELECT 81 * - 60 AS col2 @@ -15947,8 +16131,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 9 AS col2, + 88 * + - 59 - - + 14 * - ( NULLIF ( - 35, 73 - - COUNT ( * ) ) ) AS col2 +---- +-4702 +-9 query II rowsort SELECT DISTINCT - + 28 AS col1, - 47 @@ -16025,8 +16212,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * 4 * ( - 18 ) AS col2, 47 * 18 * - 0 + - 68 * ( + 54 / + 92 ) AS col2 +---- +-72 +0 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -17161,8 +17351,11 @@ SELECT + 41 AS col0, 23 + - - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(66\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) AS col0, + 66 * COUNT ( * ) AS col0 +---- +-1 +66 query I rowsort SELECT - + 68 + + 9 col2 @@ -17456,8 +17649,11 @@ NULL # 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\(\-34\) AS col1" at position 0 and "Int64\(\-64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 34 col1, - 64 AS col1 +---- +-34 +-64 query I rowsort label-3328 SELECT 34 / + - 56 AS col1 @@ -17624,8 +17820,11 @@ SELECT 51 + - - 88 - + COALESCE ( - - MAX ( - + 4 ), - 31 + COUNT ( * ) ) * - NU # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 72 AS col2, 96 AS col2 +---- +72 +96 query I rowsort label-3358 SELECT DISTINCT 14 / - 55 * + ( + 69 ) AS col2 @@ -17686,8 +17885,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 29 + ( - COALESCE ( - + 27, 54 * 75 - + 77 ) ) AS col0, + COALESCE ( + - 20, + COUNT ( * ) ) + - COUNT ( * ) AS col0 +---- +-2 +-21 query I rowsort SELECT 63 * + 49 @@ -17836,8 +18038,11 @@ SELECT + NULLIF ( + 33, - - 25 + - 85 ) - - + ( - 11 ), + 85 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -2233 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* Int64\(0\) \* Int64\(\-14\) / Int64\(63\) \* \(\- Int64\(\-42\)\) AS col0" at position 0 and "Int64\(77\) \* Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 70 * + + 0 * - 14 / 63 * - - 42 AS col0, 77 * - 29 col0 +---- +-2233 +0 query I rowsort SELECT DISTINCT 40 - 14 AS col2 @@ -17867,8 +18072,11 @@ SELECT + COUNT ( ALL + - 54 ) + + ( - 41 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -561792 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* Int64\(33\) \* \(\- \(\- CASE CAST\(NULL AS Int32\) WHEN Int64\(\-43\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL ELSE Int64\(76\) \* Int64\(\-28\) END\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-561792 +NULL query I rowsort SELECT - 39 - - 85 col1 @@ -17951,8 +18159,11 @@ SELECT - - 34 + - CAST ( + - 54 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) / Int64\(93\) \+ \(\- Int64\(\-31\)\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 64 / 93 + - - 31 AS col1, + 20 col1 +---- +20 +31 query I rowsort label-3421 SELECT - ( 30 ) * + COUNT ( * ) + 33 + 78 @@ -18236,8 +18447,11 @@ SELECT ALL COALESCE ( - - 98, - CASE + CAST ( NULL AS INTEGER ) WHEN + - ( ( + 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 1802 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \+ Int64\(\-5\) AS col0" at position 0 and "Int64\(83\) \* \(\- Int64\(\-20\)\) \+ Int64\(89\) \+ Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 + - 5 col0, 83 * + + ( - - 20 ) + + + 89 + + 53 AS col0 +---- +1802 +75 query I rowsort SELECT 94 * - 17 AS col1 @@ -18252,8 +18466,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 32 / - 26 AS col2, + COUNT ( - 30 ) * - - 82 - - + COUNT ( * ) AS col2 +---- +-1 +83 query II rowsort label-3478 SELECT 93 / + 34 AS col0, 75 @@ -18363,8 +18580,12 @@ SELECT + 50 * + 4 * - - COUNT ( * ) + + 64 # Datafusion - Expected - 187 # Datafusion - Expected - 97 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \+ \(\- Int64\(\-77\)\) \+ Int64\(12\) AS col0" at position 0 and "\(\- nullif\(Int64\(\-13\), \(\- max\(Int64\(42\)\)\) \* Int64\(60\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 98 + - - 77 + + 12 AS col0, 97 AS col1, - NULLIF ( - 13, + ( - + MAX ( + 42 ) ) * + 60 ) AS col0 +---- +13 +187 +97 query I rowsort label-3498 SELECT - SUM ( DISTINCT 42 ) col1 @@ -18384,8 +18605,11 @@ SELECT ALL - 49 * - 26 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 "Int64\(78\) / \(\- Int64\(65\)\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 / - + ( + 65 ) col0, 91 col0 +---- +-1 +91 query II rowsort label-3502 SELECT 14 * + ( + 80 ) * - COUNT ( * ) * + + 77 + - + 76 AS col0, COUNT ( * ) + COUNT ( * ) @@ -18531,8 +18755,11 @@ 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\(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\. +query II valuesort SELECT + + 15 AS col2, - CASE WHEN NOT - 79 BETWEEN 9 AND - - COUNT ( * ) * NULLIF ( + 28, - + 21 + - COUNT ( * ) ) THEN - 85 END AS col2 +---- +15 +85 query I rowsort SELECT ALL 70 * - 19 @@ -18872,8 +19099,11 @@ SELECT ALL - 82 + + - 87 * + 36, + 72 AS col1 # 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\(78\) AS col2" at position 0 and "Int64\(\-75\) \+ Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 78 col2, - 75 + 97 col2 +---- +22 +78 query I rowsort SELECT ALL - COALESCE ( 30, - 38 * + 94 + 21 + + 35 ) AS col1 @@ -18978,8 +19208,11 @@ SELECT DISTINCT COUNT ( * ) * + + 82 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col2" at position 0 and "CAST\(Int64\(22\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 93 col2, CAST ( 22 AS INTEGER ) AS col2 +---- +-93 +22 query II rowsort label-3615 SELECT - 32 AS col0, 80 / - + COUNT ( * ) - + + 88 * - - ( 50 ) @@ -19295,8 +19528,11 @@ SELECT DISTINCT + 11 * + COUNT ( ALL + NULLIF ( + 20, + - 26 * + + 55 ) ) AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - -7470 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-82\)\) \- \(\- count\(\(\- Int64\(\-29\)\)\)\) AS col2" at position 0 and "Int64\(\-22\) \+ Int64\(98\) \* Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 82 - - COUNT ( - - 29 ) AS col2, - 22 + 98 * - 76 AS col2 +---- +-7470 +83 query I rowsort SELECT ALL + + ( + 6 ) col0 @@ -19326,8 +19562,11 @@ SELECT ALL - 93 * - - 97 + - - 64 - 74 * - 50 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col1" at position 0 and "\(\- \(\- coalesce\(\(\- CAST\(Int64\(87\) AS Int32\)\), Int64\(60\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 29 AS col1, + ( - - COALESCE ( - CAST ( + + 87 AS INTEGER ), + 60 ) ) AS col1 +---- +-29 +-87 query I rowsort label-3680 SELECT - CASE 25 WHEN + 58 THEN NULL ELSE - 47 * + ( + 63 ) + + - MIN ( - 37 ) - - 58 * - 81 * - ( + COUNT ( * ) ) - - 14 END + - 55 + + 71 + 85 * + 91 + - - 81 * 85 @@ -19432,8 +19671,11 @@ SELECT DISTINCT 38 + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -7096 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ Int64\(\-91\) \* Int64\(79\) AS col1" at position 0 and "Int64\(\-23\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( + 93 ) + + - 91 * + 79 AS col1, + ( - 23 ) - + COUNT ( * ) col1 +---- +-24 +-7096 query I rowsort SELECT + 1 + - 78 @@ -19710,8 +19952,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 118 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col2" at position 0 and "Int64\(4\) \* Int64\(14\) \+ Int64\(39\) \+ Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 80 AS col2, 4 * + 14 + ( + 39 ) + 23 AS col2 +---- +118 +80 query I rowsort SELECT ALL + 41 * 43 AS col2 @@ -19727,8 +19972,11 @@ SELECT ALL 86 col2, NULLIF ( - + 53, - + 88 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 177 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(97\) \+ Int64\(80\) \+ Int64\(11\) / Int64\(\-93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, 97 + + + 80 + 11 / - 93 AS col1 +---- +1 +177 query II rowsort label-3756 SELECT + 57 + - NULLIF ( + CAST ( + - 71 AS INTEGER ), + 41 + - 42 * - 24 + + MAX ( ALL + - 33 ) ) * ( - - 75 ) AS col2, 41 AS col0 @@ -19745,8 +19993,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 AS col2, ( - COUNT ( * ) ) AS col2 +---- +-1 +26 query I rowsort SELECT ALL + 42 * + 98 AS col2 @@ -19807,8 +20058,11 @@ SELECT - 56 / 79 AS col1, MAX ( ALL - 65 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* Int64\(89\) \+ \(\- CASE CAST\(CAST\(NULL AS Int32\) AS Int32\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(\-27\) ELSE NULL END\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 65 * 89 + - CASE + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN + COUNT ( * ) THEN - 27 ELSE NULL END col2, 94 AS col2 +---- +94 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -19982,8 +20236,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -110 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \* Int64\(55\) AS col2" at position 0 and "Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 2 * + 55 AS col2, - 49 AS col2 +---- +-110 +-49 query II rowsort SELECT DISTINCT - 93 * + - 71, 62 * - 92 * 58 col2 @@ -20187,8 +20444,11 @@ SELECT 90 * - 71 + - CASE + 49 WHEN + 32 * 53 THEN NULL ELSE 95 END # Datafusion - Datafusion expected results: # Datafusion - Expected - -81873 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* \(\- Int64\(\-88\)\) \* Int64\(\-15\) \+ Int64\(\-90\) \- Int64\(\-57\) AS col0" at position 0 and "Int64\(\-74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 * + - ( - 88 ) * - 15 + - 90 - - 57 AS col0, - 74 col0 +---- +-74 +-81873 query I rowsort SELECT ALL - 79 * + + 62 @@ -20505,8 +20765,11 @@ SELECT - - COALESCE ( + 14, + + ( 56 ) ) + + + 51 - - 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-7\)\)\) \- \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(58\) \- Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( - 7 ) - - CAST ( NULL AS INTEGER ) AS col0, 58 - + 68 AS col0 +---- +-10 +NULL query I rowsort label-3901 SELECT - - 85 * - CASE WHEN ( + + 25 IS NOT NULL ) THEN - COUNT ( * ) * + 62 + - ( - 16 ) * + COUNT ( * ) END @@ -20756,8 +21019,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \+ Int64\(96\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 9 + + 96 col0, COUNT ( * ) AS col0 +---- +1 +87 query II rowsort SELECT DISTINCT + - 49 * 45 * - 64 * ( + 58 ) * - 91 AS col0, 17 + - ( - - ( + 85 ) ) AS col1 @@ -20822,14 +21088,21 @@ SELECT DISTINCT 17 - - + 1 AS col1 # Datafusion - Expected - 6450 # Datafusion - Expected - 80 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 1 and "Int64\(\-26\) / \(\- nullif\(Int64\(13\), Int64\(3\) \* Int64\(\-8\) \* Int64\(76\) \* Int64\(\-26\) \* Int64\(\-48\)\)\) \* Int64\(1\) \+ Int64\(\-66\) \+ Int64\(13\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 75 * + + 86 AS col2, 80 AS col1, - 26 / - NULLIF ( ( + 13 ), + 3 * - 8 * + 76 * - 26 * - 48 ) * 1 + - 66 + 13 AS col1 +---- +-51 +6450 +80 # 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 79 * + 46 AS col0, - 54 * - COUNT ( * ) AS col0 +---- +-3634 +54 query I rowsort SELECT ALL - ( + 89 ) col0 @@ -20874,8 +21147,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) / + - 98 AS col1, - COUNT ( * ) AS col1 +---- +-1 +0 query I rowsort SELECT 11 * 5 AS col1 @@ -21004,8 +21280,11 @@ SELECT COUNT ( * ) + + - 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-41\) \- nullif\(\(\- Int64\(\-53\)\), Int64\(89\)\) / coalesce\(Int64\(46\), Int64\(43\) \* count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\), max\(DISTINCT Int64\(15\)\) \- Int64\(\-37\) / CASE Int64\(\-27\) WHEN Int64\(74\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(78\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(8\) END \* \(\- Int64\(\-64\)\) \- Int64\(\-93\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-42 +1 query I rowsort SELECT DISTINCT 75 * - 94 + + + 98 * + - 48 @@ -21055,8 +21334,11 @@ SELECT - 91 + COUNT ( DISTINCT + NULLIF ( - + 80, + 31 ) ) / 86 / - CAST ( - + C # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 546 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "Int64\(6\) \* sum\(Int64\(91\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 90 AS col1, + 6 * + + SUM ( 91 ) AS col1 +---- +546 +90 query I rowsort SELECT - ( 30 ) AS col1 @@ -21751,8 +22033,11 @@ SELECT 42 * 78 * - 6 - + 60 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) / Int64\(\-75\) AS col2" at position 0 and "sum\(CAST\(NULL AS Int32\)\) \+ Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 0 / + - 75 AS col2, SUM ( ALL + CAST ( NULL AS INTEGER ) ) + 96 AS col2 +---- +0 +NULL query I rowsort SELECT ALL + 24 * 16 * ( + COALESCE ( + - 78, + + 10, - 12 ) ) + + 16 @@ -22074,8 +22359,11 @@ SELECT NULLIF ( - + 52, + ( + 97 ) ) / 87 * + - 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 6 + + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col0 +---- +1 +NULL query I rowsort label-4201 SELECT DISTINCT - COUNT ( * ) / - 8 * + 64 * - CAST ( NULL AS INTEGER ) AS col1 @@ -22154,8 +22442,11 @@ SELECT ALL 67 + - + 26 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 "count\(Int64\(85\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 AS col0, COUNT ( ALL + 85 ) col0 +---- +1 +46 query I rowsort label-4216 SELECT ALL COUNT ( DISTINCT - 66 ) AS col0 @@ -22227,8 +22518,11 @@ SELECT + 11 + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "Int64\(\-63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 82 AS col0, - 63 AS col0 +---- +-63 +82 query I rowsort label-4230 SELECT - 36 * + 5 + + 15 + 69 + + 17 / - 42 @@ -22350,8 +22644,12 @@ SELECT ALL ( NULLIF ( - 3, - + SUM ( 61 ) * NULLIF ( + 8, COALESCE ( + + 2, 51 ) # Datafusion - Expected - -8265 # Datafusion - Expected - -1 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) / Int64\(40\) AS col0" at position 1 and "Int64\(16\) \+ \(\- Int64\(51\)\) \+ Int64\(72\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 87 * + 95 AS col1, - 70 / 40 AS col0, + ( 16 ) + + ( - + 51 ) + + ( 72 ) col0 +---- +-1 +-8265 +37 query II rowsort label-4253 SELECT - 26 + 25 AS col2, - COUNT ( * ) @@ -22457,8 +22755,11 @@ SELECT - + 65 + - 40 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "sum\(nullif\(Int64\(\-66\), Int64\(64\) \* Int64\(\-57\) \+ Int64\(\-59\) \+ Int64\(\-91\) \* Int64\(76\) / Int64\(99\)\)\) \* Int64\(\-58\) \+ Int64\(\-87\) \* Int64\(4\) \* CAST\(NULL AS Int32\) \* CAST\(Int64\(78\) AS Int32\) \+ Int64\(1\) \* Int64\(59\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +28 +NULL query I rowsort label-4273 SELECT ALL + + COUNT ( DISTINCT + 10 ) col2 @@ -22654,8 +22955,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -1824 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) AS col2" at position 0 and "Int64\(\-19\) \* Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 5 AS col2, - 19 * + 96 AS col2 +---- +-1824 +5 query I rowsort label-4310 SELECT SUM ( + - 72 ) + 71 AS col2 @@ -23138,8 +23442,11 @@ SELECT ALL - COUNT ( * ) AS col0, 47 * - 96 / + 1 AS col1 # 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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 6 AS col1, 87 AS col1 +---- +-6 +87 query I rowsort label-4403 SELECT CASE + 13 WHEN - CAST ( NULL AS INTEGER ) + - 17 THEN + - 63 WHEN - 83 THEN NULL WHEN COALESCE ( ( + + 47 ), + CAST ( 44 AS FLOAT8 ) ) THEN NULL END + 69 col0 @@ -23303,8 +23610,11 @@ 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\(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\. +query II valuesort 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 +---- +63 +NULL query II rowsort label-4434 SELECT 74 * 5, COUNT ( * ) col1 @@ -23407,8 +23717,11 @@ SELECT ALL 41 * 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) / Int64\(\-82\) \* \(\- coalesce\(\(\- Int64\(\-37\)\), \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-49\)\)\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 28 / - 82 * + - COALESCE ( - - 37, - CAST ( NULL AS INTEGER ) * - 49 ) AS col2, 12 AS col2 +---- +0 +12 query II rowsort SELECT - 25 AS col1, + 93 @@ -24420,8 +24733,11 @@ SELECT - 57 + + COUNT ( * ) / + COUNT ( * ) # 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 col2" at position 0 and "Int64\(30\) \- Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 35 AS col2, 30 - + 36 AS col2 +---- +-6 +35 query I rowsort label-4650 SELECT ALL + COUNT ( - - 36 ) * + 27 @@ -24446,8 +24762,11 @@ SELECT - + 23 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 97 AS col1, 8 AS col1 +---- +-97 +8 query I rowsort SELECT ALL + - ( + 80 ) * + 24 AS col1 @@ -24674,8 +24993,11 @@ SELECT 94 + - - ( + 83 ) * + 12 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - -7372 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \- \(\- Int64\(8\)\) AS col0" at position 0 and "Int64\(0\) \+ Int64\(76\) \* sum\(Int64\(\-97\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 71 - - + 8 AS col0, + 0 + 76 * SUM ( ALL - 97 ) AS col0 +---- +-7372 +79 query I rowsort SELECT DISTINCT - 34 * + 57 AS col1 @@ -25188,8 +25510,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 122 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "Int64\(26\) \+ Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 80 AS col1, + 26 + 96 AS col1 +---- +122 +80 query I rowsort label-4798 SELECT DISTINCT 73 - + 63 * MAX ( ALL - 4 ) @@ -25386,8 +25711,11 @@ SELECT ALL MAX ( - + 97 ) + - 95 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \+ CAST\(NULL AS Int32\) \+ Int64\(\-50\) \* \(\- nullif\(\(\- Int64\(\-92\)\), \(\- Int64\(66\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 15 + + CAST ( NULL AS INTEGER ) + - 50 * - + NULLIF ( - - 92, - ( + 66 ) ) AS col0, COUNT ( * ) AS col0 +---- +1 +NULL query II rowsort label-4835 SELECT ALL + 72 - - COUNT ( * ) col0, 83 @@ -25437,8 +25765,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - -145827 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \- Int64\(\-65\) \+ Int64\(37\) AS col1" at position 0 and "Int64\(\-69\) \* Int64\(22\) \* Int64\(96\) \- \(\- Int64\(\-99\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 9 - + ( - 65 ) + 37 col1, - 69 * + + 22 * + 96 - - - 99 AS col1 +---- +-145827 +93 query I rowsort label-4844 SELECT DISTINCT NULLIF ( + 36, - + 58 * SUM ( DISTINCT + + 7 ) ) @@ -25570,8 +25901,11 @@ 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\(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\. +query II valuesort SELECT + 3 * + ( + 3 ) * + COUNT ( * ) / - + COUNT ( * ) AS col0, + 94 AS col0 +---- +-9 +94 query I rowsort SELECT ALL 9 * + 48 @@ -25674,8 +26008,11 @@ SELECT + - MIN ( ( - 39 ) ) + - - 21 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(Int64\(0\) AS Int32\) AS col0" at position 0 and "Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + COUNT ( * ) * CAST ( 0 AS INTEGER ) AS col0, - 60 AS col0 +---- +-60 +0 query I rowsort label-4890 SELECT - + 89 / - - 25 / + - COUNT ( * ) - + 42 * 79 * ( - + 51 ) * - 79 + + MIN ( DISTINCT - + 72 ) * 28 AS col1 @@ -25957,8 +26294,11 @@ SELECT 38 * - 6 # 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\(24\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 AS col1, + 21 col1 +---- +21 +24 query I rowsort label-4944 SELECT + COUNT ( DISTINCT - - 41 ) @@ -26670,8 +27010,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "coalesce\(min\(CAST\(NULL AS Int32\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col1, + COALESCE ( MIN ( + CAST ( NULL AS INTEGER ) ), + - COUNT ( * ) ) AS col1 +---- +-1 +1 query I rowsort label-5078 SELECT COUNT ( ALL + ( + 25 ) ) AS col0 @@ -26952,8 +27295,12 @@ SELECT 97 AS col2, - 74 + COUNT ( * ) AS col0 # Datafusion - Expected - 2548 # Datafusion - Expected - 69 # Datafusion - Expected - -143 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 1 and "Int64\(\-45\) \- \(\- Int64\(\-98\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 26 * + - 98 * - COUNT ( * ) AS col1, 69 col0, - 45 - - - 98 AS col0 +---- +-143 +2548 +69 query I rowsort SELECT ALL 38 - + + 20 @@ -27025,8 +27372,11 @@ SELECT - 3 * - 97 * 15 * + + 78 - + 24 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 44 col2, 95 AS col2 +---- +-44 +95 query I rowsort label-5144 SELECT DISTINCT - 43 + - 9 - + 13 + - 47 + - CAST ( NULL AS INTEGER ) @@ -27363,8 +27713,11 @@ 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\(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\. +query II valuesort 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 +---- +78 +NULL query I rowsort label-5210 SELECT 37 * - - ( COALESCE ( + 48, - ( NULLIF ( - - 33, - - COUNT ( * ) ) ) ) ) - + ( + 49 ) + - 10 AS col0 @@ -27536,8 +27889,12 @@ SELECT + - 49 * COUNT ( * ) - - COALESCE ( - NULLIF ( 94, COUNT ( * ) + 24 ), ( # Datafusion - Expected - 76 # Datafusion - Expected - 1 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 76 col0, COUNT ( * ) col0, + 89 AS col0 +---- +1 +76 +89 query II rowsort label-5244 SELECT ALL + + 39 AS col2, + 39 + + - MAX ( ALL + 42 ) @@ -27548,8 +27905,11 @@ SELECT ALL + + 39 AS col2, + 39 + + - MAX ( ALL + 42 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1283 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) / \(\- Int64\(57\)\) AS col0" at position 0 and "Int64\(7\) \+ Int64\(\-44\) \* Int64\(\-29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 16 / - + 57 AS col0, 7 + - 44 * - 29 AS col0 +---- +0 +1283 query II rowsort SELECT DISTINCT + - 48 AS col1, 22 @@ -27592,8 +27952,11 @@ SELECT + 79 + 20 / + 53 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- CASE Int64\(73\) WHEN Int64\(\-98\) \+ Int64\(78\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-19\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(\-56\) \* \(\- Int64\(\-49\)\) \* Int64\(\-67\) \+ Int64\(79\) THEN NULL WHEN Int64\(\-80\) \+ Int64\(\-77\) \* Int64\(29\) THEN Int64\(\-36\) END\)\) AS col2" at position 0 and "Int64\(8\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +NULL +NULL query I rowsort label-5254 SELECT ALL COUNT ( DISTINCT + 9 ) + + 93 @@ -27798,8 +28161,11 @@ SELECT 31 / + + 78 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col0" at position 0 and "Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 AS col0, - 65 AS col0 +---- +-65 +62 query I rowsort label-5293 SELECT ALL + SUM ( DISTINCT + CAST ( + 12 AS INTEGER ) ) * - - 93 + - ( + 13 ) AS col0 @@ -28006,8 +28372,11 @@ SELECT + 29 * 13 + - - 82 # 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 "Int64\(\-18\) \- Int64\(\-27\) AS col2" at position 0 and "Int64\(\-73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 18 - - 27 AS col2, - 73 AS col2 +---- +-73 +9 query I rowsort SELECT + 19 + - ( + - 70 ) AS col0 @@ -28037,8 +28406,11 @@ 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\(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\. +query II valuesort SELECT + + COUNT ( * ) / + 78 col2, + 7 * - + COUNT ( * ) AS col2 +---- +-7 +0 query I rowsort SELECT - 86 * + 30 * - 86 @@ -28114,8 +28486,11 @@ SELECT + 29 + - 46 * - 39 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9009 # Datafusion - Expected - 2100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* Int64\(\-91\) AS col1" at position 0 and "Int64\(42\) \* Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 99 * - 91 AS col1, + 42 * 50 AS col1 +---- +-9009 +2100 query I rowsort SELECT + + 66 * 28 @@ -28367,8 +28742,11 @@ SELECT 17 / 52 / 24 + - + COALESCE ( ( - COUNT ( * ) ), 64 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - -207 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col1" at position 0 and "\(\- Int64\(3\)\) \* nullif\(nullif\(Int64\(69\), Int64\(5\)\), \(\- Int64\(\-6\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 70 AS col1, + ( - + 3 ) * + + NULLIF ( + NULLIF ( + 69, + 5 ), - - 6 ) AS col1 +---- +-207 +-70 query I rowsort SELECT NULLIF ( 98, + 86 ) + - 4 @@ -28872,14 +29250,20 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + NULLIF ( + 34, COUNT ( * ) ) AS col0, 50 AS col0 +---- +-34 +50 # 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 37 AS col2, + 98 * - + COUNT ( * ) AS col2 +---- +-37 +-98 query I rowsort SELECT ( - + 32 ) @@ -29253,8 +29637,11 @@ SELECT ALL - NULLIF ( 78, - - CAST ( NULL AS INTEGER ) ) + - 63 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2937 # Datafusion - Expected - 507 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* Int64\(89\) AS col1" at position 0 and "Int64\(45\) \+ Int64\(24\) \* Int64\(48\) / Int64\(51\) \* Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 * + 89 AS col1, 45 + + 24 * 48 / 51 * 21 col1 +---- +2937 +507 query I rowsort SELECT DISTINCT + 41 * + - 89 @@ -29562,8 +29949,11 @@ SELECT ALL COUNT ( * ) * 43 - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "Int64\(50\) / Int64\(\-5\) \+ Int64\(\-76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 11 col1, 50 / + - 5 + - 76 AS col1 +---- +-86 +11 query I rowsort SELECT + 26 * + + 58 @@ -29632,8 +30022,11 @@ SELECT + 17 * 45 + - - ( + 49 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 79 AS col1, 54 col1 +---- +-79 +54 query I rowsort label-5642 SELECT 19 / - ( - 14 ) AS col2 @@ -30033,8 +30426,11 @@ SELECT + 15 / + 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -1080 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col0" at position 0 and "Int64\(15\) \+ Int64\(\-15\) \* Int64\(73\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 33 AS col0, 15 + - 15 * + ( + + 73 ) * + COUNT ( * ) AS col0 +---- +-1080 +33 query I rowsort label-5719 SELECT DISTINCT + NULLIF ( - 31, - CASE + - 82 WHEN COUNT ( * ) THEN NULL WHEN - 14 THEN + 58 END ) @@ -30096,8 +30492,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 1984528 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 0 and "Int64\(14\) \* Int64\(\-58\) \* Int64\(26\) \* Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 70 AS col0, 14 * + - 58 * 26 * - 94 AS col0 +---- +1984528 +70 query I rowsort label-5731 SELECT ALL + COUNT ( * ) * SUM ( DISTINCT + + 87 ) / - + MAX ( DISTINCT - 42 ) @@ -30190,8 +30589,11 @@ SELECT ALL - + COALESCE ( - 35, - 54 + + 62 * - + 50, - 52 * + ( 61 ) ) * + 11 A # 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 col1" at position 0 and "Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 col1, - 90 AS col1 +---- +-90 +90 query I rowsort label-5749 SELECT + COUNT ( * ) + 77 col2 @@ -30279,8 +30681,12 @@ NULL # Datafusion - Expected - 68 # Datafusion - Expected - 70 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ Int64\(\-27\) AS col1" at position 0 and "Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 95 + - 27 AS col1, + 70 AS col1, 45 col2 +---- +45 +68 +70 query I rowsort SELECT DISTINCT 77 + + 80 @@ -30777,8 +31183,11 @@ SELECT - 95 - 79 + NULLIF ( + - 96, + NULLIF ( + 40, - 97 ) ) / 59, 14 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 128 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- sum\(\(\- \(\- CAST\(Int64\(\-68\) AS Int32\)\)\)\)\) \+ Int64\(30\) \+ Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, - SUM ( - ( - CAST ( + ( - 68 ) AS INTEGER ) ) ) + 30 + + 30 AS col2 +---- +1 +128 query I rowsort SELECT - ( - - 31 ) AS col2 @@ -30991,8 +31400,11 @@ SELECT ALL - 5 + + 27 + + 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- Int64\(97\)\)\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( - + 97 ) AS col1, 19 AS col1 +---- +-97 +19 query I rowsort label-5901 SELECT ALL - 61 * - ( - - COUNT ( * ) ) / + + 78 * + 99 / - COUNT ( * ) AS col0 @@ -31047,8 +31459,11 @@ SELECT DISTINCT - 18 / + - 55 * - + 28 - - 4 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(11\)\) AS col0" at position 0 and "min\(Int64\(46\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 11 AS col0, + MIN ( + 46 ) AS col0 +---- +-11 +46 query I rowsort label-5912 SELECT + 50 - + CAST ( - 35 AS INTEGER ) * CASE - + 66 WHEN ( - - 24 ) THEN - 5 ELSE NULL END + - - 31 * + ( + ( + SUM ( DISTINCT - 29 ) ) ) @@ -31241,8 +31656,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2957 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(93\)\)\) \+ Int64\(34\) \* Int64\(87\) AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( ALL 93 ) + 34 * + 87 AS col2, 65 AS col2 +---- +2957 +65 query I rowsort SELECT ALL 42 * - + 96 @@ -31268,8 +31686,11 @@ SELECT DISTINCT - ( - ( NULLIF ( - 38, + 63 ) ) ) * - 15 AS col2, + 81 * 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 19 AS col1, 13 AS col1 +---- +-19 +13 query II rowsort SELECT 3 AS col2, + 81 * + - 60 AS col0 @@ -31364,8 +31785,11 @@ SELECT DISTINCT + COUNT ( * ) AS col2, - ( - 51 ) + 71 / 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) / Int64\(93\) \- CAST\(NULL AS Int32\) \- \(\- avg\(Int64\(\-28\)\)\) \+ Int64\(41\) AS col1" at position 0 and "Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT 87 / 93 - CAST ( NULL AS INTEGER ) - - AVG ( ALL - 28 ) + 41 AS col1, + 24 AS col1 +---- +24 +NULL query I rowsort SELECT DISTINCT - 79 * - + 90 @@ -31958,8 +32382,11 @@ 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\(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\. +query II valuesort SELECT ALL - + 53 * + 35 AS col2, COUNT ( * ) + + 37 + + - COUNT ( * ) * - + 42 AS col2 +---- +-1855 +80 query I rowsort label-6086 SELECT DISTINCT - + 19 / - + 25 * + 75 AS col0 @@ -32298,8 +32725,11 @@ SELECT DISTINCT - ( + 69 ) col0, ( + NULLIF ( + - NULLIF ( - 23, + ( + 15 ) + 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 113 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \+ Int64\(61\) AS col1" at position 0 and "Int64\(\-90\) / Int64\(43\) \* \(\- Int64\(87\)\) \+ CAST\(Int64\(\-61\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 19 + + 61 AS col1, - 90 / 43 * - ( 87 ) + CAST ( ( - 61 ) AS INTEGER ) AS col1 +---- +113 +42 query I rowsort label-6148 SELECT SUM ( ALL - CAST ( + + 0 AS INTEGER ) ) AS col2 @@ -33296,8 +33726,11 @@ SELECT - 29 * 85 * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col2" at position 0 and "Int64\(\-3\) \* CASE CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\) WHEN Int64\(50\) / Int64\(\-32\) THEN Int64\(88\) \* Int64\(\-42\) WHEN Int64\(75\) THEN NULL ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + 43 ) AS col2, - 3 * + + CASE CAST ( ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) WHEN 50 / - 32 THEN 88 * - 42 WHEN 75 THEN NULL ELSE NULL END col2 +---- +43 +NULL query II rowsort SELECT - 93 * 99 col2, - 20 * + - 65 + + 71 AS col0 @@ -33656,8 +34089,11 @@ SELECT ALL - 81, 70 * 97 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 17 AS col2, COUNT ( * ) AS col2 +---- +1 +17 query I rowsort SELECT 15 * + + 12 AS col0 @@ -33869,8 +34305,12 @@ SELECT + - 78 - - - 7 # Datafusion - Expected - -88 # Datafusion - Expected - -74 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) AS col0" at position 1 and "Int64\(\-7\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 73 + + - 15, - 74 AS col0, - 7 AS col0 +---- +-7 +-74 +-88 query I rowsort label-6451 SELECT DISTINCT 97 + + ( - 78 ) * 60 + - 37 * - COUNT ( * ) / - 43 @@ -33880,8 +34320,11 @@ SELECT DISTINCT 97 + + ( - 78 ) * 60 + - 37 * - COUNT ( * ) / - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col1" at position 0 and "Int64\(15\) / Int64\(\-3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + - 24 ) AS col1, 15 / - 3 AS col1 +---- +-24 +-5 query I rowsort SELECT ALL - 23 * + 81 - - 46 @@ -33940,8 +34383,12 @@ NULL # Datafusion - Expected - 31 # Datafusion - Expected - 24 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 31 * COUNT ( * ) AS col1, + 24 AS col1, 93 * COUNT ( * ) * COUNT ( ALL - + 20 ) * - COUNT ( * ) - COUNT ( * ) * - 29 col1 +---- +-64 +24 +31 query I rowsort SELECT DISTINCT 19 * - 37 col2 @@ -34453,8 +34900,11 @@ 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 "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 II valuesort SELECT ALL + 69 col1, 36 AS col1 +---- +36 +69 query I rowsort label-6561 SELECT 1 / - 17 * - 68 + + 76 + - 2 @@ -34474,8 +34924,11 @@ SELECT - + ( + 80 ) + 79 # 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\(58\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 58 AS col0, 79 col0 +---- +58 +79 query I rowsort label-6565 SELECT - MIN ( 51 ) @@ -34500,8 +34953,11 @@ SELECT DISTINCT - 13 / + + MAX ( DISTINCT + 89 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(60\) \* Int64\(19\)\)\)\) \* \(\- Int64\(4\)\) \- Int64\(24\) AS col0" at position 0 and "\(\- min\(CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - NULLIF ( COUNT ( * ), + 60 * + 19 ) * - + 4 - 24 col0, ( - MIN ( CAST ( NULL AS INTEGER ) ) ) col0 +---- +-28 +NULL query I rowsort SELECT + - 44 * 60 col1 @@ -34915,8 +35371,11 @@ SELECT 38 / 84, + 92 / 18 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 156366 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) / Int64\(90\) AS col2" at position 0 and "Int64\(63\) \* Int64\(34\) \* Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 73 / + 90 AS col2, 63 * 34 * + + 73 AS col2 +---- +0 +156366 query I rowsort label-6649 SELECT ALL - 27 + - COUNT ( * ) AS col2 @@ -34981,8 +35440,11 @@ SELECT DISTINCT 74 + 15 + 68 * + + 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 6072 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) / Int64\(35\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-88\) \* Int64\(\-69\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 / 35 AS col1, + COUNT ( * ) * - 88 * - 69 * + COUNT ( * ) col1 +---- +1 +6072 query I rowsort label-6662 SELECT DISTINCT - 73 / + - 51 @@ -35057,15 +35519,23 @@ SELECT DISTINCT + MAX ( DISTINCT - ( - 17 ) ) col0 # Datafusion - Expected - 83 # Datafusion - Expected - -3569 # Datafusion - Expected - -114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col1" at position 0 and "Int64\(83\) \* Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort SELECT ALL + 83 AS col1, 83 * - 43 AS col1, NULLIF ( MIN ( - 25 ), + 59 * + 18 + + 38 + - AVG ( DISTINCT 60 ) * + + 7 ) - + MIN ( 89 ) AS col2 +---- +-114 +-3569 +83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 51 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "Int64\(59\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 36 col1, + 53 + - 2, + + 59 + + COUNT ( * ) AS col1 +---- +36 +51 +60 query I rowsort label-6677 SELECT + 65 * 82 * + MIN ( + 92 ) @@ -35496,8 +35966,11 @@ SELECT + 44 / CASE 31 WHEN 60 / + 60 * + 88 * COUNT ( * ) * 3 + COUNT ( * ) + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 476 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* 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 II valuesort SELECT DISTINCT 14 * + 34 AS col2, 52 AS col2 +---- +476 +52 query I rowsort label-6759 SELECT DISTINCT - COUNT ( DISTINCT + 47 ) AS col0 @@ -36166,8 +36639,11 @@ SELECT - CAST ( 71 AS INTEGER ) AS col2 # 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 "\(\- Int64\(87\)\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 87 AS col1, 53 AS col1 +---- +-87 +53 query I rowsort SELECT ALL 91 + 54 + - + 21 + + 64 AS col1 @@ -36261,8 +36737,11 @@ SELECT ALL MAX ( 39 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 155 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \+ Int64\(83\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 + 83 AS col1, 37 AS col1 +---- +155 +37 query I rowsort label-6904 SELECT - COUNT ( * ) + - MIN ( + 4 ) @@ -36796,8 +37275,11 @@ SELECT NULLIF ( 10, + 48 - + - NULLIF ( - 44, + - 38 ) ) + + NULLIF ( - 81, + 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - -4940 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col0" at position 0 and "coalesce\(\(\- Int64\(\-76\)\), Int64\(81\) \* Int64\(\-80\), Int64\(86\) \* Int64\(21\)\) \* \(\- Int64\(65\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 89 AS col0, + COALESCE ( - ( - 76 ), 81 * - 80, + + 86 * + 21 ) * - ( 65 ) AS col0 +---- +-4940 +-89 query I rowsort label-7005 SELECT ALL COUNT ( * ) + + 62 AS col0 @@ -37507,8 +37989,11 @@ SELECT COUNT ( * ) + 33 * - - 61 / COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7313670 # Datafusion - Expected - -1360 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(47\) AS Int32\) \* \(\- Int64\(\-90\)\) \* Int64\(19\) \* \(\- Int64\(91\)\) AS col0" at position 0 and "Int64\(85\) \* Int64\(\-16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( + 47 AS INTEGER ) * - - 90 * 19 * - + 91 col0, + 85 * - 16 AS col0 +---- +-1360 +-7313670 query I rowsort label-7138 SELECT ALL - MIN ( ALL - + 57 ) @@ -37546,8 +38031,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 441 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \* CAST\(Int64\(6\) AS Int32\) \+ \(\- Int64\(87\)\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 88 * + + CAST ( 6 AS INTEGER ) + - + 87 AS col2, + 3 AS col2 +---- +3 +441 query I rowsort label-7145 SELECT 39 + + COALESCE ( - - 51, 51 * - 11 * - 87 + COUNT ( * ) ) + - - COUNT ( * ) - - SUM ( - 32 ) @@ -37878,8 +38366,11 @@ SELECT - 59 + - - COALESCE ( 91, + 1, + 40 ) + - - 77 + + ( + + MAX ( ALL + - 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 AS col1, + 18 AS col1 +---- +18 +84 query I rowsort SELECT + 24 + + + ( - 90 ) @@ -37977,8 +38468,11 @@ SELECT 89, - 85 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 344 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) / Int64\(2\) \+ Int64\(43\) AS col0" at position 0 and "Int64\(\-49\) \* Int64\(\-7\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 17 ) / + 2 + + 43 AS col0, + ( - 49 ) * + - 7 + COUNT ( * ) AS col0 +---- +344 +51 query I rowsort label-7226 SELECT ALL + + ( + 5 ) / + 29 AS col0 @@ -38098,8 +38592,11 @@ SELECT ALL - SUM ( ALL - + 86 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-81\)\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - 81 ) AS col2, 69 AS col2 +---- +69 +81 query I rowsort SELECT DISTINCT 37 * + CASE + - 52 WHEN - + 49 THEN 40 * + 49 * - - 85 END * + - 76 + + - 74 AS col2 @@ -38109,8 +38606,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 5624 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) \* Int64\(\-74\) AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 76 * + - 74 AS col2, + ( 91 ) AS col2 +---- +5624 +91 query I rowsort label-7251 SELECT ALL - CASE + - 28 WHEN + 35 * - 26 THEN 18 + 96 * + 28 END * - CAST ( NULL AS INTEGER ) / + 65 AS col2 @@ -38145,8 +38645,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ max\(Int64\(\-26\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 + + MAX ( ALL - 26 ) AS col2, COUNT ( * ) AS col2 +---- +1 +40 query I rowsort label-7258 SELECT 96 * - 48 + 45 * + + COUNT ( * ) AS col2 @@ -38161,8 +38664,11 @@ SELECT DISTINCT + 0 + - ( ( - ( - 82 ) ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 148 # Datafusion - Expected - 118 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ Int64\(82\) AS col2" at position 0 and "Int64\(79\) \+ Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 66 + + + 82 AS col2, 79 + + + 39 AS col2 +---- +118 +148 query I rowsort SELECT ( 26 ) * - + 79 @@ -38740,8 +39246,11 @@ SELECT ALL 62 col1, + 92 * + ( - + 23 ) + 90 + - 98 + 18 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "Int64\(68\) \+ Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 23 col1, + 68 + - 0 AS col1 +---- +23 +68 query II rowsort SELECT - ( 33 ) * + + 9 * + 76 * - 17 * - 92 AS col2, 51 col1 @@ -39458,8 +39967,11 @@ SELECT + NULLIF ( 66, MAX ( DISTINCT + 9 ) ) + 80 - 58 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -854 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) / Int64\(26\) AS col2" at position 0 and "Int64\(\-22\) \+ Int64\(69\) \* Int64\(\-11\) \+ \(\- Int64\(73\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 23 / 26 AS col2, - 22 + + 69 * - 11 + - + 73 AS col2 +---- +-854 +0 query I rowsort label-7508 SELECT ALL - COUNT ( * ) * - 27 * - + 5 @@ -39657,8 +40169,11 @@ SELECT + 23 + + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -1597 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(96\) AS col2" at position 0 and "max\(DISTINCT Int64\(88\)\) \* Int64\(\-19\) \+ Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 + 96 AS col2, MAX ( DISTINCT + + 88 ) * - 19 + + + 75 AS col2 +---- +-1597 +96 query II rowsort label-7546 SELECT ALL COUNT ( * ) - - 58 AS col2, - 73 + 75 - + - 14 AS col1 @@ -39805,8 +40320,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +63 +NULL query I rowsort label-7573 SELECT DISTINCT - 56 / 31 AS col0 @@ -40366,8 +40884,11 @@ SELECT DISTINCT 81 + + - MIN ( + 54 ) # 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 "coalesce\(Int64\(\-23\), Int64\(97\)\) \* \(\- Int64\(0\)\) AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COALESCE ( + - 23, + 97 ) * - - 0 AS col1, 32 col1 +---- +0 +32 query I rowsort SELECT DISTINCT 98 + 85 @@ -40512,8 +41033,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + - 66 AS col2, 57 AS col2 +---- +-65 +57 query I rowsort label-7706 SELECT CAST ( + + 87 AS INTEGER ) * - - 31 @@ -40730,8 +41254,11 @@ SELECT - 59 AS col0, 24 + - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4732 # Datafusion - Expected - -6825 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* Int64\(52\) \+ Int64\(0\) AS col2" at position 0 and "Int64\(\-91\) \* Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 91 * 52 + - 0 col2, - 91 * + 75 AS col2 +---- +-6825 +4732 query I rowsort SELECT - - 91 * 20 + 52 AS col0 @@ -42113,8 +42640,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \- Int64\(\-9\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 46 - - 9 AS col0, 24 AS col0 +---- +24 +55 query II rowsort label-8014 SELECT DISTINCT COUNT ( * ), 1 * + - CASE WHEN NOT ( + 14 ) IN ( - 28 ) THEN SUM ( + 66 ) END AS col2 @@ -42288,14 +42818,21 @@ SELECT + 57 + + 53 AS col2 # Datafusion - Expected - 55 # Datafusion - Expected - -41 # Datafusion - Expected - 1974 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col1" at position 1 and "Int64\(47\) \* Int64\(42\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - CAST ( - 55 AS INTEGER ) AS col2, - 41 AS col1, + 47 * 42 AS col1 +---- +-41 +1974 +55 # 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * - 74 AS col0, 25 AS col0 +---- +-74 +25 query I rowsort SELECT + ( 38 ) + - 69 * + + 33 AS col2 @@ -42420,8 +42957,11 @@ SELECT - ( 35 ) * COUNT ( * ) - - - 1 + - + ( + - 11 ) - 19 + 39 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - CAST ( - COUNT ( * ) AS INTEGER ) AS col1, - COUNT ( * ) AS col1 +---- +-1 +-1 query I rowsort label-8071 SELECT ALL COUNT ( * ) * + + 83 * NULLIF ( + 8, + 87 * - - 70 * - - ( COUNT ( * ) ) ) / + ( 55 ) + - COUNT ( * ) AS col0 @@ -42494,14 +43034,20 @@ SELECT 31 / + 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ \(\- Int64\(53\)\) AS col0" at position 0 and "Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 + - + ( 53 ) AS col0, - 68 AS col0 +---- +-51 +-68 # 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\(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\. +query II valuesort SELECT NULLIF ( - + COUNT ( * ), 47 * - 95 + + 34 ) * - - 55 AS col2, 81 AS col2 +---- +-55 +81 query I rowsort label-8086 SELECT ALL COUNT ( * ) + + 63 + - 23 + - 40 * + - 96 @@ -43038,8 +43584,11 @@ SELECT 62 + - ( - 38 ) + - 63 - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(54\)\) AS col1" at position 0 and "Int64\(\-88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( DISTINCT 54 ) AS col1, - 88 AS col1 +---- +-88 +54 query I rowsort label-8190 SELECT + COUNT ( * ) * ( - 38 ) + SUM ( DISTINCT + - 80 ) + 52 - - ( 3 ) * - 15 * + 0 * + 91 * 71 @@ -43502,8 +44051,11 @@ SELECT ALL - 64 * + + 0 + - 48 * - 11 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11019 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* \(\- Int64\(13\)\) \* Int64\(18\) \+ sum\(Int64\(\-21\)\) AS col1" at position 0 and "Int64\(\-91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 47 * - + 13 * + 18 + + SUM ( - 21 ) AS col1, - 91 AS col1 +---- +-11019 +-91 query I rowsort label-8278 SELECT + + ( - COALESCE ( + - CAST ( NULL AS INTEGER ), - ( 10 ) * + 71 ) ) @@ -43628,8 +44180,11 @@ SELECT DISTINCT + 35 + - 9 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \+ Int64\(10\) \- Int64\(\-13\) AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 13 + + 10 - - 13 AS col0, 59 AS col0 +---- +36 +59 query I rowsort SELECT DISTINCT + 86 + - - 67 AS col1 @@ -43800,8 +44355,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) / Int64\(39\) \- Int64\(72\) \+ Int64\(15\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 / 39 - + 72 + 15 AS col2, 48 AS col2 +---- +-56 +48 query I rowsort label-8335 SELECT + MAX ( + 13 ) @@ -43821,8 +44379,11 @@ SELECT - + 38 * + + 12 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / \(\- Int64\(17\)\) \* Int64\(60\) \* Int64\(\-24\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) / - + 17 * + + 60 * - 24 col1, + COUNT ( * ) col1 +---- +0 +1 query II rowsort label-8339 SELECT + 63, + NULLIF ( + 76, - - 93 ) / - 3 AS col1 @@ -43956,8 +44517,11 @@ SELECT DISTINCT - 86 + + 26 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT \(\- Int64\(39\)\)\) AS col1" at position 0 and "Int64\(\-98\) / Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( DISTINCT - + 39 ) AS col1, - 98 / 3 AS col1 +---- +-32 +-39 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -45113,8 +45677,11 @@ SELECT - + 48 * 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(1\) / \(\- Int64\(\-87\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 43 * COUNT ( * ) AS col2, + 1 / - - 87 AS col2 +---- +-43 +0 query I rowsort label-8586 SELECT - CAST ( - SUM ( + - 83 ) AS INTEGER ) @@ -45397,8 +45964,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - -4866 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(48\) \- \(\- sum\(Int64\(54\)\)\) \* \(\- Int64\(91\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 47 AS col2, 48 - - ( + SUM ( ALL + 54 ) ) * - + 91 AS col2 +---- +-4866 +47 query I rowsort label-8639 SELECT ALL + 47 - + + COUNT ( * ) + - 5 @@ -46261,8 +46831,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 40 - 87 AS col2, - COUNT ( * ) + + 9 AS col2 +---- +-127 +8 query II rowsort SELECT + - 76 * - 28, + 41 + + 38 AS col0 @@ -46903,8 +47476,11 @@ SELECT MAX ( DISTINCT - - 45 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "Int64\(2\) \+ Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 95 AS col0, + 2 + ( + 20 ) AS col0 +---- +22 +95 query I rowsort SELECT - COALESCE ( + + 99, + 91 ) * - 47 @@ -47534,8 +48110,12 @@ SELECT + 91 * 68 # Datafusion - Expected - NULL # Datafusion - Expected - 89 # Datafusion - Expected - -600 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(37\) \* Int64\(\-87\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(76\) \+ \(\- CASE sum\(Int64\(86\)\) WHEN CAST\(NULL AS Int32\) \+ \(\- CASE Int64\(\-78\) WHEN Int64\(0\) \+ \(\- Int64\(\-99\)\) THEN NULL ELSE \(\- Int64\(\-85\)\) END\) THEN sum\(DISTINCT Int64\(\-51\)\) / Int64\(\-8\) END\) \+ Int64\(85\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-600 +89 +NULL query I rowsort SELECT DISTINCT 23 * + 14 + - - 30 col1 @@ -47830,8 +48410,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-44\) \+ sum\(Int64\(37\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 AS col0, - 3 + + 2 * - 60 + - + COUNT ( * ) * - 44 + + SUM ( ALL 37 ) AS col0 +---- +-42 +42 query I rowsort SELECT + ( 81 ) * - 28 - + + 59 AS col1 @@ -48351,8 +48934,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - -190181 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \+ \(\- max\(Int64\(3\)\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(62\) \* Int64\(59\) \* Int64\(\-52\) \+ Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 74 + + - MAX ( 3 ) / + COUNT ( * ) AS col0, + 62 * 59 * - 52 + 35 AS col0 +---- +-190181 +-77 query I rowsort SELECT ALL + 63 + + ( - 34 ) + 40 * - 89 * - 72 AS col2 @@ -49295,8 +49881,11 @@ NULL # 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 "\(\- sum\(DISTINCT Int64\(\-60\)\)\) AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( DISTINCT - 60 ) AS col2, + 74 AS col2 +---- +60 +74 query I rowsort SELECT 9 + - - 75 AS col2 @@ -50566,8 +51155,11 @@ SELECT DISTINCT - - CAST ( - 50 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 32 AS col2, 30 AS col2 +---- +30 +32 query I rowsort label-9628 SELECT ( + CASE + 50 WHEN + 60 THEN - 37 ELSE + COUNT ( * ) END ) @@ -50608,8 +51200,11 @@ SELECT ALL + SUM ( + 44 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 54 AS col2, 43 col2 +---- +43 +54 query I rowsort SELECT ALL + ( - + COALESCE ( 84, - ( - + 7 ) + + 25 ) ) + + 36 * 10 AS col1 @@ -51103,8 +51698,11 @@ SELECT DISTINCT 31 * + 4 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -918 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col2" at position 0 and "Int64\(\-34\) \* Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 73 AS col2, - 34 * 27 AS col2 +---- +-918 +73 query I rowsort SELECT 0 + 79 AS col1 @@ -51514,8 +52112,11 @@ SELECT - + 95 / 2 + + + 34 + - NULLIF ( - 26, + + 52 * + - 16 + - - 11 * + - CAS # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -95950 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-4\)\) AS col1" at position 0 and "Int64\(77\) / Int64\(\-26\) \- Int64\(\-52\) \+ count\(Int64\(1\)\) AS count\(\*\) \* min\(Int64\(\-40\)\) \* max\(DISTINCT \(\- \(\- CAST\(Int64\(32\) AS Int32\)\)\)\) \* max\(Int64\(75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( + - 4 ) AS col1, + 77 / - 26 - + - 52 + COUNT ( * ) * + MIN ( - 40 ) * MAX ( DISTINCT - - CAST ( + + 32 AS INTEGER ) ) * MAX ( 75 ) AS col1 +---- +-95950 +4 query I rowsort label-9807 SELECT ALL + 73 * + - COUNT ( * ) AS col1 @@ -51632,8 +52233,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 59 / - COUNT ( * ) * + - COUNT ( * ) AS col2, - 81 * 28 * - 29 AS col2 +---- +59 +65772 query II rowsort label-9829 SELECT ALL - 33, - COUNT ( * ) AS col2 @@ -51675,8 +52279,11 @@ SELECT ALL COUNT ( DISTINCT - 24 ) * + 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 59 AS col1, + 45 AS col1 +---- +45 +59 query I rowsort SELECT DISTINCT - ( + 19 ) * - 70 AS col1 @@ -51978,8 +52585,11 @@ SELECT - COALESCE ( - 13, + 87 / - COUNT ( * ), MAX ( ALL + 82 ) * - + 73 * - AV # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) / Int64\(62\) \* Int64\(59\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 91 / 62 * + 59 AS col0, - CAST ( NULL AS INTEGER ) col0 +---- +-59 +NULL query I rowsort SELECT - 31 + + 63 AS col0 @@ -52182,8 +52792,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 84 AS col0, 32 AS col0 +---- +32 +84 query I rowsort SELECT ALL - 87 * - + ( - 57 ) AS col2 @@ -52457,8 +53070,11 @@ SELECT MIN ( + - 4 ) AS col2, MAX ( + 13 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-52\) AS Int32\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - 52 AS INTEGER ) AS col2, - COUNT ( * ) * - 37 AS col2 +---- +-52 +37 query I rowsort SELECT - 70 * + 17 + - 4 col2 diff --git a/data/sqlite/random/expr/slt_good_86.slt b/data/sqlite/random/expr/slt_good_86.slt index 00c22d1..9b02661 100644 --- a/data/sqlite/random/expr/slt_good_86.slt +++ b/data/sqlite/random/expr/slt_good_86.slt @@ -638,8 +638,11 @@ SELECT + 30 / - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 3888 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col0" at position 0 and "Int64\(72\) \* Int64\(\-6\) \* Int64\(\-9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 94 AS col0, 72 * - 6 * - 9 AS col0 +---- +-94 +3888 query I rowsort label-114 SELECT ALL + - 65 * + - 53 * - 26 + 79 / 60 + + 44 + 45 AS col1 @@ -1017,8 +1020,11 @@ SELECT + CAST ( + 25 AS INTEGER ) * - 72 * + 1 AS col2 # 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 col2" at position 0 and "Int64\(52\) \+ Int64\(\-52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 45 AS col2, 52 + - 52 AS col2 +---- +-45 +0 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -1143,8 +1149,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 41 - - 74 - + 57 * - - 46 AS col2, 66 * + 40 + 51 + 67 / + 15 + - 42 + - COUNT ( * ) AS col2 +---- +-2507 +2652 query I rowsort label-210 SELECT 15 + MIN ( DISTINCT - COALESCE ( + - 39, - 20 ) ) * - 56 + - COUNT ( * ) + - 10 @@ -1432,8 +1441,11 @@ SELECT - COALESCE ( - 89, + - COUNT ( * ), + + 79 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-51\) AS col1" at position 0 and "Int64\(\-34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 51 AS col1, - 34 AS col1 +---- +-34 +-51 query I rowsort SELECT ALL 93 - + 24 @@ -1480,8 +1492,11 @@ SELECT + 32 + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 965 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) \- \(\- Int64\(10\)\) AS col2" at position 0 and "Int64\(15\) \* \(\- Int64\(\-64\)\) \+ Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 38 - - + 10 AS col2, + 15 * - - 64 + + 5 AS col2 +---- +-28 +965 query I rowsort label-274 SELECT - ( + 50 ) * - 49 * - - COUNT ( * ) * + CASE + 92 WHEN 4 THEN + SUM ( - 23 ) END @@ -1633,8 +1648,11 @@ SELECT ALL 79 * - - 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) \* count\(Int64\(86\)\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 35 * + COUNT ( + 86 ) AS col1, 63 col1 +---- +-35 +63 query I rowsort SELECT ALL 72 + + NULLIF ( - 64, 66 * + NULLIF ( - 37, + 82 ) + + 22 - - - 48 ) * + 49 AS col0 @@ -1937,8 +1955,11 @@ SELECT - 49 + COALESCE ( 36, - 99 / 60 ) + - COALESCE ( 59, + - 48 / + 11, 4, + # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 AS col0, 92 AS col0 +---- +92 +99 query I rowsort label-362 SELECT ALL - ( + 50 ) * - CASE - CASE - + 69 WHEN + 41 / + 11 - + + CASE + 17 WHEN 27 + - 83 THEN NULL ELSE - 95 END THEN ( - CASE + 43 WHEN - - COUNT ( * ) THEN NULL ELSE 10 END ) END WHEN 26 THEN - + 87 END @@ -2526,8 +2547,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col0, 35 / - ( - 96 ) AS col0 +---- +-1 +0 query I rowsort label-472 SELECT ALL 11 / + - 58 @@ -2638,8 +2662,11 @@ SELECT DISTINCT - 92 * + - 38 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(27\) \* Int64\(89\) \+ Int64\(\-85\) \+ \(\- Int64\(20\)\) / \(\- sum\(\(\- CAST\(NULL AS Int32\)\)\)\) \+ \(\- Int64\(\-14\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(51\) AS col0" at position 0 and "Int64\(\-52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 27 * + 89 + - 85 + - + 20 / - SUM ( - CAST ( NULL AS INTEGER ) ) + - - 14 * - COUNT ( * ) + + COUNT ( * ) + 51 AS col0, - 52 AS col0 +---- +-52 +NULL query II rowsort label-492 SELECT ALL - COUNT ( * ) * - NULLIF ( 69, + CAST ( - + 25 AS INTEGER ) + + MAX ( + 46 ) ) AS col2, 49 + 91 @@ -2902,8 +2929,11 @@ SELECT 21 col1, 37 * + 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5521 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-82\)\) \* Int64\(68\) \+ Int64\(\-55\) AS col1" at position 0 and "Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 82 * 68 + + - 55 AS col1, - 85 AS col1 +---- +-85 +5521 query II rowsort label-542 SELECT ALL NULLIF ( ( - CASE - 78 WHEN + + COUNT ( * ) THEN - + 84 - - + 81 END ), 44 ) AS col2, 44 @@ -3038,8 +3068,11 @@ 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\(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\. +query II valuesort 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 +---- +20 +45 query I rowsort label-567 SELECT ALL - COALESCE ( COUNT ( ALL - - 53 ), - + 2, + - 68 ) / + 52 + + 15 AS col0 @@ -3100,8 +3133,11 @@ SELECT ALL - 51 + SUM ( ALL - + 35 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(34\) \* CASE \(\- nullif\(avg\(\(\- nullif\(Int64\(\-42\), Int64\(81\)\)\)\), Int64\(34\)\)\) WHEN \(\- max\(Int64\(\-71\)\)\) THEN \(\- coalesce\(Int64\(88\), \(\- Int64\(\-51\)\) \* CAST\(Int64\(\-9\) AS Int32\), Int64\(70\)\)\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) END \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-84\)\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +88 +NULL query I rowsort SELECT ALL - 34 * 2 + 77 AS col2 @@ -3462,8 +3498,11 @@ SELECT ALL 5 * - 25 * CAST ( 61 AS INTEGER ) * 52 + - - 34 + - + 28 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(78\)\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ \(\- Int64\(62\)\) \+ Int64\(21\) \+ \(\- Int64\(99\)\) \* \(\- min\(DISTINCT Int64\(10\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 78 ) AS col0, + ( + - CAST ( NULL AS INTEGER ) ) + - + 62 + 21 + - + 99 * - MIN ( DISTINCT + 10 ) AS col0 +---- +-78 +NULL query I rowsort label-649 SELECT CAST ( - 46 AS INTEGER ) AS col1 @@ -3526,8 +3565,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) + + 37 AS col0, 7 / + + 93 AS col0 +---- +0 +36 query I rowsort label-661 SELECT 95 - COUNT ( * ) * 63 @@ -3595,8 +3637,11 @@ 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\(1\)\) AS count\(\*\)\)\) \* Int64\(\-71\) \* Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 25 AS col0, 72 - - ( - COUNT ( * ) ) * - 71 * - 0 AS col0 +---- +-25 +72 query I rowsort SELECT 70 * - + 32 @@ -3704,8 +3749,11 @@ SELECT + ( 22 ) * 7 * - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 582819 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \* Int64\(6\) \* Int64\(23\) \* Int64\(\-44\) \- \(\- Int64\(\-93\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 96 * 6 * 23 * - 44 - - - 93 AS col1, COUNT ( * ) / + COUNT ( * ) AS col1 +---- +1 +582819 query I rowsort SELECT DISTINCT - ( + - 82 ) * + - 8 - + 99 + - 35 * + 68 AS col1 @@ -3788,8 +3836,11 @@ SELECT - 37 * - 66 - - MAX ( ALL 20 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\)" at position 0 and "Int64\(4\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4, 4 +---- +4 +4 query II rowsort label-711 SELECT - 15 AS col1, - 78 / - + 83 @@ -3960,8 +4011,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-78\) \* Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 AS col0, COUNT ( * ) * - 78 * 5 AS col0 +---- +-390 +21 query II rowsort SELECT + 2, 55 AS col2 @@ -4308,8 +4362,11 @@ SELECT 66 * - - 87 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 2381 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) \+ Int64\(87\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(34\)\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-7\) \+ Int64\(\-58\) \+ Int64\(\-44\), Int64\(30\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) / count\(Int64\(1\)\) AS count\(\*\), CAST\(NULL AS Int32\) \+ Int64\(\-35\) \* Int64\(89\)\) \* Int64\(\-70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 30 + 87 AS col0, COUNT ( * ) + - + 34 * COALESCE ( COUNT ( * ), + - 7 + - 58 + - 44, 30, - ( - COUNT ( * ) ) / + COUNT ( * ), + + CAST ( NULL AS INTEGER ) + - 35 * + 89 ) * - 70 col0 +---- +2381 +57 query I rowsort label-809 SELECT ALL + 67 + - 39 / + + 16 + MIN ( 91 ) * - + 1 * - COUNT ( * ) * - 7 AS col0 @@ -4371,8 +4428,11 @@ SELECT ALL 17 - 42 + + 34 + + 93 * - - COUNT ( - CASE - ( 24 ) WHEN - 22 THEN + # 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 "\(\- min\(DISTINCT Int64\(\-1\)\)\) AS col0" at position 0 and "Int64\(\-49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MIN ( DISTINCT - 1 ) AS col0, - 49 AS col0 +---- +-49 +1 query II rowsort SELECT ( - - 75 ) AS col1, - 71 AS col0 @@ -4774,8 +4834,11 @@ SELECT ALL 6 + + 67 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - -3822 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col0" at position 0 and "Int64\(78\) \* Int64\(\-49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 56 AS col0, 78 * - 49 AS col0 +---- +-3822 +-56 query I rowsort label-897 SELECT 11 * + - COUNT ( * ) + CAST ( NULL AS INTEGER ) @@ -4785,8 +4848,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -714 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(\-17\) AS col1" at position 0 and "Int64\(68\) \+ Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 42 * + - 17 AS col1, 68 + + 27 AS col1 +---- +-714 +95 query I rowsort label-899 SELECT 82 - - 65 + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + + COUNT ( * ) * + + 91 @@ -4943,8 +5009,11 @@ SELECT 98 * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col1" at position 0 and "\(\- Int64\(77\)\) \+ Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 AS col1, - ( 77 ) + 87 AS col1 +---- +10 +35 query I rowsort label-929 SELECT - 95 + - - COUNT ( + + 12 ) * ( + 93 ) AS col1 @@ -5204,8 +5273,11 @@ SELECT - - 96 * + + 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) \* CAST\(NULL AS Int32\) \+ Int64\(\-29\) \- Int64\(87\) AS col1" at position 0 and "\(\- sum\(\(\- Int64\(89\)\)\)\) / Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 1 * CAST ( NULL AS INTEGER ) + - 29 - 87 AS col1, - SUM ( - + 89 ) / 93 AS col1 +---- +0 +NULL query I rowsort SELECT - + 63 * 13 AS col2 @@ -5857,8 +5929,11 @@ SELECT - 40 * + - 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - -1258 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col2" at position 0 and "Int64\(\-8\) \* count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(Int64\(94\) \- Int64\(96\) \* Int64\(14\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 87 AS col2, - 8 * + ( COUNT ( * ) ) + + CAST ( + 94 - 96 * 14 AS INTEGER ) AS col2 +---- +-1258 +-87 query I rowsort label-1105 SELECT ALL CAST ( + - 64 AS INTEGER ) @@ -6314,14 +6389,20 @@ SELECT COALESCE ( + + 56, - + ( - 75 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6478 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(79\), CAST\(NULL AS Int32\)\) \* Int64\(\-82\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COALESCE ( + 79, + CAST ( NULL AS INTEGER ) ) * - 82 AS col2, COUNT ( * ) AS col2 +---- +-6478 +1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "min\(Int64\(\-18\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 90 AS col2, + MIN ( - 18 ) AS col2 +---- +-18 +90 query I rowsort SELECT - 0 * 70 * - 3 @@ -6708,8 +6789,11 @@ SELECT ( - COUNT ( ALL - 33 ) ) / + 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2109 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ CAST\(Int64\(\-52\) AS Int32\) \* Int64\(\-40\) AS col0" at position 0 and "CAST\(\(\- Int64\(50\)\) AS Int32\) \- Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 + + CAST ( - 52 AS INTEGER ) * - 40 AS col0, + CAST ( - + 50 AS INTEGER ) - 26 AS col0 +---- +-76 +2109 query I rowsort label-1268 SELECT 77 - + - SUM ( ALL + + 22 ) + + 48 @@ -7172,8 +7256,11 @@ SELECT + ( + COUNT ( * ) ) * + 45 # 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\) \+ \(\- Int64\(48\)\) / \(\- sum\(Int64\(\-56\)\)\) 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 IR valuesort SELECT + 65 + - + 48 / - SUM ( - 56 ) AS col0, + CAST ( NULL AS FLOAT8 ) AS col0 +---- +65 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -7291,8 +7378,11 @@ SELECT ALL + 40 + 98 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(61\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 76 + COUNT ( * ) AS col1, 61 / - COUNT ( * ) AS col1 +---- +-61 +77 query I rowsort label-1379 SELECT ALL - 29 * CASE + - 74 WHEN 73 * SUM ( ALL - 63 ) + + 7 + 49 * + - 35 + + 38 * + + ( - 78 ) + 63 THEN NULL ELSE + 71 END AS col0 @@ -7654,8 +7744,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 0 AS col1, - COUNT ( * ) col1 +---- +-1 +0 query I rowsort SELECT + 44 + + - 94 AS col1 @@ -7748,8 +7841,11 @@ SELECT CASE - 77 WHEN + 75 THEN + - CASE - 30 WHEN - + 72 THEN - 32 ELSE NULL EN # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - -5440 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "Int64\(\-17\) \* Int64\(\-54\) \+ \(\- Int64\(94\)\) \+ Int64\(93\) \+ Int64\(75\) \* Int64\(\-84\) \- Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 53 AS col2, - 17 * - 54 + - + 94 + 93 + + 75 * - 84 - 57 AS col2 +---- +-5440 +53 query I rowsort label-1464 SELECT + + 30 * - - COUNT ( * ) @@ -7932,8 +8028,11 @@ SELECT - - CASE - 30 WHEN + 73 THEN 51 * - 48 + + 37 ELSE 81 END + - 17 * + + MA # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 476 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) / \(\- Int64\(\-32\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-24\) AS col2" at position 0 and "Int64\(68\) \* Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 56 / - - 32 * + - CAST ( NULL AS INTEGER ) + + - 24 AS col2, + 68 * + 7 AS col2 +---- +476 +NULL query I rowsort SELECT - 94 * - + ( - + 61 ) col1 @@ -8255,8 +8354,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 88 AS col1, + COUNT ( * ) col1 +---- +1 +88 query I rowsort SELECT ALL 1 * - 60 @@ -8293,8 +8395,11 @@ SELECT ALL 25, - ( 98 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-43\) \+ min\(Int64\(90\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, - 43 + + MIN ( + 90 ) AS col2 +---- +1 +47 query I rowsort label-1567 SELECT DISTINCT MIN ( - - 85 ) + - 28 * - 26 @@ -8420,8 +8525,12 @@ SELECT + 16 / - 73, - 3 AS col0 # Datafusion - Expected - -68 # Datafusion - Expected - 78 # Datafusion - Expected - 724 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col0" at position 1 and "Int64\(\-53\) \* Int64\(90\) \+ Int64\(67\) \* Int64\(82\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 55 + - 13, + 78 AS col0, + - 53 * + 90 + + + 67 * + + 82 AS col0 +---- +-68 +724 +78 query II rowsort label-1591 SELECT + + 58 * 28 col1, + 98 + - COUNT ( * ) @@ -8602,14 +8711,20 @@ SELECT ALL + MIN ( DISTINCT + + 66 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 AS col2, + 84 AS col2 +---- +67 +84 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col0" at position 0 and "Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 AS col0, + 47 AS col0 +---- +-92 +47 query II rowsort SELECT + - 84, - 38 AS col2 @@ -8984,8 +9099,11 @@ SELECT - 77 / 84 AS col2 # 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 "Int64\(9\) AS col2" at position 0 and "Int64\(50\) \+ Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 AS col2, + 50 + 33 AS col2 +---- +83 +9 query II rowsort label-1697 SELECT DISTINCT COUNT ( * ) AS col2, - 1 AS col0 @@ -9086,8 +9204,12 @@ 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\(Int64\(1\)\) AS count\(\*\) \* min\(Int64\(99\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + + COALESCE ( COALESCE ( COUNT ( * ), - 71 ), + - 29, + 21 ) AS col2, 87 AS col0, + COUNT ( * ) * MIN ( + 99 ) AS col0 +---- +1 +87 +99 query I rowsort SELECT ALL 86 * - 54 + - - 11 AS col2 @@ -9412,8 +9534,11 @@ SELECT 39 + + 70 + COUNT ( - NULLIF ( - 17, + + 71 * + 13 * + 97 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5133 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-87\)\) \* Int64\(59\) AS col1" at position 0 and "Int64\(54\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( - 87 ) * 59 col1, 54 * - CAST ( NULL AS INTEGER ) AS col1 +---- +-5133 +NULL query II rowsort label-1778 SELECT 58, - 19 + - CAST ( NULLIF ( + 14, 54 ) AS INTEGER ) AS col2 @@ -9787,8 +9912,12 @@ SELECT DISTINCT NULLIF ( + - 60, + 87 ) AS col1 # Datafusion - Expected - 2287 # Datafusion - Expected - 14 # Datafusion - Expected - 138 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(\-77\)\), Int64\(\-9\)\) \+ \(\- Int64\(85\)\) \* Int64\(\-26\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + NULLIF ( - - 77, - 9 ) + - + 85 * - 26 col1, 14 AS col1, 13 + + - 24 - - + COUNT ( * ) * 59 + 90 +---- +138 +14 +2287 query I rowsort SELECT - 10 * 13 AS col0 @@ -9902,8 +10031,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 AS col0, - 73 * - + COUNT ( * ) AS col0 +---- +57 +73 query II rowsort label-1870 SELECT + 92 AS col2, CAST ( NULL AS INTEGER ) @@ -10068,8 +10200,11 @@ SELECT ALL 40 * + + 55 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2880 # Datafusion - Expected - -776 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* nullif\(\(\- Int64\(\-45\)\), Int64\(\-50\) \* Int64\(\-13\)\) AS col1" at position 0 and "Int64\(97\) \* Int64\(\-8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 * NULLIF ( - - 45, - 50 * + - 13 ) AS col1, + 97 * + - 8 col1 +---- +-776 +2880 query I rowsort SELECT - 87 * - ( + 87 ) * + + 79 + + - 48 * + 57 col1 @@ -10362,8 +10497,11 @@ SELECT ALL CAST ( + COALESCE ( + 80, - + 1 ) AS INTEGER ) * 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(82\)\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MAX ( + 82 ) AS col1, 51 col1 +---- +51 +82 query I rowsort SELECT DISTINCT 29 * 56 AS col0 @@ -10547,8 +10685,11 @@ 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\(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\. +query II valuesort 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 +---- +1 +NULL query I rowsort label-1994 SELECT CAST ( NULL AS INTEGER ) + ( MIN ( - - 42 ) ) AS col0 @@ -10558,8 +10699,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2766 # Datafusion - Expected - 3496 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ Int64\(94\) \* Int64\(29\) 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 II valuesort SELECT DISTINCT 40 + + 94 * + + 29 col2, - 76 * SUM ( - 46 ) AS col2 +---- +2766 +3496 query I rowsort SELECT 3 + + 97 @@ -10659,8 +10803,11 @@ SELECT DISTINCT - 41 + 38 col0 # 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 col1" at position 0 and "Int64\(33\) \* \(\- Int64\(0\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 28 AS col1, + 33 * - - 0 AS col1 +---- +-28 +0 query II rowsort SELECT 42, 63 AS col0 @@ -11074,8 +11221,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(17\) \- Int64\(\-92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 69 AS col0, COUNT ( * ) * + 17 - - 92 AS col0 +---- +-69 +109 query II rowsort SELECT ALL 81, 82 * + 0 * + + 64 * - - 52 AS col2 @@ -11522,8 +11672,11 @@ SELECT + ( 41 ), MAX ( 63 ) + NULLIF ( + 78, COUNT ( * ) + - 48 * + 63 * - CASE # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 47 AS col0, 60 AS col0 +---- +47 +60 query I rowsort SELECT ALL + ( + - 26 ) AS col2 @@ -11593,8 +11746,11 @@ SELECT ALL + 32 + + 10 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -102 # Datafusion - Expected - 4248 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) \+ Int64\(\-46\) AS col0" at position 0 and "Int64\(72\) \* Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 56 + + - 46 AS col0, 72 * 59 AS col0 +---- +-102 +4248 query I rowsort SELECT ALL - 60 + + + COALESCE ( + + 8, - 28 * + 67 ) @@ -11813,8 +11969,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \+ \(\- \(\- \(\- nullif\(Int64\(80\), \(\- Int64\(34\)\) \* Int64\(76\) \* Int64\(95\) \* Int64\(16\)\)\)\)\) \+ \(\- Int64\(38\)\) AS col2" at position 0 and "\(\- Int64\(\-8\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 + + - ( - - NULLIF ( + + 80, - + 34 * 76 * + ( + + ( + 95 ) ) * + ( + 16 ) ) ) + - + 38 AS col2, ( - - 8 ) col2 +---- +-37 +8 query I rowsort label-2238 SELECT + + SUM ( ALL ( + 99 ) ) AS col0 @@ -12167,8 +12326,11 @@ 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\(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\. +query II valuesort SELECT ALL 17 + - COUNT ( * ) AS col0, ( - - 59 ) AS col0 +---- +16 +59 query I rowsort SELECT DISTINCT + 75 + 49 AS col0 @@ -12332,8 +12494,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(43\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 15 * 14 * 38 AS col2, + COUNT ( * ) * - + 43 col2 +---- +-43 +-7980 query I rowsort SELECT DISTINCT - 46 + + 26 + 58 * - 96 AS col1 @@ -12370,8 +12535,11 @@ SELECT ALL 73 AS col2, - COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2058 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* \(\- Int64\(\-98\)\) AS col1" at position 0 and "\(\- max\(DISTINCT \(\- Int64\(30\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 * - - 98 AS col1, - MAX ( DISTINCT - + 30 ) col1 +---- +2058 +30 query I rowsort SELECT 27 + ( + 89 ) @@ -12917,8 +13085,11 @@ SELECT MAX ( - 49 ) AS col2, + COUNT ( * ) + + + 55 + + 57 / + - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2436 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) \* Int64\(28\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 87 * + 28 col1, 66 AS col1 +---- +2436 +66 query I rowsort SELECT DISTINCT + 61 + + 64 @@ -12938,8 +13109,11 @@ SELECT ALL 51 + + 5 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 43728 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \+ coalesce\(\(\- Int64\(\-41\)\), Int64\(63\), Int64\(5\)\) AS col0" at position 0 and "Int64\(79\) \+ Int64\(\-5\) \+ Int64\(13\) \* Int64\(73\) \* Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 44 + + + COALESCE ( - - 41, 63, + 5 ) AS col0, 79 + - 5 + + 13 * + 73 * + 46 col0 +---- +43728 +85 query I rowsort SELECT + 26 * 61 @@ -13105,8 +13279,11 @@ SELECT 67 col1, 91 # 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\(70\) \- \(\- coalesce\(Int64\(\-69\), Int64\(62\) \+ Int64\(39\), Int64\(\-27\) / Int64\(25\) / Int64\(\-29\)\)\) AS col0" at position 0 and "\(\- \(\- Int64\(12\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 70 - + - COALESCE ( + - 69, + 62 + + + 39, - 27 / + 25 / - 29 ) AS col0, - ( - + 12 ) AS col0 +---- +1 +12 query I rowsort label-2483 SELECT NULLIF ( - + COUNT ( * ), + + 41 + - 30 * + 3 * ( + 15 ) ) AS col0 @@ -13121,8 +13298,11 @@ SELECT ALL - - 12 * + MIN ( DISTINCT + 90 ) * - 15 - + ( + + 24 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 6460 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \+ Int64\(20\) AS col2" at position 0 and "Int64\(85\) \* Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 74 ) + 20 AS col2, + 85 * + + 76 AS col2 +---- +6460 +94 query II rowsort SELECT - 95 AS col1, + 25 @@ -13249,8 +13429,11 @@ SELECT 34 AS col1, 89 * + - 64 + 15 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 col0" at position 0 and "count\(DISTINCT Int64\(\-4\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 52 col0, COUNT ( DISTINCT - 4 ) col0 +---- +-52 +1 query I rowsort SELECT DISTINCT + 6 + - 96 + - 46 + 26 + 21 @@ -13653,8 +13836,11 @@ SELECT - MAX ( + - 18 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 191 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-96\)\) \+ Int64\(68\) \+ \(\- Int64\(\-27\)\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 96 + + 68 + - ( - 27 ) AS col0, 66 AS col0 +---- +191 +66 query I rowsort SELECT ALL + + NULLIF ( + 40, - + 11 * - 40 ) + - - 0 + + 70 * - - 38 * + 47 AS col2 @@ -14651,8 +14837,11 @@ SELECT - 10 + 38 + 95 + + CASE + CAST ( NULL AS INTEGER ) WHEN ( 73 ) THEN - COU # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(\-87\)\) AS col2" at position 0 and "Int64\(15\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( DISTINCT - 87 ) AS col2, + 15 * + COUNT ( * ) col2 +---- +-87 +15 query I rowsort SELECT - 87 + - + 46 AS col1 @@ -15049,8 +15238,11 @@ SELECT 85 + + + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 56 AS col0, 84 AS col0 +---- +56 +84 query I rowsort label-2858 SELECT MAX ( + 73 ) * + - 80 * - 59 @@ -15237,8 +15429,11 @@ SELECT 53 + - + ( + - 62 ) + - + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 130 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ Int64\(39\) AS col0" at position 0 and "CASE Int64\(75\) WHEN CASE Int64\(\-35\) WHEN coalesce\(Int64\(56\), Int64\(64\) \+ Int64\(8\)\) THEN Int64\(19\) / Int64\(94\) ELSE NULL END THEN NULL ELSE Int64\(24\) \+ Int64\(\-54\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 91 + + 39 AS col0, + CASE + 75 WHEN + + CASE + - 35 WHEN + COALESCE ( + 56, 64 + + 8 ) THEN + 19 / 94 ELSE NULL END THEN NULL ELSE + 24 + - 54 END AS col0 +---- +-30 +130 query I rowsort SELECT ALL 26 + 33 @@ -15314,8 +15509,11 @@ SELECT DISTINCT + - CAST ( + 48 AS INTEGER ) * + 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1260 # Datafusion - Expected - -1583 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* Int64\(70\) AS col0" at position 0 and "Int64\(63\) \+ Int64\(64\) \+ Int64\(18\) \* \(\- Int64\(95\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 18 * + 70 AS col0, + 63 + + + 64 + + 18 * - + 95 col0 +---- +-1583 +1260 query I rowsort label-2909 SELECT ALL + ( + 41 ) * - 79 - 2 / - + 49 - 77 @@ -15912,8 +16110,11 @@ SELECT - MIN ( ALL + + ( 34 ) ) col0, NULLIF ( 88, - - 79 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- \(\- CASE Int64\(49\) WHEN Int64\(90\) THEN NULL ELSE Int64\(\-16\) END\)\) AS Int32\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( - - CASE + 49 WHEN 90 THEN NULL ELSE - 16 END AS INTEGER ) col1, - COUNT ( * ) AS col1 +---- +-1 +16 query I rowsort SELECT ALL - 58 * + COALESCE ( + 10, 4 * - 10 * 55 * - 19 - 13 + + 70, 13 ) + 76 @@ -16245,8 +16446,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5265 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(81\)\) \* Int64\(65\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 81 * + 65 AS col1, 45 AS col1 +---- +-5265 +45 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -16613,8 +16817,11 @@ SELECT + 27 / 82 * 3 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 244 # Datafusion - Expected - 402 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(38\)\) \* Int64\(\-7\) \+ Int64\(\-23\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-8\) \* Int64\(\-62\) \+ Int64\(94\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 38 * - 7 + - 23 + COUNT ( * ) AS col1, - 8 * - 62 + + 94 / - COUNT ( * ) AS col1 +---- +244 +402 query I rowsort label-3157 SELECT COALESCE ( + - 64, - COUNT ( * ) ) col1 @@ -16764,8 +16971,11 @@ SELECT - - 90 - + 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 7379 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col1" at position 0 and "Int64\(97\) \* Int64\(77\) \- Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 60 AS col1, 97 * 77 - + 90 AS col1 +---- +-60 +7379 query II rowsort SELECT DISTINCT + + 74 AS col0, + ( + + ( + 15 ) ) * - 67 + 71 AS col2 @@ -16850,8 +17060,11 @@ SELECT + 61 AS col2, 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 422 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* Int64\(53\) \- Int64\(\-50\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 7 * + + 53 - - 50 + COUNT ( * ) AS col2, 11 AS col2 +---- +11 +422 query I rowsort label-3202 SELECT CASE + SUM ( DISTINCT - 7 ) WHEN 13 THEN NULL WHEN 15 THEN - COUNT ( * ) END col1 @@ -16988,8 +17201,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + COUNT ( * ) col1, - 71 AS col1 +---- +-1 +-71 query I rowsort SELECT ALL + - 42 * + + 23 @@ -17016,14 +17232,20 @@ SELECT ALL + - 0 * + + 92 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2206 # Datafusion - Expected - 7172 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(40\)\) \* \(\- CAST\(\(\- Int64\(\-55\)\) AS Int32\)\) \+ Int64\(63\) / nullif\(\(\- sum\(Int64\(69\)\)\), Int64\(51\) \+ Int64\(78\)\) \+ Int64\(\-6\) AS col0" at position 0 and "Int64\(29\) \+ coalesce\(Int64\(9\), count\(DISTINCT Int64\(78\)\)\) \+ \(\- Int64\(82\)\) \* \(\- Int64\(87\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + MAX ( DISTINCT + 40 ) * - CAST ( - - 55 AS INTEGER ) + 63 / NULLIF ( - SUM ( ALL + 69 ), + 51 + 78 ) + - 6 col0, 29 + COALESCE ( ( + 9 ), COUNT ( DISTINCT 78 ) ) + - ( 82 ) * - ( 87 ) AS col0 +---- +-2206 +7172 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- 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 II valuesort SELECT DISTINCT - - 31 AS col0, 85 AS col0 +---- +31 +85 query I rowsort label-3235 SELECT ALL 52 / 62 * - 98 @@ -17393,8 +17615,11 @@ SELECT DISTINCT + NULLIF ( 0, + - 41 ) * 52 - + - 60 * + - ( - 30 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2231 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-72\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 31 * + - COUNT ( * ) * + ( - 72 ) - + COUNT ( * ) AS col1, + 83 AS col1 +---- +2231 +83 query I rowsort label-3306 SELECT - COUNT ( 99 ) + - 87 * 45 col0 @@ -17537,8 +17762,11 @@ SELECT ALL - 78 / + COUNT ( 23 ) * + - 1 / - COUNT ( * ) - - 28 + + COALESCE ( + # 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 "Int64\(3\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 3 col0, 39 AS col0 +---- +3 +39 query I rowsort label-3334 SELECT - 91 * + CAST ( NULL AS INTEGER ) AS col2 @@ -17573,8 +17801,11 @@ SELECT + SUM ( ( - ( - + 31 ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \+ count\(Int64\(\-26\)\) AS col2" at position 0 and "Int64\(\-65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 + COUNT ( ALL - 26 ) col2, - 65 AS col2 +---- +-65 +39 query I rowsort SELECT 83 + ( - + ( + + 96 ) ) AS col0 @@ -18238,8 +18469,11 @@ SELECT 45 * + 98 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 127359 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \* \(\- sum\(Int64\(\-53\)\)\) \* Int64\(\-27\) AS col0" at position 0 and "CASE Int64\(\-1\) WHEN Int64\(11\) THEN NULL WHEN Int64\(\-61\) / \(\- Int64\(59\)\) \* \(\- Int64\(\-91\)\) THEN \(\- Int64\(\-89\)\) \- Int64\(33\) END \* Int64\(50\) \* Int64\(\-31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 89 * - SUM ( ( - 53 ) ) * - 27 AS col0, CASE - 1 WHEN + 11 THEN NULL WHEN + - 61 / - + 59 * - ( - 91 ) THEN - - 89 - + 33 END * ( 50 ) * - 31 col0 +---- +127359 +NULL query I rowsort SELECT NULLIF ( + + 22, 0 ) + + 40 * + 57 * 8 AS col0 @@ -18249,8 +18483,11 @@ SELECT NULLIF ( + + 22, 0 ) + + 40 * + 57 * 8 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6603 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) \* Int64\(\-91\) \+ Int64\(9\) \+ Int64\(\-49\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 73 * - 91 + + 9 + - 49 AS col2, 61 AS col2 +---- +61 +6603 query I rowsort SELECT 70 * 88 @@ -18307,8 +18544,11 @@ SELECT ALL 9 + 19 col0 # 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\(\-17\) AS col0" at position 0 and "Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 17 AS col0, + 59 AS col0 +---- +-17 +59 query II rowsort label-3482 SELECT COUNT ( * ) + + - 81 / - COUNT ( * ), 36 * - + COUNT ( * ) AS col1 @@ -18390,8 +18630,11 @@ SELECT 21 + - - MIN ( ALL - + 67 ) AS col0, 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 117 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) 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 II valuesort SELECT DISTINCT - 39 AS col1, 27 + + 90 AS col1 +---- +-39 +117 query I rowsort SELECT ALL + 99 * + 26 @@ -18444,8 +18687,11 @@ 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\(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\. +query II valuesort SELECT COALESCE ( + + 90, - SUM ( DISTINCT + - 85 ) * COUNT ( * ) ) * 64 AS col0, 98 * - COUNT ( * ) + 11 col0 +---- +-87 +5760 query I rowsort label-3508 SELECT 16 / 68 AS col1 @@ -18525,8 +18771,11 @@ SELECT - ( - 61 ) * + COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 712 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* Int64\(89\) AS col0" at position 0 and "CAST\(Int64\(74\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 * 89 AS col0, + CAST ( 74 AS INTEGER ) AS col0 +---- +712 +74 query I rowsort label-3523 SELECT DISTINCT NULLIF ( - 72, + COUNT ( * ) ) @@ -18556,8 +18805,11 @@ SELECT + - 83 * + 95 + + - MAX ( ALL 80 ) - + 94 + 43 * + COUNT ( DISTINCT 46 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col0" at position 0 and "Int64\(\-95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 95 AS col0, - 95 AS col0 +---- +-95 +95 query II rowsort label-3529 SELECT - + 69 AS col1, COALESCE ( MIN ( 34 ), - COUNT ( * ) ) + + - 71 @@ -18573,8 +18825,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(1\) \- Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + COUNT ( * ) col2, 1 - - 33 AS col2 +---- +1 +34 query I rowsort label-3532 SELECT - - SUM ( + 63 ) / 99 - + CAST ( - 49 AS INTEGER ) col0 @@ -18697,8 +18952,11 @@ SELECT DISTINCT 25 * - + NULLIF ( + + MIN ( - + 21 ), + 14 * - 30 - 77 * + 3 ) A # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-7\) AS Int32\) AS col1" at position 0 and "Int64\(\-13\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( - 7 AS INTEGER ) AS col1, - 13 + + COUNT ( * ) AS col1 +---- +-12 +-7 query II rowsort label-3556 SELECT DISTINCT + 92 * + - ( 56 ), + MIN ( + ( + + 85 ) ) AS col1 @@ -18750,8 +19008,11 @@ 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\(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\. +query II valuesort 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 +---- +0 +NULL query I rowsort label-3566 SELECT ALL - + 34 / 46 * + + 20 * - CAST ( NULL AS INTEGER ) + ( COUNT ( * ) ) AS col1 @@ -19864,8 +20125,11 @@ SELECT ALL + 88 + - 8 + - NULLIF ( - 54, + - CASE - ( - 65 ) WHEN 49 THEN 78 END # 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 "coalesce\(\(\- Int64\(35\)\), min\(\(\- Int64\(38\)\)\)\) AS col1" at position 0 and "CASE Int64\(9\) WHEN count\(Int64\(27\)\) THEN Int64\(59\) ELSE NULL END \+ Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COALESCE ( - + 35, MIN ( - + 38 ) ) AS col1, + CASE + + 9 WHEN + COUNT ( + + 27 ) THEN + 59 ELSE NULL END + + 50 AS col1 +---- +-35 +NULL query I rowsort SELECT - ( + + 68 ) AS col1 @@ -20500,8 +20764,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(5\), Int64\(84\)\) 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 II valuesort SELECT ALL + NULLIF ( 5, + 84 ) AS col1, - MIN ( ALL + + 96 ) AS col1 +---- +-96 +5 query II rowsort label-3899 SELECT + 9 + - - 71 AS col1, - 75 * - SUM ( + - 65 ) col0 @@ -20798,8 +21065,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * 80 * + - 56 * - + 22 AS col1, MAX ( 69 ) AS col1 +---- +69 +98560 query II rowsort SELECT 42 - - 20 + - 46 + 11, - 99 * 60 AS col0 @@ -20851,8 +21121,11 @@ SELECT DISTINCT - - 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1400 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* Int64\(50\) AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 28 * + 50 col1, ( + 50 ) AS col1 +---- +1400 +50 query I rowsort SELECT ALL - + ( - 83 ) @@ -21048,8 +21321,12 @@ SELECT ALL + 55 * + 4 * - - COUNT ( * ) * - COUNT ( * ) + 3 * + 53 # Datafusion - Expected - 1 # Datafusion - Expected - 47 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col0" at position 1 and "Int64\(74\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT COUNT ( * ) AS col1, 47 AS col0, + + 74 AS col0 +---- +1 +47 +74 query I rowsort label-4003 SELECT + 84 / + + 22 AS col0 @@ -21129,8 +21406,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 41 AS col1, 80 * + 74 + 88 * 44 * + - COUNT ( * ) + + + 57 AS col1 +---- +2105 +41 query I rowsort SELECT + 26 * + + 94 AS col2 @@ -21228,8 +21508,11 @@ SELECT - 8 * 71 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, - COUNT ( * ) AS col1 +---- +-1 +NULL query I rowsort label-4037 SELECT + CAST ( + 7 AS INTEGER ) AS col0 @@ -21239,8 +21522,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + ( - - 80 ) * CASE + 79 WHEN + + COUNT ( * ) THEN + + 78 END * 80 - + 91 + - MIN ( ALL - 74 ) AS col1, - 49 AS col1 +---- +-49 +NULL query I rowsort label-4039 SELECT ALL + MIN ( 73 ) AS col0 @@ -21306,8 +21592,11 @@ 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\(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\. +query II valuesort SELECT + ( - COUNT ( * ) ), - COUNT ( * ) +---- +-1 +-1 query I rowsort SELECT 12 + 61 + + 25 AS col0 @@ -21369,8 +21658,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 99 col2, 85 + + - COUNT ( * ) + 30 AS col2 +---- +-99 +114 query I rowsort SELECT ALL - NULLIF ( + 5, - - 59 ) @@ -21485,8 +21777,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 588 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \+ Int64\(\-55\) \+ \(\- Int64\(\-31\)\) AS col1" at position 0 and "Int64\(6\) \* Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 + ( - 55 ) + - + ( - 31 ) AS col1, 6 * 98 AS col1 +---- +14 +588 query II rowsort label-4087 SELECT COUNT ( DISTINCT - 0 ) - - + 19 + + 86 AS col1, 46 AS col2 @@ -21507,8 +21802,11 @@ SELECT 57 * - 33 * + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- Int64\(19\)\) \* \(\- sum\(Int64\(\-91\)\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 60 * - COUNT ( * ) AS col0, - ( 19 ) * - SUM ( - 91 ) + - CAST ( NULL AS INTEGER ) AS col0 +---- +-60 +NULL query I rowsort SELECT DISTINCT + 46 * 73 @@ -21589,8 +21887,11 @@ SELECT DISTINCT - - 5 + 85 * - - NULLIF ( + 27, + + CASE + - 81 WHEN CAST ( NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \+ \(\- Int64\(21\)\) AS col2" at position 0 and "Int64\(11\) / Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 89 + - + 21 col2, 11 / + 93 col2 +---- +0 +68 query I rowsort SELECT + - 7 + - + 27 @@ -21826,8 +22127,11 @@ SELECT DISTINCT MAX ( - 17 ) AS col0, NULLIF ( 5, + COALESCE ( + NULLIF ( 23, - # Datafusion - Datafusion expected results: # Datafusion - Expected - -2014 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \+ Int64\(2\) \- Int64\(\-78\) \* Int64\(\-27\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90 + + 2 - + - 78 * + - 27 AS col2, - CAST ( NULL AS INTEGER ) AS col2 +---- +-2014 +NULL query II rowsort SELECT - 72 - + 28 AS col0, 47 @@ -21923,8 +22227,12 @@ SELECT ALL - - NULLIF ( + 33, - COUNT ( * ) ) AS col0 # Datafusion - Expected - -16 # Datafusion - Expected - 50 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col2" at position 1 and "Int64\(\-66\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - + 16, 50 AS col2, - 66 AS col2 +---- +-16 +-66 +50 query I rowsort label-4169 SELECT - 88 * 66 + + CAST ( NULL AS INTEGER ) @@ -22061,8 +22369,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 - + 60 AS col0, 85 + + 56 + - - COUNT ( * ) AS col0 +---- +-49 +142 query II rowsort label-4195 SELECT ALL CAST ( + - 47 AS INTEGER ) + + 67 AS col2, 70 + + 63 AS col1 @@ -22126,8 +22437,11 @@ SELECT 54 + + 9 + COUNT ( * ), + 89 + 81 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 5 AS col0, 58 AS col0 +---- +-5 +58 query I rowsort SELECT 63 + 63 @@ -22217,8 +22531,11 @@ SELECT - + CASE + - 36 WHEN COUNT ( * ) * SUM ( DISTINCT 37 ) THEN NULL ELSE 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 53 AS col0, + 69 AS col0 +---- +53 +69 query I rowsort SELECT ALL + - 50 * COALESCE ( + 49, + + 91 + - + ( 26 ) ) AS col2 @@ -23058,8 +23375,11 @@ SELECT ALL 55, - ( - 94 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 1053216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col2" at position 0 and "Int64\(24\) \* Int64\(\-53\) \* min\(Int64\(\-12\) \* Int64\(69\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 61 AS col2, 24 * - 53 * MIN ( - 12 * + 69 ) AS col2 +---- +-61 +1053216 query I rowsort SELECT DISTINCT + ( 8 ) * 6 + + 30 AS col1 @@ -23300,8 +23620,11 @@ SELECT COUNT ( * ) + 64 * + CAST ( + - 91 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "\(\- CAST\(Int64\(\-35\) AS Int32\)\) \+ Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 15 col2, - CAST ( - 35 AS INTEGER ) + + 61 AS col2 +---- +15 +96 query I rowsort label-4436 SELECT 21 + + CAST ( NULL AS INTEGER ) - - 6 * - 58 * - + COUNT ( DISTINCT 51 ) @@ -23579,8 +23902,11 @@ SELECT DISTINCT + 10 AS col1, - 4 * 85 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col1" at position 0 and "Int64\(39\) \* \(\- Int64\(90\)\) / \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 13 col1, + 39 * - ( + 90 ) / + - CAST ( NULL AS INTEGER ) col1 +---- +13 +NULL query I rowsort SELECT - 18 * + - 18 @@ -23793,8 +24119,11 @@ SELECT 25 - - + 36 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3108 # Datafusion - Expected - -52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \* Int64\(\-42\) AS col1" at position 0 and "\(\- Int64\(52\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 74 * - 42 AS col1, - ( + + ( + 52 ) ) AS col1 +---- +-3108 +-52 query I rowsort SELECT + 13 + 11 col0 @@ -23840,8 +24169,11 @@ SELECT SUM ( + 79 ) + + - MAX ( + 35 ) + + 62 * - 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 4968 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-1\)\) AS col1" at position 0 and "Int64\(72\) \* coalesce\(Int64\(69\), \(\- Int64\(\-86\)\)\) \+ Int64\(0\) \* Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - 1 ) col1, 72 * COALESCE ( + 69, - - 86 ) + + 0 * + 32 AS col1 +---- +1 +4968 query I rowsort label-4540 SELECT ALL + - ( 62 ) + + CASE - MAX ( 38 ) WHEN + 90 THEN - 55 - + SUM ( - 42 ) WHEN + NULLIF ( 79, COUNT ( * ) ) THEN NULL END @@ -24205,8 +24537,11 @@ SELECT + 97 * CAST ( NULLIF ( + + 82, 19 ) AS INTEGER ) AS col2, COALESCE ( - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -2553 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "Int64\(55\) \* nullif\(Int64\(\-48\), count\(Int64\(3\)\)\) \+ \(\- Int64\(\-87\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 82 AS col0, 55 * + NULLIF ( - 48, COUNT ( 3 ) ) + - - 87 AS col0 +---- +-2553 +82 query I rowsort label-4609 SELECT COUNT ( * ) * - ( - 89 ) + 37 AS col0 @@ -24363,8 +24698,11 @@ SELECT - 89 * + - 36 * - 96 * 79 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 82 AS col1, + COUNT ( * ) AS col1 +---- +1 +82 query I rowsort SELECT + 38 * 50 * - 64 * - ( ( - 32 ) ) AS col0 @@ -24987,8 +25325,11 @@ SELECT ALL + MAX ( - + 16 ) * 70 * + 58 + + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \* Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 59 ) col1, - CAST ( - COUNT ( * ) AS INTEGER ) * 88 AS col1 +---- +59 +88 query I rowsort SELECT + 96 * - - 88 @@ -25075,8 +25416,11 @@ SELECT DISTINCT 49 - - 83 AS col2 # 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\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 16 AS col0, + 25 AS col0 +---- +-16 +25 query II rowsort SELECT + 8 col0, 64 + 42 col1 @@ -25182,8 +25526,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 88 col2, 94 AS col2 +---- +88 +94 query I rowsort SELECT - 1 + + 44 @@ -25266,8 +25613,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-45\) \+ Int64\(\-35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 AS col0, COUNT ( * ) * - 45 + + - 35 AS col0 +---- +-3 +-80 query II rowsort SELECT ALL 4, 95 AS col0 @@ -25278,8 +25628,11 @@ SELECT ALL 4, 95 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col1" at position 0 and "Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 5 AS col1, 30 AS col1 +---- +-5 +30 query I rowsort label-4814 SELECT ALL COUNT ( * ) * + 42 AS col1 @@ -25304,8 +25657,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col1" at position 0 and "Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 70 col1, + 6 AS col1 +---- +-70 +6 query I rowsort SELECT - 33 * 16 + - 92 AS col2 @@ -25325,8 +25681,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 47 AS col2, CAST ( + CASE 91 WHEN 1 THEN 3 END AS FLOAT8 ) + + + 23 * - COUNT ( * ) * - COUNT ( * ) AS col2 +---- +47 +NULL query I rowsort label-4823 SELECT + + COUNT ( * ) * - - 65 + 83 + - CAST ( NULL AS INTEGER ) / + 6 col2 @@ -25388,8 +25747,11 @@ SELECT + 15 + + ( - + 11 ) + + 28 * 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) col2, + COUNT ( * ) AS col2 +---- +-1 +1 query I rowsort label-4835 SELECT - - 68 * + + CAST ( NULL AS INTEGER ) @@ -25619,8 +25981,11 @@ SELECT ALL + 88 + - 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -4345 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "Int64\(\-79\) \* \(\- Int64\(\-55\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 20 AS col1, - 79 * - - 55 AS col1 +---- +-4345 +20 query II rowsort SELECT ALL CASE + AVG ( DISTINCT - CASE - 69 WHEN + 0 THEN + 57 END ) WHEN + 23 THEN 91 END AS col2, 63 * - + 17 * + 46 + + 39 @@ -25719,8 +26084,11 @@ SELECT SUM ( ALL 0 ) * + + 75 AS col2 # 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 "Int64\(1\) \* 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 II valuesort SELECT ( + 1 ) * + ( + - 69 ) AS col2, - 83 AS col2 +---- +-69 +-83 query II rowsort label-4898 SELECT ALL COUNT ( * ) + + + 7 + + 67 + - 54 + 56 AS col2, - 88 AS col0 @@ -25993,8 +26361,11 @@ SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) + 75 * ( - 56 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 178141 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* sum\(Int64\(70\)\) \* \(\- Int64\(\-67\)\) \+ Int64\(\-79\) AS col0" at position 0 and "sum\(Int64\(6\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 38 * + SUM ( + 70 ) * - - 67 + ( - 79 ) AS col0, SUM ( + 6 ) AS col0 +---- +178141 +6 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -26493,8 +26864,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -7290 # Datafusion - Expected - 2816 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \* Int64\(81\) AS col1" at position 0 and "Int64\(88\) \* Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 90 * 81 AS col1, 88 * 32 AS col1 +---- +-7290 +2816 query I rowsort SELECT 17 * 16 + + 19 @@ -26734,8 +27108,11 @@ SELECT + CAST ( + 43 AS INTEGER ) * - 87 col1, 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 1642 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col2" at position 0 and "Int64\(74\) \* Int64\(22\) \+ Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 18 AS col2, 74 * + 22 + + 14 AS col2 +---- +-18 +1642 query I rowsort label-5094 SELECT ALL - MIN ( + + 37 ) @@ -26783,8 +27160,12 @@ SELECT COUNT ( * ) - 2 * 23 AS col0 # Datafusion - Expected - -46 # Datafusion - Expected - 88 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 46 AS col1, 88 AS col1, 94 +---- +-46 +88 +94 query I rowsort label-5103 SELECT ALL COUNT ( * ) * + 6 * 10 AS col2 @@ -26811,8 +27192,12 @@ SELECT + 6 AS col0, NULLIF ( 63, - 32 ) * 60 AS col2 # Datafusion - Expected - 15 # Datafusion - Expected - 81 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 15 col2, + 81 AS col1, 6 AS col2 +---- +15 +6 +81 query I rowsort SELECT - 19 * + 13 + + 44 @@ -26864,8 +27249,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 * + - 53 AS col0, + 42 + + COUNT ( * ) + - 80 col0 +---- +-1484 +-37 query I rowsort label-5118 SELECT ALL - 11 - CAST ( 0 AS INTEGER ) AS col0 @@ -26890,8 +27278,11 @@ SELECT 8 + ( - - 84 ) AS col1 # 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 "Int64\(\-51\) AS col0" at position 0 and "Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 51 AS col0, - 25 AS col0 +---- +-25 +-51 query I rowsort SELECT ALL - ( - 68 ) - - 60 + + - 29 + 71 + - 46 * + 61 + - 19 * - 65 * + 66 @@ -27021,8 +27412,11 @@ 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\(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\. +query II valuesort SELECT ALL + - COUNT ( * ) * - MAX ( + 67 ) + + ( + 72 ) AS col0, - 74 * 31 + - ( - 25 ) AS col0 +---- +-2269 +139 query I rowsort SELECT + ( + + 12 ) + + + 5 AS col0 @@ -27045,8 +27439,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 147 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-7\) AS col0" at position 0 and "\(\- CAST\(Int64\(21\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 21 * - COUNT ( * ) * - 7 AS col0, - CAST ( + 21 AS INTEGER ) col0 +---- +-21 +147 query I rowsort label-5152 SELECT ALL 91 / + + 73 AS col2 @@ -27249,8 +27646,11 @@ SELECT ALL + + 92 * + - COUNT ( * ) # 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\(9\) AS col2" at position 0 and "Int64\(30\) \- Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 9 AS col2, + 30 - 2 AS col2 +---- +28 +9 query II rowsort SELECT + 52, 59 * 28 + 51 AS col0 @@ -27648,8 +28048,11 @@ 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 "Int64\(\-81\) AS col2" at position 0 and "Int64\(43\) \+ Int64\(5\) \* CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT - 81 AS col2, + 43 + + 5 * CAST ( NULL AS FLOAT8 ) AS col2 +---- +-81 +NULL query I rowsort SELECT 52 * - + 6 AS col0 @@ -27669,8 +28072,11 @@ SELECT DISTINCT 12 * 25 * - - ( - ( 73 ) ) * - 47 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3400 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) \* Int64\(85\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 40 * + 85 AS col2, 29 col2 +---- +-3400 +29 query I rowsort SELECT ALL 30 * 12 @@ -27722,8 +28128,11 @@ SELECT ALL COUNT ( * ), MIN ( - + 11 ) * - 69 + - 86 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1204 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(\-86\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \- Int64\(45\) \* Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 14 * - 86 AS col1, - CAST ( NULL AS INTEGER ) - + 45 * - 80 col1 +---- +-1204 +NULL query I rowsort label-5282 SELECT ALL SUM ( 93 ) / COUNT ( ALL 95 ) - + 39 @@ -28050,8 +28459,11 @@ SELECT DISTINCT + COUNT ( * ) * + + 24 + + 26, 85 * + ( + 27 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -3312 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col1" at position 0 and "Int64\(48\) \* Int64\(\-69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 35 AS col1, + 48 * + - 69 AS col1 +---- +-3312 +35 query I rowsort SELECT ALL - 98 * + + 71 + - 46 @@ -28155,8 +28567,11 @@ SELECT ( - 48 ) - - 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 149 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col0" at position 0 and "Int64\(78\) \+ Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 84 AS col0, 78 + 71 col0 +---- +-84 +149 query II rowsort SELECT ALL 46 AS col0, - 68 @@ -28775,8 +29190,11 @@ SELECT ( + ( - + 13 ) ) * - - 30 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1232 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* Int64\(44\) AS col2" at position 0 and "Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 * 44 AS col2, + 77 AS col2 +---- +1232 +77 query II rowsort label-5481 SELECT ALL - CASE WHEN NOT + 42 IN ( + + COALESCE ( - 50, - 66, - + 75 ) + COUNT ( * ), 21, + 57, - 0 * 86, - + MAX ( + - 66 ) * + - 61 * 0 - - 55 ) THEN + 1 + COUNT ( * ) * + 45 ELSE NULL END AS col0, + 98 + + NULLIF ( - - 76, + SUM ( ALL + - 29 ) + + COUNT ( * ) ) AS col2 @@ -29680,8 +30098,11 @@ SELECT DISTINCT 5 + ( - 81 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 5766 # Datafusion - Expected - 1218 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \* Int64\(93\) AS col0" at position 0 and "Int64\(14\) \* Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 * ( + 93 ) AS col0, 14 * 87 AS col0 +---- +1218 +5766 query I rowsort label-5653 SELECT - SUM ( 45 ) AS col0 @@ -29944,8 +30365,11 @@ SELECT + CAST ( + - 44 AS INTEGER ) * 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 14 AS col0, ( 35 ) AS col0 +---- +14 +35 query I rowsort label-5704 SELECT ALL 73 + COALESCE ( + 12, + 41, COUNT ( * ) + - 98 + - 40 * + 50 * - + MIN ( + 81 ) * + 43 ) + 43 col2 @@ -30405,8 +30829,11 @@ SELECT + + 85 * - 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 AS col0, + 18 AS col0 +---- +18 +79 query I rowsort SELECT ALL + + 24 * - + 25 @@ -30463,8 +30890,12 @@ SELECT + - 47 * - - NULLIF ( + - 24, + 51 ) * - 93 AS col2 # Datafusion - Expected - -5180 # Datafusion - Expected - 49 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \- Int64\(87\) \+ Int64\(57\) \* \(\- Int64\(89\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + - 20 - ( + 87 ) + + 57 * - ( + 89 ) AS col0, ( - - 49 ) * + COUNT ( * ), COUNT ( * ) col0 +---- +-5180 +1 +49 query II rowsort SELECT + 0 AS col0, - 66 @@ -30536,8 +30967,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -697 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(\-89\) \* \(\- Int64\(\-3\)\) \+ \(\- nullif\(\(\- Int64\(27\)\), Int64\(24\)\)\) \+ Int64\(77\) AS col0" at position 0 and "Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 3 * - 89 * - - 3 + - + NULLIF ( - + 27, + 24 ) + + + 77 AS col0, 44 AS col0 +---- +-697 +44 query I rowsort SELECT ALL 69 * ( 73 ) + + 73 + + 71 + - 12 AS col1 @@ -30626,8 +31060,11 @@ SELECT ALL 42 - + - 60 + - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 61 AS col0, + 88 AS col0 +---- +61 +88 query II rowsort SELECT 79 AS col2, 6 AS col0 @@ -30770,8 +31207,11 @@ SELECT 11 * 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "Int64\(94\) \* CASE Int64\(\-2\) WHEN Int64\(35\) THEN CAST\(\(\- nullif\(Int64\(\-96\), CASE Int64\(21\) WHEN \(\- Int64\(2\)\) THEN \(\- Int64\(\-46\)\) \- Int64\(\-6\) WHEN Int64\(\-25\) THEN Int64\(66\) \* \(\- \(\- CAST\(Int64\(68\) AS Int32\)\)\) \* CAST\(CASE Int64\(\-35\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(42\) END AS Int32\) \- Int64\(41\) ELSE Int64\(\-50\) END \+ Int64\(\-54\) / Int64\(\-86\) \* Int64\(\-17\) \* Int64\(8\) \* sum\(DISTINCT nullif\(Int64\(\-94\), Int64\(\-25\) \- Int64\(\-18\)\)\) \- \(\- Int64\(21\)\)\)\) AS Int32\) ELSE Int64\(80\) END \* Int64\(40\) / Int64\(43\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int32\) \+ Int64\(62\) \+ sum\(Int64\(32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +60 +NULL query I rowsort label-5860 SELECT 91 / - - 8 @@ -30842,8 +31282,11 @@ SELECT DISTINCT 46 + 4 AS 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 "Int64\(40\) / Int64\(\-29\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 40 / - 29 AS col2, + 19 AS col2 +---- +-1 +19 query I rowsort SELECT DISTINCT 60 * 61 AS col2 @@ -30853,8 +31296,11 @@ SELECT DISTINCT 60 * 61 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(\-14\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - SUM ( DISTINCT - 14 ) col0, COUNT ( * ) AS col0 +---- +1 +14 query I rowsort label-5876 SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) + - 42 * - + SUM ( 75 ) AS col0 @@ -30879,8 +31325,11 @@ SELECT ALL + - 17 / - + COUNT ( * ) + + ( + 73 ) + + - 54 - - 81 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2548 # Datafusion - Expected - 8502 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(\-52\) AS col2" at position 0 and "Int64\(\-90\) \* \(\- coalesce\(Int64\(95\), Int64\(97\) \* Int64\(82\)\)\) \+ Int64\(\-48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 49 * - 52 AS col2, - 90 * - COALESCE ( + 95, + 97 * 82 ) + - 48 AS col2 +---- +-2548 +8502 query II rowsort label-5881 SELECT + 92 * 5 + + - 12 + - + 26, COUNT ( * ) AS col1 @@ -31483,8 +31932,11 @@ SELECT ALL - 40, 44 * - 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 AS col0, - 68 AS col0 +---- +-68 +42 query I rowsort label-5998 SELECT ALL + 90 - + ( - + COUNT ( * ) ) / 66 @@ -32052,8 +32504,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 53 / - 87 AS col2, 19 * - 6 - - COUNT ( * ) AS col2 +---- +-113 +0 query II rowsort label-6108 SELECT DISTINCT - 59 / - + 81 AS col0, + 27 + - CASE WHEN NULL NOT BETWEEN 11 AND NULL THEN + 66 ELSE + COUNT ( * ) END col1 @@ -32203,8 +32658,11 @@ SELECT CAST ( + 98 AS INTEGER ) - MIN ( NULLIF ( 25, + + 44 + - 57 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(39\) \* Int64\(\-34\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col1, 39 * - 34 * + CAST ( NULL AS INTEGER ) AS col1 +---- +NULL +NULL query I rowsort label-6137 SELECT COALESCE ( 85, 94 * - - 69 ) - - 80 + - CAST ( ( - 54 ) AS INTEGER ) AS col1 @@ -32342,8 +32800,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(35\) \* Int64\(\-53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 * - 35 AS col2, + COUNT ( * ) + 35 * + - 53 AS col2 +---- +-1120 +-1854 query I rowsort label-6163 SELECT ALL + + CASE - 36 WHEN 76 * 34 THEN - - 5 * + COUNT ( * ) END AS col0 @@ -32649,8 +33110,11 @@ SELECT 73 * - 67 / - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-64\)\) AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - 64 ) AS col1, + 35 col1 +---- +35 +64 query I rowsort SELECT 9 * - ( - 93 ) + - - 50 AS col1 @@ -32799,8 +33263,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(38\) \* Int64\(2\) \+ Int64\(\-66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 * 50 / 29 * + 64 * 62 AS col2, COUNT ( * ) + 38 * + 2 + - 66 AS col2 +---- +11 +539648 query I rowsort SELECT ALL 51 * 95 @@ -33125,8 +33592,11 @@ SELECT DISTINCT 6 * - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(37\)\) 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 II valuesort SELECT - ( 37 ) col2, - 3 * - 29 AS col2 +---- +-37 +87 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -33168,8 +33638,11 @@ SELECT - 34 * - 46 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(29\)\)\) \+ Int64\(\-28\) AS col0" at position 0 and "Int64\(\-10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( ALL + + 29 ) + + - 28 AS col0, - 10 col0 +---- +-10 +-57 query I rowsort label-6319 SELECT ALL 80 * - - COUNT ( * ) @@ -33362,8 +33835,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col0" at position 0 and "Int64\(71\) \+ Int64\(43\) / \(\- Int64\(17\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 87 AS col0, 71 + + 43 / - + 17 AS col0 +---- +-87 +69 query II rowsort label-6354 SELECT ALL 89, - 66 * COUNT ( * ) * - ( + 27 ) AS col1 @@ -33460,8 +33936,11 @@ SELECT 19 - + 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49896 # Datafusion - Expected - 848 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) \* \(\- Int64\(77\)\) \* sum\(DISTINCT nullif\(\(\- Int64\(54\)\), Int64\(47\)\)\) AS col1" at position 0 and "Int64\(10\) \* Int64\(83\) \+ Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 * - + 77 * SUM ( DISTINCT NULLIF ( - + ( + 54 ), + 47 ) ) AS col1, + 10 * + 83 + 18 AS col1 +---- +49896 +848 query I rowsort label-6372 SELECT COUNT ( * ) * + MIN ( DISTINCT - ( + 42 ) ) @@ -33854,8 +34333,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, - 23 AS col1 +---- +-23 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -34395,8 +34877,11 @@ SELECT DISTINCT + 67 * + MIN ( - + 50 ) * + COUNT ( * ) * + - 66 + + 89 * - ( + # Datafusion - Datafusion expected results: # Datafusion - Expected - -23317 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \* \(\- coalesce\(Int64\(\-27\), Int64\(88\) \- Int64\(5\) \* \(\- \(\- CAST\(\(\- Int64\(15\)\) AS Int32\)\)\)\)\) \* Int64\(28\) \+ Int64\(\-5\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(40\) \+ min\(Int64\(83\)\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 31 * - COALESCE ( - 27, 88 - + + 5 * - + ( + - CAST ( - + 15 AS INTEGER ) ) ) * 28 + - 5 + COUNT ( * ) + + 40 + MIN ( 83 ) AS col0, 18 AS col0 +---- +-23317 +18 query I rowsort label-6550 SELECT ALL - COUNT ( * ) * COALESCE ( ( + 88 ), + - COUNT ( * ) / + 82 * + COUNT ( * ) ) + + 7 AS col0 @@ -34467,8 +34952,11 @@ SELECT - CAST ( + 4 AS INTEGER ) # 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 "coalesce\(Int64\(\-58\), Int64\(28\)\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COALESCE ( - 58, 28 ) col1, 79 AS col1 +---- +-58 +79 query I rowsort label-6564 SELECT ALL MAX ( DISTINCT 78 ) @@ -34604,8 +35092,11 @@ 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\(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\. +query II valuesort SELECT ALL - 97 AS col2, 33 / + - 79 * - + COUNT ( * ) + - 83 * - 14 - - + SUM ( - COALESCE ( - 72, 57 ) ) AS col2 +---- +-97 +1234 query I rowsort label-6591 SELECT ALL - - COALESCE ( - 60, - 18 + + + 51, 17, - - 1 / 9 ) AS col1 @@ -34917,8 +35408,11 @@ SELECT - - MIN ( 98 ) - + - CASE - + ( + AVG ( DISTINCT - 20 ) ) WHEN 62 THEN CO # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(40\)\)\) AS col2" at position 0 and "Int64\(\-82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( + 40 ) AS col2, - 82 AS col2 +---- +-40 +-82 query I rowsort label-6649 SELECT + - 60 * - 38 + 2 + MAX ( - 12 ) @@ -35105,8 +35599,11 @@ SELECT + 21 + - 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) \+ min\(DISTINCT Int64\(87\)\) AS col0" at position 0 and "Int64\(\-88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 37 + + + MIN ( DISTINCT + 87 ) col0, - 88 col0 +---- +-88 +50 query I rowsort SELECT + 7 + + - 37 col1 @@ -35387,8 +35884,11 @@ SELECT ALL 46 * 47 * + + SUM ( DISTINCT - 1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 70899 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) / \(\- CAST\(\(\- \(\- CAST\(NULL AS Int32\)\)\) AS Int32\)\) AS col1" at position 0 and "max\(Int64\(58\)\) \* Int64\(51\) \* Int64\(24\) \+ max\(Int64\(\-53\)\) \+ \(\- Int64\(40\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 57 / - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, MAX ( + 58 ) * + 51 * + 24 + MAX ( + - 53 ) + - + 40 col1 +---- +70899 +NULL query I rowsort label-6740 SELECT COUNT ( * ) * - 22 * + CAST ( + 37 AS INTEGER ) AS col1 @@ -35541,8 +36041,11 @@ SELECT + 45 * + 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2480 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- min\(Int64\(31\)\)\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, - MIN ( ALL 31 ) * + 80 AS col1 +---- +-2480 +1 query II rowsort SELECT ALL + 96, - 54 AS col1 @@ -35607,8 +36110,11 @@ SELECT ALL - 19 + - 90 + - 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 AS col1, 87 AS col1 +---- +-81 +87 query I rowsort label-6781 SELECT ALL + 44 + + SUM ( DISTINCT - + 52 ) + + - 52 @@ -35691,8 +36197,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) col2, 63 * - 44 col2 +---- +-1 +-2772 query I rowsort label-6797 SELECT ALL + 67 - + SUM ( - 36 ) * - 76 * 79 @@ -36249,8 +36758,11 @@ 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\(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\. +query II valuesort SELECT + COALESCE ( COUNT ( * ), 91 - + 2 * 6 * - COALESCE ( - 80, - + 6 ), 15 ) * + 86 AS col2, SUM ( + 1 ) + - ( 14 ) AS col2 +---- +-13 +86 query II rowsort SELECT ALL + - 80 AS col0, 24 AS col2 @@ -36450,8 +36962,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(nullif\(Int64\(52\), Int64\(67\)\) AS Int32\) AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULLIF ( + 52, + 67 ) AS INTEGER ) AS col1, 86 col1 +---- +52 +86 query I rowsort label-6943 SELECT - MAX ( DISTINCT - 32 ) * - - 72 AS col1 @@ -36533,8 +37048,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - 1558 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- Int64\(\-88\)\), Int64\(\-70\) \* Int64\(86\)\)\) \+ Int64\(96\) \+ CAST\(\(\- CASE \(\- Int64\(68\)\) WHEN Int64\(42\) / sum\(DISTINCT Int64\(92\)\) / count\(Int64\(1\)\) AS count\(\*\) THEN nullif\(Int64\(62\), Int64\(\-60\) \+ \(\- \(\- min\(Int64\(77\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-4\)\) \* Int64\(51\) ELSE Int64\(34\) END\) AS Int32\) AS col0" at position 0 and "Int64\(82\) \* Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-26 +1558 query I rowsort label-6958 SELECT DISTINCT 99 * + - CASE - CASE + 24 WHEN - 58 * + CAST ( - MAX ( 17 ) AS INTEGER ) THEN NULL WHEN + - 84 THEN - 62 + + ( - 86 ) - + - 30 - + COUNT ( * ) * + 29 * + 87 * NULLIF ( 93, - 84 ) * - COUNT ( * ) / - 71 WHEN - - 91 * - - 2 + + - 32 + + 35 + - 74 * + AVG ( ALL 13 ) THEN - 90 * + 3 WHEN 64 / - 42 * - CAST ( 30 AS INTEGER ) + 58 THEN 78 END WHEN + 53 * 62 THEN NULL WHEN + 58 * 93 + 37 THEN COUNT ( * ) - 65 END * 96 @@ -36740,8 +37258,11 @@ SELECT ALL COUNT ( * ) * - ( - 10 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-75\) \- Int64\(\-95\) \- Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col1, - 75 - - 95 - 11 AS col1 +---- +9 +NULL query I rowsort label-6998 SELECT COUNT ( * ) + 21 col0 @@ -37414,8 +37935,11 @@ SELECT DISTINCT + + 53 * ( - MIN ( ( + 97 ) ) ) * - 59 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2548 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* Int64\(26\) AS col1" at position 0 and "Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 98 * + ( + + 26 ) AS col1, - 12 col1 +---- +-12 +2548 query I rowsort label-7124 SELECT ALL + CASE - MIN ( DISTINCT - 91 ) WHEN + 33 - - 69 THEN + + CASE - + 39 WHEN + + 84 / + 84 * - - 25 THEN - - 30 WHEN CASE - 33 WHEN 50 + 30 + 14 THEN + + 33 + 74 + + 90 + + 43 / + COALESCE ( - - 84, - 79 ) * - ( CAST ( NULL AS INTEGER ) ) ELSE NULL END THEN - COUNT ( * ) END END * + + 86 col1 @@ -37466,8 +37990,11 @@ SELECT + COUNT ( * ) + + - 77 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -309741 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(67\)\) \* Int64\(\-69\) \* \(\- Int64\(\-67\)\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( MAX ( ALL + + 67 ) ) * - 69 * - - 67 AS col1, + 76 AS col1 +---- +-309741 +76 query II rowsort label-7134 SELECT + - 55 / + 71, + 76 AS col2 @@ -37529,8 +38056,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col2" at position 0 and "Int64\(\-70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 59 AS col2, - 70 AS col2 +---- +-70 +59 query I rowsort label-7146 SELECT ALL NULLIF ( - - 41, - COUNT ( * ) * 22 + COUNT ( * ) * 48 * - 45 + + + 81 - + - 14 ) * + + 27 * 82 + + 53 AS col1 @@ -37617,8 +38147,11 @@ SELECT + COUNT ( ALL - 43 ) * 5 * + 34 * 21 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-31\), Int64\(\-13\) \* \(\- CASE \(\- Int64\(\-84\)\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN \(\- Int64\(45\)\) \* \(\- \(\- max\(DISTINCT Int64\(54\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(37\) THEN \(\- Int64\(\-16\)\) END\) \- \(\- \(\- Int64\(2\)\)\) \+ Int64\(35\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), \(\- nullif\(Int64\(\-7\), Int64\(\-55\) / Int64\(10\) \* \(\- Int64\(\-49\)\)\)\) \+ Int64\(22\)\) \* \(\- Int64\(48\)\) \* CAST\(NULL AS Int32\) \* Int64\(14\) \+ Int64\(62\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-1 +-31 query I rowsort label-7163 SELECT DISTINCT + - COUNT ( * ) + + 17 AS col0 @@ -38135,8 +38668,11 @@ SELECT + 13 * 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6343 # Datafusion - Expected - -3478 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(\-82\) \* Int64\(\-1\) \- \(\- min\(Int64\(29\)\)\) AS col2" at position 0 and "min\(Int64\(\-19\)\) / Int64\(\-20\) \+ Int64\(74\) \* Int64\(\-47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 77 * ( - 82 ) * - 1 - - MIN ( + 29 ) AS col2, MIN ( + - 19 ) / - 20 + + 74 * + - 47 AS col2 +---- +-3478 +6343 query II rowsort SELECT + + 98, - NULLIF ( + 48, 55 + - 6 ) AS col0 @@ -38189,8 +38725,11 @@ SELECT ALL MIN ( + - 35 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 5632 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(64\), Int64\(\-88\)\) \* Int64\(88\) AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( + 64, + - 88 ) * + ( + 88 ) AS col0, 86 AS col0 +---- +5632 +86 query I rowsort label-7271 SELECT - 16 * + - MIN ( DISTINCT - - 33 ) @@ -38211,8 +38750,12 @@ SELECT DISTINCT + 23 * 69 # Datafusion - Expected - -772138 # Datafusion - Expected - 45 # Datafusion - Expected - 176400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \+ Int64\(50\) \* Int64\(\-36\) \* Int64\(39\) \* Int64\(11\) AS col0" at position 0 and "Int64\(\-5\) \* Int64\(8\) \+ Int64\(17\) \+ Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 62 + 50 * - 36 * + + 39 * 11 AS col0, - 5 * + 8 + + 17 + + ( + 68 ) AS col0, + 25 * + 6 * - - 98 * + 12 AS col2 +---- +-772138 +176400 +45 query I rowsort SELECT - 80 * + - 30 AS col2 @@ -38288,8 +38831,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / Int64\(2\) \* \(\- min\(Int64\(\-77\)\)\) / Int64\(\-53\) / Int64\(25\) \+ Int64\(\-25\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) / 2 * - + MIN ( - 77 ) / - 53 / + 25 + - 25 AS col1, 93 AS col1 +---- +93 +NULL query I rowsort SELECT ( 10 ) * + 91 @@ -38480,8 +39026,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) - - - 48 + 61 + + - 22 AS col1, 86 AS col1 +---- +-8 +86 query I rowsort label-7326 SELECT DISTINCT + COUNT ( * ) * - 59 * 83 AS col0 @@ -39015,8 +39564,11 @@ SELECT ALL - 19 + - 4, - 22 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(96\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CAST ( 96 AS INTEGER ) AS col2, - 19 AS col2 +---- +-19 +-96 query II rowsort label-7430 SELECT ALL 28 + - COUNT ( * ) - + 46, + 97 + + + MAX ( DISTINCT + 67 ) AS col2 @@ -40175,8 +40727,11 @@ SELECT - 2 * + 57 * 36 + 41 AS col2 # 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 "Int64\(49\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 49 AS col0, 8 AS col0 +---- +49 +8 query I rowsort label-7655 SELECT ALL + ( - SUM ( + 89 ) ) @@ -40498,8 +41053,12 @@ SELECT - 93 + + ( 34 ) * - 66 col0 # Datafusion - Expected - 18 # Datafusion - Expected - 0 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT CAST\(NULL AS Int32\)\) AS col1" at position 1 and "Int64\(\-46\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 18 AS col2, + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) col1, - 46 AS col1 +---- +-46 +0 +18 query I rowsort SELECT DISTINCT - COALESCE ( + + 40, 46 * + 71 ) * - + 73 AS col0 @@ -40717,8 +41276,11 @@ SELECT ALL MAX ( ALL - 17 ) + ( + ( - - 13 ) ) AS col2 # 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 col0" at position 0 and "Int64\(61\) \- \(\- \(\- \(\- \(\- count\(Int64\(23\)\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 10 AS col0, 61 - ( - ( - - ( - + COUNT ( ALL 23 ) ) ) ) AS col0 +---- +10 +60 query I rowsort SELECT ALL + NULLIF ( - 84, + 6 ) @@ -40760,8 +41322,11 @@ SELECT + 22 * - 41 + - 78 + - MIN ( ALL 20 ) - - 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - 160 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* Int64\(16\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 10 ) * + 16 AS col0, 70 AS col0 +---- +160 +70 query II rowsort label-7767 SELECT DISTINCT 45 / + COUNT ( * ), 44 AS col0 @@ -41127,8 +41692,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) * + 82 AS col2, + 85 AS col2 +---- +-82 +85 query I rowsort SELECT 30 + + 42 AS col0 @@ -41550,8 +42118,11 @@ SELECT - 22 * 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT ALL - 67 AS col2, + 53 col2 +---- +-67 +53 query II rowsort label-7917 SELECT DISTINCT - + COUNT ( * ), MIN ( DISTINCT - 14 ) col0 @@ -41744,8 +42315,12 @@ SELECT DISTINCT - CAST ( - - COALESCE ( + + 93, 89 ) AS INTEGER ) # Datafusion - Expected - 473 # Datafusion - Expected - -1403 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(\-23\) AS col2" at position 1 and "\(\- count\(Int64\(10\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 43 * + 11, 61 * + ( - 23 ) AS col2, - COUNT ( 10 ) AS col2 +---- +-1 +-1403 +473 query I rowsort label-7954 SELECT ALL - 89 / + NULLIF ( + 75, + COUNT ( * ) - + + CAST ( 20 AS INTEGER ) ) AS col2 @@ -41778,8 +42353,11 @@ SELECT ALL - ( - ( + 26 ) ) * 13 / + 41 + + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col2" at position 0 and "Int64\(29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 77 AS col2, + 29 AS col2 +---- +-77 +29 query I rowsort SELECT 1 + 7 AS col0 @@ -42317,8 +42895,11 @@ SELECT ALL 49 + + 62 col0 # 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\(\-52\) AS col0" at position 0 and "Int64\(22\) \+ Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 52 AS col0, 22 + 32 AS col0 +---- +-52 +54 query I rowsort label-8063 SELECT MAX ( 83 ) + ( COALESCE ( + - 32, 65 ) ) + - 64 @@ -42377,8 +42958,11 @@ SELECT ALL 89 - - COUNT ( * ) * + - 59 + - 23, NULLIF ( + COUNT ( * ), + - 59 ) # 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\(0\) AS col1" at position 0 and "Int64\(2\) \- Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 0 col1, 2 - + 18 AS col1 +---- +-16 +0 query I rowsort label-8074 SELECT ALL 33 * MIN ( CAST ( 20 AS INTEGER ) ) - + 35 AS col2 @@ -42524,8 +43108,11 @@ SELECT DISTINCT 43 * 8 * + 67 # 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 "Int64\(\-61\) \+ \(\- Int64\(16\)\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 61 + - + 16 AS col2, + 21 AS col2 +---- +-77 +21 query I rowsort SELECT ALL + 7 + - - 10 + + 82 AS col1 @@ -42787,8 +43374,11 @@ SELECT + 18 + + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - -240 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col2" at position 0 and "Int64\(80\) \* \(\- Int64\(3\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 AS col2, 80 * - + 3 AS col2 +---- +-240 +98 query I rowsort label-8153 SELECT + 62 * + COUNT ( * ) * + - 78 @@ -42939,8 +43529,11 @@ SELECT DISTINCT + - COUNT ( * ) * + + 65 # 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 "\(\- Int64\(\-48\)\) \+ Int64\(1\) AS col2" at position 0 and "Int64\(\-6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 48 + 1 AS col2, ( - 6 ) AS col2 +---- +-6 +49 query I rowsort SELECT 57 + + ( 15 ) + + 51 AS col0 @@ -43224,8 +43817,11 @@ SELECT + MAX ( DISTINCT + + 52 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 81 col0, + COUNT ( * ) AS col0 +---- +1 +81 query I rowsort SELECT DISTINCT + 83 * + - 39 + - 27 @@ -43500,8 +44096,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) AS col1" at position 0 and "Int64\(\-14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 54 AS col1, - 14 AS col1 +---- +-14 +-54 query II rowsort SELECT 94 AS col1, 29 @@ -44786,8 +45385,11 @@ SELECT ALL + - 6 * - + 67 + + 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \+ CAST\(Int64\(31\) AS Int32\) AS col1" at position 0 and "Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 45 + + CAST ( 31 AS INTEGER ) col1, 77 AS col1 +---- +76 +77 query I rowsort SELECT DISTINCT + - 64 * + 5 @@ -44822,8 +45424,11 @@ SELECT 38 + 35 - - - ( - 90 ) / + 86 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 66 col2, COUNT ( * ) AS col2 +---- +1 +66 query I rowsort SELECT 18 * + - 91 * 70 col1 @@ -45070,8 +45675,11 @@ SELECT DISTINCT - MIN ( 84 ) * - 83 + - 4 + + 0 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 col1" at position 0 and "Int64\(\-58\) / Int64\(38\) \* count\(DISTINCT \(\- Int64\(\-1\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 46 ) AS col1, - 58 / 38 * + COUNT ( DISTINCT - ( - 1 ) ) AS col1 +---- +-1 +46 query I rowsort label-8588 SELECT + SUM ( DISTINCT + 48 ) @@ -45185,8 +45793,11 @@ SELECT + - COUNT ( * ) * 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(\-42\) \+ Int64\(\-24\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(17\) / Int64\(67\) \+ Int64\(\-21\) AS col1" at position 0 and "count\(Int64\(\-2\)\) \+ \(\- sum\(Int64\(89\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + CAST ( NULL AS INTEGER ) + + - 42 + - 24 * + + COUNT ( * ) * + 17 / + 67 + - 21 AS col1, COUNT ( + - 2 ) + ( - + SUM ( 89 ) ) AS col1 +---- +-88 +NULL query I rowsort label-8609 SELECT ALL ( - + COUNT ( * ) ) / + COUNT ( * ) @@ -45361,8 +45972,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col0" at position 0 and "nullif\(Int64\(\-16\), Int64\(\-47\) \+ \(\- Int64\(\-73\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 19 AS col0, NULLIF ( - 16, - 47 + - - 73 ) AS col0 +---- +-16 +-19 query I rowsort label-8643 SELECT NULLIF ( + - CASE AVG ( - + 59 ) WHEN + 14 * - - 7 * - NULLIF ( 20, - 77 * - + 79 / - ( - 55 ) * - 82 + - 54 + + 91 + + 66 * + 72 + - 98 ) * + 91 * + 0 * + COUNT ( * ) THEN NULL WHEN - 95 + + + 45 THEN + 33 + - 25 END, 58 + - ( + COUNT ( * ) ) ) / 21 col0 @@ -45766,8 +46380,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) / Int64\(16\) AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 74 / + 16 AS col1, + 50 AS col1 +---- +-4 +50 query I rowsort label-8721 SELECT 38 * - COUNT ( * ) + MAX ( - 42 ) @@ -45922,8 +46539,11 @@ SELECT 91 * - 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "\(\- max\(Int64\(\-62\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 24 AS col1, - MAX ( - 62 ) AS col1 +---- +24 +62 query I rowsort SELECT ALL 90 * - 0 @@ -46684,8 +47304,11 @@ SELECT 25 * - - 4 # 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 "max\(DISTINCT \(\- Int64\(\-2\)\)\) AS col2" at position 0 and "Int64\(63\) \* \(\- count\(Int64\(6\)\)\) \+ Int64\(35\) \* count\(DISTINCT Int64\(26\)\) \+ \(\- min\(Int64\(35\)\)\) \* Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( DISTINCT - - 2 ) AS col2, 63 * - COUNT ( + + 6 ) + 35 * COUNT ( DISTINCT + 26 ) + - + MIN ( + 35 ) * 1 AS col2 +---- +-63 +2 query II rowsort label-8895 SELECT 3 * - + 41 AS col0, - COUNT ( * ) AS col2 @@ -46751,8 +47374,11 @@ SELECT - - 71 * + 93 + - 63 - - 68 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 171 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* Int64\(3\) AS col0" at position 0 and "\(\- Int64\(46\)\) \- \(\- min\(Int64\(52\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 * + 3 AS col0, ( - + 46 ) - - MIN ( + 52 ) AS col0 +---- +171 +6 query I rowsort label-8907 SELECT CASE + MAX ( + - ( 16 ) ) WHEN 73 THEN - COUNT ( * ) WHEN 28 THEN NULL END * 16 AS col1 @@ -47266,8 +47892,11 @@ 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\(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\. +query II valuesort SELECT COALESCE ( + 17, - + ( - 50 ) * + + 85 + - - COUNT ( * ) ) AS col1, 41 * - 49 + - + 84 - - 18 * + ( + 55 ) AS col1 +---- +-1103 +17 query I rowsort label-9005 SELECT 87 + 29 / 54 AS col1 @@ -48030,8 +48659,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4002 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(87\) AS Int32\) \* Int64\(46\) AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( + 87 AS INTEGER ) * 46 AS col0, 97 AS col0 +---- +4002 +97 query I rowsort SELECT - CASE + 18 WHEN + 3 - - + 42 THEN + + 63 - - 70 * - 26 * 98 WHEN + 15 THEN + 98 ELSE NULL END + + 13 AS col1 @@ -48735,8 +49367,11 @@ SELECT ALL + 70 + - + 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "Int64\(\-17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 AS col1, - 17 AS col1 +---- +-17 +9 query I rowsort SELECT DISTINCT + 55 + 40 AS col0 @@ -49499,8 +50134,11 @@ SELECT 67 col0, 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52890 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(41\) \* Int64\(43\) AS col1" at position 0 and "\(\- sum\(DISTINCT Int64\(\-87\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 30 * 41 * + 43 AS col1, - SUM ( DISTINCT - 87 ) AS col1 +---- +52890 +87 query I rowsort SELECT ALL - 5 - 89 AS col0 @@ -49691,8 +50329,11 @@ SELECT - CAST ( - 88 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 73 AS col2, + 11 AS col2 +---- +11 +73 query I rowsort label-9475 SELECT - MAX ( DISTINCT 13 ) @@ -50191,8 +50832,11 @@ SELECT + 84 * 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, + 22 AS col1 +---- +1 +22 query I rowsort label-9572 SELECT ALL 32 * - COUNT ( * ) AS col2 @@ -50682,8 +51326,11 @@ SELECT ALL 71 * 46 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + COUNT ( * ) ) AS col2, - 77 AS col2 +---- +-77 +1 query I rowsort SELECT + + 37 * + + ( - 2 ) @@ -50698,8 +51345,11 @@ SELECT ALL COUNT ( + - 34 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 + + ( COUNT ( * ) ) AS col2, 59 AS col2 +---- +17 +59 query I rowsort label-9670 SELECT ALL - CAST ( - 77 AS INTEGER ) @@ -51573,8 +52223,11 @@ SELECT 89 * - - 27 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT ALL - 78 AS col1, 17 AS col1 +---- +-78 +17 query I rowsort label-9840 SELECT DISTINCT - COUNT ( DISTINCT 17 ) AS col0 diff --git a/data/sqlite/random/expr/slt_good_87.slt b/data/sqlite/random/expr/slt_good_87.slt index 6381b51..98d4d92 100644 --- a/data/sqlite/random/expr/slt_good_87.slt +++ b/data/sqlite/random/expr/slt_good_87.slt @@ -189,8 +189,11 @@ SELECT DISTINCT 89 + 16 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- Int64\(\-41\)\) \+ Int64\(80\) \+ Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col1, - ( - 41 ) + 80 + + - 86 AS col1 +---- +1 +35 query I rowsort SELECT DISTINCT + 48 * + - 14 AS col0 @@ -563,8 +566,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(41\)\) AS col0" at position 0 and "Int64\(11\) \+ Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 41 AS col0, + 11 + 70 AS col0 +---- +-41 +81 query I rowsort SELECT DISTINCT - 51 - 17 AS col1 @@ -1335,8 +1341,11 @@ SELECT MIN ( - 51 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-76\)\)\) AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - SUM ( ALL - 76 ) AS col2, 65 AS col2 +---- +65 +76 query I rowsort label-253 SELECT ALL - 11 + + - COUNT ( * ) AS col2 @@ -1392,8 +1401,11 @@ SELECT DISTINCT - + SUM ( DISTINCT 63 ) + - 22 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CASE WHEN Int64\(\-15\) IS NOT NULL THEN Int64\(6\) END\)\) AS col1" at position 0 and "Int64\(76\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - + CASE WHEN - 15 IS NOT NULL THEN + 6 END ) AS col1, 76 AS col1 +---- +6 +76 query I rowsort label-264 SELECT DISTINCT + 62 * - - COUNT ( * ) @@ -2118,8 +2130,11 @@ SELECT DISTINCT COUNT ( * ) - - + COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 62 AS col2, COUNT ( * ) AS col2 +---- +1 +62 query I rowsort SELECT ALL - + 3 * - 21 @@ -2889,8 +2904,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col1" at position 0 and "Int64\(\-95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 AS col1, - 95 AS col1 +---- +-95 +52 query I rowsort SELECT ( - + 81 ) @@ -2950,8 +2968,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col1" at position 0 and "Int64\(18\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 30 AS col1, + 18 * + COUNT ( * ) AS col1 +---- +-30 +18 query I rowsort label-564 SELECT DISTINCT ( - SUM ( + 54 ) ) * 60 AS col0 @@ -3365,8 +3386,11 @@ SELECT - - 15 * + COUNT ( * ) + 61 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, - COUNT ( * ) AS col2 +---- +-1 +1 query I rowsort label-644 SELECT - ( + CAST ( NULL AS INTEGER ) ) col0 @@ -3591,8 +3615,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 32 AS col2, COUNT ( * ) col2 +---- +-32 +1 query I rowsort SELECT 65 * - + 91 AS col1 @@ -3813,8 +3840,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col0" at position 0 and "Int64\(\-11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 65 AS col0, - 11 AS col0 +---- +-11 +65 query I rowsort SELECT DISTINCT - ( 40 ) @@ -4385,8 +4415,11 @@ SELECT 77 * - + 43 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ \(\- Int64\(53\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 + - + 53 AS col0, + COUNT ( * ) col0 +---- +-21 +1 query II rowsort SELECT - + 6 - 90 AS col2, + 3 * - 1 AS col0 @@ -4520,8 +4553,11 @@ SELECT + 24 * - - 32 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(50\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MAX ( ALL + 50 ) + + COUNT ( * ) col2, + 64 col2 +---- +51 +64 query I rowsort SELECT 85 * - 84 - + 67 + 54 @@ -4825,8 +4861,11 @@ SELECT - 68 * - - 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 "count\(Int64\(\-96\)\) AS col2" at position 0 and "\(\- \(\- Int64\(\-42\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( ALL + - 96 ) AS col2, - ( - - 42 ) AS col2 +---- +-42 +1 query I rowsort SELECT + ( 22 ) AS col2 @@ -5739,8 +5778,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - COUNT ( * ) ) AS col0, 66 AS col0 +---- +-1 +66 query I rowsort SELECT DISTINCT + - 79 AS col0 @@ -5845,8 +5887,12 @@ SELECT ALL + MIN ( ALL + 95 ) # Datafusion - Expected - -2570 # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-37\)\) \* \(\- max\(Int64\(\-67\)\)\) \+ Int64\(\-91\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL SUM ( - 37 ) * - MAX ( ALL - 67 ) + - 91 col2, - ( + CAST ( NULL AS INTEGER ) ) AS col2, COUNT ( * ) / - COUNT ( * ) AS col0 +---- +-1 +-2570 +NULL query I rowsort SELECT + ( + + 94 ) @@ -6072,8 +6118,11 @@ SELECT ALL + 59 * - 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "coalesce\(Int64\(\-89\), CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 42 AS col2, COALESCE ( - 89, ( CAST ( NULL AS INTEGER ) ) ) AS col2 +---- +-89 +42 query I rowsort SELECT - ( - + 82 ) AS col1 @@ -6732,8 +6781,11 @@ SELECT ALL + 13 / + + 96 AS col0 # 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 "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 II valuesort SELECT 3 AS col2, + 28 AS col2 +---- +28 +3 query I rowsort label-1294 SELECT COUNT ( * ) + + + 97 AS col2 @@ -7163,8 +7215,11 @@ SELECT DISTINCT - 1 * + 92 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col2, COUNT ( * ) AS col2 +---- +1 +1 query I rowsort SELECT + 1 + - 70 AS col1 @@ -7977,8 +8032,11 @@ SELECT + + 15 / - 58 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 66 AS col1, COUNT ( * ) AS col1 +---- +1 +66 query I rowsort label-1539 SELECT COUNT ( - + ( 96 ) ) AS col1 @@ -8625,8 +8683,11 @@ SELECT 75 + - CAST ( + 41 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- Int64\(\-75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col1, + ( - - 75 ) AS col1 +---- +75 +NULL query I rowsort label-1665 SELECT - - ( NULLIF ( + 82, + - CAST ( NULL AS INTEGER ) ) ) AS col1 @@ -8896,8 +8957,11 @@ SELECT + 55 + - 13 + - - 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) col2, + COUNT ( * ) col2 +---- +-1 +1 query I rowsort SELECT ALL - ( + 0 ) AS col0 @@ -9303,8 +9367,11 @@ SELECT - 91 + 48 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2990 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(46\)\) \* Int64\(\-65\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 46 * - 65 col2, COUNT ( * ) AS col2 +---- +1 +2990 query I rowsort label-1796 SELECT - COUNT ( DISTINCT + - 65 ) AS col2 @@ -9581,8 +9648,11 @@ SELECT DISTINCT - 44 * + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col1" at position 0 and "Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 62 AS col1, 34 AS col1 +---- +-62 +34 query I rowsort SELECT ALL + 92 * + + 14 @@ -9607,8 +9677,11 @@ SELECT ALL + - 97 + + COUNT ( * ) - + - COUNT ( * ) * COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 15 AS col0, 30 AS col0 +---- +-15 +30 query I rowsort SELECT ALL + 23 * + 68 AS col0 @@ -9722,8 +9795,11 @@ SELECT + + COUNT ( * ) - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col2, + 86 col2 +---- +1 +86 query I rowsort SELECT ALL + 29 + - 94 col1 @@ -10928,8 +11004,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 0 AS col1, + COUNT ( * ) AS col1 +---- +0 +1 query I rowsort label-2114 SELECT ALL - CAST ( + SUM ( DISTINCT + 44 ) AS INTEGER ) + - 23 + - CAST ( NULL AS INTEGER ) AS col0 @@ -11224,8 +11303,11 @@ SELECT DISTINCT - ( 77 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "\(\- Int64\(\-72\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 AS col1, - ( + - 72 ) AS col1 +---- +22 +72 query I rowsort label-2172 SELECT CAST ( + - 98 AS INTEGER ) @@ -11606,8 +11688,11 @@ SELECT - ( 35 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - COUNT ( * ) AS col1, + COUNT ( * ) AS col1 +---- +-1 +1 query I rowsort label-2247 SELECT DISTINCT + 36 * - + MIN ( - - 44 ) AS col0 @@ -11658,8 +11743,11 @@ SELECT - 88 AS col2, - COUNT ( * ) + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) col0, CAST ( NULL AS INTEGER ) AS col0 +---- +-1 +NULL query I rowsort SELECT DISTINCT + 55 * - - 76 @@ -11874,8 +11962,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, 18 * + + 4 AS col2 +---- +-1 +72 query I rowsort SELECT 94 * - - 59 AS col1 @@ -13080,8 +13171,11 @@ SELECT ALL SUM ( - 90 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 54 col1, CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 +---- +-1 +54 query I rowsort label-2533 SELECT + - COUNT ( DISTINCT + - 31 ) + - + COUNT ( * ) @@ -13418,8 +13512,11 @@ SELECT ALL + + 29 * COUNT ( * ) * - + ( ( 63 ) ) + 53 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 74 col1, 81 col1 +---- +-74 +81 query I rowsort label-2599 SELECT ALL - MIN ( + 65 ) @@ -13656,8 +13753,11 @@ SELECT 90 * - COUNT ( * ) + - COUNT ( * ) # 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 "min\(DISTINCT Int64\(56\)\) AS col2" at position 0 and "Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( DISTINCT + + 56 ) AS col2, + 76 AS col2 +---- +56 +76 query I rowsort SELECT ALL + 25 + 4 AS col1 @@ -14415,8 +14515,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, 54 AS col2 +---- +-1 +54 query I rowsort label-2791 SELECT SUM ( + - 72 ) AS col0 @@ -14676,8 +14779,11 @@ SELECT DISTINCT + 50 * + - 35 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 2 AS col1, 49 AS col1 +---- +-2 +49 query I rowsort SELECT 68 * + 9 * 73 @@ -14712,8 +14818,11 @@ SELECT ALL + 2 * 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 63 AS col1, COUNT ( * ) AS col1 +---- +1 +63 query I rowsort SELECT DISTINCT - - 52 AS col1 @@ -15099,8 +15208,11 @@ SELECT DISTINCT 1 AS col2, - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "CAST\(CAST\(NULL AS Int32\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 59 AS col1, CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 +---- +59 +NULL query I rowsort SELECT ALL - ( - - 89 ) AS col0 @@ -15292,8 +15404,11 @@ SELECT COUNT ( * ) AS col0, 26 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(1\) \* Int64\(\-62\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, + 1 * - 62 * - - COUNT ( * ) AS col0 +---- +-62 +1 query I rowsort label-2960 SELECT DISTINCT + CAST ( + 18 AS INTEGER ) col1 @@ -15567,8 +15682,11 @@ SELECT - - 18 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(10\)\) \- Int64\(13\) AS col0" at position 0 and "Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 10 - + 13 AS col0, 43 AS col0 +---- +-23 +43 query I rowsort SELECT ( + 11 ) - + 10 @@ -16440,8 +16558,11 @@ SELECT DISTINCT + COUNT ( * ) * - NULLIF ( + 53, - + 41 ) * - + 20 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(\-33\)\)\) / Int64\(\-1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col2, - COUNT ( - 33 ) / - 1 AS col2 +---- +1 +1 query I rowsort label-3182 SELECT ALL + 60 + + COUNT ( * ) AS col1 @@ -17429,8 +17550,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- \(\- coalesce\(Int64\(\-92\), Int64\(\-5\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - - COALESCE ( - 92, - 5 * - - COUNT ( * ) ) ) AS col0, COUNT ( * ) AS col0 +---- +1 +92 query I rowsort SELECT - - ( + - 0 ) @@ -17491,8 +17615,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 83 AS col2, - COUNT ( * ) AS col2 +---- +-1 +83 query I rowsort label-3387 SELECT - MAX ( 2 ) @@ -18243,8 +18370,11 @@ SELECT ALL 84 * + + 61 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 "count\(Int64\(58\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 AS col0, COUNT ( ALL + + 58 ) AS col0 +---- +1 +80 query I rowsort label-3533 SELECT DISTINCT 69 + - - COUNT ( * ) AS col1 @@ -18794,8 +18924,11 @@ SELECT ALL - - ( - 11 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 79 AS col1, + COUNT ( * ) AS col1 +---- +1 +79 query I rowsort label-3639 SELECT ALL MAX ( + 91 ) - - COUNT ( * ) AS col0 @@ -19034,8 +19167,11 @@ SELECT ALL 29 * - - 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 92 AS col0, + COUNT ( * ) AS col0 +---- +1 +92 query I rowsort SELECT ALL ( - - 94 ) AS col1 @@ -19396,8 +19532,11 @@ SELECT 41 * + + COUNT ( * ) * - - 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 28 col2, ( COUNT ( * ) ) AS col2 +---- +-28 +1 query I rowsort SELECT DISTINCT + 61 - + 70 @@ -20895,8 +21034,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 0 and "Int64\(79\) \+ Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 58 AS col1, 79 + - 70 AS col1 +---- +58 +9 query II rowsort label-4045 SELECT + 22 * + + COUNT ( * ), - COUNT ( * ) * + 52 AS col0 @@ -21749,8 +21891,11 @@ SELECT ALL - 75 - - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col2, + CAST ( NULL AS INTEGER ) AS col2 +---- +1 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -21948,8 +22093,11 @@ SELECT ALL - 48 + ( - 18 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 54 / + COUNT ( * ) AS col2, - COUNT ( * ) col2 +---- +-1 +54 query I rowsort SELECT + 72 + + - 39 + + 90 @@ -22097,8 +22245,11 @@ SELECT DISTINCT + - 28 + 19 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \+ Int64\(\-29\) AS col1" at position 0 and "Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 + + ( - 29 ) AS col1, - 82 AS col1 +---- +-82 +70 query I rowsort label-4278 SELECT 44 - - COUNT ( * ) AS col1 @@ -24166,8 +24317,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ), + COUNT ( * ) +---- +1 +1 query I rowsort SELECT + 92 - + - 89 @@ -24594,8 +24748,11 @@ SELECT - ( + ( - 4 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col1" at position 0 and "sum\(DISTINCT Int64\(34\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 50 AS col1, SUM ( DISTINCT 34 ) col1 +---- +34 +50 query I rowsort label-4763 SELECT - 42 * + COUNT ( * ) AS col1 @@ -24605,8 +24762,11 @@ SELECT - 42 * + COUNT ( * ) 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 col1" at position 0 and "Int64\(70\) \- Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 col1, 70 - 13 AS col1 +---- +57 +69 query I rowsort label-4765 SELECT + CAST ( + 62 AS INTEGER ) @@ -25789,8 +25949,11 @@ SELECT CAST ( - 88 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 53 + + COUNT ( * ) AS col0, ( 4 ) col0 +---- +-52 +4 query I rowsort label-4995 SELECT DISTINCT 13 / + - 64 col2 @@ -26180,8 +26343,11 @@ SELECT ALL - 13 / - COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 1 AS col2 +---- +1 +1 query I rowsort label-5070 SELECT DISTINCT - CAST ( + 10 AS INTEGER ) @@ -26440,8 +26606,11 @@ SELECT 12 * + 26 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col0" at position 0 and "Int64\(\-6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 AS col0, - 6 AS col0 +---- +-20 +-6 query I rowsort label-5120 SELECT - 46 * NULLIF ( - MIN ( DISTINCT + - 84 ), - ( - + 0 ) ) @@ -26959,8 +27128,11 @@ SELECT DISTINCT 84 col1, 75 # 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 "Int64\(\-3\) AS col2" at position 0 and "Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 AS col2, 39 AS col2 +---- +-3 +39 query I rowsort label-5220 SELECT ALL COUNT ( ALL 58 ) AS col0 @@ -27030,8 +27202,11 @@ SELECT DISTINCT COUNT ( + + 76 ) * + 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT DISTINCT + 41 col0, 24 AS col0 +---- +24 +41 query I rowsort label-5234 SELECT DISTINCT - - MAX ( 82 ) AS col1 @@ -27227,8 +27402,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * - + ( - COUNT ( * ) ) / - + COUNT ( * ) AS col2, + 3 + + + 57 AS col2 +---- +-1 +60 query I rowsort SELECT + 25 * 76 @@ -27378,8 +27556,11 @@ SELECT - ( 8 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 72 AS col0, COUNT ( * ) * COUNT ( * ) AS col0 +---- +1 +72 query II rowsort SELECT 9 AS col1, + 85 @@ -27395,8 +27576,11 @@ SELECT - COUNT ( * ) * - 21 * - - 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "Int64\(\-38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 AS col1, - 38 AS col1 +---- +-38 +26 query I rowsort label-5304 SELECT + + COUNT ( DISTINCT 94 ) AS col0 @@ -27936,8 +28120,11 @@ SELECT ALL + 43 + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 / COUNT ( * ) col2, 69 col2 +---- +-82 +69 query I rowsort label-5409 SELECT + COUNT ( * ) - 17 col1 @@ -28126,8 +28313,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 3600 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(75\) \* Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 74 * + + COUNT ( * ) AS col0, + 75 * 48 AS col0 +---- +3600 +74 query I rowsort label-5445 SELECT DISTINCT + SUM ( + 20 ) AS col1 @@ -28198,8 +28388,11 @@ SELECT - MIN ( ALL - 96 ) AS 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 col0" at position 0 and "Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 86 AS col0, 3 col0 +---- +3 +86 query II rowsort SELECT - 47 AS col0, 96 @@ -28641,8 +28834,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + + COUNT ( * ) ) AS col2, - 2 AS col2 +---- +-1 +-2 query I rowsort label-5545 SELECT ALL ( - CAST ( - 73 AS INTEGER ) ) @@ -28894,8 +29090,11 @@ SELECT DISTINCT + + 55 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col2, 34 AS col2 +---- +34 +NULL query I rowsort label-5594 SELECT DISTINCT + COUNT ( * ) + + 99 AS col2 @@ -29383,8 +29582,11 @@ SELECT ALL COALESCE ( 26, + 90, - - ( + - 67 ) ) AS col2 # 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 col2" at position 0 and "Int64\(75\) \- Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 35 AS col2, 75 - 78 AS col2 +---- +-3 +-35 query I rowsort SELECT ALL - ( - 11 ) + + 30 @@ -29434,8 +29636,11 @@ SELECT + - 85 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 768 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* min\(Int64\(48\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( 16 ) * MIN ( ALL 48 ) AS col1, COUNT ( * ) col1 +---- +1 +768 query I rowsort SELECT - 52 * - 93 AS col2 @@ -29617,8 +29822,11 @@ SELECT 98 - + 20 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\(\-52\) AS col2" at position 0 and "Int64\(56\) / Int64\(\-48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 52 AS col2, + 56 / - 48 AS col2 +---- +-1 +-52 query I rowsort SELECT + ( - 45 ) AS col0 @@ -29949,8 +30157,11 @@ SELECT ALL - NULLIF ( - 67, + SUM ( DISTINCT - 79 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\)" at position 0 and "Int64\(\-96\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 96, - 96 +---- +-96 +-96 query I rowsort label-5800 SELECT + + 65 / + 76 @@ -30233,8 +30444,11 @@ SELECT DISTINCT - - 41 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(\-15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - AVG ( + CAST ( NULL AS INTEGER ) ) AS col2, - 15 AS col2 +---- +-15 +NULL query I rowsort label-5854 SELECT 50 + + + COUNT ( * ) @@ -30743,8 +30957,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 col2, - COUNT ( * ) AS col2 +---- +-1 +81 query III rowsort label-5953 SELECT ALL MAX ( - 59 ) + + ( 97 ) AS col0, + 57, - 80 AS col1 @@ -31406,8 +31623,11 @@ SELECT DISTINCT - 28 AS col1, + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 69 col0, + 44 AS col0 +---- +44 +69 query I rowsort label-6080 SELECT - COUNT ( * ) * 12 + + COUNT ( * ) AS col0 @@ -31556,8 +31776,11 @@ SELECT ( + - 47 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2380 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* Int64\(34\) AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 * 34 AS col2, 62 AS col2 +---- +2380 +62 query I rowsort label-6109 SELECT ALL COUNT ( * ) + 62 - + 26 @@ -32229,8 +32452,11 @@ SELECT ALL + ( 0 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) \- Int64\(\-53\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 75 - - 53 AS col1, + 55 AS col1 +---- +-22 +55 query I rowsort label-6240 SELECT ALL - 42 * - COUNT ( * ) col1 @@ -32896,8 +33122,11 @@ SELECT 65 * 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 0 and "Int64\(50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 11 AS col0, 50 AS col0 +---- +11 +50 query I rowsort label-6370 SELECT ALL COUNT ( - - 10 ) @@ -33455,8 +33684,11 @@ SELECT DISTINCT + + COUNT ( * ) AS col0, 8 / - CAST ( + - SUM ( 60 ) AS INTEGER # 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 "\(\- CAST\(NULL AS Float64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + 71 AS col1, - CAST ( NULL AS FLOAT8 ) AS col1 +---- +71 +NULL query I rowsort label-6477 SELECT ALL + 98 - + COUNT ( * ) @@ -33563,8 +33795,11 @@ SELECT NULLIF ( - - 31, 64 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "max\(Int64\(\-3\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col2, + MAX ( ALL - 3 ) col2 +---- +-3 +1 query I rowsort SELECT ( + - 31 ) + + 69 @@ -34633,8 +34868,11 @@ SELECT 93 / 59 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col1" at position 0 and "Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 AS col1, + 18 col1 +---- +18 +35 query I rowsort SELECT ALL 88 - 47 AS col1 @@ -34767,8 +35005,11 @@ SELECT - - MAX ( DISTINCT + - 5 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 AS col2, - CAST ( NULL AS INTEGER ) AS col2 +---- +94 +NULL query I rowsort SELECT ALL ( + 22 ) AS col2 @@ -35027,8 +35268,11 @@ SELECT + - 20 + 96 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, + 41 col0 +---- +1 +41 query I rowsort label-6782 SELECT DISTINCT + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + - COUNT ( * ) * ( + COUNT ( * ) ) - - + 33 * - ( + - 15 ) @@ -35411,8 +35655,11 @@ SELECT ALL - + 31 AS col2, 94 + 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 62 AS col1, + 96 AS col1 +---- +-62 +96 query I rowsort label-6857 SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + MAX ( ALL - 71 ) @@ -35512,8 +35759,11 @@ SELECT ALL + 66 + - ( + COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 59 AS col2, + ( + COUNT ( * ) ) AS col2 +---- +-59 +1 query II rowsort SELECT - 73 AS col2, 37 @@ -35840,8 +36090,11 @@ SELECT 79 / 39 * + 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col0" at position 0 and "min\(Int64\(46\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 24 AS col0, + MIN ( + 46 ) AS col0 +---- +-24 +46 query I rowsort label-6940 SELECT ALL 7 / - 19 AS col0 @@ -36832,8 +37085,11 @@ SELECT DISTINCT - 90 * 52 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col0, + 10 AS col0 +---- +10 +NULL query I rowsort SELECT ALL + ( + + 58 ) @@ -36956,8 +37212,11 @@ SELECT DISTINCT ( - 88 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 66 + ( CAST ( NULL AS INTEGER ) ) col2, COUNT ( * ) AS col2 +---- +1 +NULL query I rowsort label-7157 SELECT - CAST ( + 5 AS INTEGER ) AS col1 @@ -37698,8 +37957,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 83 ) * - 45 * - 20 * + ( + - 68 ) AS col1, COUNT ( * ) * + 45 AS col1 +---- +-5079600 +45 query I rowsort SELECT DISTINCT - 3 + 87 @@ -37928,8 +38190,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, 98 AS col2 +---- +-1 +98 query I rowsort label-7347 SELECT 66 / 7 @@ -38087,8 +38352,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) - COUNT ( * ) + 41 * 8 AS col1, - 48 AS col1 +---- +-48 +328 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -38308,8 +38576,11 @@ SELECT DISTINCT + - 92 - 79 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 25 / + + COUNT ( * ) AS col0, COUNT ( * ) AS col0 +---- +1 +25 query II rowsort label-7419 SELECT ALL - MAX ( - - 41 ), - 5 AS col2 @@ -38683,8 +38954,11 @@ SELECT + 95 / + 61 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 3288 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 0 and "Int64\(58\) \* Int64\(54\) \+ \(\- Int64\(\-80\)\) \+ Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 AS col0, 58 * + + 54 + - ( - 80 ) + + 76 AS col0 +---- +28 +3288 query I rowsort SELECT - 62 + 68 AS col2 @@ -38979,8 +39253,11 @@ SELECT MAX ( 88 ) + - 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col0" at position 0 and "Int64\(\-92\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(DISTINCT Int64\(\-27\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 66 AS col0, - 92 * + COUNT ( * ) + - COUNT ( DISTINCT - 27 ) * + COUNT ( * ) AS col0 +---- +-66 +-93 query I rowsort label-7550 SELECT + - MAX ( ALL 20 ) @@ -39080,8 +39357,11 @@ SELECT ALL 13 * + - 41 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 col1" at position 0 and "count\(Int64\(\-36\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 29 AS col1, COUNT ( + - 36 ) AS col1 +---- +1 +29 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -39396,8 +39676,11 @@ SELECT - 12 + + ( + 86 ) * 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 83 AS col2, + 46 AS col2 +---- +46 +83 query I rowsort label-7631 SELECT + COUNT ( * ) + - 81 AS col2 @@ -39600,8 +39883,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * - - 69 AS col1, 36 AS col1 +---- +36 +69 query I rowsort SELECT DISTINCT - 92 + + 82 AS col1 @@ -40160,8 +40446,11 @@ SELECT - + MIN ( 98 ) * - SUM ( ALL + + 67 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 +---- +1 +NULL query I rowsort SELECT + ( - - 54 ) @@ -40316,8 +40605,11 @@ SELECT + CAST ( 12 AS INTEGER ) * - 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 5429 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col2" at position 0 and "Int64\(\-89\) \* Int64\(\-61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 9 AS col2, - 89 * - 61 AS col2 +---- +-9 +5429 query I rowsort SELECT - 29 - - 10 + - 39 @@ -41662,8 +41954,11 @@ SELECT COUNT ( 61 ) * + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 95 AS col2, 23 col2 +---- +-95 +23 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -41712,8 +42007,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT CAST ( NULL AS FLOAT8 ) AS col0, + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 +---- +NULL +NULL query I rowsort label-8078 SELECT DISTINCT + MAX ( ALL - 72 ) @@ -43640,8 +43938,11 @@ SELECT DISTINCT - ( + - 55 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, - 95 AS col1 +---- +-95 +1 query I rowsort SELECT - ( 64 ) @@ -45205,8 +45506,11 @@ SELECT ALL 70 AS col0, - 45 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\)" at position 0 and "Int64\(83\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 83, 83 +---- +83 +83 query I rowsort label-8759 SELECT DISTINCT + + COUNT ( * ) - 88 @@ -45448,8 +45752,11 @@ SELECT CAST ( 10 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 AS col0, + CAST ( NULL AS INTEGER ) AS col0 +---- +32 +NULL query I rowsort label-8806 SELECT DISTINCT - COUNT ( ALL - - CAST ( NULL AS FLOAT8 ) ) AS col2 @@ -47124,8 +47431,11 @@ SELECT ALL 22 / - 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "Int64\(24\) \* \(\- Int64\(2\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 53 col1, + 24 * ( - + 2 ) AS col1 +---- +-48 +53 query II rowsort label-9132 SELECT DISTINCT - CAST ( NULL AS INTEGER ) col2, 24 col1 @@ -47191,8 +47501,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COALESCE ( + ( + - 84 ), + + 67 * COUNT ( * ) ) AS col0, 84 AS col0 +---- +-84 +84 query I rowsort SELECT ALL + ( + + 64 ) AS col2 @@ -47679,14 +47992,20 @@ SELECT 40 - - 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 col2, + 60 AS col2 +---- +60 +75 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - -3465 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col1" at position 0 and "Int64\(\-99\) \* Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 14 AS col1, - 99 * 35 AS col1 +---- +-14 +-3465 query I rowsort SELECT 50 - + 74 + 42 * + 28 @@ -47933,8 +48252,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 169 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-13\)\) \* Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) AS col0, COUNT ( * ) * - - 13 * 13 AS col0 +---- +-1 +169 query I rowsort SELECT + - 14 * 98 AS col2 @@ -48036,8 +48358,11 @@ SELECT ALL + 51 + + 92 + NULLIF ( 74, - SUM ( ALL - 89 ) ) * 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -1670 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "Int64\(77\) \* Int64\(\-22\) \+ Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 AS col0, 77 * + - 22 + + 24 AS col0 +---- +-1670 +0 query I rowsort label-9309 SELECT ALL - 88 + - SUM ( CAST ( NULL AS INTEGER ) ) AS col2 @@ -48479,8 +48804,11 @@ SELECT + MAX ( DISTINCT 76 ) * + COUNT ( * ) + - 73 - 43 * - 41 * 59 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 col2" at position 0 and "count\(Int64\(33\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + ( - + 16 ) AS col2, COUNT ( ALL 33 ) AS col2 +---- +-16 +1 query I rowsort label-9394 SELECT ALL SUM ( ALL - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) + + - 14 + + 95 * - - 56 / + - 47 AS col1 @@ -48510,8 +48838,11 @@ 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\(1\)\) AS count\(\*\)\), Int64\(25\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 col2, NULLIF ( - COUNT ( * ), 25 ) AS col2 +---- +-1 +0 query I rowsort label-9400 SELECT - CASE - MIN ( DISTINCT + 65 ) WHEN - CASE 56 WHEN ( + 35 ) / AVG ( ALL ( + 53 ) ) + 82 * 58 + COUNT ( * ) THEN NULL ELSE 30 END THEN NULL WHEN 6 / + MAX ( DISTINCT - 94 * - 92 ) + 24 / 47 THEN CAST ( NULL AS INTEGER ) ELSE 35 END * - 16 @@ -48841,8 +49172,11 @@ SELECT ALL - 75 / + COALESCE ( - ( COUNT ( * ) ), - 99 + - + 44 * + 72 * + - 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(77\) AS col0" at position 0 and "\(\- CASE Int64\(\-59\) WHEN Int64\(81\) THEN \(\- Int64\(\-47\)\) \+ coalesce\(Int64\(76\), Int64\(\-97\)\) WHEN Int64\(\-3\) THEN CAST\(Int64\(92\) AS Int32\) \+ Int64\(59\) WHEN Int64\(61\) THEN NULL END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1 +NULL query I rowsort SELECT ALL 71 * 27 @@ -49242,8 +49576,11 @@ SELECT ALL - 40 * 98 * + - 46 * - 88 * + + NULLIF ( - COUNT ( * ), + 71 - - CAST # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( 51 ) AS col1, CAST ( NULL AS INTEGER ) col1 +---- +51 +NULL query I rowsort SELECT DISTINCT - 27 * - 52 - - ( + 36 ) @@ -49996,8 +50333,11 @@ SELECT DISTINCT ( 69 ) AS col2, 78 + 52 + 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- Int64\(64\)\)\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( ALL - + 64 ) AS col2, 10 AS col2 +---- +-64 +10 query II rowsort SELECT 21 AS col1, ( - 56 ) @@ -50109,8 +50449,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "Int64\(\-9\) \+ Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 AS col2, - 9 + 48 AS col2 +---- +39 +55 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -50135,8 +50478,11 @@ SELECT + 44 AS col1, + 17 * + 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col2" at position 0 and "nullif\(avg\(\(\- CAST\(NULL AS Int32\)\)\), Int64\(90\)\) / Int64\(\-80\) \- Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 98 AS col2, + NULLIF ( AVG ( ALL - CAST ( NULL AS INTEGER ) ), + 90 ) / - 80 - 96 AS col2 +---- +98 +NULL query I rowsort SELECT DISTINCT 47 * + + 10 * + 46 @@ -50146,8 +50492,11 @@ SELECT DISTINCT 47 * + + 10 * + 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col0" at position 0 and "Int64\(\-72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 39 AS col0, - 72 AS col0 +---- +-39 +-72 query II rowsort label-9710 SELECT COUNT ( * ) + + COUNT ( * ), COALESCE ( 52, - ( + 16 ), 22 ) * - 57 + 91 AS col1 @@ -50304,8 +50653,11 @@ SELECT ALL - SUM ( DISTINCT + 33 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 189 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-89\), Int64\(49\)\) / \(\- Int64\(92\)\) AS col1" at position 0 and "Int64\(63\) \* Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( - 89, 49 ) / - + 92 col1, + 63 * + 3 AS col1 +---- +0 +189 query I rowsort label-9740 SELECT ALL + COUNT ( * ) / + + 55 / + 25 @@ -50850,8 +51202,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 2541 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \* Int64\(\-48\) AS col2" at position 0 and "Int64\(\-77\) \* Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 1 * - 48 AS col2, - 77 * - 33 AS col2 +---- +-48 +2541 query I rowsort label-9845 SELECT 73 - - - MAX ( + - 71 ) + 4 * 74 @@ -50918,8 +51273,11 @@ SELECT DISTINCT - 59, 8 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 6982 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "Int64\(68\) \* \(\- \(\- max\(Int64\(59\)\)\)\) \+ Int64\(53\) \* Int64\(57\) \+ \(\- Int64\(51\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 col1, 68 * - - MAX ( ALL 59 ) + + 53 * + + 57 + - + ( 51 ) AS col1 +---- +6982 +99 query I rowsort SELECT 1 * 73 col0 @@ -50934,8 +51292,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ coalesce\(Int64\(90\), Int64\(1\) \+ \(\- sum\(Int64\(\-53\)\)\) \+ Int64\(76\)\) / Int64\(\-85\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 + COALESCE ( + 90, + 1 + - SUM ( + ( - 53 ) ) + 76 ) / + - 85 AS col0, + CAST ( NULL AS INTEGER ) AS col0 +---- +55 +NULL query I rowsort SELECT - ( + ( + - 7 ) ) AS col0 @@ -50990,8 +51351,11 @@ SELECT + 13 - - 87 # 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 "\(\- nullif\(Int64\(87\), Int64\(63\)\)\) / Int64\(78\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( 87, 63 ) / + 78 AS col1, 27 AS col1 +---- +-1 +27 query II rowsort SELECT - 47 AS col0, - 51 AS col1 @@ -51167,8 +51531,11 @@ SELECT + 36 + - 52 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* CASE Int64\(83\) WHEN Int64\(89\) \+ Int64\(\-7\) \+ \(\- Int64\(23\)\) \+ CAST\(Int64\(10\) AS Int32\) \+ Int64\(37\) \* Int64\(53\) \* Int64\(\-15\) THEN Int64\(3\) \+ \(\- CAST\(NULL AS Int32\)\) \- Int64\(77\) WHEN Int64\(\-16\) \+ \(\- Int64\(38\)\) THEN NULL END AS col0" at position 0 and "CASE \(\- \(\- avg\(DISTINCT Int64\(57\)\)\)\) WHEN Int64\(88\) \+ Int64\(14\) THEN NULL WHEN Int64\(\-36\) \* avg\(Int64\(\-86\)\) THEN Int64\(70\) \* sum\(DISTINCT Int64\(\-26\)\) \+ Int64\(\-72\) \* Int64\(32\) ELSE NULL END \* avg\(DISTINCT Int64\(\-77\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT + 65 * + CASE + 83 WHEN + 89 + + - 7 + - + 23 + CAST ( + 10 AS INTEGER ) + 37 * 53 * - 15 THEN + + 3 + - CAST ( NULL AS INTEGER ) - 77 WHEN - 16 + - + 38 THEN NULL END AS col0, + CASE - - AVG ( DISTINCT 57 ) WHEN 88 + + 14 THEN NULL WHEN + ( - 36 ) * + AVG ( - 86 ) THEN + 70 * + SUM ( DISTINCT ( - 26 ) ) + - 72 * 32 ELSE NULL END * + AVG ( DISTINCT - 77 ) AS col0 +---- +NULL +NULL query I rowsort label-9906 SELECT - 82 + - - 69 / 86 @@ -51285,8 +51652,11 @@ NULL # 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\(DISTINCT Int64\(\-43\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 52 col1, COUNT ( DISTINCT + - 43 ) AS col1 +---- +1 +52 query I rowsort label-9929 SELECT + - SUM ( - 6 ) * - 49 col2 @@ -51465,14 +51835,20 @@ SELECT DISTINCT - 24 - + MAX ( ALL - + 40 ) * + + 48 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 "Int64\(\-2\) AS col1" at position 0 and "Int64\(\-84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 2 ) AS col1, - 84 AS col1 +---- +-2 +-84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 113 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \+ Int64\(72\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 + 72 AS col0, 91 col0 +---- +113 +91 query I rowsort SELECT ALL 68 * - + 53 diff --git a/data/sqlite/random/expr/slt_good_88.slt b/data/sqlite/random/expr/slt_good_88.slt index d45a76d..e18fbb1 100644 --- a/data/sqlite/random/expr/slt_good_88.slt +++ b/data/sqlite/random/expr/slt_good_88.slt @@ -363,8 +363,11 @@ SELECT ALL - 30 * + 5 + + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* CASE Int64\(36\) WHEN Int64\(95\) THEN Int64\(65\) ELSE CAST\(NULL AS Int32\) END \+ Int64\(85\) \* Int64\(98\) AS col1" at position 0 and "Int64\(\-49\) / Int64\(2\) \+ Int64\(\-48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 9 * CASE + + 36 WHEN 95 THEN + + 65 ELSE + CAST ( NULL AS INTEGER ) END + 85 * + 98 AS col1, - 49 / + 2 + - 48 AS col1 +---- +-72 +NULL query I rowsort label-63 SELECT CASE 58 WHEN - 87 + + COALESCE ( + + COUNT ( 54 ), + 0 + 70 ) * + NULLIF ( + 74, - 88 ) THEN + 74 * 6 WHEN + + 21 THEN NULL END @@ -374,8 +377,11 @@ NULL # 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 "Int64\(38\) AS col0" at position 0 and "\(\- Int64\(\-68\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 38 AS col0, - ( - 68 ) AS col0 +---- +38 +68 query I rowsort label-65 SELECT 72 + + - COUNT ( * ) AS col0 @@ -390,8 +396,11 @@ SELECT 61 * + 90 * COUNT ( * ) + 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT 73 AS col2, - 80 col2 +---- +-80 +73 query I rowsort SELECT 1 * - + 70 @@ -561,8 +570,11 @@ SELECT ( - 1 ) * + - 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(\(\- \(\- sum\(Int64\(76\)\)\)\), Int64\(42\) \+ Int64\(45\) \+ \(\- CAST\(Int64\(11\) AS Int32\)\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - NULLIF ( - - SUM ( + 76 ), 42 + + 45 + - + CAST ( + 11 AS INTEGER ) ) AS col0, COUNT ( * ) AS col0 +---- +1 +NULL query I rowsort label-101 SELECT - 41 + - 81 + - COUNT ( * ) * + - 85 @@ -946,8 +958,11 @@ SELECT ALL - CASE 66 WHEN - + AVG ( 34 ) THEN - + COUNT ( * ) WHEN + 69 + 80 THE # 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 "Int64\(34\) / Int64\(\-68\) \+ Int64\(1\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 / - 68 + 1 AS col2, + 60 AS col2 +---- +1 +60 query I rowsort label-174 SELECT ( COALESCE ( - 30, + 34, - COALESCE ( - + COALESCE ( ( 15 ), - 63 * 54 + + 14 + + COUNT ( + - 34 ) + ( + 9 ) + + 5 / + 44 / + 4 * + 99 * - 26 * + 69 / + CASE + - 98 WHEN - + COUNT ( * ) * 89 THEN NULL WHEN 18 THEN + ( + - 84 ) * CASE + - 0 WHEN + - COUNT ( * ) THEN COUNT ( * ) END * - ( 10 + + 96 ) END - + ( + 4 + 11 ), 39 ), 46 + 30 * - 51 ) * 12 ) ) + 35 * - COUNT ( * ) @@ -1476,8 +1491,11 @@ SELECT ALL - - 60 * + 24 * + 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - -150 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) \- Int64\(\-5\) \- Int64\(30\) \+ Int64\(\-73\) AS col2" at position 0 and "max\(\(\- CAST\(NULL AS Int32\)\)\) \- Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 52 - - 5 - 30 + + ( + - 73 ) col2, MAX ( - CAST ( NULL AS INTEGER ) ) - 27 AS col2 +---- +-150 +NULL query I rowsort label-276 SELECT 91 * - + MAX ( ALL + 82 ) @@ -1683,8 +1701,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 34 * - 89 AS col1, COUNT ( * ) / 49 AS col1 +---- +-3026 +0 query II rowsort label-315 SELECT DISTINCT - 18 col2, 78 / - 70 AS col0 @@ -2107,8 +2128,11 @@ 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\(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\. +query II valuesort SELECT NULLIF ( + COUNT ( * ), 87 * - + 23 ) AS col1, + 57 * + - COALESCE ( - - 58, ( + COALESCE ( + 7, - 27 * 21 + + 59 + - 9 ) ) ) * - MAX ( DISTINCT - 63 ) + - - COUNT ( * ) AS col1 +---- +-208277 +1 query I rowsort label-397 SELECT DISTINCT + + SUM ( - 50 ) AS col2 @@ -2155,8 +2179,11 @@ SELECT + ( 45 ) + 98 + 25 + COUNT ( * ) * - 18 / + NULLIF ( 66, + + 81 ) + 92, + # Datafusion - Datafusion expected results: # Datafusion - Expected - -6557 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* \(\- Int64\(79\)\) AS col1" at position 0 and "min\(Int64\(\-10\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 83 * - + 79 AS col1, MIN ( - 10 ) AS col1 +---- +-10 +-6557 query II rowsort label-406 SELECT - MIN ( ( + 13 ) ) + 89 col1, + 51 @@ -2294,8 +2321,11 @@ SELECT + ( + ( 58 ) ) * COUNT ( DISTINCT + - 54 ) + + - CASE + + 40 WHEN - COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - 6174 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* \(\- \(\- nullif\(\(\- Int64\(\-63\)\), Int64\(58\) \* 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 II valuesort SELECT ALL 98 * - - NULLIF ( - - 63, + 58 * 16 ) AS col2, - 25 AS col2 +---- +-25 +6174 query I rowsort SELECT DISTINCT - 74 * - ( 91 ) * - 51 @@ -2544,8 +2574,11 @@ SELECT COUNT ( DISTINCT - 93 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 10164 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col2" at position 0 and "Int64\(77\) \* Int64\(6\) \* Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 AS col2, + 77 * + ( + 6 ) * + 22 AS col2 +---- +0 +10164 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -3169,8 +3202,11 @@ SELECT DISTINCT 93 * - COUNT ( * ) + 88 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6417 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) \* Int64\(93\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 69 * + 93 AS col2, CAST ( NULL AS INTEGER ) AS col2 +---- +-6417 +NULL query I rowsort SELECT DISTINCT - 64 * - + 66 col1 @@ -3501,8 +3537,12 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(94\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 13 AS col1, - 38, - COUNT ( * ) + + 94 AS col1 +---- +-38 +13 +93 query I rowsort SELECT ALL - - 18 + 9 @@ -4879,8 +4919,11 @@ SELECT 61 + + COALESCE ( + 44, 69 ) * - 81 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col0" at position 0 and "Int64\(\-55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 32 AS col0, - 55 AS col0 +---- +-32 +-55 query I rowsort SELECT 68 * + 23 AS col2 @@ -5136,8 +5179,11 @@ SELECT ALL + COUNT ( * ), 99 / 99 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 9 AS col0, 92 AS col0 +---- +-9 +92 query I rowsort SELECT ALL - 59 * + ( + 21 ) @@ -5188,8 +5234,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 84 AS col0, COUNT ( * ) * 12 AS col0 +---- +-84 +12 query I rowsort SELECT DISTINCT 12 * - + 29 * + CASE + 44 WHEN - 37 - - + 35 * 50 THEN NULL ELSE 83 + 89 END + 69 AS col2 @@ -5224,8 +5273,11 @@ SELECT ALL 88 / - - 89 * - 32 / 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - -340 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(60\)\) AS col1" at position 0 and "Int64\(20\) \* Int64\(\-17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 60 ) AS col1, 20 * - 17 AS col1 +---- +-340 +-60 query I rowsort SELECT - CASE - CASE + 83 WHEN + CASE - - 9 WHEN - 71 THEN - + 51 ELSE NULL END THEN + 41 WHEN + 76 THEN + 15 END WHEN - 47 * + 97 THEN + 80 WHEN - 45 THEN NULL END + + 89 @@ -5451,8 +5503,12 @@ SELECT DISTINCT - - 73 - - + 64 # Datafusion - Expected - 55 # Datafusion - Expected - -46 # Datafusion - Expected - 1827 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) \+ Int64\(23\) AS col1" at position 1 and "Int64\(21\) \* Int64\(87\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - - 55, - 69 + ( 23 ) AS col1, ( + 21 ) * + 87 AS col1 +---- +-46 +1827 +55 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -5516,8 +5572,11 @@ SELECT ALL - COALESCE ( + 93, - 49, + 14 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 69 AS col1, 19 AS col1 +---- +19 +69 query I rowsort label-1047 SELECT DISTINCT + - SUM ( - 36 ) + + + 84 AS col2 @@ -5705,8 +5764,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 70 * - + 21 - + - ( - COUNT ( * ) ) / + 25 AS col0, 40 * + 98 AS col0 +---- +-1470 +3920 query I rowsort SELECT ALL + COALESCE ( + - 31, - 48 ) @@ -6168,8 +6230,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * + - ( + 64 ) * 44 + 0 AS col0, + 97 AS col0 +---- +-2816 +97 query I rowsort label-1168 SELECT - + NULLIF ( - + 27, COALESCE ( CASE - - 46 WHEN - + 22 / - 51 THEN COUNT ( * ) WHEN + - 1 + + + COUNT ( * ) THEN NULL END, + - COALESCE ( + - 19, - 8 ) * + 98 ) ) AS col0 @@ -6289,8 +6354,11 @@ SELECT ALL MIN ( DISTINCT 12 ) + 37 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 AS col2, 97 AS col2 +---- +70 +97 query I rowsort label-1191 SELECT ALL NULLIF ( - 74, + ( - 2 ) * - - COUNT ( * ) ) + 28 * + 78 @@ -6315,8 +6383,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) AS col2, 73 * + ( ( - 7 ) ) AS col2 +---- +-1 +-511 query I rowsort SELECT ALL ( + - 19 ) AS col1 @@ -6422,8 +6493,11 @@ SELECT DISTINCT CASE - - 89 WHEN - 45 * + + MIN ( - ( 68 ) ) + + 88 + + MAX ( DI # Datafusion - Datafusion expected results: # Datafusion - Expected - -4797 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(53\), \(\- Int64\(78\)\) \+ Int64\(9\)\)\) \* Int64\(89\) \+ Int64\(\-80\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - NULLIF ( 53, - + 78 + + ( + + 9 ) ) * + 89 + + - 80 AS col2, + ( 19 ) AS col2 +---- +-4797 +19 query I rowsort label-1216 SELECT ( - + CAST ( 83 AS INTEGER ) ) AS col1 @@ -6460,8 +6534,11 @@ SELECT ALL + COUNT ( * ) * - 42 + + 94 - + 4 + 74 * - + 71 + - - 31 / COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - -1549 # Datafusion - Expected - -4710 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* \(\- Int64\(62\)\) \+ count\(\(\- Int64\(\-75\)\)\) AS col0" at position 0 and "Int64\(50\) \+ CAST\(Int64\(17\) AS Int32\) \* \(\- Int64\(10\)\) \* Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 * - + 62 + + COUNT ( - - 75 ) AS col0, 50 + CAST ( + 17 AS INTEGER ) * - + 10 * 28 col0 +---- +-1549 +-4710 query I rowsort label-1223 SELECT CASE + 31 WHEN + 27 THEN 57 + - - 31 WHEN + 92 * - 49 / - 64 THEN + 55 + - + 28 + 21 * 6 WHEN - COUNT ( * ) / - 92 + + 69 THEN NULL END col0 @@ -6661,8 +6738,12 @@ NULL # Datafusion - Expected - -72 # Datafusion - Expected - -32 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col2" at position 0 and "CAST\(Int64\(\-32\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 72 col2, CAST ( + - 32 AS INTEGER ) AS col2, + 18 col1 +---- +-32 +-72 +18 query I rowsort label-1261 SELECT CAST ( NULL AS INTEGER ) - + 27 + - + 13 @@ -7012,8 +7093,12 @@ NULL # Datafusion - Expected - 851620 # Datafusion - Expected - 34 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-79\) \* \(\- Int64\(77\)\) \* Int64\(\-28\) AS col1" at position 0 and "\(\- Int64\(6\)\) \+ \(\- CAST\(Int64\(\-76\) AS Int32\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 5 * + COUNT ( * ) * - 79 * - + 77 * - 28 AS col1, 51 + - - 88 + + - 61 + ( - 44 ) AS col2, - + 6 + + - CAST ( - 76 AS INTEGER ) AS col1 +---- +34 +70 +851620 query I rowsort SELECT + 10 * - 53 AS col1 @@ -7253,8 +7338,11 @@ SELECT - 15 / 7 * + 47 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-65\), min\(DISTINCT Int64\(82\)\)\) AS col1" at position 0 and "\(\- min\(Int64\(35\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + NULLIF ( + - 65, + MIN ( DISTINCT + + 82 ) ) AS col1, - MIN ( ALL 35 ) AS col1 +---- +-35 +-65 query I rowsort label-1371 SELECT ALL 16 / - + 94 + - - NULLIF ( - 26, - + 16 ) / + 74 AS col1 @@ -7724,8 +7812,12 @@ 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\(1\)\) AS count\(\*\)\) \- Int64\(8\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 77 + - 80 + 43 * - 91 / - COUNT ( * ) - 8 AS col2, - COUNT ( * ) AS col2, 61 + 72 +---- +-1 +133 +3902 query II rowsort label-1461 SELECT - COUNT ( * ) * + 58 AS col1, 19 * 99 AS col2 @@ -7767,8 +7859,11 @@ SELECT ALL ( 39 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col1" at position 0 and "\(\- min\(\(\- \(\- CAST\(Int64\(19\) AS Int32\)\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 4 AS col1, - MIN ( ALL - - CAST ( 19 AS INTEGER ) ) + + COUNT ( * ) + + COUNT ( * ) AS col1 +---- +-17 +-4 query I rowsort label-1469 SELECT + 56 / + CAST ( NULL AS INTEGER ) * + 43 @@ -7784,8 +7879,12 @@ SELECT ALL ( - 35 ) col2 # Datafusion - Expected - 875 # Datafusion - Expected - -7297 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-68\)\) \- Int64\(87\) \+ Int64\(\-6\) \+ Int64\(\-20\) \* \(\- Int64\(45\)\) AS col2" at position 0 and "Int64\(\-42\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - 68 - 87 + - 6 + - 20 * - + ( 45 ) AS col2, - 43 + + - 78 * 93, - 42 AS col2 +---- +-42 +-7297 +875 query I rowsort SELECT - - 10 * 30 @@ -7795,8 +7894,11 @@ SELECT - - 10 * 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -158 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(9\) WHEN Int64\(59\) THEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-7\)\) \* Int64\(0\) END \* \(\- CASE \(\- Int64\(13\)\) WHEN \(\- Int64\(16\)\) THEN NULL ELSE \(\- Int64\(\-2\)\) \* Int64\(\-57\) END\) \+ Int64\(97\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- Int64\(95\)\) \- Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-158 +NULL query I rowsort label-1474 SELECT DISTINCT 78 * + - CASE + 17 WHEN + CAST ( + 31 AS INTEGER ) * - + 81 - + 56 THEN NULL WHEN 2 THEN + 77 + - 95 + 41 * 48 - 5 END + + NULLIF ( - MAX ( DISTINCT + 21 ), - 48 - - COUNT ( * ) ) * - 66 + + 76 * - 25 @@ -7955,8 +8057,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) + + 38 AS col0, + 44 + 11 + + 60 AS col0 +---- +115 +37 query I rowsort SELECT + 27 * + + 58 * + 63 + - - 54 * 56 AS col2 @@ -8383,8 +8488,11 @@ SELECT + 17 * 79 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 13 col1, + 11 AS col1 +---- +11 +13 query I rowsort SELECT ( + + 69 ) @@ -8711,8 +8819,11 @@ 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\(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\. +query II valuesort SELECT - 49 AS col1, NULLIF ( + 57, - MIN ( - - 23 ) + + - 17 + - COUNT ( * ) / - 26 ) + - + 30 * - - 55 * - 41 AS col1 +---- +-49 +67707 query II rowsort SELECT + ( + ( + - 17 ) ) * + 66 - 5 * + + 65 AS col1, 53 AS col0 @@ -9583,8 +9694,11 @@ SELECT ALL - ( - - 26 ) * - + MIN ( + 74 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(17\)\) AS Int32\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(95\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( - ( 17 ) AS INTEGER ) - - COUNT ( * ) * 95 AS col1, 10 AS col1 +---- +10 +78 query I rowsort label-1812 SELECT ALL - COUNT ( * ) * - - 78 @@ -9834,8 +9948,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "\(\- Int64\(58\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 17 / - - ( + COUNT ( * ) ) AS col1, - ( 58 ) AS col1 +---- +-58 +17 query I rowsort label-1860 SELECT - 9 - - COUNT ( * ) * - COUNT ( * ) AS col1 @@ -10263,8 +10380,11 @@ SELECT DISTINCT + COUNT ( * ) * + 62 + + + 47 / - MIN ( ALL 74 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "Int64\(0\) \- Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 85 AS col2, - 0 - + 89 col2 +---- +-89 +85 query I rowsort label-1939 SELECT ALL + CAST ( + + CAST ( + 74 AS INTEGER ) AS INTEGER ) * + 77 * - 74 * + CAST ( NULL AS INTEGER ) * + COUNT ( - + 26 ) + + CAST ( NULL AS INTEGER ) * + 39 + - + 99 + + 59 col2 @@ -10633,8 +10753,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \+ sum\(Int64\(\-17\)\) \+ Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 col0, - COUNT ( * ) + + SUM ( - 17 ) + - 65 AS col0 +---- +-83 +7 query I rowsort label-2008 SELECT ALL 67 / + SUM ( + + 79 ) * + - 53 AS col1 @@ -10821,8 +10944,11 @@ SELECT ALL NULLIF ( ( NULLIF ( COUNT ( * ), + 0 ) ), - 58 / - - COUNT ( * ) ), + # Datafusion - Datafusion expected results: # Datafusion - Expected - 102 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \- Int64\(\-85\) AS col0" at position 0 and "Int64\(\-59\) \* Int64\(59\) \+ Int64\(97\) / \(\- Int64\(\-43\)\) \+ CASE \(\- sum\(Int64\(91\)\)\) WHEN CAST\(NULL AS Int32\) \+ Int64\(83\) \+ Int64\(\-37\) THEN Int64\(\-51\) WHEN Int64\(7\) THEN NULL ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 17 - - 85 col0, ( - 59 ) * + + 59 + + 97 / - - 43 + + CASE - SUM ( 91 ) WHEN CAST ( NULL AS INTEGER ) + 83 + - 37 THEN - 51 WHEN + 7 THEN NULL ELSE NULL END AS col0 +---- +102 +NULL query I rowsort label-2044 SELECT ALL COUNT ( * ) * - 39 @@ -10912,8 +11038,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - ( ( + 68 ) ) ) col2, COUNT ( * ) + + + 98 AS col2 +---- +-68 +99 query I rowsort label-2062 SELECT - COALESCE ( + MAX ( - 26 ), - 50 ) + 22 @@ -11080,8 +11209,12 @@ SELECT 85 AS col0, 86 # Datafusion - Expected - 56 # Datafusion - Expected - -48 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 56 AS col2, - 48, 24 AS col2 +---- +-48 +24 +56 query II rowsort label-2094 SELECT DISTINCT 7 AS col1, - 38 * - 95 + + COUNT ( * ) / COUNT ( * ) col0 @@ -11138,8 +11271,11 @@ SELECT DISTINCT 73 + 33 + + - CAST ( + 91 AS INTEGER ) - ( + 41 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 34 AS col0, + ( + COUNT ( * ) ) col0 +---- +1 +34 query I rowsort label-2105 SELECT DISTINCT - COUNT ( * ) + + ( ( + 60 ) ) AS col1 @@ -11261,8 +11397,11 @@ SELECT + 55 * + 76 + - + 18 + - 66 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 768 # Datafusion - Expected - 121 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* Int64\(48\) AS col0" at position 0 and "Int64\(54\) \- Int64\(\-67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 16 * + + 48 AS col0, 54 - + - 67 col0 +---- +121 +768 query I rowsort SELECT 81 + 29 * + 41 * + 4 AS col2 @@ -11380,8 +11519,11 @@ SELECT - 47 * 81 * - - 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - -228 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) \* Int64\(3\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 76 * + + 3 AS col1, + ( 88 ) AS col1 +---- +-228 +88 query III rowsort label-2151 SELECT + 28 - 35 * - + 97 AS col1, COUNT ( * ) + + 10 + + COUNT ( * ) AS col0, 76 @@ -11950,8 +12092,11 @@ SELECT ALL 3 - 26 + + 94 * - 72 AS col0 # 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\) AS col1" at position 0 and "Int64\(\-54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 70 AS col1, - 54 AS col1 +---- +-54 +70 query III rowsort SELECT ALL - 61 AS col2, 91, + - 92 + - 84 AS col0 @@ -11999,8 +12144,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 60 AS col1, 34 * - COUNT ( * ) + 90 AS col1 +---- +-60 +56 query II rowsort label-2270 SELECT COUNT ( * ) / + 17 * + + 98 * 75 AS col2, + 91 @@ -12191,8 +12339,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3124 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) \* Int64\(44\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 71 * 44 AS col1, 83 AS col1 +---- +-3124 +83 query I rowsort label-2306 SELECT ALL - 84 * - 44 * - + 71 * - - 31 * COUNT ( * ) + + + 12 AS col1 @@ -13617,8 +13768,11 @@ SELECT 92 AS col2, - 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 72 col1, + COUNT ( * ) AS col1 +---- +1 +72 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -13723,8 +13877,11 @@ SELECT 77 AS col2, - 16 # 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\(Int64\(\-88\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 AS col2, + COUNT ( - 88 ) AS col2 +---- +-82 +1 query I rowsort SELECT ALL 95 + - + 36 AS col0 @@ -13744,8 +13901,11 @@ SELECT 5 + MAX ( DISTINCT + 71 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 col1, - 27 col1 +---- +-27 +33 query II rowsort SELECT ALL 25 col2, + 41 @@ -13990,8 +14150,11 @@ SELECT DISTINCT 28 * + 18 * 78 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4536 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-56\)\) \* 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 II valuesort SELECT - - 56 * - 81 AS col2, + 37 AS col2 +---- +-4536 +37 query I rowsort SELECT + 98 - CASE WHEN ( NULL ) IS NULL THEN + 26 ELSE NULL END AS col0 @@ -14088,8 +14251,11 @@ SELECT + COUNT ( * ) * + 92 + + 4 * + 68 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 80 AS col2, + 18 AS col2 +---- +18 +80 query I rowsort SELECT - 13 + - 44 AS col2 @@ -14232,8 +14398,11 @@ 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\(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\. +query II valuesort SELECT - ( MIN ( + 82 ) ) + - 45 + - - 13 * + COUNT ( * ) * - 35 AS col2, ( + 8 ) * 12 AS col2 +---- +-582 +96 query II rowsort SELECT ALL 62 * 90 col0, - 70 AS col2 @@ -14729,8 +14898,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 5929 # Datafusion - Expected - 1998 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(77\) AS col0" at position 0 and "Int64\(74\) \* \(\- Int64\(\-27\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 * + 77 AS col0, + 74 * - - 27 AS col0 +---- +1998 +5929 query I rowsort SELECT + ( 59 ) col2 @@ -15098,8 +15270,11 @@ SELECT 29 + + COUNT ( * ) * - NULLIF ( + - 56, 5 * 3 ) AS col0, 48 * + 8 # 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 "CASE Int64\(\-98\) WHEN Int64\(50\) THEN Int64\(\-29\) WHEN \(\- Int64\(24\)\) / Int64\(61\) \* Int64\(\-43\) THEN NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 AS col2, + CASE - 98 WHEN 50 THEN + - 29 WHEN - + 24 / + 61 * - 43 THEN NULL END AS col2 +---- +80 +NULL query I rowsort SELECT ALL - 41 + - + 24 @@ -15217,8 +15392,11 @@ SELECT DISTINCT - MIN ( DISTINCT - - 63 ) # 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\(97\) \- Int64\(4\) AS col2" at position 0 and "CASE Int64\(87\) WHEN min\(Int64\(\-9\)\) THEN Int64\(91\) \+ Int64\(\-59\) \+ \(\- Int64\(\-97\)\) \* Int64\(8\) END \+ Int64\(\-61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 97 - 4 col2, CASE + 87 WHEN + MIN ( - 9 ) THEN 91 + - 59 + ( - ( - 97 ) ) * + 8 END + - 61 col2 +---- +93 +NULL query I rowsort SELECT ALL 73 * - + COALESCE ( + 73, + 47 * + 72 - - 16 * + - 68, 77 + + 43 ) col1 @@ -15290,8 +15468,11 @@ SELECT + 10 * + + ( + + 69 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 800 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \* Int64\(16\) AS col1" at position 0 and "Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 50 * + + 16 AS col1, + 82 AS col1 +---- +800 +82 query II rowsort SELECT ALL - 4 + - 49, 32 AS col0 @@ -15733,8 +15914,11 @@ SELECT ALL MAX ( DISTINCT 98 ) AS col1, 43 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 4606 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(Int64\(47\) AS Int32\) \* Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, CAST ( + 47 AS INTEGER ) * 98 AS col0 +---- +1 +4606 query I rowsort label-2983 SELECT + + COALESCE ( + CAST ( - 71 AS INTEGER ), + COUNT ( * ) + 98 ) + + 7 @@ -16018,8 +16202,11 @@ SELECT ALL - 23 col0, 28 + - 71 + - 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 5742 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) AS col1" at position 0 and "Int64\(87\) \* Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 13 AS col1, 87 * 66 AS col1 +---- +-13 +5742 query I rowsort label-3037 SELECT - - MAX ( + 17 ) AS col2 @@ -16175,8 +16362,11 @@ SELECT + 49 * - 62 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4361 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \* Int64\(\-49\) AS col1" at position 0 and "Int64\(98\) / Int64\(\-68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 89 * - 49 AS col1, 98 / - 68 AS col1 +---- +-1 +4361 query I rowsort SELECT ALL + ( + - 34 ) col1 @@ -16477,8 +16667,11 @@ SELECT ALL CASE + CASE CAST ( NULL AS INTEGER ) WHEN COALESCE ( 58, - COUNT ( AL # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -5770 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "Int64\(64\) \* \(\- Int64\(91\)\) \+ max\(Int64\(54\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 AS col2, 64 * - + 91 + MAX ( 54 ) AS col2 +---- +-5770 +89 query I rowsort label-3126 SELECT DISTINCT + 16 + + 56 + - NULLIF ( COUNT ( * ), + 5 ) AS col1 @@ -16494,8 +16687,12 @@ SELECT NULLIF ( 21, + ( + 39 ) ) * + 86 AS col0 # Datafusion - Expected - 76 # Datafusion - Expected - 68 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 76 AS col2, 68 AS col2, - 2 * + 9 col0 +---- +-18 +68 +76 query I rowsort label-3129 SELECT 73 / + 12 AS col0 @@ -16563,8 +16760,11 @@ SELECT - NULLIF ( - + COALESCE ( + 40, - 79 / 16 * + 70 * + + 30 - 42 * + 31 * - # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "Int64\(94\) \+ Int64\(\-96\) \- \(\- sum\(\(\- Int64\(\-25\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 15 AS col0, 94 + + - 96 - - + SUM ( - - 25 ) AS col0 +---- +15 +23 query II rowsort SELECT - 37 AS col0, - 33 @@ -16878,8 +17078,11 @@ SELECT + + COALESCE ( + 99, 67 + - 71, - 91 ) + + + 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 67 AS col1, + COUNT ( * ) AS col1 +---- +-67 +1 query I rowsort SELECT + 42 + + 28 AS col2 @@ -17396,8 +17599,12 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - -1073 # Datafusion - Expected - 3417 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(13\) \* \(\- Int64\(78\)\) \+ \(\- Int64\(59\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + COUNT ( * ) AS col1, 13 * - + 78 + - + 59 AS col1, - NULLIF ( 51, 44 ) * + - 67 +---- +-1073 +1 +3417 query I rowsort label-3298 SELECT DISTINCT - SUM ( ALL - - 23 ) * COUNT ( * ) col0 @@ -17464,8 +17671,11 @@ SELECT ALL + MIN ( ALL + 8 ) * + + 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - -101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col1" at position 0 and "CAST\(\(\- \(\- Int64\(\-36\)\)\) AS Int32\) \+ \(\- Int64\(65\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 3 AS col1, + CAST ( - ( - - 36 ) AS INTEGER ) + - + 65 AS col1 +---- +-101 +3 query I rowsort SELECT ALL - 86 * + 96 * - 23 + + 12 AS col1 @@ -17924,8 +18134,11 @@ SELECT 72 * ( 75 ) / + + ( 96 ) + 55 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-53\) AS Int32\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( - 53 AS INTEGER ) AS col2, + 6 AS col2 +---- +-53 +6 query I rowsort label-3398 SELECT + ( + COUNT ( * ) ) * + 87 + + 96 AS col2 @@ -17970,8 +18183,11 @@ SELECT - COALESCE ( - + ( + CASE - ( - CAST ( - - 99 AS INTEGER ) ) WHEN - - 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) \+ Int64\(\-62\) \- Int64\(\-15\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 49 + - 62 - - 15 AS col1, 55 AS col1 +---- +-96 +55 query I rowsort label-3407 SELECT DISTINCT 60 * + - 58 + + 11 + SUM ( DISTINCT - 54 ) - - 57 @@ -18156,8 +18372,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 AS col1, 78 AS col1 +---- +78 +9 query II rowsort label-3443 SELECT + COALESCE ( 79, + CAST ( - COUNT ( * ) AS INTEGER ) / - 73, 2 ) / - + 56 AS col1, + 68 * - 74 + + 8 col2 @@ -18245,8 +18464,11 @@ SELECT + + ( + 74 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -2020 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col1" at position 0 and "\(\- sum\(\(\- Int64\(93\)\)\)\) / Int64\(49\) \+ Int64\(\-47\) \* Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 4 AS col1, - ( + SUM ( - + 93 ) ) / 49 + - 47 * 43 AS col1 +---- +-2020 +4 query I rowsort SELECT - - 23 * - + 3 @@ -18488,8 +18710,11 @@ SELECT 60 / 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16150 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* Int64\(2\) \* Int64\(85\) AS col1" at position 0 and "Int64\(\-11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 95 * + 2 * + 85 AS col1, - 11 AS col1 +---- +-11 +16150 query I rowsort SELECT ALL - 90 + - 41 AS col0 @@ -18828,8 +19053,12 @@ SELECT + 79 * + 72 # Datafusion - Expected - 56 # Datafusion - Expected - -17 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "Int64\(\-51\) \* CAST\(NULL AS Int32\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 56 AS col0, - ( 17 ), + - 51 * + CAST ( NULL AS INTEGER ) AS col0 +---- +-17 +56 +NULL query I rowsort label-3570 SELECT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) @@ -18941,8 +19170,11 @@ SELECT ALL + 2 + ( 70 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 364 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) \+ Int64\(17\) \* Int64\(24\) AS col2" at position 0 and "coalesce\(Int64\(43\), \(\- sum\(DISTINCT Int64\(72\)\)\) \+ Int64\(\-82\), Int64\(\-60\) \+ \(\- nullif\(Int64\(17\), Int64\(22\)\)\) \- Int64\(\-81\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 44 + + 17 * + 24 AS col2, COALESCE ( 43, - SUM ( DISTINCT + 72 ) + - 82, - 60 + - NULLIF ( 17, + + 22 ) - + - 81 ) AS col2 +---- +364 +43 query II rowsort SELECT 81 AS col1, 53 * + 23 * 67 + - - 4 col2 @@ -19071,8 +19303,11 @@ 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 "Int64\(\-1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 AS col2, - 1 AS col2 +---- +-1 +88 query I rowsort label-3617 SELECT ALL NULLIF ( - - COUNT ( * ), + 75 + - 11 ) * - + 85 AS col2 @@ -19147,8 +19382,11 @@ SELECT ALL - 70 + + 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 AS col0, + 98 AS col0 +---- +68 +98 query I rowsort SELECT 54 + + + 66 @@ -19351,8 +19589,11 @@ SELECT + 76 - + COALESCE ( - 27, - 88 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \+ Int64\(\-10\) AS col2" at position 0 and "Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 16 + - 10 AS col2, + 72 AS col2 +---- +-26 +72 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -19609,8 +19850,11 @@ SELECT + - NULLIF ( + 48, COUNT ( * ) ) + ( + 50 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(23\), Int64\(\-38\)\)\) AS col2" at position 0 and "Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( + + 23, - 38 ) AS col2, 57 col2 +---- +-23 +57 query I rowsort SELECT ALL - 69 * - + 76 AS col2 @@ -19883,8 +20127,11 @@ 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\(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\. +query II valuesort 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 +---- +137 +89 query I rowsort label-3767 SELECT - 12 * - 31 - 75 + + COALESCE ( + + 58, - ( 89 ) ) + + - 56 + + 90 + SUM ( + - 85 ) * + 36 + - 11 @@ -20095,8 +20342,11 @@ SELECT + - 6 * - 20 # 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 "Int64\(3\) AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 3 col1, + ( 8 ) AS col1 +---- +3 +8 query I rowsort SELECT ALL + - ( + - 47 ) col0 @@ -20289,8 +20539,11 @@ SELECT - COUNT ( * ) * - 35 + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 576 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-44\)\) AS col0" at position 0 and "Int64\(6\) \* Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( ALL - 44 ) AS col0, + 6 * + 96 AS col0 +---- +-44 +576 query I rowsort label-3843 SELECT ALL + + 4 * + - 89 + + 8 * NULLIF ( 34, - + 43 / 95 - CASE - 70 WHEN COUNT ( * ) + COUNT ( ALL 44 ) THEN + - 44 ELSE NULL END + + 5 * - 66 ) col1 @@ -20316,8 +20569,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2638 # Datafusion - Expected - -29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) \* Int64\(\-91\) \- count\(nullif\(Int64\(20\), Int64\(48\) \- CAST\(\(\- \(\- nullif\(Int64\(8\), Int64\(21\) / Int64\(\-22\)\)\)\) AS Float64\)\)\) AS col2" at position 0 and "Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 29 * - 91 - + COUNT ( ALL NULLIF ( + 20, 48 - CAST ( - - NULLIF ( + + 8, 21 / + ( - 22 ) ) AS FLOAT8 ) ) ) AS col2, - 29 AS col2 +---- +-29 +2638 query I rowsort SELECT ALL 49 * - 66 AS col0 @@ -20459,8 +20715,11 @@ SELECT + + 71, 40 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 30 AS col0, + 48 col0 +---- +30 +48 query I rowsort label-3874 SELECT DISTINCT - + 35 * + 80 * + COUNT ( * ) + + COALESCE ( + + 52, + 32 * COUNT ( * ) / - 11 * - 12 ) + - 9 @@ -20496,8 +20755,11 @@ SELECT ALL + - 93 * + + 40 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- \(\- Int64\(52\)\) \+ Int64\(70\) \+ Int64\(83\) AS col0" at position 0 and "Int64\(\-20\) \+ max\(Int64\(\-37\)\) \- Int64\(79\) \+ CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(12\) / Int64\(\-28\) THEN Int64\(68\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +NULL +NULL query I rowsort label-3881 SELECT 29 / + - ( - 9 ) AS col2 @@ -20545,8 +20807,11 @@ SELECT ALL 43 * 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 72 + + COUNT ( * ) AS col2, - ( + COUNT ( * ) ) col2 +---- +-1 +73 query II rowsort SELECT 54 * + - 45 AS col1, - 63 AS col2 @@ -20871,8 +21136,11 @@ SELECT - 94 * + 23 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) / \(\- Int64\(54\)\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 11 / - + 54 AS col2, 78 AS col2 +---- +0 +78 query I rowsort SELECT DISTINCT - 55 - + + 27 col0 @@ -20882,8 +21150,11 @@ SELECT DISTINCT - 55 - + + 27 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "\(\- \(\- Int64\(22\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 AS col2, - ( - + 22 ) AS col2 +---- +22 +42 query I rowsort label-3954 SELECT - - 81 - + COUNT ( * ) * + 39 col0 @@ -20966,8 +21237,11 @@ SELECT 57 / - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - -967 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ min\(Int64\(47\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-81\) AS col2" at position 0 and "nullif\(Int64\(13\), Int64\(\-10\) \+ Int64\(\-79\) \+ CAST\(NULL AS Int32\) \- Int64\(69\) \* Int64\(37\) \* Int64\(99\) \+ \(\- coalesce\(Int64\(8\), Int64\(\-19\)\)\)\) \* Int64\(\-67\) \+ count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-967 +59 query I rowsort SELECT DISTINCT 84 * + - ( + 50 ) * 93 @@ -21293,14 +21567,20 @@ SELECT COUNT ( DISTINCT - 10 ) * 83 + - - 46 * 78 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col2" at position 0 and "Int64\(\-59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 43 ) AS col2, - 59 col2 +---- +-59 +43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( COUNT ( * ) ), COUNT ( * ) +---- +1 +1 query I rowsort label-4034 SELECT + 25 * - - COUNT ( * ) * 53 + + NULLIF ( + 12, COUNT ( * ) * - COUNT ( * ) + - 82 ) AS col2 @@ -22889,8 +23169,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "Int64\(95\) / \(\- CASE Int64\(3\) WHEN Int64\(8\) \* Int64\(88\) \* Int64\(\-10\) THEN Int64\(60\) \+ \(\- CAST\(Int64\(57\) AS Int32\)\) ELSE NULL END\) \+ Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 15 col0, + 95 / - + CASE + 3 WHEN + 8 * + 88 * - 10 THEN + 60 + - CAST ( 57 AS INTEGER ) ELSE NULL END + - 38 AS col0 +---- +15 +NULL query I rowsort label-4341 SELECT ( + MIN ( DISTINCT - 71 ) ) + COUNT ( * ) AS col1 @@ -23587,8 +23870,11 @@ SELECT ALL 54 * - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- Int64\(16\)\)\)\) AS col0" at position 0 and "CASE nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(13\) \- Int64\(43\)\) WHEN nullif\(\(\- nullif\(Int64\(\-10\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\), Int64\(\-82\)\) THEN Int64\(41\) WHEN Int64\(7\) \* \(\- CAST\(NULL AS Int32\)\) THEN NULL ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +16 +NULL query II rowsort label-4474 SELECT 66, + COUNT ( 94 ) AS col1 @@ -23646,8 +23932,11 @@ SELECT ALL 66 + - + 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5040 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* Int64\(\-60\) AS col0" at position 0 and "Int64\(3\) \+ Int64\(\-18\) \* Int64\(11\) \* Int64\(\-73\) / CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 84 * - 60 AS col0, 3 + + - 18 * 11 * - 73 / + CAST ( NULL AS INTEGER ) col0 +---- +-5040 +NULL query I rowsort SELECT 81 + + 28 @@ -23765,8 +24054,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 109 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-47\), Int64\(\-37\)\) \+ \(\- Int64\(\-96\)\) \- Int64\(\-37\) / Int64\(30\) \+ Int64\(59\) AS col1" at position 0 and "max\(CAST\(Int64\(17\) AS Int32\)\) / Int64\(28\) \+ coalesce\(CASE CAST\(Int64\(\-92\) AS Float64\) WHEN Int64\(81\) THEN Int64\(\-77\) ELSE count\(Int64\(1\)\) AS count\(\*\) END, Int64\(25\), Int64\(84\) \+ Int64\(39\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1 +109 query I rowsort SELECT - + NULLIF ( + ( - 45 ), ( ( + NULLIF ( - 33, + + 27 ) ) ) ) @@ -24292,8 +24584,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 * - COUNT ( * ) AS col0, 58 col0 +---- +-54 +58 query I rowsort label-4608 SELECT MAX ( + 64 ) + 20 @@ -24313,8 +24608,11 @@ SELECT DISTINCT 41 * + - 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 AS col0, + 17 col0 +---- +17 +80 query I rowsort SELECT ALL 76 + - - 99 + - - 5 * 1 col1 @@ -24334,8 +24632,11 @@ SELECT DISTINCT 5 + - 82 / - + COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col2" at position 0 and "CAST\(Int64\(88\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 col2, CAST ( 88 AS INTEGER ) AS col2 +---- +-92 +88 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -25207,8 +25508,11 @@ SELECT + 94 / - 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - -1848 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "Int64\(\-22\) \* Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 51 AS col2, ( + - 22 ) * 84 col2 +---- +-1848 +51 query I rowsort label-4783 SELECT ALL + CASE + ( - 16 ) WHEN + + MIN ( - CAST ( NULL AS INTEGER ) ) THEN 60 ELSE + 38 END AS col0 @@ -25319,8 +25623,11 @@ SELECT - 76 / COUNT ( * ) * + 52 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-47\)\) AS Int32\) AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( - - 47 AS INTEGER ) col0, + 33 AS col0 +---- +33 +47 query I rowsort SELECT - 41 * - 33 + - ( 74 ) AS col1 @@ -25521,8 +25828,12 @@ SELECT + 34 * + 8 # Datafusion - Expected - 20 # Datafusion - Expected - -1505 # Datafusion - Expected - -2176 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "Int64\(66\) \+ \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \+ Int64\(48\) \+ \(\- Int64\(30\)\) \* nullif\(Int64\(54\), Int64\(50\) \- \(\- count\(Int64\(\-6\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 20 col0, 66 + - CAST ( - COUNT ( * ) AS INTEGER ) + 48 + - + 30 * + NULLIF ( 54, 50 - - COUNT ( + - 6 ) ) AS col0, 34 * - 64 +---- +-1505 +-2176 +20 query I rowsort SELECT ALL - + 39 - - 89 @@ -25848,8 +26159,11 @@ SELECT DISTINCT + SUM ( - 13 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col0" at position 0 and "Int64\(\-53\) \+ Int64\(\-11\) \+ Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 80 col0, - 53 + - 11 + 43 AS col0 +---- +-21 +-80 query I rowsort label-4905 SELECT DISTINCT + ( - 3 ) * CAST ( - 29 AS INTEGER ) * + 53 AS col0 @@ -25973,8 +26287,11 @@ SELECT 34 + - + 23 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col2, 18 AS col2 +---- +18 +NULL query I rowsort SELECT ALL - ( - 53 ) AS col1 @@ -26009,8 +26326,11 @@ SELECT - MIN ( DISTINCT - 82 ) * + COUNT ( + 93 ) + + + 61 * - 30 + - ( + + 74 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 6499 # Datafusion - Expected - -2820 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \* Int64\(\-67\) AS col1" at position 0 and "Int64\(\-63\) \+ sum\(DISTINCT Int64\(\-93\)\) \+ Int64\(\-72\) \* Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 97 * - 67 col1, - 63 + + + SUM ( DISTINCT + - 93 ) + + - 72 * + 37 AS col1 +---- +-2820 +6499 query I rowsort SELECT + 20 * - - 43 + - - 92 + + 96 * 65 @@ -26068,8 +26388,11 @@ SELECT ALL - COUNT ( * ) * - 48 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - -15912 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) \+ Int64\(34\) AS col0" at position 0 and "Int64\(72\) \* Int64\(17\) \* Int64\(\-13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 58 + 34 AS col0, 72 * + + 17 * + - 13 AS col0 +---- +-15912 +-24 query I rowsort label-4946 SELECT ALL - MAX ( ALL 3 ) + - - CAST ( COALESCE ( - 61, + 77, NULLIF ( CAST ( NULL AS FLOAT8 ), - + 67 * + + ( - 87 ) ) ) AS INTEGER ) @@ -26084,8 +26407,11 @@ 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\(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\. +query II valuesort SELECT 24 * - ( + - 33 ) * - - COUNT ( * ) * - COUNT ( * ) AS col1, + 75 AS col1 +---- +-792 +75 query I rowsort SELECT ALL 89 + - 9 - - + 48 * - - 43 + 57 @@ -26423,8 +26749,11 @@ SELECT + 58, 82 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) / Int64\(40\) \+ Int64\(\-62\) AS col2" at position 0 and "\(\- max\(Int64\(11\)\)\) \+ \(\- Int64\(\-71\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 86 / 40 + - 62 AS col2, - MAX ( ALL + 11 ) + - - 71 AS col2 +---- +-60 +60 query I rowsort SELECT 19 * 5 * + 43 - + COALESCE ( 69, 83 ) + - 72 + 53 @@ -26731,8 +27060,11 @@ SELECT DISTINCT - - ( 83 ) + - + 60 AS col0 # 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 col0" at position 0 and "Int64\(24\) / Int64\(76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 8 AS col0, 24 / + 76 AS col0 +---- +-8 +0 query I rowsort SELECT ALL - 31 - 55 AS col2 @@ -26967,8 +27299,11 @@ SELECT ALL - + 12 * - 1 / 87 * NULLIF ( 67, + 63 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 473022480 # Datafusion - Expected - 1746 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-60\), Int64\(8\)\)\) \* \(\- Int64\(58\)\) \* Int64\(73\) \* Int64\(\-38\) \* Int64\(49\) AS col1" at position 0 and "Int64\(18\) \* Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( + - 60, + 8 ) * - + 58 * 73 * - 38 * 49 AS col1, + 18 * + 97 col1 +---- +1746 +473022480 query II rowsort SELECT ALL - 87 AS col2, - 86 @@ -27040,8 +27375,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) * - 49 AS col1, 74 * 5 AS col1 +---- +-49 +370 query I rowsort label-5130 SELECT + 5 / - 95 * + 34 @@ -27288,8 +27626,11 @@ SELECT - 30 * 27 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col0" at position 0 and "Int64\(48\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 38 AS col0, + 48 * COUNT ( * ) AS col0 +---- +-38 +48 query I rowsort SELECT DISTINCT + 85 * - - 71 @@ -27309,8 +27650,11 @@ SELECT + 67 * - 71 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 16 AS col2, 16 AS col2 +---- +16 +16 query I rowsort label-5181 SELECT + 33 * - CAST ( + 93 AS INTEGER ) @@ -27454,8 +27798,11 @@ SELECT 26 * - 97 - 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 965 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- \(\- CAST\(NULL AS Int32\)\)\), Int64\(\-59\) / Int64\(\-15\) \- sum\(Int64\(37\)\) \+ Int64\(63\)\) \* CAST\(Int64\(20\) AS Int32\) \+ Int64\(\-44\) \- Int64\(52\) \* Int64\(\-7\) \+ Int64\(65\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( - - ( + CAST ( NULL AS INTEGER ) ), - 59 / + - 15 - + SUM ( + 37 ) + + 63 ) * + CAST ( 20 AS INTEGER ) + + - 44 - + 52 * - 7 + + 65 AS col2, - COUNT ( * ) AS col2 +---- +-1 +965 query I rowsort label-5209 SELECT DISTINCT - - ( + 75 ) / - 16 @@ -27485,8 +27832,11 @@ SELECT ALL + 3 + - - 26 + - - ( 14 ) col1 # 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 col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 44 AS col2, 59 AS col2 +---- +-44 +59 query I rowsort label-5215 SELECT 93 * - ( - + CASE - - 87 WHEN 55 * - - COALESCE ( - - COALESCE ( + + 26, - - 7 * - - NULLIF ( 51, - 39 + + + 51 * - 50 ) + - 71 * - + 51 + - COUNT ( * ) + ( - MAX ( DISTINCT + 91 ) ), - 12 ), - - ( - SUM ( + 27 ) ), - 37 ) - + 48 * 94 THEN NULL WHEN + CAST ( NULL AS INTEGER ) * 16 * - 82 * + + COUNT ( * ) * + COUNT ( + 19 ) THEN + 83 WHEN 65 THEN 78 END ) @@ -27845,8 +28195,11 @@ SELECT DISTINCT + ( - - 33 ) / 94 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -51 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \+ Int64\(48\) AS col0" at position 0 and "Int64\(21\) \+ Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 99 + 48 AS col0, + 21 + 7 AS col0 +---- +-51 +28 query II rowsort SELECT + 10 + 79 * - 68, + 62 AS col1 @@ -27862,8 +28215,11 @@ SELECT + 28 + 98 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \+ Int64\(\-36\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 4 + + - 36 col2, + 98 AS col2 +---- +-40 +98 query I rowsort label-5286 SELECT ALL + ( + + COUNT ( * ) ) + + 12 AS col1 @@ -28167,8 +28523,11 @@ SELECT - 63 + - ( + 42 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(9\)\) \+ \(\- max\(\(\- CAST\(NULL AS Int32\)\)\)\) AS col2" at position 0 and "Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - ( 9 ) ) + - MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col2, 19 AS col2 +---- +19 +NULL query I rowsort SELECT DISTINCT 34 + 69 + 26 @@ -28260,8 +28619,11 @@ SELECT DISTINCT - 99 / 63 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - 46 -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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MAX ( - 43 ) AS col1, 46 col1 +---- +-43 +46 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -28561,8 +28923,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) col2, + 2 * - SUM ( + 43 ) AS col2 +---- +-1 +-86 query I rowsort label-5418 SELECT - COUNT ( ALL + 94 ) AS col2 @@ -29020,8 +29385,11 @@ SELECT ALL + NULLIF ( + 6, - 31 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(86\) \+ Int64\(\-43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 4 * COUNT ( * ) AS col2, 86 + + ( - 43 ) AS col2 +---- +-4 +43 query I rowsort label-5506 SELECT ALL 15 / 85 AS col2 @@ -29146,8 +29514,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 98 + + 92 + 95 col0, 19 * - COUNT ( * ) AS col0 +---- +-19 +285 query I rowsort label-5530 SELECT NULLIF ( - 34, - + NULLIF ( - 68, + 42 ) / + 8 * 92 - + - 78 ) / 92 / - 99 * + + 54 + + 18 @@ -29259,8 +29630,11 @@ SELECT ALL + + 25 - - 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-70\) \* \(\- nullif\(Int64\(\-21\), Int64\(54\) \* Int64\(48\) \+ Int64\(72\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 AS col1, COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - 70 * + - NULLIF ( + - 21, 54 * 48 + 72 ) AS col1 +---- +-20 +NULL query II rowsort label-5552 SELECT ALL - NULLIF ( + - 71, - 48 + - CAST ( NULL AS INTEGER ) ) - + - 14 + - + CASE + 10 WHEN - + 51 THEN NULL ELSE + 65 / + 66 END, 59 col0 @@ -29277,8 +29651,11 @@ SELECT DISTINCT 34 AS col2, + 36 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col1" at position 0 and "Int64\(\-64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 86 AS col1, - 64 col1 +---- +-64 +86 query I rowsort label-5555 SELECT NULLIF ( - 0, - 56 / - CAST ( NULL AS INTEGER ) ) - + - 42 @@ -29393,8 +29770,11 @@ SELECT ALL + ( + ( - 57 ) ) * - - 48 + - 77 / + 14 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 104 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col2" at position 0 and "Int64\(14\) \- \(\- Int64\(38\)\) \+ Int64\(\-15\) \+ Int64\(4\) / Int64\(4\) \+ Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 AS col2, 14 - - + 38 + - 15 + + 4 / + 4 + + 66 AS col2 +---- +104 +65 query I rowsort label-5577 SELECT ALL 15 * + - 40 + + - 65 / - MAX ( ALL 88 ) + 36 AS col1 @@ -29419,8 +29799,11 @@ SELECT - - 65 * 58 * + + 51 * MAX ( DISTINCT + + 87 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, - 5 AS col1 +---- +-5 +1 query I rowsort SELECT ALL + + 89 * - + 72 + + + 57 @@ -29430,8 +29813,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 0 AS col1, - COUNT ( * ) col1 +---- +-1 +0 query I rowsort label-5584 SELECT 62 * - - 66 + + 9 + + 95 + - MIN ( ALL - 90 ) + ( + 83 ) * - - 76 + + 20 * + 32 + + 74 + + 63 @@ -29667,8 +30053,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) * - 84 + 32 AS col1, + 2 AS col1 +---- +-52 +2 query I rowsort label-5630 SELECT - 22 - + + COUNT ( * ) AS col1 @@ -29760,8 +30149,11 @@ SELECT ALL - + NULLIF ( + 78, + COUNT ( * ) / 8 + 61 * + 65 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, + 24 AS col1 +---- +1 +24 query I rowsort SELECT ALL - 32 * ( - 32 ) AS col1 @@ -30830,8 +31222,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 23 + COUNT ( * ) AS col1, 15 AS col1 +---- +15 +24 query I rowsort label-5855 SELECT + MAX ( ALL 33 ) * - NULLIF ( 37, + 94 ) * ( NULLIF ( - 43, + 45 ) / - 79 ) + + COUNT ( * ) * 20 AS col1 @@ -31794,8 +32189,11 @@ SELECT ALL 93 * 96 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 AS col2, 16 AS col2 +---- +16 +82 query II rowsort SELECT ALL - 80 AS col1, + 44 + - 56 AS col0 @@ -31917,8 +32315,11 @@ 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\(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\. +query II valuesort SELECT ALL - + 35 col1, + 93 / - - CASE - - 15 WHEN 67 * 44 THEN NULL ELSE + COUNT ( * ) * - 78 - + + 86 - COUNT ( * ) END AS col1 +---- +-35 +0 query I rowsort label-6061 SELECT DISTINCT + 10 * COUNT ( * ) * + + 86 * + 7 * + - 40 AS col0 @@ -32352,8 +32753,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) / Int64\(\-42\) \- Int64\(41\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 96 / + - 42 - 41 col0, 77 AS col0 +---- +-43 +77 query I rowsort SELECT ( + - 82 ) @@ -32681,8 +33085,11 @@ SELECT MIN ( + 44 ) + + + 85 + + NULLIF ( + NULLIF ( + 37, - 90 ), - AVG ( DISTI # Datafusion - Datafusion expected results: # Datafusion - Expected - -191 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-2\)\) AS Int32\) \* Int64\(\-96\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( + ( - ( + - 2 ) ) AS INTEGER ) * - 96 + COUNT ( * ) AS col0, 92 AS col0 +---- +-191 +92 query I rowsort label-6205 SELECT 43 + - COUNT ( * ) * + + COUNT ( * ) + 90 @@ -32821,8 +33228,11 @@ SELECT - + 43 * - 61 * 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 22 AS col2, + 79 AS col2 +---- +22 +79 query I rowsort label-6232 SELECT ALL NULLIF ( + 7, + - COUNT ( * ) / + ( - + CAST ( NULL AS INTEGER ) ) + + + 39 ) @@ -32877,8 +33287,11 @@ SELECT ALL + 61 / NULLIF ( - 29, 44 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col0" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 49 AS col0, CAST ( + - COUNT ( * ) AS INTEGER ) AS col0 +---- +-1 +-49 query I rowsort SELECT - 68 - + 49 AS col2 @@ -32893,8 +33306,11 @@ SELECT ALL - 71 / 81 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS 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 RI valuesort SELECT CAST ( NULL AS FLOAT8 ) AS col2, 56 AS col2 +---- +56 +NULL query I rowsort label-6246 SELECT ALL + COALESCE ( - COUNT ( ALL - - 3 ), - SUM ( DISTINCT + 47 ) * + 57, - 49 + - 76 ) AS col0 @@ -33231,8 +33647,11 @@ SELECT DISTINCT 44 + - + 27 # 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\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 22 AS col1, + 16 AS col1 +---- +-22 +16 query II rowsort label-6311 SELECT ALL + 28 * 23 / - 28 + + ( COUNT ( ALL - 60 ) ) AS col0, 46 @@ -34585,8 +35004,11 @@ SELECT + - COALESCE ( - CASE 61 WHEN ( + 94 ) * + 51 THEN NULL WHEN COALESCE ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 32 col2, + COUNT ( * ) col2 +---- +1 +32 query I rowsort SELECT + - 43 - 96 @@ -34919,8 +35341,11 @@ SELECT ( 21 ) + + - ( + 65 ) * + 18 # 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 "Int64\(92\) AS col1" at position 0 and "Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 92 AS col1, - 35 AS col1 +---- +-35 +92 query I rowsort label-6627 SELECT ALL COUNT ( * ) + - + 63 - - 28 AS col2 @@ -35285,8 +35710,11 @@ SELECT + ( 19 ) + - 49 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1504 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* \(\- min\(Int64\(16\)\)\) AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 94 * - MIN ( 16 ) AS col1, + 3 AS col1 +---- +-1504 +3 query II rowsort label-6696 SELECT ALL - 60, ( - COUNT ( * ) ) + - - 16 AS col1 @@ -35459,8 +35887,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 25 / + - COUNT ( * ) AS col0, 15 + - + 59 AS col0 +---- +-44 +25 query I rowsort label-6729 SELECT - MAX ( DISTINCT 32 ) * 91 * + - 98 AS col0 @@ -35685,8 +36116,11 @@ SELECT DISTINCT + - COALESCE ( - ( + + 88 ), 20 ) - - 7 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 1700 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* Int64\(\-1\) \+ Int64\(44\) AS col1" at position 0 and "Int64\(68\) \* Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 54 * - 1 + 44 AS col1, + 68 * + 25 AS col1 +---- +-10 +1700 query I rowsort SELECT DISTINCT - ( + - ( - 79 ) ) - - 81 AS col0 @@ -36415,8 +36849,11 @@ SELECT ALL 34 * - CAST ( + CAST ( - 87 AS INTEGER ) AS INTEGER ) * 98 - + COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-7\)\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( ALL - 7 ) AS col2, + 10 col2 +---- +-7 +10 query I rowsort label-6913 SELECT MIN ( - 14 ) AS col1 @@ -36635,8 +37072,11 @@ SELECT ALL 57 * - - COALESCE ( + 0, + 58 ) + + 4 * 68, + 64 * COUNT ( * ) AS col # Datafusion - Datafusion expected results: # Datafusion - Expected - 111 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(34\) WHEN Int64\(\-92\) \+ \(\- sum\(Int64\(81\)\)\) THEN NULL ELSE Int64\(30\) END \+ \(\- Int64\(\-81\)\) AS col2" at position 0 and "Int64\(\-68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + CASE + 34 WHEN - 92 + + - SUM ( ALL + 81 ) THEN NULL ELSE 30 END + - ( - 81 ) AS col2, - 68 AS col2 +---- +-68 +111 query I rowsort label-6955 SELECT ALL 41 * + 47 + - NULLIF ( - CASE + COUNT ( * ) WHEN - 7 THEN 20 ELSE NULL END, + 97 + - + MAX ( ALL + CAST ( NULL AS INTEGER ) ) * + + 95 ) AS col1 @@ -36657,8 +37097,11 @@ SELECT + 45 * - 63 * - CAST ( - + 70 AS INTEGER ) + + - 28 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col1" at position 0 and "Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 70 col1, - 82 AS col1 +---- +-70 +-82 query I rowsort label-6959 SELECT + 30 + 0 * COUNT ( * ) + - 90 / + 52 @@ -36699,8 +37142,11 @@ SELECT ALL + 34 * - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \+ \(\- Int64\(\-37\)\) / coalesce\(max\(\(\- Int64\(98\)\)\), \(\- nullif\(\(\- \(\- sum\(DISTINCT Int64\(89\)\)\)\), Int64\(\-73\) \+ sum\(Int64\(70\)\) \* Int64\(8\)\)\), Int64\(7\) \* Int64\(39\) \* Int64\(\-50\) \+ Int64\(87\) \* \(\- nullif\(Int64\(20\), Int64\(\-16\) \+ avg\(Int64\(84\)\)\)\) \+ Int64\(\-67\) \+ Int64\(\-51\) / \(\- Int64\(66\)\) \+ \(\- Int64\(\-22\)\) / Int64\(34\) \* Int64\(39\)\) \- Int64\(\-9\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - 27 + - - 37 / COALESCE ( + MAX ( ALL - + 98 ), - NULLIF ( - - SUM ( DISTINCT + + ( + 89 ) ), - 73 + SUM ( + 70 ) * 8 ), + + 7 * 39 * - 50 + 87 * - NULLIF ( + + 20, - 16 + + AVG ( + 84 ) ) + - 67 + - 51 / - + 66 + - - 22 / 34 * 39 ) - + - 9 col1, 22 AS col1 +---- +-18.377551020408 +22 query I rowsort label-6967 SELECT ALL COUNT ( * ) - 47 * 95 AS col1 @@ -37008,8 +37454,11 @@ SELECT 39 + - 20 - + 14 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col1" at position 0 and "min\(\(\- Int64\(63\)\)\) / Int64\(57\) \- Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 AS col1, + MIN ( - ( 63 ) ) / ( 57 ) - - 12 AS col1 +---- +11 +80 query II rowsort label-7027 SELECT ALL + 72 + - + 20 / ( - 77 ) col0, 14 * - 95 AS col2 @@ -37122,8 +37571,11 @@ SELECT COUNT ( * ) / - 3 + + 51 * - 90 * + 74 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - -2501 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col1" at position 0 and "Int64\(83\) \+ Int64\(\-59\) \+ Int64\(\-74\) \+ \(\- Int64\(57\)\) \* Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 65 AS col1, 83 + + - 59 + - 74 + - ( + 57 ) * + 43 AS col1 +---- +-2501 +-65 query I rowsort label-7048 SELECT + 9 / COUNT ( * ) * - + CAST ( NULL AS INTEGER ) * + 18 @@ -37826,8 +38278,11 @@ SELECT ALL + 94 AS col0, + 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN CAST\(NULL AS Int32\) / \(\- Int64\(\-33\)\) \* \(\- Int64\(\-32\)\) \+ Int64\(27\) \* \(\- Int64\(88\)\) THEN nullif\(Int64\(85\), Int64\(\-49\)\) \+ \(\- min\(Int64\(61\)\)\) WHEN Int64\(87\) THEN Int64\(68\) ELSE NULL END AS col2" at position 0 and "Int64\(14\) \+ Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-81 +NULL query I rowsort SELECT - 66 * 0 - 65 col0 @@ -37863,8 +38318,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(28\) \+ Int64\(46\) \+ Int64\(38\) \+ Int64\(76\) / Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 28 + + + 46 + 38 + + ( + + 76 ) / 1 col0 +---- +188 +NULL query I rowsort label-7187 SELECT + CASE - + AVG ( ALL - 68 ) WHEN 10 / - 70 * - COUNT ( * ) THEN NULL WHEN + - 42 THEN + 4 ELSE - 75 END / - + 31 @@ -38375,8 +38833,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 62 * - COUNT ( * ) AS col0, 5 * + + 70 AS col0 +---- +-62 +350 query I rowsort label-7282 SELECT - COUNT ( * ) * + + 46 AS col2 @@ -38584,8 +39045,12 @@ SELECT + 67 / 76 AS col1 # Datafusion - Expected - 31 # Datafusion - Expected - 124 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(98\)\) \+ Int64\(30\) AS col1" at position 0 and "Int64\(43\) \+ Int64\(\-11\) \+ Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT COUNT ( + + 98 ) + + + 30 AS col1, 43 + - 11 + + 92 AS col1, 61 +---- +124 +31 +61 query I rowsort SELECT DISTINCT ( - 9 ) AS col1 @@ -39200,8 +39665,11 @@ SELECT + 64 * 39 * + + 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-22\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 22 AS col0, + COUNT ( * ) AS col0 +---- +1 +22 query I rowsort label-7444 SELECT ALL + COUNT ( * ) + 51 * - - 3 @@ -39606,8 +40074,11 @@ SELECT + COUNT ( - ( + - ( - + 60 ) ) ) + - COALESCE ( 11, 82, + 19 ) * - 1 AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - 2529 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-51\)\) \* \(\- Int64\(\-50\)\) \+ Int64\(\-21\) AS col1" at position 0 and "nullif\(Int64\(\-53\), CAST\(NULL AS Int32\) \+ \(\- Int64\(\-11\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 51 * - - 50 + - 21 AS col1, NULLIF ( - 53, CAST ( NULL AS INTEGER ) + - ( - 11 ) ) AS col1 +---- +-53 +2529 query I rowsort SELECT DISTINCT + + 88 - + + 38 @@ -39951,8 +40422,11 @@ SELECT ALL + 85 / 24, 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- nullif\(Int64\(3\), Int64\(\-53\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 21 + COUNT ( * ) AS col1, - NULLIF ( + 3, + - 53 ) AS col1 +---- +-20 +-3 query I rowsort label-7586 SELECT ALL - - COUNT ( * ) * + MAX ( DISTINCT 49 ) * 60 + - 18 - - 62 * + + 35 * - 66 @@ -40044,8 +40518,11 @@ SELECT ALL + 80 + + ( + 22 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col2" at position 0 and "Int64\(12\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 14 AS col2, 12 - + COUNT ( * ) AS col2 +---- +11 +14 query I rowsort SELECT ALL 97 + + 51 AS col2 @@ -40113,8 +40590,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, + 90 col0 +---- +-1 +90 query I rowsort SELECT ALL + + 31 * + 51 col0 @@ -40351,8 +40831,11 @@ 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\(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\. +query II valuesort 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 +---- +39 +NULL query I rowsort SELECT ALL - 53 + + 39 @@ -40931,8 +41414,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 17 AS col2, + COUNT ( * ) * + 15 AS col2 +---- +15 +17 query I rowsort SELECT DISTINCT + + 11 col1 @@ -40984,8 +41470,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "Int64\(5\) / Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 AS col0, 5 / + 39 AS col0 +---- +0 +79 query I rowsort label-7780 SELECT - MIN ( DISTINCT + 45 ) * + CASE CAST ( NULL AS INTEGER ) WHEN + - 90 THEN + - 62 ELSE 94 END + - 93 * + - 15 @@ -41005,8 +41494,11 @@ SELECT - 85 + - + 66 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86824 # Datafusion - Expected - -8554 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* Int64\(\-41\) \* Int64\(46\) \+ Int64\(67\) \+ Int64\(47\) \* \(\- CAST\(Int64\(43\) AS Int32\)\) AS col0" at position 0 and "Int64\(91\) \* Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 * - 41 * 46 + + + 67 + + 47 * - CAST ( + 43 AS INTEGER ) AS col0, 91 * - 94 AS col0 +---- +-8554 +-86824 query I rowsort SELECT ALL - 72 * - 67 AS col1 @@ -41321,8 +41813,11 @@ SELECT - 58 * 94 + + - 18 * + 57 * - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66666 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \+ Int64\(\-65\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-93\) \* Int64\(11\) \+ Int64\(81\) AS col1" at position 0 and "avg\(DISTINCT CAST\(NULL AS Int32\)\) \+ Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL 90 + - 65 * + COUNT ( * ) * - 93 * 11 + + 81 AS col1, + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + 0 AS col1 +---- +66666 +NULL query I rowsort SELECT ALL 2 + + 3 @@ -41373,8 +41868,11 @@ SELECT DISTINCT COUNT ( DISTINCT + 19 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( 40 ) AS col1, COUNT ( * ) AS col1 +---- +1 +40 query II rowsort label-7853 SELECT 74 + 54, COUNT ( CASE + ( + 14 ) WHEN + + 75 THEN 67 + + + 19 ELSE NULL END ) + + CASE - 36 WHEN + 18 + 1 THEN - COUNT ( * ) WHEN - - 13 THEN NULL WHEN + 87 THEN + 36 END - + 30 * 88 col1 @@ -41591,8 +42089,11 @@ SELECT - 31 + + 54, - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \* Int64\(61\) / \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(14\) \+ \(\- Int64\(\-81\)\) AS col1" at position 0 and "CAST\(Int64\(85\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 98 * + 61 / - - CAST ( NULL AS INTEGER ) + 14 + - - 81 AS col1, CAST ( + 85 AS INTEGER ) col1 +---- +85 +NULL query I rowsort label-7893 SELECT + NULLIF ( + + 90, - COUNT ( * ) * + + COUNT ( * ) ) - - 73 @@ -42231,8 +42732,12 @@ 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\(1\)\) AS count\(\*\)\) / \(\- Int64\(29\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 24 * - + 9 col0, 50 * + COUNT ( * ), - COUNT ( * ) / - + 29 col0 +---- +0 +216 +50 query I rowsort label-8011 SELECT + 30 + CAST ( NULL AS INTEGER ) @@ -42498,8 +43003,12 @@ SELECT DISTINCT COUNT ( DISTINCT + 95 ) + - 52 col2 # Datafusion - Expected - NULL # Datafusion - Expected - 20 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CASE nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(63\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(\-74\) THEN Int64\(5\) / Int64\(79\) ELSE NULL END AS col0" at position 0 and "Int64\(20\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +20 +85 +NULL query I rowsort SELECT ALL 67 + - ( - - 55 ) + + - 5 * + - 45 @@ -42528,8 +43037,12 @@ SELECT 24 + - 20 # Datafusion - Expected - 23 # Datafusion - Expected - 92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 23 AS col1, 92 + + 55 / ( - CAST ( - 87 AS INTEGER ) ) col0, - CAST ( NULL AS INTEGER ) col1 +---- +23 +92 +NULL query I rowsort SELECT ALL + 62 + - 11 @@ -42549,8 +43062,11 @@ 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\(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\. +query II valuesort 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 +---- +2004 +70 query I rowsort SELECT DISTINCT 87 - - 46 @@ -42978,8 +43494,11 @@ SELECT DISTINCT COUNT ( * ) * CASE + + 80 WHEN + 24 / - CAST ( - 87 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -5609 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 0 and "Int64\(71\) \* Int64\(\-79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 89 AS col1, 71 * + - 79 col1 +---- +-5609 +89 query I rowsort SELECT ( - 7 ) AS col2 @@ -43268,8 +43787,11 @@ SELECT - CASE - - 73 WHEN - 62 THEN NULL ELSE 76 END AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 36 AS col1, COUNT ( * ) * COUNT ( * ) AS col1 +---- +-36 +1 query II rowsort SELECT - 88, 67 AS col2 @@ -43371,8 +43893,11 @@ SELECT ALL + + MIN ( ALL + + 21 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90 AS col1, 83 AS col1 +---- +83 +90 query I rowsort label-8228 SELECT + 3 * - COUNT ( * ) * MIN ( + 83 ) AS col1 @@ -43423,8 +43948,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + + 18 - 97 * + CASE - 43 WHEN + 99 / 27 THEN NULL ELSE + COUNT ( * ) END * 34 AS col2, 26 AS col2 +---- +-3280 +26 query I rowsort SELECT ALL + 33 - - 37 AS col2 @@ -43686,8 +44214,11 @@ SELECT + + SUM ( ALL + 44 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 122 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col0" at position 0 and "Int64\(78\) \+ Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 29 col0, 78 + 44 AS col0 +---- +-29 +122 query II rowsort SELECT ALL - + 56 AS col0, + 3 AS col1 @@ -43802,8 +44333,11 @@ SELECT ALL 43 AS col2, 96 / - 28 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col1" at position 0 and "Int64\(\-39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 94 AS col1, - 39 AS col1 +---- +-39 +94 query I rowsort label-8310 SELECT CASE WHEN NOT NULL <> - 29 THEN NULL ELSE + - ( 66 ) - + 49 - 22 END * - - 50 + + COUNT ( * ) * - 6 @@ -43928,8 +44462,11 @@ 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\(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\. +query II valuesort SELECT ALL - + COALESCE ( 92, + + 89 * + COUNT ( * ) ) AS col0, + 96 + ( - 61 ) AS col0 +---- +-92 +35 query II rowsort SELECT + 88, 52 + 65 AS col0 @@ -44168,8 +44705,11 @@ SELECT - 43 + - 42 + - 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6431 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \* \(\- Int64\(\-66\)\) \- Int64\(29\) AS col1" at position 0 and "Int64\(\-33\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 97 * - - 66 - + + 29 AS col1, - 33 * COUNT ( * ) col1 +---- +-33 +-6431 query II rowsort label-8379 SELECT - 3 AS col2, 6 * + + COALESCE ( - 65, + ( 55 ) + CASE - 3 WHEN 58 * - 20 THEN 73 END ) + + SUM ( ALL - 52 ) * - SUM ( + 87 ) * - + 45 AS col1 @@ -44241,8 +44781,11 @@ 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\(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\. +query II valuesort SELECT - - COUNT ( * ) * - SUM ( 32 ) AS col0, + 75 AS col0 +---- +-32 +75 query I rowsort label-8393 SELECT DISTINCT - 30 / 97 + + - 46 + ( + 97 ) @@ -44353,8 +44896,11 @@ SELECT DISTINCT 0 * - NULLIF ( + CAST ( + 43 AS INTEGER ), - 40 + + 87 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7440 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \* Int64\(\-80\) AS col0" at position 0 and "Int64\(8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 93 * - 80 AS col0, + 8 AS col0 +---- +-7440 +8 query I rowsort label-8414 SELECT ALL - COUNT ( - 62 ) + + 58 - - COALESCE ( + ( - 26 ), 43 + - - MIN ( DISTINCT + 46 ) * + ( + - CAST ( COUNT ( * ) AS INTEGER ) ) ) - 95 AS col2 @@ -44385,8 +44931,11 @@ SELECT DISTINCT - 30 * 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "Int64\(74\) \+ \(\- \(\- Int64\(\-5\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 17 ) col0, 74 + - - ( - 5 ) AS col0 +---- +17 +69 query I rowsort label-8420 SELECT ALL - - 99 + COALESCE ( MIN ( - 42 ), 32 ) @@ -44511,8 +45060,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) - - ( + 17 ) AS col2, 94 * 59 AS col2 +---- +18 +5546 query II rowsort SELECT DISTINCT 68, - 75 col0 @@ -44568,8 +45120,11 @@ SELECT + 52 + 94 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 118 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-22\)\) \+ \(\- CAST\(Int64\(76\) AS Int32\)\) \+ Int64\(78\) \- Int64\(\-94\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 22 + - CAST ( + 76 AS INTEGER ) + 78 - - 94 AS col0, + 90 AS col0 +---- +118 +90 query I rowsort SELECT - + 47 + - + 67 col2 @@ -44663,8 +45218,11 @@ SELECT + 0 + 2 + - 44 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col1" at position 0 and "Int64\(38\) \+ Int64\(78\) \+ \(\- coalesce\(Int64\(52\), Int64\(64\) \+ Int64\(\-80\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 25 AS col1, 38 + + 78 + - COALESCE ( 52, 64 + - 80 ) AS col1 +---- +-25 +64 query I rowsort label-8472 SELECT - ( + 25 ) / - - COUNT ( * ) @@ -44743,8 +45301,11 @@ 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 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 II valuesort SELECT + 55 + + 85 * + + 57 - 23 * + COUNT ( * ) + + - 1 AS col2, + 40 AS col2 +---- +40 +4876 query II rowsort label-8486 SELECT - - 10, - SUM ( ALL - 51 ) + COUNT ( * ) AS col1 @@ -44980,8 +45541,11 @@ SELECT ALL SUM ( ALL + + 92 ) + - + 88 + 14, + 14 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 460 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col1" at position 0 and "Int64\(23\) \* \(\- Int64\(\-20\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 28 AS col1, 23 * - - 20 AS col1 +---- +-28 +460 query I rowsort label-8530 SELECT DISTINCT 88 * 37 * - COUNT ( * ) * - - 13 * - 88 @@ -45240,8 +45804,11 @@ 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\(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\. +query II valuesort SELECT - 32 AS col2, CASE - + AVG ( ALL - 40 ) WHEN + 79 + + 17 + + 94 THEN + ( + - COUNT ( * ) ) WHEN + + 57 THEN + 61 END AS col2 +---- +-32 +NULL query I rowsort SELECT ALL + 14 + + 4 AS col1 @@ -45276,8 +45843,11 @@ SELECT - MAX ( ALL 26 ) # 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 "Int64\(6\) AS col0" at position 0 and "Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 AS col0, 16 AS col0 +---- +16 +6 query I rowsort SELECT DISTINCT + 25 * - 32 @@ -45552,8 +46122,11 @@ SELECT - 79 + CASE + AVG ( DISTINCT + - 53 ) WHEN - - 80 * + 6 THEN NULL WHEN + # 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 "Int64\(6\) AS col2" at position 0 and "Int64\(60\) \+ Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 AS col2, + 60 + 9 AS col2 +---- +6 +69 query I rowsort label-8639 SELECT + 62 * COUNT ( * ) / - 50 + - COALESCE ( - 57, 63 ) + - 7 + + + 76 + + - 91 * + ( COUNT ( * ) ) @@ -45757,8 +46330,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(71\) \* Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 * + - 51 + - 74 AS col0, COUNT ( * ) + + 71 * 67 AS col0 +---- +-4562 +4758 query I rowsort label-8678 SELECT + + CASE - ( - COUNT ( * ) ) WHEN + 14 THEN NULL ELSE + ( - 66 ) END @@ -45783,8 +46359,11 @@ SELECT 77 * - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 col0, - 0 AS col0 +---- +-82 +0 query I rowsort label-8683 SELECT 90 * - 88 * + + 62 * + COUNT ( * ) @@ -45868,8 +46447,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - - ( - 40 ) ) AS col1, - COUNT ( * ) AS col1 +---- +-1 +-40 query I rowsort label-8699 SELECT - - 34 - - - ( - CASE - - 73 WHEN + 70 THEN CAST ( + + 89 AS INTEGER ) END ) + - NULLIF ( + 35, - CAST ( + 66 AS INTEGER ) ) @@ -46093,8 +46675,11 @@ SELECT ALL + COUNT ( * ) / - 61 * - CAST ( + 59 AS INTEGER ) * + - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(66\) AS Int32\)\) \+ Int64\(75\) AS col1" at position 0 and "coalesce\(Int64\(55\), Int64\(33\)\) \+ Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( + 66 AS INTEGER ) + + 75 AS col1, COALESCE ( + 55, + 33 ) + + 77 AS col1 +---- +132 +9 query I rowsort label-8743 SELECT ALL 7 + + - 62 - - 72 / - + 70 * - 77 - - CAST ( NULL AS INTEGER ) AS col2 @@ -46444,8 +47029,11 @@ SELECT + 99 - - - 2 * COALESCE ( + COALESCE ( + + 55, + 0 + - 52 * - - 35 ), + C # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) + + - 76 col0 +---- +-75 +1 query II rowsort label-8809 SELECT - - 20 / - 29, 77 * 30 * - - COUNT ( * ) AS col1 @@ -46493,8 +47081,11 @@ SELECT DISTINCT + MIN ( DISTINCT + + 95 ) AS col2, + 7 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 "sum\(Int64\(98\)\) AS col1" at position 0 and "Int64\(33\) \+ CAST\(NULL AS Float64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT + SUM ( ALL + 98 ) AS col1, + 33 + + CAST ( NULL AS FLOAT8 ) AS col1 +---- +98 +NULL query I rowsort label-8818 SELECT + MIN ( ALL + 6 ) AS col2 @@ -46763,8 +47354,11 @@ SELECT DISTINCT + 0 + - COALESCE ( 35, - 14 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - 1274 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-71\) AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(13\) \* Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( - 71 AS INTEGER ) + COUNT ( * ) AS col1, + 13 * + 98 AS col1 +---- +-70 +1274 query I rowsort label-8870 SELECT DISTINCT - SUM ( 6 ) @@ -46795,8 +47389,11 @@ SELECT + 51 AS col1, 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(13\), Int64\(11\) \* Int64\(83\)\) \+ Int64\(16\) \- Int64\(20\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( + 13, 11 * 83 ) + + 16 - + 20 AS col1, CAST ( NULL AS INTEGER ) AS col1 +---- +9 +NULL query I rowsort SELECT ALL + 7 + + 82 @@ -48010,8 +48607,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "coalesce\(\(\- Int64\(\-56\)\), Int64\(93\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 AS col0, COALESCE ( - - 56, 93 ) AS col0 +---- +25 +56 query I rowsort SELECT ALL 88 + ( - 88 ) @@ -48021,8 +48621,11 @@ SELECT ALL 88 + ( - 88 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-45\)\) \- Int64\(\-15\) / Int64\(59\) AS col2" at position 0 and "min\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 45 - - 15 / + 59 AS col2, MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 +---- +45 +NULL query I rowsort label-9116 SELECT - + 71 * + 79 * - + 33 + + - ( + 76 ) + - COUNT ( DISTINCT 39 + - ( 69 ) * 63 ) * + 73 @@ -48127,8 +48730,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 42 AS col0, + COUNT ( * ) AS col0 +---- +1 +42 query I rowsort label-9136 SELECT ALL + CASE - - 93 WHEN + 28 THEN + 89 WHEN 14 THEN NULL END * - + CASE 95 WHEN + 15 * - 17 THEN + ( 38 ) - NULLIF ( 32 - ( MIN ( DISTINCT 46 ) + MIN ( - 91 ) ), + 16 - - 4 ) * ( - COUNT ( * ) - - CASE + 49 WHEN + 4 * + 11 THEN NULL ELSE + 50 END ) ELSE NULL END * 99 @@ -48182,8 +48788,11 @@ SELECT 95 AS col1, + 39 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col0" at position 0 and "Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 AS col0, 44 col0 +---- +30 +44 query I rowsort SELECT - 6 * 73 @@ -48280,8 +48889,11 @@ SELECT DISTINCT 1 - + - 26 * + + COUNT ( * ) - + 55 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 55154 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) / Int64\(50\) \+ Int64\(\-39\) AS col2" at position 0 and "Int64\(92\) \+ Int64\(\-42\) \* Int64\(69\) \* nullif\(Int64\(\-19\), Int64\(61\) \* CAST\(CAST\(NULL AS Int32\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 / 50 + - 39 AS col2, 92 + - 42 * + + 69 * + + NULLIF ( - 19, 61 * CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col2 +---- +-38 +55154 query I rowsort SELECT DISTINCT 54 * + + 28 col2 @@ -48695,8 +49307,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) / + - 66 AS col2, 37 AS col2 +---- +0 +37 query I rowsort label-9246 SELECT ALL + 66 * + CAST ( NULL AS INTEGER ) * - 54 col2 @@ -49086,8 +49701,11 @@ 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\(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\. +query II valuesort SELECT - 28 * + + COUNT ( * ) - 94 AS col0, - 75 col0 +---- +-122 +-75 query II rowsort label-9320 SELECT + COUNT ( * ) / - + 99, COUNT ( * ) AS col0 @@ -49573,8 +50191,11 @@ SELECT COUNT ( * ) + 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* coalesce\(Int64\(15\), Int64\(\-57\)\) \* \(\- avg\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\)\) \* Int64\(\-38\) \+ max\(Int64\(53\)\) AS col0" at position 0 and "Int64\(11\) / Int64\(74\) \+ Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + 80 * ( COALESCE ( + 15, - 57 ) ) * - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - 38 + MAX ( 53 ) AS col0, 11 / 74 + + + 43 AS col0 +---- +43 +NULL query I rowsort SELECT 38 + + 25 @@ -50214,8 +50835,11 @@ SELECT DISTINCT 4, + ( - COUNT ( * ) ) * - 8 * - 96 col1 # 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\(32\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 32 AS col2, + 2 AS col2 +---- +2 +32 query I rowsort label-9533 SELECT - 92 / + 64 + + + CAST ( 46 AS INTEGER ) @@ -50265,8 +50889,11 @@ SELECT ALL - - 11 + + + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - -891 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(99\)\) \* Int64\(\-9\) AS col1" at position 0 and "Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( + 99 ) * + - 9 AS col1, + 37 AS col1 +---- +-891 +37 query II rowsort label-9543 SELECT ALL + 42 + + - 61 + - + MAX ( ALL 96 ) + - COUNT ( * ) / 26 - + 71 + - - 31 * + COUNT ( * ) AS col1, COUNT ( * ) AS col2 @@ -50419,8 +51046,11 @@ SELECT ALL COUNT ( + - 84 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 926 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \+ \(\- Int64\(\-62\)\) \+ Int64\(32\) \* Int64\(24\) AS col2" at position 0 and "Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 96 + - - 62 + 32 * + 24 AS col2, - 81 col2 +---- +-81 +926 query I rowsort label-9573 SELECT + 97 + 23 / + 78 AS col0 @@ -50710,8 +51340,11 @@ SELECT CAST ( 63 AS INTEGER ) * 19 - COUNT ( * ) / - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 581 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* Int64\(83\) AS col0" at position 0 and "CASE Int64\(27\) WHEN Int64\(\-16\) THEN Int64\(65\) WHEN Int64\(8\) \* Int64\(\-73\) \* Int64\(\-10\) THEN NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 * + 83 AS col0, CASE + + 27 WHEN - 16 THEN + 65 WHEN + 8 * + - 73 * - 10 THEN NULL END AS col0 +---- +581 +NULL query II rowsort label-9628 SELECT ALL - COUNT ( * ) AS col2, + COUNT ( + 93 ) @@ -50848,8 +51481,11 @@ SELECT ALL - 4 * + + 91 AS col2, 59 + - 71 + + 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6004 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* Int64\(\-79\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 76 * - 79 col2, 55 col2 +---- +-6004 +55 query I rowsort label-9653 SELECT ALL 23 / COUNT ( * ) @@ -50869,8 +51505,11 @@ SELECT COUNT ( * ) * - 5 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 57 * + COUNT ( * ) AS col1, - COUNT ( * ) * 51 AS col1 +---- +-51 +57 query I rowsort label-9657 SELECT 33 * + + 57 + + - NULLIF ( - 61, COUNT ( * ) ) * + 16 @@ -51002,8 +51641,11 @@ SELECT ALL + 45 / 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 26 AS col2, + COUNT ( * ) AS col2 +---- +1 +26 query I rowsort SELECT - 35 + - + 33 @@ -51515,8 +52157,11 @@ 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\(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\. +query II valuesort SELECT 1 * - COUNT ( * ) AS col1, 79 + - + 54 AS col1 +---- +-1 +25 query I rowsort label-9780 SELECT ALL - 14 + + 10 + COALESCE ( - CAST ( + 89 AS INTEGER ), + COALESCE ( + 73, + 40 * + + 46 * 55 + - - 27 + 21 + + CAST ( - - 24 AS INTEGER ) - - - CASE - - COUNT ( * ) WHEN - 86 THEN NULL WHEN + 37 THEN + NULLIF ( + 96, + + 81 ) - - 63 + + CASE - - 39 WHEN + 88 * 58 / + 78 THEN 57 WHEN + 44 THEN 81 + 40 ELSE + 89 END ELSE NULL END + 57 * 8 * 79 ) ) * ( COUNT ( * ) ) AS col2 @@ -51710,8 +52355,11 @@ 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\(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\. +query IR valuesort 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 +---- +-95 +NULL query II rowsort SELECT 52 * - 71 + - + 47 + + 18 * + 9 * - 39 AS col0, - 8 + + 43 AS col1 @@ -51773,8 +52421,11 @@ SELECT DISTINCT ( + + 71 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 390 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* \(\- Int64\(\-10\)\) AS col1" at position 0 and "Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 39 * - ( - 10 ) AS col1, 95 AS col1 +---- +390 +95 query I rowsort SELECT ALL 15 * + 63 * - - 42 * + 31 + + 92 @@ -51846,8 +52497,11 @@ SELECT DISTINCT - CAST ( + 76 AS INTEGER ) / - 4 + - 37 + - 52 * ( - 13 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col0" at position 0 and "Int64\(\-81\) \+ Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 56 AS col0, - 81 + 63 col0 +---- +-18 +56 query I rowsort SELECT - 76 * - 71 @@ -51907,8 +52561,11 @@ SELECT 35 + + 95 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 32160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col2" at position 0 and "Int64\(67\) \* Int64\(8\) \* Int64\(\-30\) \* \(\- Int64\(2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 3 AS col2, 67 * + 8 * - 30 * - + 2 AS col2 +---- +3 +32160 query I rowsort SELECT ALL + 62 * + 11 @@ -52091,8 +52748,11 @@ SELECT - 47 - + 89 * + CAST ( 29 AS INTEGER ) - NULLIF ( + 89, 12 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 5270 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(CASE Int64\(76\) WHEN Int64\(\-75\) / \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-79\) \* Int64\(45\) / coalesce\(Int64\(19\), Int64\(46\) / Int64\(\-62\) \+ Int64\(62\) \* Int64\(35\) \+ Int64\(16\)\) \* Int64\(54\) \* Int64\(67\) \- Int64\(36\) / Int64\(\-18\) THEN Int64\(17\) END\) AS col2" at position 0 and "Int64\(\-62\) \* Int64\(\-85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + AVG ( ALL + CASE + + 76 WHEN - 75 / - CAST ( NULL AS INTEGER ) + - 79 * 45 / COALESCE ( 19, + 46 / + - 62 + 62 * 35 + + + 16 ) * 54 * + 67 - + 36 / - 18 THEN + 17 END ) AS col2, - 62 * - 85 AS col2 +---- +5270 +NULL query I rowsort SELECT + ( + + 35 ) * 36 AS col2 @@ -52135,8 +52795,11 @@ SELECT - 24 - + + 53 - + 38 + - 26 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\(DISTINCT Int64\(\-25\)\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( DISTINCT - 25 ) AS col2, 47 col2 +---- +1 +47 query I rowsort SELECT ALL + 26 - - 79 diff --git a/data/sqlite/random/expr/slt_good_89.slt b/data/sqlite/random/expr/slt_good_89.slt index 3804ea4..130a389 100644 --- a/data/sqlite/random/expr/slt_good_89.slt +++ b/data/sqlite/random/expr/slt_good_89.slt @@ -573,8 +573,12 @@ SELECT ALL 90, + 10 / - 39 AS col0 # Datafusion - Expected - -91 # Datafusion - Expected - -40 # Datafusion - Expected - -281 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \+ Int64\(68\) \* Int64\(\-1\) AS col0" at position 1 and "\(\- Int64\(\-87\)\) / Int64\(\-5\) \- Int64\(3\) \* Int64\(88\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 91 AS col2, 28 + + 68 * - 1 col0, - - 87 / - 5 - + 3 * 88 col0 +---- +-281 +-40 +-91 query I rowsort SELECT 5 * - 13 @@ -853,8 +857,11 @@ SELECT ALL + 53 * - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - -3471 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col1" at position 0 and "Int64\(39\) \* \(\- Int64\(89\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 2 AS col1, 39 * - + 89 AS col1 +---- +-3471 +2 query II rowsort label-153 SELECT + 19 AS col2, + COALESCE ( - 63, - 49, 40 + - NULLIF ( COUNT ( * ), + - 92 * + 8 ) * 37 - COUNT ( * ), - 30 * - + 43 - 72 ) AS col1 @@ -1266,8 +1273,11 @@ SELECT ALL 34 + + - COUNT ( * ) + 27 AS col0, 38 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col2" at position 0 and "\(\- min\(coalesce\(Int64\(18\), \(\- nullif\(Int64\(22\), Int64\(\-47\) \+ Int64\(98\)\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 27 AS col2, - MIN ( + COALESCE ( 18, - + NULLIF ( 22, + - 47 + + 98 ) ) ) AS col2 +---- +-18 +-27 query I rowsort label-231 SELECT DISTINCT - COUNT ( * ) + - 1 AS col1 @@ -1375,8 +1385,11 @@ SELECT ALL + 94 + - 57 * - - 54 * 37 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 + + + COUNT ( * ) col0, 30 col0 +---- +30 +45 query I rowsort SELECT 80 - + 18 @@ -1910,8 +1923,11 @@ SELECT 72 / - - 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19256 # Datafusion - Expected - 2838 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* Int64\(\-29\) \* Int64\(\-83\) AS col1" at position 0 and "Int64\(\-86\) \* Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 * + - 29 * + ( - 83 ) col1, - 86 * - 33 AS col1 +---- +19256 +2838 query I rowsort SELECT ALL 5 - + ( - 33 ) AS col1 @@ -2082,8 +2098,11 @@ SELECT ALL - 77 - - 67 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 3073 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col0" at position 0 and "Int64\(32\) \* Int64\(96\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 53 AS col0, 32 * 96 + + COUNT ( * ) col0 +---- +3073 +53 query I rowsort SELECT + 58 * + 88 @@ -2201,8 +2220,11 @@ SELECT DISTINCT COUNT ( DISTINCT - + 94 ) * - 82 * 64 - + - 99, - 82 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT ALL + 61 AS col1, - ( + 83 ) AS col1 +---- +-83 +61 query I rowsort SELECT + 50 + + 61 col2 @@ -2218,8 +2240,11 @@ SELECT + + 15 * + COUNT ( DISTINCT 77 ) AS col0, - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - -253 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col0" at position 0 and "Int64\(57\) \+ Int64\(5\) \* Int64\(\-62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 97 col0, + 57 + + + 5 * - 62 AS col0 +---- +-253 +97 query I rowsort label-412 SELECT DISTINCT - 27 * + COUNT ( * ) @@ -2406,8 +2431,11 @@ SELECT ALL - 98 - + 75 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 col2, + CAST ( NULL AS INTEGER ) AS col2 +---- +37 +NULL query I rowsort SELECT + 2 + 68 @@ -2554,8 +2582,11 @@ SELECT NULLIF ( - - 79, - - ( - 73 ) * - 22 * - ( + 53 ) + + COUNT ( * ) ) * + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2926 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* \(\- Int64\(\-77\)\) AS col2" at position 0 and "Int64\(62\) / \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 38 * - - 77 AS col2, + 62 / + - CAST ( NULL AS INTEGER ) AS col2 +---- +2926 +NULL query I rowsort SELECT + 76 * - 62 + - - 69 + + 30 * + 12 AS col1 @@ -2602,8 +2633,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-98\) \* Int64\(\-64\) \* \(\- Int64\(3\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 * - - MAX ( DISTINCT - 83 ) AS col2, 62 + 19 + + COUNT ( * ) + - 98 * ( - 64 ) * - ( ( 3 ) ) AS col2 +---- +-1411 +-18734 query I rowsort label-486 SELECT 23 + + COUNT ( * ) col1 @@ -3553,8 +3587,11 @@ SELECT COALESCE ( 76, + 50, - 94 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "min\(Int64\(62\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 37 AS col0, MIN ( + + 62 ) col0 +---- +37 +62 query I rowsort SELECT + 81 - 29 + ( 8 ) + 43 * + 62 AS col1 @@ -3617,8 +3654,11 @@ SELECT 40 * - 59 + 69 - 61 # 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 col2" at position 0 and "\(\- CASE Int64\(25\) WHEN Int64\(\-50\) \+ Int64\(17\) THEN Int64\(71\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 AS col2, - CASE 25 WHEN - 50 + + 17 THEN 71 END AS col2 +---- +69 +NULL query I rowsort SELECT ALL + 76 * - - 94 * - - 82 @@ -3816,8 +3856,11 @@ SELECT 23 - + + 32 + MAX ( DISTINCT - 9 ) * + COUNT ( * ) + 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) AS col2" at position 0 and "Int64\(35\) / Int64\(53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 53 AS col2, 35 / 53 AS col2 +---- +-53 +0 query I rowsort label-721 SELECT COUNT ( * ) * - + 96 / 3 / CAST ( + 7 AS INTEGER ) AS col0 @@ -4043,8 +4086,11 @@ SELECT 52, 63 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -1619 -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\(33\) \* Int64\(\-51\) \+ Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( + 11 ) AS col2, + 33 * - 51 + + 64 AS col2 +---- +-1 +-1619 query I rowsort SELECT DISTINCT + - 64 AS col2 @@ -4108,8 +4154,11 @@ SELECT - - 77 + - - 44 + - + 94 * + COUNT ( * ) # 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\(DISTINCT Int64\(66\)\) AS col0" at position 0 and "Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( DISTINCT + 66 ) AS col0, - 38 AS col0 +---- +-38 +1 query I rowsort SELECT ALL 38 * 18 + + 72 - + - 47 * 11 * + 13 AS col2 @@ -4176,8 +4225,11 @@ SELECT DISTINCT NULLIF ( 76, + - 35 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 5301 # Datafusion - Expected - -1152 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(5\) \+ \(\- Int64\(\-66\)\) \* Int64\(74\) \+ Int64\(22\) AS col0" at position 0 and "Int64\(\-12\) \* Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 79 * 5 + - - 66 * + 74 + 22 AS col0, - 12 * + 96 AS col0 +---- +-1152 +5301 query I rowsort label-790 SELECT DISTINCT 52 / - + 90 * 13 * 66 @@ -4219,8 +4271,12 @@ SELECT - NULLIF ( 59, - 2 + 69 ) + - COUNT ( * ), - COUNT ( * ) * + COUNT ( * ) # Datafusion - Expected - -168 # Datafusion - Expected - -370 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-14\)\) \* \(\- Int64\(12\)\) AS col0" at position 0 and "Int64\(\-31\) / \(\- coalesce\(Int64\(89\), Int64\(62\), Int64\(3\) \* Int64\(32\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - ( + - 14 ) * - + 12 AS col0, + 74 * - + 5 AS col2, + - 31 / - COALESCE ( 89, + 62, 3 * 32 ) col0 +---- +-168 +-370 +0 query I rowsort SELECT DISTINCT + 55 - 37 + + + 72 @@ -4235,8 +4291,11 @@ SELECT ALL NULLIF ( - + 15, 90 - MIN ( DISTINCT + + 39 ) + + 15 + - CASE + 31 WH # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \- Int64\(\-26\) AS col1" at position 0 and "Int64\(\-20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 8 - - 26 AS col1, - 20 AS col1 +---- +-20 +18 query I rowsort label-801 SELECT - COUNT ( * ) - - 79 @@ -4453,8 +4512,11 @@ SELECT ALL - 45 * - 46 * + 44 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(60\)\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 60 AS col0, + ( 72 ) AS col0 +---- +-60 +72 query I rowsort label-843 SELECT - - COUNT ( * ) * + 77 * + 18 - + SUM ( 9 ) * NULLIF ( + 16, + + COUNT ( * ) - + 2 ) * - COUNT ( * ) col2 @@ -4550,8 +4612,11 @@ SELECT ALL - 1 + + 18 - - 22 + - 57 / 54 + - 2 * + 22 * - + 97 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - 90 ) AS col2, 91 AS col2 +---- +-90 +91 query I rowsort SELECT ALL - ( 5 ) + 73 AS col2 @@ -4848,8 +4913,11 @@ 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\(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\. +query II valuesort SELECT - 26 / 14 * - COUNT ( * ) / - SUM ( - 6 ) * 46 AS col0, 59 AS col0 +---- +0 +59 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -5172,8 +5240,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - NULLIF ( + 37, - + 98 + - 86 ) AS col1, + COUNT ( * ) * 70 AS col1 +---- +-37 +70 query I rowsort label-982 SELECT MIN ( + - 29 ) AS col1 @@ -5316,8 +5387,11 @@ SELECT ALL MIN ( DISTINCT - - 91 ) + - 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - -62 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) AS col1" at position 0 and "Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 62 AS col1, - 56 col1 +---- +-56 +-62 query I rowsort SELECT DISTINCT - 50 + 93 col2 @@ -5678,8 +5752,11 @@ SELECT ALL 89 + + + 55 / + NULLIF ( + CAST ( + + ( - 19 ) AS INTEGER ), + NULLIF # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col2" at position 0 and "Int64\(\-17\) \- Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 12 col2, - 17 - + 52 col2 +---- +-12 +-69 query I rowsort SELECT ALL + 29 + + 66 @@ -5786,8 +5863,11 @@ SELECT 39 + - - 76 - MIN ( + 93 ) + + 95 * + + 39 * 72 + + COUNT ( * ) / + + ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col2" at position 0 and "Int64\(\-35\) \+ Int64\(\-7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 78 AS col2, - 35 + - 7 AS col2 +---- +-42 +-78 query I rowsort SELECT ALL - 25 + + 46 * - 79 * - 42 col1 @@ -6227,8 +6307,11 @@ SELECT + 96 AS col2, - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 7543 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \- \(\- CAST\(NULL AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(Int64\(13\) AS Int32\) \* Int64\(41\) \* Int64\(14\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 - - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0, CAST ( + 13 AS INTEGER ) * 41 * + + 14 + COUNT ( * ) + 80 AS col0 +---- +7543 +NULL query I rowsort label-1184 SELECT DISTINCT + ( - 49 ) / - COALESCE ( - 95, 6 + - 60 ) - - 28 + 16 AS col2 @@ -6472,8 +6555,12 @@ NULL # Datafusion - Expected - 79 # Datafusion - Expected - 29 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col2" at position 0 and "Int64\(\-16\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 79 AS col2, + 28 + + COUNT ( * ), + - 16 col2 +---- +-16 +29 +79 query I rowsort SELECT ALL 92 + - + 60 + + 18 AS col2 @@ -6680,8 +6767,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 35 AS col2, 65 AS col2 +---- +35 +65 query I rowsort label-1270 SELECT COUNT ( * ) * - ( + - 42 ) + - 69 @@ -6795,8 +6885,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 82 + 13 * + 81 + + 2 + - - 87 / + - 54 AS col0, - COUNT ( * ) * - 20 AS col0 +---- +1136 +20 query I rowsort label-1292 SELECT DISTINCT - 80 / + 40 AS col2 @@ -6940,8 +7033,11 @@ 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\(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\. +query II valuesort SELECT ALL + 83 * + COUNT ( * ) + - - COUNT ( * ) - - 28 * 90 AS col1, 84 AS col1 +---- +2604 +84 query I rowsort SELECT + 72 * 19 + - 74 * 66 col0 @@ -7577,8 +7673,11 @@ 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\(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\. +query II valuesort SELECT - 55 * MAX ( ALL 33 ) / MAX ( + + 45 ) * + - COUNT ( * ) AS col0, 7 + ( 98 ) AS col0 +---- +105 +40 query I rowsort label-1440 SELECT - CASE + 40 WHEN - - ( - + COUNT ( * ) ) + CAST ( - 38 AS INTEGER ) THEN - MAX ( - 15 ) WHEN - + 94 * + 35 THEN NULL END AS col2 @@ -7860,8 +7959,11 @@ SELECT ALL 67 AS col2, 67 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "Int64\(57\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 AS col0, 57 / COUNT ( * ) AS col0 +---- +57 +69 query I rowsort SELECT DISTINCT 19 - 87 AS col1 @@ -8006,8 +8108,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - COUNT ( * ) ) AS col1, 48 AS col1 +---- +-1 +48 query II rowsort label-1521 SELECT - 25 / 7 * + ( COUNT ( * ) ) AS col1, 65 @@ -8250,8 +8355,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(14\) \+ Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 22 col0, COUNT ( ALL 96 ) - - + 25 - - - 6 + COUNT ( * ) / + 14 + - 0 AS col0 +---- +20 +22 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -8375,8 +8483,11 @@ SELECT 53 * - + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "Int64\(\-20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 18 AS col0, - 20 AS col0 +---- +-20 +18 query I rowsort SELECT DISTINCT ( + + 48 ) * 31 AS col2 @@ -8695,8 +8806,11 @@ SELECT COALESCE ( + 45, - 43 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -398 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* \(\- Int64\(6\)\) \+ \(\- Int64\(86\)\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 52 * - + 6 + - + 86 AS col1, + 75 AS col1 +---- +-398 +75 query II rowsort label-1652 SELECT 77 AS col1, - COUNT ( * ) - + ( + 89 ) + ( - - 95 ) @@ -9362,8 +9476,11 @@ SELECT - 40 + - + 49 / 52 * - + 87 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -154 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) \- Int64\(67\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 87 - 67 AS col1, 55 AS col1 +---- +-154 +55 query I rowsort label-1780 SELECT + CASE - 17 WHEN + 85 + + + COALESCE ( - 31, - 66 ) - - COUNT ( * ) THEN + 5 WHEN - - 29 + + + COUNT ( * ) / + + 33 * - AVG ( - 79 ) * + 93 THEN NULL END AS col1 @@ -9437,8 +9554,11 @@ SELECT DISTINCT 80 - + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 152 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \+ Int64\(57\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 95 ) + 57 AS col2, 23 col2 +---- +152 +23 query I rowsort SELECT DISTINCT 9 - - 46 @@ -9540,8 +9660,11 @@ SELECT DISTINCT + 34 + + 58 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -8253504 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "Int64\(\-4\) \* Int64\(8\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- Int64\(63\)\) \* CASE Int64\(67\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN NULL WHEN CASE \(\- min\(Int64\(\-7\)\)\) WHEN \(\- \(\- CASE \(\- Int64\(85\)\) WHEN \(\- Int64\(68\)\) THEN Int64\(15\) END\)\) THEN max\(Int64\(\-56\)\) / \(\- Int64\(94\)\) WHEN Int64\(8\) THEN NULL ELSE Int64\(74\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-54\) \+ \(\- Int64\(\-49\)\) \+ Int64\(50\) \- count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(\(\- CAST\(NULL AS Int32\)\)\)\) \* Int64\(86\) \* CASE Int64\(\-11\) WHEN Int64\(49\) THEN Int64\(\-95\) \+ Int64\(64\) \* Int64\(67\) END \+ Int64\(\-21\) END THEN NULL ELSE max\(Int64\(46\)\) \* Int64\(89\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-8253504 +20 query I rowsort label-1814 SELECT DISTINCT + MAX ( DISTINCT 32 ) + + - 86 / 23 + 91 + - + 33 * + - 53 + - 49 AS col2 @@ -9836,8 +9959,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) col0, 34 AS col0 +---- +-1 +34 query I rowsort label-1870 SELECT ALL - 40 * + CASE + 94 WHEN + 20 THEN 0 - - CAST ( NULL AS INTEGER ) - + 4 ELSE 62 END AS col0 @@ -9977,8 +10103,11 @@ SELECT + 10 * + NULLIF ( + 15, - 88 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) \+ Int64\(50\) \- Int64\(\-94\) / Int64\(76\) AS col1" at position 0 and "CAST\(NULL AS Float64\) \* Int64\(\-39\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - 15 + 50 - + - 94 / + + 76 AS col1, CAST ( NULL AS FLOAT8 ) * - 39 + + COUNT ( * ) AS col1 +---- +36 +NULL query II rowsort label-1897 SELECT ALL + COUNT ( * ) AS col1, + CASE - MIN ( - 73 ) WHEN + 97 THEN 8 + 21 END * + 50 * MIN ( - COALESCE ( + NULLIF ( - 8, + ( - 31 ) ), - 44 - + CASE - 63 WHEN - - 68 * + 26 + + 37 + - 63 - + 75 * 92 THEN - 23 END ) ) * + 52 * + - 33 @@ -10025,8 +10154,11 @@ SELECT DISTINCT 79 * + + 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 0 and "Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 96 AS col0, 32 col0 +---- +32 +96 query I rowsort label-1906 SELECT + NULLIF ( - COUNT ( * ), + 30 ) * + COUNT ( * ) / 2 @@ -10091,8 +10223,12 @@ SELECT ALL + 22 - - 87 # Datafusion - Expected - 74 # Datafusion - Expected - NULL # Datafusion - Expected - -268 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "sum\(\(\- Int64\(\-57\)\)\) \+ Int64\(89\) \* count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CASE Int64\(50\) WHEN Int64\(\-8\) \* Int64\(\-78\) \+ Int64\(85\) \* \(\- CASE Int64\(99\) WHEN Int64\(\-90\) THEN Int64\(5\) END\) THEN CAST\(NULL AS Int32\) ELSE NULL END\) \- Int64\(61\) \* Int64\(\-79\) \* Int64\(30\) \* Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-268 +74 +NULL query I rowsort SELECT 97 - 41 @@ -10403,8 +10539,11 @@ SELECT DISTINCT 67 col1, 40 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) / Int64\(84\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 97 / + 84 * COUNT ( * ) col1, 47 AS col1 +---- +-1 +47 query I rowsort SELECT + 75 * + + 34 @@ -10430,8 +10569,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * - 39 + - - 81 * + 54 AS col0, 52 * + 22 + + 35 AS col0 +---- +1179 +4335 query II rowsort label-1981 SELECT ALL - 39 * - 45 + + - ( ( - - COUNT ( * ) ) ) + + 22, - 24 AS col0 @@ -10871,8 +11013,11 @@ SELECT 55 + - - 56 + - NULLIF ( + + COUNT ( * ), - 8 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - -29 -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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 col0, - 29 col0 +---- +-29 +39 query I rowsort SELECT 71 * - - 1 @@ -12228,8 +12373,11 @@ SELECT COALESCE ( - ( + + SUM ( DISTINCT - 34 ) ), - 58 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-82\)\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 82 AS col2, 28 AS col2 +---- +28 +82 query I rowsort SELECT + 63 + + 13 + + + 36 @@ -12772,8 +12920,12 @@ SELECT 54 * - + 98 * - 88 # Datafusion - Expected - -1 # Datafusion - Expected - 1 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - COUNT ( * ) AS col2, + COUNT ( * ) AS col2, - + 37 +---- +-1 +-37 +1 query I rowsort SELECT 34 * - - 25 @@ -12936,8 +13088,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 * - - COUNT ( * ) col2, + ( + 30 ) AS col2 +---- +30 +92 query I rowsort SELECT DISTINCT + 83 - + + 25 * + + 91 @@ -13547,8 +13702,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) + - NULLIF ( + 54, 21 ) / + 98 AS col0, NULLIF ( 32, 58 ) AS col0 +---- +0 +32 query I rowsort SELECT ALL + - 32 + 54 @@ -13624,8 +13782,11 @@ SELECT + 71 AS col2, + 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - -168 # Datafusion - Expected - -26832 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) \* max\(DISTINCT Int64\(8\)\) \* Int64\(7\) AS col1" at position 0 and "Int64\(86\) \* Int64\(\-13\) \* Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 3 * + MAX ( DISTINCT 8 ) * + 7 AS col1, + 86 * - 13 * + 24 AS col1 +---- +-168 +-26832 query I rowsort SELECT ALL - 94 * - - 43 AS col1 @@ -13862,8 +14023,11 @@ SELECT DISTINCT + 45 + 37 * + - 85 - + 11 / + 99 * + 3 * 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 155 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \+ \(\- Int64\(\-75\)\) AS col0" at position 0 and "Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 + - - 75 col0, + 62 col0 +---- +155 +62 query II rowsort SELECT + - 42 * + 56 col1, + 73 + + 61 AS col0 @@ -14083,8 +14247,11 @@ SELECT - - NULLIF ( + - 98, - 34 * - + ( 91 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 3 AS col1, + COUNT ( * ) * - COUNT ( * ) * + + COUNT ( * ) AS col1 +---- +-1 +-3 query I rowsort label-2683 SELECT + 59 + - - CASE COUNT ( * ) WHEN - 32 + + 18 THEN 50 * - 0 + 31 WHEN + 21 THEN - SUM ( ALL 14 ) - + + 48 + CASE + AVG ( 3 ) WHEN - 30 THEN - 44 WHEN - ( ( + 78 ) ) THEN NULL END + - COALESCE ( 69, 19 ) END - 57 @@ -14140,8 +14307,11 @@ SELECT ( 19 ) / + 58 + - 49 * 28 + + - 18 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 711 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(9\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 79 * 9 AS col0, 17 AS col0 +---- +17 +711 query I rowsort label-2694 SELECT MIN ( - + 85 ) * 19 AS col2 @@ -14361,8 +14531,11 @@ SELECT ALL - 39 * COUNT ( * ) + + 98 - - + 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) / Int64\(\-35\) \- CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 77 / + - 35 - + CAST ( NULL AS INTEGER ) AS col2, 37 AS col2 +---- +37 +NULL query I rowsort label-2736 SELECT ALL - COUNT ( * ) / + - ( 63 ) * + COUNT ( * ) AS col2 @@ -14513,8 +14686,11 @@ SELECT - ( - 37 ) + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 32 AS col2, COUNT ( * ) AS col2 +---- +1 +32 query I rowsort label-2765 SELECT 72 * 9 + + - COUNT ( * ) AS col0 @@ -14934,8 +15110,11 @@ SELECT ALL COALESCE ( - + CAST ( - 29 AS INTEGER ), + 66 ) / + - 78 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - -1386 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(21\) \* Int64\(\-22\) \* Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 93 ) + + COUNT ( * ) AS col0, 21 * + - 22 * + 3 AS col0 +---- +-1386 +94 query I rowsort SELECT DISTINCT ( - + 1 ) * + + 56 AS col0 @@ -15133,8 +15312,11 @@ 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\(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\. +query II valuesort SELECT - ( + 69 ) * - COUNT ( * ) + - + 20 + 22 AS col2, 50 * + + 98 AS col2 +---- +4900 +71 query I rowsort label-2884 SELECT + SUM ( - 58 ) * 86 @@ -15149,8 +15331,11 @@ SELECT ALL - 95 * + 21 + + 43 + + 10 * - - 43 - + + 2 * - + 69 + - ( + ( + 54 ) # 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\(2\) / \(\- coalesce\(Int64\(\-12\), Int64\(\-49\) \* Int64\(39\)\)\) \+ Int64\(\-64\) AS col0" at position 0 and "CASE \(\- avg\(Int64\(0\)\)\) WHEN \(\- Int64\(\-92\)\) \+ Int64\(1\) THEN Int64\(10\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 2 / ( - + COALESCE ( - 12, - 49 * + + 39 ) ) + - 64 AS col0, + CASE - AVG ( + + 0 ) WHEN - - 92 + + 1 THEN 10 ELSE NULL END AS col0 +---- +-64 +NULL query II rowsort label-2887 SELECT ALL + + 8 * 65 + + + COUNT ( * ) / - COUNT ( * ), - ( - + 20 ) AS col1 @@ -15448,8 +15633,11 @@ SELECT ALL 78 + + 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - -3702237 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col1" at position 0 and "Int64\(31\) \* Int64\(\-47\) \* Int64\(\-77\) \* Int64\(\-33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 80 AS col1, ( 31 ) * - 47 * - 77 * - 33 AS col1 +---- +-3702237 +-80 query II rowsort SELECT - 82, 40 * + 36 AS col1 @@ -15523,8 +15711,11 @@ SELECT + + MAX ( + 42 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 34 col2, ( + + 11 ) AS col2 +---- +-34 +11 query I rowsort SELECT ( + 87 ) + + 92 @@ -15618,8 +15809,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) + - 3 AS col0, 7 col0 +---- +-2 +7 query I rowsort label-2977 SELECT COALESCE ( - 61, - ( + CASE - + 65 WHEN 33 * - - MIN ( 35 ) * - 25 + - - 72 THEN - 3 * - 6 + 17 + 29 + - 89 END ) - + COALESCE ( + 14, - 96 + - 92 ) ) + 78 * + + COUNT ( * ) AS col0 @@ -15645,8 +15839,11 @@ SELECT - SUM ( 4 ) AS col2, 85 * + - 35 * - - 47 col1 # 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\(47\) \+ count\(DISTINCT Int64\(\-91\)\) AS col1" at position 0 and "Int64\(36\) \+ Int64\(15\) \+ CAST\(NULL AS Float64\) \* Int64\(65\) \* \(\- nullif\(Int64\(\-36\), \(\- Int64\(\-29\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 47 + COUNT ( DISTINCT - 91 ) AS col1, + 36 + 15 + CAST ( NULL AS FLOAT8 ) * 65 * - NULLIF ( - 36, - - 29 ) AS col1 +---- +48 +NULL query I rowsort SELECT 82 * 90 AS col2 @@ -15747,8 +15944,11 @@ SELECT 79 * + + NULLIF ( - 99, - + 14 * + CAST ( NULL AS INTEGER ) ) * + 99 * 36 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-70\)\) \* \(\- Int64\(\-18\)\) / Int64\(18\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- Int64\(\-1\)\) \+ \(\- Int64\(30\)\) \- Int64\(27\) \+ Int64\(76\) \* Int64\(43\) / Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 70 * - - 18 / 18 AS col2, CAST ( NULL AS INTEGER ) + - - 1 + - + 30 - 27 + + + 76 * + + 43 / 11 AS col2 +---- +70 +NULL query I rowsort SELECT ALL + + 54 * + 92 AS col1 @@ -15955,8 +16155,11 @@ 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\(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\. +query II valuesort SELECT ALL 78 / 91 * COUNT ( * ) + + - 50 AS col1, SUM ( 24 ) AS col1 +---- +-50 +24 query II rowsort label-3040 SELECT ( COUNT ( * ) ) AS col0, + 98 AS col1 @@ -16276,8 +16479,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-72\)\) AS col1" at position 0 and "Int64\(95\) \* \(\- count\(\(\- Int64\(\-2\)\)\)\) \+ Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( ALL - 72 ) col1, + 95 * - + COUNT ( ALL - - 2 ) + + 93 AS col1 +---- +-2 +1 query I rowsort label-3101 SELECT MAX ( DISTINCT CAST ( - 77 AS INTEGER ) ) @@ -16354,8 +16560,11 @@ 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\(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\. +query II valuesort SELECT ALL + - 45 * 80 * + + 22 + COUNT ( * ) + + - MIN ( 51 ) AS col1, - 21 AS col1 +---- +-21 +-79250 query II rowsort label-3116 SELECT COUNT ( * ) AS col0, + 14 AS col2 @@ -16742,8 +16951,11 @@ 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\(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\. +query II valuesort SELECT 76 + COUNT ( * ) * + 83 + + + 73 AS col2, 80 AS col2 +---- +232 +80 query I rowsort label-3188 SELECT CASE + 29 WHEN NULLIF ( - ( - 66 ), 91 ) THEN - - 81 WHEN + 67 THEN NULL END + - COUNT ( * ) @@ -17034,8 +17246,11 @@ SELECT ALL - 36 * COUNT ( * ) / 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) AS col1" at position 0 and "Int64\(\-28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 13 AS col1, - 28 AS col1 +---- +-13 +-28 query I rowsort SELECT + 32 + - - 47 @@ -17704,8 +17919,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 26 * - - 19 AS col0, COUNT ( * ) + + - 95 col0 +---- +-94 +494 query I rowsort label-3371 SELECT ( + - ( + ( COUNT ( * ) ) ) ) col0 @@ -18236,8 +18454,11 @@ SELECT DISTINCT + - 68 * + 24 + - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \+ Int64\(\-2\) \+ Int64\(36\) \+ Int64\(20\) AS col2" at position 0 and "Int64\(\-57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 89 + ( + - 2 ) + + 36 + 20 col2, - 57 AS col2 +---- +-35 +-57 query I rowsort SELECT - + 9 * + 58 * + + 42 @@ -18267,8 +18488,11 @@ SELECT - 95 + 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 950 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "Int64\(95\) \* \(\- Int64\(\-10\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 AS col0, 95 * - - 10 AS col0 +---- +12 +950 query I rowsort label-3479 SELECT - MIN ( + 13 ) @@ -18368,8 +18592,11 @@ SELECT + COUNT ( * ) * + 89 - 28 * + 47 * + - 96 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 13 AS col1, + 10 AS col1 +---- +-13 +10 query I rowsort SELECT DISTINCT - 75 * - - 49 AS col2 @@ -18384,8 +18611,11 @@ SELECT + + 48 - + 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3960 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(44\)\) \* Int64\(90\) AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + 44 ) * + 90 AS col1, 17 AS col1 +---- +-3960 +17 query II rowsort label-3501 SELECT ALL COUNT ( * ) col2, COUNT ( * ) @@ -18713,8 +18943,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\)\)\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + ( - - ( - COUNT ( * ) ) ) AS col0, 30 AS col0 +---- +1 +30 query I rowsort SELECT ALL + 53 + + + 51 @@ -18895,8 +19128,12 @@ 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\(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\. +query III valuesort 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 +---- +47 +NULL +NULL query I rowsort label-3598 SELECT COALESCE ( COALESCE ( + 16, - + 45 / 61 ), COUNT ( * ) ) AS col1 @@ -19161,8 +19398,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col2" at position 0 and "Int64\(\-22\) \+ Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 61 col2, - 22 + 86 AS col2 +---- +-61 +64 query II rowsort SELECT ALL 64, 48 AS col1 @@ -19341,8 +19581,11 @@ SELECT - 5 - - - 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 919 # Datafusion - Expected - 9306 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* Int64\(31\) \+ Int64\(12\) \+ Int64\(39\) 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 II valuesort SELECT + 28 * 31 + + 12 + + 39 AS col0, + 99 * - - 94 AS col0 +---- +919 +9306 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -19971,8 +20214,11 @@ SELECT - - 50 AS col2, - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -9 # Datafusion - Expected - 177 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \+ Int64\(\-20\) AS col2" at position 0 and "Int64\(43\) \* Int64\(5\) \+ Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 11 ) + - 20 AS col2, + 43 * 5 + - 38 AS col2 +---- +-9 +177 query I rowsort label-3803 SELECT - 31 + + 20 - - 97 * 71 * - + CAST ( NULL AS INTEGER ) * 36 @@ -20732,8 +20978,11 @@ 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\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-55\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 28 AS col2, COUNT ( * ) + - - 55 AS col2 +---- +28 +56 query I rowsort label-3951 SELECT COUNT ( * ) / - 61 + - MIN ( DISTINCT + 22 ) + + 48 - 34 * 14 @@ -21529,8 +21778,11 @@ SELECT ALL 81 + + + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 21 AS col0, + 5 AS col0 +---- +21 +5 query I rowsort label-4103 SELECT DISTINCT - 56 + + + 37 * + MIN ( 2 ) * CAST ( NULL AS INTEGER ) - 47 @@ -21595,8 +21847,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 77 * + ( + + 17 ) + - - 5 AS col2, + COUNT ( * ) * - COUNT ( * ) AS col2 +---- +-1 +-1304 query I rowsort SELECT ALL + ( - + 92 ) AS col1 @@ -21636,8 +21891,11 @@ SELECT + 10 + - + 28 + - + 31 * - ( - 19 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-2\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(95\)\) \* count\(\(\- Int64\(\-41\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( + - 2 ) * + COUNT ( * ) AS col0, COUNT ( * ) * - + 95 * + + COUNT ( - - 41 ) * + + COUNT ( * ) AS col0 +---- +-2 +-95 query I rowsort label-4124 SELECT COUNT ( * ) + 11 col2 @@ -22500,8 +22758,11 @@ SELECT + + ( 48 ) + - 97 * + COUNT ( ALL - - ( + 45 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 AS col1, 6 AS col1 +---- +6 +87 query I rowsort SELECT - 66 * - + 21 - - 2 + - 30 - - ( 73 ) @@ -22722,8 +22983,11 @@ SELECT - 87 + 86 + - 84 * + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 341760 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \* Int64\(\-60\) \* Int64\(89\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 * + - 60 * 89 col0, 31 AS col0 +---- +31 +341760 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -22947,8 +23211,11 @@ SELECT + 57 + 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3286 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \* Int64\(53\) AS col0" at position 0 and "min\(\(\- Int64\(63\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 62 * + 53 AS col0, MIN ( + - ( 63 ) ) AS col0 +---- +-3286 +-63 query I rowsort SELECT ALL + 65 * - - 19 @@ -22968,8 +23235,11 @@ SELECT ALL + ( + CASE - 87 WHEN - COALESCE ( + + COUNT ( DISTINCT 1 ), - 26 ) * # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(64\)\) AS Int32\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( - + 64 AS INTEGER ) AS col1, + 2 AS col1 +---- +-64 +2 query I rowsort SELECT + 98 + - + 28 @@ -23239,8 +23509,12 @@ SELECT 30 / - 65 * 55 + 15 - - CAST ( - - ( + 72 ) AS INTEGER ) # Datafusion - Expected - 41 # Datafusion - Expected - 128 # Datafusion - Expected - -812160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \* \(\- count\(Int64\(\-38\)\)\) AS col2" at position 0 and "Int64\(\-94\) \* Int64\(24\) \* min\(Int64\(20\)\) \* Int64\(18\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 41 * + - COUNT ( - 38 ) AS col2, 32 - MIN ( - 96 ) AS col1, - 94 * + ( + + 24 ) * + MIN ( ALL + 20 ) * 18 AS col2 +---- +-812160 +128 +41 query I rowsort label-4427 SELECT + MAX ( + 10 ) AS col0 @@ -23655,14 +23929,20 @@ NULL # 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 "Int64\(48\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 48 AS col1, 48 AS col1 +---- +48 +48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(81\) \+ Int64\(29\) \+ \(\- CAST\(Int64\(88\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 16 AS col0, 81 + + 29 + - CAST ( 88 AS INTEGER ) col0 +---- +16 +22 query I rowsort SELECT DISTINCT - 24 + - 32 * - 25 * 79 AS col0 @@ -23879,8 +24159,11 @@ SELECT ALL 14 * COUNT ( * ) + + 28 + ( + - 10 ) + - 60 * 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -2935 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col0" at position 0 and "Int64\(58\) \+ Int64\(41\) \* \(\- Int64\(73\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 99 AS col0, 58 + 41 * - + 73 AS col0 +---- +-2935 +99 query I rowsort label-4548 SELECT 23 * - NULLIF ( 78, + + 14 * + COUNT ( * ) ) + + + 38 + - ( - 17 ) * - 3 * + - 25 @@ -23895,8 +24178,11 @@ SELECT + + 65 - 96 + + 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 45 AS col0, 7 col0 +---- +45 +7 query I rowsort label-4551 SELECT - + COUNT ( DISTINCT 99 ) @@ -24059,8 +24345,12 @@ SELECT + 27 * + 87 - + 32 / 29 + 92 / - 82 col0 # Datafusion - Expected - 77 # Datafusion - Expected - 66 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \+ coalesce\(\(\- max\(Int64\(\-45\)\)\), Int64\(\-2\)\) AS col1" at position 1 and "Int64\(\-34\) \- Int64\(7\) \+ \(\- Int64\(14\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 77 AS col0, 21 + COALESCE ( + - MAX ( - 45 ), - 2 ) AS col1, + - 34 - + 7 + - + 14 col1 +---- +-55 +66 +77 query I rowsort SELECT DISTINCT 23 * 67 AS col0 @@ -24365,8 +24655,11 @@ SELECT - 42 - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4920 # Datafusion - Expected - 3483 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) \* Int64\(60\) AS col1" at position 0 and "Int64\(43\) \* \(\- Int64\(\-81\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 * 60 col1, + 43 * - - 81 col1 +---- +-4920 +3483 query I rowsort SELECT ALL + 20 * - 14 AS col1 @@ -24755,8 +25048,11 @@ SELECT ALL 60 + + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 0 and "Int64\(4\) \* Int64\(6\) \+ \(\- count\(\(\- Int64\(80\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 AS col1, 4 * 6 + - COUNT ( ALL - + 80 ) AS col1 +---- +23 +58 query I rowsort SELECT 3 * - 78 AS col0 @@ -24860,8 +25156,11 @@ 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\(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\. +query II valuesort SELECT - - ( ( + COALESCE ( - 42, - 37, + 29 + - 78 ) ) ) AS col1, COUNT ( * ) + - ( 7 ) / + 72 * + - 74 + 56 AS col1 +---- +-42 +57 query I rowsort SELECT + 68 - + 53 * - 4 - 86 AS col0 @@ -24948,8 +25247,11 @@ SELECT 33 / 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 83 AS col2, 68 AS col2 +---- +68 +83 query I rowsort label-4752 SELECT SUM ( 2 ) * + COUNT ( + 36 ) + - NULLIF ( - + 44, + 68 + + + COALESCE ( 41, - - CAST ( NULL AS INTEGER ) + - - 94 * 38 * + 20 * ( - 39 ) ) ) + - - 44 / - COALESCE ( - - COUNT ( * ), - 49, 44, + - 92 * NULLIF ( + MAX ( + 3 ), 87 ) / - - 77 ) * + CAST ( + COUNT ( * ) AS INTEGER ) - - 59 * 70 @@ -24995,8 +25297,11 @@ SELECT DISTINCT 56 / - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, 98 AS col0 +---- +1 +98 query I rowsort label-4761 SELECT CAST ( + 7 AS INTEGER ) AS col1 @@ -25122,8 +25427,11 @@ SELECT - COUNT ( * ) * - - 48 AS col0, + 26 * - ( - 13 ) + - 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 2296 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) / Int64\(33\) AS col0" at position 0 and "Int64\(45\) \* Int64\(49\) \- Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 65 / 33 AS col0, 45 * + 49 - - 91 AS col0 +---- +1 +2296 query I rowsort label-4785 SELECT ALL + ( COUNT ( ALL - + 52 ) ) AS col2 @@ -25450,8 +25758,11 @@ SELECT - 22 AS col2, - COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -552 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \* CASE Int64\(28\) WHEN Int64\(66\) THEN NULL WHEN \(\- CAST\(CASE \(\- sum\(DISTINCT Int64\(5\)\)\) WHEN Int64\(10\) \* Int64\(90\) \+ Int64\(39\) \* Int64\(58\) \+ Int64\(\-18\) THEN NULL WHEN CAST\(NULL AS Float64\) THEN \(\- count\(Int64\(20\)\)\) ELSE Int64\(3\) \* \(\- max\(Int64\(\-93\)\)\) \+ Int64\(95\) END AS Int32\)\) \* Int64\(\-51\) \- Int64\(\-12\) THEN \(\- Int64\(95\)\) \+ Int64\(59\) \+ \(\- Int64\(42\)\) ELSE NULL END AS col0" at position 0 and "Int64\(88\) \+ min\(Int64\(20\)\) \* Int64\(\-32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 82 * + CASE 28 WHEN + 66 THEN NULL WHEN - CAST ( + + CASE ( + - SUM ( DISTINCT 5 ) ) WHEN 10 * + 90 + 39 * + 58 + - 18 THEN NULL WHEN + CAST ( NULL AS FLOAT8 ) THEN - COUNT ( ALL 20 ) ELSE + 3 * - MAX ( - 93 ) + + 95 END AS INTEGER ) * - 51 - - 12 THEN - + 95 + 59 + - + 42 ELSE NULL END AS col0, 88 + + ( MIN ( 20 ) ) * - 32 AS col0 +---- +-552 +NULL query I rowsort label-4849 SELECT 58 / - 60 AS col2 @@ -25538,8 +25849,11 @@ SELECT DISTINCT 74 + - + 7 * - 90 * + 25 * - + COUNT ( * ) + - 20 - - 6 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - -35802 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col1" at position 0 and "Int64\(39\) \* Int64\(\-51\) \* Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 78 col1, 39 * - 51 * 18 AS col1 +---- +-35802 +78 query I rowsort SELECT ALL + 69 - + - 64 + - + 25 AS col1 @@ -25930,8 +26244,11 @@ SELECT - + 93 * 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 98 AS col0, + 18 AS col0 +---- +-98 +18 query I rowsort SELECT ALL - + 69 * 10 * - - 70 + - - 91 - - 83 @@ -26127,8 +26444,11 @@ SELECT + 71, + 91 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col0" at position 0 and "Int64\(\-53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 col0, ( - 53 ) AS col0 +---- +-53 +48 query I rowsort label-4978 SELECT ( CAST ( COUNT ( * ) AS INTEGER ) ) * + 66 AS col1 @@ -26199,8 +26519,11 @@ SELECT 53 + MIN ( 50 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 10 col0, - CAST ( NULL AS INTEGER ) AS col0 +---- +10 +NULL query I rowsort SELECT DISTINCT 9 * + 14 * 8 * - 11 @@ -26337,8 +26660,11 @@ SELECT DISTINCT - COUNT ( + + 76 ) * - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "\(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( 55 ) AS col2, - ( - CAST ( NULL AS INTEGER ) ) AS col2 +---- +55 +NULL query I rowsort label-5018 SELECT - MIN ( 6 ) * 62 AS col2 @@ -26636,8 +26962,11 @@ SELECT + 74 - + COUNT ( * ) * - + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(66\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( 66 ) AS col2, COUNT ( * ) AS col2 +---- +1 +1 query I rowsort label-5076 SELECT ALL + 74 - 93 + + COUNT ( * ) * + - 64 - NULLIF ( COUNT ( - 15 ), + CASE - - ( + 32 ) WHEN - 22 THEN COUNT ( * ) ELSE NULL END ) + + 29 * + + 61 @@ -27005,8 +27334,11 @@ SELECT ALL ( - 56 ) * - + 98 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* Int64\(\-1\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 55 * - 1 col0, 48 AS col0 +---- +-55 +48 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -27747,8 +28079,11 @@ SELECT - ( + 51 ) + + + 11 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1898 # Datafusion - Expected - -1960 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \* Int64\(26\) AS col2" at position 0 and "Int64\(49\) \* \(\- Int64\(40\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 73 * 26 AS col2, 49 * - + 40 AS col2 +---- +-1960 +1898 query I rowsort label-5288 SELECT - CASE - 45 WHEN NULLIF ( + 4, - 7 * 98 / 73 / - ( 48 ) ) THEN 77 + - 53 WHEN + 10 * - 4 * + + 66 * - 80 + + 31 * COUNT ( ALL ( 20 ) ) THEN NULL ELSE NULL END * - 97 AS col0 @@ -27773,8 +28108,11 @@ SELECT ALL + 1 + + 91 * + 40 * - 41 + + 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) \+ Int64\(19\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 67 + + 19 col1, + 72 AS col1 +---- +-48 +72 query I rowsort SELECT + 73 * - + 37 * - 73 col2 @@ -27867,8 +28205,11 @@ SELECT DISTINCT - 59 * - 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "Int64\(33\) \+ Int64\(\-2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 74 AS col1, 33 + - 2 col1 +---- +31 +74 query II rowsort label-5311 SELECT 56 / - MAX ( ALL + - 68 ) AS col1, - 26 + COUNT ( * ) @@ -27979,8 +28320,12 @@ SELECT + 1 * 70 + 51 AS col2 # Datafusion - Expected - -95 # Datafusion - Expected - 94 # 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\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort SELECT ALL - 95 AS col0, 94 col0, 79 * + - AVG ( ALL CASE + NULLIF ( 45, - 93 ) WHEN + + ( + - 52 ) THEN 92 + + ( + + 6 ) + - 17 END ) + - + 31 + - - 78 + + + 52 + ( - NULLIF ( - ( - - 67 ), + + 15 ) ) +---- +-95 +94 +NULL query I rowsort SELECT - 23 * - 6 + - 99 * - - 58 @@ -28184,8 +28529,11 @@ SELECT - 68 + - - 67 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\(\- Int64\(\-15\)\)\)\) AS col0" at position 0 and "Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( - - 15 ) AS col0, + 99 col0 +---- +-1 +99 query II rowsort label-5369 SELECT ALL 91 - + 22 * COUNT ( * ), + 34 * + COUNT ( * ) AS col2 @@ -28227,8 +28575,12 @@ SELECT + - 23 * + 0 * - 89 AS col0 # Datafusion - Expected - 19 # Datafusion - Expected - 37 # Datafusion - Expected - 149 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(19\) AS Int32\) AS col2" at position 0 and "Int64\(\-53\) \+ Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + ( CAST ( + 19 AS INTEGER ) ) AS col2, - 53 + + 90 AS col2, - + ( + - 27 ) + ( COALESCE ( 25, - + COUNT ( ALL + 82 ), + 23 / COUNT ( * ) + + + ( + 62 ) * - MIN ( DISTINCT 70 ) / + 88 ) ) + + 97 AS col0 +---- +149 +19 +37 query I rowsort label-5377 SELECT - 56 * + + CASE - 2 WHEN - - 62 THEN NULL WHEN - + ( + SUM ( DISTINCT + - 62 ) ) THEN COUNT ( * ) * - - 15 * - 3 + 92 WHEN - 31 - - 87 THEN NULL END - + ( + - 18 ) * COUNT ( * ) / - 96 @@ -29170,8 +29522,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 AS col0, COUNT ( * ) AS col0 +---- +1 +86 query I rowsort label-5559 SELECT - 6 * + COUNT ( * ) AS col0 @@ -29322,8 +29677,11 @@ SELECT DISTINCT COALESCE ( + - 87, 35 - 32 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(72\)\)\) AS col1" at position 0 and "Int64\(77\) / Int64\(37\) \* Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( 72 ) AS col1, + 77 / 37 * 8 col1 +---- +-72 +16 query I rowsort SELECT 5 * + ( + 83 ) @@ -29891,8 +30249,11 @@ SELECT + 2 * - COUNT ( * ) * + 61 + + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col2" at position 0 and "Int64\(10\) \+ Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 col2, 10 + + 84 AS col2 +---- +39 +94 query I rowsort SELECT ALL + 43 + + 26 AS col0 @@ -29976,8 +30337,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * + - 77 AS col1, COUNT ( - ( 14 ) ) + - + 96 * 41 * 66 + - 88 AS col1 +---- +-259863 +-77 query I rowsort label-5714 SELECT 65 + + CASE 7 WHEN CAST ( NULL AS INTEGER ) THEN + 61 + 23 + - 34 END * 14 AS col0 @@ -30198,8 +30562,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 10 + + 86 * + COALESCE ( + COUNT ( * ), - 11 + + 84 ) col0, - 99 * - 57 AS col0 +---- +5643 +76 query I rowsort label-5757 SELECT DISTINCT + 35 / + + 5 AS col2 @@ -31340,8 +31707,11 @@ SELECT 52 AS col2, - 75 * 79 AS col0 # 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 "Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 88 AS col2, 1 AS col2 +---- +1 +88 query I rowsort label-5977 SELECT ( CASE 25 WHEN - CAST ( NULL AS INTEGER ) * + 55 THEN - MAX ( - 36 ) END ) + + + 64 col0 @@ -31621,8 +31991,11 @@ SELECT - ( - CASE + 88 WHEN 29 / - 86 THEN NULL ELSE - 99 END ) * 32 + COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - 3404 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \* Int64\(46\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 74 * + 46 AS col0, 75 AS col0 +---- +3404 +75 query II rowsort label-6030 SELECT - CAST ( 95 AS INTEGER ), 94 AS col0 @@ -31644,8 +32017,11 @@ SELECT ALL ( 21 ), 88 * 38 * - + 1 / - COUNT ( * ) 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\(32\) \- \(\- Int64\(\-34\)\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 - - - 34 AS col2, - 0 AS col2 +---- +-2 +0 query I rowsort label-6034 SELECT - 97 * - 0 * + + 87 / NULLIF ( - + COUNT ( * ), + 21 ) @@ -32686,8 +33062,11 @@ SELECT + 56 + 98 + + + 60 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 col1" at position 0 and "\(\- \(\- count\(Int64\(82\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 80 col1, ( + ( - - COUNT ( ALL 82 ) ) ) AS col1 +---- +1 +80 query I rowsort label-6232 SELECT COALESCE ( COUNT ( * ), + 95 * + 2 ) @@ -32724,8 +33103,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) / \(\- \(\- Int64\(76\)\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 / - ( - + 76 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 +---- +0 +NULL query I rowsort label-6239 SELECT ALL COUNT ( * ) / COUNT ( * ) * - COUNT ( * ) AS col2 @@ -32935,8 +33317,11 @@ 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\(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\. +query RI valuesort 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 +---- +88 +NULL query I rowsort label-6279 SELECT ALL - CAST ( - + 81 AS INTEGER ) / ( + MIN ( + - 18 ) ) * - 40 + + 38 AS col0 @@ -33043,8 +33428,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2240 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(6\) \- CAST\(NULL AS Int32\) \* Int64\(\-55\) \* Int64\(39\) AS col1" at position 0 and "Int64\(28\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) + 6 - + CAST ( NULL AS INTEGER ) * - 55 * 39 AS col1, 28 * + 80 AS col1 +---- +2240 +NULL query I rowsort label-6300 SELECT DISTINCT COUNT ( * ) * + ( + 0 ) AS col1 @@ -33084,8 +33472,11 @@ SELECT ALL + 59 / + 53 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(CASE \(\- Int64\(\-1\)\) WHEN Int64\(49\) THEN Int64\(19\) END AS Int32\) \+ Int64\(29\) AS col1" at position 0 and "coalesce\(Int64\(31\), \(\- CASE Int64\(42\) WHEN Int64\(26\) THEN Int64\(0\) WHEN Int64\(\-46\) \* \(\- CAST\(Int64\(\-61\) AS Int32\)\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-55\) \+ Int64\(\-86\) ELSE NULL END\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +31 +NULL query I rowsort SELECT ALL - 29 + - - 20 @@ -33351,8 +33742,11 @@ SELECT ALL + + ( 21 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1520 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) \* nullif\(Int64\(\-20\), \(\- \(\- Int64\(62\)\)\) \* \(\- Int64\(16\)\) \* \(\- Int64\(\-66\)\) \* \(\- Int64\(\-63\)\) \* Int64\(57\)\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 76 * + + NULLIF ( - 20, - ( - + 62 ) * + ( + + ( - + 16 ) ) * - - 66 * - - 63 * + 57 ) AS col1, 15 AS col1 +---- +15 +1520 query I rowsort label-6359 SELECT DISTINCT + + 21 + + - CASE - CAST ( + 99 AS INTEGER ) WHEN + 66 + - 46 THEN NULL ELSE + 14 * - + 83 END * - CASE + COUNT ( + 72 ) WHEN + 9 * 66 * + COALESCE ( 51, - 78 ) THEN - 48 + + - 79 ELSE NULL END @@ -34186,8 +34580,11 @@ SELECT + - 78 * + 4 * + 25 * 82 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\)" at position 0 and "Int64\(62\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 62, 62 +---- +62 +62 query II rowsort SELECT - 73, - 24 AS col1 @@ -34825,8 +35222,11 @@ SELECT DISTINCT ( + 54 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) \+ Int64\(95\) \+ \(\- Int64\(\-59\)\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 69 + + + 95 + - - 59 AS col1, 12 col1 +---- +12 +85 query I rowsort label-6642 SELECT DISTINCT CAST ( + 51 AS INTEGER ) @@ -35109,8 +35509,11 @@ SELECT + - 15, + 80 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-18\)\) AS col0" at position 0 and "Int64\(\-99\) \+ Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 18 AS col0, - 99 + 13 AS col0 +---- +-86 +18 query I rowsort SELECT ALL - - COALESCE ( - 70, + 62, 2 + + 70 ) @@ -35480,8 +35883,11 @@ SELECT + CAST ( COUNT ( * ) AS INTEGER ) + + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 389068 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-18\), Int64\(51\)\) \* Int64\(\-3\) \+ CAST\(Int64\(89\) AS Int32\) \+ count\(DISTINCT Int64\(81\)\) \* Int64\(75\) \* Int64\(85\) \* Int64\(61\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(50\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( + - 18, + + 51 ) * - 3 + + ( CAST ( + 89 AS INTEGER ) ) + + COUNT ( DISTINCT + ( 81 ) ) * + 75 * 85 * + 61 * + COUNT ( * ) + + 50 AS col2, COUNT ( * ) AS col2 +---- +1 +389068 query I rowsort SELECT - 61 - - + 82 @@ -35642,8 +36048,11 @@ SELECT ALL 41 / - 96, - 67 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 0 and "Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 34 AS col1, 95 AS col1 +---- +34 +95 query I rowsort SELECT ( 29 ) * + + 93 AS col0 @@ -35691,14 +36100,20 @@ 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\(1\)\) AS count\(\*\)\)\) \* Int64\(\-12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 21 AS col1, + NULLIF ( + + 15, - COUNT ( * ) ) * + - 12 AS col1 +---- +-180 +-21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8160 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* max\(DISTINCT Int64\(96\)\) 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 IR valuesort SELECT DISTINCT + 85 * MAX ( DISTINCT 96 ) AS col0, + CAST ( NULL AS FLOAT8 ) AS col0 +---- +8160 +NULL query I rowsort SELECT ALL - 30 + 50 @@ -36290,8 +36705,11 @@ SELECT ALL + 39 * 86 AS col1 # 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\(19\) \- Int64\(66\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 19 - + 66 AS col2, + 69 AS col2 +---- +-47 +69 query I rowsort label-6920 SELECT COUNT ( * ) * + 9 AS col0 @@ -36497,8 +36915,11 @@ 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\(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\. +query II valuesort SELECT ALL + COALESCE ( 41, - COUNT ( * ) ) AS col2, MAX ( DISTINCT + 75 ) AS col2 +---- +41 +75 query II rowsort SELECT + 10 col0, - 38 + + 1 + + + 86 * - 83 @@ -36733,8 +37154,11 @@ SELECT + + 86 * - ( - 60 ) AS col2 # 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 "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 AS col2, 3 AS col2 +---- +24 +3 query I rowsort label-7004 SELECT - 25 * + 57 + 20 + + - NULLIF ( + 92, + + SUM ( ALL - - 61 ) ) @@ -36775,8 +37199,11 @@ SELECT COUNT ( * ) * + 98 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2960 # Datafusion - Expected - -775 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) \* Int64\(\-37\) AS col1" at position 0 and "Int64\(\-31\) \* Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 80 * - 37 AS col1, - 31 * 25 col1 +---- +-775 +2960 query I rowsort label-7012 SELECT DISTINCT COUNT ( * ) / 55 col1 @@ -36877,8 +37304,11 @@ SELECT DISTINCT + 59 * + 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) \- \(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(62\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- \(\- Int64\(14\)\)\) \+ Int64\(32\) \+ Int64\(\-88\) WHEN Int64\(\-44\) \* Int64\(56\) \* Int64\(80\) / Int64\(36\) THEN NULL END\) \+ Int64\(\-80\) \+ CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +85 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -36953,8 +37383,12 @@ SELECT - 90 col0, 77 + - 20 AS col2 # Datafusion - Expected - 67 # Datafusion - Expected - 0 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(count\(Int64\(1\)\) AS count\(\*\), CAST\(NULL AS Int32\) \* Int64\(\-72\) \+ Int64\(1\)\) \+ Int64\(66\) AS col0" at position 0 and "Int64\(\-18\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT COALESCE ( + COUNT ( * ), + CAST ( NULL AS INTEGER ) * - 72 + + 1 ) + 66 AS col0, + 2 / MAX ( 24 ) AS col2, - 18 col0 +---- +-18 +0 +67 query I rowsort label-7045 SELECT CAST ( - 85 AS INTEGER ) - + ( - - 19 ) @@ -37088,8 +37522,11 @@ SELECT - 48 + + 2 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - -2860 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col2" at position 0 and "Int64\(\-65\) \* Int64\(44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 25 AS col2, - 65 * + 44 AS col2 +---- +-2860 +25 query II rowsort label-7071 SELECT 40, - COUNT ( * ) col0 @@ -37277,8 +37714,11 @@ SELECT ALL + + ( - - 64 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30832 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(47\)\) \* Int64\(16\) \* \(\- Int64\(41\)\) AS col0" at position 0 and "Int64\(22\) / Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 47 * + + 16 * + - ( 41 ) AS col0, 22 / 62 AS col0 +---- +0 +30832 query I rowsort label-7107 SELECT DISTINCT - COUNT ( * ) * + 47 + 59 + + ( + + 11 ) / + + 32 * - + 84 + - 62 * + + 67 + - 69 @@ -37319,8 +37759,11 @@ 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\(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\. +query II valuesort SELECT ALL 79 * - 1 + + + COALESCE ( + ( 41 ), 23 * 89 - 42 * COUNT ( * ), + 87 ) col1, ( - ( + 76 ) ) AS col1 +---- +-38 +-76 query I rowsort SELECT + 13 + - - 80 @@ -37832,8 +38275,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 86 AS col1, + 55 AS col1 +---- +55 +86 query I rowsort SELECT ALL + ( + ( + + 80 ) ) col0 @@ -37962,8 +38408,11 @@ SELECT - - 75 * 76 + - 20 + - 33 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(27\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 27 AS col0, + CAST ( NULL AS INTEGER ) col0 +---- +-27 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -38195,8 +38644,11 @@ SELECT DISTINCT - + 18 / + 82 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 316 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \* Int64\(79\) AS col2" at position 0 and "Int64\(\-32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 4 * + 79 col2, - 32 AS col2 +---- +-32 +316 query I rowsort label-7283 SELECT DISTINCT + 96 * - MIN ( + + 51 ) @@ -38611,8 +39063,11 @@ SELECT DISTINCT ( + 82 ) AS col0, + 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) \+ Int64\(0\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 73 + + 0 + CAST ( NULL AS INTEGER ) AS col2, - 63 AS col2 +---- +-63 +NULL query I rowsort SELECT - 73 * ( 74 ) * - - 39 * + 10 @@ -39669,8 +40124,11 @@ SELECT - 76 + 47 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col1" at position 0 and "Int64\(\-49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 col1, - 49 AS col1 +---- +-49 +79 query I rowsort SELECT - 89 * 65 @@ -39705,8 +40163,11 @@ SELECT ALL - 22 + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 612108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-87\) \* min\(Int64\(\-47\)\) THEN NULL ELSE \(\- \(\- Int64\(60\)\)\) \+ \(\- Int64\(\-73\)\) \* CAST\(Int64\(\-99\) AS Int32\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) END\) \* Int64\(\-84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +612108 +NULL query I rowsort SELECT - 44 - - ( ( + - 32 ) ) + + 50 @@ -40102,8 +40563,11 @@ SELECT ALL 91, + CAST ( 51 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col2" at position 0 and "Int64\(\-81\) \+ Int64\(\-58\) / Int64\(\-12\) \- Int64\(\-34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 92 AS col2, - 81 + - 58 / - 12 - - 34 AS col2 +---- +-43 +92 query I rowsort SELECT 90 * 48 AS col1 @@ -41315,8 +41779,11 @@ SELECT 14 * + 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "Int64\(\-51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 AS col1, - 51 col1 +---- +-51 +36 query II rowsort SELECT ALL NULLIF ( - + 14, - - 61 ) AS col0, 44 AS col2 @@ -41537,8 +42004,11 @@ SELECT 49 * 3 + + COUNT ( DISTINCT + - 42 ) + - 85 * 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 504 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(38\), Int64\(\-72\) \* Int64\(92\)\) \+ count\(\(\- Int64\(\-64\)\)\) AS col0" at position 0 and "Int64\(36\) \* Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + NULLIF ( 38, - 72 * 92 ) + COUNT ( - + ( - 64 ) ) col0, 36 * 14 AS col0 +---- +39 +504 query I rowsort SELECT ALL - ( + + 57 ) + NULLIF ( 49, - - 69 ) @@ -41871,8 +42341,11 @@ SELECT - 92 - + 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 60 col2, 23 AS col2 +---- +-60 +23 query I rowsort SELECT DISTINCT 93 - + 84 @@ -41967,8 +42440,11 @@ SELECT DISTINCT + 53 * + + MAX ( DISTINCT + - 39 ) AS col0, + 24 + + CAST ( - ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \+ Int64\(22\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 98 + + 22 AS col0, 85 AS col0 +---- +-76 +85 query I rowsort SELECT ALL + 44 + - - 98 - - 41 * + - 82 @@ -42054,8 +42530,12 @@ SELECT - 52 + 66 - + 54 / - 42 + + - ( 73 ) + 77 # Datafusion - Expected - -1131 # Datafusion - Expected - NULL # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \+ CAST\(NULL AS Int32\) \+ Int64\(74\) \* CAST\(NULL AS Int32\) AS col0" at position 1 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) / Int64\(42\) \+ Int64\(\-44\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - - 85 * - + 13 + - 26, 2 + CAST ( NULL AS INTEGER ) + ( 74 ) * CAST ( NULL AS INTEGER ) AS col0, - COUNT ( * ) / + 42 + - 44 AS col0 +---- +-1131 +-44 +NULL query I rowsort SELECT 16 * 58 @@ -42223,8 +42703,11 @@ SELECT ALL - 89 * - + NULLIF ( - ( COUNT ( * ) ), + + 56 / - - COALESCE ( + COAL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -180 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CASE Int64\(\-36\) WHEN Int64\(64\) \+ Int64\(66\) \+ \(\- \(\- coalesce\(Int64\(80\), Int64\(\-64\) / Int64\(22\) \+ CAST\(Int64\(91\) AS Int32\)\)\)\) \- Int64\(\-91\) \* Int64\(\-72\) THEN Int64\(32\) \* CASE Int64\(98\) WHEN Int64\(34\) THEN Int64\(\-55\) END WHEN Int64\(82\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-94\) \+ Int64\(7\) END\) \- Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-180 +1 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -43010,8 +43493,12 @@ SELECT ALL + 97, 5 AS col2 # Datafusion - Expected - 35 # Datafusion - Expected - 130 # Datafusion - Expected - -4515 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col0" at position 0 and "Int64\(75\) \* Int64\(3\) \* Int64\(\-99\) \+ Int64\(\-48\) \* Int64\(37\) \* Int64\(\-10\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 35 col0, - 52 + - 7 * - + 26 AS col1, + 75 * + 3 * - 99 + - 48 * 37 * - 10 AS col0 +---- +-4515 +130 +35 query I rowsort label-8196 SELECT ALL COUNT ( * ) * - - 70 AS col2 @@ -43068,8 +43555,11 @@ SELECT + 98 * 99 * 90 + 64 * - 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col1" at position 0 and "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 5 AS col1, 41 AS col1 +---- +-5 +41 query I rowsort label-8207 SELECT ALL MIN ( ALL 68 ) + - 35 AS col2 @@ -43198,8 +43688,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 14640 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \+ \(\- Int64\(71\)\) AS col1" at position 0 and "Int64\(48\) \* Int64\(5\) \* \(\- Int64\(\-61\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 22 + - + 71 AS col1, 48 * 5 * - - 61 AS col1 +---- +-93 +14640 query II rowsort label-8232 SELECT CAST ( - 31 AS INTEGER ) + - - 93 + + 97, - 25 AS col2 @@ -43383,8 +43876,12 @@ SELECT + COUNT ( ALL - 79 ) col1 # Datafusion - Expected - -3842 # Datafusion - Expected - 31 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \- \(\- coalesce\(\(\- Int64\(40\)\), Int64\(34\)\)\) AS col1" at position 1 and "Int64\(40\) / Int64\(94\) \* Int64\(36\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL COALESCE ( - 69, 23 ) + - 49 * + 77, + 71 - - + COALESCE ( - ( + ( 40 ) ), 34 ) AS col1, 40 / 94 * 36 AS col1 +---- +-3842 +0 +31 query I rowsort label-8267 SELECT + COUNT ( ALL + 98 ) @@ -43425,8 +43922,11 @@ SELECT + SUM ( - + 84 ) - - 11 * 71 * - - 14 * - 21 * ( + 15 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - 772 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \- max\(DISTINCT Int64\(94\)\) AS col2" at position 0 and "Int64\(2\) \+ Int64\(48\) \- Int64\(84\) \+ \(\- Int64\(31\)\) \+ Int64\(\-31\) \* \(\- Int64\(27\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 - MAX ( DISTINCT + 94 ) AS col2, + 2 + 48 - + 84 + - + 31 + + - 31 * - + 27 col2 +---- +-78 +772 query I rowsort SELECT - 87 * 20 * 14 - + 32 AS col0 @@ -43593,8 +44093,11 @@ SELECT ALL 50 * + 2 * + - ( 73 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col2" at position 0 and "Int64\(69\) \+ Int64\(40\) \+ nullif\(CAST\(NULL AS Float64\), Int64\(\-16\)\) / Int64\(\-47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL 85 AS col2, ( + 69 ) + + 40 + NULLIF ( + + CAST ( NULL AS FLOAT8 ), - 16 ) / + - 47 AS col2 +---- +85 +NULL query I rowsort SELECT - 16 + + - 9 AS col2 @@ -43700,8 +44203,11 @@ SELECT + + 26 + - CAST ( - COUNT ( * ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 91 * COUNT ( * ) AS col1, + 26 AS col1 +---- +26 +91 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -44213,8 +44719,11 @@ SELECT - CAST ( - 70 AS INTEGER ) * - 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 934 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "nullif\(Int64\(85\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(79\)\) \* Int64\(11\) \- count\(Int64\(\-3\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, ( NULLIF ( + 85, + COUNT ( * ) + ( + 79 ) ) ) * 11 - COUNT ( ALL + - 3 ) AS col0 +---- +1 +934 query I rowsort label-8426 SELECT - 47 * + COUNT ( * ) @@ -44296,8 +44805,11 @@ NULL # 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\(DISTINCT Int64\(93\)\)\) AS col2" at position 0 and "max\(Int64\(42\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( DISTINCT 93 ) AS col2, MAX ( ALL + 42 ) AS col2 +---- +-1 +42 query I rowsort label-8441 SELECT - COALESCE ( + - 23, - 6 ) - + - CASE + - 78 WHEN - COUNT ( * ) THEN NULL ELSE - 75 * COUNT ( * ) - - + 4 END @@ -44308,8 +44820,12 @@ SELECT - COALESCE ( + - 23, - 6 ) - + - CASE + - 78 WHEN - COUNT ( * ) THEN NULL # Datafusion - Expected - 688800 # Datafusion - Expected - 2 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(2\), Int64\(84\) \+ Int64\(\-13\) \+ Int64\(40\)\) AS col0" at position 1 and "Int64\(\-41\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 15 * - 70 * - + 82 * 8, NULLIF ( + 2, 84 + + - 13 + + 40 ) AS col0, - 41 AS col0 +---- +-41 +2 +688800 query I rowsort label-8443 SELECT DISTINCT - 39 * + COUNT ( * ) AS col2 @@ -45045,8 +45561,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( * ) AS col2, 42 AS col2 +---- +1 +42 query II rowsort label-8586 SELECT - 69 + - - 30 - + - 61, - CAST ( - 39 AS INTEGER ) AS col1 @@ -45385,8 +45904,11 @@ SELECT - 61, COUNT ( * ) * + 19 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1017 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \+ Int64\(\-16\) \* Int64\(61\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 41 + - 16 * 61 AS col2, 56 AS col2 +---- +-1017 +56 query I rowsort label-8650 SELECT - 59 * + 42 / 45 / 96 @@ -45499,8 +46021,11 @@ SELECT + - 42 + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 440 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(9\) \- Int64\(1\) AS col2" at position 0 and "Int64\(\-74\) / Int64\(6\) \+ Int64\(83\) \* Int64\(\-70\) \+ \(\- CASE Int64\(67\) WHEN Int64\(61\) \+ Int64\(92\) \* Int64\(28\) THEN Int64\(49\) \- Int64\(54\) END\) / Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 49 * + 9 - + 1 AS col2, - 74 / + + 6 + + 83 * - 70 + - + CASE 67 WHEN + 61 + 92 * + + 28 THEN + 49 - + 54 END / + 10 AS col2 +---- +440 +NULL query I rowsort label-8672 SELECT ALL CASE - - 99 WHEN - 72 / + 16 THEN NULL WHEN MAX ( 58 ) * - + 89 THEN + 44 END * - ( + 36 ) * - + 85 - - + 67 + - COUNT ( * ) * - 35 + 33 + 36 @@ -45568,8 +46093,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT CAST ( NULL AS FLOAT8 ) + - 75 + + + 18 * + CASE - - 38 WHEN 62 * ( + 72 ) THEN NULL ELSE - + 80 END * 64 AS col2, - ( - - 27 ) + - - ( + COUNT ( * ) ) AS col2 +---- +-26 +NULL query I rowsort SELECT ALL - 40 * - ( 84 ) AS col2 @@ -47264,8 +47792,11 @@ SELECT 10 + - - 61 * - 4 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col1" at position 0 and "count\(\(\- Int64\(27\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 AS col1, COUNT ( - + 27 ) AS col1 +---- +1 +39 query I rowsort SELECT NULLIF ( 21, 61 ) + 54 AS col0 @@ -47285,8 +47816,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 2849 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) / Int64\(\-59\) \+ Int64\(70\) AS col0" at position 0 and "CASE Int64\(\-61\) WHEN Int64\(\-79\) THEN NULL WHEN CASE Int64\(18\) WHEN Int64\(37\) \+ Int64\(\-6\) / Int64\(89\) THEN Int64\(99\) \+ count\(Int64\(1\)\) AS count\(\*\) END \+ count\(Int64\(1\)\) AS count\(\*\) THEN \(\- Int64\(82\)\) \* CAST\(Int64\(\-43\) AS Int32\) ELSE Int64\(77\) END \* Int64\(37\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +2849 +70 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -47436,8 +47970,11 @@ SELECT ALL 20 * + ( COUNT ( * ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 503034 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) \* Int64\(87\) \* Int64\(\-98\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 59 * 87 * - 98 col1, + COUNT ( * ) col1 +---- +1 +503034 query I rowsort label-9044 SELECT - MIN ( - ( + 69 ) ) - + - ( - - 56 ) + - - COUNT ( ALL + 50 ) + 75 / 20 @@ -47730,8 +48267,11 @@ SELECT DISTINCT 54 * - COUNT ( * ) - + - 40 * 87 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col2" at position 0 and "Int64\(11\) \- \(\- Int64\(60\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 2 AS col2, + 11 - - + 60 AS col2 +---- +-2 +71 query I rowsort SELECT DISTINCT - - ( 49 ) + - 79 * - 22 @@ -48477,8 +49017,11 @@ SELECT 14 / + ( - 44 ) * + CASE 2 WHEN + COALESCE ( COUNT ( * ), 19 * + COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(44\) AS col0" at position 0 and "Int64\(3\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( NULL AS INTEGER ) * 44 AS col0, 3 + COUNT ( * ) + + 96 AS col0 +---- +100 +NULL query I rowsort label-9241 SELECT - 88 + - - 77 * COUNT ( * ) + - 91 @@ -48677,8 +49220,11 @@ SELECT - 81 / 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 18 * + + COUNT ( * ) AS col1, + 60 AS col1 +---- +-18 +60 query I rowsort SELECT - + ( 18 ) + - 91 @@ -48884,8 +49430,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 AS col0, COUNT ( * ) AS col0 +---- +1 +50 query I rowsort label-9318 SELECT ALL COUNT ( * ) + + 19 / + + CASE - 1 WHEN + 43 THEN NULL WHEN - - 72 * 6 THEN - 77 + + 36 WHEN + + 75 + CASE + 57 WHEN - - COALESCE ( - 43, - COUNT ( - 59 ), - COUNT ( ALL - - 4 ) ) + 48 * COUNT ( * ) THEN NULL ELSE - 12 END THEN NULL END AS col0 @@ -48993,8 +49542,11 @@ SELECT ALL - 34 * - + 52 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\(0\) / Int64\(61\) \* Int64\(31\) \- Int64\(\-76\) AS col0" at position 0 and "min\(DISTINCT Int64\(2\)\) \+ Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 0 / + 61 * + + 31 - - 76 AS col0, MIN ( DISTINCT + 2 ) + 47 AS col0 +---- +49 +76 query I rowsort label-9339 SELECT ALL + COUNT ( * ) * - - 69 / - + ( 16 ) AS col2 @@ -49193,8 +49745,11 @@ SELECT DISTINCT + 2 * + ( 63 ) + + 9 - 68 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 col1" at position 0 and "Int64\(56\) / \(\- Int64\(\-49\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + ( - 18 ) AS col1, + 56 / - - 49 AS col1 +---- +-18 +1 query I rowsort label-9377 SELECT ALL - 87 * 81 * - 24 * - 58 + + - COALESCE ( + 17, - 90 - - 14 + COUNT ( * ) / 74 * - + COUNT ( * ) ) @@ -49396,8 +49951,11 @@ 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\(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\. +query II valuesort SELECT + - COUNT ( * ) AS col1, + 96 - - - 58 AS col1 +---- +-1 +38 query I rowsort label-9416 SELECT - COALESCE ( - + 81, + + CASE WHEN MIN ( - + 69 ) < - - COUNT ( * ) THEN - ( - 63 ) ELSE NULL END, - 64 * - + 20 * - + 38 ) * - 54 + 89 / - 83 @@ -49510,8 +50068,11 @@ SELECT - 9 AS col2, COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col1" at position 0 and "Int64\(\-99\) \+ Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 98 AS col1, - 99 + + 38 AS col1 +---- +-61 +98 query I rowsort SELECT 7 + + - ( + 47 ) @@ -50156,8 +50717,11 @@ 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\(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\. +query II valuesort SELECT ALL 76 + COALESCE ( - COUNT ( * ), ( 59 ) ) AS col0, 31 col0 +---- +31 +75 query I rowsort label-9564 SELECT ALL + 54 + - - MAX ( DISTINCT - + 5 ) * - 76 AS col1 @@ -50513,8 +51077,11 @@ SELECT ALL + ( - + ( 46 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2010 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \* Int64\(\-33\) \- \(\- Int64\(1\)\) \* \(\- Int64\(\-69\)\) AS col0" at position 0 and "Int64\(\-77\) / Int64\(29\) \+ \(\- CAST\(Int64\(\-88\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( 63 ) * - 33 - - + 1 * - - 69 AS col0, - 77 / + 29 + - CAST ( - 88 AS INTEGER ) AS col0 +---- +-2010 +86 query I rowsort label-9632 SELECT COALESCE ( + - ( + 66 ), COUNT ( * ), + - 75 * - - 4 ) AS col2 @@ -51219,8 +51786,11 @@ SELECT ALL 42 / - 94 * - + 42 * + 52 - - - 47 / 55 AS col2, - 26 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 28 AS col1, 94 AS col1 +---- +28 +94 query I rowsort SELECT + 14 * + ( - 95 ) AS col0 @@ -51231,8 +51801,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "\(\- \(\- max\(Int64\(37\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + - COUNT ( * ) AS col0, - ( - MAX ( ALL + 37 ) ) AS col0, - 29 +---- +-1 +-29 +37 query I rowsort label-9769 SELECT ALL - 28 / + 67 + + - 24 + - - 44 - 58 AS col2 @@ -51258,8 +51832,11 @@ SELECT + 95 * 71 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 "max\(\(\- CASE Int64\(\-62\) WHEN Int64\(22\) THEN Int64\(\-31\) END\)\) \* Int64\(18\) AS col2" at position 0 and "Int64\(33\) \+ Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MAX ( ALL - CASE + - 62 WHEN 22 THEN - 31 END ) * + 18 AS col2, 33 + 4 AS col2 +---- +37 +NULL query I rowsort label-9774 SELECT + 35 + - COUNT ( * ) + 34 @@ -51305,8 +51882,11 @@ SELECT + COUNT ( DISTINCT 64 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 AS col1, + 53 AS col1 +---- +53 +9 query I rowsort label-9783 SELECT ALL - - 0 / - 53 * + CAST ( NULL AS INTEGER ) + + 17 AS col2 @@ -51985,8 +52565,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -558 -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\) \* \(\- Int64\(6\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 AS col0, + 93 * - + 6 AS col0 +---- +-558 +0 query I rowsort SELECT DISTINCT - 25 * - 88 col0 @@ -52001,8 +52584,11 @@ SELECT DISTINCT - 26 + - 66 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) AS col2" at position 0 and "\(\- Int64\(\-10\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 21 AS col2, + ( - - 10 ) AS col2 +---- +-21 +10 query I rowsort SELECT ALL - 8 * - 99 AS col1 @@ -52147,8 +52733,11 @@ SELECT ALL 51 + - 29 + 48 * + + 64 + + ( + - 42 ) - 96 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 150 # Datafusion - Expected - 176 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) \+ Int64\(88\) AS col2" at position 0 and "Int64\(\-92\) \+ Int64\(67\) \* Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 62 + + 88 AS col2, - 92 + 67 * + + 4 AS col2 +---- +150 +176 query II rowsort label-9944 SELECT + COUNT ( + + 19 ) AS col0, 87 + COUNT ( * ) col2 @@ -52164,8 +52753,11 @@ SELECT ( + + COUNT ( * ) ) - 84 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \+ \(\- Int64\(\-82\)\) / Int64\(\-43\) AS col1" at position 0 and "Int64\(44\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 + - - 82 / - 43 AS col1, + 44 + COUNT ( * ) AS col1 +---- +45 +68 query I rowsort label-9947 SELECT 14 + - - CAST ( ( - 91 ) AS INTEGER ) / - 64 @@ -52297,8 +52889,11 @@ SELECT - 81 * + + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 0 and "\(\- nullif\(Int64\(\-78\), Int64\(\-27\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 34 AS col1, - NULLIF ( - 78, - 27 ) col1 +---- +34 +78 query I rowsort SELECT ALL - 25 * + - 42 diff --git a/data/sqlite/random/expr/slt_good_9.slt b/data/sqlite/random/expr/slt_good_9.slt index 8be04a5..27e4ba9 100644 --- a/data/sqlite/random/expr/slt_good_9.slt +++ b/data/sqlite/random/expr/slt_good_9.slt @@ -102,8 +102,11 @@ SELECT + 85 + 94 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 76 AS col2, COUNT ( * ) AS col2 +---- +1 +76 query I rowsort label-13 SELECT ALL 8 + - CAST ( NULL AS INTEGER ) * ( - 85 ) AS col0 @@ -154,8 +157,11 @@ SELECT ALL 58, 29 AS col0 # 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\)\) AS col0" at position 0 and "Int64\(\-45\) \+ Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 71 AS col0, - 45 + 72 AS col0 +---- +-71 +27 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -179,8 +185,11 @@ SELECT 97, 56 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 "Int64\(35\) \* CASE Int64\(28\) WHEN Int64\(4\) THEN NULL WHEN Int64\(\-57\) THEN Int64\(46\) END \* Int64\(57\) / Int64\(\-91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 col1, 35 * + CASE 28 WHEN 4 THEN NULL WHEN - 57 THEN 46 END * + 57 / - 91 AS col1 +---- +22 +NULL query I rowsort SELECT + 54 + 48 col0 @@ -441,8 +450,11 @@ SELECT 3 * COUNT ( * ) * 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - -351 # Datafusion - Expected - -977 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* \(\- nullif\(Int64\(9\), \(\- Int64\(\-85\)\) \* Int64\(39\)\)\) AS col0" at position 0 and "Int64\(48\) \* Int64\(\-22\) \+ Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 39 * - NULLIF ( + 9, - - 85 * + 39 ) AS col0, ( + 48 ) * - 22 + + 79 AS col0 +---- +-351 +-977 query I rowsort label-77 SELECT NULLIF ( - CAST ( NULL AS INTEGER ), + 64 / + 28 * - ( - 41 ) + COUNT ( * ) ) + + + NULLIF ( - CAST ( + 39 AS INTEGER ), 48 + - + COUNT ( * ) ) AS col0 @@ -670,8 +682,11 @@ SELECT DISTINCT 36 AS col0, - 84 * - 69 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1596 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* Int64\(\-19\) AS col0" at position 0 and "Int64\(73\) \* Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 84 * - 19 AS col0, 73 * + 0 AS col0 +---- +-1596 +0 query I rowsort SELECT DISTINCT - 83 + 9 @@ -728,8 +743,11 @@ SELECT ALL - 76 * + 72, 89 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 54 AS col1, 40 AS col1 +---- +40 +54 query III rowsort label-132 SELECT - 96 col2, - NULLIF ( 51, + MIN ( DISTINCT + ( - 80 ) ) + + 60 + - - 84 * - - 38 ) AS col1, + - CAST ( 81 AS INTEGER ) + - 50 AS col0 @@ -845,8 +863,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 77 + - + COALESCE ( + - 89, + - 61 - - + CASE + - COUNT ( * ) WHEN - ( + 30 ) THEN NULL ELSE + - 86 END ) * - 1 * - + COUNT ( * ) + - - 81 AS col0, + 89 AS col0 +---- +247 +89 query I rowsort label-154 SELECT ALL COUNT ( + 94 ) * - 37 col1 @@ -1517,8 +1538,11 @@ SELECT 56 + - + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - -986 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col2" at position 0 and "Int64\(34\) \* Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 col2, 34 * - 29 AS col2 +---- +-986 +45 query I rowsort SELECT - 17 * - 12 @@ -1528,8 +1552,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 4 AS col1, + 12 + - COUNT ( * ) AS col1 +---- +-4 +11 query I rowsort SELECT DISTINCT 5 + + 27 @@ -1664,8 +1691,11 @@ SELECT ALL - + 72 + 11 + MAX ( 30 ) - - - 65 * - 75 AS col2 # 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\(\-79\) \- Int64\(\-29\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 79 - - 29 AS col0, 91 AS col0 +---- +-50 +91 query I rowsort SELECT + NULLIF ( - COALESCE ( + + ( + 28 ), 42 ), + + 41 ) @@ -1780,8 +1810,11 @@ SELECT + SUM ( DISTINCT - 12 ) + - 43 * 26 - NULLIF ( + 66, + + 53 ) / + 1 AS co # 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 "Int64\(\-69\) AS col2" at position 0 and "Int64\(\-75\) \* Int64\(0\) \* Int64\(\-65\) \+ \(\- sum\(DISTINCT Int64\(\-1\)\)\) \* Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 69 AS col2, - 75 * + - 0 * - 65 + - SUM ( DISTINCT - 1 ) * + 13 AS col2 +---- +-69 +13 query I rowsort SELECT ALL 60 * + 93 @@ -1874,8 +1907,11 @@ SELECT - - 76 * + 26 + - 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col0" at position 0 and "Int64\(\-53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 17 AS col0, - 53 AS col0 +---- +-17 +-53 query I rowsort label-350 SELECT + NULLIF ( - 40, - 11 * + 58 * COUNT ( * ) ) @@ -2379,8 +2415,11 @@ SELECT - 16 * - - 52 AS col2, + 64 / 15 + + 67 * - 92 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-9\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 9 AS col2, + COUNT ( * ) AS col2 +---- +1 +9 query I rowsort SELECT ALL + ( - - 5 ) @@ -2390,8 +2429,11 @@ SELECT ALL + ( - - 5 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(53\) / CASE Int64\(\-61\) WHEN Int64\(73\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-10\) \+ \(\- Int64\(\-16\)\) \+ Int64\(38\) / count\(DISTINCT Int64\(78\)\) \+ Int64\(15\) \+ Int64\(1\) WHEN \(\- Int64\(91\)\) THEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(49\) END \+ Int64\(14\) / Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1 +NULL query II rowsort SELECT DISTINCT + 60 AS col2, + 68 AS col0 @@ -2435,8 +2477,11 @@ SELECT ALL + NULLIF ( - 39, 51 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(98\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 60 * COUNT ( * ) / 98 + + - ( ( COUNT ( * ) ) ) + + CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) AS col1 +---- +-1 +NULL query II rowsort label-456 SELECT DISTINCT COUNT ( * ) * 59 + - 46 AS col2, + 72 - 56 - + 89 * + - ( - CAST ( 37 AS INTEGER ) ) col1 @@ -2542,8 +2587,12 @@ SELECT MIN ( ALL 19 ), - 78 AS col0 # Datafusion - Expected - -3 # Datafusion - Expected - 36 # Datafusion - Expected - -57 -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 "Int64\(\-57\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 18 - + 21 AS col1, 36, - 57 AS col1 +---- +-3 +-57 +36 query I rowsort label-475 SELECT - MAX ( ALL 8 ) + + COUNT ( * ) @@ -2659,8 +2708,11 @@ SELECT DISTINCT - 72 / 80 * 11 * + + 79 + - - MAX ( ALL + 86 ) * - 51 * - + COAL # 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\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 47 AS col1, 51 AS col1 +---- +-47 +51 query I rowsort label-496 SELECT COALESCE ( 21, - 82 * - - 26 + - 62 + - - 35 * COUNT ( + - 28 ) * - + ( ( - 61 ) ), + 85 * + 99 * + 10 + + ( - - 3 ) ) / 65 * - 7 @@ -3236,8 +3288,11 @@ SELECT COUNT ( * ) * + - COUNT ( * ) + - 98 + - 64 - CASE 21 WHEN + 84 THEN NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "Int64\(91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 66 col1, 91 AS col1 +---- +66 +91 query I rowsort SELECT + 3 * - 89 @@ -3392,8 +3447,11 @@ SELECT ALL - 17 * - 97 AS col2 # 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 "Int64\(0\) \+ Int64\(96\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 + 96 AS col2, 49 AS col2 +---- +49 +96 query I rowsort label-632 SELECT DISTINCT + COUNT ( 41 ) * - - 5 AS col1 @@ -3881,8 +3939,11 @@ SELECT - 21 + - MAX ( ALL - - 87 ) - - 33 / 73 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 7 AS col1 +---- +1 +7 query I rowsort SELECT - ( - - 19 ) * + 92 * - 84 AS col2 @@ -4468,8 +4529,11 @@ SELECT - COUNT ( * ) * + + 4 + + 17 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -29687 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ Int64\(40\) \- \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-52\) \- Int64\(63\) \+ nullif\(Int64\(72\), Int64\(84\)\) \- CAST\(Int64\(\-59\) AS Float64\) \* \(\- Int64\(9\)\) \* avg\(\(\- Int64\(\-18\)\)\) \* \(\- Int64\(\-71\)\) AS col1" at position 0 and "Int64\(31\) / Int64\(59\) \- Int64\(2\) \+ Int64\(48\) \- Int64\(\-33\) \* sum\(Int64\(53\)\) \* Int64\(\-17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + 25 + + ( + 40 ) - - CAST ( NULL AS INTEGER ) + - 52 - + 63 + + NULLIF ( + 72, 84 ) - CAST ( - 59 AS FLOAT8 ) * - + 9 * AVG ( - - 18 ) * - ( - 71 ) AS col1, 31 / + 59 - + 2 + + 48 - - 33 * + SUM ( ALL 53 ) * - 17 AS col1 +---- +-29687 +NULL query I rowsort label-837 SELECT + COUNT ( * ) * 96 AS col1 @@ -4490,8 +4554,12 @@ 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\(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\. +query III valuesort SELECT ALL ( + - ( - COUNT ( * ) ) ) * 53 + 20 + - COUNT ( * ) AS col2, + MAX ( DISTINCT - 2 ) - + - 81 - 21 * 72 AS col2, 57 AS col1 +---- +-1433 +57 +72 query I rowsort label-841 SELECT + + 24 + + CAST ( NULL AS INTEGER ) AS col0 @@ -4578,8 +4646,11 @@ SELECT ALL - - 67 + + NULLIF ( + 47, - 82 ) + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -294 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-91\)\) AS col2" at position 0 and "Int64\(6\) \* Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 91 AS col2, 6 * + - 49 AS col2 +---- +-294 +91 query I rowsort SELECT ALL + 93 + - - 94 * - 54 AS col2 @@ -4938,8 +5009,11 @@ SELECT - 14 * + 46 * - 32 # 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 col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 94 AS col0, 2 AS col0 +---- +-94 +2 query I rowsort SELECT ALL 58 - - 43 AS col0 @@ -4979,8 +5053,11 @@ SELECT 47 + 89 + + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 84 AS col0, 53 AS col0 +---- +53 +84 query II rowsort label-933 SELECT ALL SUM ( DISTINCT - 59 ) * - 76 * - 10 col2, 42 @@ -5028,8 +5105,11 @@ SELECT DISTINCT + ( + 62 ) * COUNT ( * ) * - 27 + - 64 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(\-57\)\) AS col2" at position 0 and "Int64\(\-34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( DISTINCT - 57 ) AS col2, - 34 AS col2 +---- +-34 +-57 query I rowsort label-942 SELECT COUNT ( * ) / - 44 AS col1 @@ -5107,8 +5187,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +165116 +99 query I rowsort SELECT ALL + - 48 * 48 col1 @@ -5438,8 +5521,11 @@ SELECT NULLIF ( + - 96, - 8 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 37950 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col0" at position 0 and "Int64\(15\) \* Int64\(46\) \* Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 49 col0, 15 * + 46 * + 55 AS col0 +---- +-49 +37950 query I rowsort label-1019 SELECT - COUNT ( * ) * 28 * - - 96 * + 23 + + NULLIF ( ( - 26 ), + CAST ( NULL AS INTEGER ) + + 79 ) / + COUNT ( - 8 ) + - 77 - + 76 @@ -5449,8 +5535,11 @@ SELECT - COUNT ( * ) * 28 * - - 96 * + 23 + + NULLIF ( ( - 26 ), + CAST ( NULL A # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 10 AS col0, + 81 col0 +---- +10 +81 query I rowsort SELECT ALL 91 + + 67 col2 @@ -6024,8 +6113,11 @@ SELECT DISTINCT + 81 * - COUNT ( * ), + 81 - + - COALESCE ( 42, - - 59 + + - 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* \(\- Int64\(8\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 * - ( + 8 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 +---- +-48 +NULL query II rowsort label-1131 SELECT - ( + 20 ) col2, - COALESCE ( - + 2, - 14 + - MAX ( 25 ) ) @@ -6150,8 +6242,11 @@ 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\(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\. +query II valuesort SELECT + 34 col2, CASE + 84 WHEN 34 THEN 91 WHEN COUNT ( * ) * ( 2 ) * + - 40 THEN 41 + + 27 * NULLIF ( - COUNT ( * ), + 27 + 11 ) * + + 74 END AS col2 +---- +34 +NULL query I rowsort label-1154 SELECT ( + 56 ) * - + COUNT ( * ) @@ -6161,8 +6256,11 @@ SELECT ( + 56 ) * - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 9212 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "Int64\(94\) \* CAST\(Int64\(98\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 45 AS col0, 94 * + + CAST ( + 98 AS INTEGER ) AS col0 +---- +45 +9212 query I rowsort SELECT DISTINCT + 48 * - - 44 @@ -6254,8 +6352,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col0" at position 0 and "Int64\(\-9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 63 AS col0, - 9 col0 +---- +-63 +-9 query I rowsort label-1173 SELECT + CAST ( NULL AS INTEGER ) + 62 col0 @@ -6351,8 +6452,11 @@ 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\(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\. +query II valuesort SELECT 8 * + - 76 * - - COUNT ( * ) + + 41 AS col2, - COUNT ( * ) / - 6 * + + 90 AS col2 +---- +-567 +0 query I rowsort label-1192 SELECT + NULLIF ( - - 29, COUNT ( * ) * 6 ) @@ -7242,8 +7346,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5917 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* Int64\(97\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 61 * 97 AS col2, 10 AS col2 +---- +-5917 +10 query I rowsort label-1366 SELECT ALL - MIN ( ALL ( - 64 ) ) / 1 * 82 col0 @@ -8115,8 +8222,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 AS col2, - COUNT ( * ) AS col2 +---- +-1 +72 query I rowsort label-1535 SELECT + CAST ( 30 AS INTEGER ) * - CAST ( NULL AS INTEGER ) * - 33 AS col0 @@ -8439,8 +8549,11 @@ SELECT DISTINCT + 17 / - ( - COUNT ( * ) ) + - - 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 AS col2, 50 AS col2 +---- +50 +82 query I rowsort label-1597 SELECT ALL + COUNT ( * ) * + MAX ( DISTINCT - 59 ) * - MAX ( ALL 63 ) AS col1 @@ -8665,8 +8778,11 @@ SELECT 60 + 73 * - 61 * ( - 43 ) - + COUNT ( * ) * COUNT ( * ) + 30 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1275 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* \(\- Int64\(\-25\)\) AS col1" at position 0 and "Int64\(\-5\) \- Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 51 * - - 25 AS col1, - 5 - + 53 AS col1 +---- +-58 +1275 query II rowsort SELECT 69 + + 94, 43 AS col0 @@ -8727,8 +8843,11 @@ SELECT DISTINCT 53 * 61 # 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 "Int64\(85\) AS col0" at position 0 and "Int64\(\-8\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 85 ) AS col0, - 8 AS col0 +---- +-8 +85 query I rowsort SELECT - 41 + + 52 * + - 19 AS col2 @@ -8917,8 +9036,12 @@ SELECT - 42 * + CASE - 30 WHEN + - 18 THEN NULL WHEN CAST ( + 9 AS INTEGER ) + - # Datafusion - Expected - 79 # Datafusion - Expected - 23 # Datafusion - Expected - -38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) \+ Int64\(50\) AS col2" at position 1 and "Int64\(\-38\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - - 79 AS col1, - 27 + + ( + + 50 ) AS col2, - 38 AS col2 +---- +-38 +23 +79 query II rowsort label-1688 SELECT ALL COUNT ( * ), 16 - + CASE - 85 WHEN - CAST ( COUNT ( * ) AS INTEGER ) * - COALESCE ( - 1, ( - 29 ), - + 76 * - CAST ( + ( 24 ) AS INTEGER ) ) THEN NULL ELSE ( - 54 ) END AS col1 @@ -9237,8 +9360,12 @@ SELECT ALL 25 + CAST ( - MIN ( + 87 ) AS INTEGER ) AS col1 # Datafusion - Expected - 51 # Datafusion - Expected - 57 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(57\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 50 + + COUNT ( * ) AS col0, + 57 * - - COUNT ( * ) AS col0, 92 + - 17 AS col2 +---- +51 +57 +75 query I rowsort label-1749 SELECT ( + SUM ( + + 78 ) ) + - 33 AS col1 @@ -9263,8 +9390,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 6952 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(88\) AS col0" at position 0 and "min\(\(\- Int64\(17\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 * + 88 AS col0, MIN ( - + 17 ) AS col0 +---- +-17 +6952 query I rowsort SELECT 85 + + 8 * - - 37 col2 @@ -9739,8 +9869,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2184 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \* Int64\(6\) \* \(\- CAST\(NULL AS Int32\)\) \+ \(\- Int64\(15\)\) \+ Int64\(\-26\) \+ Int64\(95\) AS col1" at position 0 and "Int64\(28\) \* Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + + 77 ) * + 6 * - + CAST ( NULL AS INTEGER ) + - + 15 + - 26 + + 95 AS col1, 28 * 78 AS col1 +---- +2184 +NULL query I rowsort label-1844 SELECT DISTINCT + 8 / + 50 * 75 * + + COUNT ( * ) - - COUNT ( * ) - 46 + + CAST ( + 17 AS INTEGER ) AS col2 @@ -10113,8 +10246,11 @@ SELECT - NULLIF ( + + 75, 80 * MIN ( ALL + + ( 91 ) ) * - 80 + 86 * + - CASE + 8 # 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\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 col1, ( 64 ) col1 +---- +48 +64 query I rowsort label-1916 SELECT MIN ( + + 27 ) col0 @@ -10275,14 +10411,20 @@ SELECT ( - + MAX ( ALL + + ( 46 ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1080 # Datafusion - Expected - 932 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) \* Int64\(36\) AS col1" at position 0 and "Int64\(80\) \* Int64\(11\) \+ Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 30 * + 36 AS col1, 80 * 11 + + 52 AS col1 +---- +-1080 +932 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - -1144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) AS col0" at position 0 and "Int64\(\-44\) \* Int64\(26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + - 43 ) AS col0, - 44 * 26 AS col0 +---- +-1144 +-43 query I rowsort label-1947 SELECT DISTINCT - 6 * - - 74 + - - COUNT ( * ) @@ -10292,8 +10434,11 @@ SELECT DISTINCT - 6 * - - 74 + - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - -3952 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 0 and "Int64\(\-80\) \* Int64\(51\) \+ Int64\(\-2\) \* Int64\(\-98\) \+ \(\- Int64\(68\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 11 ) AS col0, ( - 80 ) * 51 + - 2 * - 98 + - + 68 AS col0 +---- +-3952 +11 query I rowsort SELECT ALL 3 * - 48 + - 34 @@ -10401,8 +10546,11 @@ SELECT 33 + - 6 # 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 "Int64\(1\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 AS col1, + 21 AS col1 +---- +1 +21 query I rowsort label-1969 SELECT ALL + ( 70 ) + - - ( MAX ( DISTINCT - + 63 ) ) AS col0 @@ -10433,8 +10581,11 @@ SELECT 58 * - 71 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52374 # Datafusion - Expected - 3313 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \* Int64\(\-42\) \* \(\- Int64\(43\)\) AS col0" at position 0 and "\(\- Int64\(48\)\) \* Int64\(\-69\) \+ count\(Int64\(\-7\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 29 * - 42 * - + 43 AS col0, + ( - + 48 ) * + - 69 + COUNT ( - 7 ) AS col0 +---- +3313 +52374 query II rowsort label-1975 SELECT DISTINCT - COUNT ( * ), + 31 col2 @@ -10501,8 +10652,11 @@ SELECT 97 col0, + COUNT ( * ) 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 "Int64\(\-4\) AS col1" at position 0 and "\(\- Int64\(61\)\) / Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 4 AS col1, - ( 61 ) / - 61 AS col1 +---- +-4 +1 query I rowsort SELECT - 12 * + 79 @@ -10784,8 +10938,11 @@ SELECT + COALESCE ( + 80, + - ( 24 ) + + - 54 + + - 63, + 11 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 214524 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(34\) \+ Int64\(24\) \* Int64\(94\) \* Int64\(95\) AS col2" at position 0 and "Int64\(42\) \- \(\- Int64\(1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 6 * 34 + + + 24 * + 94 * + 95 AS col2, 42 - - + 1 AS col2 +---- +214524 +43 query I rowsort SELECT DISTINCT + ( - + 55 ) @@ -11008,8 +11165,11 @@ SELECT - 36 * + + COALESCE ( + 55, 82 + + CAST ( NULL AS INTEGER ) + 57 ) + + 77 # 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\(78\) \- Int64\(11\) AS col2" at position 0 and "\(\- Int64\(72\)\) \- Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 - 11 AS col2, - ( 72 ) - - 89 AS col2 +---- +17 +67 query I rowsort label-2086 SELECT COALESCE ( 40, - 75 ) + - 70 * + CAST ( + 38 AS INTEGER ) * - - COUNT ( * ) * - 73 * + COALESCE ( 93, + - 37, + COUNT ( * ) + 28 ) - + 8 @@ -11242,8 +11402,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(36\)\) AS col0" at position 0 and "Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 36 AS col0, 74 AS col0 +---- +-36 +74 query I rowsort label-2130 SELECT - CASE CASE + 28 WHEN - 47 + COUNT ( * ) THEN NULL WHEN + + 32 THEN + 5 * - 31 - - ( + 53 ) WHEN - + 33 / - - CAST ( NULL AS INTEGER ) THEN NULL WHEN - - COUNT ( * ) THEN - 79 END WHEN - 70 THEN + ( - ( - NULLIF ( 6, - + ( + COALESCE ( + + 36, + NULLIF ( + 45, 61 * 32 + NULLIF ( 64, - COALESCE ( + 36, 1, + COUNT ( * ) * - 73 ) ) ) ) ) - 79 * 35 ) ) ) WHEN + CASE CAST ( - 62 AS INTEGER ) WHEN + 96 * + ( + 69 * + COUNT ( * ) ) THEN ( - 18 ) ELSE - 75 * + 71 + COUNT ( * ) END - + SUM ( + 15 ) THEN NULL ELSE 8 * MAX ( - 34 ) END AS col2 @@ -11334,8 +11497,11 @@ SELECT COUNT ( DISTINCT - + 65 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\)" at position 0 and "Int64\(39\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 39, 39 +---- +39 +39 query I rowsort label-2147 SELECT - COALESCE ( + + 14, + COALESCE ( - ( - + 57 ), 34 * + 86 ) * + 22 * - 7 * 17 + 24 + 52 + + - CAST ( NULL AS INTEGER ), - 46 ) * - - 13 * - - 68 + - COUNT ( * ) @@ -12170,8 +12336,11 @@ SELECT - 14 * 41 / 74 + 61 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -416075 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* CASE Int64\(\-14\) WHEN Int64\(22\) THEN \(\- Int64\(\-14\)\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) THEN NULL WHEN Int64\(1\) \* Int64\(61\) THEN NULL END AS col2" at position 0 and "Int64\(55\) \* Int64\(89\) \* \(\- CAST\(Int64\(85\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-416075 +NULL query I rowsort SELECT + 10 + + - 16 @@ -12290,8 +12459,11 @@ SELECT ALL + - 36 - + MIN ( - 79 ) AS col2, 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1805 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \* Int64\(19\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 95 * + + 19 AS col2, 26 AS col2 +---- +1805 +26 query I rowsort label-2327 SELECT ALL CAST ( + - SUM ( - + 11 ) AS INTEGER ) @@ -12684,8 +12856,11 @@ SELECT ALL - 52 / + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "Int64\(15\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 63 col0, 15 / + + COUNT ( * ) col0 +---- +15 +63 query I rowsort label-2402 SELECT ALL + + CASE 40 WHEN CAST ( + - COUNT ( * ) AS INTEGER ) THEN - 42 WHEN + 53 THEN NULL WHEN - + COUNT ( * ) / + 77 * + 29 + + 28 + 28 THEN + 31 + 83 END AS col1 @@ -12863,8 +13038,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -164 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- max\(Int64\(8\)\)\) \+ \(\- Int64\(76\)\) \+ sum\(Int64\(\-80\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 30 + + ( - CAST ( NULL AS INTEGER ) ) AS col0, - MAX ( + 8 ) + - + 76 + SUM ( ALL - 80 ) AS col0 +---- +-164 +NULL query I rowsort label-2436 SELECT DISTINCT + MAX ( 27 ) + + - 39 * + + 5 + + 9 + + + 52 + - 85 AS col2 @@ -13148,8 +13326,11 @@ 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\(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\. +query II valuesort SELECT - - COUNT ( * ) * 93 AS col0, + MIN ( DISTINCT - - 31 ) col0 +---- +31 +93 query I rowsort label-2489 SELECT ALL - 53 * 25 + - + 35 / + + 69 + 99 + 44 @@ -13504,8 +13685,11 @@ SELECT ALL COUNT ( * ) - 34 - - 9 * + - 8 * - - 19 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col0" at position 0 and "CASE Int64\(57\) WHEN CAST\(Int64\(\-44\) AS Int32\) THEN NULL WHEN Int64\(9\) THEN Int64\(79\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 AS col0, CASE + 57 WHEN CAST ( - 44 AS INTEGER ) THEN NULL WHEN 9 THEN 79 END AS col0 +---- +35 +NULL query I rowsort label-2556 SELECT 15 * - + CAST ( NULL AS INTEGER ) * + + 81 * - 12 AS col0 @@ -14166,8 +14350,12 @@ SELECT ALL SUM ( + + 10 ) + - 19 AS col1 # Datafusion - Expected - -96 # Datafusion - Expected - 50 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col0" at position 1 and "Int64\(37\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 96 AS col1, + 50 AS col0, + 37 AS col0 +---- +-96 +37 +50 query I rowsort label-2682 SELECT CAST ( NULL AS INTEGER ) + 70 * - + 53 + + + 26 AS col1 @@ -14339,8 +14527,11 @@ SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col2" at position 0 and "Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 AS col2, + 32 AS col2 +---- +32 +52 query I rowsort label-2715 SELECT ALL + - MAX ( DISTINCT 82 ) + + 26 col2 @@ -14433,8 +14624,11 @@ SELECT DISTINCT - 36 * - + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 15 ) AS col0, 72 AS col0 +---- +15 +72 query I rowsort label-2733 SELECT - - ( + - 66 ) / - 25 @@ -14496,8 +14690,11 @@ SELECT - - COUNT ( * ) + ( - + COUNT ( * ) ) * 72 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76608 # Datafusion - Expected - -312 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(Int64\(14\), Int64\(55\)\)\)\) \* Int64\(\-96\) \* \(\- Int64\(\-57\)\) AS col1" at position 0 and "Int64\(78\) \* Int64\(\-4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - NULLIF ( + 14, 55 ) ) * + - 96 * - ( - 57 ) AS col1, 78 * - 4 AS col1 +---- +-312 +-76608 query I rowsort SELECT - + 71 + + + 68 * - - 16 @@ -14581,8 +14778,11 @@ SELECT ALL 22 * + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 79 col0, COUNT ( * ) AS col0 +---- +1 +79 query I rowsort label-2760 SELECT + CAST ( 47 AS INTEGER ) / - CAST ( 89 AS INTEGER ) - 1 AS col0 @@ -14722,8 +14922,11 @@ SELECT 56 * - COUNT ( * ) * 69 - - 66 AS col2, 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \+ Int64\(56\) AS col1" at position 0 and "Int64\(\-23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 + + + 56 AS col1, - 23 AS col1 +---- +-23 +61 query I rowsort SELECT 80 * - 65 AS col0 @@ -14743,8 +14946,11 @@ SELECT DISTINCT + 2 + 35 * MAX ( ALL 40 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \- Int64\(42\) AS col2" at position 0 and "min\(DISTINCT Int64\(\-61\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 - + 42 AS col2, + MIN ( DISTINCT - 61 ) AS col2 +---- +-61 +43 query I rowsort SELECT ALL - 95 + + - 63 * - 83 @@ -15722,8 +15928,11 @@ SELECT ALL + 35 - - - NULLIF ( 20, 21 + + 40 * 73 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(52\) AS col1" at position 0 and "Int64\(\-31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) * 52 AS col1, - 31 AS col1 +---- +-31 +NULL query II rowsort label-2983 SELECT 49 * - 2, 63 / 83 * + 70 AS col1 @@ -15814,8 +16023,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 68 - + 98 AS col2, ( + + 93 ) * 77 - COUNT ( * ) * 87 AS col2 +---- +-30 +7074 query I rowsort SELECT ALL + ( + 33 ) AS col0 @@ -16640,8 +16852,11 @@ SELECT + 15 + - 30 AS col0 # 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\(21\) \- Int64\(\-28\) AS col2" at position 0 and "Int64\(57\) \* \(\- CASE \(\- max\(DISTINCT Int64\(62\)\)\) WHEN Int64\(\-90\) THEN NULL WHEN \(\- min\(DISTINCT Int64\(67\)\)\) THEN Int64\(98\) ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 21 - + - 28 AS col2, 57 * - CASE - MAX ( DISTINCT + 62 ) WHEN - 90 THEN NULL WHEN - MIN ( DISTINCT + 67 ) THEN 98 ELSE NULL END col2 +---- +49 +NULL query I rowsort SELECT - NULLIF ( - - 96, + 3 ) col0 @@ -16971,8 +17186,11 @@ SELECT 48 + COUNT ( * ) + + 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 97 AS col1, + 16 AS col1 +---- +16 +97 query I rowsort label-3220 SELECT 87 + COUNT ( * ) col1 @@ -17003,8 +17221,11 @@ SELECT DISTINCT - 97 * - COALESCE ( + ( 6 ), 64, 5 * + 45 * + 0 + MIN ( ALL + - # Datafusion - Datafusion expected results: # Datafusion - Expected - -3240 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(45\)\) \* \(\- Int64\(72\)\) AS col1" at position 0 and "Int64\(48\) / CASE CASE Int64\(\-22\) WHEN Int64\(69\) THEN NULL WHEN Int64\(\-79\) \* Int64\(53\) \+ Int64\(60\) THEN CAST\(Int64\(12\) AS Float64\) END WHEN Int64\(\-38\) THEN \(\- max\(Int64\(\-85\)\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( 45 ) * - ( + + 72 ) col1, 48 / CASE + CASE - 22 WHEN 69 THEN NULL WHEN + - 79 * + 53 + 60 THEN CAST ( 12 AS FLOAT8 ) END WHEN - 38 THEN - MAX ( ALL - 85 ) END AS col1 +---- +-3240 +NULL query II rowsort label-3226 SELECT ALL - + COUNT ( * ) * - ( - + 84 ) * + 1 / + COUNT ( * ) + - 68 AS col2, + 13 + - 88 * 24 * - - 39 * MIN ( DISTINCT 62 ) * + 87 - + COALESCE ( 73 + + 42, - 22 ) @@ -17153,8 +17374,11 @@ SELECT + 10 * - + MAX ( ALL + 23 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(80\)\) AS col2" at position 0 and "\(\- min\(Int64\(89\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( 80 ) AS col2, - MIN ( 89 ) AS col2 +---- +-89 +80 query II rowsort label-3255 SELECT ALL ( + - 16 ) * + 6 col2, CAST ( NULL AS INTEGER ) * - 73 @@ -17193,8 +17417,11 @@ SELECT - MIN ( ALL - 81 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "CASE max\(Int64\(\-48\)\) WHEN Int64\(20\) \* Int64\(\-45\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-8\) THEN Int64\(60\) ELSE NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +NULL +NULL query I rowsort label-3262 SELECT + - COUNT ( * ) + - + 63 * - 96 AS col1 @@ -17639,8 +17866,11 @@ SELECT ALL - - 82 - + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 19 AS col1, COUNT ( * ) AS col1 +---- +1 +19 query I rowsort label-3348 SELECT ALL + 97 / - 84 AS col1 @@ -18034,8 +18264,11 @@ SELECT ALL 64 / + 90 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ \(\- Int64\(\-70\)\) AS col2" at position 0 and "Int64\(\-69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 23 + - ( + - 70 ) AS col2, - 69 AS col2 +---- +-69 +93 query I rowsort SELECT DISTINCT 81 + + 11 * + 75 - - 99 * - - 97 * - 53 * + 39 @@ -18668,8 +18901,11 @@ SELECT ALL MIN ( + + 21 ) + + MIN ( ALL - + CAST ( - 93 AS INTEGER ) ) - - - 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 AS col1, + 81 AS col1 +---- +61 +81 query I rowsort SELECT DISTINCT - 84 + + 32 + 58 AS col0 @@ -19504,8 +19740,11 @@ 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\(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\. +query II valuesort SELECT 12 + + - COUNT ( * ) AS col0, 75 + + COALESCE ( + 17, - - 85, - + 83 ) + - + 12 * - - 90 * - 69 col0 +---- +11 +74612 query I rowsort SELECT DISTINCT 93 + 80 @@ -19632,8 +19871,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 15 + - COUNT ( * ) AS col0, + 25 AS col0 +---- +14 +25 query I rowsort SELECT 46 * + - 9 * + 69 AS col2 @@ -20120,8 +20362,11 @@ SELECT + 36 - 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8010 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \* Int64\(\-90\) AS col1" at position 0 and "Int64\(\-72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 89 * + - 90 AS col1, - 72 AS col1 +---- +-72 +-8010 query I rowsort SELECT 0 * - 81 AS col1 @@ -20478,8 +20723,11 @@ SELECT + - 38 * - 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-45\)\)\) AS col2" at position 0 and "Int64\(\-82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - - 45 ) AS col2, - 82 AS col2 +---- +-45 +-82 query I rowsort label-3885 SELECT DISTINCT 37 / - ( ( + 82 ) ) * CAST ( NULL AS INTEGER ) / - COALESCE ( + 16, + CAST ( - CASE + 28 WHEN + + 30 + - COUNT ( * ) + + CASE - COALESCE ( - 90, 22 ) WHEN CAST ( + 50 AS INTEGER ) THEN - 44 * - 23 + + - 47 WHEN - COUNT ( * ) THEN NULL WHEN + - 78 * ( + 16 ) THEN NULL END THEN - + 32 + - - ( + 98 ) WHEN + - 42 THEN - 85 END AS INTEGER ) ) @@ -20921,8 +21169,11 @@ 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\(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\. +query II valuesort 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 +---- +-32 +6878 query II rowsort label-3969 SELECT ALL 3 - - 77, COUNT ( * ) AS col2 @@ -21301,8 +21552,11 @@ SELECT + 99 + - 66 * 12 * + - 70 AS col2 # 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\(12\) \+ \(\- count\(DISTINCT Int64\(72\)\)\) \- \(\- Int64\(0\)\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 12 + - COUNT ( DISTINCT + + 72 ) - - + 0 AS col1, 26 AS col1 +---- +11 +26 query I rowsort SELECT - 65 + - + 57 AS col0 @@ -21508,8 +21762,11 @@ 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\(1\)\) AS count\(\*\)\), Int64\(81\)\) \* Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 col0, NULLIF ( - + COUNT ( * ), 81 ) * 66 col0 +---- +-66 +67 query I rowsort label-4081 SELECT ALL - CAST ( - + 23 AS INTEGER ) * - COUNT ( * ) + + 52 AS col0 @@ -21583,8 +21840,11 @@ SELECT DISTINCT + - 10 AS col2, - 69 / - 87 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2176 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(34\)\) \* min\(Int64\(64\)\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + 34 ) * + MIN ( ALL + 64 ) AS col0, ( + + 23 ) col0 +---- +-2176 +23 query I rowsort SELECT ALL + 18 * - ( - + 93 ) + + + 43 + + 90 * + 12 - + ( - 27 ) * - ( - 10 ) + - 24 + 14 + - - 34 * 52 - + ( + 88 ) AS col2 @@ -21631,8 +21891,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(\-34\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 AS col1, ( + 7 ) - + COUNT ( * ) * - - 34 AS col1 +---- +-27 +47 query II rowsort label-4104 SELECT - NULLIF ( 44, - ( - - 66 ) ) + + - 72 + - + COUNT ( * ) AS col1, COUNT ( * ) AS col2 @@ -21648,8 +21911,11 @@ SELECT - - 3 * - - 56 / 44 * 71 + 48 + - + 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col1" at position 0 and "CASE Int64\(86\) WHEN Int64\(\-35\) THEN Int64\(77\) WHEN Int64\(62\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 30 AS col1, CASE + + 86 WHEN - 35 THEN 77 WHEN + 62 THEN NULL END AS col1 +---- +30 +NULL query I rowsort label-4107 SELECT + 40 * - - 68 + + COUNT ( ALL 88 ) + + 3 @@ -21767,8 +22033,11 @@ SELECT DISTINCT COUNT ( ALL - 93 ) * - 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(79\) AS Int32\)\) AS col0" at position 0 and "Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - CAST ( + 79 AS INTEGER ) AS col0, + 3 col0 +---- +-79 +3 query I rowsort SELECT ALL 12 * + 47 @@ -21788,8 +22057,11 @@ SELECT - COALESCE ( + COUNT ( * ), + 55 / - 96 + 53 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(67\) AS Int32\) AS col2" at position 0 and "Int64\(\-58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + + 67 AS INTEGER ) AS col2, - 58 AS col2 +---- +-58 +67 query I rowsort label-4134 SELECT 70 + CASE 49 WHEN - 92 THEN NULL WHEN CAST ( - + 61 AS INTEGER ) THEN + MIN ( + 94 ) ELSE NULL END @@ -22048,8 +22320,11 @@ 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\(1\)\) AS count\(\*\)\), Int64\(\-36\)\)\)\) ELSE NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 61 AS col2, CASE + 8 WHEN + 40 THEN - - NULLIF ( - COUNT ( * ), - 36 ) ELSE NULL END AS col2 +---- +61 +NULL query I rowsort SELECT 43 + - + COALESCE ( - 85, 48 ) col1 @@ -22440,8 +22715,11 @@ 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\(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\. +query II valuesort 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 +---- +7287 +NULL query I rowsort SELECT 28 * - COALESCE ( - 9, - - 92 ) @@ -22593,8 +22871,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( - 17 ) * - COUNT ( * ) + + 97 + + 51 * - 70 * - 50 AS col0, COALESCE ( - - 73, + COUNT ( * ) + 0, - - 16 ) * ( + 11 ) * + - COUNT ( 35 ) + + + 86 - ( + 99 ) + - 1 AS col0 +---- +-817 +178596 query I rowsort label-4286 SELECT COALESCE ( + 93, - 33 + - ( COALESCE ( + 52, + + 80 ) ) ) * - CAST ( - 28 AS INTEGER ) @@ -22815,8 +23096,11 @@ SELECT DISTINCT 97 * + - 85 * 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "Int64\(\-79\) \+ CAST\(NULL AS Int32\) \* \(\- Int64\(\-72\)\) \* \(\- Int64\(\-26\)\) \* Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 8 AS col2, - 79 + + + ( CAST ( NULL AS INTEGER ) ) * - - 72 * - - 26 * + + 30 AS col2 +---- +8 +NULL query I rowsort label-4327 SELECT + COUNT ( + - CAST ( + - CAST ( - - 49 AS INTEGER ) AS FLOAT8 ) ) * COUNT ( * ) + + COUNT ( * ) + + + 66 - + - 8 * 72 + - - NULLIF ( 26, + CAST ( - CAST ( NULL AS FLOAT8 ) AS INTEGER ) ) + - ( - 87 ) AS col2 @@ -22856,8 +23140,11 @@ SELECT + 19 * COALESCE ( - COUNT ( * ), + - NULLIF ( MAX ( - - 4 ), - 27 ) ) + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 3288 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col2" at position 0 and "Int64\(56\) \* Int64\(68\) \+ Int64\(\-40\) \* \(\- Int64\(\-13\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 68 AS col2, + 56 * + 68 + + - 40 * - - 13 AS col2 +---- +3288 +68 query I rowsort label-4335 SELECT + NULLIF ( - + COALESCE ( - + 1, - SUM ( NULLIF ( + 24, 95 + + 27 ) ) * 12 * + - 27 ), - 63 ) - + COUNT ( * ) @@ -22950,8 +23237,11 @@ SELECT ALL 16 + + + NULLIF ( - 39, MAX ( COALESCE ( - - 46, CAST ( NULL AS INTEG # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - -1186 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- Int64\(52\)\)\) AS col1" at position 0 and "Int64\(15\) \* \(\- Int64\(79\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT SUM ( ALL - + 52 ) AS col1, 15 * - + 79 - + COUNT ( * ) AS col1 +---- +-1186 +-52 query I rowsort SELECT ALL COALESCE ( + + 57, - + 6 * - - 21, - 21 + + 15 ) @@ -24397,8 +24687,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 47 * - COUNT ( * ) AS col2, 67 AS col2 +---- +47 +67 query I rowsort label-4634 SELECT ALL + 0 * - + COUNT ( * ) + 72 AS col0 @@ -25151,8 +25444,11 @@ SELECT DISTINCT - 10 - - 42 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - -4260 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "Int64\(\-71\) \* \(\- Int64\(\-60\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 51 AS col0, - 71 * - - 60 AS col0 +---- +-4260 +51 query I rowsort SELECT 19 * - 91 @@ -25431,8 +25727,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 28 AS col1, 81 AS col1 +---- +-28 +81 query I rowsort label-4833 SELECT - COALESCE ( + 92, 68 + + - COALESCE ( + 23, - 70 ) * - - 33 * 53 / - - 57 / 79 ) @@ -25852,8 +26151,11 @@ SELECT 69 - - 17 + ( 96 ) # 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 "Int64\(\-98\) AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 98 AS col0, 27 AS col0 +---- +-98 +27 query II rowsort SELECT 25 AS col0, 92 @@ -25905,8 +26207,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col2" at position 0 and "CASE \(\- Int64\(34\)\) WHEN Int64\(\-94\) \+ Int64\(\-68\) \+ \(\- Int64\(84\)\) THEN NULL ELSE Int64\(45\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 85 AS col2, CASE - + 34 WHEN - 94 + - 68 + - + ( + 84 ) THEN NULL ELSE + 45 END AS col2 +---- +-85 +45 query I rowsort SELECT ALL - - 57 * 18 + - - 16 AS col0 @@ -26674,8 +26979,11 @@ SELECT + SUM ( + 66 ) / + ( + + 43 ) + + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2197 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(33\) \+ Int64\(\-44\) \- \(\- Int64\(39\)\) \+ Int64\(97\) \* Int64\(\-4\) \+ CAST\(Int64\(\-50\) AS Int32\) AS col0" at position 0 and "Int64\(72\) / \(\- \(\- Int64\(\-42\)\)\) \- Int64\(\-13\) \- \(\- Int64\(72\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 * + 33 + - 44 - - + 39 + 97 * - 4 + + CAST ( + - 50 AS INTEGER ) col0, + 72 / - ( - - 42 ) - - 13 - - + 72 AS col0 +---- +2197 +84 query I rowsort SELECT DISTINCT 18 * - 34 + - 39 AS col2 @@ -26982,8 +27290,11 @@ SELECT DISTINCT + 31 + + - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 AS col2, COUNT ( * ) AS col2 +---- +-64 +1 query II rowsort SELECT ( - 9 ) * - - 32 AS col0, + 53 - - - 7 @@ -27153,8 +27464,11 @@ SELECT 69 + 41 * - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(\-55\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(DISTINCT CAST\(Int64\(\-34\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( DISTINCT - 55 ) AS col1, COUNT ( * ) + COUNT ( DISTINCT + CAST ( - 34 AS INTEGER ) ) AS col1 +---- +2 +55 query II rowsort SELECT ALL 65, - ( - 92 ) AS col0 @@ -27210,8 +27524,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 37 AS col2, + 49 AS col2 +---- +37 +49 query II rowsort label-5175 SELECT DISTINCT SUM ( - 77 ) col1, COUNT ( * ) AS col0 @@ -27222,8 +27539,11 @@ SELECT DISTINCT SUM ( - 77 ) col1, COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 421 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(11\) \* Int64\(34\) \- Int64\(78\) \+ Int64\(48\) \+ Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, 11 * 34 - 78 + + + 48 + + 77 AS col1 +---- +1 +421 query I rowsort SELECT - NULLIF ( - 25, 37 ) @@ -27460,8 +27780,12 @@ SELECT DISTINCT - ( + - 22 ) * + COUNT ( * ) AS col1 # Datafusion - Expected - 31 # Datafusion - Expected - 32 # Datafusion - Expected - 2214 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \+ \(\- Int64\(54\)\) AS col1" at position 1 and "Int64\(54\) \* Int64\(41\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + + MAX ( + 31 ), 86 + - ( + 54 ) AS col1, 54 * + 41 AS col1 +---- +2214 +31 +32 query I rowsort label-5220 SELECT + - ( + 13 ) + + + COUNT ( * ) @@ -27580,8 +27904,11 @@ SELECT DISTINCT COUNT ( + 21 ) + + COUNT ( - - 65 ) - 50 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col2" at position 0 and "Int64\(46\) \+ Int64\(\-99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 93 AS col2, + 46 + - 99 AS col2 +---- +-53 +93 query I rowsort SELECT ALL CASE - 98 WHEN - 4 * + 58 + 76 + - 50 THEN 66 WHEN + 4 THEN NULL END + - - 34 @@ -27596,8 +27923,11 @@ 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 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 II valuesort SELECT DISTINCT - NULLIF ( - + COUNT ( * ), 1 ) AS col2, + 48 AS col2 +---- +1 +48 query I rowsort label-5246 SELECT + CAST ( 53 AS INTEGER ) AS col1 @@ -27756,8 +28086,11 @@ SELECT COUNT ( * ) + - - COUNT ( * ) - + COUNT ( * ) * - - 5 AS col2, 38 - - NUL # Datafusion - Datafusion expected results: # Datafusion - Expected - -236 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT \(\- Int64\(\-46\)\)\) \- Int64\(3\) \* Int64\(94\) AS col2" at position 0 and "Int64\(92\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( DISTINCT - - 46 ) - 3 * + 94 AS col2, 92 AS col2 +---- +-236 +92 query I rowsort label-5276 SELECT ALL - + 73 + + - 1 + - 45 * - + 90 * + 20 * + + SUM ( ALL 43 ) AS col1 @@ -27837,8 +28170,11 @@ SELECT SUM ( DISTINCT + 63 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(Int64\(98\) AS Int32\) / \(\- Int64\(33\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, + CAST ( 98 AS INTEGER ) / - + 33 AS col0 +---- +-2 +1 query I rowsort label-5292 SELECT + 43 * CASE + CASE 87 WHEN + 89 * ( + SUM ( DISTINCT 75 ) ) / 61 + - 56 + + NULLIF ( + + 42, + - 20 ) * COUNT ( ALL - 65 ) * + + ( 10 ) * 5 * - 99 - - CAST ( - COUNT ( * ) AS INTEGER ) * + ( + 21 ) THEN 33 * - 1 END WHEN CAST ( NULL AS FLOAT8 ) THEN 52 - COUNT ( * ) END * 17 @@ -27967,8 +28303,11 @@ SELECT - 20 * + 75 # 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 "Int64\(48\) AS col1" at position 0 and "Int64\(11\) \+ Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 col1, 11 + + 21 AS col1 +---- +32 +48 query I rowsort SELECT DISTINCT + NULLIF ( + 94, + 73 * 38 / + + 24 ) @@ -28068,8 +28407,11 @@ SELECT DISTINCT + CASE - 16 WHEN - 48 + + + 56 THEN NULL ELSE + 42 + - 45 END # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 90 col2, 89 AS col2 +---- +89 +90 query II rowsort SELECT + 40 + 29, - 47 * 26 col0 @@ -28249,8 +28591,11 @@ SELECT + 47 * + 78 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -122400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(18\), Int64\(\-55\)\) \+ Int64\(52\) / Int64\(15\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-68\) \* Int64\(90\) \* Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( 18, - 55 ) + + 52 / + 15 * - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1, - 68 * 90 * + + 20 AS col1 +---- +-122400 +NULL query I rowsort label-5369 SELECT CASE + CAST ( NULL AS INTEGER ) WHEN 45 THEN - + 91 END * + - 71 * 43 @@ -28327,8 +28672,11 @@ 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\(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\. +query II valuesort SELECT ALL - SUM ( DISTINCT + + 82 ) * + ( - - NULLIF ( + 45, - + 93 - + 16 ) ) + - - COUNT ( * ) AS col0, 16 + - 68 + 84 * - + 9 + + 46 col0 +---- +-3689 +-762 query I rowsort label-5384 SELECT ALL COUNT ( * ) * - 92 col2 @@ -28524,8 +28872,12 @@ SELECT - COUNT ( * ) / 29 * 5 * + 38 + + COUNT ( * ) + - + 11 * - COUNT ( * ) * # Datafusion - Expected - -75 # Datafusion - Expected - -179705 # Datafusion - Expected - 1786 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ Int64\(\-95\) \+ Int64\(\-73\) \+ Int64\(56\) AS col1" at position 0 and "Int64\(96\) \+ Int64\(19\) \+ nullif\(Int64\(\-74\), Int64\(63\) \+ Int64\(93\)\) \* \(\- Int64\(\-54\)\) \* Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 37 + - 95 + - 73 + 56 AS col1, 96 + + + 19 + NULLIF ( - 74, + 63 + + 93 ) * - - 54 * 45 AS col1, - 38 * - + 47 +---- +-179705 +-75 +1786 query I rowsort label-5420 SELECT + COUNT ( * ) * + 59 AS col0 @@ -29131,8 +29483,11 @@ SELECT - 14 * - - 61 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(6\)\)\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - COUNT ( + + 6 ) ) AS col2, 50 col2 +---- +-1 +50 query I rowsort label-5535 SELECT DISTINCT 44 * 11 * - - 3 * - + COUNT ( * ) @@ -29608,8 +29963,11 @@ SELECT + 54 * - 74 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 110 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(42\) \- Int64\(\-68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, 42 - + - 68 AS col1 +---- +1 +110 query I rowsort SELECT - 72 + 54 AS col0 @@ -29928,8 +30286,11 @@ SELECT ALL - 2, COUNT ( * ) * + - 74 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "Int64\(\-5\) \- Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 AS col2, - 5 - 86 AS col2 +---- +-91 +19 query I rowsort SELECT 86 * - 99 @@ -30790,8 +31151,11 @@ SELECT - COUNT ( * ), + 27 + 31 / + - 60 * - 6 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 924 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col2" at position 0 and "Int64\(12\) \* \(\- coalesce\(nullif\(Int64\(\-77\), sum\(Int64\(\-37\)\) \* Int64\(\-69\) \* \(\- Int64\(\-97\)\) \+ Int64\(\-13\)\), \(\- \(\- \(\- Int64\(\-84\)\)\)\) \* Int64\(\-20\) \* Int64\(\-93\), Int64\(68\) / Int64\(12\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 0 AS col2, 12 * - COALESCE ( + ( + NULLIF ( - 77, + SUM ( - 37 ) * - 69 * - - 97 + + - 13 ) ), - ( - ( - - 84 ) ) * - 20 * - 93, 68 / + + 12 ) AS col2 +---- +0 +924 query I rowsort SELECT 85 - + 44 col1 @@ -31132,8 +31496,11 @@ SELECT ( + ( + - NULLIF ( + 44, COUNT ( * ) ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) / \(\- Int64\(53\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(92\)\) \- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 30 / - + 53 AS col2, COUNT ( * ) * - + 92 - + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 +---- +-93 +0 query I rowsort label-5917 SELECT 87 * - 69 + 33 + - CAST ( NULL AS INTEGER ) AS col0 @@ -31934,8 +32301,11 @@ SELECT - 85 + 17 # 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\(97\) \+ Int64\(\-73\) AS col0" at position 0 and "Int64\(\-10\) \+ Int64\(44\) \+ Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 97 + - 73 AS col0, - 10 + 44 + 54 AS col0 +---- +24 +88 query I rowsort label-6071 SELECT - 34 / + 12 - - + 68 @@ -31955,8 +32325,11 @@ 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\(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\. +query II valuesort SELECT + 84 * + - 83 + COUNT ( * ) + - 2 AS col2, 0 + + + 38 AS col2 +---- +-6973 +38 query I rowsort SELECT ALL + 34 + - + 99 @@ -32074,8 +32447,11 @@ SELECT MAX ( 4 ) AS col2, 93 * + - 68 + - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 240 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* CAST\(NULL AS Int32\) \* Int64\(\-98\) \* Int64\(34\) \- \(\- Int64\(71\)\) \- Int64\(54\) \* Int64\(\-78\) \+ Int64\(90\) \- Int64\(\-31\) \* Int64\(0\) \* Int64\(42\) \- Int64\(\-78\) AS col2" at position 0 and "Int64\(60\) \* Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 * + CAST ( NULL AS INTEGER ) * + - 98 * + + 34 - + ( - + ( + + 71 ) ) - + + 54 * - 78 + 90 - - 31 * - 0 * 42 - + - 78 AS col2, 60 * 4 col2 +---- +240 +NULL query I rowsort SELECT ALL ( 32 ) col1 @@ -32699,8 +33075,11 @@ SELECT 80 + ( + + 16 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 col2, 82 AS col2 +---- +-64 +82 query I rowsort label-6220 SELECT 89 + + 35 / - 94 * 19 AS col0 @@ -33233,8 +33612,11 @@ SELECT DISTINCT COALESCE ( CASE - CAST ( 52 AS INTEGER ) WHEN + COUNT ( * ) - - # 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 "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 II valuesort SELECT ALL - 78 AS col0, 29 col0 +---- +-78 +29 query I rowsort SELECT - 26 + + - 21 + + 56 + 54 * + 89 @@ -33352,8 +33734,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) - 91 col0, + 81 + - - ( - 11 ) + + - 40 + + 66 - 3 * 35 / 99 AS col0 +---- +-90 +95 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -33439,8 +33824,11 @@ SELECT ALL - 9 AS col0, + 57 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col0" at position 0 and "Int64\(\-87\) \+ \(\- CASE WHEN NULL BETWEEN NULL AND CAST\(Int64\(\-1\) AS Int32\) THEN Int64\(\-9\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 25 col0, - 87 + + - CASE WHEN NULL BETWEEN NULL AND + CAST ( - 1 AS INTEGER ) THEN - 9 END AS col0 +---- +-25 +NULL query I rowsort label-6363 SELECT 64 - CASE - 20 WHEN - 43 THEN 38 * + 85 + - 86 * + - COUNT ( DISTINCT 64 ) + - ( COUNT ( * ) ) * - 28 ELSE + 72 END + - 82 * 25 AS col1 @@ -34374,8 +34762,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) / 19 + - 44 AS col0, + 29 AS col0 +---- +-44 +29 query I rowsort SELECT + 34 * - 39 @@ -35671,8 +36062,11 @@ 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\(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\. +query II valuesort 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 +---- +7489 +NULL query II rowsort SELECT 64 AS col0, 60 * - 67 AS col2 @@ -35748,8 +36142,11 @@ SELECT ALL - SUM ( DISTINCT ( + 4 ) ) * 20 AS col2, 12 - + 46 + - + 44 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \- CAST\(NULL AS Int32\) \* sum\(DISTINCT Int64\(\-26\)\) AS col1" at position 0 and "Int64\(43\) \+ Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 - CAST ( NULL AS INTEGER ) * + + SUM ( DISTINCT + - 26 ) col1, 43 + + 10 AS col1 +---- +53 +NULL query II rowsort label-6800 SELECT DISTINCT + SUM ( DISTINCT + 53 ), CAST ( ( + COUNT ( * ) ) AS INTEGER ) + - 77 AS col2 @@ -35889,8 +36286,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 378378 # Datafusion - Expected - -5096 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* Int64\(63\) \* Int64\(11\) \* Int64\(78\) AS col2" at position 0 and "Int64\(\-98\) \* \(\- Int64\(\-52\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + + 7 ) * + 63 * 11 * + + 78 col2, - 98 * - - 52 AS col2 +---- +-5096 +378378 query I rowsort SELECT 39 * 12 * 27 AS col1 @@ -36699,8 +37099,11 @@ SELECT - NULLIF ( + - ( 61 ), - + COUNT ( + 39 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1326 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) \* \(\- Int64\(\-39\)\) AS col2" at position 0 and "Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 34 * - - 39 AS col2, - 27 AS col2 +---- +-27 +1326 query I rowsort SELECT ALL 46 + + + 13 * + + 25 @@ -36897,8 +37300,11 @@ SELECT + - MIN ( DISTINCT 41 ) + - + NULLIF ( + 52, + 87 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 1783 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-92\)\) AS col1" at position 0 and "Int64\(78\) \* Int64\(24\) \- \(\- Int64\(\-89\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 92 AS col1, 78 * 24 - - - 89 / COUNT ( * ) AS col1 +---- +1783 +92 query I rowsort SELECT + 3 * - + 95 @@ -36936,8 +37342,11 @@ SELECT 90 / + - 10 + + 47 + - + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - -17 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 17 AS col0, 38 AS col0 +---- +-17 +38 query I rowsort label-7028 SELECT ALL - CAST ( - 67 AS INTEGER ) @@ -37243,8 +37652,11 @@ SELECT + + 74 + 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 1190 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col2" at position 0 and "Int64\(17\) \* Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 AS col2, 17 * 70 AS col2 +---- +1190 +67 query I rowsort label-7087 SELECT ALL MIN ( - 73 ) * 54 AS col2 @@ -37587,8 +37999,11 @@ SELECT 50 * - 86 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "Int64\(\-8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 AS col2, - 8 AS col2 +---- +-8 +30 query I rowsort SELECT DISTINCT + 24 * 54 AS col0 @@ -37618,8 +38033,11 @@ SELECT + 60 * + 88 + - 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) / Int64\(41\) \+ Int64\(\-25\) AS col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) / 41 + + - 25 AS col2, 9 AS col2 +---- +9 +NULL query I rowsort label-7158 SELECT 84 + + 93 * 61 + + COUNT ( DISTINCT - 98 ) @@ -37727,8 +38145,11 @@ 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\(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\. +query II valuesort SELECT ALL 53 * - COUNT ( * ) AS col0, + 61 + - 79 AS col0 +---- +-18 +-53 query II rowsort label-7179 SELECT 24 + 42 + + + 76 / 58 * + 43 * + COALESCE ( 39, - 92 ) * + ( - 48 ) AS col1, 76 AS col2 @@ -38448,8 +38869,11 @@ SELECT + COUNT ( * ) * 92 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 363 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) 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 II valuesort SELECT ALL + 17 AS col2, 33 * 11 AS col2 +---- +17 +363 query I rowsort label-7315 SELECT SUM ( DISTINCT - + 95 ) @@ -38521,8 +38945,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -313216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) \- \(\- max\(Int64\(90\)\)\) AS col0" at position 0 and "nullif\(Int64\(96\), Int64\(\-14\) \* Int64\(94\)\) \* Int64\(90\) \* Int64\(\-52\) \+ Int64\(\-73\) \* Int64\(\-27\) \* Int64\(69\) \- Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 85 - - MAX ( ALL + + 90 ) AS col0, NULLIF ( + 96, - 14 * 94 ) * + 90 * - 52 + - 73 * - 27 * + 69 - - 65 AS col0 +---- +-313216 +5 query I rowsort label-7329 SELECT + COUNT ( * ) * 34 col1 @@ -38758,8 +39185,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) + 58 col2, 71 col2 +---- +59 +71 query II rowsort label-7374 SELECT + 7 * 65 + - 16 + - 14 + + MAX ( ALL + ( 28 ) ), 75 AS col1 @@ -39394,8 +39824,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-14\) \- Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 AS col0, 58 + COUNT ( * ) * - 14 - 41 AS col0 +---- +3 +80 query I rowsort label-7497 SELECT DISTINCT - + NULLIF ( + - COUNT ( 42 ), + 84 ) AS col1 @@ -39474,8 +39907,11 @@ SELECT DISTINCT 41 * - 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 316 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(56\) \* Int64\(4\) \+ \(\- Int64\(\-92\)\) \+ Int64\(73\) / Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 + + COUNT ( * ) AS col1, + ( 56 ) * 4 + - - 92 + 73 / + 82 AS col1 +---- +316 +4 query I rowsort label-7512 SELECT ALL + 40 / ( - NULLIF ( - + 41, - + 57 ) ) AS col0 @@ -39963,8 +40399,12 @@ SELECT + 83 col2, + 74 # Datafusion - Expected - 21 # Datafusion - Expected - 418 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) \* Int64\(\-5\) \+ Int64\(\-37\) AS col1" at position 1 and "Int64\(52\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 21, - 91 * - 5 + - 37 AS col1, 52 + + COUNT ( * ) col1 +---- +21 +418 +53 query I rowsort SELECT ALL - - 64 * + NULLIF ( + + 29, - + 38 ) * + - 93 + - 23 AS col0 @@ -40119,8 +40559,12 @@ SELECT ALL 37 - 45 * + ( + + 67 ) # Datafusion - Expected - 42 # Datafusion - Expected - 1 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \- Int64\(51\) AS col1" at position 0 and "count\(DISTINCT \(\- Int64\(\-70\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 93 - 51 col1, + ( COUNT ( DISTINCT - - 70 ) ) AS col1, + 82 AS col1 +---- +1 +42 +82 query I rowsort label-7633 SELECT ALL + + SUM ( DISTINCT + 29 ) * - 38 @@ -40435,8 +40879,11 @@ SELECT - 95 - 19 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -108 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(64\)\) \- Int64\(44\) AS col1" at position 0 and "Int64\(29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 64 - + 44 AS col1, 29 AS col1 +---- +-108 +29 query I rowsort label-7692 SELECT ALL + - CASE AVG ( DISTINCT + + 72 ) WHEN COUNT ( * ) + - ( + 43 ) + + 43 THEN NULL WHEN - 67 THEN NULL ELSE - 64 END - + + 99 col1 @@ -40961,8 +41408,11 @@ SELECT - COALESCE ( + 63, - 52 * - 69 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 92 AS col0, + CAST ( NULL AS INTEGER ) * + + 86 AS col0 +---- +92 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -41494,8 +41944,11 @@ SELECT 1 + COUNT ( ALL - 9 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, COUNT ( * ) col1 +---- +-1 +1 query I rowsort label-7898 SELECT CAST ( 39 AS INTEGER ) * - ( + NULLIF ( - - COUNT ( * ), + COUNT ( * ) ) ) @@ -41759,8 +42212,11 @@ SELECT COUNT ( * ) * + - 20 + - 23 * 7 - MAX ( 55 ) + + 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - 201096 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 0 and "Int64\(84\) \* \(\- Int64\(\-63\)\) \* Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 95 col2, + 84 * - ( - 63 ) * 38 AS col2 +---- +201096 +95 query I rowsort SELECT NULLIF ( 74, - + 14 * + 98 ) @@ -41939,8 +42395,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(52\)\) \- Int64\(\-1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 - 29 + 5 - - - 22 / 70 * 52 / 6 AS col2, COALESCE ( + 65, ( 10 ) + - COUNT ( * ) * 52 ) - - 1 AS col2 +---- +26 +66 query I rowsort label-7983 SELECT COUNT ( * ) * + 66 + - 86 AS col2 @@ -42149,8 +42608,11 @@ SELECT DISTINCT ( + + 84 ) * - + 94 * + 48 * - COUNT ( ALL + - 25 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- max\(DISTINCT Int64\(32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, - MAX ( DISTINCT 32 ) AS col1 +---- +-32 +1 query I rowsort label-8024 SELECT - - NULLIF ( - - 80, + + 33 + - - NULLIF ( - CAST ( + 16 AS INTEGER ), - - COALESCE ( + - 49, COUNT ( * ), 85 ) ) + - 37 ) + 64 AS col2 @@ -42334,8 +42796,11 @@ SELECT + 50 - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT ALL 92 AS col0, - 92 AS col0 +---- +-92 +92 query I rowsort SELECT + 44 * + + ( 38 ) AS col0 @@ -42355,8 +42820,11 @@ SELECT DISTINCT 12 / ( + 17 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 7568 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(88\) \* Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 47 AS col2, 88 * + 86 AS col2 +---- +47 +7568 query II rowsort SELECT - 69, + 20 + - + 99 AS col2 @@ -42956,8 +43424,12 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(69\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 51 AS col0, 97 * 16 AS col2, - 79 * - COUNT ( * ) + 69 AS col0 +---- +148 +1552 +51 query I rowsort label-8177 SELECT ALL 39 / + 22 @@ -43183,8 +43655,12 @@ SELECT 64 - ( - 15 ) # Datafusion - Expected - 23 # Datafusion - Expected - 1 # Datafusion - Expected - -1780 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 and "Int64\(\-20\) \* Int64\(89\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 23, COUNT ( * ) AS col2, - 20 * 89 AS col2 +---- +-1780 +1 +23 query I rowsort SELECT ALL + 37 + - - 24 * + 42 @@ -43348,8 +43824,11 @@ SELECT 64 + + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - -143 # Datafusion - Expected - 1817 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(35\) AS Int32\) \+ Int64\(\-95\) \- Int64\(83\) AS col1" at position 0 and "Int64\(\-79\) \* Int64\(\-23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( + 35 AS INTEGER ) + + ( + - 95 ) - 83 AS col1, - 79 * - 23 AS col1 +---- +-143 +1817 query I rowsort SELECT ALL - 5 - 94 col0 @@ -43398,8 +43877,11 @@ 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\(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\. +query II valuesort SELECT - 21 * MAX ( 37 ) * COUNT ( * ) / 30 - - COUNT ( + + 43 ) * + 85 + + COUNT ( * ) * - + COUNT ( ALL - 23 ) - - 10 * + + 89 * - 4 * 9 AS col2, 22 AS col2 +---- +-31981 +22 query I rowsort label-8259 SELECT 51 * COUNT ( * ) - - CAST ( 30 AS INTEGER ) @@ -43441,8 +43923,11 @@ SELECT ALL + + ( ( - - 31 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2750 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(55\)\) \* Int64\(50\) AS col0" at position 0 and "Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 55 * 50 AS col0, 6 AS col0 +---- +-2750 +6 query I rowsort label-8267 SELECT - COALESCE ( - MAX ( DISTINCT - 50 ), 86 * - 96, + COUNT ( * ) ) + + 17 + + + COUNT ( * ) + - 56 col1 @@ -43935,8 +44420,11 @@ 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\(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\. +query II valuesort SELECT - 9 + - COUNT ( * ) + - - COUNT ( * ) AS col1, 90 col1 +---- +-9 +90 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -44152,8 +44640,11 @@ SELECT - 43 * - + NULLIF ( SUM ( DISTINCT - 15 ), + - 66 * + NULLIF ( - COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 AS col2, 54 AS col2 +---- +54 +57 query I rowsort label-8401 SELECT ALL - - 74 * + + COUNT ( * ) AS col2 @@ -44378,8 +44869,11 @@ SELECT DISTINCT - 70 + 68 * - + 46 * - 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - -436 # Datafusion - Expected - 104 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ \(\- nullif\(CAST\(CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS Int32\), Int64\(\-98\) \* count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-37\) \* Int64\(13\) \+ Int64\(29\) AS col2" at position 0 and "Int64\(63\) \+ Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 16 + + - NULLIF ( + CAST ( + CAST ( + + ( - COUNT ( * ) ) AS INTEGER ) AS INTEGER ), - 98 * COUNT ( * ) ) * + - 37 * 13 + + 29 AS col2, + 63 + + 41 col2 +---- +-436 +104 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -44513,14 +45007,20 @@ SELECT - 47 + CASE - COUNT ( * ) WHEN - 26 THEN NULL WHEN + 86 THEN NULL ELSE CA # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col0, + 34 col0 +---- +34 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col2" at position 0 and "Int64\(\-69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 24 AS col2, - 69 AS col2 +---- +-69 +24 query II rowsort label-8469 SELECT DISTINCT COUNT ( * ) AS col2, - COUNT ( + - 32 ) col0 @@ -44606,8 +45106,11 @@ SELECT DISTINCT + COALESCE ( + 36, + + COUNT ( * ) + 29, NULLIF ( - + 52, + + CA # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \- \(\- CAST\(NULL AS Int32\)\) \+ Int64\(29\) \+ Int64\(36\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 - - CAST ( NULL AS INTEGER ) + + + 29 + + 36 AS col2, 33 AS col2 +---- +33 +NULL query I rowsort label-8484 SELECT CAST ( COUNT ( * ) AS INTEGER ) * COUNT ( * ) + + 70 - - 12 + - SUM ( DISTINCT ( + 16 ) ) AS col0 @@ -44822,8 +45325,11 @@ SELECT - + 48 + + COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 0 and "Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 58 col1, + 24 AS col1 +---- +24 +58 query I rowsort SELECT ALL + - 77 + - 23 AS col0 @@ -45278,8 +45784,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -6204 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* \(\- Int64\(94\)\) \* \(\- Int64\(6\)\) AS col0" at position 0 and "Int64\(96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 11 * - + 94 * - + 6 AS col0, 96 AS col0 +---- +-6204 +96 query I rowsort label-8614 SELECT 87 / 1 AS col2 @@ -45350,8 +45859,11 @@ SELECT ALL 93 * - - COUNT ( * ) col2, 39 # 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 "nullif\(Int64\(1\), Int64\(30\) \* Int64\(86\)\) AS col2" at position 0 and "Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( 1, 30 * 86 ) AS col2, ( + + 30 ) AS col2 +---- +1 +30 query I rowsort label-8627 SELECT + CAST ( - + 62 AS INTEGER ) + + + 99 * - 55 @@ -45715,8 +46227,11 @@ NULL # 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\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 AS col2, + 18 AS col2 +---- +18 +92 query I rowsort SELECT 97 + - 83 AS col1 @@ -45828,8 +46343,11 @@ SELECT ALL 62 AS col2, COUNT ( * ) 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 "Int64\(69\) AS col0" at position 0 and "Int64\(2\) / Int64\(\-12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 69 AS col0, 2 / - 12 AS col0 +---- +0 +69 query I rowsort label-8716 SELECT ALL - 16 / + - 34 @@ -45870,8 +46388,11 @@ SELECT 21 + + 75 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) col1, 41 AS col1 +---- +1 +41 query I rowsort SELECT ALL 79 * + 70 + 99 AS col2 @@ -45950,8 +46471,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( ALL + 93 ) * - COUNT ( * ) AS col0, + 75 * - - 21 AS col0 +---- +-1 +1575 query II rowsort label-8739 SELECT 42 + - 91 + - 31 * + ( - CAST ( NULL AS INTEGER ) ) AS col2, + 73 @@ -46269,8 +46793,11 @@ 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\(\(\- Int64\(\-24\)\)\) AS col1" at position 0 and "Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( - - 24 ) AS col1, + 87 AS col1 +---- +1 +87 query II rowsort SELECT ALL - 77 * 73, NULLIF ( - 72, + 58 ) AS col2 @@ -46809,8 +47336,11 @@ SELECT - ( + 13 ) - + 92 # 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 "Int64\(61\) AS col1" at position 0 and "Int64\(\-46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 61 AS col1, - 46 AS col1 +---- +-46 +61 query I rowsort SELECT - 53 - - + 24 @@ -46967,8 +47497,11 @@ SELECT + + 92 + + + COUNT ( - 93 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3815 # Datafusion - Expected - 5772 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(57\)\) \* Int64\(67\) \- Int64\(\-4\) AS col2" at position 0 and "Int64\(78\) \* Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 57 * + 67 - + - 4 AS col2, 78 * + 74 AS col2 +---- +-3815 +5772 query I rowsort SELECT - COALESCE ( - - 61, + 90 + + + 24 ) @@ -47058,8 +47591,11 @@ SELECT 52 * + 32 / - 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 94 AS col2, + COUNT ( * ) AS col2 +---- +1 +94 query I rowsort SELECT ALL - ( + 43 ) + - - 7 + ( + ( + 87 ) ) AS col0 @@ -47145,8 +47681,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "nullif\(Int64\(64\), \(\- nullif\(coalesce\(Int64\(6\), Int64\(94\)\), \(\- \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\)\)\)\)\) \+ Int64\(\-26\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 AS col0, + NULLIF ( + 64, - NULLIF ( + COALESCE ( 6, + + 94 ), - - CAST ( - COUNT ( * ) AS INTEGER ) ) ) + - 26 AS col0 +---- +38 +57 query I rowsort SELECT ALL - NULLIF ( + 66, + 59 ) @@ -47522,14 +48061,21 @@ SELECT NULLIF ( - 92, 9 ) AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - -35 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col1" at position 0 and "\(\- CAST\(Int64\(56\) AS Int32\)\) \+ Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, - CAST ( + 56 AS INTEGER ) + 21 AS col1, + 19 +---- +-35 +19 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col1" at position 0 and "Int64\(\-84\) / Int64\(\-40\) \+ Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 19 AS col1, - 84 / - 40 + + 67 col1 +---- +19 +69 query I rowsort SELECT DISTINCT 96 * - - 88 + + 39 AS col2 @@ -47641,8 +48187,11 @@ SELECT - 64, 89 * + 70 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) \+ Int64\(40\) \- Int64\(32\) \+ Int64\(\-17\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 1 + 40 - 32 + - 17 AS col2, 12 col2 +---- +-10 +12 query I rowsort SELECT ALL + 37 * - ( - + 83 ) AS col1 @@ -47679,8 +48228,11 @@ SELECT 41 / - MAX ( - + 8 ) - + 14 + MIN ( ALL 64 ) - - 82 + 6 / + 42 + - 42 AS # 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 "Int64\(\-49\) AS col2" at position 0 and "Int64\(0\) / Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 49 AS col2, - 0 / 96 AS col2 +---- +-49 +0 query I rowsort label-9068 SELECT ALL 7 + 49 * COUNT ( * ) * - - 36 / - COUNT ( * ) AS col1 @@ -47745,8 +48297,11 @@ SELECT DISTINCT + 61 - + + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3713 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* \(\- Int64\(\-47\)\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 79 * - - 47 AS col2, 50 col2 +---- +3713 +50 query II rowsort SELECT DISTINCT + 62 * - 92 AS col0, + COALESCE ( 73, 24 ) AS col2 @@ -47834,8 +48389,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \+ Int64\(24\) AS col0" at position 0 and "CAST\(\(\- Int64\(\-16\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 + 24 AS col0, + CAST ( - - 16 AS INTEGER ) AS col0 +---- +16 +71 query I rowsort label-9097 SELECT ALL - CAST ( NULL AS INTEGER ) + COALESCE ( - 14, + COUNT ( * ), - COUNT ( * ) * - 81 ) AS col1 @@ -48012,8 +48570,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 col2, COUNT ( * ) * - 32 AS col2 +---- +-32 +16 query I rowsort label-9130 SELECT - - 72 * + 58 + + - 44 / - 4 AS col2 @@ -48172,8 +48733,11 @@ SELECT - - 77 + 71 + - COUNT ( DISTINCT - - 32 ) * - 17, 6 * + - 79 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 AS col1, + 2 col1 +---- +2 +7 query I rowsort SELECT - ( 19 ) + 83 @@ -48317,8 +48881,12 @@ 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\(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\. +query III valuesort SELECT DISTINCT 45 + + 7, COALESCE ( + COUNT ( * ), + 21 / ( - 9 ) ) AS col0, + 39 AS col0 +---- +1 +39 +52 query II rowsort label-9188 SELECT DISTINCT 86 AS col1, + NULLIF ( + MAX ( DISTINCT + 43 ), - 81 ) + - + MAX ( ALL 72 ) / - COUNT ( * ) AS col2 @@ -48376,8 +48944,11 @@ SELECT 20 * NULLIF ( + NULLIF ( - 13, 23 ), + CASE - 52 WHEN + - 81 * + 66 + + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2520 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \* Int64\(56\) AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 45 * 56 AS col1, 40 AS col1 +---- +2520 +40 query I rowsort label-9199 SELECT DISTINCT + 72 - - 54 - 53 * - 43 * + 32 * - ( COUNT ( * ) ) @@ -48935,8 +49506,12 @@ SELECT 30 + ( + + 85 ) + + 60 * - 37 # Datafusion - Expected - 91 # Datafusion - Expected - 1184 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* Int64\(37\) AS col2" at position 1 and "Int64\(14\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 91 AS col1, 32 * 37 AS col2, + 14 AS col2 +---- +1184 +14 +91 query I rowsort label-9304 SELECT ALL - CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS INTEGER ) AS col0 @@ -50084,8 +50659,11 @@ SELECT ALL 74 + 6 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 2914 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 0 and "Int64\(\-94\) \* Int64\(\-31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 58 AS col1, - 94 * - 31 AS col1 +---- +2914 +58 query I rowsort label-9528 SELECT ( + CAST ( + - 42 AS INTEGER ) ) AS col2 @@ -50328,8 +50906,11 @@ SELECT ALL 80 * - COUNT ( - - 78 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 72 AS col2, + 93 AS col2 +---- +72 +93 query I rowsort SELECT DISTINCT 97 - - + 67 @@ -50433,8 +51014,11 @@ SELECT DISTINCT 58 * + 79 + - ( + + 31 ) + - 31 * - 82 * - 51 + + - 55 / - 25 # 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\(\-17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 33 col0, - 17 AS col0 +---- +-17 +33 query II rowsort label-9594 SELECT + ( + SUM ( ALL ( - + 87 ) ) ), 11 AS col0 @@ -50495,14 +51079,20 @@ SELECT ALL - ( MIN ( + - 47 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 273910 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(86\) \* Int64\(49\) \* Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 86 * + 49 * 65 AS col2 +---- +1 +273910 # Datafusion - Datafusion expected results: # Datafusion - Expected - -177 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) \+ Int64\(\-11\) \+ Int64\(\-97\) AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 69 + - 11 + - 97 col1, ( + 31 ) AS col1 +---- +-177 +31 query I rowsort SELECT + 38 - - 19 AS col0 @@ -50941,8 +51531,11 @@ SELECT 93 - - - 7 # 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 "Int64\(80\) \+ Int64\(57\) \* \(\- Int64\(1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 39 AS col0, + 80 + + + 57 * - + 1 col0 +---- +-39 +23 query I rowsort label-9690 SELECT CAST ( - SUM ( ALL - 43 ) AS INTEGER ) + 96 AS col2 @@ -51227,8 +51820,11 @@ SELECT DISTINCT + ( MIN ( - - 31 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 112700 # Datafusion - Expected - -4760301 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \* Int64\(\-46\) \* \(\- Int64\(\-35\)\) AS col0" at position 0 and "Int64\(\-53\) \* Int64\(\-49\) \* Int64\(39\) \* \(\- Int64\(47\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 70 * - 46 * - - 35 AS col0, - 53 * - 49 * 39 * - + 47 AS col0 +---- +-4760301 +112700 query I rowsort SELECT - 32 + 20 @@ -51904,8 +52500,11 @@ SELECT + 26 * 73 / NULLIF ( + 49, + - COUNT ( * ) + + 82 - + + COUNT ( * ) / - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2784 # Datafusion - Expected - 281159 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \* \(\- Int64\(29\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(55\) \* coalesce\(\(\- nullif\(\(\- \(\- min\(\(\- CAST\(NULL AS Int32\)\)\)\)\), Int64\(55\)\)\), Int64\(64\) \+ Int64\(8\), nullif\(nullif\(\(\- Int64\(\-26\)\), Int64\(4\)\), Int64\(\-56\) / Int64\(54\)\) \+ Int64\(65\)\) \* Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +2784 +281159 query I rowsort label-9875 SELECT + COUNT ( * ) * 4 col1 @@ -52351,8 +52950,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(87\) \* \(\- CAST\(Int64\(18\) AS Int32\)\) AS col2" at position 0 and "Int64\(\-53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 87 * - CAST ( + + 18 AS INTEGER ) AS col2, - 53 AS col2 +---- +-53 +NULL query I rowsort label-9960 SELECT + 26 + - COUNT ( DISTINCT + + 0 ) - 88 * - ( - 51 ) + + + 87 + 70 * + 4 + 22 + - COUNT ( * ) + - - 76 * 84 * MAX ( DISTINCT - 90 ) AS col2 @@ -52413,8 +53015,11 @@ SELECT ALL + + COUNT ( DISTINCT + 86 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 29 AS col0, 66 AS col0 +---- +29 +66 query I rowsort SELECT - 70 + - NULLIF ( - 72, + 97 ) @@ -52523,8 +53128,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -174 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \+ Int64\(66\) \+ Int64\(\-62\) \+ Int64\(\-88\) AS col2" at position 0 and "\(\- Int64\(\-36\)\) \+ Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 + + 66 + - 62 + - 88 AS col2, - ( + - 36 ) + - 38 AS col2 +---- +-174 +-2 query I rowsort SELECT + 13 + + 72 col0 diff --git a/data/sqlite/random/expr/slt_good_90.slt b/data/sqlite/random/expr/slt_good_90.slt index 79781ab..86df819 100644 --- a/data/sqlite/random/expr/slt_good_90.slt +++ b/data/sqlite/random/expr/slt_good_90.slt @@ -111,8 +111,11 @@ SELECT - 43 + + + 82 col2, - 69 + + - 22 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9625 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(21\) \* Int64\(76\) \- \(\- Int64\(49\)\) AS col0" at position 0 and "Int64\(92\) \+ CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(13\) \- Int64\(63\) \* Int64\(60\) \* Int64\(20\) \+ \(\- Int64\(\-56\)\) THEN count\(Int64\(1\)\) AS count\(\*\) WHEN CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) THEN \(\- Int64\(\-51\)\) \+ Int64\(\-41\) ELSE NULL END \+ Int64\(44\) \+ Int64\(51\) \* Int64\(67\) \* Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +9625 +NULL query I rowsort SELECT + ( - 17 ) * + 45 @@ -288,8 +291,11 @@ SELECT ALL - SUM ( ALL 51 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col1" at position 0 and "Int64\(\-96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 36 AS col1, - 96 AS col1 +---- +-36 +-96 query I rowsort label-49 SELECT DISTINCT - NULLIF ( + 15, - 74 * + 91 ) / - - SUM ( + 54 ) @@ -425,8 +431,11 @@ SELECT MAX ( ALL + + ( - 4 ) ) + + 57 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 39 AS col0, + COUNT ( * ) * ( COUNT ( * ) ) col0 +---- +-39 +1 query I rowsort SELECT ALL 14 * 41 col0 @@ -683,8 +692,11 @@ SELECT ALL COUNT ( * ) * + 63 + + 83 * - + ( + ( + 20 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(6\)\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( + 6 ) AS col1, + 84 AS col1 +---- +6 +84 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -1234,8 +1246,11 @@ SELECT - MIN ( + 93 ) / + 31 + - 35 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + 43 AS col2 +---- +1 +43 query I rowsort SELECT + CASE 67 WHEN + 29 THEN 49 ELSE + 90 END @@ -1805,8 +1820,11 @@ 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\(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\. +query II valuesort SELECT + - 12 + - COUNT ( * ) col2, 48 / CASE 83 WHEN + 24 THEN + + 8 END AS col2 +---- +-13 +NULL query I rowsort SELECT + ( - + 63 ) * + 10 AS col1 @@ -2617,8 +2635,11 @@ SELECT - 45 - - 4 + + 49 AS col1 # 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 "max\(Int64\(52\)\) AS col2" at position 0 and "Int64\(\-59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( 52 ) col2, - 59 col2 +---- +-59 +52 query I rowsort SELECT ALL 35 * 25 + 13 AS col2 @@ -3022,8 +3043,11 @@ SELECT ALL 20 * - 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 4 AS col0, 79 AS col0 +---- +4 +79 query II rowsort SELECT DISTINCT 56 AS col0, + 32 - - - 33 @@ -3034,8 +3058,11 @@ SELECT DISTINCT 56 AS col0, + 32 - - - 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 7 AS col2, 52 AS col2 +---- +52 +7 query I rowsort label-577 SELECT + 84 - + COUNT ( + 44 ) AS col0 @@ -3376,8 +3403,11 @@ 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\(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\. +query II valuesort SELECT ALL - COALESCE ( + COUNT ( * ), - - COUNT ( * ) + + ( - 42 ), + 90 ) col2, + 5 AS col2 +---- +-1 +5 query I rowsort SELECT 2 * - + 27 AS col0 @@ -3387,8 +3417,11 @@ 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\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-21\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 49 AS col0, - COUNT ( * ) * - - 21 AS col0 +---- +-21 +49 query I rowsort label-643 SELECT 85 + + + 14 + COALESCE ( COUNT ( * ), + 93 + + NULLIF ( - 45, 20 * 56 + + 30 ) ) @@ -3508,8 +3541,11 @@ SELECT 5 + + + 13 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\(Int64\(\-96\)\)\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( - 96 ) AS col1, 66 AS col1 +---- +-1 +66 query I rowsort label-666 SELECT ALL 97 + - - 24 + - ( 91 ) + - + 59 + - + 74 - - COUNT ( * ) / 44 AS col2 @@ -3550,8 +3586,11 @@ 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 "Int64\(\-1\) \- Int64\(4\) AS col0" at position 0 and "Int64\(\-57\) \* CASE Int64\(51\) WHEN Int64\(45\) THEN Int64\(0\) / Int64\(78\) \* Int64\(24\) END \* min\(Int64\(18\) \- \(Int64\(27\) \+ Int64\(11\)\) \* Int64\(21\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 1 - 4 col0, - 57 * + CASE + 51 WHEN + + 45 THEN 0 / 78 * + 24 END * MIN ( + ( 18 ) - ( + 27 + 11 ) * 21 ) AS col0 +---- +-5 +NULL query I rowsort label-674 SELECT - 78 / + 64 + - 22 @@ -3811,8 +3850,12 @@ SELECT - 38 * + - 65 # Datafusion - Expected - 56 # Datafusion - Expected - 51 # Datafusion - Expected - -130 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col1" at position 0 and "Int64\(\-68\) \- \(\- Int64\(\-62\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 56 AS col1, 51 AS col2, - 68 - - - 62 AS col1 +---- +-130 +51 +56 query II rowsort label-724 SELECT - 99 / + ( + COALESCE ( + - MIN ( + - ( 18 ) ), - - 65 ) ) + 39 * + 87, 78 * 53 / 68 AS col1 @@ -3840,8 +3883,12 @@ SELECT + 78 * + + 87 # Datafusion - Expected - 75 # Datafusion - Expected - 96 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col0" at position 1 and "Int64\(\-9\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 75, 96 AS col0, + - 9 AS col0 +---- +-9 +75 +96 query I rowsort SELECT 55 * + 42 - 97 AS col0 @@ -3893,14 +3940,20 @@ SELECT DISTINCT 87 / + 48 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col2" at position 0 and "Int64\(84\) \* Int64\(33\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 25 col2, 84 * + 33 * + CAST ( NULL AS INTEGER ) AS col2 +---- +25 +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 "Int64\(93\) / Int64\(\-97\) \* Int64\(88\) \* \(\- Int64\(17\)\) AS col1" at position 0 and "Int64\(28\) \+ Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 93 / - 97 * 88 * - + 17 AS col1, 28 + - 40 AS col1 +---- +-12 +0 query I rowsort SELECT - 75 * + + 90 AS col0 @@ -3994,8 +4047,11 @@ SELECT ALL - CAST ( 28 AS INTEGER ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - 6004 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) \* Int64\(\-1\) AS col0" at position 0 and "Int64\(\-76\) \* \(\- Int64\(79\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 * + - 1 AS col0, - 76 * - + 79 AS col0 +---- +-36 +6004 query I rowsort label-758 SELECT ALL - SUM ( ALL 4 ) col2 @@ -4135,8 +4191,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(88\) / Int64\(20\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 38 AS col2, CASE - + SUM ( DISTINCT - - 91 ) WHEN + + 24 THEN - + MIN ( - - ( - - 77 ) ) WHEN + 27 THEN ( - COUNT ( * ) ) + 88 / 20 END AS col2 +---- +38 +NULL query II rowsort SELECT - 96, + 2 AS col1 @@ -4230,8 +4289,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1496 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(48\) \+ Int64\(56\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 30 * 48 + 56 AS col2, COUNT ( * ) col2 +---- +1 +1496 query II rowsort label-803 SELECT ALL + 19 + + 20 + COALESCE ( + COUNT ( * ), - COUNT ( * ) + 51 ), COUNT ( * ) - 10 AS col2 @@ -4641,8 +4703,12 @@ 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\(1\)\) AS count\(\*\)\), Int64\(20\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 17, 92 / + 79 AS col0, - 82 * + COALESCE ( + - COUNT ( * ), + 20 ) AS col0 +---- +-17 +1 +82 query I rowsort label-882 SELECT COUNT ( * ) * - 81 * + - 82 + + COUNT ( * ) @@ -4997,8 +5063,11 @@ SELECT + - 5 + NULLIF ( 27, - + 57 ) + - 91 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-35\)\) AS col0" at position 0 and "Int64\(\-97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( - 35 ) AS col0, - 97 AS col0 +---- +-97 +1 query I rowsort SELECT - + 25 * 31 AS col1 @@ -5064,8 +5133,11 @@ SELECT + 91 * + - 85 # 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\(2\) \* Int64\(39\) \+ Int64\(\-38\) \+ Int64\(\-32\) AS col2" at position 0 and "Int64\(\-85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 2 * + + 39 + - 38 + - 32 AS col2, - 85 AS col2 +---- +-85 +8 query I rowsort label-961 SELECT - MAX ( + 33 ) * - 42 AS col0 @@ -5609,8 +5681,11 @@ SELECT COUNT ( * ) + - 57 + + 71 * 19 * + 36 * + 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - -119428 # Datafusion - Expected - -617 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(\-37\)\) AS Int32\)\) \* Int64\(\-75\) \* coalesce\(Int64\(\-43\), Int64\(12\) \* \(\- coalesce\(\(\- CAST\(Int64\(\-37\) AS Int32\)\), Int64\(\-83\) \* Int64\(97\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(56\)\) \- Int64\(49\) \+ Int64\(\-54\) AS col1" at position 0 and "Int64\(73\) \* Int64\(\-10\) \+ Int64\(86\) \- \(\- \(\- \(\- nullif\(Int64\(27\), sum\(Int64\(99\)\) / CAST\(NULL AS Int32\) \- nullif\(Int64\(66\), Int64\(45\)\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-119428 +-617 query I rowsort SELECT 39 + - 18 @@ -5865,8 +5940,11 @@ SELECT 87 * - 11 - 63 + - MIN ( + 49 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(79\) WHEN Int64\(\-47\) \* Int64\(\-42\) THEN NULL WHEN Int64\(85\) THEN min\(DISTINCT Int64\(\-57\)\) \+ \(\- Int64\(\-90\)\) \- \(\- sum\(Int64\(\-13\)\)\) / Int64\(48\) END AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CASE + 79 WHEN - 47 * - 42 THEN NULL WHEN 85 THEN MIN ( DISTINCT - 57 ) + + - ( + - 90 ) - - SUM ( - 13 ) / 48 END AS col2, 35 col2 +---- +35 +NULL query I rowsort SELECT ALL + 13 * + 81 + - + 5 AS col2 @@ -5927,8 +6005,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(16\)\) AS col0" at position 0 and "Int64\(\-34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + ( 16 ) col0, ( - 34 ) AS col0 +---- +-16 +-34 query I rowsort SELECT DISTINCT - 47 * + + 74 * + 31 @@ -5938,8 +6019,11 @@ SELECT DISTINCT - 47 * + + 74 * + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col0" at position 0 and "\(\- CASE \(\- CAST\(Int64\(59\) AS Int32\)\) WHEN Int64\(50\) THEN NULL WHEN Int64\(\-24\) THEN Int64\(\-78\) \* nullif\(Int64\(8\), Int64\(\-24\)\) \* Int64\(\-51\) \+ Int64\(54\) / Int64\(23\) \+ Int64\(3\) ELSE NULL END\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-5 +NULL query I rowsort label-1127 SELECT + ( CASE - + 33 WHEN + - 77 THEN - - 18 * 2 WHEN + - 9 * - 84 * COUNT ( * ) + - 38 THEN NULL ELSE NULL END ) - COUNT ( * ) AS col1 @@ -5976,8 +6060,11 @@ SELECT ( + COUNT ( * ) ) + - - 27 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 71 AS col2, + COUNT ( * ) AS col2 +---- +1 +71 query II rowsort SELECT 5, - NULLIF ( + + 68, - 55 ) AS col2 @@ -6061,8 +6148,11 @@ SELECT ALL - - COUNT ( * ) + - 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, - 90 AS col1 +---- +-90 +1 query I rowsort SELECT 40 - 83 AS col1 @@ -6517,8 +6607,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(35\) \+ Int64\(\-87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 48 AS col1, COUNT ( * ) + 35 + - 87 AS col1 +---- +-51 +48 query II rowsort label-1237 SELECT ALL + ( SUM ( + 16 ) ) - - - 10, COUNT ( * ) + + - ( - 30 ) + + MAX ( DISTINCT + 37 ) + + COUNT ( * ) AS col2 @@ -6635,8 +6728,11 @@ 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\(1\)\) AS count\(\*\)\), Int64\(\-50\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 44 * - 63 AS col0, 72 + + NULLIF ( - COUNT ( * ), - 50 ) col0 +---- +-2772 +71 query I rowsort label-1259 SELECT ALL 3 + - + 11 * - ( - 98 ) + + COUNT ( * ) AS col0 @@ -6795,8 +6891,11 @@ SELECT ALL 55 / 74 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "Int64\(95\) / \(\- Int64\(35\)\) \+ Int64\(88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 20 AS col0, 95 / - + 35 + 88 AS col0 +---- +20 +86 query I rowsort SELECT DISTINCT 90 * + + 33 AS col0 @@ -7070,8 +7169,11 @@ SELECT + 76 + + 46 AS 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 "Int64\(15\) \* Int64\(0\) AS col1" at position 0 and "Int64\(\-67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 15 * - 0 AS col1, ( - 67 ) AS col1 +---- +-67 +0 query II rowsort label-1341 SELECT COUNT ( 34 ) col0, - 80 / 93 @@ -7182,8 +7284,11 @@ SELECT - 84 * + ( - - COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -405 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \+ Int64\(6\) \* \(\- min\(Int64\(64\)\)\) \+ \(\- sum\(Int64\(\-73\)\)\) / Int64\(\-78\) \+ \(\- Int64\(\-75\)\) AS col0" at position 0 and "Int64\(58\) \+ \(\- Int64\(79\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 96 + 6 * - + MIN ( 64 ) + - SUM ( ALL - 73 ) / - 78 + - - 75 AS col0, 58 + - + 79 AS col0 +---- +-21 +-405 query I rowsort label-1362 SELECT - COUNT ( + + 67 ) / + - 7 AS col2 @@ -7242,8 +7347,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col2" at position 0 and "sum\(\(\- Int64\(83\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 70 AS col2, + SUM ( ALL - + 83 ) AS col2 +---- +-70 +-83 query I rowsort SELECT 87 * + 58 AS col2 @@ -7309,8 +7417,11 @@ SELECT CAST ( - 4 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1282 # Datafusion - Expected - -167076 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(10\)\) \- Int64\(53\) \+ Int64\(29\) \* Int64\(46\) AS col1" at position 0 and "Int64\(\-91\) \* Int64\(34\) \* Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( ALL 10 ) - + 53 + 29 * 46 AS col1, - 91 * + 34 * + 54 AS col1 +---- +-167076 +1282 query I rowsort SELECT ALL + ( - 35 ) @@ -7390,8 +7501,11 @@ SELECT + 26, 70 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - -1295 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col1" at position 0 and "nullif\(Int64\(43\), CASE Int64\(\-8\) WHEN Int64\(86\) THEN NULL WHEN \(\- Int64\(\-83\)\) \- Int64\(49\) \+ Int64\(\-3\) THEN Int64\(\-4\) END\) \* Int64\(25\) \+ \(\- \(\- Int64\(\-20\)\)\) \+ Int64\(\-8\) \+ \(\- Int64\(54\)\) \+ Int64\(\-54\) \* Int64\(42\) \- \(\- nullif\(\(\- \(\- max\(Int64\(\-20\)\)\)\), \(\- Int64\(\-10\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 82 AS col1, NULLIF ( 43, + CASE - 8 WHEN 86 THEN NULL WHEN - - 83 - 49 + + - 3 THEN - 4 END ) * 25 + - + ( - - 20 ) + - 8 + - + 54 + - 54 * 42 - - NULLIF ( - - MAX ( ALL - 20 ), - - 10 ) AS col1 +---- +-1295 +-82 query II rowsort label-1400 SELECT + 28, 44 * - COUNT ( * ) AS col0 @@ -7448,8 +7562,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) + - 85 * + 26 + + + 12 AS col0, 95 * + 57 AS col0 +---- +-2197 +5415 query I rowsort label-1411 SELECT ( 1 ) * + - COUNT ( * ) AS col1 @@ -7511,8 +7628,11 @@ SELECT + COUNT ( * ) - + - 17 - 16 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -264818 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \+ \(\- Int64\(\-76\)\) \* Int64\(67\) \* Int64\(\-52\) AS col1" at position 0 and "\(\- coalesce\(Int64\(25\), Int64\(50\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 34 ) + + ( - - 76 ) * 67 * + - 52 AS col1, - COALESCE ( + 25, + 50 ) AS col1 +---- +-25 +-264818 query II rowsort label-1423 SELECT COUNT ( * ) AS col1, NULLIF ( 81, - - 0 * + 53 + - - 71 ) @@ -7688,8 +7808,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COALESCE ( - 8, - 85 ) AS col0, - COALESCE ( - COUNT ( * ), - - 24 / - - 38 + 43 - + 79 + - 50 + 28 ) col0 +---- +-8 +1 query I rowsort label-1455 SELECT ALL + COUNT ( * ) + 94 + - 28 * + - 45 @@ -8259,8 +8382,11 @@ SELECT DISTINCT + ( + COUNT ( - 92 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 159 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-79\)\) \* Int64\(2\) \+ count\(DISTINCT Int64\(66\)\) \+ Int64\(4\) / Int64\(62\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 79 * + + 2 + COUNT ( DISTINCT 66 ) + + 4 / + 62 col0, 23 col0 +---- +159 +23 query I rowsort label-1565 SELECT - COUNT ( ALL + 38 ) * - 75 + + COUNT ( * ) * + MIN ( + 14 ) + + 26 AS col0 @@ -8270,8 +8396,11 @@ SELECT - COUNT ( ALL + 38 ) * - 75 + + COUNT ( * ) * + MIN ( + 14 ) + + 26 AS co # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 65 AS col0, COUNT ( * ) AS col0 +---- +-65 +1 query I rowsort label-1567 SELECT - - 47 + - - 88 + + 59 + + - COUNT ( * ) + - - 41 / - 61 @@ -8681,8 +8810,11 @@ SELECT + ( + 79 ) * - 22 - - + COUNT ( * ) * 62 + + COUNT ( * ) * + - 74 + + 25 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(78\) WHEN Int64\(29\) THEN CAST\(Int64\(92\) AS Int32\) END\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - CASE ( 78 ) WHEN + 29 THEN + CAST ( ( + 92 ) AS INTEGER ) END AS col0, + 81 AS col0 +---- +81 +NULL query I rowsort SELECT ALL 2 + 26 @@ -9011,8 +9143,11 @@ SELECT ALL 94 / - - 92 + + + 17 + 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(\-83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 16 col0, - 83 AS col0 +---- +-83 +16 query I rowsort label-1711 SELECT ALL 0 / 53 + - 46 + - COUNT ( * ) * + + NULLIF ( 0, - 23 ) * + - SUM ( DISTINCT - 3 ) + + 90 + - 98 * - 41 * - + ( - 54 ) + + 69 AS col0 @@ -9460,8 +9595,11 @@ SELECT COUNT ( 90 ) AS col2 # 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\(12\) AS col0" at position 0 and "count\(DISTINCT Int64\(66\)\) \+ Int64\(44\) \+ \(\- Int64\(30\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 12 AS col0, COUNT ( DISTINCT + + 66 ) + + 44 + + ( + - ( ( ( 30 ) ) ) ) AS col0 +---- +12 +15 query I rowsort label-1797 SELECT DISTINCT + COALESCE ( - 67, 22 * + - 25, + COUNT ( * ) / - + 65 - - CAST ( - + 27 AS INTEGER ) * 32, - 59 ) AS col2 @@ -9503,8 +9641,11 @@ SELECT ALL ( 73 ) + + ( 97 ) * 46 * - 24 * - COUNT ( * ) * - + COUNT ( * ) * + 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - -2350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "Int64\(\-47\) \* Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 86 col2, - 47 * + + 50 AS col2 +---- +-2350 +86 query III rowsort SELECT - - 14 * + 36 - + 36 AS col2, + 52 * 12 * 97 AS col1, ( + 8 ) AS col0 @@ -9907,8 +10048,11 @@ 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 "CAST\(NULL AS Float64\) AS col0" at position 0 and "\(\- Int64\(79\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + CAST ( NULL AS FLOAT8 ) col0, ( - + 79 ) AS col0 +---- +-79 +NULL query I rowsort SELECT ALL - 67 - 87 col1 @@ -11134,8 +11278,11 @@ SELECT 65 * - 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "coalesce\(Int64\(81\), Int64\(69\) \- Int64\(\-14\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 86 AS col2, + COALESCE ( + 81, 69 - - 14 ) AS col2 +---- +81 +86 query II rowsort SELECT ALL - 26 AS col1, + 28 * ( - 95 ) @@ -11177,8 +11324,11 @@ SELECT + + COALESCE ( - COUNT ( * ), - 48, 33 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) AS col2" at position 0 and "Int64\(99\) \+ Int64\(14\) \- Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 16 AS col2, 99 + + 14 - 11 col2 +---- +-16 +102 query I rowsort SELECT 18 * - - 74 + - 11 @@ -11549,8 +11699,11 @@ SELECT - ( + 6 ) + - 45 * - - 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col1" at position 0 and "Int64\(72\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 12 AS col1, + 72 AS col1 +---- +12 +72 query I rowsort SELECT + 85 * - - 34 + + - CASE - 70 WHEN - 49 THEN 13 ELSE NULL END - 70 * - 87 * + 84 @@ -12435,8 +12588,11 @@ SELECT + 54 * - COALESCE ( ( + 35 ), 60 * - + 76 / + + 59 ) + MIN ( + 34 ) + - 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "Int64\(93\) \+ Int64\(\-34\) \* Int64\(93\) / Int64\(65\) \- Int64\(35\) \- Int64\(68\) \* \(\- CAST\(NULL AS Int32\)\) \+ \(\- Int64\(\-87\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 AS col2, 93 + - 34 * + 93 / 65 - + 35 - 68 * - CAST ( NULL AS INTEGER ) + - - 87 AS col2 +---- +12 +NULL query I rowsort SELECT ALL - 3 * 94 @@ -12458,8 +12614,12 @@ SELECT MIN ( DISTINCT 5 ) / SUM ( + 15 ) col0, - 7 AS col2 # Datafusion - Expected - NULL # Datafusion - Expected - 4 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(57\) \+ Int64\(62\) / Int64\(\-12\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + ( + 44 ) * - CAST ( NULL AS INTEGER ) + + 57 + 62 / + - 12 AS col2, 4 AS col2, + 29 +---- +29 +4 +NULL query II rowsort label-2372 SELECT DISTINCT + 69, - MIN ( DISTINCT 32 ) * COUNT ( + 4 ) AS col0 @@ -12583,8 +12743,11 @@ 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\(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\. +query II valuesort SELECT ALL + ( 86 ) AS col2, NULLIF ( 61, - 77 ) + + COALESCE ( + COUNT ( * ), + 58 * COUNT ( - 23 ) ) + - - 31 * - - 79 - COALESCE ( 16, + 85 + - 86 ) AS col2 +---- +2495 +86 query I rowsort SELECT COALESCE ( 86, + 63 ) @@ -12884,8 +13047,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL 29 AS col1, + ( - - 70 ) * - CAST ( NULL AS FLOAT8 ) + - - COUNT ( * ) AS col1 +---- +29 +NULL query II rowsort SELECT + - 48 * 30 - - 1, 2 AS col1 @@ -13004,8 +13170,11 @@ SELECT 52 * + + 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE \(\- avg\(Int64\(34\)\)\) WHEN Int64\(67\) THEN Int64\(\-32\) ELSE NULL END\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(\-5\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - CASE - + AVG ( ALL + 34 ) WHEN + + 67 THEN - 32 ELSE NULL END ) + + COUNT ( * ) col1, COUNT ( - 5 ) col1 +---- +1 +NULL query I rowsort label-2475 SELECT ALL + - 1 / + 77 * ( 49 ) col0 @@ -13061,8 +13230,11 @@ SELECT 0 * + COUNT ( * ) * MIN ( ALL - NULLIF ( - 66, - + 65 + 5 + 82 ) ) * - 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* Int64\(26\) \+ Int64\(17\) \+ \(\- CASE \(\- CAST\(NULL AS Int32\)\) WHEN Int64\(54\) \+ Int64\(0\) THEN Int64\(\-32\) \* Int64\(\-14\) \+ CAST\(NULL AS Int32\) END\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 81 * + 26 + 17 + - CASE - CAST ( NULL AS INTEGER ) WHEN + + 54 + + 0 THEN - 32 * - 14 + + + CAST ( NULL AS INTEGER ) END AS col1, 0 AS col1 +---- +0 +NULL query I rowsort SELECT ALL - 7 + + - 40 AS col0 @@ -13218,8 +13390,11 @@ 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\(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\. +query II valuesort SELECT ALL + 93 * - ( 38 ) + - 2 - + COUNT ( * ) * 92 AS col0, - 43 AS col0 +---- +-3628 +-43 query I rowsort SELECT DISTINCT + 35 + - 53 + - - 62 - + 24 @@ -13374,8 +13549,11 @@ SELECT - 64 + 94 * - - 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "Int64\(\-95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 89 AS col2, - 95 AS col2 +---- +-95 +89 query I rowsort label-2545 SELECT 9 * - 92 + MAX ( ALL + 71 ) @@ -13417,8 +13595,11 @@ SELECT ALL - 72 * - 80 * - 28 * - 55 * COUNT ( * ) - - 34 + - 42 * - 64 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 967 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col2" at position 0 and "Int64\(36\) \+ Int64\(\-29\) \+ Int64\(60\) \* \(\- Int64\(\-16\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 30 AS col2, 36 + - 29 + + 60 * - - 16 col2 +---- +-30 +967 query I rowsort SELECT + 69 + - 1 @@ -13449,8 +13630,11 @@ SELECT + + 51 / + 45, 26 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col1" at position 0 and "Int64\(29\) / min\(DISTINCT Int64\(\-27\)\) \- \(\- coalesce\(\(\- Int64\(42\)\), Int64\(\-7\) \+ Int64\(82\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + CAST ( NULL AS FLOAT8 ) col1, 29 / MIN ( DISTINCT - 27 ) - + - COALESCE ( - + ( + 42 ), + - 7 + + 82 ) AS col1 +---- +-43 +NULL query I rowsort SELECT - 32 + COALESCE ( + 3, 52 ) * - 39 AS col0 @@ -13601,8 +13785,11 @@ SELECT ALL - 50 * 90 * 96 col0, 7 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1581 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-17\) \* Int64\(93\) AS col1" at position 0 and "Int64\(15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 17 * + 93 AS col1, + 15 AS col1 +---- +-1581 +15 query I rowsort label-2587 SELECT ALL 47 / - - 29 + 62 @@ -13912,8 +14099,11 @@ SELECT 86 * 40 - - 61 + + 1 / - 44 * - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(72\)\)\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( 72 ) AS col1, + 22 AS col1 +---- +-72 +22 query I rowsort SELECT DISTINCT 94 + - 94 AS col1 @@ -14459,8 +14649,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * 60 AS col1, - MIN ( - 64 ) AS col1 +---- +60 +64 query I rowsort SELECT + ( + 9 ) + 80 @@ -14551,8 +14744,11 @@ SELECT ALL 65 * ( - 68 ) # 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 "coalesce\(Int64\(\-93\), Int64\(\-60\) \- \(\- Int64\(92\)\) \+ Int64\(39\) \+ Int64\(27\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 27 AS col2, COALESCE ( - 93, - 60 - - ( + 92 ) + 39 + 27 ) AS col2 +---- +-93 +27 query I rowsort label-2770 SELECT ALL COUNT ( * ) * - 67 - - 45 AS col1 @@ -15008,8 +15204,11 @@ SELECT 50 - - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "Int64\(\-55\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) / CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 76 AS col0, - 55 * - COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col0 +---- +76 +NULL query II rowsort SELECT ALL 80, 7 AS col1 @@ -15110,14 +15309,21 @@ NULL # Datafusion - Expected - 77 # Datafusion - Expected - -95 # Datafusion - Expected - 151 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "Int64\(81\) \+ Int64\(70\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + + 77 AS col0, + COUNT ( * ) + + ( - 96 ) col2, 81 + + 70 AS col0 +---- +-95 +151 +77 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-52\)\) \* Int64\(\-58\) \+ Int64\(\-22\) \* Int64\(60\) \* CAST\(NULL AS Int32\) \* CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 52 * - 58 + + - 22 * + + 60 * CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col1, - 13 AS col1 +---- +-13 +NULL query I rowsort label-2877 SELECT - 19 * - SUM ( ALL + 88 ) + + 45 @@ -15352,8 +15558,11 @@ SELECT + COUNT ( + + 51 ) - - + 25 * 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 77 AS col1, - CAST ( NULL AS INTEGER ) * - 80 AS col1 +---- +-77 +NULL query I rowsort label-2920 SELECT + COALESCE ( - 54, - + 48, + 32 ) / - ( CAST ( NULL AS INTEGER ) ) * + + 94 / + 43 * + 53 @@ -15595,8 +15804,11 @@ SELECT - COUNT ( ALL + 35 ) AS col2, + COUNT ( 42 ) * + 15 + + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 110 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ max\(Int64\(27\)\) \+ \(\- \(\- coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(51\)\)\)\) \+ Int64\(\-7\) AS col2" at position 0 and "Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 + + + MAX ( + + 27 ) + - - COALESCE ( - + CAST ( NULL AS INTEGER ), 51 ) + + - 7 col2, + 47 col2 +---- +110 +47 query I rowsort label-2963 SELECT + 42 / - + 63 @@ -15753,8 +15965,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(\-42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 7 AS col2, + COUNT ( * ) / - 42 AS col2 +---- +-7 +0 query I rowsort SELECT ALL 9 * 3 @@ -16081,8 +16296,11 @@ SELECT - 12 * - 62 * - 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - -440 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col2" at position 0 and "Int64\(22\) \* Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 81 ) AS col2, + 22 * - 20 AS col2 +---- +-440 +81 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -16100,8 +16318,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2769 # Datafusion - Expected - 3108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \* \(\- Int64\(\-71\)\) AS col2" at position 0 and "Int64\(84\) \* \(\- Int64\(\-37\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 39 * - - 71 AS col2, + 84 * - - 37 / COUNT ( * ) AS col2 +---- +-2769 +3108 query I rowsort SELECT ALL + CASE + 47 WHEN - 96 THEN - 58 ELSE NULL END @@ -16216,8 +16437,11 @@ SELECT + ( - + CAST ( - + 24 AS INTEGER ) ) / + 10 AS col2 # 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 "\(\- \(\- nullif\(Int64\(60\), Int64\(64\)\)\)\) AS col0" at position 0 and "Int64\(\-55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - NULLIF ( 60, 64 ) AS col0, - 55 col0 +---- +-55 +60 query I rowsort label-3080 SELECT + COALESCE ( - 76, CAST ( + 63 AS INTEGER ) - 6 + + 23 + 53 + + CASE - - 15 WHEN + + 48 * - - 96 THEN NULL WHEN - 20 / + 97 * + 21 - CASE + 25 WHEN + 33 + + 59 THEN + ( - 68 ) - + - 78 + + 61 WHEN - 95 THEN NULL END + - CAST ( NULL AS FLOAT8 ) + - COUNT ( * ) * - MAX ( + ( 92 ) ) * + 78 * + - 84 + 68 + + - 79 THEN CAST ( NULL AS INTEGER ) * + 13 END + 77 * NULLIF ( 13, 71 ) ) @@ -16571,8 +16795,11 @@ SELECT - 61 * + + COUNT ( * ) + - 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77347 # Datafusion - Expected - 1604 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-60\) \* Int64\(46\) \* Int64\(28\) AS col1" at position 0 and "Int64\(25\) \- \(\- Int64\(\-66\)\) \+ CAST\(sum\(\(\- Int64\(58\)\)\) AS Int32\) \+ Int64\(\-17\) \* Int64\(53\) / Int64\(1\) \+ Int64\(93\) \* Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 66 + + COUNT ( * ) - - 60 * 46 * 28 AS col1, + 25 - - - 66 + + CAST ( SUM ( - ( 58 ) ) AS INTEGER ) + - 17 * + 53 / + ( + 1 ) + + 93 * 28 AS col1 +---- +1604 +77347 query I rowsort label-3147 SELECT DISTINCT - 7 / 57 AS col1 @@ -16860,8 +17087,11 @@ SELECT ALL - + 44, 9 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 126 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "min\(Int64\(37\)\) \+ Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, + MIN ( 37 ) + + 89 AS col2 +---- +1 +126 query I rowsort SELECT ALL - - 78 * 23 + + 49 * + CASE 14 WHEN + + 89 THEN NULL WHEN + 55 THEN 55 END AS col2 @@ -17553,8 +17783,11 @@ SELECT ( - - 15 ) * + 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - -133 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) \+ \(\- Int64\(34\)\) AS col2" at position 0 and "\(\- sum\(Int64\(\-72\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 99 + - ( + 34 ) AS col2, - SUM ( ALL - 72 ) AS col2 +---- +-133 +72 query I rowsort label-3334 SELECT ALL - MAX ( DISTINCT + - 86 ) AS col1 @@ -17754,8 +17987,11 @@ SELECT 1 * + 54 * 10 / - 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 227201 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col1" at position 0 and "Int64\(\-90\) \+ CASE Int64\(98\) WHEN Int64\(20\) THEN Int64\(82\) ELSE Int64\(42\) \* Int64\(41\) END \+ \(\- Int64\(\-47\)\) \+ Int64\(34\) \* Int64\(67\) \* Int64\(99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 4 AS col1, - 90 + + CASE 98 WHEN + 20 THEN 82 ELSE + 42 * + 41 END + - - 47 + 34 * + 67 * + 99 AS col1 +---- +227201 +4 query I rowsort label-3372 SELECT DISTINCT - COUNT ( ALL - 33 ) - + COUNT ( - 86 ) - 17 col2 @@ -18170,8 +18406,12 @@ SELECT ALL 24 + - 55 * - - ( - 68 ) + + - 79 # Datafusion - Expected - 41 # Datafusion - Expected - NULL # Datafusion - Expected - -45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \+ Int64\(91\) AS col0" at position 0 and "Int64\(18\) \+ Int64\(45\) \- \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- CAST\(NULL AS Int32\) \* Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 50 + + 91 AS col0, + 18 + + 45 - - COUNT ( * ) - + CAST ( NULL AS INTEGER ) * + 69 AS col0, 15 * + MAX ( ALL ( - 3 ) ) AS col1 +---- +-45 +41 +NULL query I rowsort SELECT ALL + 96 + 89 AS col1 @@ -18181,8 +18421,11 @@ SELECT ALL + 96 + 89 AS col1 # 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\(92\) \+ Int64\(\-94\) AS col1" at position 0 and "\(\- Int64\(44\)\) / Int64\(78\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 + + - 94 AS col1, - ( 44 ) / + 78 AS col1 +---- +-2 +0 query I rowsort SELECT 8 * + - 64 @@ -18520,8 +18763,11 @@ NULL # 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 "Int64\(\-6\) AS col1" at position 0 and "Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + - 6 ) AS col1, - 86 AS col1 +---- +-6 +-86 query I rowsort SELECT ALL + ( 7 ) AS col1 @@ -18729,8 +18975,11 @@ SELECT 88 / + 99 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-89\) AS col1" at position 0 and "CAST\(\(\- Int64\(\-99\)\) AS Int32\) \* Int64\(\-47\) \- \(\- CAST\(\(\- CASE \(\- \(\- \(\- min\(Int64\(33\)\)\)\)\) WHEN Int64\(\-14\) THEN \(\- Int64\(14\)\) END\) AS Int32\)\) \+ Int64\(\-96\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(\-88\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +0 +NULL query I rowsort label-3558 SELECT ALL + NULLIF ( + CASE + 40 WHEN - - 38 THEN - MIN ( + + 0 ) * - - 76 + + 95 * + COALESCE ( - 77, + + 53 ) WHEN - 0 * + 92 THEN NULL END, + + 82 ) + - 80 AS col1 @@ -18858,8 +19107,12 @@ NULL # Datafusion - Expected - -168 # Datafusion - Expected - 70 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 1 and "Int64\(36\) / \(\- Int64\(\-77\)\) \* \(\- Int64\(\-69\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 2 * - ( + 84 ) col2, 70 AS col0, 36 / - - 77 * - - 69 AS col0 +---- +-168 +0 +70 query I rowsort label-3582 SELECT 8 - + + CASE - 21 WHEN - - 68 THEN + 96 ELSE + MIN ( DISTINCT - + ( - 13 ) ) END @@ -19948,8 +20201,11 @@ SELECT - COUNT ( * ) * + - 96 + COALESCE ( - NULLIF ( 25, - 88 ), - 86 * CAST ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ Int64\(\-9\) AS col1" at position 0 and "Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 33 + - 9 AS col1, ( - 13 ) AS col1 +---- +-13 +24 query I rowsort SELECT ALL - 6 * + + 97 + 54 + + + 83 * 16 @@ -20087,8 +20343,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * 44 + + + 18 AS col2, + 18 col2 +---- +18 +62 query I rowsort SELECT DISTINCT 75 + + - 64 @@ -20118,8 +20377,11 @@ SELECT 77 + - 40 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -479 # Datafusion - Expected - -840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \+ \(\- Int64\(35\)\) \* Int64\(15\) AS col0" at position 0 and "Int64\(60\) \* Int64\(\-14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 46 + - + 35 * + 15 col0, 60 * - 14 AS col0 +---- +-479 +-840 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -20402,8 +20664,11 @@ SELECT DISTINCT ( SUM ( DISTINCT + + 5 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 94 * + + COUNT ( * ) AS col2, 37 AS col2 +---- +37 +94 query I rowsort label-3880 SELECT - COUNT ( * ) + 22 * - 98 AS col0 @@ -20598,8 +20863,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - -4560 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "Int64\(\-57\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 92 AS col1, - 57 * + 80 col1 +---- +-4560 +92 query I rowsort label-3918 SELECT NULLIF ( + 90, - 82 * COUNT ( * ) ) * - ( + + 93 ) AS col1 @@ -20700,8 +20968,11 @@ SELECT ALL MAX ( + 76 ) + - ( + - COUNT ( ALL - - 86 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* CAST\(NULL AS Int32\) \+ Int64\(\-17\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 47 * CAST ( NULL AS INTEGER ) + - 17 AS col0, COUNT ( * ) col0 +---- +1 +NULL query I rowsort SELECT ALL - 41 + - - 34 @@ -20997,8 +21268,11 @@ SELECT ALL - - 32 * + 7 * + + 33 + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 21 AS col2, + CAST ( NULL AS INTEGER ) col2 +---- +21 +NULL query I rowsort label-3996 SELECT ALL - MAX ( - 21 ) * - COUNT ( * ) + - + CAST ( + 59 AS INTEGER ) + - 33 * 89 * - 3 @@ -21092,8 +21366,11 @@ SELECT - 23 AS col1, ( 44 ) AS col0 # 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 "max\(Int64\(28\)\) AS col1" at position 0 and "Int64\(37\) / Int64\(\-39\) \- Int64\(87\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( ALL + 28 ) AS col1, 37 / - 39 - 87 AS col1 +---- +-87 +28 query I rowsort label-4014 SELECT ALL CAST ( - MAX ( DISTINCT COALESCE ( - ( 49 ), - + 12, - + 83 * - + 46 ) ) AS INTEGER ) @@ -22004,14 +22281,20 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 19 AS col2, - ( + + 98 ) * 85 + - 92 * - COUNT ( * ) AS col2 +---- +-8238 +19 # 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\(\-82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 col0, - 82 AS col0 +---- +-82 +86 query II rowsort SELECT 21 AS col2, 20 @@ -22043,8 +22326,11 @@ SELECT + 27, 22 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col2" at position 0 and "Int64\(7\) / Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 75 AS col2, + 7 / - 12 col2 +---- +-75 +0 query I rowsort SELECT 20 * + 91 AS col2 @@ -22091,8 +22377,11 @@ SELECT + 79 - + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col2" at position 0 and "Int64\(25\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 25 AS col2, 25 * + - CAST ( NULL AS INTEGER ) * 50 AS col2 +---- +-25 +NULL query II rowsort label-4201 SELECT ALL + 84, - MIN ( + 18 ) * - + COUNT ( * ) * 0 col1 @@ -22818,8 +23107,11 @@ SELECT ALL MIN ( - 70 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "Int64\(\-73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 32 AS col2, - 73 AS col2 +---- +-73 +32 query I rowsort label-4341 SELECT - MAX ( DISTINCT ( + 53 ) ) @@ -22860,8 +23152,12 @@ 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\(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\. +query III valuesort SELECT ALL 68 * - + NULLIF ( 56, + COALESCE ( - + COUNT ( * ), + 98 ) ) col1, 11 AS col1, + + 67 +---- +-3808 +11 +67 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -22987,8 +23283,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - 4752 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col2" at position 0 and "Int64\(66\) \* Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 71 col2, 66 * 72 AS col2 +---- +-71 +4752 query I rowsort label-4372 SELECT - + COUNT ( * ) * - COUNT ( DISTINCT + 9 ) * + + 83 * + - 0 / + - 50 * + NULLIF ( - 98, COUNT ( * ) ) * + COUNT ( * ) + - - 78 AS col0 @@ -23003,8 +23302,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 71 AS col1, - COUNT ( * ) AS col1 +---- +-1 +71 query II rowsort label-4375 SELECT + MIN ( + - 84 ) col1, ( 58 ) AS col2 @@ -23445,8 +23747,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 3784 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- count\(Int64\(\-69\)\)\) AS Int32\) AS col1" at position 0 and "Int64\(44\) \* Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( - COUNT ( + - 69 ) AS INTEGER ) AS col1, + 44 * 86 AS col1 +---- +-1 +3784 query I rowsort label-4461 SELECT + COALESCE ( + 99, COALESCE ( 15, + 65 ) - + 64 / - 31 + - + 49 * + 27, - 95 ) + 5 * - COUNT ( * ) + - 87 AS col2 @@ -23538,8 +23843,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( DISTINCT + - 11 ) / - 78 * + 22 + 27 + + COUNT ( * ) / + - 71 * - + 2 - - + 25 AS col2, - 59 AS col2 +---- +-59 +52 query I rowsort SELECT 58 * 11 + - 3 @@ -23844,8 +24152,11 @@ 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\(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\. +query II valuesort 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 +---- +-6483 +0 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -24017,8 +24328,11 @@ SELECT DISTINCT + 86 - - 18 + + 38 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 col0" at position 0 and "Int64\(97\) / \(\- Int64\(97\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 AS col0, 97 / - ( + 97 ) col0 +---- +-1 +56 query I rowsort label-4570 SELECT - + COUNT ( * ) + + + 81 * + 32 @@ -24110,8 +24424,11 @@ SELECT - SUM ( ALL + 51 ), + 68 + 50 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-80\) WHEN Int64\(62\) THEN NULL ELSE Int64\(52\) END AS col0" at position 0 and "\(\- min\(DISTINCT Int64\(95\)\)\) \* Int64\(4\) / Int64\(7\) / Int64\(\-83\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CASE + - 80 WHEN + 62 THEN NULL ELSE + + 52 END AS col0, - ( + MIN ( DISTINCT + + 95 ) ) * 4 / 7 / + - 83 AS col0 +---- +0 +52 query I rowsort SELECT ALL + 64 + 58 AS col1 @@ -24245,8 +24562,11 @@ SELECT ALL + COALESCE ( - 83, 72, - 39 ) AS col2, - ( - 4 ) + - NULLIF ( - 60, C # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(69\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* Int64\(86\) \+ Int64\(\-96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 69 * + COUNT ( * ) AS col2, + CAST ( + + COUNT ( * ) AS INTEGER ) * 86 + - 96 AS col2 +---- +-10 +-69 query I rowsort label-4612 SELECT + ( - - CAST ( 71 AS INTEGER ) ) @@ -25349,8 +25669,11 @@ SELECT 5 - - 1 / + 36 + - 30 + - 1 + + COUNT ( ( 45 ) ) # 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\(37\) WHEN Int64\(0\) THEN NULL WHEN Int64\(83\) \+ Int64\(12\) \+ Int64\(36\) THEN \(\- Int64\(12\)\) \+ Int64\(16\) \+ Int64\(43\) \+ Int64\(32\) \* Int64\(95\) / nullif\(avg\(Int64\(73\)\), Int64\(\-84\) \* Int64\(0\)\) ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL - + 61 AS col2, - CASE + 37 WHEN - 0 THEN NULL WHEN + 83 + + + 12 + + 36 THEN - + 12 + + 16 + + 43 + 32 * 95 / NULLIF ( AVG ( ALL + + 73 ), - 84 * + 0 ) ELSE NULL END AS col2 +---- +-61 +NULL query I rowsort label-4818 SELECT ALL 35 * COUNT ( * ) + + 96 + + + 31 @@ -25665,8 +25988,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 31 * + 44 AS col1, 90 * 47 * + + 65 - - - 0 - - 2 + - 86 * + 66 * - 89 + + + 86 + - ( - + 89 ) / - COUNT ( * ) AS col1 +---- +1364 +780113 query I rowsort SELECT DISTINCT - 26 * 42 + + 64 - + 89 - - 82 * - 79 AS col1 @@ -26375,8 +26701,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, COUNT ( * ) AS col1 +---- +1 +1 query I rowsort label-5012 SELECT - 24 / 60 + 38 * - - 38 AS col0 @@ -26469,8 +26798,12 @@ 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\(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\. +query III valuesort SELECT 71 * - 91 * 35 AS col0, - 7 - - - 12 - + COUNT ( * ) + - 34 + + 65 + + + 20 * - - 6 AS col2, COALESCE ( - 48, 70 ) col2 +---- +-226135 +-48 +131 query I rowsort label-5029 SELECT 90 - - SUM ( DISTINCT 19 ) * + COUNT ( * ) * + 36 AS col2 @@ -26515,8 +26848,11 @@ SELECT + COUNT ( * ) * + + 43 * 6 + + 59 + - 45 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 5742 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ Int64\(14\) AS col0" at position 0 and "Int64\(99\) \* Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 16 + 14 col0, 99 * 58 AS col0 +---- +30 +5742 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -27086,8 +27422,11 @@ SELECT ALL - COALESCE ( + + CASE + 85 WHEN + 0 + + COUNT ( * ) - + AVG ( 20 ) + # 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 "Int64\(58\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 AS col1, 44 AS col1 +---- +44 +58 query I rowsort label-5145 SELECT COUNT ( * ) / + - 7 * COALESCE ( CAST ( NULL AS INTEGER ), 74 + COUNT ( * ) + + - 85 ) @@ -27102,8 +27441,11 @@ 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\(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\. +query II valuesort SELECT 55 * - COUNT ( * ) col2, 36 AS col2 +---- +-55 +36 query I rowsort label-5148 SELECT 91 + COUNT ( * ) + - COUNT ( * ) * + 62 * 35 + COUNT ( * ) * - 38 + + 19 * - 79 * - + 31 @@ -27255,8 +27597,11 @@ 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\(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\. +query II valuesort 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 +---- +-74 +NULL query I rowsort label-5176 SELECT ALL - - 95 * + - CAST ( NULL AS INTEGER ) @@ -27650,8 +27995,11 @@ SELECT ALL + ( + 87 ) + + + 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - -2849 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col2" at position 0 and "Int64\(77\) \* Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 32 ) AS col2, 77 * ( - 37 ) AS col2 +---- +-2849 +-32 query I rowsort label-5252 SELECT COUNT ( * ) * - - 17 * - 21 + - 58 + - - 90 - - 30 AS col2 @@ -27671,8 +28019,11 @@ SELECT + MAX ( DISTINCT + 57 ) + - 14 * - 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \+ Int64\(\-99\) AS col0" at position 0 and "sum\(Int64\(21\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 33 + - 99 AS col0, SUM ( 21 ) AS col0 +---- +-66 +21 query I rowsort SELECT DISTINCT - 98 + + 49 - 8 AS col1 @@ -27741,8 +28092,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 49 AS col0, 56 AS col0 +---- +-49 +56 query I rowsort label-5269 SELECT SUM ( + - 28 ) AS col1 @@ -28269,8 +28623,11 @@ SELECT DISTINCT 20 + - - ( + 37 ) + + 85 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 "Int64\(1\) AS col2" at position 0 and "coalesce\(\(\- Int64\(\-80\)\), Int64\(88\) \* Int64\(65\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 1 col2, + COALESCE ( - - 80, 88 * 65 ) AS col2 +---- +1 +80 query I rowsort SELECT 28 + - - 2 * - 78 @@ -28676,8 +29033,11 @@ SELECT + 60 + 86 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(17\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 20 AS col1, + CAST ( NULL AS INTEGER ) + 17 + + COUNT ( * ) col1 +---- +20 +NULL query I rowsort SELECT - 72 * + 26 @@ -29042,8 +29402,11 @@ SELECT ALL - + 15 + - + 94 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ \(\- Int64\(82\)\) AS col2" at position 0 and "\(\- max\(DISTINCT Int64\(\-60\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 53 + - + 82 AS col2, - MAX ( DISTINCT - 60 ) AS col2 +---- +-29 +60 query I rowsort label-5522 SELECT DISTINCT - ( COUNT ( * ) ) col0 @@ -29731,8 +30094,12 @@ SELECT ALL + 69 * - 24 + - COUNT ( * ) - - 70 AS col0 # Datafusion - Expected - 75 # Datafusion - Expected - 9 # Datafusion - Expected - -160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col1" at position 0 and "Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 75 AS col1, + 9 AS col1, + 40 * - 4 +---- +-160 +75 +9 query I rowsort SELECT DISTINCT - 36 * - - 60 AS col2 @@ -29955,8 +30322,11 @@ SELECT CAST ( - 94 AS INTEGER ) AS col1, 71 - + CAST ( COUNT ( * ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 283 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-9\), Int64\(1\)\)\) \* \(\- Int64\(\-28\)\) \+ Int64\(31\) AS col1" at position 0 and "Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - NULLIF ( - 9, + 1 ) * - - 28 + 31 AS col1, 89 AS col1 +---- +283 +89 query I rowsort label-5695 SELECT ALL - 9 * + MAX ( + 6 ) * + + 27 * + 17 + + 15 col1 @@ -30388,8 +30758,11 @@ SELECT ALL 69 + ( + 96 ) + MAX ( + 68 ) - - 85 * + 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col2" at position 0 and "Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 AS col2, 22 AS col2 +---- +22 +40 query I rowsort label-5778 SELECT DISTINCT - COUNT ( * ) * 42 / - 51 * 10 @@ -30440,8 +30813,11 @@ SELECT - ( + CAST ( 6 AS INTEGER ) ) * + 22 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 AS col1, COUNT ( * ) AS col1 +---- +1 +64 query I rowsort label-5788 SELECT - 4 / ( + ( - - 76 ) ) - + + CAST ( NULL AS INTEGER ) + + MAX ( DISTINCT + 69 ) AS col1 @@ -30569,8 +30945,11 @@ SELECT + 24 + + 46 * 76 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6767 # Datafusion - Expected - -3200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \- Int64\(71\) \* Int64\(\-95\) \- Int64\(8\) AS col1" at position 0 and "\(\- Int64\(80\)\) \* \(\- Int64\(\-40\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 30 - + 71 * - 95 - + + 8 AS col1, - ( + 80 ) * - - 40 AS col1 +---- +-3200 +6767 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -30634,8 +31013,11 @@ SELECT - MAX ( DISTINCT - 30 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "Int64\(\-73\) \+ Int64\(\-20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 77 AS col0, - 73 + - 20 AS col0 +---- +-93 +77 query I rowsort label-5825 SELECT ALL SUM ( - - ( + + 49 ) ) AS col0 @@ -30786,8 +31168,11 @@ SELECT ALL - - MAX ( - + 53 ) - COUNT ( * ) + - - 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 333 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \- \(\- count\(Int64\(62\)\)\) AS col2" at position 0 and "max\(Int64\(23\)\) \* Int64\(11\) \+ Int64\(80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 71 - - COUNT ( 62 ) AS col2, MAX ( ALL + 23 ) * + 11 + 80 AS col2 +---- +333 +72 query II rowsort label-5853 SELECT 61 * - 12 AS col0, + 51 * + - CAST ( NULL AS INTEGER ) @@ -31138,8 +31523,11 @@ SELECT - 0 * - + 49 + 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3105 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* \(\- Int64\(\-45\)\) AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 * - - 45 AS col1, 52 AS col1 +---- +3105 +52 query I rowsort label-5919 SELECT + - MIN ( DISTINCT - 4 ) @@ -31840,8 +32228,11 @@ SELECT + + 9 * + 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 5846 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "\(\- Int64\(\-74\)\) \* Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 88 col1, ( - - 74 ) * 79 AS col1 +---- +5846 +88 query I rowsort label-6052 SELECT - ( 4 ) + - CAST ( NULL AS INTEGER ) + + 42 AS col0 @@ -32123,8 +32514,11 @@ SELECT DISTINCT - + ( - 53 ) * + - 6 * - 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - -340 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col0" at position 0 and "Int64\(17\) \* \(\- Int64\(20\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 30 AS col0, 17 * - ( + 20 ) AS col0 +---- +-30 +-340 query II rowsort label-6107 SELECT 61 * - 30 * - - 87, 24 / 24 AS col0 @@ -32151,8 +32545,11 @@ 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\(1\)\) AS count\(\*\)\) \- Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-2612 +110 query I rowsort SELECT ALL + 32 * - 10 AS col1 @@ -33160,8 +33557,11 @@ SELECT + ( - 20 ) + 85 + + 97 * - + 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 28 AS col2, 14 AS col2 +---- +14 +28 query I rowsort label-6304 SELECT + ( + 93 ) / + 66 AS col0 @@ -33290,8 +33690,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 16 col1, 16 AS col1 +---- +16 +16 query I rowsort label-6328 SELECT ALL + 27 / + 66 + 65 AS col1 @@ -33707,8 +34110,11 @@ SELECT ALL 78 + - 76 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col1" at position 0 and "Int64\(23\) \* Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 AS col1, + 23 * + 1 AS col1 +---- +23 +46 query I rowsort label-6406 SELECT - CASE + 90 WHEN 22 THEN NULL WHEN + 7 + + - 78 + + 90 + 70 * COALESCE ( - - 94, + - COUNT ( * ), + COUNT ( * ) ) * NULLIF ( + ( 40 ), COUNT ( * ) * - 2 * 57 ) THEN NULL WHEN + + 25 THEN NULL ELSE COUNT ( * ) END / - 72 AS col1 @@ -33788,8 +34194,11 @@ SELECT + 71 + - - 69 + 85 * + 44 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -376 # Datafusion - Expected - 2052 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \* Int64\(\-8\) AS col0" at position 0 and "Int64\(27\) \* sum\(DISTINCT Int64\(76\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 * - 8 col0, 27 * SUM ( DISTINCT + 76 ) AS col0 +---- +-376 +2052 query I rowsort SELECT DISTINCT + NULLIF ( ( + + 4 ), 30 + + - 9 * 77 ) * + 74 * 25 @@ -33991,14 +34400,20 @@ SELECT DISTINCT CAST ( COUNT ( DISTINCT - - 29 ) AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 14520 -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 "CASE \(\- \(\- Int64\(15\)\)\) WHEN Int64\(90\) \* Int64\(\-56\) \+ \(\- Int64\(15\)\) \* \(\- Int64\(43\)\) THEN coalesce\(\(\- count\(DISTINCT Int64\(73\)\)\), Int64\(35\) \* Int64\(\-74\)\) ELSE Int64\(\-55\) \* Int64\(\-4\) END \* Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL CAST ( NULL AS FLOAT8 ) AS col1, CASE - - ( + 15 ) WHEN + 90 * - 56 + - + 15 * + ( - + 43 ) THEN + COALESCE ( - COUNT ( DISTINCT + 73 ), 35 * - 74 ) ELSE + - 55 * - 4 END * 66 AS col1 +---- +14520 +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\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 2 col1, + COUNT ( * ) AS col1 +---- +-2 +1 query I rowsort SELECT + 76 + - 54 * 59 @@ -34194,8 +34609,11 @@ SELECT ALL + 82 + 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) AS col0" at position 0 and "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 52 AS col0, 39 AS col0 +---- +39 +52 query I rowsort label-6499 SELECT DISTINCT + - COUNT ( * ) + + - ( + 14 ) / + 22 col2 @@ -34225,8 +34643,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) / - - 23 AS col1, + 88 / - 61 - + - 89 - - 20 + + + 43 AS col1 +---- +0 +151 query I rowsort label-6505 SELECT COUNT ( ALL + 65 ) / + 24 - COUNT ( * ) + + 94 + - 4 + ( - 20 ) col1 @@ -34716,8 +35137,11 @@ SELECT + 38 + - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) \+ Int64\(13\) \+ Int64\(32\) \+ Int64\(\-4\) AS col0" at position 0 and "Int64\(33\) / Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 12 + + 13 + 32 + - 4 AS col0, 33 / + 14 AS col0 +---- +2 +29 query I rowsort SELECT + + 38 * 90 + - 11 AS col0 @@ -35224,8 +35648,11 @@ SELECT + 79 / + - 71 + + 27 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -460 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \* \(\- Int64\(20\)\) AS col2" at position 0 and "Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 23 * - ( 20 ) AS col2, 23 AS col2 +---- +-460 +23 query I rowsort SELECT + - 77 + - 10 AS col1 @@ -35475,8 +35902,12 @@ SELECT NULLIF ( - 54, + 85 ) + + + 75 + COUNT ( * ) - - 49 # Datafusion - Expected - 99 # Datafusion - Expected - -88 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \+ Int64\(0\) \- \(\- Int64\(67\)\) AS col0" at position 0 and "Int64\(\-88\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 32 + 0 - - ( + 67 ) AS col0, - 88 AS col0, 1 AS col1 +---- +-88 +1 +99 query I rowsort SELECT 57 * + - 58 @@ -35552,8 +35983,11 @@ SELECT ALL + + 33 * 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(\-95\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(\-91\) \* Int64\(95\) THEN NULL WHEN \(\- coalesce\(Int64\(23\), \(\- Int64\(5\)\) \* \(\- Int64\(76\)\)\)\) THEN Int64\(6\) END\) \+ \(\- Int64\(21\)\) \+ Int64\(63\) \+ Int64\(\-95\) \* Int64\(\-22\) \* Int64\(71\) \+ \(\- Int64\(39\)\) / count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-4 +NULL query I rowsort SELECT DISTINCT - 37 * 54 * 89 @@ -35786,8 +36220,11 @@ SELECT DISTINCT + 30 + + 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - -169 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(72\), Int64\(\-60\), Int64\(80\)\)\) \+ \(\- Int64\(97\)\) AS col1" at position 0 and "Int64\(\-10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( + 72, - 60, 80 ) + - ( 97 ) col1, - 10 AS col1 +---- +-10 +-169 query I rowsort SELECT - NULLIF ( - 59, - 38 + + 60 + + ( + NULLIF ( - NULLIF ( + + 46, + + 39 ), 93 ) ) ) * 6 * 18 AS col0 @@ -36070,8 +36507,11 @@ SELECT ( + 47 ) * 90 * MAX ( ALL 1 ) + + + 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-86\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, - 86 / ( COUNT ( * ) ) col2 +---- +-1 +-86 query I rowsort SELECT 57 * - 25 AS col2 @@ -37568,8 +38008,12 @@ 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\(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\. +query III valuesort SELECT 54, + ( + + COUNT ( * ) ) * + - 80 AS col2, + - 36 AS col2 +---- +-36 +-80 +54 query II rowsort label-7147 SELECT ALL 64 AS col1, + MAX ( - 3 ) * - CAST ( NULL AS INTEGER ) / + COUNT ( * ) @@ -37617,8 +38061,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 87 AS col1, + 52 + - COUNT ( * ) AS col1 +---- +51 +87 query I rowsort SELECT 52 * + + ( 38 ) * - CASE + 73 WHEN 88 THEN + ( 33 ) * - 55 WHEN + CASE AVG ( - 93 ) WHEN + 94 THEN NULL WHEN - 21 THEN NULL ELSE + 69 END + 34 THEN 51 * - 76 WHEN - 14 THEN NULL END AS col0 @@ -37838,8 +38285,12 @@ SELECT - - CAST ( 1 AS INTEGER ) col1 # Datafusion - Expected - 36 # Datafusion - Expected - 98 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 1 and "Int64\(\-58\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - ( - + 36 ), + 98 AS col0, - 58 AS col0 +---- +-58 +36 +98 query I rowsort label-7198 SELECT DISTINCT 36 + + 74 / + 10 / - ( - CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) + CASE ( MAX ( DISTINCT + 89 ) ) WHEN COALESCE ( 92, - 74 ) + - CAST ( - 98 + 69 AS INTEGER ) THEN NULL WHEN 0 THEN 19 ELSE NULL END + MAX ( 71 ) * + 15 col1 @@ -37849,8 +38300,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) / + - 99 + + + 18 + - - ( - - 18 ) AS col2, + COUNT ( * ) * - 11 AS col2 +---- +-11 +36 query I rowsort label-7200 SELECT - ( NULLIF ( + 93, + 64 ) ) + + + 12 + - SUM ( ALL - 44 ) col2 @@ -38063,8 +38517,12 @@ SELECT DISTINCT 14 + - 72 # Datafusion - Expected - -47 # Datafusion - Expected - -32 # Datafusion - Expected - -5218 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-48\) \+ \(\- Int64\(\-85\)\) \+ \(\- Int64\(84\)\) AS col0" at position 0 and "Int64\(26\) \+ Int64\(21\) \- Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 48 + - - 85 + - + 84 AS col0, + 26 + + 21 - + 79 AS col0, - + 37 * - - 86 + + SUM ( ALL COALESCE ( + 20, - 58, 66 ) + - 80 ) - 26 * 76 +---- +-32 +-47 +-5218 query I rowsort SELECT + 62 + + 97 AS col0 @@ -38197,8 +38655,11 @@ SELECT ALL - 4 + 79 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4278 # Datafusion - Expected - -1302 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) \* Int64\(62\) AS col0" at position 0 and "\(\- Int64\(\-37\)\) \* Int64\(\-36\) \+ Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 69 * + + 62 AS col0, - ( - 37 ) * + - 36 + + 30 AS col0 +---- +-1302 +-4278 query II rowsort SELECT ALL - 13 + 16, + 97 AS col0 @@ -39251,8 +39712,11 @@ 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\(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\. +query II valuesort SELECT 64 + - COUNT ( * ) + - ( - + 11 ) AS col0, - 15 AS col0 +---- +-15 +74 query I rowsort label-7465 SELECT CAST ( NULL AS INTEGER ) * - 62 / 97 * 14 * 88 AS col0 @@ -39267,8 +39731,11 @@ SELECT 71 * + + 14 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col0" at position 0 and "Int64\(\-75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 AS col0, ( - 75 ) AS col0 +---- +-75 +11 query I rowsort label-7468 SELECT + 12 * - 88 + 7 / - 90 * 34 AS col0 @@ -39572,8 +40039,11 @@ SELECT - ( 86 ) * + + 46 * 57 - + 34, 68 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-78\)\) \+ \(\- Int64\(86\)\) AS col1" at position 0 and "Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 78 + - + 86 AS col1, - 58 AS col1 +---- +-58 +-8 query I rowsort label-7525 SELECT + COUNT ( * ) - - 1 + 51 @@ -40133,8 +40603,11 @@ SELECT - MIN ( 88 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - 2052 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) AS col2" at position 0 and "Int64\(36\) \* Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 6 AS col2, + 36 * 57 AS col2 +---- +-6 +2052 query I rowsort label-7632 SELECT ALL - COUNT ( * ) * + - 59 * 58 + + - 43 @@ -40273,8 +40746,11 @@ SELECT - 23 + 48 * 72 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2365 # Datafusion - Expected - 118 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* Int64\(\-44\) \+ Int64\(55\) AS col0" at position 0 and "Int64\(93\) \+ Int64\(40\) \+ Int64\(18\) \- Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 * - 44 + 55 AS col0, 93 + 40 + + 18 - 33 col0 +---- +-2365 +118 query I rowsort label-7659 SELECT ALL - COUNT ( * ) * - 75 / - - COUNT ( * ) @@ -41051,8 +41527,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) + + 90 col2, + 77 + - 79 col2 +---- +-2 +91 query I rowsort SELECT DISTINCT + + 96 col0 @@ -41067,8 +41546,11 @@ SELECT - MAX ( ALL - 68 ) / + 78 + - 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col0" at position 0 and "Int64\(\-47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 col0, - 47 AS col0 +---- +-47 +32 query I rowsort SELECT + - 74 + 93 AS col2 @@ -41733,8 +42215,11 @@ SELECT ALL + COALESCE ( + 43, 56 ), 26 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \* Int64\(\-80\) \+ Int64\(12\) \+ \(\- CAST\(NULL AS Int32\)\) \+ CAST\(NULL AS Int32\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 41 * - 80 + + 12 + - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) AS col2 +---- +NULL +NULL query II rowsort label-7937 SELECT ALL + NULLIF ( - 75, + CAST ( + 2 AS INTEGER ) ) * + - MIN ( ALL 36 ) * - COUNT ( * ) - + + 83, - 79 AS col1 @@ -42082,8 +42567,11 @@ 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\(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\. +query II valuesort SELECT + 45 * - NULLIF ( - COUNT ( * ), + 91 ) * ( + + ( - + 55 ) ) - + 71 AS col0, 98 AS col0 +---- +-2546 +98 query I rowsort label-8004 SELECT + 45 * + - CAST ( NULL AS INTEGER ) + + + 75 AS col2 @@ -42435,8 +42923,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, + 61 AS col2 +---- +-1 +61 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -42454,8 +42945,11 @@ SELECT - 94 * 62 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\(94\) AS col1" at position 0 and "nullif\(sum\(Int64\(7\)\), \(\- Int64\(55\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 94 AS col1, NULLIF ( + SUM ( ALL + 7 ), - + 55 ) AS col1 +---- +7 +94 query I rowsort SELECT + 38 + + 40 @@ -42844,8 +43338,11 @@ SELECT ALL 94, + 84 * COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 95 AS col2, COUNT ( * ) AS col2 +---- +-95 +1 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -43221,8 +43718,11 @@ SELECT 15 - - + 31 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "Int64\(21\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 58 AS col0, 21 AS col0 +---- +21 +58 query II rowsort label-8219 SELECT 7, CASE - + 15 WHEN - 37 THEN 96 / - - COUNT ( * ) WHEN + 2 THEN NULL END + + COUNT ( * ) * - 57 * - 61 - + COUNT ( * ) * 44 * 48 AS col1 @@ -43960,8 +44460,11 @@ SELECT ALL ( + - 22 ) * - 66 + + 11 + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col2" at position 0 and "Int64\(\-65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 94 col2, - 65 AS col2 +---- +-65 +-94 query I rowsort label-8360 SELECT + + ( MIN ( + + 72 ) ) + - + 38 AS col0 @@ -44002,8 +44505,11 @@ SELECT - - 13 / - ( + ( - 47 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 1386 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-49\)\) AS col0" at position 0 and "Int64\(22\) \* Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 49 AS col0, 22 * + + 63 AS col0 +---- +1386 +49 query I rowsort SELECT ALL - 58 * 73 AS col0 @@ -44024,8 +44530,11 @@ SELECT - 73 + 97 * 80, 57 AS col2 # 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\(\-1\) AS col0" at position 0 and "Int64\(\-16\) \+ Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 1 AS col0, - 16 + + 61 AS col0 +---- +-1 +45 query I rowsort SELECT ALL + 66 + + 60 @@ -44237,8 +44746,11 @@ SELECT DISTINCT - MIN ( + 86 ) + 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(16\) AS Int32\)\) / Int64\(76\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( + + 16 AS INTEGER ) / + 76 col0, COUNT ( * ) AS col0 +---- +0 +1 query I rowsort SELECT ALL + 60 + + - 18 col0 @@ -44258,8 +44770,11 @@ SELECT ALL - ( - + 97 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -123 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col0" at position 0 and "max\(Int64\(\-41\)\) \* Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 74 AS col0, MAX ( + ( - 41 ) ) * 3 AS col0 +---- +-123 +74 query I rowsort SELECT + 28 + - 86 AS col2 @@ -44291,8 +44806,11 @@ SELECT - 58, 47 * - 2 * - 65 * 67 + - 57 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -140 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(51\), Int64\(\-82\), Int64\(\-5\)\)\) \- Int64\(89\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + COALESCE ( + + 51, - 82, - 5 ) ) - + 89 AS col2, 55 AS col2 +---- +-140 +55 query II rowsort label-8424 SELECT ALL 52 * - COALESCE ( SUM ( DISTINCT 44 ), + 86, + 31 ), COUNT ( * ) AS col1 @@ -44410,8 +44928,11 @@ SELECT DISTINCT + + 48 + + COUNT ( * ) * - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 4860 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "nullif\(Int64\(90\), \(\- Int64\(\-99\)\)\) \* Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 88 AS col1, NULLIF ( 90, - - 99 ) * 54 AS col1 +---- +4860 +88 query II rowsort label-8446 SELECT ALL - CAST ( NULL AS INTEGER ) + + 5 + - MAX ( + 65 ) * - 35 + + 56 AS col2, 14 col0 @@ -44734,8 +45255,11 @@ SELECT + CASE + ( - - 95 ) WHEN - - 7 THEN NULL WHEN - - COUNT ( * ) + + 58 THEN # 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 Int64\(64\) WHEN Int64\(44\) THEN Int64\(72\) WHEN Int64\(\-16\) / Int64\(49\) THEN \(\- Int64\(27\)\) \* \(\- Int64\(\-57\)\) END AS col1" at position 0 and "Int64\(57\) / Int64\(\-24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + CASE 64 WHEN + 44 THEN 72 WHEN - 16 / 49 THEN - + 27 * - - 57 END AS col1, 57 / + - 24 AS col1 +---- +-2 +NULL query I rowsort label-8508 SELECT + + 23 * CAST ( NULL AS INTEGER ) @@ -44866,8 +45390,11 @@ SELECT DISTINCT - 29 * ( - 90 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \+ CASE Int64\(87\) WHEN \(\- Int64\(\-55\)\) THEN \(\- coalesce\(Int64\(\-41\), Int64\(95\), Int64\(80\)\)\) ELSE Int64\(23\) END AS col0" at position 0 and "Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 74 + CASE + 87 WHEN - - 55 THEN + - COALESCE ( ( - 41 ), + 95, 80 ) ELSE + + 23 END AS col0, 80 AS col0 +---- +80 +97 query II rowsort label-8533 SELECT 65 + + 84 AS col1, COUNT ( * ) / - + 67 @@ -44883,8 +45410,11 @@ SELECT ALL + 2 + 54 + + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 203 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) \* \(\- Int64\(7\)\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 29 * - + 7 AS col2, 2 col2 +---- +2 +203 query I rowsort label-8536 SELECT + 70 + + MAX ( DISTINCT + + 71 ) @@ -46511,8 +47041,11 @@ SELECT ALL MAX ( + 2 ) + - 37 * - 44 * - + 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 9711 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "Int64\(84\) \+ Int64\(83\) \* Int64\(24\) \+ Int64\(83\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(92\) \* count\(Int64\(1\)\) AS count\(\*\) \- count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 AS col1, 84 + 83 * 24 + 83 * + + COUNT ( * ) * + + 92 * COUNT ( * ) - COUNT ( * ) col1 +---- +82 +9711 query II rowsort label-8851 SELECT COUNT ( * ) + - 11 * 94 + 98 AS col0, 57 AS col1 @@ -46614,8 +47147,11 @@ SELECT ALL 90 * + 33 + + + COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 96 AS col2, 70 AS col2 +---- +70 +96 query II rowsort label-8871 SELECT - + 12 * + MAX ( + 32 ) AS col0, 89 @@ -46723,8 +47259,11 @@ SELECT DISTINCT ( + 14 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 106 # Datafusion - Expected - 75660 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \- \(\- Int64\(20\)\) AS col0" at position 0 and "Int64\(72\) / \(\- coalesce\(Int64\(73\), Int64\(80\)\)\) \- Int64\(\-97\) \* Int64\(20\) \* Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 86 - - + 20 AS col0, 72 / - + COALESCE ( + + 73, 80 ) - - 97 * + + 20 * + + 39 AS col0 +---- +106 +75660 query I rowsort label-8892 SELECT + 79 * COUNT ( * ) col2 @@ -46868,8 +47407,11 @@ SELECT ALL - 63 * + SUM ( 27 ) col1, + 36 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 132 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ Int64\(59\) \+ Int64\(0\) \+ Int64\(36\) AS col2" at position 0 and "CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 + + ( + 59 ) + + 0 + 36 AS col2, CAST ( - - COUNT ( * ) AS INTEGER ) AS col2 +---- +1 +132 query I rowsort label-8920 SELECT 44 * - MAX ( DISTINCT - - 30 ) @@ -47385,8 +47927,11 @@ SELECT 14 * 86 + - + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(39\), Int64\(40\)\) AS col2" at position 0 and "Int64\(71\) \- Int64\(\-18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( 39, 40 ) AS col2, + 71 - - 18 col2 +---- +39 +89 query I rowsort SELECT NULLIF ( 90, - - 27 + - + 64 ) @@ -47780,8 +48325,11 @@ SELECT 52 * - + 78 * + + 32 * 79 + - 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, 27 AS col2 +---- +1 +27 query I rowsort label-9095 SELECT NULLIF ( 59, - - 65 + + 94 + + 44 ) * - + COUNT ( * ) * + 41 @@ -48024,8 +48572,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(20\) AS col1" at position 0 and "nullif\(Int64\(\-32\), \(\- nullif\(Int64\(\-56\), Int64\(92\)\)\) \* Int64\(80\) \* Int64\(82\) \+ sum\(Int64\(17\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + CAST ( NULL AS INTEGER ) + + 20 AS col1, ( + + NULLIF ( - 32, - NULLIF ( - 56, 92 ) * + 80 * + + 82 + + SUM ( 17 ) ) ) AS col1 +---- +-32 +NULL query I rowsort label-9140 SELECT - 7 / 90 @@ -48035,8 +48586,11 @@ SELECT - 7 / 90 # 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 "Int64\(40\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 40 AS col1, 81 col1 +---- +40 +81 query I rowsort label-9142 SELECT DISTINCT + 11 + CAST ( NULL AS INTEGER ) + - 27 @@ -48296,8 +48850,11 @@ SELECT ALL + + 63 + - + 84 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(75\)\) AS col0" at position 0 and "Int64\(\-87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 75 AS col0, - 87 AS col0 +---- +-75 +-87 query II rowsort label-9193 SELECT ALL - COALESCE ( + 12, - - 26 - + SUM ( 17 ) - - 73 ) + + ( + 31 ) AS col0, 50 * + + NULLIF ( + 77, + 61 + - ( + 38 ) ) AS col2 @@ -48579,8 +49136,11 @@ SELECT - ( COALESCE ( + 91, 38 + - + 20 - - ( + - 95 ) * 11 / - 38 + - + 90 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 52 # Datafusion - Expected - 7252 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ Int64\(18\) \+ Int64\(\-3\) AS col0" at position 0 and "Int64\(74\) \* sum\(Int64\(98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 37 + 18 + - 3 AS col0, 74 * SUM ( + 98 ) AS col0 +---- +52 +7252 query I rowsort label-9247 SELECT + + 36 * - - 75 + 45 + 69 + + 46 * + - COUNT ( * ) AS col0 @@ -48692,8 +49252,11 @@ SELECT + CAST ( + - 7 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1957 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(\-48\) \+ min\(Int64\(59\)\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 * - 48 + MIN ( + 59 ) AS col0, + 49 AS col0 +---- +-1957 +49 query II rowsort label-9268 SELECT + CAST ( NULL AS INTEGER ) col0, ( ( - - 52 ) ) @@ -48821,14 +49384,20 @@ 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\(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\. +query II valuesort SELECT DISTINCT + - COUNT ( * ) * 88 AS col0, 49 AS col0 +---- +-88 +49 # Datafusion - Datafusion expected results: # Datafusion - Expected - -793 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \* Int64\(\-61\) AS col1" at position 0 and "Int64\(63\) \+ Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 * - 61 AS col1, 63 + + ( + 0 ) AS col1 +---- +-793 +63 query I rowsort label-9293 SELECT 44 + - COUNT ( * ) - - - 81 * 34 + + 98 @@ -48838,8 +49407,11 @@ SELECT 44 + - COUNT ( * ) - - - 81 * 34 + + 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col2" at position 0 and "Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 88 AS col2, + ( 51 ) AS col2 +---- +51 +88 query I rowsort label-9295 SELECT + 38 * - COALESCE ( - - 49, - + NULLIF ( + + 51, + + 48 * + + 25 * + 28 ) * MAX ( ALL - 26 ) ) col2 @@ -48889,8 +49461,11 @@ SELECT DISTINCT - - 36 AS col2, - 18 * 47 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 83 # Datafusion - Expected - 3650 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) AS col0" at position 0 and "Int64\(\-50\) \* Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 83 AS col0, - 50 * + - 73 AS col0 +---- +3650 +83 query II rowsort label-9304 SELECT ALL - COUNT ( * ) AS col0, - 41 @@ -48949,8 +49524,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 - - + COUNT ( * ) AS col0, - 6 col0 +---- +-6 +82 query I rowsort label-9315 SELECT ALL 75 / 86 AS col1 @@ -48960,8 +49538,11 @@ SELECT ALL 75 / 86 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ \(\- Int64\(39\)\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 92 + - + 39 AS col0, 66 AS col0 +---- +53 +66 query I rowsort label-9317 SELECT ALL + COUNT ( * ) * + + 88 AS col2 @@ -48992,8 +49573,11 @@ SELECT ALL + 3 * + 62 * - - ( 99 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* Int64\(\-15\) \+ nullif\(Int64\(64\), Int64\(\-33\)\) \+ Int64\(\-21\) \* Int64\(88\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) * - 15 + NULLIF ( 64, + - 33 ) + - 21 * + 88 AS col0, COUNT ( * ) + + 32 AS col0 +---- +33 +NULL query II rowsort label-9323 SELECT 26 - + COUNT ( + + 72 ) / + 18 + + + 12, 34 + + + 3 + + 11 AS col0 @@ -49070,8 +49654,12 @@ SELECT ALL - - 57 * + 13 AS col2 # Datafusion - Expected - -161 # Datafusion - Expected - 86 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col1" at position 1 and "Int64\(\-70\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - + 7 * + 23, + 86 AS col1, - 70 AS col1 +---- +-161 +-70 +86 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -49201,8 +49789,11 @@ 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\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-92\)\) \* Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 3 col0, - 65 + - 30 + + ( - 86 ) + + - COUNT ( * ) + - - 92 * 22 AS col0 +---- +1842 +3 query I rowsort label-9360 SELECT ALL COUNT ( * ) / - 98 @@ -49801,8 +50392,11 @@ SELECT ALL + SUM ( ALL + + ( - 22 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 309615 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(15\) \+ Int64\(\-40\) \* Int64\(\-90\) \* Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) AS col0, 15 + + - 40 * - 90 * + 86 AS col0 +---- +309615 +NULL query I rowsort SELECT DISTINCT - 66 - + 98 AS col1 @@ -49914,8 +50508,11 @@ SELECT ALL MIN ( ALL 93 ) * + 80 + - 54 / 24, 31 * + SUM ( + + 20 ) * - - 70 - 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(Int64\(31\)\) \* \(\- CAST\(NULL AS Float64\)\) \* Int64\(84\) \+ Int64\(\-5\) AS col2" at position 0 and "Int64\(\-74\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL AVG ( 31 ) * - CAST ( NULL AS FLOAT8 ) * + 84 + - 5 AS col2, - 74 / COUNT ( * ) AS col2 +---- +-74 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -49943,8 +50540,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + ( + + 6 ) + + ( - 64 ) * 52 * - 62 + - COUNT ( * ) AS col0, + 5 AS col0 +---- +206329 +5 query II rowsort label-9501 SELECT ALL + COUNT ( + + 76 ), 14 / + 34 AS col1 @@ -50100,8 +50700,11 @@ SELECT ALL 97 / - 34 + - - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col0, 93 AS col0 +---- +93 +NULL query I rowsort SELECT + 43 * - 87 * + 88 @@ -50425,8 +51028,11 @@ SELECT 85 + + 15 * - COUNT ( * ) + - 44 + - 97 * 96 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4872 # Datafusion - Expected - 624 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) \* \(\- Int64\(56\)\) AS col0" at position 0 and "count\(Int64\(32\)\) \* Int64\(\-52\) \* Int64\(\-12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - 87 ) * - + 56 AS col0, COUNT ( 32 ) * + - 52 * - 12 AS col0 +---- +4872 +624 query I rowsort label-9592 SELECT DISTINCT + - MAX ( ALL + 59 ) AS col2 @@ -50550,8 +51156,12 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 78 / + 68 AS col0, COUNT ( * ) + + + 73 AS col0, - - COUNT ( * ) - - 31 AS col2 +---- +1 +32 +74 query II rowsort label-9615 SELECT + - SUM ( DISTINCT 53 ) + 1 / 41 AS col0, 80 @@ -50611,8 +51221,11 @@ SELECT ALL + ( ( + 34 ) ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - -1296 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) / Int64\(9\) \- Int64\(\-55\) \+ Int64\(\-61\) \- Int64\(13\) AS col1" at position 0 and "nullif\(Int64\(\-18\), \(\- CAST\(Int64\(\-77\) AS Int32\)\)\) \* \(\- \(\- nullif\(Int64\(72\), min\(Int64\(\-41\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 40 / 9 - ( - 55 ) + - 61 - + 13 AS col1, + NULLIF ( - 18, - CAST ( + ( - 77 ) AS INTEGER ) ) * - - NULLIF ( 72, + MIN ( - 41 ) ) AS col1 +---- +-1296 +-15 query II rowsort label-9626 SELECT ALL - CAST ( NULL AS INTEGER ) * - - 76 + ( 39 ) AS col2, 70 * + 40 + + 79 AS col1 @@ -50633,8 +51246,11 @@ 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\(1\)\) AS count\(\*\)\), Int64\(61\) / Int64\(75\)\)\) \+ \(\- Int64\(\-36\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 30 col2, - NULLIF ( + - COUNT ( * ), + + 61 / 75 ) + - - 36 AS col2 +---- +30 +37 query I rowsort SELECT ALL - + 65 * + ( + 45 ) @@ -51304,8 +51920,12 @@ SELECT ALL COUNT ( DISTINCT - - 60 ) AS col0 # Datafusion - Expected - -5071248 # Datafusion - Expected - 79 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(\-27\)\) AS Int32\)\) \* Int64\(86\) \* \(\- Int64\(\-26\)\) \* Int64\(84\) AS col2" at position 0 and "Int64\(\-23\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - CAST ( - - 27 AS INTEGER ) * + 86 * - - 26 * 84 AS col2, + 79, - 23 AS col2 +---- +-23 +-5071248 +79 query I rowsort label-9757 SELECT - - 67 * 75 / + 71 + + COUNT ( * ) - + 74 AS col0 @@ -52184,8 +52804,11 @@ SELECT 59 * + 97 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col2" at position 0 and "Int64\(\-10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 56 AS col2, - 10 AS col2 +---- +-10 +-56 query I rowsort label-9925 SELECT COALESCE ( 39, - COUNT ( * ) * - + COUNT ( * ) + 83 ) + - - 32 diff --git a/data/sqlite/random/expr/slt_good_91.slt b/data/sqlite/random/expr/slt_good_91.slt index 11e421f..f3565bb 100644 --- a/data/sqlite/random/expr/slt_good_91.slt +++ b/data/sqlite/random/expr/slt_good_91.slt @@ -220,8 +220,11 @@ SELECT ALL - COUNT ( * ) + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(26\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) + 26 AS col1, CAST ( NULL AS INTEGER ) col1 +---- +NULL +NULL query I rowsort label-35 SELECT ALL + 63 * + MIN ( 81 ) * 43 col1 @@ -291,8 +294,11 @@ SELECT ( COALESCE ( ( + COUNT ( * ) ), + 2, + 84 ) ) * + 89, - 3 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5985 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(7\) AS Int32\) \* \(\- Int64\(\-57\)\) \* Int64\(\-15\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( 7 AS INTEGER ) * - - 57 * - 15 AS col0, 23 AS col0 +---- +-5985 +23 query I rowsort label-48 SELECT 42 + COUNT ( * ) + 1 + COUNT ( * ) / 22 @@ -544,8 +550,11 @@ SELECT ALL 23 * 17 + + + 20 + - - ( + 34 ) * ( + + MIN ( ALL 8 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(75\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 90 col2, - CAST ( NULL AS INTEGER ) * - + ( + + 75 ) AS col2 +---- +90 +NULL query III rowsort SELECT ALL + 3, 38 AS col1, + 92 AS col0 @@ -725,8 +734,11 @@ SELECT - 44 + - - 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) / Int64\(\-36\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \+ Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 / - 36 AS col2, - ( CAST ( NULL AS INTEGER ) ) + 74 AS col2 +---- +0 +NULL query I rowsort label-130 SELECT ALL - 19 / - 11 - - + 45 + - 92 AS col0 @@ -1236,8 +1248,11 @@ SELECT - 44 + COUNT ( ALL + + 77 ) + 29 / + + 63 * - - 59 - 45 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 AS col0, 70 AS col0 +---- +17 +70 query I rowsort SELECT + 26 * 62 AS col0 @@ -2036,8 +2051,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(35\) \* Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 37 * 21 AS col0, COUNT ( * ) - + 35 * + 1 AS col0 +---- +-34 +-777 query I rowsort SELECT NULLIF ( - + 43, + 95 ) AS col1 @@ -2304,8 +2322,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 76 + - ( - 6 ) AS col2, + COUNT ( * ) * - + COUNT ( * ) col2 +---- +-1 +-70 query I rowsort SELECT DISTINCT + - 47 + + 76 + + 62 @@ -2339,8 +2360,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -464 # Datafusion - Expected - -3922 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \- Int64\(19\) \* Int64\(25\) AS col0" at position 0 and "\(\- nullif\(Int64\(53\), Int64\(45\)\)\) \* Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 - 19 * + 25 AS col0, - NULLIF ( 53, 45 ) * 74 AS col0 +---- +-3922 +-464 query I rowsort label-441 SELECT - COUNT ( * ) + - 93 * 93 AS col2 @@ -2429,8 +2453,11 @@ SELECT 57 / + 27 AS col0, + 55 # 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 col1" at position 0 and "Int64\(\-11\) / Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 41 AS col1, - 11 / ( + 88 ) col1 +---- +-41 +0 query I rowsort label-458 SELECT MIN ( ALL - + 28 ) AS col0 @@ -2956,8 +2983,11 @@ SELECT ( + 15 ) + - 72 + - 61 col0, + 26 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 52 -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 "\(\- coalesce\(Int64\(13\), Int64\(39\)\)\) \* Int64\(\-4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 * - - 4 AS col2, - COALESCE ( + 13, + 39 ) * - 4 AS col2 +---- +52 +8 query I rowsort label-560 SELECT MIN ( DISTINCT + 21 ) + + 21 @@ -3104,8 +3134,11 @@ SELECT ALL - 67 + 47 * - + 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 546761 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \+ Int64\(\-93\) \+ \(\- Int64\(57\)\) \* Int64\(69\) \* Int64\(71\) / Int64\(24\) \* Int64\(\-47\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 9 + - 93 + - + 57 * 69 * 71 / 24 * - 47 AS col2, + 75 AS col2 +---- +546761 +75 query I rowsort SELECT ALL 50 + - 11 AS col0 @@ -3245,8 +3278,11 @@ SELECT - COUNT ( * ), 22 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / sum\(DISTINCT \(\- \(\- Int64\(81\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 43 + + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) / + SUM ( DISTINCT - - ( + + 81 ) ) AS col1 +---- +-42 +NULL query I rowsort SELECT ALL + 88 + + 61 - + ( + 50 ) AS col2 @@ -3501,8 +3537,12 @@ 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\(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\. +query III valuesort SELECT 29 * + + 43, + NULLIF ( + + 46, - 94 ) AS col0, + COUNT ( * ) / - 24 * 74 + 24 + 3 col0 +---- +1247 +27 +46 query I rowsort label-663 SELECT DISTINCT + 67 / + 70 @@ -4077,8 +4117,11 @@ SELECT ALL - CASE 31 WHEN COALESCE ( - + 40, NULLIF ( + 3, + 79 * - + NULLIF ( 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1584 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(11\)\) \* \(\- Int64\(18\)\) \* Int64\(\-8\) AS col1" at position 0 and "Int64\(58\) \+ Int64\(\-28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 11 * - + 18 * - 8 AS col1, + 58 + + - 28 AS col1 +---- +-1584 +30 query I rowsort SELECT ALL + 58 - - ( - + 79 ) AS col1 @@ -4196,14 +4239,20 @@ SELECT ALL ( + 70 ) + + MAX ( ALL - 42 ) - + COUNT ( * ) / COUNT ( * ) * + - 66 # 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 "Int64\(1\) AS col2" at position 0 and "Int64\(3\) \* Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 AS col2, 3 * 60 AS col2 +---- +1 +180 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col2" at position 0 and "Int64\(\-94\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 0 col2, - 94 * + CAST ( NULL AS INTEGER ) AS col2 +---- +0 +NULL query I rowsort SELECT 36 * ( - 99 ) @@ -4318,8 +4367,11 @@ SELECT + 47 * + ( - + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 146 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(73\) AS Int32\)\) \* max\(DISTINCT Int64\(\-2\)\) AS col0" at position 0 and "Int64\(56\) / Int64\(64\) \+ count\(Int64\(4\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( 73 AS INTEGER ) * MAX ( DISTINCT - 2 ) col0, 56 / + 64 + + + COUNT ( + 4 ) AS col0 +---- +1 +146 query II rowsort SELECT - - 48 AS col2, 52 AS col1 @@ -4360,8 +4412,11 @@ SELECT ALL + MAX ( - 42 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-7\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) * ( - 7 ) * + + COUNT ( * ) AS col2, - 84 AS col2 +---- +-84 +7 query I rowsort label-827 SELECT ALL 80 + + - COUNT ( * ) * + 96 @@ -4521,8 +4576,11 @@ SELECT ALL + 15 * - + 88 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(10\) AS Int32\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( + 10 AS INTEGER ) AS col2, 12 AS col2 +---- +10 +12 query I rowsort SELECT ALL - 60 + + - 92 AS col0 @@ -4797,8 +4855,11 @@ SELECT ALL - ( + 50 ) + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(10\)\) AS col2" at position 0 and "max\(DISTINCT Int64\(21\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 10 col2, + MAX ( DISTINCT 21 ) col2 +---- +-10 +21 query I rowsort SELECT ALL - 68 + + 40 AS col0 @@ -4992,8 +5053,11 @@ SELECT ALL - - 46 - 25 + - 60 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 32 AS col1, 7 AS col1 +---- +32 +7 query I rowsort SELECT COALESCE ( - 28, NULLIF ( + 18, 48 ) ) + + 85 col1 @@ -5067,8 +5131,11 @@ SELECT + 17 AS col0, - 32 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col0" at position 0 and "Int64\(76\) \+ Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 31 col0, 76 + + 17 AS col0 +---- +-31 +93 query I rowsort SELECT ALL - NULLIF ( + - 81, - 68 * - 21 + + - ( - 52 ) ) AS col2 @@ -5451,8 +5518,12 @@ 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\(1\)\) AS count\(\*\) / Int64\(71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-3 +0 +NULL query I rowsort label-1033 SELECT + - 67 + - 99 * CAST ( + COUNT ( * ) AS INTEGER ) @@ -5674,8 +5745,11 @@ SELECT - 37 / + ( + 98 ) + + - MAX ( 59 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-99\)\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 99 AS col2, 87 AS col2 +---- +87 +99 query I rowsort label-1075 SELECT - 73 + + MAX ( DISTINCT + - 49 ) AS col0 @@ -5973,8 +6047,11 @@ SELECT NULLIF ( - 59, + 28 - - + 14 * 18 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "Int64\(\-93\) / \(\- Int64\(12\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 71 AS col2, - 93 / - + 12 AS col2 +---- +7 +71 query I rowsort label-1133 SELECT DISTINCT - CASE - + 18 WHEN + 12 * - 52 * + 72 THEN - COUNT ( 7 ) WHEN 37 THEN NULL END @@ -6045,8 +6122,11 @@ SELECT ALL + ( + + 21 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 73 ) AS col2, + COUNT ( * ) AS col2 +---- +-73 +1 query I rowsort label-1147 SELECT NULLIF ( - 89, + 52 ) / - 46 + 6 AS col0 @@ -6066,8 +6146,11 @@ SELECT DISTINCT 12 * + 12 + - SUM ( - 0 ) * - + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 127 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(DISTINCT Int64\(92\)\)\) \* \(\- Int64\(65\)\) \- \(\- Int64\(62\)\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( DISTINCT + 92 ) * - + 65 - - + 62 AS col2, + 78 col2 +---- +127 +78 query I rowsort label-1151 SELECT - COUNT ( - - 63 ) * 53 AS col0 @@ -6124,8 +6207,11 @@ SELECT SUM ( + - 86 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col0" at position 0 and "Int64\(57\) \- \(\- CASE Int64\(41\) WHEN Int64\(\-95\) \- Int64\(\-18\) THEN \(\- Int64\(93\)\) ELSE NULL END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 66 AS col0, 57 - - CASE 41 WHEN - 95 - - 18 THEN - + 93 ELSE NULL END AS col0 +---- +66 +NULL query I rowsort SELECT DISTINCT ( - 32 ) col0 @@ -6150,8 +6236,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 77 AS col0, + COUNT ( * ) AS col0 +---- +1 +77 query I rowsort label-1167 SELECT + CAST ( NULL AS INTEGER ) + + 82 + - ( - 63 ) AS col0 @@ -6951,8 +7040,11 @@ SELECT - 37, 57 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 6052677 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "Int64\(32\) \* Int64\(71\) \* Int64\(\-37\) \* Int64\(\-72\) \+ Int64\(89\) \- Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 AS col2, 32 * ( 71 ) * - 37 * - 72 + + + 89 - + 20 AS col2 +---- +6052677 +94 query I rowsort label-1319 SELECT ALL COUNT ( * ) + + ( 84 ) @@ -6963,8 +7055,12 @@ SELECT ALL COUNT ( * ) + + ( 84 ) # Datafusion - Expected - 99 # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "CAST\(NULL AS Float64\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort SELECT 99 AS col2, 91 AS col0, + CAST ( NULL AS FLOAT8 ) AS col2 +---- +91 +99 +NULL query I rowsort SELECT 27 * 12 * + 80 * 66 @@ -7167,8 +7263,11 @@ SELECT 7 + + COUNT ( * ) - - 37 + + 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(DISTINCT Int64\(65\)\)\) AS col2" at position 0 and "Int64\(26\) / Int64\(\-77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( DISTINCT 65 ) AS col2, 26 / - 77 AS col2 +---- +-65 +0 query I rowsort label-1358 SELECT 17 + 9 / + ( + 93 ) col1 @@ -7457,8 +7556,11 @@ SELECT ALL + MAX ( DISTINCT - - 83 ) # 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 "coalesce\(Int64\(\-57\), \(\- Int64\(39\)\) \- Int64\(\-94\), Int64\(76\)\) AS col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( - 57, - + 39 - - 94, 76 ) AS col1, + 3 AS col1 +---- +-57 +3 query I rowsort SELECT ALL - 89 * 84 AS col1 @@ -7476,8 +7578,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1475 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) \* Int64\(59\) AS col0" at position 0 and "Int64\(\-29\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-42\) \* Int64\(51\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 25 * 59 AS col0, - 29 * + COUNT ( * ) + - 42 * + 51 + - CAST ( NULL AS INTEGER ) AS col0 +---- +-1475 +NULL query I rowsort label-1416 SELECT - MIN ( DISTINCT 27 ) @@ -7827,8 +7932,11 @@ 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\(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\. +query II valuesort 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 +---- +77 +NULL query I rowsort label-1484 SELECT DISTINCT 82 + - + 67 * - + 45 + - COUNT ( * ) AS col0 @@ -8018,8 +8126,11 @@ SELECT + 90 * + + 3 + - 2 col2, + 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4654 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) \* \(\- Int64\(\-80\)\) \+ 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 II valuesort SELECT DISTINCT ( - 57 ) * - ( - 80 ) + - 94 col1, - 71 AS col1 +---- +-4654 +-71 query II rowsort SELECT ALL CASE + 57 WHEN + 59 - AVG ( 49 ) THEN NULL ELSE + ( - + 82 ) + + COALESCE ( - 46, + - 96 * + - 62 ) END * + ( 75 ) AS col0, 17 col1 @@ -8433,8 +8544,12 @@ SELECT 74 + 92 # Datafusion - Expected - -275 # Datafusion - Expected - 4 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col1" at position 1 and "Int64\(32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - - ( + 56 ) * - + 4 + - 51 AS col0, 4 AS col1, + + 32 col1 +---- +-275 +32 +4 query I rowsort label-1600 SELECT 66 * 57 * - ( + COUNT ( * ) ) AS col2 @@ -8894,8 +9009,11 @@ 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\(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\. +query II valuesort 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 +---- +88 +NULL query I rowsort label-1688 SELECT DISTINCT + MIN ( ALL + 30 ) * - MAX ( + + 94 ) + - 7 AS col1 @@ -9017,8 +9135,11 @@ 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\(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\. +query IR valuesort 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 +---- +2274 +NULL query I rowsort SELECT + 26 * + - 33 * 83 + - 55 AS col1 @@ -9033,8 +9154,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 63 ) AS col2, + 5 - - + MIN ( 77 ) + MAX ( + 13 ) * 34 + - ( + NULLIF ( + - 93, + + COUNT ( * ) ) ) AS col2 +---- +-63 +617 query I rowsort label-1715 SELECT 65 + + + 45 + + + 18 + - + COUNT ( DISTINCT + 42 ) + + 22 AS col1 @@ -9097,8 +9221,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col0" at position 0 and "Int64\(14\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 44 AS col0, + 14 col0 +---- +-44 +14 query I rowsort label-1726 SELECT CAST ( 96 AS INTEGER ) + + 29 col0 @@ -9200,8 +9327,11 @@ SELECT - + 43 * - - 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -2156 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col2" at position 0 and "Int64\(98\) \* \(\- \(\- Int64\(\-22\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 20 AS col2, + 98 * - + ( - - 22 ) AS col2 +---- +-2156 +20 query I rowsort label-1744 SELECT - - 68 / - 45 @@ -9285,8 +9415,11 @@ SELECT + 94 * - 13 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -136 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* \(\- Int64\(8\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 17 * - + 8 AS col0, + COUNT ( * ) + + COUNT ( * ) AS col0 +---- +-136 +2 query I rowsort SELECT - ( 93 ) + + 60 - + - 16 AS col2 @@ -9306,8 +9439,11 @@ SELECT DISTINCT - 77 * + - 84 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - 63 ) AS col0, 94 AS col0 +---- +-63 +94 query I rowsort label-1763 SELECT + - COUNT ( * ) * 65 * 61 @@ -9679,8 +9815,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) col2, 93 col2 +---- +-1 +93 query II rowsort label-1834 SELECT - CAST ( NULL AS INTEGER ) AS col1, 45 * - 35 * COUNT ( * ) col2 @@ -10004,8 +10143,11 @@ SELECT ALL - 53 + + - SUM ( + 60 ) - - 8 * 54 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 "CASE Int64\(36\) WHEN \(\- Int64\(79\)\) \+ Int64\(19\) THEN NULL WHEN Int64\(35\) \+ Int64\(72\) \* Int64\(21\) THEN Int64\(33\) END AS col2" at position 0 and "Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CASE 36 WHEN - + 79 + + + 19 THEN NULL WHEN 35 + + 72 * + 21 THEN + 33 END AS col2, - 38 col2 +---- +-38 +NULL query I rowsort label-1895 SELECT + - 15 - 23 + - - 18 + + + COUNT ( * ) @@ -10216,8 +10358,11 @@ SELECT ALL - 23 * 22 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-54\), Int64\(92\) \+ Int64\(\-17\) \* Int64\(92\) / Int64\(\-14\)\)\) AS col1" at position 0 and "Int64\(\-2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( + - 54, + 92 + + ( - 17 ) * 92 / + - 14 ) AS col1, - 2 AS col1 +---- +-2 +54 query I rowsort label-1935 SELECT ALL - COALESCE ( + 58, + 74 / - 1 ) * + 87 * - - CAST ( NULL AS INTEGER ) * - SUM ( 20 ) + - + 29 + + 27 * - - 94 AS col1 @@ -11411,8 +11556,11 @@ SELECT DISTINCT ( - + NULLIF ( - + 95, + 66 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col2" at position 0 and "Int64\(56\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 49 col2, 56 AS col2 +---- +49 +56 query I rowsort label-2169 SELECT + - 71 + - - COUNT ( * ) * - 7 AS col1 @@ -11760,8 +11908,11 @@ 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\(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\. +query II valuesort SELECT - + 64 - COUNT ( * ) * 85 * 96 AS col2, + 81 + - 94 + - 93 + + 3 + 83 * 64 AS col2 +---- +-8224 +5209 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -12470,8 +12621,11 @@ SELECT DISTINCT 14 * 74 * 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - -171 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) \+ Int64\(\-75\) AS col1" at position 0 and "Int64\(29\) \+ Int64\(16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 96 + - 75 AS col1, + 29 + + + 16 AS col1 +---- +-171 +45 query I rowsort SELECT - ( - 71 ) col1 @@ -12680,8 +12834,12 @@ SELECT DISTINCT 14 * + ( 88 ) AS col0 # Datafusion - Expected - 4260 # Datafusion - Expected - -98 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-80\)\) \- Int64\(18\) AS col0" at position 1 and "Int64\(\-80\) \- Int64\(\-79\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 60 * 71, + SUM ( - 80 ) - + + 18 AS col0, - 80 - - 79 AS col0 +---- +-1 +-98 +4260 query I rowsort SELECT DISTINCT 92 * + 44 + 72 + - 67 col2 @@ -12775,8 +12933,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(48\) \* Int64\(\-67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + ( 66 ) AS col0, + COUNT ( * ) * + 48 * - 67 AS col0 +---- +-3216 +-66 query II rowsort label-2425 SELECT ALL - - ( - 25 ) + + CAST ( NULL AS INTEGER ) + - MIN ( + 11 ) + COUNT ( * ) / + 31 AS col2, - 49 - 24 AS col0 @@ -12955,8 +13116,11 @@ SELECT 57 + + 53 # 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 col2" at position 0 and "\(\- \(\- count\(Int64\(\-58\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 46 AS col2, - ( - + ( COUNT ( ALL - 58 ) ) ) col2 +---- +1 +46 query I rowsort label-2459 SELECT 37 * + - MAX ( ALL + 87 ) * 85 @@ -13100,8 +13264,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) \+ Int64\(58\) / Int64\(24\) \* Int64\(\-8\) AS col0" at position 0 and "coalesce\(Int64\(\-79\), Int64\(61\) / max\(\(\- CASE Int64\(98\) WHEN \(\- \(\- Int64\(\-54\)\)\) \* Int64\(28\) \- Int64\(\-88\) \* Int64\(73\) THEN NULL ELSE Int64\(52\) / Int64\(48\) END\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 29 + 58 / 24 * - 8 AS col0, + ( COALESCE ( - 79, 61 / + MAX ( - ( + CASE ( 98 ) WHEN - - ( - 54 ) * 28 - - 88 * 73 THEN NULL ELSE + 52 / + 48 END ) ) ) ) AS col0 +---- +-45 +-79 query I rowsort SELECT + 5 * 60 @@ -13127,8 +13294,11 @@ SELECT + 22 - + 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 AS col2, - 74 AS col2 +---- +-74 +96 query I rowsort SELECT + 98 + 89 AS col1 @@ -13325,8 +13495,12 @@ SELECT DISTINCT + 67 + - - CAST ( - 22 AS INTEGER ) # Datafusion - Expected - 110 # Datafusion - Expected - -37 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \+ Int64\(82\) AS col2" at position 0 and "\(\- nullif\(Int64\(57\), Int64\(55\)\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 28 + + 82 col2, - 37, + ( - NULLIF ( 57, + 55 ) ) AS col2 +---- +-37 +-57 +110 query I rowsort label-2528 SELECT + MAX ( DISTINCT ( + + 62 ) ) + - 43 AS col0 @@ -13362,8 +13536,11 @@ SELECT + 10 + - 12 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(\-45\)\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MAX ( DISTINCT - 45 ) AS col1, 79 AS col1 +---- +-45 +79 query I rowsort label-2535 SELECT + - CASE - ( - - 77 ) WHEN + 56 THEN COALESCE ( + + SUM ( - 79 ), + 47, ( + - 97 ) + - - 9 ) END * + - 99 @@ -13559,8 +13736,11 @@ 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\(1\)\) AS count\(\*\)\)\) \* Int64\(\-12\) \* Int64\(20\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 * - 1 * - - 9 AS col0, - 88 + 58 + - 42 + + NULLIF ( + 78, ( - COUNT ( * ) ) ) * - 12 * 20 AS col0 +---- +-18792 +-306 query I rowsort label-2573 SELECT + 77 + + - COUNT ( * ) - + 59 AS col2 @@ -13795,8 +13975,11 @@ SELECT MIN ( DISTINCT + 72 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 51 AS col2, + 65 AS col2 +---- +51 +65 query I rowsort label-2618 SELECT + - 8 * 46 * + CASE 17 WHEN COALESCE ( + 92, 73 ) + - 83 THEN - 42 END + - + MAX ( DISTINCT - 7 ) col0 @@ -13929,8 +14112,11 @@ SELECT DISTINCT + MAX ( - + 25 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) col2, + 73 AS col2 +---- +73 +NULL query II rowsort label-2644 SELECT ALL + NULLIF ( - 35, 47 ) * - 49 AS col1, - COUNT ( * ) * + 65 * - 47 + - 91 * + CAST ( - - 5 AS INTEGER ) @@ -14000,14 +14186,20 @@ SELECT - ( + - 97 ) + - - 31 # 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 col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 21 col2, 62 AS col2 +---- +21 +62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS 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 II valuesort SELECT ALL - - COUNT ( * ) col1, - 46 / + 70 col1 +---- +0 +1 query I rowsort label-2658 SELECT ALL NULLIF ( 40, - 37 ) * + MIN ( + 61 ) @@ -14621,8 +14813,11 @@ SELECT ALL + 4 + - 26 + + + 76 * 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "CAST\(Int64\(88\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 29 AS col1, CAST ( + 88 AS INTEGER ) AS col1 +---- +29 +88 query I rowsort SELECT 75 * + 0 @@ -14647,8 +14842,11 @@ SELECT DISTINCT + 14 * + 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(97\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- Int64\(16\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 97 AS col1, + CAST ( NULL AS INTEGER ) + - + 16 AS col1 +---- +-97 +NULL query I rowsort label-2782 SELECT DISTINCT 6 - - - 63 + - 42 + + 56 * + COUNT ( * ) + + - COUNT ( * ) col2 @@ -14749,8 +14947,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 57 AS col2, + 29 + 2 + 64 + 70 * - - ( 36 ) * - 5 - 82 + 25 * + 40 * 42 * 40 * - COUNT ( * ) AS col2 +---- +-1692587 +-57 query I rowsort SELECT 66 * + + 56 AS col2 @@ -14906,8 +15107,11 @@ SELECT + 47 * - + 40 AS col0, COUNT ( * ) + + 88 + + 72 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1891 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) \* Int64\(\-61\) AS col2" at position 0 and "Int64\(27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 31 * - 61 AS col2, 27 AS col2 +---- +1891 +27 query I rowsort label-2830 SELECT ALL 29 + + - ( - + COUNT ( * ) ) + 34 @@ -14928,8 +15132,12 @@ SELECT + 93 - + 10 + + - 0 + CAST ( - 90 AS INTEGER ) * + - 19 AS col1 # Datafusion - Expected - 64 # Datafusion - Expected - 1 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 and "Int64\(53\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 63 + COUNT ( * ) AS col2, COUNT ( * ) AS col1, 53 AS col1 +---- +1 +53 +64 query I rowsort SELECT - NULLIF ( - + 1, - 2 ) AS col2 @@ -15011,8 +15219,11 @@ SELECT DISTINCT + CAST ( + 15 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1600 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* Int64\(25\) AS col1" at position 0 and "Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 64 * 25 AS col1, + 18 AS col1 +---- +1600 +18 query I rowsort label-2850 SELECT DISTINCT + - CASE + 17 WHEN + 26 * ( 99 ) - + 43 * - COALESCE ( 4, COUNT ( * ) * - 94, - + 60, + 67 ) / - MAX ( 71 ) THEN NULL ELSE - 24 * 81 + + + COUNT ( * ) - - 90 * 20 + + 4 END @@ -15142,8 +15353,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \- Int64\(\-20\) \+ Int64\(\-64\) \- Int64\(26\) \+ CASE Int64\(38\) WHEN Int64\(37\) THEN Int64\(1\) END \+ Int64\(3\) \* \(\- \(\- coalesce\(Int64\(77\), Int64\(\-64\) \- Int64\(27\) \* Int64\(\-47\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 98 - - 20 + + - 64 - 26 + CASE + 38 WHEN 37 THEN 1 END + + 3 * - - COALESCE ( + + 77, + - 64 - + 27 * - 47 ) AS col1, COUNT ( * ) AS col1 +---- +1 +NULL query II rowsort SELECT 72 AS col1, + 45 AS col0 @@ -15192,8 +15406,11 @@ SELECT ALL - ( 87 ) * - 48 col1, + 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 5 col1, 83 col1 +---- +-5 +83 query I rowsort label-2883 SELECT ALL - 77 + - COUNT ( * ) AS col2 @@ -15803,8 +16020,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-6\)\) AS Int32\) AS col1" at position 0 and "Int64\(87\) \+ Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( - - 6 AS INTEGER ) AS col1, 87 + + 57 AS col1 +---- +144 +6 query I rowsort label-3000 SELECT ALL 71 * CASE - MIN ( - - 39 ) WHEN + ( AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) / - 61 THEN + 63 + - 77 + 79 + + - 76 * - + 91 * - 85 + + - 6 / 79 * + - 37 + - - 86 END + - 66 @@ -16758,8 +16978,11 @@ NULL # 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( - 32, + COUNT ( * ) ) AS col1, - 4 AS col1 +---- +-4 +32 query II rowsort SELECT + ( - 19 ) * + + 9 AS col1, 62 - + 43 AS col0 @@ -16885,8 +17108,12 @@ 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\(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\. +query III valuesort SELECT DISTINCT + 52 * + - 22 * 20 + - + 66, - ( - + 57 ) AS col2, COUNT ( * ) * + 25 * + MIN ( + + 28 ) + + - COUNT ( 61 ) + - + 6 - 53 * 24 AS col2 +---- +-22946 +-579 +57 query I rowsort SELECT DISTINCT + COALESCE ( - + 11, + + 62 ) AS col2 @@ -17409,20 +17636,29 @@ SELECT ALL NULLIF ( 20, - COUNT ( * ) * - COUNT ( * ) + + - 0 * - + CASE - - 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3730 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ Int64\(\-94\) \+ Int64\(\-53\) \* Int64\(\-72\) AS col0" at position 0 and "Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 + - 94 + - 53 * - 72 AS col0, + 32 AS col0 +---- +32 +3730 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(24\)\) AS col0" at position 0 and "Int64\(89\) \+ Int64\(\-2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 24 col0, + 89 + - 2 AS col0 +---- +-24 +87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(77\), Int64\(4\), \(\- Int64\(\-66\)\)\) AS col0" at position 0 and "Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( + 77, + + 4, - - 66 ) AS col0, 87 AS col0 +---- +77 +87 query II rowsort SELECT ALL 83 AS col2, 86 * + 1 @@ -17704,8 +17940,11 @@ SELECT 45 * - ( + 73 ) + + - SUM ( ALL + 69 ) - + 63 * + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 col1, 48 AS col1 +---- +48 +88 query II rowsort label-3360 SELECT ALL + 48 / + + 65 * - 31 AS col2, + 86 @@ -18091,8 +18330,11 @@ 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\(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\. +query II valuesort SELECT ALL 14 AS col0, + 93 - + + CASE - COUNT ( * ) WHEN 5 THEN 72 END AS col0 +---- +14 +NULL query I rowsort label-3433 SELECT + COUNT ( - 96 ) @@ -18117,8 +18359,11 @@ SELECT - 58 * - 50 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col1" at position 0 and "Int64\(\-38\) \+ CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 95 AS col1, - 38 + CAST ( NULL AS INTEGER ) AS col1 +---- +-95 +NULL query I rowsort label-3438 SELECT DISTINCT - 40 / - 94 AS col1 @@ -18751,8 +18996,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 99 ) AS col1, 26 AS col1 +---- +-99 +26 query II rowsort label-3559 SELECT - + COUNT ( * ) * 27 + + 50 + + 26, + ( + MAX ( 0 ) ) + + 35 * + SUM ( DISTINCT 67 ) AS col2 @@ -19940,8 +20188,11 @@ SELECT DISTINCT + - 34 * - 78 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 6494 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-88\)\) AS col2" at position 0 and "Int64\(90\) \* Int64\(72\) \+ Int64\(14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 88 AS col2, 90 * + ( + 72 ) + + 14 AS col2 +---- +6494 +88 query I rowsort SELECT ALL + + 84 * - - 36 AS col0 @@ -20231,8 +20482,11 @@ SELECT DISTINCT 9 * + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col1" at position 0 and "CAST\(Int64\(\-76\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 67 AS col1, + CAST ( - 76 AS INTEGER ) col1 +---- +-76 +67 query I rowsort label-3845 SELECT ALL CAST ( + NULLIF ( + COALESCE ( + 67, COUNT ( * ) ), - 96 ) AS INTEGER ) AS col0 @@ -20396,8 +20650,11 @@ SELECT ALL - 31 * 25, - 86 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1049664 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* \(\- sum\(\(\- Int64\(84\)\)\)\) \* Int64\(8\) \* Int64\(\-71\) AS col0" at position 0 and "coalesce\(Int64\(38\), Int64\(98\), Int64\(59\) / Int64\(97\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 22 * - SUM ( - + 84 ) * 8 * - 71 AS col0, COALESCE ( + 38, + 98, + 59 / 97 ) AS col0 +---- +1049664 +38 query I rowsort SELECT 69 * NULLIF ( + 72, - 37 + + + 97 ) @@ -20604,8 +20861,11 @@ SELECT ALL 32 / - 95 * + - 21 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- Int64\(\-45\)\)\)\) AS col2" at position 0 and "Int64\(\-78\) / Int64\(1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( - + ( - 45 ) ) AS col2, - 78 / + 1 AS col2 +---- +-45 +-78 query I rowsort SELECT 21 + + 51 @@ -20737,8 +20997,11 @@ SELECT NULLIF ( + 43, 83 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) AS col0" at position 0 and "Int64\(\-42\) \* count\(DISTINCT Int64\(\-54\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + CAST ( NULL AS FLOAT8 ) col0, - 42 * COUNT ( DISTINCT + - 54 ) AS col0 +---- +-42 +NULL query I rowsort label-3942 SELECT ALL - ( + ( + 1 ) ) * - + CASE ( 98 ) WHEN - 70 * + + COALESCE ( + 32, - COALESCE ( 87, + 49, + 74 ) ) / - 69 THEN COUNT ( DISTINCT - 76 ) / 2 ELSE NULL END + - 23 * + 27 @@ -20794,8 +21057,11 @@ SELECT + NULLIF ( - - COUNT ( * ), ( + 6 ) * + SUM ( - 56 ) ) + - SUM ( 41 ) # 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 "Int64\(99\) \- Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 17 AS col2, 99 - + 90 AS col2 +---- +17 +9 query I rowsort label-3953 SELECT ALL SUM ( DISTINCT 34 ) * - 34 @@ -21572,8 +21838,11 @@ 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\(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\. +query II valuesort 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 +---- +-84 +NULL query I rowsort SELECT ALL + ( - 83 ) * - - ( - 6 ) @@ -21742,8 +22011,11 @@ SELECT 76 * NULLIF ( + - 80, - - 2 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 3339 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(DISTINCT Int64\(63\)\)\) AS col2" at position 0 and "Int64\(63\) \* \(\- Int64\(\-53\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + COUNT ( DISTINCT 63 ) col2, 63 * - - 53 AS col2 +---- +-1 +3339 query I rowsort label-4135 SELECT COUNT ( ALL - - 51 ) * - COUNT ( * ) @@ -21956,8 +22228,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 957 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(55\) AS Int32\)\) \* Int64\(\-17\) \+ Int64\(22\) AS col2" at position 0 and "min\(Int64\(33\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( 55 AS INTEGER ) * - 17 + + 22 col2, + MIN ( + 33 ) AS col2 +---- +33 +957 query I rowsort SELECT + - 82 + + 68 @@ -21995,14 +22270,20 @@ 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\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-55\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 1 * 95 + - 47 * - 95 AS col1, 90 * + - COUNT ( * ) * - - 55 AS col1 +---- +-4950 +4560 # Datafusion - Datafusion expected results: # Datafusion - Expected - -90 # Datafusion - Expected - 176 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) AS col2" at position 0 and "Int64\(82\) \+ Int64\(90\) \+ Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 AS col2, 82 + 90 + + 4 AS col2 +---- +-90 +176 query II rowsort SELECT - 16 + + 94 + 18 + ( - ( + - 52 ) ), 88 AS col1 @@ -22089,8 +22370,11 @@ SELECT - 10 - + 19 * - - 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2544 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-92\)\) AS col2" at position 0 and "Int64\(\-41\) \* Int64\(60\) \+ Int64\(\-84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( + - 92 ) AS col2, - 41 * + 60 + - 84 AS col2 +---- +-2544 +1 query I rowsort label-4199 SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) AS col2 @@ -22283,8 +22567,12 @@ SELECT 49 + - 43 AS col2 # Datafusion - Expected - 27 # Datafusion - Expected - -103 # 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 "Int64\(1\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 27 AS col2, - 27 + - + 76 AS col1, 1 AS col2 +---- +-103 +1 +27 query I rowsort SELECT 58 + + 28 @@ -22517,8 +22805,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 37 AS col0, 40 + MIN ( DISTINCT 91 ) + + - COUNT ( - 59 ) * CASE COUNT ( * ) WHEN - - 71 THEN - - 43 + + + 6 END + + 31 AS col0 +---- +37 +NULL query I rowsort SELECT ALL + + 69 * - + 51 col2 @@ -22722,8 +23013,11 @@ NULL # 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\(\-62\) / Int64\(\-32\) \+ Int64\(94\) AS col0" at position 0 and "Int64\(94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 62 / + - 32 + + 94 AS col0, + 94 col0 +---- +94 +95 query I rowsort label-4320 SELECT DISTINCT - MIN ( - 53 ) / + 38 + - COALESCE ( + + 85, - 35, - 57 + + + 4 * + - 22 * 52 ) + 87 / 95 AS col1 @@ -22826,8 +23120,11 @@ SELECT 98 * + MAX ( - 93 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "Int64\(\-97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 15 AS col2, - 97 col2 +---- +-97 +15 query I rowsort SELECT ( 41 ) * + - CASE 29 WHEN + + 23 + + - 55 THEN - 83 WHEN + 95 THEN NULL WHEN - - 86 + + - 4 THEN NULL ELSE NULL END AS col2 @@ -22842,8 +23139,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 AS col0, + COUNT ( * ) * + 35 col0 +---- +-55 +35 query II rowsort SELECT 57 + 76 + + + 93 AS col2, + 75 AS col0 @@ -22901,8 +23201,11 @@ SELECT 43 * - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \+ Int64\(85\) AS col2" at position 0 and "\(\- CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(72\) THEN count\(Int64\(17\)\) / Int64\(15\) \- \(\- avg\(Int64\(93\)\)\) \* Int64\(52\) \+ \(\- CASE Int64\(\-22\) WHEN \(\- Int64\(32\)\) THEN Int64\(\-79\) WHEN CASE \(\- \(\- coalesce\(Int64\(13\), Int64\(85\), Int64\(26\) / Int64\(\-30\)\)\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN Int64\(11\) THEN NULL WHEN CAST\(Int64\(88\) AS Int32\) \* Int64\(\-79\) \+ Int64\(80\) THEN sum\(DISTINCT Int64\(37\)\) \+ Int64\(73\) END THEN Int64\(17\) END\) WHEN Int64\(44\) \* Int64\(\-69\) THEN NULL WHEN nullif\(Int64\(95\), Int64\(33\)\) \+ nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ coalesce\(Int64\(82\) \- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(17\) \+ count\(Int64\(1\)\) AS count\(\*\)\), count\(Int64\(1\)\) AS count\(\*\) / nullif\(Int64\(58\), Int64\(70\) \+ Int64\(51\)\)\) \* Int64\(51\), Int64\(46\) \+ Int64\(58\)\) THEN NULL ELSE NULL END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +98 +NULL query I rowsort label-4354 SELECT 74 / 6 AS col2 @@ -23343,8 +23646,11 @@ 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\(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\. +query II valuesort SELECT + 11 + COALESCE ( - COUNT ( * ), 77, - - 72 + + + MAX ( DISTINCT 7 ) ) AS col2, 65 col2 +---- +10 +65 query I rowsort SELECT ALL - - 36 * - + 59 + 91 AS col2 @@ -23574,8 +23880,11 @@ SELECT ALL + 84 + COUNT ( * ) * 45 + 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 AS col1, 32 AS col1 +---- +32 +92 query I rowsort label-4482 SELECT DISTINCT 51 + - ( + COUNT ( DISTINCT + 67 ) ) @@ -23616,8 +23925,12 @@ SELECT 93 * - 13 * - 70 AS col2, + 25 + - - 12 * 50 + COUNT ( * ) / + 93 AS col0 # Datafusion - Expected - 3 # Datafusion - Expected - 296 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \* \(\- Int64\(\-74\)\) AS col0" at position 1 and "\(\- Int64\(63\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 3 + - 17 / + 84 AS col2, 4 * + - ( - 74 ) col0, - + 63 AS col0 +---- +-63 +296 +3 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -23645,8 +23958,11 @@ SELECT 73 + 15 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5904 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* Int64\(82\) \* Int64\(9\) AS col1" at position 0 and "max\(Int64\(61\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 * 82 * 9 AS col1, + MAX ( + 61 ) AS col1 +---- +5904 +61 query II rowsort label-4494 SELECT + 93 / 49 + - 31 AS col2, + 50 * - + 3 AS col0 @@ -23933,8 +24249,12 @@ SELECT ALL CAST ( 17 AS INTEGER ) AS col2 # Datafusion - Expected - 36 # Datafusion - Expected - 4950 # Datafusion - Expected - -585 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* \(\- Int64\(\-50\)\) AS col0" at position 1 and "Int64\(15\) \* Int64\(\-39\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 36, + 99 * - - 50 AS col0, 15 * - 39 AS col0 +---- +-585 +36 +4950 query I rowsort SELECT - ( 55 ) col1 @@ -24185,8 +24505,11 @@ SELECT ALL - 68 + + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT + + 62 col2, 91 AS col2 +---- +62 +91 query II rowsort label-4597 SELECT + 90, - 0 / 92 * - 92 + + 19 + + 41 - - 2 + - + NULLIF ( + 42, + 51 ) + + - 3 * + ( - + MAX ( ALL - 29 ) ) / - COUNT ( * ) col2 @@ -24781,8 +25104,11 @@ SELECT 16 * + 74 * 65 AS col2, 92 * + 43 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3077 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(81\) \+ Int64\(\-82\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 * 81 + + - 82 AS col2, 54 AS col2 +---- +3077 +54 query I rowsort label-4710 SELECT DISTINCT - CAST ( + MAX ( 54 ) AS INTEGER ) @@ -24865,8 +25191,11 @@ SELECT CASE 76 WHEN - - 71 THEN NULL ELSE + + 22 END # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col2" at position 0 and "Int64\(42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 45 AS col2, + 42 AS col2 +---- +42 +45 query I rowsort label-4725 SELECT ALL + 18 * - CASE + + 6 WHEN + 29 THEN + - 17 + + + COUNT ( * ) ELSE NULL END * - 22 + COUNT ( * ) + - 85 AS col0 @@ -25094,8 +25423,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -388 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* \(\- \(\- \(\- Int64\(4\)\)\)\) AS col1" at position 0 and "Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 97 * - - ( - + 4 ) AS col1, - 60 AS col1 +---- +-388 +-60 query I rowsort SELECT + - 33 * + 44 + + 77 @@ -25254,8 +25586,11 @@ SELECT ALL + 52 * 56 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 "Int64\(75\) / Int64\(66\) AS col1" at position 0 and "Int64\(42\) \- Int64\(\-74\) \+ Int64\(58\) \* \(\- Int64\(23\)\) \* CAST\(NULL AS Float64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 75 / ( + + 66 ) AS col1, 42 - - 74 + 58 * - ( + ( 23 ) ) * CAST ( NULL AS FLOAT8 ) AS col1 +---- +1 +NULL query II rowsort label-4797 SELECT - 81 / CAST ( + 97 AS INTEGER ), 15 AS col2 @@ -25649,8 +25984,11 @@ SELECT DISTINCT + NULLIF ( - COUNT ( ALL 33 ), - + SUM ( + 15 ) ) / COALESCE ( + # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - -2160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "Int64\(40\) \* \(\- Int64\(54\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 63 AS col0, + 40 * - + 54 AS col0 +---- +-2160 +63 query I rowsort label-4872 SELECT 88 * + 58 + - + 85 + - + 13 - - COALESCE ( - 91, + 17, NULLIF ( COUNT ( * ), - ( + 66 ) ) ) * - 39 * - 27 - COUNT ( * ) AS col0 @@ -26074,8 +26412,11 @@ SELECT COALESCE ( + - 30, - - 82 * - - ( - - 25 ), + + 80 * + + MIN ( 41 ) * - 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - -77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col1" at position 0 and "Int64\(\-77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 col1, - 77 AS col1 +---- +-77 +85 query II rowsort label-4951 SELECT 36 * - - ( + - 99 ) AS col1, COUNT ( * ) * - ( 90 ) @@ -26756,8 +27097,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 96 AS col2, 74 AS col2 +---- +74 +96 query II rowsort SELECT 35, + 24 + - 10 + 23 * ( + - 80 ) + + + ( + 21 ) * + 51 AS col2 @@ -26789,8 +27133,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(35\) \* Int64\(\-40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 * - - 84 AS col2, COUNT ( * ) * + 35 * - 40 AS col2 +---- +-1400 +5964 query I rowsort SELECT 6 + + 17 AS col0 @@ -26980,8 +27327,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "count\(\(\- \(\- nullif\(Int64\(11\), \(\- Int64\(\-4\)\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, + COUNT ( - - NULLIF ( 11, - - 4 ) ) AS col2 +---- +-1 +1 query I rowsort SELECT ALL - 92 * NULLIF ( 26, - 38 ) + + 86 + - + 2 + 85 @@ -27214,8 +27564,11 @@ SELECT DISTINCT - 62 * - + 83 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \- \(\- CAST\(Int64\(\-7\) AS Int32\)\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 - + - CAST ( - 7 AS INTEGER ) AS col2, 60 AS col2 +---- +-7 +60 query I rowsort SELECT 74 + - 53 @@ -27785,8 +28138,11 @@ SELECT 50 * - - ( - 51 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col0" at position 0 and "Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 95 AS col0, 25 AS col0 +---- +-95 +25 query I rowsort SELECT 33 + - ( - NULLIF ( - 30, 66 + + 51 * 43 ) ) @@ -28111,14 +28467,20 @@ 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\(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\. +query II valuesort SELECT - 51 * - + COUNT ( * ) + - + 39 AS col0, + 55 col0 +---- +12 +55 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 / - + COUNT ( * ) + + COUNT ( * ) AS col2, 21 AS col2 +---- +-95 +21 query I rowsort SELECT + 72 * 93 AS col0 @@ -28416,8 +28778,11 @@ SELECT DISTINCT + 32 AS col1, 41 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 2150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col2" at position 0 and "Int64\(\-43\) \* Int64\(\-50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 25 AS col2, - 43 * - 50 AS col2 +---- +-25 +2150 query I rowsort label-5403 SELECT - 14 + + 94 + + 86 * - CAST ( - CAST ( 68 AS INTEGER ) AS INTEGER ) * 12 + 2 AS col2 @@ -28604,8 +28969,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 9 AS col2, COUNT ( * ) / COUNT ( * ) col2 +---- +1 +9 query I rowsort SELECT 18 + - 39 col0 @@ -28730,8 +29098,11 @@ SELECT + NULLIF ( + 10, COALESCE ( 96, AVG ( - ( + 53 ) ) ) * + MAX ( + CAST ( N # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-58\), Int64\(\-49\)\) AS col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + NULLIF ( + ( - 58 ), - 49 ) AS col2, 9 AS col2 +---- +-58 +9 query I rowsort SELECT - + 95 + - + 9 * 2 AS col1 @@ -28849,8 +29220,11 @@ 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\(1\)\) AS count\(\*\) \- \(\- Int64\(\-35\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 1 * - + 71 AS col1, - 73 * 69 - + COUNT ( * ) - - - 35 col1 +---- +-5073 +-71 query I rowsort SELECT DISTINCT 18 - - + 17 * 27 AS col0 @@ -28926,8 +29300,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 51 * - COUNT ( * ) + - 46 + - 80 AS col1, COALESCE ( + 79, + + 5 - - 32 + + + 66 * 3 ) * - 47 AS col1 +---- +-3713 +-75 query I rowsort SELECT ALL + + 17 * 89 * 76 + + 69 @@ -29250,8 +29627,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 37 AS col0, - 65 * + COUNT ( * ) * + - COUNT ( * ) AS col0 +---- +37 +65 query I rowsort label-5560 SELECT ALL + + COALESCE ( - 7, 39 * + 96 + - COUNT ( * ) / + 98 ) * - NULLIF ( + ( + 76 ), + - 16 ) * - CASE MAX ( 68 ) WHEN 71 + 46 THEN NULL WHEN + 25 * + 93 + SUM ( DISTINCT 70 + + 0 * 75 ) THEN + 16 WHEN 54 THEN NULL ELSE NULL END / 26 @@ -29276,8 +29656,11 @@ SELECT 70 + + - CAST ( + 68 AS INTEGER ) + + + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 1760 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col0" at position 0 and "Int64\(14\) \- Int64\(\-97\) \* Int64\(18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 14 AS col0, 14 - - 97 * + 18 AS col0 +---- +-14 +1760 query II rowsort SELECT ALL - - 82 col2, - 68 * 89 @@ -29304,8 +29687,11 @@ 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\(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\. +query II valuesort SELECT ALL - 39 AS col2, - 8 * + 63 * + ( COUNT ( * ) ) * 78 * - 44 - - ( + + 76 ) * - 20 AS col2 +---- +-39 +1728208 query II rowsort label-5570 SELECT ALL - 29, + COUNT ( * ) * + 54 AS col2 @@ -30067,8 +30453,11 @@ SELECT + NULLIF ( - 66, - 19 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -140587 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) \- Int64\(\-38\) \* Int64\(74\) \* Int64\(\-50\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 13 - + - 38 * + 74 * - 50 AS col0, 67 AS col0 +---- +-140587 +67 query I rowsort SELECT + 18 * 17 AS col1 @@ -30099,8 +30488,11 @@ SELECT - COUNT ( * ) * + - SUM ( - - 22 ) - - 96 * 77 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -897 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col2" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- Int64\(\-28\) \* Int64\(\-32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 57 AS col2, CAST ( + COUNT ( * ) AS INTEGER ) * ( + - COUNT ( * ) ) - - 28 * + - 32 col2 +---- +-897 +57 query I rowsort label-5722 SELECT DISTINCT 23 / + NULLIF ( 34, - 60 ) * + 20 AS col1 @@ -30164,8 +30556,11 @@ SELECT + 26, - 69 * - + 64 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -122 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) \+ max\(DISTINCT Int64\(\-84\)\) \+ 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 II valuesort SELECT - 44 + MAX ( DISTINCT + - 84 ) + + 6 AS col0, + ( + 79 ) AS col0 +---- +-122 +79 query I rowsort label-5734 SELECT - + COUNT ( * ) * ( ( ( - 49 ) ) ) / + 81 @@ -30187,8 +30582,11 @@ SELECT - 26, + 43 * - 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 2975 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) \+ Int64\(\-42\) AS col2" at position 0 and "Int64\(93\) \* Int64\(32\) \+ \(\- count\(Int64\(94\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 30 + - 42 col2, 93 * + 32 + - + COUNT ( + 94 ) AS col2 +---- +-72 +2975 query I rowsort SELECT - + 55 + - - 47 @@ -30364,8 +30762,11 @@ SELECT ALL COUNT ( * ) * + ( + 9 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1632 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(96\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 * + 96 AS col1, 14 AS col1 +---- +14 +1632 query I rowsort SELECT ALL 91 + - 49 AS col0 @@ -30466,8 +30867,12 @@ SELECT 48 * - MIN ( 65 ) # Datafusion - Expected - -7 # Datafusion - Expected - -468 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) / Int64\(\-59\) \* Int64\(\-37\) \+ Int64\(12\) \* \(\- Int64\(39\)\) AS col0" at position 1 and "Int64\(21\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 7, + 41 / + - 59 * - 37 + + 12 * - + 39 AS col0, 21 AS col0 +---- +-468 +-7 +21 query I rowsort SELECT 9 * + - 73 * - 39 * - 59 - + + 90 * + + 77 * - ( 7 ) * + - 16 @@ -30995,8 +31400,11 @@ SELECT DISTINCT + 79 / - 48 / - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 AS col2, 28 AS col2 +---- +28 +46 query II rowsort SELECT - 96, + 88 AS col2 @@ -31013,8 +31421,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - + 20 AS col2, + 97 AS col1, - COUNT ( * ) AS col1 +---- +-1 +-20 +97 query I rowsort label-5895 SELECT ALL COUNT ( * ) / - COALESCE ( 93, - 52 + - - 17 ) AS col1 @@ -31382,8 +31794,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 39 * 49 + 56 * + + 9 AS col0, 52 / - COUNT ( * ) AS col0 +---- +-1407 +-52 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -31555,8 +31970,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1480 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \* \(\- \(\- nullif\(\(\- max\(DISTINCT Int64\(37\)\)\), Int64\(90\) \+ \(\- Int64\(82\)\)\)\)\) AS col0" at position 0 and "Int64\(\-3\) \+ Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 * - - NULLIF ( - MAX ( DISTINCT + + 37 ), + 90 + - + 82 ) AS col0, - 3 + + + 1 AS col0 +---- +-1480 +-2 query I rowsort SELECT 76 * 11 col1 @@ -31680,8 +32098,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col0" at position 0 and "Int64\(20\) \+ Int64\(7\) \+ Int64\(83\) \+ CAST\(Int64\(46\) AS Int32\) / sum\(\(\- nullif\(Int64\(40\), Int64\(20\) \* \(\- Int64\(14\)\) \+ Int64\(\-73\)\)\)\) \+ Int64\(41\) \* Int64\(12\) \+ Int64\(59\) \* CAST\(NULL AS Int32\) \* Int64\(\-45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 89 col0, 20 + + 7 + 83 + CAST ( 46 AS INTEGER ) / SUM ( - NULLIF ( + 40, + 20 * + ( - + 14 ) + - 73 ) ) + + 41 * 12 + 59 * CAST ( NULL AS INTEGER ) * + - 45 AS col0 +---- +-89 +NULL query II rowsort SELECT DISTINCT - 63, - ( - 35 ) AS col2 @@ -31745,20 +32166,30 @@ 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\(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\. +query III valuesort SELECT ALL - COUNT ( * ) AS col1, 66 + - 67 * + + CASE - 31 WHEN - 2 THEN - + 22 + - 85 * - - COUNT ( * ) ELSE NULL END AS col2, - + 55 AS col2 +---- +-1 +-55 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1405050 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* Int64\(19\) \* Int64\(\-34\) \* Int64\(29\) 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 II valuesort SELECT 75 * 19 * - 34 * 29 AS col0, + COUNT ( ALL - - 33 ) AS col0 +---- +-1405050 +1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15351138 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) \* Int64\(\-99\) \* Int64\(82\) \* Int64\(31\) AS col1" at position 0 and "count\(DISTINCT Int64\(64\)\) \* Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 61 * + - 99 * 82 * + 31 AS col1, COUNT ( DISTINCT 64 ) * 35 AS col1 +---- +15351138 +35 query I rowsort SELECT DISTINCT - NULLIF ( - - 96, + 74 ) @@ -31778,8 +32209,11 @@ SELECT ALL COALESCE ( - 50, + 59 + - + 38 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(65\), Int64\(\-76\) \* \(\- Int64\(10\)\)\) \+ count\(DISTINCT Int64\(\-24\)\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( + 65, + - 76 * - + 10 ) + + COUNT ( DISTINCT - 24 ) col2, 2 AS col2 +---- +2 +66 query I rowsort SELECT - + NULLIF ( - 53, + 19 + + 15 ) AS col0 @@ -31972,8 +32406,11 @@ SELECT ALL - 30 + ( + 66 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5638 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* \(\- nullif\(Int64\(54\), Int64\(\-25\) \* \(\- CASE Int64\(\-11\) WHEN Int64\(22\) THEN NULL ELSE Int64\(37\) END\)\)\) \+ Int64\(\-25\) \* Int64\(70\) AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 72 * - NULLIF ( + + 54, - 25 * - + CASE - 11 WHEN + + 22 THEN NULL ELSE + 37 END ) + - 25 * 70 col2, 46 AS col2 +---- +-5638 +46 query I rowsort label-6075 SELECT ALL + 61 + + - 55 + + NULLIF ( + ( CAST ( NULL AS INTEGER ) ), + 99 ) * + + 33 * 95 * + 92 / - 91 AS col0 @@ -32138,8 +32575,11 @@ 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\(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\. +query II valuesort SELECT ALL ( ( + + COUNT ( * ) ) ), + COUNT ( * ) +---- +1 +1 query I rowsort label-6107 SELECT + - ( - 26 ) * + + MAX ( 45 ) * 72 * 91 AS col2 @@ -32149,8 +32589,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 AS col2, 89 * COUNT ( * ) * - 49 col2 +---- +-4361 +78 query I rowsort label-6109 SELECT DISTINCT 20 * - 98 + 69 + + 97 + - - 0 * 99 * COUNT ( * ) AS col1 @@ -32287,8 +32730,11 @@ SELECT DISTINCT COUNT ( * ) - + 33 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5096 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \* Int64\(\-91\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 * - 91 AS col2, 21 AS col2 +---- +-5096 +21 query I rowsort label-6136 SELECT DISTINCT + SUM ( - 72 ) @@ -32660,8 +33106,11 @@ SELECT - 10 * + - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "Int64\(45\) / Int64\(4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 11 col1, + 45 / + + 4 AS col1 +---- +11 +11 query II rowsort SELECT + - 54, - 48 AS col0 @@ -32756,8 +33205,11 @@ SELECT - 53 * ( - ( - - 50 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2343 # Datafusion - Expected - -114464 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \* Int64\(\-33\) AS col2" at position 0 and "Int64\(\-49\) \* \(\- Int64\(32\)\) \* Int64\(\-73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 71 * - 33 col2, - 49 * - + 32 * + - 73 AS col2 +---- +-114464 +-2343 query I rowsort label-6225 SELECT - CAST ( NULL AS INTEGER ) * - 11 * + COUNT ( * ) @@ -32777,8 +33229,11 @@ SELECT + - 52 * 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(DISTINCT Int64\(57\)\)\) / Int64\(53\) \- \(\- Int64\(29\)\) \+ Int64\(7\) \+ Int64\(3\) \+ Int64\(0\) / Int64\(\-56\) AS col2" at position 0 and "Int64\(2\) \* Int64\(\-47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MAX ( DISTINCT + 57 ) / 53 - - ( + 29 ) + ( + 7 ) + 3 + - 0 / - 56 AS col2, 2 * - 47 AS col2 +---- +-94 +38 query I rowsort label-6229 SELECT DISTINCT + 97 + 2 + MIN ( DISTINCT + 26 ) col1 @@ -33232,8 +33687,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 64 + - 80 - 47 AS col0, COUNT ( * ) * + + 64 AS col0 +---- +-63 +64 query I rowsort label-6314 SELECT MAX ( + - 32 ) @@ -33382,8 +33840,11 @@ SELECT - ( + 67 ) + + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -799 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- Int64\(36\)\) \* \(\- Int64\(\-24\)\) \+ Int64\(65\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, - ( + 36 ) * - - 24 + + ( + 65 ) AS col2 +---- +-799 +1 query I rowsort label-6343 SELECT ALL - 25 * + + MIN ( ALL - + 46 ) @@ -33529,8 +33990,11 @@ SELECT ALL - 81 - - + 4 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -476 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \* Int64\(\-48\) \- \(\- sum\(DISTINCT Int64\(4\)\)\) AS col1" at position 0 and "Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 10 * + - 48 - - SUM ( DISTINCT + 4 ) AS col1, + 0 AS col1 +---- +-476 +0 query I rowsort label-6372 SELECT - - NULLIF ( 11, + 29 + 69 * + CAST ( NULL AS INTEGER ) ) AS col2 @@ -33576,8 +34040,11 @@ SELECT ALL 12 + 63 * - 17 # Datafusion - Datafusion expected results: # Datafusion - Expected - -606 # Datafusion - Expected - 6545273 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \* count\(Int64\(1\)\) AS count\(\*\) \* Int64\(39\) \- Int64\(\-19\) \* Int64\(81\) AS col1" at position 0 and "Int64\(46\) \* Int64\(\-51\) \* Int64\(\-3\) \* \(\- \(\- Int64\(62\)\)\) \* coalesce\(Int64\(15\), Int64\(36\)\) \+ CAST\(Int64\(\-8\) AS Int32\) / Int64\(17\) \- nullif\(Int64\(67\), Int64\(65\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-606 +6545273 query I rowsort label-6381 SELECT ALL + COUNT ( ALL + 56 ) * + COUNT ( * ) * 81 * - - 40 AS col1 @@ -33808,8 +34275,12 @@ SELECT ALL 58 / COUNT ( * ) * + - COUNT ( DISTINCT + ( - CAST ( + - 13 AS INTEGE # Datafusion - Expected - 1 # Datafusion - Expected - 183 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(30\) WHEN Int64\(\-62\) THEN NULL ELSE Int64\(97\) END \+ Int64\(86\) AS col0" at position 1 and "coalesce\(Int64\(3\), Int64\(\-30\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT COUNT ( * ), CASE + + 30 WHEN - 62 THEN NULL ELSE 97 END + 86 AS col0, + COALESCE ( + + 3, - 30 ) col0 +---- +1 +183 +3 query I rowsort SELECT + 81 + - 82 @@ -34404,8 +34875,12 @@ SELECT ( + + 20 ) AS col2 # Datafusion - Expected - 55 # Datafusion - Expected - 77 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \+ Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 55 AS col2, + CAST ( + COUNT ( * ) AS INTEGER ) + 76 AS col2, - - 19 +---- +19 +55 +77 query I rowsort label-6538 SELECT + - COUNT ( ALL CAST ( NULL AS INTEGER ) ) * + 83 - + 44 * 13 AS col2 @@ -34596,8 +35071,11 @@ SELECT ALL + 71 * + 24 - 51 - - 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3173 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(77\), Int64\(40\)\) \+ coalesce\(Int64\(50\), Int64\(51\) \+ Int64\(\-84\), \(\- CASE Int64\(\-64\) WHEN \(\- max\(\(\- Int64\(73\)\)\)\) THEN Int64\(17\) WHEN Int64\(94\) / Int64\(\-19\) THEN Int64\(24\) END\) / Int64\(29\)\) \* Int64\(\-65\) AS col2" at position 0 and "Int64\(22\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( + 77, + + 40 ) + + ( + + COALESCE ( + + 50, 51 + - 84, - CASE - 64 WHEN - MAX ( ALL - + 73 ) THEN + 17 WHEN 94 / - 19 THEN 24 END / + 29 ) ) * - 65 AS col2, + 22 AS col2 +---- +-3173 +22 query I rowsort label-6574 SELECT - 10 * + 45 + - 50 + + + COUNT ( * ) AS col0 @@ -35015,8 +35493,11 @@ 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\(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\. +query II valuesort SELECT ALL 76 + COUNT ( * ) - + 16 * 63 / - - 98 AS col1, 17 AS col1 +---- +17 +67 query I rowsort label-6653 SELECT DISTINCT 11 + + 41 * COUNT ( * ) AS col1 @@ -35348,8 +35829,11 @@ SELECT - 21, ( - - 47 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(96\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) col2, 96 AS col2 +---- +96 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -35611,8 +36095,11 @@ SELECT DISTINCT - 90 * - + ( + 51 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -402 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ Int64\(5\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-6\) \* \(\- Int64\(\-67\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 + 5 * + COUNT ( * ) AS col2, - 6 * - - 67 AS col2 +---- +-402 +35 query I rowsort label-6764 SELECT ALL - - 9 + 93 / + COUNT ( * ) + + - COUNT ( * ) @@ -35835,8 +36322,11 @@ SELECT + COUNT ( DISTINCT + - 25 ) * 58 - 80 - ( + + 85 ) * 10 - ( - 16 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 8190 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(82\), Int64\(16\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* CAST\(NULL AS Int32\), Int64\(\-38\)\) AS col1" at position 0 and "Int64\(91\) \* Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( + 82, 16 / - COUNT ( * ) * CAST ( NULL AS INTEGER ), - 38 ) AS col1, + 91 * 90 AS col1 +---- +8190 +82 query I rowsort SELECT ( + NULLIF ( 57, - CASE 1 WHEN ( + 59 ) * 94 THEN - - 10 END ) ) col1 @@ -37381,8 +37871,11 @@ SELECT DISTINCT COUNT ( + 37 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col1" at position 0 and "Int64\(\-97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 96 AS col1, - 97 AS col1 +---- +-97 +96 query I rowsort label-7105 SELECT - COUNT ( * ) - - - 84 AS col1 @@ -37679,8 +38172,11 @@ SELECT DISTINCT + COUNT ( * ) * + 5 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 53 AS col1, 43 AS col1 +---- +43 +53 query I rowsort label-7163 SELECT + + 79 * - 35 - + 48 / ( + ( + - 20 ) ) + - 49 + + 61 * 82 - 31 - 21 @@ -37812,8 +38308,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(\-98\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 25 AS col0, + COUNT ( * ) * - - 98 col0 +---- +25 +98 query I rowsort label-7189 SELECT + MAX ( ALL ( + 91 ) ) - 71 + ( - 93 ) @@ -37855,8 +38354,11 @@ SELECT + 27 * 20 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2268 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(\-54\) AS col2" at position 0 and "max\(DISTINCT Int64\(99\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 42 * - 54 AS col2, + MAX ( DISTINCT 99 ) AS col2 +---- +-2268 +99 query II rowsort label-7197 SELECT + 41 AS col2, + 17 + - CASE + - 78 WHEN - 86 THEN NULL WHEN 75 THEN NULL WHEN + - 57 * + 64 THEN 53 / 81 * + + CASE + 10 WHEN 35 * NULLIF ( + 79, 84 ) THEN 34 WHEN - NULLIF ( 40, - 14 + 36 ) THEN NULL WHEN COUNT ( * ) THEN NULL ELSE 0 END END + - ( + 95 + - 75 / 64 ) / 99 @@ -38161,8 +38663,11 @@ SELECT 61 + + + 63 # 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 "Int64\(79\) AS col2" at position 0 and "Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 79 col2, + 69 AS col2 +---- +69 +79 query I rowsort label-7252 SELECT ALL 23 / 3 @@ -38192,8 +38697,11 @@ SELECT ALL MAX ( ALL + - 26 ) / - 35 * - 84 - - COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 94 AS col2, COUNT ( * ) AS col2 +---- +-94 +1 query I rowsort SELECT DISTINCT 22 * 18 AS col2 @@ -38466,8 +38974,11 @@ SELECT ALL + 74 / - - 86 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3036 # Datafusion - Expected - -770 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(66\)\) \* Int64\(\-46\) AS col1" at position 0 and "Int64\(43\) \+ \(\- Int64\(22\)\) \* \(\- \(\- sum\(DISTINCT Int64\(36\)\)\)\) \+ \(\- nullif\(Int64\(21\), min\(Int64\(32\)\) \* Int64\(88\) \+ Int64\(67\) \* \(\- CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\)\) \* sum\(Int64\(54\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 66 ) * - 46 AS col1, + 43 + - + 22 * - ( - SUM ( DISTINCT 36 ) ) + - NULLIF ( 21, MIN ( 32 ) * + + 88 + 67 * - CAST ( + COUNT ( * ) AS INTEGER ) * SUM ( + 54 ) ) AS col1 +---- +-770 +3036 query I rowsort label-7309 SELECT ALL 28 * - ( - COUNT ( * ) ) @@ -38520,8 +39031,12 @@ SELECT - COUNT ( * ) + - + MIN ( DISTINCT 31 ), 44 * + 37 AS col2 # Datafusion - Expected - 81 # Datafusion - Expected - 256 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) \* Int64\(\-64\) AS col0" at position 1 and "Int64\(60\) \* CAST\(NULL AS Int32\) \+ Int64\(\-38\) \* \(\- Int64\(\-64\)\) \- \(\- CAST\(Int64\(50\) AS Int32\)\) \+ Int64\(\-40\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 81 AS col2, - 4 * - 64 col0, 60 * + CAST ( NULL AS INTEGER ) + + - 38 * - - 64 - - CAST ( 50 AS INTEGER ) + - 40 AS col0 +---- +256 +81 +NULL query I rowsort label-7319 SELECT ALL + SUM ( 20 ) + 4 @@ -38961,8 +39476,11 @@ SELECT + 58 * - 26 * 24 + + + 6 + - 3 / + 51 + - 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-95\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) + - 95 AS col1, + 2 AS col1 +---- +2 +NULL query II rowsort label-7403 SELECT COUNT ( * ) AS col2, - MIN ( - ( 76 ) ) @@ -39018,8 +39536,11 @@ SELECT - 33 - + + 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "Int64\(28\) \+ Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 12 col2, + 28 + 71 AS col2 +---- +12 +99 query I rowsort label-7414 SELECT + 3 + COALESCE ( COUNT ( * ), + + 62 ) - ( + NULLIF ( 65, + + COUNT ( DISTINCT ( - 15 ) ) ) ) / 69 * + 95 * 31 + + - ( + 23 ) AS col0 @@ -39181,8 +39702,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * - 92 AS col1, 3 AS col1 +---- +3 +92 query I rowsort SELECT + NULLIF ( + 70, + 81 ) @@ -39334,8 +39858,11 @@ SELECT DISTINCT + CASE - MAX ( ALL 80 ) WHEN + - 87 THEN NULL ELSE + - MAX ( DIS # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -119 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-96\)\) AS col0" at position 0 and "Int64\(\-50\) \- Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 96 AS col0, - 50 - + 69 AS col0 +---- +-119 +96 query I rowsort label-7474 SELECT - 66 + 55 * - CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) * - - COUNT ( DISTINCT 73 ) + + 90 * - 19 @@ -39355,8 +39882,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \+ Int64\(\-46\) \+ Int64\(15\) AS col0" at position 0 and "min\(Int64\(\-62\)\) / Int64\(93\) / CAST\(Int64\(\-82\) AS Int32\) \+ Int64\(52\) \* \(\- CAST\(NULL AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- \(\- count\(Int64\(43\)\)\)\) \+ Int64\(53\) \* Int64\(97\) / CAST\(Int64\(14\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-16 +NULL query I rowsort label-7478 SELECT ALL - CAST ( NULL AS INTEGER ) + + 37 AS col2 @@ -39414,8 +39944,12 @@ SELECT 89 / + 28 # Datafusion - Expected - 74 # Datafusion - Expected - 28 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 1 and "CAST\(\(\- count\(Int64\(\-40\)\)\) AS Int32\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 74 AS col2, 28 col0, CAST ( + - COUNT ( - 40 ) AS INTEGER ) AS col0 +---- +-1 +28 +74 query I rowsort label-7489 SELECT ( 14 ) * - CAST ( - - ( - 39 ) AS INTEGER ) * - 57 * + - 40 + - COUNT ( * ) @@ -39455,8 +39989,11 @@ SELECT COUNT ( - 40 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -147 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(coalesce\(Int64\(6\), \(\- Int64\(44\)\), \(\- Int64\(38\)\) \+ Int64\(76\)\)\)\) \* Int64\(73\) / Int64\(4\) \- min\(DISTINCT 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 II valuesort SELECT ALL + ( - MIN ( + COALESCE ( + 6, - + 44, - + 38 + + 76 ) ) ) * 73 / + 4 - + MIN ( DISTINCT 38 ) AS col2, - 80 AS col2 +---- +-147 +-80 query I rowsort label-7497 SELECT ALL CASE + 86 WHEN 14 * + - 15 + 14 + + - COUNT ( * ) * - ( CAST ( NULL AS INTEGER ) ) / + + 0 THEN CASE 17 WHEN + 77 THEN + 94 WHEN - CASE - ( COUNT ( * ) ) WHEN + 35 THEN + 44 WHEN 69 THEN NULL END + 11 THEN + NULLIF ( 39, + COALESCE ( 32, 13 - 10 ) ) * + 88 END / + ( 59 / - 49 ) END * + ( - 98 ) col1 @@ -39558,8 +40095,11 @@ SELECT - - 68 * - 29 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 268347 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(25\)\) AS col0" at position 0 and "Int64\(78\) \* Int64\(40\) \* Int64\(86\) \+ Int64\(\-59\) \+ Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 25 AS col0, 78 * + 40 * 86 + - 59 + + 86 AS col0 +---- +-25 +268347 query II rowsort label-7517 SELECT DISTINCT 46, COUNT ( * ) AS col2 @@ -40006,8 +40546,11 @@ SELECT COUNT ( * ) / - COALESCE ( - + 9, + - 75 / 43 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 114 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* Int64\(2\) AS col2" at position 0 and "Int64\(77\) / \(\- nullif\(Int64\(40\), Int64\(54\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 * + + 2 AS col2, 77 / - NULLIF ( + + 40, + 54 ) AS col2 +---- +-1 +114 query I rowsort label-7602 SELECT ALL 65 / + + 93 col2 @@ -40133,8 +40676,11 @@ 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\(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\. +query II valuesort SELECT + 25 * + 33 + ( + - 8 ) + + ( - 22 ) + + - COUNT ( * ) + + - 58 AS col0, 24 + - 29 AS col0 +---- +-5 +736 query I rowsort label-7626 SELECT + - CASE MAX ( ALL + 32 ) WHEN - 80 THEN + 22 * 3 - - 61 END @@ -40348,8 +40894,12 @@ SELECT - + ( + 67 ) * ( - COALESCE ( - + 57, - ( - CAST ( - 81 AS INTEGER ) ) + # Datafusion - Expected - 93 # Datafusion - Expected - -39 # Datafusion - Expected - 5133 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "Int64\(\-39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 93 AS col1, - 39 col1, + 87 * - ( - 59 ) AS col2 +---- +-39 +5133 +93 query I rowsort label-7667 SELECT 43 / COUNT ( ALL 36 ) + + 48 @@ -40529,8 +41079,11 @@ SELECT ALL NULLIF ( 44, - 83 * 55 ) + + 69 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -75 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-75\) AS col1" at position 0 and "Int64\(53\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 75 AS col1, 53 * + COUNT ( * ) AS col1 +---- +-75 +53 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -41142,8 +41695,11 @@ SELECT 14 / - 3 + + 90 # 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 "\(\- Int64\(3\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 87 AS col0, ( - ( 3 ) ) AS col0 +---- +-3 +87 query I rowsort label-7818 SELECT ALL - 24 / - + COUNT ( * ) @@ -41158,8 +41714,11 @@ 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\(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\. +query II valuesort SELECT + 95 AS col0, + COALESCE ( 19, - + 90 * COUNT ( * ) * - COUNT ( * ) + + 16, + COUNT ( * ) ) AS col0 +---- +19 +95 query I rowsort label-7821 SELECT ALL + 51 + CAST ( NULL AS INTEGER ) * - ( + 5 ) AS col1 @@ -41184,8 +41743,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 5 AS col1, ( + + COALESCE ( + 16, - + 11 * - 93 + - 79 ) ) / - - 63 * - COUNT ( * ) + 5 AS col1 +---- +5 +5 query I rowsort SELECT 2 + - 19 col1 @@ -41271,8 +41833,12 @@ SELECT + 36 * - 96 + + 55 * + 81 AS col1 # Datafusion - Expected - 64 # Datafusion - Expected - 1 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "Int64\(59\) \+ Int64\(\-15\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 64 AS col0, COUNT ( * ) AS col2, 59 + - 15 AS col0 +---- +1 +44 +64 query I rowsort SELECT 32 * 4 + - - 52 + + + ( + 50 ) + - 86 AS col1 @@ -42261,8 +42827,11 @@ SELECT DISTINCT + ( - ( - - 64 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2135 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ Int64\(36\) \* Int64\(\-62\) AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 97 + + 36 * - 62 AS col1, 90 AS col1 +---- +-2135 +90 query I rowsort label-8028 SELECT + 55 / 78 + + NULLIF ( + + COALESCE ( - - 82, 35 * + 40, + 19 ), + 7 ) * + - 49 * - + 75 @@ -42779,8 +43348,11 @@ SELECT DISTINCT + COUNT ( * ) + 95 * - + NULLIF ( + MIN ( - 10 ), + 21 * - - 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 59 AS col1, 42 col1 +---- +42 +59 query II rowsort label-8128 SELECT CAST ( NULL AS INTEGER ), - 70 AS col1 @@ -43019,8 +43591,11 @@ SELECT 30 * + - 62 * + 12 * + + 96 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \+ Int64\(\-47\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 + - 47 AS col0, + ( + 41 ) AS col0 +---- +18 +41 query I rowsort label-8174 SELECT DISTINCT 82 + - MIN ( - 56 ) @@ -43432,8 +44007,11 @@ 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\(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\. +query II valuesort SELECT ALL 20 + + 49 / COUNT ( * ) / + - 56 * - - 52 * - COUNT ( * ) AS col0, 76 AS col0 +---- +20 +76 query II rowsort SELECT 62 col0, 28 AS col1 @@ -43624,8 +44202,11 @@ SELECT DISTINCT + 78 + 29 * + - 28 AS col0 # 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 "CASE Int64\(75\) WHEN Int64\(93\) THEN NULL WHEN \(\- \(\- Int64\(61\)\)\) / Int64\(\-48\) THEN \(\- count\(Int64\(\-64\)\)\) END \* avg\(DISTINCT \(\- Int64\(90\)\)\) \+ Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 39 col0, CASE 75 WHEN + 93 THEN NULL WHEN - - ( + 61 ) / - 48 THEN - + COUNT ( - 64 ) END * + AVG ( DISTINCT - + 90 ) + + + 87 AS col0 +---- +39 +NULL query I rowsort SELECT 89 + + 83 col1 @@ -43763,8 +44344,11 @@ SELECT ( + 7 ) / + - NULLIF ( 18, - 43 ) AS col0 # 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\(91\) \+ Int64\(13\) \+ Int64\(62\) AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 91 + + 13 + 62 AS col1, + 35 AS col1 +---- +166 +35 query I rowsort SELECT ALL 15 * - ( + - 80 ) @@ -45105,8 +45689,11 @@ SELECT ALL - + 9 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(96\)\)\) AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - MAX ( ALL + 96 ) AS col0, 33 col0 +---- +-96 +33 query I rowsort label-8574 SELECT - CAST ( NULL AS INTEGER ) * - 96 + 0 + 66 / 30 + 61 @@ -45795,8 +46382,11 @@ SELECT 8 + + 35 - COUNT ( * ) * - 4 * - 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 84 AS col0, 58 AS col0 +---- +58 +84 query I rowsort label-8708 SELECT COUNT ( * ) + - 49 AS col1 @@ -46074,8 +46664,11 @@ SELECT - 56 * 69 * - + 73 # 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 "Int64\(79\) AS col1" at position 0 and "Int64\(\-99\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 79 AS col1, - 99 col1 +---- +-99 +79 query I rowsort label-8761 SELECT COALESCE ( COUNT ( * ), COUNT ( * ) * + - 90 ) @@ -46883,8 +47476,11 @@ SELECT DISTINCT - 68 * + 18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 172536 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(\-28\) \* \(\- Int64\(79\)\) AS col0" at position 0 and "Int64\(30\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 * - 28 * - + 79 col0, 30 * COUNT ( * ) AS col0 +---- +172536 +30 query I rowsort SELECT DISTINCT - 69 * + - 54 @@ -47956,8 +48552,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(\-57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) col1, - 57 AS col1 +---- +-1 +-57 query I rowsort label-9117 SELECT + - 84 + + COUNT ( * ) @@ -48285,8 +48884,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 702 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-13\), max\(DISTINCT Int64\(\-66\)\)\) \* Int64\(\-28\) \+ \(\- min\(Int64\(13\)\)\) \+ Int64\(32\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(56\) / Int64\(7\) AS col2" at position 0 and "Int64\(26\) \* Int64\(25\) \+ Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( - 13, MAX ( DISTINCT - 66 ) ) * - 28 + - MIN ( + 13 ) + 32 + - CAST ( NULL AS INTEGER ) + + 56 / + 7 AS col2, 26 * + 25 + + 52 AS col2 +---- +702 +NULL query I rowsort label-9179 SELECT DISTINCT 52 * + COUNT ( * ) * - 83 @@ -48363,8 +48965,11 @@ SELECT - COUNT ( * ) + + 35 * - - MAX ( - 19 ) * + ( - - COUNT ( * ) ) * - - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "CASE \(\- Int64\(89\)\) WHEN CAST\(NULL AS Int32\) \+ Int64\(\-74\) THEN NULL ELSE Int64\(45\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 61 AS col0, CASE - + 89 WHEN CAST ( NULL AS INTEGER ) + - 74 THEN NULL ELSE 45 END AS col0 +---- +45 +61 query I rowsort label-9194 SELECT ALL - ( - + MIN ( ALL + + 59 ) ) AS col2 @@ -48900,14 +49505,20 @@ SELECT ALL - 57 + - + 50 * - 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 AS col0, 73 AS col0 +---- +25 +73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col0" at position 0 and "Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 80 AS col0, 33 col0 +---- +33 +80 query I rowsort SELECT ALL + 85 * 93 AS col1 @@ -49024,8 +49635,11 @@ SELECT DISTINCT MIN ( + 96 ) + 40 + - NULLIF ( + + 62, 16 ) + ( + 3 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 564 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(94\) AS col0" at position 0 and "Int64\(0\) \+ Int64\(\-13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 6 ) * + 94 col0, + 0 + - 13 AS col0 +---- +-13 +564 query II rowsort label-9318 SELECT - MAX ( - 6 ) AS col2, NULLIF ( 15, + - 18 ) @@ -49191,8 +49805,11 @@ SELECT DISTINCT - COALESCE ( + + COUNT ( * ), + 33 ) + - - 4 * + - 98 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col2" at position 0 and "Int64\(\-28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 AS col2, - 28 AS col2 +---- +-28 +58 query I rowsort SELECT + 8 * - 76 @@ -49696,8 +50313,11 @@ SELECT ALL - COUNT ( * ) * + 66 + - + 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1501 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* Int64\(17\) \+ Int64\(\-88\) \+ Int64\(70\) / Int64\(\-34\) AS col1" at position 0 and "Int64\(\-14\) \- Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 83 * + 17 + - 88 + 70 / - 34 col1, - 14 - + + 66 AS col1 +---- +-1501 +-80 query I rowsort SELECT DISTINCT - + ( 37 ) @@ -50165,8 +50785,12 @@ SELECT DISTINCT + COUNT ( * ) + + 52 + + 83 + 4 * + 40 # Datafusion - Expected - -82 # Datafusion - Expected - 9 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(86\)\) \+ \(\- Int64\(77\)\) AS col1" at position 1 and "\(\- Int64\(\-27\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 82, SUM ( 86 ) + - + 77 col1, - - 27 AS col1 +---- +-82 +27 +9 query I rowsort SELECT ALL - ( + 42 ) AS col2 @@ -50209,8 +50833,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 98 AS col0, COUNT ( * ) col0 +---- +-98 +1 query I rowsort SELECT ALL ( + - 29 ) - ( + 98 ) @@ -50270,8 +50897,11 @@ SELECT ALL 97 * + ( 39 ) + 98 * 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 105 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) \- nullif\(Int64\(\-10\), Int64\(70\)\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 95 - NULLIF ( - 10, + 70 ) col1, 49 col1 +---- +105 +49 query I rowsort label-9553 SELECT 41 * - 11 * + 37 - - - 19 * - 92 * + ( + 82 ) + - - ( - SUM ( ALL - - 55 ) ) @@ -50297,8 +50927,11 @@ SELECT ALL + 41 + 38 + - + ( - 60 ) + COUNT ( 53 ) + + MIN ( - 14 ) * - 52 * + - # Datafusion - Datafusion expected results: # Datafusion - Expected - -3995 # Datafusion - Expected - 2295 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \* Int64\(\-47\) AS col0" at position 0 and "Int64\(87\) \+ \(\- Int64\(23\)\) \* \(\- Int64\(96\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 85 * - 47 AS col0, 87 + - + 23 * - + 96 col0 +---- +-3995 +2295 query I rowsort label-9558 SELECT DISTINCT - CASE - COUNT ( * ) WHEN 65 THEN + ( + 11 ) WHEN + 22 THEN NULL ELSE NULL END AS col2 @@ -50705,8 +51338,11 @@ SELECT CAST ( - - 42 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE WHEN NOT NULL != Int64\(41\) THEN NULL WHEN NOT Int64\(27\) IS NOT NULL THEN Int64\(\-51\) / max\(Int64\(11\)\) END \* CAST\(Int64\(6\) AS Int32\) \+ Int64\(\-67\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CASE WHEN NOT NULL <> + 41 THEN NULL WHEN NOT 27 IS NOT NULL THEN - 51 / + MAX ( ALL 11 ) END * + CAST ( + 6 AS INTEGER ) + - 67 col0, 79 AS col0 +---- +79 +NULL query I rowsort label-9636 SELECT + 59 - - 40 + + - CAST ( NULL AS INTEGER ) / + ( 81 ) * + 33 @@ -50748,8 +51384,11 @@ SELECT DISTINCT 14 * + 72 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 AS col0, 75 AS col0 +---- +61 +75 query I rowsort label-9644 SELECT ( 12 ) / 27 col1 @@ -51504,8 +52143,11 @@ SELECT ALL - - 8 - + - 32 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 AS col2, 72 col2 +---- +22 +72 query II rowsort label-9789 SELECT - SUM ( DISTINCT - 8 ), - 56 AS col2 @@ -52063,15 +52705,22 @@ SELECT ( + 78 ) + - - 40 * + - 15 * - COUNT ( * ) AS col1, COUNT ( * ) * + - SUM # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 1263 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(\-51\)\)\) \+ Int64\(28\) AS col2" at position 0 and "CAST\(Int64\(27\) AS Int32\) \* Int64\(47\) \+ Int64\(75\) \- Int64\(42\) \+ Int64\(\-39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) + + ( - COUNT ( - 51 ) ) + + 28 AS col2, CAST ( + 27 AS INTEGER ) * + ( 47 ) + 75 - + 42 + + - 39 AS col2 +---- +1263 +28 # 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\(Int64\(1\)\) AS count\(\*\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 36 AS col1, + CAST ( - 41 AS INTEGER ) AS col0, + + COALESCE ( + 49, + 32 ) + COUNT ( * ) AS col1 +---- +-41 +36 +50 query I rowsort SELECT ALL ( - 32 ) - 68 @@ -52174,14 +52823,20 @@ SELECT DISTINCT - + CAST ( + - 52 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(0\)\) \+ Int64\(34\) AS col1" at position 0 and "Int64\(\-64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( + 0 ) + 34 AS col1, - 64 AS col1 +---- +-64 +35 # 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 "\(\- nullif\(Int64\(\-29\), Int64\(15\) / Int64\(\-23\)\)\) \+ Int64\(\-31\) AS col1" at position 0 and "Int64\(\-58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - NULLIF ( - 29, + 15 / - 23 ) + - 31 AS col1, - 58 AS col1 +---- +-2 +-58 query I rowsort SELECT DISTINCT + + 52 + + - 41 @@ -52262,8 +52917,11 @@ SELECT ALL 20 - + - 80 - - 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col0" at position 0 and "Int64\(\-30\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 74 AS col0, - 30 * + COUNT ( * ) AS col0 +---- +-30 +74 query II rowsort SELECT 53 AS col0, - 97 * + 96 diff --git a/data/sqlite/random/expr/slt_good_92.slt b/data/sqlite/random/expr/slt_good_92.slt index bbf4d16..e7668f7 100644 --- a/data/sqlite/random/expr/slt_good_92.slt +++ b/data/sqlite/random/expr/slt_good_92.slt @@ -226,8 +226,11 @@ SELECT ALL 0 * + 89 * 64 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(4\)\) AS col0" at position 0 and "sum\(Int64\(\-10\)\) \+ Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 4 AS col0, + SUM ( - 10 ) + 75 AS col0 +---- +-4 +65 query I rowsort label-36 SELECT + - COUNT ( ALL + - 95 ) @@ -389,8 +392,11 @@ SELECT + 84 * + + 71 + + 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6973 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* \(\- Int64\(83\)\) \- \(\- Int64\(84\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 83 * + - ( + 83 ) - - + 84 AS col2, COUNT ( * ) AS col2 +---- +1 +6973 query I rowsort label-68 SELECT - ( MAX ( 87 ) ) + + + 33 @@ -1070,8 +1076,11 @@ SELECT + 92 * + + 37 + + 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(94\) THEN Int64\(38\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, CASE + COUNT ( * ) WHEN 94 THEN 38 END AS col2 +---- +1 +NULL query I rowsort SELECT ALL + + 34 + - 23 @@ -1675,8 +1684,12 @@ SELECT 60 * - ( + 54 ) # Datafusion - Expected - 48 # Datafusion - Expected - 53 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 48 AS col0, 53 AS col0, - COUNT ( * ) +---- +-1 +48 +53 query I rowsort label-317 SELECT DISTINCT + + 85 - + COUNT ( * ) AS col1 @@ -1739,8 +1752,11 @@ SELECT - MIN ( + 68 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 74 AS col2, 43 col2 +---- +43 +74 query I rowsort SELECT - 59 * - 59 - - - ( COALESCE ( 39, - 31, - 77 * - 45 ) ) * 92 @@ -2121,8 +2137,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 - 51 + + MAX ( + - 71 ) AS col2, COUNT ( * ) * 8 AS col2 +---- +-46 +8 query I rowsort SELECT ( 4 ) * 12 * + 15 + 84 @@ -2369,14 +2388,20 @@ SELECT + 24 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \- Int64\(27\) \+ Int64\(84\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 29 - 27 + + + 84 AS col2, 49 AS col2 +---- +49 +86 # 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\(1\)\) AS count\(\*\)\)\), Int64\(69\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( 13, + + 49 ) AS col2, - 28 + + NULLIF ( - - COUNT ( * ), + 69 ) AS col2 +---- +-13 +-27 query I rowsort label-450 SELECT + + MIN ( 48 ) @@ -2483,8 +2508,11 @@ SELECT DISTINCT + 82 AS col2, COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col0" at position 0 and "Int64\(\-89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 24 AS col0, ( + - 89 ) AS col0 +---- +-89 +24 query I rowsort SELECT - 60 * + 49 AS col2 @@ -2921,8 +2949,11 @@ SELECT DISTINCT - ( + 68 ) + - - 7 AS col1, + 94 * 30 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2888 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ Int64\(\-96\) \+ Int64\(71\) \+ Int64\(0\) \+ \(\- Int64\(\-76\)\) \* Int64\(38\) AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 25 + - 96 + 71 + - 0 + - - 76 * 38 AS col1, 43 AS col1 +---- +2888 +43 query I rowsort SELECT 89 * 70 - - 64 @@ -3135,8 +3166,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 30 * + COUNT ( * ) + - 41 AS col2, MAX ( DISTINCT - - 9 ) AS col2 +---- +-11 +9 query I rowsort label-594 SELECT ALL - 16 * 5 + + 73 + - 19 * - CASE + 77 WHEN + MAX ( ALL - 66 ) THEN NULL WHEN 25 THEN NULL WHEN + 87 / + COUNT ( * ) - + - NULLIF ( + 30, - + 52 ) THEN - 92 * - 88 END * + CASE 7 WHEN + 56 - 96 THEN NULL WHEN 75 * + 24 THEN 61 * + 44 WHEN ( COUNT ( * ) ) THEN NULL ELSE NULL END + - 29 * CAST ( 30 AS INTEGER ) @@ -3680,8 +3714,11 @@ SELECT - 11 + 23 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col2" at position 0 and "Int64\(\-14\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 84 AS col2, - 14 AS col2 +---- +-14 +84 query II rowsort label-699 SELECT - 51 * MAX ( DISTINCT + + ( - 46 ) ) - ( 63 ) AS col0, - ( - + 4 ) - - ( - + 90 ) AS col2 @@ -4116,8 +4153,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col0, + COUNT ( + 80 ) * + 51 + + ( - MIN ( 19 ) ) / + 29 + - 71 AS col0 +---- +-1 +-20 query I rowsort label-781 SELECT ALL - COUNT ( * ) / 94 AS col0 @@ -4321,8 +4361,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * 85 AS col2, + SUM ( 8 ) AS col2 +---- +8 +85 query I rowsort label-819 SELECT + 17 * + ( + COALESCE ( + + MAX ( - - 47 ), 25 + - 62 ) ) AS col2 @@ -4903,8 +4946,11 @@ SELECT 40 * + 46 - - 14 * + - 62 * + 53 * - 65 * - COUNT ( ( + 49 ) ) - + COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - -9728 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col1" at position 0 and "Int64\(19\) \* Int64\(8\) \* Int64\(\-64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 31 AS col1, 19 * 8 * - 64 AS col1 +---- +-9728 +31 query I rowsort SELECT - 1 + - 99 @@ -4919,8 +4965,11 @@ SELECT - + ( + + 88 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -926 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \+ \(\- Int64\(26\)\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "min\(Int64\(71\)\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ \(\- CAST\(Int64\(8\) AS Int32\)\) \+ Int64\(26\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 37 + - + 26 + - + CAST ( NULL AS INTEGER ) col0, + MIN ( 71 ) - - - COUNT ( * ) + - CAST ( 8 AS INTEGER ) + + 26 * - ( - COUNT ( * ) ) * - 38 AS col0 +---- +-926 +NULL query I rowsort SELECT ALL - 79 + - + 84 @@ -4970,8 +5019,11 @@ SELECT - 88 * + - ( + - SUM ( + 2 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1470600 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* Int64\(10\) \* Int64\(90\) \* Int64\(38\) AS col2" at position 0 and "Int64\(51\) / Int64\(43\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 43 * 10 * + 90 * 38 AS col2, 51 / 43 AS col2 +---- +1 +1470600 query I rowsort SELECT ALL - 58 - + 28 AS col0 @@ -4991,8 +5043,11 @@ SELECT + COUNT ( 60 ) # 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 col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( - 86 ) col1, + 84 AS col1 +---- +-86 +84 query I rowsort SELECT 95 * - + 96 * 54 * - 83 + + 77 AS col0 @@ -5029,8 +5084,12 @@ SELECT ( + 77 ) AS col2 # Datafusion - Expected - 63 # Datafusion - Expected - -15 # 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\(\-18\) \+ \(\- Int64\(\-3\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 63 AS col1, - 18 + - ( - 3 ) AS col1, - - CAST ( NULL AS INTEGER ) AS col2 +---- +-15 +63 +NULL query I rowsort label-953 SELECT CAST ( - + 94 AS INTEGER ) / + SUM ( - + 30 ) - + 78 @@ -5050,8 +5109,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1813 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-37\) \* Int64\(\-49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, - 37 * - 49 AS col0 +---- +1813 +NULL query I rowsort label-957 SELECT + 52 / NULLIF ( - 32, + 36 * + - 45 / + NULLIF ( + MAX ( DISTINCT - + 26 ), + 62 + + NULLIF ( + - CAST ( NULL AS INTEGER ), MIN ( ALL - + 3 ) + COUNT ( * ) ) + - 54 * + 21 / + ( - - 57 ) * 63 + + - 27 + MAX ( ALL + - 77 ) * - 92 * 87 ) - + COUNT ( ALL 79 ) + ( 51 ) + 72 * + 27 ) @@ -5430,8 +5492,11 @@ SELECT - 13, 76 + + + 22 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "Int64\(\-31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 17 AS col0, - 31 AS col0 +---- +-31 +17 query II rowsort SELECT ALL 26 AS col0, 73 col2 @@ -5478,8 +5543,11 @@ SELECT 33 - - 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \+ Int64\(20\) \* \(\- Int64\(6\)\) \+ \(\- \(\- Int64\(28\)\)\) AS col0" at position 0 and "Int64\(\-91\) \* \(\- Int64\(\-35\)\) / CASE \(\- Int64\(\-73\)\) WHEN CAST\(CAST\(Int64\(\-4\) AS Int32\) AS Int32\) \* \(\- Int64\(92\)\) THEN Int64\(75\) \* Int64\(0\) \+ Int64\(33\) \+ Int64\(77\) WHEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ CAST\(Int64\(26\) AS Int32\) THEN NULL END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-99 +NULL query I rowsort label-1037 SELECT ALL - + CAST ( NULL AS INTEGER ) + + + 4 + - 79 + - 19 / - 50 * - 19 @@ -5489,8 +5557,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) AS col1" at position 0 and "Int64\(\-15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 20 AS col1, - 15 AS col1 +---- +-15 +-20 query I rowsort label-1039 SELECT + - 87 * COUNT ( * ) * 33 + 52 @@ -5829,8 +5900,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 col2, 90 - + + COUNT ( * ) + - COUNT ( * ) AS col2 +---- +75 +88 query I rowsort label-1104 SELECT - COUNT ( * ) + + 6 @@ -5915,8 +5989,11 @@ SELECT ALL + 10 * - COUNT ( * ), + 61 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - -2108 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col2" at position 0 and "sum\(Int64\(62\)\) \* min\(Int64\(\-34\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 12 AS col2, SUM ( ( 62 ) ) * MIN ( - 34 ) AS col2 +---- +-2108 +12 query I rowsort label-1120 SELECT ALL - 46 * + COUNT ( * ) AS col0 @@ -6500,8 +6577,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - -4144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) AS col0" at position 0 and "Int64\(64\) \* \(\- nullif\(Int64\(66\), Int64\(8\)\)\) \+ Int64\(80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 68 col0, 64 * - NULLIF ( + 66, + 8 ) + + 80 AS col0 +---- +-4144 +-68 query I rowsort label-1232 SELECT 43 * - 92 * 10 / - CAST ( NULL AS INTEGER ) @@ -6958,14 +7038,20 @@ SELECT DISTINCT + + NULLIF ( + ( - + 71 ), + 56 - + 3 - + - 32 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3820 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \* Int64\(\-79\) \+ Int64\(51\) AS col1" at position 0 and "avg\(DISTINCT CAST\(\(\- CASE Int64\(23\) WHEN Int64\(48\) \* Int64\(\-44\) \- Int64\(\-6\) \+ Int64\(\-21\) THEN Int64\(1\) \+ Int64\(\-52\) \* Int64\(85\) \+ Int64\(\-35\) \+ Int64\(\-84\) / Int64\(65\) WHEN CAST\(NULL AS Int32\) / \(\- Int64\(57\)\) THEN NULL END\) AS Int32\)\) \* Int64\(77\) \- Int64\(\-43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + 49 * - 79 + + 51 AS col1, AVG ( DISTINCT + CAST ( + - CASE + 23 WHEN 48 * - 44 - - 6 + - 21 THEN + 1 + - 52 * + 85 + - 35 + - 84 / 65 WHEN + CAST ( NULL AS INTEGER ) / - + 57 THEN NULL END AS INTEGER ) ) * + + 77 - - 43 AS col1 +---- +-3820 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 174 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-93\) \+ coalesce\(Int64\(48\), Int64\(46\), coalesce\(Int64\(31\), CASE WHEN NOT Int64\(84\) IS NOT NULL THEN Int64\(48\) \+ Int64\(54\) \* Int64\(52\) ELSE NULL END\)\) \+ Int64\(32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-5 +174 query I rowsort SELECT + + 60 + + 62 AS col0 @@ -7089,8 +7175,11 @@ SELECT DISTINCT + 9 * + 6 # 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\(47\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + ( + + 47 ) ) col1, 66 AS col1 +---- +47 +66 query I rowsort label-1344 SELECT DISTINCT + + SUM ( + - 69 ) * - 14 + + - 31 + + 66 + - MAX ( + 58 ) * ( + 4 ) @@ -7413,8 +7502,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -5096 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(62\)\) \* coalesce\(Int64\(81\), Int64\(\-46\)\) \+ Int64\(\-74\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 62 * COALESCE ( + 81, + - 46 ) + - 74 AS col2, + 87 AS col2 +---- +-5096 +87 query I rowsort label-1405 SELECT DISTINCT + 76 * + 36 - + ( + - 25 ) + + 96 + + - COUNT ( 26 ) @@ -7593,8 +7685,11 @@ SELECT ALL - 44 / MIN ( DISTINCT 90 ) + - COALESCE ( - 9, + 5 + + 56 * + 15, - C # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-43\) 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 II valuesort SELECT ALL + - 43 AS col0, + SUM ( 40 ) AS col0 +---- +-43 +40 query I rowsort label-1439 SELECT DISTINCT - 94 / + CAST ( + ( + ( 34 ) ) AS INTEGER ) + 22 @@ -7609,8 +7704,11 @@ SELECT DISTINCT - - 84 / + + 4 + - - 27 * + 14 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col1" at position 0 and "max\(Int64\(11\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 74 col1, MAX ( ALL + 11 ) AS col1 +---- +11 +74 query II rowsort label-1442 SELECT COUNT ( * ), + ( - - 9 ) * + - COUNT ( * ) AS col1 @@ -7875,8 +7973,11 @@ SELECT ALL - 4 / - - 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 142 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ Int64\(15\) AS col0" at position 0 and "Int64\(74\) \+ Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 29 + + ( + 15 ) AS col0, 74 + + 68 AS col0 +---- +142 +44 query I rowsort label-1493 SELECT CAST ( NULL AS INTEGER ) + NULLIF ( + 90, - 67 - - COUNT ( - 68 ) + + + 36 ) @@ -7951,8 +8052,11 @@ SELECT - 5 - - - 75 - - 56 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4305 # Datafusion - Expected - 1922 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \* Int64\(76\) \+ Int64\(49\) AS col0" at position 0 and "\(\- Int64\(\-31\)\) \* Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 * + + 76 + 49 col0, - ( - 31 ) * + + 62 col0 +---- +1922 +4305 query I rowsort SELECT DISTINCT + 27 * - 19 - - 57 * - + 8 AS col2 @@ -8677,8 +8781,11 @@ SELECT ALL + 69 + + COALESCE ( + - 0, - - COUNT ( * ) - - - 92 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 44 AS col0, 35 AS col0 +---- +35 +44 query II rowsort SELECT 35, + 32 col0 @@ -9126,8 +9233,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 36 col0, COUNT ( * ) * + 95 AS col0 +---- +36 +95 query I rowsort SELECT ALL + 94 + + 12 AS col1 @@ -9680,8 +9790,11 @@ SELECT ALL - 7 + - - 93 AS 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\) AS col1" at position 0 and "Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 16 AS col1, - 25 AS col1 +---- +-16 +-25 query I rowsort label-1840 SELECT 49 - MAX ( DISTINCT 51 ) @@ -9755,8 +9868,11 @@ SELECT ALL - 88, + 92 * COUNT ( * ) * COUNT ( * ) + + 93 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -1144 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "Int64\(\-26\) \* Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 AS col0, - 26 * 44 AS col0 +---- +-1144 +46 query I rowsort label-1854 SELECT COUNT ( * ) * + 83 col2 @@ -10503,8 +10619,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +43 +49 +NULL query I rowsort SELECT ALL 57 + - ( 92 ) * 71 AS col1 @@ -11174,8 +11294,11 @@ SELECT ALL 99 * + 37 * - 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 146 # Datafusion - Expected - -3444 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \- Int64\(\-88\) AS col1" at position 0 and "Int64\(\-84\) \* sum\(Int64\(41\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 58 - - 88 AS col1, - 84 * SUM ( ALL + 41 ) AS col1 +---- +-3444 +146 query I rowsort SELECT DISTINCT 34 * + 40 * + 21 * - - 47 col1 @@ -11471,8 +11594,11 @@ SELECT DISTINCT + - ( 34 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-99\) AS col1" at position 0 and "Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 99 AS col1, ( - 85 ) AS col1 +---- +-85 +-99 query I rowsort label-2181 SELECT DISTINCT - 80 * 82 * 34 * + COUNT ( * ) * - COUNT ( * ) + + + CASE + NULLIF ( COUNT ( DISTINCT - 56 ), 77 ) WHEN - 18 THEN NULL WHEN - CASE 84 WHEN - COUNT ( * ) / 30 + 93 * ( - COUNT ( * ) * - COUNT ( * ) + - 94 ) THEN NULL WHEN 15 / 46 THEN - COUNT ( * ) / ( - CAST ( NULL AS INTEGER ) ) + + 42 * 9 END THEN NULL WHEN + 98 / + NULLIF ( COALESCE ( + 38, - 11 / 51 ), 71 * 80 - 86 ) THEN COUNT ( * ) / + 84 ELSE 14 END + + ( - 15 ) * + ( ( 98 ) + - SUM ( ALL 14 + - 84 ) ) @@ -11657,8 +11783,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - 1505 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col2" at position 0 and "sum\(DISTINCT \(\- Int64\(79\)\)\) \* Int64\(52\) \- Int64\(82\) \+ Int64\(\-67\) \* Int64\(1\) \* Int64\(\-85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 AS col2, + SUM ( DISTINCT - + 79 ) * + + ( + 52 ) - + 82 + - 67 * 1 * - 85 col2 +---- +1505 +96 query I rowsort label-2216 SELECT ALL - MIN ( + 13 ) @@ -11795,8 +11924,11 @@ SELECT + MAX ( + - 46 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \* \(\- sum\(Int64\(\-60\)\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-20\) \+ Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 70 AS col2, CAST ( NULL AS INTEGER ) * - SUM ( ALL - 60 ) * - ( + - COUNT ( * ) ) * - 20 + - 88 AS col2 +---- +-70 +NULL query I rowsort SELECT - 44 * + 59 - 21 AS col1 @@ -12566,8 +12698,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1909 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) / Int64\(33\) \- Int64\(78\) \+ Int64\(59\) \* Int64\(\-31\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 76 / + 33 - + + 78 + 59 * - 31 AS col2, + 67 AS col2 +---- +-1909 +67 query I rowsort label-2389 SELECT DISTINCT - 75 * + + 42 + + COUNT ( * ) @@ -13036,8 +13171,11 @@ SELECT ALL - - COUNT ( + CAST ( NULL AS INTEGER ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 AS col1, 46 AS col1 +---- +46 +56 query I rowsort label-2477 SELECT - SUM ( - 91 ) AS col0 @@ -13079,8 +13217,11 @@ SELECT DISTINCT 75 * + 5 * - 52 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -52 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-52\) AS col1" at position 0 and "Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 52 AS col1, - 40 AS col1 +---- +-40 +-52 query I rowsort SELECT 91 * 41 AS col0 @@ -13166,8 +13307,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col1, + 92 AS col1 +---- +1 +92 query I rowsort SELECT - + 82 * + 56 AS col1 @@ -13345,8 +13489,12 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-91\) \+ Int64\(\-1\) \- Int64\(26\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 32 * 76 * - 70 * 17 + - + 13 AS col1, 13 / 62 - - - 36 col2, - - 22 * - + COUNT ( * ) * - 91 + - 1 - + 26 col1 +---- +-2894093 +-36 +1975 query I rowsort label-2535 SELECT - CAST ( NULL AS INTEGER ) * - + 74 * - CASE - 25 WHEN - 63 * + + 27 / - 66 THEN + ( + - COUNT ( * ) ) * COUNT ( * ) * - + SUM ( DISTINCT - 74 ) + 2 + + NULLIF ( + 39, + 16 ) END AS col2 @@ -13535,8 +13683,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 34 + 5 + COUNT ( 23 ) AS col1, - NULLIF ( + 43, + COUNT ( * ) ) AS col1 +---- +-28 +-43 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -14460,8 +14611,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 67 AS col0, - 93 * 70 * - NULLIF ( 50, + - COUNT ( * ) ) AS col0 +---- +325500 +67 query I rowsort label-2746 SELECT - 63 / + + CASE + 39 WHEN + COUNT ( * ) * + + 60 THEN + 20 + 5 * + CASE ( - ( - - 55 ) ) WHEN - CASE ( + 84 ) WHEN 75 THEN - + 27 * 99 * CASE 1 WHEN 8 / MAX ( DISTINCT + 30 ) - - 53 - - 9 / - 90 THEN NULL WHEN - COUNT ( * ) THEN + CAST ( + ( 89 ) AS INTEGER ) ELSE NULL END / NULLIF ( - 20, 80 ) WHEN 32 THEN NULL ELSE NULL END THEN - 42 ELSE COUNT ( * ) * 92 END END * - 43 + + CASE 2 + 71 WHEN CAST ( NULL AS INTEGER ) * + NULLIF ( - ( 66 ), - CASE + CASE - 10 WHEN NULLIF ( 25, + ( + 73 ) / + 33 - 34 ) * 41 - 5 * - 19 THEN MAX ( ALL - 24 ) * + 98 WHEN 85 + + AVG ( + 79 ) THEN NULL ELSE - 66 END WHEN COUNT ( * ) THEN CASE + 80 WHEN + NULLIF ( 33, - 28 + ( 75 ) ) - - 98 THEN COUNT ( * ) + MAX ( 70 ) * - COUNT ( 42 * + NULLIF ( 0, 14 ) ) WHEN + ( ( 35 ) ) * - 45 THEN NULL WHEN + 62 + + 99 THEN NULL END + 71 END ) THEN + 96 ELSE + ( COUNT ( * ) ) END @@ -14524,8 +14678,11 @@ NULL # 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 "Int64\(\-33\) AS col1" at position 0 and "Int64\(\-55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 33 AS col1, - 55 AS col1 +---- +-33 +-55 query I rowsort label-2758 SELECT ALL - 65 * - - COUNT ( ALL + 45 ) * - CAST ( NULL AS INTEGER ) @@ -14824,8 +14981,11 @@ SELECT + 16 / + + 67 + + CASE MIN ( ALL - + 4 ) WHEN - - 41 THEN - - 83 * 32 + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 304 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "Int64\(71\) \+ Int64\(5\) \* coalesce\(\(\- Int64\(\-56\)\), \(\- nullif\(\(\- Int64\(92\)\), Int64\(\-19\)\)\)\) \+ Int64\(\-47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 AS col2, 71 + + + 5 * + COALESCE ( - - 56, - NULLIF ( - + 92, + - 19 ) ) + + ( - 47 ) AS col2 +---- +304 +53 query I rowsort SELECT ALL + - 82 + + 39 @@ -15213,8 +15373,11 @@ SELECT - 51 * - - 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4047 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* Int64\(71\) AS col0" at position 0 and "\(\- coalesce\(Int64\(53\), Int64\(30\) \* \(\- CASE Int64\(7\) WHEN Int64\(27\) THEN Int64\(\-39\) ELSE NULL END\) \* min\(Int64\(45\)\) \- \(\- Int64\(6\)\) \+ Int64\(5\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 57 * + 71 AS col0, - COALESCE ( + ( + 53 ), + 30 * - CASE + 7 WHEN 27 THEN - 39 ELSE NULL END * + MIN ( + ( + 45 ) ) - - + 6 + 5 ) AS col0 +---- +-53 +4047 query I rowsort SELECT - 68 - - - 30 AS col2 @@ -15229,14 +15392,20 @@ SELECT + ( + + 91 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -3584 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(64\) \* Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) col0, ( 64 ) * - 56 AS col0 +---- +-3584 +1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1677 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \* Int64\(43\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 39 * + 43 AS col0, 56 col0 +---- +1677 +56 query I rowsort label-2892 SELECT - COUNT ( * ) + 5 AS col0 @@ -15579,8 +15748,11 @@ SELECT - COALESCE ( - CASE - + 96 WHEN CAST ( + ( + - 98 ) AS FLOAT8 ) THEN NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "Int64\(\-75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 99 AS col1, - 75 AS col1 +---- +-75 +99 query I rowsort label-2957 SELECT DISTINCT + 61 - NULLIF ( - 48, + + 85 - 35 ) + MAX ( - 34 ) + + 11 * + - COUNT ( + 69 ) @@ -15836,8 +16008,11 @@ SELECT + + 91 + + 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 884 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \* \(\- Int64\(\-34\)\) AS col2" at position 0 and "Int64\(4\) \* Int64\(\-26\) \+ Int64\(21\) \+ Int64\(77\) \* Int64\(72\) \* Int64\(71\) \* count\(\(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 26 * - - 34 AS col2, 4 * + - 26 + 21 + 77 * + 72 * + 71 * + + COUNT ( - CAST ( NULL AS INTEGER ) ) AS col2 +---- +-83 +884 query I rowsort SELECT DISTINCT + ( + 59 ) + 65 @@ -15945,8 +16120,11 @@ SELECT - 94 + + - COALESCE ( 85, 47 / + 42 + + 84 * + + 50 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col1" at position 0 and "Int64\(53\) \+ \(\- coalesce\(Int64\(\-61\), Int64\(79\) / Int64\(39\) \* Int64\(\-40\) \+ Int64\(\-67\) \+ Int64\(20\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 col1, + 53 + - COALESCE ( - 61, + 79 / + 39 * ( - 40 ) + - 67 + + 20 ) AS col1 +---- +114 +24 query I rowsort label-3027 SELECT ALL - MIN ( - ( + 44 ) ) @@ -16146,8 +16324,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) AS col2, - 87 * + + 45 - + + 65 AS col2 +---- +-1 +-3980 query I rowsort SELECT + 19 * 57 * + 53 * - CASE - 3 WHEN 33 + + - 19 THEN NULL ELSE 51 END + - + 99 AS col0 @@ -16254,8 +16435,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 33 - 4 AS col0, - 43 + - COUNT ( * ) + + NULLIF ( - - 49, + 46 ) / - - COUNT ( * ) AS col1, - COUNT ( * ) AS col0 +---- +-1 +29 +5 query I rowsort SELECT 63 * ( - 9 ) AS col2 @@ -16418,8 +16603,11 @@ SELECT - CAST ( - - 84 AS INTEGER ) + - - 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 AS col0, COUNT ( * ) AS col0 +---- +1 +76 query II rowsort SELECT DISTINCT 97, + 85 AS col1 @@ -16571,8 +16759,11 @@ SELECT DISTINCT - 75 - 76 # Datafusion - Datafusion expected results: # Datafusion - Expected - 419490 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(90\) \* Int64\(59\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- min\(Int64\(25\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 * + 90 * + 59 * COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) + - MIN ( 25 ) AS col2 +---- +419490 +NULL query I rowsort label-3146 SELECT 98 / + 61 * COUNT ( ALL + ( 47 ) ) AS col2 @@ -16884,8 +17075,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(77\)\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 77 AS col0, + 38 AS col0 +---- +-77 +38 query I rowsort label-3206 SELECT COUNT ( * ) + 54 AS col1 @@ -17109,8 +17303,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * - 93 + - 86 * - 39 + + - 45 AS col2, 5 AS col2 +---- +3216 +5 query I rowsort SELECT - 63 - 81 * 64 - - 74 - ( - 16 ) * 3 @@ -17245,8 +17442,11 @@ SELECT ALL 60 * - 34 AS col2 # 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 "CASE Int64\(29\) WHEN Int64\(\-88\) THEN Int64\(\-33\) END AS col2" at position 0 and "Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( CASE + 29 WHEN - 88 THEN - 33 END ) AS col2, + 72 AS col2 +---- +72 +NULL query I rowsort SELECT 95 + + 73 col2 @@ -17371,14 +17571,20 @@ 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\(Int64\(1\)\) AS count\(\*\) THEN count\(Int64\(\-4\)\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 10 AS col1, 39 * - 65 * + CASE 23 WHEN - 6 THEN NULL WHEN + COUNT ( * ) THEN + COUNT ( ALL + - 4 ) END AS col1 +---- +10 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - -131009 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col0" at position 0 and "Int64\(26\) \* Int64\(56\) \* max\(Int64\(\-90\)\) \+ \(\- \(\- Int64\(31\)\)\) / Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 72 AS col0, 26 * 56 * MAX ( - 90 ) + - - ( 31 ) / 1 AS col0 +---- +-131009 +72 query II rowsort label-3300 SELECT + 38 * - 16 - + 89 AS col0, COALESCE ( COUNT ( * ), + COUNT ( * ) * 2 / - 69 * + 56 ) * - + 79 * + COUNT ( * ) AS col1 @@ -18408,8 +18614,11 @@ SELECT - MIN ( - 41 ), + 20 + - 12 * + 45 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \+ Int64\(\-60\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + CAST ( NULL AS FLOAT8 ) + + - 60 AS col1, + 53 AS col1 +---- +53 +NULL query I rowsort label-3500 SELECT DISTINCT 54 / + 79 * + - 28 * 15 - + 70 @@ -18657,8 +18866,11 @@ SELECT ALL - 87 col1, + 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "Int64\(\-47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 AS col2, - 47 AS col2 +---- +-47 +71 query II rowsort SELECT 6 AS col1, + 71 @@ -19216,8 +19428,11 @@ SELECT - 90 * - ( - COUNT ( * ) ) + + + 87 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 155 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ Int64\(62\) AS col2" at position 0 and "Int64\(84\) / Int64\(17\) \+ \(\- coalesce\(Int64\(48\), Int64\(80\) \* Int64\(\-1\) \- Int64\(32\) \* Int64\(72\), Int64\(\-80\) / Int64\(98\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 93 + + 62 AS col2, ( + + 84 ) / 17 + + - COALESCE ( + + 48, + 80 * - 1 - 32 * 72, - 80 / 98 ) AS col2 +---- +-44 +155 query I rowsort label-3655 SELECT DISTINCT + 21 * + ( - - CAST ( NULL AS INTEGER ) ) @@ -19369,8 +19584,11 @@ NULL # 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\(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\. +query II valuesort SELECT + 72 AS col1, CASE + 20 WHEN - + ( COUNT ( * ) ) THEN + - 18 WHEN 63 * + 78 THEN NULL END / - ( - - 14 ) + 37 AS col1 +---- +72 +NULL query I rowsort SELECT 69 * 9 AS col2 @@ -19634,8 +19852,11 @@ SELECT + 53 + + COUNT ( * ) / + 14 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-23\) AS col2" at position 0 and "Int64\(\-48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 23 AS col2, - 48 AS col2 +---- +-23 +-48 query I rowsort label-3735 SELECT - - 29 / + 43 AS col1 @@ -19984,8 +20205,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 9 - - 49 + - + 43 AS col1, - COUNT ( * ) AS col1 +---- +-1 +15 query II rowsort SELECT 84, 95 col1 @@ -20355,8 +20579,11 @@ SELECT + - 67 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 63 AS col1, + 47 AS col1 +---- +-63 +47 query I rowsort SELECT DISTINCT - - COALESCE ( 24, - + 98 + + + 73 * - 56 * - ( + + ( - + ( + + 84 ) ) ) + 99 ) * - - 42 AS col0 @@ -20757,8 +20984,11 @@ SELECT ALL 67 + + - 76 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(1\), Int64\(45\)\) \* Int64\(\-96\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL NULLIF ( + + ( + + 1 ), 45 ) * - 96 * + COUNT ( * ) AS col1, 2 col1 +---- +-96 +2 query I rowsort label-3948 SELECT + COUNT ( * ) * - ( - - 4 ) * SUM ( ALL + 28 ) AS col2 @@ -20862,8 +21092,11 @@ SELECT DISTINCT - MAX ( DISTINCT - + 17 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 +---- +1 +NULL query II rowsort label-3968 SELECT DISTINCT + + 91 AS col1, + ( 52 ) / + ( - 20 ) - + 61 + + + ( + + ( + - 9 ) ) + MAX ( DISTINCT - ( 87 ) ) + - - 51 @@ -21672,8 +21905,11 @@ SELECT + ( 5 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT DISTINCT + - 40 col2, + 96 AS col2 +---- +-40 +96 query I rowsort label-4125 SELECT ALL + 58 * + 5 + - COUNT ( * ) + - 86 * + 38 @@ -22052,8 +22288,11 @@ SELECT DISTINCT 78 + - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 4536 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "Int64\(63\) \* Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 76 AS col0, + 63 * + + 72 AS col0 +---- +4536 +76 query I rowsort SELECT ALL 13 + + 87 col0 @@ -22111,14 +22350,20 @@ SELECT - - MIN ( + 67 ) AS col2, - 75 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col0" at position 0 and "Int64\(30\) \+ Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 19 AS col0, 30 + 34 AS col0 +---- +19 +64 # 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 90 * - COUNT ( * ) AS col2, 86 AS col2 +---- +86 +90 query I rowsort SELECT ALL 90 * - 97 @@ -22334,8 +22579,11 @@ SELECT - 50 - - 33 + - 39 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(20\)\) AS col1" at position 0 and "Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - ( + 20 ) AS col1, - 35 AS col1 +---- +-20 +-35 query I rowsort label-4252 SELECT - 75 / - + 12 + - - COUNT ( * ) AS col2 @@ -22443,8 +22691,11 @@ SELECT DISTINCT - 11 * - 61 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col2" at position 0 and "Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 72 AS col2, - 74 col2 +---- +-72 +-74 query I rowsort label-4272 SELECT ALL - CASE 51 WHEN - COUNT ( DISTINCT 2 ) - + 59 THEN NULL WHEN + 44 + - 83 THEN + 58 WHEN - + 35 * + 58 + - 69 THEN NULL ELSE - COUNT ( ALL + ( 27 ) ) END * + COUNT ( * ) @@ -22490,8 +22741,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 59 AS col0, 58 * + 90 + - COUNT ( * ) AS col0 +---- +-59 +5219 query I rowsort SELECT + 34 + 99 @@ -22827,8 +23081,11 @@ SELECT + 74 - - 75 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) AS col2" at position 0 and "Int64\(\-57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 98 col2, - 57 col2 +---- +-57 +-98 query I rowsort label-4346 SELECT DISTINCT - 87 + - CAST ( NULL AS INTEGER ) - 80 * + - 80 * + 13 * + 84 * - 23 AS col0 @@ -22895,8 +23152,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 * - 57 - - 30 * - + 81 AS col0, - COUNT ( * ) AS col0 +---- +-1 +-3855 query I rowsort SELECT 76 * + - 51 AS col2 @@ -22972,8 +23232,11 @@ SELECT - ( COUNT ( * ) ) * - + 57 + ( + 72 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - -70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col1" at position 0 and "Int64\(\-70\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 AS col1, - 70 col1 +---- +-70 +69 query I rowsort label-4373 SELECT CAST ( COUNT ( * ) AS INTEGER ) + + - 48 AS col1 @@ -23370,8 +23633,11 @@ SELECT DISTINCT - COALESCE ( + 32, - ( + CASE - - 37 WHEN 98 THEN + 50 END ) ) A # Datafusion - Datafusion expected results: # Datafusion - Expected - 1216 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-27\)\) \* Int64\(42\) \+ Int64\(21\) \+ \(\- Int64\(\-61\)\) AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 27 * 42 + 21 + - - 61 AS col1, + 50 col1 +---- +1216 +50 query II rowsort label-4450 SELECT - 6 AS col0, ( + COUNT ( * ) ) @@ -23436,8 +23702,11 @@ SELECT - - 43 + ( + 17 ) / + 53 - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 4032 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-48\)\) AS col1" at position 0 and "Int64\(\-42\) \* coalesce\(Int64\(\-96\), \(\- Int64\(\-5\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - - 48 ) AS col1, - 42 * + COALESCE ( - 96, - - 5 ) col1 +---- +4032 +48 query I rowsort SELECT ALL - 66 + + 62 @@ -23632,8 +23901,12 @@ SELECT ALL + COUNT ( * ) + + 98 AS col0 # Datafusion - Expected - 0 # Datafusion - Expected - -62 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) / coalesce\(Int64\(32\), Int64\(\-50\) \* \(\- Int64\(73\)\), Int64\(93\) \+ \(\- Int64\(\-35\)\) / count\(Int64\(16\)\) / Int64\(15\)\) AS col1" at position 0 and "Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 17 / + + COALESCE ( 32, - 50 * - + 73, 93 + - - 35 / COUNT ( + + 16 ) / 15 ) AS col1, - 62 AS col1, - - 6 + + COUNT ( + 37 ) + + + 58 + - + COUNT ( * ) - 67 +---- +-3 +-62 +0 query II rowsort label-4500 SELECT ALL + 18 - - MIN ( ALL 59 ), + COUNT ( * ) + 41 AS col0 @@ -23882,8 +24155,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - COUNT ( * ) AS col0, 12 AS col0 +---- +-1 +12 query I rowsort SELECT DISTINCT - + ( 24 ) @@ -24257,8 +24533,11 @@ SELECT ( - ( 53 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 93 AS col1, COUNT ( * ) * COUNT ( * ) AS col1 +---- +-93 +1 query I rowsort label-4617 SELECT ALL - 34 * - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * 19 * - - COUNT ( * ) * - 75 * 31 * ( + - COUNT ( * ) ) AS col0 @@ -24390,8 +24669,11 @@ 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\(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\. +query II valuesort 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 +---- +-384 +1071 query I rowsort label-4642 SELECT - ( 49 ) + COUNT ( * ) AS col0 @@ -24727,8 +25009,11 @@ SELECT + 89 - COUNT ( * ) # 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 col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 16 col0, 95 AS col0 +---- +16 +95 query I rowsort SELECT NULLIF ( 32, 24 / - 29 ) AS col0 @@ -24851,8 +25136,11 @@ SELECT ALL + MAX ( ALL + 26 ) * + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1856 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \* Int64\(58\) AS col2" at position 0 and "CAST\(Int64\(27\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 32 * + 58 AS col2, + CAST ( + 27 AS INTEGER ) col2 +---- +1856 +27 query I rowsort label-4731 SELECT - 76 - - MAX ( - + 98 ) + - - 63 * + - 71 AS col2 @@ -25026,8 +25314,11 @@ SELECT ALL - COUNT ( * ) + 45 AS col2, SUM ( ALL 87 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 AS col0, 46 AS col0 +---- +46 +76 query I rowsort SELECT ALL 37 + 60 + - - 49 @@ -25063,8 +25354,11 @@ NULL # 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 "Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 61 AS col0, + 3 col0 +---- +3 +61 query I rowsort SELECT 6 * - - 37 AS col2 @@ -25094,8 +25388,12 @@ SELECT 80 - + + 95 AS col0 # Datafusion - Expected - -1 # Datafusion - Expected - 87 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \+ \(\- Int64\(\-46\)\) AS col1" at position 1 and "Int64\(63\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - COUNT ( * ), + 41 + - ( - 46 ) AS col1, 63 col1 +---- +-1 +63 +87 query I rowsort SELECT 38 * - + 47 - + - 24 * - + 52 AS col1 @@ -25146,8 +25444,11 @@ SELECT + 72 * + ( - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col1" at position 0 and "Int64\(\-21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 73 AS col1, - 21 AS col1 +---- +-21 +73 query I rowsort label-4786 SELECT - ( - CAST ( + - ( - 67 ) AS INTEGER ) ) * 20 + - COUNT ( * ) @@ -25372,8 +25673,11 @@ SELECT ALL + + 40 * + 95 + + 98 + + + 26 * - - ( - 72 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -158 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "nullif\(Int64\(\-96\), Int64\(9\) \- Int64\(92\) \+ Int64\(53\)\) \- Int64\(62\) \+ count\(Int64\(1\)\) AS count\(\*\) \* coalesce\(\(\- Int64\(\-48\)\), CAST\(Int64\(41\) AS Int32\) \* sum\(DISTINCT Int64\(71\)\)\) / Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 60 ) AS col0, + NULLIF ( - 96, 9 - 92 + + 53 ) - + 62 + + + COUNT ( * ) * COALESCE ( - - 48, + CAST ( + 41 AS INTEGER ) * SUM ( DISTINCT 71 ) ) / 54 AS col0 +---- +-158 +60 query I rowsort label-4828 SELECT - + 63 + - MAX ( - - 33 ) AS col1 @@ -25591,8 +25895,11 @@ SELECT COUNT ( * ) + + 57 + - 45 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - 3880 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col0" at position 0 and "Int64\(97\) \* Int64\(40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 39 col0, 97 * 40 AS col0 +---- +-39 +3880 query I rowsort label-4870 SELECT 84 / COUNT ( * ) AS col2 @@ -25703,8 +26010,12 @@ NULL # Datafusion - Expected - -9 # Datafusion - Expected - 4824 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) AS col1" at position 0 and "Int64\(\-30\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + - 9 col1, ( + 67 ) * + 72, - 30 col1 +---- +-30 +-9 +4824 query I rowsort label-4891 SELECT ALL - 43 + - + 88 + COUNT ( * ) * - - ( - MIN ( DISTINCT 12 ) ) / - COUNT ( * ) - 95 + - - 60 * + 31 @@ -26235,8 +26546,11 @@ SELECT ALL + 12 + - NULLIF ( + 22, + 5 ) * - - 88 AS col0, COUNT ( * ) # 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 "\(\- Int64\(84\)\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 84 ) AS col1, 84 AS col1 +---- +-84 +84 query I rowsort label-4993 SELECT - + COALESCE ( + 24, + 98 * - MIN ( + - 4 ) ) AS col2 @@ -26306,8 +26620,11 @@ 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\(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\. +query II valuesort SELECT ALL - ( ( COUNT ( * ) ) ) AS col2, - 96 * - + 22 / 49 / ( - + 68 ) + MAX ( ALL + ( + 20 ) ) col2 +---- +-1 +20 query II rowsort SELECT + 87 AS col2, 52 @@ -26853,8 +27170,11 @@ SELECT DISTINCT NULLIF ( 9, 52 * 59 ) / 39 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 186 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(99\) \+ Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col2, 99 + 87 AS col2 +---- +186 +NULL query I rowsort label-5113 SELECT DISTINCT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 @@ -26920,8 +27240,11 @@ SELECT + + ( - 98 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "Int64\(64\) \* Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 25 AS col1, 64 * 0 AS col1 +---- +0 +25 query I rowsort SELECT + 51 * - ( 39 ) @@ -27408,8 +27731,11 @@ SELECT ALL 83 + - 66 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1565 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \- Int64\(22\) \* Int64\(\-69\) \+ \(\- Int64\(42\)\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 89 - 22 * - 69 + - + 42 AS col2, 2 AS col2 +---- +1565 +2 query I rowsort label-5218 SELECT ALL - CAST ( NULL AS INTEGER ) + + CAST ( 22 AS INTEGER ) AS col2 @@ -28465,8 +28791,12 @@ SELECT ALL 95 - + 97 + - 54 - - + 0 AS col2 # Datafusion - Expected - -52 # Datafusion - Expected - -1918 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \+ Int64\(46\) \* Int64\(\-43\) AS col0" at position 1 and "Int64\(43\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 52, 60 + + + 46 * - 43 AS col0, 43 col0 +---- +-1918 +-52 +43 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -28544,8 +28874,12 @@ SELECT ALL 35 + 66 * 54 + + + 0 * - 37 # Datafusion - Expected - 125 # Datafusion - Expected - NULL # Datafusion - Expected - 2368 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \+ Int64\(31\) AS col0" at position 0 and "Int64\(37\) \* Int64\(64\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IRI valuesort SELECT DISTINCT 94 + 31 AS col0, NULLIF ( - CAST ( 47 AS FLOAT8 ), + COUNT ( - ( + 84 ) ) ) * - CAST ( NULL AS INTEGER ) + - 17, 37 * + 64 AS col0 +---- +125 +2368 +NULL query II rowsort label-5433 SELECT + SUM ( - - 55 ), + 40 * COUNT ( ( 24 ) ) AS col1 @@ -28846,8 +29180,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, + 39 AS col1 +---- +1 +39 query I rowsort label-5490 SELECT - 74 * + 87 * COALESCE ( - SUM ( DISTINCT 84 ), + 30 ) col0 @@ -29378,8 +29715,11 @@ SELECT + 65 * + - ( 99 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \+ Int64\(94\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 53 + 94 AS col2, + 98 col2 +---- +41 +98 query I rowsort SELECT - NULLIF ( + 72, 57 + - 75 + 7 * + - 43 ) + 87 @@ -29450,8 +29790,11 @@ SELECT - CASE - COUNT ( * ) WHEN - 80 THEN NULL ELSE - 59 END * COUNT ( * ) AS c # 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 "\(\- sum\(Int64\(39\)\)\) AS col2" at position 0 and "Int64\(\-27\) / Int64\(67\) \* \(\- Int64\(62\)\) \* Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - SUM ( + 39 ) AS col2, - 27 / + 67 * - + 62 * + 55 AS col2 +---- +-39 +0 query I rowsort SELECT DISTINCT + 5 col0 @@ -29558,8 +29901,11 @@ SELECT 56 / - 59 + 78 * 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 80 col2, 52 AS col2 +---- +52 +80 query I rowsort SELECT 51 + 8 @@ -29913,8 +30259,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) - - + MIN ( - 65 ) AS col1, - 51 AS col1 +---- +-51 +-64 query II rowsort label-5693 SELECT + ( - 91 ) * 83 * - + 5 + - - 88 AS col2, - 6 * NULLIF ( + - CASE + + 58 WHEN - 82 + 62 THEN NULL WHEN - 0 + 89 + - + AVG ( 36 ) * - + NULLIF ( - - SUM ( DISTINCT + 88 ), + COUNT ( * ) + + 23 ) * 41 * + 84 THEN ( COUNT ( * ) ) - - 41 / 27 WHEN COUNT ( * ) THEN NULL WHEN + 87 THEN NULL END, + 25 * 98 ) / - ( + 82 ) @@ -30145,8 +30494,11 @@ SELECT + CASE + + 94 WHEN - - NULLIF ( + CASE - + ( + - 68 ) WHEN + - 50 / - + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 AS col0, 24 AS col0 +---- +24 +6 query I rowsort label-5736 SELECT - 38 + COUNT ( * ) @@ -30192,8 +30544,11 @@ SELECT SUM ( + - 25 ) * + 35 * - 65 + + + 31 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, + 3 AS col2 +---- +1 +3 query I rowsort label-5745 SELECT ( - 34 ) + + CASE + 75 WHEN - - COUNT ( * ) THEN NULL WHEN - 18 THEN + 44 END AS col2 @@ -30411,8 +30766,13 @@ SELECT 65 - COUNT ( * ) + + - COUNT ( * ) # Datafusion - Expected - 7 # Datafusion - Expected - 65 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 1 and "Int64\(72\) \+ Int64\(\-7\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIII valuesort SELECT 75 - 86 + + 0, 7 AS col2, + 72 + - 7 col2, MAX ( + + 12 ) AS col2 +---- +-11 +12 +65 +7 query II rowsort SELECT + 95, 37 AS col1 @@ -30717,8 +31077,11 @@ SELECT ALL 48 - 4 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-76\)\) AS col2" at position 0 and "Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( SUM ( ALL - 76 ) ) AS col2, 16 AS col2 +---- +-76 +16 query I rowsort label-5844 SELECT CAST ( 14 AS INTEGER ) col0 @@ -30728,8 +31091,11 @@ SELECT CAST ( 14 AS INTEGER ) 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 col0" at position 0 and "Int64\(\-1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 95 AS col0, - 1 AS col0 +---- +-1 +95 query I rowsort label-5846 SELECT DISTINCT + CAST ( + 68 AS INTEGER ) @@ -30907,8 +31273,11 @@ SELECT + 24 / - + 18 + + 82 * + ( - COUNT ( * ) ) / - + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - -2752 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "Int64\(86\) \* Int64\(\-32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 AS col0, 86 * - 32 AS col0 +---- +-2752 +42 query II rowsort label-5879 SELECT 65 + + MIN ( - ( + 12 ) ) - - - 60 / + 62 AS col0, - CAST ( + - 95 AS INTEGER ) @@ -31266,8 +31635,11 @@ SELECT - - 32 * - 81 + + - 66 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "Int64\(20\) \* Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 AS col1, 20 * + 10 col1 +---- +200 +59 query I rowsort SELECT CASE + - 4 WHEN + 40 THEN 71 * - 38 + 51 * + 94 * + 40 + + 13 WHEN 83 - - 95 + - 69 * + 44 THEN + 66 ELSE NULL END @@ -31324,8 +31696,12 @@ SELECT DISTINCT + 96 * 99 + - ( - + COUNT ( * ) ) - - - NULLIF ( - COUNT ( - - 5 # Datafusion - Expected - NULL # Datafusion - Expected - 25 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- Int64\(30\)\) \+ \(\- Int64\(28\)\) \* \(\- Int64\(25\)\) \* Int64\(\-45\) AS col1" at position 0 and "Int64\(56\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT CAST ( NULL AS INTEGER ) * - + 30 + - + 28 * - + ( + 25 ) * - 45 AS col1, - ( - + 55 ) + - 30, 56 AS col1 +---- +25 +56 +NULL query II rowsort SELECT 82 AS col2, + 92 @@ -31341,8 +31717,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3381 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \* Int64\(\-77\) \+ Int64\(7\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 44 * + ( - 77 ) + + 7 * COUNT ( * ) AS col0, 49 AS col0 +---- +-3381 +49 query I rowsort SELECT ALL 19 * + COALESCE ( + + 96, - + 4, - - 57 ) + + COALESCE ( + 87, - 8, + + 88 * - 42 + + ( 31 ) + 58 + 75 ) * - 60 AS col1 @@ -31477,8 +31856,11 @@ SELECT 56 / 11 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(16\) AS col1" at position 0 and "\(\- min\(Int64\(92\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( CAST ( NULL AS INTEGER ) ) + 16 AS col1, - MIN ( ALL + 92 ) AS col1 +---- +-92 +NULL query I rowsort label-5987 SELECT 1 * - 18 / 45 * - COUNT ( * ) AS col2 @@ -31685,8 +32067,11 @@ SELECT DISTINCT 64 - + - 4 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(\(\- nullif\(\(\- Int64\(24\)\), Int64\(27\)\)\)\) AS col2" at position 0 and "Int64\(\-67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( - + NULLIF ( - + 24, 27 ) ) AS col2, - 67 AS col2 +---- +-67 +24 query I rowsort label-6026 SELECT + 34 + - 86 + ( - + NULLIF ( + + 83, MIN ( 46 ) + + CAST ( NULL AS INTEGER ) ) ) AS col2 @@ -31706,8 +32091,11 @@ SELECT + COUNT ( * ) * 80 / 23 * + - 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47674 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \* Int64\(92\) \* Int64\(7\) \+ Int64\(18\) AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 74 * + 92 * 7 + 18 AS col1, + 86 AS col1 +---- +47674 +86 query I rowsort SELECT DISTINCT 34 * 30 * 68 AS col1 @@ -31797,8 +32185,11 @@ SELECT ALL + 76 * - 71 + + + 96 - + 49 + - 58 * 30 * + COALESCE ( - 75, - - COAL # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col0" at position 0 and "\(\- coalesce\(\(\- Int64\(28\)\), Int64\(6\) \* Int64\(58\)\)\) \- Int64\(\-54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 29 AS col0, - COALESCE ( - ( ( 28 ) ), + 6 * 58 ) - - 54 AS col0 +---- +-29 +82 query I rowsort SELECT DISTINCT + - NULLIF ( + - 31, - 16 / - - 12 ) AS col0 @@ -31818,8 +32209,11 @@ SELECT - ( - 10 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- max\(\(\- Int64\(\-37\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, - MAX ( ALL - - 37 ) AS col0 +---- +-37 +1 query II rowsort label-6051 SELECT ALL + 65 col1, + COUNT ( * ) AS col0 @@ -31957,8 +32351,11 @@ SELECT + COUNT ( - ( - 31 ) ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \+ Int64\(12\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 + 12 AS col2, CAST ( NULL AS INTEGER ) AS col2 +---- +92 +NULL query I rowsort SELECT ALL 24 + - 48 AS col0 @@ -31994,8 +32391,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(65\)\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - + 65 ) AS col0, 68 AS col0 +---- +-65 +68 query II rowsort label-6084 SELECT 3 AS col0, COUNT ( * ) @@ -32011,8 +32411,11 @@ 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\(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\. +query II valuesort SELECT + 77 AS col1, NULLIF ( + NULLIF ( + 76, COUNT ( * ) ), + 9 * - ( - 58 ) * + 72 + + 31 ) AS col1 +---- +76 +77 query II rowsort label-6087 SELECT DISTINCT - 33 AS col0, COUNT ( * ) * - CASE WHEN NOT 53 <= 18 THEN - 96 ELSE NULL END * - 96 + - 28 + + SUM ( + 1 ) AS col1 @@ -32738,8 +33141,11 @@ SELECT ALL + 57 + - 42 * + + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(25\)\) \- Int64\(15\) AS col0" at position 0 and "Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + 25 ) - 15 AS col0, 74 AS col0 +---- +-40 +74 query II rowsort SELECT DISTINCT - ( + - 12 ) AS col1, 84 + - + 21 @@ -32842,8 +33248,11 @@ SELECT ALL + ( + - 33 ) + 15 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + - COUNT ( * ) ) col0, + COUNT ( * ) AS col0 +---- +-1 +1 query I rowsort SELECT ALL - 55 + + + 9 - 58 @@ -32904,8 +33313,11 @@ SELECT ALL CASE - 31 WHEN 30 + 16 * ( 50 ) - + + 99 THEN - 99 ELSE + COUNT ( * ) # 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 "nullif\(count\(Int64\(\-79\)\), Int64\(44\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 AS col1, NULLIF ( COUNT ( - 79 ), 44 ) AS col1 +---- +1 +68 query I rowsort label-6256 SELECT COUNT ( * ) - - 3 * + + 18 AS col0 @@ -32942,8 +33354,11 @@ SELECT 47 * + 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 1408 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col0" at position 0 and "Int64\(\-32\) \* Int64\(\-44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 86 AS col0, - 32 * - 44 AS col0 +---- +-86 +1408 query I rowsort label-6263 SELECT + COUNT ( * ) * + - 16 - NULLIF ( + + 49, - + 96 + + CAST ( - MAX ( DISTINCT - + 99 ) AS INTEGER ) ) + - + NULLIF ( ( + + 2 ), 0 * 75 ) @@ -33361,8 +33776,11 @@ SELECT + MAX ( + 58 ) * + 33 - 95 + + - 58 * + 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col1" at position 0 and "Int64\(47\) \+ Int64\(\-21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 AS col1, + 47 + - 21 AS col1 +---- +26 +77 query I rowsort label-6342 SELECT ALL - + 55 / 99 AS col1 @@ -33388,8 +33806,11 @@ SELECT ALL 71 / 31 + + NULLIF ( + 19, - - 17 + - - 98 ) * - + 39 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col2" at position 0 and "Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 61 AS col2, + 25 AS col2 +---- +-61 +25 query I rowsort label-6347 SELECT 11 * 11 + + + 1 / + 43 * + COUNT ( - - 17 ) @@ -33522,14 +33943,20 @@ SELECT 71 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 70 AS col0, 89 col0 +---- +70 +89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -141 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) \+ Int64\(\-50\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 91 + + - 50 col0, + 57 AS col0 +---- +-141 +57 query II rowsort label-6373 SELECT ALL COUNT ( * ) * - 33 - - CAST ( + CASE - ( + + 89 ) WHEN + + 48 * - + 79 * + + 75 THEN NULL WHEN COUNT ( * ) + - + 19 * + ( 6 ) - - + 26 THEN NULL ELSE - - 13 END AS INTEGER ) + - - 53 AS col0, COUNT ( * ) - 65 AS col2 @@ -33945,8 +34372,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 89 ) AS col1, - COUNT ( * ) AS col1 +---- +-1 +89 query I rowsort label-6454 SELECT DISTINCT - - ( 97 ) * - ( - CAST ( NULL AS INTEGER ) ) + + 35 @@ -34212,8 +34642,11 @@ SELECT - 65 * 56 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82 col2, + 2 AS col2 +---- +2 +82 query I rowsort label-6505 SELECT ALL 76 / - COUNT ( * ) @@ -34444,8 +34877,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * - 79 AS col2, + 78 * + 62 * - 54 + COUNT ( * ) + + + 8 col2 +---- +-261135 +-79 query I rowsort label-6550 SELECT ALL 74 / + 31 + 9 @@ -34561,8 +34997,11 @@ SELECT 83 * + 92 # 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 "Int64\(1\) AS col0" at position 0 and "Int64\(\-13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 AS col0, - 13 AS col0 +---- +-13 +1 query I rowsort label-6571 SELECT ALL - 0 / - 75 AS col1 @@ -34578,8 +35017,11 @@ 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\(1\)\) AS count\(\*\)\) \* \(\- Int64\(36\)\) \* Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 26 AS col1, - COUNT ( * ) * - + 36 * 51 AS col1 +---- +-26 +1836 query I rowsort label-6574 SELECT COUNT ( * ) * + + 83 @@ -34874,8 +35316,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 + + NULLIF ( COUNT ( ALL + 11 ), - 33 ) + - - COUNT ( * ) AS col2, 93 AS col2 +---- +19 +93 query I rowsort label-6632 SELECT DISTINCT 28 + - - 0 + - SUM ( ALL + 7 ) / - + CAST ( - + ( + - 75 ) AS INTEGER ) * + 55 * - + 50 @@ -35424,8 +35869,11 @@ 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\(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\. +query II valuesort SELECT 80 AS col1, - 35 * CASE + 15 WHEN + ( COUNT ( * ) ) THEN NULL WHEN + 80 THEN 54 * - COUNT ( * ) END col1 +---- +80 +NULL query I rowsort label-6741 SELECT ALL 87 + - + CASE + 74 WHEN - NULLIF ( 58, 60 ) THEN 84 WHEN 23 THEN NULL ELSE CAST ( NULL AS INTEGER ) * 28 END col0 @@ -36163,8 +36611,12 @@ 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\(Int64\(1\)\) AS count\(\*\) END\)\) \* Int64\(51\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 95 col2, - 6 AS col1, - 30 + - - CASE 74 WHEN - - 69 THEN NULL ELSE 67 + - 77 * COUNT ( * ) END * + 51 AS col2 +---- +-540 +-6 +95 query II rowsort SELECT - 6, - 9 AS col0 @@ -36955,8 +37407,11 @@ SELECT ALL ( + 50 ) * 61 * - 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - 350 # Datafusion - Expected - 113 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(25\) AS col0" at position 0 and "Int64\(15\) \+ CAST\(\(\- Int64\(\-98\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 14 * + 25 col0, 15 + + CAST ( - - 98 AS INTEGER ) AS col0 +---- +113 +350 query I rowsort label-7035 SELECT ALL + - SUM ( ALL ( 44 ) ) @@ -37330,8 +37785,12 @@ SELECT 95 / - 54 AS col1 # Datafusion - Expected - -18 # Datafusion - Expected - -89 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \+ Int64\(\-60\) AS col1" at position 0 and "min\(Int64\(\-89\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL ( ( + + 42 ) ) + - 60 AS col1, MIN ( ALL + - 89 ) AS col1, + - 88 + 60 - - 58 +---- +-18 +-89 +30 query I rowsort label-7106 SELECT DISTINCT 31 * - CAST ( + ( + CAST ( - 14 AS INTEGER ) ) AS INTEGER ) + - + 34 AS col2 @@ -37526,8 +37985,11 @@ SELECT - CASE - ( + CASE - MIN ( + - 42 ) WHEN + 44 THEN NULL WHEN 20 THEN NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 149 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \+ Int64\(82\) \+ CAST\(\(\- CAST\(Int64\(\-53\) AS Int32\)\) AS Int32\) AS col1" at position 0 and "Int64\(10\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 + + + 82 + + CAST ( - CAST ( - 53 AS INTEGER ) AS INTEGER ) AS col1, + 10 AS col1 +---- +10 +149 query I rowsort label-7144 SELECT ALL MIN ( 7 ) @@ -37580,8 +38042,12 @@ SELECT - - 22 * 86 AS col1 # Datafusion - Expected - 46 # Datafusion - Expected - 22 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) \- Int64\(\-65\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 19 - + - 65 AS col1, + 68 / + 41 + - SUM ( - 21 ) * COUNT ( * ) AS col2, + 49 AS col1 +---- +22 +46 +49 query I rowsort label-7154 SELECT + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) / + ( - - COUNT ( * ) ) AS col0 @@ -37714,8 +38180,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col0" at position 0 and "Int64\(21\) \+ Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 48 AS col0, 21 + + + 25 AS col0 +---- +46 +48 query I rowsort label-7180 SELECT + - COUNT ( * ) - + - 5 + + 44 / - ( 7 ) AS col1 @@ -37806,8 +38275,11 @@ SELECT ALL + 49 * 32, 88 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "Int64\(32\) \* coalesce\(Int64\(\-41\), Int64\(66\)\) / \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-97\) \* Int64\(6\) \+ \(\- Int64\(41\)\) \+ \(\- Int64\(\-50\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 8 AS col0, 32 * ( + COALESCE ( + - 41, 66 ) ) / + - CAST ( NULL AS INTEGER ) * - 97 * + 6 + - + 41 + - - 50 AS col0 +---- +8 +NULL query I rowsort label-7197 SELECT ( ( - 43 ) ) * ( - - CAST ( COUNT ( * ) AS INTEGER ) ) - - + 85 * + COUNT ( * ) - 23 AS col0 @@ -38001,8 +38473,11 @@ SELECT - 73 * + CAST ( - 55 AS INTEGER ) * - MIN ( ALL + 85 ) + - + 55 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 736 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* Int64\(92\) AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 * 92 col1, 39 AS col1 +---- +39 +736 query I rowsort label-7234 SELECT 85 * - 16 * CAST ( NULL AS INTEGER ) @@ -38135,8 +38610,11 @@ SELECT 92 * ( - - 66 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ Int64\(\-53\) AS col1" at position 0 and "CASE Int64\(73\) WHEN Int64\(\-61\) \+ CASE Int64\(\-67\) WHEN Int64\(\-25\) THEN Int64\(51\) \* \(\- Int64\(3\)\) END THEN \(\- \(\- nullif\(Int64\(78\), Int64\(71\)\)\)\) \+ Int64\(15\) WHEN Int64\(\-35\) \+ nullif\(\(\- CAST\(Int64\(11\) AS Int32\)\), \(\- CASE Int64\(72\) WHEN Int64\(72\) THEN Int64\(\-80\) \* Int64\(90\) ELSE NULL END\)\) \+ Int64\(83\) THEN NULL ELSE \(\- count\(Int64\(1\)\) AS count\(\*\)\) END \* \(\- CASE Int64\(\-59\) \+ nullif\(Int64\(73\), Int64\(\-23\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(\-77\) / Int64\(27\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +32 +NULL query II rowsort SELECT - 41 col0, 27 AS col1 @@ -38552,8 +39030,11 @@ SELECT ALL ( ( - 46 ) ) * - 36 + + 99 AS col0 # 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\(DISTINCT Int64\(\-37\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 26 AS col0, - COUNT ( DISTINCT - 37 ) col0 +---- +-1 +26 query I rowsort SELECT ALL - 25 + + 98 @@ -38718,8 +39199,11 @@ SELECT ( MIN ( DISTINCT + 19 ) ) + - COALESCE ( - + ( + - MAX ( + + 45 ) ), + CO # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 AS col0, 7 AS col0 +---- +7 +8 query I rowsort label-7370 SELECT 17 + + CAST ( NULL AS INTEGER ) + - 99 + MAX ( DISTINCT 92 ) * - 36 * 20 * + - 39 AS col0 @@ -38754,8 +39238,11 @@ SELECT 14 + + - 15 * - 85 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \+ Int64\(48\) AS col2" at position 0 and "Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 45 + 48 col2, - 88 AS col2 +---- +-88 +93 query II rowsort label-7377 SELECT - 19, - 10 / - + 53 + + - 4 * 82 AS col0 @@ -38841,8 +39328,11 @@ SELECT + 43 + + ( - ( - - 44 ) ) + - 51 * 93 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col2, - 75 AS col2 +---- +-75 +1 query I rowsort label-7394 SELECT + 91 * - COALESCE ( ( - 54 ), COUNT ( * ) * + - NULLIF ( + 64, - - 55 ), + 45 + - 87, + 2 ) + - + 82 + - 77 + + 72 * CAST ( NULL AS INTEGER ) AS col0 @@ -38879,8 +39369,11 @@ SELECT + + 48 * - + 81 - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col2" at position 0 and "Int64\(\-47\) \- Int64\(\-94\) \+ Int64\(\-56\) \+ \(\- Int64\(15\)\) \- Int64\(64\) \* Int64\(94\) \* Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 29 col2, ( - 47 ) - - 94 + + - 56 + - + 15 - + 64 * 94 * - 0 AS col2 +---- +-24 +29 query I rowsort SELECT 87 * + 70 * - 59 + + 94 @@ -38911,8 +39404,11 @@ SELECT + 45 - - - 33, - 56 * + 69 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -255 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* Int64\(\-5\) AS col0" at position 0 and "\(\- nullif\(sum\(DISTINCT Int64\(40\)\), \(\- Int64\(\-36\)\) \* \(\- \(\- \(\- Int64\(\-10\)\)\)\) \* CAST\(NULL AS Float64\) \* Int64\(94\)\)\) \* count\(Int64\(23\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL 51 * - 5 AS col0, - ( NULLIF ( + SUM ( DISTINCT 40 ), + - ( - 36 ) * - - ( + ( - - 10 ) ) * + + CAST ( NULL AS FLOAT8 ) * + 94 ) ) * + COUNT ( + 23 ) AS col0 +---- +-255 +-40 query I rowsort SELECT + 63 * 42 @@ -39421,8 +39917,11 @@ SELECT COUNT ( * ) + 81 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 44 AS col1, COUNT ( * ) AS col1 +---- +1 +44 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -39497,8 +39996,12 @@ 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\(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\. +query III valuesort SELECT COUNT ( * ) + - - ( - 41 ) col2, COUNT ( * ) * 7 * + + 42 - + + 45 + - + 6 AS col2, 83 * + 82 - - 41 +---- +-40 +243 +6847 query I rowsort label-7516 SELECT ( 92 ) * + 89 * - ( + - ( + COALESCE ( 18, 0 + + COALESCE ( + ( + 54 ), - - 49 * + - 24 + + CAST ( ( + CAST ( + + ( 33 ) AS FLOAT8 ) ) AS INTEGER ), - 68 * 45 * + 87 ) ) ) ) @@ -39851,8 +40354,11 @@ SELECT - 91 * - ( - 42 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -582 # Datafusion - Expected - 1452 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* Int64\(\-6\) AS col2" at position 0 and "Int64\(\-55\) \* \(\- Int64\(25\)\) \+ \(\- min\(Int64\(\-77\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 97 * - 6 AS col2, - 55 * - + 25 + - MIN ( - 77 ) AS col2 +---- +-582 +1452 query I rowsort label-7583 SELECT + 19 * + + ( + SUM ( ALL - + 60 ) ) * - 75 - + + CAST ( NULL AS INTEGER ) + - 48 * + + 40 * - + ( + COUNT ( * ) ) AS col2 @@ -39873,8 +40379,11 @@ SELECT DISTINCT + ( 64 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 125 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ \(\- Int64\(\-64\)\) AS col0" at position 0 and "Int64\(81\) \+ \(\- nullif\(Int64\(\-16\), count\(Int64\(24\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 61 + - - 64 AS col0, + 81 + - NULLIF ( + - 16, + + COUNT ( 24 ) ) AS col0 +---- +125 +97 query I rowsort SELECT + ( - + 55 ) col0 @@ -40002,8 +40511,11 @@ SELECT 58 / 75 * 81 * 92 # 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\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 97 AS col2, + 13 AS col2 +---- +-97 +13 query I rowsort label-7611 SELECT 32 - - COUNT ( * ) / - 10 * + 41 * 41 * - + CAST ( NULL AS INTEGER ) @@ -40082,8 +40594,11 @@ SELECT MAX ( + + 19 ) * 10 + ( - 40 ) + + 30 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, 32 AS col1 +---- +1 +32 query I rowsort label-7626 SELECT COUNT ( * ) + 73 AS col1 @@ -40119,8 +40634,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) col2, ( - 60 ) col2 +---- +-1 +-60 query I rowsort SELECT ALL 73 * + + 38 AS col1 @@ -40141,8 +40659,11 @@ SELECT + 65 * - 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "max\(Int64\(\-65\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, + MAX ( - 65 ) AS col1 +---- +-65 +1 query I rowsort SELECT ALL 39 * + 40 AS col2 @@ -40249,8 +40770,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1530 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \* Int64\(17\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 * + 17 AS col1, COUNT ( * ) AS col1 +---- +-1530 +1 query I rowsort label-7658 SELECT DISTINCT + 68 * 25 + + 77 + - 17 + - COUNT ( * ) + 11 * + 41 * - + 56 + + - 90 + 3 + + ( - COUNT ( * ) ) * - 49 * + - 5 * + + MAX ( DISTINCT 33 ) + + + 4 + - 17 @@ -40684,8 +41208,11 @@ SELECT + + SUM ( + + 67 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) / \(\- Int64\(\-44\)\) \+ \(\- Int64\(72\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 / - - 44 + - ( + 72 ) AS col1, CAST ( NULL AS INTEGER ) AS col1 +---- +-72 +NULL query II rowsort SELECT ALL - + COALESCE ( + 17, + 83 + - 84 ) AS col0, 40 @@ -41262,8 +41789,11 @@ SELECT DISTINCT - COUNT ( * ) - - + 68 + + 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT 23 col1, 68 AS col1 +---- +23 +68 query I rowsort label-7853 SELECT 95 / 71 AS col1 @@ -41284,8 +41814,11 @@ SELECT ALL + COUNT ( * ) * 7 / - - 70 AS col1, 81 / + 66 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 AS col0, 17 AS col0 +---- +17 +39 query I rowsort SELECT 1 + 80 @@ -41417,8 +41950,12 @@ SELECT + NULLIF ( + - NULLIF ( - 52, - 67 - - - 68 ), - 95 * 60 ) * + - CAST ( - # Datafusion - Expected - -41 # Datafusion - Expected - -14 # Datafusion - Expected - 130 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col1" at position 0 and "Int64\(31\) \- Int64\(\-99\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 41 AS col1, - COUNT ( * ) - - - 49 + 36, + 31 - - 99 col1 +---- +-14 +-41 +130 query II rowsort label-7882 SELECT ALL - 47 AS col2, COUNT ( * ) * - - 51 * + - 74 * - - 68 AS col0 @@ -41745,8 +42282,11 @@ SELECT ALL + 48 / ( + - 16 ) / + 2 + + 77 # 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 "Int64\(80\) / Int64\(\-70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( ( + - 57 ) ) AS col0, + 80 / - 70 AS col0 +---- +-1 +-57 query I rowsort SELECT ALL - 74 * 91 AS col2 @@ -42095,14 +42635,20 @@ SELECT DISTINCT + - 29 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(Int64\(64\), Int64\(\-85\) \- Int64\(\-10\) \* count\(Int64\(36\)\) \* Int64\(52\)\)\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( 64, - 85 - - 10 * COUNT ( + 36 ) * + ( 52 ) ) AS col0, + 78 AS col0 +---- +-64 +78 # Datafusion - Datafusion expected results: # Datafusion - Expected - -739 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(30\)\) \+ Int64\(\-8\) \* Int64\(96\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- \(\- Int64\(58\)\)\) AS col1" at position 0 and "\(\- nullif\(Int64\(58\), Int64\(33\)\)\) / \(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 30 + + - 8 * + 96 + + COUNT ( * ) + - - ( + 58 ) col1, ( - NULLIF ( + 58, + 33 ) ) / + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 +---- +-739 +NULL query I rowsort SELECT + - ( - 70 ) @@ -42168,8 +42714,11 @@ SELECT ALL - + 80 + - + 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col2" at position 0 and "Int64\(32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 47 AS col2, 32 AS col2 +---- +32 +47 query I rowsort SELECT ALL - CASE WHEN NULL BETWEEN 80 AND NULL THEN - 88 END AS col1 @@ -42526,8 +43075,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) \- Int64\(41\) AS col1" at position 0 and "Int64\(30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 32 - 41 AS col1, + 30 AS col1 +---- +-73 +30 query I rowsort label-8091 SELECT CAST ( - 75 AS INTEGER ) * + 66 @@ -42624,8 +43176,11 @@ SELECT DISTINCT + + ( - - COUNT ( * ) ) + + + 14 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, ( - 61 ) col2 +---- +-61 +1 query II rowsort label-8110 SELECT + 70 AS col2, 2 * - COALESCE ( + - COUNT ( * ), + 80 ) + + COUNT ( * ) AS col0 @@ -42974,8 +43529,11 @@ SELECT DISTINCT - 50 * - 39 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col0" at position 0 and "Int64\(51\) \* Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 15 AS col0, 51 * + 2 col0 +---- +102 +15 query I rowsort SELECT ALL 27 * 3 @@ -43099,8 +43657,11 @@ SELECT - 92 + 97 * + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(48\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( + 48 ) AS col0, + COUNT ( * ) AS col0 +---- +1 +48 query I rowsort SELECT - 6 + - 14 @@ -43177,8 +43738,12 @@ 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\(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\. +query III valuesort SELECT ALL COUNT ( * ) * 23 col0, 85 AS col0, 74 AS col0 +---- +23 +74 +85 query I rowsort label-8215 SELECT ALL 56 * + COUNT ( + NULLIF ( - 56, - + CAST ( + 47 AS INTEGER ) ) ) * + CAST ( NULL AS INTEGER ) * 74 - - + 54 - + COUNT ( * ) AS col2 @@ -43279,8 +43844,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -231 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \+ Int64\(\-86\) \+ \(\- coalesce\(\(\- Int64\(\-77\)\), coalesce\(Int64\(97\), \(\- CASE Int64\(\-6\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(58\) / Int64\(33\) \* Int64\(22\) END\)\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- coalesce\(Int64\(76\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 68 + - 86 + + - COALESCE ( - - 77, + COALESCE ( + + 97, - + CASE - 6 WHEN + - ( + COUNT ( * ) ) THEN 58 / + 33 * 22 END ) ) * ( COUNT ( * ) ) AS col1, - COALESCE ( 76, - COUNT ( * ) ) col1 +---- +-231 +-76 query I rowsort label-8235 SELECT - 6 / - MIN ( - + 42 ) * 97 @@ -43528,8 +44096,11 @@ SELECT - NULLIF ( + 66, - 69 ) * 19 - + + 48 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -23404 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-15\) \* Int64\(82\) \* Int64\(19\) \+ Int64\(\-34\) AS col0" at position 0 and "\(\- Int64\(99\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 15 * 82 * + + 19 + - 34 AS col0, - ( + 99 ) AS col0 +---- +-23404 +-99 query I rowsort label-8283 SELECT + CASE WHEN CAST ( - - COUNT ( * ) AS INTEGER ) NOT IN ( + + 89 * + - COUNT ( * ), 14 * - - 44, 63 * 66 * - ( - 15 ) / + 42 * - 81 * - + ( - - 3 ) + - 27 - + 0, - 85 * - 88 ) THEN - - 4 * + - 61 END AS col1 @@ -44668,8 +45239,11 @@ SELECT - 98 * + 10 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\(\-29\)\) \+ Int64\(70\) \+ \(\- Int64\(\-33\)\) AS col0" at position 0 and "Int64\(23\) / Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 29 + + 70 + - - 33 AS col0, 23 / + 43 AS col0 +---- +0 +132 query I rowsort label-8505 SELECT DISTINCT - 24 * CAST ( NULL AS INTEGER ) + + 59 - - COALESCE ( - COUNT ( * ), - ( + COUNT ( * ) ) + ( 17 ) ) AS col1 @@ -44883,8 +45457,11 @@ SELECT ALL - 89 + + 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 2703 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col1" at position 0 and "Int64\(53\) \* Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 21 AS col1, + 53 * + 51 AS col1 +---- +21 +2703 query I rowsort SELECT + 58 - + ( - 14 ) @@ -44894,8 +45471,11 @@ SELECT + 58 - + ( - 14 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - -54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col1" at position 0 and "Int64\(\-54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 98 AS col1, - 54 AS col1 +---- +-54 +98 query I rowsort label-8547 SELECT + 71 - + + NULLIF ( CAST ( NULL AS INTEGER ), 53 * + 74 ) AS col0 @@ -44931,8 +45511,11 @@ SELECT + 98 / + 53 + + 70 col1 # 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\(46\) / Int64\(28\) \+ Int64\(\-92\) \+ \(\- Int64\(\-28\)\) AS col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 46 / + 28 + - 92 + - - 28 AS col2, 3 AS col2 +---- +-63 +3 query I rowsort label-8554 SELECT DISTINCT + 51 / 93 * - - 81 * - 83 AS col0 @@ -45301,8 +45884,12 @@ SELECT + 44 * 98 col2 # Datafusion - Expected - 43 # Datafusion - Expected - 9 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 and "Int64\(71\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT COALESCE ( - - 14, - + 84 ) + + 29 AS col0, 9 * + COUNT ( * ) AS col2, + + 71 col2 +---- +43 +71 +9 query I rowsort label-8623 SELECT ALL 22 - COUNT ( * ) + - 90 - + 0 @@ -45754,8 +46341,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 11 AS col2, 86 + - + 4 + - + COUNT ( * ) * 69 AS col2 +---- +11 +13 query I rowsort label-8711 SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) - - 51 AS col2 @@ -45775,8 +46365,11 @@ SELECT ALL + ( 22 ) - - 78 + 35 + - + 63 * - 30 + + 56 + - - 81 + - 7 + - SUM ( # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-52\), CAST\(Int64\(\-79\) AS Int32\) \* Int64\(59\)\) \* CAST\(NULL AS Float64\) \* Int64\(83\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT NULLIF ( - 52, CAST ( - 79 AS INTEGER ) * + 59 ) * + CAST ( NULL AS FLOAT8 ) * 83 AS col2, COUNT ( * ) / - 34 AS col2 +---- +0 +NULL query I rowsort label-8715 SELECT + - ( - 35 ) * MAX ( 28 ) + + 29 AS col1 @@ -45948,8 +46541,11 @@ SELECT DISTINCT + 62 * - 59 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1848 # Datafusion - Expected - -4565 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* \(\- \(\- nullif\(Int64\(\-44\), Int64\(\-34\) / Int64\(55\)\)\)\) AS col1" at position 0 and "Int64\(55\) \* Int64\(\-83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 42 * - - NULLIF ( - 44, - 34 / + 55 ) AS col1, + 55 * - 83 col1 +---- +-1848 +-4565 query I rowsort SELECT 78 * - - 1 AS col0 @@ -46338,8 +46934,11 @@ SELECT 47 * 49 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "Int64\(21\) \* \(\- CAST\(NULL AS Int32\)\) \- Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 AS col0, 21 * - CAST ( NULL AS INTEGER ) - + + 81 col0 +---- +17 +NULL query I rowsort label-8822 SELECT ALL - MAX ( 47 ) AS col0 @@ -46365,8 +46964,11 @@ 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\(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\. +query II valuesort SELECT 56 + 85 * + COUNT ( * ) * NULLIF ( + COUNT ( * ), - 8 + - + 99 + + 58 ) AS col2, 88 + + - 95 AS col2 +---- +-7 +141 query I rowsort SELECT 62 * + - 30 col1 @@ -46499,8 +47101,12 @@ SELECT 10 * 29 * + 43 + 7 AS col0 # Datafusion - Expected - -450 # Datafusion - Expected - NULL # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* Int64\(55\) \+ sum\(CAST\(NULL AS Int32\)\) \+ Int64\(53\) AS col1" at position 1 and "Int64\(2\) \+ Int64\(\-50\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - MIN ( DISTINCT 45 ) * + - COUNT ( * ) * - NULLIF ( + 10, - - COUNT ( DISTINCT - - ( 81 ) ) ), 86 * + 55 + SUM ( CAST ( NULL AS INTEGER ) ) + 53 AS col1, 2 + - 50 AS col1 +---- +-450 +-48 +NULL query I rowsort SELECT ALL - + 46 AS col2 @@ -46515,8 +47121,11 @@ SELECT - 96 * + COUNT ( 82 ) + - 38 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 720 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(36\) \* Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, 36 * + 20 AS col1 +---- +1 +720 query I rowsort SELECT ( + - 72 ) + + 75 AS col2 @@ -46526,8 +47135,11 @@ SELECT ( + - 72 ) + + 75 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \+ \(\- Int64\(\-37\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 + - - 37 AS col1, + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 +---- +89 +NULL query I rowsort SELECT DISTINCT 14 * NULLIF ( + 42, - ( + - 85 ) ) @@ -46609,8 +47221,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(30\)\) AS col2" at position 0 and "Int64\(11\) \+ Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 30 col2, 11 + - 71 AS col2 +---- +-30 +-60 query I rowsort label-8873 SELECT ALL + - 19 + 82 + - CAST ( + 97 AS INTEGER ) col1 @@ -47074,8 +47689,11 @@ SELECT - 12 * - 82 + 13 * 51 + + + CAST ( + CASE + 22 WHEN - CASE WHEN 17 <> 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2425 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) / CAST\(NULL AS Int32\) AS col1" at position 0 and "Int64\(25\) \* Int64\(\-97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 23 / + CAST ( NULL AS INTEGER ) AS col1, + 25 * - 97 col1 +---- +-2425 +NULL query I rowsort label-8961 SELECT ALL - - ( - + 46 ) * - 62 + + + COALESCE ( + - 76, + 61 / + MIN ( DISTINCT 24 ), 63 / - 55 ) col2 @@ -47286,8 +47904,11 @@ 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\(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\. +query II valuesort 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 +---- +-35 +166 query II rowsort label-9002 SELECT ALL + NULLIF ( - COUNT ( * ), SUM ( ALL + 26 ) * - COUNT ( * ) ), - COUNT ( * ) AS col0 @@ -47331,8 +47952,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 61 AS col0, 58 AS col0 +---- +-61 +58 query I rowsort label-9010 SELECT ALL + 67 + + 18 + - + 15 * - CAST ( NULL AS INTEGER ) AS col0 @@ -48117,8 +48741,11 @@ SELECT ALL 89 - - COUNT ( * ) * - 47 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1364 # Datafusion - Expected - -46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* Int64\(42\) \+ \(\- Int64\(\-62\)\) AS col0" at position 0 and "Int64\(\-46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 31 * + 42 + - - 62 AS col0, - 46 AS col0 +---- +-46 +1364 query I rowsort label-9158 SELECT + 29 * - COUNT ( * ) AS col1 @@ -48656,8 +49283,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(12\) \* Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - 91 ) col0, + 18 + COUNT ( * ) - 12 * - 66 AS col0 +---- +-91 +811 query I rowsort SELECT ( + - ( - + 96 ) ) @@ -48683,8 +49313,12 @@ 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\(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\. +query III valuesort 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 +---- +147 +366 +957 query I rowsort SELECT DISTINCT 83 * + ( - 23 ) AS col2 @@ -48766,8 +49400,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 420 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(\-20\)\), Int64\(70\), max\(Int64\(\-24\)\) / Int64\(22\) \+ Int64\(8\) / sum\(Int64\(44\)\)\) \* \(\- Int64\(\-21\)\) AS col1" at position 0 and "Int64\(97\) \- Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COALESCE ( - - 20, + + 70, + + MAX ( ALL + - 24 ) / + 22 + 8 / + SUM ( + 44 ) ) * - - 21 AS col1, 97 - 69 AS col1 +---- +28 +420 query I rowsort SELECT NULLIF ( 56, - + 24 ) AS col0 @@ -48782,8 +49419,11 @@ SELECT DISTINCT 47 * + 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 179 # Datafusion - Expected - -770 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \+ Int64\(96\) AS col0" at position 0 and "Int64\(97\) \* Int64\(\-7\) \+ Int64\(\-91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 83 + 96 AS col0, 97 * - 7 + - 91 AS col0 +---- +-770 +179 query I rowsort label-9285 SELECT ALL + COUNT ( * ) + - 10 @@ -48916,8 +49556,11 @@ 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\(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\. +query II valuesort SELECT 59 + 53 + - 77 AS col0, + NULLIF ( - 44, + + ( 59 ) * COUNT ( * ) + + + 24 + - MAX ( + 6 ) - 93 * + - 74 + - - 61 ) AS col0 +---- +-44 +35 query I rowsort SELECT 46 + + 18 + - - 6 @@ -49402,8 +50045,11 @@ SELECT - 71 * - 96 + COUNT ( * ) - + 44 * + - ( 43 ) AS col2 # 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\(92\) \- \(\- Int64\(\-49\)\) AS col1" at position 0 and "Int64\(18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + 92 ) - - - 49 AS col1, 18 AS col1 +---- +18 +43 query I rowsort label-9403 SELECT 75 / - + CASE + CAST ( NULL AS INTEGER ) WHEN ( 47 ) + 40 + + 47 - + 77 THEN NULL WHEN + 95 * - 66 * 87 * + + 21 / - + NULLIF ( + COUNT ( * ), + - 31 ) * - 56 + + COUNT ( * ) THEN NULL WHEN + 94 * - 85 THEN + - NULLIF ( - 81, + - 10 ) ELSE + 40 * - ( - - 74 ) * + - 5 + - COUNT ( * ) * 91 + 55 END col2 @@ -49582,8 +50228,11 @@ 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\(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\. +query IR valuesort 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 +---- +NULL +NULL query II rowsort label-9438 SELECT ALL + 19 + - 96 * - 52 + + 42 AS col0, COUNT ( * ) @@ -49669,8 +50318,11 @@ SELECT + ( + + ( + 53 ) ) + 95 * - + 90 + + 6 AS col0 # 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 col0" at position 0 and "\(\- \(\- min\(Int64\(\-63\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 15 AS col0, ( - - MIN ( - 63 ) ) col0 +---- +-63 +15 query II rowsort SELECT DISTINCT + 56, 90 + - 87 AS col0 @@ -49793,8 +50445,11 @@ SELECT COUNT ( * ), - 84 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 col0, + COUNT ( * ) AS col0 +---- +-10 +1 query I rowsort label-9478 SELECT SUM ( ALL + 49 ) AS col2 @@ -49810,8 +50465,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, ( + + 12 ) AS col1 +---- +-1 +12 query I rowsort label-9481 SELECT MAX ( ALL - + 7 ) AS col1 @@ -49995,8 +50653,11 @@ SELECT 62 * + 20 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -424 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* Int64\(\-53\) AS col2" at position 0 and "Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 8 * - 53 AS col2, 54 AS col2 +---- +-424 +54 query I rowsort label-9515 SELECT 78 + - + SUM ( + 81 ) AS col1 @@ -50048,15 +50709,22 @@ SELECT DISTINCT + COUNT ( * ) + - SUM ( - + 20 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17082 # Datafusion - Expected - -1278 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) \+ sum\(DISTINCT Int64\(47\)\) \+ Int64\(31\) \+ Int64\(76\) \+ Int64\(81\) \+ Int64\(60\) \* Int64\(3\) \* \(\- Int64\(\-94\)\) AS col1" at position 0 and "Int64\(71\) \* Int64\(\-18\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 73 + SUM ( DISTINCT 47 ) + + 31 + + 76 + ( + 81 ) + + 60 * + + 3 * - - 94 AS col1, 71 * - 18 AS col1 +---- +-1278 +17082 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1449 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(40\), Int64\(87\)\) / \(\- nullif\(Int64\(\-84\), Int64\(\-29\)\)\) \* Int64\(58\) \+ \(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(\-23\) \* Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT NULLIF ( + 40, + 87 ) / - NULLIF ( - 84, - 29 ) * 58 + - CAST ( NULL AS INTEGER ) col2, - 23 * - 63 AS col2, + + 33 col2 +---- +1449 +33 +NULL query I rowsort label-9526 SELECT - 84 - - COUNT ( * ) - + 86 * + 83 @@ -50495,8 +51163,11 @@ SELECT ALL 18 * + ( 32 ), 63 + - COUNT ( * ) * - + 24 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- coalesce\(\(\- Int64\(\-86\)\), \(\- CASE min\(\(\- Int64\(65\)\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(\-17\), count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(44\)\) \+ \(\- nullif\(Int64\(76\), \(\- Int64\(73\)\) \* \(\- Int64\(\-47\)\) \+ Int64\(82\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\)\) \* Int64\(\-73\)\) THEN CASE Int64\(\-76\) WHEN Int64\(\-99\) / Int64\(18\) \- CAST\(NULL AS Float64\) THEN NULL WHEN \(\- nullif\(Int64\(\-53\), Int64\(4\) / Int64\(71\)\)\) / Int64\(86\) \+ \(\- Int64\(\-47\)\) THEN \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(81\) \* Int64\(\-34\) END ELSE NULL END\) \+ Int64\(\-20\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +29 +86 query I rowsort label-9611 SELECT ALL + 47 * - 97 * + MAX ( + 78 ) + - NULLIF ( + COUNT ( * ), + 63 ) * - + 55 * - 75 AS col2 @@ -51003,8 +51674,11 @@ SELECT + 18 + - 67 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col2, 38 AS col2 +---- +1 +38 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -51492,8 +52166,11 @@ SELECT + 18 + ( + 35 ) - + - MAX ( - 27 ) - 9, 40 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\)" at position 0 and "Int64\(82\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 82, + 82 +---- +82 +82 query I rowsort label-9798 SELECT - MAX ( DISTINCT + + 35 ) col0 @@ -51560,8 +52237,11 @@ SELECT ALL - 31 AS col0, MIN ( ALL - 10 ) + - 28 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 0 AS col0, + COUNT ( * ) AS col0 +---- +0 +1 query I rowsort label-9811 SELECT ALL + - COUNT ( * ) * - 67 * + - NULLIF ( 57, + 8 / 47 + 38 ) * + + COUNT ( * ) + - 10 + 83 / + 15 * - + CAST ( NULL AS INTEGER ) AS col2 @@ -51576,8 +52256,11 @@ SELECT + 79 * + - 69 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 2330 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col2" at position 0 and "Int64\(37\) \* Int64\(64\) \+ Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 75 AS col2, 37 * + 64 + - 38 AS col2 +---- +2330 +75 query I rowsort label-9814 SELECT ALL - - 69 / 2 * + 43 AS col2 @@ -51865,8 +52548,11 @@ SELECT - 91 AS col1, - 61 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -2106 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col0" at position 0 and "CAST\(\(\- Int64\(\-68\)\) AS Int32\) / \(\- Int64\(61\)\) \+ Int64\(37\) \+ Int64\(7\) \+ Int64\(27\) \* Int64\(\-76\) \+ Int64\(\-96\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 col0, CAST ( - - 68 AS INTEGER ) / - + 61 + + 37 + + + 7 + 27 * + - 76 + + - 96 + - COUNT ( * ) AS col0 +---- +-2106 +58 query II rowsort SELECT - - 88 AS col2, - 21 AS col0 @@ -51923,8 +52609,11 @@ 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\(1\)\) AS count\(\*\)\) \- Int64\(49\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 16 AS col2, - COUNT ( * ) - 49 AS col2 +---- +-50 +16 query I rowsort SELECT ALL + CASE - - 99 WHEN + 52 THEN + 99 END * - 12 + - + 50 diff --git a/data/sqlite/random/expr/slt_good_93.slt b/data/sqlite/random/expr/slt_good_93.slt index 7bf263d..e33bb30 100644 --- a/data/sqlite/random/expr/slt_good_93.slt +++ b/data/sqlite/random/expr/slt_good_93.slt @@ -354,8 +354,11 @@ SELECT - 91 + NULLIF ( ( + 36 ), + CAST ( NULL AS INTEGER ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 75 AS col0, + 51 col0 +---- +51 +75 query I rowsort SELECT ALL + - 24 + - 88 @@ -818,8 +821,11 @@ SELECT ALL + 98 + + 10 - + 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col2" at position 0 and "coalesce\(Int64\(91\), \(\- Int64\(\-11\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 4 AS col2, COALESCE ( 91, - + ( - 11 ) ) AS col2 +---- +-4 +91 query I rowsort SELECT 91 - 10 @@ -956,8 +962,11 @@ SELECT 19 / + 87 * + 62 # 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 "Int64\(\-62\) AS col0" at position 0 and "Int64\(\-35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 62 AS col0, - 35 AS col0 +---- +-35 +-62 query II rowsort SELECT ALL - 52 AS col1, 41 - - 27 AS col0 @@ -1263,8 +1272,11 @@ SELECT + 63 + + 55 / - 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - -700 # Datafusion - Expected - -88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \* \(\- \(\- sum\(DISTINCT Int64\(10\)\)\)\) AS col0" at position 0 and "sum\(\(\- Int64\(88\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 70 * - - SUM ( DISTINCT 10 ) col0, SUM ( - + 88 ) AS col0 +---- +-700 +-88 query I rowsort label-236 SELECT + - 64 / + 89 AS col2 @@ -2131,8 +2143,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + + - 84 col2, - 7 AS col2 +---- +-7 +-83 query I rowsort label-402 SELECT ALL 82 + - COUNT ( * ) - - 16 + + 90 @@ -2162,8 +2177,11 @@ SELECT DISTINCT - NULLIF ( - - CAST ( - 80 AS INTEGER ), + 51 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(\-96\)\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( - 96 ) AS col2, 94 AS col2 +---- +-96 +94 query I rowsort label-408 SELECT 20 / + - 51 - 6 @@ -2417,8 +2435,11 @@ 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\(1\)\) AS count\(\*\) \- \(\- Int64\(64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 83 - + 77 AS col0, COUNT ( * ) - - + 64 AS col0 +---- +6 +65 query I rowsort label-457 SELECT + COUNT ( * ) - + - 19 - 47 @@ -2528,8 +2549,11 @@ SELECT 3, 28 + + 32 - - MAX ( ALL + 26 ) + - 34 * 92 / - 72 col1 # 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 "Int64\(9\) AS col1" at position 0 and "Int64\(73\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 9 AS col1, 73 AS col1 +---- +73 +9 query I rowsort label-478 SELECT COUNT ( * ) + - - 8 * 4 * 83 @@ -2747,8 +2771,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 10 + 31 + ( + 33 ) * - SUM ( - 54 ) + + - COUNT ( * ) * - + 48 col1, 72 * 14 + + - 57 * + 89 AS col1 +---- +-4065 +1871 query I rowsort label-520 SELECT - CASE - COUNT ( * ) WHEN - COALESCE ( - CAST ( NULL AS INTEGER ), 26 ) * - 98 - + 45 * 53 + 22 + + 35 THEN NULL WHEN - - 30 * + AVG ( - 29 ) * + COUNT ( * ) + + - SUM ( ALL - 84 ) + + 7 THEN - 99 END @@ -2818,8 +2845,12 @@ SELECT - - SUM ( - - 67 ) + + - 27 * - 95 * 4 AS col0 # Datafusion - Expected - 8 # Datafusion - Expected - 28 # Datafusion - Expected - 159 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 1 and "Int64\(66\) \+ Int64\(93\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + 18 + 21 + + 5 AS col2, + 28 AS col0, + 66 + 93 AS col0 +---- +159 +28 +8 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -3033,8 +3064,11 @@ SELECT - COUNT ( * ) * 27 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 936 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(12\)\) \* \(\- Int64\(78\)\) AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 12 ) * - + 78 AS col1, 40 col1 +---- +40 +936 query I rowsort label-573 SELECT ( SUM ( ALL + ( - + 95 ) ) ) @@ -3157,8 +3191,11 @@ 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\(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\. +query II valuesort SELECT NULLIF ( + 96, COUNT ( * ) + - 2 + + - 83 + + 66 * ( - 15 ) + - + ( 1 ) + 1 ) * - + COUNT ( * ) * - ( - + COUNT ( * ) ) * + - 44 AS col0, - SUM ( 29 ) AS col0 +---- +-29 +4224 query I rowsort SELECT - 54 + - - 83 + + 77 @@ -3252,8 +3289,11 @@ SELECT + 92 * + 28 - + + 91 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 AS col1, - CAST ( NULL AS INTEGER ) AS col1 +---- +8 +NULL query I rowsort SELECT 98 + ( + - 45 ) AS col2 @@ -3273,14 +3313,20 @@ SELECT 69 * COUNT ( * ) * COALESCE ( + + 96, + 53, COALESCE ( 19, + 26, + 75 * 0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 0 and "Int64\(10\) \+ Int64\(\-96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 95 col1, + 10 + - 96 AS col1 +---- +-86 +95 # Datafusion - Datafusion expected results: # Datafusion - Expected - -20106 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(42\) \* Int64\(48\) \+ Int64\(54\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 * + + 42 * 48 + 54 AS col2, 81 AS col2 +---- +-20106 +81 query I rowsort label-618 SELECT + 35 * + 87 + + 58 * - - COUNT ( * ) @@ -3555,8 +3601,12 @@ SELECT ALL - + 58 + - + 54 * 89 AS col2 # Datafusion - Expected - 3078 # Datafusion - Expected - -69 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(81\) AS col2" at position 0 and "min\(coalesce\(Int64\(\-68\), Int64\(\-48\), Int64\(56\)\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 38 * + 81 AS col2, MIN ( COALESCE ( + - 68, - 48, + + 56 ) ) - + COUNT ( * ) AS col2, 71 AS col0 +---- +-69 +3078 +71 query I rowsort label-669 SELECT ALL - CASE ( 31 ) WHEN + MIN ( + + 60 ) * 39 / + ( - - 64 ) + 24 + - - 63 + - + 77 THEN 21 ELSE NULL END + 59 @@ -3664,8 +3714,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(17\) / Int64\(67\) \+ Int64\(\-21\) AS col1" at position 0 and "count\(Int64\(\-2\)\) \+ \(\- sum\(Int64\(89\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) * + 17 / + 67 + - 21 AS col1, COUNT ( + - 2 ) + ( - + SUM ( 89 ) ) AS col1 +---- +-21 +-88 query I rowsort SELECT ALL + COALESCE ( + + 70, 46 * + 89 ) AS col2 @@ -3869,8 +3922,11 @@ SELECT 98 * NULLIF ( - 28, + + 90 * - 37 - 57 + - - COUNT ( * ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3354 # Datafusion - Expected - 585 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) \* Int64\(39\) AS col1" at position 0 and "\(\- Int64\(\-65\)\) \* Int64\(9\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 86 * + 39 AS col1, - ( - 65 ) * + + 9 AS col1 +---- +3354 +585 query I rowsort label-729 SELECT ALL - CAST ( NULL AS INTEGER ) + 70 / CAST ( NULL AS INTEGER ) @@ -3963,8 +4019,11 @@ SELECT - + NULLIF ( + + COUNT ( * ), + - MIN ( - + 75 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-46\)\) AS col0" at position 0 and "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - 46 ) AS col0, CAST ( COUNT ( * ) AS INTEGER ) AS col0 +---- +1 +46 query I rowsort label-747 SELECT DISTINCT + COALESCE ( COUNT ( * ), - 89 ) - 6 / + 77 + 74 @@ -4434,8 +4493,11 @@ SELECT - 63 * - - 31 + COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - 1023 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) / Int64\(84\) \- Int64\(\-59\) AS col0" at position 0 and "Int64\(33\) \* Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 40 / 84 - - 59 AS col0, + 33 * + 31 AS col0 +---- +1023 +59 query II rowsort SELECT ( - 15 ) + + 94 AS col1, + 82 * - 94 + + 55 @@ -5266,8 +5328,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 230 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT Int64\(14\)\) \+ count\(DISTINCT Int64\(66\)\) \+ Int64\(47\) \* Int64\(5\) \+ \(\- Int64\(7\)\) AS col1" at position 0 and "Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( DISTINCT 14 ) + COUNT ( DISTINCT + + 66 ) + 47 * 5 + - + 7 AS col1, - 1 AS col1 +---- +-1 +230 query I rowsort label-996 SELECT DISTINCT + 78 + 8 * + MAX ( DISTINCT - 44 ) + - 28 @@ -5900,8 +5965,12 @@ SELECT ALL - 15, - 91 + + 95 AS col0 # Datafusion - Expected - 1 # Datafusion - Expected - -52 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT COUNT ( * ) AS col0, - 52 AS col1, - COUNT ( * ) AS col0 +---- +-1 +-52 +1 query I rowsort SELECT 62 * - 43 + + 71 AS col0 @@ -6243,8 +6312,11 @@ NULL # 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 "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90 AS col0, 0 AS col0 +---- +0 +90 query I rowsort label-1181 SELECT + 64 / + - 87 * - - CAST ( NULL AS INTEGER ) @@ -6436,8 +6508,11 @@ SELECT 96 * + 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 167 # Datafusion - Expected - -75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \+ \(\- max\(Int64\(\-68\)\)\) AS col0" at position 0 and "Int64\(\-75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 + + - MAX ( - 68 ) AS col0, - 75 AS col0 +---- +-75 +167 query I rowsort label-1218 SELECT DISTINCT 64 * CASE - COUNT ( * ) WHEN + - AVG ( DISTINCT + - 27 ) * 93 * 6 * - - 14 THEN - 21 WHEN - - ( - 78 ) THEN 13 * - COUNT ( * ) - + 15 ELSE NULL END AS col0 @@ -6588,8 +6663,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 71 AS col2, 75 AS col2 +---- +71 +75 query I rowsort SELECT - 41 * + 52 @@ -7059,8 +7137,11 @@ SELECT + 21 + 42 - + ( + 84 ) 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 "Int64\(0\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 0 AS col1, 21 AS col1 +---- +0 +21 query I rowsort label-1335 SELECT ALL + 71 - + COUNT ( * ) AS col1 @@ -7096,8 +7177,11 @@ 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\(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\. +query II valuesort SELECT 60 AS col1, + COUNT ( * ) * 42 * + 73 * + NULLIF ( - + 88, + 37 ) AS col1 +---- +-269808 +60 query I rowsort label-1342 SELECT ALL + 52 + - COALESCE ( + 6, + COUNT ( * ) + - + ( + - 3 ) / - - COUNT ( * ) * + 62 / - + 98 ) @@ -7133,8 +7217,11 @@ SELECT ALL 87 + - + 73 / - - 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) / Int64\(17\) AS col0" at position 0 and "Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 / + 17 AS col0, 87 AS col0 +---- +5 +87 query I rowsort SELECT ALL + 74 * + 50 + + 76 col1 @@ -7355,8 +7442,11 @@ SELECT + SUM ( - 39 ) + - 85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(57\)\) AS col1" at position 0 and "Int64\(\-35\) \+ Int64\(\-6\) / Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + + SUM ( + 57 ) ) AS col1, - 35 + - 6 / + 93 AS col1 +---- +-35 +57 query I rowsort label-1392 SELECT ALL - CAST ( NULL AS INTEGER ) * COUNT ( * ) - + CAST ( NULL AS INTEGER ) col0 @@ -7590,8 +7680,11 @@ SELECT - 90 * 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2378 # Datafusion - Expected - 120 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \+ Int64\(\-98\) \* max\(Int64\(\-24\)\) AS col0" at position 0 and "\(\- \(\- CAST\(Int64\(23\) AS Int32\)\)\) \+ Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 + - 98 * MAX ( - 24 ) AS col0, - ( - CAST ( + + 23 AS INTEGER ) ) + 97 col0 +---- +120 +2378 query II rowsort SELECT ALL - - 64 AS col0, + 69 + - - 0 @@ -7675,8 +7768,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) - + + COUNT ( * ) / + 30 AS col2, + 29 * - 96 * + 80 * + 68 AS col2 +---- +-15144960 +1 query I rowsort SELECT 30 * - + 93 AS col1 @@ -7693,8 +7789,11 @@ SELECT 34 * + 38 col2, + 76 / MAX ( DISTINCT - 67 ) / NULLIF ( + 40, 56 ) + + ( # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(\(\- Int64\(\-71\)\)\)\) AS col0" at position 0 and "Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( - - 71 ) AS col0, - 85 AS col0 +---- +-71 +-85 query I rowsort label-1456 SELECT MAX ( ALL - 37 ) + - + 54 + - 22 + + CAST ( - - 37 AS INTEGER ) AS col1 @@ -8761,8 +8860,11 @@ SELECT - 52 + - - 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - -5824 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col0" at position 0 and "Int64\(\-91\) \* Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 23 AS col0, - 91 * + 64 AS col0 +---- +-5824 +23 query I rowsort label-1663 SELECT - 81 + - MIN ( DISTINCT + 36 ) col1 @@ -9622,8 +9724,11 @@ SELECT 84 / - - 70 # Datafusion - Datafusion expected results: # Datafusion - Expected - -71 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) AS col2" at position 0 and "CAST\(NULL AS Int32\) / Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 71 AS col2, CAST ( NULL AS INTEGER ) / 12 AS col2 +---- +-71 +NULL query I rowsort label-1830 SELECT CAST ( 90 AS INTEGER ) * - + ( + - 18 ) - + 67 AS col1 @@ -9728,8 +9833,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 840 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "Int64\(\-39\) \* Int64\(\-19\) \+ \(\- Int64\(\-99\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 6 AS col2, - 39 * + - 19 + - - 99 col2 +---- +6 +840 query I rowsort SELECT ALL - - ( + - 24 ) AS col1 @@ -9948,8 +10056,11 @@ SELECT ALL COUNT ( * ) + - 40 + + 37 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 20 AS col0, 27 AS col0 +---- +20 +27 query I rowsort SELECT ALL - 30 * + 63 AS col0 @@ -10202,8 +10313,11 @@ SELECT 93 + + 95 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 149 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "Int64\(76\) \+ Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 78 AS col2, 76 + + + 73 AS col2 +---- +149 +78 query I rowsort SELECT - - COALESCE ( - 38, - 86 + - 53 * - 11 ) @@ -10497,8 +10611,12 @@ SELECT ALL 86 / 81 AS col2 # Datafusion - Expected - -92 # Datafusion - Expected - 98 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* \(\- count\(Int64\(\-1\)\)\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 92 * - COUNT ( + - 1 ) AS col0, 98 AS col0, + 87 * + - CAST ( - CASE - 23 WHEN ( MAX ( - + 95 ) ) THEN NULL ELSE + - COUNT ( * ) END AS INTEGER ) col2 +---- +-87 +-92 +98 query II rowsort SELECT - 98 * + NULLIF ( 27, + - 12 ), - 53 AS col1 @@ -10727,8 +10845,11 @@ 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\(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\. +query II valuesort SELECT COALESCE ( + COUNT ( * ), + + SUM ( DISTINCT - - 44 ) * 49 + COUNT ( * ), + + 5 ) AS col2, + 44 + - + 83 col2 +---- +-39 +1 query I rowsort label-2038 SELECT COALESCE ( ( COALESCE ( - 49, + MAX ( ALL + 55 ) ) ), - - 77 + + 0, 53 + + 41 * - CAST ( NULL AS INTEGER ) + + 6 + + 58 + CAST ( SUM ( DISTINCT 86 ) AS INTEGER ) ) AS col0 @@ -11009,8 +11130,11 @@ SELECT ALL + 13 * - + 3 + + 5 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col1" at position 0 and "Int64\(\-31\) \+ \(\- Int64\(\-93\)\) \+ CASE coalesce\(\(\- Int64\(\-41\)\), count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(29\) THEN \(\- \(\- CAST\(NULL AS Int32\)\)\) WHEN \(\- Int64\(\-84\)\) \+ Int64\(\-97\) THEN NULL ELSE Int64\(83\) \- \(\- CAST\(NULL AS Int32\)\) END \* Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-63 +NULL query I rowsort SELECT ALL + 77 * + 83 AS col2 @@ -11360,8 +11484,11 @@ SELECT DISTINCT - 95 * + 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 1404 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \+ Int64\(62\) AS col0" at position 0 and "Int64\(\-52\) \* Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 22 + ( 62 ) AS col0, - 52 * + - 27 AS col0 +---- +1404 +40 query I rowsort SELECT - 27 + - 67 col2 @@ -11955,8 +12082,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 AS col0, + 94 * + 2 + - - COUNT ( * ) AS col0 +---- +189 +90 query I rowsort label-2273 SELECT + ( 0 ) / COUNT ( * ) AS col0 @@ -12011,8 +12141,11 @@ SELECT ALL + 10 + - 55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(12\) \+ Int64\(5\) \- Int64\(\-38\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, + 12 + 5 - - 38 AS col2 +---- +1 +55 query I rowsort label-2284 SELECT + - 46 * - CAST ( NULL AS INTEGER ) AS col2 @@ -12266,8 +12399,11 @@ SELECT 9 + + COUNT ( * ) + + - 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 1587 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(84\)\)\) AS col2" at position 0 and "Int64\(69\) \* Int64\(23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - + 84 ) AS col2, 69 * ( + + ( 23 ) ) AS col2 +---- +1587 +84 query I rowsort SELECT DISTINCT - - 1 col2 @@ -12304,8 +12440,11 @@ SELECT DISTINCT - 4 col0, ( - + 30 ) + 35 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 2095 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "Int64\(60\) \+ Int64\(34\) \+ Int64\(23\) \* Int64\(87\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 61 AS col0, + 60 + + 34 + + 23 * 87 AS col0 +---- +2095 +61 query I rowsort SELECT DISTINCT 74 * 75 AS col0 @@ -12803,8 +12942,11 @@ SELECT ( COUNT ( * ) ) * - - ( + 29 ) + - 52 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 AS col0, + COUNT ( * ) AS col0 +---- +1 +25 query I rowsort label-2433 SELECT COUNT ( * ) / + ( - + 54 ) col2 @@ -12886,8 +13028,11 @@ SELECT 9 * - 29 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 18 AS col0, 69 col0 +---- +18 +69 query I rowsort SELECT 39 + - 88 @@ -12918,8 +13063,12 @@ SELECT ALL - 38 + + - 4 - - - NULLIF ( - - 88, + COALESCE ( + 85, - 19 * - NULLI # Datafusion - Expected - 30 # Datafusion - Expected - 23 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col0" at position 0 and "CAST\(\(\- \(\- CAST\(Int64\(23\) AS Int32\)\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 30 AS col0, CAST ( - - CAST ( 23 AS INTEGER ) AS INTEGER ) AS col0, + + 19 AS col2 +---- +19 +23 +30 query I rowsort label-2455 SELECT ALL 0 + - 80 / 74 * 36 @@ -12969,8 +13118,11 @@ SELECT 4 * + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6885 # Datafusion - Expected - -7359 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* \(\- Int64\(\-85\)\) AS col0" at position 0 and "count\(Int64\(\-9\)\) \+ nullif\(Int64\(92\), Int64\(\-25\) \* Int64\(90\) \+ Int64\(12\) \* Int64\(64\)\) \* \(\- Int64\(80\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 * - - 85 AS col0, COUNT ( - 9 ) + + NULLIF ( 92, - 25 * 90 + 12 * 64 ) * - + 80 col0 +---- +-7359 +6885 query I rowsort SELECT 94 * + 50 * 49 * COALESCE ( 60, + + 53 ) AS col1 @@ -12995,8 +13147,11 @@ SELECT 71 / + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - -652 -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 "Int64\(44\) \+ \(\- Int64\(29\)\) \* Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( DISTINCT + 14 ) AS col0, 44 + - + 29 * + + 24 AS col0 +---- +-652 +14 query I rowsort label-2470 SELECT SUM ( ALL + 69 ) AS col1 @@ -13229,8 +13384,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) + - - 51 AS col0, SUM ( + 32 ) * + 82 AS col0 +---- +2624 +52 query I rowsort label-2515 SELECT ALL - MIN ( ALL + CAST ( 50 AS INTEGER ) ) / - + 73 * - MAX ( + 78 ) @@ -13319,8 +13477,11 @@ SELECT + NULLIF ( + + 14, + + 0 * + 22 ) AS 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 col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 53 AS col2, + 3 AS col2 +---- +3 +53 query I rowsort SELECT - 17 + - + 65 + + - 71 @@ -13854,8 +14015,12 @@ SELECT - 28, - 42 + 41 AS col1 # Datafusion - Expected - 62 # Datafusion - Expected - 51 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + + 62 col0, 51 AS col0, 85 +---- +51 +62 +85 query I rowsort label-2633 SELECT + 95 * + + CAST ( NULL AS INTEGER ) / + 3 * + 58 AS col1 @@ -13865,8 +14030,11 @@ 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\(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\. +query II valuesort SELECT + + 8 AS col2, 56 + - 77 + + ( COUNT ( * ) ) - - 59 + COUNT ( * ) * - 50 - - COUNT ( * ) AS col2 +---- +-10 +8 query I rowsort label-2635 SELECT DISTINCT + CASE - CAST ( COUNT ( * ) AS INTEGER ) WHEN 55 THEN - 97 END AS col2 @@ -14051,8 +14219,11 @@ SELECT ALL + MAX ( ALL - - 42 ) 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 "Int64\(46\) / Int64\(\-59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 57 AS col0, 46 / - 59 AS col0 +---- +0 +57 query I rowsort label-2671 SELECT 30 * - 55 + + - NULLIF ( - + COUNT ( * ), - 65 ) AS col0 @@ -14063,8 +14234,12 @@ SELECT 30 * - 55 + + - NULLIF ( - + COUNT ( * ), - 65 ) AS col0 # Datafusion - Expected - 70 # Datafusion - Expected - NULL # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- Int64\(\-23\)\)\) / CAST\(NULL AS Int32\) \+ Int64\(94\) \+ \(\- coalesce\(Int64\(38\), Int64\(\-38\), Int64\(43\) \* Int64\(43\)\)\) \+ Int64\(10\) AS col2" at position 1 and "Int64\(29\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 70, MIN ( - - 23 ) / + CAST ( NULL AS INTEGER ) + 94 + - COALESCE ( + 38, - 38, 43 * + 43 ) + + 10 AS col2, + 29 col2 +---- +29 +70 +NULL query I rowsort SELECT COALESCE ( + 53, - 18, - 77 ) @@ -14124,8 +14299,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(72\) \+ Int64\(6\) \+ Int64\(\-90\) \+ Int64\(6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 37 AS col0, 72 + + 6 + - 90 + + 6 col0 +---- +-6 +37 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -14164,8 +14342,11 @@ SELECT 76 / 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2356 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(62\) \* \(\- Int64\(38\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) col1, 62 * - + 38 AS col1 +---- +-2356 +1 query I rowsort SELECT DISTINCT 6 + - 88 @@ -14858,8 +15039,11 @@ SELECT 82 / - 84 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-27\) \+ CASE Int64\(\-99\) WHEN \(\- \(\- Int64\(60\)\)\) \+ Int64\(25\) \+ \(\- CAST\(Int64\(\-24\) AS Int32\)\) THEN NULL WHEN Int64\(89\) THEN Int64\(\-91\) ELSE Int64\(94\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-1 +67 query II rowsort label-2822 SELECT + 21 AS col1, - COUNT ( * ) @@ -15135,8 +15319,11 @@ SELECT ALL 96 * - MIN ( ALL + 4 ) * - + 86 + + 96 / + COUNT ( * ) + - MIN ( ALL # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \+ Int64\(35\) AS col1" at position 0 and "Int64\(12\) / Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 35 + + 35 AS col1, 12 / - 25 AS col1 +---- +0 +70 query II rowsort label-2875 SELECT DISTINCT - 77 + + + 48 - + CASE - - 30 WHEN + 16 + + + 97 THEN 46 WHEN 11 + - - COUNT ( * ) THEN NULL END, + COALESCE ( - SUM ( DISTINCT 27 ), + 33 * 16 / CASE + + 15 WHEN + 89 - 90 THEN - - 99 WHEN + 91 * 16 THEN NULL WHEN + 48 * + + ( 51 ) * + 56 / - - ( - 28 ) / + + 48 * + + NULLIF ( - 98, + - 7 - + - 84 ) + MAX ( ALL + 58 ) + - - 74 THEN NULL END / + 99 ) * - 21 - + 53 col2 @@ -15705,8 +15892,11 @@ SELECT ALL 97 * 35 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16320 # Datafusion - Expected - -153 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* Int64\(17\) \* Int64\(64\) AS col1" at position 0 and "Int64\(\-97\) \+ Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 15 * 17 * + 64 AS col1, - 97 + - 56 AS col1 +---- +-153 +16320 query I rowsort SELECT + 44 * - 30 col2 @@ -15902,8 +16092,11 @@ SELECT ALL COUNT ( * ) * + - 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* Int64\(38\) \+ Int64\(\-77\) \* \(\- Int64\(\-17\)\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-51\) \* Int64\(0\) AS col0" at position 0 and "\(\- count\(Int64\(12\)\)\) / Int64\(33\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(75\) / Int64\(\-47\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 51 * + 38 + - 77 * - - 17 + - CAST ( NULL AS INTEGER ) + - 51 * + 0 AS col0, - COUNT ( 12 ) / ( + + 33 ) + COUNT ( * ) * + 75 / + - 47 + - + COUNT ( * ) AS col0 +---- +-2 +NULL query I rowsort label-3018 SELECT - NULLIF ( - + CAST ( NULL AS INTEGER ), + NULLIF ( - 69, - 25 * + 80 - 6 ) + + 37 ) @@ -16303,8 +16496,11 @@ SELECT MIN ( 9 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 182 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(96\) \+ \(\- Int64\(\-86\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, 96 + - - 86 AS col1 +---- +1 +182 query II rowsort label-3094 SELECT ALL 19 / 91 AS col2, + 52 @@ -16436,8 +16632,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(85\)\) AS col2" at position 0 and "Int64\(1\) \* Int64\(\-3\) \+ Int64\(31\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 85 col2, 1 * - 3 + 31 col2 +---- +-85 +28 query I rowsort SELECT + 25 + + 26 * - - 76 AS col1 @@ -16650,8 +16849,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(24\) \* Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 96 AS col0, COUNT ( * ) * + 24 * + + 34 AS col0 +---- +-96 +816 query II rowsort label-3159 SELECT ALL - 67, + 9 / - 44 - + + 81 * - 54 AS col2 @@ -16760,8 +16962,11 @@ SELECT ALL ( + 54 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-25\) AS col0" at position 0 and "Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 25 col0, - 0 AS col0 +---- +-25 +0 query I rowsort SELECT ALL + 36 - - + 27 AS col0 @@ -16925,8 +17130,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(\-13\) \* \(\- CAST\(NULL AS Float64\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL 49 AS col0, 14 * - + COUNT ( * ) + + - 13 * - CAST ( NULL AS FLOAT8 ) AS col0 +---- +49 +NULL query II rowsort SELECT DISTINCT 51 AS col1, 11 AS col0 @@ -18256,8 +18464,11 @@ 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\(1\)\) AS count\(\*\) \+ \(\- Int64\(35\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 24 ) AS col0, COUNT ( * ) + - + 35 AS col0 +---- +-24 +-34 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -18928,8 +19139,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(24\) \* Int64\(61\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 65 AS col2, - COUNT ( * ) * 24 * 61 AS col2 +---- +-1464 +65 query I rowsort label-3598 SELECT - COUNT ( * ) + 32 * + COALESCE ( - ( - CASE + 60 WHEN - COUNT ( * ) + 43 THEN NULL WHEN + 85 THEN - CAST ( - 72 AS INTEGER ) ELSE NULL END ), - 70 ) + CAST ( - 83 - - 88 AS INTEGER ) * NULLIF ( 23 * 54, SUM ( ALL 77 ) ) AS col0 @@ -19011,8 +19225,11 @@ SELECT + + COUNT ( DISTINCT + 32 ) + 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 7 AS col0, 78 AS col0 +---- +-7 +78 query I rowsort label-3614 SELECT ALL - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) + + - MIN ( DISTINCT + + 26 ) @@ -19159,8 +19376,11 @@ NULL # 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\(\-78\) AS col1" at position 0 and "Int64\(46\) \+ \(\- Int64\(47\)\) \- Int64\(3\) \* Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 78 col1, 46 + - + 47 - 3 * 32 AS col1 +---- +-78 +-97 query I rowsort SELECT DISTINCT + 37 * - - 51 * + 47 @@ -19255,8 +19475,11 @@ SELECT DISTINCT + COALESCE ( + 0, 58 ) * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 20 AS col1, + COUNT ( * ) AS col1 +---- +1 +20 query I rowsort SELECT 45 + + - 1 + - 12 @@ -19800,8 +20023,11 @@ SELECT ALL - 32 - + 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-20\) \- nullif\(Int64\(\-43\), Int64\(4\)\) AS col0" at position 0 and "Int64\(18\) \* Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 20 - + + NULLIF ( + - 43, + 4 ) AS col0, 18 * 2 AS col0 +---- +23 +36 query I rowsort SELECT DISTINCT 59 * - 46 + + 0 AS col2 @@ -20317,8 +20543,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 40 ) AS col0, COUNT ( * ) + 35 col0 +---- +-40 +36 query I rowsort SELECT ALL 12 * - 82 AS col2 @@ -20484,8 +20713,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 12 AS col0, 22 * + COUNT ( * ) / - COALESCE ( - MIN ( + 87 ), - + 87 - + 1 + + + MAX ( + 83 ) ) * - 92 AS col0 +---- +-12 +0 query I rowsort SELECT 54 * + + 32 AS col0 @@ -20738,8 +20970,11 @@ 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\(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\. +query IR valuesort SELECT 11 * - 28 + + - 16 + + COUNT ( + 71 ) - - 54 * COUNT ( * ) * - + 29 - + 23 / - 6 + - 84 col2, CAST ( NULL AS FLOAT8 ) + - SUM ( ALL + 95 ) col2 +---- +-1970 +NULL query I rowsort label-3939 SELECT 10 + + - COUNT ( * ) @@ -21077,8 +21312,11 @@ SELECT ALL + CAST ( - 10 AS INTEGER ) # 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\) AS col1" at position 0 and "\(\- Int64\(45\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 10 AS col1, ( - + 45 ) AS col1 +---- +-45 +10 query I rowsort SELECT ALL + - ( 86 ) @@ -21301,8 +21539,11 @@ SELECT 48 / - 50 * - 78 # 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\(91\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 AS col1, 22 AS col1 +---- +22 +91 query I rowsort label-4046 SELECT ALL + 77 + ( - COUNT ( * ) ) @@ -22038,8 +22279,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -98 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(DISTINCT Int64\(\-98\)\) AS col0" at position 0 and "sum\(\(\- Int64\(\-49\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( DISTINCT + - 98 ) AS col0, SUM ( ALL - - 49 ) AS col0 +---- +-98 +49 query I rowsort label-4185 SELECT 57 / + + 86 @@ -22064,8 +22308,11 @@ SELECT 2 * + + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -2125 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(62\)\) AS col1" at position 0 and "coalesce\(\(\- CASE Int64\(10\) WHEN \(\- \(\- max\(Int64\(\-8\)\)\)\) \+ Int64\(84\) THEN coalesce\(Int64\(86\), Int64\(47\) \* max\(Int64\(81\)\)\) \* Int64\(48\) END\), coalesce\(Int64\(98\), Int64\(62\) \+ \(\- Int64\(\-5\)\), Int64\(49\) \* Int64\(\-50\)\) \* Int64\(\-23\) \- \(\- coalesce\(Int64\(98\), Int64\(\-64\), CAST\(Int64\(\-31\) AS Int32\)\)\)\) \- Int64\(\-31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( DISTINCT + + 62 ) AS col1, COALESCE ( + - CASE + 10 WHEN - - MAX ( - 8 ) + + 84 THEN + ( + + COALESCE ( 86, + 47 * + MAX ( ALL + + ( 81 ) ) ) ) * + + 48 END, + + COALESCE ( 98, + 62 + - - 5, 49 * - 50 ) * - 23 - - COALESCE ( 98, - 64, + CAST ( - 31 AS INTEGER ) ) ) - - 31 col1 +---- +-2125 +62 query I rowsort label-4190 SELECT 76 + - COUNT ( DISTINCT - 14 ) col1 @@ -22353,8 +22600,11 @@ SELECT DISTINCT CAST ( - 83 AS INTEGER ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 AS col2, + 94 AS col2 +---- +18 +94 query I rowsort SELECT ALL + 24 + - - 44 - - ( - 58 ) @@ -22379,8 +22629,11 @@ SELECT - NULLIF ( + - 70, + CAST ( + 1 AS INTEGER ) * + + COALESCE ( + - 68, + ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col0" at position 0 and "Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 72 AS col0, + ( 45 ) col0 +---- +45 +72 query I rowsort label-4250 SELECT ALL 99 + - COUNT ( * ) @@ -22899,8 +23152,11 @@ SELECT ALL - 80 * 6 + ( + COUNT ( DISTINCT - - 7 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -74 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 74 ) AS col1, COUNT ( * ) AS col1 +---- +-74 +1 query I rowsort SELECT - 84 * + 17 @@ -23968,8 +24224,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3198 # Datafusion - Expected - 80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(DISTINCT Int64\(82\)\)\)\) \* Int64\(39\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - MAX ( DISTINCT + + 82 ) * + 39 AS col1, 80 AS col1 +---- +3198 +80 query I rowsort label-4553 SELECT DISTINCT - + 5 * ( - - 24 ) * ( ( COUNT ( * ) ) ) col0 @@ -24261,8 +24520,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(69\) AS Int32\) AS col1" at position 0 and "Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( 69 AS INTEGER ) AS col1, - 61 AS col1 +---- +-61 +69 query I rowsort SELECT + 54 + - 21 @@ -24283,8 +24545,11 @@ SELECT DISTINCT + 13 / + + 72 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2279 # Datafusion - Expected - -1722 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \* Int64\(\-43\) AS col2" at position 0 and "Int64\(53\) \- \(\- sum\(Int64\(71\)\)\) \* Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 53 * + - 43 AS col2, + 53 - - SUM ( 71 ) * - 25 col2 +---- +-1722 +-2279 query I rowsort label-4611 SELECT DISTINCT ( - 86 ) / 92 - - 94 * - 40 AS col1 @@ -24304,8 +24569,11 @@ SELECT + 33 / + MAX ( - 99 ) - + - COUNT ( * ) + + 30 * - 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-13\) AS Int32\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + - 13 AS INTEGER ) AS col2, 89 AS col2 +---- +-13 +89 query I rowsort label-4615 SELECT + 64 / 93 @@ -24325,8 +24593,11 @@ SELECT + - CAST ( 80 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - -532 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(38\) \* Int64\(\-14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 65 / + COUNT ( * ) AS col1, 38 * - 14 AS col1 +---- +-532 +65 query I rowsort label-4619 SELECT ALL - 32 / + - ( - SUM ( DISTINCT + 8 ) ) + + MAX ( ALL + + 83 ) AS col1 @@ -24453,8 +24724,11 @@ SELECT ALL + 27 * + - NULLIF ( + CAST ( - 88 AS INTEGER ), - - 99 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) \- \(\- Int64\(\-3\)\) \* CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 72 - - - 3 * CAST ( NULL AS INTEGER ) AS col0, + 56 AS col0 +---- +56 +NULL query I rowsort label-4643 SELECT 55 / - COUNT ( * ) col2 @@ -24470,8 +24744,12 @@ SELECT 61 + 65 col0 # Datafusion - Expected - 8 # Datafusion - Expected - -153002 # 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 "Int64\(76\) \* \(\- nullif\(Int64\(65\), Int64\(\-23\)\)\) \* Int64\(31\) \- \(\- Int64\(76\)\) \+ Int64\(78\) / Int64\(48\) \+ Int64\(\-13\) \+ Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 8 AS col2, + 76 * - NULLIF ( + 65, - 23 ) * 31 - - + 76 + + 78 / + + 48 + + - 13 + + 74 AS col2, - COALESCE ( - 46, + 7 + - - 25 ) + - - MIN ( + NULLIF ( - 49, 93 ) ) +---- +-153002 +-3 +8 query I rowsort SELECT DISTINCT 83 * + + 84 AS col2 @@ -24762,8 +25040,12 @@ 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\(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\. +query IRI valuesort SELECT ALL 14, - COUNT ( * ) * + + ( - - NULLIF ( - 63, - - 73 + AVG ( + 24 ) / + 37 * - 27 * 79 ) ) / + 90 + 94 AS col2, - - 46 AS col2 +---- +14 +46 +94.7 query I rowsort SELECT + 24 + + 36 * + 48 AS col0 @@ -25045,8 +25327,11 @@ SELECT COUNT ( * ), - 82 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \- Int64\(44\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 58 - + 44 AS col2, 59 AS col2 +---- +14 +59 query I rowsort label-4756 SELECT - CASE - + 11 WHEN + COALESCE ( + - 86, - NULLIF ( 95, MIN ( + CAST ( NULL AS INTEGER ) ) ) * + ( - COUNT ( * ) ) - - + 53 + - + 88 * - - NULLIF ( + - 94, - - 97 ) ) + + 98 + COUNT ( * ) + ( + COUNT ( * ) ) THEN NULL ELSE - + 45 - - + 31 + - MIN ( - + 32 ) - + COUNT ( * ) * + + SUM ( 42 ) END AS col2 @@ -25340,8 +25625,11 @@ SELECT DISTINCT + 82 AS col2, - 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7776 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(26\) THEN NULL WHEN Int64\(\-60\) \* Int64\(31\) THEN NULL ELSE Int64\(81\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(96\) END AS col2" at position 0 and "Int64\(29\) \- CAST\(NULL AS Int32\) \+ Int64\(76\) \* \(\- CASE \(\- \(\- Int64\(93\)\)\) WHEN Int64\(8\) THEN max\(\(\- Int64\(46\)\)\) \- Int64\(40\) / nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), CASE Int64\(\-87\) WHEN Int64\(\-78\) / Int64\(71\) \* Int64\(5\) \* Int64\(7\) \+ \(\- Int64\(76\)\) THEN NULL WHEN Int64\(\-92\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-4\) \+ CASE Int64\(47\) WHEN \(\- Int64\(31\)\) \* min\(DISTINCT \(\- Int64\(\-83\)\)\) THEN Int64\(71\) \+ Int64\(16\) END THEN Int64\(\-58\) WHEN \(\- Int64\(\-43\)\) / coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(14\) \* Int64\(59\) \* coalesce\(\(\- CAST\(NULL AS Int32\)\), Int64\(\-70\) \+ Int64\(\-94\), Int64\(6\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(2\), Int64\(47\)\) THEN Int64\(\-54\) \* Int64\(31\) END\) \* count\(Int64\(1\)\) AS count\(\*\) END\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-7776 +NULL query II rowsort label-4812 SELECT 79 AS col2, - ( + 6 ) * + + 84 + 19 - - - COUNT ( * ) AS col1 @@ -26650,8 +26938,11 @@ SELECT - NULLIF ( + 99, + + 93 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 137 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col2" at position 0 and "Int64\(39\) \+ \(\- Int64\(\-98\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 36 AS col2, 39 + - ( + - 98 ) AS col2 +---- +137 +36 query I rowsort label-5069 SELECT ALL 16 - + ( - 14 ) - + CASE WHEN NOT 51 IS NOT NULL THEN COUNT ( * ) END - + COALESCE ( + 42, 3, ( + 84 ) ) AS col0 @@ -26784,8 +27075,11 @@ SELECT - 68 AS col1, CAST ( + 93 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 54 AS col0, 35 AS col0 +---- +35 +54 query I rowsort label-5094 SELECT ALL + CASE - - 56 WHEN + COUNT ( * ) - - NULLIF ( - + ( - CAST ( NULL AS INTEGER ) ), + + 26 + - 1 ) + 19 THEN NULL WHEN + 71 THEN 42 * 29 ELSE NULL END @@ -27183,8 +27477,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) / + 95 AS col0, 38 AS col0 +---- +0 +38 query I rowsort label-5171 SELECT COALESCE ( - ( COUNT ( * ) ), 20, - 32 * - NULLIF ( 80, 74 * + 55 + COALESCE ( 23, - CAST ( 97 AS INTEGER ) ) + + COUNT ( * ) * 56 ) ) * + 59 + 10 * - NULLIF ( + 70, + 35 ) @@ -27967,8 +28264,12 @@ SELECT ALL 66 + + 6 # Datafusion - Expected - -458 # Datafusion - Expected - NULL # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(17\)\) \* Int64\(27\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(18\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - + 17 * + 27 + + COUNT ( * ) col0, 79 * + CAST ( NULL AS INTEGER ) * 27, + + 18 AS col0 +---- +-458 +18 +NULL query I rowsort label-5319 SELECT - NULLIF ( 4, - MIN ( - + 68 ) ) + - ( + 4 ) * + - COUNT ( * ) * + 13 @@ -28037,8 +28338,11 @@ SELECT + 46 / + - 90, 99 / - 57 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(50\) AS Int32\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( 50 AS INTEGER ) AS col0, 31 AS col0 +---- +31 +50 query I rowsort label-5332 SELECT COUNT ( * ) / - - 75 / + + COUNT ( * ) * 12 + - NULLIF ( - - MIN ( DISTINCT 33 ), + 90 ) * + 80 * - 50 * - CAST ( NULL AS INTEGER ) @@ -28179,8 +28483,11 @@ SELECT 36 * + - COUNT ( * ) + + 57 # 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 "Int64\(94\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 94 AS col0, 82 AS col0 +---- +82 +94 query I rowsort SELECT ALL + 59 + + 4 @@ -28725,8 +29032,11 @@ SELECT NULLIF ( 83, + COALESCE ( - ( - - 58 ), + 97 * 29, 9 ) * - + 86 + + - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - -185136 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* Int64\(84\) \* Int64\(\-29\) AS col1" at position 0 and "coalesce\(Int64\(25\), Int64\(29\) \* Int64\(92\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 76 * + 84 * - 29 AS col1, COALESCE ( 25, + 29 * 92 ) AS col1 +---- +-185136 +25 query I rowsort label-5465 SELECT - 87 + - + COALESCE ( - 99, - 74 ) - + COUNT ( * ) AS col2 @@ -28776,8 +29086,11 @@ SELECT DISTINCT + 73 * NULLIF ( - 30, SUM ( + ( - 4 ) ) + + - NULLIF ( - 0, + AV # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - -4350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col2" at position 0 and "Int64\(\-58\) \* Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 84 AS col2, - 58 * 75 AS col2 +---- +-4350 +84 query I rowsort SELECT - 4 * + + ( - 97 ) * 95 * + 64 @@ -28797,8 +29110,11 @@ SELECT ALL COUNT ( * ) + 28 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 AS col0, + COUNT ( * ) AS col0 +---- +1 +50 query I rowsort label-5478 SELECT CAST ( + - 1 AS INTEGER ) + - 43 @@ -28897,8 +29213,11 @@ SELECT DISTINCT - MIN ( - 77 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -2985 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) \+ Int64\(28\) \- Int64\(46\) \* 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 II valuesort SELECT ALL - 69 + 28 - + + 46 * + 64 col1, 19 AS col1 +---- +-2985 +19 query I rowsort label-5496 SELECT 41 / - 49 col0 @@ -29334,8 +29653,11 @@ SELECT ALL + 95, 80 * 76 * - + 66 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(16\) AS Int32\) AS col0" at position 0 and "Int64\(60\) \* Int64\(\-76\) \- \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( 16 AS INTEGER ) AS col0, 60 * ( - 76 ) - - - CAST ( NULL AS INTEGER ) AS col0 +---- +16 +NULL query I rowsort SELECT ALL + 44 * 56 @@ -29968,8 +30290,11 @@ SELECT DISTINCT 86 * ( 12 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 46 AS col0, 38 AS col0 +---- +38 +46 query I rowsort label-5701 SELECT - MAX ( + COALESCE ( 78, 66 ) ) AS col1 @@ -29979,8 +30304,11 @@ 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\(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\. +query II valuesort SELECT - 85 * COUNT ( * ) + - SUM ( DISTINCT - 62 ) - MAX ( + + 84 ) / + + 63 + 24 AS col0, + 8 AS col0 +---- +0 +8 query I rowsort label-5703 SELECT ALL 55 / + 74 * 10 @@ -30546,8 +30874,11 @@ 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\(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\. +query II valuesort SELECT ALL + 99 * - - COUNT ( * ) * - COUNT ( * ) * + + 78 col2, + 10 * - ( + 57 ) * + 95 + + 82 AS col2 +---- +-54068 +-7722 query I rowsort SELECT DISTINCT + 81 * + - 54 @@ -30775,8 +31106,11 @@ SELECT ALL 56 * + 74 + + 27 + - + 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 46 AS col2, + 74 AS col2 +---- +-46 +74 query I rowsort label-5854 SELECT ALL 95 * + CASE + 18 WHEN + COUNT ( * ) * - ( - - 7 ) THEN NULL WHEN 89 THEN NULL WHEN + 77 THEN + MIN ( DISTINCT 79 ) END @@ -30929,8 +31263,12 @@ SELECT ALL 29, + 41 AS col2 # Datafusion - Expected - 37 # Datafusion - Expected - -67 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 37 AS col0, 26 + MIN ( - 93 ), 29 col0 +---- +-67 +29 +37 query I rowsort SELECT - COALESCE ( + + 10, - 62, + 12 ) AS col0 @@ -30940,8 +31278,11 @@ SELECT - COALESCE ( + + 10, - 62, + 12 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col1, + COUNT ( * ) AS col1 +---- +1 +1 query I rowsort SELECT ALL - 21 - 6 @@ -31107,8 +31448,11 @@ 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\(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\. +query II valuesort SELECT ALL + + COUNT ( * ) - 26 * - 13 AS col0, 72 AS col0 +---- +339 +72 query II rowsort label-5917 SELECT + + 45 + + 96 AS col0, + COUNT ( * ) AS col2 @@ -31144,8 +31488,11 @@ SELECT - CAST ( + AVG ( - 7 ) AS INTEGER ) * 89 * - - COALESCE ( - COUNT ( * ), # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-1\) \+ Int64\(12\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 1 + + 12 AS col1, + 38 AS col1 +---- +11 +38 query I rowsort SELECT ALL ( - + 95 ) AS col1 @@ -31516,8 +31863,11 @@ SELECT - COUNT ( DISTINCT - 70 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "Int64\(28\) \+ \(\- coalesce\(\(\- Int64\(63\)\), Int64\(\-63\), Int64\(79\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 60 AS col1, 28 + + - COALESCE ( - + ( 63 ), + - 63, 79 ) AS col1 +---- +60 +91 query I rowsort label-5995 SELECT + ( - 76 ) + + - COUNT ( * ) * + 82 + - + 80 + - - 43 * - - COUNT ( * ) @@ -31658,8 +32008,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, 32 AS col0 +---- +-1 +32 query I rowsort SELECT ALL - 86 * 70 @@ -31847,8 +32200,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 64 + + 51 + + 73 AS col2, COUNT ( * ) - + 83 AS col2 +---- +-82 +60 query I rowsort label-6058 SELECT 22 + + + MAX ( DISTINCT + CAST ( - 39 AS INTEGER ) ) + - 21 @@ -32045,8 +32401,11 @@ SELECT ALL 9, - 64 - - 80 + - 91 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - 33664 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "Int64\(\-32\) \+ Int64\(84\) \+ \(\- Int64\(\-12\)\) \+ Int64\(\-40\) \* \(\- sum\(Int64\(56\)\)\) \* Int64\(15\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 11 AS col2, - 32 + 84 + - - 12 + - 40 * + - SUM ( + + ( 56 ) ) * + 15 AS col2 +---- +11 +33664 query I rowsort SELECT 44 + - 32 @@ -32351,8 +32710,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) \* CAST\(NULL AS Int32\) \* Int64\(82\) AS col0" at position 0 and "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 57 * + CAST ( NULL AS INTEGER ) * 82 AS col0, + 61 AS col0 +---- +61 +NULL query I rowsort SELECT ALL 80 * + 24 * 75 col0 @@ -32566,8 +32928,11 @@ SELECT ALL - MIN ( DISTINCT - 93 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "\(\- Int64\(\-64\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 18 AS col1, + ( - ( + - 64 ) ) AS col1 +---- +18 +64 query I rowsort SELECT ALL 27 * + 86 * - - 96 @@ -33428,8 +33793,11 @@ SELECT ALL 36 * COUNT ( * ) * 63 AS col2, + 20 * 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -59697 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) AS col2" at position 0 and "Int64\(33\) \* \(\- Int64\(27\)\) \* Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 43 AS col2, 33 * - + 27 * ( + 67 ) AS col2 +---- +-59697 +43 query I rowsort SELECT DISTINCT - 85 + + 17 + + 41 col0 @@ -33927,8 +34295,11 @@ SELECT + ( + COUNT ( * ) ) * - 96 + + + COALESCE ( + 9, COUNT ( * ) ) + - - 14 * # Datafusion - Datafusion expected results: # Datafusion - Expected - -155 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-60\) AS Int32\) \- Int64\(2\) \+ Int64\(\-93\) AS col1" at position 0 and "Int64\(63\) \- Int64\(\-29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - 60 AS INTEGER ) - 2 + - 93 AS col1, 63 - - 29 AS col1 +---- +-155 +92 query I rowsort SELECT DISTINCT + 85 + - 20 AS col1 @@ -34072,8 +34443,11 @@ SELECT ALL 98 + - 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 6320 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- Int64\(4\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(79\) \* Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MIN ( - + 4 ) + + COUNT ( * ) AS col1, 79 * + 80 AS col1 +---- +-3 +6320 query I rowsort SELECT + 80 * + 85 col1 @@ -36106,8 +36480,11 @@ SELECT ( 38 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(94\)\)\) AS col1" at position 0 and "Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + - SUM ( ALL + 94 ) ) AS col1, 98 AS col1 +---- +-94 +98 query II rowsort label-6872 SELECT ALL + CAST ( - 78 AS INTEGER ) AS col0, 98 AS col1 @@ -36442,8 +36819,11 @@ 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 "max\(Int64\(94\)\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MAX ( 94 ) AS col2, 0 AS col2 +---- +0 +94 query I rowsort label-6936 SELECT 80 / + 66 @@ -36605,8 +36985,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 73 + 28 AS col1, + ( COUNT ( * ) ) * + 97 AS col1 +---- +-45 +97 query I rowsort label-6968 SELECT - + ( COUNT ( * ) ) * - 51 @@ -36727,8 +37110,11 @@ SELECT DISTINCT SUM ( ALL 28 ) / - 34 * + 86 + - - 0 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 351 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "Int64\(\-13\) \* \(\- \(\- nullif\(Int64\(\-27\), Int64\(47\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 AS col1, - 13 * - - NULLIF ( - 27, + + 47 ) AS col1 +---- +351 +54 query I rowsort label-6992 SELECT DISTINCT - ( - + 57 ) * - 74 + + - COUNT ( * ) + 54 * - - 50 * + COUNT ( * ) AS col1 @@ -37317,8 +37703,11 @@ SELECT + 76 * + ( MAX ( 12 ) ) - - - 1 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 640 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(DISTINCT \(\- Int64\(\-35\)\)\)\) AS col2" at position 0 and "Int64\(\-80\) \* Int64\(\-8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - ( COUNT ( DISTINCT - - 35 ) ) AS col2, - 80 * + - 8 AS col2 +---- +-1 +640 query I rowsort label-7104 SELECT - 40 + - MAX ( 96 ) * ( 54 ) @@ -37446,8 +37835,11 @@ SELECT + - 12 * + 46 # 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 "nullif\(Int64\(\-44\), Int64\(\-66\) \* \(\- Int64\(3\)\)\) 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 II valuesort SELECT + NULLIF ( + - 44, - 66 * - + 3 ) AS col1, - COUNT ( - - 10 ) AS col1 +---- +-1 +-44 query I rowsort label-7129 SELECT - COUNT ( * ) * - ( - 15 ) * - COUNT ( * ) + - 11 AS col1 @@ -37784,8 +38176,11 @@ SELECT - ( - 73 ) * - - ( - + 96 ) + + COUNT ( * ) # 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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 26 AS col0, + 86 AS col0 +---- +26 +86 query II rowsort label-7193 SELECT + COUNT ( * ) AS col1, COUNT ( * ) * + - CAST ( + - 19 AS INTEGER ) * - 11 + + 48 @@ -37857,8 +38252,11 @@ SELECT - 76 * + 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col1" at position 0 and "Int64\(69\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 65 AS col1, + 69 col1 +---- +65 +69 query I rowsort label-7206 SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + + MIN ( - ( + 66 ) ) AS col2 @@ -38156,8 +38554,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) AS col2, + 30 * - 5 col2 +---- +-1 +-150 query I rowsort label-7264 SELECT - + 22 * + 66 * - 12 + MIN ( ALL - 76 ) @@ -38676,8 +39077,11 @@ SELECT + 15 / - 89 AS col2, 92 * 53 / 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-44\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-13\) \+ Int64\(8\) \* \(\- Int64\(\-28\)\) \* CAST\(NULL AS Int32\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \+ Int64\(16\)\)\) AS col2" at position 0 and "\(\- Int64\(65\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( - 44, - COUNT ( * ) - + COUNT ( * ) + - 13 + 8 * - - 28 * + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) + 16 ) col2, - ( + 65 ) AS col2 +---- +-65 +44 query I rowsort label-7363 SELECT + MIN ( 70 ) * 3 AS col0 @@ -38718,8 +39122,11 @@ SELECT ALL + 27 / 52 + + 67 + - - 86 + - 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) / Int64\(4\) \+ Int64\(33\) AS col1" at position 0 and "Int64\(90\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 11 / + 4 + + 33 AS col1, ( 90 ) col1 +---- +35 +90 query II rowsort label-7371 SELECT CAST ( - 56 AS INTEGER ) AS col0, - 37 * 59 * 61 * + COUNT ( * ) @@ -38905,8 +39312,11 @@ SELECT 58 + - 17 + ( - 25 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-11\), Int64\(\-69\)\) \+ Int64\(27\) AS col2" at position 0 and "CASE \(\- CAST\(Int64\(91\) AS Int32\)\) WHEN Int64\(16\) THEN \(\- Int64\(97\)\) / \(\- count\(Int64\(\-77\)\)\) WHEN \(\- \(\- min\(Int64\(42\)\)\)\) \* Int64\(83\) THEN \(\- Int64\(\-15\)\) \* Int64\(98\) / Int64\(\-2\) \* Int64\(\-96\) \+ Int64\(39\) \+ \(\- Int64\(55\)\) \* Int64\(\-39\) END \+ coalesce\(coalesce\(Int64\(\-5\), count\(Int64\(1\)\) AS count\(\*\) \* \(\- Int64\(11\)\) / Int64\(97\) \- Int64\(36\) \+ Int64\(47\)\), Int64\(\-4\) \- Int64\(81\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +16 +NULL query I rowsort label-7405 SELECT ALL - 52 / SUM ( + 82 ) @@ -38936,8 +39346,11 @@ SELECT DISTINCT - 34 / + 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3160 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \+ Int64\(35\) \* Int64\(88\) AS col2" at position 0 and "Int64\(11\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 80 + 35 * + 88 AS col2, + 11 + + COUNT ( * ) AS col2 +---- +12 +3160 query II rowsort label-7411 SELECT 21, COUNT ( * ) + 25 AS col0 @@ -39121,8 +39534,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 75 + - 77 col0, - COUNT ( * ) col0 +---- +-1 +-2 query I rowsort label-7444 SELECT COUNT ( * ) * CASE + - NULLIF ( 7, - 56 ) WHEN 58 THEN NULL WHEN - + 74 THEN + - COUNT ( * ) END AS col2 @@ -39524,8 +39940,11 @@ 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\(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\. +query II valuesort SELECT ALL 93 AS col1, COUNT ( * ) + - CASE 21 WHEN + 32 * COUNT ( * ) THEN - 55 END AS col1 +---- +93 +NULL query I rowsort SELECT ALL + - 33 * 37 @@ -39648,14 +40067,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(11\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- CAST\(NULL AS Int32\)\) \* Int64\(75\) \+ avg\(Int64\(57\)\) / \(\- Int64\(\-5\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + COUNT ( * ) * + 11 col2, - COUNT ( * ) * - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * ( 75 ) + AVG ( ALL + + 57 ) / - - 5 AS col2 +---- +11 +NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) \+ Int64\(2\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) + + 2 AS col2, 36 AS col2 +---- +3 +36 query II rowsort label-7545 SELECT 24 + + COUNT ( * ), 0 * + 0 AS col0 @@ -40104,8 +40529,12 @@ SELECT 85 * - 78 AS col2 # Datafusion - Expected - 84 # Datafusion - Expected - -92 # 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 "Int64\(\-11\) \- Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 84 col1, - 11 - 81 AS col1, - COUNT ( * ) +---- +-1 +-92 +84 query I rowsort SELECT ALL 49 + 6 @@ -40130,8 +40559,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 136 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ Int64\(14\) \* coalesce\(Int64\(\-92\), \(\- Int64\(1\)\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(17\) \+ Int64\(\-17\) \* \(\- coalesce\(Int64\(\-3\), Int64\(49\)\)\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-43\) \+ Int64\(66\) \* Int64\(5\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(96\) \+ Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +136 +NULL query I rowsort label-7635 SELECT COALESCE ( + 25, - 50, - CASE 53 WHEN + COUNT ( DISTINCT + - 49 ) + + 41 * - 10 THEN + 43 * - + 79 ELSE - + COALESCE ( + COUNT ( - - 47 ), - 93 ) * + + 23 + - 98 + CASE 85 WHEN + - 96 * 33 THEN - MAX ( 71 ) WHEN - 26 THEN NULL ELSE - - 7 * - ( + COUNT ( * ) ) + + ( - + 48 ) END END * + + 24 + - 80 ) @@ -40248,8 +40680,11 @@ SELECT 0, MIN ( ALL - + 42 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) / Int64\(\-5\) \+ \(\- Int64\(65\)\) \- Int64\(\-55\) AS col2" at position 0 and "\(\- Int64\(8\)\) \+ Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 49 / - 5 + - + 65 - - 55 AS col2, - ( + 8 ) + - 45 col2 +---- +-19 +-53 query I rowsort label-7657 SELECT COUNT ( * ) * + 67 * - 55 AS col1 @@ -40323,8 +40758,12 @@ SELECT DISTINCT + 67 - + - CASE - 29 WHEN - CAST ( - COUNT ( * ) AS INTEGER ) TH # Datafusion - Expected - -27 # Datafusion - Expected - 85 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(27\)\) AS col0" at position 0 and "CAST\(Int64\(85\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - ( 27 ) AS col0, + CAST ( + 85 AS INTEGER ) AS col0, 89 AS col2 +---- +-27 +85 +89 query I rowsort label-7671 SELECT ALL 0 * CAST ( NULL AS INTEGER ) AS col0 @@ -40377,8 +40816,11 @@ 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\(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\. +query II valuesort SELECT - ( + + COUNT ( * ) ) col2, + 88 col2 +---- +-1 +88 query I rowsort SELECT ALL 89 + + 40 @@ -40459,8 +40901,11 @@ SELECT + NULLIF ( 11, + 65 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4878 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) \* Int64\(72\) \+ Int64\(\-99\) \+ Int64\(49\) \+ \(\- Int64\(\-68\)\) AS col2" at position 0 and "Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 68 * + 72 + - 99 + + 49 + - - 68 AS col2, + 79 AS col2 +---- +-4878 +79 query I rowsort label-7697 SELECT DISTINCT CASE - COUNT ( * ) WHEN + 37 * - SUM ( ALL - - 73 ) THEN - 36 * + 74 / - 10 * + + ( - 36 ) END * 23 / COUNT ( ALL 15 ) * 1 * - - 28 @@ -40594,8 +41039,11 @@ SELECT ALL 26 + - MIN ( ALL - - 47 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2072 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) \- \(\- Int64\(60\)\) \* Int64\(34\) AS col0" at position 0 and "Int64\(15\) \+ Int64\(\-33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 - - + 60 * + + 34 AS col0, + 15 + - 33 AS col0 +---- +-18 +2072 query I rowsort SELECT ALL - 36 * + - 65 AS col2 @@ -40961,8 +41409,11 @@ SELECT 55 + 41 / + 40 + + 74 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 98 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "Int64\(\-9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 98 AS col0, - 9 AS col0 +---- +-9 +98 query I rowsort label-7793 SELECT 61 / - 82 @@ -41119,8 +41570,11 @@ SELECT - 31 + + 44 * 18 # 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 "Int64\(88\) / Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 36 AS col2, 88 / + + ( + 59 ) AS col2 +---- +1 +36 query I rowsort SELECT ALL + 42 * - 86 AS col2 @@ -42066,15 +42520,22 @@ SELECT NULLIF ( + + 33, 56 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "Int64\(11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 48 AS col1, 11 AS col1 +---- +11 +48 # Datafusion - Datafusion expected results: # 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\(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\. +query III valuesort 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 +---- +-59 +43 +50097 query I rowsort label-8004 SELECT ALL MIN ( + 38 ) AS col0 @@ -42116,8 +42577,11 @@ 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\(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\. +query II valuesort SELECT 63 + + CASE + + 38 WHEN - + 11 THEN NULL ELSE COUNT ( * ) + + 36 END AS col0, - 11 AS col0 +---- +-11 +100 query I rowsort label-8012 SELECT - 72 - - COUNT ( * ) * - 90 AS col0 @@ -42148,8 +42612,11 @@ SELECT ALL + COUNT ( * ) + + - CAST ( NULLIF ( - 0, - COUNT ( * ) + - - AVG ( + # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 184 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- coalesce\(CAST\(Int64\(\-91\) AS Int32\), Int64\(\-15\) \* Int64\(29\) \- \(\- Int64\(28\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CAST\(Int64\(98\) AS Int32\) \+ Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( + CAST ( - 91 AS INTEGER ), - 15 * 29 - - + 28 ) AS col0, COUNT ( * ) * CAST ( 98 AS INTEGER ) + 86 col0 +---- +184 +91 query I rowsort label-8018 SELECT ALL MAX ( + 63 ) @@ -42211,8 +42678,11 @@ 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\(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\. +query II valuesort SELECT 64 * + - 85 AS col2, + COUNT ( * ) + - 42 + + 34 * + NULLIF ( - 15, 37 ) * 86 AS col2 +---- +-43901 +-5440 query I rowsort label-8030 SELECT + NULLIF ( 75, + CAST ( NULL AS INTEGER ) + - - COALESCE ( + 50, - MIN ( - + 5 ) * - + 49 + - 12 ) ) * - 51 + + 83 * + - 68 AS col1 @@ -42361,8 +42831,11 @@ SELECT - - 26 * - 34 + - 98 col0 # 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 "Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( ( + 66 ) ) AS col1, ( 98 ) AS col1 +---- +66 +98 query I rowsort SELECT ALL - + 22 * + + 54 @@ -42624,8 +43097,11 @@ SELECT 58 AS col2, + 44 / - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 424 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) 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 II valuesort SELECT ALL 30 AS col0, 53 * + + 8 col0 +---- +30 +424 query I rowsort SELECT ALL + 49 + - 42 AS col1 @@ -43382,8 +43858,11 @@ SELECT ALL + SUM ( DISTINCT - 92 ) * + 62 * - + CAST ( - 36 AS INTEGER ) / - COU # Datafusion - Datafusion expected results: # Datafusion - Expected - -8099 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \* \(\- Int64\(91\)\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 * - + 91 AS col0, 81 AS col0 +---- +-8099 +81 query I rowsort label-8256 SELECT COUNT ( * ) * - + 59 @@ -43988,8 +44467,11 @@ SELECT DISTINCT + 20 + + - MIN ( DISTINCT 10 ) + + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \+ Int64\(31\) AS col1" at position 0 and "CAST\(Int64\(39\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 30 + + 31 AS col1, CAST ( 39 AS INTEGER ) AS col1 +---- +39 +61 query I rowsort label-8373 SELECT 51 + - 29 / - ( + ( - 73 ) ) + - 6 - - - 87 + 48 @@ -44501,8 +44983,11 @@ 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\(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\. +query II valuesort SELECT ALL 18 - - CASE 57 WHEN + 1 THEN NULL ELSE 3 / + COUNT ( * ) END / + ( 11 ) AS col2, 89 * - - 6 col2 +---- +18 +534 query I rowsort SELECT DISTINCT ( - + 87 ) * 23 @@ -44823,8 +45308,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(7\)\) \+ Int64\(6\) \+ Int64\(\-14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 51 / - - 60 AS col1, + COUNT ( * ) * - + 7 + 6 + - 14 AS col1 +---- +-15 +0 query I rowsort label-8533 SELECT COALESCE ( 91, - ( + COALESCE ( - ( 22 ), - 23 / - - 48 ) ), - 38 ) / 90 / - 32 @@ -45247,8 +45735,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 19 + 26 col2, - 36 * - COUNT ( * ) AS col2 +---- +36 +45 query I rowsort SELECT + 85 + + 90 - - 39 + + 37 * + 69 AS col2 @@ -45279,8 +45770,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 86 - + + 24 AS col1, + 90 / + 53 - 93 + - COUNT ( * ) AS col1 +---- +-93 +62 query I rowsort label-8619 SELECT - - 92 * - 70 * + + CAST ( - + 1 AS INTEGER ) * + 20 + - 72 @@ -46344,8 +46838,11 @@ SELECT - 28 col1, - ( + COALESCE ( - ( + 24 ), MIN ( + ( - 64 ) ) - + 19 * + 35 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col1, 1 col1 +---- +1 +1 query I rowsort label-8822 SELECT + 52 * + SUM ( DISTINCT - 57 ) + - - 99 AS col2 @@ -46368,8 +46865,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col1" at position 0 and "sum\(Int64\(68\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 AS col1, SUM ( + 68 ) AS col1 +---- +46 +68 query I rowsort SELECT DISTINCT + 48 * - 9 + + 22 AS col0 @@ -46486,8 +46986,11 @@ SELECT ALL + COUNT ( * ) + - 20 + - 56 / 28 * 61 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) \+ Int64\(\-79\) AS col2" at position 0 and "Int64\(95\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 53 + - 79 AS col2, 95 AS col2 +---- +-26 +95 query I rowsort label-8848 SELECT DISTINCT ( 46 ) / COUNT ( * ) * 1 * - 48 * - 25 + - 36 - 87 + - COUNT ( - + 14 ) AS col0 @@ -46674,8 +47177,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col2" at position 0 and "Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 25 AS col2, 0 AS col2 +---- +0 +25 query I rowsort label-8883 SELECT ALL COUNT ( DISTINCT + 59 ) AS col1 @@ -46753,8 +47259,11 @@ SELECT DISTINCT - + 22, NULLIF ( 17, + 38 * 21 + + COUNT ( * ) ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -504 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* Int64\(\-6\) AS col2" at position 0 and "CAST\(NULL AS Float64\) \+ Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT 84 * + ( - 6 ) AS col2, + CAST ( NULL AS FLOAT8 ) + + 8 AS col2 +---- +-504 +NULL query I rowsort label-8898 SELECT COUNT ( - ( + + 31 ) ) @@ -47234,8 +47743,11 @@ 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\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(\-49\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 68 col1, - 55 * - COUNT ( * ) + - - 49 AS col1 +---- +-68 +104 query I rowsort SELECT DISTINCT 77 + - 78 * - 38 * + 68 AS col0 @@ -47450,8 +47962,11 @@ SELECT + 14 AS col0, 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 17 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 17 AS col1, 13 AS col1 +---- +13 +17 query I rowsort SELECT ALL 64 * - 2 @@ -47742,8 +48257,11 @@ SELECT ALL COUNT ( * ) * - + 76 * - ( + ( + COUNT ( * ) ) ) + - + 0 + 84 + 40 * # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(39\)\) \+ Int64\(\-78\) AS col2" at position 0 and "Int64\(\-7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( ( + 39 ) ) + - 78 AS col2, - 7 AS col2 +---- +-39 +-7 query I rowsort SELECT 3 + + 29 * - - 46 AS col1 @@ -47904,8 +48422,11 @@ SELECT DISTINCT 32 - + + 87 * 48 * + - 55 + - 9 - - COUNT ( DISTINCT + 63 ) - - # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- nullif\(Int64\(67\), count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 0 and "Int64\(60\) \* Int64\(\-17\) \* Int64\(84\) \+ Int64\(71\) \* \(\- CAST\(NULL AS Int32\)\) \- nullif\(Int64\(17\), \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - NULLIF ( + 67, COUNT ( * ) ) AS col0, 60 * - 17 * + 84 + 71 * - CAST ( NULL AS INTEGER ) - + NULLIF ( + 17, - - COUNT ( * ) ) AS col0 +---- +67 +NULL query I rowsort SELECT - + 72 col0 @@ -48357,8 +48878,11 @@ SELECT - COALESCE ( + - 74, 18, 24 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- max\(DISTINCT \(\- nullif\(Int64\(11\), Int64\(12\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, - MAX ( DISTINCT - NULLIF ( + 11, 12 ) ) col1 +---- +1 +11 query I rowsort label-9202 SELECT + CAST ( - + 91 AS INTEGER ) * 54 col1 @@ -48604,8 +49128,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) * - 78 AS col0, - 65 * - 86 * 14 * - 40 * 53 col0 +---- +-165911200 +78 query I rowsort label-9249 SELECT ALL + 10 / CAST ( - ( + 6 ) AS INTEGER ) * - COUNT ( * ) col0 @@ -48844,8 +49371,11 @@ SELECT ALL + - 6 * - NULLIF ( - 63, - 26 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1938 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) \* Int64\(50\) \+ \(\- CASE \(\- coalesce\(Int64\(47\), Int64\(\-75\) \+ \(\- Int64\(\-53\)\)\)\) WHEN \(\- Int64\(77\)\) \- Int64\(86\) THEN NULL ELSE Int64\(60\) END\) \- Int64\(\-10\) \+ \(\- Int64\(88\)\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 36 * + 50 + - CASE - COALESCE ( 47, + - 75 + - - 53 ) WHEN - + 77 - 86 THEN NULL ELSE 60 END - - 10 + + + ( - + 88 ) AS col2, + 90 AS col2 +---- +-1938 +90 query I rowsort SELECT + NULLIF ( + 95, + - 20 ) AS col0 @@ -48886,8 +49416,11 @@ SELECT - MIN ( ALL - 22 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -137 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(90\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(\-47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, + 90 * - ( COUNT ( * ) ) + - 47 AS col0 +---- +-137 +1 query I rowsort label-9304 SELECT 10 * + - 0 + + + MIN ( 88 ) - 82 + - 61 AS col2 @@ -48971,8 +49504,11 @@ SELECT - 86 * + 39 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - -9916956 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col0" at position 0 and "Int64\(84\) \* Int64\(\-69\) \* Int64\(29\) \* Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 19 AS col0, + 84 * - 69 * + 29 * + 59 AS col0 +---- +-19 +-9916956 query I rowsort SELECT ALL + 47 + - COALESCE ( + - 99, 99 + 50 ) + - 50 - - - 64 * 4 @@ -48982,8 +49518,11 @@ SELECT ALL + 47 + - COALESCE ( + - 99, 99 + 50 ) + - 50 - - - 64 * 4 # 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 "Int64\(9\) AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 AS col1, + 47 AS col1 +---- +47 +9 query I rowsort label-9322 SELECT DISTINCT - 25 + + - 26 + ( - 18 ) + + 98 / 37 * - CAST ( NULL AS INTEGER ) AS col2 @@ -49255,8 +49794,11 @@ SELECT NULLIF ( 47, - 55 ) / + 93 * - + 57 + + 68 * + 62 AS col0 # 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 "Int64\(1\) AS col1" at position 0 and "Int64\(94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 AS col1, 94 AS col1 +---- +1 +94 query I rowsort label-9373 SELECT ALL 24 / + 84 AS col0 @@ -49315,8 +49857,11 @@ SELECT 9 * - + 71 # 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 "Int64\(65\) / Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 AS col1, 65 / + 53 AS col1 +---- +1 +17 query I rowsort SELECT ALL - ( - 93 ) AS col1 @@ -49509,8 +50054,11 @@ SELECT - + 16 * 81 AS col1, 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-71\)\) AS col2" at position 0 and "Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - - 71 ) AS col2, - 12 AS col2 +---- +-12 +71 query II rowsort label-9420 SELECT - 89 * SUM ( ALL + 1 ) * + - 77 - - COUNT ( DISTINCT - - 42 ) + 78 + - COUNT ( * ) * + 37 AS col2, - COUNT ( * ) @@ -49611,8 +50159,11 @@ 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\(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\. +query II valuesort SELECT + 29 * - COUNT ( * ) * - 89 * + - 85 * + - MIN ( + 85 ) AS col2, 56 AS col2 +---- +18647725 +56 query I rowsort SELECT + 35 * + 97 @@ -49628,8 +50179,12 @@ SELECT + 5 * + 33 col2 # Datafusion - Expected - -21896 # Datafusion - Expected - 0 # Datafusion - Expected - 101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) \* Int64\(\-17\) \* Int64\(46\) AS col1" at position 0 and "max\(Int64\(26\)\) / Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 28 * + - 17 * + 46 AS col1, + MAX ( + 26 ) / + + 93 AS col1, + + 4 + - - 97 +---- +-21896 +0 +101 query I rowsort SELECT DISTINCT 63 * + + 82 AS col2 @@ -49686,8 +50241,11 @@ SELECT DISTINCT - 54 * COALESCE ( + + COUNT ( * ), + + 84 ) + - - 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -47 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col1" at position 0 and "Int64\(\-47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 82 AS col1, - 47 AS col1 +---- +-47 +82 query I rowsort SELECT DISTINCT + 5 + + 4 @@ -49822,8 +50380,11 @@ SELECT ALL - ( + + 66 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \* Int64\(1\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 * + 1 AS col2, 24 AS col2 +---- +18 +24 query II rowsort label-9480 SELECT 60 col1, 15 * - ( + SUM ( + 50 ) ) AS col2 @@ -50188,8 +50749,11 @@ SELECT ALL 46 / 50 + 64 * - + 83 * - COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(4\), Int64\(61\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + NULLIF ( + 4, + 61 ) AS col2, + COUNT ( * ) AS col2 +---- +1 +4 query I rowsort SELECT - 8 * 89 * + 16 @@ -50217,8 +50781,11 @@ SELECT - + 88 * - + CAST ( + + 14 AS INTEGER ) + + COUNT ( * ) + + - 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - -2541 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col0" at position 0 and "\(\- sum\(DISTINCT Int64\(33\)\)\) \* \(\- Int64\(\-77\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 80 AS col0, - SUM ( DISTINCT + + 33 ) * - - 77 AS col0 +---- +-2541 +-80 query II rowsort label-9556 SELECT ALL + 38 AS col0, 0 - + 23 + MAX ( + - 10 ) + + 63 - 16 * + ( + - 84 ) AS col1 @@ -50843,8 +51410,11 @@ SELECT + COUNT ( * ) - 78 - 26 - - + 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5490 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* Int64\(\-61\) AS col2" at position 0 and "Int64\(70\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 90 * - 61 AS col2, 70 AS col2 +---- +-5490 +70 query I rowsort label-9676 SELECT ALL 99 * + 7 * ( - COALESCE ( - COUNT ( * ), + 36 ) ) AS col0 @@ -51207,8 +51777,11 @@ SELECT + 28 + + - 77, 67 * 67 - ( 25 ) + + - COALESCE ( 87, + 80 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \+ Int64\(18\) \* \(\- min\(Int64\(67\)\)\) \+ Int64\(65\) \* \(\- CAST\(NULL AS Int32\)\) \- \(\- avg\(Int64\(89\)\)\) AS col1" at position 0 and "Int64\(79\) \+ Int64\(87\) / Int64\(\-38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL + ( + 84 ) + + + ( + 18 ) * - MIN ( + 67 ) + + 65 * - + CAST ( NULL AS INTEGER ) - - AVG ( 89 ) AS col1, + 79 + + 87 / ( - 38 ) AS col1 +---- +77 +NULL query I rowsort label-9745 SELECT DISTINCT COALESCE ( - - 72, + COUNT ( * ) ) AS col1 diff --git a/data/sqlite/random/expr/slt_good_94.slt b/data/sqlite/random/expr/slt_good_94.slt index 8029981..d4053fc 100644 --- a/data/sqlite/random/expr/slt_good_94.slt +++ b/data/sqlite/random/expr/slt_good_94.slt @@ -476,8 +476,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1722 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \* \(\- coalesce\(Int64\(82\), Int64\(\-5\)\)\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 21 * - COALESCE ( + 82, - 5 ) AS col0, 10 AS col0 +---- +10 +1722 query I rowsort label-83 SELECT + 70 * NULLIF ( + CASE 15 WHEN + COUNT ( * ) THEN + - CAST ( NULL AS INTEGER ) END, - CAST ( + 52 AS INTEGER ) ) AS col0 @@ -568,8 +571,11 @@ SELECT COUNT ( * ) + CAST ( - 94 AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -8 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ Int64\(\-24\) AS col1" at position 0 and "Int64\(24\) / \(\- avg\(DISTINCT \(\- Int64\(34\)\)\)\) \* Int64\(20\) \* CASE Int64\(27\) WHEN Int64\(24\) THEN NULL WHEN Int64\(51\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN \(\- CAST\(Int64\(69\) AS Int32\)\) THEN nullif\(Int64\(87\), CAST\(NULL AS Int32\)\) ELSE NULL END \+ Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +-8 +NULL query II rowsort label-101 SELECT DISTINCT 4 - - + 72 - - 62 / + + 36, CAST ( + 85 AS INTEGER ) * - 54 * + 76 AS col2 @@ -839,8 +845,11 @@ 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\(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\. +query II valuesort SELECT ALL - 44 * - MIN ( ALL 64 ) + + COUNT ( * ) + - - COUNT ( * ) / - + 81 AS col0, 9 AS col0 +---- +2817 +9 query I rowsort label-153 SELECT + CASE + 0 WHEN + 72 * + 67 THEN - + CAST ( NULL AS INTEGER ) - 12 END AS col2 @@ -1317,8 +1326,11 @@ SELECT 54 + - COUNT ( * ) / 30 - - 92 + - COUNT ( * ) + - + 92 * ( 47 ) AS col2, # Datafusion - Datafusion expected results: # Datafusion - Expected - -5400 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) \* Int64\(\-90\) AS col0" at position 0 and "Int64\(\-63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 * + ( - 90 ) AS col0, - 63 col0 +---- +-5400 +-63 query I rowsort label-243 SELECT SUM ( 31 ) + 84 @@ -1865,8 +1877,12 @@ SELECT ALL - 32 + + SUM ( DISTINCT + - 29 ) col0 # Datafusion - Expected - 48 # Datafusion - Expected - 83 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col0" at position 0 and "Int64\(41\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 48 AS col0, COUNT ( * ) * 47 + + 36, 41 col0 +---- +41 +48 +83 query I rowsort label-348 SELECT DISTINCT + 98 + 23 * COUNT ( * ) AS col2 @@ -1945,8 +1961,11 @@ SELECT 38 + - 6 * + 85 - + 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1232 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \* Int64\(28\) AS col1" at position 0 and "Int64\(\-7\) / Int64\(95\) \* Int64\(12\) / count\(Int64\(1\)\) AS count\(\*\) \+ \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 * 28 AS col1, - 7 / + + 95 * 12 / COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col1 +---- +1232 +NULL query I rowsort label-363 SELECT 80 * COUNT ( * ) * 2 * + - 6 col0 @@ -2397,8 +2416,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 74 + - COUNT ( * ) * - 16 + + 33 + - COALESCE ( - + 73, - 59 * + 42 ) + + 98 AS col2, 30 AS col2 +---- +146 +30 query I rowsort SELECT - - 10 * 53 * - 14 * + ( + 60 ) AS col0 @@ -2472,8 +2494,11 @@ SELECT + SUM ( DISTINCT - 64 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - -864 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-25\)\) AS col1" at position 0 and "Int64\(\-27\) \* Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - + ( + - 25 ) ) AS col1, - 27 * 32 AS col1 +---- +-864 +25 query I rowsort SELECT + COALESCE ( 7, + 98 ) @@ -2525,8 +2550,11 @@ SELECT DISTINCT + + 36 * 5 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) AS col2" at position 0 and "Int64\(60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 54 AS col2, + 60 AS col2 +---- +-54 +60 query I rowsort label-472 SELECT DISTINCT + SUM ( DISTINCT - 84 ) + + + 79 @@ -2768,8 +2796,11 @@ SELECT DISTINCT + ( + COUNT ( * ) ) AS col1, 59 * + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3861 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \* Int64\(99\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 39 * + 99 AS col2, 55 AS col2 +---- +-3861 +55 query I rowsort label-517 SELECT ALL + CASE - 97 WHEN 71 + + 5 - - 42 + 11 + - - CAST ( - 31 AS INTEGER ) / + - 80 + - 42 * + ( + COUNT ( * ) ) THEN - - 50 * - 99 + - 84 WHEN - 7 * + 86 THEN NULL ELSE + + NULLIF ( + 35, - + 38 * + COUNT ( * ) * - CASE 72 WHEN 31 * + 49 + 84 THEN + 44 * 63 ELSE NULL END ) END @@ -3128,8 +3159,11 @@ SELECT ALL + 30 + + + 9 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(90\) / Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( + - 41 ) + + ( + COUNT ( * ) ) AS col1, 90 / 96 AS col1 +---- +-40 +0 query I rowsort label-585 SELECT DISTINCT 56 + + 55 + + COUNT ( * ) @@ -3360,8 +3394,11 @@ SELECT ALL + + 17 * 6 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4717 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- Int64\(53\)\) AS Int32\)\) \* Int64\(89\) AS col1" at position 0 and "Int64\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - CAST ( - + 53 AS INTEGER ) * + + 89 AS col1, 21 AS col1 +---- +21 +4717 query I rowsort label-629 SELECT DISTINCT + - 62 * + 53 - + COUNT ( * ) * + COUNT ( * ) * - ( + 77 ) * + 58 + - + 19 * + + 51 @@ -3669,8 +3706,11 @@ SELECT DISTINCT - 63 - + 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-68\), count\(Int64\(1\)\) AS count\(\*\) \+ CAST\(NULL AS Int32\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL NULLIF ( - 68, COUNT ( * ) + + + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) ) AS col2, + 41 col2 +---- +-68 +41 query I rowsort label-688 SELECT - - 61 - + 95 * + COUNT ( * ) @@ -3859,8 +3899,11 @@ SELECT DISTINCT COUNT ( DISTINCT + 94 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(66\), count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "avg\(DISTINCT Int64\(\-52\)\) \+ Int64\(33\) \- count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-91\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) \+ \(\- \(\- CAST\(NULL AS Float64\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT NULLIF ( 66, + COUNT ( * ) ) AS col1, AVG ( DISTINCT - 52 ) + 33 - + COUNT ( * ) * + - 91 + - - CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS FLOAT8 ) AS col1 +---- +66 +NULL query I rowsort label-723 SELECT ALL - NULLIF ( - - 21, + - 39 ) / - 37 * - - 5 + + COUNT ( * ) AS col2 @@ -4237,8 +4280,11 @@ SELECT DISTINCT 1 AS col0, 60 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(23\)\) \+ Int64\(48\) AS col2" at position 0 and "Int64\(70\) \+ Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( 23 ) + + 48 AS col2, 70 + + ( 30 ) col2 +---- +100 +25 query I rowsort SELECT + - 6 * + - 57 @@ -4264,8 +4310,12 @@ NULL # Datafusion - Expected - 10 # Datafusion - Expected - 4608 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* Int64\(64\) AS col2" at position 1 and "Int64\(35\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 11 - COUNT ( * ), 72 * + 64 AS col2, + 35 AS col2 +---- +10 +35 +4608 query I rowsort SELECT - 17 * 24 AS col1 @@ -4332,8 +4382,11 @@ SELECT ALL - 48 / + CAST ( - - 3 AS INTEGER ) + - - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col2" at position 0 and "Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 29 col2, - 63 AS col2 +---- +-63 +29 query I rowsort label-814 SELECT ALL 55 / 1 + - 46 + 88 @@ -4459,8 +4512,11 @@ SELECT 7 * CASE 23 WHEN + 23 THEN + 27 * - + 60 ELSE NULL END AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 111 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) \+ Int64\(85\) AS col1" at position 0 and "Int64\(77\) \+ \(\- Int64\(31\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 + + 85 AS col1, 77 + - + 31 AS col1 +---- +111 +46 query I rowsort SELECT 61 * - 17 @@ -4485,8 +4541,11 @@ SELECT DISTINCT - ( - 40 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 784 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-49\) \* Int64\(\-16\) AS col1" at position 0 and "Int64\(78\) \- Int64\(98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 49 * - 16 AS col1, + 78 - + ( 98 ) AS col1 +---- +-20 +784 query I rowsort label-843 SELECT 51 / + CAST ( - + ( + CAST ( - + CAST ( + 41 AS FLOAT8 ) AS INTEGER ) ) AS INTEGER ) AS col0 @@ -4776,8 +4835,11 @@ 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\(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\. +query II valuesort SELECT ALL 9 AS col2, COUNT ( * ) * - + 42 * - COUNT ( * ) * - 50 AS col2 +---- +-2100 +9 query I rowsort SELECT ALL 85 * - + 96 AS col1 @@ -4825,8 +4887,11 @@ 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\(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\. +query II valuesort SELECT ALL 46 * COUNT ( * ) * 19 * + ( - ( - - 44 ) ) * - 67 AS col1, - 2 * 20 AS col1 +---- +-40 +2576552 query II rowsort label-908 SELECT DISTINCT 5 + + CAST ( - 35 AS INTEGER ) * + + 13 + 53, 84 + - + 81 col1 @@ -4988,8 +5053,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 52 * 92 + - 40 AS col0, 77 + + - COUNT ( * ) + + 92 col0 +---- +168 +4744 query I rowsort SELECT - 5 * - - 58 * 45 @@ -5030,8 +5098,11 @@ SELECT SUM ( ALL - NULLIF ( + + 79, - - 85 ) ) + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - -55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col0" at position 0 and "max\(Int64\(\-55\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 30 AS col0, + MAX ( - 55 ) col0 +---- +-30 +-55 query I rowsort SELECT ALL + 28 - 20 @@ -5100,8 +5171,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2520 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) \* \(\- sum\(CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(60\) \* Int64\(\-42\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 * + - SUM ( CAST ( NULL AS INTEGER ) ) AS col2, 60 * - 42 AS col2 +---- +-2520 +NULL query I rowsort SELECT ALL - - ( 87 ) @@ -5199,8 +5273,11 @@ SELECT ALL + 59 - + COUNT ( * ) - - 95 + 66 / - 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3167032 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* Int64\(29\) \* Int64\(\-22\) \* \(\- max\(Int64\(73\)\)\) AS col1" at position 0 and "Int64\(86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 68 * 29 * - 22 * - MAX ( + ( 73 ) ) AS col1, 86 AS col1 +---- +3167032 +86 query II rowsort label-979 SELECT DISTINCT 24, + COALESCE ( - MIN ( + + 11 ), - 14 + - - 50, - MIN ( 62 ) ) AS col1 @@ -5272,8 +5349,11 @@ SELECT MIN ( DISTINCT - - 82 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "Int64\(6\) / count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 AS col2, 6 / + + COUNT ( * ) + + COUNT ( * ) AS col2 +---- +7 +7 query I rowsort label-993 SELECT - 60 + + COUNT ( * ) * - 5 AS col2 @@ -5304,8 +5384,11 @@ SELECT ALL + 4 + + - 45 * 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - -58 -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\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 55 AS col0, ( - 58 ) AS col0 +---- +-55 +-58 query I rowsort label-999 SELECT + 1 + - + ( + COALESCE ( + 1, - 82 * + + COUNT ( * ) + - 69, + 28 ) ) AS col2 @@ -5330,8 +5413,11 @@ SELECT ALL 87 - - ( - + COUNT ( * ) ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN Int64\(\-54\) \* Int64\(\-92\) \+ Int64\(12\) \+ \(\- Int64\(58\)\) / Int64\(31\) THEN Int64\(33\) END \* Int64\(\-98\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CASE - COUNT ( * ) WHEN - 54 * ( - 92 ) + + 12 + - + 58 / + 31 THEN + 33 END * - 98 AS col2, COUNT ( * ) AS col2 +---- +1 +NULL query I rowsort label-1004 SELECT - NULLIF ( 68, - - 28 + - COUNT ( DISTINCT - 54 ) ) + ( - 8 ) + + 74 @@ -5543,8 +5629,12 @@ SELECT + 68 - - - 76 # Datafusion - Expected - -1332 # Datafusion - Expected - NULL # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(26\) WHEN CAST\(Int64\(5\) AS Int32\) \* Int64\(59\) \+ Int64\(\-56\) \+ Int64\(\-63\) \- Int64\(\-74\) \* Int64\(2\) \* Int64\(14\) \+ Int64\(38\) THEN Int64\(\-34\) ELSE NULL END\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 and "Int64\(17\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-1332 +17 +NULL query I rowsort SELECT + 86 * + 37 * + 16 AS col0 @@ -6087,8 +6177,11 @@ SELECT - 61 + - COUNT ( * ) AS col1, 7 + - + 93 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -4416 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(69\) \* Int64\(\-64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, 69 * - 64 AS col0 +---- +-4416 +1 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -6162,8 +6255,11 @@ SELECT + 43 - - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(\(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "max\(Int64\(\-25\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MIN ( - CAST ( NULL AS INTEGER ) ) col0, MAX ( - 25 ) AS col0 +---- +-25 +NULL query I rowsort label-1160 SELECT + 20 + + MIN ( ALL ( 33 ) ) AS col2 @@ -6739,8 +6835,11 @@ SELECT DISTINCT - + 48 * NULLIF ( 53, - + 53 * - - 30 * + 78 * + - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(92\)\) AS col1" at position 0 and "Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL SUM ( ( 92 ) ) AS col1, - 32 AS col1 +---- +-32 +92 query I rowsort SELECT - - 19 * 51 AS col1 @@ -6760,8 +6859,11 @@ SELECT ALL + COUNT ( * ) * - + ( - 12 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, COUNT ( * ) AS col1 +---- +1 +1 query II rowsort SELECT ALL 95 col0, 15 AS col1 @@ -7234,8 +7336,11 @@ SELECT ALL - 27 * - 49 # 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 "Int64\(\-35\) AS col1" at position 0 and "Int64\(\-92\) \- Int64\(\-5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 35 AS col1, - 92 - - 5 col1 +---- +-35 +-87 query I rowsort SELECT ALL 14 - - 49 - - 39 @@ -7273,8 +7378,12 @@ NULL # Datafusion - Expected - 81 # Datafusion - Expected - 84 # Datafusion - Expected - -536 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(81\) AS Int32\) AS col2" at position 0 and "Int64\(\-67\) \* Int64\(8\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + CAST ( + ( 81 ) AS INTEGER ) AS col2, 26 + + COALESCE ( + + 58, + 81 + + - 65 + + 93 * 71 * 19 * + 39 * + - 55 * - 12 ), - 67 * + 8 AS col2 +---- +-536 +81 +84 query I rowsort label-1368 SELECT ALL - + 83 - + + COUNT ( * ) + - + 17 AS col1 @@ -8296,8 +8405,11 @@ SELECT ALL - MAX ( DISTINCT 44 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 84 AS col2, 68 col2 +---- +68 +84 query I rowsort label-1569 SELECT ALL + - 42 * SUM ( ALL 84 ) @@ -8568,8 +8680,11 @@ SELECT 83 - - - CAST ( + AVG ( - 94 ) AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, + 4 AS col0 +---- +1 +4 query I rowsort label-1621 SELECT ALL + COUNT ( ALL ( + ( + ( - - 21 ) ) ) ) * - MAX ( - 82 ) + 13 * COUNT ( * ) @@ -8882,8 +8997,11 @@ SELECT ALL + COUNT ( * ) * - COALESCE ( - - CASE + 80 WHEN - + 21 THEN CAST ( NU # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 6461 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "Int64\(71\) \* Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 AS col0, 71 * 91 AS col0 +---- +18 +6461 query I rowsort label-1681 SELECT ALL 48 * + 71 + + 11 - + 86 + 21 - + + CASE ( 30 ) WHEN + 14 THEN + 78 * - CAST ( NULL AS INTEGER ) END * 72 AS col1 @@ -9052,8 +9170,12 @@ SELECT ALL 84 * + - CAST ( 75 AS INTEGER ) * 65 # Datafusion - Expected - 0 # Datafusion - Expected - -18 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) / Int64\(80\) AS col2" at position 0 and "Int64\(\-18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 58 / + 80 AS col2, - 18 AS col2, - - 4 +---- +-18 +0 +4 query I rowsort label-1714 SELECT + 37 / - 50 + 68 AS col1 @@ -9123,8 +9245,11 @@ SELECT COUNT ( * ) * COALESCE ( + 22, 74 * + + ( + 28 ) / - 4 + 26 + ( ( 75 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 930 # Datafusion - Expected - 8223 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* Int64\(30\) AS col0" at position 0 and "Int64\(\-42\) \- Int64\(3\) \* Int64\(29\) \* \(\- Int64\(95\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 31 * + 30 AS col0, - 42 - + 3 * 29 * - + 95 AS col0 +---- +8223 +930 query I rowsort label-1728 SELECT + NULLIF ( + 69, - - 30 * + MAX ( DISTINCT + 20 ) ) AS col2 @@ -9313,8 +9438,11 @@ SELECT ALL - 10 col0, 5 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \+ Int64\(\-75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 54 AS col1, CAST ( - COUNT ( * ) AS INTEGER ) + - 75 AS col1 +---- +-76 +54 query I rowsort SELECT ALL 20 + - 99 - + 51 * + 74 @@ -9757,8 +9885,11 @@ SELECT DISTINCT + 43 + + 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 92 AS col2, + 62 AS col2 +---- +-92 +62 query I rowsort SELECT 37 * + 73 * ( - 82 ) @@ -9854,8 +9985,11 @@ SELECT 55 + - ( ( 50 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - -135 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col2" at position 0 and "Int64\(\-67\) \+ Int64\(76\) \+ Int64\(\-93\) \+ Int64\(\-64\) / Int64\(\-93\) \+ Int64\(\-51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 34 AS col2, - 67 + 76 + + - 93 + - 64 / - 93 + - 51 AS col2 +---- +-135 +34 query I rowsort SELECT - 97 + 8 * - 47 * ( - 22 ) AS col2 @@ -9921,8 +10055,11 @@ SELECT ALL + ( - 52 ) + 2 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - -26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \+ Int64\(32\) AS col0" at position 0 and "Int64\(\-20\) \+ Int64\(3\) \* Int64\(\-2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 11 + + 32 AS col0, - 20 + + 3 * + - 2 AS col0 +---- +-26 +43 query I rowsort label-1881 SELECT DISTINCT - CAST ( - ( - 14 ) AS INTEGER ) + 37 * + 45 AS col2 @@ -10147,8 +10284,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 5028 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) / \(\- CAST\(Int64\(\-13\) AS Int32\)\) AS col1" at position 0 and "Int64\(54\) \* Int64\(92\) \+ Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 32 / - CAST ( - 13 AS INTEGER ) AS col1, 54 * 92 + + 60 AS col1 +---- +2 +5028 query I rowsort label-1924 SELECT - NULLIF ( 19, - 92 - 44 / - - 26 + + 84 ) / + COUNT ( * ) @@ -10158,8 +10298,11 @@ SELECT - NULLIF ( 19, - 92 - 44 / - - 26 + + 84 ) / + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 74 -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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 81 col1, 74 AS col1 +---- +74 +81 query I rowsort SELECT + + 81 * 75 col2 @@ -10233,8 +10376,11 @@ SELECT 30 * 3 - 91 * 84 + - + 88 + + 46 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - -5396 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-6\) AS col2" at position 0 and "Int64\(71\) \* Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + - 6 ) AS col2, + 71 * - 76 AS col2 +---- +-5396 +-6 query I rowsort SELECT + 37 + - - 97 @@ -10406,8 +10552,11 @@ SELECT - 57 * + - 78 * - 17 + 23 - + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 AS col1, + 97 AS col1 +---- +71 +97 query I rowsort label-1973 SELECT ALL - MIN ( DISTINCT 31 ) AS col2 @@ -10427,8 +10576,11 @@ SELECT + COUNT ( * ) * - 54 * + MIN ( DISTINCT 42 ) + + + NULLIF ( + MIN ( DISTI # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-64\)\) AS col1" at position 0 and "Int64\(\-91\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 64 AS col1, - 91 AS col1 +---- +-91 +64 query I rowsort SELECT DISTINCT - + ( ( + 75 ) ) @@ -10484,8 +10636,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-52\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 AS col0, + COUNT ( * ) + - 52 col0 +---- +-51 +0 query I rowsort label-1988 SELECT ALL 33 + CASE - CAST ( NULL AS INTEGER ) WHEN + CAST ( NULL AS INTEGER ) - - 97 + - COUNT ( * ) THEN NULLIF ( + 64, + 49 * 25 ) * + + ( 78 ) + - 95 WHEN + - 53 - - - 71 * - 4 THEN 90 END AS col0 @@ -11033,8 +11188,11 @@ SELECT 97 * - 18 * - + CAST ( + - 37 AS INTEGER ) AS col0, 58 + 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 9504 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-97\) \* Int64\(33\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(\-36\) \* Int64\(33\) \* \(\- nullif\(Int64\(8\), Int64\(\-38\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) + - 97 * 33 + + CAST ( NULL AS INTEGER ) AS col0, - 36 * + 33 * - + NULLIF ( + + 8, + - 38 ) col0 +---- +9504 +NULL query I rowsort SELECT ALL - 27 + + 67 * + + 68 @@ -11110,8 +11268,11 @@ SELECT DISTINCT + 90 - + + 34 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5140 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* Int64\(68\) \+ CAST\(\(\- Int64\(\-40\)\) AS Int32\) AS col1" at position 0 and "Int64\(43\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 75 * 68 + + + CAST ( - - 40 AS INTEGER ) AS col1, + 43 AS col1 +---- +43 +5140 query I rowsort label-2108 SELECT DISTINCT - - ( + - ( - ( + + CAST ( + - 27 AS INTEGER ) ) ) ) AS col2 @@ -11279,8 +11440,11 @@ SELECT - + 75 * - + 26 * COALESCE ( - 9, + 54 ) * - + 45 * - + 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col2" at position 0 and "Int64\(93\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 col2, 93 * COUNT ( * ) AS col2 +---- +80 +93 query I rowsort label-2141 SELECT - 51 + + ( - 70 ) * - COALESCE ( - + ( - 75 ), - COUNT ( * ) ) @@ -11452,8 +11616,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(9\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 col0, - 29 + - COUNT ( * ) * + + 9 AS col0 +---- +-38 +81 query I rowsort SELECT + 40 - 41 @@ -11492,8 +11659,11 @@ SELECT DISTINCT + 46 * 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 "min\(DISTINCT \(\- Int64\(30\)\)\) \+ CASE Int64\(52\) WHEN Int64\(78\) THEN CASE Int64\(67\) WHEN Int64\(0\) \* Int64\(38\) \+ Int64\(66\) THEN Int64\(35\) \+ Int64\(0\) ELSE Int64\(11\) END END \+ Int64\(20\) \* Int64\(83\) \* Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 AS col2, MIN ( DISTINCT - + 30 ) + CASE 52 WHEN + + 78 THEN + CASE + 67 WHEN 0 * 38 + + 66 THEN + 35 + + - 0 ELSE 11 END END + + 20 * 83 * + 76 AS col2 +---- +5 +NULL query I rowsort label-2181 SELECT + 99 / 50 - 69 + - 7 * + + 68 / + - 60 + - CAST ( NULL AS INTEGER ) + + 5 @@ -12156,8 +12326,11 @@ SELECT DISTINCT + 2, 69 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-89\)\) AS col2" at position 0 and "Int64\(\-53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 89 col2, ( - 53 ) AS col2 +---- +-53 +89 query I rowsort label-2307 SELECT + COUNT ( * ) * - 9 + 59 + CASE + + CAST ( NULL AS INTEGER ) WHEN 53 THEN + 71 - + + 86 * + - ( 16 ) * 15 / - NULLIF ( - 56, - + 68 * 63 * 83 * - 60 + - - 86 + + - 73 ) END @@ -12357,8 +12530,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col1" at position 0 and "Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 81 AS col1, - 66 AS col1 +---- +-66 +-81 query I rowsort label-2344 SELECT - + MAX ( - 91 ) AS col0 @@ -12822,8 +12998,11 @@ 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\(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\. +query II valuesort SELECT + - 8 * - COUNT ( * ) col2, + COUNT ( * ) + - + 14 AS col2 +---- +-13 +8 query I rowsort label-2431 SELECT - COUNT ( * ) * - 80 * + 57 * SUM ( DISTINCT - 84 ) @@ -12866,8 +13045,11 @@ 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\(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\. +query II valuesort SELECT ALL 76 * - COUNT ( * ) / + + 92 * + 32 AS col1, 36 AS col1 +---- +0 +36 query I rowsort label-2439 SELECT DISTINCT + + MIN ( DISTINCT 32 ) * + 19 - + 54 col0 @@ -13018,8 +13200,11 @@ SELECT COUNT ( * ) * NULLIF ( - + 14, COUNT ( * ) + + - 32 * - 69 ) + - + 94 AS # 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\) \+ Int64\(0\) \* \(\- Int64\(87\)\) AS col2" at position 0 and "max\(DISTINCT Int64\(\-89\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 58 + + 0 * - + 87 AS col2, MAX ( DISTINCT - 89 ) AS col2 +---- +-89 +58 query II rowsort label-2468 SELECT ALL - 83 + NULLIF ( - COUNT ( * ), + COUNT ( * ) + - - 43 ) - 35 * - ( - + 38 ) - - COALESCE ( - COUNT ( * ), 78 * 2 ) * + 1 * + ( 79 ) AS col0, - 49 @@ -13333,8 +13518,11 @@ SELECT - 96 + + 56 / - ( + 81 ) + - NULLIF ( 80, MAX ( DISTINCT + + CAST ( NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 374955 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ Int64\(50\) \+ \(\- Int64\(\-24\)\) \- Int64\(\-93\) \* Int64\(62\) \* Int64\(65\) AS col2" at position 0 and "Int64\(62\) / \(\- max\(Int64\(99\)\)\) \* CAST\(Int64\(95\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 91 + + 50 + - - 24 - + - 93 * + + 62 * ( + + 65 ) AS col2, 62 / + - MAX ( + 99 ) * CAST ( + 95 AS INTEGER ) AS col2 +---- +0 +374955 query I rowsort SELECT - 9 + + 43 + 38 @@ -13440,8 +13628,12 @@ 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\(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\. +query IIR valuesort 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 +---- +11 +NULL +NULL query II rowsort label-2549 SELECT DISTINCT + 27 AS col2, COUNT ( DISTINCT + 16 ) AS col0 @@ -13545,8 +13737,11 @@ SELECT - + 81 AS col0, - 53 / - + ( - 51 ) + 37 + 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 25 AS col1, + 75 AS col1 +---- +25 +75 query I rowsort SELECT 68 + + - 50 @@ -13571,8 +13766,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) END\), Int64\(\-75\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 25 / + 78 * - 3 * + - 22 AS col1, NULLIF ( - + CASE + 71 WHEN + - 71 THEN 80 ELSE 51 / + 97 * - COUNT ( * ) END, - 75 ) AS col1 +---- +0 +0 query I rowsort label-2574 SELECT DISTINCT - ( + - 47 ) * MIN ( + 72 ) @@ -14256,8 +14454,11 @@ SELECT 59 + + 74 + + - 45 - + - 82 # 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 "count\(Int64\(11\)\) \* Int64\(\-20\) / Int64\(\-61\) AS col0" at position 0 and "Int64\(71\) \- Int64\(43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( + 11 ) * - 20 / - 61 AS col0, + 71 - + 43 AS col0 +---- +0 +28 query I rowsort label-2704 SELECT DISTINCT + MIN ( DISTINCT + 11 ) * - + 11 + + 83 AS col2 @@ -14369,8 +14570,11 @@ SELECT ( 3 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4665600 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \* \(\- max\(Int64\(54\)\)\) \* CAST\(Int64\(48\) AS Int32\) \* Int64\(24\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 * - + MAX ( + 54 ) * CAST ( 48 AS INTEGER ) * 24 col0, + CAST ( NULL AS INTEGER ) AS col0 +---- +-4665600 +NULL query I rowsort label-2726 SELECT 41 * + - COUNT ( * ) + 51 - + - ( + + 36 ) AS col1 @@ -14605,8 +14809,11 @@ SELECT + 83 + 56 + + 43 AS col2, - 55 * + COUNT ( * ) * - SUM ( ALL - 74 ) * - C # Datafusion - Datafusion expected results: # Datafusion - Expected - 59 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col2" at position 0 and "CASE Int64\(\-75\) WHEN Int64\(56\) THEN Int64\(53\) WHEN \(\- \(\- CAST\(Int64\(\-44\) AS Int32\)\)\) \* CAST\(NULL AS Int32\) THEN Int64\(\-20\) \* \(\- Int64\(\-19\)\) \* Int64\(75\) \* Int64\(43\) END \* \(\- Int64\(98\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 col2, CASE - 75 WHEN 56 THEN + 53 WHEN - - ( + CAST ( + - 44 AS INTEGER ) ) * + + CAST ( NULL AS INTEGER ) THEN ( - 20 ) * - - 19 * + 75 * + 43 END * - + 98 AS col2 +---- +59 +NULL query I rowsort SELECT ALL 65 + 92 * 74 @@ -14677,8 +14884,11 @@ 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\(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\. +query II valuesort 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 +---- +84 +NULL query II rowsort SELECT ALL - 46 col0, - 47 * - ( - 71 ) * - 14 + + 89 + + 71 @@ -15056,8 +15266,11 @@ SELECT ALL 61 * + - 94 + + 95 + - 32 * + + 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7609 # Datafusion - Expected - -2014 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* \(\- Int64\(\-77\)\) \+ Int64\(63\) AS col1" at position 0 and "Int64\(38\) \* Int64\(\-53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 98 * - - 77 + + 63 AS col1, 38 * + - 53 AS col1 +---- +-2014 +7609 query I rowsort SELECT + COALESCE ( - ( - 8 ), - + 54, + 26 + + - 91 ) AS col0 @@ -15157,8 +15370,11 @@ SELECT - NULLIF ( 71, + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 23 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) AS col2" at position 0 and "Int64\(87\) / \(\- \(\- Int64\(12\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 23 AS col2, 87 / - ( - ( 12 ) ) AS col2 +---- +23 +7 query I rowsort label-2872 SELECT DISTINCT - COUNT ( 72 ) AS col2 @@ -15665,8 +15881,11 @@ SELECT - 5 + + 58 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + 99 ) col1, 35 AS col1 +---- +35 +99 query I rowsort label-2969 SELECT + CAST ( NULL AS INTEGER ) * + 91 * + + COUNT ( * ) * - ( + - 37 ) @@ -15783,8 +16002,11 @@ SELECT ( ( 97 ) ) AS col2, + 94 + + 68 * 61 * - ( MIN ( DISTINCT - 42 ) ) # 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\(70\) / min\(coalesce\(Int64\(\-55\), Int64\(\-90\) / Int64\(\-17\)\)\) \- Int64\(46\) AS col2" at position 0 and "Int64\(\-87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 / MIN ( ALL + COALESCE ( - 55, - 90 / - 17 ) ) - + 46 AS col2, - 87 AS col2 +---- +-47 +-87 query I rowsort label-2991 SELECT + 35 * + + ( COUNT ( * ) ) AS col1 @@ -16951,8 +17173,11 @@ SELECT 40 / - - 80 + + - 22 - 51 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\(79\) \- \(\- Int64\(\-80\)\) AS col0" at position 0 and "count\(DISTINCT Int64\(\-15\)\) \* count\(Int64\(\-55\) \* Int64\(99\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 79 - - - 80 AS col0, COUNT ( DISTINCT - 15 ) * COUNT ( - 55 * + 99 ) col0 +---- +-1 +1 query I rowsort label-3219 SELECT CASE 63 WHEN 84 THEN + 62 WHEN COUNT ( * ) THEN NULL WHEN - 11 + - 17 THEN 90 * 35 + + COUNT ( * ) * 74 END @@ -17198,8 +17423,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 485 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) \* Int64\(21\) \+ Int64\(44\) AS col0" at position 0 and "\(\- Int64\(86\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 21 * + 21 + 44 AS col0, - ( 86 ) AS col0 +---- +-86 +485 query I rowsort SELECT - NULLIF ( - 31, + + 73 ) col1 @@ -17449,8 +17677,11 @@ SELECT DISTINCT 85 AS col2, - 37 * COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 121 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ max\(Int64\(\-15\)\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "max\(DISTINCT Int64\(83\)\) \+ Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 + + MAX ( - 15 ) / + COUNT ( * ) AS col1, MAX ( DISTINCT 83 ) + 38 AS col1 +---- +121 +41 query II rowsort label-3314 SELECT ALL + 43, + MAX ( ALL + 55 ) * - SUM ( + ( - - 40 ) ) * + ( SUM ( ALL 7 ) ) + 5 AS col0 @@ -17659,8 +17890,11 @@ NULL # 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\(75\) AS col1" at position 0 and "Int64\(66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 75 AS col1, + 66 AS col1 +---- +66 +75 query I rowsort label-3354 SELECT ( + SUM ( 18 ) ) @@ -17955,8 +18189,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 215 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \+ Int64\(62\) \+ \(\- Int64\(\-72\)\) AS col0" at position 0 and "CASE CAST\(\(\- Int64\(14\)\) AS Int32\) WHEN CAST\(NULL AS Float64\) THEN count\(Int64\(1\)\) AS count\(\*\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 81 + + 62 + - - 72 AS col0, + CASE + CAST ( - ( + 14 ) AS INTEGER ) WHEN + + CAST ( NULL AS FLOAT8 ) THEN COUNT ( * ) END AS col0 +---- +215 +NULL query I rowsort label-3411 SELECT - 0 / - 54 + + 46 - - 85 - + - 54 * - COUNT ( * ) * - NULLIF ( - CASE 82 WHEN + 73 * - COUNT ( * ) + - 36 * + COUNT ( * ) THEN + 50 + + 88 * + 41 WHEN 7 / 55 THEN NULL END, 90 ) / 99 - - 50 AS col1 @@ -18050,8 +18287,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "nullif\(Int64\(78\), Int64\(\-11\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, NULLIF ( + 78, + - 11 ) AS col2 +---- +1 +78 query I rowsort SELECT ALL 59 * 39 col2 @@ -18118,8 +18358,11 @@ SELECT ALL COUNT ( ALL - + 68 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -119 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "Int64\(\-49\) \- Int64\(71\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 AS col0, - 49 - + + 71 + + COUNT ( * ) col0 +---- +-119 +8 query I rowsort SELECT - + ( - + 75 ) AS col2 @@ -18687,8 +18930,11 @@ SELECT - MAX ( + + 71 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \- Int64\(93\) \- Int64\(\-50\) AS col1" at position 0 and "Int64\(27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 22 - + + ( 93 ) - - 50 AS col1, 27 AS col1 +---- +-65 +27 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -19194,8 +19440,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 40 ) col1, 4 + - COUNT ( * ) AS col1 +---- +3 +40 query I rowsort label-3645 SELECT DISTINCT - 89 + - 55 * 60 / 96 - + MIN ( ALL + 39 ) col2 @@ -19991,8 +20240,12 @@ SELECT ALL - ( - - 2 ) AS col0 # Datafusion - Expected - 97 # Datafusion - Expected - 95 # Datafusion - Expected - 7314 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col2" at position 1 and "Int64\(94\) \* min\(Int64\(77\)\) \+ Int64\(76\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 97, + 95 AS col2, + + 94 * MIN ( + 77 ) + 76 AS col2 +---- +7314 +95 +97 query I rowsort label-3796 SELECT ALL - 98 + + 69 * + + 48 * COUNT ( DISTINCT + - CASE 22 WHEN + 75 THEN - - 95 ELSE NULL END ) AS col0 @@ -20002,8 +20255,11 @@ SELECT ALL - 98 + + 69 * + + 48 * COUNT ( DISTINCT + - CASE 22 WHEN + 75 THEN - # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - 30825 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(59\) \* Int64\(75\) \+ \(\- min\(Int64\(40\)\)\) \* Int64\(11\) \* Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 43 / COUNT ( * ) AS col1, + 59 * + 75 + - MIN ( 40 ) * 11 * - 60 AS col1 +---- +30825 +43 query I rowsort label-3798 SELECT ( CAST ( NULL AS INTEGER ) ) * + MAX ( - 87 ) @@ -20137,8 +20393,11 @@ SELECT + - 31 * + ( 35 ) * 74 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(91\)\) AS col1" at position 0 and "Int64\(81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( + 91 ) AS col1, + 81 AS col1 +---- +1 +81 query I rowsort SELECT DISTINCT + - 16 col0 @@ -20304,8 +20563,11 @@ NULL # 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 "\(\- \(\- max\(Int64\(62\)\)\)\) \* Int64\(0\) AS col0" at position 0 and "Int64\(61\) \+ Int64\(14\) \+ \(\- Int64\(84\)\) \+ Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - MAX ( + + 62 ) * - 0 col0, + 61 + 14 + - + 84 + + 44 AS col0 +---- +0 +35 query I rowsort SELECT - 60 + - - 77 * + + 27 col1 @@ -20672,8 +20934,11 @@ SELECT 83 - - 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - -145 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(65\)\) / Int64\(74\) \+ \(\- nullif\(\(\- Int64\(\-65\)\), Int64\(45\) \+ \(\- nullif\(CAST\(NULL AS Int32\), \(\- Int64\(\-32\)\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- avg\(DISTINCT \(\- CAST\(NULL AS Float64\)\)\)\)\)\) \+ Int64\(22\) \+ \(\- Int64\(\-89\)\) \* Int64\(20\)\)\) \- Int64\(80\) AS col0" at position 0 and "Int64\(34\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort 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 +---- +-145 +35 query I rowsort label-3928 SELECT + 11 * + + 23 * - + 31 - COUNT ( * ) AS col2 @@ -20946,8 +21211,11 @@ 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\(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\. +query II valuesort SELECT ( - COUNT ( * ) ) AS col1, 66 * + + 94 AS col1 +---- +-1 +6204 query I rowsort label-3980 SELECT ALL 76 * + COUNT ( * ) AS col2 @@ -21157,8 +21425,11 @@ SELECT + 64 + 5 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) \+ Int64\(\-65\) \+ Int64\(5\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 39 + - 65 + 5 col1, COUNT ( * ) AS col1 +---- +-21 +1 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -21326,8 +21597,11 @@ SELECT - 45 + + - 92 * + + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(\(\- Int64\(92\)\)\) AS col0" at position 0 and "Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MAX ( ALL - + 92 ) AS col0, + 56 AS col0 +---- +-92 +56 query I rowsort SELECT ALL ( - 74 ) - - - 69 AS col1 @@ -21395,8 +21669,11 @@ 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\(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\. +query II valuesort SELECT + + NULLIF ( - SUM ( + - 62 ), - COUNT ( * ) * - + 61 + - + 75 ) - - ( + NULLIF ( 29, - COUNT ( * ) ) ) AS col1, 64 AS col1 +---- +64 +91 query II rowsort label-4066 SELECT + 5 * - 11 AS col1, CAST ( NULL AS INTEGER ) col2 @@ -21633,8 +21910,11 @@ SELECT DISTINCT + COUNT ( * ) + + COUNT ( ALL + 19 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "Int64\(31\) \+ \(\- Int64\(\-37\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 18 AS col0, 31 + - - 37 AS col0 +---- +18 +68 query I rowsort label-4111 SELECT ALL COUNT ( - + 24 ) AS col0 @@ -22319,8 +22599,11 @@ SELECT CAST ( - NULLIF ( - AVG ( DISTINCT 13 ), - 97 ) AS INTEGER ) * 92 + - + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col1" at position 0 and "sum\(Int64\(\-89\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 88 AS col1, + SUM ( - 89 ) AS col1 +---- +-88 +-89 query I rowsort label-4240 SELECT + COUNT ( * ) * + 96 @@ -22694,8 +22977,11 @@ SELECT ALL + + 62 * - + 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - -291776 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \* Int64\(97\) \* Int64\(47\) AS col2" at position 0 and "Int64\(\-44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 * + 97 * 47 AS col2, ( - 44 ) AS col2 +---- +-291776 +-44 query II rowsort label-4311 SELECT SUM ( ALL + - 92 ) AS col2, 18 + - 16 + - 10 + 83 * NULLIF ( COUNT ( * ), - 46 ) @@ -22831,8 +23117,11 @@ SELECT 22 AS col1, - 68 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 90 col0, + 68 AS col0 +---- +68 +90 query I rowsort SELECT + 84 * + 20 @@ -23294,8 +23583,11 @@ SELECT DISTINCT 58 / + 83 AS col0 # 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 "\(\- Int64\(\-49\)\) / Int64\(\-99\) AS col1" at position 0 and "Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - 49 ) / + ( + - 99 ) AS col1, 47 col1 +---- +0 +47 query I rowsort label-4426 SELECT ALL 93 * + - ( - - ( + - COALESCE ( 18, + COALESCE ( - COUNT ( * ), ( COUNT ( * ) ), 62 ) / - 31 + - MAX ( DISTINCT 65 ) * + COUNT ( * ) / - NULLIF ( - 18, - + COUNT ( * ) ) + + + ( - MIN ( ALL + 99 ) ) + + NULLIF ( NULLIF ( + + COALESCE ( - - 35, + 10 * - MAX ( - 86 ) * + 8 * 27 * - 88 ), + CASE + COUNT ( * ) WHEN - 5 + - CAST ( - COUNT ( * ) AS INTEGER ) THEN NULL WHEN + + 3 THEN - 29 END + + - 79 + 43 * 11 * + + 29 * + 69 + 5 ), COUNT ( DISTINCT + 67 ) ) ) ) ) @@ -24017,8 +24309,11 @@ SELECT - 51 - - 21 + - + CAST ( + - 97 AS INTEGER ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(89\)\) \- \(\- nullif\(Int64\(71\), Int64\(64\) / Int64\(16\)\)\) AS col2" at position 0 and "Int64\(39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 89 - + - NULLIF ( + 71, + 64 / + 16 ) col2, 39 AS col2 +---- +-18 +39 query I rowsort SELECT - 4 * 16 + - 33 @@ -24206,8 +24501,11 @@ SELECT ALL + 89, - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE Int64\(56\) WHEN Int64\(\-5\) \+ Int64\(\-67\) \+ Int64\(15\) / count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(59\) \* Int64\(66\) / Int64\(\-80\) WHEN Int64\(78\) / Int64\(39\) \* Int64\(67\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) / Int64\(71\) THEN Int64\(8\) END\) \* Int64\(\-39\) \+ Int64\(21\) \- Int64\(\-1\) \* Int64\(64\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +1 +NULL query I rowsort label-4599 SELECT CASE 75 WHEN - 53 + - 31 * + + 96 * - 64 * - - 26 + + - 99 + + 17 / 60 / - COUNT ( * ) / - - COUNT ( * ) THEN NULL ELSE + 39 + + + 40 END @@ -24268,8 +24566,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "\(\- Int64\(0\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 8 + - - COUNT ( * ) col0, ( - + 0 ) col0 +---- +0 +9 query I rowsort label-4611 SELECT DISTINCT - ( ( + ( - + CAST ( NULL AS INTEGER ) ) ) ) AS col2 @@ -24436,8 +24737,11 @@ SELECT 95 + - 7 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5705 # Datafusion - Expected - 4930 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) \+ Int64\(66\) \* Int64\(86\) AS col1" at position 0 and "\(\- Int64\(\-2\)\) \- Int64\(88\) \* Int64\(\-56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 29 + + + 66 * + 86 col1, - ( - 2 ) - 88 * + - 56 AS col1 +---- +4930 +5705 query I rowsort SELECT ALL 8 + + 16 AS col1 @@ -24534,8 +24838,11 @@ SELECT COUNT ( * ), - COALESCE ( MIN ( - 82 ), + 75 * + 89, 32 * + 49 + - 11 * C # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col1" at position 0 and "Int64\(\-87\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 AS col1, - 87 / COUNT ( * ) AS col1 +---- +-87 +6 query II rowsort SELECT + - 3, 61 AS col0 @@ -26913,8 +27220,11 @@ SELECT ALL + 62 - - 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5568 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \* Int64\(\-58\) AS col1" at position 0 and "Int64\(\-15\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 96 * - 58 AS col1, - 15 AS col1 +---- +-15 +-5568 query I rowsort label-5117 SELECT ALL + 90 * SUM ( - + 2 ) AS col0 @@ -27012,8 +27322,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) + - + 84 col0, - 4 AS col0 +---- +-4 +-83 query I rowsort SELECT ALL 76 + - 61 AS col0 @@ -27173,8 +27486,11 @@ SELECT DISTINCT + + SUM ( ALL - 50 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3150582 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \* Int64\(88\) \* Int64\(39\) \* Int64\(54\) \+ Int64\(45\) \+ Int64\(\-39\) AS col1" at position 0 and "Int64\(25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 17 * + 88 * 39 * 54 + 45 + - 39 AS col1, 25 AS col1 +---- +25 +3150582 query I rowsort label-5166 SELECT DISTINCT - COUNT ( * ) * - 17 * + 73 + - 26 * 14 + - 26 * 64 + + 50 @@ -27290,8 +27606,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( + NULLIF ( + + 89, + - 46 ) ) AS col1, + 32 + - COUNT ( * ) * + - 27 col1 +---- +1 +59 query I rowsort label-5187 SELECT + 45 / + - 49 * + + COUNT ( DISTINCT - 65 ) AS col1 @@ -27659,8 +27978,12 @@ NULL # Datafusion - Expected - 67 # Datafusion - Expected - 6 # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col0" at position 1 and "\(\- max\(Int64\(44\)\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 67 AS col2, + 6 AS col0, - + MAX ( ALL 44 ) AS col0 +---- +-44 +6 +67 query I rowsort label-5257 SELECT ALL 42 / - - 59 @@ -27895,14 +28218,20 @@ SELECT + 62 + 65 # 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 "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 II valuesort SELECT ALL + 1 AS col0, 85 col0 +---- +1 +85 # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 814 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col1" at position 0 and "Int64\(22\) \* Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 72 AS col1, 22 * 37 AS col1 +---- +72 +814 query I rowsort label-5303 SELECT ALL - 66 * + CAST ( - 27 AS INTEGER ) - + + 12 + - - 36 AS col2 @@ -28223,8 +28552,11 @@ SELECT ALL - 5 * + - 75 + + 8 + - ( 47 ) - - - 88 + 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(19\) WHEN Int64\(\-96\) THEN Int64\(\-74\) \* Int64\(62\) WHEN Int64\(85\) THEN NULL WHEN Int64\(\-94\) THEN Int64\(\-53\) ELSE count\(Int64\(1\)\) AS count\(\*\) END \* \(\- Int64\(\-91\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- max\(Int64\(39\)\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(\-82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +91 +NULL query I rowsort label-5364 SELECT CAST ( NULL AS INTEGER ) - + NULLIF ( + 87, - ( 60 ) + COUNT ( * ) ) * + COUNT ( * ) + - 72 AS col1 @@ -28249,8 +28581,11 @@ SELECT ALL + 28 * - 28 * + 5 - - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(24\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(\-81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, 24 * COUNT ( * ) / - 81 AS col0 +---- +0 +NULL query I rowsort SELECT ALL - NULLIF ( + 11, + - 29 / - 80 - + 57 ) AS col0 @@ -28310,8 +28645,12 @@ SELECT DISTINCT 52 * + 87 col1 # Datafusion - Expected - -6 # Datafusion - Expected - NULL # Datafusion - Expected - -34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(Int64\(49\) AS Int32\)\)\) \+ Int64\(\-55\) AS col1" at position 0 and "Int64\(\-54\) \+ Int64\(72\) \- Int64\(52\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - - CAST ( 49 AS INTEGER ) + - 55 AS col1, 61 * 39 / CAST ( NULL AS INTEGER ), - 54 + 72 - 52 AS col1 +---- +-34 +-6 +NULL query I rowsort label-5380 SELECT ALL + 2 * + CAST ( NULL AS INTEGER ) + ( - 41 ) - - CAST ( 56 AS INTEGER ) + + - 69 col2 @@ -28437,8 +28776,11 @@ SELECT ALL + 1, + 83 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col2" at position 0 and "Int64\(\-98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 54 AS col2, - 98 AS col2 +---- +-98 +54 query II rowsort SELECT - 85 + + 58 AS col2, ( 14 ) AS col0 @@ -28471,8 +28813,12 @@ SELECT - ( 54 ) * - 87 + - ( + + 78 ) # Datafusion - Expected - 4214 # Datafusion - Expected - 15 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(43\) \* Int64\(98\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(84\) \* Int64\(99\) \+ Int64\(\-15\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 43 * 98 AS col1, MAX ( DISTINCT + 15 ), COUNT ( * ) * 84 * 99 + - 15 + - - CAST ( NULL AS INTEGER ) col1 +---- +15 +4214 +NULL query I rowsort SELECT + 23 * - 13 + + + ( - 5 ) * 1 AS col1 @@ -29375,8 +29721,11 @@ SELECT ALL + 17 * COUNT ( DISTINCT 61 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2602 # Datafusion - Expected - 188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) \* Int64\(68\) \- Int64\(\-18\) AS col0" at position 0 and "Int64\(99\) \- Int64\(\-89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 * ( 68 ) - - 18 AS col0, 99 - - 89 AS col0 +---- +188 +2602 query I rowsort SELECT + 19 + + 6 + + + 75 @@ -29511,8 +29860,11 @@ SELECT ALL 49 - 23 + - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1496 # Datafusion - Expected - -8595 -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 "Int64\(37\) \- \(\- max\(Int64\(\-83\)\)\) \* Int64\(\-8\) \* Int64\(\-13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 22 * + + 68 AS col2, + 37 - - + MAX ( - 83 ) * - 8 * - 13 AS col2 +---- +-1496 +-8595 query I rowsort SELECT + 50 * + 63 @@ -29593,8 +29945,11 @@ SELECT COALESCE ( ( 54 ), - + 98 + 89 + - + COUNT ( NULLIF ( ( NULLIF ( + 93, 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 20 AS col1, ( 14 ) AS col1 +---- +14 +20 query I rowsort label-5625 SELECT SUM ( ALL 50 ) AS col2 @@ -29718,8 +30073,11 @@ SELECT DISTINCT COUNT ( * ), - 73 + - - 48 - - ( + - 62 ) * COUNT ( * ) * + - 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\)" at position 0 and "Int64\(82\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 82, 82 +---- +82 +82 query I rowsort SELECT - 17 + + 22 + + ( - 54 ) @@ -30386,8 +30744,11 @@ 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\(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\. +query II valuesort SELECT + - COUNT ( * ) AS col1, + 10 AS col1 +---- +-1 +10 query I rowsort SELECT + 38 * + + 61 AS col0 @@ -30602,8 +30963,11 @@ 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\(1\)\) AS count\(\*\)\) \- \(\- Int64\(40\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 46 * - 37 AS col0, + 98 + - COUNT ( * ) - + ( - + 40 ) AS col0 +---- +137 +1702 query I rowsort label-5819 SELECT ALL 5 + - + MAX ( + + 98 ) + - + NULLIF ( - MIN ( DISTINCT 77 ), - COUNT ( * ) + + ( + + 77 ) ) AS col2 @@ -30815,8 +31179,11 @@ SELECT 85 * COUNT ( * ) - + 21 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "CASE Int64\(\-93\) WHEN Int64\(77\) \* Int64\(\-77\) \* count\(Int64\(\-65\)\) \+ \(\- CAST\(NULL AS Int32\)\) \+ Int64\(58\) THEN Int64\(13\) \+ Int64\(\-33\) ELSE Int64\(50\) \+ Int64\(9\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 54 AS col1, CASE - 93 WHEN + ( + 77 ) * + - 77 * COUNT ( ALL - 65 ) + + ( + - CAST ( NULL AS INTEGER ) ) + + 58 THEN + 13 + - 33 ELSE + 50 + 9 END AS col1 +---- +54 +59 query II rowsort SELECT ALL + 58 col1, - 6 * - ( - 85 ) + - 21 - - - 2 @@ -30997,8 +31364,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + + 31, + 39 AS col0, + 42 * - COUNT ( * ) AS col0 +---- +-42 +31 +39 query I rowsort SELECT DISTINCT + COALESCE ( - 55, + 50 ) col0 @@ -31250,8 +31621,11 @@ SELECT 72 + - - 71 * 44 + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 30 col2, 10 AS col2 +---- +-30 +10 query I rowsort label-5940 SELECT 89 * - + CAST ( + 86 AS INTEGER ) @@ -31427,8 +31801,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -33 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(\-33\)\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + ( + + SUM ( DISTINCT + - 33 ) ) ) AS col1, 53 AS col1 +---- +-33 +53 query II rowsort label-5974 SELECT - ( - ( - - 86 ) ) / - - 38 AS col0, COUNT ( * ) * - + 83 col2 @@ -31729,8 +32106,11 @@ SELECT 63 + - + 56 - 10 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 0 and "Int64\(85\) \+ Int64\(44\) \+ Int64\(3\) \* count\(DISTINCT Int64\(\-54\)\) / Int64\(\-76\) \- Int64\(33\) \+ Int64\(\-72\) \+ Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 AS col2, + 85 + 44 + 3 * COUNT ( DISTINCT - 54 ) / - 76 - 33 + - 72 + + 75 AS col2 +---- +26 +99 query II rowsort label-6032 SELECT 32 AS col1, + CASE + 92 WHEN - COUNT ( + + 88 ) * - 18 THEN - - 2 ELSE NULL END * ( 79 ) AS col2 @@ -31816,8 +32196,11 @@ NULL # 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 col0" at position 0 and "Int64\(62\) / Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 39 AS col0, 62 / 90 col0 +---- +-39 +0 query I rowsort SELECT ALL 25 * + ( + - 10 ) * + 35 + 41 + 76 * - 43 AS col2 @@ -32024,8 +32407,12 @@ SELECT - 82 * - 96 + - - 50 AS col1 # Datafusion - Expected - 1 # Datafusion - Expected - 74 # Datafusion - Expected - 14 -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\(14\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + COUNT ( - + 72 ) AS col0, 88 + + - ( 14 ), 14 col0 +---- +1 +14 +74 query I rowsort label-6087 SELECT ( + ( + 2 ) ) + COUNT ( * ) * - + 37 + 79 + - 43 col0 @@ -32183,8 +32570,11 @@ SELECT DISTINCT - 2 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(sum\(Int64\(20\)\) AS Int32\) AS col2" at position 0 and "Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( + SUM ( + 20 ) AS INTEGER ) col2, + 6 col2 +---- +20 +6 query I rowsort SELECT DISTINCT + 94 * - 9 @@ -32286,8 +32676,11 @@ SELECT ALL - 29 * 98 + 23 - - 27 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 103 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col2" at position 0 and "Int64\(16\) \+ Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 22 AS col2, 16 + + 87 AS col2 +---- +-22 +103 query I rowsort SELECT ALL 14 - + 85 * + + 86 @@ -32372,8 +32765,11 @@ SELECT ALL - - 72 / - - CASE 65 WHEN 12 THEN NULL ELSE - - 30 * + COUNT ( * ) + # Datafusion - Datafusion expected results: # Datafusion - Expected - -401 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* Int64\(33\) \+ Int64\(\-39\) \+ count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 11 * 33 + + - 39 + + COUNT ( * ) * + COUNT ( * ) AS col0, + 82 AS col0 +---- +-401 +82 query I rowsort label-6155 SELECT ALL - 87 + + + 0 + ( - MAX ( DISTINCT - 56 ) ) / - 69 - + - COUNT ( * ) AS col2 @@ -32506,8 +32902,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col0" at position 0 and "Int64\(4\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 55 AS col0, + 4 * CAST ( NULL AS INTEGER ) AS col0 +---- +55 +NULL query I rowsort SELECT DISTINCT + 39 + + 89 @@ -32642,8 +33041,11 @@ SELECT - SUM ( - 86 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 360 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col2" at position 0 and "Int64\(5\) \* Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 AS col2, 5 * 72 AS col2 +---- +24 +360 query I rowsort SELECT 1 * 48 @@ -32888,8 +33290,11 @@ SELECT - 95 + ( - 47 ) * 32 * + 51 * + 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3528 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* Int64\(42\) AS col0" at position 0 and "Int64\(3\) \* Int64\(33\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 84 * 42 AS col0, 3 * + 33 AS col0 +---- +3528 +99 query I rowsort SELECT + + 25 * - 88 col1 @@ -33016,8 +33421,11 @@ SELECT ALL 83 AS col0, 36 * 89 + - 17 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -117547 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- max\(Int64\(\-90\)\)\) \* \(\- Int64\(\-96\)\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-94\) / count\(Int64\(1\)\) AS count\(\*\) \* \(\- coalesce\(\(\- \(\- CAST\(Int64\(6\) AS Float64\)\)\), Int64\(39\) \+ Int64\(50\)\)\) AS col2" at position 0 and "\(\- Int64\(90\)\) \* \(\- nullif\(Int64\(15\), Int64\(9\)\)\) \* Int64\(\-87\) \+ Int64\(\-97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort 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 +---- +-117547 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -33076,8 +33484,11 @@ SELECT ALL NULLIF ( - + 44, + 79 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -5984 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(1\), Int64\(\-62\) \* \(\- Int64\(\-17\)\), sum\(Int64\(58\)\) / Int64\(0\)\) \+ \(\- Int64\(\-95\)\) \* \(\- nullif\(Int64\(63\), Int64\(28\)\)\) AS col2" at position 0 and "Int64\(\-87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( + 1, - 62 * - - 17, + SUM ( + 58 ) / - 0 ) + - - 95 * - NULLIF ( + + 63, 28 ) AS col2, ( - 87 ) AS col2 +---- +-5984 +-87 query I rowsort label-6289 SELECT DISTINCT CAST ( + + 42 AS INTEGER ) AS col1 @@ -33241,8 +33652,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 134 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \* Int64\(\-67\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 2 * + - 67 AS col1, 84 AS col1 +---- +134 +84 query I rowsort SELECT DISTINCT - 13 + + + 97 AS col0 @@ -33915,14 +34329,20 @@ SELECT ALL + 2 * - 81 * - - 27 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "Int64\(\-94\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 20 AS col0, - 94 AS col0 +---- +-94 +20 # 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 col0" at position 0 and "CASE Int64\(62\) WHEN Int64\(82\) THEN Int64\(\-40\) WHEN Int64\(55\) \* Int64\(9\) THEN NULL END \* Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 61 AS col0, CASE + + 62 WHEN 82 THEN - 40 WHEN 55 * 9 THEN NULL END * 95 AS col0 +---- +61 +NULL query II rowsort SELECT ALL 17 AS col2, - ( 90 ) AS col1 @@ -34038,8 +34458,11 @@ SELECT + 54 - - - 38 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 16 ) AS col2, + 81 AS col2 +---- +16 +81 query I rowsort label-6477 SELECT ALL 30 * + CAST ( NULL AS INTEGER ) + - 15 @@ -35249,8 +35672,11 @@ SELECT ALL + 60 / 36, 44 + 34 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(\-85\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 89 AS col2, - CAST ( NULL AS INTEGER ) * - - 85 AS col2 +---- +-89 +NULL query I rowsort label-6706 SELECT + COALESCE ( - 39, NULLIF ( - NULLIF ( - CAST ( 30 AS INTEGER ), - - COUNT ( * ) / 11 * 45 ), - - 25 ) ) @@ -35577,8 +36003,11 @@ SELECT ALL - ( + - 50 ) + - - 42 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 # Datafusion - Expected - 2052 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-44\) AS col2" at position 0 and "Int64\(36\) \* Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 44 AS col2, + 36 * + ( 57 ) AS col2 +---- +-44 +2052 query I rowsort SELECT ALL + ( + 78 ) + - 93 * 75 + + 93 + - 59 * 85 @@ -36367,8 +36796,11 @@ SELECT ALL 73 + + 84 + ( + 11 ) / + + 71 * - 89 + - 51 / - 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-77\) AS Int32\) \+ Int64\(\-19\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( - 77 AS INTEGER ) + - 19 AS col0, ( - COUNT ( * ) ) AS col0 +---- +-1 +-96 query I rowsort SELECT - 98 * - 44 + + 58 * + + 38 + - 45 + + 90 AS col2 @@ -37094,8 +37526,11 @@ 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\(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\. +query II valuesort SELECT - 24 col1, COUNT ( * ) - - + COUNT ( * ) * - 73 AS col1 +---- +-24 +-72 query I rowsort label-7056 SELECT - MAX ( ALL + - 37 ) + - + 61 @@ -37395,8 +37830,12 @@ 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\(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\. +query III valuesort SELECT ALL + 12 AS col1, 28 + + 4 + + 71 * COUNT ( * ) * - 21 AS col2, + - 86 AS col2 +---- +-1459 +-86 +12 query I rowsort SELECT DISTINCT + - CASE 25 WHEN - 71 THEN - + 66 ELSE NULL END @@ -37565,8 +38004,11 @@ SELECT + 34 * + 39 + 19 # 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 "\(\- nullif\(\(\- Int64\(28\)\), Int64\(\-62\)\)\) / Int64\(50\) AS col2" at position 0 and "Int64\(\-75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( - + 28, + - 62 ) / 50 AS col2, + ( - 75 ) AS col2 +---- +-75 +0 query I rowsort SELECT - ( + NULLIF ( - 42, - 45 * 12 + + + 27 * - 26 + - 42 ) ) + + + 36 AS col2 @@ -37631,8 +38073,11 @@ SELECT DISTINCT - - 19 - - - 9 * + + 97 + 52 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(\-25\) WHEN Int64\(92\) THEN Int64\(6\) \* Int64\(26\) END AS col0" at position 0 and "CAST\(Int64\(3\) AS Int32\) \* min\(Int64\(\-50\)\) \+ Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CASE - 25 WHEN + 92 THEN 6 * + 26 END AS col0, + CAST ( + 3 AS INTEGER ) * MIN ( - 50 ) + 36 AS col0 +---- +-114 +NULL query I rowsort SELECT + 14 * + - 65 + + ( - 77 ) * + 42 AS col0 @@ -37688,8 +38133,11 @@ SELECT 42 * 14 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col0" at position 0 and "\(\- min\(Int64\(\-62\)\)\) / Int64\(21\) / Int64\(\-24\) \+ Int64\(92\) / \(\- \(\- nullif\(Int64\(\-21\), Int64\(\-35\) \- Int64\(49\)\)\)\) \- Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 AS col0, - MIN ( - 62 ) / 21 / + - 24 + 92 / - - NULLIF ( - 21, - 35 - 49 ) - 58 col0 +---- +-62 +24 query I rowsort SELECT DISTINCT 60 * + - 32 @@ -38188,8 +38636,11 @@ SELECT 64 AS col2, - 73 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col2" at position 0 and "Int64\(4\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 79 AS col2, + 4 AS col2 +---- +4 +79 query I rowsort SELECT DISTINCT 41 - 34 AS col1 @@ -38199,8 +38650,11 @@ SELECT DISTINCT 41 - 34 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42309 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-25\) \+ Int64\(\-51\) \+ Int64\(\-87\) \+ count\(Int64\(1\)\) AS count\(\*\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(13\) \* Int64\(99\) \* Int64\(\-33\) AS col1" at position 0 and "Int64\(\-92\) \* \(\- CAST\(NULL AS Int32\)\) / \(\- min\(Int64\(52\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) + - 25 + - 51 + - 87 + COUNT ( * ) * - COUNT ( * ) * 13 * + 99 * - 33 AS col1, - 92 * - CAST ( NULL AS INTEGER ) / - MIN ( 52 ) AS col1 +---- +42309 +NULL query I rowsort SELECT 83 * 18 @@ -38693,8 +39147,11 @@ SELECT + ( + COALESCE ( 78, 95 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 22 AS col1, 40 col1 +---- +22 +40 query II rowsort SELECT ALL + 38 AS col0, 30 * + 39 col2 @@ -38772,8 +39229,11 @@ SELECT ALL + - 76 * 90 + - 80 + + COUNT ( * ) + + 90 - + + 16 * - - 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - 5503 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col0" at position 0 and "Int64\(69\) \+ Int64\(65\) \+ Int64\(\-91\) \* Int64\(\-59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 AS col0, 69 + 65 + - 91 * - 59 AS col0 +---- +-92 +5503 query I rowsort label-7372 SELECT ALL NULLIF ( + 21, COUNT ( * ) ) @@ -38818,8 +39278,11 @@ SELECT + 2 - 80 * + + 7 # 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\(\-50\)\) AS col1" at position 0 and "Int64\(65\) \+ \(\- Int64\(9\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 50 AS col1, + 65 + - + 9 AS col1 +---- +50 +56 query I rowsort label-7381 SELECT DISTINCT 81 + - + 27 - MIN ( DISTINCT + 76 ) + SUM ( + 44 ) @@ -38870,8 +39333,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-21\) \- \(\- Int64\(82\)\) \* Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 * - 67 AS col0, + COUNT ( * ) + - 21 - - + 82 * + 29 AS col0 +---- +-5092 +2358 query II rowsort label-7391 SELECT ALL + 88 * - COUNT ( * ), - 71 AS col1 @@ -39224,8 +39690,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 61 / - 23 AS col2, 0 - 26 * - + COUNT ( * ) + - 88 AS col2 +---- +-2 +-62 query I rowsort label-7458 SELECT + COUNT ( + 66 ) / + COUNT ( * ) col1 @@ -39389,8 +39858,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 56 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- coalesce\(Int64\(79\), \(\- Int64\(\-73\)\) \* Int64\(27\) \* Int64\(\-73\)\)\)\) \+ Int64\(\-23\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COALESCE ( 79, + ( - - 73 ) * + 27 * + - 73 ) + - 23 AS col0, 29 col0 +---- +29 +56 query I rowsort SELECT DISTINCT - 81 * - 68 + - 34 AS col2 @@ -39530,8 +40002,11 @@ SELECT NULLIF ( - 98, + + CAST ( ( + - COUNT ( * ) ) AS FLOAT8 ) ) + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col0" at position 0 and "min\(CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 46 AS col0, MIN ( + CAST ( NULL AS INTEGER ) ) AS col0 +---- +-46 +NULL query I rowsort label-7517 SELECT DISTINCT + ( + NULLIF ( - - 71, 82 * + 97 + - 72 / - COUNT ( 78 ) ) ) AS col0 @@ -39593,8 +40068,11 @@ SELECT 95 - - - ( 89 ) - - COUNT ( * ) + - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5460 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) \* Int64\(78\) AS col1" at position 0 and "Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 70 * + 78 AS col1, - 94 AS col1 +---- +-5460 +-94 query II rowsort label-7529 SELECT DISTINCT - COUNT ( * ) + + NULLIF ( - - ( - - 72 ), + - 54 ) * 2 AS col0, - COUNT ( * ) AS col2 @@ -39627,8 +40105,11 @@ SELECT DISTINCT + 26 - - 19 / 5 + - 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col2" at position 0 and "Int64\(15\) \+ Int64\(47\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 10 col2, 15 + + 47 AS col2 +---- +10 +62 query I rowsort label-7535 SELECT ALL + COUNT ( * ) * + - 6 @@ -39935,8 +40416,11 @@ SELECT + COUNT ( * ) / 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "Int64\(\-25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 32 AS col2, - 25 AS col2 +---- +-25 +32 query I rowsort SELECT DISTINCT ( NULLIF ( - 85, - 86 ) ) * 99 AS col2 @@ -40029,8 +40513,11 @@ SELECT - 28 AS col0, COUNT ( * ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1372 # Datafusion - Expected - -2904 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \* Int64\(\-81\) \+ Int64\(\-76\) 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 II valuesort SELECT ALL 16 * - 81 + - 76 AS col1, + 33 * - 88 AS col1 +---- +-1372 +-2904 query I rowsort SELECT - 55 * + - 84 AS col1 @@ -41007,8 +41494,11 @@ SELECT - + ( + 74 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \* count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(84\) AS col0" at position 0 and "Int64\(71\) / Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 86 * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + 84 AS col0, 71 / + 63 AS col0 +---- +1 +NULL query I rowsort SELECT ALL 60 * - 2 AS col2 @@ -41145,8 +41635,11 @@ SELECT 70 * 74 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2530 # Datafusion - Expected - 268037 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \* \(\- Int64\(55\)\) AS col2" at position 0 and "sum\(Int64\(59\)\) \* sum\(DISTINCT Int64\(59\)\) \* Int64\(77\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 46 * - + 55 AS col2, + SUM ( 59 ) * + SUM ( DISTINCT + 59 ) * + 77 AS col2 +---- +-2530 +268037 query I rowsort label-7824 SELECT DISTINCT + 73 / 75 @@ -41206,8 +41699,11 @@ SELECT DISTINCT - 9 * + + 3 # 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 "Int64\(18\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( 18 ) col1, 97 AS col1 +---- +18 +97 query I rowsort label-7836 SELECT + 84 / - CAST ( - - 71 AS INTEGER ) AS col2 @@ -41578,8 +42074,11 @@ SELECT ALL - ( - + 53 ) + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 18 AS col0, + 65 col0 +---- +-18 +65 query II rowsort SELECT ALL - - 22, 11 AS col2 @@ -41871,8 +42370,11 @@ SELECT ALL - 38 + + 56 - 39 AS col0, 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(78\), Int64\(\-10\)\) AS col2" at position 0 and "Int64\(40\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( 78, - 10 ) AS col2, + 40 * + COUNT ( * ) col2 +---- +40 +78 query I rowsort SELECT - - 32 + + 10 + 90 AS col0 @@ -42123,8 +42625,11 @@ SELECT - COALESCE ( - 30, + - 59 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - 105 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT Int64\(\-57\)\) \+ Int64\(\-54\) AS col0" at position 0 and "Int64\(63\) \+ \(\- Int64\(\-42\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( DISTINCT - 57 ) + - 54 AS col0, + 63 + - - 42 AS col0 +---- +-53 +105 query I rowsort SELECT DISTINCT 23 + - 92 @@ -42821,8 +43326,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \+ Int64\(\-68\) AS col1" at position 0 and "Int64\(\-60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 + - 68 AS col1, - 60 AS col1 +---- +-54 +-60 query I rowsort label-8146 SELECT - COUNT ( * ) * + 23 + - 13 / 28 @@ -42908,8 +43416,11 @@ SELECT ALL + 82 * CASE COALESCE ( - + 92, - 18 ) WHEN - NULLIF ( 92, - 20 ) + 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4176 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* Int64\(\-72\) AS col0" at position 0 and "Int64\(31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 * + - 72 AS col0, ( + 31 ) AS col0 +---- +-4176 +31 query I rowsort SELECT 12 * 77 AS col0 @@ -42950,8 +43461,11 @@ SELECT ALL - SUM ( DISTINCT - 31 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) \- \(\- Int64\(\-40\)\) \- count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 - - - 40 - COUNT ( * ) AS col0, + COUNT ( * ) AS col0 +---- +-23 +1 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -43180,8 +43694,11 @@ SELECT + ( 19 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -7452 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col2" at position 0 and "Int64\(92\) \* Int64\(\-81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 AS col2, + 92 * - 81 AS col2 +---- +-7452 +8 query I rowsort label-8214 SELECT DISTINCT 34 * + MIN ( ALL - 6 ) AS col2 @@ -43970,14 +44487,20 @@ SELECT ALL 17 * + 61 * 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 348 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \* Int64\(6\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 * 6 AS col1, + 14 AS col1 +---- +14 +348 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - -3510 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col0" at position 0 and "Int64\(\-3\) \+ Int64\(\-6\) \+ \(\- nullif\(nullif\(min\(\(\- Int64\(98\)\)\), Int64\(50\) / Int64\(23\) \* CAST\(NULL AS Int32\) \* Int64\(\-27\)\), Int64\(76\) \* Int64\(81\) \* sum\(Int64\(11\)\)\)\) \+ Int64\(61\) \* Int64\(\-59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 57 AS col0, - 3 + - 6 + - NULLIF ( NULLIF ( + + MIN ( ALL - + 98 ), 50 / + 23 * + CAST ( NULL AS INTEGER ) * - 27 ), + 76 * ( 81 * SUM ( + 11 ) ) ) + 61 * - 59 col0 +---- +-3510 +-57 query I rowsort SELECT ALL 69 + ( COALESCE ( - 5, + + 66 ) ) - - - 90 @@ -43988,8 +44511,12 @@ SELECT ALL 69 + ( COALESCE ( - 5, + + 66 ) ) - - - 90 # Datafusion - Expected - 63 # Datafusion - Expected - -975 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 63 AS col2, - ( - 13 ) * - 75 AS col0, + 49 AS col2 +---- +-975 +49 +63 query I rowsort label-8369 SELECT ALL - 28 / + + 51 * 7 @@ -44317,8 +44844,11 @@ SELECT ALL COALESCE ( - COUNT ( * ), + + 73 * 46 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "Int64\(86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 AS col0, 86 AS col0 +---- +34 +86 query I rowsort label-8431 SELECT - 95 * + + COALESCE ( 5, - 90 * - 4 ) + + + SUM ( DISTINCT + 92 ) @@ -44333,8 +44863,11 @@ SELECT ALL + 1 * - ( - 40 ) AS col2 # 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 "\(\- \(\- max\(\(\- Int64\(\-13\)\)\)\)\) AS col0" at position 0 and "Int64\(19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - MAX ( ALL + - ( - 13 ) ) AS col0, + 19 AS col0 +---- +13 +19 query I rowsort SELECT + 92 + + - 49 AS col1 @@ -44711,8 +45244,11 @@ SELECT COALESCE ( - 38, + 95, + 82 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col0" at position 0 and "Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 87 AS col0, 4 AS col0 +---- +-87 +4 query II rowsort label-8506 SELECT DISTINCT - COALESCE ( + - COALESCE ( - 82, + - 75 ), + + COUNT ( * ) * + + 3 + 17 + + 7, ( 24 ) / 71 * - + 5 - + 73 ) AS col0, - 37 * - 11 * 11 + 40 @@ -44855,8 +45391,12 @@ NULL # Datafusion - Expected - -2 # Datafusion - Expected - -2160 # Datafusion - Expected - 109 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col2" at position 0 and "Int64\(\-30\) \* Int64\(72\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 2 col2, - 30 * + + 72 * COUNT ( * ) AS col2, 74 + 35 AS col2 +---- +-2 +-2160 +109 query I rowsort label-8533 SELECT DISTINCT - CAST ( - ( 4 ) AS INTEGER ) * + 52 + - 9 col2 @@ -45130,8 +45670,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -6 # Datafusion - Expected - -58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ Int64\(96\) / Int64\(\-14\) AS col2" at position 0 and "Int64\(77\) / Int64\(\-70\) \+ \(\- coalesce\(Int64\(\-7\), Int64\(31\)\)\) \- Int64\(68\) \+ \(\- coalesce\(Int64\(\-4\), sum\(DISTINCT Int64\(5\)\) \* max\(Int64\(\-20\)\) \* CAST\(NULL AS Int32\) \- \(\- Int64\(\-36\)\) \+ Int64\(60\) \+ Int64\(91\) / \(Int64\(31\) \+ Int64\(17\)\) \+ Int64\(84\) \* Int64\(96\) \+ Int64\(39\), Int64\(\-44\) \* Int64\(\-29\) \+ Int64\(80\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 + + + 96 / - 14 AS col2, 77 / - 70 + - COALESCE ( - 7, + 31 ) - + 68 + - COALESCE ( - 4, SUM ( DISTINCT + 5 ) * + MAX ( ALL - 20 ) * CAST ( NULL AS INTEGER ) - - - 36 + 60 + 91 / ( + 31 + + 17 ) + 84 * 96 + 39, - 44 * - 29 + 80 ) col2 +---- +-58 +-6 query II rowsort SELECT ALL 90 col1, 18 @@ -45576,8 +46119,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-92\) \* Int64\(34\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 + + 57 AS col1, + COUNT ( * ) * - 92 * + 34 AS col1 +---- +-3128 +110 query I rowsort SELECT 38 * 71 - + 32 AS col0 @@ -45697,8 +46243,12 @@ SELECT - 19 - 44 # Datafusion - Expected - -88 # Datafusion - Expected - 61 # Datafusion - Expected - -189 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col0" at position 0 and "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 88 col0, 61 AS col0, + - 83 + + - 64 + + CAST ( + MIN ( ALL - ( + 42 ) ) AS INTEGER ) +---- +-189 +-88 +61 query I rowsort label-8691 SELECT - 28 + - 66 + + COUNT ( * ) / - - 63 * + - 4 AS col1 @@ -45989,8 +46539,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 38 col0, COALESCE ( - MIN ( - ( 41 ) ), + 0 / - 56 / 39 / - 23 * + COUNT ( * ) ) AS col0 +---- +38 +41 query I rowsort label-8747 SELECT + SUM ( DISTINCT - 8 ) * - - 27 AS col0 @@ -46294,8 +46847,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * 30 + - 6 AS col1, - 3 - 43 + - + MAX ( ALL - 96 ) AS col1 +---- +24 +50 query II rowsort label-8805 SELECT ALL + 11 AS col2, + MAX ( - 30 ) + + + 64 AS col0 @@ -46402,8 +46958,11 @@ SELECT + 95 + + - CAST ( - - 45 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 115 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \+ \(\- count\(Int64\(\-53\)\)\) \* Int64\(\-44\) AS col1" at position 0 and "\(\- CAST\(\(\- Int64\(\-28\)\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 71 + + - COUNT ( ALL - 53 ) * - 44 AS col1, - CAST ( - - 28 AS INTEGER ) AS col1 +---- +-28 +115 query I rowsort SELECT DISTINCT + ( 92 ) AS col1 @@ -46472,8 +47031,11 @@ SELECT 59 * - 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col1" at position 0 and "Int64\(84\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 97 AS col1, + 84 AS col1 +---- +-97 +84 query I rowsort SELECT DISTINCT - NULLIF ( + 83, + 84 ) + 67 @@ -46490,8 +47052,12 @@ SELECT - 75 AS col2, + 63 AS col1 # Datafusion - Expected - 154 # Datafusion - Expected - 25 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ Int64\(21\) AS col0" at position 1 and "Int64\(89\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 87 + + NULLIF ( + COUNT ( * ), + - COUNT ( * ) * - + 92 ) - - NULLIF ( - - 66, + - CAST ( + 1 AS INTEGER ) ), ( + 4 ) + 21 AS col0, + 89 AS col0 +---- +154 +25 +89 query I rowsort SELECT 93 - - - 11 + + + CASE + 35 WHEN 46 THEN NULL WHEN - 55 THEN 0 ELSE NULL END @@ -46623,8 +47189,11 @@ 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\(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\. +query II valuesort SELECT ALL 40 + + 12 AS col0, - COALESCE ( - - 3, - 29 * + COUNT ( * ) - 87 + 79 + - 91, - 87 ) AS col0 +---- +-3 +52 query I rowsort SELECT ALL - 59 + - - 62 + COALESCE ( + 83, + 70, 63 ) AS col1 @@ -46808,8 +47377,11 @@ NULL # 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\(\-56\) \* \(\- \(\- CAST\(NULL AS Float64\)\)\) \- Int64\(76\) AS col2" at position 0 and "Int64\(\-85\) \+ max\(DISTINCT Int64\(66\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT + - 56 * - - CAST ( NULL AS FLOAT8 ) - + 76 AS col2, - 85 + MAX ( DISTINCT 66 ) AS col2 +---- +-19 +NULL query I rowsort SELECT ALL + + 90 * - + 18 - + - 4 AS col0 @@ -46991,8 +47563,11 @@ SELECT - SUM ( ALL + - 65 ) * - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5438 # Datafusion - Expected - -3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-68\) / \(\- max\(Int64\(29\)\)\) \- Int64\(\-68\) \* Int64\(16\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(5\) AS col0" at position 0 and "CAST\(Int64\(\-3\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 68 / - + MAX ( + + 29 ) - - 68 * + 16 * - COUNT ( * ) * + + 5 AS col0, + CAST ( - 3 AS INTEGER ) AS col0 +---- +-3 +-5438 query I rowsort label-8939 SELECT 24 * - COUNT ( * ) + + 92 AS col2 @@ -47185,8 +47760,11 @@ SELECT ALL 18 + + + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col2" at position 0 and "Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 19 AS col2, 83 AS col2 +---- +-19 +83 query I rowsort SELECT ALL - 59 + - 16 + + + 1 @@ -47642,8 +48220,11 @@ SELECT CASE - - CAST ( + 17 AS INTEGER ) WHEN 63 THEN NULL ELSE COALESCE ( - COU # 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 "Int64\(0\) \* Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 39 AS col1, 0 * + 61 AS col1 +---- +0 +39 query I rowsort label-9061 SELECT + ( - COUNT ( * ) ) * - ( - - 64 ) + + MAX ( DISTINCT 31 ) + 64 @@ -48243,8 +48824,11 @@ SELECT - 83 * + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 2 AS col2, ( + 37 ) AS col2 +---- +2 +37 query I rowsort label-9177 SELECT - + CAST ( 67 AS INTEGER ) + - 12 AS col0 @@ -48304,8 +48888,11 @@ SELECT ALL - + 86 * + - 41 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 96 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) AS col1" at position 0 and "Int64\(\-2\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 96 AS col1, - 2 * + + COUNT ( * ) AS col1 +---- +-2 +96 query II rowsort SELECT - - 75 + + 4 AS col0, + 99 col1 @@ -48349,8 +48936,11 @@ SELECT ALL - 20 + + 74 AS col1 # 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\(53\) \+ Int64\(\-51\) AS col2" at position 0 and "Int64\(0\) \* Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 53 + - 51 AS col2, - 0 * + 89 AS col2 +---- +0 +2 query I rowsort label-9197 SELECT ALL 35 / - + 35 @@ -48831,8 +49421,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) / + + 72 AS col0, 11 AS col0 +---- +0 +11 query I rowsort label-9287 SELECT + CAST ( 52 AS INTEGER ) / + 55 AS col0 @@ -49101,8 +49694,11 @@ SELECT 37 * + 43 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 39 # Datafusion - Expected - 153 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(39\) AS col0" at position 0 and "Int64\(97\) \+ Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 39 AS col0, 97 + 56 AS col0 +---- +153 +39 query I rowsort label-9338 SELECT 44 / + COALESCE ( - - 38, 17, - - 95 ) @@ -49748,8 +50344,11 @@ NULL # 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 "Int64\(0\) AS col0" at position 0 and "Int64\(62\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 0 AS col0, + 62 col0 +---- +0 +62 query I rowsort label-9462 SELECT - 6 * NULLIF ( 50, - 35 + - + 11 ) + - + COUNT ( * ) AS col2 @@ -49916,8 +50515,11 @@ SELECT + + 30 + 38 - + 20 + - 12 * + - 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 AS col0, + 55 col0 +---- +21 +55 query I rowsort label-9493 SELECT - + MAX ( ( 61 ) ) @@ -49973,8 +50575,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 63 ) AS col0, 77 AS col0 +---- +63 +77 query I rowsort label-9504 SELECT ( + NULLIF ( - + COUNT ( * ), - + 96 ) ) AS col1 @@ -50065,8 +50670,12 @@ SELECT DISTINCT + SUM ( DISTINCT + 64 ) * - 66 # Datafusion - Expected - 4 # Datafusion - Expected - 65 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(74\)\) \- Int64\(\-78\) AS col1" at position 0 and "Int64\(65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + 74 - - 78 AS col1, + 65 AS col1, COUNT ( * ) / - MIN ( DISTINCT + 81 ) +---- +0 +4 +65 query I rowsort label-9521 SELECT ALL - COUNT ( * ) + - - 59 * MIN ( - - 67 ) * - 4 - + 58 @@ -50443,8 +51052,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \* nullif\(Int64\(\-56\), Int64\(95\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 AS col0, ( COUNT ( * ) ) * NULLIF ( - 56, 95 ) AS col0 +---- +-56 +88 query I rowsort SELECT - 39 - + 99 @@ -51624,8 +52236,11 @@ SELECT DISTINCT + ( 5 ) 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 "Int64\(\-1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 27 AS col1, - 1 AS col1 +---- +-1 +27 query I rowsort label-9823 SELECT 83 + - CAST ( - 63 AS INTEGER ) @@ -51959,8 +52574,11 @@ SELECT - + 68 * + - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - -5299 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) AS col2" at position 0 and "Int64\(91\) \+ Int64\(70\) \* \(\- Int64\(77\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 83 AS col2, 91 + 70 * - + 77 AS col2 +---- +-5299 +-83 query II rowsort label-9885 SELECT ALL - + SUM ( + 48 ) * 65 * - 32 * - 6 - + + 1, - 88 AS col1 @@ -52264,8 +52882,11 @@ SELECT 25 + NULLIF ( COUNT ( * ), + 7 * - 98 - + COALESCE ( 17, - 98, + 59 - - - # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - -6474 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(48\)\) \+ Int64\(\-25\) 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 II valuesort SELECT DISTINCT - ( + + 48 ) + - 25 col1, 83 * - + 78 col1 +---- +-6474 +-73 query I rowsort SELECT 35 + + 70 * - 1 * - 76 @@ -52548,8 +53169,12 @@ SELECT ALL 2 * + 74 + + + 22 AS col2 # Datafusion - Expected - 1 # Datafusion - Expected - 162 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(10\) \* Int64\(25\) \+ Int64\(\-88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + COUNT ( * ) AS col2, 10 * + 25 + - 88 AS col2, + COUNT ( * ) +---- +1 +1 +162 query I rowsort SELECT - 75 * 67 * - 20 AS col2 diff --git a/data/sqlite/random/expr/slt_good_95.slt b/data/sqlite/random/expr/slt_good_95.slt index adad4cc..ee8fa09 100644 --- a/data/sqlite/random/expr/slt_good_95.slt +++ b/data/sqlite/random/expr/slt_good_95.slt @@ -418,8 +418,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 161662 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) \* sum\(DISTINCT Int64\(33\)\) \* \(\- Int64\(\-70\)\) \- Int64\(38\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 70 * SUM ( DISTINCT 33 ) * - - 70 - + 38 AS col0, + 28 AS col0 +---- +161662 +28 query I rowsort label-75 SELECT + 47 + + 94 + - COUNT ( * ) * - 57 AS col1 @@ -593,8 +596,11 @@ SELECT - + 3 + 7 + + + 86 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 26 AS col0, - 68 AS col0 +---- +-68 +26 query I rowsort label-108 SELECT - - COUNT ( * ) + + 13 col2 @@ -1360,8 +1366,11 @@ SELECT 73 * - - ( - - 92 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 col1, COUNT ( * ) AS col1 +---- +1 +26 query II rowsort SELECT ALL 99 AS col1, + 56 @@ -1665,8 +1674,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(29\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, 29 AS col0 +---- +-1 +29 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -1868,8 +1880,11 @@ SELECT ALL 37 * + - 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - -27780968 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col0" at position 0 and "Int64\(\-51\) \* Int64\(82\) \* Int64\(\-73\) \* Int64\(\-91\) \+ Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( - 86 ) AS col0, - 51 * + 82 * - 73 * + - 91 + 58 AS col0 +---- +-27780968 +-86 query I rowsort label-352 SELECT + 90 + + + MAX ( 18 ) * 37 @@ -1889,8 +1904,11 @@ SELECT + COUNT ( * ) + + - COUNT ( * ) - + 70 + 44 / + 98 + - 35 - - 35 + + 54 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 974 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(50\)\)\) / Int64\(\-73\) \* Int64\(\-45\) \* Int64\(65\) AS col1" at position 0 and "\(\- min\(Int64\(\-13\)\)\) \* Int64\(72\) \+ Int64\(\-48\) / Int64\(53\) \+ Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - ( - + 50 ) / - 73 * - 45 * 65 AS col1, - MIN ( - 13 ) * 72 + - 48 / 53 + + 38 AS col1 +---- +0 +974 query I rowsort label-356 SELECT - MAX ( DISTINCT - - 96 ) + + COUNT ( - 35 ) + COUNT ( * ) @@ -1976,8 +1994,11 @@ SELECT - COUNT ( * ) * + NULLIF ( + 1, - 87 ) + - 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1281 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(90\)\) \+ Int64\(\-24\) \+ Int64\(31\) \* \(\- coalesce\(Int64\(\-45\), Int64\(35\) \* \(\- Int64\(46\)\), Int64\(99\) \* Int64\(1\)\)\) AS col2" at position 0 and "Int64\(79\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - + 90 ) + + - 24 + 31 * - COALESCE ( - 45, + 35 * - + 46, + 99 * + 1 ) AS col2, 79 col2 +---- +1281 +79 query II rowsort label-373 SELECT 7 * + - 52 * NULLIF ( - 45, - COUNT ( * ) + + - COUNT ( * ) ), + 85 + - 41 AS col1 @@ -2271,8 +2292,11 @@ SELECT + 68 * - 52 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6873 # Datafusion - Expected - -4715 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) \* Int64\(\-87\) AS col0" at position 0 and "Int64\(37\) \+ Int64\(88\) \* sum\(Int64\(\-54\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 79 * - 87 AS col0, 37 + 88 * SUM ( ALL - 54 ) AS col0 +---- +-4715 +-6873 query I rowsort label-429 SELECT + 64 * - 81 * - ( - ( 14 ) ) - COALESCE ( 60, - MAX ( - 83 ) / - MIN ( 43 ) * - 17 - 71 * + COUNT ( - 42 ) + - 65 - - 5, - 48 ) - - 19 + - 76 * CAST ( + + 18 AS INTEGER ) AS col2 @@ -2407,8 +2431,11 @@ SELECT DISTINCT + COUNT ( * ) * - - SUM ( - - 86 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(3\) AS col2" at position 0 and "Int64\(30\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 29 * + + COUNT ( * ) + + 3 AS col2, + 30 + + COUNT ( * ) AS col2 +---- +-26 +31 query II rowsort label-455 SELECT 60 AS col1, + COUNT ( * ) + - 73 + + - 92 * + 39 + - 1 * - 20 AS col0 @@ -3170,8 +3197,11 @@ SELECT + 25 + + 79 * + - 43 * + 97 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-2\)\) AS col1" at position 0 and "Int64\(36\) \* CAST\(NULL AS Int32\) \* \(\- Int64\(\-39\)\) \* Int64\(\-23\) \- Int64\(14\) \+ Int64\(2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( ALL - 2 ) AS col1, + 36 * + CAST ( NULL AS INTEGER ) * - - 39 * + - 23 - 14 + 2 AS col1 +---- +1 +NULL query I rowsort label-600 SELECT ALL - 11 + MAX ( + 79 ) + + 30 + CAST ( - ( COUNT ( - - 85 ) ) AS INTEGER ) * 86 @@ -3487,8 +3517,11 @@ SELECT - - 78 - + 73 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - -3900 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col0" at position 0 and "Int64\(78\) \* \(\- \(\- nullif\(Int64\(\-50\), \(\- Int64\(77\)\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 45 col0, 78 * - + ( ( - NULLIF ( - 50, - + 77 ) ) ) AS col0 +---- +-3900 +-45 query I rowsort label-660 SELECT ALL + + SUM ( DISTINCT 61 ) AS col0 @@ -3928,8 +3961,11 @@ SELECT ALL + COUNT ( * ) * + 51 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5896 # Datafusion - Expected - 1067 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \* Int64\(88\) AS col0" at position 0 and "Int64\(\-11\) \* Int64\(\-97\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 * 88 AS col0, - 11 * - 97 * + COUNT ( * ) AS col0 +---- +1067 +5896 query I rowsort SELECT DISTINCT + 3 * + 31 @@ -3981,8 +4017,11 @@ SELECT COUNT ( * ) * - 68 * - + 23 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), \(\- Int64\(60\)\) \+ \(\- Int64\(\-18\)\) \+ Int64\(86\) \+ \(\- Int64\(\-11\)\) \* Int64\(\-14\)\) \+ CASE \(\- CAST\(NULL AS Int32\)\) WHEN sum\(nullif\(Int64\(92\), \(\- Int64\(\-38\)\)\)\) THEN Int64\(\-33\) ELSE NULL END AS col2" at position 0 and "Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +84 +NULL query I rowsort SELECT ALL + 32 + 92 AS col2 @@ -4012,8 +4051,11 @@ SELECT 61 - - + 29 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 5169 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "max\(Int64\(64\)\) \* Int64\(81\) \+ \(\- Int64\(15\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 AS col2, MAX ( + 64 ) * 81 + - ( 15 ) AS col2 +---- +19 +5169 query II rowsort SELECT - + 38 AS col1, - 87 @@ -4519,8 +4561,11 @@ SELECT COUNT ( * ) * - - NULLIF ( - 44, - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 121 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \+ \(\- Int64\(\-76\)\) \+ Int64\(44\) AS col1" at position 0 and "\(\- CAST\(\(\- Int64\(63\)\) AS Int32\)\) \+ Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) + - - 76 + + 44 AS col1, - CAST ( - + 63 AS INTEGER ) + 7 AS col1 +---- +121 +70 query I rowsort SELECT 1 * + - 77 AS col0 @@ -4806,8 +4851,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * + 3 AS col0, 18 col0 +---- +18 +3 query I rowsort SELECT + 49 + - 54 AS col1 @@ -5039,8 +5087,12 @@ 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\(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\. +query IRI valuesort SELECT ALL + COUNT ( * ) + + 69 * + 12 + + 8 col2, + NULLIF ( - + 55, - 61 + - - CAST ( NULL AS FLOAT8 ) ) * 80 AS col0, 10 AS col2 +---- +-4400 +10 +837 query I rowsort SELECT DISTINCT + NULLIF ( - 63, + 8 ) + + - 57 @@ -5294,8 +5346,11 @@ SELECT ALL - COUNT ( * ) + + ( - - 84 ) + 93 # 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 "Int64\(\-97\) / max\(Int64\(78\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 2 AS col1, - 97 / + MAX ( 78 ) AS col1 +---- +-1 +-2 query I rowsort label-1005 SELECT + 19 + COALESCE ( + COUNT ( * ), 94 ) + + - 30 AS col1 @@ -5474,8 +5529,11 @@ SELECT + 79 + - 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - -110154 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-47\) \* Int64\(26\) \+ Int64\(99\) \* Int64\(55\) \* Int64\(\-20\) \- \(\- Int64\(\-32\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 47 * 26 + + 99 * 55 * - 20 - - - 32 AS col0, COUNT ( * ) AS col0 +---- +-110154 +1 query I rowsort label-1040 SELECT - MAX ( ALL - 1 ) AS col1 @@ -6030,8 +6088,11 @@ SELECT ALL + 81 * + - 87 + + 3 - - MAX ( + ( - 1 ) ) - 54 * - MAX ( ALL - 85 ) A # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col2" at position 0 and "\(\- coalesce\(Int64\(4\), Int64\(56\)\)\) \+ Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 35 ) AS col2, - COALESCE ( + 4, 56 ) + + ( + 34 ) AS col2 +---- +30 +35 query I rowsort label-1145 SELECT ( + COUNT ( + + 88 ) ) AS col2 @@ -6795,8 +6856,11 @@ SELECT ALL - COUNT ( * ) * - MAX ( DISTINCT CAST ( + 12 AS INTEGER ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - CAST ( NULL AS FLOAT8 ) AS col0, 91 AS col0 +---- +91 +NULL query I rowsort SELECT ALL 66 + - 47 * - - 99 AS col0 @@ -6985,8 +7049,11 @@ SELECT ALL - 81 + - + NULLIF ( + COALESCE ( - + 43, MAX ( ALL 90 ) * + 71, - 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) / Int64\(67\) AS col1" at position 0 and "Int64\(\-9\) \- Int64\(88\) \+ Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 26 / 67 AS col1, - 9 - 88 + + 48 AS col1 +---- +-49 +0 query I rowsort SELECT ALL 96 + - + 39 + - + 66 * 9 + - 75 @@ -7086,8 +7153,11 @@ SELECT + SUM ( DISTINCT - 10 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 1343 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) \* Int64\(\-36\) AS col1" at position 0 and "Int64\(79\) \* max\(DISTINCT Int64\(17\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 2 * - 36 AS col1, 79 * + MAX ( DISTINCT + 17 ) AS col1 +---- +-72 +1343 query I rowsort SELECT ALL - 81 * ( - + 23 ) + 38 AS col0 @@ -7097,8 +7167,11 @@ SELECT ALL - 81 * ( - + 23 ) + 38 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -588 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \* Int64\(84\) AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 7 * 84 AS col0, 42 AS col0 +---- +-588 +42 query I rowsort label-1354 SELECT ALL - COALESCE ( - + 67, + - MAX ( DISTINCT - 33 ) ) AS col0 @@ -7649,8 +7722,11 @@ SELECT 54 * 22 - - + 89 * - 27 * - 19 + + 6 + - COUNT ( * ) + + + COUNT ( * ) AS # 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 col2" at position 0 and "Int64\(54\) / \(\- Int64\(\-39\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 44 AS col2, + 54 / - - 39 AS col2 +---- +-44 +1 query I rowsort label-1462 SELECT 83 / + 32 AS col0 @@ -8195,8 +8271,11 @@ SELECT + CASE 7 WHEN - + COUNT ( * ) / + - MAX ( - 81 ) + - 40 + + COUNT ( * ) + # Datafusion - Datafusion expected results: # Datafusion - Expected - -975 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) / Int64\(\-99\) \+ Int64\(15\) \* Int64\(\-65\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 / - 99 + + 15 * - 65 AS col2, 10 AS col2 +---- +-975 +10 query I rowsort SELECT 33 * - 70 + + + 61 col2 @@ -8293,8 +8372,11 @@ 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\(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\. +query II valuesort SELECT ALL + 52 AS col2, ( 99 ) + + COUNT ( * ) + MIN ( DISTINCT - 84 ) * - + 24 AS col2 +---- +2116 +52 query I rowsort label-1583 SELECT ALL - + MAX ( DISTINCT - COALESCE ( - - 42, - 7, - 93 ) ) * 36 * - - 91 + + + 85 @@ -8956,8 +9038,11 @@ SELECT ALL - - 71 + + 75 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 2706 -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\(73\)\) \* sum\(Int64\(61\)\) \* \(\- Int64\(\-61\)\) \+ Int64\(53\) \* \(\- Int64\(20\)\) \+ Int64\(45\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 63 AS col0, COUNT ( 73 ) * SUM ( ALL + 61 ) * - - 61 + 53 * - + 20 + ( 45 ) AS col0 +---- +2706 +63 query I rowsort label-1707 SELECT DISTINCT - + CASE MIN ( - + 14 ) WHEN - 7 + + - SUM ( ALL 5 ) + 76 * + 97 * - - 23 THEN - 98 WHEN - 69 THEN + 0 WHEN COUNT ( * ) THEN + + COUNT ( * ) / - COUNT ( * ) END AS col2 @@ -8995,8 +9080,11 @@ SELECT 21 * - + 50 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 AS col1, 35 AS col1 +---- +35 +8 query I rowsort label-1714 SELECT DISTINCT 97 - + - COUNT ( * ) @@ -9055,8 +9143,11 @@ SELECT DISTINCT + 93 + + + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col2" at position 0 and "coalesce\(Int64\(34\), Int64\(70\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 42 AS col2, + COALESCE ( + + 34, 70 ) AS col2 +---- +34 +42 query I rowsort label-1725 SELECT ALL COUNT ( * ) + + - 76 * + + 32 @@ -10000,8 +10091,11 @@ SELECT CAST ( - 86 AS INTEGER ) col0, - 31 / - - 31 + 47 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-86\) AS Int32\) AS col2" at position 0 and "Int64\(63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( - 86 AS INTEGER ) col2, + ( + + 63 ) AS col2 +---- +-86 +63 query I rowsort label-1907 SELECT ALL 84 / + 38 - - ( - COUNT ( * ) ) AS col0 @@ -10041,8 +10135,11 @@ NULL # 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 "\(\- count\(Int64\(74\)\)\) \* Int64\(43\) \- \(\- Int64\(\-79\)\) \+ Int64\(88\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( + 74 ) * + + 43 - - - 79 + 88 AS col0, 2 col0 +---- +-34 +2 query I rowsort SELECT ALL - + 13 + + + 39 - 54 * 21 AS col1 @@ -10256,8 +10353,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 58 col2, - 39 + - + 26 * + 92 + + - COUNT ( * ) AS col2 +---- +-2432 +-58 query I rowsort SELECT 80 + - 48 @@ -10739,8 +10839,11 @@ SELECT ALL 41 * 73 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 "Int64\(81\) AS col2" at position 0 and "\(\- CASE Int64\(29\) WHEN Int64\(5\) THEN NULL WHEN Int64\(\-11\) THEN Int64\(92\) WHEN \(\- \(\- Int64\(77\)\)\) THEN NULL ELSE NULL END\) \* Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 AS col2, - CASE + 29 WHEN 5 THEN NULL WHEN - 11 THEN + 92 WHEN - ( - + 77 ) THEN NULL ELSE NULL END * 5 AS col2 +---- +81 +NULL query II rowsort SELECT ALL 97 AS col1, + 40 * 18 AS col0 @@ -10818,8 +10921,12 @@ SELECT ALL - 58 * - 83 AS col2 # Datafusion - Expected - -22 # Datafusion - Expected - -76 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col0" at position 1 and "\(\- Int64\(80\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 22, - 76 col0, + ( + - ( + 80 ) ) AS col0 +---- +-22 +-76 +-80 query II rowsort label-2064 SELECT DISTINCT 31 * - 7, + SUM ( + + 16 ) * - - COUNT ( * ) + - CAST ( - COUNT ( * ) AS INTEGER ) * + - ( 75 ) * + - 89 * 35 + + 99 AS col0 @@ -11127,8 +11234,11 @@ SELECT DISTINCT 95 col0, COALESCE ( + SUM ( ALL + + 38 ), + COUNT ( 27 ) + SUM ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col1" at position 0 and "Int64\(61\) \- Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 12 AS col1, 61 - 48 AS col1 +---- +12 +13 query I rowsort label-2121 SELECT - COUNT ( * ) / + ( + - SUM ( ALL - + 88 ) ) @@ -11374,8 +11484,11 @@ 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\(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\. +query II valuesort SELECT ALL - 84 / - COUNT ( * ) AS col2, 43 + + 35 + - + 47 - NULLIF ( + NULLIF ( + 14, + 50 ), 86 ) * - 85 col2 +---- +1221 +84 query I rowsort label-2167 SELECT 25 / + - CAST ( - - 3 AS INTEGER ) AS col0 @@ -11570,8 +11683,12 @@ SELECT DISTINCT + - 56 - 88 AS col0 # Datafusion - Expected - -1421 # Datafusion - Expected - NULL # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \+ \(\- Int64\(26\)\) \* \(\- Int64\(\-56\)\) AS col1" at position 0 and "CASE Int64\(93\) WHEN Int64\(71\) \* Int64\(\-45\) \+ Int64\(\-70\) \* Int64\(93\) \+ Int64\(99\) THEN Int64\(80\) WHEN \(\- sum\(\(\- Int64\(\-4\)\)\)\) THEN NULL END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 35 + ( - + 26 ) * - - 56 AS col1, CASE + 93 WHEN 71 * - 45 + - 70 * + + 93 + + 99 THEN + 80 WHEN - SUM ( - - 4 ) THEN NULL END AS col1, - SUM ( ALL ( + + 7 ) ) AS col1 +---- +-1421 +-7 +NULL query II rowsort SELECT ALL - 5, - 46 * - 57 * 12 + - 33 + + 45 * - 23 AS col2 @@ -11614,8 +11731,12 @@ SELECT DISTINCT + 1 / + 99 # Datafusion - Expected - 46 # Datafusion - Expected - 75 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 46 AS col0, 75 AS col0, + + 64 + 25 +---- +46 +75 +89 query I rowsort label-2212 SELECT 34 / + - MAX ( CAST ( NULL AS INTEGER ) ) @@ -11928,8 +12049,11 @@ SELECT - + ( - NULLIF ( - ( COUNT ( * ) ), - CASE + - COUNT ( * ) WHEN 94 * + CO # 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 "coalesce\(Int64\(88\), Int64\(12\) \* nullif\(\(\- min\(DISTINCT Int64\(\-13\)\)\), Int64\(96\) \+ Int64\(\-40\) / Int64\(23\)\)\) / Int64\(75\) AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COALESCE ( + 88, + + 12 * NULLIF ( + - MIN ( DISTINCT - 13 ), 96 + - 40 / + 23 ) ) / + 75 AS col0, 85 AS col0 +---- +1 +85 query II rowsort SELECT 55 AS col1, + 49 * + 60 @@ -12247,8 +12371,11 @@ 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\(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\. +query RI valuesort 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 +---- +3952 +NULL query I rowsort label-2330 SELECT - MAX ( ALL - - 34 ) @@ -12453,8 +12580,12 @@ SELECT - ( + 71 ) * + COALESCE ( - - 18, 60 ) # Datafusion - Expected - 14 # Datafusion - Expected - 14910 # Datafusion - Expected - -350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col1" at position 0 and "Int64\(35\) \* Int64\(6\) \* Int64\(71\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 14 col1, 35 * + + 6 * 71 AS col1, - ( - + 10 ) * + - 35 AS col0 +---- +-350 +14 +14910 query I rowsort label-2369 SELECT DISTINCT MAX ( ALL 53 ) @@ -12497,8 +12628,11 @@ SELECT ALL COALESCE ( + COUNT ( * ), + 78 * 42 * + 56 + - - 9 ) AS col0, + 35 * # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 38 AS col2, + CAST ( NULL AS INTEGER ) AS col2 +---- +-38 +NULL query I rowsort label-2377 SELECT - + 9 * - - CAST ( 40 AS INTEGER ) * 80 @@ -13020,8 +13154,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(\-24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( * ) AS col0, - 24 AS col0 +---- +-24 +1 query I rowsort label-2479 SELECT - + 41 + - 5 + 30 * - COUNT ( * ) col2 @@ -13107,8 +13244,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * + 64 * 97 * - 40 + + 33 + + 86 col2, COUNT ( - 87 ) AS col2 +---- +-248201 +1 query I rowsort label-2496 SELECT ALL 49 / + 44 + - 69 + - NULLIF ( CAST ( NULL AS INTEGER ), 46 * - COALESCE ( + 40, + 23 ) / 26 + + COUNT ( * ) + + 42 ) + - 84 @@ -13325,8 +13465,11 @@ 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\(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\. +query II valuesort 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 +---- +17 +NULL query I rowsort label-2538 SELECT 87 + - COUNT ( * ) + + 48 + - CAST ( - 76 AS INTEGER ) AS col1 @@ -13716,8 +13859,11 @@ SELECT CAST ( + 78 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - -40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(23\) \+ Int64\(\-71\) \- Int64\(30\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 23 + - 71 - 30 * + + COUNT ( * ) AS col1, - 40 AS col1 +---- +-40 +-78 query I rowsort label-2613 SELECT ALL + MAX ( ALL 15 ) @@ -13957,14 +14103,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 5306128 # Datafusion - Expected - -5846 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-11\), Int64\(93\)\) \+ Int64\(51\) \* \(\- sum\(Int64\(60\)\)\) \* sum\(\(\- Int64\(51\)\)\) \* Int64\(34\) \+ Int64\(99\) AS col2" at position 0 and "Int64\(79\) \* Int64\(\-74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COALESCE ( - 11, + 93 ) + + + 51 * - + SUM ( + 60 ) * SUM ( ALL - + 51 ) * + 34 + 99 AS col2, 79 * - 74 AS col2 +---- +-5846 +5306128 # 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\(31\) AS col2" at position 0 and "Int64\(99\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 31 col2, + 99 AS col2 +---- +31 +99 query I rowsort SELECT ALL 28 - + 3 AS col2 @@ -14083,8 +14235,11 @@ SELECT ALL + - 55, + 61 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(19\) AS col2" at position 0 and "CAST\(Int64\(\-67\) AS Int32\) \+ Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 19 AS col2, + CAST ( ( - 67 ) AS INTEGER ) + + 98 AS col2 +---- +19 +31 query I rowsort SELECT + 43 + + + 23 * + 16 col2 @@ -14138,8 +14293,12 @@ SELECT + 54 / - + 83 * + - 98 AS col0 # Datafusion - Expected - 3120 # Datafusion - Expected - 1 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 and "\(\- Int64\(\-12\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 60 * 52, COUNT ( * ) AS col0, - - 12 AS col0 +---- +1 +12 +3120 query I rowsort SELECT + 71 + - ( - 51 ) * + 36 * + ( - ( ( 28 ) ) ) * 16 AS col1 @@ -14273,8 +14432,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 87 col1, COUNT ( * ) AS col1 +---- +1 +87 query I rowsort label-2719 SELECT ALL + MIN ( DISTINCT + + 39 ) @@ -14284,8 +14446,11 @@ SELECT ALL + MIN ( DISTINCT + + 39 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 6660 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "Int64\(74\) \* \(\- \(\- Int64\(90\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 44 AS col1, 74 * + - ( - + 90 ) AS col1 +---- +44 +6660 query I rowsort SELECT + ( 36 ) AS col0 @@ -14510,8 +14675,11 @@ 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\(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\. +query II valuesort SELECT ALL 22 - - - 58 + - - COUNT ( * ) - - 90 AS col0, 20 * 32 AS col0 +---- +55 +640 query I rowsort label-2765 SELECT 4 + - 40 + - + COUNT ( * ) * - - 43 + + + 5 @@ -14531,8 +14699,11 @@ SELECT ALL + 5 * - - 8 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 27 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \+ Int64\(\-70\) AS col2" at position 0 and "Int64\(28\) \- Int64\(\-29\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 97 + - 70 AS col2, + 28 - + - 29 AS col2 +---- +27 +57 query I rowsort label-2769 SELECT DISTINCT - COUNT ( - 77 ) * + + 16 / 3 * 11 AS col1 @@ -15203,8 +15374,11 @@ SELECT 51 / - 92 * 49 / ( 63 / + 39 ) + 1 * 31 # 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 "Int64\(61\) \+ \(\- Int64\(\-11\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 49 AS col0, + 61 + - - 11 AS col0 +---- +49 +72 query I rowsort label-2901 SELECT 50 + + 66 / + + 97 AS col0 @@ -15261,8 +15435,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 AS col2, - COUNT ( * ) AS col2 +---- +-1 +25 query I rowsort label-2912 SELECT 1 / 16 AS col1 @@ -15445,8 +15622,11 @@ SELECT ALL - 85 * - - 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2068 # Datafusion - Expected - -89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* Int64\(94\) 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 II valuesort SELECT - 22 * 94 AS col2, - MAX ( 89 ) AS col2 +---- +-2068 +-89 query I rowsort label-2947 SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) - - 23 + - - 87 / - COUNT ( * ) col0 @@ -15821,8 +16001,11 @@ SELECT ALL MIN ( + 55 ) + + 63 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - -54543 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col2" at position 0 and "\(\- Int64\(64\)\) \+ Int64\(83\) \+ Int64\(\-89\) \+ Int64\(61\) \* Int64\(47\) \* Int64\(\-19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 59 AS col2, - ( 64 ) + + 83 + - 89 + ( 61 ) * 47 * - 19 AS col2 +---- +-54543 +-59 query I rowsort SELECT ALL - 30 + - - 38 AS col2 @@ -15832,8 +16015,11 @@ SELECT ALL - 30 + - - 38 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- Int64\(\-65\)\), \(\- Int64\(\-19\)\)\) \* \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT NULLIF ( - - 65, - - 19 ) * - - CAST ( NULL AS INTEGER ) AS col2, 90 AS col2 +---- +90 +NULL query I rowsort label-3022 SELECT ALL ( + COALESCE ( + 45, - ( + 81 ) * + 78 / + COUNT ( * ) - 77 + + 5 * MIN ( ALL + 98 ), 14 * - MAX ( ALL 35 ) ) ) - 74 @@ -15892,8 +16078,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -41 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 41 AS col1, COUNT ( * ) AS col1 +---- +-41 +1 query I rowsort label-3033 SELECT ALL - - MIN ( ALL 6 ) AS col0 @@ -15981,8 +16170,11 @@ SELECT 75 + + 99 + NULLIF ( 64, + 39 / - 81 * - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - -135 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-54\)\) AS col0" at position 0 and "Int64\(\-45\) \* Int64\(3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( - 54 ) AS col0, - 45 * 3 AS col0 +---- +-135 +-54 query I rowsort label-3050 SELECT 85 + + 73 / + 85 AS col0 @@ -16805,8 +16997,11 @@ SELECT + 0 / - COUNT ( - 93 ) - + + 55 + + 94 + + NULLIF ( + - NULLIF ( + SUM ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 69 * COUNT ( * ) AS col0, + 68 AS col0 +---- +68 +69 query I rowsort label-3207 SELECT + + COUNT ( ALL + 20 ) * CASE + - 9 WHEN - 28 THEN NULL WHEN + 37 THEN - 30 END + + + 19 + 62 AS col2 @@ -17188,8 +17383,11 @@ SELECT DISTINCT + + COUNT ( * ) / 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 1216 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "Int64\(\-38\) \* CAST\(Int64\(\-32\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 12 AS col0, - 38 * + CAST ( - 32 AS INTEGER ) AS col0 +---- +12 +1216 query I rowsort SELECT 13 + 51 @@ -17683,8 +17881,12 @@ SELECT ALL + 14 col1, 15 * 72 * - - 26 # Datafusion - Expected - 0 # Datafusion - Expected - 66 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "Int64\(83\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 0 AS col0, 77 / + 87 - - 66, + 83 AS col0 +---- +0 +66 +83 query I rowsort label-3373 SELECT + 33 + + 10 + - 12 * + 30 * 54 - CASE 78 WHEN + + ( CASE 50 WHEN - 91 + + COUNT ( * ) THEN + 71 WHEN + + ( MAX ( DISTINCT + - 47 ) ) THEN NULL WHEN 65 THEN COUNT ( * ) * + 83 END ) / COUNT ( * ) + + ( - 39 + 63 / - 70 ) THEN - 67 + - 25 * 97 WHEN 24 THEN NULL END / - ( 41 ) AS col1 @@ -17902,8 +18104,11 @@ SELECT ALL - 32 * 86 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1330 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) \* Int64\(21\) \- Int64\(\-91\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 * 21 - - 91 AS col2, COUNT ( * ) AS col2 +---- +1 +1330 query I rowsort label-3415 SELECT ALL - 23 * - CAST ( - 90 AS INTEGER ) AS col0 @@ -17928,8 +18133,11 @@ SELECT ALL + 59 - + + 32 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -3150 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col0" at position 0 and "Int64\(45\) \* coalesce\(CAST\(Int64\(\-70\) AS Int32\), Int64\(\-20\) \+ Int64\(39\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0 AS col0, + 45 * COALESCE ( CAST ( ( + - 70 ) AS INTEGER ), - 20 + 39 ) AS col0 +---- +-3150 +0 query II rowsort SELECT - 38 AS col1, 68 AS col2 @@ -18476,8 +18684,11 @@ SELECT ALL - 1 + + + CASE + CASE 21 WHEN - + 56 + - 63 THEN - + ( + 79 ) * + 97 # 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 col1" at position 0 and "\(\- CASE Int64\(18\) WHEN Int64\(40\) THEN \(\- Int64\(84\)\) ELSE NULL END\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 49 AS col1, ( - CASE 18 WHEN + 40 THEN - + 84 ELSE NULL END ) AS col1 +---- +49 +NULL query I rowsort label-3525 SELECT 92 / + - 24 @@ -18503,8 +18714,12 @@ 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\(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\. +query III valuesort SELECT DISTINCT 61, 8 + COUNT ( * ) + + 92 col0, 53 AS col0 +---- +101 +53 +61 query I rowsort SELECT ALL - 39 + + 99 @@ -19402,8 +19617,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) AS col1, + 30 * - MIN ( DISTINCT - + 76 ) + + 27 AS col1 +---- +-1 +2307 query I rowsort SELECT 11 - + 82 @@ -19593,8 +19811,11 @@ SELECT - 76 * + 51 AS col2 # 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 "\(\- CASE \(\- Int64\(\-17\)\) WHEN Int64\(\-85\) THEN NULL WHEN Int64\(56\) THEN \(\- Int64\(\-85\)\) WHEN Int64\(\-34\) / Int64\(51\) THEN Int64\(81\) ELSE NULL END\) AS col2" at position 0 and "Int64\(\-59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CASE - - 17 WHEN - 85 THEN NULL WHEN 56 THEN - - 85 WHEN - 34 / + + 51 THEN + 81 ELSE NULL END AS col2, ( - 59 ) AS col2 +---- +-59 +NULL query I rowsort SELECT - 52 * 48 * - 48 @@ -19659,8 +19880,11 @@ SELECT ALL - 35 * ( - - 38 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4977 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-79\)\) \* Int64\(\-63\) AS col1" at position 0 and "Int64\(\-6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 79 * + - 63 AS col1, - 6 AS col1 +---- +-4977 +-6 query I rowsort SELECT - 96 * + + 51 * + 10 AS col2 @@ -19675,8 +19899,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - COUNT ( * ) ) AS col1, 88 AS col1 +---- +-1 +88 query II rowsort SELECT - 40 - + 46, - 72 * + 54 * - 88 AS col2 @@ -19687,8 +19914,11 @@ SELECT - 40 - + 46, - 72 * + 54 * - 88 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -97498 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \* Int64\(58\) \* count\(Int64\(\-47\)\) \* Int64\(41\) AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 41 * 58 * + COUNT ( ALL - 47 ) * + 41 AS col1, + 35 AS col1 +---- +-97498 +35 query I rowsort label-3753 SELECT ALL + - 70 / + 98 + + - COUNT ( + 10 ) AS col0 @@ -20585,8 +20815,11 @@ SELECT - 37 * - 11 + - 32 * - 8 - + ( - + 26 ) + + SUM ( - 0 ) AS col2, - 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE max\(Int64\(34\)\) WHEN \(\- CAST\(NULL AS Int32\)\) THEN Int64\(16\) END\) AS col0" at position 0 and "CAST\(Int64\(77\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CASE MAX ( 34 ) WHEN - ( + CAST ( NULL AS INTEGER ) ) THEN + 16 END AS col0, CAST ( + 77 AS INTEGER ) AS col0 +---- +77 +NULL query I rowsort SELECT 36 + - 7 AS col1 @@ -20779,8 +21012,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * - COUNT ( * ) AS col2, - 29 AS col2 +---- +-1 +-29 query II rowsort label-3960 SELECT + COUNT ( * ) / 2, + 57 AS col2 @@ -21186,8 +21422,11 @@ SELECT 93 * - 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) \* Int64\(73\) \* \(\- Int64\(11\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 AS col0, - CAST ( NULL AS INTEGER ) * + 73 * - + 11 AS col0 +---- +54 +NULL query I rowsort label-4037 SELECT COUNT ( * ) * - 91 * - 21 AS col0 @@ -21394,8 +21633,11 @@ 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\(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\. +query II valuesort 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 +---- +1942 +88 query I rowsort label-4076 SELECT ALL COUNT ( * ) - 18 + + - 79 + - 52 * + COALESCE ( COUNT ( * ), - ( - 27 ) ) * 15 * - 57 AS col0 @@ -21456,8 +21698,11 @@ SELECT ALL + MIN ( DISTINCT + 49 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 113 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col1" at position 0 and "max\(DISTINCT Int64\(79\)\) \+ \(\- \(\- Int64\(34\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 31 AS col1, + MAX ( DISTINCT 79 ) + - ( - ( 34 ) ) col1 +---- +113 +31 query I rowsort SELECT DISTINCT + - 80 col2 @@ -22079,8 +22324,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + COUNT ( * ) ) AS col0, 38 AS col0 +---- +-1 +38 query I rowsort SELECT DISTINCT ( + 26 ) * + 28 + + + ( - ( 92 ) ) + - 30 @@ -22383,8 +22631,11 @@ SELECT NULLIF ( - 18, - + MAX ( + + 49 ) ) * + COUNT ( * ) 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 "\(\- CASE Int64\(\-5\) WHEN Int64\(\-2\) \* Int64\(\-2\) THEN NULL ELSE Int64\(\-2\) END\) AS col1" at position 0 and "Int64\(46\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CASE - 5 WHEN - 2 * + - 2 THEN NULL ELSE - 2 END AS col1, + 46 col1 +---- +2 +46 query I rowsort SELECT 14 * 37 @@ -22739,8 +22990,11 @@ SELECT + NULLIF ( 95, - + 92 ) + + 14 + - MIN ( DISTINCT 74 ) + 24 / - CASE 95 W # Datafusion - Datafusion expected results: # Datafusion - Expected - -3154 # Datafusion - Expected - -313040 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) \* \(\- Int64\(\-83\)\) AS col2" at position 0 and "Int64\(91\) \* \(\- Int64\(80\)\) \* \(\- Int64\(\-43\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 38 * - - 83 AS col2, + 91 * - + 80 * - - 43 AS col2 +---- +-313040 +-3154 query I rowsort label-4331 SELECT DISTINCT CAST ( - 77 AS INTEGER ) AS col2 @@ -22898,8 +23152,12 @@ SELECT - 64 AS col2, - 95 # Datafusion - Expected - NULL # Datafusion - Expected - -11 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(DISTINCT Int64\(99\)\)\) \+ Int64\(29\) \* \(\- \(\- sum\(Int64\(\-29\)\)\)\) \* \(\- Int64\(\-86\)\) \+ coalesce\(Int64\(\-46\), avg\(Int64\(\-85\)\) / CAST\(Int64\(\-31\) AS Int32\), Int64\(46\)\) \+ Int64\(92\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(10\) \- Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RII valuesort 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 ( * ) +---- +-11 +89 +NULL query I rowsort label-4361 SELECT 89 / - + ( 86 ) @@ -22941,8 +23199,11 @@ SELECT COUNT ( * ) / - ( 31 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 28224 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* Int64\(\-24\) \* max\(Int64\(\-12\)\) AS col0" at position 0 and "Int64\(28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( 98 ) * - 24 * + MAX ( - 12 ) AS col0, 28 AS col0 +---- +28 +28224 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -24125,8 +24386,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - -68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col1" at position 0 and "Int64\(\-68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 89 col1, - 68 col1 +---- +-68 +89 query I rowsort SELECT DISTINCT + 85 + + 26 @@ -24568,8 +24832,11 @@ SELECT COALESCE ( 6, NULLIF ( 1, 19 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "Int64\(\-12\) \+ Int64\(\-75\) \* CAST\(NULL AS Int32\) \- Int64\(14\) \- Int64\(29\) \+ coalesce\(Int64\(72\), Int64\(9\) \* coalesce\(Int64\(51\), avg\(DISTINCT coalesce\(Int64\(93\), Int64\(45\)\)\) \- max\(DISTINCT Int64\(48\)\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(DISTINCT Int64\(31\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort 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 +---- +32 +NULL query I rowsort SELECT - 85 * - 11 col0 @@ -24776,8 +25043,11 @@ SELECT ALL + CAST ( + + 66 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(82\)\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + ( + 82 ) AS col1, 14 AS col1 +---- +-82 +14 query I rowsort SELECT ALL + - ( 16 ) * 5 @@ -25322,8 +25592,11 @@ SELECT - 6 * + 74 + 3 * 65 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-96\) AS col2" at position 0 and "Int64\(76\) / Int64\(63\) \* Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 96 AS col2, 76 / 63 * 87 AS col2 +---- +-96 +87 query I rowsort label-4829 SELECT 75 * COUNT ( * ) + - 22 - CAST ( NULL AS INTEGER ) - - 55 @@ -25650,8 +25923,11 @@ SELECT DISTINCT 83 + 78 * + 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) / Int64\(65\) \+ Int64\(90\) AS col0" at position 0 and "Int64\(48\) \+ Int64\(\-98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 68 / 65 + + 90 AS col0, + 48 + + - 98 AS col0 +---- +-50 +91 query II rowsort label-4892 SELECT ALL - MAX ( 99 ) AS col0, 47 @@ -25852,8 +26128,11 @@ 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\(1\)\) AS count\(\*\), Int64\(28\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 80 AS col0, COALESCE ( COUNT ( * ), + 28 ) AS col0 +---- +-80 +1 query I rowsort label-4930 SELECT - 4 - + ( - ( CAST ( - 14 AS INTEGER ) ) ) @@ -25948,8 +26227,11 @@ SELECT ALL + MIN ( DISTINCT - 1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - -719 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "Int64\(46\) \* Int64\(\-15\) \+ Int64\(\-29\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 29 ) AS col1, + 46 * - 15 + - 29 AS col1 +---- +-719 +29 query I rowsort label-4948 SELECT MAX ( ALL - 60 ) AS col0 @@ -26501,8 +26783,11 @@ 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\(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\. +query II valuesort SELECT 60 * MIN ( DISTINCT + + 14 ) * + - ( COUNT ( * ) ) * 69 AS col1, 66 + - - 28 AS col1 +---- +-57960 +94 query I rowsort SELECT ALL - - 20 + + 95 @@ -27390,8 +27675,11 @@ SELECT ALL + COUNT ( * ) * - - 59 + - + 2 - - + COUNT ( * ) + + 10 * 7 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(46\) \+ \(\- nullif\(\(\- Int64\(97\)\), Int64\(45\) \* \(\- \(\- min\(\(\- Int64\(\-57\)\)\)\)\)\)\) \+ Int64\(\-94\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 93 AS col1, + CAST ( NULL AS INTEGER ) + + 46 + + - NULLIF ( - + 97, + 45 * - - MIN ( ALL - - 57 ) ) + - 94 + - COUNT ( * ) AS col1 +---- +93 +NULL query I rowsort SELECT ALL + 70 * + 53 @@ -27406,8 +27694,11 @@ SELECT + 93 * + - 67 + + 97 - 85 - + 17 * + 64 * - + 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 1711 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col2" at position 0 and "\(\- Int64\(38\)\) \* \(\- CAST\(Int64\(46\) AS Int32\)\) \+ Int64\(\-37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 AS col2, - ( + 38 ) * - + CAST ( 46 AS INTEGER ) + - 37 col2 +---- +1711 +26 query I rowsort SELECT ALL + 9 * + ( 62 ) + - 44 * ( - COALESCE ( - + 40, - - 38 ) ) AS col1 @@ -28066,8 +28357,11 @@ SELECT - 60 + COUNT ( * ) - + NULLIF ( + 85, + 78 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 6035 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(71\) \* Int64\(85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, 71 * + 85 AS col1 +---- +1 +6035 query I rowsort label-5354 SELECT - - 40 - - COALESCE ( - COUNT ( * ), COUNT ( * ) ) @@ -28154,8 +28448,11 @@ SELECT CAST ( + + 78 AS INTEGER ) * - MAX ( ALL - + 63 ) + + COUNT ( * ) - NULLI # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(81\) / Int64\(\-53\) \+ \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-52\) / Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) col0, 81 / - 53 + - ( - COUNT ( * ) ) * - 52 / + 30 AS col0 +---- +-2 +1 query I rowsort label-5370 SELECT - MAX ( + - 88 ) * CAST ( NULL AS INTEGER ) @@ -28180,8 +28477,11 @@ SELECT + ( 10 ) * + ( - 83 ) + - - 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col1" at position 0 and "nullif\(\(\- \(\- Int64\(20\)\)\), \(\- Int64\(1\)\)\) \- Int64\(47\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 AS col1, NULLIF ( - - ( 20 ), - + 1 ) - 47 AS col1 +---- +-27 +87 query I rowsort label-5375 SELECT ALL COUNT ( * ) * + 90 @@ -28259,8 +28559,11 @@ SELECT ALL 64 + + 1 * 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 288798 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "sum\(Int64\(30\)\) \- Int64\(94\) \* Int64\(96\) \* Int64\(\-32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 46 AS col2, + SUM ( + 30 ) - + 94 * 96 * - 32 AS col2 +---- +288798 +46 query II rowsort SELECT 43 AS col2, - ( + - 18 ) @@ -28442,8 +28745,11 @@ SELECT 3 * COUNT ( * ) * + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CAST\(\(\- Int64\(\-61\)\) AS Int32\)\) / \(\- Int64\(96\)\) \+ \(\- Int64\(40\)\) AS col0" at position 0 and "\(\- CASE \(\- Int64\(68\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL WHEN coalesce\(Int64\(71\), Int64\(\-20\) \* \(\- max\(Int64\(\-36\)\)\)\) \+ \(\- Int64\(2\)\) THEN NULL WHEN Int64\(8\) THEN NULL WHEN Int64\(51\) \+ Int64\(8\) \- Int64\(13\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(29\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(51\) \* Int64\(56\) ELSE \(\- coalesce\(Int64\(92\), Int64\(72\) \* Int64\(14\)\)\) END\) / Int64\(53\) \+ Int64\(\-66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-40 +-65 query I rowsort SELECT ALL - 28 * - 4 AS col0 @@ -28485,8 +28791,11 @@ SELECT SUM ( ALL - 13 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(57\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col0, 57 AS col0 +---- +1 +57 query I rowsort label-5433 SELECT - CAST ( NULL AS INTEGER ) * 40 + 39 + + + ( + 7 ) col2 @@ -28501,8 +28810,11 @@ SELECT - 36 * 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 445900 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(\-97\)\)\)\) \* \(\- Int64\(76\)\) \+ CAST\(NULL AS Int32\) / Int64\(67\) AS col1" at position 0 and "CASE Int64\(86\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(80\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-43\) / \(\- Int64\(51\)\) THEN NULL ELSE Int64\(\-60\) \* Int64\(78\) \+ Int64\(91\) \+ \(\- \(\- Int64\(39\)\)\) END \* Int64\(\-98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +445900 +NULL query I rowsort SELECT - 27 + - 60 AS col2 @@ -28818,8 +29130,11 @@ SELECT + + ( - 67 ) / - + 87 + - 10 - + ( 56 ) + + COUNT ( 8 ) + - 32 / + 78 + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -147 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "sum\(Int64\(\-97\)\) \+ Int64\(\-50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, SUM ( - 97 ) + - 50 AS col2 +---- +-147 +1 query I rowsort SELECT ALL 86 - NULLIF ( 86, 33 * - + 69 + + + 49 * - NULLIF ( 71, - 15 ) ) * + + 33 * + 5 AS col2 @@ -29301,8 +29616,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 0 AS col0, + COUNT ( * ) * 56 AS col0 +---- +0 +56 query I rowsort label-5588 SELECT ALL + COUNT ( * ) * + + 36 @@ -29334,8 +29652,11 @@ 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\(1\)\) AS count\(\*\) / Int64\(15\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 45 AS col1, 78 * - - COALESCE ( - + 66, 40 * + COUNT ( * ) / + + 15 ) AS col1 +---- +-5148 +45 query I rowsort label-5594 SELECT + CAST ( + ( - - 52 ) AS INTEGER ) AS col1 @@ -29736,8 +30057,11 @@ SELECT + 98 + - 83 + - 73 - - ( - 50 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 51 AS col0, CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 +---- +-1 +51 query I rowsort label-5672 SELECT + 91 / - CASE - + COUNT ( * ) WHEN + 18 / 36 * - - COUNT ( * ) THEN - 7 END @@ -29773,8 +30097,11 @@ SELECT - 61 / COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2635 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* Int64\(85\) AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 31 * + 85 AS col1, + 45 col1 +---- +2635 +45 query I rowsort label-5679 SELECT - COUNT ( * ) * + COUNT ( DISTINCT - + 12 ) * + + COUNT ( * ) * - 14 + + - COUNT ( * ) - + 49 @@ -29914,8 +30241,12 @@ SELECT - + 63 * - 68 AS col2 # Datafusion - Expected - 98 # Datafusion - Expected - 53 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) AS col0" at position 0 and "\(\- Int64\(\-90\)\) \* \(\- Int64\(\-64\)\) \* CAST\(NULL AS Int32\) \* Int64\(20\) \* Int64\(44\) \- Int64\(93\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +53 +98 +NULL query I rowsort SELECT + + ( 49 ) @@ -29925,8 +30256,11 @@ SELECT + + ( 49 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(12\)\) AS col2" at position 0 and "Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + SUM ( 12 ) AS col2, 17 AS col2 +---- +12 +17 query I rowsort label-5708 SELECT + NULLIF ( SUM ( 97 ), CAST ( 76 AS INTEGER ) ) AS col1 @@ -30180,8 +30514,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 63 AS col0, 58 * - COUNT ( * ) AS col0 +---- +-58 +63 query I rowsort SELECT + 47 * - - 45 col2 @@ -30379,8 +30716,11 @@ SELECT ALL + NULLIF ( + + NULLIF ( ( + 32 ), + COUNT ( * ) * - - CAST ( NULL AS # Datafusion - Datafusion expected results: # Datafusion - Expected - 248 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-8\) \* \(\- Int64\(31\)\) AS col1" at position 0 and "count\(DISTINCT \(\- Int64\(\-14\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 8 * - + 31 AS col1, COUNT ( DISTINCT - - 14 ) AS col1 +---- +1 +248 query I rowsort SELECT DISTINCT + - 52 AS col2 @@ -30599,8 +30939,11 @@ SELECT - 47 * + + 10 - - ( + + 36 ) + + COUNT ( * ) / 64 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - -1850 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \* Int64\(\-25\) \* CAST\(coalesce\(\(\- coalesce\(avg\(Int64\(74\)\), \(\- Int64\(30\)\)\)\), Int64\(\-94\) \* \(\- CASE \(\- Int64\(\-53\)\) WHEN Int64\(\-21\) \+ Int64\(26\) THEN \(\- nullif\(Int64\(5\), Int64\(12\)\)\) \* \(\- Int64\(\-89\)\) \* Int64\(62\) ELSE NULL END\)\) AS Int32\) \* count\(Int64\(\-66\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-18 +-1850 query I rowsort label-5835 SELECT ALL - - 72 * - 9 + 82 * + - COUNT ( * ) + - 24 AS col2 @@ -30640,8 +30983,12 @@ NULL # Datafusion - Expected - 56 # Datafusion - Expected - -4 # Datafusion - Expected - 1398 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) \* Int64\(5\) / Int64\(88\) AS col0" at position 1 and "\(\- Int64\(6\)\) \+ Int64\(18\) \* Int64\(78\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 56, - 79 * 5 / 88 AS col0, - + 6 + 18 * + 78 AS col0 +---- +-4 +1398 +56 query I rowsort SELECT ALL 73 - 83 AS col2 @@ -30667,8 +31014,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 336 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \* Int64\(24\) AS col1" at position 0 and "Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 14 * 24 AS col1, - 94 AS col1 +---- +-94 +336 query I rowsort label-5847 SELECT ALL - 37 / + 59 @@ -30730,8 +31080,11 @@ 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\(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\. +query II valuesort 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 +---- +133778 +NULL query I rowsort label-5859 SELECT CASE - 72 WHEN ( - 2 ) THEN COUNT ( * ) WHEN + MAX ( DISTINCT - - 49 ) + MIN ( + 76 ) THEN + 21 * + 89 + - 36 - 7 END - - NULLIF ( + 48, - + 55 * - COUNT ( - 62 ) / + 84 * 4 + - COALESCE ( + 70, + 51 ) ) @@ -30822,8 +31175,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CASE 58 WHEN 55 + - 40 THEN - + 58 END - COUNT ( ALL - + 37 ) col0, NULLIF ( - 65, - 12 * - + COUNT ( * ) ) AS col0 +---- +-65 +NULL query I rowsort label-5877 SELECT DISTINCT - 31 / - - 14 @@ -30923,8 +31279,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT SUM ( - 81 ) * 82 AS col1, + CASE - - 62 WHEN + + COUNT ( * ) THEN 16 - + + 76 END col1 +---- +-6642 +NULL query I rowsort label-5896 SELECT ALL + 8 * - + 76 + - CAST ( NULL AS INTEGER ) @@ -30955,8 +31314,11 @@ SELECT ALL - 81 - + - 9 / + 20 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-49\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + MIN ( - 49 ) col1, COUNT ( * ) AS col1 +---- +-49 +1 query I rowsort label-5902 SELECT DISTINCT - - CAST ( 76 AS INTEGER ) AS col2 @@ -31580,8 +31942,11 @@ SELECT 13 * 61 # 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 col2" at position 0 and "Int64\(70\) \+ \(\- avg\(\(\- CAST\(NULL AS Float64\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT DISTINCT 19 AS col2, + 70 + - AVG ( - + CAST ( NULL AS FLOAT8 ) ) AS col2 +---- +19 +NULL query I rowsort SELECT DISTINCT - 34 - - 48 - + 73 @@ -31622,8 +31987,11 @@ SELECT - 30 - 3 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(\(\- coalesce\(Int64\(\-4\), Int64\(\-81\) \- Int64\(87\)\)\)\) \+ Int64\(\-68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( ALL - COALESCE ( + - 4, - 81 - + + 87 ) ) + - 68 AS col0 +---- +-67 +1 query II rowsort SELECT ALL - 43, 34 AS col0 @@ -32238,8 +32606,11 @@ SELECT 22 * - 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-81\) \* Int64\(0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, - 81 * + 0 col2 +---- +0 +1 query I rowsort label-6144 SELECT DISTINCT 95 * + - 89 + COUNT ( ( - 91 ) ) @@ -32951,8 +33322,11 @@ 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\(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\. +query II valuesort SELECT + 64 * - COUNT ( * ) AS col2, 94 + + - 95 AS col2 +---- +-1 +-64 query I rowsort label-6284 SELECT ALL + 95 * + + CAST ( + 99 AS INTEGER ) - COUNT ( * ) * 44 + 36 @@ -32995,8 +33369,12 @@ SELECT + - 59 * 10 * ( + 28 ) # Datafusion - Expected - 1 # Datafusion - Expected - -5120 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \* Int64\(\-64\) AS col0" at position 1 and "Int64\(40\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + COUNT ( * ), + 80 * - 64 AS col0, + 40 AS col0 +---- +-5120 +1 +40 query I rowsort label-6292 SELECT CASE COUNT ( * ) WHEN + 69 * - 36 + 86 + + 14 * + 43 THEN - CAST ( NULL AS INTEGER ) WHEN 26 * - COALESCE ( + 47 * + 75, + CAST ( + 85 AS INTEGER ) ) + 99 THEN 17 / 27 + 23 END @@ -33353,8 +33731,11 @@ SELECT 54 * - NULLIF ( + 5, + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1995 # Datafusion - Expected - 1957 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-21\) \* Int64\(\-95\) AS col2" at position 0 and "Int64\(\-92\) \- Int64\(60\) \- Int64\(88\) \* Int64\(\-23\) \+ Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 21 * - 95 AS col2, - 92 - 60 - 88 * - 23 + + 85 AS col2 +---- +1957 +1995 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -33373,8 +33754,11 @@ SELECT 31 * CASE - ( - - 76 ) WHEN CAST ( - ( - 50 ) AS INTEGER ) + - 20 THEN 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) \- Int64\(89\) AS col2" at position 0 and "Int64\(88\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 49 - + 89 AS col2, 88 AS col2 +---- +-40 +88 query I rowsort label-6364 SELECT DISTINCT - CASE CAST ( NULL AS INTEGER ) WHEN + 53 / + - COUNT ( * ) THEN - 42 * - - 35 ELSE 80 + - 87 END AS col2 @@ -33459,8 +33843,11 @@ SELECT 31 + - MIN ( DISTINCT + 5 ) + 40 - + CAST ( - + 99 AS INTEGER ) * 90 AS c # Datafusion - Datafusion expected results: # Datafusion - Expected - 100 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) \+ Int64\(84\) AS col2" at position 0 and "Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 16 + + 84 AS col2, + 41 col2 +---- +100 +41 query I rowsort label-6380 SELECT - SUM ( DISTINCT + - 98 ) @@ -33570,8 +33957,11 @@ SELECT DISTINCT 89 * - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 399 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col1" at position 0 and "Int64\(7\) \* Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 1 AS col1, 7 * + ( 57 ) col1 +---- +1 +399 query II rowsort label-6402 SELECT - COUNT ( * ) * + 28 / + 24, - 88 AS col0 @@ -34057,8 +34447,11 @@ SELECT 89 AS col2, 65 * - 58 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 84 AS col0, 60 AS col0 +---- +-84 +60 query I rowsort SELECT ALL - 32 * + COALESCE ( - - 97, - + 77 + + 63 * 26 ) AS col0 @@ -34073,8 +34466,11 @@ SELECT 59 / + 38 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 95 # Datafusion - Expected - -94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(95\) AS col1" at position 0 and "\(\- CAST\(Int64\(95\) AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 AS col1, - CAST ( + 95 AS INTEGER ) + COUNT ( * ) AS col1 +---- +-94 +95 query I rowsort SELECT COALESCE ( - 3, - 52 ) * - 47 AS col0 @@ -34153,8 +34549,11 @@ SELECT - 74 * + 36 - + 58 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -39 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) AS col0" at position 0 and "\(\- sum\(Int64\(94\)\)\) \+ Int64\(\-32\) \+ CASE Int64\(\-44\) WHEN nullif\(Int64\(\-63\), coalesce\(\(\- Int64\(66\)\), count\(Int64\(1\)\) AS count\(\*\), Int64\(42\) \+ \(\- nullif\(CAST\(Int64\(39\) AS Int32\), Int64\(20\)\)\)\)\) \+ Int64\(74\) THEN NULL WHEN Int64\(98\) / Int64\(52\) THEN Int64\(\-59\) \* Int64\(17\) END \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-39 +NULL query I rowsort label-6514 SELECT ALL - - 78 * 90 + + - COUNT ( * ) AS col1 @@ -34710,8 +35109,11 @@ SELECT 88 * + 33 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, 89 AS col2 +---- +1 +89 query I rowsort label-6622 SELECT ALL + COUNT ( * ) * - + ( - - 77 ) * 57 AS col1 @@ -34743,8 +35145,11 @@ SELECT - 71 * 83 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5 # Datafusion - Expected - -72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-77\) \+ Int64\(82\) AS col2" at position 0 and "Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 77 + + + ( 82 ) AS col2, - 72 AS col2 +---- +-72 +5 query I rowsort label-6628 SELECT ALL - ( 90 ) / + 82 @@ -35019,8 +35424,11 @@ SELECT - ( ( + 78 ) ) AS col1 # 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 "Int64\(61\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 86 AS col0, + 61 AS col0 +---- +61 +86 query I rowsort SELECT - 27 * - 71 + 32 @@ -35339,8 +35747,11 @@ SELECT ALL 0, 24 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -11 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) AS col1" at position 0 and "count\(Int64\(28\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 11 AS col1, + COUNT ( + 28 ) col1 +---- +-11 +1 query II rowsort label-6742 SELECT 25 AS col0, 43 - - 73 * + + CASE ( + 16 ) WHEN + COUNT ( * ) THEN - + ( + 61 ) ELSE NULL END AS col1 @@ -36567,8 +36978,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 91 col1, ( + COALESCE ( - ( - NULLIF ( + 3, - 38 ) ), + ( 77 ), - - COUNT ( * ) ) ) AS col1 +---- +3 +91 query I rowsort label-6974 SELECT DISTINCT - 95 / - - 41 @@ -36710,8 +37124,11 @@ 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\(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\. +query II valuesort SELECT ALL - + 63 * - 71 + ( - COUNT ( * ) ) * CASE + 88 WHEN + COUNT ( * ) THEN NULL WHEN + 30 THEN + 67 ELSE + - 64 END + + + 75 col2, + 35 / + + 62 AS col2 +---- +0 +4612 query I rowsort label-7000 SELECT ALL + 20 * + CASE - COUNT ( * ) WHEN - + 1 * - + NULLIF ( - NULLIF ( - 37, - 71 ), 4 + - ( - 35 ) ) + - MIN ( + 17 ) - NULLIF ( COUNT ( * ), + - 58 ) * + 89 THEN - - CAST ( 83 AS INTEGER ) WHEN + 29 THEN NULL END + + 94 + - - COUNT ( * ) AS col0 @@ -36854,8 +37271,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) * + 35 col2, + 91 + 11 AS col2 +---- +-35 +102 query I rowsort label-7028 SELECT + COALESCE ( 85, COUNT ( * ) ) AS col2 @@ -36928,8 +37348,11 @@ SELECT + COALESCE ( + 82, - ( + 98 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1702 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(37\) \* Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col0, + 37 * + + 46 col0 +---- +1 +1702 query II rowsort label-7042 SELECT 86 - - - COUNT ( * ) / - 15, + 98 * + 23 AS col2 @@ -36951,14 +37374,21 @@ SELECT 63 - + 86 AS col2 # Datafusion - Expected - -97 # Datafusion - Expected - 55 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) AS col1" at position 0 and "Int64\(30\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 97 AS col1, + 56 + 82 + - + 83, + ( + 30 ) col1 +---- +-97 +30 +55 # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col2" at position 0 and "sum\(Int64\(85\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 53 AS col2, SUM ( ALL + + ( + 85 ) ) AS col2 +---- +53 +85 query I rowsort SELECT 91 * 35 AS col0 @@ -37119,8 +37549,11 @@ 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 "Int64\(7\) \+ Int64\(\-8\) AS col2" at position 0 and "Int64\(\-64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 + - 8 AS col2, - 64 AS col2 +---- +-1 +-64 query II rowsort label-7077 SELECT DISTINCT - 74 / - COUNT ( * ) AS col0, 30 @@ -37280,8 +37713,11 @@ SELECT ALL - 50 * - - 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, 13 AS col0 +---- +1 +13 query II rowsort SELECT + 93 AS col0, 19 col2 @@ -37323,8 +37759,11 @@ SELECT + + 92 AS col0, + 89 * - ( - 65 ) * - + 94 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 46 AS col2, 40 AS col2 +---- +-46 +40 query I rowsort SELECT - + 33 * - + 68 AS col2 @@ -37394,8 +37833,11 @@ SELECT + 7 + - 15 - - 5 / + 59 + + 98 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 31 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) AS col2" at position 0 and "Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 31 col2, 72 AS col2 +---- +31 +72 query II rowsort label-7130 SELECT + COALESCE ( - - CASE 63 WHEN - - 94 + COUNT ( * ) THEN 84 WHEN - COUNT ( * ) THEN + COUNT ( * ) * - 60 ELSE - - 95 END, + + 35 / + COUNT ( * ) * + 35 + MIN ( DISTINCT - 60 ) + + + ( + 65 ) ) AS col1, 65 @@ -37458,8 +37900,12 @@ SELECT + 92 + + 82, + 89 AS col0 # Datafusion - Expected - -36 # Datafusion - Expected - 8132 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col2" at position 0 and "Int64\(86\) \* Int64\(94\) \- Int64\(\-48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + - 36 AS col2, 86 * + 94 - - 48 AS col2, - 61 +---- +-36 +-61 +8132 query I rowsort label-7142 SELECT + 23 * + MIN ( DISTINCT 32 ) * + - 19 + - + 32 + + + 59 + + + MAX ( DISTINCT 96 ) @@ -37490,8 +37936,11 @@ SELECT ALL + + 2 AS col2, + 20 + - ( + CASE + + 41 WHEN - - 25 * 44 THEN 18 + 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 20 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 20 AS col0, + 68 AS col0 +---- +20 +68 query II rowsort label-7148 SELECT - - COUNT ( * ) + - COUNT ( * ) AS col2, 16 * COALESCE ( COUNT ( * ), 81 ) - - + 70 @@ -37747,8 +38196,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) / Int64\(\-46\) AS col2" at position 0 and "Int64\(\-60\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 40 / + + ( + - 46 ) AS col2, - 60 * CAST ( NULL AS INTEGER ) AS col2 +---- +0 +NULL query I rowsort label-7197 SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - 63 * + + 95 / + + 15 AS col0 @@ -38017,8 +38469,12 @@ SELECT + 71 - - ( - 94 ) + - - 95 # Datafusion - Expected - NULL # Datafusion - Expected - -36 # Datafusion - Expected - -6014 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \- Int64\(3\) \* coalesce\(Int64\(0\), Int64\(\-3\)\) \+ Int64\(\-99\) AS col1" at position 1 and "Int64\(62\) \* Int64\(\-97\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - CAST ( NULL AS INTEGER ), 63 - + 3 * + + COALESCE ( 0, + ( + - 3 ) ) + - 99 AS col1, + 62 * - 97 AS col1 +---- +-36 +-6014 +NULL query I rowsort label-7249 SELECT ALL 53 - - 72 + + 12 / - ( + 33 ) + + 51 + - - 28 @@ -38229,8 +38685,11 @@ 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 col1" at position 0 and "Int64\(3\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 76 AS col1, 3 AS col1 +---- +3 +76 query I rowsort SELECT 46 + 74 col1 @@ -38343,8 +38802,12 @@ SELECT + 59 / + 75 AS col1, COUNT ( * ) AS col2 # Datafusion - Expected - -63 # Datafusion - Expected - -73 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-63\) AS col0" at position 0 and "\(\- Int64\(39\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 63 AS col0, - 73, - + 39 AS col0 +---- +-39 +-63 +-73 query I rowsort SELECT ALL - NULLIF ( + 57, + 75 ) @@ -38547,8 +39010,11 @@ SELECT ALL COUNT ( * ) * NULLIF ( + + COUNT ( * ), 86 * - 61 ) # 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 col2" at position 0 and "Int64\(3\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 59 AS col2, 3 AS col2 +---- +3 +59 query II rowsort SELECT ALL + 94 AS col2, 36 - - ( + - 7 ) AS col0 @@ -38674,8 +39140,11 @@ SELECT DISTINCT + MIN ( 62 ) * - - 73 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1040 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- min\(Int64\(\-40\)\)\) \* Int64\(\-26\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MIN ( + - 40 ) * - 26 AS col1, 20 AS col1 +---- +-1040 +20 query I rowsort SELECT DISTINCT + 33 * 40 AS col2 @@ -39121,8 +39590,11 @@ 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\(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\. +query IR valuesort 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 +---- +33 +NULL query III rowsort label-7460 SELECT DISTINCT + COALESCE ( + COUNT ( * ), 89 ) * - 50 + - COALESCE ( - + 41, - + 27 ) AS col0, ( 48 ) AS col2, + - 70 @@ -39134,8 +39606,11 @@ SELECT DISTINCT + COALESCE ( + COUNT ( * ), 89 ) * - 50 + - COALESCE ( - + 41, - # 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\) \* Int64\(1\) AS col0" at position 0 and "\(\- CASE Int64\(\-32\) WHEN Int64\(96\) THEN Int64\(\-97\) ELSE NULL END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 3 * + 1 AS col0, - CASE - 32 WHEN + 96 THEN - 97 ELSE NULL END AS col0 +---- +-3 +NULL query I rowsort SELECT ALL COALESCE ( - + 72, 27 ) * + 34 - + 71 AS col1 @@ -39366,8 +39841,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1769 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* Int64\(29\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 61 * + + 29 AS col1, + COUNT ( * ) AS col1 +---- +1 +1769 query I rowsort label-7506 SELECT DISTINCT + 50 * + 24 * - + COUNT ( * ) + - - 32 AS col1 @@ -39838,8 +40316,11 @@ SELECT DISTINCT - COUNT ( * ) + + + 58 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 "CASE Int64\(45\) WHEN Int64\(\-52\) THEN \(\- coalesce\(Int64\(97\), count\(Int64\(60\)\), Int64\(\-95\)\)\) WHEN Int64\(\-62\) THEN \(\- Int64\(\-40\)\) END AS col0" at position 0 and "Int64\(\-89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CASE 45 WHEN - 52 THEN - COALESCE ( + 97, + + COUNT ( ALL 60 ), - 95 ) WHEN + - 62 THEN - - 40 END AS col0, - 89 AS col0 +---- +-89 +NULL query I rowsort SELECT ALL COALESCE ( + 32, + 79 ) @@ -39860,8 +40341,11 @@ SELECT ALL - 59 + 81 / + 26 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE Int64\(93\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ CASE \(\- Int64\(\-51\)\) WHEN \(\- \(\- Int64\(0\)\)\) / Int64\(\-65\) \+ Int64\(\-43\) \+ Int64\(\-52\) THEN Int64\(26\) WHEN Int64\(38\) \* Int64\(89\) THEN NULL WHEN Int64\(89\) THEN NULL END \* max\(Int64\(45\)\) \+ Int64\(\-38\) \* Int64\(58\) \* Int64\(9\) \+ Int64\(6\) THEN Int64\(82\) \+ Int64\(86\) ELSE Int64\(49\) \+ Int64\(\-24\) \- Int64\(60\) END AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) / \(\- min\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\)\) \* Int64\(56\) \* Int64\(98\) \+ Int64\(32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-35 +NULL query I rowsort label-7600 SELECT DISTINCT - 14 / 74 @@ -39886,8 +40370,11 @@ NULL # 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\(25\) AS col0" at position 0 and "Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 25 AS col0, 16 AS col0 +---- +16 +25 query I rowsort label-7605 SELECT ALL - 60 * - - 30 + - 82 - - 13 * + COUNT ( * ) - - 13 AS col0 @@ -40109,8 +40596,11 @@ 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 col0" at position 0 and "Int64\(\-3\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 2 col0, - 3 AS col0 +---- +-3 +2 query I rowsort label-7647 SELECT - 88 / + - 96 AS col1 @@ -40274,8 +40764,11 @@ SELECT 83 * COALESCE ( - 72, + + 28, - 34 * 79 + + + 57 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, + COUNT ( * ) AS col0 +---- +1 +1 query II rowsort SELECT + 56 AS col2, 88 AS col0 @@ -40372,8 +40865,11 @@ SELECT ALL - SUM ( ALL - + ( - 69 ) ) * 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE \(\- Int64\(45\)\) WHEN \(\- \(\- count\(Int64\(27\)\)\)\) THEN Int64\(\-63\) ELSE Int64\(36\) END\) AS col2" at position 0 and "max\(DISTINCT Int64\(42\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CASE - + 45 WHEN - - COUNT ( + 27 ) THEN - 63 ELSE + 36 END AS col2, MAX ( DISTINCT + 42 ) col2 +---- +-36 +42 query II rowsort label-7697 SELECT - SUM ( ALL - 45 ) + + 80, - 24 AS col1 @@ -40420,8 +40916,11 @@ SELECT ALL 39 / + + 85 * + + 49 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(46\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, 46 AS col0 +---- +1 +46 query II rowsort label-7706 SELECT + - 19, + CAST ( NULL AS INTEGER ) AS col1 @@ -40447,8 +40946,11 @@ SELECT + ( 20 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) \+ Int64\(14\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 7 + + 14 AS col0, 78 AS col0 +---- +7 +78 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -40575,8 +41077,11 @@ SELECT DISTINCT - 45 * + 15 # 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\(23\) WHEN Int64\(91\) \- Int64\(10\) / Int64\(56\) THEN Int64\(\-99\) WHEN \(\- coalesce\(Int64\(77\), Int64\(27\)\)\) THEN NULL END\) \* Int64\(49\) \* Int64\(\-97\) AS col2" at position 0 and "Int64\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CASE 23 WHEN 91 - + 10 / ( + + 56 ) THEN - 99 WHEN - COALESCE ( 77, + 27 ) THEN NULL END * 49 * - 97 AS col2, + 78 AS col2 +---- +78 +NULL query II rowsort label-7735 SELECT + 67 * 83 AS col2, COUNT ( * ) / + - 74 @@ -41063,8 +41568,11 @@ SELECT + 42 + 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 "Int64\(1\) AS col1" at position 0 and "Int64\(\-14\) \* Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 1 AS col1, - 14 * 6 AS col1 +---- +-84 +1 query I rowsort label-7832 SELECT - 94 * - COUNT ( * ) * + + 49 @@ -41734,8 +42242,12 @@ SELECT + - 42 AS col0, 96 # Datafusion - Expected - 81 # Datafusion - Expected - 39 # 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 "Int64\(39\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 81 col0, 39 AS col0, + COUNT ( * ) +---- +1 +39 +81 query II rowsort label-7959 SELECT ALL - + 47 / + 86 AS col2, + 53 @@ -42012,8 +42524,11 @@ SELECT DISTINCT 82 - + 30 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 68 AS col0, ( + 64 ) col0 +---- +64 +68 query I rowsort label-8011 SELECT DISTINCT - 75 / - NULLIF ( 58, + 20 ) @@ -42097,8 +42612,11 @@ SELECT - COUNT ( * ) AS col1, + COUNT ( ALL 1 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(82\)\) AS col1" at position 0 and "nullif\(Int64\(45\), CASE Int64\(\-78\) WHEN \(\- CAST\(Int64\(93\) AS Int32\)\) \- \(\- \(\- count\(Int64\(49\)\)\)\) THEN NULL ELSE Int64\(19\) END \- Int64\(97\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 82 AS col1, NULLIF ( + 45, CASE - 78 WHEN - + CAST ( 93 AS INTEGER ) - - - COUNT ( 49 ) THEN NULL ELSE 19 END - 97 ) AS col1 +---- +-82 +45 query I rowsort label-8027 SELECT + 26 + - - 57 / - 73 * + - 98 + 75 @@ -42599,8 +43117,11 @@ SELECT + + 27 + - 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col2" at position 0 and "CAST\(Int64\(72\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 24 col2, + CAST ( + 72 AS INTEGER ) AS col2 +---- +24 +72 query I rowsort SELECT - + 77 + + 65 * - 78 @@ -42662,8 +43183,11 @@ SELECT 74 + - 69 * + - 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 2006 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "\(\- max\(Int64\(\-59\)\)\) \* Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, - MAX ( ALL - 59 ) * 34 AS col0 +---- +2006 +NULL query II rowsort label-8135 SELECT ALL + 51 col0, - CAST ( NULL AS INTEGER ) AS col1 @@ -43002,8 +43526,11 @@ SELECT - - MAX ( + 84 ) * 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col0" at position 0 and "Int64\(27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 55 AS col0, + 27 AS col0 +---- +-55 +27 query I rowsort label-8201 SELECT + CAST ( + + 39 AS INTEGER ) + - + 62 + + 8 AS col0 @@ -43471,8 +43998,11 @@ SELECT ALL 67 AS col1, 8 + - 96 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - 3249 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col2" at position 0 and "\(\- Int64\(26\)\) \- Int64\(29\) \+ \(\- \(\- Int64\(79\)\)\) \+ Int64\(43\) \* Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 24 AS col2, - ( 26 ) - 29 + - ( - + 79 ) + 43 * 75 AS col2 +---- +24 +3249 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -43751,8 +44281,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( - 77 ) AS col1, - 75 * - 1 * + 58 + - + ( + COUNT ( * ) ) AS col1 +---- +1 +4349 query I rowsort SELECT - ( - ( 56 ) ) @@ -44000,8 +44533,11 @@ SELECT 30 + 8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 77 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \+ Int64\(32\) AS col1" at position 0 and "Int64\(\-16\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 45 + 32 AS col1, - 16 AS col1 +---- +-16 +77 query I rowsort SELECT ( + 13 ) + 67 @@ -44214,8 +44750,11 @@ SELECT 64 + + CAST ( + 27 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- Int64\(46\)\) / \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ) AS col0, - ( + 46 ) / - COUNT ( * ) AS col0 +---- +1 +46 query I rowsort label-8431 SELECT - 21 + - 61 * - - 76 * + 47 - 25 / 14 @@ -44311,8 +44850,11 @@ SELECT - 23 * 81 * - 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 20 AS col1 +---- +1 +20 query I rowsort label-8450 SELECT ALL - 79 * - CAST ( NULL AS INTEGER ) * - 91 + ( - + 77 ) + 1 + + - 27 + ( + 58 ) AS col1 @@ -44505,8 +45047,12 @@ SELECT + 58 + - + 79 * - ( 29 ) AS col2 # Datafusion - Expected - 12 # Datafusion - Expected - 66 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ( + 12 ) col0, + 66 AS col0, + 76 + - + CASE + 68 WHEN COUNT ( * ) * - + 31 THEN - 47 * + 76 * + - 26 END +---- +12 +66 +NULL query I rowsort SELECT ALL 58 * - - ( - 31 ) @@ -44582,8 +45128,11 @@ SELECT ALL 39 / - 94 * - 62 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-83\) \* coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-85\), Int64\(\-95\)\) \+ \(\- min\(DISTINCT Int64\(\-25\)\)\) AS col2" at position 0 and "Int64\(38\) \+ Int64\(\-34\) \+ \(\- CAST\(NULL AS Int32\)\) \* \(\- Int64\(\-68\)\) / Int64\(87\) \* count\(Int64\(1\)\) AS count\(\*\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 83 * COALESCE ( + COUNT ( * ), - 85, - 95 ) + - + MIN ( DISTINCT - 25 ) AS col2, + 38 + + - 34 + - ( CAST ( NULL AS INTEGER ) ) * - - 68 / 87 * COUNT ( * ) + + COUNT ( * ) col2 +---- +-58 +NULL query I rowsort label-8501 SELECT - - NULLIF ( + - CAST ( - 90 AS INTEGER ), - 61 * + 60 ) @@ -45097,8 +45646,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 4260 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col0" at position 0 and "Int64\(\-85\) \+ \(\- Int64\(\-55\)\) \* \(\- Int64\(\-79\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 7 AS col0, - 85 + - - 55 * - - 79 AS col0 +---- +4260 +7 query I rowsort label-8600 SELECT 44 * + - 77 * - + 95 + CAST ( NULL AS INTEGER ) + 27 @@ -45187,8 +45739,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(86\)\) AS col1" at position 0 and "\(\- max\(CAST\(NULL AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 86 AS col1, - MAX ( + + CAST ( NULL AS INTEGER ) ) AS col1 +---- +-86 +NULL query I rowsort SELECT DISTINCT - ( + 12 ) @@ -45363,8 +45918,11 @@ SELECT ALL - 74 + - 1 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -1040 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col2" at position 0 and "Int64\(13\) \* Int64\(\-80\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 16 AS col2, 13 * - 80 AS col2 +---- +-1040 +16 query I rowsort SELECT 61 * 62 + - 73 @@ -45394,8 +45952,11 @@ SELECT 59 + + - ( + ( + 3 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 4 AS col1, 22 AS col1 +---- +22 +4 query I rowsort SELECT DISTINCT + 80 + - 25 @@ -45467,8 +46028,11 @@ SELECT - - COUNT ( * ) - 91 + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) \+ \(\- sum\(Int64\(\-68\)\)\) AS col1" at position 0 and "Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 58 + - SUM ( + - 68 ) AS col1, 74 AS col1 +---- +10 +74 query I rowsort label-8671 SELECT - - 73 * - NULLIF ( - SUM ( - + 62 ), + 8 * 53 ) + + 90 AS col1 @@ -45578,8 +46142,11 @@ SELECT ALL 93 + + 58 AS col0, - 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-61\)\) AS col2" at position 0 and "\(\- Int64\(15\)\) \+ count\(Int64\(68\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( ALL + - 61 ) col2, - ( + 15 ) + + COUNT ( ALL 68 ) AS col2 +---- +-14 +-61 query I rowsort SELECT ALL 69 + 78 @@ -45645,8 +46212,11 @@ SELECT ALL + COUNT ( * ) * 6 * - 26 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12716 # Datafusion - Expected - 67 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \* Int64\(76\) \- Int64\(64\) \* Int64\(93\) AS col0" at position 0 and "Int64\(67\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 89 * + 76 - + 64 * 93 AS col0, 67 AS col0 +---- +-12716 +67 query I rowsort label-8705 SELECT - MAX ( + 11 ) @@ -45796,8 +46366,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-27\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 27 col1, + 19 AS col1 +---- +-27 +19 query I rowsort label-8733 SELECT + SUM ( ALL - 49 ) * 93 @@ -45867,8 +46440,11 @@ SELECT COUNT ( * ) / + - 85 - + 42 - + 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 322 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col0" at position 0 and "Int64\(14\) \* Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 col0, + 14 * + 23 AS col0 +---- +322 +86 query I rowsort SELECT - 78 + - 43 * + - 68 AS col1 @@ -46279,8 +46855,11 @@ SELECT - 45 * - COALESCE ( + 16, 31, - 38 * - 18 * 96, - 85 + + 61 ) * 52 + - + # Datafusion - Datafusion expected results: # Datafusion - Expected - -105 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(58\)\) \* Int64\(\-2\) \+ Int64\(11\) AS col1" at position 0 and "Int64\(\-20\) \* \(\- count\(Int64\(\-51\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MIN ( + + 58 ) * - 2 + 11 AS col1, - 20 * - COUNT ( + - 51 ) col1 +---- +-105 +20 query I rowsort label-8825 SELECT + 15 * - - COUNT ( * ) @@ -46448,14 +47027,20 @@ SELECT ALL ( 70 ) + - - 49 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 "\(\- count\(Int64\(\-9\)\)\) \+ Int64\(\-42\) \- Int64\(\-89\) AS col0" at position 0 and "Int64\(\-10\) \+ Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( - 9 ) + + - 42 - - 89 AS col0, - 10 + + 11 AS col0 +---- +1 +46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) \+ Int64\(\-25\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 88 + - 25 AS col0, + COUNT ( * ) AS col0 +---- +1 +63 query I rowsort SELECT + 53 - - 56 AS col2 @@ -46871,8 +47456,11 @@ SELECT DISTINCT - - COUNT ( * ) * - 86 + - 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - -16 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(\-16\)\) AS col1" at position 0 and "\(\- coalesce\(Int64\(\-23\), Int64\(\-60\), Int64\(38\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( DISTINCT - 16 ) AS col1, - COALESCE ( - 23, - 60, + 38 ) AS col1 +---- +-16 +23 query I rowsort label-8937 SELECT DISTINCT + 40 + - CASE + 92 WHEN + COUNT ( * ) THEN NULL ELSE + COUNT ( * ) END AS col1 @@ -46892,8 +47480,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * 71 AS col2, + 49 + - - 63 * + + 63 + + - COUNT ( * ) AS col2 +---- +4017 +71 query I rowsort SELECT + 28 * - 50 @@ -47387,8 +47978,11 @@ SELECT ALL ( 85 ) * + + CAST ( + 16 AS INTEGER ) * - - 6 + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- nullif\(Int64\(\-94\), \(\- sum\(Int64\(60\)\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, - NULLIF ( - 94, - SUM ( ALL + + 60 ) ) AS col2 +---- +1 +94 query I rowsort SELECT + 9 + - 66 + + 17 * 18 * 50 * - - 36 @@ -47489,8 +48083,11 @@ SELECT + COUNT ( * ) AS col1, - COUNT ( ALL + + ( - 72 ) ) + + 35 AS col2 # 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 "Int64\(37\) / \(\- coalesce\(Int64\(40\), Int64\(86\), \(\- sum\(Int64\(\-83\)\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 8 AS col1, 37 / - + COALESCE ( + 40, 86, ( - SUM ( - 83 ) ) ) AS col1 +---- +0 +8 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -47653,8 +48250,12 @@ SELECT + 73 - - - 54 AS col2 # Datafusion - Expected - -23 # Datafusion - Expected - 1 # Datafusion - Expected - 112 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(\-72\)\) AS col2" at position 1 and "Int64\(33\) \+ Int64\(79\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 31 + 8, COUNT ( - 72 ) AS col2, + 33 + + 79 AS col2 +---- +-23 +1 +112 query II rowsort label-9086 SELECT ALL COUNT ( * ) AS col0, 39 AS col1 @@ -48111,14 +48712,20 @@ SELECT - 87 * 59 - + 6 - 92 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 649 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-11\) \* Int64\(\-59\) AS col0" at position 0 and "\(\- Int64\(11\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 11 * + - 59 AS col0, + ( + ( - ( 11 ) ) ) AS col0 +---- +-11 +649 # Datafusion - Datafusion expected results: # Datafusion - Expected - 44 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) AS col1" at position 0 and "CAST\(Int64\(0\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + 44 ) AS col1, + CAST ( + - 0 AS INTEGER ) AS col1 +---- +0 +44 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I]I @@ -48197,8 +48804,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-69\)\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - - 69 ) AS col2, COUNT ( * ) AS col2 +---- +-69 +1 query I rowsort SELECT ALL + 57 + 70 + - + 86 AS col0 @@ -48229,8 +48839,11 @@ SELECT COUNT ( * ) - - ( - 29 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 AS col1, COUNT ( * ) * COUNT ( * ) AS col1 +---- +1 +29 query I rowsort label-9196 SELECT DISTINCT + 88 + COUNT ( * ) @@ -48727,8 +49340,11 @@ SELECT + 38 * - 29 * 78 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col2" at position 0 and "Int64\(2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 AS col2, 2 AS col2 +---- +2 +63 query I rowsort label-9291 SELECT DISTINCT 85 + + 89 * + COUNT ( DISTINCT - 98 ) * - - 36 * COUNT ( * ) + + - 86 col2 @@ -48846,8 +49462,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, 60 AS col0 +---- +-1 +60 query I rowsort SELECT 50 + - 55 - 7 + + 84 AS col1 @@ -50497,8 +51116,12 @@ SELECT - + SUM ( ALL 11 ) * + + 54 # Datafusion - Expected - 62 # Datafusion - Expected - NULL # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col2" at position 0 and "Int64\(67\) \+ Int64\(\-83\) \+ \(\- sum\(DISTINCT CAST\(NULL AS Int32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 62 AS col2, + 67 + - 83 + + ( - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) AS col2, + 71 AS col1 +---- +62 +71 +NULL query I rowsort label-9631 SELECT + COUNT ( * ) / 90 + 70 * + 49 * - - 38 AS col2 @@ -50513,8 +51136,11 @@ SELECT + + ( + NULLIF ( + 93, - 28 * + 3 + - COUNT ( * ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2155 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \* CAST\(\(\- Int64\(\-27\)\) AS Int32\) \- \(\- Int64\(\-86\)\) AS col1" at position 0 and "Int64\(20\) / \(\- coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(12\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 83 * + CAST ( - + ( + - 27 ) AS INTEGER ) - - ( - 86 ) AS col1, 20 / - COALESCE ( - COUNT ( * ), + 12 ) AS col1 +---- +20 +2155 query I rowsort SELECT - NULLIF ( 15, - 45 ) * + 79 @@ -50545,8 +51171,11 @@ SELECT DISTINCT CAST ( CAST ( 65 AS INTEGER ) AS INTEGER ) * + - 22 - - 32 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 254 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* coalesce\(Int64\(18\), \(\- Int64\(99\)\)\) \+ Int64\(92\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 9 * + COALESCE ( 18, + - ( + 99 ) ) + + 92 col2, COUNT ( * ) AS col2 +---- +1 +254 query I rowsort label-9640 SELECT ALL - CAST ( NULL AS INTEGER ) * + 29 + + 63 @@ -50734,8 +51363,11 @@ SELECT DISTINCT + + 14 * - 22 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \+ Int64\(78\) AS col1" at position 0 and "CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 5 + + 78 AS col1, CAST ( NULL AS INTEGER ) AS col1 +---- +73 +NULL query I rowsort label-9675 SELECT DISTINCT + - COUNT ( * ) + - MAX ( ALL + 43 ) col2 @@ -51001,8 +51633,11 @@ SELECT ALL 84 col2, 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - 29 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(36\) AS col1" at position 0 and "sum\(DISTINCT \(\- Int64\(\-29\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 36 AS col1, SUM ( DISTINCT - - 29 ) AS col1 +---- +29 +36 query I rowsort label-9726 SELECT DISTINCT MAX ( ALL 71 ) AS col2 @@ -51065,8 +51700,11 @@ SELECT 6 - + - ( - 43 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(DISTINCT Int64\(2\)\)\) \* Int64\(43\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( DISTINCT + 2 ) * + + ( 43 ) AS col2, + 98 AS col2 +---- +-43 +98 query I rowsort SELECT DISTINCT + + 34 + + + 54 @@ -51138,8 +51776,11 @@ SELECT + NULLIF ( 40, + - COUNT ( * ) ) * 93 - - - 24 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3960 # Datafusion - Expected - 2733 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) / Int64\(\-53\) \+ Int64\(45\) \* Int64\(\-88\) AS col1" at position 0 and "Int64\(\-2\) / count\(Int64\(16\)\) \* \(\- Int64\(\-13\)\) \+ Int64\(\-89\) \* Int64\(\-30\) \+ nullif\(Int64\(89\), Int64\(\-16\) \+ CAST\(NULL AS Int32\) \* Int64\(72\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 0 / - 53 + + + 45 * - 88 AS col1, - 2 / COUNT ( + 16 ) * - ( + - 13 ) + - 89 * - 30 + NULLIF ( + 89, - 16 + CAST ( NULL AS INTEGER ) * ( + 72 ) ) AS col1 +---- +-3960 +2733 query II rowsort label-9752 SELECT COALESCE ( + ( - + COUNT ( * ) ), - 50 ) AS col2, 76 + + + 59 AS col1 @@ -51429,8 +52070,11 @@ 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\(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\. +query RI valuesort 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 +---- +23 +NULL query II rowsort label-9805 SELECT CASE + COUNT ( * ) WHEN - COUNT ( * ) * - 89 - + 65 THEN NULL ELSE - + 20 END AS col1, - 13 AS col0 @@ -51456,8 +52100,11 @@ SELECT DISTINCT COUNT ( * ) / + 27 * + + 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1534 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* Int64\(\-31\) \+ Int64\(47\) AS col0" at position 0 and "Int64\(0\) \* Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 51 * - 31 + 47 col0, 0 * 16 AS col0 +---- +-1534 +0 query I rowsort label-9810 SELECT + 54 / + 77 @@ -51681,8 +52328,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COALESCE ( 7, - COUNT ( * ), - - 42 + - COUNT ( * ) * 35 * + 59 * - 59 ) AS col2, - 61 AS col2 +---- +-61 +-7 query I rowsort SELECT ALL - 65 * 10 @@ -52391,8 +53041,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2425 # Datafusion - Expected - 202 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* Int64\(25\) AS col0" at position 0 and "Int64\(60\) \+ Int64\(39\) \* Int64\(5\) \+ Int64\(\-53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 97 * 25 AS col0, 60 + + + 39 * 5 + - 53 AS col0 +---- +202 +2425 query I rowsort label-9988 SELECT ALL - 67 / - - 8 diff --git a/data/sqlite/random/expr/slt_good_96.slt b/data/sqlite/random/expr/slt_good_96.slt index f4bf651..b04ceb7 100644 --- a/data/sqlite/random/expr/slt_good_96.slt +++ b/data/sqlite/random/expr/slt_good_96.slt @@ -249,8 +249,11 @@ SELECT + 8 * 7 * 85 + + 51 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 97 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-97\)\) AS col1" at position 0 and "Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 97 AS col1, 61 AS col1 +---- +61 +97 query I rowsort label-42 SELECT 84 * - 52 + - COUNT ( DISTINCT 79 ) + + + 70 AS col2 @@ -260,8 +263,11 @@ SELECT 84 * - 52 + - COUNT ( DISTINCT 79 ) + + + 70 AS col2 # 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 "Int64\(9\) AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 9 AS col2, 46 AS col2 +---- +46 +9 query I rowsort label-44 SELECT COUNT ( + 44 ) + 56 @@ -336,8 +342,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 AS col1, + 60 * - - COUNT ( * ) AS col1 +---- +60 +80 query I rowsort label-59 SELECT CAST ( NULL AS INTEGER ) + + + ( COUNT ( DISTINCT - 35 ) ) @@ -410,8 +419,11 @@ SELECT - 59 col2, 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-80\) \+ Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) col2, - 80 + 52 AS col2 +---- +-28 +1 query I rowsort label-73 SELECT ALL - CASE + 46 WHEN - + COUNT ( * ) * 79 THEN - - 70 * + 50 * 81 * + 50 + - 52 + - 96 WHEN - 99 THEN NULL END AS col1 @@ -556,8 +568,12 @@ NULL # Datafusion - Expected - -6068 # Datafusion - Expected - 44 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) \* Int64\(\-82\) AS col2" at position 0 and "Int64\(49\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL 74 * - 82 AS col2, 44 AS col0, 49 AS col2 +---- +-6068 +44 +49 query I rowsort label-101 SELECT + COUNT ( * ) * - + 2 + + 2 @@ -1084,8 +1100,11 @@ SELECT ALL - ( + - 22 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(Int64\(\-87\)\)\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - SUM ( - 87 ) col0, 81 AS col0 +---- +81 +87 query I rowsort SELECT 32 + - 48 + + - 21 * - 26 * + + 67 AS col0 @@ -1873,8 +1892,11 @@ SELECT - ( + COALESCE ( - + 30, 46 + - 47 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 72 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 72 AS col2, 66 col2 +---- +66 +72 query I rowsort label-352 SELECT + COUNT ( * ) * - + 85 @@ -1981,8 +2003,11 @@ SELECT ALL - 49 / 32 + + + 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\)" at position 0 and "CAST\(Int64\(0\) AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 0, + CAST ( + - 0 AS INTEGER ) +---- +0 +0 query I rowsort label-373 SELECT DISTINCT + + COUNT ( * ) / 46 + + 96 @@ -2185,8 +2210,11 @@ SELECT ALL - 15 * 43 AS col2 # 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\(46\) AS col2" at position 0 and "Int64\(\-8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 AS col2, - 8 AS col2 +---- +-8 +46 query I rowsort SELECT ALL + 51 - - 34 @@ -2196,8 +2224,11 @@ SELECT ALL + 51 - - 34 # 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 "\(\- nullif\(count\(\(\- Int64\(25\)\)\), Int64\(\-5\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 58 AS col0, - NULLIF ( + + COUNT ( - + 25 ), - 5 ) col0 +---- +-1 +58 query I rowsort label-414 SELECT ALL - MAX ( ALL + 61 ) AS col0 @@ -2239,8 +2270,11 @@ SELECT 60 + + + 46 * + 69 + - 98 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -81 # Datafusion - Expected - -50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-81\) AS col0" at position 0 and "Int64\(\-50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 81 col0, - 50 AS col0 +---- +-50 +-81 query I rowsort label-422 SELECT DISTINCT MAX ( ALL 87 ) @@ -2554,8 +2588,12 @@ 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\(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\. +query III valuesort SELECT ALL 35 * 68 * - - 14 + - + 91 + COUNT ( * ), 27 * - - COUNT ( * ) * 99 AS col1, + - 93 * - 28 + + 12 + + - COUNT ( 4 ) AS col1 +---- +2615 +2673 +33230 query I rowsort label-482 SELECT + CAST ( NULL AS INTEGER ) + + 96 @@ -2635,8 +2673,11 @@ SELECT 87 * - 88 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(90\)\) / Int64\(4\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + SUM ( DISTINCT 90 ) / 4 AS col1, COUNT ( * ) AS col1 +---- +1 +22 query I rowsort SELECT + 16 + + + 31 @@ -2702,14 +2743,20 @@ SELECT 54 col0, + 83 # 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 "Int64\(9\) AS col1" at position 0 and "Int64\(19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 9 AS col1, 19 col1 +---- +19 +9 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col0" at position 0 and "Int64\(\-28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 31 AS col0, - 28 col0 +---- +-28 +-31 query I rowsort SELECT 70 * 44 @@ -3111,8 +3158,11 @@ SELECT - 24 + COUNT ( * ) + MAX ( + 18 ) + - 95 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9037 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* Int64\(98\) \+ Int64\(21\) AS col0" at position 0 and "CASE \(\- min\(DISTINCT Int64\(\-25\)\)\) WHEN Int64\(1\) THEN Int64\(\-58\) ELSE Int64\(0\) \+ Int64\(0\) END \- \(\- Int64\(\-53\)\) \- Int64\(\-82\) \- Int64\(\-12\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 92 * + 98 + 21 AS col0, CASE + ( - MIN ( DISTINCT - 25 ) ) WHEN + 1 THEN - 58 ELSE + 0 + 0 END - - - 53 - + - 82 - - 12 col0 +---- +41 +9037 query I rowsort SELECT + - ( 59 ) @@ -3158,8 +3208,11 @@ 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\(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\. +query II valuesort 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 +---- +78 +NULL query I rowsort SELECT ALL - 77 * + ( 3 ) @@ -3239,8 +3292,11 @@ SELECT DISTINCT + 16 + - 74 AS col1, 24 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -127 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \+ Int64\(\-65\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 62 + - 65 AS col2, + CAST ( NULL AS INTEGER ) col2 +---- +-127 +NULL query I rowsort label-612 SELECT ALL SUM ( DISTINCT + 90 ) / - 73 AS col2 @@ -3402,8 +3458,11 @@ SELECT - 47 col2, - 59 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col0" at position 0 and "Int64\(78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 49 AS col0, 78 AS col0 +---- +49 +78 query I rowsort label-643 SELECT 95 + - 68 * - SUM ( ALL + + 13 ) AS col2 @@ -3506,8 +3565,11 @@ SELECT 79 AS col2, + 77 # Datafusion - Datafusion expected results: # Datafusion - Expected - -68 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(68\)\) AS col0" at position 0 and "Int64\(91\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 68 AS col0, 91 AS col0 +---- +-68 +91 query I rowsort SELECT ( - 2 ) * + 53 * - 6 @@ -4031,8 +4093,11 @@ SELECT ALL 25 AS col1, + 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col1" at position 0 and "Int64\(\-86\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 AS col1, - 86 AS col1 +---- +-86 +60 query I rowsort label-763 SELECT 39 / 73 * + - 80 AS col2 @@ -4057,8 +4122,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS 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 II valuesort SELECT ALL - COUNT ( * ) AS col1, + 25 + 66 AS col1 +---- +-1 +91 query I rowsort label-768 SELECT DISTINCT 96 + - 22 / COUNT ( * ) * NULLIF ( + CAST ( + NULLIF ( + CAST ( - COUNT ( * ) AS INTEGER ), + 42 * + 65 * 43 * + 6 - - + 13 - + COUNT ( * ) / SUM ( - + 93 ) + - 53 ) AS INTEGER ), - 4 - - - 17 / + COUNT ( * ) + + + 26 ) * - 56 @@ -4104,8 +4172,11 @@ SELECT ALL COUNT ( * ) * 65 * + 52 col2, - ( - - 81 ) # 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\(DISTINCT Int64\(\-5\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 51 AS col2, COUNT ( DISTINCT - 5 ) AS col2 +---- +-51 +1 query I rowsort SELECT ALL + COALESCE ( + 10, - 57 ) - + 64 AS col0 @@ -4359,8 +4430,11 @@ SELECT + 36 * COUNT ( * ) * + + 13 AS col1, + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 AS col2, + 85 AS col2 +---- +-64 +85 query I rowsort SELECT ALL + + 67 - 69 * - NULLIF ( + + 74, - 25 * - + 44 ) @@ -4396,8 +4470,11 @@ SELECT ALL + + 87 * 73 + - 22 # 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 "Int64\(76\) AS col0" at position 0 and "Int64\(35\) \+ Int64\(30\) \+ Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 76 AS col0, 35 + 30 + + 79 AS col0 +---- +144 +76 query I rowsort label-832 SELECT - COUNT ( - 16 ) AS col1 @@ -4572,8 +4649,11 @@ SELECT DISTINCT - 40 / - 35 * COUNT ( + 58 ) + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -2024 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) \+ Int64\(47\) AS col2" at position 0 and "Int64\(36\) \* Int64\(\-44\) \+ Int64\(\-40\) \* Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 29 + + 47 AS col2, 36 * - 44 + - 40 * 11 col2 +---- +-2024 +18 query I rowsort label-866 SELECT DISTINCT + - ( + + 98 ) + + ( + - COUNT ( DISTINCT + 58 ) ) @@ -4706,8 +4786,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-41\) \+ Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 78 * + 72 AS col0, COUNT ( * ) + - 41 + - 56 AS col0 +---- +-5616 +-96 query I rowsort SELECT + 47 * - 37 * - 80 AS col1 @@ -4927,8 +5010,12 @@ 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\(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\. +query III valuesort SELECT + 98 + + 47 + - 51 AS col2, + 79 * + ( - - COUNT ( * ) ) AS col1, + 55 * - - COUNT ( * ) AS col1 +---- +55 +79 +94 query I rowsort SELECT + + 15 * + 65 AS col2 @@ -4938,8 +5025,11 @@ SELECT + + 15 * + 65 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -63 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \+ Int64\(\-88\) AS col1" at position 0 and "Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 25 + + + ( - 88 ) AS col1, 68 AS col1 +---- +-63 +68 query I rowsort label-936 SELECT ALL 95 + 6 + + COUNT ( * ) @@ -4949,8 +5039,11 @@ SELECT ALL 95 + 6 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) 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 II valuesort SELECT - 46 AS col0, - 16 + + 43 AS col0 +---- +-46 +27 query I rowsort label-938 SELECT - CASE - 13 WHEN - 51 / 97 + - - 41 / + 58 * - 54 - COUNT ( * ) + - - 86 THEN NULL WHEN + 4 * - 69 * - - ( - + 1 ) * 66 + 71 THEN - - CASE MIN ( ALL + 13 ) WHEN + 30 THEN 97 WHEN 90 THEN 5 + - + 16 + - - 29 END END AS col0 @@ -5698,8 +5791,11 @@ SELECT ALL 48 + - - 37 + + MIN ( ALL - 22 ) * - MAX ( + 13 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col2" at position 0 and "Int64\(45\) \+ \(\- nullif\(Int64\(54\), Int64\(37\)\)\) \+ Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 12 AS col2, + 45 + - NULLIF ( + 54, 37 ) + 52 AS col2 +---- +-12 +43 query I rowsort SELECT - 19 + 12 AS col0 @@ -6258,8 +6354,11 @@ SELECT 83 + + 12 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 1845 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) AS col2" at position 0 and "Int64\(\-41\) \* Int64\(\-45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 37 AS col2, - 41 * - 45 AS col2 +---- +1845 +37 query I rowsort label-1191 SELECT ALL 25 * 21 * MIN ( + 6 ) * + 56 - + - 5 AS col1 @@ -6285,8 +6384,11 @@ SELECT CAST ( AVG ( - 73 ) AS INTEGER ) / COUNT ( * ) * 84 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60689 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) \* Int64\(31\) \* Int64\(35\) \+ \(\- Int64\(\-71\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 56 * + 31 * 35 + - - 71 AS col1, + COUNT ( * ) AS col1 +---- +-60689 +1 query I rowsort SELECT DISTINCT - ( - 79 ) AS col0 @@ -6424,8 +6526,11 @@ SELECT ALL + 28 * + 56 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- Int64\(16\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, - ( + 16 ) AS col0 +---- +-16 +1 query I rowsort label-1223 SELECT DISTINCT - 0 * + 95 + + COUNT ( * ) AS col2 @@ -6885,8 +6990,11 @@ SELECT + 59 + - COUNT ( * ) AS col2, 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \+ nullif\(Int64\(\-82\), Int64\(1\)\) AS col2" at position 0 and "Int64\(29\) / Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 72 + NULLIF ( - 82, + 1 ) AS col2, + 29 / 6 AS col2 +---- +-10 +4 query I rowsort label-1309 SELECT ALL COUNT ( * ) / 18 AS col1 @@ -7403,8 +7511,11 @@ SELECT 46 * 46 / - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) \- \(\- Int64\(\-15\)\) \* CAST\(NULL AS Int32\) \* Int64\(66\) \+ Int64\(4\) \+ Int64\(5\) \* Int64\(30\) AS col1" at position 0 and "Int64\(\-44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 82 - - - 15 * CAST ( NULL AS INTEGER ) * + 66 + + + ( + + 4 ) + 5 * 30 AS col1, - 44 AS col1 +---- +-44 +NULL query II rowsort SELECT 71 * - 88 AS col0, 34 AS col1 @@ -7585,8 +7696,11 @@ SELECT + 48 - 14 # 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\(\-20\) AS col2" at position 0 and "Int64\(\-26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 20 AS col2, - 26 AS col2 +---- +-20 +-26 query II rowsort SELECT + 92 + - ( - 65 ) AS col2, - 73 col0 @@ -8102,8 +8216,11 @@ 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\(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\. +query II valuesort SELECT CASE 9 WHEN + 58 THEN ( - COUNT ( * ) ) ELSE - 58 END col0, 7 AS col0 +---- +-58 +7 query II rowsort label-1540 SELECT SUM ( ALL 60 ) AS col1, + 45 * 63 + 98 AS col0 @@ -8130,8 +8247,11 @@ SELECT DISTINCT - 49, - 93 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col1" at position 0 and "CASE count\(Int64\(1\)\) AS count\(\*\) WHEN CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* count\(Int64\(1\)\) AS count\(\*\) THEN NULL ELSE \(\- Int64\(10\)\) \* \(\- Int64\(9\)\) \* Int64\(80\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-19\) \+ CAST\(NULL AS Int32\) \* CASE nullif\(Int64\(90\), Int64\(22\) / Int64\(9\) \+ Int64\(89\)\) WHEN Int64\(17\) / CASE CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(32\) ELSE Int64\(6\) END THEN Int64\(87\) WHEN Int64\(72\) \* Int64\(90\) \+ CASE Int64\(39\) WHEN count\(Int64\(1\)\) AS count\(\*\) \- Int64\(40\) THEN NULL ELSE Int64\(34\) END \* max\(Int64\(\-43\) \+ Int64\(89\) \* Int64\(83\)\) THEN Int64\(\-4\) \* CASE Int64\(13\) \* \(\- CAST\(NULL AS Int32\)\) WHEN Int64\(22\) THEN Int64\(65\) END \+ count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(19\) / Int64\(35\) \+ Int64\(98\) THEN NULL END \- Int64\(77\) \* Int64\(65\) END \+ Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-92 +NULL query I rowsort SELECT - 1 * - 31 @@ -8212,8 +8332,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - MAX ( + - 50 ) AS col0, 29, - COUNT ( * ) AS col0 +---- +-1 +29 +50 query I rowsort SELECT ALL - 45 * - 33 col1 @@ -8264,8 +8388,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) + 10 * - 1 col2, 37 AS col2 +---- +-9 +37 query I rowsort label-1571 SELECT - COUNT ( * ) * + - COUNT ( * ) / 88 * - 46 + 94 + 50 AS col2 @@ -8321,8 +8448,11 @@ SELECT + COUNT ( * ) * - ( 74 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - -281880 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 0 and "Int64\(\-81\) \* Int64\(60\) \* Int64\(58\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 58 AS col1, - 81 * 60 * 58 col1 +---- +-281880 +58 query I rowsort label-1581 SELECT ALL + CASE CAST ( NULL AS INTEGER ) WHEN + + ( 1 ) THEN - + 18 - - + SUM ( - 39 ) WHEN + + 47 THEN NULL WHEN + 24 THEN NULL END AS col2 @@ -8332,8 +8462,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -468 # Datafusion - Expected - 90 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \* Int64\(\-9\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 52 ) * - 9 AS col2, 90 AS col2 +---- +-468 +90 query II rowsort SELECT DISTINCT + 22 col0, 61 AS col1 @@ -8355,8 +8488,11 @@ SELECT NULLIF ( - ( 35 ), + 90 / + COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col2" at position 0 and "Int64\(\-60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 67 AS col2, - 60 AS col2 +---- +-60 +67 query I rowsort label-1587 SELECT - + 63 / 81 + + - COUNT ( * ) + 82 @@ -8728,8 +8864,11 @@ SELECT DISTINCT - 22 + 12 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1259 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \+ Int64\(\-22\) \* \(\- Int64\(\-60\)\) AS col0" at position 0 and "Int64\(24\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 61 + + - 22 * - - 60 AS col0, 24 AS col0 +---- +-1259 +24 query I rowsort SELECT ALL + 89 + - 6 @@ -8769,8 +8908,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(80\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 85 AS col0, 23 * - COUNT ( * ) * 80 * - - COUNT ( * ) AS col0 +---- +-1840 +85 query I rowsort SELECT DISTINCT 84 - 13 AS col0 @@ -9174,8 +9316,11 @@ SELECT ALL ( - - NULLIF ( + 5, 97 * + - 8 ) ) + + ( - + 64 ) * + + 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 3 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) AS col0" at position 0 and "CAST\(NULL AS Int32\) / Int64\(\-51\) \* Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 3 AS col0, CAST ( NULL AS INTEGER ) / - 51 * - 60 AS col0 +---- +3 +NULL query II rowsort label-1743 SELECT 43, - CASE + 83 WHEN + COUNT ( * ) * + 51 * - COUNT ( 94 ) THEN - 3 WHEN + 53 THEN NULL ELSE NULL END AS col1 @@ -9192,8 +9337,11 @@ SELECT - 5, 26 / 9 - - 75 + 89 * + 29 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) AS col1" at position 0 and "min\(DISTINCT Int64\(\-31\)\) \+ Int64\(\-2\) \* Int64\(28\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 7 AS col1, + MIN ( DISTINCT + - 31 ) + + - 2 * 28 AS col1 +---- +-7 +-87 query I rowsort label-1746 SELECT DISTINCT + COUNT ( * ) + - NULLIF ( + COUNT ( * ), - 86 + - COUNT ( ALL - 6 ) ) @@ -9246,8 +9394,11 @@ SELECT + - NULLIF ( 21, - 76 + - 79 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \+ Int64\(96\) / \(\- CAST\(NULL AS Int32\)\) / Int64\(79\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 + 96 / - CAST ( NULL AS INTEGER ) / + 79 AS col0, COUNT ( * ) AS col0 +---- +1 +NULL query I rowsort SELECT - 80 * + + 43 + - - 28 - 20 @@ -9289,8 +9440,11 @@ SELECT 21 + COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) AS col0 +---- +1 +NULL query I rowsort label-1764 SELECT + 57 * - + COUNT ( * ) @@ -9619,8 +9773,11 @@ SELECT - CAST ( - COUNT ( DISTINCT 66 ) AS INTEGER ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 4 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 57 AS col2, + 4 AS col2 +---- +4 +57 query I rowsort label-1828 SELECT DISTINCT 58 * - CASE - - COALESCE ( + + CAST ( NULL AS INTEGER ), 17 * - 79 ) WHEN - 92 - - - 98 + - - 34 - - 41 + - 39 - + ( + + 98 ) * + 33 * 65 * + - ( + + COUNT ( * ) ) * 83 * + COUNT ( * ) * + 61 THEN NULL WHEN + + ( + COALESCE ( 22, 33 ) ) THEN + + COUNT ( - 9 ) / + 25 - - 29 END @@ -9645,8 +9802,11 @@ SELECT + 34 * COALESCE ( - 72, - NULLIF ( + COUNT ( + 43 ), - - 64 ) + + + 58 * # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 64 AS col2, 71 AS col2 +---- +64 +71 query I rowsort SELECT + 24 + + 79 * + 40 AS col0 @@ -9693,8 +9853,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + COUNT ( * ) + 44 AS col0, 49 / + 21 AS col0 +---- +2 +45 query I rowsort label-1842 SELECT DISTINCT COALESCE ( - - 84, + 89 / 80, - 75 + + - 89 ) @@ -9837,8 +10000,11 @@ SELECT 73 / 20 + 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5046 # Datafusion - Expected - -3492 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-58\) \* \(\- Int64\(87\)\) AS col2" at position 0 and "Int64\(36\) \* Int64\(\-97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 58 * - + 87 AS col2, 36 * - 97 AS col2 +---- +-3492 +5046 query I rowsort SELECT + 49 * + + 74 AS col0 @@ -10291,8 +10457,11 @@ 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\(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\. +query II valuesort SELECT - 83 * - CASE 67 WHEN - + 75 THEN COUNT ( * ) * 82 ELSE - COALESCE ( - 7, + 60 * + MIN ( 88 ) ) END AS col1, 78 * - 24 AS col1 +---- +-1872 +581 query II rowsort label-1955 SELECT + NULLIF ( + 93, - CASE 88 WHEN - 19 + + NULLIF ( + - 90, - - 18 ) + + + COUNT ( * ) THEN 14 END ), - 5 - 79 AS col2 @@ -10303,8 +10472,11 @@ SELECT + NULLIF ( + 93, - CASE 88 WHEN - 19 + + NULLIF ( + - 90, - - 18 ) + + + # 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\) AS col1" at position 0 and "Int64\(\-97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 95 AS col1, - 97 AS col1 +---- +-97 +95 query I rowsort label-1957 SELECT + COUNT ( * ) + + + 80 AS col2 @@ -10574,8 +10746,11 @@ SELECT - 52 * - 32 # 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\)\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + + 87 ) AS col2, + 89 col2 +---- +-87 +89 query II rowsort SELECT - 36, + 12 * + - 29 AS col1 @@ -10780,8 +10955,11 @@ SELECT + 16 * - - 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) \+ \(\- Int64\(39\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 4 + - + 39 AS col2, + COUNT ( * ) - - CAST ( NULL AS INTEGER ) col2 +---- +-35 +NULL query II rowsort SELECT ALL - 59 + - 75 AS col0, 89 @@ -11008,8 +11186,11 @@ SELECT COUNT ( 85 ) + - 91 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) \* CASE max\(Int64\(63\)\) WHEN CAST\(NULL AS Int32\) \* Int64\(\-77\) \+ Int64\(\-10\) THEN NULL WHEN Int64\(\-41\) \+ Int64\(\-70\) \* \(\- avg\(DISTINCT Int64\(26\)\)\) THEN NULL WHEN \(\- Int64\(\-86\)\) THEN NULL WHEN Int64\(\-90\) \* Int64\(\-74\) THEN NULL WHEN Int64\(\-95\) THEN Int64\(56\) \* Int64\(43\) END AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 64 * CASE + MAX ( ALL 63 ) WHEN CAST ( NULL AS INTEGER ) * - 77 + - 10 THEN NULL WHEN - 41 + + - 70 * - AVG ( DISTINCT + + 26 ) THEN NULL WHEN - - 86 THEN NULL WHEN - 90 * - 74 THEN NULL WHEN - 95 THEN + 56 * 43 END AS col1, 32 AS col1 +---- +32 +NULL query I rowsort label-2089 SELECT 94 / + - 62 @@ -11437,14 +11618,20 @@ SELECT ( - + 13 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -73 # Datafusion - Expected - -14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-73\) AS col2" at position 0 and "Int64\(55\) / Int64\(20\) \- Int64\(16\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 73 AS col2, + ( + 55 ) / + 20 - + + 16 AS col2 +---- +-14 +-73 # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(\(\- nullif\(\(\- Int64\(30\)\), \(\- nullif\(Int64\(\-81\), Int64\(\-53\) \+ CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\)\) \+ Int64\(\-96\)\)\) AS Int32\)\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( + - NULLIF ( - + 30, - NULLIF ( - 81, - 53 + CAST ( - COUNT ( * ) AS INTEGER ) ) + - 96 ) AS INTEGER ) AS col2, - COUNT ( * ) AS col2 +---- +-1 +-30 query I rowsort label-2173 SELECT ALL + 1 * - - 11 / ( + COUNT ( * ) ) * - - 44 * CAST ( NULL AS INTEGER ) + - COUNT ( * ) * + 0 + - 39 AS col1 @@ -11964,8 +12151,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -47 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-47\)\)\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( - 47 ) AS col0, + 35 AS col0 +---- +-47 +35 query I rowsort label-2271 SELECT - ( - 1 ) * - - MAX ( - + ( + 48 ) ) AS col2 @@ -11975,8 +12165,11 @@ SELECT - ( - 1 ) * - - MAX ( - + ( + 48 ) ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1364 # Datafusion - Expected - 157 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \* Int64\(22\) AS col0" at position 0 and "Int64\(98\) \+ Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 62 * 22 AS col0, 98 + 59 AS col0 +---- +-1364 +157 query I rowsort label-2273 SELECT - - MIN ( DISTINCT - - 95 ) @@ -11996,8 +12189,11 @@ SELECT - SUM ( - 6 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2117 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) \* Int64\(\-83\) \- Int64\(\-7\) \* Int64\(89\) AS col2" at position 0 and "Int64\(\-9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 18 * + - 83 - - 7 * + 89 AS col2, - 9 col2 +---- +-9 +2117 query I rowsort label-2277 SELECT ALL COUNT ( ALL - + 67 ) AS col1 @@ -12336,8 +12532,11 @@ SELECT 80 * - 95 + 15 + - - 63 + CAST ( + 12 AS INTEGER ) - 50 * + 16 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5200 # Datafusion - Expected - 21 -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\(21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 65 * + + 80 AS col1, + 21 AS col1 +---- +-5200 +21 query I rowsort SELECT + COALESCE ( + 39, - 94 * + 70 * 64, 68 ) @@ -12408,8 +12607,11 @@ SELECT ( + MAX ( 68 ) ) * - - 98 - + - 50 * - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) col0, 69 AS col0 +---- +1 +69 query I rowsort SELECT 6 + - 4 * + 8 * + 36 AS col2 @@ -12556,8 +12758,11 @@ SELECT - 46 AS col2, - 16 AS col1 # 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 "Int64\(59\) / Int64\(75\) AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 59 / 75 AS col1, 40 AS col1 +---- +0 +40 query I rowsort label-2384 SELECT ALL 77 - + MAX ( 70 ) AS col1 @@ -12704,8 +12909,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) - + + 57 AS col0, - 36 * - + COUNT ( * ) AS col0 +---- +-58 +36 query I rowsort SELECT ALL 7 * 53 @@ -12872,8 +13080,11 @@ SELECT ALL - 58 * 68 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -6287 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) \* Int64\(\-66\) \+ Int64\(\-83\) AS col0" at position 0 and "sum\(Int64\(52\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 94 * + - 66 + - 83 AS col0, + SUM ( ALL + 52 ) AS col0 +---- +-6287 +52 query I rowsort label-2445 SELECT - CASE - + ( - 19 ) WHEN ( + - 4 ) * - - 71 * - NULLIF ( - + 97, 0 * - + 67 ) + 24 THEN NULL WHEN + 98 + - 14 + - 4 + 69 + - + 82 * + - COUNT ( * ) + - + 1 + + + 44 * - + 75 THEN + + 2 END + + + 10 * 20 AS col1 @@ -13342,8 +13553,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 33 * - COUNT ( - 17 ) AS col1, + COUNT ( * ) + + - 92 AS col1 +---- +-33 +-91 query I rowsort label-2533 SELECT ALL NULLIF ( - COUNT ( * ), + COUNT ( * ) ) + + 1 * + + 33 + - + 12 + 25 @@ -13553,8 +13767,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -37 # Datafusion - Expected - 165 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-37\) AS col0" at position 0 and "Int64\(89\) \+ Int64\(40\) \- Int64\(\-36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 37 AS col0, 89 + 40 - + - 36 AS col0 +---- +-37 +165 query I rowsort SELECT ALL 40 * - 12 * + - 11 @@ -14559,8 +14776,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) \* count\(DISTINCT Int64\(\-68\)\) AS col1" at position 0 and "\(\- \(\- count\(Int64\(5\)\)\)\) \* \(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 51 * + COUNT ( DISTINCT - 68 ) AS col1, - ( - COUNT ( 5 ) ) * - CAST ( NULL AS INTEGER ) AS col1 +---- +51 +NULL query I rowsort SELECT - 0 - - + 55 col2 @@ -14623,8 +14843,11 @@ SELECT 68 * - COALESCE ( + COALESCE ( 75, CASE + COUNT ( * ) WHEN 99 THEN NULL W # Datafusion - Datafusion expected results: # Datafusion - Expected - 60 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col2" at position 0 and "Int64\(58\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 60 AS col2, 58 AS col2 +---- +58 +60 query I rowsort label-2783 SELECT - CAST ( NULL AS INTEGER ) + + 37 AS col1 @@ -14748,8 +14971,11 @@ SELECT ALL + 18 * + 37, - 21 / - 40 + + ( - + 58 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) AS col2" at position 0 and "Int64\(57\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 5 col2, 57 AS col2 +---- +-5 +57 query I rowsort label-2807 SELECT ALL NULLIF ( - COUNT ( * ), + 32 * - 19 + - + SUM ( + 58 ) + + 81 / - 18 ) @@ -15020,8 +15246,11 @@ SELECT COUNT ( * ) AS col2, + 4 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7752 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) \* Int64\(76\) \* \(\- Int64\(3\)\) AS col1" at position 0 and "\(\- min\(\(\- Int64\(92\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 34 * 76 * - + 3 AS col1, - MIN ( - + 92 ) col1 +---- +7752 +92 query I rowsort label-2858 SELECT COUNT ( ALL 99 ) AS col0 @@ -15521,8 +15750,11 @@ SELECT 10 * 68 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(12\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 12 AS col0, 72 AS col0 +---- +12 +72 query I rowsort SELECT 70 * ( + 63 ) + 56 @@ -16224,8 +16456,11 @@ SELECT 45 + ( - 22 ) + - ( - 9 ) / - 22 # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 112 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "Int64\(56\) \+ Int64\(56\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 66 AS col1, + 56 + 56 AS col1 +---- +112 +66 query I rowsort label-3089 SELECT 54 + + 1 + + 72 / - 82 @@ -16611,8 +16846,11 @@ SELECT + 11 * 17 + + 58 - - + ( + 17 ) * + - 85 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 12 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-35\)\) \- Int64\(64\) \+ Int64\(41\) AS col0" at position 0 and "Int64\(74\) \- \(\- Int64\(\-62\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 35 - 64 + 41 AS col0, 74 - - - 62 AS col0 +---- +12 +12 query I rowsort label-3161 SELECT ALL 38 - - 95 + - + 69 - - CAST ( - ( - NULLIF ( 59, + 21 * - + 44 ) ) AS INTEGER ) + + CASE 93 WHEN 14 * 50 THEN 44 + - + 25 * + 48 END * + + COUNT ( * ) / 23 @@ -17371,14 +17609,20 @@ SELECT ALL - 6 + + - 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - -231 # Datafusion - Expected - 350 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \* Int64\(\-33\) AS col2" at position 0 and "Int64\(50\) \* Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 7 * - 33 AS col2, + 50 * + 7 AS col2 +---- +-231 +350 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - -48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \+ \(\- Int64\(91\)\) AS col0" at position 0 and "Int64\(\-48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 45 + - + 91 col0, - 48 AS col0 +---- +-46 +-48 query I rowsort label-3306 SELECT DISTINCT + CAST ( + + 14 AS INTEGER ) AS col1 @@ -17628,8 +17872,11 @@ SELECT + MIN ( + 7 ) / + 50 * - 21 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \- \(\- nullif\(Int64\(\-68\), Int64\(2\)\)\) AS col2" at position 0 and "Int64\(75\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 75 - + - NULLIF ( - 68, + 2 ) AS col2, 75 AS col2 +---- +7 +75 query I rowsort SELECT + 81 * 81 @@ -17735,8 +17982,11 @@ SELECT MAX ( + + 6 ) - 52 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2736 # Datafusion - Expected - -19 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \* \(\- min\(Int64\(36\)\)\) AS col1" at position 0 and "Int64\(\-19\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 76 * + - MIN ( + 36 ) AS col1, - 19 AS col1 +---- +-19 +-2736 query I rowsort SELECT ALL 5 * - - 17 @@ -17986,15 +18236,22 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -3298 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col0" at position 0 and "sum\(Int64\(\-34\)\) \* Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 18 col0, SUM ( ALL - 34 ) * + 97 AS col0 +---- +-3298 +18 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 13 # 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 "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort SELECT 54 AS col2, 13 col2, CASE + - 8 WHEN + - 14 * + 20 + + MAX ( ALL - ( - 12 ) ) - + COUNT ( * ) * - 62 * - - COUNT ( * ) * - 59 - + 98 + - - 44 * + COUNT ( * ) * ( + - 71 ) * + COUNT ( * ) + - 44 THEN - 31 * + ( + 89 ) / COALESCE ( 28, - 39 * - AVG ( DISTINCT + 21 + ( + 58 ) ), - 36 + - 97 ) + - 92 * 10 ELSE NULL END +---- +13 +54 +NULL query I rowsort label-3423 SELECT ALL - SUM ( 95 ) + + 76 + - 19 * - + 9 + - CAST ( - ( 64 ) AS INTEGER ) @@ -18261,8 +18518,11 @@ SELECT + ( - - 91 ) # 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\(59\)\) / Int64\(38\) AS col2" at position 0 and "Int64\(67\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 59 / + 38 AS col2, + 67 col2 +---- +-1 +67 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -18851,8 +19111,11 @@ SELECT ALL + 87 AS col2, 9 + + 80 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col1" at position 0 and "Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 65 AS col1, 8 AS col1 +---- +65 +8 query I rowsort SELECT ALL - 30 * + + COALESCE ( - 77, + 72 ) * 39 @@ -19804,8 +20067,11 @@ SELECT COUNT ( * ) * - + NULLIF ( - COUNT ( * ), + 0 ) + 9 + - 19 * 92 * - + 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2232 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(\-24\) \* Int64\(93\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, - 24 * + 93 AS col0 +---- +-2232 +NULL query I rowsort label-3769 SELECT ALL CAST ( 27 AS INTEGER ) + + + 81 - 19 + + 81 AS col1 @@ -19820,8 +20086,11 @@ 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\(Int64\(1\)\) AS count\(\*\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 AS col2, CASE - CASE - 30 WHEN 61 * 8 + - - 45 THEN + 88 END WHEN + SUM ( 80 ) THEN COUNT ( * ) END AS col2 +---- +52 +NULL query I rowsort label-3772 SELECT DISTINCT 30 + + COALESCE ( + 67, CAST ( NULL AS INTEGER ) * - 36 ) AS col2 @@ -19857,8 +20126,11 @@ SELECT ALL - + COUNT ( CAST ( - 13 AS INTEGER ) ) * + ( ( - - ( - + 66 ) ) ) * + # Datafusion - Datafusion expected results: # Datafusion - Expected - -35 # Datafusion - Expected - 65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-35\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 35 ) AS col0, 65 AS col0 +---- +-35 +65 query II rowsort label-3779 SELECT - MAX ( ALL - 16 ) AS col2, - 65 @@ -20586,8 +20858,11 @@ SELECT ALL - - NULLIF ( - ( - + 2 ), - 26 * - 0 ) * - - 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 205200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col1" at position 0 and "Int64\(30\) \* Int64\(45\) \* Int64\(19\) \* Int64\(8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 72 AS col1, + 30 * + 45 * + 19 * + + 8 AS col1 +---- +-72 +205200 query I rowsort label-3918 SELECT + 29 * 94 * + COUNT ( * ) @@ -20845,8 +21120,11 @@ SELECT DISTINCT COUNT ( * ) * + + 83 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col2" at position 0 and "CAST\(Int64\(26\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 85 AS col2, CAST ( + 26 AS INTEGER ) AS col2 +---- +-85 +26 query I rowsort label-3968 SELECT DISTINCT - MIN ( + + 66 ) AS col0 @@ -20907,8 +21185,11 @@ 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\(1\)\) AS count\(\*\)\), \(\- Int64\(68\)\)\) \* Int64\(84\)\) \- \(\- Int64\(88\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 20 AS col0, + COALESCE ( + + 44, COALESCE ( + 0, + 93 * - COUNT ( * ), - + 68 ) * 84 ) - - + 88 AS col0 +---- +132 +20 query I rowsort label-3980 SELECT ALL + 54 * + + COUNT ( * ) - + 54 AS col0 @@ -21252,8 +21533,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4765 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* Int64\(58\) \+ Int64\(67\) AS col2" at position 0 and "Int64\(\-23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 81 * + 58 + 67 AS col2, - 23 AS col2 +---- +-23 +4765 query I rowsort label-4047 SELECT DISTINCT - 32 / 69 AS col1 @@ -21308,8 +21592,11 @@ SELECT DISTINCT 92 / + + 38 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "coalesce\(Int64\(\-81\), Int64\(\-28\), \(\- Int64\(\-75\)\) \+ \(\- Int64\(\-61\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 90 AS col1, COALESCE ( - 81, - 28, - - 75 + - ( - 61 ) ) AS col1 +---- +-81 +90 query I rowsort label-4058 SELECT ALL SUM ( 33 ) @@ -21530,8 +21817,11 @@ SELECT ALL NULLIF ( + + 97, ( + + ( - 90 ) ) ) + 34 / + 99 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 3099 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) \+ Int64\(\-40\) AS col1" at position 0 and "Int64\(67\) \- \(\- Int64\(81\)\) \* Int64\(37\) \+ Int64\(67\) \+ Int64\(43\) \+ Int64\(\-76\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 58 + - 40 col1, 67 - - + 81 * + 37 + 67 + 43 + + - 76 + + COUNT ( * ) col1 +---- +18 +3099 query I rowsort SELECT ALL 90 + + NULLIF ( 87, 67 * + - ( + 82 ) ) AS col0 @@ -21579,8 +21869,11 @@ SELECT 42 * + 42 * + + 26 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 1416 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \- Int64\(68\) AS col0" at position 0 and "Int64\(55\) \* Int64\(\-29\) \* \(\- count\(DISTINCT Int64\(\-29\)\)\) \+ Int64\(37\) \+ Int64\(24\) \* \(\- Int64\(9\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 77 - + 68 col0, + 55 * - 29 * + - COUNT ( DISTINCT - 29 ) + + 37 + 24 * - + 9 AS col0 +---- +1416 +9 query I rowsort label-4108 SELECT ALL + 94 - - 32 + + 71 * - 46 / + + COUNT ( - 64 ) AS col0 @@ -21999,8 +22292,11 @@ SELECT CASE + 77 WHEN 25 * + 4 THEN + + NULLIF ( + 39, - + NULLIF ( + 98, - ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1530 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(Int64\(\-49\), Int64\(91\) \* coalesce\(Int64\(2\), Int64\(35\) \+ \(\- Int64\(\-98\)\) / Int64\(90\), Int64\(9\) \* Int64\(82\) \+ Int64\(47\), Int64\(\-49\)\)\) / Int64\(63\) AS col0" at position 0 and "Int64\(30\) \* Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + NULLIF ( - 49, + ( 91 ) * COALESCE ( + 2, 35 + - - 98 / ( 90 ), + 9 * + 82 + + 47, - 49 ) ) / 63 AS col0, + 30 * + 51 AS col0 +---- +0 +1530 query I rowsort SELECT COALESCE ( + 84, 74 ) @@ -22582,8 +22878,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 66 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) AS col1" at position 0 and "Int64\(51\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 66 col1, 51 AS col1 +---- +51 +66 query I rowsort label-4305 SELECT ALL + COUNT ( * ) * + - 40 AS col1 @@ -22638,8 +22937,11 @@ 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 col1" at position 0 and "nullif\(Int64\(0\), Int64\(98\)\) / Int64\(95\) \- Int64\(83\) / Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 28 AS col1, NULLIF ( 0, 98 ) / + 95 - 83 / + 26 AS col1 +---- +-28 +-3 query II rowsort SELECT - 16 AS col0, + 39 @@ -22932,8 +23234,11 @@ SELECT ALL 49 * 37 # 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\(86\) \+ Int64\(\-95\) \- Int64\(\-77\) AS col0" at position 0 and "Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 + - 95 - - 77 AS col0, 99 AS col0 +---- +68 +99 query I rowsort label-4373 SELECT CAST ( NULL AS INTEGER ) / + - 98 @@ -23172,8 +23477,11 @@ SELECT - 43 * + 54 - + 90 * + - COUNT ( * ) * + 61 # 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 "Int64\(1\) AS col0" at position 0 and "Int64\(69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 AS col0, 69 AS col0 +---- +1 +69 query II rowsort SELECT + 2 AS col0, 0 @@ -23313,8 +23621,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) + - 75 col2, 34 AS col2 +---- +-76 +34 query I rowsort SELECT ALL 44 * 79 AS col2 @@ -23431,8 +23742,12 @@ SELECT - 10 / - MAX ( ALL + 97 ) * + - 70 # Datafusion - Expected - 163 # Datafusion - Expected - 45 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) \+ Int64\(83\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 80 + + + 83 AS col1, 45, + 54 AS col1 +---- +163 +45 +54 query I rowsort label-4468 SELECT ALL + 99 * + - CAST ( COALESCE ( + COALESCE ( - - COUNT ( * ), + 23 * - - 65 + 42 - - COUNT ( * ), 45 + 81 / - 45 ), 31 * + 67 - 74 ) AS INTEGER ) * + 82 + 22 @@ -23478,8 +23793,11 @@ SELECT ALL 44 * - 45 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-4\) AS col0" at position 0 and "Int64\(49\) \* Int64\(0\) \+ Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 4 AS col0, 49 * 0 + + + 54 AS col0 +---- +-4 +54 query I rowsort label-4477 SELECT ALL 96 - + 77 - - COUNT ( * ) * 52 + 38 @@ -23893,8 +24211,11 @@ SELECT + 21 * - 10 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, COUNT ( * ) * - 41 AS col2 +---- +-41 +1 query I rowsort label-4556 SELECT + CASE WHEN NOT + 96 BETWEEN + - 50 / + 39 + - 41 AND - 79 * - - 82 THEN + ( + 76 ) WHEN ( - 73 ) <= NULL THEN ( + COUNT ( * ) ) ELSE NULL END + 21 * 68 @@ -24183,8 +24504,11 @@ SELECT 53 * + COUNT ( 16 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 450 # Datafusion - Expected - -97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \* Int64\(\-50\) AS col0" at position 0 and "Int64\(\-97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 9 * - 50 AS col0, - 97 AS col0 +---- +-97 +450 query I rowsort label-4611 SELECT - 92 / + 50 col2 @@ -24345,8 +24669,11 @@ SELECT DISTINCT - 69 AS col0, + 88 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col2" at position 0 and "Int64\(71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 14 col2, 71 AS col2 +---- +-14 +71 query I rowsort SELECT - NULLIF ( - 49, - 0 ) @@ -24375,8 +24702,11 @@ SELECT SUM ( 72 ) - - 75 - + 77 + + 87 * + 53 + + 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - -83 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(83\)\) AS col2" at position 0 and "\(\- Int64\(27\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 83 AS col2, - ( 27 ) col2 +---- +-27 +-83 query I rowsort label-4647 SELECT + 7 + - COUNT ( * ) AS col0 @@ -24962,8 +25292,11 @@ 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\(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\. +query II valuesort SELECT ALL + 33 + MIN ( DISTINCT - 93 ) + - 17 AS col2, ( - - 5 ) / - + COUNT ( * ) + + - 64 * + - 15 * + NULLIF ( COUNT ( * ), - + ( 87 ) * - 13 * - 83 * + ( 57 ) ) AS col2 +---- +-77 +955 query I rowsort label-4758 SELECT - + ( - MAX ( + 79 ) ) @@ -25531,8 +25864,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(90\) \* Int64\(\-63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 44 AS col0, COUNT ( * ) + + 90 * - 63 AS col0 +---- +-5669 +44 query I rowsort label-4869 SELECT - COUNT ( * ) * - 28 + - ( - 66 ) @@ -25817,8 +26153,11 @@ SELECT - 45, 59 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 9898 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(6\)\) \- count\(Int64\(98\)\) \* Int64\(\-43\) AS col2" at position 0 and "Int64\(77\) \* Int64\(80\) \- Int64\(\-42\) \* \(\- Int64\(\-89\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 6 - + + COUNT ( + 98 ) * - 43 AS col2, 77 * 80 - - 42 * - - 89 AS col2 +---- +37 +9898 query I rowsort label-4922 SELECT + CAST ( + COUNT ( * ) AS INTEGER ) * + + 62 + - 53 AS col1 @@ -26225,8 +26564,11 @@ SELECT 99 AS col0, COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1131 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(87\) \* \(\- Int64\(13\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, 87 * - + 13 AS col0 +---- +-1131 +1 query II rowsort label-4998 SELECT ALL 9, - 75 / + - 70 AS col1 @@ -26237,8 +26579,11 @@ SELECT ALL 9, - 75 / + - 70 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - 343 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col2" at position 0 and "Int64\(96\) \+ Int64\(19\) \* \(\- nullif\(Int64\(13\), Int64\(\-19\) \* Int64\(48\)\)\) \* \(\- count\(Int64\(46\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 31 AS col2, + 96 + 19 * - NULLIF ( 13, - 19 * + 48 ) * + - COUNT ( ALL + 46 ) col2 +---- +-31 +343 query I rowsort label-5000 SELECT DISTINCT SUM ( - - 8 ) + + + 2 + 0 / - 86 * + 24 @@ -26314,8 +26659,11 @@ SELECT DISTINCT ( + + 9 ) + + 51 + - + 2 + 28 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 525 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(\-58\) AS col0" at position 0 and "Int64\(21\) \* Int64\(25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 58 AS col0, 21 * + 25 AS col0 +---- +525 +NULL query I rowsort SELECT DISTINCT + 98 + + 77 + 66 @@ -26731,8 +27079,12 @@ SELECT + COUNT ( * ) * ( + 9 ) # Datafusion - Expected - 19 # Datafusion - Expected - NULL # Datafusion - Expected - 469 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col0" at position 1 and "Int64\(17\) \* Int64\(\-40\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(59\) \- nullif\(Int64\(14\), \(\- sum\(Int64\(32\)\)\) / \(\- \(\- CAST\(NULL AS Float64\)\)\) \- Int64\(\-12\) \* Int64\(85\)\) \+ Int64\(7\) \+ Int64\(12\) \* Int64\(\-25\) \+ Int64\(36\) \+ nullif\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-13\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort 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 +---- +19 +469 +NULL query I rowsort label-5092 SELECT + CAST ( + - 22 AS INTEGER ) + + 91 - + 63 / - ( + + 56 ) - 90 + - CAST ( NULL AS INTEGER ) + 88 * + 14 / - - ( - - 69 ) + - 82 * - 74 * - 30 * + CAST ( NULL AS INTEGER ) @@ -26821,8 +27173,11 @@ SELECT ALL + + 35 * COALESCE ( - 50, - 58 * 31 * 67 + + + NULLIF ( + 56, 89 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(0\) AS Int32\)\) / count\(Int64\(1\)\) AS count\(\*\) \* CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- avg\(DISTINCT Int64\(10\)\)\) THEN CASE Int64\(59\) WHEN sum\(Int64\(49\)\) THEN NULL WHEN Int64\(0\) THEN Int64\(\-3\) ELSE NULL END END \* Int64\(85\) \* \(\- Int64\(\-83\)\) AS col1" at position 0 and "Int64\(\-32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-32 +NULL query I rowsort SELECT 13 + + 85 @@ -26843,8 +27198,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - 74 AS col1, - 16 + - + 93 - 44 + + NULLIF ( COUNT ( * ), - 5 * - COUNT ( * ) * 43 ) * - 34 AS col1 +---- +-187 +-74 query I rowsort SELECT ALL - 54 - + 9 + 53 * 63 * + - ( 68 ) @@ -26877,8 +27235,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(40\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col2, + 40 AS col2 +---- +-1 +40 query I rowsort label-5118 SELECT ALL + - 16 - + 7 / - 41 * - - CAST ( NULL AS INTEGER ) AS col0 @@ -27163,8 +27524,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - -2511 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-32\) AS col1" at position 0 and "Int64\(81\) \* Int64\(\-31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 32 AS col1, + 81 * - 31 AS col1 +---- +-2511 +-32 query I rowsort SELECT + 80 * + 16 @@ -27299,8 +27663,11 @@ 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\(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\. +query II valuesort SELECT ALL + COALESCE ( + 53, NULLIF ( + NULLIF ( - 65, NULLIF ( + - 43, + 73 * COUNT ( * ) ) + - - COUNT ( * ) ), - 95 * 29 ) - - COUNT ( * ), - 83 ) AS col0, - 75 AS col0 +---- +-75 +53 query I rowsort SELECT ALL + 67 * 91 * + + 56 * - - 81 + + - 84 @@ -27543,8 +27910,11 @@ SELECT 74 * - ( - + 76 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 46 AS col0, COUNT ( * ) AS col0 +---- +1 +46 query I rowsort label-5244 SELECT 12 + COUNT ( * ) AS col2 @@ -27711,8 +28081,12 @@ SELECT ALL + MIN ( ALL - 77 ) * - COALESCE ( + - COUNT ( DISTINCT + + 49 ), + 38 # Datafusion - Expected - 1824 # Datafusion - Expected - -85 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col1" at position 1 and "Int64\(18\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 19 * - - 96, - 85 AS col1, + + 18 AS col1 +---- +-85 +18 +1824 query I rowsort label-5276 SELECT ALL - SUM ( ALL 47 ) @@ -27847,8 +28221,12 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(\-72\) \* Int64\(\-6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + + 22 - + - 68 AS col2, - COUNT ( * ) * + - 72 * + - 6 AS col2, + 48 +---- +-432 +48 +90 query I rowsort label-5301 SELECT + - COUNT ( * ) - + - SUM ( DISTINCT 64 ) + 67 @@ -28557,8 +28935,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -4247 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT Int64\(\-13\)\) \* \(\- Int64\(\-10\)\) \+ \(\- \(\- CAST\(Int64\(99\) AS Int32\)\)\) \* CAST\(coalesce\(Int64\(\-43\), Int64\(61\), Int64\(83\) \* Int64\(52\) \* Int64\(\-39\) \+ count\(DISTINCT \(\- Int64\(\-73\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col1" at position 0 and "\(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), \(\- coalesce\(Int64\(\-68\), Int64\(\-8\)\)\) \+ Int64\(\-20\)\)\) \* Int64\(55\) \+ Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-4247 +40 query I rowsort label-5437 SELECT - 17 * 9 + + 77 * 61 * + COUNT ( * ) col0 @@ -28660,8 +29041,11 @@ SELECT SUM ( DISTINCT + 55 ), 95 * + + 77 + - 53 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(\-70\)\) \+ CASE CAST\(NULL AS Int32\) WHEN Int64\(16\) / Int64\(31\) THEN \(\- Int64\(\-74\)\) END \* \(\- Int64\(\-36\)\) AS col1" at position 0 and "Int64\(35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( DISTINCT - 70 ) + + + CASE + CAST ( NULL AS INTEGER ) WHEN 16 / 31 THEN + ( - - 74 ) END * - - 36 AS col1, 35 AS col1 +---- +35 +NULL query II rowsort SELECT ALL 10 AS col1, - 83 * - 47 @@ -28677,8 +29061,11 @@ SELECT 28 / - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 45 AS col1, + COUNT ( * ) AS col1 +---- +1 +45 query I rowsort label-5460 SELECT ALL 2 + 7 / - + 39 col0 @@ -28733,8 +29120,11 @@ SELECT ALL 36 * + + 10 * 6 * + - 25 * + - 4 * - 30 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3764 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \- \(\- Int64\(\-96\)\) \* Int64\(40\) AS col1" at position 0 and "Int64\(44\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 76 - - - 96 * 40 AS col1, 44 AS col1 +---- +-3764 +44 query I rowsort label-5470 SELECT 78 * + MAX ( + 98 ) @@ -29163,8 +29553,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-4\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 92 AS col1, COUNT ( * ) * - 4 col1 +---- +-4 +92 query II rowsort label-5554 SELECT CASE + 88 WHEN + COUNT ( * ) * - 54 + + - 4 THEN NULL WHEN - COUNT ( * ) THEN - 95 END AS col1, 45 @@ -29336,8 +29729,12 @@ SELECT ALL 82 - - COUNT ( * ) AS col2 # Datafusion - Expected - -10 # Datafusion - Expected - 12 # Datafusion - Expected - -22 -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\) \* \(\- Int64\(\-2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT - 10 AS col0, + 6 * - + ( - 2 ) AS col0, 45 + - - ( + - 67 ) AS col1 +---- +-10 +-22 +12 query I rowsort SELECT ALL - 17 * + 40 AS col1 @@ -29407,8 +29804,11 @@ SELECT + 60 * 46 + - 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1961 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(37\) \* Int64\(53\) AS col1" at position 0 and "Int64\(\-31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 37 * 53 AS col1, - 31 AS col1 +---- +-31 +1961 query I rowsort SELECT ALL - 3 * - + 14 AS col2 @@ -29516,8 +29916,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(81\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 5 * - - COUNT ( * ) AS col0, 81 AS col0 +---- +5 +81 query I rowsort SELECT 23 + 44 * - 84 @@ -29559,8 +29962,11 @@ SELECT DISTINCT - 14, + 0 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 73 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col1" at position 0 and "Int64\(78\) \- Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 73 col1, 78 - 38 col1 +---- +40 +73 query I rowsort SELECT 91 + 74 - + - 93 col1 @@ -30012,8 +30418,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + - - 63 * - 66 AS col0, 47 AS col0 +---- +-4157 +47 query I rowsort label-5715 SELECT ALL + COUNT ( + - 87 ) + 54 AS col2 @@ -30599,8 +31008,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, - 56 AS col0 +---- +-1 +-56 query I rowsort SELECT - + 57 * 21 AS col0 @@ -31838,8 +32250,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 48 AS col2, - COUNT ( * ) AS col2 +---- +-1 +-48 query I rowsort label-6065 SELECT - COALESCE ( + + 58, - - MIN ( ALL + 41 ) * 24 + + 53 / 20 ) + 65 * 94 @@ -31849,8 +32264,11 @@ SELECT - COALESCE ( + + 58, - - MIN ( ALL + 41 ) * 24 + + 53 / 20 ) + 65 * 94 # 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 col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 22 col1, 53 AS col1 +---- +22 +53 query I rowsort label-6067 SELECT ALL + 39 * - 10 + - + 52 / + - NULLIF ( COUNT ( * ), 51 * - 49 ) AS col0 @@ -32043,14 +32461,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \+ count\(Int64\(\-5\)\) / Int64\(\-56\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 + COUNT ( ALL - 5 ) / - 56 AS col1, COUNT ( * ) AS col1 +---- +1 +8 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 50 AS col0, 10 AS col0 +---- +10 +50 query I rowsort SELECT ALL - + 38 + - + 68 * - - 12 @@ -32082,8 +32506,11 @@ SELECT ALL 40, 1 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -85 # Datafusion - Expected - -17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-85\) AS col0" at position 0 and "Int64\(56\) \+ Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 85 AS col0, 56 + - 73 AS col0 +---- +-17 +-85 query I rowsort SELECT ALL NULLIF ( + ( - + 81 ), - ( + + 85 ) ) AS col1 @@ -32337,8 +32764,11 @@ SELECT - 42 * 93 - - - COUNT ( * ) + ( + 54 ) + - NULLIF ( + 26, 99 + - COUNT ( # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 287 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(2\) AS col2" at position 0 and "Int64\(7\) \* Int64\(41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 2 AS col2, 7 * + + 41 col2 +---- +2 +287 query II rowsort SELECT + - 48 col1, 46 col0 @@ -32945,8 +33375,11 @@ SELECT ALL SUM ( 82 ) * + 20 + - 5, 10 + - - 64 + - SUM ( + 16 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(72\)\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 72 AS col0, 60 AS col0 +---- +-72 +60 query I rowsort label-6274 SELECT DISTINCT - + COUNT ( * ) * + 83 AS col0 @@ -33288,8 +33721,11 @@ SELECT + 19 * - 99 + - 97 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7227 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \* Int64\(73\) AS col2" at position 0 and "Int64\(\-65\) \+ Int64\(54\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 99 * 73 AS col2, - 65 + + + 54 AS col2 +---- +-11 +7227 query I rowsort label-6339 SELECT 75 * NULLIF ( - + 45, COUNT ( * ) ) * + 22 AS col2 @@ -33472,8 +33908,12 @@ SELECT 14 + - - MIN ( - - 65 ) * - + 71 AS col0 # Datafusion - Expected - 9 # Datafusion - Expected - 85 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col2" at position 0 and "\(\- Int64\(\-50\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 9 AS col2, + 84 + COUNT ( * ), - - 50 AS col2 +---- +50 +85 +9 query I rowsort SELECT 23 + 7 * 32 AS col1 @@ -33735,8 +34175,11 @@ SELECT COUNT ( * ), + 81 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51361 # Datafusion - Expected - 27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) \- Int64\(22\) \+ Int64\(92\) \+ max\(Int64\(74\)\) / Int64\(\-85\) \+ \(\- Int64\(\-24\)\) \+ Int64\(7\) \+ Int64\(47\) \* Int64\(39\) \* Int64\(28\) AS col1" at position 0 and "Int64\(40\) \+ Int64\(\-13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 - + 22 + + + 92 + MAX ( ALL 74 ) / - 85 + - - 24 + 7 + 47 * + 39 * + 28 AS col1, + 40 + - 13 AS col1 +---- +27 +51361 query I rowsort label-6424 SELECT ALL + ( - SUM ( + 76 ) ) @@ -34402,8 +34845,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) / min\(DISTINCT \(\- CAST\(NULL AS Int32\)\)\) \+ Int64\(\-87\) \+ Int64\(80\) \* Int64\(5\) AS col1" at position 0 and "Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 42 / + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 87 + + 80 * 5 AS col1, 54 AS col1 +---- +54 +NULL query II rowsort SELECT ALL + 18 AS col2, 3 AS col1 @@ -34934,8 +35380,11 @@ SELECT ALL - - 61 - + + 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 84 AS col2, 82 AS col2 +---- +-84 +82 query I rowsort label-6654 SELECT - 27 + CASE + 89 WHEN COALESCE ( 7, - + 23 ) THEN + 11 * + + 37 WHEN - 89 THEN NULL ELSE - CAST ( NULL AS INTEGER ) + - 9 - - + 45 END * + + 54 AS col0 @@ -35135,8 +35584,11 @@ SELECT - - 75 * + - 94 * - + NULLIF ( - 70, + 63 * 87 * + ( + + 83 ) + - + ( 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(\-15\) AS Int32\)\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( - 15 AS INTEGER ) AS col2, 37 col2 +---- +15 +37 query II rowsort label-6693 SELECT - + COALESCE ( + 84, 24 / - 28 * 40 + 91 + + COALESCE ( - 50, 74 ) ) * + NULLIF ( - 73, ( - 70 ) ) * + + 51 AS col1, COALESCE ( - - 5, 6 * + 56 ) @@ -35414,8 +35866,11 @@ SELECT 92 * - 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 132 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col1" at position 0 and "Int64\(25\) \+ Int64\(39\) \+ Int64\(68\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 18 col1, 25 + + + 39 + + 68 col1 +---- +132 +18 query I rowsort SELECT ALL - ( + ( + 41 ) ) @@ -37270,8 +37725,11 @@ SELECT DISTINCT 62 col0, - 9 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 30 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col2" at position 0 and "\(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) / Int64\(30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 30 AS col2, - CAST ( - COUNT ( * ) AS INTEGER ) / + 30 AS col2 +---- +0 +30 query I rowsort label-7093 SELECT 40 / + 20 @@ -37388,8 +37846,11 @@ SELECT ALL SUM ( DISTINCT 94 ) AS col0, COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(31\) \* Int64\(44\) \+ \(\- CAST\(NULL AS Float64\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* Int64\(\-19\) \+ \(\- Int64\(\-68\)\) \+ \(\- Int64\(60\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL 31 * + 44 + - CAST ( NULL AS FLOAT8 ) AS col0, CAST ( NULL AS INTEGER ) * - 19 + - - 68 + - ( + 60 ) AS col0 +---- +NULL +NULL query I rowsort label-7115 SELECT + + 5 + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) col0 @@ -37599,8 +38060,11 @@ SELECT + + 96 * 97 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, COUNT ( * ) AS col0 +---- +1 +1 query I rowsort SELECT + + 68 * 89 @@ -37993,8 +38457,11 @@ SELECT ALL + + 62 + - + COUNT ( * ) + - CASE CAST ( 17 AS INTEGER ) WHEN - - 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "min\(Int64\(97\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 AS col0, MIN ( + 97 ) AS col0 +---- +26 +97 query II rowsort label-7232 SELECT ALL 84 AS col1, 28 / + - 98 * 40 @@ -38716,8 +39183,11 @@ SELECT - 33 * + + NULLIF ( 93, + 41 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - -92856 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) AS col0" at position 0 and "CAST\(Int64\(24\) AS Int32\) \* Int64\(73\) \* \(\- Int64\(53\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 24 AS col0, + CAST ( + 24 AS INTEGER ) * + 73 * - + 53 col0 +---- +-92856 +24 query I rowsort SELECT - 86 * + + CASE - 88 WHEN + 4 THEN + 57 END @@ -38786,8 +39256,11 @@ SELECT + + 98 * - - 96 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - 1800 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(18\) AS col2" at position 0 and "Int64\(40\) \* Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 18 col2, 40 * 45 AS col2 +---- +18 +1800 query I rowsort SELECT - - 29 - + 36 col1 @@ -38859,8 +39332,12 @@ NULL # Datafusion - Expected - 28 # Datafusion - Expected - 13 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 0 and "Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + 28 AS col0, + 13 AS col0, - 20 +---- +-20 +13 +28 query I rowsort SELECT + 0 * - 5 @@ -38991,8 +39468,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 33 + - 64 col2, 5 * - COUNT ( * ) AS col2 +---- +-31 +-5 query I rowsort label-7419 SELECT - CAST ( + ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + + MIN ( ALL - ( - - 24 ) ) AS col2 @@ -39065,8 +39545,11 @@ 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\(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\. +query II valuesort SELECT 95 AS col1, CASE + + 61 WHEN - 70 + 39 + + COUNT ( * ) THEN 36 + 76 * + 57 ELSE + 16 END AS col1 +---- +16 +95 query I rowsort SELECT - 24 + - 20 + + + 90 * - 1 col0 @@ -39233,8 +39716,12 @@ NULL # Datafusion - Expected - 24 # Datafusion - Expected - -7 # Datafusion - Expected - -1 -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\(69\)\)\)\) \* Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 24 col2, - ( + COUNT ( ALL + - ( + 69 ) ) ) * + 7 AS col2, - COUNT ( * ) AS col1 +---- +-1 +-7 +24 query I rowsort label-7465 SELECT ALL - COALESCE ( 22, - - 21 + + - 46, + MIN ( ALL + + 1 ) ) AS col2 @@ -39287,8 +39774,11 @@ SELECT 8 * - 33 # 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 "coalesce\(Int64\(82\), Int64\(\-2\)\) / \(\- coalesce\(Int64\(\-38\), Int64\(25\) \+ Int64\(\-17\) \+ Int64\(60\) / Int64\(\-8\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 43 col1, COALESCE ( + 82, - 2 ) / - COALESCE ( - 38, + 25 + - 17 + 60 / + - 8 ) AS col1 +---- +-43 +2 query I rowsort label-7475 SELECT 14 / + 1 @@ -40800,8 +41290,11 @@ SELECT ALL + - 29 * - 76 * 74 * 81 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) / coalesce\(Int64\(38\), Int64\(58\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(31\) \* \(\- count\(Int64\(50\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) / + COALESCE ( 38, 58 ) AS col0, COUNT ( * ) * + + 31 * - COUNT ( ALL 50 ) AS col0 +---- +-31 +NULL query I rowsort label-7770 SELECT ALL 64 + + + CAST ( - MAX ( - - CASE CAST ( NULL AS INTEGER ) WHEN + 33 THEN NULL ELSE 43 END ) AS INTEGER ) + 63 @@ -41093,8 +41586,11 @@ SELECT + 41, 25 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) AS col0" at position 0 and "Int64\(14\) / \(\- Int64\(26\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 AS col0, 14 / - + 26 AS col0 +---- +0 +68 query I rowsort SELECT ALL 80 * 74 AS col0 @@ -41829,8 +42325,11 @@ SELECT DISTINCT 81 + + 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\(68\) \+ Int64\(\-47\) AS col2" at position 0 and "count\(DISTINCT Int64\(76\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 + - 47 AS col2, + COUNT ( DISTINCT + 76 ) AS col2 +---- +1 +21 query I rowsort SELECT ALL + 11 * 9 AS col0 @@ -41860,8 +42359,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COALESCE ( + - 39, + 64 ) - + COUNT ( * ) * + + ( 94 ) * + - 49 AS col0, - ( 4 ) AS col0 +---- +-4 +4567 query I rowsort SELECT 92 * - - 60 * - 44 @@ -42029,8 +42531,11 @@ SELECT DISTINCT - 70 + - + 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col2" at position 0 and "Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 80 AS col2, 68 AS col2 +---- +-80 +68 query II rowsort SELECT 60 AS col0, 80 AS col1 @@ -42101,8 +42606,11 @@ SELECT + 18 * 69 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2360 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(58\) \+ Int64\(26\) \* coalesce\(\(\- Int64\(93\)\), Int64\(30\) \- Int64\(16\) \* Int64\(11\)\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) * 58 + 26 * COALESCE ( - + 93, + 30 - + + 16 * + 11 ) AS col2, + COUNT ( * ) AS col2 +---- +-2360 +1 query I rowsort label-8013 SELECT ALL 97 / + COALESCE ( - 48, SUM ( + - 35 ) ) + - 61 * 86 * - 28 @@ -42182,8 +42690,11 @@ SELECT DISTINCT 77 AS col1, 14 + 92 # Datafusion - Datafusion expected results: # Datafusion - Expected - -77 # Datafusion - Expected - -251412 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) \+ \(\- \(\- Int64\(\-83\)\)\) / Int64\(23\) AS col2" at position 0 and "Int64\(\-82\) \* Int64\(42\) \* Int64\(73\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 74 + - ( - - 83 ) / ( 23 ) AS col2, - 82 * + 42 * + 73 AS col2 +---- +-251412 +-77 query I rowsort label-8028 SELECT ALL MIN ( - + 22 ) col1 @@ -42219,8 +42730,11 @@ SELECT + 63 * 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - 897 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) \* Int64\(\-13\) AS col1" at position 0 and "Int64\(61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 69 * - 13 AS col1, 61 AS col1 +---- +61 +897 query II rowsort SELECT - 81 + + 12 AS col1, + 11 - - 95 * 46 * + 56 AS col0 @@ -42558,8 +43072,11 @@ SELECT + ( - 8 ) * - 10 + - 80 + - CAST ( - 40 AS INTEGER ) + + 64 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42700 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) \* \(\- Int64\(25\)\) \* Int64\(28\) AS col2" at position 0 and "Int64\(46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 * - ( + + 25 ) * + 28 AS col2, 46 AS col2 +---- +-42700 +46 query II rowsort label-8099 SELECT 33, - 10 / 15 * + 54 AS col2 @@ -42580,8 +43097,11 @@ SELECT ALL - ( + - 94 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 33 AS col1, 79 AS col1 +---- +33 +79 query I rowsort label-8103 SELECT ALL ( + COUNT ( 63 ) ) * COUNT ( + 17 ) * + - COUNT ( * ) @@ -42639,8 +43159,11 @@ SELECT COALESCE ( + + 81, + 7 * - 64 - - CAST ( - SUM ( + + 25 ) AS INTEGER ) + # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 57 AS col2, + 18 AS col2 +---- +18 +57 query II rowsort SELECT 92 AS col1, 23 @@ -42849,8 +43372,11 @@ SELECT + 38 * - CASE - 94 WHEN + ( + 46 ) THEN COUNT ( - NULLIF ( - 10, 81 + + - # 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\(\-44\) \+ Int64\(53\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 44 + 53 AS col1, 13 AS col1 +---- +13 +9 query II rowsort label-8154 SELECT ALL + 85 + - - 75 + NULLIF ( - + 47, - 36 * + + NULLIF ( - + 87, - COUNT ( * ) + + 57 + - 53 ) + ( + 68 ) ) AS col1, 1 + 67 / 65 @@ -43166,8 +43692,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * + + 98 AS col0, - 66 col0 +---- +-66 +98 query I rowsort label-8214 SELECT ALL 50 / - + 58 AS col1 @@ -43970,8 +44499,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 21 AS col2, - COALESCE ( - + 27, + 48 * - COUNT ( * ) ) AS col2 +---- +21 +27 query I rowsort label-8367 SELECT MAX ( ALL - - 91 ) AS col1 @@ -44221,8 +44753,11 @@ 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\(1\)\) AS count\(\*\), Int64\(\-56\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 99 AS col1, NULLIF ( + + COUNT ( * ), - 56 ) col1 +---- +1 +99 query I rowsort SELECT ALL + 82 + - - 95 @@ -44291,8 +44826,11 @@ SELECT ALL + + NULLIF ( + - 77, - 38 / + 88 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - -75 -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\(45\)\) \- \(\- Int64\(\-76\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 61 AS col1, COUNT ( + 45 ) - - - 76 AS col1 +---- +-61 +-75 query I rowsort label-8428 SELECT + + COUNT ( * ) * + 44 * 64 + + 80 * - ( + 3 ) AS col0 @@ -44483,8 +45021,11 @@ SELECT - 80 + - 64 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - -18 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col0" at position 0 and "Int64\(\-31\) \+ Int64\(13\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 50 AS col0, - 31 + + 13 AS col0 +---- +-18 +-50 query II rowsort SELECT ALL + 98 AS col0, 75 @@ -44512,14 +45053,20 @@ SELECT + 80 col2, COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -65 # Datafusion - Expected - 383496 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) AS col1" at position 0 and "Int64\(24\) \* \(\- min\(Int64\(29\)\)\) \* Int64\(\-29\) \* \(\- Int64\(\-19\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 65 col1, 24 * + - MIN ( 29 ) * - 29 * - - 19 AS col1 +---- +-65 +383496 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - 1911 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) 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 II valuesort SELECT + + 80 AS col0, 49 * - - 39 AS col0 +---- +1911 +80 query I rowsort label-8470 SELECT - 90 * - - 34 - - COALESCE ( + 42, + 61 + - + ( - + 86 ) ) - + 74 * - 30 - - ( + 76 ) / - - 50 + + + 21 AS col0 @@ -44575,8 +45122,11 @@ SELECT DISTINCT + NULLIF ( - 51, - + 4 ) * ( 0 ) - - 6 + 71 * - 63 * + 87 + - 14 # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(58\) / Int64\(42\) \* \(\- Int64\(\-95\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 45 / + COUNT ( * ) AS col0, 58 / 42 * ( - - 95 ) AS col0 +---- +45 +95 query I rowsort SELECT ALL 4 + + - ( - 3 ) AS col1 @@ -45092,15 +45642,22 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) * - COUNT ( ALL - 35 ) AS col0, 93 AS col0 +---- +-1 +93 # 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT + 97 AS col0, - 21 + - - COUNT ( * ) AS col0, + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + 90 AS col0 +---- +-20 +97 +NULL query II rowsort SELECT DISTINCT + 0 AS col0, - 58 @@ -45207,8 +45764,11 @@ SELECT ALL - CAST ( + - 56 AS INTEGER ) + + COUNT ( * ) # 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\(78\) \+ Int64\(13\) \* Int64\(\-5\) AS col2" at position 0 and "Int64\(14\) \* CASE avg\(Int64\(\-32\)\) WHEN \(\- CAST\(\(\- Int64\(\-69\)\) AS Float64\)\) THEN Int64\(\-75\) \* \(\- Int64\(85\)\) \- Int64\(\-26\) WHEN Int64\(87\) THEN NULL END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 78 + 13 * - 5 AS col2, 14 * + CASE + AVG ( ALL - 32 ) WHEN - CAST ( - - 69 AS FLOAT8 ) THEN - 75 * - + 85 - - 26 WHEN + 87 THEN NULL END AS col2 +---- +13 +NULL query I rowsort label-8601 SELECT DISTINCT - 49 + + - COUNT ( * ) AS col0 @@ -45692,8 +46252,11 @@ SELECT - MIN ( ALL 92 ) * 97 + COALESCE ( ( 21 ), 14, MAX ( DISTINCT + 34 ) + + # Datafusion - Datafusion expected results: # Datafusion - Expected - 361248 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-53\)\) \* Int64\(96\) \* \(\- \(\- CAST\(Int64\(71\) AS Int32\)\)\) AS col0" at position 0 and "\(\- count\(DISTINCT \(\- Int64\(\-14\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 53 * 96 * - - CAST ( + 71 AS INTEGER ) col0, - COUNT ( DISTINCT - - 14 ) AS col0 +---- +-1 +361248 query I rowsort SELECT ALL + + 63 col0 @@ -45708,8 +46271,11 @@ SELECT DISTINCT - NULLIF ( + 76, - 7 ) * - 86 + - 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9310 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(99\)\) \* Int64\(\-95\) \- Int64\(95\) AS col2" at position 0 and "\(\- Int64\(\-86\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 99 * - 95 - 95 col2, ( - - 86 ) AS col2 +---- +86 +9310 query I rowsort SELECT + + 93 + + + 58 * + 98 @@ -46561,8 +47127,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) / - 48 * - + 14 col0, + 80 + + - 23 * + + 58 * 60 AS col0 +---- +-79960 +0 query I rowsort label-8859 SELECT + 45 + COUNT ( * ) @@ -46587,8 +47156,11 @@ SELECT ALL - + 16 + - 36 # 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 "Int64\(43\) / Int64\(\-27\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 10 AS col0, 43 / - 27 AS col0 +---- +-1 +10 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -46774,8 +47346,11 @@ SELECT - 42 + - + 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(21\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL MIN ( + 21 ) AS col1, COUNT ( * ) AS col1 +---- +1 +21 query I rowsort label-8900 SELECT + + CAST ( + 99 AS INTEGER ) + COUNT ( + ( - 70 ) ) col0 @@ -46804,8 +47379,11 @@ SELECT - 76 * - + 76 * + - 25 + 49 + + CASE - + COUNT ( * ) WHEN - CAST ( + COAL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) / \(\- \(\- CAST\(NULL AS Int32\)\)\) \* Int64\(97\) \* Int64\(\-45\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 82 / - - CAST ( NULL AS INTEGER ) * 97 * - 45 col0, + 35 AS col0 +---- +35 +NULL query I rowsort label-8905 SELECT - 51 / - 31 @@ -46888,8 +47466,11 @@ SELECT DISTINCT 83 * + 7 * - 54 + + 45 + - COUNT ( * ) * + 8 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "CAST\(\(\- Int64\(\-74\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, ( CAST ( - - 74 AS INTEGER ) ) AS col2 +---- +1 +74 query I rowsort label-8921 SELECT ALL + - 37 + CAST ( NULL AS INTEGER ) * + NULLIF ( - - 21, - 99 ) * 41 * 62 + + 69 * + 36 AS col0 @@ -47035,8 +47616,11 @@ SELECT + 26 + - 83 + - ( + 53 ) * + 83 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - -56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col1" at position 0 and "Int64\(13\) \- Int64\(82\) \+ Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 AS col1, + 13 - + 82 + + ( + 13 ) AS col1 +---- +-56 +32 query I rowsort SELECT ( + + 36 ) @@ -47283,8 +47867,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 19 AS col2, - 66 * - COUNT ( * ) AS col2 +---- +19 +66 query II rowsort label-8997 SELECT 41 + 33 + 43, ( - ( SUM ( DISTINCT - + 67 ) ) ) * - 56 * - 67 AS col2 @@ -47908,8 +48495,12 @@ 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\(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\. +query RII valuesort 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 ( * ) +---- +-38 +2989 +43 query I rowsort label-9117 SELECT - NULLIF ( + + 93, - 22 * CAST ( - COUNT ( ALL - 51 ) AS INTEGER ) ) @@ -48052,8 +48643,11 @@ SELECT + 87 * - 75 * COUNT ( * ) AS col2, 12 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - -95145 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col2" at position 0 and "Int64\(20\) \* \(\- Int64\(49\)\) \* \(\- Int64\(\-97\)\) \+ nullif\(\(\- Int64\(85\)\), Int64\(53\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + ( 15 ) AS col2, 20 * - + 49 * + - ( - 97 ) + NULLIF ( - ( 85 ), 53 ) AS col2 +---- +-95145 +15 query I rowsort label-9144 SELECT COALESCE ( + - COUNT ( * ), + - 47 ) * - - 34 + - COUNT ( + 94 ) @@ -48167,8 +48761,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - -340585 -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\(67\), Int64\(\-11\) / \(\- min\(Int64\(8\)\)\) \+ Int64\(11\)\) \* Int64\(90\) \* Int64\(\-58\) \+ min\(Int64\(98\)\) \* \(\- sum\(Int64\(\-93\)\)\) \- Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 81 AS col2, COALESCE ( + 67, - 11 / - MIN ( ALL + 8 ) + 11 ) * + + 90 * - 58 + MIN ( + 98 ) * - SUM ( - 93 ) - - 41 AS col2 +---- +-340585 +81 query I rowsort SELECT ALL - CASE - 79 WHEN + - 20 THEN 59 + 92 END AS col0 @@ -48244,8 +48841,11 @@ SELECT ALL + MIN ( DISTINCT + ( - ( + 65 ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE Int64\(\-29\) WHEN Int64\(13\) \+ \(\- Int64\(\-48\)\) THEN Int64\(72\) END\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 80 AS col2, COUNT ( * ) * - CASE - 29 WHEN 13 + - - 48 THEN + + 72 END + + COUNT ( * ) AS col2 +---- +80 +NULL query I rowsort label-9180 SELECT ALL 38 * + + 93 + + 14 + - + ( 10 ) + + CAST ( 81 AS INTEGER ) + - ( + 86 ) - + COUNT ( DISTINCT - 70 ) * + 3 col1 @@ -49151,8 +49751,11 @@ SELECT ALL - 14 * - - 12 + - COUNT ( * ) + 92 * - 26 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 104 # Datafusion - Expected - 4224 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) \+ Int64\(69\) AS col1" at position 0 and "Int64\(44\) \* Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 35 + + 69 AS col1, + 44 * 96 AS col1 +---- +104 +4224 query I rowsort SELECT - 50 * + + 78 + 25 * + 83 + 35 AS col0 @@ -50865,8 +51468,11 @@ 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\(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\. +query II valuesort SELECT - + 32 + - + NULLIF ( - 98, - ( + + COUNT ( * ) ) + - + 71 ) - MAX ( + 88 ) - - + 37 AS col1, 80 * + 33 AS col1 +---- +15 +2640 query I rowsort SELECT - ( - + 90 ) @@ -51711,8 +52317,11 @@ SELECT ( + 10 ) + 27 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1216 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(16\) AS Int32\) \* Int64\(76\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + CAST ( 16 AS INTEGER ) * 76 AS col2, + 48 AS col2 +---- +1216 +48 query I rowsort label-9843 SELECT ALL SUM ( ( 51 ) ) + - 29 @@ -52075,8 +52684,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - COUNT ( * ) AS col1, + 33 AS col1 +---- +1 +33 query II rowsort label-9914 SELECT - COUNT ( * ) AS col1, - 51 @@ -52280,8 +52892,11 @@ SELECT DISTINCT - 61 AS col1, + ( - 53 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - -1155 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col1" at position 0 and "Int64\(\-13\) \* Int64\(93\) \+ Int64\(54\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 29 AS col1, - 13 * 93 + + 54 col1 +---- +-1155 +-29 query I rowsort SELECT ALL + ( - 9 ) * 43 * + 17 @@ -52383,8 +52998,12 @@ 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\(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\. +query III valuesort SELECT 6 * 19, + COUNT ( * ) * + + 31 - - + 84 AS col2, 34 AS col2 +---- +114 +115 +34 query I rowsort label-9972 SELECT 13 / + + MAX ( - 53 ) col0 diff --git a/data/sqlite/random/expr/slt_good_97.slt b/data/sqlite/random/expr/slt_good_97.slt index 0d88425..0f257cb 100644 --- a/data/sqlite/random/expr/slt_good_97.slt +++ b/data/sqlite/random/expr/slt_good_97.slt @@ -56,8 +56,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col1" at position 0 and "Int64\(64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 90 col1, 64 AS col1 +---- +64 +90 query I rowsort SELECT 13 * - ( - 83 ) - - + 96 AS col2 @@ -260,8 +263,11 @@ SELECT DISTINCT 18 + + + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2214 # Datafusion - Expected - 2929 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(\-27\), Int64\(87\)\)\) \* \(\- Int64\(82\)\) AS col0" at position 0 and "\(\- CASE max\(Int64\(37\)\) WHEN count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-37\) THEN NULL WHEN Int64\(5\) THEN NULL ELSE Int64\(58\) END\) \* CAST\(\(\- nullif\(Int64\(37\), Int64\(82\)\)\) AS Int32\) \+ Int64\(57\) \+ Int64\(11\) \* \(\- Int64\(66\)\) \* \(\- count\(DISTINCT \(\- Int64\(\-65\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-2214 +2929 query II rowsort SELECT ( + + 46 ) col0, ( - + 6 ) @@ -475,8 +481,11 @@ SELECT - 96, 54 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(85\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, + 85 AS col2 +---- +1 +85 query I rowsort SELECT 22 / - + CASE + 83 WHEN - - 61 THEN + 2 END @@ -669,8 +678,11 @@ SELECT DISTINCT + 14 * + CAST ( - 55 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -107 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) \+ Int64\(94\) AS col1" at position 0 and "Int64\(\-83\) \+ max\(\(\- CAST\(Int64\(24\) AS Int32\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 59 + + + 94 AS col1, - 83 + MAX ( - CAST ( 24 AS INTEGER ) ) AS col1 +---- +-107 +35 query I rowsort label-117 SELECT DISTINCT 98 / 41 + 16 + - 89 * 35 AS col2 @@ -700,8 +712,11 @@ SELECT ALL CAST ( - - 91 AS INTEGER ) / + COUNT ( + + 66 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1935272 # Datafusion - Expected - 86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-16\) \* Int64\(24\) \* Int64\(56\) \* Int64\(90\) \- Int64\(\-88\) AS col0" at position 0 and "Int64\(63\) / Int64\(74\) \+ \(\- \(\- Int64\(86\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 16 * + 24 * + 56 * 90 - + - 88 AS col0, 63 / + 74 + + - ( - + 86 ) AS col0 +---- +-1935272 +86 query I rowsort label-123 SELECT DISTINCT 84 * MIN ( DISTINCT + 99 ) @@ -729,8 +744,11 @@ 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\(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\. +query II valuesort SELECT COALESCE ( 54, + 60, - 71 ) * + COUNT ( * ) - 44 + - 21 * + - 88 + 3 * 69 AS col2, + 40 AS col2 +---- +2065 +40 query I rowsort SELECT + + CASE - - 86 WHEN 2 + - 19 + 2 THEN 62 END AS col2 @@ -1310,8 +1328,11 @@ SELECT ALL 98 AS col1, + 82 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6942 # Datafusion - Expected - -99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-89\) \* Int64\(\-78\) AS col0" at position 0 and "Int64\(\-99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 89 * - 78 AS col0, - 99 col0 +---- +-99 +6942 query I rowsort SELECT DISTINCT - 73 + - 33 @@ -1506,8 +1527,11 @@ 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\(Int64\(1\)\) AS count\(\*\) \+ max\(DISTINCT \(\- Int64\(76\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 91 * + 83 AS col0, COUNT ( * ) + + + MAX ( DISTINCT - + 76 ) AS col0 +---- +-75 +-7553 query I rowsort label-277 SELECT 33 + 39 * - - CAST ( NULL AS INTEGER ) @@ -1674,8 +1698,11 @@ SELECT + COUNT ( ALL 56 ) + + 72 - + 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 78 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 78 AS col2, COUNT ( * ) AS col2 +---- +1 +78 query II rowsort label-309 SELECT ALL 1, - COUNT ( * ) AS col2 @@ -1759,8 +1786,11 @@ SELECT DISTINCT 82 * 51 + + + 24 * - - 42 * 71 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 648 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-65\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(54\) \* Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 65 + + + COUNT ( * ) AS col2, 54 * + 12 AS col2 +---- +-64 +648 query I rowsort SELECT 83 * 62 + + 80 @@ -2456,8 +2486,11 @@ SELECT + NULLIF ( - 90, - 59 ) + - 10 # Datafusion - Datafusion expected results: # Datafusion - Expected - 86 # Datafusion - Expected - 544 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(86\) AS col2" at position 0 and "max\(DISTINCT Int64\(\-34\)\) \* \(\- Int64\(16\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 86 col2, + MAX ( DISTINCT - 34 ) * - + ( + + 16 ) AS col2 +---- +544 +86 query I rowsort label-456 SELECT - 72 * + + COUNT ( * ) * COUNT ( * ) AS col0 @@ -3129,8 +3162,11 @@ SELECT + COUNT ( * ) * - - 22 + + 6 + + ( + 20 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -84 # Datafusion - Expected - -191664 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) AS col1" at position 0 and "nullif\(\(\- Int64\(99\)\), Int64\(\-84\) \+ \(\- Int64\(69\)\)\) \* Int64\(\-22\) \* Int64\(\-88\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 84 AS col1, + NULLIF ( - + 99, - 84 + - + 69 ) * - 22 * - 88 col1 +---- +-191664 +-84 query I rowsort label-587 SELECT + - 12 - - COUNT ( * ) + + 35 @@ -3188,14 +3224,20 @@ SELECT + ( 41 ), - 64 * - + SUM ( ALL - 76 ) + - + 11 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(6\)\) AS col0" at position 0 and "Int64\(\-23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MIN ( ALL + 6 ) col0, - 23 AS col0 +---- +-23 +6 # 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 "Int64\(0\) \* Int64\(81\) AS col2" at position 0 and "Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 0 * 81 AS col2, + 81 AS col2 +---- +0 +81 query I rowsort SELECT ALL + 67 + + 58 AS col2 @@ -3286,8 +3328,11 @@ SELECT + - 27 - - 37 / + 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(95\)\) AS col0" at position 0 and "\(\- Int64\(\-49\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + 95 ) AS col0, - ( - 49 ) AS col0 +---- +-95 +49 query I rowsort SELECT - - 57 * + 8 @@ -3327,8 +3372,11 @@ SELECT - 9 * 11 + - + 37 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 65 # Datafusion - Expected - 76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) AS col2" at position 0 and "Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 65 AS col2, 76 AS col2 +---- +65 +76 query I rowsort label-625 SELECT ALL - 86 / + 10 + - 76 + - 81 * + CAST ( NULL AS INTEGER ) AS col0 @@ -3450,8 +3498,11 @@ SELECT COUNT ( * ) * ( + 43 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -50 # Datafusion - Expected - 51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) AS col0" at position 0 and "Int64\(51\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 50 AS col0, 51 AS col0 +---- +-50 +51 query I rowsort label-648 SELECT - + CAST ( 29 AS INTEGER ) AS col0 @@ -3508,8 +3559,11 @@ SELECT 82 * + 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col1, COUNT ( * ) AS col1 +---- +-1 +1 query I rowsort label-659 SELECT ALL CAST ( + MAX ( ALL 68 ) AS INTEGER ) AS col1 @@ -3846,8 +3900,11 @@ SELECT + 7 * - 8 * + 13 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) \- Int64\(0\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 67 - + 0 AS col0, + COUNT ( * ) col0 +---- +1 +67 query I rowsort SELECT ALL NULLIF ( 91, + 7 ) @@ -3858,8 +3915,12 @@ SELECT ALL NULLIF ( 91, + 7 ) # Datafusion - Expected - 30 # Datafusion - Expected - -362276 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) AS col0" at position 0 and "Int64\(45\) \- Int64\(37\) \+ Int64\(56\) \+ Int64\(7\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 30 AS col0, 94 * 47 * - + 82, + ( 45 ) - + + 37 + + + 56 + + + 7 AS col0 +---- +-362276 +30 +71 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -4377,8 +4438,11 @@ 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\(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\. +query II valuesort 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 +---- +-480 +NULL query I rowsort SELECT - COALESCE ( + + 47, - + 75 + + 80 ) + - 12 - 21 + + 22 @@ -4435,8 +4499,11 @@ SELECT + 17 + + - 98 + 49 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 192 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) \+ Int64\(99\) AS col2" at position 0 and "Int64\(61\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 93 + + 99 col2, 61 * + COUNT ( * ) col2 +---- +192 +61 query I rowsort label-834 SELECT DISTINCT 94 * - ( - + NULLIF ( 80, + ( + + 21 ) ) ) + - + 61 * + CAST ( 40 AS INTEGER ) + + MAX ( 40 ) AS col1 @@ -4496,8 +4563,11 @@ SELECT ALL + - MAX ( DISTINCT - + 1 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2235 # Datafusion - Expected - 1107 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \- Int64\(7\) \- \(\- Int64\(\-41\)\) \* Int64\(56\) \+ Int64\(60\) AS col1" at position 0 and "Int64\(41\) \* \(\- Int64\(\-27\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 8 - + 7 - - ( - 41 ) * + + 56 + 60 AS col1, 41 * - - 27 AS col1 +---- +-2235 +1107 query I rowsort label-846 SELECT + ( MAX ( - CAST ( - 50 AS INTEGER ) ) ) col2 @@ -5216,8 +5286,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 5 ) AS col0, + 41 + + COUNT ( * ) + - 0 AS col0 +---- +42 +5 query I rowsort label-986 SELECT 78 / - 19 * + - CAST ( NULL AS INTEGER ) * CASE ( - MIN ( ALL 13 ) ) WHEN + CASE 81 WHEN + 68 * + 2 THEN 32 + 14 END + 1 THEN + 65 ELSE 45 * 94 END - 17 * CAST ( NULL AS INTEGER ) @@ -5615,8 +5688,11 @@ SELECT ALL 54 * + ( 3 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "\(\- CAST\(Int64\(95\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, - CAST ( + 95 AS INTEGER ) AS col1 +---- +-95 +1 query II rowsort SELECT DISTINCT - 50 col2, + 33 + 57 + - ( + NULLIF ( + ( 4 ), - 38 ) ) AS col0 @@ -5632,8 +5708,11 @@ 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\(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\. +query II valuesort 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 +---- +37 +NULL query I rowsort label-1064 SELECT 1 * + COUNT ( * ) * + + 88 @@ -5721,8 +5800,11 @@ SELECT ALL + 35 * 16 + + 94 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - 3213 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(50\), Int64\(42\) \* Int64\(\-2\)\) AS col1" at position 0 and "Int64\(51\) \* Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( + 50, 42 * - 2 ) col1, 51 * + 63 AS col1 +---- +3213 +50 query II rowsort SELECT ALL - 10 AS col1, - 49 * 57 @@ -5748,8 +5830,11 @@ SELECT ALL 86 * + - 38 * 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - -3850 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col0" at position 0 and "Int64\(30\) \+ \(\- Int64\(\-97\)\) \* Int64\(\-40\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 61 AS col0, 30 + - - 97 * - 40 AS col0 +---- +-3850 +-61 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -5946,8 +6031,11 @@ 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\(59\) \+ Int64\(\-60\) AS col1" at position 0 and "Int64\(24\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 59 + - 60 AS col1, 24 AS col1 +---- +-1 +24 query I rowsort SELECT DISTINCT - 29 * - - 94 - + 86 AS col1 @@ -6208,8 +6296,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) + - COUNT ( * ) / 40 / + - 59 AS col0, NULLIF ( - - 11, + - MAX ( DISTINCT - 45 ) ) col0 +---- +1 +11 query I rowsort label-1174 SELECT COUNT ( * ) * - - 54 AS col1 @@ -6296,8 +6387,11 @@ SELECT 92 + - - 41 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \+ \(\- min\(DISTINCT Int64\(\-13\)\)\) \- Int64\(\-39\) AS col1" at position 0 and "Int64\(95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( + + 47 ) + - MIN ( DISTINCT + - 13 ) - - 39 AS col1, 95 AS col1 +---- +95 +99 query I rowsort SELECT 37 - + 18 col2 @@ -6520,8 +6614,11 @@ SELECT + 70 + + 86 * - 48 * + 16 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(31\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col1, 31 AS col1 +---- +31 +NULL query I rowsort label-1235 SELECT DISTINCT NULLIF ( 48, - CASE 88 WHEN + 66 THEN 42 WHEN + 67 THEN + 24 + 87 - - + COUNT ( * ) ELSE - 95 * 25 END + 18 * 78 ) AS col2 @@ -6552,8 +6649,11 @@ SELECT ALL ( - + 97 ) # 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 col0" at position 0 and "Int64\(58\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 AS col0, 58 AS col0 +---- +17 +58 query II rowsort SELECT ALL - 31 * + + 74, - 56 AS col2 @@ -6875,8 +6975,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 114 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) AS col1" at position 0 and "\(\- Int64\(\-81\)\) \+ Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 7 AS col1, + ( - - 81 ) + + 33 AS col1 +---- +-7 +114 query I rowsort label-1303 SELECT DISTINCT - CAST ( 3 AS INTEGER ) * + 94 @@ -6886,8 +6989,11 @@ SELECT DISTINCT - CAST ( 3 AS INTEGER ) * + 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 42 AS col0, + 35 AS col0 +---- +35 +42 query I rowsort label-1305 SELECT 55 / + CAST ( + 10 AS INTEGER ) AS col1 @@ -7205,14 +7311,20 @@ SELECT COALESCE ( + 2, - 30 ) 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\(Int64\(\-43\)\) AS col1" at position 0 and "Int64\(\-26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( ALL - 43 ) AS col1, - 26 AS col1 +---- +-26 +1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1092 # Datafusion - Expected - 1303 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT coalesce\(\(\- Int64\(39\)\), Int64\(98\)\)\) \* Int64\(28\) AS col0" at position 0 and "Int64\(\-69\) \* Int64\(1\) \+ Int64\(98\) \* nullif\(Int64\(14\), Int64\(\-46\) \* Int64\(95\) \- \(\- CASE Int64\(97\) WHEN Int64\(46\) THEN Int64\(61\) \+ Int64\(79\) END\) \- Int64\(9\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + SUM ( DISTINCT COALESCE ( - + 39, 98 ) ) * 28 AS col0, - 69 * + 1 + + 98 * + NULLIF ( + 14, - 46 * + 95 - + - CASE + + 97 WHEN + 46 THEN 61 + + 79 END - + 9 ) col0 +---- +-1092 +1303 query I rowsort label-1365 SELECT + 5 * - + COUNT ( + 89 ) + - 10 + + 33 @@ -7508,8 +7620,11 @@ SELECT + 12 * 14 * + 17 + + 73 + + + 95 + - + 80 + - COALESCE ( 13, - 68 ) + ( C # 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 col2" at position 0 and "sum\(DISTINCT Int64\(\-2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 95 AS col2, + SUM ( DISTINCT - 2 ) AS col2 +---- +-2 +95 query I rowsort label-1422 SELECT - 11 / + COUNT ( * ) @@ -7757,8 +7872,11 @@ SELECT ALL - 81 * + 89 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 8188 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col1" at position 0 and "Int64\(\-89\) \* \(\- Int64\(92\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 AS col1, - 89 * - + 92 col1 +---- +-10 +8188 query II rowsort label-1469 SELECT DISTINCT COUNT ( * ), 39 AS col1 @@ -8116,8 +8234,11 @@ SELECT COUNT ( * ) - - COUNT ( * ) * - 43 + + - 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col2" at position 0 and "Int64\(89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 col2, 89 col2 +---- +40 +89 query II rowsort SELECT - 40 AS col0, - 36 @@ -8233,8 +8354,11 @@ SELECT 0 + 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - -61 # Datafusion - Expected - 71148 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-61\) AS col2" at position 0 and "Int64\(66\) \* Int64\(\-49\) \* \(\- Int64\(22\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 61 AS col2, 66 * - 49 * - + 22 col2 +---- +-61 +71148 query II rowsort SELECT DISTINCT 65, 51 * 8 AS col2 @@ -8369,8 +8493,11 @@ SELECT + + 53 * + 23 # 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 "Int64\(\-42\) / Int64\(27\) \* count\(DISTINCT Int64\(51\)\) AS col1" at position 0 and "Int64\(52\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 42 / + + 27 * + COUNT ( DISTINCT 51 ) AS col1, 52 AS col1 +---- +-1 +52 query II rowsort label-1583 SELECT + 67, + COALESCE ( + + 5, + + COUNT ( * ), - 58, - NULLIF ( - - 51, - - 96 / + + 74 ) + + 53 ) + CAST ( - - 5 AS INTEGER ) / - - 83 + + 44 AS col0 @@ -8905,8 +9032,11 @@ SELECT - 61 + + 32 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -54 # Datafusion - Expected - -1635 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(54\) AS Int32\)\) AS col2" at position 0 and "CASE \(\- Int64\(73\)\) WHEN Int64\(53\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- \(\- Int64\(49\)\)\) \* Int64\(77\) \+ Int64\(49\) \+ Int64\(34\) \+ Int64\(\-61\) THEN NULL WHEN Int64\(81\) THEN NULL ELSE \(\- \(\- \(\- min\(Int64\(\-14\)\)\)\)\) \+ Int64\(98\) \+ \(\- Int64\(37\)\) END \* Int64\(\-23\) \+ Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +-1635 +-54 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -8964,8 +9094,11 @@ SELECT - 38 / CASE - 61 WHEN 88 * - 74 * 5 THEN NULL ELSE - 27 END - 86 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5416 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) \* Int64\(\-58\) \- Int64\(36\) AS col2" at position 0 and "Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 94 * - 58 - + 36 AS col2, - 76 AS col2 +---- +-76 +5416 query I rowsort label-1696 SELECT ALL - COUNT ( * ) * 96 - + + NULLIF ( + + 99, - MIN ( DISTINCT - 73 ) * 21 ) @@ -9237,8 +9370,11 @@ SELECT - MIN ( DISTINCT + 43 ) AS col2, - 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \+ count\(DISTINCT Int64\(46\)\) / CAST\(NULL AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 17 + + + COUNT ( DISTINCT + 46 ) / CAST ( NULL AS INTEGER ) col2, COUNT ( * ) AS col2 +---- +1 +NULL query I rowsort SELECT DISTINCT + 53 + + 26 AS col1 @@ -9703,8 +9839,11 @@ SELECT - 17 * - 35 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(58\)\) \+ \(\- CAST\(nullif\(\(\- Int64\(\-23\)\), Int64\(\-34\) \* Int64\(75\)\) AS Int32\)\) / Int64\(71\) AS col2" at position 0 and "Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 58 + - CAST ( + + NULLIF ( - - 23, - 34 * + 75 ) AS INTEGER ) / 71 AS col2, 48 AS col2 +---- +-58 +48 query I rowsort label-1836 SELECT ALL 6 * - COUNT ( * ) - - + CAST ( NULL AS INTEGER ) * NULLIF ( - 98, - 45 ) AS col0 @@ -9991,8 +10130,11 @@ SELECT 43 * 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - -74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col1" at position 0 and "Int64\(\-74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 24 AS col1, - 74 AS col1 +---- +-24 +-74 query I rowsort SELECT ALL 46 * + - 5 @@ -10106,8 +10248,11 @@ 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\(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\. +query II valuesort SELECT ALL - 64 * CASE + - 89 WHEN 66 / COUNT ( * ) THEN + + COUNT ( * ) END col2, CASE - + 44 WHEN + 22 THEN - 9 END * 23 * - - 34 AS col2 +---- +NULL +NULL query I rowsort label-1912 SELECT DISTINCT - SUM ( DISTINCT - - 71 ) AS col1 @@ -10360,8 +10505,11 @@ SELECT COUNT ( * ), 23 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 57 col0, + 53 AS col0 +---- +53 +57 query II rowsort label-1959 SELECT ALL COUNT ( * ), ( + COUNT ( DISTINCT 80 ) ) AS col2 @@ -10618,8 +10766,11 @@ 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\(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\. +query II valuesort SELECT ALL + - COUNT ( * ) + + 52 AS col1, + 76 AS col1 +---- +51 +76 query I rowsort SELECT CASE - 30 WHEN + 38 THEN NULL ELSE - 49 END AS col2 @@ -11058,8 +11209,12 @@ SELECT ALL 25 * 64 + ( + COALESCE ( + + 41, 75 + + - 4 + - ( - 79 ) ) ) AS col0 # Datafusion - Expected - -2 # Datafusion - Expected - 35638 # Datafusion - Expected - -671 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-2\) AS Int32\) AS col1" at position 0 and "CAST\(\(\- CAST\(\(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS Int32\)\) AS Int32\) \- \(\- Int64\(85\)\) \* nullif\(\(\- Int64\(\-30\)\), \(\- \(\- sum\(Int64\(52\)\)\)\)\) \* Int64\(14\) \+ Int64\(19\) \+ Int64\(\-80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort 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 +---- +-2 +-671 +35638 query I rowsort SELECT - 75 + - 76 AS col2 @@ -11711,8 +11866,11 @@ SELECT + 40 + 11 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "Int64\(17\) \+ Int64\(\-38\) / \(\- nullif\(Int64\(43\), \(\- Int64\(\-55\)\) \+ Int64\(\-2\) \* Int64\(\-30\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 8 AS col0, 17 + + - 38 / - NULLIF ( 43, - - 55 + - 2 * - 30 ) AS col0 +---- +17 +8 query I rowsort label-2215 SELECT ALL SUM ( - 36 ) @@ -11778,8 +11936,11 @@ SELECT ALL ( + 76 ) / 31 + - + 39 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col1, + 17 AS col1 +---- +1 +17 query I rowsort label-2228 SELECT ALL + 77 / - NULLIF ( - 50, - MIN ( DISTINCT + + ( - + 17 ) ) * + 25 ) @@ -12069,8 +12230,11 @@ 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\(1\)\) AS count\(\*\)\) \* Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 23 + - 92 * 32 col0, - COUNT ( * ) * 72 AS col0 +---- +-2921 +-72 query I rowsort label-2284 SELECT COALESCE ( - 79, - - 94 ) * + COUNT ( * ) + ( + 62 ) @@ -12196,8 +12360,11 @@ SELECT ALL - - CAST ( - - 96 AS INTEGER ) + + 75 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - -32 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) \* count\(DISTINCT Int64\(1\)\) \- 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 II valuesort SELECT - 67 * COUNT ( DISTINCT + 1 ) - - 53 AS col1, - 32 AS col1 +---- +-14 +-32 query I rowsort label-2308 SELECT DISTINCT - - MIN ( 62 ) - - + 88 + ( - - 78 ) + + 51 * - ( - 74 ) - - 77 AS col2 @@ -12365,8 +12532,11 @@ SELECT - 31 + + + 54 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 25 AS col1, 49 AS col1 +---- +25 +49 query I rowsort SELECT 69 + + 40 @@ -12464,8 +12634,11 @@ SELECT ALL - 86, + 29 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col0" at position 0 and "Int64\(\-76\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 61 AS col0, - 76 AS col0 +---- +-76 +61 query II rowsort label-2359 SELECT ALL - ( + 0 ) AS col2, - COALESCE ( + + 89, + - 56 ) + - + CASE - CAST ( NULL AS INTEGER ) WHEN 99 THEN - 50 * - + COUNT ( * ) WHEN + CAST ( 83 AS INTEGER ) THEN NULL END col1 @@ -12807,8 +12980,11 @@ SELECT - - 90 + COUNT ( * ) + - 78 + + + 59 / + 58 AS col0 # 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 col2" at position 0 and "Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 44 AS col2, + 9 col2 +---- +-44 +9 query I rowsort label-2425 SELECT ALL + MIN ( + - 43 ) @@ -13059,8 +13235,11 @@ SELECT MIN ( ALL - 10 ) + + 92 * - - 73 * 97 * + 7 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 672 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col0" at position 0 and "max\(Int64\(\-7\)\) \* \(\- Int64\(96\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 51 AS col0, MAX ( + - 7 ) * - + 96 AS col0 +---- +51 +672 query II rowsort SELECT 59 + + 43 - 60 + 4 + - 2, - 88 col0 @@ -13102,8 +13281,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 46 AS col1, - NULLIF ( 31, - - ( 55 ) / - - 52 + + 36 + NULLIF ( + 86, + + 17 ) / + + 20 + - - SUM ( DISTINCT + 87 ) * 27 + + 45 ) * 53 - - COUNT ( * ) AS col1 +---- +-1642 +-46 query I rowsort label-2481 SELECT DISTINCT 38 + + COALESCE ( - COUNT ( * ), - ( - - 16 ) ) AS col0 @@ -14068,8 +14250,11 @@ SELECT ALL - NULLIF ( + + 87, ( - CAST ( - 56 AS INTEGER ) ) + ( - 6 ) / - 91 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -93 # Datafusion - Expected - -62 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) \* \(\- CAST\(Int64\(\-31\) AS Int32\)\) AS col1" at position 0 and "Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 * - CAST ( - 31 AS INTEGER ) AS col1, - 62 AS col1 +---- +-62 +-93 query I rowsort label-2670 SELECT - 9 * + COUNT ( * ) AS col0 @@ -14110,8 +14295,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) - + 43 * - COUNT ( * ) col2, 50 AS col2 +---- +42 +50 query II rowsort SELECT 11 col0, 34 + 0 @@ -14304,8 +14492,11 @@ SELECT ( + 51 ) + 82 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 79 # Datafusion - Expected - -5544 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(79\) AS col0" at position 0 and "CAST\(\(\- min\(Int64\(\-66\)\)\) AS Int32\) \* Int64\(\-84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 79 AS col0, CAST ( - + MIN ( - 66 ) AS INTEGER ) * - 84 AS col0 +---- +-5544 +79 query I rowsort SELECT ALL - + 39 + + + 75 + + + 40 * 14 col1 @@ -14524,8 +14715,12 @@ SELECT ALL + ( + ( + ( 31 ) ) ) / - 87 + + 29 AS col2 # Datafusion - Expected - -175 # Datafusion - Expected - -62 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-97\) \+ Int64\(\-78\) AS col2" at position 0 and "Int64\(\-62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - 97 + - 78 AS col2, - 62 AS col2, - 15 +---- +-15 +-175 +-62 query I rowsort label-2757 SELECT DISTINCT COUNT ( * ) + - 8 * - 31 + 1 + + 19 + + - 28 @@ -14614,8 +14809,11 @@ SELECT ALL + - 19 - 3 * + 64 + - + 94 # 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\(8\) \* \(\- CAST\(NULL AS Float64\)\) AS col2" at position 0 and "Int64\(71\) \+ Int64\(\-46\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + 8 * - CAST ( NULL AS FLOAT8 ) col2, 71 + - 46 AS col2 +---- +25 +NULL query I rowsort label-2774 SELECT DISTINCT 87 - 87 / + 19 @@ -14702,8 +14900,11 @@ SELECT - 73 + - 48 + 94 * + COUNT ( * ) * + 98 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(82\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, + 82 AS col0 +---- +1 +82 query I rowsort SELECT DISTINCT 2 * - 23 col1 @@ -14897,8 +15098,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(93\)\) AS col2" at position 0 and "Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( 93 ) AS col2, 10 AS col2 +---- +1 +10 query I rowsort SELECT - 10 + + 27 @@ -14954,8 +15158,11 @@ SELECT ALL 81 / - + 94 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) / Int64\(24\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(\-5\) \* count\(Int64\(1\)\) AS count\(\*\) / Int64\(97\) \+ Int64\(\-80\) \- max\(Int64\(\-89\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 87 / 24 * COUNT ( * ) AS col1, - 5 * + COUNT ( * ) / + 97 + - 80 - MAX ( - 89 ) col1 +---- +-3 +9 query II rowsort label-2838 SELECT + 93 + 65 + 96 AS col1, 90 * + COUNT ( * ) AS col0 @@ -14996,8 +15203,11 @@ 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\(1\)\) AS count\(\*\) \+ \(\- Int64\(34\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 97 AS col2, COUNT ( * ) + - + 34 AS col2 +---- +-33 +97 query I rowsort label-2846 SELECT CAST ( NULL AS INTEGER ) * - CAST ( 71 AS INTEGER ) @@ -15038,8 +15248,11 @@ SELECT - ( + COUNT ( * ) ) * - + 77 + 23 * + 36 + + 13 - 18 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -99 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT ALL - 99 AS col1, + 69 AS col1 +---- +-99 +69 query I rowsort SELECT 34 * - ( - 46 ) @@ -15097,8 +15310,11 @@ SELECT + MIN ( - 68 ) + - - 60 AS col1 # 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\(\-7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 7 AS col2, - 7 AS col2 +---- +-7 +-7 query I rowsort label-2865 SELECT - NULLIF ( - ( + + ( + 19 ) ), 19 ) * 17 + + COUNT ( * ) AS col0 @@ -15234,8 +15450,11 @@ 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\(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\. +query II valuesort SELECT + 79 + + 77 + 88 - - - 2 * - + 16 * COUNT ( * ) + - ( - - COUNT ( * ) ) * + 24 AS col0, - 43 AS col0 +---- +-43 +252 query I rowsort label-2889 SELECT 63 / - + 91 @@ -15410,8 +15629,11 @@ SELECT - 32 - + 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col1" at position 0 and "Int64\(\-57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + 25 ) AS col1, - 57 AS col1 +---- +-57 +25 query I rowsort label-2922 SELECT ( + MAX ( DISTINCT + - 60 ) ) @@ -15617,8 +15839,11 @@ SELECT - + 65 + - + CASE 57 WHEN SUM ( 24 ) / 35 + 75 THEN + CAST ( NULL AS INTE # 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\(\-13\) AS col2" at position 0 and "Int64\(91\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 13 col2, 91 col2 +---- +-13 +91 query II rowsort label-2962 SELECT + NULLIF ( - SUM ( - 46 ), - 40 * + 62 + - COUNT ( * ) / ( + - COUNT ( * ) ) + - - 85 ) AS col1, 59 * 49 @@ -16018,8 +16243,11 @@ SELECT ALL - CAST ( + - 48 AS INTEGER ) * - 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - 46 # Datafusion - Expected - -63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) AS col2" at position 0 and "Int64\(\-63\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 AS col2, - 63 AS col2 +---- +-63 +46 query I rowsort SELECT + 9 * 64 AS col1 @@ -16370,8 +16598,11 @@ SELECT COUNT ( * ) * - 43 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(31\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 56 + + COUNT ( * ) * 31 AS col0, COUNT ( * ) AS col0 +---- +1 +87 query II rowsort SELECT + 44 AS col1, + 26 AS col0 @@ -16536,8 +16767,11 @@ SELECT ALL CAST ( MAX ( ALL - 6 ) AS INTEGER ) + - 31 # Datafusion - Datafusion expected results: # Datafusion - Expected - 32 # Datafusion - Expected - -6111 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \- min\(Int64\(45\)\) AS col1" at position 0 and "Int64\(63\) \* Int64\(\-97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 - MIN ( ALL 45 ) col1, 63 * - 97 AS col1 +---- +-6111 +32 query I rowsort label-3137 SELECT COUNT ( DISTINCT + + 22 ) AS col2 @@ -16730,8 +16964,11 @@ SELECT ALL + 4 * - COUNT ( * ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4688 # Datafusion - Expected - -41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CASE \(\- Int64\(55\)\) WHEN Int64\(19\) \+ Int64\(\-47\) \* Int64\(\-87\) THEN NULL ELSE Int64\(62\) \* Int64\(\-66\) \+ Int64\(67\) END\) \+ Int64\(20\) \* \(\- Int64\(\-34\)\) \- Int64\(90\) \+ Int64\(73\) AS col0" at position 0 and "max\(Int64\(0\)\) \+ Int64\(\-41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CASE - + ( 55 ) WHEN 19 + - 47 * - 87 THEN NULL ELSE + 62 * - 66 + 67 END + + 20 * - - 34 - + 90 + 73 AS col0, + MAX ( + 0 ) + - 41 AS col0 +---- +-41 +4688 query I rowsort SELECT DISTINCT + 86 * ( + 11 ) @@ -17033,8 +17270,11 @@ SELECT - 27 + - - 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 141 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(82\) \+ Int64\(59\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1, + ( + 82 ) + + 59 AS col1 +---- +141 +NULL query II rowsort label-3232 SELECT - + 87, COUNT ( * ) / + - CAST ( - - 42 AS INTEGER ) - + 93 + + 27 * - 12 * 45 AS col0 @@ -17305,8 +17545,12 @@ NULL # Datafusion - Expected - -37 # Datafusion - Expected - -1864 # Datafusion - Expected - -98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) \+ Int64\(8\) \+ \(\- Int64\(\-22\)\) AS col0" at position 0 and "Int64\(\-98\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 67 + 8 + - - 22 AS col0, 85 + - SUM ( ALL + 15 ) / COUNT ( * ) + 24 + COALESCE ( + CASE - 48 WHEN + 72 THEN - ( + - COUNT ( * ) ) * + - MAX ( DISTINCT CAST ( - + 75 AS INTEGER ) ) + 86 END, - 26 ) + - 84 * + 23, + - 98 col0 +---- +-1864 +-37 +-98 query I rowsort label-3282 SELECT - 50 * - + NULLIF ( - 59, - 94 ) * + 52 + + 19 * - CAST ( + 77 AS INTEGER ) AS col1 @@ -17749,8 +17993,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 53 # Datafusion - Expected - 217 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(53\) AS col1" at position 0 and "Int64\(\-89\) \+ Int64\(51\) \* Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 53 AS col1, - 89 + 51 * + 6 AS col1 +---- +217 +53 query I rowsort label-3366 SELECT ALL + NULLIF ( - - 39, - COUNT ( DISTINCT + 76 ) ) / - COUNT ( * ) AS col2 @@ -17792,8 +18039,12 @@ SELECT ALL - 78 - - 66 AS col0 # Datafusion - Expected - 81 # Datafusion - Expected - 10 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 81 AS col0, + 10 AS col0, - 9 / + 98 * - - 80 * 85 +---- +0 +10 +81 query II rowsort label-3374 SELECT + CAST ( NULL AS INTEGER ), - 35 + - ( + COUNT ( * ) ) * + COUNT ( * ) + CAST ( NULL AS INTEGER ) + + + 26 AS col1 @@ -17988,8 +18239,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -2914 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) \* Int64\(31\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - 94 * 31 col2, + 87 AS col2 +---- +-2914 +87 query I rowsort label-3411 SELECT ALL - 15 + - COUNT ( * ) + + - 24 * + - ( - 44 ) * 42 @@ -18073,8 +18327,11 @@ SELECT ALL 18 / + 10 + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col2" at position 0 and "\(\- nullif\(Int64\(22\), Int64\(63\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 40 col2, - NULLIF ( 22, + 63 ) AS col2 +---- +-22 +40 query I rowsort label-3427 SELECT ( - ( - COUNT ( ALL + + 6 ) ) ) @@ -18305,8 +18562,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) * - 75 AS col2, ( + 86 ) AS col2 +---- +-75 +86 query I rowsort label-3472 SELECT ALL SUM ( ALL + 95 ) * - - 9 @@ -19555,8 +19815,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 42 AS col2, 64 AS col2 +---- +-42 +64 query I rowsort label-3711 SELECT DISTINCT - 35 * 29 * SUM ( - - 65 ) @@ -19665,8 +19928,11 @@ SELECT 51 + + SUM ( + ( - 88 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3564 # Datafusion - Expected - -861 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* Int64\(\-66\) AS col2" at position 0 and "Int64\(\-41\) \* Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 54 * - 66 AS col2, - 41 * 21 AS col2 +---- +-3564 +-861 query I rowsort SELECT DISTINCT - CASE - 38 WHEN - - 51 THEN 29 END AS col2 @@ -20211,8 +20477,11 @@ SELECT DISTINCT 37 * + 6 * 32 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col2" at position 0 and "Int64\(13\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 40 col2, + 13 AS col2 +---- +-40 +13 query I rowsort SELECT 11 - 39 AS col2 @@ -20323,8 +20592,11 @@ SELECT MAX ( ALL - - ( + 51 ) ) + - - 28 + - 58 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 163 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(73\) \+ Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, 73 + 90 AS col2 +---- +1 +163 query I rowsort label-3859 SELECT COUNT ( + 41 ) AS col2 @@ -20370,8 +20642,12 @@ SELECT 20 + + 69 # Datafusion - Expected - 1 # Datafusion - Expected - 23 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "sum\(DISTINCT Int64\(\-70\)\) \- Int64\(\-93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT COUNT ( * ) col2, + SUM ( DISTINCT - 70 ) - - 93 AS col2, - 43 +---- +-43 +1 +23 query II rowsort label-3868 SELECT + 59, - COUNT ( * ) * 74 AS col1 @@ -20507,8 +20783,11 @@ SELECT - 2 * + 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - -5733 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \* \(\- Int64\(63\)\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 91 * - + 63 AS col0, + 48 AS col0 +---- +-5733 +48 query I rowsort SELECT DISTINCT + NULLIF ( - - 83, + 53 * - 45 * + ( - 64 ) + 15 ) @@ -20758,8 +21037,11 @@ SELECT DISTINCT - 67 * 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 104 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(98\) AS Int32\) \+ Int64\(6\) AS col0" at position 0 and "min\(\(\- Int64\(\-73\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( + + 98 AS INTEGER ) + 6 AS col0, MIN ( - - 73 ) col0 +---- +104 +73 query I rowsort label-3943 SELECT - 95 * MAX ( - 80 ) @@ -20779,8 +21061,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 22 # Datafusion - Expected - -4130 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) AS col2" at position 0 and "Int64\(70\) \* Int64\(\-59\) \+ Int64\(\-27\) / Int64\(\-78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 22 AS col2, 70 * - 59 + - 27 / + - 78 AS col2 +---- +-4130 +22 query I rowsort label-3947 SELECT DISTINCT - NULLIF ( - MIN ( 89 ), + 53 ) + CAST ( NULL AS INTEGER ) AS col2 @@ -21072,8 +21357,11 @@ SELECT ALL 46 * 88 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2252 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(22\) \* Int64\(\-99\) \- Int64\(74\) AS col1" at position 0 and "Int64\(39\) \+ Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 22 * + - 99 - 74 AS col1, 39 + + 5 AS col1 +---- +-2252 +44 query I rowsort label-4004 SELECT ALL 72 * - - 97 * + + ( - 66 ) * 50 - - 79 * CAST ( 56 AS INTEGER ) + - + COUNT ( * ) + - 70 + + + 64 + - 94 AS col1 @@ -21093,8 +21381,11 @@ SELECT + - COALESCE ( 46, + - 91 ) / 34 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- coalesce\(Int64\(41\), Int64\(88\) \* Int64\(7\)\)\)\)\) AS col0" at position 0 and "Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - SUM ( ALL - COALESCE ( 41, + 88 * + + 7 ) ) AS col0, - 80 AS col0 +---- +-80 +41 query I rowsort label-4008 SELECT ALL + COUNT ( ALL + 35 ) @@ -21210,8 +21501,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(99\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COUNT ( * ) AS col0, 99 AS col0 +---- +-1 +99 query I rowsort label-4029 SELECT - COALESCE ( + MIN ( + 79 ), - 73 ) @@ -21237,8 +21531,11 @@ SELECT + - ( - 91 ) * + 55 + + + 97 + 86 + + 14, 14 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 "Int64\(\-37\) AS col0" at position 0 and "Int64\(90\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 37 AS col0, 90 AS col0 +---- +-37 +90 query I rowsort label-4034 SELECT - + COUNT ( * ) + + 64 AS col1 @@ -21789,8 +22086,11 @@ SELECT ALL + 55 + + 1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -96 # Datafusion - Expected - -73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- max\(Int64\(96\)\)\) AS col0" at position 0 and "Int64\(\-73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - MAX ( 96 ) AS col0, - 73 AS col0 +---- +-73 +-96 query I rowsort label-4139 SELECT + - 74 + SUM ( + 52 ) AS col2 @@ -23053,8 +23353,11 @@ SELECT ALL 71 - - - 78 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 94 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(94\) AS col2" at position 0 and "sum\(Int64\(81\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 94 AS col2, SUM ( + 81 ) AS col2 +---- +81 +94 query I rowsort label-4384 SELECT COALESCE ( + - CAST ( NULL AS INTEGER ), 86 + - 9 * + 16 ) + - 5 - MIN ( + 66 - 25 ) AS col2 @@ -23355,8 +23658,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-30\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 8 * + ( + COUNT ( * ) ) AS col2, - 30 AS col2 +---- +-30 +8 query I rowsort label-4442 SELECT + COUNT ( * ) * 63 @@ -24015,8 +24321,11 @@ SELECT DISTINCT - MAX ( ALL 59 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 6708 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col2" at position 0 and "Int64\(78\) \* Int64\(86\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 64 AS col2, + 78 * + 86 col2 +---- +64 +6708 query I rowsort SELECT - 44 + 69 * + 69 * + 63 col1 @@ -24121,8 +24430,12 @@ SELECT COALESCE ( + 94, - 0 - + 37 - - 62 * - 49 ) + - MAX ( 82 ) + + 5 # Datafusion - Expected - 96 # Datafusion - Expected - 77 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) AS col2" at position 1 and "\(\- Int64\(\-66\)\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - SUM ( ALL + - 96 ), 77 col2, - ( - 66 ) AS col2 +---- +66 +77 +96 query I rowsort label-4586 SELECT 59 * - - ( + 34 ) + COUNT ( * ) @@ -24314,8 +24627,12 @@ SELECT - 53 / - 44 + - 36 AS col1, 33 AS col2 # Datafusion - Expected - 1 # Datafusion - Expected - -41 # Datafusion - Expected - -4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) / Int64\(35\) AS col2" at position 0 and "Int64\(\-41\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ( 45 ) / 35 AS col2, - 41 AS col2, - 4 +---- +-4 +-41 +1 query I rowsort label-4621 SELECT ALL COUNT ( DISTINCT + 70 ) - + - 23 * 63 @@ -24856,8 +25173,12 @@ 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\(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\. +query III valuesort 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 +---- +-105 +-82 +46 query I rowsort label-4724 SELECT + + SUM ( + 33 ) AS col2 @@ -25150,8 +25471,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3671 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \+ Int64\(71\) \* Int64\(\-53\) AS col1" at position 0 and "Int64\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 92 + 71 * - 53 AS col1, 6 AS col1 +---- +-3671 +6 query II rowsort SELECT DISTINCT 10 AS col0, 60 + 28 * + 91 AS col1 @@ -25726,8 +26050,11 @@ SELECT - 90 + - - 29 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 "\(\- coalesce\(Int64\(34\), Int64\(\-68\)\)\) / Int64\(62\) \* nullif\(\(\- Int64\(\-43\)\), Int64\(\-55\)\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - COALESCE ( + 34, + - 68 ) / 62 * NULLIF ( - - 43, + - 55 ) AS col0, 17 AS col0 +---- +0 +17 query I rowsort SELECT + 16 * ( - 36 ) + + 96 @@ -25938,8 +26265,11 @@ SELECT ALL - 60 AS col1, - ( + ( - 58 ) ) * - 81 # Datafusion - Datafusion expected results: # Datafusion - Expected - -31 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-31\) AS col2" at position 0 and "Int64\(\-28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 31 col2, - 28 AS col2 +---- +-28 +-31 query II rowsort SELECT ALL - + 99, - 65 * + + 49 AS col1 @@ -25996,8 +26326,11 @@ SELECT DISTINCT + 40 + 1 # 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\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 60 AS col2, 33 AS col2 +---- +33 +60 query II rowsort label-4941 SELECT - 92 AS col0, COUNT ( * ) @@ -26206,8 +26539,11 @@ SELECT ALL - - 78 / + 39 + 57 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "\(\- CAST\(Int64\(\-12\) AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 14 + + + CAST ( NULL AS INTEGER ) col0, - CAST ( - 12 AS INTEGER ) AS col0 +---- +12 +NULL query I rowsort SELECT ALL + 56 * + 96 @@ -26435,8 +26771,11 @@ SELECT ALL COALESCE ( 43, - - 4, - - NULLIF ( + 88, 20 * - 84 - + 74 * 30 / + 91 # 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\(7\) \* Int64\(13\) AS col2" at position 0 and "\(\- \(\- CASE Int64\(24\) WHEN Int64\(85\) THEN NULL WHEN Int64\(7\) THEN coalesce\(Int64\(42\), Int64\(\-63\)\) END\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 7 * + 13 AS col2, - ( - CASE 24 WHEN + 85 THEN NULL WHEN + 7 THEN COALESCE ( + ( 42 ), - 63 ) END ) AS col2 +---- +91 +NULL query II rowsort label-5025 SELECT 5 AS col0, MAX ( DISTINCT - 2 ) AS col1 @@ -26550,8 +26889,11 @@ 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\(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\. +query II valuesort SELECT 11 AS col0, 51 + 4 / COUNT ( * ) * - + SUM ( - 16 ) * + COUNT ( + 88 ) AS col0 +---- +11 +115 query II rowsort SELECT ALL + 46 col0, 43 @@ -26589,8 +26931,11 @@ SELECT ALL - 28 * + 69 * 71 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col1" at position 0 and "Int64\(\-92\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 28 AS col1, - 92 AS col1 +---- +-92 +28 query I rowsort SELECT ALL + - 86 * + NULLIF ( 17, 31 ) @@ -26754,8 +27099,11 @@ SELECT DISTINCT - 32 - 90 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -15 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(\-15\) AS Int32\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + CAST ( - 15 AS INTEGER ) AS col2, + COUNT ( * ) AS col2 +---- +-15 +1 query I rowsort label-5084 SELECT COUNT ( * ) - + ( 19 ) + COUNT ( * ) * + 11 @@ -26885,8 +27233,11 @@ SELECT + 81 - - + 51 - + + 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2259 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-90\) \* \(\- Int64\(\-24\)\) \+ Int64\(\-99\) AS col0" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 90 * - - 24 + - 99 AS col0, - CAST ( NULL AS INTEGER ) AS col0 +---- +-2259 +NULL query II rowsort SELECT ALL 16, + 71 + + 83 col1 @@ -27282,8 +27633,11 @@ SELECT ALL + + CAST ( + 12 AS INTEGER ) + + ( + 45 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ Int64\(37\) \+ Int64\(27\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - COUNT ( * ) + 37 + + 27 AS col1, + COUNT ( * ) AS col1 +---- +1 +63 query I rowsort label-5184 SELECT DISTINCT + COUNT ( * ) + + 68 + - COUNT ( * ) @@ -27879,8 +28233,11 @@ 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\(1\)\) AS count\(\*\), Int64\(22\) \+ Int64\(\-31\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 77 * 29 col1, NULLIF ( COUNT ( * ), 22 + - 31 ) AS col1 +---- +1 +2233 query I rowsort SELECT ALL 65 + - 23 AS col2 @@ -28234,8 +28591,11 @@ SELECT DISTINCT + 60, 15 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -34 # Datafusion - Expected - -95 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-34\) AS col1" at position 0 and "Int64\(\-95\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 34 AS col1, - 95 AS col1 +---- +-34 +-95 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -28371,8 +28731,11 @@ SELECT DISTINCT 77 / + - 99 + COUNT ( DISTINCT - 33 ) * 4 + + 87 * MIN ( 73 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) / Int64\(\-50\) \+ Int64\(\-94\) \+ Int64\(\-61\) \* \(\- count\(\(\- Int64\(3\)\)\)\) \+ Int64\(59\) \- Int64\(81\) AS col1" at position 0 and "Int64\(5\) \* Int64\(\-44\) \* \(\- Int64\(30\)\) \+ Int64\(43\) \* CAST\(NULL AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 47 / - 50 + - 94 + - 61 * + - COUNT ( - ( 3 ) ) + + 59 - + ( 81 ) col1, + 5 * - 44 * - + 30 + + 43 * CAST ( NULL AS INTEGER ) AS col1 +---- +-55 +NULL query I rowsort label-5387 SELECT + 19 / - - 42 + 34 + 66 - - 78 * - + 51 + + 88 @@ -28638,8 +29001,11 @@ 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\(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\. +query II valuesort SELECT CASE - 67 WHEN + 23 THEN NULL WHEN COUNT ( * ) - COUNT ( * ) / - - 34 THEN + 71 END AS col0, - 78 AS col0 +---- +-78 +NULL query II rowsort label-5438 SELECT ALL + 51 + - 28 col2, - COUNT ( * ) @@ -28748,8 +29114,11 @@ SELECT - MAX ( DISTINCT + + 93 ) + 35 * 73 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* CASE Int64\(41\) WHEN Int64\(\-77\) \+ Int64\(\-13\) \- Int64\(48\) THEN Int64\(36\) WHEN Int64\(97\) THEN NULL END \+ \(\- Int64\(23\)\) \+ Int64\(\-30\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 7 AS col2, COUNT ( * ) * + CASE 41 WHEN - 77 + - 13 - 48 THEN 36 WHEN + 97 THEN NULL END + - + 23 + - 30 + + COUNT ( * ) AS col2 +---- +7 +NULL query I rowsort label-5459 SELECT - MAX ( - - 88 ) / - 92 * - + 7 @@ -29024,8 +29393,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + COUNT ( * ) ) AS col2, - 53 AS col2 +---- +-53 +1 query II rowsort SELECT 17 AS col0, - ( + ( - + 53 ) ) * + 10 - NULLIF ( 56, + - 27 ) - + - 70 + + - 77 * + - COALESCE ( - 20, + 61 * 37 + 95, - 4 ) * + 39 @@ -29280,8 +29652,11 @@ SELECT 87 * - + ( - 33 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, COUNT ( * ) AS col0 +---- +-1 +1 query I rowsort SELECT DISTINCT 23 + - 74 @@ -29316,8 +29691,11 @@ SELECT SUM ( + 34 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -3978 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(\-51\) \- \(\- Int64\(\-60\)\) \* count\(CAST\(NULL AS Int32\)\) \* Int64\(79\) AS col0" at position 0 and "CAST\(Int64\(79\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 78 * + - 51 - - - 60 * + COUNT ( CAST ( NULL AS INTEGER ) ) * + 79 AS col0, + CAST ( 79 AS INTEGER ) AS col0 +---- +-3978 +79 query I rowsort label-5567 SELECT SUM ( + 8 ) AS col0 @@ -30329,8 +30707,11 @@ 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\(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\. +query II valuesort 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 +---- +-33 +-60 query I rowsort label-5759 SELECT ALL + - ( + COUNT ( * ) ) col0 @@ -31509,8 +31890,11 @@ 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\(29\) AS col2" at position 0 and "Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 AS col2, + 62 col2 +---- +29 +62 query I rowsort SELECT - 77 * - - 43 AS col2 @@ -31824,8 +32208,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 12 + + 97 - + - COALESCE ( + + 94, - + 1 ) AS col0, - COUNT ( * ) AS col0 +---- +-1 +203 query I rowsort label-6048 SELECT 50 + + 64 / - + COUNT ( * ) @@ -31969,14 +32356,20 @@ SELECT 40 * 9 * 10 * 26 * - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -80 # Datafusion - Expected - -304 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-80\) AS col0" at position 0 and "Int64\(16\) \* Int64\(\-19\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 80 AS col0, 16 * - 19 AS col0 +---- +-304 +-80 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col1" at position 0 and "Int64\(39\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 AS col1, 39 AS col1 +---- +-82 +39 query I rowsort label-6077 SELECT ALL - 24 * COALESCE ( - - 88, 94 * 52 + + COUNT ( * ) * - 72 ) @@ -31991,8 +32384,11 @@ SELECT ALL - CAST ( + 84 AS INTEGER ) + - ( 11 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 29 # Datafusion - Expected - 77 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col0" at position 0 and "Int64\(77\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 29 AS col0, 77 AS col0 +---- +29 +77 query I rowsort SELECT ALL + 52 + 13 AS col2 @@ -32122,8 +32518,11 @@ SELECT 32 AS col1, + 50 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col2" at position 0 and "Int64\(50\) \+ \(\- Int64\(\-32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 69 AS col2, + ( + 50 ) + - - 32 AS col2 +---- +69 +82 query I rowsort label-6105 SELECT ALL 89 + + - 70 * CAST ( 53 AS INTEGER ) AS col1 @@ -33220,8 +33619,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT + 75 + - MAX ( + - 9 ) AS col0, + 64 / 37 + - COUNT ( * ) + - - 71 / + + SUM ( 88 ) + - 94 AS col0 +---- +-94 +84 query I rowsort SELECT DISTINCT 65 + + + 25 AS col1 @@ -33386,8 +33788,11 @@ SELECT - SUM ( DISTINCT 49 ) col1, - CAST ( - 56 AS INTEGER ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(count\(Int64\(1\)\) AS count\(\*\) AS Int32\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) AS col1, 14 AS col1 +---- +1 +14 query I rowsort SELECT DISTINCT 33 + 50 + 67 @@ -33492,8 +33897,11 @@ SELECT + ( + 75 ) / - 99 + - + COUNT ( - 8 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(92\)\) AS col0" at position 0 and "Int64\(36\) \* \(\- CAST\(NULL AS Int32\)\) / Int64\(\-9\) \* Int64\(72\) \* \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-50\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( ALL + + 92 ) AS col0, + 36 * - CAST ( NULL AS INTEGER ) / - 9 * 72 * - - COUNT ( * ) - - 50 + + COUNT ( * ) AS col0 +---- +1 +NULL query I rowsort label-6365 SELECT CAST ( COUNT ( - 75 ) AS INTEGER ) @@ -34351,8 +34759,11 @@ SELECT DISTINCT - ( - COUNT ( + 55 ) ) * - - MIN ( - 82 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 720 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-9\) \* \(\- Int64\(80\)\) AS col0" at position 0 and "Int64\(\-66\) \+ \(\- Int64\(\-82\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 9 * - + 80 AS col0, - 66 + - - 82 AS col0 +---- +16 +720 query II rowsort label-6528 SELECT ALL ( + 14 ) * - 27 AS col0, 32 * + + 13 / COUNT ( * ) * - 67 AS col2 @@ -34444,8 +34855,11 @@ SELECT 47 * 0 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -89 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT DISTINCT - 89 AS col0, 98 AS col0 +---- +-89 +98 query I rowsort SELECT ALL + 60 + + 53 AS col1 @@ -34529,8 +34943,11 @@ SELECT - + 42 + + 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Float64\)\) \- max\(DISTINCT Int64\(42\)\) AS col1" at position 0 and "Int64\(96\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + - CAST ( NULL AS FLOAT8 ) - + MAX ( DISTINCT 42 ) AS col1, 96 AS col1 +---- +96 +NULL query I rowsort label-6561 SELECT + + COUNT ( ALL + - ( - 6 ) ) - - - COUNT ( * ) AS col0 @@ -34583,8 +35000,11 @@ 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\(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\. +query II valuesort SELECT + + COUNT ( * ) + - 18 + 84 col0, - 49 + 39 AS col0 +---- +-10 +67 query I rowsort label-6571 SELECT - 23 / COUNT ( * ) - + + COUNT ( * ) / + ( + - 71 ) col0 @@ -34784,8 +35204,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 46 * - ( + COUNT ( * ) ) AS col0, 43 - 8 AS col0 +---- +-46 +35 query II rowsort label-6610 SELECT DISTINCT SUM ( ALL 32 ) - - - 78, CAST ( - MIN ( ALL - - 53 ) AS INTEGER ) AS col0 @@ -35118,8 +35541,11 @@ SELECT + COUNT ( * ) * - 93 # Datafusion - Datafusion expected results: # Datafusion - Expected - 76 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col2" at position 0 and "nullif\(Int64\(28\), Int64\(86\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 76 col2, + NULLIF ( 28, 86 ) AS col2 +---- +28 +76 query I rowsort SELECT ALL 17 - + 52 AS col2 @@ -35271,8 +35697,11 @@ 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\(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\. +query II valuesort 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 +---- +3 +NULL query I rowsort SELECT + 45 + + + ( + - 29 ) * - ( 23 ) col0 @@ -36318,8 +36747,11 @@ SELECT ALL + 31 / - - 80 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 234 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(\-12\), Int64\(46\)\) / Int64\(\-22\) AS col0" at position 0 and "Int64\(\-13\) \* Int64\(\-18\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COALESCE ( - 12, 46 ) / + - 22 AS col0, - 13 * - 18 AS col0 +---- +0 +234 query I rowsort SELECT - 27 * 84 @@ -36540,8 +36972,11 @@ SELECT DISTINCT - + 48 * - 62 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -28 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-28\) AS col2" at position 0 and "Int64\(55\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 28 AS col2, 55 col2 +---- +-28 +55 query I rowsort label-6941 SELECT + CASE - 94 WHEN + + 55 / + MAX ( + 43 ) + + 76 + 45 THEN + - 43 / - CAST ( + 19 AS INTEGER ) END AS col1 @@ -36705,8 +37140,11 @@ 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\(1\)\) AS count\(\*\)\) \+ Int64\(22\) \* Int64\(82\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 83 AS col2, + 95 + - COUNT ( * ) + + 22 * 82 col2 +---- +1898 +83 query II rowsort SELECT - 94, - 68 + - + 98 AS col0 @@ -37108,8 +37546,11 @@ 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\(Int64\(1\)\) AS count\(\*\), min\(DISTINCT Int64\(72\)\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 AS col0, - COALESCE ( + COUNT ( * ), + MIN ( DISTINCT + 72 ) ) AS col0 +---- +-1 +64 query I rowsort SELECT - 47 * + 55 AS col1 @@ -37424,8 +37865,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col0" at position 0 and "Int64\(84\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 10 AS col0, 84 col0 +---- +10 +84 query I rowsort label-7108 SELECT 25 + + + SUM ( ALL 53 ) @@ -37548,8 +37992,11 @@ 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\(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\. +query II valuesort 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 +---- +83 +NULL query I rowsort label-7131 SELECT + COUNT ( * ) * - + ( + 28 ) + 34 @@ -37722,8 +38169,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL ( COUNT ( * ) ), + 78 col1, - COUNT ( * ) AS col1 +---- +-1 +1 +78 query I rowsort label-7163 SELECT DISTINCT + - 19 + - - ( 74 ) + - CAST ( NULL AS INTEGER ) + + ( - 28 ) AS col2 @@ -38024,8 +38475,11 @@ 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\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-64\)\) \* Int64\(\-40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + ( + 12 ) AS col1, 85 + 98 - - - 15 + - COUNT ( * ) * - - 64 * - 40 AS col1 +---- +-12 +2728 query I rowsort label-7220 SELECT DISTINCT - - 60 * + - COUNT ( * ) + - - COUNT ( - 68 ) * 98 col1 @@ -38212,8 +38666,11 @@ SELECT + 5 / 65 - SUM ( ALL - 81 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 50 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(50\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \+ Int64\(\-89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 50 col0, CAST ( NULL AS INTEGER ) + - 89 AS col0 +---- +50 +NULL query I rowsort label-7256 SELECT ALL MAX ( DISTINCT - 64 ) @@ -38351,14 +38808,20 @@ SELECT - - 91 * + COUNT ( + 84 ) + COALESCE ( 41, - 42, + 8, 65 ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - -5915 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "Int64\(91\) \* Int64\(\-65\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 88 AS col1, 91 * - 65 col1 +---- +-5915 +88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 110 # Datafusion - Expected - -76 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) \+ Int64\(93\) AS col2" at position 0 and "Int64\(\-76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 17 + + 93 AS col2, - 76 AS col2 +---- +-76 +110 query I rowsort label-7284 SELECT ALL + 12 / 31 AS col2 @@ -39913,8 +40376,11 @@ SELECT + 81 + - COALESCE ( + COUNT ( * ), + 12, + 88 + - 40 ) + - 40 / COUNT ( * # Datafusion - Datafusion expected results: # Datafusion - Expected - -88 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) AS col0" at position 0 and "Int64\(\-69\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 88 col0, - 69 col0 +---- +-69 +-88 query I rowsort label-7583 SELECT DISTINCT - NULLIF ( + + 8, + 82 / + + 85 - + - 52 ) - CAST ( COUNT ( * ) AS INTEGER ) AS col2 @@ -40084,20 +40550,29 @@ 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\(1\)\) AS count\(\*\) \* Int64\(37\) \- Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT SUM ( ALL 17 ) col2, COUNT ( * ) * 37 - + 33 AS col2 +---- +17 +4 # 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\(1\)\) AS count\(\*\) \+ Int64\(55\) \* \(\- Int64\(34\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 * + - 24 AS col0, COUNT ( * ) + ( + 55 ) * - + ( + 34 ) AS col0 +---- +-1704 +-1869 # 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\(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\. +query II valuesort SELECT ALL - 6 AS col1, 64 * + - COUNT ( * ) * - + 22 - 98 + + 21 + 43 / + 28 AS col1 +---- +-6 +1332 query I rowsort SELECT 42 + + CASE - + 21 WHEN - 18 - + - 18 - ( - 0 ) THEN ( - 75 ) END AS col0 @@ -40144,8 +40619,11 @@ SELECT ALL + 91 + 20 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 0 and "Int64\(79\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 AS col1, 79 AS col1 +---- +34 +79 query I rowsort SELECT 57 * 26 @@ -40286,8 +40764,11 @@ SELECT - 10 * + 95, - 92 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - -196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-76\) AS col0" at position 0 and "Int64\(\-49\) \* Int64\(4\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 76 ) col0, - 49 * + 4 AS col0 +---- +-196 +-76 query II rowsort SELECT ( 34 ) AS col1, + 16 AS col2 @@ -40594,8 +41075,12 @@ SELECT 21 + + + 73 / 59 / - 79 * + 51 * + 36 + 42 AS col1 # Datafusion - Expected - 53 # Datafusion - Expected - 42 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col1" at position 1 and "Int64\(72\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 8 / COUNT ( * ) + + 45, 42 AS col1, + + 72 AS col1 +---- +42 +53 +72 query I rowsort SELECT - 82 * - 40 AS col2 @@ -40630,8 +41115,11 @@ SELECT 77 * - - 24 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col2" at position 0 and "Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 AS col2, 24 AS col2 +---- +24 +75 query I rowsort label-7717 SELECT SUM ( - 36 ) AS col0 @@ -40809,8 +41297,11 @@ SELECT + 23 - + 94 + + 8 * - - 15 * 62 * COUNT ( * ) + - ( 21 ) / - - ( 62 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col2" at position 0 and "Int64\(\-83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 11 AS col2, - 83 AS col2 +---- +-83 +11 query I rowsort label-7752 SELECT ALL CAST ( - + 44 AS INTEGER ) + + 50 / + 25 / + ( + 16 ) / SUM ( DISTINCT - ( + CAST ( NULL AS INTEGER ) ) ) * + 36 + + 51 * + 15 + 44 / 75 @@ -40880,8 +41371,11 @@ SELECT ALL - 74 * 95 * - 15 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 74 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(70\) AS col2" at position 0 and "Int64\(74\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 70 col2, 74 AS col2 +---- +70 +74 query I rowsort SELECT + + 79 * + 52 @@ -41115,8 +41609,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 63 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) AS col1" at position 0 and "CAST\(NULL AS Int32\) / Int64\(23\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 AS col1, CAST ( NULL AS INTEGER ) / 23 AS col1 +---- +63 +NULL query I rowsort label-7809 SELECT + + COALESCE ( - SUM ( - 41 ), - + 77, + - ( - 37 ) - - 66 ) * - 79 + + 1 AS col1 @@ -41194,8 +41691,11 @@ SELECT 96 + + + COUNT ( * ) # 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 Float64\) \+ Int64\(\-8\) AS col2" at position 0 and "Int64\(0\) \* Int64\(76\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT CAST ( NULL AS FLOAT8 ) + - 8 AS col2, + 0 * + + 76 AS col2 +---- +0 +NULL query I rowsort SELECT 12 * NULLIF ( 75, + 19 ) * 75 @@ -41546,8 +42046,11 @@ SELECT - 73 * 74 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(\-72\)\) AS col0" at position 0 and "Int64\(\-96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT MIN ( DISTINCT - 72 ) AS col0, - 96 AS col0 +---- +-72 +-96 query I rowsort SELECT ALL NULLIF ( - 2, 24 ) AS col0 @@ -41842,8 +42345,11 @@ SELECT ALL COUNT ( - 18 ) * + - ( + ( - + CASE 77 WHEN 27 THEN - + 49 WHEN - + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -6507 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col1" at position 0 and "Int64\(4\) \* Int64\(\-18\) \+ Int64\(65\) \* \(\- min\(Int64\(99\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 67 AS col1, 4 * - 18 + ( 65 ) * + - MIN ( ALL 99 ) AS col1 +---- +-6507 +67 query I rowsort SELECT ALL 44 + - NULLIF ( + - 58, - 6 * + - 92 ) AS col0 @@ -42125,8 +42631,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2759 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) \* Int64\(31\) AS col2" at position 0 and "Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 89 * + + 31 AS col2, - 71 AS col2 +---- +-71 +2759 query II rowsort label-7998 SELECT - 93 * + 1 * - COUNT ( * ), 24 / + 24 AS col1 @@ -42358,8 +42867,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 61 * - 10 AS col2, - COUNT ( * ) AS col2 +---- +-1 +610 query I rowsort label-8042 SELECT ALL 33 - - + 9 * - 71 + ( + - 72 ) - COUNT ( * ) AS col2 @@ -42807,8 +43319,11 @@ SELECT ALL - 38 * - 9 + - 19 + - NULLIF ( 69, + 72 ) * + 39 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 col1" at position 0 and "min\(Int64\(86\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 AS col1, + MIN ( 86 ) AS col1 +---- +3 +86 query I rowsort SELECT + 88 - - - 73 AS col2 @@ -43446,8 +43961,11 @@ SELECT ALL - 12 * - 87 # Datafusion - Datafusion expected results: # Datafusion - Expected - 87 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(87\) AS col0" at position 0 and "Int64\(56\) \+ \(\- Int64\(46\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 87 AS col0, + 56 + - + 46 AS col0 +---- +10 +87 query I rowsort label-8250 SELECT + - CAST ( NULL AS INTEGER ) + COUNT ( * ) * 90 * 26 @@ -43545,8 +44063,11 @@ SELECT DISTINCT + 41 * 97 AS col1, COUNT ( * ) + - 36 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 6 # Datafusion - Expected - 5059 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) AS col2" at position 0 and "\(\- sum\(DISTINCT Int64\(68\)\)\) \+ Int64\(87\) \- Int64\(\-60\) \* Int64\(84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 6 AS col2, - SUM ( DISTINCT + 68 ) + 87 - - 60 * + 84 AS col2 +---- +5059 +6 query I rowsort label-8269 SELECT ALL 78 * COUNT ( - CAST ( NULL AS FLOAT8 ) ) * - COUNT ( * ) - - 17 AS col1 @@ -44176,8 +44697,11 @@ SELECT ALL - COUNT ( - 27 ) * 59 + + 22 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 AS col0, CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0 +---- +69 +NULL query I rowsort label-8390 SELECT + COUNT ( * ) * + 24 @@ -44350,8 +44874,11 @@ SELECT 74, COUNT ( * ) + - 40 AS col0 # 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\(\-43\) AS col1" at position 0 and "Int64\(17\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 43 col1, 17 AS col1 +---- +-43 +17 query I rowsort label-8422 SELECT CASE - 71 WHEN - 52 THEN + 58 + - - ( - COALESCE ( + - 16, - MAX ( ALL + - 1 ) * 76 + - + 2, COUNT ( * ) ) ) END / + 47 AS col1 @@ -44478,8 +45005,12 @@ NULL # Datafusion - Expected - -3920 # Datafusion - Expected - 69 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(98\) \* Int64\(\-40\) AS col2" at position 0 and "Int64\(\-91\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT 98 * - 40 AS col2, - COUNT ( * ) * - 69, - 91 AS col2 +---- +-3920 +-91 +69 query I rowsort label-8445 SELECT + 50 * + COUNT ( * ) / + CASE 28 WHEN + - 33 THEN NULL WHEN - ( ( + ( + 18 ) ) ) THEN - 45 ELSE + 4 + 99 + 92 END / - - 4 @@ -44817,8 +45348,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 AS col1, COUNT ( * ) AS col1 +---- +1 +21 query I rowsort label-8510 SELECT + 51 + - + 73 + - COUNT ( * ) @@ -44846,8 +45380,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) + - - 54 AS col2, - 22 AS col2 +---- +-22 +55 query I rowsort label-8515 SELECT ALL - 19 * - + ( 41 ) + - COUNT ( * ) + - 44 * 71 AS col1 @@ -44877,8 +45414,11 @@ SELECT - 25 + 62 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 1232 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(87\) AS Int32\)\) AS col2" at position 0 and "Int64\(43\) \+ Int64\(32\) \+ count\(Int64\(1\)\) AS count\(\*\) \- Int64\(\-34\) \* max\(DISTINCT Int64\(34\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( 87 AS INTEGER ) AS col2, + 43 + 32 + + COUNT ( * ) - - 34 * MAX ( DISTINCT + 34 ) col2 +---- +-87 +1232 query I rowsort label-8521 SELECT DISTINCT + SUM ( DISTINCT - 95 ) / - 4 + - 38 + - 4 * MIN ( DISTINCT 54 ) @@ -45015,14 +45555,20 @@ SELECT ALL NULLIF ( - 3, + 49 / + CAST ( - 39 AS INTEGER ) + + 68 + - 14 + COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) AS col1" at position 0 and "Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 9 AS col1, + 82 AS col1 +---- +82 +9 # Datafusion - Datafusion expected results: # Datafusion - Expected - 11 # Datafusion - Expected - -31 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) AS col1" at position 0 and "Int64\(54\) \+ Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 11 col1, 54 + - 85 AS col1 +---- +-31 +11 query I rowsort label-8548 SELECT DISTINCT COUNT ( * ) * NULLIF ( 87, - CASE + 70 WHEN + + 60 THEN - 81 + 70 ELSE 86 END + - ( - 79 ) ) / - + 25 + - MAX ( DISTINCT + + CASE NULLIF ( - 3, - 6 ) WHEN - 82 + 78 THEN + 99 END ) @@ -45232,8 +45778,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 # Datafusion - Expected - 93 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(58\) AS col1" at position 0 and "Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 58 AS col1, 93 AS col1 +---- +58 +93 query II rowsort label-8587 SELECT DISTINCT - 63 + CAST ( NULL AS INTEGER ) + MIN ( DISTINCT - 37 ) / - 7 + + - 71 AS col1, - 25 * - 88 AS col0 @@ -45274,8 +45823,11 @@ SELECT - COUNT ( * ) AS col1, ( + 0 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- nullif\(Int64\(76\), Int64\(0\) \+ Int64\(6\)\)\) WHEN Int64\(78\) \* Int64\(\-67\) \+ Int64\(89\) \+ Int64\(8\) THEN Int64\(16\) ELSE NULL END AS col0" at position 0 and "Int64\(97\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CASE - ( + NULLIF ( 76, - 0 + + 6 ) ) WHEN + + 78 * - 67 + + 89 + 8 THEN + 16 ELSE NULL END col0, 97 AS col0 +---- +97 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -45728,8 +46280,11 @@ SELECT ALL 65 + 55 * - 49 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 390 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(30\) \* Int64\(13\) AS col0" at position 0 and "Int64\(22\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 30 * 13 col0, 22 AS col0 +---- +22 +390 query I rowsort SELECT ALL 89 - - ( + + 92 ) @@ -45781,8 +46336,12 @@ SELECT MIN ( 57 ) - 37 # Datafusion - Expected - -20 # Datafusion - Expected - -51 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-50\) \- count\(DISTINCT Int64\(76\)\) AS col2" at position 1 and "Int64\(98\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + - 74 / - 17 - 68 + 44, - 50 - COUNT ( DISTINCT + 76 ) AS col2, 98 AS col2 +---- +-20 +-51 +98 query I rowsort label-8690 SELECT 87 / - 70 @@ -46090,8 +46649,11 @@ SELECT DISTINCT - 4 * + 67 # 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 col2" at position 0 and "Int64\(8\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 27 AS col2, 8 col2 +---- +27 +8 query I rowsort SELECT - 78 * - + 87 @@ -46174,8 +46736,11 @@ SELECT - - 79 * + 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE \(\- Int64\(\-63\)\) WHEN Int64\(8\) \+ \(\- avg\(Int64\(70\)\)\) THEN Int64\(\-74\) \+ count\(Int64\(52\)\) \+ Int64\(38\) \- \(\- CAST\(NULL AS Int32\)\) \* Int64\(\-36\) END \* Int64\(64\) \* Int64\(\-63\) AS col0" at position 0 and "Int64\(16\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + CASE - - 63 WHEN + + 8 + - AVG ( + 70 ) THEN - 74 + COUNT ( ALL + 52 ) + + 38 - - CAST ( NULL AS INTEGER ) * - 36 END * + 64 * + + ( - 63 ) AS col0, 16 AS col0 +---- +16 +NULL query I rowsort label-8765 SELECT + CAST ( - 97 AS INTEGER ) AS col1 @@ -46393,8 +46958,11 @@ SELECT - 78, - 86 + + + 22 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 107 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "Int64\(69\) \+ Int64\(38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 AS col0, 69 + 38 AS col0 +---- +107 +26 query I rowsort label-8807 SELECT 53 * + COUNT ( DISTINCT + 16 ) * - - 51 + 23 * SUM ( + - 10 ) AS col2 @@ -46879,8 +47447,11 @@ SELECT ALL - SUM ( DISTINCT - 8 ) AS col1 # 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 "Int64\(96\) / Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 AS col0, 96 / 63 col0 +---- +1 +79 query I rowsort label-8901 SELECT - SUM ( + 32 ) * + 33 * MAX ( - - 84 ) + - 72 * COALESCE ( + 55, + 77, - - NULLIF ( - + ( - 29 ), 7 ) * + + 2 + + 86 + - + ( 32 ) + 1 / + + 17 + - - 51 ) + + COALESCE ( + 89, + 79 ) * 19 @@ -47174,8 +47745,11 @@ SELECT ALL - 24 / + 30 * 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "max\(Int64\(85\)\) AS col0" at position 0 and "Int64\(58\) \* Int64\(94\) \+ Int64\(1\) \+ CAST\(NULL AS Int32\) \* Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + MAX ( ALL + + 85 ) AS col0, + 58 * 94 + + 1 + CAST ( NULL AS INTEGER ) * - 65 AS col0 +---- +85 +NULL query I rowsort label-8955 SELECT ALL + - COUNT ( * ) - - + ( 92 ) AS col2 @@ -48990,8 +49564,11 @@ SELECT - 2 AS col1, COUNT ( - 21 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-53\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, - 53 AS col2 +---- +-53 +1 query I rowsort label-9309 SELECT MIN ( DISTINCT ( + 17 ) ) col1 @@ -49272,8 +49849,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) / + 44 AS col0, 65 AS col0 +---- +0 +65 query I rowsort SELECT 32 - - - 19 @@ -50345,8 +50925,11 @@ SELECT - - 68 * + - 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 69 AS col2, + COUNT ( * ) AS col2 +---- +-69 +1 query I rowsort SELECT ALL ( ( + + 62 ) ) AS col0 @@ -50750,8 +51333,11 @@ SELECT + 39 * - - 90 * + 94 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-29\) AS col2" at position 0 and "Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 29 AS col2, + 64 AS col2 +---- +-29 +64 query I rowsort label-9651 SELECT DISTINCT - SUM ( 64 ) AS col0 @@ -50918,8 +51504,11 @@ SELECT + 37 * 53 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-57\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 57 AS col1, 55 AS col1 +---- +-57 +55 query I rowsort label-9683 SELECT ALL COUNT ( * ) * + 39 + + + COUNT ( * ) @@ -51126,8 +51715,11 @@ 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\(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\. +query II valuesort SELECT + - COUNT ( * ), - COUNT ( * ) +---- +-1 +-1 query I rowsort SELECT DISTINCT 57 * + - 62 * - 59 @@ -51210,8 +51802,11 @@ SELECT - + MIN ( ALL + 19 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -94 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-94\) AS col0" at position 0 and "count\(Int64\(50\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 94 AS col0, + COUNT ( 50 ) AS col0 +---- +-94 +1 query I rowsort label-9739 SELECT - 81 / + 44 AS col0 @@ -51757,8 +52352,11 @@ SELECT ALL - 59, - COUNT ( * ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "min\(Int64\(45\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 AS col2, + MIN ( ALL 45 ) AS col2 +---- +13 +45 query I rowsort label-9847 SELECT - SUM ( DISTINCT 22 ) AS col2 @@ -52076,8 +52674,11 @@ SELECT COUNT ( * ) * + 63 # 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\(41\) AS col1" at position 0 and "Int64\(32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 41 AS col1, + 32 AS col1 +---- +32 +41 query I rowsort SELECT - - 50 col1 @@ -52149,8 +52750,11 @@ SELECT ALL - 4 AS col2, - 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2412 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* Int64\(24\) \+ Int64\(84\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( + 97 ) * 24 + + + 84 AS col0, COUNT ( * ) AS col0 +---- +1 +2412 query I rowsort label-9923 SELECT ALL - MIN ( - 28 ) + + 80 AS col2 @@ -52350,8 +52954,11 @@ SELECT + ( + + 74 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -22 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) AS col1" at position 0 and "Int64\(5\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 22 AS col1, 5 AS col1 +---- +-22 +5 query I rowsort SELECT 4 * - - 97 + - 31 diff --git a/data/sqlite/random/expr/slt_good_98.slt b/data/sqlite/random/expr/slt_good_98.slt index c913f4a..b37e861 100644 --- a/data/sqlite/random/expr/slt_good_98.slt +++ b/data/sqlite/random/expr/slt_good_98.slt @@ -106,8 +106,11 @@ SELECT + 38 * 90 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col2 +---- +1 +NULL query I rowsort SELECT + 90 * + 61 + + 89 @@ -475,8 +478,11 @@ SELECT - 24 + - - 64 AS col2, 81 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4752 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-88\) \* Int64\(54\) AS col1" at position 0 and "Int64\(48\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 88 * 54 AS col1, 48 AS col1 +---- +-4752 +48 query I rowsort label-87 SELECT DISTINCT - COUNT ( * ) * ( - - 58 ) + + 4 @@ -791,8 +797,11 @@ 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\(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\. +query II valuesort SELECT + ( - + COUNT ( * ) ) AS col1, + COUNT ( * ) * 89 AS col1 +---- +-1 +89 query I rowsort label-147 SELECT ALL - - 7 * - COUNT ( * ) col1 @@ -1820,8 +1829,11 @@ SELECT COUNT ( * ) * 54 # Datafusion - Datafusion expected results: # Datafusion - Expected - 13 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 0 and "Int64\(17\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 13 AS col0, 17 AS col0 +---- +13 +17 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -2256,8 +2268,11 @@ SELECT DISTINCT + SUM ( DISTINCT + 59 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -42 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) AS col1" at position 0 and "Int64\(14\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 42 AS col1, 14 AS col1 +---- +-42 +14 query I rowsort SELECT 47 * + - 77 @@ -3824,8 +3839,11 @@ SELECT ALL 81 - 55 + - 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - -53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* Int64\(1\) AS col1" at position 0 and "Int64\(\-53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 69 * 1 AS col1, - 53 AS col1 +---- +-53 +69 query II rowsort label-737 SELECT ALL + + 22, - NULLIF ( - COUNT ( DISTINCT + 3 ), + 0 ) AS col2 @@ -4065,8 +4083,11 @@ SELECT ALL ( 19 ) / - - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -70 # Datafusion - Expected - -28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-70\) 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 II valuesort SELECT ALL - 70 AS col1, - MAX ( - - 28 ) AS col1 +---- +-28 +-70 query I rowsort label-784 SELECT DISTINCT - MAX ( + 69 ) @@ -4376,8 +4397,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(\-50\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( COUNT ( * ) ) AS col0, - 50 col0 +---- +-1 +-50 query II rowsort label-844 SELECT DISTINCT SUM ( DISTINCT + ( - - 14 ) ) AS col0, 5 AS col1 @@ -4499,8 +4523,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(59\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + ( + 44 ) col0, + COUNT ( * ) * + 59 col0 +---- +-44 +59 query I rowsort SELECT ALL 20 * + 50 AS col0 @@ -6131,8 +6158,11 @@ SELECT ALL - + 82 col1 # 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 "Int64\(\-3\) AS col1" at position 0 and "\(\- Int64\(\-74\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 AS col1, - ( - 74 ) AS col1 +---- +-3 +74 query I rowsort SELECT + 4 + 12 AS col2 @@ -7518,8 +7548,11 @@ SELECT MAX ( + 78 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col2" at position 0 and "Int64\(97\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 66 AS col2, + ( + 97 ) AS col2 +---- +-66 +97 query I rowsort label-1455 SELECT CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0 @@ -7993,8 +8026,11 @@ SELECT ALL COUNT ( 93 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -27 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- max\(Int64\(27\)\)\) AS Int32\)\)\) AS col1" at position 0 and "Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT ( - - ( CAST ( + - MAX ( + 27 ) AS INTEGER ) ) ) AS col1, 22 AS col1 +---- +-27 +22 query I rowsort SELECT DISTINCT 23 col2 @@ -9724,8 +9760,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 6 AS col1, 47 + + - COUNT ( * ) AS col1 +---- +46 +6 query I rowsort SELECT - 81 + + + 10 col2 @@ -11102,8 +11141,11 @@ SELECT DISTINCT + 82 * + - 53 # Datafusion - Datafusion expected results: # Datafusion - Expected - 48 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(48\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 48 AS col1, 20 col1 +---- +20 +48 query I rowsort SELECT 0 + 39 + + 84 @@ -11193,8 +11235,11 @@ SELECT ALL COUNT ( ALL 41 ) + + - COUNT ( * ) AS col2 # 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 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 II valuesort SELECT ALL 41 AS col2, 73 / 90 AS col2 +---- +0 +41 query I rowsort label-2162 SELECT - MIN ( - - 63 ) AS col2 @@ -11414,8 +11459,11 @@ SELECT ALL + 38 + 5, ( - ( + 98 ) ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -58 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- sum\(DISTINCT Int64\(\-58\)\)\)\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - SUM ( DISTINCT - 58 ) AS col0, + COUNT ( * ) AS col0 +---- +-58 +1 query I rowsort label-2205 SELECT ALL 24 / - 49 @@ -11906,8 +11954,11 @@ SELECT ALL ( - - 9 ) # 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\) AS col2" at position 0 and "Int64\(\-89\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 AS col2, - 89 AS col2 +---- +-89 +68 query II rowsort SELECT + 1, 43 AS col1 @@ -12436,8 +12487,11 @@ SELECT ALL + - ( - COUNT ( * ) ) AS col2, COUNT ( * ) # 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 "Int64\(52\) / Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 87 col0, 52 / + 49 AS col0 +---- +1 +87 query I rowsort label-2404 SELECT - ( - COUNT ( * ) ) / - 43 col1 @@ -13189,8 +13243,11 @@ SELECT 85, 83 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 47 # Datafusion - Expected - 814 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) AS col1" at position 0 and "Int64\(\-74\) \* Int64\(\-11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 47 AS col1, - 74 * - 11 AS col1 +---- +47 +814 query I rowsort label-2548 SELECT - CAST ( NULL AS INTEGER ) - 88 AS col0 @@ -13507,8 +13564,11 @@ SELECT 27 / - 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - -76 # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(76\)\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( 76 ) AS col0, + 64 AS col0 +---- +-76 +64 query I rowsort SELECT DISTINCT 6 * - - 85 @@ -13725,8 +13785,11 @@ SELECT - COUNT ( * ) * - 33 col2 # 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 "Int64\(\-75\) AS col2" at position 0 and "Int64\(35\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 75 AS col2, 35 AS col2 +---- +-75 +35 query I rowsort label-2653 SELECT + COUNT ( + 24 ) AS col1 @@ -13736,8 +13799,11 @@ SELECT + COUNT ( + 24 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col1, + COUNT ( * ) AS col1 +---- +1 +1 query I rowsort SELECT - 43 + + + 54 AS col1 @@ -14113,8 +14179,11 @@ SELECT + 93 * + 68 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - -852 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col2" at position 0 and "Int64\(71\) \* Int64\(\-12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 67 AS col2, + 71 * - 12 AS col2 +---- +-852 +67 query II rowsort label-2730 SELECT ALL + 54 * + 75 AS col2, ( + - COUNT ( * ) ) / 41 * - COUNT ( * ) AS col0 @@ -14982,8 +15051,11 @@ SELECT ALL 80 * 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 55 # Datafusion - Expected - 14 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) AS col2" at position 0 and "coalesce\(min\(Int64\(14\)\), Int64\(\-65\) \- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 55 AS col2, + COALESCE ( MIN ( + 14 ), - 65 - + CAST ( NULL AS INTEGER ) ) AS col2 +---- +14 +55 query I rowsort label-2896 SELECT - 79 * MAX ( - - CAST ( NULL AS INTEGER ) ) @@ -16152,8 +16224,11 @@ SELECT ALL - - 87 / + - 83 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(41\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, 41 AS col1 +---- +1 +41 query I rowsort SELECT - ( 47 ) @@ -16337,8 +16412,11 @@ SELECT - - 15 * - COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -18 # Datafusion - Expected - -33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-18\) AS col2" at position 0 and "Int64\(\-33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 18 AS col2, - 33 AS col2 +---- +-18 +-33 query I rowsort SELECT ALL + 37 * - 56 @@ -17459,8 +17537,11 @@ SELECT DISTINCT - COUNT ( * ) * - 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - -7 # Datafusion - Expected - 22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-7\) AS col1" at position 0 and "min\(Int64\(22\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 7 AS col1, MIN ( + 22 ) AS col1 +---- +-7 +22 query I rowsort label-3375 SELECT SUM ( ALL - + 71 ) @@ -17532,8 +17613,11 @@ SELECT - 52 AS col1, - 7 + 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col2" at position 0 and "Int64\(7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 col2, 7 AS col2 +---- +-55 +7 query I rowsort SELECT + 65 * 35 AS col0 @@ -17697,8 +17781,11 @@ SELECT ALL + COUNT ( DISTINCT - ( + - 4 ) ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-69\) AS col2" at position 0 and "Int64\(28\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 69 AS col2, 28 AS col2 +---- +-69 +28 query I rowsort label-3421 SELECT MIN ( + 40 ) @@ -17777,8 +17864,11 @@ SELECT ( - + 54 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2160 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Float64\) \+ \(\- count\(Int64\(\-27\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(72\) \* Int64\(\-30\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT + CAST ( NULL AS FLOAT8 ) + + - COUNT ( - 27 ) + + COUNT ( * ) AS col1, 72 * + - 30 AS col1 +---- +-2160 +NULL query I rowsort label-3436 SELECT DISTINCT 55 * - 17 + COUNT ( * ) AS col0 @@ -18707,8 +18797,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -13 # Datafusion - Expected - -80 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-13\) AS col0" at position 0 and "Int64\(\-80\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 13 AS col0, - 80 col0 +---- +-13 +-80 query I rowsort SELECT - NULLIF ( 73, 84 ) AS col0 @@ -19449,8 +19542,11 @@ SELECT ALL ( + 91 ) + - 4 * COUNT ( * ) + + + 50 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col2, 87 AS col2 +---- +1 +87 query I rowsort SELECT - - 81 col0 @@ -19609,8 +19705,11 @@ SELECT - MIN ( ALL + 97 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(84\) AS Int32\)" at position 0 and "Int64\(84\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + CAST ( 84 AS INTEGER ), + 84 +---- +84 +84 query I rowsort label-3788 SELECT ( - MAX ( ALL - + 7 ) ) @@ -20648,8 +20747,11 @@ NULL # 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 "Int64\(89\) AS col0" at position 0 and "Int64\(11\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 89 col0, 11 col0 +---- +11 +89 query I rowsort SELECT - - 29 * + - 67 @@ -20911,8 +21013,11 @@ SELECT ( 74 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -2 # Datafusion - Expected - 102 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) AS col0" at position 0 and "Int64\(68\) \+ Int64\(34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 2 AS col0, + 68 + 34 AS col0 +---- +-2 +102 query I rowsort label-4040 SELECT + COUNT ( * ) * - 3 * + COALESCE ( - MIN ( + 17 ), 16 ) - + 94 AS col0 @@ -21107,8 +21212,11 @@ SELECT - SUM ( - ( - 78 ) ) + 3 - 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - -91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) AS col1" at position 0 and "Int64\(\-91\) \* Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 AS col1, - 91 * + 1 col1 +---- +-91 +41 query I rowsort SELECT DISTINCT + 14 + + - 11 AS col2 @@ -21853,8 +21961,11 @@ SELECT ALL - ( - SUM ( + ( - 7 ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 71 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) AS col2" at position 0 and "Int64\(\-60\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 71 AS col2, - 60 AS col2 +---- +-60 +71 query I rowsort SELECT DISTINCT 86 + 41 AS col0 @@ -22002,8 +22113,11 @@ SELECT + COALESCE ( - - 81, - 53 ) + - COUNT ( * ) / - + 46 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-21\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( * ) AS col1, COUNT ( * ) * - 21 AS col1 +---- +-21 +1 query I rowsort label-4254 SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + - 20 @@ -23143,8 +23257,11 @@ SELECT 52 * - 73 # Datafusion - Datafusion expected results: # Datafusion - Expected - 92 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) AS col2" at position 0 and "min\(Int64\(\-66\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 92 col2, MIN ( ALL - 66 ) AS col2 +---- +-66 +92 query I rowsort label-4473 SELECT + COUNT ( * ) * + - ( - 95 ) - MIN ( + 71 ) AS col1 @@ -24283,8 +24400,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col0" at position 0 and "Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 74 * - - COUNT ( * ) AS col0, 44 AS col0 +---- +44 +74 query II rowsort label-4691 SELECT ALL + 67 - + COUNT ( * ) + 25 AS col2, - 93 - - 35 + + + 90 @@ -24322,8 +24442,11 @@ SELECT ALL 93 * + 74 AS col2 # 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 "Int64\(86\) \+ Int64\(\-89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 0 AS col1, 86 + - 89 AS col1 +---- +-3 +0 query I rowsort label-4698 SELECT + COUNT ( * ) * COUNT ( * ) * - COUNT ( * ) @@ -24785,8 +24908,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 50 / + + 40 col2, 22 * - 71 * - COUNT ( * ) col2 +---- +1 +1562 query I rowsort SELECT ALL ( - 50 ) @@ -24831,8 +24957,11 @@ SELECT SUM ( ALL + 75 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -490 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) \* Int64\(49\) AS col1" at position 0 and "Int64\(33\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 * 49 AS col1, 33 AS col1 +---- +-490 +33 query I rowsort SELECT + ( ( + 95 ) ) @@ -24979,8 +25108,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "\(\- CAST\(Int64\(92\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col2, - CAST ( 92 AS INTEGER ) AS col2 +---- +-92 +1 query II rowsort label-4824 SELECT ALL - 29 col2, COUNT ( * ) + - - 38 @@ -25340,8 +25472,11 @@ SELECT DISTINCT 80 + - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - -3344 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-82\)\) AS col1" at position 0 and "Int64\(76\) \* \(\- sum\(Int64\(44\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 82 AS col1, 76 * - + SUM ( ALL + + 44 ) AS col1 +---- +-3344 +82 query I rowsort label-4895 SELECT - + 69 * + + 64 / - + 32 + + 47 * 52 @@ -25470,8 +25605,11 @@ SELECT ALL - NULLIF ( - 28, + 16 * + 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) AS col1" at position 0 and "count\(CAST\(Int64\(88\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 15 AS col1, COUNT ( + CAST ( + 88 AS INTEGER ) ) AS col1 +---- +1 +15 query I rowsort SELECT DISTINCT - 18 * 20 col0 @@ -25521,8 +25659,11 @@ SELECT ALL 78 + - 88 # Datafusion - Datafusion expected results: # Datafusion - Expected - -25 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-25\)\)\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( - - 25 ) col2, 12 AS col2 +---- +-25 +12 query I rowsort label-4930 SELECT - + 42 / 51 @@ -26008,8 +26149,11 @@ SELECT ALL COUNT ( * ) + 93 # 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 col2" at position 0 and "Int64\(\-77\) / Int64\(\-23\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 95 AS col2, - 77 / - 23 AS col2 +---- +-95 +3 query I rowsort label-5026 SELECT + COUNT ( * ) - - 14 @@ -26361,8 +26505,11 @@ NULL # 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 col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 72 AS col0, 2 AS col0 +---- +2 +72 query I rowsort SELECT + 0 + + 42 AS col1 @@ -26479,8 +26626,11 @@ SELECT + MIN ( + - 85 ) AS col2 # 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\(2\) AS col0" at position 0 and "Int64\(\-93\) \- Int64\(\-31\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 2 AS col0, - 93 - - 31 AS col0 +---- +-62 +2 query II rowsort SELECT + 33 AS col2, + 44 col1 @@ -26770,8 +26920,11 @@ SELECT 51 * COUNT ( * ) * + 90 # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) AS col2" at position 0 and "Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 14 AS col2, 17 AS col2 +---- +14 +17 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -26907,8 +27060,11 @@ SELECT - + COUNT ( * ) - COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - -1411 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) 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 II valuesort SELECT ALL + 24 AS col0, - 83 * + 17 AS col0 +---- +-1411 +24 query I rowsort SELECT + ( - 62 ) AS col0 @@ -28587,8 +28743,11 @@ SELECT - SUM ( ALL - 87 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -69 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(69\)\) AS col2" at position 0 and "count\(\(\- Int64\(\-57\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 69 AS col2, COUNT ( - - 57 ) AS col2 +---- +-69 +1 query I rowsort label-5528 SELECT + 77 * - COUNT ( * ) + - - 11 AS col1 @@ -28753,8 +28912,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col1" at position 0 and "Int64\(89\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 AS col1, 89 col1 +---- +51 +89 query I rowsort label-5560 SELECT + MIN ( DISTINCT + 39 ) + + 78 AS col0 @@ -28844,8 +29006,11 @@ SELECT ALL 33 * - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 10 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 10 AS col1, COUNT ( * ) * COUNT ( * ) AS col1 +---- +1 +10 query I rowsort label-5578 SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), + 7 ) @@ -28905,8 +29070,12 @@ 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\(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\. +query III valuesort SELECT + 25 * - COUNT ( * ) col1, 60, - NULLIF ( - 38, + + 53 * + MIN ( ALL 72 ) ) + - 23 AS col1 +---- +-25 +15 +60 query I rowsort label-5589 SELECT NULLIF ( + 26, + CAST ( + 43 AS INTEGER ) ) AS col1 @@ -29264,8 +29433,11 @@ SELECT DISTINCT + 21 / + CAST ( - AVG ( - 47 ) AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col2" at position 0 and "\(\- max\(Int64\(\-23\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 51 AS col2, - MAX ( - 23 ) AS col2 +---- +23 +51 query I rowsort label-5660 SELECT + MAX ( ALL 3 ) @@ -29370,8 +29542,11 @@ SELECT ALL COUNT ( * ) * 43 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT Int64\(16\)\) AS col2" at position 0 and "CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( DISTINCT + 16 ) col2, CAST ( - COUNT ( * ) AS INTEGER ) col2 +---- +-1 +16 query I rowsort SELECT 36 * 32 @@ -30559,8 +30734,11 @@ SELECT 72 AS col1, 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - -12 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-12\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 12 col2, - CAST ( NULL AS INTEGER ) col2 +---- +-12 +NULL query I rowsort SELECT ALL 10 * + 75 @@ -31049,8 +31227,11 @@ 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\(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\. +query II valuesort SELECT + 44 / + COUNT ( * ) / - COUNT ( * ) AS col0, - 34 col0 +---- +-34 +-44 query I rowsort SELECT ALL 26 + + 50 AS col0 @@ -31085,8 +31266,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(95\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - COUNT ( * ) AS col0, + 95 AS col0 +---- +-1 +95 query I rowsort SELECT ALL + + 49 col1 @@ -31111,8 +31295,11 @@ 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\(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\. +query II valuesort SELECT - 79 + - COUNT ( * ) AS col0, - COUNT ( 6 ) AS col0 +---- +-1 +-80 query I rowsort SELECT ALL + 59 - - 29 @@ -31463,8 +31650,11 @@ SELECT ALL - COUNT ( * ) + + - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT COUNT ( * ) AS col2, + COUNT ( * ) AS col2 +---- +1 +1 query I rowsort SELECT DISTINCT + ( - + 93 ) AS col1 @@ -31640,8 +31830,11 @@ SELECT ALL - 64 * ( + NULLIF ( - + 76, + 80 ) ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- max\(Int64\(35\)\)\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - MAX ( ALL + 35 ) AS col1, COUNT ( * ) AS col1 +---- +1 +35 query I rowsort SELECT ALL - - 82 * + 67 AS col2 @@ -32787,8 +32980,11 @@ SELECT ALL - 61 + + CAST ( + - 42 AS INTEGER ) AS col1, + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - 2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(38\) AS col0" at position 0 and "Int64\(2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 38 AS col0, + 2 AS col0 +---- +2 +38 query I rowsort SELECT 6 * + 6 @@ -33588,8 +33784,11 @@ SELECT 77 * ( + - COUNT ( * ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -30 # Datafusion - Expected - 94 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-30\) AS col2" at position 0 and "Int64\(94\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 30 AS col2, + 94 col2 +---- +-30 +94 query I rowsort label-6497 SELECT DISTINCT - 33 + - - CAST ( NULL AS INTEGER ) AS col0 @@ -33599,8 +33798,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) \- \(\- CAST\(CAST\(Int64\(1\) AS Int32\) AS Int32\)\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 1 - - CAST ( + CAST ( 1 AS INTEGER ) AS INTEGER ) AS col1, + COUNT ( * ) col1 +---- +1 +2 query II rowsort SELECT 1, 44 - + 14 AS col0 @@ -33768,8 +33970,11 @@ SELECT DISTINCT - - 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 38 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-38\)\) AS col0" at position 0 and "CAST\(NULL AS Int32\) \* CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - 38 ) col0, CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col0 +---- +38 +NULL query II rowsort SELECT - ( 53 ) col2, + 53 @@ -34282,8 +34487,11 @@ SELECT + 84 / - MIN ( 16 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 8 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(8\) AS col0" at position 0 and "Int64\(53\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 8 AS col0, + 53 AS col0 +---- +53 +8 query I rowsort SELECT 70 + 26 AS col1 @@ -34607,8 +34815,11 @@ SELECT MAX ( DISTINCT + + 39 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + COUNT ( * ) AS col2, - 2 AS col2 +---- +-2 +1 query I rowsort SELECT + 3 + - 41 AS col0 @@ -35715,8 +35926,11 @@ SELECT + ( - - ( - COUNT ( * ) ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 20 -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\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 40 AS col2, + 20 AS col2 +---- +20 +40 query I rowsort label-6911 SELECT - - 85 / - 90 AS col2 @@ -35925,8 +36139,11 @@ SELECT ALL + 13 AS col1, SUM ( ALL - - 31 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 34 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col2" at position 0 and "Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 91 col2, 34 AS col2 +---- +34 +91 query II rowsort SELECT + - 20 AS col1, 28 @@ -36041,8 +36258,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 69 # Datafusion - Expected - -20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) AS col2" at position 0 and "Int64\(\-20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 AS col2, ( - 20 ) col2 +---- +-20 +69 query I rowsort label-6973 SELECT ALL - + CAST ( + + 34 AS INTEGER ) @@ -36283,8 +36503,11 @@ SELECT ALL COUNT ( DISTINCT + + ( - + 38 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "CAST\(NULL AS Float64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT - CAST ( NULL AS INTEGER ) AS col2, ( CAST ( NULL AS FLOAT8 ) ) AS col2 +---- +NULL +NULL query II rowsort label-7018 SELECT DISTINCT + 46, ( COUNT ( * ) ) AS col1 @@ -37138,8 +37361,11 @@ SELECT + COUNT ( * ) + + 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - 270 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(15\) \* Int64\(18\) AS col0" at position 0 and "Int64\(15\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 15 * + 18 AS col0, 15 AS col0 +---- +15 +270 query I rowsort SELECT DISTINCT - 38 + + - 49 @@ -37189,8 +37415,11 @@ SELECT ALL - MAX ( + 3 ) AS col0 # 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 "Int64\(27\) AS col0" at position 0 and "Int64\(65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 27 AS col0, 65 AS col0 +---- +27 +65 query II rowsort SELECT 72 - - 9 AS col2, 84 @@ -37225,8 +37454,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ), - COUNT ( * ) +---- +-1 +-1 query I rowsort SELECT - 93 + + 81 @@ -37271,8 +37503,11 @@ SELECT + CASE WHEN NULL IS NULL THEN - ( - 35 ) END # Datafusion - Datafusion expected results: # Datafusion - Expected - -79 # Datafusion - Expected - 138 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(79\)\) AS col2" at position 0 and "Int64\(74\) \+ Int64\(64\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 79 AS col2, + 74 + + 64 AS col2 +---- +-79 +138 query I rowsort SELECT ALL + ( + 28 ) col2 @@ -37772,8 +38007,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 41 col1, - COUNT ( * ) AS col1 +---- +-1 +41 query I rowsort SELECT - 18 + - 23 @@ -38298,8 +38536,11 @@ SELECT + 8 AS col1, - 74 + + 24 # Datafusion - Datafusion expected results: # Datafusion - Expected - 18 # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-18\)\) AS col1" at position 0 and "Int64\(\-27\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 18 AS col1, - 27 AS col1 +---- +-27 +18 query I rowsort label-7409 SELECT DISTINCT CAST ( + 62 AS INTEGER ) * 74 AS col2 @@ -39173,8 +39414,11 @@ SELECT 63 + 74 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -86 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 86 AS col2, + 45 AS col2 +---- +-86 +45 query II rowsort SELECT DISTINCT 25 AS col1, 73 AS col2 @@ -39614,8 +39858,11 @@ SELECT + CAST ( + - 37 AS INTEGER ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -95 # Datafusion - Expected - -35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-95\) AS col1" at position 0 and "Int64\(\-35\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 95 AS col1, - 35 AS col1 +---- +-35 +-95 query I rowsort label-7665 SELECT - COUNT ( * ) + ( - 72 ) @@ -39852,14 +40099,20 @@ SELECT ALL - CAST ( + 26 AS INTEGER ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "Int64\(57\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 88 AS col1, 57 AS col1 +---- +57 +88 # Datafusion - Datafusion expected results: # Datafusion - Expected - 99 # Datafusion - Expected - 25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) AS col2" at position 0 and "Int64\(25\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 99 AS col2, 25 AS col2 +---- +25 +99 query II rowsort SELECT DISTINCT 8 AS col2, NULLIF ( - 71, - 49 ) @@ -40080,8 +40333,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(37\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) col2, + 37 AS col2 +---- +-1 +37 query I rowsort label-7756 SELECT ALL - ( SUM ( + 77 ) ) AS col2 @@ -40441,8 +40697,11 @@ SELECT ( - - 37 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - 2639 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col1" at position 0 and "Int64\(38\) \* Int64\(67\) \+ Int64\(93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 16 AS col1, 38 * + 67 + 93 AS col1 +---- +16 +2639 query I rowsort label-7826 SELECT DISTINCT - + CAST ( COUNT ( * ) AS INTEGER ) AS col1 @@ -40852,8 +41111,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( - 36 ) * - + ( + COUNT ( * ) ) + + + 90 AS col2, ( + + 66 ) AS col2 +---- +66 +89 query I rowsort label-7906 SELECT ALL 95 / - - 78 AS col0 @@ -40898,8 +41160,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT - COUNT ( * ) * + 10 AS col1, - 0 AS col1 +---- +-10 +0 query I rowsort label-7915 SELECT DISTINCT 31 / - - COUNT ( * ) @@ -41127,8 +41392,11 @@ SELECT 16 * COUNT ( * ) / - SUM ( - 39 ) - - 21 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(1\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 1 AS col2, + COUNT ( * ) AS col2 +---- +1 +1 query I rowsort SELECT - ( - - 69 ) col2 @@ -41270,8 +41538,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * 86 AS col2, + 72 AS col2 +---- +72 +86 query I rowsort label-7987 SELECT ( - MIN ( + 20 ) ) * - + CAST ( NULL AS INTEGER ) @@ -42195,8 +42466,11 @@ SELECT + 54 * - + 8 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-7\)\)\) \- \(\- CAST\(NULL AS Int32\)\) AS col0" at position 0 and "Int64\(58\) \- Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( - 7 ) - - CAST ( NULL AS INTEGER ) AS col0, 58 - + 68 AS col0 +---- +-10 +NULL query I rowsort label-8166 SELECT + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) * COUNT ( * ) @@ -42963,8 +43237,11 @@ SELECT SUM ( 9 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "coalesce\(min\(CAST\(NULL AS Int32\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col1, + COALESCE ( MIN ( + CAST ( NULL AS INTEGER ) ), + - COUNT ( * ) ) AS col1 +---- +-1 +1 query I rowsort SELECT DISTINCT 76 + - - 45 AS col0 @@ -43098,8 +43375,11 @@ SELECT ALL 7 - - ( COUNT ( * ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 62 # Datafusion - Expected - -65 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(62\) AS col0" at position 0 and "Int64\(\-65\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 62 AS col0, - 65 AS col0 +---- +-65 +62 query I rowsort label-8343 SELECT 21 + + CAST ( NULL AS INTEGER ) * - - 8 * - 23 @@ -43523,8 +43803,11 @@ SELECT + MAX ( ALL + + 74 ) * - COUNT ( * ), 90 * + COUNT ( * ) * + 60 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-19\) AS col1" at position 0 and "Int64\(13\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 19 AS col1, 13 AS col1 +---- +-19 +13 query II rowsort SELECT 3 AS col2, + 81 * + - 60 AS col0 @@ -44730,8 +45013,11 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) * - 74 AS col0, 25 AS col0 +---- +-74 +25 query I rowsort label-8658 SELECT - - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) @@ -44741,8 +45027,11 @@ SELECT - - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\)\) AS col1" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - CAST ( - COUNT ( * ) AS INTEGER ) AS col1, - COUNT ( * ) AS col1 +---- +-1 +-1 query I rowsort label-8660 SELECT 31 / + 86 @@ -46294,8 +46583,11 @@ SELECT ALL - 90 * + 75 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5521 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-82\)\) \* Int64\(68\) \+ Int64\(\-55\) AS col1" at position 0 and "Int64\(\-85\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - 82 * 68 + + - 55 AS col1, - 85 AS col1 +---- +-85 +5521 query II rowsort label-8963 SELECT + 76, + ( + COUNT ( - 91 ) ) / - 24 AS col0 @@ -46881,8 +47173,11 @@ SELECT - - ( + 43 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 88 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(88\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 88 AS col1, + COUNT ( * ) col1 +---- +1 +88 query I rowsort label-9077 SELECT ALL COUNT ( + 6 ) @@ -46995,8 +47290,11 @@ SELECT DISTINCT MIN ( + 7 ) # 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 "Int64\(9\) AS col2" at position 0 and "Int64\(50\) \+ Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 AS col2, + 50 + 33 AS col2 +---- +83 +9 query I rowsort label-9098 SELECT DISTINCT COUNT ( ALL - + 58 ) @@ -48647,8 +48945,11 @@ 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\(1\)\) AS count\(\*\) \- Int64\(75\) \* Int64\(37\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 56 AS col1, MIN ( DISTINCT - - ( + + 16 ) ) * - 10 - - + 6 * + - 33 * - 1 + ( 16 ) - COUNT ( * ) - + 75 * + 37 AS col1 +---- +-2722 +56 query I rowsort SELECT - NULLIF ( + 97, - 28 ) AS col0 @@ -48679,8 +48980,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 22 + - 74 AS col1, 16 * - COUNT ( * ) AS col1 +---- +-16 +-96 query I rowsort SELECT - 42 + + 9 + - - 43 * 68 * 8 @@ -48797,8 +49101,11 @@ SELECT DISTINCT CASE - - 33 WHEN 18 * + 21 + - + CAST ( NULL AS INTEGER ) - 0 + # Datafusion - Datafusion expected results: # Datafusion - Expected - 84 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) AS col1" at position 0 and "Int64\(7\) / count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 84 AS col1, + 7 / + COUNT ( * ) AS col1 +---- +7 +84 query I rowsort label-9445 SELECT + COALESCE ( - - CAST ( + + 77 AS INTEGER ), + MAX ( DISTINCT + 47 ), 47 - - 5 + + - 38 - COUNT ( * ) ) + COUNT ( * ) + 93 @@ -48897,8 +49204,11 @@ SELECT ALL + NULLIF ( - 26, - + 85 * 76 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(89\)\)\) \+ Int64\(\-17\) \* Int64\(8\) \+ \(\- Int64\(\-84\)\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + ( + ( - + 89 ) ) + + - 17 * + 8 + - - 84 AS col1, 55 AS col1 +---- +37 +55 query I rowsort label-9464 SELECT - MAX ( DISTINCT - + 41 ) / 62 @@ -49393,8 +49703,11 @@ SELECT DISTINCT + 87 * - 61 * - 5 # 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\) AS col2" at position 0 and "Int64\(90\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 51 col2, 90 AS col2 +---- +-51 +90 query I rowsort label-9559 SELECT + 0 + - - 6 + COUNT ( * ) * - 84 + - - 26 col0 @@ -49454,8 +49767,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(\-72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 85 AS col2, COUNT ( * ) + - 72 AS col2 +---- +-71 +-85 query II rowsort label-9571 SELECT + CAST ( NULL AS INTEGER ), + 13 AS col2 @@ -49683,14 +49999,20 @@ SELECT ALL + 77 * 83 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 4 -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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 70 AS col1, 4 AS col1 +---- +4 +70 # Datafusion - Datafusion expected results: # Datafusion - Expected - 19 # Datafusion - Expected - 6014 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) \+ Int64\(12\) AS col2" at position 0 and "Int64\(97\) \* Int64\(62\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 7 + + + ( 12 ) col2, 97 * + + 62 AS col2 +---- +19 +6014 query I rowsort SELECT ALL 19 * + 88 * 64 AS col0 @@ -49773,8 +50095,11 @@ SELECT DISTINCT + COUNT ( * ) + - 73 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -64 # Datafusion - Expected - 70 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-64\) AS col0" at position 0 and "Int64\(70\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 64 AS col0, 70 AS col0 +---- +-64 +70 query I rowsort label-9631 SELECT + CAST ( NULL AS INTEGER ) * 20 AS col1 @@ -49784,8 +50109,11 @@ NULL # 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 "Int64\(33\) / min\(DISTINCT Int64\(10\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 79 AS col1, 33 / + MIN ( DISTINCT + 10 ) col1 +---- +-79 +3 query I rowsort label-9633 SELECT DISTINCT - COALESCE ( - 59, - + COUNT ( * ), 78 * + 98 ) - - ( - 13 ) * - - 6 AS col0 @@ -50371,8 +50699,11 @@ SELECT ALL + COUNT ( * ) + + - 68 + + COUNT ( * ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -43 # Datafusion - Expected - -93 -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\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 43 AS col1, - 93 AS col1 +---- +-43 +-93 query I rowsort SELECT ALL 73 + + 74 @@ -50616,8 +50947,11 @@ NULL # 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\) AS col2" at position 0 and "Int64\(36\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 29 AS col2, 36 AS col2 +---- +29 +36 query I rowsort label-9792 SELECT + - SUM ( DISTINCT + + 51 ) @@ -51048,8 +51382,11 @@ SELECT ALL 35 AS col1, - COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(66\) \+ Int64\(\-89\) \* count\(Int64\(62\)\) AS col2" at position 0 and "Int64\(\-81\) \* \(\- \(\- CASE Int64\(91\) WHEN Int64\(\-68\) \+ Int64\(24\) \* Int64\(\-84\) \* \(\- Int64\(68\)\) \* Int64\(82\) THEN NULL ELSE Int64\(85\) \* \(\- Int64\(88\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ Int64\(46\) \+ \(\- CAST\(\(\- \(\- Int64\(\-71\)\)\) AS Int32\)\) \+ Int64\(52\) END\)\) \+ Int64\(81\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 66 + + - 89 * + COUNT ( ALL 62 ) AS col2, - 81 * - + ( - CASE + 91 WHEN - 68 + 24 * - 84 * - + 68 * 82 THEN NULL ELSE 85 * - + 88 * - + CAST ( NULL AS INTEGER ) + 46 + - CAST ( - ( - - 71 ) AS INTEGER ) + + 52 END ) + + 81 AS col2 +---- +-23 +NULL query I rowsort SELECT 37 * 5 * 33 AS col1 @@ -51193,8 +51530,11 @@ SELECT - SUM ( - + 10 ) / - MAX ( ALL NULLIF ( 50, + + 79 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 185472 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-42\) \* \(\- min\(CAST\(Int64\(48\) AS Int32\)\)\) \* \(\- Int64\(\-92\)\) AS col0" at position 0 and "Int64\(30\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 42 * - MIN ( ALL CAST ( 48 AS INTEGER ) ) * - - 92 AS col0, 30 AS col0 +---- +185472 +30 query I rowsort label-9901 SELECT DISTINCT - 48 + - + 67 + - + COUNT ( * ) + + COUNT ( * ) AS col2 diff --git a/data/sqlite/random/expr/slt_good_99.slt b/data/sqlite/random/expr/slt_good_99.slt index 9213a49..3528b4e 100644 --- a/data/sqlite/random/expr/slt_good_99.slt +++ b/data/sqlite/random/expr/slt_good_99.slt @@ -87,8 +87,11 @@ SELECT ALL + 12 AS col0, - 21 + - ( - NULLIF ( - 81, - - CAST ( NULL AS INTEGER # Datafusion - Datafusion expected results: # Datafusion - Expected - 64 # Datafusion - Expected - 2730 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(64\) AS col0" at position 0 and "Int64\(65\) \* \(\- Int64\(\-42\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 64 AS col0, + 65 * - - 42 AS col0 +---- +2730 +64 query I rowsort SELECT NULLIF ( - 82, - ( 89 ) ) AS col2 @@ -230,8 +233,11 @@ SELECT DISTINCT + COUNT ( * ) AS col2, + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(46\)\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + + 46 ) AS col1, + 55 AS col1 +---- +-46 +55 query I rowsort SELECT + + 22 - 50 + - 37 @@ -557,8 +563,11 @@ SELECT 69 * + - 45 AS col1, + 15 * - NULLIF ( - - 21, - - ( + - 43 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -149 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-54\) \+ \(\- nullif\(Int64\(\-50\), Int64\(91\)\)\) \+ \(\- Int64\(81\)\) \+ Int64\(17\) \+ Int64\(\-81\) AS col1" at position 0 and "Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 54 + + - NULLIF ( - 50, + 91 ) + - + 81 + 17 + - 81 AS col1, + 1 AS col1 +---- +-149 +1 query II rowsort label-99 SELECT ALL - 45 / - - 81 AS col2, ( + - NULLIF ( - - 49, - 50 + + 76 ) ) / + + 94 - 88 @@ -800,8 +809,11 @@ SELECT - - 80 + - 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) AS col1" at position 0 and "\(\- Int64\(\-76\)\) / \(\- Int64\(4\)\) \+ \(\- Int64\(\-97\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + 75 AS col1, - ( - 76 ) / - + 4 + - - 97 AS col1 +---- +75 +78 query I rowsort label-146 SELECT DISTINCT - 58 * COUNT ( * ) col0 @@ -817,8 +829,12 @@ SELECT - - 30 * + 81 * + COUNT ( - 5 ) AS col0 # Datafusion - Expected - 33 # Datafusion - Expected - 6240 # Datafusion - Expected - 69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) \* Int64\(\-80\) AS col0" at position 1 and "Int64\(69\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + + 33, - 78 * - 80 AS col0, + 69 AS col0 +---- +33 +6240 +69 query I rowsort label-149 SELECT ALL + + NULLIF ( + COUNT ( * ), + 36 ) AS col2 @@ -1146,8 +1162,11 @@ SELECT DISTINCT + COUNT ( * ) * - - CASE - + COALESCE ( - - COUNT ( * ), 80 ) WH # Datafusion - Datafusion expected results: # Datafusion - Expected - 140 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \+ Int64\(99\) AS col1" at position 0 and "Int64\(83\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 41 + 99 col1, 83 AS col1 +---- +140 +83 query II rowsort label-210 SELECT ALL NULLIF ( + NULLIF ( COALESCE ( + - ( - 37 ), 89, 23 ), - - COUNT ( * ) ), 86 / + COUNT ( * ) * + - SUM ( ALL 40 ) ) * + + 38 AS col2, + 30 AS col0 @@ -1281,8 +1300,11 @@ SELECT - ( - 60 ) * 47 * + 28 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \+ Int64\(\-47\) \+ \(\- Int64\(88\)\) \* Int64\(\-37\) \* \(\- Int64\(\-40\)\) \+ Int64\(92\) \* Int64\(64\) \+ Int64\(\-25\) \+ \(\- \(\- avg\(DISTINCT \(\- \(\- CAST\(NULL AS Int32\)\)\)\)\)\) AS col1" at position 0 and "Int64\(36\) / \(\- Int64\(19\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - 41 + - 47 + - ( 88 ) * + - 37 * - ( - 40 ) + + 92 * 64 + - 25 + - - AVG ( DISTINCT - ( - CAST ( NULL AS INTEGER ) ) ) AS col1, + 36 / + - ( 19 ) AS col1 +---- +-1 +NULL query I rowsort SELECT - 17 * + 65 @@ -1319,8 +1341,11 @@ SELECT - COUNT ( * ) / - + 67 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) \+ CAST\(NULL AS Int32\) \+ Int64\(12\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \- \(\- Int64\(98\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 56 + + CAST ( NULL AS INTEGER ) + + + 12 AS col1, + COUNT ( * ) - - + 98 AS col1 +---- +99 +NULL query I rowsort label-243 SELECT DISTINCT 16 + 36 + + 1 + COUNT ( * ) - - + 24 @@ -1418,8 +1443,11 @@ SELECT + MIN ( DISTINCT + + ( - + 15 ) ) # 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 "Int64\(3\) AS col1" at position 0 and "Int64\(63\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 3 AS col1, 63 AS col1 +---- +3 +63 query I rowsort label-261 SELECT NULLIF ( COUNT ( * ), + COUNT ( * ) ) @@ -1675,8 +1703,11 @@ SELECT ALL NULLIF ( - 17, 42 * - - MAX ( DISTINCT + + ( 75 ) ) / 81 ) + + + 3 AS # Datafusion - Datafusion expected results: # Datafusion - Expected - -78 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col0" at position 0 and "Int64\(41\) \+ \(\- max\(Int64\(48\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 78 AS col0, + 41 + - MAX ( + 48 ) AS col0 +---- +-7 +-78 query I rowsort SELECT 19 * 40 @@ -1686,8 +1717,11 @@ SELECT 19 * 40 # Datafusion - Datafusion expected results: # Datafusion - Expected - -87 # Datafusion - Expected - 66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(41\) \+ Int64\(\-78\) \- Int64\(50\) AS col2" at position 0 and "Int64\(66\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 41 + - 78 - + 50 AS col2, + 66 AS col2 +---- +-87 +66 query II rowsort SELECT ALL - 2 + - 34 * + 21 * - 98 - + 29 AS col0, - 70 AS col2 @@ -1822,8 +1856,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) + - 80 * COUNT ( DISTINCT - 50 ) AS col0, + 7 AS col0 +---- +-79 +7 query II rowsort SELECT 10 + + - 78 AS col1, 28 + 84 @@ -1914,8 +1951,11 @@ SELECT ALL - + 3 - + 57 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(26\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 26 AS col0, 36 AS col0 +---- +26 +36 query I rowsort SELECT 87 + 51 AS col1 @@ -2146,8 +2186,11 @@ SELECT 43 / + 59 + - + 2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 # Datafusion - Expected - 89 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(14\) / Int64\(\-43\) \- \(\- Int64\(41\)\) AS col0" at position 0 and "Int64\(89\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 14 / - 43 - - + 41 AS col0, + 89 AS col0 +---- +41 +89 query II rowsort label-401 SELECT + 29 + - COALESCE ( + ( + + 12 ), - 70 + - - NULLIF ( - 91, + 52 ), CASE + 10 WHEN - 20 THEN - 1 ELSE NULL END / + 91 ) * + SUM ( - NULLIF ( 65, - - 93 ) ) * + + CAST ( NULL AS INTEGER ) AS col1, - 49 + + 44 AS col0 @@ -2386,8 +2429,11 @@ SELECT + 74 + - 42 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 93 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(93\) AS col0" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 93 AS col0, COUNT ( * ) col0 +---- +1 +93 query I rowsort label-447 SELECT ALL - SUM ( 10 ) - + 69 + 59 * + - CAST ( - 46 AS INTEGER ) AS col1 @@ -2408,8 +2454,11 @@ SELECT ALL 36 - + 95 + + + ( 21 ) / - + 25 + + 57 AS col2, - 91 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col0, 48 AS col0 +---- +1 +48 query I rowsort SELECT 58 + - 65 AS col0 @@ -2477,8 +2526,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -4675 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* \(\- nullif\(Int64\(85\), Int64\(\-90\) \+ \(\- Int64\(38\)\)\)\) AS col0" at position 0 and "Int64\(91\) \- \(\- Int64\(\-55\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 55 * - NULLIF ( 85, - 90 + - + 38 ) AS col0, 91 - - - 55 AS col0 +---- +-4675 +36 query I rowsort label-463 SELECT ALL + + CAST ( + 42 AS INTEGER ) col1 @@ -2617,8 +2669,11 @@ SELECT - 69 + + + 51 AS col2, + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - 17561544 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col1" at position 0 and "Int64\(51\) \* Int64\(86\) \* \(\- Int64\(52\)\) \* Int64\(\-77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 AS col1, 51 * + 86 * - + 52 * - 77 AS col1 +---- +17561544 +34 query II rowsort label-490 SELECT ALL + 22 / 38 AS col2, 38 @@ -4100,8 +4155,11 @@ SELECT ALL - + 88 * + - 47 - 50 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 42 # Datafusion - Expected - 5238 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) AS col0" at position 0 and "Int64\(97\) \* Int64\(54\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 42 AS col0, 97 * ( + 54 ) / COUNT ( * ) AS col0 +---- +42 +5238 query I rowsort SELECT 18 + + 7 AS col0 @@ -4111,8 +4169,11 @@ SELECT 18 + + 7 AS col0 # 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 "Int64\(53\) AS col1" at position 0 and "Int64\(75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 53 AS col1, 75 AS col1 +---- +53 +75 query I rowsort label-781 SELECT COALESCE ( - 98, + + COUNT ( * ) * ( + ( + 8 ) ) + 32 / 87, + 71 ) * - 1 AS col1 @@ -4369,8 +4430,11 @@ SELECT ALL - 80 * MIN ( - 71 ) + 11 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 4348 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(81\) \- Int64\(99\) \- Int64\(\-59\) \* Int64\(74\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col1, 81 - + 99 - - 59 * 74 AS col1 +---- +1 +4348 query I rowsort SELECT - CASE 2 WHEN - - 90 THEN - 77 * - - 58 + - + 47 + 1 ELSE NULL END + 51 @@ -4537,8 +4601,11 @@ SELECT - 92 - + - MIN ( + 45 ) + + - 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - 51 # Datafusion - Expected - 53 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col1" at position 0 and "Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( 51 ) AS col1, 53 AS col1 +---- +51 +53 query I rowsort SELECT DISTINCT + 66 - - 48 col0 @@ -4829,8 +4896,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(24\) \- Int64\(10\) \* Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 18 / - 25 AS col1, + COUNT ( * ) * 24 - + 10 * + 40 col1 +---- +-376 +0 query I rowsort label-919 SELECT ALL MIN ( - - 63 ) * 9 @@ -5547,8 +5617,11 @@ SELECT ALL 10 - 76 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 373590 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-84\) \+ Int64\(93\) \* Int64\(98\) \* Int64\(41\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 84 + + ( 93 ) * 98 * + + 41 AS col0, + 75 col0 +---- +373590 +75 query I rowsort label-1058 SELECT ALL - + SUM ( - + 14 ) / - + 38 @@ -5724,8 +5797,12 @@ SELECT ALL 59 * 13 # Datafusion - Expected - -250 # Datafusion - Expected - 44 # Datafusion - Expected - 30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-5\) \* \(\- nullif\(Int64\(\-50\), Int64\(\-61\)\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(85\) \+ Int64\(\-41\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 5 * - NULLIF ( - 50, - 61 ) * + COUNT ( * ) AS col0, 85 + + - 41 AS col0, 30 AS col1 +---- +-250 +30 +44 query I rowsort SELECT ALL - 7 + 5 + - 6 @@ -5770,8 +5847,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3430 # Datafusion - Expected - 1176 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-98\) \* Int64\(35\) AS col0" at position 0 and "Int64\(\-21\) \* Int64\(\-56\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 98 * 35 col0, - 21 * - 56 AS col0 +---- +-3430 +1176 query I rowsort label-1101 SELECT ALL + NULLIF ( - ( + + 70 ), + 92 * - + COUNT ( * ) + + 59 - - 79 - - 53 / - - 8 ) AS col1 @@ -5832,8 +5912,12 @@ 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\(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\. +query III valuesort SELECT ALL 42 * + - 10, 49 + + 14 * ( 90 ) * + - COUNT ( * ) AS col0, + 36 * - 75 AS col0 +---- +-1211 +-2700 +-420 query I rowsort SELECT DISTINCT - 38 * - 97 AS col0 @@ -5890,8 +5974,11 @@ SELECT DISTINCT ( - 16 ) + + CASE - - 88 WHEN ( 91 ) + - 54 - 17 + - 40 * 11 * + # Datafusion - Datafusion expected results: # Datafusion - Expected - 184 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-2\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \* \(\- nullif\(Int64\(\-92\), Int64\(\-97\)\)\) AS col2" at position 0 and "Int64\(1\) \+ Int64\(28\) \- Int64\(79\) / Int64\(74\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 2 * - + COUNT ( * ) * - NULLIF ( - 92, - 97 ) AS col2, 1 + 28 - + 79 / + 74 * + COUNT ( * ) AS col2 +---- +184 +28 query I rowsort label-1123 SELECT ALL CASE - 3 WHEN 27 * COUNT ( * ) / + - 19 THEN 17 + + ( 55 ) ELSE CAST ( NULL AS INTEGER ) END @@ -6008,8 +6095,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 3906 # Datafusion - Expected - 1196 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \* \(\- Int64\(63\)\) AS col0" at position 0 and "Int64\(\-92\) \* sum\(DISTINCT Int64\(\-13\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 62 * - ( 63 ) AS col0, - 92 * + + SUM ( DISTINCT - 13 ) col0 +---- +1196 +3906 query I rowsort SELECT DISTINCT + - 63 * + 28 AS col1 @@ -6296,8 +6386,11 @@ 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\(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\. +query II valuesort SELECT 36 + NULLIF ( + - 88, - + COUNT ( * ) * - - 73 ) AS col2, 59 col2 +---- +-52 +59 query I rowsort SELECT 71 - + ( + - 77 ) @@ -6473,8 +6566,11 @@ SELECT DISTINCT + + NULLIF ( + - 41, + COUNT ( * ) ) * + 51 + - + COALESCE ( - + # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(40\)\) \+ Int64\(\-25\) \+ \(\- \(\- Int64\(83\)\)\) \* Int64\(\-71\) \* CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(52\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MIN ( 40 ) + - 25 + - ( - + 83 ) * - 71 * + CAST ( NULL AS INTEGER ) col2, + 52 AS col2 +---- +52 +NULL query I rowsort label-1232 SELECT ALL - - ( 79 ) + - CAST ( NULL AS INTEGER ) - 97 @@ -6617,8 +6713,11 @@ 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\(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\. +query IR valuesort 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 +---- +94 +NULL # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -6877,8 +6976,11 @@ SELECT - 0 AS col1, 13 + + 92 - - + 68 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 2109 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) \+ Int64\(86\) \* Int64\(24\) AS col2" at position 0 and "Int64\(\-7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 45 + + 86 * + 24 AS col2, - 7 AS col2 +---- +-7 +2109 query I rowsort label-1308 SELECT COUNT ( ALL - CAST ( - + 4 AS INTEGER ) ) + + SUM ( DISTINCT + 88 ) + - ( + + CAST ( NULL AS INTEGER ) ) AS col0 @@ -6888,8 +6990,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 2084 # Datafusion - Expected - 10 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(5\) \+ \(\- Int64\(\-99\)\) \* Int64\(21\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(10\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 5 + - - 99 * + ( + 21 ) / COUNT ( * ) AS col0, 10 AS col0 +---- +10 +2084 query II rowsort label-1310 SELECT ( ( - - 66 ) ) AS col2, 80 + + CAST ( NULL AS INTEGER ) AS col1 @@ -6947,8 +7052,11 @@ SELECT 83 - + 10 + - + 68 + + 19 - + CAST ( - ( + - 17 ) AS INTEGER ) * MIN ( 57 # Datafusion - Datafusion expected results: # Datafusion - Expected - -72 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-72\) AS col2" at position 0 and "max\(Int64\(\-22\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 72 AS col2, MAX ( - 22 ) AS col2 +---- +-22 +-72 query I rowsort label-1321 SELECT CASE - 95 WHEN + 79 * + 66 * + 50 + + CAST ( - - 15 AS FLOAT8 ) * COALESCE ( - NULLIF ( + 25, + 93 ), 4 ) + - COUNT ( * ) THEN + - ( - COUNT ( * ) ) * - 57 * ( + 20 ) + SUM ( 81 ) WHEN + 68 * 28 THEN - 9 END + - NULLIF ( 52, - ( 64 ) - 89 ) * 68 AS col0 @@ -7051,8 +7159,11 @@ SELECT DISTINCT 3 / + + SUM ( - 70 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(36\) / CAST\(NULL AS Int32\) \+ Int64\(20\) \+ CASE \(\- count\(Int64\(1\)\) AS count\(\*\)\) WHEN \(\- count\(Int64\(80\)\)\) THEN NULL ELSE \(\- Int64\(51\)\) END \+ Int64\(80\) \* count\(Int64\(1\)\) AS count\(\*\), Int64\(\-65\) \* Int64\(\-57\) \+ Int64\(44\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +0 +1 query I rowsort SELECT DISTINCT ( - 79 ) * - + NULLIF ( - + 29, 11 * - 36 + - 33 ) * 27 AS col0 @@ -7135,8 +7246,11 @@ 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\(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\. +query II valuesort SELECT ALL + COUNT ( * ) * - - 67 * - 68 * - - 60 AS col2, 10 AS col2 +---- +-273360 +10 query II rowsort SELECT - 77 AS col1, 75 AS col2 @@ -7434,8 +7548,11 @@ SELECT DISTINCT - COUNT ( - 39 ) col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -53 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(53\)\) AS col1" at position 0 and "Int64\(0\) \* Int64\(\-79\) \- \(\- Int64\(\-71\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + 53 AS col1, + 0 * - 79 - - - 71 AS col1 +---- +-53 +-71 query I rowsort SELECT - 41 + 31 AS col2 @@ -7915,8 +8032,11 @@ SELECT ( - COALESCE ( + CASE + 95 WHEN + - 55 + + - SUM ( ALL + 53 ) + + - COUNT # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-62\) \+ Int64\(39\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 62 + 39 AS col1, COUNT ( * ) col1 +---- +-23 +1 query II rowsort label-1504 SELECT - 23 col2, + 88 + - - COUNT ( * ) + - 28 AS col0 @@ -8047,14 +8167,20 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-12\) \+ Int64\(\-94\)\) \* \(\- CAST\(NULL AS Int32\)\) \+ \(\- CAST\(Int64\(\-38\) AS Int32\)\) AS col1" at position 0 and "Int64\(60\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT NULLIF ( + - COUNT ( * ), - 12 + - 94 ) * + - CAST ( NULL AS INTEGER ) + + - CAST ( + - 38 AS INTEGER ) AS col1, 60 AS col1 +---- +60 +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\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(68\) \+ Int64\(73\) \+ CAST\(NULL AS Int32\) \+ \(\- \(\- coalesce\(Int64\(29\), Int64\(43\) \+ max\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) \* CASE Int64\(\-69\) WHEN Int64\(0\) THEN Int64\(\-87\) END, Int64\(80\) \* Int64\(84\)\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort 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 +---- +NULL +NULL query I rowsort label-1530 SELECT CAST ( NULL AS INTEGER ) * - 66 / + MAX ( 66 ) @@ -8107,8 +8233,11 @@ SELECT 12 * - - 17 AS col2, + COUNT ( ALL - 21 ) + 66 + - + ( + 72 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -23 # Datafusion - Expected - -85 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(\-85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 24 + COUNT ( * ) AS col0, - 85 AS col0 +---- +-23 +-85 query I rowsort label-1540 SELECT - 39 * - ( 99 ) + - COUNT ( + NULLIF ( 33, - 45 * + 64 ) ) col0 @@ -8193,8 +8322,11 @@ SELECT ALL 80 AS col1, - 64 * 20 * - ( - 90 ) + + - 47 + ( - - 38 ) / 72 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col2" at position 0 and "Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 82 AS col2, 5 AS col2 +---- +5 +82 query I rowsort SELECT ALL 10 * + + 44 @@ -8396,8 +8528,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * + 55 col0, - 24 + + 14 + - NULLIF ( + 69, 89 * + 10 ) + + - 34 AS col0 +---- +-113 +-55 query I rowsort label-1594 SELECT ALL COUNT ( + - 20 ) @@ -8998,8 +9133,11 @@ SELECT ALL 91 * + + COUNT ( DISTINCT - 97 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col2" at position 0 and "Int64\(\-71\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( + 57 ) AS col2, - 71 AS col2 +---- +-71 +57 query I rowsort SELECT DISTINCT + 39 * 3 col1 @@ -9091,8 +9229,11 @@ SELECT COALESCE ( + - 37, - COUNT ( * ), - - 11 * - 72 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 7 AS col2, + 59 AS col2 +---- +59 +7 query I rowsort label-1725 SELECT - MIN ( - 8 ) * + + 36 AS col2 @@ -9610,8 +9751,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 216 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(44\) \+ \(\- min\(Int64\(\-98\)\)\) \+ Int64\(2\) \* Int64\(37\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 44 + + ( + - MIN ( - 98 ) ) + + + 2 * + 37 AS col2, + 12 AS col2 +---- +12 +216 query I rowsort label-1825 SELECT DISTINCT + ( - + 49 ) * 46 / - 35 - 23 AS col2 @@ -9707,8 +9851,11 @@ SELECT DISTINCT - 62 + + 46 * + - 12 + + + 8 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 70 # Datafusion - Expected - 3948 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(10\) \+ Int64\(60\) AS col0" at position 0 and "Int64\(94\) \* Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 10 + + 60 AS col0, 94 * 42 AS col0 +---- +3948 +70 query I rowsort label-1843 SELECT ALL ( SUM ( DISTINCT - 60 ) ) @@ -9822,8 +9969,11 @@ 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\(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\. +query II valuesort SELECT + + 93 * + 10 - - COUNT ( * ) / 2 + + 33 AS col1, COALESCE ( + 36, - + ( + 47 ) ) * + 6 AS col1 +---- +216 +963 query I rowsort label-1865 SELECT + COUNT ( * ) + + 8 AS col0 @@ -10029,8 +10179,12 @@ SELECT ALL NULLIF ( - - 97, + 13 ) - + - 87, 29 AS col2 # Datafusion - Expected - -54 # Datafusion - Expected - 0 # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-22\)\) / Int64\(\-83\) AS col2" at position 1 and "Int64\(32\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT MAX ( DISTINCT + 82 ) / - + 83 - 54 AS col0, ( - - 22 ) / - 83 AS col2, + + 32 + ( + COUNT ( * ) ) AS col2 +---- +-54 +0 +33 query I rowsort label-1905 SELECT ( - COALESCE ( - + 86, - - COUNT ( DISTINCT - 20 ) * ( ( CASE + + ( 79 ) WHEN - 12 + + 12 THEN + CAST ( NULL AS INTEGER ) / COALESCE ( - COUNT ( * ), - 1, 63 + + 5 ) - - + 3 * 27 + + + NULLIF ( + - 76, + + 94 ) + + - 90 * COUNT ( * ) WHEN + + 28 THEN - + 9 ELSE + 36 END ) ) + - 23 * 4 ) ) * 22 * + 49 * CAST ( - MIN ( DISTINCT - 57 ) AS INTEGER ) @@ -10040,8 +10194,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT COUNT ( * ) * 13 AS col0, ( - 79 ) + ( - COALESCE ( - - SUM ( - - 64 ), 83, - 86 ) ) AS col0 +---- +-143 +13 query I rowsort label-1907 SELECT DISTINCT + COUNT ( - - 11 ) * + - 99 - - CASE 52 WHEN - 20 THEN NULL WHEN - 58 THEN - + ( COUNT ( DISTINCT - 10 ) ) ELSE 49 * 82 END * ( CAST ( CASE + MIN ( DISTINCT - 8 ) WHEN + 9 * + 40 * + - 87 * - - NULLIF ( + COUNT ( + 7 ), - - 38 / - 64 * 81 ) * + + 6 THEN 52 * + + 8 + - COUNT ( * ) WHEN + - 93 THEN - - COUNT ( * ) WHEN + COALESCE ( AVG ( DISTINCT + - 71 ), - - 40 ) - + CASE - COUNT ( * ) WHEN - SUM ( ALL - 19 ) / + 91 + + 14 * + 73 THEN - 92 + 32 WHEN 22 THEN + ( + 9 ) / - 62 + + 54 * - 23 ELSE 98 + - 91 END + + 25 THEN 48 / + 14 + - COUNT ( * ) WHEN AVG ( ALL + 73 ) THEN 80 WHEN COUNT ( * ) THEN NULL END AS INTEGER ) ) / + 23 @@ -10882,8 +11039,11 @@ SELECT ALL + 51 / + 62 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 240 # Datafusion - Expected - -4536 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(6\) \* Int64\(40\) AS col1" at position 0 and "Int64\(56\) \* Int64\(\-81\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 6 * 40 AS col1, 56 * - 81 AS col1 +---- +-4536 +240 query I rowsort SELECT ALL + 61 * - 17 @@ -10913,8 +11073,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 78 * + 64 AS col1, - ( + 62 ) * + 5 + + + ( - COUNT ( * ) ) col1 +---- +-311 +4992 query II rowsort label-2073 SELECT ALL - MAX ( + 52 ), + 34 * + 4 AS col1 @@ -11179,8 +11342,11 @@ SELECT ALL 68 * 38 / 6 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "Int64\(\-70\) \* Int64\(\-20\) \+ \(\- Int64\(35\)\) \+ CAST\(NULL AS Int32\) \* Int64\(\-25\) \* coalesce\(Int64\(53\), Int64\(\-53\), \(\- Int64\(37\)\) \+ Int64\(\-94\) \- Int64\(36\) \* Int64\(56\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, ( + - 70 ) * - 20 + - + 35 + CAST ( NULL AS INTEGER ) * - 25 * COALESCE ( 53, ( - 53 ), - + 37 + - 94 - + 36 * + 56 ) AS col2 +---- +-1 +NULL query II rowsort label-2122 SELECT ALL - 91 AS col2, - MAX ( + + 45 ) @@ -11223,8 +11389,11 @@ SELECT DISTINCT - 97, 99 - + + 38 * + - 86 - - + 31 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -38 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) AS col2" at position 0 and "Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 38 AS col2, 83 AS col2 +---- +-38 +83 query I rowsort SELECT + 32 * + 46 @@ -11841,8 +12010,11 @@ SELECT 65 + SUM ( DISTINCT ( - 31 ) ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -57036 # Datafusion - Expected - 99 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(84\) \* Int64\(\-7\) \* Int64\(97\) AS col1" at position 0 and "CAST\(\(\- Int64\(\-99\)\) AS Int32\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 84 * - 7 * + 97 AS col1, CAST ( - - 99 AS INTEGER ) AS col1 +---- +-57036 +99 query I rowsort label-2249 SELECT 74 + MIN ( - - ( + - 77 ) ) @@ -11852,8 +12024,11 @@ SELECT 74 + MIN ( - - ( + - 77 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 301 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \+ Int64\(\-54\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(7\) \* \(\- Int64\(\-43\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 + + - 54 + COUNT ( * ) AS col0, + 7 * - - 43 AS col0 +---- +28 +301 query I rowsort SELECT 16 * 48 AS col0 @@ -12546,8 +12721,11 @@ SELECT + COUNT ( * ) * 65 / + + 15 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -67 # Datafusion - Expected - 5651 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-67\) AS col0" at position 0 and "Int64\(97\) \+ \(\- Int64\(\-94\)\) \+ Int64\(91\) \* Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 67 AS col0, + 97 + - - 94 + + 91 * + 60 AS col0 +---- +-67 +5651 query I rowsort label-2385 SELECT + CAST ( - - 45 AS INTEGER ) * - COUNT ( * ) @@ -12716,8 +12894,11 @@ SELECT DISTINCT SUM ( DISTINCT 97 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -113 # Datafusion - Expected - -11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) \+ Int64\(\-21\) AS col1" at position 0 and "Int64\(\-11\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 92 + - 21 AS col1, - 11 col1 +---- +-11 +-113 query I rowsort label-2418 SELECT ALL + - 21 * - - COUNT ( * ) / NULLIF ( + 64, + 34 ) + + ( 20 + + CAST ( + 38 + - 85 * AVG ( DISTINCT 95 ) AS INTEGER ) ) / 30 @@ -13021,8 +13202,12 @@ SELECT - 11 / - 64 + + COUNT ( * ) # Datafusion - Expected - -55 # Datafusion - Expected - 1621 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) AS col0" at position 0 and "Int64\(53\) \+ Int64\(16\) \* Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL + - 55 AS col0, 53 + 16 * + 98 AS col0, - 70 - - + COUNT ( DISTINCT + 98 ) * 19 +---- +-51 +-55 +1621 query II rowsort SELECT + 79 AS col0, - 35 @@ -13324,8 +13509,11 @@ 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\(1\)\) AS count\(\*\)\) \* \(\- Int64\(\-54\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 76 AS col0, - COUNT ( * ) * - - 54 AS col0 +---- +-54 +-76 query I rowsort SELECT NULLIF ( - 68, - 85 ) + 14 + 13 * ( - 41 ) * - 43 - 91 @@ -13391,8 +13579,11 @@ SELECT DISTINCT + + 12 * 66 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 89 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col2" at position 0 and "Int64\(\-14\) \* Int64\(\-7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 89 AS col2, - 14 * - 7 AS col2 +---- +89 +98 query I rowsort label-2546 SELECT DISTINCT + - ( - CAST ( MIN ( DISTINCT - 92 ) AS INTEGER ) ) @@ -13588,8 +13779,11 @@ SELECT ALL - 69 * 50 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -192 # Datafusion - Expected - 78 -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\(78\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 93 + - + 99 AS col2, + 78 AS col2 +---- +-192 +78 query I rowsort label-2583 SELECT ALL - + COUNT ( * ) / - CASE + MIN ( + 76 ) WHEN + - CAST ( - 61 AS INTEGER ) THEN - 66 - + - 9 ELSE NULL END - - NULLIF ( + ( - 9 ), + COALESCE ( 4, 89 ) ) @@ -14686,8 +14880,11 @@ SELECT ALL + 82 + - 45 / + - COUNT ( * ) + - 61 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - 96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col0" at position 0 and "nullif\(\(\- Int64\(\-96\)\), Int64\(4\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 90 AS col0, NULLIF ( - - 96, + 4 ) AS col0 +---- +90 +96 query I rowsort label-2794 SELECT ALL + CAST ( + + 94 AS INTEGER ) * - 59 + + CASE - + 14 WHEN + 92 THEN + ( COUNT ( * ) ) END * - 14 / 73 AS col1 @@ -14803,8 +15000,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\)" at position 0 and "count\(Int64\(1\)\) AS count\(\*\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + COUNT ( * ), + ( + COUNT ( * ) ) +---- +1 +1 query I rowsort label-2815 SELECT + - 91 * - + COUNT ( * ) * - 98 * ( 38 ) @@ -15020,8 +15220,11 @@ SELECT DISTINCT 4 / - 45 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 "Int64\(11\) AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 11 AS col1, 40 col1 +---- +11 +40 query II rowsort SELECT ALL 15, + 52 AS col2 @@ -15085,8 +15288,11 @@ 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\(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\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, 47 * - 36 * - + COUNT ( * ) AS col1 +---- +-1 +1692 query I rowsort SELECT DISTINCT 74 * + 89 AS col0 @@ -15310,8 +15516,11 @@ SELECT - 97 * + 82 # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - 8784 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col1" at position 0 and "Int64\(83\) \+ \(\- sum\(Int64\(41\)\)\) \+ Int64\(\-93\) \* Int64\(\-94\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 AS col1, 83 + - SUM ( ALL + 41 ) + - 93 * + - 94 AS col1 +---- +8784 +91 query I rowsort SELECT - CASE 71 WHEN + 7 THEN NULL ELSE 26 END + - - 78 @@ -15431,8 +15640,11 @@ 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\(1\)\) AS count\(\*\) \+ Int64\(6\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + ( - + ( - 66 ) ) AS col2, - COALESCE ( 39, 9 ) * + COUNT ( * ) + + 6 AS col2 +---- +-33 +66 query I rowsort label-2934 SELECT ALL - COALESCE ( + - 89, 57 * - - 67 - + 82, - - CAST ( 89 AS INTEGER ) / + + 23 / + + ( 22 ) + + 15 / - COUNT ( * ) + COALESCE ( - 20, - COUNT ( * ) ) + 39 ) @@ -15907,8 +16119,11 @@ 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\(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\. +query II valuesort SELECT - + COUNT ( * ) AS col2, 58 + 41 AS col2 +---- +-1 +99 query I rowsort label-3025 SELECT + + MIN ( - 89 ) + - COUNT ( * ) + - - 69 @@ -16794,14 +17009,20 @@ SELECT - + 54 - 23 + NULLIF ( + 90, + - SUM ( DISTINCT - 0 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 40 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(40\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col1, + 40 AS col1 +---- +1 +40 # 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\(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\. +query II valuesort SELECT + COUNT ( * ) * + 2 / + 65 + + - 21 * - COUNT ( * ) * - 59 * + - COALESCE ( 61, + COUNT ( * ) ) + + ( - COUNT ( 27 ) ) + - COALESCE ( + COUNT ( * ), - 64 ) * + 14 AS col2, + 86 + 48 + - 91 AS col2 +---- +43 +75564 query I rowsort SELECT + - 79 - 14 AS col2 @@ -16897,8 +17118,11 @@ SELECT 51 + + + 49 + - 60 * + 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - -4345 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* Int64\(\-79\) AS col1" at position 0 and "Int64\(36\) / Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 55 * - 79 AS col1, 36 / - 62 col1 +---- +-4345 +0 query I rowsort SELECT ALL ( - - 52 ) + - 1 * - 62 @@ -17225,8 +17449,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(93\) \+ Int64\(\-25\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COUNT ( * ) AS col1, 93 + - 25 col1 +---- +1 +68 query I rowsort SELECT + 68 + - + 84 AS col0 @@ -17262,8 +17489,11 @@ SELECT DISTINCT - ( + 86 ) + + 67 + + COUNT ( DISTINCT + 35 ) * + + 23 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 171 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) \+ Int64\(86\) AS col0" at position 0 and "Int64\(98\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 85 + + + 86 AS col0, ( + 98 ) AS col0 +---- +171 +98 query II rowsort label-3280 SELECT ALL - 64 + - - CAST ( NULL AS INTEGER ) - - + COUNT ( 5 ) AS col2, + 0 AS col1 @@ -17484,8 +17714,11 @@ SELECT ALL ( + + 28 ) * - ( 24 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 2496 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \* Int64\(32\) 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 II valuesort SELECT + 78 * + 32 AS col0, COUNT ( ALL 93 ) AS col0 +---- +1 +2496 query I rowsort label-3322 SELECT DISTINCT CASE MAX ( - 76 ) WHEN + - ( 71 ) THEN - 38 END AS col0 @@ -17607,8 +17840,11 @@ SELECT 9 * 27 + - 3 AS col0, COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 185 # Datafusion - Expected - -57 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) \+ \(\- Int64\(\-73\)\) \- Int64\(\-21\) AS col0" at position 0 and "Int64\(\-23\) \+ Int64\(\-34\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 91 + - ( ( ( - 73 ) ) ) - - 21 AS col0, - 23 + - 34 AS col0 +---- +-57 +185 query I rowsort SELECT ALL + 36 * 33 col2 @@ -18037,8 +18273,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\) AS col1" at position 0 and "Int64\(\-62\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 58 / + 40 - 93 + - ( - ( + COUNT ( * ) ) ) AS col1, - 62 AS col1 +---- +-62 +-91 query I rowsort label-3428 SELECT + + COUNT ( + + NULLIF ( + 62, + 34 ) ) * 0 * CAST ( - 23 AS INTEGER ) @@ -18064,8 +18303,11 @@ SELECT ALL + 9, + 85 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 # Datafusion - Expected - -23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(9\) AS Int32\) AS col0" at position 0 and "Int64\(\-10\) \+ \(\- Int64\(98\)\) \+ Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( + 9 AS INTEGER ) AS col0, - 10 + - + 98 + + + 85 AS col0 +---- +-23 +9 query I rowsort SELECT + 32 * 31 AS col0 @@ -18271,8 +18513,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 25 * - COUNT ( * ) AS col0, + ( + 6 ) + + 0 AS col0 +---- +-25 +6 query I rowsort SELECT 66 + - - 1 * - 32 @@ -18379,8 +18624,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 0 and "Int64\(80\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col1, 80 AS col1 +---- +-1 +80 query II rowsort label-3493 SELECT ALL - 50 AS col0, ( - 63 ) + + SUM ( - 8 ) / 51 AS col2 @@ -18424,8 +18672,11 @@ SELECT ALL + 1 * 39 + - - 57 - + 36 / - 14 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(47\) \- max\(CAST\(NULL AS Int32\)\) \+ Int64\(77\) AS col1" at position 0 and "\(\- min\(Int64\(\-92\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 47 - + MAX ( CAST ( NULL AS INTEGER ) ) + 77 AS col1, - MIN ( ALL - 92 ) AS col1 +---- +92 +NULL query II rowsort SELECT ALL + 84 col2, + 98 @@ -18489,8 +18740,11 @@ SELECT + 10 * + MAX ( + 71 ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 115 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) \+ Int64\(52\) AS col0" at position 0 and "Int64\(92\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 63 + ( + ( 52 ) ) AS col0, + 92 AS col0 +---- +115 +92 query I rowsort SELECT ALL 7 * - + 26 AS col1 @@ -18727,8 +18981,11 @@ SELECT ( - 85 ) / + 41 # Datafusion - Datafusion expected results: # Datafusion - Expected - -46 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-46\) AS col2" at position 0 and "Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 46 col2, 83 col2 +---- +-46 +83 query II rowsort SELECT 68, 74 col0 @@ -18919,8 +19176,11 @@ 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\(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\. +query II valuesort SELECT 61 * - ( - - ( ( - - COUNT ( * ) ) ) ) * - ( + - COUNT ( DISTINCT + 47 ) ) + 20 AS col1, 86 AS col1 +---- +-41 +86 query II rowsort SELECT 86 AS col1, - 61 * + 2 + + 72 * - 50 * + 91 + - - NULLIF ( + 72, 50 ) @@ -19080,8 +19340,11 @@ SELECT ALL ( + SUM ( DISTINCT CAST ( - 42 AS INTEGER ) ) ) * + NULLIF ( + - 92, # Datafusion - Datafusion expected results: # Datafusion - Expected - -5760 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) \* \(\- Int64\(64\)\) AS col0" at position 0 and "Int64\(7\) / Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 90 * - + 64 AS col0, + 7 / 44 AS col0 +---- +-5760 +0 query I rowsort label-3625 SELECT ALL + MIN ( ALL COALESCE ( + CAST ( NULL AS INTEGER ), - 34 ) ) + - + NULLIF ( + + 48, - 34 + - + 75 ) AS col2 @@ -19161,8 +19424,11 @@ SELECT MIN ( DISTINCT + 20 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(48\)\) AS col2" at position 0 and "Int64\(\-62\) \+ Int64\(68\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( + + ( + + 48 ) ) AS col2, - 62 + 68 AS col2 +---- +1 +6 query I rowsort SELECT DISTINCT - 48 * - + 56 AS col1 @@ -19203,8 +19469,11 @@ 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\(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\. +query II valuesort SELECT ALL - 4 + COALESCE ( + + COUNT ( * ), 12 * 56 + 46 * 68 ) * - 24 + + NULLIF ( + - 83, + - 24 - + 78 ) + + - 68 col1, 73 AS col1 +---- +-179 +73 query I rowsort label-3648 SELECT - 59 + + - COUNT ( * ) AS col1 @@ -19506,8 +19775,11 @@ SELECT + + 27 + + 83 + + + 49 + - CAST ( - 87 AS INTEGER ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -92 # Datafusion - Expected - -630 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col2" at position 0 and "Int64\(\-70\) \* Int64\(9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 AS col2, - 70 * + 9 AS col2 +---- +-630 +-92 query I rowsort SELECT - - 52 + + 91 AS col2 @@ -19695,8 +19967,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col2" at position 0 and "max\(\(\- Int64\(\-12\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col2, MAX ( - - 12 ) AS col2 +---- +-1 +12 query I rowsort SELECT - - ( + + 16 ) @@ -19938,8 +20213,11 @@ SELECT - 60 + 88 + + COUNT ( * ) / - 14 * ( 79 ) AS col2, - 74 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 34 # Datafusion - Expected - -39 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-34\)\) AS col2" at position 0 and "Int64\(\-39\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 34 col2, + ( - 39 ) AS col2 +---- +-39 +34 query II rowsort SELECT + 76 AS col2, - 63 col1 @@ -20788,8 +21066,11 @@ SELECT DISTINCT 84 + + + 38 / - - 48 * - 63 + MAX ( 22 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 4 # Datafusion - Expected - -1820 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(4\) AS col0" at position 0 and "Int64\(65\) \* Int64\(\-28\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 4 AS col0, 65 * + - 28 AS col0 +---- +-1820 +4 query I rowsort label-3954 SELECT - ( - 27 ) + + 92 / - 56 AS col0 @@ -21273,8 +21554,11 @@ SELECT 8 + + 97 + - 45 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\(4\) 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 IR valuesort SELECT 4 AS col0, + CAST ( NULL AS FLOAT8 ) AS col0 +---- +4 +NULL query I rowsort label-4048 SELECT 18 * MIN ( DISTINCT - 23 ) * ( - ( 76 ) ) * - 77 + - 48 * - 67 @@ -21740,8 +22024,11 @@ SELECT ALL 43 * - 48 # Datafusion - Datafusion expected results: # Datafusion - Expected - -136510 # Datafusion - Expected - -540 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(55\) \* \(\- Int64\(34\)\) \* Int64\(73\) AS col2" at position 0 and "Int64\(\-54\) \* Int64\(10\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 55 * - + 34 * + 73 AS col2, - 54 * + 10 AS col2 +---- +-136510 +-540 query I rowsort label-4136 SELECT ALL + CASE + 74 WHEN - 18 * + CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) * - AVG ( - 9 ) / NULLIF ( - 63, + 85 ) * 75 + - 22 THEN - 2 ELSE + 2 - COUNT ( * ) * - ( 91 ) END AS col1 @@ -21965,14 +22252,20 @@ SELECT NULLIF ( 69, 34 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-18\) \* \(\- CAST\(NULL AS Int32\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(17\) \+ count\(Int64\(1\)\) AS count\(\*\) \+ \(\- coalesce\(Int64\(13\), Int64\(\-15\) \+ Int64\(62\)\)\) \+ CASE Int64\(\-85\) \+ Int64\(82\) \* Int64\(81\) WHEN Int64\(61\) \* Int64\(60\) THEN Int64\(41\) / Int64\(\-49\) END \* Int64\(19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +NULL +NULL # 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 "Int64\(63\) / Int64\(66\) AS col1" at position 0 and "Int64\(57\) \+ Int64\(1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 / 66 AS col1, + 57 + + 1 AS col1 +---- +0 +58 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -22262,8 +22555,11 @@ SELECT ALL + MAX ( ALL + 55 ) + + 89 * + + 53 AS col2, 6 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -59 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-53\) \+ \(\- coalesce\(Int64\(\-26\), Int64\(\-57\) \* Int64\(52\) \* Int64\(60\)\)\) \+ \(\- Int64\(32\)\) AS col0" at position 0 and "Int64\(20\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 53 + + ( + - COALESCE ( - 26, - 57 * 52 * 60 ) ) + - ( + 32 ) col0, + 20 * COUNT ( * ) AS col0 +---- +-59 +20 query I rowsort label-4236 SELECT - 6 + + - COALESCE ( MAX ( + + 6 ), + 10, - COUNT ( DISTINCT - + 99 ) + - COUNT ( * ) - + COUNT ( * ) ) @@ -22454,8 +22750,11 @@ SELECT ALL - NULLIF ( - + 28, + SUM ( 61 ) / - ( 21 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 217 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(52\) \- \(\- Int64\(98\)\) \+ \(\- Int64\(\-67\)\) AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 52 - - + 98 + - - 67 AS col0, 55 AS col0 +---- +217 +55 query I rowsort SELECT - 83 * - 28 @@ -22761,8 +23060,11 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ) * - 35 + - ( - 75 ) / 27 AS col1, - 55 AS col1 +---- +-33 +-55 query I rowsort label-4329 SELECT + + CAST ( NULL AS INTEGER ) + + 90 + + 44 AS col2 @@ -23263,8 +23565,11 @@ SELECT + 12 * + 46 col0, 97 + - 84 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -748 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) / Int64\(73\) AS col2" at position 0 and "min\(Int64\(\-96\)\) \* Int64\(8\) \+ Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 16 / + 73 AS col2, MIN ( - 96 ) * + 8 + 20 AS col2 +---- +-748 +0 query I rowsort label-4425 SELECT - + ( + - COUNT ( * ) ) * + + 23 / - COUNT ( * ) - 28 + ( 18 ) + COUNT ( * ) col2 @@ -23423,8 +23728,11 @@ SELECT + - 20 + + COUNT ( * ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(58\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - COUNT ( * ) AS col0, 58 * - CAST ( NULL AS INTEGER ) AS col0 +---- +-1 +NULL query I rowsort label-4456 SELECT + + 45 + 1 * - 25 / - 76 + 62 - - 10 / - + 38 @@ -23565,8 +23873,11 @@ SELECT DISTINCT - 27 + - ( - CAST ( COALESCE ( - 63, - CASE COUNT ( * ) WHEN + 3 # Datafusion - Datafusion expected results: # Datafusion - Expected - 164 # Datafusion - Expected - 73 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE WHEN NOT Int64\(87\) BETWEEN Int64\(\-64\) AND Int64\(28\) THEN Int64\(6\) \* Int64\(35\) \+ Int64\(\-46\) ELSE Int64\(96\) END AS col0" at position 0 and "Int64\(73\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CASE WHEN NOT ( 87 ) BETWEEN - 64 AND ( 28 ) THEN 6 * + 35 + - 46 ELSE 96 END AS col0, 73 AS col0 +---- +164 +73 query I rowsort SELECT ALL - 94 + 52 @@ -23889,8 +24200,11 @@ SELECT - COUNT ( * ) + 33 * + ( - - 15 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -128 # Datafusion - Expected - -69 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \- Int64\(42\) AS col2" at position 0 and "Int64\(\-69\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 86 - 42 AS col2, - 69 AS col2 +---- +-128 +-69 query I rowsort label-4545 SELECT - ( - ( SUM ( ALL CAST ( NULL AS INTEGER ) ) ) ) AS col2 @@ -24756,8 +25070,11 @@ SELECT - 24 * 18 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 40 # Datafusion - Expected - 52 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(40\)\)\) AS col2" at position 0 and "CAST\(Int64\(52\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - ( 40 ) AS col2, CAST ( 52 AS INTEGER ) AS col2 +---- +40 +52 query II rowsort SELECT ALL + 72 AS col0, - ( 12 ) * + 36 @@ -25123,8 +25440,11 @@ SELECT ALL - 91 + + - 7 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 463 # Datafusion - Expected - 68 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(94\), Int64\(59\) \* Int64\(\-44\)\) \* Int64\(4\) \- Int64\(\-87\) AS col0" at position 0 and "Int64\(68\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( 94, + 59 * - 44 ) * 4 - - 87 AS col0, 68 AS col0 +---- +463 +68 query I rowsort SELECT ALL - 5 * 2 col0 @@ -25571,8 +25891,11 @@ SELECT DISTINCT - + COUNT ( * ) * + + 55 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 33 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(33\) AS col0" at position 0 and "Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 33 AS col0, 79 AS col0 +---- +33 +79 query I rowsort SELECT 89 * - + 97 AS col0 @@ -25862,8 +26185,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 100 # Datafusion - Expected - -37 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) \+ Int64\(27\) AS col0" at position 0 and "Int64\(6\) \+ Int64\(\-43\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 73 + + 27 AS col0, 6 + - 43 col0 +---- +-37 +100 query II rowsort SELECT DISTINCT - 22 - - 14, 65 AS col0 @@ -26029,8 +26355,11 @@ SELECT ALL 95 * + - ( - 40 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1180 # Datafusion - Expected - -13 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(DISTINCT Int64\(\-20\)\) \* Int64\(59\) AS col1" at position 0 and "\(\- CAST\(Int64\(13\) AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + SUM ( DISTINCT - 20 ) * 59 AS col1, - CAST ( + 13 AS INTEGER ) col1 +---- +-1180 +-13 query I rowsort SELECT + 48 * 51 * + 48 * - 93 + + 72 AS col1 @@ -26426,8 +26755,11 @@ SELECT 42 + - 25 * - 50 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 7 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(78\) \- 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 II valuesort SELECT 78 - 71 AS col1, - 86 AS col1 +---- +-86 +7 query I rowsort label-5029 SELECT ( - + COALESCE ( - + 33, - + 93 * CASE + + 28 WHEN + + 36 THEN NULL WHEN + - 39 THEN - 18 WHEN ( + 10 ) + - 13 THEN NULL ELSE NULL END * + COALESCE ( - - NULLIF ( - COUNT ( * ), - CASE - 25 WHEN + 84 THEN - 53 END * + COUNT ( * ) + - 39 ), - 72 * + 43 * - 72, + 32 ) * 15 ) ) + + - 58 @@ -26478,8 +26810,11 @@ SELECT - - 48 + 21 col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -51 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(\-51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col2, - 51 AS col2 +---- +-51 +1 query I rowsort label-5039 SELECT CASE CAST ( NULL AS INTEGER ) WHEN + 66 THEN - - 45 WHEN CAST ( - - 4 AS FLOAT8 ) * + - CAST ( NULL AS INTEGER ) * 1 - + 35 THEN NULL ELSE NULL END @@ -26490,8 +26825,12 @@ NULL # Datafusion - Expected - 1 # Datafusion - Expected - 21 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- Int64\(\-21\)\), Int64\(61\)\) AS col2" at position 1 and "Int64\(\-22\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + COUNT ( * ), COALESCE ( - - 21, + 61 ) AS col2, - 22 col2 +---- +-22 +1 +21 query I rowsort label-5041 SELECT - + MIN ( + - 53 ) / + 73 + + 67 + 72 / + - CASE SUM ( ALL + 42 ) WHEN + MIN ( DISTINCT + - ( 57 ) ) THEN NULL WHEN - + ( + + 71 ) THEN + NULLIF ( - - 29, - 73 / - - 17 / + 80 + - COUNT ( * ) ) + + 26 + + 92 * 58 ELSE NULL END * - 45 + - + 60 + + 13 @@ -26694,8 +27033,11 @@ SELECT + ( + + 70 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -21 # Datafusion - Expected - -101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(65\)\) / \(\- Int64\(\-3\)\) AS col1" at position 0 and "Int64\(\-26\) \+ Int64\(\-75\) \+ Int64\(18\) / Int64\(\-26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( + + 65 ) / - - 3 AS col1, - 26 + - 75 + 18 / - 26 col1 +---- +-101 +-21 query II rowsort label-5081 SELECT + COUNT ( * ) + - 14 * + 31 AS col2, 79 * - 3 + - 41 @@ -26786,8 +27128,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 35 # Datafusion - Expected - -66 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(35\) AS col1" at position 0 and "Int64\(\-66\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 35 AS col1, - 66 col1 +---- +-66 +35 query II rowsort SELECT - 54 + - ( + + 73 ) AS col1, 80 @@ -27269,8 +27614,11 @@ SELECT + 75 * + 69 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - -82 # Datafusion - Expected - 97 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-82\) AS col1" at position 0 and "Int64\(97\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 82 col1, 97 AS col1 +---- +-82 +97 query I rowsort SELECT - - 57 + + - 14 AS col0 @@ -27858,8 +28206,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 91 # Datafusion - Expected - -60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col0" at position 0 and "Int64\(\-60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 91 col0, - 60 AS col0 +---- +-60 +91 query I rowsort label-5302 SELECT DISTINCT - CAST ( COUNT ( 45 ) AS INTEGER ) * - 43 AS col2 @@ -28478,8 +28829,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 61 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(61\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 61 AS col2, 21 AS col2 +---- +21 +61 query I rowsort label-5418 SELECT + - COUNT ( * ) + + + 48 @@ -29334,8 +29688,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -14 # Datafusion - Expected - -64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-14\) AS col0" at position 0 and "sum\(DISTINCT Int64\(\-57\)\) / count\(Int64\(1\)\) AS count\(\*\) \- Int64\(7\) / count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 14 AS col0, SUM ( DISTINCT - 57 ) / COUNT ( * ) - + 7 / COUNT ( * ) AS col0 +---- +-14 +-64 query I rowsort SELECT 49 + - 75 AS col2 @@ -29661,8 +30018,11 @@ SELECT ALL + NULLIF ( - - MAX ( ALL - 46 ), 2 ) + + NULLIF ( 88, ( NULLIF ( MAX # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 64 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) \+ \(\- Int64\(32\)\) \+ \(\- \(\- CAST\(NULL AS Int32\)\)\) AS col0" at position 0 and "Int64\(64\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 40 + - + 32 + - - CAST ( NULL AS INTEGER ) col0, 64 AS col0 +---- +64 +NULL query II rowsort label-5648 SELECT - 45 * CAST ( NULL AS INTEGER ) * + 91, 76 AS col0 @@ -29801,8 +30161,11 @@ SELECT + 58 * + MIN ( DISTINCT 13 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-86\) \+ Int64\(60\) \+ CAST\(NULL AS Int32\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 86 + 60 + ( + CAST ( NULL AS INTEGER ) ) col0, 60 AS col0 +---- +60 +NULL query I rowsort label-5675 SELECT ALL + 14 / - 77 AS col1 @@ -30100,8 +30463,11 @@ SELECT DISTINCT + 67 * COUNT ( * ) * - 55 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 68 # Datafusion - Expected - 57246 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "sum\(Int64\(\-28\)\) \+ Int64\(96\) AS col0" at position 0 and "Int64\(94\) \* Int64\(87\) \* Int64\(7\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + SUM ( ALL + - 28 ) + 96 col0, 94 * + 87 * 7 col0 +---- +57246 +68 query I rowsort label-5733 SELECT ALL 64 * MIN ( DISTINCT - 69 ) @@ -30126,8 +30492,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-43\) / Int64\(34\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 64 col2, COUNT ( * ) * - 43 / 34 AS col2 +---- +-1 +64 query I rowsort SELECT 65 + + - 2 + - 73 * 97 * 75 @@ -30152,8 +30521,11 @@ SELECT 10 + 35 # 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 "Int64\(\-9\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 77 col2, - 9 AS col2 +---- +-77 +-9 query II rowsort SELECT 58, 75 AS col2 @@ -30223,8 +30595,11 @@ SELECT DISTINCT + 3 + 46 AS col2 # 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 "Int64\(1\) AS col2" at position 0 and "Int64\(95\) \* Int64\(\-21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 1 AS col2, 95 * - 21 AS col2 +---- +-1995 +1 query I rowsort SELECT + ( 57 ) * - 99 @@ -30280,8 +30655,11 @@ SELECT DISTINCT + 37 * CAST ( - - CASE - - 90 WHEN - MIN ( ALL - 90 ) THEN + 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - -1015 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) \* Int64\(\-1\) \* \(\- Int64\(\-44\)\) \- \(\- Int64\(85\)\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 25 * + - 1 * - - 44 - - + 85 AS col2, + 45 AS col2 +---- +-1015 +45 query I rowsort label-5767 SELECT - ( + - 19 ) - 88 / - - 59 @@ -30374,8 +30752,11 @@ SELECT ALL + 20 * - 56 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) \- \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(7\) AS col2" at position 0 and "nullif\(\(\- nullif\(\(\- count\(Int64\(1\)\) AS count\(\*\)\), Int64\(\-37\) \* Int64\(61\)\)\), \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \* Int64\(\-27\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) - + ( - - COUNT ( * ) ) * 7 AS col2, + NULLIF ( - ( ( NULLIF ( + ( - COUNT ( * ) ), - 37 * 61 ) ) ), - COUNT ( * ) ) * - 27 AS col2 +---- +-27 +NULL query I rowsort label-5785 SELECT + 85 / + 68 @@ -30385,8 +30766,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * - + 99 AS col0, - 15 AS col0 +---- +-15 +99 query I rowsort label-5787 SELECT - COUNT ( * ) / - 26 AS col1 @@ -30444,8 +30828,11 @@ SELECT - 11 + + 66 + + 16 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 43 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(24\) \+ Int64\(18\) \+ count\(Int64\(1\)\) AS count\(\*\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "CASE Int64\(23\) WHEN Int64\(\-31\) \* Int64\(61\) \* Int64\(21\) \- Int64\(41\) THEN Int64\(61\) \- Int64\(42\) WHEN Int64\(\-49\) THEN NULL ELSE NULL END \* Int64\(9\) \+ Int64\(\-98\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 +---- +43 +NULL query I rowsort label-5797 SELECT 89 / 92 + - 95 * 29 * - COUNT ( * ) - - + 56 AS col2 @@ -30654,8 +31041,11 @@ SELECT COUNT ( 82 ) - - + ( + NULLIF ( + 46, - 31 + 51 ) ) + - 86 / + 94 - - 79 # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -86 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col0" at position 0 and "Int64\(\-86\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 80 AS col0, - 86 col0 +---- +-86 +80 query I rowsort label-5836 SELECT 75 * + ( - MAX ( 49 ) ) @@ -30725,8 +31115,11 @@ SELECT COALESCE ( 43, + 31, - + 86 ) + + COUNT ( * ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(74\) AS col2" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 74 AS col2, - CAST ( NULL AS INTEGER ) AS col2 +---- +74 +NULL query I rowsort SELECT DISTINCT ( + 65 ) + + 35 + + 84 AS col0 @@ -31198,8 +31591,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -3 # Datafusion - Expected - 35 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-71\) / Int64\(54\) \+ coalesce\(\(\- Int64\(2\)\), Int64\(\-35\) \* \(\- CAST\(Int64\(\-16\) AS Int32\)\)\) AS col0" at position 0 and "Int64\(35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 71 / + 54 + + COALESCE ( - + 2, - 35 * + - CAST ( - 16 AS INTEGER ) ) AS col0, 35 AS col0 +---- +-3 +35 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -31907,8 +32303,11 @@ SELECT - COUNT ( * ) * + ( + - 34 ) + + COUNT ( * ) + - 68 # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(21\) AS col0" at position 0 and "Int64\(77\) \+ sum\(Int64\(33\)\) \+ Int64\(\-38\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 21 AS col0, 77 + + + SUM ( 33 ) + + - 38 AS col0 +---- +21 +72 query II rowsort label-6075 SELECT ALL - - 16, + ( - CAST ( - 32 AS INTEGER ) ) + - ( + 49 ) + - COUNT ( * ) * + - 0 * - + 83 AS col1 @@ -32328,8 +32727,11 @@ SELECT - 62 + + 99 # Datafusion - Datafusion expected results: # Datafusion - Expected - 82 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(82\) AS col0" at position 0 and "coalesce\(Int64\(72\), Int64\(\-77\) / \(\- Int64\(52\)\) \+ \(\- Int64\(\-11\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 82 AS col0, + COALESCE ( + 72, - 77 / - + 52 + - - 11 ) AS col0 +---- +72 +82 query I rowsort label-6155 SELECT NULLIF ( COUNT ( * ), - 37 * + 64 ) @@ -32498,8 +32900,11 @@ SELECT ALL 4 * 86 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - -2647 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(63\) / Int64\(\-64\) AS col2" at position 0 and "nullif\(Int64\(29\), CAST\(NULL AS Int32\)\) \* \(\- Int64\(95\)\) \+ Int64\(67\) \+ Int64\(\-29\) \* Int64\(24\) / Int64\(90\) \+ Int64\(48\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 63 / - 64 AS col2, + ( NULLIF ( + 29, + CAST ( NULL AS INTEGER ) ) ) * - + 95 + + 67 + - 29 * 24 / + 90 + + 48 AS col2 +---- +-2647 +0 query II rowsort label-6188 SELECT ALL 98 + + + CAST ( NULL AS INTEGER ) AS col1, - 46 @@ -32674,8 +33079,11 @@ SELECT DISTINCT - NULLIF ( - 1, 18 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 5453 # Datafusion - Expected - -7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(68\) \* Int64\(80\) \- Int64\(\-13\) AS col2" at position 0 and "Int64\(\-7\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 68 * + 80 - + - 13 AS col2, - 7 AS col2 +---- +-7 +5453 query I rowsort SELECT 92 * - 90 AS col2 @@ -33112,8 +33520,11 @@ SELECT ALL + 13 + + - 95 + COUNT ( * ) * 44 # Datafusion - Datafusion expected results: # Datafusion - Expected - -40 # Datafusion - Expected - 48 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-40\) AS col0" at position 0 and "Int64\(48\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 40 AS col0, + 48 AS col0 +---- +-40 +48 query I rowsort label-6303 SELECT DISTINCT + - 37 + + + COUNT ( DISTINCT - 56 ) + - 0 * COUNT ( * ) + - ( 99 ) * - 66 col2 @@ -33756,8 +34167,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(47\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 26 + - COUNT ( * ) AS col0, 47 AS col0 +---- +25 +47 query I rowsort SELECT CASE + ( + - 59 ) WHEN + 47 + 21 THEN ( - - 23 ) WHEN - 19 THEN NULL END * + 2 @@ -34020,8 +34434,11 @@ SELECT + 68 / - - COALESCE ( - CASE - - 44 WHEN + + COUNT ( * ) - ( - 29 ) THEN # Datafusion - Datafusion expected results: # Datafusion - Expected - -29 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-38\) \+ Int64\(9\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 38 + + 9 AS col2, 50 AS col2 +---- +-29 +50 query I rowsort SELECT ALL ( + 80 ) * + 54 @@ -34091,8 +34508,12 @@ SELECT ALL + - 27 + - - COUNT ( + + 39 ) + - 53 AS col0, - 92 * + COUNT ( * ) AS # Datafusion - Expected - -1988 # Datafusion - Expected - NULL # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(71\), Int64\(44\) / CAST\(NULL AS Int32\) \+ Int64\(31\)\) \* \(\- Int64\(28\)\) AS col2" at position 0 and "Int64\(82\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT COALESCE ( + 71, 44 / + CAST ( NULL AS INTEGER ) + + 31 ) * - + 28 col2, + CASE + 49 WHEN 17 THEN NULL WHEN - 67 + + + 73 + + - 94 + - - 76 * - 15 THEN NULL WHEN 39 THEN + 87 WHEN + 62 THEN NULL END col0, + + 82 AS col2 +---- +-1988 +82 +NULL query I rowsort label-6486 SELECT + 92 / - 44 AS col0 @@ -34586,8 +35007,11 @@ 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\(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\. +query II valuesort SELECT + CASE + COUNT ( * ) WHEN 62 - - COUNT ( * ) + - - 25 THEN NULL WHEN 55 * + 39 THEN + 15 ELSE NULL END + - 1 AS col1, - 38 AS col1 +---- +-38 +NULL query I rowsort label-6580 SELECT - 74 + ( CAST ( - 88 AS INTEGER ) ) * 51 - + COUNT ( * ) AS col1 @@ -34802,8 +35226,11 @@ SELECT - 44 * COUNT ( * ) AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -60 # Datafusion - Expected - -3864 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-60\) AS col2" at position 0 and "Int64\(\-57\) \+ Int64\(\-81\) \* \(\- \(\- \(\- Int64\(\-47\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 60 AS col2, - 57 + + - 81 * - - ( + - ( - 47 ) ) AS col2 +---- +-3864 +-60 query I rowsort SELECT - COALESCE ( - 32, - 56 ) + + 41 @@ -34823,8 +35250,11 @@ SELECT ALL + COALESCE ( - - COUNT ( * ), - 66 + 23, 59 * + 96 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - -16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col2" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ min\(CAST\(Int64\(\-15\) AS Int32\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 28 AS col2, - COUNT ( * ) + MIN ( + CAST ( - 15 AS INTEGER ) ) col2 +---- +-16 +28 query I rowsort label-6625 SELECT DISTINCT + 44 - + 13 / COALESCE ( 10, 6 ) @@ -35613,8 +36043,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 57 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(57\) AS col1" at position 0 and "Int64\(41\) \+ Int64\(26\) \+ \(\- Int64\(\-90\)\) \+ Int64\(\-75\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 57 AS col1, + 41 + + 26 + - - 90 + - 75 AS col1 +---- +57 +82 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -36223,8 +36656,11 @@ SELECT ALL NULLIF ( ( + - 59 ), - 80 ) AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 392 # Datafusion - Expected - -1200 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(DISTINCT \(\- Int64\(\-14\)\)\) \* Int64\(28\) \* Int64\(1\) AS col2" at position 0 and "Int64\(15\) \* \(\- Int64\(80\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( DISTINCT - - 14 ) * 28 * 1 AS col2, + 15 * - + 80 AS col2 +---- +-1200 +392 query I rowsort label-6892 SELECT - + 41 * - + SUM ( 29 ) - COUNT ( * ) * + 76 AS col2 @@ -36828,8 +37264,11 @@ SELECT - 38, + 51 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 90 # Datafusion - Expected - -84 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(90\) AS col2" at position 0 and "Int64\(\-84\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 90 AS col2, - 84 AS col2 +---- +-84 +90 query I rowsort label-7007 SELECT ALL COUNT ( * ) / - 1 AS col2 @@ -38106,8 +38545,11 @@ NULL # 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\(6\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 13 AS col1, 6 AS col1 +---- +-13 +6 query I rowsort label-7256 SELECT ALL - NULLIF ( 5, ( COUNT ( * ) ) ) AS col2 @@ -38629,8 +39071,11 @@ SELECT - 44 + - + 62 * + 13 * - - 59 * - 19 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -19 # Datafusion - Expected - 101 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- Int64\(\-19\)\)\) AS col2" at position 0 and "Int64\(96\) \+ Int64\(5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( - - 19 ) AS col2, 96 + + 5 AS col2 +---- +-19 +101 query I rowsort label-7354 SELECT - SUM ( + 97 ) AS col2 @@ -39019,8 +39464,11 @@ SELECT 78 AS col1, 11 # Datafusion - Datafusion expected results: # Datafusion - Expected - -56 # Datafusion - Expected - -49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-56\) AS col0" at position 0 and "Int64\(\-49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 56 AS col0, - 49 AS col0 +---- +-49 +-56 query I rowsort label-7429 SELECT 86 + - + CAST ( 18 AS INTEGER ) @@ -39592,8 +40040,11 @@ SELECT 18 / + 2 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 "Int64\(12\) AS col0" at position 0 and "Int64\(4\) \+ Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 12 AS col0, 4 + + 79 col0 +---- +12 +83 query I rowsort SELECT - 73 - - ( - 84 ) @@ -40085,8 +40536,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 # Datafusion - Expected - -1496 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col0" at position 0 and "CASE \(\- Int64\(\-71\)\) WHEN Int64\(23\) THEN NULL ELSE Int64\(\-22\) \* \(\- max\(Int64\(\-68\)\)\) END AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 49 col0, + CASE - - 71 WHEN ( + + 23 ) THEN NULL ELSE - 22 * - MAX ( ALL + - 68 ) END AS col0 +---- +-1496 +49 query II rowsort SELECT ALL 75 AS col2, 82 @@ -40250,8 +40704,11 @@ SELECT MIN ( - 33 ) col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 935 # Datafusion - Expected - 5698 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(Int64\(17\), nullif\(Int64\(96\), CAST\(Int64\(50\) AS Int32\)\), Int64\(28\) \* Int64\(9\) \+ Int64\(60\)\) \* Int64\(55\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-2\) \* Int64\(\-37\) \* Int64\(77\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL COALESCE ( 17, NULLIF ( 96, + CAST ( + 50 AS INTEGER ) ), + + 28 * 9 + 60 ) * 55 AS col1, COUNT ( * ) * - 2 * - 37 * + 77 AS col1 +---- +5698 +935 query II rowsort label-7658 SELECT - 34 * - 31 + + 30 * 28 + COUNT ( * ) AS col2, - 62 + 90 @@ -40405,8 +40862,11 @@ SELECT ( + COALESCE ( - 94, 81 ) ) col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 0 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 0 col1, 12 AS col1 +---- +0 +12 query I rowsort label-7687 SELECT + 11 * 75 / 21 + - - 17 AS col1 @@ -40426,8 +40886,11 @@ SELECT ALL - 85 * - - 97 + - 0 * - - 66 # Datafusion - Datafusion expected results: # Datafusion - Expected - 15 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "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 II valuesort SELECT + 15 AS col1, 5 AS col1 +---- +15 +5 query I rowsort SELECT DISTINCT 73 * + - 40 * - 62 + - 71 + - 51 @@ -40666,8 +41129,11 @@ 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\(1\)\) AS count\(\*\) \* Int64\(24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 80 * - - 88 AS col2, NULLIF ( + 22, + ( + 36 ) + + - 85 ) + 74 * + ( COUNT ( * ) ) * + 24 AS col2 +---- +-7040 +1798 query II rowsort label-7738 SELECT ALL - COUNT ( * ) - - - 77 + - + CASE COUNT ( * ) WHEN 33 THEN 56 WHEN + 25 THEN NULL WHEN ( 38 ) THEN NULL ELSE - 94 * - 63 - + ( - + 45 ) / + 96 END AS col0, + 68 AS col2 @@ -40900,8 +41366,11 @@ SELECT - COUNT ( * ) * + + ( 81 ) + - 23 AS col1 # 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 "Int64\(40\) AS col1" at position 0 and "min\(Int64\(81\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 40 AS col1, MIN ( ( 81 ) ) AS col1 +---- +40 +81 query I rowsort label-7783 SELECT COUNT ( * ) - - MAX ( DISTINCT 67 ) + - 28 @@ -41042,8 +41511,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -91 # Datafusion - Expected - 38 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-91\) \* count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 91 * + + COUNT ( * ) AS col1, 38 AS col1 +---- +-91 +38 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] I[I] @@ -41122,8 +41594,11 @@ 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\(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\. +query II valuesort SELECT ALL + ( - COUNT ( * ) ) AS col1, + COUNT ( * ) - - 80 AS col1 +---- +-1 +81 query I rowsort SELECT DISTINCT - 29 + 2 @@ -41876,14 +42351,20 @@ SELECT - SUM ( DISTINCT + 89 ) * - 46 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 25 # Datafusion - Expected - 63 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) AS col0" at position 0 and "Int64\(63\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 25 AS col0, 63 AS col0 +---- +25 +63 # 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 "\(\- coalesce\(Int64\(\-3\), Int64\(\-58\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( - 64 ) AS col0, - COALESCE ( - 3, + - 58 ) AS col0 +---- +-64 +3 query I rowsort SELECT - 19 * + - 89 @@ -41893,8 +42374,11 @@ SELECT - 19 * + - 89 # Datafusion - Datafusion expected results: # Datafusion - Expected - 770 # Datafusion - Expected - -78 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-22\) \* Int64\(\-35\) AS col0" at position 0 and "Int64\(\-78\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 22 * + - 35 AS col0, - 78 AS col0 +---- +-78 +770 query I rowsort SELECT NULLIF ( - 42, + 35 / - 41 + - 54 + + - 89 + + 92 * + 13 - 59 ) col1 @@ -41952,8 +42436,11 @@ SELECT + 93 AS col1, COUNT ( 42 ) - + 66 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 75 # Datafusion - Expected - 21 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(75\) AS Int32\) AS col2" at position 0 and "Int64\(21\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( 75 AS INTEGER ) AS col2, + 21 AS col2 +---- +21 +75 query I rowsort SELECT + 80 * + 76 AS col1 @@ -42016,8 +42503,11 @@ SELECT ALL 65 + + 37 / - 86 AS col2 # 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 "nullif\(Int64\(\-48\), \(\- Int64\(89\)\) \+ Int64\(20\) \* Int64\(\-26\) / Int64\(70\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 83 col1, NULLIF ( - 48, + - ( + + 89 ) + + + 20 * - 26 / 70 ) AS col1 +---- +-48 +-83 query I rowsort SELECT + + 25 - + 85 @@ -42097,8 +42587,11 @@ SELECT CAST ( - 48 AS INTEGER ) * 16 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -162 # Datafusion - Expected - 11 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(9\) \* Int64\(\-18\) AS col2" at position 0 and "Int64\(11\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 9 * - 18 AS col2, 11 AS col2 +---- +-162 +11 query I rowsort label-8009 SELECT ALL 13 + + COUNT ( * ) + - 63 @@ -42207,8 +42700,11 @@ SELECT 58 / + + 16 # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-10\) AS col2" at position 0 and "Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 10 AS col2, 17 AS col2 +---- +-10 +17 query I rowsort SELECT DISTINCT - 12 * + + NULLIF ( - ( - + 48 ), 84 ) AS col2 @@ -42665,8 +43161,11 @@ SELECT - 12 col2, + 74 - 44 * - 8 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - NULL # Datafusion - Expected - -2325 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(96\) \+ Int64\(92\) \- Int64\(\-26\) \+ Int64\(79\) \* \(\- \(\- CASE Int64\(58\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN \(\- avg\(Int64\(79\)\)\) END\)\) \* count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(25\) \* Int64\(\-93\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL 96 + 92 - - 26 + + + 79 * - - CASE 58 WHEN - COUNT ( * ) THEN - ( + AVG ( 79 ) ) END * COUNT ( * ) col2, 25 * - 93 AS col2 +---- +-2325 +NULL query I rowsort SELECT DISTINCT 55 * + 74 @@ -42713,8 +43212,11 @@ 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\(1\)\) AS count\(\*\)\) \- Int64\(92\) \* Int64\(51\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 37 AS col2, + 0 + - COUNT ( * ) - 92 * 51 AS col2 +---- +-4693 +37 query II rowsort label-8127 SELECT 34 + - 99 * 6 * + 79 + - ( 51 ) AS col0, + COUNT ( DISTINCT 21 ) @@ -42822,8 +43324,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 4422038 # Datafusion - Expected - 49 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(46\) \* Int64\(\-80\) \+ \(\- Int64\(16\)\) \- Int64\(7\) / Int64\(69\) \* \(\- Int64\(3\)\) \* Int64\(33\) \+ Int64\(\-84\) \+ Int64\(26\) \+ \(\- \(\- Int64\(64\)\)\) \* \(\- CASE Int64\(73\) WHEN Int64\(32\) \+ Int64\(\-7\) THEN NULL ELSE Int64\(\-37\) \* Int64\(89\) END\) \* Int64\(21\) AS col1" at position 0 and "Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 46 * + - 80 + - + 16 - 7 / + 69 * - + ( 3 ) * 33 + - 84 + + 26 + - ( - + 64 ) * - CASE + + 73 WHEN + + 32 + + - 7 THEN NULL ELSE - 37 * 89 END * 21 AS col1, 49 AS col1 +---- +4422038 +49 query I rowsort SELECT 3 - ( 21 ) @@ -43122,8 +43627,11 @@ SELECT ( + 83 ) col1, + 78 # Datafusion - Datafusion expected results: # Datafusion - Expected - -55 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-55\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "Int64\(55\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 55 * + + COUNT ( * ) AS col0, 55 AS col0 +---- +-55 +55 query I rowsort SELECT ALL 61 * 49 @@ -43181,8 +43689,11 @@ SELECT - COUNT ( * ) + COUNT ( * ) + - - 62 # 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 count\(\(\- Int64\(\-12\)\)\) WHEN Int64\(\-24\) \+ Int64\(\-7\) THEN NULL WHEN Int64\(68\) THEN \(\- Int64\(\-10\)\) ELSE NULL 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 II valuesort SELECT ALL + CASE COUNT ( - - 12 ) WHEN - 24 + - 7 THEN NULL WHEN 68 THEN - - 10 ELSE NULL END col2, - 71 AS col2 +---- +-71 +NULL query I rowsort SELECT + 59 * 21 @@ -43480,8 +43991,11 @@ SELECT DISTINCT - 85, - 46 / 18 AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 36 # Datafusion - Expected - -1540 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) \+ \(\- \(\- count\(DISTINCT Int64\(62\)\)\)\) \* Int64\(\-40\) AS col1" at position 0 and "Int64\(77\) \* nullif\(min\(Int64\(\-20\)\), Int64\(73\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 76 + - - COUNT ( DISTINCT + 62 ) * - 40 AS col1, 77 * + + NULLIF ( + ( + MIN ( - 20 ) ), + 73 ) AS col1 +---- +-1540 +36 query II rowsort SELECT ALL - + 15 AS col0, - 49 + - 97 + + 1 AS col1 @@ -44026,8 +44540,11 @@ SELECT ALL - - 49 * + 4 + - 94 # Datafusion - Datafusion expected results: # Datafusion - Expected - -32 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(Int64\(32\) AS Int32\)\) AS col1" at position 0 and "CAST\(NULL AS Int32\) \+ \(\- Int64\(66\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + CAST ( 32 AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) + - + 66 AS col1 +---- +-32 +NULL query I rowsort label-8369 SELECT ALL + 97 * - 31 + + COUNT ( * ) AS col1 @@ -44047,8 +44564,11 @@ 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\(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\. +query II valuesort SELECT - COUNT ( * ) * MIN ( ALL + ( + 33 ) ) + - 87 AS col0, - 3 AS col0 +---- +-120 +-3 query I rowsort SELECT DISTINCT + 39 + - + 9 + 53 @@ -44433,8 +44953,11 @@ SELECT ALL + 66 + COUNT ( * ) * - NULLIF ( 30, 59 * 71 ) + - COUNT ( * ) + - - C # Datafusion - Datafusion expected results: # Datafusion - Expected - -66 # Datafusion - Expected - -100 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-66\) AS col2" at position 0 and "Int64\(\-45\) \+ count\(Int64\(57\)\) \+ Int64\(\-58\) \+ \(\- Int64\(9\)\) / Int64\(80\) \- \(\- count\(Int64\(83\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - 66 AS col2, - 45 + + COUNT ( ALL + 57 ) + - 58 + - + 9 / + + 80 - - COUNT ( ALL + + 83 ) + COUNT ( * ) AS col2 +---- +-100 +-66 query I rowsort SELECT - - 91 * - 26 @@ -44589,8 +45112,11 @@ 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\(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\. +query II valuesort SELECT + COUNT ( * ) + 85 AS col0, 69 + + - 94 col0 +---- +-25 +86 query II rowsort label-8476 SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col0, 51 @@ -44649,8 +45175,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -24 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-24\) AS col0" at position 0 and "Int64\(\-6\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 24 col0, - 6 col0 +---- +-24 +-6 query I rowsort SELECT 27 + + 50 @@ -44712,8 +45241,11 @@ SELECT ALL 29 + - 96 AS col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - -45 # Datafusion - Expected - 59 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-45\) AS col2" at position 0 and "Int64\(59\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 45 AS col2, + 59 AS col2 +---- +-45 +59 query I rowsort SELECT 34 + - 24 * + - 79 @@ -44753,8 +45285,11 @@ SELECT DISTINCT - 65 * + + 22 * - 64 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - -1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + COUNT ( * ) AS col0, - COUNT ( * ) AS col0 +---- +-1 +1 query I rowsort SELECT + 34 * + 63 @@ -45156,8 +45691,11 @@ SELECT ALL 48 + - 51 * - + 38 + + MIN ( - 70 ) * + 65 AS col0 # 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\(\-44\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 62 AS col2, ( - 44 ) col2 +---- +-44 +62 query II rowsort SELECT 58, + 83 col0 @@ -45287,8 +45825,11 @@ SELECT DISTINCT 31 * ( + ( + 65 ) ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 37 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(75\) \+ Int64\(\-38\) AS col2" at position 0 and "CAST\(nullif\(Int64\(43\), \(\- CAST\(NULL AS Float64\)\) \* count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 75 + - 38 AS col2, + CAST ( + + NULLIF ( + 43, - CAST ( NULL AS FLOAT8 ) * + COUNT ( * ) ) AS INTEGER ) AS col2 +---- +37 +43 query I rowsort SELECT ALL 90 * + 99 + + 6 AS col2 @@ -45490,8 +46031,11 @@ SELECT DISTINCT + NULLIF ( - 95, + + 79 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - 45 # Datafusion - Expected - 17 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col2" at position 0 and "Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 45 AS col2, + 17 col2 +---- +17 +45 query I rowsort label-8645 SELECT - 1 * MAX ( DISTINCT + ( - 51 ) ) AS col0 @@ -46585,8 +47129,11 @@ SELECT ( + 61 ) * 92 / ( 64 ) + MAX ( 21 ) col0 # 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 col1" at position 0 and "Int64\(\-49\) \* Int64\(0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + 57 AS col1, - 49 * + 0 AS col1 +---- +-57 +0 query I rowsort SELECT - 26 * - 89 @@ -47006,8 +47553,11 @@ SELECT NULLIF ( - + 3, - + 90 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -49 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "min\(Int64\(\-49\)\) AS col0" at position 0 and "sum\(Int64\(28\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + MIN ( - 49 ) AS col0, SUM ( + 28 ) col0 +---- +-49 +28 query I rowsort SELECT - 76 * + - 93 * 28 @@ -47033,8 +47583,11 @@ SELECT - NULLIF ( - 13, 92 ) * - + 27 + - 20 col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - -36 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-36\) AS col0" at position 0 and "Int64\(\-25\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 36 AS col0, - 25 AS col0 +---- +-25 +-36 query I rowsort SELECT DISTINCT + - ( + + 15 ) * 72 - + - 59 @@ -47045,8 +47598,12 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col0" at position 0 and "Int64\(7\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - + COUNT ( * ) AS col0, + CAST ( - ( - - 49 ) AS INTEGER ), 7 AS col0 +---- +-1 +-49 +7 query I rowsort label-8944 SELECT - - CAST ( NULL AS INTEGER ) / + 41 + - 54 @@ -47170,8 +47727,11 @@ SELECT 34 * - COALESCE ( + 8, - 70 ) # Datafusion - Datafusion expected results: # Datafusion - Expected - -483 # Datafusion - Expected - 3 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(69\) \* Int64\(\-7\) AS col0" at position 0 and "Int64\(5\) \+ Int64\(\-2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 69 * - 7 AS col0, 5 + + - 2 col0 +---- +-483 +3 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -47248,8 +47808,11 @@ SELECT 81 + + 33 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(DISTINCT Int64\(\-27\)\) AS col2" at position 0 and "Int64\(\-58\) \- Int64\(49\) \+ Int64\(18\) \* CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( DISTINCT - 27 ) col2, - 58 - 49 + + 18 * CAST ( NULL AS INTEGER ) col2 +---- +1 +NULL query I rowsort label-8981 SELECT + COALESCE ( - 50, + + SUM ( - 8 ) * + 42 ) * + 23 @@ -47842,8 +48405,11 @@ 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\(Int64\(1\)\) AS count\(\*\)\)\)\) AS col0" at position 0 and "Int64\(66\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 61 + + 5 + - + ( - - COUNT ( * ) ) col0, + 66 col0 +---- +65 +66 query I rowsort label-9094 SELECT ( 86 ) - COUNT ( * ) + - 30 + + + 54 * - 37 AS col2 @@ -48051,8 +48617,11 @@ SELECT DISTINCT + ( - 64 ) + - 53 + 2 + - 87 * 40 * - + MAX ( - + 68 ) + - + 84 # Datafusion - Datafusion expected results: # Datafusion - Expected - -48 # Datafusion - Expected - 72 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-39\) \+ Int64\(\-9\) AS col0" at position 0 and "Int64\(72\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 39 + + - 9 col0, 72 AS col0 +---- +-48 +72 query I rowsort SELECT 49 + + 39 AS col0 @@ -48087,8 +48656,11 @@ SELECT ALL 99 * + 17 AS col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 267 # Datafusion - Expected - 55 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(3\) \* Int64\(89\) AS col1" at position 0 and "Int64\(55\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 3 * 89 AS col1, 55 AS col1 +---- +267 +55 query I rowsort SELECT 74 + 62 + ( + 53 ) AS col0 @@ -48254,8 +48826,11 @@ 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\(1\)\) AS count\(\*\) \* \(\- Int64\(\-84\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 20 AS col0, COUNT ( * ) * - - 84 AS col0 +---- +20 +84 query I rowsort SELECT DISTINCT - 8 * 97 AS col2 @@ -48759,8 +49334,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 80 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(80\) AS col2" at position 0 and "Int64\(\-5\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 80 AS col2, - 5 col2 +---- +-5 +80 query II rowsort SELECT DISTINCT 32 col1, + 33 @@ -48871,8 +49449,12 @@ NULL # Datafusion - Expected - 0 # Datafusion - Expected - 99 # Datafusion - Expected - -43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(25\) / Int64\(\-33\) AS col0" at position 0 and "Int64\(\-43\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 25 / - 33 AS col0, + 99, - 43 col0 +---- +-43 +0 +99 query I rowsort label-9289 SELECT ALL 52 / - 68 + - COUNT ( * ) * - COUNT ( * ) AS col1 @@ -49005,8 +49587,11 @@ SELECT - 34 + 6 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 "Int64\(3\) \* Int64\(\-53\) \+ Int64\(97\) AS col2" at position 0 and "Int64\(18\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 3 * - 53 + + 97 AS col2, 18 col2 +---- +-62 +18 query I rowsort SELECT - 43 * 71 AS col0 @@ -49724,8 +50309,11 @@ SELECT ALL 28 * - 30 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 1 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\(\- Int64\(86\)\)\) AS col0" at position 0 and "Int64\(42\) \* \(\- CAST\(NULL AS Int32\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( - + 86 ) AS col0, 42 * ( - ( CAST ( NULL AS INTEGER ) ) ) col0 +---- +1 +NULL query II rowsort label-9453 SELECT - MIN ( - 56 ) * 99 + 84 AS col2, + 65 * 96 AS col1 @@ -49767,8 +50355,11 @@ SELECT COUNT ( * ), - 0 - - 87 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 "nullif\(Int64\(1\), min\(DISTINCT Int64\(73\)\) \+ Int64\(\-94\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 77 AS col1, NULLIF ( 1, + MIN ( DISTINCT + 73 ) + - 94 ) AS col1 +---- +-77 +1 query I rowsort label-9461 SELECT ALL COUNT ( * ) / 12 * 24 + + 71 + 28 * 27 + + 34 + 47 @@ -50056,8 +50647,11 @@ SELECT 60 + - CAST ( + ( - 34 ) AS INTEGER ) AS col0, 55 col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 54 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) AS col1" at position 0 and "Int64\(26\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 54 AS col1, 26 col1 +---- +26 +54 query I rowsort label-9517 SELECT ALL 35 + - CASE + ( + + 9 ) WHEN + + CAST ( NULL AS INTEGER ) * + 43 + COALESCE ( + 26, + 49 ) THEN + 7 END col0 @@ -50757,8 +51351,11 @@ NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - -10 # Datafusion - Expected - -2878 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(83\) \+ Int64\(\-93\) AS col2" at position 0 and "Int64\(59\) \+ Int64\(\-25\) \* Int64\(97\) \+ Int64\(\-16\) \* \(\- \(\- Int64\(32\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 83 + - 93 AS col2, + 59 + - 25 * 97 + + - 16 * - ( - + 32 ) AS col2 +---- +-10 +-2878 query I rowsort label-9651 SELECT - NULLIF ( - - COUNT ( * ), + + COUNT ( * ) * + + MAX ( DISTINCT + ( + - 81 ) ) + - 44 * 93 ) AS col2 @@ -50783,8 +51380,11 @@ 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\(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\. +query II valuesort 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 +---- +-21 +2747 query I rowsort label-9656 SELECT ALL + CAST ( + + 12 AS INTEGER ) + + ( - 6 ) + + - 6 * 41 + + - 13 + + 70 AS col2 @@ -50821,8 +51421,11 @@ SELECT ALL - 96 * + - COUNT ( * ) * - 19 # Datafusion - Datafusion expected results: # Datafusion - Expected - 85 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(85\) AS col1" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 85 AS col1, COUNT ( * ) AS col1 +---- +1 +85 query I rowsort label-9663 SELECT ALL - 6 * - CAST ( - ( - 79 ) AS INTEGER ) @@ -51588,8 +52191,11 @@ 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\(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\. +query II valuesort SELECT DISTINCT 5 AS col2, COUNT ( * ) * + CASE - 45 WHEN - + 81 THEN NULL ELSE + - 92 END col2 +---- +-92 +5 query II rowsort SELECT ALL 56 col1, 40 AS col0 @@ -51615,14 +52221,20 @@ SELECT 91 + - + ( + 98 ) AS col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 16 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(16\) AS col0" at position 0 and "Int64\(\-71\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 16 AS col0, - 71 AS col0 +---- +-71 +16 # Datafusion - Datafusion expected results: # Datafusion - Expected - 67 # Datafusion - Expected - 98 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(67\) AS col2" at position 0 and "Int64\(98\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 67 AS col2, + 98 AS col2 +---- +67 +98 query II rowsort label-9816 SELECT NULLIF ( - - 84, + NULLIF ( + 10, - 79 * + 74 + 7 + 2 * + + 20 ) - - 66 ) + + 50 + - 97 + - COUNT ( * ) AS col0, 1 AS col2 @@ -51901,8 +52513,11 @@ SELECT ALL - 77 * 2 + 9 + + COUNT ( * ) + - - 3 + 2 * 13 * SUM ( - ( - 79 ) ) * # Datafusion - Datafusion expected results: # Datafusion - Expected - 74 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(67\)\) \* coalesce\(\(\- Int64\(\-73\)\), \(\- nullif\(\(\- nullif\(Int64\(61\), count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(8\) \+ Int64\(\-13\) \+ Int64\(69\) \* Int64\(\-51\)\)\), count\(Int64\(1\)\) AS count\(\*\)\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(12\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + COUNT ( ALL + ( + 67 ) ) * COALESCE ( - - 73, - NULLIF ( - NULLIF ( + 61, COUNT ( * ) + 8 + - 13 + + 69 * + - 51 ), COUNT ( * ) ) ) + + COUNT ( * ) AS col1, + 12 AS col1 +---- +12 +74 query I rowsort label-9870 SELECT ALL - 48 * + ( 23 ) * 45 + 60 + + MAX ( DISTINCT - 98 ) + + + 6 + + 60 + 41 AS col0 @@ -52233,8 +52848,11 @@ SELECT + COUNT ( * ) AS col1, 63 + - COALESCE ( - - 92, - - 85, - - ( 78 ) * - N # Datafusion - Datafusion expected results: # Datafusion - Expected - 28 # Datafusion - Expected - 75 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(28\) AS col0" at position 0 and "Int64\(75\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + 28 AS col0, + 75 AS col0 +---- +28 +75 query I rowsort SELECT DISTINCT - + 30 + + 55 AS col0 @@ -52462,8 +53080,11 @@ SELECT DISTINCT - 9 + + 31 # 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\) AS col0" at position 0 and "Int64\(49\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 39 AS col0, 49 AS col0 +---- +39 +49 query I rowsort SELECT - 51 * - + 9 AS col2 diff --git a/data/sqlite/random/groupby/slt_good_10.slt b/data/sqlite/random/groupby/slt_good_10.slt index 9d8ade3..1b1ccb2 100644 --- a/data/sqlite/random/groupby/slt_good_10.slt +++ b/data/sqlite/random/groupby/slt_good_10.slt @@ -110,8 +110,15 @@ SELECT - col2 * + + col2 AS col1 FROM tab1 GROUP BY col2, col2 HAVING NOT - col2 # Datafusion - Expected - -38 # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col0 \+ \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, + col0 + - col1 AS col2 FROM tab0 GROUP BY col1, col0 +---- +-38 +26 +26 +43 +83 +83 query I rowsort SELECT DISTINCT - col1 AS col0 FROM tab2 AS cor0 GROUP BY col1, col1 HAVING NOT NULL IS NULL @@ -593,8 +600,15 @@ SELECT ALL - - col0 AS col2 FROM tab1 AS cor0 GROUP BY col0, col0 # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col2, + col2 FROM tab2 AS cor0 GROUP BY col2 +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT col0 + + col2 AS col2 FROM tab2 GROUP BY col0, col2 HAVING NOT - col2 IS NOT NULL @@ -1114,8 +1128,15 @@ SELECT ALL - col1 col1 FROM tab2 GROUP BY col1 # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col0, col0 AS col0 FROM tab1 GROUP BY col0 +---- +22 +22 +28 +28 +82 +82 query I rowsort SELECT ALL - + col1 FROM tab0 WHERE col0 IS NULL GROUP BY col1, col2 @@ -1156,8 +1177,15 @@ SELECT ALL col1 + + col1 AS col0 FROM tab1 GROUP BY col1 HAVING NULL IS NULL # Datafusion - Expected - 91 # Datafusion - Expected - 92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 col0, col0 FROM tab2 GROUP BY col1, col0 +---- +15 +15 +91 +91 +92 +92 query I rowsort SELECT ALL + - col2 AS col2 FROM tab0 AS cor0 GROUP BY col0, col2 @@ -1606,8 +1634,15 @@ SELECT DISTINCT col1 FROM tab1 AS cor0 GROUP BY col1, col1 # Datafusion - Expected - 71 # Datafusion - Expected - 8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, + col2 FROM tab1 GROUP BY col2, col0 +---- +45 +45 +71 +71 +8 +8 query I rowsort SELECT DISTINCT - + col0 FROM tab0 AS cor0 WHERE col2 IS NULL GROUP BY col2, col0 HAVING NOT ( NULL IS NOT NULL ) @@ -1739,8 +1774,15 @@ SELECT ALL - + col1 + + - col1 FROM tab2 AS cor0 GROUP BY col1, col1 # Datafusion - Expected - 43 # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0, + col0 FROM tab0 GROUP BY col0 HAVING NOT NULL IS NOT NULL +---- +26 +26 +43 +43 +83 +83 query I rowsort SELECT + col0 FROM tab0 GROUP BY col0 HAVING NOT AVG ( - col0 ) < NULL @@ -2290,8 +2332,15 @@ SELECT - col2 AS col1 FROM tab1 cor0 GROUP BY col2 # Datafusion - Expected - 79 # Datafusion - Expected - 0 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 + - col2 AS col1, col2 AS col1 FROM tab2 AS cor0 GROUP BY col2 +---- +0 +0 +0 +58 +79 +87 query I rowsort label-358 SELECT - + col0 / + col1 AS col1 FROM tab2 AS cor0 GROUP BY col1, col0 @@ -2338,8 +2387,13 @@ SELECT ALL col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL GROUP BY col0 # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 FROM tab0 GROUP BY col1, col1 +---- +0 +0 +81 +81 query I rowsort SELECT DISTINCT col1 FROM tab1 AS cor0 GROUP BY col1, col2, col0 HAVING NOT NULL IS NOT NULL @@ -2569,8 +2623,15 @@ SELECT - - col2 FROM tab0 AS cor0 GROUP BY col1, col2, col2 HAVING NOT ( NULL IS # Datafusion - Expected - 57 # Datafusion - Expected - -6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, + col1 col2 FROM tab1 AS cor0 GROUP BY col1 +---- +-44 +-57 +-6 +44 +57 +6 query I rowsort SELECT DISTINCT + col1 AS col0 FROM tab1 AS cor0 GROUP BY col1 HAVING NOT ( - col1 * + col1 IS NULL ) @@ -2837,8 +2898,13 @@ SELECT ALL - + col2 col2 FROM tab0 AS cor0 GROUP BY col2, col1 # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, col1 FROM tab0 AS cor0 GROUP BY col1 +---- +0 +0 +81 +81 query I rowsort SELECT DISTINCT col0 + + col2 FROM tab1 AS cor0 GROUP BY col2, col0 @@ -2915,8 +2981,15 @@ SELECT + col2 * col2 FROM tab2 GROUP BY col1, col2 # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, + col2 FROM tab2 GROUP BY col2 +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT ALL + + col1 FROM tab2 AS cor0 GROUP BY col1, col1 @@ -3860,8 +3933,15 @@ SELECT DISTINCT + col2 FROM tab0 cor0 GROUP BY col2, col2 # Datafusion - Expected - 59 # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, col1 AS col2 FROM tab2 cor0 GROUP BY col1 +---- +41 +41 +59 +59 +61 +61 query I rowsort SELECT col1 FROM tab1 GROUP BY col1 HAVING NOT NULL <> NULL @@ -4426,8 +4506,9 @@ SELECT + - col1 col2 FROM tab0 cor0 GROUP BY col1 HAVING NULL > NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, col2 FROM tab0 AS cor0 WHERE col0 * col1 IS NULL GROUP BY col2 +---- query I rowsort SELECT DISTINCT + col1 FROM tab0 GROUP BY col1, col1 HAVING NULL IS NOT NULL @@ -4613,8 +4694,15 @@ SELECT ALL - - col1 AS col0 FROM tab1 AS cor0 GROUP BY col1, col0 HAVING ( NULL # Datafusion - Expected - 59 # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, + col1 FROM tab2 GROUP BY col1 +---- +41 +41 +59 +59 +61 +61 query I rowsort SELECT ALL col1 + + - col1 FROM tab0 GROUP BY col1 @@ -4644,8 +4732,15 @@ SELECT DISTINCT - col0 AS col1 FROM tab1 AS cor0 GROUP BY col0, col2 HAVING NOT # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, col2 FROM tab2 AS cor0 GROUP BY col2, col2 +---- +58 +58 +79 +79 +87 +87 query I rowsort label-737 SELECT ALL - col0 / + col1 col2 FROM tab1 AS cor0 GROUP BY col0, col1 @@ -4773,8 +4868,15 @@ SELECT + col1 * - col2 FROM tab1 AS cor0 GROUP BY col2, col1 # Datafusion - Expected - 91 # Datafusion - Expected - 92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, col0 FROM tab2 AS cor0 GROUP BY col0, col1, col1 +---- +15 +15 +91 +91 +92 +92 query I rowsort SELECT DISTINCT + col0 FROM tab2 cor0 GROUP BY col0, col1 @@ -5817,8 +5919,9 @@ SELECT ALL + col1 AS col1 FROM tab2 cor0 GROUP BY col1 61 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "tab2\.col1 \* tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, + col1 * + col1 AS col0 FROM tab2 GROUP BY col1, col1 HAVING NULL IS NOT NULL +---- query I rowsort SELECT col2 + col2 + - col2 FROM tab2 GROUP BY col2, col2 @@ -7068,8 +7171,9 @@ SELECT ALL - col0 * col0 FROM tab0 AS cor0 GROUP BY col0 -6889 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col2, col2 AS col2 FROM tab1 GROUP BY col2 HAVING NULL <= NULL +---- query I rowsort SELECT DISTINCT + col1 FROM tab2 WHERE NOT col1 IS NOT NULL GROUP BY col1 HAVING NULL IS NOT NULL @@ -7329,8 +7433,15 @@ SELECT col1 AS col2 FROM tab2 GROUP BY col0, col1 # Datafusion - Expected - 91 # Datafusion - Expected - 92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, col0 FROM tab2 GROUP BY col0 +---- +15 +15 +91 +91 +92 +92 query I rowsort SELECT - - col2 AS col0 FROM tab2 AS cor0 GROUP BY col2, col2 @@ -7865,8 +7976,15 @@ SELECT DISTINCT col2 - - + col2 FROM tab0 GROUP BY col2, col0 # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, + col0 FROM tab1 cor0 GROUP BY col0, col0 +---- +22 +22 +28 +28 +82 +82 query I rowsort SELECT col2 col2 FROM tab0 GROUP BY col2, col0, col2 @@ -8197,8 +8315,15 @@ SELECT ALL col2 * - col2 AS col2 FROM tab1 GROUP BY col2 # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col2, col2 FROM tab0 AS cor0 GROUP BY col2 +---- +24 +24 +38 +38 +79 +79 query I rowsort SELECT - col2 AS col1 FROM tab2 GROUP BY col2, col0 HAVING NULL IS NULL @@ -8656,8 +8781,13 @@ SELECT - - col1 col1 FROM tab1 cor0 GROUP BY col1 # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col2, - col1 AS col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL GROUP BY col1 +---- +-81 +0 +0 +81 query I rowsort SELECT - col1 + - col1 FROM tab2 AS cor0 GROUP BY col1, col0, col1 @@ -9190,8 +9320,15 @@ SELECT DISTINCT + col2 AS col1 FROM tab0 GROUP BY col2, col2 # Datafusion - Expected - 71 # Datafusion - Expected - 8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col0, + col2 col0 FROM tab1 AS cor0 GROUP BY col2, col2 HAVING NOT ( NULL ) IS NOT NULL +---- +45 +45 +71 +71 +8 +8 query I rowsort SELECT ALL + - col1 AS col0 FROM tab1 AS cor0 GROUP BY col1, col2 HAVING NOT NULL BETWEEN NULL AND NULL @@ -9417,8 +9554,15 @@ SELECT - col1 * - + col1 AS col0 FROM tab2 GROUP BY col1 # Datafusion - Expected - 91 # Datafusion - Expected - -92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col0 AS col2, col0 AS col2 FROM tab2 AS cor0 GROUP BY col0, col1 +---- +-15 +-91 +-92 +15 +91 +92 # Datafusion - Datafusion expected results: # Datafusion - Expected - -26 @@ -9553,8 +9697,15 @@ SELECT + col0 * + - col0 * - col0 AS col2 FROM tab2 AS cor0 GROUP BY col0 # Datafusion - Expected - 0 # Datafusion - Expected - 79 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT AVG ( col2 ) AS col0, - col1 AS col0 FROM tab0 AS cor0 GROUP BY col1, col2 HAVING + col2 IS NOT NULL +---- +-81 +0 +0 +24 +38 +79 query I rowsort SELECT ALL col2 FROM tab0 AS cor0 GROUP BY col2 HAVING NOT NULL > ( NULL ) @@ -10399,8 +10550,15 @@ SELECT col0 FROM tab2 GROUP BY col0, col2 HAVING NOT NULL IS NOT NULL # Datafusion - Expected - -79 # Datafusion - Expected - 87 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col0, - col2 AS col0 FROM tab2 AS cor0 GROUP BY col2 +---- +-58 +-79 +-87 +58 +79 +87 query I rowsort SELECT DISTINCT - col0 + - col0 FROM tab2 AS cor0 GROUP BY col0 @@ -10833,8 +10991,15 @@ SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL GROUP BY col0 # Datafusion - Expected - 56 # Datafusion - Expected - -82 # Datafusion - Expected - 164 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col2" at position 0 and "tab1\.col0 \- \(\- tab1\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, col0 - - col0 AS col2 FROM tab1 GROUP BY col0 +---- +-22 +-28 +-82 +164 +44 +56 query I rowsort SELECT col2 FROM tab1 GROUP BY col2 HAVING NULL <= NULL @@ -10938,8 +11103,15 @@ SELECT DISTINCT + + col2 FROM tab0 cor0 GROUP BY col2 # Datafusion - Expected - 43 # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col0, + col0 FROM tab0 AS cor0 GROUP BY col0 +---- +26 +26 +43 +43 +83 +83 query I rowsort SELECT DISTINCT col1 FROM tab0 GROUP BY col2, col1, col1 @@ -11011,8 +11183,15 @@ SELECT DISTINCT col0 AS col2 FROM tab1 cor0 GROUP BY col0 HAVING NULL IS NOT NUL # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 col0 FROM tab1 GROUP BY col0 HAVING AVG ( col0 ) IS NOT NULL +---- +22 +22 +28 +28 +82 +82 query I rowsort SELECT + col0 * + - col2 / - - col0 AS col2 FROM tab0 cor0 GROUP BY col2, col0 HAVING NULL <= NULL @@ -11498,8 +11677,15 @@ SELECT DISTINCT + col0 FROM tab0 AS cor0 GROUP BY col0, col1 # Datafusion - Expected - 57 # Datafusion - Expected - 6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, col1 FROM tab1 GROUP BY col1, col1 +---- +44 +44 +57 +57 +6 +6 query I rowsort SELECT + col0 * + col0 AS col1 FROM tab0 GROUP BY col0, col2 @@ -11536,8 +11722,15 @@ SELECT DISTINCT - - col0 * - col0 FROM tab1 AS cor0 GROUP BY col2, col0, col0 # Datafusion - Expected - 59 # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col1, + col1 FROM tab2 AS cor0 GROUP BY col1, col1 +---- +41 +41 +59 +59 +61 +61 query I rowsort SELECT DISTINCT + col0 + - col0 col0 FROM tab1 GROUP BY col0 @@ -11886,8 +12079,9 @@ SELECT + + col0 FROM tab2 AS cor0 GROUP BY col0, col1, col0 92 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, col0 FROM tab2 cor0 GROUP BY col0 HAVING NULL IS NOT NULL +---- query I rowsort SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 GROUP BY col2, col0 @@ -12093,8 +12287,15 @@ SELECT ALL + - col0 AS col2 FROM tab1 AS cor0 GROUP BY col1, col0 # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col2, col2 FROM tab0 GROUP BY col2 +---- +24 +24 +38 +38 +79 +79 query I rowsort SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 GROUP BY col0, col0 @@ -12739,8 +12940,9 @@ SELECT col0 FROM tab1 GROUP BY col1, col1, col0 82 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 col0, + col0 FROM tab0 GROUP BY col0 HAVING NULL IS NOT NULL +---- query II rowsort SELECT col0, - col0 FROM tab2 GROUP BY col0 @@ -13411,8 +13613,9 @@ query error DataFusion error: Error during planning: Column in HAVING must be in SELECT DISTINCT + col2 - + col2 * - col2 col0 FROM tab0 GROUP BY col2 HAVING NOT ( NULL ) NOT IN ( col0 ) # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, col1 FROM tab2 WHERE NULL IS NOT NULL GROUP BY col1 HAVING NOT - AVG ( ALL col2 ) IS NOT NULL +---- query I rowsort SELECT ALL + col2 AS col0 FROM tab1 cor0 GROUP BY col2, col0 @@ -13589,8 +13792,15 @@ SELECT DISTINCT + col2 FROM tab0 WHERE NOT col0 NOT BETWEEN - col2 + col0 AND NU # Datafusion - Expected - -28 # Datafusion - Expected - -82 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0, - col0 FROM tab1 cor0 GROUP BY col1, col0 +---- +-22 +-22 +-28 +-28 +-82 +-82 query I rowsort SELECT col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL GROUP BY col0 HAVING NULL IS NOT NULL @@ -14505,8 +14715,15 @@ SELECT DISTINCT col0 FROM tab1 cor0 GROUP BY col1, col0 # Datafusion - Expected - 71 # Datafusion - Expected - 8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col2, col2 FROM tab1 cor0 GROUP BY col2 +---- +45 +45 +71 +71 +8 +8 query I rowsort SELECT - col0 FROM tab2 AS cor0 GROUP BY col0 HAVING NOT NULL IS NULL @@ -15059,8 +15276,15 @@ SELECT col2 AS col0 FROM tab2 GROUP BY col0, col2 HAVING NOT NULL IS NULL # Datafusion - Expected - 142 # Datafusion - Expected - -8 # Datafusion - Expected - 16 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "tab1\.col2 \+ tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, col2 + col2 AS col1 FROM tab1 GROUP BY col2 +---- +-45 +-71 +-8 +142 +16 +90 query I rowsort SELECT ALL col1 AS col1 FROM tab1 cor0 GROUP BY col1 @@ -16169,8 +16393,9 @@ SELECT - col0 FROM tab2 GROUP BY col2, col0, col0 -92 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col0, + col2 AS col0 FROM tab0 AS cor0 GROUP BY col2 HAVING NULL IS NOT NULL +---- query I rowsort SELECT ALL col2 FROM tab2 GROUP BY col2, col2, col2 @@ -16419,8 +16644,15 @@ SELECT DISTINCT - - col1 FROM tab0 AS cor0 GROUP BY col1 HAVING NOT NULL >= NULL # Datafusion - Expected - 71 # Datafusion - Expected - 8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2, col2 col2 FROM tab1 AS cor0 GROUP BY col2 +---- +45 +45 +71 +71 +8 +8 query I rowsort SELECT col1 AS col2 FROM tab1 GROUP BY col0, col0, col1 HAVING + - col1 IS NOT NULL @@ -17440,8 +17672,15 @@ SELECT ALL col2 AS col1 FROM tab2 AS cor0 GROUP BY col2, col2, col0 # Datafusion - Expected - 71 # Datafusion - Expected - 8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, + col2 AS col1 FROM tab1 AS cor0 GROUP BY col2, col2 +---- +45 +45 +71 +71 +8 +8 query I rowsort SELECT col2 * - + col2 AS col1 FROM tab2 AS cor0 GROUP BY col2 @@ -18248,8 +18487,15 @@ SELECT + AVG ( ALL + + col2 ) AS col1 FROM tab1 GROUP BY col2 HAVING NOT NULL <> # Datafusion - Expected - 0 # Datafusion - Expected - 2 # Datafusion - Expected - -2 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 / tab1\.col0 AS col0" at position 0 and "tab1\.col1 / \(\- tab1\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 / + col0 AS col0, col1 / - col0 AS col0 FROM tab1 GROUP BY col1, col0 +---- +-2 +0 +0 +0 +0 +2 query I rowsort SELECT DISTINCT col0 FROM tab2 GROUP BY col0, col2 HAVING col0 IS NULL @@ -18269,8 +18515,15 @@ SELECT ALL + col0 AS col2 FROM tab1 GROUP BY col1, col0 # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, + col0 FROM tab1 GROUP BY col0, col0 +---- +22 +22 +28 +28 +82 +82 query I rowsort SELECT col1 col2 FROM tab2 AS cor0 GROUP BY col1, col2 @@ -18478,8 +18731,9 @@ SELECT - col1 FROM tab1 GROUP BY col1, col0, col1 HAVING NULL IS NOT NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "avg\(cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT + col2 AS col0, AVG ( ALL + col2 ) col0 FROM tab1 AS cor0 GROUP BY col2 HAVING NOT NULL IS NULL +---- query I rowsort SELECT col0 - - col0 * col0 col0 FROM tab2 GROUP BY col0, col0 @@ -18553,8 +18807,15 @@ SELECT col2 * col2 FROM tab1 AS cor0 GROUP BY col2 # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, col2 FROM tab0 GROUP BY col1, col1, col2 +---- +24 +24 +38 +38 +79 +79 query I rowsort SELECT - col0 - + col0 AS col0 FROM tab1 GROUP BY col0 @@ -18644,8 +18905,15 @@ SELECT DISTINCT - col0 FROM tab0 AS cor0 GROUP BY col0, col0 HAVING NOT NULL IS # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, + col2 FROM tab2 GROUP BY col2 +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT DISTINCT - col1 * - - col1 FROM tab0 AS cor0 GROUP BY col1 @@ -19111,8 +19379,13 @@ SELECT col1 AS col2 FROM tab0 GROUP BY col1 HAVING NULL NOT BETWEEN NULL AND NUL # Datafusion - Expected - -81 # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col1, - col1 FROM tab0 cor0 GROUP BY col1, col1 HAVING NOT ( NULL ) IS NOT NULL +---- +-81 +-81 +0 +0 query I rowsort SELECT - col2 AS col1 FROM tab2 GROUP BY col2, col2, col0 @@ -20070,8 +20343,15 @@ SELECT ALL - + col1 AS col1 FROM tab2 AS cor0 GROUP BY col1, col1 # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, + col0 FROM tab1 AS cor0 GROUP BY col0 +---- +22 +22 +28 +28 +82 +82 query I rowsort SELECT DISTINCT + col0 FROM tab1 GROUP BY col0 HAVING NOT NULL IS NOT NULL @@ -20253,8 +20533,15 @@ SELECT DISTINCT - col2 AS col1 FROM tab2 GROUP BY col1, col2, col1 # Datafusion - Expected - 57 # Datafusion - Expected - 6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col1, col1 FROM tab1 GROUP BY col1, col2 +---- +44 +44 +57 +57 +6 +6 query I rowsort SELECT DISTINCT + + col0 FROM tab2 AS cor0 GROUP BY col0, col2 @@ -20345,8 +20632,15 @@ SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL GROUP BY col1 # Datafusion - Expected - 43 # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col0, + col0 AS col0 FROM tab0 GROUP BY col0 +---- +26 +26 +43 +43 +83 +83 query I rowsort SELECT col1 + col2 AS col2 FROM tab0 AS cor0 GROUP BY col1, col2, col0, col0 @@ -20770,8 +21064,15 @@ SELECT ALL - + col2 AS col2, + col2 AS col0 FROM tab0 cor0 GROUP BY col2, col2 # Datafusion - Expected - -71 # Datafusion - Expected - -8 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "\(\- cor0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2, - col2 FROM tab1 AS cor0 GROUP BY col2, col1 +---- +-45 +-45 +-71 +-71 +-8 +-8 query I rowsort SELECT - col0 + + + col0 AS col1 FROM tab2 GROUP BY col0, col1, col0 @@ -23108,8 +23409,15 @@ SELECT + - col0 AS col2, col0 FROM tab1 AS cor0 GROUP BY col0 # Datafusion - Expected - 38 # Datafusion - Expected - -79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col1, + col2 AS col1 FROM tab0 AS cor0 GROUP BY col2 +---- +-24 +-38 +-79 +24 +38 +79 query I rowsort SELECT DISTINCT + col0 AS col2 FROM tab1 GROUP BY col0, col2 @@ -24083,8 +24391,15 @@ SELECT ALL col0 / + col0 AS col1 FROM tab1 GROUP BY col0 # Datafusion - Expected - 26 # Datafusion - Expected - -6889 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 \* \(\- tab0\.col0\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 * - col0 AS col2, + col0 AS col2 FROM tab0 GROUP BY col0 +---- +-1849 +-676 +-6889 +26 +43 +83 query I rowsort SELECT DISTINCT - col0 AS col0 FROM tab2 GROUP BY col2, col0 @@ -24268,8 +24583,9 @@ SELECT - col1 + + col1 FROM tab1 GROUP BY col1, col2 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\)" at position 0 and "\(\- tab0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1, - col1 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND NULL GROUP BY col1 HAVING NULL IS NOT NULL +---- query I rowsort SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 GROUP BY col0, col2 HAVING ( NULL ) IS NULL @@ -24707,8 +25023,15 @@ SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT NULL = ( NULL ) GROUP BY col2, col # Datafusion - Expected - -57 # Datafusion - Expected - -6 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col0" at position 0 and "\(\- tab1\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, - col1 AS col0 FROM tab1 GROUP BY col1, col1 +---- +-44 +-44 +-57 +-57 +-6 +-6 query I rowsort label-3939 SELECT DISTINCT col1 * - col1 / col1 FROM tab2 GROUP BY col1 @@ -24816,8 +25139,15 @@ SELECT - col2 FROM tab2 GROUP BY col2, col2, col2 # Datafusion - Expected - -43 # Datafusion - Expected - 83 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col1, - col0 col1 FROM tab0 AS cor0 GROUP BY col0 +---- +-26 +-43 +-83 +26 +43 +83 query I rowsort SELECT DISTINCT col2 * - - col2 * + col2 FROM tab0 GROUP BY col2 @@ -24867,8 +25197,13 @@ SELECT ALL + col0 AS col0 FROM tab1 cor0 GROUP BY col0, col0 # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, + col1 AS col1 FROM tab0 GROUP BY col1 +---- +0 +0 +81 +81 query I rowsort SELECT ALL + col0 + + col0 FROM tab1 GROUP BY col0 @@ -26017,8 +26352,15 @@ SELECT col0 FROM tab0 GROUP BY col0, col0 HAVING NULL IS NOT NULL # Datafusion - Expected - 79 # Datafusion - Expected - 1944 # Datafusion - Expected - 24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* cor0\.col2 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * + col2 AS col0, col2 AS col0 FROM tab0 AS cor0 GROUP BY col2, col1 +---- +0 +0 +1944 +24 +38 +79 query I rowsort SELECT ALL col1 AS col0 FROM tab1 GROUP BY col1, col0, col0 @@ -26157,8 +26499,15 @@ SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL GROUP BY col2 HAV # Datafusion - Expected - 59 # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, + col1 FROM tab2 AS cor0 GROUP BY col1 +---- +41 +41 +59 +59 +61 +61 query I rowsort SELECT + - col2 AS col0 FROM tab1 AS cor0 GROUP BY col2, col1 @@ -26549,8 +26898,10 @@ SELECT + col0 FROM tab1 WHERE NOT ( NULL ) IS NULL GROUP BY col0 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 559da8f454c4e5599b87319641a4f49a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col0 AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT col0 AS col1, col0, col0 AS col1 FROM tab0 cor0 GROUP BY col0 +---- +9 values hashing to 559da8f454c4e5599b87319641a4f49a query I rowsort SELECT - col0 col1 FROM tab0 AS cor0 GROUP BY col0, col2 @@ -26745,8 +27096,15 @@ SELECT + col1 - col1 FROM tab1 AS cor0 GROUP BY col1 # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 FROM tab2 GROUP BY col2 +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT + col0 + col0 FROM tab1 GROUP BY col0 @@ -26770,8 +27128,9 @@ SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE - col0 IS NULL GROUP BY col0 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, col2 AS col0 FROM tab2 GROUP BY col1, col2 HAVING NOT col1 > NULL +---- query I rowsort label-4276 SELECT - col0 - - - col0 / + + col0 FROM tab0 GROUP BY col0, col0 @@ -27131,8 +27490,15 @@ SELECT - + col0 AS col0 FROM tab1 AS cor0 GROUP BY col2, col0 # Datafusion - Expected - 43 # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 AS col2, col0 col2 FROM tab0 GROUP BY col0 +---- +26 +26 +43 +43 +83 +83 query I rowsort SELECT col1 - + - col0 FROM tab1 cor0 GROUP BY col0, col1 @@ -27243,8 +27609,15 @@ SELECT col2 FROM tab2 GROUP BY col2, col0, col2 # Datafusion - Expected - 43 # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, + col0 AS col0 FROM tab0 GROUP BY col0 +---- +26 +26 +43 +43 +83 +83 query I rowsort SELECT + col1 col1 FROM tab0 GROUP BY col1 HAVING NULL IS NOT NULL @@ -28856,8 +29229,15 @@ SELECT - col0 AS col0 FROM tab2 GROUP BY col0, col2, col0 # Datafusion - Expected - 118 # Datafusion - Expected - 61 # Datafusion - Expected - 122 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col1 \- \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 AS col0, col1 - - col1 AS col0 FROM tab2 AS cor0 GROUP BY col1 HAVING ( NOT col1 IS NULL ) +---- +118 +122 +41 +59 +61 +82 query I rowsort SELECT DISTINCT - col0 AS col0 FROM tab2 cor0 GROUP BY col0 @@ -29002,8 +29382,15 @@ SELECT ALL - col1 AS col1 FROM tab2 AS cor0 GROUP BY col1 HAVING NOT NULL IS NUL # Datafusion - Expected - 91 # Datafusion - Expected - 92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, + col0 FROM tab2 GROUP BY col0 +---- +15 +15 +91 +91 +92 +92 query I rowsort SELECT + col0 + - - col0 * + - col0 - + - col0 * col0 AS col0 FROM tab0 GROUP BY col0 @@ -29057,8 +29444,9 @@ SELECT DISTINCT - col2 AS col1 FROM tab2 GROUP BY col2 HAVING NOT NULL >= NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, + col0 FROM tab0 GROUP BY col0, col0 HAVING NOT NULL >= ( NULL ) +---- query I rowsort SELECT - col1 + col1 FROM tab2 AS cor0 GROUP BY col1 @@ -29200,8 +29588,13 @@ SELECT DISTINCT + col0 + - + col0 AS col0 FROM tab2 AS cor0 GROUP BY col0 # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, + col1 AS col1 FROM tab0 cor0 GROUP BY col1 +---- +0 +0 +81 +81 query I rowsort SELECT DISTINCT + - col2 AS col2 FROM tab1 cor0 GROUP BY col0, col2 @@ -29285,8 +29678,15 @@ SELECT ALL col0 * col2 FROM tab0 GROUP BY col1, col2, col0 # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, col2 FROM tab2 AS cor0 GROUP BY col2 +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT ALL - + col0 col2 FROM tab1 AS cor0 GROUP BY col0, col1 @@ -29740,8 +30140,15 @@ SELECT - - col0 FROM tab1 AS cor0 GROUP BY col0 HAVING NOT NULL IS NULL # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, col0 FROM tab1 GROUP BY col1, col0 +---- +22 +22 +28 +28 +82 +82 query I rowsort SELECT ALL + + col1 AS col2 FROM tab0 AS cor0 GROUP BY col1, col1 @@ -29830,8 +30237,13 @@ SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL GROUP BY col0 HAV # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col1, col1 FROM tab0 GROUP BY col1, col1 +---- +0 +0 +81 +81 query I rowsort SELECT ALL - col2 + col1 FROM tab1 GROUP BY col2, col1 @@ -32959,8 +33371,9 @@ SELECT ALL AVG ( DISTINCT + col1 ) FROM tab2 AS cor0 GROUP BY col2, col2, col1 H ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, col0 AS col2 FROM tab0 AS cor0 WHERE NULL = ( NULL ) GROUP BY col0 HAVING NOT NULL > ( NULL ) +---- query I rowsort SELECT ALL + col1 * + col1 AS col1 FROM tab2 GROUP BY col1 HAVING NULL IS NOT NULL @@ -33543,8 +33956,9 @@ SELECT ALL - col0 - col0 FROM tab2 AS cor0 GROUP BY col0 -30 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, + col0 FROM tab0 GROUP BY col0 HAVING NOT NULL IS NULL +---- query I rowsort SELECT + col2 * + col1 FROM tab0 AS cor0 GROUP BY col1, col2 @@ -33654,8 +34068,9 @@ SELECT ALL - col2 col2 FROM tab0 AS cor0 GROUP BY col2, col1 -79 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 FROM tab1 AS cor0 GROUP BY col0 HAVING NULL >= NULL +---- query I rowsort SELECT - col0 + + col0 AS col1 FROM tab1 GROUP BY col0 @@ -35255,8 +35670,15 @@ SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NULL <= - col1 GROUP BY col1 # Datafusion - Expected - 59 # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col1 AS col1, + col1 FROM tab2 cor0 GROUP BY col1 +---- +41 +41 +59 +59 +61 +61 query I rowsort SELECT + col0 FROM tab2 cor0 GROUP BY col2, col0 @@ -35703,8 +36125,13 @@ SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 GROUP BY col0, col1 # Datafusion - Expected - -81 # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col1, - col1 FROM tab0 AS cor0 GROUP BY col1 +---- +-81 +-81 +0 +0 query I rowsort SELECT DISTINCT + col2 * - - col1 AS col1 FROM tab1 GROUP BY col1, col2 @@ -35773,8 +36200,15 @@ SELECT - + col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL GROUP BY co # Datafusion - Expected - 59 # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col1, col1 FROM tab2 GROUP BY col1 +---- +41 +41 +59 +59 +61 +61 query I rowsort SELECT ALL + col1 FROM tab1 AS cor0 GROUP BY col1 HAVING col1 BETWEEN NULL AND NULL @@ -36075,8 +36509,15 @@ SELECT ALL + col1 FROM tab0 GROUP BY col1 HAVING NULL IS NOT NULL # Datafusion - Expected - -28 # Datafusion - Expected - -82 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0, - col0 FROM tab1 AS cor0 GROUP BY col0 +---- +-22 +-22 +-28 +-28 +-82 +-82 query I rowsort SELECT + col2 col1 FROM tab0 AS cor0 GROUP BY col2, col0 @@ -36745,8 +37186,15 @@ SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL GROUP BY c # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, col2 FROM tab2 cor0 GROUP BY col2, col2 +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT ALL + - col2 col1 FROM tab0 AS cor0 GROUP BY col0, col2 @@ -37097,8 +37545,15 @@ SELECT ALL col0 * + col1, col0 FROM tab2 GROUP BY col0, col1 # Datafusion - Expected - -59 # Datafusion - Expected - -61 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1, - col1 FROM tab2 AS cor0 GROUP BY col1 +---- +-41 +-41 +-59 +-59 +-61 +-61 query I rowsort SELECT - + col2 AS col2 FROM tab0 AS cor0 GROUP BY col2, col0 @@ -37531,8 +37986,9 @@ SELECT col2 FROM tab0 GROUP BY col2 HAVING NOT ( + col2 IS NULL ) 79 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, - col2 AS col1 FROM tab1 AS cor0 GROUP BY col2 HAVING NULL IS NOT NULL +---- query I rowsort SELECT col1 + + col1 FROM tab2 GROUP BY col1, col2 HAVING NULL IS NOT NULL @@ -37627,8 +38083,15 @@ SELECT DISTINCT - col2 col2 FROM tab1 AS cor0 GROUP BY col2 # Datafusion - Expected - 91 # Datafusion - Expected - 92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col0, + col0 FROM tab2 GROUP BY col0 +---- +15 +15 +91 +91 +92 +92 query I rowsort SELECT DISTINCT + + col0 FROM tab0 AS cor0 GROUP BY col0 HAVING NOT NULL = NULL @@ -37670,8 +38133,15 @@ SELECT ALL col2 col0 FROM tab2 cor0 GROUP BY col2 HAVING NULL IS NULL # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col2, col2 AS col2 FROM tab2 GROUP BY col2 +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT + + col1 AS col1 FROM tab1 AS cor0 GROUP BY col2, col1, col1 @@ -38416,8 +38886,15 @@ SELECT DISTINCT + col2 / - + col1 AS col1 FROM tab1 GROUP BY col2, col1 HAVING N # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2, col2 FROM tab0 AS cor0 GROUP BY col2 +---- +24 +24 +38 +38 +79 +79 query I rowsort SELECT - col0 AS col2 FROM tab1 GROUP BY col0, col1 HAVING NOT NULL < col1 * - AVG ( + col1 ) @@ -39654,8 +40131,15 @@ SELECT ALL - col0 * - - col0 AS col2 FROM tab1 GROUP BY col0 # Datafusion - Expected - 43 # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 FROM tab0 GROUP BY col0 +---- +26 +26 +43 +43 +83 +83 query I rowsort SELECT col1 AS col2 FROM tab1 cor0 WHERE NOT NULL >= ( NULL ) GROUP BY col1 HAVING NOT ( NULL ) IS NOT NULL @@ -39690,8 +40174,15 @@ SELECT DISTINCT + - col2 FROM tab1 AS cor0 GROUP BY col2, col2 # Datafusion - Expected - -91 # Datafusion - Expected - -92 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0, - col0 FROM tab2 AS cor0 GROUP BY col1, col0, col0 +---- +-15 +-15 +-91 +-91 +-92 +-92 query I rowsort SELECT - col2 AS col1 FROM tab0 AS cor0 GROUP BY col2, col1 HAVING NOT NULL IS NOT NULL @@ -40201,8 +40692,15 @@ SELECT DISTINCT - col1, col1 AS col0 FROM tab0 AS cor0 GROUP BY col1 # Datafusion - Expected - -91 # Datafusion - Expected - 3721 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(cor0\.col1\) \* avg\(cor0\.col1\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT AVG ( + col1 ) * AVG ( + + col1 ) col2, - col0 col2 FROM tab2 AS cor0 GROUP BY col1, col0 +---- +-15 +-91 +-92 +1681 +3481 +3721 query II rowsort SELECT col1, col1 * + col1 AS col2 FROM tab0 GROUP BY col1 @@ -40352,8 +40850,15 @@ SELECT DISTINCT - col2 AS col2 FROM tab1 GROUP BY col2 HAVING NULL IS NOT NULL # Datafusion - Expected - -3481 # Datafusion - Expected - 61 # Datafusion - Expected - -3721 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col1\)\) AS col1" at position 0 and "\(\- cor0\.col1\) \* cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - col1 AS col1, - col1 * + col1 AS col1 FROM tab2 cor0 GROUP BY col1, col1 +---- +-1681 +-3481 +-3721 +41 +59 +61 query I rowsort SELECT DISTINCT col1 + col1 AS col1 FROM tab1 WHERE NOT NULL = NULL GROUP BY col1 HAVING ( NULL ) IS NOT NULL @@ -40510,8 +41015,15 @@ SELECT - col0 AS col2 FROM tab2 GROUP BY col0, col1 HAVING NULL IS NOT NULL # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 col1, col2 AS col1 FROM tab2 AS cor0 GROUP BY col0, col2 +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT col1 AS col0 FROM tab0 AS cor0 GROUP BY col2, col1 HAVING NULL < NULL @@ -40726,8 +41238,15 @@ SELECT DISTINCT + col0 AS col0 FROM tab2 AS cor0 GROUP BY col2, col0 # Datafusion - Expected - 43 # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 FROM tab0 GROUP BY col0 +---- +26 +26 +43 +43 +83 +83 query I rowsort SELECT + col2 * + + col2 + + col2 FROM tab2 AS cor0 GROUP BY col2 @@ -41372,8 +41891,15 @@ SELECT ALL + col0 AS col2 FROM tab1 GROUP BY col0 HAVING NULL IS NOT NULL # Datafusion - Expected - 57 # Datafusion - Expected - 6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col1, + col1 AS col1 FROM tab1 AS cor0 GROUP BY col1 +---- +44 +44 +57 +57 +6 +6 query I rowsort SELECT DISTINCT col1 * + col1 FROM tab2 AS cor0 GROUP BY col1 @@ -41564,8 +42090,9 @@ SELECT - col1 AS col1, col1 * - col1 col2 FROM tab1 GROUP BY col1 -36 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col0, col0 FROM tab0 GROUP BY col0, col0 HAVING + col0 IS NULL +---- query I rowsort SELECT - col0 + col0 AS col1 FROM tab2 AS cor0 GROUP BY col1, col0 @@ -41942,8 +42469,15 @@ SELECT ALL - col0 * - + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= - col0 # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col2, col2 FROM tab0 GROUP BY col2 +---- +24 +24 +38 +38 +79 +79 query I rowsort SELECT + + col1 FROM tab1 WHERE NOT NULL IS NULL GROUP BY col1 HAVING ( NOT NULL IS NOT NULL ) @@ -42028,8 +42562,15 @@ SELECT - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL GROUP BY col2, col1 H # Datafusion - Expected - 71 # Datafusion - Expected - 8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 AS col2 FROM tab1 GROUP BY col2, col2 +---- +45 +45 +71 +71 +8 +8 query I rowsort SELECT DISTINCT + col2 col0 FROM tab0 AS cor0 GROUP BY col2, col2 @@ -42371,8 +42912,13 @@ SELECT - col1 + + - col1 FROM tab0 cor0 GROUP BY col1, col0 # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col1, col1 FROM tab0 AS cor0 GROUP BY col1, col1 +---- +0 +0 +81 +81 query I rowsort SELECT + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL GROUP BY col2 HAVING NOT NULL IS NOT NULL @@ -43807,8 +44353,15 @@ SELECT DISTINCT - - col1 FROM tab0 AS cor0 GROUP BY col1, col2 # Datafusion - Expected - 91 # Datafusion - Expected - 92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0, col0 AS col0 FROM tab2 AS cor0 GROUP BY col0 HAVING NOT NULL IS NOT NULL +---- +15 +15 +91 +91 +92 +92 query I rowsort SELECT + col2 AS col1 FROM tab1 AS cor0 GROUP BY col2, col2 HAVING NULL IS NOT NULL @@ -43827,8 +44380,15 @@ SELECT + + col1 * + - col1 FROM tab0 AS cor0 GROUP BY col1 # Datafusion - Expected - 59 # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, col1 col1 FROM tab2 GROUP BY col1 +---- +41 +41 +59 +59 +61 +61 query I rowsort SELECT DISTINCT - col0 FROM tab1 AS cor0 GROUP BY col1, col0 HAVING + col1 * - col1 IS NOT NULL @@ -44477,8 +45037,15 @@ SELECT - + AVG ( col1 ) AS col0 FROM tab0 AS cor0 GROUP BY col1 HAVING NOT NULL # Datafusion - Expected - 91 # Datafusion - Expected - 92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, + col0 AS col0 FROM tab2 GROUP BY col1, col0 +---- +15 +15 +91 +91 +92 +92 query I rowsort SELECT DISTINCT - col2 AS col1 FROM tab1 cor0 GROUP BY col2 @@ -44958,8 +45525,15 @@ SELECT ALL col1 * + col1 * + col1 AS col0 FROM tab1 GROUP BY col1 # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 FROM tab2 GROUP BY col2, col2, col2 +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT col2 col1 FROM tab2 GROUP BY col0, col2 HAVING NOT NULL IS NULL @@ -45373,8 +45947,15 @@ SELECT ALL + col2 * + col0 AS col0 FROM tab1 GROUP BY col0, col2 # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 AS col2, col2 FROM tab0 AS cor0 GROUP BY col2, col0 +---- +24 +24 +38 +38 +79 +79 query I rowsort SELECT col0 AS col0 FROM tab0 AS cor0 GROUP BY col2, col0, col0 @@ -45725,8 +46306,15 @@ SELECT ALL + col2 * + col2 FROM tab0 AS cor0 GROUP BY col2 # Datafusion - Expected - 43 # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col0, col0 FROM tab0 AS cor0 GROUP BY col0 +---- +26 +26 +43 +43 +83 +83 query I rowsort SELECT ALL + col0 AS col0 FROM tab2 cor0 GROUP BY col0 HAVING NOT NULL <= NULL @@ -45775,8 +46363,15 @@ SELECT ALL - col0 - col0 AS col2 FROM tab1 GROUP BY col0, col2 # Datafusion - Expected - 0 # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1, - col1 FROM tab0 AS cor0 GROUP BY col2, col1 +---- +-81 +-81 +0 +0 +0 +0 query I rowsort label-7341 SELECT col2 / + col2 FROM tab2 GROUP BY col2 @@ -45970,8 +46565,15 @@ SELECT ALL + + col1 FROM tab1 AS cor0 GROUP BY col1 HAVING NULL IS NULL # Datafusion - Expected - -91 # Datafusion - Expected - -92 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\)" at position 0 and "\(\- tab2\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0, - col0 FROM tab2 GROUP BY col0, col0 +---- +-15 +-15 +-91 +-91 +-92 +-92 query I rowsort SELECT + col1 FROM tab1 AS cor0 GROUP BY col1, col1 HAVING NULL IS NOT NULL @@ -46092,8 +46694,15 @@ SELECT + col2 + + col2 * - col2 AS col1 FROM tab2 GROUP BY col2 # Datafusion - Expected - 26 # Datafusion - Expected - 0 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, + col0 AS col2 FROM tab0 AS cor0 GROUP BY col0, col1 +---- +-81 +0 +0 +26 +43 +83 query I rowsort SELECT DISTINCT + col2 FROM tab1 WHERE NOT - col1 BETWEEN NULL AND NULL GROUP BY col0, col2 HAVING NOT NULL IS NOT NULL @@ -46210,8 +46819,15 @@ SELECT - col0 FROM tab1 GROUP BY col2, col0 HAVING NOT NULL IS NOT NULL # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, col2 FROM tab0 AS cor0 GROUP BY col1, col2 +---- +24 +24 +38 +38 +79 +79 query I rowsort SELECT + col2 * col2 FROM tab0 cor0 GROUP BY col2 @@ -46447,8 +47063,15 @@ SELECT DISTINCT col1 FROM tab1 WHERE NOT NULL <= NULL GROUP BY col1 # Datafusion - Expected - 71 # Datafusion - Expected - 8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col2, col2 AS col2 FROM tab1 cor0 GROUP BY col2 +---- +45 +45 +71 +71 +8 +8 query I rowsort SELECT + col1 * col1 AS col2 FROM tab0 WHERE NOT ( col0 ) IN ( - col0 ) GROUP BY col1 @@ -46592,8 +47215,15 @@ SELECT - - col1 AS col0 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN NULL AND NULL G # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col2, col2 AS col2 FROM tab2 AS cor0 GROUP BY col2, col1 +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT - col1 FROM tab2 cor0 GROUP BY col2, col1 @@ -47401,8 +48031,9 @@ SELECT col0 FROM tab2 GROUP BY col0, col0 HAVING ( NULL ) IS NULL OR NOT ( col0 92 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0, + col0 FROM tab0 WHERE NULL >= ( NULL ) GROUP BY col0, col0 +---- query I rowsort SELECT + + col0 AS col2 FROM tab1 AS cor0 GROUP BY col0, col2 @@ -48202,8 +48833,13 @@ SELECT - col0 - - col0 FROM tab2 GROUP BY col0 HAVING NOT NULL <= NULL # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - -81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col2, - col1 AS col2 FROM tab0 AS cor0 GROUP BY col1 +---- +-81 +0 +0 +81 query I rowsort SELECT - col2 FROM tab0 AS cor0 GROUP BY col2, col2 HAVING NULL IS NOT NULL @@ -48404,8 +49040,15 @@ SELECT - col1 FROM tab0 GROUP BY col1, col1 HAVING NULL IS NOT NULL # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -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 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col0, col1 AS col0 FROM tab0 AS cor0 GROUP BY col2, col1, col2 +---- +0 +0 +0 +0 +81 +81 query I rowsort SELECT + col1 + col1 FROM tab0 AS cor0 WHERE NULL > col2 * - + col1 GROUP BY col1 HAVING NOT ( NULL IS NOT NULL ) @@ -48707,8 +49350,9 @@ SELECT DISTINCT col1 AS col2 FROM tab0 GROUP BY col1 HAVING NOT NULL > + AVG ( A ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, + col1 FROM tab2 GROUP BY col2, col2, col1 HAVING NOT col2 IS NOT NULL +---- query I rowsort SELECT - col0 col0 FROM tab1 GROUP BY col0, col1 @@ -49418,8 +50062,15 @@ SELECT DISTINCT - col1 AS col2 FROM tab1 GROUP BY col1 HAVING NOT NULL IS NOT NU # Datafusion - Expected - 57 # Datafusion - Expected - 82 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col2, col1 AS col2 FROM tab1 GROUP BY col0, col1, col0 +---- +22 +28 +44 +57 +6 +82 query I rowsort SELECT DISTINCT + + col1 AS col0 FROM tab1 cor0 GROUP BY col0, col1 @@ -49794,8 +50445,13 @@ SELECT DISTINCT - col0 * + col0 col1 FROM tab0 AS cor0 GROUP BY col0 # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, col1 FROM tab0 GROUP BY col1 +---- +0 +0 +81 +81 query I rowsort SELECT + col0 / + col2 AS col2 FROM tab1 AS cor0 GROUP BY col2, col0 HAVING NULL < ( col2 ) @@ -49812,8 +50468,15 @@ SELECT ALL col0 * col0 FROM tab1 AS cor0 GROUP BY col2, col0 HAVING NOT NULL IS # Datafusion - Expected - -43 # Datafusion - Expected - -83 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0, - col0 FROM tab0 AS cor0 GROUP BY col0 +---- +-26 +-26 +-43 +-43 +-83 +-83 query I rowsort SELECT ALL + col0 FROM tab0 AS cor0 GROUP BY col0 HAVING NULL IS NOT NULL @@ -49844,8 +50507,15 @@ SELECT - + col2 col1 FROM tab1 AS cor0 GROUP BY col2 HAVING NOT NULL <> NULL # Datafusion - Expected - 91 # Datafusion - Expected - 92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col1, col0 AS col1 FROM tab2 AS cor0 GROUP BY col0 +---- +15 +15 +91 +91 +92 +92 query I rowsort SELECT + + col0 AS col0 FROM tab1 cor0 GROUP BY col0, col0 @@ -50544,8 +51214,15 @@ SELECT ALL AVG ( - col2 ) AS col1 FROM tab0 GROUP BY col2 HAVING NULL IS NOT NUL # Datafusion - Expected - 0 # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\)" at position 0 and "\(\- tab0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1, - col1 FROM tab0 GROUP BY col1, col2 +---- +-81 +-81 +0 +0 +0 +0 query I rowsort SELECT DISTINCT + col0 FROM tab1 AS cor0 GROUP BY col0 HAVING - col0 IS NOT NULL @@ -51314,8 +51991,15 @@ SELECT ALL col2 + - + col2 FROM tab1 GROUP BY col2 # Datafusion - Expected - 57 # Datafusion - Expected - 6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, + col1 FROM tab1 AS cor0 GROUP BY col1 +---- +44 +44 +57 +57 +6 +6 query I rowsort SELECT ALL col1 * col0 * - col0 FROM tab1 AS cor0 GROUP BY col1, col0 @@ -52084,8 +52768,15 @@ SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NULL = NULL GROUP BY col2 # Datafusion - Expected - -8 # Datafusion - Expected - 5822 # Datafusion - Expected - -71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(cor0\.col2\)\) \* \(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT - AVG ( col2 ) * - col0 AS col1, - col2 AS col1 FROM tab1 AS cor0 GROUP BY col2, col0 +---- +-45 +-71 +-8 +1260 +176 +5822 query I rowsort SELECT ALL + col2 col1 FROM tab1 AS cor0 GROUP BY col1, col2 @@ -53530,8 +54221,15 @@ SELECT col0 + + col0 + + + col0 AS col1 FROM tab0 GROUP BY col0 # Datafusion - Expected - 91 # Datafusion - Expected - 92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, + col0 AS col0 FROM tab2 AS cor0 GROUP BY col0 +---- +15 +15 +91 +91 +92 +92 query I rowsort SELECT + col1 FROM tab1 AS cor0 GROUP BY col1 HAVING NOT NULL IS NOT NULL @@ -54037,8 +54735,15 @@ SELECT - col0 FROM tab1 GROUP BY col0, col0 HAVING NOT NULL = NULL # Datafusion - Expected - 91 # Datafusion - Expected - 92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, col0 AS col1 FROM tab2 AS cor0 GROUP BY col0 +---- +15 +15 +91 +91 +92 +92 query I rowsort SELECT col2 * - col1 FROM tab0 GROUP BY col2, col0, col1 @@ -54070,8 +54775,15 @@ SELECT + col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL GROUP BY col2, col1 # Datafusion - Expected - -57 # Datafusion - Expected - -6 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col1, - col1 FROM tab1 AS cor0 GROUP BY col1, col1 +---- +-44 +-44 +-57 +-57 +-6 +-6 query I rowsort SELECT ALL + col2 * - col2 col0 FROM tab1 GROUP BY col2 @@ -56085,8 +56797,9 @@ SELECT ALL - + AVG ( + col1 ) AS col0 FROM tab2 AS cor0 GROUP BY col1 HAVING NOT ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, + col1 FROM tab2 WHERE + + col2 IS NULL GROUP BY col1 +---- query I rowsort SELECT ALL col1 * col1 AS col2 FROM tab1 AS cor0 GROUP BY col1, col0 @@ -56155,8 +56868,15 @@ SELECT ALL - - col2 + - + col2 FROM tab1 AS cor0 GROUP BY col2 # Datafusion - Expected - 71 # Datafusion - Expected - 8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 AS col0, + col2 AS col0 FROM tab1 AS cor0 GROUP BY col2 +---- +45 +45 +71 +71 +8 +8 query I rowsort SELECT ALL col0 AS col1 FROM tab1 GROUP BY col0, col0, col0 @@ -56376,8 +57096,10 @@ SELECT ALL + col0 AS col0 FROM tab1 GROUP BY col0 HAVING NULL IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 2c52b02bd20d527053aa739535a682aa -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT col2 AS col2, + col2, + - col2 FROM tab2 GROUP BY col2 +---- +9 values hashing to bc7de0dbf53c6db903b6fb95ab7fe994 query II rowsort SELECT DISTINCT - + col0 AS col0, - col0 AS col1 FROM tab1 AS cor0 GROUP BY col0, col0 @@ -57332,8 +58054,13 @@ SELECT ALL col2 FROM tab2 WHERE NULL <> col0 GROUP BY col2 # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, + col1 FROM tab0 GROUP BY col1 +---- +0 +0 +81 +81 query II rowsort SELECT ALL - col2 col2, col2 AS col0 FROM tab2 GROUP BY col2 @@ -58732,8 +59459,9 @@ SELECT col1 AS col2 FROM tab1 AS cor0 GROUP BY col1 HAVING - col1 = NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, col1 FROM tab0 GROUP BY col1 HAVING NULL IS NOT NULL +---- query I rowsort SELECT DISTINCT col0 FROM tab2 cor0 GROUP BY col0, col2 @@ -58788,8 +59516,15 @@ SELECT + col2 AS col0 FROM tab2 AS cor0 GROUP BY col2 HAVING NOT NULL IS NULL # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, col2 AS col2 FROM tab0 GROUP BY col2 +---- +24 +24 +38 +38 +79 +79 query I rowsort label-9438 SELECT ALL col1 / col1 / - + col1 FROM tab2 GROUP BY col1 @@ -58880,8 +59615,15 @@ SELECT - col1 + col0 AS col1 FROM tab0 GROUP BY col0, col1 HAVING NOT NULL IS NU # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col2, + col2 FROM tab0 AS cor0 GROUP BY col2 +---- +24 +24 +38 +38 +79 +79 query I rowsort SELECT - - col0 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL GROUP BY col0 @@ -59334,8 +60076,15 @@ SELECT - - col1 AS col0 FROM tab1 AS cor0 GROUP BY col1, col1 # Datafusion - Expected - 59 # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, col1 AS col1 FROM tab2 GROUP BY col1 +---- +41 +41 +59 +59 +61 +61 query I rowsort SELECT ALL - + col2 col1 FROM tab0 AS cor0 GROUP BY col2 @@ -59423,8 +60172,15 @@ SELECT - col0 - col0 FROM tab1 AS cor0 GROUP BY col0 # Datafusion - Expected - 79 # Datafusion - Expected - -87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 col1, col2 AS col1 FROM tab2 GROUP BY col2 +---- +-58 +-79 +-87 +58 +79 +87 query I rowsort SELECT ALL - col2 FROM tab0 GROUP BY col2 HAVING ( + - col2 ) IS NOT NULL @@ -59710,8 +60466,15 @@ SELECT + col2 FROM tab2 cor0 WHERE NULL <> col2 GROUP BY col2 # Datafusion - Expected - 91 # Datafusion - Expected - 92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, col0 FROM tab2 AS cor0 GROUP BY col0, col0 +---- +15 +15 +91 +91 +92 +92 query I rowsort SELECT DISTINCT + col1 FROM tab0 GROUP BY col1 HAVING NOT NULL IS NOT NULL @@ -59923,8 +60686,15 @@ SELECT - - col2 * + - col2 col0 FROM tab1 AS cor0 GROUP BY col2 # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 AS col0 FROM tab1 GROUP BY col0 +---- +22 +22 +28 +28 +82 +82 query I rowsort SELECT ALL - col1 AS col2 FROM tab0 AS cor0 GROUP BY col0, col1 @@ -60000,8 +60770,15 @@ SELECT ALL col2 AS col0 FROM tab1 AS cor0 GROUP BY col2, col0 # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, col2 AS col2 FROM tab2 GROUP BY col2, col1 +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT - col1 AS col0 FROM tab1 AS cor0 GROUP BY col2, col0, col1 @@ -60977,8 +61754,15 @@ SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0 GROUP BY col1, col0 # Datafusion - Expected - 57 # Datafusion - Expected - 6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 FROM tab1 AS cor0 GROUP BY col1 +---- +44 +44 +57 +57 +6 +6 query I rowsort SELECT - col0 AS col2 FROM tab1 AS cor0 GROUP BY col0 HAVING NULL IS NOT NULL @@ -61199,8 +61983,15 @@ SELECT col1 AS col0 FROM tab2 cor0 GROUP BY col1 HAVING NULL > NULL # Datafusion - Expected - 71 # Datafusion - Expected - 8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col2, col2 FROM tab1 AS cor0 GROUP BY col2 +---- +45 +45 +71 +71 +8 +8 query I rowsort SELECT DISTINCT col0 col1 FROM tab2 GROUP BY col0, col1, col0 @@ -61227,8 +62018,15 @@ SELECT ALL col1 FROM tab2 AS cor0 GROUP BY col1, col2 HAVING NOT NULL IS NULL # Datafusion - Expected - 1596 # Datafusion - Expected - -82 # Datafusion - Expected - 3608 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col0 \* cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, col0 * col1 AS col0 FROM tab1 cor0 GROUP BY col1, col0 HAVING NULL IS NULL +---- +-22 +-28 +-82 +132 +1596 +3608 query I rowsort SELECT - - col2 AS col1 FROM tab1 AS cor0 GROUP BY col2, col1 @@ -61306,8 +62104,15 @@ SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NOT NULL < + col1 GROUP BY col1, co # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 AS col2 FROM tab0 AS cor0 GROUP BY col2 +---- +24 +24 +38 +38 +79 +79 query I rowsort SELECT col1 FROM tab2 GROUP BY col1 HAVING NULL <= NULL @@ -61896,8 +62701,15 @@ SELECT DISTINCT - col2 col2 FROM tab2 cor0 GROUP BY col0, col2 # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, + col2 AS col1 FROM tab0 AS cor0 GROUP BY col2 +---- +24 +24 +38 +38 +79 +79 query II rowsort SELECT + col1 AS col0, col1 FROM tab1 AS cor0 GROUP BY col1, col0, col0 diff --git a/data/sqlite/random/groupby/slt_good_11.slt b/data/sqlite/random/groupby/slt_good_11.slt index ad5b55f..3575928 100644 --- a/data/sqlite/random/groupby/slt_good_11.slt +++ b/data/sqlite/random/groupby/slt_good_11.slt @@ -318,8 +318,15 @@ SELECT ALL + + col0 - - col2 AS col0 FROM tab0 AS cor0 GROUP BY col0, col2 # Datafusion - Expected - -44 # Datafusion - Expected - 48 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col1 AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * col1 AS col0, - col1 AS col0 FROM tab1 AS cor0 GROUP BY col2, col1 +---- +-44 +-57 +-6 +2565 +3124 +48 query I rowsort SELECT ALL col0 FROM tab0 GROUP BY col2, col0 HAVING NULL NOT BETWEEN - col0 * - - col2 AND + + col0 * - col2 @@ -628,8 +635,15 @@ SELECT ALL col1 FROM tab1 AS cor0 GROUP BY col0, col1, col0 # Datafusion - Expected - 91 # Datafusion - Expected - 92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 FROM tab2 cor0 GROUP BY col0, col1 +---- +15 +15 +91 +91 +92 +92 query I rowsort SELECT - + col0 FROM tab0 AS cor0 GROUP BY col0, col0 HAVING NOT ( NULL ) IS NULL @@ -902,8 +916,9 @@ SELECT + col1 AS col2 FROM tab2 AS cor0 GROUP BY col1, col2 61 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0, - col0 FROM tab0 AS cor0 GROUP BY col0 HAVING NULL IS NOT NULL +---- query I rowsort SELECT - - col2 AS col0 FROM tab0 AS cor0 GROUP BY col0, col2, col2 @@ -1463,8 +1478,15 @@ SELECT - col1 FROM tab0 WHERE NOT ( ( NULL ) IS NOT NULL ) GROUP BY col1 # Datafusion - Expected - 59 # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col1, col1 AS col1 FROM tab2 GROUP BY col0, col1 +---- +41 +41 +59 +59 +61 +61 query I rowsort SELECT col2 AS col1 FROM tab1 AS cor0 GROUP BY col1, col2 @@ -1559,8 +1581,13 @@ SELECT ALL - + col1 AS col1, - col1 AS col2 FROM tab1 AS cor0 GROUP BY col1 # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, col1 FROM tab0 AS cor0 GROUP BY col1, col2, col1 +---- +0 +0 +81 +81 query I rowsort SELECT DISTINCT - col2 - + col2 FROM tab2 cor0 GROUP BY col1, col2 HAVING - col1 IS NOT NULL @@ -2247,8 +2274,15 @@ SELECT ALL col0 * - + col1 FROM tab2 GROUP BY col1, col0, col1 # Datafusion - Expected - 57 # Datafusion - Expected - 6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col1, + col1 col1 FROM tab1 AS cor0 GROUP BY col1, col2 +---- +44 +44 +57 +57 +6 +6 query I rowsort SELECT DISTINCT + + col1 AS col2 FROM tab0 AS cor0 GROUP BY col1 @@ -2457,8 +2491,15 @@ SELECT ALL - col2 FROM tab2 GROUP BY col1, col2 HAVING NULL NOT BETWEEN - col2 A # Datafusion - Expected - 59 # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(\(\- tab2\.col1\)\)\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - AVG ( - col1 ) AS col2, col1 AS col2 FROM tab2 GROUP BY col1 +---- +41 +41 +59 +59 +61 +61 query I rowsort SELECT DISTINCT col1 FROM tab2 AS cor0 GROUP BY col1, col2 @@ -2702,8 +2743,15 @@ SELECT + col0 FROM tab0 WHERE NOT NULL IS NULL GROUP BY col0 # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, + col2 AS col2 FROM tab0 GROUP BY col2 +---- +24 +24 +38 +38 +79 +79 query I rowsort SELECT ALL col1 + + + col1 FROM tab0 GROUP BY col1, col1 @@ -3309,8 +3357,15 @@ SELECT col0 FROM tab2 AS cor0 GROUP BY col0, col2 HAVING NOT - col2 IS NULL # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, + col1 col1 FROM tab0 GROUP BY col1, col2 +---- +0 +0 +0 +0 +81 +81 query I rowsort SELECT ALL col2 FROM tab0 AS cor0 GROUP BY col0, col2, col2 @@ -3504,8 +3559,15 @@ SELECT col2 col2 FROM tab2 GROUP BY col2 HAVING ( NULL ) <= col2 # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 FROM tab1 GROUP BY col0 +---- +22 +22 +28 +28 +82 +82 query I rowsort SELECT DISTINCT + col2 + - col2 AS col1 FROM tab2 AS cor0 GROUP BY col2, col2 @@ -3967,8 +4029,15 @@ SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 GROUP BY col2 HAVING + col0 >= NU # Datafusion - Expected - 71 # Datafusion - Expected - 8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col2, + col2 AS col2 FROM tab1 AS cor0 GROUP BY col2, col1, col2 HAVING NOT ( NULL ) IS NOT NULL +---- +45 +45 +71 +71 +8 +8 query I rowsort SELECT DISTINCT - + col1 AS col1 FROM tab1 AS cor0 GROUP BY col0, col1 @@ -4013,8 +4082,10 @@ SELECT - col1 * - col1, col1 FROM tab2 AS cor0 GROUP BY col1 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 701222dcab36e57ecd3c39eb7ce67804 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "\(\- cor0\.col1\) AS col2" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col1 AS col2, col1 * col1 - - + col1, - col1 AS col2 FROM tab1 AS cor0 GROUP BY col1 +---- +9 values hashing to d4a97461082eb971e02be8a363b0c8c4 query I rowsort SELECT - col1 * - col1 AS col2 FROM tab0 AS cor0 GROUP BY col1 HAVING NULL IS NULL @@ -4115,8 +4186,15 @@ SELECT col0 AS col0 FROM tab2 GROUP BY col1, col0 HAVING - col1 <= col0 # Datafusion - Expected - 80 # Datafusion - Expected - -87 # Datafusion - Expected - 88 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\) AS col1" at position 0 and "tab2\.col1 / tab2\.col1 \+ tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 AS col1, col1 / col1 + + col2 AS col1 FROM tab2 GROUP BY col2, col1 +---- +-58 +-79 +-87 +59 +80 +88 query I rowsort SELECT DISTINCT - + col0 col0 FROM tab2 AS cor0 GROUP BY col2, col0 @@ -5181,8 +5259,15 @@ SELECT DISTINCT - - col2 FROM tab2 AS cor0 GROUP BY col2, col2 # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, col2 AS col2 FROM tab2 cor0 GROUP BY col1, col2 +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT ALL col0 FROM tab1 AS cor0 GROUP BY col0, col0, col0 @@ -5623,8 +5708,9 @@ SELECT DISTINCT - col2 + col2 AS col2 FROM tab2 GROUP BY col2 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, col1 AS col1 FROM tab1 GROUP BY col1 HAVING NULL IS NOT NULL +---- query I rowsort SELECT - col1 FROM tab2 GROUP BY col1, col1 HAVING NULL IS NOT NULL @@ -5866,8 +5952,15 @@ SELECT DISTINCT - - col2 FROM tab1 cor0 GROUP BY col2, col0 # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, col2 FROM tab0 cor0 GROUP BY col2 +---- +24 +24 +38 +38 +79 +79 query I rowsort SELECT - col0 * - col1 FROM tab1 GROUP BY col1, col0 HAVING NOT + - col1 NOT BETWEEN ( NULL ) AND NULL @@ -6475,8 +6568,15 @@ SELECT col0 * + + col2 FROM tab1 GROUP BY col0, col2 # Datafusion - Expected - 59 # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col1, + col1 FROM tab2 GROUP BY col1 +---- +41 +41 +59 +59 +61 +61 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -6797,8 +6897,15 @@ SELECT col1, + col0 FROM tab2 AS cor0 GROUP BY col1, col0 HAVING col1 = NULL # Datafusion - Expected - 59 # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, col1 FROM tab2 GROUP BY col1 +---- +41 +41 +59 +59 +61 +61 query I rowsort SELECT ALL + col2 col0 FROM tab0 AS cor0 GROUP BY col2 @@ -6840,8 +6947,15 @@ SELECT col2 AS col1 FROM tab2 GROUP BY col2, col1 HAVING NOT + col1 + col1 IS NO # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, col2 FROM tab2 AS cor0 GROUP BY col0, col2, col2 +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT DISTINCT + - col2 AS col2 FROM tab0 AS cor0 GROUP BY col1, col0, col2 @@ -6955,8 +7069,15 @@ SELECT DISTINCT col0 FROM tab0 AS cor0 GROUP BY col0 HAVING NULL IS NULL # Datafusion - Expected - 71 # Datafusion - Expected - 8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 col2, + col2 FROM tab1 GROUP BY col2, col0 +---- +45 +45 +71 +71 +8 +8 query I rowsort SELECT + col0 * - col0 * + + col2 AS col1 FROM tab1 AS cor0 GROUP BY col0, col2 @@ -7008,8 +7129,9 @@ SELECT - - col2 FROM tab1 AS cor0 GROUP BY col1, col2 HAVING NULL IS NULL 8 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2, + col2 FROM tab0 cor0 GROUP BY col2 HAVING NULL IS NOT NULL +---- query I rowsort SELECT + col0 - - col0 FROM tab1 AS cor0 GROUP BY col0 HAVING NOT + - col0 IS NULL @@ -7585,8 +7707,15 @@ SELECT ALL + col2 AS col1 FROM tab0 AS cor0 GROUP BY col2 HAVING col2 IS NULL # Datafusion - Expected - -91 # Datafusion - Expected - -92 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0, - col0 FROM tab2 AS cor0 GROUP BY col0 +---- +-15 +-15 +-91 +-91 +-92 +-92 query I rowsort label-1216 SELECT - col1 / - col1 FROM tab2 AS cor0 GROUP BY col1, col0, col1 @@ -7972,8 +8101,15 @@ SELECT ALL col2 FROM tab1 cor0 GROUP BY col0, col1, col2 # Datafusion - Expected - 71 # Datafusion - Expected - 8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2, col2 FROM tab1 AS cor0 GROUP BY col2 +---- +45 +45 +71 +71 +8 +8 query I rowsort SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 GROUP BY col1, col1, col2 HAVING NOT NULL IS NOT NULL @@ -9270,8 +9406,15 @@ SELECT ALL col2 * + col2 + col1 AS col0 FROM tab1 GROUP BY col1, col2, col2 # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, col2 col2 FROM tab2 GROUP BY col0, col2 +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT - col1 * + - col0 FROM tab2 GROUP BY col0, col1 @@ -9294,8 +9437,15 @@ SELECT - col2 * + col1 * + - col1 AS col1 FROM tab2 GROUP BY col1, col2 # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col0, + col2 col0 FROM tab0 AS cor0 GROUP BY col2 +---- +24 +24 +38 +38 +79 +79 query I rowsort SELECT DISTINCT + - col1 FROM tab0 AS cor0 GROUP BY col1 HAVING NOT ( NULL ) IS NULL @@ -9651,8 +9801,9 @@ SELECT col1 FROM tab1 GROUP BY col1, col2 HAVING + col1 <= NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col2, + col2 FROM tab2 cor0 GROUP BY col2 HAVING NULL IS NOT NULL +---- query I rowsort SELECT col1 * - - col1 FROM tab1 AS cor0 GROUP BY col1, col1 @@ -9938,8 +10089,15 @@ SELECT DISTINCT col2 + col1 FROM tab1 GROUP BY col1, col2 # Datafusion - Expected - -79 # Datafusion - Expected - 87 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "\(\- tab2\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col1, - col2 AS col1 FROM tab2 GROUP BY col2 +---- +-58 +-79 +-87 +58 +79 +87 query I rowsort SELECT DISTINCT col0 FROM tab2 AS cor0 GROUP BY col0 HAVING NOT NULL = NULL @@ -9966,8 +10124,15 @@ SELECT ALL + col2 AS col1 FROM tab2 AS cor0 GROUP BY col2 HAVING NULL IS NOT NUL # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col2, col2 FROM tab0 AS cor0 GROUP BY col0, col2 +---- +24 +24 +38 +38 +79 +79 query I rowsort SELECT - - col2 col1 FROM tab0 AS cor0 GROUP BY col2 @@ -10077,8 +10242,13 @@ SELECT DISTINCT + col2 FROM tab0 AS cor0 GROUP BY col2 HAVING ( NULL > ( NULL ) # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col1 \+ \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col2, col1 + - + col1 AS col2 FROM tab0 GROUP BY col1 +---- +0 +0 +0 +81 query I rowsort SELECT ALL - - col2 AS col1 FROM tab2 AS cor0 GROUP BY col2, col0 @@ -10281,8 +10451,15 @@ SELECT + col2 FROM tab0 GROUP BY col0, col2, col2 HAVING NOT NULL >= NULL # Datafusion - Expected - -91 # Datafusion - Expected - -92 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "\(\- tab2\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col0, - col0 AS col0 FROM tab2 GROUP BY col0 +---- +-15 +-15 +-91 +-91 +-92 +-92 query I rowsort SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 GROUP BY col1, col2 HAVING ( col1 ) IS NULL @@ -10790,8 +10967,9 @@ SELECT - col0 AS col2 FROM tab1 AS cor0 GROUP BY col0 HAVING NOT NULL > NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col0, + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL GROUP BY col0 HAVING NULL IS NOT NULL +---- query I rowsort SELECT DISTINCT - + col1 * + col1 FROM tab1 AS cor0 GROUP BY col1 @@ -10962,8 +11140,15 @@ SELECT DISTINCT col1 * col1 FROM tab1 AS cor0 GROUP BY col1 # Datafusion - Expected - 38 # Datafusion - Expected - -79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col1, col2 AS col1 FROM tab0 GROUP BY col2, col1 +---- +-24 +-38 +-79 +24 +38 +79 query I rowsort SELECT ALL col0 - + col1 AS col2 FROM tab2 GROUP BY col0, col1 @@ -11891,8 +12076,15 @@ SELECT col2 * - col2 AS col0 FROM tab0 GROUP BY col2 # Datafusion - Expected - 71 # Datafusion - Expected - 8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, + col2 FROM tab1 GROUP BY col2, col2 +---- +45 +45 +71 +71 +8 +8 query I rowsort SELECT col1 + col2 AS col1 FROM tab1 GROUP BY col1, col2 @@ -11945,8 +12137,13 @@ SELECT DISTINCT + AVG ( ALL - col1 ) FROM tab1 AS cor0 GROUP BY col1 HAVING NULL # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, col1 FROM tab0 GROUP BY col1, col1 +---- +0 +0 +81 +81 query I rowsort SELECT - col0 AS col2 FROM tab0 GROUP BY col1, col2, col0 @@ -12418,8 +12615,15 @@ SELECT + col1 * + col1 col0 FROM tab2 GROUP BY col1 # Datafusion - Expected - 59 # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1, col1 FROM tab2 AS cor0 GROUP BY col1, col1, col2 HAVING col2 IS NOT NULL +---- +41 +41 +59 +59 +61 +61 query I rowsort SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 GROUP BY col0 HAVING NULL > NULL @@ -12461,8 +12665,15 @@ SELECT ALL col0 AS col2 FROM tab1 cor0 GROUP BY col0 HAVING NOT NULL IS NULL # Datafusion - Expected - 57 # Datafusion - Expected - 6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col2, + col1 AS col2 FROM tab1 cor0 GROUP BY col1, col1 HAVING NOT ( NULL ) IS NOT NULL +---- +44 +44 +57 +57 +6 +6 query I rowsort SELECT col2 FROM tab1 cor0 GROUP BY col2, col2, col1 HAVING NULL IS NOT NULL @@ -12688,8 +12899,15 @@ SELECT - col1 col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL GROUP BY col1 # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, + col2 FROM tab0 GROUP BY col2 +---- +24 +24 +38 +38 +79 +79 query I rowsort SELECT ALL + col1 - + col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL GROUP BY col1, col0 @@ -12915,8 +13133,15 @@ SELECT col1 * col1 FROM tab2 AS cor0 GROUP BY col1 # Datafusion - Expected - 368219 # Datafusion - Expected - -61 # Datafusion - Expected - 461709 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 \* cor0\.col2 \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, + col1 * + col2 * col2 col0 FROM tab2 AS cor0 GROUP BY col2, col1 +---- +-41 +-59 +-61 +137924 +368219 +461709 query I rowsort SELECT ALL + col1 AS col2 FROM tab1 GROUP BY col1 HAVING NOT ( NULL ) <> NULL @@ -13185,8 +13410,15 @@ SELECT ALL + col1 AS col0 FROM tab1 GROUP BY col2, col1, col1 # Datafusion - Expected - 79 # Datafusion - Expected - 92 # Datafusion - Expected - 58 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col0 AS col0, + col2 AS col0 FROM tab2 AS cor0 GROUP BY col0, col2 +---- +15 +58 +79 +87 +91 +92 query I rowsort SELECT col0 FROM tab0 GROUP BY col1, col0, col0 HAVING NULL = NULL @@ -13257,8 +13489,15 @@ SELECT + col0 AS col1 FROM tab1 GROUP BY col0, col2, col2 # Datafusion - Expected - 91 # Datafusion - Expected - 92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 AS col0, col0 FROM tab2 GROUP BY col0, col0 +---- +15 +15 +91 +91 +92 +92 query I rowsort SELECT - col1 AS col1 FROM tab0 AS cor0 GROUP BY col1 HAVING NOT NULL IS NOT NULL @@ -13297,8 +13536,15 @@ SELECT ALL - col2 AS col2, col1 AS col1 FROM tab0 GROUP BY col2, col1 # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col2, col0 AS col2 FROM tab1 GROUP BY col0 +---- +22 +22 +28 +28 +82 +82 query I rowsort label-2148 SELECT col1 / - col1 FROM tab2 GROUP BY col1 @@ -13394,8 +13640,15 @@ SELECT col0, - col0 FROM tab1 AS cor0 GROUP BY col0 # Datafusion - Expected - 91 # Datafusion - Expected - -92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col2, col0 col2 FROM tab2 GROUP BY col0 +---- +-15 +-91 +-92 +15 +91 +92 query I rowsort SELECT - col1 AS col0 FROM tab2 GROUP BY col2, col1 HAVING NOT NULL <> NULL @@ -13640,8 +13893,15 @@ SELECT col2 FROM tab1 GROUP BY col2, col1, col2 HAVING NOT NULL IS NULL # Datafusion - Expected - 57 # Datafusion - Expected - 6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 FROM tab1 GROUP BY col0, col1 +---- +44 +44 +57 +57 +6 +6 query I rowsort SELECT - col1 FROM tab2 AS cor0 GROUP BY col0, col1, col2 HAVING NULL IS NOT NULL @@ -13652,8 +13912,13 @@ SELECT - col1 FROM tab2 AS cor0 GROUP BY col0, col1, col2 HAVING NULL IS NOT NUL # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1, col1 FROM tab0 GROUP BY col1 +---- +0 +0 +81 +81 query I rowsort SELECT ALL + col1 * - col0 AS col1 FROM tab1 AS cor0 GROUP BY col2, col0, col1 @@ -13965,8 +14230,15 @@ SELECT - col2 * col2 AS col0 FROM tab1 AS cor0 GROUP BY col2, col2 # Datafusion - Expected - -79 # Datafusion - Expected - -87 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\)" at position 0 and "\(\- tab2\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2, - col2 FROM tab2 GROUP BY col2 +---- +-58 +-58 +-79 +-79 +-87 +-87 query I rowsort SELECT ALL col1 + - - col1 FROM tab2 GROUP BY col1 @@ -14250,8 +14522,15 @@ SELECT DISTINCT col2 FROM tab1 AS cor0 GROUP BY col2, col2 HAVING NOT - + col2 < # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, col0 col1 FROM tab1 GROUP BY col0 +---- +22 +22 +28 +28 +82 +82 query I rowsort SELECT DISTINCT + col1 + - + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL GROUP BY col1 @@ -14346,8 +14625,15 @@ SELECT ALL + col1 AS col0 FROM tab2 GROUP BY col1 HAVING NULL IS NULL # Datafusion - Expected - 43 # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, col0 FROM tab0 AS cor0 GROUP BY col0 HAVING NOT AVG ( DISTINCT - + col0 ) IS NULL +---- +26 +26 +43 +43 +83 +83 query I rowsort SELECT col2 FROM tab0 GROUP BY col2, col1 HAVING NOT NULL IS NOT NULL @@ -14667,8 +14953,15 @@ SELECT ALL col1 FROM tab2 GROUP BY col1, col0, col1, col0 HAVING NOT col1 IS NOT # Datafusion - Expected - 0 # Datafusion - Expected - 8 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col2\) \+ cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 col1, - col2 + col2 AS col1 FROM tab1 AS cor0 GROUP BY col2, col2 +---- +0 +0 +0 +45 +71 +8 query I rowsort SELECT DISTINCT col0 - + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL GROUP BY col0 HAVING NOT NULL > + AVG ( ALL col0 ) @@ -14903,8 +15196,15 @@ SELECT + - col2 AS col2 FROM tab1 cor0 GROUP BY col2 # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col0 col0, col0 FROM tab1 AS cor0 GROUP BY col0 +---- +22 +22 +28 +28 +82 +82 query I rowsort SELECT - col1 AS col0 FROM tab1 AS cor0 GROUP BY col1, col1, col0 @@ -15316,8 +15616,15 @@ SELECT ALL - col0 AS col1 FROM tab2 GROUP BY col2, col0 # Datafusion - Expected - 43 # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col0, col0 FROM tab0 AS cor0 GROUP BY col0 +---- +26 +26 +43 +43 +83 +83 query II rowsort SELECT - col2 + + col2 AS col0, - col0 AS col2 FROM tab2 cor0 GROUP BY col2, col0 @@ -17055,8 +17362,9 @@ SELECT ( - col2 ) / - col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL GROUP BY col 1 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(\(\- Int64\(38\)\), tab2\.col2\)\) AS col0" at position 0 and "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - NULLIF ( - + 38, + col2 ) AS col0, col2 AS col0 FROM tab2 GROUP BY col0, col0, col2 HAVING NULL IS NOT NULL +---- query II rowsort SELECT + col1, - 25 FROM tab1 GROUP BY col1 @@ -17280,8 +17588,9 @@ SELECT DISTINCT 65 col0 FROM tab2 AS cor0 GROUP BY col2, col1, col1 HAVING NOT N 65 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \+ \(\- cor0\.col2\) \* \(\- cor0\.col2\) / Int64\(2\) AS col0" at position 0 and "cor0\.col2 \* \(\- Int64\(83\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 + - col2 * - col2 / + 2 AS col0, col2 * - + 83 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> col2 / - ( + 55 ) GROUP BY col2 +---- query I rowsort SELECT + - NULLIF ( 31, 67 ) AS col1 FROM tab1 AS cor0 GROUP BY col2 @@ -17489,8 +17798,15 @@ SELECT ALL - - 3 FROM tab1 AS cor0 WHERE NOT + 66 * - + col0 IS NOT NULL GROUP B # Datafusion - Expected - -16 # Datafusion - Expected - 76 # Datafusion - Expected - 44 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(76\) AS col1" at position 0 and "tab1\.col0 \+ Int64\(\-38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 76 AS col1, col0 + - 38 AS col1 FROM tab1 GROUP BY col0, col2 +---- +-10 +-16 +44 +76 +76 +76 query I rowsort SELECT ALL + 29 FROM tab1 GROUP BY col0 HAVING NOT ( 96 + - + ( col0 ) ) < + col0 @@ -17607,8 +17923,9 @@ SELECT ALL + col0 * col0, 9 * col0 FROM tab2 GROUP BY col0 HAVING NULL <> NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "cor0\.col0 / \(\- Int64\(31\)\) \* Int64\(\-63\) / cor0\.col0 \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, col0 / - ( + 31 ) * - 63 / col0 * + - col2 AS col2 FROM tab2 AS cor0 GROUP BY col0, col2 HAVING NOT NULL IN ( - 99 ) +---- query I rowsort label-2842 SELECT - + col2 * + - col2 * - col2 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 GROUP BY col2, col2 @@ -18999,8 +19316,15 @@ SELECT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT - + 82 < NULL GROUP BY col # Datafusion - Expected - 59 # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, col1 AS col1 FROM tab2 AS cor0 GROUP BY col1 HAVING NULL IS NULL +---- +41 +41 +59 +59 +61 +61 query I rowsort SELECT - + col0 FROM tab1 cor0 WHERE NOT 25 * + + col1 - col1 <= NULL GROUP BY col0, col1 @@ -19484,8 +19808,9 @@ SELECT DISTINCT + - 21 + 28 FROM tab1 AS cor0 GROUP BY col1, col1 HAVING NOT NUL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-79\) AS col0" at position 0 and "Int64\(43\) \+ tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 79 AS col0, 43 + + col2 AS col0 FROM tab2 GROUP BY col2 HAVING NOT NULL IS NULL +---- query II rowsort SELECT + col0 AS col0, col0 * - - 85 * col0 FROM tab0 GROUP BY col0, col0 @@ -19575,8 +19900,15 @@ SELECT DISTINCT + 9 col0 FROM tab1 AS cor0 GROUP BY col2, col1, col2 # Datafusion - Expected - -71 # Datafusion - Expected - 8 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "\(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + col2 ) AS col0, - ( col2 ) AS col0 FROM tab1 GROUP BY col1, col2 +---- +-45 +-71 +-8 +45 +71 +8 query I rowsort SELECT 53 FROM tab1 GROUP BY col1 @@ -19892,8 +20224,15 @@ SELECT ALL 72 * col0 FROM tab2 GROUP BY col0 # Datafusion - Expected - 42 # Datafusion - Expected - 79 # Datafusion - Expected - 42 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "Int64\(42\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, 42 AS col0 FROM tab0 GROUP BY col2 +---- +24 +38 +42 +42 +42 +79 query I rowsort SELECT DISTINCT 10 FROM tab0 GROUP BY col0 @@ -20051,8 +20390,15 @@ SELECT ALL + col2 FROM tab0 AS cor0 GROUP BY col2, col1 HAVING 76 IS NULL # Datafusion - Expected - 57 # Datafusion - Expected - 6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, col1 FROM tab1 AS cor0 GROUP BY col1 +---- +44 +44 +57 +57 +6 +6 query II rowsort label-3237 SELECT ALL - col0 AS col1, CAST ( NULL AS INTEGER ) FROM tab0 WHERE col2 IS NULL GROUP BY col0 @@ -20287,8 +20633,9 @@ SELECT + col2 - + col2 AS col0 FROM tab0 AS cor0 GROUP BY col2 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 0 and "Int64\(38\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, + 38 AS col1 FROM tab0 AS cor0 GROUP BY col2 HAVING NULL IS NOT NULL +---- query I rowsort SELECT DISTINCT + col1 AS col2 FROM tab0 GROUP BY col1, col0 @@ -20352,8 +20699,9 @@ SELECT DISTINCT + 78 + 91 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL GROUP BY 169 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\)" at position 0 and "\(\- tab0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2, - col2 FROM tab0 GROUP BY col2 HAVING NOT NULL BETWEEN col2 AND NULL +---- query I rowsort SELECT + col0 + + col0 + - col0 + - col0 FROM tab2 AS cor0 GROUP BY col0 @@ -20495,8 +20843,15 @@ SELECT 34 AS col0 FROM tab1 AS cor0 GROUP BY col1, col2, col0 # Datafusion - Expected - 71 # Datafusion - Expected - -8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col1" at position 0 and "tab1\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, + col2 AS col1 FROM tab1 GROUP BY col2 +---- +-45 +-71 +-8 +45 +71 +8 query I rowsort label-3314 SELECT DISTINCT + col1 / + + 33 FROM tab1 AS cor0 GROUP BY col1 @@ -20536,8 +20891,15 @@ SELECT ALL - 17 FROM tab2 GROUP BY col1 # Datafusion - Expected - -2607 # Datafusion - Expected - NULL # Datafusion - Expected - -2871 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / \(\- cor0\.col2\) \+ CAST\(NULL AS Int32\) \+ \(\- cor0\.col2\) \+ \(\- cor0\.col1\) \* Int64\(13\) AS col2" at position 0 and "Int64\(33\) \* \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 / + - col2 + + + CAST ( NULL AS INTEGER ) + - col2 + - col1 * 13 AS col2, + 33 * + - col2 AS col2 FROM tab2 AS cor0 GROUP BY col2, col1 +---- +-1914 +-2607 +-2871 +NULL +NULL +NULL query I rowsort label-3320 SELECT col2 / col0 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL GROUP BY col0, col2 @@ -20933,8 +21295,15 @@ SELECT 0 AS col2 FROM tab1 GROUP BY col2, col1 # Datafusion - Expected - 71 # Datafusion - Expected - 48 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(11\) \+ Int64\(37\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 11 + 37 AS col0, col2 AS col0 FROM tab1 GROUP BY col2 +---- +45 +48 +48 +48 +71 +8 query II rowsort SELECT DISTINCT + col2 + - + col1, col2 AS col1 FROM tab0 GROUP BY col2, col1 HAVING NULL IS NOT NULL @@ -22199,8 +22568,13 @@ SELECT 66 + - + col2 AS col2 FROM tab0 AS cor0 GROUP BY col2 HAVING NOT NULL > N # Datafusion - Expected - NULL # Datafusion - Expected - 67 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-67\)\) \+ \(\- cor0\.col1\) AS col0" at position 0 and "CAST\(NULL AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 67 + - + col1 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 GROUP BY col1 +---- +-14 +67 +NULL +NULL query I rowsort SELECT + ( - 76 ) FROM tab1 GROUP BY col0 HAVING NULL IS NULL @@ -22595,8 +22969,13 @@ SELECT DISTINCT + ( - col1 ) * ( - col1 ) + + col1 FROM tab0 GROUP BY col1 # Datafusion - Expected - -81 # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1, - col1 FROM tab0 AS cor0 GROUP BY col1, col0 +---- +-81 +-81 +0 +0 query I rowsort SELECT + col2 * + + col0 FROM tab1 AS cor0 GROUP BY col2, col0 @@ -23328,8 +23707,15 @@ SELECT ALL col2 FROM tab2 cor0 WHERE NOT ( NULL IS NULL ) GROUP BY col2 HAVING N # Datafusion - Expected - 59 # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ( col1 ) AS col1, col1 AS col1 FROM tab2 GROUP BY col1 +---- +41 +41 +59 +59 +61 +61 query I rowsort SELECT + + ( col2 ) FROM tab0 AS cor0 GROUP BY col2 @@ -23393,8 +23779,15 @@ SELECT col2 + + CAST ( + 96 AS INTEGER ) * + - col2 AS col0 FROM tab0 GROUP BY c # Datafusion - Expected - 57 # Datafusion - Expected - 6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col1, + col1 FROM tab1 GROUP BY col1 +---- +44 +44 +57 +57 +6 +6 query I rowsort SELECT ALL + + col1 - + col1 - - col1 FROM tab0 AS cor0 GROUP BY col1 HAVING NOT ( 5 ) * - 91 * - 20 * - + 2 = NULL @@ -24023,8 +24416,9 @@ SELECT + 55 * 66 * col2 FROM tab0 GROUP BY col1, col2 HAVING NULL BETWEEN + 22 A ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- cor0\.col1\) \+ Int64\(49\) \+ \(\- \(\- cor0\.col1\)\) \* cor0\.col1 AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 + - col1 + + ( + 49 ) + - - col1 * col1 AS col1, - col1 col1 FROM tab1 AS cor0 GROUP BY col1, col1 HAVING NOT NULL > NULL +---- query I rowsort SELECT ALL + col0 col1 FROM tab0 GROUP BY col0 HAVING - - 82 IS NOT NULL @@ -24345,8 +24739,9 @@ SELECT ALL col1 FROM tab1 WHERE NOT + col0 + + 61 * ( - - col1 ) - col0 * ( + + ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "Int64\(42\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, + 42 col1 FROM tab1 WHERE col2 IN ( - 16 * NULLIF ( + col0, - col0 ) * - 77 / col1 ) GROUP BY col0 +---- query I rowsort SELECT DISTINCT 8 * + + col1 + + col1 AS col1 FROM tab0 GROUP BY col1 @@ -24655,8 +25050,15 @@ SELECT - 91 col1 FROM tab0 AS cor0 GROUP BY col0 HAVING NOT + 24 IS NULL # Datafusion - Expected - 57 # Datafusion - Expected - NULL # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) AS col2, col1 AS col2 FROM tab1 GROUP BY col1 +---- +44 +57 +6 +NULL +NULL +NULL query I rowsort SELECT DISTINCT - col0 * col2 FROM tab2 AS cor0 GROUP BY col1, col0, col2 @@ -25875,8 +26277,15 @@ SELECT DISTINCT 1 AS col1 FROM tab2 GROUP BY col2 # Datafusion - Expected - 3481 # Datafusion - Expected - 61 # Datafusion - Expected - 3721 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "coalesce\(\(\- CAST\(\(\- CAST\(NULL AS Int32\)\) AS Int32\)\), tab2\.col1\) AS col2" at position 0 and "tab2\.col1 \* tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COALESCE ( - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ), + col1 ) AS col2, col1 * col1 AS col2 FROM tab2 GROUP BY col1 +---- +1681 +3481 +3721 +41 +59 +61 query II rowsort SELECT DISTINCT + col1 AS col0, - 14 * - + ( col1 ) FROM tab1 GROUP BY col1 HAVING + 14 = - 71 @@ -26165,8 +26574,9 @@ SELECT + 24 + - - 74 * + - col0 FROM tab1 GROUP BY col0 HAVING NOT NULL IS NOT N -6044 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 / \(\- tab2\.col0\) AS col0" at position 0 and "tab2\.col0 / tab2\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 / + - ( col0 ) AS col0, col0 / + col1 AS col0 FROM tab2 GROUP BY col1, col2, col0 HAVING NOT ( NULL ) IS NULL +---- query I rowsort SELECT + 90 + - col1 col1 FROM tab2 cor0 GROUP BY col1 @@ -27942,8 +28352,15 @@ SELECT DISTINCT col0 * + col2 - - col0 FROM tab1 GROUP BY col2, col0, col2 HAVIN # Datafusion - Expected - 91 # Datafusion - Expected - NULL # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) \+ CAST\(CASE Int64\(77\) WHEN Int64\(1\) THEN \(\- tab2\.col0\) END AS Int32\) \* Int64\(60\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 + CAST ( CASE + + 77 WHEN 1 THEN - col0 END AS INTEGER ) * + 60 AS col2, col0 AS col2 FROM tab2 WHERE - + col0 IS NOT NULL GROUP BY col0 +---- +15 +91 +92 +NULL +NULL +NULL query I rowsort SELECT ALL + col0 FROM tab2 GROUP BY col0, col1, col1 @@ -28292,8 +28709,15 @@ SELECT - col1 * - - col1 AS col2 FROM tab1 GROUP BY col1, col2 # Datafusion - Expected - 28 # Datafusion - Expected - -82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "CAST\(cor0\.col0 AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, + CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 cor0 GROUP BY col1, col0 +---- +-22 +-28 +-82 +22 +28 +82 query I rowsort SELECT - col2 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL GROUP BY col2 @@ -28718,8 +29142,15 @@ SELECT DISTINCT col2 + + CASE + - 82 WHEN - 28 THEN - col0 + - col2 END AS col1, # Datafusion - Expected - 54 # Datafusion - Expected - -92 # Datafusion - Expected - 54 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "Int64\(54\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col0, 54 AS col0 FROM tab2 GROUP BY col0, col0, col0 +---- +-15 +-91 +-92 +54 +54 +54 query I rowsort SELECT + ( 25 ) FROM tab0 AS cor0 GROUP BY col0 @@ -28823,8 +29254,15 @@ SELECT - 30 FROM tab1 GROUP BY col2, col1 # Datafusion - Expected - -38 # Datafusion - Expected - 13 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col0" at position 0 and "\(\- tab0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 13 col0, - col2 AS col0 FROM tab0 GROUP BY col2 +---- +-24 +-38 +-79 +13 +13 +13 query I rowsort SELECT - col0 FROM tab0 AS cor0 WHERE NOT + 23 * - - col1 * + - col2 IS NULL GROUP BY col0 @@ -28950,8 +29388,11 @@ SELECT ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 GROUP BY col1, col2 HA # Datafusion - Datafusion expected results: # Datafusion - Expected - 81 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col1" at position 0 and "Int64\(50\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 81 AS col1, + 50 AS col1 FROM tab1 GROUP BY col0 +---- +50 +81 query I rowsort SELECT + 24 AS col0 FROM tab1 cor0 GROUP BY col1 @@ -29554,8 +29995,10 @@ SELECT DISTINCT + col1 AS col2, + AVG ( - 57 ) - + col1 FROM tab2 WHERE NOT ( - # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 28b547b47793a5fac8bab4d4e4b17a4e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 \+ tab2\.col2 \+ \(\- tab2\.col2\) AS col0" at position 1 and "\(\- tab2\.col2\) \+ \(\- CAST\(NULL AS Int32\)\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col2 * CAST ( NULL AS INTEGER ), col2 + + col2 + - col2 AS col0, - col2 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 GROUP BY col2 +---- +9 values hashing to 51d8fb5415458f647731f67c024301cf query I rowsort SELECT ALL + col1 - + ( 15 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL GROUP BY col1 @@ -30062,8 +30505,15 @@ SELECT DISTINCT col0 FROM tab0 GROUP BY col0 HAVING NOT NULL BETWEEN col0 + + co # Datafusion - Expected - 91 # Datafusion - Expected - -92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + ( - col0 ) AS col1, + col0 AS col1 FROM tab2 GROUP BY col0 +---- +-15 +-91 +-92 +15 +91 +92 query I rowsort SELECT 49 FROM tab0 AS cor0 WHERE + 99 * col2 IS NULL GROUP BY col0, col2 @@ -30276,8 +30726,15 @@ SELECT col1 + + 27 + + 19 * - col2 AS col0 FROM tab0 GROUP BY col1, col2 # Datafusion - Expected - 43 # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 col0, col0 FROM tab0 GROUP BY col0, col0 +---- +26 +26 +43 +43 +83 +83 query I rowsort SELECT ALL + 83 FROM tab0 GROUP BY col2 @@ -30466,8 +30923,15 @@ SELECT 14 AS col0 FROM tab1 AS cor0 GROUP BY col0 HAVING NOT NULL <> NULL # Datafusion - Expected - 121 # Datafusion - Expected - -87 # Datafusion - Expected - 121 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-87\) AS col1" at position 0 and "Int64\(99\) \+ Int64\(22\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - 87 AS col1, 99 + + 22 AS col1 FROM tab0 AS cor0 GROUP BY col2 +---- +-87 +-87 +-87 +121 +121 +121 query I rowsort SELECT ALL col2 + - col2 FROM tab1 GROUP BY col2, col2 @@ -30783,8 +31247,15 @@ SELECT ALL col2 AS col2 FROM tab2 GROUP BY col2, col1 HAVING NOT NULL IS NULL # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col2, + col2 FROM tab0 AS cor0 GROUP BY col2 +---- +24 +24 +38 +38 +79 +79 query I rowsort label-5005 SELECT DISTINCT + 50 / + col2 + col1 AS col0 FROM tab1 AS cor0 GROUP BY col2, col1 HAVING NOT 80 - + 60 IS NULL @@ -30836,8 +31307,15 @@ SELECT ALL + - col0 col1 FROM tab0 AS cor0 GROUP BY col0, col0 # Datafusion - Expected - -28 # Datafusion - Expected - -82 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\)" at position 0 and "\(\- tab1\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0, - col0 FROM tab1 GROUP BY col0, col1 +---- +-22 +-22 +-28 +-28 +-82 +-82 query I rowsort SELECT DISTINCT + NULLIF ( - 33, - col2 ) AS col1 FROM tab1 AS cor0 GROUP BY col2, col0, col1 @@ -30908,7 +31386,7 @@ SELECT + 52 AS col0 FROM tab1 GROUP BY col1 # Postgresql - Postgres error: db error: ERROR: column "tab0.col2" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col2" at position 0 and "Int64\(69\) \* tab0\.col1 \+ \(\- avg\(DISTINCT \(\- tab0\.col1\)\)\) \+ Int64\(17\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Column in HAVING must be in GROUP BY or an aggregate function: While expanding wildcard, column "tab0\.col2" must appear in the GROUP BY clause or must be part of an aggregate function, currently only "tab0\.col1, avg\(DISTINCT \(\- tab0\.col1\)\)" appears in the SELECT clause satisfies this requirement SELECT DISTINCT ( - + col1 ) AS col2, + 69 * col1 + - + AVG ( DISTINCT - col1 ) + + 17 AS col2 FROM tab0 GROUP BY col1 HAVING NOT 42 * - col2 = NULL query II rowsort label-5024 @@ -30993,8 +31471,15 @@ SELECT ALL + 64 FROM tab1 AS cor0 GROUP BY col1 # Datafusion - Expected - 7 # Datafusion - Expected - -87 # Datafusion - Expected - 7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "Int64\(7\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col2 AS col1, + 7 AS col1 FROM tab2 cor0 GROUP BY col2 +---- +-58 +-79 +-87 +7 +7 +7 query I rowsort label-5037 SELECT - CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0 GROUP BY col0, col0 @@ -31175,8 +31660,15 @@ SELECT ALL col1 col0, col1 FROM tab2 GROUP BY col1 # Datafusion - Expected - 57 # Datafusion - Expected - 6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col1, col1 FROM tab1 GROUP BY col1 +---- +44 +44 +57 +57 +6 +6 query I rowsort SELECT DISTINCT 80 * - col0 FROM tab2 cor0 GROUP BY col0 @@ -31750,8 +32242,15 @@ SELECT 49 + - - col0 col0 FROM tab1 AS cor0 GROUP BY col0, col1 # Datafusion - Expected - 792 # Datafusion - Expected - 364 # Datafusion - Expected - 1008 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* Int64\(13\) AS col1" at position 0 and "Int64\(36\) \* tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 * + 13 AS col1, + 36 * + + col0 col1 FROM tab1 GROUP BY col0 +---- +1008 +1066 +286 +2952 +364 +792 query I rowsort label-5160 SELECT DISTINCT + col0 AS col1 FROM tab1 GROUP BY col0 HAVING ( - CAST ( - 8 AS INTEGER ) IS NOT NULL ) @@ -31842,8 +32341,15 @@ SELECT - COALESCE ( col1, + col1 * + + 3 ) AS col1 FROM tab1 GROUP BY col2, col2 # Datafusion - Expected - -286 # Datafusion - Expected - 7 # Datafusion - Expected - -473 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / Int64\(6\) AS col1" at position 0 and "cor0\.col0 \* \(\- Int64\(11\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 / 6 AS col1, + col0 * - + 11 AS col1 FROM tab0 AS cor0 GROUP BY col0, col0 HAVING ( NOT + - ( + + 35 ) IS NULL ) +---- +-286 +-473 +-913 +13 +4 +7 query I rowsort label-5174 SELECT 13 col0 FROM tab1 AS cor0 GROUP BY col1, col0 HAVING + CAST ( + col1 AS INTEGER ) + + - 91 * - col0 * + 78 IS NOT NULL @@ -32063,8 +32569,10 @@ SELECT ALL - col1 * col1 + 29 + - - col1 / + - col1 AS col1 FROM tab2 AS cor0 GR # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 442b706f32baefbb061d0cc9d3a2d7a7 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / \(\- cor0\.col2\) \+ cor0\.col2 \* \(\- cor0\.col2\) AS col1" at position 0 and "Int64\(67\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col2 / - col2 + col2 * - col2 AS col1, 67 col1, 24 AS col1 FROM tab1 AS cor0 GROUP BY col2 +---- +9 values hashing to eb39faa96ee7d5547cb605ca90708b13 query I rowsort SELECT - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL GROUP BY col1 @@ -32262,8 +32770,15 @@ SELECT - col2 / - - col2 FROM tab0 GROUP BY col2 # Datafusion - Expected - 45 # Datafusion - Expected - 504 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 \+ Int64\(62\) \* tab1\.col2 AS col1" at position 0 and "Int64\(45\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 + 62 * col2 AS col1, 45 AS col1 FROM tab1 GROUP BY col2 +---- +2835 +4473 +45 +45 +45 +504 query I rowsort SELECT + - col2 FROM tab1 AS cor0 GROUP BY col0, col2 HAVING ( col2 / + 15 + + 88 ) IN ( AVG ( col2 ) ) @@ -32283,8 +32798,15 @@ SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT ( - col2 ) IS NULL GROUP BY col # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col2, col2 FROM tab2 AS cor0 GROUP BY col2 +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT DISTINCT 46 AS col2 FROM tab2 cor0 GROUP BY col2 @@ -32567,8 +33089,9 @@ SELECT DISTINCT + - col1, - col1 AS col1 FROM tab2 AS cor0 GROUP BY col1 -61 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "CAST\(\(\- tab1\.col0\) AS Int32\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 col0, + CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 GROUP BY col0 HAVING NOT NULL IS NULL +---- query I rowsort SELECT DISTINCT + col0 + col2 FROM tab1 GROUP BY col2, col0 HAVING NOT + + col2 BETWEEN NULL AND col0 @@ -32953,8 +33476,13 @@ SELECT + 43 * 11 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col2 AND - col # Datafusion - Expected - -81 # Datafusion - Expected - 17 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(17\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 17 AS col0, - col1 AS col0 FROM tab0 cor0 GROUP BY col1 +---- +-81 +0 +17 +17 query I rowsort SELECT 66 AS col1 FROM tab1 cor0 GROUP BY col2 @@ -33786,8 +34314,9 @@ SELECT DISTINCT col0 * + + col0 FROM tab1 AS cor0 GROUP BY col0, col1 784 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL GROUP BY col1, col1 +---- query I rowsort SELECT DISTINCT + col2 * + col2 FROM tab1 AS cor0 GROUP BY col2, col1 HAVING + + 56 IS NOT NULL @@ -33977,8 +34506,15 @@ SELECT ALL - 56 + 43 FROM tab1 GROUP BY col2 # Datafusion - Expected - 1 # Datafusion - Expected - 92 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-28\)\) \+ \(\- cor0\.col2\) \* \(\- cor0\.col2\) AS col2" at position 0 and "cor0\.col2 / cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - - 28 + - col2 * - ( + + col2 ) AS col2, col2 / col2 AS col2 FROM tab1 AS cor0 GROUP BY col2 +---- +1 +1 +1 +2053 +5069 +92 query I rowsort SELECT + 77 AS col2 FROM tab0 cor0 GROUP BY col1 HAVING NOT NULL < NULL @@ -34611,8 +35147,10 @@ SELECT + col0 AS col1 FROM tab2 AS cor0 GROUP BY col1, col0 HAVING NOT - 52 NOT # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 44912f0b8cb9b18845e83ac435de9c5f -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(20\) \+ \(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT DISTINCT 20 + - col2 AS col0, + col2 col0, - 95 AS col0 FROM tab2 AS cor0 GROUP BY col2 +---- +9 values hashing to d26a99b983240840a9f1b16a85b4ba9c query I rowsort label-5636 SELECT ALL - - col2 * - + col2 * + col2 + + col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 GROUP BY col2 @@ -35692,8 +36230,9 @@ SELECT + 11 * + - col0 * - col0 / - 97 FROM tab2 cor0 WHERE col2 IS NULL GROUP B ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(84\) \+ Int64\(\-68\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 * 84 + ( + - 68 ) col1, col2 AS col1 FROM tab2 AS cor0 GROUP BY col2, col1 HAVING ( NULL ) IS NOT NULL +---- query I rowsort SELECT + 0 FROM tab0 AS cor0 GROUP BY col2 @@ -36155,8 +36694,15 @@ SELECT ALL col0 + 9 FROM tab1 AS cor0 GROUP BY col0 # Datafusion - Expected - -71 # Datafusion - Expected - 59 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col0" at position 0 and "\(\- tab1\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 59 col0, - col2 AS col0 FROM tab1 GROUP BY col2 +---- +-45 +-71 +-8 +59 +59 +59 query I rowsort SELECT DISTINCT - ( - 74 ) / + 58 + - + col2 AS col1 FROM tab0 GROUP BY col2, col1 HAVING NOT ( NULL ) <> - AVG ( + 37 ) @@ -36431,8 +36977,13 @@ SELECT ALL + col0 AS col1 FROM tab0 WHERE NOT col0 * + col0 IS NULL GROUP BY col # Datafusion - Expected - 45 # Datafusion - Expected - 94 # Datafusion - Expected - 45 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(Int64\(94\) AS Int32\) AS col2" at position 0 and "Int64\(45\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( 94 AS INTEGER ) AS col2, + 45 AS col2 FROM tab0 GROUP BY col1 +---- +45 +45 +94 +94 query I rowsort SELECT + - 92 AS col1 FROM tab1 AS cor0 GROUP BY col1 HAVING NOT NULL >= - - 53 @@ -36740,8 +37291,15 @@ SELECT DISTINCT - 32 AS col0, col0 FROM tab0 GROUP BY col0 HAVING NOT - 25 IS NO # Datafusion - Expected - 0 # Datafusion - Expected - 8556 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \+ \(\- cor0\.col0\) \* \(\- cor0\.col0\) AS col0" at position 0 and "\(\- cor0\.col1\) \+ cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 + - + col0 * + - col0 AS col0, - col1 + col1 AS col0 FROM tab2 AS cor0 GROUP BY col1, col0 +---- +0 +0 +0 +240 +8372 +8556 query I rowsort SELECT DISTINCT 39 AS col0 FROM tab0 GROUP BY col2, col1 @@ -36812,8 +37370,9 @@ SELECT + 62 + - col0 AS col1 FROM tab2 AS cor0 GROUP BY col2, col0 47 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(59\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 59 AS col1, col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) = - col2 GROUP BY col2 +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -36829,8 +37388,15 @@ SELECT - AVG ( DISTINCT + - 5 ) AS col0 FROM tab0 GROUP BY col2 HAVING - col2 <= # Datafusion - Expected - -79 # Datafusion - Expected - 87 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col0, - col2 AS col0 FROM tab2 GROUP BY col2 +---- +-58 +-79 +-87 +58 +79 +87 query I rowsort SELECT + col2 FROM tab0 WHERE NOT - col2 IS NULL GROUP BY col0, col2 @@ -37322,8 +37888,15 @@ SELECT DISTINCT ( - 89 ) col0 FROM tab1 AS cor0 GROUP BY col0, col0, col2 # Datafusion - Expected - 5 # Datafusion - Expected - 81 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 81 col0, 5 col0 FROM tab2 AS cor0 GROUP BY col2 +---- +5 +5 +5 +81 +81 +81 query I rowsort label-6083 SELECT DISTINCT + 27 * + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 GROUP BY col2, col2 @@ -37404,8 +37977,15 @@ SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 GROUP BY col1, col0, col2 HAVING # Datafusion - Expected - 576 # Datafusion - Expected - 49 # Datafusion - Expected - 6241 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col0" at position 0 and "tab0\.col2 \* tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 49 AS col0, col2 * + col2 AS col0 FROM tab0 GROUP BY col2 +---- +1444 +49 +49 +49 +576 +6241 query I rowsort SELECT col2 + - + col2 AS col2 FROM tab2 GROUP BY col2 HAVING NOT NULL IS NULL @@ -37916,8 +38496,9 @@ query error DataFusion error: Error during planning: Column in HAVING must be in SELECT - col2 + 45 AS col1 FROM tab2 AS cor0 GROUP BY col0, col2 HAVING NOT NULL > + col1 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, col0 FROM tab2 GROUP BY col0 HAVING 46 IS NULL +---- query I rowsort label-6187 SELECT DISTINCT + col0 * col0 + + + CAST ( NULL AS INTEGER ) FROM tab0 GROUP BY col0 @@ -38484,8 +39065,13 @@ SELECT ALL col0 / + col0 FROM tab2 AS cor0 GROUP BY col0 # Datafusion - Expected - -30 # Datafusion - Expected - 6111 # Datafusion - Expected - -5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(97\) \* Int64\(63\) AS col1" at position 0 and "\(\- tab2\.col0\) / \(\- Int64\(\-3\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 97 * + 63 col1, - col0 / - - 3 AS col1 FROM tab2 GROUP BY col0, col0 +---- +-30 +-5 +6111 +6111 query I rowsort SELECT - 38 AS col0 FROM tab1 GROUP BY col1, col2 HAVING 71 IS NOT NULL @@ -38618,8 +39204,9 @@ SELECT DISTINCT - 49 col2 FROM tab2 AS cor0 GROUP BY col1 HAVING NOT - col1 IS N ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \+ cor0\.col1 AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 + + + col1 col2, + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1 GROUP BY col1, col2, col0 HAVING NOT - 31 * + - 98 IS NULL +---- query I rowsort SELECT ALL 86 AS col2 FROM tab0 GROUP BY col0 @@ -38698,8 +39285,9 @@ SELECT + - 59 FROM tab1 AS cor0 GROUP BY col0, col1 -59 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1, + col1 FROM tab0 cor0 GROUP BY col0, col1 HAVING NULL IS NOT NULL +---- # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -39235,8 +39823,9 @@ SELECT DISTINCT + + 11 AS col1 FROM tab1 WHERE NOT 65 NOT BETWEEN - col1 * + col ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 col2, col2 FROM tab2 WHERE CAST ( NULL AS FLOAT8 ) >= + col1 GROUP BY col2 +---- query I rowsort SELECT - - col0 col1 FROM tab1 cor0 GROUP BY col0 @@ -39632,8 +40221,15 @@ SELECT 18 * col1 AS col2 FROM tab1 GROUP BY col1 # Datafusion - Expected - -28 # Datafusion - Expected - 82 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, - col0 AS col1 FROM tab1 AS cor0 GROUP BY col0 HAVING 53 * + col0 + ( 99 ) IS NOT NULL +---- +-22 +-28 +-82 +22 +28 +82 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -39838,8 +40434,15 @@ SELECT DISTINCT 16 col1 FROM tab2 AS cor0 GROUP BY col2, col0 # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 FROM tab0 GROUP BY col2, col2 +---- +24 +24 +38 +38 +79 +79 query I rowsort SELECT col1 - col0 * + col0 AS col2 FROM tab0 GROUP BY col1, col0 @@ -40647,8 +41250,9 @@ SELECT DISTINCT + ( ( - + col1 ) ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS N ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(65\) \* Int64\(\-7\) \* cor0\.col0 \* cor0\.col0 \* cor0\.col0 AS col0" at position 0 and "cor0\.col0 / cor0\.col0 \- Int64\(27\) \+ \(\- cor0\.col0\) \+ cor0\.col0 \* \(\- cor0\.col0\) \* Int64\(79\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 65 * - 7 * col0 * col0 * + col0 AS col0, col0 / + + col0 - + 27 + - col0 + col0 * - col0 * 79 AS col0 FROM tab1 AS cor0 GROUP BY col0 HAVING ( NULL ) > 27 +---- query I rowsort SELECT + + col0 AS col0 FROM tab0 cor0 GROUP BY col0, col2 HAVING + 12 IS NOT NULL @@ -40697,8 +41301,15 @@ NULL # Datafusion - Expected - 92 # Datafusion - Expected - -7189 # Datafusion - Expected - 91 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 \* \(\- tab2\.col2\) AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * - col2 col2, col0 AS col2 FROM tab2 GROUP BY col2, col0 HAVING 93 / col2 + - col2 IS NOT NULL +---- +-1305 +-5336 +-7189 +15 +91 +92 query I rowsort SELECT ALL - ( + col1 ) + - 66 + col1 FROM tab0 GROUP BY col1 @@ -42188,7 +42799,7 @@ SELECT DISTINCT ( - 95 ) AS col1 FROM tab1 AS cor0 GROUP BY col1, col0 HAVING - # Postgresql - Postgres error: db error: ERROR: column "tab2.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: Projections require unique expression names but the expression "Int64\(20\) AS col2" at position 0 and "\(\- coalesce\(Int64\(41\), \(\- tab2\.col0\) \+ Int64\(75\)\)\) / Int64\(\-8\) \* \(\- \(\- tab2\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Column in SELECT must be in GROUP BY or an aggregate function: While expanding wildcard, column "tab2\.col0" must appear in the GROUP BY clause or must be part of an aggregate function, currently only "tab2\.col2, tab2\.col2" appears in the SELECT clause satisfies this requirement SELECT + 20 AS col2, - COALESCE ( + 41, - + col0 + + + 75 ) / + - 8 * - ( - col2 ) AS col2 FROM tab2 WHERE + 73 IS NOT NULL GROUP BY col2, col2 HAVING + 58 * 6 BETWEEN NULL AND + col2 query II rowsort @@ -42484,8 +43095,15 @@ SELECT ALL col2 AS col0 FROM tab2 GROUP BY col2 HAVING NULL > - 67 # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col2, col2 FROM tab2 GROUP BY col2 HAVING NOT NULL IS NOT NULL +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT 56 * - col0 FROM tab2 GROUP BY col0 @@ -43498,8 +44116,15 @@ SELECT DISTINCT - col2 + - col2 FROM tab2 AS cor0 GROUP BY col2 # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 FROM tab1 AS cor0 GROUP BY col0 +---- +22 +22 +28 +28 +82 +82 query I rowsort SELECT ALL col2 * col2 * col2 AS col0 FROM tab0 cor0 WHERE 66 + col1 IS NULL GROUP BY col2 @@ -44491,8 +45116,9 @@ NULL 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(32\) AS col2" at position 0 and "cor0\.col2 \+ \(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 32 AS col2, col2 + - col0 AS col2 FROM tab0 AS cor0 GROUP BY col2, col0 HAVING NOT 55 IS NOT NULL +---- query I rowsort SELECT - + col1 * + + col1 AS col0 FROM tab0 AS cor0 GROUP BY col1, col2 @@ -44961,8 +45587,15 @@ SELECT - NULLIF ( + + col2, col0 ) FROM tab1 AS cor0 GROUP BY col0, col2 # Datafusion - Expected - 71 # Datafusion - Expected - 8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col2, ( + col2 ) FROM tab1 AS cor0 GROUP BY col2 +---- +45 +45 +71 +71 +8 +8 query I rowsort label-7375 SELECT - ( 16 ) AS col2 FROM tab0 cor0 GROUP BY col0 HAVING CAST ( NULL AS INTEGER ) > NULL @@ -46036,8 +46669,9 @@ SELECT ( col2 ) AS col0 FROM tab2 GROUP BY col2, col1 87 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\)" at position 0 and "\(\- tab0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1, ( - col1 ) FROM tab0 GROUP BY col1, col0 HAVING NOT + col1 >= NULL +---- query I rowsort SELECT 99 + col1 FROM tab2 GROUP BY col1, col1 @@ -46175,8 +46809,9 @@ SELECT DISTINCT col0 FROM tab1 WHERE NOT NULL IS NULL GROUP BY col1, col0 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \+ Int64\(\-31\) AS col1" at position 0 and "Int64\(\-61\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL CAST ( NULL AS INTEGER ) + - 31 AS col1, - 61 AS col1 FROM tab2 GROUP BY col1 HAVING NULL > ( NULL ) +---- query I rowsort label-7585 SELECT - - col1 * - col1 * - col1 - + 95 * + CAST ( NULL AS INTEGER ) FROM tab2 cor0 GROUP BY col1 @@ -46493,8 +47128,9 @@ SELECT DISTINCT ( - ( - + 37 ) ) + + + col2 FROM tab2 AS cor0 GROUP BY col2 95 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-93\) AS col2" at position 0 and "Int64\(31\) \+ cor0\.col2 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 93 AS col2, + 31 + + col2 AS col2 FROM tab1 AS cor0 WHERE NULL > NULL GROUP BY col2 +---- query I rowsort SELECT + 68 col2 FROM tab2 AS cor0 GROUP BY col0 @@ -47532,8 +48168,15 @@ NULL # Datafusion - Expected - 26 # Datafusion - Expected - -86 # Datafusion - Expected - 43 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \- cor0\.col0 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 - + col0 AS col1, col0 AS col1 FROM tab0 AS cor0 GROUP BY col0 +---- +-166 +-52 +-86 +26 +43 +83 query I rowsort SELECT + col2 + - 17 FROM tab0 AS cor0 GROUP BY col2 @@ -47802,8 +48445,15 @@ SELECT + + col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL GROUP BY col1, col2 HAV # Datafusion - Expected - 38 # Datafusion - Expected - -57 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(57\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - + 57 AS col1, col2 AS col1 FROM tab0 AS cor0 GROUP BY col0, col2 +---- +-57 +-57 +-57 +24 +38 +79 query I rowsort label-7857 SELECT + col2 col2 FROM tab1 GROUP BY col2, col0 HAVING NOT - - NULLIF ( + - col2, CAST ( NULL AS INTEGER ) * - col0 ) * - ( + col2 ) IS NOT NULL @@ -47827,8 +48477,15 @@ SELECT + col2 * + 96 AS col1 FROM tab2 GROUP BY col2 HAVING + 58 - - - 59 <> NUL # Datafusion - Expected - 59 # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, col1 FROM tab2 GROUP BY col0, col1 +---- +41 +41 +59 +59 +61 +61 query I rowsort SELECT DISTINCT + ( ( col1 ) ) col2 FROM tab1 GROUP BY col1 @@ -48188,8 +48845,9 @@ SELECT - + 41 AS col0 FROM tab1 AS cor0 GROUP BY col1 -41 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* \(\- cor0\.col0\) \* Int64\(97\) AS col2" at position 0 and "Int64\(\-19\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * + ( - col0 ) * + 97 AS col2, - 19 AS col2 FROM tab1 AS cor0 GROUP BY col0 HAVING NOT NULL IS NULL +---- query I rowsort SELECT DISTINCT - 79 * + + 82 FROM tab2 GROUP BY col2 @@ -48837,8 +49495,15 @@ SELECT DISTINCT - col1 AS col0 FROM tab2 GROUP BY col1, col2 HAVING ( NOT ( NULL # Datafusion - Expected - -8 # Datafusion - Expected - 8 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col1" at position 0 and "Int64\(\-8\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col1, - 8 AS col1 FROM tab1 GROUP BY col2, col2 +---- +-8 +-8 +-8 +45 +71 +8 query I rowsort SELECT + - col0 - - col0 FROM tab1 cor0 GROUP BY col0 HAVING col0 IS NOT NULL @@ -49916,8 +50581,15 @@ SELECT ALL col1 AS col1 FROM tab0 GROUP BY col1, col2 HAVING NOT NULL >= - 99 # Datafusion - Expected - 29 # Datafusion - Expected - 51 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(51\) AS col1" at position 0 and "tab1\.col1 / tab1\.col1 \+ tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT 51 AS col1, col1 / col1 + col0 AS col1 FROM tab1 GROUP BY col2, col1, col0 +---- +23 +29 +51 +51 +51 +83 query I rowsort SELECT + 82 AS col2 FROM tab1 AS cor0 GROUP BY col1, col2 @@ -50405,8 +51077,11 @@ SELECT col2 AS col1 FROM tab1 GROUP BY col0, col2 HAVING ( NULL BETWEEN + ( + - # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-24\)\) AS col1" at position 0 and "\(\- CAST\(NULL AS Int32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - ( - 24 ) col1, - CAST ( NULL AS INTEGER ) col1 FROM tab0 GROUP BY col0 +---- +24 +NULL query I rowsort SELECT col0 FROM tab0 GROUP BY col0, col2 HAVING 82 IS NULL @@ -50770,8 +51445,9 @@ query error DataFusion error: Schema error: Schema contains qualified field name SELECT col2, col2 / - col2 AS col2 FROM tab2 AS cor0 GROUP BY col2, col2 HAVING NOT ( CAST ( NULL AS INTEGER ) ) NOT BETWEEN - 12 + + 65 * - 70 + - - 79 AND NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "\(\- cor0\.col0\) \* \(\- cor0\.col0\) \* \(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT ALL - + col0 col1, - col0 * - col0 * - col0 AS col1, + - 81 - 18 AS col2 FROM tab2 AS cor0 GROUP BY col0 HAVING + CAST ( + + 36 AS INTEGER ) IS NULL +---- query I rowsort label-8343 SELECT - + col1 / + col1 + col1 col0 FROM tab2 AS cor0 GROUP BY col1 @@ -50955,8 +51631,15 @@ SELECT DISTINCT - 46 AS col0 FROM tab2 GROUP BY col0, col0 # Datafusion - Expected - 43 # Datafusion - Expected - 17 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(\-17\)\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - 17 AS col1, col0 AS col1 FROM tab0 AS cor0 GROUP BY col0, col0 +---- +17 +17 +17 +26 +43 +83 query I rowsort label-8373 SELECT DISTINCT + ( + - col1 ) / + col1 FROM tab1 AS cor0 WHERE NOT ( ( ( - 10 ) ) ) IS NULL GROUP BY col1 @@ -51253,8 +51936,9 @@ SELECT DISTINCT - 51 FROM tab1 GROUP BY col1, col2 -51 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) \- \(\- tab2\.col1\) AS col0" at position 0 and "Int64\(36\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT CAST ( NULL AS INTEGER ) - + - col1 AS col0, 36 AS col0 FROM tab2 GROUP BY col1, col2 HAVING NOT NULL > NULL +---- query I rowsort SELECT ALL - 60 FROM tab0 GROUP BY col0, col1 HAVING NOT NULL <> NULL @@ -51569,8 +52253,15 @@ SELECT DISTINCT + - 31 AS col0 FROM tab0 AS cor0 GROUP BY col1 # Datafusion - Expected - 23 # Datafusion - Expected - -92 # Datafusion - Expected - 23 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\) AS col0" at position 0 and "Int64\(23\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col0, + 23 AS col0 FROM tab2 GROUP BY col1, col0 +---- +-15 +-91 +-92 +23 +23 +23 query I rowsort SELECT + - ( col2 ) AS col1 FROM tab0 AS cor0 GROUP BY col2 HAVING + - 87 IS NOT NULL @@ -52003,8 +52694,15 @@ SELECT col1 * 66 * + - col1 + col1 FROM tab0 GROUP BY col1 HAVING ( NULL ) IS NO # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, col2 col2 FROM tab0 GROUP BY col2 +---- +24 +24 +38 +38 +79 +79 query I rowsort SELECT col0 FROM tab1 GROUP BY col0 HAVING + 11 IS NOT NULL @@ -52096,8 +52794,9 @@ SELECT + - col1, - col1 AS col1 FROM tab0 AS cor0 GROUP BY col0, col1 0 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, col0 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL OR NOT - col0 IS NOT NULL GROUP BY col2, col0 +---- query I rowsort SELECT ALL 29 FROM tab1 GROUP BY col2, col0 @@ -53852,8 +54551,15 @@ SELECT 20 * + col0 AS col1, - 17 AS col2 FROM tab0 GROUP BY col0 # Datafusion - Expected - 28 # Datafusion - Expected - -82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, + col0 AS col2 FROM tab1 GROUP BY col0 +---- +-22 +-28 +-82 +22 +28 +82 # 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: @@ -54381,8 +55087,9 @@ SELECT DISTINCT + 37 * - ( - NULLIF ( - col2, - CASE - 78 WHEN - 26 THEN NULL EL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 1 and "Int64\(\-83\) AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + ( + ( - + col1 ) ), col1 AS col0, - 83 AS col0 FROM tab0 cor0 GROUP BY col2, col1 HAVING ( NULL ) >= col2 +---- query I rowsort SELECT DISTINCT + 7 - - - col2 AS col1 FROM tab1 GROUP BY col2, col0 @@ -55399,8 +56106,15 @@ SELECT DISTINCT col1 + - col2 FROM tab1 GROUP BY col2, col1, col2 # Datafusion - Expected - 3550 # Datafusion - Expected - -8 # Datafusion - Expected - 400 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "cor0\.col2 \+ cor0\.col2 \* Int64\(49\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col2 AS col1, col2 + col2 * + + 49 AS col1 FROM tab1 AS cor0 GROUP BY col2, col2 +---- +-45 +-71 +-8 +2250 +3550 +400 query I rowsort SELECT + - col0 / - ( - - 18 ) FROM tab1 AS cor0 WHERE ( + - col0 ) + col0 < - + 34 GROUP BY col1, col2, col0 @@ -57144,8 +57858,10 @@ SELECT ALL - col1 AS col0 FROM tab0 GROUP BY col1 HAVING NOT - + col1 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to c89d017b3f0162bec10216c7a5261286 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 1 and "tab1\.col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + 51 * + col1 AS col0, col1, col1 FROM tab1 GROUP BY col1, col1, col1 +---- +9 values hashing to fa2b0a8bd92721817cedde3bd2e0041f query I rowsort label-9379 SELECT ALL + CAST ( NULL AS INTEGER ) + col0 * + 37 - NULLIF ( - - col2, col0 ) AS col0 FROM tab0 GROUP BY col0, col2 @@ -58081,8 +58797,15 @@ SELECT DISTINCT - - 26 / + + col1 AS col1 FROM tab1 AS cor0 GROUP BY col2, col1 # Datafusion - Expected - 91 # Datafusion - Expected - -92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col1, + col0 col1 FROM tab2 AS cor0 GROUP BY col0 +---- +-15 +-91 +-92 +15 +91 +92 query I rowsort SELECT + col1 FROM tab2 AS cor0 WHERE ( - col0 / col1 ) >= - col1 GROUP BY col1 HAVING - 24 + + col1 IS NULL @@ -58375,8 +59098,15 @@ SELECT DISTINCT ( - col2 ) FROM tab1 GROUP BY col2, col0 # Datafusion - Expected - 43 # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0, col0 FROM tab0 GROUP BY col0 +---- +26 +26 +43 +43 +83 +83 query I rowsort SELECT DISTINCT - col0 AS col1 FROM tab2 GROUP BY col2, col0, col0 @@ -58687,8 +59417,15 @@ SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 42 AS col2, - col0 FROM tab0 WHER # Datafusion - Expected - 57 # Datafusion - Expected - 6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "CAST\(cor0\.col1 AS Int32\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1, CAST ( col1 AS INTEGER ) FROM tab1 AS cor0 GROUP BY col2, col1 +---- +44 +44 +57 +57 +6 +6 query I rowsort SELECT DISTINCT - col1 + col1 AS col0 FROM tab1 AS cor0 GROUP BY col2, col1 @@ -58892,8 +59629,15 @@ SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 GROUP BY col2 HAVING NOT ( ( NU # Datafusion - Expected - 26 # Datafusion - Expected - 6889 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col0 AS col1" at position 0 and "\(\- cor0\.col1\) \+ cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 * + + col0 AS col1, - col1 + col0 AS col1 FROM tab0 AS cor0 GROUP BY col1, col0, col1 +---- +-38 +1849 +26 +676 +6889 +83 query I rowsort label-9660 SELECT DISTINCT + + col0 AS col1 FROM tab0 AS cor0 GROUP BY col0 HAVING CAST ( NULL AS INTEGER ) NOT IN ( NULLIF ( 63, - col0 ) ) @@ -59037,8 +59781,10 @@ SELECT DISTINCT + 30 FROM tab0 AS cor0 GROUP BY col2 HAVING + - col2 IS NULL # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 28d1a296c6990b10de76d21db8c99739 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / \(\- Int64\(\-41\)\) \* \(\- cor0\.col0\) AS col1" at position 0 and "Int64\(\-3\) \* CAST\(NULL AS Int32\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT col0 / - - 41 * - col0 col1, + col0 * + col0, - 3 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 GROUP BY col0 +---- +9 values hashing to 81969de621b1314b97cd31f036009a10 query I rowsort SELECT + 66 + - col1 FROM tab1 AS cor0 GROUP BY col0, col1 HAVING NULL <= - col1 @@ -59850,8 +60596,13 @@ SELECT + col1 * - - 27 * ( + + CAST ( NULL AS INTEGER ) ) * CAST ( col0 AS INTEG # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, col1 AS col1 FROM tab0 GROUP BY col1, col1 +---- +0 +0 +81 +81 query I rowsort SELECT col2 FROM tab0 WHERE NOT + col0 + + COALESCE ( + 19, col0 * - 8, + col1 ) + col0 IN ( + col0 ) GROUP BY col2 @@ -60166,8 +60917,9 @@ SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 GROUP BY col2, col0 HAVING NULL N ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, col1 FROM tab1 AS cor0 GROUP BY col1 HAVING NOT NULL IS NULL +---- query I rowsort SELECT col0 * col0 FROM tab0 cor0 GROUP BY col0 @@ -60241,8 +60993,15 @@ SELECT - col0 * + - col0 AS col2 FROM tab2 GROUP BY col0 # Datafusion - Expected - 57 # Datafusion - Expected - -6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, ( + col1 ) AS col2 FROM tab1 GROUP BY col1 +---- +-44 +-57 +-6 +44 +57 +6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 124 @@ -60251,8 +61010,15 @@ SELECT - col1 AS col2, ( + col1 ) AS col2 FROM tab1 GROUP BY col1 # Datafusion - Expected - 92 # Datafusion - Expected - 48 # Datafusion - Expected - 15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(\(\- Int64\(\-33\)\) AS Int32\) \+ tab2\.col0 AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT CAST ( - - 33 AS INTEGER ) + col0 AS col2, + col0 AS col2 FROM tab2 GROUP BY col0, col0 +---- +124 +125 +15 +48 +91 +92 query I rowsort SELECT ALL 40 FROM tab2 AS cor0 WHERE NOT + 2 / + col2 IS NULL AND NOT NULL > + 36 / col1 GROUP BY col2 @@ -60584,8 +61350,15 @@ SELECT - - ( col2 ) FROM tab1 cor0 GROUP BY col2, col1 # Datafusion - Expected - NULL # Datafusion - Expected - 13 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(13\) AS col2" at position 0 and "CAST\(NULL AS Int32\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 13 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 GROUP BY col2, col1 +---- +13 +13 +13 +NULL +NULL +NULL query I rowsort SELECT + 61 AS col1 FROM tab0 GROUP BY col2, col0 diff --git a/data/sqlite/random/groupby/slt_good_12.slt b/data/sqlite/random/groupby/slt_good_12.slt index c2d51f2..1b3aaf9 100644 --- a/data/sqlite/random/groupby/slt_good_12.slt +++ b/data/sqlite/random/groupby/slt_good_12.slt @@ -780,8 +780,15 @@ NULL # Datafusion - Expected - 0 # Datafusion - Expected - -812 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 \* \(\- tab1\.col0\) \+ \(\- tab1\.col0\) AS col1" at position 0 and "tab1\.col0 \- tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 * - col0 + - col0 AS col1, + col0 - col0 AS col1 FROM tab1 GROUP BY col0 +---- +-506 +-6806 +-812 +0 +0 +0 query I rowsort SELECT ALL - col2 * col2 AS col0 FROM tab0 GROUP BY col2 @@ -1342,8 +1349,9 @@ SELECT 33 + - col0 - + - col1 col0 FROM tab2 AS cor0 GROUP BY col0, col1 79 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 \* \(\- Int64\(78\)\) \* Int64\(\-87\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 * - + 78 * - 87 AS col2, col1 AS col2 FROM tab2 GROUP BY col1 HAVING NOT 78 <= NULL +---- query I rowsort SELECT ALL - col2 AS col0 FROM tab1 GROUP BY col2 HAVING NOT NULL IS NOT NULL @@ -3335,8 +3343,15 @@ SELECT ALL - ( col1 ) AS col0 FROM tab1 GROUP BY col1 # Datafusion - Expected - 12 # Datafusion - Expected - 7 # Datafusion - Expected - 12 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(7\) AS col2" at position 0 and "Int64\(12\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 7 col2, 12 col2 FROM tab2 GROUP BY col0, col1 +---- +12 +12 +12 +7 +7 +7 query I rowsort label-533 SELECT + CAST ( NULL AS INTEGER ) * - col2 FROM tab1 GROUP BY col1, col2 HAVING - + 58 * + ( + 25 ) + - + col2 IS NULL @@ -4208,8 +4223,15 @@ NULL # Datafusion - Expected - 57 # Datafusion - Expected - 6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, + col1 AS col1 FROM tab1 GROUP BY col1 +---- +44 +44 +57 +57 +6 +6 query II rowsort SELECT + + col2, col2 * col2 FROM tab0 AS cor0 GROUP BY col2 @@ -4572,8 +4594,15 @@ SELECT - col0 + - + col0 FROM tab2 AS cor0 GROUP BY col0 HAVING NULL IS NOT NULL # Datafusion - Expected - 114 # Datafusion - Expected - -88 # Datafusion - Expected - 836 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) \+ \(\- tab1\.col1\) AS col2" at position 0 and "Int64\(19\) \* tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 + - col1 AS col2, 19 * + + col1 AS col2 FROM tab1 GROUP BY col1 +---- +-114 +-12 +-88 +1083 +114 +836 query I rowsort label-738 SELECT + col2 * - CAST ( NULL AS INTEGER ) + + 31 * - - ( 88 ) * col2 FROM tab2 WHERE NOT NULL IS NOT NULL GROUP BY col2 HAVING NULL IS NULL @@ -6724,8 +6753,9 @@ SELECT 53 / 44 AS col1 FROM tab0 AS cor0 GROUP BY col2 HAVING NOT - 28 IS NULL 1 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(56\) AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 56 AS col1, - col0 AS col1 FROM tab2 GROUP BY col0, col0 HAVING NULL IS NOT NULL +---- query I rowsort SELECT DISTINCT 0 FROM tab1 GROUP BY col1 HAVING NOT - 0 NOT BETWEEN NULL AND 8 * 90 @@ -7838,8 +7868,10 @@ SELECT 71 + - - col1 + + CAST ( + + CAST ( - col1 AS INTEGER ) AS INTEGER ) FROM # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 82400da0118fb9c47ba34b8a43a08ad9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-74\) AS col1" at position 0 and "\(\- Int64\(87\)\) AS col1" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT - 74 AS col1, col0 * + 6, - + 87 AS col1 FROM tab2 GROUP BY col1, col0 HAVING NOT NULL IS NOT NULL +---- +9 values hashing to 8fc3cc841f8d2c161d61539ccb193e0f query I rowsort SELECT DISTINCT + 67 FROM tab2 GROUP BY col2, col0, col1 HAVING NULL IS NULL @@ -8685,8 +8717,15 @@ SELECT DISTINCT - col2 + 63 AS col2 FROM tab1 AS cor0 GROUP BY col2 # Datafusion - Expected - -82 # Datafusion - Expected - 81 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 / \(\- cor0\.col0\) \+ cor0\.col0 AS col1" at position 0 and "Int64\(\-82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0 / + - col0 + col0 AS col1, - 82 col1 FROM tab1 AS cor0 GROUP BY col0 +---- +-82 +-82 +-82 +21 +27 +81 query I rowsort SELECT - 16 AS col0 FROM tab1 GROUP BY col2 @@ -8764,8 +8803,11 @@ SELECT ALL - 54 FROM tab0 AS cor0 GROUP BY col2, col1 HAVING - + col2 * 79 * col # 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 "tab1\.col2 / \(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - 16 AS col2, col2 / - col2 col2 FROM tab1 GROUP BY col1, col2 +---- +-1 +-16 query I rowsort SELECT ALL + ( + col2 ) AS col2 FROM tab2 AS cor0 GROUP BY col1, col2 @@ -8985,8 +9027,15 @@ SELECT col2 AS col0 FROM tab0 AS cor0 GROUP BY col2 HAVING - col2 * + col2 + - c # Datafusion - Expected - 126 # Datafusion - Expected - 91 # Datafusion - Expected - 166 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col2" at position 0 and "cor0\.col0 \+ Int64\(83\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 91 AS col2, + col0 + + 83 AS col2 FROM tab0 AS cor0 GROUP BY col0, col2 +---- +109 +126 +166 +91 +91 +91 query II rowsort label-1468 SELECT ALL + 47 + - CAST ( NULL AS INTEGER ) col2, + col0 - col0 FROM tab1 AS cor0 GROUP BY col0 @@ -9116,8 +9165,15 @@ SELECT DISTINCT - + 17 AS col2 FROM tab0 AS cor0 GROUP BY col1 # Datafusion - Expected - 26 # Datafusion - Expected - -8 # Datafusion - Expected - 26 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\) AS col2" at position 0 and "Int64\(26\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col2, + 26 col2 FROM tab1 GROUP BY col2 HAVING NULL IS NULL +---- +-45 +-71 +-8 +26 +26 +26 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -9425,8 +9481,15 @@ SELECT DISTINCT 55 - 19 AS col2, 19 FROM tab2 GROUP BY col0 # Datafusion - Expected - 5 # Datafusion - Expected - -8 # Datafusion - Expected - 5 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "Int64\(5\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col2 AS col0, + 5 col0 FROM tab1 AS cor0 GROUP BY col2 +---- +-45 +-71 +-8 +5 +5 +5 query I rowsort SELECT ALL - + 76 * - col1 FROM tab1 AS cor0 GROUP BY col1 @@ -9494,8 +9557,9 @@ SELECT - + 58 * - + 93 FROM tab2 AS cor0 GROUP BY col0, col2 5394 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(71\) \+ cor0\.col0 / cor0\.col0 AS col2" at position 0 and "cor0\.col2 \+ \(\- cor0\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 71 + + col0 / + col0 AS col2, ( col2 ) + - col2 col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL GROUP BY col0, col2 HAVING NULL <> - col0 +---- query I rowsort SELECT col1 * 71 + 83 AS col2 FROM tab2 AS cor0 GROUP BY col1, col2 @@ -10984,8 +11048,15 @@ NULL # Datafusion - Expected - 91 # Datafusion - Expected - 92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 AS col0, col0 AS col0 FROM tab2 AS cor0 GROUP BY col0, col0 +---- +15 +15 +91 +91 +92 +92 query I rowsort SELECT + col2 * col2 * - col2 col0 FROM tab2 AS cor0 GROUP BY col2 @@ -11008,8 +11079,15 @@ SELECT ALL col2 + col2 AS col2 FROM tab0 AS cor0 GROUP BY col2 # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, + col2 FROM tab2 GROUP BY col2, col2 +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT col0 * - col0 * + col0 + + col0 + - - col0 AS col1 FROM tab2 GROUP BY col0 @@ -11440,8 +11518,9 @@ SELECT ALL 39 FROM tab0 GROUP BY col0, col0 39 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(29\) AS col2" at position 0 and "\(\- tab1\.col0\) \* Int64\(72\) \+ Int64\(\-77\) \* tab1\.col0 \- \(\- tab1\.col2\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 29 col2, - col0 * + 72 + - 77 * + col0 - - + col2 AS col2 FROM tab1 GROUP BY col0, col2 HAVING NOT NULL IS NULL +---- query I rowsort label-1866 SELECT DISTINCT + - col2 / col1 FROM tab1 AS cor0 GROUP BY col2, col1, col0 @@ -12351,8 +12430,9 @@ SELECT ALL - + col0 * + + ( + + col0 ) FROM tab1 AS cor0 WHERE NOT 73 IS NULL GR ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \+ \(\- tab1\.col1\) AS col1" at position 0 and "\(\- tab1\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 + - col1 AS col1, - col1 AS col1 FROM tab1 GROUP BY col1 HAVING NOT ( NULL ) IS NULL +---- query I rowsort SELECT - 0 FROM tab1 GROUP BY col1 HAVING NULL IS NULL @@ -12506,8 +12586,15 @@ SELECT + col1 col2, col1 FROM tab1 GROUP BY col1 # Datafusion - Expected - 57 # Datafusion - Expected - -36 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(tab1\.col1\)\) \* tab1\.col1 AS col2" at position 0 and "tab1\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL - AVG ( + + col1 ) * col1 col2, col1 AS col2 FROM tab1 GROUP BY col1 +---- +-1936 +-3249 +-36 +44 +57 +6 query I rowsort SELECT ALL + - 96 AS col2 FROM tab2 AS cor0 GROUP BY col0 @@ -12856,8 +12943,15 @@ SELECT ALL 59 AS col0 FROM tab2 AS cor0 GROUP BY col0, col1 # Datafusion - Expected - -38 # Datafusion - Expected - -79 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) AS col1" at position 0 and "\(\- \(\- tab0\.col2\)\) \+ \(\- tab0\.col2\) \- tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, - ( - col2 ) + - col2 - + col2 AS col1 FROM tab0 GROUP BY col2 HAVING NOT 47 IS NULL +---- +-24 +-24 +-38 +-38 +-79 +-79 query I rowsort SELECT + 56 + + col0 + - 6 FROM tab0 AS cor0 GROUP BY col0 HAVING - col0 >= NULL @@ -13294,8 +13388,15 @@ SELECT ALL + 94 FROM tab2 GROUP BY col1 HAVING NOT + col1 BETWEEN NULL AND 68 # Datafusion - Expected - 26 # Datafusion - Expected - 2 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- tab0\.col0\)\) \+ Int64\(\-81\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - ( ( - col0 ) ) + - 81 AS col2, col0 AS col2 FROM tab0 GROUP BY col0 HAVING NOT + 78 IS NULL +---- +-38 +-55 +2 +26 +43 +83 query I rowsort SELECT ( + col0 ) FROM tab1 AS cor0 GROUP BY col1, col0 @@ -14089,12 +14190,20 @@ SELECT + + col0 col2 FROM tab0 AS cor0 GROUP BY col0 HAVING NOT ( NULL ) BETWEEN # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, col0 FROM tab1 cor0 GROUP BY col0 HAVING + 37 <= AVG ( + 87 ) * 40 +---- +22 +22 +28 +28 +82 +82 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(91\) AS col2" at position 0 and "tab1\.col2 \- Int64\(72\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL 91 AS col2, col2 - 72 col2 FROM tab1 GROUP BY col2 HAVING NULL >= 4 * 95 +---- query I rowsort SELECT ALL col2 + + - ( - col2 ) * 83 FROM tab2 GROUP BY col2 @@ -14697,8 +14806,15 @@ SELECT - + 23 + + col2 * - col2 AS col2 FROM tab0 WHERE + col0 IS NOT NULL GROUP # Datafusion - Expected - 118 # Datafusion - Expected - -61 # Datafusion - Expected - 122 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "cor0\.col1 \+ \(\- \(\- cor0\.col1\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col2, col1 + - - col1 AS col2 FROM tab2 AS cor0 GROUP BY col1 +---- +-41 +-59 +-61 +118 +122 +82 query I rowsort label-2400 SELECT DISTINCT + col2 * - CAST ( NULL AS INTEGER ) FROM tab1 GROUP BY col2 @@ -15721,7 +15837,7 @@ SELECT - 29 FROM tab2 GROUP BY col1 # 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: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Column in HAVING must be in GROUP BY or an aggregate function: While expanding wildcard, column "cor0\.col2" must appear in the GROUP BY clause or must be part of an aggregate function, currently only "cor0\.col0" appears in the SELECT clause satisfies this requirement SELECT + + col0 AS col2, - col0 AS col2 FROM tab1 AS cor0 GROUP BY col0 HAVING NULL BETWEEN col2 AND NULL query II rowsort @@ -15856,8 +15972,15 @@ SELECT DISTINCT + 69 col2 FROM tab2 AS cor0 GROUP BY col1, col0, col2 # Datafusion - Expected - 82 # Datafusion - Expected - 87 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "Int64\(82\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col1, + 82 AS col1 FROM tab2 AS cor0 GROUP BY col0, col2 +---- +58 +79 +82 +82 +82 +87 query I rowsort SELECT - ( 57 ) + col2 * + - col0 + col0 AS col1 FROM tab0 AS cor0 GROUP BY col0, col2 @@ -16248,8 +16371,15 @@ SELECT - 65 FROM tab2 GROUP BY col2 # Datafusion - Expected - -79 # Datafusion - Expected - -87 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "\(\- cor0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2, - col2 FROM tab2 AS cor0 GROUP BY col2 HAVING NULL IS NULL +---- +-58 +-58 +-79 +-79 +-87 +-87 query I rowsort SELECT DISTINCT col2 + 53 AS col2 FROM tab0 cor0 GROUP BY col2 @@ -16444,8 +16574,15 @@ NULL # Datafusion - Expected - 44 # Datafusion - Expected - 40 # Datafusion - Expected - 56 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(40\) AS col2" at position 0 and "cor0\.col0 \+ cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + 40 AS col2, col0 + + col0 col2 FROM tab1 AS cor0 GROUP BY col0, col0 +---- +164 +40 +40 +40 +44 +56 query I rowsort label-2687 SELECT - col0 + + - col0 + - col0 / col0 * + - 71 FROM tab2 AS cor0 GROUP BY col0, col0 @@ -16885,8 +17022,10 @@ SELECT + col2 AS col0, - 91 / 31 col1 FROM tab1 GROUP BY col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 35b165a283933a9b9e1f395fe13b274e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 \* cor0\.col1 \+ Int64\(\-91\) AS col1" at position 0 and "Int64\(20\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IIR valuesort SELECT + col0 * col1 + - 91 AS col1, + 20 AS col1, + col1 * col1 * AVG ( CAST ( NULL AS INTEGER ) ) + + col0 + - col0 * col0 * - col1 AS col2 FROM tab2 AS cor0 GROUP BY col1, col0 +---- +9 values hashing to 9f5b4957ee367eaa29cdc9e3f5819645 query I rowsort SELECT - col0 * 34 FROM tab1 AS cor0 GROUP BY col0, col0 @@ -17042,8 +17181,15 @@ SELECT col0 * ( col0 ) AS col1 FROM tab2 GROUP BY col0 # Datafusion - Expected - 6241 # Datafusion - Expected - 77 # Datafusion - Expected - 3364 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(77\) \+ \(\- cor0\.col2\) \+ Int64\(58\) AS col2" at position 0 and "cor0\.col2 \* \(\- \(\- cor0\.col2\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 77 + - col2 + + 58 AS col2, col2 * - - col2 AS col2 FROM tab2 AS cor0 GROUP BY col2 HAVING ( NULL ) IS NULL +---- +3364 +48 +56 +6241 +7569 +77 query I rowsort SELECT ALL + - 39 FROM tab0 AS cor0 GROUP BY col2, col2 @@ -18258,8 +18404,9 @@ SELECT DISTINCT col1 * + col1 + + col1 col1 FROM tab2 GROUP BY col1 3782 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) \* cor0\.col0 \+ \(\- Int64\(52\)\) \+ Int64\(59\) AS col0" at position 0 and "Int64\(1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 * + col0 + - + 52 + 59 AS col0, + 1 AS col0 FROM tab2 AS cor0 WHERE NULL = + col0 GROUP BY col0 HAVING ( AVG ( DISTINCT - col2 ) ) IS NULL +---- query I rowsort SELECT DISTINCT + 1 * + col0 * - 62 - + 71 - + 71 col1 FROM tab2 AS cor0 GROUP BY col0, col0, col0 @@ -18515,8 +18662,13 @@ SELECT ALL + col0 - + - ( + + 30 ) FROM tab2 GROUP BY col0 # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, col1 AS col1 FROM tab0 AS cor0 GROUP BY col1 +---- +0 +0 +81 +81 # 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: @@ -18824,8 +18976,15 @@ SELECT ALL col2 col1 FROM tab0 AS cor0 GROUP BY col2 HAVING NULL IS NOT NULL # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( + col2 ), col2 AS col2 FROM tab2 cor0 GROUP BY col2 +---- +58 +58 +79 +79 +87 +87 # 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: @@ -19649,8 +19808,15 @@ SELECT DISTINCT + 63 col2 FROM tab0 WHERE NOT - - col2 / - - col1 > NULL GROUP B # Datafusion - Expected - 20 # Datafusion - Expected - 61 # Datafusion - Expected - 20 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col2" at position 0 and "Int64\(20\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col2, + ( + 20 ) col2 FROM tab2 GROUP BY col1 HAVING NOT NULL IS NOT NULL +---- +20 +20 +20 +41 +59 +61 query II rowsort SELECT 0, + col2 * + ( + col2 ) + - col2 AS col2 FROM tab0 GROUP BY col2 @@ -19784,8 +19950,15 @@ SELECT - col0, col0 / + + col0 FROM tab0 AS cor0 GROUP BY col0 HAVING NULL < - 6 # Datafusion - Expected - 59 # Datafusion - Expected - -732 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \* Int64\(\-12\) AS col0" at position 0 and "cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 * - 12 AS col0, + col1 AS col0 FROM tab2 AS cor0 GROUP BY col1 +---- +-492 +-708 +-732 +41 +59 +61 query II rowsort SELECT ALL col0, - 98 FROM tab1 GROUP BY col0 @@ -21587,8 +21760,15 @@ SELECT + col2 AS col2, - col2 AS col0 FROM tab0 GROUP BY col2, col2 # Datafusion - Expected - 28 # Datafusion - Expected - -4032 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(42\) \* Int64\(\-96\) AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 42 * - 96 AS col1, col0 AS col1 FROM tab1 GROUP BY col1, col0 +---- +-4032 +-4032 +-4032 +22 +28 +82 query I rowsort SELECT ALL + col2 FROM tab0 WHERE NOT col1 * + col1 IS NULL GROUP BY col2, col0, col2 @@ -21648,8 +21828,15 @@ SELECT col2 * - + col2 FROM tab1 GROUP BY col2 # Datafusion - Expected - -7 # Datafusion - Expected - -61 # Datafusion - Expected - -9 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "Int64\(52\) \+ \(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col1, + 52 + - col1 AS col1 FROM tab2 AS cor0 GROUP BY col1, col1 +---- +-41 +-59 +-61 +-7 +-9 +11 query I rowsort SELECT 61 / CASE + col0 WHEN - col0 THEN 59 + + col0 WHEN + - 42 - - + 60 / + col0 THEN NULL ELSE NULL END - + - col2 FROM tab2 AS cor0 GROUP BY col0, col2 @@ -22365,8 +22552,15 @@ SELECT - 84 - - col0 FROM tab1 GROUP BY col0, col2 # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, col2 AS col1 FROM tab2 GROUP BY col2, col2 +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT + col0 AS col0 FROM tab0 GROUP BY col0, col2, col1 @@ -23123,8 +23317,9 @@ SELECT col1 * - CAST ( NULL AS INTEGER ) + 92 * - col1 / + + col1, - col1 / CAST ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, col1 FROM tab1 AS cor0 GROUP BY col1 HAVING NULL IS NOT NULL +---- query I rowsort label-3778 SELECT - col1 FROM tab1 AS cor0 GROUP BY col1 HAVING - col1 / - 94 * + CAST ( NULL AS INTEGER ) IS NOT NULL @@ -23175,8 +23370,15 @@ SELECT - ( + col1 ) FROM tab0 GROUP BY col0, col1, col1, col1 HAVING NOT - 41 IS # Datafusion - Expected - -79 # Datafusion - Expected - 87 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col0" at position 0 and "\(\- tab2\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, - col2 AS col0 FROM tab2 GROUP BY col2, col2 +---- +-58 +-79 +-87 +58 +79 +87 query I rowsort SELECT DISTINCT 82 + + col1 col1 FROM tab2 GROUP BY col1, col0 HAVING NOT + - col0 IS NULL @@ -24100,8 +24302,15 @@ SELECT col1 * + col0 AS col2 FROM tab1 GROUP BY col0, col1, col1 # Datafusion - Expected - 3256 # Datafusion - Expected - 60 # Datafusion - Expected - 3256 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(60\) AS col0" at position 0 and "Int64\(44\) \* Int64\(74\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + ( 60 ) AS col0, 44 * 74 AS col0 FROM tab1 cor0 GROUP BY col1, col0 +---- +3256 +3256 +3256 +60 +60 +60 query I rowsort label-3933 SELECT ALL ( CAST ( NULL AS INTEGER ) ) FROM tab1 cor0 GROUP BY col0 @@ -25274,8 +25483,15 @@ SELECT ALL - col0 FROM tab2 AS cor0 GROUP BY col0 HAVING NOT NULL NOT IN ( + + 8 # Datafusion - Expected - 59 # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, col1 FROM tab2 AS cor0 GROUP BY col1 +---- +41 +41 +59 +59 +61 +61 query I rowsort SELECT + + col2 AS col1 FROM tab1 AS cor0 GROUP BY col2, col2 HAVING NULL IS NULL @@ -26731,8 +26947,15 @@ SELECT ALL - col1 + + - ( - + 53 ) FROM tab0 GROUP BY col1 # Datafusion - Expected - 57 # Datafusion - Expected - 6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, col1 FROM tab1 GROUP BY col1 +---- +44 +44 +57 +57 +6 +6 query I rowsort SELECT + col1 FROM tab1 WHERE NOT 34 * - + col0 IN ( - ( + - col2 ) ) GROUP BY col1 HAVING NOT ( - 67 ) IS NOT NULL @@ -26756,8 +26979,15 @@ SELECT 44 FROM tab1 AS cor0 GROUP BY col1 # Datafusion - Expected - 33 # Datafusion - Expected - NULL # Datafusion - Expected - 33 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- CAST\(NULL AS Int32\)\) AS col2" at position 0 and "Int64\(33\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - CAST ( NULL AS INTEGER ) AS col2, 33 AS col2 FROM tab2 AS cor0 GROUP BY col1 +---- +33 +33 +33 +NULL +NULL +NULL query I rowsort SELECT - + 42 + col1 - + 33 + - - col1 / col1 AS col0 FROM tab0 AS cor0 GROUP BY col1 HAVING - col1 BETWEEN NULL AND NULL @@ -27135,8 +27365,15 @@ SELECT ALL + 5 FROM tab1 AS cor0 GROUP BY col0, col1 # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 AS col2, + col2 FROM tab0 GROUP BY col2, col0 +---- +24 +24 +38 +38 +79 +79 query I rowsort label-4434 SELECT + 59 / - col2 FROM tab2 GROUP BY col1, col2, col2 HAVING + + CAST ( - - 68 AS FLOAT8 ) * + ( - + ( - ( - 7 ) ) ) + + ( + AVG ( + col0 ) ) + 72 <= - - 13 @@ -27537,8 +27774,15 @@ SELECT ALL + - col1 * - col1 AS col2 FROM tab1 AS cor0 GROUP BY col1 # Datafusion - Expected - 71 # Datafusion - Expected - 8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col2, + col2 FROM tab1 GROUP BY col2 HAVING NULL IS NULL +---- +45 +45 +71 +71 +8 +8 query II rowsort SELECT 61 col2, - col0 AS col1 FROM tab0 GROUP BY col0 @@ -27618,8 +27862,15 @@ SELECT - - col0 / 19 * 7 + - col0 * + CAST ( - col0 AS FLOAT8 ) - + + CAST ( - C # Datafusion - Expected - -3249 # Datafusion - Expected - 6 # Datafusion - Expected - -36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 AS col0" at position 0 and "\(\- tab1\.col1\) \* tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 col0, - col1 * col1 AS col0 FROM tab1 GROUP BY col1 +---- +-1936 +-3249 +-36 +44 +57 +6 query I rowsort SELECT DISTINCT - - col2 AS col2 FROM tab0 cor0 GROUP BY col2 @@ -28249,8 +28500,15 @@ SELECT ALL - col2, + col2 + - - col2 AS col2 FROM tab0 GROUP BY col2 # Datafusion - Expected - 60 # Datafusion - Expected - -3 # Datafusion - Expected - 60 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) AS col0" at position 0 and "Int64\(60\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - 3 AS col0, + 60 col0 FROM tab1 GROUP BY col2 +---- +-3 +-3 +-3 +60 +60 +60 query I rowsort SELECT ALL ( - col1 ) FROM tab0 cor0 GROUP BY col1, col1, col1 @@ -28820,8 +29078,9 @@ SELECT DISTINCT + col1 - col1 / + + 7 FROM tab2 GROUP BY col1 HAVING NOT NULL IS ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL GROUP BY col2 HAVING SUM ( DISTINCT + col0 ) IS NULL +---- query I rowsort SELECT DISTINCT - 92 * - col2 FROM tab2 GROUP BY col2 @@ -29725,8 +29984,15 @@ 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\(Int64\(1\)\) AS count\(\*\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 79 AS col1, col2 * + col1 / + - COUNT ( * ) AS col1 FROM tab0 GROUP BY col2, col1 +---- +-1944 +0 +0 +79 +79 +79 query I rowsort SELECT DISTINCT - 71 + - + col2 AS col2 FROM tab0 GROUP BY col2 @@ -29796,8 +30062,15 @@ NULL # Datafusion - Expected - 1260 # Datafusion - Expected - 0 # Datafusion - Expected - 176 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) / \(\- Int64\(\-49\)\) AS col0" at position 0 and "cor0\.col2 \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 / - ( + ( + - 49 ) ) AS col0, + col2 * col0 AS col0 FROM tab1 AS cor0 GROUP BY col0, col2 +---- +-1 +0 +0 +1260 +176 +5822 query I rowsort SELECT + 0 FROM tab0 GROUP BY col2, col0 HAVING NOT NULL IS NULL @@ -29881,8 +30154,9 @@ SELECT DISTINCT col0 FROM tab1 AS cor0 GROUP BY col0 HAVING NOT + + 59 >= + 92 + 82 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(34\) AS col0" at position 0 and "\(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 34 AS col0, - col1 col0 FROM tab0 cor0 WHERE NOT + 49 * - col0 IS NOT NULL GROUP BY col1 HAVING NOT NULL IS NOT NULL +---- query I rowsort SELECT DISTINCT + + 92 + col0 FROM tab0 AS cor0 GROUP BY col0 @@ -30203,8 +30477,15 @@ SELECT ALL NULLIF ( - + col1, + 72 ) / - + col1 AS col0 FROM tab2 AS cor0 WHERE # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, + col0 FROM tab1 AS cor0 GROUP BY col0 HAVING ( 19 ) IS NOT NULL +---- +22 +22 +28 +28 +82 +82 query I rowsort label-4938 SELECT col2 FROM tab0 GROUP BY col2 HAVING NOT - 90 = - 33 / - COUNT ( DISTINCT - 60 ) @@ -31354,8 +31635,13 @@ 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\(Int64\(1\)\) AS count\(\*\)\) \- \(\- cor0\.col1\) \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col1 AS col0, - col1 + - COUNT ( * ) - + - col1 * + - col1 AS col0 FROM tab0 AS cor0 GROUP BY col1 +---- +-2 +-6643 +0 +81 query II rowsort label-5134 SELECT DISTINCT - - col2 AS col1, + 61 AS col2 FROM tab1 AS cor0 GROUP BY col2 HAVING ( - + col2 * + 23 + SUM ( DISTINCT + ( col2 ) ) NOT BETWEEN ( NULL ) AND COUNT ( DISTINCT 63 ) ) @@ -32524,8 +32810,15 @@ SELECT DISTINCT - 48 + - col1 * + 71 + + - 11 * - 27 FROM tab0 GROUP BY col1 HAV # Datafusion - Expected - -79 # Datafusion - Expected - 149 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(63\) \+ \(\- \(\- cor0\.col2\)\) / \(\- cor0\.col2\) AS col0" at position 0 and "\(\- cor0\.col2\) \* count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 / + COUNT ( * ) + 63 + - ( - col2 ) / - col2 AS col0, - col2 * + COUNT ( * ) AS col0 FROM tab2 AS cor0 GROUP BY col2 +---- +-58 +-79 +-87 +120 +141 +149 # 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: @@ -33162,8 +33455,15 @@ SELECT col0 AS col0 FROM tab2 AS cor0 GROUP BY col0, col0 HAVING - + 87 IS NULL # Datafusion - Expected - -43 # Datafusion - Expected - -83 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0, - col0 FROM tab0 AS cor0 GROUP BY col0, col0, col2 +---- +-26 +-26 +-43 +-43 +-83 +-83 query II rowsort SELECT + 75 AS col2, - 48 * - col1 FROM tab2 AS cor0 GROUP BY col1, col1 @@ -34583,8 +34883,15 @@ SELECT DISTINCT + - ( col1 ) AS col2 FROM tab2 AS cor0 GROUP BY col1 HAVING NOT # Datafusion - Expected - -96 # Datafusion - Expected - -60 # Datafusion - Expected - -96 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-3\) \* cor0\.col0 \- cor0\.col0 AS col0" at position 0 and "Int64\(\-96\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 3 * col0 - col0 AS col0, - 96 col0 FROM tab2 cor0 GROUP BY col0 +---- +-364 +-368 +-60 +-96 +-96 +-96 query I rowsort label-5674 SELECT - 57 - + + 31 + CAST ( NULL AS INTEGER ) FROM tab1 cor0 GROUP BY col0 @@ -34667,8 +34974,9 @@ SELECT ALL - + col2 * - col2 FROM tab0 AS cor0 GROUP BY col2 6241 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 FROM tab1 AS cor0 GROUP BY col2, col1 HAVING NOT - col2 * - col1 BETWEEN NULL AND NULL +---- query I rowsort SELECT + - col1 - + col1 AS col2 FROM tab1 AS cor0 GROUP BY col1, col1 @@ -34688,8 +34996,15 @@ SELECT - COUNT ( DISTINCT + + ( + + col0 ) ) - + 62 FROM tab0 GROUP BY col0, col # Datafusion - Expected - -30 # Datafusion - Expected - 1 # Datafusion - Expected - -30 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col0" at position 0 and "\(\- sum\(DISTINCT Int64\(30\)\)\) \* count\(\(\- \(\- cor0\.col1\)\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) AS col0, - SUM ( DISTINCT + + 30 ) * + COUNT ( ALL - - col1 ) col0 FROM tab2 AS cor0 GROUP BY col1 +---- +-30 +-30 +-30 +1 +1 +1 query II rowsort label-5690 SELECT DISTINCT MAX ( + 91 ), col0 / - SUM ( ALL 56 ) FROM tab0 AS cor0 WHERE NOT ( - col2 + + 18 ) < 7 * + + ( - - 72 ) GROUP BY col0 @@ -35323,8 +35638,15 @@ SELECT - + col0 AS col0 FROM tab0 cor0 GROUP BY col0, col0 # Datafusion - Expected - 59 # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, + col1 FROM tab2 GROUP BY col2, col1, col1 +---- +41 +41 +59 +59 +61 +61 query I rowsort SELECT ALL ( + col1 ) - col2 FROM tab2 GROUP BY col2, col1 @@ -35511,8 +35833,9 @@ SELECT col1 AS col0 FROM tab1 AS cor0 GROUP BY col1, col1, col1 6 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "\(\- cor0\.col2\) \+ Int64\(\-1\) / max\(cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + - col2 AS col1, - col2 + + - 1 / + MAX ( ALL + col2 ) AS col1 FROM tab0 AS cor0 WHERE + 66 >= col2 GROUP BY col2, col0, col2 HAVING NULL IS NOT NULL +---- query I rowsort SELECT DISTINCT col1 - - + col1 + + col1 + col1 AS col1 FROM tab0 GROUP BY col1 @@ -35751,8 +36074,9 @@ SELECT ALL - col1 AS col1 FROM tab2 GROUP BY col1, col0 HAVING NOT ( NULL ) > CO ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, col0 FROM tab1 GROUP BY col2, col0 HAVING NOT 13 * MIN ( col1 ) + + col2 * - 86 NOT IN ( col0 ) +---- query I rowsort label-5869 SELECT + col1 * + NULLIF ( + MIN ( col1 ), + 47 ) + col0 FROM tab0 cor0 GROUP BY col0, col1 @@ -36338,8 +36662,9 @@ SELECT - - SUM ( ALL 20 ) AS col2 FROM tab1 AS cor0 GROUP BY col1, col1 20 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / cor0\.col2 \+ cor0\.col2 / \(\- cor0\.col1\) AS col0" at position 0 and "Int64\(35\) \* \(\- Int64\(\-79\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 / + col2 + + col2 / - col1 AS col0, 35 * - - 79 AS col0 FROM tab0 AS cor0 GROUP BY col1, col2 HAVING NOT NULL IS NULL +---- query I rowsort label-5965 SELECT + ( - + NULLIF ( + 40, + col1 ) ) * + 69 - + - 87 + - + MAX ( - + 90 ) / + + col0 FROM tab1 AS cor0 GROUP BY col0, col1 HAVING NOT NULL IS NULL @@ -37523,8 +37848,15 @@ 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\(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\. +query RI valuesort SELECT DISTINCT COUNT ( * ) + + AVG ( ALL 54 ) AS col2, + 72 * + col1 AS col2 FROM tab1 GROUP BY col0, col1 +---- +3168 +4104 +432 +55 +55 +55 query I rowsort label-6163 SELECT DISTINCT - 58 + + COUNT ( * ) + - 1 + - + COUNT ( * ) FROM tab2 AS cor0 GROUP BY col1 HAVING + COUNT ( * ) IS NULL @@ -37732,8 +38064,9 @@ SELECT - COUNT ( * ) + + col0 + col0 FROM tab0 WHERE NOT + col0 + 33 NOT BETWEEN ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 \* cor0\.col0 \- Int64\(\-89\) AS col1" at position 0 and "Int64\(\-93\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col2 * col0 - - 89 col1, - 93 AS col1 FROM tab2 AS cor0 GROUP BY col0, col2 HAVING col0 + - + 4 BETWEEN COUNT ( * ) * - + 88 * + + ( col0 ) AND ( NULL ) +---- query I rowsort label-6200 SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 GROUP BY col2 HAVING NOT NULL IS NULL @@ -37989,8 +38322,15 @@ SELECT + - 84 FROM tab0 cor0 WHERE ( - - CAST ( - 68 AS INTEGER ) ) / 83 / + - 9 # Datafusion - Expected - -91 # Datafusion - Expected - -92 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\)" at position 0 and "\(\- tab2\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0, - col0 FROM tab2 GROUP BY col0 +---- +-15 +-15 +-91 +-91 +-92 +-92 query I rowsort SELECT - ( 36 ) - - col2 AS col2 FROM tab2 GROUP BY col0, col2 @@ -38365,8 +38705,15 @@ SELECT MIN ( + - 5 ) FROM tab2 AS cor0 GROUP BY col1 HAVING NULL IS NULL # Datafusion - Expected - 91 # Datafusion - Expected - 92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col0, col0 AS col0 FROM tab2 GROUP BY col0 +---- +15 +15 +91 +91 +92 +92 query I rowsort SELECT - ( - - col0 ) * - ( + 7 ) * - - 71 - + - col0 + 21 FROM tab0 GROUP BY col0 @@ -38518,8 +38865,13 @@ SELECT + col0 / - col0 AS col1 FROM tab0 AS cor0 GROUP BY col0 HAVING NULL IS NO # Datafusion - Expected - 50 # Datafusion - Expected - 2 # Datafusion - Expected - 50 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(50\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT COUNT ( * ) col2, + 50 AS col2 FROM tab0 cor0 GROUP BY col1, col1 +---- +1 +2 +50 +50 query I rowsort label-6326 SELECT col0 * + 48 * + col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 GROUP BY col0, col2 @@ -38621,8 +38973,15 @@ SELECT - 37 - + col2 * + col2 AS col0, 65 AS col1 FROM tab0 GROUP BY col2 HAVING # Datafusion - Expected - 71 # Datafusion - Expected - 8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2 AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col0, col2 AS col0 FROM tab1 GROUP BY col2 +---- +45 +45 +71 +71 +8 +8 query I rowsort SELECT - col0 + + 42 AS col0 FROM tab2 GROUP BY col0 HAVING NOT NULL IS NULL @@ -39179,8 +39538,15 @@ SELECT DISTINCT - + COUNT ( * ) FROM tab0 AS cor0 GROUP BY col1, col2 # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, + col2 FROM tab2 AS cor0 GROUP BY col1, col2 +---- +58 +58 +79 +79 +87 +87 # 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: @@ -39486,8 +39852,15 @@ SELECT col1 * - col1 + col1 FROM tab1 AS cor0 GROUP BY col1 HAVING NOT NULL IS N # Datafusion - Expected - 3249 # Datafusion - Expected - 89 # Datafusion - Expected - 36 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(89\) AS col0" at position 0 and "cor0\.col1 \* \(\- \(\- cor0\.col1\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + 89 AS col0, col1 * - - col1 col0 FROM tab1 AS cor0 GROUP BY col1 +---- +1936 +3249 +36 +89 +89 +89 query I rowsort label-6486 SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 GROUP BY col0, col2 HAVING - - COUNT ( * ) * + COALESCE ( - col2, - - col0, + col0 ) = NULL @@ -39626,8 +39999,9 @@ 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\(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\. +query IR valuesort 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: # Datafusion - Expected - -26 @@ -39636,8 +40010,15 @@ SELECT - COUNT ( * ) AS col1, col0 - + 4 - + 70 * + - CAST ( - - col0 AS FLOAT8 # Datafusion - Expected - 1 # Datafusion - Expected - -83 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, COUNT ( * ) col2 FROM tab0 GROUP BY col0, col1 +---- +-26 +-43 +-83 +1 +1 +1 query II rowsort label-6510 SELECT DISTINCT 68 + - + col2 * ( col0 ) + + - col2 * - + col2 AS col2, 18 FROM tab0 AS cor0 GROUP BY col0, col2 HAVING NOT + 89 + - CAST ( NULL AS FLOAT8 ) NOT IN ( + - ( + 35 ) ) @@ -40789,7 +41170,7 @@ SELECT col1 AS col2, - COUNT ( * ) * + col1 * 67 FROM tab1 GROUP BY col2, col0, # Postgresql - Postgres error: db error: ERROR: column "tab0.col2" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: skipif postgres -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CAST\(NULL AS Int32\) AS col2" at position 0 and "Int64\(\-66\) / \(\- tab0\.col1\) \* \(\- tab0\.col1\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: Error during planning: Column in HAVING must be in GROUP BY or an aggregate function: While expanding wildcard, column "tab0\.col2" must appear in the GROUP BY clause or must be part of an aggregate function, currently only "tab0\.col0, tab0\.col1" appears in the SELECT clause satisfies this requirement SELECT DISTINCT CAST ( NULL AS INTEGER ) col2, - 66 / - col1 * - col1 AS col2 FROM tab0 GROUP BY col0, col1 HAVING col1 + + col2 * - col0 NOT IN ( ( + CAST ( NULL AS INTEGER ) ) / 44 + - 73 ) query II rowsort label-6708 @@ -40885,8 +41266,9 @@ 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\(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\. +query II valuesort 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 SELECT - 31 * - col0 AS col2 FROM tab2 AS cor0 GROUP BY col0, col0 HAVING NULL IS NULL @@ -41354,8 +41736,15 @@ 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\(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\. +query II valuesort SELECT COUNT ( * ), + COUNT ( * ) FROM tab1 GROUP BY col0, col0 +---- +1 +1 +1 +1 +1 +1 query I rowsort SELECT + 15 * + - col0 AS col2 FROM tab1 WHERE - + col2 <= NULL GROUP BY col0 @@ -41482,8 +41871,15 @@ SELECT + col0 + + - 17 * - col0 FROM tab0 AS cor0 GROUP BY col0 # Datafusion - Expected - 43 # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, + col0 FROM tab0 GROUP BY col0 +---- +26 +26 +43 +43 +83 +83 query I rowsort SELECT ALL col2 - col2 FROM tab2 WHERE NOT col2 / + 32 <= NULL GROUP BY col2 @@ -41571,8 +41967,15 @@ SELECT ALL + col1 + - COUNT ( ALL - col1 ) AS col2, - COUNT ( * ) / + col1 AS co # Datafusion - Expected - -35 # Datafusion - Expected - 49 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(49\) AS col0" at position 0 and "cor0\.col1 \+ Int64\(\-35\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + 49 col0, + col1 + - 35 col0 FROM tab0 AS cor0 GROUP BY col2, col1 +---- +-35 +-35 +46 +49 +49 +49 query I rowsort SELECT ( + + col1 ) AS col2 FROM tab1 GROUP BY col2, col1 @@ -42392,8 +42795,15 @@ 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\(Int64\(1\)\) AS count\(\*\) / tab0\.col2 \* tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL ( - - COUNT ( - 77 ) ) * + col2 AS col1, + COUNT ( * ) / col2 * + col2 AS col1 FROM tab0 GROUP BY col2 +---- +0 +0 +0 +24 +38 +79 # 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: @@ -42769,8 +43179,15 @@ SELECT - col0 * - 41 * CAST ( NULL AS INTEGER ) + + + col0 AS col0 FROM tab0 GRO # Datafusion - Expected - NULL # Datafusion - Expected - -246 # Datafusion - Expected - NULL -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-41\) \* cor0\.col1 AS col1" at position 0 and "Int64\(88\) \+ cor0\.col1 \* CAST\(NULL AS Float64\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IR valuesort SELECT ALL - 41 * col1 col1, 88 + col1 * CAST ( NULL AS FLOAT8 ) AS col1 FROM tab1 AS cor0 GROUP BY col1, col0 +---- +-1804 +-2337 +-246 +NULL +NULL +NULL query I rowsort SELECT DISTINCT col0 * + col0 + + - ( ( - col0 ) ) AS col1 FROM tab0 AS cor0 GROUP BY col1, col0 @@ -44297,8 +44714,15 @@ SELECT DISTINCT col1 AS col2 FROM tab1 GROUP BY col1 HAVING col1 IS NOT NULL # Datafusion - Expected - 79 # Datafusion - Expected - 61 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col0, col2 col0 FROM tab2 AS cor0 GROUP BY col1, col2 +---- +41 +58 +59 +61 +79 +87 query II rowsort SELECT - - col0 AS col0, col0 AS col2 FROM tab1 AS cor0 GROUP BY col0, col0 @@ -44562,8 +44986,13 @@ SELECT ALL + + 51 + - + 36 + - COUNT ( * ) - + 32 FROM tab0 AS cor0 GROUP BY col # Datafusion - Expected - -81 # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 col1, ( + - col1 ) AS col1 FROM tab0 AS cor0 GROUP BY col1 +---- +-81 +-81 +0 +0 query I rowsort SELECT col1 FROM tab1 GROUP BY col1 HAVING NULL > - - col1 @@ -44843,8 +45272,15 @@ SELECT - COUNT ( * ) + 0 FROM tab1 AS cor0 GROUP BY col0 # Datafusion - Expected - -79 # Datafusion - Expected - -87 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "\(\- cor0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2, - col2 FROM tab2 AS cor0 GROUP BY col2 +---- +-58 +-58 +-79 +-79 +-87 +-87 query II rowsort label-7368 SELECT col0 AS col1, NULLIF ( + COUNT ( * ), col0 ) FROM tab0 GROUP BY col0 @@ -44904,8 +45340,15 @@ SELECT ALL + MIN ( + + col0 ) * - 52 * - col0 * + - col0 AS col1 FROM tab2 GROUP # Datafusion - Expected - 59 # Datafusion - Expected - 255 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 \+ \(\- sum\(Int64\(\-98\)\)\) \+ Int64\(96\) AS col0" at position 0 and "cor0\.col1 \* cor0\.col1 / cor0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 + - + SUM ( - 98 ) + + + 96 AS col0, col1 * col1 / + col1 AS col0 FROM tab2 AS cor0 GROUP BY col1 HAVING NULL IS NULL +---- +235 +253 +255 +41 +59 +61 query I rowsort label-7377 SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 GROUP BY col2 @@ -45093,8 +45536,9 @@ SELECT ALL - 56 AS col1 FROM tab1 AS cor0 WHERE ( NOT ( + 47 ) IS NOT NULL ) OR ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-92\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - 92 AS col2, - col0 col2 FROM tab1 AS cor0 GROUP BY col0 HAVING NULL >= NULL +---- query I rowsort SELECT - col0 * col0 AS col2 FROM tab2 cor0 GROUP BY col0 HAVING NOT ( NULL ) IS NOT NULL @@ -45458,8 +45902,9 @@ 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\(1\)\) AS count\(\*\) \* Int64\(\-91\) \+ Int64\(87\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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: @@ -45790,8 +46235,15 @@ NULL # Datafusion - Expected - -2156 # Datafusion - Expected - -82 # Datafusion - Expected - -6314 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col2" at position 0 and "\(\- tab1\.col0\) \* \(\- nullif\(\(\- coalesce\(Int64\(77\), Int64\(7\)\)\), tab1\.col0 \+ \(\- CAST\(NULL AS Int32\)\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 col2, - col0 * - NULLIF ( - COALESCE ( 77, 7 ), col0 + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 GROUP BY col2, col0 +---- +-1694 +-2156 +-22 +-28 +-6314 +-82 query I rowsort label-7533 SELECT + COUNT ( * ) + - COUNT ( * ) * + col0 + COUNT ( col0 ) / - - COUNT ( 58 ) AS col2 FROM tab2 AS cor0 GROUP BY col0, col0 @@ -46319,8 +46771,15 @@ SELECT ALL + col2 col2, 55 AS col0 FROM tab0 AS cor0 GROUP BY col2 # Datafusion - Expected - -25 # Datafusion - Expected - -97 # Datafusion - Expected - -25 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(11\)\) \+ avg\(Int64\(\-41\)\) \- Int64\(45\) AS col0" at position 0 and "Int64\(\-69\) \+ Int64\(44\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - + 11 + AVG ( + - 41 ) - 45 AS col0, - 69 + + 44 AS col0 FROM tab1 AS cor0 GROUP BY col1, col2 +---- +-25 +-25 +-25 +-97 +-97 +-97 query I rowsort SELECT ALL - 67 + col2 * + 20 FROM tab1 AS cor0 GROUP BY col2, col2 @@ -46347,8 +46806,15 @@ SELECT + col0 FROM tab1 GROUP BY col2, col0, col2 HAVING col2 IS NULL # Datafusion - Expected - -2052 # Datafusion - Expected - 1840 # Datafusion - Expected - -4266 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(92\) \* Int64\(20\) AS col0" at position 0 and "Int64\(\-54\) \* \(\- \(\- tab0\.col2\)\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT 92 * 20 AS col0, - 54 * - - col2 AS col0 FROM tab0 GROUP BY col2, col0 +---- +-1296 +-2052 +-4266 +1840 +1840 +1840 query I rowsort SELECT + col1 * - col1 FROM tab2 GROUP BY col1 HAVING NOT NULL IS NOT NULL @@ -46401,8 +46867,9 @@ SELECT 22 FROM tab0 GROUP BY col0, col1, col1 HAVING NOT + ( col1 ) IS NOT NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col1, + col1 AS col1 FROM tab0 GROUP BY col1 HAVING NOT + COUNT ( * ) IS NOT NULL +---- query II rowsort SELECT col2 AS col2, + col2 AS col0 FROM tab1 AS cor0 GROUP BY col2 @@ -47430,8 +47897,15 @@ SELECT DISTINCT - 18 + col2 FROM tab1 AS cor0 GROUP BY col0, col2 HAVING NOT - 8 # Datafusion - Expected - 52 # Datafusion - Expected - 1944 # Datafusion - Expected - 1 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(54\) \* cor0\.col1 \* cor0\.col1 AS col1" at position 0 and "Int64\(\-5\) \+ cor0\.col1 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + 54 * + col1 * col1 col1, - 5 + + col1 AS col1 FROM tab1 AS cor0 GROUP BY col1 HAVING NOT col1 IS NULL +---- +1 +104544 +175446 +1944 +39 +52 query I rowsort label-7802 SELECT DISTINCT - - COUNT ( * ) FROM tab2 AS cor0 GROUP BY col0, col2, col1 @@ -47745,8 +48219,15 @@ SELECT - col0 - - + col0 FROM tab0 AS cor0 GROUP BY col0 # Datafusion - Expected - -79 # Datafusion - Expected - -87 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\)" at position 0 and "\(\- tab2\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - ( + col2 ), - col2 FROM tab2 GROUP BY col2 +---- +-58 +-58 +-79 +-79 +-87 +-87 query I rowsort label-7853 SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 GROUP BY col2 HAVING NOT ( ( + MAX ( ALL + 44 ) + 66 NOT BETWEEN - - 81 AND + 93 + + + col2 - ( + - 77 ) + - + 79 ) ) @@ -48124,8 +48605,13 @@ 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\(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\. +query II valuesort SELECT DISTINCT ( - col1 ) + + COUNT ( * ) + + 13 AS col2, + col1 + - 13 AS col2 FROM tab0 GROUP BY col1 +---- +-13 +-67 +15 +68 query I rowsort label-7909 SELECT ALL 7 + + col0 AS col1 FROM tab2 WHERE NOT ( - CAST ( 61 AS FLOAT8 ) IS NOT NULL ) GROUP BY col0 HAVING NOT + col0 <> 9 * col0 + - - SUM ( + col2 ) * + - col0 + COUNT ( * ) + + COUNT ( * ) * + 94 @@ -48400,8 +48886,15 @@ SELECT ALL - col2 AS col2 FROM tab2 GROUP BY col2 HAVING NOT NULL NOT BETWEEN + # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -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 "tab2\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT MIN ( DISTINCT - - col2 ) AS col0, col2 AS col0 FROM tab2 GROUP BY col2 +---- +58 +58 +79 +79 +87 +87 query I rowsort label-7957 SELECT col2 * COUNT ( * ) AS col0 FROM tab0 GROUP BY col2 @@ -48684,8 +49177,15 @@ SELECT 42 * col0 AS col1, - col0 * + col0 + + 59 FROM tab1 GROUP BY col0, col0 H # Datafusion - Expected - -51 # Datafusion - Expected - 1 # Datafusion - Expected - 46 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- nullif\(Int64\(28\), \(\- tab2\.col0\) \+ Int64\(\-87\)\)\) / \(\- tab2\.col0\) AS col1" at position 0 and "tab2\.col1 \+ \(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - NULLIF ( + + 28, - col0 + + - 87 ) / + - col0 AS col1, col1 + - col0 AS col1 FROM tab2 GROUP BY col0, col2, col1 HAVING NOT - col0 > - 7 +---- +-32 +-51 +0 +0 +1 +46 query I rowsort label-8006 SELECT DISTINCT + COUNT ( * ) - + col1 + - 89 + - col2 * - - col1 FROM tab2 GROUP BY col1, col2 HAVING ( + col2 * - ( - 8 ) ) IS NULL @@ -49099,8 +49599,15 @@ SELECT col1 - - 47 + + COUNT ( * ) FROM tab2 GROUP BY col1 HAVING NOT NULL IS NU # Datafusion - Expected - 0 # Datafusion - Expected - -92 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col2" at position 0 and "Int64\(\-22\) / Int64\(\-41\) \* cor0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 AS col2, - 22 / + - 41 * + col0 AS col2 FROM tab2 AS cor0 GROUP BY col0 HAVING + SUM ( ALL - - col2 ) IS NOT NULL +---- +-15 +-91 +-92 +0 +0 +0 query I rowsort label-8075 SELECT DISTINCT ( + col2 ) + 42 AS col2 FROM tab0 AS cor0 GROUP BY col0, col2, col1 HAVING COUNT ( * ) NOT BETWEEN + + ( + - col0 ) * - + AVG ( ALL - col1 ) + + col1 - - + col1 + - + col1 AND NULL @@ -49140,8 +49647,15 @@ 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\(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\. +query II valuesort SELECT ALL COUNT ( * ) - col2 + + col2 AS col1, - COUNT ( * ) AS col1 FROM tab2 GROUP BY col2 +---- +-1 +-1 +-1 +1 +1 +1 query I rowsort SELECT 34 FROM tab2 GROUP BY col1 HAVING ( NULL ) IS NULL @@ -50620,8 +51134,9 @@ SELECT ALL + col0 AS col2 FROM tab2 AS cor0 GROUP BY col0 HAVING - CAST ( NULL A 92 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "Int64\(16\) \* \(\- max\(\(\- tab2\.col2\)\)\) \* tab2\.col2 \* \(\- \(\- Int64\(\-16\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, 16 * - MAX ( ALL - col2 ) * + + col2 * + - ( - - 16 ) AS col1 FROM tab2 WHERE NOT + CASE - col1 WHEN - ( + 14 ) THEN + 99 END IS NOT NULL GROUP BY col2 HAVING NOT ( NULL ) = - 22 + + col2 +---- # 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: @@ -50663,8 +51178,15 @@ SELECT 42 AS col1 FROM tab2 GROUP BY col0 # Datafusion - Expected - -59 # Datafusion - Expected - -61 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col1 AS col1, - col1 AS col1 FROM tab2 AS cor0 GROUP BY col1 +---- +-41 +-41 +-59 +-59 +-61 +-61 query I rowsort SELECT + col1 col1 FROM tab0 AS cor0 GROUP BY col1, col2, col2 @@ -50887,8 +51409,9 @@ SELECT - 11 + + col1 FROM tab0 GROUP BY col1, col1 70 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(Int64\(1\)\) AS count\(\*\) AS col1" at position 0 and "Int64\(0\) \* Int64\(\-69\) \* Int64\(53\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort 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 SELECT + col1 FROM tab1 GROUP BY col1, col2 HAVING NULL IS NULL diff --git a/data/sqlite/random/groupby/slt_good_8.slt b/data/sqlite/random/groupby/slt_good_8.slt index b80d492..a274cf5 100644 --- a/data/sqlite/random/groupby/slt_good_8.slt +++ b/data/sqlite/random/groupby/slt_good_8.slt @@ -39186,8 +39186,15 @@ SELECT DISTINCT + col2 col1 FROM tab2 GROUP BY tab2.col2 # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT cor0.col2, + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2 +---- +24 +24 +38 +38 +79 +79 query I rowsort SELECT ALL + cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1, col1 @@ -39390,8 +39397,15 @@ SELECT DISTINCT - cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.c # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT cor0.col0 AS col0, + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0 +---- +22 +22 +28 +28 +82 +82 query II rowsort SELECT ALL - col2 AS col0, tab2.col2 FROM tab2 GROUP BY tab2.col2 @@ -39469,8 +39483,13 @@ SELECT - cor0.col0 * + col0 FROM tab1 AS cor0 GROUP BY cor0.col0, col2 # Datafusion - Expected - -6561 # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col0" at position 0 and "cor0\.col1 \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - cor0.col1 AS col0, + cor0.col1 * - cor0.col1 col0 FROM tab0 AS cor0 GROUP BY cor0.col1 +---- +-6561 +-81 +0 +0 query I rowsort SELECT cor0.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col2, cor0.col0 @@ -40631,8 +40650,15 @@ SELECT DISTINCT col2 * - - cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY col2 # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + tab1.col0, + tab1.col0 FROM tab1 GROUP BY tab1.col0 +---- +22 +22 +28 +28 +82 +82 query I rowsort SELECT - cor0.col1 col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1 @@ -40904,8 +40930,15 @@ SELECT + cor0.col2 * + cor0.col2 FROM tab0 cor0 GROUP BY cor0.col2 # Datafusion - Expected - -28 # Datafusion - Expected - -82 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\)" at position 0 and "\(\- tab1\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0, - col0 FROM tab1 GROUP BY tab1.col0 +---- +-22 +-22 +-28 +-28 +-82 +-82 query I rowsort SELECT - cor0.col0 FROM tab2 AS cor0 GROUP BY col1, cor0.col0 @@ -41508,8 +41541,15 @@ SELECT DISTINCT cor0.col1 * cor0.col2 * + cor0.col0 FROM tab1 AS cor0 GROUP BY c # Datafusion - Expected - 71 # Datafusion - Expected - 8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + tab1.col2, + tab1.col2 FROM tab1 GROUP BY tab1.col2 +---- +45 +45 +71 +71 +8 +8 query I rowsort SELECT ALL - + col0 AS col2 FROM tab0 GROUP BY col0 HAVING ( NULL ) IS NULL @@ -41807,8 +41847,15 @@ SELECT + + AVG ( DISTINCT + - tab0.col0 ) AS col0 FROM tab0 GROUP BY tab0.col1 H # Datafusion - Expected - 81 # Datafusion - Expected - 83 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL cor0.col0 AS col2, cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1 +---- +0 +0 +26 +43 +81 +83 query I rowsort SELECT DISTINCT - cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY col1, cor0.col2 @@ -42297,8 +42344,15 @@ SELECT DISTINCT - col2 * - - cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.c # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + tab0.col2, tab0.col2 FROM tab0 GROUP BY col2 +---- +24 +24 +38 +38 +79 +79 query I rowsort SELECT DISTINCT col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1, col0 @@ -42509,8 +42563,15 @@ SELECT + cor0.col0 col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2 # Datafusion - Expected - -28 # Datafusion - Expected - -6 # Datafusion - Expected - -22 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - cor0.col1 AS col2, - cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0 +---- +-22 +-28 +-44 +-57 +-6 +-82 query I rowsort SELECT - cor0.col2 * cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2 @@ -42526,8 +42587,15 @@ SELECT - cor0.col2 * cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor # Datafusion - Expected - -79 # Datafusion - Expected - 81 # Datafusion - Expected - -24 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "avg\(cor0\.col1\) AS col0" at position 0 and "\(\- cor0\.col2\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT ALL AVG ( + cor0.col1 ) AS col0, - cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2 +---- +-24 +-38 +-79 +0 +0 +81 query I rowsort SELECT ALL - cor0.col1 - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1 @@ -42781,8 +42849,15 @@ SELECT ALL col2 AS col2 FROM tab2 AS cor0 GROUP BY col0, col2 # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, col2 AS col2 FROM tab2 GROUP BY col2 +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT col2 col0 FROM tab1 GROUP BY col2, col1 @@ -43212,8 +43287,15 @@ SELECT ALL + col0 FROM tab0 GROUP BY col0, col0 # Datafusion - Expected - 71 # Datafusion - Expected - 8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, col2 FROM tab1 GROUP BY col2 +---- +45 +45 +71 +71 +8 +8 query I rowsort SELECT col2 col2 FROM tab0 GROUP BY col0, col2 HAVING NOT col0 IS NOT NULL @@ -44358,8 +44440,15 @@ SELECT DISTINCT col2 + + col2 * + - col2 FROM tab0 GROUP BY col2 # Datafusion - Expected - 59 # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, + col1 AS col1 FROM tab2 GROUP BY col1, col2 +---- +41 +41 +59 +59 +61 +61 query I rowsort SELECT col1 FROM tab0 AS cor0 GROUP BY col2, col1 @@ -44375,8 +44464,15 @@ SELECT col1 FROM tab0 AS cor0 GROUP BY col2, col1 # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, col0 FROM tab1 GROUP BY col0, col2 +---- +22 +22 +28 +28 +82 +82 query I rowsort SELECT ALL - col1 FROM tab2 AS cor0 GROUP BY col1 HAVING NULL IS NULL @@ -45331,8 +45427,15 @@ SELECT - col0 / + col0 FROM tab2 GROUP BY col0 # Datafusion - Expected - 59 # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 FROM tab2 GROUP BY col1, col1 +---- +41 +41 +59 +59 +61 +61 query I rowsort SELECT + - col1 * - col1 FROM tab0 cor0 GROUP BY col1 @@ -45935,8 +46038,15 @@ SELECT DISTINCT - + col2 AS col1 FROM tab2 AS cor0 GROUP BY col2 HAVING ( NULL ) # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 FROM tab1 GROUP BY col0 +---- +22 +22 +28 +28 +82 +82 query I rowsort SELECT - col2 + - col2 FROM tab0 AS cor0 GROUP BY col2 HAVING ( col2 ) <> NULL @@ -46003,8 +46113,9 @@ SELECT ALL - + col2 / col2 FROM tab0 AS cor0 GROUP BY col2 -1 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col0, col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL GROUP BY col2, col1 +---- query I rowsort SELECT col2 FROM tab2 AS cor0 GROUP BY col2, col1 @@ -46845,8 +46956,15 @@ SELECT ALL - col2 AS col1 FROM tab2 cor0 GROUP BY col2 # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, col0 FROM tab1 GROUP BY col0 +---- +22 +22 +28 +28 +82 +82 query I rowsort SELECT ALL + col2 AS col2 FROM tab0 GROUP BY col2 @@ -46942,8 +47060,15 @@ SELECT ALL + + col2 AS col0 FROM tab0 AS cor0 GROUP BY col2 # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, + col2 FROM tab2 AS cor0 GROUP BY col2 +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT + + col0 col2 FROM tab0 AS cor0 GROUP BY col0 @@ -47360,8 +47485,9 @@ SELECT col1 FROM tab1 AS cor0 WHERE NULL IS NULL GROUP BY col1, col0 6 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 AS col1 FROM tab2 GROUP BY col1 HAVING ( NULL ) IS NOT NULL +---- query I rowsort SELECT + - col2 AS col2 FROM tab0 AS cor0 GROUP BY col2 HAVING NULL IS NULL @@ -49209,8 +49335,15 @@ SELECT DISTINCT col0 - - + col0 FROM tab1 AS cor0 GROUP BY col0 # Datafusion - Expected - 71 # Datafusion - Expected - 8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col2, + col2 FROM tab1 AS cor0 GROUP BY col2 +---- +45 +45 +71 +71 +8 +8 query I rowsort label-7400 SELECT + col0 / + + col0 FROM tab0 AS cor0 GROUP BY col2, col1, col0, col2 @@ -49928,8 +50061,15 @@ SELECT + + col1 FROM tab0 AS cor0 GROUP BY col1 # Datafusion - Expected - 43 # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, col0 AS col0 FROM tab0 GROUP BY col0 +---- +26 +26 +43 +43 +83 +83 query I rowsort SELECT ALL + col2 FROM tab2 AS cor0 GROUP BY col2 @@ -50766,8 +50906,15 @@ SELECT ALL col1 AS col0 FROM tab2 GROUP BY col1 # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, + col2 FROM tab2 GROUP BY col1, col2 +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT - col0 * + + col0 FROM tab0 AS cor0 GROUP BY col0, col0 @@ -52688,8 +52835,15 @@ SELECT col0 AS col0 FROM tab1 GROUP BY col0, col1 HAVING NULL IS NOT NULL # Datafusion - Expected - -182 # Datafusion - Expected - -92 # Datafusion - Expected - -184 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "\(\- cor0\.col0\) \+ \(\- cor0\.col0\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col0, - col0 + + - col0 AS col0 FROM tab2 AS cor0 GROUP BY col0 +---- +-15 +-182 +-184 +-30 +-91 +-92 query I rowsort SELECT - col0 + + col0 AS col2 FROM tab1 cor0 GROUP BY col0 @@ -52968,8 +53122,15 @@ SELECT ALL - + col2 - + col2 FROM tab2 AS cor0 GROUP BY col2 # Datafusion - Expected - 91 # Datafusion - Expected - 92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0, col0 AS col0 FROM tab2 AS cor0 GROUP BY col0 +---- +15 +15 +91 +91 +92 +92 query I rowsort SELECT - col2 AS col1 FROM tab0 AS cor0 GROUP BY col2 HAVING col2 >= NULL @@ -54123,8 +54284,15 @@ SELECT - col1 FROM tab1 GROUP BY col0, col2, col1 # Datafusion - Expected - -91 # Datafusion - Expected - 87 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "\(\- tab2\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 col1, - col0 AS col1 FROM tab2 GROUP BY col0, col2 +---- +-15 +-91 +-92 +58 +79 +87 query I rowsort SELECT ALL + col0 col1 FROM tab2 AS cor0 GROUP BY col0, col0 @@ -54253,8 +54421,9 @@ SELECT - col0 FROM tab2 GROUP BY col2, col0 HAVING NULL IS NULL -92 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 \* tab0\.col2 AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 * + col2 AS col0, col2 col0 FROM tab0 WHERE + col0 IS NULL GROUP BY col2 +---- query I rowsort SELECT ALL - col0 AS col2 FROM tab2 cor0 GROUP BY col0 HAVING NOT NULL > NULL @@ -54617,8 +54786,15 @@ SELECT - col1 FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL ) GROUP BY col1 HAVING # Datafusion - Expected - 57 # Datafusion - Expected - 6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 AS col1 FROM tab1 GROUP BY col1 +---- +44 +44 +57 +57 +6 +6 query I rowsort SELECT - - col2 FROM tab0 AS cor0 GROUP BY col2 @@ -54958,8 +55134,13 @@ SELECT ALL - col0 * - col2 FROM tab1 AS cor0 GROUP BY col0, col2 # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 AS col1, + col1 FROM tab0 GROUP BY col1 +---- +0 +0 +81 +81 query I rowsort SELECT DISTINCT + col0 FROM tab0 AS cor0 GROUP BY col0, col1, col0 @@ -55214,8 +55395,15 @@ SELECT ALL + col1 FROM tab2 AS cor0 GROUP BY col1, col2 # Datafusion - Expected - 59 # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 FROM tab2 GROUP BY col0, col1 +---- +41 +41 +59 +59 +61 +61 query I rowsort SELECT - col2 AS col1 FROM tab1 AS cor0 GROUP BY col2 @@ -55725,8 +55913,15 @@ SELECT + col2 + col2 / - + col2 FROM tab1 GROUP BY col2 # Datafusion - Expected - 59 # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col1, + col1 FROM tab2 AS cor0 GROUP BY col1 +---- +41 +41 +59 +59 +61 +61 query I rowsort SELECT ALL - col2 * - - col2 FROM tab0 GROUP BY col2 @@ -55897,8 +56092,15 @@ SELECT ALL col0 col0 FROM tab0 cor0 GROUP BY col0 # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 FROM tab1 GROUP BY col0, col0, col2 +---- +22 +22 +28 +28 +82 +82 query I rowsort SELECT ALL - + col1 FROM tab0 AS cor0 GROUP BY col0, col1 @@ -55922,8 +56124,15 @@ SELECT + col0 AS col0 FROM tab0 AS cor0 GROUP BY col0 HAVING NOT NULL IS NULL # Datafusion - Expected - 59 # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, + col1 FROM tab2 AS cor0 GROUP BY col1 +---- +41 +41 +59 +59 +61 +61 query I rowsort SELECT col2 AS col1 FROM tab0 GROUP BY col2, col2 @@ -57024,8 +57233,15 @@ SELECT col2 AS col0 FROM tab0 GROUP BY col2, col0 # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2 AS col1" at position 0 and "tab2\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, col2 AS col1 FROM tab2 GROUP BY col2 +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT - col0 - col2 AS col1 FROM tab1 AS cor0 GROUP BY col2, col0 @@ -57489,8 +57705,15 @@ SELECT DISTINCT - col0 col2 FROM tab0 AS cor0 GROUP BY col0, col0 # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 FROM tab1 cor0 GROUP BY col0 +---- +22 +22 +28 +28 +82 +82 query I rowsort SELECT DISTINCT - + col0 FROM tab2 AS cor0 GROUP BY col0 HAVING NOT NULL IS NOT NULL @@ -57955,8 +58178,15 @@ SELECT + col1 col2 FROM tab0 GROUP BY col1, col0 # Datafusion - Expected - 91 # Datafusion - Expected - 92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, col0 col0 FROM tab2 GROUP BY col0 +---- +15 +15 +91 +91 +92 +92 query I rowsort SELECT + col0 FROM tab1 GROUP BY col0 HAVING NULL IS NOT NULL @@ -58380,8 +58610,15 @@ SELECT ALL - col2 AS col2 FROM tab0 GROUP BY col0, col2 # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, col2 FROM tab2 GROUP BY col2 +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT + - col2 AS col2 FROM tab2 AS cor0 GROUP BY col0, col2 @@ -58446,8 +58683,15 @@ SELECT + - col2 FROM tab1 AS cor0 GROUP BY col2, col1 HAVING NULL IS NULL # Datafusion - Expected - 0 # Datafusion - Expected - 61 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1 AS col0" at position 0 and "tab2\.col1 \+ \(\- tab2\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, col1 + - col1 AS col0 FROM tab2 GROUP BY col1 +---- +0 +0 +0 +41 +59 +61 query I rowsort SELECT DISTINCT - col2 * + - col2 FROM tab1 GROUP BY col2, col0 @@ -59336,8 +59580,13 @@ SELECT - col1 AS col1 FROM tab1 GROUP BY col0, col1, col1, col1 # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, col1 FROM tab0 AS cor0 GROUP BY col1 +---- +0 +0 +81 +81 query I rowsort SELECT + - col2 AS col2 FROM tab1 AS cor0 GROUP BY col1, col2, col0 @@ -59415,8 +59664,15 @@ SELECT DISTINCT col1 AS col2 FROM tab2 GROUP BY col1, col1 # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col0 AS col0, col0 FROM tab1 AS cor0 GROUP BY col0, col0 +---- +22 +22 +28 +28 +82 +82 query I rowsort SELECT ALL - - col2 FROM tab0 AS cor0 GROUP BY col2 @@ -60482,8 +60738,15 @@ SELECT DISTINCT - col2 FROM tab2 AS cor0 GROUP BY col0, col2 # Datafusion - Expected - 57 # Datafusion - Expected - 6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col1, + col1 FROM tab1 AS cor0 GROUP BY col1 +---- +44 +44 +57 +57 +6 +6 query I rowsort SELECT DISTINCT col2 * col2 AS col0 FROM tab1 GROUP BY col2, col2 @@ -60975,8 +61238,13 @@ SELECT col0 FROM tab1 AS cor0 GROUP BY col1, col1, col0 # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 col1, col1 AS col1 FROM tab0 GROUP BY col1, col1 +---- +0 +0 +81 +81 query I rowsort SELECT DISTINCT + + col2 AS col2 FROM tab1 AS cor0 GROUP BY col2 @@ -62617,8 +62885,15 @@ SELECT - col2 AS col1 FROM tab1 AS cor0 GROUP BY col0, col2 # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, + col2 col2 FROM tab0 AS cor0 GROUP BY col2 +---- +24 +24 +38 +38 +79 +79 query I rowsort SELECT ALL col0 * col0 AS col2 FROM tab1 WHERE NULL IS NOT NULL GROUP BY col0 @@ -62716,8 +62991,15 @@ SELECT + col2 AS col0 FROM tab0 GROUP BY col2, col2 # Datafusion - Expected - 43 # Datafusion - Expected - -83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, col0 col2 FROM tab0 GROUP BY col0, col1 +---- +-26 +-43 +-83 +26 +43 +83 query I rowsort SELECT + col0 + col1 AS col2 FROM tab0 AS cor0 GROUP BY col0, col1 @@ -62876,8 +63158,15 @@ SELECT + col0 + + - col0 AS col2 FROM tab0 GROUP BY col0 HAVING NULL IS NULL # Datafusion - Expected - 57 # Datafusion - Expected - 6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, col1 AS col1 FROM tab1 cor0 GROUP BY col1, col1 +---- +44 +44 +57 +57 +6 +6 query I rowsort SELECT ALL - + col1 FROM tab0 AS cor0 GROUP BY col1, col1 @@ -63115,8 +63404,15 @@ SELECT col0 + col0 * + col0 / + col0 AS col0 FROM tab2 GROUP BY col0 # Datafusion - Expected - 57 # Datafusion - Expected - 6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, + col1 FROM tab1 GROUP BY col1 +---- +44 +44 +57 +57 +6 +6 query I rowsort SELECT ALL - - col0 FROM tab2 AS cor0 GROUP BY col0 @@ -65248,8 +65544,13 @@ SELECT - col2 FROM tab1 WHERE NULL IS NOT NULL GROUP BY col2, col2 # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col1, col1 FROM tab0 AS cor0 GROUP BY col1 +---- +0 +0 +81 +81 query I rowsort SELECT - col0 * - col0 FROM tab1 GROUP BY col0 HAVING NOT NULL IS NOT NULL @@ -65829,8 +66130,15 @@ SELECT col1 AS col0 FROM tab1 GROUP BY col1, col2 # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 FROM tab0 AS cor0 GROUP BY col2 +---- +24 +24 +38 +38 +79 +79 query I rowsort label-9914 SELECT DISTINCT col2 / + + col2 FROM tab1 AS cor0 GROUP BY col2 HAVING NOT NULL IS NOT NULL @@ -66104,8 +66412,15 @@ SELECT DISTINCT + - col2 * + col2 AS col1, - col2 AS col2 FROM tab0 AS cor0 GROU # Datafusion - Expected - 57 # Datafusion - Expected - 6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, col1 FROM tab1 GROUP BY col1 +---- +44 +44 +57 +57 +6 +6 query I rowsort SELECT + col1 + col1 AS col2 FROM tab1 AS cor0 GROUP BY col1 diff --git a/data/sqlite/random/groupby/slt_good_9.slt b/data/sqlite/random/groupby/slt_good_9.slt index e5ae98b..e502787 100644 --- a/data/sqlite/random/groupby/slt_good_9.slt +++ b/data/sqlite/random/groupby/slt_good_9.slt @@ -298,8 +298,15 @@ SELECT DISTINCT - + col0 AS col1 FROM tab1 AS cor0 GROUP BY col0, col1 # Datafusion - Expected - 57 # Datafusion - Expected - 6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, + col1 FROM tab1 AS cor0 GROUP BY col1 +---- +44 +44 +57 +57 +6 +6 query I rowsort SELECT DISTINCT col0 AS col2 FROM tab0 GROUP BY col0, col2 @@ -430,8 +437,15 @@ SELECT col1 FROM tab0 GROUP BY col1 HAVING ( NULL ) IS NOT NULL # Datafusion - Expected - -59 # Datafusion - Expected - -61 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\)" at position 0 and "\(\- tab2\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1, - col1 FROM tab2 GROUP BY col1 +---- +-41 +-41 +-59 +-59 +-61 +-61 query I rowsort SELECT col1 * + col0 FROM tab1 GROUP BY col2, col0, col1 @@ -2047,8 +2061,15 @@ SELECT DISTINCT + col2 AS col1, - col2 FROM tab1 GROUP BY col2, col2 # Datafusion - Expected - 43 # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, col0 AS col0 FROM tab0 GROUP BY col0, col0 +---- +26 +26 +43 +43 +83 +83 query I rowsort SELECT ALL + col0 AS col2 FROM tab2 GROUP BY col0, col0 @@ -3356,8 +3377,15 @@ SELECT ALL + + col0 FROM tab1 AS cor0 GROUP BY col0, col0 # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, + col2 AS col2 FROM tab0 GROUP BY col0, col2 +---- +24 +24 +38 +38 +79 +79 query I rowsort SELECT ALL - col2 AS col1 FROM tab1 GROUP BY col2 @@ -3533,8 +3561,13 @@ SELECT - + col1 * + col1 col2 FROM tab0 WHERE NOT NULL IS NOT NULL GROUP BY col1 # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1 AS col1, col1 FROM tab0 AS cor0 GROUP BY col1 +---- +0 +0 +81 +81 query I rowsort SELECT DISTINCT col0 * col0 col1 FROM tab2 GROUP BY col0, col1 HAVING - col1 / col0 IS NOT NULL @@ -4461,8 +4494,15 @@ SELECT + col0 AS col2 FROM tab2 GROUP BY col0 HAVING NULL IS NOT NULL # Datafusion - Expected - -3249 # Datafusion - Expected - -82 # Datafusion - Expected - -1936 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col1 \* \(\- cor0\.col1\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col0 AS col0, col1 * - col1 col0 FROM tab1 AS cor0 GROUP BY col1, col0 +---- +-1936 +-22 +-28 +-3249 +-36 +-82 query I rowsort SELECT ALL - col2 FROM tab2 AS cor0 GROUP BY col2, col2 @@ -4651,8 +4691,15 @@ SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 GROUP BY col2, col0 # Datafusion - Expected - 43 # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0, + col0 FROM tab0 GROUP BY col0 +---- +26 +26 +43 +43 +83 +83 query I rowsort SELECT ALL - + col2 FROM tab1 AS cor0 GROUP BY col2, col2, col0 @@ -4769,8 +4816,15 @@ SELECT ALL col2 FROM tab2 AS cor0 GROUP BY col1, col2 # Datafusion - Expected - 43 # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, + col0 FROM tab0 AS cor0 GROUP BY col0 +---- +26 +26 +43 +43 +83 +83 query I rowsort SELECT col1 AS col1 FROM tab2 GROUP BY col2, col1 HAVING NOT NULL NOT BETWEEN NULL AND NULL @@ -5013,8 +5067,15 @@ SELECT col0 + + col0 AS col2 FROM tab1 GROUP BY col0 # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 FROM tab1 GROUP BY col0, col0 +---- +22 +22 +28 +28 +82 +82 query I rowsort SELECT ALL - col1 AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND NULL GROUP BY col1 @@ -5416,8 +5477,15 @@ SELECT ALL + col0 col2 FROM tab2 AS cor0 GROUP BY col0 # Datafusion - Expected - 71 # Datafusion - Expected - -8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col0" at position 0 and "cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col0, + col2 AS col0 FROM tab1 AS cor0 GROUP BY col2 +---- +-45 +-71 +-8 +45 +71 +8 query I rowsort SELECT - col0 * col0 + - col0 FROM tab1 AS cor0 GROUP BY col0 HAVING col0 IS NULL @@ -5540,8 +5608,15 @@ SELECT ALL - col0 AS col2 FROM tab2 GROUP BY col0, col0 # Datafusion - Expected - 59 # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col1, + col1 FROM tab2 AS cor0 GROUP BY col1 HAVING NOT NULL IS NOT NULL +---- +41 +41 +59 +59 +61 +61 query I rowsort SELECT col1 col1 FROM tab2 GROUP BY col1, col1 @@ -6633,8 +6708,15 @@ SELECT - col0 + + col0 + col0 AS col1 FROM tab0 GROUP BY col0 # Datafusion - Expected - 59 # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1, col1 AS col1 FROM tab2 GROUP BY col1 +---- +41 +41 +59 +59 +61 +61 query I rowsort SELECT DISTINCT col1 FROM tab2 GROUP BY col0, col1, col0 HAVING ( NULL ) IS NULL @@ -7817,8 +7899,15 @@ SELECT col1 col0 FROM tab0 cor0 GROUP BY col1, col1 # Datafusion - Expected - 91 # Datafusion - Expected - 92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 FROM tab2 GROUP BY col0 +---- +15 +15 +91 +91 +92 +92 query I rowsort SELECT + + col0 AS col0 FROM tab2 cor0 GROUP BY col0 HAVING NOT ( NULL ) IS NULL @@ -7921,8 +8010,15 @@ SELECT col2 + + col2 FROM tab0 GROUP BY col2 # Datafusion - Expected - 38 # Datafusion - Expected - -79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(\(\- \(\- cor0\.col2\)\)\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT DISTINCT + - AVG ( ALL - - col2 ) AS col1, col2 AS col1 FROM tab0 AS cor0 GROUP BY col2 +---- +-24 +-38 +-79 +24 +38 +79 query I rowsort SELECT - col0 + - + col0 + - col0 FROM tab0 GROUP BY col0 @@ -8142,8 +8238,15 @@ SELECT + col1 AS col0 FROM tab1 GROUP BY col1, col1 # Datafusion - Expected - 56 # Datafusion - Expected - -82 # Datafusion - Expected - 164 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col1" at position 0 and "tab1\.col0 \+ tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col1, col0 + col0 AS col1 FROM tab1 GROUP BY col0, col0 +---- +-22 +-28 +-82 +164 +44 +56 query I rowsort SELECT ALL + col0 FROM tab0 GROUP BY col0, col1 @@ -8223,8 +8326,15 @@ SELECT DISTINCT - - col0 FROM tab0 AS cor0 GROUP BY col0, col2 # Datafusion - Expected - 43 # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, + col0 FROM tab0 cor0 GROUP BY col0 +---- +26 +26 +43 +43 +83 +83 query I rowsort SELECT DISTINCT + col0 / - col0 * + col0 - col0 AS col0 FROM tab0 AS cor0 GROUP BY col0 HAVING NOT NULL IS NULL @@ -8288,8 +8398,15 @@ SELECT col2, - col2 col1 FROM tab1 GROUP BY col2 # Datafusion - Expected - 43 # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 FROM tab0 AS cor0 GROUP BY col0 +---- +26 +26 +43 +43 +83 +83 query I rowsort SELECT ALL col0 * - col0 / - - col0 FROM tab2 AS cor0 GROUP BY col1, col0 HAVING NULL IS NOT NULL @@ -8342,8 +8459,15 @@ SELECT col0, + col0 AS col2 FROM tab2 GROUP BY col0 # Datafusion - Expected - 61 # Datafusion - Expected - -82 # Datafusion - Expected - 41 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\) \+ \(\- tab2\.col1\) AS col2" at position 0 and "tab2\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 + - + col1 AS col2, col1 AS col2 FROM tab2 GROUP BY col1 +---- +-118 +-122 +-82 +41 +59 +61 query I rowsort SELECT ALL + col0 FROM tab0 AS cor0 GROUP BY col0, col2 @@ -8608,8 +8732,9 @@ SELECT ALL - col0 col1 FROM tab1 AS cor0 GROUP BY col0, col1, col0 -82 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2, + col2 FROM tab0 WHERE NULL IS NOT NULL GROUP BY col2, col2 +---- # Datafusion - Datafusion expected results: # Datafusion - Expected - 41 @@ -8618,8 +8743,15 @@ SELECT + + col2, + col2 FROM tab0 WHERE NULL IS NOT NULL GROUP BY col2, col2 # Datafusion - Expected - 59 # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col1, + col1 FROM tab2 GROUP BY col0, col1 +---- +41 +41 +59 +59 +61 +61 query I rowsort SELECT DISTINCT - col0 col1 FROM tab0 GROUP BY col0, col2 @@ -8855,8 +8987,15 @@ SELECT col0 AS col0, col0 AS col1 FROM tab0 AS cor0 GROUP BY col0 # Datafusion - Expected - -43 # Datafusion - Expected - -83 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + - col0, - col0 FROM tab0 AS cor0 GROUP BY col0 +---- +-26 +-26 +-43 +-43 +-83 +-83 query I rowsort SELECT DISTINCT - col2 FROM tab0 GROUP BY col0, col2, col1 @@ -9113,8 +9252,15 @@ SELECT + col1 FROM tab0 WHERE NOT NULL IS NULL GROUP BY col1 # Datafusion - Expected - -28 # Datafusion - Expected - 1 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 / cor0\.col2 AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2 / col2 AS col1, - col0 AS col1 FROM tab1 AS cor0 GROUP BY col0, col2 +---- +-22 +-28 +-82 +1 +1 +1 query I rowsort SELECT - col0 AS col1 FROM tab0 cor0 GROUP BY col0 HAVING NULL IS NULL @@ -9746,8 +9892,15 @@ SELECT - col1 AS col2 FROM tab0 GROUP BY col1, col0 # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col2" at position 0 and "tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col2, col0 AS col2 FROM tab1 GROUP BY col0, col0 +---- +22 +22 +28 +28 +82 +82 query I rowsort SELECT DISTINCT col0 col2 FROM tab2 GROUP BY col0 @@ -10101,8 +10254,15 @@ SELECT ALL col0 + - col0 AS col2 FROM tab1 AS cor0 GROUP BY col0, col0 # Datafusion - Expected - 71 # Datafusion - Expected - 8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, col2 FROM tab1 GROUP BY col2 +---- +45 +45 +71 +71 +8 +8 query I rowsort SELECT - col2 AS col1 FROM tab0 AS cor0 GROUP BY col2, col2 @@ -10157,8 +10317,15 @@ SELECT ALL + col0 AS col1 FROM tab2 AS cor0 GROUP BY col0, col2 # Datafusion - Expected - 0 # Datafusion - Expected - 79 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col0, col1 AS col0 FROM tab0 GROUP BY col1, col2 HAVING NOT NULL IS NOT NULL +---- +0 +0 +24 +38 +79 +81 query I rowsort SELECT DISTINCT col1 AS col1 FROM tab0 GROUP BY col1 HAVING NOT ( NULL ) IS NULL @@ -10189,8 +10356,15 @@ SELECT DISTINCT col0 col1 FROM tab2 AS cor0 GROUP BY col0 HAVING NOT NULL <= NUL # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2 AS col2, col2 FROM tab0 GROUP BY col2, col1 +---- +24 +24 +38 +38 +79 +79 query I rowsort SELECT DISTINCT col0 + + col1 FROM tab0 GROUP BY col0, col1, col0 @@ -10631,8 +10805,15 @@ SELECT col1 * col1 FROM tab0 GROUP BY col1 # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col0" at position 0 and "tab0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 col0, col2 AS col0 FROM tab0 GROUP BY col2 +---- +24 +24 +38 +38 +79 +79 # Datafusion - Datafusion expected results: # Datafusion - Expected - -44 @@ -10641,8 +10822,15 @@ SELECT ALL col2 col0, col2 AS col0 FROM tab0 GROUP BY col2 # Datafusion - Expected - 57 # Datafusion - Expected - -6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col1\) AS col0" at position 0 and "tab1\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col0, col1 AS col0 FROM tab1 GROUP BY col1 +---- +-44 +-57 +-6 +44 +57 +6 query I rowsort SELECT + col0 FROM tab2 AS cor0 GROUP BY col2, col0 @@ -11253,8 +11441,15 @@ SELECT ALL + col0 AS col2 FROM tab1 AS cor0 GROUP BY col0 # Datafusion - Expected - 784 # Datafusion - Expected - -82 # Datafusion - Expected - 6724 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col0" at position 0 and "cor0\.col0 \* cor0\.col0 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - + col0 AS col0, col0 * + col0 AS col0 FROM tab1 AS cor0 GROUP BY col0 +---- +-22 +-28 +-82 +484 +6724 +784 query I rowsort SELECT DISTINCT col0 FROM tab0 AS cor0 GROUP BY col2, col0 HAVING NULL IS NOT NULL @@ -11514,8 +11709,15 @@ SELECT ALL col1 AS col1 FROM tab2 GROUP BY col0, col1 # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col2, col2 FROM tab2 cor0 GROUP BY col2 +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT DISTINCT - col0 * + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL GROUP BY col2, col0 @@ -11547,8 +11749,9 @@ SELECT DISTINCT + col0 FROM tab0 WHERE NOT NULL IS NULL GROUP BY col1, col0 ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, + col0 AS col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL GROUP BY col0 +---- query I rowsort SELECT + col0 AS col1 FROM tab0 GROUP BY col2, col0 HAVING NOT + col2 IS NOT NULL @@ -17131,8 +17334,9 @@ SELECT + - col2 AS col2 FROM tab2 AS cor0 GROUP BY col2 HAVING NOT NULL IS NOT N -87 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, col1 FROM tab0 GROUP BY col1 HAVING NOT NULL IS NULL +---- query I rowsort SELECT DISTINCT - col1 col1 FROM tab1 GROUP BY col1, col1 @@ -17573,8 +17777,15 @@ SELECT ALL col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL GROUP BY col0 # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, + col2 FROM tab0 AS cor0 WHERE - col1 <> col0 GROUP BY col2, col2 HAVING NULL IS NULL +---- +24 +24 +38 +38 +79 +79 query I rowsort SELECT DISTINCT - col1 + col1 FROM tab2 WHERE ( NULL ) IS NULL GROUP BY col1 @@ -18529,8 +18740,15 @@ SELECT col0 FROM tab1 cor0 GROUP BY col1, col0 # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, col0 FROM tab1 GROUP BY col0 +---- +22 +22 +28 +28 +82 +82 # 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: @@ -19275,8 +19493,15 @@ SELECT + col0 / - col0 AS col0 FROM tab0 AS cor0 WHERE + col2 IS NULL GROUP BY c # Datafusion - Expected - -91 # Datafusion - Expected - 92 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- avg\(\(\- cor0\.col0\)\)\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query RI valuesort SELECT - + AVG ( ALL - col0 ) AS col1, - col0 AS col1 FROM tab2 AS cor0 GROUP BY col0 +---- +-15 +-91 +-92 +15 +91 +92 query I rowsort SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE + col1 IS NULL GROUP BY col1, col1 HAVING ( NULL ) IS NULL @@ -20146,8 +20371,15 @@ SELECT ALL - - col2 + - col0 FROM tab2 cor0 GROUP BY col2, col0 # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 FROM tab0 GROUP BY col2 +---- +24 +24 +38 +38 +79 +79 query I rowsort SELECT + col0 AS col0 FROM tab1 GROUP BY col0 HAVING NULL IS NOT NULL @@ -20800,8 +21032,15 @@ SELECT col1 + - + col1 AS col0 FROM tab2 AS cor0 GROUP BY col1 HAVING NOT NULL I # Datafusion - Expected - 71 # Datafusion - Expected - 8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 AS col2, col2 FROM tab1 GROUP BY col2 +---- +45 +45 +71 +71 +8 +8 query I rowsort SELECT col0 AS col0 FROM tab2 GROUP BY col0 HAVING NOT NULL IS NULL @@ -21118,8 +21357,15 @@ SELECT col2 + + + col2 - + - col2 AS col0 FROM tab0 GROUP BY col2 # Datafusion - Expected - -79 # Datafusion - Expected - -87 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col2\)" at position 0 and "\(\- tab2\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2, - col2 FROM tab2 GROUP BY col2 +---- +-58 +-58 +-79 +-79 +-87 +-87 query I rowsort SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 GROUP BY col0 HAVING NOT NULL IS NULL @@ -21347,8 +21593,9 @@ SELECT ALL col2 + col2 AS col2 FROM tab1 GROUP BY col2, col0 90 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, col2 FROM tab0 GROUP BY col2, col2 HAVING NULL IS NOT NULL +---- query I rowsort SELECT + col2 AS col2 FROM tab1 AS cor0 GROUP BY col2, col2 @@ -21616,8 +21863,13 @@ SELECT + + col0 + - - col0 FROM tab0 WHERE NULL IS NOT NULL GROUP BY col0 # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, + col1 FROM tab0 GROUP BY col1, col1 +---- +0 +0 +81 +81 query I rowsort SELECT col1 AS col1 FROM tab2 GROUP BY col2, col1 HAVING NOT NULL IS NULL @@ -22370,8 +22622,9 @@ SELECT - col0 FROM tab1 WHERE NOT NULL IS NOT NULL GROUP BY col0, col2 -82 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1, + col1 FROM tab2 GROUP BY col1 HAVING ( NULL ) IS NOT NULL +---- query I rowsort SELECT ALL + col2 FROM tab1 cor0 GROUP BY col2 @@ -23226,8 +23479,15 @@ SELECT DISTINCT - col2 AS col1 FROM tab1 GROUP BY col2, col1 # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, + col0 FROM tab1 GROUP BY col0, col1 HAVING NOT ( NULL ) IS NOT NULL +---- +22 +22 +28 +28 +82 +82 query I rowsort SELECT ALL - col2 AS col2 FROM tab0 AS cor0 GROUP BY col0, col2 @@ -24775,8 +25035,15 @@ SELECT - col2 + + col1 FROM tab1 AS cor0 GROUP BY col1, col2 HAVING NOT - col2 + # Datafusion - Expected - 43 # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col0, col0 FROM tab0 AS cor0 GROUP BY col1, col0, col0 +---- +26 +26 +43 +43 +83 +83 query I rowsort SELECT + col0 AS col2 FROM tab0 GROUP BY col0, col1 @@ -24822,8 +25089,15 @@ SELECT ALL - col2 AS col1 FROM tab0 GROUP BY col2 HAVING NOT NULL NOT BETWEEN NU # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, + col2 col1 FROM tab0 GROUP BY col2 +---- +24 +24 +38 +38 +79 +79 query I rowsort SELECT col0 FROM tab1 AS cor0 GROUP BY col0, col2 HAVING NOT NULL IS NOT NULL @@ -25257,8 +25531,9 @@ SELECT ALL - + col0 AS col2 FROM tab0 AS cor0 GROUP BY col0 HAVING NULL IS NOT N ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1 / cor0\.col0 AS col2" at position 0 and "cor0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 / + col0 AS col2, col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL GROUP BY col0, col1 +---- query I rowsort SELECT + col1 + + col1 AS col0 FROM tab1 WHERE NOT + col1 IS NULL GROUP BY col1, col1 @@ -26435,8 +26710,15 @@ SELECT ALL + - col0 * col0 FROM tab0 AS cor0 GROUP BY col0, col0, col0 # Datafusion - Expected - 43 # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col0, col0 AS col0 FROM tab0 GROUP BY col1, col0 +---- +26 +26 +43 +43 +83 +83 query I rowsort SELECT DISTINCT - - col2 * + + col2 FROM tab1 AS cor0 GROUP BY col2 @@ -26846,8 +27128,15 @@ SELECT ALL + col0 AS col0 FROM tab1 AS cor0 GROUP BY col0, col2 # Datafusion - Expected - 91 # Datafusion - Expected - 92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, + col0 FROM tab2 GROUP BY col0, col0 +---- +15 +15 +91 +91 +92 +92 query I rowsort SELECT DISTINCT + col0 * - col2 AS col1 FROM tab1 GROUP BY col2, col0 @@ -27040,8 +27329,15 @@ SELECT DISTINCT col2 col0 FROM tab2 GROUP BY col2, col1, col2 # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, + col1 FROM tab0 GROUP BY col1, col2 +---- +0 +0 +0 +0 +81 +81 # Datafusion - Datafusion expected results: # Datafusion - Expected - 24 @@ -27050,8 +27346,15 @@ SELECT col1, + col1 FROM tab0 GROUP BY col1, col2 # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, col2 FROM tab0 AS cor0 GROUP BY col2, col2 HAVING NOT ( - + col2 IS NULL ) +---- +24 +24 +38 +38 +79 +79 query II rowsort SELECT ALL + col0 AS col0, col0 col1 FROM tab1 GROUP BY col0 @@ -27852,8 +28155,15 @@ SELECT DISTINCT + col0 AS col1 FROM tab0 GROUP BY col0 HAVING NOT NULL IS NOT NU # Datafusion - Expected - 85 # Datafusion - Expected - 36 # Datafusion - Expected - 28 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1 \* tab1\.col1 AS col2" at position 0 and "tab1\.col1 \+ tab1\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 * + col1 AS col2, col1 + col0 col2 FROM tab1 GROUP BY col0, col1 +---- +126 +1936 +28 +3249 +36 +85 query I rowsort SELECT - + col1 FROM tab0 AS cor0 GROUP BY col1, col1 @@ -28246,8 +28556,15 @@ SELECT DISTINCT col1 col1 FROM tab0 GROUP BY col1, col2 # Datafusion - Expected - -38 # Datafusion - Expected - -79 # Datafusion - Expected - -79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\)" at position 0 and "\(\- cor0\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2, - col2 FROM tab0 AS cor0 GROUP BY col2 +---- +-24 +-24 +-38 +-38 +-79 +-79 query II rowsort SELECT DISTINCT + col1 * + col1, + col1 FROM tab1 AS cor0 GROUP BY col1, col1 @@ -28719,8 +29036,9 @@ SELECT + - col0 AS col2 FROM tab1 cor0 GROUP BY col0, col1 -82 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, col1 FROM tab0 WHERE col1 IS NOT NULL GROUP BY col1 HAVING NOT ( NULL ) IS NULL +---- query I rowsort SELECT col0 FROM tab2 GROUP BY col1, col0, col2 @@ -29118,8 +29436,13 @@ SELECT ALL - col0 AS col1 FROM tab0 GROUP BY col0, col0 # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1, col1 FROM tab0 GROUP BY col1 +---- +0 +0 +81 +81 query I rowsort SELECT DISTINCT - col2 AS col0 FROM tab0 GROUP BY col2, col0 @@ -29449,8 +29772,13 @@ SELECT - - col1 FROM tab0 AS cor0 GROUP BY col1, col0 # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col0, col1 AS col0 FROM tab0 GROUP BY col1 +---- +0 +0 +81 +81 query I rowsort SELECT - col1 AS col1 FROM tab0 GROUP BY col2, col1 @@ -30388,8 +30716,15 @@ SELECT + col1 AS col0 FROM tab2 GROUP BY col1, col0 # Datafusion - Expected - 57 # Datafusion - Expected - 6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col1, col1 AS col1 FROM tab1 AS cor0 GROUP BY col1, col0, col0 +---- +44 +44 +57 +57 +6 +6 query I rowsort SELECT DISTINCT + + col0 AS col2 FROM tab1 AS cor0 GROUP BY col0 @@ -31038,8 +31373,15 @@ SELECT ALL - col1 + + col1 AS col2 FROM tab2 AS cor0 GROUP BY col1 # Datafusion - Expected - 28 # Datafusion - Expected - -82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col0 col1, col0 AS col1 FROM tab1 cor0 GROUP BY col1, col0 +---- +-22 +-28 +-82 +22 +28 +82 # Postgresql - Postgres error: db error: ERROR: column "tab2.col0" must appear in the GROUP BY clause or be used in an aggregate function # Datafusion - Datafusion expected results: @@ -31227,8 +31569,15 @@ SELECT col1 * - col2 FROM tab1 cor0 WHERE NULL IS NOT NULL GROUP BY col1, col2 H # Datafusion - Expected - 57 # Datafusion - Expected - 6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, + col1 FROM tab1 AS cor0 GROUP BY col2, col1 +---- +44 +44 +57 +57 +6 +6 query I rowsort SELECT + - col2 FROM tab0 cor0 GROUP BY col2 @@ -31244,8 +31593,15 @@ SELECT + - col2 FROM tab0 cor0 GROUP BY col2 # Datafusion - Expected - 91 # Datafusion - Expected - 92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, + col0 FROM tab2 AS cor0 GROUP BY col0 +---- +15 +15 +91 +91 +92 +92 query I rowsort SELECT col1 + + col1 FROM tab2 GROUP BY col1 HAVING NOT ( NULL ) IS NULL @@ -31424,8 +31780,15 @@ SELECT ALL col0 FROM tab0 AS cor0 GROUP BY col0 HAVING NULL IS NOT NULL # Datafusion - Expected - 91 # Datafusion - Expected - 92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col0, col0 FROM tab2 GROUP BY col0, col2 HAVING NULL IS NULL +---- +15 +15 +91 +91 +92 +92 query I rowsort SELECT DISTINCT col0 * - - col0 AS col0 FROM tab2 WHERE ( NULL ) IS NOT NULL GROUP BY col0 @@ -31438,8 +31801,15 @@ SELECT DISTINCT col0 * - - col0 AS col0 FROM tab2 WHERE ( NULL ) IS NOT NULL GRO # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - - col2 AS col1, col2 AS col1 FROM tab0 AS cor0 GROUP BY col2, col2 HAVING NOT NULL IS NOT NULL +---- +24 +24 +38 +38 +79 +79 query I rowsort SELECT col0 AS col0 FROM tab0 GROUP BY col0, col0 HAVING NULL IS NOT NULL @@ -31596,8 +31966,15 @@ SELECT + col2 FROM tab1 AS cor0 GROUP BY col1, col2 HAVING NULL IS NOT NULL # Datafusion - Expected - 71 # Datafusion - Expected - 8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 FROM tab1 GROUP BY col2 HAVING NOT NULL IS NOT NULL +---- +45 +45 +71 +71 +8 +8 query I rowsort SELECT ALL + col1 AS col1 FROM tab2 AS cor0 GROUP BY col1, col1 HAVING NOT NULL IS NOT NULL @@ -32421,8 +32798,15 @@ SELECT + - col1 AS col0 FROM tab1 AS cor0 GROUP BY col1, col0 # Datafusion - Expected - 43 # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col0, col0 FROM tab0 GROUP BY col0, col0 HAVING NULL IS NULL +---- +26 +26 +43 +43 +83 +83 query I rowsort SELECT ALL + - col0 AS col2 FROM tab0 AS cor0 GROUP BY col0 HAVING NULL IS NULL @@ -33150,8 +33534,15 @@ SELECT ALL + - col2 AS col0 FROM tab1 AS cor0 GROUP BY col2, col2 # Datafusion - Expected - -91 # Datafusion - Expected - -87 # Datafusion - Expected - -15 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col2\) AS col1" at position 0 and "\(\- cor0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col2 AS col1, - col0 AS col1 FROM tab2 AS cor0 GROUP BY col0, col2 +---- +-15 +-58 +-79 +-87 +-91 +-92 query I rowsort label-5260 SELECT DISTINCT - col1 / + + col1 FROM tab1 AS cor0 GROUP BY col1 @@ -33428,8 +33819,13 @@ SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 GROUP BY col0, col2 # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, col1 FROM tab0 GROUP BY col1 +---- +0 +0 +81 +81 query I rowsort SELECT DISTINCT col1 col1 FROM tab1 AS cor0 GROUP BY col1, col1 HAVING NOT NULL IS NULL @@ -33522,8 +33918,9 @@ SELECT + col0 FROM tab2 GROUP BY col0 HAVING - col0 <> NULL ---- # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col2, col1 AS col2 FROM tab0 WHERE NOT NULL < NULL GROUP BY col1 +---- query I rowsort SELECT col1 col1 FROM tab1 cor0 GROUP BY col1 HAVING NOT NULL IS NULL @@ -33887,8 +34284,15 @@ SELECT ALL - col0 AS col0 FROM tab1 AS cor0 WHERE col2 IS NULL GROUP BY col0, co # Datafusion - Expected - 71 # Datafusion - Expected - 8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2 AS col2, + col2 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL GROUP BY col2 +---- +45 +45 +71 +71 +8 +8 query I rowsort SELECT ALL - col2 col2 FROM tab0 GROUP BY col0, col2 @@ -34563,8 +34967,13 @@ SELECT DISTINCT + col1 FROM tab2 GROUP BY col1 HAVING NOT NULL IS NOT NULL # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col1, col1 FROM tab0 AS cor0 GROUP BY col1, col1 +---- +0 +0 +81 +81 query I rowsort SELECT col1 AS col1 FROM tab2 GROUP BY col1, col1 HAVING NULL > ( NULL ) @@ -35609,8 +36018,15 @@ SELECT DISTINCT + col0 FROM tab0 AS cor0 GROUP BY col0, col0, col0, col2 # Datafusion - Expected - 91 # Datafusion - Expected - 92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 AS col0 FROM tab2 GROUP BY col0 +---- +15 +15 +91 +91 +92 +92 query I rowsort SELECT DISTINCT col0 FROM tab1 GROUP BY col0, col0 @@ -36484,8 +36900,10 @@ SELECT - col2 - - + col0 FROM tab0 GROUP BY col0, col2 # Datafusion - Datafusion expected results: # Datafusion - Expected - 9 values hashing to 783727379615b8f9ae967fb1ef978f27 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "\(\- avg\(\(\- cor0\.col2\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query IRI valuesort SELECT ALL col2 AS col1, - AVG ( - col2 ) AS col1, - col2 AS col1 FROM tab0 AS cor0 GROUP BY col2 +---- +9 values hashing to 8740da4abe6aa995cb552cde2461872c query I rowsort SELECT - col0 + col0 FROM tab2 GROUP BY col0 HAVING NOT NULL IS NULL @@ -37962,8 +38380,9 @@ SELECT DISTINCT col2 AS col1 FROM tab1 GROUP BY col0, col2 HAVING + col0 IS NOT 8 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0 col1, col0 AS col1 FROM tab1 GROUP BY col0 HAVING ( + col0 NOT BETWEEN NULL AND NULL ) +---- query I rowsort SELECT + col0 AS col2 FROM tab1 cor0 GROUP BY col0 HAVING NULL IS NOT NULL @@ -38969,8 +39388,13 @@ SELECT + col2 * - - col2 AS col0 FROM tab1 AS cor0 GROUP BY col2, col0 # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + + col1, col1 FROM tab0 AS cor0 GROUP BY col0, col1 HAVING NOT NULL IS NOT NULL +---- +0 +0 +81 +81 query I rowsort SELECT col0 AS col2 FROM tab0 GROUP BY col0, col0, col0 @@ -39506,8 +39930,15 @@ SELECT col0 AS col2 FROM tab1 GROUP BY col0, col1, col2 HAVING NOT NULL IS NULL # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0 AS col1" at position 0 and "tab1\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0 AS col1, + col0 AS col1 FROM tab1 GROUP BY col0 +---- +22 +22 +28 +28 +82 +82 query II rowsort SELECT DISTINCT + col0, - col0 FROM tab0 GROUP BY col0, col0 @@ -39581,8 +40012,15 @@ SELECT DISTINCT + col1 + col1 AS col2 FROM tab0 AS cor0 GROUP BY col1 # Datafusion - Expected - 91 # Datafusion - Expected - 92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0" at position 0 and "tab2\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, + col0 FROM tab2 GROUP BY col0, col1 +---- +15 +15 +91 +91 +92 +92 query I rowsort SELECT DISTINCT col1 AS col0 FROM tab0 GROUP BY col0, col1 @@ -39891,8 +40329,9 @@ SELECT DISTINCT - - col1 + + col1 FROM tab0 cor0 GROUP BY col0, col1 162 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0, col0 FROM tab1 AS cor0 GROUP BY col0, col2 HAVING NULL IS NOT NULL +---- query I rowsort SELECT DISTINCT col0 AS col0 FROM tab2 GROUP BY col1, col0 @@ -39940,8 +40379,15 @@ SELECT - col2 AS col1 FROM tab2 AS cor0 GROUP BY col2, col2 HAVING NULL <= NULL # Datafusion - Expected - -59 # Datafusion - Expected - -61 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col1\)" at position 0 and "\(\- tab2\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1, - col1 FROM tab2 GROUP BY col1, col1 +---- +-41 +-41 +-59 +-59 +-61 +-61 query I rowsort SELECT DISTINCT + col2 AS col1 FROM tab0 GROUP BY col2 HAVING NOT NULL IS NULL @@ -40007,8 +40453,15 @@ SELECT ALL - col1 FROM tab1 GROUP BY col2, col1 HAVING NOT - col1 IS NOT NULL # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2" at position 0 and "tab0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 FROM tab0 GROUP BY col2 HAVING NULL IS NULL +---- +24 +24 +38 +38 +79 +79 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -40057,8 +40510,15 @@ SELECT DISTINCT col1 AS col1 FROM tab2 GROUP BY col2, col1 # Datafusion - Expected - 57 # Datafusion - Expected - 6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, col1 AS col1 FROM tab1 AS cor0 GROUP BY col1 +---- +44 +44 +57 +57 +6 +6 query I rowsort SELECT DISTINCT - + col2 FROM tab2 AS cor0 GROUP BY col2 HAVING NOT NULL IS NOT NULL @@ -40567,8 +41027,15 @@ SELECT + col1 + + - col1 FROM tab0 GROUP BY col1 # Datafusion - Expected - -91 # Datafusion - Expected - 0 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col0\)\) \- cor0\.col0 AS col2" at position 0 and "\(\- cor0\.col0\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col0 - + col0 AS col2, - col0 col2 FROM tab2 AS cor0 GROUP BY col0 +---- +-15 +-91 +-92 +0 +0 +0 query I rowsort SELECT DISTINCT col2 col1 FROM tab0 GROUP BY col2, col2 @@ -40654,8 +41121,15 @@ SELECT DISTINCT + col1 AS col2, col1 + col1 AS col0 FROM tab1 GROUP BY col1, col # Datafusion - Expected - 57 # Datafusion - Expected - 6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 col1, col1 FROM tab1 GROUP BY col1 +---- +44 +44 +57 +57 +6 +6 # Datafusion - Datafusion expected results: # Datafusion - Expected - 58 @@ -40664,8 +41138,15 @@ SELECT DISTINCT col1 col1, col1 FROM tab1 GROUP BY col1 # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, col2 FROM tab2 cor0 GROUP BY col2 +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT ALL col2 FROM tab0 GROUP BY col1, col2 HAVING NULL IS NULL @@ -41170,8 +41651,15 @@ SELECT ALL col0 + col0 FROM tab2 GROUP BY col0, col2 # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0 AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col0 AS col1, col0 AS col1 FROM tab1 AS cor0 GROUP BY col0 +---- +22 +22 +28 +28 +82 +82 query I rowsort SELECT col2 * + + col1 * col1 FROM tab1 AS cor0 GROUP BY col1, col2 @@ -41690,8 +42178,13 @@ SELECT ALL + - col1 col2, col1 * col1 * col1 FROM tab2 AS cor0 GROUP BY col1 # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1 AS col1, col1 FROM tab0 GROUP BY col1, col1 +---- +0 +0 +81 +81 query I rowsort SELECT ALL col0 + + col0 * col0 AS col1 FROM tab2 GROUP BY col0, col2 @@ -41895,8 +42388,15 @@ SELECT ALL col1 FROM tab2 GROUP BY col2, col1, col0 HAVING NOT NULL IS NOT NULL # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col2 AS col1" at position 0 and "tab0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2 AS col1, col2 AS col1 FROM tab0 GROUP BY col2 +---- +24 +24 +38 +38 +79 +79 query I rowsort SELECT DISTINCT + + col0 AS col0 FROM tab0 AS cor0 GROUP BY col0 @@ -43006,8 +43506,15 @@ SELECT DISTINCT + col2 AS col1 FROM tab0 GROUP BY col2 HAVING NOT ( NULL ) IS NO # Datafusion - Expected - -59 # Datafusion - Expected - -61 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1, - col1 FROM tab2 AS cor0 GROUP BY col1 +---- +-41 +-41 +-59 +-59 +-61 +-61 query I rowsort SELECT ALL - col2 col1 FROM tab2 cor0 GROUP BY col2 @@ -43686,8 +44193,15 @@ SELECT DISTINCT - col2 FROM tab1 GROUP BY col0, col2 HAVING NOT NULL IS NOT NULL # Datafusion - Expected - 45 # Datafusion - Expected - -82 # Datafusion - Expected - 71 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col0\) AS col0" at position 0 and "tab1\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col0 AS col0, col2 AS col0 FROM tab1 GROUP BY col2, col0 +---- +-22 +-28 +-82 +45 +71 +8 query I rowsort SELECT col0 AS col2 FROM tab1 cor0 GROUP BY col0 HAVING NOT NULL IS NULL AND NOT NULL IS NULL @@ -44544,8 +45058,15 @@ SELECT DISTINCT - col0 AS col1 FROM tab1 AS cor0 GROUP BY col0 HAVING NULL IS NU # Datafusion - Expected - 59 # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 AS col1 FROM tab2 AS cor0 GROUP BY col1 +---- +41 +41 +59 +59 +61 +61 query I rowsort SELECT - col1 + - - col1 FROM tab1 AS cor0 GROUP BY col1 @@ -44701,8 +45222,13 @@ SELECT ALL col0 AS col1 FROM tab1 cor0 GROUP BY col0, col1 HAVING NOT NULL NOT B # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col1 AS col1, col1 FROM tab0 GROUP BY col1 +---- +0 +0 +81 +81 query I rowsort SELECT + col0 FROM tab0 GROUP BY col0, col2 HAVING NULL IS NULL @@ -45085,8 +45611,15 @@ SELECT col2 * col0 AS col2 FROM tab2 GROUP BY col0, col2, col2 # Datafusion - Expected - -57 # Datafusion - Expected - -6 # Datafusion - Expected - -6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\)" at position 0 and "\(\- cor0\.col1\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1, - col1 FROM tab1 AS cor0 GROUP BY col1 +---- +-44 +-44 +-57 +-57 +-6 +-6 query I rowsort SELECT col1 col0 FROM tab2 GROUP BY col2, col1 HAVING NULL IS NULL @@ -45283,8 +45816,15 @@ SELECT + col2 AS col2 FROM tab2 AS cor0 GROUP BY col2 HAVING + col2 - - + col2 I # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, + col0 FROM tab1 AS cor0 GROUP BY col0 HAVING NOT NULL IS NOT NULL +---- +22 +22 +28 +28 +82 +82 query I rowsort SELECT ALL - col1 AS col2 FROM tab2 AS cor0 GROUP BY col2, col1 @@ -45577,8 +46117,15 @@ SELECT DISTINCT - col2 AS col1 FROM tab2 GROUP BY col2 HAVING NOT NULL IS NOT NU # Datafusion - Expected - -28 # Datafusion - Expected - -82 # Datafusion - Expected - -82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\)" at position 0 and "\(\- cor0\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0, - col0 FROM tab1 AS cor0 GROUP BY col0 +---- +-22 +-22 +-28 +-28 +-82 +-82 query I rowsort SELECT ALL - col0 AS col1 FROM tab0 GROUP BY col2, col0 @@ -46035,8 +46582,15 @@ SELECT col0 + - col0 + + + col0 FROM tab1 AS cor0 GROUP BY col0 # Datafusion - Expected - 91 # Datafusion - Expected - 92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col2" at position 0 and "tab2\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col2, + col0 AS col2 FROM tab2 GROUP BY col0 +---- +15 +15 +91 +91 +92 +92 query I rowsort SELECT ALL + col1 * - col1 AS col1 FROM tab0 GROUP BY col1, col1 @@ -47121,8 +47675,15 @@ SELECT ALL - - col2 + + col2 AS col1 FROM tab1 AS cor0 GROUP BY col2, col2 # Datafusion - Expected - 59 # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 FROM tab2 AS cor0 GROUP BY col1 +---- +41 +41 +59 +59 +61 +61 query I rowsort SELECT ALL col1 FROM tab0 GROUP BY col1, col1 HAVING NOT NULL IS NOT NULL @@ -47813,8 +48374,13 @@ SELECT col1 FROM tab1 WHERE NOT ( col2 ) IS NULL GROUP BY col1 # Datafusion - Expected - 81 # Datafusion - Expected - 0 # Datafusion - Expected - 0 -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 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT - col1 AS col0, + col1 AS col0 FROM tab0 AS cor0 GROUP BY col0, col1 +---- +-81 +0 +0 +81 query I rowsort SELECT DISTINCT col2 FROM tab1 GROUP BY col1, col2, col1 @@ -48370,8 +48936,15 @@ SELECT DISTINCT col0 col0 FROM tab1 AS cor0 GROUP BY col2, col0 # Datafusion - Expected - -59 # Datafusion - Expected - -61 # Datafusion - Expected - -61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col1\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col1 AS col1, - col1 AS col1 FROM tab2 AS cor0 GROUP BY col1 +---- +-41 +-41 +-59 +-59 +-61 +-61 query I rowsort SELECT - col1 AS col2 FROM tab1 AS cor0 GROUP BY col1 HAVING NULL IS NULL @@ -48748,8 +49321,15 @@ SELECT col1 FROM tab0 GROUP BY col1, col0, col0 HAVING NOT ( NOT ( NULL <> NULL # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2, col2 FROM tab0 cor0 GROUP BY col0, col2 +---- +24 +24 +38 +38 +79 +79 query I rowsort SELECT col0 FROM tab1 AS cor0 GROUP BY col0 HAVING NULL >= - AVG ( ALL + + col1 ) @@ -49256,8 +49836,15 @@ SELECT ALL - col0 col0 FROM tab2 AS cor0 GROUP BY col0 # Datafusion - Expected - 43 # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col0, col0 FROM tab0 GROUP BY col2, col0 +---- +26 +26 +43 +43 +83 +83 query I rowsort SELECT col2 FROM tab0 GROUP BY col0, col2, col0 @@ -49404,8 +49991,15 @@ SELECT + + col1 AS col2 FROM tab2 cor0 WHERE + col0 + + + col2 IS NULL GROUP BY # Datafusion - Expected - -79 # Datafusion - Expected - -61 # Datafusion - Expected - -87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col1\) AS col1" at position 0 and "\(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - + col1 AS col1, - col2 AS col1 FROM tab2 AS cor0 GROUP BY col2, col1 +---- +-41 +-58 +-59 +-61 +-79 +-87 query I rowsort SELECT + col0 * - col2 FROM tab1 GROUP BY col2, col0, col2, col0 @@ -49930,8 +50524,9 @@ SELECT col0 + + + col0 FROM tab0 AS cor0 GROUP BY col0 86 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1 AS col1, + col1 FROM tab2 cor0 GROUP BY col1, col1 HAVING ( NULL ) >= NULL +---- # Datafusion - Datafusion expected results: # Datafusion - Expected - 26 @@ -49940,8 +50535,15 @@ SELECT ALL + col1 AS col1, + col1 FROM tab2 cor0 GROUP BY col1, col1 HAVING ( NU # Datafusion - Expected - 43 # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col0, + col0 col0 FROM tab0 GROUP BY col0 +---- +26 +26 +43 +43 +83 +83 query I rowsort SELECT col2 AS col0 FROM tab1 GROUP BY col2, col1 HAVING NULL IS NULL @@ -50114,8 +50716,15 @@ SELECT ALL + col1 AS col2 FROM tab1 cor0 GROUP BY col1, col2 # Datafusion - Expected - 57 # Datafusion - Expected - 6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 FROM tab1 AS cor0 GROUP BY col1 HAVING NULL IS NULL +---- +44 +44 +57 +57 +6 +6 query I rowsort SELECT DISTINCT + col2 + + - col2 * + col2 FROM tab1 cor0 GROUP BY col2 @@ -50404,8 +51013,9 @@ SELECT - col2 col2 FROM tab0 GROUP BY col1, col2, col2 -79 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col0, + col0 FROM tab0 GROUP BY col2, col0 HAVING col0 IS NULL +---- query II rowsort SELECT ALL col2 AS col0, - col0 + - - col2 FROM tab0 GROUP BY col2, col0, col0 @@ -51980,8 +52590,15 @@ SELECT - col2 AS col2 FROM tab1 GROUP BY col2, col1, col2 # Datafusion - Expected - 71 # Datafusion - Expected - 8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, col2 FROM tab1 cor0 GROUP BY col2 +---- +45 +45 +71 +71 +8 +8 query I rowsort SELECT - col1 FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NULL GROUP BY col1 @@ -52461,8 +53078,15 @@ SELECT - col0 * col0 AS col1 FROM tab1 GROUP BY col0, col0 # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col2, col2 FROM tab2 GROUP BY col2 +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT col2 AS col2 FROM tab1 GROUP BY col2 HAVING NOT ( NULL <= NULL ) @@ -52475,8 +53099,15 @@ SELECT col2 AS col2 FROM tab1 GROUP BY col2 HAVING NOT ( NULL <= NULL ) # Datafusion - Expected - 91 # Datafusion - Expected - 92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, col0 FROM tab2 AS cor0 GROUP BY col0 +---- +15 +15 +91 +91 +92 +92 query I rowsort SELECT ALL col1 AS col1 FROM tab0 GROUP BY col1, col2 HAVING NOT NULL IS NOT NULL @@ -52532,8 +53163,15 @@ SELECT DISTINCT col1 + col1 * - col1 col1 FROM tab2 WHERE NULL <> + col2 GROUP B # Datafusion - Expected - 71 # Datafusion - Expected - 8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, + col2 FROM tab1 AS cor0 GROUP BY col2 +---- +45 +45 +71 +71 +8 +8 query I rowsort SELECT - col2 FROM tab2 GROUP BY col0, col0, col2 @@ -52816,8 +53454,15 @@ SELECT col1 AS col0 FROM tab1 GROUP BY col1 HAVING NULL < + col0 # Datafusion - Expected - 71 # Datafusion - Expected - 8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col2" at position 0 and "tab1\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, + col2 AS col2 FROM tab1 GROUP BY col2 +---- +45 +45 +71 +71 +8 +8 query I rowsort SELECT + col0 AS col2 FROM tab2 GROUP BY col0, col0 @@ -53905,8 +54550,15 @@ SELECT col2 - + col1 FROM tab0 GROUP BY col2, col1 # Datafusion - Expected - 43 # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + + col0, + col0 FROM tab0 AS cor0 GROUP BY col0 +---- +26 +26 +43 +43 +83 +83 query I rowsort SELECT DISTINCT - + col1 FROM tab0 AS cor0 GROUP BY col1, col0 HAVING NOT NULL IS NOT NULL @@ -54048,8 +54700,15 @@ SELECT ALL col2 FROM tab2 WHERE + col2 IS NULL GROUP BY col2, col1 # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col2 col2, col2 col2 FROM tab2 GROUP BY col2 +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT - + col0 AS col2 FROM tab2 AS cor0 GROUP BY col0 @@ -54188,8 +54847,9 @@ SELECT col0 AS col1 FROM tab1 GROUP BY col0, col0 82 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col2, col2 FROM tab1 cor0 WHERE NOT NULL < NULL GROUP BY col2 +---- query II rowsort SELECT DISTINCT col1 AS col2, col1 AS col0 FROM tab2 GROUP BY col1, col1 @@ -54322,8 +54982,15 @@ SELECT ALL + AVG ( DISTINCT - col0 ) FROM tab2 GROUP BY col0 HAVING NOT NULL IS # Datafusion - Expected - 91 # Datafusion - Expected - -92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- cor0\.col0\) AS col1" at position 0 and "cor0\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + - col0 AS col1, col0 AS col1 FROM tab2 cor0 GROUP BY col0, col1 +---- +-15 +-91 +-92 +15 +91 +92 query I rowsort SELECT - - col0 FROM tab2 AS cor0 GROUP BY col0, col2 HAVING NULL IS NULL @@ -55063,8 +55730,9 @@ query error DataFusion error: Error during planning: Column in HAVING must be in SELECT - col1 AS col0 FROM tab1 AS cor0 GROUP BY col1 HAVING NOT col0 < NULL # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col1, + col1 FROM tab1 AS cor0 GROUP BY col1 HAVING NOT ( NULL ) IS NULL +---- query I rowsort SELECT DISTINCT - - col1 * col1 FROM tab2 AS cor0 GROUP BY col1, col1 @@ -55097,8 +55765,15 @@ SELECT + + col1 AS col0 FROM tab1 AS cor0 GROUP BY col1 # Datafusion - Expected - 71 # Datafusion - Expected - 8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, col2 FROM tab1 AS cor0 GROUP BY col2, col2 +---- +45 +45 +71 +71 +8 +8 query I rowsort SELECT ALL - col1 AS col2 FROM tab2 AS cor0 GROUP BY col0, col1, col1 @@ -55114,8 +55789,15 @@ SELECT ALL - col1 AS col2 FROM tab2 AS cor0 GROUP BY col0, col1, col1 # Datafusion - Expected - -91 # Datafusion - Expected - -92 # Datafusion - Expected - -92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab2\.col0\)" at position 0 and "\(\- tab2\.col0\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0, - col0 FROM tab2 GROUP BY col0 +---- +-15 +-15 +-91 +-91 +-92 +-92 query I rowsort SELECT ALL - col0 col0 FROM tab1 AS cor0 GROUP BY col0 @@ -55410,8 +56092,9 @@ SELECT DISTINCT - col0 * col0 AS col2 FROM tab0 GROUP BY col0 -6889 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1, col1 FROM tab0 AS cor0 WHERE NOT + col0 * col1 - col0 IS NOT NULL GROUP BY col1 +---- query I rowsort SELECT col1 AS col2 FROM tab1 GROUP BY col1, col1, col0 @@ -55630,8 +56313,15 @@ SELECT + col0 FROM tab2 GROUP BY col0 HAVING NOT NULL IS NOT NULL # Datafusion - Expected - -6241 # Datafusion - Expected - 87 # Datafusion - Expected - -7569 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col1" at position 0 and "cor0\.col2 \* \(\- cor0\.col2\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col1, + col2 * - col2 col1 FROM tab2 AS cor0 GROUP BY col1, col2 +---- +-3364 +-6241 +-7569 +58 +79 +87 # Datafusion - Types were automatically converted from: # Datafusion - [Expected] [I] @@ -55702,8 +56392,15 @@ SELECT ALL col2 FROM tab2 AS cor0 GROUP BY col2 HAVING NOT NULL IS NULL # Datafusion - Expected - 91 # Datafusion - Expected - 92 # Datafusion - Expected - 92 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col0 AS col1" at position 0 and "tab2\.col0 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col1, + col0 AS col1 FROM tab2 GROUP BY col0, col0, col0 +---- +15 +15 +91 +91 +92 +92 query I rowsort SELECT ALL col1 FROM tab2 GROUP BY col1 HAVING NULL >= NULL @@ -56717,8 +57414,15 @@ SELECT + col1 AS col1 FROM tab0 GROUP BY col1 HAVING NULL IS NULL # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2, col2 AS col2 FROM tab2 AS cor0 GROUP BY col2, col0 +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 GROUP BY col1, col0 HAVING NOT NULL IS NULL @@ -57358,8 +58062,15 @@ SELECT DISTINCT col0 col2 FROM tab2 GROUP BY col2, col0 # Datafusion - Expected - 6162 # Datafusion - Expected - 87 # Datafusion - Expected - 7482 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2 AS col0" at position 0 and "\(\- cor0\.col2\) \+ cor0\.col2 \* cor0\.col2 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col0, - col2 + col2 * col2 AS col0 FROM tab2 AS cor0 GROUP BY col2, col2 +---- +3306 +58 +6162 +7482 +79 +87 query I rowsort SELECT DISTINCT col0 * + col0 AS col2 FROM tab0 GROUP BY col0 @@ -58039,8 +58750,15 @@ SELECT DISTINCT - + col0 FROM tab1 AS cor0 GROUP BY col1, col0 # Datafusion - Expected - 57 # Datafusion - Expected - 6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col1" at position 0 and "tab1\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT col1 col1, col1 AS col1 FROM tab1 GROUP BY col1, col0 +---- +44 +44 +57 +57 +6 +6 query I rowsort SELECT DISTINCT col1 AS col1 FROM tab0 GROUP BY col1 HAVING NULL < NULL @@ -59037,8 +59755,15 @@ SELECT - - col0 AS col1 FROM tab0 WHERE - - col2 >= + + col0 GROUP BY col0 # Datafusion - Expected - 57 # Datafusion - Expected - 6 # Datafusion - Expected - 6 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col1, col1 AS col1 FROM tab1 AS cor0 GROUP BY col1 +---- +44 +44 +57 +57 +6 +6 query I rowsort SELECT DISTINCT - + col1 * col1 FROM tab1 AS cor0 GROUP BY col1 @@ -59065,8 +59790,15 @@ SELECT ALL + col2 + - col2 FROM tab2 AS cor0 GROUP BY col2 HAVING + col2 IS NULL # Datafusion - Expected - -43 # Datafusion - Expected - 83 # Datafusion - Expected - -83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0 AS col1" at position 0 and "\(\- tab0\.col0\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL + col0 AS col1, - col0 AS col1 FROM tab0 GROUP BY col0 +---- +-26 +-43 +-83 +26 +43 +83 query I rowsort SELECT + col2 FROM tab2 AS cor0 GROUP BY col2 HAVING ( NULL ) <> NULL @@ -59223,8 +59955,13 @@ SELECT - - col2 FROM tab0 cor0 GROUP BY col1, col0, col2 # Datafusion - Expected - 81 # Datafusion - Expected - 0 # Datafusion - Expected - 0 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col1\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - col1 AS col0, col1 col0 FROM tab0 GROUP BY col1 +---- +-81 +0 +0 +81 query I rowsort SELECT col2 FROM tab1 GROUP BY col2, col2 HAVING NULL IS NOT NULL @@ -59623,8 +60360,9 @@ SELECT ALL - col0 AS col2 FROM tab0 AS cor0 GROUP BY col0 -83 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col2" at position 0 and "tab2\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + col2, col2 FROM tab2 GROUP BY col2 HAVING ( NULL ) IS NOT NULL +---- query I rowsort SELECT col0 AS col0 FROM tab1 AS cor0 GROUP BY col1, col0 @@ -59807,8 +60545,15 @@ SELECT - col0 AS col2 FROM tab2 AS cor0 GROUP BY col0, col0 HAVING NOT NULL IS N # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, col0 FROM tab1 AS cor0 GROUP BY col0 HAVING NULL IS NULL +---- +22 +22 +28 +28 +82 +82 query I rowsort SELECT DISTINCT + col0 FROM tab1 AS cor0 GROUP BY col0, col2, col2 @@ -59992,8 +60737,15 @@ SELECT ALL + col0 col2 FROM tab2 AS cor0 GROUP BY col1, col0, col1 # Datafusion - Expected - 59 # Datafusion - Expected - 61 # Datafusion - Expected - 61 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab2\.col1" at position 0 and "tab2\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 AS col1, col1 FROM tab2 GROUP BY col1, col2, col1 +---- +41 +41 +59 +59 +61 +61 query I rowsort SELECT ALL + col2 * - - col2 AS col1 FROM tab1 GROUP BY col2 HAVING NULL IS NOT NULL @@ -60239,8 +60991,15 @@ SELECT ALL col0 AS col0 FROM tab1 GROUP BY col0 HAVING NULL IS NULL # Datafusion - Expected - 43 # Datafusion - Expected - -83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col0\) AS col2" at position 0 and "tab0\.col0 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col0 AS col2, col0 AS col2 FROM tab0 GROUP BY col0, col0 +---- +-26 +-43 +-83 +26 +43 +83 query I rowsort SELECT col2 AS col2 FROM tab1 GROUP BY col2 HAVING NOT ( NOT NULL IS NULL ) @@ -60335,8 +61094,15 @@ SELECT ALL + + col0 FROM tab1 AS cor0 GROUP BY col0 HAVING + + col0 IS NOT NULL # Datafusion - Expected - -71 # Datafusion - Expected - -8 # Datafusion - Expected - -8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab1\.col2\)" at position 0 and "\(\- tab1\.col2\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2, - col2 FROM tab1 GROUP BY col2 +---- +-45 +-45 +-71 +-71 +-8 +-8 query I rowsort SELECT DISTINCT + - col0 FROM tab1 cor0 GROUP BY col0 @@ -60481,8 +61247,15 @@ SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL GROUP BY # Datafusion - Expected - 38 # Datafusion - Expected - 79 # Datafusion - Expected - 79 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col2, + col2 FROM tab0 AS cor0 GROUP BY col2 +---- +24 +24 +38 +38 +79 +79 query I rowsort SELECT - col2 col1 FROM tab1 cor0 GROUP BY col1, col2 @@ -60541,8 +61314,15 @@ SELECT - col1 FROM tab1 GROUP BY col2, col1, col1 HAVING NOT + col1 IS NULL # Datafusion - Expected - 28 # Datafusion - Expected - 82 # Datafusion - Expected - 82 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab1\.col0" at position 0 and "tab1\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0 AS col0, col0 FROM tab1 GROUP BY col0, col0 +---- +22 +22 +28 +28 +82 +82 query I rowsort SELECT + col1 AS col1 FROM tab0 AS cor0 GROUP BY col1 HAVING NULL IS NULL @@ -60656,8 +61436,15 @@ SELECT DISTINCT col2 AS col0 FROM tab0 GROUP BY col2, col2 # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- \(\- cor0\.col2\)\) AS col1" at position 0 and "cor0\.col2 AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL - - col2 AS col1, + col2 AS col1 FROM tab2 AS cor0 GROUP BY col2 +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT ALL col2 FROM tab0 GROUP BY col1, col2, col1 @@ -60993,8 +61780,15 @@ SELECT DISTINCT col0 AS col0 FROM tab2 GROUP BY col0, col2 # Datafusion - Expected - 43 # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col0" at position 0 and "cor0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col0, col0 AS col0 FROM tab0 AS cor0 GROUP BY col0 +---- +26 +26 +43 +43 +83 +83 query I rowsort SELECT DISTINCT - col0 AS col1 FROM tab2 cor0 GROUP BY col0, col0 @@ -61150,8 +61944,9 @@ SELECT - - col1 col1 FROM tab0 AS cor0 GROUP BY col1, col1 81 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1 \+ \(\- tab0\.col1\) AS col0" at position 0 and "tab0\.col1 AS col0" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query III valuesort SELECT + col1 + - col1 col0, col1, col1 AS col0 FROM tab0 GROUP BY col1 HAVING NOT - col1 + - col1 IS NOT NULL +---- query I rowsort SELECT - + col1 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col1 GROUP BY col0, col1 @@ -61646,8 +62441,15 @@ SELECT DISTINCT + col2 FROM tab0 AS cor0 GROUP BY col2 HAVING NOT NULL < NULL # Datafusion - Expected - 43 # Datafusion - Expected - 83 # Datafusion - Expected - 83 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col0" at position 0 and "tab0\.col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col0, + col0 FROM tab0 GROUP BY col0 +---- +26 +26 +43 +43 +83 +83 query I rowsort SELECT col2 FROM tab1 AS cor0 GROUP BY col2, col1, col1 @@ -61779,8 +62581,9 @@ SELECT col2 AS col0 FROM tab0 AS cor0 GROUP BY col1, col2 79 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- tab0\.col2\) / \(\- tab0\.col2\) AS col2" at position 0 and "tab0\.col1 AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT - col2 / - col2 AS col2, col1 AS col2 FROM tab0 GROUP BY col2, col1 HAVING NULL IS NOT NULL +---- query I rowsort SELECT + col2 FROM tab0 AS cor0 GROUP BY col0, col2, col1 @@ -62060,8 +62863,15 @@ SELECT DISTINCT col2 AS col2 FROM tab2 cor0 GROUP BY col2 # Datafusion - Expected - 79 # Datafusion - Expected - 87 # Datafusion - Expected - 87 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT + + col2 AS col2, col2 FROM tab2 AS cor0 GROUP BY col2 +---- +58 +58 +79 +79 +87 +87 query I rowsort SELECT + col0 + col1 + col0 AS col2 FROM tab2 GROUP BY col0, col1, col1 @@ -62162,8 +62972,9 @@ SELECT ALL - col0 FROM tab0 cor0 GROUP BY col0, col2 HAVING - col2 IS NOT NULL -83 # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col1" at position 0 and "cor0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT col1 col1, + col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL GROUP BY col1, col1 +---- query I rowsort SELECT col0 AS col0 FROM tab2 AS cor0 GROUP BY col0 HAVING NULL IS NOT NULL @@ -62229,8 +63040,15 @@ SELECT + col1 FROM tab0 AS cor0 GROUP BY col1, col2, col0 # Datafusion - Expected - 71 # Datafusion - Expected - 8 # Datafusion - Expected - 8 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "cor0\.col2" at position 0 and "cor0\.col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT DISTINCT + col2 AS col2, col2 AS col2 FROM tab1 AS cor0 GROUP BY col2 +---- +45 +45 +71 +71 +8 +8 query I rowsort SELECT ALL + + col1 FROM tab2 AS cor0 GROUP BY col1, col2 @@ -62823,8 +63641,15 @@ SELECT DISTINCT - col0 FROM tab1 GROUP BY col0, col0 HAVING NOT NULL IS NULL # Datafusion - Expected - 0 # Datafusion - Expected - 81 # Datafusion - Expected - 81 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "tab0\.col1" at position 0 and "tab0\.col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query II valuesort SELECT ALL col1, col1 FROM tab0 GROUP BY col0, col1, col0 +---- +0 +0 +0 +0 +81 +81 query I rowsort SELECT col0 col1 FROM tab0 GROUP BY col0, col2 diff --git a/data/sqlite/select1.slt b/data/sqlite/select1.slt index 53ccaf1..553b7e8 100644 --- a/data/sqlite/select1.slt +++ b/data/sqlite/select1.slt @@ -234,7 +234,7 @@ SELECT CASE WHEN c>(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, # Datafusion - Datafusion expected results: # Datafusion - Expected - 125 values hashing to 58b4ab36ed442f3837188b38cd02486a -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\)" at position 0 and "\(\)" at position 4 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 0 and "\(\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d\)" at position 1 and "\(\)" at position 4 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE a+1 WHEN b THEN 111 WHEN c THEN 222 WHEN d THEN 333 WHEN e THEN 444 ELSE 555 END, (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 2 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT a+b*2, (a+b+c+d+e)/5, (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 0 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 0 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.dt1.c AND x.d\)" at position 1 and "\(\)" at position 5 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT e, (SELECT count(*) FROM t1 AS x WHERE x.b(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, @@ -2809,7 +2809,7 @@ SELECT d # Datafusion - Datafusion expected results: # Datafusion - Expected - 49 values hashing to d9af3c86c55045321eccea3c3f39b048 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\)" at position 0 and "\(\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 2 and "\(\)" at position 5 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT a+b*2+c*3+d*4, d, (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 1 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT a+b*2+c*3+d*4, (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d\)" at position 0 and "\(\)" at position 5 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 1 and "\(\)" at position 4 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT d, (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 2 and "\(\)" at position 5 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (a+b+c+d+e)/5, a, (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 0 and "\(\)" at position 4 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 0 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 3 and "\(\)" at position 4 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT c, CASE WHEN c>(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, b-c, @@ -5203,7 +5203,7 @@ SELECT abs(b-c) # Datafusion - Datafusion expected results: # Datafusion - Expected - 125 values hashing to 9fcf17184ac87f3ca33f5aa74b552242 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, @@ -5591,7 +5591,7 @@ SELECT d-e, # Datafusion - Datafusion expected results: # Datafusion - Expected - 196 values hashing to ab60be6b2b2d576e28c474ce597e7441 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 0 and "\(\)" at position 5 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 1 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (a+b+c+d+e)/5, (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d\)" at position 0 and "\(\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d\)" at position 0 and "\(\)" at position 6 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.b(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, @@ -7752,7 +7752,7 @@ SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 2 and "\(\)" at position 4 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT abs(a), e, (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d\)" at position 1 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE a+1 WHEN b THEN 111 WHEN c THEN 222 WHEN d THEN 333 WHEN e THEN 444 ELSE 555 END, (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 4 and "\(\)" at position 5 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT abs(b-c), a+b*2, CASE WHEN a\)" at position 2 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (a+b+c+d+e)/5, a+b*2+c*3+d*4, (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 0 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d\)" at position 1 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE a+1 WHEN b THEN 111 WHEN c THEN 222 WHEN d THEN 333 WHEN e THEN 444 ELSE 555 END, (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 0 and "\(\)" at position 4 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 3 and "\(\)" at position 4 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT abs(a), e, c-d, @@ -9328,7 +9328,7 @@ SELECT (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 1 and "\(\)" at position 4 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT b-c, (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 0 and "\(\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.dt1.c AND x.d\)" at position 0 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 2 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT b, e, (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 1 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT a+b*2+c*3, (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 2 and "\(\)" at position 5 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (a+b+c+d+e)/5, c-d, (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 1 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE WHEN c>(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 3 and "\(\)" at position 5 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE WHEN c>(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, a+b*2, CASE WHEN a\)" at position 5 and "\(\)" at position 6 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT b, a-b, e, @@ -11031,7 +11031,7 @@ SELECT b, # Datafusion - Datafusion expected results: # Datafusion - Expected - 210 values hashing to 7a0a8f77c3a0e99e5adda38c1771c18e -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\)" at position 1 and "\(\)" at position 5 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE WHEN c>(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 1 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE a+1 WHEN b THEN 111 WHEN c THEN 222 WHEN d THEN 333 WHEN e THEN 444 ELSE 555 END, (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 2 and "\(\)" at position 4 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (a+b+c+d+e)/5, c-d, (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 2 and "\(\)" at position 4 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT a+b*2+c*3+d*4, CASE a+1 WHEN b THEN 111 WHEN c THEN 222 WHEN d THEN 333 WHEN e THEN 444 ELSE 555 END, @@ -1927,7 +1927,7 @@ SELECT abs(b-c), # Datafusion - Datafusion expected results: # Datafusion - Expected - 14 values hashing to 08aca67746baa979d75bd8d3a8f212cf -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\)" at position 0 and "\(\)" at position 5 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 3 and "\(\)" at position 5 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT a+b*2+c*3+d*4, abs(b-c), CASE a+1 WHEN b THEN 111 WHEN c THEN 222 @@ -2355,7 +2355,7 @@ SELECT CASE WHEN c>(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, # Datafusion - Datafusion expected results: # Datafusion - Expected - 180 values hashing to f26f35b2777ee4f09e0e1e36a80f73df -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 0 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d\)" at position 1 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT c-d, (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 3 and "\(\)" at position 4 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT a+b*2, (a+b+c+d+e)/5, c, @@ -3178,7 +3178,7 @@ SELECT a+b*2+c*3+d*4+e*5, # Datafusion - Datafusion expected results: # Datafusion - Expected - 150 values hashing to 8397a0903e15704ffd79e739a314f51b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 0 and "\(\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d\)" at position 2 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT a+b*2+c*3, c, (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 0 and "\(\)" at position 6 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 1 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT b, (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 2 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT a, b-c, (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 2 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT e, d, (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 1 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE WHEN c>(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 0 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d\)" at position 2 and "\(\)" at position 6 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT abs(b-c), CASE a+1 WHEN b THEN 111 WHEN c THEN 222 WHEN d THEN 333 WHEN e THEN 444 ELSE 555 END, @@ -5323,7 +5323,7 @@ SELECT b, # Datafusion - Datafusion expected results: # Datafusion - Expected - 180 values hashing to bff37502d1e7e46781572fa3856673bb -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\)" at position 1 and "\(\)" at position 5 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE WHEN a\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 0 and "\(\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 2 and "\(\)" at position 5 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT e, abs(a), (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 0 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d\)" at position 0 and "\(\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.b(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, # Datafusion - Datafusion expected results: # Datafusion - Expected - 210 values hashing to a31aa071b70198721385ba5a7b7cba2c -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\)" at position 3 and "\(\)" at position 6 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT d-e, (a+b+c+d+e)/5, b, @@ -7608,7 +7608,7 @@ SELECT CASE a+1 WHEN b THEN 111 WHEN c THEN 222 # Datafusion - Datafusion expected results: # Datafusion - Expected - 210 values hashing to 70abb12df6491fcd04e18940ea4523b4 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\)" at position 4 and "\(\)" at position 5 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT a-b, a+b*2+c*3, c-d, @@ -8291,7 +8291,7 @@ SELECT a+b*2, # Datafusion - Datafusion expected results: # Datafusion - Expected - 112 values hashing to 4b7e9fe3af074b9e61a12ca304736451 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\)" at position 2 and "\(\)" at position 5 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT a, e, (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 0 and "\(\)" at position 4 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 1 and "\(\)" at position 4 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT a+b*2, (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 4 and "\(\)" at position 6 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE a+1 WHEN b THEN 111 WHEN c THEN 222 WHEN d THEN 333 WHEN e THEN 444 ELSE 555 END, a+b*2+c*3, diff --git a/data/sqlite/select3.slt b/data/sqlite/select3.slt index 2e96943..88b87d2 100644 --- a/data/sqlite/select3.slt +++ b/data/sqlite/select3.slt @@ -5684,7 +5684,7 @@ SELECT (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 0 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 0 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 1 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE WHEN c>(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, # Datafusion - Expected - 6 # Datafusion - Expected - 0 # Datafusion - Expected - 140 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\)" at position 1 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE WHEN c>(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, # Datafusion - Expected - 6 # Datafusion - Expected - 0 # Datafusion - Expected - 140 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\)" at position 1 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE WHEN c>(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, # Datafusion - Expected - 6 # Datafusion - Expected - 0 # Datafusion - Expected - 140 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\)" at position 1 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE WHEN c>(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, # Datafusion - Expected - 6 # Datafusion - Expected - 0 # Datafusion - Expected - 140 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\)" at position 1 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE WHEN c>(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, # Datafusion - Expected - 6 # Datafusion - Expected - 0 # Datafusion - Expected - 140 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\)" at position 1 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE WHEN c>(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, # Datafusion - Expected - 6 # Datafusion - Expected - 0 # Datafusion - Expected - 140 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\)" at position 1 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE WHEN c>(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, # Datafusion - Expected - 6 # Datafusion - Expected - 0 # Datafusion - Expected - 140 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\)" at position 1 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE WHEN c>(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d\)" at position 0 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.dt1.c AND x.d\)" at position 0 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.dt1.c AND x.da AND e\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.dt1.c AND x.d\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.dt1.c AND x.d\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.dt1.c AND x.d\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.dt1.c AND x.d\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 1 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT a, (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d\)" at position 1 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT a, (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d\)" at position 0 and "\(\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d\)" at position 0 and "\(\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d\)" at position 0 and "\(\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d\)" at position 0 and "\(\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d\)" at position 0 and "\(\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d\)" at position 0 and "\(\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d\)" at position 1 and "\(\)" at position 5 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT e, (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 1 and "\(\)" at position 5 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT e, (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 1 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE WHEN c>(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, (SELECT count(*) FROM t1 AS x WHERE x.b(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, # Datafusion - Datafusion expected results: # Datafusion - Expected - 126 values hashing to a02687520314ff075ab8bb20ad78dc8b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\)" at position 1 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE WHEN c>(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, (SELECT count(*) FROM t1 AS x WHERE x.b(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, # Datafusion - Datafusion expected results: # Datafusion - Expected - 126 values hashing to a02687520314ff075ab8bb20ad78dc8b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\)" at position 1 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE WHEN c>(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, (SELECT count(*) FROM t1 AS x WHERE x.b(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, # Datafusion - Datafusion expected results: # Datafusion - Expected - 126 values hashing to a02687520314ff075ab8bb20ad78dc8b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\)" at position 1 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE WHEN c>(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, (SELECT count(*) FROM t1 AS x WHERE x.b(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, # Datafusion - Datafusion expected results: # Datafusion - Expected - 126 values hashing to a02687520314ff075ab8bb20ad78dc8b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\)" at position 1 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE WHEN c>(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, (SELECT count(*) FROM t1 AS x WHERE x.b(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, # Datafusion - Datafusion expected results: # Datafusion - Expected - 126 values hashing to a02687520314ff075ab8bb20ad78dc8b -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\)" at position 1 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE WHEN c>(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 2 and "\(\)" at position 6 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT a+b*2+c*3, a+b*2+c*3+d*4+e*5, (SELECT count(*) FROM t1 AS x WHERE x.bb-2 AND a\)" at position 2 and "\(\)" at position 6 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT a+b*2+c*3, a+b*2+c*3+d*4+e*5, (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 3 and "\(\)" at position 4 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (a+b+c+d+e)/5, a+b*2+c*3, a+b*2+c*3+d*4+e*5, @@ -16883,7 +16883,7 @@ SELECT (a+b+c+d+e)/5, # Datafusion - Datafusion expected results: # Datafusion - Expected - 21 values hashing to 96375f3f872f57b2e90be141d7b751ac -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\)" at position 3 and "\(\)" at position 4 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (a+b+c+d+e)/5, a+b*2+c*3, a+b*2+c*3+d*4+e*5, @@ -17626,7 +17626,7 @@ SELECT c, # Datafusion - Datafusion expected results: # Datafusion - Expected - 168 values hashing to e31984607cdf6ff4640d14d3d9473720 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\)" at position 2 and "\(\)" at position 4 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT d, CASE WHEN a\)" at position 2 and "\(\)" at position 4 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT d, CASE WHEN a\)" at position 3 and "\(\)" at position 5 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE a+1 WHEN b THEN 111 WHEN c THEN 222 WHEN d THEN 333 WHEN e THEN 444 ELSE 555 END, CASE WHEN ab # Datafusion - Datafusion expected results: -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\)" at position 3 and "\(\)" at position 5 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE a+1 WHEN b THEN 111 WHEN c THEN 222 WHEN d THEN 333 WHEN e THEN 444 ELSE 555 END, CASE WHEN a\)" at position 3 and "\(\)" at position 5 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE a+1 WHEN b THEN 111 WHEN c THEN 222 WHEN d THEN 333 WHEN e THEN 444 ELSE 555 END, CASE WHEN aa AND e\)" at position 3 and "\(\)" at position 5 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE a+1 WHEN b THEN 111 WHEN c THEN 222 WHEN d THEN 333 WHEN e THEN 444 ELSE 555 END, CASE WHEN a\)" at position 0 and "\(\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d\)" at position 0 and "\(\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d\)" at position 0 and "\(\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d\)" at position 0 and "\(\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d\)" at position 2 and "\(\)" at position 4 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT b-c, c-d, (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 2 and "\(\)" at position 4 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT b-c, c-d, (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 2 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT e, abs(a), (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 2 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT e, abs(a), (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 2 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT e, abs(a), (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 2 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT e, abs(a), (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 2 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT e, abs(a), (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 2 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT e, abs(a), (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 2 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT e, abs(a), (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 2 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT e, abs(a), (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 1 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT c, (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 1 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT c, (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.dt1.c AND x.d\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.dt1.c AND x.d\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.dt1.c AND x.d\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 2 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT a-b, c, (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 2 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT a-b, c, (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 2 and "\(\)" at position 5 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT a+b*2, CASE WHEN c>(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 2 and "\(\)" at position 5 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT a+b*2, CASE WHEN c>(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END, (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 0 and "\(\)" at position 5 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 0 and "\(\)" at position 5 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 1 and "\(\)" at position 5 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (a+b+c+d+e)/5, (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 1 and "\(\)" at position 5 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (a+b+c+d+e)/5, (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d\)" at position 0 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d\)" at position 0 and "\(\)" at position 2 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.bt1.c AND x.d\)" at position 1 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT b, (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 1 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT b, (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 1 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT b, (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 1 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT b, (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 1 and "\(\)" at position 4 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE WHEN at1.c AND x.d\)" at position 1 and "\(\)" at position 4 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT CASE WHEN at1.c AND x.d\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 0 and "\(\)" at position 3 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.b\)" at position 0 and "\(\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.dt1.c AND x.d\)" at position 0 and "\(\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.dt1.c AND x.d\)" at position 0 and "\(\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.dt1.c AND x.d\)" at position 0 and "\(\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.dt1.c AND x.d\)" at position 0 and "\(\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.dt1.c AND x.d\)" at position 0 and "\(\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\. +query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression ScalarSubquery\(\) SELECT (SELECT count(*) FROM t1 AS x WHERE x.c>t1.c AND x.d